@importcsv/react 0.2.1 → 0.2.3
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 +100 -427
- package/build/bundled/bundled-styles.d.ts +1 -0
- package/build/bundled/components/CSVImporter/index.d.ts +5 -0
- package/build/{importer → bundled/importer}/components/Box/types/index.d.ts +1 -2
- package/build/{importer → bundled/importer}/components/Checkbox/types/index.d.ts +1 -1
- package/build/{importer → bundled/importer}/components/Input/types/index.d.ts +1 -1
- package/build/bundled/importer/components/Root/index.d.ts +10 -0
- package/build/bundled/importer/components/StepLayout/index.d.ts +18 -0
- package/build/{importer → bundled/importer}/components/Table/index.d.ts +2 -2
- package/build/bundled/importer/components/Tooltip/types/index.d.ts +11 -0
- package/build/bundled/importer/components/UploaderWrapper/NativeDropzone.d.ts +11 -0
- package/build/bundled/importer/components/VirtualTable/index.d.ts +17 -0
- package/build/bundled/importer/components/ui/alert.d.ts +10 -0
- package/build/{importer → bundled/importer}/components/ui/button.d.ts +4 -4
- package/build/bundled/importer/components/ui/card.d.ts +19 -0
- package/build/bundled/importer/components/ui/checkbox.d.ts +7 -0
- package/build/bundled/importer/components/ui/dialog.d.ts +38 -0
- package/build/bundled/importer/components/ui/flex.d.ts +23 -0
- package/build/bundled/importer/components/ui/input.d.ts +6 -0
- package/build/bundled/importer/components/ui/select.d.ts +13 -0
- package/build/bundled/importer/components/ui/switch.d.ts +7 -0
- package/build/bundled/importer/components/ui/toast.d.ts +22 -0
- package/build/bundled/importer/components/ui/tooltip.d.ts +20 -0
- package/build/{importer → bundled/importer}/components/ui/use-toast.d.ts +5 -3
- package/build/{importer → bundled/importer}/features/uploader/types/index.d.ts +1 -1
- package/build/bundled/importer/features/validation/components/TransformPanel.d.ts +18 -0
- package/build/{importer → bundled/importer}/hooks/useEventListener.d.ts +1 -1
- package/build/{importer → bundled/importer}/hooks/useIsomorphicLayoutEffect.d.ts +1 -1
- package/build/bundled/importer/providers/Theme.d.ts +10 -0
- package/build/bundled/importer/providers/index.d.ts +5 -0
- package/build/bundled/importer/providers/types/index.d.ts +10 -0
- package/build/bundled/importer/theme/index.d.ts +8 -0
- package/build/bundled/importer/theme/presets.d.ts +314 -0
- package/build/bundled/importer/theme/runtime.d.ts +62 -0
- package/build/bundled/importer/theme/styles.d.ts +120 -0
- package/build/bundled/importer/utils/errorAnalysis.d.ts +25 -0
- package/build/bundled/importer/utils/getStringLengthOfChildren.d.ts +2 -0
- package/build/bundled/importer/utils/themeUtils.d.ts +21 -0
- package/build/bundled/index.esm.js +8367 -0
- package/build/bundled/index.esm.js.map +1 -0
- package/build/bundled/index.js +112 -0
- package/build/bundled/index.js.map +1 -0
- package/build/bundled/index.umd.js +112 -0
- package/build/bundled/index.umd.js.map +1 -0
- package/build/bundled/js.d.ts +12 -0
- package/build/{types → bundled/types}/index.d.ts +27 -0
- package/build/bundled/types/theme.d.ts +153 -0
- package/build/bundled/validation/transformationStages.d.ts +26 -0
- package/build/bundled/validation/transformer.d.ts +17 -0
- package/build/preact/bundled-styles.d.ts +1 -0
- package/build/preact/components/CSVImporter/index.d.ts +5 -0
- package/build/preact/i18n/de.d.ts +32 -0
- package/build/preact/i18n/es.d.ts +32 -0
- package/build/preact/i18n/fr.d.ts +32 -0
- package/build/preact/i18n/i18n.d.ts +6 -0
- package/build/preact/i18n/it.d.ts +32 -0
- package/build/preact/i18n/useTranslation.d.ts +9 -0
- package/build/preact/importer/components/Box/index.d.ts +2 -0
- package/build/preact/importer/components/Box/types/index.d.ts +5 -0
- package/build/preact/importer/components/Checkbox/index.d.ts +2 -0
- package/build/preact/importer/components/Checkbox/types/index.d.ts +4 -0
- package/build/preact/importer/components/Errors/index.d.ts +4 -0
- package/build/preact/importer/components/Input/index.d.ts +2 -0
- package/build/preact/importer/components/Input/types/index.d.ts +18 -0
- package/build/preact/importer/components/Root/index.d.ts +10 -0
- package/build/preact/importer/components/StepLayout/index.d.ts +18 -0
- package/build/preact/importer/components/Stepper/hooks/useStepper.d.ts +2 -0
- package/build/preact/importer/components/Stepper/index.d.ts +2 -0
- package/build/preact/importer/components/Stepper/types/index.d.ts +14 -0
- package/build/preact/importer/components/Table/index.d.ts +9 -0
- package/build/preact/importer/components/ToggleFilter/index.d.ts +3 -0
- package/build/preact/importer/components/ToggleFilter/types/index.d.ts +11 -0
- package/build/preact/importer/components/Tooltip/index.d.ts +2 -0
- package/build/preact/importer/components/Tooltip/types/index.d.ts +11 -0
- package/build/preact/importer/components/UploaderWrapper/NativeDropzone.d.ts +11 -0
- package/build/preact/importer/components/UploaderWrapper/UploaderWrapper.d.ts +2 -0
- package/build/preact/importer/components/UploaderWrapper/types/index.d.ts +2 -0
- package/build/preact/importer/components/VirtualTable/index.d.ts +17 -0
- package/build/preact/importer/components/ui/alert.d.ts +10 -0
- package/build/preact/importer/components/ui/button.d.ts +12 -0
- package/build/preact/importer/components/ui/card.d.ts +19 -0
- package/build/preact/importer/components/ui/checkbox.d.ts +7 -0
- package/build/preact/importer/components/ui/dialog.d.ts +38 -0
- package/build/preact/importer/components/ui/flex.d.ts +23 -0
- package/build/preact/importer/components/ui/input.d.ts +6 -0
- package/build/preact/importer/components/ui/select.d.ts +13 -0
- package/build/preact/importer/components/ui/switch.d.ts +7 -0
- package/build/preact/importer/components/ui/toast.d.ts +22 -0
- package/build/preact/importer/components/ui/toaster.d.ts +1 -0
- package/build/preact/importer/components/ui/tooltip.d.ts +20 -0
- package/build/preact/importer/components/ui/use-toast.d.ts +46 -0
- package/build/preact/importer/features/complete/index.d.ts +2 -0
- package/build/preact/importer/features/complete/types/index.d.ts +5 -0
- package/build/preact/importer/features/configure-import/index.d.ts +13 -0
- package/build/preact/importer/features/configure-import/types/index.d.ts +13 -0
- package/build/preact/importer/features/main/hooks/useMutableLocalStorage.d.ts +1 -0
- package/build/preact/importer/features/main/hooks/useStepNavigation.d.ts +17 -0
- package/build/preact/importer/features/main/index.d.ts +2 -0
- package/build/preact/importer/features/main/types/index.d.ts +16 -0
- package/build/preact/importer/features/map-columns/components/DropDownFields.d.ts +21 -0
- package/build/preact/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +16 -0
- package/build/preact/importer/features/map-columns/index.d.ts +2 -0
- package/build/preact/importer/features/map-columns/types/index.d.ts +16 -0
- package/build/preact/importer/features/row-selection/index.d.ts +2 -0
- package/build/preact/importer/features/row-selection/types/index.d.ts +8 -0
- package/build/preact/importer/features/uploader/hooks/useTemplateTable.d.ts +10 -0
- package/build/preact/importer/features/uploader/index.d.ts +2 -0
- package/build/preact/importer/features/uploader/types/index.d.ts +9 -0
- package/build/preact/importer/features/validation/Validation.d.ts +2 -0
- package/build/preact/importer/features/validation/components/TransformModal.d.ts +18 -0
- package/build/preact/importer/features/validation/components/TransformPanel.d.ts +18 -0
- package/build/preact/importer/features/validation/index.d.ts +1 -0
- package/build/preact/importer/features/validation/types.d.ts +32 -0
- package/build/preact/importer/hooks/useClickOutside.d.ts +1 -0
- package/build/preact/importer/hooks/useCustomStyles.d.ts +1 -0
- package/build/preact/importer/hooks/useEventListener.d.ts +4 -0
- package/build/preact/importer/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/build/preact/importer/hooks/useRect.d.ts +12 -0
- package/build/preact/importer/hooks/useWindowSize.d.ts +1 -0
- package/build/preact/importer/providers/Theme.d.ts +10 -0
- package/build/preact/importer/providers/index.d.ts +5 -0
- package/build/preact/importer/providers/types/index.d.ts +10 -0
- package/build/preact/importer/services/api.d.ts +1 -0
- package/build/preact/importer/services/mapping.d.ts +31 -0
- package/build/preact/importer/services/transformation.d.ts +70 -0
- package/build/preact/importer/settings/theme/colors.d.ts +4 -0
- package/build/preact/importer/settings/theme/index.d.ts +2 -0
- package/build/preact/importer/settings/theme/sizes.d.ts +7 -0
- package/build/preact/importer/stores/theme.d.ts +17 -0
- package/build/preact/importer/theme/index.d.ts +8 -0
- package/build/preact/importer/theme/presets.d.ts +314 -0
- package/build/preact/importer/theme/runtime.d.ts +62 -0
- package/build/preact/importer/theme/styles.d.ts +120 -0
- package/build/preact/importer/types/index.d.ts +9 -0
- package/build/preact/importer/utils/colorUtils.d.ts +48 -0
- package/build/preact/importer/utils/errorAnalysis.d.ts +25 -0
- package/build/preact/importer/utils/getStringLengthOfChildren.d.ts +2 -0
- package/build/preact/importer/utils/stringSimilarity.d.ts +1 -0
- package/build/preact/importer/utils/template.d.ts +2 -0
- package/build/preact/importer/utils/themeUtils.d.ts +21 -0
- package/build/preact/importer/utils/utils.d.ts +19 -0
- package/build/preact/index.d.ts +4 -0
- package/build/preact/index.esm.js +7548 -0
- package/build/preact/index.esm.js.map +1 -0
- package/build/preact/index.js +112 -0
- package/build/preact/index.js.map +1 -0
- package/build/preact/js.d.ts +12 -0
- package/build/preact/settings/defaults.d.ts +3 -0
- package/build/preact/styles.d.ts +1 -0
- package/build/preact/types/index.d.ts +132 -0
- package/build/preact/types/theme.d.ts +153 -0
- package/build/preact/utils/cn.d.ts +6 -0
- package/build/preact/validation/transformationStages.d.ts +26 -0
- package/build/preact/validation/transformer.d.ts +17 -0
- package/build/preact/validation/validator.d.ts +23 -0
- package/build/react/bundled-styles.d.ts +1 -0
- package/build/react/components/CSVImporter/index.d.ts +5 -0
- package/build/react/i18n/de.d.ts +32 -0
- package/build/react/i18n/es.d.ts +32 -0
- package/build/react/i18n/fr.d.ts +32 -0
- package/build/react/i18n/i18n.d.ts +6 -0
- package/build/react/i18n/it.d.ts +32 -0
- package/build/react/i18n/useTranslation.d.ts +9 -0
- package/build/react/importer/components/Box/index.d.ts +2 -0
- package/build/react/importer/components/Box/types/index.d.ts +5 -0
- package/build/react/importer/components/Checkbox/index.d.ts +2 -0
- package/build/react/importer/components/Checkbox/types/index.d.ts +4 -0
- package/build/react/importer/components/Errors/index.d.ts +4 -0
- package/build/react/importer/components/Input/index.d.ts +2 -0
- package/build/react/importer/components/Input/types/index.d.ts +18 -0
- package/build/react/importer/components/Root/index.d.ts +10 -0
- package/build/react/importer/components/StepLayout/index.d.ts +18 -0
- package/build/react/importer/components/Stepper/hooks/useStepper.d.ts +2 -0
- package/build/react/importer/components/Stepper/index.d.ts +2 -0
- package/build/react/importer/components/Stepper/types/index.d.ts +14 -0
- package/build/react/importer/components/Table/index.d.ts +9 -0
- package/build/react/importer/components/ToggleFilter/index.d.ts +3 -0
- package/build/react/importer/components/ToggleFilter/types/index.d.ts +11 -0
- package/build/react/importer/components/Tooltip/index.d.ts +2 -0
- package/build/react/importer/components/Tooltip/types/index.d.ts +11 -0
- package/build/react/importer/components/UploaderWrapper/NativeDropzone.d.ts +11 -0
- package/build/react/importer/components/UploaderWrapper/UploaderWrapper.d.ts +2 -0
- package/build/react/importer/components/UploaderWrapper/types/index.d.ts +2 -0
- package/build/react/importer/components/VirtualTable/index.d.ts +17 -0
- package/build/react/importer/components/ui/alert.d.ts +10 -0
- package/build/react/importer/components/ui/button.d.ts +12 -0
- package/build/react/importer/components/ui/card.d.ts +19 -0
- package/build/react/importer/components/ui/checkbox.d.ts +7 -0
- package/build/react/importer/components/ui/dialog.d.ts +38 -0
- package/build/react/importer/components/ui/flex.d.ts +23 -0
- package/build/react/importer/components/ui/input.d.ts +6 -0
- package/build/react/importer/components/ui/select.d.ts +13 -0
- package/build/react/importer/components/ui/switch.d.ts +7 -0
- package/build/react/importer/components/ui/toast.d.ts +22 -0
- package/build/react/importer/components/ui/toaster.d.ts +1 -0
- package/build/react/importer/components/ui/tooltip.d.ts +20 -0
- package/build/react/importer/components/ui/use-toast.d.ts +46 -0
- package/build/react/importer/features/complete/index.d.ts +2 -0
- package/build/react/importer/features/complete/types/index.d.ts +5 -0
- package/build/react/importer/features/configure-import/index.d.ts +13 -0
- package/build/react/importer/features/configure-import/types/index.d.ts +13 -0
- package/build/react/importer/features/main/hooks/useMutableLocalStorage.d.ts +1 -0
- package/build/react/importer/features/main/hooks/useStepNavigation.d.ts +17 -0
- package/build/react/importer/features/main/index.d.ts +2 -0
- package/build/react/importer/features/main/types/index.d.ts +16 -0
- package/build/react/importer/features/map-columns/components/DropDownFields.d.ts +21 -0
- package/build/react/importer/features/map-columns/hooks/useMapColumnsTable.d.ts +16 -0
- package/build/react/importer/features/map-columns/index.d.ts +2 -0
- package/build/react/importer/features/map-columns/types/index.d.ts +16 -0
- package/build/react/importer/features/row-selection/index.d.ts +2 -0
- package/build/react/importer/features/row-selection/types/index.d.ts +8 -0
- package/build/react/importer/features/uploader/hooks/useTemplateTable.d.ts +10 -0
- package/build/react/importer/features/uploader/index.d.ts +2 -0
- package/build/react/importer/features/uploader/types/index.d.ts +9 -0
- package/build/react/importer/features/validation/Validation.d.ts +2 -0
- package/build/react/importer/features/validation/components/TransformModal.d.ts +18 -0
- package/build/react/importer/features/validation/components/TransformPanel.d.ts +18 -0
- package/build/react/importer/features/validation/index.d.ts +1 -0
- package/build/react/importer/features/validation/types.d.ts +32 -0
- package/build/react/importer/hooks/useClickOutside.d.ts +1 -0
- package/build/react/importer/hooks/useCustomStyles.d.ts +1 -0
- package/build/react/importer/hooks/useEventListener.d.ts +4 -0
- package/build/react/importer/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/build/react/importer/hooks/useRect.d.ts +12 -0
- package/build/react/importer/hooks/useWindowSize.d.ts +1 -0
- package/build/react/importer/providers/Theme.d.ts +10 -0
- package/build/react/importer/providers/index.d.ts +5 -0
- package/build/react/importer/providers/types/index.d.ts +10 -0
- package/build/react/importer/services/api.d.ts +1 -0
- package/build/react/importer/services/mapping.d.ts +31 -0
- package/build/react/importer/services/transformation.d.ts +70 -0
- package/build/react/importer/settings/theme/colors.d.ts +4 -0
- package/build/react/importer/settings/theme/index.d.ts +2 -0
- package/build/react/importer/settings/theme/sizes.d.ts +7 -0
- package/build/react/importer/stores/theme.d.ts +17 -0
- package/build/react/importer/theme/index.d.ts +8 -0
- package/build/react/importer/theme/presets.d.ts +314 -0
- package/build/react/importer/theme/runtime.d.ts +62 -0
- package/build/react/importer/theme/styles.d.ts +120 -0
- package/build/react/importer/types/index.d.ts +9 -0
- package/build/react/importer/utils/colorUtils.d.ts +48 -0
- package/build/react/importer/utils/errorAnalysis.d.ts +25 -0
- package/build/react/importer/utils/getStringLengthOfChildren.d.ts +2 -0
- package/build/react/importer/utils/stringSimilarity.d.ts +1 -0
- package/build/react/importer/utils/template.d.ts +2 -0
- package/build/react/importer/utils/themeUtils.d.ts +21 -0
- package/build/react/importer/utils/utils.d.ts +19 -0
- package/build/react/index.d.ts +4 -0
- package/build/react/index.esm.js +7351 -0
- package/build/react/index.esm.js.map +1 -0
- package/build/react/index.js +112 -0
- package/build/react/index.js.map +1 -0
- package/build/react/js.d.ts +12 -0
- package/build/react/settings/defaults.d.ts +3 -0
- package/build/react/styles.d.ts +1 -0
- package/build/react/types/index.d.ts +132 -0
- package/build/react/types/theme.d.ts +153 -0
- package/build/react/utils/cn.d.ts +6 -0
- package/build/react/validation/transformationStages.d.ts +26 -0
- package/build/react/validation/transformer.d.ts +17 -0
- package/build/react/validation/validator.d.ts +23 -0
- package/package.json +63 -31
- package/build/bundle.css +0 -1
- package/build/bundled-styles.d.ts +0 -1
- package/build/components/CSVImporter/index.d.ts +0 -32
- package/build/importer/components/IframeWrapper/index.d.ts +0 -25
- package/build/importer/components/ImporterLayout.d.ts +0 -15
- package/build/importer/components/Table/types/index.d.ts +0 -42
- package/build/importer/components/Tooltip/types/index.d.ts +0 -11
- package/build/importer/components/ui/alert.d.ts +0 -8
- package/build/importer/components/ui/card.d.ts +0 -8
- package/build/importer/components/ui/checkbox.d.ts +0 -4
- package/build/importer/components/ui/dialog.d.ts +0 -19
- package/build/importer/components/ui/flex.d.ts +0 -14
- package/build/importer/components/ui/input.d.ts +0 -5
- package/build/importer/components/ui/select.d.ts +0 -13
- package/build/importer/components/ui/switch.d.ts +0 -4
- package/build/importer/components/ui/toast.d.ts +0 -15
- package/build/importer/components/ui/tooltip.d.ts +0 -13
- package/build/importer/hooks/useDemoData.d.ts +0 -16
- package/build/importer/hooks/useImporterSchema.d.ts +0 -21
- package/build/importer/providers/Theme.d.ts +0 -5
- package/build/importer/providers/index.d.ts +0 -5
- package/build/importer/providers/types/index.d.ts +0 -4
- package/build/importer/services/dataProcessor.d.ts +0 -38
- package/build/importer/utils/getStringLengthOfChildren.d.ts +0 -2
- package/build/index.esm.js +0 -14394
- package/build/index.esm.js.map +0 -1
- package/build/index.js +0 -327
- package/build/index.js.map +0 -1
- package/build/js.d.ts +0 -39
- package/build/validation/transformer.d.ts +0 -33
- /package/build/{i18n → bundled/i18n}/de.d.ts +0 -0
- /package/build/{i18n → bundled/i18n}/es.d.ts +0 -0
- /package/build/{i18n → bundled/i18n}/fr.d.ts +0 -0
- /package/build/{i18n → bundled/i18n}/i18n.d.ts +0 -0
- /package/build/{i18n → bundled/i18n}/it.d.ts +0 -0
- /package/build/{i18n → bundled/i18n}/useTranslation.d.ts +0 -0
- /package/build/{importer → bundled/importer}/components/Box/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/components/Checkbox/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/components/Errors/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/components/Input/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/components/Stepper/hooks/useStepper.d.ts +0 -0
- /package/build/{importer → bundled/importer}/components/Stepper/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/components/Stepper/types/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/components/ToggleFilter/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/components/ToggleFilter/types/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/components/Tooltip/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/components/UploaderWrapper/UploaderWrapper.d.ts +0 -0
- /package/build/{importer → bundled/importer}/components/UploaderWrapper/types/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/components/ui/toaster.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/complete/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/complete/types/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/configure-import/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/configure-import/types/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/main/hooks/useMutableLocalStorage.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/main/hooks/useStepNavigation.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/main/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/main/types/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/map-columns/components/DropDownFields.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/map-columns/hooks/useMapColumnsTable.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/map-columns/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/map-columns/types/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/row-selection/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/row-selection/types/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/uploader/hooks/useTemplateTable.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/uploader/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/validation/Validation.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/validation/components/TransformModal.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/validation/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/features/validation/types.d.ts +0 -0
- /package/build/{importer → bundled/importer}/hooks/useClickOutside.d.ts +0 -0
- /package/build/{importer → bundled/importer}/hooks/useCustomStyles.d.ts +0 -0
- /package/build/{importer → bundled/importer}/hooks/useRect.d.ts +0 -0
- /package/build/{importer → bundled/importer}/hooks/useWindowSize.d.ts +0 -0
- /package/build/{importer → bundled/importer}/services/api.d.ts +0 -0
- /package/build/{importer → bundled/importer}/services/mapping.d.ts +0 -0
- /package/build/{importer → bundled/importer}/services/transformation.d.ts +0 -0
- /package/build/{importer → bundled/importer}/settings/theme/colors.d.ts +0 -0
- /package/build/{importer → bundled/importer}/settings/theme/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/settings/theme/sizes.d.ts +0 -0
- /package/build/{importer → bundled/importer}/stores/theme.d.ts +0 -0
- /package/build/{importer → bundled/importer}/types/index.d.ts +0 -0
- /package/build/{importer → bundled/importer}/utils/colorUtils.d.ts +0 -0
- /package/build/{importer → bundled/importer}/utils/stringSimilarity.d.ts +0 -0
- /package/build/{importer → bundled/importer}/utils/template.d.ts +0 -0
- /package/build/{importer → bundled/importer}/utils/utils.d.ts +0 -0
- /package/build/{index.d.ts → bundled/index.d.ts} +0 -0
- /package/build/{settings → bundled/settings}/defaults.d.ts +0 -0
- /package/build/{styles.d.ts → bundled/styles.d.ts} +0 -0
- /package/build/{utils → bundled/utils}/cn.d.ts +0 -0
- /package/build/{validation → bundled/validation}/validator.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,480 +1,153 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# @importcsv/react
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**The modern CSV importer for React applications**
|
|
6
6
|
|
|
7
|
-
[](https://www.npmjs.com/package/@importcsv/react)
|
|
8
|
+
[](https://www.npmjs.com/package/@importcsv/react)
|
|
9
|
+
[](https://bundlephobia.com/package/@importcsv/react)
|
|
10
|
+
[](./LICENSE)
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## 🚀 Overview
|
|
14
|
-
|
|
15
|
-
The ImportCSV Frontend provides a polished, user-friendly interface for importing CSV, XLS, XLSX, and TSV files. It can be embedded in any React application and offers intuitive column mapping functionality.
|
|
16
|
-
|
|
17
|
-
> **Note**: This component was forked from [TableFlow's CSV Import](https://github.com/tableflowhq/csv-import) and enhanced with additional features.
|
|
18
|
-
|
|
19
|
-
## ✨ Key Features
|
|
20
|
-
|
|
21
|
-
- **📊 Multi-Format Support** - Import from CSV, XLS, XLSX, and TSV files
|
|
22
|
-
- **🔄 Smart Column Mapping** - Intuitive interface for mapping columns
|
|
23
|
-
- **🔍 Data Validation** - Immediate feedback on data quality issues
|
|
24
|
-
- **🎨 Customizable UI** - Theming and component customization options
|
|
25
|
-
- **🔌 Flexible Integration** - Available as React component or vanilla JavaScript
|
|
26
|
-
- **📦 Optimized Bundle Size** - Excel support is optional to keep bundle small
|
|
27
|
-
|
|
28
|
-
## 🏗️ Architecture
|
|
12
|
+
[Live Demo](https://demo.importcsv.com) • [Documentation](https://docs.importcsv.com)
|
|
29
13
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
1. **React Component** - Direct integration into React applications
|
|
33
|
-
2. **JavaScript SDK** - For use in non-React applications
|
|
34
|
-
|
|
35
|
-
## 🛠️ Technical Details
|
|
36
|
-
|
|
37
|
-
### Key Components
|
|
38
|
-
|
|
39
|
-
- **CSVImporter** - Main React component for the import flow
|
|
40
|
-
- **ColumnMapper** - Handles column mapping with smart suggestions
|
|
41
|
-
- **DataValidator** - Validates data against schema requirements
|
|
42
|
-
- **ImportSummary** - Displays import results and validation issues
|
|
14
|
+
</div>
|
|
43
15
|
|
|
44
|
-
##
|
|
16
|
+
## Stop wrestling with CSV imports
|
|
45
17
|
|
|
46
|
-
|
|
18
|
+
Every developer has been there. Users upload CSVs with columns in the wrong order, dates in different formats, and data that needs validation. You end up building the same import flow again and again.
|
|
47
19
|
|
|
48
|
-
|
|
20
|
+
**ImportCSV handles it all for you:**
|
|
21
|
+
- 🎯 **Smart column mapping** - AI-powered field matching
|
|
22
|
+
- ✨ **One-click error fixing** - Transform and validate data automatically
|
|
23
|
+
- ⚡ **10,000+ rows?** No problem - virtual scrolling keeps it fast
|
|
24
|
+
- 📦 **Tiny footprint** - ~100KB gzipped, including styles
|
|
49
25
|
|
|
50
|
-
|
|
26
|
+
## Quick Start
|
|
51
27
|
|
|
52
28
|
```bash
|
|
53
29
|
npm install @importcsv/react
|
|
54
30
|
```
|
|
55
31
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
npm install xlsx
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
> **Note**: The xlsx package is ~850KB. It's only required if you need Excel support. CSV files work without it.
|
|
65
|
-
|
|
66
|
-
**Yarn**
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
yarn add @importcsv/react
|
|
70
|
-
|
|
71
|
-
# For Excel support (optional)
|
|
72
|
-
yarn add xlsx
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### Basic Usage
|
|
76
|
-
|
|
77
|
-
#### Using React
|
|
78
|
-
|
|
79
|
-
```javascript
|
|
80
|
-
import { CSVImporter } from "csv-import-react";
|
|
81
|
-
import { useState } from "react";
|
|
32
|
+
```tsx
|
|
33
|
+
import { CSVImporter } from '@importcsv/react';
|
|
34
|
+
import { useState } from 'react';
|
|
82
35
|
|
|
83
|
-
function
|
|
36
|
+
function App() {
|
|
84
37
|
const [isOpen, setIsOpen] = useState(false);
|
|
85
38
|
|
|
86
39
|
return (
|
|
87
40
|
<>
|
|
88
|
-
<button onClick={() => setIsOpen(true)}>
|
|
41
|
+
<button onClick={() => setIsOpen(true)}>Import CSV</button>
|
|
89
42
|
|
|
90
43
|
<CSVImporter
|
|
91
44
|
modalIsOpen={isOpen}
|
|
92
45
|
modalOnCloseTriggered={() => setIsOpen(false)}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
name: "First Name",
|
|
99
|
-
key: "first_name",
|
|
100
|
-
required: true,
|
|
101
|
-
description: "The first name of the user",
|
|
102
|
-
suggested_mappings: ["First", "Name"],
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
name: "Age",
|
|
106
|
-
data_type: "number",
|
|
107
|
-
},
|
|
108
|
-
],
|
|
109
|
-
}}
|
|
46
|
+
onComplete={(data) => console.log(data.rows)}
|
|
47
|
+
columns={[
|
|
48
|
+
{ id: 'name', label: 'Name', validators: [{ type: 'required' }] },
|
|
49
|
+
{ id: 'email', label: 'Email', type: 'email' }
|
|
50
|
+
]}
|
|
110
51
|
/>
|
|
111
52
|
</>
|
|
112
53
|
);
|
|
113
54
|
}
|
|
114
55
|
```
|
|
115
56
|
|
|
116
|
-
|
|
57
|
+
**That's it!** Your users get a polished import experience with column mapping, validation, and error handling.
|
|
117
58
|
|
|
118
|
-
|
|
119
|
-
<head>
|
|
120
|
-
<script src="https://unpkg.com/csv-import-js@latest/index.js"></script>
|
|
121
|
-
</head>
|
|
122
|
-
<body>
|
|
123
|
-
<button id="uploadButton">Open CSV Importer</button>
|
|
124
|
-
<div id="app"></div>
|
|
125
|
-
<script>
|
|
126
|
-
const importer = CSVImporter.createCSVImporter({
|
|
127
|
-
domElement: document.getElementById("app"),
|
|
128
|
-
modalOnCloseTriggered: () => importer?.closeModal(),
|
|
129
|
-
onComplete: (data) => console.log(data),
|
|
130
|
-
darkMode: true,
|
|
131
|
-
template: {
|
|
132
|
-
columns: [
|
|
133
|
-
{
|
|
134
|
-
name: "First Name",
|
|
135
|
-
key: "first_name",
|
|
136
|
-
required: true,
|
|
137
|
-
description: "The first name of the user",
|
|
138
|
-
suggested_mappings: ["First", "Name"],
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
name: "Age",
|
|
142
|
-
data_type: "number",
|
|
143
|
-
},
|
|
144
|
-
],
|
|
145
|
-
},
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
const uploadButton = document.getElementById("uploadButton");
|
|
149
|
-
uploadButton.addEventListener("click", () => {
|
|
150
|
-
importer?.showModal();
|
|
151
|
-
});
|
|
152
|
-
</script>
|
|
153
|
-
</body>
|
|
154
|
-
```
|
|
59
|
+
## Features
|
|
155
60
|
|
|
156
|
-
|
|
61
|
+
### 🚀 Core
|
|
62
|
+
- CSV, TSV, XLS, XLSX support (Excel support optional)
|
|
63
|
+
- Automatic encoding detection
|
|
64
|
+
- Header row detection
|
|
65
|
+
- Virtual scrolling for large files
|
|
157
66
|
|
|
158
|
-
###
|
|
67
|
+
### 🎯 Smart Mapping
|
|
68
|
+
- AI-powered column matching
|
|
69
|
+
- Fuzzy string matching
|
|
159
70
|
|
|
160
|
-
|
|
71
|
+
### ✨ Data Transformation
|
|
72
|
+
- **"Fix All Errors" button** - AI analyzes and fixes validation errors
|
|
73
|
+
- Natural language transformations ("convert dates to MM/DD/YYYY")
|
|
74
|
+
- Built-in transformers (capitalize, normalize phone, parse dates)
|
|
75
|
+
- Custom transformation functions
|
|
161
76
|
|
|
162
|
-
###
|
|
77
|
+
### ✅ Validation
|
|
78
|
+
- Required, unique, regex, min/max
|
|
79
|
+
- Email, phone, date formats
|
|
80
|
+
- Custom validators
|
|
81
|
+
- Real-time error display
|
|
163
82
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
83
|
+
### 🎨 Customization
|
|
84
|
+
- Dark mode support
|
|
85
|
+
- Custom CSS variables
|
|
167
86
|
|
|
168
|
-
###
|
|
87
|
+
### 📦 Framework Support
|
|
88
|
+
- React 16, 17, 18, 19
|
|
89
|
+
- Preact compatible
|
|
90
|
+
- Next.js (App & Pages Router)
|
|
91
|
+
- Vanilla JavaScript
|
|
169
92
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
```javascript
|
|
173
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
174
|
-
```
|
|
93
|
+
## Examples
|
|
175
94
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
modalOnCloseTriggered={() => setIsOpen(false)}
|
|
181
|
-
...
|
|
182
|
-
/>
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
### modalCloseOnOutsideClick (_boolean_, default: `false`)
|
|
186
|
-
|
|
187
|
-
Only used when `isModal` is `true`: Clicking outside the modal will call the `modalOnCloseTriggered` function.
|
|
188
|
-
|
|
189
|
-
### template (_object_)
|
|
190
|
-
|
|
191
|
-
Configure the columns used for the import.
|
|
192
|
-
|
|
193
|
-
```jsx
|
|
194
|
-
template={{
|
|
195
|
-
columns: [
|
|
196
|
-
{
|
|
197
|
-
name: "First Name",
|
|
198
|
-
key: "first_name",
|
|
199
|
-
required: true,
|
|
200
|
-
description: "The first name of the user",
|
|
201
|
-
suggested_mappings: ["First", "Name"],
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
name: "Age",
|
|
205
|
-
data_type: "number",
|
|
206
|
-
},
|
|
207
|
-
],
|
|
208
|
-
}}
|
|
209
|
-
```
|
|
210
|
-
|
|
211
|
-
### onComplete (_function_)
|
|
212
|
-
|
|
213
|
-
Callback function that fires when a user completes an import. It returns `data`, an object that contains the row data, column definitions, and other information about the import.
|
|
214
|
-
|
|
215
|
-
```jsx
|
|
216
|
-
onComplete={(data) => console.log(data)}
|
|
217
|
-
```
|
|
218
|
-
|
|
219
|
-
Example `data`:
|
|
220
|
-
|
|
221
|
-
```json
|
|
222
|
-
{
|
|
223
|
-
"num_rows": 2,
|
|
224
|
-
"num_columns": 3,
|
|
225
|
-
"columns": [
|
|
226
|
-
{
|
|
227
|
-
"key": "age",
|
|
228
|
-
"name": "Age"
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"key": "email",
|
|
232
|
-
"name": "Email"
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"key": "first_name",
|
|
236
|
-
"name": "First Name"
|
|
237
|
-
}
|
|
238
|
-
],
|
|
239
|
-
"rows": [
|
|
240
|
-
{
|
|
241
|
-
"index": 0,
|
|
242
|
-
"values": {
|
|
243
|
-
"age": 23,
|
|
244
|
-
"email": "maria@example.com",
|
|
245
|
-
"first_name": "Maria"
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"index": 1,
|
|
250
|
-
"values": {
|
|
251
|
-
"age": 32,
|
|
252
|
-
"email": "robert@example.com",
|
|
253
|
-
"first_name": "Robert"
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
]
|
|
257
|
-
}
|
|
95
|
+
### Next.js App Router
|
|
96
|
+
```tsx
|
|
97
|
+
'use client';
|
|
98
|
+
import { CSVImporter } from '@importcsv/react';
|
|
258
99
|
```
|
|
259
100
|
|
|
260
|
-
###
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
primaryColor = "#7A5EF8";
|
|
270
|
-
```
|
|
271
|
-
|
|
272
|
-
### customStyles (_object_)
|
|
273
|
-
|
|
274
|
-
Apply custom styles to the importer with an object containing CSS properties and values. Note that custom style properties will override `primaryColor` and any default styles from `darkMode`.
|
|
275
|
-
Available options:
|
|
276
|
-
|
|
277
|
-
```jsx
|
|
278
|
-
customStyles={{
|
|
279
|
-
"font-family": "cursive",
|
|
280
|
-
"font-size": "15px",
|
|
281
|
-
"base-spacing": "2rem",
|
|
282
|
-
"border-radius": "8px",
|
|
283
|
-
"color-primary": "salmon",
|
|
284
|
-
"color-primary-hover": "crimson",
|
|
285
|
-
"color-secondary": "indianRed",
|
|
286
|
-
"color-secondary-hover": "crimson",
|
|
287
|
-
"color-tertiary": "indianRed",
|
|
288
|
-
"color-tertiary-hover": "crimson",
|
|
289
|
-
"color-border": "lightCoral",
|
|
290
|
-
"color-text": "brown",
|
|
291
|
-
"color-text-soft": "rgba(165, 42, 42, .5)",
|
|
292
|
-
"color-text-on-primary": "#fff",
|
|
293
|
-
"color-text-on-secondary": "#ffffff",
|
|
294
|
-
"color-background": "bisque",
|
|
295
|
-
"color-background-modal": "blanchedAlmond",
|
|
296
|
-
"color-input-background": "blanchedAlmond",
|
|
297
|
-
"color-input-background-soft": "white",
|
|
298
|
-
"color-background-menu-hover": "bisque",
|
|
299
|
-
"color-importer-link": "indigo",
|
|
300
|
-
"color-progress-bar": "darkGreen"
|
|
301
|
-
}}
|
|
302
|
-
```
|
|
303
|
-
|
|
304
|
-
## Internationalization
|
|
305
|
-
|
|
306
|
-
### Predefined languages
|
|
307
|
-
|
|
308
|
-
- Out-of-the-box support for various languages.
|
|
309
|
-
- Common languages are available through the language prop (i.e., `language="fr"` for French).
|
|
310
|
-
- Available predefined languages:
|
|
311
|
-
- en
|
|
312
|
-
- es
|
|
313
|
-
- fr
|
|
314
|
-
|
|
315
|
-
### Customizable language
|
|
316
|
-
|
|
317
|
-
- Language keys can be exported and overridden.
|
|
318
|
-
- Labels and messages can be customized to any text.
|
|
319
|
-
- Translations key examples can be found in `src/i18n/es.ts`
|
|
320
|
-
|
|
321
|
-
```javascript
|
|
322
|
-
// Set up custom translations
|
|
323
|
-
const customTranslations = {
|
|
324
|
-
jp: {
|
|
325
|
-
Upload: "アップロード",
|
|
326
|
-
"Browse files": "ファイルを参照",
|
|
327
|
-
},
|
|
328
|
-
pt: {
|
|
329
|
-
Upload: "Carregar",
|
|
330
|
-
"Browse files": "Procurar arquivos",
|
|
331
|
-
},
|
|
332
|
-
};
|
|
333
|
-
|
|
334
|
-
return (
|
|
335
|
-
<CSVImporter language="jp" customTranslations={customTranslations} ...props />
|
|
336
|
-
)
|
|
337
|
-
|
|
338
|
-
```
|
|
339
|
-
|
|
340
|
-
### showDownloadTemplateButton (_boolean_, default: `true`)
|
|
341
|
-
|
|
342
|
-
When set to `false`, hide the Download Template button on the first screen of the importer.
|
|
343
|
-
|
|
344
|
-
### skipHeaderRowSelection (_boolean_, default: `false`)
|
|
345
|
-
|
|
346
|
-
When set to `true`, the importer will not display and skip the Header Row Selection step and always choose the first row in the file as the header.
|
|
347
|
-
|
|
348
|
-
## Contributing
|
|
349
|
-
|
|
350
|
-
### Setting Up the Project
|
|
351
|
-
|
|
352
|
-
To set up the project locally, follow these steps:
|
|
353
|
-
|
|
354
|
-
1. **Clone the repository**
|
|
355
|
-
|
|
356
|
-
```bash
|
|
357
|
-
git clone https://github.com/tableflowhq/csv-import.git
|
|
358
|
-
cd csv-import
|
|
359
|
-
```
|
|
360
|
-
|
|
361
|
-
2. **Install dependencies**
|
|
101
|
+
### Vanilla JavaScript
|
|
102
|
+
```html
|
|
103
|
+
<script src="https://unpkg.com/@importcsv/react@latest/build/bundled/index.umd.js"></script>
|
|
104
|
+
<script>
|
|
105
|
+
const importer = CSVImporter.createCSVImporter({
|
|
106
|
+
domElement: document.getElementById('app'),
|
|
107
|
+
columns: [/* ... */],
|
|
108
|
+
onComplete: (data) => console.log(data)
|
|
109
|
+
});
|
|
362
110
|
|
|
363
|
-
|
|
364
|
-
|
|
111
|
+
importer.showModal();
|
|
112
|
+
</script>
|
|
365
113
|
```
|
|
366
114
|
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
115
|
+
### With Validation & Transformation
|
|
116
|
+
```tsx
|
|
117
|
+
columns={[
|
|
118
|
+
{
|
|
119
|
+
id: 'email',
|
|
120
|
+
label: 'Email',
|
|
121
|
+
type: 'email',
|
|
122
|
+
validators: [{ type: 'required' }, { type: 'unique' }],
|
|
123
|
+
transformations: [{ type: 'lowercase' }, { type: 'trim' }]
|
|
124
|
+
}
|
|
125
|
+
]}
|
|
371
126
|
```
|
|
372
127
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
To run Storybook locally, follow these steps:
|
|
376
|
-
|
|
377
|
-
1. **Start Storybook**
|
|
378
|
-
|
|
379
|
-
```bash
|
|
380
|
-
yarn storybook
|
|
381
|
-
```
|
|
128
|
+
## Why ImportCSV?
|
|
382
129
|
|
|
383
|
-
|
|
384
|
-
|
|
130
|
+
| Feature | ImportCSV | Build Your Own | Other Libraries |
|
|
131
|
+
|---------|-----------|----------------|-----------------|
|
|
132
|
+
| Setup time | 5 minutes | Days/weeks | Hours |
|
|
133
|
+
| AI-powered fixes | ✅ | ❌ | ❌ |
|
|
134
|
+
| Virtual scrolling | ✅ | Maybe | Sometimes |
|
|
135
|
+
| Framework agnostic | ✅ | Your choice | Usually not |
|
|
136
|
+
| Bundle size | ~100KB | Varies | 200KB+ |
|
|
137
|
+
| Theming | 5 presets + custom | DIY | Limited |
|
|
385
138
|
|
|
386
|
-
|
|
139
|
+
## Resources
|
|
387
140
|
|
|
388
|
-
|
|
141
|
+
- 📚 [Documentation](https://docs.importcsv.com) - Complete guides and API reference
|
|
142
|
+
- 🐛 [Issues](https://github.com/importcsv/importcsv/issues) - Report bugs or request features
|
|
143
|
+
- ⭐ [GitHub](https://github.com/importcsv/importcsv) - Star us if you like it!
|
|
389
144
|
|
|
390
|
-
|
|
391
|
-
2. Follow the instructions in the demo app's `README.md` to set up and run the demo app. This will help you verify that your changes work as expected in a real application.
|
|
392
|
-
3. Commit your changes and push them to your forked repository.
|
|
393
|
-
4. Create a pull request to the main repository.
|
|
145
|
+
## License
|
|
394
146
|
|
|
395
|
-
|
|
147
|
+
MIT © [ImportCSV](https://github.com/importcsv/importcsv)
|
|
396
148
|
|
|
397
|
-
|
|
149
|
+
---
|
|
398
150
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
```bash
|
|
404
|
-
# Increment version - choose one of:
|
|
405
|
-
npm version patch # for bug fixes
|
|
406
|
-
npm version minor # for new features
|
|
407
|
-
npm version major # for breaking changes
|
|
408
|
-
```
|
|
409
|
-
|
|
410
|
-
2. Build the library:
|
|
411
|
-
|
|
412
|
-
```bash
|
|
413
|
-
yarn build
|
|
414
|
-
```
|
|
415
|
-
|
|
416
|
-
3. Publish to npm:
|
|
417
|
-
|
|
418
|
-
```bash
|
|
419
|
-
# If you're publishing for the first time
|
|
420
|
-
npm login
|
|
421
|
-
|
|
422
|
-
# Publish the package
|
|
423
|
-
yarn publish
|
|
424
|
-
```
|
|
425
|
-
|
|
426
|
-
4. To use the published package in another project:
|
|
427
|
-
```bash
|
|
428
|
-
# In your project
|
|
429
|
-
yarn add csv-import-react
|
|
430
|
-
```
|
|
431
|
-
|
|
432
|
-
### Using Yalc (for Local Development)
|
|
433
|
-
|
|
434
|
-
[Yalc](https://github.com/wclr/yalc) is a tool for local package development and sharing. It's useful when you want to test your library in another project without publishing to npm.
|
|
435
|
-
|
|
436
|
-
1. Install yalc globally:
|
|
437
|
-
|
|
438
|
-
```bash
|
|
439
|
-
npm install -g yalc
|
|
440
|
-
```
|
|
441
|
-
|
|
442
|
-
2. Build the library:
|
|
443
|
-
|
|
444
|
-
```bash
|
|
445
|
-
yarn build
|
|
446
|
-
```
|
|
447
|
-
|
|
448
|
-
3. Publish to local yalc store:
|
|
449
|
-
|
|
450
|
-
```bash
|
|
451
|
-
yalc publish
|
|
452
|
-
```
|
|
453
|
-
|
|
454
|
-
4. Add to your project:
|
|
455
|
-
|
|
456
|
-
```bash
|
|
457
|
-
# In your project directory
|
|
458
|
-
yalc add csv-import-react
|
|
459
|
-
yarn install # or npm install
|
|
460
|
-
```
|
|
461
|
-
|
|
462
|
-
5. When you make changes to the library:
|
|
463
|
-
|
|
464
|
-
```bash
|
|
465
|
-
# In the library directory
|
|
466
|
-
yarn build
|
|
467
|
-
yalc push # Updates all linked projects
|
|
468
|
-
```
|
|
469
|
-
|
|
470
|
-
6. To remove the yalc link:
|
|
471
|
-
```bash
|
|
472
|
-
# In your project directory
|
|
473
|
-
yalc remove csv-import-react
|
|
474
|
-
yarn install # Restore to regular dependencies
|
|
475
|
-
```
|
|
476
|
-
|
|
477
|
-
## Get In Touch
|
|
478
|
-
|
|
479
|
-
Let us know your feedback or feature requests! Submit a GitHub
|
|
480
|
-
issue [here](https://github.com/tableflowhq/csv-import/issues/new).
|
|
151
|
+
<div align="center">
|
|
152
|
+
<sub>Built with ❤️ for developers who have better things to do than parse CSVs</sub>
|
|
153
|
+
</div>
|