@vertesia/ui 1.0.0-dev.20260128.144200 → 1.0.0-dev.20260225.024852Z

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (500) hide show
  1. package/lib/esm/core/components/InputList.js +1 -1
  2. package/lib/esm/core/components/InputList.js.map +1 -1
  3. package/lib/esm/core/components/Overlay.js +1 -1
  4. package/lib/esm/core/components/Overlay.js.map +1 -1
  5. package/lib/esm/core/components/SidePanel.js +8 -2
  6. package/lib/esm/core/components/SidePanel.js.map +1 -1
  7. package/lib/esm/core/components/Switch.js +1 -1
  8. package/lib/esm/core/components/Switch.js.map +1 -1
  9. package/lib/esm/core/components/index.js +0 -8
  10. package/lib/esm/core/components/index.js.map +1 -1
  11. package/lib/esm/core/components/shadcn/MessageBox.js.map +1 -0
  12. package/lib/esm/core/components/shadcn/Panel.js +13 -0
  13. package/lib/esm/core/components/shadcn/Panel.js.map +1 -0
  14. package/lib/esm/core/components/{Badge.js → shadcn/badge.js} +2 -2
  15. package/lib/esm/core/components/shadcn/badge.js.map +1 -0
  16. package/lib/esm/core/components/shadcn/command.js +1 -1
  17. package/lib/esm/core/components/shadcn/command.js.map +1 -1
  18. package/lib/esm/core/components/shadcn/filters/filterBar.js +73 -83
  19. package/lib/esm/core/components/shadcn/filters/filterBar.js.map +1 -1
  20. package/lib/esm/core/components/shadcn/index.js +4 -2
  21. package/lib/esm/core/components/shadcn/index.js.map +1 -1
  22. package/lib/esm/core/components/shadcn/modal/ConfirmModal.js +10 -0
  23. package/lib/esm/core/components/shadcn/modal/ConfirmModal.js.map +1 -0
  24. package/lib/esm/core/components/{DeleteModal.js → shadcn/modal/DeleteModal.js} +1 -1
  25. package/lib/esm/core/components/shadcn/modal/DeleteModal.js.map +1 -0
  26. package/lib/esm/core/components/shadcn/{dialog.js → modal/dialog.js} +19 -15
  27. package/lib/esm/core/components/shadcn/modal/dialog.js.map +1 -0
  28. package/lib/esm/core/components/shadcn/modal/index.js +4 -0
  29. package/lib/esm/core/components/shadcn/modal/index.js.map +1 -0
  30. package/lib/esm/core/components/shadcn/popover.js +4 -2
  31. package/lib/esm/core/components/shadcn/popover.js.map +1 -1
  32. package/lib/esm/core/components/shadcn/selectBox.js +19 -15
  33. package/lib/esm/core/components/shadcn/selectBox.js.map +1 -1
  34. package/lib/esm/core/components/shadcn/tabs.js +16 -14
  35. package/lib/esm/core/components/shadcn/tabs.js.map +1 -1
  36. package/lib/esm/core/components/shadcn/textarea.js +30 -2
  37. package/lib/esm/core/components/shadcn/textarea.js.map +1 -1
  38. package/lib/esm/core/components/shadcn/tooltip.js +5 -1
  39. package/lib/esm/core/components/shadcn/tooltip.js.map +1 -1
  40. package/lib/esm/features/agent/PayloadBuilder.js +45 -0
  41. package/lib/esm/features/agent/PayloadBuilder.js.map +1 -1
  42. package/lib/esm/features/agent/chat/AgentChart.js +12 -232
  43. package/lib/esm/features/agent/chat/AgentChart.js.map +1 -1
  44. package/lib/esm/features/agent/chat/AskUserWidget.js +2 -1
  45. package/lib/esm/features/agent/chat/AskUserWidget.js.map +1 -1
  46. package/lib/esm/features/agent/chat/DocumentPanel.js +46 -0
  47. package/lib/esm/features/agent/chat/DocumentPanel.js.map +1 -0
  48. package/lib/esm/features/agent/chat/DocumentTabBar.js +17 -0
  49. package/lib/esm/features/agent/chat/DocumentTabBar.js.map +1 -0
  50. package/lib/esm/features/agent/chat/ModernAgentConversation.js +159 -402
  51. package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +1 -1
  52. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +99 -57
  53. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -1
  54. package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js +4 -4
  55. package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js.map +1 -1
  56. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +4 -4
  57. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +1 -1
  58. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +3 -3
  59. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +1 -1
  60. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +25 -22
  61. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +1 -1
  62. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +110 -55
  63. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +1 -1
  64. package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js +2 -2
  65. package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js.map +1 -1
  66. package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js +146 -55
  67. package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js.map +1 -1
  68. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +5 -6
  69. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +1 -1
  70. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js +110 -2
  71. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js.map +1 -1
  72. package/lib/esm/features/agent/chat/SkillWidgetProvider.js +28 -15
  73. package/lib/esm/features/agent/chat/SkillWidgetProvider.js.map +1 -1
  74. package/lib/esm/features/agent/chat/hooks/useAgentPlans.js +146 -0
  75. package/lib/esm/features/agent/chat/hooks/useAgentPlans.js.map +1 -0
  76. package/lib/esm/features/agent/chat/hooks/useAgentStream.js +180 -0
  77. package/lib/esm/features/agent/chat/hooks/useAgentStream.js.map +1 -0
  78. package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js +100 -0
  79. package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js.map +1 -0
  80. package/lib/esm/features/agent/chat/hooks/useFileProcessing.js +90 -0
  81. package/lib/esm/features/agent/chat/hooks/useFileProcessing.js.map +1 -0
  82. package/lib/esm/features/agent/chat/index.js +6 -5
  83. package/lib/esm/features/agent/chat/index.js.map +1 -1
  84. package/lib/esm/features/agent/chat/types/document.js +2 -0
  85. package/lib/esm/features/agent/chat/types/document.js.map +1 -0
  86. package/lib/esm/features/agent/index.js +0 -2
  87. package/lib/esm/features/agent/index.js.map +1 -1
  88. package/lib/esm/features/store/collections/BrowseCollectionView.js +4 -6
  89. package/lib/esm/features/store/collections/BrowseCollectionView.js.map +1 -1
  90. package/lib/esm/features/store/collections/CreateCollection.js +4 -4
  91. package/lib/esm/features/store/collections/CreateCollection.js.map +1 -1
  92. package/lib/esm/features/store/collections/EditCollectionView.js +1 -1
  93. package/lib/esm/features/store/collections/EditCollectionView.js.map +1 -1
  94. package/lib/esm/features/store/objects/DocumentSearchResults.js +5 -5
  95. package/lib/esm/features/store/objects/DocumentSearchResults.js.map +1 -1
  96. package/lib/esm/features/store/objects/ExportPropertiesModal.js +3 -3
  97. package/lib/esm/features/store/objects/ExportPropertiesModal.js.map +1 -1
  98. package/lib/esm/features/store/objects/components/ContentOverview.js +19 -120
  99. package/lib/esm/features/store/objects/components/ContentOverview.js.map +1 -1
  100. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js +1 -1
  101. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js.map +1 -1
  102. package/lib/esm/features/store/objects/components/SelectDocumentModal.js +2 -2
  103. package/lib/esm/features/store/objects/components/SelectDocumentModal.js.map +1 -1
  104. package/lib/esm/features/store/objects/components/VectorSearchWidget.js +1 -1
  105. package/lib/esm/features/store/objects/components/VectorSearchWidget.js.map +1 -1
  106. package/lib/esm/features/store/objects/components/index.js +1 -1
  107. package/lib/esm/features/store/objects/components/index.js.map +1 -1
  108. package/lib/esm/features/store/objects/components/useDownloadFile.js +192 -0
  109. package/lib/esm/features/store/objects/components/useDownloadFile.js.map +1 -0
  110. package/lib/esm/features/store/objects/search/DocumentSearchContext.js +1 -2
  111. package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +1 -1
  112. package/lib/esm/features/store/objects/selection/SelectionActions.js +5 -8
  113. package/lib/esm/features/store/objects/selection/SelectionActions.js.map +1 -1
  114. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +4 -4
  115. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +1 -1
  116. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js +2 -2
  117. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js.map +1 -1
  118. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js +1 -1
  119. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js.map +1 -1
  120. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js +3 -3
  121. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js.map +1 -1
  122. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +13 -13
  123. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +1 -1
  124. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +15 -8
  125. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +1 -1
  126. package/lib/esm/features/store/types/ObjectSchemaEditor.js +6 -5
  127. package/lib/esm/features/store/types/ObjectSchemaEditor.js.map +1 -1
  128. package/lib/esm/features/store/types/SelectContentType.js +3 -3
  129. package/lib/esm/features/store/types/SelectContentType.js.map +1 -1
  130. package/lib/esm/features/store/types/SelectContentTypeModal.js +5 -4
  131. package/lib/esm/features/store/types/SelectContentTypeModal.js.map +1 -1
  132. package/lib/esm/features/store/types/TableLayoutEditor.js +4 -4
  133. package/lib/esm/features/store/types/TableLayoutEditor.js.map +1 -1
  134. package/lib/esm/features/user/UserInfo.js +73 -9
  135. package/lib/esm/features/user/UserInfo.js.map +1 -1
  136. package/lib/esm/features/utils/print.js +0 -1
  137. package/lib/esm/features/utils/print.js.map +1 -1
  138. package/lib/esm/layout/AppLayout.js +3 -4
  139. package/lib/esm/layout/AppLayout.js.map +1 -1
  140. package/lib/esm/layout/Sidebar.js +5 -5
  141. package/lib/esm/layout/Sidebar.js.map +1 -1
  142. package/lib/esm/router/HistoryNavigator.js +7 -1
  143. package/lib/esm/router/HistoryNavigator.js.map +1 -1
  144. package/lib/esm/router/Nav.js +2 -2
  145. package/lib/esm/router/Nav.js.map +1 -1
  146. package/lib/esm/session/UserSession.js +35 -9
  147. package/lib/esm/session/UserSession.js.map +1 -1
  148. package/lib/esm/session/UserSessionProvider.js +3 -2
  149. package/lib/esm/session/UserSessionProvider.js.map +1 -1
  150. package/lib/esm/shell/apps/AppProjectSelector.js +2 -2
  151. package/lib/esm/shell/apps/AppProjectSelector.js.map +1 -1
  152. package/lib/esm/shell/apps/StandaloneApp.js +2 -2
  153. package/lib/esm/shell/apps/StandaloneApp.js.map +1 -1
  154. package/lib/esm/shell/login/InviteAcceptModal.js +2 -2
  155. package/lib/esm/shell/login/InviteAcceptModal.js.map +1 -1
  156. package/lib/esm/shell/login/SignInModal.js +1 -1
  157. package/lib/esm/shell/login/SignInModal.js.map +1 -1
  158. package/lib/esm/shell/login/SignupForm.js +2 -2
  159. package/lib/esm/shell/login/SignupForm.js.map +1 -1
  160. package/lib/esm/shell/login/UserInfo.js +2 -2
  161. package/lib/esm/shell/login/UserInfo.js.map +1 -1
  162. package/lib/esm/widgets/json-view/JSONCode.js +1 -1
  163. package/lib/esm/widgets/json-view/JSONCode.js.map +1 -1
  164. package/lib/esm/widgets/json-view/JSONDisplay.js +1 -1
  165. package/lib/esm/widgets/json-view/JSONDisplay.js.map +1 -1
  166. package/lib/esm/widgets/markdown/ArtifactContentRenderer.js +84 -13
  167. package/lib/esm/widgets/markdown/ArtifactContentRenderer.js.map +1 -1
  168. package/lib/esm/widgets/markdown/MarkdownFigure.js +40 -0
  169. package/lib/esm/widgets/markdown/MarkdownFigure.js.map +1 -0
  170. package/lib/esm/widgets/markdown/MarkdownRenderer.js +42 -7
  171. package/lib/esm/widgets/markdown/MarkdownRenderer.js.map +1 -1
  172. package/lib/esm/widgets/markdown/MermaidDiagram.js +80 -5
  173. package/lib/esm/widgets/markdown/MermaidDiagram.js.map +1 -1
  174. package/lib/esm/widgets/markdown/codeBlockHandlers.js +33 -33
  175. package/lib/esm/widgets/markdown/codeBlockHandlers.js.map +1 -1
  176. package/lib/esm/widgets/markdown/codeBlockHandlers.test.js +2 -29
  177. package/lib/esm/widgets/markdown/codeBlockHandlers.test.js.map +1 -1
  178. package/lib/esm/widgets/markdown/index.js +1 -0
  179. package/lib/esm/widgets/markdown/index.js.map +1 -1
  180. package/lib/esm/widgets/markdown/normalizeCustomSchemeLinks.js +77 -0
  181. package/lib/esm/widgets/markdown/normalizeCustomSchemeLinks.js.map +1 -0
  182. package/lib/esm/widgets/markdown/normalizeDirectives.js +45 -0
  183. package/lib/esm/widgets/markdown/normalizeDirectives.js.map +1 -0
  184. package/lib/esm/widgets/markdown/remarkDirectiveHandler.js +96 -0
  185. package/lib/esm/widgets/markdown/remarkDirectiveHandler.js.map +1 -0
  186. package/lib/esm/widgets/monacoEditor/MonacoEditor.js +8 -14
  187. package/lib/esm/widgets/monacoEditor/MonacoEditor.js.map +1 -1
  188. package/lib/esm/widgets/schema-editor/ManagedSchema.js.map +1 -1
  189. package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js +3 -3
  190. package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js.map +1 -1
  191. package/lib/esm/widgets/schema-editor/json-schema4-utils.js.map +1 -1
  192. package/lib/tsconfig.tsbuildinfo +1 -1
  193. package/lib/types/core/components/SidePanel.d.ts +4 -1
  194. package/lib/types/core/components/SidePanel.d.ts.map +1 -1
  195. package/lib/types/core/components/index.d.ts +0 -8
  196. package/lib/types/core/components/index.d.ts.map +1 -1
  197. package/lib/types/core/components/shadcn/MessageBox.d.ts.map +1 -0
  198. package/lib/types/core/components/{Panel.d.ts → shadcn/Panel.d.ts} +3 -1
  199. package/lib/types/core/components/shadcn/Panel.d.ts.map +1 -0
  200. package/lib/types/core/components/{Badge.d.ts → shadcn/badge.d.ts} +4 -4
  201. package/lib/types/core/components/shadcn/badge.d.ts.map +1 -0
  202. package/lib/types/core/components/shadcn/button.d.ts +1 -1
  203. package/lib/types/core/components/shadcn/filters/filterBar.d.ts.map +1 -1
  204. package/lib/types/core/components/shadcn/index.d.ts +4 -2
  205. package/lib/types/core/components/shadcn/index.d.ts.map +1 -1
  206. package/lib/types/core/components/shadcn/input.d.ts +1 -1
  207. package/lib/types/core/components/shadcn/modal/ConfirmModal.d.ts.map +1 -0
  208. package/lib/types/core/components/shadcn/modal/DeleteModal.d.ts.map +1 -0
  209. package/lib/types/core/components/shadcn/{dialog.d.ts → modal/dialog.d.ts} +7 -4
  210. package/lib/types/core/components/shadcn/modal/dialog.d.ts.map +1 -0
  211. package/lib/types/core/components/shadcn/modal/index.d.ts +4 -0
  212. package/lib/types/core/components/shadcn/modal/index.d.ts.map +1 -0
  213. package/lib/types/core/components/shadcn/popover.d.ts.map +1 -1
  214. package/lib/types/core/components/shadcn/selectBox.d.ts +9 -5
  215. package/lib/types/core/components/shadcn/selectBox.d.ts.map +1 -1
  216. package/lib/types/core/components/shadcn/tabs.d.ts +14 -5
  217. package/lib/types/core/components/shadcn/tabs.d.ts.map +1 -1
  218. package/lib/types/core/components/shadcn/textarea.d.ts +6 -2
  219. package/lib/types/core/components/shadcn/textarea.d.ts.map +1 -1
  220. package/lib/types/core/components/shadcn/tooltip.d.ts.map +1 -1
  221. package/lib/types/features/agent/PayloadBuilder.d.ts +22 -4
  222. package/lib/types/features/agent/PayloadBuilder.d.ts.map +1 -1
  223. package/lib/types/features/agent/chat/AgentChart.d.ts +3 -44
  224. package/lib/types/features/agent/chat/AgentChart.d.ts.map +1 -1
  225. package/lib/types/features/agent/chat/AskUserWidget.d.ts.map +1 -1
  226. package/lib/types/features/agent/chat/DocumentPanel.d.ts +16 -0
  227. package/lib/types/features/agent/chat/DocumentPanel.d.ts.map +1 -0
  228. package/lib/types/features/agent/chat/DocumentTabBar.d.ts +10 -0
  229. package/lib/types/features/agent/chat/DocumentTabBar.d.ts.map +1 -0
  230. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts +69 -1
  231. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts.map +1 -1
  232. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +36 -1
  233. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +1 -1
  234. package/lib/types/features/agent/chat/ModernAgentOutput/BatchProgressPanel.d.ts +18 -2
  235. package/lib/types/features/agent/chat/ModernAgentOutput/BatchProgressPanel.d.ts.map +1 -1
  236. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +4 -7
  237. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts.map +1 -1
  238. package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts +2 -1
  239. package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +1 -1
  240. package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts +35 -7
  241. package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +1 -1
  242. package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts +11 -1
  243. package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts.map +1 -1
  244. package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts +20 -2
  245. package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts.map +1 -1
  246. package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts.map +1 -1
  247. package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts +18 -1
  248. package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts.map +1 -1
  249. package/lib/types/features/agent/chat/SkillWidgetProvider.d.ts.map +1 -1
  250. package/lib/types/features/agent/chat/hooks/useAgentPlans.d.ts +22 -0
  251. package/lib/types/features/agent/chat/hooks/useAgentPlans.d.ts.map +1 -0
  252. package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts +42 -0
  253. package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts.map +1 -0
  254. package/lib/types/features/agent/chat/hooks/useDocumentPanel.d.ts +22 -0
  255. package/lib/types/features/agent/chat/hooks/useDocumentPanel.d.ts.map +1 -0
  256. package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts +27 -0
  257. package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts.map +1 -0
  258. package/lib/types/features/agent/chat/index.d.ts +12 -8
  259. package/lib/types/features/agent/chat/index.d.ts.map +1 -1
  260. package/lib/types/features/agent/chat/types/document.d.ts +5 -0
  261. package/lib/types/features/agent/chat/types/document.d.ts.map +1 -0
  262. package/lib/types/features/agent/index.d.ts +0 -2
  263. package/lib/types/features/agent/index.d.ts.map +1 -1
  264. package/lib/types/features/store/collections/BrowseCollectionView.d.ts.map +1 -1
  265. package/lib/types/features/store/objects/ExportPropertiesModal.d.ts.map +1 -1
  266. package/lib/types/features/store/objects/components/ContentOverview.d.ts.map +1 -1
  267. package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts.map +1 -1
  268. package/lib/types/features/store/objects/components/index.d.ts +1 -1
  269. package/lib/types/features/store/objects/components/index.d.ts.map +1 -1
  270. package/lib/types/features/store/objects/components/useDownloadFile.d.ts +35 -0
  271. package/lib/types/features/store/objects/components/useDownloadFile.d.ts.map +1 -0
  272. package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts.map +1 -1
  273. package/lib/types/features/store/objects/selection/SelectionActions.d.ts +1 -1
  274. package/lib/types/features/store/objects/selection/SelectionActions.d.ts.map +1 -1
  275. package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts.map +1 -1
  276. package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts.map +1 -1
  277. package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts.map +1 -1
  278. package/lib/types/features/store/types/ObjectSchemaEditor.d.ts +2 -1
  279. package/lib/types/features/store/types/ObjectSchemaEditor.d.ts.map +1 -1
  280. package/lib/types/features/store/types/SelectContentTypeModal.d.ts +1 -1
  281. package/lib/types/features/store/types/SelectContentTypeModal.d.ts.map +1 -1
  282. package/lib/types/features/store/types/TableLayoutEditor.d.ts +2 -1
  283. package/lib/types/features/store/types/TableLayoutEditor.d.ts.map +1 -1
  284. package/lib/types/features/user/UserInfo.d.ts +12 -1
  285. package/lib/types/features/user/UserInfo.d.ts.map +1 -1
  286. package/lib/types/features/utils/print.d.ts.map +1 -1
  287. package/lib/types/layout/AppLayout.d.ts.map +1 -1
  288. package/lib/types/layout/Sidebar.d.ts +4 -2
  289. package/lib/types/layout/Sidebar.d.ts.map +1 -1
  290. package/lib/types/router/HistoryNavigator.d.ts.map +1 -1
  291. package/lib/types/router/Nav.d.ts +6 -1
  292. package/lib/types/router/Nav.d.ts.map +1 -1
  293. package/lib/types/session/UserSession.d.ts.map +1 -1
  294. package/lib/types/session/UserSessionProvider.d.ts +1 -0
  295. package/lib/types/session/UserSessionProvider.d.ts.map +1 -1
  296. package/lib/types/widgets/json-view/JSONCode.d.ts.map +1 -1
  297. package/lib/types/widgets/markdown/ArtifactContentRenderer.d.ts +10 -1
  298. package/lib/types/widgets/markdown/ArtifactContentRenderer.d.ts.map +1 -1
  299. package/lib/types/widgets/markdown/MarkdownFigure.d.ts +15 -0
  300. package/lib/types/widgets/markdown/MarkdownFigure.d.ts.map +1 -0
  301. package/lib/types/widgets/markdown/MarkdownRenderer.d.ts.map +1 -1
  302. package/lib/types/widgets/markdown/MermaidDiagram.d.ts.map +1 -1
  303. package/lib/types/widgets/markdown/codeBlockHandlers.d.ts +5 -2
  304. package/lib/types/widgets/markdown/codeBlockHandlers.d.ts.map +1 -1
  305. package/lib/types/widgets/markdown/index.d.ts +1 -0
  306. package/lib/types/widgets/markdown/index.d.ts.map +1 -1
  307. package/lib/types/widgets/markdown/normalizeCustomSchemeLinks.d.ts +9 -0
  308. package/lib/types/widgets/markdown/normalizeCustomSchemeLinks.d.ts.map +1 -0
  309. package/lib/types/widgets/markdown/normalizeDirectives.d.ts +20 -0
  310. package/lib/types/widgets/markdown/normalizeDirectives.d.ts.map +1 -0
  311. package/lib/types/widgets/markdown/remarkDirectiveHandler.d.ts +2 -0
  312. package/lib/types/widgets/markdown/remarkDirectiveHandler.d.ts.map +1 -0
  313. package/lib/types/widgets/monacoEditor/MonacoEditor.d.ts +1 -3
  314. package/lib/types/widgets/monacoEditor/MonacoEditor.d.ts.map +1 -1
  315. package/lib/types/widgets/schema-editor/ManagedSchema.d.ts +1 -1
  316. package/lib/types/widgets/schema-editor/ManagedSchema.d.ts.map +1 -1
  317. package/lib/vertesia-ui-core.js +1 -1
  318. package/lib/vertesia-ui-core.js.map +1 -1
  319. package/lib/vertesia-ui-features.js +1 -1
  320. package/lib/vertesia-ui-features.js.map +1 -1
  321. package/lib/vertesia-ui-layout.js +1 -1
  322. package/lib/vertesia-ui-layout.js.map +1 -1
  323. package/lib/vertesia-ui-router.js +1 -1
  324. package/lib/vertesia-ui-router.js.map +1 -1
  325. package/lib/vertesia-ui-session.js +1 -1
  326. package/lib/vertesia-ui-session.js.map +1 -1
  327. package/lib/vertesia-ui-shell.js +1 -1
  328. package/lib/vertesia-ui-shell.js.map +1 -1
  329. package/lib/vertesia-ui-widgets.js +1 -1
  330. package/lib/vertesia-ui-widgets.js.map +1 -1
  331. package/package.json +14 -10
  332. package/src/core/components/InputList.tsx +1 -1
  333. package/src/core/components/Overlay.tsx +1 -1
  334. package/src/core/components/SidePanel.tsx +29 -15
  335. package/src/core/components/Switch.tsx +1 -1
  336. package/src/core/components/index.ts +0 -8
  337. package/src/core/components/shadcn/Panel.tsx +50 -0
  338. package/src/core/components/{Badge.tsx → shadcn/badge.tsx} +3 -3
  339. package/src/core/components/shadcn/command.tsx +1 -1
  340. package/src/core/components/shadcn/filters/filterBar.tsx +76 -87
  341. package/src/core/components/shadcn/index.ts +5 -3
  342. package/src/core/components/{ConfirmModal.tsx → shadcn/modal/ConfirmModal.tsx} +8 -8
  343. package/src/core/components/{DeleteModal.tsx → shadcn/modal/DeleteModal.tsx} +1 -1
  344. package/src/core/components/shadcn/{dialog.tsx → modal/dialog.tsx} +43 -32
  345. package/src/core/components/shadcn/modal/index.ts +3 -0
  346. package/src/core/components/shadcn/popover.tsx +4 -2
  347. package/src/core/components/shadcn/selectBox.tsx +71 -52
  348. package/src/core/components/shadcn/tabs.tsx +36 -19
  349. package/src/core/components/shadcn/textarea.tsx +43 -2
  350. package/src/core/components/shadcn/tooltip.tsx +23 -17
  351. package/src/features/agent/PayloadBuilder.tsx +70 -9
  352. package/src/features/agent/chat/AgentChart.tsx +46 -678
  353. package/src/features/agent/chat/AskUserWidget.tsx +4 -3
  354. package/src/features/agent/chat/DocumentPanel.tsx +120 -0
  355. package/src/features/agent/chat/DocumentTabBar.tsx +49 -0
  356. package/src/features/agent/chat/ModernAgentConversation.tsx +403 -549
  357. package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx +162 -55
  358. package/src/features/agent/chat/ModernAgentOutput/BatchProgressPanel.tsx +40 -10
  359. package/src/features/agent/chat/ModernAgentOutput/Header.tsx +12 -16
  360. package/src/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.tsx +3 -3
  361. package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +68 -75
  362. package/src/features/agent/chat/ModernAgentOutput/MessageItem.tsx +206 -94
  363. package/src/features/agent/chat/ModernAgentOutput/StreamingMessage.tsx +22 -5
  364. package/src/features/agent/chat/ModernAgentOutput/ToolCallGroup.tsx +295 -113
  365. package/src/features/agent/chat/ModernAgentOutput/WorkstreamTabs.tsx +11 -8
  366. package/src/features/agent/chat/ModernAgentOutput/utils.ts +133 -4
  367. package/src/features/agent/chat/SkillWidgetProvider.tsx +32 -15
  368. package/src/features/agent/chat/hooks/useAgentPlans.ts +190 -0
  369. package/src/features/agent/chat/hooks/useAgentStream.ts +239 -0
  370. package/src/features/agent/chat/hooks/useDocumentPanel.ts +118 -0
  371. package/src/features/agent/chat/hooks/useFileProcessing.ts +126 -0
  372. package/src/features/agent/chat/index.ts +18 -17
  373. package/src/features/agent/chat/types/document.ts +4 -0
  374. package/src/features/agent/index.ts +0 -2
  375. package/src/features/store/collections/BrowseCollectionView.tsx +5 -8
  376. package/src/features/store/collections/CreateCollection.tsx +8 -8
  377. package/src/features/store/collections/EditCollectionView.tsx +1 -1
  378. package/src/features/store/objects/DocumentSearchResults.tsx +9 -13
  379. package/src/features/store/objects/ExportPropertiesModal.tsx +9 -7
  380. package/src/features/store/objects/components/ContentOverview.tsx +29 -155
  381. package/src/features/store/objects/components/PropertiesEditorModal.tsx +0 -1
  382. package/src/features/store/objects/components/SelectDocumentModal.tsx +6 -6
  383. package/src/features/store/objects/components/VectorSearchWidget.tsx +2 -2
  384. package/src/features/store/objects/components/index.ts +1 -1
  385. package/src/features/store/objects/components/useDownloadFile.ts +237 -0
  386. package/src/features/store/objects/search/DocumentSearchContext.ts +1 -2
  387. package/src/features/store/objects/selection/SelectionActions.tsx +0 -4
  388. package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +13 -13
  389. package/src/features/store/objects/selection/actions/ChangeTypeAction.tsx +2 -6
  390. package/src/features/store/objects/selection/actions/ExportPropertiesAction.tsx +1 -3
  391. package/src/features/store/objects/selection/actions/StartWorkflowComponent.tsx +8 -8
  392. package/src/features/store/objects/upload/DocumentUploadModal.tsx +25 -25
  393. package/src/features/store/objects/upload/useSmartFileUploadProcessing.ts +16 -10
  394. package/src/features/store/types/ObjectSchemaEditor.tsx +32 -29
  395. package/src/features/store/types/SelectContentType.tsx +3 -3
  396. package/src/features/store/types/SelectContentTypeModal.tsx +17 -30
  397. package/src/features/store/types/TableLayoutEditor.tsx +14 -18
  398. package/src/features/user/UserInfo.tsx +176 -10
  399. package/src/features/utils/print.ts +0 -1
  400. package/src/layout/AppLayout.tsx +16 -44
  401. package/src/layout/Sidebar.tsx +7 -5
  402. package/src/router/HistoryNavigator.ts +9 -1
  403. package/src/router/Nav.tsx +7 -2
  404. package/src/session/UserSession.ts +38 -9
  405. package/src/session/UserSessionProvider.tsx +3 -2
  406. package/src/shell/apps/AppProjectSelector.tsx +2 -2
  407. package/src/shell/apps/StandaloneApp.tsx +3 -3
  408. package/src/shell/login/InviteAcceptModal.tsx +6 -6
  409. package/src/shell/login/SignInModal.tsx +1 -1
  410. package/src/shell/login/SignupForm.tsx +3 -3
  411. package/src/shell/login/UserInfo.tsx +5 -5
  412. package/src/widgets/json-view/JSONCode.tsx +1 -3
  413. package/src/widgets/json-view/JSONDisplay.tsx +1 -1
  414. package/src/widgets/markdown/ArtifactContentRenderer.tsx +115 -14
  415. package/src/widgets/markdown/MarkdownFigure.tsx +100 -0
  416. package/src/widgets/markdown/MarkdownRenderer.tsx +62 -9
  417. package/src/widgets/markdown/MermaidDiagram.tsx +97 -5
  418. package/src/widgets/markdown/codeBlockHandlers.test.tsx +3 -34
  419. package/src/widgets/markdown/codeBlockHandlers.tsx +47 -42
  420. package/src/widgets/markdown/index.ts +1 -0
  421. package/src/widgets/markdown/markdown.css +192 -0
  422. package/src/widgets/markdown/normalizeCustomSchemeLinks.test.ts +86 -0
  423. package/src/widgets/markdown/normalizeCustomSchemeLinks.ts +91 -0
  424. package/src/widgets/markdown/normalizeDirectives.ts +50 -0
  425. package/src/widgets/markdown/remarkDirectiveHandler.ts +119 -0
  426. package/src/widgets/monacoEditor/MonacoEditor.tsx +8 -22
  427. package/src/widgets/schema-editor/ManagedSchema.ts +1 -1
  428. package/src/widgets/schema-editor/editor/PropertyEditor.tsx +5 -5
  429. package/src/widgets/schema-editor/json-schema4-utils.ts +1 -1
  430. package/lib/esm/core/components/Badge.js.map +0 -1
  431. package/lib/esm/core/components/Button.js +0 -32
  432. package/lib/esm/core/components/Button.js.map +0 -1
  433. package/lib/esm/core/components/ConfirmModal.js +0 -10
  434. package/lib/esm/core/components/ConfirmModal.js.map +0 -1
  435. package/lib/esm/core/components/DeleteModal.js.map +0 -1
  436. package/lib/esm/core/components/MessageBox.js.map +0 -1
  437. package/lib/esm/core/components/Modal.js +0 -26
  438. package/lib/esm/core/components/Modal.js.map +0 -1
  439. package/lib/esm/core/components/Panel.js +0 -8
  440. package/lib/esm/core/components/Panel.js.map +0 -1
  441. package/lib/esm/core/components/SelectBox.js +0 -67
  442. package/lib/esm/core/components/SelectBox.js.map +0 -1
  443. package/lib/esm/core/components/shadcn/dialog.js.map +0 -1
  444. package/lib/esm/core/components/tabs/Tabs.js +0 -78
  445. package/lib/esm/core/components/tabs/Tabs.js.map +0 -1
  446. package/lib/esm/core/components/tabs/TabsContext.js +0 -7
  447. package/lib/esm/core/components/tabs/TabsContext.js.map +0 -1
  448. package/lib/esm/core/components/tabs/index.js +0 -3
  449. package/lib/esm/core/components/tabs/index.js.map +0 -1
  450. package/lib/esm/features/agent/createChartTool.js +0 -632
  451. package/lib/esm/features/agent/createChartTool.js.map +0 -1
  452. package/lib/esm/features/agent/examples.js +0 -295
  453. package/lib/esm/features/agent/examples.js.map +0 -1
  454. package/lib/esm/features/agent/visualization.js +0 -165
  455. package/lib/esm/features/agent/visualization.js.map +0 -1
  456. package/lib/esm/features/store/objects/components/useDownloadObject.js +0 -21
  457. package/lib/esm/features/store/objects/components/useDownloadObject.js.map +0 -1
  458. package/lib/types/core/components/Badge.d.ts.map +0 -1
  459. package/lib/types/core/components/Button.d.ts +0 -14
  460. package/lib/types/core/components/Button.d.ts.map +0 -1
  461. package/lib/types/core/components/ConfirmModal.d.ts.map +0 -1
  462. package/lib/types/core/components/DeleteModal.d.ts.map +0 -1
  463. package/lib/types/core/components/MessageBox.d.ts.map +0 -1
  464. package/lib/types/core/components/Modal.d.ts +0 -30
  465. package/lib/types/core/components/Modal.d.ts.map +0 -1
  466. package/lib/types/core/components/Panel.d.ts.map +0 -1
  467. package/lib/types/core/components/SelectBox.d.ts +0 -36
  468. package/lib/types/core/components/SelectBox.d.ts.map +0 -1
  469. package/lib/types/core/components/shadcn/dialog.d.ts.map +0 -1
  470. package/lib/types/core/components/tabs/Tabs.d.ts +0 -25
  471. package/lib/types/core/components/tabs/Tabs.d.ts.map +0 -1
  472. package/lib/types/core/components/tabs/TabsContext.d.ts +0 -17
  473. package/lib/types/core/components/tabs/TabsContext.d.ts.map +0 -1
  474. package/lib/types/core/components/tabs/index.d.ts +0 -3
  475. package/lib/types/core/components/tabs/index.d.ts.map +0 -1
  476. package/lib/types/features/agent/createChartTool.d.ts +0 -178
  477. package/lib/types/features/agent/createChartTool.d.ts.map +0 -1
  478. package/lib/types/features/agent/examples.d.ts +0 -59
  479. package/lib/types/features/agent/examples.d.ts.map +0 -1
  480. package/lib/types/features/agent/visualization.d.ts +0 -95
  481. package/lib/types/features/agent/visualization.d.ts.map +0 -1
  482. package/lib/types/features/store/objects/components/useDownloadObject.d.ts +0 -4
  483. package/lib/types/features/store/objects/components/useDownloadObject.d.ts.map +0 -1
  484. package/src/core/components/Button.tsx +0 -63
  485. package/src/core/components/Modal.tsx +0 -144
  486. package/src/core/components/Panel.tsx +0 -34
  487. package/src/core/components/SelectBox.tsx +0 -188
  488. package/src/core/components/tabs/Tabs.tsx +0 -132
  489. package/src/core/components/tabs/TabsContext.ts +0 -25
  490. package/src/core/components/tabs/index.ts +0 -2
  491. package/src/features/agent/CHART_INSTRUCTIONS.md +0 -228
  492. package/src/features/agent/createChartTool.ts +0 -643
  493. package/src/features/agent/examples.ts +0 -321
  494. package/src/features/agent/visualization.ts +0 -227
  495. package/src/features/store/objects/components/useDownloadObject.ts +0 -29
  496. /package/lib/esm/core/components/{MessageBox.js → shadcn/MessageBox.js} +0 -0
  497. /package/lib/types/core/components/{MessageBox.d.ts → shadcn/MessageBox.d.ts} +0 -0
  498. /package/lib/types/core/components/{ConfirmModal.d.ts → shadcn/modal/ConfirmModal.d.ts} +0 -0
  499. /package/lib/types/core/components/{DeleteModal.d.ts → shadcn/modal/DeleteModal.d.ts} +0 -0
  500. /package/src/core/components/{MessageBox.tsx → shadcn/MessageBox.tsx} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/tabs/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiC,SAAS,EAAuC,MAAM,OAAO,CAAC;AAEtG,OAAO,EAAE,GAAG,EAAwB,MAAM,kBAAkB,CAAC;AAqB7D,UAAU,SAAS;IACf,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAC;IAClC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC;IACxC,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;IAClC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AACD,wBAAgB,IAAI,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,SAAS,2CAgC9E;AAED,UAAU,YAAY;IAClB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AACD,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,YAAY,2CAqC3D;AAED,UAAU,cAAc;CAAI;AAC5B,wBAAgB,SAAS,CAAC,EAAG,EAAE,cAAc,kDAiB5C"}
@@ -1,17 +0,0 @@
1
- import { ReactNode } from "react";
2
- export interface Tab {
3
- name: string;
4
- current?: boolean;
5
- href?: string;
6
- label: ReactNode;
7
- content: ReactNode;
8
- disabled?: boolean;
9
- }
10
- export interface TabsContextProps {
11
- tabs: Tab[];
12
- select: (tab: Tab) => void;
13
- }
14
- export declare function useTabs(): TabsContextProps;
15
- declare const TabsContext: import("react").Context<TabsContextProps>;
16
- export { TabsContext };
17
- //# sourceMappingURL=TabsContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TabsContext.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/tabs/TabsContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA6B,MAAM,OAAO,CAAC;AAE7D,MAAM,WAAW,GAAG;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;CAC9B;AAED,wBAAgB,OAAO,qBAEtB;AAED,QAAA,MAAM,WAAW,2CAA0D,CAAC;AAE5E,OAAO,EACH,WAAW,EACd,CAAC"}
@@ -1,3 +0,0 @@
1
- export * from "./Tabs.js";
2
- export * from "./TabsContext.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/tabs/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC"}
@@ -1,178 +0,0 @@
1
- /**
2
- * Chart creation tool definition for AI agents.
3
- *
4
- * This provides a tool schema that AI agents can use to understand
5
- * how to create charts in their responses.
6
- */
7
- import type { AgentChartSpec } from './chat/AgentChart';
8
- /**
9
- * Tool definition for creating charts.
10
- * Can be used with Claude, OpenAI, or other LLM tool-calling systems.
11
- */
12
- export declare const createChartToolDefinition: {
13
- name: string;
14
- description: string;
15
- input_schema: {
16
- type: string;
17
- properties: {
18
- chart: {
19
- type: string;
20
- enum: string[];
21
- description: string;
22
- };
23
- title: {
24
- type: string;
25
- description: string;
26
- };
27
- description: {
28
- type: string;
29
- description: string;
30
- };
31
- data: {
32
- type: string;
33
- description: string;
34
- items: {
35
- type: string;
36
- additionalProperties: boolean;
37
- };
38
- };
39
- xKey: {
40
- type: string;
41
- description: string;
42
- };
43
- yKey: {
44
- type: string;
45
- description: string;
46
- };
47
- nameKey: {
48
- type: string;
49
- description: string;
50
- };
51
- valueKey: {
52
- type: string;
53
- description: string;
54
- };
55
- axisKey: {
56
- type: string;
57
- description: string;
58
- };
59
- dataKey: {
60
- type: string;
61
- description: string;
62
- };
63
- series: {
64
- type: string;
65
- description: string;
66
- items: {
67
- type: string;
68
- properties: {
69
- key: {
70
- type: string;
71
- description: string;
72
- };
73
- label: {
74
- type: string;
75
- description: string;
76
- };
77
- type: {
78
- type: string;
79
- enum: string[];
80
- description: string;
81
- };
82
- color: {
83
- type: string;
84
- description: string;
85
- };
86
- yAxisId: {
87
- type: string;
88
- enum: string[];
89
- description: string;
90
- };
91
- dot: {
92
- type: string;
93
- description: string;
94
- };
95
- };
96
- required: string[];
97
- };
98
- };
99
- yAxis: {
100
- type: string;
101
- description: string;
102
- properties: {
103
- left: {
104
- type: string;
105
- properties: {
106
- label: {
107
- type: string;
108
- };
109
- };
110
- };
111
- right: {
112
- type: string;
113
- properties: {
114
- label: {
115
- type: string;
116
- };
117
- };
118
- };
119
- };
120
- };
121
- options: {
122
- type: string;
123
- description: string;
124
- properties: {
125
- stacked: {
126
- type: string;
127
- description: string;
128
- };
129
- referenceZero: {
130
- type: string;
131
- description: string;
132
- };
133
- collapsible: {
134
- type: string;
135
- description: string;
136
- };
137
- collapseInitially: {
138
- type: string;
139
- description: string;
140
- };
141
- innerRadius: {
142
- type: string;
143
- description: string;
144
- };
145
- showLabels: {
146
- type: string;
147
- description: string;
148
- };
149
- startAngle: {
150
- type: string;
151
- description: string;
152
- };
153
- endAngle: {
154
- type: string;
155
- description: string;
156
- };
157
- };
158
- };
159
- };
160
- required: string[];
161
- };
162
- };
163
- /**
164
- * System prompt addition for chart capabilities.
165
- * Include this in your agent's system prompt to enable chart creation.
166
- */
167
- export declare const chartSystemPromptAddition = "\n# Chart Visualization Capability\n\nYou can create interactive charts by including markdown code blocks with the language \"chart\".\n\n## Chart Types\n\n| Type | Use Case | Required Fields |\n|------|----------|-----------------|\n| bar | Category comparisons | xKey, series |\n| line | Trends over time | xKey, series |\n| area | Trends with volume | xKey, series |\n| composed | Mix bars + lines | xKey, series with type |\n| pie | Part-to-whole | nameKey, valueKey |\n| scatter | Correlation | xKey, yKey |\n| radar | Multi-dimensional | axisKey, series |\n| radialBar | Progress/gauges | nameKey, valueKey |\n| funnel | Conversion stages | nameKey, valueKey |\n| treemap | Hierarchical data | nameKey, dataKey |\n\n## Quick Examples\n\nBar: `{\"chart\":\"bar\",\"data\":[{\"x\":\"A\",\"y\":10}],\"xKey\":\"x\",\"series\":[{\"key\":\"y\"}]}`\nPie: `{\"chart\":\"pie\",\"data\":[{\"name\":\"A\",\"value\":60},{\"name\":\"B\",\"value\":40}]}`\nScatter: `{\"chart\":\"scatter\",\"data\":[{\"x\":1,\"y\":2}],\"xKey\":\"x\",\"yKey\":\"y\"}`\n\nUse charts when:\n- User requests visualization\n- 3+ data points to display\n- Visual form clarifies comparisons/trends\n\nColors: Blue #4f46e5 (primary), Green #22c55e (positive), Red #ef4444 (negative)\n";
168
- /**
169
- * Type-safe chart specification builder.
170
- * Use this when you want to build charts programmatically.
171
- */
172
- export declare function buildChartSpec(spec: AgentChartSpec): string;
173
- /**
174
- * Extract chart specifications from markdown text.
175
- * Useful for parsing agent responses.
176
- */
177
- export declare function extractChartSpecs(markdown: string): AgentChartSpec[];
178
- //# sourceMappingURL=createChartTool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createChartTool.d.ts","sourceRoot":"","sources":["../../../../src/features/agent/createChartTool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAwC,MAAM,mBAAmB,CAAC;AAE9F;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwhBrC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,wuCAgCrC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CA4B3D;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,EAAE,CAepE"}
@@ -1,59 +0,0 @@
1
- /**
2
- * Chart creation examples for testing and reference.
3
- *
4
- * These examples demonstrate how to use the chart functionality
5
- * from both AI agents and TypeScript code.
6
- */
7
- /**
8
- * Example 1: Simple bar chart (markdown)
9
- */
10
- export declare const exampleBarChartMarkdown = "\nHere's a comparison of revenue across quarters:\n\n```chart\n{\n \"version\": \"1.0\",\n \"chart\": \"bar\",\n \"title\": \"Quarterly Revenue\",\n \"description\": \"Revenue performance by quarter\",\n \"data\": [\n { \"quarter\": \"Q1 2024\", \"revenue\": 125000 },\n { \"quarter\": \"Q2 2024\", \"revenue\": 145000 },\n { \"quarter\": \"Q3 2024\", \"revenue\": 160000 },\n { \"quarter\": \"Q4 2024\", \"revenue\": 180000 }\n ],\n \"xKey\": \"quarter\",\n \"series\": [\n {\n \"key\": \"revenue\",\n \"label\": \"Revenue\",\n \"type\": \"bar\",\n \"color\": \"#4f46e5\"\n }\n ],\n \"yAxis\": {\n \"left\": { \"label\": \"Amount ($)\" }\n }\n}\n```\n\nRevenue shows consistent growth throughout 2024.\n";
11
- /**
12
- * Example 2: Line chart with multiple series (markdown)
13
- */
14
- export declare const exampleLineChartMarkdown = "\nHere's the fund performance over time:\n\n```chart\n{\n \"version\": \"1.0\",\n \"chart\": \"line\",\n \"title\": \"Fund Performance Metrics\",\n \"description\": \"TVPI, DPI, and RVPI over time\",\n \"data\": [\n { \"period\": \"2024-Q1\", \"tvpi\": 1.2, \"dpi\": 0.3, \"rvpi\": 0.9 },\n { \"period\": \"2024-Q2\", \"tvpi\": 1.4, \"dpi\": 0.5, \"rvpi\": 0.9 },\n { \"period\": \"2024-Q3\", \"tvpi\": 1.6, \"dpi\": 0.7, \"rvpi\": 0.9 },\n { \"period\": \"2024-Q4\", \"tvpi\": 1.8, \"dpi\": 0.9, \"rvpi\": 0.9 }\n ],\n \"xKey\": \"period\",\n \"series\": [\n {\n \"key\": \"tvpi\",\n \"label\": \"TVPI\",\n \"type\": \"line\",\n \"color\": \"#4f46e5\",\n \"dot\": false\n },\n {\n \"key\": \"dpi\",\n \"label\": \"DPI\",\n \"type\": \"line\",\n \"color\": \"#16a34a\",\n \"dot\": false\n },\n {\n \"key\": \"rvpi\",\n \"label\": \"RVPI\",\n \"type\": \"line\",\n \"color\": \"#f59e0b\",\n \"dot\": false\n }\n ],\n \"yAxis\": {\n \"left\": { \"label\": \"Multiple (x)\" }\n },\n \"options\": {\n \"referenceZero\": false\n }\n}\n```\n\nThe fund shows strong performance with TVPI growing to 1.8x.\n";
15
- /**
16
- * Example 3: Composed chart with dual Y-axis (markdown)
17
- */
18
- export declare const exampleComposedChartMarkdown = "\nHere's the cashflow analysis:\n\n```chart\n{\n \"version\": \"1.0\",\n \"chart\": \"composed\",\n \"title\": \"Fund Cashflow Timeline\",\n \"description\": \"Capital calls, distributions, and net cashflow\",\n \"data\": [\n { \"period\": \"2024-Q1\", \"calls\": 2000000, \"distributions\": 500000, \"net\": -1500000 },\n { \"period\": \"2024-Q2\", \"calls\": 1500000, \"distributions\": 800000, \"net\": -700000 },\n { \"period\": \"2024-Q3\", \"calls\": 1000000, \"distributions\": 1200000, \"net\": 200000 },\n { \"period\": \"2024-Q4\", \"calls\": 500000, \"distributions\": 1800000, \"net\": 1300000 }\n ],\n \"xKey\": \"period\",\n \"series\": [\n {\n \"key\": \"calls\",\n \"label\": \"Capital Calls\",\n \"type\": \"bar\",\n \"color\": \"#ef4444\"\n },\n {\n \"key\": \"distributions\",\n \"label\": \"Distributions\",\n \"type\": \"bar\",\n \"color\": \"#22c55e\"\n },\n {\n \"key\": \"net\",\n \"label\": \"Net Cashflow\",\n \"type\": \"line\",\n \"color\": \"#0ea5e9\",\n \"yAxisId\": \"right\",\n \"dot\": false\n }\n ],\n \"yAxis\": {\n \"left\": { \"label\": \"Amount ($)\" },\n \"right\": { \"label\": \"Net CF ($)\" }\n },\n \"options\": {\n \"referenceZero\": true\n }\n}\n```\n\nThe fund transitions from net negative to net positive cashflow in Q3.\n";
19
- /**
20
- * Example 4: Using TypeScript builders
21
- */
22
- export declare function generateCashflowChart(): string;
23
- /**
24
- * Example 5: Performance chart with TypeScript
25
- */
26
- export declare function generatePerformanceChart(): string;
27
- /**
28
- * Example 6: Scenario comparison
29
- */
30
- export declare function generateScenarioComparisonChart(): string;
31
- /**
32
- * Example 7: Delta percentage chart
33
- */
34
- export declare function generateDeltaChart(): string;
35
- /**
36
- * Example 8: NAV timeline
37
- */
38
- export declare function generateNavChart(): string;
39
- /**
40
- * Example 9: Complete agent response with chart
41
- */
42
- export declare const exampleAgentResponseWithChart: string;
43
- /**
44
- * Example 10: Error handling example
45
- */
46
- export declare const exampleInvalidChart = "\nThis will fall back to a code block because the JSON is invalid:\n\n```chart\n{\n \"chart\": \"bar\",\n // Missing required fields\n \"title\": \"Invalid Chart\"\n}\n```\n\nThe UI will render this as a regular code block.\n";
47
- /**
48
- * Test data generator for interactive testing
49
- */
50
- export declare function generateTestData(periods: number): {
51
- period: string;
52
- tvpi: number;
53
- dpi: number;
54
- rvpi: number;
55
- calls: number;
56
- distributions: number;
57
- nav: number;
58
- }[];
59
- //# sourceMappingURL=examples.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"examples.d.ts","sourceRoot":"","sources":["../../../../src/features/agent/examples.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAWH;;GAEG;AACH,eAAO,MAAM,uBAAuB,yvBA+BnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,4sCAiDpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B,q3CAiDxC,CAAC;AAEF;;GAEG;AACH,wBAAgB,qBAAqB,WAcpC;AAED;;GAEG;AACH,wBAAgB,wBAAwB,WAavC;AAED;;GAEG;AACH,wBAAgB,+BAA+B,WAc9C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,WAYjC;AAED;;GAEG;AACH,wBAAgB,gBAAgB,WAa/B;AAED;;GAEG;AACH,eAAO,MAAM,6BAA6B,QAwBzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,yOAY/B,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM;;;;;;;;IAoB/C"}
@@ -1,95 +0,0 @@
1
- /**
2
- * Visualization helpers for tools to emit chart specs that the UI can render.
3
- *
4
- * Format: ChartSpec v1 rendered by AgentChart component
5
- */
6
- import type { AgentChartSpec } from './chat/AgentChart';
7
- export type ChartSpecV1 = AgentChartSpec;
8
- /**
9
- * Build a side-by-side bar chart comparing two scenarios across numeric metrics.
10
- */
11
- export declare function buildScenarioComparisonBarChart(params: {
12
- title?: string;
13
- leftLabel: string;
14
- rightLabel: string;
15
- metrics: Array<{
16
- label: string;
17
- left: number;
18
- right: number;
19
- }>;
20
- description?: string;
21
- collapseInitially?: boolean;
22
- }): ChartSpecV1;
23
- /**
24
- * Build a delta percentage bar chart to visualize changes between scenarios.
25
- */
26
- export declare function buildScenarioDeltaPercentChart(params: {
27
- title?: string;
28
- metrics: Array<{
29
- label: string;
30
- left: number;
31
- right: number;
32
- }>;
33
- description?: string;
34
- collapseInitially?: boolean;
35
- }): ChartSpecV1;
36
- /**
37
- * Helper to wrap a chart spec in a markdown code fence the UI will render.
38
- */
39
- export declare function toChartMarkdown(spec: ChartSpecV1): string;
40
- /**
41
- * Build a cashflow composed chart (Calls/Distributions bars + Net Cashflow line)
42
- */
43
- export declare function buildCashflowComposedChart(params: {
44
- title?: string;
45
- description?: string;
46
- rows: Array<{
47
- period: string;
48
- calls: number;
49
- distributions: number;
50
- netCashflow?: number;
51
- }>;
52
- collapseInitially?: boolean;
53
- }): ChartSpecV1;
54
- /**
55
- * Build a multi-line performance chart (TVPI/DPI/RVPI)
56
- */
57
- export declare function buildPerformanceLineChart(params: {
58
- title?: string;
59
- description?: string;
60
- rows: Array<{
61
- period: string;
62
- tvpi?: number;
63
- dpi?: number;
64
- rvpi?: number;
65
- }>;
66
- collapseInitially?: boolean;
67
- }): ChartSpecV1;
68
- /**
69
- * Build a TVPI-only overlay chart (two series, e.g., left vs right scenario)
70
- */
71
- export declare function buildTvpiOverlayChart(params: {
72
- title?: string;
73
- description?: string;
74
- rows: Array<{
75
- period: string;
76
- tvpi_left?: number;
77
- tvpi_right?: number;
78
- }>;
79
- leftLabel: string;
80
- rightLabel: string;
81
- collapseInitially?: boolean;
82
- }): ChartSpecV1;
83
- /**
84
- * Build a NAV over time line chart (single line, right or left axis)
85
- */
86
- export declare function buildNavLineChart(params: {
87
- title?: string;
88
- description?: string;
89
- rows: Array<{
90
- period: string;
91
- nav: number;
92
- }>;
93
- collapseInitially?: boolean;
94
- }): ChartSpecV1;
95
- //# sourceMappingURL=visualization.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"visualization.d.ts","sourceRoot":"","sources":["../../../../src/features/agent/visualization.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC;AAEzC;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,MAAM,EAAE;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B,GAAG,WAAW,CAmBd;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,EAAE;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,KAAK,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B,GAAG,WAAW,CAqBd;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAOzD;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,KAAK,CAAC;QACR,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC,CAAC;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B,GAAG,WAAW,CAwBd;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,KAAK,CAAC;QACR,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B,GAAG,WAAW,CAyBd;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACzE,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B,GAAG,WAAW,CAkBd;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7C,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B,GAAG,WAAW,CAiBd"}
@@ -1,4 +0,0 @@
1
- import { VertesiaClient, ZenoClient } from "@vertesia/client";
2
- import { ToastFn } from "@vertesia/ui/core";
3
- export declare function useDownloadDocument(client: VertesiaClient | ZenoClient, toast: ToastFn, uri: string | undefined, name?: string): () => void;
4
- //# sourceMappingURL=useDownloadObject.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDownloadObject.d.ts","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/useDownloadObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,wBAAgB,mBAAmB,CAC/B,MAAM,EAAE,cAAc,GAAG,UAAU,EACnC,KAAK,EAAE,OAAO,EACd,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,IAAI,CAAC,EAAE,MAAM,cAqBhB"}
@@ -1,63 +0,0 @@
1
- import clsx from 'clsx';
2
- import React from "react";
3
- import { Spinner } from "./Spinner.js";
4
-
5
- function getRealSize(size: 'xs' | 'sm' | 'md' | 'lg' | 'xl') {
6
- switch (size) {
7
- case 'xs': return 'rounded-xs px-2 py-1 text-xs gap-x-1';
8
- case 'sm': return 'rounded-xs px-2 py-1 text-sm gap-x-1';
9
- case 'md': return 'rounded-md px-2.5 py-1.5 text-sm gap-x-1.5';
10
- case 'lg': return 'rounded-md px-3 py-2 text-sm gap-x-1.5';
11
- case 'xl': return 'rounded-md px-3.5 py-2.5 text-sm gap-x-2';
12
- default: throw new Error('Unexpected size: ' + size);
13
- }
14
- }
15
-
16
- const Variants = {
17
- primary: "shadow-2xs bg-indigo-600 text-white hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",
18
- secondary: "shadow-2xs bg-white text-gray-900 hover:bg-gray-50 ring-1 ring-inset ring-gray-300",
19
- soft: "shadow-2xs bg-indigo-50 text-indigo-600 hover:bg-indigo-100",
20
- ghost: "text-indigo-600 hover:bg-indigo-100 dark:text-indigo-400 dark:hover:bg-indigo-900",
21
- unstyled: ""
22
- }
23
-
24
- const SpinnerVariants = {
25
- primary: "text-white",
26
- secondary: "text-indigo-500",
27
- soft: "text-indigo-600",
28
- ghost: "text-indigo-600",
29
- unstyled: "text-gray-600"
30
- }
31
-
32
- export interface ButtonProps {
33
- isLoading?: boolean
34
- isDisabled?: boolean
35
- variant?: "primary" | "secondary" | "soft" | "ghost" | "unstyled"
36
- size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
37
- children: React.ReactNode | React.ReactNode[];
38
- onClick?: (ev: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
39
- type?: "button" | "submit" | "reset";
40
- title?: string;
41
- className?: string;
42
- }
43
- export function Button({ title, className, type = 'button', children, size, onClick, variant = "primary", isLoading = false, isDisabled = false }: ButtonProps) {
44
- const sizeClass = getRealSize(size || 'md');
45
- return (
46
- <button
47
- title={title}
48
- disabled={isDisabled || isLoading}
49
- onClick={onClick}
50
- type={type}
51
- className={
52
- clsx("whitespace-nowrap inline-flex items-center justify-center font-semibold hover:cursor-pointer",
53
- Variants[variant],
54
- sizeClass,
55
- isDisabled && "cursor-not-allowed text-gray-300!",
56
- className
57
- )}
58
- >
59
- {isLoading && <Spinner className={SpinnerVariants[variant]} size={size} />}
60
- {children}
61
- </button>
62
- )
63
- }
@@ -1,144 +0,0 @@
1
- import clsx from "clsx";
2
- import { Fragment } from "react";
3
-
4
- import { Dialog, DialogPanel, DialogTitle, Transition, TransitionChild } from "@headlessui/react";
5
- import { X } from "lucide-react";
6
-
7
- interface ModalProps {
8
- children: React.ReactNode | React.ReactNode[];
9
- isOpen: boolean;
10
- onClose: () => void;
11
- noCloseButton?: boolean;
12
- className?: string;
13
- allowOverflow?: boolean;
14
- disableCloseOnClickOutside?: boolean;
15
- }
16
- export function Modal({
17
- className,
18
- children,
19
- isOpen,
20
- onClose,
21
- noCloseButton = false,
22
- allowOverflow = false,
23
- disableCloseOnClickOutside = false,
24
- }: ModalProps) {
25
- const setOpen = (open: boolean) => {
26
- if (!open) {
27
- onClose();
28
- }
29
- };
30
-
31
- return (
32
- <Transition show={isOpen} as={Fragment}>
33
- <Dialog
34
- style={{ zIndex: 50 }}
35
- as="div"
36
- className="relative"
37
- onClose={disableCloseOnClickOutside ? () => { } : setOpen}
38
- >
39
- <TransitionChild
40
- as={Fragment}
41
- enter="ease-out duration-300"
42
- enterFrom="opacity-0"
43
- enterTo="opacity-100"
44
- leave="ease-in duration-200"
45
- leaveFrom="opacity-100"
46
- leaveTo="opacity-0"
47
- unmount
48
- >
49
- <div className="fixed inset-0 bg-gray-500 dark:bg-slate-800 dark:opacity-75 opacity-75 transition-opacity" />
50
- </TransitionChild>
51
-
52
- <div className="fixed inset-0 z-10 w-screen overflow-y-auto">
53
- <div className="flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0">
54
- <TransitionChild
55
- as={Fragment}
56
- enter="ease-out duration-300"
57
- enterFrom="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
58
- enterTo="opacity-100 translate-y-0 sm:scale-100"
59
- leave="ease-in duration-200"
60
- leaveFrom="opacity-100 translate-y-0 sm:scale-100"
61
- leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
62
- >
63
- <DialogPanel
64
- className={clsx(
65
- "p-0! relative transform rounded-lg bg-white dark:bg-slate-900 text-left dark:text-slate-100 shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-md sm:p-6",
66
- allowOverflow ? "overflow-visible" : "overflow-hidden",
67
- className,
68
- )}
69
- >
70
- {!noCloseButton && <ModalCloseButton onClose={onClose} />}
71
- {children}
72
- </DialogPanel>
73
- </TransitionChild>
74
- </div>
75
- </div>
76
- </Dialog>
77
- </Transition>
78
- );
79
- }
80
-
81
- interface ModalCloseButtonProps {
82
- onClose: () => void;
83
- }
84
- function ModalCloseButton({ onClose }: ModalCloseButtonProps) {
85
- return (
86
- <div className="absolute right-0 top-0 hidden pr-4 pt-4 sm:block">
87
- <button
88
- tabIndex={-1}
89
- type="button"
90
- className="rounded-md bg-white text-gray-400 dark:text-slate-200 dark:bg-slate-800 hover:brightness-95 focus:outline-hidden focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 hover:cursor-pointer"
91
- onClick={onClose}
92
- >
93
- <span className="sr-only">Close</span>
94
- <X className="size-6" aria-hidden="true" />
95
- </button>
96
- </div>
97
- );
98
- }
99
-
100
- interface ModalTitleProps {
101
- children: React.ReactNode | React.ReactNode[];
102
- showDivider?: boolean;
103
- }
104
- export function ModalTitle({ children, showDivider = false }: ModalTitleProps) {
105
- return (
106
- <div className={showDivider ? "border-b-solid border-b border-b-1" : ""}>
107
- <DialogTitle
108
- as="h3"
109
- className="py-4 pl-4 pr-8 text-base font-semibold leading-6 text-gray-900 dark:text-slate-50"
110
- >
111
- {children}
112
- </DialogTitle>
113
- </div>
114
- );
115
- }
116
-
117
- interface ModalFooterProps {
118
- showDivider?: boolean;
119
- fill?: boolean;
120
- justify?: "start" | "end" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch";
121
- className?: string;
122
- children: React.ReactNode | React.ReactNode[];
123
- }
124
- export function ModalFooter({ children, className = "justify-end", fill = false }: ModalFooterProps) {
125
- return (
126
- <div
127
- className={clsx(
128
- "w-full flex space-x-2 p-4 border-t-solid border-t-gray-100 dark:border-t-gray-800 border-t",
129
- className || "justify-end",
130
- fill ? "bg-gray-100 dark:bg-slate-800" : "",
131
- )}
132
- >
133
- {children}
134
- </div>
135
- );
136
- }
137
-
138
- interface ModalBodyProps {
139
- children: React.ReactNode | React.ReactNode[];
140
- className?: string;
141
- }
142
- export function ModalBody({ children, className = "" }: ModalBodyProps) {
143
- return <div className={clsx("p-4", className)}>{children}</div>;
144
- }
@@ -1,34 +0,0 @@
1
- import { VTooltip } from "./shadcn/tooltip"
2
- import { Info } from "lucide-react"
3
-
4
- interface PanelProps {
5
- title: string | React.ReactNode
6
- description?: React.ReactNode
7
- action?: React.ReactNode
8
- children: React.ReactNode
9
- footer?: string | React.ReactNode
10
- className?: string
11
- }
12
-
13
- export function Panel({ children, action, title, description, footer, className }: PanelProps) {
14
-
15
- return (
16
- <div className={`p-4 flex flex-col gap-2 rounded-sm border bg-card ${className}`}>
17
- <div className="flex items-center justify-between">
18
- <div className="flex items-center gap-2">
19
- <div className="font-semibold text-lg">
20
- {title}
21
- </div>
22
- {description && <VTooltip description={description}><Info className="size-4 text-muted" /></VTooltip>}
23
- </div>
24
- {action}
25
- </div>
26
-
27
- {children}
28
- {footer &&
29
- <div className="border-t border-muted flex flex-col-2 text-sm pt-4">
30
- {footer}
31
- </div>}
32
- </div>
33
- )
34
- }