@nivaro/react 0.3.66 → 0.3.68

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 (41) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +15 -1
  4. package/dist/index.js +836 -835
  5. package/dist/shared/components/ActivityEntry.js +28 -28
  6. package/dist/shared/components/CollectionBrowserView.js +584 -585
  7. package/dist/shared/components/ConformanceView.js +34 -34
  8. package/dist/shared/components/ItemEditForm.js +1758 -1758
  9. package/dist/shared/components/RecordCompare.js +149 -129
  10. package/dist/shared/components/ReportView.js +196 -196
  11. package/dist/shared/components/SlaRulesView.js +36 -36
  12. package/dist/shared/components/bulk/BulkCompareButton.js +16 -16
  13. package/dist/shared/components/chat/ChatPanel.js +484 -487
  14. package/dist/shared/components/chat/ChatViews.js +66 -66
  15. package/dist/shared/components/chat/RoomParts.js +159 -157
  16. package/dist/shared/components/help-videos/editor/StatsTab.js +48 -47
  17. package/dist/shared/components/help-videos/editor/VersionsTab.js +17 -16
  18. package/dist/shared/components/imports/CollectionImportPanel.js +72 -72
  19. package/dist/shared/components/integrations/IntegrationObligationsView.js +199 -187
  20. package/dist/shared/components/integrations/console/EventsView.js +22 -24
  21. package/dist/shared/components/integrations/console/SubmissionRow.js +6 -13
  22. package/dist/shared/components/integrations/console/drill/SubmissionDrill.js +29 -28
  23. package/dist/shared/components/integrations/console/tone.js +22 -21
  24. package/dist/shared/components/item-edit/FieldRow.js +188 -188
  25. package/dist/shared/components/item-edit/FilePickerField.js +281 -297
  26. package/dist/shared/components/item-edit/GroupSection.js +209 -209
  27. package/dist/shared/components/item-edit/RecordInsights.js +101 -101
  28. package/dist/shared/components/item-edit/SummaryPanel.js +31 -31
  29. package/dist/shared/components/layout-editor/assist/ExplainDiff.js +12 -12
  30. package/dist/shared/components/panels/AddendumPanel.js +409 -411
  31. package/dist/shared/components/panels/BranchLanes.js +7 -7
  32. package/dist/shared/components/panels/CommentPanel.js +204 -197
  33. package/dist/shared/components/panels/PipelinePanel.js +264 -264
  34. package/dist/shared/components/panels/RecordIntegrityBanner.js +78 -78
  35. package/dist/shared/components/panels/RevisionsPanel.js +229 -229
  36. package/dist/shared/components/panels/TaskPanel.js +75 -75
  37. package/dist/shared/components/queue/QueueWorklist.js +591 -589
  38. package/dist/shared/lib/compare-value.js +73 -0
  39. package/dist/shared/lib/format-value.js +18 -17
  40. package/dist/shared/lib/utils.js +87 -80
  41. package/package.json +1 -1
@@ -1,23 +1,23 @@
1
- import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
- import { useQuery as K, useQueryClient as Z, useMutation as I } from "@tanstack/react-query";
1
+ import { jsxs as d, jsx as n } from "react/jsx-runtime";
2
+ import { useQuery as S, useQueryClient as Z, useMutation as I } from "@tanstack/react-query";
3
3
  import { useState as f, useMemo as J, useEffect as ee } from "react";
4
4
  import { useNivaroClient as W } from "../../context.js";
5
5
  import { get as G, post as q } from "../../lib/commands.js";
6
6
  import { useAfterIdle as te } from "../../lib/defer.js";
7
- import { formatRelative as ne, cn as S, titleCase as re } from "../../lib/utils.js";
8
- function ae(n, t, a = !0) {
9
- const u = W(), { data: i } = K({
10
- queryKey: ["record-integrity", n, t],
7
+ import { formatRelative as re, formatDateTime as ne, cn as K, titleCase as ae } from "../../lib/utils.js";
8
+ function ie(r, t, a = !0) {
9
+ const u = W(), { data: i } = S({
10
+ queryKey: ["record-integrity", r, t],
11
11
  enabled: a,
12
12
  queryFn: () => u.request(
13
- G(`/config-conformance/record/${n}/${encodeURIComponent(t)}`)
13
+ G(`/config-conformance/record/${r}/${encodeURIComponent(t)}`)
14
14
  ).then((p) => p.data).catch(() => ({ enabled: !1, findings: [] })),
15
15
  staleTime: 5 * 6e4
16
- }), g = te(2e3), { data: b, isFetching: m } = K({
17
- queryKey: ["record-integrity", n, t, "live"],
16
+ }), g = te(2e3), { data: b, isFetching: m } = S({
17
+ queryKey: ["record-integrity", r, t, "live"],
18
18
  enabled: a && g,
19
19
  queryFn: () => u.request(
20
- q(`/config-conformance/record/${n}/${encodeURIComponent(t)}/check`, {})
20
+ q(`/config-conformance/record/${r}/${encodeURIComponent(t)}/check`, {})
21
21
  ).then((p) => p.data).catch(() => null),
22
22
  staleTime: 6e4,
23
23
  // Never spin the banner on a background refetch storm — one live check per
@@ -26,29 +26,29 @@ function ae(n, t, a = !0) {
26
26
  });
27
27
  return { data: b ?? i, checking: m };
28
28
  }
29
- const ie = "nvr:own-record-writes";
30
- function H(n) {
29
+ const de = "nvr:own-record-writes";
30
+ function H(r) {
31
31
  var a;
32
32
  const t = [];
33
- for (const u of n.writes ?? []) {
33
+ for (const u of r.writes ?? []) {
34
34
  const i = u;
35
35
  i && typeof i.collection == "string" && i.item_id != null && i.item_id !== "" && t.push({ collection: i.collection, id: String(i.item_id) });
36
36
  }
37
- return (a = n.pick) != null && a.collection && n.pick.item_id && t.push({ collection: n.pick.collection, id: String(n.pick.item_id) }), t;
37
+ return (a = r.pick) != null && a.collection && r.pick.item_id && t.push({ collection: r.pick.collection, id: String(r.pick.item_id) }), t;
38
38
  }
39
- function Y(n) {
40
- n.length === 0 || typeof window > "u" || window.dispatchEvent(
41
- new CustomEvent(ie, { detail: { writes: n } })
39
+ function Y(r) {
40
+ r.length === 0 || typeof window > "u" || window.dispatchEvent(
41
+ new CustomEvent(de, { detail: { writes: r } })
42
42
  );
43
43
  }
44
- function de(n, t) {
44
+ function oe(r, t) {
45
45
  var u;
46
- const a = t == null ? void 0 : t.find((i) => i.field === n);
47
- return ((u = a == null ? void 0 : a.label) == null ? void 0 : u.trim()) || re(n);
46
+ const a = t == null ? void 0 : t.find((i) => i.field === r);
47
+ return ((u = a == null ? void 0 : a.label) == null ? void 0 : u.trim()) || ae(r);
48
48
  }
49
- function ge(n) {
49
+ function pe(r) {
50
50
  const t = /* @__PURE__ */ new Map();
51
- for (const a of n ?? []) {
51
+ for (const a of r ?? []) {
52
52
  const u = t.get(a.field) ?? [];
53
53
  u.push(a), t.set(a.field, u);
54
54
  }
@@ -59,19 +59,19 @@ const z = {
59
59
  medium: { dot: "bg-amber-500", text: "Likely" },
60
60
  low: { dot: "bg-slate-400", text: "Manual" }
61
61
  };
62
- function pe({
63
- collection: n,
62
+ function he({
63
+ collection: r,
64
64
  itemId: t,
65
65
  onJumpToField: a
66
66
  }) {
67
67
  var R;
68
- const u = W(), i = Z(), [g, b] = f(!1), [m, p] = f(null), { data: s, checking: E } = ae(n, t), { data: y } = K({
69
- queryKey: ["field-config", n, null],
70
- queryFn: () => u.request(G(`/field-config/${n}`)).then((l) => l.data ?? []),
68
+ const u = W(), i = Z(), [g, b] = f(!1), [m, p] = f(null), { data: s, checking: E } = ie(r, t), { data: y } = S({
69
+ queryKey: ["field-config", r, null],
70
+ queryFn: () => u.request(G(`/field-config/${r}`)).then((l) => l.data ?? []),
71
71
  enabled: !!((R = s == null ? void 0 : s.findings) != null && R.length),
72
72
  staleTime: 6e4
73
73
  }), L = () => {
74
- i.invalidateQueries({ queryKey: ["record-integrity", n, t] }), i.invalidateQueries({ queryKey: ["item", n, t] }), i.invalidateQueries({ queryKey: [n, t] }), i.invalidateQueries({ queryKey: ["o2m-rows"] }), i.invalidateQueries({ queryKey: ["revisions"] });
74
+ i.invalidateQueries({ queryKey: ["record-integrity", r, t] }), i.invalidateQueries({ queryKey: ["item", r, t] }), i.invalidateQueries({ queryKey: [r, t] }), i.invalidateQueries({ queryKey: ["o2m-rows"] }), i.invalidateQueries({ queryKey: ["revisions"] });
75
75
  };
76
76
  if (!(s != null && s.enabled) || s.findings.length === 0) return null;
77
77
  const v = s.findings.length;
@@ -88,14 +88,14 @@ function pe({
88
88
  v === 1 ? "" : "s",
89
89
  " on this record"
90
90
  ] }),
91
- s.live ? /* @__PURE__ */ r(
91
+ s.live ? /* @__PURE__ */ n(
92
92
  "span",
93
93
  {
94
94
  className: "text-[11px] text-amber-600/80 dark:text-amber-400/70",
95
95
  "data-integrity-checked": "live",
96
96
  children: "checked just now"
97
97
  }
98
- ) : E ? /* @__PURE__ */ r(
98
+ ) : E ? /* @__PURE__ */ n(
99
99
  "span",
100
100
  {
101
101
  className: "text-[11px] text-amber-600/80 dark:text-amber-400/70",
@@ -107,14 +107,14 @@ function pe({
107
107
  {
108
108
  className: "text-[11px] text-amber-600/80 dark:text-amber-400/70",
109
109
  "data-integrity-checked": "stored",
110
- title: new Date(s.checked_at).toLocaleString(),
110
+ title: ne(s.checked_at),
111
111
  children: [
112
112
  "checked ",
113
- ne(s.checked_at)
113
+ re(s.checked_at)
114
114
  ]
115
115
  }
116
116
  ) : null,
117
- /* @__PURE__ */ r(
117
+ /* @__PURE__ */ n(
118
118
  "button",
119
119
  {
120
120
  type: "button",
@@ -124,25 +124,25 @@ function pe({
124
124
  }
125
125
  )
126
126
  ] }),
127
- g && /* @__PURE__ */ r("div", { className: "mt-1.5 space-y-1", children: s.findings.map((l, k) => /* @__PURE__ */ d("div", { children: [
127
+ g && /* @__PURE__ */ n("div", { className: "mt-1.5 space-y-1", children: s.findings.map((l, k) => /* @__PURE__ */ d("div", { children: [
128
128
  /* @__PURE__ */ d("div", { className: "flex items-baseline gap-2 text-[12px]", children: [
129
- /* @__PURE__ */ r(
129
+ /* @__PURE__ */ n(
130
130
  "button",
131
131
  {
132
132
  type: "button",
133
133
  onClick: () => a == null ? void 0 : a(l.field),
134
134
  "data-integrity-field": l.field,
135
135
  className: "shrink-0 text-[11.5px] font-medium text-amber-700 underline decoration-dotted underline-offset-2 dark:text-amber-300",
136
- children: de(l.field, y)
136
+ children: oe(l.field, y)
137
137
  }
138
138
  ),
139
- /* @__PURE__ */ r("span", { className: "min-w-0 flex-1 text-amber-800 dark:text-amber-200/90", children: l.message }),
140
- l.fixable && /* @__PURE__ */ r(
139
+ /* @__PURE__ */ n("span", { className: "min-w-0 flex-1 text-amber-800 dark:text-amber-200/90", children: l.message }),
140
+ l.fixable && /* @__PURE__ */ n(
141
141
  "button",
142
142
  {
143
143
  type: "button",
144
144
  onClick: () => p((h) => h === k ? null : k),
145
- className: S(
145
+ className: K(
146
146
  "shrink-0 rounded px-2 py-0.5 text-[10.5px] font-semibold transition-colors",
147
147
  m === k ? "bg-amber-200 text-amber-900 dark:bg-amber-400/30 dark:text-amber-100" : "bg-amber-600 text-white hover:bg-amber-700"
148
148
  ),
@@ -150,10 +150,10 @@ function pe({
150
150
  }
151
151
  )
152
152
  ] }),
153
- m === k && /* @__PURE__ */ r(
154
- oe,
153
+ m === k && /* @__PURE__ */ n(
154
+ se,
155
155
  {
156
- collection: n,
156
+ collection: r,
157
157
  itemId: t,
158
158
  finding: l,
159
159
  onApplied: L,
@@ -165,18 +165,18 @@ function pe({
165
165
  }
166
166
  );
167
167
  }
168
- function oe({
169
- collection: n,
168
+ function se({
169
+ collection: r,
170
170
  itemId: t,
171
171
  finding: a,
172
172
  onApplied: u,
173
173
  onClose: i
174
174
  }) {
175
- const g = W(), b = `/config-conformance/record/${n}/${encodeURIComponent(t)}`, m = { field: a.field, rule: a.rule, message: a.message }, { data: p, isLoading: s, error: E } = K({
176
- queryKey: ["integrity-proposals", n, t, a.field, a.rule],
175
+ const g = W(), b = `/config-conformance/record/${r}/${encodeURIComponent(t)}`, m = { field: a.field, rule: a.rule, message: a.message }, { data: p, isLoading: s, error: E } = S({
176
+ queryKey: ["integrity-proposals", r, t, a.field, a.rule],
177
177
  queryFn: () => g.request(q(`${b}/proposals`, m)).then((e) => e.data.proposals),
178
178
  staleTime: 6e4
179
- }), [y, L] = f([]), [v, R] = f({}), [l, k] = f(""), [h, M] = f(null), [j, D] = f(0), [B, N] = f(null), [T, X] = f(null), [_, O] = f(null), V = J(() => [...p ?? [], ...y], [p, y]);
179
+ }), [y, L] = f([]), [v, R] = f({}), [l, k] = f(""), [h, M] = f(null), [j, D] = f(0), [T, N] = f(null), [B, X] = f(null), [_, O] = f(null), V = J(() => [...p ?? [], ...y], [p, y]);
180
180
  ee(() => {
181
181
  if (!h || h.undo.length === 0) return;
182
182
  D(30);
@@ -204,7 +204,7 @@ function oe({
204
204
  }), P = I({
205
205
  mutationFn: (e) => g.request(q(`${b}/fix`, { ...m, undo: e })),
206
206
  onSuccess: () => {
207
- T && Y(H(T)), M({ text: "Undone.", undo: [] }), u();
207
+ B && Y(H(B)), M({ text: "Undone.", undo: [] }), u();
208
208
  },
209
209
  onError: (e) => N(F(e))
210
210
  }), Q = I({
@@ -220,11 +220,11 @@ function oe({
220
220
  "data-integrity-proposals": !0,
221
221
  className: "mt-1.5 rounded-md border border-amber-200/80 bg-white/70 px-3 py-2 dark:border-amber-500/20 dark:bg-black/20",
222
222
  children: [
223
- s && /* @__PURE__ */ r("p", { className: "text-[11.5px] text-slate-500 dark:text-muted-foreground", children: "Working out what would fix this…" }),
224
- E && /* @__PURE__ */ r("p", { className: "text-[11.5px] text-red-600 dark:text-red-400", children: F(E) }),
223
+ s && /* @__PURE__ */ n("p", { className: "text-[11.5px] text-slate-500 dark:text-muted-foreground", children: "Working out what would fix this…" }),
224
+ E && /* @__PURE__ */ n("p", { className: "text-[11.5px] text-red-600 dark:text-red-400", children: F(E) }),
225
225
  h ? /* @__PURE__ */ d("div", { className: "flex flex-wrap items-center gap-2 text-[11.5px]", children: [
226
- /* @__PURE__ */ r("span", { className: "font-medium text-emerald-700 dark:text-emerald-400", children: h.text }),
227
- h.undo.length > 0 && j > 0 && /* @__PURE__ */ r(
226
+ /* @__PURE__ */ n("span", { className: "font-medium text-emerald-700 dark:text-emerald-400", children: h.text }),
227
+ h.undo.length > 0 && j > 0 && /* @__PURE__ */ n(
228
228
  "button",
229
229
  {
230
230
  type: "button",
@@ -234,7 +234,7 @@ function oe({
234
234
  children: P.isPending ? "Undoing…" : `Undo (${j}s)`
235
235
  }
236
236
  ),
237
- /* @__PURE__ */ r(
237
+ /* @__PURE__ */ n(
238
238
  "button",
239
239
  {
240
240
  type: "button",
@@ -244,21 +244,21 @@ function oe({
244
244
  }
245
245
  )
246
246
  ] }) : !s && /* @__PURE__ */ d("div", { className: "space-y-1.5", children: [
247
- V.length === 0 && /* @__PURE__ */ r("p", { className: "text-[11.5px] text-slate-500 dark:text-muted-foreground", children: "Nothing on this record can derive a value — fix it by hand on the form." }),
247
+ V.length === 0 && /* @__PURE__ */ n("p", { className: "text-[11.5px] text-slate-500 dark:text-muted-foreground", children: "Nothing on this record can derive a value — fix it by hand on the form." }),
248
248
  V.map((e) => {
249
249
  var C, $;
250
250
  const c = z[e.confidence] ?? z.low, x = v[e.id], w = (e.choices ?? []).filter(
251
251
  (o) => !l || o.label.toLowerCase().includes(l.toLowerCase())
252
252
  );
253
- return /* @__PURE__ */ r(
253
+ return /* @__PURE__ */ n(
254
254
  "div",
255
255
  {
256
256
  className: "rounded border border-slate-200/80 bg-white px-2.5 py-1.5 dark:border-border dark:bg-card",
257
257
  children: /* @__PURE__ */ d("div", { className: "flex items-start gap-2", children: [
258
- /* @__PURE__ */ r(
258
+ /* @__PURE__ */ n(
259
259
  "span",
260
260
  {
261
- className: S("mt-1.5 h-2 w-2 shrink-0 rounded-full", c.dot),
261
+ className: K("mt-1.5 h-2 w-2 shrink-0 rounded-full", c.dot),
262
262
  title: c.text,
263
263
  "data-tip": c.text
264
264
  }
@@ -266,9 +266,9 @@ function oe({
266
266
  /* @__PURE__ */ d("div", { className: "min-w-0 flex-1", children: [
267
267
  /* @__PURE__ */ d("p", { className: "text-[12px] font-medium text-slate-800 dark:text-foreground", children: [
268
268
  e.label,
269
- /* @__PURE__ */ r("span", { className: "ml-1.5 text-[10px] font-normal uppercase tracking-wide text-slate-400", children: e.kind === "ai" ? "AI" : c.text })
269
+ /* @__PURE__ */ n("span", { className: "ml-1.5 text-[10px] font-normal uppercase tracking-wide text-slate-400", children: e.kind === "ai" ? "AI" : c.text })
270
270
  ] }),
271
- /* @__PURE__ */ r("p", { className: "text-[11px] leading-snug text-slate-500 dark:text-muted-foreground", children: e.basis }),
271
+ /* @__PURE__ */ n("p", { className: "text-[11px] leading-snug text-slate-500 dark:text-muted-foreground", children: e.basis }),
272
272
  e.confirm && _ === e.id && /* @__PURE__ */ d(
273
273
  "p",
274
274
  {
@@ -278,7 +278,7 @@ function oe({
278
278
  children: [
279
279
  e.confirm,
280
280
  " ",
281
- /* @__PURE__ */ r(
281
+ /* @__PURE__ */ n(
282
282
  "button",
283
283
  {
284
284
  type: "button",
@@ -298,10 +298,10 @@ function oe({
298
298
  children: [
299
299
  o.label,
300
300
  ": ",
301
- /* @__PURE__ */ r("span", { className: "line-through opacity-60", children: o.from }),
301
+ /* @__PURE__ */ n("span", { className: "line-through opacity-60", children: o.from }),
302
302
  " ",
303
303
  "→ ",
304
- /* @__PURE__ */ r("span", { className: "font-medium", children: o.to })
304
+ /* @__PURE__ */ n("span", { className: "font-medium", children: o.to })
305
305
  ]
306
306
  },
307
307
  `${o.item_id}|${o.field}|${U}`
@@ -313,7 +313,7 @@ function oe({
313
313
  ] })
314
314
  ] }),
315
315
  e.kind === "pick" && /* @__PURE__ */ d("div", { className: "mt-1.5", children: [
316
- (((C = e.choices) == null ? void 0 : C.length) ?? 0) > 8 && /* @__PURE__ */ r(
316
+ (((C = e.choices) == null ? void 0 : C.length) ?? 0) > 8 && /* @__PURE__ */ n(
317
317
  "input",
318
318
  {
319
319
  value: l,
@@ -323,12 +323,12 @@ function oe({
323
323
  }
324
324
  ),
325
325
  /* @__PURE__ */ d("div", { className: "flex max-h-36 flex-wrap gap-1 overflow-y-auto", children: [
326
- w.map((o) => /* @__PURE__ */ r(
326
+ w.map((o) => /* @__PURE__ */ n(
327
327
  "button",
328
328
  {
329
329
  type: "button",
330
330
  onClick: () => R((U) => ({ ...U, [e.id]: o.id })),
331
- className: S(
331
+ className: K(
332
332
  "rounded border px-1.5 py-0.5 text-[11px] transition-colors",
333
333
  x === o.id ? "border-nvr-cyan bg-nvr-cyan/10 text-slate-900 dark:text-foreground" : "border-slate-200 text-slate-700 hover:bg-muted dark:border-border dark:text-foreground"
334
334
  ),
@@ -336,11 +336,11 @@ function oe({
336
336
  },
337
337
  o.id
338
338
  )),
339
- w.length === 0 && /* @__PURE__ */ r("span", { className: "text-[11px] text-slate-400", children: "No options match." })
339
+ w.length === 0 && /* @__PURE__ */ n("span", { className: "text-[11px] text-slate-400", children: "No options match." })
340
340
  ] })
341
341
  ] })
342
342
  ] }),
343
- /* @__PURE__ */ r(
343
+ /* @__PURE__ */ n(
344
344
  "button",
345
345
  {
346
346
  type: "button",
@@ -353,7 +353,7 @@ function oe({
353
353
  }
354
354
  O(null), A.mutate(e);
355
355
  },
356
- className: S(
356
+ className: K(
357
357
  "shrink-0 rounded px-2 py-0.5 text-[10.5px] font-semibold text-white transition-colors disabled:opacity-50",
358
358
  e.confirm && _ === e.id ? "bg-red-600 hover:bg-red-700" : e.kind === "notify" ? "bg-slate-600 hover:bg-slate-700" : "bg-nvr-cyan hover:bg-nvr-cyan-dark"
359
359
  ),
@@ -366,7 +366,7 @@ function oe({
366
366
  );
367
367
  }),
368
368
  /* @__PURE__ */ d("div", { className: "flex items-center gap-2 pt-0.5", children: [
369
- !y.some((e) => e.kind === "ai") && /* @__PURE__ */ r(
369
+ !y.some((e) => e.kind === "ai") && /* @__PURE__ */ n(
370
370
  "button",
371
371
  {
372
372
  type: "button",
@@ -376,7 +376,7 @@ function oe({
376
376
  children: Q.isPending ? "Asking AI…" : "Ask AI for a suggestion"
377
377
  }
378
378
  ),
379
- /* @__PURE__ */ r(
379
+ /* @__PURE__ */ n(
380
380
  "button",
381
381
  {
382
382
  type: "button",
@@ -386,22 +386,22 @@ function oe({
386
386
  }
387
387
  )
388
388
  ] }),
389
- B && /* @__PURE__ */ r("p", { className: "text-[11px] text-red-600 dark:text-red-400", children: B })
389
+ T && /* @__PURE__ */ n("p", { className: "text-[11px] text-red-600 dark:text-red-400", children: T })
390
390
  ] })
391
391
  ]
392
392
  }
393
393
  );
394
394
  }
395
- function F(n) {
395
+ function F(r) {
396
396
  var a;
397
- const t = n;
397
+ const t = r;
398
398
  return String(((a = t == null ? void 0 : t.response) == null ? void 0 : a.error) ?? (t == null ? void 0 : t.message) ?? "Request failed");
399
399
  }
400
400
  export {
401
- ie as OWN_RECORD_WRITES_EVENT,
402
- pe as RecordIntegrityBanner,
403
- de as findingFieldLabel,
404
- ge as integrityByField,
401
+ de as OWN_RECORD_WRITES_EVENT,
402
+ he as RecordIntegrityBanner,
403
+ oe as findingFieldLabel,
404
+ pe as integrityByField,
405
405
  H as ownWritesOf,
406
- ae as useRecordIntegrity
406
+ ie as useRecordIntegrity
407
407
  };