@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
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { p as l } from "./failure-BUxXuP4c.js";
|
|
1
|
+
import { It as e, _ as t, b as n, kn as r, pt as i, qn as a, v as o, wn as s, wt as c } from "./useCurrentScreen--UovgvRj.js";
|
|
2
|
+
import { r as l } from "./CopyButton-C0iEvaT1.js";
|
|
4
3
|
import { useCallback as u, useEffect as d, useRef as f, useState as p } from "react";
|
|
5
4
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
6
5
|
//#region src/components/agents/AgentElicitForm.tsx
|
|
7
|
-
function g({ message: e, schema:
|
|
8
|
-
let
|
|
9
|
-
let e = (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
r(o);
|
|
15
|
-
}, f = Object.entries(n.properties ?? {});
|
|
6
|
+
function g({ message: e, schema: t, onSubmit: n, onCancel: r }) {
|
|
7
|
+
let i = c(), [a, o] = p(() => x(t)), [s, u] = p(null), d = () => {
|
|
8
|
+
let e = (t.required ?? []).filter((e) => b(a[e]));
|
|
9
|
+
e.length > 0 ? u(i("agent.elicit.required", "Required: {fields}", { fields: e.join(", ") })) : n(a);
|
|
10
|
+
}, f = Object.entries(t.properties ?? {});
|
|
16
11
|
return /* @__PURE__ */ h("div", {
|
|
17
12
|
className: "rounded-md border border-divider bg-surface p-3 text-sm",
|
|
18
13
|
children: [
|
|
@@ -22,43 +17,43 @@ function g({ message: e, schema: n, onSubmit: r, onCancel: i }) {
|
|
|
22
17
|
}),
|
|
23
18
|
/* @__PURE__ */ m("div", {
|
|
24
19
|
className: "space-y-2",
|
|
25
|
-
children: f.map(([e,
|
|
20
|
+
children: f.map(([e, n]) => /* @__PURE__ */ m(_, {
|
|
26
21
|
name: e,
|
|
27
|
-
prop:
|
|
28
|
-
required: (
|
|
29
|
-
value:
|
|
30
|
-
onChange: (t) =>
|
|
22
|
+
prop: n,
|
|
23
|
+
required: (t.required ?? []).includes(e),
|
|
24
|
+
value: a[e],
|
|
25
|
+
onChange: (t) => o((n) => ({
|
|
31
26
|
...n,
|
|
32
27
|
[e]: t
|
|
33
28
|
}))
|
|
34
29
|
}, e))
|
|
35
30
|
}),
|
|
36
|
-
|
|
31
|
+
s && /* @__PURE__ */ m("div", {
|
|
37
32
|
className: "mt-2 text-xs text-destructive",
|
|
38
|
-
children:
|
|
33
|
+
children: s
|
|
39
34
|
}),
|
|
40
35
|
/* @__PURE__ */ h("div", {
|
|
41
36
|
className: "mt-3 flex justify-end gap-2",
|
|
42
|
-
children: [
|
|
37
|
+
children: [r && /* @__PURE__ */ m(l, {
|
|
43
38
|
kind: "ghost",
|
|
44
|
-
onClick:
|
|
45
|
-
children:
|
|
46
|
-
}), /* @__PURE__ */ m(
|
|
39
|
+
onClick: r,
|
|
40
|
+
children: i("dialog.cancel", "Cancel")
|
|
41
|
+
}), /* @__PURE__ */ m(l, {
|
|
47
42
|
onClick: d,
|
|
48
|
-
children:
|
|
43
|
+
children: i("agent.elicit.submit", "Submit")
|
|
49
44
|
})]
|
|
50
45
|
})
|
|
51
46
|
]
|
|
52
47
|
});
|
|
53
48
|
}
|
|
54
|
-
function _({ name: e, prop: t, required:
|
|
55
|
-
let
|
|
49
|
+
function _({ name: e, prop: t, required: n, value: r, onChange: i }) {
|
|
50
|
+
let a = (t.title ?? y(e)) + (n ? " *" : ""), o = t.description;
|
|
56
51
|
return t.enum ? /* @__PURE__ */ m(v, {
|
|
57
|
-
label:
|
|
58
|
-
help:
|
|
52
|
+
label: a,
|
|
53
|
+
help: o,
|
|
59
54
|
children: /* @__PURE__ */ h("select", {
|
|
60
|
-
value:
|
|
61
|
-
onChange: (e) =>
|
|
55
|
+
value: s(r),
|
|
56
|
+
onChange: (e) => i(e.target.value),
|
|
62
57
|
className: "w-full rounded-md border border-border bg-card p-2 text-sm",
|
|
63
58
|
children: [/* @__PURE__ */ m("option", {
|
|
64
59
|
value: "",
|
|
@@ -69,21 +64,21 @@ function _({ name: e, prop: t, required: r, value: i, onChange: a }) {
|
|
|
69
64
|
}, String(e)))]
|
|
70
65
|
})
|
|
71
66
|
}) : t.type === "boolean" ? /* @__PURE__ */ m(v, {
|
|
72
|
-
label:
|
|
73
|
-
help:
|
|
67
|
+
label: a,
|
|
68
|
+
help: o,
|
|
74
69
|
children: /* @__PURE__ */ m("input", {
|
|
75
70
|
type: "checkbox",
|
|
76
|
-
checked: !!
|
|
77
|
-
onChange: (e) =>
|
|
71
|
+
checked: !!r,
|
|
72
|
+
onChange: (e) => i(e.target.checked)
|
|
78
73
|
})
|
|
79
74
|
}) : t.type === "array" && t.items?.enum ? /* @__PURE__ */ m(v, {
|
|
80
|
-
label:
|
|
81
|
-
help:
|
|
75
|
+
label: a,
|
|
76
|
+
help: o,
|
|
82
77
|
children: /* @__PURE__ */ m("select", {
|
|
83
78
|
multiple: !0,
|
|
84
|
-
value: Array.isArray(
|
|
79
|
+
value: Array.isArray(r) ? r.map(String) : [],
|
|
85
80
|
onChange: (e) => {
|
|
86
|
-
|
|
81
|
+
i(Array.from(e.target.selectedOptions).map((e) => e.value));
|
|
87
82
|
},
|
|
88
83
|
className: "w-full rounded-md border border-border bg-card p-2 text-sm",
|
|
89
84
|
children: t.items.enum.map((e) => /* @__PURE__ */ m("option", {
|
|
@@ -92,35 +87,35 @@ function _({ name: e, prop: t, required: r, value: i, onChange: a }) {
|
|
|
92
87
|
}, String(e)))
|
|
93
88
|
})
|
|
94
89
|
}) : t.type === "integer" || t.type === "number" ? /* @__PURE__ */ m(v, {
|
|
95
|
-
label:
|
|
96
|
-
help:
|
|
90
|
+
label: a,
|
|
91
|
+
help: o,
|
|
97
92
|
children: /* @__PURE__ */ m("input", {
|
|
98
93
|
type: "number",
|
|
99
94
|
step: t.type === "integer" ? 1 : "any",
|
|
100
95
|
min: t.minimum,
|
|
101
96
|
max: t.maximum,
|
|
102
|
-
value:
|
|
97
|
+
value: r == null ? "" : s(r),
|
|
103
98
|
onChange: (e) => {
|
|
104
|
-
|
|
99
|
+
i(e.target.value === "" ? void 0 : Number(e.target.value));
|
|
105
100
|
},
|
|
106
101
|
className: "w-full rounded-md border border-border bg-card p-2 text-sm"
|
|
107
102
|
})
|
|
108
103
|
}) : t.format === "multiline" ? /* @__PURE__ */ m(v, {
|
|
109
|
-
label:
|
|
110
|
-
help:
|
|
104
|
+
label: a,
|
|
105
|
+
help: o,
|
|
111
106
|
children: /* @__PURE__ */ m("textarea", {
|
|
112
107
|
rows: 3,
|
|
113
|
-
value:
|
|
114
|
-
onChange: (e) =>
|
|
108
|
+
value: s(r),
|
|
109
|
+
onChange: (e) => i(e.target.value),
|
|
115
110
|
className: "w-full rounded-md border border-border bg-card p-2 text-sm"
|
|
116
111
|
})
|
|
117
112
|
}) : /* @__PURE__ */ m(v, {
|
|
118
|
-
label:
|
|
119
|
-
help:
|
|
113
|
+
label: a,
|
|
114
|
+
help: o,
|
|
120
115
|
children: /* @__PURE__ */ m("input", {
|
|
121
116
|
type: t.format === "email" ? "email" : t.format === "url" ? "url" : t.format === "date-time" ? "datetime-local" : "text",
|
|
122
|
-
value:
|
|
123
|
-
onChange: (e) =>
|
|
117
|
+
value: s(r),
|
|
118
|
+
onChange: (e) => i(e.target.value),
|
|
124
119
|
className: "w-full rounded-md border border-border bg-card p-2 text-sm"
|
|
125
120
|
})
|
|
126
121
|
});
|
|
@@ -210,26 +205,27 @@ function C(e, t) {
|
|
|
210
205
|
//#endregion
|
|
211
206
|
//#region src/api/agents.ts
|
|
212
207
|
async function w() {
|
|
213
|
-
return (await
|
|
208
|
+
return (await r("agents.list_available", {})).agents ?? [];
|
|
214
209
|
}
|
|
215
210
|
async function T(e) {
|
|
216
211
|
return {
|
|
217
|
-
id: (await
|
|
212
|
+
id: (await r("agent.start_conversation", { ...e.agent_id ? { agent_id: e.agent_id } : {} })).conversation_id,
|
|
218
213
|
status: "active"
|
|
219
214
|
};
|
|
220
215
|
}
|
|
221
|
-
async function E(e, t) {
|
|
216
|
+
async function E(e, t, n) {
|
|
222
217
|
return {
|
|
223
|
-
id: (await
|
|
218
|
+
id: (await r("agent.send_message", {
|
|
224
219
|
conversation_id: t,
|
|
225
|
-
text: e
|
|
220
|
+
text: e,
|
|
221
|
+
...n ? { context: n } : {}
|
|
226
222
|
})).message_id,
|
|
227
223
|
conversation_id: t,
|
|
228
224
|
role: "user"
|
|
229
225
|
};
|
|
230
226
|
}
|
|
231
227
|
async function D(e, t) {
|
|
232
|
-
await
|
|
228
|
+
await r("agent.answer_question", {
|
|
233
229
|
invocation_id: e,
|
|
234
230
|
answer: t
|
|
235
231
|
});
|
|
@@ -250,13 +246,13 @@ async function A(e, t) {
|
|
|
250
246
|
});
|
|
251
247
|
}
|
|
252
248
|
async function j(e) {
|
|
253
|
-
await
|
|
249
|
+
await r("agent.cancel_question", { invocation_id: e });
|
|
254
250
|
}
|
|
255
251
|
async function M(e) {
|
|
256
|
-
await
|
|
252
|
+
await r("agent.cancel_conversation", { conversation_id: e });
|
|
257
253
|
}
|
|
258
254
|
async function N() {
|
|
259
|
-
let e = await
|
|
255
|
+
let e = await i("agent_conversation", {
|
|
260
256
|
sort: "updated_at:desc",
|
|
261
257
|
page: 1,
|
|
262
258
|
per_page: 50
|
|
@@ -299,13 +295,13 @@ async function I(e) {
|
|
|
299
295
|
async function L(e, t) {
|
|
300
296
|
let n = [];
|
|
301
297
|
for (let r = 1;; r += 1) {
|
|
302
|
-
let
|
|
298
|
+
let a = await i(e, {
|
|
303
299
|
...t,
|
|
304
300
|
page: r,
|
|
305
301
|
per_page: 1e3
|
|
306
|
-
}),
|
|
307
|
-
if (n.push(...
|
|
308
|
-
if (
|
|
302
|
+
}), o = a.data ?? [];
|
|
303
|
+
if (n.push(...o), a.meta?.has_more !== !0) return n;
|
|
304
|
+
if (o.length === 0) throw Error(`${e} pagination did not advance`);
|
|
309
305
|
}
|
|
310
306
|
}
|
|
311
307
|
//#endregion
|
|
@@ -353,37 +349,25 @@ function G(e, t) {
|
|
|
353
349
|
}
|
|
354
350
|
function K(e, t) {
|
|
355
351
|
let n = !1, r = [];
|
|
356
|
-
for (let i of e) {
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
}
|
|
361
|
-
if (n = !0, i.content.length !== 0) {
|
|
362
|
-
if (i.streaming) {
|
|
363
|
-
r.push({
|
|
364
|
-
...i,
|
|
365
|
-
streaming: !1
|
|
366
|
-
});
|
|
367
|
-
continue;
|
|
368
|
-
}
|
|
369
|
-
r.push(i);
|
|
370
|
-
}
|
|
371
|
-
}
|
|
352
|
+
for (let i of e) i.id !== t || i.role !== "assistant" ? r.push(i) : (n = !0, i.content.length !== 0 && (i.streaming ? r.push({
|
|
353
|
+
...i,
|
|
354
|
+
streaming: !1
|
|
355
|
+
}) : r.push(i)));
|
|
372
356
|
return n ? r : e;
|
|
373
357
|
}
|
|
374
|
-
function
|
|
358
|
+
function ee(e) {
|
|
375
359
|
let t = e;
|
|
376
360
|
for (let n of e) n.role === "assistant" && n.streaming && (t = K(t, n.id));
|
|
377
361
|
return t;
|
|
378
362
|
}
|
|
379
|
-
function
|
|
363
|
+
function q(e, t, n, r) {
|
|
380
364
|
let i = !1, a = e.map((e) => e.id === n ? (i = !0, r(e)) : e);
|
|
381
365
|
return i ? a : [...e, r(W(n, t))];
|
|
382
366
|
}
|
|
383
|
-
function
|
|
367
|
+
function te(e, t, n, r) {
|
|
384
368
|
if (!r) return e;
|
|
385
369
|
let i = e.find((e) => e.id === n);
|
|
386
|
-
return i && !i.streaming ? e :
|
|
370
|
+
return i && !i.streaming ? e : q(G(e, n), t, n, (e) => {
|
|
387
371
|
let t = [...e.content], n = t[t.length - 1];
|
|
388
372
|
return n?.type === "text" ? t[t.length - 1] = {
|
|
389
373
|
...n,
|
|
@@ -398,9 +382,9 @@ function Y(e, t, n, r) {
|
|
|
398
382
|
};
|
|
399
383
|
});
|
|
400
384
|
}
|
|
401
|
-
function
|
|
385
|
+
function ne(e, t, n, r, i, a) {
|
|
402
386
|
let o = e.find((e) => e.id === n);
|
|
403
|
-
return o && !o.streaming ? e :
|
|
387
|
+
return o && !o.streaming ? e : q(G(e, n), t, n, (e) => r && e.content.some((e) => e.type === "tool_use" && e.id === r) ? e.streaming ? e : {
|
|
404
388
|
...e,
|
|
405
389
|
streaming: !0
|
|
406
390
|
} : {
|
|
@@ -414,49 +398,45 @@ function ee(e, t, n, r, i, a) {
|
|
|
414
398
|
}]
|
|
415
399
|
});
|
|
416
400
|
}
|
|
417
|
-
function
|
|
401
|
+
function re(e, t) {
|
|
418
402
|
let n = e.map((e) => e.streaming ? {
|
|
419
403
|
...e,
|
|
420
404
|
streaming: !1
|
|
421
405
|
} : e), r = new Set(n.map((e) => e.id)), i = /* @__PURE__ */ new Set();
|
|
422
406
|
for (let e of n) if (e.role === "tool") for (let t of e.content) t.type === "tool_result" && t.id && i.add(t.id);
|
|
423
|
-
for (let e of t) {
|
|
424
|
-
if (e.
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
if (
|
|
430
|
-
|
|
431
|
-
let t = e.content.find((e) => e.type === "tool_result");
|
|
432
|
-
if (t && i.has(t.id)) continue;
|
|
433
|
-
n.push(e);
|
|
434
|
-
}
|
|
407
|
+
for (let e of t) if (e.role === "assistant") {
|
|
408
|
+
if (!e.streaming || r.has(e.id)) continue;
|
|
409
|
+
n.push(e);
|
|
410
|
+
} else if (e.role === "tool") {
|
|
411
|
+
if (r.has(e.id)) continue;
|
|
412
|
+
let t = e.content.find((e) => e.type === "tool_result");
|
|
413
|
+
if (t && i.has(t.id)) continue;
|
|
414
|
+
n.push(e);
|
|
435
415
|
}
|
|
436
416
|
return n;
|
|
437
417
|
}
|
|
438
|
-
function
|
|
418
|
+
function J(e) {
|
|
439
419
|
let t = e.payload?.message_id;
|
|
440
420
|
return typeof t == "string" && t ? t : void 0;
|
|
441
421
|
}
|
|
442
|
-
function
|
|
443
|
-
let
|
|
444
|
-
H(
|
|
445
|
-
}, [
|
|
422
|
+
function Y(r) {
|
|
423
|
+
let i = e.getState().activeTenant?.id, [a, c] = p(r ?? V(i)), l = u((e) => {
|
|
424
|
+
H(i, e), c(e);
|
|
425
|
+
}, [i]), [m, h] = p([]), [g, _] = p(R), [v, y] = p([]), [b, x] = p([]), [S, C] = p([]), [D, L] = p([]), [z, B] = p(), W = f(/* @__PURE__ */ new Set()), Y = f(0);
|
|
446
426
|
d(() => {
|
|
447
|
-
if (!
|
|
427
|
+
if (!a) {
|
|
448
428
|
h([]), _(R), y([]), x([]);
|
|
449
429
|
return;
|
|
450
430
|
}
|
|
451
|
-
if (W.current.has(
|
|
452
|
-
W.current.delete(
|
|
431
|
+
if (W.current.has(a)) {
|
|
432
|
+
W.current.delete(a);
|
|
453
433
|
return;
|
|
454
434
|
}
|
|
455
435
|
let e = !1;
|
|
456
436
|
return Promise.all([
|
|
457
|
-
I(
|
|
458
|
-
P(
|
|
459
|
-
F(
|
|
437
|
+
I(a),
|
|
438
|
+
P(a),
|
|
439
|
+
F(a)
|
|
460
440
|
]).then(([t, n, r]) => {
|
|
461
441
|
if (e) return;
|
|
462
442
|
let i = t.map((e) => e.streaming ? {
|
|
@@ -469,32 +449,41 @@ function Z(t) {
|
|
|
469
449
|
}), () => {
|
|
470
450
|
e = !0;
|
|
471
451
|
};
|
|
472
|
-
}, [
|
|
473
|
-
let
|
|
452
|
+
}, [a, l]);
|
|
453
|
+
let X = f(a);
|
|
474
454
|
d(() => {
|
|
475
|
-
|
|
476
|
-
}, [
|
|
477
|
-
let $ = u((e) => {
|
|
478
|
-
|
|
455
|
+
X.current = a;
|
|
456
|
+
}, [a]);
|
|
457
|
+
let Z = f(!1), Q = f(null), $ = u((e) => {
|
|
458
|
+
if (Z.current) {
|
|
459
|
+
Q.current = e;
|
|
460
|
+
return;
|
|
461
|
+
}
|
|
462
|
+
Z.current = !0;
|
|
463
|
+
let t = ++Y.current;
|
|
479
464
|
Promise.all([
|
|
480
465
|
I(e),
|
|
481
466
|
P(e),
|
|
482
467
|
F(e)
|
|
483
468
|
]).then(([n, r, i]) => {
|
|
484
|
-
e ===
|
|
485
|
-
}, () => {})
|
|
469
|
+
e === X.current && t === Y.current && (h((e) => re(n, e)), y(r), x(i));
|
|
470
|
+
}, () => {}).finally(() => {
|
|
471
|
+
Z.current = !1;
|
|
472
|
+
let e = Q.current;
|
|
473
|
+
Q.current = null, e && $(e);
|
|
474
|
+
});
|
|
486
475
|
}, []);
|
|
487
476
|
d(() => {
|
|
488
|
-
let
|
|
489
|
-
let { convId: t, kind: n, turnId:
|
|
490
|
-
t ===
|
|
477
|
+
let e = (e) => {
|
|
478
|
+
let { convId: t, kind: n, turnId: i, payload: a } = e.detail;
|
|
479
|
+
t === X.current && r(t, {
|
|
491
480
|
kind: n,
|
|
492
|
-
turnId:
|
|
493
|
-
payload:
|
|
481
|
+
turnId: i,
|
|
482
|
+
payload: a
|
|
494
483
|
});
|
|
495
484
|
};
|
|
496
|
-
|
|
497
|
-
let
|
|
485
|
+
n.addEventListener(t, e);
|
|
486
|
+
let r = (e, t) => {
|
|
498
487
|
switch (t.kind) {
|
|
499
488
|
case "turn.started":
|
|
500
489
|
_((e) => ({
|
|
@@ -505,16 +494,16 @@ function Z(t) {
|
|
|
505
494
|
case "assistant.message.created": {
|
|
506
495
|
let n = typeof t.payload?.message_id == "string" ? t.payload.message_id : "";
|
|
507
496
|
if (!n) break;
|
|
508
|
-
h((t) =>
|
|
497
|
+
h((t) => q(G(t, n), e, n, (e) => ({
|
|
509
498
|
...e,
|
|
510
499
|
streaming: !0
|
|
511
500
|
})));
|
|
512
501
|
break;
|
|
513
502
|
}
|
|
514
503
|
case "text.delta": {
|
|
515
|
-
let
|
|
516
|
-
if (!
|
|
517
|
-
h((t) =>
|
|
504
|
+
let n = s(t.payload?.text), r = J(t);
|
|
505
|
+
if (!r || !n) break;
|
|
506
|
+
h((t) => te(t, e, r, n));
|
|
518
507
|
break;
|
|
519
508
|
}
|
|
520
509
|
case "elicit.pending":
|
|
@@ -524,9 +513,9 @@ function Z(t) {
|
|
|
524
513
|
$(e);
|
|
525
514
|
break;
|
|
526
515
|
case "tool.proposed": {
|
|
527
|
-
let n =
|
|
516
|
+
let n = J(t), r = typeof t.payload?.tool == "string" ? t.payload.tool : "", i = t.payload?.params ?? {}, a = typeof t.payload?.tool_use_id == "string" ? t.payload.tool_use_id : "";
|
|
528
517
|
if (!n || !r) break;
|
|
529
|
-
h((t) =>
|
|
518
|
+
h((t) => ne(t, e, n, a, r, i));
|
|
530
519
|
break;
|
|
531
520
|
}
|
|
532
521
|
case "tool.result":
|
|
@@ -536,57 +525,57 @@ function Z(t) {
|
|
|
536
525
|
break;
|
|
537
526
|
case "turn.finished": {
|
|
538
527
|
_(R);
|
|
539
|
-
let e =
|
|
528
|
+
let e = J(t);
|
|
540
529
|
e && h((t) => K(t, e));
|
|
541
530
|
break;
|
|
542
531
|
}
|
|
543
|
-
case "error": h((e) =>
|
|
532
|
+
case "error": h((e) => ee(e)), _((e) => ({
|
|
544
533
|
...e,
|
|
545
534
|
streaming: !1
|
|
546
535
|
}));
|
|
547
536
|
}
|
|
548
|
-
},
|
|
549
|
-
let e =
|
|
537
|
+
}, i = () => {
|
|
538
|
+
let e = X.current;
|
|
550
539
|
e && $(e);
|
|
551
540
|
};
|
|
552
|
-
return
|
|
553
|
-
|
|
541
|
+
return n.addEventListener(o, i), () => {
|
|
542
|
+
n.removeEventListener(t, e), n.removeEventListener(o, i);
|
|
554
543
|
};
|
|
555
544
|
}, [$]);
|
|
556
|
-
let
|
|
557
|
-
let
|
|
558
|
-
|
|
559
|
-
let
|
|
545
|
+
let ie = u(async (e, t) => {
|
|
546
|
+
let n = a;
|
|
547
|
+
n || (n = (await T({ agent_id: z })).id, W.current.add(n), X.current = n, l(n));
|
|
548
|
+
let r;
|
|
560
549
|
try {
|
|
561
|
-
|
|
562
|
-
} catch (
|
|
563
|
-
if (!U(
|
|
564
|
-
|
|
550
|
+
r = await E(e, n, t);
|
|
551
|
+
} catch (i) {
|
|
552
|
+
if (!U(i)) throw i;
|
|
553
|
+
n = (await T({ agent_id: z })).id, W.current.add(n), X.current = n, l(n), r = await E(e, n, t);
|
|
565
554
|
}
|
|
566
|
-
h((t) => t.some((e) => e.id ===
|
|
567
|
-
...
|
|
555
|
+
h((t) => t.some((e) => e.id === r.id) ? t : [...t, {
|
|
556
|
+
...r,
|
|
568
557
|
content: [{
|
|
569
558
|
type: "text",
|
|
570
559
|
text: e
|
|
571
560
|
}]
|
|
572
561
|
}]);
|
|
573
562
|
}, [
|
|
574
|
-
|
|
563
|
+
a,
|
|
575
564
|
l,
|
|
576
565
|
z
|
|
577
|
-
]),
|
|
578
|
-
await k(e, t),
|
|
579
|
-
}, [
|
|
580
|
-
await A(e, t),
|
|
581
|
-
}, [
|
|
582
|
-
|
|
583
|
-
}, [
|
|
584
|
-
|
|
585
|
-
}, [
|
|
586
|
-
|
|
587
|
-
}, [
|
|
566
|
+
]), ae = u(async (e, t) => {
|
|
567
|
+
await k(e, t), a && $(a);
|
|
568
|
+
}, [a, $]), oe = u(async (e, t) => {
|
|
569
|
+
await A(e, t), a && $(a);
|
|
570
|
+
}, [a, $]), se = u(async (e, t) => {
|
|
571
|
+
a && (await O(a, e, t), $(a));
|
|
572
|
+
}, [a, $]), ce = u(async (e) => {
|
|
573
|
+
a && (await j(e), $(a));
|
|
574
|
+
}, [a, $]), le = u(async () => {
|
|
575
|
+
a && await M(a);
|
|
576
|
+
}, [a]), ue = u(async () => {
|
|
588
577
|
C(await N());
|
|
589
|
-
}, []),
|
|
578
|
+
}, []), de = u(() => {
|
|
590
579
|
l(void 0), h([]), _(R);
|
|
591
580
|
}, [l]);
|
|
592
581
|
return d(() => {
|
|
@@ -599,20 +588,20 @@ function Z(t) {
|
|
|
599
588
|
e = !1;
|
|
600
589
|
};
|
|
601
590
|
}, []), {
|
|
602
|
-
conversationId:
|
|
591
|
+
conversationId: a,
|
|
603
592
|
messages: m,
|
|
604
593
|
turn: g,
|
|
605
594
|
turns: v,
|
|
606
595
|
invocations: b,
|
|
607
596
|
conversations: S,
|
|
608
|
-
send:
|
|
609
|
-
approve:
|
|
610
|
-
reject:
|
|
611
|
-
submitInput:
|
|
612
|
-
cancelInput:
|
|
613
|
-
cancel:
|
|
614
|
-
refreshConversations:
|
|
615
|
-
startNew:
|
|
597
|
+
send: ie,
|
|
598
|
+
approve: ae,
|
|
599
|
+
reject: oe,
|
|
600
|
+
submitInput: se,
|
|
601
|
+
cancelInput: ce,
|
|
602
|
+
cancel: le,
|
|
603
|
+
refreshConversations: ue,
|
|
604
|
+
startNew: de,
|
|
616
605
|
agents: D,
|
|
617
606
|
selectedAgentId: z,
|
|
618
607
|
selectAgent: B,
|
|
@@ -620,4 +609,4 @@ function Z(t) {
|
|
|
620
609
|
};
|
|
621
610
|
}
|
|
622
611
|
//#endregion
|
|
623
|
-
export { j as a, N as c, I as d, A as f, g, S as h, M as i, F as l, E as m, D as n, T as o, O as p, k as r, w as s,
|
|
612
|
+
export { j as a, N as c, I as d, A as f, g, S as h, M as i, F as l, E as m, D as n, T as o, O as p, k as r, w as s, Y as t, P as u };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Gt as e, It as t, Jt as n, Kt as r, Q as i, U as a, Wt as o, wt as s } from "./useCurrentScreen--UovgvRj.js";
|
|
2
|
+
import { F as c } from "./PropertyGridEditor-BTjscqfz.js";
|
|
3
|
+
import { r as l } from "./page-state-eA6J_KIR.js";
|
|
4
|
+
import { useMutation as u, useQueryClient as d } from "@tanstack/react-query";
|
|
5
|
+
import { useNavigate as f } from "react-router";
|
|
6
|
+
//#region src/hooks/useAuth.ts
|
|
7
|
+
function p() {
|
|
8
|
+
let { user: p, isAuthenticated: m, isLoading: h, activeTenant: g, tenants: _, setUser: v, setTenants: y, logout: b } = t(), x = f(), S = d(), C = s("errors"), w = u({
|
|
9
|
+
mutationFn: ({ email: t, password: n, remember: r }) => e(t, n, r ?? !0),
|
|
10
|
+
onSuccess: (e) => {
|
|
11
|
+
v(e.user, e.tenant), S.invalidateQueries({ queryKey: ["schema"] }), o().then(y).catch(() => {});
|
|
12
|
+
}
|
|
13
|
+
}), T = u({
|
|
14
|
+
mutationFn: ({ email: e, password: t, displayName: n }) => r(e, t, n),
|
|
15
|
+
onSuccess: (e) => {
|
|
16
|
+
v(e.user, e.tenant), S.invalidateQueries({ queryKey: ["schema"] }), o().then(y).catch(() => {});
|
|
17
|
+
},
|
|
18
|
+
onError: (e) => {
|
|
19
|
+
a.error(i(C, e));
|
|
20
|
+
}
|
|
21
|
+
}), E = u({
|
|
22
|
+
mutationFn: (e) => n(e),
|
|
23
|
+
onSuccess: (e) => {
|
|
24
|
+
let t = e.tenant?.id, n = e.user?.id, r = t && n && c(t, n) || "/";
|
|
25
|
+
window.location.assign(r);
|
|
26
|
+
},
|
|
27
|
+
onError: (e) => {
|
|
28
|
+
a.error(i(C, e));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
return {
|
|
32
|
+
user: p,
|
|
33
|
+
isAuthenticated: m,
|
|
34
|
+
isLoading: h,
|
|
35
|
+
activeTenant: g,
|
|
36
|
+
tenants: _,
|
|
37
|
+
login: w.mutate,
|
|
38
|
+
signup: T.mutate,
|
|
39
|
+
switchTenant: E.mutate,
|
|
40
|
+
logout: async () => {
|
|
41
|
+
await b(), S.clear(), l.getState().clear(), x("/login");
|
|
42
|
+
},
|
|
43
|
+
isLoginPending: w.isPending,
|
|
44
|
+
isSignupPending: T.isPending,
|
|
45
|
+
isSwitchingTenant: E.isPending
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { p as t };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { r as e } from "./useParams-ei6w4I7w.js";
|
|
2
|
+
//#region src/lib/branding.ts
|
|
3
|
+
var t = "branding";
|
|
4
|
+
function n(e, t) {
|
|
5
|
+
return e?.parameters.find((e) => e.code === t)?.value;
|
|
6
|
+
}
|
|
7
|
+
function r(e) {
|
|
8
|
+
return i(n(e, t));
|
|
9
|
+
}
|
|
10
|
+
function i(e) {
|
|
11
|
+
if (o(e)) return e;
|
|
12
|
+
}
|
|
13
|
+
function a(e) {
|
|
14
|
+
let t = r(e)?.identity;
|
|
15
|
+
return o(t) ? t : void 0;
|
|
16
|
+
}
|
|
17
|
+
function o(e) {
|
|
18
|
+
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
19
|
+
}
|
|
20
|
+
function s(e) {
|
|
21
|
+
if (!e) return !1;
|
|
22
|
+
let t = e.trim();
|
|
23
|
+
return t ? t.startsWith("/") || t.startsWith("http://") || t.startsWith("https://") || t.startsWith("data:image/") : !1;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/hooks/useBranding.ts
|
|
27
|
+
function c() {
|
|
28
|
+
let n = e(t);
|
|
29
|
+
return {
|
|
30
|
+
branding: i(n.value),
|
|
31
|
+
isLoading: n.loading
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function l() {
|
|
35
|
+
return c().branding?.identity;
|
|
36
|
+
}
|
|
37
|
+
function u() {
|
|
38
|
+
return c().branding?.chrome;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { a, t as i, u as n, s as o, l as r, c as t };
|