@assistant-ui/react-native 0.1.36 → 0.1.38

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 (178) hide show
  1. package/dist/index.d.ts +3 -2
  2. package/dist/index.js +2 -1
  3. package/dist/primitives/actionBar/ActionBarCopy.js +1 -0
  4. package/dist/primitives/actionBar/ActionBarCopy.js.map +1 -1
  5. package/dist/primitives/actionBar/ActionBarEdit.d.ts +2 -3
  6. package/dist/primitives/actionBar/ActionBarEdit.d.ts.map +1 -1
  7. package/dist/primitives/actionBar/ActionBarEdit.js +1 -0
  8. package/dist/primitives/actionBar/ActionBarEdit.js.map +1 -1
  9. package/dist/primitives/actionBar/ActionBarFeedbackNegative.js +1 -0
  10. package/dist/primitives/actionBar/ActionBarFeedbackNegative.js.map +1 -1
  11. package/dist/primitives/actionBar/ActionBarFeedbackPositive.js +1 -0
  12. package/dist/primitives/actionBar/ActionBarFeedbackPositive.js.map +1 -1
  13. package/dist/primitives/actionBar/ActionBarReload.d.ts +2 -3
  14. package/dist/primitives/actionBar/ActionBarReload.d.ts.map +1 -1
  15. package/dist/primitives/actionBar/ActionBarReload.js +1 -0
  16. package/dist/primitives/actionBar/ActionBarReload.js.map +1 -1
  17. package/dist/primitives/attachment/AttachmentRemove.d.ts +2 -3
  18. package/dist/primitives/attachment/AttachmentRemove.d.ts.map +1 -1
  19. package/dist/primitives/attachment/AttachmentRemove.js +1 -0
  20. package/dist/primitives/attachment/AttachmentRemove.js.map +1 -1
  21. package/dist/primitives/branchPicker/BranchPickerNext.d.ts +2 -3
  22. package/dist/primitives/branchPicker/BranchPickerNext.d.ts.map +1 -1
  23. package/dist/primitives/branchPicker/BranchPickerNext.js +1 -0
  24. package/dist/primitives/branchPicker/BranchPickerNext.js.map +1 -1
  25. package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts +2 -3
  26. package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts.map +1 -1
  27. package/dist/primitives/branchPicker/BranchPickerPrevious.js +1 -0
  28. package/dist/primitives/branchPicker/BranchPickerPrevious.js.map +1 -1
  29. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts +2 -3
  30. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts.map +1 -1
  31. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.js +1 -0
  32. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.js.map +1 -1
  33. package/dist/primitives/composer/ComposerAddAttachment.d.ts +2 -3
  34. package/dist/primitives/composer/ComposerAddAttachment.d.ts.map +1 -1
  35. package/dist/primitives/composer/ComposerAddAttachment.js +1 -0
  36. package/dist/primitives/composer/ComposerAddAttachment.js.map +1 -1
  37. package/dist/primitives/composer/ComposerCancel.d.ts +2 -3
  38. package/dist/primitives/composer/ComposerCancel.d.ts.map +1 -1
  39. package/dist/primitives/composer/ComposerCancel.js +1 -0
  40. package/dist/primitives/composer/ComposerCancel.js.map +1 -1
  41. package/dist/primitives/composer/ComposerInput.d.ts.map +1 -1
  42. package/dist/primitives/composer/ComposerInput.js.map +1 -1
  43. package/dist/primitives/composer/ComposerQueue.d.ts +2 -0
  44. package/dist/primitives/composer/ComposerQueue.js +2 -0
  45. package/dist/primitives/composer/ComposerQuote.d.ts +10 -0
  46. package/dist/primitives/composer/ComposerQuote.d.ts.map +1 -0
  47. package/dist/primitives/composer/ComposerQuote.js +38 -0
  48. package/dist/primitives/composer/ComposerQuote.js.map +1 -0
  49. package/dist/primitives/composer/ComposerQuoteDismiss.d.ts +9 -0
  50. package/dist/primitives/composer/ComposerQuoteDismiss.d.ts.map +1 -0
  51. package/dist/primitives/composer/ComposerQuoteDismiss.js +48 -0
  52. package/dist/primitives/composer/ComposerQuoteDismiss.js.map +1 -0
  53. package/dist/primitives/composer/ComposerQuoteText.d.ts +10 -0
  54. package/dist/primitives/composer/ComposerQuoteText.d.ts.map +1 -0
  55. package/dist/primitives/composer/ComposerQuoteText.js +40 -0
  56. package/dist/primitives/composer/ComposerQuoteText.js.map +1 -0
  57. package/dist/primitives/composer/ComposerSend.d.ts +2 -3
  58. package/dist/primitives/composer/ComposerSend.d.ts.map +1 -1
  59. package/dist/primitives/composer/ComposerSend.js +1 -0
  60. package/dist/primitives/composer/ComposerSend.js.map +1 -1
  61. package/dist/primitives/composer.d.ts +6 -2
  62. package/dist/primitives/composer.js +9 -1
  63. package/dist/primitives/composer.js.map +1 -1
  64. package/dist/primitives/message/MessageIf.d.ts +3 -0
  65. package/dist/primitives/message/MessageIf.d.ts.map +1 -1
  66. package/dist/primitives/message/MessageIf.js +3 -0
  67. package/dist/primitives/message/MessageIf.js.map +1 -1
  68. package/dist/primitives/queueItem/QueueItemRemove.d.ts +9 -0
  69. package/dist/primitives/queueItem/QueueItemRemove.d.ts.map +1 -0
  70. package/dist/primitives/queueItem/QueueItemRemove.js +48 -0
  71. package/dist/primitives/queueItem/QueueItemRemove.js.map +1 -0
  72. package/dist/primitives/queueItem/QueueItemSteer.d.ts +9 -0
  73. package/dist/primitives/queueItem/QueueItemSteer.d.ts.map +1 -0
  74. package/dist/primitives/queueItem/QueueItemSteer.js +48 -0
  75. package/dist/primitives/queueItem/QueueItemSteer.js.map +1 -0
  76. package/dist/primitives/queueItem/QueueItemText.d.ts +10 -0
  77. package/dist/primitives/queueItem/QueueItemText.d.ts.map +1 -0
  78. package/dist/primitives/queueItem/QueueItemText.js +45 -0
  79. package/dist/primitives/queueItem/QueueItemText.js.map +1 -0
  80. package/dist/primitives/queueItem.d.ts +9 -0
  81. package/dist/primitives/queueItem.d.ts.map +1 -0
  82. package/dist/primitives/queueItem.js +14 -0
  83. package/dist/primitives/queueItem.js.map +1 -0
  84. package/dist/primitives/suggestion/SuggestionTrigger.d.ts +2 -3
  85. package/dist/primitives/suggestion/SuggestionTrigger.d.ts.map +1 -1
  86. package/dist/primitives/suggestion/SuggestionTrigger.js +1 -0
  87. package/dist/primitives/suggestion/SuggestionTrigger.js.map +1 -1
  88. package/dist/primitives/thread/ThreadEmpty.d.ts +4 -1
  89. package/dist/primitives/thread/ThreadEmpty.d.ts.map +1 -1
  90. package/dist/primitives/thread/ThreadEmpty.js +12 -4
  91. package/dist/primitives/thread/ThreadEmpty.js.map +1 -1
  92. package/dist/primitives/thread/ThreadIf.d.ts +3 -0
  93. package/dist/primitives/thread/ThreadIf.d.ts.map +1 -1
  94. package/dist/primitives/thread/ThreadIf.js +5 -6
  95. package/dist/primitives/thread/ThreadIf.js.map +1 -1
  96. package/dist/primitives/thread/ThreadMessages.d.ts.map +1 -1
  97. package/dist/primitives/thread/ThreadMessages.js +2 -2
  98. package/dist/primitives/thread/ThreadMessages.js.map +1 -1
  99. package/dist/primitives/thread/ThreadSuggestion.d.ts +2 -3
  100. package/dist/primitives/thread/ThreadSuggestion.d.ts.map +1 -1
  101. package/dist/primitives/thread/ThreadSuggestion.js +1 -0
  102. package/dist/primitives/thread/ThreadSuggestion.js.map +1 -1
  103. package/dist/primitives/threadList/ThreadListItems.d.ts.map +1 -1
  104. package/dist/primitives/threadList/ThreadListItems.js +8 -3
  105. package/dist/primitives/threadList/ThreadListItems.js.map +1 -1
  106. package/dist/primitives/threadList/ThreadListNew.d.ts +6 -4
  107. package/dist/primitives/threadList/ThreadListNew.d.ts.map +1 -1
  108. package/dist/primitives/threadList/ThreadListNew.js +46 -15
  109. package/dist/primitives/threadList/ThreadListNew.js.map +1 -1
  110. package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts +2 -3
  111. package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts.map +1 -1
  112. package/dist/primitives/threadListItem/ThreadListItemArchive.js +1 -0
  113. package/dist/primitives/threadListItem/ThreadListItemArchive.js.map +1 -1
  114. package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts +2 -3
  115. package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts.map +1 -1
  116. package/dist/primitives/threadListItem/ThreadListItemDelete.js +1 -0
  117. package/dist/primitives/threadListItem/ThreadListItemDelete.js.map +1 -1
  118. package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts +6 -4
  119. package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts.map +1 -1
  120. package/dist/primitives/threadListItem/ThreadListItemTrigger.js +46 -15
  121. package/dist/primitives/threadListItem/ThreadListItemTrigger.js.map +1 -1
  122. package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts +2 -3
  123. package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts.map +1 -1
  124. package/dist/primitives/threadListItem/ThreadListItemUnarchive.js +1 -0
  125. package/dist/primitives/threadListItem/ThreadListItemUnarchive.js.map +1 -1
  126. package/package.json +9 -8
  127. package/src/index.ts +2 -0
  128. package/src/primitives/accessibilityRole.test.tsx +335 -0
  129. package/src/primitives/actionBar/ActionBarCopy.tsx +1 -0
  130. package/src/primitives/actionBar/ActionBarEdit.tsx +6 -3
  131. package/src/primitives/actionBar/ActionBarFeedbackNegative.tsx +1 -1
  132. package/src/primitives/actionBar/ActionBarFeedbackPositive.tsx +1 -1
  133. package/src/primitives/actionBar/ActionBarReload.tsx +6 -3
  134. package/src/primitives/attachment/AttachmentRemove.tsx +11 -4
  135. package/src/primitives/branchPicker/BranchPickerNext.tsx +6 -3
  136. package/src/primitives/branchPicker/BranchPickerPrevious.tsx +6 -3
  137. package/src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx +4 -4
  138. package/src/primitives/composer/ComposerAddAttachment.tsx +10 -4
  139. package/src/primitives/composer/ComposerCancel.tsx +6 -3
  140. package/src/primitives/composer/ComposerInput.tsx +17 -15
  141. package/src/primitives/composer/ComposerQueue.test.tsx +9 -0
  142. package/src/primitives/composer/ComposerQueue.tsx +1 -0
  143. package/src/primitives/composer/ComposerQuote.test.tsx +163 -0
  144. package/src/primitives/composer/ComposerQuote.tsx +17 -0
  145. package/src/primitives/composer/ComposerQuoteDismiss.tsx +31 -0
  146. package/src/primitives/composer/ComposerQuoteText.tsx +17 -0
  147. package/src/primitives/composer/ComposerSend.test.tsx +26 -0
  148. package/src/primitives/composer/ComposerSend.tsx +3 -3
  149. package/src/primitives/composer.ts +13 -0
  150. package/src/primitives/message/MessageIf.tsx +3 -0
  151. package/src/primitives/queueItem/QueueItem.test.tsx +132 -0
  152. package/src/primitives/queueItem/QueueItemRemove.tsx +31 -0
  153. package/src/primitives/queueItem/QueueItemSteer.tsx +31 -0
  154. package/src/primitives/queueItem/QueueItemText.tsx +22 -0
  155. package/src/primitives/queueItem.ts +12 -0
  156. package/src/primitives/suggestion/SuggestionTrigger.tsx +6 -3
  157. package/src/primitives/thread/ThreadEmpty.test.tsx +17 -3
  158. package/src/primitives/thread/ThreadEmpty.tsx +7 -6
  159. package/src/primitives/thread/ThreadIf.test.tsx +20 -20
  160. package/src/primitives/thread/ThreadIf.tsx +5 -8
  161. package/src/primitives/thread/ThreadMessages.test.tsx +18 -4
  162. package/src/primitives/thread/ThreadMessages.tsx +3 -2
  163. package/src/primitives/thread/ThreadSuggestion.tsx +6 -3
  164. package/src/primitives/threadList/ThreadListItems.test.tsx +166 -0
  165. package/src/primitives/threadList/ThreadListItems.tsx +6 -1
  166. package/src/primitives/threadList/ThreadListNew.test.tsx +118 -3
  167. package/src/primitives/threadList/ThreadListNew.tsx +28 -5
  168. package/src/primitives/threadListItem/ThreadListItemArchive.tsx +6 -4
  169. package/src/primitives/threadListItem/ThreadListItemDelete.tsx +10 -4
  170. package/src/primitives/threadListItem/ThreadListItemTrigger.test.tsx +74 -0
  171. package/src/primitives/threadListItem/ThreadListItemTrigger.tsx +28 -5
  172. package/src/primitives/threadListItem/ThreadListItemUnarchive.tsx +10 -4
  173. package/dist/runtimes/RemoteThreadListHookInstanceManager.d.ts +0 -2
  174. package/dist/runtimes/RemoteThreadListHookInstanceManager.js +0 -2
  175. package/dist/runtimes/RemoteThreadListThreadListRuntimeCore.d.ts +0 -2
  176. package/dist/runtimes/RemoteThreadListThreadListRuntimeCore.js +0 -2
  177. package/src/runtimes/RemoteThreadListHookInstanceManager.tsx +0 -1
  178. package/src/runtimes/RemoteThreadListThreadListRuntimeCore.tsx +0 -1
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import { LocalRuntimeOptions, useLocalRuntime } from "./runtimes/useLocalRuntime
4
4
  import { useRemoteThreadListRuntime } from "./runtimes/useRemoteThreadListRuntime.js";
5
5
  import { thread_d_exports } from "./primitives/thread.js";
6
6
  import { composer_d_exports } from "./primitives/composer.js";
7
+ import { queueItem_d_exports } from "./primitives/queueItem.js";
7
8
  import { message_d_exports } from "./primitives/message.js";
8
9
  import { threadList_d_exports } from "./primitives/threadList.js";
9
10
  import { actionBar_d_exports } from "./primitives/actionBar.js";
@@ -16,6 +17,6 @@ import { index_d_exports } from "./primitives/error/index.js";
16
17
  import { AppendMessage, AssistantRuntime, Attachment, AttachmentAdapter, AttachmentRuntime, ChatModelAdapter, ChatModelRunOptions, ChatModelRunResult, CompleteAttachment, ComposerRuntime, CompositeAttachmentAdapter, CreateAttachment, DataMessagePart, EditComposerRuntime, ExportedMessageRepository, ExportedMessageRepositoryItem, FeedbackAdapter, FileMessagePart, ImageMessagePart, InMemoryThreadListAdapter, LanguageModelConfig, LanguageModelV1CallSettings, MessageRole, MessageRuntime, MessageStatus, ModelContext, ModelContextProvider, ModelContextRegistry, ModelContextRegistryInstructionHandle, ModelContextRegistryProviderHandle, ModelContextRegistryToolHandle, PendingAttachment, RealtimeVoiceAdapter, ReasoningMessagePart, RemoteThreadListAdapter, RemoteThreadListOptions, RemoteThreadListProviderComponent, RespondToToolApprovalOptions, RunConfig, RuntimeCapabilities, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, SourceMessagePart, SuggestionAdapter, TextMessagePart, ThreadAssistantMessage, ThreadAssistantMessagePart, ThreadComposerRuntime, ThreadHistoryAdapter, ThreadListItemRuntime, ThreadListRuntime, ThreadMessage, ThreadMessageLike, ThreadRuntime, ThreadSystemMessage, ThreadUserMessage, ThreadUserMessagePart, ToolApprovalOption, ToolApprovalOptionKind, ToolApprovalResponse, ToolCallMessagePart, ToolCallTiming, ToolModelContentPart, Unstable_AudioMessagePart, Unstable_InteractableSnapshotEntry, Unstable_InteractableVersion, Unsubscribe, VoiceSessionControls, VoiceSessionHelpers, createVoiceSession, fromThreadMessageLike, generateId, mergeModelContexts, tool, unstable_formatInteractableSnapshot, unstable_getInteractableSnapshots, unstable_getInteractableVersions } from "@assistant-ui/core";
17
18
  import { AssistantClient, AssistantEventCallback, AssistantEventName, AssistantEventPayload, AssistantEventScope, AssistantEventSelector, AssistantState, AuiConfig, AuiIf, AuiProvider, useAui, useAuiEvent, useAuiState } from "@assistant-ui/store";
18
19
  import { AssistantContextConfig, AssistantDataUI, AssistantDataUIProps, AssistantInteractableProps, AssistantTool, AssistantToolProps, AssistantToolUI, AssistantToolUIProps, ChainOfThoughtByIndicesProvider, ChainOfThoughtPartByIndexProvider, ComposerAttachmentByIndexProvider, DataMessagePartComponent, DataMessagePartProps, DataRenderers, EmptyMessagePartComponent, EmptyMessagePartProps, FileMessagePartComponent, FileMessagePartProps, GroupByContext, ImageMessagePartComponent, ImageMessagePartProps, Interactables, McpToolkitDefinition, McpToolkitEntry, McpToolkitToolConfig, MessageAttachmentByIndexProvider, MessageByIndexProvider, PartByIndexProvider, ProviderToolConfig, ReasoningGroupComponent, ReasoningGroupProps, ReasoningMessagePartComponent, ReasoningMessagePartProps, RuntimeAdapterProvider, RuntimeAdapters, SourceMessagePartComponent, SourceMessagePartProps, SuggestionByIndexProvider, TextMessagePartComponent, TextMessagePartProps, TextMessagePartProvider, ThreadListItemByIndexProvider, ThreadListItemRuntimeProvider, ToolArgsStatus, ToolCallMessagePartComponent, ToolCallMessagePartProps, ToolCallText, ToolDefinition, Toolkit, ToolkitDefinition, ToolkitDefinitionEntry, Tools, Unstable_AudioMessagePartComponent, Unstable_AudioMessagePartProps, Unstable_InferInteractableState, Unstable_InteractableConfig, Unstable_InteractableDefinition, Unstable_InteractablePersistedState, Unstable_InteractablePersistenceAdapter, Unstable_InteractablePersistenceStatus, Unstable_InteractableRegistration, Unstable_InteractableStateSchema, Unstable_InteractableToolConfig, Unstable_InteractableToolRenderProps, Unstable_InteractableVersionInfo, Unstable_InteractablesClientSchema, Unstable_InteractablesConfig, Unstable_InteractablesMethods, Unstable_InteractablesState, defineMcpToolkit, defineToolkit, externalTool, groupPartByType, hitl, hitlTool, humanTool, makeAssistantDataUI, makeAssistantTool, makeAssistantToolUI, providerTool, stubTool, unstable_Interactables, unstable_interactableTool, unstable_useInteractable, unstable_useInteractableState, unstable_useInteractableVersions, unstable_useThreadMessageIds, useAssistantContext, useAssistantDataUI, useAssistantInstructions, useAssistantInteractable, useAssistantTool, useAssistantToolUI, useAuiToolOverrides, useInlineRender, useInteractableState, useRuntimeAdapters, useToolArgsStatus, useVoiceControls, useVoiceState, useVoiceVolume } from "@assistant-ui/core/react";
19
- import { AttachmentState, ChainOfThoughtClient, ComposerState, MessageState, ModelContext as ModelContextClient, SuggestionConfig, Suggestions, ThreadListItemState, ThreadState, ThreadsState } from "@assistant-ui/core/store";
20
+ import { AttachmentState, ChainOfThoughtClient, ComposerState, MessageState, ModelContext as ModelContextClient, QueueItemState, SuggestionConfig, Suggestions, ThreadListItemState, ThreadState, ThreadsState } from "@assistant-ui/core/store";
20
21
  import { Tool } from "assistant-stream";
21
- export { actionBar_d_exports as ActionBarPrimitive, type AppendMessage, type AssistantClient, type AssistantContextConfig, type AssistantDataUI, type AssistantDataUIProps, type AssistantEventCallback, type AssistantEventName, type AssistantEventPayload, type AssistantEventScope, type AssistantEventSelector, type AssistantInteractableProps, type AssistantRuntime, AssistantRuntimeProvider, type AssistantState, type AssistantTool, type AssistantToolProps, type AssistantToolUI, type AssistantToolUIProps, type Attachment, type AttachmentAdapter, attachment_d_exports as AttachmentPrimitive, type AttachmentRuntime, type AttachmentState, AuiConfig, AuiIf, AuiProvider, branchPicker_d_exports as BranchPickerPrimitive, ChainOfThoughtByIndicesProvider, ChainOfThoughtClient, ChainOfThoughtPartByIndexProvider, chainOfThought_d_exports as ChainOfThoughtPrimitive, type ChatModelAdapter, type ChatModelRunOptions, type ChatModelRunResult, type CompleteAttachment, ComposerAttachmentByIndexProvider, composer_d_exports as ComposerPrimitive, type ComposerRuntime, type ComposerState, CompositeAttachmentAdapter, type CreateAttachment, type DataMessagePart, type DataMessagePartComponent, type DataMessagePartProps, DataRenderers, type EditComposerRuntime, type EmptyMessagePartComponent, type EmptyMessagePartProps, index_d_exports as ErrorPrimitive, ExportedMessageRepository, type ExportedMessageRepositoryItem, type FeedbackAdapter, type FileMessagePart, type FileMessagePartComponent, type FileMessagePartProps, type GroupByContext, type ImageMessagePart, type ImageMessagePartComponent, type ImageMessagePartProps, InMemoryThreadListAdapter, Interactables, type LanguageModelConfig, type LanguageModelV1CallSettings, type LocalRuntimeOptions, type McpToolkitDefinition, type McpToolkitEntry, type McpToolkitToolConfig, MessageAttachmentByIndexProvider, MessageByIndexProvider, message_d_exports as MessagePrimitive, type MessageRole, type MessageRuntime, type MessageState, type MessageStatus, type ModelContext, ModelContextClient, type ModelContextProvider, ModelContextRegistry, type ModelContextRegistryInstructionHandle, type ModelContextRegistryProviderHandle, type ModelContextRegistryToolHandle, PartByIndexProvider, type PendingAttachment, type ProviderToolConfig, type RealtimeVoiceAdapter, type ReasoningGroupComponent, type ReasoningGroupProps, type ReasoningMessagePart, type ReasoningMessagePartComponent, type ReasoningMessagePartProps, type RemoteThreadListAdapter, type RemoteThreadListOptions, type RemoteThreadListProviderComponent, type RespondToToolApprovalOptions, type RunConfig, RuntimeAdapterProvider, type RuntimeAdapters, type RuntimeCapabilities, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, type SourceMessagePart, type SourceMessagePartComponent, type SourceMessagePartProps, type SuggestionAdapter, SuggestionByIndexProvider, type SuggestionConfig, suggestion_d_exports as SuggestionPrimitive, Suggestions, type TextMessagePart, type TextMessagePartComponent, type TextMessagePartProps, TextMessagePartProvider, type ThreadAssistantMessage, type ThreadAssistantMessagePart, type ThreadComposerRuntime, type ThreadHistoryAdapter, ThreadListItemByIndexProvider, threadListItem_d_exports as ThreadListItemPrimitive, type ThreadListItemRuntime, ThreadListItemRuntimeProvider, type ThreadListItemState, threadList_d_exports as ThreadListPrimitive, type ThreadListRuntime, type ThreadMessage, type ThreadMessageLike, thread_d_exports as ThreadPrimitive, type ThreadRuntime, type ThreadState, type ThreadSystemMessage, type ThreadUserMessage, type ThreadUserMessagePart, type ThreadsState, type Tool, type ToolApprovalOption, type ToolApprovalOptionKind, type ToolApprovalResponse, type ToolArgsStatus, type ToolCallMessagePart, type ToolCallMessagePartComponent, type ToolCallMessagePartProps, type ToolCallText, type ToolCallTiming, type ToolDefinition, type ToolModelContentPart, type Toolkit, type ToolkitDefinition, type ToolkitDefinitionEntry, Tools, type Unstable_AudioMessagePart, type Unstable_AudioMessagePartComponent, type Unstable_AudioMessagePartProps, type Unstable_InferInteractableState, type Unstable_InteractableConfig, type Unstable_InteractableDefinition, type Unstable_InteractablePersistedState, type Unstable_InteractablePersistenceAdapter, type Unstable_InteractablePersistenceStatus, type Unstable_InteractableRegistration, type Unstable_InteractableSnapshotEntry, type Unstable_InteractableStateSchema, type Unstable_InteractableToolConfig, type Unstable_InteractableToolRenderProps, type Unstable_InteractableVersion, type Unstable_InteractableVersionInfo, type Unstable_InteractablesClientSchema, type Unstable_InteractablesConfig, type Unstable_InteractablesMethods, type Unstable_InteractablesState, type Unsubscribe, type VoiceSessionControls, type VoiceSessionHelpers, createVoiceSession, defineMcpToolkit, defineToolkit, externalTool, fromThreadMessageLike, generateId, groupPartByType, hitl, hitlTool, humanTool, makeAssistantDataUI, makeAssistantTool, makeAssistantToolUI, mergeModelContexts, providerTool, stubTool, tool, unstable_Interactables, unstable_formatInteractableSnapshot, unstable_getInteractableSnapshots, unstable_getInteractableVersions, unstable_interactableTool, unstable_useInteractable, unstable_useInteractableState, unstable_useInteractableVersions, unstable_useThreadMessageIds, useAssistantContext, useAssistantDataUI, useAssistantInstructions, useAssistantInteractable, useAssistantTool, useAssistantToolUI, useAui, useAuiEvent, useAuiState, useAuiToolOverrides, useInlineRender, useInteractableState, useLocalRuntime, useRemoteThreadListRuntime, useRuntimeAdapters, useToolArgsStatus, useVoiceControls, useVoiceState, useVoiceVolume };
22
+ export { actionBar_d_exports as ActionBarPrimitive, type AppendMessage, type AssistantClient, type AssistantContextConfig, type AssistantDataUI, type AssistantDataUIProps, type AssistantEventCallback, type AssistantEventName, type AssistantEventPayload, type AssistantEventScope, type AssistantEventSelector, type AssistantInteractableProps, type AssistantRuntime, AssistantRuntimeProvider, type AssistantState, type AssistantTool, type AssistantToolProps, type AssistantToolUI, type AssistantToolUIProps, type Attachment, type AttachmentAdapter, attachment_d_exports as AttachmentPrimitive, type AttachmentRuntime, type AttachmentState, AuiConfig, AuiIf, AuiProvider, branchPicker_d_exports as BranchPickerPrimitive, ChainOfThoughtByIndicesProvider, ChainOfThoughtClient, ChainOfThoughtPartByIndexProvider, chainOfThought_d_exports as ChainOfThoughtPrimitive, type ChatModelAdapter, type ChatModelRunOptions, type ChatModelRunResult, type CompleteAttachment, ComposerAttachmentByIndexProvider, composer_d_exports as ComposerPrimitive, type ComposerRuntime, type ComposerState, CompositeAttachmentAdapter, type CreateAttachment, type DataMessagePart, type DataMessagePartComponent, type DataMessagePartProps, DataRenderers, type EditComposerRuntime, type EmptyMessagePartComponent, type EmptyMessagePartProps, index_d_exports as ErrorPrimitive, ExportedMessageRepository, type ExportedMessageRepositoryItem, type FeedbackAdapter, type FileMessagePart, type FileMessagePartComponent, type FileMessagePartProps, type GroupByContext, type ImageMessagePart, type ImageMessagePartComponent, type ImageMessagePartProps, InMemoryThreadListAdapter, Interactables, type LanguageModelConfig, type LanguageModelV1CallSettings, type LocalRuntimeOptions, type McpToolkitDefinition, type McpToolkitEntry, type McpToolkitToolConfig, MessageAttachmentByIndexProvider, MessageByIndexProvider, message_d_exports as MessagePrimitive, type MessageRole, type MessageRuntime, type MessageState, type MessageStatus, type ModelContext, ModelContextClient, type ModelContextProvider, ModelContextRegistry, type ModelContextRegistryInstructionHandle, type ModelContextRegistryProviderHandle, type ModelContextRegistryToolHandle, PartByIndexProvider, type PendingAttachment, type ProviderToolConfig, queueItem_d_exports as QueueItemPrimitive, type QueueItemState, type RealtimeVoiceAdapter, type ReasoningGroupComponent, type ReasoningGroupProps, type ReasoningMessagePart, type ReasoningMessagePartComponent, type ReasoningMessagePartProps, type RemoteThreadListAdapter, type RemoteThreadListOptions, type RemoteThreadListProviderComponent, type RespondToToolApprovalOptions, type RunConfig, RuntimeAdapterProvider, type RuntimeAdapters, type RuntimeCapabilities, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, type SourceMessagePart, type SourceMessagePartComponent, type SourceMessagePartProps, type SuggestionAdapter, SuggestionByIndexProvider, type SuggestionConfig, suggestion_d_exports as SuggestionPrimitive, Suggestions, type TextMessagePart, type TextMessagePartComponent, type TextMessagePartProps, TextMessagePartProvider, type ThreadAssistantMessage, type ThreadAssistantMessagePart, type ThreadComposerRuntime, type ThreadHistoryAdapter, ThreadListItemByIndexProvider, threadListItem_d_exports as ThreadListItemPrimitive, type ThreadListItemRuntime, ThreadListItemRuntimeProvider, type ThreadListItemState, threadList_d_exports as ThreadListPrimitive, type ThreadListRuntime, type ThreadMessage, type ThreadMessageLike, thread_d_exports as ThreadPrimitive, type ThreadRuntime, type ThreadState, type ThreadSystemMessage, type ThreadUserMessage, type ThreadUserMessagePart, type ThreadsState, type Tool, type ToolApprovalOption, type ToolApprovalOptionKind, type ToolApprovalResponse, type ToolArgsStatus, type ToolCallMessagePart, type ToolCallMessagePartComponent, type ToolCallMessagePartProps, type ToolCallText, type ToolCallTiming, type ToolDefinition, type ToolModelContentPart, type Toolkit, type ToolkitDefinition, type ToolkitDefinitionEntry, Tools, type Unstable_AudioMessagePart, type Unstable_AudioMessagePartComponent, type Unstable_AudioMessagePartProps, type Unstable_InferInteractableState, type Unstable_InteractableConfig, type Unstable_InteractableDefinition, type Unstable_InteractablePersistedState, type Unstable_InteractablePersistenceAdapter, type Unstable_InteractablePersistenceStatus, type Unstable_InteractableRegistration, type Unstable_InteractableSnapshotEntry, type Unstable_InteractableStateSchema, type Unstable_InteractableToolConfig, type Unstable_InteractableToolRenderProps, type Unstable_InteractableVersion, type Unstable_InteractableVersionInfo, type Unstable_InteractablesClientSchema, type Unstable_InteractablesConfig, type Unstable_InteractablesMethods, type Unstable_InteractablesState, type Unsubscribe, type VoiceSessionControls, type VoiceSessionHelpers, createVoiceSession, defineMcpToolkit, defineToolkit, externalTool, fromThreadMessageLike, generateId, groupPartByType, hitl, hitlTool, humanTool, makeAssistantDataUI, makeAssistantTool, makeAssistantToolUI, mergeModelContexts, providerTool, stubTool, tool, unstable_Interactables, unstable_formatInteractableSnapshot, unstable_getInteractableSnapshots, unstable_getInteractableVersions, unstable_interactableTool, unstable_useInteractable, unstable_useInteractableState, unstable_useInteractableVersions, unstable_useThreadMessageIds, useAssistantContext, useAssistantDataUI, useAssistantInstructions, useAssistantInteractable, useAssistantTool, useAssistantToolUI, useAui, useAuiEvent, useAuiState, useAuiToolOverrides, useInlineRender, useInteractableState, useLocalRuntime, useRemoteThreadListRuntime, useRuntimeAdapters, useToolArgsStatus, useVoiceControls, useVoiceState, useVoiceVolume };
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@ import { useLocalRuntime } from "./runtimes/useLocalRuntime.js";
3
3
  import { useRemoteThreadListRuntime } from "./runtimes/useRemoteThreadListRuntime.js";
4
4
  import { thread_exports } from "./primitives/thread.js";
5
5
  import { composer_exports } from "./primitives/composer.js";
6
+ import { queueItem_exports } from "./primitives/queueItem.js";
6
7
  import { message_exports } from "./primitives/message.js";
7
8
  import { threadList_exports } from "./primitives/threadList.js";
8
9
  import { actionBar_exports } from "./primitives/actionBar.js";
@@ -16,4 +17,4 @@ import { CompositeAttachmentAdapter, ExportedMessageRepository, InMemoryThreadLi
16
17
  import { AuiConfig, AuiIf, AuiProvider, useAui, useAuiEvent, useAuiState } from "@assistant-ui/store";
17
18
  import { ChainOfThoughtByIndicesProvider, ChainOfThoughtPartByIndexProvider, ComposerAttachmentByIndexProvider, DataRenderers, Interactables, MessageAttachmentByIndexProvider, MessageByIndexProvider, PartByIndexProvider, RuntimeAdapterProvider, SuggestionByIndexProvider, TextMessagePartProvider, ThreadListItemByIndexProvider, ThreadListItemRuntimeProvider, Tools, defineMcpToolkit, defineToolkit, externalTool, groupPartByType, hitl, hitlTool, humanTool, makeAssistantDataUI, makeAssistantTool, makeAssistantToolUI, providerTool, stubTool, unstable_Interactables, unstable_interactableTool, unstable_useInteractable, unstable_useInteractableState, unstable_useInteractableVersions, unstable_useThreadMessageIds, useAssistantContext, useAssistantDataUI, useAssistantInstructions, useAssistantInteractable, useAssistantTool, useAssistantToolUI, useAuiToolOverrides, useInlineRender, useInteractableState, useRuntimeAdapters, useToolArgsStatus, useVoiceControls, useVoiceState, useVoiceVolume } from "@assistant-ui/core/react";
18
19
  import { ChainOfThoughtClient, ModelContext as ModelContextClient, Suggestions } from "@assistant-ui/core/store";
19
- export { actionBar_exports as ActionBarPrimitive, AssistantRuntimeProvider, attachment_exports as AttachmentPrimitive, AuiConfig, AuiIf, AuiProvider, branchPicker_exports as BranchPickerPrimitive, ChainOfThoughtByIndicesProvider, ChainOfThoughtClient, ChainOfThoughtPartByIndexProvider, chainOfThought_exports as ChainOfThoughtPrimitive, ComposerAttachmentByIndexProvider, composer_exports as ComposerPrimitive, CompositeAttachmentAdapter, DataRenderers, error_exports as ErrorPrimitive, ExportedMessageRepository, InMemoryThreadListAdapter, Interactables, MessageAttachmentByIndexProvider, MessageByIndexProvider, message_exports as MessagePrimitive, ModelContextClient, ModelContextRegistry, PartByIndexProvider, RuntimeAdapterProvider, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, SuggestionByIndexProvider, suggestion_exports as SuggestionPrimitive, Suggestions, TextMessagePartProvider, ThreadListItemByIndexProvider, threadListItem_exports as ThreadListItemPrimitive, ThreadListItemRuntimeProvider, threadList_exports as ThreadListPrimitive, thread_exports as ThreadPrimitive, Tools, createVoiceSession, defineMcpToolkit, defineToolkit, externalTool, fromThreadMessageLike, generateId, groupPartByType, hitl, hitlTool, humanTool, makeAssistantDataUI, makeAssistantTool, makeAssistantToolUI, mergeModelContexts, providerTool, stubTool, tool, unstable_Interactables, unstable_formatInteractableSnapshot, unstable_getInteractableSnapshots, unstable_getInteractableVersions, unstable_interactableTool, unstable_useInteractable, unstable_useInteractableState, unstable_useInteractableVersions, unstable_useThreadMessageIds, useAssistantContext, useAssistantDataUI, useAssistantInstructions, useAssistantInteractable, useAssistantTool, useAssistantToolUI, useAui, useAuiEvent, useAuiState, useAuiToolOverrides, useInlineRender, useInteractableState, useLocalRuntime, useRemoteThreadListRuntime, useRuntimeAdapters, useToolArgsStatus, useVoiceControls, useVoiceState, useVoiceVolume };
20
+ export { actionBar_exports as ActionBarPrimitive, AssistantRuntimeProvider, attachment_exports as AttachmentPrimitive, AuiConfig, AuiIf, AuiProvider, branchPicker_exports as BranchPickerPrimitive, ChainOfThoughtByIndicesProvider, ChainOfThoughtClient, ChainOfThoughtPartByIndexProvider, chainOfThought_exports as ChainOfThoughtPrimitive, ComposerAttachmentByIndexProvider, composer_exports as ComposerPrimitive, CompositeAttachmentAdapter, DataRenderers, error_exports as ErrorPrimitive, ExportedMessageRepository, InMemoryThreadListAdapter, Interactables, MessageAttachmentByIndexProvider, MessageByIndexProvider, message_exports as MessagePrimitive, ModelContextClient, ModelContextRegistry, PartByIndexProvider, queueItem_exports as QueueItemPrimitive, RuntimeAdapterProvider, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, SuggestionByIndexProvider, suggestion_exports as SuggestionPrimitive, Suggestions, TextMessagePartProvider, ThreadListItemByIndexProvider, threadListItem_exports as ThreadListItemPrimitive, ThreadListItemRuntimeProvider, threadList_exports as ThreadListPrimitive, thread_exports as ThreadPrimitive, Tools, createVoiceSession, defineMcpToolkit, defineToolkit, externalTool, fromThreadMessageLike, generateId, groupPartByType, hitl, hitlTool, humanTool, makeAssistantDataUI, makeAssistantTool, makeAssistantToolUI, mergeModelContexts, providerTool, stubTool, tool, unstable_Interactables, unstable_formatInteractableSnapshot, unstable_getInteractableSnapshots, unstable_getInteractableVersions, unstable_interactableTool, unstable_useInteractable, unstable_useInteractableState, unstable_useInteractableVersions, unstable_useThreadMessageIds, useAssistantContext, useAssistantDataUI, useAssistantInstructions, useAssistantInteractable, useAssistantTool, useAssistantToolUI, useAui, useAuiEvent, useAuiState, useAuiToolOverrides, useInlineRender, useInteractableState, useLocalRuntime, useRemoteThreadListRuntime, useRuntimeAdapters, useToolArgsStatus, useVoiceControls, useVoiceState, useVoiceVolume };
@@ -49,6 +49,7 @@ const ActionBarCopy = (t0) => {
49
49
  t4 = /* @__PURE__ */ jsx(Pressable, {
50
50
  onPress: copy,
51
51
  disabled: t2,
52
+ accessibilityRole: "button",
52
53
  ...pressableProps,
53
54
  children: t3
54
55
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarCopy.js","names":["ReactNode","Pressable","PressableProps","useActionBarCopy","UseActionBarCopyOptions","ActionBarCopyProps","Omit","children","props","isCopied","ActionBarCopy","t0","$","_c","copiedDuration","copyToClipboard","disabledProp","pressableProps","disabled","t1","copy","t2","t3","t4"],"sources":["../../../src/primitives/actionBar/ActionBarCopy.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport {\n useActionBarCopy,\n type UseActionBarCopyOptions,\n} from \"@assistant-ui/core/react\";\n\nexport type ActionBarCopyProps = Omit<PressableProps, \"onPress\" | \"children\"> &\n UseActionBarCopyOptions & {\n children: ReactNode | ((props: { isCopied: boolean }) => ReactNode);\n };\n\nexport const ActionBarCopy = ({\n children,\n disabled: disabledProp,\n copiedDuration,\n copyToClipboard,\n ...pressableProps\n}: ActionBarCopyProps) => {\n const { copy, disabled, isCopied } = useActionBarCopy({\n copiedDuration,\n copyToClipboard,\n });\n\n return (\n <Pressable\n onPress={copy}\n disabled={disabledProp ?? disabled}\n {...pressableProps}\n >\n {typeof children === \"function\" ? children({ isCopied }) : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAYA,MAAaU,iBAAgBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAN;CAAA,IAAAO;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAL,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAJ,UAAAW,UAAAF,cAAAF,gBAAAC,oBAAAE,kBAAAN;EAMTC,EAAA,KAAAD;EAAAC,EAAA,KAAAL;EAAAK,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,KAAAK;CAAA,OAAA;EAAAV,WAAAK,EAAA;EAAAE,iBAAAF,EAAA;EAAAG,kBAAAH,EAAA;EAAAI,eAAAJ,EAAA;EAAAK,iBAAAL,EAAA;CAAA;CAAA,IAAAO;CAAA,IAAAP,EAAA,OAAAE,kBAAAF,EAAA,OAAAG,iBAAA;EACmCI,KAAA;GAAAL;GAAAC;EAGtD;EAACH,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAHD,MAAA,EAAAQ,MAAAF,UAAAT,aAAqCN,iBAAiBgB,EAGrD;CAKa,MAAAE,KAAAL,gBAAAE;CAAwB,IAAAI;CAAA,IAAAV,EAAA,OAAAL,YAAAK,EAAA,QAAAH,UAAA;EAGjCa,KAAA,OAAOf,aAAa,aAAaA,SAAS,EAAAE,SAAW,CAAY,IAAjEF;EAAkEK,EAAA,KAAAL;EAAAK,EAAA,MAAAH;EAAAG,EAAA,MAAAU;CAAA,OAAAA,KAAAV,EAAA;CAAA,IAAAW;CAAA,IAAAX,EAAA,QAAAQ,QAAAR,EAAA,QAAAK,kBAAAL,EAAA,QAAAS,MAAAT,EAAA,QAAAU,IAAA;EALrEC,KAAA,oBAAC,WAAD;GACWH,SAAAA;GACC,UAAAC;GAAwB,GAC9BJ;GAEHK,UAAAA;EALO,CAAA;EAMEV,EAAA,MAAAQ;EAAAR,EAAA,MAAAK;EAAAL,EAAA,MAAAS;EAAAT,EAAA,MAAAU;EAAAV,EAAA,MAAAW;CAAA,OAAAA,KAAAX,EAAA;CAAA,OANZW;AAMY"}
1
+ {"version":3,"file":"ActionBarCopy.js","names":["ReactNode","Pressable","PressableProps","useActionBarCopy","UseActionBarCopyOptions","ActionBarCopyProps","Omit","children","props","isCopied","ActionBarCopy","t0","$","_c","copiedDuration","copyToClipboard","disabledProp","pressableProps","disabled","t1","copy","t2","t3","t4"],"sources":["../../../src/primitives/actionBar/ActionBarCopy.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport {\n useActionBarCopy,\n type UseActionBarCopyOptions,\n} from \"@assistant-ui/core/react\";\n\nexport type ActionBarCopyProps = Omit<PressableProps, \"onPress\" | \"children\"> &\n UseActionBarCopyOptions & {\n children: ReactNode | ((props: { isCopied: boolean }) => ReactNode);\n };\n\nexport const ActionBarCopy = ({\n children,\n disabled: disabledProp,\n copiedDuration,\n copyToClipboard,\n ...pressableProps\n}: ActionBarCopyProps) => {\n const { copy, disabled, isCopied } = useActionBarCopy({\n copiedDuration,\n copyToClipboard,\n });\n\n return (\n <Pressable\n onPress={copy}\n disabled={disabledProp ?? disabled}\n accessibilityRole=\"button\"\n {...pressableProps}\n >\n {typeof children === \"function\" ? children({ isCopied }) : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAYA,MAAaU,iBAAgBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAN;CAAA,IAAAO;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAL,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAJ,UAAAW,UAAAF,cAAAF,gBAAAC,oBAAAE,kBAAAN;EAMTC,EAAA,KAAAD;EAAAC,EAAA,KAAAL;EAAAK,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,KAAAK;CAAA,OAAA;EAAAV,WAAAK,EAAA;EAAAE,iBAAAF,EAAA;EAAAG,kBAAAH,EAAA;EAAAI,eAAAJ,EAAA;EAAAK,iBAAAL,EAAA;CAAA;CAAA,IAAAO;CAAA,IAAAP,EAAA,OAAAE,kBAAAF,EAAA,OAAAG,iBAAA;EACmCI,KAAA;GAAAL;GAAAC;EAGtD;EAACH,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAHD,MAAA,EAAAQ,MAAAF,UAAAT,aAAqCN,iBAAiBgB,EAGrD;CAKa,MAAAE,KAAAL,gBAAAE;CAAwB,IAAAI;CAAA,IAAAV,EAAA,OAAAL,YAAAK,EAAA,QAAAH,UAAA;EAIjCa,KAAA,OAAOf,aAAa,aAAaA,SAAS,EAAAE,SAAW,CAAY,IAAjEF;EAAkEK,EAAA,KAAAL;EAAAK,EAAA,MAAAH;EAAAG,EAAA,MAAAU;CAAA,OAAAA,KAAAV,EAAA;CAAA,IAAAW;CAAA,IAAAX,EAAA,QAAAQ,QAAAR,EAAA,QAAAK,kBAAAL,EAAA,QAAAS,MAAAT,EAAA,QAAAU,IAAA;EANrEC,KAAA,oBAAC,WAAD;GACWH,SAAAA;GACC,UAAAC;GACQ,mBAAA;GAAQ,GACtBJ;GAEHK,UAAAA;EANO,CAAA;EAOEV,EAAA,MAAAQ;EAAAR,EAAA,MAAAK;EAAAL,EAAA,MAAAS;EAAAT,EAAA,MAAAU;EAAAV,EAAA,MAAAW;CAAA,OAAAA,KAAAX,EAAA;CAAA,OAPZW;AAOY"}
@@ -1,8 +1,7 @@
1
1
  import { PressableProps } from "react-native";
2
- import { ReactNode } from "react";
3
2
  //#region src/primitives/actionBar/ActionBarEdit.d.ts
4
- type ActionBarEditProps = Omit<PressableProps, "onPress"> & {
5
- children: ReactNode;
3
+ type ActionBarEditProps = Omit<PressableProps, "onPress" | "children"> & {
4
+ children: PressableProps["children"];
6
5
  };
7
6
  declare const ActionBarEdit: ({ children, disabled: disabledProp, ...pressableProps }: ActionBarEditProps) => import("react").JSX.Element;
8
7
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarEdit.d.ts","names":[],"sources":["../../../src/primitives/actionBar/ActionBarEdit.tsx"],"mappings":";;;KAIY,qBAAqB,KAAK;EACpC,UAAU;;cAGC,kBAAiB,UAAA,UAAA,iBAAA,kBAI3B,uCAAkB,IAAA"}
1
+ {"version":3,"file":"ActionBarEdit.d.ts","names":[],"sources":["../../../src/primitives/actionBar/ActionBarEdit.tsx"],"mappings":";;KAGY,qBAAqB,KAC/B;EAGA,UAAU;;cAGC,kBAAiB,UAAA,UAAA,iBAAA,kBAI3B,uCAAkB,IAAA"}
@@ -26,6 +26,7 @@ const ActionBarEdit = (t0) => {
26
26
  t2 = /* @__PURE__ */ jsx(Pressable, {
27
27
  onPress: edit,
28
28
  disabled: t1,
29
+ accessibilityRole: "button",
29
30
  ...pressableProps,
30
31
  children
31
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarEdit.js","names":["ReactNode","Pressable","PressableProps","useActionBarEdit","ActionBarEditProps","Omit","children","ActionBarEdit","t0","$","_c","disabledProp","pressableProps","disabled","edit","t1","t2"],"sources":["../../../src/primitives/actionBar/ActionBarEdit.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarEdit } from \"@assistant-ui/core/react\";\n\nexport type ActionBarEditProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const ActionBarEdit = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ActionBarEditProps) => {\n const { edit, disabled } = useActionBarEdit();\n\n return (\n <Pressable\n onPress={edit}\n disabled={disabledProp ?? disabled}\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAQA,MAAaO,iBAAgBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAO,UAAAF,iBAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CACnB,MAAA,EAAAK,MAAAD,aAA2BV,iBAAiB;CAK9B,MAAAY,KAAAJ,gBAAAE;CAAwB,IAAAG;CAAA,IAAAP,EAAA,OAAAH,YAAAG,EAAA,OAAAK,QAAAL,EAAA,OAAAG,kBAAAH,EAAA,OAAAM,IAAA;EAFpCC,KAAA,oBAAC,WAAD;GACWF,SAAAA;GACC,UAAAC;GAAwB,GAC9BH;GAEHN;EALO,CAAA;EAMEG,EAAA,KAAAH;EAAAG,EAAA,KAAAK;EAAAL,EAAA,KAAAG;EAAAH,EAAA,KAAAM;EAAAN,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OANZO;AAMY"}
1
+ {"version":3,"file":"ActionBarEdit.js","names":["Pressable","PressableProps","useActionBarEdit","ActionBarEditProps","Omit","children","ActionBarEdit","t0","$","_c","disabledProp","pressableProps","disabled","edit","t1","t2"],"sources":["../../../src/primitives/actionBar/ActionBarEdit.tsx"],"sourcesContent":["import { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarEdit } from \"@assistant-ui/core/react\";\n\nexport type ActionBarEditProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children: PressableProps[\"children\"];\n};\n\nexport const ActionBarEdit = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ActionBarEditProps) => {\n const { edit, disabled } = useActionBarEdit();\n\n return (\n <Pressable\n onPress={edit}\n disabled={disabledProp ?? disabled}\n accessibilityRole=\"button\"\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAUA,MAAaM,iBAAgBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAO,UAAAF,iBAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CACnB,MAAA,EAAAK,MAAAD,aAA2BV,iBAAiB;CAK9B,MAAAY,KAAAJ,gBAAAE;CAAwB,IAAAG;CAAA,IAAAP,EAAA,OAAAH,YAAAG,EAAA,OAAAK,QAAAL,EAAA,OAAAG,kBAAAH,EAAA,OAAAM,IAAA;EAFpCC,KAAA,oBAAC,WAAD;GACWF,SAAAA;GACC,UAAAC;GACQ,mBAAA;GAAQ,GACtBH;GAEHN;EANO,CAAA;EAOEG,EAAA,KAAAH;EAAAG,EAAA,KAAAK;EAAAL,EAAA,KAAAG;EAAAH,EAAA,KAAAM;EAAAN,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OAPZO;AAOY"}
@@ -28,6 +28,7 @@ const ActionBarFeedbackNegative = (t0) => {
28
28
  if ($[6] !== pressableProps || $[7] !== submit || $[8] !== t1) {
29
29
  t2 = /* @__PURE__ */ jsx(Pressable, {
30
30
  onPress: submit,
31
+ accessibilityRole: "button",
31
32
  ...pressableProps,
32
33
  children: t1
33
34
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarFeedbackNegative.js","names":["ReactNode","Pressable","PressableProps","useActionBarFeedbackNegative","ActionBarFeedbackNegativeProps","Omit","children","props","isSubmitted","ActionBarFeedbackNegative","t0","$","_c","pressableProps","submit","t1","t2"],"sources":["../../../src/primitives/actionBar/ActionBarFeedbackNegative.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarFeedbackNegative } from \"@assistant-ui/core/react\";\n\nexport type ActionBarFeedbackNegativeProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children: ReactNode | ((props: { isSubmitted: boolean }) => ReactNode);\n};\n\nexport const ActionBarFeedbackNegative = ({\n children,\n ...pressableProps\n}: ActionBarFeedbackNegativeProps) => {\n const { submit, isSubmitted } = useActionBarFeedbackNegative();\n\n return (\n <Pressable onPress={submit} {...pressableProps}>\n {typeof children === \"function\" ? children({ isSubmitted }) : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAWA,MAAaS,6BAA4BC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAN;CAAA,IAAAO;CAAA,IAAAF,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAJ,aAAAO,kBAAAH;EAGTC,EAAA,KAAAD;EAAAC,EAAA,KAAAL;EAAAK,EAAA,KAAAE;CAAA,OAAA;EAAAP,WAAAK,EAAA;EAAAE,iBAAAF,EAAA;CAAA;CAC/B,MAAA,EAAAG,QAAAN,gBAAgCL,6BAA6B;CAAE,IAAAY;CAAA,IAAAJ,EAAA,OAAAL,YAAAK,EAAA,OAAAH,aAAA;EAI1DO,KAAA,OAAOT,aAAa,aAAaA,SAAS,EAAAE,YAAc,CAAY,IAApEF;EAAqEK,EAAA,KAAAL;EAAAK,EAAA,KAAAH;EAAAG,EAAA,KAAAI;CAAA,OAAAA,KAAAJ,EAAA;CAAA,IAAAK;CAAA,IAAAL,EAAA,OAAAE,kBAAAF,EAAA,OAAAG,UAAAH,EAAA,OAAAI,IAAA;EADxEC,KAAA,oBAAC,WAAD;GAAoBF,SAAAA;GAAM,GAAMD;GAC7BE,UAAAA;EADO,CAAA;EAEEJ,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,OAFZK;AAEY"}
1
+ {"version":3,"file":"ActionBarFeedbackNegative.js","names":["ReactNode","Pressable","PressableProps","useActionBarFeedbackNegative","ActionBarFeedbackNegativeProps","Omit","children","props","isSubmitted","ActionBarFeedbackNegative","t0","$","_c","pressableProps","submit","t1","t2"],"sources":["../../../src/primitives/actionBar/ActionBarFeedbackNegative.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarFeedbackNegative } from \"@assistant-ui/core/react\";\n\nexport type ActionBarFeedbackNegativeProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children: ReactNode | ((props: { isSubmitted: boolean }) => ReactNode);\n};\n\nexport const ActionBarFeedbackNegative = ({\n children,\n ...pressableProps\n}: ActionBarFeedbackNegativeProps) => {\n const { submit, isSubmitted } = useActionBarFeedbackNegative();\n\n return (\n <Pressable onPress={submit} accessibilityRole=\"button\" {...pressableProps}>\n {typeof children === \"function\" ? children({ isSubmitted }) : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAWA,MAAaS,6BAA4BC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAN;CAAA,IAAAO;CAAA,IAAAF,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAJ,aAAAO,kBAAAH;EAGTC,EAAA,KAAAD;EAAAC,EAAA,KAAAL;EAAAK,EAAA,KAAAE;CAAA,OAAA;EAAAP,WAAAK,EAAA;EAAAE,iBAAAF,EAAA;CAAA;CAC/B,MAAA,EAAAG,QAAAN,gBAAgCL,6BAA6B;CAAE,IAAAY;CAAA,IAAAJ,EAAA,OAAAL,YAAAK,EAAA,OAAAH,aAAA;EAI1DO,KAAA,OAAOT,aAAa,aAAaA,SAAS,EAAAE,YAAc,CAAY,IAApEF;EAAqEK,EAAA,KAAAL;EAAAK,EAAA,KAAAH;EAAAG,EAAA,KAAAI;CAAA,OAAAA,KAAAJ,EAAA;CAAA,IAAAK;CAAA,IAAAL,EAAA,OAAAE,kBAAAF,EAAA,OAAAG,UAAAH,EAAA,OAAAI,IAAA;EADxEC,KAAA,oBAAC,WAAD;GAAoBF,SAAAA;GAA0B,mBAAA;GAAQ,GAAKD;GACxDE,UAAAA;EADO,CAAA;EAEEJ,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,OAFZK;AAEY"}
@@ -28,6 +28,7 @@ const ActionBarFeedbackPositive = (t0) => {
28
28
  if ($[6] !== pressableProps || $[7] !== submit || $[8] !== t1) {
29
29
  t2 = /* @__PURE__ */ jsx(Pressable, {
30
30
  onPress: submit,
31
+ accessibilityRole: "button",
31
32
  ...pressableProps,
32
33
  children: t1
33
34
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarFeedbackPositive.js","names":["ReactNode","Pressable","PressableProps","useActionBarFeedbackPositive","ActionBarFeedbackPositiveProps","Omit","children","props","isSubmitted","ActionBarFeedbackPositive","t0","$","_c","pressableProps","submit","t1","t2"],"sources":["../../../src/primitives/actionBar/ActionBarFeedbackPositive.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarFeedbackPositive } from \"@assistant-ui/core/react\";\n\nexport type ActionBarFeedbackPositiveProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children: ReactNode | ((props: { isSubmitted: boolean }) => ReactNode);\n};\n\nexport const ActionBarFeedbackPositive = ({\n children,\n ...pressableProps\n}: ActionBarFeedbackPositiveProps) => {\n const { submit, isSubmitted } = useActionBarFeedbackPositive();\n\n return (\n <Pressable onPress={submit} {...pressableProps}>\n {typeof children === \"function\" ? children({ isSubmitted }) : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAWA,MAAaS,6BAA4BC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAN;CAAA,IAAAO;CAAA,IAAAF,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAJ,aAAAO,kBAAAH;EAGTC,EAAA,KAAAD;EAAAC,EAAA,KAAAL;EAAAK,EAAA,KAAAE;CAAA,OAAA;EAAAP,WAAAK,EAAA;EAAAE,iBAAAF,EAAA;CAAA;CAC/B,MAAA,EAAAG,QAAAN,gBAAgCL,6BAA6B;CAAE,IAAAY;CAAA,IAAAJ,EAAA,OAAAL,YAAAK,EAAA,OAAAH,aAAA;EAI1DO,KAAA,OAAOT,aAAa,aAAaA,SAAS,EAAAE,YAAc,CAAY,IAApEF;EAAqEK,EAAA,KAAAL;EAAAK,EAAA,KAAAH;EAAAG,EAAA,KAAAI;CAAA,OAAAA,KAAAJ,EAAA;CAAA,IAAAK;CAAA,IAAAL,EAAA,OAAAE,kBAAAF,EAAA,OAAAG,UAAAH,EAAA,OAAAI,IAAA;EADxEC,KAAA,oBAAC,WAAD;GAAoBF,SAAAA;GAAM,GAAMD;GAC7BE,UAAAA;EADO,CAAA;EAEEJ,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,OAFZK;AAEY"}
1
+ {"version":3,"file":"ActionBarFeedbackPositive.js","names":["ReactNode","Pressable","PressableProps","useActionBarFeedbackPositive","ActionBarFeedbackPositiveProps","Omit","children","props","isSubmitted","ActionBarFeedbackPositive","t0","$","_c","pressableProps","submit","t1","t2"],"sources":["../../../src/primitives/actionBar/ActionBarFeedbackPositive.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarFeedbackPositive } from \"@assistant-ui/core/react\";\n\nexport type ActionBarFeedbackPositiveProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children: ReactNode | ((props: { isSubmitted: boolean }) => ReactNode);\n};\n\nexport const ActionBarFeedbackPositive = ({\n children,\n ...pressableProps\n}: ActionBarFeedbackPositiveProps) => {\n const { submit, isSubmitted } = useActionBarFeedbackPositive();\n\n return (\n <Pressable onPress={submit} accessibilityRole=\"button\" {...pressableProps}>\n {typeof children === \"function\" ? children({ isSubmitted }) : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAWA,MAAaS,6BAA4BC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAN;CAAA,IAAAO;CAAA,IAAAF,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAJ,aAAAO,kBAAAH;EAGTC,EAAA,KAAAD;EAAAC,EAAA,KAAAL;EAAAK,EAAA,KAAAE;CAAA,OAAA;EAAAP,WAAAK,EAAA;EAAAE,iBAAAF,EAAA;CAAA;CAC/B,MAAA,EAAAG,QAAAN,gBAAgCL,6BAA6B;CAAE,IAAAY;CAAA,IAAAJ,EAAA,OAAAL,YAAAK,EAAA,OAAAH,aAAA;EAI1DO,KAAA,OAAOT,aAAa,aAAaA,SAAS,EAAAE,YAAc,CAAY,IAApEF;EAAqEK,EAAA,KAAAL;EAAAK,EAAA,KAAAH;EAAAG,EAAA,KAAAI;CAAA,OAAAA,KAAAJ,EAAA;CAAA,IAAAK;CAAA,IAAAL,EAAA,OAAAE,kBAAAF,EAAA,OAAAG,UAAAH,EAAA,OAAAI,IAAA;EADxEC,KAAA,oBAAC,WAAD;GAAoBF,SAAAA;GAA0B,mBAAA;GAAQ,GAAKD;GACxDE,UAAAA;EADO,CAAA;EAEEJ,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,OAFZK;AAEY"}
@@ -1,8 +1,7 @@
1
1
  import { PressableProps } from "react-native";
2
- import { ReactNode } from "react";
3
2
  //#region src/primitives/actionBar/ActionBarReload.d.ts
4
- type ActionBarReloadProps = Omit<PressableProps, "onPress"> & {
5
- children: ReactNode;
3
+ type ActionBarReloadProps = Omit<PressableProps, "onPress" | "children"> & {
4
+ children: PressableProps["children"];
6
5
  };
7
6
  declare const ActionBarReload: ({ children, disabled: disabledProp, ...pressableProps }: ActionBarReloadProps) => import("react").JSX.Element;
8
7
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarReload.d.ts","names":[],"sources":["../../../src/primitives/actionBar/ActionBarReload.tsx"],"mappings":";;;KAIY,uBAAuB,KAAK;EACtC,UAAU;;cAGC,oBAAmB,UAAA,UAAA,iBAAA,kBAI7B,yCAAoB,IAAA"}
1
+ {"version":3,"file":"ActionBarReload.d.ts","names":[],"sources":["../../../src/primitives/actionBar/ActionBarReload.tsx"],"mappings":";;KAGY,uBAAuB,KACjC;EAGA,UAAU;;cAGC,oBAAmB,UAAA,UAAA,iBAAA,kBAI7B,yCAAoB,IAAA"}
@@ -26,6 +26,7 @@ const ActionBarReload = (t0) => {
26
26
  t2 = /* @__PURE__ */ jsx(Pressable, {
27
27
  onPress: reload,
28
28
  disabled: t1,
29
+ accessibilityRole: "button",
29
30
  ...pressableProps,
30
31
  children
31
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarReload.js","names":["ReactNode","Pressable","PressableProps","useActionBarReload","ActionBarReloadProps","Omit","children","ActionBarReload","t0","$","_c","disabledProp","pressableProps","disabled","reload","t1","t2"],"sources":["../../../src/primitives/actionBar/ActionBarReload.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarReload } from \"@assistant-ui/core/react\";\n\nexport type ActionBarReloadProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const ActionBarReload = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ActionBarReloadProps) => {\n const { reload, disabled } = useActionBarReload();\n\n return (\n <Pressable\n onPress={reload}\n disabled={disabledProp ?? disabled}\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAQA,MAAaO,mBAAkBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAO,UAAAF,iBAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CACrB,MAAA,EAAAK,QAAAD,aAA6BV,mBAAmB;CAKlC,MAAAY,KAAAJ,gBAAAE;CAAwB,IAAAG;CAAA,IAAAP,EAAA,OAAAH,YAAAG,EAAA,OAAAG,kBAAAH,EAAA,OAAAK,UAAAL,EAAA,OAAAM,IAAA;EAFpCC,KAAA,oBAAC,WAAD;GACWF,SAAAA;GACC,UAAAC;GAAwB,GAC9BH;GAEHN;EALO,CAAA;EAMEG,EAAA,KAAAH;EAAAG,EAAA,KAAAG;EAAAH,EAAA,KAAAK;EAAAL,EAAA,KAAAM;EAAAN,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OANZO;AAMY"}
1
+ {"version":3,"file":"ActionBarReload.js","names":["Pressable","PressableProps","useActionBarReload","ActionBarReloadProps","Omit","children","ActionBarReload","t0","$","_c","disabledProp","pressableProps","disabled","reload","t1","t2"],"sources":["../../../src/primitives/actionBar/ActionBarReload.tsx"],"sourcesContent":["import { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarReload } from \"@assistant-ui/core/react\";\n\nexport type ActionBarReloadProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children: PressableProps[\"children\"];\n};\n\nexport const ActionBarReload = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ActionBarReloadProps) => {\n const { reload, disabled } = useActionBarReload();\n\n return (\n <Pressable\n onPress={reload}\n disabled={disabledProp ?? disabled}\n accessibilityRole=\"button\"\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAUA,MAAaM,mBAAkBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAO,UAAAF,iBAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CACrB,MAAA,EAAAK,QAAAD,aAA6BV,mBAAmB;CAKlC,MAAAY,KAAAJ,gBAAAE;CAAwB,IAAAG;CAAA,IAAAP,EAAA,OAAAH,YAAAG,EAAA,OAAAG,kBAAAH,EAAA,OAAAK,UAAAL,EAAA,OAAAM,IAAA;EAFpCC,KAAA,oBAAC,WAAD;GACWF,SAAAA;GACC,UAAAC;GACQ,mBAAA;GAAQ,GACtBH;GAEHN;EANO,CAAA;EAOEG,EAAA,KAAAH;EAAAG,EAAA,KAAAG;EAAAH,EAAA,KAAAK;EAAAL,EAAA,KAAAM;EAAAN,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OAPZO;AAOY"}
@@ -1,8 +1,7 @@
1
1
  import { PressableProps } from "react-native";
2
- import { ReactNode } from "react";
3
2
  //#region src/primitives/attachment/AttachmentRemove.d.ts
4
- type AttachmentRemoveProps = Omit<PressableProps, "onPress"> & {
5
- children: ReactNode;
3
+ type AttachmentRemoveProps = Omit<PressableProps, "onPress" | "children"> & {
4
+ children: PressableProps["children"];
6
5
  };
7
6
  declare const AttachmentRemove: ({ children, ...pressableProps }: AttachmentRemoveProps) => import("react").JSX.Element;
8
7
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentRemove.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentRemove.tsx"],"mappings":";;;KAKY,wBAAwB,KAAK;EACvC,UAAU;;cAGC,qBAAoB,aAAA,kBAG9B,0CAAqB,IAAA"}
1
+ {"version":3,"file":"AttachmentRemove.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentRemove.tsx"],"mappings":";;KAKY,wBAAwB,KAClC;EAGA,UAAU;;cAGC,qBAAoB,aAAA,kBAG9B,0CAAqB,IAAA"}
@@ -31,6 +31,7 @@ const AttachmentRemove = (t0) => {
31
31
  if ($[5] !== children || $[6] !== handleRemove || $[7] !== pressableProps) {
32
32
  t2 = /* @__PURE__ */ jsx(Pressable, {
33
33
  onPress: handleRemove,
34
+ accessibilityRole: "button",
34
35
  ...pressableProps,
35
36
  children
36
37
  });
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentRemove.js","names":["ReactNode","useCallback","Pressable","PressableProps","useAui","AttachmentRemoveProps","Omit","children","AttachmentRemove","t0","$","_c","pressableProps","aui","t1","attachment","remove","handleRemove","t2"],"sources":["../../../src/primitives/attachment/AttachmentRemove.tsx"],"sourcesContent":["import { type ReactNode, useCallback } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\n\nimport { useAui } from \"@assistant-ui/store\";\n\nexport type AttachmentRemoveProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const AttachmentRemove = ({\n children,\n ...pressableProps\n}: AttachmentRemoveProps) => {\n const aui = useAui();\n\n const handleRemove = useCallback(() => {\n aui.attachment.remove();\n }, [aui]);\n\n return (\n <Pressable onPress={handleRemove} {...pressableProps}>\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;;AASA,MAAaQ,oBAAmBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAF,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,aAAAK,kBAAAH;EAGTC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;CAAA,OAAA;EAAAL,WAAAG,EAAA;EAAAE,iBAAAF,EAAA;CAAA;CACtB,MAAAG,MAAYT,OAAO;CAAE,IAAAU;CAAA,IAAAJ,EAAA,OAAAG,IAAAE,YAAA;EAEYD,WAAA;GAC/BD,IAAGE,WAAWC,OAAQ;EAAC;EACxBN,EAAA,KAAAG,IAAAE;EAAAL,EAAA,KAAAI;CAAA,OAAAA,KAAAJ,EAAA;CAFD,MAAAO,eAAqBH;CAEX,IAAAI;CAAA,IAAAR,EAAA,OAAAH,YAAAG,EAAA,OAAAO,gBAAAP,EAAA,OAAAE,gBAAA;EAGRM,KAAA,oBAAC,WAAD;GAAoBD,SAAAA;GAAY,GAAML;GACnCL;EADO,CAAA;EAEEG,EAAA,KAAAH;EAAAG,EAAA,KAAAO;EAAAP,EAAA,KAAAE;EAAAF,EAAA,KAAAQ;CAAA,OAAAA,KAAAR,EAAA;CAAA,OAFZQ;AAEY"}
1
+ {"version":3,"file":"AttachmentRemove.js","names":["useCallback","Pressable","PressableProps","useAui","AttachmentRemoveProps","Omit","children","AttachmentRemove","t0","$","_c","pressableProps","aui","t1","attachment","remove","handleRemove","t2"],"sources":["../../../src/primitives/attachment/AttachmentRemove.tsx"],"sourcesContent":["import { useCallback } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\n\nimport { useAui } from \"@assistant-ui/store\";\n\nexport type AttachmentRemoveProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children: PressableProps[\"children\"];\n};\n\nexport const AttachmentRemove = ({\n children,\n ...pressableProps\n}: AttachmentRemoveProps) => {\n const aui = useAui();\n\n const handleRemove = useCallback(() => {\n aui.attachment.remove();\n }, [aui]);\n\n return (\n <Pressable\n onPress={handleRemove}\n accessibilityRole=\"button\"\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;;AAYA,MAAaO,oBAAmBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAF,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,aAAAK,kBAAAH;EAGTC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;CAAA,OAAA;EAAAL,WAAAG,EAAA;EAAAE,iBAAAF,EAAA;CAAA;CACtB,MAAAG,MAAYT,OAAO;CAAE,IAAAU;CAAA,IAAAJ,EAAA,OAAAG,IAAAE,YAAA;EAEYD,WAAA;GAC/BD,IAAGE,WAAWC,OAAQ;EAAC;EACxBN,EAAA,KAAAG,IAAAE;EAAAL,EAAA,KAAAI;CAAA,OAAAA,KAAAJ,EAAA;CAFD,MAAAO,eAAqBH;CAEX,IAAAI;CAAA,IAAAR,EAAA,OAAAH,YAAAG,EAAA,OAAAO,gBAAAP,EAAA,OAAAE,gBAAA;EAGRM,KAAA,oBAAC,WAAD;GACWD,SAAAA;GACS,mBAAA;GAAQ,GACtBL;GAEHL;EALO,CAAA;EAMEG,EAAA,KAAAH;EAAAG,EAAA,KAAAO;EAAAP,EAAA,KAAAE;EAAAF,EAAA,KAAAQ;CAAA,OAAAA,KAAAR,EAAA;CAAA,OANZQ;AAMY"}
@@ -1,8 +1,7 @@
1
1
  import { PressableProps } from "react-native";
2
- import { ReactNode } from "react";
3
2
  //#region src/primitives/branchPicker/BranchPickerNext.d.ts
4
- type BranchPickerNextProps = Omit<PressableProps, "onPress"> & {
5
- children: ReactNode;
3
+ type BranchPickerNextProps = Omit<PressableProps, "onPress" | "children"> & {
4
+ children: PressableProps["children"];
6
5
  };
7
6
  declare const BranchPickerNext: ({ children, disabled: disabledProp, ...pressableProps }: BranchPickerNextProps) => import("react").JSX.Element;
8
7
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"BranchPickerNext.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerNext.tsx"],"mappings":";;;KAIY,wBAAwB,KAAK;EACvC,UAAU;;cAGC,qBAAoB,UAAA,UAAA,iBAAA,kBAI9B,0CAAqB,IAAA"}
1
+ {"version":3,"file":"BranchPickerNext.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerNext.tsx"],"mappings":";;KAGY,wBAAwB,KAClC;EAGA,UAAU;;cAGC,qBAAoB,UAAA,UAAA,iBAAA,kBAI9B,0CAAqB,IAAA"}
@@ -26,6 +26,7 @@ const BranchPickerNext = (t0) => {
26
26
  t2 = /* @__PURE__ */ jsx(Pressable, {
27
27
  onPress: next,
28
28
  disabled: t1,
29
+ accessibilityRole: "button",
29
30
  ...pressableProps,
30
31
  children
31
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"BranchPickerNext.js","names":["ReactNode","Pressable","PressableProps","useBranchPickerNext","BranchPickerNextProps","Omit","children","BranchPickerNext","t0","$","_c","disabledProp","pressableProps","disabled","next","t1","t2"],"sources":["../../../src/primitives/branchPicker/BranchPickerNext.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useBranchPickerNext } from \"@assistant-ui/core/react\";\n\nexport type BranchPickerNextProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const BranchPickerNext = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: BranchPickerNextProps) => {\n const { next, disabled } = useBranchPickerNext();\n\n return (\n <Pressable\n onPress={next}\n disabled={disabledProp ?? disabled}\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAQA,MAAaO,oBAAmBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAO,UAAAF,iBAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CACtB,MAAA,EAAAK,MAAAD,aAA2BV,oBAAoB;CAKjC,MAAAY,KAAAJ,gBAAAE;CAAwB,IAAAG;CAAA,IAAAP,EAAA,OAAAH,YAAAG,EAAA,OAAAK,QAAAL,EAAA,OAAAG,kBAAAH,EAAA,OAAAM,IAAA;EAFpCC,KAAA,oBAAC,WAAD;GACWF,SAAAA;GACC,UAAAC;GAAwB,GAC9BH;GAEHN;EALO,CAAA;EAMEG,EAAA,KAAAH;EAAAG,EAAA,KAAAK;EAAAL,EAAA,KAAAG;EAAAH,EAAA,KAAAM;EAAAN,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OANZO;AAMY"}
1
+ {"version":3,"file":"BranchPickerNext.js","names":["Pressable","PressableProps","useBranchPickerNext","BranchPickerNextProps","Omit","children","BranchPickerNext","t0","$","_c","disabledProp","pressableProps","disabled","next","t1","t2"],"sources":["../../../src/primitives/branchPicker/BranchPickerNext.tsx"],"sourcesContent":["import { Pressable, type PressableProps } from \"react-native\";\nimport { useBranchPickerNext } from \"@assistant-ui/core/react\";\n\nexport type BranchPickerNextProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children: PressableProps[\"children\"];\n};\n\nexport const BranchPickerNext = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: BranchPickerNextProps) => {\n const { next, disabled } = useBranchPickerNext();\n\n return (\n <Pressable\n onPress={next}\n disabled={disabledProp ?? disabled}\n accessibilityRole=\"button\"\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAUA,MAAaM,oBAAmBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAO,UAAAF,iBAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CACtB,MAAA,EAAAK,MAAAD,aAA2BV,oBAAoB;CAKjC,MAAAY,KAAAJ,gBAAAE;CAAwB,IAAAG;CAAA,IAAAP,EAAA,OAAAH,YAAAG,EAAA,OAAAK,QAAAL,EAAA,OAAAG,kBAAAH,EAAA,OAAAM,IAAA;EAFpCC,KAAA,oBAAC,WAAD;GACWF,SAAAA;GACC,UAAAC;GACQ,mBAAA;GAAQ,GACtBH;GAEHN;EANO,CAAA;EAOEG,EAAA,KAAAH;EAAAG,EAAA,KAAAK;EAAAL,EAAA,KAAAG;EAAAH,EAAA,KAAAM;EAAAN,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OAPZO;AAOY"}
@@ -1,8 +1,7 @@
1
1
  import { PressableProps } from "react-native";
2
- import { ReactNode } from "react";
3
2
  //#region src/primitives/branchPicker/BranchPickerPrevious.d.ts
4
- type BranchPickerPreviousProps = Omit<PressableProps, "onPress"> & {
5
- children: ReactNode;
3
+ type BranchPickerPreviousProps = Omit<PressableProps, "onPress" | "children"> & {
4
+ children: PressableProps["children"];
6
5
  };
7
6
  declare const BranchPickerPrevious: ({ children, disabled: disabledProp, ...pressableProps }: BranchPickerPreviousProps) => import("react").JSX.Element;
8
7
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"BranchPickerPrevious.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerPrevious.tsx"],"mappings":";;;KAIY,4BAA4B,KAAK;EAC3C,UAAU;;cAGC,yBAAwB,UAAA,UAAA,iBAAA,kBAIlC,8CAAyB,IAAA"}
1
+ {"version":3,"file":"BranchPickerPrevious.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerPrevious.tsx"],"mappings":";;KAGY,4BAA4B,KACtC;EAGA,UAAU;;cAGC,yBAAwB,UAAA,UAAA,iBAAA,kBAIlC,8CAAyB,IAAA"}
@@ -26,6 +26,7 @@ const BranchPickerPrevious = (t0) => {
26
26
  t2 = /* @__PURE__ */ jsx(Pressable, {
27
27
  onPress: previous,
28
28
  disabled: t1,
29
+ accessibilityRole: "button",
29
30
  ...pressableProps,
30
31
  children
31
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"BranchPickerPrevious.js","names":["ReactNode","Pressable","PressableProps","useBranchPickerPrevious","BranchPickerPreviousProps","Omit","children","BranchPickerPrevious","t0","$","_c","disabledProp","pressableProps","disabled","previous","t1","t2"],"sources":["../../../src/primitives/branchPicker/BranchPickerPrevious.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useBranchPickerPrevious } from \"@assistant-ui/core/react\";\n\nexport type BranchPickerPreviousProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const BranchPickerPrevious = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: BranchPickerPreviousProps) => {\n const { previous, disabled } = useBranchPickerPrevious();\n\n return (\n <Pressable\n onPress={previous}\n disabled={disabledProp ?? disabled}\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAQA,MAAaO,wBAAuBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAO,UAAAF,iBAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CAC1B,MAAA,EAAAK,UAAAD,aAA+BV,wBAAwB;CAKzC,MAAAY,KAAAJ,gBAAAE;CAAwB,IAAAG;CAAA,IAAAP,EAAA,OAAAH,YAAAG,EAAA,OAAAG,kBAAAH,EAAA,OAAAK,YAAAL,EAAA,OAAAM,IAAA;EAFpCC,KAAA,oBAAC,WAAD;GACWF,SAAAA;GACC,UAAAC;GAAwB,GAC9BH;GAEHN;EALO,CAAA;EAMEG,EAAA,KAAAH;EAAAG,EAAA,KAAAG;EAAAH,EAAA,KAAAK;EAAAL,EAAA,KAAAM;EAAAN,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OANZO;AAMY"}
1
+ {"version":3,"file":"BranchPickerPrevious.js","names":["Pressable","PressableProps","useBranchPickerPrevious","BranchPickerPreviousProps","Omit","children","BranchPickerPrevious","t0","$","_c","disabledProp","pressableProps","disabled","previous","t1","t2"],"sources":["../../../src/primitives/branchPicker/BranchPickerPrevious.tsx"],"sourcesContent":["import { Pressable, type PressableProps } from \"react-native\";\nimport { useBranchPickerPrevious } from \"@assistant-ui/core/react\";\n\nexport type BranchPickerPreviousProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children: PressableProps[\"children\"];\n};\n\nexport const BranchPickerPrevious = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: BranchPickerPreviousProps) => {\n const { previous, disabled } = useBranchPickerPrevious();\n\n return (\n <Pressable\n onPress={previous}\n disabled={disabledProp ?? disabled}\n accessibilityRole=\"button\"\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAUA,MAAaM,wBAAuBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAO,UAAAF,iBAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CAC1B,MAAA,EAAAK,UAAAD,aAA+BV,wBAAwB;CAKzC,MAAAY,KAAAJ,gBAAAE;CAAwB,IAAAG;CAAA,IAAAP,EAAA,OAAAH,YAAAG,EAAA,OAAAG,kBAAAH,EAAA,OAAAK,YAAAL,EAAA,OAAAM,IAAA;EAFpCC,KAAA,oBAAC,WAAD;GACWF,SAAAA;GACC,UAAAC;GACQ,mBAAA;GAAQ,GACtBH;GAEHN;EANO,CAAA;EAOEG,EAAA,KAAAH;EAAAG,EAAA,KAAAG;EAAAH,EAAA,KAAAK;EAAAL,EAAA,KAAAM;EAAAN,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OAPZO;AAOY"}
@@ -1,8 +1,7 @@
1
1
  import { PressableProps } from "react-native";
2
- import { ReactNode } from "react";
3
2
  //#region src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts
4
- type ChainOfThoughtAccordionTriggerProps = Omit<PressableProps, "onPress"> & {
5
- children: ReactNode;
3
+ type ChainOfThoughtAccordionTriggerProps = Omit<PressableProps, "onPress" | "children"> & {
4
+ children: PressableProps["children"];
6
5
  };
7
6
  declare const ChainOfThoughtAccordionTrigger: ({ children, ...pressableProps }: ChainOfThoughtAccordionTriggerProps) => import("react").JSX.Element;
8
7
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"ChainOfThoughtAccordionTrigger.d.ts","names":[],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"mappings":";;;KAIY,sCAAsC,KAChD;EAGA,UAAU;;cAGC,mCAAkC,aAAA,kBAG5C,wDAAmC,IAAA"}
1
+ {"version":3,"file":"ChainOfThoughtAccordionTrigger.d.ts","names":[],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"mappings":";;KAIY,sCAAsC,KAChD;EAGA,UAAU;;cAGC,mCAAkC,aAAA,kBAG5C,wDAAmC,IAAA"}
@@ -33,6 +33,7 @@ const ChainOfThoughtAccordionTrigger = (t0) => {
33
33
  if ($[6] !== children || $[7] !== onPress || $[8] !== pressableProps) {
34
34
  t2 = /* @__PURE__ */ jsx(Pressable, {
35
35
  onPress,
36
+ accessibilityRole: "button",
36
37
  ...pressableProps,
37
38
  children
38
39
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ChainOfThoughtAccordionTrigger.js","names":["useCallback","ReactNode","Pressable","PressableProps","useAuiState","useAui","ChainOfThoughtAccordionTriggerProps","Omit","children","ChainOfThoughtAccordionTrigger","t0","$","_c","pressableProps","aui","collapsed","_temp","t1","chainOfThought","setCollapsed","onPress","t2","s"],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"sourcesContent":["import { useCallback, type ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useAuiState, useAui } from \"@assistant-ui/store\";\n\nexport type ChainOfThoughtAccordionTriggerProps = Omit<\n PressableProps,\n \"onPress\"\n> & {\n children: ReactNode;\n};\n\nexport const ChainOfThoughtAccordionTrigger = ({\n children,\n ...pressableProps\n}: ChainOfThoughtAccordionTriggerProps) => {\n const aui = useAui();\n const collapsed = useAuiState((s) => s.chainOfThought.collapsed);\n\n const onPress = useCallback(() => {\n aui.chainOfThought.setCollapsed(!collapsed);\n }, [aui, collapsed]);\n\n return (\n <Pressable onPress={onPress} {...pressableProps}>\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;;AAWA,MAAaS,kCAAiCC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAF,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,aAAAK,kBAAAH;EAGTC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;CAAA,OAAA;EAAAL,WAAAG,EAAA;EAAAE,iBAAAF,EAAA;CAAA;CACpC,MAAAG,MAAYT,OAAO;CACnB,MAAAU,YAAkBX,YAAYY,KAAiC;CAAE,IAAAC;CAAA,IAAAN,EAAA,OAAAG,IAAAI,kBAAAP,EAAA,OAAAI,WAAA;EAErCE,WAAA;GAC1BH,IAAGI,eAAeC,aAAc,CAACJ,SAAS;EAAC;EAC5CJ,EAAA,KAAAG,IAAAI;EAAAP,EAAA,KAAAI;EAAAJ,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAFD,MAAAS,UAAgBH;CAEK,IAAAI;CAAA,IAAAV,EAAA,OAAAH,YAAAG,EAAA,OAAAS,WAAAT,EAAA,OAAAE,gBAAA;EAGnBQ,KAAA,oBAAC,WAAD;GAAoBD;GAAO,GAAMP;GAC9BL;EADO,CAAA;EAEEG,EAAA,KAAAH;EAAAG,EAAA,KAAAS;EAAAT,EAAA,KAAAE;EAAAF,EAAA,KAAAU;CAAA,OAAAA,KAAAV,EAAA;CAAA,OAFZU;AAEY;AAd8B,SAAAL,MAAAM,GAAA;CAAA,OAKPA,EAACJ,eAAeH;AAAU"}
1
+ {"version":3,"file":"ChainOfThoughtAccordionTrigger.js","names":["useCallback","Pressable","PressableProps","useAuiState","useAui","ChainOfThoughtAccordionTriggerProps","Omit","children","ChainOfThoughtAccordionTrigger","t0","$","_c","pressableProps","aui","collapsed","_temp","t1","chainOfThought","setCollapsed","onPress","t2","s"],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"sourcesContent":["import { useCallback } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useAuiState, useAui } from \"@assistant-ui/store\";\n\nexport type ChainOfThoughtAccordionTriggerProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children: PressableProps[\"children\"];\n};\n\nexport const ChainOfThoughtAccordionTrigger = ({\n children,\n ...pressableProps\n}: ChainOfThoughtAccordionTriggerProps) => {\n const aui = useAui();\n const collapsed = useAuiState((s) => s.chainOfThought.collapsed);\n\n const onPress = useCallback(() => {\n aui.chainOfThought.setCollapsed(!collapsed);\n }, [aui, collapsed]);\n\n return (\n <Pressable onPress={onPress} accessibilityRole=\"button\" {...pressableProps}>\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;;AAWA,MAAaQ,kCAAiCC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAF,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,aAAAK,kBAAAH;EAGTC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;CAAA,OAAA;EAAAL,WAAAG,EAAA;EAAAE,iBAAAF,EAAA;CAAA;CACpC,MAAAG,MAAYT,OAAO;CACnB,MAAAU,YAAkBX,YAAYY,KAAiC;CAAE,IAAAC;CAAA,IAAAN,EAAA,OAAAG,IAAAI,kBAAAP,EAAA,OAAAI,WAAA;EAErCE,WAAA;GAC1BH,IAAGI,eAAeC,aAAc,CAACJ,SAAS;EAAC;EAC5CJ,EAAA,KAAAG,IAAAI;EAAAP,EAAA,KAAAI;EAAAJ,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAFD,MAAAS,UAAgBH;CAEK,IAAAI;CAAA,IAAAV,EAAA,OAAAH,YAAAG,EAAA,OAAAS,WAAAT,EAAA,OAAAE,gBAAA;EAGnBQ,KAAA,oBAAC,WAAD;GAAoBD;GAA2B,mBAAA;GAAQ,GAAKP;GACzDL;EADO,CAAA;EAEEG,EAAA,KAAAH;EAAAG,EAAA,KAAAS;EAAAT,EAAA,KAAAE;EAAAF,EAAA,KAAAU;CAAA,OAAAA,KAAAV,EAAA;CAAA,OAFZU;AAEY;AAd8B,SAAAL,MAAAM,GAAA;CAAA,OAKPA,EAACJ,eAAeH;AAAU"}
@@ -1,8 +1,7 @@
1
1
  import { PressableProps } from "react-native";
2
- import { ReactNode } from "react";
3
2
  //#region src/primitives/composer/ComposerAddAttachment.d.ts
4
- type ComposerAddAttachmentProps = Omit<PressableProps, "onPress"> & {
5
- children: ReactNode;
3
+ type ComposerAddAttachmentProps = Omit<PressableProps, "onPress" | "children"> & {
4
+ children: PressableProps["children"];
6
5
  };
7
6
  /**
8
7
  * A button that triggers the attachment adding flow.
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerAddAttachment.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerAddAttachment.tsx"],"mappings":";;;KAIY,6BAA6B,KAAK;EAC5C,UAAU;;;;;;;;;cAUC,0BAAyB,UAAA,UAAA,iBAAA,kBAInC,+CAA0B,IAAA"}
1
+ {"version":3,"file":"ComposerAddAttachment.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerAddAttachment.tsx"],"mappings":";;KAGY,6BAA6B,KACvC;EAGA,UAAU;;;;;;;;;cAUC,0BAAyB,UAAA,UAAA,iBAAA,kBAInC,+CAA0B,IAAA"}
@@ -32,6 +32,7 @@ const ComposerAddAttachment = (t0) => {
32
32
  if ($[4] !== children || $[5] !== pressableProps || $[6] !== t1) {
33
33
  t2 = /* @__PURE__ */ jsx(Pressable, {
34
34
  disabled: t1,
35
+ accessibilityRole: "button",
35
36
  ...pressableProps,
36
37
  children
37
38
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerAddAttachment.js","names":["ReactNode","Pressable","PressableProps","useComposerAddAttachment","ComposerAddAttachmentProps","Omit","children","ComposerAddAttachment","t0","$","_c","disabledProp","pressableProps","disabled","t1","t2"],"sources":["../../../src/primitives/composer/ComposerAddAttachment.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useComposerAddAttachment } from \"@assistant-ui/core/react\";\n\nexport type ComposerAddAttachmentProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\n/**\n * A button that triggers the attachment adding flow.\n *\n * Note: The actual file picker implementation is platform-specific.\n * This component calls `useComposerAddAttachment()` from `@assistant-ui/core/react`.\n * You must handle the file selection in your own component using the returned `addAttachment` callback.\n */\nexport const ComposerAddAttachment = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ComposerAddAttachmentProps) => {\n const { disabled } = useComposerAddAttachment();\n\n return (\n <Pressable disabled={disabledProp ?? disabled} {...pressableProps}>\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAeA,MAAaO,yBAAwBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAO,UAAAF,iBAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CAC3B,MAAA,EAAAI,aAAqBV,yBAAyB;CAGvB,MAAAW,KAAAH,gBAAAE;CAAwB,IAAAE;CAAA,IAAAN,EAAA,OAAAH,YAAAG,EAAA,OAAAG,kBAAAH,EAAA,OAAAK,IAAA;EAA7CC,KAAA,oBAAC,WAAD;GAAqB,UAAAD;GAAwB,GAAMF;GAChDN;EADO,CAAA;EAEEG,EAAA,KAAAH;EAAAG,EAAA,KAAAG;EAAAH,EAAA,KAAAK;EAAAL,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,OAFZM;AAEY"}
1
+ {"version":3,"file":"ComposerAddAttachment.js","names":["Pressable","PressableProps","useComposerAddAttachment","ComposerAddAttachmentProps","Omit","children","ComposerAddAttachment","t0","$","_c","disabledProp","pressableProps","disabled","t1","t2"],"sources":["../../../src/primitives/composer/ComposerAddAttachment.tsx"],"sourcesContent":["import { Pressable, type PressableProps } from \"react-native\";\nimport { useComposerAddAttachment } from \"@assistant-ui/core/react\";\n\nexport type ComposerAddAttachmentProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children: PressableProps[\"children\"];\n};\n\n/**\n * A button that triggers the attachment adding flow.\n *\n * Note: The actual file picker implementation is platform-specific.\n * This component calls `useComposerAddAttachment()` from `@assistant-ui/core/react`.\n * You must handle the file selection in your own component using the returned `addAttachment` callback.\n */\nexport const ComposerAddAttachment = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ComposerAddAttachmentProps) => {\n const { disabled } = useComposerAddAttachment();\n\n return (\n <Pressable\n disabled={disabledProp ?? disabled}\n accessibilityRole=\"button\"\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAiBA,MAAaM,yBAAwBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAO,UAAAF,iBAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CAC3B,MAAA,EAAAI,aAAqBV,yBAAyB;CAIhC,MAAAW,KAAAH,gBAAAE;CAAwB,IAAAE;CAAA,IAAAN,EAAA,OAAAH,YAAAG,EAAA,OAAAG,kBAAAH,EAAA,OAAAK,IAAA;EADpCC,KAAA,oBAAC,WAAD;GACY,UAAAD;GACQ,mBAAA;GAAQ,GACtBF;GAEHN;EALO,CAAA;EAMEG,EAAA,KAAAH;EAAAG,EAAA,KAAAG;EAAAH,EAAA,KAAAK;EAAAL,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,OANZM;AAMY"}
@@ -1,8 +1,7 @@
1
1
  import { PressableProps } from "react-native";
2
- import { ReactNode } from "react";
3
2
  //#region src/primitives/composer/ComposerCancel.d.ts
4
- type ComposerCancelProps = Omit<PressableProps, "onPress"> & {
5
- children: ReactNode;
3
+ type ComposerCancelProps = Omit<PressableProps, "onPress" | "children"> & {
4
+ children: PressableProps["children"];
6
5
  };
7
6
  declare const ComposerCancel: ({ children, disabled, ...pressableProps }: ComposerCancelProps) => import("react").JSX.Element;
8
7
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerCancel.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerCancel.tsx"],"mappings":";;;KAIY,sBAAsB,KAAK;EACrC,UAAU;;cAGC,mBAAkB,UAAA,aAAA,kBAI5B,wCAAmB,IAAA"}
1
+ {"version":3,"file":"ComposerCancel.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerCancel.tsx"],"mappings":";;KAGY,sBAAsB,KAChC;EAGA,UAAU;;cAGC,mBAAkB,UAAA,aAAA,kBAI5B,wCAAmB,IAAA"}
@@ -26,6 +26,7 @@ const ComposerCancel = (t0) => {
26
26
  t2 = /* @__PURE__ */ jsx(Pressable, {
27
27
  onPress: cancel,
28
28
  disabled: t1,
29
+ accessibilityRole: "button",
29
30
  ...pressableProps,
30
31
  children
31
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerCancel.js","names":["ReactNode","Pressable","PressableProps","useComposerCancel","ComposerCancelProps","Omit","children","ComposerCancel","t0","$","_c","disabled","pressableProps","cancel","hookDisabled","t1","t2"],"sources":["../../../src/primitives/composer/ComposerCancel.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useComposerCancel } from \"@assistant-ui/core/react\";\n\nexport type ComposerCancelProps = Omit<PressableProps, \"onPress\"> & {\n children: ReactNode;\n};\n\nexport const ComposerCancel = ({\n children,\n disabled,\n ...pressableProps\n}: ComposerCancelProps) => {\n const { cancel, disabled: hookDisabled } = useComposerCancel();\n\n return (\n <Pressable\n onPress={cancel}\n disabled={disabled ?? hookDisabled}\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAQA,MAAaO,kBAAiBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAK,aAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,WAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CACpB,MAAA,EAAAI,QAAAF,UAAAG,iBAA2CX,kBAAkB;CAK/C,MAAAY,KAAAJ,YAAAG;CAAwB,IAAAE;CAAA,IAAAP,EAAA,OAAAI,UAAAJ,EAAA,OAAAH,YAAAG,EAAA,OAAAG,kBAAAH,EAAA,OAAAM,IAAA;EAFpCC,KAAA,oBAAC,WAAD;GACWH,SAAAA;GACC,UAAAE;GAAwB,GAC9BH;GAEHN;EALO,CAAA;EAMEG,EAAA,KAAAI;EAAAJ,EAAA,KAAAH;EAAAG,EAAA,KAAAG;EAAAH,EAAA,KAAAM;EAAAN,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OANZO;AAMY"}
1
+ {"version":3,"file":"ComposerCancel.js","names":["Pressable","PressableProps","useComposerCancel","ComposerCancelProps","Omit","children","ComposerCancel","t0","$","_c","disabled","pressableProps","cancel","hookDisabled","t1","t2"],"sources":["../../../src/primitives/composer/ComposerCancel.tsx"],"sourcesContent":["import { Pressable, type PressableProps } from \"react-native\";\nimport { useComposerCancel } from \"@assistant-ui/core/react\";\n\nexport type ComposerCancelProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children: PressableProps[\"children\"];\n};\n\nexport const ComposerCancel = ({\n children,\n disabled,\n ...pressableProps\n}: ComposerCancelProps) => {\n const { cancel, disabled: hookDisabled } = useComposerCancel();\n\n return (\n <Pressable\n onPress={cancel}\n disabled={disabled ?? hookDisabled}\n accessibilityRole=\"button\"\n {...pressableProps}\n >\n {children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAUA,MAAaM,kBAAiBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAF,UAAAK,aAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAN,WAAAG,EAAA;EAAAE,WAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CACpB,MAAA,EAAAI,QAAAF,UAAAG,iBAA2CX,kBAAkB;CAK/C,MAAAY,KAAAJ,YAAAG;CAAwB,IAAAE;CAAA,IAAAP,EAAA,OAAAI,UAAAJ,EAAA,OAAAH,YAAAG,EAAA,OAAAG,kBAAAH,EAAA,OAAAM,IAAA;EAFpCC,KAAA,oBAAC,WAAD;GACWH,SAAAA;GACC,UAAAE;GACQ,mBAAA;GAAQ,GACtBH;GAEHN;EANO,CAAA;EAOEG,EAAA,KAAAI;EAAAJ,EAAA,KAAAH;EAAAG,EAAA,KAAAG;EAAAH,EAAA,KAAAM;EAAAN,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OAPZO;AAOY"}
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerInput.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerInput.tsx"],"mappings":";;KAWY,qBAAqB,KAC/B;;;;;;;EASA;;cAkCW,kBAAiB,YAAA,YAAA,gBAAA,eAAA,UAAA,SAM3B,uCAAkB,IAAA"}
1
+ {"version":3,"file":"ComposerInput.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerInput.tsx"],"mappings":";;KAUY,qBAAqB,KAC/B;;;;;;;EASA;;cAoCW,kBAAiB,YAAA,YAAA,gBAAA,eAAA,UAAA,SAM3B,uCAAkB,IAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerInput.js","names":["useCallback","useEffect","useRef","Platform","TextInput","NativeSyntheticEvent","TextInputKeyPressEventData","TextInputProps","useAui","useAuiState","flushTapSync","ComposerInputProps","Omit","submitMode","getWebTextareaMaxHeight","el","HTMLTextAreaElement","computedMaxHeight","globalThis","getComputedStyle","maxHeight","parsedComputedMaxHeight","Number","parseFloat","isFinite","inlineMaxHeight","style","adjustWebTextareaHeight","ref","React","RefObject","OS","current","rows","overflowX","overflowY","height","scrollHeight","needsScrollbar","nextHeight","Math","min","ComposerInput","t0","$","_c","numberOfLines","onKeyPressProp","props","t1","onKeyPress","undefined","aui","text","_temp","inputRef","t2","value","composer","setText","onChangeText","t3","Symbol","for","t4","t5","e","isDefaultPrevented","nativeEvent","shiftKey","isComposing","keyCode","key","Event","preventDefault","send","t6","t7","s"],"sources":["../../../src/primitives/composer/ComposerInput.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef } from \"react\";\nimport {\n Platform,\n TextInput,\n type NativeSyntheticEvent,\n type TextInputKeyPressEventData,\n type TextInputProps,\n} from \"react-native\";\nimport { useAui, useAuiState } from \"@assistant-ui/store\";\nimport { flushTapSync } from \"@assistant-ui/tap\";\n\nexport type ComposerInputProps = Omit<\n TextInputProps,\n \"value\" | \"onChangeText\"\n> & {\n /**\n * Controls how the Enter key submits messages (web only).\n * - \"enter\": Plain Enter submits (Shift+Enter for newline)\n * - \"none\": Enter inserts newline (no keyboard submission)\n * @default \"enter\"\n */\n submitMode?: \"enter\" | \"none\";\n};\n\nconst getWebTextareaMaxHeight = (el: HTMLTextAreaElement) => {\n const computedMaxHeight = globalThis.getComputedStyle?.(el).maxHeight;\n const parsedComputedMaxHeight = Number.parseFloat(computedMaxHeight ?? \"\");\n if (Number.isFinite(parsedComputedMaxHeight)) return parsedComputedMaxHeight;\n\n const inlineMaxHeight = Number.parseFloat(el.style.maxHeight);\n return Number.isFinite(inlineMaxHeight) ? inlineMaxHeight : null;\n};\n\nconst adjustWebTextareaHeight = (ref: React.RefObject<TextInput | null>) => {\n if (Platform.OS !== \"web\") return;\n // On web, the TextInput ref IS the DOM element\n const el = ref.current as unknown as HTMLTextAreaElement | null;\n if (!el) return;\n // Ensure rows=1 so scrollHeight reflects actual content\n if (el.rows !== 1) el.rows = 1;\n\n el.style.overflowX = \"hidden\";\n el.style.overflowY = \"hidden\";\n el.style.height = \"auto\";\n\n const scrollHeight = el.scrollHeight;\n const maxHeight = getWebTextareaMaxHeight(el);\n const needsScrollbar = maxHeight !== null && scrollHeight > maxHeight;\n const nextHeight =\n maxHeight === null ? scrollHeight : Math.min(scrollHeight, maxHeight);\n\n el.style.overflowY = needsScrollbar ? \"auto\" : \"hidden\";\n el.style.height = `${nextHeight}px`;\n};\n\nexport const ComposerInput = ({\n submitMode = \"enter\",\n onKeyPress: onKeyPressProp,\n numberOfLines,\n style,\n ...props\n}: ComposerInputProps) => {\n const aui = useAui();\n const text = useAuiState((s) => s.composer.text);\n const inputRef = useRef<TextInput>(null);\n\n const onChangeText = useCallback(\n (value: string) => {\n if (Platform.OS === \"web\") {\n // Keep the controlled value in sync mid-IME so react-dom does not reset the textarea to a stale value\n flushTapSync(() => {\n aui.composer.setText(value);\n });\n return;\n }\n aui.composer.setText(value);\n },\n [aui],\n );\n\n // Auto-resize textarea on web when text changes\n useEffect(() => {\n void text; // trigger re-run when text changes\n adjustWebTextareaHeight(inputRef);\n }, [text]);\n\n const onKeyPress = useCallback(\n (e: NativeSyntheticEvent<TextInputKeyPressEventData>) => {\n onKeyPressProp?.(e);\n if (e.isDefaultPrevented()) return;\n\n if (Platform.OS !== \"web\") return;\n if (submitMode !== \"enter\") return;\n\n const nativeEvent = e.nativeEvent as TextInputKeyPressEventData & {\n shiftKey?: boolean;\n isComposing?: boolean;\n keyCode?: number;\n };\n // react-native-web forwards the raw DOM keydown before its own composition guard, so re-check it here (mirrors isEventComposing)\n if (nativeEvent.isComposing || nativeEvent.keyCode === 229) return;\n if (nativeEvent.key === \"Enter\" && !nativeEvent.shiftKey) {\n (e as unknown as Event).preventDefault?.();\n aui.composer.send();\n }\n },\n [aui, submitMode, onKeyPressProp],\n );\n\n return (\n <TextInput\n ref={inputRef}\n value={text}\n onChangeText={onChangeText}\n onKeyPress={onKeyPress}\n numberOfLines={numberOfLines ?? (Platform.OS === \"web\" ? 1 : undefined)}\n style={style}\n {...props}\n />\n );\n};\n"],"mappings":"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"}
1
+ {"version":3,"file":"ComposerInput.js","names":["useCallback","useEffect","useRef","Platform","TextInput","TextInputProps","useAui","useAuiState","flushTapSync","TextInputInstance","React","ComponentRef","TextInputKeyPressEvent","Parameters","NonNullable","ComposerInputProps","Omit","submitMode","getWebTextareaMaxHeight","el","HTMLTextAreaElement","computedMaxHeight","globalThis","getComputedStyle","maxHeight","parsedComputedMaxHeight","Number","parseFloat","isFinite","inlineMaxHeight","style","adjustWebTextareaHeight","ref","RefObject","OS","current","rows","overflowX","overflowY","height","scrollHeight","needsScrollbar","nextHeight","Math","min","ComposerInput","t0","$","_c","numberOfLines","onKeyPressProp","props","t1","onKeyPress","undefined","aui","text","_temp","inputRef","t2","value","composer","setText","onChangeText","t3","Symbol","for","t4","t5","e","isDefaultPrevented","nativeEvent","shiftKey","isComposing","keyCode","key","Event","preventDefault","send","t6","t7","s"],"sources":["../../../src/primitives/composer/ComposerInput.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef } from \"react\";\nimport { Platform, TextInput, type TextInputProps } from \"react-native\";\nimport { useAui, useAuiState } from \"@assistant-ui/store\";\nimport { flushTapSync } from \"@assistant-ui/tap\";\n\ntype TextInputInstance = React.ComponentRef<typeof TextInput>;\ntype TextInputKeyPressEvent = Parameters<\n NonNullable<TextInputProps[\"onKeyPress\"]>\n>[0];\n\nexport type ComposerInputProps = Omit<\n TextInputProps,\n \"value\" | \"onChangeText\"\n> & {\n /**\n * Controls how the Enter key submits messages (web only).\n * - \"enter\": Plain Enter submits (Shift+Enter for newline)\n * - \"none\": Enter inserts newline (no keyboard submission)\n * @default \"enter\"\n */\n submitMode?: \"enter\" | \"none\";\n};\n\nconst getWebTextareaMaxHeight = (el: HTMLTextAreaElement) => {\n const computedMaxHeight = globalThis.getComputedStyle?.(el).maxHeight;\n const parsedComputedMaxHeight = Number.parseFloat(computedMaxHeight ?? \"\");\n if (Number.isFinite(parsedComputedMaxHeight)) return parsedComputedMaxHeight;\n\n const inlineMaxHeight = Number.parseFloat(el.style.maxHeight);\n return Number.isFinite(inlineMaxHeight) ? inlineMaxHeight : null;\n};\n\nconst adjustWebTextareaHeight = (\n ref: React.RefObject<TextInputInstance | null>,\n) => {\n if (Platform.OS !== \"web\") return;\n // On web, the TextInput ref IS the DOM element\n const el = ref.current as unknown as HTMLTextAreaElement | null;\n if (!el) return;\n // Ensure rows=1 so scrollHeight reflects actual content\n if (el.rows !== 1) el.rows = 1;\n\n el.style.overflowX = \"hidden\";\n el.style.overflowY = \"hidden\";\n el.style.height = \"auto\";\n\n const scrollHeight = el.scrollHeight;\n const maxHeight = getWebTextareaMaxHeight(el);\n const needsScrollbar = maxHeight !== null && scrollHeight > maxHeight;\n const nextHeight =\n maxHeight === null ? scrollHeight : Math.min(scrollHeight, maxHeight);\n\n el.style.overflowY = needsScrollbar ? \"auto\" : \"hidden\";\n el.style.height = `${nextHeight}px`;\n};\n\nexport const ComposerInput = ({\n submitMode = \"enter\",\n onKeyPress: onKeyPressProp,\n numberOfLines,\n style,\n ...props\n}: ComposerInputProps) => {\n const aui = useAui();\n const text = useAuiState((s) => s.composer.text);\n const inputRef = useRef<TextInputInstance>(null);\n\n const onChangeText = useCallback(\n (value: string) => {\n if (Platform.OS === \"web\") {\n // Keep the controlled value in sync mid-IME so react-dom does not reset the textarea to a stale value\n flushTapSync(() => {\n aui.composer.setText(value);\n });\n return;\n }\n aui.composer.setText(value);\n },\n [aui],\n );\n\n // Auto-resize textarea on web when text changes\n useEffect(() => {\n void text; // trigger re-run when text changes\n adjustWebTextareaHeight(inputRef);\n }, [text]);\n\n const onKeyPress = useCallback(\n (e: TextInputKeyPressEvent) => {\n onKeyPressProp?.(e);\n if (e.isDefaultPrevented()) return;\n\n if (Platform.OS !== \"web\") return;\n if (submitMode !== \"enter\") return;\n\n const nativeEvent =\n e.nativeEvent as TextInputKeyPressEvent[\"nativeEvent\"] & {\n shiftKey?: boolean;\n isComposing?: boolean;\n keyCode?: number;\n };\n // react-native-web forwards the raw DOM keydown before its own composition guard, so re-check it here (mirrors isEventComposing)\n if (nativeEvent.isComposing || nativeEvent.keyCode === 229) return;\n if (nativeEvent.key === \"Enter\" && !nativeEvent.shiftKey) {\n (e as unknown as Event).preventDefault?.();\n aui.composer.send();\n }\n },\n [aui, submitMode, onKeyPressProp],\n );\n\n return (\n <TextInput\n ref={inputRef}\n value={text}\n onChangeText={onChangeText}\n onKeyPress={onKeyPress}\n numberOfLines={numberOfLines ?? (Platform.OS === \"web\" ? 1 : undefined)}\n style={style}\n {...props}\n />\n );\n};\n"],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ import { ComposerPrimitiveQueue as ComposerQueue } from "@assistant-ui/core/react";
2
+ export { ComposerQueue };
@@ -0,0 +1,2 @@
1
+ import { ComposerPrimitiveQueue as ComposerQueue } from "@assistant-ui/core/react";
2
+ export { ComposerQueue };
@@ -0,0 +1,10 @@
1
+ import { ViewProps } from "react-native";
2
+ import { ReactNode } from "react";
3
+ //#region src/primitives/composer/ComposerQuote.d.ts
4
+ type ComposerQuoteProps = ViewProps & {
5
+ children: ReactNode;
6
+ };
7
+ declare const ComposerQuote: ({ children, ...viewProps }: ComposerQuoteProps) => import("react").JSX.Element | null;
8
+ //#endregion
9
+ export { ComposerQuote, ComposerQuoteProps };
10
+ //# sourceMappingURL=ComposerQuote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComposerQuote.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerQuote.tsx"],"mappings":";;;KAIY,qBAAqB;EAC/B,UAAU;;cAGC,kBAAiB,aAAA,aAG3B,uCAAkB,IAAA"}