@assistant-ui/react-native 0.1.28 → 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.
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/primitives/actionBar/ActionBarCopy.d.ts +1 -8
- package/dist/primitives/actionBar/ActionBarCopy.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarEdit.d.ts +1 -6
- package/dist/primitives/actionBar/ActionBarEdit.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts +1 -5
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts +1 -5
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarReload.d.ts +1 -6
- package/dist/primitives/actionBar/ActionBarReload.d.ts.map +1 -1
- package/dist/primitives/actionBar.d.ts +0 -2
- package/dist/primitives/attachment/AttachmentName.d.ts +0 -1
- package/dist/primitives/attachment/AttachmentName.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentRemove.d.ts +1 -5
- package/dist/primitives/attachment/AttachmentRemove.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentRoot.d.ts +1 -5
- package/dist/primitives/attachment/AttachmentRoot.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentThumb.d.ts +0 -1
- package/dist/primitives/attachment/AttachmentThumb.d.ts.map +1 -1
- package/dist/primitives/attachment.d.ts +0 -2
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts +0 -1
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts +1 -6
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNumber.d.ts +0 -1
- package/dist/primitives/branchPicker/BranchPickerNumber.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts +1 -6
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts.map +1 -1
- package/dist/primitives/branchPicker.d.ts +0 -2
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts +1 -5
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts +1 -5
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts.map +1 -1
- package/dist/primitives/chainOfThought.d.ts +0 -2
- package/dist/primitives/composer/ComposerAddAttachment.d.ts +1 -6
- package/dist/primitives/composer/ComposerAddAttachment.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAttachments.d.ts +3 -16
- package/dist/primitives/composer/ComposerAttachments.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAttachments.js.map +1 -1
- package/dist/primitives/composer/ComposerCancel.d.ts +1 -6
- package/dist/primitives/composer/ComposerCancel.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerInput.d.ts +1 -8
- package/dist/primitives/composer/ComposerInput.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerInput.js +15 -2
- package/dist/primitives/composer/ComposerInput.js.map +1 -1
- package/dist/primitives/composer/ComposerRoot.d.ts +1 -5
- package/dist/primitives/composer/ComposerRoot.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerSend.d.ts +1 -6
- package/dist/primitives/composer/ComposerSend.d.ts.map +1 -1
- package/dist/primitives/composer.d.ts +3 -5
- package/dist/primitives/composer.js.map +1 -1
- package/dist/primitives/error/ErrorMessage.d.ts +1 -5
- package/dist/primitives/error/ErrorMessage.d.ts.map +1 -1
- package/dist/primitives/error/ErrorRoot.d.ts +1 -5
- package/dist/primitives/error/ErrorRoot.d.ts.map +1 -1
- package/dist/primitives/error/index.d.ts +0 -2
- package/dist/primitives/message/MessageAttachments.d.ts +2 -9
- package/dist/primitives/message/MessageAttachments.d.ts.map +1 -1
- package/dist/primitives/message/MessageAttachments.js.map +1 -1
- package/dist/primitives/message/MessageContent.d.ts +1 -10
- package/dist/primitives/message/MessageContent.d.ts.map +1 -1
- package/dist/primitives/message/MessageIf.d.ts +1 -8
- package/dist/primitives/message/MessageIf.d.ts.map +1 -1
- package/dist/primitives/message/MessageParts.d.ts +0 -1
- package/dist/primitives/message/MessageParts.d.ts.map +1 -1
- package/dist/primitives/message/MessageRoot.d.ts +1 -5
- package/dist/primitives/message/MessageRoot.d.ts.map +1 -1
- package/dist/primitives/message.d.ts +3 -5
- package/dist/primitives/message.js.map +1 -1
- package/dist/primitives/suggestion/SuggestionDescription.d.ts +1 -5
- package/dist/primitives/suggestion/SuggestionDescription.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionTitle.d.ts +1 -5
- package/dist/primitives/suggestion/SuggestionTitle.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionTrigger.d.ts +1 -8
- package/dist/primitives/suggestion/SuggestionTrigger.d.ts.map +1 -1
- package/dist/primitives/suggestion.d.ts +0 -2
- package/dist/primitives/thread/ThreadEmpty.d.ts +1 -4
- package/dist/primitives/thread/ThreadEmpty.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadIf.d.ts +1 -6
- package/dist/primitives/thread/ThreadIf.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadMessages.d.ts +4 -11
- package/dist/primitives/thread/ThreadMessages.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadMessages.js +11 -9
- package/dist/primitives/thread/ThreadMessages.js.map +1 -1
- package/dist/primitives/thread/ThreadRoot.d.ts +1 -5
- package/dist/primitives/thread/ThreadRoot.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadSuggestion.d.ts +3 -10
- package/dist/primitives/thread/ThreadSuggestion.d.ts.map +1 -1
- package/dist/primitives/thread.d.ts +0 -2
- package/dist/primitives/threadList/ThreadListItems.d.ts +1 -5
- package/dist/primitives/threadList/ThreadListItems.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListNew.d.ts +1 -5
- package/dist/primitives/threadList/ThreadListNew.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListRoot.d.ts +1 -5
- package/dist/primitives/threadList/ThreadListRoot.d.ts.map +1 -1
- package/dist/primitives/threadList.d.ts +0 -2
- package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts +1 -5
- package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts +1 -5
- package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts +1 -5
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts +1 -5
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts +1 -5
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts.map +1 -1
- package/dist/primitives/threadListItem.d.ts +0 -2
- package/package.json +7 -7
- package/src/index.ts +5 -0
- package/src/primitives/composer/ComposerAttachments.tsx +3 -15
- package/src/primitives/composer/ComposerInput.test.tsx +106 -8
- package/src/primitives/composer/ComposerInput.tsx +21 -2
- package/src/primitives/composer.ts +2 -0
- package/src/primitives/message/MessageAttachments.tsx +3 -8
- package/src/primitives/message.ts +2 -0
- package/src/primitives/thread/ThreadMessages.test.tsx +21 -1
- 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, DataMessagePartComponent, DataMessagePartProps, DataRenderers, EmptyMessagePartComponent, EmptyMessagePartProps, FileMessagePartComponent, FileMessagePartProps, GroupByContext, ImageMessagePartComponent, ImageMessagePartProps, Interactables, McpToolkitDefinition, MessageByIndexProvider, PartByIndexProvider, ProviderToolConfig, ReasoningGroupComponent, ReasoningGroupProps, ReasoningMessagePartComponent, ReasoningMessagePartProps, RuntimeAdapterProvider, RuntimeAdapters, SourceMessagePartComponent, SourceMessagePartProps, SuggestionByIndexProvider, TextMessagePartComponent, TextMessagePartProps, TextMessagePartProvider, ThreadListItemByIndexProvider, 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, 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, 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, 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 };
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,6 @@ import { suggestion_exports } from "./primitives/suggestion.js";
|
|
|
14
14
|
import { error_exports } from "./primitives/error/index.js";
|
|
15
15
|
import { CompositeAttachmentAdapter, ExportedMessageRepository, InMemoryThreadListAdapter, ModelContextRegistry, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, createVoiceSession, fromThreadMessageLike, generateId, mergeModelContexts, tool, unstable_formatInteractableSnapshot, unstable_getInteractableSnapshots, unstable_getInteractableVersions } from "@assistant-ui/core";
|
|
16
16
|
import { AuiIf, AuiProvider, useAui, useAuiEvent, useAuiState } from "@assistant-ui/store";
|
|
17
|
-
import { ChainOfThoughtByIndicesProvider, ChainOfThoughtPartByIndexProvider, DataRenderers, Interactables, MessageByIndexProvider, PartByIndexProvider, RuntimeAdapterProvider, SuggestionByIndexProvider, TextMessagePartProvider, ThreadListItemByIndexProvider, 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";
|
|
17
|
+
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
18
|
import { ChainOfThoughtClient, ModelContext as ModelContextClient, Suggestions } from "@assistant-ui/core/store";
|
|
19
|
-
export { actionBar_exports as ActionBarPrimitive, AssistantRuntimeProvider, attachment_exports as AttachmentPrimitive, AuiIf, AuiProvider, branchPicker_exports as BranchPickerPrimitive, ChainOfThoughtByIndicesProvider, ChainOfThoughtClient, ChainOfThoughtPartByIndexProvider, chainOfThought_exports as ChainOfThoughtPrimitive, composer_exports as ComposerPrimitive, CompositeAttachmentAdapter, DataRenderers, error_exports as ErrorPrimitive, ExportedMessageRepository, InMemoryThreadListAdapter, Interactables, MessageByIndexProvider, message_exports as MessagePrimitive, ModelContextClient, ModelContextRegistry, PartByIndexProvider, RuntimeAdapterProvider, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, SuggestionByIndexProvider, suggestion_exports as SuggestionPrimitive, Suggestions, TextMessagePartProvider, ThreadListItemByIndexProvider, threadListItem_exports as ThreadListItemPrimitive, 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 };
|
|
19
|
+
export { actionBar_exports as ActionBarPrimitive, AssistantRuntimeProvider, attachment_exports as AttachmentPrimitive, 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 };
|
|
@@ -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":"
|
|
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":"
|
|
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":"
|
|
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":"
|
|
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":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentName.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentName.tsx"],"mappings":"
|
|
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":"
|
|
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":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentThumb.d.ts","names":[],"sources":["../../../src/primitives/attachment/AttachmentThumb.tsx"],"mappings":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerCount.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerCount.tsx"],"mappings":"
|
|
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":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchPickerNumber.d.ts","names":[],"sources":["../../../src/primitives/branchPicker/BranchPickerNumber.tsx"],"mappings":"
|
|
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":"
|
|
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":"
|
|
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":"
|
|
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":"
|
|
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
|
|
6
|
-
|
|
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 {
|
|
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":"
|
|
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":["
|
|
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":"
|
|
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":"
|
|
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.
|
|
20
|
+
el.style.overflowX = "hidden";
|
|
21
|
+
el.style.overflowY = "hidden";
|
|
14
22
|
el.style.height = "auto";
|
|
15
|
-
|
|
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);
|