diff --git a/.dumi/theme/builtins/Previewer/fromDumiProps.tsx b/.dumi/theme/builtins/Previewer/fromDumiProps.tsx index 96705fae33..ce8b37ee9e 100644 --- a/.dumi/theme/builtins/Previewer/fromDumiProps.tsx +++ b/.dumi/theme/builtins/Previewer/fromDumiProps.tsx @@ -1,7 +1,5 @@ import React, { useEffect, useState } from 'react'; -// @ts-ignore import JsonML from 'jsonml.js/lib/utils'; -// @ts-ignore import toReactComponent from 'jsonml-to-react-element'; import Prism from 'prismjs'; import 'prismjs/components/prism-typescript'; diff --git a/.dumi/theme/static/style.js b/.dumi/theme/static/style.js index 2fab94b339..bfc2c7d6c4 100644 --- a/.dumi/theme/static/style.js +++ b/.dumi/theme/static/style.js @@ -1,3 +1 @@ -import 'react-github-button/assets/style.css'; -import 'docsearch.js/dist/cdn/docsearch.css'; import 'rc-footer/assets/index.css'; diff --git a/package.json b/package.json index a30f3f8b6f..9bc62a748a 100644 --- a/package.json +++ b/package.json @@ -157,11 +157,8 @@ "shallowequal": "^1.1.0" }, "devDependencies": { - "@ant-design/bisheng-plugin": "^3.3.0-alpha.4", - "@ant-design/hitu": "^0.0.0-alpha.13", "@ant-design/tools": "^16.1.0-alpha.2", "@babel/eslint-plugin": "^7.19.1", - "@docsearch/css": "^3.0.0", "@emotion/babel-preset-css-prop": "^11.10.0", "@emotion/css": "^11.10.5", "@emotion/react": "^11.10.4", @@ -198,19 +195,14 @@ "antd-img-crop": "^4.2.8", "antd-token-previewer": "^1.1.0-6", "array-move": "^4.0.0", - "babel-plugin-add-react-displayname": "^0.0.5", "bundlesize2": "^0.0.31", "chalk": "^4.0.0", "cheerio": "1.0.0-rc.12", - "concurrently": "^7.0.0", "cross-env": "^7.0.0", "css-minimizer-webpack-plugin": "^1.3.0", "dekko": "^0.2.1", - "docsearch-react-fork": "^0.0.0-alpha.0", - "docsearch.js": "^2.6.3", "dumi": "^2.0.2", "duplicate-package-checker-webpack-plugin": "^3.0.0", - "enquire-js": "^0.2.1", "esbuild-loader": "^2.13.1", "eslint": "^8.0.0", "eslint-config-airbnb": "^19.0.0", @@ -227,7 +219,6 @@ "fast-glob": "^3.2.11", "fetch-jsonp": "^1.1.3", "fs-extra": "^11.0.0", - "full-icu": "^1.3.0", "gh-pages": "^4.0.0", "glob": "^8.0.1", "highlight.js": "^11.5.0", @@ -236,9 +227,7 @@ "identity-obj-proxy": "^3.0.0", "immer": "^9.0.1", "immutability-helper": "^3.0.0", - "increase-memory-limit": "^1.0.7", "inquirer": "^9.1.2", - "intersection-observer": "^0.12.0", "isomorphic-fetch": "^3.0.0", "jest": "^29.0.0", "jest-axe": "^7.0.0", @@ -273,7 +262,6 @@ "react-dom": "^18.0.0", "react-draggable": "^4.4.3", "react-fast-marquee": "^1.2.1", - "react-github-button": "^0.1.11", "react-highlight-words": "^0.18.0", "react-infinite-scroll-component": "^6.1.0", "react-resizable": "^3.0.1", diff --git a/typings/custom-typings.d.ts b/typings/custom-typings.d.ts index e5c2274ab8..92e0e91530 100644 --- a/typings/custom-typings.d.ts +++ b/typings/custom-typings.d.ts @@ -8,14 +8,6 @@ declare module '*.svg' { export default src; } -declare module 'bisheng/collect'; - -declare module 'bisheng/router'; - -declare module 'react-github-button'; - -declare module 'jsonml.js/*'; - declare module 'rc-pagination/*'; declare module 'rc-util*'; @@ -24,17 +16,10 @@ declare module 'rc-checkbox'; declare module 'rc-rate'; +declare module 'jsonml.js/*'; + declare module '*.json' { const value: any; export const version: string; export default value; } - -declare module 'docsearch-react-fork/style/modal'; - -declare module 'docsearch-react-fork/modal' { - import { DocSearchModal as value } from 'docsearch-react-fork'; - export const DocSearchModal = value; -} - -declare module 'docsearch.js';