@assistant-ui/react 0.12.21 → 0.12.22

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 (244) hide show
  1. package/dist/client/ExternalThread.d.ts.map +1 -1
  2. package/dist/client/ExternalThread.js +8 -2
  3. package/dist/client/ExternalThread.js.map +1 -1
  4. package/dist/index.d.ts +5 -1
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +3 -1
  7. package/dist/index.js.map +1 -1
  8. package/dist/legacy-runtime/runtime-cores/assistant-transport/types.d.ts +3 -1
  9. package/dist/legacy-runtime/runtime-cores/assistant-transport/types.d.ts.map +1 -1
  10. package/dist/legacy-runtime/runtime-cores/assistant-transport/types.js.map +1 -1
  11. package/dist/legacy-runtime/runtime-cores/assistant-transport/useAssistantTransportRuntime.d.ts.map +1 -1
  12. package/dist/legacy-runtime/runtime-cores/assistant-transport/useAssistantTransportRuntime.js +4 -0
  13. package/dist/legacy-runtime/runtime-cores/assistant-transport/useAssistantTransportRuntime.js.map +1 -1
  14. package/dist/primitives/actionBar/ActionBarCopy.d.ts +3 -1
  15. package/dist/primitives/actionBar/ActionBarCopy.d.ts.map +1 -1
  16. package/dist/primitives/actionBar/ActionBarCopy.js +1 -1
  17. package/dist/primitives/actionBar/ActionBarCopy.js.map +1 -1
  18. package/dist/primitives/actionBar/ActionBarEdit.d.ts +4 -2
  19. package/dist/primitives/actionBar/ActionBarEdit.d.ts.map +1 -1
  20. package/dist/primitives/actionBar/ActionBarExportMarkdown.d.ts +3 -1
  21. package/dist/primitives/actionBar/ActionBarExportMarkdown.d.ts.map +1 -1
  22. package/dist/primitives/actionBar/ActionBarExportMarkdown.js +1 -1
  23. package/dist/primitives/actionBar/ActionBarExportMarkdown.js.map +1 -1
  24. package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts +4 -2
  25. package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts.map +1 -1
  26. package/dist/primitives/actionBar/ActionBarFeedbackNegative.js +1 -1
  27. package/dist/primitives/actionBar/ActionBarFeedbackNegative.js.map +1 -1
  28. package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts +4 -2
  29. package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts.map +1 -1
  30. package/dist/primitives/actionBar/ActionBarFeedbackPositive.js +1 -1
  31. package/dist/primitives/actionBar/ActionBarFeedbackPositive.js.map +1 -1
  32. package/dist/primitives/actionBar/ActionBarReload.d.ts +4 -2
  33. package/dist/primitives/actionBar/ActionBarReload.d.ts.map +1 -1
  34. package/dist/primitives/actionBar/ActionBarRoot.d.ts +4 -2
  35. package/dist/primitives/actionBar/ActionBarRoot.d.ts.map +1 -1
  36. package/dist/primitives/actionBar/ActionBarRoot.js +1 -1
  37. package/dist/primitives/actionBar/ActionBarRoot.js.map +1 -1
  38. package/dist/primitives/actionBar/ActionBarSpeak.d.ts +4 -2
  39. package/dist/primitives/actionBar/ActionBarSpeak.d.ts.map +1 -1
  40. package/dist/primitives/actionBar/ActionBarStopSpeaking.d.ts +4 -2
  41. package/dist/primitives/actionBar/ActionBarStopSpeaking.d.ts.map +1 -1
  42. package/dist/primitives/actionBar/ActionBarStopSpeaking.js +1 -1
  43. package/dist/primitives/actionBar/ActionBarStopSpeaking.js.map +1 -1
  44. package/dist/primitives/attachment/AttachmentRemove.d.ts +4 -2
  45. package/dist/primitives/attachment/AttachmentRemove.d.ts.map +1 -1
  46. package/dist/primitives/attachment/AttachmentRoot.d.ts +5 -3
  47. package/dist/primitives/attachment/AttachmentRoot.d.ts.map +1 -1
  48. package/dist/primitives/attachment/AttachmentRoot.js +1 -1
  49. package/dist/primitives/attachment/AttachmentRoot.js.map +1 -1
  50. package/dist/primitives/attachment/AttachmentThumb.d.ts +5 -3
  51. package/dist/primitives/attachment/AttachmentThumb.d.ts.map +1 -1
  52. package/dist/primitives/attachment/AttachmentThumb.js +1 -1
  53. package/dist/primitives/attachment/AttachmentThumb.js.map +1 -1
  54. package/dist/primitives/branchPicker/BranchPickerNext.d.ts +4 -2
  55. package/dist/primitives/branchPicker/BranchPickerNext.d.ts.map +1 -1
  56. package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts +4 -2
  57. package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts.map +1 -1
  58. package/dist/primitives/branchPicker/BranchPickerRoot.d.ts +4 -2
  59. package/dist/primitives/branchPicker/BranchPickerRoot.d.ts.map +1 -1
  60. package/dist/primitives/branchPicker/BranchPickerRoot.js +1 -1
  61. package/dist/primitives/branchPicker/BranchPickerRoot.js.map +1 -1
  62. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts +4 -2
  63. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts.map +1 -1
  64. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts +5 -3
  65. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts.map +1 -1
  66. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.js +1 -1
  67. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.js.map +1 -1
  68. package/dist/primitives/composer/ComposerAddAttachment.d.ts +3 -1
  69. package/dist/primitives/composer/ComposerAddAttachment.d.ts.map +1 -1
  70. package/dist/primitives/composer/ComposerAttachmentDropzone.d.ts +3 -0
  71. package/dist/primitives/composer/ComposerAttachmentDropzone.d.ts.map +1 -1
  72. package/dist/primitives/composer/ComposerAttachmentDropzone.js +18 -8
  73. package/dist/primitives/composer/ComposerAttachmentDropzone.js.map +1 -1
  74. package/dist/primitives/composer/ComposerCancel.d.ts +4 -2
  75. package/dist/primitives/composer/ComposerCancel.d.ts.map +1 -1
  76. package/dist/primitives/composer/ComposerDictate.d.ts +4 -2
  77. package/dist/primitives/composer/ComposerDictate.d.ts.map +1 -1
  78. package/dist/primitives/composer/ComposerDictationTranscript.d.ts +5 -3
  79. package/dist/primitives/composer/ComposerDictationTranscript.d.ts.map +1 -1
  80. package/dist/primitives/composer/ComposerDictationTranscript.js +1 -1
  81. package/dist/primitives/composer/ComposerDictationTranscript.js.map +1 -1
  82. package/dist/primitives/composer/ComposerInput.d.ts +5 -0
  83. package/dist/primitives/composer/ComposerInput.d.ts.map +1 -1
  84. package/dist/primitives/composer/ComposerInput.js +23 -6
  85. package/dist/primitives/composer/ComposerInput.js.map +1 -1
  86. package/dist/primitives/composer/ComposerQuote.d.ts +13 -7
  87. package/dist/primitives/composer/ComposerQuote.d.ts.map +1 -1
  88. package/dist/primitives/composer/ComposerQuote.js +1 -1
  89. package/dist/primitives/composer/ComposerQuote.js.map +1 -1
  90. package/dist/primitives/composer/ComposerRoot.d.ts +5 -3
  91. package/dist/primitives/composer/ComposerRoot.d.ts.map +1 -1
  92. package/dist/primitives/composer/ComposerRoot.js +1 -1
  93. package/dist/primitives/composer/ComposerRoot.js.map +1 -1
  94. package/dist/primitives/composer/ComposerSend.d.ts +4 -2
  95. package/dist/primitives/composer/ComposerSend.d.ts.map +1 -1
  96. package/dist/primitives/composer/ComposerStopDictation.d.ts +4 -2
  97. package/dist/primitives/composer/ComposerStopDictation.d.ts.map +1 -1
  98. package/dist/primitives/composer/mention/ComposerMentionBack.d.ts +5 -3
  99. package/dist/primitives/composer/mention/ComposerMentionBack.d.ts.map +1 -1
  100. package/dist/primitives/composer/mention/ComposerMentionBack.js +1 -1
  101. package/dist/primitives/composer/mention/ComposerMentionBack.js.map +1 -1
  102. package/dist/primitives/composer/mention/ComposerMentionCategories.d.ts +8 -4
  103. package/dist/primitives/composer/mention/ComposerMentionCategories.d.ts.map +1 -1
  104. package/dist/primitives/composer/mention/ComposerMentionCategories.js +1 -1
  105. package/dist/primitives/composer/mention/ComposerMentionCategories.js.map +1 -1
  106. package/dist/primitives/composer/mention/ComposerMentionItems.d.ts +8 -4
  107. package/dist/primitives/composer/mention/ComposerMentionItems.d.ts.map +1 -1
  108. package/dist/primitives/composer/mention/ComposerMentionItems.js +1 -1
  109. package/dist/primitives/composer/mention/ComposerMentionItems.js.map +1 -1
  110. package/dist/primitives/composer/mention/ComposerMentionPopover.d.ts +5 -3
  111. package/dist/primitives/composer/mention/ComposerMentionPopover.d.ts.map +1 -1
  112. package/dist/primitives/composer/mention/ComposerMentionPopover.js +1 -1
  113. package/dist/primitives/composer/mention/ComposerMentionPopover.js.map +1 -1
  114. package/dist/primitives/error/ErrorMessage.d.ts +5 -3
  115. package/dist/primitives/error/ErrorMessage.d.ts.map +1 -1
  116. package/dist/primitives/error/ErrorMessage.js +1 -1
  117. package/dist/primitives/error/ErrorMessage.js.map +1 -1
  118. package/dist/primitives/error/ErrorRoot.d.ts +5 -3
  119. package/dist/primitives/error/ErrorRoot.d.ts.map +1 -1
  120. package/dist/primitives/error/ErrorRoot.js +1 -1
  121. package/dist/primitives/error/ErrorRoot.js.map +1 -1
  122. package/dist/primitives/message/MessageRoot.d.ts +5 -3
  123. package/dist/primitives/message/MessageRoot.d.ts.map +1 -1
  124. package/dist/primitives/message/MessageRoot.js +1 -1
  125. package/dist/primitives/message/MessageRoot.js.map +1 -1
  126. package/dist/primitives/messagePart/MessagePartImage.d.ts +5 -3
  127. package/dist/primitives/messagePart/MessagePartImage.d.ts.map +1 -1
  128. package/dist/primitives/messagePart/MessagePartImage.js +1 -1
  129. package/dist/primitives/messagePart/MessagePartImage.js.map +1 -1
  130. package/dist/primitives/messagePart/MessagePartText.d.ts +5 -3
  131. package/dist/primitives/messagePart/MessagePartText.d.ts.map +1 -1
  132. package/dist/primitives/queueItem/QueueItemRemove.d.ts +4 -2
  133. package/dist/primitives/queueItem/QueueItemRemove.d.ts.map +1 -1
  134. package/dist/primitives/queueItem/QueueItemSteer.d.ts +4 -2
  135. package/dist/primitives/queueItem/QueueItemSteer.d.ts.map +1 -1
  136. package/dist/primitives/queueItem/QueueItemText.d.ts +5 -3
  137. package/dist/primitives/queueItem/QueueItemText.d.ts.map +1 -1
  138. package/dist/primitives/queueItem/QueueItemText.js +1 -1
  139. package/dist/primitives/queueItem/QueueItemText.js.map +1 -1
  140. package/dist/primitives/selectionToolbar/SelectionToolbarQuote.d.ts +5 -3
  141. package/dist/primitives/selectionToolbar/SelectionToolbarQuote.d.ts.map +1 -1
  142. package/dist/primitives/selectionToolbar/SelectionToolbarQuote.js +1 -1
  143. package/dist/primitives/selectionToolbar/SelectionToolbarQuote.js.map +1 -1
  144. package/dist/primitives/selectionToolbar/SelectionToolbarRoot.d.ts +5 -3
  145. package/dist/primitives/selectionToolbar/SelectionToolbarRoot.d.ts.map +1 -1
  146. package/dist/primitives/selectionToolbar/SelectionToolbarRoot.js +1 -1
  147. package/dist/primitives/selectionToolbar/SelectionToolbarRoot.js.map +1 -1
  148. package/dist/primitives/suggestion/SuggestionDescription.d.ts +5 -3
  149. package/dist/primitives/suggestion/SuggestionDescription.d.ts.map +1 -1
  150. package/dist/primitives/suggestion/SuggestionDescription.js +1 -1
  151. package/dist/primitives/suggestion/SuggestionDescription.js.map +1 -1
  152. package/dist/primitives/suggestion/SuggestionTitle.d.ts +5 -3
  153. package/dist/primitives/suggestion/SuggestionTitle.d.ts.map +1 -1
  154. package/dist/primitives/suggestion/SuggestionTitle.js +1 -1
  155. package/dist/primitives/suggestion/SuggestionTitle.js.map +1 -1
  156. package/dist/primitives/suggestion/SuggestionTrigger.d.ts +3 -1
  157. package/dist/primitives/suggestion/SuggestionTrigger.d.ts.map +1 -1
  158. package/dist/primitives/thread/ThreadRoot.d.ts +5 -3
  159. package/dist/primitives/thread/ThreadRoot.d.ts.map +1 -1
  160. package/dist/primitives/thread/ThreadRoot.js +1 -1
  161. package/dist/primitives/thread/ThreadRoot.js.map +1 -1
  162. package/dist/primitives/thread/ThreadScrollToBottom.d.ts +4 -2
  163. package/dist/primitives/thread/ThreadScrollToBottom.d.ts.map +1 -1
  164. package/dist/primitives/thread/ThreadSuggestion.d.ts +3 -1
  165. package/dist/primitives/thread/ThreadSuggestion.d.ts.map +1 -1
  166. package/dist/primitives/thread/ThreadViewport.d.ts +4 -2
  167. package/dist/primitives/thread/ThreadViewport.d.ts.map +1 -1
  168. package/dist/primitives/thread/ThreadViewport.js +1 -1
  169. package/dist/primitives/thread/ThreadViewport.js.map +1 -1
  170. package/dist/primitives/thread/ThreadViewportFooter.d.ts +5 -3
  171. package/dist/primitives/thread/ThreadViewportFooter.d.ts.map +1 -1
  172. package/dist/primitives/thread/ThreadViewportFooter.js +1 -1
  173. package/dist/primitives/thread/ThreadViewportFooter.js.map +1 -1
  174. package/dist/primitives/threadList/ThreadListNew.d.ts +4 -2
  175. package/dist/primitives/threadList/ThreadListNew.d.ts.map +1 -1
  176. package/dist/primitives/threadList/ThreadListNew.js +1 -1
  177. package/dist/primitives/threadList/ThreadListNew.js.map +1 -1
  178. package/dist/primitives/threadList/ThreadListRoot.d.ts +5 -3
  179. package/dist/primitives/threadList/ThreadListRoot.d.ts.map +1 -1
  180. package/dist/primitives/threadList/ThreadListRoot.js +1 -1
  181. package/dist/primitives/threadList/ThreadListRoot.js.map +1 -1
  182. package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts +4 -2
  183. package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts.map +1 -1
  184. package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts +4 -2
  185. package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts.map +1 -1
  186. package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts +5 -3
  187. package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts.map +1 -1
  188. package/dist/primitives/threadListItem/ThreadListItemRoot.js +1 -1
  189. package/dist/primitives/threadListItem/ThreadListItemRoot.js.map +1 -1
  190. package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts +4 -2
  191. package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts.map +1 -1
  192. package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts +4 -2
  193. package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts.map +1 -1
  194. package/dist/utils/Primitive.d.ts +106 -0
  195. package/dist/utils/Primitive.d.ts.map +1 -0
  196. package/dist/utils/Primitive.js +54 -0
  197. package/dist/utils/Primitive.js.map +1 -0
  198. package/dist/utils/createActionButton.d.ts +5 -3
  199. package/dist/utils/createActionButton.d.ts.map +1 -1
  200. package/dist/utils/createActionButton.js +1 -1
  201. package/dist/utils/createActionButton.js.map +1 -1
  202. package/package.json +7 -8
  203. package/src/client/ExternalThread.ts +8 -2
  204. package/src/index.ts +21 -6
  205. package/src/legacy-runtime/runtime-cores/assistant-transport/types.ts +7 -0
  206. package/src/legacy-runtime/runtime-cores/assistant-transport/useAssistantTransportRuntime.ts +4 -0
  207. package/src/primitives/actionBar/ActionBarCopy.tsx +1 -1
  208. package/src/primitives/actionBar/ActionBarExportMarkdown.tsx +1 -1
  209. package/src/primitives/actionBar/ActionBarFeedbackNegative.tsx +1 -1
  210. package/src/primitives/actionBar/ActionBarFeedbackPositive.tsx +1 -1
  211. package/src/primitives/actionBar/ActionBarRoot.tsx +1 -1
  212. package/src/primitives/actionBar/ActionBarStopSpeaking.tsx +1 -1
  213. package/src/primitives/attachment/AttachmentRoot.tsx +1 -1
  214. package/src/primitives/attachment/AttachmentThumb.tsx +1 -1
  215. package/src/primitives/branchPicker/BranchPickerRoot.tsx +1 -1
  216. package/src/primitives/chainOfThought/ChainOfThoughtRoot.tsx +1 -1
  217. package/src/primitives/composer/ComposerAttachmentDropzone.tsx +41 -18
  218. package/src/primitives/composer/ComposerDictationTranscript.tsx +1 -1
  219. package/src/primitives/composer/ComposerInput.tsx +43 -17
  220. package/src/primitives/composer/ComposerQuote.tsx +1 -1
  221. package/src/primitives/composer/ComposerRoot.tsx +1 -1
  222. package/src/primitives/composer/mention/ComposerMentionBack.tsx +1 -1
  223. package/src/primitives/composer/mention/ComposerMentionCategories.tsx +1 -1
  224. package/src/primitives/composer/mention/ComposerMentionItems.tsx +1 -1
  225. package/src/primitives/composer/mention/ComposerMentionPopover.tsx +1 -1
  226. package/src/primitives/error/ErrorMessage.tsx +1 -1
  227. package/src/primitives/error/ErrorRoot.tsx +1 -1
  228. package/src/primitives/message/MessageRoot.tsx +1 -1
  229. package/src/primitives/messagePart/MessagePartImage.tsx +1 -1
  230. package/src/primitives/messagePart/MessagePartText.tsx +1 -1
  231. package/src/primitives/queueItem/QueueItemText.tsx +1 -1
  232. package/src/primitives/selectionToolbar/SelectionToolbarQuote.tsx +1 -1
  233. package/src/primitives/selectionToolbar/SelectionToolbarRoot.tsx +1 -1
  234. package/src/primitives/suggestion/SuggestionDescription.tsx +1 -1
  235. package/src/primitives/suggestion/SuggestionTitle.tsx +1 -1
  236. package/src/primitives/thread/ThreadRoot.tsx +1 -1
  237. package/src/primitives/thread/ThreadViewport.tsx +1 -1
  238. package/src/primitives/thread/ThreadViewportFooter.tsx +1 -1
  239. package/src/primitives/threadList/ThreadListNew.tsx +1 -1
  240. package/src/primitives/threadList/ThreadListRoot.tsx +1 -1
  241. package/src/primitives/threadListItem/ThreadListItemRoot.tsx +1 -1
  242. package/src/utils/Primitive.test.tsx +99 -0
  243. package/src/utils/Primitive.tsx +100 -0
  244. package/src/utils/createActionButton.tsx +1 -1
@@ -4,8 +4,10 @@ export declare namespace ActionBarPrimitiveSpeak {
4
4
  type Element = ActionButtonElement;
5
5
  type Props = ActionButtonProps<typeof useActionBarSpeak>;
6
6
  }
7
- export declare const ActionBarPrimitiveSpeak: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
7
+ export declare const ActionBarPrimitiveSpeak: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
8
8
  asChild?: boolean;
9
- }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
9
+ }, "ref"> & {
10
+ render?: import("react").ReactElement | undefined;
11
+ } & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
10
12
  export {};
11
13
  //# sourceMappingURL=ActionBarSpeak.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarSpeak.d.ts","sourceRoot":"","sources":["../../../src/primitives/actionBar/ActionBarSpeak.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,0CAAuC;AAGxC,QAAA,MAAM,iBAAiB,oCAItB,CAAC;AAEF,yBAAiB,uBAAuB,CAAC;IACvC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,iBAAiB,CAAC,CAAC;CACjE;AAED,eAAO,MAAM,uBAAuB;;6DAGnC,CAAC"}
1
+ {"version":3,"file":"ActionBarSpeak.d.ts","sourceRoot":"","sources":["../../../src/primitives/actionBar/ActionBarSpeak.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,0CAAuC;AAGxC,QAAA,MAAM,iBAAiB,oCAItB,CAAC;AAEF,yBAAiB,uBAAuB,CAAC;IACvC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,iBAAiB,CAAC,CAAC;CACjE;AAED,eAAO,MAAM,uBAAuB;;;;gHAGnC,CAAC"}
@@ -4,8 +4,10 @@ export declare namespace ActionBarPrimitiveStopSpeaking {
4
4
  type Element = HTMLButtonElement;
5
5
  type Props = ActionButtonProps<typeof useActionBarStopSpeaking>;
6
6
  }
7
- export declare const ActionBarPrimitiveStopSpeaking: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
7
+ export declare const ActionBarPrimitiveStopSpeaking: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
8
8
  asChild?: boolean;
9
- }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
9
+ }, "ref"> & {
10
+ render?: import("react").ReactElement | undefined;
11
+ } & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
10
12
  export {};
11
13
  //# sourceMappingURL=ActionBarStopSpeaking.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarStopSpeaking.d.ts","sourceRoot":"","sources":["../../../src/primitives/actionBar/ActionBarStopSpeaking.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,0CAAuC;AAMnE,QAAA,MAAM,wBAAwB,2BAI7B,CAAC;AAEF,yBAAiB,8BAA8B,CAAC;IAC9C,KAAY,OAAO,GAAG,iBAAiB,CAAC;IACxC,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,wBAAwB,CAAC,CAAC;CACxE;AAED,eAAO,MAAM,8BAA8B;;6DAyBzC,CAAC"}
1
+ {"version":3,"file":"ActionBarStopSpeaking.d.ts","sourceRoot":"","sources":["../../../src/primitives/actionBar/ActionBarStopSpeaking.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,0CAAuC;AAMnE,QAAA,MAAM,wBAAwB,2BAI7B,CAAC;AAEF,yBAAiB,8BAA8B,CAAC;IAC9C,KAAY,OAAO,GAAG,iBAAiB,CAAC;IACxC,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,wBAAwB,CAAC,CAAC;CACxE;AAED,eAAO,MAAM,8BAA8B;;;;gHAyBzC,CAAC"}
@@ -2,7 +2,7 @@
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { forwardRef } from "react";
4
4
  import { useEscapeKeydown } from "@radix-ui/react-use-escape-keydown";
5
- import { Primitive } from "@radix-ui/react-primitive";
5
+ import { Primitive } from "../../utils/Primitive.js";
6
6
  import { composeEventHandlers } from "@radix-ui/primitive";
7
7
  import { useActionBarStopSpeaking as useActionBarStopSpeakingBehavior } from "@assistant-ui/core/react";
8
8
  const useActionBarStopSpeaking = () => {
@@ -1 +1 @@
1
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CAAC"}
@@ -4,8 +4,10 @@ export declare namespace AttachmentPrimitiveRemove {
4
4
  type Element = ActionButtonElement;
5
5
  type Props = ActionButtonProps<typeof useAttachmentRemove>;
6
6
  }
7
- export declare const AttachmentPrimitiveRemove: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
7
+ export declare const AttachmentPrimitiveRemove: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
8
8
  asChild?: boolean;
9
- }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
9
+ }, "ref"> & {
10
+ render?: import("react").ReactElement | undefined;
11
+ } & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
10
12
  export {};
11
13
  //# sourceMappingURL=AttachmentRemove.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentRemove.d.ts","sourceRoot":"","sources":["../../../src/primitives/attachment/AttachmentRemove.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,0CAAuC;AAIxC,QAAA,MAAM,mBAAmB,kBAQxB,CAAC;AAEF,yBAAiB,yBAAyB,CAAC;IACzC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,mBAAmB,CAAC,CAAC;CACnE;AAED,eAAO,MAAM,yBAAyB;;6DAGrC,CAAC"}
1
+ {"version":3,"file":"AttachmentRemove.d.ts","sourceRoot":"","sources":["../../../src/primitives/attachment/AttachmentRemove.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,0CAAuC;AAIxC,QAAA,MAAM,mBAAmB,kBAQxB,CAAC;AAEF,yBAAiB,yBAAyB,CAAC;IACzC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,mBAAmB,CAAC,CAAC;CACnE;AAED,eAAO,MAAM,yBAAyB;;;;gHAGrC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Primitive } from "@radix-ui/react-primitive";
1
+ import { Primitive } from "../../utils/Primitive.js";
2
2
  import { ComponentPropsWithoutRef, ComponentRef } from "react";
3
3
  type PrimitiveDivProps = ComponentPropsWithoutRef<typeof Primitive.div>;
4
4
  export declare namespace AttachmentPrimitiveRoot {
@@ -23,8 +23,10 @@ export declare namespace AttachmentPrimitiveRoot {
23
23
  * </AttachmentPrimitive.Root>
24
24
  * ```
25
25
  */
26
- export declare const AttachmentPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
26
+ export declare const AttachmentPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
27
27
  asChild?: boolean;
28
- }, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
28
+ }, "ref"> & {
29
+ render?: import("react").ReactElement | undefined;
30
+ } & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
29
31
  export {};
30
32
  //# sourceMappingURL=AttachmentRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/attachment/AttachmentRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAc,MAAM,OAAO,CAAC;AAE3E,KAAK,iBAAiB,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;AAExE,yBAAiB,uBAAuB,CAAC;IACvC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD;;;OAGG;IACH,KAAY,KAAK,GAAG,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB;;0DAKlC,CAAC"}
1
+ {"version":3,"file":"AttachmentRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/attachment/AttachmentRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAClD,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAc,MAAM,OAAO,CAAC;AAE3E,KAAK,iBAAiB,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;AAExE,yBAAiB,uBAAuB,CAAC;IACvC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD;;;OAGG;IACH,KAAY,KAAK,GAAG,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB;;;;0GAKlC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { Primitive } from "@radix-ui/react-primitive";
3
+ import { Primitive } from "../../utils/Primitive.js";
4
4
  import { forwardRef } from "react";
5
5
  /**
6
6
  * The root container component for an attachment.
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentRoot.js","sourceRoot":"","sources":["../../../src/primitives/attachment/AttachmentRoot.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAA0C,UAAU,EAAE,MAAM,OAAO,CAAC;AAa3E;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,UAAU,CAG/C,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACf,OAAO,KAAC,SAAS,CAAC,GAAG,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,uBAAuB,CAAC,WAAW,GAAG,0BAA0B,CAAC"}
1
+ {"version":3,"file":"AttachmentRoot.js","sourceRoot":"","sources":["../../../src/primitives/attachment/AttachmentRoot.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAClD,OAAO,EAA0C,UAAU,EAAE,MAAM,OAAO,CAAC;AAa3E;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,UAAU,CAG/C,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACf,OAAO,KAAC,SAAS,CAAC,GAAG,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,uBAAuB,CAAC,WAAW,GAAG,0BAA0B,CAAC"}
@@ -1,12 +1,14 @@
1
1
  import { ComponentPropsWithoutRef, type ComponentRef } from "react";
2
- import { Primitive } from "@radix-ui/react-primitive";
2
+ import { Primitive } from "../../utils/Primitive.js";
3
3
  type PrimitiveDivProps = ComponentPropsWithoutRef<typeof Primitive.div>;
4
4
  export declare namespace AttachmentPrimitiveThumb {
5
5
  type Element = ComponentRef<typeof Primitive.div>;
6
6
  type Props = PrimitiveDivProps;
7
7
  }
8
- export declare const AttachmentPrimitiveThumb: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
8
+ export declare const AttachmentPrimitiveThumb: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
9
9
  asChild?: boolean;
10
- }, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
10
+ }, "ref"> & {
11
+ render?: import("react").ReactElement | undefined;
12
+ } & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
11
13
  export {};
12
14
  //# sourceMappingURL=AttachmentThumb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentThumb.d.ts","sourceRoot":"","sources":["../../../src/primitives/attachment/AttachmentThumb.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAc,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAEhF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,KAAK,iBAAiB,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;AAExE,yBAAiB,wBAAwB,CAAC;IACxC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,iBAAiB,CAAC;CACvC;AAED,eAAO,MAAM,wBAAwB;;0DAanC,CAAC"}
1
+ {"version":3,"file":"AttachmentThumb.d.ts","sourceRoot":"","sources":["../../../src/primitives/attachment/AttachmentThumb.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAc,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAEhF,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAElD,KAAK,iBAAiB,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;AAExE,yBAAiB,wBAAwB,CAAC;IACxC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,iBAAiB,CAAC;CACvC;AAED,eAAO,MAAM,wBAAwB;;;;0GAanC,CAAC"}
@@ -2,7 +2,7 @@
2
2
  import { jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { forwardRef } from "react";
4
4
  import { useAuiState } from "@assistant-ui/store";
5
- import { Primitive } from "@radix-ui/react-primitive";
5
+ import { Primitive } from "../../utils/Primitive.js";
6
6
  export const AttachmentPrimitiveThumb = forwardRef((props, ref) => {
7
7
  const ext = useAuiState((s) => {
8
8
  const parts = s.attachment.name.split(".");
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentThumb.js","sourceRoot":"","sources":["../../../src/primitives/attachment/AttachmentThumb.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAA4B,UAAU,EAAqB,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAStD,MAAM,CAAC,MAAM,wBAAwB,GAAG,UAAU,CAGhD,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACf,MAAM,GAAG,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE;QAC5B,MAAM,KAAK,GAAG,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC3C,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9C,CAAC,CAAC,CAAC;IACH,OAAO,CACL,MAAC,SAAS,CAAC,GAAG,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,kBAC9B,GAAG,IACS,CACjB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,wBAAwB,CAAC,WAAW,GAAG,oCAAoC,CAAC"}
1
+ {"version":3,"file":"AttachmentThumb.js","sourceRoot":"","sources":["../../../src/primitives/attachment/AttachmentThumb.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAA4B,UAAU,EAAqB,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,iCAA8B;AASlD,MAAM,CAAC,MAAM,wBAAwB,GAAG,UAAU,CAGhD,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACf,MAAM,GAAG,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE;QAC5B,MAAM,KAAK,GAAG,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC3C,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9C,CAAC,CAAC,CAAC;IACH,OAAO,CACL,MAAC,SAAS,CAAC,GAAG,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,kBAC9B,GAAG,IACS,CACjB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,wBAAwB,CAAC,WAAW,GAAG,oCAAoC,CAAC"}
@@ -21,8 +21,10 @@ export declare namespace BranchPickerPrimitiveNext {
21
21
  * </BranchPickerPrimitive.Next>
22
22
  * ```
23
23
  */
24
- export declare const BranchPickerPrimitiveNext: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
24
+ export declare const BranchPickerPrimitiveNext: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
25
25
  asChild?: boolean;
26
- }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
26
+ }, "ref"> & {
27
+ render?: import("react").ReactElement | undefined;
28
+ } & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
27
29
  export {};
28
30
  //# sourceMappingURL=BranchPickerNext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BranchPickerNext.d.ts","sourceRoot":"","sources":["../../../src/primitives/branchPicker/BranchPickerNext.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,0CAAuC;AAGxC,QAAA,MAAM,mBAAmB,2BAIxB,CAAC;AAEF,yBAAiB,yBAAyB,CAAC;IACzC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C;;;OAGG;IACH,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,mBAAmB,CAAC,CAAC;CACnE;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,yBAAyB;;6DAGrC,CAAC"}
1
+ {"version":3,"file":"BranchPickerNext.d.ts","sourceRoot":"","sources":["../../../src/primitives/branchPicker/BranchPickerNext.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,0CAAuC;AAGxC,QAAA,MAAM,mBAAmB,2BAIxB,CAAC;AAEF,yBAAiB,yBAAyB,CAAC;IACzC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C;;;OAGG;IACH,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,mBAAmB,CAAC,CAAC;CACnE;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,yBAAyB;;;;gHAGrC,CAAC"}
@@ -21,8 +21,10 @@ export declare namespace BranchPickerPrimitivePrevious {
21
21
  * </BranchPickerPrimitive.Previous>
22
22
  * ```
23
23
  */
24
- export declare const BranchPickerPrimitivePrevious: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
24
+ export declare const BranchPickerPrimitivePrevious: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
25
25
  asChild?: boolean;
26
- }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
26
+ }, "ref"> & {
27
+ render?: import("react").ReactElement | undefined;
28
+ } & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
27
29
  export {};
28
30
  //# sourceMappingURL=BranchPickerPrevious.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BranchPickerPrevious.d.ts","sourceRoot":"","sources":["../../../src/primitives/branchPicker/BranchPickerPrevious.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,0CAAuC;AAGxC,QAAA,MAAM,uBAAuB,2BAI5B,CAAC;AAEF,yBAAiB,6BAA6B,CAAC;IAC7C,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C;;;OAGG;IACH,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,uBAAuB,CAAC,CAAC;CACvE;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,6BAA6B;;6DAGzC,CAAC"}
1
+ {"version":3,"file":"BranchPickerPrevious.d.ts","sourceRoot":"","sources":["../../../src/primitives/branchPicker/BranchPickerPrevious.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,0CAAuC;AAGxC,QAAA,MAAM,uBAAuB,2BAI5B,CAAC;AAEF,yBAAiB,6BAA6B,CAAC;IAC7C,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C;;;OAGG;IACH,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,uBAAuB,CAAC,CAAC;CACvE;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,6BAA6B;;;;gHAGzC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Primitive } from "@radix-ui/react-primitive";
1
+ import { Primitive } from "../../utils/Primitive.js";
2
2
  import { type ComponentRef, ComponentPropsWithoutRef } from "react";
3
3
  export declare namespace BranchPickerPrimitiveRoot {
4
4
  type Element = ComponentRef<typeof Primitive.div>;
@@ -28,9 +28,11 @@ export declare namespace BranchPickerPrimitiveRoot {
28
28
  * </BranchPickerPrimitive.Root>
29
29
  * ```
30
30
  */
31
- export declare const BranchPickerPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
31
+ export declare const BranchPickerPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
32
32
  asChild?: boolean;
33
33
  }, "ref"> & {
34
+ render?: import("react").ReactElement | undefined;
35
+ } & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
34
36
  /**
35
37
  * Whether to hide the branch picker when there's only one branch available.
36
38
  * When true, the component will only render when multiple branches exist.
@@ -1 +1 @@
1
- {"version":3,"file":"BranchPickerRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/branchPicker/BranchPickerRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,KAAK,YAAY,EAAc,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAGhF,yBAAiB,yBAAyB,CAAC;IACzC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,GAAG;QACnE;;;;WAIG;QACH,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAC5C,CAAC;CACH;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,yBAAyB;;;IA1BlC;;;;OAIG;2BACoB,OAAO,GAAG,SAAS;kDA8B5C,CAAC"}
1
+ {"version":3,"file":"BranchPickerRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/branchPicker/BranchPickerRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAClD,OAAO,EAAE,KAAK,YAAY,EAAc,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAGhF,yBAAiB,yBAAyB,CAAC;IACzC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,GAAG;QACnE;;;;WAIG;QACH,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAC5C,CAAC;CACH;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,yBAAyB;;;;;IA1BlC;;;;OAIG;2BACoB,OAAO,GAAG,SAAS;kDA8B5C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { Primitive } from "@radix-ui/react-primitive";
3
+ import { Primitive } from "../../utils/Primitive.js";
4
4
  import { forwardRef } from "react";
5
5
  import { MessagePrimitiveIf as If } from "../message/MessageIf.js";
6
6
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"BranchPickerRoot.js","sourceRoot":"","sources":["../../../src/primitives/branchPicker/BranchPickerRoot.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAqB,UAAU,EAA4B,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,kBAAkB,IAAI,EAAE,EAAE,gCAA6B;AAchE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,UAAU,CAGjD,CAAC,EAAE,oBAAoB,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE;IAC3C,OAAO,CACL,KAAC,EAAE,IAAC,WAAW,EAAE,oBAAoB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,YACtD,KAAC,SAAS,CAAC,GAAG,OAAK,IAAI,EAAE,GAAG,EAAE,GAAG,GAAI,GAClC,CACN,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,yBAAyB,CAAC,WAAW,GAAG,4BAA4B,CAAC"}
1
+ {"version":3,"file":"BranchPickerRoot.js","sourceRoot":"","sources":["../../../src/primitives/branchPicker/BranchPickerRoot.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAClD,OAAO,EAAqB,UAAU,EAA4B,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,kBAAkB,IAAI,EAAE,EAAE,gCAA6B;AAchE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,UAAU,CAGjD,CAAC,EAAE,oBAAoB,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE;IAC3C,OAAO,CACL,KAAC,EAAE,IAAC,WAAW,EAAE,oBAAoB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,YACtD,KAAC,SAAS,CAAC,GAAG,OAAK,IAAI,EAAE,GAAG,EAAE,GAAG,GAAI,GAClC,CACN,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,yBAAyB,CAAC,WAAW,GAAG,4BAA4B,CAAC"}
@@ -21,8 +21,10 @@ export declare namespace ChainOfThoughtPrimitiveAccordionTrigger {
21
21
  * </ChainOfThoughtPrimitive.AccordionTrigger>
22
22
  * ```
23
23
  */
24
- export declare const ChainOfThoughtPrimitiveAccordionTrigger: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
24
+ export declare const ChainOfThoughtPrimitiveAccordionTrigger: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
25
25
  asChild?: boolean;
26
- }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
26
+ }, "ref"> & {
27
+ render?: import("react").ReactElement | undefined;
28
+ } & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
27
29
  export {};
28
30
  //# sourceMappingURL=ChainOfThoughtAccordionTrigger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChainOfThoughtAccordionTrigger.d.ts","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,0CAAuC;AAIxC,QAAA,MAAM,iCAAiC,kBAStC,CAAC;AAEF,yBAAiB,uCAAuC,CAAC;IACvD,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C;;;OAGG;IACH,KAAY,KAAK,GAAG,iBAAiB,CACnC,OAAO,iCAAiC,CACzC,CAAC;CACH;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uCAAuC;;6DAGnD,CAAC"}
1
+ {"version":3,"file":"ChainOfThoughtAccordionTrigger.d.ts","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,0CAAuC;AAIxC,QAAA,MAAM,iCAAiC,kBAStC,CAAC;AAEF,yBAAiB,uCAAuC,CAAC;IACvD,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C;;;OAGG;IACH,KAAY,KAAK,GAAG,iBAAiB,CACnC,OAAO,iCAAiC,CACzC,CAAC;CACH;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uCAAuC;;;;gHAGnD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Primitive } from "@radix-ui/react-primitive";
1
+ import { Primitive } from "../../utils/Primitive.js";
2
2
  import { type ComponentRef, ComponentPropsWithoutRef } from "react";
3
3
  type PrimitiveDivProps = ComponentPropsWithoutRef<typeof Primitive.div>;
4
4
  export declare namespace ChainOfThoughtPrimitiveRoot {
@@ -21,8 +21,10 @@ export declare namespace ChainOfThoughtPrimitiveRoot {
21
21
  * </ChainOfThoughtPrimitive.Root>
22
22
  * ```
23
23
  */
24
- export declare const ChainOfThoughtPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
24
+ export declare const ChainOfThoughtPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
25
25
  asChild?: boolean;
26
- }, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
26
+ }, "ref"> & {
27
+ render?: import("react").ReactElement | undefined;
28
+ } & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
27
29
  export {};
28
30
  //# sourceMappingURL=ChainOfThoughtRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChainOfThoughtRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,KAAK,YAAY,EAAc,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEhF,KAAK,iBAAiB,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;AAExE,yBAAiB,2BAA2B,CAAC;IAC3C,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,2BAA2B;;0DAKtC,CAAC"}
1
+ {"version":3,"file":"ChainOfThoughtRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAClD,OAAO,EAAE,KAAK,YAAY,EAAc,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEhF,KAAK,iBAAiB,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;AAExE,yBAAiB,2BAA2B,CAAC;IAC3C,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,2BAA2B;;;;0GAKtC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { Primitive } from "@radix-ui/react-primitive";
3
+ import { Primitive } from "../../utils/Primitive.js";
4
4
  import { forwardRef } from "react";
5
5
  /**
6
6
  * The root container for chain of thought components.
@@ -1 +1 @@
1
- {"version":3,"file":"ChainOfThoughtRoot.js","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAqB,UAAU,EAA4B,MAAM,OAAO,CAAC;AAShF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,UAAU,CAGnD,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACf,OAAO,KAAC,SAAS,CAAC,GAAG,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,2BAA2B,CAAC,WAAW,GAAG,8BAA8B,CAAC"}
1
+ {"version":3,"file":"ChainOfThoughtRoot.js","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAClD,OAAO,EAAqB,UAAU,EAA4B,MAAM,OAAO,CAAC;AAShF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,UAAU,CAGnD,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACf,OAAO,KAAC,SAAS,CAAC,GAAG,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,2BAA2B,CAAC,WAAW,GAAG,8BAA8B,CAAC"}
@@ -7,9 +7,11 @@ export declare namespace ComposerPrimitiveAddAttachment {
7
7
  type Element = ActionButtonElement;
8
8
  type Props = ActionButtonProps<typeof useComposerAddAttachment>;
9
9
  }
10
- export declare const ComposerPrimitiveAddAttachment: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
10
+ export declare const ComposerPrimitiveAddAttachment: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
11
11
  asChild?: boolean;
12
12
  }, "ref"> & {
13
+ render?: import("react").ReactElement | undefined;
14
+ } & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
13
15
  /** allow selecting multiple files */
14
16
  multiple?: boolean | undefined;
15
17
  } & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerAddAttachment.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerAddAttachment.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,0CAAuC;AAKxC,QAAA,MAAM,wBAAwB,GAAI,gBAE/B;IACD,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC3B,wBAsCL,CAAC;AAEF,yBAAiB,8BAA8B,CAAC;IAC9C,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,wBAAwB,CAAC,CAAC;CACxE;AAED,eAAO,MAAM,8BAA8B;;;IA/CzC,qCAAqC;eAC1B,OAAO,GAAG,SAAS;qDAkD/B,CAAC"}
1
+ {"version":3,"file":"ComposerAddAttachment.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerAddAttachment.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,0CAAuC;AAKxC,QAAA,MAAM,wBAAwB,GAAI,gBAE/B;IACD,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC3B,wBAsCL,CAAC;AAEF,yBAAiB,8BAA8B,CAAC;IAC9C,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,wBAAwB,CAAC,CAAC;CACxE;AAED,eAAO,MAAM,8BAA8B;;;;;IA/CzC,qCAAqC;eAC1B,OAAO,GAAG,SAAS;qDAkD/B,CAAC"}
@@ -1,13 +1,16 @@
1
+ import { type ReactElement } from "react";
1
2
  import React from "react";
2
3
  export declare namespace ComposerPrimitiveAttachmentDropzone {
3
4
  type Element = HTMLDivElement;
4
5
  type Props = React.HTMLAttributes<HTMLDivElement> & {
5
6
  asChild?: boolean | undefined;
7
+ render?: ReactElement | undefined;
6
8
  disabled?: boolean | undefined;
7
9
  };
8
10
  }
9
11
  export declare const ComposerPrimitiveAttachmentDropzone: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
10
12
  asChild?: boolean | undefined;
13
+ render?: ReactElement | undefined;
11
14
  disabled?: boolean | undefined;
12
15
  } & React.RefAttributes<HTMLDivElement>>;
13
16
  //# sourceMappingURL=ComposerAttachmentDropzone.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerAttachmentDropzone.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerAttachmentDropzone.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,yBAAiB,mCAAmC,CAAC;IACnD,KAAY,OAAO,GAAG,cAAc,CAAC;IACrC,KAAY,KAAK,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;QACzD,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC9B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAChC,CAAC;CACH;AAED,eAAO,MAAM,mCAAmC;cALlC,OAAO,GAAG,SAAS;eAClB,OAAO,GAAG,SAAS;wCA6EhC,CAAC"}
1
+ {"version":3,"file":"ComposerAttachmentDropzone.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerAttachmentDropzone.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,YAAY,EAGlB,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,yBAAiB,mCAAmC,CAAC;IACnD,KAAY,OAAO,GAAG,cAAc,CAAC;IACrC,KAAY,KAAK,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;QACzD,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC9B,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;QAClC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAChC,CAAC;CACH;AAED,eAAO,MAAM,mCAAmC;cANlC,OAAO,GAAG,SAAS;aACpB,YAAY,GAAG,SAAS;eACtB,OAAO,GAAG,SAAS;wCA2FhC,CAAC"}
@@ -1,9 +1,10 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { forwardRef, useCallback, useState } from "react";
3
+ import { forwardRef, useCallback, useState, cloneElement, isValidElement, } from "react";
4
+ import { composeEventHandlers } from "@radix-ui/primitive";
4
5
  import { Slot } from "radix-ui";
5
6
  import { useAui } from "@assistant-ui/store";
6
- export const ComposerPrimitiveAttachmentDropzone = forwardRef(({ disabled, asChild = false, children, ...rest }, ref) => {
7
+ export const ComposerPrimitiveAttachmentDropzone = forwardRef(({ disabled, asChild = false, render, children, ...rest }, ref) => {
7
8
  const [isDragging, setIsDragging] = useState(false);
8
9
  const aui = useAui();
9
10
  const handleDragEnterCapture = useCallback((e) => {
@@ -43,14 +44,23 @@ export const ComposerPrimitiveAttachmentDropzone = forwardRef(({ disabled, asChi
43
44
  }
44
45
  }
45
46
  }, [disabled, aui]);
46
- const dragProps = {
47
- onDragEnterCapture: handleDragEnterCapture,
48
- onDragOverCapture: handleDragOverCapture,
49
- onDragLeaveCapture: handleDragLeaveCapture,
50
- onDropCapture: handleDrop,
47
+ const mergedProps = {
48
+ ...(isDragging ? { "data-dragging": "true" } : null),
49
+ ...rest,
50
+ onDragEnterCapture: composeEventHandlers(rest.onDragEnterCapture, handleDragEnterCapture),
51
+ onDragOverCapture: composeEventHandlers(rest.onDragOverCapture, handleDragOverCapture),
52
+ onDragLeaveCapture: composeEventHandlers(rest.onDragLeaveCapture, handleDragLeaveCapture),
53
+ onDropCapture: composeEventHandlers(rest.onDropCapture, handleDrop),
54
+ ref,
51
55
  };
56
+ if (render && isValidElement(render)) {
57
+ const renderChildren = children !== undefined
58
+ ? children
59
+ : render.props.children;
60
+ return (_jsx(Slot.Root, { ...mergedProps, children: cloneElement(render, undefined, renderChildren) }));
61
+ }
52
62
  const Comp = asChild ? Slot.Root : "div";
53
- return (_jsx(Comp, { ...(isDragging ? { "data-dragging": "true" } : null), ref: ref, ...dragProps, ...rest, children: children }));
63
+ return _jsx(Comp, { ...mergedProps, children: children });
54
64
  });
55
65
  ComposerPrimitiveAttachmentDropzone.displayName =
56
66
  "ComposerPrimitive.AttachmentDropzone";
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerAttachmentDropzone.js","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerAttachmentDropzone.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAU7C,MAAM,CAAC,M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AC;QACnB,aAAa,CAAC,KAAK,CAAC,CAAC;QACrB,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;YACxC,IAAI,CAAC;gBACH,MAAM,GAAG,CAAC,QAAQ,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;YAC3C,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;YACpD,CAAC;QACH,CAAC;IACH,CAAC,EACD,CAAC,QAAQ,EAAE,GAAG,CAAC,CAChB,CAAC;IAEF,MAAM,SAAS,GAAG;QAChB,kBAAkB,EAAE,sBAAsB;QAC1C,iBAAiB,EAAE,qBAAqB;QACxC,kBAAkB,EAAE,sBAAsB;QAC1C,aAAa,EAAE,UAAU;KAC1B,CAAC;IAEF,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAEzC,OAAO,CACL,KAAC,IAAI,OACC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EACrD,GAAG,EAAE,GAAG,KACJ,SAAS,KACT,IAAI,YAEP,QAAQ,GACJ,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,mCAAmC,CAAC,WAAW;IAC7C,sCAAsC,CAAC"}
1
+ {"version":3,"file":"ComposerAttachmentDropzone.js","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerAttachmentDropzone.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EACL,UAAU,EACV,WAAW,EACX,QAAQ,EAER,YAAY,EACZ,cAAc,GACf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AA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b,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IACzC,OAAO,KAAC,IAAI,OAAK,WAAW,YAAG,QAAQ,GAAQ,CAAC;AAClD,CAAC,CAAC,CAAC;AAEH,mCAAmC,CAAC,WAAW;IAC7C,sCAAsC,CAAC"}
@@ -21,8 +21,10 @@ export declare namespace ComposerPrimitiveCancel {
21
21
  * </ComposerPrimitive.Cancel>
22
22
  * ```
23
23
  */
24
- export declare const ComposerPrimitiveCancel: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
24
+ export declare const ComposerPrimitiveCancel: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
25
25
  asChild?: boolean;
26
- }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
26
+ }, "ref"> & {
27
+ render?: import("react").ReactElement | undefined;
28
+ } & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
27
29
  export {};
28
30
  //# sourceMappingURL=ComposerCancel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerCancel.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerCancel.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,0CAAuC;AAGxC,QAAA,MAAM,iBAAiB,2BAItB,CAAC;AAEF,yBAAiB,uBAAuB,CAAC;IACvC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C;;;OAGG;IACH,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,iBAAiB,CAAC,CAAC;CACjE;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB;;6DAGnC,CAAC"}
1
+ {"version":3,"file":"ComposerCancel.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerCancel.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAElB,0CAAuC;AAGxC,QAAA,MAAM,iBAAiB,2BAItB,CAAC;AAEF,yBAAiB,uBAAuB,CAAC;IACvC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C;;;OAGG;IACH,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,iBAAiB,CAAC,CAAC;CACjE;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB;;;;gHAGnC,CAAC"}
@@ -16,8 +16,10 @@ export declare namespace ComposerPrimitiveDictate {
16
16
  * </ComposerPrimitive.Dictate>
17
17
  * ```
18
18
  */
19
- export declare const ComposerPrimitiveDictate: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
19
+ export declare const ComposerPrimitiveDictate: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
20
20
  asChild?: boolean;
21
- }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
21
+ }, "ref"> & {
22
+ render?: import("react").ReactElement | undefined;
23
+ } & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
22
24
  export {};
23
25
  //# sourceMappingURL=ComposerDictate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerDictate.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerDictate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EAClB,0CAAuC;AAIxC,QAAA,MAAM,kBAAkB,2BAIvB,CAAC;AAEF,yBAAiB,wBAAwB,CAAC;IACxC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,kBAAkB,CAAC,CAAC;CAClE;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB;;6DAGpC,CAAC"}
1
+ {"version":3,"file":"ComposerDictate.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerDictate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EAClB,0CAAuC;AAIxC,QAAA,MAAM,kBAAkB,2BAIvB,CAAC;AAEF,yBAAiB,wBAAwB,CAAC;IACxC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,kBAAkB,CAAC,CAAC;CAClE;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB;;;;gHAGpC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Primitive } from "@radix-ui/react-primitive";
1
+ import { Primitive } from "../../utils/Primitive.js";
2
2
  import { type ComponentRef, ComponentPropsWithoutRef } from "react";
3
3
  export declare namespace ComposerPrimitiveDictationTranscript {
4
4
  type Element = ComponentRef<typeof Primitive.span>;
@@ -19,7 +19,9 @@ export declare namespace ComposerPrimitiveDictationTranscript {
19
19
  * </ComposerPrimitive.If>
20
20
  * ```
21
21
  */
22
- export declare const ComposerPrimitiveDictationTranscript: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
22
+ export declare const ComposerPrimitiveDictationTranscript: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
23
23
  asChild?: boolean;
24
- }, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
24
+ }, "ref"> & {
25
+ render?: import("react").ReactElement | undefined;
26
+ } & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
25
27
  //# sourceMappingURL=ComposerDictationTranscript.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerDictationTranscript.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerDictationTranscript.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,KAAK,YAAY,EAAc,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAGhF,yBAAiB,oCAAoC,CAAC;IACpD,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IAC1D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;CACrE;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,oCAAoC;;2DAa/C,CAAC"}
1
+ {"version":3,"file":"ComposerDictationTranscript.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerDictationTranscript.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAClD,OAAO,EAAE,KAAK,YAAY,EAAc,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAGhF,yBAAiB,oCAAoC,CAAC;IACpD,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IAC1D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;CACrE;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,oCAAoC;;;;4GAa/C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { Primitive } from "@radix-ui/react-primitive";
3
+ import { Primitive } from "../../utils/Primitive.js";
4
4
  import { forwardRef } from "react";
5
5
  import { useAuiState } from "@assistant-ui/store";
6
6
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerDictationTranscript.js","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerDictationTranscript.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAqB,UAAU,EAA4B,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAOlD;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,UAAU,CAG5D,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE;IACvC,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAExE,IAAI,CAAC,UAAU;QAAE,OAAO,IAAI,CAAC;IAE7B,OAAO,CACL,KAAC,SAAS,CAAC,IAAI,OAAK,KAAK,EAAE,GAAG,EAAE,UAAU,YACvC,QAAQ,IAAI,UAAU,GACR,CAClB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,oCAAoC,CAAC,WAAW;IAC9C,uCAAuC,CAAC"}
1
+ {"version":3,"file":"ComposerDictationTranscript.js","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerDictationTranscript.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAClD,OAAO,EAAqB,UAAU,EAA4B,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAOlD;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,UAAU,CAG5D,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE;IACvC,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAExE,IAAI,CAAC,UAAU;QAAE,OAAO,IAAI,CAAC;IAE7B,OAAO,CACL,KAAC,SAAS,CAAC,IAAI,OAAK,KAAK,EAAE,GAAG,EAAE,UAAU,YACvC,QAAQ,IAAI,UAAU,GACR,CAClB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,oCAAoC,CAAC,WAAW;IAC9C,uCAAuC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { type ReactElement } from "react";
1
2
  import { type TextareaAutosizeProps } from "react-textarea-autosize";
2
3
  export declare namespace ComposerPrimitiveInput {
3
4
  export type Element = HTMLTextAreaElement;
@@ -7,6 +8,10 @@ export declare namespace ComposerPrimitiveInput {
7
8
  * When true, the component will merge its props with its child.
8
9
  */
9
10
  asChild?: boolean | undefined;
11
+ /**
12
+ * A React element to use as the input container, with props merged in.
13
+ */
14
+ render?: ReactElement | undefined;
10
15
  /**
11
16
  * Whether to cancel message composition when Escape is pressed.
12
17
  * @default true
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerInput.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerInput.tsx"],"names":[],"mappings":"AAaA,OAAyB,EACvB,KAAK,qBAAqB,EAC3B,MAAM,yBAAyB,CAAC;AAUjC,yBAAiB,sBAAsB,CAAC;IACtC,MAAM,MAAM,OAAO,GAAG,mBAAmB,CAAC;IAE1C,KAAK,SAAS,GAAG;QACf;;;WAGG;QACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC9B;;;WAGG;QACH,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACrC;;;WAGG;QACH,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC/C;;;WAGG;QACH,8BAA8B,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACrD;;;WAGG;QACH,8BAA8B,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACrD;;;WAGG;QACH,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAC5C,CAAC;IAEF,KAAK,eAAe,GAChB;QACE;;;;;;WAMG;QACH,UAAU,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;QACxD;;;WAGG;QACH,aAAa,CAAC,EAAE,KAAK,CAAC;KACvB,GACD;QACE,UAAU,CAAC,EAAE,KAAK,CAAC;QACnB;;;;WAIG;QACH,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KACrC,CAAC;IAEN,MAAM,MAAM,KAAK,GAAG,qBAAqB,GAAG,SAAS,GAAG,eAAe,CAAC;;CACzE;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,sBAAsB,8HAkMlC,CAAC"}
1
+ {"version":3,"file":"ComposerInput.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerInput.tsx"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,YAAY,EAQlB,MAAM,OAAO,CAAC;AACf,OAAyB,EACvB,KAAK,qBAAqB,EAC3B,MAAM,yBAAyB,CAAC;AAUjC,yBAAiB,sBAAsB,CAAC;IACtC,MAAM,MAAM,OAAO,GAAG,mBAAmB,CAAC;IAE1C,KAAK,SAAS,GAAG;QACf;;;WAGG;QACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC9B;;WAEG;QACH,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;QAClC;;;WAGG;QACH,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACrC;;;WAGG;QACH,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC/C;;;WAGG;QACH,8BAA8B,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACrD;;;WAGG;QACH,8BAA8B,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACrD;;;WAGG;QACH,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAC5C,CAAC;IAEF,KAAK,eAAe,GAChB;QACE;;;;;;WAMG;QACH,UAAU,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;QACxD;;;WAGG;QACH,aAAa,CAAC,EAAE,KAAK,CAAC;KACvB,GACD;QACE,UAAU,CAAC,EAAE,KAAK,CAAC;QACnB;;;;WAIG;QACH,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KACrC,CAAC;IAEN,MAAM,MAAM,KAAK,GAAG,qBAAqB,GAAG,SAAS,GAAG,eAAe,CAAC;;CACzE;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,sBAAsB,8HAoNlC,CAAC"}