@vertesia/ui 1.0.0-dev.20260227.112605Z → 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.
Files changed (796) hide show
  1. package/lib/esm/core/components/SelectList.js +3 -1
  2. package/lib/esm/core/components/SelectList.js.map +1 -1
  3. package/lib/esm/core/components/SidePanel.js +2 -2
  4. package/lib/esm/core/components/SidePanel.js.map +1 -1
  5. package/lib/esm/core/components/index.js +0 -5
  6. package/lib/esm/core/components/index.js.map +1 -1
  7. package/lib/esm/core/components/shadcn/breadcrumb.js +11 -7
  8. package/lib/esm/core/components/shadcn/breadcrumb.js.map +1 -1
  9. package/lib/esm/core/components/shadcn/button.js +5 -3
  10. package/lib/esm/core/components/shadcn/button.js.map +1 -1
  11. package/lib/esm/core/components/shadcn/collaspible.js +14 -0
  12. package/lib/esm/core/components/shadcn/collaspible.js.map +1 -0
  13. package/lib/esm/core/components/shadcn/dropdown.js +64 -0
  14. package/lib/esm/core/components/shadcn/dropdown.js.map +1 -0
  15. package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js +3 -1
  16. package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js.map +1 -1
  17. package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js +3 -1
  18. package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js.map +1 -1
  19. package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js +1 -1
  20. package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js.map +1 -1
  21. package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js +1 -1
  22. package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js.map +1 -1
  23. package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js +4 -2
  24. package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js.map +1 -1
  25. package/lib/esm/core/components/shadcn/filters/filterBar.js +7 -4
  26. package/lib/esm/core/components/shadcn/filters/filterBar.js.map +1 -1
  27. package/lib/esm/core/components/shadcn/index.js +4 -0
  28. package/lib/esm/core/components/shadcn/index.js.map +1 -1
  29. package/lib/esm/core/components/shadcn/modal/ConfirmModal.js +4 -2
  30. package/lib/esm/core/components/shadcn/modal/ConfirmModal.js.map +1 -1
  31. package/lib/esm/core/components/shadcn/modal/DeleteModal.js +5 -3
  32. package/lib/esm/core/components/shadcn/modal/DeleteModal.js.map +1 -1
  33. package/lib/esm/core/components/shadcn/popover.js +11 -7
  34. package/lib/esm/core/components/shadcn/popover.js.map +1 -1
  35. package/lib/esm/core/components/shadcn/radioGroup.js +29 -0
  36. package/lib/esm/core/components/shadcn/radioGroup.js.map +1 -0
  37. package/lib/esm/core/components/shadcn/selectBox.js +1 -1
  38. package/lib/esm/core/components/shadcn/switch.js +19 -0
  39. package/lib/esm/core/components/shadcn/switch.js.map +1 -0
  40. package/lib/esm/core/components/shadcn/tabs.js +6 -6
  41. package/lib/esm/core/components/shadcn/tabs.js.map +1 -1
  42. package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js +8 -6
  43. package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js.map +1 -1
  44. package/lib/esm/core/components/shadcn/tooltip.js +1 -1
  45. package/lib/esm/core/components/shadcn/tooltip.js.map +1 -1
  46. package/lib/esm/core/components/toast/NotificationPanel.js +3 -3
  47. package/lib/esm/core/components/toast/NotificationPanel.js.map +1 -1
  48. package/lib/esm/core/hooks/PortalContainerProvider.js +9 -3
  49. package/lib/esm/core/hooks/PortalContainerProvider.js.map +1 -1
  50. package/lib/esm/env/index.js +16 -9
  51. package/lib/esm/env/index.js.map +1 -1
  52. package/lib/esm/features/agent/PayloadBuilder.js +87 -15
  53. package/lib/esm/features/agent/PayloadBuilder.js.map +1 -1
  54. package/lib/esm/features/agent/chat/AgentRightPanel.js +159 -0
  55. package/lib/esm/features/agent/chat/AgentRightPanel.js.map +1 -0
  56. package/lib/esm/features/agent/chat/ArtifactsTab.js +69 -0
  57. package/lib/esm/features/agent/chat/ArtifactsTab.js.map +1 -0
  58. package/lib/esm/features/agent/chat/AskUserWidget.js +12 -6
  59. package/lib/esm/features/agent/chat/AskUserWidget.js.map +1 -1
  60. package/lib/esm/features/agent/chat/DocumentPanel.js +6 -3
  61. package/lib/esm/features/agent/chat/DocumentPanel.js.map +1 -1
  62. package/lib/esm/features/agent/chat/ImageLightbox.js +3 -1
  63. package/lib/esm/features/agent/chat/ImageLightbox.js.map +1 -1
  64. package/lib/esm/features/agent/chat/ModernAgentConversation.js +241 -113
  65. package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +1 -1
  66. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +122 -52
  67. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -1
  68. package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js +5 -3
  69. package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js.map +1 -1
  70. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +76 -33
  71. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +1 -1
  72. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +82 -83
  73. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +1 -1
  74. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +16 -14
  75. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +1 -1
  76. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +20 -5
  77. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +1 -1
  78. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js +8 -6
  79. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js.map +1 -1
  80. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js +12 -10
  81. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js.map +1 -1
  82. package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js +5 -3
  83. package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js.map +1 -1
  84. package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js +104 -13
  85. package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js.map +1 -1
  86. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +9 -5
  87. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +1 -1
  88. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js +160 -76
  89. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js.map +1 -1
  90. package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js +3 -1
  91. package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js.map +1 -1
  92. package/lib/esm/features/agent/chat/VegaLiteChart.js +14 -2
  93. package/lib/esm/features/agent/chat/VegaLiteChart.js.map +1 -1
  94. package/lib/esm/features/agent/chat/hooks/useAgentPlans.js +3 -8
  95. package/lib/esm/features/agent/chat/hooks/useAgentPlans.js.map +1 -1
  96. package/lib/esm/features/agent/chat/hooks/useAgentStream.js +79 -16
  97. package/lib/esm/features/agent/chat/hooks/useAgentStream.js.map +1 -1
  98. package/lib/esm/features/agent/chat/hooks/useArtifacts.js +108 -0
  99. package/lib/esm/features/agent/chat/hooks/useArtifacts.js.map +1 -0
  100. package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js +56 -5
  101. package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js.map +1 -1
  102. package/lib/esm/features/agent/chat/hooks/useFileProcessing.js +12 -10
  103. package/lib/esm/features/agent/chat/hooks/useFileProcessing.js.map +1 -1
  104. package/lib/esm/features/errors/PanelErrorBoundary.js +3 -1
  105. package/lib/esm/features/errors/PanelErrorBoundary.js.map +1 -1
  106. package/lib/esm/features/facets/AgentRunnerFacetsNav.js +45 -33
  107. package/lib/esm/features/facets/AgentRunnerFacetsNav.js.map +1 -1
  108. package/lib/esm/features/facets/RunsFacetsNav.js +9 -2
  109. package/lib/esm/features/facets/RunsFacetsNav.js.map +1 -1
  110. package/lib/esm/features/facets/index.js +1 -1
  111. package/lib/esm/features/facets/index.js.map +1 -1
  112. package/lib/esm/features/layout/GenericPageNavHeader.js +40 -28
  113. package/lib/esm/features/layout/GenericPageNavHeader.js.map +1 -1
  114. package/lib/esm/features/layout/NotFoundView.js +3 -1
  115. package/lib/esm/features/layout/NotFoundView.js.map +1 -1
  116. package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js +9 -5
  117. package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js.map +1 -1
  118. package/lib/esm/features/magic-pdf/DownloadPopover.js +5 -4
  119. package/lib/esm/features/magic-pdf/DownloadPopover.js.map +1 -1
  120. package/lib/esm/features/magic-pdf/MagicPdfView.js +8 -5
  121. package/lib/esm/features/magic-pdf/MagicPdfView.js.map +1 -1
  122. package/lib/esm/features/pdf-viewer/PdfPageSlider.js +9 -5
  123. package/lib/esm/features/pdf-viewer/PdfPageSlider.js.map +1 -1
  124. package/lib/esm/features/pdf-viewer/SimplePdfViewer.js +5 -3
  125. package/lib/esm/features/pdf-viewer/SimplePdfViewer.js.map +1 -1
  126. package/lib/esm/features/permissions/UserPermissionsProvider.js +3 -1
  127. package/lib/esm/features/permissions/UserPermissionsProvider.js.map +1 -1
  128. package/lib/esm/features/store/collections/BrowseCollectionView.js +9 -1
  129. package/lib/esm/features/store/collections/BrowseCollectionView.js.map +1 -1
  130. package/lib/esm/features/store/collections/CollectionsTable.js +14 -7
  131. package/lib/esm/features/store/collections/CollectionsTable.js.map +1 -1
  132. package/lib/esm/features/store/collections/CreateCollection.js +21 -18
  133. package/lib/esm/features/store/collections/CreateCollection.js.map +1 -1
  134. package/lib/esm/features/store/collections/EditCollectionView.js +23 -19
  135. package/lib/esm/features/store/collections/EditCollectionView.js.map +1 -1
  136. package/lib/esm/features/store/collections/SelectCollection.js +25 -10
  137. package/lib/esm/features/store/collections/SelectCollection.js.map +1 -1
  138. package/lib/esm/features/store/collections/SharedPropsEditor.js +5 -3
  139. package/lib/esm/features/store/collections/SharedPropsEditor.js.map +1 -1
  140. package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js +5 -3
  141. package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js.map +1 -1
  142. package/lib/esm/features/store/objects/DocumentPreviewPanel.js +14 -12
  143. package/lib/esm/features/store/objects/DocumentPreviewPanel.js.map +1 -1
  144. package/lib/esm/features/store/objects/DocumentSearchResults.js +15 -5
  145. package/lib/esm/features/store/objects/DocumentSearchResults.js.map +1 -1
  146. package/lib/esm/features/store/objects/DocumentTable.js +10 -7
  147. package/lib/esm/features/store/objects/DocumentTable.js.map +1 -1
  148. package/lib/esm/features/store/objects/ExportPropertiesModal.js +5 -2
  149. package/lib/esm/features/store/objects/ExportPropertiesModal.js.map +1 -1
  150. package/lib/esm/features/store/objects/components/ContentDispositionButton.js +3 -1
  151. package/lib/esm/features/store/objects/components/ContentDispositionButton.js.map +1 -1
  152. package/lib/esm/features/store/objects/components/ContentOverview.js +55 -40
  153. package/lib/esm/features/store/objects/components/ContentOverview.js.map +1 -1
  154. package/lib/esm/features/store/objects/components/DocumentIcon.js +4 -3
  155. package/lib/esm/features/store/objects/components/DocumentIcon.js.map +1 -1
  156. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js +13 -11
  157. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js.map +1 -1
  158. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js +15 -18
  159. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js.map +1 -1
  160. package/lib/esm/features/store/objects/components/SelectDocument.js +9 -6
  161. package/lib/esm/features/store/objects/components/SelectDocument.js.map +1 -1
  162. package/lib/esm/features/store/objects/components/TextEditorPanel.js +97 -0
  163. package/lib/esm/features/store/objects/components/TextEditorPanel.js.map +1 -0
  164. package/lib/esm/features/store/objects/components/VectorSearchWidget.js +3 -1
  165. package/lib/esm/features/store/objects/components/VectorSearchWidget.js.map +1 -1
  166. package/lib/esm/features/store/objects/components/useContentPanelHooks.js +4 -2
  167. package/lib/esm/features/store/objects/components/useContentPanelHooks.js.map +1 -1
  168. package/lib/esm/features/store/objects/components/useDownloadFile.js +12 -10
  169. package/lib/esm/features/store/objects/components/useDownloadFile.js.map +1 -1
  170. package/lib/esm/features/store/objects/layout/documentLayout.js +10 -6
  171. package/lib/esm/features/store/objects/layout/documentLayout.js.map +1 -1
  172. package/lib/esm/features/store/objects/layout/renderers.js +10 -1
  173. package/lib/esm/features/store/objects/layout/renderers.js.map +1 -1
  174. package/lib/esm/features/store/objects/search/DocumentSearchContext.js +3 -2
  175. package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +1 -1
  176. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js +3 -0
  177. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js.map +1 -1
  178. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js +22 -109
  179. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js.map +1 -1
  180. package/lib/esm/features/store/objects/selection/ObjectsActionContextClass.js +50 -0
  181. package/lib/esm/features/store/objects/selection/ObjectsActionContextClass.js.map +1 -0
  182. package/lib/esm/features/store/objects/selection/ObjectsActionHooks.js +27 -0
  183. package/lib/esm/features/store/objects/selection/ObjectsActionHooks.js.map +1 -0
  184. package/lib/esm/features/store/objects/selection/SelectionActions.js +10 -6
  185. package/lib/esm/features/store/objects/selection/SelectionActions.js.map +1 -1
  186. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +17 -12
  187. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +1 -1
  188. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js +9 -5
  189. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js.map +1 -1
  190. package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js +4 -2
  191. package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js.map +1 -1
  192. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js +24 -23
  193. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js.map +1 -1
  194. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js +10 -5
  195. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js.map +1 -1
  196. package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js +13 -9
  197. package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js.map +1 -1
  198. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js +14 -8
  199. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js.map +1 -1
  200. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +42 -39
  201. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +1 -1
  202. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +4 -2
  203. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +1 -1
  204. package/lib/esm/features/store/objects/upload/useUploadHandler.js +9 -7
  205. package/lib/esm/features/store/objects/upload/useUploadHandler.js.map +1 -1
  206. package/lib/esm/features/store/types/ContentObjectTypesSearch.js +6 -4
  207. package/lib/esm/features/store/types/ContentObjectTypesSearch.js.map +1 -1
  208. package/lib/esm/features/store/types/ContentObjectTypesTable.js +3 -1
  209. package/lib/esm/features/store/types/ContentObjectTypesTable.js.map +1 -1
  210. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js +6 -7
  211. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js.map +1 -1
  212. package/lib/esm/features/store/types/ObjectSchemaEditor.js +9 -7
  213. package/lib/esm/features/store/types/ObjectSchemaEditor.js.map +1 -1
  214. package/lib/esm/features/store/types/SelectContentType.js +9 -7
  215. package/lib/esm/features/store/types/SelectContentType.js.map +1 -1
  216. package/lib/esm/features/store/types/SelectContentTypeModal.js +5 -2
  217. package/lib/esm/features/store/types/SelectContentTypeModal.js.map +1 -1
  218. package/lib/esm/features/store/types/TableLayoutEditor.js +6 -4
  219. package/lib/esm/features/store/types/TableLayoutEditor.js.map +1 -1
  220. package/lib/esm/features/user/UserInfo.js +40 -50
  221. package/lib/esm/features/user/UserInfo.js.map +1 -1
  222. package/lib/esm/i18n/index.js +31 -0
  223. package/lib/esm/i18n/index.js.map +1 -0
  224. package/lib/esm/i18n/instance.js +46 -0
  225. package/lib/esm/i18n/instance.js.map +1 -0
  226. package/lib/esm/i18n/locales/ar.json +696 -0
  227. package/lib/esm/i18n/locales/de.json +664 -0
  228. package/lib/esm/i18n/locales/en.json +665 -0
  229. package/lib/esm/i18n/locales/es.json +670 -0
  230. package/lib/esm/i18n/locales/fr.json +672 -0
  231. package/lib/esm/i18n/locales/it.json +670 -0
  232. package/lib/esm/i18n/locales/ja.json +664 -0
  233. package/lib/esm/i18n/locales/ko.json +664 -0
  234. package/lib/esm/i18n/locales/pt.json +670 -0
  235. package/lib/esm/i18n/locales/ru.json +680 -0
  236. package/lib/esm/i18n/locales/tr.json +664 -0
  237. package/lib/esm/i18n/locales/zh-TW.json +664 -0
  238. package/lib/esm/i18n/locales/zh.json +664 -0
  239. package/lib/esm/layout/FullHeightLayout.js +3 -0
  240. package/lib/esm/layout/FullHeightLayout.js.map +1 -1
  241. package/lib/esm/layout/Navbar.js +3 -1
  242. package/lib/esm/layout/Navbar.js.map +1 -1
  243. package/lib/esm/layout/RegionTag.js +15 -0
  244. package/lib/esm/layout/RegionTag.js.map +1 -0
  245. package/lib/esm/layout/Sidebar.js +2 -2
  246. package/lib/esm/layout/Sidebar.js.map +1 -1
  247. package/lib/esm/layout/index.js +1 -0
  248. package/lib/esm/layout/index.js.map +1 -1
  249. package/lib/esm/router/HistoryNavigator.js +1 -1
  250. package/lib/esm/router/HistoryNavigator.js.map +1 -1
  251. package/lib/esm/router/Nav.js +5 -3
  252. package/lib/esm/router/Nav.js.map +1 -1
  253. package/lib/esm/router/NestedNavigationContext.js +4 -0
  254. package/lib/esm/router/NestedNavigationContext.js.map +1 -1
  255. package/lib/esm/router/NestedRouterProvider.js +3 -1
  256. package/lib/esm/router/NestedRouterProvider.js.map +1 -1
  257. package/lib/esm/router/Router.js +21 -6
  258. package/lib/esm/router/Router.js.map +1 -1
  259. package/lib/esm/session/UserSession.js +33 -4
  260. package/lib/esm/session/UserSession.js.map +1 -1
  261. package/lib/esm/session/UserSessionProvider.js +6 -13
  262. package/lib/esm/session/UserSessionProvider.js.map +1 -1
  263. package/lib/esm/session/auth/composable.js +1 -1
  264. package/lib/esm/session/auth/composable.js.map +1 -1
  265. package/lib/esm/session/auth/domainRouting.js +17 -0
  266. package/lib/esm/session/auth/domainRouting.js.map +1 -0
  267. package/lib/esm/session/auth/firebase.js +1 -1
  268. package/lib/esm/session/auth/firebase.js.map +1 -1
  269. package/lib/esm/session/auth/useCurrentTenant.js +3 -1
  270. package/lib/esm/session/auth/useCurrentTenant.js.map +1 -1
  271. package/lib/esm/shell/SplashScreen.js +3 -7
  272. package/lib/esm/shell/SplashScreen.js.map +1 -1
  273. package/lib/esm/shell/apps/StandaloneApp.js +5 -2
  274. package/lib/esm/shell/apps/StandaloneApp.js.map +1 -1
  275. package/lib/esm/shell/login/EnterpriseSigninButton.js +5 -3
  276. package/lib/esm/shell/login/EnterpriseSigninButton.js.map +1 -1
  277. package/lib/esm/shell/login/GitHubSignInButton.js +3 -7
  278. package/lib/esm/shell/login/GitHubSignInButton.js.map +1 -1
  279. package/lib/esm/shell/login/GoogleSignInButton.js +3 -1
  280. package/lib/esm/shell/login/GoogleSignInButton.js.map +1 -1
  281. package/lib/esm/shell/login/InviteAcceptModal.js +5 -2
  282. package/lib/esm/shell/login/InviteAcceptModal.js.map +1 -1
  283. package/lib/esm/shell/login/MicrosoftSigninButton.js +4 -6
  284. package/lib/esm/shell/login/MicrosoftSigninButton.js.map +1 -1
  285. package/lib/esm/shell/login/SigninScreen.js +6 -2
  286. package/lib/esm/shell/login/SigninScreen.js.map +1 -1
  287. package/lib/esm/shell/login/SignupForm.js +36 -34
  288. package/lib/esm/shell/login/SignupForm.js.map +1 -1
  289. package/lib/esm/shell/login/TerminalLogin.js +29 -22
  290. package/lib/esm/shell/login/TerminalLogin.js.map +1 -1
  291. package/lib/esm/shell/login/UserInfo.js +6 -4
  292. package/lib/esm/shell/login/UserInfo.js.map +1 -1
  293. package/lib/esm/shell/login/UserSessionMenu.js +3 -4
  294. package/lib/esm/shell/login/UserSessionMenu.js.map +1 -1
  295. package/lib/esm/widgets/index.js +0 -1
  296. package/lib/esm/widgets/index.js.map +1 -1
  297. package/lib/esm/widgets/json-view/JSONCode.js +1 -1
  298. package/lib/esm/widgets/json-view/JSONCode.js.map +1 -1
  299. package/lib/esm/widgets/json-view/JSONDisplay.js +6 -2
  300. package/lib/esm/widgets/json-view/JSONDisplay.js.map +1 -1
  301. package/lib/esm/widgets/json-view/JSONSwitcher.js +6 -0
  302. package/lib/esm/widgets/json-view/JSONSwitcher.js.map +1 -0
  303. package/lib/esm/widgets/json-view/JSONView.js +1 -1
  304. package/lib/esm/widgets/json-view/JSONView.js.map +1 -1
  305. package/lib/esm/widgets/json-view/index.js +1 -0
  306. package/lib/esm/widgets/json-view/index.js.map +1 -1
  307. package/lib/esm/widgets/markdown/ArtifactContentRenderer.js +6 -5
  308. package/lib/esm/widgets/markdown/ArtifactContentRenderer.js.map +1 -1
  309. package/lib/esm/widgets/markdown/CodeBlockContext.js +11 -0
  310. package/lib/esm/widgets/markdown/CodeBlockContext.js.map +1 -0
  311. package/lib/esm/widgets/markdown/MarkdownRenderer.js +11 -10
  312. package/lib/esm/widgets/markdown/MarkdownRenderer.js.map +1 -1
  313. package/lib/esm/widgets/markdown/codeBlockHandlers.js +11 -12
  314. package/lib/esm/widgets/markdown/codeBlockHandlers.js.map +1 -1
  315. package/lib/esm/widgets/markdown/index.js +10 -9
  316. package/lib/esm/widgets/markdown/index.js.map +1 -1
  317. package/lib/esm/widgets/markdown/remarkDirectiveHandler.js +0 -1
  318. package/lib/esm/widgets/markdown/remarkDirectiveHandler.js.map +1 -1
  319. package/lib/esm/widgets/schema-editor/ManagedSchema.js +6 -5
  320. package/lib/esm/widgets/schema-editor/ManagedSchema.js.map +1 -1
  321. package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js +7 -3
  322. package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js.map +1 -1
  323. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js +3 -1
  324. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js.map +1 -1
  325. package/lib/esm/widgets/upload/DropZone.js +9 -11
  326. package/lib/esm/widgets/upload/DropZone.js.map +1 -1
  327. package/lib/esm/widgets/upload/UploadResultCategory.js +3 -1
  328. package/lib/esm/widgets/upload/UploadResultCategory.js.map +1 -1
  329. package/lib/esm/widgets/upload/UploadSummary.js +3 -1
  330. package/lib/esm/widgets/upload/UploadSummary.js.map +1 -1
  331. package/lib/tsconfig.tsbuildinfo +1 -1
  332. package/lib/types/core/components/SelectList.d.ts.map +1 -1
  333. package/lib/types/core/components/SidePanel.d.ts +4 -2
  334. package/lib/types/core/components/SidePanel.d.ts.map +1 -1
  335. package/lib/types/core/components/index.d.ts +0 -5
  336. package/lib/types/core/components/index.d.ts.map +1 -1
  337. package/lib/types/core/components/shadcn/badge.d.ts +2 -2
  338. package/lib/types/core/components/shadcn/breadcrumb.d.ts +1 -1
  339. package/lib/types/core/components/shadcn/breadcrumb.d.ts.map +1 -1
  340. package/lib/types/core/components/shadcn/button.d.ts.map +1 -1
  341. package/lib/types/core/components/shadcn/collaspible.d.ts +6 -0
  342. package/lib/types/core/components/shadcn/collaspible.d.ts.map +1 -0
  343. package/lib/types/core/components/shadcn/dropdown.d.ts +51 -0
  344. package/lib/types/core/components/shadcn/dropdown.d.ts.map +1 -0
  345. package/lib/types/core/components/shadcn/filters/comboBox/DateCombobox.d.ts.map +1 -1
  346. package/lib/types/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts.map +1 -1
  347. package/lib/types/core/components/shadcn/filters/filter/dateFilter.d.ts.map +1 -1
  348. package/lib/types/core/components/shadcn/filters/filterBar.d.ts.map +1 -1
  349. package/lib/types/core/components/shadcn/index.d.ts +4 -0
  350. package/lib/types/core/components/shadcn/index.d.ts.map +1 -1
  351. package/lib/types/core/components/shadcn/input.d.ts +1 -1
  352. package/lib/types/core/components/shadcn/modal/ConfirmModal.d.ts +2 -1
  353. package/lib/types/core/components/shadcn/modal/ConfirmModal.d.ts.map +1 -1
  354. package/lib/types/core/components/shadcn/modal/DeleteModal.d.ts.map +1 -1
  355. package/lib/types/core/components/shadcn/popover.d.ts +11 -3
  356. package/lib/types/core/components/shadcn/popover.d.ts.map +1 -1
  357. package/lib/types/core/components/shadcn/radioGroup.d.ts +26 -0
  358. package/lib/types/core/components/shadcn/radioGroup.d.ts.map +1 -0
  359. package/lib/types/core/components/shadcn/switch.d.ts +12 -0
  360. package/lib/types/core/components/shadcn/switch.d.ts.map +1 -0
  361. package/lib/types/core/components/shadcn/tabs.d.ts +4 -2
  362. package/lib/types/core/components/shadcn/tabs.d.ts.map +1 -1
  363. package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts +8 -2
  364. package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts.map +1 -1
  365. package/lib/types/core/components/toast/NotificationPanel.d.ts.map +1 -1
  366. package/lib/types/core/hooks/PortalContainerProvider.d.ts +1 -0
  367. package/lib/types/core/hooks/PortalContainerProvider.d.ts.map +1 -1
  368. package/lib/types/env/index.d.ts +12 -3
  369. package/lib/types/env/index.d.ts.map +1 -1
  370. package/lib/types/features/agent/PayloadBuilder.d.ts +31 -3
  371. package/lib/types/features/agent/PayloadBuilder.d.ts.map +1 -1
  372. package/lib/types/features/agent/chat/AgentRightPanel.d.ts +50 -0
  373. package/lib/types/features/agent/chat/AgentRightPanel.d.ts.map +1 -0
  374. package/lib/types/features/agent/chat/ArtifactsTab.d.ts +9 -0
  375. package/lib/types/features/agent/chat/ArtifactsTab.d.ts.map +1 -0
  376. package/lib/types/features/agent/chat/AskUserWidget.d.ts.map +1 -1
  377. package/lib/types/features/agent/chat/DocumentPanel.d.ts.map +1 -1
  378. package/lib/types/features/agent/chat/ImageLightbox.d.ts.map +1 -1
  379. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts +22 -9
  380. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts.map +1 -1
  381. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +3 -1
  382. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +1 -1
  383. package/lib/types/features/agent/chat/ModernAgentOutput/BatchProgressPanel.d.ts.map +1 -1
  384. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +13 -4
  385. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts.map +1 -1
  386. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts +1 -1
  387. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts.map +1 -1
  388. package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +1 -1
  389. package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +1 -1
  390. package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts.map +1 -1
  391. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts.map +1 -1
  392. package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts +3 -1
  393. package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts.map +1 -1
  394. package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts +5 -1
  395. package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts.map +1 -1
  396. package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts.map +1 -1
  397. package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts +16 -1
  398. package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts.map +1 -1
  399. package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts.map +1 -1
  400. package/lib/types/features/agent/chat/VegaLiteChart.d.ts.map +1 -1
  401. package/lib/types/features/agent/chat/hooks/useAgentPlans.d.ts.map +1 -1
  402. package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts +5 -3
  403. package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts.map +1 -1
  404. package/lib/types/features/agent/chat/hooks/useArtifacts.d.ts +18 -0
  405. package/lib/types/features/agent/chat/hooks/useArtifacts.d.ts.map +1 -0
  406. package/lib/types/features/agent/chat/hooks/useDocumentPanel.d.ts.map +1 -1
  407. package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts +4 -4
  408. package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts.map +1 -1
  409. package/lib/types/features/agent/chat/types/document.d.ts +2 -0
  410. package/lib/types/features/agent/chat/types/document.d.ts.map +1 -1
  411. package/lib/types/features/errors/PanelErrorBoundary.d.ts.map +1 -1
  412. package/lib/types/features/facets/AgentRunnerFacetsNav.d.ts +2 -1
  413. package/lib/types/features/facets/AgentRunnerFacetsNav.d.ts.map +1 -1
  414. package/lib/types/features/facets/RunsFacetsNav.d.ts.map +1 -1
  415. package/lib/types/features/facets/index.d.ts +1 -1
  416. package/lib/types/features/facets/index.d.ts.map +1 -1
  417. package/lib/types/features/layout/GenericPageNavHeader.d.ts +2 -2
  418. package/lib/types/features/layout/GenericPageNavHeader.d.ts.map +1 -1
  419. package/lib/types/features/layout/NotFoundView.d.ts.map +1 -1
  420. package/lib/types/features/magic-pdf/AnnotatedImageSlider.d.ts.map +1 -1
  421. package/lib/types/features/magic-pdf/DownloadPopover.d.ts.map +1 -1
  422. package/lib/types/features/magic-pdf/MagicPdfView.d.ts.map +1 -1
  423. package/lib/types/features/pdf-viewer/PdfPageSlider.d.ts.map +1 -1
  424. package/lib/types/features/pdf-viewer/SimplePdfViewer.d.ts.map +1 -1
  425. package/lib/types/features/permissions/UserPermissionsProvider.d.ts.map +1 -1
  426. package/lib/types/features/store/collections/BrowseCollectionView.d.ts.map +1 -1
  427. package/lib/types/features/store/collections/CollectionsTable.d.ts +4 -0
  428. package/lib/types/features/store/collections/CollectionsTable.d.ts.map +1 -1
  429. package/lib/types/features/store/collections/CreateCollection.d.ts.map +1 -1
  430. package/lib/types/features/store/collections/EditCollectionView.d.ts.map +1 -1
  431. package/lib/types/features/store/collections/SelectCollection.d.ts.map +1 -1
  432. package/lib/types/features/store/collections/SharedPropsEditor.d.ts.map +1 -1
  433. package/lib/types/features/store/collections/SyncMemberHeadsToggle.d.ts.map +1 -1
  434. package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts.map +1 -1
  435. package/lib/types/features/store/objects/DocumentSearchResults.d.ts.map +1 -1
  436. package/lib/types/features/store/objects/DocumentTable.d.ts.map +1 -1
  437. package/lib/types/features/store/objects/ExportPropertiesModal.d.ts.map +1 -1
  438. package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts.map +1 -1
  439. package/lib/types/features/store/objects/components/ContentOverview.d.ts.map +1 -1
  440. package/lib/types/features/store/objects/components/DocumentIcon.d.ts +2 -1
  441. package/lib/types/features/store/objects/components/DocumentIcon.d.ts.map +1 -1
  442. package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts.map +1 -1
  443. package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts.map +1 -1
  444. package/lib/types/features/store/objects/components/SelectDocument.d.ts +3 -1
  445. package/lib/types/features/store/objects/components/SelectDocument.d.ts.map +1 -1
  446. package/lib/types/features/store/objects/components/TextEditorPanel.d.ts +10 -0
  447. package/lib/types/features/store/objects/components/TextEditorPanel.d.ts.map +1 -0
  448. package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts.map +1 -1
  449. package/lib/types/features/store/objects/components/useContentPanelHooks.d.ts.map +1 -1
  450. package/lib/types/features/store/objects/components/useDownloadFile.d.ts.map +1 -1
  451. package/lib/types/features/store/objects/layout/documentLayout.d.ts +3 -2
  452. package/lib/types/features/store/objects/layout/documentLayout.d.ts.map +1 -1
  453. package/lib/types/features/store/objects/layout/renderers.d.ts.map +1 -1
  454. package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts.map +1 -1
  455. package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts.map +1 -1
  456. package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts +3 -20
  457. package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts.map +1 -1
  458. package/lib/types/features/store/objects/selection/ObjectsActionContextClass.d.ts +16 -0
  459. package/lib/types/features/store/objects/selection/ObjectsActionContextClass.d.ts.map +1 -0
  460. package/lib/types/features/store/objects/selection/ObjectsActionHooks.d.ts +7 -0
  461. package/lib/types/features/store/objects/selection/ObjectsActionHooks.d.ts.map +1 -0
  462. package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts +4 -1
  463. package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts.map +1 -1
  464. package/lib/types/features/store/objects/selection/SelectionActions.d.ts +6 -1
  465. package/lib/types/features/store/objects/selection/SelectionActions.d.ts.map +1 -1
  466. package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts.map +1 -1
  467. package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts.map +1 -1
  468. package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts +1 -1
  469. package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts.map +1 -1
  470. package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts.map +1 -1
  471. package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts.map +1 -1
  472. package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts.map +1 -1
  473. package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts.map +1 -1
  474. package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts.map +1 -1
  475. package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts.map +1 -1
  476. package/lib/types/features/store/objects/upload/useUploadHandler.d.ts.map +1 -1
  477. package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts.map +1 -1
  478. package/lib/types/features/store/types/ContentObjectTypesTable.d.ts.map +1 -1
  479. package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts +2 -1
  480. package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts.map +1 -1
  481. package/lib/types/features/store/types/ObjectSchemaEditor.d.ts.map +1 -1
  482. package/lib/types/features/store/types/SelectContentType.d.ts.map +1 -1
  483. package/lib/types/features/store/types/SelectContentTypeModal.d.ts.map +1 -1
  484. package/lib/types/features/store/types/TableLayoutEditor.d.ts.map +1 -1
  485. package/lib/types/features/user/UserInfo.d.ts +2 -2
  486. package/lib/types/features/user/UserInfo.d.ts.map +1 -1
  487. package/lib/types/i18n/index.d.ts +14 -0
  488. package/lib/types/i18n/index.d.ts.map +1 -0
  489. package/lib/types/i18n/instance.d.ts +5 -0
  490. package/lib/types/i18n/instance.d.ts.map +1 -0
  491. package/lib/types/layout/FullHeightLayout.d.ts +3 -0
  492. package/lib/types/layout/FullHeightLayout.d.ts.map +1 -1
  493. package/lib/types/layout/Navbar.d.ts.map +1 -1
  494. package/lib/types/layout/RegionTag.d.ts +4 -0
  495. package/lib/types/layout/RegionTag.d.ts.map +1 -0
  496. package/lib/types/layout/Sidebar.d.ts +2 -1
  497. package/lib/types/layout/Sidebar.d.ts.map +1 -1
  498. package/lib/types/layout/index.d.ts +1 -0
  499. package/lib/types/layout/index.d.ts.map +1 -1
  500. package/lib/types/router/Nav.d.ts +5 -1
  501. package/lib/types/router/Nav.d.ts.map +1 -1
  502. package/lib/types/router/NestedNavigationContext.d.ts.map +1 -1
  503. package/lib/types/router/NestedRouterProvider.d.ts.map +1 -1
  504. package/lib/types/router/Router.d.ts +2 -0
  505. package/lib/types/router/Router.d.ts.map +1 -1
  506. package/lib/types/session/UserSession.d.ts +1 -0
  507. package/lib/types/session/UserSession.d.ts.map +1 -1
  508. package/lib/types/session/UserSessionProvider.d.ts +0 -1
  509. package/lib/types/session/UserSessionProvider.d.ts.map +1 -1
  510. package/lib/types/session/auth/domainRouting.d.ts +3 -0
  511. package/lib/types/session/auth/domainRouting.d.ts.map +1 -0
  512. package/lib/types/session/auth/useCurrentTenant.d.ts.map +1 -1
  513. package/lib/types/shell/SplashScreen.d.ts.map +1 -1
  514. package/lib/types/shell/apps/StandaloneApp.d.ts.map +1 -1
  515. package/lib/types/shell/login/EnterpriseSigninButton.d.ts.map +1 -1
  516. package/lib/types/shell/login/GitHubSignInButton.d.ts.map +1 -1
  517. package/lib/types/shell/login/GoogleSignInButton.d.ts.map +1 -1
  518. package/lib/types/shell/login/InviteAcceptModal.d.ts.map +1 -1
  519. package/lib/types/shell/login/MicrosoftSigninButton.d.ts +1 -1
  520. package/lib/types/shell/login/MicrosoftSigninButton.d.ts.map +1 -1
  521. package/lib/types/shell/login/SigninScreen.d.ts.map +1 -1
  522. package/lib/types/shell/login/SignupForm.d.ts.map +1 -1
  523. package/lib/types/shell/login/TerminalLogin.d.ts.map +1 -1
  524. package/lib/types/shell/login/UserInfo.d.ts.map +1 -1
  525. package/lib/types/shell/login/UserSessionMenu.d.ts.map +1 -1
  526. package/lib/types/widgets/index.d.ts +0 -1
  527. package/lib/types/widgets/index.d.ts.map +1 -1
  528. package/lib/types/widgets/json-view/JSONDisplay.d.ts.map +1 -1
  529. package/lib/types/widgets/json-view/JSONSwitcher.d.ts +6 -0
  530. package/lib/types/widgets/json-view/JSONSwitcher.d.ts.map +1 -0
  531. package/lib/types/widgets/json-view/index.d.ts +1 -0
  532. package/lib/types/widgets/json-view/index.d.ts.map +1 -1
  533. package/lib/types/widgets/markdown/ArtifactContentRenderer.d.ts.map +1 -1
  534. package/lib/types/widgets/markdown/CodeBlockContext.d.ts +21 -0
  535. package/lib/types/widgets/markdown/CodeBlockContext.d.ts.map +1 -0
  536. package/lib/types/widgets/markdown/MarkdownRenderer.d.ts.map +1 -1
  537. package/lib/types/widgets/markdown/codeBlockHandlers.d.ts +0 -12
  538. package/lib/types/widgets/markdown/codeBlockHandlers.d.ts.map +1 -1
  539. package/lib/types/widgets/markdown/index.d.ts +10 -9
  540. package/lib/types/widgets/markdown/index.d.ts.map +1 -1
  541. package/lib/types/widgets/schema-editor/ManagedSchema.d.ts +1 -1
  542. package/lib/types/widgets/schema-editor/ManagedSchema.d.ts.map +1 -1
  543. package/lib/types/widgets/schema-editor/editor/PropertyEditor.d.ts.map +1 -1
  544. package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts.map +1 -1
  545. package/lib/types/widgets/upload/DropZone.d.ts.map +1 -1
  546. package/lib/types/widgets/upload/UploadResultCategory.d.ts.map +1 -1
  547. package/lib/types/widgets/upload/UploadSummary.d.ts.map +1 -1
  548. package/lib/vertesia-ui-core.js +1 -1
  549. package/lib/vertesia-ui-core.js.map +1 -1
  550. package/lib/vertesia-ui-env.js +1 -1
  551. package/lib/vertesia-ui-env.js.map +1 -1
  552. package/lib/vertesia-ui-features.js +1 -1
  553. package/lib/vertesia-ui-features.js.map +1 -1
  554. package/lib/vertesia-ui-i18n.js +2 -0
  555. package/lib/vertesia-ui-i18n.js.map +1 -0
  556. package/lib/vertesia-ui-layout.js +1 -1
  557. package/lib/vertesia-ui-layout.js.map +1 -1
  558. package/lib/vertesia-ui-router.js +1 -1
  559. package/lib/vertesia-ui-router.js.map +1 -1
  560. package/lib/vertesia-ui-session.js +1 -1
  561. package/lib/vertesia-ui-session.js.map +1 -1
  562. package/lib/vertesia-ui-shell.js +1 -1
  563. package/lib/vertesia-ui-shell.js.map +1 -1
  564. package/lib/vertesia-ui-widgets.js +1 -1
  565. package/lib/vertesia-ui-widgets.js.map +1 -1
  566. package/llms.txt +124 -4
  567. package/package.json +50 -22
  568. package/src/core/components/SelectList.tsx +3 -1
  569. package/src/core/components/SidePanel.tsx +5 -4
  570. package/src/core/components/index.ts +0 -5
  571. package/src/core/components/shadcn/breadcrumb.tsx +16 -9
  572. package/src/core/components/shadcn/button.tsx +5 -3
  573. package/src/core/components/shadcn/collaspible.tsx +33 -0
  574. package/src/core/components/shadcn/dropdown.tsx +325 -0
  575. package/src/core/components/shadcn/filters/comboBox/DateCombobox.tsx +3 -1
  576. package/src/core/components/shadcn/filters/comboBox/SelectCombobox.tsx +3 -1
  577. package/src/core/components/shadcn/filters/comboBox/StringListCombobox.tsx +1 -1
  578. package/src/core/components/shadcn/filters/filter/StringListFilter.tsx +1 -1
  579. package/src/core/components/shadcn/filters/filter/dateFilter.tsx +5 -3
  580. package/src/core/components/shadcn/filters/filterBar.tsx +8 -5
  581. package/src/core/components/shadcn/index.ts +5 -1
  582. package/src/core/components/shadcn/modal/ConfirmModal.tsx +7 -3
  583. package/src/core/components/shadcn/modal/DeleteModal.tsx +5 -3
  584. package/src/core/components/shadcn/popover.tsx +12 -7
  585. package/src/core/components/shadcn/radioGroup.tsx +100 -0
  586. package/src/core/components/shadcn/selectBox.tsx +1 -1
  587. package/src/core/components/shadcn/switch.tsx +60 -0
  588. package/src/core/components/shadcn/tabs.tsx +29 -27
  589. package/src/core/components/shadcn/theme/ThemeSwitcher.tsx +19 -10
  590. package/src/core/components/shadcn/tooltip.tsx +1 -1
  591. package/src/core/components/toast/NotificationPanel.tsx +38 -44
  592. package/src/core/hooks/PortalContainerProvider.tsx +11 -3
  593. package/src/css/base.css +31 -0
  594. package/src/css/color.css +136 -0
  595. package/src/css/custom-tooltips.css +64 -0
  596. package/src/css/index.css +27 -0
  597. package/src/css/theme.css +86 -0
  598. package/src/css/typography.css +88 -0
  599. package/src/css/utilities.css +72 -0
  600. package/src/env/index.ts +24 -13
  601. package/src/features/agent/PayloadBuilder.tsx +100 -13
  602. package/src/features/agent/chat/AgentRightPanel.tsx +424 -0
  603. package/src/features/agent/chat/ArtifactsTab.tsx +197 -0
  604. package/src/features/agent/chat/AskUserWidget.tsx +14 -8
  605. package/src/features/agent/chat/DocumentPanel.tsx +24 -9
  606. package/src/features/agent/chat/ImageLightbox.tsx +6 -3
  607. package/src/features/agent/chat/ModernAgentConversation.tsx +538 -364
  608. package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx +151 -55
  609. package/src/features/agent/chat/ModernAgentOutput/BatchProgressPanel.tsx +6 -4
  610. package/src/features/agent/chat/ModernAgentOutput/Header.tsx +183 -105
  611. package/src/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.tsx +21 -31
  612. package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +119 -114
  613. package/src/features/agent/chat/ModernAgentOutput/MessageItem.tsx +26 -9
  614. package/src/features/agent/chat/ModernAgentOutput/PlanPanel.tsx +9 -7
  615. package/src/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.tsx +15 -13
  616. package/src/features/agent/chat/ModernAgentOutput/StreamingMessage.tsx +8 -3
  617. package/src/features/agent/chat/ModernAgentOutput/ToolCallGroup.tsx +149 -49
  618. package/src/features/agent/chat/ModernAgentOutput/WorkstreamTabs.tsx +9 -5
  619. package/src/features/agent/chat/ModernAgentOutput/utils.test.ts +229 -0
  620. package/src/features/agent/chat/ModernAgentOutput/utils.ts +202 -97
  621. package/src/features/agent/chat/SlidingThinkingIndicator.tsx +5 -3
  622. package/src/features/agent/chat/VegaLiteChart.tsx +20 -8
  623. package/src/features/agent/chat/hooks/useAgentPlans.ts +3 -9
  624. package/src/features/agent/chat/hooks/useAgentStream.ts +86 -19
  625. package/src/features/agent/chat/hooks/useArtifacts.ts +151 -0
  626. package/src/features/agent/chat/hooks/useDocumentPanel.ts +65 -5
  627. package/src/features/agent/chat/hooks/useFileProcessing.ts +14 -13
  628. package/src/features/agent/chat/types/document.ts +2 -0
  629. package/src/features/errors/PanelErrorBoundary.tsx +5 -3
  630. package/src/features/facets/AgentRunnerFacetsNav.tsx +54 -35
  631. package/src/features/facets/RunsFacetsNav.tsx +15 -7
  632. package/src/features/facets/index.ts +1 -1
  633. package/src/features/layout/GenericPageNavHeader.tsx +64 -41
  634. package/src/features/layout/NotFoundView.tsx +4 -1
  635. package/src/features/magic-pdf/AnnotatedImageSlider.tsx +12 -8
  636. package/src/features/magic-pdf/DownloadPopover.tsx +11 -10
  637. package/src/features/magic-pdf/MagicPdfView.tsx +10 -7
  638. package/src/features/pdf-viewer/PdfPageSlider.tsx +10 -6
  639. package/src/features/pdf-viewer/SimplePdfViewer.tsx +5 -3
  640. package/src/features/permissions/UserPermissionsProvider.tsx +3 -1
  641. package/src/features/store/collections/BrowseCollectionView.tsx +11 -1
  642. package/src/features/store/collections/CollectionsTable.tsx +20 -12
  643. package/src/features/store/collections/CreateCollection.tsx +45 -40
  644. package/src/features/store/collections/EditCollectionView.tsx +31 -28
  645. package/src/features/store/collections/SelectCollection.tsx +50 -14
  646. package/src/features/store/collections/SharedPropsEditor.tsx +7 -5
  647. package/src/features/store/collections/SyncMemberHeadsToggle.tsx +6 -4
  648. package/src/features/store/objects/DocumentPreviewPanel.tsx +30 -28
  649. package/src/features/store/objects/DocumentSearchResults.tsx +31 -21
  650. package/src/features/store/objects/DocumentTable.tsx +11 -5
  651. package/src/features/store/objects/ExportPropertiesModal.tsx +8 -5
  652. package/src/features/store/objects/components/ContentDispositionButton.tsx +3 -1
  653. package/src/features/store/objects/components/ContentOverview.tsx +96 -50
  654. package/src/features/store/objects/components/DocumentIcon.tsx +11 -3
  655. package/src/features/store/objects/components/PropertiesEditorModal.tsx +14 -12
  656. package/src/features/store/objects/components/SaveVersionConfirmModal.tsx +24 -37
  657. package/src/features/store/objects/components/SelectDocument.tsx +15 -6
  658. package/src/features/store/objects/components/TextEditorPanel.tsx +143 -0
  659. package/src/features/store/objects/components/VectorSearchWidget.tsx +11 -8
  660. package/src/features/store/objects/components/useContentPanelHooks.ts +4 -2
  661. package/src/features/store/objects/components/useDownloadFile.ts +12 -10
  662. package/src/features/store/objects/layout/documentLayout.tsx +16 -6
  663. package/src/features/store/objects/layout/renderers.tsx +27 -1
  664. package/src/features/store/objects/search/DocumentSearchContext.ts +3 -2
  665. package/src/features/store/objects/search/DocumentSearchProvider.tsx +3 -0
  666. package/src/features/store/objects/selection/ObjectsActionContext.tsx +26 -128
  667. package/src/features/store/objects/selection/ObjectsActionContextClass.ts +59 -0
  668. package/src/features/store/objects/selection/ObjectsActionHooks.ts +33 -0
  669. package/src/features/store/objects/selection/ObjectsActionSpec.ts +4 -1
  670. package/src/features/store/objects/selection/SelectionActions.tsx +14 -6
  671. package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +19 -14
  672. package/src/features/store/objects/selection/actions/ChangeTypeAction.tsx +9 -5
  673. package/src/features/store/objects/selection/actions/ConfirmAction.tsx +4 -3
  674. package/src/features/store/objects/selection/actions/DeleteObjectsAction.tsx +24 -23
  675. package/src/features/store/objects/selection/actions/ExportPropertiesAction.tsx +10 -5
  676. package/src/features/store/objects/selection/actions/RemoveFromCollectionAction.tsx +13 -9
  677. package/src/features/store/objects/selection/actions/StartWorkflowComponent.tsx +14 -8
  678. package/src/features/store/objects/upload/DocumentUploadModal.tsx +56 -55
  679. package/src/features/store/objects/upload/useSmartFileUploadProcessing.ts +4 -2
  680. package/src/features/store/objects/upload/useUploadHandler.ts +9 -7
  681. package/src/features/store/types/ContentObjectTypesSearch.tsx +10 -8
  682. package/src/features/store/types/ContentObjectTypesTable.tsx +6 -4
  683. package/src/features/store/types/CreateOrUpdateTypeModal.tsx +11 -12
  684. package/src/features/store/types/ObjectSchemaEditor.tsx +11 -9
  685. package/src/features/store/types/SelectContentType.tsx +15 -13
  686. package/src/features/store/types/SelectContentTypeModal.tsx +16 -13
  687. package/src/features/store/types/TableLayoutEditor.tsx +16 -12
  688. package/src/features/user/UserInfo.tsx +47 -56
  689. package/src/i18n/index.tsx +45 -0
  690. package/src/i18n/instance.ts +49 -0
  691. package/src/i18n/locales/ar.json +696 -0
  692. package/src/i18n/locales/de.json +664 -0
  693. package/src/i18n/locales/en.json +665 -0
  694. package/src/i18n/locales/es.json +670 -0
  695. package/src/i18n/locales/fr.json +672 -0
  696. package/src/i18n/locales/it.json +670 -0
  697. package/src/i18n/locales/ja.json +664 -0
  698. package/src/i18n/locales/ko.json +664 -0
  699. package/src/i18n/locales/pt.json +670 -0
  700. package/src/i18n/locales/ru.json +680 -0
  701. package/src/i18n/locales/tr.json +664 -0
  702. package/src/i18n/locales/zh-TW.json +664 -0
  703. package/src/i18n/locales/zh.json +664 -0
  704. package/src/layout/FullHeightLayout.tsx +8 -0
  705. package/src/layout/Navbar.tsx +4 -2
  706. package/src/layout/RegionTag.tsx +25 -0
  707. package/src/layout/Sidebar.tsx +4 -3
  708. package/src/layout/index.ts +2 -1
  709. package/src/router/HistoryNavigator.ts +10 -10
  710. package/src/router/Nav.tsx +9 -3
  711. package/src/router/NestedNavigationContext.tsx +4 -0
  712. package/src/router/NestedRouterProvider.tsx +3 -1
  713. package/src/router/Router.tsx +23 -7
  714. package/src/session/UserSession.ts +34 -5
  715. package/src/session/UserSessionProvider.tsx +6 -14
  716. package/src/session/auth/composable.ts +1 -1
  717. package/src/session/auth/domainRouting.test.ts +110 -0
  718. package/src/session/auth/domainRouting.ts +22 -0
  719. package/src/session/auth/firebase.ts +1 -1
  720. package/src/session/auth/useCurrentTenant.ts +3 -1
  721. package/src/shell/SplashScreen.tsx +22 -26
  722. package/src/shell/apps/StandaloneApp.tsx +9 -6
  723. package/src/shell/login/EnterpriseSigninButton.tsx +6 -4
  724. package/src/shell/login/GitHubSignInButton.tsx +3 -7
  725. package/src/shell/login/GoogleSignInButton.tsx +3 -1
  726. package/src/shell/login/InviteAcceptModal.tsx +5 -2
  727. package/src/shell/login/MicrosoftSigninButton.tsx +4 -6
  728. package/src/shell/login/SigninScreen.tsx +18 -13
  729. package/src/shell/login/SignupForm.tsx +46 -46
  730. package/src/shell/login/TerminalLogin.tsx +36 -33
  731. package/src/shell/login/UserInfo.tsx +15 -13
  732. package/src/shell/login/UserSessionMenu.tsx +28 -31
  733. package/src/widgets/index.ts +0 -1
  734. package/src/widgets/json-view/JSONCode.tsx +1 -1
  735. package/src/widgets/json-view/JSONDisplay.tsx +8 -3
  736. package/src/widgets/json-view/JSONSwitcher.tsx +24 -0
  737. package/src/widgets/json-view/JSONView.tsx +1 -1
  738. package/src/widgets/json-view/index.ts +1 -0
  739. package/src/widgets/markdown/ArtifactContentRenderer.tsx +15 -7
  740. package/src/widgets/markdown/CodeBlockContext.tsx +34 -0
  741. package/src/widgets/markdown/MarkdownRenderer.tsx +14 -13
  742. package/src/widgets/markdown/codeBlockHandlers.tsx +17 -36
  743. package/src/widgets/markdown/index.ts +27 -34
  744. package/src/widgets/markdown/remarkDirectiveHandler.ts +1 -1
  745. package/src/widgets/schema-editor/ManagedSchema.ts +6 -5
  746. package/src/widgets/schema-editor/editor/PropertyEditor.tsx +7 -3
  747. package/src/widgets/schema-editor/editor/SchemaEditor.tsx +3 -1
  748. package/src/widgets/upload/DropZone.tsx +10 -13
  749. package/src/widgets/upload/UploadResultCategory.tsx +3 -1
  750. package/src/widgets/upload/UploadSummary.tsx +13 -11
  751. package/tsconfig.dist.json +1 -1
  752. package/lib/esm/core/components/Dropdown.js +0 -16
  753. package/lib/esm/core/components/Dropdown.js.map +0 -1
  754. package/lib/esm/core/components/DropdownList.js +0 -9
  755. package/lib/esm/core/components/DropdownList.js.map +0 -1
  756. package/lib/esm/core/components/RadioGroup.js +0 -34
  757. package/lib/esm/core/components/RadioGroup.js.map +0 -1
  758. package/lib/esm/core/components/SelectStack.js +0 -8
  759. package/lib/esm/core/components/SelectStack.js.map +0 -1
  760. package/lib/esm/core/components/Switch.js +0 -12
  761. package/lib/esm/core/components/Switch.js.map +0 -1
  762. package/lib/esm/widgets/popover/Popover.js +0 -73
  763. package/lib/esm/widgets/popover/Popover.js.map +0 -1
  764. package/lib/esm/widgets/popover/context.js +0 -7
  765. package/lib/esm/widgets/popover/context.js.map +0 -1
  766. package/lib/esm/widgets/popover/index.js +0 -3
  767. package/lib/esm/widgets/popover/index.js.map +0 -1
  768. package/lib/esm/widgets/popover/slots.js +0 -22
  769. package/lib/esm/widgets/popover/slots.js.map +0 -1
  770. package/lib/types/core/components/Dropdown.d.ts +0 -15
  771. package/lib/types/core/components/Dropdown.d.ts.map +0 -1
  772. package/lib/types/core/components/DropdownList.d.ts +0 -13
  773. package/lib/types/core/components/DropdownList.d.ts.map +0 -1
  774. package/lib/types/core/components/RadioGroup.d.ts +0 -26
  775. package/lib/types/core/components/RadioGroup.d.ts.map +0 -1
  776. package/lib/types/core/components/SelectStack.d.ts +0 -13
  777. package/lib/types/core/components/SelectStack.d.ts.map +0 -1
  778. package/lib/types/core/components/Switch.d.ts +0 -11
  779. package/lib/types/core/components/Switch.d.ts.map +0 -1
  780. package/lib/types/widgets/popover/Popover.d.ts +0 -38
  781. package/lib/types/widgets/popover/Popover.d.ts.map +0 -1
  782. package/lib/types/widgets/popover/context.d.ts +0 -8
  783. package/lib/types/widgets/popover/context.d.ts.map +0 -1
  784. package/lib/types/widgets/popover/index.d.ts +0 -3
  785. package/lib/types/widgets/popover/index.d.ts.map +0 -1
  786. package/lib/types/widgets/popover/slots.d.ts +0 -5
  787. package/lib/types/widgets/popover/slots.d.ts.map +0 -1
  788. package/src/core/components/Dropdown.tsx +0 -63
  789. package/src/core/components/DropdownList.tsx +0 -72
  790. package/src/core/components/RadioGroup.tsx +0 -100
  791. package/src/core/components/SelectStack.tsx +0 -63
  792. package/src/core/components/Switch.tsx +0 -30
  793. package/src/widgets/popover/Popover.tsx +0 -171
  794. package/src/widgets/popover/context.ts +0 -15
  795. package/src/widgets/popover/index.ts +0 -2
  796. package/src/widgets/popover/slots.ts +0 -24
@@ -1,10 +1,10 @@
1
- import { useState } from 'react'
2
-
3
1
  import { AccountRef, ProjectRef } from '@vertesia/common'
4
2
  import { Button, Center, ErrorBox, Input, SelectBox, Spinner, useFetch, useToast } from '@vertesia/ui/core'
5
3
  import { Env } from "@vertesia/ui/env"
6
4
  import { useLocation } from "@vertesia/ui/router"
7
5
  import { fetchComposableTokenFromFirebaseToken, useUserSession } from '@vertesia/ui/session'
6
+ import { useState } from 'react'
7
+ import { useUITranslation } from '../../i18n/index.js'
8
8
 
9
9
  interface ProfileData {
10
10
  profile?: string
@@ -82,13 +82,14 @@ export function TerminalLogin() {
82
82
  const location = useLocation()
83
83
  const clientInfo = getClientInfo(location)
84
84
  const toast = useToast()
85
+ const { t } = useUITranslation()
85
86
 
86
87
  const onAccept = async (data: ProfileData) => {
87
88
  if (!clientInfo) return
88
89
  if (!data.profile) {
89
90
  toast({
90
- title: 'Profile is required',
91
- description: 'Please enter a profile name to save the client authorization',
91
+ title: t('login.terminal.profileRequired'),
92
+ description: t('login.terminal.profileRequiredDesc'),
92
93
  status: 'error',
93
94
  duration: 2000
94
95
  })
@@ -96,8 +97,8 @@ export function TerminalLogin() {
96
97
  }
97
98
  if (!data.account) {
98
99
  toast({
99
- title: 'Account is required',
100
- description: 'Please select an account to authorize the client to access the ComposablePrompts servers',
100
+ title: t('login.terminal.accountRequired'),
101
+ description: t('login.terminal.accountRequiredDesc'),
101
102
  status: 'error',
102
103
  duration: 2000
103
104
  })
@@ -105,8 +106,8 @@ export function TerminalLogin() {
105
106
  }
106
107
  if (!data.project) {
107
108
  toast({
108
- title: 'Project is required',
109
- description: 'Please select a project to authorize the client to access the ComposablePrompts servers',
109
+ title: t('login.terminal.projectRequired'),
110
+ description: t('login.terminal.projectRequiredDesc'),
110
111
  status: 'error',
111
112
  duration: 2000
112
113
  })
@@ -134,7 +135,7 @@ export function TerminalLogin() {
134
135
  setPayload(payload)
135
136
  } else {
136
137
  toast({
137
- title: 'Failed to get composable token',
138
+ title: t('login.terminal.failedToGetToken'),
138
139
  status: 'error',
139
140
  duration: 5000
140
141
  })
@@ -145,7 +146,7 @@ export function TerminalLogin() {
145
146
  setPayload(payload)
146
147
  } else {
147
148
  toast({
148
- title: 'Error authorizing client',
149
+ title: t('login.terminal.errorAuthorizingClient'),
149
150
  description: err.message,
150
151
  status: 'error',
151
152
  duration: 5000
@@ -156,7 +157,7 @@ export function TerminalLogin() {
156
157
 
157
158
  const getPageContent = () => {
158
159
  if (!clientInfo) {
159
- return <ErrorBox title='Invalid request'>This page should be called by a terminal client to authenticate against the ComposablePrompts servers</ErrorBox>
160
+ return <ErrorBox title={t('login.terminal.invalidRequest')}>{t('login.terminal.invalidRequestDesc')}</ErrorBox>
160
161
  }
161
162
 
162
163
  return payload
@@ -178,19 +179,19 @@ interface AuthAcceptScreenProps {
178
179
  function AuthAcceptScreen({ onAccept, clientInfo }: Readonly<AuthAcceptScreenProps>) {
179
180
  const { client, user } = useUserSession()
180
181
  const { data: allProjects, error } = useFetch(() => user ? client.projects.list() : Promise.resolve([]), [user])
181
-
182
+ const { t } = useUITranslation()
182
183
 
183
184
  if (error) {
184
- return <ErrorBox title='Error loading projects'>{error.message}</ErrorBox>
185
+ return <ErrorBox title={t('login.terminal.errorLoadingProjects')}>{error.message}</ErrorBox>
185
186
  }
186
187
 
187
188
  const getEnvironmentName = () => {
188
189
  if (Env.isLocalDev) {
189
- return "Local Dev"
190
+ return t('login.terminal.envLocalDev')
190
191
  } else if (Env.isDev) {
191
- return "Staging"
192
+ return t('login.terminal.envStaging')
192
193
  }
193
- return "Production"
194
+ return t('login.terminal.envProduction')
194
195
  }
195
196
 
196
197
  const envName = getEnvironmentName()
@@ -202,12 +203,12 @@ function AuthAcceptScreen({ onAccept, clientInfo }: Readonly<AuthAcceptScreenPro
202
203
  Authorizing client on {envName} environment.
203
204
  </div>
204
205
  <div className='mb-2 text-md text-muted-foreground'>
205
- <div>A client app wants authorization to access the composable prompt servers in your name.</div>
206
+ <div>{t('login.terminal.clientWantsAuth')}</div>
206
207
  <div>The client app code is <b className="text-foreground">{clientInfo.code}</b>. You can check if the code is correct in the terminal.</div>
207
208
  </div>
208
209
  <div className='mb-2 text-sm text-muted-foreground'>
209
- <div>You must choose the target account and project for the client to access.</div>
210
- <div>Also, enter a profile name that will be used to save the authorization in your client configuration.</div>
210
+ <div>{t('login.terminal.chooseAccountProject')}</div>
211
+ <div>{t('login.terminal.profileNameNote')}</div>
211
212
  </div>
212
213
  </div>
213
214
  <ProfileForm onAccept={onAccept} allProjects={allProjects} data={clientInfo} />
@@ -217,12 +218,13 @@ function AuthAcceptScreen({ onAccept, clientInfo }: Readonly<AuthAcceptScreenPro
217
218
 
218
219
  function AuthDoneScreen({ payload, error }: Readonly<{ payload: LoginResult, error?: Error }>) {
219
220
  const toast = useToast()
221
+ const { t } = useUITranslation()
220
222
  const onCopy = () => {
221
223
  if (payload) {
222
224
  navigator.clipboard.writeText(JSON.stringify(payload))
223
225
  toast({
224
- title: 'Authentication Payload copied',
225
- description: error ? 'You can paste the authentication payload in the terminal to authenticate the client.' : 'You can close the page now.',
226
+ title: t('login.terminal.authPayloadCopied'),
227
+ description: error ? t('login.terminal.authPayloadCopiedWithError', { error: error.message }) : t('login.terminal.authPayloadCopiedSuccess'),
226
228
  status: 'success',
227
229
  duration: 5000
228
230
  })
@@ -234,14 +236,12 @@ function AuthDoneScreen({ payload, error }: Readonly<{ payload: LoginResult, err
234
236
  {
235
237
  error ?
236
238
  <div>
237
- <ErrorBox title='Failed to send the authorization token to the cli tool'>This can happen due to security checks on Safari. The error is &quot;{error.message}&quot;</ErrorBox>
238
- <div>Don&apos;t worry, you can still authenticate the cli tool by pasting the authentication token in the terminal.
239
- You can close this page.</div>
239
+ <ErrorBox title={t('login.terminal.failedToSendToken')}>{t('login.terminal.failedToSendTokenDesc', { error: error.message })}</ErrorBox>
240
240
  </div>
241
- : <div>The client is authenticated. You can close this page.</div>
241
+ : <div>{t('login.terminal.clientAuthenticated')}</div>
242
242
  }
243
243
  <Center className="mt-4">
244
- <Button variant='secondary' onClick={onCopy}>Copy the Authentication Payload</Button>
244
+ <Button variant='secondary' onClick={onCopy}>{t('login.terminal.copyAuthPayload')}</Button>
245
245
  </Center>
246
246
  </div>
247
247
  )
@@ -254,6 +254,7 @@ interface ProfileFormProps {
254
254
  }
255
255
  function ProfileForm({ allProjects, data, onAccept }: Readonly<ProfileFormProps>) {
256
256
  const { accounts, account, project } = useUserSession()
257
+ const { t } = useUITranslation()
257
258
  const [currentData, setCurrentData] = useState<ProfileData>(() => ({
258
259
  profile: data.profile,
259
260
  account: data.account ?? account?.id,
@@ -277,22 +278,22 @@ function ProfileForm({ allProjects, data, onAccept }: Readonly<ProfileFormProps>
277
278
  return (
278
279
  <div className='w-1/3'>
279
280
  <div className="mb-4 flex flex-col gap-2">
280
- <span className="font-semibold text-muted-foreground">Profile Name</span>
281
+ <span className="font-semibold text-muted-foreground">{t('login.terminal.profileName')}</span>
281
282
  <Input type='text' value={currentData.profile} onChange={onChangeProfile} />
282
283
  </div>
283
284
  <div className="mb-4 flex flex-col gap-2">
284
- <span className="font-semibold text-muted-foreground">Account</span>
285
+ <span className="font-semibold text-muted-foreground">{t('login.terminal.account')}</span>
285
286
  <SelectAccount value={currentData.account} onChange={onChangeAccount} accounts={accounts || []} />
286
287
  </div>
287
288
  <div className="mb-4 flex flex-col gap-2">
288
- <span className="font-semibold text-muted-foreground">Project</span>
289
+ <span className="font-semibold text-muted-foreground">{t('login.terminal.project')}</span>
289
290
  <SelectProject value={currentData.project} onChange={onChangeProject} projects={projects} />
290
291
  </div>
291
292
  <div className='mb-4 text-sm text-attention'>
292
- <b>Note:</b> If your browser asks for permission to access your local network, please allow it. This is required to send the authorization token back to the CLI tool. If not, you will need to copy/paste the token manually in your terminal.
293
+ {t('login.terminal.browserPermissionNote')}
293
294
  </div>
294
295
  <div>
295
- <Button size='xl' onClick={() => onAccept(currentData)}>Authorize Client</Button>
296
+ <Button size='xl' onClick={() => onAccept(currentData)}>{t('login.terminal.authorizeClient')}</Button>
296
297
  </div>
297
298
  </div>
298
299
  )
@@ -304,6 +305,7 @@ interface SelectAccountProps {
304
305
  onChange: (value: AccountRef) => void
305
306
  }
306
307
  function SelectAccount({ value, accounts, onChange }: Readonly<SelectAccountProps>) {
308
+ const { t } = useUITranslation()
307
309
  const _onChange = (value: AccountRef) => {
308
310
  onChange(value)
309
311
  }
@@ -313,7 +315,7 @@ function SelectAccount({ value, accounts, onChange }: Readonly<SelectAccountProp
313
315
  onChange={_onChange}
314
316
  by="id"
315
317
  optionLabel={(option) => option.name}
316
- placeholder='Select Account'
318
+ placeholder={t('login.terminal.selectAccount')}
317
319
  />
318
320
  }
319
321
 
@@ -323,6 +325,7 @@ interface SelectProjectProps {
323
325
  onChange: (value: ProjectRef) => void
324
326
  }
325
327
  function SelectProject({ value, projects, onChange }: Readonly<SelectProjectProps>) {
328
+ const { t } = useUITranslation()
326
329
  const _onChange = (value: ProjectRef) => {
327
330
  onChange(value)
328
331
  }
@@ -332,7 +335,7 @@ function SelectProject({ value, projects, onChange }: Readonly<SelectProjectProp
332
335
  value={projects.find(p => p.id === value)}
333
336
  options={projects}
334
337
  optionLabel={(option) => option.name}
335
- placeholder='Select Project'
338
+ placeholder={t('login.terminal.selectProject')}
336
339
  onChange={_onChange} />
337
340
  )
338
341
  }
@@ -5,6 +5,7 @@ import { useUserSession } from "@vertesia/ui/session";
5
5
  // Package version is now passed as prop from the consuming application
6
6
  import { Check, CopyIcon } from "lucide-react";
7
7
  import { useState } from "react";
8
+ import { useUITranslation } from '../../i18n/index.js';
8
9
 
9
10
  export function InfoItems({ title, value }: { title: string, value: string }) {
10
11
  function copyToClipboard(value: string) {
@@ -32,6 +33,7 @@ export function InfoItems({ title, value }: { title: string, value: string }) {
32
33
  }
33
34
 
34
35
  export default function InfoList() {
36
+ const { t } = useUITranslation();
35
37
 
36
38
  const session = useUserSession();
37
39
  const { account, project, client, authToken } = session;
@@ -42,27 +44,27 @@ export default function InfoList() {
42
44
  const tabs = [
43
45
  {
44
46
  name: 'user',
45
- label: 'User',
47
+ label: t('user.user'),
46
48
  content:
47
49
  <div className="space-y-1 p-2">
48
- <InfoItems title="Organization ID" value={account?.id ?? 'Unknown'} />
49
- <InfoItems title="Project ID" value={project?.id ?? 'Unknown'} />
50
- <InfoItems title="User ID" value={authToken?.sub ?? 'Unknown'} />
51
- <InfoItems title="Organization Roles" value={authToken?.account_roles?.join(',') ?? 'Unknown'} />
52
- <InfoItems title="Project Roles" value={authToken?.project_roles?.join(',') ?? 'Unknown'} />
50
+ <InfoItems title={t('user.organizationId')} value={account?.id ?? t('user.unknown')} />
51
+ <InfoItems title={t('user.projectId')} value={project?.id ?? t('user.unknown')} />
52
+ <InfoItems title={t('user.userId')} value={authToken?.sub ?? t('user.unknown')} />
53
+ <InfoItems title={t('user.organizationRoles')} value={authToken?.account_roles?.join(',') ?? t('user.unknown')} />
54
+ <InfoItems title={t('user.projectRoles')} value={authToken?.project_roles?.join(',') ?? t('user.unknown')} />
53
55
  </div>
54
56
  },
55
57
  {
56
58
  name: 'environment',
57
- label: 'Environment',
59
+ label: t('user.environment'),
58
60
  content:
59
61
  <div className="space-y-1 p-2">
60
- <InfoItems title="Tenant ID" value={tenantId} />
61
- <InfoItems title="Environment" value={Env.type} />
62
- <InfoItems title="Server" value={server} />
63
- <InfoItems title="Store" value={store} />
64
- <InfoItems title="App Version" value={Env.version} />
65
- <InfoItems title="SDK Version" value={Env.sdkVersion || 'unknown'} />
62
+ <InfoItems title={t('user.tenantId')} value={tenantId} />
63
+ <InfoItems title={t('user.environment')} value={Env.type} />
64
+ <InfoItems title={t('user.server')} value={server} />
65
+ <InfoItems title={t('user.store')} value={store} />
66
+ <InfoItems title={t('user.appVersion')} value={Env.version} />
67
+ <InfoItems title={t('user.sdkVersion')} value={Env.sdkVersion || t('user.unknown')} />
66
68
  </div>
67
69
  }
68
70
  ];
@@ -1,7 +1,6 @@
1
1
  import { AuthTokenPayload, Permission } from "@vertesia/common";
2
- import { Avatar, Button, MenuList, ModeToggle, Spinner } from "@vertesia/ui/core";
2
+ import { Avatar, Button, MenuList, ModeToggle, Popover, PopoverContent, PopoverTrigger, Spinner } from "@vertesia/ui/core";
3
3
  import { useUserSession } from "@vertesia/ui/session";
4
- import { Popover } from "@vertesia/ui/widgets";
5
4
  import clsx from "clsx";
6
5
  import { useState } from "react";
7
6
  import SignInModal from "./SignInModal";
@@ -48,8 +47,8 @@ function UserSessionPopup({ className, asMenuTrigger = false }: UserSessionPopup
48
47
  const isProjectManager = perms.hasPermission(Permission.project_admin);
49
48
 
50
49
  return (
51
- <Popover strategy='fixed' placement='bottom-start' zIndex={100}>
52
- <Popover.Trigger click>
50
+ <Popover click>
51
+ <PopoverTrigger>
53
52
  <div className={clsx(className, "flex items-center justify-start", asMenuTrigger && "cursor-pointer")}>
54
53
  <Avatar
55
54
  size='sm'
@@ -58,35 +57,33 @@ function UserSessionPopup({ className, asMenuTrigger = false }: UserSessionPopup
58
57
  /*src={picture} */
59
58
  name={user?.name} />
60
59
  </div>
61
- </Popover.Trigger>
62
- <Popover.Content className="w-[280px] mx-2 my-1">
63
- <div className="bg-white dark:bg-slate-900 shadow-lg rounded-md ring-1 ring-gray-200 dark:ring-slate-700">
64
- <div className='divide-y divide-gray-200 dark:divide-slate-700'>
65
- <div className='py-2 pl-2'>
66
- <p className="px-4 dark:text-white mb-1">{user?.name ?? 'Unknown'}</p>
67
- <p className="px-4 text-xs text-gray-500">{user?.email ?? ''}</p>
68
- </div>
69
- <div className="w-full p-1" >
70
- <InfoList />
71
- </div>
72
- <div className='py-2 pl-2'>
73
- <ModeToggle />
74
- </div>
75
- <div className='py-2'>
76
- <MenuList>
77
- {isProjectManager && (
78
- <MenuList.Item className='px-2' onClick={() => navigate('/settings', { replace: true })}>
79
- Settings
80
- </MenuList.Item>
81
- )}
82
- <MenuList.Item className='px-2' onClick={() => session.logout()}>
83
- Sign out
60
+ </PopoverTrigger>
61
+ <PopoverContent align="start" className="w-[280px] mx-2 my-1 p-0">
62
+ <div className='divide-y divide-gray-200 dark:divide-slate-700'>
63
+ <div className='py-2 pl-2'>
64
+ <p className="px-4 dark:text-white mb-1">{user?.name ?? 'Unknown'}</p>
65
+ <p className="px-4 text-xs text-gray-500">{user?.email ?? ''}</p>
66
+ </div>
67
+ <div className="w-full p-1" >
68
+ <InfoList />
69
+ </div>
70
+ <div className='py-2 pl-2'>
71
+ <ModeToggle />
72
+ </div>
73
+ <div className='py-2'>
74
+ <MenuList>
75
+ {isProjectManager && (
76
+ <MenuList.Item className='px-2' onClick={() => navigate('/settings', { replace: true })}>
77
+ Settings
84
78
  </MenuList.Item>
85
- </MenuList>
86
- </div>
87
- </div >
79
+ )}
80
+ <MenuList.Item className='px-2' onClick={() => session.logout()}>
81
+ Sign out
82
+ </MenuList.Item>
83
+ </MenuList>
84
+ </div>
88
85
  </div >
89
- </Popover.Content>
86
+ </PopoverContent>
90
87
  </Popover>
91
88
  )
92
89
  }
@@ -2,7 +2,6 @@ export * from "./monacoEditor/index.js";
2
2
  export * from "./form/index.js";
3
3
  export * from "./json-view/index.js";
4
4
  export * from "./markdown/index.js";
5
- export * from "./popover/index.js";
6
5
  export * from "./Progress.js";
7
6
  export * from "./properties/index.js";
8
7
  export * from "./schema-editor/index.js";
@@ -17,7 +17,7 @@ export function JSONCode({ data, className }: { data: any; className?: string })
17
17
  }, [data]);
18
18
 
19
19
  return (
20
- <div className={`h-full ${className || ''}`}>
20
+ <div className={`h-full pb-2 mb-2 ${className || ''}`}>
21
21
  <MonacoEditor
22
22
  value={jsonString}
23
23
  language="json"
@@ -1,4 +1,5 @@
1
1
  import type { JSONObject } from "@vertesia/json";
2
+ import { useUITranslation } from "@vertesia/ui/i18n";
2
3
 
3
4
  import { JSONCode } from './JSONCode.js';
4
5
  import { JSONView } from './JSONView.js';
@@ -9,16 +10,20 @@ interface JSONDisplayProps {
9
10
  viewCode?: boolean;
10
11
  }
11
12
  export function JSONDisplay({ value, viewCode = false }: JSONDisplayProps) {
13
+ const { t } = useUITranslation();
12
14
 
13
15
  if (!value) {
14
16
  return (
15
- <pre className="whitespace-pre-wrap">No Data to display</pre>
17
+ <pre className="whitespace-pre-wrap">{t('misc.noData')}</pre>
16
18
  );
17
19
  }
18
20
 
19
21
  return (
20
- <div className='relative w-full h-full'>
21
- {viewCode ? <JSONCode data={value} /> : <JSONView value={value} />}
22
+ <div className='relative w-full h-full flex flex-col'>
23
+ {viewCode
24
+ ? <JSONCode data={value} />
25
+ : <div className="flex-1 min-h-0 overflow-auto"><JSONView value={value} /></div>
26
+ }
22
27
  </div>
23
28
  )
24
29
  }
@@ -0,0 +1,24 @@
1
+ import { Button } from "@vertesia/ui/core";
2
+
3
+ export function JSONSwitcher({ title, viewCode, setViewCode }: { title: string, viewCode: boolean, setViewCode: (value: boolean) => void }) {
4
+ return (
5
+ <div className="flex items-center gap-1 bg-muted mb-2 p-1 rounded">
6
+ <Button
7
+ variant={viewCode ? "ghost" : "primary"}
8
+ size="sm"
9
+ alt="Preview properties"
10
+ onClick={() => setViewCode(false)}
11
+ >
12
+ {title}
13
+ </Button>
14
+ <Button
15
+ variant={viewCode ? "primary" : "ghost"}
16
+ size="sm"
17
+ alt="View in JSON format"
18
+ onClick={() => setViewCode(true)}
19
+ >
20
+ JSON
21
+ </Button>
22
+ </div>
23
+ );
24
+ }
@@ -9,7 +9,7 @@ interface JSONViewProps {
9
9
  value: JSONObject;
10
10
  }
11
11
  export function JSONView({ value }: JSONViewProps) {
12
- return <div className="flex flex-col gap-4">
12
+ return <div className="flex flex-col gap-4 px-2 h-full overflow-auto">
13
13
  {
14
14
  Object.entries(value).map(([key, value]) =>
15
15
  <PropertyElement key={key} name={key} value={value as JSONValue} />
@@ -2,3 +2,4 @@ export type * from "./types.js";
2
2
  export * from "./JSONCode.js";
3
3
  export * from "./JSONDisplay.js";
4
4
  export * from "./JSONView.js";
5
+ export * from "./JSONSwitcher.js";
@@ -4,13 +4,13 @@
4
4
  * Supports rendering charts, tables, markdown, fusion fragments, and more.
5
5
  */
6
6
 
7
- import { useMemo, type ReactElement } from 'react';
7
+ import { FusionFragmentHandler, FusionFragmentProvider } from '@vertesia/fusion-ux';
8
8
  import DOMPurify from 'dompurify';
9
- import { CodeBlockPlaceholder, CodeBlockErrorBoundary } from './CodeBlockPlaceholder';
9
+ import { useMemo, type ReactElement } from 'react';
10
10
  import { type VegaLiteChartSpec } from '../../features/agent/chat/AgentChart';
11
11
  import { VegaLiteChart } from '../../features/agent/chat/VegaLiteChart';
12
- import { FusionFragmentHandler, FusionFragmentProvider } from '@vertesia/fusion-ux';
13
- import { MarkdownRenderer } from './MarkdownRenderer';
12
+ import { useCodeBlockContext } from './CodeBlockContext';
13
+ import { CodeBlockErrorBoundary, CodeBlockPlaceholder } from './CodeBlockPlaceholder';
14
14
 
15
15
  // Render type mapping
16
16
  export type ExpandRenderType =
@@ -285,6 +285,8 @@ export function ArtifactContentRenderer({
285
285
  runId,
286
286
  contentType,
287
287
  }: ArtifactContentRendererProps): ReactElement {
288
+ const { MarkdownRenderer } = useCodeBlockContext();
289
+
288
290
  // Determine actual render type
289
291
  const actualType = useMemo(() => {
290
292
  if (renderType !== 'auto') {
@@ -374,9 +376,15 @@ export function ArtifactContentRenderer({
374
376
  const markdownContent = typeof content === 'string' ? content : String(content);
375
377
  return (
376
378
  <CodeBlockErrorBoundary type="markdown" fallbackCode={markdownContent}>
377
- <MarkdownRenderer artifactRunId={runId}>
378
- {markdownContent}
379
- </MarkdownRenderer>
379
+ {MarkdownRenderer ? (
380
+ <MarkdownRenderer artifactRunId={runId}>
381
+ {markdownContent}
382
+ </MarkdownRenderer>
383
+ ) : (
384
+ <pre className="overflow-x-auto p-3 bg-muted/10 rounded text-sm">
385
+ <code>{markdownContent}</code>
386
+ </pre>
387
+ )}
380
388
  </CodeBlockErrorBoundary>
381
389
  );
382
390
  }
@@ -0,0 +1,34 @@
1
+ import React, { useMemo } from 'react';
2
+
3
+ /**
4
+ * Context for passing artifact run ID, callbacks, and the MarkdownRenderer component
5
+ * to code block handlers. MarkdownRenderer is injected here (rather than imported
6
+ * directly in ArtifactContentRenderer) to break the circular dependency:
7
+ * MarkdownRenderer → codeBlockHandlers → ArtifactContentRenderer → MarkdownRenderer
8
+ */
9
+ export interface CodeBlockHandlerContext {
10
+ artifactRunId?: string;
11
+ onProposalSelect?: (optionId: string) => void;
12
+ onProposalSubmit?: (response: string) => void;
13
+ MarkdownRenderer?: React.ComponentType<{ children: string; artifactRunId?: string }>;
14
+ }
15
+
16
+ const CodeBlockContext = React.createContext<CodeBlockHandlerContext>({});
17
+
18
+ export function CodeBlockHandlerProvider({
19
+ children,
20
+ artifactRunId,
21
+ onProposalSelect,
22
+ onProposalSubmit,
23
+ MarkdownRenderer,
24
+ }: CodeBlockHandlerContext & { children: React.ReactNode }) {
25
+ const value = useMemo(
26
+ () => ({ artifactRunId, onProposalSelect, onProposalSubmit, MarkdownRenderer }),
27
+ [artifactRunId, onProposalSelect, onProposalSubmit, MarkdownRenderer]
28
+ );
29
+ return <CodeBlockContext.Provider value={value}>{children}</CodeBlockContext.Provider>;
30
+ }
31
+
32
+ export function useCodeBlockContext() {
33
+ return React.useContext(CodeBlockContext);
34
+ }
@@ -1,27 +1,27 @@
1
- import { useCodeBlockRendererRegistry } from './CodeBlockRendering';
2
1
  import type { Element } from 'hast';
3
2
  import React from 'react';
4
3
  import Markdown, { defaultUrlTransform } from 'react-markdown';
5
- import remarkGfm from 'remark-gfm';
6
- import remarkMath from 'remark-math';
4
+ import rehypeKatex from 'rehype-katex';
5
+ import { defListHastHandlers, remarkDefinitionList } from 'remark-definition-list';
7
6
  import remarkDirective from 'remark-directive';
7
+ import remarkGfm from 'remark-gfm';
8
8
  import remarkAlert from 'remark-github-blockquote-alert';
9
- import { remarkDefinitionList, defListHastHandlers } from 'remark-definition-list';
9
+ import remarkMath from 'remark-math';
10
10
  import remarkSupersub from 'remark-supersub';
11
- import rehypeKatex from 'rehype-katex';
12
11
  import { SKIP, visit } from 'unist-util-visit';
13
- import { MarkdownLink } from './MarkdownLink';
14
- import { MarkdownImage } from './MarkdownImage';
15
- import { MarkdownFigure } from './MarkdownFigure';
16
- import { remarkDirectiveHandler } from './remarkDirectiveHandler';
17
- import { normalizeCustomSchemeLinks } from './normalizeCustomSchemeLinks';
18
- import { normalizeDirectives } from './normalizeDirectives';
12
+ import { CodeBlockHandlerProvider } from './CodeBlockContext';
19
13
  import {
20
- CodeBlockHandlerProvider,
21
14
  createDefaultCodeBlockHandlers,
22
- isExpandLanguage,
23
15
  ExpandCodeBlockHandler,
16
+ isExpandLanguage,
24
17
  } from './codeBlockHandlers';
18
+ import { useCodeBlockRendererRegistry } from './CodeBlockRendering';
19
+ import { MarkdownFigure } from './MarkdownFigure';
20
+ import { MarkdownImage } from './MarkdownImage';
21
+ import { MarkdownLink } from './MarkdownLink';
22
+ import { normalizeCustomSchemeLinks } from './normalizeCustomSchemeLinks';
23
+ import { normalizeDirectives } from './normalizeDirectives';
24
+ import { remarkDirectiveHandler } from './remarkDirectiveHandler';
25
25
 
26
26
  // Custom URL schemes that we handle in our components
27
27
  const ALLOWED_CUSTOM_SCHEMES = [
@@ -280,6 +280,7 @@ export function MarkdownRenderer({
280
280
  artifactRunId={artifactRunId}
281
281
  onProposalSelect={onProposalSelect}
282
282
  onProposalSubmit={onProposalSubmit}
283
+ MarkdownRenderer={MarkdownRenderer}
283
284
  >
284
285
  <Markdown
285
286
  remarkPlugins={remarkPluginsArray}