@expresscsv/react 0.1.2 → 0.1.4

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.
@@ -0,0 +1,27 @@
1
+ import type { DeepPartial, ExpressCSVLocaleInput, TemplateDownloadConfig } from '@expresscsv/core';
2
+ import { type ColorModeConfig, type ECSVFontSource, type ECSVTheme, type ExBaseDef, type ExType, type Infer, type OpenOptions, WidgetState } from '@expresscsv/sdk';
3
+ export type { ColorModeConfig, ColorModePref, ECSVTheme, TailwindThemeVars, } from '@expresscsv/sdk';
4
+ export interface UseExpressCSVOptions<TSchema extends ExType<unknown, ExBaseDef, unknown>> {
5
+ schema: TSchema;
6
+ title?: string;
7
+ importIdentifier: string;
8
+ publishableKey: string;
9
+ debug?: boolean;
10
+ developerMode?: boolean;
11
+ preload?: boolean;
12
+ theme?: ECSVTheme;
13
+ colorMode?: ColorModeConfig;
14
+ customCSS?: string;
15
+ fonts?: Record<string, ECSVFontSource>;
16
+ stepDisplay?: 'progressBar' | 'segmented' | 'numbered';
17
+ previewSchemaBeforeUpload?: boolean;
18
+ templateDownload?: TemplateDownloadConfig;
19
+ saveSession?: boolean;
20
+ locale?: DeepPartial<ExpressCSVLocaleInput>;
21
+ }
22
+ export declare function useExpressCSV<TSchema extends ExType<unknown, ExBaseDef, unknown>>({ schema, title, importIdentifier, publishableKey, debug, developerMode, preload, theme, colorMode, customCSS, fonts, stepDisplay, previewSchemaBeforeUpload, templateDownload, saveSession, locale, }: UseExpressCSVOptions<TSchema>): {
23
+ open: (options: OpenOptions<Infer<TSchema>>) => void;
24
+ widgetState: WidgetState;
25
+ isInitialising: boolean;
26
+ isOpen: boolean;
27
+ };
@@ -0,0 +1,4 @@
1
+ export { useExpressCSV, type UseExpressCSVOptions, } from './CSVImporter';
2
+ export { x, WidgetState, WidgetMode, ImportCancelledError, } from '@expresscsv/sdk';
3
+ export type { Infer, ECSVFontSource, ECSVTheme, TailwindThemeVars, ColorModeConfig, ColorModePref, ExpressCSVStep, RecordsChunk, OpenOptions, WebhookConfig, DeliveryOptions, } from '@expresscsv/sdk';
4
+ export type { TemplateDownloadConfig, TemplateDownloadFormat, ExpressCSVLocaleInput, DeepPartial, } from '@expresscsv/core';