@vertesia/ui 1.0.0-dev.20260128.144200 → 1.0.0-dev.20260225.024852Z
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/InputList.js +1 -1
- package/lib/esm/core/components/InputList.js.map +1 -1
- package/lib/esm/core/components/Overlay.js +1 -1
- package/lib/esm/core/components/Overlay.js.map +1 -1
- package/lib/esm/core/components/SidePanel.js +8 -2
- package/lib/esm/core/components/SidePanel.js.map +1 -1
- package/lib/esm/core/components/Switch.js +1 -1
- package/lib/esm/core/components/Switch.js.map +1 -1
- package/lib/esm/core/components/index.js +0 -8
- package/lib/esm/core/components/index.js.map +1 -1
- package/lib/esm/core/components/shadcn/MessageBox.js.map +1 -0
- package/lib/esm/core/components/shadcn/Panel.js +13 -0
- package/lib/esm/core/components/shadcn/Panel.js.map +1 -0
- package/lib/esm/core/components/{Badge.js → shadcn/badge.js} +2 -2
- package/lib/esm/core/components/shadcn/badge.js.map +1 -0
- package/lib/esm/core/components/shadcn/command.js +1 -1
- package/lib/esm/core/components/shadcn/command.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/filterBar.js +73 -83
- package/lib/esm/core/components/shadcn/filters/filterBar.js.map +1 -1
- package/lib/esm/core/components/shadcn/index.js +4 -2
- package/lib/esm/core/components/shadcn/index.js.map +1 -1
- package/lib/esm/core/components/shadcn/modal/ConfirmModal.js +10 -0
- package/lib/esm/core/components/shadcn/modal/ConfirmModal.js.map +1 -0
- package/lib/esm/core/components/{DeleteModal.js → shadcn/modal/DeleteModal.js} +1 -1
- package/lib/esm/core/components/shadcn/modal/DeleteModal.js.map +1 -0
- package/lib/esm/core/components/shadcn/{dialog.js → modal/dialog.js} +19 -15
- package/lib/esm/core/components/shadcn/modal/dialog.js.map +1 -0
- package/lib/esm/core/components/shadcn/modal/index.js +4 -0
- package/lib/esm/core/components/shadcn/modal/index.js.map +1 -0
- package/lib/esm/core/components/shadcn/popover.js +4 -2
- package/lib/esm/core/components/shadcn/popover.js.map +1 -1
- package/lib/esm/core/components/shadcn/selectBox.js +19 -15
- package/lib/esm/core/components/shadcn/selectBox.js.map +1 -1
- package/lib/esm/core/components/shadcn/tabs.js +16 -14
- package/lib/esm/core/components/shadcn/tabs.js.map +1 -1
- package/lib/esm/core/components/shadcn/textarea.js +30 -2
- package/lib/esm/core/components/shadcn/textarea.js.map +1 -1
- package/lib/esm/core/components/shadcn/tooltip.js +5 -1
- package/lib/esm/core/components/shadcn/tooltip.js.map +1 -1
- package/lib/esm/features/agent/PayloadBuilder.js +45 -0
- package/lib/esm/features/agent/PayloadBuilder.js.map +1 -1
- package/lib/esm/features/agent/chat/AgentChart.js +12 -232
- package/lib/esm/features/agent/chat/AgentChart.js.map +1 -1
- package/lib/esm/features/agent/chat/AskUserWidget.js +2 -1
- package/lib/esm/features/agent/chat/AskUserWidget.js.map +1 -1
- package/lib/esm/features/agent/chat/DocumentPanel.js +46 -0
- package/lib/esm/features/agent/chat/DocumentPanel.js.map +1 -0
- package/lib/esm/features/agent/chat/DocumentTabBar.js +17 -0
- package/lib/esm/features/agent/chat/DocumentTabBar.js.map +1 -0
- package/lib/esm/features/agent/chat/ModernAgentConversation.js +159 -402
- package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +99 -57
- package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js +4 -4
- package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +4 -4
- package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +3 -3
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +25 -22
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +110 -55
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js +2 -2
- package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js +146 -55
- package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +5 -6
- package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js +110 -2
- package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js.map +1 -1
- package/lib/esm/features/agent/chat/SkillWidgetProvider.js +28 -15
- package/lib/esm/features/agent/chat/SkillWidgetProvider.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useAgentPlans.js +146 -0
- package/lib/esm/features/agent/chat/hooks/useAgentPlans.js.map +1 -0
- package/lib/esm/features/agent/chat/hooks/useAgentStream.js +180 -0
- package/lib/esm/features/agent/chat/hooks/useAgentStream.js.map +1 -0
- package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js +100 -0
- package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js.map +1 -0
- package/lib/esm/features/agent/chat/hooks/useFileProcessing.js +90 -0
- package/lib/esm/features/agent/chat/hooks/useFileProcessing.js.map +1 -0
- package/lib/esm/features/agent/chat/index.js +6 -5
- package/lib/esm/features/agent/chat/index.js.map +1 -1
- package/lib/esm/features/agent/chat/types/document.js +2 -0
- package/lib/esm/features/agent/chat/types/document.js.map +1 -0
- package/lib/esm/features/agent/index.js +0 -2
- package/lib/esm/features/agent/index.js.map +1 -1
- package/lib/esm/features/store/collections/BrowseCollectionView.js +4 -6
- package/lib/esm/features/store/collections/BrowseCollectionView.js.map +1 -1
- package/lib/esm/features/store/collections/CreateCollection.js +4 -4
- package/lib/esm/features/store/collections/CreateCollection.js.map +1 -1
- package/lib/esm/features/store/collections/EditCollectionView.js +1 -1
- package/lib/esm/features/store/collections/EditCollectionView.js.map +1 -1
- package/lib/esm/features/store/objects/DocumentSearchResults.js +5 -5
- package/lib/esm/features/store/objects/DocumentSearchResults.js.map +1 -1
- package/lib/esm/features/store/objects/ExportPropertiesModal.js +3 -3
- package/lib/esm/features/store/objects/ExportPropertiesModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/ContentOverview.js +19 -120
- package/lib/esm/features/store/objects/components/ContentOverview.js.map +1 -1
- package/lib/esm/features/store/objects/components/PropertiesEditorModal.js +1 -1
- package/lib/esm/features/store/objects/components/PropertiesEditorModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/SelectDocumentModal.js +2 -2
- package/lib/esm/features/store/objects/components/SelectDocumentModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/VectorSearchWidget.js +1 -1
- package/lib/esm/features/store/objects/components/VectorSearchWidget.js.map +1 -1
- package/lib/esm/features/store/objects/components/index.js +1 -1
- package/lib/esm/features/store/objects/components/index.js.map +1 -1
- package/lib/esm/features/store/objects/components/useDownloadFile.js +192 -0
- package/lib/esm/features/store/objects/components/useDownloadFile.js.map +1 -0
- package/lib/esm/features/store/objects/search/DocumentSearchContext.js +1 -2
- package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +1 -1
- package/lib/esm/features/store/objects/selection/SelectionActions.js +5 -8
- package/lib/esm/features/store/objects/selection/SelectionActions.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +4 -4
- package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js +2 -2
- package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js +1 -1
- package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js +3 -3
- package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js.map +1 -1
- package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +13 -13
- package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +1 -1
- package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +15 -8
- package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +1 -1
- package/lib/esm/features/store/types/ObjectSchemaEditor.js +6 -5
- package/lib/esm/features/store/types/ObjectSchemaEditor.js.map +1 -1
- package/lib/esm/features/store/types/SelectContentType.js +3 -3
- package/lib/esm/features/store/types/SelectContentType.js.map +1 -1
- package/lib/esm/features/store/types/SelectContentTypeModal.js +5 -4
- package/lib/esm/features/store/types/SelectContentTypeModal.js.map +1 -1
- package/lib/esm/features/store/types/TableLayoutEditor.js +4 -4
- package/lib/esm/features/store/types/TableLayoutEditor.js.map +1 -1
- package/lib/esm/features/user/UserInfo.js +73 -9
- package/lib/esm/features/user/UserInfo.js.map +1 -1
- package/lib/esm/features/utils/print.js +0 -1
- package/lib/esm/features/utils/print.js.map +1 -1
- package/lib/esm/layout/AppLayout.js +3 -4
- package/lib/esm/layout/AppLayout.js.map +1 -1
- package/lib/esm/layout/Sidebar.js +5 -5
- package/lib/esm/layout/Sidebar.js.map +1 -1
- package/lib/esm/router/HistoryNavigator.js +7 -1
- package/lib/esm/router/HistoryNavigator.js.map +1 -1
- package/lib/esm/router/Nav.js +2 -2
- package/lib/esm/router/Nav.js.map +1 -1
- package/lib/esm/session/UserSession.js +35 -9
- package/lib/esm/session/UserSession.js.map +1 -1
- package/lib/esm/session/UserSessionProvider.js +3 -2
- package/lib/esm/session/UserSessionProvider.js.map +1 -1
- package/lib/esm/shell/apps/AppProjectSelector.js +2 -2
- package/lib/esm/shell/apps/AppProjectSelector.js.map +1 -1
- package/lib/esm/shell/apps/StandaloneApp.js +2 -2
- package/lib/esm/shell/apps/StandaloneApp.js.map +1 -1
- package/lib/esm/shell/login/InviteAcceptModal.js +2 -2
- package/lib/esm/shell/login/InviteAcceptModal.js.map +1 -1
- package/lib/esm/shell/login/SignInModal.js +1 -1
- package/lib/esm/shell/login/SignInModal.js.map +1 -1
- package/lib/esm/shell/login/SignupForm.js +2 -2
- package/lib/esm/shell/login/SignupForm.js.map +1 -1
- package/lib/esm/shell/login/UserInfo.js +2 -2
- package/lib/esm/shell/login/UserInfo.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 +1 -1
- package/lib/esm/widgets/json-view/JSONDisplay.js.map +1 -1
- package/lib/esm/widgets/markdown/ArtifactContentRenderer.js +84 -13
- package/lib/esm/widgets/markdown/ArtifactContentRenderer.js.map +1 -1
- package/lib/esm/widgets/markdown/MarkdownFigure.js +40 -0
- package/lib/esm/widgets/markdown/MarkdownFigure.js.map +1 -0
- package/lib/esm/widgets/markdown/MarkdownRenderer.js +42 -7
- package/lib/esm/widgets/markdown/MarkdownRenderer.js.map +1 -1
- package/lib/esm/widgets/markdown/MermaidDiagram.js +80 -5
- package/lib/esm/widgets/markdown/MermaidDiagram.js.map +1 -1
- package/lib/esm/widgets/markdown/codeBlockHandlers.js +33 -33
- package/lib/esm/widgets/markdown/codeBlockHandlers.js.map +1 -1
- package/lib/esm/widgets/markdown/codeBlockHandlers.test.js +2 -29
- package/lib/esm/widgets/markdown/codeBlockHandlers.test.js.map +1 -1
- package/lib/esm/widgets/markdown/index.js +1 -0
- package/lib/esm/widgets/markdown/index.js.map +1 -1
- package/lib/esm/widgets/markdown/normalizeCustomSchemeLinks.js +77 -0
- package/lib/esm/widgets/markdown/normalizeCustomSchemeLinks.js.map +1 -0
- package/lib/esm/widgets/markdown/normalizeDirectives.js +45 -0
- package/lib/esm/widgets/markdown/normalizeDirectives.js.map +1 -0
- package/lib/esm/widgets/markdown/remarkDirectiveHandler.js +96 -0
- package/lib/esm/widgets/markdown/remarkDirectiveHandler.js.map +1 -0
- package/lib/esm/widgets/monacoEditor/MonacoEditor.js +8 -14
- package/lib/esm/widgets/monacoEditor/MonacoEditor.js.map +1 -1
- package/lib/esm/widgets/schema-editor/ManagedSchema.js.map +1 -1
- package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js +3 -3
- package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js.map +1 -1
- package/lib/esm/widgets/schema-editor/json-schema4-utils.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/core/components/SidePanel.d.ts +4 -1
- package/lib/types/core/components/SidePanel.d.ts.map +1 -1
- package/lib/types/core/components/index.d.ts +0 -8
- package/lib/types/core/components/index.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/MessageBox.d.ts.map +1 -0
- package/lib/types/core/components/{Panel.d.ts → shadcn/Panel.d.ts} +3 -1
- package/lib/types/core/components/shadcn/Panel.d.ts.map +1 -0
- package/lib/types/core/components/{Badge.d.ts → shadcn/badge.d.ts} +4 -4
- package/lib/types/core/components/shadcn/badge.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/button.d.ts +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 -2
- 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.map +1 -0
- package/lib/types/core/components/shadcn/modal/DeleteModal.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/{dialog.d.ts → modal/dialog.d.ts} +7 -4
- package/lib/types/core/components/shadcn/modal/dialog.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/modal/index.d.ts +4 -0
- package/lib/types/core/components/shadcn/modal/index.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/popover.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/selectBox.d.ts +9 -5
- package/lib/types/core/components/shadcn/selectBox.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/tabs.d.ts +14 -5
- package/lib/types/core/components/shadcn/tabs.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/textarea.d.ts +6 -2
- package/lib/types/core/components/shadcn/textarea.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/tooltip.d.ts.map +1 -1
- package/lib/types/features/agent/PayloadBuilder.d.ts +22 -4
- package/lib/types/features/agent/PayloadBuilder.d.ts.map +1 -1
- package/lib/types/features/agent/chat/AgentChart.d.ts +3 -44
- package/lib/types/features/agent/chat/AgentChart.d.ts.map +1 -1
- package/lib/types/features/agent/chat/AskUserWidget.d.ts.map +1 -1
- package/lib/types/features/agent/chat/DocumentPanel.d.ts +16 -0
- package/lib/types/features/agent/chat/DocumentPanel.d.ts.map +1 -0
- package/lib/types/features/agent/chat/DocumentTabBar.d.ts +10 -0
- package/lib/types/features/agent/chat/DocumentTabBar.d.ts.map +1 -0
- package/lib/types/features/agent/chat/ModernAgentConversation.d.ts +69 -1
- package/lib/types/features/agent/chat/ModernAgentConversation.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +36 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/BatchProgressPanel.d.ts +18 -2
- package/lib/types/features/agent/chat/ModernAgentOutput/BatchProgressPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +4 -7
- package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts +2 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts +35 -7
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts +11 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts +20 -2
- 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 +18 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts.map +1 -1
- package/lib/types/features/agent/chat/SkillWidgetProvider.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useAgentPlans.d.ts +22 -0
- package/lib/types/features/agent/chat/hooks/useAgentPlans.d.ts.map +1 -0
- package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts +42 -0
- package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts.map +1 -0
- package/lib/types/features/agent/chat/hooks/useDocumentPanel.d.ts +22 -0
- package/lib/types/features/agent/chat/hooks/useDocumentPanel.d.ts.map +1 -0
- package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts +27 -0
- package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts.map +1 -0
- package/lib/types/features/agent/chat/index.d.ts +12 -8
- package/lib/types/features/agent/chat/index.d.ts.map +1 -1
- package/lib/types/features/agent/chat/types/document.d.ts +5 -0
- package/lib/types/features/agent/chat/types/document.d.ts.map +1 -0
- package/lib/types/features/agent/index.d.ts +0 -2
- package/lib/types/features/agent/index.d.ts.map +1 -1
- package/lib/types/features/store/collections/BrowseCollectionView.d.ts.map +1 -1
- package/lib/types/features/store/objects/ExportPropertiesModal.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/PropertiesEditorModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/index.d.ts +1 -1
- package/lib/types/features/store/objects/components/index.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/useDownloadFile.d.ts +35 -0
- package/lib/types/features/store/objects/components/useDownloadFile.d.ts.map +1 -0
- package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/SelectionActions.d.ts +1 -1
- package/lib/types/features/store/objects/selection/SelectionActions.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/ExportPropertiesAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts.map +1 -1
- package/lib/types/features/store/types/ObjectSchemaEditor.d.ts +2 -1
- package/lib/types/features/store/types/ObjectSchemaEditor.d.ts.map +1 -1
- package/lib/types/features/store/types/SelectContentTypeModal.d.ts +1 -1
- package/lib/types/features/store/types/SelectContentTypeModal.d.ts.map +1 -1
- package/lib/types/features/store/types/TableLayoutEditor.d.ts +2 -1
- package/lib/types/features/store/types/TableLayoutEditor.d.ts.map +1 -1
- package/lib/types/features/user/UserInfo.d.ts +12 -1
- package/lib/types/features/user/UserInfo.d.ts.map +1 -1
- package/lib/types/features/utils/print.d.ts.map +1 -1
- package/lib/types/layout/AppLayout.d.ts.map +1 -1
- package/lib/types/layout/Sidebar.d.ts +4 -2
- package/lib/types/layout/Sidebar.d.ts.map +1 -1
- package/lib/types/router/HistoryNavigator.d.ts.map +1 -1
- package/lib/types/router/Nav.d.ts +6 -1
- package/lib/types/router/Nav.d.ts.map +1 -1
- package/lib/types/session/UserSession.d.ts.map +1 -1
- package/lib/types/session/UserSessionProvider.d.ts +1 -0
- package/lib/types/session/UserSessionProvider.d.ts.map +1 -1
- package/lib/types/widgets/json-view/JSONCode.d.ts.map +1 -1
- package/lib/types/widgets/markdown/ArtifactContentRenderer.d.ts +10 -1
- package/lib/types/widgets/markdown/ArtifactContentRenderer.d.ts.map +1 -1
- package/lib/types/widgets/markdown/MarkdownFigure.d.ts +15 -0
- package/lib/types/widgets/markdown/MarkdownFigure.d.ts.map +1 -0
- package/lib/types/widgets/markdown/MarkdownRenderer.d.ts.map +1 -1
- package/lib/types/widgets/markdown/MermaidDiagram.d.ts.map +1 -1
- package/lib/types/widgets/markdown/codeBlockHandlers.d.ts +5 -2
- package/lib/types/widgets/markdown/codeBlockHandlers.d.ts.map +1 -1
- package/lib/types/widgets/markdown/index.d.ts +1 -0
- package/lib/types/widgets/markdown/index.d.ts.map +1 -1
- package/lib/types/widgets/markdown/normalizeCustomSchemeLinks.d.ts +9 -0
- package/lib/types/widgets/markdown/normalizeCustomSchemeLinks.d.ts.map +1 -0
- package/lib/types/widgets/markdown/normalizeDirectives.d.ts +20 -0
- package/lib/types/widgets/markdown/normalizeDirectives.d.ts.map +1 -0
- package/lib/types/widgets/markdown/remarkDirectiveHandler.d.ts +2 -0
- package/lib/types/widgets/markdown/remarkDirectiveHandler.d.ts.map +1 -0
- package/lib/types/widgets/monacoEditor/MonacoEditor.d.ts +1 -3
- package/lib/types/widgets/monacoEditor/MonacoEditor.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/vertesia-ui-core.js +1 -1
- package/lib/vertesia-ui-core.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-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 +14 -10
- package/src/core/components/InputList.tsx +1 -1
- package/src/core/components/Overlay.tsx +1 -1
- package/src/core/components/SidePanel.tsx +29 -15
- package/src/core/components/Switch.tsx +1 -1
- package/src/core/components/index.ts +0 -8
- package/src/core/components/shadcn/Panel.tsx +50 -0
- package/src/core/components/{Badge.tsx → shadcn/badge.tsx} +3 -3
- package/src/core/components/shadcn/command.tsx +1 -1
- package/src/core/components/shadcn/filters/filterBar.tsx +76 -87
- package/src/core/components/shadcn/index.ts +5 -3
- package/src/core/components/{ConfirmModal.tsx → shadcn/modal/ConfirmModal.tsx} +8 -8
- package/src/core/components/{DeleteModal.tsx → shadcn/modal/DeleteModal.tsx} +1 -1
- package/src/core/components/shadcn/{dialog.tsx → modal/dialog.tsx} +43 -32
- package/src/core/components/shadcn/modal/index.ts +3 -0
- package/src/core/components/shadcn/popover.tsx +4 -2
- package/src/core/components/shadcn/selectBox.tsx +71 -52
- package/src/core/components/shadcn/tabs.tsx +36 -19
- package/src/core/components/shadcn/textarea.tsx +43 -2
- package/src/core/components/shadcn/tooltip.tsx +23 -17
- package/src/features/agent/PayloadBuilder.tsx +70 -9
- package/src/features/agent/chat/AgentChart.tsx +46 -678
- package/src/features/agent/chat/AskUserWidget.tsx +4 -3
- package/src/features/agent/chat/DocumentPanel.tsx +120 -0
- package/src/features/agent/chat/DocumentTabBar.tsx +49 -0
- package/src/features/agent/chat/ModernAgentConversation.tsx +403 -549
- package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx +162 -55
- package/src/features/agent/chat/ModernAgentOutput/BatchProgressPanel.tsx +40 -10
- package/src/features/agent/chat/ModernAgentOutput/Header.tsx +12 -16
- package/src/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.tsx +3 -3
- package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +68 -75
- package/src/features/agent/chat/ModernAgentOutput/MessageItem.tsx +206 -94
- package/src/features/agent/chat/ModernAgentOutput/StreamingMessage.tsx +22 -5
- package/src/features/agent/chat/ModernAgentOutput/ToolCallGroup.tsx +295 -113
- package/src/features/agent/chat/ModernAgentOutput/WorkstreamTabs.tsx +11 -8
- package/src/features/agent/chat/ModernAgentOutput/utils.ts +133 -4
- package/src/features/agent/chat/SkillWidgetProvider.tsx +32 -15
- package/src/features/agent/chat/hooks/useAgentPlans.ts +190 -0
- package/src/features/agent/chat/hooks/useAgentStream.ts +239 -0
- package/src/features/agent/chat/hooks/useDocumentPanel.ts +118 -0
- package/src/features/agent/chat/hooks/useFileProcessing.ts +126 -0
- package/src/features/agent/chat/index.ts +18 -17
- package/src/features/agent/chat/types/document.ts +4 -0
- package/src/features/agent/index.ts +0 -2
- package/src/features/store/collections/BrowseCollectionView.tsx +5 -8
- package/src/features/store/collections/CreateCollection.tsx +8 -8
- package/src/features/store/collections/EditCollectionView.tsx +1 -1
- package/src/features/store/objects/DocumentSearchResults.tsx +9 -13
- package/src/features/store/objects/ExportPropertiesModal.tsx +9 -7
- package/src/features/store/objects/components/ContentOverview.tsx +29 -155
- package/src/features/store/objects/components/PropertiesEditorModal.tsx +0 -1
- package/src/features/store/objects/components/SelectDocumentModal.tsx +6 -6
- package/src/features/store/objects/components/VectorSearchWidget.tsx +2 -2
- package/src/features/store/objects/components/index.ts +1 -1
- package/src/features/store/objects/components/useDownloadFile.ts +237 -0
- package/src/features/store/objects/search/DocumentSearchContext.ts +1 -2
- package/src/features/store/objects/selection/SelectionActions.tsx +0 -4
- package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +13 -13
- package/src/features/store/objects/selection/actions/ChangeTypeAction.tsx +2 -6
- package/src/features/store/objects/selection/actions/ExportPropertiesAction.tsx +1 -3
- package/src/features/store/objects/selection/actions/StartWorkflowComponent.tsx +8 -8
- package/src/features/store/objects/upload/DocumentUploadModal.tsx +25 -25
- package/src/features/store/objects/upload/useSmartFileUploadProcessing.ts +16 -10
- package/src/features/store/types/ObjectSchemaEditor.tsx +32 -29
- package/src/features/store/types/SelectContentType.tsx +3 -3
- package/src/features/store/types/SelectContentTypeModal.tsx +17 -30
- package/src/features/store/types/TableLayoutEditor.tsx +14 -18
- package/src/features/user/UserInfo.tsx +176 -10
- package/src/features/utils/print.ts +0 -1
- package/src/layout/AppLayout.tsx +16 -44
- package/src/layout/Sidebar.tsx +7 -5
- package/src/router/HistoryNavigator.ts +9 -1
- package/src/router/Nav.tsx +7 -2
- package/src/session/UserSession.ts +38 -9
- package/src/session/UserSessionProvider.tsx +3 -2
- package/src/shell/apps/AppProjectSelector.tsx +2 -2
- package/src/shell/apps/StandaloneApp.tsx +3 -3
- package/src/shell/login/InviteAcceptModal.tsx +6 -6
- package/src/shell/login/SignInModal.tsx +1 -1
- package/src/shell/login/SignupForm.tsx +3 -3
- package/src/shell/login/UserInfo.tsx +5 -5
- package/src/widgets/json-view/JSONCode.tsx +1 -3
- package/src/widgets/json-view/JSONDisplay.tsx +1 -1
- package/src/widgets/markdown/ArtifactContentRenderer.tsx +115 -14
- package/src/widgets/markdown/MarkdownFigure.tsx +100 -0
- package/src/widgets/markdown/MarkdownRenderer.tsx +62 -9
- package/src/widgets/markdown/MermaidDiagram.tsx +97 -5
- package/src/widgets/markdown/codeBlockHandlers.test.tsx +3 -34
- package/src/widgets/markdown/codeBlockHandlers.tsx +47 -42
- package/src/widgets/markdown/index.ts +1 -0
- package/src/widgets/markdown/markdown.css +192 -0
- package/src/widgets/markdown/normalizeCustomSchemeLinks.test.ts +86 -0
- package/src/widgets/markdown/normalizeCustomSchemeLinks.ts +91 -0
- package/src/widgets/markdown/normalizeDirectives.ts +50 -0
- package/src/widgets/markdown/remarkDirectiveHandler.ts +119 -0
- package/src/widgets/monacoEditor/MonacoEditor.tsx +8 -22
- package/src/widgets/schema-editor/ManagedSchema.ts +1 -1
- package/src/widgets/schema-editor/editor/PropertyEditor.tsx +5 -5
- package/src/widgets/schema-editor/json-schema4-utils.ts +1 -1
- package/lib/esm/core/components/Badge.js.map +0 -1
- package/lib/esm/core/components/Button.js +0 -32
- package/lib/esm/core/components/Button.js.map +0 -1
- package/lib/esm/core/components/ConfirmModal.js +0 -10
- package/lib/esm/core/components/ConfirmModal.js.map +0 -1
- package/lib/esm/core/components/DeleteModal.js.map +0 -1
- package/lib/esm/core/components/MessageBox.js.map +0 -1
- package/lib/esm/core/components/Modal.js +0 -26
- package/lib/esm/core/components/Modal.js.map +0 -1
- package/lib/esm/core/components/Panel.js +0 -8
- package/lib/esm/core/components/Panel.js.map +0 -1
- package/lib/esm/core/components/SelectBox.js +0 -67
- package/lib/esm/core/components/SelectBox.js.map +0 -1
- package/lib/esm/core/components/shadcn/dialog.js.map +0 -1
- package/lib/esm/core/components/tabs/Tabs.js +0 -78
- package/lib/esm/core/components/tabs/Tabs.js.map +0 -1
- package/lib/esm/core/components/tabs/TabsContext.js +0 -7
- package/lib/esm/core/components/tabs/TabsContext.js.map +0 -1
- package/lib/esm/core/components/tabs/index.js +0 -3
- package/lib/esm/core/components/tabs/index.js.map +0 -1
- package/lib/esm/features/agent/createChartTool.js +0 -632
- package/lib/esm/features/agent/createChartTool.js.map +0 -1
- package/lib/esm/features/agent/examples.js +0 -295
- package/lib/esm/features/agent/examples.js.map +0 -1
- package/lib/esm/features/agent/visualization.js +0 -165
- package/lib/esm/features/agent/visualization.js.map +0 -1
- package/lib/esm/features/store/objects/components/useDownloadObject.js +0 -21
- package/lib/esm/features/store/objects/components/useDownloadObject.js.map +0 -1
- package/lib/types/core/components/Badge.d.ts.map +0 -1
- package/lib/types/core/components/Button.d.ts +0 -14
- package/lib/types/core/components/Button.d.ts.map +0 -1
- package/lib/types/core/components/ConfirmModal.d.ts.map +0 -1
- package/lib/types/core/components/DeleteModal.d.ts.map +0 -1
- package/lib/types/core/components/MessageBox.d.ts.map +0 -1
- package/lib/types/core/components/Modal.d.ts +0 -30
- package/lib/types/core/components/Modal.d.ts.map +0 -1
- package/lib/types/core/components/Panel.d.ts.map +0 -1
- package/lib/types/core/components/SelectBox.d.ts +0 -36
- package/lib/types/core/components/SelectBox.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/dialog.d.ts.map +0 -1
- package/lib/types/core/components/tabs/Tabs.d.ts +0 -25
- package/lib/types/core/components/tabs/Tabs.d.ts.map +0 -1
- package/lib/types/core/components/tabs/TabsContext.d.ts +0 -17
- package/lib/types/core/components/tabs/TabsContext.d.ts.map +0 -1
- package/lib/types/core/components/tabs/index.d.ts +0 -3
- package/lib/types/core/components/tabs/index.d.ts.map +0 -1
- package/lib/types/features/agent/createChartTool.d.ts +0 -178
- package/lib/types/features/agent/createChartTool.d.ts.map +0 -1
- package/lib/types/features/agent/examples.d.ts +0 -59
- package/lib/types/features/agent/examples.d.ts.map +0 -1
- package/lib/types/features/agent/visualization.d.ts +0 -95
- package/lib/types/features/agent/visualization.d.ts.map +0 -1
- package/lib/types/features/store/objects/components/useDownloadObject.d.ts +0 -4
- package/lib/types/features/store/objects/components/useDownloadObject.d.ts.map +0 -1
- package/src/core/components/Button.tsx +0 -63
- package/src/core/components/Modal.tsx +0 -144
- package/src/core/components/Panel.tsx +0 -34
- package/src/core/components/SelectBox.tsx +0 -188
- package/src/core/components/tabs/Tabs.tsx +0 -132
- package/src/core/components/tabs/TabsContext.ts +0 -25
- package/src/core/components/tabs/index.ts +0 -2
- package/src/features/agent/CHART_INSTRUCTIONS.md +0 -228
- package/src/features/agent/createChartTool.ts +0 -643
- package/src/features/agent/examples.ts +0 -321
- package/src/features/agent/visualization.ts +0 -227
- package/src/features/store/objects/components/useDownloadObject.ts +0 -29
- /package/lib/esm/core/components/{MessageBox.js → shadcn/MessageBox.js} +0 -0
- /package/lib/types/core/components/{MessageBox.d.ts → shadcn/MessageBox.d.ts} +0 -0
- /package/lib/types/core/components/{ConfirmModal.d.ts → shadcn/modal/ConfirmModal.d.ts} +0 -0
- /package/lib/types/core/components/{DeleteModal.d.ts → shadcn/modal/DeleteModal.d.ts} +0 -0
- /package/src/core/components/{MessageBox.tsx → shadcn/MessageBox.tsx} +0 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { AgentMessageType, } from '@vertesia/common';
|
|
3
|
+
import { insertMessageInTimeline, isInProgress } from '../ModernAgentOutput/utils';
|
|
4
|
+
/**
|
|
5
|
+
* Hook that manages the SSE message stream for an agent conversation.
|
|
6
|
+
*
|
|
7
|
+
* Encapsulates:
|
|
8
|
+
* - `client.store.workflows.streamMessages()` call and cleanup
|
|
9
|
+
* - STREAMING_CHUNK accumulation with RAF-batched flushing
|
|
10
|
+
* - Streaming→persisted message dedup (activity_id matching on THOUGHT/ANSWER arrival)
|
|
11
|
+
* - COMPLETE/IDLE streaming flush
|
|
12
|
+
* - Timestamp-based message dedup and optimistic QUESTION replacement
|
|
13
|
+
* - `isCompleted` derived state
|
|
14
|
+
* - State reset when `run.runId` changes
|
|
15
|
+
*
|
|
16
|
+
* File-processing SYSTEM messages are passed through to the messages array
|
|
17
|
+
* (Option A from the plan) so downstream hooks can react to them.
|
|
18
|
+
*/
|
|
19
|
+
export function useAgentStream(client, run) {
|
|
20
|
+
const [messages, setMessages] = useState([]);
|
|
21
|
+
const [isCompleted, setIsCompleted] = useState(false);
|
|
22
|
+
const [workflowStatus, setWorkflowStatus] = useState(null);
|
|
23
|
+
// Server-side file processing status updates
|
|
24
|
+
const [serverFileUpdates, setServerFileUpdates] = useState(new Map());
|
|
25
|
+
// Streaming messages by streaming_id for real-time chunk aggregation
|
|
26
|
+
const [streamingMessages, setStreamingMessages] = useState(new Map());
|
|
27
|
+
// RAF-batched streaming updates
|
|
28
|
+
const pendingStreamingChunks = useRef(new Map());
|
|
29
|
+
const streamingFlushScheduled = useRef(null);
|
|
30
|
+
// Debug: visual flash indicator for incoming chunks
|
|
31
|
+
const [debugChunkFlash, setDebugChunkFlash] = useState(false);
|
|
32
|
+
const debugFlashTimeout = useRef(null);
|
|
33
|
+
const flushStreamingChunks = useCallback(() => {
|
|
34
|
+
if (pendingStreamingChunks.current.size > 0) {
|
|
35
|
+
setStreamingMessages(new Map(pendingStreamingChunks.current));
|
|
36
|
+
setDebugChunkFlash(true);
|
|
37
|
+
if (debugFlashTimeout.current)
|
|
38
|
+
clearTimeout(debugFlashTimeout.current);
|
|
39
|
+
debugFlashTimeout.current = setTimeout(() => setDebugChunkFlash(false), 50);
|
|
40
|
+
}
|
|
41
|
+
streamingFlushScheduled.current = null;
|
|
42
|
+
}, []);
|
|
43
|
+
// Update isCompleted when messages change
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
setIsCompleted(!isInProgress(messages));
|
|
46
|
+
}, [messages]);
|
|
47
|
+
// Stream messages from the agent
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
// Reset all state when runId changes (new agent)
|
|
50
|
+
setMessages([]);
|
|
51
|
+
setWorkflowStatus(null);
|
|
52
|
+
setStreamingMessages(new Map());
|
|
53
|
+
setServerFileUpdates(new Map());
|
|
54
|
+
// Check workflow status
|
|
55
|
+
client.store.workflows.getRunDetails(run.runId, run.workflowId)
|
|
56
|
+
.then((statusResult) => {
|
|
57
|
+
setWorkflowStatus(statusResult.status);
|
|
58
|
+
})
|
|
59
|
+
.catch((error) => {
|
|
60
|
+
console.error('Failed to check workflow status:', error);
|
|
61
|
+
});
|
|
62
|
+
client.store.workflows.streamMessages(run.workflowId, run.runId, (message) => {
|
|
63
|
+
// Handle streaming chunks separately for real-time aggregation
|
|
64
|
+
// PERFORMANCE: Batch updates using RAF instead of immediate state updates
|
|
65
|
+
if (message.type === AgentMessageType.STREAMING_CHUNK) {
|
|
66
|
+
const details = message.details;
|
|
67
|
+
const streamKey = details?.activity_id || details?.streaming_id;
|
|
68
|
+
if (!streamKey)
|
|
69
|
+
return;
|
|
70
|
+
// Accumulate chunks in the ref (no state update yet)
|
|
71
|
+
const current = pendingStreamingChunks.current.get(streamKey) || {
|
|
72
|
+
text: '',
|
|
73
|
+
workstreamId: message.workstream_id,
|
|
74
|
+
startTimestamp: Date.now(),
|
|
75
|
+
activityId: details?.activity_id,
|
|
76
|
+
};
|
|
77
|
+
const newText = current.text + (message.message || '');
|
|
78
|
+
pendingStreamingChunks.current.set(streamKey, {
|
|
79
|
+
text: newText,
|
|
80
|
+
workstreamId: message.workstream_id,
|
|
81
|
+
isComplete: details.is_final,
|
|
82
|
+
startTimestamp: current.startTimestamp,
|
|
83
|
+
activityId: details?.activity_id,
|
|
84
|
+
});
|
|
85
|
+
// Schedule a flush if not already scheduled (~60 updates/sec max)
|
|
86
|
+
if (streamingFlushScheduled.current === null) {
|
|
87
|
+
streamingFlushScheduled.current = requestAnimationFrame(flushStreamingChunks);
|
|
88
|
+
}
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
// Handle file processing SYSTEM messages — update serverFileUpdates
|
|
92
|
+
// for downstream useFileProcessing hook, don't add to messages array
|
|
93
|
+
if (message.type === AgentMessageType.SYSTEM) {
|
|
94
|
+
const details = message.details;
|
|
95
|
+
if (details?.system_type === 'file_processing' && details.files) {
|
|
96
|
+
setServerFileUpdates(prev => {
|
|
97
|
+
const newMap = new Map(prev);
|
|
98
|
+
for (const file of details.files) {
|
|
99
|
+
newMap.set(file.id, file);
|
|
100
|
+
}
|
|
101
|
+
return newMap;
|
|
102
|
+
});
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
// Other SYSTEM messages fall through to normal handling
|
|
106
|
+
}
|
|
107
|
+
// When THOUGHT or ANSWER arrives with activity_id, remove matching streaming message
|
|
108
|
+
if ((message.type === AgentMessageType.THOUGHT || message.type === AgentMessageType.ANSWER) &&
|
|
109
|
+
message.details?.activity_id) {
|
|
110
|
+
const activityId = message.details.activity_id;
|
|
111
|
+
pendingStreamingChunks.current.delete(activityId);
|
|
112
|
+
setStreamingMessages(prev => {
|
|
113
|
+
if (prev.has(activityId)) {
|
|
114
|
+
const next = new Map(prev);
|
|
115
|
+
next.delete(activityId);
|
|
116
|
+
return next;
|
|
117
|
+
}
|
|
118
|
+
return prev;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
// On COMPLETE or IDLE, flush any pending chunks
|
|
122
|
+
if (message.type === AgentMessageType.COMPLETE || message.type === AgentMessageType.IDLE) {
|
|
123
|
+
if (pendingStreamingChunks.current.size > 0) {
|
|
124
|
+
flushStreamingChunks();
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if (message.message) {
|
|
128
|
+
setMessages((prev) => {
|
|
129
|
+
// Check for duplicate by timestamp
|
|
130
|
+
if (prev.find((m) => m.timestamp === message.timestamp)) {
|
|
131
|
+
return prev;
|
|
132
|
+
}
|
|
133
|
+
// For QUESTION messages from server, replace any optimistic version
|
|
134
|
+
if (message.type === AgentMessageType.QUESTION && !message.details?._optimistic) {
|
|
135
|
+
const withoutOptimistic = prev.filter((m) => !(m.type === AgentMessageType.QUESTION && m.details?._optimistic));
|
|
136
|
+
insertMessageInTimeline(withoutOptimistic, message);
|
|
137
|
+
return [...withoutOptimistic];
|
|
138
|
+
}
|
|
139
|
+
insertMessageInTimeline(prev, message);
|
|
140
|
+
return [...prev];
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
return () => {
|
|
145
|
+
setMessages([]);
|
|
146
|
+
if (streamingFlushScheduled.current !== null) {
|
|
147
|
+
cancelAnimationFrame(streamingFlushScheduled.current);
|
|
148
|
+
streamingFlushScheduled.current = null;
|
|
149
|
+
}
|
|
150
|
+
pendingStreamingChunks.current.clear();
|
|
151
|
+
};
|
|
152
|
+
}, [run.runId, client.store.workflows, flushStreamingChunks]);
|
|
153
|
+
// Add an optimistic message to the timeline
|
|
154
|
+
const addOptimisticMessage = useCallback((msg) => {
|
|
155
|
+
setMessages((prev) => {
|
|
156
|
+
const newMessages = [...prev, msg];
|
|
157
|
+
newMessages.sort((a, b) => {
|
|
158
|
+
const timeA = typeof a.timestamp === 'number' ? a.timestamp : new Date(a.timestamp).getTime();
|
|
159
|
+
const timeB = typeof b.timestamp === 'number' ? b.timestamp : new Date(b.timestamp).getTime();
|
|
160
|
+
return timeA - timeB;
|
|
161
|
+
});
|
|
162
|
+
return newMessages;
|
|
163
|
+
});
|
|
164
|
+
}, []);
|
|
165
|
+
// Remove optimistic messages matching a predicate
|
|
166
|
+
const removeOptimisticMessages = useCallback((predicate) => {
|
|
167
|
+
setMessages((prev) => prev.filter((m) => !predicate(m)));
|
|
168
|
+
}, []);
|
|
169
|
+
return {
|
|
170
|
+
messages,
|
|
171
|
+
streamingMessages,
|
|
172
|
+
isCompleted,
|
|
173
|
+
debugChunkFlash,
|
|
174
|
+
addOptimisticMessage,
|
|
175
|
+
removeOptimisticMessages,
|
|
176
|
+
workflowStatus,
|
|
177
|
+
serverFileUpdates,
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
//# sourceMappingURL=useAgentStream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAgentStream.js","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/hooks/useAgentStream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EAEH,gBAAgB,GAInB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AA2BnF;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,cAAc,CAC1B,MAAsB,EACtB,GAAyB;IAEzB,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAiB,EAAE,CAAC,CAAC;IAC7D,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAE1E,6CAA6C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AAC,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC;gBAC9F,OAAO,KAAK,GAAG,KAAK,CAAC;YACzB,CAAC,CAAC,CAAC;YACH,OAAO,WAAW,CAAC;QACvB,CAAC,CAAC,CAAC;IACP,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,kDAAkD;IAClD,MAAM,wBAAwB,GAAG,WAAW,CAAC,CAAC,SAAyC,EAAE,EAAE;QACvF,WAAW,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7D,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACH,QAAQ;QACR,iBAAiB;QACjB,WAAW;QACX,eAAe;QACf,oBAAoB;QACpB,wBAAwB;QACxB,cAAc;QACd,iBAAiB;KACpB,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { AgentMessageType } from '@vertesia/common';
|
|
3
|
+
/**
|
|
4
|
+
* Hook that manages the document side panel.
|
|
5
|
+
*
|
|
6
|
+
* Listens for UPDATE messages with `event_class: 'document_created' | 'document_updated'`
|
|
7
|
+
* and manages panel open/close, tab selection, and refresh state.
|
|
8
|
+
*
|
|
9
|
+
* Uses incremental processing — only scans new messages.
|
|
10
|
+
*/
|
|
11
|
+
export function useDocumentPanel(messages) {
|
|
12
|
+
const [openDocuments, setOpenDocuments] = useState([]);
|
|
13
|
+
const [activeDocumentId, setActiveDocumentId] = useState(null);
|
|
14
|
+
const [isDocPanelOpen, setIsDocPanelOpen] = useState(false);
|
|
15
|
+
const [docRefreshKey, setDocRefreshKey] = useState(0);
|
|
16
|
+
// Incremental processing
|
|
17
|
+
const lastProcessedIndex = useRef(-1);
|
|
18
|
+
// Reset when messages are cleared
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
if (messages.length === 0) {
|
|
21
|
+
setOpenDocuments([]);
|
|
22
|
+
setActiveDocumentId(null);
|
|
23
|
+
setIsDocPanelOpen(false);
|
|
24
|
+
setDocRefreshKey(0);
|
|
25
|
+
lastProcessedIndex.current = -1;
|
|
26
|
+
}
|
|
27
|
+
}, [messages.length === 0]);
|
|
28
|
+
// Process new messages incrementally for document events
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
const startIdx = lastProcessedIndex.current + 1;
|
|
31
|
+
if (startIdx >= messages.length)
|
|
32
|
+
return;
|
|
33
|
+
for (let i = startIdx; i < messages.length; i++) {
|
|
34
|
+
const message = messages[i];
|
|
35
|
+
if (message.type === AgentMessageType.UPDATE && message.details) {
|
|
36
|
+
const details = message.details;
|
|
37
|
+
if (details.event_class === 'document_created' || details.event_class === 'document_updated') {
|
|
38
|
+
const docId = details.document_id;
|
|
39
|
+
const docTitle = details.title;
|
|
40
|
+
if (docId) {
|
|
41
|
+
setOpenDocuments(prev => {
|
|
42
|
+
if (prev.some(d => d.id === docId))
|
|
43
|
+
return prev;
|
|
44
|
+
return [...prev, { id: docId, title: docTitle || 'Document' }];
|
|
45
|
+
});
|
|
46
|
+
setActiveDocumentId(docId);
|
|
47
|
+
setIsDocPanelOpen(true);
|
|
48
|
+
if (details.event_class === 'document_updated') {
|
|
49
|
+
setDocRefreshKey(k => k + 1);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
lastProcessedIndex.current = messages.length - 1;
|
|
56
|
+
}, [messages]);
|
|
57
|
+
const closeDocPanel = useCallback(() => {
|
|
58
|
+
setIsDocPanelOpen(false);
|
|
59
|
+
}, []);
|
|
60
|
+
const closeDocument = useCallback((docId) => {
|
|
61
|
+
setOpenDocuments(prev => {
|
|
62
|
+
const next = prev.filter(d => d.id !== docId);
|
|
63
|
+
if (next.length === 0) {
|
|
64
|
+
setIsDocPanelOpen(false);
|
|
65
|
+
setActiveDocumentId(null);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
setActiveDocumentId(current => {
|
|
69
|
+
if (current === docId)
|
|
70
|
+
return next[0].id;
|
|
71
|
+
return current;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
return next;
|
|
75
|
+
});
|
|
76
|
+
}, []);
|
|
77
|
+
const selectDocument = useCallback((docId) => {
|
|
78
|
+
setActiveDocumentId(docId);
|
|
79
|
+
}, []);
|
|
80
|
+
const openDocInPanel = useCallback((docId) => {
|
|
81
|
+
setOpenDocuments(prev => {
|
|
82
|
+
if (prev.some(d => d.id === docId))
|
|
83
|
+
return prev;
|
|
84
|
+
return [...prev, { id: docId, title: 'Document' }];
|
|
85
|
+
});
|
|
86
|
+
setActiveDocumentId(docId);
|
|
87
|
+
setIsDocPanelOpen(true);
|
|
88
|
+
}, []);
|
|
89
|
+
return {
|
|
90
|
+
openDocuments,
|
|
91
|
+
activeDocumentId,
|
|
92
|
+
isDocPanelOpen,
|
|
93
|
+
docRefreshKey,
|
|
94
|
+
closeDocPanel,
|
|
95
|
+
closeDocument,
|
|
96
|
+
selectDocument,
|
|
97
|
+
openDocInPanel,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=useDocumentPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDocumentPanel.js","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/hooks/useDocumentPanel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAgB,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAclE;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAAC,QAA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
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
2
|
+
import { FileProcessingStatus, } from '@vertesia/common';
|
|
3
|
+
/**
|
|
4
|
+
* Hook that manages file upload and processing state.
|
|
5
|
+
*
|
|
6
|
+
* Combines local optimistic upload state with server-side processing
|
|
7
|
+
* status updates (from `useAgentStream.serverFileUpdates`).
|
|
8
|
+
*
|
|
9
|
+
* @param client - Vertesia client for artifact uploads and workflow signals
|
|
10
|
+
* @param run - Current workflow execution
|
|
11
|
+
* @param serverFileUpdates - Server-side file processing updates from useAgentStream
|
|
12
|
+
* @param toast - Toast notification function for error display
|
|
13
|
+
*/
|
|
14
|
+
export function useFileProcessing(client, run, serverFileUpdates, toast) {
|
|
15
|
+
// Local optimistic file state (uploads initiated from the UI)
|
|
16
|
+
const [localFiles, setLocalFiles] = useState(new Map());
|
|
17
|
+
// Reset when run changes
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
setLocalFiles(new Map());
|
|
20
|
+
}, [run.runId]);
|
|
21
|
+
// Merge local + server state (server takes precedence for same IDs)
|
|
22
|
+
const processingFiles = useMemo(() => {
|
|
23
|
+
const merged = new Map(localFiles);
|
|
24
|
+
serverFileUpdates.forEach((file, id) => {
|
|
25
|
+
merged.set(id, file);
|
|
26
|
+
});
|
|
27
|
+
return merged;
|
|
28
|
+
}, [localFiles, serverFileUpdates]);
|
|
29
|
+
const hasProcessingFiles = useMemo(() => Array.from(processingFiles.values()).some(f => f.status === FileProcessingStatus.UPLOADING || f.status === FileProcessingStatus.PROCESSING), [processingFiles]);
|
|
30
|
+
const handleFileUpload = useCallback(async (files) => {
|
|
31
|
+
for (const file of files) {
|
|
32
|
+
const fileId = `file-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
33
|
+
const artifactPath = `files/${file.name}`;
|
|
34
|
+
// Add to local state immediately (optimistic - uploading status)
|
|
35
|
+
const fileState = {
|
|
36
|
+
id: fileId,
|
|
37
|
+
name: file.name,
|
|
38
|
+
content_type: file.type || 'application/octet-stream',
|
|
39
|
+
size: file.size,
|
|
40
|
+
status: FileProcessingStatus.UPLOADING,
|
|
41
|
+
started_at: Date.now(),
|
|
42
|
+
};
|
|
43
|
+
setLocalFiles(prev => new Map(prev).set(fileId, fileState));
|
|
44
|
+
try {
|
|
45
|
+
// Upload to artifact storage
|
|
46
|
+
await client.files.uploadArtifact(run.runId, artifactPath, file);
|
|
47
|
+
// Update local state to processing
|
|
48
|
+
setLocalFiles(prev => {
|
|
49
|
+
const newMap = new Map(prev);
|
|
50
|
+
const f = newMap.get(fileId);
|
|
51
|
+
if (f) {
|
|
52
|
+
f.status = FileProcessingStatus.PROCESSING;
|
|
53
|
+
f.artifact_path = artifactPath;
|
|
54
|
+
f.reference = `artifact:${artifactPath}`;
|
|
55
|
+
}
|
|
56
|
+
return newMap;
|
|
57
|
+
});
|
|
58
|
+
// Signal workflow that file was uploaded
|
|
59
|
+
await client.store.workflows.sendSignal(run.workflowId, run.runId, 'FileUploaded', {
|
|
60
|
+
id: fileId,
|
|
61
|
+
name: file.name,
|
|
62
|
+
content_type: file.type || 'application/octet-stream',
|
|
63
|
+
reference: `artifact:${artifactPath}`,
|
|
64
|
+
artifact_path: artifactPath,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
catch (error) {
|
|
68
|
+
// Update local state to error
|
|
69
|
+
setLocalFiles(prev => {
|
|
70
|
+
const newMap = new Map(prev);
|
|
71
|
+
const f = newMap.get(fileId);
|
|
72
|
+
if (f) {
|
|
73
|
+
f.status = FileProcessingStatus.ERROR;
|
|
74
|
+
f.error = error instanceof Error ? error.message : 'Upload failed';
|
|
75
|
+
f.completed_at = Date.now();
|
|
76
|
+
}
|
|
77
|
+
return newMap;
|
|
78
|
+
});
|
|
79
|
+
toast({
|
|
80
|
+
status: 'error',
|
|
81
|
+
title: 'Upload Failed',
|
|
82
|
+
description: error instanceof Error ? error.message : 'Failed to upload file',
|
|
83
|
+
duration: 3000,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}, [client, run, toast]);
|
|
88
|
+
return { processingFiles, hasProcessingFiles, handleFileUpload };
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=useFileProcessing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFileProcessing.js","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/hooks/useFileProcessing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAElE,OAAO,EAGH,oBAAoB,GACvB,MAAM,kBAAkB,CAAC;AAU1B;;;;;;;;;;GAUG;AACH,MAAM,UAAU,iBAAiB,CAC7B,MAAsB,EACtB,GAAyB,EACzB,iBAAgD,EAChD,KAAc;IAEd,8DAA8D;IAC9D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAgC,IAAI,GAAG,EAAE,CAAC,CAAC;IAEvF,yBAAyB;IACzB,SAAS,CAAC,GAAG,EAAE;QACX,aAAa,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;IAC7B,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;IAEhB,oEAAoE;IACpE,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,EAAE;QACjC,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC;QACnC,iBAAiB,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE;YACnC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAClB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAEpC,MAAM,kBAAkB,GAAG,OAAO,CAAC,GAAG,EAAE,CACpC,KAAK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;oBACF,MAAM,EAAE,OAAO;oBACf,KAAK,EAAE,eAAe;oBACtB,WAAW,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,uBAAuB;oBAC7E,QAAQ,EAAE,IAAI;iBACjB,CAAC,CAAC;YACP,CAAC;QACL,CAAC;IACL,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IAEzB,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,CAAC;AACrE,CAAC"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
export { AgentChart, isRechartsSpec, isVegaLiteSpec } from "./AgentChart";
|
|
2
|
+
export * from "./AnimatedThinkingDots";
|
|
1
3
|
export * from "./JumpingDots";
|
|
2
4
|
export { ModernAgentConversation } from "./ModernAgentConversation";
|
|
3
|
-
export * from "./WaitingMessages";
|
|
4
|
-
export * from "./AnimatedThinkingDots";
|
|
5
|
-
export { AgentChart, isVegaLiteSpec, isRechartsSpec, } from "./AgentChart";
|
|
6
5
|
export { VegaLiteChart } from "./VegaLiteChart";
|
|
6
|
+
export * from "./WaitingMessages";
|
|
7
7
|
// AskUser widget for displaying agent prompts/questions
|
|
8
|
-
export { AskUserWidget, ConfirmationWidget
|
|
8
|
+
export { AskUserWidget, ConfirmationWidget } from "./AskUserWidget";
|
|
9
9
|
// MessageItem widget and types for external use
|
|
10
|
-
export { default as MessageItem } from "./ModernAgentOutput/MessageItem";
|
|
10
|
+
export { default as MessageItem, MESSAGE_STYLES } from "./ModernAgentOutput/MessageItem";
|
|
11
11
|
// MessagesContainer widget and types for external use
|
|
12
12
|
export { default as MessagesContainer } from "./ModernAgentOutput/MessagesContainer";
|
|
13
13
|
// Header widget and types for external use
|
|
14
14
|
export { default as Header } from "./ModernAgentOutput/Header";
|
|
15
15
|
// StreamingMessage widget and types for external use
|
|
16
16
|
export { default as StreamingMessage } from "./ModernAgentOutput/StreamingMessage";
|
|
17
|
+
export * from "./SkillWidgetProvider";
|
|
17
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/features/agent/chat/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/features/agent/chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,UAAU,EAAE,cAAc,EAAE,cAAc,EAG7C,MAAM,cAAc,CAAC;AACtB,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,cAAc,mBAAmB,CAAC;AAGlC,wDAAwD;AACxD,OAAO,EACH,aAAa,EACb,kBAAkB,EACrB,MAAM,iBAAiB,CAAC;AACzB,gDAAgD;AAChD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEzF,sDAAsD;AACtD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAErF,2CAA2C;AAC3C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAE/D,qDAAqD;AACrD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAMnF,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.js","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/types/document.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/agent/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/agent/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { DocumentSearchResultsWithDropZone, DocumentSearchResults } from "../objects/DocumentSearchResults";
|
|
2
|
+
import { getContentTypeRefId } from "@vertesia/common";
|
|
4
3
|
import { useToast } from "@vertesia/ui/core";
|
|
5
|
-
import {
|
|
4
|
+
import { useUserSession } from "@vertesia/ui/session";
|
|
5
|
+
import { DocumentSearchResults, DocumentSearchResultsWithDropZone } from "../objects/DocumentSearchResults";
|
|
6
6
|
export function BrowseCollectionView({ collection }) {
|
|
7
7
|
const toast = useToast();
|
|
8
8
|
const { client, typeRegistry } = useUserSession();
|
|
9
|
-
const search = useDocumentSearch();
|
|
10
|
-
search.query.all_revisions = true;
|
|
11
9
|
const onUploadDone = async (objectIds) => {
|
|
12
10
|
if (objectIds.length > 0) {
|
|
13
11
|
await client.store.collections.addMembers(collection.id, objectIds).catch(err => {
|
|
@@ -28,7 +26,7 @@ function getTableLayout(collection, typeRegistry) {
|
|
|
28
26
|
return table_layout;
|
|
29
27
|
}
|
|
30
28
|
if (collection.type && typeRegistry) {
|
|
31
|
-
table_layout = typeRegistry?.getTypeLayout(collection.type
|
|
29
|
+
table_layout = typeRegistry?.getTypeLayout(getContentTypeRefId(collection.type));
|
|
32
30
|
}
|
|
33
31
|
if (table_layout && table_layout.length > 0) {
|
|
34
32
|
return table_layout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowseCollectionView.js","sourceRoot":"","sources":["../../../../../src/features/store/collections/BrowseCollectionView.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"BrowseCollectionView.js","sourceRoot":"","sources":["../../../../../src/features/store/collections/B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YAAY,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1C,OAAO,YAAY,CAAC;IACxB,CAAC;IACD,IAAI,UAAU,CAAC,IAAI,IAAI,YAAY,EAAE,CAAC;QAClC,YAAY,GAAG,YAAY,EAAE,aAAa,CAAC,mBAAmB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IACrF,CAAC;IACD,IAAI,YAAY,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1C,OAAO,YAAY,CAAC;IACxB,CAAC;SAAM,CAAC;QACJ,OAAO,SAAS,CAAC;IACrB,CAAC;AACL,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useToast,
|
|
2
|
+
import { useToast, ModalBody, FormItem, ModalFooter, Input, Switch, Button, Modal, ModalTitle, Textarea } from "@vertesia/ui/core";
|
|
3
3
|
import { SelectContentType } from "../types/SelectContentType";
|
|
4
4
|
import { useNavigate } from "@vertesia/ui/router";
|
|
5
5
|
import { useUserSession } from "@vertesia/ui/session";
|
|
@@ -64,7 +64,7 @@ export function CreateCollectionForm({ onClose, redirect = true, onAddToCollecti
|
|
|
64
64
|
})
|
|
65
65
|
.finally(() => setProcessing(false));
|
|
66
66
|
};
|
|
67
|
-
return (_jsxs("form", { onSubmit: (e) => e.preventDefault(), children: [_jsxs(
|
|
67
|
+
return (_jsxs("form", { onSubmit: (e) => e.preventDefault(), children: [_jsxs(ModalBody, { children: [_jsx(FormItem, { label: "Name", required: true, children: _jsx(Input, { type: "text", value: payload.name || "", onChange: (value) => setPayloadProp("name", value) }) }), _jsx(FormItem, { label: "Description", className: "mt-2", children: _jsx(Textarea, { value: payload.description || "", onChange: (ev) => setPayloadProp("description", ev.target.value) }) }), _jsx(FormItem, { label: "Dynamic Collection", className: "mt-2", direction: "row", description: "Dynamically fetch content for the collection based on a query. If not enabled, then content must be added by users or agents.", children: _jsx(Switch, { value: payload.dynamic || false, onChange: (value) => setPayloadProp("dynamic", value) }) }), !payload.dynamic &&
|
|
68
68
|
_jsx(FormItem, { label: "Allowed Content Types", className: "mt-4", description: "Optionally select which content types can be added to the collection. If not set, then all content types are allowed.", children: _jsx(SelectContentType, { defaultValue: payload.allowed_types || null, onChange: (v) => {
|
|
69
69
|
if (Array.isArray(v)) {
|
|
70
70
|
setPayloadProp("allowed_types", v.map(type => type.id));
|
|
@@ -79,9 +79,9 @@ export function CreateCollectionForm({ onClose, redirect = true, onAddToCollecti
|
|
|
79
79
|
else {
|
|
80
80
|
setPayloadProp("type", v?.id || null);
|
|
81
81
|
}
|
|
82
|
-
}, isClearable: true }) })] }), _jsx(
|
|
82
|
+
}, isClearable: true }) })] }), _jsx(ModalFooter, { children: _jsx(Button, { isDisabled: isProcessing, onClick: onCreate, children: "Create Collection" }) })] }));
|
|
83
83
|
}
|
|
84
84
|
export function CreateCollectionModal({ isOpen, onClose }) {
|
|
85
|
-
return (_jsxs(
|
|
85
|
+
return (_jsxs(Modal, { onClose: onClose, isOpen: isOpen, children: [_jsx(ModalTitle, { children: "Create a Collection" }), _jsx(CreateCollectionForm, { onClose: onClose })] }));
|
|
86
86
|
}
|
|
87
87
|
//# sourceMappingURL=CreateCollection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateCollection.js","sourceRoot":"","sources":["../../../../../src/features/store/collections/CreateCollection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"CreateCollection.js","sourceRoot":"","sources":["../../../../../src/features/store/collections/CreateCollection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACnI,OAAO,EAAE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C;gCACL,CAAC,EACD,WAAW,QAAC,QAAQ,SACtB,GACK,EAEf,KAAC,QAAQ,IAAC,KAAK,EAAC,MAAM,EAAC,SAAS,EAAC,MAAM,EAAC,WAAW,EAAC,0FAA0F,YAC1I,KAAC,iBAAiB,IACd,YAAY,EAAE,OAAO,CAAC,IAAI,IAAI,IAAI,EAClC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;gCACZ,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;oCACnB,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;gCAC1D,CAAC;qCAAM,CAAC;oCACJ,cAAc,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,IAAI,IAAI,CAAC,CAAC;gCAC1C,CAAC;4BACL,CAAC,EACD,WAAW,SACb,GACK,IACH,EACZ,KAAC,WAAW,cACR,KAAC,MAAM,IAAC,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,kCAE1C,GACC,IACV,CACX,CAAC;AACN,CAAC;AAMD,MAAM,UAAU,qBAAqB,CAAC,EAAE,MAAM,EAAE,OAAO,EAA8B;IACjF,OAAO,CACH,MAAC,KAAK,IAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,aACnC,KAAC,UAAU,sCAAiC,EAC5C,KAAC,oBAAoB,IAAC,OAAO,EAAE,OAAO,GAAI,IACtC,CACX,CAAC;AACN,CAAC"}
|
|
@@ -120,7 +120,7 @@ export function EditCollectionView({ refetch, collection }) {
|
|
|
120
120
|
else {
|
|
121
121
|
setField("allowed_types", v ? [v.id] : []);
|
|
122
122
|
}
|
|
123
|
-
}, isClearable: true, multiple: true }) }), collection.dynamic && (_jsx(FormItem, { label: "Query", description: "Define the query to dynamically fetch content for the collection.", children: _jsx(Textarea, { className: Styles.INPUT, value: metadata.query, onChange: (e) => setField("query", e.target.value) }) })), _jsx(FormItem, { label: "Table Layout", description: "Define a custom layout for displaying the collection in tables.", children: _jsx(MonacoEditor, { className: "border-1 rounded-md border-border", value: tableLayoutValue, language: "json", editorRef: tableLayoutRef, theme: theme === 'dark' ? 'vs-dark' : 'vs' }) }), _jsx(FormItem, { label: "Type", description: "Select a content type to assign custom properties and data to the collection.", children: _jsx(SelectContentType, { defaultValue: metadata.type || null, onChange: (v) => {
|
|
123
|
+
}, isClearable: true, multiple: true }) }), collection.dynamic && (_jsx(FormItem, { label: "Query", description: "Define the query to dynamically fetch content for the collection.", children: _jsx(Textarea, { className: Styles.INPUT, value: metadata.query, onChange: (e) => setField("query", e.target.value) }) })), _jsx(FormItem, { label: "Table Layout", description: "Define a custom layout for displaying the collection in tables.", className: "h-[200px]", children: _jsx(MonacoEditor, { className: "border-1 rounded-md border-border", value: tableLayoutValue, language: "json", editorRef: tableLayoutRef, theme: theme === 'dark' ? 'vs-dark' : 'vs' }) }), _jsx(FormItem, { label: "Type", description: "Select a content type to assign custom properties and data to the collection.", children: _jsx(SelectContentType, { defaultValue: metadata.type || null, onChange: (v) => {
|
|
124
124
|
if (Array.isArray(v)) {
|
|
125
125
|
setField("type", v.length > 0 ? v[0].id : null);
|
|
126
126
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditCollectionView.js","sourceRoot":"","sources":["../../../../../src/features/store/collections/EditCollectionView.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7H,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OA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