stream-chat-react-native-core 9.9.4 → 9.10.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 (714) hide show
  1. package/ai-components/package.json +6 -0
  2. package/lib/commonjs/ai-components/AITypingIndicatorView.js +49 -0
  3. package/lib/commonjs/ai-components/AITypingIndicatorView.js.map +1 -0
  4. package/lib/commonjs/ai-components/README.md +279 -0
  5. package/lib/commonjs/ai-components/StreamingMessageView.js +75 -0
  6. package/lib/commonjs/ai-components/StreamingMessageView.js.map +1 -0
  7. package/lib/commonjs/ai-components/charts/Chart.js +25 -0
  8. package/lib/commonjs/ai-components/charts/Chart.js.map +1 -0
  9. package/lib/commonjs/ai-components/charts/components/PieLegend.js +54 -0
  10. package/lib/commonjs/ai-components/charts/components/PieLegend.js.map +1 -0
  11. package/lib/commonjs/ai-components/charts/components/VictoryChart.js +183 -0
  12. package/lib/commonjs/ai-components/charts/components/VictoryChart.js.map +1 -0
  13. package/lib/commonjs/ai-components/charts/components/index.js +26 -0
  14. package/lib/commonjs/ai-components/charts/components/index.js.map +1 -0
  15. package/lib/commonjs/ai-components/charts/index.js +70 -0
  16. package/lib/commonjs/ai-components/charts/index.js.map +1 -0
  17. package/lib/commonjs/ai-components/charts/mermaid/index.js +15 -0
  18. package/lib/commonjs/ai-components/charts/mermaid/index.js.map +1 -0
  19. package/lib/commonjs/ai-components/charts/mermaid/parser.js +45 -0
  20. package/lib/commonjs/ai-components/charts/mermaid/parser.js.map +1 -0
  21. package/lib/commonjs/ai-components/charts/types.js +2 -0
  22. package/lib/commonjs/ai-components/charts/types.js.map +1 -0
  23. package/lib/commonjs/ai-components/charts/utils/generate-pie-colors.js +68 -0
  24. package/lib/commonjs/ai-components/charts/utils/generate-pie-colors.js.map +1 -0
  25. package/lib/commonjs/ai-components/charts/utils/index.js +26 -0
  26. package/lib/commonjs/ai-components/charts/utils/index.js.map +1 -0
  27. package/lib/commonjs/ai-components/charts/utils/parse-json-chart.js +15 -0
  28. package/lib/commonjs/ai-components/charts/utils/parse-json-chart.js.map +1 -0
  29. package/lib/commonjs/ai-components/charts/vega-lite/index.js +26 -0
  30. package/lib/commonjs/ai-components/charts/vega-lite/index.js.map +1 -0
  31. package/lib/commonjs/ai-components/charts/vega-lite/parser.js +54 -0
  32. package/lib/commonjs/ai-components/charts/vega-lite/parser.js.map +1 -0
  33. package/lib/commonjs/ai-components/charts/vega-lite/schema.js +82 -0
  34. package/lib/commonjs/ai-components/charts/vega-lite/schema.js.map +1 -0
  35. package/lib/commonjs/ai-components/components/BottomSheet.js +182 -0
  36. package/lib/commonjs/ai-components/components/BottomSheet.js.map +1 -0
  37. package/lib/commonjs/ai-components/components/MarkdownReactiveScrollView.js +81 -0
  38. package/lib/commonjs/ai-components/components/MarkdownReactiveScrollView.js.map +1 -0
  39. package/lib/commonjs/ai-components/components/index.js +26 -0
  40. package/lib/commonjs/ai-components/components/index.js.map +1 -0
  41. package/lib/commonjs/ai-components/contexts/composer-context.js +68 -0
  42. package/lib/commonjs/ai-components/contexts/composer-context.js.map +1 -0
  43. package/lib/commonjs/ai-components/contexts/index.js +26 -0
  44. package/lib/commonjs/ai-components/contexts/index.js.map +1 -0
  45. package/lib/commonjs/ai-components/contexts/theme-context.js +53 -0
  46. package/lib/commonjs/ai-components/contexts/theme-context.js.map +1 -0
  47. package/lib/commonjs/ai-components/index.js +166 -0
  48. package/lib/commonjs/ai-components/index.js.map +1 -0
  49. package/lib/commonjs/ai-components/internal/hooks/useStableCallback.js +14 -0
  50. package/lib/commonjs/ai-components/internal/hooks/useStableCallback.js.map +1 -0
  51. package/lib/commonjs/ai-components/internal/icons/Camera.js +18 -0
  52. package/lib/commonjs/ai-components/internal/icons/Camera.js.map +1 -0
  53. package/lib/commonjs/ai-components/internal/icons/CircleStop.js +24 -0
  54. package/lib/commonjs/ai-components/internal/icons/CircleStop.js.map +1 -0
  55. package/lib/commonjs/ai-components/internal/icons/Close.js +18 -0
  56. package/lib/commonjs/ai-components/internal/icons/Close.js.map +1 -0
  57. package/lib/commonjs/ai-components/internal/icons/Mic.js +27 -0
  58. package/lib/commonjs/ai-components/internal/icons/Mic.js.map +1 -0
  59. package/lib/commonjs/ai-components/internal/icons/Picture.js +21 -0
  60. package/lib/commonjs/ai-components/internal/icons/Picture.js.map +1 -0
  61. package/lib/commonjs/ai-components/internal/icons/SendUp.js +28 -0
  62. package/lib/commonjs/ai-components/internal/icons/SendUp.js.map +1 -0
  63. package/lib/commonjs/ai-components/internal/icons/utils/base.js +42 -0
  64. package/lib/commonjs/ai-components/internal/icons/utils/base.js.map +1 -0
  65. package/lib/commonjs/ai-components/markdown/components/Autolink.js +37 -0
  66. package/lib/commonjs/ai-components/markdown/components/Autolink.js.map +1 -0
  67. package/lib/commonjs/ai-components/markdown/components/BlockQuote.js +37 -0
  68. package/lib/commonjs/ai-components/markdown/components/BlockQuote.js.map +1 -0
  69. package/lib/commonjs/ai-components/markdown/components/Bold.js +32 -0
  70. package/lib/commonjs/ai-components/markdown/components/Bold.js.map +1 -0
  71. package/lib/commonjs/ai-components/markdown/components/CodeBlock.js +114 -0
  72. package/lib/commonjs/ai-components/markdown/components/CodeBlock.js.map +1 -0
  73. package/lib/commonjs/ai-components/markdown/components/Emphasis.js +32 -0
  74. package/lib/commonjs/ai-components/markdown/components/Emphasis.js.map +1 -0
  75. package/lib/commonjs/ai-components/markdown/components/Heading.js +41 -0
  76. package/lib/commonjs/ai-components/markdown/components/Heading.js.map +1 -0
  77. package/lib/commonjs/ai-components/markdown/components/HorizontalRule.js +26 -0
  78. package/lib/commonjs/ai-components/markdown/components/HorizontalRule.js.map +1 -0
  79. package/lib/commonjs/ai-components/markdown/components/InlineCode.js +32 -0
  80. package/lib/commonjs/ai-components/markdown/components/InlineCode.js.map +1 -0
  81. package/lib/commonjs/ai-components/markdown/components/LineBreak.js +27 -0
  82. package/lib/commonjs/ai-components/markdown/components/LineBreak.js.map +1 -0
  83. package/lib/commonjs/ai-components/markdown/components/Link.js +41 -0
  84. package/lib/commonjs/ai-components/markdown/components/Link.js.map +1 -0
  85. package/lib/commonjs/ai-components/markdown/components/List.js +85 -0
  86. package/lib/commonjs/ai-components/markdown/components/List.js.map +1 -0
  87. package/lib/commonjs/ai-components/markdown/components/Mailto.js +37 -0
  88. package/lib/commonjs/ai-components/markdown/components/Mailto.js.map +1 -0
  89. package/lib/commonjs/ai-components/markdown/components/Markdown.js +49 -0
  90. package/lib/commonjs/ai-components/markdown/components/Markdown.js.map +1 -0
  91. package/lib/commonjs/ai-components/markdown/components/NewLine.js +27 -0
  92. package/lib/commonjs/ai-components/markdown/components/NewLine.js.map +1 -0
  93. package/lib/commonjs/ai-components/markdown/components/Paragraph.js +72 -0
  94. package/lib/commonjs/ai-components/markdown/components/Paragraph.js.map +1 -0
  95. package/lib/commonjs/ai-components/markdown/components/Strikethrough.js +32 -0
  96. package/lib/commonjs/ai-components/markdown/components/Strikethrough.js.map +1 -0
  97. package/lib/commonjs/ai-components/markdown/components/Table.js +105 -0
  98. package/lib/commonjs/ai-components/markdown/components/Table.js.map +1 -0
  99. package/lib/commonjs/ai-components/markdown/components/Text.js +45 -0
  100. package/lib/commonjs/ai-components/markdown/components/Text.js.map +1 -0
  101. package/lib/commonjs/ai-components/markdown/components/Url.js +37 -0
  102. package/lib/commonjs/ai-components/markdown/components/Url.js.map +1 -0
  103. package/lib/commonjs/ai-components/markdown/components/index.js +213 -0
  104. package/lib/commonjs/ai-components/markdown/components/index.js.map +1 -0
  105. package/lib/commonjs/ai-components/markdown/index.js +59 -0
  106. package/lib/commonjs/ai-components/markdown/index.js.map +1 -0
  107. package/lib/commonjs/ai-components/markdown/rules.js +152 -0
  108. package/lib/commonjs/ai-components/markdown/rules.js.map +1 -0
  109. package/lib/commonjs/ai-components/markdown/styles.js +240 -0
  110. package/lib/commonjs/ai-components/markdown/styles.js.map +1 -0
  111. package/lib/commonjs/ai-components/markdown/types.js +4 -0
  112. package/lib/commonjs/ai-components/markdown/types.js.map +1 -0
  113. package/lib/commonjs/ai-components/markdown/utils/generate-markdown-text.js +73 -0
  114. package/lib/commonjs/ai-components/markdown/utils/generate-markdown-text.js.map +1 -0
  115. package/lib/commonjs/ai-components/markdown/utils/index.js +15 -0
  116. package/lib/commonjs/ai-components/markdown/utils/index.js.map +1 -0
  117. package/lib/commonjs/ai-components/message-composer/ActionButton.js +104 -0
  118. package/lib/commonjs/ai-components/message-composer/ActionButton.js.map +1 -0
  119. package/lib/commonjs/ai-components/message-composer/ActionSheet.js +197 -0
  120. package/lib/commonjs/ai-components/message-composer/ActionSheet.js.map +1 -0
  121. package/lib/commonjs/ai-components/message-composer/AttachmentButton.js +55 -0
  122. package/lib/commonjs/ai-components/message-composer/AttachmentButton.js.map +1 -0
  123. package/lib/commonjs/ai-components/message-composer/ComposerView.js +151 -0
  124. package/lib/commonjs/ai-components/message-composer/ComposerView.js.map +1 -0
  125. package/lib/commonjs/ai-components/message-composer/MediaPreviewList.js +84 -0
  126. package/lib/commonjs/ai-components/message-composer/MediaPreviewList.js.map +1 -0
  127. package/lib/commonjs/ai-components/message-composer/SpeechToTextButton.js +82 -0
  128. package/lib/commonjs/ai-components/message-composer/SpeechToTextButton.js.map +1 -0
  129. package/lib/commonjs/ai-components/message-composer/index.js +59 -0
  130. package/lib/commonjs/ai-components/message-composer/index.js.map +1 -0
  131. package/lib/commonjs/ai-components/message-composer/utils/withCloseSheet.js +16 -0
  132. package/lib/commonjs/ai-components/message-composer/utils/withCloseSheet.js.map +1 -0
  133. package/lib/commonjs/ai-components/native/AIDictation.js +60 -0
  134. package/lib/commonjs/ai-components/native/AIDictation.js.map +1 -0
  135. package/lib/commonjs/ai-components/native/PerfText.js +31 -0
  136. package/lib/commonjs/ai-components/native/PerfText.js.map +1 -0
  137. package/lib/commonjs/ai-components/native-specs/NativeAIDictation.js +7 -0
  138. package/lib/commonjs/ai-components/native-specs/NativeAIDictation.js.map +1 -0
  139. package/lib/commonjs/ai-components/services/clipboard-service/expo.js +13 -0
  140. package/lib/commonjs/ai-components/services/clipboard-service/expo.js.map +1 -0
  141. package/lib/commonjs/ai-components/services/clipboard-service/index.js +8 -0
  142. package/lib/commonjs/ai-components/services/clipboard-service/index.js.map +1 -0
  143. package/lib/commonjs/ai-components/services/clipboard-service/rncli.js +10 -0
  144. package/lib/commonjs/ai-components/services/clipboard-service/rncli.js.map +1 -0
  145. package/lib/commonjs/ai-components/services/index.js +26 -0
  146. package/lib/commonjs/ai-components/services/index.js.map +1 -0
  147. package/lib/commonjs/ai-components/services/media-picker-service/AbstractMediaPickerService.js +31 -0
  148. package/lib/commonjs/ai-components/services/media-picker-service/AbstractMediaPickerService.js.map +1 -0
  149. package/lib/commonjs/ai-components/services/media-picker-service/expo.js +169 -0
  150. package/lib/commonjs/ai-components/services/media-picker-service/expo.js.map +1 -0
  151. package/lib/commonjs/ai-components/services/media-picker-service/hooks/useMediaPickerState.js +14 -0
  152. package/lib/commonjs/ai-components/services/media-picker-service/hooks/useMediaPickerState.js.map +1 -0
  153. package/lib/commonjs/ai-components/services/media-picker-service/index.js +8 -0
  154. package/lib/commonjs/ai-components/services/media-picker-service/index.js.map +1 -0
  155. package/lib/commonjs/ai-components/services/media-picker-service/optional-modules.d.js +2 -0
  156. package/lib/commonjs/ai-components/services/media-picker-service/optional-modules.d.js.map +1 -0
  157. package/lib/commonjs/ai-components/services/media-picker-service/rncli.js +162 -0
  158. package/lib/commonjs/ai-components/services/media-picker-service/rncli.js.map +1 -0
  159. package/lib/commonjs/ai-components/store/bottom-sheet/store.js +27 -0
  160. package/lib/commonjs/ai-components/store/bottom-sheet/store.js.map +1 -0
  161. package/lib/commonjs/ai-components/store/bottom-sheet/useBottomSheetState.js +16 -0
  162. package/lib/commonjs/ai-components/store/bottom-sheet/useBottomSheetState.js.map +1 -0
  163. package/lib/commonjs/ai-components/store/composer/store.js +11 -0
  164. package/lib/commonjs/ai-components/store/composer/store.js.map +1 -0
  165. package/lib/commonjs/ai-components/store/composer/useComposerHasText.js +18 -0
  166. package/lib/commonjs/ai-components/store/composer/useComposerHasText.js.map +1 -0
  167. package/lib/commonjs/ai-components/store/composer/useComposerText.js +18 -0
  168. package/lib/commonjs/ai-components/store/composer/useComposerText.js.map +1 -0
  169. package/lib/commonjs/ai-components/store/dictation/store.js +17 -0
  170. package/lib/commonjs/ai-components/store/dictation/store.js.map +1 -0
  171. package/lib/commonjs/ai-components/store/dictation/useDictationState.js +18 -0
  172. package/lib/commonjs/ai-components/store/dictation/useDictationState.js.map +1 -0
  173. package/lib/commonjs/ai-components/store/dictation/useDictationTranscript.js +14 -0
  174. package/lib/commonjs/ai-components/store/dictation/useDictationTranscript.js.map +1 -0
  175. package/lib/commonjs/ai-components/store/index.js +70 -0
  176. package/lib/commonjs/ai-components/store/index.js.map +1 -0
  177. package/lib/commonjs/ai-components/syntax-highlighting/SyntaxHighlighter.js +51 -0
  178. package/lib/commonjs/ai-components/syntax-highlighting/SyntaxHighlighter.js.map +1 -0
  179. package/lib/commonjs/ai-components/syntax-highlighting/components/AndroidNativeRenderer.js +35 -0
  180. package/lib/commonjs/ai-components/syntax-highlighting/components/AndroidNativeRenderer.js.map +1 -0
  181. package/lib/commonjs/ai-components/syntax-highlighting/components/index.js +15 -0
  182. package/lib/commonjs/ai-components/syntax-highlighting/components/index.js.map +1 -0
  183. package/lib/commonjs/ai-components/syntax-highlighting/index.js +48 -0
  184. package/lib/commonjs/ai-components/syntax-highlighting/index.js.map +1 -0
  185. package/lib/commonjs/ai-components/syntax-highlighting/prism-config.js +7 -0
  186. package/lib/commonjs/ai-components/syntax-highlighting/prism-config.js.map +1 -0
  187. package/lib/commonjs/ai-components/syntax-highlighting/types.js +4 -0
  188. package/lib/commonjs/ai-components/syntax-highlighting/types.js.map +1 -0
  189. package/lib/commonjs/ai-components/syntax-highlighting/utils/converter.js +107 -0
  190. package/lib/commonjs/ai-components/syntax-highlighting/utils/converter.js.map +1 -0
  191. package/lib/commonjs/ai-components/syntax-highlighting/utils/flatten-nodes.js +139 -0
  192. package/lib/commonjs/ai-components/syntax-highlighting/utils/flatten-nodes.js.map +1 -0
  193. package/lib/commonjs/ai-components/syntax-highlighting/utils/index.js +37 -0
  194. package/lib/commonjs/ai-components/syntax-highlighting/utils/index.js.map +1 -0
  195. package/lib/commonjs/ai-components/syntax-highlighting/utils/renderer.js +117 -0
  196. package/lib/commonjs/ai-components/syntax-highlighting/utils/renderer.js.map +1 -0
  197. package/lib/commonjs/ai-components/theme.js +99 -0
  198. package/lib/commonjs/ai-components/theme.js.map +1 -0
  199. package/lib/commonjs/ai-components/transcription/useDictation.js +114 -0
  200. package/lib/commonjs/ai-components/transcription/useDictation.js.map +1 -0
  201. package/lib/commonjs/native.js +4 -0
  202. package/lib/commonjs/native.js.map +1 -1
  203. package/lib/commonjs/version.json +1 -1
  204. package/lib/module/ai-components/AITypingIndicatorView.js +49 -0
  205. package/lib/module/ai-components/AITypingIndicatorView.js.map +1 -0
  206. package/lib/module/ai-components/README.md +279 -0
  207. package/lib/module/ai-components/StreamingMessageView.js +75 -0
  208. package/lib/module/ai-components/StreamingMessageView.js.map +1 -0
  209. package/lib/module/ai-components/charts/Chart.js +25 -0
  210. package/lib/module/ai-components/charts/Chart.js.map +1 -0
  211. package/lib/module/ai-components/charts/components/PieLegend.js +54 -0
  212. package/lib/module/ai-components/charts/components/PieLegend.js.map +1 -0
  213. package/lib/module/ai-components/charts/components/VictoryChart.js +183 -0
  214. package/lib/module/ai-components/charts/components/VictoryChart.js.map +1 -0
  215. package/lib/module/ai-components/charts/components/index.js +26 -0
  216. package/lib/module/ai-components/charts/components/index.js.map +1 -0
  217. package/lib/module/ai-components/charts/index.js +70 -0
  218. package/lib/module/ai-components/charts/index.js.map +1 -0
  219. package/lib/module/ai-components/charts/mermaid/index.js +15 -0
  220. package/lib/module/ai-components/charts/mermaid/index.js.map +1 -0
  221. package/lib/module/ai-components/charts/mermaid/parser.js +45 -0
  222. package/lib/module/ai-components/charts/mermaid/parser.js.map +1 -0
  223. package/lib/module/ai-components/charts/types.js +2 -0
  224. package/lib/module/ai-components/charts/types.js.map +1 -0
  225. package/lib/module/ai-components/charts/utils/generate-pie-colors.js +68 -0
  226. package/lib/module/ai-components/charts/utils/generate-pie-colors.js.map +1 -0
  227. package/lib/module/ai-components/charts/utils/index.js +26 -0
  228. package/lib/module/ai-components/charts/utils/index.js.map +1 -0
  229. package/lib/module/ai-components/charts/utils/parse-json-chart.js +15 -0
  230. package/lib/module/ai-components/charts/utils/parse-json-chart.js.map +1 -0
  231. package/lib/module/ai-components/charts/vega-lite/index.js +26 -0
  232. package/lib/module/ai-components/charts/vega-lite/index.js.map +1 -0
  233. package/lib/module/ai-components/charts/vega-lite/parser.js +54 -0
  234. package/lib/module/ai-components/charts/vega-lite/parser.js.map +1 -0
  235. package/lib/module/ai-components/charts/vega-lite/schema.js +82 -0
  236. package/lib/module/ai-components/charts/vega-lite/schema.js.map +1 -0
  237. package/lib/module/ai-components/components/BottomSheet.js +182 -0
  238. package/lib/module/ai-components/components/BottomSheet.js.map +1 -0
  239. package/lib/module/ai-components/components/MarkdownReactiveScrollView.js +81 -0
  240. package/lib/module/ai-components/components/MarkdownReactiveScrollView.js.map +1 -0
  241. package/lib/module/ai-components/components/index.js +26 -0
  242. package/lib/module/ai-components/components/index.js.map +1 -0
  243. package/lib/module/ai-components/contexts/composer-context.js +68 -0
  244. package/lib/module/ai-components/contexts/composer-context.js.map +1 -0
  245. package/lib/module/ai-components/contexts/index.js +26 -0
  246. package/lib/module/ai-components/contexts/index.js.map +1 -0
  247. package/lib/module/ai-components/contexts/theme-context.js +53 -0
  248. package/lib/module/ai-components/contexts/theme-context.js.map +1 -0
  249. package/lib/module/ai-components/index.js +166 -0
  250. package/lib/module/ai-components/index.js.map +1 -0
  251. package/lib/module/ai-components/internal/hooks/useStableCallback.js +14 -0
  252. package/lib/module/ai-components/internal/hooks/useStableCallback.js.map +1 -0
  253. package/lib/module/ai-components/internal/icons/Camera.js +18 -0
  254. package/lib/module/ai-components/internal/icons/Camera.js.map +1 -0
  255. package/lib/module/ai-components/internal/icons/CircleStop.js +24 -0
  256. package/lib/module/ai-components/internal/icons/CircleStop.js.map +1 -0
  257. package/lib/module/ai-components/internal/icons/Close.js +18 -0
  258. package/lib/module/ai-components/internal/icons/Close.js.map +1 -0
  259. package/lib/module/ai-components/internal/icons/Mic.js +27 -0
  260. package/lib/module/ai-components/internal/icons/Mic.js.map +1 -0
  261. package/lib/module/ai-components/internal/icons/Picture.js +21 -0
  262. package/lib/module/ai-components/internal/icons/Picture.js.map +1 -0
  263. package/lib/module/ai-components/internal/icons/SendUp.js +28 -0
  264. package/lib/module/ai-components/internal/icons/SendUp.js.map +1 -0
  265. package/lib/module/ai-components/internal/icons/utils/base.js +42 -0
  266. package/lib/module/ai-components/internal/icons/utils/base.js.map +1 -0
  267. package/lib/module/ai-components/markdown/components/Autolink.js +37 -0
  268. package/lib/module/ai-components/markdown/components/Autolink.js.map +1 -0
  269. package/lib/module/ai-components/markdown/components/BlockQuote.js +37 -0
  270. package/lib/module/ai-components/markdown/components/BlockQuote.js.map +1 -0
  271. package/lib/module/ai-components/markdown/components/Bold.js +32 -0
  272. package/lib/module/ai-components/markdown/components/Bold.js.map +1 -0
  273. package/lib/module/ai-components/markdown/components/CodeBlock.js +114 -0
  274. package/lib/module/ai-components/markdown/components/CodeBlock.js.map +1 -0
  275. package/lib/module/ai-components/markdown/components/Emphasis.js +32 -0
  276. package/lib/module/ai-components/markdown/components/Emphasis.js.map +1 -0
  277. package/lib/module/ai-components/markdown/components/Heading.js +41 -0
  278. package/lib/module/ai-components/markdown/components/Heading.js.map +1 -0
  279. package/lib/module/ai-components/markdown/components/HorizontalRule.js +26 -0
  280. package/lib/module/ai-components/markdown/components/HorizontalRule.js.map +1 -0
  281. package/lib/module/ai-components/markdown/components/InlineCode.js +32 -0
  282. package/lib/module/ai-components/markdown/components/InlineCode.js.map +1 -0
  283. package/lib/module/ai-components/markdown/components/LineBreak.js +27 -0
  284. package/lib/module/ai-components/markdown/components/LineBreak.js.map +1 -0
  285. package/lib/module/ai-components/markdown/components/Link.js +41 -0
  286. package/lib/module/ai-components/markdown/components/Link.js.map +1 -0
  287. package/lib/module/ai-components/markdown/components/List.js +85 -0
  288. package/lib/module/ai-components/markdown/components/List.js.map +1 -0
  289. package/lib/module/ai-components/markdown/components/Mailto.js +37 -0
  290. package/lib/module/ai-components/markdown/components/Mailto.js.map +1 -0
  291. package/lib/module/ai-components/markdown/components/Markdown.js +49 -0
  292. package/lib/module/ai-components/markdown/components/Markdown.js.map +1 -0
  293. package/lib/module/ai-components/markdown/components/NewLine.js +27 -0
  294. package/lib/module/ai-components/markdown/components/NewLine.js.map +1 -0
  295. package/lib/module/ai-components/markdown/components/Paragraph.js +72 -0
  296. package/lib/module/ai-components/markdown/components/Paragraph.js.map +1 -0
  297. package/lib/module/ai-components/markdown/components/Strikethrough.js +32 -0
  298. package/lib/module/ai-components/markdown/components/Strikethrough.js.map +1 -0
  299. package/lib/module/ai-components/markdown/components/Table.js +105 -0
  300. package/lib/module/ai-components/markdown/components/Table.js.map +1 -0
  301. package/lib/module/ai-components/markdown/components/Text.js +45 -0
  302. package/lib/module/ai-components/markdown/components/Text.js.map +1 -0
  303. package/lib/module/ai-components/markdown/components/Url.js +37 -0
  304. package/lib/module/ai-components/markdown/components/Url.js.map +1 -0
  305. package/lib/module/ai-components/markdown/components/index.js +213 -0
  306. package/lib/module/ai-components/markdown/components/index.js.map +1 -0
  307. package/lib/module/ai-components/markdown/index.js +59 -0
  308. package/lib/module/ai-components/markdown/index.js.map +1 -0
  309. package/lib/module/ai-components/markdown/rules.js +152 -0
  310. package/lib/module/ai-components/markdown/rules.js.map +1 -0
  311. package/lib/module/ai-components/markdown/styles.js +240 -0
  312. package/lib/module/ai-components/markdown/styles.js.map +1 -0
  313. package/lib/module/ai-components/markdown/types.js +4 -0
  314. package/lib/module/ai-components/markdown/types.js.map +1 -0
  315. package/lib/module/ai-components/markdown/utils/generate-markdown-text.js +73 -0
  316. package/lib/module/ai-components/markdown/utils/generate-markdown-text.js.map +1 -0
  317. package/lib/module/ai-components/markdown/utils/index.js +15 -0
  318. package/lib/module/ai-components/markdown/utils/index.js.map +1 -0
  319. package/lib/module/ai-components/message-composer/ActionButton.js +104 -0
  320. package/lib/module/ai-components/message-composer/ActionButton.js.map +1 -0
  321. package/lib/module/ai-components/message-composer/ActionSheet.js +197 -0
  322. package/lib/module/ai-components/message-composer/ActionSheet.js.map +1 -0
  323. package/lib/module/ai-components/message-composer/AttachmentButton.js +55 -0
  324. package/lib/module/ai-components/message-composer/AttachmentButton.js.map +1 -0
  325. package/lib/module/ai-components/message-composer/ComposerView.js +151 -0
  326. package/lib/module/ai-components/message-composer/ComposerView.js.map +1 -0
  327. package/lib/module/ai-components/message-composer/MediaPreviewList.js +84 -0
  328. package/lib/module/ai-components/message-composer/MediaPreviewList.js.map +1 -0
  329. package/lib/module/ai-components/message-composer/SpeechToTextButton.js +82 -0
  330. package/lib/module/ai-components/message-composer/SpeechToTextButton.js.map +1 -0
  331. package/lib/module/ai-components/message-composer/index.js +59 -0
  332. package/lib/module/ai-components/message-composer/index.js.map +1 -0
  333. package/lib/module/ai-components/message-composer/utils/withCloseSheet.js +16 -0
  334. package/lib/module/ai-components/message-composer/utils/withCloseSheet.js.map +1 -0
  335. package/lib/module/ai-components/native/AIDictation.js +60 -0
  336. package/lib/module/ai-components/native/AIDictation.js.map +1 -0
  337. package/lib/module/ai-components/native/PerfText.js +31 -0
  338. package/lib/module/ai-components/native/PerfText.js.map +1 -0
  339. package/lib/module/ai-components/native-specs/NativeAIDictation.js +7 -0
  340. package/lib/module/ai-components/native-specs/NativeAIDictation.js.map +1 -0
  341. package/lib/module/ai-components/services/clipboard-service/expo.js +13 -0
  342. package/lib/module/ai-components/services/clipboard-service/expo.js.map +1 -0
  343. package/lib/module/ai-components/services/clipboard-service/index.js +8 -0
  344. package/lib/module/ai-components/services/clipboard-service/index.js.map +1 -0
  345. package/lib/module/ai-components/services/clipboard-service/rncli.js +10 -0
  346. package/lib/module/ai-components/services/clipboard-service/rncli.js.map +1 -0
  347. package/lib/module/ai-components/services/index.js +26 -0
  348. package/lib/module/ai-components/services/index.js.map +1 -0
  349. package/lib/module/ai-components/services/media-picker-service/AbstractMediaPickerService.js +31 -0
  350. package/lib/module/ai-components/services/media-picker-service/AbstractMediaPickerService.js.map +1 -0
  351. package/lib/module/ai-components/services/media-picker-service/expo.js +169 -0
  352. package/lib/module/ai-components/services/media-picker-service/expo.js.map +1 -0
  353. package/lib/module/ai-components/services/media-picker-service/hooks/useMediaPickerState.js +14 -0
  354. package/lib/module/ai-components/services/media-picker-service/hooks/useMediaPickerState.js.map +1 -0
  355. package/lib/module/ai-components/services/media-picker-service/index.js +8 -0
  356. package/lib/module/ai-components/services/media-picker-service/index.js.map +1 -0
  357. package/lib/module/ai-components/services/media-picker-service/optional-modules.d.js +2 -0
  358. package/lib/module/ai-components/services/media-picker-service/optional-modules.d.js.map +1 -0
  359. package/lib/module/ai-components/services/media-picker-service/rncli.js +162 -0
  360. package/lib/module/ai-components/services/media-picker-service/rncli.js.map +1 -0
  361. package/lib/module/ai-components/store/bottom-sheet/store.js +27 -0
  362. package/lib/module/ai-components/store/bottom-sheet/store.js.map +1 -0
  363. package/lib/module/ai-components/store/bottom-sheet/useBottomSheetState.js +16 -0
  364. package/lib/module/ai-components/store/bottom-sheet/useBottomSheetState.js.map +1 -0
  365. package/lib/module/ai-components/store/composer/store.js +11 -0
  366. package/lib/module/ai-components/store/composer/store.js.map +1 -0
  367. package/lib/module/ai-components/store/composer/useComposerHasText.js +18 -0
  368. package/lib/module/ai-components/store/composer/useComposerHasText.js.map +1 -0
  369. package/lib/module/ai-components/store/composer/useComposerText.js +18 -0
  370. package/lib/module/ai-components/store/composer/useComposerText.js.map +1 -0
  371. package/lib/module/ai-components/store/dictation/store.js +17 -0
  372. package/lib/module/ai-components/store/dictation/store.js.map +1 -0
  373. package/lib/module/ai-components/store/dictation/useDictationState.js +18 -0
  374. package/lib/module/ai-components/store/dictation/useDictationState.js.map +1 -0
  375. package/lib/module/ai-components/store/dictation/useDictationTranscript.js +14 -0
  376. package/lib/module/ai-components/store/dictation/useDictationTranscript.js.map +1 -0
  377. package/lib/module/ai-components/store/index.js +70 -0
  378. package/lib/module/ai-components/store/index.js.map +1 -0
  379. package/lib/module/ai-components/syntax-highlighting/SyntaxHighlighter.js +51 -0
  380. package/lib/module/ai-components/syntax-highlighting/SyntaxHighlighter.js.map +1 -0
  381. package/lib/module/ai-components/syntax-highlighting/components/AndroidNativeRenderer.js +35 -0
  382. package/lib/module/ai-components/syntax-highlighting/components/AndroidNativeRenderer.js.map +1 -0
  383. package/lib/module/ai-components/syntax-highlighting/components/index.js +15 -0
  384. package/lib/module/ai-components/syntax-highlighting/components/index.js.map +1 -0
  385. package/lib/module/ai-components/syntax-highlighting/index.js +48 -0
  386. package/lib/module/ai-components/syntax-highlighting/index.js.map +1 -0
  387. package/lib/module/ai-components/syntax-highlighting/prism-config.js +7 -0
  388. package/lib/module/ai-components/syntax-highlighting/prism-config.js.map +1 -0
  389. package/lib/module/ai-components/syntax-highlighting/types.js +4 -0
  390. package/lib/module/ai-components/syntax-highlighting/types.js.map +1 -0
  391. package/lib/module/ai-components/syntax-highlighting/utils/converter.js +107 -0
  392. package/lib/module/ai-components/syntax-highlighting/utils/converter.js.map +1 -0
  393. package/lib/module/ai-components/syntax-highlighting/utils/flatten-nodes.js +139 -0
  394. package/lib/module/ai-components/syntax-highlighting/utils/flatten-nodes.js.map +1 -0
  395. package/lib/module/ai-components/syntax-highlighting/utils/index.js +37 -0
  396. package/lib/module/ai-components/syntax-highlighting/utils/index.js.map +1 -0
  397. package/lib/module/ai-components/syntax-highlighting/utils/renderer.js +117 -0
  398. package/lib/module/ai-components/syntax-highlighting/utils/renderer.js.map +1 -0
  399. package/lib/module/ai-components/theme.js +99 -0
  400. package/lib/module/ai-components/theme.js.map +1 -0
  401. package/lib/module/ai-components/transcription/useDictation.js +114 -0
  402. package/lib/module/ai-components/transcription/useDictation.js.map +1 -0
  403. package/lib/module/native.js +4 -0
  404. package/lib/module/native.js.map +1 -1
  405. package/lib/module/version.json +1 -1
  406. package/lib/typescript/ai-components/AITypingIndicatorView.d.ts +4 -0
  407. package/lib/typescript/ai-components/AITypingIndicatorView.d.ts.map +1 -0
  408. package/lib/typescript/ai-components/StreamingMessageView.d.ts +19 -0
  409. package/lib/typescript/ai-components/StreamingMessageView.d.ts.map +1 -0
  410. package/lib/typescript/ai-components/charts/Chart.d.ts +10 -0
  411. package/lib/typescript/ai-components/charts/Chart.d.ts.map +1 -0
  412. package/lib/typescript/ai-components/charts/components/PieLegend.d.ts +7 -0
  413. package/lib/typescript/ai-components/charts/components/PieLegend.d.ts.map +1 -0
  414. package/lib/typescript/ai-components/charts/components/VictoryChart.d.ts +9 -0
  415. package/lib/typescript/ai-components/charts/components/VictoryChart.d.ts.map +1 -0
  416. package/lib/typescript/ai-components/charts/components/index.d.ts +3 -0
  417. package/lib/typescript/ai-components/charts/components/index.d.ts.map +1 -0
  418. package/lib/typescript/ai-components/charts/index.d.ts +7 -0
  419. package/lib/typescript/ai-components/charts/index.d.ts.map +1 -0
  420. package/lib/typescript/ai-components/charts/mermaid/index.d.ts +2 -0
  421. package/lib/typescript/ai-components/charts/mermaid/index.d.ts.map +1 -0
  422. package/lib/typescript/ai-components/charts/mermaid/parser.d.ts +4 -0
  423. package/lib/typescript/ai-components/charts/mermaid/parser.d.ts.map +1 -0
  424. package/lib/typescript/ai-components/charts/types.d.ts +23 -0
  425. package/lib/typescript/ai-components/charts/types.d.ts.map +1 -0
  426. package/lib/typescript/ai-components/charts/utils/generate-pie-colors.d.ts +9 -0
  427. package/lib/typescript/ai-components/charts/utils/generate-pie-colors.d.ts.map +1 -0
  428. package/lib/typescript/ai-components/charts/utils/index.d.ts +3 -0
  429. package/lib/typescript/ai-components/charts/utils/index.d.ts.map +1 -0
  430. package/lib/typescript/ai-components/charts/utils/parse-json-chart.d.ts +3 -0
  431. package/lib/typescript/ai-components/charts/utils/parse-json-chart.d.ts.map +1 -0
  432. package/lib/typescript/ai-components/charts/vega-lite/index.d.ts +3 -0
  433. package/lib/typescript/ai-components/charts/vega-lite/index.d.ts.map +1 -0
  434. package/lib/typescript/ai-components/charts/vega-lite/parser.d.ts +4 -0
  435. package/lib/typescript/ai-components/charts/vega-lite/parser.d.ts.map +1 -0
  436. package/lib/typescript/ai-components/charts/vega-lite/schema.d.ts +305 -0
  437. package/lib/typescript/ai-components/charts/vega-lite/schema.d.ts.map +1 -0
  438. package/lib/typescript/ai-components/components/BottomSheet.d.ts +5 -0
  439. package/lib/typescript/ai-components/components/BottomSheet.d.ts.map +1 -0
  440. package/lib/typescript/ai-components/components/MarkdownReactiveScrollView.d.ts +3 -0
  441. package/lib/typescript/ai-components/components/MarkdownReactiveScrollView.d.ts.map +1 -0
  442. package/lib/typescript/ai-components/components/index.d.ts +3 -0
  443. package/lib/typescript/ai-components/components/index.d.ts.map +1 -0
  444. package/lib/typescript/ai-components/contexts/composer-context.d.ts +16 -0
  445. package/lib/typescript/ai-components/contexts/composer-context.d.ts.map +1 -0
  446. package/lib/typescript/ai-components/contexts/index.d.ts +3 -0
  447. package/lib/typescript/ai-components/contexts/index.d.ts.map +1 -0
  448. package/lib/typescript/ai-components/contexts/theme-context.d.ts +23 -0
  449. package/lib/typescript/ai-components/contexts/theme-context.d.ts.map +1 -0
  450. package/lib/typescript/ai-components/index.d.ts +15 -0
  451. package/lib/typescript/ai-components/index.d.ts.map +1 -0
  452. package/lib/typescript/ai-components/internal/hooks/useStableCallback.d.ts +26 -0
  453. package/lib/typescript/ai-components/internal/hooks/useStableCallback.d.ts.map +1 -0
  454. package/lib/typescript/ai-components/internal/icons/Camera.d.ts +4 -0
  455. package/lib/typescript/ai-components/internal/icons/Camera.d.ts.map +1 -0
  456. package/lib/typescript/ai-components/internal/icons/CircleStop.d.ts +8 -0
  457. package/lib/typescript/ai-components/internal/icons/CircleStop.d.ts.map +1 -0
  458. package/lib/typescript/ai-components/internal/icons/Close.d.ts +4 -0
  459. package/lib/typescript/ai-components/internal/icons/Close.d.ts.map +1 -0
  460. package/lib/typescript/ai-components/internal/icons/Mic.d.ts +8 -0
  461. package/lib/typescript/ai-components/internal/icons/Mic.d.ts.map +1 -0
  462. package/lib/typescript/ai-components/internal/icons/Picture.d.ts +4 -0
  463. package/lib/typescript/ai-components/internal/icons/Picture.d.ts.map +1 -0
  464. package/lib/typescript/ai-components/internal/icons/SendUp.d.ts +8 -0
  465. package/lib/typescript/ai-components/internal/icons/SendUp.d.ts.map +1 -0
  466. package/lib/typescript/ai-components/internal/icons/utils/base.d.ts +13 -0
  467. package/lib/typescript/ai-components/internal/icons/utils/base.d.ts.map +1 -0
  468. package/lib/typescript/ai-components/markdown/components/Autolink.d.ts +4 -0
  469. package/lib/typescript/ai-components/markdown/components/Autolink.d.ts.map +1 -0
  470. package/lib/typescript/ai-components/markdown/components/BlockQuote.d.ts +4 -0
  471. package/lib/typescript/ai-components/markdown/components/BlockQuote.d.ts.map +1 -0
  472. package/lib/typescript/ai-components/markdown/components/Bold.d.ts +4 -0
  473. package/lib/typescript/ai-components/markdown/components/Bold.d.ts.map +1 -0
  474. package/lib/typescript/ai-components/markdown/components/CodeBlock.d.ts +9 -0
  475. package/lib/typescript/ai-components/markdown/components/CodeBlock.d.ts.map +1 -0
  476. package/lib/typescript/ai-components/markdown/components/Emphasis.d.ts +4 -0
  477. package/lib/typescript/ai-components/markdown/components/Emphasis.d.ts.map +1 -0
  478. package/lib/typescript/ai-components/markdown/components/Heading.d.ts +4 -0
  479. package/lib/typescript/ai-components/markdown/components/Heading.d.ts.map +1 -0
  480. package/lib/typescript/ai-components/markdown/components/HorizontalRule.d.ts +4 -0
  481. package/lib/typescript/ai-components/markdown/components/HorizontalRule.d.ts.map +1 -0
  482. package/lib/typescript/ai-components/markdown/components/InlineCode.d.ts +4 -0
  483. package/lib/typescript/ai-components/markdown/components/InlineCode.d.ts.map +1 -0
  484. package/lib/typescript/ai-components/markdown/components/LineBreak.d.ts +4 -0
  485. package/lib/typescript/ai-components/markdown/components/LineBreak.d.ts.map +1 -0
  486. package/lib/typescript/ai-components/markdown/components/Link.d.ts +4 -0
  487. package/lib/typescript/ai-components/markdown/components/Link.d.ts.map +1 -0
  488. package/lib/typescript/ai-components/markdown/components/List.d.ts +4 -0
  489. package/lib/typescript/ai-components/markdown/components/List.d.ts.map +1 -0
  490. package/lib/typescript/ai-components/markdown/components/Mailto.d.ts +4 -0
  491. package/lib/typescript/ai-components/markdown/components/Mailto.d.ts.map +1 -0
  492. package/lib/typescript/ai-components/markdown/components/Markdown.d.ts +4 -0
  493. package/lib/typescript/ai-components/markdown/components/Markdown.d.ts.map +1 -0
  494. package/lib/typescript/ai-components/markdown/components/NewLine.d.ts +4 -0
  495. package/lib/typescript/ai-components/markdown/components/NewLine.d.ts.map +1 -0
  496. package/lib/typescript/ai-components/markdown/components/Paragraph.d.ts +5 -0
  497. package/lib/typescript/ai-components/markdown/components/Paragraph.d.ts.map +1 -0
  498. package/lib/typescript/ai-components/markdown/components/Strikethrough.d.ts +4 -0
  499. package/lib/typescript/ai-components/markdown/components/Strikethrough.d.ts.map +1 -0
  500. package/lib/typescript/ai-components/markdown/components/Table.d.ts +4 -0
  501. package/lib/typescript/ai-components/markdown/components/Table.d.ts.map +1 -0
  502. package/lib/typescript/ai-components/markdown/components/Text.d.ts +4 -0
  503. package/lib/typescript/ai-components/markdown/components/Text.d.ts.map +1 -0
  504. package/lib/typescript/ai-components/markdown/components/Url.d.ts +4 -0
  505. package/lib/typescript/ai-components/markdown/components/Url.d.ts.map +1 -0
  506. package/lib/typescript/ai-components/markdown/components/index.d.ts +20 -0
  507. package/lib/typescript/ai-components/markdown/components/index.d.ts.map +1 -0
  508. package/lib/typescript/ai-components/markdown/index.d.ts +6 -0
  509. package/lib/typescript/ai-components/markdown/index.d.ts.map +1 -0
  510. package/lib/typescript/ai-components/markdown/rules.d.ts +4 -0
  511. package/lib/typescript/ai-components/markdown/rules.d.ts.map +1 -0
  512. package/lib/typescript/ai-components/markdown/styles.d.ts +232 -0
  513. package/lib/typescript/ai-components/markdown/styles.d.ts.map +1 -0
  514. package/lib/typescript/ai-components/markdown/types.d.ts +137 -0
  515. package/lib/typescript/ai-components/markdown/types.d.ts.map +1 -0
  516. package/lib/typescript/ai-components/markdown/utils/generate-markdown-text.d.ts +5 -0
  517. package/lib/typescript/ai-components/markdown/utils/generate-markdown-text.d.ts.map +1 -0
  518. package/lib/typescript/ai-components/markdown/utils/index.d.ts +2 -0
  519. package/lib/typescript/ai-components/markdown/utils/index.d.ts.map +1 -0
  520. package/lib/typescript/ai-components/message-composer/ActionButton.d.ts +4 -0
  521. package/lib/typescript/ai-components/message-composer/ActionButton.d.ts.map +1 -0
  522. package/lib/typescript/ai-components/message-composer/ActionSheet.d.ts +16 -0
  523. package/lib/typescript/ai-components/message-composer/ActionSheet.d.ts.map +1 -0
  524. package/lib/typescript/ai-components/message-composer/AttachmentButton.d.ts +3 -0
  525. package/lib/typescript/ai-components/message-composer/AttachmentButton.d.ts.map +1 -0
  526. package/lib/typescript/ai-components/message-composer/ComposerView.d.ts +33 -0
  527. package/lib/typescript/ai-components/message-composer/ComposerView.d.ts.map +1 -0
  528. package/lib/typescript/ai-components/message-composer/MediaPreviewList.d.ts +3 -0
  529. package/lib/typescript/ai-components/message-composer/MediaPreviewList.d.ts.map +1 -0
  530. package/lib/typescript/ai-components/message-composer/SpeechToTextButton.d.ts +12 -0
  531. package/lib/typescript/ai-components/message-composer/SpeechToTextButton.d.ts.map +1 -0
  532. package/lib/typescript/ai-components/message-composer/index.d.ts +6 -0
  533. package/lib/typescript/ai-components/message-composer/index.d.ts.map +1 -0
  534. package/lib/typescript/ai-components/message-composer/utils/withCloseSheet.d.ts +2 -0
  535. package/lib/typescript/ai-components/message-composer/utils/withCloseSheet.d.ts.map +1 -0
  536. package/lib/typescript/ai-components/native/AIDictation.d.ts +18 -0
  537. package/lib/typescript/ai-components/native/AIDictation.d.ts.map +1 -0
  538. package/lib/typescript/ai-components/native/PerfText.d.ts +13 -0
  539. package/lib/typescript/ai-components/native/PerfText.d.ts.map +1 -0
  540. package/lib/typescript/ai-components/native-specs/NativeAIDictation.d.ts +40 -0
  541. package/lib/typescript/ai-components/native-specs/NativeAIDictation.d.ts.map +1 -0
  542. package/lib/typescript/ai-components/services/clipboard-service/expo.d.ts +2 -0
  543. package/lib/typescript/ai-components/services/clipboard-service/expo.d.ts.map +1 -0
  544. package/lib/typescript/ai-components/services/clipboard-service/index.d.ts +2 -0
  545. package/lib/typescript/ai-components/services/clipboard-service/index.d.ts.map +1 -0
  546. package/lib/typescript/ai-components/services/clipboard-service/rncli.d.ts +2 -0
  547. package/lib/typescript/ai-components/services/clipboard-service/rncli.d.ts.map +1 -0
  548. package/lib/typescript/ai-components/services/index.d.ts +3 -0
  549. package/lib/typescript/ai-components/services/index.d.ts.map +1 -0
  550. package/lib/typescript/ai-components/services/media-picker-service/AbstractMediaPickerService.d.ts +40 -0
  551. package/lib/typescript/ai-components/services/media-picker-service/AbstractMediaPickerService.d.ts.map +1 -0
  552. package/lib/typescript/ai-components/services/media-picker-service/expo.d.ts +34 -0
  553. package/lib/typescript/ai-components/services/media-picker-service/expo.d.ts.map +1 -0
  554. package/lib/typescript/ai-components/services/media-picker-service/hooks/useMediaPickerState.d.ts +11 -0
  555. package/lib/typescript/ai-components/services/media-picker-service/hooks/useMediaPickerState.d.ts.map +1 -0
  556. package/lib/typescript/ai-components/services/media-picker-service/index.d.ts +37 -0
  557. package/lib/typescript/ai-components/services/media-picker-service/index.d.ts.map +1 -0
  558. package/lib/typescript/ai-components/services/media-picker-service/rncli.d.ts +34 -0
  559. package/lib/typescript/ai-components/services/media-picker-service/rncli.d.ts.map +1 -0
  560. package/lib/typescript/ai-components/store/bottom-sheet/store.d.ts +12 -0
  561. package/lib/typescript/ai-components/store/bottom-sheet/store.d.ts.map +1 -0
  562. package/lib/typescript/ai-components/store/bottom-sheet/useBottomSheetState.d.ts +5 -0
  563. package/lib/typescript/ai-components/store/bottom-sheet/useBottomSheetState.d.ts.map +1 -0
  564. package/lib/typescript/ai-components/store/composer/store.d.ts +7 -0
  565. package/lib/typescript/ai-components/store/composer/store.d.ts.map +1 -0
  566. package/lib/typescript/ai-components/store/composer/useComposerHasText.d.ts +4 -0
  567. package/lib/typescript/ai-components/store/composer/useComposerHasText.d.ts.map +1 -0
  568. package/lib/typescript/ai-components/store/composer/useComposerText.d.ts +4 -0
  569. package/lib/typescript/ai-components/store/composer/useComposerText.d.ts.map +1 -0
  570. package/lib/typescript/ai-components/store/dictation/store.d.ts +13 -0
  571. package/lib/typescript/ai-components/store/dictation/store.d.ts.map +1 -0
  572. package/lib/typescript/ai-components/store/dictation/useDictationState.d.ts +6 -0
  573. package/lib/typescript/ai-components/store/dictation/useDictationState.d.ts.map +1 -0
  574. package/lib/typescript/ai-components/store/dictation/useDictationTranscript.d.ts +4 -0
  575. package/lib/typescript/ai-components/store/dictation/useDictationTranscript.d.ts.map +1 -0
  576. package/lib/typescript/ai-components/store/index.d.ts +7 -0
  577. package/lib/typescript/ai-components/store/index.d.ts.map +1 -0
  578. package/lib/typescript/ai-components/syntax-highlighting/SyntaxHighlighter.d.ts +11 -0
  579. package/lib/typescript/ai-components/syntax-highlighting/SyntaxHighlighter.d.ts.map +1 -0
  580. package/lib/typescript/ai-components/syntax-highlighting/components/AndroidNativeRenderer.d.ts +10 -0
  581. package/lib/typescript/ai-components/syntax-highlighting/components/AndroidNativeRenderer.d.ts.map +1 -0
  582. package/lib/typescript/ai-components/syntax-highlighting/components/index.d.ts +2 -0
  583. package/lib/typescript/ai-components/syntax-highlighting/components/index.d.ts.map +1 -0
  584. package/lib/typescript/ai-components/syntax-highlighting/index.d.ts +10 -0
  585. package/lib/typescript/ai-components/syntax-highlighting/index.d.ts.map +1 -0
  586. package/lib/typescript/ai-components/syntax-highlighting/prism-config.d.ts +2 -0
  587. package/lib/typescript/ai-components/syntax-highlighting/prism-config.d.ts.map +1 -0
  588. package/lib/typescript/ai-components/syntax-highlighting/types.d.ts +21 -0
  589. package/lib/typescript/ai-components/syntax-highlighting/types.d.ts.map +1 -0
  590. package/lib/typescript/ai-components/syntax-highlighting/utils/converter.d.ts +5 -0
  591. package/lib/typescript/ai-components/syntax-highlighting/utils/converter.d.ts.map +1 -0
  592. package/lib/typescript/ai-components/syntax-highlighting/utils/flatten-nodes.d.ts +19 -0
  593. package/lib/typescript/ai-components/syntax-highlighting/utils/flatten-nodes.d.ts.map +1 -0
  594. package/lib/typescript/ai-components/syntax-highlighting/utils/index.d.ts +4 -0
  595. package/lib/typescript/ai-components/syntax-highlighting/utils/index.d.ts.map +1 -0
  596. package/lib/typescript/ai-components/syntax-highlighting/utils/renderer.d.ts +30 -0
  597. package/lib/typescript/ai-components/syntax-highlighting/utils/renderer.d.ts.map +1 -0
  598. package/lib/typescript/ai-components/theme.d.ts +58 -0
  599. package/lib/typescript/ai-components/theme.d.ts.map +1 -0
  600. package/lib/typescript/ai-components/transcription/useDictation.d.ts +8 -0
  601. package/lib/typescript/ai-components/transcription/useDictation.d.ts.map +1 -0
  602. package/lib/typescript/native.d.ts +17 -1
  603. package/lib/typescript/native.d.ts.map +1 -1
  604. package/package.json +23 -5
  605. package/src/ai-components/AITypingIndicatorView.tsx +51 -0
  606. package/src/ai-components/README.md +279 -0
  607. package/src/ai-components/StreamingMessageView.tsx +85 -0
  608. package/src/ai-components/__tests__/ComposerView.test.tsx +113 -0
  609. package/src/ai-components/__tests__/Markdown.test.tsx +94 -0
  610. package/src/ai-components/__tests__/StreamingMessageView.test.tsx +126 -0
  611. package/src/ai-components/__tests__/SyntaxHighlighter.test.tsx +136 -0
  612. package/src/ai-components/__tests__/charts.test.ts +131 -0
  613. package/src/ai-components/__tests__/dictation.test.tsx +166 -0
  614. package/src/ai-components/__tests__/generateMarkdownText.test.ts +54 -0
  615. package/src/ai-components/__tests__/theme.test.tsx +41 -0
  616. package/src/ai-components/charts/Chart.tsx +20 -0
  617. package/src/ai-components/charts/components/PieLegend.tsx +50 -0
  618. package/src/ai-components/charts/components/VictoryChart.tsx +193 -0
  619. package/src/ai-components/charts/components/index.ts +2 -0
  620. package/src/ai-components/charts/index.ts +13 -0
  621. package/src/ai-components/charts/mermaid/index.ts +1 -0
  622. package/src/ai-components/charts/mermaid/parser.ts +33 -0
  623. package/src/ai-components/charts/types.ts +25 -0
  624. package/src/ai-components/charts/utils/generate-pie-colors.ts +82 -0
  625. package/src/ai-components/charts/utils/index.ts +2 -0
  626. package/src/ai-components/charts/utils/parse-json-chart.ts +15 -0
  627. package/src/ai-components/charts/vega-lite/index.ts +2 -0
  628. package/src/ai-components/charts/vega-lite/parser.ts +49 -0
  629. package/src/ai-components/charts/vega-lite/schema.ts +112 -0
  630. package/src/ai-components/components/BottomSheet.tsx +158 -0
  631. package/src/ai-components/components/MarkdownReactiveScrollView.tsx +92 -0
  632. package/src/ai-components/components/index.ts +2 -0
  633. package/src/ai-components/contexts/composer-context.tsx +73 -0
  634. package/src/ai-components/contexts/index.ts +2 -0
  635. package/src/ai-components/contexts/theme-context.tsx +68 -0
  636. package/src/ai-components/index.ts +29 -0
  637. package/src/ai-components/internal/hooks/useStableCallback.ts +37 -0
  638. package/src/ai-components/internal/icons/Camera.tsx +12 -0
  639. package/src/ai-components/internal/icons/CircleStop.tsx +18 -0
  640. package/src/ai-components/internal/icons/Close.tsx +12 -0
  641. package/src/ai-components/internal/icons/Mic.tsx +20 -0
  642. package/src/ai-components/internal/icons/Picture.tsx +16 -0
  643. package/src/ai-components/internal/icons/SendUp.tsx +21 -0
  644. package/src/ai-components/internal/icons/utils/base.tsx +44 -0
  645. package/src/ai-components/markdown/components/Autolink.tsx +26 -0
  646. package/src/ai-components/markdown/components/BlockQuote.tsx +19 -0
  647. package/src/ai-components/markdown/components/Bold.tsx +16 -0
  648. package/src/ai-components/markdown/components/CodeBlock.tsx +96 -0
  649. package/src/ai-components/markdown/components/Emphasis.tsx +16 -0
  650. package/src/ai-components/markdown/components/Heading.tsx +30 -0
  651. package/src/ai-components/markdown/components/HorizontalRule.tsx +9 -0
  652. package/src/ai-components/markdown/components/InlineCode.tsx +16 -0
  653. package/src/ai-components/markdown/components/LineBreak.tsx +11 -0
  654. package/src/ai-components/markdown/components/Link.tsx +28 -0
  655. package/src/ai-components/markdown/components/List.tsx +65 -0
  656. package/src/ai-components/markdown/components/Mailto.tsx +26 -0
  657. package/src/ai-components/markdown/components/Markdown.tsx +59 -0
  658. package/src/ai-components/markdown/components/NewLine.tsx +11 -0
  659. package/src/ai-components/markdown/components/Paragraph.tsx +69 -0
  660. package/src/ai-components/markdown/components/Strikethrough.tsx +16 -0
  661. package/src/ai-components/markdown/components/Table.tsx +81 -0
  662. package/src/ai-components/markdown/components/Text.tsx +37 -0
  663. package/src/ai-components/markdown/components/Url.tsx +26 -0
  664. package/src/ai-components/markdown/components/index.ts +20 -0
  665. package/src/ai-components/markdown/index.tsx +5 -0
  666. package/src/ai-components/markdown/rules.ts +216 -0
  667. package/src/ai-components/markdown/styles.ts +236 -0
  668. package/src/ai-components/markdown/types.ts +163 -0
  669. package/src/ai-components/markdown/utils/generate-markdown-text.ts +117 -0
  670. package/src/ai-components/markdown/utils/index.ts +1 -0
  671. package/src/ai-components/message-composer/ActionButton.tsx +99 -0
  672. package/src/ai-components/message-composer/ActionSheet.tsx +205 -0
  673. package/src/ai-components/message-composer/AttachmentButton.tsx +49 -0
  674. package/src/ai-components/message-composer/ComposerView.tsx +187 -0
  675. package/src/ai-components/message-composer/MediaPreviewList.tsx +84 -0
  676. package/src/ai-components/message-composer/SpeechToTextButton.tsx +79 -0
  677. package/src/ai-components/message-composer/index.ts +5 -0
  678. package/src/ai-components/message-composer/utils/withCloseSheet.ts +11 -0
  679. package/src/ai-components/native/AIDictation.ts +77 -0
  680. package/src/ai-components/native/PerfText.tsx +32 -0
  681. package/src/ai-components/native-specs/NativeAIDictation.ts +48 -0
  682. package/src/ai-components/services/clipboard-service/expo.ts +11 -0
  683. package/src/ai-components/services/clipboard-service/index.ts +4 -0
  684. package/src/ai-components/services/clipboard-service/rncli.ts +11 -0
  685. package/src/ai-components/services/index.ts +2 -0
  686. package/src/ai-components/services/media-picker-service/AbstractMediaPickerService.ts +62 -0
  687. package/src/ai-components/services/media-picker-service/expo.ts +148 -0
  688. package/src/ai-components/services/media-picker-service/hooks/useMediaPickerState.ts +14 -0
  689. package/src/ai-components/services/media-picker-service/index.ts +4 -0
  690. package/src/ai-components/services/media-picker-service/optional-modules.d.ts +25 -0
  691. package/src/ai-components/services/media-picker-service/rncli.ts +142 -0
  692. package/src/ai-components/store/bottom-sheet/store.ts +30 -0
  693. package/src/ai-components/store/bottom-sheet/useBottomSheetState.ts +10 -0
  694. package/src/ai-components/store/composer/store.ts +12 -0
  695. package/src/ai-components/store/composer/useComposerHasText.ts +14 -0
  696. package/src/ai-components/store/composer/useComposerText.ts +14 -0
  697. package/src/ai-components/store/dictation/store.ts +23 -0
  698. package/src/ai-components/store/dictation/useDictationState.ts +11 -0
  699. package/src/ai-components/store/dictation/useDictationTranscript.ts +9 -0
  700. package/src/ai-components/store/index.ts +11 -0
  701. package/src/ai-components/syntax-highlighting/SyntaxHighlighter.tsx +66 -0
  702. package/src/ai-components/syntax-highlighting/components/AndroidNativeRenderer.tsx +29 -0
  703. package/src/ai-components/syntax-highlighting/components/index.ts +1 -0
  704. package/src/ai-components/syntax-highlighting/index.ts +11 -0
  705. package/src/ai-components/syntax-highlighting/prism-config.ts +4 -0
  706. package/src/ai-components/syntax-highlighting/types.ts +26 -0
  707. package/src/ai-components/syntax-highlighting/utils/converter.ts +145 -0
  708. package/src/ai-components/syntax-highlighting/utils/flatten-nodes.ts +150 -0
  709. package/src/ai-components/syntax-highlighting/utils/index.ts +3 -0
  710. package/src/ai-components/syntax-highlighting/utils/renderer.tsx +151 -0
  711. package/src/ai-components/theme.ts +138 -0
  712. package/src/ai-components/transcription/useDictation.ts +106 -0
  713. package/src/native.ts +19 -1
  714. package/src/version.json +1 -1
@@ -0,0 +1,59 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ var _ComposerView = require("./ComposerView");
5
+ Object.keys(_ComposerView).forEach(function (key) {
6
+ if (key === "default" || key === "__esModule") return;
7
+ if (key in exports && exports[key] === _ComposerView[key]) return;
8
+ Object.defineProperty(exports, key, {
9
+ enumerable: true,
10
+ get: function () {
11
+ return _ComposerView[key];
12
+ }
13
+ });
14
+ });
15
+ var _ActionButton = require("./ActionButton");
16
+ Object.keys(_ActionButton).forEach(function (key) {
17
+ if (key === "default" || key === "__esModule") return;
18
+ if (key in exports && exports[key] === _ActionButton[key]) return;
19
+ Object.defineProperty(exports, key, {
20
+ enumerable: true,
21
+ get: function () {
22
+ return _ActionButton[key];
23
+ }
24
+ });
25
+ });
26
+ var _AttachmentButton = require("./AttachmentButton");
27
+ Object.keys(_AttachmentButton).forEach(function (key) {
28
+ if (key === "default" || key === "__esModule") return;
29
+ if (key in exports && exports[key] === _AttachmentButton[key]) return;
30
+ Object.defineProperty(exports, key, {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _AttachmentButton[key];
34
+ }
35
+ });
36
+ });
37
+ var _MediaPreviewList = require("./MediaPreviewList");
38
+ Object.keys(_MediaPreviewList).forEach(function (key) {
39
+ if (key === "default" || key === "__esModule") return;
40
+ if (key in exports && exports[key] === _MediaPreviewList[key]) return;
41
+ Object.defineProperty(exports, key, {
42
+ enumerable: true,
43
+ get: function () {
44
+ return _MediaPreviewList[key];
45
+ }
46
+ });
47
+ });
48
+ var _SpeechToTextButton = require("./SpeechToTextButton");
49
+ Object.keys(_SpeechToTextButton).forEach(function (key) {
50
+ if (key === "default" || key === "__esModule") return;
51
+ if (key in exports && exports[key] === _SpeechToTextButton[key]) return;
52
+ Object.defineProperty(exports, key, {
53
+ enumerable: true,
54
+ get: function () {
55
+ return _SpeechToTextButton[key];
56
+ }
57
+ });
58
+ });
59
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_ComposerView","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_ActionButton","_AttachmentButton","_MediaPreviewList","_SpeechToTextButton"],"sourceRoot":"../../../../src","sources":["ai-components/message-composer/index.ts"],"mappings":";;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,aAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,aAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,aAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,aAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,aAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,iBAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,iBAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,iBAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,iBAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,iBAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,iBAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,iBAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,iBAAA,CAAAP,GAAA;IAAA;EAAA;AAAA;AACA,IAAAQ,mBAAA,GAAAZ,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAU,mBAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAQ,mBAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,mBAAA,CAAAR,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -0,0 +1,16 @@
1
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ exports.withCloseSheet = void 0;
6
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
7
+ var _store = require("../../store");
8
+ var withCloseSheet = callback => {
9
+ return (0, _asyncToGenerator2.default)(function* (...args) {
10
+ var result = yield callback(...args);
11
+ _store.sheetStoreApi.closeSheet();
12
+ return result;
13
+ });
14
+ };
15
+ exports.withCloseSheet = withCloseSheet;
16
+ //# sourceMappingURL=withCloseSheet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_store","require","withCloseSheet","callback","_asyncToGenerator2","default","args","result","sheetStoreApi","closeSheet","exports"],"sourceRoot":"../../../../../src","sources":["ai-components/message-composer/utils/withCloseSheet.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEO,IAAMC,cAAc,GACzBC,QAAuF,IACpF;EACH,WAAAC,kBAAA,CAAAC,OAAA,EAAO,WAAO,GAAGC,IAAO,EAAK;IAC3B,IAAMC,MAAM,SAASJ,QAAQ,CAAC,GAAGG,IAAI,CAAC;IACtCE,oBAAa,CAACC,UAAU,CAAC,CAAC;IAC1B,OAAOF,MAAM;EACf,CAAC;AACH,CAAC;AAACG,OAAA,CAAAR,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -0,0 +1,60 @@
1
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ exports.warnIfDictationUnavailable = exports.isDictationAvailable = exports.AIDictation = void 0;
6
+ var _reactNative = require("react-native");
7
+ var _NativeAIDictation = _interopRequireDefault(require("../native-specs/NativeAIDictation"));
8
+ var ON_STATE_EVENT = 'AIDictationOnState';
9
+ var ON_RESULT_EVENT = 'AIDictationOnResult';
10
+ var ON_ERROR_EVENT = 'AIDictationOnError';
11
+ var eventEmitter;
12
+ var getEventEmitter = () => {
13
+ if (!eventEmitter && _NativeAIDictation.default) {
14
+ eventEmitter = new _reactNative.NativeEventEmitter(_NativeAIDictation.default);
15
+ }
16
+ return eventEmitter;
17
+ };
18
+ var noop = () => {};
19
+ var isDictationAvailable = () => _NativeAIDictation.default != null;
20
+ exports.isDictationAvailable = isDictationAvailable;
21
+ var hasWarnedAboutMissingModule = false;
22
+ var warnIfDictationUnavailable = () => {
23
+ if (!__DEV__ || hasWarnedAboutMissingModule || isDictationAvailable()) {
24
+ return;
25
+ }
26
+ hasWarnedAboutMissingModule = true;
27
+ console.warn(_reactNative.Platform.OS === 'ios' ? '[stream-chat-react-native/ai-components] Dictation is not compiled into this build, so the speech-to-text button is hidden. Add `$StreamChatEnableDictation = true` to your Podfile (Expo: add the `stream-chat-expo` config plugin) and run `pod install`.' : '[stream-chat-react-native/ai-components] Dictation is not available in this build, so the speech-to-text button is hidden.');
28
+ };
29
+ exports.warnIfDictationUnavailable = warnIfDictationUnavailable;
30
+ var AIDictation = exports.AIDictation = {
31
+ start(options) {
32
+ _NativeAIDictation.default == null || _NativeAIDictation.default.start(options);
33
+ },
34
+ stop() {
35
+ _NativeAIDictation.default == null || _NativeAIDictation.default.stop();
36
+ },
37
+ cancel() {
38
+ _NativeAIDictation.default == null || _NativeAIDictation.default.cancel();
39
+ },
40
+ isRecording() {
41
+ var _NativeAIDictation$is;
42
+ return (_NativeAIDictation$is = _NativeAIDictation.default == null ? void 0 : _NativeAIDictation.default.isRecording()) != null ? _NativeAIDictation$is : false;
43
+ },
44
+ addResultListener(listener) {
45
+ var _getEventEmitter;
46
+ var sub = (_getEventEmitter = getEventEmitter()) == null ? void 0 : _getEventEmitter.addListener(ON_RESULT_EVENT, event => listener(event));
47
+ return sub ? () => sub.remove() : noop;
48
+ },
49
+ addStateListener(listener) {
50
+ var _getEventEmitter2;
51
+ var sub = (_getEventEmitter2 = getEventEmitter()) == null ? void 0 : _getEventEmitter2.addListener(ON_STATE_EVENT, event => listener(event));
52
+ return sub ? () => sub.remove() : noop;
53
+ },
54
+ addErrorListener(listener) {
55
+ var _getEventEmitter3;
56
+ var sub = (_getEventEmitter3 = getEventEmitter()) == null ? void 0 : _getEventEmitter3.addListener(ON_ERROR_EVENT, event => listener(event));
57
+ return sub ? () => sub.remove() : noop;
58
+ }
59
+ };
60
+ //# sourceMappingURL=AIDictation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_NativeAIDictation","_interopRequireDefault","ON_STATE_EVENT","ON_RESULT_EVENT","ON_ERROR_EVENT","eventEmitter","getEventEmitter","NativeAIDictation","NativeEventEmitter","noop","isDictationAvailable","exports","hasWarnedAboutMissingModule","warnIfDictationUnavailable","__DEV__","console","warn","Platform","OS","AIDictation","start","options","stop","cancel","isRecording","_NativeAIDictation$is","addResultListener","listener","_getEventEmitter","sub","addListener","event","remove","addStateListener","_getEventEmitter2","addErrorListener","_getEventEmitter3"],"sourceRoot":"../../../../src","sources":["ai-components/native/AIDictation.ts"],"mappings":";;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,kBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAQA,IAAMG,cAAc,GAAG,oBAAoB;AAC3C,IAAMC,eAAe,GAAG,qBAAqB;AAC7C,IAAMC,cAAc,GAAG,oBAAoB;AAE3C,IAAIC,YAA4C;AAChD,IAAMC,eAAe,GAAGA,CAAA,KAAM;EAC5B,IAAI,CAACD,YAAY,IAAIE,0BAAiB,EAAE;IACtCF,YAAY,GAAG,IAAIG,+BAAkB,CAACD,0BAAiB,CAAC;EAC1D;EACA,OAAOF,YAAY;AACrB,CAAC;AAED,IAAMI,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;AAOd,IAAMC,oBAAoB,GAAGA,CAAA,KAAMH,0BAAiB,IAAI,IAAI;AAACI,OAAA,CAAAD,oBAAA,GAAAA,oBAAA;AAEpE,IAAIE,2BAA2B,GAAG,KAAK;AAChC,IAAMC,0BAA0B,GAAGA,CAAA,KAAM;EAC9C,IAAI,CAACC,OAAO,IAAIF,2BAA2B,IAAIF,oBAAoB,CAAC,CAAC,EAAE;IACrE;EACF;EACAE,2BAA2B,GAAG,IAAI;EAClCG,OAAO,CAACC,IAAI,CACVC,qBAAQ,CAACC,EAAE,KAAK,KAAK,GACjB,6PAA6P,GAC7P,4HACN,CAAC;AACH,CAAC;AAACP,OAAA,CAAAE,0BAAA,GAAAA,0BAAA;AAGK,IAAMM,WAAW,GAAAR,OAAA,CAAAQ,WAAA,GAAG;EACzBC,KAAKA,CAACC,OAA+B,EAAE;IACrCd,0BAAiB,YAAjBA,0BAAiB,CAAEa,KAAK,CAACC,OAAO,CAAC;EACnC,CAAC;EACDC,IAAIA,CAAA,EAAG;IACLf,0BAAiB,YAAjBA,0BAAiB,CAAEe,IAAI,CAAC,CAAC;EAC3B,CAAC;EACDC,MAAMA,CAAA,EAAG;IACPhB,0BAAiB,YAAjBA,0BAAiB,CAAEgB,MAAM,CAAC,CAAC;EAC7B,CAAC;EACDC,WAAWA,CAAA,EAAG;IAAA,IAAAC,qBAAA;IACZ,QAAAA,qBAAA,GAAOlB,0BAAiB,oBAAjBA,0BAAiB,CAAEiB,WAAW,CAAC,CAAC,YAAAC,qBAAA,GAAI,KAAK;EAClD,CAAC;EACDC,iBAAiBA,CAACC,QAA2C,EAAE;IAAA,IAAAC,gBAAA;IAC7D,IAAMC,GAAG,IAAAD,gBAAA,GAAGtB,eAAe,CAAC,CAAC,qBAAjBsB,gBAAA,CAAmBE,WAAW,CAAC3B,eAAe,EAAG4B,KAAK,IAChEJ,QAAQ,CAACI,KAAwB,CACnC,CAAC;IACD,OAAOF,GAAG,GAAG,MAAMA,GAAG,CAACG,MAAM,CAAC,CAAC,GAAGvB,IAAI;EACxC,CAAC;EACDwB,gBAAgBA,CAACN,QAA2C,EAAE;IAAA,IAAAO,iBAAA;IAC5D,IAAML,GAAG,IAAAK,iBAAA,GAAG5B,eAAe,CAAC,CAAC,qBAAjB4B,iBAAA,CAAmBJ,WAAW,CAAC5B,cAAc,EAAG6B,KAAK,IAC/DJ,QAAQ,CAACI,KAAuB,CAClC,CAAC;IACD,OAAOF,GAAG,GAAG,MAAMA,GAAG,CAACG,MAAM,CAAC,CAAC,GAAGvB,IAAI;EACxC,CAAC;EACD0B,gBAAgBA,CAACR,QAA2C,EAAE;IAAA,IAAAS,iBAAA;IAC5D,IAAMP,GAAG,IAAAO,iBAAA,GAAG9B,eAAe,CAAC,CAAC,qBAAjB8B,iBAAA,CAAmBN,WAAW,CAAC1B,cAAc,EAAG2B,KAAK,IAC/DJ,QAAQ,CAACI,KAAuB,CAClC,CAAC;IACD,OAAOF,GAAG,GAAG,MAAMA,GAAG,CAACG,MAAM,CAAC,CAAC,GAAGvB,IAAI;EACxC;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ exports.PerfText = void 0;
6
+ var _react = _interopRequireDefault(require("react"));
7
+ var _native = require("../../native");
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
+ var _jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/ai-components/native/PerfText.tsx";
10
+ var PerfText = ({
11
+ style,
12
+ fontSize,
13
+ lineHeight,
14
+ ranges,
15
+ text
16
+ }) => {
17
+ var PerfTextNative = _native.NativeHandlers.PerfText;
18
+ if (!PerfTextNative) {
19
+ return null;
20
+ }
21
+ return (0, _jsxRuntime.jsx)(PerfTextNative, {
22
+ style: style,
23
+ text: text,
24
+ colorRanges: ranges,
25
+ fontFamily: 'monospace',
26
+ fontSize: fontSize,
27
+ lineHeight: lineHeight
28
+ });
29
+ };
30
+ exports.PerfText = PerfText;
31
+ //# sourceMappingURL=PerfText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_native","_jsxRuntime","_jsxFileName","PerfText","style","fontSize","lineHeight","ranges","text","PerfTextNative","NativeHandlers","jsx","colorRanges","fontFamily","exports"],"sourceRoot":"../../../../src","sources":["ai-components/native/PerfText.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,OAAA,GAAAD,OAAA;AAA8C,IAAAE,WAAA,GAAAF,OAAA;AAAA,IAAAG,YAAA;AAYvC,IAAMC,QAAQ,GAAGA,CAAC;EAAEC,KAAK;EAAEC,QAAQ;EAAEC,UAAU;EAAEC,MAAM;EAAEC;AAAoB,CAAC,KAAK;EACxF,IAAMC,cAAc,GAAGC,sBAAc,CAACP,QAAQ;EAC9C,IAAI,CAACM,cAAc,EAAE;IACnB,OAAO,IAAI;EACb;EAEA,OACE,IAAAR,WAAA,CAAAU,GAAA,EAACF,cAAc;IACbL,KAAK,EAAEA,KAAM;IACbI,IAAI,EAAEA,IAAK;IACXI,WAAW,EAAEL,MAA0D;IACvEM,UAAU,EAAE,WAAY;IACxBR,QAAQ,EAAEA,QAAS;IACnBC,UAAU,EAAEA;EAAW,CACxB,CAAC;AAEN,CAAC;AAACQ,OAAA,CAAAX,QAAA,GAAAA,QAAA","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ exports.default = void 0;
5
+ var _reactNative = require("react-native");
6
+ var _default = exports.default = _reactNative.TurboModuleRegistry.get('AIDictation');
7
+ //# sourceMappingURL=NativeAIDictation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../../../src","sources":["ai-components/native-specs/NativeAIDictation.ts"],"mappings":";;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAAmD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GA8CpCC,gCAAmB,CAACC,GAAG,CAAO,aAAa,CAAC","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ exports.setClipboardString = void 0;
5
+ var Clipboard;
6
+ try {
7
+ Clipboard = require('expo-clipboard');
8
+ } catch (_) {}
9
+ var setClipboardString = exports.setClipboardString = Clipboard ? string => {
10
+ var _Clipboard;
11
+ return (_Clipboard = Clipboard) == null ? void 0 : _Clipboard.setString(string);
12
+ } : undefined;
13
+ //# sourceMappingURL=expo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Clipboard","require","_","setClipboardString","exports","string","_Clipboard","setString","undefined"],"sourceRoot":"../../../../../src","sources":["ai-components/services/clipboard-service/expo.ts"],"mappings":";;;;AAAA,IAAIA,SAA8D;AAElE,IAAI;EACFA,SAAS,GAAGC,OAAO,CAAC,gBAAgB,CAAC;AACvC,CAAC,CAAC,OAAOC,CAAC,EAAE,CAEZ;AAEO,IAAMC,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAGH,SAAS,GACtCK,MAAc;EAAA,IAAAC,UAAA;EAAA,QAAAA,UAAA,GAAKN,SAAS,qBAATM,UAAA,CAAWC,SAAS,CAACF,MAAM,CAAC;AAAA,IAChDG,SAAS","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ exports.setClipboardString = void 0;
5
+ var _expo = require("./expo");
6
+ var _rncli = require("./rncli");
7
+ var setClipboardString = exports.setClipboardString = _rncli.setClipboardString != null ? _rncli.setClipboardString : _expo.setClipboardString;
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_expo","require","_rncli","setClipboardString","exports","rncliSetClipboardString","expoSetClipboardString"],"sourceRoot":"../../../../../src","sources":["ai-components/services/clipboard-service/index.ts"],"mappings":";;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,IAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAGE,yBAAuB,WAAvBA,yBAAuB,GAAIC,wBAAsB","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ exports.setClipboardString = void 0;
5
+ var Clipboard;
6
+ try {
7
+ Clipboard = require('@react-native-clipboard/clipboard').default;
8
+ } catch (_) {}
9
+ var setClipboardString = exports.setClipboardString = Clipboard ? string => Clipboard ? Clipboard.setString(string) : {} : undefined;
10
+ //# sourceMappingURL=rncli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Clipboard","require","default","_","setClipboardString","exports","string","setString","undefined"],"sourceRoot":"../../../../../src","sources":["ai-components/services/clipboard-service/rncli.ts"],"mappings":";;;;AAAA,IAAIA,SAA8D;AAElE,IAAI;EACFA,SAAS,GAAGC,OAAO,CAAC,mCAAmC,CAAC,CAACC,OAAO;AAClE,CAAC,CAAC,OAAOC,CAAC,EAAE,CAEZ;AAEO,IAAMC,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAGJ,SAAS,GACtCM,MAAc,IAAMN,SAAS,GAAGA,SAAS,CAACO,SAAS,CAACD,MAAM,CAAC,GAAG,CAAC,CAAE,GAClEE,SAAS","ignoreList":[]}
@@ -0,0 +1,26 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ var _mediaPickerService = require("./media-picker-service");
5
+ Object.keys(_mediaPickerService).forEach(function (key) {
6
+ if (key === "default" || key === "__esModule") return;
7
+ if (key in exports && exports[key] === _mediaPickerService[key]) return;
8
+ Object.defineProperty(exports, key, {
9
+ enumerable: true,
10
+ get: function () {
11
+ return _mediaPickerService[key];
12
+ }
13
+ });
14
+ });
15
+ var _clipboardService = require("./clipboard-service");
16
+ Object.keys(_clipboardService).forEach(function (key) {
17
+ if (key === "default" || key === "__esModule") return;
18
+ if (key in exports && exports[key] === _clipboardService[key]) return;
19
+ Object.defineProperty(exports, key, {
20
+ enumerable: true,
21
+ get: function () {
22
+ return _clipboardService[key];
23
+ }
24
+ });
25
+ });
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_mediaPickerService","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_clipboardService"],"sourceRoot":"../../../../src","sources":["ai-components/services/index.ts"],"mappings":";;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,mBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,mBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,mBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,iBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,iBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,iBAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,iBAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ exports.AbstractMediaPickerService = void 0;
5
+ var _stateStore = require("@stream-io/state-store");
6
+ class AbstractMediaPickerService {
7
+ constructor() {
8
+ this.state = new _stateStore.StateStore({
9
+ assets: []
10
+ });
11
+ }
12
+ appendAssets = assets => {
13
+ this.state.next(prevState => ({
14
+ ...prevState,
15
+ assets: [...prevState.assets, ...assets]
16
+ }));
17
+ };
18
+ removeAsset = index => {
19
+ this.state.next(prevState => ({
20
+ ...prevState,
21
+ assets: prevState.assets.filter((_, i) => i !== index)
22
+ }));
23
+ };
24
+ clearAssets = () => {
25
+ this.state.partialNext({
26
+ assets: []
27
+ });
28
+ };
29
+ }
30
+ exports.AbstractMediaPickerService = AbstractMediaPickerService;
31
+ //# sourceMappingURL=AbstractMediaPickerService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_stateStore","require","AbstractMediaPickerService","constructor","state","StateStore","assets","appendAssets","next","prevState","removeAsset","index","filter","_","i","clearAssets","partialNext","exports"],"sourceRoot":"../../../../../src","sources":["ai-components/services/media-picker-service/AbstractMediaPickerService.ts"],"mappings":";;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AA+BO,MAAeC,0BAA0B,CAAC;EAG/CC,WAAWA,CAAA,EAAG;IACZ,IAAI,CAACC,KAAK,GAAG,IAAIC,sBAAU,CAAmB;MAC5CC,MAAM,EAAE;IACV,CAAC,CAAC;EACJ;EAMAC,YAAY,GAAID,MAAoB,IAAK;IACvC,IAAI,CAACF,KAAK,CAACI,IAAI,CAAEC,SAAS,KAAM;MAC9B,GAAGA,SAAS;MACZH,MAAM,EAAE,CAAC,GAAGG,SAAS,CAACH,MAAM,EAAE,GAAGA,MAAM;IACzC,CAAC,CAAC,CAAC;EACL,CAAC;EAEDI,WAAW,GAAIC,KAAa,IAAK;IAC/B,IAAI,CAACP,KAAK,CAACI,IAAI,CAAEC,SAAS,KAAM;MAC9B,GAAGA,SAAS;MACZH,MAAM,EAAEG,SAAS,CAACH,MAAM,CAACM,MAAM,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKA,CAAC,KAAKH,KAAK;IACvD,CAAC,CAAC,CAAC;EACL,CAAC;EAEDI,WAAW,GAAGA,CAAA,KAAM;IAClB,IAAI,CAACX,KAAK,CAACY,WAAW,CAAC;MAAEV,MAAM,EAAE;IAAG,CAAC,CAAC;EACxC,CAAC;AACH;AAACW,OAAA,CAAAf,0BAAA,GAAAA,0BAAA","ignoreList":[]}
@@ -0,0 +1,169 @@
1
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ exports.MediaPickerService = void 0;
6
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
7
+ var _reactNative = require("react-native");
8
+ var _AbstractMediaPickerService = require("./AbstractMediaPickerService");
9
+ var internalService = undefined;
10
+ try {
11
+ internalService = require('expo-image-picker');
12
+ } catch (_error) {}
13
+ class ExpoMediaPickerService extends _AbstractMediaPickerService.AbstractMediaPickerService {
14
+ pickMedia = (() => {
15
+ var _this = this;
16
+ return (0, _asyncToGenerator2.default)(function* ({
17
+ maxNumberOfFiles = 3
18
+ } = {}) {
19
+ try {
20
+ var permissionGranted = true;
21
+ if (_reactNative.Platform.OS === 'ios') {
22
+ var permissionCheck = yield internalService.getMediaLibraryPermissionsAsync();
23
+ var canRequest = permissionCheck.canAskAgain;
24
+ permissionGranted = permissionCheck.granted;
25
+ if (!permissionGranted) {
26
+ if (canRequest) {
27
+ var response = yield internalService.requestMediaLibraryPermissionsAsync();
28
+ permissionGranted = response.granted;
29
+ } else {
30
+ return {
31
+ askToOpenSettings: true,
32
+ cancelled: true
33
+ };
34
+ }
35
+ }
36
+ }
37
+ if (permissionGranted) {
38
+ var result = yield internalService.launchImageLibraryAsync({
39
+ allowsMultipleSelection: true,
40
+ mediaTypes: 'images',
41
+ preferredAssetRepresentationMode: 'current',
42
+ selectionLimit: maxNumberOfFiles
43
+ });
44
+ var canceled = result.canceled;
45
+ if (!canceled) {
46
+ var assets = result.assets.map(asset => ({
47
+ ...asset,
48
+ name: asset.fileName,
49
+ size: asset.fileSize,
50
+ type: asset.mimeType,
51
+ uri: asset.uri
52
+ }));
53
+ _this.appendAssets(assets);
54
+ return {
55
+ assets,
56
+ cancelled: false
57
+ };
58
+ } else {
59
+ return {
60
+ cancelled: true
61
+ };
62
+ }
63
+ }
64
+ return {
65
+ cancelled: true
66
+ };
67
+ } catch (error) {
68
+ console.log('Error while picking image', error);
69
+ return {
70
+ cancelled: true
71
+ };
72
+ }
73
+ });
74
+ })();
75
+ takeMedia = (() => {
76
+ var _this2 = this;
77
+ return function () {
78
+ var _ref2 = (0, _asyncToGenerator2.default)(function* ({
79
+ compressionQuality = 1
80
+ }) {
81
+ try {
82
+ var permissionCheck = yield internalService.getCameraPermissionsAsync();
83
+ var canRequest = permissionCheck.canAskAgain;
84
+ var permissionGranted = permissionCheck.granted;
85
+ if (!permissionGranted) {
86
+ if (canRequest) {
87
+ var response = yield internalService.requestCameraPermissionsAsync();
88
+ permissionGranted = response.granted;
89
+ } else {
90
+ return {
91
+ askToOpenSettings: true,
92
+ cancelled: true
93
+ };
94
+ }
95
+ }
96
+ if (permissionGranted) {
97
+ var result = yield internalService.launchCameraAsync({
98
+ mediaTypes: 'images',
99
+ quality: Math.min(Math.max(0, compressionQuality), 1)
100
+ });
101
+ if (!result || !result.assets || !result.assets.length || result.canceled) {
102
+ return {
103
+ cancelled: true
104
+ };
105
+ }
106
+ var photo = result.assets[0];
107
+ if (!photo) {
108
+ return {
109
+ cancelled: true
110
+ };
111
+ }
112
+ if (photo && photo.mimeType.includes('image') && photo.height && photo.width && photo.uri) {
113
+ var size = {};
114
+ if (_reactNative.Platform.OS === 'android') {
115
+ var getSize = () => new Promise(resolve => {
116
+ _reactNative.Image.getSize(photo.uri, (width, height) => {
117
+ resolve({
118
+ height,
119
+ width
120
+ });
121
+ });
122
+ });
123
+ try {
124
+ var _yield$getSize = yield getSize(),
125
+ height = _yield$getSize.height,
126
+ width = _yield$getSize.width;
127
+ size.height = height;
128
+ size.width = width;
129
+ } catch (e) {
130
+ console.warn('Error get image size of picture caputred from camera ', e);
131
+ }
132
+ } else {
133
+ size = {
134
+ height: photo.height,
135
+ width: photo.width
136
+ };
137
+ }
138
+ var clearFilter = new RegExp('[.:]', 'g');
139
+ var date = new Date().toISOString().replace(clearFilter, '_');
140
+ var asset = {
141
+ name: 'image_' + date + '.' + photo.uri.split('.').pop(),
142
+ size: photo.fileSize,
143
+ type: photo.mimeType,
144
+ uri: photo.uri,
145
+ height: size.height,
146
+ width: size.width
147
+ };
148
+ _this2.appendAssets([asset]);
149
+ return {
150
+ cancelled: false,
151
+ asset
152
+ };
153
+ }
154
+ }
155
+ } catch (error) {
156
+ console.log(error);
157
+ }
158
+ return {
159
+ cancelled: true
160
+ };
161
+ });
162
+ return function (_x) {
163
+ return _ref2.apply(this, arguments);
164
+ };
165
+ }();
166
+ })();
167
+ }
168
+ var MediaPickerService = exports.MediaPickerService = internalService ? ExpoMediaPickerService : undefined;
169
+ //# sourceMappingURL=expo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_AbstractMediaPickerService","internalService","undefined","_error","ExpoMediaPickerService","AbstractMediaPickerService","pickMedia","_this","_asyncToGenerator2","default","maxNumberOfFiles","permissionGranted","Platform","OS","permissionCheck","getMediaLibraryPermissionsAsync","canRequest","canAskAgain","granted","response","requestMediaLibraryPermissionsAsync","askToOpenSettings","cancelled","result","launchImageLibraryAsync","allowsMultipleSelection","mediaTypes","preferredAssetRepresentationMode","selectionLimit","canceled","assets","map","asset","name","fileName","size","fileSize","type","mimeType","uri","appendAssets","error","console","log","takeMedia","_this2","_ref2","compressionQuality","getCameraPermissionsAsync","requestCameraPermissionsAsync","launchCameraAsync","quality","Math","min","max","length","photo","includes","height","width","getSize","Promise","resolve","Image","_yield$getSize","e","warn","clearFilter","RegExp","date","Date","toISOString","replace","split","pop","_x","apply","arguments","MediaPickerService","exports"],"sourceRoot":"../../../../../src","sources":["ai-components/services/media-picker-service/expo.ts"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ exports.useMediaPickerState = exports.selector = void 0;
5
+ var _reactBindings = require("@stream-io/state-store/react-bindings");
6
+ var selector = nextState => ({
7
+ attachments: nextState.assets
8
+ });
9
+ exports.selector = selector;
10
+ var useMediaPickerState = ({
11
+ service
12
+ }) => (0, _reactBindings.useStateStore)(service == null ? void 0 : service.state, selector);
13
+ exports.useMediaPickerState = useMediaPickerState;
14
+ //# sourceMappingURL=useMediaPickerState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactBindings","require","selector","nextState","attachments","assets","exports","useMediaPickerState","service","useStateStore","state"],"sourceRoot":"../../../../../../src","sources":["ai-components/services/media-picker-service/hooks/useMediaPickerState.ts"],"mappings":";;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAKO,IAAMC,QAAQ,GAAIC,SAA2B,KAAM;EACxDC,WAAW,EAAED,SAAS,CAACE;AACzB,CAAC,CAAC;AAACC,OAAA,CAAAJ,QAAA,GAAAA,QAAA;AAEI,IAAMK,mBAAmB,GAAGA,CAAC;EAClCC;AAGF,CAAC,KAAK,IAAAC,4BAAa,EAACD,OAAO,oBAAPA,OAAO,CAAEE,KAAK,EAAER,QAAQ,CAAC;AAACI,OAAA,CAAAC,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ exports.MediaPickerService = void 0;
5
+ var _expo = require("./expo");
6
+ var _rncli = require("./rncli");
7
+ var MediaPickerService = exports.MediaPickerService = _rncli.MediaPickerService != null ? _rncli.MediaPickerService : _expo.MediaPickerService;
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_expo","require","_rncli","MediaPickerService","exports","RNCLIMediaPickerService","ExpoMediaPickerService"],"sourceRoot":"../../../../../src","sources":["ai-components/services/media-picker-service/index.ts"],"mappings":";;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,IAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAGE,yBAAuB,WAAvBA,yBAAuB,GAAIC,wBAAsB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=optional-modules.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["ai-components/services/media-picker-service/optional-modules.d.ts"],"mappings":"","ignoreList":[]}