@fileflow/sdk 0.1.13 → 0.1.15
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-B5Uegimf.js +73 -0
- package/dist/{ImportWizard-BAmeOWXl.js.map → ImportWizard-B5Uegimf.js.map} +1 -1
- package/dist/{ImportWizard-B69XBxtG.mjs → ImportWizard-BNCe0g8q.mjs} +751 -748
- package/dist/{ImportWizard-B69XBxtG.mjs.map → ImportWizard-BNCe0g8q.mjs.map} +1 -1
- package/dist/{KYCWizard-CYdeoPXE.mjs → KYCWizard-BQkfxOw-.mjs} +2 -2
- package/dist/{KYCWizard-CYdeoPXE.mjs.map → KYCWizard-BQkfxOw-.mjs.map} +1 -1
- package/dist/{KYCWizard-Bei2tyWT.js → KYCWizard-Cq4Q7c8v.js} +2 -2
- package/dist/{KYCWizard-Bei2tyWT.js.map → KYCWizard-Cq4Q7c8v.js.map} +1 -1
- package/dist/import.d.ts +46 -0
- package/dist/import.js +1 -1
- package/dist/import.mjs +1 -1
- package/dist/{index-oKr8Wtf5.mjs → index-BNtIB3cM.mjs} +1080 -1038
- package/dist/index-BNtIB3cM.mjs.map +1 -0
- package/dist/{index-DOOgWkvj.js → index-j-Z3dkyz.js} +35 -35
- package/dist/index-j-Z3dkyz.js.map +1 -0
- package/dist/index.d.ts +67 -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/ImportWizard-BAmeOWXl.js +0 -73
- 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,25 @@ 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;
|
|
314
|
+
/**
|
|
315
|
+
* Enable Shadow DOM for bulletproof style isolation.
|
|
316
|
+
* When true, the SDK renders inside a Shadow DOM boundary, completely
|
|
317
|
+
* isolating styles from the host application in both directions.
|
|
318
|
+
*
|
|
319
|
+
* @default false
|
|
320
|
+
*/
|
|
321
|
+
useShadowDom?: boolean;
|
|
276
322
|
onComplete?: (result: ImportResult) => void;
|
|
277
323
|
onCancel?: () => void;
|
|
278
324
|
onError?: (error: Error) => void;
|
|
@@ -342,14 +388,6 @@ export { ProofOfAddressData }
|
|
|
342
388
|
|
|
343
389
|
export { SchemaColumn }
|
|
344
390
|
|
|
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
391
|
export declare const StyleProvider: default_2.FC<StyleProviderProps>;
|
|
354
392
|
|
|
355
393
|
declare interface StyleProviderProps {
|
|
@@ -358,6 +396,27 @@ declare interface StyleProviderProps {
|
|
|
358
396
|
* Additional class names to apply to the container
|
|
359
397
|
*/
|
|
360
398
|
className?: string;
|
|
399
|
+
/**
|
|
400
|
+
* Custom theme to override default SDK colors.
|
|
401
|
+
* Partial overrides are supported - only specify the colors you want to change.
|
|
402
|
+
*/
|
|
403
|
+
theme?: FileFlowTheme;
|
|
404
|
+
/**
|
|
405
|
+
* Enable Shadow DOM for bulletproof style isolation.
|
|
406
|
+
* When true, the SDK renders inside a Shadow DOM boundary, completely
|
|
407
|
+
* isolating styles from the host application in both directions.
|
|
408
|
+
*
|
|
409
|
+
* Use this when:
|
|
410
|
+
* - Host app has aggressive global styles that override SDK styles
|
|
411
|
+
* - You need guaranteed style isolation regardless of host CSS
|
|
412
|
+
* - Standard CSS isolation (all: revert) isn't sufficient
|
|
413
|
+
*
|
|
414
|
+
* Note: Shadow DOM may affect some CSS features like :focus-visible
|
|
415
|
+
* and requires React 18+ for proper portal support.
|
|
416
|
+
*
|
|
417
|
+
* @default false
|
|
418
|
+
*/
|
|
419
|
+
useShadowDom?: boolean;
|
|
361
420
|
}
|
|
362
421
|
|
|
363
422
|
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-j-Z3dkyz.js"),t=require("./ImportWizard-B5Uegimf.js"),l=require("./KYCWizard-Cq4Q7c8v.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-BNtIB3cM.mjs";
|
|
2
|
+
import { C as g, D as A, F as y, I as P, V as c, u as M } from "./ImportWizard-BNCe0g8q.mjs";
|
|
3
|
+
import { a as _, D as f, K as x, u as N } from "./KYCWizard-BQkfxOw-.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-Cq4Q7c8v.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