@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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useUserSession } from '@vertesia/ui/session';
|
|
3
3
|
import { useState, useRef, useEffect } from 'react';
|
|
4
|
+
import { useUITranslation } from '../../../../i18n/index.js';
|
|
4
5
|
import { Button, Modal, ModalBody, ModalFooter, ModalTitle, useToast, useTheme } from '@vertesia/ui/core';
|
|
5
6
|
import { useNavigate } from "@vertesia/ui/router";
|
|
6
7
|
// Import Monaco Editor wrapper
|
|
@@ -10,6 +11,7 @@ import { SaveVersionConfirmModal } from './SaveVersionConfirmModal';
|
|
|
10
11
|
export function PropertiesEditorModal({ isOpen, onClose, object, refetch }) {
|
|
11
12
|
const { client, store } = useUserSession();
|
|
12
13
|
const toast = useToast();
|
|
14
|
+
const { t } = useUITranslation();
|
|
13
15
|
const { theme } = useTheme();
|
|
14
16
|
const navigate = useNavigate();
|
|
15
17
|
const [isLoading, setIsLoading] = useState(false);
|
|
@@ -70,8 +72,8 @@ export function PropertiesEditorModal({ isOpen, onClose, object, refetch }) {
|
|
|
70
72
|
catch (err) {
|
|
71
73
|
toast({
|
|
72
74
|
status: 'error',
|
|
73
|
-
title: '
|
|
74
|
-
description: '
|
|
75
|
+
title: t('store.invalidJson'),
|
|
76
|
+
description: t('store.pleaseFixJsonSyntax'),
|
|
75
77
|
duration: 5000
|
|
76
78
|
});
|
|
77
79
|
}
|
|
@@ -99,8 +101,8 @@ export function PropertiesEditorModal({ isOpen, onClose, object, refetch }) {
|
|
|
99
101
|
}
|
|
100
102
|
toast({
|
|
101
103
|
status: 'success',
|
|
102
|
-
title: '
|
|
103
|
-
description: '
|
|
104
|
+
title: t('store.newVersionCreated'),
|
|
105
|
+
description: t('store.newVersionCreatedDesc'),
|
|
104
106
|
duration: 2000
|
|
105
107
|
});
|
|
106
108
|
// Close modals
|
|
@@ -113,8 +115,8 @@ export function PropertiesEditorModal({ isOpen, onClose, object, refetch }) {
|
|
|
113
115
|
navigate(`/objects/${response.id}`);
|
|
114
116
|
toast({
|
|
115
117
|
status: 'info',
|
|
116
|
-
title: '
|
|
117
|
-
description: versionLabel ?
|
|
118
|
+
title: t('store.viewingNewVersion'),
|
|
119
|
+
description: versionLabel ? t('store.viewingVersionLabel', { label: versionLabel }) : t('store.viewingNewVersionDefault'),
|
|
118
120
|
duration: 3000
|
|
119
121
|
});
|
|
120
122
|
}, 100);
|
|
@@ -127,8 +129,8 @@ export function PropertiesEditorModal({ isOpen, onClose, object, refetch }) {
|
|
|
127
129
|
});
|
|
128
130
|
toast({
|
|
129
131
|
status: 'success',
|
|
130
|
-
title: '
|
|
131
|
-
description: '
|
|
132
|
+
title: t('store.propertiesUpdated'),
|
|
133
|
+
description: t('store.propertiesUpdatedDesc'),
|
|
132
134
|
duration: 2000
|
|
133
135
|
});
|
|
134
136
|
if (refetch) {
|
|
@@ -141,8 +143,8 @@ export function PropertiesEditorModal({ isOpen, onClose, object, refetch }) {
|
|
|
141
143
|
catch (error) {
|
|
142
144
|
toast({
|
|
143
145
|
status: 'error',
|
|
144
|
-
title: '
|
|
145
|
-
description: error.message || '
|
|
146
|
+
title: t('store.errorUpdatingProperties'),
|
|
147
|
+
description: error.message || t('store.errorUpdatingPropertiesDefault'),
|
|
146
148
|
duration: 5000
|
|
147
149
|
});
|
|
148
150
|
setIsLoading(false);
|
|
@@ -152,6 +154,6 @@ export function PropertiesEditorModal({ isOpen, onClose, object, refetch }) {
|
|
|
152
154
|
function handleCancelConfirmation() {
|
|
153
155
|
setShowConfirmation(false);
|
|
154
156
|
}
|
|
155
|
-
return (_jsxs(_Fragment, { children: [_jsxs(Modal, { isOpen: isOpen, onClose: onClose, className: "sm:max-w-[90%] md:max-w-[80%] lg:max-w-[75%] xl:max-w-[70%]", children: [_jsx(ModalTitle, { children:
|
|
157
|
+
return (_jsxs(_Fragment, { children: [_jsxs(Modal, { isOpen: isOpen, onClose: onClose, className: "sm:max-w-[90%] md:max-w-[80%] lg:max-w-[75%] xl:max-w-[70%]", children: [_jsx(ModalTitle, { children: t('store.editProperties') }), _jsxs(ModalBody, { children: [_jsxs("div", { className: "mb-2 text-sm text-gray-500", children: [object.type?.name ? (_jsxs("span", { children: ["Editing properties for object type: ", _jsx("strong", { children: object.type.name })] })) : (_jsx("span", { children: t('store.editingGenericDocument') })), jsonSchema && (_jsx("span", { className: "ml-2 text-green-600", children: "(JSON schema validation enabled)" }))] }), _jsx("div", { className: "h-[75vh] border rounded-md overflow-hidden", children: _jsx(MonacoEditor, { value: propertiesJson, language: "json", editorRef: editorRef, onChange: (update) => handleEditorChange(update.state.doc.toString()), beforeMount: beforeMount, theme: theme === 'dark' ? 'vs-dark' : 'vs' }) })] }), _jsxs(ModalFooter, { children: [_jsx(Button, { variant: "secondary", onClick: onClose, children: "Cancel" }), _jsx(Button, { variant: "primary", onClick: handleSave, children: "Save Changes" })] })] }), _jsx(SaveVersionConfirmModal, { isOpen: showConfirmation, onClose: handleCancelConfirmation, onConfirm: saveProperties, isLoading: isLoading })] }));
|
|
156
158
|
}
|
|
157
159
|
//# sourceMappingURL=PropertiesEditorModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertiesEditorModal.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/PropertiesEditorModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EACH,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,UAAU,EACV,QAAQ,EACR,QAAQ,EACX,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,+BAA+B;AAC/B,OAAO,EAAE,YAAY,EAAc,MAAM,sBAAsB,CAAC;AAEhE,iCAAiC;AACjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AASpE,MAAM,UAAU,qBAAqB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAA8B;IAClG,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,cAAc,EAAE,CAAC;IAC3C,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,EAAE,C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AG,CAAC,MAAsC,EAAE,EAAE;QAC3D,IAAI,UAAU,EAAE,CAAC;YACb,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,qBAAqB,CAAC;gBACrD,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE;oBACL;wBACI,GAAG,EAAE,oCAAoC;wBACzC,SAAS,EAAE,CAAC,GAAG,CAAC;wBAChB,MAAM,EAAE,UAAU;qBACrB;iBACJ;aACJ,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,4CAA4C;IAC5C,SAAS,UAAU;QACf,IAAI,CAAC,SAAS,CAAC,OAAO;YAAE,OAAO;QAE/B,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QAEjD,IAAI,CAAC;YACD,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;YAC3C,mBAAmB,CAAC,UAAU,CAAC,CAAC;YAChC,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAC9B,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,KAAK,CAAC;gBACF,MAAM,EAAE,OAAO;gBACf,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"PropertiesEditorModal.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/PropertiesEditorModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACH,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,UAAU,EACV,QAAQ,EACR,QAAQ,EACX,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,+BAA+B;AAC/B,OAAO,EAAE,YA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,EACxB,OAAO,EAAE,wBAAwB,EACjC,SAAS,EAAE,cAAc,EACzB,SAAS,EAAE,SAAS,GACtB,IACH,CACN,CAAC;AACN,CAAC"}
|
|
@@ -1,32 +1,29 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
|
-
import { Button, Modal, ModalBody, ModalFooter, ModalTitle, Input, RadioGroup,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
renderOption(item) {
|
|
12
|
-
return (_jsxs("div", { children: [_jsx("div", { className: "font-medium", children: item.label }), _jsx("p", { className: "text-sm text-gray-500 dark:text-gray-400 mt-1", children: item.description })] }));
|
|
13
|
-
}
|
|
3
|
+
import { Button, Modal, ModalBody, ModalFooter, ModalTitle, Input, RadioGroup, RadioGroupAdapter, FormItem } from '@vertesia/ui/core';
|
|
4
|
+
import { useUITranslation } from '@vertesia/ui/i18n';
|
|
5
|
+
class SaveOptionAdapter extends RadioGroupAdapter {
|
|
6
|
+
idOf(item) { return item.id; }
|
|
7
|
+
labelOf(item) { return item.label; }
|
|
8
|
+
descriptionOf(item) { return item.description; }
|
|
9
|
+
selectedClassName(_item) { return 'border-3 border-primary'; }
|
|
14
10
|
}
|
|
15
11
|
export function SaveVersionConfirmModal({ isOpen, onClose, onConfirm, isLoading, uploadedFileName }) {
|
|
12
|
+
const { t } = useUITranslation();
|
|
16
13
|
const saveOptions = [
|
|
17
14
|
{
|
|
18
15
|
id: "update",
|
|
19
|
-
label:
|
|
16
|
+
label: t('modal.saveVersion.updateCurrent'),
|
|
20
17
|
description: uploadedFileName
|
|
21
|
-
?
|
|
22
|
-
:
|
|
18
|
+
? t('modal.saveVersion.updateWithFileDescription')
|
|
19
|
+
: t('modal.saveVersion.updateDescription')
|
|
23
20
|
},
|
|
24
21
|
{
|
|
25
22
|
id: "new-version",
|
|
26
|
-
label:
|
|
23
|
+
label: t('modal.saveVersion.createNew'),
|
|
27
24
|
description: uploadedFileName
|
|
28
|
-
?
|
|
29
|
-
:
|
|
25
|
+
? t('modal.saveVersion.createWithFileDescription')
|
|
26
|
+
: t('modal.saveVersion.createDescription')
|
|
30
27
|
}
|
|
31
28
|
];
|
|
32
29
|
// Default to "create new version" when replacing a file, "update current version" when editing properties
|
|
@@ -48,6 +45,6 @@ export function SaveVersionConfirmModal({ isOpen, onClose, onConfirm, isLoading,
|
|
|
48
45
|
const handleConfirm = async () => {
|
|
49
46
|
await onConfirm(createVersion, createVersion ? versionLabel : undefined);
|
|
50
47
|
};
|
|
51
|
-
return (_jsxs(Modal, { isOpen: isOpen, onClose: onClose, className: "sm:max-w-md", children: [_jsx(ModalTitle, { children:
|
|
48
|
+
return (_jsxs(Modal, { isOpen: isOpen, onClose: onClose, className: "sm:max-w-md", children: [_jsx(ModalTitle, { children: t('modal.saveChanges') }), _jsx(ModalBody, { children: _jsxs("div", { className: "space-y-4", children: [uploadedFileName && (_jsx("div", { className: "mb-4 p-3 bg-blue-50 dark:bg-blue-900/20 rounded-md", children: _jsxs("p", { className: "text-sm text-blue-700 dark:text-blue-300 font-medium", children: [t('modal.saveVersion.replaceFile'), " ", _jsx("span", { className: "font-bold", children: uploadedFileName })] }) })), _jsx("p", { className: "text-sm text-mixer-muted/5", children: t('modal.saveVersion.howToSave') }), _jsx(RadioGroup, { adapter: optionAdapter, options: saveOptions, selected: selectedOption, onSelect: handleOptionChange }), createVersion && (_jsx(FormItem, { label: t('modal.saveVersion.versionLabel'), description: t('modal.saveVersion.versionLabelDescription'), className: "mt-3 pl-8", children: _jsx(Input, { value: versionLabel, onChange: setVersionLabel, placeholder: t('modal.saveVersion.versionLabelPlaceholder'), className: "w-full" }) }))] }) }), _jsxs(ModalFooter, { children: [_jsx(Button, { variant: "secondary", onClick: onClose, disabled: isLoading, children: t('modal.cancel') }), _jsx(Button, { variant: "primary", onClick: handleConfirm, isLoading: isLoading, children: t('modal.save') })] })] }));
|
|
52
49
|
}
|
|
53
50
|
//# sourceMappingURL=SaveVersionConfirmModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveVersionConfirmModal.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/SaveVersionConfirmModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EACH,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,UAAU,EACV,KAAK,EACL,UAAU,EACV,
|
|
1
|
+
{"version":3,"file":"SaveVersionConfirmModal.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/SaveVersionConfirmModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EACH,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,UAAU,EACV,KAAK,EACL,UAAU,EACV,iBAAiB,EACjB,QAAQ,EACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAiBrD,MAAM,iBAAkB,SAAQ,iBAAiC;IAC7D,IAAI,CAAC,IAAoB,IAAY,OAAO,IAAI,CAAC,EAAE,CAAA,CAAC,CAAC;IACrD,OAAO,CAAC,IAAoB,IAAY,OAAO,IAAI,CAAC,KAAK,CAAA,CAAC,CAAC;IAC3D,aAAa,CAAC,IAAoB,IAAqB,OAAO,IAAI,CAAC,WAAW,CAAA,CAAC,CAAC;IAChF,iBAAiB,CAAC,KAAqB,IAAY,OAAO,yBAAyB,CAAA,CAAC,CAAC;CACxF;AAED,MAAM,UAAU,uBAAuB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB,EAAgC;IAC7H,MAAM,EAAE,CAAC,EAAE,GAAG,gBAA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AAa,EACtB,SAAS,EAAE,SAAS,YAEnB,CAAC,CAAC,YAAY,CAAC,GACX,IACC,IACV,CACX,CAAC;AACN,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useRef, useState } from "react";
|
|
2
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { RefreshCw } from "lucide-react";
|
|
5
5
|
import { DocumentsFacetsNav } from "../../../facets";
|
|
@@ -8,6 +8,7 @@ import { useDocumentSearch, useWatchDocumentSearchFacets, useWatchDocumentSearch
|
|
|
8
8
|
import { DocumentSearchProvider } from "../search/DocumentSearchProvider";
|
|
9
9
|
import { ContentDispositionButton } from "./ContentDispositionButton";
|
|
10
10
|
import { Button, ErrorBox, Spinner, useIntersectionObserver } from "@vertesia/ui/core";
|
|
11
|
+
import { useUITranslation } from '../../../../i18n/index.js';
|
|
11
12
|
const layout = [
|
|
12
13
|
{ "name": "Name", "field": "properties.title", "type": "string", "fallback": "name" },
|
|
13
14
|
{ "name": "Type", "field": "type.name", "type": "string" },
|
|
@@ -15,13 +16,15 @@ const layout = [
|
|
|
15
16
|
{ "name": "Created At", "field": "created_at", "type": "date" }
|
|
16
17
|
];
|
|
17
18
|
const LAST_DISPLAYED_VIEW = "vertesia.content_store.lastDisplayedView";
|
|
18
|
-
export function SelectDocument({ onChange }) {
|
|
19
|
+
export function SelectDocument({ onChange, selectedIds }) {
|
|
19
20
|
const onRowClick = (selected) => {
|
|
20
21
|
onChange(selected || undefined);
|
|
21
22
|
};
|
|
22
|
-
return (_jsx(DocumentSearchProvider, { children: _jsx(SelectDocumentImpl, { onRowClick: onRowClick }) }));
|
|
23
|
+
return (_jsx(DocumentSearchProvider, { children: _jsx(SelectDocumentImpl, { onRowClick: onRowClick, selectedIds: selectedIds }) }));
|
|
23
24
|
}
|
|
24
|
-
function SelectDocumentImpl({ onRowClick }) {
|
|
25
|
+
function SelectDocumentImpl({ onRowClick, selectedIds }) {
|
|
26
|
+
const { t } = useUITranslation();
|
|
27
|
+
const highlightRow = useCallback((item) => !!selectedIds?.has(item.id), [selectedIds]);
|
|
25
28
|
const [isReady, setIsReady] = useState(false);
|
|
26
29
|
const [isGridView, setIsGridView] = useState(localStorage.getItem(LAST_DISPLAYED_VIEW) === "grid");
|
|
27
30
|
const { search, isLoading, error, objects, hasMore } = useWatchDocumentSearchResult();
|
|
@@ -48,8 +51,8 @@ function SelectDocumentImpl({ onRowClick }) {
|
|
|
48
51
|
search.search().then(() => setIsReady(true));
|
|
49
52
|
};
|
|
50
53
|
if (error) {
|
|
51
|
-
return _jsx(ErrorBox, { title:
|
|
54
|
+
return _jsx(ErrorBox, { title: t('store.searchFailed'), children: error.message });
|
|
52
55
|
}
|
|
53
|
-
return (_jsxs("div", { className: "flex flex-col gap-2 h-full w-full", children: [_jsxs("div", { className: "flex justify-between items-center flex-shrink-0", children: [_jsx(DocumentsFacetsNav, { facets: facets, search: facetSearch }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Button, { variant: "outline", onClick: handleRefetch, alt: "Refresh", children: _jsx(RefreshCw, { size: 16 }) }), _jsx(ContentDispositionButton, { onUpdate: setIsGridView })] })] }), _jsxs("div", { className: "@container flex-1 overflow-y-auto", children: [_jsx(DocumentTable, { objects: objects || [], isLoading: false, layout: layout, onRowClick: onRowClick, isGridView: isGridView }), _jsx("div", { ref: loadMoreRef, className: "h-4 w-full" }), _jsx("div", { className: clsx("bg-white dark:bg-gray-800 opacity-80 absolute inset-0 z-50 flex justify-center items-center rounded", isLoading ? "block" : "hidden"), children: _jsx(Spinner, { size: "xl" }) })] })] }));
|
|
56
|
+
return (_jsxs("div", { className: "flex flex-col gap-2 h-full w-full", children: [_jsxs("div", { className: "flex justify-between items-center flex-shrink-0", children: [_jsx(DocumentsFacetsNav, { facets: facets, search: facetSearch }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Button, { variant: "outline", onClick: handleRefetch, alt: "Refresh", children: _jsx(RefreshCw, { size: 16 }) }), _jsx(ContentDispositionButton, { onUpdate: setIsGridView })] })] }), _jsxs("div", { className: "@container flex-1 overflow-y-auto", children: [_jsx(DocumentTable, { objects: objects || [], isLoading: false, layout: layout, onRowClick: onRowClick, highlightRow: selectedIds?.size ? highlightRow : undefined, isGridView: isGridView }), _jsx("div", { ref: loadMoreRef, className: "h-4 w-full" }), _jsx("div", { className: clsx("bg-white dark:bg-gray-800 opacity-80 absolute inset-0 z-50 flex justify-center items-center rounded", isLoading ? "block" : "hidden"), children: _jsx(Spinner, { size: "xl" }) })] })] }));
|
|
54
57
|
}
|
|
55
58
|
//# sourceMappingURL=SelectDocument.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectDocument.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/SelectDocument.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SelectDocument.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/SelectDocument.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAChI,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4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AAC;QACR,OAAO,KAAC,QAAQ,IAAC,KAAK,EAAE,CAAC,CAAC,oBAAoB,CAAC,YAAG,KAAK,CAAC,OAAO,GAAY,CAAA;IAC/E,CAAC;IAED,OAAO,CACH,eAAK,SAAS,EAAC,mCAAmC,aAC9C,eAAK,SAAS,EAAC,iDAAiD,aAC5D,KAAC,kBAAkB,IAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAI,EAC3D,eAAK,SAAS,EAAC,yBAAyB,aACpC,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,aAAa,EAAE,GAAG,EAAC,SAAS,YAC3D,KAAC,SAAS,IAAC,IAAI,EAAE,EAAE,GAAI,GAClB,EACT,KAAC,wBAAwB,IAAC,QAAQ,EAAE,aAAa,GAAI,IACnD,IACJ,EACN,eAAK,SAAS,EAAC,mCAAmC,aAE9C,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,GAAI,EAGvL,cAAK,GAAG,EAAE,WAAW,EAAE,SAAS,EAAC,YAAY,GAAG,EAGhD,cACI,SAAS,EAAE,IAAI,CACX,qGAAqG,EACrG,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CACjC,YAED,KAAC,OAAO,IAAC,IAAI,EAAC,IAAI,GAAG,GACnB,IACJ,IACJ,CACT,CAAA;AACL,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useRef, useCallback } from 'react';
|
|
3
|
+
import { Button, useToast, useTheme } from '@vertesia/ui/core';
|
|
4
|
+
import { useUserSession } from '@vertesia/ui/session';
|
|
5
|
+
import { useNavigate } from '@vertesia/ui/router';
|
|
6
|
+
import { MonacoEditor } from '@vertesia/ui/widgets';
|
|
7
|
+
import { useUITranslation } from '../../../../i18n/index.js';
|
|
8
|
+
import { SaveVersionConfirmModal } from './SaveVersionConfirmModal.js';
|
|
9
|
+
function getMonacoLanguage(contentType) {
|
|
10
|
+
switch (contentType) {
|
|
11
|
+
case 'text/markdown':
|
|
12
|
+
return 'markdown';
|
|
13
|
+
case 'application/json':
|
|
14
|
+
return 'json';
|
|
15
|
+
case 'application/xml':
|
|
16
|
+
case 'text/xml':
|
|
17
|
+
return 'xml';
|
|
18
|
+
default:
|
|
19
|
+
return 'plaintext';
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export function TextEditorPanel({ object, text, onClose, onSaved }) {
|
|
23
|
+
const { store } = useUserSession();
|
|
24
|
+
const toast = useToast();
|
|
25
|
+
const { t } = useUITranslation();
|
|
26
|
+
const { theme } = useTheme();
|
|
27
|
+
const navigate = useNavigate();
|
|
28
|
+
const editorRef = useRef(undefined);
|
|
29
|
+
const [isDirty, setIsDirty] = useState(false);
|
|
30
|
+
const [isSaving, setIsSaving] = useState(false);
|
|
31
|
+
const [showConfirmation, setShowConfirmation] = useState(false);
|
|
32
|
+
const language = getMonacoLanguage(object.content?.type);
|
|
33
|
+
const handleEditorChange = useCallback(() => {
|
|
34
|
+
if (!isDirty)
|
|
35
|
+
setIsDirty(true);
|
|
36
|
+
}, [isDirty]);
|
|
37
|
+
function handleSave() {
|
|
38
|
+
if (!editorRef.current)
|
|
39
|
+
return;
|
|
40
|
+
setShowConfirmation(true);
|
|
41
|
+
}
|
|
42
|
+
async function saveText(createVersion, versionLabel) {
|
|
43
|
+
if (!editorRef.current)
|
|
44
|
+
return;
|
|
45
|
+
const editorText = editorRef.current.getValue();
|
|
46
|
+
const contentType = object.content?.type || 'text/plain';
|
|
47
|
+
const fileName = object.content?.name || 'content.txt';
|
|
48
|
+
try {
|
|
49
|
+
setIsSaving(true);
|
|
50
|
+
const blob = new Blob([editorText], { type: contentType });
|
|
51
|
+
const file = new File([blob], fileName, { type: contentType });
|
|
52
|
+
const response = await store.objects.update(object.id, {
|
|
53
|
+
content: file,
|
|
54
|
+
}, {
|
|
55
|
+
createRevision: createVersion,
|
|
56
|
+
revisionLabel: versionLabel,
|
|
57
|
+
ifMatch: object.content?.etag,
|
|
58
|
+
});
|
|
59
|
+
toast({
|
|
60
|
+
status: 'success',
|
|
61
|
+
title: t('store.textSaved'),
|
|
62
|
+
duration: 2000,
|
|
63
|
+
});
|
|
64
|
+
setShowConfirmation(false);
|
|
65
|
+
if (createVersion && response.id !== object.id) {
|
|
66
|
+
onClose();
|
|
67
|
+
setTimeout(() => {
|
|
68
|
+
navigate(`/objects/${response.id}`);
|
|
69
|
+
}, 100);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
onSaved();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
catch (error) {
|
|
76
|
+
const is412 = error?.status === 412 || error?.message?.includes('412');
|
|
77
|
+
toast({
|
|
78
|
+
status: 'error',
|
|
79
|
+
title: t('store.errorSavingText'),
|
|
80
|
+
description: is412
|
|
81
|
+
? t('store.textConflict')
|
|
82
|
+
: (error.message || t('store.errorSavingTextDefault')),
|
|
83
|
+
duration: 5000,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
finally {
|
|
87
|
+
setIsSaving(false);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex items-center gap-2 px-2 py-1 shrink-0", children: [isDirty && (_jsx("span", { className: "text-xs text-attention", children: t('store.unsavedChanges') })), _jsx("div", { className: "flex-1" }), _jsx(Button, { variant: "ghost", size: "sm", onClick: onClose, disabled: isSaving, children: t('store.cancelEdit') }), _jsx(Button, { variant: "outline", size: "sm", onClick: handleSave, disabled: !isDirty, isLoading: isSaving, children: t('store.saveText') })] }), _jsx("div", { className: "flex-1 min-h-0 border rounded-md overflow-hidden mx-2 mb-2", children: _jsx(MonacoEditor, { value: text, language: language, editorRef: editorRef, onChange: handleEditorChange, theme: theme === 'dark' ? 'vs-dark' : 'vs', options: {
|
|
91
|
+
wordWrap: 'on',
|
|
92
|
+
minimap: { enabled: false },
|
|
93
|
+
lineNumbers: 'on',
|
|
94
|
+
scrollBeyondLastLine: false,
|
|
95
|
+
} }) }), _jsx(SaveVersionConfirmModal, { isOpen: showConfirmation, onClose: () => setShowConfirmation(false), onConfirm: saveText, isLoading: isSaving })] }));
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=TextEditorPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextEditorPanel.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/TextEditorPanel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAc,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AASvE,SAAS,iBAAiB,CAAC,WAAoB;IAC3C,QAAQ,WAAW,EAAE,CAAC;QAClB,KAAK,eAAe;YAChB,OAAO,UAAU,CAAC;QACtB,KAAK,kBAAkB;YACnB,OAAO,MAAM,CAAC;QAClB,KAAK,iBAAiB,CAAC;QACvB,KAAK,UAAU;YACX,OAAO,KAAK,CAAC;QACjB;YACI,OAAO,WAAW,CAAC;IAC3B,CAAC;AACL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,EAAE;wBAC3B,WAAW,EAAE,IAAI;wBACjB,oBAAoB,EAAE,KAAK;qBAC9B,GACH,GACA,EAEN,KAAC,uBAAuB,IACpB,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC,EACzC,SAAS,EAAE,QAAQ,EACnB,SAAS,EAAE,QAAQ,GACrB,IACH,CACN,CAAC;AACN,CAAC"}
|
|
@@ -4,10 +4,12 @@ import { SearchTypes, SupportedEmbeddingTypes } from '@vertesia/common';
|
|
|
4
4
|
import { Button, Checkbox, Input, Modal, ModalBody, ModalFooter, ModalTitle, NumberInput, useToast } from '@vertesia/ui/core';
|
|
5
5
|
import { useUserSession } from '@vertesia/ui/session';
|
|
6
6
|
import { Settings } from 'lucide-react';
|
|
7
|
+
import { useUITranslation } from '../../../../i18n/index.js';
|
|
7
8
|
const allTypes = Object.values(SearchTypes);
|
|
8
9
|
const embeddingTypes = Object.values(SupportedEmbeddingTypes);
|
|
9
10
|
export function VectorSearchWidget({ onChange, isLoading, refresh, searchTypes }) {
|
|
10
11
|
const { client, project } = useUserSession();
|
|
12
|
+
const { t } = useUITranslation();
|
|
11
13
|
const toast = useToast();
|
|
12
14
|
const [searchText, setSearchText] = useState(undefined);
|
|
13
15
|
const [config, setConfig] = useState(undefined);
|
|
@@ -85,6 +87,6 @@ export function VectorSearchWidget({ onChange, isLoading, refresh, searchTypes }
|
|
|
85
87
|
setSelectedTypes(prev => prev.filter(t => t !== type));
|
|
86
88
|
}
|
|
87
89
|
};
|
|
88
|
-
return (_jsxs("div", { className: "flex gap-1 items-center", children: [_jsx(Input, { placeholder:
|
|
90
|
+
return (_jsxs("div", { className: "flex gap-1 items-center", children: [_jsx(Input, { placeholder: t('store.searchPlaceholder'), value: searchText, onChange: setSearchText, onKeyDown: handleKeyPress, className: 'min-w-[200px]' }), _jsx(Button, { variant: "ghost", onClick: () => setShowSettings(true), alt: t('store.semanticSearchSettings'), className: "ml-1", children: _jsx(Settings, { size: 18 }) }), _jsxs(Modal, { isOpen: showSettings, onClose: () => setShowSettings(false), children: [_jsx(ModalTitle, { children: t('store.searchTypes') }), _jsx(ModalBody, { children: _jsxs("div", { className: "flex flex-col gap-2", children: [_jsxs("label", { className: "flex items-center gap-2", children: [_jsx(Checkbox, { checked: selectedTypes.includes(SearchTypes.full_text), onCheckedChange: handleCheckboxChange(SearchTypes.full_text) }), _jsx("span", { children: t('store.fullText') })] }), _jsx("div", { className: "font-semibold mt-2 mb-1", children: t('store.embeddings') }), embeddingTypes.map(type => (_jsxs("label", { className: "flex items-center gap-2", children: [_jsx(Checkbox, { checked: selectedTypes.includes(type), onCheckedChange: handleCheckboxChange(type) }), _jsx("span", { children: type.charAt(0).toUpperCase() + type.slice(1) })] }, type))), _jsxs("div", { className: "mt-3", children: [_jsx("span", { className: "mr-2", children: t('store.limit') }), _jsx(NumberInput, { type: "number", min: 1, value: limit, onChange: v => setLimit(Number(v ?? 100)), style: { width: 80 } })] })] }) }), _jsx(ModalFooter, { children: _jsx(Button, { variant: "outline", onClick: () => setShowSettings(false), children: t('store.close') }) })] }), _jsx(Button, { variant: "secondary", isLoading: isLoading, onClick: fireSearch, isDisabled: !isReady, alt: t('store.semanticSearch'), children: t('store.search') })] }));
|
|
89
91
|
}
|
|
90
92
|
//# sourceMappingURL=VectorSearchWidget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorSearchWidget.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/VectorSearchWidget.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAA4C,WAAW,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAClH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,M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E,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,sBAAsB,CAAC,YAAG,CAAC,CAAC,cAAc,CAAC,GAAU,IACvJ,CACT,CAAC;AACN,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MarkdownRenditionFormat, WorkflowExecutionStatus } from "@vertesia/common";
|
|
2
2
|
import { useUserSession } from "@vertesia/ui/session";
|
|
3
3
|
import { useCallback, useEffect, useState } from "react";
|
|
4
|
+
import { i18nInstance, NAMESPACE } from '../../../../i18n/instance.js';
|
|
4
5
|
// Maximum text size before cropping (128K characters)
|
|
5
6
|
const MAX_TEXT_DISPLAY_SIZE = 128 * 1024;
|
|
6
7
|
/**
|
|
@@ -122,6 +123,7 @@ export function usePdfProcessingStatus(objectId, shouldPoll) {
|
|
|
122
123
|
*/
|
|
123
124
|
export function useOfficePdfConversion(objectId, enabled) {
|
|
124
125
|
const { client } = useUserSession();
|
|
126
|
+
const t = i18nInstance.getFixedT(null, NAMESPACE);
|
|
125
127
|
const [pdfUrl, setPdfUrl] = useState();
|
|
126
128
|
const [isConverting, setIsConverting] = useState(false);
|
|
127
129
|
const [error, setError] = useState();
|
|
@@ -147,13 +149,13 @@ export function useOfficePdfConversion(objectId, enabled) {
|
|
|
147
149
|
setIsConverting(false);
|
|
148
150
|
}
|
|
149
151
|
else if (response.status === "failed") {
|
|
150
|
-
setError(
|
|
152
|
+
setError(t('store.pdfConversionFailed'));
|
|
151
153
|
setIsConverting(false);
|
|
152
154
|
}
|
|
153
155
|
}
|
|
154
156
|
catch (err) {
|
|
155
157
|
console.error("Failed to convert Office document to PDF:", err);
|
|
156
|
-
setError(
|
|
158
|
+
setError(t('store.failedToConvertToPdf'));
|
|
157
159
|
setIsConverting(false);
|
|
158
160
|
}
|
|
159
161
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useContentPanelHooks.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/useContentPanelHooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiD,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AACnI,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useContentPanelHooks.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/useContentPanelHooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiD,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AACnI,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEvE,sDAAsD;AACtD,MAAM,qBAAqB,GAAG,GAAG,GAAG,IAAI,CAAC;AAEzC;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,QAAgB,EAAE,WAAoB,EAAE,WAAW,GAAG,KAAK;IACrF,MAAM,EAAE,KAAK,EAAE,GAAG,cAAc,EAAE,CAAC;IAEnC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAqB,WAAW,CAAC,CAAC;IAC1E,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAqB,GAAG,EAAE;QACpE,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,qBAAqB,EAAE,CAAC;YAC5D,OAAO,WAAW,CAAC,SAAS,CAAC,CAAC,EAAE,qBAAqB,CAAC,CAAC;QAC3D,CAAC;QACD,OAAO,WAAW,CAAC;IACvB,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CA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,CAAC,KAAK,CAAC,2CAA2C,EAAE,GAAG,CAAC,CAAC;gBAChE,QAAQ,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC;gBAC1C,eAAe,CAAC,KAAK,CAAC,CAAC;YAC3B,CAAC;QACL,CAAC,CAAC;QAEF,MAAM,UAAU,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;IAE9C,OAAO;QACH,MAAM;QACN,YAAY;QACZ,KAAK;QACL,iBAAiB;KACpB,CAAC;AACN,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { useCallback, useState } from "react";
|
|
2
|
+
import { i18nInstance, NAMESPACE } from '../../../../i18n/instance.js';
|
|
2
3
|
/**
|
|
3
4
|
* Hook for downloading files from various sources.
|
|
4
5
|
* Handles GCS URIs (via client.files API), direct URLs, and markdown rendering.
|
|
5
6
|
*/
|
|
6
7
|
export function useDownloadFile({ client, toast }) {
|
|
8
|
+
const t = i18nInstance.getFixedT(null, NAMESPACE);
|
|
7
9
|
const [isDownloading, setIsDownloading] = useState(false);
|
|
8
10
|
/**
|
|
9
11
|
* Download a file from a content source URI using the files API to get a signed URL.
|
|
@@ -23,8 +25,8 @@ export function useDownloadFile({ client, toast }) {
|
|
|
23
25
|
catch (err) {
|
|
24
26
|
toast({
|
|
25
27
|
status: "error",
|
|
26
|
-
title:
|
|
27
|
-
description: err instanceof Error ? err.message :
|
|
28
|
+
title: t('store.downloadFailed'),
|
|
29
|
+
description: err instanceof Error ? err.message : t('store.failedToGetDownloadUrl'),
|
|
28
30
|
duration: 5000,
|
|
29
31
|
});
|
|
30
32
|
}
|
|
@@ -77,16 +79,16 @@ export function useDownloadFile({ client, toast }) {
|
|
|
77
79
|
}, filename);
|
|
78
80
|
toast({
|
|
79
81
|
status: "success",
|
|
80
|
-
title:
|
|
81
|
-
description:
|
|
82
|
+
title: t('store.documentExported'),
|
|
83
|
+
description: t('store.successfullyExportedTo', { format: options.format.toUpperCase() }),
|
|
82
84
|
duration: 2000,
|
|
83
85
|
});
|
|
84
86
|
}
|
|
85
87
|
catch (err) {
|
|
86
88
|
toast({
|
|
87
89
|
status: "error",
|
|
88
|
-
title:
|
|
89
|
-
description: err instanceof Error ? err.message :
|
|
90
|
+
title: t('store.exportFailed'),
|
|
91
|
+
description: err instanceof Error ? err.message : t('store.failedToExportDocument'),
|
|
90
92
|
duration: 5000,
|
|
91
93
|
});
|
|
92
94
|
}
|
|
@@ -110,16 +112,16 @@ export function useDownloadFile({ client, toast }) {
|
|
|
110
112
|
}, filename);
|
|
111
113
|
toast({
|
|
112
114
|
status: "success",
|
|
113
|
-
title:
|
|
114
|
-
description:
|
|
115
|
+
title: t('store.contentExported'),
|
|
116
|
+
description: t('store.successfullyExportedTo', { format: options.format.toUpperCase() }),
|
|
115
117
|
duration: 2000,
|
|
116
118
|
});
|
|
117
119
|
}
|
|
118
120
|
catch (err) {
|
|
119
121
|
toast({
|
|
120
122
|
status: "error",
|
|
121
|
-
title:
|
|
122
|
-
description: err instanceof Error ? err.message :
|
|
123
|
+
title: t('store.exportFailed'),
|
|
124
|
+
description: err instanceof Error ? err.message : t('store.failedToExportContent'),
|
|
123
125
|
duration: 5000,
|
|
124
126
|
});
|
|
125
127
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDownloadFile.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/useDownloadFile.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useDownloadFile.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/useDownloadFile.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,8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