@updog/data-editor 0.1.89 → 0.1.91

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.
Files changed (3) hide show
  1. package/index.d.ts +12 -0
  2. package/index.js +2644 -2584
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -524,6 +524,8 @@ declare var export_default = {
524
524
  showSampleValues: "Show example values from {{column}}",
525
525
  unmatchedWarning:
526
526
  "Unmatched columns won't be imported. Match this column to keep the data. You can transform columns after importing.",
527
+ unmatchedWarningWithRowHook:
528
+ "The import can read this column without a match. If you match it, the import may still change the values.",
527
529
  },
528
530
  sheetPreview: {
529
531
  cancel: "Cancel processing",
@@ -953,6 +955,11 @@ type DataEditorColumn = {
953
955
  editor?: CellEditor;
954
956
  /** Adds a filter control for this column in the sidebar Filters panel. */
955
957
  filter?: ColumnFilter;
958
+ /**
959
+ * Whether this column is offered as a target on the column-matching step.
960
+ * Set false for fields your `onRowImport` callback fills. @default true
961
+ */
962
+ mappable?: boolean;
956
963
  /**
957
964
  * Whether this column can be pinned to the left (right in RTL) via the
958
965
  * header context menu. @default true
@@ -2503,6 +2510,11 @@ type RowImportMeta = {
2503
2510
  mapping: Record<string, string | undefined>;
2504
2511
  /** The `context` prop, untouched. */
2505
2512
  context: unknown;
2513
+ /**
2514
+ * Aborted when the import is cancelled and when the chunk's 30-second
2515
+ * timeout fires; hand it to your own fetch.
2516
+ */
2517
+ signal: AbortSignal;
2506
2518
  };
2507
2519
  /**
2508
2520
  * Chunk in, chunk out. The returned array is positional: element `i` answers