@importcsv/react 0.1.16 → 0.2.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/README.md +16 -6
- package/build/bundle.css +1 -0
- package/build/bundled-styles.d.ts +1 -1
- package/build/components/CSVImporter/index.d.ts +32 -35
- package/build/i18n/de.d.ts +32 -32
- package/build/i18n/es.d.ts +32 -32
- package/build/i18n/fr.d.ts +32 -32
- package/build/i18n/i18n.d.ts +6 -6
- package/build/i18n/it.d.ts +32 -32
- package/build/i18n/useTranslation.d.ts +9 -9
- package/build/importer/components/Box/index.d.ts +2 -2
- package/build/importer/components/Box/types/index.d.ts +6 -6
- package/build/importer/components/Checkbox/index.d.ts +2 -2
- package/build/importer/components/Checkbox/types/index.d.ts +4 -4
- package/build/importer/components/Errors/index.d.ts +4 -4
- package/build/importer/components/IframeWrapper/index.d.ts +25 -25
- package/build/importer/components/ImporterLayout.d.ts +15 -0
- package/build/importer/components/Input/index.d.ts +2 -2
- package/build/importer/components/Input/types/index.d.ts +18 -18
- package/build/importer/components/Stepper/hooks/useStepper.d.ts +2 -2
- package/build/importer/components/Stepper/index.d.ts +2 -2
- package/build/importer/components/Stepper/types/index.d.ts +14 -13
- package/build/importer/components/Table/index.d.ts +9 -9
- package/build/importer/components/Table/types/index.d.ts +42 -42
- package/build/importer/components/ToggleFilter/index.d.ts +3 -3
- package/build/importer/components/ToggleFilter/types/index.d.ts +11 -11
- package/build/importer/components/Tooltip/index.d.ts +2 -2
- package/build/importer/components/Tooltip/types/index.d.ts +11 -11
- package/build/importer/components/UploaderWrapper/UploaderWrapper.d.ts +2 -2
- package/build/importer/components/UploaderWrapper/types/index.d.ts +2 -2
- package/build/importer/components/ui/alert.d.ts +8 -8
- package/build/importer/components/ui/button.d.ts +12 -12
- package/build/importer/components/ui/card.d.ts +8 -8
- package/build/importer/components/ui/checkbox.d.ts +4 -4
- package/build/importer/components/ui/dialog.d.ts +19 -19
- package/build/importer/components/ui/flex.d.ts +14 -14
- package/build/importer/components/ui/input.d.ts +5 -5
- package/build/importer/components/ui/select.d.ts +13 -13
- package/build/importer/components/ui/switch.d.ts +4 -4
- package/build/importer/components/ui/toast.d.ts +15 -15
- package/build/importer/components/ui/toaster.d.ts +1 -1
- package/build/importer/components/ui/tooltip.d.ts +13 -13
- package/build/importer/components/ui/use-toast.d.ts +44 -44
- package/build/importer/features/complete/index.d.ts +2 -2
- package/build/importer/features/complete/types/index.d.ts +5 -5
- package/build/importer/features/configure-import/index.d.ts +13 -13
- package/build/importer/features/configure-import/types/index.d.ts +13 -19
- package/build/importer/features/main/hooks/useMutableLocalStorage.d.ts +1 -1
- package/build/importer/features/main/hooks/useStepNavigation.d.ts +17 -18
- package/build/importer/features/main/index.d.ts +2 -2
- package/build/importer/features/main/types/index.d.ts +16 -16
- package/build/importer/features/map-columns/components/DropDownFields.d.ts +21 -19
- package/build/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +16 -15
- package/build/importer/features/map-columns/index.d.ts +2 -2
- package/build/importer/features/map-columns/types/index.d.ts +16 -23
- package/build/importer/features/row-selection/index.d.ts +2 -2
- package/build/importer/features/row-selection/types/index.d.ts +8 -8
- package/build/importer/features/uploader/hooks/useTemplateTable.d.ts +10 -10
- package/build/importer/features/uploader/index.d.ts +2 -2
- package/build/importer/features/uploader/types/index.d.ts +9 -9
- package/build/importer/features/validation/Validation.d.ts +2 -2
- package/build/importer/features/validation/components/TransformModal.d.ts +18 -18
- package/build/importer/features/validation/index.d.ts +1 -1
- package/build/importer/features/validation/types.d.ts +32 -32
- package/build/importer/hooks/useClickOutside.d.ts +1 -1
- package/build/importer/hooks/useCustomStyles.d.ts +1 -1
- package/build/importer/hooks/useDemoData.d.ts +16 -0
- package/build/importer/hooks/useEventListener.d.ts +4 -4
- package/build/importer/hooks/useImporterSchema.d.ts +21 -0
- package/build/importer/hooks/useIsomorphicLayoutEffect.d.ts +3 -3
- package/build/importer/hooks/useRect.d.ts +12 -12
- package/build/importer/hooks/useWindowSize.d.ts +1 -1
- package/build/importer/providers/Theme.d.ts +5 -6
- package/build/importer/providers/index.d.ts +5 -5
- package/build/importer/providers/types/index.d.ts +4 -4
- package/build/importer/services/api.d.ts +1 -0
- package/build/importer/services/dataProcessor.d.ts +38 -0
- package/build/importer/services/mapping.d.ts +31 -31
- package/build/importer/services/transformation.d.ts +70 -70
- package/build/importer/settings/theme/colors.d.ts +4 -4
- package/build/importer/settings/theme/index.d.ts +2 -2
- package/build/importer/settings/theme/sizes.d.ts +7 -7
- package/build/importer/stores/theme.d.ts +17 -17
- package/build/importer/types/index.d.ts +9 -17
- package/build/importer/utils/colorUtils.d.ts +48 -44
- package/build/importer/utils/getStringLengthOfChildren.d.ts +2 -2
- package/build/importer/utils/stringSimilarity.d.ts +1 -1
- package/build/importer/utils/template.d.ts +2 -2
- package/build/importer/utils/utils.d.ts +19 -11
- package/build/index.d.ts +4 -3
- package/build/index.esm.js +10896 -34418
- package/build/index.esm.js.map +1 -1
- package/build/index.js +262 -37879
- package/build/index.js.map +1 -1
- package/build/js.d.ts +39 -40
- package/build/settings/defaults.d.ts +3 -3
- package/build/styles.d.ts +1 -1
- package/build/types/index.d.ts +105 -33
- package/build/utils/cn.d.ts +6 -0
- package/build/validation/transformer.d.ts +33 -0
- package/build/validation/validator.d.ts +23 -0
- package/package.json +14 -41
- package/build/App.d.ts +0 -2
- package/build/build/bundle.css +0 -3785
- package/build/config/index.d.ts +0 -5
- package/build/importer/components/Portal/index.d.ts +0 -3
- package/build/importer/components/Portal/types/index.d.ts +0 -5
- package/build/importer/components/Table/storyData.d.ts +0 -36
- package/build/importer/features/map-columns/hooks/useNameChange.d.ts +0 -5
- package/build/importer/features/validation/SimpleValidation.d.ts +0 -2
- package/build/importer/features/validation/components/SimpleSpreadsheetGrid/SimpleSpreadsheetGrid.d.ts +0 -27
- package/build/importer/features/validation/components/SimpleSpreadsheetGrid/index.d.ts +0 -1
- package/build/importer/features/validation/components/SpreadsheetGrid/CellSelection.d.ts +0 -15
- package/build/importer/features/validation/components/SpreadsheetGrid/ClipboardManager.d.ts +0 -20
- package/build/importer/features/validation/components/SpreadsheetGrid/FindReplaceModal.d.ts +0 -14
- package/build/importer/features/validation/components/SpreadsheetGrid/SpreadsheetGrid.d.ts +0 -37
- package/build/importer/features/validation/components/SpreadsheetGrid/UndoRedoManager.d.ts +0 -15
- package/build/importer/features/validation/components/SpreadsheetGrid/index.d.ts +0 -1
- package/build/importer/hooks/useDelayLoader.d.ts +0 -2
- package/build/importer/settings/chakra/components/alert.d.ts +0 -31
- package/build/importer/settings/chakra/components/button.d.ts +0 -37
- package/build/importer/settings/chakra/components/index.d.ts +0 -2
- package/build/importer/settings/chakra/foundations/blur.d.ts +0 -11
- package/build/importer/settings/chakra/foundations/borders.d.ts +0 -8
- package/build/importer/settings/chakra/foundations/breakpoints.d.ts +0 -9
- package/build/importer/settings/chakra/foundations/colors.d.ts +0 -247
- package/build/importer/settings/chakra/foundations/index.d.ts +0 -487
- package/build/importer/settings/chakra/foundations/radius.d.ts +0 -12
- package/build/importer/settings/chakra/foundations/shadows.d.ts +0 -14
- package/build/importer/settings/chakra/foundations/sizes.d.ts +0 -60
- package/build/importer/settings/chakra/foundations/spacing.d.ts +0 -35
- package/build/importer/settings/chakra/foundations/transition.d.ts +0 -24
- package/build/importer/settings/chakra/foundations/typography.d.ts +0 -61
- package/build/importer/settings/chakra/foundations/z-index.d.ts +0 -16
- package/build/importer/settings/chakra/index.d.ts +0 -592
- package/build/importer/settings/chakra/semantic-tokens.d.ts +0 -32
- package/build/importer/settings/chakra/styles.d.ts +0 -2
- package/build/importer/settings/chakra/theme.types.d.ts +0 -93
- package/build/importer/settings/chakra/utils/is-chakra-theme.d.ts +0 -3
- package/build/importer/settings/chakra/utils/run-if-fn.d.ts +0 -1
- package/build/importer/utils/classes.d.ts +0 -2
- package/build/importer/utils/debounce.d.ts +0 -2
- package/build/index.dev.d.ts +0 -1
- package/build/package.json +0 -92
- package/build/services/api.d.ts +0 -18
- package/build/services/apiClient.d.ts +0 -21
- package/build/utils/classes.d.ts +0 -6
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function runIfFn<T, U>(valueOrFn: T | ((...fnArgs: U[]) => T), ...args: U[]): T;
|
package/build/index.dev.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/build/package.json
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "csv-import-js",
|
|
3
|
-
"version": "1.0.14",
|
|
4
|
-
"description": "Open-source CSV and XLS/XLSX file importer for React and JavaScript",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"files": ["."],
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/tableflowhq/csv-import.git"
|
|
10
|
-
},
|
|
11
|
-
"keywords": ["csv", "import", "excel", "data", "importer", "react", "tableflow", "csv-import"],
|
|
12
|
-
"author": "TableFlow",
|
|
13
|
-
"license": "MIT",
|
|
14
|
-
"bugs": {
|
|
15
|
-
"url": "https://github.com/tableflowhq/csv-import/issues"
|
|
16
|
-
},
|
|
17
|
-
"homepage": "https://github.com/tableflowhq/csv-import#readme",
|
|
18
|
-
"types": "index.d.ts",
|
|
19
|
-
"peerDependencies": {
|
|
20
|
-
"react": ">=18.0.0",
|
|
21
|
-
"react-dom": ">=18.0.0"
|
|
22
|
-
},
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"@babel/preset-env": "^7.22.4",
|
|
25
|
-
"@babel/preset-react": "^7.22.3",
|
|
26
|
-
"@babel/preset-typescript": "^7.21.5",
|
|
27
|
-
"@rollup/plugin-commonjs": "^17.1.0",
|
|
28
|
-
"@rollup/plugin-image": "^2.1.1",
|
|
29
|
-
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
30
|
-
"@rollup/plugin-replace": "^5.0.5",
|
|
31
|
-
"@storybook/addon-essentials": "7.0.18",
|
|
32
|
-
"@storybook/addon-interactions": "7.0.18",
|
|
33
|
-
"@storybook/addon-links": "7.0.18",
|
|
34
|
-
"@storybook/blocks": "7.0.18",
|
|
35
|
-
"@storybook/react": "7.0.18",
|
|
36
|
-
"@storybook/react-webpack5": "7.0.18",
|
|
37
|
-
"@storybook/testing-library": "0.0.14-next.2",
|
|
38
|
-
"@testing-library/jest-dom": "^5.14.1",
|
|
39
|
-
"@testing-library/react": "^11.2.7",
|
|
40
|
-
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
|
|
41
|
-
"@types/babel__core": "^7.20.1",
|
|
42
|
-
"@types/jest": "^24.9.1",
|
|
43
|
-
"@types/papaparse": "^5.3.14",
|
|
44
|
-
"@types/react": "^18.0.0",
|
|
45
|
-
"@types/react-dom": "^18.0.0",
|
|
46
|
-
"@types/use-sync-external-store": "0.0.3",
|
|
47
|
-
"@types/xlsx": "^0.0.36",
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
|
49
|
-
"@typescript-eslint/parser": "^5.56.0",
|
|
50
|
-
"core-js": "^3.22.7",
|
|
51
|
-
"css-loader": "^6.8.1",
|
|
52
|
-
"eslint-config-prettier": "^8.8.0",
|
|
53
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
54
|
-
"eslint-plugin-react": "^7.32.2",
|
|
55
|
-
"identity-obj-proxy": "^3.0.0",
|
|
56
|
-
"jest": "^26.6.3",
|
|
57
|
-
"node-sass": "^9.0.0",
|
|
58
|
-
"prettier": "^2.8.6",
|
|
59
|
-
"prop-types": "^15.8.1",
|
|
60
|
-
"react": "18.2.0",
|
|
61
|
-
"react-dom": "18.2.0",
|
|
62
|
-
"rollup": "^2.56.3",
|
|
63
|
-
"rollup-plugin-copy": "^3.4.0",
|
|
64
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
65
|
-
"rollup-plugin-postcss": "^3.1.8",
|
|
66
|
-
"rollup-plugin-typescript2": "^0.29.0",
|
|
67
|
-
"sass": "^1.69.7",
|
|
68
|
-
"sass-loader": "^13.3.3",
|
|
69
|
-
"storybook": "7.0.18",
|
|
70
|
-
"style-loader": "^3.3.3",
|
|
71
|
-
"ts-jest": "^26.5.6",
|
|
72
|
-
"typescript": "^4.5.5",
|
|
73
|
-
"typescript-plugin-css-modules": "^3.4.0",
|
|
74
|
-
"use-sync-external-store": "^1.2.0"
|
|
75
|
-
},
|
|
76
|
-
"dependencies": {
|
|
77
|
-
"@chakra-ui/alert": "^2.2.2",
|
|
78
|
-
"@chakra-ui/button": "^2.1.0",
|
|
79
|
-
"@chakra-ui/react": "^2.8.1",
|
|
80
|
-
"@chakra-ui/system": "^2.6.2",
|
|
81
|
-
"@emotion/react": "^11.11.3",
|
|
82
|
-
"@emotion/styled": "^11.11.0",
|
|
83
|
-
"@rollup/plugin-json": "^6.1.0",
|
|
84
|
-
"framer-motion": "^10.17.12",
|
|
85
|
-
"papaparse": "^5.4.1",
|
|
86
|
-
"react-dropzone": "^14.2.3",
|
|
87
|
-
"react-icons": "^4.12.0",
|
|
88
|
-
"xlsx": "^0.18.5",
|
|
89
|
-
"zustand": "^4.4.7"
|
|
90
|
-
},
|
|
91
|
-
"type": "module"
|
|
92
|
-
}
|
package/build/services/api.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export namespace authApi {
|
|
2
|
-
function login(email: string, password: string): Promise<Object>;
|
|
3
|
-
function getCurrentUser(token: string): Promise<Object>;
|
|
4
|
-
}
|
|
5
|
-
export namespace schemaApi {
|
|
6
|
-
function getSchemas(token: string): Promise<any[]>;
|
|
7
|
-
function getSchemaTemplate(token: string, schemaId: number): Promise<Object>;
|
|
8
|
-
}
|
|
9
|
-
export namespace importApi {
|
|
10
|
-
function processCSVData(token: string, schemaId: number, importData: Object): Promise<Object>;
|
|
11
|
-
function getImportJobStatus(token: string, jobId: number): Promise<Object>;
|
|
12
|
-
}
|
|
13
|
-
declare namespace _default {
|
|
14
|
-
export { authApi as auth };
|
|
15
|
-
export { schemaApi as schema };
|
|
16
|
-
export { importApi as import };
|
|
17
|
-
}
|
|
18
|
-
export default _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export namespace authApi {
|
|
2
|
-
function login(email: string, password: string): Promise<Object>;
|
|
3
|
-
function logout(): Promise<void>;
|
|
4
|
-
function getCurrentUser(): Promise<Object>;
|
|
5
|
-
}
|
|
6
|
-
export namespace schemaApi {
|
|
7
|
-
function getSchemas(): Promise<any[]>;
|
|
8
|
-
function getSchemaTemplate(schemaId: number): Promise<Object>;
|
|
9
|
-
}
|
|
10
|
-
export namespace importApi {
|
|
11
|
-
function processCSVData(schemaId: number, importData: Object): Promise<Object>;
|
|
12
|
-
function getImportJobStatus(jobId: number): Promise<Object>;
|
|
13
|
-
}
|
|
14
|
-
declare namespace _default {
|
|
15
|
-
export { apiClient as client };
|
|
16
|
-
export { authApi as auth };
|
|
17
|
-
export { schemaApi as schema };
|
|
18
|
-
export { importApi as import };
|
|
19
|
-
}
|
|
20
|
-
export default _default;
|
|
21
|
-
declare const apiClient: any;
|