@nivaro/react 0.2.54 → 0.2.55
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/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +99 -98
- package/dist/index.d.ts +339 -2
- package/dist/index.js +644 -618
- package/dist/layout-editor.d.ts +4 -0
- package/dist/shared/components/BackgroundRunOffer.js +117 -0
- package/dist/shared/components/BroadcastView.js +214 -213
- package/dist/shared/components/CollectionBrowserView.js +2592 -2695
- package/dist/shared/components/ItemEditForm.js +4066 -3832
- package/dist/shared/components/JobsTray.js +100 -55
- package/dist/shared/components/MyWorkView.js +91 -89
- package/dist/shared/components/NotificationBell.js +80 -79
- package/dist/shared/components/ProfileView.js +568 -520
- package/dist/shared/components/RecordCompare.js +254 -0
- package/dist/shared/components/RecordReadView.js +599 -552
- package/dist/shared/components/ReportView.js +578 -543
- package/dist/shared/components/RowPresence.js +91 -0
- package/dist/shared/components/WidgetSlot.js +474 -458
- package/dist/shared/components/ai/AiAnalyticsView.js +16 -6
- package/dist/shared/components/ai/AskPanel.js +139 -119
- package/dist/shared/components/ai/FirstWeekCard.js +126 -0
- package/dist/shared/components/bulk/BulkFieldUpdate.js +289 -0
- package/dist/shared/components/bulk/bulk-field-options.js +45 -0
- package/dist/shared/components/charts/CumulativeFlowChart.js +176 -0
- package/dist/shared/components/chat/ChannelArchive.js +326 -0
- package/dist/shared/components/chat/ChannelExtras.js +141 -121
- package/dist/shared/components/chat/ChatAnalyticsView.js +112 -110
- package/dist/shared/components/chat/ChatPanel.js +1695 -1733
- package/dist/shared/components/chat/Composer.js +357 -303
- package/dist/shared/components/chat/MessageActions.js +92 -0
- package/dist/shared/components/chat/MessageFormat.js +290 -264
- package/dist/shared/components/chat/OutboxBubbles.js +146 -0
- package/dist/shared/components/chat/RequestIdCard.js +135 -0
- package/dist/shared/components/chat/RoomHeaderMenu.js +202 -0
- package/dist/shared/components/chat/RoomParts.js +213 -274
- package/dist/shared/components/chat/ScreenClip.js +184 -0
- package/dist/shared/components/chat/chat-core.js +402 -483
- package/dist/shared/components/chat/chat-drafts.js +59 -0
- package/dist/shared/components/chat/chat-emoji.js +348 -0
- package/dist/shared/components/chat/chat-local-time.js +41 -0
- package/dist/shared/components/chat/chat-outbox.js +303 -0
- package/dist/shared/components/chat/chat-window.js +163 -0
- package/dist/shared/components/chat/huddle/HuddleControls.js +143 -0
- package/dist/shared/components/chat/huddle/HuddleStage.js +164 -0
- package/dist/shared/components/chat/huddle/huddle-store.js +342 -0
- package/dist/shared/components/chat/huddle/useHuddle.js +58 -0
- package/dist/shared/components/help-videos/api.js +76 -73
- package/dist/shared/components/item-edit/CatalogPickerField.js +113 -112
- package/dist/shared/components/item-edit/ChangeReasonDialog.js +13 -13
- package/dist/shared/components/item-edit/FieldAffordances.js +2 -2
- package/dist/shared/components/item-edit/FieldRenderer.js +248 -245
- package/dist/shared/components/item-edit/FieldRow.js +292 -279
- package/dist/shared/components/item-edit/GroupSection.js +698 -574
- package/dist/shared/components/item-edit/InlineTableField.js +3 -1
- package/dist/shared/components/item-edit/RelationCombobox.js +186 -176
- package/dist/shared/components/item-edit/entry/EntryStrip.js +54 -0
- package/dist/shared/components/item-edit/entry/entry-keys.js +27 -0
- package/dist/shared/components/item-edit/entry/useEntryKeyboard.js +70 -0
- package/dist/shared/components/item-edit/entry/useEntryMode.js +59 -0
- package/dist/shared/components/item-edit/form-structure-ui.js +105 -0
- package/dist/shared/components/item-edit/lazy-sections.js +36 -0
- package/dist/shared/components/item-edit/lock-why.js +39 -32
- package/dist/shared/components/item-edit/picker-miss.js +26 -0
- package/dist/shared/components/item-edit/placement-behaviour.js +196 -0
- package/dist/shared/components/item-edit/useFormUsageBeacon.js +51 -45
- package/dist/shared/components/layout-editor/AddPanel.js +134 -117
- package/dist/shared/components/layout-editor/ChangeNote.js +25 -24
- package/dist/shared/components/layout-editor/CollabParts.js +80 -75
- package/dist/shared/components/layout-editor/DesignNode.js +126 -120
- package/dist/shared/components/layout-editor/EditorCanvas.js +30 -27
- package/dist/shared/components/layout-editor/EditorTopBar.js +203 -192
- package/dist/shared/components/layout-editor/HistoryPanel.js +120 -104
- package/dist/shared/components/layout-editor/LayoutEditor.js +768 -671
- package/dist/shared/components/layout-editor/RestorePiece.js +143 -0
- package/dist/shared/components/layout-editor/StagedChip.js +22 -0
- package/dist/shared/components/layout-editor/StructureMenu.js +237 -186
- package/dist/shared/components/layout-editor/collab/FormFollowShare.js +149 -103
- package/dist/shared/components/layout-editor/collab/collab-api.js +29 -26
- package/dist/shared/components/layout-editor/dnd/LayoutDndProvider.js +81 -80
- package/dist/shared/components/layout-editor/dnd/node.js +69 -57
- package/dist/shared/components/layout-editor/draft-recovery.js +113 -43
- package/dist/shared/components/layout-editor/entry/PlacementPresets.js +149 -0
- package/dist/shared/components/layout-editor/entry/entry-editor-context.js +10 -0
- package/dist/shared/components/layout-editor/entry/presets.js +71 -0
- package/dist/shared/components/layout-editor/entry/tab-order.js +110 -0
- package/dist/shared/components/layout-editor/entry/theme-preview.js +37 -0
- package/dist/shared/components/layout-editor/grid-guides.js +142 -0
- package/dist/shared/components/layout-editor/inspector/BehaviourSettings.js +402 -0
- package/dist/shared/components/layout-editor/inspector/BulkInspector.js +61 -57
- package/dist/shared/components/layout-editor/inspector/GroupInspector.js +247 -151
- package/dist/shared/components/layout-editor/inspector/Inspector.js +176 -155
- package/dist/shared/components/layout-editor/inspector/LookTab.js +167 -116
- package/dist/shared/components/layout-editor/inspector/PickerMisses.js +129 -0
- package/dist/shared/components/layout-editor/inspector/PickerTab.js +84 -82
- package/dist/shared/components/layout-editor/inspector/RulesTab.js +66 -62
- package/dist/shared/components/layout-editor/inspector/kit.js +69 -68
- package/dist/shared/components/layout-editor/outputs/OutputsButton.js +254 -0
- package/dist/shared/components/layout-editor/outputs/help-sheet.js +154 -0
- package/dist/shared/components/layout-editor/outputs/output-api.js +61 -0
- package/dist/shared/components/layout-editor/overview/describe-conditions.js +6 -0
- package/dist/shared/components/layout-editor/overview/purpose.js +15 -13
- package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
- package/dist/shared/components/layout-editor/restore-piece.js +192 -0
- package/dist/shared/components/layout-editor/section-structure.js +241 -0
- package/dist/shared/components/layout-editor/settings/EntrySection.js +296 -0
- package/dist/shared/components/layout-editor/settings/FormSettings.js +41 -39
- package/dist/shared/components/layout-editor/settings/ResolveSettings.js +255 -0
- package/dist/shared/components/layout-editor/settings/ToolsSection.js +147 -111
- package/dist/shared/components/layout-editor/settings/WhoSection.js +29 -26
- package/dist/shared/components/layout-editor/settings/settings-registry.js +114 -17
- package/dist/shared/components/layout-editor/staged-api.js +64 -0
- package/dist/shared/components/layout-editor/structure-ops.js +81 -77
- package/dist/shared/components/layout-editor/testing/TestingPanels.js +65 -60
- package/dist/shared/components/layout-editor/testing/testing-model.js +198 -185
- package/dist/shared/components/layout-editor/toolbar-kit.js +11 -11
- package/dist/shared/components/layout-editor/usage/AbTestSection.js +355 -0
- package/dist/shared/components/layout-editor/usage/UsagePanel.js +144 -70
- package/dist/shared/components/layout-editor/usage/ab-api.js +86 -0
- package/dist/shared/components/layout-editor/usage/suggest-collapse.js +32 -0
- package/dist/shared/components/layout-editor/useLayoutDraft.js +25 -24
- package/dist/shared/components/notifications/NotificationAnalyticsView.js +148 -77
- package/dist/shared/components/panels/ErpFailureBanner.js +18 -17
- package/dist/shared/components/panels/ExternalRequestsChip.js +63 -62
- package/dist/shared/components/pipeline/PipelineEditorView.js +106 -104
- package/dist/shared/components/profile/AgentsPanel.js +479 -0
- package/dist/shared/components/queue/QueueWorklist.js +1026 -1040
- package/dist/shared/components/support/SupportAnalytics.js +171 -0
- package/dist/shared/components/support/SupportView.js +75 -73
- package/dist/shared/lib/background-runs.js +150 -0
- package/dist/shared/lib/delivery-ack.js +9 -0
- package/dist/shared/lib/entry-badge-style.js +13 -0
- package/dist/shared/lib/entry-config.js +71 -0
- package/dist/shared/lib/form-sections.js +64 -0
- package/dist/shared/lib/form-structure.js +99 -0
- package/dist/shared/lib/form-usage-beacon.js +101 -52
- package/dist/shared/lib/jobs-tray.js +25 -23
- package/dist/shared/lib/keyset-pager.js +37 -0
- package/dist/shared/lib/layout-ops.js +84 -82
- package/dist/shared/lib/layout-resolve.js +113 -0
- package/dist/shared/lib/placement-behaviour.js +144 -0
- package/dist/shared/lib/prefetch.js +149 -0
- package/dist/shared/lib/presence-hooks.js +199 -0
- package/dist/shared/lib/record-outbox.js +82 -81
- package/dist/shared/lib/replay-socket.js +93 -0
- package/dist/shared/lib/request-gate.js +51 -50
- package/dist/shared/lib/room-gaps.js +96 -0
- package/dist/shared/lib/search-log.js +27 -0
- package/dist/shared/lib/socket-realtime.js +101 -80
- package/dist/shared/lib/worker-socket.js +200 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as n, jsxs as a, Fragment as
|
|
1
|
+
import { jsx as n, jsxs as a, Fragment as y } from "react/jsx-runtime";
|
|
2
2
|
import { MessageSquareWarning as w } from "lucide-react";
|
|
3
|
-
import { useState as b, useEffect as
|
|
3
|
+
import { useState as b, useEffect as N } from "react";
|
|
4
4
|
import { titleCase as l } from "../../lib/utils.js";
|
|
5
5
|
import { Button as v } from "../ui/button.js";
|
|
6
|
-
import { Dialog as C, DialogContent as
|
|
6
|
+
import { Dialog as C, DialogContent as S, DialogHeader as D, DialogTitle as j, DialogFooter as R } from "../ui/dialog.js";
|
|
7
7
|
function q(t) {
|
|
8
8
|
var s;
|
|
9
9
|
const r = t, o = ((s = r == null ? void 0 : r.response) == null ? void 0 : s.data) ?? (r == null ? void 0 : r.response);
|
|
@@ -15,12 +15,12 @@ function B({
|
|
|
15
15
|
onSubmit: o,
|
|
16
16
|
onCancel: s
|
|
17
17
|
}) {
|
|
18
|
-
var
|
|
18
|
+
var p, h, f, g;
|
|
19
19
|
const [i, c] = b(null), [x, m] = b("");
|
|
20
|
-
if (
|
|
20
|
+
if (N(() => {
|
|
21
21
|
t && (c(null), m(""));
|
|
22
22
|
}, [t]), !t) return null;
|
|
23
|
-
const d = t.fields_changed.map((e) => r ? r(e) : l(e)),
|
|
23
|
+
const d = t.fields_changed.map((e) => r ? r(e) : l(e)), u = [i, x.trim()].filter(Boolean).join(" — "), k = u.length > 0;
|
|
24
24
|
return /* @__PURE__ */ n(
|
|
25
25
|
C,
|
|
26
26
|
{
|
|
@@ -28,12 +28,12 @@ function B({
|
|
|
28
28
|
onOpenChange: (e) => {
|
|
29
29
|
e || s();
|
|
30
30
|
},
|
|
31
|
-
children: /* @__PURE__ */ a(
|
|
32
|
-
/* @__PURE__ */ n(
|
|
31
|
+
children: /* @__PURE__ */ a(S, { className: "max-w-md space-y-3 p-5", children: [
|
|
32
|
+
/* @__PURE__ */ n(D, { children: /* @__PURE__ */ a(j, { className: "flex items-center gap-2 text-[15px]", children: [
|
|
33
33
|
/* @__PURE__ */ n(w, { className: "h-4 w-4 text-amber-500" }),
|
|
34
|
-
"Reason for change"
|
|
34
|
+
t.confirm ? "Are you sure?" : "Reason for change"
|
|
35
35
|
] }) }),
|
|
36
|
-
(((
|
|
36
|
+
(((p = t.context) == null ? void 0 : p.length) ?? 0) > 0 && /* @__PURE__ */ n("div", { className: "flex flex-wrap gap-1.5", "data-nvr-change-context": !0, children: (h = t.context) == null ? void 0 : h.map((e) => /* @__PURE__ */ a(
|
|
37
37
|
"span",
|
|
38
38
|
{
|
|
39
39
|
className: "rounded bg-slate-100 px-2 py-0.5 text-[11.5px] font-medium text-slate-700 dark:bg-muted dark:text-foreground",
|
|
@@ -48,7 +48,7 @@ function B({
|
|
|
48
48
|
/* @__PURE__ */ a("p", { className: "text-[12.5px] text-slate-600 dark:text-slate-300", children: [
|
|
49
49
|
"You changed ",
|
|
50
50
|
d.length === 1 ? /* @__PURE__ */ n("b", { children: d[0] }) : /* @__PURE__ */ n("b", { children: d.join(", ") }),
|
|
51
|
-
(((f = t.context) == null ? void 0 : f.length) ?? 0) > 0 && /* @__PURE__ */ a(
|
|
51
|
+
(((f = t.context) == null ? void 0 : f.length) ?? 0) > 0 && /* @__PURE__ */ a(y, { children: [
|
|
52
52
|
" ",
|
|
53
53
|
"for",
|
|
54
54
|
" ",
|
|
@@ -57,7 +57,7 @@ function B({
|
|
|
57
57
|
).join(", ") })
|
|
58
58
|
] }),
|
|
59
59
|
" ",
|
|
60
|
-
"— a short justification is required and will be recorded in the change history."
|
|
60
|
+
t.confirm ? "— this matters on a live record. Say why; the reason is kept with the change history." : "— a short justification is required and will be recorded in the change history."
|
|
61
61
|
] }),
|
|
62
62
|
t.reasons.length > 0 && /* @__PURE__ */ n("div", { className: "flex flex-col gap-1.5", "data-nvr-change-reasons": !0, children: t.reasons.map((e) => /* @__PURE__ */ n(
|
|
63
63
|
"button",
|
|
@@ -81,7 +81,7 @@ function B({
|
|
|
81
81
|
),
|
|
82
82
|
/* @__PURE__ */ a(R, { children: [
|
|
83
83
|
/* @__PURE__ */ n(v, { variant: "outline", size: "sm", onClick: s, children: "Cancel" }),
|
|
84
|
-
/* @__PURE__ */ n(v, { size: "sm", disabled: !k, onClick: () => o(
|
|
84
|
+
/* @__PURE__ */ n(v, { size: "sm", disabled: !k, onClick: () => o(u), children: "Save with reason" })
|
|
85
85
|
] })
|
|
86
86
|
] })
|
|
87
87
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as o, jsxs as x, Fragment as $ } from "react/jsx-runtime";
|
|
2
2
|
import { Copy as F, History as O, Eye as K, Sigma as P, ExternalLink as B, Lock as H, X as I } from "lucide-react";
|
|
3
|
-
import {
|
|
3
|
+
import { useContext as U, createContext as q, useState as C, useCallback as g, useRef as v, useEffect as E } from "react";
|
|
4
4
|
import { createPortal as J } from "react-dom";
|
|
5
5
|
import { toast as k } from "sonner";
|
|
6
6
|
import { cn as T, formatRelative as j } from "../../lib/utils.js";
|
|
7
|
-
const R =
|
|
7
|
+
const R = q(null), te = () => U(R), A = (e) => {
|
|
8
8
|
if (e == null || e === "") return "empty";
|
|
9
9
|
if (typeof e == "boolean") return e ? "Yes" : "No";
|
|
10
10
|
if (typeof e == "object")
|