@fileflow/sdk 0.1.29 → 0.1.31
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-BsXU0Tm7.js +64 -0
- package/dist/ImportWizard-BsXU0Tm7.js.map +1 -0
- package/dist/{ImportWizard-Cux3nYN4.mjs → ImportWizard-C7vsPfrT.mjs} +1184 -1267
- package/dist/ImportWizard-C7vsPfrT.mjs.map +1 -0
- package/dist/{KYCWizard-DecrJ0MW.js → KYCWizard-C9OMqfkX.js} +2 -2
- package/dist/{KYCWizard-DecrJ0MW.js.map → KYCWizard-C9OMqfkX.js.map} +1 -1
- package/dist/{KYCWizard-D9W8V70o.mjs → KYCWizard-a5sYPhrA.mjs} +2 -2
- package/dist/{KYCWizard-D9W8V70o.mjs.map → KYCWizard-a5sYPhrA.mjs.map} +1 -1
- package/dist/import.d.ts +9 -24
- package/dist/import.js +1 -1
- package/dist/import.mjs +1 -1
- package/dist/{index-Dn3cI9sZ.mjs → index-BOU2aWf8.mjs} +212 -212
- package/dist/{index-Dn3cI9sZ.mjs.map → index-BOU2aWf8.mjs.map} +1 -1
- package/dist/{index-RFYSKfrk.js → index-DnSXPtpU.js} +14 -14
- package/dist/{index-RFYSKfrk.js.map → index-DnSXPtpU.js.map} +1 -1
- package/dist/index.d.ts +9 -24
- 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 +66 -3
- package/package.json +1 -1
- package/dist/ImportWizard-Cux3nYN4.mjs.map +0 -1
- package/dist/ImportWizard-lxWu3Ydd.js +0 -79
- package/dist/ImportWizard-lxWu3Ydd.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -293,36 +293,21 @@ export { ImportTemplateMetadata }
|
|
|
293
293
|
export declare const ImportWizard: default_2.FC<ImportWizardProps>;
|
|
294
294
|
|
|
295
295
|
declare interface ImportWizardProps {
|
|
296
|
-
/**
|
|
297
|
-
* Template name to use for import schema.
|
|
298
|
-
* Use this instead of schema prop for built-in templates.
|
|
299
|
-
* Available templates: 'sample-contact', 'payspace-batch'
|
|
300
|
-
*/
|
|
296
|
+
/** Template name to use for import schema. */
|
|
301
297
|
template?: string;
|
|
302
|
-
/**
|
|
303
|
-
* Custom import schema. Only used if template is not provided.
|
|
304
|
-
* @deprecated Prefer using template prop for built-in schemas
|
|
305
|
-
*/
|
|
298
|
+
/** Custom import schema. Only used if template is not provided. */
|
|
306
299
|
schema?: ImportSchema;
|
|
307
|
-
/**
|
|
308
|
-
* Display mode for the wizard.
|
|
309
|
-
* - 'modal' (default): Renders as a centered modal with overlay, shadow, and animations
|
|
310
|
-
* - 'embed': Renders inline without overlay/shadow, width: 100%, consumer controls sizing
|
|
311
|
-
*/
|
|
300
|
+
/** Display mode: 'modal' (default) or 'embed' (inline, user-resizable). */
|
|
312
301
|
mode?: 'modal' | 'embed';
|
|
313
|
-
/**
|
|
314
|
-
* Custom theme to override default SDK colors.
|
|
315
|
-
* Partial overrides are supported - only specify the colors you want to change.
|
|
316
|
-
*/
|
|
302
|
+
/** Custom theme to override default SDK colors. */
|
|
317
303
|
theme?: FileFlowTheme;
|
|
304
|
+
/** Enable Shadow DOM for bulletproof style isolation. */
|
|
305
|
+
useShadowDom?: boolean;
|
|
318
306
|
/**
|
|
319
|
-
*
|
|
320
|
-
*
|
|
321
|
-
* isolating styles from the host application in both directions.
|
|
322
|
-
*
|
|
323
|
-
* @default false
|
|
307
|
+
* External error to display on the complete step, overriding the SDK's own
|
|
308
|
+
* success state. Use this to pass backend errors received after onComplete.
|
|
324
309
|
*/
|
|
325
|
-
|
|
310
|
+
error?: string | null;
|
|
326
311
|
onComplete?: (result: ImportResult) => void;
|
|
327
312
|
onCancel?: () => void;
|
|
328
313
|
onError?: (error: Error) => void;
|
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-DnSXPtpU.js"),t=require("./ImportWizard-BsXU0Tm7.js"),l=require("./KYCWizard-C9OMqfkX.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-BOU2aWf8.mjs";
|
|
2
|
+
import { C as g, D as A, F as y, I as P, V as c, u as M } from "./ImportWizard-C7vsPfrT.mjs";
|
|
3
|
+
import { a as _, D as f, K as x, u as N } from "./KYCWizard-a5sYPhrA.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-C9OMqfkX.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
package/dist/styles.css
CHANGED
|
@@ -489,9 +489,8 @@
|
|
|
489
489
|
--tw-ring-color: rgba(212, 51, 56, 0.2); /* ff-error at 20% opacity */
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
-
/* Select -
|
|
493
|
-
.fileflow-sdk-root .ff-select
|
|
494
|
-
.fileflow-sdk-root select.ff-input {
|
|
492
|
+
/* Select - legacy class kept for backward compat */
|
|
493
|
+
.fileflow-sdk-root .ff-select {
|
|
495
494
|
@apply ff-appearance-none ff-cursor-pointer;
|
|
496
495
|
padding-right: 2.5rem;
|
|
497
496
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2378716c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
|
|
@@ -1368,6 +1367,70 @@
|
|
|
1368
1367
|
--ff-focus-ring: var(--ff-focus-ring-accent);
|
|
1369
1368
|
}
|
|
1370
1369
|
|
|
1370
|
+
/* ============================================
|
|
1371
|
+
Column Resize Handle
|
|
1372
|
+
============================================ */
|
|
1373
|
+
|
|
1374
|
+
.fileflow-sdk-root .ff-resize-handle {
|
|
1375
|
+
opacity: 0;
|
|
1376
|
+
background-color: var(--ff-primary-70);
|
|
1377
|
+
transition: opacity 0.15s;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
.fileflow-sdk-root .ff-table th:hover .ff-resize-handle {
|
|
1381
|
+
opacity: 1;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
.fileflow-sdk-root .ff-resize-handle:hover,
|
|
1385
|
+
.fileflow-sdk-root .ff-resize-handle:active {
|
|
1386
|
+
opacity: 1;
|
|
1387
|
+
background-color: var(--ff-primary-90);
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
/* ============================================
|
|
1391
|
+
Embed Resizable Container
|
|
1392
|
+
============================================ */
|
|
1393
|
+
|
|
1394
|
+
.fileflow-sdk-root .ff-embed-resizable,
|
|
1395
|
+
.ff-embed-resizable {
|
|
1396
|
+
resize: both;
|
|
1397
|
+
overflow: auto;
|
|
1398
|
+
min-width: 400px;
|
|
1399
|
+
min-height: 300px;
|
|
1400
|
+
position: relative;
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
/* ============================================
|
|
1404
|
+
Styled Select (Dropdown) - enhanced native select
|
|
1405
|
+
============================================ */
|
|
1406
|
+
|
|
1407
|
+
.fileflow-sdk-root select.ff-input {
|
|
1408
|
+
@apply ff-appearance-none ff-cursor-pointer;
|
|
1409
|
+
height: 44px;
|
|
1410
|
+
padding-right: 2.5rem;
|
|
1411
|
+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2378716c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
|
|
1412
|
+
background-position: right 0.75rem center;
|
|
1413
|
+
background-repeat: no-repeat;
|
|
1414
|
+
background-size: 1.25em 1.25em;
|
|
1415
|
+
white-space: nowrap;
|
|
1416
|
+
text-overflow: ellipsis;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
.fileflow-sdk-root select.ff-input:hover {
|
|
1420
|
+
border-color: var(--ff-border-dark);
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
.fileflow-sdk-root select.ff-input:focus {
|
|
1424
|
+
@apply ff-outline-none ff-ring-4;
|
|
1425
|
+
border-color: var(--ff-primary-500);
|
|
1426
|
+
--tw-ring-color: var(--ff-focus-ring);
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
/* Muted color for the placeholder option */
|
|
1430
|
+
.fileflow-sdk-root select.ff-input option[value=''] {
|
|
1431
|
+
color: var(--ff-text-muted);
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1371
1434
|
/* ============================================
|
|
1372
1435
|
Tailwind Utilities - MUST be last!
|
|
1373
1436
|
Utility classes used in JSX (e.g. ff-flex, ff-p-4, ff-border)
|
package/package.json
CHANGED