@vertesia/ui 1.5.0-dev.20260714.072725Z → 1.5.0-dev.20260722.120446Z

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 (393) hide show
  1. package/lib/core/components/SidePanel.js +1 -1
  2. package/lib/core/components/SidePanel.js.map +1 -1
  3. package/lib/core/components/shadcn/button.d.ts +10 -3
  4. package/lib/core/components/shadcn/button.d.ts.map +1 -1
  5. package/lib/core/components/shadcn/button.js +41 -9
  6. package/lib/core/components/shadcn/button.js.map +1 -1
  7. package/lib/core/components/shadcn/modal/dialog.js +1 -1
  8. package/lib/core/components/shadcn/modal/dialog.js.map +1 -1
  9. package/lib/core/components/shadcn/theme/ThemeSwitcher.js +1 -1
  10. package/lib/core/components/shadcn/theme/ThemeSwitcher.js.map +1 -1
  11. package/lib/env/index.d.ts +19 -0
  12. package/lib/env/index.d.ts.map +1 -1
  13. package/lib/env/index.js +6 -0
  14. package/lib/env/index.js.map +1 -1
  15. package/lib/features/agent/chat/AgentChatPlaybackControls.d.ts.map +1 -1
  16. package/lib/features/agent/chat/AgentChatPlaybackControls.js +2 -2
  17. package/lib/features/agent/chat/AgentChatPlaybackControls.js.map +1 -1
  18. package/lib/features/agent/chat/AgentRequestInputOverlay.d.ts.map +1 -1
  19. package/lib/features/agent/chat/AgentRequestInputOverlay.js +2 -2
  20. package/lib/features/agent/chat/AgentRequestInputOverlay.js.map +1 -1
  21. package/lib/features/agent/chat/ArtifactsTab.d.ts.map +1 -1
  22. package/lib/features/agent/chat/ArtifactsTab.js +68 -11
  23. package/lib/features/agent/chat/ArtifactsTab.js.map +1 -1
  24. package/lib/features/agent/chat/ImageLightbox.d.ts.map +1 -1
  25. package/lib/features/agent/chat/ImageLightbox.js +1 -1
  26. package/lib/features/agent/chat/ImageLightbox.js.map +1 -1
  27. package/lib/features/agent/chat/ModernAgentConversation.js +52 -49
  28. package/lib/features/agent/chat/ModernAgentConversation.js.map +1 -1
  29. package/lib/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +1 -1
  30. package/lib/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +5 -5
  31. package/lib/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -1
  32. package/lib/features/agent/chat/ModernAgentOutput/Header.d.ts.map +1 -1
  33. package/lib/features/agent/chat/ModernAgentOutput/Header.js +4 -2
  34. package/lib/features/agent/chat/ModernAgentOutput/Header.js.map +1 -1
  35. package/lib/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +1 -1
  36. package/lib/features/agent/chat/ModernAgentOutput/MessageInput.js +2 -2
  37. package/lib/features/agent/chat/ModernAgentOutput/MessageInput.js.map +1 -1
  38. package/lib/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +1 -1
  39. package/lib/features/agent/chat/ModernAgentOutput/MessageItem.js +2 -1
  40. package/lib/features/agent/chat/ModernAgentOutput/MessageItem.js.map +1 -1
  41. package/lib/features/agent/chat/ModernAgentOutput/requestInputMessages.d.ts +6 -0
  42. package/lib/features/agent/chat/ModernAgentOutput/requestInputMessages.d.ts.map +1 -1
  43. package/lib/features/agent/chat/ModernAgentOutput/requestInputMessages.js +15 -1
  44. package/lib/features/agent/chat/ModernAgentOutput/requestInputMessages.js.map +1 -1
  45. package/lib/features/agent/chat/hooks/useArtifacts.d.ts +8 -1
  46. package/lib/features/agent/chat/hooks/useArtifacts.d.ts.map +1 -1
  47. package/lib/features/agent/chat/hooks/useArtifacts.js +28 -10
  48. package/lib/features/agent/chat/hooks/useArtifacts.js.map +1 -1
  49. package/lib/features/document-viewer/UniversalDocumentViewer.d.ts +73 -0
  50. package/lib/features/document-viewer/UniversalDocumentViewer.d.ts.map +1 -0
  51. package/lib/features/document-viewer/UniversalDocumentViewer.js +415 -0
  52. package/lib/features/document-viewer/UniversalDocumentViewer.js.map +1 -0
  53. package/lib/features/document-viewer/index.d.ts +2 -0
  54. package/lib/features/document-viewer/index.d.ts.map +1 -0
  55. package/lib/features/document-viewer/index.js +2 -0
  56. package/lib/features/document-viewer/index.js.map +1 -0
  57. package/lib/features/environment/SelectEnvironment.d.ts +28 -0
  58. package/lib/features/environment/SelectEnvironment.d.ts.map +1 -0
  59. package/lib/features/environment/SelectEnvironment.js +97 -0
  60. package/lib/features/environment/SelectEnvironment.js.map +1 -0
  61. package/lib/features/environment/index.d.ts +2 -0
  62. package/lib/features/environment/index.d.ts.map +1 -0
  63. package/lib/features/environment/index.js +2 -0
  64. package/lib/features/environment/index.js.map +1 -0
  65. package/lib/features/index.d.ts +3 -0
  66. package/lib/features/index.d.ts.map +1 -1
  67. package/lib/features/index.js +3 -0
  68. package/lib/features/index.js.map +1 -1
  69. package/lib/features/magic-pdf/AnnotatedImageSlider.js +12 -12
  70. package/lib/features/magic-pdf/AnnotatedImageSlider.js.map +1 -1
  71. package/lib/features/magic-pdf/DownloadPopover.d.ts.map +1 -1
  72. package/lib/features/magic-pdf/DownloadPopover.js +3 -17
  73. package/lib/features/magic-pdf/DownloadPopover.js.map +1 -1
  74. package/lib/features/magic-pdf/ExtractedContentView.js +2 -6
  75. package/lib/features/magic-pdf/ExtractedContentView.js.map +1 -1
  76. package/lib/features/magic-pdf/GroundedExtractionAssistantPanel.d.ts +25 -0
  77. package/lib/features/magic-pdf/GroundedExtractionAssistantPanel.d.ts.map +1 -0
  78. package/lib/features/magic-pdf/GroundedExtractionAssistantPanel.js +42 -0
  79. package/lib/features/magic-pdf/GroundedExtractionAssistantPanel.js.map +1 -0
  80. package/lib/features/magic-pdf/GroundedExtractionView.d.ts +27 -0
  81. package/lib/features/magic-pdf/GroundedExtractionView.d.ts.map +1 -0
  82. package/lib/features/magic-pdf/GroundedExtractionView.js +377 -0
  83. package/lib/features/magic-pdf/GroundedExtractionView.js.map +1 -0
  84. package/lib/features/magic-pdf/MagicPdfProvider.d.ts +0 -2
  85. package/lib/features/magic-pdf/MagicPdfProvider.d.ts.map +1 -1
  86. package/lib/features/magic-pdf/MagicPdfProvider.js +15 -42
  87. package/lib/features/magic-pdf/MagicPdfProvider.js.map +1 -1
  88. package/lib/features/magic-pdf/MagicPdfView.d.ts.map +1 -1
  89. package/lib/features/magic-pdf/MagicPdfView.js +2 -19
  90. package/lib/features/magic-pdf/MagicPdfView.js.map +1 -1
  91. package/lib/features/magic-pdf/index.d.ts +1 -0
  92. package/lib/features/magic-pdf/index.d.ts.map +1 -1
  93. package/lib/features/magic-pdf/index.js +1 -0
  94. package/lib/features/magic-pdf/index.js.map +1 -1
  95. package/lib/features/magic-pdf/types.d.ts +1 -1
  96. package/lib/features/magic-pdf/types.d.ts.map +1 -1
  97. package/lib/features/oauth/McpConnectionsButton.d.ts.map +1 -1
  98. package/lib/features/oauth/McpConnectionsButton.js +2 -2
  99. package/lib/features/oauth/McpConnectionsButton.js.map +1 -1
  100. package/lib/features/oauth/McpConnectionsDialog.d.ts.map +1 -1
  101. package/lib/features/oauth/McpConnectionsDialog.js +1 -1
  102. package/lib/features/oauth/McpConnectionsDialog.js.map +1 -1
  103. package/lib/features/oauth/RemoteMcpConnectionButton.d.ts.map +1 -1
  104. package/lib/features/oauth/RemoteMcpConnectionButton.js +1 -1
  105. package/lib/features/oauth/RemoteMcpConnectionButton.js.map +1 -1
  106. package/lib/features/pdf-viewer/PdfPageSlider.js +2 -2
  107. package/lib/features/pdf-viewer/PdfPageSlider.js.map +1 -1
  108. package/lib/features/pdf-viewer/SimplePdfViewer.d.ts.map +1 -1
  109. package/lib/features/pdf-viewer/SimplePdfViewer.js +3 -3
  110. package/lib/features/pdf-viewer/SimplePdfViewer.js.map +1 -1
  111. package/lib/features/permissions/UserPermissionsProvider.d.ts +2 -3
  112. package/lib/features/permissions/UserPermissionsProvider.d.ts.map +1 -1
  113. package/lib/features/permissions/UserPermissionsProvider.js +31 -38
  114. package/lib/features/permissions/UserPermissionsProvider.js.map +1 -1
  115. package/lib/features/store/objects/DocumentQuickFilter.d.ts.map +1 -1
  116. package/lib/features/store/objects/DocumentQuickFilter.js +5 -5
  117. package/lib/features/store/objects/DocumentQuickFilter.js.map +1 -1
  118. package/lib/features/store/objects/DocumentSearchResults.d.ts.map +1 -1
  119. package/lib/features/store/objects/DocumentSearchResults.js +2 -2
  120. package/lib/features/store/objects/DocumentSearchResults.js.map +1 -1
  121. package/lib/features/store/objects/components/ContentDispositionButton.d.ts.map +1 -1
  122. package/lib/features/store/objects/components/ContentDispositionButton.js +1 -1
  123. package/lib/features/store/objects/components/ContentDispositionButton.js.map +1 -1
  124. package/lib/features/store/objects/components/ContentOverview.d.ts.map +1 -1
  125. package/lib/features/store/objects/components/ContentOverview.js +148 -31
  126. package/lib/features/store/objects/components/ContentOverview.js.map +1 -1
  127. package/lib/features/store/objects/components/DocumentIcon.js +1 -1
  128. package/lib/features/store/objects/components/VectorSearchWidget.js +1 -1
  129. package/lib/features/store/objects/components/VectorSearchWidget.js.map +1 -1
  130. package/lib/features/store/objects/components/useContentPanelHooks.d.ts +1 -2
  131. package/lib/features/store/objects/components/useContentPanelHooks.d.ts.map +1 -1
  132. package/lib/features/store/objects/components/useContentPanelHooks.js +4 -8
  133. package/lib/features/store/objects/components/useContentPanelHooks.js.map +1 -1
  134. package/lib/features/store/objects/layout/renderers.d.ts.map +1 -1
  135. package/lib/features/store/objects/layout/renderers.js +2 -2
  136. package/lib/features/store/objects/layout/renderers.js.map +1 -1
  137. package/lib/features/store/objects/selection/SelectionActions.js +1 -1
  138. package/lib/features/store/objects/selection/SelectionActions.js.map +1 -1
  139. package/lib/features/store/types/ContentObjectTypesTable.d.ts.map +1 -1
  140. package/lib/features/store/types/ContentObjectTypesTable.js +4 -4
  141. package/lib/features/store/types/ContentObjectTypesTable.js.map +1 -1
  142. package/lib/features/store/types/IntakePolicyEditor.d.ts +15 -0
  143. package/lib/features/store/types/IntakePolicyEditor.d.ts.map +1 -0
  144. package/lib/features/store/types/IntakePolicyEditor.js +455 -0
  145. package/lib/features/store/types/IntakePolicyEditor.js.map +1 -0
  146. package/lib/features/store/types/IntakePolicyForm.d.ts +11 -0
  147. package/lib/features/store/types/IntakePolicyForm.d.ts.map +1 -0
  148. package/lib/features/store/types/IntakePolicyForm.js +91 -0
  149. package/lib/features/store/types/IntakePolicyForm.js.map +1 -0
  150. package/lib/features/store/types/SelectContentTypeModal.js +1 -1
  151. package/lib/features/store/types/SelectContentTypeModal.js.map +1 -1
  152. package/lib/features/store/types/index.d.ts +2 -0
  153. package/lib/features/store/types/index.d.ts.map +1 -1
  154. package/lib/features/store/types/index.js +2 -0
  155. package/lib/features/store/types/index.js.map +1 -1
  156. package/lib/features/store/types/intake-policy-editor.logic.d.ts +7 -0
  157. package/lib/features/store/types/intake-policy-editor.logic.d.ts.map +1 -0
  158. package/lib/features/store/types/intake-policy-editor.logic.js +60 -0
  159. package/lib/features/store/types/intake-policy-editor.logic.js.map +1 -0
  160. package/lib/features/store/types/typeCatalogCache.d.ts +5 -0
  161. package/lib/features/store/types/typeCatalogCache.d.ts.map +1 -0
  162. package/lib/features/store/types/typeCatalogCache.js +40 -0
  163. package/lib/features/store/types/typeCatalogCache.js.map +1 -0
  164. package/lib/features/user/UserInfo.js +7 -3
  165. package/lib/features/user/UserInfo.js.map +1 -1
  166. package/lib/features/views/ViewExperience.d.ts +20 -0
  167. package/lib/features/views/ViewExperience.d.ts.map +1 -0
  168. package/lib/features/views/ViewExperience.js +188 -0
  169. package/lib/features/views/ViewExperience.js.map +1 -0
  170. package/lib/features/views/ViewNavigation.d.ts +3 -0
  171. package/lib/features/views/ViewNavigation.d.ts.map +1 -0
  172. package/lib/features/views/ViewNavigation.js +36 -0
  173. package/lib/features/views/ViewNavigation.js.map +1 -0
  174. package/lib/features/views/ViewResults.d.ts +9 -0
  175. package/lib/features/views/ViewResults.d.ts.map +1 -0
  176. package/lib/features/views/ViewResults.js +229 -0
  177. package/lib/features/views/ViewResults.js.map +1 -0
  178. package/lib/features/views/ViewSearch.d.ts +3 -0
  179. package/lib/features/views/ViewSearch.d.ts.map +1 -0
  180. package/lib/features/views/ViewSearch.js +74 -0
  181. package/lib/features/views/ViewSearch.js.map +1 -0
  182. package/lib/features/views/index.d.ts +7 -0
  183. package/lib/features/views/index.d.ts.map +1 -0
  184. package/lib/features/views/index.js +7 -0
  185. package/lib/features/views/index.js.map +1 -0
  186. package/lib/features/views/types.d.ts +39 -0
  187. package/lib/features/views/types.d.ts.map +1 -0
  188. package/lib/features/views/types.js +2 -0
  189. package/lib/features/views/types.js.map +1 -0
  190. package/lib/features/views/viewState.d.ts +14 -0
  191. package/lib/features/views/viewState.d.ts.map +1 -0
  192. package/lib/features/views/viewState.js +117 -0
  193. package/lib/features/views/viewState.js.map +1 -0
  194. package/lib/i18n/locales/ar.json +18 -0
  195. package/lib/i18n/locales/de.json +14 -0
  196. package/lib/i18n/locales/en.json +246 -32
  197. package/lib/i18n/locales/es.json +15 -0
  198. package/lib/i18n/locales/fr.json +15 -0
  199. package/lib/i18n/locales/it.json +15 -0
  200. package/lib/i18n/locales/ja.json +13 -0
  201. package/lib/i18n/locales/ko.json +13 -0
  202. package/lib/i18n/locales/pt.json +15 -0
  203. package/lib/i18n/locales/ru.json +16 -0
  204. package/lib/i18n/locales/tr.json +14 -0
  205. package/lib/i18n/locales/zh-TW.json +13 -0
  206. package/lib/i18n/locales/zh.json +13 -0
  207. package/lib/router/HistoryNavigator.d.ts.map +1 -1
  208. package/lib/router/HistoryNavigator.js +27 -14
  209. package/lib/router/HistoryNavigator.js.map +1 -1
  210. package/lib/router/Nav.d.ts.map +1 -1
  211. package/lib/router/Nav.js +21 -6
  212. package/lib/router/Nav.js.map +1 -1
  213. package/lib/router/Router.d.ts.map +1 -1
  214. package/lib/router/Router.js +19 -4
  215. package/lib/router/Router.js.map +1 -1
  216. package/lib/router/path.d.ts +15 -0
  217. package/lib/router/path.d.ts.map +1 -1
  218. package/lib/router/path.js +43 -0
  219. package/lib/router/path.js.map +1 -1
  220. package/lib/session/UserSession.d.ts +6 -0
  221. package/lib/session/UserSession.d.ts.map +1 -1
  222. package/lib/session/UserSession.js +36 -12
  223. package/lib/session/UserSession.js.map +1 -1
  224. package/lib/session/UserSessionProvider.d.ts.map +1 -1
  225. package/lib/session/UserSessionProvider.js +111 -49
  226. package/lib/session/UserSessionProvider.js.map +1 -1
  227. package/lib/session/auth/composable.d.ts.map +1 -1
  228. package/lib/session/auth/composable.js +52 -3
  229. package/lib/session/auth/composable.js.map +1 -1
  230. package/lib/session/auth/domainRouting.d.ts +25 -0
  231. package/lib/session/auth/domainRouting.d.ts.map +1 -1
  232. package/lib/session/auth/domainRouting.js +36 -0
  233. package/lib/session/auth/domainRouting.js.map +1 -1
  234. package/lib/shell/login/SignInRestrictedEnvStep.d.ts +1 -1
  235. package/lib/shell/login/SignInRestrictedEnvStep.js +1 -1
  236. package/lib/shell/login/SigninScreen.js +9 -1
  237. package/lib/shell/login/SigninScreen.js.map +1 -1
  238. package/lib/shell/login/productionUrl.d.ts +0 -14
  239. package/lib/shell/login/productionUrl.d.ts.map +1 -1
  240. package/lib/shell/login/productionUrl.js +14 -5
  241. package/lib/shell/login/productionUrl.js.map +1 -1
  242. package/lib/vertesia-ui-core.js +4 -4
  243. package/lib/vertesia-ui-core.js.map +1 -1
  244. package/lib/vertesia-ui-env.js +1 -1
  245. package/lib/vertesia-ui-env.js.map +1 -1
  246. package/lib/vertesia-ui-features.js +35 -28
  247. package/lib/vertesia-ui-features.js.map +1 -1
  248. package/lib/vertesia-ui-i18n.js +15 -15
  249. package/lib/vertesia-ui-i18n.js.map +1 -1
  250. package/lib/vertesia-ui-router.js +1 -1
  251. package/lib/vertesia-ui-router.js.map +1 -1
  252. package/lib/vertesia-ui-session.js +1 -1
  253. package/lib/vertesia-ui-session.js.map +1 -1
  254. package/lib/vertesia-ui-shell.js +1 -1
  255. package/lib/vertesia-ui-shell.js.map +1 -1
  256. package/lib/vertesia-ui-widgets.js +7 -7
  257. package/lib/vertesia-ui-widgets.js.map +1 -1
  258. package/lib/widgets/form/Form.js +1 -1
  259. package/lib/widgets/form/Form.js.map +1 -1
  260. package/lib/widgets/json-view/JSONSwitcher.js +1 -1
  261. package/lib/widgets/json-view/JSONSwitcher.js.map +1 -1
  262. package/lib/widgets/json-view/JSONView.js +6 -6
  263. package/lib/widgets/json-view/JSONView.js.map +1 -1
  264. package/lib/widgets/monacoEditor/MonacoEditor.d.ts.map +1 -1
  265. package/lib/widgets/monacoEditor/MonacoEditor.js +29 -0
  266. package/lib/widgets/monacoEditor/MonacoEditor.js.map +1 -1
  267. package/lib/widgets/schema-editor/ManagedSchema.d.ts +8 -0
  268. package/lib/widgets/schema-editor/ManagedSchema.d.ts.map +1 -1
  269. package/lib/widgets/schema-editor/ManagedSchema.js +16 -0
  270. package/lib/widgets/schema-editor/ManagedSchema.js.map +1 -1
  271. package/lib/widgets/schema-editor/editor/EditableSchemaProperty.d.ts +2 -0
  272. package/lib/widgets/schema-editor/editor/EditableSchemaProperty.d.ts.map +1 -1
  273. package/lib/widgets/schema-editor/editor/EditableSchemaProperty.js +1 -0
  274. package/lib/widgets/schema-editor/editor/EditableSchemaProperty.js.map +1 -1
  275. package/lib/widgets/schema-editor/editor/PropertyViewer.d.ts.map +1 -1
  276. package/lib/widgets/schema-editor/editor/PropertyViewer.js +4 -1
  277. package/lib/widgets/schema-editor/editor/PropertyViewer.js.map +1 -1
  278. package/lib/widgets/schema-editor/editor/SchemaEditor.d.ts.map +1 -1
  279. package/lib/widgets/schema-editor/editor/SchemaEditor.js +22 -11
  280. package/lib/widgets/schema-editor/editor/SchemaEditor.js.map +1 -1
  281. package/llms.txt +70 -70
  282. package/package.json +33 -32
  283. package/src/__tests__/a11y.test.tsx +73 -0
  284. package/src/core/components/SidePanel.tsx +1 -1
  285. package/src/core/components/shadcn/button.tsx +67 -12
  286. package/src/core/components/shadcn/modal/dialog.tsx +1 -1
  287. package/src/core/components/shadcn/theme/ThemeSwitcher.tsx +1 -1
  288. package/src/env/index.ts +24 -0
  289. package/src/features/agent/chat/AgentChatPlaybackControls.tsx +0 -5
  290. package/src/features/agent/chat/AgentRequestInputOverlay.test.tsx +31 -0
  291. package/src/features/agent/chat/AgentRequestInputOverlay.tsx +6 -2
  292. package/src/features/agent/chat/ArtifactsTab.tsx +165 -21
  293. package/src/features/agent/chat/ImageLightbox.tsx +0 -1
  294. package/src/features/agent/chat/ModernAgentConversation.test.tsx +48 -0
  295. package/src/features/agent/chat/ModernAgentConversation.tsx +53 -51
  296. package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.test.tsx +6 -1
  297. package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx +21 -15
  298. package/src/features/agent/chat/ModernAgentOutput/Header.tsx +3 -3
  299. package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +0 -2
  300. package/src/features/agent/chat/ModernAgentOutput/MessageItem.tsx +4 -1
  301. package/src/features/agent/chat/ModernAgentOutput/requestInputMessages.test.ts +80 -0
  302. package/src/features/agent/chat/ModernAgentOutput/requestInputMessages.ts +21 -1
  303. package/src/features/agent/chat/hooks/useArtifacts.ts +44 -11
  304. package/src/features/document-viewer/UniversalDocumentViewer.test.tsx +123 -0
  305. package/src/features/document-viewer/UniversalDocumentViewer.tsx +746 -0
  306. package/src/features/document-viewer/index.ts +1 -0
  307. package/src/features/environment/SelectEnvironment.tsx +186 -0
  308. package/src/features/environment/index.ts +1 -0
  309. package/src/features/index.ts +3 -0
  310. package/src/features/magic-pdf/AnnotatedImageSlider.tsx +62 -66
  311. package/src/features/magic-pdf/DownloadPopover.tsx +5 -48
  312. package/src/features/magic-pdf/ExtractedContentView.tsx +2 -14
  313. package/src/features/magic-pdf/GroundedExtractionAssistantPanel.tsx +86 -0
  314. package/src/features/magic-pdf/GroundedExtractionView.test.tsx +65 -0
  315. package/src/features/magic-pdf/GroundedExtractionView.tsx +1055 -0
  316. package/src/features/magic-pdf/MagicPdfProvider.tsx +17 -47
  317. package/src/features/magic-pdf/MagicPdfView.tsx +3 -51
  318. package/src/features/magic-pdf/index.ts +1 -0
  319. package/src/features/magic-pdf/types.ts +1 -1
  320. package/src/features/oauth/McpConnectionsButton.tsx +0 -2
  321. package/src/features/oauth/McpConnectionsDialog.tsx +0 -1
  322. package/src/features/oauth/RemoteMcpConnectionButton.tsx +0 -1
  323. package/src/features/pdf-viewer/PdfPageSlider.tsx +5 -5
  324. package/src/features/pdf-viewer/SimplePdfViewer.tsx +11 -12
  325. package/src/features/permissions/UserPermissionsProvider.tsx +36 -39
  326. package/src/features/store/objects/DocumentQuickFilter.tsx +13 -15
  327. package/src/features/store/objects/DocumentSearchResults.tsx +3 -6
  328. package/src/features/store/objects/components/ContentDispositionButton.tsx +5 -1
  329. package/src/features/store/objects/components/ContentOverview.tsx +240 -67
  330. package/src/features/store/objects/components/DocumentIcon.tsx +1 -1
  331. package/src/features/store/objects/components/VectorSearchWidget.tsx +2 -2
  332. package/src/features/store/objects/components/useContentPanelHooks.ts +3 -15
  333. package/src/features/store/objects/layout/renderers.tsx +1 -2
  334. package/src/features/store/objects/selection/SelectionActions.tsx +1 -1
  335. package/src/features/store/types/ContentObjectTypesTable.tsx +12 -14
  336. package/src/features/store/types/IntakePolicyEditor.tsx +679 -0
  337. package/src/features/store/types/IntakePolicyForm.tsx +838 -0
  338. package/src/features/store/types/SelectContentTypeModal.tsx +2 -2
  339. package/src/features/store/types/index.ts +2 -0
  340. package/src/features/store/types/intake-policy-editor.logic.test.ts +109 -0
  341. package/src/features/store/types/intake-policy-editor.logic.ts +87 -0
  342. package/src/features/store/types/typeCatalogCache.ts +45 -0
  343. package/src/features/user/UserInfo.tsx +7 -7
  344. package/src/features/views/ViewExperience.test.tsx +273 -0
  345. package/src/features/views/ViewExperience.tsx +408 -0
  346. package/src/features/views/ViewNavigation.test.tsx +86 -0
  347. package/src/features/views/ViewNavigation.tsx +187 -0
  348. package/src/features/views/ViewResults.test.ts +82 -0
  349. package/src/features/views/ViewResults.tsx +609 -0
  350. package/src/features/views/ViewSearch.test.tsx +147 -0
  351. package/src/features/views/ViewSearch.tsx +205 -0
  352. package/src/features/views/index.ts +6 -0
  353. package/src/features/views/types.ts +57 -0
  354. package/src/features/views/viewState.test.ts +111 -0
  355. package/src/features/views/viewState.ts +132 -0
  356. package/src/i18n/locales/ar.json +18 -0
  357. package/src/i18n/locales/de.json +14 -0
  358. package/src/i18n/locales/en.json +965 -751
  359. package/src/i18n/locales/es.json +15 -0
  360. package/src/i18n/locales/fr.json +15 -0
  361. package/src/i18n/locales/it.json +15 -0
  362. package/src/i18n/locales/ja.json +13 -0
  363. package/src/i18n/locales/ko.json +13 -0
  364. package/src/i18n/locales/pt.json +15 -0
  365. package/src/i18n/locales/ru.json +16 -0
  366. package/src/i18n/locales/tr.json +14 -0
  367. package/src/i18n/locales/zh-TW.json +13 -0
  368. package/src/i18n/locales/zh.json +13 -0
  369. package/src/router/HistoryNavigator.test.ts +48 -0
  370. package/src/router/HistoryNavigator.ts +28 -14
  371. package/src/router/Nav.tsx +24 -8
  372. package/src/router/Router.tsx +18 -4
  373. package/src/router/path.test.ts +87 -0
  374. package/src/router/path.ts +38 -0
  375. package/src/session/UserSession.test.ts +39 -0
  376. package/src/session/UserSession.ts +37 -12
  377. package/src/session/UserSessionProvider.tsx +138 -62
  378. package/src/session/auth/composable.test.ts +111 -0
  379. package/src/session/auth/composable.ts +58 -3
  380. package/src/session/auth/domainRouting.test.ts +28 -1
  381. package/src/session/auth/domainRouting.ts +38 -0
  382. package/src/shell/login/SignInRestrictedEnvStep.tsx +1 -1
  383. package/src/shell/login/SigninScreen.tsx +9 -1
  384. package/src/shell/login/productionUrl.test.ts +8 -5
  385. package/src/shell/login/productionUrl.ts +15 -5
  386. package/src/widgets/form/Form.tsx +1 -1
  387. package/src/widgets/json-view/JSONSwitcher.tsx +2 -2
  388. package/src/widgets/json-view/JSONView.tsx +7 -7
  389. package/src/widgets/monacoEditor/MonacoEditor.tsx +29 -0
  390. package/src/widgets/schema-editor/ManagedSchema.ts +22 -0
  391. package/src/widgets/schema-editor/editor/EditableSchemaProperty.tsx +3 -0
  392. package/src/widgets/schema-editor/editor/PropertyViewer.tsx +14 -3
  393. package/src/widgets/schema-editor/editor/SchemaEditor.tsx +80 -29
package/llms.txt CHANGED
@@ -5,14 +5,14 @@
5
5
 
6
6
  ## Reference URLs
7
7
 
8
- - Visual style guide: https://docs-ui-style-shadcn.vertesia.dev
9
- - Markdown component guide: https://docs-ui-style-shadcn.vertesia.dev/components.md
10
- - LLM reference: https://docs-ui-style-shadcn.vertesia.dev/llms.txt
8
+ - Visual style guide: https://design.vertesiahq.com
9
+ - Markdown component guide: https://design.vertesiahq.com/components.md
10
+ - LLM reference: https://design.vertesiahq.com/llms.txt
11
11
 
12
12
  # @vertesia/ui Component Reference
13
13
 
14
14
  > Markdown rendition of the Vertesia UI style guide for LLMs and text-first clients.
15
- > Visual style guide: https://docs-ui-style-shadcn.vertesia.dev
15
+ > Visual style guide: https://design.vertesiahq.com
16
16
 
17
17
  Use this file when generating React UI for Vertesia apps or plugins. Prefer `@vertesia/ui`
18
18
  components over local duplicates, and use semantic color classes instead of hardcoded colors.
@@ -31,65 +31,65 @@ import { useUserSession } from '@vertesia/ui/session';
31
31
 
32
32
  ## Classes
33
33
 
34
- - [Semantic](https://docs-ui-style-shadcn.vertesia.dev/semantic)
35
- - [Background](https://docs-ui-style-shadcn.vertesia.dev/classes/background)
36
- - [Text](https://docs-ui-style-shadcn.vertesia.dev/classes/text)
37
- - [Border & Ring](https://docs-ui-style-shadcn.vertesia.dev/classes/border)
38
- - [Icons](https://docs-ui-style-shadcn.vertesia.dev/classes/icons)
34
+ - [Semantic](https://design.vertesiahq.com/semantic)
35
+ - [Background](https://design.vertesiahq.com/classes/background)
36
+ - [Text](https://design.vertesiahq.com/classes/text)
37
+ - [Border & Ring](https://design.vertesiahq.com/classes/border)
38
+ - [Icons](https://design.vertesiahq.com/classes/icons)
39
39
 
40
40
  ## Components
41
41
 
42
- - [Heading](https://docs-ui-style-shadcn.vertesia.dev/components/heading)
43
- - [Buttons](https://docs-ui-style-shadcn.vertesia.dev/components/buttons)
44
- - [Badges](https://docs-ui-style-shadcn.vertesia.dev/components/badges)
45
- - [Dot Badges](https://docs-ui-style-shadcn.vertesia.dev/components/dotBadges)
46
- - [Message Box](https://docs-ui-style-shadcn.vertesia.dev/components/messageBox)
47
- - [Modal](https://docs-ui-style-shadcn.vertesia.dev/components/modal)
48
- - [Confirm Modal](https://docs-ui-style-shadcn.vertesia.dev/components/confirmModal)
49
- - [Delete Modal](https://docs-ui-style-shadcn.vertesia.dev/components/deleteModal)
50
- - [Filter](https://docs-ui-style-shadcn.vertesia.dev/components/filter)
51
- - [Tabs](https://docs-ui-style-shadcn.vertesia.dev/components/tabs)
52
- - [Tooltips](https://docs-ui-style-shadcn.vertesia.dev/components/tooltips)
53
- - [Switch](https://docs-ui-style-shadcn.vertesia.dev/components/switch)
54
- - [Side Panel](https://docs-ui-style-shadcn.vertesia.dev/components/sidePanel)
55
- - [SelectBox](https://docs-ui-style-shadcn.vertesia.dev/components/selectBox)
56
- - [Overlay](https://docs-ui-style-shadcn.vertesia.dev/components/overlay)
57
- - [Breadcrumbs](https://docs-ui-style-shadcn.vertesia.dev/components/breadcrumb)
58
- - [Monaco](https://docs-ui-style-shadcn.vertesia.dev/components/monaco)
59
- - [Card](https://docs-ui-style-shadcn.vertesia.dev/components/card)
60
- - [Checkbox](https://docs-ui-style-shadcn.vertesia.dev/components/checkbox)
61
- - [Collapsible](https://docs-ui-style-shadcn.vertesia.dev/components/collapsible)
62
- - [Command](https://docs-ui-style-shadcn.vertesia.dev/components/command)
63
- - [Dropdown](https://docs-ui-style-shadcn.vertesia.dev/components/dropdown)
64
- - [Label](https://docs-ui-style-shadcn.vertesia.dev/components/label)
65
- - [Panel](https://docs-ui-style-shadcn.vertesia.dev/components/panel)
66
- - [Popover](https://docs-ui-style-shadcn.vertesia.dev/components/popover)
67
- - [Radio Group](https://docs-ui-style-shadcn.vertesia.dev/components/radioGroup)
68
- - [Resizeable](https://docs-ui-style-shadcn.vertesia.dev/components/resizeable)
69
- - [Separator](https://docs-ui-style-shadcn.vertesia.dev/components/separator)
70
- - [Text](https://docs-ui-style-shadcn.vertesia.dev/components/text)
71
- - [Theme](https://docs-ui-style-shadcn.vertesia.dev/components/theme)
42
+ - [Heading](https://design.vertesiahq.com/components/heading)
43
+ - [Buttons](https://design.vertesiahq.com/components/buttons)
44
+ - [Badges](https://design.vertesiahq.com/components/badges)
45
+ - [Dot Badges](https://design.vertesiahq.com/components/dotBadges)
46
+ - [Message Box](https://design.vertesiahq.com/components/messageBox)
47
+ - [Modal](https://design.vertesiahq.com/components/modal)
48
+ - [Confirm Modal](https://design.vertesiahq.com/components/confirmModal)
49
+ - [Delete Modal](https://design.vertesiahq.com/components/deleteModal)
50
+ - [Filter](https://design.vertesiahq.com/components/filter)
51
+ - [Tabs](https://design.vertesiahq.com/components/tabs)
52
+ - [Tooltips](https://design.vertesiahq.com/components/tooltips)
53
+ - [Switch](https://design.vertesiahq.com/components/switch)
54
+ - [Side Panel](https://design.vertesiahq.com/components/sidePanel)
55
+ - [SelectBox](https://design.vertesiahq.com/components/selectBox)
56
+ - [Overlay](https://design.vertesiahq.com/components/overlay)
57
+ - [Breadcrumbs](https://design.vertesiahq.com/components/breadcrumb)
58
+ - [Monaco](https://design.vertesiahq.com/components/monaco)
59
+ - [Card](https://design.vertesiahq.com/components/card)
60
+ - [Checkbox](https://design.vertesiahq.com/components/checkbox)
61
+ - [Collapsible](https://design.vertesiahq.com/components/collapsible)
62
+ - [Command](https://design.vertesiahq.com/components/command)
63
+ - [Dropdown](https://design.vertesiahq.com/components/dropdown)
64
+ - [Label](https://design.vertesiahq.com/components/label)
65
+ - [Panel](https://design.vertesiahq.com/components/panel)
66
+ - [Popover](https://design.vertesiahq.com/components/popover)
67
+ - [Radio Group](https://design.vertesiahq.com/components/radioGroup)
68
+ - [Resizeable](https://design.vertesiahq.com/components/resizeable)
69
+ - [Separator](https://design.vertesiahq.com/components/separator)
70
+ - [Text](https://design.vertesiahq.com/components/text)
71
+ - [Theme](https://design.vertesiahq.com/components/theme)
72
72
 
73
73
  ## Layout & Structure
74
74
 
75
- - [Avatar](https://docs-ui-style-shadcn.vertesia.dev/components/avatar)
76
- - [Center](https://docs-ui-style-shadcn.vertesia.dev/components/center)
77
- - [Divider](https://docs-ui-style-shadcn.vertesia.dev/components/divider)
78
- - [Link](https://docs-ui-style-shadcn.vertesia.dev/components/link)
79
- - [Portal](https://docs-ui-style-shadcn.vertesia.dev/components/portal)
80
- - [Spinner](https://docs-ui-style-shadcn.vertesia.dev/components/spinner)
75
+ - [Avatar](https://design.vertesiahq.com/components/avatar)
76
+ - [Center](https://design.vertesiahq.com/components/center)
77
+ - [Divider](https://design.vertesiahq.com/components/divider)
78
+ - [Link](https://design.vertesiahq.com/components/link)
79
+ - [Portal](https://design.vertesiahq.com/components/portal)
80
+ - [Spinner](https://design.vertesiahq.com/components/spinner)
81
81
 
82
82
  ## Forms
83
83
 
84
- - [FormItem](https://docs-ui-style-shadcn.vertesia.dev/components/formItem)
85
- - [Inputs](https://docs-ui-style-shadcn.vertesia.dev/components/inputs)
86
- - [Textarea](https://docs-ui-style-shadcn.vertesia.dev/components/textarea)
87
- - [ComboBox](https://docs-ui-style-shadcn.vertesia.dev/components/comboBox)
88
- - [InputList](https://docs-ui-style-shadcn.vertesia.dev/components/inputList)
89
- - [MenuList](https://docs-ui-style-shadcn.vertesia.dev/components/menuList)
90
- - [NumberInput](https://docs-ui-style-shadcn.vertesia.dev/components/numberInput)
91
- - [SelectList](https://docs-ui-style-shadcn.vertesia.dev/components/selectList)
92
- - [TagsInput](https://docs-ui-style-shadcn.vertesia.dev/components/tagsInput)
84
+ - [FormItem](https://design.vertesiahq.com/components/formItem)
85
+ - [Inputs](https://design.vertesiahq.com/components/inputs)
86
+ - [Textarea](https://design.vertesiahq.com/components/textarea)
87
+ - [ComboBox](https://design.vertesiahq.com/components/comboBox)
88
+ - [InputList](https://design.vertesiahq.com/components/inputList)
89
+ - [MenuList](https://design.vertesiahq.com/components/menuList)
90
+ - [NumberInput](https://design.vertesiahq.com/components/numberInput)
91
+ - [SelectList](https://design.vertesiahq.com/components/selectList)
92
+ - [TagsInput](https://design.vertesiahq.com/components/tagsInput)
93
93
 
94
94
  # Component Guidance
95
95
 
@@ -97,7 +97,7 @@ import { useUserSession } from '@vertesia/ui/session';
97
97
 
98
98
  Primary action primitive with Vertesia variants, loading state, disabled state, and tooltip support.
99
99
 
100
- - Route: https://docs-ui-style-shadcn.vertesia.dev/components/buttons
100
+ - Route: https://design.vertesiahq.com/components/buttons
101
101
  - Import path: `@vertesia/ui/core`
102
102
  - Exports: `Button`, `CopyButton`, `buttonVariants`
103
103
 
@@ -147,7 +147,7 @@ import { Button } from '@vertesia/ui/core';
147
147
 
148
148
  Single-line text input with a simplified value-based `onChange` callback.
149
149
 
150
- - Route: https://docs-ui-style-shadcn.vertesia.dev/components/inputs
150
+ - Route: https://design.vertesiahq.com/components/inputs
151
151
  - Import path: `@vertesia/ui/core`
152
152
  - Exports: `Input`
153
153
 
@@ -184,7 +184,7 @@ const [name, setName] = useState('');
184
184
 
185
185
  Multi-line text control using standard React textarea event handling.
186
186
 
187
- - Route: https://docs-ui-style-shadcn.vertesia.dev/components/textarea
187
+ - Route: https://design.vertesiahq.com/components/textarea
188
188
  - Import path: `@vertesia/ui/core`
189
189
  - Exports: `Textarea`
190
190
 
@@ -215,7 +215,7 @@ Multi-line text control using standard React textarea event handling.
215
215
 
216
216
  Field wrapper for labels, required indicators, and help tooltips.
217
217
 
218
- - Route: https://docs-ui-style-shadcn.vertesia.dev/components/formItem
218
+ - Route: https://design.vertesiahq.com/components/formItem
219
219
  - Import path: `@vertesia/ui/core`
220
220
  - Exports: `FormItem`
221
221
 
@@ -248,7 +248,7 @@ Field wrapper for labels, required indicators, and help tooltips.
248
248
 
249
249
  Accessible overlay dialog for focused tasks and forms.
250
250
 
251
- - Route: https://docs-ui-style-shadcn.vertesia.dev/components/modal
251
+ - Route: https://design.vertesiahq.com/components/modal
252
252
  - Import path: `@vertesia/ui/core`
253
253
  - Exports: `Modal`, `ModalTitle`, `ModalBody`, `ModalFooter`
254
254
 
@@ -293,7 +293,7 @@ Accessible overlay dialog for focused tasks and forms.
293
293
 
294
294
  Confirmation dialog for actions that need explicit user consent.
295
295
 
296
- - Route: https://docs-ui-style-shadcn.vertesia.dev/components/confirmModal
296
+ - Route: https://design.vertesiahq.com/components/confirmModal
297
297
  - Import path: `@vertesia/ui/core`
298
298
  - Exports: `ConfirmModal`
299
299
 
@@ -316,7 +316,7 @@ Confirmation dialog for actions that need explicit user consent.
316
316
 
317
317
  Delete-specific confirmation wrapper with async delete handling and toast feedback.
318
318
 
319
- - Route: https://docs-ui-style-shadcn.vertesia.dev/components/deleteModal
319
+ - Route: https://design.vertesiahq.com/components/deleteModal
320
320
  - Import path: `@vertesia/ui/core`
321
321
  - Exports: `DeleteModal`
322
322
 
@@ -342,7 +342,7 @@ Delete-specific confirmation wrapper with async delete handling and toast feedba
342
342
 
343
343
  Dropdown select for string or object options, with optional search, clear, and multi-select modes.
344
344
 
345
- - Route: https://docs-ui-style-shadcn.vertesia.dev/components/selectBox
345
+ - Route: https://design.vertesiahq.com/components/selectBox
346
346
  - Import path: `@vertesia/ui/core`
347
347
  - Exports: `SelectBox`
348
348
 
@@ -383,7 +383,7 @@ Dropdown select for string or object options, with optional search, clear, and m
383
383
 
384
384
  Tab container driven by an array of tab objects and companion bar/panel components.
385
385
 
386
- - Route: https://docs-ui-style-shadcn.vertesia.dev/components/tabs
386
+ - Route: https://design.vertesiahq.com/components/tabs
387
387
  - Import path: `@vertesia/ui/core`
388
388
  - Exports: `Tabs`, `TabsBar`, `TabsPanel`, `VTabs`, `VTabsBar`, `VTabsPanel`
389
389
 
@@ -408,7 +408,7 @@ Tab container driven by an array of tab objects and companion bar/panel componen
408
408
 
409
409
  Compact status and category labels.
410
410
 
411
- - Route: https://docs-ui-style-shadcn.vertesia.dev/components/badges
411
+ - Route: https://design.vertesiahq.com/components/badges
412
412
  - Import path: `@vertesia/ui/core`
413
413
  - Exports: `Badge`, `DotBadge`
414
414
 
@@ -425,7 +425,7 @@ Compact status and category labels.
425
425
 
426
426
  Semantic feedback box for success, attention, destructive, done, info, and muted messages.
427
427
 
428
- - Route: https://docs-ui-style-shadcn.vertesia.dev/components/messageBox
428
+ - Route: https://design.vertesiahq.com/components/messageBox
429
429
  - Import path: `@vertesia/ui/core`
430
430
  - Exports: `MessageBox`
431
431
 
@@ -437,7 +437,7 @@ Semantic feedback box for success, attention, destructive, done, info, and muted
437
437
 
438
438
  Choice controls for boolean values and mutually exclusive option sets.
439
439
 
440
- - Route: https://docs-ui-style-shadcn.vertesia.dev/components/checkbox
440
+ - Route: https://design.vertesiahq.com/components/checkbox
441
441
  - Import path: `@vertesia/ui/core`
442
442
  - Exports: `Checkbox`, `Switch`, `RadioGroup`, `RadioGroupItem`, `RadioGroupOption`
443
443
 
@@ -451,7 +451,7 @@ Choice controls for boolean values and mutually exclusive option sets.
451
451
 
452
452
  Overlay primitives for action menus, floating content, command palettes, and contextual help.
453
453
 
454
- - Route: https://docs-ui-style-shadcn.vertesia.dev/components/dropdown
454
+ - Route: https://design.vertesiahq.com/components/dropdown
455
455
  - Import path: `@vertesia/ui/core`
456
456
  - Exports: `Dropdown`, `MenuGroup`, `MenuItem`, `Popover`, `Command`, `VTooltip`, `Tooltip`
457
457
 
@@ -466,7 +466,7 @@ Overlay primitives for action menus, floating content, command palettes, and con
466
466
 
467
467
  Content containers for repeated items and framed tool surfaces.
468
468
 
469
- - Route: https://docs-ui-style-shadcn.vertesia.dev/components/card
469
+ - Route: https://design.vertesiahq.com/components/card
470
470
  - Import path: `@vertesia/ui/core`
471
471
  - Exports: `Card`, `CardHeader`, `CardTitle`, `CardDescription`, `CardContent`, `CardFooter`, `Panel`
472
472
 
@@ -479,7 +479,7 @@ Content containers for repeated items and framed tool surfaces.
479
479
 
480
480
  Small primitives for display, separation, links, loading states, portals, and overlays.
481
481
 
482
- - Route: https://docs-ui-style-shadcn.vertesia.dev/components/center
482
+ - Route: https://design.vertesiahq.com/components/center
483
483
  - Import path: `@vertesia/ui/core`
484
484
  - Exports: `Avatar`, `SvgAvatar`, `Center`, `Divider`, `Link`, `Portal`, `Spinner`, `Separator`, `Overlay`
485
485
 
@@ -493,7 +493,7 @@ Small primitives for display, separation, links, loading states, portals, and ov
493
493
 
494
494
  Semantic Tailwind classes and approved lucide-react icon guidance for Vertesia apps.
495
495
 
496
- - Route: https://docs-ui-style-shadcn.vertesia.dev/semantic
496
+ - Route: https://design.vertesiahq.com/semantic
497
497
  - Import path: `@vertesia/ui/core`
498
498
  - Exports: `ModeToggle`
499
499
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertesia/ui",
3
- "version": "1.5.0-dev.20260714.072725Z",
3
+ "version": "1.5.0-dev.20260722.120446Z",
4
4
  "description": "Vertesia UI components and and hooks",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -21,27 +21,27 @@
21
21
  "hooks"
22
22
  ],
23
23
  "dependencies": {
24
- "@floating-ui/dom": "^1.7.6",
25
- "@floating-ui/react": "^0.27.19",
24
+ "@floating-ui/dom": "^1.8.0",
25
+ "@floating-ui/react": "^0.27.20",
26
26
  "@monaco-editor/react": "^4.7.0",
27
- "@radix-ui/react-checkbox": "^1.3.6",
28
- "@radix-ui/react-collapsible": "^1.1.15",
29
- "@radix-ui/react-dialog": "^1.1.18",
27
+ "@radix-ui/react-checkbox": "^1.3.7",
28
+ "@radix-ui/react-collapsible": "^1.1.16",
29
+ "@radix-ui/react-dialog": "^1.1.19",
30
30
  "@radix-ui/react-direction": "^1.1.2",
31
- "@radix-ui/react-dismissable-layer": "^1.1.14",
32
- "@radix-ui/react-dropdown-menu": "^2.1.19",
31
+ "@radix-ui/react-dismissable-layer": "^1.1.15",
32
+ "@radix-ui/react-dropdown-menu": "^2.1.20",
33
33
  "@radix-ui/react-focus-guards": "^1.1.4",
34
- "@radix-ui/react-focus-scope": "^1.1.11",
34
+ "@radix-ui/react-focus-scope": "^1.1.12",
35
35
  "@radix-ui/react-label": "^2.1.11",
36
- "@radix-ui/react-popover": "^1.1.18",
36
+ "@radix-ui/react-popover": "^1.1.19",
37
37
  "@radix-ui/react-portal": "^1.1.13",
38
- "@radix-ui/react-radio-group": "^1.4.2",
38
+ "@radix-ui/react-radio-group": "^1.4.3",
39
39
  "@radix-ui/react-separator": "^1.1.11",
40
- "@radix-ui/react-slider": "^1.4.2",
40
+ "@radix-ui/react-slider": "^1.4.3",
41
41
  "@radix-ui/react-slot": "^1.3.0",
42
- "@radix-ui/react-switch": "^1.3.2",
43
- "@radix-ui/react-tabs": "^1.1.16",
44
- "@radix-ui/react-tooltip": "^1.2.11",
42
+ "@radix-ui/react-switch": "^1.3.3",
43
+ "@radix-ui/react-tabs": "^1.1.17",
44
+ "@radix-ui/react-tooltip": "^1.2.12",
45
45
  "ajv": "^8.20.0",
46
46
  "ajv-formats": "^3.0.1",
47
47
  "aria-hidden": "^1.2.6",
@@ -50,16 +50,16 @@
50
50
  "cmdk": "^1.1.1",
51
51
  "dayjs": "^1.11.21",
52
52
  "debounce": "^3.0.0",
53
- "dompurify": "^3.4.11",
54
- "fast-xml-parser": "^5.9.3",
55
- "fast-xml-validator": "^1.1.1",
56
- "firebase": "^12.15.0",
53
+ "dompurify": "^3.4.12",
54
+ "fast-xml-parser": "^5.10.1",
55
+ "fast-xml-validator": "^1.2.0",
56
+ "firebase": "^12.16.0",
57
57
  "framer-motion": "^12.42.2",
58
- "i18next": "^26.3.4",
58
+ "i18next": "^26.3.6",
59
59
  "jwt-decode": "^4.0.0",
60
60
  "katex": "^0.17.0",
61
61
  "lodash-es": "^4.18.1",
62
- "lucide-react": "^1.23.0",
62
+ "lucide-react": "^1.24.0",
63
63
  "mermaid": "^11.16.0",
64
64
  "monaco-editor": "^0.55.1",
65
65
  "motion": "^12.42.2",
@@ -69,12 +69,12 @@
69
69
  "react-date-picker": "^12.0.2",
70
70
  "react-dom": "19.2.7",
71
71
  "react-error-boundary": "^6.1.2",
72
- "react-i18next": "^17.0.8",
72
+ "react-i18next": "^17.0.9",
73
73
  "react-markdown": "^10.1.0",
74
74
  "react-pdf": "^10.4.1",
75
75
  "react-remove-scroll": "^2.7.2",
76
76
  "react-remove-scroll-bar": "^2.3.8",
77
- "react-resizable-panels": "^4.12.1",
77
+ "react-resizable-panels": "^4.12.2",
78
78
  "react-style-singleton": "^2.2.3",
79
79
  "react-vega": "^8.0.0",
80
80
  "rehype-katex": "^7.0.1",
@@ -90,27 +90,27 @@
90
90
  "vega": "^6.2.0",
91
91
  "vega-embed": "^7.1.0",
92
92
  "vega-lite": "^6.4.3",
93
- "@vertesia/common": "1.5.0-dev.20260714.072725Z",
94
- "@vertesia/client": "1.5.0-dev.20260714.072725Z",
95
- "@vertesia/json": "1.5.0-dev.20260714.072725Z",
96
- "@vertesia/fusion-ux": "1.5.0-dev.20260714.072725Z"
93
+ "@vertesia/client": "1.5.0-dev.20260722.120446Z",
94
+ "@vertesia/json": "1.5.0-dev.20260722.120446Z",
95
+ "@vertesia/fusion-ux": "1.5.0-dev.20260722.120446Z",
96
+ "@vertesia/common": "1.5.0-dev.20260722.120446Z"
97
97
  },
98
98
  "devDependencies": {
99
99
  "@testing-library/react": "^16.3.2",
100
100
  "@testing-library/user-event": "^14.6.1",
101
- "@types/hast": "^3.0.4",
101
+ "@types/hast": "^3.0.5",
102
102
  "@types/lodash-es": "^4.17.12",
103
- "@types/node": "^24.13.2",
103
+ "@types/node": "^24.13.3",
104
104
  "@types/papaparse": "^5.5.2",
105
105
  "@types/react": "19.2.17",
106
106
  "@types/react-dom": "19.2.3",
107
107
  "axe-core": "^4.12.1",
108
108
  "culori": "^4.0.2",
109
- "i18next-cli": "^1.64.2",
109
+ "i18next-cli": "^1.65.0",
110
110
  "jsdom": "^29.1.1",
111
- "rolldown": "1.1.3",
111
+ "rolldown": "1.1.5",
112
112
  "typescript": "^6.0.3",
113
- "vitest": "^4.1.9",
113
+ "vitest": "^4.1.10",
114
114
  "vitest-axe": "^0.1.0",
115
115
  "wcag-contrast": "^3.0.0",
116
116
  "@vertesia/tsconfig": "0.1.0"
@@ -180,6 +180,7 @@
180
180
  "url": "https://github.com/vertesia/composableai.git",
181
181
  "directory": "packages/ui"
182
182
  },
183
+ "gitHead": "203c30e5a8ddc583ac9f1acce0f5445eb38a9551",
183
184
  "scripts": {
184
185
  "clean:lib": "rimraf ./lib ./tsconfig.tsbuildinfo",
185
186
  "clean": "rimraf ./node_modules ./lib ./tsconfig.tsbuildinfo",
@@ -53,6 +53,79 @@ describe('@vertesia/ui accessibility (axe)', () => {
53
53
  expect(await axe(container)).toHaveNoViolations();
54
54
  });
55
55
 
56
+ it('Button.title is forwarded to aria-label so icon-only buttons are labelled', async () => {
57
+ const { container } = renderWithProviders(
58
+ <Button onClick={() => undefined} title="Refresh">
59
+ <span aria-hidden="true">↻</span>
60
+ </Button>,
61
+ );
62
+ const button = container.querySelector('button');
63
+ expect(button?.getAttribute('aria-label')).toBe('Refresh');
64
+ // The native title attribute is intentionally not forwarded — it would stack a second
65
+ // browser tooltip on top of the VTooltip that `title` already renders.
66
+ expect(button?.hasAttribute('title')).toBe(false);
67
+ expect(await axe(container)).toHaveNoViolations();
68
+ });
69
+
70
+ it('Button.title does NOT override the name of a button that shows text', async () => {
71
+ // WCAG 2.5.3 Label in Name: the accessible name must contain the visible label, so a
72
+ // tooltip must never replace it. Regression test for the Playwright failure where
73
+ // getByRole('button', { name: 'Installed' }) stopped matching.
74
+ const { container } = renderWithProviders(
75
+ <Button onClick={() => undefined} title="Show only installed apps">
76
+ Installed
77
+ </Button>,
78
+ );
79
+ const button = container.querySelector('button');
80
+ expect(button?.hasAttribute('aria-label')).toBe(false);
81
+ expect(button?.textContent).toBe('Installed');
82
+ expect(await axe(container)).toHaveNoViolations();
83
+ });
84
+
85
+ it('Button.title does not override a nested text label either', async () => {
86
+ const { container } = renderWithProviders(
87
+ <Button onClick={() => undefined} title="Open the definition editor">
88
+ <span aria-hidden="true">📄</span>
89
+ <span>Definition</span>
90
+ </Button>,
91
+ );
92
+ expect(container.querySelector('button')?.hasAttribute('aria-label')).toBe(false);
93
+ });
94
+
95
+ it('Button.alt keeps overriding the name of a text button (legacy behavior)', async () => {
96
+ // Unlike `title`, the deprecated `alt` overrides the accessible name even when text is
97
+ // present. Call sites such as <Button alt="Launch a new agent."><Rocket/> Run</Button>
98
+ // depend on this, so the WCAG 2.5.3 guard must NOT apply to `alt`.
99
+ const { container } = renderWithProviders(
100
+ <Button onClick={() => undefined} alt="Launch a new agent.">
101
+ Run
102
+ </Button>,
103
+ );
104
+ expect(container.querySelector('button')?.getAttribute('aria-label')).toBe('Launch a new agent.');
105
+ });
106
+
107
+ it('Button.tooltipPlacement does not leak onto the DOM element', async () => {
108
+ const { container } = renderWithProviders(
109
+ <Button onClick={() => undefined} title="Zoom in" tooltipPlacement="bottom">
110
+ <span aria-hidden="true">+</span>
111
+ </Button>,
112
+ );
113
+ const button = container.querySelector('button');
114
+ expect(button?.getAttribute('aria-label')).toBe('Zoom in');
115
+ expect(button?.hasAttribute('tooltipPlacement')).toBe(false);
116
+ expect(button?.hasAttribute('tooltipplacement')).toBe(false);
117
+ expect(await axe(container)).toHaveNoViolations();
118
+ });
119
+
120
+ it('an explicit aria-label wins over Button.title', async () => {
121
+ const { container } = renderWithProviders(
122
+ <Button onClick={() => undefined} title="Refresh" aria-label="Reload the results">
123
+ <span aria-hidden="true">↻</span>
124
+ </Button>,
125
+ );
126
+ expect(container.querySelector('button')?.getAttribute('aria-label')).toBe('Reload the results');
127
+ });
128
+
56
129
  it('CopyButton has an accessible name via internal aria-label', async () => {
57
130
  const { container } = renderWithProviders(<CopyButton content="example value" />);
58
131
  const button = container.querySelector('button');
@@ -149,7 +149,7 @@ export function SidePanel({
149
149
 
150
150
  function CloseButton({ onClose }: { onClose: () => void }) {
151
151
  return (
152
- <Button alt="Close panel" variant="ghost" onClick={onClose}>
152
+ <Button title="Close panel" variant="ghost" onClick={onClose}>
153
153
  <X className="size-6" aria-hidden="true" />
154
154
  </Button>
155
155
  );
@@ -23,6 +23,22 @@ function useDeprecationWarning(propName: string, isUsed: boolean, message: strin
23
23
  }, [isUsed, message, propName]);
24
24
  }
25
25
 
26
+ // Does this subtree contribute any text to the accessible name? Used to decide whether `title`
27
+ // may supply that name. Icons (lucide elements) have no string children and return false, and
28
+ // `aria-hidden` subtrees are skipped because they are excluded from the name computation.
29
+ function hasVisibleText(node: React.ReactNode): boolean {
30
+ return React.Children.toArray(node).some((child) => {
31
+ if (typeof child === 'string') return child.trim().length > 0;
32
+ if (typeof child === 'number') return true;
33
+ if (React.isValidElement(child)) {
34
+ const props = child.props as { children?: React.ReactNode; 'aria-hidden'?: boolean | string };
35
+ if (props['aria-hidden'] === true || props['aria-hidden'] === 'true') return false;
36
+ return hasVisibleText(props.children);
37
+ }
38
+ return false;
39
+ });
40
+ }
41
+
26
42
  const buttonVariants = cva(
27
43
  'hover:cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
28
44
  {
@@ -60,35 +76,66 @@ export interface ButtonProps
60
76
  VariantProps<typeof buttonVariants> {
61
77
  asChild?: boolean;
62
78
  /**
63
- * @deprecated Use `aria-label` for the accessible name and wrap in `<VTooltip>` for a visual tooltip.
64
- * For backward compatibility, `alt` is forwarded to `aria-label` (when not set) AND still
65
- * triggers the legacy VTooltip wrap. Slated for removal in the next major.
79
+ * @deprecated Use `title` instead. `alt` drives the same tooltip but, unlike `title`, it
80
+ * overrides the accessible name even when the button shows a text label — which usually
81
+ * violates WCAG 2.5.3 (Label in Name). That legacy behavior is preserved so existing call
82
+ * sites keep announcing what they always did. Slated for removal in the next major.
66
83
  */
67
84
  alt?: string;
85
+ /**
86
+ * Tooltip text. Renders a `<VTooltip>` around the button and doubles as the accessible name,
87
+ * so icon-only buttons need nothing else. Pass `aria-label` to override the name independently.
88
+ */
68
89
  title?: string;
90
+ /** Which side the `title` tooltip opens on. Defaults to `top`. */
91
+ tooltipPlacement?: 'top' | 'right' | 'bottom' | 'left';
69
92
  isDisabled?: boolean;
70
93
  isLoading?: boolean;
71
94
  }
72
95
 
73
96
  const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
74
97
  (
75
- { className, variant, size, asChild = false, alt, isDisabled, isLoading, title, onClick, type, ...props },
98
+ {
99
+ className,
100
+ variant,
101
+ size,
102
+ asChild = false,
103
+ alt,
104
+ isDisabled,
105
+ isLoading,
106
+ title,
107
+ tooltipPlacement = 'top',
108
+ onClick,
109
+ type,
110
+ ...props
111
+ },
76
112
  ref,
77
113
  ) => {
78
114
  useDeprecationWarning(
79
115
  'Button.alt',
80
116
  alt !== undefined,
81
- 'use aria-label for the accessible name and wrap in <VTooltip> for a visual tooltip. ' +
82
- '`alt` is forwarded to both for one release.',
117
+ 'use `title` instead it drives the same tooltip and the accessible name. ' +
118
+ '`alt` remains an alias for one release.',
83
119
  );
84
120
 
85
121
  const Comp = asChild ? Slot : 'button';
86
122
  // Default type="button" only when rendering an actual <button>. With asChild,
87
123
  // the rendered element may be an <a> or other tag where injecting `type` is wrong.
88
124
  const resolvedType = asChild ? type : (type ?? 'button');
89
- // Back-fill aria-label from alt during the deprecation window so existing call
90
- // sites keep their accessible name without code changes.
91
- const ariaLabel = props['aria-label'] ?? alt;
125
+ // `title` (or its deprecated alias `alt`) drives the VTooltip below. `title` also back-fills
126
+ // the accessible name, so an icon-only <Button title="Refresh"> is labelled without any
127
+ // extra props or a manual <VTooltip> wrap at the call site.
128
+ //
129
+ // That back-fill is skipped when the button already shows text: turning
130
+ // <Button title="Show only installed apps">Installed</Button> into aria-label="Show only
131
+ // installed apps" would replace the visible name with the tooltip, which breaks WCAG 2.5.3
132
+ // (Label in Name) and makes the control unreachable by the label users actually see.
133
+ //
134
+ // `alt` deliberately does NOT get that treatment: it has always overridden the name
135
+ // unconditionally, and callers rely on that. Preserving it keeps every existing call site
136
+ // announcing exactly what it announced before, and confines the new rule to `title`.
137
+ const tooltip = title ?? alt;
138
+ const ariaLabel = props['aria-label'] ?? alt ?? (hasVisibleText(props.children) ? undefined : title);
92
139
 
93
140
  // asChild renders via Radix Slot, which requires exactly one React child.
94
141
  // Skip the loader wrap in that case — Slot would reject the multi-child array.
@@ -116,9 +163,18 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
116
163
  </Comp>
117
164
  );
118
165
 
119
- if (alt || title) {
166
+ // Note: the native `title` attribute is deliberately NOT forwarded to the DOM — it would
167
+ // stack a second, delayed browser tooltip on top of the VTooltip. `aria-label` above is
168
+ // what exposes the text to screen readers and to getByRole('button', { name }).
169
+ if (tooltip) {
120
170
  return (
121
- <VTooltip description={alt || title} asChild className="cursor-pointer" size="xs" placement="top">
171
+ <VTooltip
172
+ description={tooltip}
173
+ asChild
174
+ className="cursor-pointer"
175
+ size="xs"
176
+ placement={tooltipPlacement}
177
+ >
122
178
  {buttonElement}
123
179
  </VTooltip>
124
180
  );
@@ -190,7 +246,6 @@ const CopyButton = React.forwardRef<HTMLButtonElement, CopyButtonProps>(
190
246
  size={size || 'sm'}
191
247
  onClick={handleCopy}
192
248
  {...props}
193
- aria-label={label}
194
249
  title={label}
195
250
  >
196
251
  {isCopied ? <Check className="text-success" /> : <CopyIcon className="size-4" />}
@@ -88,7 +88,7 @@ export function Modal({
88
88
  <DialogClose onClick={() => handleOpenChange(false)} asChild autoFocus={false}>
89
89
  <Button
90
90
  variant="outline"
91
- alt="Close"
91
+ title="Close"
92
92
  className="data-[state=open]:bg-accent opacity-70 hover:opacity-100 rounded-sm focus:outline-none focus:ring-2 focus:ring-ring ring-offset-background focus:ring-offset-2 data-[state=open]:text-muted-foreground transition-opacity disabled:pointer-events-none"
93
93
  >
94
94
  <X className="size-4" />