@nivaro/react 0.3.117 → 0.3.118

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 (137) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +136 -14
  4. package/dist/index.js +488 -485
  5. package/dist/shared/components/ActivityEntry.js +130 -125
  6. package/dist/shared/components/AgentPresenceChip.js +36 -26
  7. package/dist/shared/components/CellCopyLayer.js +50 -45
  8. package/dist/shared/components/CollectionBrowserView.js +3757 -3695
  9. package/dist/shared/components/FilePreviewLightbox.js +96 -58
  10. package/dist/shared/components/InStep.js +18 -17
  11. package/dist/shared/components/ItemEditForm.js +4220 -4175
  12. package/dist/shared/components/JobsTray.js +8 -8
  13. package/dist/shared/components/LiveNewMatchesPill.js +21 -14
  14. package/dist/shared/components/LiveOffNote.js +3 -2
  15. package/dist/shared/components/LiveRowMark.js +53 -23
  16. package/dist/shared/components/LiveTraceView.js +162 -123
  17. package/dist/shared/components/MyWorkView.js +320 -299
  18. package/dist/shared/components/NotificationBell.js +14 -14
  19. package/dist/shared/components/OverflowRail.js +1 -1
  20. package/dist/shared/components/PageRenderer.js +120 -116
  21. package/dist/shared/components/ProfileView.js +203 -202
  22. package/dist/shared/components/RealtimeStatusBanner.js +31 -29
  23. package/dist/shared/components/RecordDrilldownSheet.js +7 -7
  24. package/dist/shared/components/RecordHoverCard.js +102 -84
  25. package/dist/shared/components/RecordReadView.js +146 -146
  26. package/dist/shared/components/ScreenRefreshButton.js +34 -32
  27. package/dist/shared/components/TipLayer.js +65 -58
  28. package/dist/shared/components/WidgetImageMenu.js +83 -43
  29. package/dist/shared/components/activity/RecordActivityStream.js +175 -173
  30. package/dist/shared/components/bulk/BulkSelectionNotices.js +142 -119
  31. package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +158 -143
  32. package/dist/shared/components/change-proposals/ProposeChangeButton.js +17 -11
  33. package/dist/shared/components/change-proposals/ProposeChangeDialog.js +201 -173
  34. package/dist/shared/components/chat/ChatAnalyticsView.js +27 -27
  35. package/dist/shared/components/chat/HuddleAnalyticsTab.js +17 -17
  36. package/dist/shared/components/collections-directory/CollectionsToolbar.js +39 -41
  37. package/dist/shared/components/collections-directory/page-model.js +72 -67
  38. package/dist/shared/components/integrations/RecordIntegrationPreview.js +48 -56
  39. package/dist/shared/components/integrations/SendStatus.js +65 -59
  40. package/dist/shared/components/integrations/console/ReadyToSendView.js +275 -209
  41. package/dist/shared/components/integrations/console/SignalCard.js +237 -230
  42. package/dist/shared/components/item-edit/CatalogPickerField.js +227 -205
  43. package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +131 -92
  44. package/dist/shared/components/item-edit/CloneDialog.js +191 -161
  45. package/dist/shared/components/item-edit/DerivedCauseNote.js +44 -30
  46. package/dist/shared/components/item-edit/DraftRecoveryBanner.js +153 -134
  47. package/dist/shared/components/item-edit/FieldComments.js +54 -53
  48. package/dist/shared/components/item-edit/FieldPointer.js +82 -67
  49. package/dist/shared/components/item-edit/FieldRow.js +106 -100
  50. package/dist/shared/components/item-edit/FieldSourceBadge.js +58 -56
  51. package/dist/shared/components/item-edit/FilePickerField.js +452 -387
  52. package/dist/shared/components/item-edit/HeaderSummaryChip.js +78 -56
  53. package/dist/shared/components/item-edit/HeaderTools.js +94 -85
  54. package/dist/shared/components/item-edit/InlineTableField.js +1242 -1218
  55. package/dist/shared/components/item-edit/ListNeighborNav.js +47 -50
  56. package/dist/shared/components/item-edit/LiveTraceSheet.js +15 -10
  57. package/dist/shared/components/item-edit/MembershipSetField.js +285 -254
  58. package/dist/shared/components/item-edit/OutboxReviewTray.js +155 -144
  59. package/dist/shared/components/item-edit/QueueReturnChip.js +15 -36
  60. package/dist/shared/components/item-edit/RecalcValue.js +57 -32
  61. package/dist/shared/components/item-edit/RecordHelpChip.js +21 -22
  62. package/dist/shared/components/item-edit/RecordLiveSync.js +283 -231
  63. package/dist/shared/components/item-edit/RelationCombobox.js +439 -393
  64. package/dist/shared/components/item-edit/RemoteChangeUi.js +292 -224
  65. package/dist/shared/components/item-edit/RemoteUploads.js +26 -20
  66. package/dist/shared/components/item-edit/RemovedLineNote.js +77 -67
  67. package/dist/shared/components/item-edit/RichTextEditorImpl.js +184 -179
  68. package/dist/shared/components/item-edit/ScheduledChangeChip.js +168 -134
  69. package/dist/shared/components/item-edit/SectionPresence.js +18 -10
  70. package/dist/shared/components/item-edit/SplitLinesButton.js +163 -139
  71. package/dist/shared/components/item-edit/UserChip.js +1 -1
  72. package/dist/shared/components/item-edit/file-live.js +69 -54
  73. package/dist/shared/components/item-edit/layout-switch.js +98 -89
  74. package/dist/shared/components/item-edit/partner-needs.js +12 -12
  75. package/dist/shared/components/item-edit/removed-line.js +31 -25
  76. package/dist/shared/components/layout-editor/pickers/field-picker.js +112 -104
  77. package/dist/shared/components/list/ListViewers.js +46 -35
  78. package/dist/shared/components/notifications/NotificationCenterView.js +479 -437
  79. package/dist/shared/components/panels/AccessDeniedPanel.js +176 -101
  80. package/dist/shared/components/panels/AlertBanners.js +82 -72
  81. package/dist/shared/components/panels/BranchLanes.js +22 -22
  82. package/dist/shared/components/panels/CommentImages.js +123 -102
  83. package/dist/shared/components/panels/CommentPanel.js +186 -185
  84. package/dist/shared/components/panels/ExternalRequestsChip.js +111 -119
  85. package/dist/shared/components/panels/OwnerOpenedLine.js +31 -24
  86. package/dist/shared/components/panels/PipelinePanel.js +2037 -1885
  87. package/dist/shared/components/panels/ResubmissionDiff.js +163 -142
  88. package/dist/shared/components/pipeline/OwnerMatrixSheet.js +400 -288
  89. package/dist/shared/components/pipeline/PipelineEditorView.js +7 -2
  90. package/dist/shared/components/profile/AgentNameField.js +107 -81
  91. package/dist/shared/components/profile/AgentsPanel.js +184 -184
  92. package/dist/shared/components/profile/PersonAccess.js +599 -495
  93. package/dist/shared/components/profile/SignInTroubleshooter.js +160 -127
  94. package/dist/shared/components/profile/SignedInDevices.js +17 -17
  95. package/dist/shared/components/profile/primitives.js +1 -1
  96. package/dist/shared/components/queue/OwnerAvatars.js +91 -54
  97. package/dist/shared/components/queue/QueueTeamStrip.js +56 -46
  98. package/dist/shared/components/queue/QueueWorklist.js +1002 -983
  99. package/dist/shared/components/support/AssignRules.js +1733 -0
  100. package/dist/shared/components/support/PersonPick.js +88 -0
  101. package/dist/shared/components/support/RequestList.js +790 -0
  102. package/dist/shared/components/support/ScreenShare.js +158 -152
  103. package/dist/shared/components/support/SupportRequestDialog.js +50 -48
  104. package/dist/shared/components/support/SupportView.js +140 -246
  105. package/dist/shared/components/support/TicketDetailSheet.js +82 -75
  106. package/dist/shared/components/support/TicketSlowScreens.js +9 -9
  107. package/dist/shared/components/support/assign-rules-text.js +171 -0
  108. package/dist/shared/components/support/support-list.js +125 -0
  109. package/dist/shared/components/ui/SimpleSelect.js +28 -20
  110. package/dist/shared/components/ui/checkbox.js +6 -6
  111. package/dist/shared/components/ui/select.js +43 -39
  112. package/dist/shared/components/ui/sheet.js +9 -9
  113. package/dist/shared/components/ui/switch.js +12 -11
  114. package/dist/shared/components/watch-list/WatchDock.js +532 -459
  115. package/dist/shared/components/watch-list/WatchExtras.js +332 -286
  116. package/dist/shared/components/watch-list/WatchRows.js +164 -140
  117. package/dist/shared/lib/activity-sentence.js +103 -91
  118. package/dist/shared/lib/agent-presence.js +27 -21
  119. package/dist/shared/lib/approval-progress.js +2 -2
  120. package/dist/shared/lib/copy-rules.js +31 -24
  121. package/dist/shared/lib/derived-causes.js +113 -78
  122. package/dist/shared/lib/grid-cursors.js +26 -26
  123. package/dist/shared/lib/label-flash.js +27 -0
  124. package/dist/shared/lib/list-return.js +137 -125
  125. package/dist/shared/lib/live-deltas.js +40 -34
  126. package/dist/shared/lib/live-groups.js +56 -52
  127. package/dist/shared/lib/live-preference.js +64 -59
  128. package/dist/shared/lib/live-screen.js +223 -192
  129. package/dist/shared/lib/partner-failure.js +11 -11
  130. package/dist/shared/lib/rollup-recalc.js +68 -64
  131. package/dist/shared/lib/screen-refresh.js +74 -68
  132. package/dist/shared/lib/screen-share.js +108 -104
  133. package/dist/shared/lib/send-status.js +77 -61
  134. package/dist/shared/lib/text-diff-window.js +29 -0
  135. package/dist/shared/lib/watch-list.js +210 -209
  136. package/dist/shared/lib/widget-image-render.js +72 -49
  137. package/package.json +1 -1
@@ -1,73 +1,70 @@
1
- import { jsxs as b, jsx as l } from "react/jsx-runtime";
2
- import { ChevronUp as f, ChevronDown as g } from "lucide-react";
3
- import { useMemo as x } from "react";
4
- import { useNavigation as N, useItemNavigation as k } from "../../context.js";
5
- import { listReturnFor as w, listNeighbors as $, stepListReturn as y } from "../../lib/list-return.js";
6
- function D({
1
+ import { jsxs as w, jsx as i } from "react/jsx-runtime";
2
+ import { ChevronUp as N, ChevronDown as T } from "lucide-react";
3
+ import { useMemo as f } from "react";
4
+ import { useNavigation as L, useItemNavigation as y } from "../../context.js";
5
+ import { listReturnFor as C, listNeighbors as F, stepListReturn as R } from "../../lib/list-return.js";
6
+ function B({
7
7
  collection: d,
8
- itemId: i,
9
- className: h
8
+ itemId: n,
9
+ className: v
10
10
  }) {
11
- var c;
12
- const m = N(), { urlFor: v } = k(), n = x(
13
- () => d && i != null && i !== "new" ? { collection: d, id: String(i) } : null,
14
- [d, i]
15
- ), o = x(() => n ? w(n) : null, [n]), e = n ? $(o, n) : null;
16
- if (!o || !e || e.total < 2) return null;
17
- const r = ((c = o.label) == null ? void 0 : c.trim()) || "the list", s = (t, a) => {
18
- if (!t) return;
19
- const p = v({ collection: t.collection, itemId: t.id });
20
- if (a.metaKey || a.ctrlKey || a.shiftKey || a.button === 1) {
21
- a.preventDefault(), window.open(p, "_blank", "noopener");
11
+ var b;
12
+ const g = L(), { urlFor: m } = y(), o = f(
13
+ () => d && n != null && n !== "new" ? { collection: d, id: String(n) } : null,
14
+ [d, n]
15
+ ), s = f(() => o ? C(o) : null, [o]), t = o ? F(s, o) : null;
16
+ if (!s || !t || t.total < 2) return null;
17
+ const a = ((b = s.label) == null ? void 0 : b.trim()) || "the list", l = (e, r) => {
18
+ if (!e) return;
19
+ const x = m({ collection: e.collection, itemId: e.id });
20
+ if (r.metaKey || r.ctrlKey || r.shiftKey || r.button === 1) {
21
+ r.preventDefault(), window.open(x, "_blank", "noopener");
22
22
  return;
23
23
  }
24
- y(t), m.navigate(p, { replace: !0 });
25
- }, u = "flex h-7 w-7 items-center justify-center rounded-md text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-900 disabled:pointer-events-none disabled:opacity-35 dark:text-slate-400 dark:hover:bg-white/[0.06] dark:hover:text-slate-100";
26
- return /* @__PURE__ */ b(
24
+ R(e), g.navigate(x, { replace: !0 });
25
+ }, c = t.listTotal != null ? `${t.approx ? "about " : ""}${t.listTotal.toLocaleString()}` : t.total.toLocaleString(), k = `${t.position.toLocaleString()} of ${c}${t.listTotal == null ? " shown" : ""}`, $ = t.listTotal != null ? `Record ${t.position.toLocaleString()} of ${c} in ${a}` : `Record ${t.index} of the ${t.total} shown from ${a}`, u = t.prev ? `Previous in ${a}` : t.moreBefore ? "First on this page — go back to the list for the page before" : t.listTotal == null && t.position > 1 ? `First of the ${t.total} shown` : `First in ${a}`, h = t.next ? `Next in ${a}` : t.moreAfter ? "Last on this page — go back to the list for the next page" : t.listTotal == null ? `Last of the ${t.total} shown — go back to the list for more` : `Last in ${a}`, p = "flex h-7 w-7 items-center justify-center rounded-md text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/60 aria-disabled:cursor-default aria-disabled:text-slate-300 aria-disabled:hover:bg-transparent aria-disabled:hover:text-slate-300 dark:text-slate-400 dark:hover:bg-white/[0.06] dark:hover:text-slate-100 dark:aria-disabled:text-slate-600 dark:aria-disabled:hover:bg-transparent dark:aria-disabled:hover:text-slate-600";
26
+ return /* @__PURE__ */ w(
27
27
  "nav",
28
28
  {
29
- "aria-label": `Records in ${r}`,
30
- "data-list-neighbors": o.list,
31
- className: h ?? "flex shrink-0 items-center gap-0.5 rounded-lg border border-slate-200 bg-white px-0.5 dark:border-border dark:bg-card",
29
+ "aria-label": `Records in ${a}`,
30
+ "data-list-neighbors": s.list,
31
+ className: v ?? "flex shrink-0 items-center gap-0.5 rounded-lg border border-slate-200 bg-white px-0.5 dark:border-border dark:bg-card",
32
32
  children: [
33
- /* @__PURE__ */ l(
33
+ /* @__PURE__ */ i(
34
34
  "button",
35
35
  {
36
36
  type: "button",
37
- className: u,
38
- disabled: !e.prev,
39
- onClick: (t) => s(e.prev, t),
40
- onAuxClick: (t) => s(e.prev, t),
41
- "aria-label": `Previous in ${r}`,
42
- "data-tip": `Previous in ${r}`,
37
+ className: p,
38
+ "aria-disabled": !t.prev || void 0,
39
+ onClick: (e) => l(t.prev, e),
40
+ onAuxClick: (e) => l(t.prev, e),
41
+ "aria-label": u,
42
+ "data-tip": u,
43
43
  "data-list-prev": !0,
44
- children: /* @__PURE__ */ l(f, { "aria-hidden": !0, className: "h-4 w-4" })
44
+ children: /* @__PURE__ */ i(N, { "aria-hidden": !0, className: "h-4 w-4" })
45
45
  }
46
46
  ),
47
- /* @__PURE__ */ b(
47
+ /* @__PURE__ */ i(
48
48
  "span",
49
49
  {
50
- className: "min-w-[3.25rem] select-none px-0.5 text-center text-[11.5px] tabular-nums text-slate-500 dark:text-slate-400",
51
- "data-tip": `Record ${e.index} of ${e.total} in ${r}`,
52
- children: [
53
- e.index,
54
- " of ",
55
- e.total
56
- ]
50
+ className: "min-w-[3.25rem] select-none whitespace-nowrap px-0.5 text-center text-[11.5px] tabular-nums text-slate-500 dark:text-slate-400",
51
+ "data-tip": $,
52
+ "data-list-count": !0,
53
+ children: k
57
54
  }
58
55
  ),
59
- /* @__PURE__ */ l(
56
+ /* @__PURE__ */ i(
60
57
  "button",
61
58
  {
62
59
  type: "button",
63
- className: u,
64
- disabled: !e.next,
65
- onClick: (t) => s(e.next, t),
66
- onAuxClick: (t) => s(e.next, t),
67
- "aria-label": `Next in ${r}`,
68
- "data-tip": `Next in ${r}`,
60
+ className: p,
61
+ "aria-disabled": !t.next || void 0,
62
+ onClick: (e) => l(t.next, e),
63
+ onAuxClick: (e) => l(t.next, e),
64
+ "aria-label": h,
65
+ "data-tip": h,
69
66
  "data-list-next": !0,
70
- children: /* @__PURE__ */ l(g, { "aria-hidden": !0, className: "h-4 w-4" })
67
+ children: /* @__PURE__ */ i(T, { "aria-hidden": !0, className: "h-4 w-4" })
71
68
  }
72
69
  )
73
70
  ]
@@ -75,5 +72,5 @@ function D({
75
72
  );
76
73
  }
77
74
  export {
78
- D as ListNeighborNav
75
+ B as ListNeighborNav
79
76
  };
@@ -1,26 +1,31 @@
1
1
  import { jsx as e, jsxs as h } from "react/jsx-runtime";
2
2
  import { LiveTraceView as l } from "../LiveTraceView.js";
3
- import { Sheet as n, SheetContent as o, SheetHeader as d, SheetTitle as m } from "../ui/sheet.js";
4
- function w({
5
- collection: r,
6
- itemId: i,
7
- open: t,
8
- onClose: a
3
+ import { Sheet as o, SheetContent as c, SheetHeader as d, SheetTitle as m } from "../ui/sheet.js";
4
+ function f({
5
+ collection: i,
6
+ itemId: s,
7
+ open: r,
8
+ onClose: n
9
9
  }) {
10
- return /* @__PURE__ */ e(n, { open: t, onOpenChange: (s) => !s && a(), children: /* @__PURE__ */ h(
11
- o,
10
+ return /* @__PURE__ */ e(o, { open: r, onOpenChange: (t) => !t && n(), children: /* @__PURE__ */ h(
11
+ c,
12
12
  {
13
13
  side: "right",
14
14
  className: "w-full overflow-y-auto sm:max-w-2xl",
15
15
  "data-live-trace-sheet": !0,
16
+ onOpenAutoFocus: (t) => {
17
+ var a;
18
+ t.preventDefault(), (a = t.currentTarget) == null || a.focus();
19
+ },
20
+ tabIndex: -1,
16
21
  children: [
17
22
  /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(m, { children: "Why didn't this page update?" }) }),
18
23
  /* @__PURE__ */ e("p", { className: "mt-1 text-[12px] text-slate-500 dark:text-slate-400", children: "What the server sent live for this record, the writes it saw, and who was listening." }),
19
- t && /* @__PURE__ */ e(l, { collection: r, item: i, className: "mt-4" })
24
+ r && /* @__PURE__ */ e(l, { collection: i, item: s, className: "mt-4" })
20
25
  ]
21
26
  }
22
27
  ) });
23
28
  }
24
29
  export {
25
- w as LiveTraceSheet
30
+ f as LiveTraceSheet
26
31
  };