@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.
Files changed (117) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +470 -0
  3. package/build/App.d.ts +2 -0
  4. package/build/api.d.ts +17 -0
  5. package/build/components/CSVImporter/CSVImporter.stories.d.ts +44 -0
  6. package/build/components/CSVImporter/index.d.ts +26 -0
  7. package/build/config/environments.d.ts +12 -0
  8. package/build/config/index.d.ts +5 -0
  9. package/build/config.d.ts +10 -0
  10. package/build/i18n/de.d.ts +32 -0
  11. package/build/i18n/es.d.ts +32 -0
  12. package/build/i18n/fr.d.ts +32 -0
  13. package/build/i18n/i18n.d.ts +2 -0
  14. package/build/i18n/it.d.ts +32 -0
  15. package/build/importer/components/Box/index.d.ts +2 -0
  16. package/build/importer/components/Box/types/index.d.ts +5 -0
  17. package/build/importer/components/Checkbox/index.d.ts +2 -0
  18. package/build/importer/components/Checkbox/types/index.d.ts +4 -0
  19. package/build/importer/components/Errors/index.d.ts +4 -0
  20. package/build/importer/components/Input/index.d.ts +2 -0
  21. package/build/importer/components/Input/types/index.d.ts +18 -0
  22. package/build/importer/components/Portal/index.d.ts +3 -0
  23. package/build/importer/components/Portal/types/index.d.ts +5 -0
  24. package/build/importer/components/Stepper/hooks/useStepper.d.ts +2 -0
  25. package/build/importer/components/Stepper/index.d.ts +2 -0
  26. package/build/importer/components/Stepper/types/index.d.ts +13 -0
  27. package/build/importer/components/Table/index.d.ts +9 -0
  28. package/build/importer/components/Table/storyData.d.ts +36 -0
  29. package/build/importer/components/Table/types/index.d.ts +42 -0
  30. package/build/importer/components/ToggleFilter/ToggleFilter.stories.d.ts +18 -0
  31. package/build/importer/components/ToggleFilter/index.d.ts +3 -0
  32. package/build/importer/components/ToggleFilter/types/index.d.ts +11 -0
  33. package/build/importer/components/Tooltip/index.d.ts +2 -0
  34. package/build/importer/components/Tooltip/types/index.d.ts +11 -0
  35. package/build/importer/components/UploaderWrapper/UploaderWrapper.d.ts +2 -0
  36. package/build/importer/components/UploaderWrapper/types/index.d.ts +2 -0
  37. package/build/importer/features/complete/index.d.ts +2 -0
  38. package/build/importer/features/complete/types/index.d.ts +5 -0
  39. package/build/importer/features/main/hooks/useMutableLocalStorage.d.ts +1 -0
  40. package/build/importer/features/main/hooks/useStepNavigation.d.ts +17 -0
  41. package/build/importer/features/main/index.d.ts +2 -0
  42. package/build/importer/features/main/types/index.d.ts +16 -0
  43. package/build/importer/features/map-columns/components/DropDownFields.d.ts +19 -0
  44. package/build/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +15 -0
  45. package/build/importer/features/map-columns/hooks/useNameChange.d.ts +5 -0
  46. package/build/importer/features/map-columns/index.d.ts +2 -0
  47. package/build/importer/features/map-columns/types/index.d.ts +23 -0
  48. package/build/importer/features/row-selection/index.d.ts +2 -0
  49. package/build/importer/features/row-selection/types/index.d.ts +8 -0
  50. package/build/importer/features/uploader/hooks/useTemplateTable.d.ts +10 -0
  51. package/build/importer/features/uploader/index.d.ts +2 -0
  52. package/build/importer/features/uploader/types/index.d.ts +9 -0
  53. package/build/importer/features/validate/index.d.ts +24 -0
  54. package/build/importer/features/validation/AIFixModal.d.ts +23 -0
  55. package/build/importer/features/validation/SimpleValidation.d.ts +2 -0
  56. package/build/importer/features/validation/Validation.d.ts +2 -0
  57. package/build/importer/features/validation/ValidationFixed.d.ts +2 -0
  58. package/build/importer/features/validation/components/AISuggestionsPanel.d.ts +15 -0
  59. package/build/importer/features/validation/components/InlineFixSuggestion.d.ts +8 -0
  60. package/build/importer/features/validation/index.d.ts +1 -0
  61. package/build/importer/features/validation/types.d.ts +31 -0
  62. package/build/importer/hooks/useClickOutside.d.ts +1 -0
  63. package/build/importer/hooks/useCustomStyles.d.ts +1 -0
  64. package/build/importer/hooks/useDelayLoader.d.ts +2 -0
  65. package/build/importer/hooks/useEventListener.d.ts +4 -0
  66. package/build/importer/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
  67. package/build/importer/hooks/useRect.d.ts +12 -0
  68. package/build/importer/hooks/useWindowSize.d.ts +1 -0
  69. package/build/importer/providers/Theme.d.ts +4 -0
  70. package/build/importer/providers/index.d.ts +2 -0
  71. package/build/importer/providers/types/index.d.ts +4 -0
  72. package/build/importer/services/api.d.ts +0 -0
  73. package/build/importer/services/validation-api.d.ts +14 -0
  74. package/build/importer/settings/chakra/components/alert.d.ts +31 -0
  75. package/build/importer/settings/chakra/components/button.d.ts +37 -0
  76. package/build/importer/settings/chakra/components/index.d.ts +2 -0
  77. package/build/importer/settings/chakra/foundations/blur.d.ts +11 -0
  78. package/build/importer/settings/chakra/foundations/borders.d.ts +8 -0
  79. package/build/importer/settings/chakra/foundations/breakpoints.d.ts +9 -0
  80. package/build/importer/settings/chakra/foundations/colors.d.ts +247 -0
  81. package/build/importer/settings/chakra/foundations/index.d.ts +487 -0
  82. package/build/importer/settings/chakra/foundations/radius.d.ts +12 -0
  83. package/build/importer/settings/chakra/foundations/shadows.d.ts +14 -0
  84. package/build/importer/settings/chakra/foundations/sizes.d.ts +60 -0
  85. package/build/importer/settings/chakra/foundations/spacing.d.ts +35 -0
  86. package/build/importer/settings/chakra/foundations/transition.d.ts +24 -0
  87. package/build/importer/settings/chakra/foundations/typography.d.ts +61 -0
  88. package/build/importer/settings/chakra/foundations/z-index.d.ts +16 -0
  89. package/build/importer/settings/chakra/index.d.ts +592 -0
  90. package/build/importer/settings/chakra/semantic-tokens.d.ts +32 -0
  91. package/build/importer/settings/chakra/styles.d.ts +2 -0
  92. package/build/importer/settings/chakra/theme.types.d.ts +93 -0
  93. package/build/importer/settings/chakra/utils/is-chakra-theme.d.ts +3 -0
  94. package/build/importer/settings/chakra/utils/run-if-fn.d.ts +1 -0
  95. package/build/importer/settings/theme/colors.d.ts +4 -0
  96. package/build/importer/settings/theme/index.d.ts +2 -0
  97. package/build/importer/settings/theme/sizes.d.ts +7 -0
  98. package/build/importer/stores/theme.d.ts +17 -0
  99. package/build/importer/types/index.d.ts +17 -0
  100. package/build/importer/utils/classes.d.ts +2 -0
  101. package/build/importer/utils/debounce.d.ts +2 -0
  102. package/build/importer/utils/getStringLengthOfChildren.d.ts +2 -0
  103. package/build/importer/utils/stringSimilarity.d.ts +1 -0
  104. package/build/importer/utils/template.d.ts +2 -0
  105. package/build/importer/utils/utils.d.ts +11 -0
  106. package/build/index.d.ts +2 -0
  107. package/build/index.esm.js +54893 -0
  108. package/build/index.esm.js.map +1 -0
  109. package/build/index.js +54919 -0
  110. package/build/index.js.map +1 -0
  111. package/build/js.d.ts +31 -0
  112. package/build/services/api.d.ts +18 -0
  113. package/build/services/apiClient.d.ts +21 -0
  114. package/build/settings/defaults.d.ts +3 -0
  115. package/build/types/index.d.ts +24 -0
  116. package/build/types.d.ts +91 -0
  117. package/package.json +122 -0
@@ -0,0 +1 @@
1
+ export default function useWindowSize(): number[];
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ThemeProps } from "./types";
3
+ export declare const myCache: import("@emotion/cache").EmotionCache;
4
+ export default function ThemeProvider({ children }: ThemeProps): React.ReactElement;
@@ -0,0 +1,2 @@
1
+ import { ProvidersProps } from "./types";
2
+ export default function Providers({ children }: ProvidersProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ export type ProvidersProps = React.PropsWithChildren<{}>;
3
+ export type QueriesProps = React.PropsWithChildren<{}>;
4
+ export type ThemeProps = React.PropsWithChildren<{}>;
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,2 @@
1
+ export { Button } from "./button";
2
+ export { Alert } from "./alert";
@@ -0,0 +1,11 @@
1
+ declare const blur: {
2
+ none: number;
3
+ sm: string;
4
+ base: string;
5
+ md: string;
6
+ lg: string;
7
+ xl: string;
8
+ "2xl": string;
9
+ "3xl": string;
10
+ };
11
+ export default blur;
@@ -0,0 +1,8 @@
1
+ declare const borders: {
2
+ none: number;
3
+ "1px": string;
4
+ "2px": string;
5
+ "4px": string;
6
+ "8px": string;
7
+ };
8
+ export default borders;
@@ -0,0 +1,9 @@
1
+ declare const breakpoints: {
2
+ base: string;
3
+ sm: string;
4
+ md: string;
5
+ lg: string;
6
+ xl: string;
7
+ "2xl": string;
8
+ };
9
+ export default breakpoints;
@@ -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;