@fileflow/sdk 0.1.23 → 0.1.25

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.
@@ -483,6 +483,10 @@ const re = St((e, o) => ({
483
483
  unmappedTarget: n
484
484
  }),
485
485
  setValidationResults: (t) => {
486
+ if (!t) {
487
+ e({ validationResults: null, errorsByRow: /* @__PURE__ */ new Map() });
488
+ return;
489
+ }
486
490
  const n = /* @__PURE__ */ new Map();
487
491
  for (const r of t.errors) {
488
492
  const l = n.get(r.rowIndex) || [];
@@ -3073,7 +3077,7 @@ const tt = ({
3073
3077
  }, gt = De(async ($) => {
3074
3078
  if (f)
3075
3079
  try {
3076
- E(!0), B(null), T(10), W("Uploading file...");
3080
+ E(!0), B(null), y([]), x([], []), N(null), T(10), W("Uploading file...");
3077
3081
  const V = ie();
3078
3082
  T(30), W("Parsing file data...");
3079
3083
  const k = await V.uploadFile(f, $);
@@ -3088,7 +3092,7 @@ const tt = ({
3088
3092
  rows: k.data.sampleRows.map(K),
3089
3093
  totalRows: k.data.totalRows,
3090
3094
  sampleRows: k.data.sampleRows.map(K)
3091
- }), T(80), W("Matching columns..."), P(), await pt(), T(100), W("Done");
3095
+ }), T(80), W("Matching columns..."), _("mapping"), await pt(), T(100), W("Done");
3092
3096
  } catch (V) {
3093
3097
  B(`Failed to process the uploaded file: ${V.message}`);
3094
3098
  } finally {
@@ -3121,7 +3125,7 @@ const tt = ({
3121
3125
  try {
3122
3126
  E(!0), B(null), fe(null);
3123
3127
  const k = await ie().completeImport(f, {
3124
- skipInvalidRows: !0,
3128
+ skipInvalidRows: !1,
3125
3129
  acknowledgeWarnings: !0
3126
3130
  }), K = {
3127
3131
  ...k,
@@ -3381,4 +3385,4 @@ export {
3381
3385
  nt as V,
3382
3386
  re as u
3383
3387
  };
3384
- //# sourceMappingURL=ImportWizard-_wJ7Qxpr.mjs.map
3388
+ //# sourceMappingURL=ImportWizard-CcivRHrA.mjs.map