@vertesia/ui 1.0.0-dev.20260305.083323Z → 1.0.0-dev.20260331.091034Z
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/core/components/SelectList.js +3 -1
- package/lib/esm/core/components/SelectList.js.map +1 -1
- package/lib/esm/core/components/SidePanel.js +2 -2
- package/lib/esm/core/components/SidePanel.js.map +1 -1
- package/lib/esm/core/components/index.js +0 -5
- package/lib/esm/core/components/index.js.map +1 -1
- package/lib/esm/core/components/shadcn/breadcrumb.js +11 -7
- package/lib/esm/core/components/shadcn/breadcrumb.js.map +1 -1
- package/lib/esm/core/components/shadcn/button.js +5 -3
- package/lib/esm/core/components/shadcn/button.js.map +1 -1
- package/lib/esm/core/components/shadcn/collaspible.js +14 -0
- package/lib/esm/core/components/shadcn/collaspible.js.map +1 -0
- package/lib/esm/core/components/shadcn/dropdown.js +64 -0
- package/lib/esm/core/components/shadcn/dropdown.js.map +1 -0
- package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js +3 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js +3 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js +1 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js +1 -1
- package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js +4 -2
- package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/filterBar.js +7 -4
- package/lib/esm/core/components/shadcn/filters/filterBar.js.map +1 -1
- package/lib/esm/core/components/shadcn/index.js +4 -0
- package/lib/esm/core/components/shadcn/index.js.map +1 -1
- package/lib/esm/core/components/shadcn/modal/ConfirmModal.js +4 -2
- package/lib/esm/core/components/shadcn/modal/ConfirmModal.js.map +1 -1
- package/lib/esm/core/components/shadcn/modal/DeleteModal.js +5 -3
- package/lib/esm/core/components/shadcn/modal/DeleteModal.js.map +1 -1
- package/lib/esm/core/components/shadcn/popover.js +11 -7
- package/lib/esm/core/components/shadcn/popover.js.map +1 -1
- package/lib/esm/core/components/shadcn/radioGroup.js +29 -0
- package/lib/esm/core/components/shadcn/radioGroup.js.map +1 -0
- package/lib/esm/core/components/shadcn/switch.js +19 -0
- package/lib/esm/core/components/shadcn/switch.js.map +1 -0
- package/lib/esm/core/components/shadcn/tabs.js +6 -6
- package/lib/esm/core/components/shadcn/tabs.js.map +1 -1
- package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js +7 -4
- package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js.map +1 -1
- package/lib/esm/core/components/toast/NotificationPanel.js +3 -3
- package/lib/esm/core/components/toast/NotificationPanel.js.map +1 -1
- package/lib/esm/core/hooks/PortalContainerProvider.js +9 -3
- package/lib/esm/core/hooks/PortalContainerProvider.js.map +1 -1
- package/lib/esm/env/index.js +16 -9
- package/lib/esm/env/index.js.map +1 -1
- package/lib/esm/features/agent/PayloadBuilder.js +87 -15
- package/lib/esm/features/agent/PayloadBuilder.js.map +1 -1
- package/lib/esm/features/agent/chat/AgentRightPanel.js +159 -0
- package/lib/esm/features/agent/chat/AgentRightPanel.js.map +1 -0
- package/lib/esm/features/agent/chat/ArtifactsTab.js +69 -0
- package/lib/esm/features/agent/chat/ArtifactsTab.js.map +1 -0
- package/lib/esm/features/agent/chat/AskUserWidget.js +12 -6
- package/lib/esm/features/agent/chat/AskUserWidget.js.map +1 -1
- package/lib/esm/features/agent/chat/DocumentPanel.js +6 -3
- package/lib/esm/features/agent/chat/DocumentPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ImageLightbox.js +3 -1
- package/lib/esm/features/agent/chat/ImageLightbox.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentConversation.js +241 -113
- package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +122 -52
- package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js +5 -3
- package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +76 -33
- package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +82 -83
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +16 -14
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +20 -5
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js +8 -6
- package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js +12 -10
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js +5 -3
- package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js +104 -13
- package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +9 -5
- package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js +160 -76
- package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js.map +1 -1
- package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js +3 -1
- package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js.map +1 -1
- package/lib/esm/features/agent/chat/VegaLiteChart.js +14 -2
- package/lib/esm/features/agent/chat/VegaLiteChart.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useAgentPlans.js +3 -8
- package/lib/esm/features/agent/chat/hooks/useAgentPlans.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useAgentStream.js +79 -16
- package/lib/esm/features/agent/chat/hooks/useAgentStream.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useArtifacts.js +108 -0
- package/lib/esm/features/agent/chat/hooks/useArtifacts.js.map +1 -0
- package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js +56 -5
- package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useFileProcessing.js +12 -10
- package/lib/esm/features/agent/chat/hooks/useFileProcessing.js.map +1 -1
- package/lib/esm/features/errors/PanelErrorBoundary.js +3 -1
- package/lib/esm/features/errors/PanelErrorBoundary.js.map +1 -1
- package/lib/esm/features/facets/AgentRunnerFacetsNav.js +45 -33
- package/lib/esm/features/facets/AgentRunnerFacetsNav.js.map +1 -1
- package/lib/esm/features/facets/RunsFacetsNav.js +9 -2
- package/lib/esm/features/facets/RunsFacetsNav.js.map +1 -1
- package/lib/esm/features/facets/index.js +1 -1
- package/lib/esm/features/facets/index.js.map +1 -1
- package/lib/esm/features/layout/GenericPageNavHeader.js +40 -28
- package/lib/esm/features/layout/GenericPageNavHeader.js.map +1 -1
- package/lib/esm/features/layout/NotFoundView.js +3 -1
- package/lib/esm/features/layout/NotFoundView.js.map +1 -1
- package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js +9 -5
- package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js.map +1 -1
- package/lib/esm/features/magic-pdf/DownloadPopover.js +5 -4
- package/lib/esm/features/magic-pdf/DownloadPopover.js.map +1 -1
- package/lib/esm/features/magic-pdf/MagicPdfView.js +8 -5
- package/lib/esm/features/magic-pdf/MagicPdfView.js.map +1 -1
- package/lib/esm/features/pdf-viewer/PdfPageSlider.js +9 -5
- package/lib/esm/features/pdf-viewer/PdfPageSlider.js.map +1 -1
- package/lib/esm/features/pdf-viewer/SimplePdfViewer.js +5 -3
- package/lib/esm/features/pdf-viewer/SimplePdfViewer.js.map +1 -1
- package/lib/esm/features/permissions/UserPermissionsProvider.js +3 -1
- package/lib/esm/features/permissions/UserPermissionsProvider.js.map +1 -1
- package/lib/esm/features/store/collections/BrowseCollectionView.js +9 -1
- package/lib/esm/features/store/collections/BrowseCollectionView.js.map +1 -1
- package/lib/esm/features/store/collections/CollectionsTable.js +14 -7
- package/lib/esm/features/store/collections/CollectionsTable.js.map +1 -1
- package/lib/esm/features/store/collections/CreateCollection.js +12 -9
- package/lib/esm/features/store/collections/CreateCollection.js.map +1 -1
- package/lib/esm/features/store/collections/EditCollectionView.js +23 -19
- package/lib/esm/features/store/collections/EditCollectionView.js.map +1 -1
- package/lib/esm/features/store/collections/SelectCollection.js +25 -10
- package/lib/esm/features/store/collections/SelectCollection.js.map +1 -1
- package/lib/esm/features/store/collections/SharedPropsEditor.js +5 -3
- package/lib/esm/features/store/collections/SharedPropsEditor.js.map +1 -1
- package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js +5 -3
- package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js.map +1 -1
- package/lib/esm/features/store/objects/DocumentPreviewPanel.js +14 -12
- package/lib/esm/features/store/objects/DocumentPreviewPanel.js.map +1 -1
- package/lib/esm/features/store/objects/DocumentSearchResults.js +15 -5
- package/lib/esm/features/store/objects/DocumentSearchResults.js.map +1 -1
- package/lib/esm/features/store/objects/DocumentTable.js +10 -7
- package/lib/esm/features/store/objects/DocumentTable.js.map +1 -1
- package/lib/esm/features/store/objects/ExportPropertiesModal.js +5 -2
- package/lib/esm/features/store/objects/ExportPropertiesModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/ContentDispositionButton.js +3 -1
- package/lib/esm/features/store/objects/components/ContentDispositionButton.js.map +1 -1
- package/lib/esm/features/store/objects/components/ContentOverview.js +55 -40
- package/lib/esm/features/store/objects/components/ContentOverview.js.map +1 -1
- package/lib/esm/features/store/objects/components/DocumentIcon.js +4 -3
- package/lib/esm/features/store/objects/components/DocumentIcon.js.map +1 -1
- package/lib/esm/features/store/objects/components/PropertiesEditorModal.js +13 -11
- package/lib/esm/features/store/objects/components/PropertiesEditorModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js +15 -18
- package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/SelectDocument.js +9 -6
- package/lib/esm/features/store/objects/components/SelectDocument.js.map +1 -1
- package/lib/esm/features/store/objects/components/TextEditorPanel.js +97 -0
- package/lib/esm/features/store/objects/components/TextEditorPanel.js.map +1 -0
- package/lib/esm/features/store/objects/components/VectorSearchWidget.js +3 -1
- package/lib/esm/features/store/objects/components/VectorSearchWidget.js.map +1 -1
- package/lib/esm/features/store/objects/components/useContentPanelHooks.js +4 -2
- package/lib/esm/features/store/objects/components/useContentPanelHooks.js.map +1 -1
- package/lib/esm/features/store/objects/components/useDownloadFile.js +12 -10
- package/lib/esm/features/store/objects/components/useDownloadFile.js.map +1 -1
- package/lib/esm/features/store/objects/layout/documentLayout.js +10 -6
- package/lib/esm/features/store/objects/layout/documentLayout.js.map +1 -1
- package/lib/esm/features/store/objects/layout/renderers.js +10 -1
- package/lib/esm/features/store/objects/layout/renderers.js.map +1 -1
- package/lib/esm/features/store/objects/search/DocumentSearchContext.js +3 -2
- package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +1 -1
- package/lib/esm/features/store/objects/search/DocumentSearchProvider.js +3 -0
- package/lib/esm/features/store/objects/search/DocumentSearchProvider.js.map +1 -1
- package/lib/esm/features/store/objects/selection/ObjectsActionContext.js +22 -109
- package/lib/esm/features/store/objects/selection/ObjectsActionContext.js.map +1 -1
- package/lib/esm/features/store/objects/selection/ObjectsActionContextClass.js +50 -0
- package/lib/esm/features/store/objects/selection/ObjectsActionContextClass.js.map +1 -0
- package/lib/esm/features/store/objects/selection/ObjectsActionHooks.js +27 -0
- package/lib/esm/features/store/objects/selection/ObjectsActionHooks.js.map +1 -0
- package/lib/esm/features/store/objects/selection/SelectionActions.js +10 -6
- package/lib/esm/features/store/objects/selection/SelectionActions.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +17 -12
- package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js +9 -5
- package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js +4 -2
- package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js +24 -23
- package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js +10 -5
- package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js +13 -9
- package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js +14 -8
- package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js.map +1 -1
- package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +42 -39
- package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +1 -1
- package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +4 -2
- package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +1 -1
- package/lib/esm/features/store/objects/upload/useUploadHandler.js +9 -7
- package/lib/esm/features/store/objects/upload/useUploadHandler.js.map +1 -1
- package/lib/esm/features/store/types/ContentObjectTypesSearch.js +6 -4
- package/lib/esm/features/store/types/ContentObjectTypesSearch.js.map +1 -1
- package/lib/esm/features/store/types/ContentObjectTypesTable.js +3 -1
- package/lib/esm/features/store/types/ContentObjectTypesTable.js.map +1 -1
- package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js +6 -7
- package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js.map +1 -1
- package/lib/esm/features/store/types/ObjectSchemaEditor.js +9 -7
- package/lib/esm/features/store/types/ObjectSchemaEditor.js.map +1 -1
- package/lib/esm/features/store/types/SelectContentType.js +9 -7
- package/lib/esm/features/store/types/SelectContentType.js.map +1 -1
- package/lib/esm/features/store/types/SelectContentTypeModal.js +5 -2
- package/lib/esm/features/store/types/SelectContentTypeModal.js.map +1 -1
- package/lib/esm/features/store/types/TableLayoutEditor.js +6 -4
- package/lib/esm/features/store/types/TableLayoutEditor.js.map +1 -1
- package/lib/esm/features/user/UserInfo.js +40 -50
- package/lib/esm/features/user/UserInfo.js.map +1 -1
- package/lib/esm/i18n/index.js +31 -0
- package/lib/esm/i18n/index.js.map +1 -0
- package/lib/esm/i18n/instance.js +46 -0
- package/lib/esm/i18n/instance.js.map +1 -0
- package/lib/esm/i18n/locales/ar.json +696 -0
- package/lib/esm/i18n/locales/de.json +664 -0
- package/lib/esm/i18n/locales/en.json +665 -0
- package/lib/esm/i18n/locales/es.json +670 -0
- package/lib/esm/i18n/locales/fr.json +672 -0
- package/lib/esm/i18n/locales/it.json +670 -0
- package/lib/esm/i18n/locales/ja.json +664 -0
- package/lib/esm/i18n/locales/ko.json +664 -0
- package/lib/esm/i18n/locales/pt.json +670 -0
- package/lib/esm/i18n/locales/ru.json +680 -0
- package/lib/esm/i18n/locales/tr.json +664 -0
- package/lib/esm/i18n/locales/zh-TW.json +664 -0
- package/lib/esm/i18n/locales/zh.json +664 -0
- package/lib/esm/layout/FullHeightLayout.js +3 -0
- package/lib/esm/layout/FullHeightLayout.js.map +1 -1
- package/lib/esm/layout/Navbar.js +3 -1
- package/lib/esm/layout/Navbar.js.map +1 -1
- package/lib/esm/layout/RegionTag.js +15 -0
- package/lib/esm/layout/RegionTag.js.map +1 -0
- package/lib/esm/layout/Sidebar.js +2 -2
- package/lib/esm/layout/Sidebar.js.map +1 -1
- package/lib/esm/layout/index.js +1 -0
- package/lib/esm/layout/index.js.map +1 -1
- package/lib/esm/router/HistoryNavigator.js +1 -1
- package/lib/esm/router/HistoryNavigator.js.map +1 -1
- package/lib/esm/router/Nav.js +5 -3
- package/lib/esm/router/Nav.js.map +1 -1
- package/lib/esm/router/NestedNavigationContext.js +4 -0
- package/lib/esm/router/NestedNavigationContext.js.map +1 -1
- package/lib/esm/router/NestedRouterProvider.js +3 -1
- package/lib/esm/router/NestedRouterProvider.js.map +1 -1
- package/lib/esm/router/Router.js +21 -6
- package/lib/esm/router/Router.js.map +1 -1
- package/lib/esm/session/UserSession.js +25 -4
- package/lib/esm/session/UserSession.js.map +1 -1
- package/lib/esm/session/UserSessionProvider.js +6 -13
- package/lib/esm/session/UserSessionProvider.js.map +1 -1
- package/lib/esm/session/auth/composable.js +1 -1
- package/lib/esm/session/auth/composable.js.map +1 -1
- package/lib/esm/session/auth/domainRouting.js +17 -0
- package/lib/esm/session/auth/domainRouting.js.map +1 -0
- package/lib/esm/session/auth/firebase.js +1 -1
- package/lib/esm/session/auth/firebase.js.map +1 -1
- package/lib/esm/session/auth/useCurrentTenant.js +3 -1
- package/lib/esm/session/auth/useCurrentTenant.js.map +1 -1
- package/lib/esm/shell/SplashScreen.js +3 -7
- package/lib/esm/shell/SplashScreen.js.map +1 -1
- package/lib/esm/shell/apps/StandaloneApp.js +5 -2
- package/lib/esm/shell/apps/StandaloneApp.js.map +1 -1
- package/lib/esm/shell/login/EnterpriseSigninButton.js +5 -3
- package/lib/esm/shell/login/EnterpriseSigninButton.js.map +1 -1
- package/lib/esm/shell/login/GitHubSignInButton.js +3 -7
- package/lib/esm/shell/login/GitHubSignInButton.js.map +1 -1
- package/lib/esm/shell/login/GoogleSignInButton.js +3 -1
- package/lib/esm/shell/login/GoogleSignInButton.js.map +1 -1
- package/lib/esm/shell/login/InviteAcceptModal.js +5 -2
- package/lib/esm/shell/login/InviteAcceptModal.js.map +1 -1
- package/lib/esm/shell/login/MicrosoftSigninButton.js +4 -6
- package/lib/esm/shell/login/MicrosoftSigninButton.js.map +1 -1
- package/lib/esm/shell/login/SigninScreen.js +6 -2
- package/lib/esm/shell/login/SigninScreen.js.map +1 -1
- package/lib/esm/shell/login/SignupForm.js +36 -34
- package/lib/esm/shell/login/SignupForm.js.map +1 -1
- package/lib/esm/shell/login/TerminalLogin.js +28 -21
- package/lib/esm/shell/login/TerminalLogin.js.map +1 -1
- package/lib/esm/shell/login/UserInfo.js +6 -4
- package/lib/esm/shell/login/UserInfo.js.map +1 -1
- package/lib/esm/shell/login/UserSessionMenu.js +3 -4
- package/lib/esm/shell/login/UserSessionMenu.js.map +1 -1
- package/lib/esm/widgets/index.js +0 -1
- package/lib/esm/widgets/index.js.map +1 -1
- package/lib/esm/widgets/json-view/JSONCode.js +1 -1
- package/lib/esm/widgets/json-view/JSONCode.js.map +1 -1
- package/lib/esm/widgets/json-view/JSONDisplay.js +6 -2
- package/lib/esm/widgets/json-view/JSONDisplay.js.map +1 -1
- package/lib/esm/widgets/json-view/JSONSwitcher.js +6 -0
- package/lib/esm/widgets/json-view/JSONSwitcher.js.map +1 -0
- package/lib/esm/widgets/json-view/JSONView.js +1 -1
- package/lib/esm/widgets/json-view/JSONView.js.map +1 -1
- package/lib/esm/widgets/json-view/index.js +1 -0
- package/lib/esm/widgets/json-view/index.js.map +1 -1
- package/lib/esm/widgets/markdown/ArtifactContentRenderer.js +6 -5
- package/lib/esm/widgets/markdown/ArtifactContentRenderer.js.map +1 -1
- package/lib/esm/widgets/markdown/CodeBlockContext.js +11 -0
- package/lib/esm/widgets/markdown/CodeBlockContext.js.map +1 -0
- package/lib/esm/widgets/markdown/MarkdownRenderer.js +11 -10
- package/lib/esm/widgets/markdown/MarkdownRenderer.js.map +1 -1
- package/lib/esm/widgets/markdown/codeBlockHandlers.js +11 -12
- package/lib/esm/widgets/markdown/codeBlockHandlers.js.map +1 -1
- package/lib/esm/widgets/markdown/index.js +10 -9
- package/lib/esm/widgets/markdown/index.js.map +1 -1
- package/lib/esm/widgets/markdown/remarkDirectiveHandler.js +0 -1
- package/lib/esm/widgets/markdown/remarkDirectiveHandler.js.map +1 -1
- package/lib/esm/widgets/schema-editor/ManagedSchema.js +6 -5
- package/lib/esm/widgets/schema-editor/ManagedSchema.js.map +1 -1
- package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js +7 -3
- package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js.map +1 -1
- package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js +3 -1
- package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js.map +1 -1
- package/lib/esm/widgets/upload/DropZone.js +9 -11
- package/lib/esm/widgets/upload/DropZone.js.map +1 -1
- package/lib/esm/widgets/upload/UploadResultCategory.js +3 -1
- package/lib/esm/widgets/upload/UploadResultCategory.js.map +1 -1
- package/lib/esm/widgets/upload/UploadSummary.js +3 -1
- package/lib/esm/widgets/upload/UploadSummary.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/core/components/SelectList.d.ts.map +1 -1
- package/lib/types/core/components/SidePanel.d.ts +4 -2
- package/lib/types/core/components/SidePanel.d.ts.map +1 -1
- package/lib/types/core/components/index.d.ts +0 -5
- package/lib/types/core/components/index.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/badge.d.ts +2 -2
- package/lib/types/core/components/shadcn/breadcrumb.d.ts +1 -1
- package/lib/types/core/components/shadcn/breadcrumb.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/button.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/collaspible.d.ts +6 -0
- package/lib/types/core/components/shadcn/collaspible.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/dropdown.d.ts +51 -0
- package/lib/types/core/components/shadcn/dropdown.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/filters/comboBox/DateCombobox.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/filters/filter/dateFilter.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/filters/filterBar.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/index.d.ts +4 -0
- package/lib/types/core/components/shadcn/index.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/input.d.ts +1 -1
- package/lib/types/core/components/shadcn/modal/ConfirmModal.d.ts +2 -1
- package/lib/types/core/components/shadcn/modal/ConfirmModal.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/modal/DeleteModal.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/popover.d.ts +11 -3
- package/lib/types/core/components/shadcn/popover.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/radioGroup.d.ts +26 -0
- package/lib/types/core/components/shadcn/radioGroup.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/switch.d.ts +12 -0
- package/lib/types/core/components/shadcn/switch.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/tabs.d.ts +4 -2
- package/lib/types/core/components/shadcn/tabs.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts +3 -2
- package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts.map +1 -1
- package/lib/types/core/components/toast/NotificationPanel.d.ts.map +1 -1
- package/lib/types/core/hooks/PortalContainerProvider.d.ts +1 -0
- package/lib/types/core/hooks/PortalContainerProvider.d.ts.map +1 -1
- package/lib/types/env/index.d.ts +12 -3
- package/lib/types/env/index.d.ts.map +1 -1
- package/lib/types/features/agent/PayloadBuilder.d.ts +31 -3
- package/lib/types/features/agent/PayloadBuilder.d.ts.map +1 -1
- package/lib/types/features/agent/chat/AgentRightPanel.d.ts +50 -0
- package/lib/types/features/agent/chat/AgentRightPanel.d.ts.map +1 -0
- package/lib/types/features/agent/chat/ArtifactsTab.d.ts +9 -0
- package/lib/types/features/agent/chat/ArtifactsTab.d.ts.map +1 -0
- package/lib/types/features/agent/chat/AskUserWidget.d.ts.map +1 -1
- package/lib/types/features/agent/chat/DocumentPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ImageLightbox.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentConversation.d.ts +22 -9
- package/lib/types/features/agent/chat/ModernAgentConversation.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +3 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/BatchProgressPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +13 -4
- package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts +3 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts +5 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts +16 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts.map +1 -1
- package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts.map +1 -1
- package/lib/types/features/agent/chat/VegaLiteChart.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useAgentPlans.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts +5 -3
- package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useArtifacts.d.ts +18 -0
- package/lib/types/features/agent/chat/hooks/useArtifacts.d.ts.map +1 -0
- package/lib/types/features/agent/chat/hooks/useDocumentPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts +4 -4
- package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts.map +1 -1
- package/lib/types/features/agent/chat/types/document.d.ts +2 -0
- package/lib/types/features/agent/chat/types/document.d.ts.map +1 -1
- package/lib/types/features/errors/PanelErrorBoundary.d.ts.map +1 -1
- package/lib/types/features/facets/AgentRunnerFacetsNav.d.ts +2 -1
- package/lib/types/features/facets/AgentRunnerFacetsNav.d.ts.map +1 -1
- package/lib/types/features/facets/RunsFacetsNav.d.ts.map +1 -1
- package/lib/types/features/facets/index.d.ts +1 -1
- package/lib/types/features/facets/index.d.ts.map +1 -1
- package/lib/types/features/layout/GenericPageNavHeader.d.ts +2 -2
- package/lib/types/features/layout/GenericPageNavHeader.d.ts.map +1 -1
- package/lib/types/features/layout/NotFoundView.d.ts.map +1 -1
- package/lib/types/features/magic-pdf/AnnotatedImageSlider.d.ts.map +1 -1
- package/lib/types/features/magic-pdf/DownloadPopover.d.ts.map +1 -1
- package/lib/types/features/magic-pdf/MagicPdfView.d.ts.map +1 -1
- package/lib/types/features/pdf-viewer/PdfPageSlider.d.ts.map +1 -1
- package/lib/types/features/pdf-viewer/SimplePdfViewer.d.ts.map +1 -1
- package/lib/types/features/permissions/UserPermissionsProvider.d.ts.map +1 -1
- package/lib/types/features/store/collections/BrowseCollectionView.d.ts.map +1 -1
- package/lib/types/features/store/collections/CollectionsTable.d.ts +4 -0
- package/lib/types/features/store/collections/CollectionsTable.d.ts.map +1 -1
- package/lib/types/features/store/collections/CreateCollection.d.ts.map +1 -1
- package/lib/types/features/store/collections/EditCollectionView.d.ts.map +1 -1
- package/lib/types/features/store/collections/SelectCollection.d.ts.map +1 -1
- package/lib/types/features/store/collections/SharedPropsEditor.d.ts.map +1 -1
- package/lib/types/features/store/collections/SyncMemberHeadsToggle.d.ts.map +1 -1
- package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts.map +1 -1
- package/lib/types/features/store/objects/DocumentSearchResults.d.ts.map +1 -1
- package/lib/types/features/store/objects/DocumentTable.d.ts.map +1 -1
- package/lib/types/features/store/objects/ExportPropertiesModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/ContentOverview.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/DocumentIcon.d.ts +2 -1
- package/lib/types/features/store/objects/components/DocumentIcon.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/SelectDocument.d.ts +3 -1
- package/lib/types/features/store/objects/components/SelectDocument.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/TextEditorPanel.d.ts +10 -0
- package/lib/types/features/store/objects/components/TextEditorPanel.d.ts.map +1 -0
- package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/useContentPanelHooks.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/useDownloadFile.d.ts.map +1 -1
- package/lib/types/features/store/objects/layout/documentLayout.d.ts +3 -2
- package/lib/types/features/store/objects/layout/documentLayout.d.ts.map +1 -1
- package/lib/types/features/store/objects/layout/renderers.d.ts.map +1 -1
- package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts.map +1 -1
- package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts +3 -20
- package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/ObjectsActionContextClass.d.ts +16 -0
- package/lib/types/features/store/objects/selection/ObjectsActionContextClass.d.ts.map +1 -0
- package/lib/types/features/store/objects/selection/ObjectsActionHooks.d.ts +7 -0
- package/lib/types/features/store/objects/selection/ObjectsActionHooks.d.ts.map +1 -0
- package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts +4 -1
- package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/SelectionActions.d.ts +6 -1
- package/lib/types/features/store/objects/selection/SelectionActions.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts +1 -1
- package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts.map +1 -1
- package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts.map +1 -1
- package/lib/types/features/store/objects/upload/useUploadHandler.d.ts.map +1 -1
- package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts.map +1 -1
- package/lib/types/features/store/types/ContentObjectTypesTable.d.ts.map +1 -1
- package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts +2 -1
- package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts.map +1 -1
- package/lib/types/features/store/types/ObjectSchemaEditor.d.ts.map +1 -1
- package/lib/types/features/store/types/SelectContentType.d.ts.map +1 -1
- package/lib/types/features/store/types/SelectContentTypeModal.d.ts.map +1 -1
- package/lib/types/features/store/types/TableLayoutEditor.d.ts.map +1 -1
- package/lib/types/features/user/UserInfo.d.ts +2 -2
- package/lib/types/features/user/UserInfo.d.ts.map +1 -1
- package/lib/types/i18n/index.d.ts +14 -0
- package/lib/types/i18n/index.d.ts.map +1 -0
- package/lib/types/i18n/instance.d.ts +5 -0
- package/lib/types/i18n/instance.d.ts.map +1 -0
- package/lib/types/layout/FullHeightLayout.d.ts +3 -0
- package/lib/types/layout/FullHeightLayout.d.ts.map +1 -1
- package/lib/types/layout/Navbar.d.ts.map +1 -1
- package/lib/types/layout/RegionTag.d.ts +4 -0
- package/lib/types/layout/RegionTag.d.ts.map +1 -0
- package/lib/types/layout/Sidebar.d.ts +2 -1
- package/lib/types/layout/Sidebar.d.ts.map +1 -1
- package/lib/types/layout/index.d.ts +1 -0
- package/lib/types/layout/index.d.ts.map +1 -1
- package/lib/types/router/Nav.d.ts +5 -1
- package/lib/types/router/Nav.d.ts.map +1 -1
- package/lib/types/router/NestedNavigationContext.d.ts.map +1 -1
- package/lib/types/router/NestedRouterProvider.d.ts.map +1 -1
- package/lib/types/router/Router.d.ts +2 -0
- package/lib/types/router/Router.d.ts.map +1 -1
- package/lib/types/session/UserSession.d.ts +1 -0
- package/lib/types/session/UserSession.d.ts.map +1 -1
- package/lib/types/session/UserSessionProvider.d.ts +0 -1
- package/lib/types/session/UserSessionProvider.d.ts.map +1 -1
- package/lib/types/session/auth/domainRouting.d.ts +3 -0
- package/lib/types/session/auth/domainRouting.d.ts.map +1 -0
- package/lib/types/session/auth/useCurrentTenant.d.ts.map +1 -1
- package/lib/types/shell/SplashScreen.d.ts.map +1 -1
- package/lib/types/shell/apps/StandaloneApp.d.ts.map +1 -1
- package/lib/types/shell/login/EnterpriseSigninButton.d.ts.map +1 -1
- package/lib/types/shell/login/GitHubSignInButton.d.ts.map +1 -1
- package/lib/types/shell/login/GoogleSignInButton.d.ts.map +1 -1
- package/lib/types/shell/login/InviteAcceptModal.d.ts.map +1 -1
- package/lib/types/shell/login/MicrosoftSigninButton.d.ts +1 -1
- package/lib/types/shell/login/MicrosoftSigninButton.d.ts.map +1 -1
- package/lib/types/shell/login/SigninScreen.d.ts.map +1 -1
- package/lib/types/shell/login/SignupForm.d.ts.map +1 -1
- package/lib/types/shell/login/TerminalLogin.d.ts.map +1 -1
- package/lib/types/shell/login/UserInfo.d.ts.map +1 -1
- package/lib/types/shell/login/UserSessionMenu.d.ts.map +1 -1
- package/lib/types/widgets/index.d.ts +0 -1
- package/lib/types/widgets/index.d.ts.map +1 -1
- package/lib/types/widgets/json-view/JSONDisplay.d.ts.map +1 -1
- package/lib/types/widgets/json-view/JSONSwitcher.d.ts +6 -0
- package/lib/types/widgets/json-view/JSONSwitcher.d.ts.map +1 -0
- package/lib/types/widgets/json-view/index.d.ts +1 -0
- package/lib/types/widgets/json-view/index.d.ts.map +1 -1
- package/lib/types/widgets/markdown/ArtifactContentRenderer.d.ts.map +1 -1
- package/lib/types/widgets/markdown/CodeBlockContext.d.ts +21 -0
- package/lib/types/widgets/markdown/CodeBlockContext.d.ts.map +1 -0
- package/lib/types/widgets/markdown/MarkdownRenderer.d.ts.map +1 -1
- package/lib/types/widgets/markdown/codeBlockHandlers.d.ts +0 -12
- package/lib/types/widgets/markdown/codeBlockHandlers.d.ts.map +1 -1
- package/lib/types/widgets/markdown/index.d.ts +10 -9
- package/lib/types/widgets/markdown/index.d.ts.map +1 -1
- package/lib/types/widgets/schema-editor/ManagedSchema.d.ts +1 -1
- package/lib/types/widgets/schema-editor/ManagedSchema.d.ts.map +1 -1
- package/lib/types/widgets/schema-editor/editor/PropertyEditor.d.ts.map +1 -1
- package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts.map +1 -1
- package/lib/types/widgets/upload/DropZone.d.ts.map +1 -1
- package/lib/types/widgets/upload/UploadResultCategory.d.ts.map +1 -1
- package/lib/types/widgets/upload/UploadSummary.d.ts.map +1 -1
- package/lib/vertesia-ui-core.js +1 -1
- package/lib/vertesia-ui-core.js.map +1 -1
- package/lib/vertesia-ui-env.js +1 -1
- package/lib/vertesia-ui-env.js.map +1 -1
- package/lib/vertesia-ui-features.js +1 -1
- package/lib/vertesia-ui-features.js.map +1 -1
- package/lib/vertesia-ui-i18n.js +2 -0
- package/lib/vertesia-ui-i18n.js.map +1 -0
- package/lib/vertesia-ui-layout.js +1 -1
- package/lib/vertesia-ui-layout.js.map +1 -1
- package/lib/vertesia-ui-router.js +1 -1
- package/lib/vertesia-ui-router.js.map +1 -1
- package/lib/vertesia-ui-session.js +1 -1
- package/lib/vertesia-ui-session.js.map +1 -1
- package/lib/vertesia-ui-shell.js +1 -1
- package/lib/vertesia-ui-shell.js.map +1 -1
- package/lib/vertesia-ui-widgets.js +1 -1
- package/lib/vertesia-ui-widgets.js.map +1 -1
- package/package.json +36 -22
- package/src/core/components/SelectList.tsx +3 -1
- package/src/core/components/SidePanel.tsx +5 -4
- package/src/core/components/index.ts +0 -5
- package/src/core/components/shadcn/breadcrumb.tsx +16 -9
- package/src/core/components/shadcn/button.tsx +5 -3
- package/src/core/components/shadcn/collaspible.tsx +33 -0
- package/src/core/components/shadcn/dropdown.tsx +325 -0
- package/src/core/components/shadcn/filters/comboBox/DateCombobox.tsx +3 -1
- package/src/core/components/shadcn/filters/comboBox/SelectCombobox.tsx +3 -1
- package/src/core/components/shadcn/filters/comboBox/StringListCombobox.tsx +1 -1
- package/src/core/components/shadcn/filters/filter/StringListFilter.tsx +1 -1
- package/src/core/components/shadcn/filters/filter/dateFilter.tsx +5 -3
- package/src/core/components/shadcn/filters/filterBar.tsx +8 -5
- package/src/core/components/shadcn/index.ts +5 -1
- package/src/core/components/shadcn/modal/ConfirmModal.tsx +7 -3
- package/src/core/components/shadcn/modal/DeleteModal.tsx +5 -3
- package/src/core/components/shadcn/popover.tsx +12 -7
- package/src/core/components/shadcn/radioGroup.tsx +100 -0
- package/src/core/components/shadcn/switch.tsx +60 -0
- package/src/core/components/shadcn/tabs.tsx +29 -27
- package/src/core/components/shadcn/theme/ThemeSwitcher.tsx +13 -9
- package/src/core/components/toast/NotificationPanel.tsx +38 -44
- package/src/core/hooks/PortalContainerProvider.tsx +11 -3
- package/src/env/index.ts +24 -13
- package/src/features/agent/PayloadBuilder.tsx +100 -13
- package/src/features/agent/chat/AgentRightPanel.tsx +424 -0
- package/src/features/agent/chat/ArtifactsTab.tsx +197 -0
- package/src/features/agent/chat/AskUserWidget.tsx +14 -8
- package/src/features/agent/chat/DocumentPanel.tsx +24 -9
- package/src/features/agent/chat/ImageLightbox.tsx +6 -3
- package/src/features/agent/chat/ModernAgentConversation.tsx +460 -279
- package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx +151 -55
- package/src/features/agent/chat/ModernAgentOutput/BatchProgressPanel.tsx +6 -4
- package/src/features/agent/chat/ModernAgentOutput/Header.tsx +183 -105
- package/src/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.tsx +21 -31
- package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +119 -114
- package/src/features/agent/chat/ModernAgentOutput/MessageItem.tsx +26 -9
- package/src/features/agent/chat/ModernAgentOutput/PlanPanel.tsx +9 -7
- package/src/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.tsx +15 -13
- package/src/features/agent/chat/ModernAgentOutput/StreamingMessage.tsx +8 -3
- package/src/features/agent/chat/ModernAgentOutput/ToolCallGroup.tsx +149 -49
- package/src/features/agent/chat/ModernAgentOutput/WorkstreamTabs.tsx +9 -5
- package/src/features/agent/chat/ModernAgentOutput/utils.test.ts +229 -0
- package/src/features/agent/chat/ModernAgentOutput/utils.ts +202 -97
- package/src/features/agent/chat/SlidingThinkingIndicator.tsx +5 -3
- package/src/features/agent/chat/VegaLiteChart.tsx +20 -8
- package/src/features/agent/chat/hooks/useAgentPlans.ts +3 -9
- package/src/features/agent/chat/hooks/useAgentStream.ts +86 -19
- package/src/features/agent/chat/hooks/useArtifacts.ts +151 -0
- package/src/features/agent/chat/hooks/useDocumentPanel.ts +65 -5
- package/src/features/agent/chat/hooks/useFileProcessing.ts +14 -13
- package/src/features/agent/chat/types/document.ts +2 -0
- package/src/features/errors/PanelErrorBoundary.tsx +5 -3
- package/src/features/facets/AgentRunnerFacetsNav.tsx +54 -35
- package/src/features/facets/RunsFacetsNav.tsx +15 -7
- package/src/features/facets/index.ts +1 -1
- package/src/features/layout/GenericPageNavHeader.tsx +64 -41
- package/src/features/layout/NotFoundView.tsx +4 -1
- package/src/features/magic-pdf/AnnotatedImageSlider.tsx +12 -8
- package/src/features/magic-pdf/DownloadPopover.tsx +11 -10
- package/src/features/magic-pdf/MagicPdfView.tsx +10 -7
- package/src/features/pdf-viewer/PdfPageSlider.tsx +10 -6
- package/src/features/pdf-viewer/SimplePdfViewer.tsx +5 -3
- package/src/features/permissions/UserPermissionsProvider.tsx +3 -1
- package/src/features/store/collections/BrowseCollectionView.tsx +11 -1
- package/src/features/store/collections/CollectionsTable.tsx +20 -12
- package/src/features/store/collections/CreateCollection.tsx +14 -11
- package/src/features/store/collections/EditCollectionView.tsx +31 -28
- package/src/features/store/collections/SelectCollection.tsx +50 -14
- package/src/features/store/collections/SharedPropsEditor.tsx +7 -5
- package/src/features/store/collections/SyncMemberHeadsToggle.tsx +6 -4
- package/src/features/store/objects/DocumentPreviewPanel.tsx +30 -28
- package/src/features/store/objects/DocumentSearchResults.tsx +31 -21
- package/src/features/store/objects/DocumentTable.tsx +11 -5
- package/src/features/store/objects/ExportPropertiesModal.tsx +8 -5
- package/src/features/store/objects/components/ContentDispositionButton.tsx +3 -1
- package/src/features/store/objects/components/ContentOverview.tsx +96 -50
- package/src/features/store/objects/components/DocumentIcon.tsx +11 -3
- package/src/features/store/objects/components/PropertiesEditorModal.tsx +14 -12
- package/src/features/store/objects/components/SaveVersionConfirmModal.tsx +24 -37
- package/src/features/store/objects/components/SelectDocument.tsx +15 -6
- package/src/features/store/objects/components/TextEditorPanel.tsx +143 -0
- package/src/features/store/objects/components/VectorSearchWidget.tsx +11 -8
- package/src/features/store/objects/components/useContentPanelHooks.ts +4 -2
- package/src/features/store/objects/components/useDownloadFile.ts +12 -10
- package/src/features/store/objects/layout/documentLayout.tsx +16 -6
- package/src/features/store/objects/layout/renderers.tsx +27 -1
- package/src/features/store/objects/search/DocumentSearchContext.ts +3 -2
- package/src/features/store/objects/search/DocumentSearchProvider.tsx +3 -0
- package/src/features/store/objects/selection/ObjectsActionContext.tsx +26 -128
- package/src/features/store/objects/selection/ObjectsActionContextClass.ts +59 -0
- package/src/features/store/objects/selection/ObjectsActionHooks.ts +33 -0
- package/src/features/store/objects/selection/ObjectsActionSpec.ts +4 -1
- package/src/features/store/objects/selection/SelectionActions.tsx +14 -6
- package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +19 -14
- package/src/features/store/objects/selection/actions/ChangeTypeAction.tsx +9 -5
- package/src/features/store/objects/selection/actions/ConfirmAction.tsx +4 -3
- package/src/features/store/objects/selection/actions/DeleteObjectsAction.tsx +24 -23
- package/src/features/store/objects/selection/actions/ExportPropertiesAction.tsx +10 -5
- package/src/features/store/objects/selection/actions/RemoveFromCollectionAction.tsx +13 -9
- package/src/features/store/objects/selection/actions/StartWorkflowComponent.tsx +14 -8
- package/src/features/store/objects/upload/DocumentUploadModal.tsx +56 -55
- package/src/features/store/objects/upload/useSmartFileUploadProcessing.ts +4 -2
- package/src/features/store/objects/upload/useUploadHandler.ts +9 -7
- package/src/features/store/types/ContentObjectTypesSearch.tsx +10 -8
- package/src/features/store/types/ContentObjectTypesTable.tsx +6 -4
- package/src/features/store/types/CreateOrUpdateTypeModal.tsx +11 -12
- package/src/features/store/types/ObjectSchemaEditor.tsx +11 -9
- package/src/features/store/types/SelectContentType.tsx +15 -13
- package/src/features/store/types/SelectContentTypeModal.tsx +16 -13
- package/src/features/store/types/TableLayoutEditor.tsx +16 -12
- package/src/features/user/UserInfo.tsx +47 -56
- package/src/i18n/index.tsx +45 -0
- package/src/i18n/instance.ts +49 -0
- package/src/i18n/locales/ar.json +696 -0
- package/src/i18n/locales/de.json +664 -0
- package/src/i18n/locales/en.json +665 -0
- package/src/i18n/locales/es.json +670 -0
- package/src/i18n/locales/fr.json +672 -0
- package/src/i18n/locales/it.json +670 -0
- package/src/i18n/locales/ja.json +664 -0
- package/src/i18n/locales/ko.json +664 -0
- package/src/i18n/locales/pt.json +670 -0
- package/src/i18n/locales/ru.json +680 -0
- package/src/i18n/locales/tr.json +664 -0
- package/src/i18n/locales/zh-TW.json +664 -0
- package/src/i18n/locales/zh.json +664 -0
- package/src/layout/FullHeightLayout.tsx +8 -0
- package/src/layout/Navbar.tsx +4 -2
- package/src/layout/RegionTag.tsx +25 -0
- package/src/layout/Sidebar.tsx +4 -3
- package/src/layout/index.ts +2 -1
- package/src/router/HistoryNavigator.ts +10 -10
- package/src/router/Nav.tsx +9 -3
- package/src/router/NestedNavigationContext.tsx +4 -0
- package/src/router/NestedRouterProvider.tsx +3 -1
- package/src/router/Router.tsx +23 -7
- package/src/session/UserSession.ts +26 -5
- package/src/session/UserSessionProvider.tsx +6 -14
- package/src/session/auth/composable.ts +1 -1
- package/src/session/auth/domainRouting.test.ts +110 -0
- package/src/session/auth/domainRouting.ts +22 -0
- package/src/session/auth/firebase.ts +1 -1
- package/src/session/auth/useCurrentTenant.ts +3 -1
- package/src/shell/SplashScreen.tsx +22 -26
- package/src/shell/apps/StandaloneApp.tsx +9 -6
- package/src/shell/login/EnterpriseSigninButton.tsx +6 -4
- package/src/shell/login/GitHubSignInButton.tsx +3 -7
- package/src/shell/login/GoogleSignInButton.tsx +3 -1
- package/src/shell/login/InviteAcceptModal.tsx +5 -2
- package/src/shell/login/MicrosoftSigninButton.tsx +4 -6
- package/src/shell/login/SigninScreen.tsx +18 -13
- package/src/shell/login/SignupForm.tsx +46 -46
- package/src/shell/login/TerminalLogin.tsx +35 -31
- package/src/shell/login/UserInfo.tsx +15 -13
- package/src/shell/login/UserSessionMenu.tsx +28 -31
- package/src/widgets/index.ts +0 -1
- package/src/widgets/json-view/JSONCode.tsx +1 -1
- package/src/widgets/json-view/JSONDisplay.tsx +8 -3
- package/src/widgets/json-view/JSONSwitcher.tsx +24 -0
- package/src/widgets/json-view/JSONView.tsx +1 -1
- package/src/widgets/json-view/index.ts +1 -0
- package/src/widgets/markdown/ArtifactContentRenderer.tsx +15 -7
- package/src/widgets/markdown/CodeBlockContext.tsx +34 -0
- package/src/widgets/markdown/MarkdownRenderer.tsx +14 -13
- package/src/widgets/markdown/codeBlockHandlers.tsx +17 -36
- package/src/widgets/markdown/index.ts +27 -34
- package/src/widgets/markdown/remarkDirectiveHandler.ts +1 -1
- package/src/widgets/schema-editor/ManagedSchema.ts +6 -5
- package/src/widgets/schema-editor/editor/PropertyEditor.tsx +7 -3
- package/src/widgets/schema-editor/editor/SchemaEditor.tsx +3 -1
- package/src/widgets/upload/DropZone.tsx +10 -13
- package/src/widgets/upload/UploadResultCategory.tsx +3 -1
- package/src/widgets/upload/UploadSummary.tsx +13 -11
- package/tsconfig.dist.json +1 -1
- package/lib/esm/core/components/Dropdown.js +0 -16
- package/lib/esm/core/components/Dropdown.js.map +0 -1
- package/lib/esm/core/components/DropdownList.js +0 -9
- package/lib/esm/core/components/DropdownList.js.map +0 -1
- package/lib/esm/core/components/RadioGroup.js +0 -34
- package/lib/esm/core/components/RadioGroup.js.map +0 -1
- package/lib/esm/core/components/SelectStack.js +0 -8
- package/lib/esm/core/components/SelectStack.js.map +0 -1
- package/lib/esm/core/components/Switch.js +0 -12
- package/lib/esm/core/components/Switch.js.map +0 -1
- package/lib/esm/widgets/popover/Popover.js +0 -73
- package/lib/esm/widgets/popover/Popover.js.map +0 -1
- package/lib/esm/widgets/popover/context.js +0 -7
- package/lib/esm/widgets/popover/context.js.map +0 -1
- package/lib/esm/widgets/popover/index.js +0 -3
- package/lib/esm/widgets/popover/index.js.map +0 -1
- package/lib/esm/widgets/popover/slots.js +0 -22
- package/lib/esm/widgets/popover/slots.js.map +0 -1
- package/lib/types/core/components/Dropdown.d.ts +0 -15
- package/lib/types/core/components/Dropdown.d.ts.map +0 -1
- package/lib/types/core/components/DropdownList.d.ts +0 -13
- package/lib/types/core/components/DropdownList.d.ts.map +0 -1
- package/lib/types/core/components/RadioGroup.d.ts +0 -26
- package/lib/types/core/components/RadioGroup.d.ts.map +0 -1
- package/lib/types/core/components/SelectStack.d.ts +0 -13
- package/lib/types/core/components/SelectStack.d.ts.map +0 -1
- package/lib/types/core/components/Switch.d.ts +0 -11
- package/lib/types/core/components/Switch.d.ts.map +0 -1
- package/lib/types/widgets/popover/Popover.d.ts +0 -38
- package/lib/types/widgets/popover/Popover.d.ts.map +0 -1
- package/lib/types/widgets/popover/context.d.ts +0 -8
- package/lib/types/widgets/popover/context.d.ts.map +0 -1
- package/lib/types/widgets/popover/index.d.ts +0 -3
- package/lib/types/widgets/popover/index.d.ts.map +0 -1
- package/lib/types/widgets/popover/slots.d.ts +0 -5
- package/lib/types/widgets/popover/slots.d.ts.map +0 -1
- package/src/core/components/Dropdown.tsx +0 -63
- package/src/core/components/DropdownList.tsx +0 -72
- package/src/core/components/RadioGroup.tsx +0 -100
- package/src/core/components/SelectStack.tsx +0 -63
- package/src/core/components/Switch.tsx +0 -30
- package/src/widgets/popover/Popover.tsx +0 -171
- package/src/widgets/popover/context.ts +0 -15
- package/src/widgets/popover/index.ts +0 -2
- package/src/widgets/popover/slots.ts +0 -24
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useMemo, useRef, useState } from 'react';
|
|
2
2
|
|
|
3
|
+
import { useUITranslation } from '../../../i18n/index.js';
|
|
3
4
|
import { useUserSession } from '@vertesia/ui/session';
|
|
4
5
|
import { MonacoEditor, EditorApi, SchemaEditor, useSchema } from '@vertesia/ui/widgets';
|
|
5
6
|
import { Button, useToast, useTheme, Panel } from '@vertesia/ui/core';
|
|
@@ -13,6 +14,7 @@ interface ObjectSchemaEditorProps {
|
|
|
13
14
|
}
|
|
14
15
|
export function ObjectSchemaEditor({ objectType, onSchemaUpdate, readonly = false }: ObjectSchemaEditorProps) {
|
|
15
16
|
const { store } = useUserSession();
|
|
17
|
+
const { t } = useUITranslation();
|
|
16
18
|
const toast = useToast();
|
|
17
19
|
const { theme } = useTheme();
|
|
18
20
|
|
|
@@ -37,14 +39,14 @@ export function ObjectSchemaEditor({ objectType, onSchemaUpdate, readonly = fals
|
|
|
37
39
|
onSchemaUpdate(schema);
|
|
38
40
|
toast({
|
|
39
41
|
status: 'success',
|
|
40
|
-
title: '
|
|
41
|
-
description: '
|
|
42
|
+
title: t('store.schemaUpdated'),
|
|
43
|
+
description: t('store.schemaUpdatedSuccess'),
|
|
42
44
|
duration: 2000
|
|
43
45
|
});
|
|
44
46
|
}).catch((err) => {
|
|
45
47
|
toast({
|
|
46
48
|
status: 'error',
|
|
47
|
-
title: '
|
|
49
|
+
title: t('store.failedToUpdateSchema'),
|
|
48
50
|
description: err.message,
|
|
49
51
|
duration: 5000
|
|
50
52
|
})
|
|
@@ -73,7 +75,7 @@ export function ObjectSchemaEditor({ objectType, onSchemaUpdate, readonly = fals
|
|
|
73
75
|
} catch (err: any) {
|
|
74
76
|
toast({
|
|
75
77
|
status: 'error',
|
|
76
|
-
title: '
|
|
78
|
+
title: t('store.invalidJsonSchema'),
|
|
77
79
|
description: err.message,
|
|
78
80
|
duration: 5000
|
|
79
81
|
})
|
|
@@ -84,11 +86,11 @@ export function ObjectSchemaEditor({ objectType, onSchemaUpdate, readonly = fals
|
|
|
84
86
|
};
|
|
85
87
|
|
|
86
88
|
const title = (
|
|
87
|
-
<div className='flex gap-2 items-center'><div className="text-base font-semibold">
|
|
89
|
+
<div className='flex gap-2 items-center'><div className="text-base font-semibold">{t('store.schemaEditor')}</div>
|
|
88
90
|
{!readonly && <div>
|
|
89
91
|
<Button variant="outline" size="sm" onClick={handleOnSave}>
|
|
90
92
|
{
|
|
91
|
-
displayJson ?
|
|
93
|
+
displayJson ? t('store.editSchema') : t('store.editJson')
|
|
92
94
|
}
|
|
93
95
|
</Button>
|
|
94
96
|
</div>}
|
|
@@ -96,8 +98,8 @@ export function ObjectSchemaEditor({ objectType, onSchemaUpdate, readonly = fals
|
|
|
96
98
|
);
|
|
97
99
|
|
|
98
100
|
return (
|
|
99
|
-
<Panel title={title} className="bg-background! h-
|
|
100
|
-
|
|
101
|
+
<Panel title={title} className="bg-background! h-full"
|
|
102
|
+
action = {!readonly ? <Button isLoading={isUpdating} variant="outline" size="sm" onClick={onSave}>{t('modal.saveChanges')}</Button> : undefined}
|
|
101
103
|
>
|
|
102
104
|
{
|
|
103
105
|
displayJson
|
|
@@ -141,6 +143,6 @@ const validateSchema = (schema: Record<string, any>) => {
|
|
|
141
143
|
// against the JSON Schema draft that ajv supports by default.
|
|
142
144
|
ajv.compile(schema);
|
|
143
145
|
} catch (error: any) {
|
|
144
|
-
throw new Error(`Invalid JSON Schema definition: ${error.message}
|
|
146
|
+
throw new Error(`Invalid JSON Schema definition: ${error.message}`, { cause: error });
|
|
145
147
|
}
|
|
146
148
|
};
|
|
@@ -2,17 +2,7 @@ import { ContentObjectTypeItem } from "@vertesia/common";
|
|
|
2
2
|
import { SelectBox } from "@vertesia/ui/core";
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
4
|
import { useTypeRegistry } from "./TypeRegistryProvider.js";
|
|
5
|
-
|
|
6
|
-
const optionLabel = (t: ContentObjectTypeItem | null) => {
|
|
7
|
-
if (t === null) return 'None';
|
|
8
|
-
|
|
9
|
-
return (
|
|
10
|
-
<div>
|
|
11
|
-
<div className="text-sm">{t.name}</div>
|
|
12
|
-
<div className="text-xs text-muted truncate">{t.description}</div>
|
|
13
|
-
</div>
|
|
14
|
-
);
|
|
15
|
-
};
|
|
5
|
+
import { useUITranslation } from '../../../i18n/index.js';
|
|
16
6
|
|
|
17
7
|
interface SelectContentTypeProps {
|
|
18
8
|
defaultValue?: string | string[] | null; // the typeId
|
|
@@ -22,8 +12,20 @@ interface SelectContentTypeProps {
|
|
|
22
12
|
multiple?: boolean;
|
|
23
13
|
}
|
|
24
14
|
export function SelectContentType({ className, defaultValue, onChange, isClearable, multiple}: SelectContentTypeProps) {
|
|
15
|
+
const { t } = useUITranslation();
|
|
25
16
|
const { registry: typeRegistry } = useTypeRegistry();
|
|
26
17
|
const [isMounted, setIsMounted] = useState(false);
|
|
18
|
+
|
|
19
|
+
const optionLabel = (type: ContentObjectTypeItem | null) => {
|
|
20
|
+
if (type === null) return t('store.none');
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<div>
|
|
24
|
+
<div className="text-sm">{type.name}</div>
|
|
25
|
+
<div className="text-xs text-muted truncate">{type.description}</div>
|
|
26
|
+
</div>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
27
29
|
const [selectedType, setSelectedType] = useState<ContentObjectTypeItem | undefined>();
|
|
28
30
|
const [selectedTypes, setSelectedTypes] = useState<ContentObjectTypeItem[]>([])
|
|
29
31
|
|
|
@@ -60,7 +62,7 @@ export function SelectContentType({ className, defaultValue, onChange, isClearab
|
|
|
60
62
|
options={typeRegistry?.types || []}
|
|
61
63
|
value={selectedTypes}
|
|
62
64
|
onChange={_onChangeMultiple}
|
|
63
|
-
placeholder=
|
|
65
|
+
placeholder={t('store.chooseContentTypes')}
|
|
64
66
|
optionLabel={optionLabel}
|
|
65
67
|
className={className || "text-sm bg-background"}
|
|
66
68
|
filterBy="name"
|
|
@@ -77,7 +79,7 @@ export function SelectContentType({ className, defaultValue, onChange, isClearab
|
|
|
77
79
|
options={typeRegistry?.types || []}
|
|
78
80
|
value={selectedType}
|
|
79
81
|
onChange={_onChange}
|
|
80
|
-
placeholder=
|
|
82
|
+
placeholder={t('store.chooseContentType')}
|
|
81
83
|
optionLabel={optionLabel}
|
|
82
84
|
className={className || "text-sm bg-background"}
|
|
83
85
|
filterBy="name"
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
} from "@vertesia/ui/core";
|
|
11
11
|
import { ContentObjectTypeItem } from "@vertesia/common";
|
|
12
12
|
import { useTypeRegistry } from "./TypeRegistryProvider.js";
|
|
13
|
+
import { useUITranslation } from '../../../i18n/index.js';
|
|
13
14
|
import { CheckCircleIcon, Info } from "lucide-react";
|
|
14
15
|
|
|
15
16
|
/**
|
|
@@ -44,11 +45,13 @@ interface SelectContentTypeModalProps {
|
|
|
44
45
|
export function SelectContentTypeModal({
|
|
45
46
|
isOpen,
|
|
46
47
|
onClose,
|
|
47
|
-
title
|
|
48
|
+
title,
|
|
48
49
|
children,
|
|
49
50
|
initialSelectedType = null,
|
|
50
51
|
allowNone = true,
|
|
51
52
|
}: SelectContentTypeModalProps) {
|
|
53
|
+
const { t } = useUITranslation();
|
|
54
|
+
const resolvedTitle = title ?? t('store.selectContentType');
|
|
52
55
|
const { registry: typeRegistry } = useTypeRegistry();
|
|
53
56
|
const [selectedType, setSelectedType] = useState<ContentObjectTypeItem | null>(initialSelectedType);
|
|
54
57
|
|
|
@@ -72,21 +75,21 @@ export function SelectContentTypeModal({
|
|
|
72
75
|
onClose={handleClose}
|
|
73
76
|
className="w-full max-w-xl mx-auto"
|
|
74
77
|
>
|
|
75
|
-
<ModalTitle>{
|
|
78
|
+
<ModalTitle>{resolvedTitle}</ModalTitle>
|
|
76
79
|
<ModalBody>
|
|
77
80
|
{children}
|
|
78
81
|
|
|
79
82
|
{/* Type selection */}
|
|
80
83
|
<div className="mb-4 mt-4">
|
|
81
84
|
<label className="block text-sm font-medium mb-2">
|
|
82
|
-
|
|
85
|
+
{t('store.contentType')} {allowNone && <span className="text-gray-500 font-normal">{t('store.optional')}</span>}
|
|
83
86
|
</label>
|
|
84
87
|
{allowNone ? (
|
|
85
88
|
<SelectBox
|
|
86
89
|
options={types}
|
|
87
90
|
value={selectedType}
|
|
88
|
-
optionLabel={(type) => type ? type.name : '
|
|
89
|
-
placeholder=
|
|
91
|
+
optionLabel={(type) => type ? type.name : t('store.selectContentTypeLabel')}
|
|
92
|
+
placeholder={t('store.selectContentTypeAuto')}
|
|
90
93
|
onChange={(selected: ContentObjectTypeItem | null | undefined) => setSelectedType(selected || null)}
|
|
91
94
|
filterBy="name"
|
|
92
95
|
isClearable={true}
|
|
@@ -95,8 +98,8 @@ export function SelectContentTypeModal({
|
|
|
95
98
|
<SelectBox
|
|
96
99
|
options={types}
|
|
97
100
|
value={selectedType}
|
|
98
|
-
optionLabel={(type) => type ? type.name : '
|
|
99
|
-
placeholder=
|
|
101
|
+
optionLabel={(type) => type ? type.name : t('store.selectContentTypeLabel')}
|
|
102
|
+
placeholder={t('store.selectContentTypeLabel')}
|
|
100
103
|
onChange={(selected: ContentObjectTypeItem | null | undefined) => setSelectedType(selected || null)}
|
|
101
104
|
filterBy="name"
|
|
102
105
|
/>
|
|
@@ -106,9 +109,9 @@ export function SelectContentTypeModal({
|
|
|
106
109
|
{!selectedType && (
|
|
107
110
|
<div className="flex items-center text-attention">
|
|
108
111
|
<CheckCircleIcon className="size-4 mr-1" />
|
|
109
|
-
|
|
112
|
+
{t('store.automaticTypeDetection')}
|
|
110
113
|
<VTooltip
|
|
111
|
-
description=
|
|
114
|
+
description={t('store.automaticTypeDetectionDescription')}
|
|
112
115
|
placement="top" size="xs"
|
|
113
116
|
>
|
|
114
117
|
<Info className="size-3 ml-2" />
|
|
@@ -117,11 +120,11 @@ export function SelectContentTypeModal({
|
|
|
117
120
|
)}
|
|
118
121
|
</ModalBody>
|
|
119
122
|
<ModalFooter>
|
|
120
|
-
<Button variant="ghost" onClick={handleClose} alt=
|
|
121
|
-
|
|
123
|
+
<Button variant="ghost" onClick={handleClose} alt={t('modal.cancel')}>
|
|
124
|
+
{t('modal.cancel')}
|
|
122
125
|
</Button>
|
|
123
|
-
<Button onClick={handleConfirm} alt=
|
|
124
|
-
|
|
126
|
+
<Button onClick={handleConfirm} alt={t('store.confirmSelection')}>
|
|
127
|
+
{t('modal.confirm')}
|
|
125
128
|
</Button>
|
|
126
129
|
</ModalFooter>
|
|
127
130
|
</Modal>
|
|
@@ -3,6 +3,7 @@ import { ColumnLayout, ContentObjectType } from '@vertesia/common';
|
|
|
3
3
|
import { Button, useToast, useTheme, Panel } from '@vertesia/ui/core';
|
|
4
4
|
import { useUserSession } from '@vertesia/ui/session';
|
|
5
5
|
import { MonacoEditor, EditorApi } from '@vertesia/ui/widgets';
|
|
6
|
+
import { useUITranslation } from '../../../i18n/index.js';
|
|
6
7
|
|
|
7
8
|
interface TableLayoutEditorProps {
|
|
8
9
|
objectType: ContentObjectType;
|
|
@@ -12,6 +13,7 @@ interface TableLayoutEditorProps {
|
|
|
12
13
|
export function TableLayoutEditor({ objectType, onLayoutUpdate, readonly = false }: TableLayoutEditorProps) {
|
|
13
14
|
const toast = useToast();
|
|
14
15
|
const { theme } = useTheme();
|
|
16
|
+
const { t } = useUITranslation();
|
|
15
17
|
|
|
16
18
|
const [isUpdating, setUpdating] = useState(false);
|
|
17
19
|
const { store } = useUserSession();
|
|
@@ -60,15 +62,15 @@ export function TableLayoutEditor({ objectType, onLayoutUpdate, readonly = false
|
|
|
60
62
|
}).then((response) => {
|
|
61
63
|
toast({
|
|
62
64
|
status: 'success',
|
|
63
|
-
title: '
|
|
64
|
-
description: '
|
|
65
|
+
title: t('store.tableLayoutUpdated'),
|
|
66
|
+
description: t('store.tableLayoutUpdatedDesc'),
|
|
65
67
|
duration: 2000
|
|
66
68
|
});
|
|
67
69
|
onLayoutUpdate(response.table_layout);
|
|
68
70
|
}).catch((err) => {
|
|
69
71
|
toast({
|
|
70
72
|
status: 'error',
|
|
71
|
-
title: '
|
|
73
|
+
title: t('store.failedToUpdateTableLayout'),
|
|
72
74
|
description: err.message,
|
|
73
75
|
duration: 5000
|
|
74
76
|
})
|
|
@@ -79,16 +81,18 @@ export function TableLayoutEditor({ objectType, onLayoutUpdate, readonly = false
|
|
|
79
81
|
|
|
80
82
|
|
|
81
83
|
return (
|
|
82
|
-
<Panel title="Table Layout Editor" className="bg-background! h-
|
|
83
|
-
!readonly ? <Button isLoading={isUpdating} variant="outline" size="sm" onClick={onSave}>
|
|
84
|
+
<Panel title="Table Layout Editor" className="bg-background! h-full" action={
|
|
85
|
+
!readonly ? <Button isLoading={isUpdating} variant="outline" size="sm" onClick={onSave}>{t('store.saveChanges')}</Button> : undefined
|
|
84
86
|
}>
|
|
85
|
-
<
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
<div className="h-full">
|
|
88
|
+
<MonacoEditor
|
|
89
|
+
value={value}
|
|
90
|
+
language="json"
|
|
91
|
+
editorRef={editorRef}
|
|
92
|
+
theme={theme === 'dark' ? 'vs-dark' : 'vs'}
|
|
93
|
+
options={{ readOnly: readonly }}
|
|
94
|
+
/>
|
|
95
|
+
</div>
|
|
92
96
|
</Panel>
|
|
93
97
|
)
|
|
94
98
|
}
|
|
@@ -3,12 +3,24 @@ import { Avatar, Popover, PopoverContent, PopoverTrigger, Table, useFetch } from
|
|
|
3
3
|
import { useUserSession } from "@vertesia/ui/session";
|
|
4
4
|
import { Users } from "lucide-react";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
|
+
import { useUITranslation } from '../../i18n/index.js';
|
|
6
7
|
|
|
7
|
-
//TODO use a real cache
|
|
8
8
|
const USER_CACHE: Record<string, Promise<User>> = {};
|
|
9
9
|
const GROUP_CACHE: Record<string, Promise<UserGroup>> = {};
|
|
10
10
|
const APIKEY_CACHE: Record<string, Promise<ApiKey>> = {};
|
|
11
11
|
|
|
12
|
+
function cachedFetch<T>(cache: Record<string, Promise<T>>, key: string, fetcher: () => Promise<T>): Promise<T> {
|
|
13
|
+
let entry = cache[key];
|
|
14
|
+
if (!entry) {
|
|
15
|
+
entry = fetcher().catch((err) => {
|
|
16
|
+
delete cache[key]; // evict on failure so retries work
|
|
17
|
+
throw err;
|
|
18
|
+
});
|
|
19
|
+
cache[key] = entry;
|
|
20
|
+
}
|
|
21
|
+
return entry;
|
|
22
|
+
}
|
|
23
|
+
|
|
12
24
|
/**
|
|
13
25
|
* Fetch the user information given a user reference.
|
|
14
26
|
* The reference has the format: `type:id`. A special reference `system` is used to refer to the system user.
|
|
@@ -17,16 +29,7 @@ const APIKEY_CACHE: Record<string, Promise<ApiKey>> = {};
|
|
|
17
29
|
export function useFetchUserInfo(userId: string) {
|
|
18
30
|
const { client } = useUserSession();
|
|
19
31
|
|
|
20
|
-
return useFetch(() =>
|
|
21
|
-
let user: Promise<User> | undefined = USER_CACHE[userId];
|
|
22
|
-
if (!user) {
|
|
23
|
-
user = client.users.retrieve(userId).then(user => {
|
|
24
|
-
return user;
|
|
25
|
-
});
|
|
26
|
-
USER_CACHE[userId] = user;
|
|
27
|
-
}
|
|
28
|
-
return user;
|
|
29
|
-
}, [userId]);
|
|
32
|
+
return useFetch(() => cachedFetch(USER_CACHE, userId, () => client.users.retrieve(userId)), [userId]);
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
/**
|
|
@@ -36,16 +39,7 @@ export function useFetchUserInfo(userId: string) {
|
|
|
36
39
|
export function useFetchGroupInfo(groupId: string) {
|
|
37
40
|
const { client } = useUserSession();
|
|
38
41
|
|
|
39
|
-
return useFetch(() =>
|
|
40
|
-
let group: Promise<UserGroup> | undefined = GROUP_CACHE[groupId];
|
|
41
|
-
if (!group) {
|
|
42
|
-
group = client.iam.groups.retrieve(groupId).then(group => {
|
|
43
|
-
return group;
|
|
44
|
-
});
|
|
45
|
-
GROUP_CACHE[groupId] = group;
|
|
46
|
-
}
|
|
47
|
-
return group;
|
|
48
|
-
}, [groupId]);
|
|
42
|
+
return useFetch(() => cachedFetch(GROUP_CACHE, groupId, () => client.iam.groups.retrieve(groupId)), [groupId]);
|
|
49
43
|
}
|
|
50
44
|
|
|
51
45
|
/**
|
|
@@ -55,16 +49,7 @@ export function useFetchGroupInfo(groupId: string) {
|
|
|
55
49
|
export function useFetchApiKeyInfo(keyId: string) {
|
|
56
50
|
const { client } = useUserSession();
|
|
57
51
|
|
|
58
|
-
return useFetch(() =>
|
|
59
|
-
let apikey: Promise<ApiKey> | undefined = APIKEY_CACHE[keyId];
|
|
60
|
-
if (!apikey) {
|
|
61
|
-
apikey = client.apikeys.retrieve(keyId).then(apikey => {
|
|
62
|
-
return apikey;
|
|
63
|
-
});
|
|
64
|
-
APIKEY_CACHE[keyId] = apikey;
|
|
65
|
-
}
|
|
66
|
-
return apikey;
|
|
67
|
-
}, [keyId]);
|
|
52
|
+
return useFetch(() => cachedFetch(APIKEY_CACHE, keyId, () => client.apikeys.retrieve(keyId)), [keyId]);
|
|
68
53
|
}
|
|
69
54
|
|
|
70
55
|
function AvatarPlaceholder() {
|
|
@@ -77,11 +62,12 @@ interface InfoProps {
|
|
|
77
62
|
}
|
|
78
63
|
|
|
79
64
|
function SystemAvatar({ showTitle = false, size = "md" }: InfoProps) {
|
|
65
|
+
const { t } = useUITranslation();
|
|
80
66
|
return (
|
|
81
|
-
<UserPopoverPanel title=
|
|
67
|
+
<UserPopoverPanel title={t('user.systemUser')} description={t('user.systemUserDescription')}>
|
|
82
68
|
<div className="flex gap-2 items-center">
|
|
83
69
|
<Avatar src="/icon.svg" size={size} />
|
|
84
|
-
{showTitle && <div className="text-sm font-semibold pl-2">
|
|
70
|
+
{showTitle && <div className="text-sm font-semibold pl-2">{t('user.systemUser')}</div>}
|
|
85
71
|
</div>
|
|
86
72
|
</UserPopoverPanel>
|
|
87
73
|
)
|
|
@@ -90,18 +76,19 @@ interface ServiceInfoProps extends InfoProps {
|
|
|
90
76
|
accountId: string;
|
|
91
77
|
}
|
|
92
78
|
function ServiceAccountAvatar({ accountId, showTitle = false, size = "md" }: ServiceInfoProps) {
|
|
79
|
+
const { t } = useUITranslation();
|
|
93
80
|
const description = (
|
|
94
81
|
<>
|
|
95
|
-
<div>
|
|
82
|
+
<div>{t('user.serviceAccountDescription')}</div>
|
|
96
83
|
<div className="text-gray-800 dark:text-gray-500 text-sm"><span className="font-semibold">ID:</span> {accountId}</div>
|
|
97
84
|
</>
|
|
98
85
|
)
|
|
99
86
|
|
|
100
87
|
return (
|
|
101
|
-
<UserPopoverPanel title=
|
|
88
|
+
<UserPopoverPanel title={t('user.serviceAccount')} description={description}>
|
|
102
89
|
<div className="flex flex-row items-center gap-2">
|
|
103
90
|
<Avatar src="/cloud.svg" name="SA" color="bg-amber-500" className="px-[5px] text-white" size={size} />
|
|
104
|
-
{showTitle && <div className="text-sm font-semibold pl-2 truncate">
|
|
91
|
+
{showTitle && <div className="text-sm font-semibold pl-2 truncate">{t('user.serviceAccount')} : {accountId}</div>}
|
|
105
92
|
</div>
|
|
106
93
|
</UserPopoverPanel>
|
|
107
94
|
);
|
|
@@ -114,6 +101,7 @@ interface AgentAvatarProps extends InfoProps {
|
|
|
114
101
|
isScheduleAgent?: boolean;
|
|
115
102
|
}
|
|
116
103
|
function AgentAvatar({ agentId, onBehalfOfType, onBehalfOfId, showTitle = false, size = "md", isScheduleAgent = false }: AgentAvatarProps) {
|
|
104
|
+
const { t } = useUITranslation();
|
|
117
105
|
// Fetch user info - must call hooks unconditionally per React rules
|
|
118
106
|
const shouldFetchUser = onBehalfOfType === 'user' && onBehalfOfId;
|
|
119
107
|
const shouldFetchApiKey = onBehalfOfType === 'apikey' && onBehalfOfId;
|
|
@@ -126,8 +114,8 @@ function AgentAvatar({ agentId, onBehalfOfType, onBehalfOfId, showTitle = false,
|
|
|
126
114
|
const apiKey = shouldFetchApiKey ? apiKeyResult.data : undefined;
|
|
127
115
|
|
|
128
116
|
// Determine title and description
|
|
129
|
-
const title = user ?
|
|
130
|
-
const _title = isScheduleAgent ?
|
|
117
|
+
const title = user ? t('user.agentOnBehalfOf') : apiKey ? t('user.agentOnBehalfOfApiKey') : t('user.serviceAccount');
|
|
118
|
+
const _title = isScheduleAgent ? t('user.schedule', { title }) : title;
|
|
131
119
|
|
|
132
120
|
const description = (
|
|
133
121
|
<div className="space-y-2">
|
|
@@ -152,7 +140,7 @@ function AgentAvatar({ agentId, onBehalfOfType, onBehalfOfId, showTitle = false,
|
|
|
152
140
|
)}
|
|
153
141
|
{!user && !apiKey && (
|
|
154
142
|
<>
|
|
155
|
-
<div>
|
|
143
|
+
<div>{t('user.serviceAccountDescription')}</div>
|
|
156
144
|
<div className="text-gray-800 dark:text-gray-500 text-sm">
|
|
157
145
|
<span className="font-semibold">ID:</span> {agentId}
|
|
158
146
|
</div>
|
|
@@ -222,8 +210,9 @@ interface UserInfoProps extends InfoProps {
|
|
|
222
210
|
userRef: string | undefined;
|
|
223
211
|
}
|
|
224
212
|
export function UserInfo({ userRef, showTitle = false, size = "md" }: UserInfoProps) {
|
|
213
|
+
const { t } = useUITranslation();
|
|
225
214
|
if (!userRef) {
|
|
226
|
-
return <UnknownAvatar title=
|
|
215
|
+
return <UnknownAvatar title={t('user.unknownUser')} message={t('user.unknownUserDescription')} showTitle={showTitle} size={size} />
|
|
227
216
|
}
|
|
228
217
|
|
|
229
218
|
const parts = userRef.split(':');
|
|
@@ -296,7 +285,7 @@ export function UserInfo({ userRef, showTitle = false, size = "md" }: UserInfoPr
|
|
|
296
285
|
return <ApiKeyAvatar keyId={parts[1]} size={size} showTitle={showTitle} />
|
|
297
286
|
|
|
298
287
|
default:
|
|
299
|
-
return <ErrorAvatar title=
|
|
288
|
+
return <ErrorAvatar title={t('user.unknownUser')} error={`Invalid user ref type: ${type}`} showTitle={showTitle} size={size} />
|
|
300
289
|
}
|
|
301
290
|
}
|
|
302
291
|
|
|
@@ -320,10 +309,11 @@ interface GroupAvatarProps extends InfoProps {
|
|
|
320
309
|
userId: string;
|
|
321
310
|
}
|
|
322
311
|
function GroupAvatar({ userId, showTitle = false, size = "md" }: GroupAvatarProps) {
|
|
312
|
+
const { t } = useUITranslation();
|
|
323
313
|
const { data: group, error } = useFetchGroupInfo(userId);
|
|
324
314
|
|
|
325
315
|
if (error) {
|
|
326
|
-
return <ErrorAvatar title=
|
|
316
|
+
return <ErrorAvatar title={t('user.failedToFetchGroup')} error={error} showTitle={showTitle} size={size} />
|
|
327
317
|
}
|
|
328
318
|
|
|
329
319
|
if (!group) {
|
|
@@ -333,7 +323,7 @@ function GroupAvatar({ userId, showTitle = false, size = "md" }: GroupAvatarProp
|
|
|
333
323
|
const description = (
|
|
334
324
|
<div className="space-y-1">
|
|
335
325
|
{group.description && <div className="text-sm">{group.description}</div>}
|
|
336
|
-
<div className="text-xs text-muted-foreground">
|
|
326
|
+
<div className="text-xs text-muted-foreground">{t('user.groupId', { id: group.id })}</div>
|
|
337
327
|
{group.tags && group.tags.length > 0 && (
|
|
338
328
|
<div className="flex flex-wrap gap-1">
|
|
339
329
|
{group.tags.map(tag => (
|
|
@@ -345,10 +335,10 @@ function GroupAvatar({ userId, showTitle = false, size = "md" }: GroupAvatarProp
|
|
|
345
335
|
)
|
|
346
336
|
|
|
347
337
|
return (
|
|
348
|
-
<UserPopoverPanel title={group.name ||
|
|
338
|
+
<UserPopoverPanel title={group.name || t('user.unnamedGroup')} description={description}>
|
|
349
339
|
<div className="flex flex-row items-center gap-2">
|
|
350
340
|
<Users className="size-6 text-indigo-500" size={size} />
|
|
351
|
-
{showTitle && <div className="text-sm font-semibold pl-2">{group.name ||
|
|
341
|
+
{showTitle && <div className="text-sm font-semibold pl-2">{group.name || t('user.unnamedGroup')}</div>}
|
|
352
342
|
</div>
|
|
353
343
|
</UserPopoverPanel>
|
|
354
344
|
)
|
|
@@ -358,10 +348,11 @@ interface UserAvatarProps extends InfoProps {
|
|
|
358
348
|
userId: string;
|
|
359
349
|
}
|
|
360
350
|
function UserAvatar({ userId, showTitle = false, size = "md" }: UserAvatarProps) {
|
|
351
|
+
const { t } = useUITranslation();
|
|
361
352
|
const { data: user, error } = useFetchUserInfo(userId);
|
|
362
353
|
|
|
363
354
|
if (error) {
|
|
364
|
-
return <ErrorAvatar title=
|
|
355
|
+
return <ErrorAvatar title={t('user.failedToFetchUser')} error={error} showTitle={showTitle} size={size} />
|
|
365
356
|
}
|
|
366
357
|
|
|
367
358
|
if (!user) {
|
|
@@ -373,10 +364,10 @@ function UserAvatar({ userId, showTitle = false, size = "md" }: UserAvatarProps)
|
|
|
373
364
|
)
|
|
374
365
|
|
|
375
366
|
return (
|
|
376
|
-
<UserPopoverPanel title={user.name || user.email || user.username ||
|
|
367
|
+
<UserPopoverPanel title={user.name || user.email || user.username || t('user.unknown')} description={description}>
|
|
377
368
|
<div className="flex flex-row items-center gap-2">
|
|
378
369
|
<Avatar src={user.picture} name={user.name} color="bg-indigo-500" size={size} />
|
|
379
|
-
{showTitle && <div className="text-sm font-semibold pl-2">{user.name || user.email || user.username ||
|
|
370
|
+
{showTitle && <div className="text-sm font-semibold pl-2">{user.name || user.email || user.username || t('user.unknown')}</div>}
|
|
380
371
|
</div>
|
|
381
372
|
</UserPopoverPanel>
|
|
382
373
|
)
|
|
@@ -386,31 +377,31 @@ interface ApiKeyAvatarProps extends InfoProps {
|
|
|
386
377
|
keyId: string;
|
|
387
378
|
}
|
|
388
379
|
export function ApiKeyAvatar({ keyId, showTitle = false, size = "md" }: ApiKeyAvatarProps) {
|
|
389
|
-
const {
|
|
390
|
-
const { data, error } =
|
|
380
|
+
const { t } = useUITranslation();
|
|
381
|
+
const { data, error } = useFetchApiKeyInfo(keyId);
|
|
391
382
|
|
|
392
383
|
if (error) {
|
|
393
|
-
return <ErrorAvatar title=
|
|
384
|
+
return <ErrorAvatar title={t('user.failedToFetchApiKey')} error={error} showTitle={showTitle} size={size} />
|
|
394
385
|
}
|
|
395
386
|
|
|
396
387
|
if (!data) {
|
|
397
388
|
return <AvatarPlaceholder />
|
|
398
389
|
}
|
|
399
390
|
|
|
400
|
-
const title =
|
|
391
|
+
const title = t('user.privateKey');
|
|
401
392
|
const avatar = <Avatar name={"PK"} color="bg-pink-500" size={size} />;
|
|
402
393
|
const description = (
|
|
403
394
|
<Table className="dark:bg-gray-800 dark:text-gray-200 table-fixed w-full">
|
|
404
395
|
<tr>
|
|
405
|
-
<td className="font-semibold w-20">
|
|
396
|
+
<td className="font-semibold w-20">{t('user.key')}</td>
|
|
406
397
|
<td className="truncate max-w-0">{data?.name}</td>
|
|
407
398
|
</tr>
|
|
408
399
|
<tr>
|
|
409
|
-
<td className="font-semibold w-20">
|
|
400
|
+
<td className="font-semibold w-20">{t('user.account')}</td>
|
|
410
401
|
<td className="truncate max-w-0">{data?.account}</td>
|
|
411
402
|
</tr>
|
|
412
403
|
<tr>
|
|
413
|
-
<td className="font-semibold w-20">
|
|
404
|
+
<td className="font-semibold w-20">{t('user.project')}</td>
|
|
414
405
|
<td className="truncate max-w-0">{data?.project.name}</td>
|
|
415
406
|
</tr>
|
|
416
407
|
</Table>
|
|
@@ -420,7 +411,7 @@ export function ApiKeyAvatar({ keyId, showTitle = false, size = "md" }: ApiKeyAv
|
|
|
420
411
|
<UserPopoverPanel title={title} description={description}>
|
|
421
412
|
<div className="flex flex-row items-center gap-2">
|
|
422
413
|
{avatar}
|
|
423
|
-
{showTitle && <div className="text-sm font-semibold">{data?.name || data?.account || data?.project.name ||
|
|
414
|
+
{showTitle && <div className="text-sm font-semibold">{data?.name || data?.account || data?.project.name || t('user.unknown')}</div>}
|
|
424
415
|
</div>
|
|
425
416
|
</UserPopoverPanel >
|
|
426
417
|
)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { useEffect, type ReactNode } from 'react';
|
|
2
|
+
import { I18nextProvider, useTranslation } from 'react-i18next';
|
|
3
|
+
import { i18nInstance, NAMESPACE } from './instance.js';
|
|
4
|
+
|
|
5
|
+
export interface I18nProviderProps {
|
|
6
|
+
/** Force a specific language. If omitted, uses browser language detection with 'en' fallback. */
|
|
7
|
+
lng?: string;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function detectLanguage(lng?: string): string {
|
|
12
|
+
return lng ?? navigator.language?.split('-')[0] ?? 'en';
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function I18nProvider({ lng, children }: I18nProviderProps) {
|
|
16
|
+
// Set language synchronously on first render to avoid flash of wrong language
|
|
17
|
+
const language = detectLanguage(lng);
|
|
18
|
+
if (i18nInstance.language !== language) {
|
|
19
|
+
void i18nInstance.changeLanguage(language);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Also react to prop changes
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
const lang = detectLanguage(lng);
|
|
25
|
+
if (i18nInstance.language !== lang) {
|
|
26
|
+
void i18nInstance.changeLanguage(lang);
|
|
27
|
+
}
|
|
28
|
+
}, [lng]);
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<I18nextProvider i18n={i18nInstance}>
|
|
32
|
+
{children}
|
|
33
|
+
</I18nextProvider>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Hook for components inside @vertesia/ui to get translation functions.
|
|
39
|
+
* Always binds to the 'vertesia.ui' namespace on the scoped instance.
|
|
40
|
+
*/
|
|
41
|
+
export function useUITranslation() {
|
|
42
|
+
return useTranslation(NAMESPACE, { i18n: i18nInstance });
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { i18nInstance, NAMESPACE } from './instance.js';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import i18next, { type i18n } from 'i18next';
|
|
2
|
+
import { initReactI18next } from 'react-i18next';
|
|
3
|
+
import ar from './locales/ar.json';
|
|
4
|
+
import de from './locales/de.json';
|
|
5
|
+
import en from './locales/en.json';
|
|
6
|
+
import es from './locales/es.json';
|
|
7
|
+
import fr from './locales/fr.json';
|
|
8
|
+
import it from './locales/it.json';
|
|
9
|
+
import ja from './locales/ja.json';
|
|
10
|
+
import ko from './locales/ko.json';
|
|
11
|
+
import pt from './locales/pt.json';
|
|
12
|
+
import ru from './locales/ru.json';
|
|
13
|
+
import tr from './locales/tr.json';
|
|
14
|
+
import zh from './locales/zh.json';
|
|
15
|
+
import zhTW from './locales/zh-TW.json';
|
|
16
|
+
|
|
17
|
+
export const NAMESPACE = 'vertesia.ui';
|
|
18
|
+
|
|
19
|
+
// Scoped instance — does NOT touch the global i18next singleton
|
|
20
|
+
const i18nInstance: i18n = i18next.createInstance();
|
|
21
|
+
|
|
22
|
+
void i18nInstance.use(initReactI18next).init({
|
|
23
|
+
resources: {
|
|
24
|
+
ar: { [NAMESPACE]: ar },
|
|
25
|
+
de: { [NAMESPACE]: de },
|
|
26
|
+
en: { [NAMESPACE]: en },
|
|
27
|
+
es: { [NAMESPACE]: es },
|
|
28
|
+
fr: { [NAMESPACE]: fr },
|
|
29
|
+
it: { [NAMESPACE]: it },
|
|
30
|
+
ja: { [NAMESPACE]: ja },
|
|
31
|
+
ko: { [NAMESPACE]: ko },
|
|
32
|
+
pt: { [NAMESPACE]: pt },
|
|
33
|
+
ru: { [NAMESPACE]: ru },
|
|
34
|
+
tr: { [NAMESPACE]: tr },
|
|
35
|
+
zh: { [NAMESPACE]: zh },
|
|
36
|
+
'zh-TW': { [NAMESPACE]: zhTW },
|
|
37
|
+
},
|
|
38
|
+
fallbackLng: 'en',
|
|
39
|
+
ns: [NAMESPACE],
|
|
40
|
+
defaultNS: NAMESPACE,
|
|
41
|
+
interpolation: {
|
|
42
|
+
escapeValue: false, // React already escapes
|
|
43
|
+
},
|
|
44
|
+
react: {
|
|
45
|
+
useSuspense: false, // Translations are bundled, no async loading
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export { i18nInstance };
|