veryfront 0.1.1048 → 0.1.1049

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 (513) hide show
  1. package/esm/cli/templates/manifest.js +3 -3
  2. package/esm/deno.d.ts +3 -0
  3. package/esm/deno.js +10 -6
  4. package/esm/src/agent/react/use-agent-metadata.js +1 -1
  5. package/esm/src/agent/react/use-agent.js +1 -1
  6. package/esm/src/agent/react/use-agents.js +1 -1
  7. package/esm/src/agent/react/use-chat/types.d.ts +0 -6
  8. package/esm/src/agent/react/use-chat/types.d.ts.map +1 -1
  9. package/esm/src/agent/react/use-chat/use-chat.d.ts +5 -0
  10. package/esm/src/agent/react/use-chat/use-chat.d.ts.map +1 -1
  11. package/esm/src/agent/react/use-chat/use-chat.js +87 -34
  12. package/esm/src/agent/react/use-completion.js +1 -1
  13. package/esm/src/agent/react/use-streaming.js +1 -1
  14. package/esm/src/agent/react/use-voice-input.js +1 -1
  15. package/esm/src/cache/backends/api.d.ts.map +1 -1
  16. package/esm/src/cache/backends/api.js +10 -7
  17. package/esm/src/chat/index.d.ts +8 -15
  18. package/esm/src/chat/index.d.ts.map +1 -1
  19. package/esm/src/chat/index.js +7 -16
  20. package/esm/src/modules/component-registry/registry.d.ts +1 -1
  21. package/esm/src/modules/component-registry/registry.d.ts.map +1 -1
  22. package/esm/src/modules/react-loader/component-loader.d.ts +1 -1
  23. package/esm/src/modules/react-loader/component-loader.d.ts.map +1 -1
  24. package/esm/src/modules/react-loader/extract-component.d.ts +1 -1
  25. package/esm/src/modules/react-loader/extract-component.d.ts.map +1 -1
  26. package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts +1 -1
  27. package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts.map +1 -1
  28. package/esm/src/modules/react-loader/types.d.ts +1 -1
  29. package/esm/src/modules/react-loader/types.d.ts.map +1 -1
  30. package/esm/src/platform/adapters/fs/veryfront/multi-project-adapter.d.ts +3 -1
  31. package/esm/src/platform/adapters/fs/veryfront/multi-project-adapter.d.ts.map +1 -1
  32. package/esm/src/platform/adapters/fs/veryfront/multi-project-adapter.js +2 -0
  33. package/esm/src/platform/adapters/fs/veryfront/request-context.d.ts +4 -0
  34. package/esm/src/platform/adapters/fs/veryfront/request-context.d.ts.map +1 -1
  35. package/esm/src/platform/adapters/fs/veryfront/request-context.js +1 -0
  36. package/esm/src/proxy/main.js +6 -5
  37. package/esm/src/proxy/retry.d.ts +14 -6
  38. package/esm/src/proxy/retry.d.ts.map +1 -1
  39. package/esm/src/proxy/retry.js +82 -20
  40. package/esm/src/react/compat/hooks-adapter.d.ts +1 -1
  41. package/esm/src/react/compat/hooks-adapter.d.ts.map +1 -1
  42. package/esm/src/react/compat/hooks-adapter.js +1 -1
  43. package/esm/src/react/compat/ssr-adapter/response-builder.d.ts +1 -1
  44. package/esm/src/react/compat/ssr-adapter/response-builder.d.ts.map +1 -1
  45. package/esm/src/react/compat/ssr-adapter/server-loader.d.ts +5 -5
  46. package/esm/src/react/compat/ssr-adapter/server-loader.d.ts.map +1 -1
  47. package/esm/src/react/compat/ssr-adapter/stream-renderer.d.ts +1 -1
  48. package/esm/src/react/compat/ssr-adapter/stream-renderer.d.ts.map +1 -1
  49. package/esm/src/react/compat/ssr-adapter/string-renderer.d.ts +1 -1
  50. package/esm/src/react/compat/ssr-adapter/string-renderer.d.ts.map +1 -1
  51. package/esm/src/react/compat/version-detector/feature-detector.js +1 -1
  52. package/esm/src/react/components/AppWrapper.d.ts +1 -1
  53. package/esm/src/react/components/AppWrapper.d.ts.map +1 -1
  54. package/esm/src/react/components/AppWrapper.js +1 -1
  55. package/esm/src/react/components/LayoutComponent.d.ts +1 -1
  56. package/esm/src/react/components/LayoutComponent.d.ts.map +1 -1
  57. package/esm/src/react/components/LayoutComponent.js +1 -1
  58. package/esm/src/react/components/MDXProvider.d.ts +1 -1
  59. package/esm/src/react/components/MDXProvider.d.ts.map +1 -1
  60. package/esm/src/react/components/MDXProvider.js +1 -1
  61. package/esm/src/react/components/ProviderComponent.d.ts +1 -1
  62. package/esm/src/react/components/ProviderComponent.d.ts.map +1 -1
  63. package/esm/src/react/components/ProviderComponent.js +1 -1
  64. package/esm/src/react/components/chat/agent-card.d.ts +15 -7
  65. package/esm/src/react/components/chat/agent-card.d.ts.map +1 -1
  66. package/esm/src/react/components/chat/agent-card.js +9 -10
  67. package/esm/src/react/components/chat/agent-picker-actions.d.ts +20 -0
  68. package/esm/src/react/components/chat/agent-picker-actions.d.ts.map +1 -0
  69. package/esm/src/react/components/chat/agent-picker-actions.js +24 -0
  70. package/esm/src/react/components/chat/agent-picker-context.d.ts +19 -0
  71. package/esm/src/react/components/chat/agent-picker-context.d.ts.map +1 -0
  72. package/esm/src/react/components/chat/agent-picker-context.js +13 -0
  73. package/esm/src/react/components/chat/agent-picker.d.ts +35 -42
  74. package/esm/src/react/components/chat/agent-picker.d.ts.map +1 -1
  75. package/esm/src/react/components/chat/agent-picker.js +59 -50
  76. package/esm/src/react/components/chat/chat/app-mode-chat.d.ts +14 -0
  77. package/esm/src/react/components/chat/chat/app-mode-chat.d.ts.map +1 -0
  78. package/esm/src/react/components/chat/chat/app-mode-chat.js +137 -0
  79. package/esm/src/react/components/chat/chat/chat-attachments.d.ts +7 -0
  80. package/esm/src/react/components/chat/chat/chat-attachments.d.ts.map +1 -0
  81. package/esm/src/react/components/chat/chat/chat-attachments.js +16 -0
  82. package/esm/src/react/components/chat/chat/chat-component.d.ts +21 -0
  83. package/esm/src/react/components/chat/chat/chat-component.d.ts.map +1 -0
  84. package/esm/src/react/components/chat/chat/chat-component.js +1 -0
  85. package/esm/src/react/components/chat/chat/chat-props.d.ts +114 -0
  86. package/esm/src/react/components/chat/chat/chat-props.d.ts.map +1 -0
  87. package/esm/src/react/components/chat/chat/chat-props.js +1 -0
  88. package/esm/src/react/components/chat/chat/components/animations.d.ts +1 -1
  89. package/esm/src/react/components/chat/chat/components/animations.d.ts.map +1 -1
  90. package/esm/src/react/components/chat/chat/components/animations.js +1 -1
  91. package/esm/src/react/components/chat/chat/components/attachment-pill.d.ts +18 -18
  92. package/esm/src/react/components/chat/chat/components/attachment-pill.d.ts.map +1 -1
  93. package/esm/src/react/components/chat/chat/components/attachment-pill.js +11 -15
  94. package/esm/src/react/components/chat/chat/components/attachments-panel.d.ts +14 -3
  95. package/esm/src/react/components/chat/chat/components/attachments-panel.d.ts.map +1 -1
  96. package/esm/src/react/components/chat/chat/components/attachments-panel.js +3 -3
  97. package/esm/src/react/components/chat/chat/components/branch-picker.d.ts +44 -14
  98. package/esm/src/react/components/chat/chat/components/branch-picker.d.ts.map +1 -1
  99. package/esm/src/react/components/chat/chat/components/branch-picker.js +55 -12
  100. package/esm/src/react/components/chat/chat/components/chat-messages-skeleton.d.ts +1 -1
  101. package/esm/src/react/components/chat/chat/components/chat-messages-skeleton.d.ts.map +1 -1
  102. package/esm/src/react/components/chat/chat/components/chat-messages-skeleton.js +1 -1
  103. package/esm/src/react/components/chat/chat/components/code-block.d.ts +7 -2
  104. package/esm/src/react/components/chat/chat/components/code-block.d.ts.map +1 -1
  105. package/esm/src/react/components/chat/chat/components/code-block.js +3 -3
  106. package/esm/src/react/components/chat/chat/components/drop-zone.d.ts +1 -1
  107. package/esm/src/react/components/chat/chat/components/drop-zone.d.ts.map +1 -1
  108. package/esm/src/react/components/chat/chat/components/drop-zone.js +1 -1
  109. package/esm/src/react/components/chat/chat/components/empty-state.d.ts +1 -1
  110. package/esm/src/react/components/chat/chat/components/empty-state.d.ts.map +1 -1
  111. package/esm/src/react/components/chat/chat/components/empty-state.js +1 -1
  112. package/esm/src/react/components/chat/chat/components/inference-badge.d.ts +1 -1
  113. package/esm/src/react/components/chat/chat/components/inference-badge.d.ts.map +1 -1
  114. package/esm/src/react/components/chat/chat/components/inference-badge.js +1 -1
  115. package/esm/src/react/components/chat/chat/components/inline-citation.d.ts +33 -10
  116. package/esm/src/react/components/chat/chat/components/inline-citation.d.ts.map +1 -1
  117. package/esm/src/react/components/chat/chat/components/inline-citation.js +145 -51
  118. package/esm/src/react/components/chat/chat/components/message-actions.d.ts +49 -20
  119. package/esm/src/react/components/chat/chat/components/message-actions.d.ts.map +1 -1
  120. package/esm/src/react/components/chat/chat/components/message-actions.js +72 -18
  121. package/esm/src/react/components/chat/chat/components/message-edit-form.d.ts +1 -1
  122. package/esm/src/react/components/chat/chat/components/message-edit-form.d.ts.map +1 -1
  123. package/esm/src/react/components/chat/chat/components/message-edit-form.js +1 -1
  124. package/esm/src/react/components/chat/chat/components/message-feedback.d.ts +34 -14
  125. package/esm/src/react/components/chat/chat/components/message-feedback.d.ts.map +1 -1
  126. package/esm/src/react/components/chat/chat/components/message-feedback.js +54 -15
  127. package/esm/src/react/components/chat/chat/components/quick-actions.d.ts +1 -1
  128. package/esm/src/react/components/chat/chat/components/quick-actions.d.ts.map +1 -1
  129. package/esm/src/react/components/chat/chat/components/quick-actions.js +1 -1
  130. package/esm/src/react/components/chat/chat/components/reasoning.d.ts +14 -6
  131. package/esm/src/react/components/chat/chat/components/reasoning.d.ts.map +1 -1
  132. package/esm/src/react/components/chat/chat/components/reasoning.js +3 -5
  133. package/esm/src/react/components/chat/chat/components/sidebar.d.ts +70 -16
  134. package/esm/src/react/components/chat/chat/components/sidebar.d.ts.map +1 -1
  135. package/esm/src/react/components/chat/chat/components/sidebar.js +72 -23
  136. package/esm/src/react/components/chat/chat/components/skill-badge.d.ts +1 -1
  137. package/esm/src/react/components/chat/chat/components/skill-badge.d.ts.map +1 -1
  138. package/esm/src/react/components/chat/chat/components/skill-badge.js +1 -1
  139. package/esm/src/react/components/chat/chat/components/skill-tool.d.ts +1 -1
  140. package/esm/src/react/components/chat/chat/components/skill-tool.d.ts.map +1 -1
  141. package/esm/src/react/components/chat/chat/components/skill-tool.js +1 -1
  142. package/esm/src/react/components/chat/chat/components/sources.d.ts +25 -15
  143. package/esm/src/react/components/chat/chat/components/sources.d.ts.map +1 -1
  144. package/esm/src/react/components/chat/chat/components/sources.js +7 -7
  145. package/esm/src/react/components/chat/chat/components/step-indicator.d.ts +14 -3
  146. package/esm/src/react/components/chat/chat/components/step-indicator.d.ts.map +1 -1
  147. package/esm/src/react/components/chat/chat/components/step-indicator.js +3 -3
  148. package/esm/src/react/components/chat/chat/components/tab-switcher.d.ts +1 -1
  149. package/esm/src/react/components/chat/chat/components/tab-switcher.d.ts.map +1 -1
  150. package/esm/src/react/components/chat/chat/components/tab-switcher.js +1 -1
  151. package/esm/src/react/components/chat/chat/components/tool-ui.d.ts +16 -9
  152. package/esm/src/react/components/chat/chat/components/tool-ui.d.ts.map +1 -1
  153. package/esm/src/react/components/chat/chat/components/tool-ui.js +10 -14
  154. package/esm/src/react/components/chat/chat/composition/agent-avatar.d.ts +1 -1
  155. package/esm/src/react/components/chat/chat/composition/agent-avatar.d.ts.map +1 -1
  156. package/esm/src/react/components/chat/chat/composition/agent-avatar.js +1 -1
  157. package/esm/src/react/components/chat/chat/composition/api.d.ts +3 -3
  158. package/esm/src/react/components/chat/chat/composition/api.d.ts.map +1 -1
  159. package/esm/src/react/components/chat/chat/composition/api.js +2 -2
  160. package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts +72 -29
  161. package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts.map +1 -1
  162. package/esm/src/react/components/chat/chat/composition/chat-composer.js +92 -82
  163. package/esm/src/react/components/chat/chat/composition/chat-empty-state.d.ts +1 -1
  164. package/esm/src/react/components/chat/chat/composition/chat-empty-state.d.ts.map +1 -1
  165. package/esm/src/react/components/chat/chat/composition/chat-empty-state.js +1 -1
  166. package/esm/src/react/components/chat/chat/composition/chat-empty.d.ts +7 -2
  167. package/esm/src/react/components/chat/chat/composition/chat-empty.d.ts.map +1 -1
  168. package/esm/src/react/components/chat/chat/composition/chat-empty.js +3 -3
  169. package/esm/src/react/components/chat/chat/composition/chat-if.d.ts +1 -1
  170. package/esm/src/react/components/chat/chat/composition/chat-if.d.ts.map +1 -1
  171. package/esm/src/react/components/chat/chat/composition/chat-message-list.d.ts +25 -11
  172. package/esm/src/react/components/chat/chat/composition/chat-message-list.d.ts.map +1 -1
  173. package/esm/src/react/components/chat/chat/composition/chat-message-list.js +67 -29
  174. package/esm/src/react/components/chat/chat/composition/chat-root.d.ts +7 -3
  175. package/esm/src/react/components/chat/chat/composition/chat-root.d.ts.map +1 -1
  176. package/esm/src/react/components/chat/chat/composition/chat-root.js +3 -5
  177. package/esm/src/react/components/chat/chat/composition/error-banner.d.ts +7 -2
  178. package/esm/src/react/components/chat/chat/composition/error-banner.d.ts.map +1 -1
  179. package/esm/src/react/components/chat/chat/composition/error-banner.js +3 -3
  180. package/esm/src/react/components/chat/chat/composition/message.d.ts +85 -34
  181. package/esm/src/react/components/chat/chat/composition/message.d.ts.map +1 -1
  182. package/esm/src/react/components/chat/chat/composition/message.js +146 -122
  183. package/esm/src/react/components/chat/chat/composition/model-avatar.d.ts +1 -1
  184. package/esm/src/react/components/chat/chat/composition/model-avatar.d.ts.map +1 -1
  185. package/esm/src/react/components/chat/chat/composition/model-avatar.js +1 -1
  186. package/esm/src/react/components/chat/chat/composition/pending-message.d.ts +1 -1
  187. package/esm/src/react/components/chat/chat/composition/pending-message.d.ts.map +1 -1
  188. package/esm/src/react/components/chat/chat/composition/pending-message.js +1 -1
  189. package/esm/src/react/components/chat/chat/contexts/chat-context.d.ts +2 -3
  190. package/esm/src/react/components/chat/chat/contexts/chat-context.d.ts.map +1 -1
  191. package/esm/src/react/components/chat/chat/contexts/chat-context.js +1 -1
  192. package/esm/src/react/components/chat/chat/contexts/composer-context.d.ts +2 -2
  193. package/esm/src/react/components/chat/chat/contexts/composer-context.d.ts.map +1 -1
  194. package/esm/src/react/components/chat/chat/contexts/composer-context.js +1 -1
  195. package/esm/src/react/components/chat/chat/contexts/conversations-context.d.ts +2 -2
  196. package/esm/src/react/components/chat/chat/contexts/conversations-context.d.ts.map +1 -1
  197. package/esm/src/react/components/chat/chat/contexts/conversations-context.js +1 -1
  198. package/esm/src/react/components/chat/chat/contexts/index.d.ts +1 -1
  199. package/esm/src/react/components/chat/chat/contexts/index.d.ts.map +1 -1
  200. package/esm/src/react/components/chat/chat/contexts/index.js +1 -1
  201. package/esm/src/react/components/chat/chat/contexts/message-context.d.ts +15 -2
  202. package/esm/src/react/components/chat/chat/contexts/message-context.d.ts.map +1 -1
  203. package/esm/src/react/components/chat/chat/contexts/message-context.js +11 -1
  204. package/esm/src/react/components/chat/chat/controlled-chat.d.ts +15 -0
  205. package/esm/src/react/components/chat/chat/controlled-chat.d.ts.map +1 -0
  206. package/esm/src/react/components/chat/chat/controlled-chat.js +97 -0
  207. package/esm/src/react/components/chat/chat/hooks/use-clipboard.js +1 -1
  208. package/esm/src/react/components/chat/chat/hooks/use-conversation-chat.d.ts +54 -0
  209. package/esm/src/react/components/chat/chat/hooks/use-conversation-chat.d.ts.map +1 -0
  210. package/esm/src/react/components/chat/chat/hooks/use-conversation-chat.js +179 -0
  211. package/esm/src/react/components/chat/chat/hooks/use-conversation.js +1 -1
  212. package/esm/src/react/components/chat/chat/hooks/use-conversations.d.ts.map +1 -1
  213. package/esm/src/react/components/chat/chat/hooks/use-conversations.js +3 -6
  214. package/esm/src/react/components/chat/chat/hooks/use-drop-zone.d.ts +8 -5
  215. package/esm/src/react/components/chat/chat/hooks/use-drop-zone.d.ts.map +1 -1
  216. package/esm/src/react/components/chat/chat/hooks/use-drop-zone.js +6 -6
  217. package/esm/src/react/components/chat/chat/hooks/use-stick-to-bottom.d.ts +1 -1
  218. package/esm/src/react/components/chat/chat/hooks/use-stick-to-bottom.d.ts.map +1 -1
  219. package/esm/src/react/components/chat/chat/hooks/use-stick-to-bottom.js +1 -1
  220. package/esm/src/react/components/chat/chat/hooks/use-upload.js +1 -1
  221. package/esm/src/react/components/chat/chat/hooks/use-uploads-registry.js +1 -1
  222. package/esm/src/react/components/chat/chat/index.d.ts +13 -230
  223. package/esm/src/react/components/chat/chat/index.d.ts.map +1 -1
  224. package/esm/src/react/components/chat/chat/index.js +27 -383
  225. package/esm/src/react/components/chat/chat-actions.d.ts +1 -1
  226. package/esm/src/react/components/chat/chat-actions.d.ts.map +1 -1
  227. package/esm/src/react/components/chat/chat-actions.js +1 -1
  228. package/esm/src/react/components/chat/chat-agent-picker.d.ts +1 -1
  229. package/esm/src/react/components/chat/chat-agent-picker.d.ts.map +1 -1
  230. package/esm/src/react/components/chat/chat-agent-picker.js +1 -1
  231. package/esm/src/react/components/chat/chat-theme-scope.d.ts +1 -1
  232. package/esm/src/react/components/chat/chat-theme-scope.d.ts.map +1 -1
  233. package/esm/src/react/components/chat/chat-theme-scope.js +1 -1
  234. package/esm/src/react/components/chat/chat.d.ts +6 -6
  235. package/esm/src/react/components/chat/chat.d.ts.map +1 -1
  236. package/esm/src/react/components/chat/chat.js +4 -4
  237. package/esm/src/react/components/chat/error-boundary.d.ts +1 -1
  238. package/esm/src/react/components/chat/error-boundary.d.ts.map +1 -1
  239. package/esm/src/react/components/chat/error-boundary.js +1 -1
  240. package/esm/src/react/components/chat/markdown.d.ts +3 -5
  241. package/esm/src/react/components/chat/markdown.d.ts.map +1 -1
  242. package/esm/src/react/components/chat/markdown.js +4 -72
  243. package/esm/src/react/components/chat/model-selector.d.ts +21 -27
  244. package/esm/src/react/components/chat/model-selector.d.ts.map +1 -1
  245. package/esm/src/react/components/chat/model-selector.js +26 -31
  246. package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.d.ts +1 -1
  247. package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.d.ts.map +1 -1
  248. package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.js +1 -1
  249. package/esm/src/react/components/optimized-image/OptimizedImage.d.ts +1 -1
  250. package/esm/src/react/components/optimized-image/OptimizedImage.d.ts.map +1 -1
  251. package/esm/src/react/components/optimized-image/OptimizedImage.js +1 -1
  252. package/esm/src/react/components/optimized-image/SimpleOptimizedImage.d.ts +1 -1
  253. package/esm/src/react/components/optimized-image/SimpleOptimizedImage.d.ts.map +1 -1
  254. package/esm/src/react/components/optimized-image/utils.d.ts +1 -1
  255. package/esm/src/react/components/optimized-image/utils.d.ts.map +1 -1
  256. package/esm/src/react/components/optimized-image/utils.js +1 -1
  257. package/esm/src/react/components/ui/alert.d.ts +1 -1
  258. package/esm/src/react/components/ui/alert.d.ts.map +1 -1
  259. package/esm/src/react/components/ui/alert.js +1 -1
  260. package/esm/src/react/components/ui/app-shell.d.ts +1 -1
  261. package/esm/src/react/components/ui/app-shell.d.ts.map +1 -1
  262. package/esm/src/react/components/ui/app-shell.js +1 -1
  263. package/esm/src/react/components/ui/avatar.d.ts +1 -1
  264. package/esm/src/react/components/ui/avatar.d.ts.map +1 -1
  265. package/esm/src/react/components/ui/avatar.js +1 -1
  266. package/esm/src/react/components/ui/badge.d.ts +1 -1
  267. package/esm/src/react/components/ui/badge.d.ts.map +1 -1
  268. package/esm/src/react/components/ui/badge.js +1 -1
  269. package/esm/src/react/components/ui/button.d.ts +1 -1
  270. package/esm/src/react/components/ui/button.d.ts.map +1 -1
  271. package/esm/src/react/components/ui/button.js +1 -1
  272. package/esm/src/react/components/ui/card.d.ts +1 -1
  273. package/esm/src/react/components/ui/card.d.ts.map +1 -1
  274. package/esm/src/react/components/ui/card.js +1 -1
  275. package/esm/src/react/components/ui/checkbox.d.ts +1 -1
  276. package/esm/src/react/components/ui/checkbox.d.ts.map +1 -1
  277. package/esm/src/react/components/ui/checkbox.js +1 -1
  278. package/esm/src/react/components/ui/code-block.d.ts +1 -1
  279. package/esm/src/react/components/ui/code-block.d.ts.map +1 -1
  280. package/esm/src/react/components/ui/code-block.js +1 -1
  281. package/esm/src/react/components/ui/collapsible.d.ts +1 -1
  282. package/esm/src/react/components/ui/collapsible.d.ts.map +1 -1
  283. package/esm/src/react/components/ui/collapsible.js +1 -1
  284. package/esm/src/react/components/ui/color-mode.d.ts +2 -2
  285. package/esm/src/react/components/ui/color-mode.d.ts.map +1 -1
  286. package/esm/src/react/components/ui/color-mode.js +1 -1
  287. package/esm/src/react/components/ui/command.d.ts +1 -1
  288. package/esm/src/react/components/ui/command.d.ts.map +1 -1
  289. package/esm/src/react/components/ui/command.js +1 -1
  290. package/esm/src/react/components/ui/dialog.d.ts +1 -1
  291. package/esm/src/react/components/ui/dialog.d.ts.map +1 -1
  292. package/esm/src/react/components/ui/dialog.js +1 -1
  293. package/esm/src/react/components/ui/drawer.d.ts +1 -1
  294. package/esm/src/react/components/ui/drawer.d.ts.map +1 -1
  295. package/esm/src/react/components/ui/drawer.js +1 -1
  296. package/esm/src/react/components/ui/dropdown-menu.d.ts +1 -1
  297. package/esm/src/react/components/ui/dropdown-menu.d.ts.map +1 -1
  298. package/esm/src/react/components/ui/dropdown-menu.js +1 -1
  299. package/esm/src/react/components/ui/file-type.d.ts +1 -1
  300. package/esm/src/react/components/ui/file-type.d.ts.map +1 -1
  301. package/esm/src/react/components/ui/file-type.js +1 -1
  302. package/esm/src/react/components/ui/floating.d.ts +1 -1
  303. package/esm/src/react/components/ui/floating.d.ts.map +1 -1
  304. package/esm/src/react/components/ui/floating.js +2 -2
  305. package/esm/src/react/components/ui/icon-button.d.ts +1 -1
  306. package/esm/src/react/components/ui/icon-button.d.ts.map +1 -1
  307. package/esm/src/react/components/ui/icon-button.js +1 -1
  308. package/esm/src/react/components/ui/icons/index.d.ts +1 -1
  309. package/esm/src/react/components/ui/icons/index.d.ts.map +1 -1
  310. package/esm/src/react/components/ui/icons/index.js +1 -1
  311. package/esm/src/react/components/ui/input.d.ts +1 -1
  312. package/esm/src/react/components/ui/input.d.ts.map +1 -1
  313. package/esm/src/react/components/ui/input.js +1 -1
  314. package/esm/src/react/components/ui/label.d.ts +1 -1
  315. package/esm/src/react/components/ui/label.d.ts.map +1 -1
  316. package/esm/src/react/components/ui/label.js +1 -1
  317. package/esm/src/react/components/ui/list.d.ts +1 -1
  318. package/esm/src/react/components/ui/list.d.ts.map +1 -1
  319. package/esm/src/react/components/ui/list.js +1 -1
  320. package/esm/src/react/components/ui/pill.d.ts +1 -1
  321. package/esm/src/react/components/ui/pill.d.ts.map +1 -1
  322. package/esm/src/react/components/ui/pill.js +1 -1
  323. package/esm/src/react/components/ui/popover.d.ts +1 -1
  324. package/esm/src/react/components/ui/popover.d.ts.map +1 -1
  325. package/esm/src/react/components/ui/popover.js +1 -1
  326. package/esm/src/react/components/ui/progress-bar.d.ts +1 -1
  327. package/esm/src/react/components/ui/progress-bar.d.ts.map +1 -1
  328. package/esm/src/react/components/ui/progress-bar.js +1 -1
  329. package/esm/src/react/components/ui/radio.d.ts +1 -1
  330. package/esm/src/react/components/ui/radio.d.ts.map +1 -1
  331. package/esm/src/react/components/ui/radio.js +1 -1
  332. package/esm/src/react/components/ui/scroll-fade.d.ts +1 -1
  333. package/esm/src/react/components/ui/scroll-fade.d.ts.map +1 -1
  334. package/esm/src/react/components/ui/scroll-fade.js +1 -1
  335. package/esm/src/react/components/ui/select.d.ts +1 -1
  336. package/esm/src/react/components/ui/select.d.ts.map +1 -1
  337. package/esm/src/react/components/ui/select.js +1 -1
  338. package/esm/src/react/components/ui/shimmer.d.ts +1 -1
  339. package/esm/src/react/components/ui/shimmer.d.ts.map +1 -1
  340. package/esm/src/react/components/ui/shimmer.js +1 -1
  341. package/esm/src/react/components/ui/skeleton.d.ts +1 -1
  342. package/esm/src/react/components/ui/skeleton.d.ts.map +1 -1
  343. package/esm/src/react/components/ui/skeleton.js +1 -1
  344. package/esm/src/react/components/ui/slot.d.ts +1 -1
  345. package/esm/src/react/components/ui/slot.d.ts.map +1 -1
  346. package/esm/src/react/components/ui/slot.js +1 -1
  347. package/esm/src/react/components/ui/status.d.ts +1 -1
  348. package/esm/src/react/components/ui/status.d.ts.map +1 -1
  349. package/esm/src/react/components/ui/status.js +1 -1
  350. package/esm/src/react/components/ui/switch.d.ts +1 -1
  351. package/esm/src/react/components/ui/switch.d.ts.map +1 -1
  352. package/esm/src/react/components/ui/switch.js +1 -1
  353. package/esm/src/react/components/ui/tabs.d.ts +3 -3
  354. package/esm/src/react/components/ui/tabs.d.ts.map +1 -1
  355. package/esm/src/react/components/ui/tabs.js +1 -1
  356. package/esm/src/react/components/ui/tag.d.ts +1 -1
  357. package/esm/src/react/components/ui/tag.d.ts.map +1 -1
  358. package/esm/src/react/components/ui/tag.js +1 -1
  359. package/esm/src/react/components/ui/textarea.d.ts +1 -1
  360. package/esm/src/react/components/ui/textarea.d.ts.map +1 -1
  361. package/esm/src/react/components/ui/textarea.js +1 -1
  362. package/esm/src/react/components/ui/tokens.d.ts +1 -1
  363. package/esm/src/react/components/ui/tokens.d.ts.map +1 -1
  364. package/esm/src/react/components/ui/tokens.js +1 -1
  365. package/esm/src/react/components/ui/tooltip.d.ts +1 -1
  366. package/esm/src/react/components/ui/tooltip.d.ts.map +1 -1
  367. package/esm/src/react/components/ui/tooltip.js +2 -2
  368. package/esm/src/react/fonts/index.d.ts +1 -1
  369. package/esm/src/react/fonts/index.d.ts.map +1 -1
  370. package/esm/src/react/fonts/index.js +1 -1
  371. package/esm/src/react/primitives/agent-primitives.d.ts +4 -4
  372. package/esm/src/react/primitives/agent-primitives.d.ts.map +1 -1
  373. package/esm/src/react/primitives/agent-primitives.js +1 -1
  374. package/esm/src/react/primitives/chat-container.d.ts +2 -2
  375. package/esm/src/react/primitives/chat-container.d.ts.map +1 -1
  376. package/esm/src/react/primitives/chat-container.js +1 -1
  377. package/esm/src/react/primitives/input-box.d.ts +4 -4
  378. package/esm/src/react/primitives/input-box.d.ts.map +1 -1
  379. package/esm/src/react/primitives/input-box.js +1 -1
  380. package/esm/src/react/primitives/message-list.d.ts +5 -5
  381. package/esm/src/react/primitives/message-list.d.ts.map +1 -1
  382. package/esm/src/react/primitives/message-list.js +1 -1
  383. package/esm/src/react/primitives/tool-primitives.d.ts +4 -4
  384. package/esm/src/react/primitives/tool-primitives.d.ts.map +1 -1
  385. package/esm/src/react/primitives/tool-primitives.js +1 -1
  386. package/esm/src/react/runtime/core.d.ts +1 -1
  387. package/esm/src/react/runtime/core.d.ts.map +1 -1
  388. package/esm/src/react/runtime/core.js +1 -1
  389. package/esm/src/rendering/app-reserved.d.ts +1 -1
  390. package/esm/src/rendering/app-reserved.d.ts.map +1 -1
  391. package/esm/src/rendering/app-reserved.js +1 -1
  392. package/esm/src/rendering/component-handling.d.ts +1 -1
  393. package/esm/src/rendering/component-handling.d.ts.map +1 -1
  394. package/esm/src/rendering/element-validator/element-normalizer.d.ts +1 -1
  395. package/esm/src/rendering/element-validator/element-normalizer.d.ts.map +1 -1
  396. package/esm/src/rendering/element-validator/element-normalizer.js +1 -1
  397. package/esm/src/rendering/element-validator/primitive-checks.d.ts +1 -1
  398. package/esm/src/rendering/element-validator/primitive-checks.d.ts.map +1 -1
  399. package/esm/src/rendering/element-validator/primitive-checks.js +1 -1
  400. package/esm/src/rendering/element-validator/validator-core.d.ts +1 -1
  401. package/esm/src/rendering/element-validator/validator-core.d.ts.map +1 -1
  402. package/esm/src/rendering/layouts/layout-applicator.d.ts +1 -1
  403. package/esm/src/rendering/layouts/layout-applicator.d.ts.map +1 -1
  404. package/esm/src/rendering/layouts/utils/applicator.d.ts +1 -1
  405. package/esm/src/rendering/layouts/utils/applicator.d.ts.map +1 -1
  406. package/esm/src/rendering/layouts/utils/component-loader.d.ts +1 -1
  407. package/esm/src/rendering/layouts/utils/component-loader.d.ts.map +1 -1
  408. package/esm/src/rendering/layouts/utils/ensure-valid-child.d.ts +1 -1
  409. package/esm/src/rendering/layouts/utils/ensure-valid-child.d.ts.map +1 -1
  410. package/esm/src/rendering/orchestrator/layout.d.ts +1 -1
  411. package/esm/src/rendering/orchestrator/layout.d.ts.map +1 -1
  412. package/esm/src/rendering/orchestrator/ssr-orchestrator.d.ts +1 -1
  413. package/esm/src/rendering/orchestrator/ssr-orchestrator.d.ts.map +1 -1
  414. package/esm/src/rendering/page-renderer.d.ts +1 -1
  415. package/esm/src/rendering/page-renderer.d.ts.map +1 -1
  416. package/esm/src/rendering/page-rendering.d.ts +1 -1
  417. package/esm/src/rendering/page-rendering.d.ts.map +1 -1
  418. package/esm/src/rendering/rsc/server-renderer/component-detector.d.ts +1 -1
  419. package/esm/src/rendering/rsc/server-renderer/component-detector.d.ts.map +1 -1
  420. package/esm/src/rendering/rsc/server-renderer/rsc-renderer.d.ts +1 -1
  421. package/esm/src/rendering/rsc/server-renderer/rsc-renderer.d.ts.map +1 -1
  422. package/esm/src/rendering/rsc/server-renderer/tree-processor.d.ts +1 -1
  423. package/esm/src/rendering/rsc/server-renderer/tree-processor.d.ts.map +1 -1
  424. package/esm/src/rendering/rsc/server-renderer/tree-processor.js +1 -1
  425. package/esm/src/rendering/snippet-renderer.js +2 -2
  426. package/esm/src/rendering/ssr/component-registry.d.ts +1 -1
  427. package/esm/src/rendering/ssr/component-registry.d.ts.map +1 -1
  428. package/esm/src/rendering/ssr/component-registry.js +1 -1
  429. package/esm/src/rendering/ssr/mdx-renderer.d.ts +1 -1
  430. package/esm/src/rendering/ssr/mdx-renderer.d.ts.map +1 -1
  431. package/esm/src/rendering/ssr/mdx-renderer.js +1 -1
  432. package/esm/src/rendering/ssr/types.d.ts +1 -1
  433. package/esm/src/rendering/ssr/types.d.ts.map +1 -1
  434. package/esm/src/rendering/ssr-renderer.d.ts +1 -1
  435. package/esm/src/rendering/ssr-renderer.d.ts.map +1 -1
  436. package/esm/src/rendering/utils/react-helpers.d.ts +1 -1
  437. package/esm/src/rendering/utils/react-helpers.d.ts.map +1 -1
  438. package/esm/src/rendering/utils/react-helpers.js +1 -1
  439. package/esm/src/security/http/base-handler.d.ts +2 -0
  440. package/esm/src/security/http/base-handler.d.ts.map +1 -1
  441. package/esm/src/security/http/base-handler.js +1 -0
  442. package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
  443. package/esm/src/server/handlers/dev/framework-candidates.generated.js +841 -596
  444. package/esm/src/server/handlers/request/agent-stream.handler.d.ts.map +1 -1
  445. package/esm/src/server/handlers/request/agent-stream.handler.js +4 -1
  446. package/esm/src/transforms/mdx/esm-module-loader/components/resolver.d.ts +1 -1
  447. package/esm/src/transforms/mdx/esm-module-loader/components/resolver.d.ts.map +1 -1
  448. package/esm/src/transforms/mdx/esm-module-loader/jsx/runtime-loader.js +1 -1
  449. package/esm/src/transforms/mdx/index.d.ts +1 -1
  450. package/esm/src/transforms/mdx/index.d.ts.map +1 -1
  451. package/esm/src/transforms/mdx/index.js +1 -1
  452. package/esm/src/transforms/mdx/mdx-cache-adapter.js +1 -1
  453. package/esm/src/transforms/mdx/module-loader/types.d.ts +1 -1
  454. package/esm/src/transforms/mdx/module-loader/types.d.ts.map +1 -1
  455. package/esm/src/transforms/mdx/types.d.ts +2 -2
  456. package/esm/src/transforms/mdx/types.d.ts.map +1 -1
  457. package/esm/src/types/app.d.ts +1 -1
  458. package/esm/src/types/app.d.ts.map +1 -1
  459. package/esm/src/types/global-guards.d.ts +1 -1
  460. package/esm/src/types/global-guards.d.ts.map +1 -1
  461. package/esm/src/types/index.d.ts +1 -1
  462. package/esm/src/types/index.d.ts.map +1 -1
  463. package/esm/src/utils/id.d.ts +7 -0
  464. package/esm/src/utils/id.d.ts.map +1 -1
  465. package/esm/src/utils/id.js +22 -0
  466. package/esm/src/utils/version-constant.d.ts +1 -1
  467. package/esm/src/utils/version-constant.js +1 -1
  468. package/esm/src/workflow/claude-code/react/use-claude-code-stream.js +1 -1
  469. package/esm/src/workflow/claude-code/react/use-claude-code-websocket.js +1 -1
  470. package/esm/src/workflow/react/use-approval.js +1 -1
  471. package/esm/src/workflow/react/use-workflow-list.js +1 -1
  472. package/esm/src/workflow/react/use-workflow-start.js +1 -1
  473. package/esm/src/workflow/react/use-workflow.js +1 -1
  474. package/package.json +4 -5
  475. package/esm/deps/esm.sh/react-dom@19.2.4/client.d.ts +0 -3
  476. package/esm/deps/esm.sh/react-dom@19.2.4/client.d.ts.map +0 -1
  477. package/esm/deps/esm.sh/react-dom@19.2.4/client.js +0 -3
  478. package/esm/deps/esm.sh/react-dom@19.2.4/server.d.ts +0 -3
  479. package/esm/deps/esm.sh/react-dom@19.2.4/server.d.ts.map +0 -1
  480. package/esm/deps/esm.sh/react-dom@19.2.4/server.js +0 -3
  481. package/esm/deps/esm.sh/react-dom@19.2.4.d.ts +0 -3
  482. package/esm/deps/esm.sh/react-dom@19.2.4.d.ts.map +0 -1
  483. package/esm/deps/esm.sh/react-dom@19.2.4.js +0 -3
  484. package/esm/deps/esm.sh/react@19.2.4/jsx-dev-runtime.d.ts +0 -3
  485. package/esm/deps/esm.sh/react@19.2.4/jsx-dev-runtime.d.ts.map +0 -1
  486. package/esm/deps/esm.sh/react@19.2.4/jsx-dev-runtime.js +0 -3
  487. package/esm/deps/esm.sh/react@19.2.4/jsx-runtime.d.ts +0 -3
  488. package/esm/deps/esm.sh/react@19.2.4/jsx-runtime.d.ts.map +0 -1
  489. package/esm/deps/esm.sh/react@19.2.4/jsx-runtime.js +0 -3
  490. package/esm/deps/esm.sh/react@19.2.4.d.ts +0 -3
  491. package/esm/deps/esm.sh/react@19.2.4.d.ts.map +0 -1
  492. package/esm/deps/esm.sh/react@19.2.4.js +0 -3
  493. package/esm/deps/esm.sh/scheduler@^0.27.0.d.ts +0 -3
  494. package/esm/deps/esm.sh/scheduler@^0.27.0.d.ts.map +0 -1
  495. package/esm/deps/esm.sh/scheduler@^0.27.0.js +0 -3
  496. package/esm/react/jsx-dev-runtime.d.ts +0 -2
  497. package/esm/react/jsx-dev-runtime.d.ts.map +0 -1
  498. package/esm/react/jsx-dev-runtime.js +0 -1
  499. package/esm/react/jsx-runtime.d.ts +0 -2
  500. package/esm/react/jsx-runtime.d.ts.map +0 -1
  501. package/esm/react/jsx-runtime.js +0 -1
  502. package/esm/react/react-dom-client.d.ts +0 -3
  503. package/esm/react/react-dom-client.d.ts.map +0 -1
  504. package/esm/react/react-dom-client.js +0 -2
  505. package/esm/react/react-dom-server.d.ts +0 -3
  506. package/esm/react/react-dom-server.d.ts.map +0 -1
  507. package/esm/react/react-dom-server.js +0 -2
  508. package/esm/react/react-dom.d.ts +0 -3
  509. package/esm/react/react-dom.d.ts.map +0 -1
  510. package/esm/react/react-dom.js +0 -2
  511. package/esm/react/react.d.ts +0 -6
  512. package/esm/react/react.d.ts.map +0 -1
  513. package/esm/react/react.js +0 -7
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * @module react/components/chat/components/skill-tool
13
13
  */
14
- import * as React from "../../../../../../react/react.js";
14
+ import * as React from "react";
15
15
  import { cn } from "../../theme.js";
16
16
  import { cva } from "../../../ui/cva.js";
17
17
  import { Shimmer } from "../../../ui/shimmer.js";
@@ -1,4 +1,4 @@
1
- import * as React from "../../../../../../react/react.js";
1
+ import * as React from "react";
2
2
  /** Public API contract for source. */
3
3
  export interface Source {
4
4
  title: string;
@@ -18,28 +18,38 @@ export interface SourcesProps {
18
18
  sources: Source[];
19
19
  className?: string;
20
20
  onSourceClick?: (source: Source, index: number) => void;
21
- /**
22
- * @deprecated Compose `Sources.Pill` children instead. Optional render-prop
23
- * for each source pill; when provided, the default anatomy maps items through
24
- * it rather than rendering `Sources.Pill` directly.
25
- */
26
- renderPill?: (source: Source, index: number) => React.ReactNode;
21
+ /** Render each source yourself instead of using `Sources.Pill`. */
22
+ renderItem?: (options: {
23
+ item: Source;
24
+ index: number;
25
+ }) => React.ReactNode;
27
26
  /** Compose your own row; when omitted, the default anatomy is rendered. */
28
27
  children?: React.ReactNode;
28
+ /** React 19: `ref` is a regular prop, forwarded to the row wrapper. */
29
+ ref?: React.Ref<HTMLDivElement>;
30
+ }
31
+ /**
32
+ * `Sources.Root` — context provider + the row wrapper. No children renders the
33
+ * default anatomy (`List` of `Pill`s); pass children to recompose. Renders
34
+ * nothing when the source list is empty.
35
+ */
36
+ declare function SourcesRoot({ sources, className, onSourceClick, renderItem, children, ref }: SourcesProps): React.ReactElement | null;
37
+ declare namespace SourcesRoot {
38
+ var displayName: string;
29
39
  }
30
40
  /** Props for `Sources.List` — the flex-wrap row of pills. */
31
41
  export interface SourcesListProps {
32
42
  className?: string;
33
- /**
34
- * @deprecated Compose `Sources.Pill` children instead. Optional render-prop
35
- * for each source pill.
36
- */
37
- renderPill?: (source: Source, index: number) => React.ReactNode;
43
+ /** Render each source yourself instead of using `Sources.Pill`. */
44
+ renderItem?: (options: {
45
+ item: Source;
46
+ index: number;
47
+ }) => React.ReactNode;
38
48
  /** Compose your own pills; when omitted, one `Sources.Pill` per source. */
39
49
  children?: React.ReactNode;
40
50
  }
41
51
  /** The flex-wrap row. Renders one `Sources.Pill` per source by default. */
42
- declare function SourcesList({ className, renderPill, children }: SourcesListProps): React.JSX.Element;
52
+ declare function SourcesList({ className, renderItem, children }: SourcesListProps): React.JSX.Element;
43
53
  declare namespace SourcesList {
44
54
  var displayName: string;
45
55
  }
@@ -60,8 +70,8 @@ export declare namespace SourcePill {
60
70
  * `Sources.Root` + `Sources.List` + `Sources.Pill` for a custom layout.
61
71
  * Mirrors the `ToolCall` / `Reasoning` compounds: render it, or compose it.
62
72
  */
63
- export declare const Sources: React.ForwardRefExoticComponent<SourcesProps & React.RefAttributes<HTMLDivElement>> & {
64
- Root: React.ForwardRefExoticComponent<SourcesProps & React.RefAttributes<HTMLDivElement>>;
73
+ export declare const Sources: typeof SourcesRoot & {
74
+ Root: typeof SourcesRoot;
65
75
  List: typeof SourcesList;
66
76
  Pill: typeof SourcePill;
67
77
  };
@@ -1 +1 @@
1
- {"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/components/sources.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,kCAAkC,CAAC;AAI1D,sCAAsC;AACtC,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAWD,wDAAwD;AACxD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE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AkDpB;yBApDe,UAAU;;;AAuD1B;;;;GAIG;AACH,eAAO,MAAM,OAAO;;;;CAIlB,CAAC"}
1
+ {"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/components/sources.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,sCAAsC;AACtC,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAWD,wDAAwD;AACxD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzD;AAID,gFAAgF;AAChF,wBAAgB,UAAU,IAAI,mBAAmB,CAQhD;AAED,oDAAoD;AACpD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,mEAAmE;IACnE,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAC;IAC3E,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,uEAAuE;IACvE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;CACjC;AAED;;;;GAIG;AACH,iBAAS,WAAW,CAClB,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,YAAY,GAC7E,KAAK,CAAC,YAAY,GAAG,IAAI,CAe3B;kBAjBQ,WAAW;;;AAoBpB,6DAA6D;AAC7D,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mEAAmE;IACnE,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAC;IAC3E,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,2EAA2E;AAC3E,iBAAS,WAAW,CAClB,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,gBAAgB,GACpD,KAAK,CAAC,GAAG,CAAC,OAAO,CAsBnB;kBAxBQ,WAAW;;;AA2BpB,mDAAmD;AACnD,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,gFAAgF;AAChF,wBAAgB,UAAU,CACxB,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,eAAe,GACrD,KAAK,CAAC,YAAY,CAkDpB;yBApDe,UAAU;;;AAuD1B;;;;GAIG;AACH,eAAO,MAAM,OAAO;;;;CAIlB,CAAC"}
@@ -1,4 +1,4 @@
1
- import * as React from "../../../../../../react/react.js";
1
+ import * as React from "react";
2
2
  import { cn } from "../../theme.js";
3
3
  import { COMPONENT_ERROR } from "../../../../../errors/error-registry.js";
4
4
  const SourcesContext = React.createContext(null);
@@ -17,19 +17,19 @@ export function useSources() {
17
17
  * default anatomy (`List` of `Pill`s); pass children to recompose. Renders
18
18
  * nothing when the source list is empty.
19
19
  */
20
- const SourcesRoot = React.forwardRef(function Sources({ sources, className, onSourceClick, renderPill, children }, ref) {
20
+ function SourcesRoot({ sources, className, onSourceClick, renderItem, children, ref }) {
21
21
  if (sources.length === 0)
22
22
  return null;
23
23
  const context = { sources, onSourceClick };
24
24
  return (React.createElement(SourcesContext.Provider, { value: context },
25
- React.createElement("div", { ref: ref, className: cn("mt-1", className) }, children ?? React.createElement(SourcesList, { renderPill: renderPill }))));
26
- });
25
+ React.createElement("div", { ref: ref, className: cn("mt-1", className) }, children ?? React.createElement(SourcesList, { renderItem: renderItem }))));
26
+ }
27
27
  SourcesRoot.displayName = "Sources.Root";
28
28
  /** The flex-wrap row. Renders one `Sources.Pill` per source by default. */
29
- function SourcesList({ className, renderPill, children }) {
29
+ function SourcesList({ className, renderItem, children }) {
30
30
  const { sources, onSourceClick } = useSources();
31
- return (React.createElement("div", { className: cn("flex flex-wrap gap-2", className) }, children ?? sources.map((source, index) => renderPill
32
- ? (React.createElement(React.Fragment, { key: `${source.title}-${index}` }, renderPill(source, index)))
31
+ return (React.createElement("div", { className: cn("flex flex-wrap gap-2", className) }, children ?? sources.map((source, index) => renderItem
32
+ ? (React.createElement(React.Fragment, { key: `${source.title}-${index}` }, renderItem({ item: source, index })))
33
33
  : (React.createElement(SourcePill, { key: `${source.title}-${index}`, source: source, index: index, onClick: onSourceClick ? () => onSourceClick(source, index) : undefined })))));
34
34
  }
35
35
  SourcesList.displayName = "Sources.List";
@@ -1,4 +1,4 @@
1
- import * as React from "../../../../../../react/react.js";
1
+ import * as React from "react";
2
2
  /** Props accepted by step indicator. */
3
3
  export interface StepIndicatorProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "className"> {
4
4
  stepIndex: number;
@@ -8,6 +8,8 @@ export interface StepIndicatorProps extends Omit<React.HTMLAttributes<HTMLDivEle
8
8
  icon?: React.ReactNode;
9
9
  /** Compose your own divider; when omitted, the default anatomy is rendered. */
10
10
  children?: React.ReactNode;
11
+ /** React 19: ref is a regular prop. */
12
+ ref?: React.Ref<HTMLDivElement>;
11
13
  }
12
14
  /** Per-indicator state shared with `StepIndicator.*` sub-parts. */
13
15
  export interface StepIndicatorContextValue {
@@ -21,6 +23,15 @@ export interface StepIndicatorContextValue {
21
23
  * `StepIndicator`.
22
24
  */
23
25
  export declare function useStepIndicator(): StepIndicatorContextValue;
26
+ /**
27
+ * `StepIndicator.Root` — context provider + the flex container. No children
28
+ * renders the default anatomy (`Rule` + `Label` + `Rule`); pass children to
29
+ * recompose.
30
+ */
31
+ declare function StepIndicatorRoot({ stepIndex, isComplete, className, icon, children, ref, ...props }: StepIndicatorProps): React.ReactElement;
32
+ declare namespace StepIndicatorRoot {
33
+ var displayName: string;
34
+ }
24
35
  /** `StepIndicator.Rule` — one of the flanking horizontal rules. */
25
36
  declare function StepIndicatorRule({ className }: {
26
37
  className?: string;
@@ -40,8 +51,8 @@ declare namespace StepIndicatorLabel {
40
51
  * default divider, or compose `StepIndicator.Root` + `.Rule` / `.Label` for a
41
52
  * custom layout. Mirrors the `ToolCall` / `Sources` compounds.
42
53
  */
43
- export declare const StepIndicator: React.ForwardRefExoticComponent<StepIndicatorProps & React.RefAttributes<HTMLDivElement>> & {
44
- Root: React.ForwardRefExoticComponent<StepIndicatorProps & React.RefAttributes<HTMLDivElement>>;
54
+ export declare const StepIndicator: typeof StepIndicatorRoot & {
55
+ Root: typeof StepIndicatorRoot;
45
56
  Rule: typeof StepIndicatorRule;
46
57
  Label: typeof StepIndicatorLabel;
47
58
  };
@@ -1 +1 @@
1
- {"version":3,"file":"step-indicator.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/components/step-indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,kCAAkC,CAAC;AAK1D,wCAAwC;AACxC,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,WAAW,CAAC;IAC/D,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAWD,mEAAmE;AACnE,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAMD;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,yBAAyB,CAQ5D;AAyCD,mEAAmE;AACnE,iBAAS,iBAAiB,CACxB,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GACpC,KAAK,CAAC,GAAG,CAAC,OAAO,CAEnB;kBAJQ,iBAAiB;;;AAO1B,gEAAgE;AAChE,iBAAS,kBAAkB,CACzB,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GACpC,KAAK,CAAC,GAAG,CAAC,OAAO,CAenB;kBAjBQ,kBAAkB;;;AAoB3B;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;CAIxB,CAAC"}
1
+ {"version":3,"file":"step-indicator.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/components/step-indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,wCAAwC;AACxC,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,WAAW,CAAC;IAC/D,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,uCAAuC;IACvC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;CACjC;AAWD,mEAAmE;AACnE,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAMD;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,yBAAyB,CAQ5D;AAED;;;;GAIG;AACH,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,UAAU,EACV,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,GAAG,EACH,GAAG,KAAK,EACT,EAAE,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAsBzC;kBA9BQ,iBAAiB;;;AAiC1B,mEAAmE;AACnE,iBAAS,iBAAiB,CACxB,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GACpC,KAAK,CAAC,GAAG,CAAC,OAAO,CAEnB;kBAJQ,iBAAiB;;;AAO1B,gEAAgE;AAChE,iBAAS,kBAAkB,CACzB,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GACpC,KAAK,CAAC,GAAG,CAAC,OAAO,CAenB;kBAjBQ,kBAAkB;;;AAoB3B;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;CAIxB,CAAC"}
@@ -1,4 +1,4 @@
1
- import * as React from "../../../../../../react/react.js";
1
+ import * as React from "react";
2
2
  import { cn } from "../../theme.js";
3
3
  import { CheckCircleIcon } from "../../../ui/icons/index.js";
4
4
  import { COMPONENT_ERROR } from "../../../../../errors/error-registry.js";
@@ -21,14 +21,14 @@ export function useStepIndicator() {
21
21
  * renders the default anatomy (`Rule` + `Label` + `Rule`); pass children to
22
22
  * recompose.
23
23
  */
24
- const StepIndicatorRoot = React.forwardRef(function StepIndicator({ stepIndex, isComplete, className, icon, children, ...props }, ref) {
24
+ function StepIndicatorRoot({ stepIndex, isComplete, className, icon, children, ref, ...props }) {
25
25
  const context = { stepIndex, isComplete, icon };
26
26
  return (React.createElement(StepIndicatorContext.Provider, { value: context },
27
27
  React.createElement("div", { ...props, ref: ref, className: cn("flex items-center gap-3 py-3 text-xs text-[var(--faint)]", className) }, children ?? (React.createElement(React.Fragment, null,
28
28
  React.createElement(StepIndicatorRule, null),
29
29
  React.createElement(StepIndicatorLabel, null),
30
30
  React.createElement(StepIndicatorRule, null))))));
31
- });
31
+ }
32
32
  StepIndicatorRoot.displayName = "StepIndicator.Root";
33
33
  /** `StepIndicator.Rule` — one of the flanking horizontal rules. */
34
34
  function StepIndicatorRule({ className }) {
@@ -5,7 +5,7 @@
5
5
  * spring-like cubic-bezier easing to approximate Studio's motion.div.
6
6
  * WAI-ARIA tabs pattern with keyboard navigation.
7
7
  */
8
- import * as React from "../../../../../../react/react.js";
8
+ import * as React from "react";
9
9
  /** Public API contract for chat tab. */
10
10
  export type ChatTab = "chat" | "attachments";
11
11
  /** Props accepted by tab switcher. */
@@ -1 +1 @@
1
- {"version":3,"file":"tab-switcher.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/components/tab-switcher.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,MAAM,kCAAkC,CAAC;AAG1D,wCAAwC;AACxC,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,aAAa,CAAC;AAE7C,sCAAsC;AACtC,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAOD,2BAA2B;AAC3B,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,WAAW,EACX,SAAS,GACV,EAAE,gBAAgB,GAAG,KAAK,CAAC,YAAY,CAwCvC"}
1
+ {"version":3,"file":"tab-switcher.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/components/tab-switcher.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,wCAAwC;AACxC,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,aAAa,CAAC;AAE7C,sCAAsC;AACtC,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAOD,2BAA2B;AAC3B,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,WAAW,EACX,SAAS,GACV,EAAE,gBAAgB,GAAG,KAAK,CAAC,YAAY,CAwCvC"}
@@ -5,7 +5,7 @@
5
5
  * spring-like cubic-bezier easing to approximate Studio's motion.div.
6
6
  * WAI-ARIA tabs pattern with keyboard navigation.
7
7
  */
8
- import * as React from "../../../../../../react/react.js";
8
+ import * as React from "react";
9
9
  import { cn } from "../../theme.js";
10
10
  const TABS = [
11
11
  { value: "chat", label: "Chat" },
@@ -2,7 +2,7 @@
2
2
  * Tool UI Components
3
3
  * @module react/components/chat/components/tool-ui
4
4
  */
5
- import * as React from "../../../../../../react/react.js";
5
+ import * as React from "react";
6
6
  import type { ChatDynamicToolPart, ChatToolPart } from "../../../../../agent/react/index.js";
7
7
  /** Render tool status badge. */
8
8
  export declare function ToolStatusBadge({ state, className }: {
@@ -29,7 +29,7 @@ export interface ToolCallContextValue {
29
29
  }
30
30
  /** Read the enclosing `ToolCall` state. Throws when used outside a `ToolCall`. */
31
31
  export declare function useToolCall(): ToolCallContextValue;
32
- /** Props accepted by `ToolCall` / `ToolCall.Root` (aka `ToolCallCard`). */
32
+ /** Props accepted by `ToolCall` / `ToolCall.Root`. */
33
33
  export interface ToolCallProps {
34
34
  tool: ChatToolPart | ChatDynamicToolPart;
35
35
  className?: string;
@@ -45,10 +45,19 @@ export interface ToolCallProps {
45
45
  defaultExpanded?: boolean;
46
46
  /** Called when the card is toggled; receives the next state + event. */
47
47
  onToggle?: (next: boolean, e: React.MouseEvent<HTMLButtonElement>) => void;
48
- /** Override the compact/skill row rendering. */
49
- renderSkill?: (tool: ChatToolPart | ChatDynamicToolPart) => React.ReactNode;
50
- /** Compose your own card; when omitted, the default anatomy is rendered. */
48
+ /** Compose your own card or replace the compact row. */
51
49
  children?: React.ReactNode;
50
+ /** React 19: ref is a regular prop. */
51
+ ref?: React.Ref<HTMLDivElement>;
52
+ }
53
+ /**
54
+ * `ToolCall.Root` — context provider + the card wrapper. No children renders
55
+ * the default anatomy (`Trigger` + `Body`); pass children to recompose. Skill /
56
+ * compact tools render a single-line row by default and accept replacement children.
57
+ */
58
+ declare function ToolCallRoot({ tool, className, icon, variant, defaultExpanded, onToggle, children, ref }: ToolCallProps): React.ReactElement;
59
+ declare namespace ToolCallRoot {
60
+ var displayName: string;
52
61
  }
53
62
  /** Props for `ToolCall.Trigger` — the header button. */
54
63
  export interface ToolCallTriggerProps {
@@ -97,15 +106,13 @@ declare namespace ToolCallError {
97
106
  * `ToolCall.Trigger` / `Body` / `Input` / `Output` / `Error` for a custom
98
107
  * layout. Mirrors the `Message` compound: render it, or compose it.
99
108
  */
100
- export declare const ToolCall: React.ForwardRefExoticComponent<ToolCallProps & React.RefAttributes<HTMLDivElement>> & {
101
- Root: React.ForwardRefExoticComponent<ToolCallProps & React.RefAttributes<HTMLDivElement>>;
109
+ export declare const ToolCall: typeof ToolCallRoot & {
110
+ Root: typeof ToolCallRoot;
102
111
  Trigger: typeof ToolCallTrigger;
103
112
  Body: typeof ToolCallBody;
104
113
  Input: typeof ToolCallInput;
105
114
  Output: typeof ToolCallOutput;
106
115
  Error: typeof ToolCallError;
107
116
  };
108
- /** Back-compat alias — `message.tsx` and others import `ToolCallCard`. */
109
- export declare const ToolCallCard: React.ForwardRefExoticComponent<ToolCallProps & React.RefAttributes<HTMLDivElement>>;
110
117
  export {};
111
118
  //# sourceMappingURL=tool-ui.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tool-ui.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/components/tool-ui.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,KAAK,MAAM,kCAAkC,CAAC;AAY1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAyD7F,gCAAgC;AAChC,wBAAgB,eAAe,CAC7B,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAC1D,KAAK,CAAC,GAAG,CAAC,OAAO,CAcnB;AA+FD;;;;;;;;;GASG;AAaH,yDAAyD;AACzD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,YAAY,GAAG,mBAAmB,CAAC;IACzC,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACzD,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAID,kFAAkF;AAClF,wBAAgB,WAAW,IAAI,oBAAoB,CAQlD;AAED,2EAA2E;AAC3E,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,YAAY,GAAG,mBAAmB,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,0EAA0E;IAC1E,eAAe,CAAC,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CAAA;CAAE,GAC1E,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAc1B;kBAhBQ,YAAY;;;AAmBrB,6EAA6E;AAC7E,iBAAS,aAAa,CACpB,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,GAC1E,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAa1B;kBAfQ,aAAa;;;AAkBtB,iFAAiF;AACjF,iBAAS,cAAc,CACrB,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,GAC1E,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAuB1B;kBAzBQ,cAAc;;;AA4BvB,yEAAyE;AACzE,iBAAS,aAAa,CACpB,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GACpC,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAa1B;kBAfQ,aAAa;;;AAkBtB;;;;GAIG;AACH,eAAO,MAAM,QAAQ;;;;;;;CAOnB,CAAC"}
@@ -2,7 +2,7 @@
2
2
  * Tool UI Components
3
3
  * @module react/components/chat/components/tool-ui
4
4
  */
5
- import * as React from "../../../../../../react/react.js";
5
+ import * as React from "react";
6
6
  import { cn } from "../../theme.js";
7
7
  import { CheckCircleIcon, ChevronDownIcon, CircleIcon, ClockIcon, WrenchIcon, XCircleIcon, } from "../../../ui/icons/index.js";
8
8
  import { Alert, AlertContent, AlertIcon } from "../../../ui/alert.js";
@@ -124,9 +124,9 @@ export function useToolCall() {
124
124
  /**
125
125
  * `ToolCall.Root` — context provider + the card wrapper. No children renders
126
126
  * the default anatomy (`Trigger` + `Body`); pass children to recompose. Skill /
127
- * compact tools short-circuit to the single-line row (not composable).
127
+ * compact tools render a single-line row by default and accept replacement children.
128
128
  */
129
- const ToolCallRoot = React.forwardRef(function ToolCall({ tool, className, icon, variant, defaultExpanded, onToggle, renderSkill, children }, ref) {
129
+ function ToolCallRoot({ tool, className, icon, variant, defaultExpanded, onToggle, children, ref }) {
130
130
  const hasOutput = hasVisibleToolOutput(tool.output);
131
131
  const hasError = Boolean(tool.errorText);
132
132
  // Collapse tool cards by default. Fast server-side tools (e.g.
@@ -136,14 +136,6 @@ const ToolCallRoot = React.forwardRef(function ToolCall({ tool, className, icon,
136
136
  // Errors stay open so failures aren't hidden behind a click.
137
137
  const shouldExpandByDefault = hasError;
138
138
  const [isExpanded, setIsExpanded] = React.useState(defaultExpanded ?? shouldExpandByDefault);
139
- // Compact row for skill tools (or when forced) — a presentation variant.
140
- const isCompact = variant === "compact" ||
141
- (variant !== "card" && isSkillToolPart(tool));
142
- if (isCompact) {
143
- if (renderSkill)
144
- return React.createElement(React.Fragment, null, renderSkill(tool));
145
- return React.createElement(SkillTool, { ...getSkillToolProps(tool) });
146
- }
147
139
  const toggle = (e) => {
148
140
  const next = !isExpanded;
149
141
  setIsExpanded(next);
@@ -156,11 +148,17 @@ const ToolCallRoot = React.forwardRef(function ToolCall({ tool, className, icon,
156
148
  hasOutput,
157
149
  hasError,
158
150
  };
151
+ // Compact row for skill tools (or when forced), a presentation variant.
152
+ const isCompact = variant === "compact" ||
153
+ (variant !== "card" && isSkillToolPart(tool));
154
+ if (isCompact) {
155
+ return (React.createElement(ToolCallContext.Provider, { value: context }, children ?? React.createElement(SkillTool, { ...getSkillToolProps(tool) })));
156
+ }
159
157
  return (React.createElement(ToolCallContext.Provider, { value: context },
160
158
  React.createElement("div", { ref: ref, className: cn("not-prose w-full overflow-hidden rounded-[var(--radius-md)] border border-[var(--outline-border)] bg-transparent px-4 py-2.5", className) }, children ?? (React.createElement(React.Fragment, null,
161
159
  React.createElement(ToolCallTrigger, { icon: icon }),
162
160
  React.createElement(ToolCallBody, null))))));
163
- });
161
+ }
164
162
  ToolCallRoot.displayName = "ToolCall.Root";
165
163
  /** The header row: tool icon + name + status badge + expand chevron. */
166
164
  function ToolCallTrigger({ icon, className }) {
@@ -230,5 +228,3 @@ export const ToolCall = Object.assign(ToolCallRoot, {
230
228
  Output: ToolCallOutput,
231
229
  Error: ToolCallError,
232
230
  });
233
- /** Back-compat alias — `message.tsx` and others import `ToolCallCard`. */
234
- export const ToolCallCard = ToolCallRoot;
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @module react/components/chat/composition/agent-avatar
5
5
  */
6
- import * as React from "../../../../../../react/react.js";
6
+ import * as React from "react";
7
7
  /** Props accepted by agent avatar. */
8
8
  export interface AgentAvatarProps {
9
9
  name?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"agent-avatar.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/composition/agent-avatar.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,kCAAkC,CAAC;AAI1D,sCAAsC;AACtC,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD,yFAAyF;AACzF,wBAAgB,WAAW,CACzB,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,gBAAgB,GACtD,KAAK,CAAC,YAAY,CA4BpB"}
1
+ {"version":3,"file":"agent-avatar.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/composition/agent-avatar.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,sCAAsC;AACtC,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD,yFAAyF;AACzF,wBAAgB,WAAW,CACzB,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,gBAAgB,GACtD,KAAK,CAAC,YAAY,CA4BpB"}
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @module react/components/chat/composition/agent-avatar
5
5
  */
6
- import * as React from "../../../../../../react/react.js";
6
+ import * as React from "react";
7
7
  import { cn } from "../../theme.js";
8
8
  import { ModelAvatar } from "./model-avatar.js";
9
9
  function getInitial(name) {
@@ -4,8 +4,8 @@
4
4
  * @module react/components/chat/composition/api
5
5
  */
6
6
  export { ChatRoot, type ChatRootProps } from "./chat-root.js";
7
- export { ChatMessageList, type ChatMessageListProps } from "./chat-message-list.js";
8
- export { ChatInput, type ChatInputProps } from "./chat-composer.js";
7
+ export { ChatMessageList, type ChatMessageListContentProps, type ChatMessageListProps, } from "./chat-message-list.js";
8
+ export { ChatInput, type ChatInputExportProps, type ChatInputProps } from "./chat-composer.js";
9
9
  export { ChatEmpty, type ChatEmptyProps } from "./chat-empty.js";
10
10
  export { ChatEmptyState, type ChatEmptyStateAvatarProps, type ChatEmptyStateHeadingProps, type ChatEmptyStateRootProps, type ChatEmptyStateSuggestionProps, type ChatEmptyStateSuggestionsProps, } from "./chat-empty-state.js";
11
11
  export { ChatIf, type ChatIfProps } from "./chat-if.js";
@@ -13,5 +13,5 @@ export { AgentAvatar, type AgentAvatarProps } from "./agent-avatar.js";
13
13
  export { ModelAvatar, type ModelAvatarProps } from "./model-avatar.js";
14
14
  export { ErrorBanner, type ErrorBannerProps } from "./error-banner.js";
15
15
  export { PendingMessage, type PendingMessageProps } from "./pending-message.js";
16
- export { Message, type MessageProps, type MessageRootProps } from "./message.js";
16
+ export { Message, type MessageProps, type MessageRootProps, type MessageTokensProps, type TokenRowProps, } from "./message.js";
17
17
  //# sourceMappingURL=api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/composition/api.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,cAAc,EACd,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,GACpC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAGhF,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/composition/api.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EACL,eAAe,EACf,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,GAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC/F,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,cAAc,EACd,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,GACpC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAGhF,OAAO,EACL,OAAO,EACP,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,aAAa,GACnB,MAAM,cAAc,CAAC"}
@@ -5,7 +5,7 @@
5
5
  */
6
6
  // Root / Layout
7
7
  export { ChatRoot } from "./chat-root.js";
8
- export { ChatMessageList } from "./chat-message-list.js";
8
+ export { ChatMessageList, } from "./chat-message-list.js";
9
9
  export { ChatInput } from "./chat-composer.js";
10
10
  export { ChatEmpty } from "./chat-empty.js";
11
11
  export { ChatEmptyState, } from "./chat-empty-state.js";
@@ -15,4 +15,4 @@ export { ModelAvatar } from "./model-avatar.js";
15
15
  export { ErrorBanner } from "./error-banner.js";
16
16
  export { PendingMessage } from "./pending-message.js";
17
17
  // Message — render-or-compose (`<Message />` or `Message.Root` + parts)
18
- export { Message } from "./message.js";
18
+ export { Message, } from "./message.js";
@@ -4,26 +4,17 @@
4
4
  *
5
5
  * Render-or-compose: `<ChatInput … />` renders the batteries-included toolbar,
6
6
  * or compose your own from the sub-parts (`ChatInput.Field`, `ChatInput.Send`,
7
- * `ChatInput.Stop`, `ChatInput.Voice`, `ChatInput.Model`, `ChatInput.Attach`) —
8
- * each reads its state/handlers from `useComposerContext`, which `ChatInput`
9
- * provides. Every action sub-part takes `icon`, `className`, `asChild`, and an
10
- * `onClick(e, next)` wrap-signature.
7
+ * `ChatInput.Stop`, `ChatInput.Voice`, `ChatInput.Model`, `ChatInput.Attach`,
8
+ * `ChatInput.Export`): each reads its state/handlers from
9
+ * `useComposerContext`, which `ChatInput` provides.
11
10
  *
12
11
  * @module react/components/chat/composition/chat-composer
13
12
  */
14
- import * as React from "../../../../../../react/react.js";
13
+ import * as React from "react";
15
14
  import { type ModelOption } from "../../model-selector.js";
16
15
  import type { ChatTheme } from "../../theme.js";
17
16
  import type { AttachmentInfo } from "../components/attachment-pill.js";
18
17
  import type { ChatMessage } from "../../../../../agent/react/index.js";
19
- /** Icon overrides for the batteries-included `ChatInput` toolbar. */
20
- export interface ChatInputIcons {
21
- send?: React.ReactNode;
22
- attach?: React.ReactNode;
23
- voice?: React.ReactNode;
24
- stop?: React.ReactNode;
25
- export?: React.ReactNode;
26
- }
27
18
  /** Wrap-signature onClick shared by the interactive `ChatInput` sub-parts. */
28
19
  type WrapClick = (event: React.MouseEvent<HTMLElement>, next: () => void) => void;
29
20
  /** Props accepted by `<ChatInput.Field>`. */
@@ -40,13 +31,24 @@ export interface ChatInputActionProps {
40
31
  className?: string;
41
32
  asChild?: boolean;
42
33
  onClick?: WrapClick;
34
+ /** React 19: ref is a regular prop. */
35
+ ref?: React.Ref<HTMLButtonElement>;
43
36
  }
44
37
  /** Send button — shows when there is input (and not streaming). */
45
- export declare const ChatInputSend: React.ForwardRefExoticComponent<ChatInputActionProps & React.RefAttributes<HTMLButtonElement>>;
38
+ export declare function ChatInputSend({ icon, className, asChild, onClick, ref }: ChatInputActionProps): React.ReactElement | null;
39
+ export declare namespace ChatInputSend {
40
+ var displayName: string;
41
+ }
46
42
  /** Stop button — shows while streaming. */
47
- export declare const ChatInputStop: React.ForwardRefExoticComponent<ChatInputActionProps & React.RefAttributes<HTMLButtonElement>>;
43
+ export declare function ChatInputStop({ icon, className, asChild, onClick, ref }: ChatInputActionProps): React.ReactElement | null;
44
+ export declare namespace ChatInputStop {
45
+ var displayName: string;
46
+ }
48
47
  /** Voice button — shows when the field is empty and voice is available. */
49
- export declare const ChatInputVoice: React.ForwardRefExoticComponent<ChatInputActionProps & React.RefAttributes<HTMLButtonElement>>;
48
+ export declare function ChatInputVoice({ icon, className, asChild, onClick, ref }: ChatInputActionProps): React.ReactElement | null;
49
+ export declare namespace ChatInputVoice {
50
+ var displayName: string;
51
+ }
50
52
  /** Model selector — shows when models are configured. */
51
53
  export declare function ChatInputModel({ className }: {
52
54
  className?: string;
@@ -60,6 +62,39 @@ export declare function ChatInputAttach({ icon, onClick }: {
60
62
  icon?: React.ReactNode;
61
63
  onClick?: WrapClick;
62
64
  }): React.ReactElement | null;
65
+ /** Props accepted by `<ChatInput.Export>`. */
66
+ export interface ChatInputExportProps {
67
+ /** Messages included in the downloaded Markdown document. */
68
+ messages: ChatMessage[];
69
+ /** Override the download glyph. */
70
+ icon?: React.ReactNode;
71
+ className?: string;
72
+ /** Wrap the download action; call `next()` to continue. */
73
+ onClick?: WrapClick;
74
+ /** React 19: ref is a regular prop. */
75
+ ref?: React.Ref<HTMLButtonElement>;
76
+ }
77
+ /** Download the supplied conversation as Markdown. */
78
+ export declare function ChatInputExport({ messages, icon, className, onClick, ref }: ChatInputExportProps): React.ReactElement | null;
79
+ export declare namespace ChatInputExport {
80
+ var displayName: string;
81
+ }
82
+ /** Props accepted by `<ChatInput.Toolbar>`. */
83
+ export interface ChatInputToolbarProps {
84
+ className?: string;
85
+ children?: React.ReactNode;
86
+ }
87
+ /**
88
+ * `ChatInput.Toolbar` — a semantic layout slot for the composer's action row.
89
+ * Group/reorder the action sub-parts (`ChatInput.Attach`/`.Model`/`.Export`/
90
+ * `.Voice`/`.Send`) inside it without re-implementing the composer. Pure layout: the
91
+ * children read their own `ComposerContext`, so `<ChatInput.Toolbar>` just
92
+ * mirrors the default action-row wrapper classes.
93
+ */
94
+ export declare function ChatInputToolbar({ className, children }: ChatInputToolbarProps): React.ReactElement;
95
+ export declare namespace ChatInputToolbar {
96
+ var displayName: string;
97
+ }
63
98
  /** Props accepted by `ChatInput`. */
64
99
  export interface ChatInputProps {
65
100
  input: string;
@@ -86,16 +121,12 @@ export interface ChatInputProps {
86
121
  attachAccept?: string;
87
122
  attachments?: AttachmentInfo[];
88
123
  onRemoveAttachment?: (id: string) => void;
89
- showExport?: boolean;
90
- messages?: ChatMessage[];
91
- /** Override the toolbar button icons. */
92
- icons?: ChatInputIcons;
93
124
  /** Wrap the built-in attachment `+` click; call `next()` to run it. */
94
125
  onAttachClick?: WrapClick;
95
- /** Wrap the built-in export click; call `next()` to run it. */
96
- onExportClick?: WrapClick;
97
126
  className?: string;
98
127
  children?: React.ReactNode;
128
+ /** React 19: ref is a regular prop. */
129
+ ref?: React.Ref<HTMLDivElement>;
99
130
  }
100
131
  /** Composer state the context is built from (shared by `ChatInput` + `ChatInput.Root`). */
101
132
  export interface ComposerStateProps {
@@ -120,6 +151,8 @@ export interface ComposerStateProps {
120
151
  export interface ChatInputRootProps extends ComposerStateProps {
121
152
  className?: string;
122
153
  children: React.ReactNode;
154
+ /** React 19: ref is a regular prop. */
155
+ ref?: React.Ref<HTMLDivElement>;
123
156
  }
124
157
  /**
125
158
  * `ChatInput.Root` — the provider shell for a fully custom composer. Supplies
@@ -127,19 +160,29 @@ export interface ChatInputRootProps extends ComposerStateProps {
127
160
  * `ChatInput.Field` + the toolbar sub-parts yourself (like `Message.Root`). The
128
161
  * default `<ChatInput>` is exactly this Root plus the standard body.
129
162
  */
130
- export declare const ChatInputRoot: React.ForwardRefExoticComponent<ChatInputRootProps & React.RefAttributes<HTMLDivElement>>;
163
+ export declare function ChatInputRoot({ className, children, ref, ...state }: ChatInputRootProps): React.ReactElement;
164
+ export declare namespace ChatInputRoot {
165
+ var displayName: string;
166
+ }
167
+ /** Render the composer. */
168
+ declare function ChatInputBase({ input, onChange, onSubmit, isLoading, placeholder, theme, stop, onVoice, isListening, transcript, models, model, onModelChange, toolbarStart, onAttach, onSelectAttachment, onDrop, attachAccept, attachments, onRemoveAttachment, onAttachClick, className, children, ref, }: ChatInputProps): React.ReactElement;
169
+ declare namespace ChatInputBase {
170
+ var displayName: string;
171
+ }
131
172
  /**
132
173
  * ChatInput — render `<ChatInput … />` for the default composer, or compose
133
- * `ChatInput.Field` + `ChatInput.Send`/`Stop`/`Voice`/`Model`/`Attach`.
174
+ * `ChatInput.Field` + `ChatInput.Send`/`Stop`/`Voice`/`Model`/`Attach`/`Export`.
134
175
  */
135
- export declare const ChatInput: React.ForwardRefExoticComponent<ChatInputProps & React.RefAttributes<HTMLDivElement>> & {
136
- Root: React.ForwardRefExoticComponent<ChatInputRootProps & React.RefAttributes<HTMLDivElement>>;
176
+ export declare const ChatInput: typeof ChatInputBase & {
177
+ Root: typeof ChatInputRoot;
137
178
  Field: typeof ChatInputField;
138
- Send: React.ForwardRefExoticComponent<ChatInputActionProps & React.RefAttributes<HTMLButtonElement>>;
139
- Stop: React.ForwardRefExoticComponent<ChatInputActionProps & React.RefAttributes<HTMLButtonElement>>;
140
- Voice: React.ForwardRefExoticComponent<ChatInputActionProps & React.RefAttributes<HTMLButtonElement>>;
179
+ Send: typeof ChatInputSend;
180
+ Stop: typeof ChatInputStop;
181
+ Voice: typeof ChatInputVoice;
141
182
  Model: typeof ChatInputModel;
142
183
  Attach: typeof ChatInputAttach;
184
+ Export: typeof ChatInputExport;
185
+ Toolbar: typeof ChatInputToolbar;
143
186
  };
144
187
  export {};
145
188
  //# sourceMappingURL=chat-composer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat-composer.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/composition/chat-composer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,KAAK,MAAM,kCAAkC,CAAC;AAmB1D,OAAO,EAAE,KAAK,WAAW,EAAiB,MAAM,yBAAyB,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAIvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AA4CvE,qEAAqE;AACrE,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,8EAA8E;AAC9E,KAAK,SAAS,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;AAMlF,6CAA6C;AAC7C,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,iCAAiC;AACjC,wBAAgB,cAAc,CAC5B,EAAE,WAAiC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,GAC9E,KAAK,CAAC,YAAY,CAmBpB;AAED,iDAAiD;AACjD,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,SAA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,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IACrC,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;IAC/B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAmDD,4CAA4C;AAC5C,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;GAKG;AACH,eAAO,MAAM,aAAa,2FAWzB,CAAC;AAoKF;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;;;CAQpB,CAAC"}
1
+ {"version":3,"file":"chat-composer.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/composition/chat-composer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoB/B,OAAO,EAAE,KAAK,WAAW,EAAiB,MAAM,yBAAyB,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAIvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AA0BvE,8EAA8E;AAC9E,KAAK,SAAS,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,IAAI,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