@ai-matrx/records-ui 0.116.42 → 0.116.44

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/pickers.cjs CHANGED
@@ -527,14 +527,25 @@ function RefusalNotice({
527
527
  className,
528
528
  actions,
529
529
  onKeepEditing,
530
- onDiscard
530
+ onDiscard,
531
+ onRetry
531
532
  }) {
532
533
  const archivedOrg = (0, import_core.archivedOrganizationId)(error);
533
534
  if (archivedOrg) {
534
535
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ArchivedOrganizationNotice, { organizationId: archivedOrg, error, className });
535
536
  }
536
537
  const plain = refusalForAPerson(error);
537
- const doors = onKeepEditing || onDiscard ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex flex-wrap items-center gap-1 pt-0.5", "data-refusal-doors": "", children: [
538
+ const doors = onKeepEditing || onDiscard || onRetry ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex flex-wrap items-center gap-1 pt-0.5", "data-refusal-doors": "", children: [
539
+ onRetry ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
540
+ "button",
541
+ {
542
+ type: "button",
543
+ "data-refusal-retry": "",
544
+ className: "rounded border px-2 py-0.5 text-xs hover:bg-muted",
545
+ onClick: onRetry,
546
+ children: "Try again"
547
+ }
548
+ ) : null,
538
549
  onKeepEditing ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
539
550
  "button",
540
551
  {
@@ -4010,7 +4021,7 @@ function ImportWizard({ tableId, source, onDone, onWrote, autoRun, className })
4010
4021
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-muted-foreground", children: "Reading the rows this import refused\u2026" }) : null
4011
4022
  ] }, r.import_id)) })
4012
4023
  ] }) : null,
4013
- table.error ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(RefusalNotice, { error: table.error }) : null
4024
+ table.error ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(RefusalNotice, { error: table.error, onRetry: table.reload }) : null
4014
4025
  ] });
4015
4026
  }
4016
4027
  var import_react45, import_react46, import_core6, import_design_system26, import_records15, import_text_case5, import_jsx_runtime31, BATCH, SAMPLES, COLUMNS_PER_CALL, ABSENT, LEAVE, TITLE_COPY, TYPED_VALUES;