@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.
- package/dist/components/InlineGridField.js +95 -92
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +36 -2
- package/dist/shared/components/AudienceConfirmPanel.js +19 -19
- package/dist/shared/components/BroadcastView.js +213 -211
- package/dist/shared/components/CollectionBrowserView.js +2677 -2658
- package/dist/shared/components/ConfigHistory.js +45 -45
- package/dist/shared/components/ConformanceView.js +110 -110
- package/dist/shared/components/DataTable.js +51 -51
- package/dist/shared/components/FilePreviewLightbox.js +26 -25
- package/dist/shared/components/ItemEditForm.js +3038 -3027
- package/dist/shared/components/LiveCount.js +27 -23
- package/dist/shared/components/LiveTraceView.js +62 -61
- package/dist/shared/components/PageRenderer.js +422 -410
- package/dist/shared/components/ProfileView.js +199 -199
- package/dist/shared/components/QualityRulesView.js +70 -70
- package/dist/shared/components/QueryTable.js +131 -130
- package/dist/shared/components/RecordGraph.js +98 -98
- package/dist/shared/components/RecordReadView.js +287 -288
- package/dist/shared/components/ReportView.js +1279 -1259
- package/dist/shared/components/SlaRulesView.js +73 -74
- package/dist/shared/components/WidgetSlot.js +73 -73
- package/dist/shared/components/ai/AiChart.js +36 -32
- package/dist/shared/components/ai/AiMarkdown.js +136 -129
- package/dist/shared/components/ai/TaskDo.js +87 -87
- package/dist/shared/components/ai/answer-formats.js +37 -30
- package/dist/shared/components/ai/call-log/format.js +17 -16
- package/dist/shared/components/bulk/BulkActionButtons.js +66 -66
- package/dist/shared/components/bulk/BulkFieldUpdate.js +59 -59
- package/dist/shared/components/bulk/BulkSelectionNotices.js +34 -34
- package/dist/shared/components/bulk/MessageStakeholders.js +31 -29
- package/dist/shared/components/bulk/PushBulkButtons.js +83 -82
- package/dist/shared/components/bulk/bulk-field-options.js +10 -10
- package/dist/shared/components/cbv/column-totals.js +53 -51
- package/dist/shared/components/chat/ChatAnalyticsView.js +87 -87
- package/dist/shared/components/collections-directory/CollectionsToolbar.js +18 -18
- package/dist/shared/components/command-center/announce.js +7 -6
- package/dist/shared/components/command-center/panels/AttentionPanel.js +32 -31
- package/dist/shared/components/command-center/panels/FlowPanel.js +29 -28
- package/dist/shared/components/command-center/panels/PeoplePanel.js +39 -39
- package/dist/shared/components/delegation/DelegationConsoleView.js +27 -27
- package/dist/shared/components/imports/RunDetailSheet.js +1 -1
- package/dist/shared/components/integrations/IntegrationObligationsView.js +119 -119
- package/dist/shared/components/integrations/console/EventsView.js +35 -35
- package/dist/shared/components/integrations/console/FirefightView.js +15 -14
- package/dist/shared/components/integrations/console/PartnerDetail.js +78 -78
- package/dist/shared/components/integrations/console/ReadyToSendView.js +103 -103
- package/dist/shared/components/integrations/console/SignalCard.js +67 -67
- package/dist/shared/components/item-edit/CatalogPickerField.js +536 -527
- package/dist/shared/components/item-edit/ChangesTray.js +88 -74
- package/dist/shared/components/item-edit/FilePickerField.js +123 -123
- package/dist/shared/components/item-edit/GroupSection.js +301 -292
- package/dist/shared/components/item-edit/HeaderSummaryChip.js +54 -54
- package/dist/shared/components/item-edit/InlineGridField.js +45 -36
- package/dist/shared/components/item-edit/InlineTableField.js +1167 -1153
- package/dist/shared/components/item-edit/NestedRelationEditor.js +106 -99
- package/dist/shared/components/item-edit/RecordChatMentionsChip.js +11 -11
- package/dist/shared/components/layout-editor/ai-forms/SlimPanel.js +43 -44
- package/dist/shared/components/monitoring/ApiRequestLog.js +35 -35
- package/dist/shared/components/notifications/NotificationCenterView.js +268 -268
- package/dist/shared/components/ops-report/format.js +37 -36
- package/dist/shared/components/panels/ReferencedByPanel.js +21 -20
- package/dist/shared/components/panels/RevisionsPanel.js +306 -305
- package/dist/shared/components/pipeline/OwnerMatrixVersionsCard.js +12 -12
- package/dist/shared/components/pipeline/PipelineEditorView.js +483 -482
- package/dist/shared/components/pipeline/PipelineHealthCards.js +33 -32
- package/dist/shared/components/pipeline/TeamsView.js +189 -130
- package/dist/shared/components/profile/AgentsPanel.js +6 -6
- package/dist/shared/components/profile/DelegationCard.js +13 -12
- package/dist/shared/components/profile/PersonActivity.js +48 -48
- package/dist/shared/components/profile/PersonExtras.js +107 -107
- package/dist/shared/components/profile/PersonWeek.js +9 -9
- package/dist/shared/components/queue/QueueBulkBar.js +19 -18
- package/dist/shared/components/queue/QueueBulkMove.js +21 -20
- package/dist/shared/components/queue/QueueItemSheet.js +136 -131
- package/dist/shared/components/queue/QueueWorklist.js +671 -670
- package/dist/shared/components/queue/worklist-helpers.js +36 -21
- package/dist/shared/components/support/RequestList.js +121 -121
- package/dist/shared/components/support/SupportAnalytics.js +29 -29
- package/dist/shared/lib/activity-sentence.js +251 -229
- package/dist/shared/lib/format-value.js +5 -4
- package/dist/shared/lib/number-format.js +87 -0
- package/dist/shared/lib/number-kind.js +133 -0
- package/dist/shared/lib/utils.js +24 -20
- package/dist/shared/lib/watch-list.js +1 -1
- package/dist/shared/lib/widget-value-format.js +26 -12
- 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
|
|
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
|
|
8
|
-
import { formatRelative as
|
|
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
|
|
28
|
-
return r ?
|
|
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
|
|
152
|
-
const a = D(), o = K(), [c, p] =
|
|
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
|
-
|
|
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
|
-
|
|
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 ? ` · ${
|
|
235
|
+
t.bytes ? ` · ${M(t.bytes)}` : ""
|
|
236
236
|
] }),
|
|
237
|
-
/* @__PURE__ */ n("span", { className: "shrink-0 text-[10.5px] text-slate-400", children:
|
|
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
|
-
|
|
295
|
+
Y as OwnerMatrixVersionsCard
|
|
296
296
|
};
|