@vertesia/ui 1.0.0-dev.20260305.083323Z → 1.0.0-dev.20260331.091034Z
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/lib/esm/core/components/SelectList.js +3 -1
- package/lib/esm/core/components/SelectList.js.map +1 -1
- package/lib/esm/core/components/SidePanel.js +2 -2
- package/lib/esm/core/components/SidePanel.js.map +1 -1
- package/lib/esm/core/components/index.js +0 -5
- package/lib/esm/core/components/index.js.map +1 -1
- package/lib/esm/core/components/shadcn/breadcrumb.js +11 -7
- package/lib/esm/core/components/shadcn/breadcrumb.js.map +1 -1
- package/lib/esm/core/components/shadcn/button.js +5 -3
- package/lib/esm/core/components/shadcn/button.js.map +1 -1
- package/lib/esm/core/components/shadcn/collaspible.js +14 -0
- package/lib/esm/core/components/shadcn/collaspible.js.map +1 -0
- package/lib/esm/core/components/shadcn/dropdown.js +64 -0
- package/lib/esm/core/components/shadcn/dropdown.js.map +1 -0
- package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js +3 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js +3 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js +1 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js +1 -1
- package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js +4 -2
- package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/filterBar.js +7 -4
- package/lib/esm/core/components/shadcn/filters/filterBar.js.map +1 -1
- package/lib/esm/core/components/shadcn/index.js +4 -0
- package/lib/esm/core/components/shadcn/index.js.map +1 -1
- package/lib/esm/core/components/shadcn/modal/ConfirmModal.js +4 -2
- package/lib/esm/core/components/shadcn/modal/ConfirmModal.js.map +1 -1
- package/lib/esm/core/components/shadcn/modal/DeleteModal.js +5 -3
- package/lib/esm/core/components/shadcn/modal/DeleteModal.js.map +1 -1
- package/lib/esm/core/components/shadcn/popover.js +11 -7
- package/lib/esm/core/components/shadcn/popover.js.map +1 -1
- package/lib/esm/core/components/shadcn/radioGroup.js +29 -0
- package/lib/esm/core/components/shadcn/radioGroup.js.map +1 -0
- package/lib/esm/core/components/shadcn/switch.js +19 -0
- package/lib/esm/core/components/shadcn/switch.js.map +1 -0
- package/lib/esm/core/components/shadcn/tabs.js +6 -6
- package/lib/esm/core/components/shadcn/tabs.js.map +1 -1
- package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js +7 -4
- package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js.map +1 -1
- package/lib/esm/core/components/toast/NotificationPanel.js +3 -3
- package/lib/esm/core/components/toast/NotificationPanel.js.map +1 -1
- package/lib/esm/core/hooks/PortalContainerProvider.js +9 -3
- package/lib/esm/core/hooks/PortalContainerProvider.js.map +1 -1
- package/lib/esm/env/index.js +16 -9
- package/lib/esm/env/index.js.map +1 -1
- package/lib/esm/features/agent/PayloadBuilder.js +87 -15
- package/lib/esm/features/agent/PayloadBuilder.js.map +1 -1
- package/lib/esm/features/agent/chat/AgentRightPanel.js +159 -0
- package/lib/esm/features/agent/chat/AgentRightPanel.js.map +1 -0
- package/lib/esm/features/agent/chat/ArtifactsTab.js +69 -0
- package/lib/esm/features/agent/chat/ArtifactsTab.js.map +1 -0
- package/lib/esm/features/agent/chat/AskUserWidget.js +12 -6
- package/lib/esm/features/agent/chat/AskUserWidget.js.map +1 -1
- package/lib/esm/features/agent/chat/DocumentPanel.js +6 -3
- package/lib/esm/features/agent/chat/DocumentPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ImageLightbox.js +3 -1
- package/lib/esm/features/agent/chat/ImageLightbox.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentConversation.js +241 -113
- package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +122 -52
- package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js +5 -3
- package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +76 -33
- package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +82 -83
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +16 -14
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +20 -5
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js +8 -6
- package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js +12 -10
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js +5 -3
- package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js +104 -13
- package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +9 -5
- package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js +160 -76
- package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js.map +1 -1
- package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js +3 -1
- package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js.map +1 -1
- package/lib/esm/features/agent/chat/VegaLiteChart.js +14 -2
- package/lib/esm/features/agent/chat/VegaLiteChart.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useAgentPlans.js +3 -8
- package/lib/esm/features/agent/chat/hooks/useAgentPlans.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useAgentStream.js +79 -16
- package/lib/esm/features/agent/chat/hooks/useAgentStream.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useArtifacts.js +108 -0
- package/lib/esm/features/agent/chat/hooks/useArtifacts.js.map +1 -0
- package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js +56 -5
- package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useFileProcessing.js +12 -10
- package/lib/esm/features/agent/chat/hooks/useFileProcessing.js.map +1 -1
- package/lib/esm/features/errors/PanelErrorBoundary.js +3 -1
- package/lib/esm/features/errors/PanelErrorBoundary.js.map +1 -1
- package/lib/esm/features/facets/AgentRunnerFacetsNav.js +45 -33
- package/lib/esm/features/facets/AgentRunnerFacetsNav.js.map +1 -1
- package/lib/esm/features/facets/RunsFacetsNav.js +9 -2
- package/lib/esm/features/facets/RunsFacetsNav.js.map +1 -1
- package/lib/esm/features/facets/index.js +1 -1
- package/lib/esm/features/facets/index.js.map +1 -1
- package/lib/esm/features/layout/GenericPageNavHeader.js +40 -28
- package/lib/esm/features/layout/GenericPageNavHeader.js.map +1 -1
- package/lib/esm/features/layout/NotFoundView.js +3 -1
- package/lib/esm/features/layout/NotFoundView.js.map +1 -1
- package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js +9 -5
- package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js.map +1 -1
- package/lib/esm/features/magic-pdf/DownloadPopover.js +5 -4
- package/lib/esm/features/magic-pdf/DownloadPopover.js.map +1 -1
- package/lib/esm/features/magic-pdf/MagicPdfView.js +8 -5
- package/lib/esm/features/magic-pdf/MagicPdfView.js.map +1 -1
- package/lib/esm/features/pdf-viewer/PdfPageSlider.js +9 -5
- package/lib/esm/features/pdf-viewer/PdfPageSlider.js.map +1 -1
- package/lib/esm/features/pdf-viewer/SimplePdfViewer.js +5 -3
- package/lib/esm/features/pdf-viewer/SimplePdfViewer.js.map +1 -1
- package/lib/esm/features/permissions/UserPermissionsProvider.js +3 -1
- package/lib/esm/features/permissions/UserPermissionsProvider.js.map +1 -1
- package/lib/esm/features/store/collections/BrowseCollectionView.js +9 -1
- package/lib/esm/features/store/collections/BrowseCollectionView.js.map +1 -1
- package/lib/esm/features/store/collections/CollectionsTable.js +14 -7
- package/lib/esm/features/store/collections/CollectionsTable.js.map +1 -1
- package/lib/esm/features/store/collections/CreateCollection.js +12 -9
- package/lib/esm/features/store/collections/CreateCollection.js.map +1 -1
- package/lib/esm/features/store/collections/EditCollectionView.js +23 -19
- package/lib/esm/features/store/collections/EditCollectionView.js.map +1 -1
- package/lib/esm/features/store/collections/SelectCollection.js +25 -10
- package/lib/esm/features/store/collections/SelectCollection.js.map +1 -1
- package/lib/esm/features/store/collections/SharedPropsEditor.js +5 -3
- package/lib/esm/features/store/collections/SharedPropsEditor.js.map +1 -1
- package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js +5 -3
- package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js.map +1 -1
- package/lib/esm/features/store/objects/DocumentPreviewPanel.js +14 -12
- package/lib/esm/features/store/objects/DocumentPreviewPanel.js.map +1 -1
- package/lib/esm/features/store/objects/DocumentSearchResults.js +15 -5
- package/lib/esm/features/store/objects/DocumentSearchResults.js.map +1 -1
- package/lib/esm/features/store/objects/DocumentTable.js +10 -7
- package/lib/esm/features/store/objects/DocumentTable.js.map +1 -1
- package/lib/esm/features/store/objects/ExportPropertiesModal.js +5 -2
- package/lib/esm/features/store/objects/ExportPropertiesModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/ContentDispositionButton.js +3 -1
- package/lib/esm/features/store/objects/components/ContentDispositionButton.js.map +1 -1
- package/lib/esm/features/store/objects/components/ContentOverview.js +55 -40
- package/lib/esm/features/store/objects/components/ContentOverview.js.map +1 -1
- package/lib/esm/features/store/objects/components/DocumentIcon.js +4 -3
- package/lib/esm/features/store/objects/components/DocumentIcon.js.map +1 -1
- package/lib/esm/features/store/objects/components/PropertiesEditorModal.js +13 -11
- package/lib/esm/features/store/objects/components/PropertiesEditorModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js +15 -18
- package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/SelectDocument.js +9 -6
- package/lib/esm/features/store/objects/components/SelectDocument.js.map +1 -1
- package/lib/esm/features/store/objects/components/TextEditorPanel.js +97 -0
- package/lib/esm/features/store/objects/components/TextEditorPanel.js.map +1 -0
- package/lib/esm/features/store/objects/components/VectorSearchWidget.js +3 -1
- package/lib/esm/features/store/objects/components/VectorSearchWidget.js.map +1 -1
- package/lib/esm/features/store/objects/components/useContentPanelHooks.js +4 -2
- package/lib/esm/features/store/objects/components/useContentPanelHooks.js.map +1 -1
- package/lib/esm/features/store/objects/components/useDownloadFile.js +12 -10
- package/lib/esm/features/store/objects/components/useDownloadFile.js.map +1 -1
- package/lib/esm/features/store/objects/layout/documentLayout.js +10 -6
- package/lib/esm/features/store/objects/layout/documentLayout.js.map +1 -1
- package/lib/esm/features/store/objects/layout/renderers.js +10 -1
- package/lib/esm/features/store/objects/layout/renderers.js.map +1 -1
- package/lib/esm/features/store/objects/search/DocumentSearchContext.js +3 -2
- package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +1 -1
- package/lib/esm/features/store/objects/search/DocumentSearchProvider.js +3 -0
- package/lib/esm/features/store/objects/search/DocumentSearchProvider.js.map +1 -1
- package/lib/esm/features/store/objects/selection/ObjectsActionContext.js +22 -109
- package/lib/esm/features/store/objects/selection/ObjectsActionContext.js.map +1 -1
- package/lib/esm/features/store/objects/selection/ObjectsActionContextClass.js +50 -0
- package/lib/esm/features/store/objects/selection/ObjectsActionContextClass.js.map +1 -0
- package/lib/esm/features/store/objects/selection/ObjectsActionHooks.js +27 -0
- package/lib/esm/features/store/objects/selection/ObjectsActionHooks.js.map +1 -0
- package/lib/esm/features/store/objects/selection/SelectionActions.js +10 -6
- package/lib/esm/features/store/objects/selection/SelectionActions.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +17 -12
- package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js +9 -5
- package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js +4 -2
- package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js +24 -23
- package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js +10 -5
- package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js +13 -9
- package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js +14 -8
- package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js.map +1 -1
- package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +42 -39
- package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +1 -1
- package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +4 -2
- package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +1 -1
- package/lib/esm/features/store/objects/upload/useUploadHandler.js +9 -7
- package/lib/esm/features/store/objects/upload/useUploadHandler.js.map +1 -1
- package/lib/esm/features/store/types/ContentObjectTypesSearch.js +6 -4
- package/lib/esm/features/store/types/ContentObjectTypesSearch.js.map +1 -1
- package/lib/esm/features/store/types/ContentObjectTypesTable.js +3 -1
- package/lib/esm/features/store/types/ContentObjectTypesTable.js.map +1 -1
- package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js +6 -7
- package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js.map +1 -1
- package/lib/esm/features/store/types/ObjectSchemaEditor.js +9 -7
- package/lib/esm/features/store/types/ObjectSchemaEditor.js.map +1 -1
- package/lib/esm/features/store/types/SelectContentType.js +9 -7
- package/lib/esm/features/store/types/SelectContentType.js.map +1 -1
- package/lib/esm/features/store/types/SelectContentTypeModal.js +5 -2
- package/lib/esm/features/store/types/SelectContentTypeModal.js.map +1 -1
- package/lib/esm/features/store/types/TableLayoutEditor.js +6 -4
- package/lib/esm/features/store/types/TableLayoutEditor.js.map +1 -1
- package/lib/esm/features/user/UserInfo.js +40 -50
- package/lib/esm/features/user/UserInfo.js.map +1 -1
- package/lib/esm/i18n/index.js +31 -0
- package/lib/esm/i18n/index.js.map +1 -0
- package/lib/esm/i18n/instance.js +46 -0
- package/lib/esm/i18n/instance.js.map +1 -0
- package/lib/esm/i18n/locales/ar.json +696 -0
- package/lib/esm/i18n/locales/de.json +664 -0
- package/lib/esm/i18n/locales/en.json +665 -0
- package/lib/esm/i18n/locales/es.json +670 -0
- package/lib/esm/i18n/locales/fr.json +672 -0
- package/lib/esm/i18n/locales/it.json +670 -0
- package/lib/esm/i18n/locales/ja.json +664 -0
- package/lib/esm/i18n/locales/ko.json +664 -0
- package/lib/esm/i18n/locales/pt.json +670 -0
- package/lib/esm/i18n/locales/ru.json +680 -0
- package/lib/esm/i18n/locales/tr.json +664 -0
- package/lib/esm/i18n/locales/zh-TW.json +664 -0
- package/lib/esm/i18n/locales/zh.json +664 -0
- package/lib/esm/layout/FullHeightLayout.js +3 -0
- package/lib/esm/layout/FullHeightLayout.js.map +1 -1
- package/lib/esm/layout/Navbar.js +3 -1
- package/lib/esm/layout/Navbar.js.map +1 -1
- package/lib/esm/layout/RegionTag.js +15 -0
- package/lib/esm/layout/RegionTag.js.map +1 -0
- package/lib/esm/layout/Sidebar.js +2 -2
- package/lib/esm/layout/Sidebar.js.map +1 -1
- package/lib/esm/layout/index.js +1 -0
- package/lib/esm/layout/index.js.map +1 -1
- package/lib/esm/router/HistoryNavigator.js +1 -1
- package/lib/esm/router/HistoryNavigator.js.map +1 -1
- package/lib/esm/router/Nav.js +5 -3
- package/lib/esm/router/Nav.js.map +1 -1
- package/lib/esm/router/NestedNavigationContext.js +4 -0
- package/lib/esm/router/NestedNavigationContext.js.map +1 -1
- package/lib/esm/router/NestedRouterProvider.js +3 -1
- package/lib/esm/router/NestedRouterProvider.js.map +1 -1
- package/lib/esm/router/Router.js +21 -6
- package/lib/esm/router/Router.js.map +1 -1
- package/lib/esm/session/UserSession.js +25 -4
- package/lib/esm/session/UserSession.js.map +1 -1
- package/lib/esm/session/UserSessionProvider.js +6 -13
- package/lib/esm/session/UserSessionProvider.js.map +1 -1
- package/lib/esm/session/auth/composable.js +1 -1
- package/lib/esm/session/auth/composable.js.map +1 -1
- package/lib/esm/session/auth/domainRouting.js +17 -0
- package/lib/esm/session/auth/domainRouting.js.map +1 -0
- package/lib/esm/session/auth/firebase.js +1 -1
- package/lib/esm/session/auth/firebase.js.map +1 -1
- package/lib/esm/session/auth/useCurrentTenant.js +3 -1
- package/lib/esm/session/auth/useCurrentTenant.js.map +1 -1
- package/lib/esm/shell/SplashScreen.js +3 -7
- package/lib/esm/shell/SplashScreen.js.map +1 -1
- package/lib/esm/shell/apps/StandaloneApp.js +5 -2
- package/lib/esm/shell/apps/StandaloneApp.js.map +1 -1
- package/lib/esm/shell/login/EnterpriseSigninButton.js +5 -3
- package/lib/esm/shell/login/EnterpriseSigninButton.js.map +1 -1
- package/lib/esm/shell/login/GitHubSignInButton.js +3 -7
- package/lib/esm/shell/login/GitHubSignInButton.js.map +1 -1
- package/lib/esm/shell/login/GoogleSignInButton.js +3 -1
- package/lib/esm/shell/login/GoogleSignInButton.js.map +1 -1
- package/lib/esm/shell/login/InviteAcceptModal.js +5 -2
- package/lib/esm/shell/login/InviteAcceptModal.js.map +1 -1
- package/lib/esm/shell/login/MicrosoftSigninButton.js +4 -6
- package/lib/esm/shell/login/MicrosoftSigninButton.js.map +1 -1
- package/lib/esm/shell/login/SigninScreen.js +6 -2
- package/lib/esm/shell/login/SigninScreen.js.map +1 -1
- package/lib/esm/shell/login/SignupForm.js +36 -34
- package/lib/esm/shell/login/SignupForm.js.map +1 -1
- package/lib/esm/shell/login/TerminalLogin.js +28 -21
- package/lib/esm/shell/login/TerminalLogin.js.map +1 -1
- package/lib/esm/shell/login/UserInfo.js +6 -4
- package/lib/esm/shell/login/UserInfo.js.map +1 -1
- package/lib/esm/shell/login/UserSessionMenu.js +3 -4
- package/lib/esm/shell/login/UserSessionMenu.js.map +1 -1
- package/lib/esm/widgets/index.js +0 -1
- package/lib/esm/widgets/index.js.map +1 -1
- package/lib/esm/widgets/json-view/JSONCode.js +1 -1
- package/lib/esm/widgets/json-view/JSONCode.js.map +1 -1
- package/lib/esm/widgets/json-view/JSONDisplay.js +6 -2
- package/lib/esm/widgets/json-view/JSONDisplay.js.map +1 -1
- package/lib/esm/widgets/json-view/JSONSwitcher.js +6 -0
- package/lib/esm/widgets/json-view/JSONSwitcher.js.map +1 -0
- package/lib/esm/widgets/json-view/JSONView.js +1 -1
- package/lib/esm/widgets/json-view/JSONView.js.map +1 -1
- package/lib/esm/widgets/json-view/index.js +1 -0
- package/lib/esm/widgets/json-view/index.js.map +1 -1
- package/lib/esm/widgets/markdown/ArtifactContentRenderer.js +6 -5
- package/lib/esm/widgets/markdown/ArtifactContentRenderer.js.map +1 -1
- package/lib/esm/widgets/markdown/CodeBlockContext.js +11 -0
- package/lib/esm/widgets/markdown/CodeBlockContext.js.map +1 -0
- package/lib/esm/widgets/markdown/MarkdownRenderer.js +11 -10
- package/lib/esm/widgets/markdown/MarkdownRenderer.js.map +1 -1
- package/lib/esm/widgets/markdown/codeBlockHandlers.js +11 -12
- package/lib/esm/widgets/markdown/codeBlockHandlers.js.map +1 -1
- package/lib/esm/widgets/markdown/index.js +10 -9
- package/lib/esm/widgets/markdown/index.js.map +1 -1
- package/lib/esm/widgets/markdown/remarkDirectiveHandler.js +0 -1
- package/lib/esm/widgets/markdown/remarkDirectiveHandler.js.map +1 -1
- package/lib/esm/widgets/schema-editor/ManagedSchema.js +6 -5
- package/lib/esm/widgets/schema-editor/ManagedSchema.js.map +1 -1
- package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js +7 -3
- package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js.map +1 -1
- package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js +3 -1
- package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js.map +1 -1
- package/lib/esm/widgets/upload/DropZone.js +9 -11
- package/lib/esm/widgets/upload/DropZone.js.map +1 -1
- package/lib/esm/widgets/upload/UploadResultCategory.js +3 -1
- package/lib/esm/widgets/upload/UploadResultCategory.js.map +1 -1
- package/lib/esm/widgets/upload/UploadSummary.js +3 -1
- package/lib/esm/widgets/upload/UploadSummary.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/core/components/SelectList.d.ts.map +1 -1
- package/lib/types/core/components/SidePanel.d.ts +4 -2
- package/lib/types/core/components/SidePanel.d.ts.map +1 -1
- package/lib/types/core/components/index.d.ts +0 -5
- package/lib/types/core/components/index.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/badge.d.ts +2 -2
- package/lib/types/core/components/shadcn/breadcrumb.d.ts +1 -1
- package/lib/types/core/components/shadcn/breadcrumb.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/button.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/collaspible.d.ts +6 -0
- package/lib/types/core/components/shadcn/collaspible.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/dropdown.d.ts +51 -0
- package/lib/types/core/components/shadcn/dropdown.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/filters/comboBox/DateCombobox.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/filters/filter/dateFilter.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/filters/filterBar.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/index.d.ts +4 -0
- package/lib/types/core/components/shadcn/index.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/input.d.ts +1 -1
- package/lib/types/core/components/shadcn/modal/ConfirmModal.d.ts +2 -1
- package/lib/types/core/components/shadcn/modal/ConfirmModal.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/modal/DeleteModal.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/popover.d.ts +11 -3
- package/lib/types/core/components/shadcn/popover.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/radioGroup.d.ts +26 -0
- package/lib/types/core/components/shadcn/radioGroup.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/switch.d.ts +12 -0
- package/lib/types/core/components/shadcn/switch.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/tabs.d.ts +4 -2
- package/lib/types/core/components/shadcn/tabs.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts +3 -2
- package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts.map +1 -1
- package/lib/types/core/components/toast/NotificationPanel.d.ts.map +1 -1
- package/lib/types/core/hooks/PortalContainerProvider.d.ts +1 -0
- package/lib/types/core/hooks/PortalContainerProvider.d.ts.map +1 -1
- package/lib/types/env/index.d.ts +12 -3
- package/lib/types/env/index.d.ts.map +1 -1
- package/lib/types/features/agent/PayloadBuilder.d.ts +31 -3
- package/lib/types/features/agent/PayloadBuilder.d.ts.map +1 -1
- package/lib/types/features/agent/chat/AgentRightPanel.d.ts +50 -0
- package/lib/types/features/agent/chat/AgentRightPanel.d.ts.map +1 -0
- package/lib/types/features/agent/chat/ArtifactsTab.d.ts +9 -0
- package/lib/types/features/agent/chat/ArtifactsTab.d.ts.map +1 -0
- package/lib/types/features/agent/chat/AskUserWidget.d.ts.map +1 -1
- package/lib/types/features/agent/chat/DocumentPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ImageLightbox.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentConversation.d.ts +22 -9
- package/lib/types/features/agent/chat/ModernAgentConversation.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +3 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/BatchProgressPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +13 -4
- package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts +3 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts +5 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts +16 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts.map +1 -1
- package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts.map +1 -1
- package/lib/types/features/agent/chat/VegaLiteChart.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useAgentPlans.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts +5 -3
- package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useArtifacts.d.ts +18 -0
- package/lib/types/features/agent/chat/hooks/useArtifacts.d.ts.map +1 -0
- package/lib/types/features/agent/chat/hooks/useDocumentPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts +4 -4
- package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts.map +1 -1
- package/lib/types/features/agent/chat/types/document.d.ts +2 -0
- package/lib/types/features/agent/chat/types/document.d.ts.map +1 -1
- package/lib/types/features/errors/PanelErrorBoundary.d.ts.map +1 -1
- package/lib/types/features/facets/AgentRunnerFacetsNav.d.ts +2 -1
- package/lib/types/features/facets/AgentRunnerFacetsNav.d.ts.map +1 -1
- package/lib/types/features/facets/RunsFacetsNav.d.ts.map +1 -1
- package/lib/types/features/facets/index.d.ts +1 -1
- package/lib/types/features/facets/index.d.ts.map +1 -1
- package/lib/types/features/layout/GenericPageNavHeader.d.ts +2 -2
- package/lib/types/features/layout/GenericPageNavHeader.d.ts.map +1 -1
- package/lib/types/features/layout/NotFoundView.d.ts.map +1 -1
- package/lib/types/features/magic-pdf/AnnotatedImageSlider.d.ts.map +1 -1
- package/lib/types/features/magic-pdf/DownloadPopover.d.ts.map +1 -1
- package/lib/types/features/magic-pdf/MagicPdfView.d.ts.map +1 -1
- package/lib/types/features/pdf-viewer/PdfPageSlider.d.ts.map +1 -1
- package/lib/types/features/pdf-viewer/SimplePdfViewer.d.ts.map +1 -1
- package/lib/types/features/permissions/UserPermissionsProvider.d.ts.map +1 -1
- package/lib/types/features/store/collections/BrowseCollectionView.d.ts.map +1 -1
- package/lib/types/features/store/collections/CollectionsTable.d.ts +4 -0
- package/lib/types/features/store/collections/CollectionsTable.d.ts.map +1 -1
- package/lib/types/features/store/collections/CreateCollection.d.ts.map +1 -1
- package/lib/types/features/store/collections/EditCollectionView.d.ts.map +1 -1
- package/lib/types/features/store/collections/SelectCollection.d.ts.map +1 -1
- package/lib/types/features/store/collections/SharedPropsEditor.d.ts.map +1 -1
- package/lib/types/features/store/collections/SyncMemberHeadsToggle.d.ts.map +1 -1
- package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts.map +1 -1
- package/lib/types/features/store/objects/DocumentSearchResults.d.ts.map +1 -1
- package/lib/types/features/store/objects/DocumentTable.d.ts.map +1 -1
- package/lib/types/features/store/objects/ExportPropertiesModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/ContentOverview.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/DocumentIcon.d.ts +2 -1
- package/lib/types/features/store/objects/components/DocumentIcon.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/SelectDocument.d.ts +3 -1
- package/lib/types/features/store/objects/components/SelectDocument.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/TextEditorPanel.d.ts +10 -0
- package/lib/types/features/store/objects/components/TextEditorPanel.d.ts.map +1 -0
- package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/useContentPanelHooks.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/useDownloadFile.d.ts.map +1 -1
- package/lib/types/features/store/objects/layout/documentLayout.d.ts +3 -2
- package/lib/types/features/store/objects/layout/documentLayout.d.ts.map +1 -1
- package/lib/types/features/store/objects/layout/renderers.d.ts.map +1 -1
- package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts.map +1 -1
- package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts +3 -20
- package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/ObjectsActionContextClass.d.ts +16 -0
- package/lib/types/features/store/objects/selection/ObjectsActionContextClass.d.ts.map +1 -0
- package/lib/types/features/store/objects/selection/ObjectsActionHooks.d.ts +7 -0
- package/lib/types/features/store/objects/selection/ObjectsActionHooks.d.ts.map +1 -0
- package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts +4 -1
- package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/SelectionActions.d.ts +6 -1
- package/lib/types/features/store/objects/selection/SelectionActions.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts +1 -1
- package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts.map +1 -1
- package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts.map +1 -1
- package/lib/types/features/store/objects/upload/useUploadHandler.d.ts.map +1 -1
- package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts.map +1 -1
- package/lib/types/features/store/types/ContentObjectTypesTable.d.ts.map +1 -1
- package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts +2 -1
- package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts.map +1 -1
- package/lib/types/features/store/types/ObjectSchemaEditor.d.ts.map +1 -1
- package/lib/types/features/store/types/SelectContentType.d.ts.map +1 -1
- package/lib/types/features/store/types/SelectContentTypeModal.d.ts.map +1 -1
- package/lib/types/features/store/types/TableLayoutEditor.d.ts.map +1 -1
- package/lib/types/features/user/UserInfo.d.ts +2 -2
- package/lib/types/features/user/UserInfo.d.ts.map +1 -1
- package/lib/types/i18n/index.d.ts +14 -0
- package/lib/types/i18n/index.d.ts.map +1 -0
- package/lib/types/i18n/instance.d.ts +5 -0
- package/lib/types/i18n/instance.d.ts.map +1 -0
- package/lib/types/layout/FullHeightLayout.d.ts +3 -0
- package/lib/types/layout/FullHeightLayout.d.ts.map +1 -1
- package/lib/types/layout/Navbar.d.ts.map +1 -1
- package/lib/types/layout/RegionTag.d.ts +4 -0
- package/lib/types/layout/RegionTag.d.ts.map +1 -0
- package/lib/types/layout/Sidebar.d.ts +2 -1
- package/lib/types/layout/Sidebar.d.ts.map +1 -1
- package/lib/types/layout/index.d.ts +1 -0
- package/lib/types/layout/index.d.ts.map +1 -1
- package/lib/types/router/Nav.d.ts +5 -1
- package/lib/types/router/Nav.d.ts.map +1 -1
- package/lib/types/router/NestedNavigationContext.d.ts.map +1 -1
- package/lib/types/router/NestedRouterProvider.d.ts.map +1 -1
- package/lib/types/router/Router.d.ts +2 -0
- package/lib/types/router/Router.d.ts.map +1 -1
- package/lib/types/session/UserSession.d.ts +1 -0
- package/lib/types/session/UserSession.d.ts.map +1 -1
- package/lib/types/session/UserSessionProvider.d.ts +0 -1
- package/lib/types/session/UserSessionProvider.d.ts.map +1 -1
- package/lib/types/session/auth/domainRouting.d.ts +3 -0
- package/lib/types/session/auth/domainRouting.d.ts.map +1 -0
- package/lib/types/session/auth/useCurrentTenant.d.ts.map +1 -1
- package/lib/types/shell/SplashScreen.d.ts.map +1 -1
- package/lib/types/shell/apps/StandaloneApp.d.ts.map +1 -1
- package/lib/types/shell/login/EnterpriseSigninButton.d.ts.map +1 -1
- package/lib/types/shell/login/GitHubSignInButton.d.ts.map +1 -1
- package/lib/types/shell/login/GoogleSignInButton.d.ts.map +1 -1
- package/lib/types/shell/login/InviteAcceptModal.d.ts.map +1 -1
- package/lib/types/shell/login/MicrosoftSigninButton.d.ts +1 -1
- package/lib/types/shell/login/MicrosoftSigninButton.d.ts.map +1 -1
- package/lib/types/shell/login/SigninScreen.d.ts.map +1 -1
- package/lib/types/shell/login/SignupForm.d.ts.map +1 -1
- package/lib/types/shell/login/TerminalLogin.d.ts.map +1 -1
- package/lib/types/shell/login/UserInfo.d.ts.map +1 -1
- package/lib/types/shell/login/UserSessionMenu.d.ts.map +1 -1
- package/lib/types/widgets/index.d.ts +0 -1
- package/lib/types/widgets/index.d.ts.map +1 -1
- package/lib/types/widgets/json-view/JSONDisplay.d.ts.map +1 -1
- package/lib/types/widgets/json-view/JSONSwitcher.d.ts +6 -0
- package/lib/types/widgets/json-view/JSONSwitcher.d.ts.map +1 -0
- package/lib/types/widgets/json-view/index.d.ts +1 -0
- package/lib/types/widgets/json-view/index.d.ts.map +1 -1
- package/lib/types/widgets/markdown/ArtifactContentRenderer.d.ts.map +1 -1
- package/lib/types/widgets/markdown/CodeBlockContext.d.ts +21 -0
- package/lib/types/widgets/markdown/CodeBlockContext.d.ts.map +1 -0
- package/lib/types/widgets/markdown/MarkdownRenderer.d.ts.map +1 -1
- package/lib/types/widgets/markdown/codeBlockHandlers.d.ts +0 -12
- package/lib/types/widgets/markdown/codeBlockHandlers.d.ts.map +1 -1
- package/lib/types/widgets/markdown/index.d.ts +10 -9
- package/lib/types/widgets/markdown/index.d.ts.map +1 -1
- package/lib/types/widgets/schema-editor/ManagedSchema.d.ts +1 -1
- package/lib/types/widgets/schema-editor/ManagedSchema.d.ts.map +1 -1
- package/lib/types/widgets/schema-editor/editor/PropertyEditor.d.ts.map +1 -1
- package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts.map +1 -1
- package/lib/types/widgets/upload/DropZone.d.ts.map +1 -1
- package/lib/types/widgets/upload/UploadResultCategory.d.ts.map +1 -1
- package/lib/types/widgets/upload/UploadSummary.d.ts.map +1 -1
- package/lib/vertesia-ui-core.js +1 -1
- package/lib/vertesia-ui-core.js.map +1 -1
- package/lib/vertesia-ui-env.js +1 -1
- package/lib/vertesia-ui-env.js.map +1 -1
- package/lib/vertesia-ui-features.js +1 -1
- package/lib/vertesia-ui-features.js.map +1 -1
- package/lib/vertesia-ui-i18n.js +2 -0
- package/lib/vertesia-ui-i18n.js.map +1 -0
- package/lib/vertesia-ui-layout.js +1 -1
- package/lib/vertesia-ui-layout.js.map +1 -1
- package/lib/vertesia-ui-router.js +1 -1
- package/lib/vertesia-ui-router.js.map +1 -1
- package/lib/vertesia-ui-session.js +1 -1
- package/lib/vertesia-ui-session.js.map +1 -1
- package/lib/vertesia-ui-shell.js +1 -1
- package/lib/vertesia-ui-shell.js.map +1 -1
- package/lib/vertesia-ui-widgets.js +1 -1
- package/lib/vertesia-ui-widgets.js.map +1 -1
- package/package.json +36 -22
- package/src/core/components/SelectList.tsx +3 -1
- package/src/core/components/SidePanel.tsx +5 -4
- package/src/core/components/index.ts +0 -5
- package/src/core/components/shadcn/breadcrumb.tsx +16 -9
- package/src/core/components/shadcn/button.tsx +5 -3
- package/src/core/components/shadcn/collaspible.tsx +33 -0
- package/src/core/components/shadcn/dropdown.tsx +325 -0
- package/src/core/components/shadcn/filters/comboBox/DateCombobox.tsx +3 -1
- package/src/core/components/shadcn/filters/comboBox/SelectCombobox.tsx +3 -1
- package/src/core/components/shadcn/filters/comboBox/StringListCombobox.tsx +1 -1
- package/src/core/components/shadcn/filters/filter/StringListFilter.tsx +1 -1
- package/src/core/components/shadcn/filters/filter/dateFilter.tsx +5 -3
- package/src/core/components/shadcn/filters/filterBar.tsx +8 -5
- package/src/core/components/shadcn/index.ts +5 -1
- package/src/core/components/shadcn/modal/ConfirmModal.tsx +7 -3
- package/src/core/components/shadcn/modal/DeleteModal.tsx +5 -3
- package/src/core/components/shadcn/popover.tsx +12 -7
- package/src/core/components/shadcn/radioGroup.tsx +100 -0
- package/src/core/components/shadcn/switch.tsx +60 -0
- package/src/core/components/shadcn/tabs.tsx +29 -27
- package/src/core/components/shadcn/theme/ThemeSwitcher.tsx +13 -9
- package/src/core/components/toast/NotificationPanel.tsx +38 -44
- package/src/core/hooks/PortalContainerProvider.tsx +11 -3
- package/src/env/index.ts +24 -13
- package/src/features/agent/PayloadBuilder.tsx +100 -13
- package/src/features/agent/chat/AgentRightPanel.tsx +424 -0
- package/src/features/agent/chat/ArtifactsTab.tsx +197 -0
- package/src/features/agent/chat/AskUserWidget.tsx +14 -8
- package/src/features/agent/chat/DocumentPanel.tsx +24 -9
- package/src/features/agent/chat/ImageLightbox.tsx +6 -3
- package/src/features/agent/chat/ModernAgentConversation.tsx +460 -279
- package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx +151 -55
- package/src/features/agent/chat/ModernAgentOutput/BatchProgressPanel.tsx +6 -4
- package/src/features/agent/chat/ModernAgentOutput/Header.tsx +183 -105
- package/src/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.tsx +21 -31
- package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +119 -114
- package/src/features/agent/chat/ModernAgentOutput/MessageItem.tsx +26 -9
- package/src/features/agent/chat/ModernAgentOutput/PlanPanel.tsx +9 -7
- package/src/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.tsx +15 -13
- package/src/features/agent/chat/ModernAgentOutput/StreamingMessage.tsx +8 -3
- package/src/features/agent/chat/ModernAgentOutput/ToolCallGroup.tsx +149 -49
- package/src/features/agent/chat/ModernAgentOutput/WorkstreamTabs.tsx +9 -5
- package/src/features/agent/chat/ModernAgentOutput/utils.test.ts +229 -0
- package/src/features/agent/chat/ModernAgentOutput/utils.ts +202 -97
- package/src/features/agent/chat/SlidingThinkingIndicator.tsx +5 -3
- package/src/features/agent/chat/VegaLiteChart.tsx +20 -8
- package/src/features/agent/chat/hooks/useAgentPlans.ts +3 -9
- package/src/features/agent/chat/hooks/useAgentStream.ts +86 -19
- package/src/features/agent/chat/hooks/useArtifacts.ts +151 -0
- package/src/features/agent/chat/hooks/useDocumentPanel.ts +65 -5
- package/src/features/agent/chat/hooks/useFileProcessing.ts +14 -13
- package/src/features/agent/chat/types/document.ts +2 -0
- package/src/features/errors/PanelErrorBoundary.tsx +5 -3
- package/src/features/facets/AgentRunnerFacetsNav.tsx +54 -35
- package/src/features/facets/RunsFacetsNav.tsx +15 -7
- package/src/features/facets/index.ts +1 -1
- package/src/features/layout/GenericPageNavHeader.tsx +64 -41
- package/src/features/layout/NotFoundView.tsx +4 -1
- package/src/features/magic-pdf/AnnotatedImageSlider.tsx +12 -8
- package/src/features/magic-pdf/DownloadPopover.tsx +11 -10
- package/src/features/magic-pdf/MagicPdfView.tsx +10 -7
- package/src/features/pdf-viewer/PdfPageSlider.tsx +10 -6
- package/src/features/pdf-viewer/SimplePdfViewer.tsx +5 -3
- package/src/features/permissions/UserPermissionsProvider.tsx +3 -1
- package/src/features/store/collections/BrowseCollectionView.tsx +11 -1
- package/src/features/store/collections/CollectionsTable.tsx +20 -12
- package/src/features/store/collections/CreateCollection.tsx +14 -11
- package/src/features/store/collections/EditCollectionView.tsx +31 -28
- package/src/features/store/collections/SelectCollection.tsx +50 -14
- package/src/features/store/collections/SharedPropsEditor.tsx +7 -5
- package/src/features/store/collections/SyncMemberHeadsToggle.tsx +6 -4
- package/src/features/store/objects/DocumentPreviewPanel.tsx +30 -28
- package/src/features/store/objects/DocumentSearchResults.tsx +31 -21
- package/src/features/store/objects/DocumentTable.tsx +11 -5
- package/src/features/store/objects/ExportPropertiesModal.tsx +8 -5
- package/src/features/store/objects/components/ContentDispositionButton.tsx +3 -1
- package/src/features/store/objects/components/ContentOverview.tsx +96 -50
- package/src/features/store/objects/components/DocumentIcon.tsx +11 -3
- package/src/features/store/objects/components/PropertiesEditorModal.tsx +14 -12
- package/src/features/store/objects/components/SaveVersionConfirmModal.tsx +24 -37
- package/src/features/store/objects/components/SelectDocument.tsx +15 -6
- package/src/features/store/objects/components/TextEditorPanel.tsx +143 -0
- package/src/features/store/objects/components/VectorSearchWidget.tsx +11 -8
- package/src/features/store/objects/components/useContentPanelHooks.ts +4 -2
- package/src/features/store/objects/components/useDownloadFile.ts +12 -10
- package/src/features/store/objects/layout/documentLayout.tsx +16 -6
- package/src/features/store/objects/layout/renderers.tsx +27 -1
- package/src/features/store/objects/search/DocumentSearchContext.ts +3 -2
- package/src/features/store/objects/search/DocumentSearchProvider.tsx +3 -0
- package/src/features/store/objects/selection/ObjectsActionContext.tsx +26 -128
- package/src/features/store/objects/selection/ObjectsActionContextClass.ts +59 -0
- package/src/features/store/objects/selection/ObjectsActionHooks.ts +33 -0
- package/src/features/store/objects/selection/ObjectsActionSpec.ts +4 -1
- package/src/features/store/objects/selection/SelectionActions.tsx +14 -6
- package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +19 -14
- package/src/features/store/objects/selection/actions/ChangeTypeAction.tsx +9 -5
- package/src/features/store/objects/selection/actions/ConfirmAction.tsx +4 -3
- package/src/features/store/objects/selection/actions/DeleteObjectsAction.tsx +24 -23
- package/src/features/store/objects/selection/actions/ExportPropertiesAction.tsx +10 -5
- package/src/features/store/objects/selection/actions/RemoveFromCollectionAction.tsx +13 -9
- package/src/features/store/objects/selection/actions/StartWorkflowComponent.tsx +14 -8
- package/src/features/store/objects/upload/DocumentUploadModal.tsx +56 -55
- package/src/features/store/objects/upload/useSmartFileUploadProcessing.ts +4 -2
- package/src/features/store/objects/upload/useUploadHandler.ts +9 -7
- package/src/features/store/types/ContentObjectTypesSearch.tsx +10 -8
- package/src/features/store/types/ContentObjectTypesTable.tsx +6 -4
- package/src/features/store/types/CreateOrUpdateTypeModal.tsx +11 -12
- package/src/features/store/types/ObjectSchemaEditor.tsx +11 -9
- package/src/features/store/types/SelectContentType.tsx +15 -13
- package/src/features/store/types/SelectContentTypeModal.tsx +16 -13
- package/src/features/store/types/TableLayoutEditor.tsx +16 -12
- package/src/features/user/UserInfo.tsx +47 -56
- package/src/i18n/index.tsx +45 -0
- package/src/i18n/instance.ts +49 -0
- package/src/i18n/locales/ar.json +696 -0
- package/src/i18n/locales/de.json +664 -0
- package/src/i18n/locales/en.json +665 -0
- package/src/i18n/locales/es.json +670 -0
- package/src/i18n/locales/fr.json +672 -0
- package/src/i18n/locales/it.json +670 -0
- package/src/i18n/locales/ja.json +664 -0
- package/src/i18n/locales/ko.json +664 -0
- package/src/i18n/locales/pt.json +670 -0
- package/src/i18n/locales/ru.json +680 -0
- package/src/i18n/locales/tr.json +664 -0
- package/src/i18n/locales/zh-TW.json +664 -0
- package/src/i18n/locales/zh.json +664 -0
- package/src/layout/FullHeightLayout.tsx +8 -0
- package/src/layout/Navbar.tsx +4 -2
- package/src/layout/RegionTag.tsx +25 -0
- package/src/layout/Sidebar.tsx +4 -3
- package/src/layout/index.ts +2 -1
- package/src/router/HistoryNavigator.ts +10 -10
- package/src/router/Nav.tsx +9 -3
- package/src/router/NestedNavigationContext.tsx +4 -0
- package/src/router/NestedRouterProvider.tsx +3 -1
- package/src/router/Router.tsx +23 -7
- package/src/session/UserSession.ts +26 -5
- package/src/session/UserSessionProvider.tsx +6 -14
- package/src/session/auth/composable.ts +1 -1
- package/src/session/auth/domainRouting.test.ts +110 -0
- package/src/session/auth/domainRouting.ts +22 -0
- package/src/session/auth/firebase.ts +1 -1
- package/src/session/auth/useCurrentTenant.ts +3 -1
- package/src/shell/SplashScreen.tsx +22 -26
- package/src/shell/apps/StandaloneApp.tsx +9 -6
- package/src/shell/login/EnterpriseSigninButton.tsx +6 -4
- package/src/shell/login/GitHubSignInButton.tsx +3 -7
- package/src/shell/login/GoogleSignInButton.tsx +3 -1
- package/src/shell/login/InviteAcceptModal.tsx +5 -2
- package/src/shell/login/MicrosoftSigninButton.tsx +4 -6
- package/src/shell/login/SigninScreen.tsx +18 -13
- package/src/shell/login/SignupForm.tsx +46 -46
- package/src/shell/login/TerminalLogin.tsx +35 -31
- package/src/shell/login/UserInfo.tsx +15 -13
- package/src/shell/login/UserSessionMenu.tsx +28 -31
- package/src/widgets/index.ts +0 -1
- package/src/widgets/json-view/JSONCode.tsx +1 -1
- package/src/widgets/json-view/JSONDisplay.tsx +8 -3
- package/src/widgets/json-view/JSONSwitcher.tsx +24 -0
- package/src/widgets/json-view/JSONView.tsx +1 -1
- package/src/widgets/json-view/index.ts +1 -0
- package/src/widgets/markdown/ArtifactContentRenderer.tsx +15 -7
- package/src/widgets/markdown/CodeBlockContext.tsx +34 -0
- package/src/widgets/markdown/MarkdownRenderer.tsx +14 -13
- package/src/widgets/markdown/codeBlockHandlers.tsx +17 -36
- package/src/widgets/markdown/index.ts +27 -34
- package/src/widgets/markdown/remarkDirectiveHandler.ts +1 -1
- package/src/widgets/schema-editor/ManagedSchema.ts +6 -5
- package/src/widgets/schema-editor/editor/PropertyEditor.tsx +7 -3
- package/src/widgets/schema-editor/editor/SchemaEditor.tsx +3 -1
- package/src/widgets/upload/DropZone.tsx +10 -13
- package/src/widgets/upload/UploadResultCategory.tsx +3 -1
- package/src/widgets/upload/UploadSummary.tsx +13 -11
- package/tsconfig.dist.json +1 -1
- package/lib/esm/core/components/Dropdown.js +0 -16
- package/lib/esm/core/components/Dropdown.js.map +0 -1
- package/lib/esm/core/components/DropdownList.js +0 -9
- package/lib/esm/core/components/DropdownList.js.map +0 -1
- package/lib/esm/core/components/RadioGroup.js +0 -34
- package/lib/esm/core/components/RadioGroup.js.map +0 -1
- package/lib/esm/core/components/SelectStack.js +0 -8
- package/lib/esm/core/components/SelectStack.js.map +0 -1
- package/lib/esm/core/components/Switch.js +0 -12
- package/lib/esm/core/components/Switch.js.map +0 -1
- package/lib/esm/widgets/popover/Popover.js +0 -73
- package/lib/esm/widgets/popover/Popover.js.map +0 -1
- package/lib/esm/widgets/popover/context.js +0 -7
- package/lib/esm/widgets/popover/context.js.map +0 -1
- package/lib/esm/widgets/popover/index.js +0 -3
- package/lib/esm/widgets/popover/index.js.map +0 -1
- package/lib/esm/widgets/popover/slots.js +0 -22
- package/lib/esm/widgets/popover/slots.js.map +0 -1
- package/lib/types/core/components/Dropdown.d.ts +0 -15
- package/lib/types/core/components/Dropdown.d.ts.map +0 -1
- package/lib/types/core/components/DropdownList.d.ts +0 -13
- package/lib/types/core/components/DropdownList.d.ts.map +0 -1
- package/lib/types/core/components/RadioGroup.d.ts +0 -26
- package/lib/types/core/components/RadioGroup.d.ts.map +0 -1
- package/lib/types/core/components/SelectStack.d.ts +0 -13
- package/lib/types/core/components/SelectStack.d.ts.map +0 -1
- package/lib/types/core/components/Switch.d.ts +0 -11
- package/lib/types/core/components/Switch.d.ts.map +0 -1
- package/lib/types/widgets/popover/Popover.d.ts +0 -38
- package/lib/types/widgets/popover/Popover.d.ts.map +0 -1
- package/lib/types/widgets/popover/context.d.ts +0 -8
- package/lib/types/widgets/popover/context.d.ts.map +0 -1
- package/lib/types/widgets/popover/index.d.ts +0 -3
- package/lib/types/widgets/popover/index.d.ts.map +0 -1
- package/lib/types/widgets/popover/slots.d.ts +0 -5
- package/lib/types/widgets/popover/slots.d.ts.map +0 -1
- package/src/core/components/Dropdown.tsx +0 -63
- package/src/core/components/DropdownList.tsx +0 -72
- package/src/core/components/RadioGroup.tsx +0 -100
- package/src/core/components/SelectStack.tsx +0 -63
- package/src/core/components/Switch.tsx +0 -30
- package/src/widgets/popover/Popover.tsx +0 -171
- package/src/widgets/popover/context.ts +0 -15
- package/src/widgets/popover/index.ts +0 -2
- package/src/widgets/popover/slots.ts +0 -24
|
@@ -72,3 +72,11 @@ FullHeightLayout.HR = function HDivider({ }: HDividerProps) {
|
|
|
72
72
|
<div className="w-full h-1 border-b border-red-200"></div>
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
|
+
|
|
76
|
+
FullHeightLayout.Tab = function Tab({ children }: { children: React.ReactNode }) {
|
|
77
|
+
return (
|
|
78
|
+
<div className="flex flex-col h-full">
|
|
79
|
+
{children}
|
|
80
|
+
</div>
|
|
81
|
+
);
|
|
82
|
+
}
|
package/src/layout/Navbar.tsx
CHANGED
|
@@ -3,6 +3,7 @@ import { Menu, Search } from 'lucide-react'
|
|
|
3
3
|
import { Button, HeroIcon } from '@vertesia/ui/core'
|
|
4
4
|
import { useSidebarToggle } from './SidebarContext.js'
|
|
5
5
|
import { TitleBar } from './TitleBar.js'
|
|
6
|
+
import { useUITranslation } from '../i18n/index.js'
|
|
6
7
|
|
|
7
8
|
interface NavbarProps {
|
|
8
9
|
title?: string
|
|
@@ -38,10 +39,11 @@ interface SearchBoxProps {
|
|
|
38
39
|
onSearch?: (query: string) => void
|
|
39
40
|
}
|
|
40
41
|
function SearchBox({ }: SearchBoxProps) {
|
|
42
|
+
const { t } = useUITranslation();
|
|
41
43
|
return (
|
|
42
44
|
<form className="relative flex flex-1" action="#" method="GET">
|
|
43
45
|
<label htmlFor="search-field" className="sr-only">
|
|
44
|
-
|
|
46
|
+
{t('layout.search')}
|
|
45
47
|
</label>
|
|
46
48
|
<Search
|
|
47
49
|
className="pointer-events-none absolute inset-y-0 left-0 h-full w-5 text-gray-400"
|
|
@@ -50,7 +52,7 @@ function SearchBox({ }: SearchBoxProps) {
|
|
|
50
52
|
<input
|
|
51
53
|
id="search-field"
|
|
52
54
|
className="block h-full w-full border-0 py-0 pl-8 pr-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm"
|
|
53
|
-
placeholder=
|
|
55
|
+
placeholder={t('layout.searchPlaceholder')}
|
|
54
56
|
type="search"
|
|
55
57
|
name="search"
|
|
56
58
|
/>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { cn } from '@vertesia/ui/core';
|
|
2
|
+
import { Env } from '@vertesia/ui/env';
|
|
3
|
+
|
|
4
|
+
const regionLabels: Record<string, string> = {
|
|
5
|
+
eu: 'EU',
|
|
6
|
+
jp: 'JP',
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export function RegionTag({ className }: { className?: string }) {
|
|
10
|
+
const region = Env.region;
|
|
11
|
+
// Only show for non-US regions (US is default, no need to display)
|
|
12
|
+
if (!region || region === 'us') return null;
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<div
|
|
16
|
+
className={cn(
|
|
17
|
+
'text-[0.6rem] font-semibold px-1.5 rounded-3xl leading-4',
|
|
18
|
+
'bg-info text-white',
|
|
19
|
+
className,
|
|
20
|
+
)}
|
|
21
|
+
>
|
|
22
|
+
{regionLabels[region] ?? region.toUpperCase()}
|
|
23
|
+
</div>
|
|
24
|
+
);
|
|
25
|
+
}
|
package/src/layout/Sidebar.tsx
CHANGED
|
@@ -78,6 +78,7 @@ export function SidebarTooltip({ children, text }: { children: React.ReactNode,
|
|
|
78
78
|
|
|
79
79
|
export interface SidebarItemProps {
|
|
80
80
|
href: string
|
|
81
|
+
to?: string
|
|
81
82
|
icon?: React.ComponentType<React.HTMLAttributes<Element>>
|
|
82
83
|
current?: boolean
|
|
83
84
|
onClick?: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void
|
|
@@ -88,7 +89,7 @@ export interface SidebarItemProps {
|
|
|
88
89
|
external?: boolean; //If true, the link will open in a new tab
|
|
89
90
|
replace?: boolean; //If true, navigation replaces the current history entry instead of pushing
|
|
90
91
|
}
|
|
91
|
-
export function SidebarItem({ external, className, tools, children, icon: Icon, href, current, onClick, replace }: SidebarItemProps) {
|
|
92
|
+
export function SidebarItem({ external, className, tools, children, icon: Icon, href, to, current, onClick, replace }: SidebarItemProps) {
|
|
92
93
|
const { toggleMobile } = useSidebarToggle();
|
|
93
94
|
const _closeSideBar = () => {
|
|
94
95
|
setTimeout(() => {
|
|
@@ -106,7 +107,7 @@ export function SidebarItem({ external, className, tools, children, icon: Icon,
|
|
|
106
107
|
}
|
|
107
108
|
return (
|
|
108
109
|
<li>
|
|
109
|
-
<Nav onClick={_closeSideBar} replace={replace}>
|
|
110
|
+
<Nav to={to} onClick={_closeSideBar} replace={replace}>
|
|
110
111
|
<SidebarTooltip text={children as string}>
|
|
111
112
|
<a
|
|
112
113
|
href={href}
|
|
@@ -138,4 +139,4 @@ export function SidebarItem({ external, className, tools, children, icon: Icon,
|
|
|
138
139
|
</li>
|
|
139
140
|
|
|
140
141
|
)
|
|
141
|
-
}
|
|
142
|
+
}
|
package/src/layout/index.ts
CHANGED
|
@@ -146,7 +146,7 @@ export class HistoryNavigator {
|
|
|
146
146
|
data: options.state || undefined,
|
|
147
147
|
title: options.title || document.title
|
|
148
148
|
};
|
|
149
|
-
|
|
149
|
+
|
|
150
150
|
window.history['replaceState'](stateToStore, '', to.href);
|
|
151
151
|
this.fireLocationChange(new AfterLocationChangeEvent('popState', to, options.state));
|
|
152
152
|
}
|
|
@@ -157,19 +157,19 @@ export class HistoryNavigator {
|
|
|
157
157
|
if (beforeEvent._canceled) {
|
|
158
158
|
return;
|
|
159
159
|
}
|
|
160
|
-
|
|
160
|
+
|
|
161
161
|
// Build navigation chain by preserving previous history
|
|
162
162
|
const currentState = window.history.state;
|
|
163
163
|
const currentTitle = options.title || document.title;
|
|
164
|
-
|
|
164
|
+
|
|
165
165
|
// Create new history chain entry
|
|
166
166
|
const newChainEntry = {
|
|
167
167
|
title: currentTitle,
|
|
168
168
|
href: window.location.pathname + window.location.search + window.location.hash
|
|
169
169
|
};
|
|
170
|
-
|
|
170
|
+
|
|
171
171
|
// Build the history chain - clear if using replace
|
|
172
|
-
let historyChain: Array<{title: string, href: string}> = [];
|
|
172
|
+
let historyChain: Array<{ title: string, href: string }> = [];
|
|
173
173
|
if (!options.replace && currentState?.historyChain) {
|
|
174
174
|
historyChain = [...currentState.historyChain];
|
|
175
175
|
}
|
|
@@ -177,22 +177,22 @@ export class HistoryNavigator {
|
|
|
177
177
|
// Only add to chain if not replacing
|
|
178
178
|
if (!options.replace) {
|
|
179
179
|
historyChain.push(newChainEntry);
|
|
180
|
-
|
|
180
|
+
|
|
181
181
|
// Limit chain length to prevent memory issues (keep last 10 entries)
|
|
182
182
|
if (historyChain.length > 10) {
|
|
183
183
|
historyChain = historyChain.slice(-10);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
|
|
187
187
|
const stateToStore = {
|
|
188
188
|
from: window.location.href,
|
|
189
189
|
historyChain: historyChain,
|
|
190
190
|
data: options.state || undefined,
|
|
191
191
|
title: options.title || document.title
|
|
192
192
|
};
|
|
193
|
-
|
|
193
|
+
|
|
194
194
|
window.history[options.replace ? 'replaceState' : 'pushState'](stateToStore, '', to.href);
|
|
195
|
-
|
|
195
|
+
|
|
196
196
|
this.fireLocationChange(new AfterLocationChangeEvent(type, to, options.state));
|
|
197
197
|
}
|
|
198
198
|
|
|
@@ -201,7 +201,7 @@ export class HistoryNavigator {
|
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
203
|
const _popStateListener = (ev: PopStateEvent) => {
|
|
204
|
-
let type: LocationChangeType
|
|
204
|
+
let type: LocationChangeType;
|
|
205
205
|
const to = new URL(window.location.href);
|
|
206
206
|
let state: any = undefined;
|
|
207
207
|
if (ev.state) {
|
package/src/router/Nav.tsx
CHANGED
|
@@ -6,6 +6,10 @@ import { useNavigate, useRouterContext } from "./Router";
|
|
|
6
6
|
*/
|
|
7
7
|
interface NavProps {
|
|
8
8
|
children: React.ReactNode | React.ReactNode[];
|
|
9
|
+
/**
|
|
10
|
+
* Optional router navigation target. If omitted, the wrapped anchor href is used.
|
|
11
|
+
*/
|
|
12
|
+
to?: string;
|
|
9
13
|
/**
|
|
10
14
|
* A click was intercepted
|
|
11
15
|
* @param ev
|
|
@@ -18,14 +22,16 @@ interface NavProps {
|
|
|
18
22
|
*/
|
|
19
23
|
replace?: boolean;
|
|
20
24
|
}
|
|
21
|
-
export function Nav({ children, onClick, replace = true }: NavProps) {
|
|
25
|
+
export function Nav({ children, to, onClick, replace = true }: NavProps) {
|
|
22
26
|
const navigate = useNavigate();
|
|
23
27
|
const _onClick = (ev: SyntheticEvent) => {
|
|
24
28
|
const link = (ev.target as HTMLElement).closest('a');
|
|
25
|
-
|
|
29
|
+
const rawHref = link?.getAttribute('href');
|
|
30
|
+
const target = to ?? rawHref;
|
|
31
|
+
if (link && target) {
|
|
26
32
|
ev.stopPropagation();
|
|
27
33
|
ev.preventDefault();
|
|
28
|
-
navigate(
|
|
34
|
+
navigate(target, { replace });
|
|
29
35
|
onClick?.(ev);
|
|
30
36
|
}
|
|
31
37
|
}
|
|
@@ -22,6 +22,10 @@ export function NestedNavigationContext({ basePath, fixLinks = false, children }
|
|
|
22
22
|
<ReactRouterContext.Provider value={{
|
|
23
23
|
...ctx,
|
|
24
24
|
navigate: (to: string, options?: NavigateOptions) => {
|
|
25
|
+
if (options?.isBasePathNested === false) {
|
|
26
|
+
// Navigate to an absolute path without adding this context's basePath
|
|
27
|
+
return ctx.navigate(to, options);
|
|
28
|
+
}
|
|
25
29
|
const actualBasePath = options?.basePath ? joinPath(basePath, options.basePath) : basePath;
|
|
26
30
|
return ctx.navigate(to, { ...options, basePath: actualBasePath });
|
|
27
31
|
}
|
|
@@ -54,7 +54,9 @@ export function NestedRouterProvider({ routes, index, children, fixLinks = false
|
|
|
54
54
|
matchedRoutePath: '/' + nestedRouteMatch.matchedSegments.join('/'),
|
|
55
55
|
remainingPath: nestedRouteMatch.remainingSegments ? '/' + nestedRouteMatch.remainingSegments.join('/') : undefined,
|
|
56
56
|
navigate: (to: string, options?: NavigateOptions) => {
|
|
57
|
-
|
|
57
|
+
if (nestedRouter) {
|
|
58
|
+
return nestedRouter.navigate(to, options);
|
|
59
|
+
}
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
}}>
|
package/src/router/Router.tsx
CHANGED
|
@@ -131,15 +131,18 @@ export class NestedRouter extends BaseRouter {
|
|
|
131
131
|
const childBasePath = options?.basePath;
|
|
132
132
|
// e.g. "/store" + "/objects/123" => "/store/objects/123"
|
|
133
133
|
basePath = childBasePath ? joinPath(this.basePath, childBasePath) : this.basePath;
|
|
134
|
+
this.parent.navigate(path, {
|
|
135
|
+
...options,
|
|
136
|
+
basePath,
|
|
137
|
+
});
|
|
134
138
|
} else {
|
|
135
|
-
//
|
|
136
|
-
|
|
139
|
+
// isBasePathNested === false: navigate to an absolute path without adding this router's basePath
|
|
140
|
+
// Pass through to parent without adding our basePath prefix
|
|
141
|
+
this.parent.navigate(path, {
|
|
142
|
+
...options,
|
|
143
|
+
basePath: options?.basePath,
|
|
144
|
+
});
|
|
137
145
|
}
|
|
138
|
-
|
|
139
|
-
this.parent.navigate(path, {
|
|
140
|
-
...options,
|
|
141
|
-
basePath,
|
|
142
|
-
});
|
|
143
146
|
}
|
|
144
147
|
}
|
|
145
148
|
|
|
@@ -174,6 +177,11 @@ export function useNavigate() {
|
|
|
174
177
|
return navigate;
|
|
175
178
|
}
|
|
176
179
|
|
|
180
|
+
export function useRouterBasePath() {
|
|
181
|
+
const { matchedRoutePath, router } = useRouterContext();
|
|
182
|
+
return router instanceof NestedRouter ? router.basePath : matchedRoutePath;
|
|
183
|
+
}
|
|
184
|
+
|
|
177
185
|
type UseParamsReturn<T> = T extends string ? string : Record<string, string>;
|
|
178
186
|
export function useParams<T>(arg?: T): UseParamsReturn<T> {
|
|
179
187
|
const { params } = useRouterContext();
|
|
@@ -189,6 +197,14 @@ export function useLocation() {
|
|
|
189
197
|
return location;
|
|
190
198
|
}
|
|
191
199
|
|
|
200
|
+
export function usePageTitle(title: string) {
|
|
201
|
+
useEffect(() => {
|
|
202
|
+
const prev = document.title;
|
|
203
|
+
document.title = title;
|
|
204
|
+
return () => { document.title = prev; };
|
|
205
|
+
}, [title]);
|
|
206
|
+
}
|
|
207
|
+
|
|
192
208
|
export function useNavigationPrompt(prompt: NavigationPrompt) {
|
|
193
209
|
const { router } = useRouterContext();
|
|
194
210
|
useEffect(() => {
|
|
@@ -6,6 +6,7 @@ import { AuthTokenPayload } from '@vertesia/common';
|
|
|
6
6
|
import { Env } from '@vertesia/ui/env';
|
|
7
7
|
|
|
8
8
|
import { getComposableToken } from './auth/composable';
|
|
9
|
+
import { shouldRedirectToCentralAuth } from './auth/domainRouting';
|
|
9
10
|
import { getFirebaseAuth } from './auth/firebase';
|
|
10
11
|
|
|
11
12
|
import { LastSelectedAccountId_KEY, LastSelectedProjectId_KEY } from './constants';
|
|
@@ -114,11 +115,7 @@ class UserSession {
|
|
|
114
115
|
logout() {
|
|
115
116
|
console.log('Logging out');
|
|
116
117
|
|
|
117
|
-
|
|
118
|
-
const devDomains = [".composable.sh", ".vertesia.dev", "vertesia.app"];
|
|
119
|
-
const shouldUseCentralAuth = Env.isDocker || devDomains.some((domain) => window.location.hostname.endsWith(domain));
|
|
120
|
-
|
|
121
|
-
if (shouldUseCentralAuth) {
|
|
118
|
+
if (shouldRedirectToCentralAuth()) {
|
|
122
119
|
// Redirect to central auth for logout
|
|
123
120
|
// Central auth will handle Firebase logout
|
|
124
121
|
console.log('Using central auth logout');
|
|
@@ -190,6 +187,30 @@ class UserSession {
|
|
|
190
187
|
});
|
|
191
188
|
}
|
|
192
189
|
|
|
190
|
+
async fetchProjects(accountId: string) {
|
|
191
|
+
return this.client.projects.list([accountId]).then(projects => {
|
|
192
|
+
if (!this.authToken) {
|
|
193
|
+
throw new Error('No token available');
|
|
194
|
+
}
|
|
195
|
+
this.authToken = {
|
|
196
|
+
...this.authToken,
|
|
197
|
+
accounts: this.authToken.accounts?.map(account => {
|
|
198
|
+
if (account.id === accountId) {
|
|
199
|
+
return {
|
|
200
|
+
...account,
|
|
201
|
+
projects: projects.filter(project => project.account === accountId)
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
return account;
|
|
205
|
+
})
|
|
206
|
+
};
|
|
207
|
+
this.setSession?.(this.clone());
|
|
208
|
+
}).catch(err => {
|
|
209
|
+
console.error('Failed to fetch projects', err);
|
|
210
|
+
throw err;
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
|
|
193
214
|
async fetchOnboardingStatus(): Promise<boolean> {
|
|
194
215
|
if (this.onboardingComplete) {
|
|
195
216
|
console.log('Onboarding already completed');
|
|
@@ -2,22 +2,13 @@ import { Env } from "@vertesia/ui/env";
|
|
|
2
2
|
import { onAuthStateChanged } from "firebase/auth";
|
|
3
3
|
import { ReactNode, useEffect, useRef, useState } from "react";
|
|
4
4
|
import { UserNotFoundError, getComposableToken } from "./auth/composable";
|
|
5
|
+
import { shouldRedirectToCentralAuth } from "./auth/domainRouting";
|
|
5
6
|
import { getFirebaseAuth } from "./auth/firebase";
|
|
6
7
|
import { useAuthState } from "./auth/useAuthState";
|
|
7
8
|
import { LastSelectedAccountId_KEY, LastSelectedProjectId_KEY, UserSession, UserSessionContext } from "./UserSession";
|
|
8
9
|
|
|
9
|
-
const devDomains = [".composable.sh", ".vertesia.dev", "vertesia.app"];
|
|
10
10
|
const CENTRAL_AUTH_REDIRECT = "https://internal-auth.vertesia.app/";
|
|
11
11
|
|
|
12
|
-
export function shouldRedirectToCentralAuth() {
|
|
13
|
-
// Authentication is not supported in Docker environment.
|
|
14
|
-
// See https://github.com/vertesia/studio/wiki/Composable-UI-Hosting-Options
|
|
15
|
-
if (Env.isDocker) {
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
return devDomains.some((domain) => window.location.hostname.endsWith(domain));
|
|
19
|
-
}
|
|
20
|
-
|
|
21
12
|
interface UserSessionProviderProps {
|
|
22
13
|
children: ReactNode | ReactNode[];
|
|
23
14
|
}
|
|
@@ -67,6 +58,7 @@ export function UserSessionProvider({ children }: UserSessionProviderProps) {
|
|
|
67
58
|
});
|
|
68
59
|
|
|
69
60
|
if (token && state) {
|
|
61
|
+
session.setSession = setSession;
|
|
70
62
|
const validationError = verifyState(state);
|
|
71
63
|
if (validationError) {
|
|
72
64
|
console.error(`Auth: invalid state: ${validationError}`);
|
|
@@ -107,7 +99,7 @@ export function UserSessionProvider({ children }: UserSessionProviderProps) {
|
|
|
107
99
|
});
|
|
108
100
|
return;
|
|
109
101
|
} else {
|
|
110
|
-
//
|
|
102
|
+
// If the current host is not in the Firebase allowlist, central auth owns sign-in.
|
|
111
103
|
if (!session.isLoggedIn()) {
|
|
112
104
|
console.log("Auth: not logged in & no token/state");
|
|
113
105
|
Env.logger.info("Not logged in & no token/state", {
|
|
@@ -118,7 +110,7 @@ export function UserSessionProvider({ children }: UserSessionProviderProps) {
|
|
|
118
110
|
});
|
|
119
111
|
if (shouldRedirectToCentralAuth()) {
|
|
120
112
|
console.log(
|
|
121
|
-
"Auth:
|
|
113
|
+
"Auth: host is not in Firebase auth allowlist, redirecting to central auth with selection",
|
|
122
114
|
selectedAccount,
|
|
123
115
|
selectedProject,
|
|
124
116
|
);
|
|
@@ -131,8 +123,8 @@ export function UserSessionProvider({ children }: UserSessionProviderProps) {
|
|
|
131
123
|
redirectToCentralAuth();
|
|
132
124
|
return; // Don't register onAuthStateChanged listener when redirecting
|
|
133
125
|
} else {
|
|
134
|
-
console.log("Auth:
|
|
135
|
-
Env.logger.info("
|
|
126
|
+
console.log("Auth: host is in Firebase auth allowlist");
|
|
127
|
+
Env.logger.info("Host is in Firebase auth allowlist", {
|
|
136
128
|
vertesia: {
|
|
137
129
|
account_id: selectedAccount,
|
|
138
130
|
project_id: selectedProject,
|
|
@@ -224,7 +224,7 @@ export async function fetchComposableToken(getIdToken: () => Promise<string | nu
|
|
|
224
224
|
error: error,
|
|
225
225
|
},
|
|
226
226
|
});
|
|
227
|
-
throw new Error('Failed to get composable token');
|
|
227
|
+
throw new Error('Failed to get composable token', { cause: error });
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { Env } from "@vertesia/ui/env";
|
|
3
|
+
import { shouldRedirectToCentralAuth, shouldUseFirebaseAuth } from "./domainRouting";
|
|
4
|
+
|
|
5
|
+
describe("domainRouting", () => {
|
|
6
|
+
it("uses Firebase auth for configured authorized domains", () => {
|
|
7
|
+
Env.init({
|
|
8
|
+
name: "test",
|
|
9
|
+
version: "1.0.0",
|
|
10
|
+
isLocalDev: false,
|
|
11
|
+
isDocker: false,
|
|
12
|
+
type: "test",
|
|
13
|
+
endpoints: {
|
|
14
|
+
studio: "https://api.example.com",
|
|
15
|
+
zeno: "https://api.example.com",
|
|
16
|
+
sts: "https://sts.example.com",
|
|
17
|
+
},
|
|
18
|
+
firebase: {
|
|
19
|
+
apiKey: "test",
|
|
20
|
+
authDomain: "example.firebaseapp.com",
|
|
21
|
+
authorizedDomains: [
|
|
22
|
+
"cloud.vertesia.io",
|
|
23
|
+
"preview.cloud.vertesia.io",
|
|
24
|
+
"cloud.us1.vertesia.io",
|
|
25
|
+
"preview.eu2.vertesia.io",
|
|
26
|
+
"tenant-a.cloud.us1.vertesia.io",
|
|
27
|
+
],
|
|
28
|
+
projectId: "test",
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
expect(shouldUseFirebaseAuth("cloud.vertesia.io")).toBe(true);
|
|
33
|
+
expect(shouldUseFirebaseAuth("preview.cloud.vertesia.io")).toBe(true);
|
|
34
|
+
expect(shouldUseFirebaseAuth("cloud.us1.vertesia.io")).toBe(true);
|
|
35
|
+
expect(shouldUseFirebaseAuth("preview.eu2.vertesia.io")).toBe(true);
|
|
36
|
+
expect(shouldUseFirebaseAuth("tenant-a.cloud.us1.vertesia.io")).toBe(true);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
it("routes all other domains through central auth", () => {
|
|
40
|
+
Env.init({
|
|
41
|
+
name: "test",
|
|
42
|
+
version: "1.0.0",
|
|
43
|
+
isLocalDev: false,
|
|
44
|
+
isDocker: false,
|
|
45
|
+
type: "test",
|
|
46
|
+
endpoints: {
|
|
47
|
+
studio: "https://api.example.com",
|
|
48
|
+
zeno: "https://api.example.com",
|
|
49
|
+
sts: "https://sts.example.com",
|
|
50
|
+
},
|
|
51
|
+
firebase: {
|
|
52
|
+
apiKey: "test",
|
|
53
|
+
authDomain: "example.firebaseapp.com",
|
|
54
|
+
authorizedDomains: ["cloud.vertesia.io"],
|
|
55
|
+
projectId: "test",
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
expect(shouldUseFirebaseAuth("foo.preview.cloud.vertesia.io")).toBe(false);
|
|
60
|
+
expect(shouldUseFirebaseAuth("preview.vertesia.io")).toBe(false);
|
|
61
|
+
expect(shouldUseFirebaseAuth("studio.vertesia.app")).toBe(false);
|
|
62
|
+
expect(shouldRedirectToCentralAuth("localhost")).toBe(true);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it("normalizes configured domains before matching", () => {
|
|
66
|
+
Env.init({
|
|
67
|
+
name: "test",
|
|
68
|
+
version: "1.0.0",
|
|
69
|
+
isLocalDev: false,
|
|
70
|
+
isDocker: false,
|
|
71
|
+
type: "test",
|
|
72
|
+
endpoints: {
|
|
73
|
+
studio: "https://api.example.com",
|
|
74
|
+
zeno: "https://api.example.com",
|
|
75
|
+
sts: "https://sts.example.com",
|
|
76
|
+
},
|
|
77
|
+
firebase: {
|
|
78
|
+
apiKey: "test",
|
|
79
|
+
authDomain: "example.firebaseapp.com",
|
|
80
|
+
authorizedDomains: [" Cloud.Vertesia.io "],
|
|
81
|
+
projectId: "test",
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
expect(shouldUseFirebaseAuth("cloud.vertesia.io")).toBe(true);
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
it("redirects to central auth when no authorized domains are configured", () => {
|
|
89
|
+
Env.init({
|
|
90
|
+
name: "test",
|
|
91
|
+
version: "1.0.0",
|
|
92
|
+
isLocalDev: false,
|
|
93
|
+
isDocker: false,
|
|
94
|
+
type: "test",
|
|
95
|
+
endpoints: {
|
|
96
|
+
studio: "https://api.example.com",
|
|
97
|
+
zeno: "https://api.example.com",
|
|
98
|
+
sts: "https://sts.example.com",
|
|
99
|
+
},
|
|
100
|
+
firebase: {
|
|
101
|
+
apiKey: "test",
|
|
102
|
+
authDomain: "example.firebaseapp.com",
|
|
103
|
+
projectId: "test",
|
|
104
|
+
},
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
expect(shouldUseFirebaseAuth("cloud.vertesia.io")).toBe(false);
|
|
108
|
+
expect(shouldRedirectToCentralAuth("cloud.vertesia.io")).toBe(true);
|
|
109
|
+
});
|
|
110
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Env } from "@vertesia/ui/env";
|
|
2
|
+
|
|
3
|
+
const localhostDomains = new Set(["localhost", "127.0.0.1"]);
|
|
4
|
+
|
|
5
|
+
function getAuthorizedDomains() {
|
|
6
|
+
const domains = Env.firebase?.authorizedDomains ?? [];
|
|
7
|
+
return new Set(domains.map((domain: string) => domain.trim().toLowerCase()).filter(Boolean));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function shouldUseFirebaseAuth(hostname = window.location.hostname) {
|
|
11
|
+
const normalizedHostname = hostname.trim().toLowerCase();
|
|
12
|
+
|
|
13
|
+
if (localhostDomains.has(normalizedHostname)) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return getAuthorizedDomains().has(normalizedHostname);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function shouldRedirectToCentralAuth(hostname = window.location.hostname) {
|
|
21
|
+
return !shouldUseFirebaseAuth(hostname);
|
|
22
|
+
}
|
|
@@ -19,7 +19,7 @@ export function getFirebaseApp(): FirebaseApp {
|
|
|
19
19
|
_firebaseApp = initializeApp(Env.firebase);
|
|
20
20
|
} catch (error) {
|
|
21
21
|
console.error("Failed to initialize Firebase app:", error);
|
|
22
|
-
throw new Error("Firebase initialization failed - environment may not be properly initialized");
|
|
22
|
+
throw new Error("Firebase initialization failed - environment may not be properly initialized", { cause: error });
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
return _firebaseApp;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
2
|
import { useUserSession } from "@vertesia/ui/session";
|
|
3
|
+
import { i18nInstance, NAMESPACE } from '../../i18n/instance.js';
|
|
3
4
|
|
|
4
5
|
interface TenantConfig {
|
|
5
6
|
tenantKey: string;
|
|
@@ -11,6 +12,7 @@ interface TenantConfig {
|
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export function useCurrentTenant() {
|
|
15
|
+
const t = i18nInstance.getFixedT(null, NAMESPACE);
|
|
14
16
|
const { user } = useUserSession();
|
|
15
17
|
const [currentTenant, setCurrentTenant] = useState<TenantConfig | null>(null);
|
|
16
18
|
const [isLoading, setIsLoading] = useState(true);
|
|
@@ -55,7 +57,7 @@ export function useCurrentTenant() {
|
|
|
55
57
|
}
|
|
56
58
|
} catch (error) {
|
|
57
59
|
console.error('Error loading current tenant:', error);
|
|
58
|
-
setError('
|
|
60
|
+
setError(t('errors.failedToLoadTenantConfig'));
|
|
59
61
|
setCurrentTenant(null);
|
|
60
62
|
} finally {
|
|
61
63
|
setIsLoading(false);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AnimatePresence, motion } from "framer-motion";
|
|
2
|
+
import { ReactNode, useEffect, useState } from "react";
|
|
3
3
|
import { useUserSession } from "@vertesia/ui/session";
|
|
4
4
|
|
|
5
5
|
|
|
@@ -12,35 +12,31 @@ export function SplashScreen({ icon: Icon }: SplashScreenProps) {
|
|
|
12
12
|
|
|
13
13
|
useEffect(() => {
|
|
14
14
|
if (!isLoading) {
|
|
15
|
-
setShow(false)
|
|
15
|
+
setShow(false);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
// setShow(false)
|
|
19
|
-
// }, 2000)
|
|
20
|
-
}, [isLoading])
|
|
17
|
+
}, [isLoading]);
|
|
21
18
|
|
|
22
|
-
// 300 500 700 1000
|
|
23
19
|
return (
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
20
|
+
<AnimatePresence>
|
|
21
|
+
{show && (
|
|
22
|
+
<motion.div
|
|
23
|
+
style={{ zIndex: 999999, position: 'fixed', inset: 0 }}
|
|
24
|
+
className='fixed inset-x-0 inset-y-0'
|
|
25
|
+
initial={{ opacity: 1 }}
|
|
26
|
+
exit={{ opacity: 0 }}
|
|
27
|
+
transition={{ ease: 'easeIn', duration: 0.5 }}
|
|
28
|
+
>
|
|
29
|
+
<div style={{ display: 'flex', width: '100%', height: '100%', alignItems: 'center', justifyContent: 'center' }} className="flex w-full h-full items-center justify-center">
|
|
30
|
+
<div className="animate-[spin_4s_linear_infinite]">
|
|
31
|
+
<div className='animate-pulse rounded-full bg-transparent'>
|
|
32
|
+
{Icon || <LoadingIcon />}
|
|
33
|
+
</div>
|
|
38
34
|
</div>
|
|
39
35
|
</div>
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
|
-
</
|
|
43
|
-
)
|
|
36
|
+
</motion.div>
|
|
37
|
+
)}
|
|
38
|
+
</AnimatePresence>
|
|
39
|
+
);
|
|
44
40
|
}
|
|
45
41
|
|
|
46
42
|
function LoadingIcon() {
|