@declarion/react 0.61.1 → 0.63.1
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-lib/ActionDialog-uiuse5W8.js +374 -0
- package/dist-lib/ActionResultDialog.impl-BUBm9Ck3.js +273 -0
- package/dist-lib/ActionRunner-DAxgnKB3.js +1440 -0
- package/dist-lib/AdminCatalogPage.impl-BJGn7EvA.js +441 -0
- package/dist-lib/{AgentChatPanel.impl-rgkewyMl.js → AgentChatPanel.impl-8bw8J-xV.js} +358 -319
- package/dist-lib/AgentOpenFollower.impl-Cga1q7_e.js +81 -0
- package/dist-lib/AssociatedBlock-D6qDYmRO.js +1515 -0
- package/dist-lib/AuthShell-DdiughRT.js +361 -0
- package/dist-lib/ChangePasswordDialog-DFe7lVQg.js +12 -0
- package/dist-lib/ChangePasswordDialog.impl-DtSIaP-A.js +194 -0
- package/dist-lib/CommandPalette.impl-Db3AFA5w.js +383 -0
- package/dist-lib/CopyButton-C0iEvaT1.js +119 -0
- package/dist-lib/DirtyTabsCloseDialog.impl-DWaFaWKn.js +191 -0
- package/dist-lib/{DraggableChildrenTable-DruYOxKm.js → DraggableChildrenTable-Cy8uevS_.js} +45 -44
- package/dist-lib/DynamicIcon-DuBSz6TZ.js +133 -0
- package/dist-lib/FieldRow-BXBBFOZh.js +157 -0
- package/dist-lib/FilterChips-8fMDBXHp.js +1031 -0
- package/dist-lib/Forgot.impl-CmT5A__V.js +105 -0
- package/dist-lib/{Grid-Dsf3I0xG.js → Grid-Cg29k0jv.js} +98 -99
- package/dist-lib/Icons-Dzl-AkD_.d.ts +159 -0
- package/dist-lib/Icons-lt-7lhYR.js +151 -0
- package/dist-lib/ImpersonationBanner.impl-CBJJx6an.js +76 -0
- package/dist-lib/ImpersonationStartModal.impl-RaZcsJpG.js +158 -0
- package/dist-lib/Kbd-CNttVu0z.js +23 -0
- package/dist-lib/{LayoutRenderer-QN7Wp2W6.js → LayoutRenderer-DEHtYtzV.js} +965 -942
- package/dist-lib/{ListCardsBody-CNaZ0xwz.js → ListCardsBody-BAwFR3yO.js} +46 -52
- package/dist-lib/{MarkdownRenderer-BuO5hYJh.js → MarkdownRenderer-kNEMr6K_.js} +15 -16
- package/dist-lib/MenuItem-CfkVXPvC.js +140 -0
- package/dist-lib/NotFoundPage.impl-ZSBn4WWb.js +68 -0
- package/dist-lib/PageHeader-tw4pX3lI.js +71 -0
- package/dist-lib/PageShell-tI-mm0C5.js +47 -0
- package/dist-lib/Pill-D-wsfRhx.js +42 -0
- package/dist-lib/Preferences.impl-BG9XBZDf.js +162 -0
- package/dist-lib/Profile.impl-CbzSzxyG.js +527 -0
- package/dist-lib/PropertyGridEditor-BTjscqfz.js +4378 -0
- package/dist-lib/RecordHeader-Bv9nJXnG.js +217 -0
- package/dist-lib/RecordIdBadge-C3MgoZvt.js +25 -0
- package/dist-lib/RefreshControl-Ce-T_wSQ.js +195 -0
- package/dist-lib/Reset.impl-Cesyqt5p.js +168 -0
- package/dist-lib/SSOCallbackPage.impl-BC_W9nQA.js +31 -0
- package/dist-lib/SectionCard-VonaiLrx.js +150 -0
- package/dist-lib/SignUp.impl-C1KCQbfZ.js +212 -0
- package/dist-lib/SmartDetailPage.impl-8iOAMYQh.js +1609 -0
- package/dist-lib/SmartListPage.impl-Cc4Zwz5f.js +2818 -0
- package/dist-lib/SmartRecordListPage.impl-xTSohkqG.js +795 -0
- package/dist-lib/{SortHeaderMenu-BV-aQbPy.js → SortHeaderMenu-BKTrq0Wb.js} +23 -23
- package/dist-lib/TenantParamsPage.impl-DMuSs3eP.js +306 -0
- package/dist-lib/TwoFA.impl-BClZ3ndk.js +125 -0
- package/dist-lib/{cardProjection-BnmWukxk.js → cardProjection-Cr7fG6wJ.js} +134 -133
- package/dist-lib/declarion-react.css +1 -1
- package/dist-lib/format-count-CSEFw2ht.js +943 -0
- package/dist-lib/headerActionZone-bef-tZZ7.js +14 -0
- package/dist-lib/{stores/icon-registry.d.ts → icon-registry-CUT4eF63.d.ts} +14 -11
- package/dist-lib/icons.d.ts +20 -4
- package/dist-lib/icons.js +3 -2
- package/dist-lib/index.d.ts +2516 -150
- package/dist-lib/index.js +1588 -5117
- package/dist-lib/page-inset-D_kkVwwN.js +9 -0
- package/dist-lib/page-state-eA6J_KIR.js +124 -0
- package/dist-lib/param-editors-9yJr7xmN.js +201 -0
- package/dist-lib/payload-B2wODLAX.js +86 -0
- package/dist-lib/{peekDraftStore-Dk1Ha5u3.js → peekDraftStore-D4GRsRKW.js} +44 -43
- package/dist-lib/registry-BpzE8-h8.js +119 -0
- package/dist-lib/screen-back-Cs4kzeqD.js +44 -0
- package/dist-lib/testing.d.ts +53 -56
- package/dist-lib/testing.js +54 -55
- package/dist-lib/use-filter-value-labels-DuqvAIVG.js +413 -0
- package/dist-lib/{useAgentConversation-nT5UypJX.js → useAgentConversation-D210VDCQ.js} +158 -169
- package/dist-lib/useAuth-CR2YKKXb.js +49 -0
- package/dist-lib/useBranding-Ckp_AuJb.js +41 -0
- package/dist-lib/useBrandingChrome-bKTXXDLy.js +170 -0
- package/dist-lib/useCurrentLocation-BdngVeQv.js +22 -0
- package/dist-lib/useCurrentScreen--UovgvRj.js +2511 -0
- package/dist-lib/useImpersonation-DNV23Ks1.js +35 -0
- package/dist-lib/useObject-1OCeV34A.js +26 -0
- package/dist-lib/useOwnRefresh-DkOuM4yo.js +435 -0
- package/dist-lib/useParams-ei6w4I7w.js +133 -0
- package/dist-lib/useProperties-CbdhlhZd.js +81 -0
- package/dist-lib/useResponsiveMode-DIR1bZfo.d.ts +1786 -0
- package/dist-lib/useScreenBack-J861tbwn.js +71 -0
- package/dist-lib/useTabNavigate-BZiW4q3M.js +78 -0
- package/dist-lib/useTabTitle-CZZnWIQi.js +22 -0
- package/dist-lib/utils-D_QDpB8_.js +11 -0
- package/dist-lib/{value-Dwfyghtj.js → value-CDCeHgOv.js} +8 -22
- package/dist-lib/{action-dispatch-gWmOYjOP.js → variants-CbAwl3Mn.js} +734 -740
- package/dist-lib/vite/index.d.ts +42 -16
- package/dist-lib/window-election-CHIvIZwx.js +45 -0
- package/package.json +16 -23
- package/dist-lib/DetailAuditStrip-CSXZoy7v.js +0 -288
- package/dist-lib/DynamicIcon-DW5krHuX.js +0 -280
- package/dist-lib/RefreshControl-DO9rYcdq.js +0 -399
- package/dist-lib/SmartDetailPage.impl-DFIIx80b.js +0 -1565
- package/dist-lib/SmartListPage.impl-D694R32H.js +0 -3051
- package/dist-lib/SmartRecordListPage.impl-CB5cuQJV.js +0 -780
- package/dist-lib/api/agents.d.ts +0 -140
- package/dist-lib/api/auth-redirect.d.ts +0 -3
- package/dist-lib/api/auth.d.ts +0 -26
- package/dist-lib/api/batch.d.ts +0 -25
- package/dist-lib/api/client.d.ts +0 -51
- package/dist-lib/api/data.d.ts +0 -153
- package/dist-lib/api/entities.d.ts +0 -149
- package/dist-lib/api/events.d.ts +0 -91
- package/dist-lib/api/params.d.ts +0 -28
- package/dist-lib/api/properties.d.ts +0 -3
- package/dist-lib/api/schema.d.ts +0 -2
- package/dist-lib/api/status.d.ts +0 -2
- package/dist-lib/app.d.ts +0 -1
- package/dist-lib/components/actions/ActionButton.d.ts +0 -18
- package/dist-lib/components/actions/ActionDialog.d.ts +0 -20
- package/dist-lib/components/actions/ActionResultDialog.d.ts +0 -22
- package/dist-lib/components/actions/ActionRunner.d.ts +0 -62
- package/dist-lib/components/actions/ObjectActionBar.d.ts +0 -29
- package/dist-lib/components/actions/PropertyGridEditor.d.ts +0 -20
- package/dist-lib/components/actions/ResponsiveActionBar.d.ts +0 -259
- package/dist-lib/components/actions/RowActionsKebab.d.ts +0 -20
- package/dist-lib/components/agents/AgentChatPanel.d.ts +0 -3
- package/dist-lib/components/agents/AgentChatPanel.impl.d.ts +0 -14
- package/dist-lib/components/agents/AgentConversationDrawer.d.ts +0 -11
- package/dist-lib/components/agents/AgentElicitForm.d.ts +0 -27
- package/dist-lib/components/agents/AgentPicker.d.ts +0 -8
- package/dist-lib/components/agents/transcript-runs.d.ts +0 -29
- package/dist-lib/components/chrome/AssociationTabs.d.ts +0 -9
- package/dist-lib/components/chrome/AuditMetaStrip.d.ts +0 -11
- package/dist-lib/components/chrome/Breadcrumbs.d.ts +0 -14
- package/dist-lib/components/chrome/HighlightsStrip.d.ts +0 -10
- package/dist-lib/components/chrome/PageHeader.d.ts +0 -16
- package/dist-lib/components/chrome/PageShell.d.ts +0 -7
- package/dist-lib/components/chrome/RecordHeader.d.ts +0 -17
- package/dist-lib/components/chrome/headerActionZone.d.ts +0 -27
- package/dist-lib/components/detail-layout/AssociatedBlock.d.ts +0 -20
- package/dist-lib/components/detail-layout/AssociatedToolbar.d.ts +0 -13
- package/dist-lib/components/detail-layout/ChildrenBlock.d.ts +0 -16
- package/dist-lib/components/detail-layout/ChildrenCards.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenList.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenTable.d.ts +0 -2
- package/dist-lib/components/detail-layout/ChildrenTimeline.d.ts +0 -2
- package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +0 -12
- package/dist-lib/components/detail-layout/DetailHighlights.d.ts +0 -14
- package/dist-lib/components/detail-layout/DraggableChildrenTable.d.ts +0 -16
- package/dist-lib/components/detail-layout/EditableChildrenTable.d.ts +0 -16
- package/dist-lib/components/detail-layout/ErrorSummary.d.ts +0 -11
- package/dist-lib/components/detail-layout/EvidenceBlock.d.ts +0 -6
- package/dist-lib/components/detail-layout/FieldRow.d.ts +0 -23
- package/dist-lib/components/detail-layout/FieldsBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/LayoutColumn.d.ts +0 -9
- package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +0 -46
- package/dist-lib/components/detail-layout/LayoutRow.d.ts +0 -8
- package/dist-lib/components/detail-layout/LayoutTabs.d.ts +0 -8
- package/dist-lib/components/detail-layout/PropertiesBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/QuickAddForm.d.ts +0 -10
- package/dist-lib/components/detail-layout/SectionBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/StatusesBlock.d.ts +0 -8
- package/dist-lib/components/detail-layout/TimelineComposer.d.ts +0 -10
- package/dist-lib/components/detail-layout/blockMeta.d.ts +0 -5
- package/dist-lib/components/detail-layout/index.d.ts +0 -21
- package/dist-lib/components/detail-layout/useManualColumnResize.d.ts +0 -25
- package/dist-lib/components/detail-layout/useQuickAdd.d.ts +0 -16
- package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.d.ts +0 -2
- package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.d.ts +0 -2
- package/dist-lib/components/detail-layout/widgets/MonacoJson.d.ts +0 -9
- package/dist-lib/components/detail-layout/widgets/WidgetHost.d.ts +0 -9
- package/dist-lib/components/detail-layout/widgets/builtins.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/canonicalizeJson.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/monacoBootstrap.d.ts +0 -1
- package/dist-lib/components/detail-layout/widgets/registry.d.ts +0 -14
- package/dist-lib/components/fields/BoolField.d.ts +0 -2
- package/dist-lib/components/fields/EmailField.d.ts +0 -2
- package/dist-lib/components/fields/EnumField.d.ts +0 -2
- package/dist-lib/components/fields/IntArrayField.d.ts +0 -2
- package/dist-lib/components/fields/JsonEditor.d.ts +0 -10
- package/dist-lib/components/fields/JsonField.d.ts +0 -3
- package/dist-lib/components/fields/MultilangArrayField.d.ts +0 -2
- package/dist-lib/components/fields/MultilangField.d.ts +0 -2
- package/dist-lib/components/fields/MultilangTextField.d.ts +0 -2
- package/dist-lib/components/fields/NumberField.d.ts +0 -2
- package/dist-lib/components/fields/PasswordField.d.ts +0 -2
- package/dist-lib/components/fields/PhoneField.d.ts +0 -2
- package/dist-lib/components/fields/RefCombobox.d.ts +0 -45
- package/dist-lib/components/fields/RefField.d.ts +0 -2
- package/dist-lib/components/fields/RichTextField.d.ts +0 -2
- package/dist-lib/components/fields/SecretField.d.ts +0 -2
- package/dist-lib/components/fields/StringArrayField.d.ts +0 -2
- package/dist-lib/components/fields/StringField.d.ts +0 -2
- package/dist-lib/components/fields/StructureField.d.ts +0 -2
- package/dist-lib/components/fields/TextField.d.ts +0 -2
- package/dist-lib/components/fields/TimestampField.d.ts +0 -2
- package/dist-lib/components/fields/UrlField.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/badge.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/boolPill.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/code.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/date.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/email.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/emptyCell.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/host-icons.d.ts +0 -17
- package/dist-lib/components/fields/cells/factories/json.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/link.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/markdown.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/markdownPreview.d.ts +0 -9
- package/dist-lib/components/fields/cells/factories/money.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/multilangInline.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/nextRun.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/number.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/passwordMask.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/phone.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/refLink.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/richTextPreview.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/statusPill.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/tagList.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/text.d.ts +0 -2
- package/dist-lib/components/fields/cells/factories/timestamp.d.ts +0 -3
- package/dist-lib/components/fields/cells/factories/url-helpers.d.ts +0 -12
- package/dist-lib/components/fields/cells/factories/url.d.ts +0 -2
- package/dist-lib/components/fields/cells/registry.d.ts +0 -21
- package/dist-lib/components/fields/index.d.ts +0 -28
- package/dist-lib/components/fields/langMap.d.ts +0 -2
- package/dist-lib/components/fields/secretValue.d.ts +0 -2
- package/dist-lib/components/file-widgets/CircleImage.d.ts +0 -2
- package/dist-lib/components/file-widgets/DocumentCard.d.ts +0 -2
- package/dist-lib/components/file-widgets/FileList.d.ts +0 -2
- package/dist-lib/components/file-widgets/Grid.d.ts +0 -2
- package/dist-lib/components/file-widgets/GridLazy.d.ts +0 -2
- package/dist-lib/components/file-widgets/ImageWidget.d.ts +0 -12
- package/dist-lib/components/file-widgets/LabeledSlots.d.ts +0 -2
- package/dist-lib/components/file-widgets/SquareImage.d.ts +0 -2
- package/dist-lib/components/file-widgets/UnknownFileWidget.d.ts +0 -3
- package/dist-lib/components/file-widgets/UploadFailureText.d.ts +0 -4
- package/dist-lib/components/file-widgets/WideBanner.d.ts +0 -2
- package/dist-lib/components/file-widgets/builtins.d.ts +0 -1
- package/dist-lib/components/file-widgets/cropper.d.ts +0 -14
- package/dist-lib/components/file-widgets/draft-scope.d.ts +0 -22
- package/dist-lib/components/file-widgets/helpers.d.ts +0 -15
- package/dist-lib/components/file-widgets/host.d.ts +0 -28
- package/dist-lib/components/file-widgets/index.d.ts +0 -16
- package/dist-lib/components/file-widgets/payload.d.ts +0 -21
- package/dist-lib/components/file-widgets/registry.d.ts +0 -5
- package/dist-lib/components/file-widgets/types.d.ts +0 -17
- package/dist-lib/components/file-widgets/upload.d.ts +0 -45
- package/dist-lib/components/file-widgets/useEmbedFileSrc.d.ts +0 -42
- package/dist-lib/components/file-widgets/value.d.ts +0 -4
- package/dist-lib/components/filters/FilterChips.d.ts +0 -14
- package/dist-lib/components/filters/FilterDrawer.d.ts +0 -32
- package/dist-lib/components/filters/filter-op-label.d.ts +0 -3
- package/dist-lib/components/layout/CommandPalette.d.ts +0 -21
- package/dist-lib/components/layout/DirtyTabsCloseDialog.d.ts +0 -9
- package/dist-lib/components/layout/ImpersonationBanner.d.ts +0 -11
- package/dist-lib/components/layout/ImpersonationFrame.d.ts +0 -11
- package/dist-lib/components/layout/ImpersonationStartModal.d.ts +0 -22
- package/dist-lib/components/layout/Layout.d.ts +0 -6
- package/dist-lib/components/layout/Rail.d.ts +0 -22
- package/dist-lib/components/layout/Sidebar.d.ts +0 -12
- package/dist-lib/components/layout/TabStrip.d.ts +0 -6
- package/dist-lib/components/layout/TenantChip.d.ts +0 -26
- package/dist-lib/components/layout/TopBar.d.ts +0 -22
- package/dist-lib/components/layout/tab-close.d.ts +0 -13
- package/dist-lib/components/list/ColumnPicker.d.ts +0 -20
- package/dist-lib/components/list/InlineEditCell.d.ts +0 -15
- package/dist-lib/components/list/PeekFieldCell.d.ts +0 -16
- package/dist-lib/components/list/QuickPeek.d.ts +0 -59
- package/dist-lib/components/list/ViewSwitcher.d.ts +0 -24
- package/dist-lib/components/list/peekDraftStore.d.ts +0 -6
- package/dist-lib/components/pages/AdminCatalogPage.d.ts +0 -1
- package/dist-lib/components/pages/DocumentsMenu.d.ts +0 -21
- package/dist-lib/components/pages/ExportMenu.d.ts +0 -30
- package/dist-lib/components/pages/NotFoundPage.d.ts +0 -1
- package/dist-lib/components/pages/RecordDocumentsPanel.d.ts +0 -41
- package/dist-lib/components/pages/SSOCallbackPage.d.ts +0 -1
- package/dist-lib/components/pages/SmartDetailPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartDetailPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/SmartListPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartListPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/SmartRecordListPage.d.ts +0 -2
- package/dist-lib/components/pages/SmartRecordListPage.impl.d.ts +0 -4
- package/dist-lib/components/pages/auth/AuthShell.d.ts +0 -18
- package/dist-lib/components/pages/auth/Forgot.d.ts +0 -1
- package/dist-lib/components/pages/auth/Reset.d.ts +0 -1
- package/dist-lib/components/pages/auth/SignIn.d.ts +0 -1
- package/dist-lib/components/pages/auth/SignUp.d.ts +0 -1
- package/dist-lib/components/pages/auth/TwoFA.d.ts +0 -1
- package/dist-lib/components/pages/auth/icons.d.ts +0 -6
- package/dist-lib/components/pages/exportRequest.d.ts +0 -69
- package/dist-lib/components/pages/list/DataCell.d.ts +0 -4
- package/dist-lib/components/pages/list/DeleteViewDialog.d.ts +0 -8
- package/dist-lib/components/pages/list/ListCardRow.d.ts +0 -39
- package/dist-lib/components/pages/list/ListCardsBody.d.ts +0 -33
- package/dist-lib/components/pages/list/ListFloatbar.d.ts +0 -29
- package/dist-lib/components/pages/list/ListFooter.d.ts +0 -26
- package/dist-lib/components/pages/list/ListHeader.d.ts +0 -26
- package/dist-lib/components/pages/list/ListNoRows.d.ts +0 -31
- package/dist-lib/components/pages/list/ListTable.d.ts +0 -33
- package/dist-lib/components/pages/list/ListTableRow.d.ts +0 -17
- package/dist-lib/components/pages/list/ListToolbar.d.ts +0 -46
- package/dist-lib/components/pages/list/ListUrlBanner.d.ts +0 -10
- package/dist-lib/components/pages/list/RowActionsCell.d.ts +0 -34
- package/dist-lib/components/pages/list/RowContextMenu.d.ts +0 -28
- package/dist-lib/components/pages/list/SaveViewDialog.d.ts +0 -10
- package/dist-lib/components/pages/list/SortHeaderMenu.d.ts +0 -14
- package/dist-lib/components/pages/list/cardProjection.d.ts +0 -67
- package/dist-lib/components/pages/list/column-sizing.d.ts +0 -14
- package/dist-lib/components/pages/list/columns.d.ts +0 -46
- package/dist-lib/components/pages/list/filter-meta.d.ts +0 -25
- package/dist-lib/components/pages/list/page-size.d.ts +0 -3
- package/dist-lib/components/pages/list/sortable-header.d.ts +0 -2
- package/dist-lib/components/pages/list/table-features.d.ts +0 -14
- package/dist-lib/components/pages/list/use-filter-value-labels.d.ts +0 -24
- package/dist-lib/components/pages/list/useActiveView.d.ts +0 -45
- package/dist-lib/components/pages/list/useHeaderReorder.d.ts +0 -26
- package/dist-lib/components/pages/list/useListColumnLayout.d.ts +0 -38
- package/dist-lib/components/pages/list/useListQuery.d.ts +0 -67
- package/dist-lib/components/pages/list/useListRowInteraction.d.ts +0 -61
- package/dist-lib/components/pages/list/useListSelection.d.ts +0 -31
- package/dist-lib/components/pages/list/useListSort.d.ts +0 -46
- package/dist-lib/components/pages/list/useListViews.d.ts +0 -57
- package/dist-lib/components/pages/list/useRowMenu.d.ts +0 -46
- package/dist-lib/components/pages/profile/Preferences.d.ts +0 -1
- package/dist-lib/components/pages/profile/Profile.d.ts +0 -7
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.d.ts +0 -2
- package/dist-lib/components/params/ParamsBlock.d.ts +0 -13
- package/dist-lib/components/params/param-editors.d.ts +0 -20
- package/dist-lib/components/primitives/Avatar.d.ts +0 -6
- package/dist-lib/components/primitives/BoolToggle.d.ts +0 -7
- package/dist-lib/components/primitives/BrandGlyph.d.ts +0 -8
- package/dist-lib/components/primitives/BrandLogo.d.ts +0 -12
- package/dist-lib/components/primitives/Btn.d.ts +0 -19
- package/dist-lib/components/primitives/Check.d.ts +0 -7
- package/dist-lib/components/primitives/Chip.d.ts +0 -9
- package/dist-lib/components/primitives/ClassifiedFieldLocked.d.ts +0 -9
- package/dist-lib/components/primitives/Dropdown.d.ts +0 -20
- package/dist-lib/components/primitives/Fields.d.ts +0 -111
- package/dist-lib/components/primitives/HoverCard.d.ts +0 -15
- package/dist-lib/components/primitives/IconBtn.d.ts +0 -11
- package/dist-lib/components/primitives/Icons.d.ts +0 -136
- package/dist-lib/components/primitives/Kbd.d.ts +0 -4
- package/dist-lib/components/primitives/MenuItem.d.ts +0 -14
- package/dist-lib/components/primitives/Pill.d.ts +0 -11
- package/dist-lib/components/primitives/RecordIdBadge.d.ts +0 -8
- package/dist-lib/components/primitives/RowField.d.ts +0 -10
- package/dist-lib/components/primitives/SectionCard.d.ts +0 -24
- package/dist-lib/components/primitives/Spinner.d.ts +0 -3
- package/dist-lib/components/primitives/Tooltip.d.ts +0 -34
- package/dist-lib/components/primitives/dataTableStyles.d.ts +0 -4
- package/dist-lib/components/primitives/index.d.ts +0 -37
- package/dist-lib/components/shared/ChangePasswordDialog.d.ts +0 -9
- package/dist-lib/components/shared/ConfirmDialog.d.ts +0 -11
- package/dist-lib/components/shared/CopyButton.d.ts +0 -8
- package/dist-lib/components/shared/DynamicIcon.d.ts +0 -20
- package/dist-lib/components/shared/EmptyState.d.ts +0 -9
- package/dist-lib/components/shared/ErrorBoundary.d.ts +0 -17
- package/dist-lib/components/shared/LoadingSkeleton.d.ts +0 -6
- package/dist-lib/components/shared/LucideIcon.d.ts +0 -16
- package/dist-lib/components/shared/Markdown.d.ts +0 -3
- package/dist-lib/components/shared/MarkdownRenderer.d.ts +0 -11
- package/dist-lib/components/shared/RefreshControl.d.ts +0 -25
- package/dist-lib/components/shared/StatusGroupsDisplay.d.ts +0 -11
- package/dist-lib/components/shared/StatusStepper.d.ts +0 -13
- package/dist-lib/components/shared/toast/DeclarionToast.d.ts +0 -31
- package/dist-lib/components/shared/useOwnRefresh.d.ts +0 -9
- package/dist-lib/embed/EmbedAuthBootstrap.d.ts +0 -8
- package/dist-lib/embed/EmbedContext.d.ts +0 -50
- package/dist-lib/embed/EmbedDirtyReporter.d.ts +0 -10
- package/dist-lib/embed/EmbedHistoryTracker.d.ts +0 -1
- package/dist-lib/embed/EmbedLocationReporter.d.ts +0 -8
- package/dist-lib/embed/EmbedResizeReporter.d.ts +0 -6
- package/dist-lib/embed/EmbedUnsavedGuard.d.ts +0 -7
- package/dist-lib/embed/embed-dirty.d.ts +0 -24
- package/dist-lib/embed/embed-history.d.ts +0 -19
- package/dist-lib/embed/embed-nav-guard.d.ts +0 -20
- package/dist-lib/embed/file-src.d.ts +0 -63
- package/dist-lib/embed/handshake.d.ts +0 -57
- package/dist-lib/embed/index.d.ts +0 -19
- package/dist-lib/embed/params.d.ts +0 -75
- package/dist-lib/embed/protocol.d.ts +0 -165
- package/dist-lib/embed/screen-location.d.ts +0 -50
- package/dist-lib/embed/theme.d.ts +0 -34
- package/dist-lib/embed/token.d.ts +0 -57
- package/dist-lib/embed/useEmbedNavigate.d.ts +0 -48
- package/dist-lib/embed/useGlobalLinkInterceptor.d.ts +0 -66
- package/dist-lib/failure-BUxXuP4c.js +0 -158
- package/dist-lib/format-count-bXVfHzbI.js +0 -1771
- package/dist-lib/hooks/useActionData.d.ts +0 -61
- package/dist-lib/hooks/useAgentConversation.d.ts +0 -24
- package/dist-lib/hooks/useAllEntityData.d.ts +0 -16
- package/dist-lib/hooks/useAssociatedData.d.ts +0 -10
- package/dist-lib/hooks/useAuth.d.ts +0 -22
- package/dist-lib/hooks/useBranding.d.ts +0 -8
- package/dist-lib/hooks/useBrandingChrome.d.ts +0 -59
- package/dist-lib/hooks/useChildrenData.d.ts +0 -3
- package/dist-lib/hooks/useColumns.d.ts +0 -13
- package/dist-lib/hooks/useCurrentScreen.d.ts +0 -34
- package/dist-lib/hooks/useCursorEntityData.d.ts +0 -79
- package/dist-lib/hooks/useDebounce.d.ts +0 -1
- package/dist-lib/hooks/useEntity.d.ts +0 -2
- package/dist-lib/hooks/useEntityData.d.ts +0 -41
- package/dist-lib/hooks/useFilters.d.ts +0 -14
- package/dist-lib/hooks/useImpersonation.d.ts +0 -23
- package/dist-lib/hooks/useLanguage.d.ts +0 -4
- package/dist-lib/hooks/useLiveObject.d.ts +0 -9
- package/dist-lib/hooks/useLongPress.d.ts +0 -29
- package/dist-lib/hooks/useMutations.d.ts +0 -13
- package/dist-lib/hooks/useObject.d.ts +0 -11
- package/dist-lib/hooks/useObjectStatus.d.ts +0 -5
- package/dist-lib/hooks/usePageState.d.ts +0 -32
- package/dist-lib/hooks/usePageStateRuntime.d.ts +0 -27
- package/dist-lib/hooks/usePageStateTtl.d.ts +0 -11
- package/dist-lib/hooks/useParams.d.ts +0 -49
- package/dist-lib/hooks/useProperties.d.ts +0 -5
- package/dist-lib/hooks/useRealtimeThresholds.d.ts +0 -1
- package/dist-lib/hooks/useRegisterScreenTab.d.ts +0 -11
- package/dist-lib/hooks/useResponsiveMode.d.ts +0 -27
- package/dist-lib/hooks/useSSE.d.ts +0 -31
- package/dist-lib/hooks/useSchema.d.ts +0 -1
- package/dist-lib/hooks/useScreen.d.ts +0 -2
- package/dist-lib/hooks/useScreenBack.d.ts +0 -21
- package/dist-lib/hooks/useScreenTab.d.ts +0 -10
- package/dist-lib/hooks/useTabNavigate.d.ts +0 -34
- package/dist-lib/hooks/useTabSearchMirror.d.ts +0 -1
- package/dist-lib/hooks/useTabTitle.d.ts +0 -2
- package/dist-lib/hooks/useText.d.ts +0 -3
- package/dist-lib/hooks/useTimelineData.d.ts +0 -10
- package/dist-lib/hooks/useVersionWatcher.d.ts +0 -30
- package/dist-lib/hooks/useViews.d.ts +0 -26
- package/dist-lib/lib/action-dispatch.d.ts +0 -8
- package/dist-lib/lib/actions.d.ts +0 -254
- package/dist-lib/lib/anchor.d.ts +0 -36
- package/dist-lib/lib/brand-tokens.d.ts +0 -43
- package/dist-lib/lib/branding.d.ts +0 -20
- package/dist-lib/lib/canonical-url.d.ts +0 -27
- package/dist-lib/lib/capabilityPrefetch.d.ts +0 -6
- package/dist-lib/lib/child-config.d.ts +0 -24
- package/dist-lib/lib/children-validation.d.ts +0 -5
- package/dist-lib/lib/decimal-text.d.ts +0 -1
- package/dist-lib/lib/display-value.d.ts +0 -1
- package/dist-lib/lib/document-templates.d.ts +0 -11
- package/dist-lib/lib/download.d.ts +0 -21
- package/dist-lib/lib/evidence-verdict.d.ts +0 -11
- package/dist-lib/lib/failure.d.ts +0 -2
- package/dist-lib/lib/field-classification.d.ts +0 -61
- package/dist-lib/lib/field-regions.d.ts +0 -8
- package/dist-lib/lib/filter-evaluator.d.ts +0 -16
- package/dist-lib/lib/filters.d.ts +0 -93
- package/dist-lib/lib/format-count.d.ts +0 -41
- package/dist-lib/lib/html-state.d.ts +0 -11
- package/dist-lib/lib/language.d.ts +0 -19
- package/dist-lib/lib/longPressGesture.d.ts +0 -55
- package/dist-lib/lib/mass-edit.d.ts +0 -32
- package/dist-lib/lib/page-inset.d.ts +0 -3
- package/dist-lib/lib/quick-add.d.ts +0 -2
- package/dist-lib/lib/realtime-query-keys.d.ts +0 -22
- package/dist-lib/lib/realtime-reconcile.d.ts +0 -33
- package/dist-lib/lib/realtime-resync.d.ts +0 -23
- package/dist-lib/lib/record-documents-key.d.ts +0 -1
- package/dist-lib/lib/rich-text.d.ts +0 -14
- package/dist-lib/lib/rowClickGesture.d.ts +0 -26
- package/dist-lib/lib/safe-url.d.ts +0 -15
- package/dist-lib/lib/schema-routing.d.ts +0 -3
- package/dist-lib/lib/screen-back.d.ts +0 -70
- package/dist-lib/lib/scroll-restoration.d.ts +0 -90
- package/dist-lib/lib/size-value.d.ts +0 -16
- package/dist-lib/lib/sort.d.ts +0 -72
- package/dist-lib/lib/timestamp.d.ts +0 -53
- package/dist-lib/lib/toast.d.ts +0 -49
- package/dist-lib/lib/ui-actions.d.ts +0 -12
- package/dist-lib/lib/utils.d.ts +0 -9
- package/dist-lib/lib/variants.d.ts +0 -7
- package/dist-lib/lib/versionTracker.d.ts +0 -72
- package/dist-lib/lib/viewport-category.d.ts +0 -44
- package/dist-lib/main.d.ts +0 -1
- package/dist-lib/registry-nSeHd5si.js +0 -1956
- package/dist-lib/safe-url-oSJw5pzO.js +0 -34
- package/dist-lib/stores/auth.d.ts +0 -16
- package/dist-lib/stores/list-layout.d.ts +0 -85
- package/dist-lib/stores/page-state.d.ts +0 -61
- package/dist-lib/stores/preferences.d.ts +0 -37
- package/dist-lib/stores/realtime.d.ts +0 -96
- package/dist-lib/stores/screen-registry.d.ts +0 -17
- package/dist-lib/stores/tabs.d.ts +0 -73
- package/dist-lib/types/api.d.ts +0 -579
- package/dist-lib/types/fieldType.d.ts +0 -2
- package/dist-lib/types/files.d.ts +0 -79
- package/dist-lib/types/ordmap.d.ts +0 -39
- package/dist-lib/types/schema.d.ts +0 -1089
- package/dist-lib/useCurrentScreen-0WBj7wT6.js +0 -7860
- package/dist-lib/useListQuery-C7dq_sEo.js +0 -103
- package/dist-lib/useOwnRefresh-q80kCMMh.js +0 -1167
- package/dist-lib/useProperties-CeGKtq7Q.js +0 -83
- package/dist-lib/useTabSearchMirror-CzNAj82Q.js +0 -175
- package/dist-lib/useText-BsedsJ-J.js +0 -952
- package/dist-lib/vite/fingerprint-plugin.d.ts +0 -44
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
//#region src/lib/safe-url.ts
|
|
2
|
-
var e = [
|
|
3
|
-
"http:",
|
|
4
|
-
"https:",
|
|
5
|
-
"mailto:"
|
|
6
|
-
], t = /[\u0000-\u001f\u007f]/g;
|
|
7
|
-
function n(n) {
|
|
8
|
-
if (!n) return;
|
|
9
|
-
let r = n.trim();
|
|
10
|
-
if (!r) return;
|
|
11
|
-
let i = r.replace(t, "");
|
|
12
|
-
if (!i || i.startsWith("//")) return;
|
|
13
|
-
let a = i.match(/^([a-zA-Z][a-zA-Z0-9+.-]*):/);
|
|
14
|
-
if (a) {
|
|
15
|
-
let t = a[1].toLowerCase() + ":";
|
|
16
|
-
if (!e.includes(t)) return;
|
|
17
|
-
}
|
|
18
|
-
return i;
|
|
19
|
-
}
|
|
20
|
-
function r(e) {
|
|
21
|
-
if (!e) return !1;
|
|
22
|
-
if (e.startsWith("//")) return !0;
|
|
23
|
-
let t = typeof window < "u" ? window.location.href : "http://localhost/", n;
|
|
24
|
-
try {
|
|
25
|
-
n = new URL(e, t);
|
|
26
|
-
} catch {
|
|
27
|
-
return !1;
|
|
28
|
-
}
|
|
29
|
-
if (n.protocol !== "http:" && n.protocol !== "https:") return !0;
|
|
30
|
-
let r = typeof window < "u" ? window.location.origin : "http://localhost";
|
|
31
|
-
return n.origin !== r;
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
export { n, r as t };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { AuthUser, Tenant } from "../types/api.d.ts";
|
|
2
|
-
interface AuthState {
|
|
3
|
-
user: AuthUser | null;
|
|
4
|
-
isAuthenticated: boolean;
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
activeTenant: Tenant | null;
|
|
7
|
-
tenants: Tenant[];
|
|
8
|
-
initialize: () => Promise<void>;
|
|
9
|
-
refreshMe: () => Promise<void>;
|
|
10
|
-
setUser: (user: AuthUser, tenant?: Tenant) => void;
|
|
11
|
-
setTenants: (tenants: Tenant[]) => void;
|
|
12
|
-
setActiveTenant: (tenant: Tenant) => void;
|
|
13
|
-
logout: () => Promise<void>;
|
|
14
|
-
}
|
|
15
|
-
export declare const useAuthStore: import("zustand").UseBoundStore<import("zustand").StoreApi<AuthState>>;
|
|
16
|
-
export {};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-device list-table WIDTH store. Holds ONE thing: column pixel widths,
|
|
3
|
-
* device-local in localStorage, per (tenant, user, SCREEN) by column id. Screen-keyed, so
|
|
4
|
-
* widening a column once holds across EVERY view of that screen on this device.
|
|
5
|
-
* Absent entry = the YAML default (`field.display.width ?? 150`), resolved by
|
|
6
|
-
* TanStack when `header.getSize()` reads `columnSizing[id] ?? columnDef.size`.
|
|
7
|
-
*
|
|
8
|
-
* Why widths are the ONLY thing here: order/visibility/sort/filters already
|
|
9
|
-
* live in the URL and are persisted per device per tab by the `tabs` store -
|
|
10
|
-
* that is the single source of truth for the logical layout (a second store
|
|
11
|
-
* mirroring them caused a cold-open seed to clobber `?sort`; removed in rev 2).
|
|
12
|
-
* Width is the one column setting that must NOT ride a shareable URL: it is
|
|
13
|
-
* physical fit (a width tuned for a 27"/4K monitor would corrupt the same view
|
|
14
|
-
* for a teammate on a laptop), so it is device-local and never in a saved view.
|
|
15
|
-
*
|
|
16
|
-
* This does NOT violate the "browser stores nothing" appearance-preferences
|
|
17
|
-
* rule (`preferences.ts`): that governs deployment BRANDING
|
|
18
|
-
* (theme/accent/density). Widths are device state of the same class as the
|
|
19
|
-
* `tabs` store, which already uses localStorage. Keying + persistence mirror
|
|
20
|
-
* `stores/tabs.ts`: a module-level (tenant,user) scope set via `setScope`, the
|
|
21
|
-
* whole snapshot under one key `declarion::${tenantId}::${userId}::listlayout`,
|
|
22
|
-
* hydrated on tenant switch. `childKey` callers pass a composite screenKey
|
|
23
|
-
* `${screenCode}::child::${childKey}`; the store is agnostic to it.
|
|
24
|
-
*/
|
|
25
|
-
/** Minimum resizable column width in px. Exported so the resize handler and
|
|
26
|
-
* the store's defensive clamp share ONE floor (no magic number). */
|
|
27
|
-
export declare const MIN_COL_WIDTH = 60;
|
|
28
|
-
/** Maximum resizable column width in px (a sane cap so a column can never
|
|
29
|
-
* become absurdly wide). Shared by the TanStack per-column `maxSize` and the
|
|
30
|
-
* store's defensive clamp. */
|
|
31
|
-
export declare const MAX_COL_WIDTH = 1200;
|
|
32
|
-
/** Snapshot schema version. A snapshot with a different `v` is discarded on
|
|
33
|
-
* read (future migrations plug in here). */
|
|
34
|
-
export declare const LIST_LAYOUT_VERSION = 2;
|
|
35
|
-
/** A screen's width overrides: colId -> pixel width. */
|
|
36
|
-
export type WidthMap = Record<string, number>;
|
|
37
|
-
interface LayoutSnapshot {
|
|
38
|
-
v: number;
|
|
39
|
-
/** screenKey -> (colId -> width). */
|
|
40
|
-
widths: Record<string, WidthMap>;
|
|
41
|
-
/** True once this user has resized any column on this device - gates the
|
|
42
|
-
* one-time "widths are personal per device" education toast. */
|
|
43
|
-
resizeEduShown?: boolean;
|
|
44
|
-
}
|
|
45
|
-
interface LayoutState extends LayoutSnapshot {
|
|
46
|
-
setScope: (tenantId: string | null, userId: string | null) => void;
|
|
47
|
-
hydrate: () => void;
|
|
48
|
-
/** Set one column's width (clamped). */
|
|
49
|
-
setWidth: (screenKey: string, colId: string, width: number) => void;
|
|
50
|
-
/** Merge a batch of column widths (clamped). */
|
|
51
|
-
setWidths: (screenKey: string, widths: WidthMap) => void;
|
|
52
|
-
/** Drop all width overrides for a screen (back to YAML defaults). Stored as
|
|
53
|
-
* an empty map, not a deleted key, so the reset propagates across tabs. */
|
|
54
|
-
resetWidths: (screenKey: string) => void;
|
|
55
|
-
/** Drop width entries for colIds no longer in the screen schema. */
|
|
56
|
-
prune: (screenKey: string, validColIds: string[]) => void;
|
|
57
|
-
/** Record that the one-time resize-education toast has been shown. */
|
|
58
|
-
markResizeEduShown: () => void;
|
|
59
|
-
}
|
|
60
|
-
/** Narrow an untrusted persisted snapshot (localStorage is hostile) to
|
|
61
|
-
* LayoutSnapshot, discarding anything malformed or of a foreign version. */
|
|
62
|
-
export declare function parseLayoutSnapshot(raw: string): LayoutSnapshot | null;
|
|
63
|
-
/**
|
|
64
|
-
* Merge an incoming cross-tab snapshot into the local one, last-writer-wins per
|
|
65
|
-
* screenKey (a screenKey present in `incoming` replaces the local value
|
|
66
|
-
* wholesale, so a prune / reset-to-`{}` / edit all propagate; screenKeys only
|
|
67
|
-
* the local tab touched survive).
|
|
68
|
-
*/
|
|
69
|
-
export declare function mergeSnapshot(local: LayoutSnapshot, incoming: LayoutSnapshot): LayoutSnapshot;
|
|
70
|
-
export declare const useListLayoutStore: import("zustand").UseBoundStore<import("zustand").StoreApi<LayoutState>>;
|
|
71
|
-
/** Subscribe to the window `storage` event for the layout key and merge an
|
|
72
|
-
* incoming snapshot (last-writer-wins per screenKey). Idempotent. */
|
|
73
|
-
export declare function startListLayoutCrossTabSync(): void;
|
|
74
|
-
export interface ScopedListLayout {
|
|
75
|
-
widths: WidthMap;
|
|
76
|
-
/** Whether the one-time resize-education toast has already been shown. */
|
|
77
|
-
resizeEduShown: boolean;
|
|
78
|
-
setWidth: (colId: string, width: number) => void;
|
|
79
|
-
setWidths: (widths: WidthMap) => void;
|
|
80
|
-
resetWidths: () => void;
|
|
81
|
-
prune: (validColIds: string[]) => void;
|
|
82
|
-
markResizeEduShown: () => void;
|
|
83
|
-
}
|
|
84
|
-
export declare function useListLayout(screenKey: string | null | undefined): ScopedListLayout;
|
|
85
|
-
export {};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import type { QueryClient, QueryKey } from "@tanstack/react-query";
|
|
2
|
-
/** Default retention window before the `ui_page_state_ttl_ms` parameter
|
|
3
|
-
* resolves (and the fallback when it is absent). 30 minutes - long enough to
|
|
4
|
-
* switch among tabs all day instantly, bounded enough to keep memory sane.
|
|
5
|
-
* Mirrors the YAML default in core_parameters.yaml; both must agree. */
|
|
6
|
-
export declare const DEFAULT_PAGE_STATE_TTL_MS: number;
|
|
7
|
-
/** Hard upper bound on retained-page entries. Bounds total memory and is the
|
|
8
|
-
* ONLY bound in embed mode, which has no tab-close signal at all. Generous
|
|
9
|
-
* relative to `preferences.tabs_max_open` (a user rarely revisits more than this many
|
|
10
|
-
* distinct URLs within one TTL window); the least-recently-active entry is
|
|
11
|
-
* evicted first when the cap is exceeded. */
|
|
12
|
-
export declare const PAGE_STATE_MAX_ENTRIES = 64;
|
|
13
|
-
/** One retained page's deep state. `bag` holds small JSON-serializable deep
|
|
14
|
-
* values; `queryKeys` references the screen's PRIMARY React Query reads so an
|
|
15
|
-
* eviction can release the cached data alongside the deep state. */
|
|
16
|
-
export interface PageStateEntry {
|
|
17
|
-
bag: Record<string, unknown>;
|
|
18
|
-
lastActiveAt: number;
|
|
19
|
-
queryKeys: QueryKey[];
|
|
20
|
-
}
|
|
21
|
-
interface PageStateStore {
|
|
22
|
-
/** pageKey (canonical URL) -> retained-page deep state. */
|
|
23
|
-
entries: Record<string, PageStateEntry>;
|
|
24
|
-
/** Active retention window. `<= 0` disables retention. Set by the runtime
|
|
25
|
-
* from the resolved `ui_page_state_ttl_ms`; defaults to the 30-min fallback
|
|
26
|
-
* so retention works before the parameter loads. */
|
|
27
|
-
ttlMs: number;
|
|
28
|
-
/** Set the retention window. `<= 0` disables retention and immediately clears
|
|
29
|
-
* every entry (with linked `removeQueries`), so a runtime toggle to "off"
|
|
30
|
-
* frees memory at once. */
|
|
31
|
-
setTtl: (ttlMs: number) => void;
|
|
32
|
-
/** Write a deep value under `pageKey`, refreshing `lastActiveAt` and
|
|
33
|
-
* enforcing the LRU cap. No-op when retention is disabled. */
|
|
34
|
-
set: (pageKey: string, key: string, value: unknown) => void;
|
|
35
|
-
/** Read a deep value, or `undefined` when absent / reaped / retention off. */
|
|
36
|
-
read: (pageKey: string, key: string) => unknown;
|
|
37
|
-
/** Refresh `lastActiveAt` for a still-mounted view so it is not reaped while
|
|
38
|
-
* active. No-op when the entry is absent or retention is disabled. */
|
|
39
|
-
touch: (pageKey: string) => void;
|
|
40
|
-
/** Track one of the screen's PRIMARY React Query keys so eviction releases
|
|
41
|
-
* the cached data. Deduplicated. No-op when retention is disabled. */
|
|
42
|
-
registerQueryKey: (pageKey: string, queryKey: QueryKey) => void;
|
|
43
|
-
/** Explicitly evict one retained page NOW: drop its deep state AND
|
|
44
|
-
* `removeQueries` its tracked keys. Idempotent; works even when retention is
|
|
45
|
-
* disabled (used by per-screen kill policies, e.g. a deleted detail record). */
|
|
46
|
-
kill: (pageKey: string) => void;
|
|
47
|
-
/** Reap every entry stale past the active TTL (`now - lastActiveAt > ttlMs`),
|
|
48
|
-
* releasing data + deep state together. When retention is disabled, evicts
|
|
49
|
-
* all. `now` is injected for testability. */
|
|
50
|
-
sweep: (now: number) => void;
|
|
51
|
-
/** Drop EVERY retained page NOW (releasing all tracked queries) without
|
|
52
|
-
* changing the TTL - the auth-scope reset. Called on logout so a different
|
|
53
|
-
* user signing in within the same JS session cannot restore the prior user's
|
|
54
|
-
* deep state (selection, scroll, custom-screen values). */
|
|
55
|
-
clear: () => void;
|
|
56
|
-
}
|
|
57
|
-
/** Register the app's QueryClient so retained-page eviction can release the
|
|
58
|
-
* tracked entity-read queries. Called once at app mount. */
|
|
59
|
-
export declare function setPageStateQueryClient(client: QueryClient | null): void;
|
|
60
|
-
export declare const usePageStateStore: import("zustand").UseBoundStore<import("zustand").StoreApi<PageStateStore>>;
|
|
61
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { BrandingPreferences } from "../types/api.d.ts";
|
|
2
|
-
export type ColorScheme = "light" | "dark";
|
|
3
|
-
export type AccentId = "violet" | "blue" | "teal" | "amber" | "rose";
|
|
4
|
-
export type Density = "compact" | "comfortable" | "cozy";
|
|
5
|
-
export type SidebarMode = "wide" | "collapsed";
|
|
6
|
-
export type TabsPosition = "top" | "bottom";
|
|
7
|
-
export type AiSurface = "command" | "panel" | "both" | "off";
|
|
8
|
-
export type ToastPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
9
|
-
export interface Preferences {
|
|
10
|
-
colorScheme: ColorScheme;
|
|
11
|
-
accent: AccentId;
|
|
12
|
-
density: Density;
|
|
13
|
-
sidebar: SidebarMode;
|
|
14
|
-
tabsPosition: TabsPosition;
|
|
15
|
-
tabsMaxOpen: number;
|
|
16
|
-
/** When false, tabs are not persisted across reloads. */
|
|
17
|
-
tabsPersist: boolean;
|
|
18
|
-
radius: number;
|
|
19
|
-
zebra: boolean;
|
|
20
|
-
aiSurface: AiSurface;
|
|
21
|
-
/** Where toasts appear. Read by <Toaster> in app.tsx. */
|
|
22
|
-
toastPosition: ToastPosition;
|
|
23
|
-
}
|
|
24
|
-
export declare function applyPreferences(p: Preferences): void;
|
|
25
|
-
interface PreferencesState extends Preferences {
|
|
26
|
-
set: <K extends keyof Preferences>(key: K, value: Preferences[K]) => void;
|
|
27
|
-
setMany: (patch: Partial<Preferences>) => void;
|
|
28
|
-
/** Apply the deployment's defaults from `branding.preferences`. ONLY fills
|
|
29
|
-
* keys the user has not already changed this session, so a branding
|
|
30
|
-
* refetch never clobbers a toggle the user just clicked. */
|
|
31
|
-
hydrateFromBranding: (preferences: BrandingPreferences | undefined) => void;
|
|
32
|
-
/** Forget every session choice and return to the deployment's defaults —
|
|
33
|
-
* the same state a fresh page load resolves, reproduced on demand. */
|
|
34
|
-
resetToDefaults: (preferences: BrandingPreferences | undefined) => void;
|
|
35
|
-
}
|
|
36
|
-
export declare const usePreferencesStore: import("zustand").UseBoundStore<import("zustand").StoreApi<PreferencesState>>;
|
|
37
|
-
export {};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import type { QueryCacheNotifyEvent, QueryKey } from "@tanstack/react-query";
|
|
2
|
-
/** A query as the query cache holds it, whatever its data type. */
|
|
3
|
-
export type CachedQuery = QueryCacheNotifyEvent["query"];
|
|
4
|
-
/** An entity the relay is not delivering; `mark` lets a resync drop only the mark it saw. */
|
|
5
|
-
export interface DegradedMark {
|
|
6
|
-
mark: number;
|
|
7
|
-
since: number;
|
|
8
|
-
}
|
|
9
|
-
export interface RealtimeThresholds {
|
|
10
|
-
pauseGraceMs: number;
|
|
11
|
-
silenceMs: number;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Which query keys a resync covers. `all` and `entities` also take in matching
|
|
15
|
-
* keys first observed while the resync is pending; `keys` is fixed.
|
|
16
|
-
*/
|
|
17
|
-
export type ResyncScope = {
|
|
18
|
-
kind: "all";
|
|
19
|
-
} | {
|
|
20
|
-
kind: "entities";
|
|
21
|
-
entities: ReadonlySet<string>;
|
|
22
|
-
} | {
|
|
23
|
-
kind: "keys";
|
|
24
|
-
};
|
|
25
|
-
export interface Resync {
|
|
26
|
-
id: number;
|
|
27
|
-
/** The fetch generation when it opened; only a fetch stamped above it satisfies a key. */
|
|
28
|
-
generation: number;
|
|
29
|
-
openedAt: number;
|
|
30
|
-
/** A refused read: shown at once, never issued, closed only by a fetch someone else starts. */
|
|
31
|
-
standing: boolean;
|
|
32
|
-
issued: boolean;
|
|
33
|
-
/** Whether issuing waits a random delay, so a fleet-wide cause does not burst. */
|
|
34
|
-
jitter: boolean;
|
|
35
|
-
scope: ResyncScope;
|
|
36
|
-
/** Query hash → key. */
|
|
37
|
-
keys: ReadonlyMap<string, QueryKey>;
|
|
38
|
-
/** Query hash → the query last seen observed under it, so a removed one still blocks while observed. */
|
|
39
|
-
observed: ReadonlyMap<string, CachedQuery>;
|
|
40
|
-
/** Marks dropped on completion, each only while it still carries this number. */
|
|
41
|
-
carriedMarks: ReadonlyMap<string, number>;
|
|
42
|
-
/** Entities with an observed key not yet satisfied. */
|
|
43
|
-
blocking: ReadonlySet<string>;
|
|
44
|
-
}
|
|
45
|
-
interface RealtimeState {
|
|
46
|
-
degradedEntities: ReadonlyMap<string, DegradedMark>;
|
|
47
|
-
/** Mark one entity degraded. A repeated mark renumbers it and keeps its start. */
|
|
48
|
-
markDegraded: (entityCode: string) => void;
|
|
49
|
-
/** Drop each mark named, only while the entity still carries that number. */
|
|
50
|
-
unmarkDegraded: (marks: ReadonlyMap<string, number>) => void;
|
|
51
|
-
/** Self-closing: no connection has stated its snapshot, or it went silent. */
|
|
52
|
-
connectionInterruptedSince: number | null;
|
|
53
|
-
holdConnectionInterruption: () => void;
|
|
54
|
-
clearConnectionInterruption: () => void;
|
|
55
|
-
/** Self-closing: the server's last word says the relay may not be streaming. */
|
|
56
|
-
relayInterruptedSince: number | null;
|
|
57
|
-
holdRelayInterruption: () => void;
|
|
58
|
-
clearRelayInterruption: () => void;
|
|
59
|
-
/** Self-closing: a connection presented a position and its replay has not applied. */
|
|
60
|
-
replayStartedAt: number | null;
|
|
61
|
-
startReplay: () => void;
|
|
62
|
-
endReplay: () => void;
|
|
63
|
-
/**
|
|
64
|
-
* Null while the declared thresholds load. `unreadable` is itself a held
|
|
65
|
-
* connection interruption, shown at once: claiming "Live" without the means
|
|
66
|
-
* to know is the defect this model removes.
|
|
67
|
-
*/
|
|
68
|
-
thresholds: RealtimeThresholds | "unreadable" | null;
|
|
69
|
-
setThresholds: (thresholds: RealtimeThresholds | "unreadable" | null) => void;
|
|
70
|
-
resyncs: readonly Resync[];
|
|
71
|
-
addResync: (resync: Omit<Resync, "id">) => number;
|
|
72
|
-
updateResync: (id: number, patch: Partial<Omit<Resync, "id">>) => void;
|
|
73
|
-
removeResync: (id: number) => void;
|
|
74
|
-
}
|
|
75
|
-
export declare const useRealtimeStore: import("zustand").UseBoundStore<import("zustand").StoreApi<RealtimeState>>;
|
|
76
|
-
export declare function isEntityLive(realtimeFlag: boolean | undefined, degradedEntities: {
|
|
77
|
-
has(entityCode: string): boolean;
|
|
78
|
-
}, entityCode: string): boolean;
|
|
79
|
-
type CurrentnessInputs = Pick<RealtimeState, "degradedEntities" | "connectionInterruptedSince" | "relayInterruptedSince" | "replayStartedAt" | "thresholds" | "resyncs">;
|
|
80
|
-
/**
|
|
81
|
-
* Whether an entity is current at `now`, and the next instant that answer can
|
|
82
|
-
* flip without any state changing - when a self-closing cause reaches the pause
|
|
83
|
-
* grace. Measured from each cause's stored start, so every surface flips at the
|
|
84
|
-
* same instant.
|
|
85
|
-
*/
|
|
86
|
-
export declare function screenCurrentness(state: CurrentnessInputs, realtimeFlag: boolean | undefined, entityCode: string, now: number): {
|
|
87
|
-
live: boolean;
|
|
88
|
-
recheckAt: number | null;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* The one predicate every indicator reads: is the screen showing this entity
|
|
92
|
-
* CURRENT. The rows keep rendering throughout; this says whether they may be
|
|
93
|
-
* behind.
|
|
94
|
-
*/
|
|
95
|
-
export declare function useScreenIsLive(realtimeFlag: boolean | undefined, entityCode: string): boolean;
|
|
96
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ComponentType } from "react";
|
|
2
|
-
/**
|
|
3
|
-
* What the platform hands a custom screen when it mounts it.
|
|
4
|
-
*
|
|
5
|
-
* `screenCode` is the same handle every standard page already receives, so a custom
|
|
6
|
-
* screen can read its own declaration (name, description, entity, route) instead of
|
|
7
|
-
* restating it in code. Prefer the `useCurrentScreen()` hook - it reaches any component
|
|
8
|
-
* in the tree, not just the top one - and take this prop only when the top-level
|
|
9
|
-
* component itself needs the code.
|
|
10
|
-
*
|
|
11
|
-
* It is optional: a screen registered before this existed keeps compiling and running.
|
|
12
|
-
*/
|
|
13
|
-
export interface CustomScreenProps {
|
|
14
|
-
screenCode?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare function registerScreen(code: string, component: ComponentType<CustomScreenProps>): void;
|
|
17
|
-
export declare function getRegisteredScreen(code: string): ComponentType<CustomScreenProps> | undefined;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
export type TabMode = "view" | "edit" | "create";
|
|
2
|
-
export type TabCloseScope = "current" | "others" | "right" | "all";
|
|
3
|
-
/**
|
|
4
|
-
* Origin-aware Back return target. The CANONICAL stored shape: `pathname` is an
|
|
5
|
-
* in-app path (no origin, starts `/` not `//`), `search` is the query string
|
|
6
|
-
* WITHOUT a leading `?` (matches `TabItem.search`), `hash` carries its leading
|
|
7
|
-
* `#`. Converted to the `?`-prefixed router form only at the navigate boundary.
|
|
8
|
-
*
|
|
9
|
-
* `hash` lives here but NOT on `TabItem` (which has no `hash` field): a closed
|
|
10
|
-
* origin tab with a hash is reopened via pathname+search, and the hash is
|
|
11
|
-
* applied only in the `navigate()` call. `tabId`/`title`/`icon`/`screen` are
|
|
12
|
-
* hints for switching to (or reopening) the origin tab. Never stores secrets,
|
|
13
|
-
* external URLs, or row data.
|
|
14
|
-
*/
|
|
15
|
-
export interface ReturnTarget {
|
|
16
|
-
pathname: string;
|
|
17
|
-
search?: string;
|
|
18
|
-
hash?: string;
|
|
19
|
-
tabId?: string;
|
|
20
|
-
title?: string;
|
|
21
|
-
icon?: string;
|
|
22
|
-
screen?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface TabItem {
|
|
25
|
-
id: string;
|
|
26
|
-
pathname: string;
|
|
27
|
-
search: string;
|
|
28
|
-
title: string;
|
|
29
|
-
derivedTitle?: boolean;
|
|
30
|
-
icon?: string;
|
|
31
|
-
closable: boolean;
|
|
32
|
-
area?: string;
|
|
33
|
-
screen?: string;
|
|
34
|
-
navId?: string;
|
|
35
|
-
entity?: string;
|
|
36
|
-
record?: Record<string, unknown>;
|
|
37
|
-
mode?: TabMode;
|
|
38
|
-
dirty?: boolean;
|
|
39
|
-
returnTo?: ReturnTarget | null;
|
|
40
|
-
}
|
|
41
|
-
interface TabState {
|
|
42
|
-
tabs: TabItem[];
|
|
43
|
-
activeTabId: string | null;
|
|
44
|
-
openTab: (tab: Omit<TabItem, "id">) => string;
|
|
45
|
-
closeTab: (id: string) => void;
|
|
46
|
-
closeTabs: (ids: string[]) => TabItem | null;
|
|
47
|
-
switchTab: (id: string) => void;
|
|
48
|
-
reorderTabs: (activeId: string, overId: string) => void;
|
|
49
|
-
findTabByPathname: (pathname: string) => TabItem | undefined;
|
|
50
|
-
updateTabTitle: (id: string, title: string, derived?: boolean) => void;
|
|
51
|
-
updateTabSearch: (id: string, search: string) => void;
|
|
52
|
-
setReturnTarget: (id: string, rt: ReturnTarget | null) => void;
|
|
53
|
-
commitTabNavigation: (id: string, patch: {
|
|
54
|
-
search: string;
|
|
55
|
-
returnTo?: ReturnTarget | null;
|
|
56
|
-
}) => void;
|
|
57
|
-
setDirty: (id: string, dirty: boolean) => void;
|
|
58
|
-
setMode: (id: string, mode: TabMode) => void;
|
|
59
|
-
updateTab: (id: string, patch: Partial<TabItem>) => void;
|
|
60
|
-
setScope: (tenantId: string | null, userId: string | null) => void;
|
|
61
|
-
hydrate: () => void;
|
|
62
|
-
}
|
|
63
|
-
/** True for an auth/chrome route that must never create a tab or be captured
|
|
64
|
-
* as a Back origin. Shared by `openTab` and the origin-capture path. */
|
|
65
|
-
export declare function isExcludedRoute(pathname: string): boolean;
|
|
66
|
-
/** A same-origin in-app path: starts `/` but not `//` (the latter is a
|
|
67
|
-
* protocol-relative external URL). The single guard reused on capture, on
|
|
68
|
-
* snapshot load (localStorage is hostile), and in the tenant-landing peek. */
|
|
69
|
-
export declare function isSameOriginPath(pathname: unknown): pathname is string;
|
|
70
|
-
export declare function tabIdsForCloseScope(tabs: TabItem[], activeTabId: string | null, scope: TabCloseScope, targetId?: string): string[];
|
|
71
|
-
export declare function peekTenantLandingPath(tenantId: string, userId: string): string | null;
|
|
72
|
-
export declare const useTabStore: import("zustand").UseBoundStore<import("zustand").StoreApi<TabState>>;
|
|
73
|
-
export {};
|