@nivaro/react 0.3.139 → 0.3.140

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 (87) hide show
  1. package/dist/components/InlineGridField.js +95 -92
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +36 -2
  4. package/dist/shared/components/AudienceConfirmPanel.js +19 -19
  5. package/dist/shared/components/BroadcastView.js +213 -211
  6. package/dist/shared/components/CollectionBrowserView.js +2677 -2658
  7. package/dist/shared/components/ConfigHistory.js +45 -45
  8. package/dist/shared/components/ConformanceView.js +110 -110
  9. package/dist/shared/components/DataTable.js +51 -51
  10. package/dist/shared/components/FilePreviewLightbox.js +26 -25
  11. package/dist/shared/components/ItemEditForm.js +3038 -3027
  12. package/dist/shared/components/LiveCount.js +27 -23
  13. package/dist/shared/components/LiveTraceView.js +62 -61
  14. package/dist/shared/components/PageRenderer.js +422 -410
  15. package/dist/shared/components/ProfileView.js +199 -199
  16. package/dist/shared/components/QualityRulesView.js +70 -70
  17. package/dist/shared/components/QueryTable.js +131 -130
  18. package/dist/shared/components/RecordGraph.js +98 -98
  19. package/dist/shared/components/RecordReadView.js +287 -288
  20. package/dist/shared/components/ReportView.js +1279 -1259
  21. package/dist/shared/components/SlaRulesView.js +73 -74
  22. package/dist/shared/components/WidgetSlot.js +73 -73
  23. package/dist/shared/components/ai/AiChart.js +36 -32
  24. package/dist/shared/components/ai/AiMarkdown.js +136 -129
  25. package/dist/shared/components/ai/TaskDo.js +87 -87
  26. package/dist/shared/components/ai/answer-formats.js +37 -30
  27. package/dist/shared/components/ai/call-log/format.js +17 -16
  28. package/dist/shared/components/bulk/BulkActionButtons.js +66 -66
  29. package/dist/shared/components/bulk/BulkFieldUpdate.js +59 -59
  30. package/dist/shared/components/bulk/BulkSelectionNotices.js +34 -34
  31. package/dist/shared/components/bulk/MessageStakeholders.js +31 -29
  32. package/dist/shared/components/bulk/PushBulkButtons.js +83 -82
  33. package/dist/shared/components/bulk/bulk-field-options.js +10 -10
  34. package/dist/shared/components/cbv/column-totals.js +53 -51
  35. package/dist/shared/components/chat/ChatAnalyticsView.js +87 -87
  36. package/dist/shared/components/collections-directory/CollectionsToolbar.js +18 -18
  37. package/dist/shared/components/command-center/announce.js +7 -6
  38. package/dist/shared/components/command-center/panels/AttentionPanel.js +32 -31
  39. package/dist/shared/components/command-center/panels/FlowPanel.js +29 -28
  40. package/dist/shared/components/command-center/panels/PeoplePanel.js +39 -39
  41. package/dist/shared/components/delegation/DelegationConsoleView.js +27 -27
  42. package/dist/shared/components/imports/RunDetailSheet.js +1 -1
  43. package/dist/shared/components/integrations/IntegrationObligationsView.js +119 -119
  44. package/dist/shared/components/integrations/console/EventsView.js +35 -35
  45. package/dist/shared/components/integrations/console/FirefightView.js +15 -14
  46. package/dist/shared/components/integrations/console/PartnerDetail.js +78 -78
  47. package/dist/shared/components/integrations/console/ReadyToSendView.js +103 -103
  48. package/dist/shared/components/integrations/console/SignalCard.js +67 -67
  49. package/dist/shared/components/item-edit/CatalogPickerField.js +536 -527
  50. package/dist/shared/components/item-edit/ChangesTray.js +88 -74
  51. package/dist/shared/components/item-edit/FilePickerField.js +123 -123
  52. package/dist/shared/components/item-edit/GroupSection.js +301 -292
  53. package/dist/shared/components/item-edit/HeaderSummaryChip.js +54 -54
  54. package/dist/shared/components/item-edit/InlineGridField.js +45 -36
  55. package/dist/shared/components/item-edit/InlineTableField.js +1167 -1153
  56. package/dist/shared/components/item-edit/NestedRelationEditor.js +106 -99
  57. package/dist/shared/components/item-edit/RecordChatMentionsChip.js +11 -11
  58. package/dist/shared/components/layout-editor/ai-forms/SlimPanel.js +43 -44
  59. package/dist/shared/components/monitoring/ApiRequestLog.js +35 -35
  60. package/dist/shared/components/notifications/NotificationCenterView.js +268 -268
  61. package/dist/shared/components/ops-report/format.js +37 -36
  62. package/dist/shared/components/panels/ReferencedByPanel.js +21 -20
  63. package/dist/shared/components/panels/RevisionsPanel.js +306 -305
  64. package/dist/shared/components/pipeline/OwnerMatrixVersionsCard.js +12 -12
  65. package/dist/shared/components/pipeline/PipelineEditorView.js +483 -482
  66. package/dist/shared/components/pipeline/PipelineHealthCards.js +33 -32
  67. package/dist/shared/components/pipeline/TeamsView.js +189 -130
  68. package/dist/shared/components/profile/AgentsPanel.js +6 -6
  69. package/dist/shared/components/profile/DelegationCard.js +13 -12
  70. package/dist/shared/components/profile/PersonActivity.js +48 -48
  71. package/dist/shared/components/profile/PersonExtras.js +107 -107
  72. package/dist/shared/components/profile/PersonWeek.js +9 -9
  73. package/dist/shared/components/queue/QueueBulkBar.js +19 -18
  74. package/dist/shared/components/queue/QueueBulkMove.js +21 -20
  75. package/dist/shared/components/queue/QueueItemSheet.js +136 -131
  76. package/dist/shared/components/queue/QueueWorklist.js +671 -670
  77. package/dist/shared/components/queue/worklist-helpers.js +36 -21
  78. package/dist/shared/components/support/RequestList.js +121 -121
  79. package/dist/shared/components/support/SupportAnalytics.js +29 -29
  80. package/dist/shared/lib/activity-sentence.js +251 -229
  81. package/dist/shared/lib/format-value.js +5 -4
  82. package/dist/shared/lib/number-format.js +87 -0
  83. package/dist/shared/lib/number-kind.js +133 -0
  84. package/dist/shared/lib/utils.js +24 -20
  85. package/dist/shared/lib/watch-list.js +1 -1
  86. package/dist/shared/lib/widget-value-format.js +26 -12
  87. 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
  };