@fileflow/sdk 0.1.13 → 0.1.14
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/dist/{ImportWizard-BAmeOWXl.js → ImportWizard-B9r6-6cQ.js} +15 -15
- package/dist/{ImportWizard-BAmeOWXl.js.map → ImportWizard-B9r6-6cQ.js.map} +1 -1
- package/dist/{ImportWizard-B69XBxtG.mjs → ImportWizard-BEdcnr4Q.mjs} +825 -823
- package/dist/{ImportWizard-B69XBxtG.mjs.map → ImportWizard-BEdcnr4Q.mjs.map} +1 -1
- package/dist/{KYCWizard-CYdeoPXE.mjs → KYCWizard-DJ4zgpjq.mjs} +2 -2
- package/dist/{KYCWizard-CYdeoPXE.mjs.map → KYCWizard-DJ4zgpjq.mjs.map} +1 -1
- package/dist/{KYCWizard-Bei2tyWT.js → KYCWizard-SURShOJn.js} +2 -2
- package/dist/{KYCWizard-Bei2tyWT.js.map → KYCWizard-SURShOJn.js.map} +1 -1
- package/dist/import.d.ts +38 -0
- package/dist/import.js +1 -1
- package/dist/import.mjs +1 -1
- package/dist/{index-DOOgWkvj.js → index-DcWg2ozb.js} +33 -33
- package/dist/index-DcWg2ozb.js.map +1 -0
- package/dist/{index-oKr8Wtf5.mjs → index-fS1sp3k5.mjs} +731 -722
- package/dist/index-fS1sp3k5.mjs.map +1 -0
- package/dist/index.d.ts +43 -8
- package/dist/index.js +1 -1
- package/dist/index.mjs +3 -3
- package/dist/kyc.js +1 -1
- package/dist/kyc.mjs +1 -1
- package/dist/styles.css +1329 -0
- package/package.json +8 -3
- package/dist/index-DOOgWkvj.js.map +0 -1
- package/dist/index-oKr8Wtf5.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -177,6 +177,33 @@ export declare class FileFlowError extends Error {
|
|
|
177
177
|
constructor(code: string, message: string, status: number, details?: object | undefined);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Theme configuration for customizing SDK colors.
|
|
182
|
+
* All values should be valid CSS color values (hex, rgb, hsl, etc.)
|
|
183
|
+
*/
|
|
184
|
+
export declare interface FileFlowTheme {
|
|
185
|
+
/** Primary button background color */
|
|
186
|
+
primaryColor?: string;
|
|
187
|
+
/** Primary button hover background color */
|
|
188
|
+
primaryHoverColor?: string;
|
|
189
|
+
/** Primary button text color */
|
|
190
|
+
primaryTextColor?: string;
|
|
191
|
+
/** Success indicator color */
|
|
192
|
+
successColor?: string;
|
|
193
|
+
/** Error indicator color */
|
|
194
|
+
errorColor?: string;
|
|
195
|
+
/** Warning indicator color */
|
|
196
|
+
warningColor?: string;
|
|
197
|
+
/** Background color for the wizard container */
|
|
198
|
+
backgroundColor?: string;
|
|
199
|
+
/** Primary text color */
|
|
200
|
+
textColor?: string;
|
|
201
|
+
/** Muted/secondary text color */
|
|
202
|
+
textMutedColor?: string;
|
|
203
|
+
/** Border color */
|
|
204
|
+
borderColor?: string;
|
|
205
|
+
}
|
|
206
|
+
|
|
180
207
|
export declare const FileUploader: default_2.FC<FileUploaderProps>;
|
|
181
208
|
|
|
182
209
|
declare interface FileUploaderProps {
|
|
@@ -273,6 +300,17 @@ declare interface ImportWizardProps {
|
|
|
273
300
|
* @deprecated Prefer using template prop for built-in schemas
|
|
274
301
|
*/
|
|
275
302
|
schema?: ImportSchema;
|
|
303
|
+
/**
|
|
304
|
+
* Display mode for the wizard.
|
|
305
|
+
* - 'modal' (default): Renders as a centered modal with overlay, shadow, and animations
|
|
306
|
+
* - 'embed': Renders inline without overlay/shadow, width: 100%, consumer controls sizing
|
|
307
|
+
*/
|
|
308
|
+
mode?: 'modal' | 'embed';
|
|
309
|
+
/**
|
|
310
|
+
* Custom theme to override default SDK colors.
|
|
311
|
+
* Partial overrides are supported - only specify the colors you want to change.
|
|
312
|
+
*/
|
|
313
|
+
theme?: FileFlowTheme;
|
|
276
314
|
onComplete?: (result: ImportResult) => void;
|
|
277
315
|
onCancel?: () => void;
|
|
278
316
|
onError?: (error: Error) => void;
|
|
@@ -342,14 +380,6 @@ export { ProofOfAddressData }
|
|
|
342
380
|
|
|
343
381
|
export { SchemaColumn }
|
|
344
382
|
|
|
345
|
-
/**
|
|
346
|
-
* StyleProvider component that:
|
|
347
|
-
* 1. Auto-injects SDK styles into the document
|
|
348
|
-
* 2. Provides style isolation from the host application
|
|
349
|
-
*
|
|
350
|
-
* This component wraps SDK components to ensure they are styled correctly
|
|
351
|
-
* regardless of the host application's styles.
|
|
352
|
-
*/
|
|
353
383
|
export declare const StyleProvider: default_2.FC<StyleProviderProps>;
|
|
354
384
|
|
|
355
385
|
declare interface StyleProviderProps {
|
|
@@ -358,6 +388,11 @@ declare interface StyleProviderProps {
|
|
|
358
388
|
* Additional class names to apply to the container
|
|
359
389
|
*/
|
|
360
390
|
className?: string;
|
|
391
|
+
/**
|
|
392
|
+
* Custom theme to override default SDK colors.
|
|
393
|
+
* Partial overrides are supported - only specify the colors you want to change.
|
|
394
|
+
*/
|
|
395
|
+
theme?: FileFlowTheme;
|
|
361
396
|
}
|
|
362
397
|
|
|
363
398
|
export { templateExists }
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DcWg2ozb.js"),t=require("./ImportWizard-B9r6-6cQ.js"),l=require("./KYCWizard-SURShOJn.js");exports.CANADIAN_PROVINCES=e.CANADIAN_PROVINCES;exports.DOCUMENT_TYPES=e.DOCUMENT_TYPES;exports.FileFlowClient=e.FileFlowClient;exports.FileFlowError=e.FileFlowError;exports.IMPORT_TEMPLATES=e.IMPORT_TEMPLATES;exports.StyleProvider=e.StyleProvider;exports.VALID_TEMPLATE_IDS=e.VALID_TEMPLATE_IDS;exports.getAvailableTemplates=e.getAvailableTemplates;exports.getClient=e.getClient;exports.getTemplate=e.getTemplate;exports.getTemplateSchema=e.getTemplateSchema;exports.getTemplatesByCategory=e.getTemplatesByCategory;exports.initializeClient=e.initializeClient;exports.injectStyles=e.injectStyles;exports.listTemplates=e.listTemplates;exports.templateExists=e.templateExists;exports.useFileFlowStyles=e.useFileFlowStyles;exports.ColumnMapper=t.ColumnMapper;exports.DataTable=t.DataTable;exports.FileUploader=t.FileUploader;exports.ImportWizard=t.ImportWizard;exports.ValidationSummary=t.ValidationSummary;exports.useImportStore=t.useImportStore;exports.DocumentStatus=l.DocumentStatus;exports.DocumentUploader=l.DocumentUploader;exports.KYCWizard=l.KYCWizard;exports.useKYCStore=l.useKYCStore;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as s, D as t, F as l, b as o, I as r, S as i, V as m, e as p, g as S, c as T, d as C, f as u, a as D, i as n, l as E, t as F, u as I } from "./index-
|
|
2
|
-
import { C as g, D as A, F as y, I as P, V as c, u as M } from "./ImportWizard-
|
|
3
|
-
import { a as _, D as f, K as x, u as N } from "./KYCWizard-
|
|
1
|
+
import { C as s, D as t, F as l, b as o, I as r, S as i, V as m, e as p, g as S, c as T, d as C, f as u, a as D, i as n, l as E, t as F, u as I } from "./index-fS1sp3k5.mjs";
|
|
2
|
+
import { C as g, D as A, F as y, I as P, V as c, u as M } from "./ImportWizard-BEdcnr4Q.mjs";
|
|
3
|
+
import { a as _, D as f, K as x, u as N } from "./KYCWizard-DJ4zgpjq.mjs";
|
|
4
4
|
export {
|
|
5
5
|
s as CANADIAN_PROVINCES,
|
|
6
6
|
g as ColumnMapper,
|
package/dist/kyc.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./KYCWizard-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./KYCWizard-SURShOJn.js");exports.DocumentStatus=e.DocumentStatus;exports.DocumentUploader=e.DocumentUploader;exports.KYCWizard=e.KYCWizard;exports.useKYCStore=e.useKYCStore;
|
|
2
2
|
//# sourceMappingURL=kyc.js.map
|
package/dist/kyc.mjs
CHANGED