@vertesia/ui 0.59.0 → 0.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (661) hide show
  1. package/lib/esm/core/components/FormItem.js +9 -0
  2. package/lib/esm/core/components/FormItem.js.map +1 -0
  3. package/lib/esm/core/components/InputList.js +4 -3
  4. package/lib/esm/core/components/InputList.js.map +1 -1
  5. package/lib/esm/core/components/index.js +3 -3
  6. package/lib/esm/core/components/index.js.map +1 -1
  7. package/lib/esm/core/components/shadcn/button.js +37 -7
  8. package/lib/esm/core/components/shadcn/button.js.map +1 -1
  9. package/lib/esm/core/components/shadcn/dialog.js +3 -3
  10. package/lib/esm/core/components/shadcn/dialog.js.map +1 -1
  11. package/lib/esm/core/components/shadcn/filters/DynamicLabel.js +38 -0
  12. package/lib/esm/core/components/shadcn/filters/DynamicLabel.js.map +1 -0
  13. package/lib/esm/core/components/shadcn/filters/comboBox.js +24 -26
  14. package/lib/esm/core/components/shadcn/filters/comboBox.js.map +1 -1
  15. package/lib/esm/core/components/shadcn/filters/dateFilter.js +12 -12
  16. package/lib/esm/core/components/shadcn/filters/dateFilter.js.map +1 -1
  17. package/lib/esm/core/components/shadcn/filters/filterBar.js +49 -36
  18. package/lib/esm/core/components/shadcn/filters/filterBar.js.map +1 -1
  19. package/lib/esm/core/components/shadcn/filters/filters.js +31 -23
  20. package/lib/esm/core/components/shadcn/filters/filters.js.map +1 -1
  21. package/lib/esm/core/components/shadcn/filters/selectFilter.js +33 -24
  22. package/lib/esm/core/components/shadcn/filters/selectFilter.js.map +1 -1
  23. package/lib/esm/core/components/shadcn/filters/textFilter.js +2 -2
  24. package/lib/esm/core/components/shadcn/filters/textFilter.js.map +1 -1
  25. package/lib/esm/core/components/shadcn/filters/types.js.map +1 -1
  26. package/lib/esm/core/components/shadcn/input.js +4 -4
  27. package/lib/esm/core/components/shadcn/input.js.map +1 -1
  28. package/lib/esm/core/components/shadcn/selectBox.js +72 -6
  29. package/lib/esm/core/components/shadcn/selectBox.js.map +1 -1
  30. package/lib/esm/core/components/styles.js +1 -1
  31. package/lib/esm/core/components/styles.js.map +1 -1
  32. package/lib/esm/core/components/table/index.js +3 -0
  33. package/lib/esm/core/components/table/index.js.map +1 -1
  34. package/lib/esm/core/index.js +2 -1
  35. package/lib/esm/core/index.js.map +1 -1
  36. package/lib/esm/core/utils/cn.js +6 -0
  37. package/lib/esm/core/utils/cn.js.map +1 -0
  38. package/lib/esm/core/utils/index.js +2 -0
  39. package/lib/esm/core/utils/index.js.map +1 -0
  40. package/lib/esm/features/agent/PayloadBuilder.js +174 -0
  41. package/lib/esm/features/agent/PayloadBuilder.js.map +1 -0
  42. package/lib/esm/features/agent/chat/AnimatedThinkingDots.js +207 -0
  43. package/lib/esm/features/agent/chat/AnimatedThinkingDots.js.map +1 -0
  44. package/lib/esm/features/agent/chat/JumpingDots.js +6 -0
  45. package/lib/esm/features/agent/chat/JumpingDots.js.map +1 -0
  46. package/lib/esm/features/agent/chat/ModernAgentConversation.js +409 -0
  47. package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +1 -0
  48. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +129 -0
  49. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -0
  50. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +66 -0
  51. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +1 -0
  52. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js +29 -0
  53. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js.map +1 -0
  54. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +97 -0
  55. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +1 -0
  56. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +46 -0
  57. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +1 -0
  58. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +352 -0
  59. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +1 -0
  60. package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js +20 -0
  61. package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js.map +1 -0
  62. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js +62 -0
  63. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js.map +1 -0
  64. package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js +23 -0
  65. package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js.map +1 -0
  66. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js +51 -0
  67. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js.map +1 -0
  68. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js +82 -0
  69. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js.map +1 -0
  70. package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js +13 -0
  71. package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js.map +1 -0
  72. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +105 -0
  73. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +1 -0
  74. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js +154 -0
  75. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js.map +1 -0
  76. package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js +266 -0
  77. package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js.map +1 -0
  78. package/lib/esm/features/agent/chat/WaitingMessages.js +60 -0
  79. package/lib/esm/features/agent/chat/WaitingMessages.js.map +1 -0
  80. package/lib/esm/features/agent/chat/index.js +5 -0
  81. package/lib/esm/features/agent/chat/index.js.map +1 -0
  82. package/lib/esm/features/agent/index.js +3 -0
  83. package/lib/esm/features/agent/index.js.map +1 -0
  84. package/lib/esm/features/errors/PanelErrorBoundary.js +11 -0
  85. package/lib/esm/features/errors/PanelErrorBoundary.js.map +1 -0
  86. package/lib/esm/features/errors/RowErrorBoundary.js +9 -0
  87. package/lib/esm/features/errors/RowErrorBoundary.js.map +1 -0
  88. package/lib/esm/features/errors/VertesiaErrorBoundary.js +15 -0
  89. package/lib/esm/features/errors/VertesiaErrorBoundary.js.map +1 -0
  90. package/lib/esm/features/errors/WidgetErrorBoundary.js +11 -0
  91. package/lib/esm/features/errors/WidgetErrorBoundary.js.map +1 -0
  92. package/lib/esm/features/errors/index.js +5 -0
  93. package/lib/esm/features/errors/index.js.map +1 -0
  94. package/lib/esm/features/facets/EnvironmentFacet.js +39 -0
  95. package/lib/esm/features/facets/EnvironmentFacet.js.map +1 -0
  96. package/lib/esm/features/facets/FacetsNav.js +8 -0
  97. package/lib/esm/features/facets/FacetsNav.js.map +1 -0
  98. package/lib/esm/features/facets/InteractionFacet.js +39 -0
  99. package/lib/esm/features/facets/InteractionFacet.js.map +1 -0
  100. package/lib/esm/features/facets/StringFacet.js +12 -0
  101. package/lib/esm/features/facets/StringFacet.js.map +1 -0
  102. package/lib/esm/features/facets/StringListFacet.js +11 -0
  103. package/lib/esm/features/facets/StringListFacet.js.map +1 -0
  104. package/lib/esm/features/facets/TypeFacet.js +42 -0
  105. package/lib/esm/features/facets/TypeFacet.js.map +1 -0
  106. package/lib/esm/features/facets/TypeOptions.js +19 -0
  107. package/lib/esm/features/facets/TypeOptions.js.map +1 -0
  108. package/lib/esm/features/facets/UserFacet.js +33 -0
  109. package/lib/esm/features/facets/UserFacet.js.map +1 -0
  110. package/lib/esm/features/facets/VFacetsNav.js +114 -0
  111. package/lib/esm/features/facets/VFacetsNav.js.map +1 -0
  112. package/lib/esm/features/facets/VStringFacet.js +17 -0
  113. package/lib/esm/features/facets/VStringFacet.js.map +1 -0
  114. package/lib/esm/features/facets/VTypeFacet.js +56 -0
  115. package/lib/esm/features/facets/VTypeFacet.js.map +1 -0
  116. package/lib/esm/features/facets/VUserFacet.js +31 -0
  117. package/lib/esm/features/facets/VUserFacet.js.map +1 -0
  118. package/lib/esm/features/facets/index.js +12 -0
  119. package/lib/esm/features/facets/index.js.map +1 -0
  120. package/lib/esm/features/facets/utils.js +7 -0
  121. package/lib/esm/features/facets/utils.js.map +1 -0
  122. package/lib/esm/features/index.js +9 -1
  123. package/lib/esm/features/index.js.map +1 -1
  124. package/lib/esm/features/layout/GenericPageNavHeader.js +11 -0
  125. package/lib/esm/features/layout/GenericPageNavHeader.js.map +1 -0
  126. package/lib/esm/features/layout/NotFoundView.js +5 -0
  127. package/lib/esm/features/layout/NotFoundView.js.map +1 -0
  128. package/lib/esm/features/layout/index.js +3 -0
  129. package/lib/esm/features/layout/index.js.map +1 -0
  130. package/lib/esm/features/magic-pdf/DownloadPopover.js +13 -0
  131. package/lib/esm/features/magic-pdf/DownloadPopover.js.map +1 -0
  132. package/lib/esm/features/magic-pdf/MagicPdfView.js +44 -0
  133. package/lib/esm/features/magic-pdf/MagicPdfView.js.map +1 -0
  134. package/lib/esm/features/magic-pdf/PageSlider.js +57 -0
  135. package/lib/esm/features/magic-pdf/PageSlider.js.map +1 -0
  136. package/lib/esm/features/magic-pdf/PdfPageProvider.js +133 -0
  137. package/lib/esm/features/magic-pdf/PdfPageProvider.js.map +1 -0
  138. package/lib/esm/features/magic-pdf/TextPageView.js +45 -0
  139. package/lib/esm/features/magic-pdf/TextPageView.js.map +1 -0
  140. package/lib/esm/features/magic-pdf/index.js +2 -0
  141. package/lib/esm/features/magic-pdf/index.js.map +1 -0
  142. package/lib/esm/features/magic-pdf/types.js +2 -0
  143. package/lib/esm/features/magic-pdf/types.js.map +1 -0
  144. package/lib/esm/features/magic-pdf/useResizeOnDrag.js +34 -0
  145. package/lib/esm/features/magic-pdf/useResizeOnDrag.js.map +1 -0
  146. package/lib/esm/features/store/collections/BrowseCollectionView.js +37 -0
  147. package/lib/esm/features/store/collections/BrowseCollectionView.js.map +1 -0
  148. package/lib/esm/features/store/collections/CollectionView.js +53 -0
  149. package/lib/esm/features/store/collections/CollectionView.js.map +1 -0
  150. package/lib/esm/features/store/collections/CollectionsTable.js +60 -0
  151. package/lib/esm/features/store/collections/CollectionsTable.js.map +1 -0
  152. package/lib/esm/features/store/collections/CollectionsView.js +94 -0
  153. package/lib/esm/features/store/collections/CollectionsView.js.map +1 -0
  154. package/lib/esm/features/store/collections/EditCollectionView.js +161 -0
  155. package/lib/esm/features/store/collections/EditCollectionView.js.map +1 -0
  156. package/lib/esm/features/store/collections/index.js +6 -0
  157. package/lib/esm/features/store/collections/index.js.map +1 -0
  158. package/lib/esm/features/store/index.js +4 -0
  159. package/lib/esm/features/store/index.js.map +1 -0
  160. package/lib/esm/features/store/objects/DocumentPreviewPanel.js +150 -0
  161. package/lib/esm/features/store/objects/DocumentPreviewPanel.js.map +1 -0
  162. package/lib/esm/features/store/objects/DocumentSearchResults.js +123 -0
  163. package/lib/esm/features/store/objects/DocumentSearchResults.js.map +1 -0
  164. package/lib/esm/features/store/objects/DocumentSelectionProvider.js +81 -0
  165. package/lib/esm/features/store/objects/DocumentSelectionProvider.js.map +1 -0
  166. package/lib/esm/features/store/objects/DocumentTable.js +278 -0
  167. package/lib/esm/features/store/objects/DocumentTable.js.map +1 -0
  168. package/lib/esm/features/store/objects/ExportPropertiesModal.js +31 -0
  169. package/lib/esm/features/store/objects/ExportPropertiesModal.js.map +1 -0
  170. package/lib/esm/features/store/objects/components/ContentDispositionButton.js +31 -0
  171. package/lib/esm/features/store/objects/components/ContentDispositionButton.js.map +1 -0
  172. package/lib/esm/features/store/objects/components/ContentOverview.js +195 -0
  173. package/lib/esm/features/store/objects/components/ContentOverview.js.map +1 -0
  174. package/lib/esm/features/store/objects/components/DocumentIcon.js +28 -0
  175. package/lib/esm/features/store/objects/components/DocumentIcon.js.map +1 -0
  176. package/lib/esm/features/store/objects/components/DocumentInput.js +52 -0
  177. package/lib/esm/features/store/objects/components/DocumentInput.js.map +1 -0
  178. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js +169 -0
  179. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js.map +1 -0
  180. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js +45 -0
  181. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js.map +1 -0
  182. package/lib/esm/features/store/objects/components/SelectDocument.js +39 -0
  183. package/lib/esm/features/store/objects/components/SelectDocument.js.map +1 -0
  184. package/lib/esm/features/store/objects/components/SelectDocumentModal.js +7 -0
  185. package/lib/esm/features/store/objects/components/SelectDocumentModal.js.map +1 -0
  186. package/lib/esm/features/store/objects/components/VectorSearchWidget.js +85 -0
  187. package/lib/esm/features/store/objects/components/VectorSearchWidget.js.map +1 -0
  188. package/lib/esm/features/store/objects/components/index.js +10 -0
  189. package/lib/esm/features/store/objects/components/index.js.map +1 -0
  190. package/lib/esm/features/store/objects/components/useDownloadObject.js +21 -0
  191. package/lib/esm/features/store/objects/components/useDownloadObject.js.map +1 -0
  192. package/lib/esm/features/store/objects/index.js +11 -0
  193. package/lib/esm/features/store/objects/index.js.map +1 -0
  194. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js +74 -0
  195. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js.map +1 -0
  196. package/lib/esm/features/store/objects/layout/documentLayout.js +16 -0
  197. package/lib/esm/features/store/objects/layout/documentLayout.js.map +1 -0
  198. package/lib/esm/features/store/objects/layout/index.js +3 -0
  199. package/lib/esm/features/store/objects/layout/index.js.map +1 -0
  200. package/lib/esm/features/store/objects/layout/renderers.js +128 -0
  201. package/lib/esm/features/store/objects/layout/renderers.js.map +1 -0
  202. package/lib/esm/features/store/objects/search/DocumentSearchContext.js +150 -0
  203. package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +1 -0
  204. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js +41 -0
  205. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js.map +1 -0
  206. package/lib/esm/features/store/objects/search/index.js +3 -0
  207. package/lib/esm/features/store/objects/search/index.js.map +1 -0
  208. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js +149 -0
  209. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js.map +1 -0
  210. package/lib/esm/features/store/objects/selection/ObjectsActionSpec.js +2 -0
  211. package/lib/esm/features/store/objects/selection/ObjectsActionSpec.js.map +1 -0
  212. package/lib/esm/features/store/objects/selection/SelectionActions.js +75 -0
  213. package/lib/esm/features/store/objects/selection/SelectionActions.js.map +1 -0
  214. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +64 -0
  215. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +1 -0
  216. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js +53 -0
  217. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js.map +1 -0
  218. package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js +30 -0
  219. package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js.map +1 -0
  220. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js +66 -0
  221. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js.map +1 -0
  222. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js +106 -0
  223. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js.map +1 -0
  224. package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js +64 -0
  225. package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js.map +1 -0
  226. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js +72 -0
  227. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js.map +1 -0
  228. package/lib/esm/features/store/objects/selection/actions/index.js +8 -0
  229. package/lib/esm/features/store/objects/selection/actions/index.js.map +1 -0
  230. package/lib/esm/features/store/objects/selection/index.js +5 -0
  231. package/lib/esm/features/store/objects/selection/index.js.map +1 -0
  232. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +476 -0
  233. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +1 -0
  234. package/lib/esm/features/store/objects/upload/index.js +4 -0
  235. package/lib/esm/features/store/objects/upload/index.js.map +1 -0
  236. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +201 -0
  237. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +1 -0
  238. package/lib/esm/features/store/objects/upload/useUploadHandler.js +230 -0
  239. package/lib/esm/features/store/objects/upload/useUploadHandler.js.map +1 -0
  240. package/lib/esm/features/store/types/ContentObjectTypeView.js +158 -0
  241. package/lib/esm/features/store/types/ContentObjectTypeView.js.map +1 -0
  242. package/lib/esm/features/store/types/ContentObjectTypesSearch.js +82 -0
  243. package/lib/esm/features/store/types/ContentObjectTypesSearch.js.map +1 -0
  244. package/lib/esm/features/store/types/ContentObjectTypesTable.js +11 -0
  245. package/lib/esm/features/store/types/ContentObjectTypesTable.js.map +1 -0
  246. package/lib/esm/features/store/types/ContentObjectTypesView.js +55 -0
  247. package/lib/esm/features/store/types/ContentObjectTypesView.js.map +1 -0
  248. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js +26 -0
  249. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js.map +1 -0
  250. package/lib/esm/features/store/types/ObjectSchemaEditor.js +89 -0
  251. package/lib/esm/features/store/types/ObjectSchemaEditor.js.map +1 -0
  252. package/lib/esm/features/store/types/SelectContentType.js +43 -0
  253. package/lib/esm/features/store/types/SelectContentType.js.map +1 -0
  254. package/lib/esm/features/store/types/SelectContentTypeModal.js +28 -0
  255. package/lib/esm/features/store/types/SelectContentTypeModal.js.map +1 -0
  256. package/lib/esm/features/store/types/TableLayoutEditor.js +78 -0
  257. package/lib/esm/features/store/types/TableLayoutEditor.js.map +1 -0
  258. package/lib/esm/features/store/types/index.js +11 -0
  259. package/lib/esm/features/store/types/index.js.map +1 -0
  260. package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js +98 -0
  261. package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js.map +1 -0
  262. package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js +15 -0
  263. package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js.map +1 -0
  264. package/lib/esm/features/store/types/search/index.js +3 -0
  265. package/lib/esm/features/store/types/search/index.js.map +1 -0
  266. package/lib/esm/features/user/UserAvatar.js +18 -0
  267. package/lib/esm/features/user/UserAvatar.js.map +1 -0
  268. package/lib/esm/features/user/UserInfo.js +88 -0
  269. package/lib/esm/features/user/UserInfo.js.map +1 -0
  270. package/lib/esm/features/user/index.js +3 -0
  271. package/lib/esm/features/user/index.js.map +1 -0
  272. package/lib/esm/features/utils/index.js +4 -0
  273. package/lib/esm/features/utils/index.js.map +1 -0
  274. package/lib/esm/features/utils/mimeType.js +9 -0
  275. package/lib/esm/features/utils/mimeType.js.map +1 -0
  276. package/lib/esm/features/utils/rendition.js +47 -0
  277. package/lib/esm/features/utils/rendition.js.map +1 -0
  278. package/lib/esm/features/utils/text.js +10 -0
  279. package/lib/esm/features/utils/text.js.map +1 -0
  280. package/lib/esm/layout/FullHeightLayout.js +1 -1
  281. package/lib/esm/layout/FullHeightLayout.js.map +1 -1
  282. package/lib/esm/layout/Sidebar.js +12 -2
  283. package/lib/esm/layout/Sidebar.js.map +1 -1
  284. package/lib/esm/widgets/Progress.js +5 -0
  285. package/lib/esm/widgets/Progress.js.map +1 -0
  286. package/lib/esm/widgets/codemirror/CodeMirrorEditor.js +1 -1
  287. package/lib/esm/widgets/codemirror/CodeMirrorEditor.js.map +1 -1
  288. package/lib/esm/widgets/form/Form.js +2 -2
  289. package/lib/esm/widgets/form/Form.js.map +1 -1
  290. package/lib/esm/widgets/form/schema.js +11 -5
  291. package/lib/esm/widgets/form/schema.js.map +1 -1
  292. package/lib/esm/widgets/index.js +4 -0
  293. package/lib/esm/widgets/index.js.map +1 -1
  294. package/lib/esm/widgets/popover/Popover.js +73 -0
  295. package/lib/esm/widgets/popover/Popover.js.map +1 -0
  296. package/lib/esm/widgets/popover/context.js +7 -0
  297. package/lib/esm/widgets/popover/context.js.map +1 -0
  298. package/lib/esm/widgets/popover/index.js +3 -0
  299. package/lib/esm/widgets/popover/index.js.map +1 -0
  300. package/lib/esm/widgets/popover/slots.js +22 -0
  301. package/lib/esm/widgets/popover/slots.js.map +1 -0
  302. package/lib/esm/widgets/properties/PropertiesView.js +6 -0
  303. package/lib/esm/widgets/properties/PropertiesView.js.map +1 -0
  304. package/lib/esm/widgets/properties/index.js +2 -0
  305. package/lib/esm/widgets/properties/index.js.map +1 -0
  306. package/lib/esm/widgets/schema-editor/JSONSchemaEditorModal.js +1 -2
  307. package/lib/esm/widgets/schema-editor/JSONSchemaEditorModal.js.map +1 -1
  308. package/lib/esm/widgets/schema-editor/editor/Editable.js +9 -10
  309. package/lib/esm/widgets/schema-editor/editor/Editable.js.map +1 -1
  310. package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js +1 -1
  311. package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js.map +1 -1
  312. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js +2 -2
  313. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js.map +1 -1
  314. package/lib/esm/widgets/upload/DropZone.js +162 -0
  315. package/lib/esm/widgets/upload/DropZone.js.map +1 -0
  316. package/lib/esm/widgets/upload/UploadResultCategory.js +19 -0
  317. package/lib/esm/widgets/upload/UploadResultCategory.js.map +1 -0
  318. package/lib/esm/widgets/upload/UploadSummary.js +30 -0
  319. package/lib/esm/widgets/upload/UploadSummary.js.map +1 -0
  320. package/lib/esm/widgets/upload/index.js +4 -0
  321. package/lib/esm/widgets/upload/index.js.map +1 -0
  322. package/lib/tsconfig.tsbuildinfo +1 -1
  323. package/lib/types/core/components/FormItem.d.ts +11 -0
  324. package/lib/types/core/components/index.d.ts +3 -3
  325. package/lib/types/core/components/shadcn/button.d.ts +13 -2
  326. package/lib/types/core/components/shadcn/command.d.ts +7 -7
  327. package/lib/types/core/components/shadcn/filters/DynamicLabel.d.ts +8 -0
  328. package/lib/types/core/components/shadcn/filters/comboBox.d.ts +5 -5
  329. package/lib/types/core/components/shadcn/filters/dateFilter.d.ts +3 -4
  330. package/lib/types/core/components/shadcn/filters/types.d.ts +7 -1
  331. package/lib/types/core/components/shadcn/input.d.ts +4 -4
  332. package/lib/types/core/components/shadcn/selectBox.d.ts +13 -4
  333. package/lib/types/core/components/table/index.d.ts +1 -0
  334. package/lib/types/core/index.d.ts +2 -1
  335. package/lib/types/core/utils/cn.d.ts +2 -0
  336. package/lib/types/core/utils/index.d.ts +1 -0
  337. package/lib/types/features/agent/PayloadBuilder.d.ts +53 -0
  338. package/lib/types/features/agent/chat/AnimatedThinkingDots.d.ts +37 -0
  339. package/lib/types/features/agent/chat/JumpingDots.d.ts +6 -0
  340. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts +24 -0
  341. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +21 -0
  342. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +18 -0
  343. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.d.ts +10 -0
  344. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts +15 -0
  345. package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts +12 -0
  346. package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts +7 -0
  347. package/lib/types/features/agent/chat/ModernAgentOutput/MessagesContainer.d.ts +9 -0
  348. package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts +8 -0
  349. package/lib/types/features/agent/chat/ModernAgentOutput/SlideInPanel.d.ts +10 -0
  350. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingMessages.d.ts +7 -0
  351. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts +9 -0
  352. package/lib/types/features/agent/chat/ModernAgentOutput/StackedMessages.d.ts +7 -0
  353. package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts +21 -0
  354. package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts +23 -0
  355. package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts +17 -0
  356. package/lib/types/features/agent/chat/WaitingMessages.d.ts +1 -0
  357. package/lib/types/features/agent/chat/index.d.ts +4 -0
  358. package/lib/types/features/agent/index.d.ts +2 -0
  359. package/lib/types/features/errors/PanelErrorBoundary.d.ts +4 -0
  360. package/lib/types/features/errors/RowErrorBoundary.d.ts +7 -0
  361. package/lib/types/features/errors/VertesiaErrorBoundary.d.ts +11 -0
  362. package/lib/types/features/errors/WidgetErrorBoundary.d.ts +4 -0
  363. package/lib/types/features/errors/index.d.ts +4 -0
  364. package/lib/types/features/facets/EnvironmentFacet.d.ts +9 -0
  365. package/lib/types/features/facets/FacetsNav.d.ts +6 -0
  366. package/lib/types/features/facets/InteractionFacet.d.ts +9 -0
  367. package/lib/types/features/facets/StringFacet.d.ts +10 -0
  368. package/lib/types/features/facets/StringListFacet.d.ts +10 -0
  369. package/lib/types/features/facets/TypeFacet.d.ts +15 -0
  370. package/lib/types/features/facets/TypeOptions.d.ts +3 -0
  371. package/lib/types/features/facets/UserFacet.d.ts +11 -0
  372. package/lib/types/features/facets/VFacetsNav.d.ts +7 -0
  373. package/lib/types/features/facets/VStringFacet.d.ts +15 -0
  374. package/lib/types/features/facets/VTypeFacet.d.ts +8 -0
  375. package/lib/types/features/facets/VUserFacet.d.ts +9 -0
  376. package/lib/types/features/facets/index.d.ts +11 -0
  377. package/lib/types/features/facets/utils.d.ts +3 -0
  378. package/lib/types/features/index.d.ts +9 -1
  379. package/lib/types/features/layout/GenericPageNavHeader.d.ts +12 -0
  380. package/lib/types/features/layout/NotFoundView.d.ts +4 -0
  381. package/lib/types/features/layout/index.d.ts +2 -0
  382. package/lib/types/features/magic-pdf/DownloadPopover.d.ts +6 -0
  383. package/lib/types/features/magic-pdf/MagicPdfView.d.ts +6 -0
  384. package/lib/types/features/magic-pdf/PageSlider.d.ts +7 -0
  385. package/lib/types/features/magic-pdf/PdfPageProvider.d.ts +28 -0
  386. package/lib/types/features/magic-pdf/TextPageView.d.ts +7 -0
  387. package/lib/types/features/magic-pdf/index.d.ts +1 -0
  388. package/lib/types/features/magic-pdf/types.d.ts +1 -0
  389. package/lib/types/features/magic-pdf/useResizeOnDrag.d.ts +8 -0
  390. package/lib/types/features/store/collections/BrowseCollectionView.d.ts +6 -0
  391. package/lib/types/features/store/collections/CollectionView.d.ts +5 -0
  392. package/lib/types/features/store/collections/CollectionsTable.d.ts +5 -0
  393. package/lib/types/features/store/collections/CollectionsView.d.ts +10 -0
  394. package/lib/types/features/store/collections/EditCollectionView.d.ts +7 -0
  395. package/lib/types/features/store/collections/index.d.ts +5 -0
  396. package/lib/types/features/store/index.d.ts +3 -0
  397. package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts +7 -0
  398. package/lib/types/features/store/objects/DocumentSearchResults.d.ts +19 -0
  399. package/lib/types/features/store/objects/DocumentSelectionProvider.d.ts +32 -0
  400. package/lib/types/features/store/objects/DocumentTable.d.ts +20 -0
  401. package/lib/types/features/store/objects/ExportPropertiesModal.d.ts +11 -0
  402. package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts +8 -0
  403. package/lib/types/features/store/objects/components/ContentOverview.d.ts +7 -0
  404. package/lib/types/features/store/objects/components/DocumentIcon.d.ts +10 -0
  405. package/lib/types/features/store/objects/components/DocumentInput.d.ts +7 -0
  406. package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts +7 -0
  407. package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts +8 -0
  408. package/lib/types/features/store/objects/components/SelectDocument.d.ts +8 -0
  409. package/lib/types/features/store/objects/components/SelectDocumentModal.d.ts +8 -0
  410. package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts +10 -0
  411. package/lib/types/features/store/objects/components/index.d.ts +9 -0
  412. package/lib/types/features/store/objects/components/useDownloadObject.d.ts +3 -0
  413. package/lib/types/features/store/objects/index.d.ts +10 -0
  414. package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts +16 -0
  415. package/lib/types/features/store/objects/layout/documentLayout.d.ts +17 -0
  416. package/lib/types/features/store/objects/layout/index.d.ts +2 -0
  417. package/lib/types/features/store/objects/layout/renderers.d.ts +2 -0
  418. package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts +48 -0
  419. package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts +15 -0
  420. package/lib/types/features/store/objects/search/index.d.ts +2 -0
  421. package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts +25 -0
  422. package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts +27 -0
  423. package/lib/types/features/store/objects/selection/SelectionActions.d.ts +4 -0
  424. package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts +3 -0
  425. package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts +3 -0
  426. package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts +15 -0
  427. package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts +2 -0
  428. package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts +3 -0
  429. package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts +2 -0
  430. package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts +3 -0
  431. package/lib/types/features/store/objects/selection/actions/index.d.ts +7 -0
  432. package/lib/types/features/store/objects/selection/index.d.ts +4 -0
  433. package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts +37 -0
  434. package/lib/types/features/store/objects/upload/index.d.ts +3 -0
  435. package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts +29 -0
  436. package/lib/types/features/store/objects/upload/useUploadHandler.d.ts +49 -0
  437. package/lib/types/features/store/types/ContentObjectTypeView.d.ts +5 -0
  438. package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts +5 -0
  439. package/lib/types/features/store/types/ContentObjectTypesTable.d.ts +7 -0
  440. package/lib/types/features/store/types/ContentObjectTypesView.d.ts +8 -0
  441. package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts +14 -0
  442. package/lib/types/features/store/types/ObjectSchemaEditor.d.ts +7 -0
  443. package/lib/types/features/store/types/SelectContentType.d.ts +10 -0
  444. package/lib/types/features/store/types/SelectContentTypeModal.d.ts +32 -0
  445. package/lib/types/features/store/types/TableLayoutEditor.d.ts +8 -0
  446. package/lib/types/features/store/types/index.d.ts +10 -0
  447. package/lib/types/features/store/types/search/ObjectTypeSearchContext.d.ts +35 -0
  448. package/lib/types/features/store/types/search/ObjectTypeSearchProvider.d.ts +10 -0
  449. package/lib/types/features/store/types/search/index.d.ts +2 -0
  450. package/lib/types/features/user/UserAvatar.d.ts +8 -0
  451. package/lib/types/features/user/UserInfo.d.ts +36 -0
  452. package/lib/types/features/user/index.d.ts +2 -0
  453. package/lib/types/features/utils/index.d.ts +3 -0
  454. package/lib/types/features/utils/mimeType.d.ts +4 -0
  455. package/lib/types/features/utils/rendition.d.ts +3 -0
  456. package/lib/types/features/utils/text.d.ts +2 -0
  457. package/lib/types/layout/Sidebar.d.ts +2 -1
  458. package/lib/types/widgets/Progress.d.ts +5 -0
  459. package/lib/types/widgets/form/schema.d.ts +4 -3
  460. package/lib/types/widgets/index.d.ts +4 -0
  461. package/lib/types/widgets/popover/Popover.d.ts +37 -0
  462. package/lib/types/widgets/popover/context.d.ts +7 -0
  463. package/lib/types/widgets/popover/index.d.ts +2 -0
  464. package/lib/types/widgets/popover/slots.d.ts +4 -0
  465. package/lib/types/widgets/properties/PropertiesView.d.ts +10 -0
  466. package/lib/types/widgets/properties/index.d.ts +1 -0
  467. package/lib/types/widgets/upload/DropZone.d.ts +40 -0
  468. package/lib/types/widgets/upload/UploadResultCategory.d.ts +25 -0
  469. package/lib/types/widgets/upload/UploadSummary.d.ts +37 -0
  470. package/lib/types/widgets/upload/index.d.ts +3 -0
  471. package/lib/vertesia-ui-core.js +1 -1
  472. package/lib/vertesia-ui-core.js.map +1 -1
  473. package/lib/vertesia-ui-features.js +1 -1
  474. package/lib/vertesia-ui-features.js.map +1 -1
  475. package/lib/vertesia-ui-layout.js +1 -1
  476. package/lib/vertesia-ui-layout.js.map +1 -1
  477. package/lib/vertesia-ui-router.js.map +1 -1
  478. package/lib/vertesia-ui-session.js.map +1 -1
  479. package/lib/vertesia-ui-widgets.js +1 -1
  480. package/lib/vertesia-ui-widgets.js.map +1 -1
  481. package/package.json +13 -5
  482. package/src/core/components/FormItem.tsx +35 -0
  483. package/src/core/components/InputList.tsx +4 -3
  484. package/src/core/components/index.ts +3 -3
  485. package/src/core/components/shadcn/button.tsx +68 -8
  486. package/src/core/components/shadcn/dialog.tsx +3 -3
  487. package/src/core/components/shadcn/filters/DynamicLabel.tsx +45 -0
  488. package/src/core/components/shadcn/filters/comboBox.tsx +56 -52
  489. package/src/core/components/shadcn/filters/dateFilter.tsx +24 -25
  490. package/src/core/components/shadcn/filters/filterBar.tsx +53 -47
  491. package/src/core/components/shadcn/filters/filters.tsx +43 -30
  492. package/src/core/components/shadcn/filters/selectFilter.tsx +53 -34
  493. package/src/core/components/shadcn/filters/textFilter.tsx +6 -3
  494. package/src/core/components/shadcn/filters/types.ts +8 -1
  495. package/src/core/components/shadcn/input.tsx +5 -5
  496. package/src/core/components/shadcn/selectBox.tsx +138 -33
  497. package/src/core/components/styles.ts +1 -1
  498. package/src/core/components/table/index.tsx +8 -0
  499. package/src/core/index.ts +2 -1
  500. package/src/core/utils/cn.ts +6 -0
  501. package/src/core/utils/index.ts +1 -0
  502. package/src/features/agent/PayloadBuilder.tsx +208 -0
  503. package/src/features/agent/chat/AnimatedThinkingDots.tsx +350 -0
  504. package/src/features/agent/chat/JumpingDots.tsx +16 -0
  505. package/src/features/agent/chat/ModernAgentConversation.tsx +708 -0
  506. package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx +246 -0
  507. package/src/features/agent/chat/ModernAgentOutput/Header.tsx +231 -0
  508. package/src/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.tsx +66 -0
  509. package/src/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.tsx +282 -0
  510. package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +125 -0
  511. package/src/features/agent/chat/ModernAgentOutput/MessageItem.tsx +562 -0
  512. package/src/features/agent/chat/ModernAgentOutput/MessagesContainer.tsx +51 -0
  513. package/src/features/agent/chat/ModernAgentOutput/PlanPanel.tsx +123 -0
  514. package/src/features/agent/chat/ModernAgentOutput/README-image-support.md +43 -0
  515. package/src/features/agent/chat/ModernAgentOutput/SlideInPanel.tsx +72 -0
  516. package/src/features/agent/chat/ModernAgentOutput/SlidingMessages.tsx +96 -0
  517. package/src/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.tsx +185 -0
  518. package/src/features/agent/chat/ModernAgentOutput/StackedMessages.tsx +33 -0
  519. package/src/features/agent/chat/ModernAgentOutput/WorkstreamTabs.tsx +167 -0
  520. package/src/features/agent/chat/ModernAgentOutput/utils.ts +195 -0
  521. package/src/features/agent/chat/ModernAgentOutput/with-types.d.ts +15 -0
  522. package/src/features/agent/chat/SlidingThinkingIndicator.tsx +459 -0
  523. package/src/features/agent/chat/WaitingMessages.ts +66 -0
  524. package/src/features/agent/chat/index.ts +4 -0
  525. package/src/features/agent/index.ts +2 -0
  526. package/src/features/errors/PanelErrorBoundary.tsx +30 -0
  527. package/src/features/errors/RowErrorBoundary.tsx +28 -0
  528. package/src/features/errors/VertesiaErrorBoundary.tsx +28 -0
  529. package/src/features/errors/WidgetErrorBoundary.tsx +27 -0
  530. package/src/features/errors/index.ts +4 -0
  531. package/src/features/facets/EnvironmentFacet.tsx +53 -0
  532. package/src/features/facets/FacetsNav.tsx +19 -0
  533. package/src/features/facets/InteractionFacet.tsx +53 -0
  534. package/src/features/facets/StringFacet.tsx +23 -0
  535. package/src/features/facets/StringListFacet.tsx +22 -0
  536. package/src/features/facets/TypeFacet.tsx +59 -0
  537. package/src/features/facets/TypeOptions.tsx +22 -0
  538. package/src/features/facets/UserFacet.tsx +61 -0
  539. package/src/features/facets/VFacetsNav.tsx +139 -0
  540. package/src/features/facets/VStringFacet.tsx +34 -0
  541. package/src/features/facets/VTypeFacet.tsx +72 -0
  542. package/src/features/facets/VUserFacet.tsx +47 -0
  543. package/src/features/facets/index.ts +11 -0
  544. package/src/features/facets/utils.tsx +9 -0
  545. package/src/features/index.ts +9 -1
  546. package/src/features/layout/GenericPageNavHeader.tsx +48 -0
  547. package/src/features/layout/NotFoundView.tsx +11 -0
  548. package/src/features/layout/index.ts +2 -0
  549. package/src/features/magic-pdf/DownloadPopover.tsx +32 -0
  550. package/src/features/magic-pdf/MagicPdfView.tsx +102 -0
  551. package/src/features/magic-pdf/PageSlider.tsx +112 -0
  552. package/src/features/magic-pdf/PdfPageProvider.tsx +229 -0
  553. package/src/features/magic-pdf/TextPageView.tsx +65 -0
  554. package/src/features/magic-pdf/index.ts +1 -0
  555. package/src/features/magic-pdf/types.ts +1 -0
  556. package/src/features/magic-pdf/useResizeOnDrag.ts +42 -0
  557. package/src/features/store/collections/BrowseCollectionView.tsx +45 -0
  558. package/src/features/store/collections/CollectionView.tsx +94 -0
  559. package/src/features/store/collections/CollectionsTable.tsx +115 -0
  560. package/src/features/store/collections/CollectionsView.tsx +166 -0
  561. package/src/features/store/collections/EditCollectionView.tsx +253 -0
  562. package/src/features/store/collections/index.ts +5 -0
  563. package/src/features/store/index.ts +3 -0
  564. package/src/features/store/objects/DocumentPreviewPanel.tsx +417 -0
  565. package/src/features/store/objects/DocumentSearchResults.tsx +209 -0
  566. package/src/features/store/objects/DocumentSelectionProvider.tsx +99 -0
  567. package/src/features/store/objects/DocumentTable.tsx +409 -0
  568. package/src/features/store/objects/ExportPropertiesModal.tsx +89 -0
  569. package/src/features/store/objects/components/ContentDispositionButton.tsx +45 -0
  570. package/src/features/store/objects/components/ContentOverview.tsx +466 -0
  571. package/src/features/store/objects/components/DocumentIcon.tsx +87 -0
  572. package/src/features/store/objects/components/DocumentInput.tsx +90 -0
  573. package/src/features/store/objects/components/PropertiesEditorModal.tsx +253 -0
  574. package/src/features/store/objects/components/SaveVersionConfirmModal.tsx +136 -0
  575. package/src/features/store/objects/components/SelectDocument.tsx +69 -0
  576. package/src/features/store/objects/components/SelectDocumentModal.tsx +20 -0
  577. package/src/features/store/objects/components/VectorSearchWidget.tsx +115 -0
  578. package/src/features/store/objects/components/index.ts +9 -0
  579. package/src/features/store/objects/components/useDownloadObject.ts +24 -0
  580. package/src/features/store/objects/index.ts +10 -0
  581. package/src/features/store/objects/layout/DocumentTableColumn.tsx +84 -0
  582. package/src/features/store/objects/layout/documentLayout.tsx +69 -0
  583. package/src/features/store/objects/layout/index.ts +2 -0
  584. package/src/features/store/objects/layout/knowledge.md +238 -0
  585. package/src/features/store/objects/layout/renderers.tsx +139 -0
  586. package/src/features/store/objects/search/DocumentSearchContext.ts +181 -0
  587. package/src/features/store/objects/search/DocumentSearchProvider.tsx +54 -0
  588. package/src/features/store/objects/search/index.ts +2 -0
  589. package/src/features/store/objects/selection/ObjectsActionContext.tsx +196 -0
  590. package/src/features/store/objects/selection/ObjectsActionSpec.ts +31 -0
  591. package/src/features/store/objects/selection/SelectionActions.tsx +160 -0
  592. package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +114 -0
  593. package/src/features/store/objects/selection/actions/ChangeTypeAction.tsx +76 -0
  594. package/src/features/store/objects/selection/actions/ConfirmAction.tsx +46 -0
  595. package/src/features/store/objects/selection/actions/DeleteObjectsAction.tsx +77 -0
  596. package/src/features/store/objects/selection/actions/ExportPropertiesAction.tsx +117 -0
  597. package/src/features/store/objects/selection/actions/RemoveFromCollectionAction.tsx +77 -0
  598. package/src/features/store/objects/selection/actions/StartWorkflowComponent.tsx +122 -0
  599. package/src/features/store/objects/selection/actions/index.ts +7 -0
  600. package/src/features/store/objects/selection/index.ts +4 -0
  601. package/src/features/store/objects/upload/DocumentUploadModal.tsx +970 -0
  602. package/src/features/store/objects/upload/index.ts +3 -0
  603. package/src/features/store/objects/upload/useSmartFileUploadProcessing.ts +250 -0
  604. package/src/features/store/objects/upload/useUploadHandler.ts +325 -0
  605. package/src/features/store/types/ContentObjectTypeView.tsx +244 -0
  606. package/src/features/store/types/ContentObjectTypesSearch.tsx +111 -0
  607. package/src/features/store/types/ContentObjectTypesTable.tsx +38 -0
  608. package/src/features/store/types/ContentObjectTypesView.tsx +71 -0
  609. package/src/features/store/types/CreateOrUpdateTypeModal.tsx +70 -0
  610. package/src/features/store/types/ObjectSchemaEditor.tsx +127 -0
  611. package/src/features/store/types/SelectContentType.tsx +88 -0
  612. package/src/features/store/types/SelectContentTypeModal.tsx +142 -0
  613. package/src/features/store/types/TableLayoutEditor.tsx +104 -0
  614. package/src/features/store/types/index.ts +10 -0
  615. package/src/features/store/types/search/ObjectTypeSearchContext.tsx +119 -0
  616. package/src/features/store/types/search/ObjectTypeSearchProvider.tsx +24 -0
  617. package/src/features/store/types/search/index.ts +2 -0
  618. package/src/features/user/UserAvatar.tsx +34 -0
  619. package/src/features/user/UserInfo.tsx +215 -0
  620. package/src/features/user/index.ts +2 -0
  621. package/src/features/utils/index.ts +3 -0
  622. package/src/features/utils/mimeType.ts +9 -0
  623. package/src/features/utils/rendition.ts +75 -0
  624. package/src/features/utils/text.ts +10 -0
  625. package/src/layout/FullHeightLayout.tsx +1 -1
  626. package/src/layout/Sidebar.tsx +12 -2
  627. package/src/widgets/Progress.tsx +10 -0
  628. package/src/widgets/codemirror/CodeMirrorEditor.tsx +1 -1
  629. package/src/widgets/form/Form.tsx +2 -2
  630. package/src/widgets/form/schema.ts +14 -7
  631. package/src/widgets/index.ts +5 -1
  632. package/src/widgets/popover/Popover.tsx +171 -0
  633. package/src/widgets/popover/context.ts +15 -0
  634. package/src/widgets/popover/index.ts +2 -0
  635. package/src/widgets/popover/slots.ts +24 -0
  636. package/src/widgets/properties/PropertiesView.tsx +26 -0
  637. package/src/widgets/properties/index.ts +1 -0
  638. package/src/widgets/schema-editor/JSONSchemaEditorModal.tsx +1 -2
  639. package/src/widgets/schema-editor/editor/Editable.tsx +12 -13
  640. package/src/widgets/schema-editor/editor/PropertyViewer.tsx +1 -1
  641. package/src/widgets/schema-editor/editor/SchemaEditor.tsx +4 -4
  642. package/src/widgets/upload/DropZone.tsx +257 -0
  643. package/src/widgets/upload/UploadResultCategory.tsx +81 -0
  644. package/src/widgets/upload/UploadSummary.tsx +116 -0
  645. package/src/widgets/upload/index.ts +3 -0
  646. package/lib/esm/code/index.js +0 -3
  647. package/lib/esm/code/index.js.map +0 -1
  648. package/lib/esm/core/components/Input.js +0 -16
  649. package/lib/esm/core/components/Input.js.map +0 -1
  650. package/lib/esm/form/index.js +0 -3
  651. package/lib/esm/form/index.js.map +0 -1
  652. package/lib/types/code/index.d.ts +0 -0
  653. package/lib/types/core/components/Input.d.ts +0 -8
  654. package/lib/types/form/index.d.ts +0 -0
  655. package/lib/vertesia-ui-code.js +0 -2
  656. package/lib/vertesia-ui-code.js.map +0 -1
  657. package/lib/vertesia-ui-form.js +0 -2
  658. package/lib/vertesia-ui-form.js.map +0 -1
  659. package/src/code/index.ts +0 -1
  660. package/src/core/components/Input.tsx +0 -43
  661. package/src/form/index.ts +0 -1
@@ -0,0 +1,409 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { AgentMessageType } from "@vertesia/common";
3
+ import { Button, MessageBox, Spinner, useToast } from "@vertesia/ui/core";
4
+ import { useUserSession } from "@vertesia/ui/session";
5
+ import { Bot, Cpu, SendIcon, XIcon } from "lucide-react";
6
+ import { useEffect, useMemo, useRef, useState } from "react";
7
+ import { AnimatedThinkingDots, PulsatingCircle } from "./AnimatedThinkingDots";
8
+ import AllMessagesMixed from "./ModernAgentOutput/AllMessagesMixed";
9
+ import Header from "./ModernAgentOutput/Header";
10
+ import MessageInput from "./ModernAgentOutput/MessageInput";
11
+ import PlanPanel from "./ModernAgentOutput/PlanPanel";
12
+ import { getWorkstreamId, insertMessageInTimeline, isInProgress, } from "./ModernAgentOutput/utils";
13
+ import { ThinkingMessages } from "./WaitingMessages";
14
+ export function ModernAgentConversation(props) {
15
+ const { run, startWorkflow } = props;
16
+ if (run) {
17
+ // If we have a run, convert it to AsyncExecutionResult format if needed
18
+ const execRun = "runId" in run
19
+ ? run
20
+ : {
21
+ runId: run.run_id,
22
+ workflowId: run.workflow_id,
23
+ };
24
+ return _jsx(ModernAgentConversationInner, { ...props, run: execRun });
25
+ }
26
+ else if (startWorkflow) {
27
+ // If we have startWorkflow capability but no run yet
28
+ return _jsx(StartWorkflowView, { ...props });
29
+ }
30
+ else {
31
+ // Empty state
32
+ return _jsx(EmptyState, {});
33
+ }
34
+ }
35
+ // Empty state when no agent is running
36
+ function EmptyState() {
37
+ return (_jsxs(MessageBox, { status: "info", icon: _jsx(Bot, { className: "size-16 text-muted mb-4" }), children: [_jsx("div", { className: "text-base font-medium text-muted", children: "No agent currently running" }), _jsx("div", { className: "mt-3 text-sm text-muted", children: "Select an interaction and click Start to start an agent" })] }));
38
+ }
39
+ // Start workflow view - allows initiating a new agent conversation
40
+ function StartWorkflowView({ initialMessage, startWorkflow, onClose, isModal = false, placeholder = "Type your message...", startButtonText = "Start Agent", title = "Start New Conversation", }) {
41
+ const [inputValue, setInputValue] = useState("");
42
+ const [isSending, setIsSending] = useState(false);
43
+ const [run, setRun] = useState();
44
+ const toast = useToast();
45
+ const inputRef = useRef(null);
46
+ useEffect(() => {
47
+ // Focus the input field when component mounts
48
+ if (inputRef.current) {
49
+ inputRef.current.focus();
50
+ }
51
+ }, []);
52
+ // Start a new workflow with the message
53
+ const startWorkflowWithMessage = async () => {
54
+ if (!startWorkflow)
55
+ return;
56
+ const message = inputValue.trim();
57
+ if (!message || isSending)
58
+ return;
59
+ setIsSending(true);
60
+ try {
61
+ // Reset plan panel state when starting a new agent
62
+ sessionStorage.removeItem("plan-panel-shown");
63
+ toast({
64
+ title: "Starting agent...",
65
+ status: "info",
66
+ duration: 3000,
67
+ });
68
+ const newRun = await startWorkflow(message);
69
+ if (newRun) {
70
+ setRun({
71
+ runId: newRun.run_id,
72
+ workflowId: newRun.workflow_id,
73
+ });
74
+ setInputValue("");
75
+ toast({
76
+ title: "Agent started",
77
+ status: "success",
78
+ duration: 3000,
79
+ });
80
+ }
81
+ }
82
+ catch (err) {
83
+ toast({
84
+ title: "Error starting workflow",
85
+ status: "error",
86
+ duration: 3000,
87
+ description: err instanceof Error ? err.message : "Unknown error",
88
+ });
89
+ }
90
+ finally {
91
+ setIsSending(false);
92
+ }
93
+ };
94
+ const handleKeyDown = (e) => {
95
+ if (e.key === "Enter" && !e.shiftKey) {
96
+ e.preventDefault();
97
+ startWorkflowWithMessage();
98
+ }
99
+ };
100
+ // If a run has been started, show the conversation
101
+ if (run) {
102
+ return (_jsx(ModernAgentConversationInner, { onClose, isModal, initialMessage, placeholder, run: run, title: title }));
103
+ }
104
+ return (_jsxs("div", { className: "flex flex-col h-full bg-white dark:bg-gray-900 overflow-hidden border-0", children: [_jsxs("div", { className: "flex items-center justify-between py-2 px-3 border-b border-gray-100 dark:border-gray-800 bg-white dark:bg-gray-900", children: [_jsxs("div", { className: "flex items-center space-x-2", children: [_jsx("div", { className: "p-1", children: _jsx(Cpu, { className: "h-3.5 w-3.5 text-gray-400 dark:text-gray-500" }) }), _jsx("span", { className: "font-medium text-sm text-gray-700 dark:text-gray-300", children: title })] }), onClose && !isModal && (_jsx(Button, { size: "xs", variant: "ghost", onClick: onClose, title: "Close", className: "text-slate-500 hover:text-slate-700", children: _jsx(XIcon, { className: "h-4 w-4" }) }))] }), _jsxs("div", { className: "flex-1 overflow-y-auto px-4 py-6 bg-white dark:bg-gray-900 flex flex-col items-center justify-center", children: [initialMessage && (_jsx("div", { className: "px-4 py-3 mb-4 bg-blue-50/80 dark:bg-blue-900/30 border-l-2 border-blue-400 dark:border-blue-500 text-blue-700 dark:text-blue-300 max-w-md", children: initialMessage })), _jsxs("div", { className: "bg-white dark:bg-slate-800 p-4 max-w-md border-l-2 border-blue-400 dark:border-blue-500", children: [_jsx("div", { className: "text-base text-slate-600 dark:text-slate-300 font-medium", children: "Enter a message to start a conversation" }), _jsxs("div", { className: "mt-3 text-sm text-slate-500 dark:text-slate-400", children: ["Type your question below and press Enter or click ", startButtonText, " ", "to begin"] })] })] }), _jsxs("div", { className: "py-3 px-3 border-t border-gray-100 dark:border-gray-800 bg-white dark:bg-gray-900", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("div", { className: "flex-1", children: _jsx("input", { ref: inputRef, value: inputValue, onChange: (e) => setInputValue(e.target.value), onKeyDown: handleKeyDown, placeholder: placeholder, disabled: isSending, className: "w-full py-2 px-3 text-sm border border-gray-200 dark:border-gray-700 dark:bg-gray-800 dark:text-white focus:border-gray-300 dark:focus:border-gray-600 focus:ring-0 rounded-md" }) }), _jsxs(Button, { onClick: startWorkflowWithMessage, disabled: !inputValue.trim() || isSending, className: "px-3 py-2 bg-gray-800 dark:bg-gray-700 hover:bg-gray-700 dark:hover:bg-gray-600 text-white text-xs rounded-md transition-colors", children: [isSending ? (_jsx(Spinner, { size: "sm", className: "mr-1.5" })) : (_jsx(SendIcon, { className: "h-3.5 w-3.5 mr-1.5" })), startButtonText] })] }), _jsx("div", { className: "text-xs text-gray-400 dark:text-gray-500 mt-2 text-center", children: "Type a message to start the conversation" })] })] }));
105
+ }
106
+ // Inner component that handles the agent conversation - similar to ModernAgentOutput
107
+ function ModernAgentConversationInner({ run, title, interactive = true, onClose, isModal = false, placeholder = "Type your message...", resetWorkflow, }) {
108
+ const { client } = useUserSession();
109
+ const bottomRef = useRef(null);
110
+ const [messages, setMessages] = useState([]);
111
+ const [isCompleted, setIsCompleted] = useState(false);
112
+ const [inputValue, setInputValue] = useState("");
113
+ const [isSending, setIsSending] = useState(false);
114
+ const [viewMode, setViewMode] = useState("sliding");
115
+ //TODO _setShowPlanPanel state not used
116
+ const [showPlanPanel, _setShowPlanPanel] = useState(false);
117
+ const [showSlidingPanel, setShowSlidingPanel] = useState(false);
118
+ // Keep track of multiple plans and their timestamps
119
+ const [plans, setPlans] = useState([]);
120
+ // Track which plan is currently active in the UI
121
+ const [activePlanIndex, setActivePlanIndex] = useState(0);
122
+ // Store workstream status for each plan separately
123
+ const [workstreamStatusMap, setWorkstreamStatusMap] = useState(new Map());
124
+ const [thinkingMessageIndex, setThinkingMessageIndex] = useState(0);
125
+ const toast = useToast();
126
+ const [showInput, setShowInput] = useState(interactive);
127
+ const [workflowStatus, setWorkflowStatus] = useState(null);
128
+ // Helper function to get the current active plan and its workstream status
129
+ const getActivePlan = useMemo(() => {
130
+ const currentPlanData = plans[activePlanIndex] || {
131
+ plan: { plan: [] },
132
+ timestamp: 0,
133
+ };
134
+ const currentWorkstreamStatus = workstreamStatusMap.get(currentPlanData.timestamp) || new Map();
135
+ return {
136
+ plan: currentPlanData.plan,
137
+ workstreamStatus: currentWorkstreamStatus,
138
+ };
139
+ }, [plans, activePlanIndex, workstreamStatusMap]);
140
+ // Show rotating thinking messages
141
+ useEffect(() => {
142
+ if (!isCompleted) {
143
+ const interval = setInterval(() => {
144
+ setThinkingMessageIndex(() => Math.floor(Math.random() * (ThinkingMessages.length - 1)));
145
+ }, 4000);
146
+ return () => clearInterval(interval);
147
+ }
148
+ }, [isCompleted]);
149
+ const checkWorkflowStatus = async () => {
150
+ try {
151
+ const statusResult = await client.store.workflows.getRunDetails(run.runId, run.workflowId);
152
+ setWorkflowStatus(statusResult.status);
153
+ }
154
+ catch (error) {
155
+ console.error('Failed to check workflow status:', error);
156
+ }
157
+ };
158
+ // Stream messages from the agent
159
+ useEffect(() => {
160
+ // Reset all state when runId changes (new agent)
161
+ setMessages([]);
162
+ setPlans([]);
163
+ setActivePlanIndex(0);
164
+ setWorkstreamStatusMap(new Map());
165
+ setShowSlidingPanel(false);
166
+ setWorkflowStatus(null);
167
+ checkWorkflowStatus();
168
+ client.store.workflows.streamMessages(run.runId, (message) => {
169
+ if (message.message) {
170
+ setMessages((prev_messages) => {
171
+ if (!prev_messages.find((m) => m.timestamp === message.timestamp)) {
172
+ insertMessageInTimeline(prev_messages, message);
173
+ return [...prev_messages];
174
+ }
175
+ else {
176
+ return prev_messages;
177
+ }
178
+ });
179
+ }
180
+ });
181
+ // Clear messages and unsubscribe when component unmounts or runId changes
182
+ return () => {
183
+ setMessages([]);
184
+ // Client handles unsubscribing from the message stream internally
185
+ };
186
+ }, [run.runId, client.store.workflows]);
187
+ // Update completion status when messages change
188
+ // This now accounts for multiple workstreams
189
+ useEffect(() => {
190
+ setIsCompleted(!isInProgress(messages));
191
+ // Only automatically hide the panel when there are no plans
192
+ // But don't auto-show it when plans appear
193
+ if (plans.length === 0) {
194
+ // If there are no plans, make sure the plan panel is hidden
195
+ setShowSlidingPanel(false);
196
+ }
197
+ // We removed the auto-show functionality to allow users to keep the panel closed if they want
198
+ }, [messages, plans.length]);
199
+ // Update plans and workstream status based on incoming messages
200
+ useEffect(() => {
201
+ // Only show the sliding panel for the very first plan and only once
202
+ if (plans.length === 1 &&
203
+ !showSlidingPanel &&
204
+ !sessionStorage.getItem("plan-panel-shown")) {
205
+ // For first-time plan detection only, show the panel with a delay
206
+ const notificationTimeout = setTimeout(() => {
207
+ setShowSlidingPanel(true);
208
+ // Mark that we've shown the panel once
209
+ sessionStorage.setItem("plan-panel-shown", "true");
210
+ }, 500); // Short delay to ensure the UI has fully rendered
211
+ return () => clearTimeout(notificationTimeout);
212
+ }
213
+ // Process messages to extract plan information
214
+ messages.forEach((message) => {
215
+ if (message.type === AgentMessageType.PLAN) {
216
+ try {
217
+ // Log message details for debugging
218
+ console.log("PLAN message received:", message.type);
219
+ let newPlanDetails = null;
220
+ // Extract the plan from the message details object
221
+ if (message.details && typeof message.details === "object") {
222
+ // For a PLAN type message like the example you provided
223
+ if (message.details.plan && Array.isArray(message.details.plan)) {
224
+ console.log("Valid plan array found in message.details.plan");
225
+ newPlanDetails = { plan: message.details.plan };
226
+ }
227
+ }
228
+ // Only proceed if we have a valid plan
229
+ if (newPlanDetails) {
230
+ const timestamp = typeof message.timestamp === "number"
231
+ ? message.timestamp
232
+ : new Date(message.timestamp).getTime();
233
+ // Check if we already have this plan
234
+ const existingPlanIndex = plans.findIndex((p) => p.timestamp === timestamp);
235
+ if (existingPlanIndex === -1 && newPlanDetails) {
236
+ console.log("Adding new plan to plans array");
237
+ // This is a new plan - add it to our plans array
238
+ const newPlan = {
239
+ plan: newPlanDetails,
240
+ timestamp,
241
+ };
242
+ // Add new plan to the beginning of the array (newest first)
243
+ console.log("Adding plan to plans array:", newPlan);
244
+ setPlans((prev) => {
245
+ const newPlans = [newPlan, ...prev];
246
+ console.log("New plans array:", newPlans);
247
+ return newPlans;
248
+ });
249
+ // Set this as the active plan
250
+ setActivePlanIndex(0);
251
+ // Automatically show sliding plan panel when a plan is detected
252
+ console.log("Setting showSlidingPanel to true");
253
+ setShowSlidingPanel(true);
254
+ // Initialize workstreams as pending based on the plan tasks
255
+ const newWorkstreamStatus = new Map();
256
+ // Always initialize main workstream
257
+ newWorkstreamStatus.set("main", "in_progress");
258
+ // Initialize each task in the plan with its status
259
+ if (Array.isArray(newPlanDetails.plan)) {
260
+ newPlanDetails.plan.forEach((task) => {
261
+ if (task && typeof task === "object" && task.id) {
262
+ const taskId = task.id.toString();
263
+ // Use the task's status if available, otherwise default to pending
264
+ newWorkstreamStatus.set(taskId, task.status || "pending");
265
+ }
266
+ });
267
+ }
268
+ // Update the workstream status map with the new status for this plan
269
+ setWorkstreamStatusMap((prev) => {
270
+ const newMap = new Map(prev);
271
+ newMap.set(timestamp, newWorkstreamStatus);
272
+ return newMap;
273
+ });
274
+ }
275
+ }
276
+ }
277
+ catch (error) {
278
+ console.error("Failed to parse plan from message:", error);
279
+ }
280
+ }
281
+ // Handle UPDATE type messages with plan updates
282
+ if (message.type === AgentMessageType.UPDATE && message.details) {
283
+ // We no longer process UPDATE messages with details.updates
284
+ // Instead, we rely on the PLAN message that follows with the complete plan
285
+ if (message.details.updates && Array.isArray(message.details.updates)) {
286
+ console.log("Ignoring UPDATE message with details.updates - waiting for PLAN message with full plan");
287
+ // This is an initial update notification, but we'll wait for the PLAN message that follows
288
+ // with the complete updated plan before making any UI changes
289
+ }
290
+ }
291
+ });
292
+ const lastMessage = messages[messages.length - 1];
293
+ if (lastMessage) {
294
+ if (interactive) {
295
+ setShowInput(true);
296
+ }
297
+ else {
298
+ setShowInput(lastMessage.type === AgentMessageType.REQUEST_INPUT);
299
+ }
300
+ }
301
+ }, [messages, plans, activePlanIndex]);
302
+ // Send a message to the agent
303
+ const handleSendMessage = () => {
304
+ const message = inputValue.trim();
305
+ if (!message || isSending)
306
+ return;
307
+ setIsSending(true);
308
+ setInputValue("");
309
+ client.store.workflows
310
+ .sendSignal(run.workflowId, run.runId, "UserInput", {
311
+ message,
312
+ })
313
+ .then(() => {
314
+ setIsCompleted(false);
315
+ toast({
316
+ status: "success",
317
+ title: "Message Sent",
318
+ duration: 2000,
319
+ });
320
+ })
321
+ .catch((err) => {
322
+ toast({
323
+ status: "error",
324
+ title: "Failed to Send Message",
325
+ description: err instanceof Error ? err.message : "Unknown error",
326
+ duration: 3000,
327
+ });
328
+ })
329
+ .finally(() => {
330
+ setIsSending(false);
331
+ });
332
+ };
333
+ // Calculate number of active tasks for the status indicator
334
+ const getActiveTaskCount = () => {
335
+ if (!messages.length)
336
+ return 0;
337
+ // Group messages by workstream
338
+ const workstreamMessages = new Map();
339
+ messages.forEach((message) => {
340
+ const workstreamId = getWorkstreamId(message);
341
+ if (workstreamId !== "main" && workstreamId !== "all") {
342
+ if (!workstreamMessages.has(workstreamId)) {
343
+ workstreamMessages.set(workstreamId, []);
344
+ }
345
+ workstreamMessages.get(workstreamId).push(message);
346
+ }
347
+ });
348
+ // Count workstreams that don't have completion messages
349
+ let activeCount = 0;
350
+ for (const [_, msgs] of workstreamMessages.entries()) {
351
+ if (msgs.length > 0) {
352
+ const lastMessage = msgs[msgs.length - 1];
353
+ // If the last message isn't a completion message, the workstream is active
354
+ if (![AgentMessageType.COMPLETE, AgentMessageType.IDLE].includes(lastMessage.type)) {
355
+ activeCount++;
356
+ }
357
+ }
358
+ }
359
+ return activeCount;
360
+ };
361
+ const actualTitle = title || run.workflowId.split(":")[2] || "Agent Conversation";
362
+ // Handle downloading conversation
363
+ const downloadConversation = async () => {
364
+ try {
365
+ const url = await getConversationUrl(client, run.runId);
366
+ if (url)
367
+ window.open(url, "_blank");
368
+ }
369
+ catch (err) {
370
+ console.error("Failed to download conversation", err);
371
+ toast({
372
+ status: "error",
373
+ title: "Failed to download conversation",
374
+ duration: 3000,
375
+ });
376
+ }
377
+ };
378
+ // Handle copying run ID
379
+ const copyRunId = () => {
380
+ navigator.clipboard.writeText(run.runId);
381
+ toast({
382
+ status: "success",
383
+ title: "Run ID copied",
384
+ duration: 2000,
385
+ });
386
+ };
387
+ return (_jsxs("div", { className: `flex flex-col h-full min-h-0 ${isModal ? "rounded-lg overflow-hidden" : ""}`, children: [_jsx(Header, { title: actualTitle, isCompleted: isCompleted, onClose: onClose, isModal: isModal, run: run, viewMode: viewMode, onViewModeChange: setViewMode, showPlanPanel: showSlidingPanel, hasPlan: plans.length > 0, onTogglePlanPanel: () => {
388
+ setShowSlidingPanel(!showSlidingPanel);
389
+ // When opening the plan panel, mark that we've shown it
390
+ if (!showSlidingPanel) {
391
+ sessionStorage.setItem("plan-panel-shown", "true");
392
+ }
393
+ }, onDownload: downloadConversation, onCopyRunId: copyRunId, resetWorkflow: resetWorkflow }), showPlanPanel && !showSlidingPanel && plans.length > 0 && (_jsx(PlanPanel, { plan: getActivePlan.plan, workstreamStatus: getActivePlan.workstreamStatus, isVisible: true })), messages.length === 0 && !isCompleted ? (_jsx("div", { className: "flex-1 flex flex-col items-center justify-center h-full text-center py-6 bg-white dark:bg-gray-900", children: _jsxs("div", { className: "bg-white dark:bg-slate-800 p-5 max-w-md border border-blue-200 dark:border-blue-900/50 rounded-lg shadow-sm", children: [_jsxs("div", { className: "flex items-center space-x-3 mb-3", children: [_jsx(PulsatingCircle, { size: "sm", color: "blue" }), _jsx("div", { className: "text-sm text-slate-600 dark:text-slate-300 font-medium", children: ThinkingMessages[thinkingMessageIndex] })] }), _jsx("div", { className: "mt-4 flex justify-center", children: _jsx(AnimatedThinkingDots, { color: "blue", className: "mt-1" }) })] }) })) : (_jsx(AllMessagesMixed, { messages: messages, bottomRef: bottomRef, viewMode: viewMode, isCompleted: isCompleted, plan: getActivePlan.plan, workstreamStatus: getActivePlan.workstreamStatus, showPlanPanel: showSlidingPanel, onTogglePlanPanel: () => {
394
+ console.log("Toggle plan panel called, current state:", showSlidingPanel);
395
+ setShowSlidingPanel(!showSlidingPanel);
396
+ }, plans: plans, activePlanIndex: activePlanIndex, onChangePlan: (index) => setActivePlanIndex(index), taskLabels: getActivePlan.plan.plan?.reduce((acc, task) => {
397
+ if (task.id && task.goal) {
398
+ acc.set(task.id.toString(), task.goal);
399
+ }
400
+ return acc;
401
+ }, new Map()) })), workflowStatus && (workflowStatus !== "RUNNING" ? (_jsxs(MessageBox, { status: workflowStatus === "COMPLETED" ? 'success' : 'done', icon: null, className: "flex-shrink-0 m-2", children: ["This Workflow is ", workflowStatus] })) : showInput && (_jsx(MessageInput, { value: inputValue, onChange: setInputValue, onSend: handleSendMessage, disabled: false, isSending: isSending, isCompleted: isCompleted, activeTaskCount: getActiveTaskCount(), placeholder: placeholder })))] }));
402
+ }
403
+ // Helper function to get conversation URL - used by other components
404
+ export async function getConversationUrl(vertesia, workflowRunId) {
405
+ return vertesia.files
406
+ .getDownloadUrl(`agents/${workflowRunId}/conversation.json`)
407
+ .then((r) => r.url);
408
+ }
409
+ //# sourceMappingURL=ModernAgentConversation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModernAgentConversation.js","sourceRoot":"","sources":["../../../../../src/features/agent/chat/ModernAgentConversation.tsx"],"names":[],"mappings":";AACA,OAAO,EAE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AAG,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;oBACzC,CAAC;oBACD,OAAO,GAAG,CAAC;gBACb,CAAC,EAAE,IAAI,GAAG,EAAkB,CAAC,GAC7B,CACH,EAEA,cAAc,IAAI,CACjB,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,CAC7B,MAAC,UAAU,IACT,MAAM,EAAE,cAAc,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,EAC3D,IAAI,EAAE,IAAI,EACV,SAAS,EAAC,mBAAmB,kCAEX,cAAc,IACrB,CACd,CAAC,CAAC,CAAC,SAAS,IAAI,CACf,KAAC,YAAY,IACX,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,aAAa,EACvB,MAAM,EAAE,iBAAiB,EACzB,QAAQ,EAAE,KAAK,EACf,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,kBAAkB,EAAE,EACrC,WAAW,EAAE,WAAW,GACxB,CACH,CAAC,IACA,CACP,CAAC;AACJ,CAAC;AAED,qEAAqE;AACrE,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,QAAwB,EACxB,aAAqB;IAErB,OAAO,QAAQ,CAAC,KAAK;SAClB,cAAc,CAAC,UAAU,aAAa,oBAAoB,CAAC;SAC3D,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACxB,CAAC"}
@@ -0,0 +1,129 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { AgentMessageType } from "@vertesia/common";
3
+ import React, { useEffect, useMemo, useState } from "react";
4
+ import InlineSlidingPlanPanel from "./InlineSlidingPlanPanel";
5
+ import MessageItem from "./MessageItem";
6
+ import WorkstreamTabs, { extractWorkstreams, filterMessagesByWorkstream } from "./WorkstreamTabs";
7
+ import { getWorkstreamId } from "./utils";
8
+ export default function AllMessagesMixed({ messages, bottomRef, viewMode = 'stacked', isCompleted = false, plan = { plan: [] }, workstreamStatus = new Map(), showPlanPanel = false, onTogglePlanPanel = () => { }, plans = [], activePlanIndex = 0, onChangePlan = () => { }, }) {
9
+ const containerRef = React.useRef(null);
10
+ const [activeWorkstream, setActiveWorkstream] = useState("all");
11
+ // Auto-scroll to bottom when messages change
12
+ useEffect(() => {
13
+ if (bottomRef.current) {
14
+ bottomRef.current.scrollIntoView({ behavior: "smooth" });
15
+ }
16
+ }, [messages, bottomRef]);
17
+ // Sort all messages chronologically
18
+ const sortedMessages = React.useMemo(() => [...messages].sort((a, b) => {
19
+ const timeA = typeof a.timestamp === "number" ? a.timestamp : new Date(a.timestamp).getTime();
20
+ const timeB = typeof b.timestamp === "number" ? b.timestamp : new Date(b.timestamp).getTime();
21
+ return timeA - timeB;
22
+ }), [messages]);
23
+ // Get workstreams from messages - only from message.workstream_id
24
+ const workstreams = React.useMemo(() => {
25
+ // Just get the basic workstreams from the messages
26
+ const extractedWorkstreams = extractWorkstreams(sortedMessages);
27
+ // We'll keep taskLabels - they might be used for display purposes elsewhere
28
+ // but we won't use them to create new workstream tabs
29
+ return extractedWorkstreams;
30
+ }, [sortedMessages]);
31
+ // Count messages per workstream
32
+ const workstreamCounts = React.useMemo(() => {
33
+ const counts = new Map();
34
+ counts.set("all", sortedMessages.length);
35
+ // Count main messages
36
+ const mainMessages = filterMessagesByWorkstream(sortedMessages, "main");
37
+ counts.set("main", mainMessages.length);
38
+ // Count other workstreams
39
+ sortedMessages.forEach((msg) => {
40
+ const workstreamId = getWorkstreamId(msg);
41
+ if (workstreamId !== "main") {
42
+ counts.set(workstreamId, (counts.get(workstreamId) || 0) + 1);
43
+ }
44
+ });
45
+ return counts;
46
+ }, [sortedMessages]);
47
+ // Filter messages based on active workstream
48
+ const displayMessages = React.useMemo(() => {
49
+ if (activeWorkstream === "all") {
50
+ return sortedMessages;
51
+ }
52
+ return filterMessagesByWorkstream(sortedMessages, activeWorkstream);
53
+ }, [sortedMessages, activeWorkstream]);
54
+ // Determine completion status for each workstream
55
+ const workstreamCompletionStatus = useMemo(() => {
56
+ const statusMap = new Map();
57
+ // Group messages by workstream
58
+ const workstreamMessages = new Map();
59
+ sortedMessages.forEach(message => {
60
+ const workstreamId = getWorkstreamId(message);
61
+ if (!workstreamMessages.has(workstreamId)) {
62
+ workstreamMessages.set(workstreamId, []);
63
+ }
64
+ workstreamMessages.get(workstreamId).push(message);
65
+ });
66
+ // Check if each workstream is completed
67
+ for (const [workstreamId, msgs] of workstreamMessages.entries()) {
68
+ if (msgs.length > 0) {
69
+ const lastMessage = msgs[msgs.length - 1];
70
+ statusMap.set(workstreamId, [
71
+ AgentMessageType.COMPLETE,
72
+ AgentMessageType.IDLE,
73
+ AgentMessageType.REQUEST_INPUT
74
+ ].includes(lastMessage.type));
75
+ }
76
+ }
77
+ return statusMap;
78
+ }, [sortedMessages]);
79
+ return (_jsxs("div", { ref: containerRef, className: "flex-1 min-h-0 h-full overflow-y-auto py-2 px-4 sm:px-6 lg:px-8 flex flex-col relative", "data-testid": "all-messages-mixed", style: showPlanPanel ? { paddingRight: "350px" } : {}, children: [_jsx(InlineSlidingPlanPanel, { plan: plan, workstreamStatus: workstreamStatus, isOpen: showPlanPanel, onClose: onTogglePlanPanel, plans: plans, activePlanIndex: activePlanIndex, onChangePlan: onChangePlan }), _jsx("div", { className: "sticky top-0 bg-white dark:bg-gray-900 z-10", children: _jsx(WorkstreamTabs, { workstreams: workstreams, activeWorkstream: activeWorkstream, onSelectWorkstream: setActiveWorkstream, count: workstreamCounts, completionStatus: workstreamCompletionStatus }) }), displayMessages.length === 0 ? (_jsx("div", { className: "flex items-center justify-center h-full text-center py-8", children: _jsx("div", { className: "flex items-center px-4 py-3 text-gray-500 dark:text-gray-400", children: activeWorkstream === "all"
80
+ ? "Waiting for agent response..."
81
+ : "No messages in this workstream yet..." }) })) : (_jsxs("div", { className: "flex-1 flex flex-col justify-start pb-4 space-y-2", children: [viewMode === 'stacked' ? (
82
+ // Stacked view - show all messages in the current workstream
83
+ // Add pulsating circle to the latest message if not completed
84
+ displayMessages.map((message, index) => {
85
+ // Find if this is the latest non-completion message
86
+ const isLatestNonCompletionMessage = !isCompleted &&
87
+ index === displayMessages.length - 1 &&
88
+ ![AgentMessageType.COMPLETE, AgentMessageType.IDLE, AgentMessageType.REQUEST_INPUT].includes(message.type);
89
+ return (_jsx(MessageItem, { message: message, showPulsatingCircle: isLatestNonCompletionMessage }, `${message.timestamp}-${index}`));
90
+ })) : (
91
+ // Sliding view - only permanent messages and latest thinking from the current workstream
92
+ _jsx(_Fragment, { children: (() => {
93
+ // First get all permanent messages (ANSWER, QUESTION, COMPLETE, REQUEST_INPUT)
94
+ const permanentMessages = displayMessages.filter(msg => msg.type === AgentMessageType.ANSWER ||
95
+ msg.type === AgentMessageType.QUESTION ||
96
+ msg.type === AgentMessageType.COMPLETE ||
97
+ msg.type === AgentMessageType.REQUEST_INPUT);
98
+ // Then get the latest thinking message if not completed
99
+ const latestThinkingMessage = !isCompleted ?
100
+ displayMessages
101
+ .filter(msg => msg.type === AgentMessageType.THOUGHT ||
102
+ msg.type === AgentMessageType.UPDATE ||
103
+ msg.type === AgentMessageType.PLAN)
104
+ .sort((a, b) => {
105
+ const timeA = typeof a.timestamp === 'number' ? a.timestamp : new Date(a.timestamp).getTime();
106
+ const timeB = typeof b.timestamp === 'number' ? b.timestamp : new Date(b.timestamp).getTime();
107
+ return timeB - timeA; // Sort descending - newest first
108
+ })[0]
109
+ : null;
110
+ // Sort all messages by timestamp
111
+ const allMessages = [...permanentMessages];
112
+ if (latestThinkingMessage) {
113
+ allMessages.push(latestThinkingMessage);
114
+ }
115
+ allMessages.sort((a, b) => {
116
+ const timeA = typeof a.timestamp === 'number' ? a.timestamp : new Date(a.timestamp).getTime();
117
+ const timeB = typeof b.timestamp === 'number' ? b.timestamp : new Date(b.timestamp).getTime();
118
+ return timeA - timeB; // Sort ascending - oldest first
119
+ });
120
+ // Show pulsating circle only on the latest message if not completed
121
+ return allMessages.map((message, index) => {
122
+ const isLatestMessage = !isCompleted &&
123
+ index === allMessages.length - 1 &&
124
+ ![AgentMessageType.COMPLETE, AgentMessageType.IDLE, AgentMessageType.REQUEST_INPUT].includes(message.type);
125
+ return (_jsx(MessageItem, { message: message, showPulsatingCircle: isLatestMessage }, `${message.timestamp}-${index}`));
126
+ });
127
+ })() })), _jsx("div", { ref: bottomRef, className: "h-4" })] }))] }));
128
+ }
129
+ //# sourceMappingURL=AllMessagesMixed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AllMessagesMixed.js","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgB,gBAAgB,EAAQ,MAAM,kBAAkB,CAAC;AACxE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,cAAc,EAAE,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAiB1C,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACrC,QAAQ,EACR,SAAS,EACT,QAAQ,GAAG,SAAS,EACpB,WAAW,GAAG,KAAK,EACnB,IAAI,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,EACnB,gBAAgB,GAAG,IAAI,GAAG,EAAE,EAC5B,aAAa,GAAG,KAAK,EACrB,iBAAiB,GAAG,GAAG,EAAE,GAAG,CAAC,EAC7B,KAAK,GAAG,EAAE,EACV,eAAe,GAAG,CAAC,EACnB,YAAY,GAAG,GAAG,EAAE,GAAG,CAAC,GACJ;IACpB,MAAM,YAAY,GAAG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