@vertesia/ui 1.0.0-dev.20260305.083323Z → 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/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/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 +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 +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 +23 -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 +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 +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 +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/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/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 +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/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/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 +461 -271
- 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 +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 +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 +24 -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 +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
|
@@ -2,7 +2,7 @@ import dayjs from "dayjs";
|
|
|
2
2
|
import LocalizedFormat from "dayjs/plugin/localizedFormat";
|
|
3
3
|
import RelativeTime from "dayjs/plugin/relativeTime";
|
|
4
4
|
import { shortId } from "../../../utils";
|
|
5
|
-
import { Eye } from "lucide-react";
|
|
5
|
+
import { ExternalLink, Eye } from "lucide-react";
|
|
6
6
|
import { Button } from "@vertesia/ui/core";
|
|
7
7
|
dayjs.extend(RelativeTime);
|
|
8
8
|
dayjs.extend(LocalizedFormat);
|
|
@@ -161,6 +161,32 @@ const renderers: Record<string, (params?: URLSearchParams, onClick?: (id: string
|
|
|
161
161
|
return <td key={index}>{value?.name || "n/a"}</td>;
|
|
162
162
|
};
|
|
163
163
|
},
|
|
164
|
+
revision(_params?: URLSearchParams, _onClick?: (id: string) => void) {
|
|
165
|
+
return (value: any, index: number) => {
|
|
166
|
+
const rev = value?.revision;
|
|
167
|
+
if (!rev) return <td key={index} />;
|
|
168
|
+
return (
|
|
169
|
+
<td key={index}>
|
|
170
|
+
<div className="flex flex-col gap-0.5">
|
|
171
|
+
{rev.root &&
|
|
172
|
+
<div className="flex items-center gap-1">
|
|
173
|
+
<span className="text-xs text-muted font-mono">
|
|
174
|
+
root: ~{rev.root.slice(-7)}
|
|
175
|
+
</span>
|
|
176
|
+
<a
|
|
177
|
+
href={`/store/objects/${rev.root}`}
|
|
178
|
+
onClick={(e) => e.stopPropagation()}
|
|
179
|
+
>
|
|
180
|
+
<ExternalLink className="size-3 text-muted" />
|
|
181
|
+
</a>
|
|
182
|
+
</div>
|
|
183
|
+
}
|
|
184
|
+
{rev.label && <span className="text-xs text-muted">label: {rev.label}</span>}
|
|
185
|
+
</div>
|
|
186
|
+
</td>
|
|
187
|
+
);
|
|
188
|
+
};
|
|
189
|
+
},
|
|
164
190
|
date(params?: URLSearchParams, _onClick?: (id: string) => void) {
|
|
165
191
|
let method = "format";
|
|
166
192
|
let arg: string | undefined = "LLL";
|
|
@@ -61,7 +61,7 @@ export class DocumentSearch implements SearchInterface {
|
|
|
61
61
|
|
|
62
62
|
clearFilters(autoSearch: boolean = true) {
|
|
63
63
|
// Preserve search-related fields when clearing filters
|
|
64
|
-
const { parent, full_text, vector, weights, score_aggregation, dynamic_scaling, limit } = this.query;
|
|
64
|
+
const { parent, full_text, vector, weights, score_aggregation, dynamic_scaling, limit, all_revisions } = this.query;
|
|
65
65
|
this.query = {
|
|
66
66
|
parent,
|
|
67
67
|
...(full_text !== undefined && { full_text }),
|
|
@@ -69,7 +69,8 @@ export class DocumentSearch implements SearchInterface {
|
|
|
69
69
|
...(weights !== undefined && { weights }),
|
|
70
70
|
...(score_aggregation !== undefined && { score_aggregation }),
|
|
71
71
|
...(dynamic_scaling !== undefined && { dynamic_scaling }),
|
|
72
|
-
...(limit !== undefined && { limit })
|
|
72
|
+
...(limit !== undefined && { limit }),
|
|
73
|
+
...(all_revisions !== undefined && { all_revisions })
|
|
73
74
|
};
|
|
74
75
|
|
|
75
76
|
if (autoSearch) {
|
|
@@ -41,6 +41,9 @@ export function DocumentSearchProvider({ children, limit, parent, typeId, facets
|
|
|
41
41
|
search.query.type = typeId;
|
|
42
42
|
search.query.parent = parent;
|
|
43
43
|
search.query.name = name;
|
|
44
|
+
if (collectionId) {
|
|
45
|
+
search.query.all_revisions = true;
|
|
46
|
+
}
|
|
44
47
|
return search;
|
|
45
48
|
}, [typeId, limit, collectionId]);
|
|
46
49
|
|
|
@@ -1,112 +1,38 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode, useMemo } from 'react';
|
|
2
2
|
|
|
3
|
+
import { ColumnLayout } from '@vertesia/common';
|
|
3
4
|
import { ErrorBox, useFetch, useToast } from '@vertesia/ui/core';
|
|
4
5
|
import { useUserSession } from '@vertesia/ui/session';
|
|
6
|
+
import { useUITranslation } from '../../../../i18n/index.js';
|
|
5
7
|
|
|
6
|
-
import {
|
|
8
|
+
import { useDocumentSelection } from '../DocumentSelectionProvider';
|
|
9
|
+
import { useDocumentSearch } from '../search/DocumentSearchContext';
|
|
7
10
|
import { AddToCollectionAction } from './actions/AddToCollectionAction';
|
|
8
11
|
import { ChangeTypeAction } from './actions/ChangeTypeAction';
|
|
9
12
|
import { DeleteObjectsAction, DeleteObjectsFromCollectionsAction } from './actions/DeleteObjectsAction';
|
|
10
13
|
import { ExportPropertiesAction } from './actions/ExportPropertiesAction';
|
|
11
14
|
import { RemoveFromCollectionAction } from './actions/RemoveFromCollectionAction';
|
|
12
15
|
import { StartWorkflowAction, StartWorkflowComponent } from './actions/StartWorkflowComponent';
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
];
|
|
27
|
-
wfRules: ObjectsActionSpec[] = [];
|
|
28
|
-
callbacks: Record<string, ObjectsActionCallback> = {};
|
|
29
|
-
startWorkflow?: ObjectsActionCallback;
|
|
30
|
-
|
|
31
|
-
constructor(public params: Omit<ObjectsActionParams, 'action'>) { }
|
|
32
|
-
|
|
33
|
-
get actions(): ObjectsActionSpec[] {
|
|
34
|
-
const isInCollection = !!this.params.selection?.collectionId;
|
|
35
|
-
|
|
36
|
-
if (isInCollection) {
|
|
37
|
-
return this.allActions.filter(action =>
|
|
38
|
-
action.id !== 'addToCollection' && action.id !== 'delete'
|
|
39
|
-
);
|
|
40
|
-
} else {
|
|
41
|
-
return this.allActions.filter(action =>
|
|
42
|
-
action.id !== 'removeFromCollection' && action.id !== 'deleteFromCollections'
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
async loadWorkflows() {
|
|
48
|
-
this.params.client.workflows.rules.list().then((rules) => {
|
|
49
|
-
this.wfRules = rules.map(rule => (
|
|
50
|
-
{
|
|
51
|
-
id: rule.id,
|
|
52
|
-
name: rule.name,
|
|
53
|
-
description: rule.description,
|
|
54
|
-
confirm: false,
|
|
55
|
-
isWorkflow: true,
|
|
56
|
-
component: StartWorkflowComponent
|
|
57
|
-
}
|
|
58
|
-
)).sort((a, b) => a.name.localeCompare(b.name));
|
|
59
|
-
});
|
|
60
|
-
return this.wfRules;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
registerCallback(name: string, cb: (params: ObjectsActionParams) => Promise<unknown>) {
|
|
64
|
-
this.callbacks[name] = cb;
|
|
65
|
-
return () => {
|
|
66
|
-
delete this.callbacks[name];
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
unregisterCallback(name: string) {
|
|
71
|
-
delete this.callbacks[name];
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
findAction(actionId: string) {
|
|
75
|
-
let action = this.allActions.find(a => a.id === actionId);
|
|
76
|
-
if (!action) {
|
|
77
|
-
action = this.wfRules.find(a => a.id === actionId);
|
|
78
|
-
}
|
|
79
|
-
return action;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
async run(actionId: string): Promise<unknown> {
|
|
83
|
-
const action = this.findAction(actionId);
|
|
84
|
-
if (!action) {
|
|
85
|
-
throw new Error(`Action ${actionId} not found`);
|
|
86
|
-
}
|
|
87
|
-
const params = { ...this.params, action };
|
|
88
|
-
// if (action.isWorkflow) {
|
|
89
|
-
// if (!this.startWorkflow) {
|
|
90
|
-
// throw new Error("No startWorkflow callback set");
|
|
91
|
-
// }
|
|
92
|
-
// return this.startWorkflow(params);
|
|
93
|
-
// } else {
|
|
94
|
-
const cb = this.callbacks[actionId];
|
|
95
|
-
if (cb) {
|
|
96
|
-
return cb(params);
|
|
97
|
-
} else {
|
|
98
|
-
throw new Error("No action callback set");
|
|
99
|
-
}
|
|
100
|
-
// }
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
const ObjectsActionContextReact = createContext<ObjectsActionContext>(undefined as any);
|
|
16
|
+
import { ObjectsActionContext } from './ObjectsActionContextClass';
|
|
17
|
+
import { ObjectsActionContextReact, useObjectsActionContext } from './ObjectsActionHooks';
|
|
18
|
+
import { ObjectsActionSpec } from './ObjectsActionSpec';
|
|
19
|
+
|
|
20
|
+
const DEFAULT_ACTIONS: ObjectsActionSpec[] = [
|
|
21
|
+
ExportPropertiesAction,
|
|
22
|
+
ChangeTypeAction,
|
|
23
|
+
StartWorkflowAction,
|
|
24
|
+
AddToCollectionAction,
|
|
25
|
+
DeleteObjectsAction,
|
|
26
|
+
RemoveFromCollectionAction,
|
|
27
|
+
DeleteObjectsFromCollectionsAction,
|
|
28
|
+
];
|
|
105
29
|
|
|
106
30
|
interface ObjectsActionContextProps {
|
|
107
31
|
children: ReactNode;
|
|
32
|
+
table_layout?: ColumnLayout[];
|
|
108
33
|
}
|
|
109
|
-
export function ObjectsActionContextProvider({ children }: ObjectsActionContextProps) {
|
|
34
|
+
export function ObjectsActionContextProvider({ children, table_layout }: ObjectsActionContextProps) {
|
|
35
|
+
const { t } = useUITranslation();
|
|
110
36
|
const selection = useDocumentSelection();
|
|
111
37
|
const toast = useToast();
|
|
112
38
|
const { client } = useUserSession();
|
|
@@ -129,14 +55,15 @@ export function ObjectsActionContextProvider({ children }: ObjectsActionContextP
|
|
|
129
55
|
|
|
130
56
|
const context = useMemo(() => {
|
|
131
57
|
const context = new ObjectsActionContext({
|
|
132
|
-
selection, toast, client, search
|
|
58
|
+
selection, toast, client, search, table_layout
|
|
133
59
|
});
|
|
60
|
+
context.allActions = DEFAULT_ACTIONS;
|
|
134
61
|
context.wfRules = rules!;
|
|
135
62
|
return context;
|
|
136
|
-
}, [selection, rules]);
|
|
63
|
+
}, [selection, rules, table_layout]);
|
|
137
64
|
|
|
138
65
|
if (error) {
|
|
139
|
-
return <ErrorBox title=
|
|
66
|
+
return <ErrorBox title={t('store.failedToFetchWorkflows')}>{error.message}</ErrorBox>
|
|
140
67
|
}
|
|
141
68
|
|
|
142
69
|
return (
|
|
@@ -149,9 +76,7 @@ export function ObjectsActionContextProvider({ children }: ObjectsActionContextP
|
|
|
149
76
|
)
|
|
150
77
|
}
|
|
151
78
|
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
function Actions({ }: ActionsProps) {
|
|
79
|
+
function Actions() {
|
|
155
80
|
const context = useObjectsActionContext();
|
|
156
81
|
|
|
157
82
|
const selection = context.params.selection;
|
|
@@ -168,30 +93,3 @@ function Actions({ }: ActionsProps) {
|
|
|
168
93
|
</div>
|
|
169
94
|
)
|
|
170
95
|
}
|
|
171
|
-
|
|
172
|
-
export function useObjectsActionContext() {
|
|
173
|
-
const ctx = useContext(ObjectsActionContextReact);
|
|
174
|
-
if (!ctx) {
|
|
175
|
-
throw new Error("You cannot use useActionContext outside an ActionProvider");
|
|
176
|
-
}
|
|
177
|
-
return ctx;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export function useObjectsActionCallback(name: string, cb: ObjectsActionCallback) {
|
|
181
|
-
const ctx = useObjectsActionContext();
|
|
182
|
-
useEffect(() => {
|
|
183
|
-
return ctx.registerCallback(name, cb);
|
|
184
|
-
}, [ctx, name, cb]);
|
|
185
|
-
return ctx;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
export function useStartWorkflowCallback(cb: ObjectsActionCallback) {
|
|
189
|
-
const ctx = useObjectsActionContext();
|
|
190
|
-
useEffect(() => {
|
|
191
|
-
ctx.startWorkflow = cb;
|
|
192
|
-
return () => {
|
|
193
|
-
ctx.startWorkflow = undefined;
|
|
194
|
-
}
|
|
195
|
-
}, [cb, ctx]);
|
|
196
|
-
return ctx;
|
|
197
|
-
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ObjectsActionParams, ObjectsActionSpec } from './ObjectsActionSpec';
|
|
2
|
+
|
|
3
|
+
export type ObjectsActionCallback = (params: ObjectsActionParams) => Promise<unknown>;
|
|
4
|
+
|
|
5
|
+
export class ObjectsActionContext {
|
|
6
|
+
allActions: ObjectsActionSpec[] = [];
|
|
7
|
+
wfRules: ObjectsActionSpec[] = [];
|
|
8
|
+
callbacks: Record<string, ObjectsActionCallback> = {};
|
|
9
|
+
startWorkflow?: ObjectsActionCallback;
|
|
10
|
+
|
|
11
|
+
constructor(public params: Omit<ObjectsActionParams, 'action'>) { }
|
|
12
|
+
|
|
13
|
+
get actions(): ObjectsActionSpec[] {
|
|
14
|
+
const isInCollection = !!this.params.selection?.collectionId;
|
|
15
|
+
|
|
16
|
+
if (isInCollection) {
|
|
17
|
+
return this.allActions.filter(action =>
|
|
18
|
+
action.id !== 'addToCollection' && action.id !== 'delete'
|
|
19
|
+
);
|
|
20
|
+
} else {
|
|
21
|
+
return this.allActions.filter(action =>
|
|
22
|
+
action.id !== 'removeFromCollection' && action.id !== 'deleteFromCollections'
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
registerCallback(name: string, cb: (params: ObjectsActionParams) => Promise<unknown>) {
|
|
28
|
+
this.callbacks[name] = cb;
|
|
29
|
+
return () => {
|
|
30
|
+
delete this.callbacks[name];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
unregisterCallback(name: string) {
|
|
35
|
+
delete this.callbacks[name];
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
findAction(actionId: string) {
|
|
39
|
+
let action = this.allActions.find(a => a.id === actionId);
|
|
40
|
+
if (!action) {
|
|
41
|
+
action = this.wfRules.find(a => a.id === actionId);
|
|
42
|
+
}
|
|
43
|
+
return action;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
async run(actionId: string): Promise<unknown> {
|
|
47
|
+
const action = this.findAction(actionId);
|
|
48
|
+
if (!action) {
|
|
49
|
+
throw new Error(`Action ${actionId} not found`);
|
|
50
|
+
}
|
|
51
|
+
const params = { ...this.params, action };
|
|
52
|
+
const cb = this.callbacks[actionId];
|
|
53
|
+
if (cb) {
|
|
54
|
+
return cb(params);
|
|
55
|
+
} else {
|
|
56
|
+
throw new Error("No action callback set");
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { createContext, useContext, useEffect } from 'react';
|
|
2
|
+
import { ObjectsActionContext, type ObjectsActionCallback } from './ObjectsActionContextClass';
|
|
3
|
+
|
|
4
|
+
export { type ObjectsActionCallback };
|
|
5
|
+
|
|
6
|
+
export const ObjectsActionContextReact = createContext<ObjectsActionContext>(undefined as any);
|
|
7
|
+
|
|
8
|
+
export function useObjectsActionContext() {
|
|
9
|
+
const ctx = useContext(ObjectsActionContextReact);
|
|
10
|
+
if (!ctx) {
|
|
11
|
+
throw new Error("You cannot use useActionContext outside an ActionProvider");
|
|
12
|
+
}
|
|
13
|
+
return ctx;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function useObjectsActionCallback(name: string, cb: ObjectsActionCallback) {
|
|
17
|
+
const ctx = useObjectsActionContext();
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
return ctx.registerCallback(name, cb);
|
|
20
|
+
}, [ctx, name, cb]);
|
|
21
|
+
return ctx;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function useStartWorkflowCallback(cb: ObjectsActionCallback) {
|
|
25
|
+
const ctx = useObjectsActionContext();
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
ctx.startWorkflow = cb;
|
|
28
|
+
return () => {
|
|
29
|
+
ctx.startWorkflow = undefined;
|
|
30
|
+
}
|
|
31
|
+
}, [cb, ctx]);
|
|
32
|
+
return ctx;
|
|
33
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { VertesiaClient } from "@vertesia/client";
|
|
2
|
+
import { ColumnLayout } from "@vertesia/common";
|
|
2
3
|
import { ToastFn } from "@vertesia/ui/core";
|
|
3
|
-
import {
|
|
4
|
+
import { DocumentSelection } from '../DocumentSelectionProvider';
|
|
5
|
+
import { DocumentSearch } from '../search/DocumentSearchContext';
|
|
4
6
|
|
|
5
7
|
export interface ObjectsActionSpec {
|
|
6
8
|
id: string;
|
|
@@ -19,6 +21,7 @@ export interface ObjectsActionParams {
|
|
|
19
21
|
selection: DocumentSelection,
|
|
20
22
|
toast: ToastFn,
|
|
21
23
|
search: DocumentSearch,
|
|
24
|
+
table_layout?: ColumnLayout[],
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
export interface ActionComponentTypeProps {
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
+
import { ColumnLayout } from '@vertesia/common';
|
|
1
2
|
import { Button, Popover, PopoverContent, PopoverTrigger, SelectList } from '@vertesia/ui/core';
|
|
2
3
|
import clsx from 'clsx';
|
|
3
4
|
import { EllipsisVertical, X } from 'lucide-react';
|
|
4
5
|
|
|
5
6
|
import { useState } from "react";
|
|
7
|
+
import { useUITranslation } from '../../../../i18n/index.js';
|
|
6
8
|
import { DocumentSelection, DocumentUploadModal, useDocumentSelection } from "../../../store";
|
|
7
9
|
import { ExportPropertiesAction } from "./actions/ExportPropertiesAction";
|
|
8
10
|
import { StartWorkflowAction } from "./actions/StartWorkflowComponent";
|
|
9
|
-
import { ObjectsActionContextProvider
|
|
11
|
+
import { ObjectsActionContextProvider } from "./ObjectsActionContext";
|
|
12
|
+
import { useObjectsActionContext } from "./ObjectsActionHooks";
|
|
10
13
|
import { ObjectsActionSpec } from "./ObjectsActionSpec";
|
|
11
14
|
|
|
12
|
-
|
|
15
|
+
interface SelectionActionsProps {
|
|
16
|
+
table_layout?: ColumnLayout[];
|
|
17
|
+
}
|
|
18
|
+
export function SelectionActions({ table_layout }: SelectionActionsProps) {
|
|
13
19
|
const selection = useDocumentSelection();
|
|
14
20
|
const size = selection.size();
|
|
15
21
|
const plural = size > 1 ? "s" : "";
|
|
@@ -22,7 +28,7 @@ export function SelectionActions() {
|
|
|
22
28
|
};
|
|
23
29
|
|
|
24
30
|
return (
|
|
25
|
-
<ObjectsActionContextProvider>
|
|
31
|
+
<ObjectsActionContextProvider table_layout={table_layout}>
|
|
26
32
|
<div className="flex items-center gap-x-2">
|
|
27
33
|
{hasSelection && !hasSingleSelection &&
|
|
28
34
|
<div className="flex items-center gap-x-1 shrink-0">
|
|
@@ -54,6 +60,7 @@ function ActionsWrapper({ }: ActionsWrapperProps) {
|
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
export function UploadObjectsButton({ collectionId, allowFolders = true }: { collectionId?: string, allowFolders?: boolean }) {
|
|
63
|
+
const { t } = useUITranslation();
|
|
57
64
|
const [files, setFiles] = useState<File[]>([]);
|
|
58
65
|
const [isOpen, setIsOpen] = useState(false);
|
|
59
66
|
|
|
@@ -64,7 +71,7 @@ export function UploadObjectsButton({ collectionId, allowFolders = true }: { col
|
|
|
64
71
|
|
|
65
72
|
return (
|
|
66
73
|
<>
|
|
67
|
-
<Button onClick={() => setIsOpen(true)}>
|
|
74
|
+
<Button onClick={() => setIsOpen(true)}>{t('store.upload')}</Button>
|
|
68
75
|
<DocumentUploadModal
|
|
69
76
|
collectionId={collectionId ?? ''}
|
|
70
77
|
isOpen={isOpen}
|
|
@@ -85,13 +92,14 @@ export function UploadObjectsButton({ collectionId, allowFolders = true }: { col
|
|
|
85
92
|
|
|
86
93
|
function StartWorkflowButton() {
|
|
87
94
|
const ctx = useObjectsActionContext();
|
|
95
|
+
const { t } = useUITranslation();
|
|
88
96
|
|
|
89
97
|
const selection = ctx.params.selection;
|
|
90
98
|
const hasSelection = selection.hasSelection();
|
|
91
99
|
|
|
92
100
|
return (
|
|
93
101
|
hasSelection &&
|
|
94
|
-
<Button onClick={() => ctx.run(StartWorkflowAction.id)}>
|
|
102
|
+
<Button onClick={() => ctx.run(StartWorkflowAction.id)}>{t('store.actions.startWorkflow')}</Button>
|
|
95
103
|
)
|
|
96
104
|
}
|
|
97
105
|
function optionLayout(option: ObjectsActionSpec) {
|
|
@@ -134,7 +142,7 @@ function PopoverBody({ executeAction, selection }: PopoverBodyProps) {
|
|
|
134
142
|
executeAction(action);
|
|
135
143
|
}
|
|
136
144
|
|
|
137
|
-
const _selection = selection?.hasSelection() ? context.actions.filter(action => !action.hideInList) : [ExportPropertiesAction];
|
|
145
|
+
const _selection = selection?.hasSelection() ? context.actions.filter((action: ObjectsActionSpec) => !action.hideInList) : [ExportPropertiesAction];
|
|
138
146
|
|
|
139
147
|
return (
|
|
140
148
|
<div className="rounded-md shadow-md py-2">
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { Button, DialogDescription, Heading,
|
|
1
|
+
import { Button, DialogDescription, Heading, Modal, ModalBody, ModalFooter, ModalTitle, Portal, Tabs, TabsBar, TabsPanel, useToast } from "@vertesia/ui/core";
|
|
2
2
|
import { useUserSession } from "@vertesia/ui/session";
|
|
3
3
|
import { useCallback, useState } from "react";
|
|
4
|
+
import { useUITranslation } from '../../../../../i18n/index.js';
|
|
5
|
+
import { i18nInstance, NAMESPACE } from '../../../../../i18n/instance.js';
|
|
4
6
|
import { CreateCollectionForm, SelectCollection } from "../../../collections";
|
|
5
|
-
import { useObjectsActionCallback } from "../
|
|
7
|
+
import { useObjectsActionCallback } from "../ObjectsActionHooks";
|
|
6
8
|
import { ActionComponentTypeProps, ObjectsActionSpec } from "../ObjectsActionSpec";
|
|
7
9
|
|
|
8
10
|
export function AddToCollectionActionComponent({ action, objectIds }: ActionComponentTypeProps) {
|
|
@@ -25,10 +27,11 @@ export function AddToCollectionActionComponent({ action, objectIds }: ActionComp
|
|
|
25
27
|
</Portal>;
|
|
26
28
|
}
|
|
27
29
|
|
|
30
|
+
const t = i18nInstance.getFixedT(null, NAMESPACE);
|
|
28
31
|
export const AddToCollectionAction: ObjectsActionSpec = {
|
|
29
32
|
id: "addToCollection",
|
|
30
|
-
name: '
|
|
31
|
-
description: '
|
|
33
|
+
name: t('store.actions.addToCollection'),
|
|
34
|
+
description: t('store.actions.addToCollectionDesc'),
|
|
32
35
|
confirm: false,
|
|
33
36
|
component: AddToCollectionActionComponent,
|
|
34
37
|
}
|
|
@@ -40,13 +43,14 @@ interface SelectCollectionModalProps {
|
|
|
40
43
|
objectIds: string[];
|
|
41
44
|
}
|
|
42
45
|
function SelectCollectionModal({ isOpen, onClose, objectIds }: SelectCollectionModalProps) {
|
|
46
|
+
const { t } = useUITranslation();
|
|
43
47
|
return (
|
|
44
48
|
<Modal isOpen={isOpen} onClose={onClose} className="max-w-lg w-full min-w-0 overflow-hidden">
|
|
45
49
|
<ModalTitle className="flex flex-col min-w-0 overflow-hidden">
|
|
46
|
-
|
|
50
|
+
{t('store.actions.addToCollectionTitle')}
|
|
47
51
|
</ModalTitle>
|
|
48
52
|
<DialogDescription className="min-w-0 overflow-hidden">
|
|
49
|
-
|
|
53
|
+
{t('store.actions.addToCollectionBody')}
|
|
50
54
|
</DialogDescription>
|
|
51
55
|
<div className="min-w-0 max-w-full overflow-hidden">
|
|
52
56
|
<AddToCollectionForm onClose={onClose} objectIds={objectIds} />
|
|
@@ -60,6 +64,7 @@ interface AddToCollectionFormProps {
|
|
|
60
64
|
onClose: () => void;
|
|
61
65
|
}
|
|
62
66
|
function AddToCollectionForm({ onClose, objectIds }: AddToCollectionFormProps) {
|
|
67
|
+
const { t } = useUITranslation();
|
|
63
68
|
const toast = useToast();
|
|
64
69
|
const { client } = useUserSession();
|
|
65
70
|
const [selectedCollectionId, setSelectedCollectionId] = useState<string>();
|
|
@@ -69,17 +74,17 @@ function AddToCollectionForm({ onClose, objectIds }: AddToCollectionFormProps) {
|
|
|
69
74
|
}
|
|
70
75
|
client.store.collections.addMembers(collectionId, objectIds).then(() => {
|
|
71
76
|
toast({
|
|
72
|
-
title: '
|
|
77
|
+
title: t('store.actions.addToCollectionSuccess'),
|
|
73
78
|
status: 'success',
|
|
74
|
-
description:
|
|
79
|
+
description: t('store.actions.addToCollectionSuccessDesc', { count: objectIds.length }),
|
|
75
80
|
duration: 3000
|
|
76
81
|
});
|
|
77
82
|
onClose();
|
|
78
83
|
}).catch(() => {
|
|
79
84
|
toast({
|
|
80
|
-
title: '
|
|
85
|
+
title: t('store.actions.addToCollectionFailure'),
|
|
81
86
|
status: 'error',
|
|
82
|
-
description:
|
|
87
|
+
description: t('store.actions.addToCollectionFailureDesc'),
|
|
83
88
|
duration: 5000
|
|
84
89
|
});
|
|
85
90
|
});
|
|
@@ -98,10 +103,10 @@ function AddToCollectionForm({ onClose, objectIds }: AddToCollectionFormProps) {
|
|
|
98
103
|
const tabs = [
|
|
99
104
|
{
|
|
100
105
|
name: 'select',
|
|
101
|
-
label: '
|
|
106
|
+
label: t('store.actions.selectCollection'),
|
|
102
107
|
content: (
|
|
103
108
|
<div className="p-4 min-w-0 max-w-full overflow-hidden">
|
|
104
|
-
<Heading level={5}>
|
|
109
|
+
<Heading level={5}>{t('store.actions.chooseExistingCollections')}</Heading>
|
|
105
110
|
<ModalBody className="min-w-0 max-w-full overflow-hidden">
|
|
106
111
|
<div className="mb-4 min-w-0 max-w-full overflow-hidden">
|
|
107
112
|
<SelectCollection onChange={onCollectionChange} value={selectedCollectionId} />
|
|
@@ -112,7 +117,7 @@ function AddToCollectionForm({ onClose, objectIds }: AddToCollectionFormProps) {
|
|
|
112
117
|
isDisabled={!selectedCollectionId}
|
|
113
118
|
onClick={() => selectedCollectionId && onAddToCollection({ collectionId: selectedCollectionId })}
|
|
114
119
|
>
|
|
115
|
-
|
|
120
|
+
{t('store.actions.addToCollectionButton')}
|
|
116
121
|
</Button>
|
|
117
122
|
</ModalFooter>
|
|
118
123
|
</div>
|
|
@@ -120,7 +125,7 @@ function AddToCollectionForm({ onClose, objectIds }: AddToCollectionFormProps) {
|
|
|
120
125
|
},
|
|
121
126
|
{
|
|
122
127
|
name: 'create',
|
|
123
|
-
label: '
|
|
128
|
+
label: t('store.actions.createNew'),
|
|
124
129
|
content:
|
|
125
130
|
<div className="p-4">
|
|
126
131
|
<CreateCollectionForm onClose={onClose} onAddToCollection={(id: string) => onAddToCollection({ collectionId: id })} redirect={false} />
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { useToast } from "@vertesia/ui/core";
|
|
2
2
|
import { useUserSession } from "@vertesia/ui/session";
|
|
3
3
|
import { useCallback, useState } from "react";
|
|
4
|
+
import { useUITranslation } from '../../../../../i18n/index.js';
|
|
5
|
+
import { i18nInstance, NAMESPACE } from '../../../../../i18n/instance.js';
|
|
4
6
|
import { SelectContentTypeModal } from "../../../types";
|
|
5
|
-
import { useObjectsActionCallback } from "../
|
|
7
|
+
import { useObjectsActionCallback } from "../ObjectsActionHooks";
|
|
6
8
|
import { ActionComponentTypeProps, ObjectsActionSpec } from "../ObjectsActionSpec";
|
|
7
9
|
|
|
8
10
|
export function ChangeTypeActionComponent({ action, objectIds, children }: ActionComponentTypeProps) {
|
|
11
|
+
const { t } = useUITranslation();
|
|
9
12
|
const { store } = useUserSession();
|
|
10
13
|
const toast = useToast();
|
|
11
14
|
const [isOpen, setOpen] = useState(false);
|
|
@@ -33,14 +36,14 @@ export function ChangeTypeActionComponent({ action, objectIds, children }: Actio
|
|
|
33
36
|
}).then((r) => {
|
|
34
37
|
toast({
|
|
35
38
|
status: 'success',
|
|
36
|
-
title: '
|
|
39
|
+
title: t('store.actions.changeType'),
|
|
37
40
|
description: `Change the type of ${objectIds.length} objects is ${r.status === 'in_progress' ? 'in progress' : 'completed'}`,
|
|
38
41
|
duration: 2000
|
|
39
42
|
});
|
|
40
43
|
}).catch(err => {
|
|
41
44
|
toast({
|
|
42
45
|
status: 'error',
|
|
43
|
-
title: '
|
|
46
|
+
title: t('store.actions.errorChangingType'),
|
|
44
47
|
description: err.message,
|
|
45
48
|
duration: 5000
|
|
46
49
|
});
|
|
@@ -63,10 +66,11 @@ export function ChangeTypeActionComponent({ action, objectIds, children }: Actio
|
|
|
63
66
|
)
|
|
64
67
|
}
|
|
65
68
|
|
|
69
|
+
const t = i18nInstance.getFixedT(null, NAMESPACE);
|
|
66
70
|
export const ChangeTypeAction: ObjectsActionSpec = {
|
|
67
71
|
id: "changeType",
|
|
68
|
-
name: '
|
|
69
|
-
description: '
|
|
72
|
+
name: t('store.actions.changeContentType'),
|
|
73
|
+
description: t('store.actions.changeContentTypeDesc'),
|
|
70
74
|
confirm: false,
|
|
71
75
|
component: ChangeTypeActionComponent,
|
|
72
76
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ConfirmModal } from "@vertesia/ui/core";
|
|
2
2
|
import { useCallback, useState } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { useUITranslation } from '../../../../../i18n/index.js';
|
|
4
|
+
import { ObjectsActionCallback, useObjectsActionCallback } from '../ObjectsActionHooks';
|
|
4
5
|
import { ObjectsActionParams, ObjectsActionSpec } from "../ObjectsActionSpec";
|
|
5
6
|
|
|
6
7
|
interface ObjectsActionComponentProps {
|
|
@@ -15,7 +16,7 @@ interface ObjectsActionComponentProps {
|
|
|
15
16
|
* @returns
|
|
16
17
|
*/
|
|
17
18
|
export default function ConfirmAction({ action, callback, children }: ObjectsActionComponentProps) {
|
|
18
|
-
|
|
19
|
+
const { t } = useUITranslation();
|
|
19
20
|
const [showConfirmModal, setShowConfirmModal] = useState(false);
|
|
20
21
|
const confirmationText = action.confirmationText || `Are you sure you want to ${action.name}?`;
|
|
21
22
|
|
|
@@ -38,7 +39,7 @@ export default function ConfirmAction({ action, callback, children }: ObjectsAct
|
|
|
38
39
|
return (
|
|
39
40
|
<>
|
|
40
41
|
{children}
|
|
41
|
-
<ConfirmModal onConfirm={onConfirm} onCancel={() => setShowConfirmModal(false)} title={
|
|
42
|
+
<ConfirmModal onConfirm={onConfirm} onCancel={() => setShowConfirmModal(false)} title={t('store.actions.areYouSure')} content={confirmationText} isOpen={showConfirmModal} />
|
|
42
43
|
</>
|
|
43
44
|
);
|
|
44
45
|
|