diff --git a/package.json b/package.json index 0f32162..1b8336d 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "@types/lodash-es": "^4.17.12", "@types/mapbox__rehype-prism": "^0.8.3", "@types/mdx": "^2.0.13", - "@types/node": "^20.12.8", + "@types/node": "^20.12.10", "@types/nprogress": "^0.2.3", "@types/qs": "^6.9.15", "@types/react": "^18.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ed0449f..a05436f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -89,7 +89,7 @@ dependencies: devDependencies: '@commitlint/cli': specifier: ^19.3.0 - version: 19.3.0(@types/node@20.12.8)(typescript@5.4.5) + version: 19.3.0(@types/node@20.12.10)(typescript@5.4.5) '@commitlint/config-conventional': specifier: ^19.2.2 version: 19.2.2 @@ -115,8 +115,8 @@ devDependencies: specifier: ^2.0.13 version: 2.0.13 '@types/node': - specifier: ^20.12.8 - version: 20.12.8 + specifier: ^20.12.10 + version: 20.12.10 '@types/nprogress': specifier: ^0.2.3 version: 0.2.3 @@ -230,7 +230,7 @@ devDependencies: version: 5.4.5 vite: specifier: ^5.2.11 - version: 5.2.11(@types/node@20.12.8)(less@4.2.0) + version: 5.2.11(@types/node@20.12.10)(less@4.2.0) vite-plugin-ejs: specifier: ^1.7.0 version: 1.7.0(vite@5.2.11) @@ -1531,14 +1531,14 @@ packages: node-fetch: 3.3.2 dev: false - /@commitlint/cli@19.3.0(@types/node@20.12.8)(typescript@5.4.5): + /@commitlint/cli@19.3.0(@types/node@20.12.10)(typescript@5.4.5): resolution: {integrity: sha512-LgYWOwuDR7BSTQ9OLZ12m7F/qhNY+NpAyPBgo4YNMkACE7lGuUnuQq1yi9hz1KA4+3VqpOYl8H1rY/LYK43v7g==} engines: {node: '>=v18'} hasBin: true dependencies: '@commitlint/format': 19.3.0 '@commitlint/lint': 19.2.2 - '@commitlint/load': 19.2.0(@types/node@20.12.8)(typescript@5.4.5) + '@commitlint/load': 19.2.0(@types/node@20.12.10)(typescript@5.4.5) '@commitlint/read': 19.2.1 '@commitlint/types': 19.0.3 execa: 8.0.1 @@ -1607,7 +1607,7 @@ packages: '@commitlint/types': 19.0.3 dev: true - /@commitlint/load@19.2.0(@types/node@20.12.8)(typescript@5.4.5): + /@commitlint/load@19.2.0(@types/node@20.12.10)(typescript@5.4.5): resolution: {integrity: sha512-XvxxLJTKqZojCxaBQ7u92qQLFMMZc4+p9qrIq/9kJDy8DOrEa7P1yx7Tjdc2u2JxIalqT4KOGraVgCE7eCYJyQ==} engines: {node: '>=v18'} dependencies: @@ -1617,7 +1617,7 @@ packages: '@commitlint/types': 19.0.3 chalk: 5.3.0 cosmiconfig: 9.0.0(typescript@5.4.5) - cosmiconfig-typescript-loader: 5.0.0(@types/node@20.12.8)(cosmiconfig@9.0.0)(typescript@5.4.5) + cosmiconfig-typescript-loader: 5.0.0(@types/node@20.12.10)(cosmiconfig@9.0.0)(typescript@5.4.5) lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 lodash.uniq: 4.5.0 @@ -2759,11 +2759,11 @@ packages: prosemirror-history: 1.4.0 prosemirror-inputrules: 1.4.0 prosemirror-keymap: 1.2.2 - prosemirror-model: 1.20.0 + prosemirror-model: 1.21.0 prosemirror-schema-list: 1.3.0 prosemirror-state: 1.4.3 prosemirror-tables: 1.3.7 - prosemirror-transform: 1.8.0 + prosemirror-transform: 1.9.0 prosemirror-view: 1.33.6 tslib: 2.6.2 dev: false @@ -2811,7 +2811,7 @@ packages: chalk: 4.1.2 debug: 4.3.4 eslint: 8.57.0 - vite: 5.2.11(@types/node@20.12.8)(less@4.2.0) + vite: 5.2.11(@types/node@20.12.10)(less@4.2.0) transitivePeerDependencies: - supports-color dev: true @@ -3318,7 +3318,7 @@ packages: /@types/conventional-commits-parser@5.0.0: resolution: {integrity: sha512-loB369iXNmAZglwWATL+WRe+CRMmmBPtpolYzIebFaX4YA3x+BEfLqhUAV9WanycKI3TG1IMr5bMJDajDKLlUQ==} dependencies: - '@types/node': 20.12.8 + '@types/node': 20.12.10 dev: true /@types/d3-scale-chromatic@3.0.3: @@ -3437,8 +3437,8 @@ packages: resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==} dev: true - /@types/node@20.12.8: - resolution: {integrity: sha512-NU0rJLJnshZWdE/097cdCBbyW1h4hEg0xpovcoAQYHl8dnEyp/NAOiE45pvc+Bd1Dt+2r94v2eGFpQJ4R7g+2w==} + /@types/node@20.12.10: + resolution: {integrity: sha512-Eem5pH9pmWBHoGAT8Dr5fdc5rYA+4NAovdM4EktRPVAAiJhmWWfQrA0cFhAbOsQdSfIHjAud6YdkbL69+zSKjw==} dependencies: undici-types: 5.26.5 dev: true @@ -3473,7 +3473,7 @@ packages: /@types/sax@1.2.7: resolution: {integrity: sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A==} dependencies: - '@types/node': 20.12.8 + '@types/node': 20.12.10 dev: true /@types/semver@7.5.8: @@ -3483,7 +3483,7 @@ packages: /@types/svgo@2.6.4: resolution: {integrity: sha512-l4cmyPEckf8moNYHdJ+4wkHvFxjyW6ulm9l4YGaOxeyBWPhBOT0gvni1InpFPdzx1dKf/2s62qGITwxNWnPQng==} dependencies: - '@types/node': 20.12.8 + '@types/node': 20.12.10 dev: true /@types/trusted-types@2.0.7: @@ -3499,7 +3499,7 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 20.12.8 + '@types/node': 20.12.10 dev: true optional: true @@ -3650,7 +3650,7 @@ packages: '@babel/plugin-transform-react-jsx-source': 7.24.1(@babel/core@7.24.5) '@types/babel__core': 7.20.5 react-refresh: 0.14.2 - vite: 5.2.11(@types/node@20.12.8)(less@4.2.0) + vite: 5.2.11(@types/node@20.12.10)(less@4.2.0) transitivePeerDependencies: - supports-color dev: true @@ -4272,7 +4272,7 @@ packages: hasBin: true dependencies: caniuse-lite: 1.0.30001616 - electron-to-chromium: 1.4.756 + electron-to-chromium: 1.4.757 node-releases: 2.0.14 update-browserslist-db: 1.0.15(browserslist@4.23.0) dev: true @@ -4718,7 +4718,7 @@ packages: layout-base: 1.0.2 dev: false - /cosmiconfig-typescript-loader@5.0.0(@types/node@20.12.8)(cosmiconfig@9.0.0)(typescript@5.4.5): + /cosmiconfig-typescript-loader@5.0.0(@types/node@20.12.10)(cosmiconfig@9.0.0)(typescript@5.4.5): resolution: {integrity: sha512-+8cK7jRAReYkMwMiG+bxhcNKiHJDM6bR9FD/nGBXOWdMLuYawjF5cGrtLilJ+LGd3ZjCXnJjR5DkfWPoIVlqJA==} engines: {node: '>=v16'} peerDependencies: @@ -4726,7 +4726,7 @@ packages: cosmiconfig: '>=8.2' typescript: '>=4' dependencies: - '@types/node': 20.12.8 + '@types/node': 20.12.10 cosmiconfig: 9.0.0(typescript@5.4.5) jiti: 1.21.0 typescript: 5.4.5 @@ -5434,8 +5434,8 @@ packages: jake: 10.9.1 dev: true - /electron-to-chromium@1.4.756: - resolution: {integrity: sha512-RJKZ9+vEBMeiPAvKNWyZjuYyUqMndcP1f335oHqn3BEQbs2NFtVrnK5+6Xg5wSM9TknNNpWghGDUCKGYF+xWXw==} + /electron-to-chromium@1.4.757: + resolution: {integrity: sha512-jftDaCknYSSt/+KKeXzH3LX5E2CvRLm75P3Hj+J/dv3CL0qUYcOt13d5FN1NiL5IJbbhzHrb3BomeG2tkSlZmw==} dev: true /elkjs@0.9.3: @@ -9706,22 +9706,22 @@ packages: /prosemirror-changeset@2.2.1: resolution: {integrity: sha512-J7msc6wbxB4ekDFj+n9gTW/jav/p53kdlivvuppHsrZXCaQdVgRghoZbSS3kwrRyAstRVQ4/+u5k7YfLgkkQvQ==} dependencies: - prosemirror-transform: 1.8.0 + prosemirror-transform: 1.9.0 dev: false /prosemirror-commands@1.5.2: resolution: {integrity: sha512-hgLcPaakxH8tu6YvVAaILV2tXYsW3rAdDR8WNkeKGcgeMVQg3/TMhPdVoh7iAmfgVjZGtcOSjKiQaoeKjzd2mQ==} dependencies: - prosemirror-model: 1.20.0 + prosemirror-model: 1.21.0 prosemirror-state: 1.4.3 - prosemirror-transform: 1.8.0 + prosemirror-transform: 1.9.0 dev: false /prosemirror-dropcursor@1.8.1: resolution: {integrity: sha512-M30WJdJZLyXHi3N8vxN6Zh5O8ZBbQCz0gURTfPmTIBNQ5pxrdU7A58QkNqfa98YEjSAL1HUyyU34f6Pm5xBSGw==} dependencies: prosemirror-state: 1.4.3 - prosemirror-transform: 1.8.0 + prosemirror-transform: 1.9.0 prosemirror-view: 1.33.6 dev: false @@ -9729,7 +9729,7 @@ packages: resolution: {integrity: sha512-wtjswVBd2vaQRrnYZaBCbyDqr232Ed4p2QPtRIUK5FuqHYKGWkEwl08oQM4Tw7DOR0FsasARV5uJFvMZWxdNxQ==} dependencies: prosemirror-keymap: 1.2.2 - prosemirror-model: 1.20.0 + prosemirror-model: 1.21.0 prosemirror-state: 1.4.3 prosemirror-view: 1.33.6 dev: false @@ -9738,7 +9738,7 @@ packages: resolution: {integrity: sha512-UUiGzDVcqo1lovOPdi9YxxUps3oBFWAIYkXLu3Ot+JPv1qzVogRbcizxK3LhHmtaUxclohgiOVesRw5QSlMnbQ==} dependencies: prosemirror-state: 1.4.3 - prosemirror-transform: 1.8.0 + prosemirror-transform: 1.9.0 prosemirror-view: 1.33.6 rope-sequence: 1.3.4 dev: false @@ -9747,7 +9747,7 @@ packages: resolution: {integrity: sha512-6ygpPRuTJ2lcOXs9JkefieMst63wVJBgHZGl5QOytN7oSZs3Co/BYbc3Yx9zm9H37Bxw8kVzCnDsihsVsL4yEg==} dependencies: prosemirror-state: 1.4.3 - prosemirror-transform: 1.8.0 + prosemirror-transform: 1.9.0 dev: false /prosemirror-keymap@1.2.2: @@ -9757,8 +9757,8 @@ packages: w3c-keyname: 2.2.8 dev: false - /prosemirror-model@1.20.0: - resolution: {integrity: sha512-q7AY7vMjKYqDCeoedgUiAgrLabliXxndJuuFmcmc2+YU1SblvnOiG2WEACF2lwAZsMlfLpiAilA3L+TWlDqIsQ==} + /prosemirror-model@1.21.0: + resolution: {integrity: sha512-zLpS1mVCZLA7VTp82P+BfMiYVPcX1/z0Mf3gsjKZtzMWubwn2pN7CceMV0DycjlgE5JeXPR7UF4hJPbBV98oWA==} dependencies: orderedmap: 2.1.1 dev: false @@ -9766,16 +9766,16 @@ packages: /prosemirror-schema-list@1.3.0: resolution: {integrity: sha512-Hz/7gM4skaaYfRPNgr421CU4GSwotmEwBVvJh5ltGiffUJwm7C8GfN/Bc6DR1EKEp5pDKhODmdXXyi9uIsZl5A==} dependencies: - prosemirror-model: 1.20.0 + prosemirror-model: 1.21.0 prosemirror-state: 1.4.3 - prosemirror-transform: 1.8.0 + prosemirror-transform: 1.9.0 dev: false /prosemirror-state@1.4.3: resolution: {integrity: sha512-goFKORVbvPuAQaXhpbemJFRKJ2aixr+AZMGiquiqKxaucC6hlpHNZHWgz5R7dS4roHiwq9vDctE//CZ++o0W1Q==} dependencies: - prosemirror-model: 1.20.0 - prosemirror-transform: 1.8.0 + prosemirror-model: 1.21.0 + prosemirror-transform: 1.9.0 prosemirror-view: 1.33.6 dev: false @@ -9783,24 +9783,24 @@ packages: resolution: {integrity: sha512-oEwX1wrziuxMtwFvdDWSFHVUWrFJWt929kVVfHvtTi8yvw+5ppxjXZkMG/fuTdFo+3DXyIPSKfid+Be1npKXDA==} dependencies: prosemirror-keymap: 1.2.2 - prosemirror-model: 1.20.0 + prosemirror-model: 1.21.0 prosemirror-state: 1.4.3 - prosemirror-transform: 1.8.0 + prosemirror-transform: 1.9.0 prosemirror-view: 1.33.6 dev: false - /prosemirror-transform@1.8.0: - resolution: {integrity: sha512-BaSBsIMv52F1BVVMvOmp1yzD3u65uC3HTzCBQV1WDPqJRQ2LuHKcyfn0jwqodo8sR9vVzMzZyI+Dal5W9E6a9A==} + /prosemirror-transform@1.9.0: + resolution: {integrity: sha512-5UXkr1LIRx3jmpXXNKDhv8OyAOeLTGuXNwdVfg8x27uASna/wQkr9p6fD3eupGOi4PLJfbezxTyi/7fSJypXHg==} dependencies: - prosemirror-model: 1.20.0 + prosemirror-model: 1.21.0 dev: false /prosemirror-view@1.33.6: resolution: {integrity: sha512-zRLUNgLIQfd8IfGprsXxWTjdA8xEAFJe8cDNrOptj6Mop9sj+BMeVbJvceyAYCm5G2dOdT2prctH7K9dfnpIMw==} dependencies: - prosemirror-model: 1.20.0 + prosemirror-model: 1.21.0 prosemirror-state: 1.4.3 - prosemirror-transform: 1.8.0 + prosemirror-transform: 1.9.0 dev: false /proxy-addr@2.0.7: @@ -12360,7 +12360,7 @@ packages: vite: '>=5.0.0' dependencies: ejs: 3.1.10 - vite: 5.2.11(@types/node@20.12.8)(less@4.2.0) + vite: 5.2.11(@types/node@20.12.10)(less@4.2.0) dev: true /vite-plugin-prerender@1.0.8(patch_hash=wzxg63f5ojygzuhh2kfcpwgc4y)(vite@5.2.11): @@ -12374,7 +12374,7 @@ packages: debug: 4.3.4 html-minifier: 3.5.21 mkdirp: 1.0.4 - vite: 5.2.11(@types/node@20.12.8)(less@4.2.0) + vite: 5.2.11(@types/node@20.12.10)(less@4.2.0) transitivePeerDependencies: - bufferutil - supports-color @@ -12391,7 +12391,7 @@ packages: picocolors: 1.0.0 progress: 2.0.3 rd: 2.0.1 - vite: 5.2.11(@types/node@20.12.8)(less@4.2.0) + vite: 5.2.11(@types/node@20.12.10)(less@4.2.0) dev: true /vite-plugin-svg-icons@2.0.1(vite@5.2.11): @@ -12407,12 +12407,12 @@ packages: pathe: 0.2.0 svg-baker: 1.7.0 svgo: 2.8.0 - vite: 5.2.11(@types/node@20.12.8)(less@4.2.0) + vite: 5.2.11(@types/node@20.12.10)(less@4.2.0) transitivePeerDependencies: - supports-color dev: true - /vite@5.2.11(@types/node@20.12.8)(less@4.2.0): + /vite@5.2.11(@types/node@20.12.10)(less@4.2.0): resolution: {integrity: sha512-HndV31LWW05i1BLPMUCE1B9E9GFbOu1MbenhS58FuK6owSO5qHm7GiCotrNY1YE5rMeQSFBGmT5ZaLEjFizgiQ==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -12440,7 +12440,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.12.8 + '@types/node': 20.12.10 esbuild: 0.20.2 less: 4.2.0 postcss: 8.4.38 diff --git a/src/viewer/Provider.tsx b/src/viewer/Provider.tsx index d7f93bd..4ff560d 100644 --- a/src/viewer/Provider.tsx +++ b/src/viewer/Provider.tsx @@ -3,7 +3,6 @@ import { createElement, useId, useMemo } from 'react'; import { Anchor, Divider } from 'antd'; import type { AnchorLinkItemProps } from 'antd/es/anchor/Anchor'; -import type { Meta } from '@/router'; import { Link, useLocation } from '@/router'; import { Icon } from '@/components'; @@ -185,7 +184,7 @@ export const useMDXComponents = (): MDXComponents => { wrapper(props) { return {props.children}; }, - Header(props: { frontmatter: Meta }) { + Header(props: { frontmatter: { title: string } }) { return (

{props.frontmatter.title}