@antv/dumi-theme-antv 0.4.6 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/layouts/DocLayout.d.ts +2 -1
- package/dist/layouts/entry/Index.js +2 -2
- package/dist/model/index.d.ts +5 -0
- package/dist/model/index.js +6 -0
- package/dist/pages/Example/components/CollapsedIcon/index.d.ts +8 -0
- package/dist/pages/Example/components/CollapsedIcon/index.js +15 -0
- package/dist/pages/Example/components/CollapsedIcon/index.module.less +14 -0
- package/dist/pages/Example/index.js +28 -11
- package/dist/pages/Examples/components/Accouncement/index.js +2 -2
- package/dist/pages/Examples/components/GalleryPageContent/index.js +2 -2
- package/dist/plugin/api.d.ts +7 -0
- package/dist/plugin/api.js +82 -0
- package/dist/plugin/examples.d.ts +1 -1
- package/dist/plugin/examples.js +29 -22
- package/dist/plugin/index.js +2 -1
- package/dist/slots/API/index.d.ts +15 -0
- package/dist/slots/API/index.js +202 -0
- package/dist/slots/API/index.module.less +93 -0
- package/dist/slots/Banner/index.js +2 -2
- package/dist/slots/CodeEditor/Toolbar.js +2 -2
- package/dist/slots/CodeEditor/index.js +1 -1
- package/dist/slots/CodeEditor/utils.js +7 -9
- package/dist/slots/CodeRunner/utils.js +4 -3
- package/dist/slots/Detail/index.js +5 -3
- package/dist/slots/ExampleSider/index.js +2 -3
- package/dist/slots/Footer/index.js +14 -4
- package/dist/slots/Header/Navs.js +2 -2
- package/dist/slots/Header/Products/Product.module.less +9 -0
- package/dist/slots/Header/Products/getProducts.js +2 -2
- package/dist/slots/Header/Products/index.d.ts +1 -0
- package/dist/slots/Header/Products/index.js +5 -4
- package/dist/slots/Header/index.js +18 -18
- package/dist/slots/Loading/index.d.ts +2 -3
- package/dist/slots/Loading/index.js +1 -8
- package/dist/slots/ManualContent/index.js +2 -2
- package/dist/slots/ManualContent/index.module.less +2 -2
- package/package.json +37 -32
package/package.json
CHANGED
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/dumi-theme-antv",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "AntV website theme based on dumi2.",
|
|
5
|
-
"types": "dist/types.d.ts",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "cd example && npm run start",
|
|
8
|
-
"dev": "father dev",
|
|
9
|
-
"build": "npm run prepare && father build",
|
|
10
|
-
"prepare": "father link-dev-theme",
|
|
11
|
-
"lint": "npm run lint:es && npm run lint:css",
|
|
12
|
-
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
13
|
-
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
14
|
-
"prepublishOnly": "npm run build"
|
|
15
|
-
},
|
|
16
5
|
"keywords": [
|
|
17
6
|
"dumi",
|
|
18
7
|
"dumi-theme",
|
|
19
8
|
"dumi-theme-antv"
|
|
20
9
|
],
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
"antv"
|
|
24
|
-
|
|
10
|
+
"homepage": "https://github.com/antvis/dumi-theme-antv#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/antvis/dumi-theme-antv/issues"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/antvis/dumi-theme-antv"
|
|
17
|
+
},
|
|
25
18
|
"license": "MIT",
|
|
19
|
+
"types": "dist/types.d.ts",
|
|
26
20
|
"files": [
|
|
27
21
|
"dist"
|
|
28
22
|
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "npm run prepare && father build",
|
|
25
|
+
"dev": "father dev",
|
|
26
|
+
"lint": "npm run lint:es && npm run lint:css",
|
|
27
|
+
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
28
|
+
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
29
|
+
"prepare": "father link-dev-theme",
|
|
30
|
+
"prepublishOnly": "npm run build",
|
|
31
|
+
"start": "cd example && npm run start"
|
|
32
|
+
},
|
|
29
33
|
"commitlint": {
|
|
30
34
|
"extends": [
|
|
31
35
|
"@commitlint/config-conventional"
|
|
@@ -48,9 +52,6 @@
|
|
|
48
52
|
"prettier --parser=typescript --write"
|
|
49
53
|
]
|
|
50
54
|
},
|
|
51
|
-
"publishConfig": {
|
|
52
|
-
"access": "public"
|
|
53
|
-
},
|
|
54
55
|
"dependencies": {
|
|
55
56
|
"@ant-design/icons": "^4.7.0",
|
|
56
57
|
"@babel/plugin-syntax-unicode-sets-regex": "^7.18.6",
|
|
@@ -73,6 +74,7 @@
|
|
|
73
74
|
"lodash-es": "^4.17.21",
|
|
74
75
|
"monaco-editor": "^0.25.0",
|
|
75
76
|
"parse-github-url": "^1.0.2",
|
|
77
|
+
"prettier": "^2.7.1",
|
|
76
78
|
"rc-drawer": "^4.0.0",
|
|
77
79
|
"rc-footer": "^0.6.6",
|
|
78
80
|
"react": "^18.2.0",
|
|
@@ -80,24 +82,22 @@
|
|
|
80
82
|
"react-error-boundary": "^3.1.4",
|
|
81
83
|
"react-github-button": "^0.1.11",
|
|
82
84
|
"react-helmet": "^6.1.0",
|
|
85
|
+
"react-markdown": "^9.0.1",
|
|
83
86
|
"react-router-dom": "^6.4.2",
|
|
84
87
|
"react-slick": "^0.29.0",
|
|
85
88
|
"react-split-pane": "^0.1.92",
|
|
86
89
|
"react-use": "^17.4.0",
|
|
87
90
|
"reading-time": "^1.5.0",
|
|
91
|
+
"rehype-raw": "^7.0.0",
|
|
92
|
+
"remark-gfm": "^4.0.0",
|
|
88
93
|
"semver": "^7.3.8",
|
|
89
94
|
"size-sensor": "^1.0.1",
|
|
90
95
|
"slick-carousel": "^1.8.1",
|
|
91
96
|
"unified": "^10.1.2",
|
|
92
97
|
"unist-util-visit": "^4.1.2",
|
|
93
98
|
"uri-parse": "^1.0.0",
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
},
|
|
97
|
-
"peerDependencies": {
|
|
98
|
-
"dumi": "^2.0.0",
|
|
99
|
-
"react": ">=16.9.0",
|
|
100
|
-
"react-dom": ">=16.9.0"
|
|
99
|
+
"valtio": "^1.12.1",
|
|
100
|
+
"video-react": "^0.16.0"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
103
|
"@commitlint/cli": "^17.1.2",
|
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
"@types/classnames": "^2.3.1",
|
|
106
106
|
"@types/fs-extra": "^9.0.13",
|
|
107
107
|
"@types/glob": "^8.0.0",
|
|
108
|
+
"@types/hast": "^2.3.5",
|
|
108
109
|
"@types/lodash-es": "^4.17.6",
|
|
109
110
|
"@types/node": "^18.11.3",
|
|
110
111
|
"@types/react": "^18.0.21",
|
|
@@ -123,12 +124,16 @@
|
|
|
123
124
|
"react-dom": "^18.0.0",
|
|
124
125
|
"stylelint": "^14.9.1"
|
|
125
126
|
},
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
127
|
+
"peerDependencies": {
|
|
128
|
+
"dumi": "^2.0.0",
|
|
129
|
+
"react": ">=16.9.0",
|
|
130
|
+
"react-dom": ">=16.9.0"
|
|
129
131
|
},
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
+
"publishConfig": {
|
|
133
|
+
"access": "public"
|
|
132
134
|
},
|
|
133
|
-
"
|
|
135
|
+
"authors": [
|
|
136
|
+
"dumi",
|
|
137
|
+
"antv"
|
|
138
|
+
]
|
|
134
139
|
}
|