@fileflow/sdk 0.1.17 → 0.1.19

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/index.d.ts CHANGED
@@ -50,8 +50,10 @@ export declare const DataTable: default_2.FC<DataTableProps>;
50
50
 
51
51
  declare interface DataTableProps {
52
52
  editable?: boolean;
53
+ deletable?: boolean;
53
54
  pageSize?: number;
54
55
  onCellEdit?: (rowIndex: number, columnKey: string, value: string) => void;
56
+ onRowDelete?: (rowIndex: number) => void;
55
57
  }
56
58
 
57
59
  export { DOCUMENT_TYPES }
@@ -246,6 +248,7 @@ declare interface ImportActions {
246
248
  startEditing: (rowIndex: number, columnKey: string) => void;
247
249
  stopEditing: () => void;
248
250
  updateCell: (rowIndex: number, columnKey: string, value: unknown) => void;
251
+ deleteRow: (rowIndex: number) => void;
249
252
  setStatus: (status: string) => void;
250
253
  setLoading: (loading: boolean) => void;
251
254
  setError: (error: string | null) => void;
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-pKcPB1CY.js"),t=require("./ImportWizard-CrWMalmb.js"),l=require("./KYCWizard-w_q7ZqUm.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BHPobN9B.js"),t=require("./ImportWizard-Ct_0XYe5.js"),l=require("./KYCWizard-BCUzLLBj.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-S6qm6fPa.mjs";
2
- import { C as g, D as A, F as y, I as P, V as c, u as M } from "./ImportWizard-Cn8RiCyW.mjs";
3
- import { a as _, D as f, K as x, u as N } from "./KYCWizard-C6KmAQmd.mjs";
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-oYOmMOWf.mjs";
2
+ import { C as g, D as A, F as y, I as P, V as c, u as M } from "./ImportWizard-wQRSiaEP.mjs";
3
+ import { a as _, D as f, K as x, u as N } from "./KYCWizard-BHL5pJzV.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-w_q7ZqUm.js");exports.DocumentStatus=e.DocumentStatus;exports.DocumentUploader=e.DocumentUploader;exports.KYCWizard=e.KYCWizard;exports.useKYCStore=e.useKYCStore;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./KYCWizard-BCUzLLBj.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
@@ -1,4 +1,4 @@
1
- import { a as o, D as s, K as t, u as r } from "./KYCWizard-C6KmAQmd.mjs";
1
+ import { a as o, D as s, K as t, u as r } from "./KYCWizard-BHL5pJzV.mjs";
2
2
  export {
3
3
  o as DocumentStatus,
4
4
  s as DocumentUploader,
package/dist/styles.css CHANGED
@@ -418,10 +418,40 @@
418
418
  /* Edit button */
419
419
  .fileflow-sdk-root .ff-edit-btn {
420
420
  color: var(--ff-text-muted);
421
+ @apply ff-p-1 ff-rounded;
421
422
  }
422
423
 
423
424
  .fileflow-sdk-root .ff-edit-btn:hover {
424
425
  color: var(--ff-text-secondary);
426
+ background-color: var(--ff-bg-tertiary);
427
+ }
428
+
429
+ /* Delete button - always visible with muted color, red on hover */
430
+ .fileflow-sdk-root .ff-delete-btn {
431
+ @apply ff-p-1.5 ff-rounded-lg;
432
+ color: var(--ff-gray-80);
433
+ background-color: transparent;
434
+ @apply ff-transition-colors ff-duration-150;
435
+ }
436
+
437
+ .fileflow-sdk-root .ff-delete-btn svg {
438
+ display: block;
439
+ width: 1rem;
440
+ height: 1rem;
441
+ }
442
+
443
+ .fileflow-sdk-root .ff-delete-btn:hover {
444
+ color: var(--ff-error);
445
+ background-color: var(--ff-error-light);
446
+ }
447
+
448
+ .fileflow-sdk-root .ff-delete-btn:disabled {
449
+ @apply ff-opacity-30 ff-cursor-not-allowed;
450
+ }
451
+
452
+ .fileflow-sdk-root .ff-delete-btn:disabled:hover {
453
+ color: var(--ff-gray-80);
454
+ background-color: transparent;
425
455
  }
426
456
 
427
457
  /* ============================================
@@ -534,15 +564,17 @@
534
564
  box-shadow: 0 0 0 3px var(--ff-focus-ring);
535
565
  }
536
566
 
537
- /* Ghost */
567
+ /* Ghost - now with visible border for better contrast on light backgrounds */
538
568
  .fileflow-sdk-root .ff-btn-ghost {
539
- background-color: transparent;
569
+ background-color: var(--ff-bg-primary);
540
570
  color: var(--ff-text-secondary);
571
+ border-color: var(--ff-border-default);
541
572
  }
542
573
 
543
574
  .fileflow-sdk-root .ff-btn-ghost:hover:not(:disabled) {
544
- background-color: var(--ff-bg-secondary);
575
+ background-color: var(--ff-bg-tertiary);
545
576
  color: var(--ff-text-primary);
577
+ border-color: var(--ff-border-dark);
546
578
  }
547
579
 
548
580
  /* Accent - Purple (for alternate theme) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileflow/sdk",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "FileFlow SDK - Embeddable data import and KYC verification components with automatic style injection",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",