@zjlab-fe/data-hub-ui 0.0.3 → 0.0.4

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.
Files changed (40) hide show
  1. package/README.md +6 -0
  2. package/dist/types/components/uploadDrawer/UploadStoreProvider.d.ts +36 -0
  3. package/dist/types/components/uploadDrawer/demo/index.d.ts +1 -0
  4. package/dist/types/components/uploadDrawer/fileUploadDrawer.d.ts +11 -0
  5. package/dist/types/components/uploadDrawer/fileUploadDrawerFileDragger.d.ts +9 -0
  6. package/dist/types/components/uploadDrawer/fileUploadDrawerList.d.ts +4 -0
  7. package/dist/types/components/uploadDrawer/fileUploadDrawerListProgressButton.d.ts +5 -0
  8. package/dist/types/components/uploadDrawer/hooks/useCancelUpload.d.ts +2 -0
  9. package/dist/types/components/uploadDrawer/hooks/useFilterFiles.d.ts +7 -0
  10. package/dist/types/components/uploadDrawer/hooks/useFinishUpload.d.ts +2 -0
  11. package/dist/types/components/uploadDrawer/hooks/useFormatFiles.d.ts +1 -0
  12. package/dist/types/components/uploadDrawer/hooks/useProgressButtonRef.d.ts +4 -0
  13. package/dist/types/components/uploadDrawer/hooks/useRemoveFilesInUploadQueue.d.ts +1 -0
  14. package/dist/types/components/uploadDrawer/hooks/useResumeUnfinishedUploads.d.ts +1 -0
  15. package/dist/types/components/uploadDrawer/hooks/useRetryUpload.d.ts +5 -0
  16. package/dist/types/components/uploadDrawer/hooks/useSaveUnfinishedUploads.d.ts +2 -0
  17. package/dist/types/components/uploadDrawer/hooks/useSetupUpload.d.ts +2 -0
  18. package/dist/types/components/uploadDrawer/hooks/useUploadFileToOSS.d.ts +2 -0
  19. package/dist/types/components/uploadDrawer/index.d.ts +44 -0
  20. package/dist/types/components/uploadDrawer/utils/calcDisplaySize.d.ts +1 -0
  21. package/dist/types/components/uploadDrawer/utils/constant.d.ts +14 -0
  22. package/dist/types/components/uploadDrawer/utils/createFileToUpload.d.ts +3 -0
  23. package/dist/types/components/uploadDrawer/utils/fileDB/deleteFileInStore.d.ts +1 -0
  24. package/dist/types/components/uploadDrawer/utils/fileDB/deleteObjectStore.d.ts +1 -0
  25. package/dist/types/components/uploadDrawer/utils/fileDB/handleAddFilesToDB.d.ts +2 -0
  26. package/dist/types/components/uploadDrawer/utils/fileDB/index.d.ts +7 -0
  27. package/dist/types/components/uploadDrawer/utils/fileDB/openDB.d.ts +2 -0
  28. package/dist/types/components/uploadDrawer/utils/index.d.ts +27 -0
  29. package/dist/types/components/uploadDrawer/utils/reloadSaveData.d.ts +2 -0
  30. package/dist/types/components/uploadDrawer/utils/retrieveAllFiles.d.ts +9 -0
  31. package/dist/types/components/uploadDrawer/utils/shouldCreateNewFile.d.ts +2 -0
  32. package/dist/types/components/uploadDrawer/utils/splitFileIntoChunk.d.ts +8 -0
  33. package/dist/types/demo/router/index.d.ts +10 -0
  34. package/dist/types/index.d.ts +1 -0
  35. package/es/index.js +1 -1
  36. package/jest.config.js +10 -0
  37. package/lib/index.js +1 -1
  38. package/package.json +92 -71
  39. package/postcss.config.js +6 -0
  40. package/tailwind.config.js +8 -0
package/package.json CHANGED
@@ -1,71 +1,92 @@
1
- {
2
- "name": "@zjlab-fe/data-hub-ui",
3
- "version": "0.0.3",
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 --config webpack.dev.config.js",
10
- "build": "npm run build:lib & npm run build:es",
11
- "build:lib": "cross-env NODE_ENV=production webpack --config webpack.prod.config.js",
12
- "build:es": "cross-env NODE_ENV=production OUTPUT_TYPE=module webpack --config webpack.prod.config.js",
13
- "lint": "npm run lint-eslint",
14
- "lint-eslint": "eslint -c .eslintrc.js --ext .ts,.tsx,.js,.jsx src",
15
- "prepare": "husky"
16
- },
17
- "devDependencies": {
18
- "@babel/core": "^7.24.7",
19
- "@babel/preset-react": "^7.24.7",
20
- "@types/react": "^18.3.3",
21
- "@types/react-dom": "^18.3.0",
22
- "@typescript-eslint/eslint-plugin": "^7.16.0",
23
- "@typescript-eslint/parser": "^7.16.0",
24
- "babel-loader": "^9.1.3",
25
- "babel-preset-react-app": "^10.0.1",
26
- "cross-env": "^7.0.3",
27
- "css-loader": "^7.1.2",
28
- "eslint": "8.x",
29
- "eslint-config-prettier": "^9.1.0",
30
- "eslint-plugin-prettier": "^5.1.3",
31
- "eslint-plugin-react": "^7.34.4",
32
- "eslint-plugin-react-hooks": "^4.6.2",
33
- "file-loader": "^6.2.0",
34
- "html-webpack-plugin": "^5.6.0",
35
- "husky": "^9.0.11",
36
- "lint-staged": "^15.2.7",
37
- "mini-css-extract-plugin": "^2.9.0",
38
- "prettier": "^3.3.3",
39
- "sass": "^1.77.6",
40
- "sass-loader": "^14.2.1",
41
- "style-loader": "^4.0.0",
42
- "ts-loader": "^9.5.1",
43
- "url-loader": "^4.1.1",
44
- "webpack": "^5.92.1",
45
- "webpack-cli": "^5.1.4",
46
- "webpack-dev-server": "^5.0.4"
47
- },
48
- "dependencies": {
49
- "@ant-design/icons": "^5.3.7",
50
- "antd": "^5.19.0",
51
- "axios": "^1.7.2",
52
- "dayjs": "^1.11.11",
53
- "react": "^18.3.1",
54
- "react-dom": "^18.3.1",
55
- "react-router": "^6.24.1",
56
- "react-router-dom": "^6.24.1"
57
- },
58
- "husky": {
59
- "hooks": {
60
- "pre-commit": "lint-staged"
61
- }
62
- },
63
- "lint-staged": {
64
- "*.{ts,tsx,js,jsx}": [
65
- "eslint --config .eslintrc.js"
66
- ]
67
- },
68
- "publishConfig": {
69
- "registry": "https://registry.npmjs.org/"
70
- }
71
- }
1
+ {
2
+ "name": "@zjlab-fe/data-hub-ui",
3
+ "version": "0.0.4",
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 --config webpack.dev.config.js",
10
+ "build": "npm run build:lib & npm run build:es",
11
+ "build:lib": "cross-env NODE_ENV=production webpack --config webpack.prod.config.js",
12
+ "build:es": "cross-env NODE_ENV=production OUTPUT_TYPE=module webpack --config webpack.prod.config.js",
13
+ "lint": "npm run lint-eslint",
14
+ "lint-eslint": "eslint -c .eslintrc.js --ext .ts,.tsx,.js,.jsx src --fix",
15
+ "prepare": "husky",
16
+ "test": "jest --coverage"
17
+ },
18
+ "devDependencies": {
19
+ "@babel/core": "^7.24.7",
20
+ "@babel/preset-env": "^7.25.7",
21
+ "@babel/preset-react": "^7.24.7",
22
+ "@babel/preset-typescript": "^7.25.7",
23
+ "@jest/globals": "^29.7.0",
24
+ "@testing-library/dom": "^10.4.0",
25
+ "@testing-library/react": "^16.0.1",
26
+ "@types/filesystem": "^0.0.36",
27
+ "@types/jest": "^29.5.13",
28
+ "@types/react": "^18.3.3",
29
+ "@types/react-dom": "^18.3.0",
30
+ "@typescript-eslint/eslint-plugin": "^7.16.0",
31
+ "@typescript-eslint/parser": "^7.16.0",
32
+ "babel-jest": "^29.7.0",
33
+ "babel-loader": "^9.1.3",
34
+ "babel-preset-react-app": "^10.0.1",
35
+ "cross-env": "^7.0.3",
36
+ "css-loader": "^7.1.2",
37
+ "eslint": "8.x",
38
+ "eslint-config-prettier": "^9.1.0",
39
+ "eslint-plugin-prettier": "^5.1.3",
40
+ "eslint-plugin-react": "^7.34.4",
41
+ "eslint-plugin-react-hooks": "^4.6.2",
42
+ "file-loader": "^6.2.0",
43
+ "html-webpack-plugin": "^5.6.0",
44
+ "husky": "^9.0.11",
45
+ "jest": "^29.7.0",
46
+ "jest-environment-jsdom": "^29.7.0",
47
+ "lint-staged": "^15.2.7",
48
+ "mini-css-extract-plugin": "^2.9.0",
49
+ "postcss": "^8.4.47",
50
+ "postcss-loader": "^8.1.1",
51
+ "postcss-nested": "^6.2.0",
52
+ "prettier": "^3.3.3",
53
+ "react-test-renderer": "^18.3.1",
54
+ "sass": "^1.77.6",
55
+ "sass-loader": "^14.2.1",
56
+ "style-loader": "^4.0.0",
57
+ "ts-jest": "^29.2.5",
58
+ "ts-loader": "^9.5.1",
59
+ "ts-node": "^10.9.2",
60
+ "typescript": "^5.6.3",
61
+ "url-loader": "^4.1.1",
62
+ "webpack": "^5.92.1",
63
+ "webpack-cli": "^5.1.4",
64
+ "webpack-dev-server": "^5.0.4"
65
+ },
66
+ "dependencies": {
67
+ "@ant-design/icons": "^5.3.7",
68
+ "antd": "^5.19.2",
69
+ "autoprefixer": "^10.4.20",
70
+ "axios": "^1.7.2",
71
+ "dayjs": "^1.11.11",
72
+ "react": "^18.3.1",
73
+ "react-dom": "^18.3.1",
74
+ "react-router": "^6.24.1",
75
+ "react-router-dom": "^6.24.1",
76
+ "tailwindcss": "^3.4.13"
77
+ },
78
+ "husky": {
79
+ "hooks": {
80
+ "pre-commit": "lint-staged"
81
+ }
82
+ },
83
+ "lint-staged": {
84
+ "*.{ts,tsx,js,jsx}": [
85
+ "eslint --config .eslintrc.js"
86
+ ]
87
+ },
88
+ "publishConfig": {
89
+ "registry": "https://registry.npmjs.org/"
90
+ },
91
+ "packageManager": "pnpm@9.12.1+sha256.91452fdfa46234ae447d46d5c4fc4e7e0a7058f90495c4b6f77f8beebbb154e3"
92
+ }
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ };
@@ -0,0 +1,8 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ content: ['./src/components/uploadDrawer/**/*.{js,jsx,ts,tsx}'],
4
+ theme: {
5
+ extend: {},
6
+ },
7
+ plugins: [],
8
+ };