@zjlab-fe/data-hub-ui 0.22.0 → 0.23.0
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/es/components/FileUploader/FileUploadModal.js +0 -1
- package/es/components/FileUploader/FileUploaderImpl/FileUploaderFileReceiver.js +0 -1
- package/es/components/FileUploader/index.js +0 -3
- package/es/components/confirm-again/index.js +0 -1
- package/es/components/feature-card/index.js +0 -1
- package/es/components/file-uploader/components/circle-progress.js +0 -1
- package/es/components/file-uploader/components/uploader-drop-zone.js +0 -2
- package/es/components/file-uploader/components/uploader-file-item.js +0 -2
- package/es/components/file-uploader/components/uploader-file-list.js +0 -2
- package/es/components/file-uploader/components/uploader.js +0 -2
- package/es/components/file-uploader/components/uploading-status.js +0 -1
- package/es/components/floating-layer/index.js +0 -1
- package/es/components/notion-editor/index.js +0 -1
- package/es/components/radio-card/index.js +0 -1
- package/es/components/section-heading/index.js +0 -1
- package/es/components/uploadDrawer/index.js +0 -1
- package/es/index.js +0 -2
- package/lib/index.js +1 -1
- package/package.json +181 -164
- package/dist/types/components/FileUploader/FileUploaderContextProvider.d.ts +0 -9
- package/dist/types/components/FileUploader/FileUploaderFileDragger.d.ts +0 -11
- package/dist/types/components/FileUploader/FileUploaderFileDraggerDragAreaDescription.d.ts +0 -4
- package/dist/types/components/FileUploader/FileUploaderList.d.ts +0 -1
- package/dist/types/components/FileUploader/FileUploaderListItem.d.ts +0 -26
- package/dist/types/components/FileUploader/FileUploaderListItemFail.d.ts +0 -5
- package/dist/types/components/FileUploader/FileUploaderListItemPaused.d.ts +0 -5
- package/dist/types/components/FileUploader/FileUploaderListItemUploading.d.ts +0 -2
- package/dist/types/components/FileUploader/FileUploaderMain.d.ts +0 -7
- package/dist/types/components/FileUploader/FileUploaderlListItemFinished.d.ts +0 -5
- package/dist/types/components/FileUploader/UploadStoreProvider.d.ts +0 -41
- package/dist/types/components/FileUploader/hooks/useCheckForDuplicates.d.ts +0 -1
- package/dist/types/components/FileUploader/hooks/useCurrentFIleOnInit.d.ts +0 -5
- package/dist/types/components/FileUploader/hooks/useCurrentFileOnAllUploaded.d.ts +0 -1
- package/dist/types/components/FileUploader/hooks/useCurrentFileOnCancel.d.ts +0 -2
- package/dist/types/components/FileUploader/hooks/useCurrentFileOnFail.d.ts +0 -2
- package/dist/types/components/FileUploader/hooks/useCurrentFileOnFinished.d.ts +0 -2
- package/dist/types/components/FileUploader/hooks/useFileDragAndDrop.d.ts +0 -9
- package/dist/types/components/FileUploader/hooks/useRemoveFilesInUploadQueue.d.ts +0 -1
- package/dist/types/components/FileUploader/hooks/useResumeUnfinishedUploads.d.ts +0 -1
- package/dist/types/components/FileUploader/hooks/useSaveUnfinishedUploads.d.ts +0 -11
- package/dist/types/components/FileUploader/hooks/useTranslate.d.ts +0 -1
- package/dist/types/components/FileUploader/hooks/useUploadContext.d.ts +0 -26
- package/dist/types/components/FileUploader/hooks/useWathUploadQueueAndSetupCurrentFile.d.ts +0 -1
- package/dist/types/components/FileUploader/translations.d.ts +0 -4
- package/dist/types/components/file-uploader/hooks/use-upload-batch.d.ts +0 -36
- package/dist/types/components/file-uploader/hooks/use-upload-control.d.ts +0 -37
- package/dist/types/components/file-uploader/hooks/use-upload-files.d.ts +0 -40
- package/dist/types/components/file-uploader/hooks/use-upload-operations.d.ts +0 -43
- package/dist/types/components/tip-tap/actions/BoldItalicStrikeUnderline.d.ts +0 -4
- package/dist/types/components/tip-tap/actions/CodeQuoteHorizontalRule.d.ts +0 -4
- package/dist/types/components/tip-tap/actions/Image.d.ts +0 -4
- package/dist/types/components/tip-tap/actions/Link.d.ts +0 -5
- package/dist/types/components/tip-tap/actions/LinkModifier.d.ts +0 -4
- package/dist/types/components/tip-tap/actions/List.d.ts +0 -4
- package/dist/types/components/tip-tap/actions/ParagraphHeadings.d.ts +0 -13
- package/dist/types/components/tip-tap/actions/Table.d.ts +0 -4
- package/dist/types/components/tip-tap/actions/TextAligment.d.ts +0 -4
- package/dist/types/components/tip-tap/actions/UndoRedo.d.ts +0 -4
- package/dist/types/components/tip-tap/actions/action-image.d.ts +0 -4
- package/dist/types/components/tip-tap/actions/action-link.d.ts +0 -5
- package/dist/types/components/tip-tap/actions/action-list.d.ts +0 -4
- package/dist/types/components/tip-tap/actions/action-table.d.ts +0 -4
- package/dist/types/components/tip-tap/actions/bold-italic-strike-underline.d.ts +0 -4
- package/dist/types/components/tip-tap/actions/code-quote-horizontalRule.d.ts +0 -4
- package/dist/types/components/tip-tap/actions/highlight-textcolor-fontsize.d.ts +0 -4
- package/dist/types/components/tip-tap/actions/link-modifier.d.ts +0 -4
- package/dist/types/components/tip-tap/actions/paragraph-headings.d.ts +0 -13
- package/dist/types/components/tip-tap/actions/text-aligment.d.ts +0 -4
- package/dist/types/components/tip-tap/actions/undo-redo.d.ts +0 -4
- package/dist/types/components/tip-tap/extensions/DropHandler.d.ts +0 -2
- package/dist/types/components/tip-tap/extensions/FontSize.d.ts +0 -20
- package/dist/types/components/tip-tap/extensions/PatseHandler.d.ts +0 -3
- package/dist/types/components/tip-tap/extensions/drop-handler.d.ts +0 -2
- package/dist/types/components/tip-tap/extensions/font-size.d.ts +0 -20
- package/dist/types/components/tip-tap/extensions/patse-handler.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/HumbleiconsAlignTextCenter.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/HumbleiconsAlignTextJustify.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/HumbleiconsAlignTextLeft.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/HumbleiconsAlignTextRight.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsAddLink.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsAddPhotoAlternateOutline.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsCode.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsEditOutline.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatColorText.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH1.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH2.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH3.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH4.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH5.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH6.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatInkHighlighterOutlineSharp.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatListBulleted.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatListNumbered.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatParagraph.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatQuote.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsHorizontalRule.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsLinkOff.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsRedo.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsTable.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MaterialSymbolsUndo.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MdiCodeBlockTags.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MdiFormatBold.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MdiFormatItalic.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MdiFormatStrikethroughVariant.d.ts +0 -3
- package/dist/types/components/tip-tap/icons/MdiFormatUnderline.d.ts +0 -3
- package/dist/types/components/tip-tap/menus/BubbleMenu.d.ts +0 -7
- package/dist/types/components/tip-tap/menus/FixedMenu.d.ts +0 -9
- package/dist/types/components/tip-tap/menus/LinkFloatingMenu.d.ts +0 -6
- package/dist/types/components/tip-tap/menus/ParagraphFloatingMenu.d.ts +0 -6
- package/dist/types/components/tip-tap/menus/bubble-menu.d.ts +0 -7
- package/dist/types/components/tip-tap/menus/fixed-menu.d.ts +0 -9
- package/dist/types/components/tip-tap/menus/link-floating-menu.d.ts +0 -6
- package/dist/types/components/tip-tap/menus/paragraph-floating-menu.d.ts +0 -6
- package/dist/types/components/tip-tap/the-editor.d.ts +0 -4
- package/dist/types/components/tip-tap/utils/add-image-to-editor.d.ts +0 -2
- package/dist/types/components/tip-tap/utils/addImageToEditor.d.ts +0 -2
- package/dist/types/components/tip-tap/utils/markdown-detector.d.ts +0 -33
- package/dist/types/components/tip-tap/utils/parse-markdown.d.ts +0 -2
- package/dist/types/components/tip-tap/utils/parseMarkDown.d.ts +0 -2
- package/dist/types/components/tip-tap-2/demo/index.d.ts +0 -1
- package/dist/types/components/tip-tap-2/index.d.ts +0 -26
- package/dist/types/demo/layout/index.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,164 +1,181 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@zjlab-fe/data-hub-ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"main": "lib/index.js",
|
|
5
|
-
"module": "es/index.js",
|
|
6
|
-
"types": "dist/types/index.d.ts",
|
|
7
|
-
"license": "ISC",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"start": "cross-env NODE_ENV=development webpack-dev-server --open /data-hub-ui/demo --config webpack.dev.config.js",
|
|
10
|
-
"build:dist": "npm run build:lib
|
|
11
|
-
"build": "cross-env NODE_ENV=production webpack --config webpack.dev.config.js",
|
|
12
|
-
"build:lib": "cross-env NODE_ENV=production webpack --config webpack.prod.config.js",
|
|
13
|
-
"build:es": "rollup -c rollup.es.config.mjs",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"lint
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
41
|
-
"babel-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"@
|
|
101
|
-
"@
|
|
102
|
-
"@
|
|
103
|
-
"@
|
|
104
|
-
"@
|
|
105
|
-
"@
|
|
106
|
-
"@
|
|
107
|
-
"@
|
|
108
|
-
"@
|
|
109
|
-
"@tiptap/
|
|
110
|
-
"@tiptap/
|
|
111
|
-
"@tiptap/
|
|
112
|
-
"@
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
"
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
"
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@zjlab-fe/data-hub-ui",
|
|
3
|
+
"version": "0.23.0",
|
|
4
|
+
"main": "lib/index.js",
|
|
5
|
+
"module": "es/index.js",
|
|
6
|
+
"types": "dist/types/index.d.ts",
|
|
7
|
+
"license": "ISC",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"start": "cross-env NODE_ENV=development webpack-dev-server --open /data-hub-ui/demo --config webpack.dev.config.js",
|
|
10
|
+
"build:dist": "npm run build:lib && npm run build:es && npm run build:types",
|
|
11
|
+
"build": "cross-env NODE_ENV=production webpack --config webpack.dev.config.js",
|
|
12
|
+
"build:lib": "cross-env NODE_ENV=production webpack --config webpack.prod.config.js",
|
|
13
|
+
"build:es": "rollup -c rollup.es.config.mjs",
|
|
14
|
+
"build:types": "tsc --emitDeclarationOnly",
|
|
15
|
+
"generate:skill": "node scripts/generateComponentsSkill.js",
|
|
16
|
+
"lint": "npm run lint-eslint",
|
|
17
|
+
"lint-eslint": "eslint -c .eslintrc.js --ext .ts,.tsx,.js,.jsx src --fix",
|
|
18
|
+
"prepare": "husky",
|
|
19
|
+
"test": "jest --coverage"
|
|
20
|
+
},
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/types/index.d.ts",
|
|
24
|
+
"import": "./es/index.js",
|
|
25
|
+
"require": "./lib/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./components/*": {
|
|
28
|
+
"types": "./dist/types/components/*/index.d.ts",
|
|
29
|
+
"import": "./es/components/*/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./package.json": "./package.json"
|
|
32
|
+
},
|
|
33
|
+
"sideEffects": [
|
|
34
|
+
"**/*.css.js",
|
|
35
|
+
"**/*.scss.js"
|
|
36
|
+
],
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@babel/core": "^7.24.7",
|
|
39
|
+
"@babel/preset-env": "^7.25.7",
|
|
40
|
+
"@babel/preset-react": "^7.24.7",
|
|
41
|
+
"@babel/preset-typescript": "^7.25.7",
|
|
42
|
+
"@jest/globals": "^29.7.0",
|
|
43
|
+
"@rollup/plugin-alias": "^6.0.0",
|
|
44
|
+
"@rollup/plugin-commonjs": "^29.0.3",
|
|
45
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
46
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
47
|
+
"@rollup/plugin-url": "^8.0.2",
|
|
48
|
+
"@tailwindcss/typography": "^0.5.16",
|
|
49
|
+
"@testing-library/dom": "^10.4.0",
|
|
50
|
+
"@testing-library/react": "^16.0.1",
|
|
51
|
+
"@types/filesystem": "^0.0.36",
|
|
52
|
+
"@types/jest": "^29.5.13",
|
|
53
|
+
"@types/pdfjs-dist": "^2.10.378",
|
|
54
|
+
"@types/react": "^18.3.3",
|
|
55
|
+
"@types/react-dom": "^18.3.0",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^7.16.0",
|
|
57
|
+
"@typescript-eslint/parser": "^7.16.0",
|
|
58
|
+
"babel-jest": "^29.7.0",
|
|
59
|
+
"babel-loader": "^9.1.3",
|
|
60
|
+
"babel-preset-react-app": "^10.0.1",
|
|
61
|
+
"cross-env": "^7.0.3",
|
|
62
|
+
"css-loader": "^7.1.2",
|
|
63
|
+
"eslint": "8.x",
|
|
64
|
+
"eslint-config-prettier": "^9.1.0",
|
|
65
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
66
|
+
"eslint-plugin-react": "^7.34.4",
|
|
67
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
68
|
+
"file-loader": "^6.2.0",
|
|
69
|
+
"html-webpack-plugin": "^5.6.0",
|
|
70
|
+
"husky": "^9.0.11",
|
|
71
|
+
"jest": "^29.7.0",
|
|
72
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
73
|
+
"lint-staged": "^15.2.7",
|
|
74
|
+
"mini-css-extract-plugin": "^2.9.0",
|
|
75
|
+
"postcss": "^8.4.47",
|
|
76
|
+
"postcss-import": "^16.1.1",
|
|
77
|
+
"postcss-loader": "^8.1.1",
|
|
78
|
+
"postcss-modules": "^6.0.1",
|
|
79
|
+
"postcss-nested": "^6.2.0",
|
|
80
|
+
"prettier": "^3.3.3",
|
|
81
|
+
"raw-loader": "^4.0.2",
|
|
82
|
+
"react-syntax-highlighter": "^15.6.1",
|
|
83
|
+
"react-test-renderer": "^18.3.1",
|
|
84
|
+
"rollup": "^4.62.2",
|
|
85
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
86
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
87
|
+
"sass": "1.77.x",
|
|
88
|
+
"sass-loader": "14.x",
|
|
89
|
+
"style-loader": "^4.0.0",
|
|
90
|
+
"ts-jest": "^29.2.5",
|
|
91
|
+
"ts-loader": "^9.5.1",
|
|
92
|
+
"ts-node": "^10.9.2",
|
|
93
|
+
"typescript": "^5.6.3",
|
|
94
|
+
"url-loader": "^4.1.1",
|
|
95
|
+
"webpack": "^5.92.1",
|
|
96
|
+
"webpack-cli": "^5.1.4",
|
|
97
|
+
"webpack-dev-server": "^5.0.4"
|
|
98
|
+
},
|
|
99
|
+
"dependencies": {
|
|
100
|
+
"@ant-design/icons": "^5.3.7",
|
|
101
|
+
"@blocknote/core": "^0.51.4",
|
|
102
|
+
"@blocknote/mantine": "^0.51.4",
|
|
103
|
+
"@blocknote/react": "^0.51.4",
|
|
104
|
+
"@codesandbox/sandpack-react": "^2.19.9",
|
|
105
|
+
"@floating-ui/dom": "^1.7.4",
|
|
106
|
+
"@mantine/core": "^8.3",
|
|
107
|
+
"@mantine/hooks": "^8.3",
|
|
108
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
109
|
+
"@tiptap/core": "^3.14.0",
|
|
110
|
+
"@tiptap/extension-code-block-lowlight": "^3.14.0",
|
|
111
|
+
"@tiptap/extension-color": "^3.14.0",
|
|
112
|
+
"@tiptap/extension-floating-menu": "^3.14.0",
|
|
113
|
+
"@tiptap/extension-highlight": "^3.14.0",
|
|
114
|
+
"@tiptap/extension-image": "^3.14.0",
|
|
115
|
+
"@tiptap/extension-link": "^3.14.0",
|
|
116
|
+
"@tiptap/extension-list-item": "^3.14.0",
|
|
117
|
+
"@tiptap/extension-placeholder": "^3.14.0",
|
|
118
|
+
"@tiptap/extension-table": "^3.14.0",
|
|
119
|
+
"@tiptap/extension-table-cell": "^3.14.0",
|
|
120
|
+
"@tiptap/extension-table-header": "^3.14.0",
|
|
121
|
+
"@tiptap/extension-table-row": "^3.14.0",
|
|
122
|
+
"@tiptap/extension-text-align": "^3.14.0",
|
|
123
|
+
"@tiptap/extension-text-style": "^3.14.0",
|
|
124
|
+
"@tiptap/extension-underline": "^3.14.0",
|
|
125
|
+
"@tiptap/markdown": "^3.14.0",
|
|
126
|
+
"@tiptap/pm": "^3.14.0",
|
|
127
|
+
"@tiptap/react": "^3.14.0",
|
|
128
|
+
"@tiptap/starter-kit": "^3.14.0",
|
|
129
|
+
"@zjlab-fe/util": "^0.5.5",
|
|
130
|
+
"antd": "^5.19.2",
|
|
131
|
+
"arrow-js-ffi": "^0.4.2",
|
|
132
|
+
"autoprefixer": "^10.4.20",
|
|
133
|
+
"axios": "^1.7.2",
|
|
134
|
+
"chardet": "^2.1.0",
|
|
135
|
+
"classnames": "^2.5.1",
|
|
136
|
+
"clsx": "^2.1.1",
|
|
137
|
+
"copy-to-clipboard": "^3.3.3",
|
|
138
|
+
"dayjs": "^1.11.11",
|
|
139
|
+
"i18next": "^25.0.0",
|
|
140
|
+
"jotai": "^2.11.0",
|
|
141
|
+
"jotai-scope": "^0.9.7",
|
|
142
|
+
"lowlight": "^3.3.0",
|
|
143
|
+
"marked": "^16.1.2",
|
|
144
|
+
"parquet-wasm": "^0.6.1",
|
|
145
|
+
"prosemirror-state": "^1.4.3",
|
|
146
|
+
"prosemirror-transform": "^1.12.0",
|
|
147
|
+
"react": "^18.3.1",
|
|
148
|
+
"react-dom": "^18.3.1",
|
|
149
|
+
"react-error-boundary": "^5.0.0",
|
|
150
|
+
"react-json-tree": "^0.20.0",
|
|
151
|
+
"react-json-view": "^1.21.3",
|
|
152
|
+
"react-markdown": "^9.1.0",
|
|
153
|
+
"react-router": "^6.24.1",
|
|
154
|
+
"react-router-dom": "^6.24.1",
|
|
155
|
+
"rehype-mathjax": "^7.1.0",
|
|
156
|
+
"rehype-raw": "^7.0.0",
|
|
157
|
+
"remark-gfm": "^4.0.0",
|
|
158
|
+
"remark-math": "^6.0.0",
|
|
159
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
160
|
+
"shiki": "^4.1.0",
|
|
161
|
+
"tailwind-merge": "^2.6.0",
|
|
162
|
+
"tailwindcss": "^3.4.13",
|
|
163
|
+
"tslib": "^2.8.1",
|
|
164
|
+
"unist-util-visit": "^5.0.0",
|
|
165
|
+
"uuid": "^14.0.0"
|
|
166
|
+
},
|
|
167
|
+
"husky": {
|
|
168
|
+
"hooks": {
|
|
169
|
+
"pre-commit": "lint-staged"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"lint-staged": {
|
|
173
|
+
"*.{ts,tsx,js,jsx}": [
|
|
174
|
+
"eslint --config .eslintrc.js"
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
"publishConfig": {
|
|
178
|
+
"registry": "https://registry.npmjs.org/"
|
|
179
|
+
},
|
|
180
|
+
"packageManager": "pnpm@9.12.1+sha256.91452fdfa46234ae447d46d5c4fc4e7e0a7058f90495c4b6f77f8beebbb154e3"
|
|
181
|
+
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FileInfo, UploadableFile, UploadManager } from './types';
|
|
2
|
-
import { FileUploaderProps } from './FileUploaderMain';
|
|
3
|
-
export default function FileUploaderContextProvider({ extra, dragAreaConfig, ...props }: {
|
|
4
|
-
root?: string;
|
|
5
|
-
identifier: string;
|
|
6
|
-
showFinished?: boolean;
|
|
7
|
-
externalUploadContext?: FileInfo[];
|
|
8
|
-
onUploadSuccess?: (file: UploadableFile) => void;
|
|
9
|
-
} & UploadManager & FileUploaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import './FileUploaderFileDragger.css';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
export interface FileDraggerProps {
|
|
4
|
-
accept?: string;
|
|
5
|
-
directory?: boolean;
|
|
6
|
-
dragAreaDescription?: ReactNode;
|
|
7
|
-
maxSizePerFile?: number;
|
|
8
|
-
className?: string;
|
|
9
|
-
onFileReceived: (_files: File[]) => void;
|
|
10
|
-
}
|
|
11
|
-
export default function FileUploaderFileDragger({ className, accept, directory, dragAreaDescription, maxSizePerFile, onFileReceived, }: FileDraggerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function FileUploadModalList(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ProgressProps } from 'antd';
|
|
2
|
-
import { UploadableFile } from './types';
|
|
3
|
-
export declare const progressStyleProps: ProgressProps;
|
|
4
|
-
declare const _default: import("react").NamedExoticComponent<{
|
|
5
|
-
file: UploadableFile;
|
|
6
|
-
}>;
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare function ListItemOutline({ children, className }: {
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
className?: string;
|
|
11
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare function ListItemName({ fileName, className }: {
|
|
13
|
-
fileName: string;
|
|
14
|
-
className?: string;
|
|
15
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare function ListItemStatus({ className, fileStatus, percentage, strokeColor, }: {
|
|
17
|
-
className?: string;
|
|
18
|
-
fileStatus: string;
|
|
19
|
-
percentage: number;
|
|
20
|
-
strokeColor?: string;
|
|
21
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export declare function ListItemActions({ onDelete, extraActions, className, }: {
|
|
23
|
-
onDelete: () => void;
|
|
24
|
-
extraActions?: React.ReactNode;
|
|
25
|
-
className?: string;
|
|
26
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FileDraggerProps } from './FileUploaderFileDragger';
|
|
3
|
-
export type FileUploaderProps = {
|
|
4
|
-
extra?: React.ReactNode;
|
|
5
|
-
dragAreaConfig?: Omit<FileDraggerProps, 'onFileReceived'>;
|
|
6
|
-
};
|
|
7
|
-
export default function FileUploaderMain({ extra, dragAreaConfig }: FileUploaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { UploadableFile } from './types';
|
|
3
|
-
import { Locale } from './translations';
|
|
4
|
-
export type UploadStore = {
|
|
5
|
-
[key: string]: UploadableFile[];
|
|
6
|
-
};
|
|
7
|
-
type UploadStoreAction = {
|
|
8
|
-
type: 'add';
|
|
9
|
-
identifier: string | number;
|
|
10
|
-
} | {
|
|
11
|
-
type: 'edit_file';
|
|
12
|
-
identifier: string | number;
|
|
13
|
-
file: UploadableFile;
|
|
14
|
-
} | {
|
|
15
|
-
type: 'remove_file';
|
|
16
|
-
identifier: string | number;
|
|
17
|
-
fileName: string;
|
|
18
|
-
} | {
|
|
19
|
-
type: 'add_file';
|
|
20
|
-
identifier: string | number;
|
|
21
|
-
file: UploadableFile;
|
|
22
|
-
} | {
|
|
23
|
-
type: 'clear_finished';
|
|
24
|
-
identifier: string | number;
|
|
25
|
-
} | {
|
|
26
|
-
type: 'add_files';
|
|
27
|
-
identifier: string | number;
|
|
28
|
-
files: UploadableFile[];
|
|
29
|
-
};
|
|
30
|
-
type UploadStoreDispatch = React.Dispatch<UploadStoreAction>;
|
|
31
|
-
export declare const localeAtom: import("jotai").PrimitiveAtom<Locale> & {
|
|
32
|
-
init: Locale;
|
|
33
|
-
};
|
|
34
|
-
export declare const TEMP_STORE: {};
|
|
35
|
-
export declare const UploadStoreContext: React.Context<UploadStore>;
|
|
36
|
-
export declare const UploadStoreDispatchContext: React.Context<UploadStoreDispatch>;
|
|
37
|
-
export default function UploadStoreProvider({ locale, children, }: {
|
|
38
|
-
locale?: 'zh' | 'en';
|
|
39
|
-
children: React.ReactElement;
|
|
40
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useCheckForDuplicates(): (files: File[]) => Promise<[boolean, Set<string>]>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useOnAllUploaded(): (allSuccess: boolean) => Promise<void>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare function useFileDragAndDrop(directory: boolean, acceptList: Set<string>, triggerOnFileReceived: (files: File[]) => void): {
|
|
2
|
-
isDragOver: boolean;
|
|
3
|
-
handleDragEvents: {
|
|
4
|
-
onDrop: (e: React.DragEvent<HTMLDivElement>) => Promise<void>;
|
|
5
|
-
onDragLeave: () => void;
|
|
6
|
-
onDragEnter: (e: React.DragEvent) => void;
|
|
7
|
-
onDragOver: (e: React.DragEvent) => void;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useRemoveFilesInUploadQueue(): (duplicationOfName: Set<string>) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useResumeUnfinishedUploads(identifier: string): () => Promise<void>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { UploadStore } from '../UploadStoreProvider';
|
|
2
|
-
import { UploadableFile } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* 未完成任务信息存储在localStorage而不是indexdb中,需要分别处理
|
|
5
|
-
* 因为之前的测试中发现,indexdb的存储方式在某些浏览器中会丢失数据
|
|
6
|
-
* 所以需要将未完成任务信息存储在localStorage中
|
|
7
|
-
*
|
|
8
|
-
* TODO: 将未完成任务信息存储在indexdb中
|
|
9
|
-
*/
|
|
10
|
-
export declare function useSaveUnfinishedUploads(uploadStore: UploadStore): void;
|
|
11
|
-
export declare function formatUnfinishedUploads(uploads: UploadableFile[]): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useTranslate(): (key: string) => string;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { FileInfo, UploadableFile, UploadManager } from '../types';
|
|
2
|
-
export declare const rootAtom: import("jotai").PrimitiveAtom<string> & {
|
|
3
|
-
init: string;
|
|
4
|
-
};
|
|
5
|
-
export declare const identifierAtom: import("jotai").PrimitiveAtom<string> & {
|
|
6
|
-
init: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const showFinishedAtom: import("jotai").PrimitiveAtom<boolean> & {
|
|
9
|
-
init: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare const uploadManagerAtom: import("jotai").PrimitiveAtom<UploadManager | null> & {
|
|
12
|
-
init: UploadManager | null;
|
|
13
|
-
};
|
|
14
|
-
export declare const onUploadSuccessAtom: import("jotai").PrimitiveAtom<((file: UploadableFile) => void) | null> & {
|
|
15
|
-
init: ((file: UploadableFile) => void) | null;
|
|
16
|
-
};
|
|
17
|
-
export declare const externalUploadContextAtom: import("jotai").PrimitiveAtom<FileInfo[]> & {
|
|
18
|
-
init: FileInfo[];
|
|
19
|
-
};
|
|
20
|
-
export declare function useUploadContext({ root, identifier, showFinished, externalUploadContext, getUploadUrls, onCancelUpload, onOnePartDone, onAllPartDone, onUploadSuccess, onDeleteFile, }: {
|
|
21
|
-
root?: string;
|
|
22
|
-
identifier: string;
|
|
23
|
-
showFinished?: boolean;
|
|
24
|
-
externalUploadContext?: FileInfo[];
|
|
25
|
-
onUploadSuccess?: (file: UploadableFile) => void;
|
|
26
|
-
} & UploadManager): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useWathUploadQueueAndSetupCurrentFile(): void;
|