stream-chat-react-native-core 9.12.1 → 9.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (922) hide show
  1. package/a2ui/package.json +6 -0
  2. package/lib/commonjs/a11y/a11yUtils.js.map +1 -1
  3. package/lib/commonjs/a11y/hooks/useResolvedModalAccessibilityProps.js.map +1 -1
  4. package/lib/commonjs/a2ui/A2UIContexts.js +8 -0
  5. package/lib/commonjs/a2ui/A2UIContexts.js.map +1 -0
  6. package/lib/commonjs/a2ui/A2UIInstructions.js +49 -0
  7. package/lib/commonjs/a2ui/A2UIInstructions.js.map +1 -0
  8. package/lib/commonjs/a2ui/A2UIPlaceholder.js +37 -0
  9. package/lib/commonjs/a2ui/A2UIPlaceholder.js.map +1 -0
  10. package/lib/commonjs/a2ui/A2UIRenderer.js +363 -0
  11. package/lib/commonjs/a2ui/A2UIRenderer.js.map +1 -0
  12. package/lib/commonjs/a2ui/A2UIStream.js +91 -0
  13. package/lib/commonjs/a2ui/A2UIStream.js.map +1 -0
  14. package/lib/commonjs/a2ui/A2UISurface.js +212 -0
  15. package/lib/commonjs/a2ui/A2UISurface.js.map +1 -0
  16. package/lib/commonjs/a2ui/basicCatalog.json +1206 -0
  17. package/lib/commonjs/a2ui/basicFunctions.js +398 -0
  18. package/lib/commonjs/a2ui/basicFunctions.js.map +1 -0
  19. package/lib/commonjs/a2ui/catalogDocument.js +80 -0
  20. package/lib/commonjs/a2ui/catalogDocument.js.map +1 -0
  21. package/lib/commonjs/a2ui/catalogs.js +105 -0
  22. package/lib/commonjs/a2ui/catalogs.js.map +1 -0
  23. package/lib/commonjs/a2ui/components/DateTimeInput.js +445 -0
  24. package/lib/commonjs/a2ui/components/DateTimeInput.js.map +1 -0
  25. package/lib/commonjs/a2ui/components/Media.js +316 -0
  26. package/lib/commonjs/a2ui/components/Media.js.map +1 -0
  27. package/lib/commonjs/a2ui/components/basicComponents.js +975 -0
  28. package/lib/commonjs/a2ui/components/basicComponents.js.map +1 -0
  29. package/lib/commonjs/a2ui/components/iconPaths.js +66 -0
  30. package/lib/commonjs/a2ui/components/iconPaths.js.map +1 -0
  31. package/lib/commonjs/a2ui/components/types.js +4 -0
  32. package/lib/commonjs/a2ui/components/types.js.map +1 -0
  33. package/lib/commonjs/a2ui/index.js +70 -0
  34. package/lib/commonjs/a2ui/index.js.map +1 -0
  35. package/lib/commonjs/a2ui/instructions.js +268 -0
  36. package/lib/commonjs/a2ui/instructions.js.map +1 -0
  37. package/lib/commonjs/a2ui/secrets.js +169 -0
  38. package/lib/commonjs/a2ui/secrets.js.map +1 -0
  39. package/lib/commonjs/a2ui/useReplyState.js +35 -0
  40. package/lib/commonjs/a2ui/useReplyState.js.map +1 -0
  41. package/lib/commonjs/ai-components/AITypingIndicatorView.js +8 -18
  42. package/lib/commonjs/ai-components/AITypingIndicatorView.js.map +1 -1
  43. package/lib/commonjs/ai-components/README.md +55 -3
  44. package/lib/commonjs/ai-components/StreamingMessageView.js +26 -0
  45. package/lib/commonjs/ai-components/StreamingMessageView.js.map +1 -1
  46. package/lib/commonjs/ai-components/charts/components/PieLegend.js +2 -1
  47. package/lib/commonjs/ai-components/charts/components/PieLegend.js.map +1 -1
  48. package/lib/commonjs/ai-components/charts/components/VictoryChart.js +7 -2
  49. package/lib/commonjs/ai-components/charts/components/VictoryChart.js.map +1 -1
  50. package/lib/commonjs/ai-components/charts/utils/format-time-label.js +15 -0
  51. package/lib/commonjs/ai-components/charts/utils/format-time-label.js.map +1 -0
  52. package/lib/commonjs/ai-components/charts/vega-lite/schema.js +17 -2
  53. package/lib/commonjs/ai-components/charts/vega-lite/schema.js.map +1 -1
  54. package/lib/commonjs/ai-components/contexts/composer-context.js +13 -6
  55. package/lib/commonjs/ai-components/contexts/composer-context.js.map +1 -1
  56. package/lib/commonjs/ai-components/contexts/index.js +11 -0
  57. package/lib/commonjs/ai-components/contexts/index.js.map +1 -1
  58. package/lib/commonjs/ai-components/contexts/theme-context.js +33 -2
  59. package/lib/commonjs/ai-components/contexts/theme-context.js.map +1 -1
  60. package/lib/commonjs/ai-components/contexts/translation-context.js +29 -0
  61. package/lib/commonjs/ai-components/contexts/translation-context.js.map +1 -0
  62. package/lib/commonjs/ai-components/conversation/AIConversation.js +366 -0
  63. package/lib/commonjs/ai-components/conversation/AIConversation.js.map +1 -0
  64. package/lib/commonjs/ai-components/conversation/controller/AIAgentError.js +13 -0
  65. package/lib/commonjs/ai-components/conversation/controller/AIAgentError.js.map +1 -0
  66. package/lib/commonjs/ai-components/conversation/controller/AIConversationController.js +425 -0
  67. package/lib/commonjs/ai-components/conversation/controller/AIConversationController.js.map +1 -0
  68. package/lib/commonjs/ai-components/conversation/controller/AIConversationExchange.js +89 -0
  69. package/lib/commonjs/ai-components/conversation/controller/AIConversationExchange.js.map +1 -0
  70. package/lib/commonjs/ai-components/conversation/controller/index.js +48 -0
  71. package/lib/commonjs/ai-components/conversation/controller/index.js.map +1 -0
  72. package/lib/commonjs/ai-components/conversation/controller/offers.js +29 -0
  73. package/lib/commonjs/ai-components/conversation/controller/offers.js.map +1 -0
  74. package/lib/commonjs/ai-components/conversation/controller/types.js +13 -0
  75. package/lib/commonjs/ai-components/conversation/controller/types.js.map +1 -0
  76. package/lib/commonjs/ai-components/conversation/controller/useAIConversationState.js +8 -0
  77. package/lib/commonjs/ai-components/conversation/controller/useAIConversationState.js.map +1 -0
  78. package/lib/commonjs/ai-components/conversation/entries.js +98 -0
  79. package/lib/commonjs/ai-components/conversation/entries.js.map +1 -0
  80. package/lib/commonjs/ai-components/conversation/fromStreamMessage.js +66 -0
  81. package/lib/commonjs/ai-components/conversation/fromStreamMessage.js.map +1 -0
  82. package/lib/commonjs/ai-components/conversation/index.js +48 -0
  83. package/lib/commonjs/ai-components/conversation/index.js.map +1 -0
  84. package/lib/commonjs/ai-components/conversation/list/AIChatList.js +224 -0
  85. package/lib/commonjs/ai-components/conversation/list/AIChatList.js.map +1 -0
  86. package/lib/commonjs/ai-components/conversation/list/useChatListController.js +78 -0
  87. package/lib/commonjs/ai-components/conversation/list/useChatListController.js.map +1 -0
  88. package/lib/commonjs/ai-components/conversation/list/useEndInView.js +51 -0
  89. package/lib/commonjs/ai-components/conversation/list/useEndInView.js.map +1 -0
  90. package/lib/commonjs/ai-components/conversation/list/useKeyboardOverlap.js +54 -0
  91. package/lib/commonjs/ai-components/conversation/list/useKeyboardOverlap.js.map +1 -0
  92. package/lib/commonjs/ai-components/conversation/list/useLoadOlder.js +73 -0
  93. package/lib/commonjs/ai-components/conversation/list/useLoadOlder.js.map +1 -0
  94. package/lib/commonjs/ai-components/conversation/list/usePinnedAnchor.js +84 -0
  95. package/lib/commonjs/ai-components/conversation/list/usePinnedAnchor.js.map +1 -0
  96. package/lib/commonjs/ai-components/conversation/types.js +4 -0
  97. package/lib/commonjs/ai-components/conversation/types.js.map +1 -0
  98. package/lib/commonjs/ai-components/conversation/useConversationRows.js +117 -0
  99. package/lib/commonjs/ai-components/conversation/useConversationRows.js.map +1 -0
  100. package/lib/commonjs/ai-components/generative-ui/AIUIAction.js +30 -0
  101. package/lib/commonjs/ai-components/generative-ui/AIUIAction.js.map +1 -0
  102. package/lib/commonjs/ai-components/generative-ui/AIUIArguments.js +128 -0
  103. package/lib/commonjs/ai-components/generative-ui/AIUIArguments.js.map +1 -0
  104. package/lib/commonjs/ai-components/generative-ui/AIUIComponent.js +50 -0
  105. package/lib/commonjs/ai-components/generative-ui/AIUIComponent.js.map +1 -0
  106. package/lib/commonjs/ai-components/generative-ui/AIUIComponentDefinition.js +134 -0
  107. package/lib/commonjs/ai-components/generative-ui/AIUIComponentDefinition.js.map +1 -0
  108. package/lib/commonjs/ai-components/generative-ui/AIUIDocument.js +32 -0
  109. package/lib/commonjs/ai-components/generative-ui/AIUIDocument.js.map +1 -0
  110. package/lib/commonjs/ai-components/generative-ui/AIUIEntrance.js +193 -0
  111. package/lib/commonjs/ai-components/generative-ui/AIUIEntrance.js.map +1 -0
  112. package/lib/commonjs/ai-components/generative-ui/AIUIErrorBoundary.js +30 -0
  113. package/lib/commonjs/ai-components/generative-ui/AIUIErrorBoundary.js.map +1 -0
  114. package/lib/commonjs/ai-components/generative-ui/AIUIHelpers.js +54 -0
  115. package/lib/commonjs/ai-components/generative-ui/AIUIHelpers.js.map +1 -0
  116. package/lib/commonjs/ai-components/generative-ui/AIUIHost.js +259 -0
  117. package/lib/commonjs/ai-components/generative-ui/AIUIHost.js.map +1 -0
  118. package/lib/commonjs/ai-components/generative-ui/AIUIMedia.js +24 -0
  119. package/lib/commonjs/ai-components/generative-ui/AIUIMedia.js.map +1 -0
  120. package/lib/commonjs/ai-components/generative-ui/AIUIRenderer.js +10 -0
  121. package/lib/commonjs/ai-components/generative-ui/AIUIRenderer.js.map +1 -0
  122. package/lib/commonjs/ai-components/generative-ui/AIUIView.js +57 -0
  123. package/lib/commonjs/ai-components/generative-ui/AIUIView.js.map +1 -0
  124. package/lib/commonjs/ai-components/generative-ui/index.js +181 -0
  125. package/lib/commonjs/ai-components/generative-ui/index.js.map +1 -0
  126. package/lib/commonjs/ai-components/icons.js +44 -0
  127. package/lib/commonjs/ai-components/icons.js.map +1 -0
  128. package/lib/commonjs/ai-components/index.js +96 -0
  129. package/lib/commonjs/ai-components/index.js.map +1 -1
  130. package/lib/commonjs/ai-components/internal/Shimmer.js +36 -0
  131. package/lib/commonjs/ai-components/internal/Shimmer.js.map +1 -0
  132. package/lib/commonjs/ai-components/internal/format.js +66 -0
  133. package/lib/commonjs/ai-components/internal/format.js.map +1 -0
  134. package/lib/commonjs/ai-components/internal/hooks/useBottomSafeArea.js +12 -0
  135. package/lib/commonjs/ai-components/internal/hooks/useBottomSafeArea.js.map +1 -0
  136. package/lib/commonjs/ai-components/internal/icons/AgentIcons.js +74 -0
  137. package/lib/commonjs/ai-components/internal/icons/AgentIcons.js.map +1 -0
  138. package/lib/commonjs/ai-components/internal/tokens.js +11 -0
  139. package/lib/commonjs/ai-components/internal/tokens.js.map +1 -0
  140. package/lib/commonjs/ai-components/internal/uuid.js +21 -0
  141. package/lib/commonjs/ai-components/internal/uuid.js.map +1 -0
  142. package/lib/commonjs/ai-components/markdown/components/CodeBlock.js +4 -2
  143. package/lib/commonjs/ai-components/markdown/components/CodeBlock.js.map +1 -1
  144. package/lib/commonjs/ai-components/markdown/components/InlineCode.js +1 -0
  145. package/lib/commonjs/ai-components/markdown/components/InlineCode.js.map +1 -1
  146. package/lib/commonjs/ai-components/markdown/components/Text.js +11 -2
  147. package/lib/commonjs/ai-components/markdown/components/Text.js.map +1 -1
  148. package/lib/commonjs/ai-components/markdown/styles.js +27 -29
  149. package/lib/commonjs/ai-components/markdown/styles.js.map +1 -1
  150. package/lib/commonjs/ai-components/message/AIAssistantMessage.js +63 -0
  151. package/lib/commonjs/ai-components/message/AIAssistantMessage.js.map +1 -0
  152. package/lib/commonjs/ai-components/message/AIMessageAttachment.js +189 -0
  153. package/lib/commonjs/ai-components/message/AIMessageAttachment.js.map +1 -0
  154. package/lib/commonjs/ai-components/message/AIReplyActions.js +132 -0
  155. package/lib/commonjs/ai-components/message/AIReplyActions.js.map +1 -0
  156. package/lib/commonjs/ai-components/message/AIUserMessage.js +104 -0
  157. package/lib/commonjs/ai-components/message/AIUserMessage.js.map +1 -0
  158. package/lib/commonjs/ai-components/message/UserMessageMenu.js +150 -0
  159. package/lib/commonjs/ai-components/message/UserMessageMenu.js.map +1 -0
  160. package/lib/commonjs/ai-components/message/index.js +48 -0
  161. package/lib/commonjs/ai-components/message/index.js.map +1 -0
  162. package/lib/commonjs/ai-components/message-composer/ActionButton.js +2 -1
  163. package/lib/commonjs/ai-components/message-composer/ActionButton.js.map +1 -1
  164. package/lib/commonjs/ai-components/message-composer/ActionSheet.js +22 -6
  165. package/lib/commonjs/ai-components/message-composer/ActionSheet.js.map +1 -1
  166. package/lib/commonjs/ai-components/message-composer/AttachmentButton.js +5 -1
  167. package/lib/commonjs/ai-components/message-composer/AttachmentButton.js.map +1 -1
  168. package/lib/commonjs/ai-components/message-composer/ChatOptions.js +147 -0
  169. package/lib/commonjs/ai-components/message-composer/ChatOptions.js.map +1 -0
  170. package/lib/commonjs/ai-components/message-composer/ComposerView.js +136 -20
  171. package/lib/commonjs/ai-components/message-composer/ComposerView.js.map +1 -1
  172. package/lib/commonjs/ai-components/message-composer/EditingMessageChip.js +80 -0
  173. package/lib/commonjs/ai-components/message-composer/EditingMessageChip.js.map +1 -0
  174. package/lib/commonjs/ai-components/message-composer/MediaPreviewList.js +26 -1
  175. package/lib/commonjs/ai-components/message-composer/MediaPreviewList.js.map +1 -1
  176. package/lib/commonjs/ai-components/message-composer/index.js +11 -0
  177. package/lib/commonjs/ai-components/message-composer/index.js.map +1 -1
  178. package/lib/commonjs/ai-components/message-parts/AIMessageParts.js +110 -0
  179. package/lib/commonjs/ai-components/message-parts/AIMessageParts.js.map +1 -0
  180. package/lib/commonjs/ai-components/message-parts/AIToolApproval.js +197 -0
  181. package/lib/commonjs/ai-components/message-parts/AIToolApproval.js.map +1 -0
  182. package/lib/commonjs/ai-components/message-parts/AIToolAuthorization.js +250 -0
  183. package/lib/commonjs/ai-components/message-parts/AIToolAuthorization.js.map +1 -0
  184. package/lib/commonjs/ai-components/message-parts/AIToolCall.js +159 -0
  185. package/lib/commonjs/ai-components/message-parts/AIToolCall.js.map +1 -0
  186. package/lib/commonjs/ai-components/message-parts/callStates.js +54 -0
  187. package/lib/commonjs/ai-components/message-parts/callStates.js.map +1 -0
  188. package/lib/commonjs/ai-components/message-parts/index.js +70 -0
  189. package/lib/commonjs/ai-components/message-parts/index.js.map +1 -0
  190. package/lib/commonjs/ai-components/message-parts/parseMessageParts.js +126 -0
  191. package/lib/commonjs/ai-components/message-parts/parseMessageParts.js.map +1 -0
  192. package/lib/commonjs/ai-components/message-parts/types.js +2 -0
  193. package/lib/commonjs/ai-components/message-parts/types.js.map +1 -0
  194. package/lib/commonjs/ai-components/native-specs/NativeAIAgent.js +7 -0
  195. package/lib/commonjs/ai-components/native-specs/NativeAIAgent.js.map +1 -0
  196. package/lib/commonjs/ai-components/reasoning/AIReasoning.js +401 -0
  197. package/lib/commonjs/ai-components/reasoning/AIReasoning.js.map +1 -0
  198. package/lib/commonjs/ai-components/reasoning/index.js +26 -0
  199. package/lib/commonjs/ai-components/reasoning/index.js.map +1 -0
  200. package/lib/commonjs/ai-components/reasoning/thinkingClock.js +63 -0
  201. package/lib/commonjs/ai-components/reasoning/thinkingClock.js.map +1 -0
  202. package/lib/commonjs/ai-components/services/clipboard-service/expo.js +7 -2
  203. package/lib/commonjs/ai-components/services/clipboard-service/expo.js.map +1 -1
  204. package/lib/commonjs/ai-components/store/composer/store.js.map +1 -1
  205. package/lib/commonjs/ai-components/store/composer/useComposerChatOption.js +18 -0
  206. package/lib/commonjs/ai-components/store/composer/useComposerChatOption.js.map +1 -0
  207. package/lib/commonjs/ai-components/store/composer/useComposerIsEditing.js +18 -0
  208. package/lib/commonjs/ai-components/store/composer/useComposerIsEditing.js.map +1 -0
  209. package/lib/commonjs/ai-components/store/index.js +22 -0
  210. package/lib/commonjs/ai-components/store/index.js.map +1 -1
  211. package/lib/commonjs/ai-components/suggestions/AISuggestions.js +66 -0
  212. package/lib/commonjs/ai-components/suggestions/AISuggestions.js.map +1 -0
  213. package/lib/commonjs/ai-components/suggestions/index.js +15 -0
  214. package/lib/commonjs/ai-components/suggestions/index.js.map +1 -0
  215. package/lib/commonjs/ai-components/syntax-highlighting/utils/flatten-nodes.js +2 -1
  216. package/lib/commonjs/ai-components/syntax-highlighting/utils/flatten-nodes.js.map +1 -1
  217. package/lib/commonjs/ai-components/syntax-highlighting/utils/renderer.js +3 -2
  218. package/lib/commonjs/ai-components/syntax-highlighting/utils/renderer.js.map +1 -1
  219. package/lib/commonjs/ai-components/theme.js +137 -1
  220. package/lib/commonjs/ai-components/theme.js.map +1 -1
  221. package/lib/commonjs/ai-components/tool-calls/AIClientIdentity.js +22 -0
  222. package/lib/commonjs/ai-components/tool-calls/AIClientIdentity.js.map +1 -0
  223. package/lib/commonjs/ai-components/tool-calls/AIClientToolRunner.js +109 -0
  224. package/lib/commonjs/ai-components/tool-calls/AIClientToolRunner.js.map +1 -0
  225. package/lib/commonjs/ai-components/tool-calls/AIToolApprover.js +23 -0
  226. package/lib/commonjs/ai-components/tool-calls/AIToolApprover.js.map +1 -0
  227. package/lib/commonjs/ai-components/tool-calls/authSessionAuthorizer.js +88 -0
  228. package/lib/commonjs/ai-components/tool-calls/authSessionAuthorizer.js.map +1 -0
  229. package/lib/commonjs/ai-components/tool-calls/index.js +48 -0
  230. package/lib/commonjs/ai-components/tool-calls/index.js.map +1 -0
  231. package/lib/commonjs/ai-components/voice-visualization/glowShader.js.map +1 -1
  232. package/lib/commonjs/components/Accessibility/useAccessibilityAnnouncer.js.map +1 -1
  233. package/lib/commonjs/components/Message/MessageItemView/utils/renderText.js.map +1 -1
  234. package/lib/commonjs/contexts/translationContext/TranslationContext.js +2 -2
  235. package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
  236. package/lib/commonjs/i18n/ar.json +39 -1
  237. package/lib/commonjs/i18n/en.json +39 -1
  238. package/lib/commonjs/i18n/es.json +39 -1
  239. package/lib/commonjs/i18n/fr.json +39 -1
  240. package/lib/commonjs/i18n/he.json +39 -1
  241. package/lib/commonjs/i18n/hi.json +39 -1
  242. package/lib/commonjs/i18n/it.json +39 -1
  243. package/lib/commonjs/i18n/ja.json +39 -1
  244. package/lib/commonjs/i18n/ko.json +39 -1
  245. package/lib/commonjs/i18n/nl.json +39 -1
  246. package/lib/commonjs/i18n/pt-br.json +39 -1
  247. package/lib/commonjs/i18n/ru.json +39 -1
  248. package/lib/commonjs/i18n/tr.json +39 -1
  249. package/lib/commonjs/mock-builders/a2ui/ohrid.js +84 -0
  250. package/lib/commonjs/mock-builders/a2ui/ohrid.js.map +1 -0
  251. package/lib/commonjs/utils/i18n/Streami18n.js +9 -4
  252. package/lib/commonjs/utils/i18n/Streami18n.js.map +1 -1
  253. package/lib/commonjs/utils/i18n/utils.js +7 -0
  254. package/lib/commonjs/utils/i18n/utils.js.map +1 -0
  255. package/lib/commonjs/version.json +1 -1
  256. package/lib/module/a11y/a11yUtils.js.map +1 -1
  257. package/lib/module/a11y/hooks/useResolvedModalAccessibilityProps.js.map +1 -1
  258. package/lib/module/a2ui/A2UIContexts.js +8 -0
  259. package/lib/module/a2ui/A2UIContexts.js.map +1 -0
  260. package/lib/module/a2ui/A2UIInstructions.js +49 -0
  261. package/lib/module/a2ui/A2UIInstructions.js.map +1 -0
  262. package/lib/module/a2ui/A2UIPlaceholder.js +37 -0
  263. package/lib/module/a2ui/A2UIPlaceholder.js.map +1 -0
  264. package/lib/module/a2ui/A2UIRenderer.js +363 -0
  265. package/lib/module/a2ui/A2UIRenderer.js.map +1 -0
  266. package/lib/module/a2ui/A2UIStream.js +91 -0
  267. package/lib/module/a2ui/A2UIStream.js.map +1 -0
  268. package/lib/module/a2ui/A2UISurface.js +212 -0
  269. package/lib/module/a2ui/A2UISurface.js.map +1 -0
  270. package/lib/module/a2ui/basicCatalog.json +1206 -0
  271. package/lib/module/a2ui/basicFunctions.js +398 -0
  272. package/lib/module/a2ui/basicFunctions.js.map +1 -0
  273. package/lib/module/a2ui/catalogDocument.js +80 -0
  274. package/lib/module/a2ui/catalogDocument.js.map +1 -0
  275. package/lib/module/a2ui/catalogs.js +105 -0
  276. package/lib/module/a2ui/catalogs.js.map +1 -0
  277. package/lib/module/a2ui/components/DateTimeInput.js +445 -0
  278. package/lib/module/a2ui/components/DateTimeInput.js.map +1 -0
  279. package/lib/module/a2ui/components/Media.js +316 -0
  280. package/lib/module/a2ui/components/Media.js.map +1 -0
  281. package/lib/module/a2ui/components/basicComponents.js +975 -0
  282. package/lib/module/a2ui/components/basicComponents.js.map +1 -0
  283. package/lib/module/a2ui/components/iconPaths.js +66 -0
  284. package/lib/module/a2ui/components/iconPaths.js.map +1 -0
  285. package/lib/module/a2ui/components/types.js +4 -0
  286. package/lib/module/a2ui/components/types.js.map +1 -0
  287. package/lib/module/a2ui/index.js +70 -0
  288. package/lib/module/a2ui/index.js.map +1 -0
  289. package/lib/module/a2ui/instructions.js +268 -0
  290. package/lib/module/a2ui/instructions.js.map +1 -0
  291. package/lib/module/a2ui/secrets.js +169 -0
  292. package/lib/module/a2ui/secrets.js.map +1 -0
  293. package/lib/module/a2ui/useReplyState.js +35 -0
  294. package/lib/module/a2ui/useReplyState.js.map +1 -0
  295. package/lib/module/ai-components/AITypingIndicatorView.js +8 -18
  296. package/lib/module/ai-components/AITypingIndicatorView.js.map +1 -1
  297. package/lib/module/ai-components/README.md +55 -3
  298. package/lib/module/ai-components/StreamingMessageView.js +26 -0
  299. package/lib/module/ai-components/StreamingMessageView.js.map +1 -1
  300. package/lib/module/ai-components/charts/components/PieLegend.js +2 -1
  301. package/lib/module/ai-components/charts/components/PieLegend.js.map +1 -1
  302. package/lib/module/ai-components/charts/components/VictoryChart.js +7 -2
  303. package/lib/module/ai-components/charts/components/VictoryChart.js.map +1 -1
  304. package/lib/module/ai-components/charts/utils/format-time-label.js +15 -0
  305. package/lib/module/ai-components/charts/utils/format-time-label.js.map +1 -0
  306. package/lib/module/ai-components/charts/vega-lite/schema.js +17 -2
  307. package/lib/module/ai-components/charts/vega-lite/schema.js.map +1 -1
  308. package/lib/module/ai-components/contexts/composer-context.js +13 -6
  309. package/lib/module/ai-components/contexts/composer-context.js.map +1 -1
  310. package/lib/module/ai-components/contexts/index.js +11 -0
  311. package/lib/module/ai-components/contexts/index.js.map +1 -1
  312. package/lib/module/ai-components/contexts/theme-context.js +33 -2
  313. package/lib/module/ai-components/contexts/theme-context.js.map +1 -1
  314. package/lib/module/ai-components/contexts/translation-context.js +29 -0
  315. package/lib/module/ai-components/contexts/translation-context.js.map +1 -0
  316. package/lib/module/ai-components/conversation/AIConversation.js +366 -0
  317. package/lib/module/ai-components/conversation/AIConversation.js.map +1 -0
  318. package/lib/module/ai-components/conversation/controller/AIAgentError.js +13 -0
  319. package/lib/module/ai-components/conversation/controller/AIAgentError.js.map +1 -0
  320. package/lib/module/ai-components/conversation/controller/AIConversationController.js +425 -0
  321. package/lib/module/ai-components/conversation/controller/AIConversationController.js.map +1 -0
  322. package/lib/module/ai-components/conversation/controller/AIConversationExchange.js +89 -0
  323. package/lib/module/ai-components/conversation/controller/AIConversationExchange.js.map +1 -0
  324. package/lib/module/ai-components/conversation/controller/index.js +48 -0
  325. package/lib/module/ai-components/conversation/controller/index.js.map +1 -0
  326. package/lib/module/ai-components/conversation/controller/offers.js +29 -0
  327. package/lib/module/ai-components/conversation/controller/offers.js.map +1 -0
  328. package/lib/module/ai-components/conversation/controller/types.js +13 -0
  329. package/lib/module/ai-components/conversation/controller/types.js.map +1 -0
  330. package/lib/module/ai-components/conversation/controller/useAIConversationState.js +8 -0
  331. package/lib/module/ai-components/conversation/controller/useAIConversationState.js.map +1 -0
  332. package/lib/module/ai-components/conversation/entries.js +98 -0
  333. package/lib/module/ai-components/conversation/entries.js.map +1 -0
  334. package/lib/module/ai-components/conversation/fromStreamMessage.js +66 -0
  335. package/lib/module/ai-components/conversation/fromStreamMessage.js.map +1 -0
  336. package/lib/module/ai-components/conversation/index.js +48 -0
  337. package/lib/module/ai-components/conversation/index.js.map +1 -0
  338. package/lib/module/ai-components/conversation/list/AIChatList.js +224 -0
  339. package/lib/module/ai-components/conversation/list/AIChatList.js.map +1 -0
  340. package/lib/module/ai-components/conversation/list/useChatListController.js +78 -0
  341. package/lib/module/ai-components/conversation/list/useChatListController.js.map +1 -0
  342. package/lib/module/ai-components/conversation/list/useEndInView.js +51 -0
  343. package/lib/module/ai-components/conversation/list/useEndInView.js.map +1 -0
  344. package/lib/module/ai-components/conversation/list/useKeyboardOverlap.js +54 -0
  345. package/lib/module/ai-components/conversation/list/useKeyboardOverlap.js.map +1 -0
  346. package/lib/module/ai-components/conversation/list/useLoadOlder.js +73 -0
  347. package/lib/module/ai-components/conversation/list/useLoadOlder.js.map +1 -0
  348. package/lib/module/ai-components/conversation/list/usePinnedAnchor.js +84 -0
  349. package/lib/module/ai-components/conversation/list/usePinnedAnchor.js.map +1 -0
  350. package/lib/module/ai-components/conversation/types.js +4 -0
  351. package/lib/module/ai-components/conversation/types.js.map +1 -0
  352. package/lib/module/ai-components/conversation/useConversationRows.js +117 -0
  353. package/lib/module/ai-components/conversation/useConversationRows.js.map +1 -0
  354. package/lib/module/ai-components/generative-ui/AIUIAction.js +30 -0
  355. package/lib/module/ai-components/generative-ui/AIUIAction.js.map +1 -0
  356. package/lib/module/ai-components/generative-ui/AIUIArguments.js +128 -0
  357. package/lib/module/ai-components/generative-ui/AIUIArguments.js.map +1 -0
  358. package/lib/module/ai-components/generative-ui/AIUIComponent.js +50 -0
  359. package/lib/module/ai-components/generative-ui/AIUIComponent.js.map +1 -0
  360. package/lib/module/ai-components/generative-ui/AIUIComponentDefinition.js +134 -0
  361. package/lib/module/ai-components/generative-ui/AIUIComponentDefinition.js.map +1 -0
  362. package/lib/module/ai-components/generative-ui/AIUIDocument.js +32 -0
  363. package/lib/module/ai-components/generative-ui/AIUIDocument.js.map +1 -0
  364. package/lib/module/ai-components/generative-ui/AIUIEntrance.js +193 -0
  365. package/lib/module/ai-components/generative-ui/AIUIEntrance.js.map +1 -0
  366. package/lib/module/ai-components/generative-ui/AIUIErrorBoundary.js +30 -0
  367. package/lib/module/ai-components/generative-ui/AIUIErrorBoundary.js.map +1 -0
  368. package/lib/module/ai-components/generative-ui/AIUIHelpers.js +54 -0
  369. package/lib/module/ai-components/generative-ui/AIUIHelpers.js.map +1 -0
  370. package/lib/module/ai-components/generative-ui/AIUIHost.js +259 -0
  371. package/lib/module/ai-components/generative-ui/AIUIHost.js.map +1 -0
  372. package/lib/module/ai-components/generative-ui/AIUIMedia.js +24 -0
  373. package/lib/module/ai-components/generative-ui/AIUIMedia.js.map +1 -0
  374. package/lib/module/ai-components/generative-ui/AIUIRenderer.js +10 -0
  375. package/lib/module/ai-components/generative-ui/AIUIRenderer.js.map +1 -0
  376. package/lib/module/ai-components/generative-ui/AIUIView.js +57 -0
  377. package/lib/module/ai-components/generative-ui/AIUIView.js.map +1 -0
  378. package/lib/module/ai-components/generative-ui/index.js +181 -0
  379. package/lib/module/ai-components/generative-ui/index.js.map +1 -0
  380. package/lib/module/ai-components/icons.js +44 -0
  381. package/lib/module/ai-components/icons.js.map +1 -0
  382. package/lib/module/ai-components/index.js +96 -0
  383. package/lib/module/ai-components/index.js.map +1 -1
  384. package/lib/module/ai-components/internal/Shimmer.js +36 -0
  385. package/lib/module/ai-components/internal/Shimmer.js.map +1 -0
  386. package/lib/module/ai-components/internal/format.js +66 -0
  387. package/lib/module/ai-components/internal/format.js.map +1 -0
  388. package/lib/module/ai-components/internal/hooks/useBottomSafeArea.js +12 -0
  389. package/lib/module/ai-components/internal/hooks/useBottomSafeArea.js.map +1 -0
  390. package/lib/module/ai-components/internal/icons/AgentIcons.js +74 -0
  391. package/lib/module/ai-components/internal/icons/AgentIcons.js.map +1 -0
  392. package/lib/module/ai-components/internal/tokens.js +11 -0
  393. package/lib/module/ai-components/internal/tokens.js.map +1 -0
  394. package/lib/module/ai-components/internal/uuid.js +21 -0
  395. package/lib/module/ai-components/internal/uuid.js.map +1 -0
  396. package/lib/module/ai-components/markdown/components/CodeBlock.js +4 -2
  397. package/lib/module/ai-components/markdown/components/CodeBlock.js.map +1 -1
  398. package/lib/module/ai-components/markdown/components/InlineCode.js +1 -0
  399. package/lib/module/ai-components/markdown/components/InlineCode.js.map +1 -1
  400. package/lib/module/ai-components/markdown/components/Text.js +11 -2
  401. package/lib/module/ai-components/markdown/components/Text.js.map +1 -1
  402. package/lib/module/ai-components/markdown/styles.js +27 -29
  403. package/lib/module/ai-components/markdown/styles.js.map +1 -1
  404. package/lib/module/ai-components/message/AIAssistantMessage.js +63 -0
  405. package/lib/module/ai-components/message/AIAssistantMessage.js.map +1 -0
  406. package/lib/module/ai-components/message/AIMessageAttachment.js +189 -0
  407. package/lib/module/ai-components/message/AIMessageAttachment.js.map +1 -0
  408. package/lib/module/ai-components/message/AIReplyActions.js +132 -0
  409. package/lib/module/ai-components/message/AIReplyActions.js.map +1 -0
  410. package/lib/module/ai-components/message/AIUserMessage.js +104 -0
  411. package/lib/module/ai-components/message/AIUserMessage.js.map +1 -0
  412. package/lib/module/ai-components/message/UserMessageMenu.js +150 -0
  413. package/lib/module/ai-components/message/UserMessageMenu.js.map +1 -0
  414. package/lib/module/ai-components/message/index.js +48 -0
  415. package/lib/module/ai-components/message/index.js.map +1 -0
  416. package/lib/module/ai-components/message-composer/ActionButton.js +2 -1
  417. package/lib/module/ai-components/message-composer/ActionButton.js.map +1 -1
  418. package/lib/module/ai-components/message-composer/ActionSheet.js +22 -6
  419. package/lib/module/ai-components/message-composer/ActionSheet.js.map +1 -1
  420. package/lib/module/ai-components/message-composer/AttachmentButton.js +5 -1
  421. package/lib/module/ai-components/message-composer/AttachmentButton.js.map +1 -1
  422. package/lib/module/ai-components/message-composer/ChatOptions.js +147 -0
  423. package/lib/module/ai-components/message-composer/ChatOptions.js.map +1 -0
  424. package/lib/module/ai-components/message-composer/ComposerView.js +136 -20
  425. package/lib/module/ai-components/message-composer/ComposerView.js.map +1 -1
  426. package/lib/module/ai-components/message-composer/EditingMessageChip.js +80 -0
  427. package/lib/module/ai-components/message-composer/EditingMessageChip.js.map +1 -0
  428. package/lib/module/ai-components/message-composer/MediaPreviewList.js +26 -1
  429. package/lib/module/ai-components/message-composer/MediaPreviewList.js.map +1 -1
  430. package/lib/module/ai-components/message-composer/index.js +11 -0
  431. package/lib/module/ai-components/message-composer/index.js.map +1 -1
  432. package/lib/module/ai-components/message-parts/AIMessageParts.js +110 -0
  433. package/lib/module/ai-components/message-parts/AIMessageParts.js.map +1 -0
  434. package/lib/module/ai-components/message-parts/AIToolApproval.js +197 -0
  435. package/lib/module/ai-components/message-parts/AIToolApproval.js.map +1 -0
  436. package/lib/module/ai-components/message-parts/AIToolAuthorization.js +250 -0
  437. package/lib/module/ai-components/message-parts/AIToolAuthorization.js.map +1 -0
  438. package/lib/module/ai-components/message-parts/AIToolCall.js +159 -0
  439. package/lib/module/ai-components/message-parts/AIToolCall.js.map +1 -0
  440. package/lib/module/ai-components/message-parts/callStates.js +54 -0
  441. package/lib/module/ai-components/message-parts/callStates.js.map +1 -0
  442. package/lib/module/ai-components/message-parts/index.js +70 -0
  443. package/lib/module/ai-components/message-parts/index.js.map +1 -0
  444. package/lib/module/ai-components/message-parts/parseMessageParts.js +126 -0
  445. package/lib/module/ai-components/message-parts/parseMessageParts.js.map +1 -0
  446. package/lib/module/ai-components/message-parts/types.js +2 -0
  447. package/lib/module/ai-components/message-parts/types.js.map +1 -0
  448. package/lib/module/ai-components/native-specs/NativeAIAgent.js +7 -0
  449. package/lib/module/ai-components/native-specs/NativeAIAgent.js.map +1 -0
  450. package/lib/module/ai-components/reasoning/AIReasoning.js +401 -0
  451. package/lib/module/ai-components/reasoning/AIReasoning.js.map +1 -0
  452. package/lib/module/ai-components/reasoning/index.js +26 -0
  453. package/lib/module/ai-components/reasoning/index.js.map +1 -0
  454. package/lib/module/ai-components/reasoning/thinkingClock.js +63 -0
  455. package/lib/module/ai-components/reasoning/thinkingClock.js.map +1 -0
  456. package/lib/module/ai-components/services/clipboard-service/expo.js +7 -2
  457. package/lib/module/ai-components/services/clipboard-service/expo.js.map +1 -1
  458. package/lib/module/ai-components/store/composer/store.js.map +1 -1
  459. package/lib/module/ai-components/store/composer/useComposerChatOption.js +18 -0
  460. package/lib/module/ai-components/store/composer/useComposerChatOption.js.map +1 -0
  461. package/lib/module/ai-components/store/composer/useComposerIsEditing.js +18 -0
  462. package/lib/module/ai-components/store/composer/useComposerIsEditing.js.map +1 -0
  463. package/lib/module/ai-components/store/index.js +22 -0
  464. package/lib/module/ai-components/store/index.js.map +1 -1
  465. package/lib/module/ai-components/suggestions/AISuggestions.js +66 -0
  466. package/lib/module/ai-components/suggestions/AISuggestions.js.map +1 -0
  467. package/lib/module/ai-components/suggestions/index.js +15 -0
  468. package/lib/module/ai-components/suggestions/index.js.map +1 -0
  469. package/lib/module/ai-components/syntax-highlighting/utils/flatten-nodes.js +2 -1
  470. package/lib/module/ai-components/syntax-highlighting/utils/flatten-nodes.js.map +1 -1
  471. package/lib/module/ai-components/syntax-highlighting/utils/renderer.js +3 -2
  472. package/lib/module/ai-components/syntax-highlighting/utils/renderer.js.map +1 -1
  473. package/lib/module/ai-components/theme.js +137 -1
  474. package/lib/module/ai-components/theme.js.map +1 -1
  475. package/lib/module/ai-components/tool-calls/AIClientIdentity.js +22 -0
  476. package/lib/module/ai-components/tool-calls/AIClientIdentity.js.map +1 -0
  477. package/lib/module/ai-components/tool-calls/AIClientToolRunner.js +109 -0
  478. package/lib/module/ai-components/tool-calls/AIClientToolRunner.js.map +1 -0
  479. package/lib/module/ai-components/tool-calls/AIToolApprover.js +23 -0
  480. package/lib/module/ai-components/tool-calls/AIToolApprover.js.map +1 -0
  481. package/lib/module/ai-components/tool-calls/authSessionAuthorizer.js +88 -0
  482. package/lib/module/ai-components/tool-calls/authSessionAuthorizer.js.map +1 -0
  483. package/lib/module/ai-components/tool-calls/index.js +48 -0
  484. package/lib/module/ai-components/tool-calls/index.js.map +1 -0
  485. package/lib/module/ai-components/voice-visualization/glowShader.js.map +1 -1
  486. package/lib/module/components/Accessibility/useAccessibilityAnnouncer.js.map +1 -1
  487. package/lib/module/components/Message/MessageItemView/utils/renderText.js.map +1 -1
  488. package/lib/module/contexts/translationContext/TranslationContext.js +2 -2
  489. package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
  490. package/lib/module/i18n/ar.json +39 -1
  491. package/lib/module/i18n/en.json +39 -1
  492. package/lib/module/i18n/es.json +39 -1
  493. package/lib/module/i18n/fr.json +39 -1
  494. package/lib/module/i18n/he.json +39 -1
  495. package/lib/module/i18n/hi.json +39 -1
  496. package/lib/module/i18n/it.json +39 -1
  497. package/lib/module/i18n/ja.json +39 -1
  498. package/lib/module/i18n/ko.json +39 -1
  499. package/lib/module/i18n/nl.json +39 -1
  500. package/lib/module/i18n/pt-br.json +39 -1
  501. package/lib/module/i18n/ru.json +39 -1
  502. package/lib/module/i18n/tr.json +39 -1
  503. package/lib/module/mock-builders/a2ui/ohrid.js +84 -0
  504. package/lib/module/mock-builders/a2ui/ohrid.js.map +1 -0
  505. package/lib/module/utils/i18n/Streami18n.js +9 -4
  506. package/lib/module/utils/i18n/Streami18n.js.map +1 -1
  507. package/lib/module/utils/i18n/utils.js +7 -0
  508. package/lib/module/utils/i18n/utils.js.map +1 -0
  509. package/lib/module/version.json +1 -1
  510. package/lib/typescript/a11y/a11yUtils.d.ts +0 -1
  511. package/lib/typescript/a11y/a11yUtils.d.ts.map +1 -1
  512. package/lib/typescript/a11y/hooks/useResolvedModalAccessibilityProps.d.ts +2 -3
  513. package/lib/typescript/a11y/hooks/useResolvedModalAccessibilityProps.d.ts.map +1 -1
  514. package/lib/typescript/a2ui/A2UIContexts.d.ts +9 -0
  515. package/lib/typescript/a2ui/A2UIContexts.d.ts.map +1 -0
  516. package/lib/typescript/a2ui/A2UIInstructions.d.ts +47 -0
  517. package/lib/typescript/a2ui/A2UIInstructions.d.ts.map +1 -0
  518. package/lib/typescript/a2ui/A2UIPlaceholder.d.ts +4 -0
  519. package/lib/typescript/a2ui/A2UIPlaceholder.d.ts.map +1 -0
  520. package/lib/typescript/a2ui/A2UIRenderer.d.ts +130 -0
  521. package/lib/typescript/a2ui/A2UIRenderer.d.ts.map +1 -0
  522. package/lib/typescript/a2ui/A2UIStream.d.ts +23 -0
  523. package/lib/typescript/a2ui/A2UIStream.d.ts.map +1 -0
  524. package/lib/typescript/a2ui/A2UISurface.d.ts +19 -0
  525. package/lib/typescript/a2ui/A2UISurface.d.ts.map +1 -0
  526. package/lib/typescript/a2ui/basicFunctions.d.ts +10 -0
  527. package/lib/typescript/a2ui/basicFunctions.d.ts.map +1 -0
  528. package/lib/typescript/a2ui/catalogDocument.d.ts +56 -0
  529. package/lib/typescript/a2ui/catalogDocument.d.ts.map +1 -0
  530. package/lib/typescript/a2ui/catalogs.d.ts +42 -0
  531. package/lib/typescript/a2ui/catalogs.d.ts.map +1 -0
  532. package/lib/typescript/a2ui/components/DateTimeInput.d.ts +44 -0
  533. package/lib/typescript/a2ui/components/DateTimeInput.d.ts.map +1 -0
  534. package/lib/typescript/a2ui/components/Media.d.ts +27 -0
  535. package/lib/typescript/a2ui/components/Media.d.ts.map +1 -0
  536. package/lib/typescript/a2ui/components/basicComponents.d.ts +4 -0
  537. package/lib/typescript/a2ui/components/basicComponents.d.ts.map +1 -0
  538. package/lib/typescript/a2ui/components/iconPaths.d.ts +2 -0
  539. package/lib/typescript/a2ui/components/iconPaths.d.ts.map +1 -0
  540. package/lib/typescript/a2ui/components/types.d.ts +23 -0
  541. package/lib/typescript/a2ui/components/types.d.ts.map +1 -0
  542. package/lib/typescript/a2ui/index.d.ts +8 -0
  543. package/lib/typescript/a2ui/index.d.ts.map +1 -0
  544. package/lib/typescript/a2ui/instructions.d.ts +39 -0
  545. package/lib/typescript/a2ui/instructions.d.ts.map +1 -0
  546. package/lib/typescript/a2ui/secrets.d.ts +20 -0
  547. package/lib/typescript/a2ui/secrets.d.ts.map +1 -0
  548. package/lib/typescript/a2ui/useReplyState.d.ts +4 -0
  549. package/lib/typescript/a2ui/useReplyState.d.ts.map +1 -0
  550. package/lib/typescript/ai-components/AITypingIndicatorView.d.ts.map +1 -1
  551. package/lib/typescript/ai-components/StreamingMessageView.d.ts +4 -1
  552. package/lib/typescript/ai-components/StreamingMessageView.d.ts.map +1 -1
  553. package/lib/typescript/ai-components/charts/components/PieLegend.d.ts.map +1 -1
  554. package/lib/typescript/ai-components/charts/components/VictoryChart.d.ts.map +1 -1
  555. package/lib/typescript/ai-components/charts/utils/format-time-label.d.ts +7 -0
  556. package/lib/typescript/ai-components/charts/utils/format-time-label.d.ts.map +1 -0
  557. package/lib/typescript/ai-components/charts/vega-lite/schema.d.ts +8 -8
  558. package/lib/typescript/ai-components/charts/vega-lite/schema.d.ts.map +1 -1
  559. package/lib/typescript/ai-components/contexts/composer-context.d.ts +3 -0
  560. package/lib/typescript/ai-components/contexts/composer-context.d.ts.map +1 -1
  561. package/lib/typescript/ai-components/contexts/index.d.ts +1 -0
  562. package/lib/typescript/ai-components/contexts/index.d.ts.map +1 -1
  563. package/lib/typescript/ai-components/contexts/theme-context.d.ts.map +1 -1
  564. package/lib/typescript/ai-components/contexts/translation-context.d.ts +19 -0
  565. package/lib/typescript/ai-components/contexts/translation-context.d.ts.map +1 -0
  566. package/lib/typescript/ai-components/conversation/AIConversation.d.ts +130 -0
  567. package/lib/typescript/ai-components/conversation/AIConversation.d.ts.map +1 -0
  568. package/lib/typescript/ai-components/conversation/controller/AIAgentError.d.ts +10 -0
  569. package/lib/typescript/ai-components/conversation/controller/AIAgentError.d.ts.map +1 -0
  570. package/lib/typescript/ai-components/conversation/controller/AIConversationController.d.ts +173 -0
  571. package/lib/typescript/ai-components/conversation/controller/AIConversationController.d.ts.map +1 -0
  572. package/lib/typescript/ai-components/conversation/controller/AIConversationExchange.d.ts +23 -0
  573. package/lib/typescript/ai-components/conversation/controller/AIConversationExchange.d.ts.map +1 -0
  574. package/lib/typescript/ai-components/conversation/controller/index.d.ts +5 -0
  575. package/lib/typescript/ai-components/conversation/controller/index.d.ts.map +1 -0
  576. package/lib/typescript/ai-components/conversation/controller/offers.d.ts +23 -0
  577. package/lib/typescript/ai-components/conversation/controller/offers.d.ts.map +1 -0
  578. package/lib/typescript/ai-components/conversation/controller/types.d.ts +142 -0
  579. package/lib/typescript/ai-components/conversation/controller/types.d.ts.map +1 -0
  580. package/lib/typescript/ai-components/conversation/controller/useAIConversationState.d.ts +9 -0
  581. package/lib/typescript/ai-components/conversation/controller/useAIConversationState.d.ts.map +1 -0
  582. package/lib/typescript/ai-components/conversation/entries.d.ts +47 -0
  583. package/lib/typescript/ai-components/conversation/entries.d.ts.map +1 -0
  584. package/lib/typescript/ai-components/conversation/fromStreamMessage.d.ts +25 -0
  585. package/lib/typescript/ai-components/conversation/fromStreamMessage.d.ts.map +1 -0
  586. package/lib/typescript/ai-components/conversation/index.d.ts +6 -0
  587. package/lib/typescript/ai-components/conversation/index.d.ts.map +1 -0
  588. package/lib/typescript/ai-components/conversation/list/AIChatList.d.ts +30 -0
  589. package/lib/typescript/ai-components/conversation/list/AIChatList.d.ts.map +1 -0
  590. package/lib/typescript/ai-components/conversation/list/useChatListController.d.ts +45 -0
  591. package/lib/typescript/ai-components/conversation/list/useChatListController.d.ts.map +1 -0
  592. package/lib/typescript/ai-components/conversation/list/useEndInView.d.ts +26 -0
  593. package/lib/typescript/ai-components/conversation/list/useEndInView.d.ts.map +1 -0
  594. package/lib/typescript/ai-components/conversation/list/useKeyboardOverlap.d.ts +17 -0
  595. package/lib/typescript/ai-components/conversation/list/useKeyboardOverlap.d.ts.map +1 -0
  596. package/lib/typescript/ai-components/conversation/list/useLoadOlder.d.ts +24 -0
  597. package/lib/typescript/ai-components/conversation/list/useLoadOlder.d.ts.map +1 -0
  598. package/lib/typescript/ai-components/conversation/list/usePinnedAnchor.d.ts +26 -0
  599. package/lib/typescript/ai-components/conversation/list/usePinnedAnchor.d.ts.map +1 -0
  600. package/lib/typescript/ai-components/conversation/types.d.ts +55 -0
  601. package/lib/typescript/ai-components/conversation/types.d.ts.map +1 -0
  602. package/lib/typescript/ai-components/conversation/useConversationRows.d.ts +66 -0
  603. package/lib/typescript/ai-components/conversation/useConversationRows.d.ts.map +1 -0
  604. package/lib/typescript/ai-components/generative-ui/AIUIAction.d.ts +48 -0
  605. package/lib/typescript/ai-components/generative-ui/AIUIAction.d.ts.map +1 -0
  606. package/lib/typescript/ai-components/generative-ui/AIUIArguments.d.ts +15 -0
  607. package/lib/typescript/ai-components/generative-ui/AIUIArguments.d.ts.map +1 -0
  608. package/lib/typescript/ai-components/generative-ui/AIUIComponent.d.ts +51 -0
  609. package/lib/typescript/ai-components/generative-ui/AIUIComponent.d.ts.map +1 -0
  610. package/lib/typescript/ai-components/generative-ui/AIUIComponentDefinition.d.ts +84 -0
  611. package/lib/typescript/ai-components/generative-ui/AIUIComponentDefinition.d.ts.map +1 -0
  612. package/lib/typescript/ai-components/generative-ui/AIUIDocument.d.ts +50 -0
  613. package/lib/typescript/ai-components/generative-ui/AIUIDocument.d.ts.map +1 -0
  614. package/lib/typescript/ai-components/generative-ui/AIUIEntrance.d.ts +75 -0
  615. package/lib/typescript/ai-components/generative-ui/AIUIEntrance.d.ts.map +1 -0
  616. package/lib/typescript/ai-components/generative-ui/AIUIErrorBoundary.d.ts +26 -0
  617. package/lib/typescript/ai-components/generative-ui/AIUIErrorBoundary.d.ts.map +1 -0
  618. package/lib/typescript/ai-components/generative-ui/AIUIHelpers.d.ts +23 -0
  619. package/lib/typescript/ai-components/generative-ui/AIUIHelpers.d.ts.map +1 -0
  620. package/lib/typescript/ai-components/generative-ui/AIUIHost.d.ts +160 -0
  621. package/lib/typescript/ai-components/generative-ui/AIUIHost.d.ts.map +1 -0
  622. package/lib/typescript/ai-components/generative-ui/AIUIMedia.d.ts +22 -0
  623. package/lib/typescript/ai-components/generative-ui/AIUIMedia.d.ts.map +1 -0
  624. package/lib/typescript/ai-components/generative-ui/AIUIRenderer.d.ts +53 -0
  625. package/lib/typescript/ai-components/generative-ui/AIUIRenderer.d.ts.map +1 -0
  626. package/lib/typescript/ai-components/generative-ui/AIUIView.d.ts +35 -0
  627. package/lib/typescript/ai-components/generative-ui/AIUIView.d.ts.map +1 -0
  628. package/lib/typescript/ai-components/generative-ui/index.d.ts +11 -0
  629. package/lib/typescript/ai-components/generative-ui/index.d.ts.map +1 -0
  630. package/lib/typescript/ai-components/icons.d.ts +66 -0
  631. package/lib/typescript/ai-components/icons.d.ts.map +1 -0
  632. package/lib/typescript/ai-components/index.d.ts +8 -0
  633. package/lib/typescript/ai-components/index.d.ts.map +1 -1
  634. package/lib/typescript/ai-components/internal/Shimmer.d.ts +14 -0
  635. package/lib/typescript/ai-components/internal/Shimmer.d.ts.map +1 -0
  636. package/lib/typescript/ai-components/internal/format.d.ts +7 -0
  637. package/lib/typescript/ai-components/internal/format.d.ts.map +1 -0
  638. package/lib/typescript/ai-components/internal/hooks/useBottomSafeArea.d.ts +3 -0
  639. package/lib/typescript/ai-components/internal/hooks/useBottomSafeArea.d.ts.map +1 -0
  640. package/lib/typescript/ai-components/internal/icons/AgentIcons.d.ts +31 -0
  641. package/lib/typescript/ai-components/internal/icons/AgentIcons.d.ts.map +1 -0
  642. package/lib/typescript/ai-components/internal/tokens.d.ts +2 -0
  643. package/lib/typescript/ai-components/internal/tokens.d.ts.map +1 -0
  644. package/lib/typescript/ai-components/internal/uuid.d.ts +2 -0
  645. package/lib/typescript/ai-components/internal/uuid.d.ts.map +1 -0
  646. package/lib/typescript/ai-components/markdown/components/CodeBlock.d.ts.map +1 -1
  647. package/lib/typescript/ai-components/markdown/components/InlineCode.d.ts.map +1 -1
  648. package/lib/typescript/ai-components/markdown/components/Text.d.ts.map +1 -1
  649. package/lib/typescript/ai-components/markdown/styles.d.ts +23 -4
  650. package/lib/typescript/ai-components/markdown/styles.d.ts.map +1 -1
  651. package/lib/typescript/ai-components/markdown/types.d.ts +1 -0
  652. package/lib/typescript/ai-components/markdown/types.d.ts.map +1 -1
  653. package/lib/typescript/ai-components/message/AIAssistantMessage.d.ts +40 -0
  654. package/lib/typescript/ai-components/message/AIAssistantMessage.d.ts.map +1 -0
  655. package/lib/typescript/ai-components/message/AIMessageAttachment.d.ts +33 -0
  656. package/lib/typescript/ai-components/message/AIMessageAttachment.d.ts.map +1 -0
  657. package/lib/typescript/ai-components/message/AIReplyActions.d.ts +19 -0
  658. package/lib/typescript/ai-components/message/AIReplyActions.d.ts.map +1 -0
  659. package/lib/typescript/ai-components/message/AIUserMessage.d.ts +17 -0
  660. package/lib/typescript/ai-components/message/AIUserMessage.d.ts.map +1 -0
  661. package/lib/typescript/ai-components/message/UserMessageMenu.d.ts +31 -0
  662. package/lib/typescript/ai-components/message/UserMessageMenu.d.ts.map +1 -0
  663. package/lib/typescript/ai-components/message/index.d.ts +5 -0
  664. package/lib/typescript/ai-components/message/index.d.ts.map +1 -0
  665. package/lib/typescript/ai-components/message-composer/ActionButton.d.ts.map +1 -1
  666. package/lib/typescript/ai-components/message-composer/ActionSheet.d.ts +2 -2
  667. package/lib/typescript/ai-components/message-composer/ActionSheet.d.ts.map +1 -1
  668. package/lib/typescript/ai-components/message-composer/AttachmentButton.d.ts.map +1 -1
  669. package/lib/typescript/ai-components/message-composer/ChatOptions.d.ts +35 -0
  670. package/lib/typescript/ai-components/message-composer/ChatOptions.d.ts.map +1 -0
  671. package/lib/typescript/ai-components/message-composer/ComposerView.d.ts +34 -3
  672. package/lib/typescript/ai-components/message-composer/ComposerView.d.ts.map +1 -1
  673. package/lib/typescript/ai-components/message-composer/EditingMessageChip.d.ts +7 -0
  674. package/lib/typescript/ai-components/message-composer/EditingMessageChip.d.ts.map +1 -0
  675. package/lib/typescript/ai-components/message-composer/MediaPreviewList.d.ts.map +1 -1
  676. package/lib/typescript/ai-components/message-composer/index.d.ts +1 -0
  677. package/lib/typescript/ai-components/message-composer/index.d.ts.map +1 -1
  678. package/lib/typescript/ai-components/message-parts/AIMessageParts.d.ts +38 -0
  679. package/lib/typescript/ai-components/message-parts/AIMessageParts.d.ts.map +1 -0
  680. package/lib/typescript/ai-components/message-parts/AIToolApproval.d.ts +38 -0
  681. package/lib/typescript/ai-components/message-parts/AIToolApproval.d.ts.map +1 -0
  682. package/lib/typescript/ai-components/message-parts/AIToolAuthorization.d.ts +48 -0
  683. package/lib/typescript/ai-components/message-parts/AIToolAuthorization.d.ts.map +1 -0
  684. package/lib/typescript/ai-components/message-parts/AIToolCall.d.ts +11 -0
  685. package/lib/typescript/ai-components/message-parts/AIToolCall.d.ts.map +1 -0
  686. package/lib/typescript/ai-components/message-parts/callStates.d.ts +9 -0
  687. package/lib/typescript/ai-components/message-parts/callStates.d.ts.map +1 -0
  688. package/lib/typescript/ai-components/message-parts/index.d.ts +7 -0
  689. package/lib/typescript/ai-components/message-parts/index.d.ts.map +1 -0
  690. package/lib/typescript/ai-components/message-parts/parseMessageParts.d.ts +47 -0
  691. package/lib/typescript/ai-components/message-parts/parseMessageParts.d.ts.map +1 -0
  692. package/lib/typescript/ai-components/message-parts/types.d.ts +137 -0
  693. package/lib/typescript/ai-components/message-parts/types.d.ts.map +1 -0
  694. package/lib/typescript/ai-components/native-specs/NativeAIAgent.d.ts +22 -0
  695. package/lib/typescript/ai-components/native-specs/NativeAIAgent.d.ts.map +1 -0
  696. package/lib/typescript/ai-components/reasoning/AIReasoning.d.ts +63 -0
  697. package/lib/typescript/ai-components/reasoning/AIReasoning.d.ts.map +1 -0
  698. package/lib/typescript/ai-components/reasoning/index.d.ts +3 -0
  699. package/lib/typescript/ai-components/reasoning/index.d.ts.map +1 -0
  700. package/lib/typescript/ai-components/reasoning/thinkingClock.d.ts +29 -0
  701. package/lib/typescript/ai-components/reasoning/thinkingClock.d.ts.map +1 -0
  702. package/lib/typescript/ai-components/services/clipboard-service/expo.d.ts.map +1 -1
  703. package/lib/typescript/ai-components/store/composer/store.d.ts +8 -0
  704. package/lib/typescript/ai-components/store/composer/store.d.ts.map +1 -1
  705. package/lib/typescript/ai-components/store/composer/useComposerChatOption.d.ts +5 -0
  706. package/lib/typescript/ai-components/store/composer/useComposerChatOption.d.ts.map +1 -0
  707. package/lib/typescript/ai-components/store/composer/useComposerIsEditing.d.ts +5 -0
  708. package/lib/typescript/ai-components/store/composer/useComposerIsEditing.d.ts.map +1 -0
  709. package/lib/typescript/ai-components/store/index.d.ts +2 -0
  710. package/lib/typescript/ai-components/store/index.d.ts.map +1 -1
  711. package/lib/typescript/ai-components/suggestions/AISuggestions.d.ts +13 -0
  712. package/lib/typescript/ai-components/suggestions/AISuggestions.d.ts.map +1 -0
  713. package/lib/typescript/ai-components/suggestions/index.d.ts +2 -0
  714. package/lib/typescript/ai-components/suggestions/index.d.ts.map +1 -0
  715. package/lib/typescript/ai-components/syntax-highlighting/utils/flatten-nodes.d.ts.map +1 -1
  716. package/lib/typescript/ai-components/syntax-highlighting/utils/renderer.d.ts +1 -1
  717. package/lib/typescript/ai-components/syntax-highlighting/utils/renderer.d.ts.map +1 -1
  718. package/lib/typescript/ai-components/theme.d.ts +200 -0
  719. package/lib/typescript/ai-components/theme.d.ts.map +1 -1
  720. package/lib/typescript/ai-components/tool-calls/AIClientIdentity.d.ts +14 -0
  721. package/lib/typescript/ai-components/tool-calls/AIClientIdentity.d.ts.map +1 -0
  722. package/lib/typescript/ai-components/tool-calls/AIClientToolRunner.d.ts +109 -0
  723. package/lib/typescript/ai-components/tool-calls/AIClientToolRunner.d.ts.map +1 -0
  724. package/lib/typescript/ai-components/tool-calls/AIToolApprover.d.ts +48 -0
  725. package/lib/typescript/ai-components/tool-calls/AIToolApprover.d.ts.map +1 -0
  726. package/lib/typescript/ai-components/tool-calls/authSessionAuthorizer.d.ts +57 -0
  727. package/lib/typescript/ai-components/tool-calls/authSessionAuthorizer.d.ts.map +1 -0
  728. package/lib/typescript/ai-components/tool-calls/index.d.ts +5 -0
  729. package/lib/typescript/ai-components/tool-calls/index.d.ts.map +1 -0
  730. package/lib/typescript/ai-components/voice-visualization/glowShader.d.ts.map +1 -1
  731. package/lib/typescript/ai-components/voice-visualization/simplex.d.ts +1 -1
  732. package/lib/typescript/components/Accessibility/NotificationAnnouncer.d.ts +5 -5
  733. package/lib/typescript/components/Accessibility/hooks/useIncomingMessageAnnouncements.d.ts +1 -1
  734. package/lib/typescript/components/Accessibility/useAccessibilityAnnouncer.d.ts +0 -2
  735. package/lib/typescript/components/Accessibility/useAccessibilityAnnouncer.d.ts.map +1 -1
  736. package/lib/typescript/components/Message/MessageItemView/utils/renderText.d.ts.map +1 -1
  737. package/lib/typescript/contexts/translationContext/TranslationContext.d.ts +1 -1
  738. package/lib/typescript/contexts/translationContext/TranslationContext.d.ts.map +1 -1
  739. package/lib/typescript/i18n/ar.json +39 -1
  740. package/lib/typescript/i18n/en.json +39 -1
  741. package/lib/typescript/i18n/es.json +39 -1
  742. package/lib/typescript/i18n/fr.json +39 -1
  743. package/lib/typescript/i18n/he.json +39 -1
  744. package/lib/typescript/i18n/hi.json +39 -1
  745. package/lib/typescript/i18n/it.json +39 -1
  746. package/lib/typescript/i18n/ja.json +39 -1
  747. package/lib/typescript/i18n/ko.json +39 -1
  748. package/lib/typescript/i18n/nl.json +39 -1
  749. package/lib/typescript/i18n/pt-br.json +39 -1
  750. package/lib/typescript/i18n/ru.json +39 -1
  751. package/lib/typescript/i18n/tr.json +39 -1
  752. package/lib/typescript/utils/i18n/Streami18n.d.ts +40 -2
  753. package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
  754. package/lib/typescript/utils/i18n/utils.d.ts +3 -0
  755. package/lib/typescript/utils/i18n/utils.d.ts.map +1 -0
  756. package/package.json +10 -2
  757. package/src/a11y/a11yUtils.ts +0 -1
  758. package/src/a11y/hooks/useResolvedModalAccessibilityProps.ts +2 -3
  759. package/src/a2ui/A2UIContexts.ts +15 -0
  760. package/src/a2ui/A2UIInstructions.ts +102 -0
  761. package/src/a2ui/A2UIPlaceholder.tsx +24 -0
  762. package/src/a2ui/A2UIRenderer.tsx +504 -0
  763. package/src/a2ui/A2UIStream.ts +105 -0
  764. package/src/a2ui/A2UISurface.tsx +241 -0
  765. package/src/a2ui/__tests__/A2UIInstructions.test.ts +233 -0
  766. package/src/a2ui/__tests__/A2UIRenderer.test.tsx +1514 -0
  767. package/src/a2ui/__tests__/conformance.test.ts +579 -0
  768. package/src/a2ui/basicCatalog.json +1206 -0
  769. package/src/a2ui/basicFunctions.ts +429 -0
  770. package/src/a2ui/catalogDocument.ts +119 -0
  771. package/src/a2ui/catalogs.ts +185 -0
  772. package/src/a2ui/components/DateTimeInput.tsx +381 -0
  773. package/src/a2ui/components/Media.tsx +278 -0
  774. package/src/a2ui/components/basicComponents.tsx +832 -0
  775. package/src/a2ui/components/iconPaths.ts +116 -0
  776. package/src/a2ui/components/types.ts +24 -0
  777. package/src/a2ui/index.ts +18 -0
  778. package/src/a2ui/instructions.ts +341 -0
  779. package/src/a2ui/secrets.ts +154 -0
  780. package/src/a2ui/useReplyState.ts +26 -0
  781. package/src/ai-components/AITypingIndicatorView.tsx +6 -22
  782. package/src/ai-components/README.md +55 -3
  783. package/src/ai-components/StreamingMessageView.tsx +27 -3
  784. package/src/ai-components/__tests__/ComposerView.test.tsx +227 -2
  785. package/src/ai-components/__tests__/Markdown.test.tsx +13 -0
  786. package/src/ai-components/__tests__/StreamingMessageView.test.tsx +69 -0
  787. package/src/ai-components/__tests__/charts.test.ts +75 -0
  788. package/src/ai-components/__tests__/clientToolRunner.test.ts +239 -0
  789. package/src/ai-components/__tests__/conversation.test.tsx +705 -0
  790. package/src/ai-components/__tests__/conversationController.test.ts +1561 -0
  791. package/src/ai-components/__tests__/conversationExchange.test.ts +187 -0
  792. package/src/ai-components/__tests__/conversationRows.test.ts +207 -0
  793. package/src/ai-components/__tests__/conversationUI.test.tsx +586 -0
  794. package/src/ai-components/__tests__/format.test.ts +32 -0
  795. package/src/ai-components/__tests__/generativeUI.test.ts +634 -0
  796. package/src/ai-components/__tests__/keyboard.test.ts +14 -0
  797. package/src/ai-components/__tests__/messagePartViews.test.tsx +343 -0
  798. package/src/ai-components/__tests__/messageParts.test.ts +336 -0
  799. package/src/ai-components/__tests__/messageViews.test.tsx +321 -0
  800. package/src/ai-components/__tests__/signIn.test.tsx +324 -0
  801. package/src/ai-components/__tests__/theme.test.tsx +18 -0
  802. package/src/ai-components/__tests__/translation.test.tsx +85 -0
  803. package/src/ai-components/__tests__/voiceDriver.test.ts +0 -3
  804. package/src/ai-components/__tests__/voicePalette.test.ts +1 -1
  805. package/src/ai-components/charts/components/PieLegend.tsx +2 -1
  806. package/src/ai-components/charts/components/VictoryChart.tsx +10 -2
  807. package/src/ai-components/charts/utils/format-time-label.ts +18 -0
  808. package/src/ai-components/charts/vega-lite/schema.ts +19 -2
  809. package/src/ai-components/contexts/composer-context.tsx +13 -5
  810. package/src/ai-components/contexts/index.ts +1 -0
  811. package/src/ai-components/contexts/theme-context.tsx +19 -4
  812. package/src/ai-components/contexts/translation-context.tsx +44 -0
  813. package/src/ai-components/conversation/AIConversation.tsx +590 -0
  814. package/src/ai-components/conversation/controller/AIAgentError.ts +14 -0
  815. package/src/ai-components/conversation/controller/AIConversationController.ts +623 -0
  816. package/src/ai-components/conversation/controller/AIConversationExchange.ts +132 -0
  817. package/src/ai-components/conversation/controller/index.ts +4 -0
  818. package/src/ai-components/conversation/controller/offers.ts +43 -0
  819. package/src/ai-components/conversation/controller/types.ts +154 -0
  820. package/src/ai-components/conversation/controller/useAIConversationState.ts +21 -0
  821. package/src/ai-components/conversation/entries.ts +177 -0
  822. package/src/ai-components/conversation/fromStreamMessage.ts +87 -0
  823. package/src/ai-components/conversation/index.ts +5 -0
  824. package/src/ai-components/conversation/list/AIChatList.tsx +227 -0
  825. package/src/ai-components/conversation/list/useChatListController.ts +91 -0
  826. package/src/ai-components/conversation/list/useEndInView.ts +61 -0
  827. package/src/ai-components/conversation/list/useKeyboardOverlap.ts +51 -0
  828. package/src/ai-components/conversation/list/useLoadOlder.ts +97 -0
  829. package/src/ai-components/conversation/list/usePinnedAnchor.ts +113 -0
  830. package/src/ai-components/conversation/types.ts +57 -0
  831. package/src/ai-components/conversation/useConversationRows.ts +230 -0
  832. package/src/ai-components/generative-ui/AIUIAction.ts +73 -0
  833. package/src/ai-components/generative-ui/AIUIArguments.ts +117 -0
  834. package/src/ai-components/generative-ui/AIUIComponent.tsx +106 -0
  835. package/src/ai-components/generative-ui/AIUIComponentDefinition.ts +163 -0
  836. package/src/ai-components/generative-ui/AIUIDocument.ts +77 -0
  837. package/src/ai-components/generative-ui/AIUIEntrance.tsx +223 -0
  838. package/src/ai-components/generative-ui/AIUIErrorBoundary.tsx +39 -0
  839. package/src/ai-components/generative-ui/AIUIHelpers.ts +86 -0
  840. package/src/ai-components/generative-ui/AIUIHost.ts +358 -0
  841. package/src/ai-components/generative-ui/AIUIMedia.ts +45 -0
  842. package/src/ai-components/generative-ui/AIUIRenderer.ts +60 -0
  843. package/src/ai-components/generative-ui/AIUIView.tsx +87 -0
  844. package/src/ai-components/generative-ui/index.ts +48 -0
  845. package/src/ai-components/icons.ts +101 -0
  846. package/src/ai-components/index.ts +10 -0
  847. package/src/ai-components/internal/Shimmer.tsx +40 -0
  848. package/src/ai-components/internal/format.ts +69 -0
  849. package/src/ai-components/internal/hooks/useBottomSafeArea.ts +6 -0
  850. package/src/ai-components/internal/icons/AgentIcons.tsx +138 -0
  851. package/src/ai-components/internal/tokens.ts +4 -0
  852. package/src/ai-components/internal/uuid.ts +17 -0
  853. package/src/ai-components/markdown/components/CodeBlock.tsx +13 -2
  854. package/src/ai-components/markdown/components/InlineCode.tsx +1 -0
  855. package/src/ai-components/markdown/components/Text.tsx +7 -2
  856. package/src/ai-components/markdown/styles.ts +29 -27
  857. package/src/ai-components/markdown/types.ts +1 -0
  858. package/src/ai-components/message/AIAssistantMessage.tsx +99 -0
  859. package/src/ai-components/message/AIMessageAttachment.tsx +245 -0
  860. package/src/ai-components/message/AIReplyActions.tsx +139 -0
  861. package/src/ai-components/message/AIUserMessage.tsx +121 -0
  862. package/src/ai-components/message/UserMessageMenu.tsx +149 -0
  863. package/src/ai-components/message/index.ts +4 -0
  864. package/src/ai-components/message-composer/ActionButton.tsx +5 -1
  865. package/src/ai-components/message-composer/ActionSheet.tsx +28 -6
  866. package/src/ai-components/message-composer/AttachmentButton.tsx +9 -1
  867. package/src/ai-components/message-composer/ChatOptions.tsx +144 -0
  868. package/src/ai-components/message-composer/ComposerView.tsx +179 -29
  869. package/src/ai-components/message-composer/EditingMessageChip.tsx +61 -0
  870. package/src/ai-components/message-composer/MediaPreviewList.tsx +34 -8
  871. package/src/ai-components/message-composer/index.ts +1 -0
  872. package/src/ai-components/message-parts/AIMessageParts.tsx +120 -0
  873. package/src/ai-components/message-parts/AIToolApproval.tsx +196 -0
  874. package/src/ai-components/message-parts/AIToolAuthorization.tsx +279 -0
  875. package/src/ai-components/message-parts/AIToolCall.tsx +117 -0
  876. package/src/ai-components/message-parts/callStates.ts +44 -0
  877. package/src/ai-components/message-parts/index.ts +6 -0
  878. package/src/ai-components/message-parts/parseMessageParts.ts +195 -0
  879. package/src/ai-components/message-parts/types.ts +157 -0
  880. package/src/ai-components/native-specs/NativeAIAgent.ts +25 -0
  881. package/src/ai-components/reasoning/AIReasoning.tsx +509 -0
  882. package/src/ai-components/reasoning/index.ts +2 -0
  883. package/src/ai-components/reasoning/thinkingClock.ts +109 -0
  884. package/src/ai-components/services/clipboard-service/expo.ts +18 -4
  885. package/src/ai-components/store/composer/store.ts +9 -0
  886. package/src/ai-components/store/composer/useComposerChatOption.ts +15 -0
  887. package/src/ai-components/store/composer/useComposerIsEditing.ts +15 -0
  888. package/src/ai-components/store/index.ts +2 -0
  889. package/src/ai-components/suggestions/AISuggestions.tsx +73 -0
  890. package/src/ai-components/suggestions/index.ts +1 -0
  891. package/src/ai-components/syntax-highlighting/utils/flatten-nodes.ts +2 -1
  892. package/src/ai-components/syntax-highlighting/utils/renderer.tsx +4 -2
  893. package/src/ai-components/theme.ts +334 -0
  894. package/src/ai-components/tool-calls/AIClientIdentity.ts +33 -0
  895. package/src/ai-components/tool-calls/AIClientToolRunner.ts +200 -0
  896. package/src/ai-components/tool-calls/AIToolApprover.tsx +60 -0
  897. package/src/ai-components/tool-calls/authSessionAuthorizer.ts +137 -0
  898. package/src/ai-components/tool-calls/index.ts +4 -0
  899. package/src/ai-components/voice-visualization/glowShader.ts +1 -3
  900. package/src/ai-components/voice-visualization/simplex.ts +1 -1
  901. package/src/components/Accessibility/NotificationAnnouncer.tsx +5 -5
  902. package/src/components/Accessibility/hooks/useIncomingMessageAnnouncements.ts +1 -1
  903. package/src/components/Accessibility/useAccessibilityAnnouncer.ts +0 -2
  904. package/src/components/Message/MessageItemView/utils/renderText.tsx +1 -2
  905. package/src/contexts/translationContext/TranslationContext.tsx +2 -2
  906. package/src/i18n/ar.json +39 -1
  907. package/src/i18n/en.json +39 -1
  908. package/src/i18n/es.json +39 -1
  909. package/src/i18n/fr.json +39 -1
  910. package/src/i18n/he.json +39 -1
  911. package/src/i18n/hi.json +39 -1
  912. package/src/i18n/it.json +39 -1
  913. package/src/i18n/ja.json +39 -1
  914. package/src/i18n/ko.json +39 -1
  915. package/src/i18n/nl.json +39 -1
  916. package/src/i18n/pt-br.json +39 -1
  917. package/src/i18n/ru.json +39 -1
  918. package/src/i18n/tr.json +39 -1
  919. package/src/mock-builders/a2ui/ohrid.ts +106 -0
  920. package/src/utils/i18n/Streami18n.ts +4 -1
  921. package/src/utils/i18n/utils.ts +3 -0
  922. package/src/version.json +1 -1
@@ -0,0 +1,84 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ exports.uiComponents = exports.ohridLines = void 0;
5
+ var ohridLines = exports.ohridLines = ['{"version":"1.0","createSurface":{"surfaceId":"ohrid-weekend","catalogId":"getstream.io:app-catalog","dataModel":{"pace":["relaxed"],"interests":[]}}}', '{"version":"1.0","updateComponents":{"surfaceId":"ohrid-weekend","components":[{"id":"root","component":"Column","children":["title","intro","map","calendar","days","tip","refine","next"]},{"id":"title","component":"Text","text":"## A weekend in Ohrid"},{"id":"intro","component":"Text","text":"Two easy days by the lake: the old town on Saturday, a boat to St. Naum on Sunday."}]}}', '{"version":"1.0","updateComponents":{"surfaceId":"ohrid-weekend","components":[{"id":"map","component":"TripMap","places":[{"name":"Church of St. John at Kaneo","latitude":41.1112,"longitude":20.7881},{"name":"Plaošnik","latitude":41.1131,"longitude":20.7903},{"name":"Samuel\'s Fortress, Ohrid","latitude":41.1162,"longitude":20.7928},{"name":"Monastery of Saint Naum","latitude":40.9139,"longitude":20.7406},{"name":"Bay of Bones","latitude":41.0118,"longitude":20.7988}]},{"id":"calendar","component":"CalendarCheck","start":"2026-11-14","end":"2026-11-15"}]}}', '{"version":"1.0","updateComponents":{"surfaceId":"ohrid-weekend","components":[{"id":"days","component":"Tabs","tabs":[{"title":"Saturday","child":"saturday"},{"title":"Sunday","child":"sunday"}]},{"id":"saturday","component":"Column","children":["saturday_plan","plaosnik","fortress","kaneo"]},{"id":"saturday_plan","component":"Text","text":"**Morning:** coffee by the harbour, then up through the old town to Plaošnik.\\n\\n**Afternoon:** Samuel\'s Fortress for the view over the lake.\\n\\n**Sunset:** St. John at Kaneo, on the cliff above the water."},{"id":"plaosnik","component":"PlaceCard","title":"Plaošnik","note":"1 hour"},{"id":"fortress","component":"PlaceCard","title":"Samuel\'s Fortress, Ohrid","note":"2 hours"},{"id":"kaneo","component":"PlaceCard","title":"Church of St. John at Kaneo","note":"Best at sunset"}]}}', '{"version":"1.0","updateComponents":{"surfaceId":"ohrid-weekend","components":[{"id":"sunday","component":"Column","children":["sunday_plan","naum","bones"]},{"id":"sunday_plan","component":"Text","text":"**Morning:** the boat from the harbour to St. Naum.\\n\\n**Afternoon:** the Bay of Bones on the way back."},{"id":"naum","component":"PlaceCard","title":"Monastery of Saint Naum","note":"Take the 10:00 boat"},{"id":"bones","component":"PlaceCard","title":"Bay of Bones","note":"1 hour"}]}}', '{"version":"1.0","updateComponents":{"surfaceId":"ohrid-weekend","components":[{"id":"tip","component":"Text","text":"> **Good to know:** book the St. Naum boat the day before. It fills up at weekends."},{"id":"refine","component":"Card","child":"refine_form"},{"id":"refine_form","component":"Column","children":["pace","interests","update"]},{"id":"pace","component":"ChoicePicker","label":"Pace","variant":"mutuallyExclusive","displayStyle":"chips","options":[{"label":"Relaxed","value":"relaxed"},{"label":"Packed","value":"packed"}],"value":{"@path":"/pace"}},{"id":"interests","component":"ChoicePicker","label":"More of","variant":"multipleSelection","displayStyle":"chips","options":[{"label":"History","value":"history"},{"label":"Food","value":"food"},{"label":"Nature","value":"nature"},{"label":"Swimming","value":"swimming"}],"value":{"@path":"/interests"}},{"id":"update","component":"Button","variant":"primary","child":"update_label","action":{"event":{"name":"update_plan","userMessage":"Update the plan","context":{"pace":{"@path":"/pace"},"interests":{"@path":"/interests"}}}}},{"id":"update_label","component":"Text","text":"Update the plan"}]}}', '{"version":"1.0","updateComponents":{"surfaceId":"ohrid-weekend","components":[{"id":"next","component":"Column","children":["hotel","eat","longer"]},{"id":"hotel","component":"Button","variant":"borderless","child":"hotel_label","action":{"event":{"name":"ask","userMessage":"Find a hotel by the lake"}}},{"id":"hotel_label","component":"Text","text":"Find a hotel by the lake"},{"id":"eat","component":"Button","variant":"borderless","child":"eat_label","action":{"event":{"name":"ask","userMessage":"Where should we eat?"}}},{"id":"eat_label","component":"Text","text":"Where should we eat?"},{"id":"longer","component":"Button","variant":"borderless","child":"longer_label","action":{"event":{"name":"ask","userMessage":"Make it three days"}}},{"id":"longer_label","component":"Text","text":"Make it three days"}]}}'];
6
+ var uiComponents = exports.uiComponents = [{
7
+ name: 'place_card',
8
+ description: 'One place of a plan, with its photo and a short summary, which the phone loads from Wikipedia, so it needs no image URL. Use one per sight, beach, monastery, village or day trip.',
9
+ parameters: {
10
+ type: 'object',
11
+ properties: {
12
+ title: {
13
+ type: 'string',
14
+ description: 'The place\'s exact English Wikipedia article title, such as "Church of St. John at Kaneo"'
15
+ },
16
+ note: {
17
+ type: 'string',
18
+ description: 'One short line about it for this plan, such as "Best at sunset" or "2 hours"'
19
+ }
20
+ },
21
+ required: ['title'],
22
+ 'x-order': ['title', 'note']
23
+ },
24
+ events: [{
25
+ name: 'ask_about',
26
+ description: 'Tapping the card asks you about the place.'
27
+ }]
28
+ }, {
29
+ name: 'trip_map',
30
+ description: 'A map of a plan with a pin for each place, drawn on the phone. Use one near the top of every trip plan.',
31
+ parameters: {
32
+ type: 'object',
33
+ properties: {
34
+ places: {
35
+ type: 'array',
36
+ description: 'Every place of the plan, with its coordinates',
37
+ items: {
38
+ type: 'object',
39
+ properties: {
40
+ name: {
41
+ type: 'string'
42
+ },
43
+ latitude: {
44
+ type: 'number'
45
+ },
46
+ longitude: {
47
+ type: 'number'
48
+ }
49
+ },
50
+ required: ['name', 'latitude', 'longitude'],
51
+ 'x-order': ['name', 'latitude', 'longitude']
52
+ }
53
+ }
54
+ },
55
+ required: ['places'],
56
+ 'x-order': ['places']
57
+ },
58
+ events: [{
59
+ name: 'select_place',
60
+ description: 'Tapping a pin asks you about that place.'
61
+ }]
62
+ }, {
63
+ name: 'calendar_check',
64
+ description: "The person's own calendar for the days of a plan, read on the phone. You never see it: use it whenever a plan has dates, so they can see what the trip would clash with.",
65
+ parameters: {
66
+ type: 'object',
67
+ properties: {
68
+ start: {
69
+ type: 'string',
70
+ format: 'date',
71
+ description: 'The first day, as YYYY-MM-DD'
72
+ },
73
+ end: {
74
+ type: 'string',
75
+ format: 'date',
76
+ description: 'The last day, as YYYY-MM-DD'
77
+ }
78
+ },
79
+ required: ['start', 'end'],
80
+ 'x-order': ['start', 'end']
81
+ },
82
+ events: []
83
+ }];
84
+ //# sourceMappingURL=ohrid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ohridLines","exports","uiComponents","name","description","parameters","type","properties","title","note","required","events","places","items","latitude","longitude","start","format","end"],"sourceRoot":"../../../../src","sources":["mock-builders/a2ui/ohrid.ts"],"mappings":";;;;AAKO,IAAMA,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,CACxB,wJAAwJ,EACxJ,gYAAgY,EAChY,qjBAAqjB,EACrjB,k0BAAk0B,EACl0B,gfAAgf,EAChf,+oCAA+oC,EAC/oC,qzBAAqzB,CACtzB;AAEM,IAAME,YAAY,GAAAD,OAAA,CAAAC,YAAA,GAAG,CAC1B;EACEC,IAAI,EAAE,YAAY;EAClBC,WAAW,EACT,oLAAoL;EACtLC,UAAU,EAAE;IACVC,IAAI,EAAE,QAAQ;IACdC,UAAU,EAAE;MACVC,KAAK,EAAE;QACLF,IAAI,EAAE,QAAQ;QACdF,WAAW,EACT;MACJ,CAAC;MACDK,IAAI,EAAE;QACJH,IAAI,EAAE,QAAQ;QACdF,WAAW,EACT;MACJ;IACF,CAAC;IACDM,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,SAAS,EAAE,CAAC,OAAO,EAAE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5B,CAAC;EACDC,MAAM,EAAE;AACV,CAAC,CACF","ignoreList":[]}
@@ -2,7 +2,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- exports.defaultTranslatorFunction = exports.Streami18n = void 0;
5
+ exports.Streami18n = void 0;
6
+ Object.defineProperty(exports, "defaultTranslatorFunction", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _utils.defaultTranslatorFunction;
10
+ }
11
+ });
6
12
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
7
13
  var _dayjs = _interopRequireDefault(require("dayjs"));
8
14
  var _calendar = _interopRequireDefault(require("dayjs/plugin/calendar"));
@@ -15,6 +21,7 @@ var _utc = _interopRequireDefault(require("dayjs/plugin/utc"));
15
21
  var _i18next = _interopRequireDefault(require("i18next"));
16
22
  var _calendarFormats = require("./calendarFormats");
17
23
  var _predefinedFormatters = require("./predefinedFormatters");
24
+ var _utils = require("./utils");
18
25
  var _ar = _interopRequireDefault(require("../../i18n/ar.json"));
19
26
  var _en = _interopRequireDefault(require("../../i18n/en.json"));
20
27
  var _es = _interopRequireDefault(require("../../i18n/es.json"));
@@ -142,15 +149,13 @@ var defaultStreami18nOptions = {
142
149
  language: 'en',
143
150
  logger: msg => console.warn(msg)
144
151
  };
145
- var defaultTranslatorFunction = key => key;
146
- exports.defaultTranslatorFunction = defaultTranslatorFunction;
147
152
  class Streami18n {
148
153
  i18nInstance = _i18next.default.createInstance();
149
154
  Dayjs = null;
150
155
  initialized = false;
151
156
  onLanguageChangeListeners = [];
152
157
  onTFunctionOverrideListeners = [];
153
- t = defaultTranslatorFunction;
158
+ t = _utils.defaultTranslatorFunction;
154
159
  translations = {
155
160
  ar: {
156
161
  [defaultNS]: _ar.default
@@ -1 +1 @@
1
- {"version":3,"names":["_dayjs","_interopRequireDefault","require","_calendar","_duration","_localeData","_localizedFormat","_relativeTime","_updateLocale","_utc","_i18next","_calendarFormats","_predefinedFormatters","_ar","_en","_es","_fr","_he","_hi","_it","_ja","_ko","_nl","_ptBr","_ru","_tr","defaultNS","defaultLng","Dayjs","extend","updateLocale","utc","calendar","calendarFormats","en","format","L","LL","LLL","LLLL","LT","LTS","ar","es","fr","he","hi","meridiem","hour","meridiemHour","meridiemParse","it","ja","ko","nl","ru","tr","en_locale","formats","months","relativeTime","weekdays","isDayJs","dateTimeParser","undefined","supportsTz","tz","defaultStreami18nOptions","DateTimeParser","dayjsLocaleConfigForLanguage","debug","disableDateTimeTranslations","language","logger","msg","console","warn","defaultTranslatorFunction","key","exports","Streami18n","i18nInstance","i18n","createInstance","initialized","onLanguageChangeListeners","onTFunctionOverrideListeners","t","translations","arTranslations","enTranslations","esTranslations","frTranslations","heTranslations","hiTranslations","itTranslations","jaTranslations","koTranslations","nlTranslations","ptBRTranslations","ruTranslations","trTranslations","dayjsLocales","formatters","predefinedFormatters","constructor","options","i18nextConfig","finalOptions","currentLanguage","timezone","duration","LocalizedFormat","localeData","error","Error","JSON","stringify","isCustomDateTimeParser","translationsForLanguage","fallbackLng","interpolation","escapeValue","formatSeparator","keySeparator","lng","nsSeparator","parseMissingKeyHandler","validateCurrentLanguage","addOrUpdateLocale","localeExists","tDateTimeParser","timestamp","locale","init","_this","_asyncToGenerator2","default","resources","queuedTFunctionOverride","forEach","listener","Object","entries","name","formatterFactory","_this$i18nInstance$se","services","formatter","add","waitForInitializing","keys","Ls","indexOf","availableLanguages","getAvailableLanguages","geti18Instance","getTranslations","getTranslators","_this2","initPromise","registerTranslation","translation","customDayjsLocale","addResources","config","setLanguage","_this3","changeLanguage","addOnLanguageChangeListener","callback","push","unsubscribe","filter","addOnTFunctionOverrideListener","overrideTFunction","tFunction"],"sourceRoot":"../../../../src","sources":["utils/i18n/Streami18n.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,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2BA,CAACC,QAAgC,EAAE;IAC5D,IAAI,CAACrF,yBAAyB,CAACsF,IAAI,CAACD,QAAQ,CAAC;IAC7C,OAAO;MACLE,WAAW,EAAEA,CAAA,KAAM;QACjB,IAAI,CAACvF,yBAAyB,GAAG,IAAI,CAACA,yBAAyB,CAACwF,MAAM,CACnEhC,QAAQ,IAAKA,QAAQ,KAAK6B,QAC7B,CAAC;MACH;IACF,CAAC;EACH;EAEAI,8BAA8BA,CAACJ,QAAgC,EAAE;IAC/D,IAAI,CAACpF,4BAA4B,CAACqF,IAAI,CAACD,QAAQ,CAAC;IAChD,OAAO;MACLE,WAAW,EAAEA,CAAA,KAAM;QACjB,IAAI,CAACtF,4BAA4B,GAAG,IAAI,CAACA,4BAA4B,CAACuF,MAAM,CACzEhC,QAAQ,IAAKA,QAAQ,KAAK6B,QAC7B,CAAC;MACH;IACF,CAAC;EACH;EAEAK,iBAAiBA,CAACC,SAAoB,EAAE;IACtC,IAAI,CAAC,IAAI,CAAC5F,WAAW,EAAE;MACrB,IAAI,CAACuD,uBAAuB,GAAGqC,SAAS;IAC1C,CAAC,MAAM;MACL,IAAI,CAACzF,CAAC,GAAGyF,SAAS;MAClB,IAAI,CAAC1F,4BAA4B,CAACsD,OAAO,CAAEC,QAAQ,IAAKA,QAAQ,CAACmC,SAAS,CAAC,CAAC;IAC9E;EACF;AACF;AAACjG,OAAA,CAAAC,UAAA,GAAAA,UAAA","ignoreList":[]}
1
+ {"version":3,"names":["_dayjs","_interopRequireDefault","require","_calendar","_duration","_localeData","_localizedFormat","_relativeTime","_updateLocale","_utc","_i18next","_calendarFormats","_predefinedFormatters","_utils","_ar","_en","_es","_fr","_he","_hi","_it","_ja","_ko","_nl","_ptBr","_ru","_tr","defaultNS","defaultLng","Dayjs","extend","updateLocale","utc","calendar","calendarFormats","en","format","L","LL","LLL","LLLL","LT","LTS","ar","es","fr","he","hi","meridiem","hour","meridiemHour","meridiemParse","it","ja","ko","nl","ru","tr","en_locale","formats","months","relativeTime","weekdays","isDayJs","dateTimeParser","undefined","supportsTz","tz","defaultStreami18nOptions","DateTimeParser","dayjsLocaleConfigForLanguage","debug","disableDateTimeTranslations","language","logger","msg","console","warn","Streami18n","i18nInstance","i18n","createInstance","initialized","onLanguageChangeListeners","onTFunctionOverrideListeners","t","defaultTranslatorFunction","translations","arTranslations","enTranslations","esTranslations","frTranslations","heTranslations","hiTranslations","itTranslations","jaTranslations","koTranslations","nlTranslations","ptBRTranslations","ruTranslations","trTranslations","dayjsLocales","formatters","predefinedFormatters","constructor","options","i18nextConfig","finalOptions","currentLanguage","timezone","duration","LocalizedFormat","localeData","error","Error","JSON","stringify","isCustomDateTimeParser","translationsForLanguage","fallbackLng","interpolation","escapeValue","formatSeparator","keySeparator","lng","nsSeparator","parseMissingKeyHandler","key","validateCurrentLanguage","addOrUpdateLocale","localeExists","tDateTimeParser","timestamp","locale","init","_this","_asyncToGenerator2","default","resources","queuedTFunctionOverride","forEach","listener","Object","entries","name","formatterFactory","_this$i18nInstance$se","services","formatter","add","waitForInitializing","keys","Ls","indexOf","availableLanguages","getAvailableLanguages","geti18Instance","getTranslations","getTranslators","_this2","initPromise","registerTranslation","translation","customDayjsLocale","addResources","config","setLanguage","_this3","changeLanguage","addOnLanguageChangeListener","callback","push","unsubscribe","filter","addOnTFunctionOverrideListener","overrideTFunction","tFunction","exports"],"sourceRoot":"../../../../src","sources":["utils/i18n/Streami18n.ts"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,SAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,gBAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,aAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,aAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,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IAC/D,IAAI,CAACtF,4BAA4B,CAACuF,IAAI,CAACD,QAAQ,CAAC;IAChD,OAAO;MACLE,WAAW,EAAEA,CAAA,KAAM;QACjB,IAAI,CAACxF,4BAA4B,GAAG,IAAI,CAACA,4BAA4B,CAACyF,MAAM,CACzEhC,QAAQ,IAAKA,QAAQ,KAAK6B,QAC7B,CAAC;MACH;IACF,CAAC;EACH;EAEAK,iBAAiBA,CAACC,SAAoB,EAAE;IACtC,IAAI,CAAC,IAAI,CAAC9F,WAAW,EAAE;MACrB,IAAI,CAACyD,uBAAuB,GAAGqC,SAAS;IAC1C,CAAC,MAAM;MACL,IAAI,CAAC3F,CAAC,GAAG2F,SAAS;MAClB,IAAI,CAAC5F,4BAA4B,CAACwD,OAAO,CAAEC,QAAQ,IAAKA,QAAQ,CAACmC,SAAS,CAAC,CAAC;IAC9E;EACF;AACF;AAACC,OAAA,CAAAnG,UAAA,GAAAA,UAAA","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ exports.defaultTranslatorFunction = void 0;
5
+ var defaultTranslatorFunction = key => key;
6
+ exports.defaultTranslatorFunction = defaultTranslatorFunction;
7
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["defaultTranslatorFunction","key","exports"],"sourceRoot":"../../../../src","sources":["utils/i18n/utils.ts"],"mappings":";;;;AAEO,IAAMA,yBAAyB,GAAKC,GAAW,IAAKA,GAAiB;AAACC,OAAA,CAAAF,yBAAA,GAAAA,yBAAA","ignoreList":[]}
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "9.12.1"
2
+ "version": "9.13.0"
3
3
  }
@@ -6,7 +6,6 @@
6
6
  export declare const composeAccessibilityLabel: (...parts: Array<string | null | undefined | false>) => string;
7
7
  /**
8
8
  * Build the value object passed to `accessibilityValue` for progress/seek surfaces.
9
- * Mirrors the React SDK's `progressBarA11y.ts` shape.
10
9
  */
11
10
  export declare const formatAccessibilityValue: ({ max, min, now, text, }: {
12
11
  max: number;
@@ -1 +1 @@
1
- {"version":3,"file":"a11yUtils.d.ts","sourceRoot":"","sources":["../../../src/a11y/a11yUtils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,GACpC,GAAG,OAAO,KAAK,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,CAAC,KACjD,MAA4F,CAAC;AAEhG;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GAAI,0BAKtC;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,KAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAQzD,CAAC;AAEF;;GAEG;AACH,KAAK,UAAU,GAAG,QAAQ,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE7D,eAAO,MAAM,yBAAyB,GACpC,GAAG,aAAa,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,KAC3D,UAAU,EASZ,CAAC"}
1
+ {"version":3,"file":"a11yUtils.d.ts","sourceRoot":"","sources":["../../../src/a11y/a11yUtils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,GACpC,GAAG,OAAO,KAAK,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,CAAC,KACjD,MAA4F,CAAC;AAEhG;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,0BAKtC;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,KAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAQzD,CAAC;AAEF;;GAEG;AACH,KAAK,UAAU,GAAG,QAAQ,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE7D,eAAO,MAAM,yBAAyB,GACpC,GAAG,aAAa,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,KAC3D,UAAU,EASZ,CAAC"}
@@ -4,9 +4,8 @@ export type ResolvedModalAccessibilityProps = {
4
4
  accessibilityRole?: 'none' | 'button' | 'image' | 'text' | 'alert' | 'menu' | 'menuitem';
5
5
  };
6
6
  /**
7
- * Returns the platform-appropriate set of a11y props for a modal/sheet root.
8
- * Equivalent of stream-chat-react's `useResolvedModalAriaProps` — but aware of
9
- * RN's iOS-vs-Android split:
7
+ * Returns the platform-appropriate set of a11y props for a modal/sheet root,
8
+ * aware of RN's iOS-vs-Android split:
10
9
  * - iOS uses `accessibilityViewIsModal` to trap focus.
11
10
  * - Android uses `importantForAccessibility="yes"` on the modal root and
12
11
  * `"no-hide-descendants"` on background siblings (caller's responsibility).
@@ -1 +1 @@
1
- {"version":3,"file":"useResolvedModalAccessibilityProps.d.ts","sourceRoot":"","sources":["../../../../src/a11y/hooks/useResolvedModalAccessibilityProps.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,+BAA+B,GAAG;IAC5C,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,yBAAyB,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,qBAAqB,CAAC;IAC1E,iBAAiB,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;CAC1F,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kCAAkC,QAAO,+BAQrD,CAAC"}
1
+ {"version":3,"file":"useResolvedModalAccessibilityProps.d.ts","sourceRoot":"","sources":["../../../../src/a11y/hooks/useResolvedModalAccessibilityProps.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,+BAA+B,GAAG;IAC5C,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,yBAAyB,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,qBAAqB,CAAC;IAC1E,iBAAiB,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;CAC1F,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,kCAAkC,QAAO,+BAQrD,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { A2UIEngine } from './A2UIRenderer';
2
+ /** The engine of the surfaces below, for what in them reaches the host, such as links. */
3
+ export declare const A2UIEngineContext: import("react").Context<A2UIEngine | undefined>;
4
+ /** The reply the surfaces below belong to, and whether the agent is still writing it. */
5
+ export declare const A2UIReplyContext: import("react").Context<{
6
+ isStreaming: boolean;
7
+ messageId: string;
8
+ } | undefined>;
9
+ //# sourceMappingURL=A2UIContexts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"A2UIContexts.d.ts","sourceRoot":"","sources":["../../../src/a2ui/A2UIContexts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,0FAA0F;AAC1F,eAAO,MAAM,iBAAiB,iDAAmD,CAAC;AAElF,yFAAyF;AACzF,eAAO,MAAM,gBAAgB;iBAEV,OAAO;eACT,MAAM;cAGX,CAAC"}
@@ -0,0 +1,47 @@
1
+ import type { AIUIComponent } from '../ai-components/generative-ui/AIUIComponent';
2
+ import type { AIUIComponentDefinition } from '../ai-components/generative-ui/AIUIComponentDefinition';
3
+ import type { AIClientToolDefinition } from '../ai-components/tool-calls/AIClientToolRunner';
4
+ /**
5
+ * What an agent is told to write replies' UI in A2UI with: the basic catalog, or the part of it
6
+ * `keep` names, with the app's components, and what the app adds.
7
+ */
8
+ export type A2UIInstructionsConfig = {
9
+ /** The id of the catalog with the app's components, as the renderer names it. */
10
+ catalogId?: string;
11
+ /** The app's components, or their portable definitions, such as a `UIComponents.json`. */
12
+ components?: (AIUIComponent | AIUIComponentDefinition)[];
13
+ /**
14
+ * Replies with their UI, as the agent should write them. Each block must render with the
15
+ * catalog, or no instructions are written: a broken example teaches the model broken UI.
16
+ */
17
+ examples?: string[];
18
+ /** The info string of a reply's UI block, as the agents router reads it. */
19
+ fence?: string;
20
+ /** The basic catalog's components and functions to describe; all of them when absent. */
21
+ keep?: string[];
22
+ /**
23
+ * The basic catalog's components and functions to leave out, such as those the app's renderer
24
+ * leaves out with its own `removing`, after `keep`.
25
+ */
26
+ removing?: string[];
27
+ /** Guidance on using the app's components. */
28
+ notes?: string[];
29
+ /** What the model is told first, such as which answers to write as UI. */
30
+ preamble?: string;
31
+ /** Rules added after the protocol's. */
32
+ rules?: string[];
33
+ /** The app's tools the agent can call from the UI it writes, as functions of the catalog. */
34
+ tools?: AIClientToolDefinition[];
35
+ };
36
+ /** The A2UI an example holds that would not render, and why. */
37
+ export declare class A2UIInstructionsError extends Error {
38
+ readonly problems: string[];
39
+ constructor(problems: string[]);
40
+ }
41
+ /** A description of the A2UI v1.0 messages and the rules that keep what they make valid. */
42
+ export declare const A2UI_PROTOCOL_OVERVIEW = "# Generating user interfaces with A2UI v1.0\n\nYou render user interfaces by emitting A2UI messages. Every message is a JSON object with a `\"version\": \"1.0\"` field plus exactly one of these keys:\n\n- `createSurface`: creates a surface. Requires `surfaceId`, and accepts `catalogId`, `sendDataModel`, `components` and `dataModel` so a complete UI can be sent in one message.\n- `updateComponents`: adds or replaces components of an existing surface. Requires `surfaceId` and `components`.\n- `updateDataModel`: writes to the surface data model. Requires `surfaceId` and `value`, and accepts a JSON Pointer `path`. Setting `value` to `null` deletes the entry at `path`.\n- `deleteSurface`: removes a surface. Requires `surfaceId`.\n- `callRendererFunction`: asks the renderer to run one of its functions.\n- `agentFunctionResponse`: answers a `callAgentFunction` request from the renderer.\n\nRules:\n\n1. Components are a flat adjacency list. Each component has a unique `id`, a `component` type, and its properties inline. Exactly one component must have the id `root`. An id is an identifier: letters, digits and underscores, not starting with a digit, such as `saturday_plan` (never `saturday-plan`).\n2. Children are referenced by id, never nested inline. Use an array of ids, or `{\"componentId\": \"...\", \"path\": \"/items\"}` to repeat a template for every item of a data model list.\n3. Any property may be a literal, a data binding `{\"@path\": \"/a/b\"}` or a function call `{\"@call\": \"name\", \"args\": {...}}`. Inside a list template, paths without a leading slash resolve relative to the current item, and `{\"@call\": \"@index\"}` returns the item's position. A literal object key that starts with `@` is written with `@@`, so `\"@@type\"` means `\"@type\"`.\n4. Put content that changes in the data model and bind to it, so you can update values with `updateDataModel` instead of resending components.\n5. Interactive components declare an `action`, which either dispatches an event to you (`{\"event\": {\"name\": \"...\", \"context\": {...}}}`) or runs a renderer function (`{\"functionCall\": {\"@call\": \"openUrl\", \"args\": {\"url\": \"...\"}}}`).\n6. Surface ids must be unique for the lifetime of the renderer. Creating a surface that already exists is an error: delete it first, or send `updateComponents` and `updateDataModel` to change it.";
43
+ export declare const writing: (fence: string, catalogId: string) => string;
44
+ export declare const sorted: (value: unknown) => unknown;
45
+ export declare const fenceOf: (fence?: string) => string;
46
+ export declare const blocksIn: (example: string, fence: string) => string[];
47
+ //# sourceMappingURL=A2UIInstructions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"A2UIInstructions.d.ts","sourceRoot":"","sources":["../../../src/a2ui/A2UIInstructions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAClF,OAAO,K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 @@
1
+ import React from 'react';
2
+ /** What shows while a reply's first surface is being written. */
3
+ export declare const A2UIPlaceholder: () => React.JSX.Element;
4
+ //# sourceMappingURL=A2UIPlaceholder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"A2UIPlaceholder.d.ts","sourceRoot":"","sources":["../../../src/a2ui/A2UIPlaceholder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,iEAAiE;AACjE,eAAO,MAAM,eAAe,yBAW3B,CAAC"}
@@ -0,0 +1,130 @@
1
+ import React from 'react';
2
+ import { type Catalog, type ComponentApi, type SurfaceModel } from '@a2ui/web_core';
3
+ import { A2UI_DEFAULT_CATALOG_ID } from './catalogDocument';
4
+ import type { A2UIComponents, A2UIIcons } from './components/types';
5
+ import type { AIUIDocument } from '../ai-components/generative-ui/AIUIDocument';
6
+ import type { AIUIHost } from '../ai-components/generative-ui/AIUIHost';
7
+ import { type AIUIMediaURL } from '../ai-components/generative-ui/AIUIMedia';
8
+ import type { AIUIEngine, AIUIRenderer } from '../ai-components/generative-ui/AIUIRenderer';
9
+ export { A2UI_DEFAULT_CATALOG_ID };
10
+ /** What went wrong in a reply's A2UI, as the A2UI specification reports it to an agent. */
11
+ export type A2UIError = {
12
+ /** A code such as `VALIDATION_FAILED` or `EXPRESSION_ERROR`. */
13
+ code: string;
14
+ message: string;
15
+ /** Where in the message it went wrong, as a JSON pointer. */
16
+ path?: string;
17
+ surfaceId?: string;
18
+ };
19
+ export type A2UIRendererOptions = {
20
+ /**
21
+ * The id the agent names the catalog with the app's components by. A surface naming the
22
+ * basic catalog shows them too, and a surface naming none is made with this one.
23
+ */
24
+ catalogId?: string;
25
+ /**
26
+ * The views of the basic catalog's components to use instead of the default ones, by their
27
+ * A2UI type, such as `{ Card: MyCard }`. Each gets what the agent wrote for it, resolved.
28
+ */
29
+ components?: A2UIComponents;
30
+ /**
31
+ * The app's icons for the names A2UI's Icon takes, such as `{ shoppingCart: MyCartIcon }`, over
32
+ * the Material icons it draws by default. An app's own names work too, when its agent is told
33
+ * them.
34
+ */
35
+ icons?: A2UIIcons;
36
+ /**
37
+ * What the app tells the model before A2UI's own instructions in `capabilities`, such as which
38
+ * answers to write as UI.
39
+ */
40
+ instructions?: string;
41
+ /** The locale numbers and dates are formatted in. `en-US` by default. */
42
+ locale?: string;
43
+ /**
44
+ * Decides what an Image, Video or AudioPlayer loads for the link the agent wrote: the address
45
+ * to load, or `null` not to load it. By default only public web links load, never addresses on
46
+ * the person's network, such as `192.168.1.1` or `localhost`.
47
+ */
48
+ mediaUrl?: AIUIMediaURL;
49
+ /**
50
+ * The basic catalog's components and functions this renderer leaves out, such as `['Video']`.
51
+ * The agent's instructions leave them out too, and a reply that places one shows the rest.
52
+ */
53
+ removing?: string[];
54
+ /**
55
+ * Tells the app what went wrong in a reply's A2UI, such as a message that isn't JSON or a
56
+ * component the catalog doesn't have, with the reply's id. The rest of the reply's UI still
57
+ * shows. What is wrong with the renderer rather than a reply, such as an app's component that
58
+ * can't join the catalog, comes without an id. Logged by default.
59
+ */
60
+ onError?: (error: A2UIError, messageId?: string) => void;
61
+ };
62
+ /**
63
+ * The surfaces of one reply: its own processor, fed the messages of its document as they
64
+ * complete. Messages that changed, rather than grew, start its surfaces again.
65
+ */
66
+ export declare class A2UIReplyState {
67
+ isStreaming: boolean;
68
+ private applied;
69
+ private readonly engine;
70
+ private listeners;
71
+ private readonly messageId;
72
+ private processor;
73
+ private reported;
74
+ private shown;
75
+ private showedNothing;
76
+ private stopWatching;
77
+ constructor(engine: A2UIEngine, messageId: string);
78
+ /** The reply's surfaces, in the order the agent made them. */
79
+ surfaces: () => SurfaceModel<ComponentApi>[];
80
+ subscribe: (listener: () => void) => () => void;
81
+ /** Applies the messages of `source` not applied yet. */
82
+ update(source: string, isStreaming: boolean): void;
83
+ dispose(): void;
84
+ private feed;
85
+ private oneAtATime;
86
+ private makeProcessor;
87
+ private act;
88
+ private buttonText;
89
+ private watch;
90
+ private refresh;
91
+ private report;
92
+ }
93
+ /**
94
+ * Shows the A2UI of one conversation. Each reply's surfaces are its own, kept for as long as
95
+ * the host keeps the engine, so what the person entered survives scrolling.
96
+ */
97
+ export declare class A2UIEngine implements AIUIEngine {
98
+ readonly catalogId: string;
99
+ readonly components: A2UIComponents;
100
+ readonly host: AIUIHost;
101
+ readonly icons: A2UIIcons;
102
+ readonly mediaUrl: AIUIMediaURL;
103
+ /** Each reply's surfaces, by the reply's id. */
104
+ readonly replies: Map<string, A2UIReplyState>;
105
+ private made?;
106
+ private readonly options;
107
+ constructor(host: AIUIHost, options: A2UIRendererOptions);
108
+ /** The address an Image, Video or AudioPlayer loads for a link the agent wrote, if any. */
109
+ mediaSource(value: unknown): string | undefined;
110
+ /** The catalogs a reply's surfaces are made with, made once. */
111
+ catalogs(): Catalog<ComponentApi>[];
112
+ /** The app's component the agent places by its A2UI type, such as `PlaceCard`. */
113
+ appComponent(type: string): import("../ai-components").AIUIComponent | undefined;
114
+ /**
115
+ * Tells the app what went wrong, after the current render: a reply's messages are applied
116
+ * as it first shows, and an app may set state when told.
117
+ */
118
+ report(error: A2UIError, messageId?: string): void;
119
+ /** The surfaces of a reply, made with its messages so far the first time they are asked for. */
120
+ replyOf(document: AIUIDocument, messageId: string): A2UIReplyState;
121
+ remove(messageId: string): void;
122
+ view(document: AIUIDocument, messageId: string): React.JSX.Element | null;
123
+ }
124
+ /**
125
+ * The renderer of [A2UI](https://a2ui.org) 1.0 for `AIUIHost`, on the A2UI core
126
+ * (`@a2ui/web_core`), with the basic catalog's components drawn natively. The app's components
127
+ * join its catalog, so the agent places them like the basic catalog's own.
128
+ */
129
+ export declare const createA2UIRenderer: (options?: A2UIRendererOptions) => AIUIRenderer;
130
+ //# sourceMappingURL=A2UIRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"A2UIRenderer.d.ts","sourceRoot":"","sources":["../../../src/a2ui/A2UIRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA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OAAO,CAAsB;gBAElC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB;IAUxD,2FAA2F;IAC3F,WAAW,CAAC,KAAK,EAAE,OAAO;IAI1B,gEAAgE;IAChE,QAAQ,IAAI,OAAO,CAAC,YAAY,CAAC,EAAE;IAuBnC,kFAAkF;IAClF,YAAY,CAAC,IAAI,EAAE,MAAM;IAMzB;;;OAGG;IACH,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,CAAC,EAAE,MAAM;IAI3C,gGAAgG;IAChG,OAAO,CAAC,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM;IAUjD,MAAM,CAAC,SAAS,EAAE,MAAM;IAKxB,IAAI,CAAC,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM;CAQ/C;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAS,mBAAwB,KAAG,YAkCtE,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { AIUIDocument } from '../ai-components/generative-ui/AIUIDocument';
2
+ /** The version of A2UI this renderer reads. */
3
+ export declare const A2UI_VERSION = "1.0";
4
+ /** Whether a reply's A2UI of `version`, or of no version, is one this renderer reads. */
5
+ export declare const supportsA2UIVersion: (version: string | undefined) => boolean;
6
+ /**
7
+ * The complete A2UI messages in `text`, as written: every top-level JSON object, in order.
8
+ * One object per line, a pretty-printed one or a JSON array of them all read the same, and
9
+ * words around them are skipped. An object still being written is left out until it closes, so
10
+ * a reply's UI shows each message as it completes.
11
+ */
12
+ export declare const a2uiMessagesIn: (text: string) => string[];
13
+ /**
14
+ * The messages of a document as text: as the agent wrote them, or written out when a backend
15
+ * sent them as JSON. `undefined` for content that holds no messages.
16
+ */
17
+ export declare const a2uiSourceOf: (document: AIUIDocument) => string | undefined;
18
+ /**
19
+ * A message as the processor reads it: 1.0 in its own spelling, and a surface the agent made
20
+ * without naming a catalog made with `catalogId`, the catalog with the app's components.
21
+ */
22
+ export declare const normalizeA2UIMessage: (message: Record<string, unknown>, catalogId: string) => Record<string, unknown>;
23
+ //# sourceMappingURL=A2UIStream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"A2UIStream.d.ts","sourceRoot":"","sources":["../../../src/a2ui/A2UIStream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAGhF,+CAA+C;AAC/C,eAAO,MAAM,YAAY,QAAQ,CAAC;AAMlC,yFAAyF;AACzF,eAAO,MAAM,mBAAmB,GAAI,SAAS,MAAM,GAAG,SAAS,YACN,CAAC;AAK1D;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,KAAG,MAAM,EA6CnD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,UAAU,YAAY,KAAG,MAAM,GAAG,SAW9D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,WAAW,MAAM,KAChB,MAAM,CAAC,MAAM,EAAE,OAAO,CAUxB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { type ComponentApi, type Signal, type SurfaceModel } from '@a2ui/web_core';
3
+ /** The value of an A2UI signal, following it. */
4
+ export declare const useSignalValue: <T>(signal: Signal<T>) => T;
5
+ /** The axis the parent of a part lays its children out on, which a part's weight grows along. */
6
+ export declare const A2UIAxisContext: React.Context<"row" | "column">;
7
+ /** A child of a part, as its view gets it: a node, or nothing while it is on its way. */
8
+ export declare const A2UIChild: ({ node }: {
9
+ node: unknown;
10
+ }) => React.JSX.Element | null;
11
+ /** The children of a part, as its view gets them. */
12
+ export declare const A2UIChildren: ({ nodes }: {
13
+ nodes: unknown;
14
+ }) => React.JSX.Element;
15
+ /** A surface of a reply: its tree of parts, from its root, as the agent writes them. */
16
+ export declare const A2UISurfaceView: ({ surface }: {
17
+ surface: SurfaceModel<ComponentApi>;
18
+ }) => React.JSX.Element | null;
19
+ //# sourceMappingURL=A2UISurface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"A2UISurface.d.ts","sourceRoot":"","sources":["../../../src/a2ui/A2UISurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KASN,MAAM,OAAO,CAAC;AAIf,OAAO,EACL,KAAK,YAAY,EASjB,KAAK,MAAM,EACX,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAC;AASxB,iDAAiD;AACjD,eAAO,MAAM,cAAc,GAAI,CAAC,EAAG,QAAQ,MAAM,CAAC,CAAC,CAAC,MAWnD,CAAC;AAiCF,iGAAiG;AACjG,eAAO,MAAM,eAAe,iCAA4C,CAAC;AAkIzE,yFAAyF;AACzF,eAAO,MAAM,SAAS,GAAI,UAAU;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,6BACI,CAAC;AAE1D,qDAAqD;AACrD,eAAO,MAAM,YAAY,GAAI,WAAW;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,sBAQzD,CAAC;AAaF,wFAAwF;AACxF,eAAO,MAAM,eAAe,GAAI,aAAa;IAAE,OAAO,EAAE,YAAY,CAAC,YAAY,CAAC,CAAA;CAAE,6BAGnF,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type FunctionApi, type FunctionImplementation } from '@a2ui/web_core';
2
+ /**
3
+ * The basic catalog's functions, for the function definitions `apis` of its document, with
4
+ * `openUrl` run by `openUrl`. Formatting follows `locale`, or `en-US`.
5
+ */
6
+ export declare const basicFunctionsOf: (apis: Map<string, FunctionApi>, { locale, openUrl }: {
7
+ openUrl: (url: string) => void;
8
+ locale?: string;
9
+ }) => FunctionImplementation[];
10
+ //# sourceMappingURL=basicFunctions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basicFunctions.d.ts","sourceRoot":"","sources":["../../../src/a2ui/basicFunctions.ts"],"names":[],"mappings":"AAqBA,OAAO,EAML,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAK5B,MAAM,gBAAgB,CAAC;AAmVxB;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,MAAM,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,EAC9B,qBAAqB;IAAE,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KACvE,sBAAsB,EAiDxB,CAAC"}
@@ -0,0 +1,56 @@
1
+ import type { AIUIComponent } from '../ai-components/generative-ui/AIUIComponent';
2
+ import type { AIUIComponentDefinition, AIUIJSONSchema } from '../ai-components/generative-ui/AIUIComponentDefinition';
3
+ import type { AIClientToolDefinition } from '../ai-components/tool-calls/AIClientToolRunner';
4
+ /** The id of the catalog with the app's components, unless the renderer is given another. */
5
+ export declare const A2UI_DEFAULT_CATALOG_ID = "getstream.io:app-catalog";
6
+ /** The A2UI type of one of the app's components, named as the basic catalog names its own. */
7
+ export declare const a2uiTypeName: (name: string) => string;
8
+ /**
9
+ * The app's components as an A2UI catalog document: each under its A2UI type, its parameters
10
+ * as its properties and what its events do in its description, since it reports them itself
11
+ * rather than through an A2UI action the agent writes. With `bindings`, as the renderer reads
12
+ * them, a parameter may also be bound to the data model or worked out by a function; without,
13
+ * as an agent is told them, it is the value its schema describes.
14
+ */
15
+ export declare const a2uiAppCatalogDocument: (catalogId: string, components: (AIUIComponent | AIUIComponentDefinition)[], { bindings, tools }?: {
16
+ bindings?: boolean;
17
+ tools?: AIClientToolDefinition[];
18
+ }) => {
19
+ protocolVersion: string;
20
+ functions?: {
21
+ [k: string]: {
22
+ properties: {
23
+ '@call': {
24
+ const: string;
25
+ };
26
+ args: {
27
+ properties: {
28
+ [k: string]: AIUIJSONSchema | {
29
+ anyOf: AIUIJSONSchema[];
30
+ };
31
+ };
32
+ required: any[];
33
+ type: string;
34
+ };
35
+ };
36
+ required: string[];
37
+ returnType: string;
38
+ type: string;
39
+ description?: string | undefined;
40
+ };
41
+ } | undefined;
42
+ catalogId: string;
43
+ components: {
44
+ [k: string]: {
45
+ properties: {
46
+ component: {
47
+ const: string;
48
+ };
49
+ };
50
+ required: string[];
51
+ type: string;
52
+ description?: string | undefined;
53
+ };
54
+ };
55
+ };
56
+ //# sourceMappingURL=catalogDocument.d.ts.map