@vertesia/ui 1.0.0-dev.20260227.112605Z → 1.0.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/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 +61 -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/selectBox.js +1 -1
- 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 +8 -6
- package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js.map +1 -1
- package/lib/esm/core/components/shadcn/tooltip.js +1 -1
- package/lib/esm/core/components/shadcn/tooltip.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/env/index.js +11 -1
- 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 +243 -106
- 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 +57 -18
- 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 +75 -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 +1 -1
- 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 +21 -18
- 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 +694 -0
- package/lib/esm/i18n/locales/de.json +662 -0
- package/lib/esm/i18n/locales/en.json +663 -0
- package/lib/esm/i18n/locales/es.json +668 -0
- package/lib/esm/i18n/locales/fr.json +670 -0
- package/lib/esm/i18n/locales/it.json +668 -0
- package/lib/esm/i18n/locales/ja.json +662 -0
- package/lib/esm/i18n/locales/ko.json +662 -0
- package/lib/esm/i18n/locales/pt.json +668 -0
- package/lib/esm/i18n/locales/ru.json +678 -0
- package/lib/esm/i18n/locales/tr.json +662 -0
- package/lib/esm/i18n/locales/zh-TW.json +662 -0
- package/lib/esm/i18n/locales/zh.json +662 -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 +31 -0
- package/lib/esm/session/UserSession.js.map +1 -1
- package/lib/esm/session/UserSessionProvider.js +4 -0
- 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/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 +29 -22
- 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 +44 -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 +8 -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/env/index.d.ts +8 -1
- 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 +12 -3
- 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 +3 -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/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.map +1 -1
- 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/llms.txt +124 -4
- package/package.json +50 -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 +309 -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/selectBox.tsx +1 -1
- 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 +19 -10
- package/src/core/components/shadcn/tooltip.tsx +1 -1
- package/src/core/components/toast/NotificationPanel.tsx +38 -44
- package/src/css/base.css +31 -0
- package/src/css/color.css +136 -0
- package/src/css/custom-tooltips.css +64 -0
- package/src/css/index.css +27 -0
- package/src/css/theme.css +86 -0
- package/src/css/typography.css +88 -0
- package/src/css/utilities.css +72 -0
- package/src/env/index.ts +16 -3
- 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 +539 -356
- 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 +126 -46
- 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 +80 -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 +6 -6
- 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 +45 -40
- 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 +694 -0
- package/src/i18n/locales/de.json +662 -0
- package/src/i18n/locales/en.json +663 -0
- package/src/i18n/locales/es.json +668 -0
- package/src/i18n/locales/fr.json +670 -0
- package/src/i18n/locales/it.json +668 -0
- package/src/i18n/locales/ja.json +662 -0
- package/src/i18n/locales/ko.json +662 -0
- package/src/i18n/locales/pt.json +668 -0
- package/src/i18n/locales/ru.json +678 -0
- package/src/i18n/locales/tr.json +662 -0
- package/src/i18n/locales/zh-TW.json +662 -0
- package/src/i18n/locales/zh.json +662 -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 +32 -0
- package/src/session/UserSessionProvider.tsx +4 -0
- package/src/session/auth/composable.ts +1 -1
- 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 +36 -33
- 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
|
@@ -5,6 +5,7 @@ import { useTypeRegistry } from "../../types/TypeRegistryProvider.js";
|
|
|
5
5
|
import { DropZone, UploadSummary } from '@vertesia/ui/widgets';
|
|
6
6
|
import { AlertCircleIcon, CheckCircleIcon, FileIcon, FolderIcon, Info, UploadIcon, XCircleIcon } from "lucide-react";
|
|
7
7
|
import { ReactNode, useEffect, useMemo, useState } from "react";
|
|
8
|
+
import { useUITranslation } from '../../../../i18n/index.js';
|
|
8
9
|
import { FileUploadAction, FileWithMetadata, useSmartFileUploadProcessing } from "./useSmartFileUploadProcessing";
|
|
9
10
|
import { DocumentUploadResult } from "./useUploadHandler";
|
|
10
11
|
|
|
@@ -63,7 +64,7 @@ export function DocumentUploadModal({
|
|
|
63
64
|
files: initialFiles,
|
|
64
65
|
collectionId,
|
|
65
66
|
selectedFolder,
|
|
66
|
-
title
|
|
67
|
+
title,
|
|
67
68
|
children,
|
|
68
69
|
onUploadComplete,
|
|
69
70
|
hideFileSelection = false,
|
|
@@ -73,6 +74,8 @@ export function DocumentUploadModal({
|
|
|
73
74
|
const { client } = useUserSession();
|
|
74
75
|
const { registry: typeRegistry } = useTypeRegistry();
|
|
75
76
|
const toast = useToast();
|
|
77
|
+
const { t } = useUITranslation();
|
|
78
|
+
const resolvedTitle = title ?? t('upload.uploadFiles');
|
|
76
79
|
const [files, setFiles] = useState<File[]>([]);
|
|
77
80
|
const [processedFiles, setProcessedFiles] = useState<FileWithMetadata[]>([]);
|
|
78
81
|
const [processingDone, setProcessingDone] = useState(false);
|
|
@@ -84,7 +87,7 @@ export function DocumentUploadModal({
|
|
|
84
87
|
const [modalKey, setModalKey] = useState(Date.now());
|
|
85
88
|
const [collectionData, setCollectionData] = useState<Collection | DynamicCollection | undefined>(undefined);
|
|
86
89
|
const [result, setResult] = useState<DocumentUploadResult | null>(null);
|
|
87
|
-
const [_title, setTitle] = useState(
|
|
90
|
+
const [_title, setTitle] = useState(resolvedTitle);
|
|
88
91
|
const [_description, setDescription] = useState("");
|
|
89
92
|
|
|
90
93
|
// Fetch collection details if a collectionId is provided
|
|
@@ -96,22 +99,22 @@ export function DocumentUploadModal({
|
|
|
96
99
|
// Update title and description based on current state
|
|
97
100
|
useEffect(() => {
|
|
98
101
|
if (isUploading) {
|
|
99
|
-
setTitle(
|
|
102
|
+
setTitle(t('upload.uploadingFiles'));
|
|
100
103
|
setDescription(`${Math.round(overallProgress)}% complete`);
|
|
101
104
|
} else if (uploadComplete) {
|
|
102
|
-
setTitle(
|
|
105
|
+
setTitle(t('upload.uploadComplete'));
|
|
103
106
|
setDescription("");
|
|
104
107
|
} else if (processingDone) {
|
|
105
|
-
setTitle(
|
|
108
|
+
setTitle(t('upload.fileAnalysisResults'));
|
|
106
109
|
setDescription(`${files.length} file${files.length !== 1 ? "s" : ""}`);
|
|
107
110
|
} else if (files.length > 0) {
|
|
108
|
-
setTitle(
|
|
109
|
-
setDescription(
|
|
111
|
+
setTitle(resolvedTitle);
|
|
112
|
+
setDescription(t('upload.checkingForDuplicates'));
|
|
110
113
|
} else {
|
|
111
|
-
setTitle(
|
|
114
|
+
setTitle(resolvedTitle);
|
|
112
115
|
setDescription("");
|
|
113
116
|
}
|
|
114
|
-
}, [isUploading, uploadComplete, processingDone,
|
|
117
|
+
}, [isUploading, uploadComplete, processingDone, resolvedTitle, overallProgress, files.length, t]);
|
|
115
118
|
|
|
116
119
|
// Helper function to render collection and folder information
|
|
117
120
|
const renderLocationInfo = () => {
|
|
@@ -120,18 +123,18 @@ export function DocumentUploadModal({
|
|
|
120
123
|
return (
|
|
121
124
|
<MessageBox className="mb-4" status="default" icon={<FolderIcon className="size-5" />}>
|
|
122
125
|
<div className="flex items-center">
|
|
123
|
-
<span className="font-medium">
|
|
126
|
+
<span className="font-medium">{t('upload.uploadLocation')}</span>
|
|
124
127
|
</div>
|
|
125
128
|
<div className="text-sm mt-1">
|
|
126
129
|
{collectionData && (
|
|
127
130
|
<div className="flex items-center">
|
|
128
|
-
<span className="mr-1">
|
|
131
|
+
<span className="mr-1">{t('upload.collectionLabel')}</span>
|
|
129
132
|
<span className="font-medium">{collectionData.name}</span>
|
|
130
133
|
</div>
|
|
131
134
|
)}
|
|
132
135
|
{selectedFolder && (
|
|
133
136
|
<div className="flex items-center mt-1">
|
|
134
|
-
<span className="mr-1">
|
|
137
|
+
<span className="mr-1">{t('upload.folderLabel')}</span>
|
|
135
138
|
<span className="font-medium">{selectedFolder}</span>
|
|
136
139
|
</div>
|
|
137
140
|
)}
|
|
@@ -168,7 +171,7 @@ export function DocumentUploadModal({
|
|
|
168
171
|
setOverallProgress(0);
|
|
169
172
|
setProcessingStats({ toCreate: 0, toUpdate: 0, toSkip: 0 });
|
|
170
173
|
setResult(null);
|
|
171
|
-
setTitle(
|
|
174
|
+
setTitle(resolvedTitle);
|
|
172
175
|
setDescription("");
|
|
173
176
|
|
|
174
177
|
// Set initial files if provided
|
|
@@ -197,7 +200,7 @@ export function DocumentUploadModal({
|
|
|
197
200
|
setOverallProgress(0);
|
|
198
201
|
setProcessingStats({ toCreate: 0, toUpdate: 0, toSkip: 0 });
|
|
199
202
|
setResult(null);
|
|
200
|
-
setTitle(
|
|
203
|
+
setTitle(resolvedTitle);
|
|
201
204
|
setDescription("");
|
|
202
205
|
setModalKey(Date.now());
|
|
203
206
|
|
|
@@ -238,7 +241,7 @@ export function DocumentUploadModal({
|
|
|
238
241
|
|
|
239
242
|
// Show processing results to user
|
|
240
243
|
toast({
|
|
241
|
-
title:
|
|
244
|
+
title: t('upload.filesAnalyzed'),
|
|
242
245
|
description: `${filesToProcess.length} file(s): ${toCreate} new, ${toUpdate} to update, ${toSkip} to skip`,
|
|
243
246
|
status: "info",
|
|
244
247
|
duration: 4000,
|
|
@@ -249,8 +252,8 @@ export function DocumentUploadModal({
|
|
|
249
252
|
} catch (error) {
|
|
250
253
|
console.error("Error processing files:", error);
|
|
251
254
|
toast({
|
|
252
|
-
title:
|
|
253
|
-
description:
|
|
255
|
+
title: t('agent.error'),
|
|
256
|
+
description: t('upload.errorAnalyzingFiles'),
|
|
254
257
|
status: "error",
|
|
255
258
|
duration: 5000,
|
|
256
259
|
});
|
|
@@ -335,8 +338,8 @@ export function DocumentUploadModal({
|
|
|
335
338
|
if (files.length > BATCH_SIZE) {
|
|
336
339
|
const processedCount = batchIndex * BATCH_SIZE;
|
|
337
340
|
toast({
|
|
338
|
-
title:
|
|
339
|
-
description:
|
|
341
|
+
title: t('upload.processingFilesAction', { action }),
|
|
342
|
+
description: t('upload.processedCount', { processed: processedCount, total: files.length }),
|
|
340
343
|
status: "info",
|
|
341
344
|
duration: 2000,
|
|
342
345
|
});
|
|
@@ -491,7 +494,7 @@ export function DocumentUploadModal({
|
|
|
491
494
|
...status,
|
|
492
495
|
status: "error" as const,
|
|
493
496
|
progress: 100,
|
|
494
|
-
message:
|
|
497
|
+
message: t('upload.uploadProcessInterrupted'),
|
|
495
498
|
}));
|
|
496
499
|
|
|
497
500
|
if (missingStatuses.length > 0) {
|
|
@@ -499,7 +502,7 @@ export function DocumentUploadModal({
|
|
|
499
502
|
missingStatuses.forEach((status) => {
|
|
500
503
|
result.failedFiles.push({
|
|
501
504
|
name: status.file.name,
|
|
502
|
-
error:
|
|
505
|
+
error: t('upload.uploadProcessInterrupted'),
|
|
503
506
|
status: "failed",
|
|
504
507
|
type: selectedType?.id || null,
|
|
505
508
|
});
|
|
@@ -515,7 +518,7 @@ export function DocumentUploadModal({
|
|
|
515
518
|
...status,
|
|
516
519
|
status: "error" as const,
|
|
517
520
|
progress: 100,
|
|
518
|
-
message:
|
|
521
|
+
message: t('upload.uploadProcessInterrupted'),
|
|
519
522
|
}
|
|
520
523
|
: status,
|
|
521
524
|
);
|
|
@@ -549,7 +552,7 @@ export function DocumentUploadModal({
|
|
|
549
552
|
}
|
|
550
553
|
|
|
551
554
|
toast({
|
|
552
|
-
title:
|
|
555
|
+
title: t('upload.uploadComplete'),
|
|
553
556
|
description: statusMessage,
|
|
554
557
|
status: failedCount > 0 ? "warning" : "success",
|
|
555
558
|
duration: 5000,
|
|
@@ -561,9 +564,9 @@ export function DocumentUploadModal({
|
|
|
561
564
|
return (
|
|
562
565
|
<div className="mb-4">
|
|
563
566
|
<label className="block text-sm font-medium mb-2">
|
|
564
|
-
|
|
567
|
+
{t('store.contentType')} <span className="text-muted font-normal">{t('store.optional')}</span>
|
|
565
568
|
<VTooltip
|
|
566
|
-
description=
|
|
569
|
+
description={t('upload.contentTypeTooltip')}
|
|
567
570
|
placement="top" size="xs"
|
|
568
571
|
>
|
|
569
572
|
<Info className="size-3 ml-2" />
|
|
@@ -572,8 +575,8 @@ export function DocumentUploadModal({
|
|
|
572
575
|
<SelectBox
|
|
573
576
|
options={types}
|
|
574
577
|
value={selectedType}
|
|
575
|
-
optionLabel={(type) => (type ? type.name :
|
|
576
|
-
placeholder=
|
|
578
|
+
optionLabel={(type) => (type ? type.name : t('store.selectContentTypeLabel'))}
|
|
579
|
+
placeholder={t('store.selectContentTypeAuto')}
|
|
577
580
|
onChange={(selected) => setSelectedType(selected === undefined ? null : selected)}
|
|
578
581
|
filterBy="name"
|
|
579
582
|
isClearable
|
|
@@ -584,9 +587,9 @@ export function DocumentUploadModal({
|
|
|
584
587
|
<div className="p-2 rounded-md">
|
|
585
588
|
<div className="flex items-center text-attention">
|
|
586
589
|
<CheckCircleIcon className="size-4 mr-1" />
|
|
587
|
-
|
|
590
|
+
{t('store.automaticTypeDetection')}
|
|
588
591
|
<VTooltip
|
|
589
|
-
description=
|
|
592
|
+
description={t('store.automaticTypeDetectionDescription')}
|
|
590
593
|
placement="top" size="xs"
|
|
591
594
|
>
|
|
592
595
|
<Info className="size-3 ml-2" />
|
|
@@ -624,8 +627,8 @@ export function DocumentUploadModal({
|
|
|
624
627
|
|
|
625
628
|
<DropZone
|
|
626
629
|
onDrop={handleFileSelect}
|
|
627
|
-
message=
|
|
628
|
-
buttonLabel=
|
|
630
|
+
message={t('upload.dragAndDrop')}
|
|
631
|
+
buttonLabel={t('upload.selectFiles')}
|
|
629
632
|
className="w-full h-64"
|
|
630
633
|
allowFolders={allowFolders}
|
|
631
634
|
/>
|
|
@@ -642,7 +645,7 @@ export function DocumentUploadModal({
|
|
|
642
645
|
// File processing in progress
|
|
643
646
|
<div className="flex flex-col items-center justify-center py-4">
|
|
644
647
|
<Spinner size="lg" className="mb-4" />
|
|
645
|
-
<div className="text-lg font-medium">
|
|
648
|
+
<div className="text-lg font-medium">{t('upload.analyzingFiles')}</div>
|
|
646
649
|
</div>
|
|
647
650
|
) : (
|
|
648
651
|
// Processing complete, show type selection
|
|
@@ -657,21 +660,21 @@ export function DocumentUploadModal({
|
|
|
657
660
|
<div className="flex flex-col items-center">
|
|
658
661
|
<div className="flex items-center gap-2">
|
|
659
662
|
<UploadIcon className="size-5 text-primary" />
|
|
660
|
-
<span className="font-medium">
|
|
663
|
+
<span className="font-medium">{t('upload.new')}</span>
|
|
661
664
|
</div>
|
|
662
665
|
<div className="text-2xl font-semibold">{processingStats.toCreate}</div>
|
|
663
666
|
</div>
|
|
664
667
|
<div className="flex flex-col items-center">
|
|
665
668
|
<div className="flex items-center gap-2">
|
|
666
669
|
<CheckCircleIcon className="size-5 text-success" />
|
|
667
|
-
<span className="font-medium">
|
|
670
|
+
<span className="font-medium">{t('upload.update')}</span>
|
|
668
671
|
</div>
|
|
669
672
|
<div className="text-2xl font-semibold">{processingStats.toUpdate}</div>
|
|
670
673
|
</div>
|
|
671
674
|
<div className="flex flex-col items-center">
|
|
672
675
|
<div className="flex items-center gap-2">
|
|
673
676
|
<AlertCircleIcon className="size-5 text-mixer-attention/40" />
|
|
674
|
-
<span className="font-medium">
|
|
677
|
+
<span className="font-medium">{t('upload.skip')}</span>
|
|
675
678
|
</div>
|
|
676
679
|
<div className="text-2xl font-semibold">{processingStats.toSkip}</div>
|
|
677
680
|
</div>
|
|
@@ -689,21 +692,19 @@ export function DocumentUploadModal({
|
|
|
689
692
|
{processingStats.toCreate + processingStats.toUpdate > 0 ? (
|
|
690
693
|
<div className="space-y-1">
|
|
691
694
|
<p>
|
|
692
|
-
{
|
|
693
|
-
to process
|
|
695
|
+
{t('upload.filesReadyToProcess', { count: processingStats.toCreate + processingStats.toUpdate })}
|
|
694
696
|
</p>
|
|
695
697
|
<p>
|
|
696
698
|
{processingStats.toSkip > 0 &&
|
|
697
|
-
|
|
699
|
+
t('upload.filesToSkip', { count: processingStats.toSkip })}
|
|
698
700
|
</p>
|
|
699
701
|
</div>
|
|
700
702
|
) : processingStats.toSkip > 0 ? (
|
|
701
703
|
<span>
|
|
702
|
-
|
|
703
|
-
will be skipped. You can proceed to view the results.
|
|
704
|
+
{t('upload.allFilesExist', { count: processingStats.toSkip })}
|
|
704
705
|
</span>
|
|
705
706
|
) : (
|
|
706
|
-
<span>
|
|
707
|
+
<span>{t('upload.noFilesToProcess')}</span>
|
|
707
708
|
)}
|
|
708
709
|
</MessageBox>
|
|
709
710
|
|
|
@@ -750,14 +751,14 @@ export function DocumentUploadModal({
|
|
|
750
751
|
<div className="flex-1 min-w-0">
|
|
751
752
|
<div className="truncate font-medium">{fileStatus.file.name}</div>
|
|
752
753
|
<div className="text-xs text-muted">
|
|
753
|
-
{fileStatus.status === "pending" &&
|
|
754
|
-
{fileStatus.status === "uploading" &&
|
|
754
|
+
{fileStatus.status === "pending" && t('agent.waiting')}
|
|
755
|
+
{fileStatus.status === "uploading" && t('agent.uploading')}
|
|
755
756
|
{fileStatus.status === "success" &&
|
|
756
757
|
(fileStatus.action === "create"
|
|
757
|
-
?
|
|
758
|
+
? t('store.created')
|
|
758
759
|
: fileStatus.action === "update"
|
|
759
|
-
?
|
|
760
|
-
:
|
|
760
|
+
? t('store.updated')
|
|
761
|
+
: t('upload.skip'))}
|
|
761
762
|
{fileStatus.status === "error" && fileStatus.message}
|
|
762
763
|
</div>
|
|
763
764
|
</div>
|
|
@@ -812,7 +813,7 @@ export function DocumentUploadModal({
|
|
|
812
813
|
return (
|
|
813
814
|
<ModalFooter>
|
|
814
815
|
<Button variant="ghost" onClick={handleClose}>
|
|
815
|
-
|
|
816
|
+
{t('modal.cancel')}
|
|
816
817
|
</Button>
|
|
817
818
|
<Button
|
|
818
819
|
onClick={() => {
|
|
@@ -837,7 +838,7 @@ export function DocumentUploadModal({
|
|
|
837
838
|
handleClose();
|
|
838
839
|
}}
|
|
839
840
|
>
|
|
840
|
-
{selectedType ?
|
|
841
|
+
{selectedType ? t('upload.useTypeName', { typeName: selectedType.name }) : t('upload.useAutoDetection')}
|
|
841
842
|
</Button>
|
|
842
843
|
</ModalFooter>
|
|
843
844
|
);
|
|
@@ -848,7 +849,7 @@ export function DocumentUploadModal({
|
|
|
848
849
|
return (
|
|
849
850
|
<ModalFooter>
|
|
850
851
|
<Button variant="ghost" onClick={handleClose}>
|
|
851
|
-
|
|
852
|
+
{t('modal.cancel')}
|
|
852
853
|
</Button>
|
|
853
854
|
</ModalFooter>
|
|
854
855
|
);
|
|
@@ -862,15 +863,15 @@ export function DocumentUploadModal({
|
|
|
862
863
|
return (
|
|
863
864
|
<ModalFooter>
|
|
864
865
|
<Button variant="ghost" onClick={handleClose}>
|
|
865
|
-
|
|
866
|
+
{t('modal.cancel')}
|
|
866
867
|
</Button>
|
|
867
868
|
<Button
|
|
868
869
|
disabled={!canUpload}
|
|
869
870
|
onClick={handleUpload}
|
|
870
871
|
>
|
|
871
872
|
{processingStats.toCreate + processingStats.toUpdate > 0
|
|
872
|
-
?
|
|
873
|
-
:
|
|
873
|
+
? t('agent.upload')
|
|
874
|
+
: t('upload.continue')}
|
|
874
875
|
</Button>
|
|
875
876
|
</ModalFooter>
|
|
876
877
|
);
|
|
@@ -881,7 +882,7 @@ export function DocumentUploadModal({
|
|
|
881
882
|
return (
|
|
882
883
|
<ModalFooter>
|
|
883
884
|
<Button variant="ghost" disabled>
|
|
884
|
-
|
|
885
|
+
{t('agent.uploading')}
|
|
885
886
|
</Button>
|
|
886
887
|
</ModalFooter>
|
|
887
888
|
);
|
|
@@ -905,7 +906,7 @@ export function DocumentUploadModal({
|
|
|
905
906
|
setProcessingStats({ toCreate: 0, toUpdate: 0, toSkip: 0 });
|
|
906
907
|
}}
|
|
907
908
|
>
|
|
908
|
-
|
|
909
|
+
{t('upload.uploadMore')}
|
|
909
910
|
</Button>
|
|
910
911
|
<Button onClick={() => {
|
|
911
912
|
if (onUploadComplete && result) {
|
|
@@ -913,7 +914,7 @@ export function DocumentUploadModal({
|
|
|
913
914
|
}
|
|
914
915
|
handleClose();
|
|
915
916
|
}}>
|
|
916
|
-
|
|
917
|
+
{t('agent.close')}
|
|
917
918
|
</Button>
|
|
918
919
|
</ModalFooter>
|
|
919
920
|
);
|
|
@@ -2,6 +2,7 @@ import { ComplexSearchPayload, ContentObjectItem, FindPayload } from "@vertesia/
|
|
|
2
2
|
import { useToast } from "@vertesia/ui/core";
|
|
3
3
|
import { useUserSession } from "@vertesia/ui/session";
|
|
4
4
|
import { Md5 } from "ts-md5";
|
|
5
|
+
import { i18nInstance, NAMESPACE } from '../../../../i18n/instance.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Types of actions that can be taken with a file
|
|
@@ -109,6 +110,7 @@ async function prepareFilesWithMetadata(files: File[], selectedFolder?: string |
|
|
|
109
110
|
export function useSmartFileUploadProcessing() {
|
|
110
111
|
const { client } = useUserSession();
|
|
111
112
|
const toast = useToast();
|
|
113
|
+
const t = i18nInstance.getFixedT(null, NAMESPACE);
|
|
112
114
|
|
|
113
115
|
/**
|
|
114
116
|
* Check files to determine if they need to be created, updated, or skipped
|
|
@@ -236,12 +238,12 @@ export function useSmartFileUploadProcessing() {
|
|
|
236
238
|
return filesWithMetadata;
|
|
237
239
|
} catch (error: any) {
|
|
238
240
|
toast({
|
|
239
|
-
title:
|
|
241
|
+
title: t('store.errorInUploadProcessingCheck'),
|
|
240
242
|
status: "error",
|
|
241
243
|
description: error.message,
|
|
242
244
|
});
|
|
243
245
|
console.log("Error in file upload processing check", error);
|
|
244
|
-
throw new Error("Error in file upload processing check: " + error.message);
|
|
246
|
+
throw new Error("Error in file upload processing check: " + error.message, { cause: error });
|
|
245
247
|
}
|
|
246
248
|
};
|
|
247
249
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useToast } from "@vertesia/ui/core";
|
|
2
2
|
import { useUserSession } from "@vertesia/ui/session";
|
|
3
|
+
import { i18nInstance, NAMESPACE } from '../../../../i18n/instance.js';
|
|
3
4
|
import { useDocumentSearch } from "../search/DocumentSearchContext";
|
|
4
5
|
import { FileUploadAction, useSmartFileUploadProcessing } from "./useSmartFileUploadProcessing";
|
|
5
6
|
|
|
@@ -60,6 +61,7 @@ export function useDocumentUploadHandler(options: UploadHandlerOptions | ((objec
|
|
|
60
61
|
const { client, project: projectRef, store } = useUserSession();
|
|
61
62
|
const search = useDocumentSearch();
|
|
62
63
|
const toast = useToast();
|
|
64
|
+
const t = i18nInstance.getFixedT(null, NAMESPACE);
|
|
63
65
|
const { checkDocumentProcessing } = useSmartFileUploadProcessing();
|
|
64
66
|
|
|
65
67
|
return async (files: File[], type: string | null, collectionId?: string): Promise<DocumentUploadResult> => {
|
|
@@ -75,7 +77,7 @@ export function useDocumentUploadHandler(options: UploadHandlerOptions | ((objec
|
|
|
75
77
|
if (!projectRef) {
|
|
76
78
|
toast({
|
|
77
79
|
status: "error",
|
|
78
|
-
title:
|
|
80
|
+
title: t('store.noProjectSelected'),
|
|
79
81
|
duration: 3000,
|
|
80
82
|
});
|
|
81
83
|
return result;
|
|
@@ -84,7 +86,7 @@ export function useDocumentUploadHandler(options: UploadHandlerOptions | ((objec
|
|
|
84
86
|
if (!files || files.length === 0) {
|
|
85
87
|
toast({
|
|
86
88
|
status: "warning",
|
|
87
|
-
title:
|
|
89
|
+
title: t('store.noFilesSelected'),
|
|
88
90
|
duration: 3000,
|
|
89
91
|
});
|
|
90
92
|
return result;
|
|
@@ -95,8 +97,8 @@ export function useDocumentUploadHandler(options: UploadHandlerOptions | ((objec
|
|
|
95
97
|
if (filesToUpload.length === 0) {
|
|
96
98
|
toast({
|
|
97
99
|
status: "error",
|
|
98
|
-
title:
|
|
99
|
-
description:
|
|
100
|
+
title: t('store.noValidFilesSelected'),
|
|
101
|
+
description: t('store.pleaseSelectValidFiles'),
|
|
100
102
|
duration: 5000,
|
|
101
103
|
});
|
|
102
104
|
return result;
|
|
@@ -118,7 +120,7 @@ export function useDocumentUploadHandler(options: UploadHandlerOptions | ((objec
|
|
|
118
120
|
|
|
119
121
|
// Show user feedback about processed files
|
|
120
122
|
toast({
|
|
121
|
-
title:
|
|
123
|
+
title: t('store.filesAnalyzedTitle'),
|
|
122
124
|
description: `${filesToUpload.length} file(s): ${toCreate} new, ${toUpdate} to update, ${toSkip} to skip`,
|
|
123
125
|
status: "info",
|
|
124
126
|
duration: 4000,
|
|
@@ -164,7 +166,7 @@ export function useDocumentUploadHandler(options: UploadHandlerOptions | ((objec
|
|
|
164
166
|
// Show progress for larger file sets
|
|
165
167
|
if (filesToProcess.length > batchSize) {
|
|
166
168
|
toast({
|
|
167
|
-
title:
|
|
169
|
+
title: t('store.processingFiles'),
|
|
168
170
|
description: `Processed ${processedCount}/${filesToProcess.length} files...`,
|
|
169
171
|
status: "info",
|
|
170
172
|
duration: 2000,
|
|
@@ -246,7 +248,7 @@ export function useDocumentUploadHandler(options: UploadHandlerOptions | ((objec
|
|
|
246
248
|
|
|
247
249
|
toast({
|
|
248
250
|
status: "error",
|
|
249
|
-
title:
|
|
251
|
+
title: t('store.processingFailedFor', { name: fileInfo.name }),
|
|
250
252
|
description: error.message,
|
|
251
253
|
duration: 4000,
|
|
252
254
|
});
|
|
@@ -6,6 +6,7 @@ import { useWatchSearchResult } from "./search/ObjectTypeSearchContext";
|
|
|
6
6
|
import { EmptyCollection, ErrorBox, Input, SelectBox, useDebounce, useIntersectionObserver, useToast } from "@vertesia/ui/core";
|
|
7
7
|
import { useUserSession } from "@vertesia/ui/session";
|
|
8
8
|
import { useTypeRegistry } from "./TypeRegistryProvider.js";
|
|
9
|
+
import { useUITranslation } from '../../../i18n/index.js';
|
|
9
10
|
|
|
10
11
|
import { CreateOrUpdateTypeModal, CreateOrUpdateTypePayload } from "./CreateOrUpdateTypeModal";
|
|
11
12
|
|
|
@@ -17,6 +18,7 @@ interface ContentObjectTypesSearchProps {
|
|
|
17
18
|
export function ContentObjectTypesSearch({ isDirty = false }: ContentObjectTypesSearchProps) {
|
|
18
19
|
const { store } = useUserSession();
|
|
19
20
|
const { reload: reloadTypes } = useTypeRegistry();
|
|
21
|
+
const { t } = useUITranslation();
|
|
20
22
|
|
|
21
23
|
const toast = useToast();
|
|
22
24
|
|
|
@@ -66,7 +68,7 @@ export function ContentObjectTypesSearch({ isDirty = false }: ContentObjectTypes
|
|
|
66
68
|
|
|
67
69
|
if (error) {
|
|
68
70
|
return (
|
|
69
|
-
<ErrorBox title=
|
|
71
|
+
<ErrorBox title={t('store.failedToFetchTypes')}>{error.message}</ErrorBox>
|
|
70
72
|
);
|
|
71
73
|
};
|
|
72
74
|
|
|
@@ -78,7 +80,7 @@ export function ContentObjectTypesSearch({ isDirty = false }: ContentObjectTypes
|
|
|
78
80
|
return store.types.create(payload).then(async () => {
|
|
79
81
|
toast({
|
|
80
82
|
status: "success",
|
|
81
|
-
title:
|
|
83
|
+
title: t('store.typeCreated'),
|
|
82
84
|
duration: 2000
|
|
83
85
|
});
|
|
84
86
|
reloadTypes();
|
|
@@ -86,7 +88,7 @@ export function ContentObjectTypesSearch({ isDirty = false }: ContentObjectTypes
|
|
|
86
88
|
}).catch(err => {
|
|
87
89
|
toast({
|
|
88
90
|
status: "error",
|
|
89
|
-
title:
|
|
91
|
+
title: t('store.errorCreatingType'),
|
|
90
92
|
description: err.message,
|
|
91
93
|
duration: 5000
|
|
92
94
|
});
|
|
@@ -96,20 +98,20 @@ export function ContentObjectTypesSearch({ isDirty = false }: ContentObjectTypes
|
|
|
96
98
|
return (
|
|
97
99
|
<div className="flex flex-col gap-4 h-full">
|
|
98
100
|
<div className="flex flex-shrink-0 gap-4">
|
|
99
|
-
<Input placeholder=
|
|
100
|
-
<SelectBox className="w-60" isClearable options={Object.values(ChunkableOptions)} value={chunkable} onChange={onChunkableChange} placeholder={
|
|
101
|
+
<Input placeholder={t('store.filterByName')} value={searchTerm} onChange={setSearchTerm} />
|
|
102
|
+
<SelectBox className="w-60" isClearable options={Object.values(ChunkableOptions)} value={chunkable} onChange={onChunkableChange} placeholder={t('store.isChunkable')} />
|
|
101
103
|
</div>
|
|
102
104
|
<div className="flex-1 overflow-y-auto">
|
|
103
105
|
{
|
|
104
106
|
(!isLoading && objects?.length === 0) ? (
|
|
105
|
-
<EmptyCollection title=
|
|
106
|
-
|
|
107
|
+
<EmptyCollection title={t('store.noType')} buttonLabel={t('store.createType')} onClick={onOpenCreateModal}>
|
|
108
|
+
{t('store.getStartedTypes')}
|
|
107
109
|
</EmptyCollection >
|
|
108
110
|
) : (
|
|
109
111
|
<ContentObjectTypesTable objects={objects} isLoading={isLoading} />
|
|
110
112
|
)
|
|
111
113
|
}
|
|
112
|
-
<CreateOrUpdateTypeModal okLabel="Create" title=
|
|
114
|
+
<CreateOrUpdateTypeModal okLabel="Create" title={t('store.createType')} isOpen={showCreateModal} onClose={onCloseCreateModal} />
|
|
113
115
|
</div>
|
|
114
116
|
</div>
|
|
115
117
|
)
|
|
@@ -4,6 +4,7 @@ import relativeTime from "dayjs/plugin/relativeTime";
|
|
|
4
4
|
import { ContentObjectTypeItem } from "@vertesia/common";
|
|
5
5
|
import { Table, TBody, THead } from "@vertesia/ui/core";
|
|
6
6
|
import { useNavigate } from "@vertesia/ui/router";
|
|
7
|
+
import { useUITranslation } from '../../../i18n/index.js';
|
|
7
8
|
|
|
8
9
|
dayjs.extend(relativeTime);
|
|
9
10
|
|
|
@@ -12,16 +13,17 @@ interface ContentObjectTypesTableProps {
|
|
|
12
13
|
isLoading: boolean;
|
|
13
14
|
}
|
|
14
15
|
export function ContentObjectTypesTable({ objects, isLoading }: ContentObjectTypesTableProps) {
|
|
16
|
+
const { t } = useUITranslation();
|
|
15
17
|
const navigate = useNavigate();
|
|
16
18
|
|
|
17
19
|
return (
|
|
18
20
|
<Table className="w-full">
|
|
19
21
|
<THead>
|
|
20
22
|
<tr>
|
|
21
|
-
<th>
|
|
22
|
-
<th>
|
|
23
|
-
<th>
|
|
24
|
-
<th>
|
|
23
|
+
<th>{t('store.name')}</th>
|
|
24
|
+
<th>{t('store.strictMode')}</th>
|
|
25
|
+
<th>{t('store.semanticChunking')}</th>
|
|
26
|
+
<th>{t('store.updatedAt')}</th>
|
|
25
27
|
</tr>
|
|
26
28
|
</THead>
|
|
27
29
|
<TBody isLoading={isLoading && (!objects || objects.length === 0)} columns={4}>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
|
|
3
3
|
import { Button, Input, Modal, ModalBody, ModalFooter, ModalTitle, useToast, Textarea } from '@vertesia/ui/core';
|
|
4
|
+
import { useUITranslation } from '@vertesia/ui/i18n';
|
|
4
5
|
|
|
5
6
|
export interface CreateOrUpdateTypePayload {
|
|
6
7
|
name: string;
|
|
@@ -13,28 +14,26 @@ interface CreateOrUpdateTypeModalProps {
|
|
|
13
14
|
onClose: (payload?: CreateOrUpdateTypePayload) => Promise<unknown>;
|
|
14
15
|
okLabel: string;
|
|
15
16
|
initialPayload?: CreateOrUpdateTypePayload;
|
|
17
|
+
isLoading?: boolean;
|
|
16
18
|
}
|
|
17
|
-
export function CreateOrUpdateTypeModal({ title, isOpen, onClose, okLabel, initialPayload }: CreateOrUpdateTypeModalProps) {
|
|
19
|
+
export function CreateOrUpdateTypeModal({ title, isOpen, onClose, okLabel, initialPayload, isLoading }: CreateOrUpdateTypeModalProps) {
|
|
20
|
+
const { t } = useUITranslation();
|
|
18
21
|
const toast = useToast();
|
|
19
22
|
const [name, setName] = useState<string | undefined>(initialPayload?.name);
|
|
20
23
|
const [description, setDescription] = useState<string | undefined>(initialPayload?.description);
|
|
21
|
-
const
|
|
24
|
+
const strictMode = initialPayload?.strict_mode ?? false;
|
|
22
25
|
|
|
23
26
|
const onSave = () => {
|
|
24
27
|
if (!name) {
|
|
25
28
|
toast({
|
|
26
29
|
status: 'error',
|
|
27
|
-
title: '
|
|
30
|
+
title: t('type.nameRequired'),
|
|
28
31
|
duration: 5000
|
|
29
32
|
})
|
|
30
33
|
return;
|
|
31
34
|
}
|
|
32
35
|
const payload = { name, description, strict_mode: strictMode };
|
|
33
36
|
onClose(payload).then(() => onClose());
|
|
34
|
-
|
|
35
|
-
setName(undefined);
|
|
36
|
-
setDescription(undefined);
|
|
37
|
-
setStrictMode(false);
|
|
38
37
|
};
|
|
39
38
|
|
|
40
39
|
return (
|
|
@@ -43,19 +42,19 @@ export function CreateOrUpdateTypeModal({ title, isOpen, onClose, okLabel, initi
|
|
|
43
42
|
<ModalBody className="pt-0">
|
|
44
43
|
<div className='h-full flex flex-col gap-4 content-between'>
|
|
45
44
|
<div>
|
|
46
|
-
<label className="block text-sm font-medium text-muted">
|
|
45
|
+
<label className="block text-sm font-medium text-muted">{t('type.name')}</label>
|
|
47
46
|
<Input value={name} onChange={setName} />
|
|
48
47
|
</div>
|
|
49
48
|
<div>
|
|
50
|
-
<label className="block text-sm font-medium text-muted">
|
|
51
|
-
<Textarea value={description} onChange={e => setDescription(e.target.value)} />
|
|
49
|
+
<label className="block text-sm font-medium text-muted">{t('type.description')}</label>
|
|
50
|
+
<Textarea value={description} onChange={e => setDescription(e.target.value)} minLines={5}/>
|
|
52
51
|
</div>
|
|
53
52
|
</div>
|
|
54
53
|
</ModalBody>
|
|
55
54
|
<ModalFooter>
|
|
56
55
|
<div className='flex justify-end gap-4'>
|
|
57
|
-
<Button variant="secondary" onClick={() => onClose()}>
|
|
58
|
-
<Button variant="primary" onClick={() => onSave()}>{okLabel}</Button>
|
|
56
|
+
<Button variant="secondary" onClick={() => onClose()}>{t('modal.cancel')}</Button>
|
|
57
|
+
<Button variant="primary" onClick={() => onSave()} isLoading={isLoading}>{okLabel}</Button>
|
|
59
58
|
</div>
|
|
60
59
|
</ModalFooter>
|
|
61
60
|
</Modal>
|