@nivaro/react 0.3.139 → 0.3.141

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 (100) hide show
  1. package/dist/components/InlineGridField.js +95 -92
  2. package/dist/full.css +1 -1
  3. package/dist/hooks/useSessionRecorder.js +1 -1
  4. package/dist/index.d.ts +39 -2
  5. package/dist/shared/components/AudienceConfirmPanel.js +19 -19
  6. package/dist/shared/components/BroadcastView.js +213 -211
  7. package/dist/shared/components/CollectionBrowserView.js +2702 -2671
  8. package/dist/shared/components/ConfigHistory.js +45 -45
  9. package/dist/shared/components/ConformanceView.js +110 -110
  10. package/dist/shared/components/DataTable.js +51 -51
  11. package/dist/shared/components/FilePreviewLightbox.js +26 -25
  12. package/dist/shared/components/ItemEditForm.js +3475 -3458
  13. package/dist/shared/components/LiveCount.js +27 -23
  14. package/dist/shared/components/LiveTraceView.js +62 -61
  15. package/dist/shared/components/PageRenderer.js +422 -410
  16. package/dist/shared/components/ProfileView.js +199 -199
  17. package/dist/shared/components/QualityRulesView.js +70 -70
  18. package/dist/shared/components/QueryTable.js +131 -130
  19. package/dist/shared/components/RecordGraph.js +98 -98
  20. package/dist/shared/components/RecordReadView.js +287 -288
  21. package/dist/shared/components/ReportView.js +1279 -1259
  22. package/dist/shared/components/RowPresence.js +83 -76
  23. package/dist/shared/components/SlaRulesView.js +73 -74
  24. package/dist/shared/components/UnseenDot.js +183 -22
  25. package/dist/shared/components/WidgetSlot.js +73 -73
  26. package/dist/shared/components/ai/AiChart.js +36 -32
  27. package/dist/shared/components/ai/AiMarkdown.js +136 -129
  28. package/dist/shared/components/ai/TaskDo.js +87 -87
  29. package/dist/shared/components/ai/answer-formats.js +37 -30
  30. package/dist/shared/components/ai/call-log/format.js +17 -16
  31. package/dist/shared/components/bulk/BulkActionButtons.js +66 -66
  32. package/dist/shared/components/bulk/BulkFieldUpdate.js +59 -59
  33. package/dist/shared/components/bulk/BulkSelectionNotices.js +34 -34
  34. package/dist/shared/components/bulk/MessageStakeholders.js +31 -29
  35. package/dist/shared/components/bulk/PushBulkButtons.js +83 -82
  36. package/dist/shared/components/bulk/bulk-field-options.js +10 -10
  37. package/dist/shared/components/cbv/column-totals.js +53 -51
  38. package/dist/shared/components/chat/ChatAnalyticsView.js +87 -87
  39. package/dist/shared/components/collections-directory/CollectionsToolbar.js +18 -18
  40. package/dist/shared/components/command-center/announce.js +7 -6
  41. package/dist/shared/components/command-center/panels/AttentionPanel.js +32 -31
  42. package/dist/shared/components/command-center/panels/FlowPanel.js +29 -28
  43. package/dist/shared/components/command-center/panels/PeoplePanel.js +39 -39
  44. package/dist/shared/components/delegation/DelegationConsoleView.js +27 -27
  45. package/dist/shared/components/delivery-analytics/drill.js +32 -32
  46. package/dist/shared/components/imports/RunDetailSheet.js +1 -1
  47. package/dist/shared/components/integrations/IntegrationObligationsView.js +119 -119
  48. package/dist/shared/components/integrations/console/EventsView.js +35 -35
  49. package/dist/shared/components/integrations/console/FirefightView.js +15 -14
  50. package/dist/shared/components/integrations/console/PartnerDetail.js +78 -78
  51. package/dist/shared/components/integrations/console/ReadyToSendView.js +103 -103
  52. package/dist/shared/components/integrations/console/SignalCard.js +67 -67
  53. package/dist/shared/components/item-edit/CatalogPickerField.js +536 -527
  54. package/dist/shared/components/item-edit/ChangesTray.js +88 -74
  55. package/dist/shared/components/item-edit/FilePickerField.js +123 -123
  56. package/dist/shared/components/item-edit/GroupSection.js +301 -292
  57. package/dist/shared/components/item-edit/HeaderSummaryChip.js +54 -54
  58. package/dist/shared/components/item-edit/InlineGridField.js +45 -36
  59. package/dist/shared/components/item-edit/InlineTableField.js +1390 -1376
  60. package/dist/shared/components/item-edit/NestedRelationEditor.js +106 -99
  61. package/dist/shared/components/item-edit/RecordChatMentionsChip.js +11 -11
  62. package/dist/shared/components/item-edit/RecordRecapChanges.js +116 -74
  63. package/dist/shared/components/item-edit/RecordRecapStrip.js +148 -160
  64. package/dist/shared/components/item-edit/summary-layout-request.js +15 -0
  65. package/dist/shared/components/layout-editor/ai-forms/SlimPanel.js +43 -44
  66. package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
  67. package/dist/shared/components/layout-editor/settings/ResolveSettings.js +226 -157
  68. package/dist/shared/components/layout-editor/settings/WhoSection.js +53 -52
  69. package/dist/shared/components/layout-editor/settings/controls.js +98 -90
  70. package/dist/shared/components/layout-editor/settings/settings-registry.js +8 -0
  71. package/dist/shared/components/monitoring/ApiRequestLog.js +35 -35
  72. package/dist/shared/components/notifications/NotificationCenterView.js +268 -268
  73. package/dist/shared/components/ops-report/format.js +37 -36
  74. package/dist/shared/components/panels/ReferencedByPanel.js +21 -20
  75. package/dist/shared/components/panels/RevisionsPanel.js +306 -305
  76. package/dist/shared/components/pipeline/OwnerMatrixVersionsCard.js +12 -12
  77. package/dist/shared/components/pipeline/PipelineEditorView.js +483 -482
  78. package/dist/shared/components/pipeline/PipelineHealthCards.js +33 -32
  79. package/dist/shared/components/pipeline/TeamsView.js +189 -130
  80. package/dist/shared/components/profile/AgentsPanel.js +6 -6
  81. package/dist/shared/components/profile/DelegationCard.js +13 -12
  82. package/dist/shared/components/profile/PersonActivity.js +48 -48
  83. package/dist/shared/components/profile/PersonExtras.js +107 -107
  84. package/dist/shared/components/profile/PersonWeek.js +9 -9
  85. package/dist/shared/components/queue/QueueBulkBar.js +19 -18
  86. package/dist/shared/components/queue/QueueBulkMove.js +21 -20
  87. package/dist/shared/components/queue/QueueItemSheet.js +136 -131
  88. package/dist/shared/components/queue/QueueWorklist.js +884 -872
  89. package/dist/shared/components/queue/worklist-helpers.js +36 -21
  90. package/dist/shared/components/support/RequestList.js +123 -123
  91. package/dist/shared/components/support/SupportAnalytics.js +29 -29
  92. package/dist/shared/lib/activity-sentence.js +251 -229
  93. package/dist/shared/lib/format-value.js +5 -4
  94. package/dist/shared/lib/layout-resolve.js +64 -48
  95. package/dist/shared/lib/number-format.js +87 -0
  96. package/dist/shared/lib/number-kind.js +133 -0
  97. package/dist/shared/lib/utils.js +24 -20
  98. package/dist/shared/lib/watch-list.js +1 -1
  99. package/dist/shared/lib/widget-value-format.js +26 -12
  100. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import { jsxs as s, jsx as n, Fragment as F } from "react/jsx-runtime";
2
2
  import { useQueryClient as K, useQuery as w, useMutation as $ } from "@tanstack/react-query";
3
3
  import { Users as O } from "lucide-react";
4
- import { useState as C } from "react";
4
+ import { useState as S } from "react";
5
5
  import { toast as f } from "sonner";
6
6
  import { useNivaroClient as D } from "../../context.js";
7
- import { get as S, post as q } from "../../lib/commands.js";
8
- import { formatRelative as M } from "../../lib/utils.js";
7
+ import { get as C, post as q } from "../../lib/commands.js";
8
+ import { formatRelative as z, formatFileSize as A } from "../../lib/utils.js";
9
9
  import { Button as N } from "../ui/button.js";
10
10
  import { Skeleton as j } from "../ui/skeleton.js";
11
11
  function g(r) {
@@ -24,8 +24,8 @@ function y(r) {
24
24
  (o) => `${o.field ?? "?"} ${o.op ?? "eq"} ${Array.isArray(o.value) ? o.value.join(", ") : String(o.value ?? "")}`
25
25
  ).join(" · ");
26
26
  }
27
- function A(r) {
28
- return r ? r < 1024 ? `${r} B` : `${Math.round(r / 1024)} KB` : "";
27
+ function M(r) {
28
+ return r ? A(r) : "";
29
29
  }
30
30
  function P({ data: r }) {
31
31
  const { diff: a, names: o } = r, c = (e) => o.users[e.toUpperCase()] ?? e.slice(0, 8), p = (e) => o.teams[String(e)] ?? `team ${e}`, m = (e) => o.states[e.toUpperCase()] ?? "unknown state", x = (e) => e.name || y(e.filters), i = a.totals, b = a.groups.added.length + a.groups.removed.length + a.groups.changed.length === 0 && (i.dimensions_changed ?? 0) === 0, h = (e) => /* @__PURE__ */ s(F, { children: [
@@ -148,16 +148,16 @@ function P({ data: r }) {
148
148
  ] })
149
149
  ] });
150
150
  }
151
- function J({ templateId: r }) {
152
- const a = D(), o = K(), [c, p] = C(null), [m, x] = C(null), { data: i, isLoading: b } = w({
151
+ function Y({ templateId: r }) {
152
+ const a = D(), o = K(), [c, p] = S(null), [m, x] = S(null), { data: i, isLoading: b } = w({
153
153
  queryKey: ["owner-matrix-versions", r],
154
154
  queryFn: () => a.request(
155
- S(`/pipelines/${r}/owner-matrix/versions`)
155
+ C(`/pipelines/${r}/owner-matrix/versions`)
156
156
  ).then((t) => t.data)
157
157
  }), { data: h, isFetching: e } = w({
158
158
  queryKey: ["owner-matrix-version-diff", r, m],
159
159
  queryFn: () => a.request(
160
- S(`/pipelines/${r}/owner-matrix/versions/${m}/diff`)
160
+ C(`/pipelines/${r}/owner-matrix/versions/${m}/diff`)
161
161
  ).then((t) => t.data),
162
162
  enabled: m != null
163
163
  }), d = $({
@@ -232,9 +232,9 @@ function J({ templateId: r }) {
232
232
  t.note ?? "—",
233
233
  (l = t.created_by_name) != null && l.trim() ? ` · ${t.created_by_name}` : "",
234
234
  t.group_count != null && ` · ${t.group_count} cells, ${t.member_count ?? 0} members`,
235
- t.bytes ? ` · ${A(t.bytes)}` : ""
235
+ t.bytes ? ` · ${M(t.bytes)}` : ""
236
236
  ] }),
237
- /* @__PURE__ */ n("span", { className: "shrink-0 text-[10.5px] text-slate-400", children: M(t.created_at) }),
237
+ /* @__PURE__ */ n("span", { className: "shrink-0 text-[10.5px] text-slate-400", children: z(t.created_at) }),
238
238
  c === t.id ? /* @__PURE__ */ s("span", { className: "flex shrink-0 items-center gap-1.5", children: [
239
239
  /* @__PURE__ */ n(
240
240
  N,
@@ -292,5 +292,5 @@ function J({ templateId: r }) {
292
292
  );
293
293
  }
294
294
  export {
295
- J as OwnerMatrixVersionsCard
295
+ Y as OwnerMatrixVersionsCard
296
296
  };