@assistant-ui/react 0.11.53 → 0.11.55

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 (219) hide show
  1. package/README.md +6 -3
  2. package/dist/client/NoOpComposerClient.d.ts +1 -1
  3. package/dist/client/NoOpComposerClient.d.ts.map +1 -1
  4. package/dist/client/NoOpComposerClient.js +7 -0
  5. package/dist/client/NoOpComposerClient.js.map +1 -1
  6. package/dist/client/types/Composer.d.ts +18 -3
  7. package/dist/client/types/Composer.d.ts.map +1 -1
  8. package/dist/client/types/Message.d.ts +17 -3
  9. package/dist/client/types/Message.d.ts.map +1 -1
  10. package/dist/legacy-runtime/client/ComposerRuntimeClient.d.ts.map +1 -1
  11. package/dist/legacy-runtime/client/ComposerRuntimeClient.js +3 -0
  12. package/dist/legacy-runtime/client/ComposerRuntimeClient.js.map +1 -1
  13. package/dist/legacy-runtime/hooks/AssistantContext.d.ts +2 -2
  14. package/dist/legacy-runtime/hooks/AssistantContext.js +1 -1
  15. package/dist/legacy-runtime/hooks/AttachmentContext.d.ts +2 -2
  16. package/dist/legacy-runtime/hooks/AttachmentContext.js +1 -1
  17. package/dist/legacy-runtime/hooks/ComposerContext.d.ts +2 -2
  18. package/dist/legacy-runtime/hooks/ComposerContext.js +1 -1
  19. package/dist/legacy-runtime/hooks/MessageContext.d.ts +3 -3
  20. package/dist/legacy-runtime/hooks/MessageContext.js +2 -2
  21. package/dist/legacy-runtime/hooks/MessagePartContext.d.ts +2 -2
  22. package/dist/legacy-runtime/hooks/MessagePartContext.js +1 -1
  23. package/dist/legacy-runtime/hooks/ThreadContext.d.ts +4 -4
  24. package/dist/legacy-runtime/hooks/ThreadContext.js +2 -2
  25. package/dist/legacy-runtime/hooks/ThreadListItemContext.d.ts +2 -2
  26. package/dist/legacy-runtime/hooks/ThreadListItemContext.js +1 -1
  27. package/dist/legacy-runtime/runtime/ComposerRuntime.d.ts +22 -6
  28. package/dist/legacy-runtime/runtime/ComposerRuntime.d.ts.map +1 -1
  29. package/dist/legacy-runtime/runtime/ComposerRuntime.js +18 -2
  30. package/dist/legacy-runtime/runtime/ComposerRuntime.js.map +1 -1
  31. package/dist/legacy-runtime/runtime/ThreadRuntime.d.ts +3 -0
  32. package/dist/legacy-runtime/runtime/ThreadRuntime.d.ts.map +1 -1
  33. package/dist/legacy-runtime/runtime-cores/adapters/speech/SpeechAdapterTypes.d.ts +25 -3
  34. package/dist/legacy-runtime/runtime-cores/adapters/speech/SpeechAdapterTypes.d.ts.map +1 -1
  35. package/dist/legacy-runtime/runtime-cores/adapters/speech/WebSpeechDictationAdapter.d.ts +61 -0
  36. package/dist/legacy-runtime/runtime-cores/adapters/speech/WebSpeechDictationAdapter.d.ts.map +1 -0
  37. package/dist/legacy-runtime/runtime-cores/adapters/speech/WebSpeechDictationAdapter.js +152 -0
  38. package/dist/legacy-runtime/runtime-cores/adapters/speech/WebSpeechDictationAdapter.js.map +1 -0
  39. package/dist/legacy-runtime/runtime-cores/adapters/speech/index.d.ts +2 -1
  40. package/dist/legacy-runtime/runtime-cores/adapters/speech/index.d.ts.map +1 -1
  41. package/dist/legacy-runtime/runtime-cores/adapters/speech/index.js +1 -0
  42. package/dist/legacy-runtime/runtime-cores/adapters/speech/index.js.map +1 -1
  43. package/dist/legacy-runtime/runtime-cores/assistant-transport/types.d.ts +1 -1
  44. package/dist/legacy-runtime/runtime-cores/assistant-transport/types.d.ts.map +1 -1
  45. package/dist/legacy-runtime/runtime-cores/assistant-transport/useAssistantTransportRuntime.d.ts.map +1 -1
  46. package/dist/legacy-runtime/runtime-cores/assistant-transport/useAssistantTransportRuntime.js +4 -1
  47. package/dist/legacy-runtime/runtime-cores/assistant-transport/useAssistantTransportRuntime.js.map +1 -1
  48. package/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.d.ts +20 -5
  49. package/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.d.ts.map +1 -1
  50. package/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.js +140 -0
  51. package/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.js.map +1 -1
  52. package/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.d.ts +6 -3
  53. package/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.d.ts.map +1 -1
  54. package/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.js +3 -0
  55. package/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.js.map +1 -1
  56. package/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.d.ts +7 -4
  57. package/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.d.ts.map +1 -1
  58. package/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.js +3 -0
  59. package/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.js.map +1 -1
  60. package/dist/legacy-runtime/runtime-cores/core/ComposerRuntimeCore.d.ts +35 -1
  61. package/dist/legacy-runtime/runtime-cores/core/ComposerRuntimeCore.d.ts.map +1 -1
  62. package/dist/legacy-runtime/runtime-cores/core/ThreadRuntimeCore.d.ts +1 -0
  63. package/dist/legacy-runtime/runtime-cores/core/ThreadRuntimeCore.d.ts.map +1 -1
  64. package/dist/legacy-runtime/runtime-cores/core/index.d.ts +1 -0
  65. package/dist/legacy-runtime/runtime-cores/core/index.d.ts.map +1 -1
  66. package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreAdapter.d.ts +8 -7
  67. package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreAdapter.d.ts.map +1 -1
  68. package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.d.ts +7 -6
  69. package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.d.ts.map +1 -1
  70. package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.js +4 -2
  71. package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.js.map +1 -1
  72. package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.d.ts +10 -8
  73. package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.d.ts.map +1 -1
  74. package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.js.map +1 -1
  75. package/dist/legacy-runtime/runtime-cores/local/LocalThreadRuntimeCore.d.ts +5 -3
  76. package/dist/legacy-runtime/runtime-cores/local/LocalThreadRuntimeCore.d.ts.map +1 -1
  77. package/dist/legacy-runtime/runtime-cores/local/LocalThreadRuntimeCore.js +6 -0
  78. package/dist/legacy-runtime/runtime-cores/local/LocalThreadRuntimeCore.js.map +1 -1
  79. package/dist/legacy-runtime/runtime-cores/remote-thread-list/EMPTY_THREAD_CORE.d.ts +1 -1
  80. package/dist/legacy-runtime/runtime-cores/remote-thread-list/EMPTY_THREAD_CORE.d.ts.map +1 -1
  81. package/dist/legacy-runtime/runtime-cores/remote-thread-list/EMPTY_THREAD_CORE.js +8 -0
  82. package/dist/legacy-runtime/runtime-cores/remote-thread-list/EMPTY_THREAD_CORE.js.map +1 -1
  83. package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.d.ts.map +1 -1
  84. package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.js +8 -1
  85. package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.js.map +1 -1
  86. package/dist/primitives/actionBarMore/ActionBarMoreContent.d.ts +12 -0
  87. package/dist/primitives/actionBarMore/ActionBarMoreContent.d.ts.map +1 -0
  88. package/dist/primitives/actionBarMore/ActionBarMoreContent.js +11 -0
  89. package/dist/primitives/actionBarMore/ActionBarMoreContent.js.map +1 -0
  90. package/dist/primitives/actionBarMore/ActionBarMoreItem.d.ts +8 -0
  91. package/dist/primitives/actionBarMore/ActionBarMoreItem.d.ts.map +1 -0
  92. package/dist/primitives/actionBarMore/ActionBarMoreItem.js +11 -0
  93. package/dist/primitives/actionBarMore/ActionBarMoreItem.js.map +1 -0
  94. package/dist/primitives/actionBarMore/ActionBarMoreRoot.d.ts +7 -0
  95. package/dist/primitives/actionBarMore/ActionBarMoreRoot.d.ts.map +1 -0
  96. package/dist/primitives/actionBarMore/ActionBarMoreRoot.js +10 -0
  97. package/dist/primitives/actionBarMore/ActionBarMoreRoot.js.map +1 -0
  98. package/dist/primitives/actionBarMore/ActionBarMoreSeparator.d.ts +8 -0
  99. package/dist/primitives/actionBarMore/ActionBarMoreSeparator.d.ts.map +1 -0
  100. package/dist/primitives/actionBarMore/ActionBarMoreSeparator.js +12 -0
  101. package/dist/primitives/actionBarMore/ActionBarMoreSeparator.js.map +1 -0
  102. package/dist/primitives/actionBarMore/ActionBarMoreTrigger.d.ts +8 -0
  103. package/dist/primitives/actionBarMore/ActionBarMoreTrigger.d.ts.map +1 -0
  104. package/dist/primitives/actionBarMore/ActionBarMoreTrigger.js +11 -0
  105. package/dist/primitives/actionBarMore/ActionBarMoreTrigger.js.map +1 -0
  106. package/dist/primitives/actionBarMore/index.d.ts +6 -0
  107. package/dist/primitives/actionBarMore/index.d.ts.map +1 -0
  108. package/dist/primitives/actionBarMore/index.js +6 -0
  109. package/dist/primitives/actionBarMore/index.js.map +1 -0
  110. package/dist/primitives/actionBarMore/scope.d.ts +7 -0
  111. package/dist/primitives/actionBarMore/scope.d.ts.map +1 -0
  112. package/dist/primitives/actionBarMore/scope.js +3 -0
  113. package/dist/primitives/actionBarMore/scope.js.map +1 -0
  114. package/dist/primitives/composer/ComposerDictate.d.ts +23 -0
  115. package/dist/primitives/composer/ComposerDictate.d.ts.map +1 -0
  116. package/dist/primitives/composer/ComposerDictate.js +30 -0
  117. package/dist/primitives/composer/ComposerDictate.js.map +1 -0
  118. package/dist/primitives/composer/ComposerDictationTranscript.d.ts +25 -0
  119. package/dist/primitives/composer/ComposerDictationTranscript.d.ts.map +1 -0
  120. package/dist/primitives/composer/ComposerDictationTranscript.js +29 -0
  121. package/dist/primitives/composer/ComposerDictationTranscript.js.map +1 -0
  122. package/dist/primitives/composer/ComposerIf.d.ts +3 -0
  123. package/dist/primitives/composer/ComposerIf.d.ts.map +1 -1
  124. package/dist/primitives/composer/ComposerIf.js +5 -0
  125. package/dist/primitives/composer/ComposerIf.js.map +1 -1
  126. package/dist/primitives/composer/ComposerInput.d.ts.map +1 -1
  127. package/dist/primitives/composer/ComposerInput.js +1 -1
  128. package/dist/primitives/composer/ComposerInput.js.map +1 -1
  129. package/dist/primitives/composer/ComposerStopDictation.d.ts +23 -0
  130. package/dist/primitives/composer/ComposerStopDictation.d.ts.map +1 -0
  131. package/dist/primitives/composer/ComposerStopDictation.js +28 -0
  132. package/dist/primitives/composer/ComposerStopDictation.js.map +1 -0
  133. package/dist/primitives/composer/index.d.ts +3 -0
  134. package/dist/primitives/composer/index.d.ts.map +1 -1
  135. package/dist/primitives/composer/index.js +3 -0
  136. package/dist/primitives/composer/index.js.map +1 -1
  137. package/dist/primitives/index.d.ts +2 -0
  138. package/dist/primitives/index.d.ts.map +1 -1
  139. package/dist/primitives/index.js +2 -0
  140. package/dist/primitives/index.js.map +1 -1
  141. package/dist/primitives/threadListItemMore/ThreadListItemMoreContent.d.ts +12 -0
  142. package/dist/primitives/threadListItemMore/ThreadListItemMoreContent.d.ts.map +1 -0
  143. package/dist/primitives/threadListItemMore/ThreadListItemMoreContent.js +12 -0
  144. package/dist/primitives/threadListItemMore/ThreadListItemMoreContent.js.map +1 -0
  145. package/dist/primitives/threadListItemMore/ThreadListItemMoreItem.d.ts +8 -0
  146. package/dist/primitives/threadListItemMore/ThreadListItemMoreItem.d.ts.map +1 -0
  147. package/dist/primitives/threadListItemMore/ThreadListItemMoreItem.js +12 -0
  148. package/dist/primitives/threadListItemMore/ThreadListItemMoreItem.js.map +1 -0
  149. package/dist/primitives/threadListItemMore/ThreadListItemMoreRoot.d.ts +7 -0
  150. package/dist/primitives/threadListItemMore/ThreadListItemMoreRoot.d.ts.map +1 -0
  151. package/dist/primitives/threadListItemMore/ThreadListItemMoreRoot.js +11 -0
  152. package/dist/primitives/threadListItemMore/ThreadListItemMoreRoot.js.map +1 -0
  153. package/dist/primitives/threadListItemMore/ThreadListItemMoreSeparator.d.ts +8 -0
  154. package/dist/primitives/threadListItemMore/ThreadListItemMoreSeparator.d.ts.map +1 -0
  155. package/dist/primitives/threadListItemMore/ThreadListItemMoreSeparator.js +12 -0
  156. package/dist/primitives/threadListItemMore/ThreadListItemMoreSeparator.js.map +1 -0
  157. package/dist/primitives/threadListItemMore/ThreadListItemMoreTrigger.d.ts +8 -0
  158. package/dist/primitives/threadListItemMore/ThreadListItemMoreTrigger.d.ts.map +1 -0
  159. package/dist/primitives/threadListItemMore/ThreadListItemMoreTrigger.js +12 -0
  160. package/dist/primitives/threadListItemMore/ThreadListItemMoreTrigger.js.map +1 -0
  161. package/dist/primitives/threadListItemMore/index.d.ts +6 -0
  162. package/dist/primitives/threadListItemMore/index.d.ts.map +1 -0
  163. package/dist/primitives/threadListItemMore/index.js +6 -0
  164. package/dist/primitives/threadListItemMore/index.js.map +1 -0
  165. package/dist/primitives/threadListItemMore/scope.d.ts +7 -0
  166. package/dist/primitives/threadListItemMore/scope.d.ts.map +1 -0
  167. package/dist/primitives/threadListItemMore/scope.js +3 -0
  168. package/dist/primitives/threadListItemMore/scope.js.map +1 -0
  169. package/package.json +6 -5
  170. package/src/client/NoOpComposerClient.tsx +8 -1
  171. package/src/client/types/Composer.ts +21 -4
  172. package/src/client/types/Message.ts +17 -3
  173. package/src/legacy-runtime/client/ComposerRuntimeClient.ts +4 -0
  174. package/src/legacy-runtime/hooks/AssistantContext.ts +2 -2
  175. package/src/legacy-runtime/hooks/AttachmentContext.ts +2 -2
  176. package/src/legacy-runtime/hooks/ComposerContext.ts +2 -2
  177. package/src/legacy-runtime/hooks/MessageContext.ts +3 -3
  178. package/src/legacy-runtime/hooks/MessagePartContext.ts +2 -2
  179. package/src/legacy-runtime/hooks/ThreadContext.ts +4 -4
  180. package/src/legacy-runtime/hooks/ThreadListItemContext.ts +2 -2
  181. package/src/legacy-runtime/runtime/ComposerRuntime.ts +51 -14
  182. package/src/legacy-runtime/runtime-cores/adapters/speech/SpeechAdapterTypes.ts +26 -3
  183. package/src/legacy-runtime/runtime-cores/adapters/speech/WebSpeechDictationAdapter.ts +255 -0
  184. package/src/legacy-runtime/runtime-cores/adapters/speech/index.ts +5 -1
  185. package/src/legacy-runtime/runtime-cores/assistant-transport/types.ts +1 -1
  186. package/src/legacy-runtime/runtime-cores/assistant-transport/useAssistantTransportRuntime.tsx +5 -1
  187. package/src/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.tsx +171 -5
  188. package/src/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.tsx +14 -4
  189. package/src/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.tsx +15 -5
  190. package/src/legacy-runtime/runtime-cores/core/ComposerRuntimeCore.tsx +39 -1
  191. package/src/legacy-runtime/runtime-cores/core/ThreadRuntimeCore.tsx +1 -0
  192. package/src/legacy-runtime/runtime-cores/core/index.ts +2 -0
  193. package/src/legacy-runtime/runtime-cores/external-store/ExternalStoreAdapter.tsx +11 -7
  194. package/src/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.tsx +12 -7
  195. package/src/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.tsx +12 -8
  196. package/src/legacy-runtime/runtime-cores/local/LocalThreadRuntimeCore.tsx +11 -4
  197. package/src/legacy-runtime/runtime-cores/remote-thread-list/EMPTY_THREAD_CORE.tsx +12 -1
  198. package/src/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.tsx +11 -1
  199. package/src/primitives/actionBarMore/ActionBarMoreContent.tsx +46 -0
  200. package/src/primitives/actionBarMore/ActionBarMoreItem.tsx +31 -0
  201. package/src/primitives/actionBarMore/ActionBarMoreRoot.tsx +22 -0
  202. package/src/primitives/actionBarMore/ActionBarMoreSeparator.tsx +32 -0
  203. package/src/primitives/actionBarMore/ActionBarMoreTrigger.tsx +31 -0
  204. package/src/primitives/actionBarMore/index.ts +5 -0
  205. package/src/primitives/actionBarMore/scope.tsx +8 -0
  206. package/src/primitives/composer/ComposerDictate.tsx +48 -0
  207. package/src/primitives/composer/ComposerDictationTranscript.tsx +45 -0
  208. package/src/primitives/composer/ComposerIf.tsx +7 -0
  209. package/src/primitives/composer/ComposerInput.tsx +4 -1
  210. package/src/primitives/composer/ComposerStopDictation.tsx +45 -0
  211. package/src/primitives/composer/index.ts +3 -0
  212. package/src/primitives/index.ts +2 -0
  213. package/src/primitives/threadListItemMore/ThreadListItemMoreContent.tsx +47 -0
  214. package/src/primitives/threadListItemMore/ThreadListItemMoreItem.tsx +32 -0
  215. package/src/primitives/threadListItemMore/ThreadListItemMoreRoot.tsx +23 -0
  216. package/src/primitives/threadListItemMore/ThreadListItemMoreSeparator.tsx +32 -0
  217. package/src/primitives/threadListItemMore/ThreadListItemMoreTrigger.tsx +32 -0
  218. package/src/primitives/threadListItemMore/index.ts +5 -0
  219. package/src/primitives/threadListItemMore/scope.tsx +8 -0
@@ -6,6 +6,11 @@ const useComposerIf = (props) => {
6
6
  return false;
7
7
  if (props.editing === false && composer.isEditing)
8
8
  return false;
9
+ const isDictating = composer.dictation != null;
10
+ if (props.dictation === true && !isDictating)
11
+ return false;
12
+ if (props.dictation === false && isDictating)
13
+ return false;
9
14
  return true;
10
15
  });
11
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerIf.js","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerIf.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAGb,OAAO,EAAE,iBAAiB,EAAE,+BAAsB;AASlD,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE;IAClD,OAAO,iBAAiB,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;QACxC,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI,IA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ACL,CAAC,CAAC;AAMF;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAkC,CAAC,EACjE,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IACpC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;AAClC,CAAC,CAAC;AAEF,mBAAmB,CAAC,WAAW,GAAG,sBAAsB,CAAC"}
@@ -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;AAMjC,yBAAiB,sBAAsB,CAAC;IACtC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,KAAK,GAAG,qBAAqB,GAAG;QAC1C;;;WAGG;QACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC9B;;;WAGG;QACH,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACpC;;;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;CACH;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB;IAtD/B;;;OAGG;cACO,OAAO,GAAG,SAAS;IAC7B;;;OAGG;oBACa,OAAO,GAAG,SAAS;IACnC;;;OAGG;qBACc,OAAO,GAAG,SAAS;IACpC;;;OAGG;+BACwB,OAAO,GAAG,SAAS;IAC9C;;;OAGG;qCAC8B,OAAO,GAAG,SAAS;IACpD;;;OAGG;qCAC8B,OAAO,GAAG,SAAS;IACpD;;;OAGG;2BACoB,OAAO,GAAG,SAAS;uDAiK7C,CAAC"}
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;AAMjC,yBAAiB,sBAAsB,CAAC;IACtC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,KAAK,GAAG,qBAAqB,GAAG;QAC1C;;;WAGG;QACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC9B;;;WAGG;QACH,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACpC;;;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;CACH;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB;IAtD/B;;;OAGG;cACO,OAAO,GAAG,SAAS;IAC7B;;;OAGG;oBACa,OAAO,GAAG,SAAS;IACnC;;;OAGG;qBACc,OAAO,GAAG,SAAS;IACpC;;;OAGG;+BACwB,OAAO,GAAG,SAAS;IAC9C;;;OAGG;qCAC8B,OAAO,GAAG,SAAS;IACpD;;;OAGG;qCAC8B,OAAO,GAAG,SAAS;IACpD;;;OAGG;2BACoB,OAAO,GAAG,SAAS;uDAoK7C,CAAC"}
@@ -33,7 +33,7 @@ export const ComposerPrimitiveInput = forwardRef(({ autoFocus = false, asChild,
33
33
  return composer.text;
34
34
  });
35
35
  const Component = asChild ? Slot : TextareaAutosize;
36
- const isDisabled = useAssistantState(({ thread }) => thread.isDisabled) || disabledProp;
36
+ const isDisabled = useAssistantState(({ thread, composer }) => thread.isDisabled || composer.dictation?.inputDisabled) || disabledProp;
37
37
  const textareaRef = useRef(null);
38
38
  const ref = useComposedRefs(forwardedRef, textareaRef);
39
39
  useEscapeKeydown((e) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerInput.js","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerInput.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAGL,UAAU,EACV,WAAW,EACX,SAAS,EACT,MAAM,GACP,MAAM,OAAO,CAAC;AACf,OAAO,gBAEN,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,iDAA8C;AAC5E,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,+BAAsB;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AA2C9C;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,UAAU,CAI9C,CACE,EACE,SAAS,GAAG,KAAK,EACjB,OAAO,EACP,QAAQ,EAAE,YAAY,EACtB,QAAQ,EACR,SAAS,EACT,OAAO,EACP,aAAa,GAAG,IAAI,EACpB,cAAc,GAAG,IAAI,EACrB,wBAAwB,GAAG,IAAI,EAC/B,8BAA8B,GAAG,IAAI,EACrC,8BAA8B,GAAG,IAAI,EAC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G,CAAC,CAAC,CAAC;IAE3C,SAAS,CAAC,GAAG,EAAE;QACb,IACE,GAAG,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,KAAK,QAAQ;YAC3C,CAAC,8BAA8B;YAE/B,OAAO,SAAS,CAAC;QAEnB,OAAO,GAAG,CAAC,EAAE,CAAC,8BAA8B,EAAE,KAAK,CAAC,CAAC;IACvD,CAAC,EAAE,CAAC,8BAA8B,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;IAEjD,OAAO,CACL,KAAC,SAAS,IACR,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,KAAK,KACR,IAAI,EACR,GAAG,EAAE,GAA8C,EACnD,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;YAC7C,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,SAAS;gBAAE,OAAO;YACjD,SAAS,CAAC,GAAG,EAAE;gBACb,GAAG,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACzC,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,EACF,SAAS,EAAE,oBAAoB,CAAC,SAAS,EAAE,cAAc,CAAC,EAC1D,OAAO,EAAE,oBAAoB,CAAC,OAAO,EAAE,WAAW,CAAC,GACnD,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,sBAAsB,CAAC,WAAW,GAAG,yBAAyB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { ActionButtonElement, ActionButtonProps } from "../../utils/createActionButton.js";
2
+ declare const useComposerStopDictation: () => (() => void) | null;
3
+ export declare namespace ComposerPrimitiveStopDictation {
4
+ type Element = ActionButtonElement;
5
+ type Props = ActionButtonProps<typeof useComposerStopDictation>;
6
+ }
7
+ /**
8
+ * A button that stops the current dictation session.
9
+ *
10
+ * Only rendered when dictation is active.
11
+ *
12
+ * @example
13
+ * ```tsx
14
+ * <ComposerPrimitive.StopDictation>
15
+ * <StopIcon />
16
+ * </ComposerPrimitive.StopDictation>
17
+ * ```
18
+ */
19
+ export declare const ComposerPrimitiveStopDictation: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
20
+ asChild?: boolean;
21
+ }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
22
+ export {};
23
+ //# sourceMappingURL=ComposerStopDictation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComposerStopDictation.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerStopDictation.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EAClB,0CAAuC;AAGxC,QAAA,MAAM,wBAAwB,2BAY7B,CAAC;AAEF,yBAAiB,8BAA8B,CAAC;IAC9C,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,wBAAwB,CAAC,CAAC;CACxE;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,8BAA8B;;6DAG1C,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use client";
2
+ import { useCallback } from "react";
3
+ import { useAssistantState, useAssistantApi } from "../../context/index.js";
4
+ import { createActionButton } from "../../utils/createActionButton.js";
5
+ const useComposerStopDictation = () => {
6
+ const api = useAssistantApi();
7
+ const isDictating = useAssistantState(({ composer }) => composer.dictation != null);
8
+ const callback = useCallback(() => {
9
+ api.composer().stopDictation();
10
+ }, [api]);
11
+ if (!isDictating)
12
+ return null;
13
+ return callback;
14
+ };
15
+ /**
16
+ * A button that stops the current dictation session.
17
+ *
18
+ * Only rendered when dictation is active.
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * <ComposerPrimitive.StopDictation>
23
+ * <StopIcon />
24
+ * </ComposerPrimitive.StopDictation>
25
+ * ```
26
+ */
27
+ export const ComposerPrimitiveStopDictation = createActionButton("ComposerPrimitive.StopDictation", useComposerStopDictation);
28
+ //# sourceMappingURL=ComposerStopDictation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComposerStopDictation.js","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerStopDictation.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,+BAAsB;AAKnE,OAAO,EAAE,kBAAkB,EAAE,0CAAuC;AAEpE,MAAM,wBAAwB,GAAG,GAAG,EAAE;IACpC,MAAM,GAAG,GAAG,eAAe,EAAE,CAAC;IAC9B,MAAM,WAAW,GAAG,iBAAiB,CACnC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,SAAS,IAAI,IAAI,CAC7C,CAAC;IAEF,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,EAAE;QAChC,GAAG,CAAC,QAAQ,EAAE,CAAC,aAAa,EAAE,CAAC;IACjC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAEV,IAAI,CAAC,WAAW;QAAE,OAAO,IAAI,CAAC;IAC9B,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAOF;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,kBAAkB,CAC9D,iCAAiC,EACjC,wBAAwB,CACzB,CAAC"}
@@ -6,5 +6,8 @@ export { ComposerPrimitiveAddAttachment as AddAttachment } from "./ComposerAddAt
6
6
  export { ComposerPrimitiveAttachments as Attachments } from "./ComposerAttachments.js";
7
7
  export { ComposerPrimitiveAttachmentByIndex as AttachmentByIndex } from "./ComposerAttachments.js";
8
8
  export { ComposerPrimitiveAttachmentDropzone as AttachmentDropzone } from "./ComposerAttachmentDropzone.js";
9
+ export { ComposerPrimitiveDictate as Dictate } from "./ComposerDictate.js";
10
+ export { ComposerPrimitiveStopDictation as StopDictation } from "./ComposerStopDictation.js";
11
+ export { ComposerPrimitiveDictationTranscript as DictationTranscript } from "./ComposerDictationTranscript.js";
9
12
  export { ComposerPrimitiveIf as If } from "./ComposerIf.js";
10
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,IAAI,IAAI,EAAE,0BAAuB;AAC/D,OAAO,EAAE,sBAAsB,IAAI,KAAK,EAAE,2BAAwB;AAClE,OAAO,EAAE,qBAAqB,IAAI,IAAI,EAAE,0BAAuB;AAC/D,OAAO,EAAE,uBAAuB,IAAI,MAAM,EAAE,4BAAyB;AACrE,OAAO,EAAE,8BAA8B,IAAI,aAAa,EAAE,mCAAgC;AAC1F,OAAO,EAAE,4BAA4B,IAAI,WAAW,EAAE,iCAA8B;AACpF,OAAO,EAAE,kCAAkC,IAAI,iBAAiB,EAAE,iCAA8B;AAChG,OAAO,EAAE,mCAAmC,IAAI,kBAAkB,EAAE,wCAAqC;AACzG,OAAO,EAAE,mBAAmB,IAAI,EAAE,EAAE,wBAAqB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,IAAI,IAAI,EAAE,0BAAuB;AAC/D,OAAO,EAAE,sBAAsB,IAAI,KAAK,EAAE,2BAAwB;AAClE,OAAO,EAAE,qBAAqB,IAAI,IAAI,EAAE,0BAAuB;AAC/D,OAAO,EAAE,uBAAuB,IAAI,MAAM,EAAE,4BAAyB;AACrE,OAAO,EAAE,8BAA8B,IAAI,aAAa,EAAE,mCAAgC;AAC1F,OAAO,EAAE,4BAA4B,IAAI,WAAW,EAAE,iCAA8B;AACpF,OAAO,EAAE,kCAAkC,IAAI,iBAAiB,EAAE,iCAA8B;AAChG,OAAO,EAAE,mCAAmC,IAAI,kBAAkB,EAAE,wCAAqC;AACzG,OAAO,EAAE,wBAAwB,IAAI,OAAO,EAAE,6BAA0B;AACxE,OAAO,EAAE,8BAA8B,IAAI,aAAa,EAAE,mCAAgC;AAC1F,OAAO,EAAE,oCAAoC,IAAI,mBAAmB,EAAE,yCAAsC;AAC5G,OAAO,EAAE,mBAAmB,IAAI,EAAE,EAAE,wBAAqB"}
@@ -6,5 +6,8 @@ export { ComposerPrimitiveAddAttachment as AddAttachment } from "./ComposerAddAt
6
6
  export { ComposerPrimitiveAttachments as Attachments } from "./ComposerAttachments.js";
7
7
  export { ComposerPrimitiveAttachmentByIndex as AttachmentByIndex } from "./ComposerAttachments.js";
8
8
  export { ComposerPrimitiveAttachmentDropzone as AttachmentDropzone } from "./ComposerAttachmentDropzone.js";
9
+ export { ComposerPrimitiveDictate as Dictate } from "./ComposerDictate.js";
10
+ export { ComposerPrimitiveStopDictation as StopDictation } from "./ComposerStopDictation.js";
11
+ export { ComposerPrimitiveDictationTranscript as DictationTranscript } from "./ComposerDictationTranscript.js";
9
12
  export { ComposerPrimitiveIf as If } from "./ComposerIf.js";
10
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/primitives/composer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,IAAI,IAAI,EAAE,0BAAuB;AAC/D,OAAO,EAAE,sBAAsB,IAAI,KAAK,EAAE,2BAAwB;AAClE,OAAO,EAAE,qBAAqB,IAAI,IAAI,EAAE,0BAAuB;AAC/D,OAAO,EAAE,uBAAuB,IAAI,MAAM,EAAE,4BAAyB;AACrE,OAAO,EAAE,8BAA8B,IAAI,aAAa,EAAE,mCAAgC;AAC1F,OAAO,EAAE,4BAA4B,IAAI,WAAW,EAAE,iCAA8B;AACpF,OAAO,EAAE,kCAAkC,IAAI,iBAAiB,EAAE,iCAA8B;AAChG,OAAO,EAAE,mCAAmC,IAAI,kBAAkB,EAAE,wCAAqC;AACzG,OAAO,EAAE,mBAAmB,IAAI,EAAE,EAAE,wBAAqB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/primitives/composer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,IAAI,IAAI,EAAE,0BAAuB;AAC/D,OAAO,EAAE,sBAAsB,IAAI,KAAK,EAAE,2BAAwB;AAClE,OAAO,EAAE,qBAAqB,IAAI,IAAI,EAAE,0BAAuB;AAC/D,OAAO,EAAE,uBAAuB,IAAI,MAAM,EAAE,4BAAyB;AACrE,OAAO,EAAE,8BAA8B,IAAI,aAAa,EAAE,mCAAgC;AAC1F,OAAO,EAAE,4BAA4B,IAAI,WAAW,EAAE,iCAA8B;AACpF,OAAO,EAAE,kCAAkC,IAAI,iBAAiB,EAAE,iCAA8B;AAChG,OAAO,EAAE,mCAAmC,IAAI,kBAAkB,EAAE,wCAAqC;AACzG,OAAO,EAAE,wBAAwB,IAAI,OAAO,EAAE,6BAA0B;AACxE,OAAO,EAAE,8BAA8B,IAAI,aAAa,EAAE,mCAAgC;AAC1F,OAAO,EAAE,oCAAoC,IAAI,mBAAmB,EAAE,yCAAsC;AAC5G,OAAO,EAAE,mBAAmB,IAAI,EAAE,EAAE,wBAAqB"}
@@ -1,4 +1,5 @@
1
1
  export * as ActionBarPrimitive from "./actionBar/index.js";
2
+ export * as ActionBarMorePrimitive from "./actionBarMore/index.js";
2
3
  export * as AssistantModalPrimitive from "./assistantModal/index.js";
3
4
  export * as AttachmentPrimitive from "./attachment/index.js";
4
5
  export * as BranchPickerPrimitive from "./branchPicker/index.js";
@@ -9,6 +10,7 @@ export * as MessagePrimitive from "./message/index.js";
9
10
  export * as ThreadPrimitive from "./thread/index.js";
10
11
  export * as ThreadListPrimitive from "./threadList/index.js";
11
12
  export * as ThreadListItemPrimitive from "./threadListItem/index.js";
13
+ export * as ThreadListItemMorePrimitive from "./threadListItemMore/index.js";
12
14
  export { AssistantIf } from "./assistant/AssistantIf.js";
13
15
  export { useMessagePartText } from "./messagePart/useMessagePartText.js";
14
16
  export { useMessagePartReasoning } from "./messagePart/useMessagePartReasoning.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/primitives/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,6BAAoB;AAClD,OAAO,KAAK,uBAAuB,kCAAyB;AAC5D,OAAO,KAAK,mBAAmB,8BAAqB;AACpD,OAAO,KAAK,qBAAqB,gCAAuB;AACxD,OAAO,KAAK,iBAAiB,4BAAmB;AAChD,OAAO,KAAK,oBAAoB,+BAAsB;AACtD,OAAO,KAAK,cAAc,yBAAgB;AAC1C,OAAO,KAAK,gBAAgB,2BAAkB;AAC9C,OAAO,KAAK,eAAe,0BAAiB;AAC5C,OAAO,KAAK,mBAAmB,8BAAqB;AACpD,OAAO,KAAK,uBAAuB,kCAAyB;AAE5D,OAAO,EAAE,WAAW,EAAE,mCAAgC;AAEtD,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,uBAAuB,EAAE,iDAA8C;AAChF,OAAO,EAAE,oBAAoB,EAAE,8CAA2C;AAC1E,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,mBAAmB,EAAE,6CAA0C;AACxE,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,2BAA2B,EAAE,gDAA6C;AACnF,OAAO,EAAE,aAAa,EAAE,6BAAoB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/primitives/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,6BAAoB;AAClD,OAAO,KAAK,sBAAsB,iCAAwB;AAC1D,OAAO,KAAK,uBAAuB,kCAAyB;AAC5D,OAAO,KAAK,mBAAmB,8BAAqB;AACpD,OAAO,KAAK,qBAAqB,gCAAuB;AACxD,OAAO,KAAK,iBAAiB,4BAAmB;AAChD,OAAO,KAAK,oBAAoB,+BAAsB;AACtD,OAAO,KAAK,cAAc,yBAAgB;AAC1C,OAAO,KAAK,gBAAgB,2BAAkB;AAC9C,OAAO,KAAK,eAAe,0BAAiB;AAC5C,OAAO,KAAK,mBAAmB,8BAAqB;AACpD,OAAO,KAAK,uBAAuB,kCAAyB;AAC5D,OAAO,KAAK,2BAA2B,sCAA6B;AAEpE,OAAO,EAAE,WAAW,EAAE,mCAAgC;AAEtD,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,uBAAuB,EAAE,iDAA8C;AAChF,OAAO,EAAE,oBAAoB,EAAE,8CAA2C;AAC1E,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,mBAAmB,EAAE,6CAA0C;AACxE,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,2BAA2B,EAAE,gDAA6C;AACnF,OAAO,EAAE,aAAa,EAAE,6BAAoB"}
@@ -1,4 +1,5 @@
1
1
  export * as ActionBarPrimitive from "./actionBar/index.js";
2
+ export * as ActionBarMorePrimitive from "./actionBarMore/index.js";
2
3
  export * as AssistantModalPrimitive from "./assistantModal/index.js";
3
4
  export * as AttachmentPrimitive from "./attachment/index.js";
4
5
  export * as BranchPickerPrimitive from "./branchPicker/index.js";
@@ -9,6 +10,7 @@ export * as MessagePrimitive from "./message/index.js";
9
10
  export * as ThreadPrimitive from "./thread/index.js";
10
11
  export * as ThreadListPrimitive from "./threadList/index.js";
11
12
  export * as ThreadListItemPrimitive from "./threadListItem/index.js";
13
+ export * as ThreadListItemMorePrimitive from "./threadListItemMore/index.js";
12
14
  export { AssistantIf } from "./assistant/AssistantIf.js";
13
15
  export { useMessagePartText } from "./messagePart/useMessagePartText.js";
14
16
  export { useMessagePartReasoning } from "./messagePart/useMessagePartReasoning.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/primitives/index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AAO,KAAK,uBAAuB,kCAAyB;AAC5D,OAAO,KAAK,2BAA2B,sCAA6B;AAEpE,OAAO,EAAE,WAAW,EAAE,mCAAgC;AAEtD,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,uBAAuB,EAAE,iDAA8C;AAChF,OAAO,EAAE,oBAAoB,EAAE,8CAA2C;AAC1E,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,mBAAmB,EAAE,6CAA0C;AACxE,OAAO,EAAE,kBAAkB,EAAE,4CAAyC;AACtE,OAAO,EAAE,2BAA2B,EAAE,gDAA6C;AACnF,OAAO,EAAE,aAAa,EAAE,6BAAoB"}
@@ -0,0 +1,12 @@
1
+ import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
3
+ export declare namespace ThreadListItemMorePrimitiveContent {
4
+ type Element = ComponentRef<typeof DropdownMenuPrimitive.Content>;
5
+ type Props = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> & {
6
+ portalProps?: ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Portal> | undefined;
7
+ };
8
+ }
9
+ export declare const ThreadListItemMorePrimitiveContent: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
10
+ portalProps?: ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Portal> | undefined;
11
+ } & import("react").RefAttributes<HTMLDivElement>>;
12
+ //# sourceMappingURL=ThreadListItemMoreContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadListItemMoreContent.d.ts","sourceRoot":"","sources":["../../../src/primitives/threadListItemMore/ThreadListItemMoreContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAc,MAAM,OAAO,CAAC;AAC3E,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAGvE,yBAAiB,kCAAkC,CAAC;IAClD,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,qBAAqB,CAAC,OAAO,CAAC,CAAC;IACzE,KAAY,KAAK,GAAG,wBAAwB,CAC1C,OAAO,qBAAqB,CAAC,OAAO,CACrC,GAAG;QACF,WAAW,CAAC,EACR,wBAAwB,CAAC,OAAO,qBAAqB,CAAC,MAAM,CAAC,GAC7D,SAAS,CAAC;KACf,CAAC;CACH;AAED,eAAO,MAAM,kCAAkC;kBALvC,wBAAwB,CAAC,OAAO,qBAAqB,CAAC,MAAM,CAAC,GAC7D,SAAS;kDA8BhB,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { forwardRef } from "react";
4
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
5
+ import { useDropdownMenuScope } from "./scope.js";
6
+ export const ThreadListItemMorePrimitiveContent = forwardRef(({ __scopeThreadListItemMore, portalProps, sideOffset = 4, ...props }, forwardedRef) => {
7
+ const scope = useDropdownMenuScope(__scopeThreadListItemMore);
8
+ return (_jsx(DropdownMenuPrimitive.Portal, { ...scope, ...portalProps, children: _jsx(DropdownMenuPrimitive.Content, { ...scope, ...props, ref: forwardedRef, sideOffset: sideOffset }) }));
9
+ });
10
+ ThreadListItemMorePrimitiveContent.displayName =
11
+ "ThreadListItemMorePrimitive.Content";
12
+ //# sourceMappingURL=ThreadListItemMoreContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadListItemMoreContent.js","sourceRoot":"","sources":["../../../src/primitives/threadListItemMore/ThreadListItemMoreContent.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAA0C,UAAU,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAe,oBAAoB,EAAE,mBAAgB;AAa5D,MAAM,CAAC,MAAM,kCAAkC,GAAG,UAAU,CAI1D,CACE,EACE,yBAAyB,EACzB,WAAW,EACX,UAAU,GAAG,CAAC,EACd,GAAG,KAAK,EAC8C,EACxD,YAAY,EACZ,EAAE;IACF,MAAM,KAAK,GAAG,oBAAoB,CAAC,yBAAyB,CAAC,CAAC;IAE9D,OAAO,CACL,KAAC,qBAAqB,CAAC,MAAM,OAAK,KAAK,KAAM,WAAW,YACtD,KAAC,qBAAqB,CAAC,OAAO,OACxB,KAAK,KACL,KAAK,EACT,GAAG,EAAE,YAAY,EACjB,UAAU,EAAE,UAAU,GACtB,GAC2B,CAChC,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,kCAAkC,CAAC,WAAW;IAC5C,qCAAqC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
3
+ export declare namespace ThreadListItemMorePrimitiveItem {
4
+ type Element = ComponentRef<typeof DropdownMenuPrimitive.Item>;
5
+ type Props = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item>;
6
+ }
7
+ export declare const ThreadListItemMorePrimitiveItem: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
+ //# sourceMappingURL=ThreadListItemMoreItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadListItemMoreItem.d.ts","sourceRoot":"","sources":["../../../src/primitives/threadListItemMore/ThreadListItemMoreItem.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAc,MAAM,OAAO,CAAC;AAC3E,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAGvE,yBAAiB,+BAA+B,CAAC;IAC/C,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACtE,KAAY,KAAK,GAAG,wBAAwB,CAC1C,OAAO,qBAAqB,CAAC,IAAI,CAClC,CAAC;CACH;AAED,eAAO,MAAM,+BAA+B,qMAe3C,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { forwardRef } from "react";
4
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
5
+ import { useDropdownMenuScope } from "./scope.js";
6
+ export const ThreadListItemMorePrimitiveItem = forwardRef(({ __scopeThreadListItemMore, ...rest }, ref) => {
7
+ const scope = useDropdownMenuScope(__scopeThreadListItemMore);
8
+ return _jsx(DropdownMenuPrimitive.Item, { ...scope, ...rest, ref: ref });
9
+ });
10
+ ThreadListItemMorePrimitiveItem.displayName =
11
+ "ThreadListItemMorePrimitive.Item";
12
+ //# sourceMappingURL=ThreadListItemMoreItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadListItemMoreItem.js","sourceRoot":"","sources":["../../../src/primitives/threadListItemMore/ThreadListItemMoreItem.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAA0C,UAAU,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAe,oBAAoB,EAAE,mBAAgB;AAS5D,MAAM,CAAC,MAAM,+BAA+B,GAAG,UAAU,CAIvD,CACE,EACE,yBAAyB,EACzB,GAAG,IAAI,EAC4C,EACrD,GAAG,EACH,EAAE;IACF,MAAM,KAAK,GAAG,oBAAoB,CAAC,yBAAyB,CAAC,CAAC;IAE9D,OAAO,KAAC,qBAAqB,CAAC,IAAI,OAAK,KAAK,KAAM,IAAI,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AACvE,CAAC,CACF,CAAC;AAEF,+BAA+B,CAAC,WAAW;IACzC,kCAAkC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
3
+ export declare namespace ThreadListItemMorePrimitiveRoot {
4
+ type Props = DropdownMenuPrimitive.DropdownMenuProps;
5
+ }
6
+ export declare const ThreadListItemMorePrimitiveRoot: FC<ThreadListItemMorePrimitiveRoot.Props>;
7
+ //# sourceMappingURL=ThreadListItemMoreRoot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadListItemMoreRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/threadListItemMore/ThreadListItemMoreRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAGvE,yBAAiB,+BAA+B,CAAC;IAC/C,KAAY,KAAK,GAAG,qBAAqB,CAAC,iBAAiB,CAAC;CAC7D;AAED,eAAO,MAAM,+BAA+B,EAAE,EAAE,CAC9C,+BAA+B,CAAC,KAAK,CAQtC,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
4
+ import { useDropdownMenuScope } from "./scope.js";
5
+ export const ThreadListItemMorePrimitiveRoot = ({ __scopeThreadListItemMore, ...rest }) => {
6
+ const scope = useDropdownMenuScope(__scopeThreadListItemMore);
7
+ return _jsx(DropdownMenuPrimitive.Root, { ...scope, ...rest });
8
+ };
9
+ ThreadListItemMorePrimitiveRoot.displayName =
10
+ "ThreadListItemMorePrimitive.Root";
11
+ //# sourceMappingURL=ThreadListItemMoreRoot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadListItemMoreRoot.js","sourceRoot":"","sources":["../../../src/primitives/threadListItemMore/ThreadListItemMoreRoot.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAe,oBAAoB,EAAE,mBAAgB;AAM5D,MAAM,CAAC,MAAM,+BAA+B,GAExC,CAAC,EACH,yBAAyB,EACzB,GAAG,IAAI,EAC4C,EAAE,EAAE;IACvD,MAAM,KAAK,GAAG,oBAAoB,CAAC,yBAAyB,CAAC,CAAC;IAE9D,OAAO,KAAC,qBAAqB,CAAC,IAAI,OAAK,KAAK,KAAM,IAAI,GAAI,CAAC;AAC7D,CAAC,CAAC;AAEF,+BAA+B,CAAC,WAAW;IACzC,kCAAkC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
3
+ export declare namespace ThreadListItemMorePrimitiveSeparator {
4
+ type Element = ComponentRef<typeof DropdownMenuPrimitive.Separator>;
5
+ type Props = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>;
6
+ }
7
+ export declare const ThreadListItemMorePrimitiveSeparator: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
+ //# sourceMappingURL=ThreadListItemMoreSeparator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadListItemMoreSeparator.d.ts","sourceRoot":"","sources":["../../../src/primitives/threadListItemMore/ThreadListItemMoreSeparator.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAc,MAAM,OAAO,CAAC;AAC3E,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAGvE,yBAAiB,oCAAoC,CAAC;IACpD,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAC3E,KAAY,KAAK,GAAG,wBAAwB,CAC1C,OAAO,qBAAqB,CAAC,SAAS,CACvC,CAAC;CACH;AAED,eAAO,MAAM,oCAAoC,0MAehD,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { forwardRef } from "react";
4
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
5
+ import { useDropdownMenuScope } from "./scope.js";
6
+ export const ThreadListItemMorePrimitiveSeparator = forwardRef(({ __scopeThreadListItemMore, ...rest }, ref) => {
7
+ const scope = useDropdownMenuScope(__scopeThreadListItemMore);
8
+ return _jsx(DropdownMenuPrimitive.Separator, { ...scope, ...rest, ref: ref });
9
+ });
10
+ ThreadListItemMorePrimitiveSeparator.displayName =
11
+ "ThreadListItemMorePrimitive.Separator";
12
+ //# sourceMappingURL=ThreadListItemMoreSeparator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadListItemMoreSeparator.js","sourceRoot":"","sources":["../../../src/primitives/threadListItemMore/ThreadListItemMoreSeparator.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAA0C,UAAU,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAe,oBAAoB,EAAE,mBAAgB;AAS5D,MAAM,CAAC,MAAM,oCAAoC,GAAG,UAAU,CAI5D,CACE,EACE,yBAAyB,EACzB,GAAG,IAAI,EACiD,EAC1D,GAAG,EACH,EAAE;IACF,MAAM,KAAK,GAAG,oBAAoB,CAAC,yBAAyB,CAAC,CAAC;IAE9D,OAAO,KAAC,qBAAqB,CAAC,SAAS,OAAK,KAAK,KAAM,IAAI,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AAC5E,CAAC,CACF,CAAC;AAEF,oCAAoC,CAAC,WAAW;IAC9C,uCAAuC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
3
+ export declare namespace ThreadListItemMorePrimitiveTrigger {
4
+ type Element = ComponentRef<typeof DropdownMenuPrimitive.Trigger>;
5
+ type Props = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>;
6
+ }
7
+ export declare const ThreadListItemMorePrimitiveTrigger: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
8
+ //# sourceMappingURL=ThreadListItemMoreTrigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadListItemMoreTrigger.d.ts","sourceRoot":"","sources":["../../../src/primitives/threadListItemMore/ThreadListItemMoreTrigger.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAc,MAAM,OAAO,CAAC;AAC3E,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAGvE,yBAAiB,kCAAkC,CAAC;IAClD,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,qBAAqB,CAAC,OAAO,CAAC,CAAC;IACzE,KAAY,KAAK,GAAG,wBAAwB,CAC1C,OAAO,qBAAqB,CAAC,OAAO,CACrC,CAAC;CACH;AAED,eAAO,MAAM,kCAAkC,8MAe9C,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { forwardRef } from "react";
4
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
5
+ import { useDropdownMenuScope } from "./scope.js";
6
+ export const ThreadListItemMorePrimitiveTrigger = forwardRef(({ __scopeThreadListItemMore, ...rest }, ref) => {
7
+ const scope = useDropdownMenuScope(__scopeThreadListItemMore);
8
+ return _jsx(DropdownMenuPrimitive.Trigger, { ...scope, ...rest, ref: ref });
9
+ });
10
+ ThreadListItemMorePrimitiveTrigger.displayName =
11
+ "ThreadListItemMorePrimitive.Trigger";
12
+ //# sourceMappingURL=ThreadListItemMoreTrigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadListItemMoreTrigger.js","sourceRoot":"","sources":["../../../src/primitives/threadListItemMore/ThreadListItemMoreTrigger.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAA0C,UAAU,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAe,oBAAoB,EAAE,mBAAgB;AAS5D,MAAM,CAAC,MAAM,kCAAkC,GAAG,UAAU,CAI1D,CACE,EACE,yBAAyB,EACzB,GAAG,IAAI,EAC+C,EACxD,GAAG,EACH,EAAE;IACF,MAAM,KAAK,GAAG,oBAAoB,CAAC,yBAAyB,CAAC,CAAC;IAE9D,OAAO,KAAC,qBAAqB,CAAC,OAAO,OAAK,KAAK,KAAM,IAAI,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AAC1E,CAAC,CACF,CAAC;AAEF,kCAAkC,CAAC,WAAW;IAC5C,qCAAqC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { ThreadListItemMorePrimitiveRoot as Root } from "./ThreadListItemMoreRoot.js";
2
+ export { ThreadListItemMorePrimitiveTrigger as Trigger } from "./ThreadListItemMoreTrigger.js";
3
+ export { ThreadListItemMorePrimitiveContent as Content } from "./ThreadListItemMoreContent.js";
4
+ export { ThreadListItemMorePrimitiveItem as Item } from "./ThreadListItemMoreItem.js";
5
+ export { ThreadListItemMorePrimitiveSeparator as Separator } from "./ThreadListItemMoreSeparator.js";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primitives/threadListItemMore/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,IAAI,IAAI,EAAE,oCAAiC;AACnF,OAAO,EAAE,kCAAkC,IAAI,OAAO,EAAE,uCAAoC;AAC5F,OAAO,EAAE,kCAAkC,IAAI,OAAO,EAAE,uCAAoC;AAC5F,OAAO,EAAE,+BAA+B,IAAI,IAAI,EAAE,oCAAiC;AACnF,OAAO,EAAE,oCAAoC,IAAI,SAAS,EAAE,yCAAsC"}
@@ -0,0 +1,6 @@
1
+ export { ThreadListItemMorePrimitiveRoot as Root } from "./ThreadListItemMoreRoot.js";
2
+ export { ThreadListItemMorePrimitiveTrigger as Trigger } from "./ThreadListItemMoreTrigger.js";
3
+ export { ThreadListItemMorePrimitiveContent as Content } from "./ThreadListItemMoreContent.js";
4
+ export { ThreadListItemMorePrimitiveItem as Item } from "./ThreadListItemMoreItem.js";
5
+ export { ThreadListItemMorePrimitiveSeparator as Separator } from "./ThreadListItemMoreSeparator.js";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/primitives/threadListItemMore/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,IAAI,IAAI,EAAE,oCAAiC;AACnF,OAAO,EAAE,kCAAkC,IAAI,OAAO,EAAE,uCAAoC;AAC5F,OAAO,EAAE,kCAAkC,IAAI,OAAO,EAAE,uCAAoC;AAC5F,OAAO,EAAE,+BAA+B,IAAI,IAAI,EAAE,oCAAiC;AACnF,OAAO,EAAE,oCAAoC,IAAI,SAAS,EAAE,yCAAsC"}
@@ -0,0 +1,7 @@
1
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
2
+ import type { Scope } from "@radix-ui/react-context";
3
+ export declare const useDropdownMenuScope: ReturnType<typeof DropdownMenuPrimitive.createDropdownMenuScope>;
4
+ export type ScopedProps<P> = P & {
5
+ __scopeThreadListItemMore?: Scope;
6
+ };
7
+ //# sourceMappingURL=scope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../../src/primitives/threadListItemMore/scope.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAC3C,OAAO,qBAAqB,CAAC,uBAAuB,CACH,CAAC;AAEpD,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,yBAAyB,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
2
+ export const useDropdownMenuScope = DropdownMenuPrimitive.createDropdownMenuScope();
3
+ //# sourceMappingURL=scope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scope.js","sourceRoot":"","sources":["../../../src/primitives/threadListItemMore/scope.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAGvE,MAAM,CAAC,MAAM,oBAAoB,GAE7B,qBAAqB,CAAC,uBAAuB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assistant-ui/react",
3
- "version": "0.11.53",
3
+ "version": "0.11.55",
4
4
  "description": "TypeScript/React library for AI Chat",
5
5
  "keywords": [
6
6
  "radix-ui",
@@ -54,15 +54,16 @@
54
54
  "@radix-ui/primitive": "^1.1.3",
55
55
  "@radix-ui/react-compose-refs": "^1.1.2",
56
56
  "@radix-ui/react-context": "^1.1.3",
57
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
57
58
  "@radix-ui/react-popover": "^1.1.15",
58
59
  "@radix-ui/react-primitive": "^2.1.4",
59
60
  "@radix-ui/react-slot": "^1.2.4",
60
61
  "@radix-ui/react-use-callback-ref": "^1.1.1",
61
62
  "@radix-ui/react-use-escape-keydown": "^1.1.1",
62
63
  "assistant-stream": "^0.2.46",
63
- "nanoid": "5.1.6",
64
+ "nanoid": "^5.1.6",
64
65
  "react-textarea-autosize": "^8.5.9",
65
- "zod": "^4.2.1",
66
+ "zod": "^4.3.5",
66
67
  "zustand": "^5.0.9"
67
68
  },
68
69
  "peerDependencies": {
@@ -84,8 +85,8 @@
84
85
  "@types/node": "^25.0.3",
85
86
  "@types/react": "^19.2.7",
86
87
  "@types/react-dom": "^19.2.3",
87
- "react": "19.2.3",
88
- "react-dom": "19.2.3",
88
+ "react": "^19.2.3",
89
+ "react-dom": "^19.2.3",
89
90
  "vitest": "^4.0.16",
90
91
  "@assistant-ui/x-buildutils": "0.0.1"
91
92
  },
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { resource, tapMemo } from "@assistant-ui/tap";
3
- import { ComposerClientState, ComposerClientApi } from "./types/Composer";
3
+ import type { ComposerClientState, ComposerClientApi } from "./types/Composer";
4
4
  import { tapApi } from "../utils/tap-store";
5
5
 
6
6
  export const NoOpComposerClient = resource(
@@ -16,6 +16,7 @@ export const NoOpComposerClient = resource(
16
16
  runConfig: {},
17
17
  canCancel: false,
18
18
  type: type,
19
+ dictation: undefined,
19
20
  };
20
21
  }, [type]);
21
22
 
@@ -51,6 +52,12 @@ export const NoOpComposerClient = resource(
51
52
  beginEdit: () => {
52
53
  throw new Error("Not supported");
53
54
  },
55
+ startDictation: () => {
56
+ throw new Error("Not supported");
57
+ },
58
+ stopDictation: () => {
59
+ throw new Error("Not supported");
60
+ },
54
61
  });
55
62
  },
56
63
  );
@@ -1,7 +1,8 @@
1
- import { ComposerRuntime } from "../../legacy-runtime/runtime";
2
- import { Attachment } from "../../types";
3
- import { MessageRole, RunConfig } from "../../types/AssistantTypes";
4
- import { AttachmentClientApi } from "./Attachment";
1
+ import type { ComposerRuntime } from "../../legacy-runtime/runtime";
2
+ import type { DictationState } from "../../legacy-runtime/runtime-cores/core/ComposerRuntimeCore";
3
+ import type { Attachment } from "../../types";
4
+ import type { MessageRole, RunConfig } from "../../types/AssistantTypes";
5
+ import type { AttachmentClientApi } from "./Attachment";
5
6
 
6
7
  export type ComposerClientState = {
7
8
  readonly text: string;
@@ -13,6 +14,11 @@ export type ComposerClientState = {
13
14
  readonly attachmentAccept: string;
14
15
  readonly isEmpty: boolean;
15
16
  readonly type: "thread" | "edit";
17
+ /**
18
+ * The current state of dictation.
19
+ * Undefined when dictation is not active.
20
+ */
21
+ readonly dictation: DictationState | undefined;
16
22
  };
17
23
 
18
24
  export type ComposerClientApi = {
@@ -29,6 +35,17 @@ export type ComposerClientApi = {
29
35
  cancel(): void;
30
36
  beginEdit(): void;
31
37
 
38
+ /**
39
+ * Start dictation to convert voice to text input.
40
+ * Requires a DictationAdapter to be configured.
41
+ */
42
+ startDictation(): void;
43
+
44
+ /**
45
+ * Stop the current dictation session.
46
+ */
47
+ stopDictation(): void;
48
+
32
49
  /** @internal */
33
50
  __internal_getRuntime?(): ComposerRuntime;
34
51
  };
@@ -17,7 +17,21 @@ export type MessageClientState = ThreadMessage & {
17
17
  readonly branchCount: number;
18
18
 
19
19
  /**
20
- * @deprecated This API is still under active development and might change without notice.
20
+ * @deprecated The `speech` property is deprecated and will be removed in a future version.
21
+ *
22
+ * To enable text-to-speech, provide a `SpeechSynthesisAdapter` to the runtime.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * import { WebSpeechSynthesisAdapter } from "@assistant-ui/react";
27
+ * import { useChatRuntime } from "@assistant-ui/react-ai-sdk";
28
+ *
29
+ * const runtime = useChatRuntime({
30
+ * adapters: {
31
+ * speech: new WebSpeechSynthesisAdapter(),
32
+ * },
33
+ * });
34
+ * ```
21
35
  */
22
36
  readonly speech: SpeechState | undefined;
23
37
  /**
@@ -45,11 +59,11 @@ export type MessageClientApi = {
45
59
 
46
60
  reload(config?: { runConfig?: RunConfig }): void;
47
61
  /**
48
- * @deprecated This API is still under active development and might change without notice.
62
+ * @deprecated The `speak()` method is deprecated. Use the `ActionBarPrimitive.Speak` component instead.
49
63
  */
50
64
  speak(): void;
51
65
  /**
52
- * @deprecated This API is still under active development and might change without notice.
66
+ * @deprecated The `stopSpeaking()` method is deprecated. Use the `ActionBarPrimitive.StopSpeaking` component instead.
53
67
  */
54
68
  stopSpeaking(): void;
55
69
  submitFeedback(feedback: { type: "positive" | "negative" }): void;
@@ -93,6 +93,7 @@ export const ComposerClient = resource(
93
93
  attachmentAccept: runtimeState.attachmentAccept,
94
94
  isEmpty: runtimeState.isEmpty,
95
95
  type: runtimeState.type ?? "thread",
96
+ dictation: runtimeState.dictation,
96
97
  };
97
98
  }, [runtimeState, attachments.state]);
98
99
 
@@ -114,6 +115,9 @@ export const ComposerClient = resource(
114
115
  throw new Error("beginEdit is not supported in this runtime");
115
116
  }),
116
117
 
118
+ startDictation: runtime.startDictation,
119
+ stopDictation: runtime.stopDictation,
120
+
117
121
  attachment: (selector) => {
118
122
  if ("id" in selector) {
119
123
  return attachments.api({ key: selector.id });
@@ -6,7 +6,7 @@ import type { ThreadListRuntime } from "../runtime/ThreadListRuntime";
6
6
  import { createStateHookForRuntime } from "../../context/react/utils/createStateHookForRuntime";
7
7
 
8
8
  /**
9
- * @deprecated Use `useAssistantApi()` instead. See migration guide: https://docs.assistant-ui.com/docs/migrations/v0-12
9
+ * @deprecated Use `useAssistantApi()` instead. See migration guide: https://assistant-ui.com/docs/migrations/v0-12
10
10
  *
11
11
  * Hook to access the AssistantRuntime from the current context.
12
12
  *
@@ -62,6 +62,6 @@ const useThreadListRuntime = (opt: {
62
62
  }): ThreadListRuntime | null => useAssistantRuntime(opt)?.threads ?? null;
63
63
 
64
64
  /**
65
- * @deprecated Use `useAssistantState(({ threads }) => threads)` instead. See migration guide: https://docs.assistant-ui.com/docs/migrations/v0-12
65
+ * @deprecated Use `useAssistantState(({ threads }) => threads)` instead. See migration guide: https://assistant-ui.com/docs/migrations/v0-12
66
66
  */
67
67
  export const useThreadList = createStateHookForRuntime(useThreadListRuntime);