@nivaro/react 0.3.64 → 0.3.65

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 (64) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +49 -4
  4. package/dist/shared/components/CollectionBrowserView.js +3029 -2947
  5. package/dist/shared/components/ConformanceView.js +235 -221
  6. package/dist/shared/components/DataTable.js +478 -459
  7. package/dist/shared/components/ItemEditForm.js +4469 -4266
  8. package/dist/shared/components/PageRenderer.js +146 -138
  9. package/dist/shared/components/RecordDrilldownSheet.js +73 -65
  10. package/dist/shared/components/bulk/BulkActionButtons.js +72 -72
  11. package/dist/shared/components/bulk/BulkFieldUpdate.js +114 -103
  12. package/dist/shared/components/bulk/BulkFieldUpdateButton.js +73 -0
  13. package/dist/shared/components/bulk/bulk-field-options.js +29 -23
  14. package/dist/shared/components/integrations/IntegrationObligationsView.js +191 -173
  15. package/dist/shared/components/integrations/IntegrationStatusLines.js +101 -85
  16. package/dist/shared/components/integrations/RecordIntegrationPreview.js +11 -9
  17. package/dist/shared/components/integrations/SendCurrentData.js +126 -0
  18. package/dist/shared/components/item-edit/CatalogPickerField.js +1530 -1437
  19. package/dist/shared/components/item-edit/FieldRenderer.js +49 -45
  20. package/dist/shared/components/item-edit/FieldRow.js +413 -403
  21. package/dist/shared/components/item-edit/InlineTableField.js +2903 -2816
  22. package/dist/shared/components/item-edit/M2MCombobox.js +172 -168
  23. package/dist/shared/components/item-edit/MidairCollisionDialog.js +341 -114
  24. package/dist/shared/components/item-edit/NestedRelationEditor.js +171 -163
  25. package/dist/shared/components/item-edit/PlanGrid.js +783 -724
  26. package/dist/shared/components/item-edit/QuickCreateButton.js +291 -224
  27. package/dist/shared/components/item-edit/RecordInsights.js +113 -111
  28. package/dist/shared/components/item-edit/RecordLiveSync.js +4 -1
  29. package/dist/shared/components/item-edit/RelationCombobox.js +332 -314
  30. package/dist/shared/components/item-edit/cascade-clear-notice.js +52 -0
  31. package/dist/shared/components/item-edit/collision-format.js +37 -0
  32. package/dist/shared/components/item-edit/field-a11y.js +25 -0
  33. package/dist/shared/components/item-edit/line-merge.js +58 -0
  34. package/dist/shared/components/item-edit/line-midair.js +94 -87
  35. package/dist/shared/components/item-edit/move-guard.js +17 -0
  36. package/dist/shared/components/item-edit/picker-search.js +22 -15
  37. package/dist/shared/components/item-edit/rail-width.js +8 -0
  38. package/dist/shared/components/monitoring/InactiveUserLinksView.js +126 -124
  39. package/dist/shared/components/panels/AccessDeniedPanel.js +96 -55
  40. package/dist/shared/components/panels/CommentPanel.js +142 -136
  41. package/dist/shared/components/panels/ItemLockBanner.js +246 -240
  42. package/dist/shared/components/panels/PipelinePanel.js +1366 -1194
  43. package/dist/shared/components/panels/RevisionsPanel.js +106 -102
  44. package/dist/shared/components/panels/SlaBreachBanner.js +16 -20
  45. package/dist/shared/components/panels/SlaClock.js +90 -68
  46. package/dist/shared/components/queue/QueueItemSheet.js +94 -87
  47. package/dist/shared/components/queue/QueueWorklist.js +1502 -1354
  48. package/dist/shared/components/queue/worklist-csv.js +75 -0
  49. package/dist/shared/components/queue/worklist-helpers.js +20 -0
  50. package/dist/shared/components/widgets/ReviewListWidget.js +226 -207
  51. package/dist/shared/lib/bulk-copy.js +17 -0
  52. package/dist/shared/lib/cbv-export.js +122 -0
  53. package/dist/shared/lib/delete-offer.js +13 -0
  54. package/dist/shared/lib/error-hints.js +1 -0
  55. package/dist/shared/lib/leave-guard.js +41 -26
  56. package/dist/shared/lib/list-link.js +72 -56
  57. package/dist/shared/lib/live-queries.js +32 -30
  58. package/dist/shared/lib/moved-notice.js +25 -0
  59. package/dist/shared/lib/notification-target.js +56 -54
  60. package/dist/shared/lib/obligation-banner.js +11 -8
  61. package/dist/shared/lib/obligation-reason-text.js +6 -6
  62. package/dist/shared/lib/sort-cycle.js +6 -0
  63. package/dist/shared/lib/summary-mode.js +59 -41
  64. package/package.json +1 -1
@@ -1,64 +1,65 @@
1
- import { jsxs as n, jsx as r, Fragment as te } from "react/jsx-runtime";
2
- import { useQueryClient as re, useQuery as j, useMutation as $ } from "@tanstack/react-query";
3
- import { ExternalLink as ae, ArrowRight as H } from "lucide-react";
4
- import { useState as q, useEffect as ne } from "react";
1
+ import { jsxs as n, jsx as r, Fragment as ae } from "react/jsx-runtime";
2
+ import { useQueryClient as ne, useQuery as $, useMutation as D } from "@tanstack/react-query";
3
+ import { ExternalLink as oe, ArrowRight as H } from "lucide-react";
4
+ import { useState as q, useEffect as se } from "react";
5
5
  import { toast as C } from "sonner";
6
- import { useNivaroClient as oe, useItemNavigation as se } from "../../context.js";
7
- import { get as O, post as B } from "../../lib/commands.js";
8
- import { formatMultiValue as de } from "../../lib/format-value.js";
9
- import { useLiveRecord as ie, batchTouches as D, LIVE_ASPECTS as F } from "../../lib/live.js";
10
- import { userErrorMessage as le } from "../../lib/safe-error.js";
11
- import { cn as V, formatRelative as ce, humanHours as me } from "../../lib/utils.js";
12
- import { transitionRequirementsFromError as ue } from "../panels/PipelinePanel.js";
13
- import { TransitionRequirementsDialog as pe } from "../panels/TransitionRequirementsDialog.js";
14
- import { Badge as be } from "../ui/badge.js";
15
- import { Sheet as xe, SheetContent as he, SheetHeader as fe, SheetTitle as ge } from "../ui/sheet.js";
16
- import { OwnerAvatars as ye } from "./OwnerAvatars.js";
17
- import { pathHeader as ve } from "./path-label.js";
18
- import { useTransitionNote as ke, needsTransitionNote as Ne } from "./transition-note.js";
19
- function we(t) {
6
+ import { useNivaroClient as de, useItemNavigation as ie } from "../../context.js";
7
+ import { get as B, post as O } from "../../lib/commands.js";
8
+ import { formatMultiValue as le } from "../../lib/format-value.js";
9
+ import { useLiveRecord as ce, batchTouches as V, LIVE_ASPECTS as U } from "../../lib/live.js";
10
+ import { userErrorMessage as me } from "../../lib/safe-error.js";
11
+ import { cn as W, formatRelative as ue, humanHours as pe } from "../../lib/utils.js";
12
+ import { transitionRequirementsFromError as be } from "../panels/PipelinePanel.js";
13
+ import { TransitionRequirementsDialog as xe } from "../panels/TransitionRequirementsDialog.js";
14
+ import { Badge as he } from "../ui/badge.js";
15
+ import { Sheet as fe, SheetContent as ge, SheetHeader as ye, SheetTitle as ve } from "../ui/sheet.js";
16
+ import { OwnerAvatars as ke } from "./OwnerAvatars.js";
17
+ import { pathHeader as Ne } from "./path-label.js";
18
+ import { useTransitionNote as we, needsTransitionNote as _e } from "./transition-note.js";
19
+ function qe(t) {
20
20
  return (t ?? []).filter((b) => b.in_row_menu !== !1);
21
21
  }
22
- function _e(t) {
23
- return me(t);
22
+ function Ce(t) {
23
+ return pe(t);
24
24
  }
25
- const qe = ve;
25
+ const Se = Ne;
26
26
  function p({ label: t, children: b }) {
27
27
  return /* @__PURE__ */ n("div", { className: "bg-white px-3 py-2.5 dark:bg-card", children: [
28
28
  /* @__PURE__ */ r("p", { className: "mb-0.5 text-[10px] font-medium uppercase tracking-wide text-slate-400 dark:text-muted-foreground", children: t }),
29
29
  /* @__PURE__ */ r("div", { className: "text-[12px] text-slate-700 dark:text-slate-200", children: b })
30
30
  ] });
31
31
  }
32
- function Ve({
32
+ function We({
33
33
  item: t,
34
34
  onOpenChange: b,
35
- onClaim: W,
36
- onRelease: z,
37
- workNextActive: G,
35
+ onClaim: z,
36
+ onRelease: G,
37
+ workNextActive: J,
38
38
  onNext: S,
39
39
  refetchItems: I,
40
40
  stateLabels: g,
41
41
  collectionLabel: T,
42
- claimsEnabled: J = !0,
42
+ claimsEnabled: X = !0,
43
43
  columnFormats: x,
44
44
  fieldLabel: y,
45
- width: U,
46
- itemLayout: X
45
+ width: Y,
46
+ itemLayout: K,
47
+ onOpenRecord: M
47
48
  }) {
48
- var K;
49
- const h = re(), f = oe(), { open: Y } = se(), [v, M] = q(""), [l, k] = q(null), [N, c] = q(null), P = ke(), o = t == null ? void 0 : t.collection, s = t == null ? void 0 : t.item_id;
50
- ne(() => c(null), [o, s]);
51
- const { data: m } = j({
49
+ var j;
50
+ const h = ne(), f = de(), { open: Z, urlFor: L } = ie(), [v, P] = q(""), [l, k] = q(null), [N, c] = q(null), A = we(), o = t == null ? void 0 : t.collection, s = t == null ? void 0 : t.item_id;
51
+ se(() => c(null), [o, s]);
52
+ const { data: m } = $({
52
53
  queryKey: ["queue-sheet-instance", o, s],
53
- queryFn: () => f.request(O(`/pipelines/instance/${o}/${s}`)).then((e) => e.data),
54
+ queryFn: () => f.request(B(`/pipelines/instance/${o}/${s}`)).then((e) => e.data),
54
55
  enabled: !!o && !!s
55
- }), { data: u } = j({
56
+ }), { data: u } = $({
56
57
  queryKey: ["queue-sheet-comments", o, s],
57
- queryFn: () => f.request(O("/comments", { collection: o, item: s })).then((e) => ({ data: (e.data ?? []).filter((a) => !a.deleted) })).catch(() => ({ data: [] })),
58
+ queryFn: () => f.request(B("/comments", { collection: o, item: s })).then((e) => ({ data: (e.data ?? []).filter((a) => !a.deleted) })).catch(() => ({ data: [] })),
58
59
  enabled: !!o && !!s
59
- }), d = $({
60
+ }), d = D({
60
61
  mutationFn: ({ transitionId: e, comment: a }) => f.request(
61
- B(`/pipelines/instance/${o}/${s}/transition`, {
62
+ O(`/pipelines/instance/${o}/${s}/transition`, {
62
63
  transition_id: e,
63
64
  ...a ? { comment: a } : {}
64
65
  })
@@ -66,41 +67,41 @@ function Ve({
66
67
  onSuccess: () => {
67
68
  k(null), c(null), h.invalidateQueries({ queryKey: ["queue-sheet-instance", o, s] }), I(), C.success("Transitioned");
68
69
  },
69
- onError: (e, { transitionId: a, comment: ee }) => {
70
+ onError: (e, { transitionId: a, comment: re }) => {
70
71
  c(null);
71
- const Q = ue(e);
72
- if (Q) {
72
+ const F = be(e);
73
+ if (F) {
73
74
  k((_) => ({
74
- payload: Q,
75
+ payload: F,
75
76
  transitionId: a,
76
- comment: ee,
77
+ comment: re,
77
78
  revision: ((_ == null ? void 0 : _.revision) ?? 0) + 1
78
79
  }));
79
80
  return;
80
81
  }
81
- C.error(le(e, "Transition failed"));
82
+ C.error(me(e, "Transition failed"));
82
83
  }
83
- }), R = $({
84
- mutationFn: (e) => f.request(B("/comments", { collection: o, item: s, text: e })),
84
+ }), E = D({
85
+ mutationFn: (e) => f.request(O("/comments", { collection: o, item: s, text: e })),
85
86
  onSuccess: () => {
86
- M(""), h.invalidateQueries({ queryKey: ["queue-sheet-comments", o, s] });
87
+ P(""), h.invalidateQueries({ queryKey: ["queue-sheet-comments", o, s] });
87
88
  },
88
89
  onError: () => C.error("Failed to post comment")
89
90
  });
90
- ie(o, s, (e) => {
91
- D(e, F.state) && (h.invalidateQueries({ queryKey: ["queue-sheet-instance", o, s] }), e.own || I()), D(e, F.comments) && h.invalidateQueries({ queryKey: ["queue-sheet-comments", o, s] });
91
+ ce(o, s, (e) => {
92
+ V(e, U.state) && (h.invalidateQueries({ queryKey: ["queue-sheet-instance", o, s] }), e.own || I()), V(e, U.comments) && h.invalidateQueries({ queryKey: ["queue-sheet-comments", o, s] });
92
93
  });
93
- const w = we(m == null ? void 0 : m.available_transitions), i = N && w.some((e) => e.id === N.id) ? N : null, A = new Map(((m == null ? void 0 : m.states) ?? []).map((e) => [e.id, e])), E = (e) => {
94
- const a = A.get(e.to_state);
94
+ const w = qe(m == null ? void 0 : m.available_transitions), i = N && w.some((e) => e.id === N.id) ? N : null, R = new Map(((m == null ? void 0 : m.states) ?? []).map((e) => [e.id, e])), Q = (e) => {
95
+ const a = R.get(e.to_state);
95
96
  return e.label || (a == null ? void 0 : a.label) || (a == null ? void 0 : a.key) || "Move";
96
- }, Z = (e) => {
97
- const a = A.get(e.to_state);
97
+ }, ee = (e) => {
98
+ const a = R.get(e.to_state);
98
99
  return (a == null ? void 0 : a.label) || (a == null ? void 0 : a.key) || e.label || "the next step";
99
- }, L = async (e) => {
100
+ }, te = async (e) => {
100
101
  if (!d.isPending) {
101
- if (Ne(e)) {
102
+ if (_e(e)) {
102
103
  c(null);
103
- const a = await P.ask(E(e));
104
+ const a = await A.ask(Q(e));
104
105
  if (!a) return;
105
106
  d.mutate({ transitionId: e.id, comment: a });
106
107
  return;
@@ -108,19 +109,19 @@ function Ve({
108
109
  c(e);
109
110
  }
110
111
  };
111
- return /* @__PURE__ */ n(xe, { open: !!t, onOpenChange: b, children: [
112
+ return /* @__PURE__ */ n(fe, { open: !!t, onOpenChange: b, children: [
112
113
  /* @__PURE__ */ r(
113
- he,
114
+ ge,
114
115
  {
115
116
  side: "right",
116
117
  className: "flex max-w-full flex-col gap-0 p-0",
117
- style: { width: U ?? 480, maxWidth: "96vw" },
118
- children: t && /* @__PURE__ */ n(te, { children: [
119
- /* @__PURE__ */ r(fe, { className: "shrink-0 border-b border-slate-200 px-5 py-4 dark:border-border", children: /* @__PURE__ */ n("div", { className: "flex items-start justify-between gap-3 pr-6", children: [
118
+ style: { width: Y ?? 480, maxWidth: "96vw" },
119
+ children: t && /* @__PURE__ */ n(ae, { children: [
120
+ /* @__PURE__ */ r(ye, { className: "shrink-0 border-b border-slate-200 px-5 py-4 dark:border-border", children: /* @__PURE__ */ n("div", { className: "flex items-start justify-between gap-3 pr-6", children: [
120
121
  /* @__PURE__ */ n("div", { className: "min-w-0", children: [
121
- /* @__PURE__ */ r(ge, { className: "truncate text-[15px] font-semibold", children: t.label }),
122
+ /* @__PURE__ */ r(ve, { className: "truncate text-[15px] font-semibold", children: t.label }),
122
123
  /* @__PURE__ */ n("div", { className: "mt-1.5 flex items-center gap-2", children: [
123
- /* @__PURE__ */ r(be, { variant: "outline", children: T ? T(t.collection) : t.collection }),
124
+ /* @__PURE__ */ r(he, { variant: "outline", children: T ? T(t.collection) : t.collection }),
124
125
  t.state && /* @__PURE__ */ r(
125
126
  "span",
126
127
  {
@@ -135,39 +136,45 @@ function Ve({
135
136
  ] })
136
137
  ] }),
137
138
  /* @__PURE__ */ n(
138
- "button",
139
+ "a",
139
140
  {
140
- type: "button",
141
- onClick: () => Y({
141
+ href: L({
142
142
  collection: t.collection,
143
143
  itemId: t.item_id,
144
- layoutSlug: X ?? null
144
+ layoutSlug: K ?? null
145
145
  }),
146
+ onClick: (e) => {
147
+ e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0 || (e.preventDefault(), M ? M(t) : Z({
148
+ collection: t.collection,
149
+ itemId: t.item_id,
150
+ layoutSlug: K ?? null
151
+ }));
152
+ },
146
153
  className: "flex shrink-0 items-center gap-1 text-[12px] font-medium text-nvr-navy hover:underline dark:text-nvr-cyan",
147
154
  children: [
148
155
  "Open ",
149
- /* @__PURE__ */ r(ae, { className: "h-3 w-3" })
156
+ /* @__PURE__ */ r(oe, { className: "h-3 w-3" })
150
157
  ]
151
158
  }
152
159
  )
153
160
  ] }) }),
154
161
  /* @__PURE__ */ n("div", { className: "flex-1 overflow-y-auto px-5 py-4", children: [
155
162
  /* @__PURE__ */ n("div", { className: "mb-4 grid grid-cols-2 gap-px overflow-hidden rounded-lg border border-slate-200 bg-slate-200 dark:border-border dark:bg-border", children: [
156
- /* @__PURE__ */ r(p, { label: "Owners", children: /* @__PURE__ */ r(ye, { owners: t.owners, max: 6 }) }),
157
- /* @__PURE__ */ r(p, { label: "Claimed by", children: ((K = t.claimed_by) == null ? void 0 : K.name) ?? "—" }),
163
+ /* @__PURE__ */ r(p, { label: "Owners", children: /* @__PURE__ */ r(ke, { owners: t.owners, max: 6 }) }),
164
+ /* @__PURE__ */ r(p, { label: "Claimed by", children: ((j = t.claimed_by) == null ? void 0 : j.name) ?? "—" }),
158
165
  /* @__PURE__ */ r(p, { label: "SLA", children: t.sla_status ? /* @__PURE__ */ r(
159
166
  "span",
160
167
  {
161
- className: V(
168
+ className: W(
162
169
  "rounded px-1.5 py-0.5 text-[11px] font-medium",
163
170
  t.sla_status === "breached" ? "bg-red-50 text-red-600 dark:bg-red-500/10 dark:text-red-400" : t.sla_status === "warning" ? "bg-amber-50 text-amber-600 dark:bg-amber-500/10 dark:text-amber-400" : "bg-emerald-50 text-emerald-600 dark:bg-emerald-500/10 dark:text-emerald-400"
164
171
  ),
165
172
  children: t.sla_status
166
173
  }
167
174
  ) : "—" }),
168
- /* @__PURE__ */ r(p, { label: "Aging", children: _e(t.aging_hours) }),
175
+ /* @__PURE__ */ r(p, { label: "Aging", children: Ce(t.aging_hours) }),
169
176
  t.at_risk && /* @__PURE__ */ r(p, { label: "Risk", children: /* @__PURE__ */ r("span", { className: "text-red-500", children: "⚑ At risk" }) }),
170
- Object.entries(t.extra ?? {}).map(([e, a]) => /* @__PURE__ */ r(p, { label: (y == null ? void 0 : y(e)) || qe(e), children: a == null || a === "" ? "—" : x != null && x[e] ? de(String(a), x[e]) : String(a) }, e))
177
+ Object.entries(t.extra ?? {}).map(([e, a]) => /* @__PURE__ */ r(p, { label: (y == null ? void 0 : y(e)) || Se(e), children: a == null || a === "" ? "—" : x != null && x[e] ? le(String(a), x[e]) : String(a) }, e))
171
178
  ] }),
172
179
  w.length > 0 && /* @__PURE__ */ n("div", { className: "mb-4", children: [
173
180
  /* @__PURE__ */ r("p", { className: "mb-1.5 text-[11px] font-medium uppercase tracking-wide text-slate-400 dark:text-muted-foreground", children: "Transitions" }),
@@ -177,13 +184,13 @@ function Ve({
177
184
  type: "button",
178
185
  disabled: d.isPending,
179
186
  "aria-pressed": (i == null ? void 0 : i.id) === e.id,
180
- onClick: () => void L(e),
181
- className: V(
187
+ onClick: () => void te(e),
188
+ className: W(
182
189
  "flex items-center gap-1 rounded-md border border-slate-200 bg-white px-2.5 py-1.5 text-[12px] font-medium text-slate-700 hover:border-nvr-cyan hover:text-nvr-navy disabled:opacity-50 dark:border-border dark:bg-card dark:text-slate-200 dark:hover:text-nvr-cyan",
183
190
  (i == null ? void 0 : i.id) === e.id && "border-nvr-cyan"
184
191
  ),
185
192
  children: [
186
- E(e),
193
+ Q(e),
187
194
  /* @__PURE__ */ r(H, { className: "h-3 w-3 text-slate-400" })
188
195
  ]
189
196
  },
@@ -202,7 +209,7 @@ function Ve({
202
209
  /* @__PURE__ */ r("span", { className: "font-semibold", children: t.label }),
203
210
  " to",
204
211
  " ",
205
- /* @__PURE__ */ r("span", { className: "font-semibold", children: Z(i) }),
212
+ /* @__PURE__ */ r("span", { className: "font-semibold", children: ee(i) }),
206
213
  "?"
207
214
  ] }),
208
215
  /* @__PURE__ */ n("div", { className: "mt-2 flex gap-2", children: [
@@ -231,11 +238,11 @@ function Ve({
231
238
  }
232
239
  )
233
240
  ] }),
234
- (J || t.claimed_by) && /* @__PURE__ */ r("div", { className: "mb-4", children: /* @__PURE__ */ r(
241
+ (X || t.claimed_by) && /* @__PURE__ */ r("div", { className: "mb-4", children: /* @__PURE__ */ r(
235
242
  "button",
236
243
  {
237
244
  type: "button",
238
- onClick: () => t.claimed_by ? z(t) : W(t),
245
+ onClick: () => t.claimed_by ? G(t) : z(t),
239
246
  className: "rounded-md bg-nvr-cyan px-3 py-1.5 text-[12px] font-medium text-white hover:bg-nvr-cyan/90",
240
247
  children: t.claimed_by ? "Release claim" : "Claim this item"
241
248
  }
@@ -246,7 +253,7 @@ function Ve({
246
253
  ((u == null ? void 0 : u.data) ?? []).map((e) => /* @__PURE__ */ n("div", { className: "rounded-md bg-slate-50 px-3 py-2 dark:bg-muted/40", children: [
247
254
  /* @__PURE__ */ n("p", { className: "text-[11px] font-medium text-slate-500 dark:text-muted-foreground", children: [
248
255
  [e.first_name, e.last_name].filter(Boolean).join(" ") || e.email || "—",
249
- /* @__PURE__ */ r("span", { className: "ml-1.5 font-normal text-slate-400", children: ce(e.created_at) })
256
+ /* @__PURE__ */ r("span", { className: "ml-1.5 font-normal text-slate-400", children: ue(e.created_at) })
250
257
  ] }),
251
258
  /* @__PURE__ */ r("p", { className: "mt-0.5 whitespace-pre-wrap text-[12px] text-slate-700 dark:text-slate-200", children: e.text })
252
259
  ] }, e.id)),
@@ -257,7 +264,7 @@ function Ve({
257
264
  "textarea",
258
265
  {
259
266
  value: v,
260
- onChange: (e) => M(e.target.value),
267
+ onChange: (e) => P(e.target.value),
261
268
  placeholder: "Add a comment…",
262
269
  rows: 2,
263
270
  className: "w-full rounded-md border border-slate-200 bg-white px-2.5 py-1.5 text-[12px] focus:border-nvr-cyan focus:outline-none dark:border-border dark:bg-card"
@@ -267,8 +274,8 @@ function Ve({
267
274
  "button",
268
275
  {
269
276
  type: "button",
270
- disabled: !v.trim() || R.isPending,
271
- onClick: () => R.mutate(v.trim()),
277
+ disabled: !v.trim() || E.isPending,
278
+ onClick: () => E.mutate(v.trim()),
272
279
  className: "mt-1 rounded-md border border-slate-200 px-2.5 py-1 text-[12px] font-medium text-slate-600 hover:text-slate-800 disabled:opacity-50 dark:border-border dark:text-slate-300",
273
280
  children: "Post"
274
281
  }
@@ -276,7 +283,7 @@ function Ve({
276
283
  ] })
277
284
  ] })
278
285
  ] }),
279
- G && S && /* @__PURE__ */ r("div", { className: "shrink-0 border-t border-slate-200 px-5 py-3 dark:border-border", children: /* @__PURE__ */ n(
286
+ J && S && /* @__PURE__ */ r("div", { className: "shrink-0 border-t border-slate-200 px-5 py-3 dark:border-border", children: /* @__PURE__ */ n(
280
287
  "button",
281
288
  {
282
289
  type: "button",
@@ -292,7 +299,7 @@ function Ve({
292
299
  }
293
300
  ),
294
301
  l && /* @__PURE__ */ r(
295
- pe,
302
+ xe,
296
303
  {
297
304
  payload: l.payload,
298
305
  transitionId: l.transitionId,
@@ -306,10 +313,10 @@ function Ve({
306
313
  },
307
314
  l.revision
308
315
  ),
309
- P.dialog
316
+ A.dialog
310
317
  ] });
311
318
  }
312
319
  export {
313
- Ve as QueueItemSheet,
314
- we as peekTransitions
320
+ We as QueueItemSheet,
321
+ qe as peekTransitions
315
322
  };