antd-import-export 0.0.0-stage → 1.0.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/LICENSE +21 -0
- package/README.md +197 -2
- package/README_EN.md +145 -0
- package/dist/components/BatchExportButton.d.ts +10 -0
- package/dist/components/ExcelExportButton.d.ts +15 -0
- package/dist/components/ExcelImportButton.d.ts +11 -0
- package/dist/components/ExportTaskModal.d.ts +7 -0
- package/dist/components/ImportCheckContent.d.ts +10 -0
- package/dist/components/ImportPreviewModal.d.ts +19 -0
- package/dist/core/excel/importEditor.d.ts +7 -0
- package/dist/core/excel/importRow.d.ts +14 -0
- package/dist/core/excel/parseSheet.d.ts +18 -0
- package/dist/core/excel/runtime.d.ts +11 -0
- package/dist/core/excel/worksheet.d.ts +13 -0
- package/dist/core/httpError.d.ts +6 -0
- package/dist/core/limits.d.ts +5 -0
- package/dist/core/schema/index.d.ts +88 -0
- package/dist/core/schema/multiValue.d.ts +4 -0
- package/dist/core/schema/validate.d.ts +21 -0
- package/dist/core/taskManager.d.ts +123 -0
- package/dist/core/types.d.ts +16 -0
- package/dist/index.cjs +6 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.mjs +2172 -0
- package/dist/react/useDebouncedValue.d.ts +2 -0
- package/dist/react/useTaskDetail.d.ts +2 -0
- package/dist/react/useThrottledValue.d.ts +2 -0
- package/package.json +96 -4
package/package.json
CHANGED
|
@@ -1,6 +1,98 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-import-export",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.0.1",
|
|
5
|
+
"description": "Schema-driven Excel import and export for Ant Design: template generation, client-side validation, batched submission, row-level error feedback and cursor-based export",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.mjs",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"README.md",
|
|
20
|
+
"README_EN.md",
|
|
21
|
+
"LICENSE"
|
|
22
|
+
],
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "rm -rf dist && npx vite build && npx tsc -p tsconfig.json",
|
|
26
|
+
"dev": "npx vite build --watch",
|
|
27
|
+
"preview": "npm run build && npx vite --config vite.config.preview.ts",
|
|
28
|
+
"build:preview": "npm run build && npx vite build --config vite.config.preview.ts",
|
|
29
|
+
"prepublishOnly": "npm run build",
|
|
30
|
+
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
|
|
31
|
+
"lint:fix": "eslint . --fix",
|
|
32
|
+
"format": "prettier --write \"src/**/*.{ts,tsx}\" \"preview/**/*.{ts,tsx}\"",
|
|
33
|
+
"typecheck": "tsc --noEmit",
|
|
34
|
+
"test": "vitest run",
|
|
35
|
+
"typecheck:preview": "tsc -p tsconfig.preview.json",
|
|
36
|
+
"verify": "npm run lint && npm run test && npm run build && npm run typecheck:preview"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@ant-design/icons": ">=5.0.0",
|
|
40
|
+
"antd": ">=6.0.0",
|
|
41
|
+
"react": ">=18.2.0",
|
|
42
|
+
"react-dom": ">=18.2.0"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"dayjs": "^1.11.13",
|
|
46
|
+
"decimal.js": "^10.6.0",
|
|
47
|
+
"exceljs": "^4.4.0",
|
|
48
|
+
"file-saver": "^2.0.5"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@eslint/js": "^9.39.4",
|
|
52
|
+
"@types/file-saver": "^2.0.7",
|
|
53
|
+
"@types/node": "^25.9.1",
|
|
54
|
+
"@types/react": "^19.2.14",
|
|
55
|
+
"@types/react-dom": "^19.2.3",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^8.60.0",
|
|
57
|
+
"@typescript-eslint/parser": "^8.60.0",
|
|
58
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
59
|
+
"antd": "^6.3.4",
|
|
60
|
+
"eslint": "^9.39.4",
|
|
61
|
+
"eslint-config-prettier": "^10.1.8",
|
|
62
|
+
"eslint-plugin-react": "^7.37.5",
|
|
63
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
64
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
65
|
+
"globals": "^17.6.0",
|
|
66
|
+
"prettier": "^3.8.3",
|
|
67
|
+
"react": "^19.2.6",
|
|
68
|
+
"react-dom": "^19.2.6",
|
|
69
|
+
"typescript": "~6.0.2",
|
|
70
|
+
"typescript-eslint": "^8.60.0",
|
|
71
|
+
"vite": "^8.0.12",
|
|
72
|
+
"vitest": "^5.1.1"
|
|
73
|
+
},
|
|
74
|
+
"keywords": [
|
|
75
|
+
"react",
|
|
76
|
+
"antd",
|
|
77
|
+
"ant-design",
|
|
78
|
+
"excel",
|
|
79
|
+
"xlsx",
|
|
80
|
+
"exceljs",
|
|
81
|
+
"import",
|
|
82
|
+
"export",
|
|
83
|
+
"template",
|
|
84
|
+
"validation",
|
|
85
|
+
"batch",
|
|
86
|
+
"typescript"
|
|
87
|
+
],
|
|
88
|
+
"author": "Czw96",
|
|
89
|
+
"license": "MIT",
|
|
90
|
+
"repository": {
|
|
91
|
+
"type": "git",
|
|
92
|
+
"url": "git+https://github.com/Czw96/antd-import-export.git"
|
|
93
|
+
},
|
|
94
|
+
"bugs": {
|
|
95
|
+
"url": "https://github.com/Czw96/antd-import-export/issues"
|
|
96
|
+
},
|
|
97
|
+
"homepage": "https://github.com/Czw96/antd-import-export#readme"
|
|
98
|
+
}
|