@declarion/react 0.61.1 → 0.63.0
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
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { N as e, P as t } from "./PropertyGridEditor-BTjscqfz.js";
|
|
2
|
+
//#region src/lib/screen-back.ts
|
|
3
|
+
function n(e) {
|
|
4
|
+
return e ? e.startsWith("?") ? e.slice(1) : e : "";
|
|
5
|
+
}
|
|
6
|
+
function r(e) {
|
|
7
|
+
if (e) return e.startsWith("?") ? e : `?${e}`;
|
|
8
|
+
}
|
|
9
|
+
function i(r, i, a) {
|
|
10
|
+
if (!t(r.pathname) || e(r.pathname) || r.pathname === i) return;
|
|
11
|
+
let o = n(r.search), s = { pathname: r.pathname };
|
|
12
|
+
return o && (s.search = o), r.hash && (s.hash = r.hash), a?.id && (s.tabId = a.id), a?.title && (s.title = a.title), a?.icon && (s.icon = a.icon), a?.screen && (s.screen = a.screen), s;
|
|
13
|
+
}
|
|
14
|
+
function a(e, n) {
|
|
15
|
+
return n ? {
|
|
16
|
+
hasOriginBack: !1,
|
|
17
|
+
allowFallbackBack: !0
|
|
18
|
+
} : e === null ? {
|
|
19
|
+
hasOriginBack: !1,
|
|
20
|
+
allowFallbackBack: !1
|
|
21
|
+
} : e && t(e.pathname) ? {
|
|
22
|
+
hasOriginBack: !0,
|
|
23
|
+
allowFallbackBack: !0
|
|
24
|
+
} : {
|
|
25
|
+
hasOriginBack: !1,
|
|
26
|
+
allowFallbackBack: !0
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function o(e, n, r) {
|
|
30
|
+
if (r || !e || !t(e.pathname)) return null;
|
|
31
|
+
let i = (e.tabId ? n.find((t) => t.id === e.tabId) : void 0) ?? n.find((t) => t.pathname === e.pathname);
|
|
32
|
+
return {
|
|
33
|
+
kind: i ? "live" : "reopen",
|
|
34
|
+
tabId: i?.id,
|
|
35
|
+
pathname: e.pathname,
|
|
36
|
+
search: e.search,
|
|
37
|
+
hash: e.hash,
|
|
38
|
+
title: e.title,
|
|
39
|
+
icon: e.icon,
|
|
40
|
+
screen: e.screen
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { r as a, n as i, o as n, a as r, i as t };
|
package/dist-lib/testing.d.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Dt as TextFn, E as DataResponse, L as Refs, d as ActionExecuteResponse, it as LocalizedString, j as ListResponse, k as ListMeta, o as ResponsiveViewport, u as ActionExecuteRequest, ut as Schema } from "./useResponsiveMode-DIR1bZfo.js";
|
|
2
|
+
import { ReactElement, ReactNode } from "react";
|
|
3
3
|
import { QueryClient } from "@tanstack/react-query";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import type { Schema } from "./types/schema.d.ts";
|
|
7
|
-
import type { DataResponse, ListMeta, ListResponse, Refs } from "./types/api.d.ts";
|
|
8
|
-
import { type TextFn } from "./lib/language.d.ts";
|
|
9
|
-
import type { LocalizedString } from "./types/schema.d.ts";
|
|
4
|
+
import { RenderResult } from "@testing-library/react";
|
|
5
|
+
//#region src/testing.d.ts
|
|
10
6
|
/** A single action's stubbed outcome: the action's RESULT payload (what
|
|
11
7
|
* executeDeclarionAction unwraps from response.result), or a function of the
|
|
12
8
|
* dispatched body returning it. The harness always wraps it in a success
|
|
@@ -20,54 +16,54 @@ export type ActionResult = ((body: ActionExecuteRequest) => unknown) | Record<st
|
|
|
20
16
|
/** One entity's list fixture, or the failure its query returns. */
|
|
21
17
|
export type EntityDataEntry = Record<string, unknown>[] | EntityDataFixture | ListResponse | Error;
|
|
22
18
|
export interface EntityDataFixture {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
rows: Record<string, unknown>[];
|
|
20
|
+
meta?: Partial<ListMeta>;
|
|
21
|
+
refs?: Refs;
|
|
26
22
|
}
|
|
27
23
|
export interface RenderWithDeclarionOptions {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
24
|
+
/** Seeded into the schema query cache so useSchema resolves warm. Build with schemaFixture. */
|
|
25
|
+
schema?: Schema;
|
|
26
|
+
/** entity -> rows, { rows, meta }, or an entityDataFixture() ListResponse.
|
|
27
|
+
* An Error entry makes the query FAIL; a FUNCTION entry is called with the
|
|
28
|
+
* request, so a filtered query can answer differently from an unfiltered one. */
|
|
29
|
+
entityData?: Record<string, EntityDataEntry | ((params: Record<string, unknown>) => EntityDataEntry)>;
|
|
30
|
+
/** entity -> { [id]: row | Error }; resolves useObject. Error entries let tests model 404/403 without network. */
|
|
31
|
+
entityItems?: Record<string, Record<string, Record<string, unknown> | Error>>;
|
|
32
|
+
/** entity -> { [id]: DataResponse | Error }; resolves useObject when a test needs envelope metadata like `$refs`. */
|
|
33
|
+
entityItemResponses?: Record<string, Record<string, DataResponse | Error>>;
|
|
34
|
+
/** action code -> result | (body) => result; resolves executeAction (and create/update/delete/restore). */
|
|
35
|
+
actionResults?: Record<string, ActionResult>;
|
|
36
|
+
/** Initial path for the memory router (e.g. "/replay/abc/compare"). Default "/". */
|
|
37
|
+
route?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The screen code the rendered component is standing in for, as the router would
|
|
40
|
+
* mount it. Custom screens read their own declaration through `useCurrentScreen()` -
|
|
41
|
+
* `<PageHeader />` takes its title and description from it - so a harness that does
|
|
42
|
+
* not supply it renders a screen with no name, which is not what production does.
|
|
43
|
+
* Pass the same code the schema declares.
|
|
44
|
+
*/
|
|
45
|
+
screenCode?: string;
|
|
46
|
+
/** Optional responsive viewport seam for component tests that assert phone/tablet behavior. */
|
|
47
|
+
viewport?: ResponsiveViewport;
|
|
48
|
+
/** Called with every list request before it resolves. A screen decides what
|
|
49
|
+
* to ASK for - which columns, which sort, whether to expand refs - and that
|
|
50
|
+
* is invisible in the rendered output. */
|
|
51
|
+
onListRequest?: (entity: string, params: Record<string, unknown>) => void;
|
|
52
|
+
/** Mounts the screen inside an embed context, as the white-label iframe does:
|
|
53
|
+
* the embed query string the host passes. Absent means the in-app render. */
|
|
54
|
+
embedQuery?: string;
|
|
59
55
|
}
|
|
60
56
|
export interface RenderWithDeclarionResult extends RenderResult {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
/** The live QueryClient, for advanced cache assertions or manual refetch. */
|
|
58
|
+
queryClient: QueryClient;
|
|
59
|
+
/** Where the screen has navigated to, as `pathname + search + hash`. The
|
|
60
|
+
* alternative is stubbing the navigate hook, which asserts that the screen
|
|
61
|
+
* CALLED something rather than that the user arrived. */
|
|
62
|
+
location: () => string;
|
|
67
63
|
}
|
|
68
64
|
export declare function textFixture(language?: string, messages?: Record<string, LocalizedString>): TextFn;
|
|
69
65
|
export declare function languageWrapper(language?: string, messages?: Record<string, LocalizedString>): ({ children }: {
|
|
70
|
-
|
|
66
|
+
children: ReactNode;
|
|
71
67
|
}) => import("react").JSX.Element;
|
|
72
68
|
/** Build a valid Schema from a partial - fills the required empty maps so a
|
|
73
69
|
* consumer only declares the entities/screens its test needs. */
|
|
@@ -86,7 +82,7 @@ export declare function actionResults(map: Record<string, ActionResult>): Record
|
|
|
86
82
|
* result with a `status` field is never mistaken for an envelope.
|
|
87
83
|
*/
|
|
88
84
|
export declare function actionEnvelope(env: Partial<ActionExecuteResponse> & {
|
|
89
|
-
|
|
85
|
+
status: string;
|
|
90
86
|
}): ActionResult;
|
|
91
87
|
/** Clear every harness seam + the seeded auth state. Auto-registered as an
|
|
92
88
|
* afterEach when the test runner exposes one (vitest/jest globals); exported
|
|
@@ -99,12 +95,12 @@ export declare function cleanupDeclarion(): void;
|
|
|
99
95
|
*/
|
|
100
96
|
export declare function renderWithDeclarion(ui: ReactElement, opts?: RenderWithDeclarionOptions): RenderWithDeclarionResult;
|
|
101
97
|
export interface PreviewHarnessProps extends RenderWithDeclarionOptions {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
98
|
+
children: ReactNode;
|
|
99
|
+
/** Default true: seeds an admin user so useSchema's auth gate opens and the
|
|
100
|
+
* screen renders authenticated. Set false to render a pre-login screen
|
|
101
|
+
* (SignIn / SignUp / Forgot / Reset / TwoFA / AuthShell) in its logged-out
|
|
102
|
+
* state, where useSchema stays disabled (no fetch) as in production. */
|
|
103
|
+
authenticated?: boolean;
|
|
108
104
|
}
|
|
109
105
|
/**
|
|
110
106
|
* Component form of {@link renderWithDeclarion} for live previews / stories /
|
|
@@ -116,3 +112,4 @@ export interface PreviewHarnessProps extends RenderWithDeclarionOptions {
|
|
|
116
112
|
* once per mount (useState initializer) so a static snapshot is deterministic.
|
|
117
113
|
*/
|
|
118
114
|
export declare function PreviewHarness({ children, authenticated, ...opts }: PreviewHarnessProps): ReactElement;
|
|
115
|
+
//#endregion
|
package/dist-lib/testing.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { _ as o, c as s, g as c, v as l } from "./failure-BUxXuP4c.js";
|
|
1
|
+
import { At as e, It as t, Yt as n, _t as r, bt as i, ct as a, gt as o, t as s, vt as c } from "./useCurrentScreen--UovgvRj.js";
|
|
2
|
+
import { t as l } from "./ActionRunner-DAxgnKB3.js";
|
|
4
3
|
import { useState as u } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { QueryClient as d, QueryClientProvider as f } from "@tanstack/react-query";
|
|
5
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
6
|
+
import { MemoryRouter as h, useLocation as g } from "react-router";
|
|
7
|
+
import { Toaster as _ } from "sonner";
|
|
9
8
|
import { render as v } from "@testing-library/react";
|
|
10
9
|
//#region src/testing.tsx
|
|
11
|
-
function y(
|
|
12
|
-
return
|
|
10
|
+
function y(t = "en", n) {
|
|
11
|
+
return e(n, t, "en");
|
|
13
12
|
}
|
|
14
13
|
function b(e = "en", t) {
|
|
15
|
-
let n = new
|
|
14
|
+
let n = new d({ defaultOptions: { queries: { retry: !1 } } });
|
|
16
15
|
return n.setQueryData(["schema", !1], x({
|
|
17
16
|
language: e,
|
|
18
17
|
messages: t
|
|
@@ -20,7 +19,7 @@ function b(e = "en", t) {
|
|
|
20
19
|
language: e,
|
|
21
20
|
messages: t
|
|
22
21
|
})), function({ children: e }) {
|
|
23
|
-
return /* @__PURE__ */
|
|
22
|
+
return /* @__PURE__ */ p(f, {
|
|
24
23
|
client: n,
|
|
25
24
|
children: e
|
|
26
25
|
});
|
|
@@ -76,7 +75,7 @@ function E(e) {
|
|
|
76
75
|
};
|
|
77
76
|
}
|
|
78
77
|
function D({ into: e }) {
|
|
79
|
-
let t =
|
|
78
|
+
let t = g();
|
|
80
79
|
return e.current = `${t.pathname}${t.search}${t.hash}`, null;
|
|
81
80
|
}
|
|
82
81
|
function O() {
|
|
@@ -85,7 +84,7 @@ function O() {
|
|
|
85
84
|
code: "test",
|
|
86
85
|
name: "Test",
|
|
87
86
|
role: "admin"
|
|
88
|
-
},
|
|
87
|
+
}, n = {
|
|
89
88
|
id: "test-user",
|
|
90
89
|
email: "test@example.com",
|
|
91
90
|
display_name: "Test User",
|
|
@@ -96,7 +95,7 @@ function O() {
|
|
|
96
95
|
created_at: "2026-01-01T00:00:00Z",
|
|
97
96
|
updated_at: "2026-01-01T00:00:00Z"
|
|
98
97
|
};
|
|
99
|
-
|
|
98
|
+
t.getState().setUser(n, e);
|
|
100
99
|
}
|
|
101
100
|
function k(e) {
|
|
102
101
|
if (e === void 0) return { rows: [] };
|
|
@@ -113,7 +112,7 @@ function k(e) {
|
|
|
113
112
|
}
|
|
114
113
|
function A(e) {
|
|
115
114
|
let t = e.entityData ?? {};
|
|
116
|
-
|
|
115
|
+
c((n, r) => {
|
|
117
116
|
let i = r;
|
|
118
117
|
e.onListRequest?.(n, i);
|
|
119
118
|
let a = t[n], o = typeof a == "function" ? a(i) : a;
|
|
@@ -138,76 +137,76 @@ function A(e) {
|
|
|
138
137
|
...s.refs === void 0 ? {} : { $refs: s.refs }
|
|
139
138
|
};
|
|
140
139
|
});
|
|
141
|
-
let n = e.entityItems ?? {},
|
|
142
|
-
|
|
143
|
-
let
|
|
144
|
-
if (a instanceof Error) throw a;
|
|
145
|
-
if (a !== void 0) return a;
|
|
146
|
-
let o = n[e]?.[i];
|
|
140
|
+
let n = e.entityItems ?? {}, i = e.entityItemResponses ?? {};
|
|
141
|
+
r((e, t) => {
|
|
142
|
+
let r = typeof t == "string" ? t : a(t), o = i[e]?.[r];
|
|
147
143
|
if (o instanceof Error) throw o;
|
|
148
|
-
|
|
144
|
+
if (o !== void 0) return o;
|
|
145
|
+
let s = n[e]?.[r];
|
|
146
|
+
if (s instanceof Error) throw s;
|
|
147
|
+
return { data: s };
|
|
149
148
|
});
|
|
150
|
-
let
|
|
151
|
-
|
|
152
|
-
if (!(e in
|
|
153
|
-
let n =
|
|
149
|
+
let s = e.actionResults ?? {};
|
|
150
|
+
o(async (e, t) => {
|
|
151
|
+
if (!(e in s)) throw Error(`renderWithDeclarion: no action result registered for "${e}" (seed it via actionResults)`);
|
|
152
|
+
let n = s[e];
|
|
154
153
|
return E(typeof n == "function" ? await n(t) : n);
|
|
155
154
|
});
|
|
156
155
|
}
|
|
157
156
|
function j() {
|
|
158
|
-
|
|
157
|
+
c(null), r(null), o(null), t.setState({
|
|
159
158
|
user: null,
|
|
160
159
|
isAuthenticated: !1,
|
|
161
160
|
activeTenant: null,
|
|
162
161
|
tenants: []
|
|
163
162
|
});
|
|
164
163
|
}
|
|
165
|
-
function M(
|
|
166
|
-
let
|
|
164
|
+
function M(e, t = {}) {
|
|
165
|
+
let r = new d({ defaultOptions: { queries: {
|
|
167
166
|
retry: !1,
|
|
168
167
|
gcTime: Infinity
|
|
169
168
|
} } });
|
|
170
|
-
O(),
|
|
171
|
-
let
|
|
172
|
-
code:
|
|
173
|
-
children:
|
|
174
|
-
}) :
|
|
175
|
-
client:
|
|
176
|
-
children: [/* @__PURE__ */
|
|
177
|
-
initialEntries: [
|
|
178
|
-
children: [/* @__PURE__ */
|
|
179
|
-
}), /* @__PURE__ */
|
|
180
|
-
}), u =
|
|
181
|
-
query:
|
|
182
|
-
children:
|
|
183
|
-
}) :
|
|
184
|
-
viewportOverride:
|
|
169
|
+
O(), r.setQueryData(["schema", !0], t.schema ?? x()), A(t);
|
|
170
|
+
let a = t.screenCode ? /* @__PURE__ */ p(s, {
|
|
171
|
+
code: t.screenCode,
|
|
172
|
+
children: e
|
|
173
|
+
}) : e, o = { current: t.route ?? "/" }, c = /* @__PURE__ */ m(f, {
|
|
174
|
+
client: r,
|
|
175
|
+
children: [/* @__PURE__ */ m(h, {
|
|
176
|
+
initialEntries: [t.route ?? "/"],
|
|
177
|
+
children: [/* @__PURE__ */ p(D, { into: o }), /* @__PURE__ */ p(l, { children: a })]
|
|
178
|
+
}), /* @__PURE__ */ p(_, {})]
|
|
179
|
+
}), u = t.embedQuery ? /* @__PURE__ */ p(n, {
|
|
180
|
+
query: t.embedQuery,
|
|
181
|
+
children: c
|
|
182
|
+
}) : c, g = v(t.viewport ? /* @__PURE__ */ p(i, {
|
|
183
|
+
viewportOverride: t.viewport,
|
|
185
184
|
children: u
|
|
186
185
|
}) : u);
|
|
187
|
-
return Object.assign(
|
|
188
|
-
queryClient:
|
|
189
|
-
location: () =>
|
|
186
|
+
return Object.assign(g, {
|
|
187
|
+
queryClient: r,
|
|
188
|
+
location: () => o.current
|
|
190
189
|
});
|
|
191
190
|
}
|
|
192
191
|
function N({ children: e, authenticated: n = !0, ...r }) {
|
|
193
|
-
let [
|
|
194
|
-
let e = new
|
|
192
|
+
let [i] = u(() => {
|
|
193
|
+
let e = new d({ defaultOptions: { queries: {
|
|
195
194
|
retry: !1,
|
|
196
195
|
gcTime: Infinity
|
|
197
196
|
} } });
|
|
198
|
-
return n ? (O(), e.setQueryData(["schema", !0], r.schema ?? x())) :
|
|
197
|
+
return n ? (O(), e.setQueryData(["schema", !0], r.schema ?? x())) : t.setState({
|
|
199
198
|
user: null,
|
|
200
199
|
isAuthenticated: !1,
|
|
201
200
|
activeTenant: null,
|
|
202
201
|
tenants: []
|
|
203
202
|
}), A(r), e;
|
|
204
203
|
});
|
|
205
|
-
return /* @__PURE__ */
|
|
206
|
-
client:
|
|
207
|
-
children: [/* @__PURE__ */
|
|
204
|
+
return /* @__PURE__ */ m(f, {
|
|
205
|
+
client: i,
|
|
206
|
+
children: [/* @__PURE__ */ p(h, {
|
|
208
207
|
initialEntries: [r.route ?? "/"],
|
|
209
|
-
children: /* @__PURE__ */
|
|
210
|
-
}), /* @__PURE__ */
|
|
208
|
+
children: /* @__PURE__ */ p(l, { children: e })
|
|
209
|
+
}), /* @__PURE__ */ p(_, {})]
|
|
211
210
|
});
|
|
212
211
|
}
|
|
213
212
|
typeof afterEach == "function" && afterEach(() => j());
|