@importcsv/react 0.1.17 → 0.2.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/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 -3789
- 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
package/build/js.d.ts
CHANGED
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
export {};
|
|
1
|
+
import { CSVImporterProps } from './types';
|
|
2
|
+
type CreateImporterProps = CSVImporterProps & {
|
|
3
|
+
domElement?: Element;
|
|
4
|
+
};
|
|
5
|
+
export declare function createCSVImporter(props: CreateImporterProps): {
|
|
6
|
+
instance: (import('react').ForwardRefExoticComponent<{
|
|
7
|
+
columns?: import('./types').Column[] | undefined;
|
|
8
|
+
importerKey?: string | undefined;
|
|
9
|
+
onComplete?: ((data: any) => void) | undefined;
|
|
10
|
+
backendUrl?: string | undefined;
|
|
11
|
+
user?: Record<string, any> | undefined;
|
|
12
|
+
metadata?: Record<string, any> | undefined;
|
|
13
|
+
darkMode?: boolean | undefined;
|
|
14
|
+
primaryColor?: string | undefined;
|
|
15
|
+
className?: string | undefined;
|
|
16
|
+
customStyles?: string | Record<string, string> | undefined;
|
|
17
|
+
showDownloadTemplateButton?: boolean | undefined;
|
|
18
|
+
skipHeaderRowSelection?: boolean | undefined;
|
|
19
|
+
waitOnComplete?: boolean | undefined;
|
|
20
|
+
language?: string | undefined;
|
|
21
|
+
customTranslations?: {
|
|
22
|
+
[language: string]: {
|
|
23
|
+
[key: string]: string;
|
|
24
|
+
};
|
|
25
|
+
} | undefined;
|
|
26
|
+
demoData?: {
|
|
27
|
+
fileName: string;
|
|
28
|
+
csvContent: string;
|
|
29
|
+
} | undefined;
|
|
30
|
+
} & {
|
|
31
|
+
isModal?: boolean | undefined;
|
|
32
|
+
modalIsOpen?: boolean | undefined;
|
|
33
|
+
modalOnCloseTriggered?: (() => void) | undefined;
|
|
34
|
+
modalCloseOnOutsideClick?: boolean | undefined;
|
|
35
|
+
} & import('react').RefAttributes<unknown>> & HTMLDialogElement) | null;
|
|
36
|
+
showModal: () => void;
|
|
37
|
+
closeModal: () => void;
|
|
38
|
+
};
|
|
39
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CSVImporterProps } from
|
|
2
|
-
declare const defaults: CSVImporterProps;
|
|
3
|
-
export default defaults;
|
|
1
|
+
import { CSVImporterProps } from '../types';
|
|
2
|
+
declare const defaults: CSVImporterProps;
|
|
3
|
+
export default defaults;
|
package/build/styles.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const importcsvStyles: string;
|
|
1
|
+
export declare const importcsvStyles: string;
|
package/build/types/index.d.ts
CHANGED
|
@@ -1,33 +1,105 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
export interface Column {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
type?: 'string' | 'number' | 'email' | 'date' | 'phone' | 'select';
|
|
5
|
+
validators?: Validator[];
|
|
6
|
+
transformations?: Transformer[];
|
|
7
|
+
options?: string[];
|
|
8
|
+
description?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
}
|
|
11
|
+
export type Validator = {
|
|
12
|
+
type: 'required';
|
|
13
|
+
message?: string;
|
|
14
|
+
} | {
|
|
15
|
+
type: 'unique';
|
|
16
|
+
message?: string;
|
|
17
|
+
} | {
|
|
18
|
+
type: 'regex';
|
|
19
|
+
pattern: string;
|
|
20
|
+
message?: string;
|
|
21
|
+
} | {
|
|
22
|
+
type: 'min';
|
|
23
|
+
value: number;
|
|
24
|
+
message?: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: 'max';
|
|
27
|
+
value: number;
|
|
28
|
+
message?: string;
|
|
29
|
+
} | {
|
|
30
|
+
type: 'min_length';
|
|
31
|
+
value: number;
|
|
32
|
+
message?: string;
|
|
33
|
+
} | {
|
|
34
|
+
type: 'max_length';
|
|
35
|
+
value: number;
|
|
36
|
+
message?: string;
|
|
37
|
+
};
|
|
38
|
+
export type Transformer = {
|
|
39
|
+
type: 'trim';
|
|
40
|
+
} | {
|
|
41
|
+
type: 'uppercase';
|
|
42
|
+
} | {
|
|
43
|
+
type: 'lowercase';
|
|
44
|
+
} | {
|
|
45
|
+
type: 'capitalize';
|
|
46
|
+
} | {
|
|
47
|
+
type: 'remove_special_chars';
|
|
48
|
+
} | {
|
|
49
|
+
type: 'normalize_phone';
|
|
50
|
+
} | {
|
|
51
|
+
type: 'normalize_date';
|
|
52
|
+
format?: string;
|
|
53
|
+
} | {
|
|
54
|
+
type: 'default';
|
|
55
|
+
value: string;
|
|
56
|
+
} | {
|
|
57
|
+
type: 'replace';
|
|
58
|
+
find: string;
|
|
59
|
+
replace: string;
|
|
60
|
+
} | {
|
|
61
|
+
type: 'custom';
|
|
62
|
+
fn: (value: any) => any;
|
|
63
|
+
};
|
|
64
|
+
export interface ColumnMapping {
|
|
65
|
+
id: string;
|
|
66
|
+
label?: string;
|
|
67
|
+
include: boolean;
|
|
68
|
+
selected?: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface ColumnMappingDictionary {
|
|
71
|
+
[uploadColumnIndex: number]: ColumnMapping;
|
|
72
|
+
}
|
|
73
|
+
type ModalParams = {
|
|
74
|
+
isModal?: boolean;
|
|
75
|
+
modalIsOpen?: boolean;
|
|
76
|
+
modalOnCloseTriggered?: () => void;
|
|
77
|
+
modalCloseOnOutsideClick?: boolean;
|
|
78
|
+
};
|
|
79
|
+
type CustomTranslationResource = {
|
|
80
|
+
[language: string]: {
|
|
81
|
+
[key: string]: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export type CSVImporterProps = {
|
|
85
|
+
columns?: Column[];
|
|
86
|
+
importerKey?: string;
|
|
87
|
+
onComplete?: (data: any) => void;
|
|
88
|
+
backendUrl?: string;
|
|
89
|
+
user?: Record<string, any>;
|
|
90
|
+
metadata?: Record<string, any>;
|
|
91
|
+
darkMode?: boolean;
|
|
92
|
+
primaryColor?: string;
|
|
93
|
+
className?: string;
|
|
94
|
+
customStyles?: Record<string, string> | string;
|
|
95
|
+
showDownloadTemplateButton?: boolean;
|
|
96
|
+
skipHeaderRowSelection?: boolean;
|
|
97
|
+
waitOnComplete?: boolean;
|
|
98
|
+
language?: string;
|
|
99
|
+
customTranslations?: CustomTranslationResource;
|
|
100
|
+
demoData?: {
|
|
101
|
+
fileName: string;
|
|
102
|
+
csvContent: string;
|
|
103
|
+
};
|
|
104
|
+
} & ModalParams;
|
|
105
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type Transformer = {
|
|
2
|
+
type: 'trim';
|
|
3
|
+
} | {
|
|
4
|
+
type: 'uppercase';
|
|
5
|
+
} | {
|
|
6
|
+
type: 'lowercase';
|
|
7
|
+
} | {
|
|
8
|
+
type: 'capitalize';
|
|
9
|
+
} | {
|
|
10
|
+
type: 'remove_special_chars';
|
|
11
|
+
} | {
|
|
12
|
+
type: 'normalize_phone';
|
|
13
|
+
} | {
|
|
14
|
+
type: 'normalize_date';
|
|
15
|
+
format?: string;
|
|
16
|
+
} | {
|
|
17
|
+
type: 'default';
|
|
18
|
+
value: string;
|
|
19
|
+
} | {
|
|
20
|
+
type: 'replace';
|
|
21
|
+
find: string;
|
|
22
|
+
replace: string;
|
|
23
|
+
} | {
|
|
24
|
+
type: 'custom';
|
|
25
|
+
fn: (value: any) => any;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Apply transformations to a value
|
|
29
|
+
* @param value The value to transform
|
|
30
|
+
* @param transformations Array of transformations to apply
|
|
31
|
+
* @returns Transformed value
|
|
32
|
+
*/
|
|
33
|
+
export declare function applyTransformations(value: any, transformations?: Transformer[]): any;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Column } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Validates a single value against a column's validators
|
|
4
|
+
* @param value The value to validate
|
|
5
|
+
* @param column The column definition with validators
|
|
6
|
+
* @returns Error message if validation fails, null if valid
|
|
7
|
+
*/
|
|
8
|
+
export declare function validateColumn(value: any, column: Column): string | null;
|
|
9
|
+
/**
|
|
10
|
+
* Validates uniqueness across all rows for a column
|
|
11
|
+
* @param rows All data rows
|
|
12
|
+
* @param columnIndex The column index to check
|
|
13
|
+
* @param column The column definition
|
|
14
|
+
* @returns Array of row indices that have duplicate values
|
|
15
|
+
*/
|
|
16
|
+
export declare function validateUniqueness(rows: any[][], columnIndex: number, column: Column): number[];
|
|
17
|
+
/**
|
|
18
|
+
* Batch validation for all rows
|
|
19
|
+
* @param rows Data rows to validate
|
|
20
|
+
* @param columns Column definitions
|
|
21
|
+
* @returns Validation results with errors per cell
|
|
22
|
+
*/
|
|
23
|
+
export declare function validateBatch(rows: any[][], columns: Column[]): Map<string, string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@importcsv/react",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Open-source CSV and XLS/XLSX file importer for React and JavaScript",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"module": "build/index.esm.js",
|
|
@@ -29,39 +29,28 @@
|
|
|
29
29
|
"types": "build/index.d.ts",
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build:js": "rollup --config rollup.config-js.js && cp package-js.json build/package.json",
|
|
32
|
-
"build:react": "
|
|
33
|
-
"build:react:dev": "
|
|
34
|
-
"build:react:prod": "
|
|
32
|
+
"build:react": "vite build",
|
|
33
|
+
"build:react:dev": "vite build --mode development",
|
|
34
|
+
"build:react:prod": "vite build --mode production",
|
|
35
35
|
"publish:local:js": "yarn build:js && cd build && yalc publish",
|
|
36
36
|
"publish:local:react": "yarn build:react:dev && yalc publish",
|
|
37
37
|
"publish:local:react:prod": "yarn build:react:prod && yalc publish",
|
|
38
38
|
"publish:js": "yarn build:js && cd build && npm publish",
|
|
39
|
-
"publish:react": "
|
|
40
|
-
"build:watch": "
|
|
41
|
-
"
|
|
42
|
-
"storybook:export": "build-storybook",
|
|
43
|
-
"generate": "node ./util/create-component",
|
|
44
|
-
"build-storybook": "storybook build"
|
|
39
|
+
"publish:react": "NPM_PACKAGE_BUILD=true yarn build:react:prod && yarn publish --access public",
|
|
40
|
+
"build:watch": "vite build --watch --mode development",
|
|
41
|
+
"dev:examples": "cd examples && npm install && npm run dev"
|
|
45
42
|
},
|
|
46
43
|
"peerDependencies": {
|
|
47
44
|
"react": ">=18.0.0",
|
|
48
45
|
"react-dom": ">=18.0.0"
|
|
49
46
|
},
|
|
47
|
+
"optionalDependencies": {
|
|
48
|
+
"xlsx": "^0.18.5"
|
|
49
|
+
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@babel/preset-env": "^7.22.4",
|
|
52
52
|
"@babel/preset-react": "^7.22.3",
|
|
53
53
|
"@babel/preset-typescript": "^7.21.5",
|
|
54
|
-
"@rollup/plugin-commonjs": "^17.1.0",
|
|
55
|
-
"@rollup/plugin-image": "^2.1.1",
|
|
56
|
-
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
57
|
-
"@rollup/plugin-replace": "^5.0.5",
|
|
58
|
-
"@storybook/addon-essentials": "7.0.18",
|
|
59
|
-
"@storybook/addon-interactions": "7.0.18",
|
|
60
|
-
"@storybook/addon-links": "7.0.18",
|
|
61
|
-
"@storybook/blocks": "7.0.18",
|
|
62
|
-
"@storybook/react": "7.0.18",
|
|
63
|
-
"@storybook/react-webpack5": "7.0.18",
|
|
64
|
-
"@storybook/testing-library": "0.0.14-next.2",
|
|
65
54
|
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
|
|
66
55
|
"@types/babel__core": "^7.20.1",
|
|
67
56
|
"@types/jest": "^24.9.1",
|
|
@@ -72,6 +61,7 @@
|
|
|
72
61
|
"@types/xlsx": "^0.0.36",
|
|
73
62
|
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
|
74
63
|
"@typescript-eslint/parser": "^5.56.0",
|
|
64
|
+
"@vitejs/plugin-react": "^5.0.1",
|
|
75
65
|
"core-js": "^3.22.7",
|
|
76
66
|
"css-loader": "^6.8.1",
|
|
77
67
|
"eslint-config-prettier": "^8.8.0",
|
|
@@ -79,26 +69,19 @@
|
|
|
79
69
|
"eslint-plugin-react": "^7.32.2",
|
|
80
70
|
"identity-obj-proxy": "^3.0.0",
|
|
81
71
|
"jest": "^26.6.3",
|
|
82
|
-
"node-sass": "^9.0.0",
|
|
83
72
|
"postcss-import": "^16.1.1",
|
|
84
73
|
"prettier": "^2.8.6",
|
|
85
74
|
"prop-types": "^15.8.1",
|
|
86
75
|
"react": "18.2.0",
|
|
87
76
|
"react-dom": "18.2.0",
|
|
88
|
-
"rollup": "^2.56.3",
|
|
89
|
-
"rollup-plugin-copy": "^3.4.0",
|
|
90
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
91
|
-
"rollup-plugin-postcss": "^4.0.0",
|
|
92
|
-
"rollup-plugin-typescript2": "^0.29.0",
|
|
93
|
-
"sass": "^1.69.7",
|
|
94
|
-
"sass-loader": "^13.3.3",
|
|
95
|
-
"storybook": "7.0.18",
|
|
96
77
|
"style-loader": "^3.3.3",
|
|
97
78
|
"tailwindcss": "^3.4.0",
|
|
98
79
|
"ts-jest": "^26.5.6",
|
|
99
80
|
"typescript": "^4.5.5",
|
|
100
81
|
"typescript-plugin-css-modules": "^3.4.0",
|
|
101
|
-
"use-sync-external-store": "^1.2.0"
|
|
82
|
+
"use-sync-external-store": "^1.2.0",
|
|
83
|
+
"vite": "^7.1.3",
|
|
84
|
+
"vite-plugin-dts": "^4.5.4"
|
|
102
85
|
},
|
|
103
86
|
"dependencies": {
|
|
104
87
|
"@radix-ui/react-alert-dialog": "^1.1.14",
|
|
@@ -112,26 +95,16 @@
|
|
|
112
95
|
"@radix-ui/react-switch": "^1.2.5",
|
|
113
96
|
"@radix-ui/react-toast": "^1.2.11",
|
|
114
97
|
"@radix-ui/react-tooltip": "^1.2.4",
|
|
115
|
-
"@rollup/plugin-json": "^6.1.0",
|
|
116
|
-
"@tanstack/react-table": "^8.21.3",
|
|
117
98
|
"autoprefixer": "^10.4.21",
|
|
118
99
|
"class-variance-authority": "^0.7.1",
|
|
119
100
|
"clsx": "^2.1.1",
|
|
120
|
-
"framer-motion": "^10.17.12",
|
|
121
|
-
"i18next": "^23.10.1",
|
|
122
|
-
"immer": "^10.1.1",
|
|
123
101
|
"lucide-react": "^0.507.0",
|
|
124
102
|
"papaparse": "^5.4.1",
|
|
125
103
|
"postcss": "^8.5.3",
|
|
126
|
-
"react-data-grid": "^7.0.0-beta.52",
|
|
127
104
|
"react-dropzone": "^14.2.3",
|
|
128
105
|
"react-frame-component": "^5.2.7",
|
|
129
106
|
"react-hotkeys-hook": "^5.1.0",
|
|
130
|
-
"react-i18next": "^14.1.0",
|
|
131
|
-
"react-icons": "^4.12.0",
|
|
132
107
|
"tailwind-merge": "^3.2.0",
|
|
133
|
-
"use-immer": "^0.11.0",
|
|
134
|
-
"xlsx": "^0.18.5",
|
|
135
108
|
"zustand": "^4.4.7"
|
|
136
109
|
},
|
|
137
110
|
"type": "module"
|
package/build/App.d.ts
DELETED