@nivaro/react 0.2.53 → 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 +452 -4
- package/dist/index.js +644 -618
- package/dist/layout-editor.d.ts +252 -2
- 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/FormWhatsNew.js +60 -0
- package/dist/shared/components/ItemEditForm.js +3968 -3618
- 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 +598 -543
- package/dist/shared/components/ReportView.js +578 -543
- package/dist/shared/components/RowPresence.js +91 -0
- package/dist/shared/components/TipLayer.js +27 -27
- 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 +80 -67
- package/dist/shared/components/help-videos/editor/DetailsTab.js +147 -130
- 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 +9 -8
- package/dist/shared/components/item-edit/FieldRenderer.js +248 -245
- package/dist/shared/components/item-edit/FieldRow.js +382 -320
- package/dist/shared/components/item-edit/FormHelpVideoButton.js +59 -0
- package/dist/shared/components/item-edit/GroupSection.js +786 -639
- package/dist/shared/components/item-edit/HeaderTools.js +59 -56
- package/dist/shared/components/item-edit/InlineTableField.js +3 -1
- package/dist/shared/components/item-edit/LayoutContentBlock.js +47 -24
- 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 +94 -0
- 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 +65 -0
- package/dist/shared/components/layout-editor/AddPanel.js +226 -151
- package/dist/shared/components/layout-editor/ArrangeButton.js +34 -0
- package/dist/shared/components/layout-editor/AutoArrange.js +86 -0
- package/dist/shared/components/layout-editor/CanvasCompare.js +79 -0
- package/dist/shared/components/layout-editor/ChangeNote.js +147 -0
- package/dist/shared/components/layout-editor/CollabParts.js +175 -0
- package/dist/shared/components/layout-editor/DesignNode.js +311 -116
- package/dist/shared/components/layout-editor/EditorCanvas.js +30 -26
- package/dist/shared/components/layout-editor/EditorTopBar.js +463 -175
- package/dist/shared/components/layout-editor/FindReplace.js +188 -0
- package/dist/shared/components/layout-editor/FormMapButton.js +141 -0
- package/dist/shared/components/layout-editor/HistoryPanel.js +250 -109
- package/dist/shared/components/layout-editor/LayoutEditor.js +1196 -305
- package/dist/shared/components/layout-editor/LayoutsRail.js +94 -67
- package/dist/shared/components/layout-editor/NoteMarker.js +38 -0
- package/dist/shared/components/layout-editor/PlacementsTable.js +187 -0
- package/dist/shared/components/layout-editor/RestorePiece.js +143 -0
- package/dist/shared/components/layout-editor/ScheduleChange.js +106 -0
- package/dist/shared/components/layout-editor/SessionHistory.js +84 -0
- package/dist/shared/components/layout-editor/StagedChip.js +22 -0
- package/dist/shared/components/layout-editor/StructureMenu.js +464 -0
- package/dist/shared/components/layout-editor/UnsavedConfirm.js +103 -0
- package/dist/shared/components/layout-editor/ai/AiToolsButton.js +625 -0
- package/dist/shared/components/layout-editor/ai/ChangeCheck.js +153 -0
- package/dist/shared/components/layout-editor/ai/ai-tools-api.js +80 -0
- package/dist/shared/components/layout-editor/ai/assist-ops.js +38 -0
- package/dist/shared/components/layout-editor/ai/autofill-ops.js +73 -0
- package/dist/shared/components/layout-editor/ai/canvas-capture.js +41 -0
- package/dist/shared/components/layout-editor/ai-forms/AiComposer.js +271 -0
- package/dist/shared/components/layout-editor/ai-forms/AiFormsButton.js +182 -0
- package/dist/shared/components/layout-editor/ai-forms/MeaningSuggestions.js +109 -0
- package/dist/shared/components/layout-editor/ai-forms/SlimPanel.js +170 -0
- package/dist/shared/components/layout-editor/ai-forms/ai-forms-api.js +40 -0
- package/dist/shared/components/layout-editor/ai-forms/pending.js +25 -0
- package/dist/shared/components/layout-editor/ai-forms/plan.js +263 -0
- package/dist/shared/components/layout-editor/ai-rules/AiAskPopover.js +160 -0
- package/dist/shared/components/layout-editor/ai-rules/CascadeWriter.js +175 -0
- package/dist/shared/components/layout-editor/ai-rules/FieldRuleWriter.js +97 -0
- package/dist/shared/components/layout-editor/ai-rules/RuleWriter.js +94 -0
- package/dist/shared/components/layout-editor/ai-rules/ValidationSuggest.js +153 -0
- package/dist/shared/components/layout-editor/ai-rules/api.js +6 -0
- package/dist/shared/components/layout-editor/ai-text/AiTextTools.js +383 -0
- package/dist/shared/components/layout-editor/ai-text/text-ops.js +125 -0
- package/dist/shared/components/layout-editor/assist/AskPanel.js +278 -0
- package/dist/shared/components/layout-editor/assist/ExplainDiff.js +93 -0
- package/dist/shared/components/layout-editor/assist/ProposalsButton.js +150 -0
- package/dist/shared/components/layout-editor/assist/assist-api.js +63 -0
- package/dist/shared/components/layout-editor/assist/jump.js +142 -0
- package/dist/shared/components/layout-editor/assist/settings-index.js +118 -0
- package/dist/shared/components/layout-editor/auto-arrange.js +101 -0
- package/dist/shared/components/layout-editor/bulk/BulkChangesButton.js +221 -0
- package/dist/shared/components/layout-editor/bulk/BulkRun.js +237 -0
- package/dist/shared/components/layout-editor/bulk/MacrosPanel.js +230 -0
- package/dist/shared/components/layout-editor/bulk/bulk-api.js +65 -0
- package/dist/shared/components/layout-editor/bulk/field-labels.js +22 -0
- package/dist/shared/components/layout-editor/bulk/macro-record.js +142 -0
- package/dist/shared/components/layout-editor/bulk/useMacroRecorder.js +65 -0
- package/dist/shared/components/layout-editor/bundle-to-active.js +1 -0
- package/dist/shared/components/layout-editor/canvas-diff.js +157 -0
- package/dist/shared/components/layout-editor/collab/FormFollowShare.js +388 -0
- package/dist/shared/components/layout-editor/collab/collab-api.js +80 -0
- package/dist/shared/components/layout-editor/commands/CommandPalette.js +221 -0
- package/dist/shared/components/layout-editor/commands/intents.js +214 -0
- package/dist/shared/components/layout-editor/commands/parse.js +242 -0
- package/dist/shared/components/layout-editor/design-context.js +26 -6
- package/dist/shared/components/layout-editor/dnd/LayoutDndProvider.js +181 -164
- package/dist/shared/components/layout-editor/dnd/collision.js +25 -23
- package/dist/shared/components/layout-editor/dnd/node.js +69 -57
- package/dist/shared/components/layout-editor/dnd/rail-drop.js +56 -0
- package/dist/shared/components/layout-editor/draft-recovery.js +131 -0
- package/dist/shared/components/layout-editor/editor-notes.js +78 -0
- package/dist/shared/components/layout-editor/editors/swap-config.js +1 -0
- 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/explain/CanvasRules.js +142 -0
- package/dist/shared/components/layout-editor/explain/default-ghosts.js +81 -0
- package/dist/shared/components/layout-editor/explain/driver-hover.js +62 -0
- package/dist/shared/components/layout-editor/explain/field-sources.js +246 -0
- package/dist/shared/components/layout-editor/explain/rule-graph.js +215 -0
- package/dist/shared/components/layout-editor/explain/use-explain.js +132 -0
- package/dist/shared/components/layout-editor/field-zones.js +116 -0
- package/dist/shared/components/layout-editor/form-map.js +138 -0
- package/dist/shared/components/layout-editor/grid-guides.js +142 -0
- package/dist/shared/components/layout-editor/history-api.js +87 -0
- package/dist/shared/components/layout-editor/inheritance.js +55 -0
- package/dist/shared/components/layout-editor/inspect/inspect-api.js +66 -0
- package/dist/shared/components/layout-editor/inspect/picker-preview.js +48 -0
- package/dist/shared/components/layout-editor/inspect/width-fit.js +87 -0
- package/dist/shared/components/layout-editor/inspector/AiFillSetting.js +85 -0
- package/dist/shared/components/layout-editor/inspector/BehaviourSettings.js +402 -0
- package/dist/shared/components/layout-editor/inspector/Breadcrumb.js +36 -0
- package/dist/shared/components/layout-editor/inspector/BulkInspector.js +179 -0
- package/dist/shared/components/layout-editor/inspector/ColumnFit.js +112 -0
- package/dist/shared/components/layout-editor/inspector/GroupInspector.js +291 -141
- package/dist/shared/components/layout-editor/inspector/HelpTab.js +174 -0
- package/dist/shared/components/layout-editor/inspector/Inspector.js +282 -180
- package/dist/shared/components/layout-editor/inspector/LookTab.js +166 -109
- package/dist/shared/components/layout-editor/inspector/OverrideNotice.js +61 -0
- package/dist/shared/components/layout-editor/inspector/PickerMisses.js +129 -0
- package/dist/shared/components/layout-editor/inspector/PickerPreview.js +134 -0
- package/dist/shared/components/layout-editor/inspector/PickerTab.js +146 -118
- package/dist/shared/components/layout-editor/inspector/RulesTab.js +162 -111
- package/dist/shared/components/layout-editor/inspector/Translations.js +156 -0
- package/dist/shared/components/layout-editor/inspector/kit.js +71 -70
- package/dist/shared/components/layout-editor/inspector/tab-request.js +21 -0
- package/dist/shared/components/layout-editor/is-typing.js +9 -0
- package/dist/shared/components/layout-editor/keyboard-move.js +66 -0
- package/dist/shared/components/layout-editor/lint/LintPanel.js +190 -0
- package/dist/shared/components/layout-editor/lint/lint-api.js +52 -0
- package/dist/shared/components/layout-editor/load-error.js +37 -0
- package/dist/shared/components/layout-editor/matrix/FieldStateMatrix.js +305 -0
- package/dist/shared/components/layout-editor/matrix/MatrixGrid.js +181 -0
- package/dist/shared/components/layout-editor/matrix/RoleSectionMatrix.js +147 -0
- package/dist/shared/components/layout-editor/matrix/matrix-api.js +48 -0
- package/dist/shared/components/layout-editor/matrix/role-matrix.js +36 -0
- package/dist/shared/components/layout-editor/matrix/state-matrix.js +145 -0
- package/dist/shared/components/layout-editor/nav/FindPanel.js +109 -0
- package/dist/shared/components/layout-editor/nav/NavTools.js +114 -0
- package/dist/shared/components/layout-editor/nav/OutlinePanel.js +228 -0
- package/dist/shared/components/layout-editor/nav/ShortcutSheet.js +31 -0
- package/dist/shared/components/layout-editor/nav/find.js +20 -0
- package/dist/shared/components/layout-editor/nav/tree.js +142 -0
- package/dist/shared/components/layout-editor/nav/useEditorNav.js +101 -0
- package/dist/shared/components/layout-editor/nav/view-prefs.js +34 -0
- package/dist/shared/components/layout-editor/ops/ChangeRequestsPanel.js +143 -0
- package/dist/shared/components/layout-editor/ops/DependencyDiagram.js +179 -0
- package/dist/shared/components/layout-editor/ops/LayoutOpsBlocks.js +92 -0
- package/dist/shared/components/layout-editor/ops/PromotePanel.js +287 -0
- package/dist/shared/components/layout-editor/ops/ops-api.js +122 -0
- 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/OverviewActions.js +15 -3
- package/dist/shared/components/layout-editor/overview/describe-conditions.js +24 -14
- package/dist/shared/components/layout-editor/overview/overview-api.js +105 -88
- package/dist/shared/components/layout-editor/overview/purpose.js +15 -13
- package/dist/shared/components/layout-editor/panel-style.js +8 -7
- package/dist/shared/components/layout-editor/parity-keys.json.js +4 -0
- package/dist/shared/components/layout-editor/pin.js +25 -0
- package/dist/shared/components/layout-editor/presence.js +111 -0
- package/dist/shared/components/layout-editor/preview/PreviewModes.js +224 -0
- package/dist/shared/components/layout-editor/preview/PreviewPanes.js +262 -0
- package/dist/shared/components/layout-editor/preview/preview-api.js +57 -0
- package/dist/shared/components/layout-editor/preview/preview-model.js +157 -0
- package/dist/shared/components/layout-editor/restore-piece.js +192 -0
- package/dist/shared/components/layout-editor/reuse/FieldMapStep.js +70 -0
- package/dist/shared/components/layout-editor/reuse/FormMoreMenu.js +127 -0
- package/dist/shared/components/layout-editor/reuse/LibraryRows.js +150 -0
- package/dist/shared/components/layout-editor/reuse/NewFormStart.js +20 -0
- package/dist/shared/components/layout-editor/reuse/SectionReuseActions.js +291 -0
- package/dist/shared/components/layout-editor/reuse/field-match.js +77 -0
- package/dist/shared/components/layout-editor/reuse/reuse-api.js +73 -0
- package/dist/shared/components/layout-editor/reuse/seed.js +13 -0
- package/dist/shared/components/layout-editor/reuse/useFormFromRecord.js +43 -0
- package/dist/shared/components/layout-editor/reuse/useRailCopy.js +34 -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 +125 -103
- package/dist/shared/components/layout-editor/settings/InheritanceSection.js +1 -1
- package/dist/shared/components/layout-editor/settings/ResolveSettings.js +255 -0
- package/dist/shared/components/layout-editor/settings/ToolsSection.js +215 -105
- package/dist/shared/components/layout-editor/settings/WhoSection.js +139 -100
- package/dist/shared/components/layout-editor/settings/controls.js +8 -8
- package/dist/shared/components/layout-editor/settings/settings-registry.js +142 -21
- package/dist/shared/components/layout-editor/shortcuts.js +88 -0
- package/dist/shared/components/layout-editor/show-when.js +35 -0
- package/dist/shared/components/layout-editor/slot-names.js +4 -3
- package/dist/shared/components/layout-editor/staged-api.js +64 -0
- package/dist/shared/components/layout-editor/structure-ops.js +403 -0
- package/dist/shared/components/layout-editor/testing/CostLimitSetting.js +42 -0
- package/dist/shared/components/layout-editor/testing/TestingPanels.js +556 -0
- package/dist/shared/components/layout-editor/testing/testing-api.js +67 -0
- package/dist/shared/components/layout-editor/testing/testing-model.js +406 -0
- package/dist/shared/components/layout-editor/testing/use-record-check.js +44 -0
- package/dist/shared/components/layout-editor/toolbar-kit.js +242 -0
- package/dist/shared/components/layout-editor/unsaved-marks.js +72 -0
- package/dist/shared/components/layout-editor/usage/AbTestSection.js +355 -0
- package/dist/shared/components/layout-editor/usage/FillChip.js +27 -0
- package/dist/shared/components/layout-editor/usage/UsagePanel.js +232 -0
- 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/usage/suggest-sections.js +55 -0
- package/dist/shared/components/layout-editor/usage/usage-api.js +104 -0
- package/dist/shared/components/layout-editor/useLayoutDraft.js +573 -306
- 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/SuggestFormChange.js +143 -0
- package/dist/shared/components/support/SupportAnalytics.js +171 -0
- package/dist/shared/components/support/SupportView.js +75 -73
- package/dist/shared/lib/ai-fill.js +37 -0
- 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 +133 -0
- package/dist/shared/lib/jobs-tray.js +25 -23
- package/dist/shared/lib/keyset-pager.js +37 -0
- package/dist/shared/lib/layout-i18n.js +66 -0
- package/dist/shared/lib/layout-lint.js +490 -0
- package/dist/shared/lib/layout-ops.js +116 -110
- 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/screenshot.js +54 -28
- package/dist/shared/lib/search-log.js +27 -0
- package/dist/shared/lib/socket-realtime.js +101 -80
- package/dist/shared/lib/visible-when.js +34 -0
- package/dist/shared/lib/worker-socket.js +200 -0
- package/package.json +1 -1
|
@@ -3,88 +3,90 @@ import { MoreHorizontal as R } from "lucide-react";
|
|
|
3
3
|
import { useRef as v, useState as k, useEffect as _ } from "react";
|
|
4
4
|
import { createPortal as C } from "react-dom";
|
|
5
5
|
import { cn as w } from "../../lib/utils.js";
|
|
6
|
-
function B({ children:
|
|
6
|
+
function B({ children: m }) {
|
|
7
7
|
var f, p;
|
|
8
|
-
const
|
|
8
|
+
const r = v(null), h = v(null), [l, o] = k(!1), u = v(!1);
|
|
9
9
|
u.current = l;
|
|
10
|
-
const
|
|
10
|
+
const a = v(0), [t, b] = k(!1);
|
|
11
11
|
if (_(() => {
|
|
12
|
-
var
|
|
13
|
-
const e = (
|
|
12
|
+
var d;
|
|
13
|
+
const e = (d = r.current) == null ? void 0 : d.closest("[data-nvr-header-row]");
|
|
14
14
|
if (!e) return;
|
|
15
15
|
const i = () => {
|
|
16
|
-
u.current ?
|
|
16
|
+
u.current ? a.current > 0 && e.clientWidth > a.current + 32 && o(!1) : e.scrollWidth > e.clientWidth + 2 && (a.current = e.scrollWidth, o(!0), b(!1));
|
|
17
17
|
};
|
|
18
18
|
i();
|
|
19
19
|
const g = new ResizeObserver(i);
|
|
20
20
|
return g.observe(e), () => g.disconnect();
|
|
21
21
|
}), _(() => {
|
|
22
|
-
if (!
|
|
22
|
+
if (!t) return;
|
|
23
23
|
const e = (g) => {
|
|
24
|
-
const
|
|
25
|
-
if (
|
|
24
|
+
const d = g.target;
|
|
25
|
+
if (d.closest("[data-nvr-header-tools-panel]") || d.closest("[data-nvr-header-tools-btn]") || d.closest("[data-nvr-header-menu-panel]") || d.closest("[data-radix-popper-content-wrapper]"))
|
|
26
26
|
return;
|
|
27
|
-
const y =
|
|
28
|
-
y && !y.contains(
|
|
27
|
+
const y = d.closest('[role="dialog"]');
|
|
28
|
+
y && !y.contains(r.current) || b(!1);
|
|
29
29
|
}, i = (g) => {
|
|
30
|
-
g.target.closest("[data-nvr-header-menu-panel] [data-nvr-menu-close]") &&
|
|
30
|
+
g.target.closest("[data-nvr-header-menu-panel] [data-nvr-menu-close]") && b(!1);
|
|
31
31
|
};
|
|
32
32
|
return window.addEventListener("mousedown", e, !0), window.addEventListener("click", i), () => {
|
|
33
33
|
window.removeEventListener("mousedown", e, !0), window.removeEventListener("click", i);
|
|
34
34
|
};
|
|
35
|
-
}, [
|
|
36
|
-
return /* @__PURE__ */ c("div", { ref:
|
|
37
|
-
const s =
|
|
38
|
-
return /* @__PURE__ */ x("div", { ref:
|
|
35
|
+
}, [t]), !l)
|
|
36
|
+
return /* @__PURE__ */ c("div", { ref: r, className: "contents", children: m });
|
|
37
|
+
const s = t ? (f = h.current) == null ? void 0 : f.getBoundingClientRect() : void 0, n = ((p = h.current) == null ? void 0 : p.closest('[role="dialog"]')) ?? document.body;
|
|
38
|
+
return /* @__PURE__ */ x("div", { ref: r, className: "flex shrink-0 items-center", children: [
|
|
39
39
|
/* @__PURE__ */ c(
|
|
40
40
|
"button",
|
|
41
41
|
{
|
|
42
42
|
ref: h,
|
|
43
43
|
type: "button",
|
|
44
44
|
"data-nvr-header-tools-btn": !0,
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
"aria-expanded": t,
|
|
46
|
+
"aria-label": "More tools",
|
|
47
|
+
"data-tip": "More tools",
|
|
48
|
+
onClick: () => b((e) => !e),
|
|
47
49
|
className: w(
|
|
48
|
-
"inline-flex h-9 items-center gap-1.5 rounded-md border border-input bg-background px-3 text-sm font-medium shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
49
|
-
|
|
50
|
+
"inline-flex h-9 items-center gap-1.5 rounded-md border border-input bg-background px-3 text-sm font-medium shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground dark:bg-transparent dark:hover:bg-accent",
|
|
51
|
+
t && "bg-accent text-accent-foreground dark:bg-accent"
|
|
50
52
|
),
|
|
51
53
|
children: /* @__PURE__ */ c(R, { className: "h-4 w-4" })
|
|
52
54
|
}
|
|
53
55
|
),
|
|
54
|
-
|
|
56
|
+
t && s && C(
|
|
55
57
|
/* @__PURE__ */ c(
|
|
56
58
|
"div",
|
|
57
59
|
{
|
|
58
60
|
"data-nvr-header-tools-panel": !0,
|
|
59
|
-
style:
|
|
61
|
+
style: n === document.body ? {
|
|
60
62
|
position: "fixed",
|
|
61
63
|
top: s.bottom + 6,
|
|
62
64
|
right: Math.max(8, window.innerWidth - s.right),
|
|
63
65
|
zIndex: 110
|
|
64
66
|
} : {
|
|
65
67
|
position: "absolute",
|
|
66
|
-
top: s.bottom -
|
|
67
|
-
right: Math.max(8,
|
|
68
|
+
top: s.bottom - n.getBoundingClientRect().top + 6,
|
|
69
|
+
right: Math.max(8, n.getBoundingClientRect().right - s.right),
|
|
68
70
|
zIndex: 110
|
|
69
71
|
},
|
|
70
72
|
className: "flex max-w-[440px] flex-wrap items-center justify-end gap-1.5 rounded-lg border border-slate-200 bg-white p-2 shadow-xl dark:border-border dark:bg-card",
|
|
71
|
-
children:
|
|
73
|
+
children: m
|
|
72
74
|
}
|
|
73
75
|
),
|
|
74
|
-
|
|
76
|
+
n
|
|
75
77
|
)
|
|
76
78
|
] });
|
|
77
79
|
}
|
|
78
80
|
function W({
|
|
79
|
-
children:
|
|
80
|
-
label:
|
|
81
|
+
children: m,
|
|
82
|
+
label: r = "More",
|
|
81
83
|
className: h
|
|
82
84
|
}) {
|
|
83
|
-
var
|
|
84
|
-
const l = v(null), [
|
|
85
|
+
var b, s;
|
|
86
|
+
const l = v(null), [o, u] = k(!1);
|
|
85
87
|
_(() => {
|
|
86
|
-
if (!
|
|
87
|
-
const
|
|
88
|
+
if (!o) return;
|
|
89
|
+
const n = (p) => {
|
|
88
90
|
var i;
|
|
89
91
|
const e = p.target;
|
|
90
92
|
e.closest("[data-nvr-header-menu-panel]") || e.closest("[data-nvr-header-menu-btn]") || e.closest("[data-radix-popper-content-wrapper]") || // A dialog opened from a menu row, not one hosting the form.
|
|
@@ -92,11 +94,11 @@ function W({
|
|
|
92
94
|
}, f = (p) => {
|
|
93
95
|
p.key === "Escape" && u(!1);
|
|
94
96
|
};
|
|
95
|
-
return window.addEventListener("mousedown",
|
|
96
|
-
window.removeEventListener("mousedown",
|
|
97
|
+
return window.addEventListener("mousedown", n, !0), window.addEventListener("keydown", f), () => {
|
|
98
|
+
window.removeEventListener("mousedown", n, !0), window.removeEventListener("keydown", f);
|
|
97
99
|
};
|
|
98
|
-
}, [
|
|
99
|
-
const
|
|
100
|
+
}, [o]);
|
|
101
|
+
const a = o ? (b = l.current) == null ? void 0 : b.getBoundingClientRect() : void 0, t = ((s = l.current) == null ? void 0 : s.closest('[role="dialog"]')) ?? document.body;
|
|
100
102
|
return /* @__PURE__ */ x("div", { className: w("relative shrink-0", h), children: [
|
|
101
103
|
/* @__PURE__ */ x(
|
|
102
104
|
"button",
|
|
@@ -105,37 +107,38 @@ function W({
|
|
|
105
107
|
type: "button",
|
|
106
108
|
"data-nvr-header-menu-btn": !0,
|
|
107
109
|
"aria-haspopup": "menu",
|
|
108
|
-
"aria-expanded":
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
"aria-expanded": o,
|
|
111
|
+
"aria-label": r,
|
|
112
|
+
"data-tip": "More actions",
|
|
113
|
+
onClick: () => u((n) => !n),
|
|
111
114
|
className: w(
|
|
112
|
-
"inline-flex h-9 items-center gap-1 rounded-md border border-input bg-background px-2.5 text-sm font-medium shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
113
|
-
|
|
115
|
+
"inline-flex h-9 items-center gap-1 rounded-md border border-input bg-background px-2.5 text-sm font-medium shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground dark:bg-transparent dark:hover:bg-accent",
|
|
116
|
+
o && "bg-accent text-accent-foreground dark:bg-accent"
|
|
114
117
|
),
|
|
115
118
|
children: [
|
|
116
119
|
/* @__PURE__ */ c(R, { className: "h-4 w-4" }),
|
|
117
|
-
/* @__PURE__ */ c("span", { className: "hidden lg:inline", children:
|
|
120
|
+
/* @__PURE__ */ c("span", { className: "hidden lg:inline", children: r })
|
|
118
121
|
]
|
|
119
122
|
}
|
|
120
123
|
),
|
|
121
|
-
|
|
124
|
+
o && a && C(
|
|
122
125
|
/* @__PURE__ */ c(
|
|
123
126
|
"div",
|
|
124
127
|
{
|
|
125
128
|
"data-nvr-header-menu-panel": !0,
|
|
126
129
|
role: "menu",
|
|
127
|
-
onClick: (
|
|
128
|
-
|
|
130
|
+
onClick: (n) => {
|
|
131
|
+
n.target.closest("[data-nvr-menu-close]") && u(!1);
|
|
129
132
|
},
|
|
130
|
-
style:
|
|
133
|
+
style: t === document.body ? {
|
|
131
134
|
position: "fixed",
|
|
132
|
-
top:
|
|
133
|
-
right: Math.max(8, window.innerWidth -
|
|
135
|
+
top: a.bottom + 6,
|
|
136
|
+
right: Math.max(8, window.innerWidth - a.right),
|
|
134
137
|
zIndex: 110
|
|
135
138
|
} : {
|
|
136
139
|
position: "absolute",
|
|
137
|
-
top:
|
|
138
|
-
right: Math.max(8,
|
|
140
|
+
top: a.bottom - t.getBoundingClientRect().top + 6,
|
|
141
|
+
right: Math.max(8, t.getBoundingClientRect().right - a.right),
|
|
139
142
|
zIndex: 110
|
|
140
143
|
},
|
|
141
144
|
className: w(
|
|
@@ -144,16 +147,16 @@ function W({
|
|
|
144
147
|
"[&_button:hover]:bg-accent [&_button:hover]:text-accent-foreground [&_button_svg]:h-3.5 [&_button_svg]:w-3.5 [&_button_svg]:shrink-0 [&_button_svg]:text-slate-500",
|
|
145
148
|
"[&>[data-nvr-menu-divider]]:my-1 [&>[data-nvr-menu-divider]]:h-px [&>[data-nvr-menu-divider]]:bg-slate-100 dark:[&>[data-nvr-menu-divider]]:bg-border"
|
|
146
149
|
),
|
|
147
|
-
children:
|
|
150
|
+
children: m
|
|
148
151
|
}
|
|
149
152
|
),
|
|
150
|
-
|
|
153
|
+
t
|
|
151
154
|
)
|
|
152
155
|
] });
|
|
153
156
|
}
|
|
154
157
|
function j({
|
|
155
|
-
children:
|
|
156
|
-
className:
|
|
158
|
+
children: m,
|
|
159
|
+
className: r
|
|
157
160
|
}) {
|
|
158
161
|
return /* @__PURE__ */ c(
|
|
159
162
|
"div",
|
|
@@ -161,9 +164,9 @@ function j({
|
|
|
161
164
|
"data-nvr-header-tool-group": !0,
|
|
162
165
|
className: w(
|
|
163
166
|
"inline-flex h-9 shrink-0 items-center rounded-md border border-input bg-background px-0.5 shadow-sm [&>*+*]:border-l [&>*+*]:border-input/70",
|
|
164
|
-
|
|
167
|
+
r
|
|
165
168
|
),
|
|
166
|
-
children:
|
|
169
|
+
children: m
|
|
167
170
|
}
|
|
168
171
|
);
|
|
169
172
|
}
|
|
@@ -2633,7 +2633,9 @@ function qd({
|
|
|
2633
2633
|
te(`/items/${t}`, {
|
|
2634
2634
|
filter: JSON.stringify({ id: { _in: i } }),
|
|
2635
2635
|
limit: i.length,
|
|
2636
|
-
...d ? { fields: d } : {}
|
|
2636
|
+
...d ? { fields: d } : {},
|
|
2637
|
+
// #2444 — display labels: may come from the server's label row cache.
|
|
2638
|
+
labels: 1
|
|
2637
2639
|
})
|
|
2638
2640
|
).then((l) => l.data ?? []);
|
|
2639
2641
|
e[t] = {};
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { AlertTriangle as i, Info as o } from "lucide-react";
|
|
3
3
|
function m(e) {
|
|
4
|
-
const
|
|
5
|
-
let
|
|
6
|
-
for (const
|
|
7
|
-
const d =
|
|
8
|
-
d >
|
|
9
|
-
/* @__PURE__ */ t("strong", { className: "font-semibold", children:
|
|
10
|
-
) :
|
|
4
|
+
const a = [], n = /\*\*([^*]+)\*\*|\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g;
|
|
5
|
+
let r = 0, l = 0;
|
|
6
|
+
for (const s of e.matchAll(n)) {
|
|
7
|
+
const d = s.index ?? 0;
|
|
8
|
+
d > r && a.push(/* @__PURE__ */ t("span", { children: e.slice(r, d) }, l++)), s[1] !== void 0 ? a.push(
|
|
9
|
+
/* @__PURE__ */ t("strong", { className: "font-semibold", children: s[1] }, l++)
|
|
10
|
+
) : a.push(
|
|
11
11
|
/* @__PURE__ */ t(
|
|
12
12
|
"a",
|
|
13
13
|
{
|
|
14
|
-
href:
|
|
14
|
+
href: s[3],
|
|
15
15
|
target: "_blank",
|
|
16
16
|
rel: "noreferrer",
|
|
17
17
|
className: "text-nvr-navy underline underline-offset-2 dark:text-nvr-cyan",
|
|
18
|
-
children:
|
|
18
|
+
children: s[2]
|
|
19
19
|
},
|
|
20
|
-
|
|
20
|
+
l++
|
|
21
21
|
)
|
|
22
|
-
),
|
|
22
|
+
), r = d + s[0].length;
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return r < e.length && a.push(/* @__PURE__ */ t("span", { children: e.slice(r) }, l++)), a;
|
|
25
25
|
}
|
|
26
26
|
function h({ group: e }) {
|
|
27
|
-
const
|
|
28
|
-
if (
|
|
27
|
+
const a = e.content_tone ?? "info", n = (e.content ?? "").trim();
|
|
28
|
+
if (a === "divider")
|
|
29
29
|
return /* @__PURE__ */ c("div", { className: "flex items-center gap-3 py-1", "data-content-block": e.key, children: [
|
|
30
30
|
/* @__PURE__ */ t("span", { className: "h-px flex-1 bg-slate-200 dark:bg-border" }),
|
|
31
|
-
(
|
|
31
|
+
(n || e.label) && /* @__PURE__ */ t("span", { className: "text-[11px] font-medium uppercase tracking-wide text-slate-400", children: n || e.label }),
|
|
32
32
|
/* @__PURE__ */ t("span", { className: "h-px flex-1 bg-slate-200 dark:bg-border" })
|
|
33
33
|
] });
|
|
34
|
-
if (!
|
|
35
|
-
const
|
|
34
|
+
if (!n) return null;
|
|
35
|
+
const r = n.split(/\n{2,}/), l = a === "warn";
|
|
36
36
|
return /* @__PURE__ */ c(
|
|
37
37
|
"div",
|
|
38
38
|
{
|
|
39
39
|
"data-content-block": e.key,
|
|
40
|
-
className: `flex gap-2.5 rounded-lg border px-3.5 py-2.5 ${
|
|
40
|
+
className: `flex gap-2.5 rounded-lg border px-3.5 py-2.5 ${l ? "border-amber-200 bg-amber-50/70 dark:border-amber-500/30 dark:bg-amber-500/10" : "border-slate-200 bg-slate-50/70 dark:border-border dark:bg-muted/40"}`,
|
|
41
41
|
children: [
|
|
42
|
-
|
|
42
|
+
l ? /* @__PURE__ */ t(i, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-amber-500" }) : /* @__PURE__ */ t(o, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-slate-400" }),
|
|
43
43
|
/* @__PURE__ */ c("div", { className: "min-w-0 space-y-1.5", children: [
|
|
44
44
|
e.label && e.label !== e.key && /* @__PURE__ */ t(
|
|
45
45
|
"p",
|
|
46
46
|
{
|
|
47
|
-
className: `text-[12.5px] font-semibold ${
|
|
47
|
+
className: `text-[12.5px] font-semibold ${l ? "text-amber-800 dark:text-amber-300" : "text-slate-800 dark:text-foreground"}`,
|
|
48
48
|
children: e.label
|
|
49
49
|
}
|
|
50
50
|
),
|
|
51
|
-
|
|
51
|
+
r.map((s, d) => /* @__PURE__ */ t(
|
|
52
52
|
"p",
|
|
53
53
|
{
|
|
54
|
-
className: `whitespace-pre-wrap text-[12.5px] leading-relaxed ${
|
|
55
|
-
children: m(
|
|
54
|
+
className: `whitespace-pre-wrap text-[12.5px] leading-relaxed ${l ? "text-amber-700 dark:text-amber-300/90" : "text-slate-600 dark:text-muted-foreground"}`,
|
|
55
|
+
children: m(s)
|
|
56
56
|
},
|
|
57
57
|
d
|
|
58
58
|
))
|
|
@@ -61,6 +61,29 @@ function h({ group: e }) {
|
|
|
61
61
|
}
|
|
62
62
|
);
|
|
63
63
|
}
|
|
64
|
+
function k({ group: e, className: a }) {
|
|
65
|
+
const n = (e.content ?? "").trim();
|
|
66
|
+
if (!n || e.type === "content" || e.content_tone === "divider") return null;
|
|
67
|
+
const r = e.content_tone === "warn";
|
|
68
|
+
return /* @__PURE__ */ c(
|
|
69
|
+
"div",
|
|
70
|
+
{
|
|
71
|
+
"data-section-intro": e.key,
|
|
72
|
+
className: `flex gap-2 rounded-lg border px-3 py-2 ${r ? "border-amber-200 bg-amber-50/70 dark:border-amber-500/30 dark:bg-amber-500/10" : "border-slate-200 bg-slate-50/70 dark:border-border dark:bg-muted/40"} ${a ?? ""}`,
|
|
73
|
+
children: [
|
|
74
|
+
r ? /* @__PURE__ */ t(i, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-amber-500" }) : /* @__PURE__ */ t(o, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-slate-400" }),
|
|
75
|
+
/* @__PURE__ */ t(
|
|
76
|
+
"p",
|
|
77
|
+
{
|
|
78
|
+
className: `min-w-0 whitespace-pre-wrap text-[12.5px] leading-relaxed ${r ? "text-amber-700 dark:text-amber-300/90" : "text-slate-600 dark:text-muted-foreground"}`,
|
|
79
|
+
children: m(n)
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
}
|
|
64
86
|
export {
|
|
65
|
-
h as LayoutContentBlock
|
|
87
|
+
h as LayoutContentBlock,
|
|
88
|
+
k as SectionIntro
|
|
66
89
|
};
|