@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,5 +0,0 @@
|
|
|
1
|
-
export declare function useSetProperty(entity: string | undefined, id: string | undefined): import("@tanstack/react-query").UseMutationResult<import("..").PropertyValue, Error, {
|
|
2
|
-
propertyCode: string;
|
|
3
|
-
value: unknown;
|
|
4
|
-
}, unknown>;
|
|
5
|
-
export declare function useDeleteProperty(entity: string | undefined, id: string | undefined): import("@tanstack/react-query").UseMutationResult<void, Error, string, unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useRealtimeThresholds(): void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type Entity, type Screen } from "../types/schema.d.ts";
|
|
2
|
-
/**
|
|
3
|
-
* The embed-guarded tab registration shared by the schema-driven Smart pages
|
|
4
|
-
* (`useRegisterScreenTab`) and the public custom-screen hook (`useScreenTab`),
|
|
5
|
-
* so the "open a tab for this screen" logic - and its embed guard - lives in one
|
|
6
|
-
* place. Registers `route` as a tab once; `search` is captured at first
|
|
7
|
-
* registration (the mirror syncs later changes), so it is excluded from the
|
|
8
|
-
* effect deps. No-op when `route` is absent or embed mode is on.
|
|
9
|
-
*/
|
|
10
|
-
export declare function useScreenTabRegistration(route: string | undefined, title: string, icon: string | undefined, search: string): void;
|
|
11
|
-
export declare function useRegisterScreenTab(screen: Screen | undefined, entity: Entity | undefined, search: string): void;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import { DEFAULT_RESPONSIVE_BREAKPOINTS, resolveViewportCategory, type ResponsiveBreakpoints, type ResponsiveMode, type ResponsiveViewport, type ViewportCategory } from "../lib/viewport-category.d.ts";
|
|
3
|
-
export { DEFAULT_RESPONSIVE_BREAKPOINTS, resolveViewportCategory, type ResponsiveBreakpoints, type ResponsiveMode, type ResponsiveViewport, type ViewportCategory, };
|
|
4
|
-
export declare function clearViewportCssVariables(): void;
|
|
5
|
-
export interface ResponsiveModeProviderProps {
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
breakpoints?: ResponsiveBreakpoints;
|
|
8
|
-
/**
|
|
9
|
-
* A measured viewport, substituted for `window`'s. Carries a WIDTH, from
|
|
10
|
-
* which the category is derived. Used by tests to place the app at a size.
|
|
11
|
-
*
|
|
12
|
-
* This is NOT how you force a device class - a forced class is not
|
|
13
|
-
* expressible as a width. Use `viewport` for that.
|
|
14
|
-
*/
|
|
15
|
-
viewportOverride?: ResponsiveViewport;
|
|
16
|
-
/**
|
|
17
|
-
* The deployment's declared device class, from
|
|
18
|
-
* `branding.chrome.{full,embed}.viewport`. `auto` (the default) derives it
|
|
19
|
-
* from the measured width, byte for byte as before. A forced value overrides
|
|
20
|
-
* the width for every consumer of the category at once.
|
|
21
|
-
*/
|
|
22
|
-
viewport?: ForcedViewport;
|
|
23
|
-
}
|
|
24
|
-
/** `auto` derives from width; anything else forces the category. */
|
|
25
|
-
export type ForcedViewport = "auto" | ViewportCategory;
|
|
26
|
-
export declare function ResponsiveModeProvider({ children, breakpoints, viewportOverride, viewport: declaredViewport, }: ResponsiveModeProviderProps): import("react").JSX.Element;
|
|
27
|
-
export declare function useResponsiveMode(): ResponsiveMode;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { type QueryClient } from "@tanstack/react-query";
|
|
2
|
-
import { type ChangedObject, type EntityAction } from "../api/events.d.ts";
|
|
3
|
-
export interface EntityChangedEvent {
|
|
4
|
-
entity: string;
|
|
5
|
-
action: EntityAction;
|
|
6
|
-
eventID?: string;
|
|
7
|
-
ids: string[];
|
|
8
|
-
objects?: ChangedObject[];
|
|
9
|
-
reason?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Applies one coalescing window of change frames, resolving once every query it
|
|
13
|
-
* touched claims no freshness it lacks - which is what lets the caller advance
|
|
14
|
-
* its resume position.
|
|
15
|
-
*/
|
|
16
|
-
export declare function applyEntityChanges(queryClient: QueryClient, events: EntityChangedEvent[], signal?: AbortSignal): Promise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* What a write of one's OWN settles: the rows it NAMED are re-read through the
|
|
19
|
-
* path a change frame takes, and `fallback` covers everything it does not
|
|
20
|
-
* identify.
|
|
21
|
-
*/
|
|
22
|
-
export declare function settleOwnWrite(queryClient: QueryClient, isAuthenticated: boolean, entity: string, rows: Array<Record<string, string>>, fallback: () => void): void;
|
|
23
|
-
export declare function evictEntityBackedQueries(queryClient: QueryClient): void;
|
|
24
|
-
export declare function liveEntityChanges(queryClient: QueryClient, isAuthenticated: boolean, events: EntityChangedEvent[]): EntityChangedEvent[];
|
|
25
|
-
/**
|
|
26
|
-
* What a returning tab still has to ask for, once the replay covers the rest:
|
|
27
|
-
* the entities that are not `realtime: true` and the ones the relay degraded,
|
|
28
|
-
* which between them are the majority of screens.
|
|
29
|
-
*/
|
|
30
|
-
export declare function refetchQueriesReplayDoesNotCover(queryClient: QueryClient, isAuthenticated: boolean): void;
|
|
31
|
-
export declare function useSSE(): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useSchema(): import("@tanstack/react-query").UseQueryResult<import("..").Schema, Error>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface UseScreenBackOptions {
|
|
2
|
-
/** Static/parent fallback invoked when there is no valid origin (e.g. a
|
|
3
|
-
* detail's `backToList`, a custom screen's static `PageHeader.backTo`).
|
|
4
|
-
* Callers make this embed-correct themselves; the hook never tab-ops it. */
|
|
5
|
-
fallback?: () => void;
|
|
6
|
-
}
|
|
7
|
-
export interface ScreenBack {
|
|
8
|
-
/** True when `goBack` will navigate (an origin exists, or a fallback is
|
|
9
|
-
* provided and permitted). Drives whether to render a Back affordance when a
|
|
10
|
-
* surface has no other visibility rule. */
|
|
11
|
-
canGoBack: boolean;
|
|
12
|
-
/** True when the active screen has a captured origin to return to. */
|
|
13
|
-
hasOriginBack: boolean;
|
|
14
|
-
/** True when a static/parent fallback is permitted (false ONLY for a
|
|
15
|
-
* menu-cleared origin). Surfaces combine it with their own rule. */
|
|
16
|
-
allowFallbackBack: boolean;
|
|
17
|
-
/** Navigate Back: switch to / reopen the origin tab, else invoke the
|
|
18
|
-
* fallback. Never closes the current tab; never throws. */
|
|
19
|
-
goBack: () => void;
|
|
20
|
-
}
|
|
21
|
-
export declare function useScreenBack(opts?: UseScreenBackOptions): ScreenBack;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface UseScreenTabOptions {
|
|
2
|
-
/** The tab's route. Defaults to the live `location.pathname` - the right value
|
|
3
|
-
* for a param-less custom screen, which is the common case. */
|
|
4
|
-
route?: string;
|
|
5
|
-
/** Tab title. Defaults to the route when omitted. */
|
|
6
|
-
title?: string;
|
|
7
|
-
/** Tab icon name (resolved by the icon registry). */
|
|
8
|
-
icon?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare function useScreenTab(opts?: UseScreenTabOptions): void;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
interface TabNavigateOptions {
|
|
2
|
-
title?: string;
|
|
3
|
-
icon?: string;
|
|
4
|
-
search?: string;
|
|
5
|
-
replace?: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* Top-level (chrome) navigation: do NOT capture the current screen as the
|
|
8
|
-
* destination's Back origin; CLEAR the destination tab's origin to `null`
|
|
9
|
-
* (the menu-cleared sentinel) so a menu/sidebar/command-palette-opened
|
|
10
|
-
* screen shows no Back. Default `false` = capture by default, which is what
|
|
11
|
-
* makes every drill-in (content anchors, row clicks, association, action
|
|
12
|
-
* href, custom `tabNavigate`) origin-aware with no per-site change.
|
|
13
|
-
*/
|
|
14
|
-
topLevel?: boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Split a full location string (`/path?query#hash`) into the fields
|
|
18
|
-
* react-router's object `to` accepts. The router REJECTS a `?` or `#` inside
|
|
19
|
-
* `to.pathname` ("Cannot include a '?' character in a manually specified
|
|
20
|
-
* to.pathname field"), so every string reaching the navigation chokepoint must
|
|
21
|
-
* be parsed first - the global link interceptor returns `pathname+search+hash`
|
|
22
|
-
* and schema `href` actions carry their own query. Pushing the raw string into
|
|
23
|
-
* the pathname field threw and silently aborted the redirect to /login on a
|
|
24
|
-
* terminal session (the stranded-on-page incident). `fallbackSearch` applies
|
|
25
|
-
* only when the path has no query of its own, for callers that pass pathname
|
|
26
|
-
* and search separately.
|
|
27
|
-
*/
|
|
28
|
-
export declare function resolveTabTarget(to: string, fallbackSearch?: string): {
|
|
29
|
-
pathname: string;
|
|
30
|
-
search?: string;
|
|
31
|
-
hash?: string;
|
|
32
|
-
};
|
|
33
|
-
export declare function useTabNavigate(): (to: string, opts?: TabNavigateOptions) => void;
|
|
34
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useTabSearchMirror(route: string | undefined): void;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { V2ListResponse } from "../types/api.d.ts";
|
|
2
|
-
export declare function useTimelineData(parentEntity: string, parentId: string, childCode: string, foreignKey: string | string[], timeField: string | undefined, limit?: number): {
|
|
3
|
-
rows: Record<string, unknown>[];
|
|
4
|
-
refs: import("../types/api.d.ts").Refs | undefined;
|
|
5
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<V2ListResponse<Record<string, unknown>>, unknown>, Error>>;
|
|
6
|
-
hasOlder: boolean;
|
|
7
|
-
isFetchingOlder: boolean;
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
isError: boolean;
|
|
10
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* useVersionWatcher — staleness watchdog for the SPA.
|
|
3
|
-
*
|
|
4
|
-
* Wires three layers of detection (in defense-in-depth order):
|
|
5
|
-
*
|
|
6
|
-
* 1. Header-based detection (in apiFetch via versionTracker.observe)
|
|
7
|
-
* — instant, runs on every API response, no extra round-trip.
|
|
8
|
-
*
|
|
9
|
-
* 2. Periodic /api/version probe — caps drift latency at 60s for
|
|
10
|
-
* idle tabs. Fires on:
|
|
11
|
-
* • window focus (debounced to ≥5s)
|
|
12
|
-
* • online reconnect
|
|
13
|
-
* • document.visibilitychange → visible
|
|
14
|
-
* • 60s interval while visible
|
|
15
|
-
* Backs off exponentially on failure (1s → 5min cap) so a 5xx
|
|
16
|
-
* doesn't error-loop.
|
|
17
|
-
*
|
|
18
|
-
* 3. (future) SSE `version-changed` from the realtime role —
|
|
19
|
-
* handled by useSSE; kicks fetchProbe() on receipt.
|
|
20
|
-
*
|
|
21
|
-
* On drift the tracker classifies the delta:
|
|
22
|
-
* • schema-only → silent React Query invalidation of ["schema"]
|
|
23
|
-
* • asset-or-binary → persistent toast with a "Reload now" action
|
|
24
|
-
* • unknown → same as asset/binary (conservative reload)
|
|
25
|
-
*
|
|
26
|
-
* Safe to call exactly once at the App root. Subsequent calls are
|
|
27
|
-
* harmless (subscribe is idempotent through the tracker's drift-
|
|
28
|
-
* debounce flag), but the probes would compound — keep it to one.
|
|
29
|
-
*/
|
|
30
|
-
export declare function useVersionWatcher(): void;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { ViewItem } from "../components/list/ViewSwitcher.d.ts";
|
|
2
|
-
import type { RowData } from "../types/api.d.ts";
|
|
3
|
-
/** One saved-view row as the switcher and the resolver read it. */
|
|
4
|
-
export declare function viewItemFromRow(row: RowData, userId?: string): ViewItem;
|
|
5
|
-
/** One view by identifier. The switcher's window is bounded, so a link to an
|
|
6
|
-
* older view resolves here instead of reading as deleted. */
|
|
7
|
-
export declare function useViewById(id: string | null, userId?: string): {
|
|
8
|
-
view: ViewItem | undefined;
|
|
9
|
-
isSettled: boolean;
|
|
10
|
-
};
|
|
11
|
-
/** The screen's views and whether the saved half of them has arrived. */
|
|
12
|
-
export interface ViewsQuery {
|
|
13
|
-
views: ViewItem[];
|
|
14
|
-
/** A failed request is settled, and so is one the browser has PAUSED for
|
|
15
|
-
* being offline: in both the list is what it is, and a view the URL names
|
|
16
|
-
* is not found rather than still coming. */
|
|
17
|
-
isSettled: boolean;
|
|
18
|
-
isFetching: boolean;
|
|
19
|
-
refetch: () => void;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* useViews fetches DB views for a screen and merges with system views (presets) from DSL.
|
|
23
|
-
* Returns a unified list with source tagging.
|
|
24
|
-
*/
|
|
25
|
-
export declare function useViews(screenCode: string, userId?: string): ViewItem[];
|
|
26
|
-
export declare function useViewsQuery(screenCode: string, userId?: string): ViewsQuery;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type UIActionContext } from "./ui-actions.d.ts";
|
|
2
|
-
import type { UIStep } from "../types/schema.d.ts";
|
|
3
|
-
import type { TextFn } from "./language.d.ts";
|
|
4
|
-
export declare function dispatchAction(errorTitle: TextFn, code: string, action: {
|
|
5
|
-
ui_steps?: UIStep[];
|
|
6
|
-
handler?: string;
|
|
7
|
-
entity?: string;
|
|
8
|
-
}, uiContext: UIActionContext, entityFallback?: string): string | null;
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
import type { Action, ActionCondition, Entity, LocalizedString, Schema } from "../types/schema.d.ts";
|
|
2
|
-
import type { TextFn } from "./language.d.ts";
|
|
3
|
-
/**
|
|
4
|
-
* Row-menu navigation platform-default action codes. The server injects them
|
|
5
|
-
* into every entity and (for explicit action_layout trees) prepends them so the
|
|
6
|
-
* Row Menu leads with navigation. `__peek` opens the Quick peek drawer (mode-less
|
|
7
|
-
* client verb); `__open` navigates to the record's detail page (href). Shared by
|
|
8
|
-
* the dispatcher, the nav-divider renderer, and client-side suppression (drop
|
|
9
|
-
* `__peek` where peek is unavailable, `__open` where the entity has no detail
|
|
10
|
-
* route). Kept as named constants because these codes are read in 3+ places.
|
|
11
|
-
*/
|
|
12
|
-
export declare const PEEK_ACTION_CODE = "__peek";
|
|
13
|
-
export declare const OPEN_ACTION_CODE = "__open";
|
|
14
|
-
/** True when the code is one of the leading row-menu navigation defaults. */
|
|
15
|
-
export declare function isNavDefaultCode(code: string): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* rowDetailId builds the detail-route id for a row - the value an href's
|
|
18
|
-
* `${id}` placeholder and a detail screen's `:id` segment receive - addressing
|
|
19
|
-
* it by the entity's REAL primary key (any single field or a composite key), so
|
|
20
|
-
* an entity whose PK is not named `id` (e.g. `schedule.code`) resolves correctly
|
|
21
|
-
* instead of emitting an empty `${id}`. Falls back to a raw `id` lookup only
|
|
22
|
-
* when no entity is in scope (defensive; an href dispatch always has one) or the
|
|
23
|
-
* row has no resolvable PK yet (an optimistic placeholder).
|
|
24
|
-
*
|
|
25
|
-
* Single source of truth for row -> detail-id, shared by ResponsiveActionBar
|
|
26
|
-
* (action_layout dispatch) and ActionButton (flat href dispatch).
|
|
27
|
-
*/
|
|
28
|
-
export declare function rowDetailId(row: Record<string, unknown> | undefined, entity: Entity | undefined): string;
|
|
29
|
-
/**
|
|
30
|
-
* Evaluates action conditions against row data.
|
|
31
|
-
* Returns true if the action is available (all conditions pass).
|
|
32
|
-
* An action with no conditions is always available.
|
|
33
|
-
*/
|
|
34
|
-
export declare function evaluateConditions(conditions: ActionCondition[] | undefined, row: Record<string, unknown>): boolean;
|
|
35
|
-
export declare function actionConditionFieldValue(row: Record<string, unknown>, field: string): unknown;
|
|
36
|
-
export declare function withActionConditionFields<T extends Record<string, unknown>>(row: T): T;
|
|
37
|
-
/**
|
|
38
|
-
* Returns actions from an entity whose visibility array contains the given
|
|
39
|
-
* placement. Canonical values (the 9 the Go validator accepts): detail |
|
|
40
|
-
* detail_toolbar | list_row | list_toolbar | list_floatbar | quick_peek |
|
|
41
|
-
* app_menu | nav_create | command_palette. Schema validator rejects unknown
|
|
42
|
-
* values at load time so we don't need runtime alias handling here.
|
|
43
|
-
*/
|
|
44
|
-
export declare function getActionsByVisibility(actions: Record<string, Action> | undefined, visibility: string): Array<{
|
|
45
|
-
code: string;
|
|
46
|
-
action: Action;
|
|
47
|
-
}>;
|
|
48
|
-
/**
|
|
49
|
-
* Returns actions bound to a screen. When the screen defines explicit action/row_action
|
|
50
|
-
* codes, only those are returned (resolved from entity.actions first, then global actions).
|
|
51
|
-
* When no screen binding exists, falls back to visibility-based filtering.
|
|
52
|
-
*/
|
|
53
|
-
export declare function getScreenActions(entityActions: Record<string, Action> | undefined, screenActionCodes: string[] | undefined, fallbackVisibility: string, globalActions?: Record<string, Action>): Array<{
|
|
54
|
-
code: string;
|
|
55
|
-
action: Action;
|
|
56
|
-
}>;
|
|
57
|
-
export declare function filterUnavailableMutationActions(actions: Array<{
|
|
58
|
-
code: string;
|
|
59
|
-
action: Action;
|
|
60
|
-
}>, entity: Pick<Entity, "readonly" | "mutations"> | undefined): Array<{
|
|
61
|
-
code: string;
|
|
62
|
-
action: Action;
|
|
63
|
-
}>;
|
|
64
|
-
/**
|
|
65
|
-
* Checks if an action has parameters that need user input.
|
|
66
|
-
*/
|
|
67
|
-
export declare function actionHasParams(action: Action): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* The confirmation message to show before running an action, or null when no
|
|
70
|
-
* confirm step is needed. This is the SINGLE source of confirm semantics, read
|
|
71
|
-
* by every dispatch surface (the ActionRunner and ActionButton) so they cannot
|
|
72
|
-
* drift:
|
|
73
|
-
* - a declared `confirmation` wins (works on any action, destructive or not);
|
|
74
|
-
* - else a `destructive` action gets the default danger warning;
|
|
75
|
-
* - else null (no confirm).
|
|
76
|
-
* Both the declared text and the default are declared words, read through `t`. `destructive` is a semantic class (danger colour + trailing
|
|
77
|
-
* placement + the server impersonation gate + agent HITL); the confirm is one
|
|
78
|
-
* of its effects, and `confirmation` only tunes the TEXT - not a second gate.
|
|
79
|
-
*/
|
|
80
|
-
export declare function actionConfirmMessage(t: TextFn, action: Action | undefined): string | null;
|
|
81
|
-
/**
|
|
82
|
-
* True when the action must show a confirm step (destructive OR a declared
|
|
83
|
-
* confirmation). Language-independent - it is a presence check, so the runner can
|
|
84
|
-
* decide whether to open the dialog without resolving the text.
|
|
85
|
-
*/
|
|
86
|
-
export declare function actionNeedsConfirm(action: Action | undefined): boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Tooltip text for an action control.
|
|
89
|
-
* Precedence: disabled-reason > description > name.
|
|
90
|
-
*
|
|
91
|
-
* A labeled control already shows the name, so its tooltip is the description
|
|
92
|
-
* alone. A control with no visible label - declared `display.icon_only`, or a
|
|
93
|
-
* label the bar dropped to keep the button in a tight row - leads with the NAME
|
|
94
|
-
* on its own line, then the description. Absent description falls back to the
|
|
95
|
-
* name.
|
|
96
|
-
*/
|
|
97
|
-
export declare function actionTooltip(t: TextFn, action: Action | undefined, name: string, isDisabled: boolean, reason: string | null | undefined,
|
|
98
|
-
/**
|
|
99
|
-
* True when the button is rendering WITHOUT its label right now - either
|
|
100
|
-
* because the author declared `display.icon_only`, or because the row ran out
|
|
101
|
-
* of width and the bar dropped the label to keep the button. Both cases leave
|
|
102
|
-
* the user looking at an icon, so the tooltip has to say the name first.
|
|
103
|
-
*/
|
|
104
|
-
labelHidden?: boolean): string;
|
|
105
|
-
/**
|
|
106
|
-
* Builds the full dot-qualified action code for API calls.
|
|
107
|
-
*/
|
|
108
|
-
export declare function fullActionCode(entityCode: string | undefined, actionCode: string): string;
|
|
109
|
-
/**
|
|
110
|
-
* Checks if an action is an association navigation action.
|
|
111
|
-
* Reason: in the wire format, dispatch mode is
|
|
112
|
-
* encoded by which dispatch field is set; the `association` field is the mode.
|
|
113
|
-
*/
|
|
114
|
-
export declare function isAssociationAction(action: Action): boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Finds the list screen route for a given entity code.
|
|
117
|
-
* Returns the screen route and display info, or undefined if no list screen exists.
|
|
118
|
-
*/
|
|
119
|
-
export declare function findListScreenForEntity(schema: Schema | undefined, entityCode: string): {
|
|
120
|
-
route: string;
|
|
121
|
-
icon: string;
|
|
122
|
-
} | undefined;
|
|
123
|
-
/**
|
|
124
|
-
* Resolved leaf node. Kind discriminator "action".
|
|
125
|
-
* Enabled defaults true from server; client sets false when enabled_if fails.
|
|
126
|
-
* Reason carries the localized tooltip text when Enabled is false.
|
|
127
|
-
*
|
|
128
|
-
* Wire format: {"kind":"action","code":"approve","enabled":true,"reason":null}
|
|
129
|
-
*/
|
|
130
|
-
export interface ResolvedActionLeaf {
|
|
131
|
-
kind: "action";
|
|
132
|
-
code: string;
|
|
133
|
-
enabled: boolean;
|
|
134
|
-
reason: string | null;
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Resolved group node. Kind discriminator "group".
|
|
138
|
-
* Items is always non-empty after pruning (empty groups are dropped).
|
|
139
|
-
*
|
|
140
|
-
* Wire format: {"kind":"group","name":{...},"icon":"...","items":[...]}
|
|
141
|
-
*/
|
|
142
|
-
export interface ResolvedActionGroup {
|
|
143
|
-
kind: "group";
|
|
144
|
-
name?: LocalizedString;
|
|
145
|
-
icon?: string;
|
|
146
|
-
items: ResolvedActionLayoutNode[];
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Discriminated union for a resolved action layout node.
|
|
150
|
-
* Narrow via node.kind === "action" or node.kind === "group".
|
|
151
|
-
*/
|
|
152
|
-
export type ResolvedActionLayoutNode = ResolvedActionLeaf | ResolvedActionGroup;
|
|
153
|
-
/**
|
|
154
|
-
* applyRowState walks an RBAC-pruned ResolvedActionLayoutNode[] and applies
|
|
155
|
-
* per-row visible_if / enabled_if evaluation.
|
|
156
|
-
*
|
|
157
|
-
* Drop conditions:
|
|
158
|
-
* - visible_if conditions not satisfied by row -> leaf dropped
|
|
159
|
-
* - Empty groups after all children are dropped -> group dropped
|
|
160
|
-
*
|
|
161
|
-
* Disable conditions:
|
|
162
|
-
* - enabled_if conditions not satisfied by row -> leaf enabled=false + reason set
|
|
163
|
-
* - For bulk (rowSelection.length > 0): visible when ANY selected row satisfies
|
|
164
|
-
* visible_if; enabled only when ALL selected rows satisfy visible_if and
|
|
165
|
-
* enabled_if. Reason carries the failing count.
|
|
166
|
-
*
|
|
167
|
-
* @param layout RBAC-pruned tree from the server (or resolveActionLayout client-side).
|
|
168
|
-
* @param entityActions Entity-level actions map (entity wins on code collision).
|
|
169
|
-
* @param globalActions Global schema actions (fallback when entity doesn't declare).
|
|
170
|
-
* @param row The current row data for single-row context (detail / list_row).
|
|
171
|
-
* @param rowSelection All selected rows for bulk context (list_toolbar bulk mode).
|
|
172
|
-
* Pass empty array for non-bulk contexts.
|
|
173
|
-
*/
|
|
174
|
-
export declare function applyRowState(t: TextFn, layout: ResolvedActionLayoutNode[], entityActions: Record<string, Action> | undefined, globalActions: Record<string, Action> | undefined, row: Record<string, unknown>, rowSelection: Record<string, unknown>[], allowedActionCodes?: ReadonlySet<string>): ResolvedActionLayoutNode[];
|
|
175
|
-
/**
|
|
176
|
-
* Filters a server-emitted ResolvedActionLayoutNode tree to a single slot,
|
|
177
|
-
* preserving group structure. Drops leaves whose action's visibility[] does
|
|
178
|
-
* not include the slot. Drops groups whose entire item list pruned out
|
|
179
|
-
* (empty-group auto-hide). Additional filters via `opts`:
|
|
180
|
-
*
|
|
181
|
-
* - opts.bulkRequired: when set, gates list_toolbar leaves whose effective
|
|
182
|
-
* "bulk-required" semantic matches the request. The old wire-format flag
|
|
183
|
-
* `bulk_selection_required` was removed (the server now derives this
|
|
184
|
-
* from `handler.invoke`), so the caller passes a predicate that decides
|
|
185
|
-
* per action.
|
|
186
|
-
* Reason: keep the slot+bulk filtering surface intact while removing the
|
|
187
|
-
* field; the call sites supply the legacy predicate.
|
|
188
|
-
* - opts.excludeIf: drop leaves where the predicate returns true. Common
|
|
189
|
-
* use: hide "create" / "edit" / "delete" style actions that the screen
|
|
190
|
-
* renders inline elsewhere. Reason: the old `excludeTypes` keyed on
|
|
191
|
-
* `action.type`, which is removed; callers now express the same intent
|
|
192
|
-
* as a field-presence predicate.
|
|
193
|
-
*
|
|
194
|
-
* Leaves whose code cannot be looked up are dropped (server should have
|
|
195
|
-
* pruned them; defensive).
|
|
196
|
-
*/
|
|
197
|
-
export declare function filterLayoutForSlot(layout: ResolvedActionLayoutNode[], entityActions: Record<string, Action> | undefined, globalActions: Record<string, Action> | undefined, slot: string, opts?: {
|
|
198
|
-
bulkRequired?: boolean;
|
|
199
|
-
bulkRequiredPredicate?: (action: Action) => boolean;
|
|
200
|
-
excludeIf?: (action: Action) => boolean;
|
|
201
|
-
}): ResolvedActionLayoutNode[];
|
|
202
|
-
export declare function resolveActionLayoutForSlot(screenActionLayout: ResolvedActionLayoutNode[] | null | undefined, entityActionLayout: ResolvedActionLayoutNode[] | null | undefined, entityActions: Record<string, Action> | undefined, globalActions: Record<string, Action> | undefined, slot: string, opts?: Parameters<typeof filterLayoutForSlot>[4]): ResolvedActionLayoutNode[];
|
|
203
|
-
/**
|
|
204
|
-
* True when an action needs at least one selected row to be meaningful, so a
|
|
205
|
-
* surface (the list toolbar) greys it while nothing is selected and enables it
|
|
206
|
-
* once a selection exists.
|
|
207
|
-
*
|
|
208
|
-
* The server derives this from the handler's id-arity contract (a handler that
|
|
209
|
-
* cannot run without object IDs - not allow_no_objects, not invoke=unbound),
|
|
210
|
-
* association mode, or an href `${id}` row-link, and emits it as
|
|
211
|
-
* `requires_selection`. When the field is PRESENT it is authoritative.
|
|
212
|
-
*
|
|
213
|
-
* When ABSENT (an older server, or the `widget`/`ui_steps` modes the server
|
|
214
|
-
* does not derive) we fall back to the historical proxy: slot membership in
|
|
215
|
-
* `list_floatbar`. Absent MUST NOT be read as false, or every handler action
|
|
216
|
-
* would silently read as page-level against an older server.
|
|
217
|
-
*/
|
|
218
|
-
export declare function actionRequiresSelection(action: Action): boolean;
|
|
219
|
-
/**
|
|
220
|
-
* True when the action declares the `list_floatbar` (selection bar) slot.
|
|
221
|
-
*
|
|
222
|
-
* This is the OLD body of actionRequiresSelection, kept ONLY to decide
|
|
223
|
-
* toolbar/floatbar de-duplication: an action that opts into the floatbar is
|
|
224
|
-
* rendered there on selection, so the static toolbar drops it to avoid a
|
|
225
|
-
* double-render. It is NOT the selection predicate - greying is driven by
|
|
226
|
-
* actionRequiresSelection (the accurate server signal).
|
|
227
|
-
*/
|
|
228
|
-
export declare function actionInFloatbarSlot(action: Action): boolean;
|
|
229
|
-
/**
|
|
230
|
-
* Walks a ResolvedActionLayoutNode[] and sets `enabled: false` plus the
|
|
231
|
-
* given `reason` on every leaf whose action satisfies `predicate`. Groups
|
|
232
|
-
* are recursed into; tree structure is preserved (no nodes dropped) so the
|
|
233
|
-
* user still sees what is available. Leaves whose code cannot be resolved
|
|
234
|
-
* are left untouched (defensive; the server should have pruned them).
|
|
235
|
-
*
|
|
236
|
-
* Use: grey out selection-mode actions on the list toolbar while no rows
|
|
237
|
-
* are selected.
|
|
238
|
-
*/
|
|
239
|
-
export declare function disableLeavesWhere(layout: ResolvedActionLayoutNode[], entityActions: Record<string, Action> | undefined, globalActions: Record<string, Action> | undefined, predicate: (action: Action) => boolean, reason: string): ResolvedActionLayoutNode[];
|
|
240
|
-
/**
|
|
241
|
-
* Composes a flat ResolvedActionLayoutNode[] from an entity's actions map,
|
|
242
|
-
* filtered to those that include the given slot in their visibility array,
|
|
243
|
-
* sorted by position ascending (ties broken by action code).
|
|
244
|
-
*
|
|
245
|
-
* This is the fallback used when neither screen.action_layout nor
|
|
246
|
-
* entity.action_layout is present.
|
|
247
|
-
*
|
|
248
|
-
* All leaves are emitted with enabled=true; client applies visible_if /
|
|
249
|
-
* enabled_if via applyRowState.
|
|
250
|
-
*
|
|
251
|
-
* @param actions Entity-level actions map from the (already RBAC-pruned) schema.
|
|
252
|
-
* @param slot Placement slot code (e.g. "detail", "list_row", "list_toolbar").
|
|
253
|
-
*/
|
|
254
|
-
export declare function defaultFlatForSlot(actions: Record<string, Action> | undefined, slot: string): ResolvedActionLayoutNode[];
|
package/dist-lib/lib/anchor.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The anchor expression, TypeScript side.
|
|
3
|
-
*
|
|
4
|
-
* One grammar for "a moment relative to now", shared with the server. The
|
|
5
|
-
* language boundary is the only reason there are two implementations; nothing
|
|
6
|
-
* else may declare a third.
|
|
7
|
-
*
|
|
8
|
-
* now the current instant
|
|
9
|
-
* now+3w three weeks ahead
|
|
10
|
-
* now-1d one day back
|
|
11
|
-
* now+3w-1d the offsets compose, left to right
|
|
12
|
-
*
|
|
13
|
-
* Units are Go's plus `d` (24h) and `w` (7d). Calendar units `y` and `mo` are
|
|
14
|
-
* refused: they have no fixed length, so `1mo` from the 31st has no answer this
|
|
15
|
-
* platform is willing to invent.
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* One magnitude, and the running total of an anchor's offsets, may not exceed
|
|
19
|
-
* 100 years. Beyond that the server's arithmetic saturates and `now+N` and
|
|
20
|
-
* `now-N` collapse to the same instant - a predicate written to match nothing
|
|
21
|
-
* matching everything. The client refuses the same inputs so a template that
|
|
22
|
-
* would fail on the server does not silently produce a different moment here.
|
|
23
|
-
*/
|
|
24
|
-
export declare const MAX_DURATION_MAGNITUDE_MS: number;
|
|
25
|
-
/** At most this many signed offsets in one anchor expression. */
|
|
26
|
-
export declare const MAX_ANCHOR_OFFSETS = 8;
|
|
27
|
-
/** Parse one unsigned magnitude (`3w`, `1h30m`). Returns null when invalid. */
|
|
28
|
-
export declare function parseDurationMagnitudeMs(text: string): number | null;
|
|
29
|
-
/**
|
|
30
|
-
* Parse an anchor expression WITHOUT any surface wrapper - `now`, `now+3w`,
|
|
31
|
-
* `now+3w-1d` - and return the summed offset in milliseconds. Returns null when
|
|
32
|
-
* the text is not a valid anchor expression, which the caller surfaces the way
|
|
33
|
-
* it surfaces any unresolved token: by leaving the template visible rather than
|
|
34
|
-
* writing a wrong moment.
|
|
35
|
-
*/
|
|
36
|
-
export declare function parseAnchorOffsetMs(expr: string): number | null;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { BrandingTheme } from "../types/api.d.ts";
|
|
2
|
-
/** The two color schemes, and the order their rules are emitted in. */
|
|
3
|
-
export declare const COLOR_SCHEMES: readonly ["light", "dark"];
|
|
4
|
-
export type BrandColorScheme = (typeof COLOR_SCHEMES)[number];
|
|
5
|
-
/**
|
|
6
|
-
* The fourteen brandable color fields, in declaration order.
|
|
7
|
-
*
|
|
8
|
-
* Each writes the CSS custom property of the SAME name with underscores
|
|
9
|
-
* hyphenated. Keep in sync with `branding_theme_colors` in
|
|
10
|
-
* `modules/declarion-core/schema/core_branding.yaml`; a Go test exports that
|
|
11
|
-
* structure's fields and `brand-tokens.parity.test.ts` asserts the two agree in
|
|
12
|
-
* both directions, so a field added to one and forgotten in the other fails CI
|
|
13
|
-
* rather than loading, validating, and doing nothing.
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* The typography fields, in declaration order. Scheme-independent: a title is
|
|
17
|
-
* the same size in light and dark, so these are emitted on `:root` alongside
|
|
18
|
-
* the fonts rather than inside a scheme block.
|
|
19
|
-
*
|
|
20
|
-
* Same naming contract as the colors: `page_title_size` writes
|
|
21
|
-
* `--page-title-size`.
|
|
22
|
-
*/
|
|
23
|
-
export declare const BRAND_TYPOGRAPHY_FIELDS: readonly ["page_title_size", "page_title_line_height"];
|
|
24
|
-
export declare const BRAND_COLOR_FIELDS: readonly ["background", "surface", "surface_2", "surface_3", "text", "text_2", "text_3", "border", "divider", "accent", "accent_hover", "accent_foreground", "sidebar", "rail"];
|
|
25
|
-
/** `surface_2` -> `--surface-2`. The whole naming contract, in one line. */
|
|
26
|
-
export declare function cssPropertyFor(field: string): string;
|
|
27
|
-
/**
|
|
28
|
-
* Render `branding.theme` as a stylesheet. Returns "" when the brand declares
|
|
29
|
-
* nothing, so the platform's own palette stands untouched.
|
|
30
|
-
*/
|
|
31
|
-
export declare function brandTokenCss(theme: BrandingTheme | undefined): string;
|
|
32
|
-
export declare const BRAND_TOKENS_STYLE_ID = "declarion-brand-tokens";
|
|
33
|
-
export declare const CONSUMER_BRAND_CSS_ID = "consumer-brand-css";
|
|
34
|
-
/**
|
|
35
|
-
* Write the block into <head>, idempotently, ALWAYS before the consumer's
|
|
36
|
-
* stylesheet.
|
|
37
|
-
*
|
|
38
|
-
* The ordering is re-asserted on every call rather than assumed: branding is a
|
|
39
|
-
* runtime-resolved parameter, so this element and the consumer's <link> can be
|
|
40
|
-
* created in either order, and DOM order is what decides who wins between two
|
|
41
|
-
* rules of equal specificity.
|
|
42
|
-
*/
|
|
43
|
-
export declare function applyBrandTokens(css: string): void;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { BrandingChrome, BrandingIdentity, BrandingTheme, PublicBranding, PublicParam, PublicParamsResponse } from "../types/api.d.ts";
|
|
2
|
-
export declare const BRANDING_PARAM_CODE = "branding";
|
|
3
|
-
export declare function paramsToRecord(list: PublicParam[] | undefined): Record<string, unknown>;
|
|
4
|
-
export declare function publicParamValue(publicParams: PublicParamsResponse | undefined, code: string): unknown;
|
|
5
|
-
export declare function getPublicBranding(publicParams: PublicParamsResponse | undefined): PublicBranding | undefined;
|
|
6
|
-
export declare function brandingFromValue(value: unknown): PublicBranding | undefined;
|
|
7
|
-
export declare function getBrandingIdentity(publicParams: PublicParamsResponse | undefined): BrandingIdentity | undefined;
|
|
8
|
-
export declare function getBrandingTheme(publicParams: PublicParamsResponse | undefined): BrandingTheme | undefined;
|
|
9
|
-
export declare function getBrandingChrome(publicParams: PublicParamsResponse | undefined): BrandingChrome | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* Returns true when `value` is a renderable logo URL. Accepts:
|
|
12
|
-
* - root-relative paths ("/logo.png" or "/modules/<module>/public/logo.png");
|
|
13
|
-
* - absolute http(s) URLs;
|
|
14
|
-
* - data:image/... URIs.
|
|
15
|
-
*
|
|
16
|
-
* Rejects inline SVG markup and any other string so callers can't
|
|
17
|
-
* accidentally inject operator-controlled YAML into a dangerouslySet
|
|
18
|
-
* surface. Returns false for null/undefined/empty input.
|
|
19
|
-
*/
|
|
20
|
-
export declare function isValidLogoUrl(value: string | undefined | null): boolean;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/** The minimal location shape canonicalUrl needs (a router `Location` satisfies
|
|
2
|
-
* it; tests can pass a bare object). */
|
|
3
|
-
export interface CanonicalLocation {
|
|
4
|
-
pathname: string;
|
|
5
|
-
search?: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Build the canonical URL key for a location: normalized pathname + the
|
|
9
|
-
* view-defining query, sorted by key, with the embed transport params removed.
|
|
10
|
-
*
|
|
11
|
-
* Sorting makes `?a=1&b=2` and `?b=2&a=1` one key. Removing `EMBED_PARAM_KEYS`
|
|
12
|
-
* makes the same screen one key whether or not the embed params ride along, so
|
|
13
|
-
* a retained page is shared between the embedded and non-embedded view of the
|
|
14
|
-
* same URL. Default query values are NOT collapsed (which params have a default
|
|
15
|
-
* is screen-specific and collapsing the wrong one would silently merge or fork
|
|
16
|
-
* pages); two URLs that differ only by an explicit-vs-implicit default are
|
|
17
|
-
* treated as distinct, which is safe (at worst slightly less sharing).
|
|
18
|
-
*/
|
|
19
|
-
export declare function canonicalUrl(location: CanonicalLocation): string;
|
|
20
|
-
/**
|
|
21
|
-
* The SCREEN-scoped key: the normalized pathname alone, ignoring the query.
|
|
22
|
-
* Coarser than `canonicalUrl` - it does NOT fork when filters/sort/columns
|
|
23
|
-
* change. Used for deep state that must persist ACROSS in-screen query changes
|
|
24
|
-
* (row selection, pruned to the visible result set) rather than resetting per
|
|
25
|
-
* filtered view. Two filter views of the same screen share one screen key.
|
|
26
|
-
*/
|
|
27
|
-
export declare function canonicalPath(location: CanonicalLocation): string;
|