@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
package/dist/index.d.ts
CHANGED
|
@@ -575,6 +575,50 @@ declare interface AvailableBulkAction {
|
|
|
575
575
|
guard?: GuardRule[] | null;
|
|
576
576
|
}
|
|
577
577
|
|
|
578
|
+
declare type BackgroundPhase = 'idle' | 'offer' | 'starting' | 'running' | 'done' | 'error';
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* "Run in background" for slow reads (#2759) — the client half of /api/background-runs.
|
|
582
|
+
*
|
|
583
|
+
* A custom query, report widget, page widget or dashboard widget that is still loading after a
|
|
584
|
+
* moment asks the server how long it usually takes. Known-slow (or still loading after
|
|
585
|
+
* OFFER_ANYWAY_MS) → the page offers to hand it to the server. The server replays the SAME
|
|
586
|
+
* request as the signed-in person on its background pool; the page shows elapsed time against
|
|
587
|
+
* the usual time, the Jobs tray carries the run if they leave, and when it is ready the result
|
|
588
|
+
* drops into the page's own query cache — the normal refetch replaces it as usual.
|
|
589
|
+
*
|
|
590
|
+
* A run is remembered per request in sessionStorage, so coming back to the page (or a remount)
|
|
591
|
+
* picks it up instead of offering again.
|
|
592
|
+
*/
|
|
593
|
+
export declare interface BackgroundRequest {
|
|
594
|
+
method: 'GET' | 'POST';
|
|
595
|
+
/** API path without the /api prefix, e.g. `/custom-queries/pub-health/execute`. */
|
|
596
|
+
url: string;
|
|
597
|
+
body?: unknown;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* The "Run in background" strip for a slow read (#2759). Render it inside the loading state of
|
|
602
|
+
* a custom query, report widget, page widget or dashboard widget; it stays empty until the read
|
|
603
|
+
* has been loading for a moment AND is known to be slow (or has simply been loading a long time),
|
|
604
|
+
* then offers to hand the read to the server. While the server runs it, the strip shows elapsed
|
|
605
|
+
* time against the usual time; when the result is ready it fills the page's own query and the
|
|
606
|
+
* strip goes away. Every state is inline — no dialog.
|
|
607
|
+
*/
|
|
608
|
+
export declare function BackgroundRunOffer({ className, ...opts }: UseBackgroundRunOptions & {
|
|
609
|
+
className?: string;
|
|
610
|
+
}): JSX.Element | null;
|
|
611
|
+
|
|
612
|
+
declare interface BackgroundRunView {
|
|
613
|
+
id: string;
|
|
614
|
+
status: 'running' | 'completed' | 'error';
|
|
615
|
+
started_at: string;
|
|
616
|
+
finished_at: string | null;
|
|
617
|
+
expected_ms: number | null;
|
|
618
|
+
error: string | null;
|
|
619
|
+
result_kept: boolean;
|
|
620
|
+
}
|
|
621
|
+
|
|
578
622
|
export declare interface BannerLine {
|
|
579
623
|
api: string;
|
|
580
624
|
tone: 'danger' | 'warning' | 'neutral' | 'positive';
|
|
@@ -882,6 +926,8 @@ export declare interface ChangeReasonChallenge {
|
|
|
882
926
|
field: string;
|
|
883
927
|
value: unknown;
|
|
884
928
|
}>;
|
|
929
|
+
/** #2705: asked by the layout ("Are you sure?") rather than the collection. */
|
|
930
|
+
confirm?: boolean;
|
|
885
931
|
}
|
|
886
932
|
|
|
887
933
|
/**
|
|
@@ -931,6 +977,10 @@ declare interface ChannelMeta {
|
|
|
931
977
|
}>;
|
|
932
978
|
welcome_note?: string | null;
|
|
933
979
|
default_roles?: string[];
|
|
980
|
+
/** Who may use @channel / @here (#2483); null = the owner and admins. */
|
|
981
|
+
mention_policy?: 'owner' | 'members' | 'admins' | null;
|
|
982
|
+
/** Set while the owner has an unanswered idle-archive suggestion (#2485). */
|
|
983
|
+
archive_suggested_at?: string | null;
|
|
934
984
|
}
|
|
935
985
|
|
|
936
986
|
declare interface Chapter {
|
|
@@ -1048,6 +1098,8 @@ export declare interface ChatMessage {
|
|
|
1048
1098
|
reactions?: ChatReaction[];
|
|
1049
1099
|
/** The admin who was masquerading as the sender when it was sent. */
|
|
1050
1100
|
masquerade_admin_name?: string | null;
|
|
1101
|
+
/** The connected app (an AI assistant over MCP) that posted it for the sender (#2492). */
|
|
1102
|
+
via_app?: string | null;
|
|
1051
1103
|
/** Thread reply (#927): the root it answers. Null on the timeline. */
|
|
1052
1104
|
parent_id?: number | null;
|
|
1053
1105
|
/** Quoted message (#928). */
|
|
@@ -1728,6 +1780,8 @@ export declare function createLiveQueryBridge(qc: QueryClient, realtime: Realtim
|
|
|
1728
1780
|
|
|
1729
1781
|
export declare function createSocketRealtime(opts: SocketRealtimeOptions): SocketRealtime;
|
|
1730
1782
|
|
|
1783
|
+
export declare function createWorkerSocket(opts: WorkerSocketOptions): WorkerSocket;
|
|
1784
|
+
|
|
1731
1785
|
export declare function CronBuilder({ value, onChange, disabled }: {
|
|
1732
1786
|
value: string;
|
|
1733
1787
|
onChange: (cron: string) => void;
|
|
@@ -1984,6 +2038,42 @@ declare interface DesignDnd {
|
|
|
1984
2038
|
dropIndicator?(t: DesignTarget): CSSProperties | null;
|
|
1985
2039
|
}
|
|
1986
2040
|
|
|
2041
|
+
declare interface DesignMark {
|
|
2042
|
+
text: string;
|
|
2043
|
+
tone: 'violet' | 'emerald' | 'amber' | 'slate';
|
|
2044
|
+
/** Instant tooltip (data-tip) with the detail. */
|
|
2045
|
+
tip?: string;
|
|
2046
|
+
highlight?: boolean;
|
|
2047
|
+
/** A small icon before the text (a pinned section's pin, #2628). */
|
|
2048
|
+
icon?: 'pin';
|
|
2049
|
+
/**
|
|
2050
|
+
* Where the tag ranks when a node has more than fit (DesignNode shows two,
|
|
2051
|
+
* then "+n"): `preview` (a preview mode's own tag) ranks with the role
|
|
2052
|
+
* mark, `loop` (a rule loop) next, plain rule and state tags after, `ai`
|
|
2053
|
+
* (an AI finding) last but one, "from <parent>" last. A highlighted tag
|
|
2054
|
+
* without a kind ranks as a loop.
|
|
2055
|
+
*/
|
|
2056
|
+
kind?: 'preview' | 'loop' | 'ai';
|
|
2057
|
+
/** Clickable: opens what the tag explains (the node is selected first). */
|
|
2058
|
+
onClick?: () => void;
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
declare interface DesignOverlay {
|
|
2062
|
+
/** Classes tinting the node (background + ring), light and dark. */
|
|
2063
|
+
className: string;
|
|
2064
|
+
/** Rendered in the node's badge row; clicks reach it (data-design-pass). */
|
|
2065
|
+
chip: ReactNode;
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
declare interface DesignPeer {
|
|
2069
|
+
id: string;
|
|
2070
|
+
name: string;
|
|
2071
|
+
/** Outline classes for the node they selected (light and dark). */
|
|
2072
|
+
outline: string;
|
|
2073
|
+
/** Name tag classes. */
|
|
2074
|
+
chip: string;
|
|
2075
|
+
}
|
|
2076
|
+
|
|
1987
2077
|
declare type DesignTarget = {
|
|
1988
2078
|
kind: 'field';
|
|
1989
2079
|
field: string;
|
|
@@ -2002,6 +2092,12 @@ declare type DesignTarget = {
|
|
|
2002
2092
|
|
|
2003
2093
|
declare type DetailTab = 'calls' | 'submissions' | 'obligations' | 'contracts';
|
|
2004
2094
|
|
|
2095
|
+
declare interface DiffMark {
|
|
2096
|
+
kind: 'added' | 'moved' | 'removed' | 'changed';
|
|
2097
|
+
/** moved: "from Basics"; changed: the settings that differ. */
|
|
2098
|
+
detail?: string;
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2005
2101
|
declare type DigestFrequency = 'instant' | 'daily' | 'weekly';
|
|
2006
2102
|
|
|
2007
2103
|
declare type DimensionCascadeRule = {
|
|
@@ -2253,6 +2349,22 @@ export declare interface DrilldownViewOverride {
|
|
|
2253
2349
|
|
|
2254
2350
|
export declare const DrilldownViewsContext: React_2.Context<Record<string, DrilldownViewOverride>>;
|
|
2255
2351
|
|
|
2352
|
+
/**
|
|
2353
|
+
* Notes on the canvas (#2608): a short note an admin pins to a field or a
|
|
2354
|
+
* section ("Finance asked for this in Q3"). It lives in the layout — a
|
|
2355
|
+
* placement's `overrides.editor_note`, a section's `editor_note` column — so
|
|
2356
|
+
* it saves, undoes and versions like every other layout change, and only the
|
|
2357
|
+
* layout editor ever shows it (record pages get layouts without notes).
|
|
2358
|
+
*/
|
|
2359
|
+
declare interface EditorNote {
|
|
2360
|
+
text: string;
|
|
2361
|
+
/** Who wrote it (user id) and their name when they wrote it. */
|
|
2362
|
+
by: string | null;
|
|
2363
|
+
by_name: string | null;
|
|
2364
|
+
/** ISO time it was written. */
|
|
2365
|
+
at: string;
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2256
2368
|
/**
|
|
2257
2369
|
* The ids a filter surface should PRE-SELECT for a dimension. Restrictions are
|
|
2258
2370
|
* server-enforced regardless, so the seeded selection must reflect them:
|
|
@@ -2465,6 +2577,12 @@ export declare function extractExpressionTokens(src: string): string[];
|
|
|
2465
2577
|
/** Extract the slot key from an assignment field name, or null. */
|
|
2466
2578
|
export declare function extSlotKey(field: string): string | null;
|
|
2467
2579
|
|
|
2580
|
+
declare interface FallbackSocket extends SocketLike {
|
|
2581
|
+
once?(event: string, cb: Listener): unknown;
|
|
2582
|
+
connect?(): unknown;
|
|
2583
|
+
disconnect?(): unknown;
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2468
2586
|
declare type FetchCfg = {
|
|
2469
2587
|
apiBase: string;
|
|
2470
2588
|
authHeaders: Record<string, string>;
|
|
@@ -2514,6 +2632,24 @@ export declare function fieldDrilldownConfig(field: {
|
|
|
2514
2632
|
_overrides?: Record<string, unknown> | null;
|
|
2515
2633
|
}): FieldDrilldownConfig | null;
|
|
2516
2634
|
|
|
2635
|
+
export declare interface FieldFocus {
|
|
2636
|
+
/** field name (or `row:<collection>:<id>` / `cell:<collection>:<row>:<field>`) → who is in it. */
|
|
2637
|
+
editing: Record<string, SignalPerson>;
|
|
2638
|
+
/** Tell the record's other viewers you are in this field. */
|
|
2639
|
+
focus: (field: string) => void;
|
|
2640
|
+
/** …and that you left it. */
|
|
2641
|
+
blur: (field: string) => void;
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
export declare interface FieldFocusOptions {
|
|
2645
|
+
/**
|
|
2646
|
+
* Watch the document for focus moving between `[data-field]` wrappers (what the shared
|
|
2647
|
+
* form renders around every field) and send focus/blur yourself. Off by default: a host
|
|
2648
|
+
* that already relays focus (the admin) must not send it twice.
|
|
2649
|
+
*/
|
|
2650
|
+
capture?: boolean;
|
|
2651
|
+
}
|
|
2652
|
+
|
|
2517
2653
|
declare interface FieldGroup {
|
|
2518
2654
|
/** Content block (#53): type 'content' renders this text instead of fields. */
|
|
2519
2655
|
content?: string | null;
|
|
@@ -2705,6 +2841,12 @@ export declare function focusRecordTarget(target: {
|
|
|
2705
2841
|
rowId?: string;
|
|
2706
2842
|
}): void;
|
|
2707
2843
|
|
|
2844
|
+
/** A press of Expand all or Collapse all; `seq` changes on every press. */
|
|
2845
|
+
declare interface FoldSignal {
|
|
2846
|
+
open: boolean;
|
|
2847
|
+
seq: number;
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2708
2850
|
/** The window event a host's socket layer dispatches on `client:force-refresh`. */
|
|
2709
2851
|
export declare const FORCE_RELOAD_EVENT = "nvr:force-refresh";
|
|
2710
2852
|
|
|
@@ -3263,7 +3405,9 @@ export declare function HelpVideoButton({ collection, item, page, pageLabel, com
|
|
|
3263
3405
|
}): JSX.Element;
|
|
3264
3406
|
|
|
3265
3407
|
export declare type HelpVideoContext = {
|
|
3266
|
-
|
|
3408
|
+
/** field / section (#2615): `key` is the collection, `state_key` the field
|
|
3409
|
+
* name or the section's group key. */
|
|
3410
|
+
kind: 'collection' | 'page' | 'field' | 'section';
|
|
3267
3411
|
key: string;
|
|
3268
3412
|
state_key: string | null;
|
|
3269
3413
|
};
|
|
@@ -4028,6 +4172,12 @@ declare interface InputBinding {
|
|
|
4028
4172
|
binding_value: string;
|
|
4029
4173
|
}
|
|
4030
4174
|
|
|
4175
|
+
/**
|
|
4176
|
+
* Document-level intent listener: resting on (or keyboard-focusing) a same-origin link
|
|
4177
|
+
* preloads its screen's code, and a record link also warms the record. Returns the uninstaller.
|
|
4178
|
+
*/
|
|
4179
|
+
export declare function installIntentPrefetch(opts: IntentPrefetchOptions): () => void;
|
|
4180
|
+
|
|
4031
4181
|
/** Idempotent; a no-op outside a browser. Watches for the rest of the page's life. */
|
|
4032
4182
|
export declare function installReplayTail(): void;
|
|
4033
4183
|
|
|
@@ -4365,6 +4515,17 @@ export declare interface IntegrationSignalView {
|
|
|
4365
4515
|
shown: number;
|
|
4366
4516
|
}
|
|
4367
4517
|
|
|
4518
|
+
declare interface IntentPrefetchOptions {
|
|
4519
|
+
qc: QueryClient;
|
|
4520
|
+
client: NivaroClient | null;
|
|
4521
|
+
/** A link's same-origin path → the record it opens, or null. */
|
|
4522
|
+
matchRecord?: (path: string) => RecordTarget | null;
|
|
4523
|
+
/** Load the code for the screen a same-origin path opens. */
|
|
4524
|
+
preloadRoute?: (path: string) => void;
|
|
4525
|
+
/** Only links inside this element (default: the whole document). */
|
|
4526
|
+
root?: HTMLElement | Document;
|
|
4527
|
+
}
|
|
4528
|
+
|
|
4368
4529
|
/** A title card before the recording (real extra edited time). Blank
|
|
4369
4530
|
* `title` / `subtitle` mean the video's title and the first line of its
|
|
4370
4531
|
* description. */
|
|
@@ -4617,6 +4778,11 @@ declare interface LadderTier {
|
|
|
4617
4778
|
notify: string;
|
|
4618
4779
|
}
|
|
4619
4780
|
|
|
4781
|
+
declare interface LastChange {
|
|
4782
|
+
by: string | null;
|
|
4783
|
+
at: string | null;
|
|
4784
|
+
}
|
|
4785
|
+
|
|
4620
4786
|
/**
|
|
4621
4787
|
* How long a layout save's config:update can still arrive after the save itself: the server's
|
|
4622
4788
|
* per-collection push gap (config-live MIN_GAP_MS, 2 s) plus socket delivery.
|
|
@@ -4637,7 +4803,9 @@ declare interface LayoutAssignment {
|
|
|
4637
4803
|
|
|
4638
4804
|
declare interface LayoutDesign {
|
|
4639
4805
|
selected: DesignTarget | null;
|
|
4640
|
-
onSelect(t: DesignTarget): void;
|
|
4806
|
+
onSelect(t: DesignTarget, opts?: SelectOptions): void;
|
|
4807
|
+
/** Everything selected (several fields after Shift-click); absent = just `selected`. */
|
|
4808
|
+
selection?: DesignTarget[];
|
|
4641
4809
|
showHidden: boolean;
|
|
4642
4810
|
/** Parent layout name when the node comes from an inherited layout, else null. */
|
|
4643
4811
|
inheritedFrom(t: DesignTarget): string | null;
|
|
@@ -4645,6 +4813,33 @@ declare interface LayoutDesign {
|
|
|
4645
4813
|
/** "Preview as role": what that role's field permissions do to the node
|
|
4646
4814
|
* (hidden: faint with a tag, still selectable; read-only: a lock tag). */
|
|
4647
4815
|
roleMark?(t: DesignTarget): RoleMark | null;
|
|
4816
|
+
/** Preview modes' tags on a node (role differences, what-if changes, state
|
|
4817
|
+
* requirements). `highlight` rings the node so differences stand out. */
|
|
4818
|
+
marks?(t: DesignTarget): DesignMark[];
|
|
4819
|
+
/** "Who sees this field" overlay: a tint and a clickable chip on the node. */
|
|
4820
|
+
overlay?(t: DesignTarget): DesignOverlay | null;
|
|
4821
|
+
/** How often a field is filled across the collection's records (#2588); null = unknown or off. */
|
|
4822
|
+
fillRate?(field: string): number | null;
|
|
4823
|
+
/** #2608: the editor note pinned to the node, shown as a marker on the canvas. */
|
|
4824
|
+
note?(t: DesignTarget): EditorNote | null;
|
|
4825
|
+
/** Expand all / Collapse all (#2627): every section folds open or shut;
|
|
4826
|
+
* open also lays every step and tab out one under another. */
|
|
4827
|
+
fold?: FoldSignal | null;
|
|
4828
|
+
/** Find / outline / breadcrumb (#2620): open the step, tab or section holding this. */
|
|
4829
|
+
reveal?: RevealSignal | null;
|
|
4830
|
+
/** An unsaved change touched this node (#2629): a dot until it is saved. */
|
|
4831
|
+
unsaved?(t: DesignTarget): boolean;
|
|
4832
|
+
/** Other people in the editor who have this node selected (#2651). */
|
|
4833
|
+
peers?(t: DesignTarget): DesignPeer[];
|
|
4834
|
+
/** "Show on canvas" (#2591): what a comparison says happened to the node.
|
|
4835
|
+
* 'removed' nodes are ghosts put back for the comparison: faint, never dragged or selected. */
|
|
4836
|
+
diffMark?(t: DesignTarget): DiffMark | null;
|
|
4837
|
+
/** Sections: who last changed it and when (#2611), from version history. */
|
|
4838
|
+
lastChange?(t: DesignTarget): LastChange | null;
|
|
4839
|
+
/** A new record's starting value for the field, as grey placeholder text (#2633). */
|
|
4840
|
+
ghost?(field: string): string | null;
|
|
4841
|
+
/** #2701: the width handle on a selected field set its width (12, 6, 4 or 3 columns). */
|
|
4842
|
+
resizeWidth?(t: DesignTarget, span: number): void;
|
|
4648
4843
|
}
|
|
4649
4844
|
|
|
4650
4845
|
/**
|
|
@@ -4657,6 +4852,8 @@ declare interface LayoutDesignProp {
|
|
|
4657
4852
|
/** Preview record (its values, steps and rules); null/absent = no values. */
|
|
4658
4853
|
record?: Record<string, unknown> | null;
|
|
4659
4854
|
context: LayoutDesign;
|
|
4855
|
+
/** Preview the record as if it were in this pipeline state (state key). */
|
|
4856
|
+
stateKey?: string | null;
|
|
4660
4857
|
/** Something on the canvas tried to write and was refused (tests, dev tooling). */
|
|
4661
4858
|
onRefusedWrite?: (w: RefusedWrite) => void;
|
|
4662
4859
|
}
|
|
@@ -4730,6 +4927,8 @@ declare interface LayoutGroup {
|
|
|
4730
4927
|
visibility_mode?: string | null;
|
|
4731
4928
|
/** Migration 311 — read-board width: full | half | third | null (auto). */
|
|
4732
4929
|
read_width?: string | null;
|
|
4930
|
+
/** Rows of fields and the empty-section text ride here (lib/form-structure.ts). */
|
|
4931
|
+
swap_config?: string | null;
|
|
4733
4932
|
}
|
|
4734
4933
|
|
|
4735
4934
|
export declare type LayoutItem = FormGroupDescriptor | '__ungrouped__';
|
|
@@ -4758,6 +4957,8 @@ declare interface LayoutMeta {
|
|
|
4758
4957
|
default_values?: Record<string, unknown> | null;
|
|
4759
4958
|
/** Quick picker: relation fields walked one step at a time on create. */
|
|
4760
4959
|
quick_picker?: string[] | null;
|
|
4960
|
+
/** Entry ergonomics (#2702-#2728): keyboard, tab order, mode, badge — see lib/entry-config. */
|
|
4961
|
+
entry_config?: Record<string, unknown> | null;
|
|
4761
4962
|
}
|
|
4762
4963
|
|
|
4763
4964
|
declare interface LayoutSlotHandle {
|
|
@@ -4832,6 +5033,8 @@ export declare function LearningPathCard({ className }: {
|
|
|
4832
5033
|
className?: string;
|
|
4833
5034
|
}): JSX.Element;
|
|
4834
5035
|
|
|
5036
|
+
declare type Listener = (...args: any[]) => void;
|
|
5037
|
+
|
|
4835
5038
|
export declare function listFieldInterfaces(): string[];
|
|
4836
5039
|
|
|
4837
5040
|
/**
|
|
@@ -6268,6 +6471,13 @@ declare interface PersonRef {
|
|
|
6268
6471
|
ooo_end?: string | null;
|
|
6269
6472
|
}
|
|
6270
6473
|
|
|
6474
|
+
/** Where a picker sits on a record form: enough for the server to count a miss per placement. */
|
|
6475
|
+
declare interface PickerMissPlacement {
|
|
6476
|
+
layoutId: number;
|
|
6477
|
+
collection: string;
|
|
6478
|
+
field: string;
|
|
6479
|
+
}
|
|
6480
|
+
|
|
6271
6481
|
declare type PinnedCfg = {
|
|
6272
6482
|
when?: {
|
|
6273
6483
|
field: string;
|
|
@@ -6299,7 +6509,7 @@ declare type PipelineBinding = {
|
|
|
6299
6509
|
dimensions?: PipelineOwnerDimension[];
|
|
6300
6510
|
};
|
|
6301
6511
|
|
|
6302
|
-
export declare type PipelineEditorSection = 'states' | 'transitions' | 'branches' | 'bindings' | 'matrix' | 'simulator' | 'canvas' | 'flow-map' | 'replay' | 'migration' | 'coverage' | 'lint' | 'skip-report' | 'ai-review' | 'versions' | 'matrix-versions';
|
|
6512
|
+
export declare type PipelineEditorSection = 'states' | 'transitions' | 'branches' | 'bindings' | 'matrix' | 'simulator' | 'canvas' | 'flow-map' | 'replay' | 'cumulative-flow' | 'migration' | 'coverage' | 'lint' | 'skip-report' | 'ai-review' | 'versions' | 'matrix-versions';
|
|
6303
6513
|
|
|
6304
6514
|
export declare function PipelineEditorView({ templateId, onBack, onExport, hidden }: {
|
|
6305
6515
|
templateId: string;
|
|
@@ -6464,6 +6674,17 @@ declare function pollProposal(opts: {
|
|
|
6464
6674
|
*/
|
|
6465
6675
|
export declare function precisionOf(options: unknown, fallback?: number): number;
|
|
6466
6676
|
|
|
6677
|
+
/** API prefetches one tab may make in any rolling minute. */
|
|
6678
|
+
export declare const PREFETCH_PER_MINUTE = 30;
|
|
6679
|
+
|
|
6680
|
+
/**
|
|
6681
|
+
* Warm a record page: its readOne and the layout it will open with. Returns how many requests
|
|
6682
|
+
* went out (0 when both were fresh or the budget was spent).
|
|
6683
|
+
*/
|
|
6684
|
+
export declare function prefetchRecord(qc: QueryClient, client: NivaroClient, collection: string, id: string | number, opts?: {
|
|
6685
|
+
layout?: boolean;
|
|
6686
|
+
}): number;
|
|
6687
|
+
|
|
6467
6688
|
export declare interface PreparedReplayClip {
|
|
6468
6689
|
/** Upload what was taken at prepare time; null when nothing is recording. */
|
|
6469
6690
|
commit(timeoutMs?: number): Promise<ReplayLink | null>;
|
|
@@ -7412,6 +7633,36 @@ export declare function RecordOutboxHost({ userId, onOpenRecord }: {
|
|
|
7412
7633
|
onOpenRecord?: (collection: string, itemId: string) => void;
|
|
7413
7634
|
}): null;
|
|
7414
7635
|
|
|
7636
|
+
/**
|
|
7637
|
+
* Presence hooks for headless frontends (#2487, #2486), over the host's realtime adapter —
|
|
7638
|
+
* the socket the host already holds (`createSocketRealtime`, or the shared worker's facade).
|
|
7639
|
+
* Without an adapter every hook is inert and returns nothing, like the live hooks.
|
|
7640
|
+
*
|
|
7641
|
+
* usePresence('orders', id) → { viewers } who else has this record open
|
|
7642
|
+
* useFieldFocus('orders', id) → { editing, focus, blur } the field (or grid cell) each
|
|
7643
|
+
* person is in, and your own
|
|
7644
|
+
* useTyping('orders', id) → { typing, setTyping } "Beth is writing a note"
|
|
7645
|
+
* useRowPresence('orders', ids) → { [id]: { ids, count } } who has each list row open
|
|
7646
|
+
*
|
|
7647
|
+
* All of it is names-only and server-gated: the record room admits only people who may open
|
|
7648
|
+
* the record (the read gate), `presence:rows` carries user ids and the names come from
|
|
7649
|
+
* `GET /presence/people`, which answers only with people the viewer may see.
|
|
7650
|
+
*
|
|
7651
|
+
* The admin's own record page keeps `useRecordPresence` (its record room rides a tab-local
|
|
7652
|
+
* socket when the shared worker is off); these hooks need an adapter whose `emit` reaches a
|
|
7653
|
+
* socket this tab owns, which `createSocketRealtime` and the worker facade both give.
|
|
7654
|
+
*/
|
|
7655
|
+
export declare interface RecordPresence {
|
|
7656
|
+
/** The OTHER people with this record open right now. */
|
|
7657
|
+
viewers: SignalPerson[];
|
|
7658
|
+
}
|
|
7659
|
+
|
|
7660
|
+
/** The query keys the record page reads (ItemEditForm / admin ItemEdit share them). */
|
|
7661
|
+
export declare function recordQueryKeys(collection: string, id: string | number): {
|
|
7662
|
+
item: QueryKey;
|
|
7663
|
+
layout: QueryKey;
|
|
7664
|
+
};
|
|
7665
|
+
|
|
7415
7666
|
/**
|
|
7416
7667
|
* Read-only record presentation. With `design` (the layout editor's canvas)
|
|
7417
7668
|
* the whole view — its own hooks included — runs inside DesignCanvas: a
|
|
@@ -7514,6 +7765,11 @@ export declare function RecordSubscribeButton({ collection, itemId, recordLabel,
|
|
|
7514
7765
|
compact?: boolean;
|
|
7515
7766
|
}): JSX.Element;
|
|
7516
7767
|
|
|
7768
|
+
declare interface RecordTarget {
|
|
7769
|
+
collection: string;
|
|
7770
|
+
id: string;
|
|
7771
|
+
}
|
|
7772
|
+
|
|
7517
7773
|
declare type Rect = {
|
|
7518
7774
|
x: number;
|
|
7519
7775
|
y: number;
|
|
@@ -7557,8 +7813,11 @@ export declare function RelatedRecordsPanel({ collection, itemId, title, default
|
|
|
7557
7813
|
defaultExpanded?: boolean;
|
|
7558
7814
|
}): JSX.Element;
|
|
7559
7815
|
|
|
7560
|
-
export declare function RelationCombobox({ collection, value, onChange, disabled, placeholder, extraFilter, autoSelectSingle, optionSort, requiredParent, facets, fieldKey, narrowedBy, pinned }: {
|
|
7816
|
+
export declare function RelationCombobox({ collection, value, onChange, disabled, placeholder, extraFilter, autoSelectSingle, optionSort, requiredParent, facets, fieldKey, narrowedBy, pinned, missPlacement }: {
|
|
7561
7817
|
collection: string;
|
|
7818
|
+
/** The record-form placement this picker sits on: searches that find
|
|
7819
|
+
* nothing are counted there (#2726). Absent = not reported. */
|
|
7820
|
+
missPlacement?: PickerMissPlacement | null;
|
|
7562
7821
|
value: unknown;
|
|
7563
7822
|
onChange: (v: unknown) => void;
|
|
7564
7823
|
/** A "floating" option shown FIRST regardless of search or sort — the
|
|
@@ -7790,6 +8049,12 @@ export declare function restoreMetadata(qc: MetadataQueryClient, id: MetadataIde
|
|
|
7790
8049
|
now?: () => number;
|
|
7791
8050
|
}): Promise<number>;
|
|
7792
8051
|
|
|
8052
|
+
/** A request to bring `target` into view; `seq` changes on every request. */
|
|
8053
|
+
declare interface RevealSignal {
|
|
8054
|
+
target: DesignTarget;
|
|
8055
|
+
seq: number;
|
|
8056
|
+
}
|
|
8057
|
+
|
|
7793
8058
|
declare type ReviewListColumnFormat = 'currency' | 'number' | 'date' | 'datetime' | 'flag';
|
|
7794
8059
|
|
|
7795
8060
|
declare interface ReviewListColumnSpec {
|
|
@@ -8067,6 +8332,35 @@ declare interface RowMatchPanelConfig {
|
|
|
8067
8332
|
};
|
|
8068
8333
|
}
|
|
8069
8334
|
|
|
8335
|
+
/**
|
|
8336
|
+
* "Who has this row open" on a list row (#2486): up to three 16px avatar discs, overlapping,
|
|
8337
|
+
* then "+N" when more people are there; the names in the instant tooltip. People the viewer
|
|
8338
|
+
* may not see (the presence visibility rule) count but show no face — a neutral disc with
|
|
8339
|
+
* the number stands for them. Nothing renders when nobody else has the row open.
|
|
8340
|
+
*
|
|
8341
|
+
* Small on purpose: it sits in the row's 16px mark slot (next to the lock / new / unseen
|
|
8342
|
+
* marks) or inline after a label, and must never move the text beside it.
|
|
8343
|
+
*/
|
|
8344
|
+
export declare function RowPresence({ viewers, size, dataAttr, max }: {
|
|
8345
|
+
viewers: RowViewers | null | undefined;
|
|
8346
|
+
size?: number;
|
|
8347
|
+
dataAttr?: string;
|
|
8348
|
+
max?: number;
|
|
8349
|
+
}): JSX.Element | null;
|
|
8350
|
+
|
|
8351
|
+
export declare function rowPresenceKey(collection: string, item: string | number): string;
|
|
8352
|
+
|
|
8353
|
+
export declare interface RowPresenceOptions {
|
|
8354
|
+
enabled?: boolean;
|
|
8355
|
+
/** Without a realtime adapter, poll counts this often (0 = never). Default 30 000. */
|
|
8356
|
+
pollMs?: number;
|
|
8357
|
+
}
|
|
8358
|
+
|
|
8359
|
+
export declare interface RowRef {
|
|
8360
|
+
collection: string;
|
|
8361
|
+
item: string | number;
|
|
8362
|
+
}
|
|
8363
|
+
|
|
8070
8364
|
declare interface RowRule {
|
|
8071
8365
|
trigger_field?: string | null;
|
|
8072
8366
|
/** Additional trigger fields — any of them changing fires the rule. */
|
|
@@ -8091,6 +8385,13 @@ declare interface RowSnooze {
|
|
|
8091
8385
|
note: string | null;
|
|
8092
8386
|
}
|
|
8093
8387
|
|
|
8388
|
+
export declare interface RowViewers {
|
|
8389
|
+
/** The OTHER people with the row open whom the viewer may see (names resolvable). */
|
|
8390
|
+
ids: string[];
|
|
8391
|
+
/** Everyone else with it open, visible or not (the count the chip shows). */
|
|
8392
|
+
count: number;
|
|
8393
|
+
}
|
|
8394
|
+
|
|
8094
8395
|
/** Route-change timing: from the navigation to a settled double-rAF frame. */
|
|
8095
8396
|
export declare function rumRouteChange(pathname: string): void;
|
|
8096
8397
|
|
|
@@ -8152,6 +8453,11 @@ declare interface Segment {
|
|
|
8152
8453
|
|
|
8153
8454
|
export declare function SelectField({ field, value, onChange, error, disabled, readOnly, inputId, errorId }: FieldComponentProps): JSX.Element;
|
|
8154
8455
|
|
|
8456
|
+
declare interface SelectOptions {
|
|
8457
|
+
/** Shift / ⌘ / Ctrl-click: add the target to the selection, or take it out. */
|
|
8458
|
+
additive?: boolean;
|
|
8459
|
+
}
|
|
8460
|
+
|
|
8155
8461
|
declare interface SendInput {
|
|
8156
8462
|
text: string;
|
|
8157
8463
|
mentions?: string[];
|
|
@@ -8240,6 +8546,9 @@ export declare function setServerClockOffset(ms: number): void;
|
|
|
8240
8546
|
|
|
8241
8547
|
export declare function setTimeDisplay(mode: string | null | undefined): void;
|
|
8242
8548
|
|
|
8549
|
+
/** True when this browser can share a socket between tabs. */
|
|
8550
|
+
export declare function sharedWorkerSupported(): boolean;
|
|
8551
|
+
|
|
8243
8552
|
/**
|
|
8244
8553
|
* The pure part of opening a query sheet: which tabs it has, which tab opens
|
|
8245
8554
|
* first, and the optional header strip (a query of its own, rendered above
|
|
@@ -8269,6 +8578,12 @@ declare interface SheetItem {
|
|
|
8269
8578
|
url: string;
|
|
8270
8579
|
}
|
|
8271
8580
|
|
|
8581
|
+
/**
|
|
8582
|
+
* Whether a host should try the worker: supported, not switched off for this browser, and the
|
|
8583
|
+
* worker URL on this page's origin (a SharedWorker script must be same-origin).
|
|
8584
|
+
*/
|
|
8585
|
+
export declare function shouldUseWorkerSocket(url: string): boolean;
|
|
8586
|
+
|
|
8272
8587
|
export declare function SignalCard({ signal, expanded, onToggle, onOpenRecord, onExplain, canExplain }: SignalCardProps): JSX.Element;
|
|
8273
8588
|
|
|
8274
8589
|
export declare interface SignalCardProps {
|
|
@@ -8457,6 +8772,9 @@ export declare function SnoozeMenu({ signal, signalLabel, rowKey, group, default
|
|
|
8457
8772
|
* `nvr:config-update`; `client:force-refresh` → `nvr:force-refresh` (the window events admin's
|
|
8458
8773
|
* socket raises, so shared banners and forms behave the same in every host).
|
|
8459
8774
|
* - Connection state for the reconnect banner and stale marks (`status` / `onStatus`).
|
|
8775
|
+
* - Missed events while connected (#2462): a room whose own counter (`_rseq`) skips is caught up
|
|
8776
|
+
* alone (`catchup:room`); `realtime:stale` (#2460 — the server held this socket's broadcasts
|
|
8777
|
+
* while it was too far behind) refetches the rooms it names and raises `nvr:realtime-stale`.
|
|
8460
8778
|
*
|
|
8461
8779
|
* The socket is duck-typed (socket.io-client's `Socket` fits), so this package takes no
|
|
8462
8780
|
* dependency on socket.io-client. It never decides what a viewer may see: every room is gated by
|
|
@@ -8479,6 +8797,16 @@ export declare interface SocketLike {
|
|
|
8479
8797
|
};
|
|
8480
8798
|
}
|
|
8481
8799
|
|
|
8800
|
+
declare interface SocketLike_2 {
|
|
8801
|
+
on(ev: string, fn: (...a: any[]) => void): unknown;
|
|
8802
|
+
onAny?(fn: (ev: string, ...a: any[]) => void): unknown;
|
|
8803
|
+
offAny?(fn: (ev: string, ...a: any[]) => void): unknown;
|
|
8804
|
+
off?(ev: string, fn: (...a: any[]) => void): unknown;
|
|
8805
|
+
io?: {
|
|
8806
|
+
on?(ev: string, fn: (...a: any[]) => void): unknown;
|
|
8807
|
+
};
|
|
8808
|
+
}
|
|
8809
|
+
|
|
8482
8810
|
export declare interface SocketRealtime extends RealtimeAdapter {
|
|
8483
8811
|
status(): RealtimeStatus;
|
|
8484
8812
|
onStatus(cb: (s: RealtimeStatus) => void): () => void;
|
|
@@ -8818,6 +9146,9 @@ declare interface TailRequest {
|
|
|
8818
9146
|
ms: number;
|
|
8819
9147
|
}
|
|
8820
9148
|
|
|
9149
|
+
/** Feed the bus from a socket.io-style client. Returns the undo. */
|
|
9150
|
+
export declare function tapReplaySocket(socket: SocketLike_2): () => void;
|
|
9151
|
+
|
|
8821
9152
|
export declare function TaskPanel({ collection, item, title, defaultExpanded, queuedTasks, onQueueTask, onRemoveQueuedTask }: {
|
|
8822
9153
|
collection: string;
|
|
8823
9154
|
item: string;
|
|
@@ -9029,6 +9360,13 @@ export declare interface TuningSummary {
|
|
|
9029
9360
|
}>;
|
|
9030
9361
|
}
|
|
9031
9362
|
|
|
9363
|
+
export declare interface Typing {
|
|
9364
|
+
/** Names of the other people writing a note on this record right now. */
|
|
9365
|
+
typing: string[];
|
|
9366
|
+
/** Call with true while the person types (it repeats the heartbeat), false when they stop. */
|
|
9367
|
+
setTyping: (active: boolean) => void;
|
|
9368
|
+
}
|
|
9369
|
+
|
|
9032
9370
|
/** What is unsaved right now — the leave-page prompt, the changes tray and
|
|
9033
9371
|
* the host's own dirty indicator all read this one breakdown. */
|
|
9034
9372
|
declare interface UnsavedSummary {
|
|
@@ -9136,6 +9474,34 @@ export declare function useAutoRecord(opts?: {
|
|
|
9136
9474
|
/** Available actions per collection, for the viewer. */
|
|
9137
9475
|
export declare function useAvailableBulkActions(collections: string[]): UseQueryResult<NoInfer<Record<string, AvailableBulkAction[]>>, Error>;
|
|
9138
9476
|
|
|
9477
|
+
declare interface UseBackgroundRun {
|
|
9478
|
+
phase: BackgroundPhase;
|
|
9479
|
+
/** The usual duration the server knows, ms. */
|
|
9480
|
+
typicalMs: number | null;
|
|
9481
|
+
run: BackgroundRunView | null;
|
|
9482
|
+
error: string | null;
|
|
9483
|
+
start: () => void;
|
|
9484
|
+
}
|
|
9485
|
+
|
|
9486
|
+
export declare function useBackgroundRun(opts: UseBackgroundRunOptions): UseBackgroundRun;
|
|
9487
|
+
|
|
9488
|
+
declare interface UseBackgroundRunOptions {
|
|
9489
|
+
/** True while the page's own read is still loading. */
|
|
9490
|
+
pending: boolean;
|
|
9491
|
+
/** The read the page is making; null = nothing to offer. */
|
|
9492
|
+
request: BackgroundRequest | null;
|
|
9493
|
+
/** What the person will see in the Jobs tray. */
|
|
9494
|
+
label: string;
|
|
9495
|
+
/** The page's query to fill when the run is ready (setQueryData with `select(body)`). */
|
|
9496
|
+
queryKey?: QueryKey;
|
|
9497
|
+
/** Response body → the query's data. Default: the body itself. */
|
|
9498
|
+
select?: (body: unknown) => unknown;
|
|
9499
|
+
/** For pages that keep the read in their own state: the finished response body. */
|
|
9500
|
+
onResult?: (body: unknown) => void;
|
|
9501
|
+
/** The result was not kept (too big / expired): read again — the route's cache answers. */
|
|
9502
|
+
onGone?: () => void;
|
|
9503
|
+
}
|
|
9504
|
+
|
|
9139
9505
|
export declare function useChannelAdmin(channelId: number | null): {
|
|
9140
9506
|
update: UseMutationResult<unknown, Error, {
|
|
9141
9507
|
name?: string;
|
|
@@ -9153,6 +9519,7 @@ export declare function useChannelAdmin(channelId: number | null): {
|
|
|
9153
9519
|
}>;
|
|
9154
9520
|
welcome_note?: string | null;
|
|
9155
9521
|
default_roles?: string[];
|
|
9522
|
+
mention_policy?: "owner" | "members" | "admins" | null;
|
|
9156
9523
|
}, unknown>;
|
|
9157
9524
|
addMember: UseMutationResult<unknown, Error, string, unknown>;
|
|
9158
9525
|
removeMember: UseMutationResult<unknown, Error, string, unknown>;
|
|
@@ -9292,6 +9659,9 @@ export declare function useFeatureFlags(): {
|
|
|
9292
9659
|
|
|
9293
9660
|
export declare function useFieldArray(form: UseNivaroFormReturn, field: string): FieldArrayReturn;
|
|
9294
9661
|
|
|
9662
|
+
/** Which field or grid cell each co-viewer is editing, and a way to announce your own. */
|
|
9663
|
+
export declare function useFieldFocus(collection: string | null | undefined, item: string | number | null | undefined, opts?: FieldFocusOptions): FieldFocus;
|
|
9664
|
+
|
|
9295
9665
|
export declare function useFieldState(form: UseNivaroFormReturn, field: string): FieldState;
|
|
9296
9666
|
|
|
9297
9667
|
/**
|
|
@@ -9363,8 +9733,24 @@ version_id: string | null;
|
|
|
9363
9733
|
steps: WalkStep[];
|
|
9364
9734
|
}>, Error>;
|
|
9365
9735
|
|
|
9736
|
+
/**
|
|
9737
|
+
* Idle next page: once a list page has loaded and more pages exist, fetch the next one into its
|
|
9738
|
+
* own key while the browser has nothing better to do.
|
|
9739
|
+
*/
|
|
9740
|
+
export declare function useIdleNextPage(opts: {
|
|
9741
|
+
enabled: boolean;
|
|
9742
|
+
queryKey: QueryKey;
|
|
9743
|
+
queryFn: () => Promise<unknown>;
|
|
9744
|
+
qc: QueryClient;
|
|
9745
|
+
}): void;
|
|
9746
|
+
|
|
9366
9747
|
export declare function useImportHealth(): UseQueryResult<NoInfer<ImportHealth>, Error>;
|
|
9367
9748
|
|
|
9749
|
+
/** Mount once in an app shell (inside the QueryClientProvider). */
|
|
9750
|
+
export declare function useIntentPrefetch(opts: IntentPrefetchOptions & {
|
|
9751
|
+
enabled?: boolean;
|
|
9752
|
+
}): void;
|
|
9753
|
+
|
|
9368
9754
|
/** True when clean mode runs AND `userId` is the signed-in person (the host's
|
|
9369
9755
|
* setRecordingSelf, else the record form's auth context). */
|
|
9370
9756
|
export declare function useIsRecordingSelf(userId: string | number | null | undefined): boolean;
|
|
@@ -9592,6 +9978,9 @@ export declare function usePersonProfile(userId: string | null | undefined): Use
|
|
|
9592
9978
|
|
|
9593
9979
|
export declare function usePlanGridHost(): PlanGridHost | null;
|
|
9594
9980
|
|
|
9981
|
+
/** Who else is viewing one record (joins its room; names only). */
|
|
9982
|
+
export declare function usePresence(collection: string | null | undefined, item: string | number | null | undefined): RecordPresence;
|
|
9983
|
+
|
|
9595
9984
|
/**
|
|
9596
9985
|
* Publish what this page shows. Re-publishes only when the context's content
|
|
9597
9986
|
* changes (compared as JSON), and withdraws it when the page unmounts.
|
|
@@ -9738,6 +10127,13 @@ export declare function userOptionFilter(isAdmin: boolean): {
|
|
|
9738
10127
|
})[];
|
|
9739
10128
|
};
|
|
9740
10129
|
|
|
10130
|
+
/**
|
|
10131
|
+
* Who has each of these rows open, keyed `collection:item`: live through the presence room
|
|
10132
|
+
* (`presence:watch` → `presence:rows`), a 30 s count poll when the host has no realtime
|
|
10133
|
+
* adapter. The viewer's own tabs are left out. Rows may span collections (a queue).
|
|
10134
|
+
*/
|
|
10135
|
+
export declare function useRowPresence(rows: RowRef[], opts?: RowPresenceOptions): Record<string, RowViewers>;
|
|
10136
|
+
|
|
9741
10137
|
/** Stacked avatar cluster (+N) with a hover/pinnable portal roster whose rows
|
|
9742
10138
|
* are UserChips — the single user-display primitive for owners/user lists.
|
|
9743
10139
|
* Reused by the item-header Owners chip and the collection browser. */
|
|
@@ -9818,6 +10214,9 @@ emoji: string;
|
|
|
9818
10214
|
*/
|
|
9819
10215
|
export declare function useTopicPresence(topic: string | null | undefined, selfId?: string | null): TopicPresence;
|
|
9820
10216
|
|
|
10217
|
+
/** "Beth is writing a note" on a record's comment thread, both directions. */
|
|
10218
|
+
export declare function useTyping(collection: string | null | undefined, item: string | number | null | undefined): Typing;
|
|
10219
|
+
|
|
9821
10220
|
export declare function useTypingIndicator(room: string | null): {
|
|
9822
10221
|
onType: () => void;
|
|
9823
10222
|
clearTyping: () => void;
|
|
@@ -10031,6 +10430,55 @@ export declare function withClipKind<T extends {
|
|
|
10031
10430
|
|
|
10032
10431
|
export declare function withGetCoalescing(client: NivaroClient, opts?: CoalescingOptions): NivaroClient;
|
|
10033
10432
|
|
|
10433
|
+
export declare interface WorkerSocket extends FallbackSocket {
|
|
10434
|
+
once(event: string, cb: Listener): unknown;
|
|
10435
|
+
onAny(cb: (event: string, ...args: any[]) => void): unknown;
|
|
10436
|
+
offAny(cb: (event: string, ...args: any[]) => void): unknown;
|
|
10437
|
+
listeners(event: string): Listener[];
|
|
10438
|
+
connect(): void;
|
|
10439
|
+
disconnect(): void;
|
|
10440
|
+
/** 'pending' until the worker greets or the fallback is taken. */
|
|
10441
|
+
mode(): 'pending' | 'worker' | 'fallback';
|
|
10442
|
+
/** The transport the worker's socket uses (for status displays). */
|
|
10443
|
+
io: {
|
|
10444
|
+
engine: {
|
|
10445
|
+
transport: {
|
|
10446
|
+
name?: string;
|
|
10447
|
+
};
|
|
10448
|
+
once(ev: string, cb: () => void): void;
|
|
10449
|
+
};
|
|
10450
|
+
};
|
|
10451
|
+
}
|
|
10452
|
+
|
|
10453
|
+
export declare interface WorkerSocketOptions {
|
|
10454
|
+
/** Same-origin URL of the worker script. */
|
|
10455
|
+
url: string;
|
|
10456
|
+
/** SharedWorker name: one worker per app on an origin (`admin`, `efp-new`). */
|
|
10457
|
+
name?: string;
|
|
10458
|
+
/** `client:hello` app label. */
|
|
10459
|
+
app: string;
|
|
10460
|
+
/** Extra `client:hello` features (the worker always adds `coalesce`). */
|
|
10461
|
+
features?: string[];
|
|
10462
|
+
/** Build fields for `client:hello` (client-version.ts `clientVersion()`). */
|
|
10463
|
+
version?: Record<string, unknown>;
|
|
10464
|
+
/** Mint a `/auth/ws-token` for the worker's socket (the worker asks one tab per connect). */
|
|
10465
|
+
authToken: () => Promise<string | null>;
|
|
10466
|
+
/** The host's own socket, created only when the worker cannot serve this tab. */
|
|
10467
|
+
fallback: () => FallbackSocket;
|
|
10468
|
+
/** Told once when the mode settles, and again if the worker is abandoned later. */
|
|
10469
|
+
onMode?: (mode: 'worker' | 'fallback', reason: string) => void;
|
|
10470
|
+
/**
|
|
10471
|
+
* How long to wait for the worker's greeting before falling back (default 15000: a cold
|
|
10472
|
+
* worker fetches its script and socket.io's client first, slow on a dev proxy).
|
|
10473
|
+
*/
|
|
10474
|
+
readyTimeoutMs?: number;
|
|
10475
|
+
/** No ping from the worker for this long = it is gone (default 20000). */
|
|
10476
|
+
silentMs?: number;
|
|
10477
|
+
}
|
|
10478
|
+
|
|
10479
|
+
/** The person's override for this browser, when they set one (a support step). */
|
|
10480
|
+
export declare function workerSocketPreference(): 'on' | 'off' | null;
|
|
10481
|
+
|
|
10034
10482
|
export declare function WorkflowPanel({ collection, item }: {
|
|
10035
10483
|
collection: string;
|
|
10036
10484
|
item: string;
|