@zjlab-fe/data-hub-ui 0.0.2 → 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 (42) hide show
  1. package/README.md +6 -0
  2. package/dist/types/components/input-tag/demo/index.d.ts +1 -0
  3. package/dist/types/components/input-tag/index.d.ts +21 -0
  4. package/dist/types/components/uploadDrawer/UploadStoreProvider.d.ts +36 -0
  5. package/dist/types/components/uploadDrawer/demo/index.d.ts +1 -0
  6. package/dist/types/components/uploadDrawer/fileUploadDrawer.d.ts +11 -0
  7. package/dist/types/components/uploadDrawer/fileUploadDrawerFileDragger.d.ts +9 -0
  8. package/dist/types/components/uploadDrawer/fileUploadDrawerList.d.ts +4 -0
  9. package/dist/types/components/uploadDrawer/fileUploadDrawerListProgressButton.d.ts +5 -0
  10. package/dist/types/components/uploadDrawer/hooks/useCancelUpload.d.ts +2 -0
  11. package/dist/types/components/uploadDrawer/hooks/useFilterFiles.d.ts +7 -0
  12. package/dist/types/components/uploadDrawer/hooks/useFinishUpload.d.ts +2 -0
  13. package/dist/types/components/uploadDrawer/hooks/useFormatFiles.d.ts +1 -0
  14. package/dist/types/components/uploadDrawer/hooks/useProgressButtonRef.d.ts +4 -0
  15. package/dist/types/components/uploadDrawer/hooks/useRemoveFilesInUploadQueue.d.ts +1 -0
  16. package/dist/types/components/uploadDrawer/hooks/useResumeUnfinishedUploads.d.ts +1 -0
  17. package/dist/types/components/uploadDrawer/hooks/useRetryUpload.d.ts +5 -0
  18. package/dist/types/components/uploadDrawer/hooks/useSaveUnfinishedUploads.d.ts +2 -0
  19. package/dist/types/components/uploadDrawer/hooks/useSetupUpload.d.ts +2 -0
  20. package/dist/types/components/uploadDrawer/hooks/useUploadFileToOSS.d.ts +2 -0
  21. package/dist/types/components/uploadDrawer/index.d.ts +44 -0
  22. package/dist/types/components/uploadDrawer/utils/calcDisplaySize.d.ts +1 -0
  23. package/dist/types/components/uploadDrawer/utils/constant.d.ts +14 -0
  24. package/dist/types/components/uploadDrawer/utils/createFileToUpload.d.ts +3 -0
  25. package/dist/types/components/uploadDrawer/utils/fileDB/deleteFileInStore.d.ts +1 -0
  26. package/dist/types/components/uploadDrawer/utils/fileDB/deleteObjectStore.d.ts +1 -0
  27. package/dist/types/components/uploadDrawer/utils/fileDB/handleAddFilesToDB.d.ts +2 -0
  28. package/dist/types/components/uploadDrawer/utils/fileDB/index.d.ts +7 -0
  29. package/dist/types/components/uploadDrawer/utils/fileDB/openDB.d.ts +2 -0
  30. package/dist/types/components/uploadDrawer/utils/index.d.ts +27 -0
  31. package/dist/types/components/uploadDrawer/utils/reloadSaveData.d.ts +2 -0
  32. package/dist/types/components/uploadDrawer/utils/retrieveAllFiles.d.ts +9 -0
  33. package/dist/types/components/uploadDrawer/utils/shouldCreateNewFile.d.ts +2 -0
  34. package/dist/types/components/uploadDrawer/utils/splitFileIntoChunk.d.ts +8 -0
  35. package/dist/types/demo/router/index.d.ts +10 -0
  36. package/dist/types/index.d.ts +3 -0
  37. package/es/index.js +1 -1
  38. package/jest.config.js +10 -0
  39. package/lib/index.js +1 -1
  40. package/package.json +92 -71
  41. package/postcss.config.js +6 -0
  42. package/tailwind.config.js +8 -0
package/jest.config.js ADDED
@@ -0,0 +1,10 @@
1
+ /** @type {import('ts-jest').JestConfigWithTsJest} **/
2
+ module.exports = {
3
+ testEnvironment: 'jsdom',
4
+ transform: {
5
+ '^.+.tsx?$': ['ts-jest', {}],
6
+ },
7
+ moduleNameMapper: {
8
+ '\\.(css|less)$': '<rootDir>/__mocks__/styleMock.js',
9
+ },
10
+ };