@ai-matrx/records-ui 0.116.41 → 0.116.43

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
  {