@assistant-ui/react-native 0.1.29 → 0.1.30

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 (118) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/primitives/actionBar/ActionBarCopy.d.ts +1 -8
  3. package/dist/primitives/actionBar/ActionBarCopy.d.ts.map +1 -1
  4. package/dist/primitives/actionBar/ActionBarEdit.d.ts +1 -6
  5. package/dist/primitives/actionBar/ActionBarEdit.d.ts.map +1 -1
  6. package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts +1 -5
  7. package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts.map +1 -1
  8. package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts +1 -5
  9. package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts.map +1 -1
  10. package/dist/primitives/actionBar/ActionBarReload.d.ts +1 -6
  11. package/dist/primitives/actionBar/ActionBarReload.d.ts.map +1 -1
  12. package/dist/primitives/actionBar.d.ts +0 -2
  13. package/dist/primitives/attachment/AttachmentName.d.ts +0 -1
  14. package/dist/primitives/attachment/AttachmentName.d.ts.map +1 -1
  15. package/dist/primitives/attachment/AttachmentRemove.d.ts +1 -5
  16. package/dist/primitives/attachment/AttachmentRemove.d.ts.map +1 -1
  17. package/dist/primitives/attachment/AttachmentRoot.d.ts +1 -5
  18. package/dist/primitives/attachment/AttachmentRoot.d.ts.map +1 -1
  19. package/dist/primitives/attachment/AttachmentThumb.d.ts +0 -1
  20. package/dist/primitives/attachment/AttachmentThumb.d.ts.map +1 -1
  21. package/dist/primitives/attachment.d.ts +0 -2
  22. package/dist/primitives/branchPicker/BranchPickerCount.d.ts +0 -1
  23. package/dist/primitives/branchPicker/BranchPickerCount.d.ts.map +1 -1
  24. package/dist/primitives/branchPicker/BranchPickerNext.d.ts +1 -6
  25. package/dist/primitives/branchPicker/BranchPickerNext.d.ts.map +1 -1
  26. package/dist/primitives/branchPicker/BranchPickerNumber.d.ts +0 -1
  27. package/dist/primitives/branchPicker/BranchPickerNumber.d.ts.map +1 -1
  28. package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts +1 -6
  29. package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts.map +1 -1
  30. package/dist/primitives/branchPicker.d.ts +0 -2
  31. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts +1 -5
  32. package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts.map +1 -1
  33. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts +1 -5
  34. package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts.map +1 -1
  35. package/dist/primitives/chainOfThought.d.ts +0 -2
  36. package/dist/primitives/composer/ComposerAddAttachment.d.ts +1 -6
  37. package/dist/primitives/composer/ComposerAddAttachment.d.ts.map +1 -1
  38. package/dist/primitives/composer/ComposerAttachments.d.ts +3 -16
  39. package/dist/primitives/composer/ComposerAttachments.d.ts.map +1 -1
  40. package/dist/primitives/composer/ComposerAttachments.js.map +1 -1
  41. package/dist/primitives/composer/ComposerCancel.d.ts +1 -6
  42. package/dist/primitives/composer/ComposerCancel.d.ts.map +1 -1
  43. package/dist/primitives/composer/ComposerInput.d.ts +1 -8
  44. package/dist/primitives/composer/ComposerInput.d.ts.map +1 -1
  45. package/dist/primitives/composer/ComposerInput.js +15 -2
  46. package/dist/primitives/composer/ComposerInput.js.map +1 -1
  47. package/dist/primitives/composer/ComposerRoot.d.ts +1 -5
  48. package/dist/primitives/composer/ComposerRoot.d.ts.map +1 -1
  49. package/dist/primitives/composer/ComposerSend.d.ts +1 -6
  50. package/dist/primitives/composer/ComposerSend.d.ts.map +1 -1
  51. package/dist/primitives/composer.d.ts +3 -5
  52. package/dist/primitives/composer.js.map +1 -1
  53. package/dist/primitives/error/ErrorMessage.d.ts +1 -5
  54. package/dist/primitives/error/ErrorMessage.d.ts.map +1 -1
  55. package/dist/primitives/error/ErrorRoot.d.ts +1 -5
  56. package/dist/primitives/error/ErrorRoot.d.ts.map +1 -1
  57. package/dist/primitives/error/index.d.ts +0 -2
  58. package/dist/primitives/message/MessageAttachments.d.ts +2 -9
  59. package/dist/primitives/message/MessageAttachments.d.ts.map +1 -1
  60. package/dist/primitives/message/MessageAttachments.js.map +1 -1
  61. package/dist/primitives/message/MessageContent.d.ts +1 -10
  62. package/dist/primitives/message/MessageContent.d.ts.map +1 -1
  63. package/dist/primitives/message/MessageIf.d.ts +1 -8
  64. package/dist/primitives/message/MessageIf.d.ts.map +1 -1
  65. package/dist/primitives/message/MessageParts.d.ts +0 -1
  66. package/dist/primitives/message/MessageParts.d.ts.map +1 -1
  67. package/dist/primitives/message/MessageRoot.d.ts +1 -5
  68. package/dist/primitives/message/MessageRoot.d.ts.map +1 -1
  69. package/dist/primitives/message.d.ts +3 -5
  70. package/dist/primitives/message.js.map +1 -1
  71. package/dist/primitives/suggestion/SuggestionDescription.d.ts +1 -5
  72. package/dist/primitives/suggestion/SuggestionDescription.d.ts.map +1 -1
  73. package/dist/primitives/suggestion/SuggestionTitle.d.ts +1 -5
  74. package/dist/primitives/suggestion/SuggestionTitle.d.ts.map +1 -1
  75. package/dist/primitives/suggestion/SuggestionTrigger.d.ts +1 -8
  76. package/dist/primitives/suggestion/SuggestionTrigger.d.ts.map +1 -1
  77. package/dist/primitives/suggestion.d.ts +0 -2
  78. package/dist/primitives/thread/ThreadEmpty.d.ts +1 -4
  79. package/dist/primitives/thread/ThreadEmpty.d.ts.map +1 -1
  80. package/dist/primitives/thread/ThreadIf.d.ts +1 -6
  81. package/dist/primitives/thread/ThreadIf.d.ts.map +1 -1
  82. package/dist/primitives/thread/ThreadMessages.d.ts +4 -11
  83. package/dist/primitives/thread/ThreadMessages.d.ts.map +1 -1
  84. package/dist/primitives/thread/ThreadMessages.js +11 -9
  85. package/dist/primitives/thread/ThreadMessages.js.map +1 -1
  86. package/dist/primitives/thread/ThreadRoot.d.ts +1 -5
  87. package/dist/primitives/thread/ThreadRoot.d.ts.map +1 -1
  88. package/dist/primitives/thread/ThreadSuggestion.d.ts +3 -10
  89. package/dist/primitives/thread/ThreadSuggestion.d.ts.map +1 -1
  90. package/dist/primitives/thread.d.ts +0 -2
  91. package/dist/primitives/threadList/ThreadListItems.d.ts +1 -5
  92. package/dist/primitives/threadList/ThreadListItems.d.ts.map +1 -1
  93. package/dist/primitives/threadList/ThreadListNew.d.ts +1 -5
  94. package/dist/primitives/threadList/ThreadListNew.d.ts.map +1 -1
  95. package/dist/primitives/threadList/ThreadListRoot.d.ts +1 -5
  96. package/dist/primitives/threadList/ThreadListRoot.d.ts.map +1 -1
  97. package/dist/primitives/threadList.d.ts +0 -2
  98. package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts +1 -5
  99. package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts.map +1 -1
  100. package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts +1 -5
  101. package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts.map +1 -1
  102. package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts +1 -5
  103. package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts.map +1 -1
  104. package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts +1 -5
  105. package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts.map +1 -1
  106. package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts +1 -5
  107. package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts.map +1 -1
  108. package/dist/primitives/threadListItem.d.ts +0 -2
  109. package/package.json +7 -7
  110. package/src/index.ts +2 -0
  111. package/src/primitives/composer/ComposerAttachments.tsx +3 -15
  112. package/src/primitives/composer/ComposerInput.test.tsx +106 -8
  113. package/src/primitives/composer/ComposerInput.tsx +21 -2
  114. package/src/primitives/composer.ts +2 -0
  115. package/src/primitives/message/MessageAttachments.tsx +3 -8
  116. package/src/primitives/message.ts +2 -0
  117. package/src/primitives/thread/ThreadMessages.test.tsx +21 -1
  118. package/src/primitives/thread/ThreadMessages.tsx +7 -6
package/dist/index.d.ts CHANGED
@@ -15,7 +15,7 @@ import { suggestion_d_exports } from "./primitives/suggestion.js";
15
15
  import { index_d_exports } from "./primitives/error/index.js";
16
16
  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, 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
17
  import { AssistantClient, AssistantEventCallback, AssistantEventName, AssistantEventPayload, AssistantEventScope, AssistantEventSelector, AssistantState, AuiIf, AuiProvider, useAui, useAuiEvent, useAuiState } from "@assistant-ui/store";
18
- import { AssistantContextConfig, AssistantDataUI, AssistantDataUIProps, AssistantInteractableProps, AssistantTool, AssistantToolProps, AssistantToolUI, AssistantToolUIProps, ChainOfThoughtByIndicesProvider, ChainOfThoughtPartByIndexProvider, ComposerAttachmentByIndexProvider, DataMessagePartComponent, DataMessagePartProps, DataRenderers, EmptyMessagePartComponent, EmptyMessagePartProps, FileMessagePartComponent, FileMessagePartProps, GroupByContext, ImageMessagePartComponent, ImageMessagePartProps, Interactables, McpToolkitDefinition, 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";
18
+ 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
19
  import { AttachmentState, ChainOfThoughtClient, ComposerState, MessageState, ModelContext as ModelContextClient, SuggestionConfig, Suggestions, ThreadListItemState, ThreadState, ThreadsState } from "@assistant-ui/core/store";
20
20
  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, 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, 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 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 };
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, 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 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 };
@@ -1,20 +1,13 @@
1
1
  import { UseActionBarCopyOptions } from "@assistant-ui/core/react";
2
2
  import { PressableProps } from "react-native";
3
3
  import { ReactNode } from "react";
4
-
5
4
  //#region src/primitives/actionBar/ActionBarCopy.d.ts
6
5
  type ActionBarCopyProps = Omit<PressableProps, "onPress" | "children"> & UseActionBarCopyOptions & {
7
6
  children: ReactNode | ((props: {
8
7
  isCopied: boolean;
9
8
  }) => ReactNode);
10
9
  };
11
- declare const ActionBarCopy: ({
12
- children,
13
- disabled: disabledProp,
14
- copiedDuration,
15
- copyToClipboard,
16
- ...pressableProps
17
- }: ActionBarCopyProps) => import("react").JSX.Element;
10
+ declare const ActionBarCopy: ({ children, disabled: disabledProp, copiedDuration, copyToClipboard, ...pressableProps }: ActionBarCopyProps) => import("react").JSX.Element;
18
11
  //#endregion
19
12
  export { ActionBarCopy, ActionBarCopyProps };
20
13
  //# sourceMappingURL=ActionBarCopy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarCopy.d.ts","names":[],"sources":["../../../src/primitives/actionBar/ActionBarCopy.tsx"],"mappings":";;;;;KAOY,kBAAA,GAAqB,IAAA,CAAK,cAAA,4BACpC,uBAAA;EACE,QAAA,EAAU,SAAA,KAAc,KAAA;IAAS,QAAA;EAAA,MAAwB,SAAA;AAAA;AAAA,cAGhD,aAAA;EAAiB,QAAA;EAAA,QAAA,EAAA,YAAA;EAAA,cAAA;EAAA,eAAA;EAAA,GAAA;AAAA,GAM3B,kBAAA,qBAAkB,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"ActionBarCopy.d.ts","names":[],"sources":["../../../src/primitives/actionBar/ActionBarCopy.tsx"],"mappings":";;;;KAOY,qBAAqB,KAAK,0CACpC;EACE,UAAU,cAAc;IAAS;QAAwB;;cAGhD,kBAAiB,UAAA,UAAA,cAAA,gBAAA,oBAAA,kBAM3B,uCAAkB,IAAA"}
@@ -1,15 +1,10 @@
1
1
  import { PressableProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/actionBar/ActionBarEdit.d.ts
5
4
  type ActionBarEditProps = Omit<PressableProps, "onPress"> & {
6
5
  children: ReactNode;
7
6
  };
8
- declare const ActionBarEdit: ({
9
- children,
10
- disabled: disabledProp,
11
- ...pressableProps
12
- }: ActionBarEditProps) => import("react").JSX.Element;
7
+ declare const ActionBarEdit: ({ children, disabled: disabledProp, ...pressableProps }: ActionBarEditProps) => import("react").JSX.Element;
13
8
  //#endregion
14
9
  export { ActionBarEdit, ActionBarEditProps };
15
10
  //# sourceMappingURL=ActionBarEdit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarEdit.d.ts","names":[],"sources":["../../../src/primitives/actionBar/ActionBarEdit.tsx"],"mappings":";;;;KAIY,kBAAA,GAAqB,IAAA,CAAK,cAAA;EACpC,QAAA,EAAU,SAAA;AAAA;AAAA,cAGC,aAAA;EAAiB,QAAA;EAAA,QAAA,EAAA,YAAA;EAAA,GAAA;AAAA,GAI3B,kBAAA,qBAAkB,GAAA,CAAA,OAAA"}
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,16 +1,12 @@
1
1
  import { PressableProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/actionBar/ActionBarFeedbackNegative.d.ts
5
4
  type ActionBarFeedbackNegativeProps = Omit<PressableProps, "onPress" | "children"> & {
6
5
  children: ReactNode | ((props: {
7
6
  isSubmitted: boolean;
8
7
  }) => ReactNode);
9
8
  };
10
- declare const ActionBarFeedbackNegative: ({
11
- children,
12
- ...pressableProps
13
- }: ActionBarFeedbackNegativeProps) => import("react").JSX.Element;
9
+ declare const ActionBarFeedbackNegative: ({ children, ...pressableProps }: ActionBarFeedbackNegativeProps) => import("react").JSX.Element;
14
10
  //#endregion
15
11
  export { ActionBarFeedbackNegative, ActionBarFeedbackNegativeProps };
16
12
  //# sourceMappingURL=ActionBarFeedbackNegative.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarFeedbackNegative.d.ts","names":[],"sources":["../../../src/primitives/actionBar/ActionBarFeedbackNegative.tsx"],"mappings":";;;;KAIY,8BAAA,GAAiC,IAAA,CAC3C,cAAA;EAGA,QAAA,EAAU,SAAA,KAAc,KAAA;IAAS,WAAA;EAAA,MAA2B,SAAA;AAAA;AAAA,cAGjD,yBAAA;EAA6B,QAAA;EAAA,GAAA;AAAA,GAGvC,8BAA8B,qBAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"ActionBarFeedbackNegative.d.ts","names":[],"sources":["../../../src/primitives/actionBar/ActionBarFeedbackNegative.tsx"],"mappings":";;;KAIY,iCAAiC,KAC3C;EAGA,UAAU,cAAc;IAAS;QAA2B;;cAGjD,8BAA6B,aAAA,kBAGvC,mDAA8B,IAAA"}
@@ -1,16 +1,12 @@
1
1
  import { PressableProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/actionBar/ActionBarFeedbackPositive.d.ts
5
4
  type ActionBarFeedbackPositiveProps = Omit<PressableProps, "onPress" | "children"> & {
6
5
  children: ReactNode | ((props: {
7
6
  isSubmitted: boolean;
8
7
  }) => ReactNode);
9
8
  };
10
- declare const ActionBarFeedbackPositive: ({
11
- children,
12
- ...pressableProps
13
- }: ActionBarFeedbackPositiveProps) => import("react").JSX.Element;
9
+ declare const ActionBarFeedbackPositive: ({ children, ...pressableProps }: ActionBarFeedbackPositiveProps) => import("react").JSX.Element;
14
10
  //#endregion
15
11
  export { ActionBarFeedbackPositive, ActionBarFeedbackPositiveProps };
16
12
  //# sourceMappingURL=ActionBarFeedbackPositive.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarFeedbackPositive.d.ts","names":[],"sources":["../../../src/primitives/actionBar/ActionBarFeedbackPositive.tsx"],"mappings":";;;;KAIY,8BAAA,GAAiC,IAAA,CAC3C,cAAA;EAGA,QAAA,EAAU,SAAA,KAAc,KAAA;IAAS,WAAA;EAAA,MAA2B,SAAA;AAAA;AAAA,cAGjD,yBAAA;EAA6B,QAAA;EAAA,GAAA;AAAA,GAGvC,8BAA8B,qBAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"ActionBarFeedbackPositive.d.ts","names":[],"sources":["../../../src/primitives/actionBar/ActionBarFeedbackPositive.tsx"],"mappings":";;;KAIY,iCAAiC,KAC3C;EAGA,UAAU,cAAc;IAAS;QAA2B;;cAGjD,8BAA6B,aAAA,kBAGvC,mDAA8B,IAAA"}
@@ -1,15 +1,10 @@
1
1
  import { PressableProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/actionBar/ActionBarReload.d.ts
5
4
  type ActionBarReloadProps = Omit<PressableProps, "onPress"> & {
6
5
  children: ReactNode;
7
6
  };
8
- declare const ActionBarReload: ({
9
- children,
10
- disabled: disabledProp,
11
- ...pressableProps
12
- }: ActionBarReloadProps) => import("react").JSX.Element;
7
+ declare const ActionBarReload: ({ children, disabled: disabledProp, ...pressableProps }: ActionBarReloadProps) => import("react").JSX.Element;
13
8
  //#endregion
14
9
  export { ActionBarReload, ActionBarReloadProps };
15
10
  //# sourceMappingURL=ActionBarReload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarReload.d.ts","names":[],"sources":["../../../src/primitives/actionBar/ActionBarReload.tsx"],"mappings":";;;;KAIY,oBAAA,GAAuB,IAAA,CAAK,cAAA;EACtC,QAAA,EAAU,SAAA;AAAA;AAAA,cAGC,eAAA;EAAmB,QAAA;EAAA,QAAA,EAAA,YAAA;EAAA,GAAA;AAAA,GAI7B,oBAAA,qBAAoB,GAAA,CAAA,OAAA"}
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"}
@@ -3,8 +3,6 @@ import { ActionBarEdit, ActionBarEditProps } from "./actionBar/ActionBarEdit.js"
3
3
  import { ActionBarReload, ActionBarReloadProps } from "./actionBar/ActionBarReload.js";
4
4
  import { ActionBarFeedbackPositive, ActionBarFeedbackPositiveProps } from "./actionBar/ActionBarFeedbackPositive.js";
5
5
  import { ActionBarFeedbackNegative, ActionBarFeedbackNegativeProps } from "./actionBar/ActionBarFeedbackNegative.js";
6
-
7
- //#region src/primitives/actionBar.d.ts
8
6
  declare namespace actionBar_d_exports {
9
7
  export { ActionBarCopy as Copy, ActionBarCopyProps as CopyProps, ActionBarEdit as Edit, ActionBarEditProps as EditProps, ActionBarFeedbackNegative as FeedbackNegative, ActionBarFeedbackNegativeProps as FeedbackNegativeProps, ActionBarFeedbackPositive as FeedbackPositive, ActionBarFeedbackPositiveProps as FeedbackPositiveProps, ActionBarReload as Reload, ActionBarReloadProps as ReloadProps };
10
8
  }
@@ -1,6 +1,5 @@
1
1
  import { TextProps } from "react-native";
2
2
  import { FC } from "react";
3
-
4
3
  //#region src/primitives/attachment/AttachmentName.d.ts
5
4
  type AttachmentNameProps = TextProps;
6
5
  declare const AttachmentName: FC<AttachmentNameProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentName.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentName.tsx"],"mappings":";;;;KAIY,mBAAA,GAAsB,SAAS;AAAA,cAE9B,cAAA,EAAgB,EAAE,CAAC,mBAAA"}
1
+ {"version":3,"file":"AttachmentName.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentName.tsx"],"mappings":";;;KAIY,sBAAsB;cAErB,gBAAgB,GAAG"}
@@ -1,14 +1,10 @@
1
1
  import { PressableProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/attachment/AttachmentRemove.d.ts
5
4
  type AttachmentRemoveProps = Omit<PressableProps, "onPress"> & {
6
5
  children: ReactNode;
7
6
  };
8
- declare const AttachmentRemove: ({
9
- children,
10
- ...pressableProps
11
- }: AttachmentRemoveProps) => import("react").JSX.Element;
7
+ declare const AttachmentRemove: ({ children, ...pressableProps }: AttachmentRemoveProps) => import("react").JSX.Element;
12
8
  //#endregion
13
9
  export { AttachmentRemove, AttachmentRemoveProps };
14
10
  //# sourceMappingURL=AttachmentRemove.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentRemove.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentRemove.tsx"],"mappings":";;;;KAKY,qBAAA,GAAwB,IAAA,CAAK,cAAA;EACvC,QAAA,EAAU,SAAA;AAAA;AAAA,cAGC,gBAAA;EAAoB,QAAA;EAAA,GAAA;AAAA,GAG9B,qBAAqB,qBAAA,GAAA,CAAA,OAAA"}
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,14 +1,10 @@
1
1
  import { ViewProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/attachment/AttachmentRoot.d.ts
5
4
  type AttachmentRootProps = ViewProps & {
6
5
  children: ReactNode;
7
6
  };
8
- declare const AttachmentRoot: ({
9
- children,
10
- ...viewProps
11
- }: AttachmentRootProps) => import("react").JSX.Element;
7
+ declare const AttachmentRoot: ({ children, ...viewProps }: AttachmentRootProps) => import("react").JSX.Element;
12
8
  //#endregion
13
9
  export { AttachmentRoot, AttachmentRootProps };
14
10
  //# sourceMappingURL=AttachmentRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentRoot.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentRoot.tsx"],"mappings":";;;;KAGY,mBAAA,GAAsB,SAAA;EAChC,QAAA,EAAU,SAAS;AAAA;AAAA,cAGR,cAAA;EAAkB,QAAA;EAAA,GAAA;AAAA,GAG5B,mBAAmB,qBAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"AttachmentRoot.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentRoot.tsx"],"mappings":";;;KAGY,sBAAsB;EAChC,UAAU;;cAGC,mBAAkB,aAAA,aAG5B,wCAAmB,IAAA"}
@@ -1,6 +1,5 @@
1
1
  import { TextProps } from "react-native";
2
2
  import { FC } from "react";
3
-
4
3
  //#region src/primitives/attachment/AttachmentThumb.d.ts
5
4
  type AttachmentThumbProps = TextProps;
6
5
  declare const AttachmentThumb: FC<AttachmentThumbProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentThumb.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentThumb.tsx"],"mappings":";;;;KAIY,oBAAA,GAAuB,SAAS;AAAA,cAE/B,eAAA,EAAiB,EAAE,CAAC,oBAAA"}
1
+ {"version":3,"file":"AttachmentThumb.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentThumb.tsx"],"mappings":";;;KAIY,uBAAuB;cAEtB,iBAAiB,GAAG"}
@@ -2,8 +2,6 @@ import { AttachmentRoot, AttachmentRootProps } from "./attachment/AttachmentRoot
2
2
  import { AttachmentName, AttachmentNameProps } from "./attachment/AttachmentName.js";
3
3
  import { AttachmentThumb, AttachmentThumbProps } from "./attachment/AttachmentThumb.js";
4
4
  import { AttachmentRemove, AttachmentRemoveProps } from "./attachment/AttachmentRemove.js";
5
-
6
- //#region src/primitives/attachment.d.ts
7
5
  declare namespace attachment_d_exports {
8
6
  export { AttachmentName as Name, AttachmentNameProps as NameProps, AttachmentRemove as Remove, AttachmentRemoveProps as RemoveProps, AttachmentRoot as Root, AttachmentRootProps as RootProps, AttachmentThumb as Thumb, AttachmentThumbProps as ThumbProps };
9
7
  }
@@ -1,5 +1,4 @@
1
1
  import { TextProps } from "react-native";
2
-
3
2
  //#region src/primitives/branchPicker/BranchPickerCount.d.ts
4
3
  type BranchPickerCountProps = TextProps;
5
4
  declare const BranchPickerCount: (props: BranchPickerCountProps) => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"BranchPickerCount.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerCount.tsx"],"mappings":";;;KAGY,sBAAA,GAAyB,SAAS;AAAA,cAEjC,iBAAA,GAAqB,KAAA,EAAO,sBAAsB,qBAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"BranchPickerCount.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerCount.tsx"],"mappings":";;KAGY,yBAAyB;cAExB,oBAAqB,OAAO,2CAAsB,IAAA"}
@@ -1,15 +1,10 @@
1
1
  import { PressableProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/branchPicker/BranchPickerNext.d.ts
5
4
  type BranchPickerNextProps = Omit<PressableProps, "onPress"> & {
6
5
  children: ReactNode;
7
6
  };
8
- declare const BranchPickerNext: ({
9
- children,
10
- disabled: disabledProp,
11
- ...pressableProps
12
- }: BranchPickerNextProps) => import("react").JSX.Element;
7
+ declare const BranchPickerNext: ({ children, disabled: disabledProp, ...pressableProps }: BranchPickerNextProps) => import("react").JSX.Element;
13
8
  //#endregion
14
9
  export { BranchPickerNext, BranchPickerNextProps };
15
10
  //# sourceMappingURL=BranchPickerNext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BranchPickerNext.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerNext.tsx"],"mappings":";;;;KAIY,qBAAA,GAAwB,IAAA,CAAK,cAAA;EACvC,QAAA,EAAU,SAAA;AAAA;AAAA,cAGC,gBAAA;EAAoB,QAAA;EAAA,QAAA,EAAA,YAAA;EAAA,GAAA;AAAA,GAI9B,qBAAA,qBAAqB,GAAA,CAAA,OAAA"}
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,5 +1,4 @@
1
1
  import { TextProps } from "react-native";
2
-
3
2
  //#region src/primitives/branchPicker/BranchPickerNumber.d.ts
4
3
  type BranchPickerNumberProps = TextProps;
5
4
  declare const BranchPickerNumber: (props: BranchPickerNumberProps) => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"BranchPickerNumber.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerNumber.tsx"],"mappings":";;;KAGY,uBAAA,GAA0B,SAAS;AAAA,cAElC,kBAAA,GAAsB,KAAA,EAAO,uBAAuB,qBAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"BranchPickerNumber.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerNumber.tsx"],"mappings":";;KAGY,0BAA0B;cAEzB,qBAAsB,OAAO,4CAAuB,IAAA"}
@@ -1,15 +1,10 @@
1
1
  import { PressableProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/branchPicker/BranchPickerPrevious.d.ts
5
4
  type BranchPickerPreviousProps = Omit<PressableProps, "onPress"> & {
6
5
  children: ReactNode;
7
6
  };
8
- declare const BranchPickerPrevious: ({
9
- children,
10
- disabled: disabledProp,
11
- ...pressableProps
12
- }: BranchPickerPreviousProps) => import("react").JSX.Element;
7
+ declare const BranchPickerPrevious: ({ children, disabled: disabledProp, ...pressableProps }: BranchPickerPreviousProps) => import("react").JSX.Element;
13
8
  //#endregion
14
9
  export { BranchPickerPrevious, BranchPickerPreviousProps };
15
10
  //# sourceMappingURL=BranchPickerPrevious.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BranchPickerPrevious.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerPrevious.tsx"],"mappings":";;;;KAIY,yBAAA,GAA4B,IAAA,CAAK,cAAA;EAC3C,QAAA,EAAU,SAAA;AAAA;AAAA,cAGC,oBAAA;EAAwB,QAAA;EAAA,QAAA,EAAA,YAAA;EAAA,GAAA;AAAA,GAIlC,yBAAA,qBAAyB,GAAA,CAAA,OAAA"}
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"}
@@ -2,8 +2,6 @@ import { BranchPickerPrevious, BranchPickerPreviousProps } from "./branchPicker/
2
2
  import { BranchPickerNext, BranchPickerNextProps } from "./branchPicker/BranchPickerNext.js";
3
3
  import { BranchPickerNumber, BranchPickerNumberProps } from "./branchPicker/BranchPickerNumber.js";
4
4
  import { BranchPickerCount, BranchPickerCountProps } from "./branchPicker/BranchPickerCount.js";
5
-
6
- //#region src/primitives/branchPicker.d.ts
7
5
  declare namespace branchPicker_d_exports {
8
6
  export { BranchPickerCount as Count, BranchPickerCountProps as CountProps, BranchPickerNext as Next, BranchPickerNextProps as NextProps, BranchPickerNumber as Number, BranchPickerNumberProps as NumberProps, BranchPickerPrevious as Previous, BranchPickerPreviousProps as PreviousProps };
9
7
  }
@@ -1,14 +1,10 @@
1
1
  import { PressableProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts
5
4
  type ChainOfThoughtAccordionTriggerProps = Omit<PressableProps, "onPress"> & {
6
5
  children: ReactNode;
7
6
  };
8
- declare const ChainOfThoughtAccordionTrigger: ({
9
- children,
10
- ...pressableProps
11
- }: ChainOfThoughtAccordionTriggerProps) => import("react").JSX.Element;
7
+ declare const ChainOfThoughtAccordionTrigger: ({ children, ...pressableProps }: ChainOfThoughtAccordionTriggerProps) => import("react").JSX.Element;
12
8
  //#endregion
13
9
  export { ChainOfThoughtAccordionTrigger, ChainOfThoughtAccordionTriggerProps };
14
10
  //# sourceMappingURL=ChainOfThoughtAccordionTrigger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChainOfThoughtAccordionTrigger.d.ts","names":[],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"mappings":";;;;KAIY,mCAAA,GAAsC,IAAA,CAChD,cAAA;EAGA,QAAA,EAAU,SAAA;AAAA;AAAA,cAGC,8BAAA;EAAkC,QAAA;EAAA,GAAA;AAAA,GAG5C,mCAAmC,qBAAA,GAAA,CAAA,OAAA"}
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,14 +1,10 @@
1
1
  import { ViewProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/chainOfThought/ChainOfThoughtRoot.d.ts
5
4
  type ChainOfThoughtRootProps = ViewProps & {
6
5
  children: ReactNode;
7
6
  };
8
- declare const ChainOfThoughtRoot: ({
9
- children,
10
- ...viewProps
11
- }: ChainOfThoughtRootProps) => import("react").JSX.Element;
7
+ declare const ChainOfThoughtRoot: ({ children, ...viewProps }: ChainOfThoughtRootProps) => import("react").JSX.Element;
12
8
  //#endregion
13
9
  export { ChainOfThoughtRoot, ChainOfThoughtRootProps };
14
10
  //# sourceMappingURL=ChainOfThoughtRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChainOfThoughtRoot.d.ts","names":[],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"mappings":";;;;KAGY,uBAAA,GAA0B,SAAA;EACpC,QAAA,EAAU,SAAS;AAAA;AAAA,cAGR,kBAAA;EAAsB,QAAA;EAAA,GAAA;AAAA,GAGhC,uBAAuB,qBAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"ChainOfThoughtRoot.d.ts","names":[],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"mappings":";;;KAGY,0BAA0B;EACpC,UAAU;;cAGC,uBAAsB,aAAA,aAGhC,4CAAuB,IAAA"}
@@ -1,8 +1,6 @@
1
1
  import { ChainOfThoughtRoot, ChainOfThoughtRootProps } from "./chainOfThought/ChainOfThoughtRoot.js";
2
2
  import { ChainOfThoughtAccordionTrigger, ChainOfThoughtAccordionTriggerProps } from "./chainOfThought/ChainOfThoughtAccordionTrigger.js";
3
3
  import { ChainOfThoughtPrimitiveParts as Parts } from "@assistant-ui/core/react";
4
-
5
- //#region src/primitives/chainOfThought.d.ts
6
4
  declare namespace chainOfThought_d_exports {
7
5
  export { ChainOfThoughtAccordionTrigger as AccordionTrigger, ChainOfThoughtAccordionTriggerProps as AccordionTriggerProps, Parts, ChainOfThoughtRoot as Root, ChainOfThoughtRootProps as RootProps };
8
6
  }
@@ -1,6 +1,5 @@
1
1
  import { PressableProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/composer/ComposerAddAttachment.d.ts
5
4
  type ComposerAddAttachmentProps = Omit<PressableProps, "onPress"> & {
6
5
  children: ReactNode;
@@ -12,11 +11,7 @@ type ComposerAddAttachmentProps = Omit<PressableProps, "onPress"> & {
12
11
  * This component calls `useComposerAddAttachment()` from `@assistant-ui/core/react`.
13
12
  * You must handle the file selection in your own component using the returned `addAttachment` callback.
14
13
  */
15
- declare const ComposerAddAttachment: ({
16
- children,
17
- disabled: disabledProp,
18
- ...pressableProps
19
- }: ComposerAddAttachmentProps) => import("react").JSX.Element;
14
+ declare const ComposerAddAttachment: ({ children, disabled: disabledProp, ...pressableProps }: ComposerAddAttachmentProps) => import("react").JSX.Element;
20
15
  //#endregion
21
16
  export { ComposerAddAttachment, ComposerAddAttachmentProps };
22
17
  //# sourceMappingURL=ComposerAddAttachment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerAddAttachment.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerAddAttachment.tsx"],"mappings":";;;;KAIY,0BAAA,GAA6B,IAAA,CAAK,cAAA;EAC5C,QAAA,EAAU,SAAA;AAAA;;;;;;;;cAUC,qBAAA;EAAyB,QAAA;EAAA,QAAA,EAAA,YAAA;EAAA,GAAA;AAAA,GAInC,0BAAA,qBAA0B,GAAA,CAAA,OAAA"}
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,22 +1,9 @@
1
1
  import { ComposerPrimitiveAttachmentByIndex, ComposerPrimitiveAttachments } from "@assistant-ui/core/react";
2
- import { ComponentType } from "react";
3
-
4
2
  //#region src/primitives/composer/ComposerAttachments.d.ts
5
- type AttachmentComponents = {
6
- Image?: ComponentType | undefined;
7
- Document?: ComponentType | undefined;
8
- File?: ComponentType | undefined;
9
- Attachment?: ComponentType | undefined;
10
- };
11
- type ComposerAttachmentsProps = {
12
- components: AttachmentComponents | undefined;
13
- };
14
- type ComposerAttachmentByIndexProps = {
15
- index: number;
16
- components?: AttachmentComponents | undefined;
17
- };
3
+ type ComposerAttachmentsProps = ComposerPrimitiveAttachments.Props;
4
+ type ComposerAttachmentByIndexProps = ComposerPrimitiveAttachmentByIndex.Props;
18
5
  declare const ComposerAttachmentByIndex: import("react").FC<ComposerPrimitiveAttachmentByIndex.Props>;
19
6
  declare const ComposerAttachments: import("react").FC<ComposerPrimitiveAttachments.Props>;
20
7
  //#endregion
21
- export { AttachmentComponents, ComposerAttachmentByIndex, ComposerAttachmentByIndexProps, ComposerAttachments, ComposerAttachmentsProps };
8
+ export { ComposerAttachmentByIndex, ComposerAttachmentByIndexProps, ComposerAttachments, ComposerAttachmentsProps };
22
9
  //# sourceMappingURL=ComposerAttachments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerAttachments.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerAttachments.tsx"],"mappings":";;;;KAMY,oBAAA;EACV,KAAA,GAAQ,aAAA;EACR,QAAA,GAAW,aAAA;EACX,IAAA,GAAO,aAAA;EACP,UAAA,GAAa,aAAA;AAAA;AAAA,KAGH,wBAAA;EACV,UAAA,EAAY,oBAAoB;AAAA;AAAA,KAGtB,8BAAA;EACV,KAAA;EACA,UAAA,GAAa,oBAAoB;AAAA;AAAA,cAGtB,yBAAA,kBAAyB,EAAA,CAAA,kCAAA,CAAA,KAAA;AAAA,cAEzB,mBAAA,kBAAmB,EAAA,CAAA,4BAAA,CAAA,KAAA"}
1
+ {"version":3,"file":"ComposerAttachments.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerAttachments.tsx"],"mappings":";;KAKY,2BAA2B,6BAA6B;KAExD,iCACV,mCAAmC;cAExB,2CAAyB,GAAA,mCAAA;cAEzB,qCAAmB,GAAA,6BAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerAttachments.js","names":["ComponentType","ComposerPrimitiveAttachments","ComposerPrimitiveAttachmentByIndex","AttachmentComponents","Image","Document","File","Attachment","ComposerAttachmentsProps","components","ComposerAttachmentByIndexProps","index","ComposerAttachmentByIndex","ComposerAttachments"],"sources":["../../../src/primitives/composer/ComposerAttachments.tsx"],"sourcesContent":["import type { ComponentType } from \"react\";\nimport {\n ComposerPrimitiveAttachments,\n ComposerPrimitiveAttachmentByIndex,\n} from \"@assistant-ui/core/react\";\n\nexport type AttachmentComponents = {\n Image?: ComponentType | undefined;\n Document?: ComponentType | undefined;\n File?: ComponentType | undefined;\n Attachment?: ComponentType | undefined;\n};\n\nexport type ComposerAttachmentsProps = {\n components: AttachmentComponents | undefined;\n};\n\nexport type ComposerAttachmentByIndexProps = {\n index: number;\n components?: AttachmentComponents | undefined;\n};\n\nexport const ComposerAttachmentByIndex = ComposerPrimitiveAttachmentByIndex;\n\nexport const ComposerAttachments = ComposerPrimitiveAttachments;\n"],"mappings":";;AAsBA,MAAaY,4BAA4BV;AAEzC,MAAaW,sBAAsBZ"}
1
+ {"version":3,"file":"ComposerAttachments.js","names":["ComposerPrimitiveAttachments","ComposerPrimitiveAttachmentByIndex","ComposerAttachmentsProps","Props","ComposerAttachmentByIndexProps","ComposerAttachmentByIndex","ComposerAttachments"],"sources":["../../../src/primitives/composer/ComposerAttachments.tsx"],"sourcesContent":["import {\n ComposerPrimitiveAttachments,\n ComposerPrimitiveAttachmentByIndex,\n} from \"@assistant-ui/core/react\";\n\nexport type ComposerAttachmentsProps = ComposerPrimitiveAttachments.Props;\n\nexport type ComposerAttachmentByIndexProps =\n ComposerPrimitiveAttachmentByIndex.Props;\n\nexport const ComposerAttachmentByIndex = ComposerPrimitiveAttachmentByIndex;\n\nexport const ComposerAttachments = ComposerPrimitiveAttachments;\n"],"mappings":";;AAUA,MAAaK,4BAA4BJ;AAEzC,MAAaK,sBAAsBN"}
@@ -1,15 +1,10 @@
1
1
  import { PressableProps } from "react-native";
2
2
  import { ReactNode } from "react";
3
-
4
3
  //#region src/primitives/composer/ComposerCancel.d.ts
5
4
  type ComposerCancelProps = Omit<PressableProps, "onPress"> & {
6
5
  children: ReactNode;
7
6
  };
8
- declare const ComposerCancel: ({
9
- children,
10
- disabled,
11
- ...pressableProps
12
- }: ComposerCancelProps) => import("react").JSX.Element;
7
+ declare const ComposerCancel: ({ children, disabled, ...pressableProps }: ComposerCancelProps) => import("react").JSX.Element;
13
8
  //#endregion
14
9
  export { ComposerCancel, ComposerCancelProps };
15
10
  //# sourceMappingURL=ComposerCancel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerCancel.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerCancel.tsx"],"mappings":";;;;KAIY,mBAAA,GAAsB,IAAA,CAAK,cAAA;EACrC,QAAA,EAAU,SAAA;AAAA;AAAA,cAGC,cAAA;EAAkB,QAAA;EAAA,QAAA;EAAA,GAAA;AAAA,GAI5B,mBAAA,qBAAmB,GAAA,CAAA,OAAA"}
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,5 +1,4 @@
1
1
  import { TextInputProps } from "react-native";
2
-
3
2
  //#region src/primitives/composer/ComposerInput.d.ts
4
3
  type ComposerInputProps = Omit<TextInputProps, "value" | "onChangeText"> & {
5
4
  /**
@@ -10,13 +9,7 @@ type ComposerInputProps = Omit<TextInputProps, "value" | "onChangeText"> & {
10
9
  */
11
10
  submitMode?: "enter" | "none";
12
11
  };
13
- declare const ComposerInput: ({
14
- submitMode,
15
- onKeyPress: onKeyPressProp,
16
- numberOfLines,
17
- style,
18
- ...props
19
- }: ComposerInputProps) => import("react").JSX.Element;
12
+ declare const ComposerInput: ({ submitMode, onKeyPress: onKeyPressProp, numberOfLines, style, ...props }: ComposerInputProps) => import("react").JSX.Element;
20
13
  //#endregion
21
14
  export { ComposerInput, ComposerInputProps };
22
15
  //# sourceMappingURL=ComposerInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerInput.d.ts","names":[],"sources":["../../../src/primitives/composer/ComposerInput.tsx"],"mappings":";;;KAWY,kBAAA,GAAqB,IAAI,CACnC,cAAA;;AADF;;;;;EAUE,UAAA;AAAA;AAAA,cAeW,aAAA;EAAiB,UAAA;EAAA,UAAA,EAAA,cAAA;EAAA,aAAA;EAAA,KAAA;EAAA,GAAA;AAAA,GAM3B,kBAAA,qBAAkB,GAAA,CAAA,OAAA"}
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"}
@@ -5,14 +5,27 @@ import { jsx } from "react/jsx-runtime";
5
5
  import { useEffect, useRef } from "@assistant-ui/tap/react-shim";
6
6
  import { flushTapSync } from "@assistant-ui/tap";
7
7
  //#region src/primitives/composer/ComposerInput.tsx
8
+ const getWebTextareaMaxHeight = (el) => {
9
+ const computedMaxHeight = globalThis.getComputedStyle?.(el).maxHeight;
10
+ const parsedComputedMaxHeight = Number.parseFloat(computedMaxHeight ?? "");
11
+ if (Number.isFinite(parsedComputedMaxHeight)) return parsedComputedMaxHeight;
12
+ const inlineMaxHeight = Number.parseFloat(el.style.maxHeight);
13
+ return Number.isFinite(inlineMaxHeight) ? inlineMaxHeight : null;
14
+ };
8
15
  const adjustWebTextareaHeight = (ref) => {
9
16
  if (Platform.OS !== "web") return;
10
17
  const el = ref.current;
11
18
  if (!el) return;
12
19
  if (el.rows !== 1) el.rows = 1;
13
- el.style.overflow = "hidden";
20
+ el.style.overflowX = "hidden";
21
+ el.style.overflowY = "hidden";
14
22
  el.style.height = "auto";
15
- el.style.height = `${el.scrollHeight}px`;
23
+ const scrollHeight = el.scrollHeight;
24
+ const maxHeight = getWebTextareaMaxHeight(el);
25
+ const needsScrollbar = maxHeight !== null && scrollHeight > maxHeight;
26
+ const nextHeight = maxHeight === null ? scrollHeight : Math.min(scrollHeight, maxHeight);
27
+ el.style.overflowY = needsScrollbar ? "auto" : "hidden";
28
+ el.style.height = `${nextHeight}px`;
16
29
  };
17
30
  const ComposerInput = (t0) => {
18
31
  const $ = c(22);
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerInput.js","names":["useCallback","useEffect","useRef","Platform","TextInput","NativeSyntheticEvent","TextInputKeyPressEventData","TextInputProps","useAui","useAuiState","flushTapSync","ComposerInputProps","Omit","submitMode","adjustWebTextareaHeight","ref","React","RefObject","OS","el","current","HTMLTextAreaElement","rows","style","overflow","height","scrollHeight","ComposerInput","t0","$","_c","numberOfLines","onKeyPressProp","props","t1","onKeyPress","undefined","aui","text","_temp","inputRef","t2","value","composer","setText","onChangeText","t3","Symbol","for","t4","t5","e","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 adjustWebTextareaHeight = (ref: React.RefObject<TextInput | null>) => {\n if (Platform.OS !== \"web\") return;\n // On web, the TextInput ref IS the DOM element\n const el = ref.current as unknown as HTMLTextAreaElement | null;\n if (!el) return;\n // Ensure rows=1 so scrollHeight reflects actual content\n if (el.rows !== 1) el.rows = 1;\n el.style.overflow = \"hidden\";\n el.style.height = \"auto\";\n el.style.height = `${el.scrollHeight}px`;\n};\n\nexport const ComposerInput = ({\n submitMode = \"enter\",\n onKeyPress: onKeyPressProp,\n numberOfLines,\n style,\n ...props\n}: ComposerInputProps) => {\n const aui = useAui();\n const text = useAuiState((s) => s.composer.text);\n const inputRef = useRef<TextInput>(null);\n\n const onChangeText = useCallback(\n (value: string) => {\n 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\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":";;;;;;;AAwBA,MAAMc,2BAA2BC,QAA2C;CAC1E,IAAIZ,SAASe,OAAO,OAAO;CAE3B,MAAMC,KAAKJ,IAAIK;CACf,IAAI,CAACD,IAAI;CAET,IAAIA,GAAGG,SAAS,GAAGH,GAAGG,OAAO;CAC7BH,GAAGI,MAAMC,WAAW;CACpBL,GAAGI,MAAME,SAAS;CAClBN,GAAGI,MAAME,SAAS,GAAGN,GAAGO,aAAY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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","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\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":";;;;;;;AAwBA,MAAMc,2BAA2BC,OAA4B;CAC3D,MAAME,oBAAoBC,WAAWC,mBAAmBJ,EAAE,CAAC,CAACK;CAC5D,MAAMC,0BAA0BC,OAAOC,WAAWN,qBAAqB,EAAE;CACzE,IAAIK,OAAOE,SAASH,uBAAuB,GAAG,OAAOA;CAErD,MAAMI,kBAAkBH,OAAOC,WAAWR,GAAGW,MAAMN,SAAS;CAC5D,OAAOE,OAAOE,SAASC,eAAe,IAAIA,kBAAkB;AAC9D;AAEA,MAAME,2BAA2BC,QAA2C;CAC1E,IAAIzB,SAAS4B,OAAO,OAAO;CAE3B,MAAMhB,KAAKa,IAAII;CACf,IAAI,CAACjB,IAAI;CAET,IAAIA,GAAGkB,SAAS,GAAGlB,GAAGkB,OAAO;CAE7BlB,GAAGW,MAAMQ,YAAY;CACrBnB,GAAGW,MAAMS,YAAY;CACrBpB,GAAGW,MAAMU,SAAS;CAElB,MAAMC,eAAetB,GAAGsB;CACxB,MAAMjB,YAAYN,wBAAwBC,EAAE;CAC5C,MAAMuB,iBAAiBlB,cAAc,QAAQiB,eAAejB;CAC5D,MAAMmB,aACJnB,cAAc,OAAOiB,eAAeG,KAAKC,IAAIJ,cAAcjB,SAAS;CAEtEL,GAAGW,MAAMS,YAAYG,iBAAiB,SAAS;CAC/CvB,GAAGW,MAAMU,SAAS,GAAGG,WAAU;AACjC;AAEA,MAAaG,iBAAgBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAtB;CAAA,IAAAuB;CAAA,IAAAL,EAAA,OAAAD,IAAA;EAAC,CA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