@importcsv/react 0.1.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/LICENSE +21 -0
- package/README.md +470 -0
- package/build/App.d.ts +2 -0
- package/build/api.d.ts +17 -0
- package/build/components/CSVImporter/CSVImporter.stories.d.ts +44 -0
- package/build/components/CSVImporter/index.d.ts +26 -0
- package/build/config/environments.d.ts +12 -0
- package/build/config/index.d.ts +5 -0
- package/build/config.d.ts +10 -0
- package/build/i18n/de.d.ts +32 -0
- package/build/i18n/es.d.ts +32 -0
- package/build/i18n/fr.d.ts +32 -0
- package/build/i18n/i18n.d.ts +2 -0
- package/build/i18n/it.d.ts +32 -0
- package/build/importer/components/Box/index.d.ts +2 -0
- package/build/importer/components/Box/types/index.d.ts +5 -0
- package/build/importer/components/Checkbox/index.d.ts +2 -0
- package/build/importer/components/Checkbox/types/index.d.ts +4 -0
- package/build/importer/components/Errors/index.d.ts +4 -0
- package/build/importer/components/Input/index.d.ts +2 -0
- package/build/importer/components/Input/types/index.d.ts +18 -0
- package/build/importer/components/Portal/index.d.ts +3 -0
- package/build/importer/components/Portal/types/index.d.ts +5 -0
- package/build/importer/components/Stepper/hooks/useStepper.d.ts +2 -0
- package/build/importer/components/Stepper/index.d.ts +2 -0
- package/build/importer/components/Stepper/types/index.d.ts +13 -0
- package/build/importer/components/Table/index.d.ts +9 -0
- package/build/importer/components/Table/storyData.d.ts +36 -0
- package/build/importer/components/Table/types/index.d.ts +42 -0
- package/build/importer/components/ToggleFilter/ToggleFilter.stories.d.ts +18 -0
- package/build/importer/components/ToggleFilter/index.d.ts +3 -0
- package/build/importer/components/ToggleFilter/types/index.d.ts +11 -0
- package/build/importer/components/Tooltip/index.d.ts +2 -0
- package/build/importer/components/Tooltip/types/index.d.ts +11 -0
- package/build/importer/components/UploaderWrapper/UploaderWrapper.d.ts +2 -0
- package/build/importer/components/UploaderWrapper/types/index.d.ts +2 -0
- package/build/importer/features/complete/index.d.ts +2 -0
- package/build/importer/features/complete/types/index.d.ts +5 -0
- package/build/importer/features/main/hooks/useMutableLocalStorage.d.ts +1 -0
- package/build/importer/features/main/hooks/useStepNavigation.d.ts +17 -0
- package/build/importer/features/main/index.d.ts +2 -0
- package/build/importer/features/main/types/index.d.ts +16 -0
- package/build/importer/features/map-columns/components/DropDownFields.d.ts +19 -0
- package/build/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +15 -0
- package/build/importer/features/map-columns/hooks/useNameChange.d.ts +5 -0
- package/build/importer/features/map-columns/index.d.ts +2 -0
- package/build/importer/features/map-columns/types/index.d.ts +23 -0
- package/build/importer/features/row-selection/index.d.ts +2 -0
- package/build/importer/features/row-selection/types/index.d.ts +8 -0
- package/build/importer/features/uploader/hooks/useTemplateTable.d.ts +10 -0
- package/build/importer/features/uploader/index.d.ts +2 -0
- package/build/importer/features/uploader/types/index.d.ts +9 -0
- package/build/importer/features/validate/index.d.ts +24 -0
- package/build/importer/features/validation/AIFixModal.d.ts +23 -0
- package/build/importer/features/validation/SimpleValidation.d.ts +2 -0
- package/build/importer/features/validation/Validation.d.ts +2 -0
- package/build/importer/features/validation/ValidationFixed.d.ts +2 -0
- package/build/importer/features/validation/components/AISuggestionsPanel.d.ts +15 -0
- package/build/importer/features/validation/components/InlineFixSuggestion.d.ts +8 -0
- package/build/importer/features/validation/index.d.ts +1 -0
- package/build/importer/features/validation/types.d.ts +31 -0
- package/build/importer/hooks/useClickOutside.d.ts +1 -0
- package/build/importer/hooks/useCustomStyles.d.ts +1 -0
- package/build/importer/hooks/useDelayLoader.d.ts +2 -0
- package/build/importer/hooks/useEventListener.d.ts +4 -0
- package/build/importer/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/build/importer/hooks/useRect.d.ts +12 -0
- package/build/importer/hooks/useWindowSize.d.ts +1 -0
- package/build/importer/providers/Theme.d.ts +4 -0
- package/build/importer/providers/index.d.ts +2 -0
- package/build/importer/providers/types/index.d.ts +4 -0
- package/build/importer/services/api.d.ts +0 -0
- package/build/importer/services/validation-api.d.ts +14 -0
- package/build/importer/settings/chakra/components/alert.d.ts +31 -0
- package/build/importer/settings/chakra/components/button.d.ts +37 -0
- package/build/importer/settings/chakra/components/index.d.ts +2 -0
- package/build/importer/settings/chakra/foundations/blur.d.ts +11 -0
- package/build/importer/settings/chakra/foundations/borders.d.ts +8 -0
- package/build/importer/settings/chakra/foundations/breakpoints.d.ts +9 -0
- package/build/importer/settings/chakra/foundations/colors.d.ts +247 -0
- package/build/importer/settings/chakra/foundations/index.d.ts +487 -0
- package/build/importer/settings/chakra/foundations/radius.d.ts +12 -0
- package/build/importer/settings/chakra/foundations/shadows.d.ts +14 -0
- package/build/importer/settings/chakra/foundations/sizes.d.ts +60 -0
- package/build/importer/settings/chakra/foundations/spacing.d.ts +35 -0
- package/build/importer/settings/chakra/foundations/transition.d.ts +24 -0
- package/build/importer/settings/chakra/foundations/typography.d.ts +61 -0
- package/build/importer/settings/chakra/foundations/z-index.d.ts +16 -0
- package/build/importer/settings/chakra/index.d.ts +592 -0
- package/build/importer/settings/chakra/semantic-tokens.d.ts +32 -0
- package/build/importer/settings/chakra/styles.d.ts +2 -0
- package/build/importer/settings/chakra/theme.types.d.ts +93 -0
- package/build/importer/settings/chakra/utils/is-chakra-theme.d.ts +3 -0
- package/build/importer/settings/chakra/utils/run-if-fn.d.ts +1 -0
- package/build/importer/settings/theme/colors.d.ts +4 -0
- package/build/importer/settings/theme/index.d.ts +2 -0
- package/build/importer/settings/theme/sizes.d.ts +7 -0
- package/build/importer/stores/theme.d.ts +17 -0
- package/build/importer/types/index.d.ts +17 -0
- package/build/importer/utils/classes.d.ts +2 -0
- package/build/importer/utils/debounce.d.ts +2 -0
- package/build/importer/utils/getStringLengthOfChildren.d.ts +2 -0
- package/build/importer/utils/stringSimilarity.d.ts +1 -0
- package/build/importer/utils/template.d.ts +2 -0
- package/build/importer/utils/utils.d.ts +11 -0
- package/build/index.d.ts +2 -0
- package/build/index.esm.js +54893 -0
- package/build/index.esm.js.map +1 -0
- package/build/index.js +54919 -0
- package/build/index.js.map +1 -0
- package/build/js.d.ts +31 -0
- package/build/services/api.d.ts +18 -0
- package/build/services/apiClient.d.ts +21 -0
- package/build/settings/defaults.d.ts +3 -0
- package/build/types/index.d.ts +24 -0
- package/build/types.d.ts +91 -0
- package/package.json +122 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useWindowSize(): number[];
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ValidationError, ValidationFix, BatchFix } from '../features/validation/types';
|
|
2
|
+
/**
|
|
3
|
+
* Request LLM-powered validation fixes from the backend
|
|
4
|
+
* @param backendUrl The URL of the backend API
|
|
5
|
+
* @param importerId The ID of the importer
|
|
6
|
+
* @param validationErrors The validation errors to fix
|
|
7
|
+
* @param columnSchema The schema for the columns
|
|
8
|
+
* @param sampleValidData Sample of valid data for context
|
|
9
|
+
* @returns A promise that resolves to the suggested fixes
|
|
10
|
+
*/
|
|
11
|
+
export declare function getLLMValidationFixes(backendUrl: string, importerId: string, validationErrors: ValidationError[], columnSchema: Record<string, any>, sampleValidData?: Record<string, any>[]): Promise<{
|
|
12
|
+
fixes: ValidationFix[];
|
|
13
|
+
batchFixes: BatchFix[];
|
|
14
|
+
}>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const Alert: {
|
|
2
|
+
baseStyle?: ((props: import("@chakra-ui/styled-system").StyleFunctionProps) => {
|
|
3
|
+
container: {
|
|
4
|
+
backgroundColor: string;
|
|
5
|
+
border: string;
|
|
6
|
+
borderRadius: string;
|
|
7
|
+
fontWeight: string;
|
|
8
|
+
};
|
|
9
|
+
title: {
|
|
10
|
+
color: string;
|
|
11
|
+
};
|
|
12
|
+
description: {
|
|
13
|
+
color: string;
|
|
14
|
+
};
|
|
15
|
+
icon: {
|
|
16
|
+
color: string;
|
|
17
|
+
};
|
|
18
|
+
}) | undefined;
|
|
19
|
+
sizes?: {
|
|
20
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
21
|
+
} | undefined;
|
|
22
|
+
variants?: {
|
|
23
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
24
|
+
} | undefined;
|
|
25
|
+
defaultProps?: {
|
|
26
|
+
size?: string | number | undefined;
|
|
27
|
+
variant?: string | number | undefined;
|
|
28
|
+
colorScheme?: string | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
};
|
|
31
|
+
export { Alert };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare const Button: {
|
|
2
|
+
baseStyle?: {
|
|
3
|
+
fontWeight: string;
|
|
4
|
+
borderRadius: string;
|
|
5
|
+
height: string;
|
|
6
|
+
lineHeight: string;
|
|
7
|
+
fontSize: string;
|
|
8
|
+
border: string;
|
|
9
|
+
cursor: string;
|
|
10
|
+
} | undefined;
|
|
11
|
+
sizes?: {
|
|
12
|
+
sm: {
|
|
13
|
+
fontSize: string;
|
|
14
|
+
px: number;
|
|
15
|
+
py: number;
|
|
16
|
+
};
|
|
17
|
+
md: {
|
|
18
|
+
fontSize: string;
|
|
19
|
+
px: number;
|
|
20
|
+
py: number;
|
|
21
|
+
};
|
|
22
|
+
} | undefined;
|
|
23
|
+
variants?: {
|
|
24
|
+
solid: (props: import("@chakra-ui/styled-system").StyleFunctionProps) => {
|
|
25
|
+
_hover: {
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
};
|
|
28
|
+
color: string;
|
|
29
|
+
};
|
|
30
|
+
} | undefined;
|
|
31
|
+
defaultProps?: {
|
|
32
|
+
size?: "sm" | "md" | undefined;
|
|
33
|
+
variant?: "solid" | undefined;
|
|
34
|
+
colorScheme?: string | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
};
|
|
37
|
+
export { Button };
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
declare const colors: {
|
|
2
|
+
transparent: string;
|
|
3
|
+
current: string;
|
|
4
|
+
black: string;
|
|
5
|
+
white: string;
|
|
6
|
+
primary: {
|
|
7
|
+
50: string;
|
|
8
|
+
100: string;
|
|
9
|
+
200: string;
|
|
10
|
+
300: string;
|
|
11
|
+
400: string;
|
|
12
|
+
500: string;
|
|
13
|
+
600: string;
|
|
14
|
+
700: string;
|
|
15
|
+
800: string;
|
|
16
|
+
900: string;
|
|
17
|
+
};
|
|
18
|
+
secondary: {
|
|
19
|
+
50: string;
|
|
20
|
+
100: string;
|
|
21
|
+
200: string;
|
|
22
|
+
300: string;
|
|
23
|
+
400: string;
|
|
24
|
+
500: string;
|
|
25
|
+
600: string;
|
|
26
|
+
700: string;
|
|
27
|
+
800: string;
|
|
28
|
+
900: string;
|
|
29
|
+
};
|
|
30
|
+
whiteAlpha: {
|
|
31
|
+
50: string;
|
|
32
|
+
100: string;
|
|
33
|
+
200: string;
|
|
34
|
+
300: string;
|
|
35
|
+
400: string;
|
|
36
|
+
500: string;
|
|
37
|
+
600: string;
|
|
38
|
+
700: string;
|
|
39
|
+
800: string;
|
|
40
|
+
900: string;
|
|
41
|
+
};
|
|
42
|
+
blackAlpha: {
|
|
43
|
+
50: string;
|
|
44
|
+
100: string;
|
|
45
|
+
200: string;
|
|
46
|
+
300: string;
|
|
47
|
+
400: string;
|
|
48
|
+
500: string;
|
|
49
|
+
600: string;
|
|
50
|
+
700: string;
|
|
51
|
+
800: string;
|
|
52
|
+
900: string;
|
|
53
|
+
};
|
|
54
|
+
gray: {
|
|
55
|
+
50: string;
|
|
56
|
+
100: string;
|
|
57
|
+
200: string;
|
|
58
|
+
300: string;
|
|
59
|
+
400: string;
|
|
60
|
+
500: string;
|
|
61
|
+
600: string;
|
|
62
|
+
700: string;
|
|
63
|
+
800: string;
|
|
64
|
+
900: string;
|
|
65
|
+
};
|
|
66
|
+
red: {
|
|
67
|
+
50: string;
|
|
68
|
+
100: string;
|
|
69
|
+
200: string;
|
|
70
|
+
300: string;
|
|
71
|
+
400: string;
|
|
72
|
+
500: string;
|
|
73
|
+
600: string;
|
|
74
|
+
700: string;
|
|
75
|
+
800: string;
|
|
76
|
+
900: string;
|
|
77
|
+
};
|
|
78
|
+
orange: {
|
|
79
|
+
50: string;
|
|
80
|
+
100: string;
|
|
81
|
+
200: string;
|
|
82
|
+
300: string;
|
|
83
|
+
400: string;
|
|
84
|
+
500: string;
|
|
85
|
+
600: string;
|
|
86
|
+
700: string;
|
|
87
|
+
800: string;
|
|
88
|
+
900: string;
|
|
89
|
+
};
|
|
90
|
+
yellow: {
|
|
91
|
+
50: string;
|
|
92
|
+
100: string;
|
|
93
|
+
200: string;
|
|
94
|
+
300: string;
|
|
95
|
+
400: string;
|
|
96
|
+
500: string;
|
|
97
|
+
600: string;
|
|
98
|
+
700: string;
|
|
99
|
+
800: string;
|
|
100
|
+
900: string;
|
|
101
|
+
};
|
|
102
|
+
green: {
|
|
103
|
+
50: string;
|
|
104
|
+
100: string;
|
|
105
|
+
200: string;
|
|
106
|
+
300: string;
|
|
107
|
+
400: string;
|
|
108
|
+
500: string;
|
|
109
|
+
600: string;
|
|
110
|
+
700: string;
|
|
111
|
+
800: string;
|
|
112
|
+
900: string;
|
|
113
|
+
};
|
|
114
|
+
teal: {
|
|
115
|
+
50: string;
|
|
116
|
+
100: string;
|
|
117
|
+
200: string;
|
|
118
|
+
300: string;
|
|
119
|
+
400: string;
|
|
120
|
+
500: string;
|
|
121
|
+
600: string;
|
|
122
|
+
700: string;
|
|
123
|
+
800: string;
|
|
124
|
+
900: string;
|
|
125
|
+
};
|
|
126
|
+
blue: {
|
|
127
|
+
50: string;
|
|
128
|
+
100: string;
|
|
129
|
+
200: string;
|
|
130
|
+
300: string;
|
|
131
|
+
400: string;
|
|
132
|
+
500: string;
|
|
133
|
+
600: string;
|
|
134
|
+
700: string;
|
|
135
|
+
800: string;
|
|
136
|
+
900: string;
|
|
137
|
+
};
|
|
138
|
+
cyan: {
|
|
139
|
+
50: string;
|
|
140
|
+
100: string;
|
|
141
|
+
200: string;
|
|
142
|
+
300: string;
|
|
143
|
+
400: string;
|
|
144
|
+
500: string;
|
|
145
|
+
600: string;
|
|
146
|
+
700: string;
|
|
147
|
+
800: string;
|
|
148
|
+
900: string;
|
|
149
|
+
};
|
|
150
|
+
purple: {
|
|
151
|
+
50: string;
|
|
152
|
+
100: string;
|
|
153
|
+
200: string;
|
|
154
|
+
300: string;
|
|
155
|
+
400: string;
|
|
156
|
+
500: string;
|
|
157
|
+
600: string;
|
|
158
|
+
700: string;
|
|
159
|
+
800: string;
|
|
160
|
+
900: string;
|
|
161
|
+
};
|
|
162
|
+
pink: {
|
|
163
|
+
50: string;
|
|
164
|
+
100: string;
|
|
165
|
+
200: string;
|
|
166
|
+
300: string;
|
|
167
|
+
400: string;
|
|
168
|
+
500: string;
|
|
169
|
+
600: string;
|
|
170
|
+
700: string;
|
|
171
|
+
800: string;
|
|
172
|
+
900: string;
|
|
173
|
+
};
|
|
174
|
+
linkedin: {
|
|
175
|
+
50: string;
|
|
176
|
+
100: string;
|
|
177
|
+
200: string;
|
|
178
|
+
300: string;
|
|
179
|
+
400: string;
|
|
180
|
+
500: string;
|
|
181
|
+
600: string;
|
|
182
|
+
700: string;
|
|
183
|
+
800: string;
|
|
184
|
+
900: string;
|
|
185
|
+
};
|
|
186
|
+
facebook: {
|
|
187
|
+
50: string;
|
|
188
|
+
100: string;
|
|
189
|
+
200: string;
|
|
190
|
+
300: string;
|
|
191
|
+
400: string;
|
|
192
|
+
500: string;
|
|
193
|
+
600: string;
|
|
194
|
+
700: string;
|
|
195
|
+
800: string;
|
|
196
|
+
900: string;
|
|
197
|
+
};
|
|
198
|
+
messenger: {
|
|
199
|
+
50: string;
|
|
200
|
+
100: string;
|
|
201
|
+
200: string;
|
|
202
|
+
300: string;
|
|
203
|
+
400: string;
|
|
204
|
+
500: string;
|
|
205
|
+
600: string;
|
|
206
|
+
700: string;
|
|
207
|
+
800: string;
|
|
208
|
+
900: string;
|
|
209
|
+
};
|
|
210
|
+
whatsapp: {
|
|
211
|
+
50: string;
|
|
212
|
+
100: string;
|
|
213
|
+
200: string;
|
|
214
|
+
300: string;
|
|
215
|
+
400: string;
|
|
216
|
+
500: string;
|
|
217
|
+
600: string;
|
|
218
|
+
700: string;
|
|
219
|
+
800: string;
|
|
220
|
+
900: string;
|
|
221
|
+
};
|
|
222
|
+
twitter: {
|
|
223
|
+
50: string;
|
|
224
|
+
100: string;
|
|
225
|
+
200: string;
|
|
226
|
+
300: string;
|
|
227
|
+
400: string;
|
|
228
|
+
500: string;
|
|
229
|
+
600: string;
|
|
230
|
+
700: string;
|
|
231
|
+
800: string;
|
|
232
|
+
900: string;
|
|
233
|
+
};
|
|
234
|
+
telegram: {
|
|
235
|
+
50: string;
|
|
236
|
+
100: string;
|
|
237
|
+
200: string;
|
|
238
|
+
300: string;
|
|
239
|
+
400: string;
|
|
240
|
+
500: string;
|
|
241
|
+
600: string;
|
|
242
|
+
700: string;
|
|
243
|
+
800: string;
|
|
244
|
+
900: string;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
export default colors;
|