@assistant-ui/react-native 0.1.16 → 0.1.18

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 (269) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +13 -0
  2. package/dist/context/AssistantContext.d.ts +2 -2
  3. package/dist/context/AssistantContext.js +2 -2
  4. package/dist/context/providers/AttachmentByIndexProvider.d.ts +2 -2
  5. package/dist/context/providers/AttachmentByIndexProvider.js +2 -2
  6. package/dist/context/providers/RuntimeAdapterProvider.d.ts +2 -2
  7. package/dist/context/providers/RuntimeAdapterProvider.js +2 -2
  8. package/dist/context/providers/ThreadListItemRuntimeProvider.d.ts +2 -2
  9. package/dist/context/providers/ThreadListItemRuntimeProvider.js +2 -2
  10. package/dist/index.d.ts +20 -38
  11. package/dist/index.js +19 -39
  12. package/dist/internal.d.ts +3 -4
  13. package/dist/internal.js +2 -3
  14. package/dist/primitives/actionBar/ActionBarCopy.d.ts +18 -8
  15. package/dist/primitives/actionBar/ActionBarCopy.d.ts.map +1 -1
  16. package/dist/primitives/actionBar/ActionBarCopy.js +17 -8
  17. package/dist/primitives/actionBar/ActionBarCopy.js.map +1 -1
  18. package/dist/primitives/actionBar/ActionBarEdit.d.ts +13 -5
  19. package/dist/primitives/actionBar/ActionBarEdit.d.ts.map +1 -1
  20. package/dist/primitives/actionBar/ActionBarEdit.js +14 -5
  21. package/dist/primitives/actionBar/ActionBarEdit.js.map +1 -1
  22. package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts +14 -7
  23. package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts.map +1 -1
  24. package/dist/primitives/actionBar/ActionBarFeedbackNegative.js +13 -5
  25. package/dist/primitives/actionBar/ActionBarFeedbackNegative.js.map +1 -1
  26. package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts +14 -7
  27. package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts.map +1 -1
  28. package/dist/primitives/actionBar/ActionBarFeedbackPositive.js +13 -5
  29. package/dist/primitives/actionBar/ActionBarFeedbackPositive.js.map +1 -1
  30. package/dist/primitives/actionBar/ActionBarReload.d.ts +13 -5
  31. package/dist/primitives/actionBar/ActionBarReload.d.ts.map +1 -1
  32. package/dist/primitives/actionBar/ActionBarReload.js +14 -5
  33. package/dist/primitives/actionBar/ActionBarReload.js.map +1 -1
  34. package/dist/primitives/actionBar.d.ts +12 -5
  35. package/dist/primitives/actionBar.d.ts.map +1 -1
  36. package/dist/primitives/actionBar.js +17 -5
  37. package/dist/primitives/actionBar.js.map +1 -1
  38. package/dist/primitives/attachment/AttachmentName.d.ts +8 -4
  39. package/dist/primitives/attachment/AttachmentName.d.ts.map +1 -1
  40. package/dist/primitives/attachment/AttachmentName.js +12 -5
  41. package/dist/primitives/attachment/AttachmentName.js.map +1 -1
  42. package/dist/primitives/attachment/AttachmentRemove.d.ts +12 -5
  43. package/dist/primitives/attachment/AttachmentRemove.d.ts.map +1 -1
  44. package/dist/primitives/attachment/AttachmentRemove.js +15 -8
  45. package/dist/primitives/attachment/AttachmentRemove.js.map +1 -1
  46. package/dist/primitives/attachment/AttachmentRoot.d.ts +12 -5
  47. package/dist/primitives/attachment/AttachmentRoot.d.ts.map +1 -1
  48. package/dist/primitives/attachment/AttachmentRoot.js +10 -3
  49. package/dist/primitives/attachment/AttachmentRoot.js.map +1 -1
  50. package/dist/primitives/attachment/AttachmentThumb.d.ts +8 -4
  51. package/dist/primitives/attachment/AttachmentThumb.d.ts.map +1 -1
  52. package/dist/primitives/attachment/AttachmentThumb.js +15 -8
  53. package/dist/primitives/attachment/AttachmentThumb.js.map +1 -1
  54. package/dist/primitives/attachment.d.ts +11 -4
  55. package/dist/primitives/attachment.d.ts.map +1 -1
  56. package/dist/primitives/attachment.js +15 -4
  57. package/dist/primitives/attachment.js.map +1 -1
  58. package/dist/primitives/branchPicker/BranchPickerCount.d.ts +7 -3
  59. package/dist/primitives/branchPicker/BranchPickerCount.d.ts.map +1 -1
  60. package/dist/primitives/branchPicker/BranchPickerCount.js +12 -5
  61. package/dist/primitives/branchPicker/BranchPickerCount.js.map +1 -1
  62. package/dist/primitives/branchPicker/BranchPickerNext.d.ts +13 -5
  63. package/dist/primitives/branchPicker/BranchPickerNext.d.ts.map +1 -1
  64. package/dist/primitives/branchPicker/BranchPickerNext.js +14 -5
  65. package/dist/primitives/branchPicker/BranchPickerNext.js.map +1 -1
  66. package/dist/primitives/branchPicker/BranchPickerNumber.d.ts +7 -3
  67. package/dist/primitives/branchPicker/BranchPickerNumber.d.ts.map +1 -1
  68. package/dist/primitives/branchPicker/BranchPickerNumber.js +12 -5
  69. package/dist/primitives/branchPicker/BranchPickerNumber.js.map +1 -1
  70. package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts +13 -5
  71. package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts.map +1 -1
  72. package/dist/primitives/branchPicker/BranchPickerPrevious.js +14 -5
  73. package/dist/primitives/branchPicker/BranchPickerPrevious.js.map +1 -1
  74. package/dist/primitives/branchPicker.d.ts +11 -4
  75. package/dist/primitives/branchPicker.d.ts.map +1 -1
  76. package/dist/primitives/branchPicker.js +15 -4
  77. package/dist/primitives/branchPicker.js.map +1 -1
  78. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts +12 -5
  79. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts.map +1 -1
  80. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.js +17 -10
  81. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.js.map +1 -1
  82. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts +12 -5
  83. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts.map +1 -1
  84. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.js +10 -3
  85. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.js.map +1 -1
  86. package/dist/primitives/chainOfThought.d.ts +10 -3
  87. package/dist/primitives/chainOfThought.d.ts.map +1 -1
  88. package/dist/primitives/chainOfThought.js +13 -3
  89. package/dist/primitives/chainOfThought.js.map +1 -1
  90. package/dist/primitives/composer/ComposerAddAttachment.d.ts +13 -5
  91. package/dist/primitives/composer/ComposerAddAttachment.d.ts.map +1 -1
  92. package/dist/primitives/composer/ComposerAddAttachment.js +19 -11
  93. package/dist/primitives/composer/ComposerAddAttachment.js.map +1 -1
  94. package/dist/primitives/composer/ComposerAttachments.d.ts +18 -14
  95. package/dist/primitives/composer/ComposerAttachments.d.ts.map +1 -1
  96. package/dist/primitives/composer/ComposerAttachments.js +7 -3
  97. package/dist/primitives/composer/ComposerAttachments.js.map +1 -1
  98. package/dist/primitives/composer/ComposerCancel.d.ts +13 -5
  99. package/dist/primitives/composer/ComposerCancel.d.ts.map +1 -1
  100. package/dist/primitives/composer/ComposerCancel.js +14 -5
  101. package/dist/primitives/composer/ComposerCancel.js.map +1 -1
  102. package/dist/primitives/composer/ComposerIf.d.ts +2 -2
  103. package/dist/primitives/composer/ComposerIf.js +2 -2
  104. package/dist/primitives/composer/ComposerInput.d.ts +20 -10
  105. package/dist/primitives/composer/ComposerInput.d.ts.map +1 -1
  106. package/dist/primitives/composer/ComposerInput.js +46 -40
  107. package/dist/primitives/composer/ComposerInput.js.map +1 -1
  108. package/dist/primitives/composer/ComposerRoot.d.ts +12 -5
  109. package/dist/primitives/composer/ComposerRoot.d.ts.map +1 -1
  110. package/dist/primitives/composer/ComposerRoot.js +10 -3
  111. package/dist/primitives/composer/ComposerRoot.js.map +1 -1
  112. package/dist/primitives/composer/ComposerSend.d.ts +13 -5
  113. package/dist/primitives/composer/ComposerSend.d.ts.map +1 -1
  114. package/dist/primitives/composer/ComposerSend.js +14 -5
  115. package/dist/primitives/composer/ComposerSend.js.map +1 -1
  116. package/dist/primitives/composer.d.ts +14 -7
  117. package/dist/primitives/composer.d.ts.map +1 -1
  118. package/dist/primitives/composer.js +22 -7
  119. package/dist/primitives/composer.js.map +1 -1
  120. package/dist/primitives/error/ErrorMessage.d.ts +14 -7
  121. package/dist/primitives/error/ErrorMessage.d.ts.map +1 -1
  122. package/dist/primitives/error/ErrorMessage.js +13 -7
  123. package/dist/primitives/error/ErrorMessage.js.map +1 -1
  124. package/dist/primitives/error/ErrorRoot.d.ts +14 -7
  125. package/dist/primitives/error/ErrorRoot.d.ts.map +1 -1
  126. package/dist/primitives/error/ErrorRoot.js +12 -7
  127. package/dist/primitives/error/ErrorRoot.js.map +1 -1
  128. package/dist/primitives/error/index.d.ts +9 -2
  129. package/dist/primitives/error/index.d.ts.map +1 -1
  130. package/dist/primitives/error/index.js +11 -2
  131. package/dist/primitives/error/index.js.map +1 -1
  132. package/dist/primitives/message/MessageAttachments.d.ts +13 -9
  133. package/dist/primitives/message/MessageAttachments.d.ts.map +1 -1
  134. package/dist/primitives/message/MessageAttachments.js +7 -3
  135. package/dist/primitives/message/MessageAttachments.js.map +1 -1
  136. package/dist/primitives/message/MessageContent.d.ts +58 -47
  137. package/dist/primitives/message/MessageContent.d.ts.map +1 -1
  138. package/dist/primitives/message/MessageContent.js +85 -63
  139. package/dist/primitives/message/MessageContent.js.map +1 -1
  140. package/dist/primitives/message/MessageIf.d.ts +18 -8
  141. package/dist/primitives/message/MessageIf.d.ts.map +1 -1
  142. package/dist/primitives/message/MessageIf.js +20 -21
  143. package/dist/primitives/message/MessageIf.js.map +1 -1
  144. package/dist/primitives/message/MessageParts.d.ts +9 -6
  145. package/dist/primitives/message/MessageParts.d.ts.map +1 -1
  146. package/dist/primitives/message/MessageParts.js +32 -35
  147. package/dist/primitives/message/MessageParts.js.map +1 -1
  148. package/dist/primitives/message/MessageRoot.d.ts +12 -5
  149. package/dist/primitives/message/MessageRoot.d.ts.map +1 -1
  150. package/dist/primitives/message/MessageRoot.js +10 -3
  151. package/dist/primitives/message/MessageRoot.js.map +1 -1
  152. package/dist/primitives/message.d.ts +13 -6
  153. package/dist/primitives/message.d.ts.map +1 -1
  154. package/dist/primitives/message.js +21 -6
  155. package/dist/primitives/message.js.map +1 -1
  156. package/dist/primitives/suggestion/SuggestionDescription.d.ts +12 -5
  157. package/dist/primitives/suggestion/SuggestionDescription.d.ts.map +1 -1
  158. package/dist/primitives/suggestion/SuggestionDescription.js +12 -5
  159. package/dist/primitives/suggestion/SuggestionDescription.js.map +1 -1
  160. package/dist/primitives/suggestion/SuggestionTitle.d.ts +12 -5
  161. package/dist/primitives/suggestion/SuggestionTitle.d.ts.map +1 -1
  162. package/dist/primitives/suggestion/SuggestionTitle.js +12 -5
  163. package/dist/primitives/suggestion/SuggestionTitle.js.map +1 -1
  164. package/dist/primitives/suggestion/SuggestionTrigger.d.ts +26 -16
  165. package/dist/primitives/suggestion/SuggestionTrigger.d.ts.map +1 -1
  166. package/dist/primitives/suggestion/SuggestionTrigger.js +18 -10
  167. package/dist/primitives/suggestion/SuggestionTrigger.js.map +1 -1
  168. package/dist/primitives/suggestion.d.ts +10 -3
  169. package/dist/primitives/suggestion.d.ts.map +1 -1
  170. package/dist/primitives/suggestion.js +13 -3
  171. package/dist/primitives/suggestion.js.map +1 -1
  172. package/dist/primitives/thread/ThreadEmpty.d.ts +10 -4
  173. package/dist/primitives/thread/ThreadEmpty.d.ts.map +1 -1
  174. package/dist/primitives/thread/ThreadEmpty.js +8 -6
  175. package/dist/primitives/thread/ThreadEmpty.js.map +1 -1
  176. package/dist/primitives/thread/ThreadIf.d.ts +14 -6
  177. package/dist/primitives/thread/ThreadIf.d.ts.map +1 -1
  178. package/dist/primitives/thread/ThreadIf.js +14 -13
  179. package/dist/primitives/thread/ThreadIf.js.map +1 -1
  180. package/dist/primitives/thread/ThreadMessages.d.ts +40 -23
  181. package/dist/primitives/thread/ThreadMessages.d.ts.map +1 -1
  182. package/dist/primitives/thread/ThreadMessages.js +53 -55
  183. package/dist/primitives/thread/ThreadMessages.js.map +1 -1
  184. package/dist/primitives/thread/ThreadRoot.d.ts +12 -5
  185. package/dist/primitives/thread/ThreadRoot.d.ts.map +1 -1
  186. package/dist/primitives/thread/ThreadRoot.js +10 -3
  187. package/dist/primitives/thread/ThreadRoot.js.map +1 -1
  188. package/dist/primitives/thread/ThreadSuggestion.d.ts +28 -18
  189. package/dist/primitives/thread/ThreadSuggestion.d.ts.map +1 -1
  190. package/dist/primitives/thread/ThreadSuggestion.js +18 -9
  191. package/dist/primitives/thread/ThreadSuggestion.js.map +1 -1
  192. package/dist/primitives/thread.d.ts +13 -7
  193. package/dist/primitives/thread.d.ts.map +1 -1
  194. package/dist/primitives/thread.js +21 -7
  195. package/dist/primitives/thread.js.map +1 -1
  196. package/dist/primitives/threadList/ThreadListItems.d.ts +15 -8
  197. package/dist/primitives/threadList/ThreadListItems.d.ts.map +1 -1
  198. package/dist/primitives/threadList/ThreadListItems.js +19 -10
  199. package/dist/primitives/threadList/ThreadListItems.js.map +1 -1
  200. package/dist/primitives/threadList/ThreadListNew.d.ts +12 -5
  201. package/dist/primitives/threadList/ThreadListNew.d.ts.map +1 -1
  202. package/dist/primitives/threadList/ThreadListNew.js +13 -5
  203. package/dist/primitives/threadList/ThreadListNew.js.map +1 -1
  204. package/dist/primitives/threadList/ThreadListRoot.d.ts +12 -5
  205. package/dist/primitives/threadList/ThreadListRoot.d.ts.map +1 -1
  206. package/dist/primitives/threadList/ThreadListRoot.js +10 -3
  207. package/dist/primitives/threadList/ThreadListRoot.js.map +1 -1
  208. package/dist/primitives/threadList.d.ts +10 -3
  209. package/dist/primitives/threadList.d.ts.map +1 -1
  210. package/dist/primitives/threadList.js +13 -3
  211. package/dist/primitives/threadList.js.map +1 -1
  212. package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts +12 -5
  213. package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts.map +1 -1
  214. package/dist/primitives/threadListItem/ThreadListItemArchive.js +13 -5
  215. package/dist/primitives/threadListItem/ThreadListItemArchive.js.map +1 -1
  216. package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts +12 -5
  217. package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts.map +1 -1
  218. package/dist/primitives/threadListItem/ThreadListItemDelete.js +13 -5
  219. package/dist/primitives/threadListItem/ThreadListItemDelete.js.map +1 -1
  220. package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts +12 -5
  221. package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts.map +1 -1
  222. package/dist/primitives/threadListItem/ThreadListItemRoot.js +10 -3
  223. package/dist/primitives/threadListItem/ThreadListItemRoot.js.map +1 -1
  224. package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts +12 -5
  225. package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts.map +1 -1
  226. package/dist/primitives/threadListItem/ThreadListItemTrigger.js +13 -5
  227. package/dist/primitives/threadListItem/ThreadListItemTrigger.js.map +1 -1
  228. package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts +12 -5
  229. package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts.map +1 -1
  230. package/dist/primitives/threadListItem/ThreadListItemUnarchive.js +13 -5
  231. package/dist/primitives/threadListItem/ThreadListItemUnarchive.js.map +1 -1
  232. package/dist/primitives/threadListItem.d.ts +13 -6
  233. package/dist/primitives/threadListItem.d.ts.map +1 -1
  234. package/dist/primitives/threadListItem.js +19 -6
  235. package/dist/primitives/threadListItem.js.map +1 -1
  236. package/dist/runtimes/RemoteThreadListHookInstanceManager.d.ts +2 -2
  237. package/dist/runtimes/RemoteThreadListHookInstanceManager.js +2 -2
  238. package/dist/runtimes/RemoteThreadListThreadListRuntimeCore.d.ts +2 -2
  239. package/dist/runtimes/RemoteThreadListThreadListRuntimeCore.js +2 -2
  240. package/dist/runtimes/useLocalRuntime.d.ts +2 -2
  241. package/dist/runtimes/useLocalRuntime.js +2 -2
  242. package/dist/runtimes/useRemoteThreadListRuntime.d.ts +2 -2
  243. package/dist/runtimes/useRemoteThreadListRuntime.js +2 -2
  244. package/package.json +11 -10
  245. package/src/index.ts +2 -0
  246. package/src/primitives/message/MessageContent.tsx +1 -0
  247. package/src/primitives/thread/ThreadMessages.tsx +63 -9
  248. package/dist/context/AssistantContext.d.ts.map +0 -1
  249. package/dist/context/AssistantContext.js.map +0 -1
  250. package/dist/context/providers/AttachmentByIndexProvider.d.ts.map +0 -1
  251. package/dist/context/providers/AttachmentByIndexProvider.js.map +0 -1
  252. package/dist/context/providers/RuntimeAdapterProvider.d.ts.map +0 -1
  253. package/dist/context/providers/RuntimeAdapterProvider.js.map +0 -1
  254. package/dist/context/providers/ThreadListItemRuntimeProvider.d.ts.map +0 -1
  255. package/dist/context/providers/ThreadListItemRuntimeProvider.js.map +0 -1
  256. package/dist/index.d.ts.map +0 -1
  257. package/dist/index.js.map +0 -1
  258. package/dist/internal.d.ts.map +0 -1
  259. package/dist/internal.js.map +0 -1
  260. package/dist/primitives/composer/ComposerIf.d.ts.map +0 -1
  261. package/dist/primitives/composer/ComposerIf.js.map +0 -1
  262. package/dist/runtimes/RemoteThreadListHookInstanceManager.d.ts.map +0 -1
  263. package/dist/runtimes/RemoteThreadListHookInstanceManager.js.map +0 -1
  264. package/dist/runtimes/RemoteThreadListThreadListRuntimeCore.d.ts.map +0 -1
  265. package/dist/runtimes/RemoteThreadListThreadListRuntimeCore.js.map +0 -1
  266. package/dist/runtimes/useLocalRuntime.d.ts.map +0 -1
  267. package/dist/runtimes/useLocalRuntime.js.map +0 -1
  268. package/dist/runtimes/useRemoteThreadListRuntime.d.ts.map +0 -1
  269. package/dist/runtimes/useRemoteThreadListRuntime.js.map +0 -1
@@ -1,7 +1,14 @@
1
- import { type ReactNode } from "react";
2
- import { type PressableProps } from "react-native";
3
- export type ChainOfThoughtAccordionTriggerProps = Omit<PressableProps, "onPress"> & {
4
- children: ReactNode;
1
+ import { PressableProps } from "react-native";
2
+ import { ReactNode } from "react";
3
+
4
+ //#region src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts
5
+ type ChainOfThoughtAccordionTriggerProps = Omit<PressableProps, "onPress"> & {
6
+ children: ReactNode;
5
7
  };
6
- export declare const ChainOfThoughtAccordionTrigger: ({ children, ...pressableProps }: ChainOfThoughtAccordionTriggerProps) => import("react/jsx-runtime").JSX.Element;
8
+ declare const ChainOfThoughtAccordionTrigger: ({
9
+ children,
10
+ ...pressableProps
11
+ }: ChainOfThoughtAccordionTriggerProps) => import("react/jsx-runtime").JSX.Element;
12
+ //#endregion
13
+ export { ChainOfThoughtAccordionTrigger, ChainOfThoughtAccordionTriggerProps };
7
14
  //# sourceMappingURL=ChainOfThoughtAccordionTrigger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChainOfThoughtAccordionTrigger.d.ts","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9D,MAAM,MAAM,mCAAmC,GAAG,IAAI,CACpD,cAAc,EACd,SAAS,CACV,GAAG;IACF,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,iCAG5C,mCAAmC,4CAarC,CAAC"}
1
+ {"version":3,"file":"ChainOfThoughtAccordionTrigger.d.ts","names":[],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"mappings":";;;;KAIY,mCAAA,GAAsC,IAAA,CAChD,cAAA;EAGA,QAAA,EAAU,SAAA;AAAA;AAAA,cAGC,8BAAA;EAAkC,QAAA;EAAA,GAAA;AAAA,GAG5C,mCAAmC,iCAAA,GAAA,CAAA,OAAA"}
@@ -1,13 +1,20 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useCallback } from "react";
1
+ import { useAui, useAuiState } from "@assistant-ui/store";
3
2
  import { Pressable } from "react-native";
4
- import { useAuiState, useAui } from "@assistant-ui/store";
5
- export const ChainOfThoughtAccordionTrigger = ({ children, ...pressableProps }) => {
6
- const aui = useAui();
7
- const collapsed = useAuiState((s) => s.chainOfThought.collapsed);
8
- const onPress = useCallback(() => {
9
- aui.chainOfThought().setCollapsed(!collapsed);
10
- }, [aui, collapsed]);
11
- return (_jsx(Pressable, { onPress: onPress, ...pressableProps, children: children }));
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { useCallback } from "react";
5
+ //#region src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx
6
+ const ChainOfThoughtAccordionTrigger = ({ children, ...pressableProps }) => {
7
+ const aui = useAui();
8
+ const collapsed = useAuiState((s) => s.chainOfThought.collapsed);
9
+ return /* @__PURE__ */ jsx(Pressable, {
10
+ onPress: useCallback(() => {
11
+ aui.chainOfThought().setCollapsed(!collapsed);
12
+ }, [aui, collapsed]),
13
+ ...pressableProps,
14
+ children
15
+ });
12
16
  };
17
+ //#endregion
18
+ export { ChainOfThoughtAccordionTrigger };
19
+
13
20
  //# sourceMappingURL=ChainOfThoughtAccordionTrigger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChainOfThoughtAccordionTrigger.js","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,SAAS,EAAuB,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAS1D,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,EAC7C,QAAQ,EACR,GAAG,cAAc,EACmB,EAAE,EAAE;IACxC,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IACrB,MAAM,SAAS,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;IAEjE,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE;QAC/B,GAAG,CAAC,cAAc,EAAE,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC;IAChD,CAAC,EAAE,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC;IAErB,OAAO,CACL,KAAC,SAAS,IAAC,OAAO,EAAE,OAAO,KAAM,cAAc,YAC5C,QAAQ,GACC,CACb,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"ChainOfThoughtAccordionTrigger.js","names":[],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"sourcesContent":["import { useCallback, type ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useAuiState, useAui } from \"@assistant-ui/store\";\n\nexport type ChainOfThoughtAccordionTriggerProps = Omit<\n PressableProps,\n \"onPress\"\n> & {\n children: ReactNode;\n};\n\nexport const ChainOfThoughtAccordionTrigger = ({\n children,\n ...pressableProps\n}: ChainOfThoughtAccordionTriggerProps) => {\n const aui = useAui();\n const collapsed = useAuiState((s) => s.chainOfThought.collapsed);\n\n const onPress = useCallback(() => {\n aui.chainOfThought().setCollapsed(!collapsed);\n }, [aui, collapsed]);\n\n return (\n <Pressable onPress={onPress} {...pressableProps}>\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAWA,MAAa,kCAAkC,EAC7C,UACA,GAAG,qBACsC;CACzC,MAAM,MAAM,OAAO;CACnB,MAAM,YAAY,aAAa,MAAM,EAAE,eAAe,SAAS;CAM/D,OACE,oBAAC,WAAD;EAAW,SALG,kBAAkB;GAChC,IAAI,eAAe,EAAE,aAAa,CAAC,SAAS;EAC9C,GAAG,CAAC,KAAK,SAAS,CAGU;EAAG,GAAI;EAC9B;CACQ,CAAA;AAEf"}
@@ -1,7 +1,14 @@
1
- import type { ReactNode } from "react";
2
- import { type ViewProps } from "react-native";
3
- export type ChainOfThoughtRootProps = ViewProps & {
4
- children: ReactNode;
1
+ import { ViewProps } from "react-native";
2
+ import { ReactNode } from "react";
3
+
4
+ //#region src/primitives/chainOfThought/ChainOfThoughtRoot.d.ts
5
+ type ChainOfThoughtRootProps = ViewProps & {
6
+ children: ReactNode;
5
7
  };
6
- export declare const ChainOfThoughtRoot: ({ children, ...viewProps }: ChainOfThoughtRootProps) => import("react/jsx-runtime").JSX.Element;
8
+ declare const ChainOfThoughtRoot: ({
9
+ children,
10
+ ...viewProps
11
+ }: ChainOfThoughtRootProps) => import("react/jsx-runtime").JSX.Element;
12
+ //#endregion
13
+ export { ChainOfThoughtRoot, ChainOfThoughtRootProps };
7
14
  //# sourceMappingURL=ChainOfThoughtRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChainOfThoughtRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG;IAChD,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,4BAGhC,uBAAuB,4CAEzB,CAAC"}
1
+ {"version":3,"file":"ChainOfThoughtRoot.d.ts","names":[],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"mappings":";;;;KAGY,uBAAA,GAA0B,SAAA;EACpC,QAAA,EAAU,SAAS;AAAA;AAAA,cAGR,kBAAA;EAAsB,QAAA;EAAA,GAAA;AAAA,GAGhC,uBAAuB,iCAAA,GAAA,CAAA,OAAA"}
@@ -1,6 +1,13 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
1
  import { View } from "react-native";
3
- export const ChainOfThoughtRoot = ({ children, ...viewProps }) => {
4
- return _jsx(View, { ...viewProps, children: children });
2
+ import { jsx } from "react/jsx-runtime";
3
+ //#region src/primitives/chainOfThought/ChainOfThoughtRoot.tsx
4
+ const ChainOfThoughtRoot = ({ children, ...viewProps }) => {
5
+ return /* @__PURE__ */ jsx(View, {
6
+ ...viewProps,
7
+ children
8
+ });
5
9
  };
10
+ //#endregion
11
+ export { ChainOfThoughtRoot };
12
+
6
13
  //# sourceMappingURL=ChainOfThoughtRoot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChainOfThoughtRoot.js","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAMpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EACjC,QAAQ,EACR,GAAG,SAAS,EACY,EAAE,EAAE;IAC5B,OAAO,KAAC,IAAI,OAAK,SAAS,YAAG,QAAQ,GAAQ,CAAC;AAChD,CAAC,CAAC"}
1
+ {"version":3,"file":"ChainOfThoughtRoot.js","names":[],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { View, type ViewProps } from \"react-native\";\n\nexport type ChainOfThoughtRootProps = ViewProps & {\n children: ReactNode;\n};\n\nexport const ChainOfThoughtRoot = ({\n children,\n ...viewProps\n}: ChainOfThoughtRootProps) => {\n return <View {...viewProps}>{children}</View>;\n};\n"],"mappings":";;;AAOA,MAAa,sBAAsB,EACjC,UACA,GAAG,gBAC0B;CAC7B,OAAO,oBAAC,MAAD;EAAM,GAAI;EAAY;CAAe,CAAA;AAC9C"}
@@ -1,4 +1,11 @@
1
- export { ChainOfThoughtRoot as Root, type ChainOfThoughtRootProps as RootProps, } from "./chainOfThought/ChainOfThoughtRoot.js";
2
- export { ChainOfThoughtAccordionTrigger as AccordionTrigger, type ChainOfThoughtAccordionTriggerProps as AccordionTriggerProps, } from "./chainOfThought/ChainOfThoughtAccordionTrigger.js";
3
- export { ChainOfThoughtPrimitiveParts as Parts } from "@assistant-ui/core/react";
1
+ import { ChainOfThoughtRoot, ChainOfThoughtRootProps } from "./chainOfThought/ChainOfThoughtRoot.js";
2
+ import { ChainOfThoughtAccordionTrigger, ChainOfThoughtAccordionTriggerProps } from "./chainOfThought/ChainOfThoughtAccordionTrigger.js";
3
+ import { ChainOfThoughtPrimitiveParts as Parts } from "@assistant-ui/core/react";
4
+
5
+ //#region src/primitives/chainOfThought.d.ts
6
+ declare namespace chainOfThought_d_exports {
7
+ export { ChainOfThoughtAccordionTrigger as AccordionTrigger, ChainOfThoughtAccordionTriggerProps as AccordionTriggerProps, Parts, ChainOfThoughtRoot as Root, ChainOfThoughtRootProps as RootProps };
8
+ }
9
+ //#endregion
10
+ export { ChainOfThoughtAccordionTrigger as AccordionTrigger, type ChainOfThoughtAccordionTriggerProps as AccordionTriggerProps, Parts, ChainOfThoughtRoot as Root, type ChainOfThoughtRootProps as RootProps, chainOfThought_d_exports };
4
11
  //# sourceMappingURL=chainOfThought.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chainOfThought.d.ts","sourceRoot":"","sources":["../../src/primitives/chainOfThought.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,IAAI,IAAI,EAC1B,KAAK,uBAAuB,IAAI,SAAS,GAC1C,+CAA4C;AAC7C,OAAO,EACL,8BAA8B,IAAI,gBAAgB,EAClD,KAAK,mCAAmC,IAAI,qBAAqB,GAClE,2DAAwD;AACzD,OAAO,EAAE,4BAA4B,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"chainOfThought.d.ts","names":[],"sources":["../../src/primitives/chainOfThought.ts"],"mappings":""}
@@ -1,4 +1,14 @@
1
- export { ChainOfThoughtRoot as Root, } from "./chainOfThought/ChainOfThoughtRoot.js";
2
- export { ChainOfThoughtAccordionTrigger as AccordionTrigger, } from "./chainOfThought/ChainOfThoughtAccordionTrigger.js";
3
- export { ChainOfThoughtPrimitiveParts as Parts } from "@assistant-ui/core/react";
1
+ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ import { ChainOfThoughtRoot } from "./chainOfThought/ChainOfThoughtRoot.js";
3
+ import { ChainOfThoughtAccordionTrigger } from "./chainOfThought/ChainOfThoughtAccordionTrigger.js";
4
+ import { ChainOfThoughtPrimitiveParts as Parts } from "@assistant-ui/core/react";
5
+ //#region src/primitives/chainOfThought.ts
6
+ var chainOfThought_exports = /* @__PURE__ */ __exportAll({
7
+ AccordionTrigger: () => ChainOfThoughtAccordionTrigger,
8
+ Parts: () => Parts,
9
+ Root: () => ChainOfThoughtRoot
10
+ });
11
+ //#endregion
12
+ export { ChainOfThoughtAccordionTrigger as AccordionTrigger, Parts, ChainOfThoughtRoot as Root, chainOfThought_exports };
13
+
4
14
  //# sourceMappingURL=chainOfThought.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chainOfThought.js","sourceRoot":"","sources":["../../src/primitives/chainOfThought.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,IAAI,IAAI,GAE3B,+CAA4C;AAC7C,OAAO,EACL,8BAA8B,IAAI,gBAAgB,GAEnD,2DAAwD;AACzD,OAAO,EAAE,4BAA4B,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"chainOfThought.js","names":[],"sources":["../../src/primitives/chainOfThought.ts"],"sourcesContent":["export {\n ChainOfThoughtRoot as Root,\n type ChainOfThoughtRootProps as RootProps,\n} from \"./chainOfThought/ChainOfThoughtRoot\";\nexport {\n ChainOfThoughtAccordionTrigger as AccordionTrigger,\n type ChainOfThoughtAccordionTriggerProps as AccordionTriggerProps,\n} from \"./chainOfThought/ChainOfThoughtAccordionTrigger\";\nexport { ChainOfThoughtPrimitiveParts as Parts } from \"@assistant-ui/core/react\";\n"],"mappings":""}
@@ -1,7 +1,9 @@
1
- import type { ReactNode } from "react";
2
- import { type PressableProps } from "react-native";
3
- export type ComposerAddAttachmentProps = Omit<PressableProps, "onPress"> & {
4
- children: ReactNode;
1
+ import { PressableProps } from "react-native";
2
+ import { ReactNode } from "react";
3
+
4
+ //#region src/primitives/composer/ComposerAddAttachment.d.ts
5
+ type ComposerAddAttachmentProps = Omit<PressableProps, "onPress"> & {
6
+ children: ReactNode;
5
7
  };
6
8
  /**
7
9
  * A button that triggers the attachment adding flow.
@@ -10,5 +12,11 @@ export type ComposerAddAttachmentProps = Omit<PressableProps, "onPress"> & {
10
12
  * This component calls `useComposerAddAttachment()` from `@assistant-ui/core/react`.
11
13
  * You must handle the file selection in your own component using the returned `addAttachment` callback.
12
14
  */
13
- export declare const ComposerAddAttachment: ({ children, disabled: disabledProp, ...pressableProps }: ComposerAddAttachmentProps) => import("react/jsx-runtime").JSX.Element;
15
+ declare const ComposerAddAttachment: ({
16
+ children,
17
+ disabled: disabledProp,
18
+ ...pressableProps
19
+ }: ComposerAddAttachmentProps) => import("react/jsx-runtime").JSX.Element;
20
+ //#endregion
21
+ export { ComposerAddAttachment, ComposerAddAttachmentProps };
14
22
  //# sourceMappingURL=ComposerAddAttachment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerAddAttachment.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerAddAttachment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9D,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,GAAG;IACzE,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GAAI,yDAInC,0BAA0B,4CAQ5B,CAAC"}
1
+ {"version":3,"file":"ComposerAddAttachment.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerAddAttachment.tsx"],"mappings":";;;;KAIY,0BAAA,GAA6B,IAAA,CAAK,cAAA;EAC5C,QAAA,EAAU,SAAA;AAAA;;;;;;;;cAUC,qBAAA;EAAyB,QAAA;EAAA,QAAA,EAAA,YAAA;EAAA,GAAA;AAAA,GAInC,0BAAA,iCAA0B,GAAA,CAAA,OAAA"}
@@ -1,15 +1,23 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Pressable } from "react-native";
3
1
  import { useComposerAddAttachment } from "@assistant-ui/core/react";
2
+ import { Pressable } from "react-native";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/primitives/composer/ComposerAddAttachment.tsx
4
5
  /**
5
- * A button that triggers the attachment adding flow.
6
- *
7
- * Note: The actual file picker implementation is platform-specific.
8
- * This component calls `useComposerAddAttachment()` from `@assistant-ui/core/react`.
9
- * You must handle the file selection in your own component using the returned `addAttachment` callback.
10
- */
11
- export const ComposerAddAttachment = ({ children, disabled: disabledProp, ...pressableProps }) => {
12
- const { disabled } = useComposerAddAttachment();
13
- return (_jsx(Pressable, { disabled: disabledProp ?? disabled, ...pressableProps, children: children }));
6
+ * A button that triggers the attachment adding flow.
7
+ *
8
+ * Note: The actual file picker implementation is platform-specific.
9
+ * This component calls `useComposerAddAttachment()` from `@assistant-ui/core/react`.
10
+ * You must handle the file selection in your own component using the returned `addAttachment` callback.
11
+ */
12
+ const ComposerAddAttachment = ({ children, disabled: disabledProp, ...pressableProps }) => {
13
+ const { disabled } = useComposerAddAttachment();
14
+ return /* @__PURE__ */ jsx(Pressable, {
15
+ disabled: disabledProp ?? disabled,
16
+ ...pressableProps,
17
+ children
18
+ });
14
19
  };
20
+ //#endregion
21
+ export { ComposerAddAttachment };
22
+
15
23
  //# sourceMappingURL=ComposerAddAttachment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerAddAttachment.js","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerAddAttachment.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAuB,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAMpE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EACpC,QAAQ,EACR,QAAQ,EAAE,YAAY,EACtB,GAAG,cAAc,EACU,EAAE,EAAE;IAC/B,MAAM,EAAE,QAAQ,EAAE,GAAG,wBAAwB,EAAE,CAAC;IAEhD,OAAO,CACL,KAAC,SAAS,IAAC,QAAQ,EAAE,YAAY,IAAI,QAAQ,KAAM,cAAc,YAC9D,QAAQ,GACC,CACb,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"ComposerAddAttachment.js","names":[],"sources":["../../../src/primitives/composer/ComposerAddAttachment.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useComposerAddAttachment } from \"@assistant-ui/core/react\";\n\nexport type ComposerAddAttachmentProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\n/**\n * A button that triggers the attachment adding flow.\n *\n * Note: The actual file picker implementation is platform-specific.\n * This component calls `useComposerAddAttachment()` from `@assistant-ui/core/react`.\n * You must handle the file selection in your own component using the returned `addAttachment` callback.\n */\nexport const ComposerAddAttachment = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ComposerAddAttachmentProps) => {\n const { disabled } = useComposerAddAttachment();\n\n return (\n <Pressable disabled={disabledProp ?? disabled} {...pressableProps}>\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;;;;;;;AAeA,MAAa,yBAAyB,EACpC,UACA,UAAU,cACV,GAAG,qBAC6B;CAChC,MAAM,EAAE,aAAa,yBAAyB;CAE9C,OACE,oBAAC,WAAD;EAAW,UAAU,gBAAgB;EAAU,GAAI;EAChD;CACQ,CAAA;AAEf"}
@@ -1,18 +1,22 @@
1
- import type { ComponentType } from "react";
2
- import { ComposerPrimitiveAttachments, ComposerPrimitiveAttachmentByIndex } from "@assistant-ui/core/react";
3
- export type AttachmentComponents = {
4
- Image?: ComponentType | undefined;
5
- Document?: ComponentType | undefined;
6
- File?: ComponentType | undefined;
7
- Attachment?: ComponentType | undefined;
1
+ import { ComposerPrimitiveAttachmentByIndex, ComposerPrimitiveAttachments } from "@assistant-ui/core/react";
2
+ import { ComponentType } from "react";
3
+
4
+ //#region src/primitives/composer/ComposerAttachments.d.ts
5
+ type AttachmentComponents = {
6
+ Image?: ComponentType | undefined;
7
+ Document?: ComponentType | undefined;
8
+ File?: ComponentType | undefined;
9
+ Attachment?: ComponentType | undefined;
8
10
  };
9
- export type ComposerAttachmentsProps = {
10
- components: AttachmentComponents | undefined;
11
+ type ComposerAttachmentsProps = {
12
+ components: AttachmentComponents | undefined;
11
13
  };
12
- export type ComposerAttachmentByIndexProps = {
13
- index: number;
14
- components?: AttachmentComponents | undefined;
14
+ type ComposerAttachmentByIndexProps = {
15
+ index: number;
16
+ components?: AttachmentComponents | undefined;
15
17
  };
16
- export declare const ComposerAttachmentByIndex: import("react").FC<ComposerPrimitiveAttachmentByIndex.Props>;
17
- export declare const ComposerAttachments: import("react").FC<ComposerPrimitiveAttachments.Props>;
18
+ declare const ComposerAttachmentByIndex: import("react").FC<ComposerPrimitiveAttachmentByIndex.Props>;
19
+ declare const ComposerAttachments: import("react").FC<ComposerPrimitiveAttachments.Props>;
20
+ //#endregion
21
+ export { AttachmentComponents, ComposerAttachmentByIndex, ComposerAttachmentByIndexProps, ComposerAttachments, ComposerAttachmentsProps };
18
22
  //# sourceMappingURL=ComposerAttachments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerAttachments.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerAttachments.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EACL,4BAA4B,EAC5B,kCAAkC,EACnC,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IACrC,IAAI,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IACjC,UAAU,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,EAAE,oBAAoB,GAAG,SAAS,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,eAAO,MAAM,yBAAyB,8DAAqC,CAAC;AAE5E,eAAO,MAAM,mBAAmB,wDAA+B,CAAC"}
1
+ {"version":3,"file":"ComposerAttachments.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerAttachments.tsx"],"mappings":";;;;KAMY,oBAAA;EACV,KAAA,GAAQ,aAAA;EACR,QAAA,GAAW,aAAA;EACX,IAAA,GAAO,aAAA;EACP,UAAA,GAAa,aAAA;AAAA;AAAA,KAGH,wBAAA;EACV,UAAA,EAAY,oBAAoB;AAAA;AAAA,KAGtB,8BAAA;EACV,KAAA;EACA,UAAA,GAAa,oBAAoB;AAAA;AAAA,cAGtB,yBAAA,kBAAyB,EAAA,CAAA,kCAAA,CAAA,KAAA;AAAA,cAEzB,mBAAA,kBAAmB,EAAA,CAAA,4BAAA,CAAA,KAAA"}
@@ -1,4 +1,8 @@
1
- import { ComposerPrimitiveAttachments, ComposerPrimitiveAttachmentByIndex, } from "@assistant-ui/core/react";
2
- export const ComposerAttachmentByIndex = ComposerPrimitiveAttachmentByIndex;
3
- export const ComposerAttachments = ComposerPrimitiveAttachments;
1
+ import { ComposerPrimitiveAttachmentByIndex, ComposerPrimitiveAttachments } from "@assistant-ui/core/react";
2
+ //#region src/primitives/composer/ComposerAttachments.tsx
3
+ const ComposerAttachmentByIndex = ComposerPrimitiveAttachmentByIndex;
4
+ const ComposerAttachments = ComposerPrimitiveAttachments;
5
+ //#endregion
6
+ export { ComposerAttachmentByIndex, ComposerAttachments };
7
+
4
8
  //# sourceMappingURL=ComposerAttachments.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerAttachments.js","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerAttachments.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,4BAA4B,EAC5B,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAkBlC,MAAM,CAAC,MAAM,yBAAyB,GAAG,kCAAkC,CAAC;AAE5E,MAAM,CAAC,MAAM,mBAAmB,GAAG,4BAA4B,CAAC"}
1
+ {"version":3,"file":"ComposerAttachments.js","names":[],"sources":["../../../src/primitives/composer/ComposerAttachments.tsx"],"sourcesContent":["import type { ComponentType } from \"react\";\nimport {\n ComposerPrimitiveAttachments,\n ComposerPrimitiveAttachmentByIndex,\n} from \"@assistant-ui/core/react\";\n\nexport type AttachmentComponents = {\n Image?: ComponentType | undefined;\n Document?: ComponentType | undefined;\n File?: ComponentType | undefined;\n Attachment?: ComponentType | undefined;\n};\n\nexport type ComposerAttachmentsProps = {\n components: AttachmentComponents | undefined;\n};\n\nexport type ComposerAttachmentByIndexProps = {\n index: number;\n components?: AttachmentComponents | undefined;\n};\n\nexport const ComposerAttachmentByIndex = ComposerPrimitiveAttachmentByIndex;\n\nexport const ComposerAttachments = ComposerPrimitiveAttachments;\n"],"mappings":";;AAsBA,MAAa,4BAA4B;AAEzC,MAAa,sBAAsB"}
@@ -1,7 +1,15 @@
1
- import type { ReactNode } from "react";
2
- import { type PressableProps } from "react-native";
3
- export type ComposerCancelProps = Omit<PressableProps, "onPress"> & {
4
- children: ReactNode;
1
+ import { PressableProps } from "react-native";
2
+ import { ReactNode } from "react";
3
+
4
+ //#region src/primitives/composer/ComposerCancel.d.ts
5
+ type ComposerCancelProps = Omit<PressableProps, "onPress"> & {
6
+ children: ReactNode;
5
7
  };
6
- export declare const ComposerCancel: ({ children, disabled, ...pressableProps }: ComposerCancelProps) => import("react/jsx-runtime").JSX.Element;
8
+ declare const ComposerCancel: ({
9
+ children,
10
+ disabled,
11
+ ...pressableProps
12
+ }: ComposerCancelProps) => import("react/jsx-runtime").JSX.Element;
13
+ //#endregion
14
+ export { ComposerCancel, ComposerCancelProps };
7
15
  //# sourceMappingURL=ComposerCancel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerCancel.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerCancel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9D,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,GAAG;IAClE,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,2CAI5B,mBAAmB,4CAYrB,CAAC"}
1
+ {"version":3,"file":"ComposerCancel.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerCancel.tsx"],"mappings":";;;;KAIY,mBAAA,GAAsB,IAAA,CAAK,cAAA;EACrC,QAAA,EAAU,SAAA;AAAA;AAAA,cAGC,cAAA;EAAkB,QAAA;EAAA,QAAA;EAAA,GAAA;AAAA,GAI5B,mBAAA,iCAAmB,GAAA,CAAA,OAAA"}
@@ -1,8 +1,17 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Pressable } from "react-native";
3
1
  import { useComposerCancel } from "@assistant-ui/core/react";
4
- export const ComposerCancel = ({ children, disabled, ...pressableProps }) => {
5
- const { cancel, disabled: hookDisabled } = useComposerCancel();
6
- return (_jsx(Pressable, { onPress: cancel, disabled: disabled ?? hookDisabled, ...pressableProps, children: children }));
2
+ import { Pressable } from "react-native";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/primitives/composer/ComposerCancel.tsx
5
+ const ComposerCancel = ({ children, disabled, ...pressableProps }) => {
6
+ const { cancel, disabled: hookDisabled } = useComposerCancel();
7
+ return /* @__PURE__ */ jsx(Pressable, {
8
+ onPress: cancel,
9
+ disabled: disabled ?? hookDisabled,
10
+ ...pressableProps,
11
+ children
12
+ });
7
13
  };
14
+ //#endregion
15
+ export { ComposerCancel };
16
+
8
17
  //# sourceMappingURL=ComposerCancel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerCancel.js","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerCancel.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAuB,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAM7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,QAAQ,EACR,QAAQ,EACR,GAAG,cAAc,EACG,EAAE,EAAE;IACxB,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,iBAAiB,EAAE,CAAC;IAE/D,OAAO,CACL,KAAC,SAAS,IACR,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,QAAQ,IAAI,YAAY,KAC9B,cAAc,YAEjB,QAAQ,GACC,CACb,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"ComposerCancel.js","names":[],"sources":["../../../src/primitives/composer/ComposerCancel.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useComposerCancel } from \"@assistant-ui/core/react\";\n\nexport type ComposerCancelProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const ComposerCancel = ({\n children,\n disabled,\n ...pressableProps\n}: ComposerCancelProps) => {\n const { cancel, disabled: hookDisabled } = useComposerCancel();\n\n return (\n <Pressable\n onPress={cancel}\n disabled={disabled ?? hookDisabled}\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;AAQA,MAAa,kBAAkB,EAC7B,UACA,UACA,GAAG,qBACsB;CACzB,MAAM,EAAE,QAAQ,UAAU,iBAAiB,kBAAkB;CAE7D,OACE,oBAAC,WAAD;EACE,SAAS;EACT,UAAU,YAAY;EACtB,GAAI;EAEH;CACQ,CAAA;AAEf"}
@@ -1,2 +1,2 @@
1
- export { ComposerPrimitiveIf as ComposerIf } from "@assistant-ui/core/react";
2
- //# sourceMappingURL=ComposerIf.d.ts.map
1
+ import { ComposerPrimitiveIf as ComposerIf } from "@assistant-ui/core/react";
2
+ export { ComposerIf };
@@ -1,2 +1,2 @@
1
- export { ComposerPrimitiveIf as ComposerIf } from "@assistant-ui/core/react";
2
- //# sourceMappingURL=ComposerIf.js.map
1
+ import { ComposerPrimitiveIf as ComposerIf } from "@assistant-ui/core/react";
2
+ export { ComposerIf };
@@ -1,12 +1,22 @@
1
- import { type TextInputProps } from "react-native";
2
- export type ComposerInputProps = Omit<TextInputProps, "value" | "onChangeText"> & {
3
- /**
4
- * Controls how the Enter key submits messages (web only).
5
- * - "enter": Plain Enter submits (Shift+Enter for newline)
6
- * - "none": Enter inserts newline (no keyboard submission)
7
- * @default "enter"
8
- */
9
- submitMode?: "enter" | "none";
1
+ import { TextInputProps } from "react-native";
2
+
3
+ //#region src/primitives/composer/ComposerInput.d.ts
4
+ type ComposerInputProps = Omit<TextInputProps, "value" | "onChangeText"> & {
5
+ /**
6
+ * Controls how the Enter key submits messages (web only).
7
+ * - "enter": Plain Enter submits (Shift+Enter for newline)
8
+ * - "none": Enter inserts newline (no keyboard submission)
9
+ * @default "enter"
10
+ */
11
+ submitMode?: "enter" | "none";
10
12
  };
11
- export declare const ComposerInput: ({ submitMode, onKeyPress: onKeyPressProp, numberOfLines, style, ...props }: ComposerInputProps) => import("react/jsx-runtime").JSX.Element;
13
+ declare const ComposerInput: ({
14
+ submitMode,
15
+ onKeyPress: onKeyPressProp,
16
+ numberOfLines,
17
+ style,
18
+ ...props
19
+ }: ComposerInputProps) => import("react/jsx-runtime").JSX.Element;
20
+ //#endregion
21
+ export { ComposerInput, ComposerInputProps };
12
22
  //# sourceMappingURL=ComposerInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerInput.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AAGtB,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,cAAc,EACd,OAAO,GAAG,cAAc,CACzB,GAAG;IACF;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC/B,CAAC;AAcF,eAAO,MAAM,aAAa,GAAI,4EAM3B,kBAAkB,4CA+CpB,CAAC"}
1
+ {"version":3,"file":"ComposerInput.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerInput.tsx"],"mappings":";;;KAUY,kBAAA,GAAqB,IAAI,CACnC,cAAA;;AADF;;;;;EAUE,UAAA;AAAA;AAAA,cAeW,aAAA;EAAiB,UAAA;EAAA,UAAA,EAAA,cAAA;EAAA,aAAA;EAAA,KAAA;EAAA,GAAA;AAAA,GAM3B,kBAAA,iCAAkB,GAAA,CAAA,OAAA"}
@@ -1,45 +1,51 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useCallback, useEffect, useRef } from "react";
3
- import { Platform, TextInput, } from "react-native";
4
1
  import { useAui, useAuiState } from "@assistant-ui/store";
2
+ import { Platform, TextInput } from "react-native";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { useCallback, useEffect, useRef } from "react";
5
+ //#region src/primitives/composer/ComposerInput.tsx
5
6
  const adjustWebTextareaHeight = (ref) => {
6
- if (Platform.OS !== "web")
7
- return;
8
- // On web, the TextInput ref IS the DOM element
9
- const el = ref.current;
10
- if (!el)
11
- return;
12
- // Ensure rows=1 so scrollHeight reflects actual content
13
- if (el.rows !== 1)
14
- el.rows = 1;
15
- el.style.overflow = "hidden";
16
- el.style.height = "auto";
17
- el.style.height = `${el.scrollHeight}px`;
7
+ if (Platform.OS !== "web") return;
8
+ const el = ref.current;
9
+ if (!el) return;
10
+ if (el.rows !== 1) el.rows = 1;
11
+ el.style.overflow = "hidden";
12
+ el.style.height = "auto";
13
+ el.style.height = `${el.scrollHeight}px`;
18
14
  };
19
- export const ComposerInput = ({ submitMode = "enter", onKeyPress: onKeyPressProp, numberOfLines, style, ...props }) => {
20
- const aui = useAui();
21
- const text = useAuiState((s) => s.composer.text);
22
- const inputRef = useRef(null);
23
- const onChangeText = useCallback((value) => {
24
- aui.composer().setText(value);
25
- }, [aui]);
26
- // Auto-resize textarea on web when text changes
27
- useEffect(() => {
28
- void text; // trigger re-run when text changes
29
- adjustWebTextareaHeight(inputRef);
30
- }, [text]);
31
- const onKeyPress = useCallback((e) => {
32
- onKeyPressProp?.(e);
33
- if (Platform.OS !== "web")
34
- return;
35
- if (submitMode !== "enter")
36
- return;
37
- const nativeEvent = e.nativeEvent;
38
- if (nativeEvent.key === "Enter" && !nativeEvent.shiftKey) {
39
- e.preventDefault?.();
40
- aui.composer().send();
41
- }
42
- }, [aui, submitMode, onKeyPressProp]);
43
- return (_jsx(TextInput, { ref: inputRef, value: text, onChangeText: onChangeText, onKeyPress: onKeyPress, numberOfLines: numberOfLines ?? (Platform.OS === "web" ? 1 : undefined), style: style, ...props }));
15
+ const ComposerInput = ({ submitMode = "enter", onKeyPress: onKeyPressProp, numberOfLines, style, ...props }) => {
16
+ const aui = useAui();
17
+ const text = useAuiState((s) => s.composer.text);
18
+ const inputRef = useRef(null);
19
+ const onChangeText = useCallback((value) => {
20
+ aui.composer().setText(value);
21
+ }, [aui]);
22
+ useEffect(() => {
23
+ adjustWebTextareaHeight(inputRef);
24
+ }, [text]);
25
+ return /* @__PURE__ */ jsx(TextInput, {
26
+ ref: inputRef,
27
+ value: text,
28
+ onChangeText,
29
+ onKeyPress: useCallback((e) => {
30
+ onKeyPressProp?.(e);
31
+ if (Platform.OS !== "web") return;
32
+ if (submitMode !== "enter") return;
33
+ const nativeEvent = e.nativeEvent;
34
+ if (nativeEvent.key === "Enter" && !nativeEvent.shiftKey) {
35
+ e.preventDefault?.();
36
+ aui.composer().send();
37
+ }
38
+ }, [
39
+ aui,
40
+ submitMode,
41
+ onKeyPressProp
42
+ ]),
43
+ numberOfLines: numberOfLines ?? (Platform.OS === "web" ? 1 : void 0),
44
+ style,
45
+ ...props
46
+ });
44
47
  };
48
+ //#endregion
49
+ export { ComposerInput };
50
+
45
51
  //# sourceMappingURL=ComposerInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerInput.js","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EACL,QAAQ,EACR,SAAS,GAIV,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAe1D,MAAM,uBAAuB,GAAG,CAAC,GAAsC,EAAE,EAAE;IACzE,IAAI,QAAQ,CAAC,EAAE,KAAK,KAAK;QAAE,OAAO;IAClC,+CAA+C;IAC/C,MAAM,EAAE,GAAG,GAAG,CAAC,OAAgD,CAAC;IAChE,IAAI,CAAC,EAAE;QAAE,OAAO;IAChB,wDAAwD;IACxD,IAAI,EAAE,CAAC,IAAI,KAAK,CAAC;QAAE,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC;IAC/B,EAAE,CAAC,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC,YAAY,IAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,UAAU,GAAG,OAAO,EACpB,UAAU,EAAE,cAAc,EAC1B,aAAa,EACb,KAAK,EACL,GAAG,KAAK,EACW,EAAE,EAAE;IACvB,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IACrB,MAAM,IAAI,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACjD,MAAM,QAAQ,GAAG,MAAM,CAAY,IAAI,CAAC,CAAC;IAEzC,MAAM,YAAY,GAAG,WAAW,CAC9B,CAAC,KAAa,EAAE,EAAE;QAChB,GAAG,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC,EACD,CAAC,GAAG,CAAC,CACN,CAAC;IAEF,gDAAgD;IAChD,SAAS,CAAC,GAAG,EAAE;QACb,KAAK,IAAI,CAAC,CAAC,mCAAmC;QAC9C,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,MAAM,UAAU,GAAG,WAAW,CAC5B,CAAC,CAAmD,EAAE,EAAE;QACtD,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC;QAEpB,IAAI,QAAQ,CAAC,EAAE,KAAK,KAAK;YAAE,OAAO;QAClC,IAAI,UAAU,KAAK,OAAO;YAAE,OAAO;QAEnC,MAAM,WAAW,GAAG,CAAC,CAAC,WAErB,CAAC;QACF,IAAI,WAAW,CAAC,GAAG,KAAK,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;YACxD,CAAsB,CAAC,cAAc,EAAE,EAAE,CAAC;YAC3C,GAAG,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;IACH,CAAC,EACD,CAAC,GAAG,EAAE,UAAU,EAAE,cAAc,CAAC,CAClC,CAAC;IAEF,OAAO,CACL,KAAC,SAAS,IACR,GAAG,EAAE,QAAQ,EACb,KAAK,EAAE,IAAI,EACX,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EACvE,KAAK,EAAE,KAAK,KACR,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"ComposerInput.js","names":[],"sources":["../../../src/primitives/composer/ComposerInput.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef } from \"react\";\nimport {\n Platform,\n TextInput,\n type NativeSyntheticEvent,\n type TextInputKeyPressEventData,\n type TextInputProps,\n} from \"react-native\";\nimport { useAui, useAuiState } from \"@assistant-ui/store\";\n\nexport type ComposerInputProps = Omit<\n TextInputProps,\n \"value\" | \"onChangeText\"\n> & {\n /**\n * Controls how the Enter key submits messages (web only).\n * - \"enter\": Plain Enter submits (Shift+Enter for newline)\n * - \"none\": Enter inserts newline (no keyboard submission)\n * @default \"enter\"\n */\n submitMode?: \"enter\" | \"none\";\n};\n\nconst adjustWebTextareaHeight = (ref: React.RefObject<TextInput | null>) => {\n if (Platform.OS !== \"web\") return;\n // On web, the TextInput ref IS the DOM element\n const el = ref.current as unknown as HTMLTextAreaElement | null;\n if (!el) return;\n // Ensure rows=1 so scrollHeight reflects actual content\n if (el.rows !== 1) el.rows = 1;\n el.style.overflow = \"hidden\";\n el.style.height = \"auto\";\n el.style.height = `${el.scrollHeight}px`;\n};\n\nexport const ComposerInput = ({\n submitMode = \"enter\",\n onKeyPress: onKeyPressProp,\n numberOfLines,\n style,\n ...props\n}: ComposerInputProps) => {\n const aui = useAui();\n const text = useAuiState((s) => s.composer.text);\n const inputRef = useRef<TextInput>(null);\n\n const onChangeText = useCallback(\n (value: string) => {\n aui.composer().setText(value);\n },\n [aui],\n );\n\n // Auto-resize textarea on web when text changes\n useEffect(() => {\n void text; // trigger re-run when text changes\n adjustWebTextareaHeight(inputRef);\n }, [text]);\n\n const onKeyPress = useCallback(\n (e: NativeSyntheticEvent<TextInputKeyPressEventData>) => {\n onKeyPressProp?.(e);\n\n if (Platform.OS !== \"web\") return;\n if (submitMode !== \"enter\") return;\n\n const nativeEvent = e.nativeEvent as TextInputKeyPressEventData & {\n shiftKey?: boolean;\n };\n if (nativeEvent.key === \"Enter\" && !nativeEvent.shiftKey) {\n (e as unknown as Event).preventDefault?.();\n aui.composer().send();\n }\n },\n [aui, submitMode, onKeyPressProp],\n );\n\n return (\n <TextInput\n ref={inputRef}\n value={text}\n onChangeText={onChangeText}\n onKeyPress={onKeyPress}\n numberOfLines={numberOfLines ?? (Platform.OS === \"web\" ? 1 : undefined)}\n style={style}\n {...props}\n />\n );\n};\n"],"mappings":";;;;;AAuBA,MAAM,2BAA2B,QAA2C;CAC1E,IAAI,SAAS,OAAO,OAAO;CAE3B,MAAM,KAAK,IAAI;CACf,IAAI,CAAC,IAAI;CAET,IAAI,GAAG,SAAS,GAAG,GAAG,OAAO;CAC7B,GAAG,MAAM,WAAW;CACpB,GAAG,MAAM,SAAS;CAClB,GAAG,MAAM,SAAS,GAAG,GAAG,aAAa;AACvC;AAEA,MAAa,iBAAiB,EAC5B,aAAa,SACb,YAAY,gBACZ,eACA,OACA,GAAG,YACqB;CACxB,MAAM,MAAM,OAAO;CACnB,MAAM,OAAO,aAAa,MAAM,EAAE,SAAS,IAAI;CAC/C,MAAM,WAAW,OAAkB,IAAI;CAEvC,MAAM,eAAe,aAClB,UAAkB;EACjB,IAAI,SAAS,EAAE,QAAQ,KAAK;CAC9B,GACA,CAAC,GAAG,CACN;CAGA,gBAAgB;EAEd,wBAAwB,QAAQ;CAClC,GAAG,CAAC,IAAI,CAAC;CAoBT,OACE,oBAAC,WAAD;EACE,KAAK;EACL,OAAO;EACO;EACd,YAvBe,aAChB,MAAwD;GACvD,iBAAiB,CAAC;GAElB,IAAI,SAAS,OAAO,OAAO;GAC3B,IAAI,eAAe,SAAS;GAE5B,MAAM,cAAc,EAAE;GAGtB,IAAI,YAAY,QAAQ,WAAW,CAAC,YAAY,UAAU;IACxD,EAAwB,iBAAiB;IACzC,IAAI,SAAS,EAAE,KAAK;GACtB;EACF,GACA;GAAC;GAAK;GAAY;EAAc,CAQT;EACrB,eAAe,kBAAkB,SAAS,OAAO,QAAQ,IAAI,KAAA;EACtD;EACP,GAAI;CACL,CAAA;AAEL"}
@@ -1,7 +1,14 @@
1
- import type { ReactNode } from "react";
2
- import { type ViewProps } from "react-native";
3
- export type ComposerRootProps = ViewProps & {
4
- children: ReactNode;
1
+ import { ViewProps } from "react-native";
2
+ import { ReactNode } from "react";
3
+
4
+ //#region src/primitives/composer/ComposerRoot.d.ts
5
+ type ComposerRootProps = ViewProps & {
6
+ children: ReactNode;
5
7
  };
6
- export declare const ComposerRoot: ({ children, ...viewProps }: ComposerRootProps) => import("react/jsx-runtime").JSX.Element;
8
+ declare const ComposerRoot: ({
9
+ children,
10
+ ...viewProps
11
+ }: ComposerRootProps) => import("react/jsx-runtime").JSX.Element;
12
+ //#endregion
13
+ export { ComposerRoot, ComposerRootProps };
7
14
  //# sourceMappingURL=ComposerRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG;IAC1C,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,4BAA4B,iBAAiB,4CAEzE,CAAC"}
1
+ {"version":3,"file":"ComposerRoot.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerRoot.tsx"],"mappings":";;;;KAGY,iBAAA,GAAoB,SAAA;EAC9B,QAAA,EAAU,SAAS;AAAA;AAAA,cAGR,YAAA;EAAgB,QAAA;EAAA,GAAA;AAAA,GAA4B,iBAAiB,iCAAA,GAAA,CAAA,OAAA"}
@@ -1,6 +1,13 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
1
  import { View } from "react-native";
3
- export const ComposerRoot = ({ children, ...viewProps }) => {
4
- return _jsx(View, { ...viewProps, children: children });
2
+ import { jsx } from "react/jsx-runtime";
3
+ //#region src/primitives/composer/ComposerRoot.tsx
4
+ const ComposerRoot = ({ children, ...viewProps }) => {
5
+ return /* @__PURE__ */ jsx(View, {
6
+ ...viewProps,
7
+ children
8
+ });
5
9
  };
10
+ //#endregion
11
+ export { ComposerRoot };
12
+
6
13
  //# sourceMappingURL=ComposerRoot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerRoot.js","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerRoot.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAMpD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAqB,EAAE,EAAE;IAC5E,OAAO,KAAC,IAAI,OAAK,SAAS,YAAG,QAAQ,GAAQ,CAAC;AAChD,CAAC,CAAC"}
1
+ {"version":3,"file":"ComposerRoot.js","names":[],"sources":["../../../src/primitives/composer/ComposerRoot.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { View, type ViewProps } from \"react-native\";\n\nexport type ComposerRootProps = ViewProps & {\n children: ReactNode;\n};\n\nexport const ComposerRoot = ({ children, ...viewProps }: ComposerRootProps) => {\n return <View {...viewProps}>{children}</View>;\n};\n"],"mappings":";;;AAOA,MAAa,gBAAgB,EAAE,UAAU,GAAG,gBAAmC;CAC7E,OAAO,oBAAC,MAAD;EAAM,GAAI;EAAY;CAAe,CAAA;AAC9C"}