@assistant-ui/react-native 0.1.41 → 0.1.43
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 +5 -4
- package/dist/index.js +4 -3
- package/dist/primitives/actionBar/ActionBarCopy.d.ts +3 -3
- package/dist/primitives/actionBar/ActionBarCopy.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarCopy.js +23 -19
- package/dist/primitives/actionBar/ActionBarCopy.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarEdit.d.ts +7 -5
- package/dist/primitives/actionBar/ActionBarEdit.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarEdit.js +21 -11
- package/dist/primitives/actionBar/ActionBarEdit.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts +3 -3
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.js +26 -16
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts +3 -3
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.js +26 -16
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarReload.d.ts +7 -5
- package/dist/primitives/actionBar/ActionBarReload.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarReload.js +21 -11
- package/dist/primitives/actionBar/ActionBarReload.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarSpeak.d.ts +14 -0
- package/dist/primitives/actionBar/ActionBarSpeak.d.ts.map +1 -0
- package/dist/primitives/actionBar/ActionBarSpeak.js +61 -0
- package/dist/primitives/actionBar/ActionBarSpeak.js.map +1 -0
- package/dist/primitives/actionBar/ActionBarStopSpeaking.d.ts +14 -0
- package/dist/primitives/actionBar/ActionBarStopSpeaking.d.ts.map +1 -0
- package/dist/primitives/actionBar/ActionBarStopSpeaking.js +61 -0
- package/dist/primitives/actionBar/ActionBarStopSpeaking.js.map +1 -0
- package/dist/primitives/actionBar.d.ts +4 -2
- package/dist/primitives/actionBar.js +6 -2
- package/dist/primitives/actionBar.js.map +1 -1
- package/dist/primitives/attachment/AttachmentName.d.ts +2 -3
- package/dist/primitives/attachment/AttachmentName.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentRemove.d.ts +2 -3
- package/dist/primitives/attachment/AttachmentRemove.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentRoot.d.ts +2 -3
- package/dist/primitives/attachment/AttachmentRoot.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentThumb.d.ts +2 -3
- package/dist/primitives/attachment/AttachmentThumb.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts +2 -3
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts +7 -5
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNext.js +21 -11
- package/dist/primitives/branchPicker/BranchPickerNext.js.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNumber.d.ts +2 -3
- package/dist/primitives/branchPicker/BranchPickerNumber.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts +7 -5
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerPrevious.js +21 -11
- package/dist/primitives/branchPicker/BranchPickerPrevious.js.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts +2 -3
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts +2 -3
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.d.ts +4 -7
- package/dist/primitives/composer/ComposerAddAttachment.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.js +2 -4
- package/dist/primitives/composer/ComposerAddAttachment.js.map +1 -1
- package/dist/primitives/composer/ComposerAttachments.d.ts +4 -5
- package/dist/primitives/composer/ComposerAttachments.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerCancel.d.ts +2 -3
- package/dist/primitives/composer/ComposerCancel.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerInput.d.ts +2 -3
- package/dist/primitives/composer/ComposerInput.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerQuote.d.ts +2 -3
- package/dist/primitives/composer/ComposerQuote.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerQuoteDismiss.d.ts +2 -3
- package/dist/primitives/composer/ComposerQuoteDismiss.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerQuoteText.d.ts +2 -3
- package/dist/primitives/composer/ComposerQuoteText.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerRoot.d.ts +2 -3
- package/dist/primitives/composer/ComposerRoot.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerSend.d.ts +2 -3
- package/dist/primitives/composer/ComposerSend.d.ts.map +1 -1
- package/dist/primitives/error/ErrorMessage.d.ts +2 -3
- package/dist/primitives/error/ErrorMessage.d.ts.map +1 -1
- package/dist/primitives/error/ErrorRoot.d.ts +2 -3
- package/dist/primitives/error/ErrorRoot.d.ts.map +1 -1
- package/dist/primitives/message/MessageAttachments.d.ts +4 -5
- package/dist/primitives/message/MessageAttachments.d.ts.map +1 -1
- package/dist/primitives/message/MessageContent.d.ts +2 -3
- package/dist/primitives/message/MessageContent.d.ts.map +1 -1
- package/dist/primitives/message/MessageIf.d.ts +2 -3
- package/dist/primitives/message/MessageIf.d.ts.map +1 -1
- package/dist/primitives/message/MessageParts.d.ts +3 -3
- package/dist/primitives/message/MessageParts.d.ts.map +1 -1
- package/dist/primitives/message/MessageRoot.d.ts +2 -3
- package/dist/primitives/message/MessageRoot.d.ts.map +1 -1
- package/dist/primitives/messagePart/MessagePartImage.d.ts +11 -0
- package/dist/primitives/messagePart/MessagePartImage.d.ts.map +1 -0
- package/dist/primitives/messagePart/MessagePartImage.js +39 -0
- package/dist/primitives/messagePart/MessagePartImage.js.map +1 -0
- package/dist/primitives/messagePart/MessagePartInProgress.d.ts +2 -0
- package/dist/primitives/messagePart/MessagePartInProgress.js +2 -0
- package/dist/primitives/messagePart/MessagePartText.d.ts +11 -0
- package/dist/primitives/messagePart/MessagePartText.d.ts.map +1 -0
- package/dist/primitives/messagePart/MessagePartText.js +32 -0
- package/dist/primitives/messagePart/MessagePartText.js.map +1 -0
- package/dist/primitives/messagePart.d.ts +10 -0
- package/dist/primitives/messagePart.d.ts.map +1 -0
- package/dist/primitives/messagePart.js +16 -0
- package/dist/primitives/messagePart.js.map +1 -0
- package/dist/primitives/queueItem/QueueItemRemove.d.ts +2 -3
- package/dist/primitives/queueItem/QueueItemRemove.d.ts.map +1 -1
- package/dist/primitives/queueItem/QueueItemSteer.d.ts +2 -3
- package/dist/primitives/queueItem/QueueItemSteer.d.ts.map +1 -1
- package/dist/primitives/queueItem/QueueItemText.d.ts +2 -3
- package/dist/primitives/queueItem/QueueItemText.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionDescription.d.ts +2 -3
- package/dist/primitives/suggestion/SuggestionDescription.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionTitle.d.ts +2 -3
- package/dist/primitives/suggestion/SuggestionTitle.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionTrigger.d.ts +2 -3
- package/dist/primitives/suggestion/SuggestionTrigger.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadEmpty.d.ts +2 -3
- package/dist/primitives/thread/ThreadEmpty.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadIf.d.ts +2 -3
- package/dist/primitives/thread/ThreadIf.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadMessages.d.ts +9 -5
- package/dist/primitives/thread/ThreadMessages.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadMessages.js +244 -171
- package/dist/primitives/thread/ThreadMessages.js.map +1 -1
- package/dist/primitives/thread/ThreadRoot.d.ts +2 -3
- package/dist/primitives/thread/ThreadRoot.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadSuggestion.d.ts +2 -3
- package/dist/primitives/thread/ThreadSuggestion.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListItems.d.ts +2 -3
- package/dist/primitives/threadList/ThreadListItems.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListNew.d.ts +2 -3
- package/dist/primitives/threadList/ThreadListNew.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListRoot.d.ts +2 -3
- package/dist/primitives/threadList/ThreadListRoot.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts +2 -3
- package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts +2 -3
- package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts +2 -3
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts +2 -3
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts +2 -3
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts.map +1 -1
- package/package.json +13 -11
- package/src/index.ts +30 -0
- package/src/primitives/accessibilityRole.test.tsx +20 -0
- package/src/primitives/actionBar/ActionBar.test.tsx +299 -0
- package/src/primitives/actionBar/ActionBarCopy.tsx +8 -3
- package/src/primitives/actionBar/ActionBarEdit.tsx +16 -4
- package/src/primitives/actionBar/ActionBarFeedbackNegative.tsx +14 -3
- package/src/primitives/actionBar/ActionBarFeedbackPositive.tsx +14 -3
- package/src/primitives/actionBar/ActionBarReload.tsx +16 -4
- package/src/primitives/actionBar/ActionBarSpeak.tsx +42 -0
- package/src/primitives/actionBar/ActionBarStopSpeaking.tsx +42 -0
- package/src/primitives/actionBar.ts +8 -0
- package/src/primitives/branchPicker/BranchPickerNext.test.tsx +52 -3
- package/src/primitives/branchPicker/BranchPickerNext.tsx +16 -4
- package/src/primitives/branchPicker/BranchPickerPrevious.test.tsx +52 -6
- package/src/primitives/branchPicker/BranchPickerPrevious.tsx +16 -4
- package/src/primitives/composer/ComposerAddAttachment.tsx +3 -8
- package/src/primitives/messagePart/MessagePartImage.test.tsx +91 -0
- package/src/primitives/messagePart/MessagePartImage.tsx +33 -0
- package/src/primitives/messagePart/MessagePartInProgress.ts +1 -0
- package/src/primitives/messagePart/MessagePartText.test.tsx +80 -0
- package/src/primitives/messagePart/MessagePartText.tsx +36 -0
- package/src/primitives/messagePart.ts +10 -0
- package/src/primitives/thread/ThreadMessages.test.tsx +335 -54
- package/src/primitives/thread/ThreadMessages.tsx +104 -26
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { thread_d_exports } from "./primitives/thread.js";
|
|
|
6
6
|
import { composer_d_exports } from "./primitives/composer.js";
|
|
7
7
|
import { queueItem_d_exports } from "./primitives/queueItem.js";
|
|
8
8
|
import { message_d_exports } from "./primitives/message.js";
|
|
9
|
+
import { messagePart_d_exports } from "./primitives/messagePart.js";
|
|
9
10
|
import { threadList_d_exports } from "./primitives/threadList.js";
|
|
10
11
|
import { actionBar_d_exports } from "./primitives/actionBar.js";
|
|
11
12
|
import { branchPicker_d_exports } from "./primitives/branchPicker.js";
|
|
@@ -14,9 +15,9 @@ import { threadListItem_d_exports } from "./primitives/threadListItem.js";
|
|
|
14
15
|
import { chainOfThought_d_exports } from "./primitives/chainOfThought.js";
|
|
15
16
|
import { suggestion_d_exports } from "./primitives/suggestion.js";
|
|
16
17
|
import { index_d_exports } from "./primitives/error/index.js";
|
|
17
|
-
import { AppendMessage, AssistantRuntime, Attachment, AttachmentAdapter, AttachmentRuntime, ChatModelAdapter, ChatModelRunOptions, ChatModelRunResult, CompleteAttachment, ComposerRuntime, CompositeAttachmentAdapter, CreateAttachment, CreateSuggestionAdapterOptions, DataMessagePart, EditComposerRuntime, ExportedMessageRepository, ExportedMessageRepositoryItem, FeedbackAdapter, FileMessagePart, ImageMessagePart, InMemoryThreadListAdapter, LanguageModelConfig, LanguageModelV1CallSettings, MessageRole, MessageRuntime, MessageStatus, ModelContext, ModelContextProvider, ModelContextRegistry, ModelContextRegistryInstructionHandle, ModelContextRegistryProviderHandle, ModelContextRegistryToolHandle, PendingAttachment, RealtimeVoiceAdapter, ReasoningMessagePart, RemoteThreadListAdapter, RemoteThreadListOptions, RemoteThreadListProviderComponent, RespondToToolApprovalOptions, RunConfig, RuntimeCapabilities, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, SourceMessagePart, SuggestionAdapter, SuggestionAdapterGenerateOptions, TextMessagePart, ThreadAssistantMessage, ThreadAssistantMessagePart, ThreadComposerRuntime, ThreadHistoryAdapter, ThreadListItemRuntime, ThreadListRuntime, ThreadMessage, ThreadMessageLike, ThreadRuntime, ThreadSystemMessage, ThreadUserMessage, ThreadUserMessagePart, ToolApprovalDisplay, ToolApprovalOption, ToolApprovalOptionKind, ToolApprovalResponse, ToolCallMessagePart, ToolCallTiming, ToolModelContentPart, Unstable_AudioMessagePart, Unstable_InteractableSnapshotEntry, Unstable_InteractableVersion, Unsubscribe, VoiceSessionControls, VoiceSessionHelpers, createSuggestionAdapter, createVoiceSession, fromThreadMessageLike, generateId, mergeModelContexts, tool, toolApprovalAcceptsText, unstable_formatInteractableSnapshot, unstable_getInteractableSnapshots, unstable_getInteractableVersions } from "@assistant-ui/core";
|
|
18
|
+
import { AppendMessage, AssistantRuntime, Attachment, AttachmentAdapter, AttachmentRuntime, ChatModelAdapter, ChatModelRunOptions, ChatModelRunResult, CompleteAttachment, ComposerRuntime, CompositeAttachmentAdapter, CreateAttachment, CreateSuggestionAdapterOptions, DataMessagePart, EditComposerRuntime, ExportedMessageRepository, ExportedMessageRepositoryItem, ExternalStoreAdapter, ExternalStoreBranchChange, ExternalStoreMessageConverter, ExternalStoreSharedOptions, ExternalStoreThreadData, ExternalStoreThreadListAdapter, ExternalThreadBranchAdapter, ExternalThreadQueueAdapter, FeedbackAdapter, FileMessagePart, ImageMessagePart, InMemoryThreadListAdapter, LanguageModelConfig, LanguageModelV1CallSettings, MessageNotSentError, MessageQueueController, MessageQueueDriver, MessageRole, MessageRuntime, MessageStatus, ModelContext, ModelContextProvider, ModelContextRegistry, ModelContextRegistryInstructionHandle, ModelContextRegistryProviderHandle, ModelContextRegistryToolHandle, PendingAttachment, RealtimeVoiceAdapter, ReasoningMessagePart, RemoteThreadListAdapter, RemoteThreadListOptions, RemoteThreadListProviderComponent, RespondToToolApprovalOptions, RunConfig, RuntimeCapabilities, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, SourceMessagePart, SuggestionAdapter, SuggestionAdapterGenerateOptions, TextMessagePart, ThreadAssistantMessage, ThreadAssistantMessagePart, ThreadComposerRuntime, ThreadHistoryAdapter, ThreadListItemRuntime, ThreadListRuntime, ThreadMessage, ThreadMessageLike, ThreadRuntime, ThreadSystemMessage, ThreadUserMessage, ThreadUserMessagePart, ToolApprovalDisplay, ToolApprovalOption, ToolApprovalOptionKind, ToolApprovalResponse, ToolCallMessagePart, ToolCallTiming, ToolModelContentPart, Unstable_AudioMessagePart, Unstable_InteractableSnapshotEntry, Unstable_InteractableVersion, Unsubscribe, VoiceSessionControls, VoiceSessionHelpers, bindExternalStoreMessage, createMessageQueue, createSuggestionAdapter, createVoiceSession, fromThreadMessageLike, generateId, getExternalStoreMessages, isMessageNotSentError, mergeModelContexts, pickExternalStoreSharedOptions, tool, toolApprovalAcceptsText, unstable_formatInteractableSnapshot, unstable_getInteractableSnapshots, unstable_getInteractableVersions } from "@assistant-ui/core";
|
|
18
19
|
import { AssistantClient, AssistantEventCallback, AssistantEventName, AssistantEventPayload, AssistantEventScope, AssistantEventSelector, AssistantState, AuiConfig, AuiIf, AuiProvider, useAui, useAuiEvent, useAuiState } from "@assistant-ui/store";
|
|
19
|
-
import { AssistantContextConfig, AssistantDataUI, AssistantDataUIProps, AssistantInteractableProps, AssistantTool, AssistantToolProps, AssistantToolUI, AssistantToolUIProps, ChainOfThoughtByIndicesProvider, ChainOfThoughtPartByIndexProvider, ComposerAttachmentByIndexProvider, DataMessagePartComponent, DataMessagePartProps, DataRenderers, EmptyMessagePartComponent, EmptyMessagePartProps, FileMessagePartComponent, FileMessagePartProps, GroupByContext, ImageMessagePartComponent, ImageMessagePartProps, Interactables, McpToolkitDefinition, McpToolkitEntry, McpToolkitToolConfig, MessageAttachmentByIndexProvider, MessageByIndexProvider, PartByIndexProvider, ProviderToolConfig, ReasoningGroupComponent, ReasoningGroupProps, ReasoningMessagePartComponent, ReasoningMessagePartProps, RuntimeAdapterProvider, RuntimeAdapters, SourceMessagePartComponent, SourceMessagePartProps, SuggestionByIndexProvider, TextMessagePartComponent, TextMessagePartProps, TextMessagePartProvider, ThreadListItemByIndexProvider, ThreadListItemRuntimeProvider, ToolArgsStatus, ToolCallMessagePartComponent, ToolCallMessagePartProps, ToolCallText, ToolDefinition, Toolkit, ToolkitDefinition, ToolkitDefinitionEntry, Tools, Unstable_AudioMessagePartComponent, Unstable_AudioMessagePartProps, Unstable_InferInteractableState, Unstable_InteractableConfig, Unstable_InteractableDefinition, Unstable_InteractablePersistedState, Unstable_InteractablePersistenceAdapter, Unstable_InteractablePersistenceStatus, Unstable_InteractableRegistration, Unstable_InteractableStateSchema, Unstable_InteractableToolConfig, Unstable_InteractableToolRenderProps, Unstable_InteractableVersionInfo, Unstable_InteractablesClientSchema, Unstable_InteractablesConfig, Unstable_InteractablesMethods, Unstable_InteractablesState, defineMcpToolkit, defineToolkit, externalTool, groupPartByType, hitl, hitlTool, humanTool, makeAssistantDataUI, makeAssistantTool, makeAssistantToolUI, providerTool, stubTool, unstable_Interactables, unstable_interactableTool, unstable_useInteractable, unstable_useInteractableState, unstable_useInteractableVersions, unstable_useThreadMessageIds, useAssistantContext, useAssistantDataUI, useAssistantInstructions, useAssistantInteractable, useAssistantTool, useAssistantToolUI, useAuiToolOverrides, useInlineRender, useInteractableState, useRuntimeAdapters, useToolArgsStatus, useVoiceControls, useVoiceState, useVoiceVolume } from "@assistant-ui/core/react";
|
|
20
|
-
import { AttachmentState, ChainOfThoughtClient, ComposerState, MessageState, ModelContext as ModelContextClient, QueueItemState, SuggestionConfig, Suggestions, ThreadListItemState, ThreadState, ThreadsState } from "@assistant-ui/core/store";
|
|
20
|
+
import { AssistantContextConfig, AssistantDataUI, AssistantDataUIProps, AssistantInteractableProps, AssistantTool, AssistantToolProps, AssistantToolUI, AssistantToolUIProps, ChainOfThoughtByIndicesProvider, ChainOfThoughtPartByIndexProvider, ComposerAttachmentByIndexProvider, DataMessagePartComponent, DataMessagePartProps, DataRenderers, EmptyMessagePartComponent, EmptyMessagePartProps, ExternalMessageConversionCache as Unstable_ExternalMessageConversionCache, FileMessagePartComponent, FileMessagePartProps, GroupByContext, ImageMessagePartComponent, ImageMessagePartProps, Interactables, JoinStrategy, 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, convertExternalMessages as unstable_convertExternalMessages, createExternalMessageConversionCache as unstable_createExternalMessageConversionCache, createMessageConverter as unstable_createMessageConverter, 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, useExternalMessageConverter, useExternalStoreRuntime, useExternalStoreSharedOptions, useInlineRender, useInteractableState, useRuntimeAdapters, useToolArgsStatus, useVoiceControls, useVoiceState, useVoiceVolume } from "@assistant-ui/core/react";
|
|
21
|
+
import { AttachmentState, ChainOfThoughtClient, ComposerState, MessageState, ModelContext as ModelContextClient, QueueItemState, SuggestionConfig, Suggestions, TaskState, ThreadListItemState, ThreadState, ThreadsState } from "@assistant-ui/core/store";
|
|
21
22
|
import { Tool } from "assistant-stream";
|
|
22
|
-
export { actionBar_d_exports as ActionBarPrimitive, type AppendMessage, type AssistantClient, type AssistantContextConfig, type AssistantDataUI, type AssistantDataUIProps, type AssistantEventCallback, type AssistantEventName, type AssistantEventPayload, type AssistantEventScope, type AssistantEventSelector, type AssistantInteractableProps, type AssistantRuntime, AssistantRuntimeProvider, type AssistantState, type AssistantTool, type AssistantToolProps, type AssistantToolUI, type AssistantToolUIProps, type Attachment, type AttachmentAdapter, attachment_d_exports as AttachmentPrimitive, type AttachmentRuntime, type AttachmentState, AuiConfig, AuiIf, AuiProvider, branchPicker_d_exports as BranchPickerPrimitive, ChainOfThoughtByIndicesProvider, ChainOfThoughtClient, ChainOfThoughtPartByIndexProvider, chainOfThought_d_exports as ChainOfThoughtPrimitive, type ChatModelAdapter, type ChatModelRunOptions, type ChatModelRunResult, type CompleteAttachment, ComposerAttachmentByIndexProvider, composer_d_exports as ComposerPrimitive, type ComposerRuntime, type ComposerState, CompositeAttachmentAdapter, type CreateAttachment, type CreateSuggestionAdapterOptions, type DataMessagePart, type DataMessagePartComponent, type DataMessagePartProps, DataRenderers, type EditComposerRuntime, type EmptyMessagePartComponent, type EmptyMessagePartProps, index_d_exports as ErrorPrimitive, ExportedMessageRepository, type ExportedMessageRepositoryItem, type FeedbackAdapter, type FileMessagePart, type FileMessagePartComponent, type FileMessagePartProps, type GroupByContext, type ImageMessagePart, type ImageMessagePartComponent, type ImageMessagePartProps, InMemoryThreadListAdapter, Interactables, type LanguageModelConfig, type LanguageModelV1CallSettings, type LocalRuntimeOptions, type McpToolkitDefinition, type McpToolkitEntry, type McpToolkitToolConfig, MessageAttachmentByIndexProvider, MessageByIndexProvider, message_d_exports as MessagePrimitive, type MessageRole, type MessageRuntime, type MessageState, type MessageStatus, type ModelContext, ModelContextClient, type ModelContextProvider, ModelContextRegistry, type ModelContextRegistryInstructionHandle, type ModelContextRegistryProviderHandle, type ModelContextRegistryToolHandle, PartByIndexProvider, type PendingAttachment, type ProviderToolConfig, queueItem_d_exports as QueueItemPrimitive, type QueueItemState, type RealtimeVoiceAdapter, type ReasoningGroupComponent, type ReasoningGroupProps, type ReasoningMessagePart, type ReasoningMessagePartComponent, type ReasoningMessagePartProps, type RemoteThreadListAdapter, type RemoteThreadListOptions, type RemoteThreadListProviderComponent, type RespondToToolApprovalOptions, type RunConfig, RuntimeAdapterProvider, type RuntimeAdapters, type RuntimeCapabilities, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, type SourceMessagePart, type SourceMessagePartComponent, type SourceMessagePartProps, type SuggestionAdapter, type SuggestionAdapterGenerateOptions, 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 ToolApprovalDisplay, 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, createSuggestionAdapter, createVoiceSession, defineMcpToolkit, defineToolkit, externalTool, fromThreadMessageLike, generateId, groupPartByType, hitl, hitlTool, humanTool, makeAssistantDataUI, makeAssistantTool, makeAssistantToolUI, mergeModelContexts, providerTool, stubTool, tool, toolApprovalAcceptsText, 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 };
|
|
23
|
+
export { actionBar_d_exports as ActionBarPrimitive, type AppendMessage, type AssistantClient, type AssistantContextConfig, type AssistantDataUI, type AssistantDataUIProps, type AssistantEventCallback, type AssistantEventName, type AssistantEventPayload, type AssistantEventScope, type AssistantEventSelector, type AssistantInteractableProps, type AssistantRuntime, AssistantRuntimeProvider, type AssistantState, type AssistantTool, type AssistantToolProps, type AssistantToolUI, type AssistantToolUIProps, type Attachment, type AttachmentAdapter, attachment_d_exports as AttachmentPrimitive, type AttachmentRuntime, type AttachmentState, AuiConfig, AuiIf, AuiProvider, branchPicker_d_exports as BranchPickerPrimitive, ChainOfThoughtByIndicesProvider, ChainOfThoughtClient, ChainOfThoughtPartByIndexProvider, chainOfThought_d_exports as ChainOfThoughtPrimitive, type ChatModelAdapter, type ChatModelRunOptions, type ChatModelRunResult, type CompleteAttachment, ComposerAttachmentByIndexProvider, composer_d_exports as ComposerPrimitive, type ComposerRuntime, type ComposerState, CompositeAttachmentAdapter, type CreateAttachment, type CreateSuggestionAdapterOptions, type DataMessagePart, type DataMessagePartComponent, type DataMessagePartProps, DataRenderers, type EditComposerRuntime, type EmptyMessagePartComponent, type EmptyMessagePartProps, index_d_exports as ErrorPrimitive, ExportedMessageRepository, type ExportedMessageRepositoryItem, type ExternalStoreAdapter, type ExternalStoreBranchChange, type ExternalStoreMessageConverter, type ExternalStoreSharedOptions, type ExternalStoreThreadData, type ExternalStoreThreadListAdapter, type ExternalThreadBranchAdapter, type ExternalThreadQueueAdapter, type FeedbackAdapter, type FileMessagePart, type FileMessagePartComponent, type FileMessagePartProps, type GroupByContext, type ImageMessagePart, type ImageMessagePartComponent, type ImageMessagePartProps, InMemoryThreadListAdapter, Interactables, type JoinStrategy, type LanguageModelConfig, type LanguageModelV1CallSettings, type LocalRuntimeOptions, type McpToolkitDefinition, type McpToolkitEntry, type McpToolkitToolConfig, MessageAttachmentByIndexProvider, MessageByIndexProvider, MessageNotSentError, messagePart_d_exports as MessagePartPrimitive, message_d_exports as MessagePrimitive, type MessageQueueController, type MessageQueueDriver, type MessageRole, type MessageRuntime, type MessageState, type MessageStatus, type ModelContext, ModelContextClient, type ModelContextProvider, ModelContextRegistry, type ModelContextRegistryInstructionHandle, type ModelContextRegistryProviderHandle, type ModelContextRegistryToolHandle, PartByIndexProvider, type PendingAttachment, type ProviderToolConfig, queueItem_d_exports as QueueItemPrimitive, type QueueItemState, type RealtimeVoiceAdapter, type ReasoningGroupComponent, type ReasoningGroupProps, type ReasoningMessagePart, type ReasoningMessagePartComponent, type ReasoningMessagePartProps, type RemoteThreadListAdapter, type RemoteThreadListOptions, type RemoteThreadListProviderComponent, type RespondToToolApprovalOptions, type RunConfig, RuntimeAdapterProvider, type RuntimeAdapters, type RuntimeCapabilities, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, type SourceMessagePart, type SourceMessagePartComponent, type SourceMessagePartProps, type SuggestionAdapter, type SuggestionAdapterGenerateOptions, SuggestionByIndexProvider, type SuggestionConfig, suggestion_d_exports as SuggestionPrimitive, Suggestions, type TaskState, 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 ToolApprovalDisplay, 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_ExternalMessageConversionCache, 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, bindExternalStoreMessage, createMessageQueue, createSuggestionAdapter, createVoiceSession, defineMcpToolkit, defineToolkit, externalTool, fromThreadMessageLike, generateId, getExternalStoreMessages, groupPartByType, hitl, hitlTool, humanTool, isMessageNotSentError, makeAssistantDataUI, makeAssistantTool, makeAssistantToolUI, mergeModelContexts, pickExternalStoreSharedOptions, providerTool, stubTool, tool, toolApprovalAcceptsText, unstable_Interactables, unstable_convertExternalMessages, unstable_createExternalMessageConversionCache, unstable_createMessageConverter, 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, useExternalMessageConverter, useExternalStoreRuntime, useExternalStoreSharedOptions, useInlineRender, useInteractableState, useLocalRuntime, useRemoteThreadListRuntime, useRuntimeAdapters, useToolArgsStatus, useVoiceControls, useVoiceState, useVoiceVolume };
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { thread_exports } from "./primitives/thread.js";
|
|
|
5
5
|
import { composer_exports } from "./primitives/composer.js";
|
|
6
6
|
import { queueItem_exports } from "./primitives/queueItem.js";
|
|
7
7
|
import { message_exports } from "./primitives/message.js";
|
|
8
|
+
import { messagePart_exports } from "./primitives/messagePart.js";
|
|
8
9
|
import { threadList_exports } from "./primitives/threadList.js";
|
|
9
10
|
import { actionBar_exports } from "./primitives/actionBar.js";
|
|
10
11
|
import { branchPicker_exports } from "./primitives/branchPicker.js";
|
|
@@ -13,8 +14,8 @@ import { threadListItem_exports } from "./primitives/threadListItem.js";
|
|
|
13
14
|
import { chainOfThought_exports } from "./primitives/chainOfThought.js";
|
|
14
15
|
import { suggestion_exports } from "./primitives/suggestion.js";
|
|
15
16
|
import { error_exports } from "./primitives/error/index.js";
|
|
16
|
-
import { CompositeAttachmentAdapter, ExportedMessageRepository, InMemoryThreadListAdapter, ModelContextRegistry, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, createSuggestionAdapter, createVoiceSession, fromThreadMessageLike, generateId, mergeModelContexts, tool, toolApprovalAcceptsText, unstable_formatInteractableSnapshot, unstable_getInteractableSnapshots, unstable_getInteractableVersions } from "@assistant-ui/core";
|
|
17
|
+
import { CompositeAttachmentAdapter, ExportedMessageRepository, InMemoryThreadListAdapter, MessageNotSentError, ModelContextRegistry, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, bindExternalStoreMessage, createMessageQueue, createSuggestionAdapter, createVoiceSession, fromThreadMessageLike, generateId, getExternalStoreMessages, isMessageNotSentError, mergeModelContexts, pickExternalStoreSharedOptions, tool, toolApprovalAcceptsText, unstable_formatInteractableSnapshot, unstable_getInteractableSnapshots, unstable_getInteractableVersions } from "@assistant-ui/core";
|
|
17
18
|
import { AuiConfig, AuiIf, AuiProvider, useAui, useAuiEvent, useAuiState } from "@assistant-ui/store";
|
|
18
|
-
import { ChainOfThoughtByIndicesProvider, ChainOfThoughtPartByIndexProvider, ComposerAttachmentByIndexProvider, DataRenderers, Interactables, MessageAttachmentByIndexProvider, MessageByIndexProvider, PartByIndexProvider, RuntimeAdapterProvider, SuggestionByIndexProvider, TextMessagePartProvider, ThreadListItemByIndexProvider, ThreadListItemRuntimeProvider, Tools, defineMcpToolkit, defineToolkit, externalTool, groupPartByType, hitl, hitlTool, humanTool, makeAssistantDataUI, makeAssistantTool, makeAssistantToolUI, providerTool, stubTool, unstable_Interactables, unstable_interactableTool, unstable_useInteractable, unstable_useInteractableState, unstable_useInteractableVersions, unstable_useThreadMessageIds, useAssistantContext, useAssistantDataUI, useAssistantInstructions, useAssistantInteractable, useAssistantTool, useAssistantToolUI, useAuiToolOverrides, useInlineRender, useInteractableState, useRuntimeAdapters, useToolArgsStatus, useVoiceControls, useVoiceState, useVoiceVolume } from "@assistant-ui/core/react";
|
|
19
|
+
import { ChainOfThoughtByIndicesProvider, ChainOfThoughtPartByIndexProvider, ComposerAttachmentByIndexProvider, DataRenderers, Interactables, MessageAttachmentByIndexProvider, MessageByIndexProvider, PartByIndexProvider, RuntimeAdapterProvider, SuggestionByIndexProvider, TextMessagePartProvider, ThreadListItemByIndexProvider, ThreadListItemRuntimeProvider, Tools, convertExternalMessages as unstable_convertExternalMessages, createExternalMessageConversionCache as unstable_createExternalMessageConversionCache, createMessageConverter as unstable_createMessageConverter, 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, useExternalMessageConverter, useExternalStoreRuntime, useExternalStoreSharedOptions, useInlineRender, useInteractableState, useRuntimeAdapters, useToolArgsStatus, useVoiceControls, useVoiceState, useVoiceVolume } from "@assistant-ui/core/react";
|
|
19
20
|
import { ChainOfThoughtClient, ModelContext as ModelContextClient, Suggestions } from "@assistant-ui/core/store";
|
|
20
|
-
export { actionBar_exports as ActionBarPrimitive, AssistantRuntimeProvider, attachment_exports as AttachmentPrimitive, AuiConfig, AuiIf, AuiProvider, branchPicker_exports as BranchPickerPrimitive, ChainOfThoughtByIndicesProvider, ChainOfThoughtClient, ChainOfThoughtPartByIndexProvider, chainOfThought_exports as ChainOfThoughtPrimitive, ComposerAttachmentByIndexProvider, composer_exports as ComposerPrimitive, CompositeAttachmentAdapter, DataRenderers, error_exports as ErrorPrimitive, ExportedMessageRepository, InMemoryThreadListAdapter, Interactables, MessageAttachmentByIndexProvider, MessageByIndexProvider, message_exports as MessagePrimitive, ModelContextClient, ModelContextRegistry, PartByIndexProvider, queueItem_exports as QueueItemPrimitive, RuntimeAdapterProvider, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, SuggestionByIndexProvider, suggestion_exports as SuggestionPrimitive, Suggestions, TextMessagePartProvider, ThreadListItemByIndexProvider, threadListItem_exports as ThreadListItemPrimitive, ThreadListItemRuntimeProvider, threadList_exports as ThreadListPrimitive, thread_exports as ThreadPrimitive, Tools, createSuggestionAdapter, createVoiceSession, defineMcpToolkit, defineToolkit, externalTool, fromThreadMessageLike, generateId, groupPartByType, hitl, hitlTool, humanTool, makeAssistantDataUI, makeAssistantTool, makeAssistantToolUI, mergeModelContexts, providerTool, stubTool, tool, toolApprovalAcceptsText, 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_exports as ActionBarPrimitive, AssistantRuntimeProvider, attachment_exports as AttachmentPrimitive, AuiConfig, AuiIf, AuiProvider, branchPicker_exports as BranchPickerPrimitive, ChainOfThoughtByIndicesProvider, ChainOfThoughtClient, ChainOfThoughtPartByIndexProvider, chainOfThought_exports as ChainOfThoughtPrimitive, ComposerAttachmentByIndexProvider, composer_exports as ComposerPrimitive, CompositeAttachmentAdapter, DataRenderers, error_exports as ErrorPrimitive, ExportedMessageRepository, InMemoryThreadListAdapter, Interactables, MessageAttachmentByIndexProvider, MessageByIndexProvider, MessageNotSentError, messagePart_exports as MessagePartPrimitive, message_exports as MessagePrimitive, ModelContextClient, ModelContextRegistry, PartByIndexProvider, queueItem_exports as QueueItemPrimitive, RuntimeAdapterProvider, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, SuggestionByIndexProvider, suggestion_exports as SuggestionPrimitive, Suggestions, TextMessagePartProvider, ThreadListItemByIndexProvider, threadListItem_exports as ThreadListItemPrimitive, ThreadListItemRuntimeProvider, threadList_exports as ThreadListPrimitive, thread_exports as ThreadPrimitive, Tools, bindExternalStoreMessage, createMessageQueue, createSuggestionAdapter, createVoiceSession, defineMcpToolkit, defineToolkit, externalTool, fromThreadMessageLike, generateId, getExternalStoreMessages, groupPartByType, hitl, hitlTool, humanTool, isMessageNotSentError, makeAssistantDataUI, makeAssistantTool, makeAssistantToolUI, mergeModelContexts, pickExternalStoreSharedOptions, providerTool, stubTool, tool, toolApprovalAcceptsText, unstable_Interactables, unstable_convertExternalMessages, unstable_createExternalMessageConversionCache, unstable_createMessageConverter, 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, useExternalMessageConverter, useExternalStoreRuntime, useExternalStoreSharedOptions, useInlineRender, useInteractableState, useLocalRuntime, useRemoteThreadListRuntime, useRuntimeAdapters, useToolArgsStatus, useVoiceControls, useVoiceState, useVoiceVolume };
|
|
@@ -2,12 +2,12 @@ import { UseActionBarCopyOptions } from "@assistant-ui/core/react";
|
|
|
2
2
|
import { PressableProps } from "react-native";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
//#region src/primitives/actionBar/ActionBarCopy.d.ts
|
|
5
|
-
type ActionBarCopyProps = Omit<PressableProps, "onPress" | "children"> & UseActionBarCopyOptions & {
|
|
5
|
+
export type ActionBarCopyProps = Omit<PressableProps, "onPress" | "children"> & UseActionBarCopyOptions & {
|
|
6
6
|
children: ReactNode | ((props: {
|
|
7
7
|
isCopied: boolean;
|
|
8
|
+
disabled: boolean;
|
|
8
9
|
}) => ReactNode);
|
|
9
10
|
};
|
|
10
|
-
declare const ActionBarCopy: ({ children, disabled: disabledProp, copiedDuration, copyToClipboard, ...pressableProps }: ActionBarCopyProps) => import("react").JSX.Element;
|
|
11
|
+
export declare const ActionBarCopy: ({ children, disabled: disabledProp, copiedDuration, copyToClipboard, ...pressableProps }: ActionBarCopyProps) => import("react").JSX.Element;
|
|
11
12
|
//#endregion
|
|
12
|
-
export { ActionBarCopy, ActionBarCopyProps };
|
|
13
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":";;;;YAOY,qBAAqB,KAAK,0CACpC;EACE,UACI,cACE;IAAS;IAAmB;QAAwB;;qBAGjD,kBAAiB,UAAA,UAAA,cAAA,gBAAA,oBAAA,kBAM3B,uCAAkB,IAAA"}
|
|
@@ -4,7 +4,7 @@ import { Pressable } from "react-native";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/primitives/actionBar/ActionBarCopy.tsx
|
|
6
6
|
const ActionBarCopy = (t0) => {
|
|
7
|
-
const $ = c(
|
|
7
|
+
const $ = c(18);
|
|
8
8
|
let children;
|
|
9
9
|
let copiedDuration;
|
|
10
10
|
let copyToClipboard;
|
|
@@ -36,30 +36,34 @@ const ActionBarCopy = (t0) => {
|
|
|
36
36
|
$[8] = t1;
|
|
37
37
|
} else t1 = $[8];
|
|
38
38
|
const { copy, disabled, isCopied } = useActionBarCopy(t1);
|
|
39
|
-
const
|
|
40
|
-
let
|
|
41
|
-
if ($[9] !== children || $[10] !== isCopied) {
|
|
42
|
-
|
|
39
|
+
const isDisabled = disabledProp ?? disabled;
|
|
40
|
+
let t2;
|
|
41
|
+
if ($[9] !== children || $[10] !== isCopied || $[11] !== isDisabled) {
|
|
42
|
+
t2 = typeof children === "function" ? children({
|
|
43
|
+
isCopied,
|
|
44
|
+
disabled: isDisabled
|
|
45
|
+
}) : children;
|
|
43
46
|
$[9] = children;
|
|
44
47
|
$[10] = isCopied;
|
|
45
|
-
$[11] =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
$[11] = isDisabled;
|
|
49
|
+
$[12] = t2;
|
|
50
|
+
} else t2 = $[12];
|
|
51
|
+
let t3;
|
|
52
|
+
if ($[13] !== copy || $[14] !== isDisabled || $[15] !== pressableProps || $[16] !== t2) {
|
|
53
|
+
t3 = /* @__PURE__ */ jsx(Pressable, {
|
|
50
54
|
onPress: copy,
|
|
51
|
-
disabled:
|
|
55
|
+
disabled: isDisabled,
|
|
52
56
|
accessibilityRole: "button",
|
|
53
57
|
...pressableProps,
|
|
54
|
-
children:
|
|
58
|
+
children: t2
|
|
55
59
|
});
|
|
56
|
-
$[
|
|
57
|
-
$[
|
|
58
|
-
$[
|
|
59
|
-
$[
|
|
60
|
-
$[
|
|
61
|
-
} else
|
|
62
|
-
return
|
|
60
|
+
$[13] = copy;
|
|
61
|
+
$[14] = isDisabled;
|
|
62
|
+
$[15] = pressableProps;
|
|
63
|
+
$[16] = t2;
|
|
64
|
+
$[17] = t3;
|
|
65
|
+
} else t3 = $[17];
|
|
66
|
+
return t3;
|
|
63
67
|
};
|
|
64
68
|
//#endregion
|
|
65
69
|
export { ActionBarCopy };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBarCopy.js","names":["ReactNode","Pressable","PressableProps","useActionBarCopy","UseActionBarCopyOptions","ActionBarCopyProps","Omit","children","props","isCopied","ActionBarCopy","t0","$","_c","copiedDuration","copyToClipboard","disabledProp","pressableProps","
|
|
1
|
+
{"version":3,"file":"ActionBarCopy.js","names":["ReactNode","Pressable","PressableProps","useActionBarCopy","UseActionBarCopyOptions","ActionBarCopyProps","Omit","children","props","isCopied","disabled","ActionBarCopy","t0","$","_c","copiedDuration","copyToClipboard","disabledProp","pressableProps","t1","copy","isDisabled","t2","t3"],"sources":["../../../src/primitives/actionBar/ActionBarCopy.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport {\n useActionBarCopy,\n type UseActionBarCopyOptions,\n} from \"@assistant-ui/core/react\";\n\nexport type ActionBarCopyProps = Omit<PressableProps, \"onPress\" | \"children\"> &\n UseActionBarCopyOptions & {\n children:\n | ReactNode\n | ((props: { isCopied: boolean; disabled: boolean }) => ReactNode);\n };\n\nexport const ActionBarCopy = ({\n children,\n disabled: disabledProp,\n copiedDuration,\n copyToClipboard,\n ...pressableProps\n}: ActionBarCopyProps) => {\n const { copy, disabled, isCopied } = useActionBarCopy({\n copiedDuration,\n copyToClipboard,\n });\n const isDisabled = disabledProp ?? disabled;\n\n return (\n <Pressable\n onPress={copy}\n disabled={isDisabled}\n accessibilityRole=\"button\"\n {...pressableProps}\n >\n {typeof children === \"function\"\n ? children({ isCopied, disabled: isDisabled })\n : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAcA,MAAaW,iBAAgBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAP;CAAA,IAAAQ;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAL,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAL,UAAAG,UAAAO,cAAAF,gBAAAC,iBAAA,GAAAE,kBAAAN;EAMTC,EAAA,KAAAD;EAAAC,EAAA,KAAAN;EAAAM,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,KAAAK;CAAA,OAAA;EAAAX,WAAAM,EAAA;EAAAE,iBAAAF,EAAA;EAAAG,kBAAAH,EAAA;EAAAI,eAAAJ,EAAA;EAAAK,iBAAAL,EAAA;CAAA;CAAA,IAAAM;CAAA,IAAAN,EAAA,OAAAE,kBAAAF,EAAA,OAAAG,iBAAA;EACmCG,KAAA;GAAAJ;GAAAC;EAGtD;EAACH,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAHD,MAAA,EAAAO,MAAAV,UAAAD,aAAqCN,iBAAiBgB,EAGrD;CACD,MAAAE,aAAmBJ,gBAAAP;CAAyB,IAAAY;CAAA,IAAAT,EAAA,OAAAN,YAAAM,EAAA,QAAAJ,YAAAI,EAAA,QAAAQ,YAAA;EASvCC,KAAA,OAAOf,aAAa,aACjBA,SAAS;GAAAE;GAAAC,UAAsBW;EAAW,CACnC,IAFVd;EAEWM,EAAA,KAAAN;EAAAM,EAAA,MAAAJ;EAAAI,EAAA,MAAAQ;EAAAR,EAAA,MAAAS;CAAA,OAAAA,KAAAT,EAAA;CAAA,IAAAU;CAAA,IAAAV,EAAA,QAAAO,QAAAP,EAAA,QAAAQ,cAAAR,EAAA,QAAAK,kBAAAL,EAAA,QAAAS,IAAA;EARdC,KAAA,oBAAC,WAAD;GACWH,SAAAA;GACCC,UAAAA;GACQ,mBAAA;GAAQ,GACtBH;GAEHI,UAAAA;EANO,CAAA;EASET,EAAA,MAAAO;EAAAP,EAAA,MAAAQ;EAAAR,EAAA,MAAAK;EAAAL,EAAA,MAAAS;EAAAT,EAAA,MAAAU;CAAA,OAAAA,KAAAV,EAAA;CAAA,OATZU;AASY"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { PressableProps } from "react-native";
|
|
1
|
+
import { PressableProps, PressableStateCallbackType } from "react-native";
|
|
2
|
+
import { ReactNode } from "react";
|
|
2
3
|
//#region src/primitives/actionBar/ActionBarEdit.d.ts
|
|
3
|
-
type ActionBarEditProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
4
|
-
children:
|
|
4
|
+
export type ActionBarEditProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
5
|
+
children: ReactNode | ((state: PressableStateCallbackType & {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
}) => ReactNode);
|
|
5
8
|
};
|
|
6
|
-
declare const ActionBarEdit: ({ children, disabled: disabledProp, ...pressableProps }: ActionBarEditProps) => import("react").JSX.Element;
|
|
9
|
+
export declare const ActionBarEdit: ({ children, disabled: disabledProp, ...pressableProps }: ActionBarEditProps) => import("react").JSX.Element;
|
|
7
10
|
//#endregion
|
|
8
|
-
export { ActionBarEdit, ActionBarEditProps };
|
|
9
11
|
//# 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":";;;YAQY,qBAAqB,KAC/B;EAGA,UACI,cAEE,OAAO;IAA+B;QACnC;;qBAGE,kBAAiB,UAAA,UAAA,iBAAA,kBAI3B,uCAAkB,IAAA"}
|
|
@@ -4,7 +4,7 @@ import { Pressable } from "react-native";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/primitives/actionBar/ActionBarEdit.tsx
|
|
6
6
|
const ActionBarEdit = (t0) => {
|
|
7
|
-
const $ = c(
|
|
7
|
+
const $ = c(12);
|
|
8
8
|
let children;
|
|
9
9
|
let disabledProp;
|
|
10
10
|
let pressableProps;
|
|
@@ -20,22 +20,32 @@ const ActionBarEdit = (t0) => {
|
|
|
20
20
|
pressableProps = $[3];
|
|
21
21
|
}
|
|
22
22
|
const { edit, disabled } = useActionBarEdit();
|
|
23
|
-
const
|
|
23
|
+
const isDisabled = disabledProp ?? disabled;
|
|
24
|
+
let t1;
|
|
25
|
+
if ($[4] !== children || $[5] !== isDisabled) {
|
|
26
|
+
t1 = typeof children === "function" ? (state) => children({
|
|
27
|
+
...state,
|
|
28
|
+
disabled: isDisabled
|
|
29
|
+
}) : children;
|
|
30
|
+
$[4] = children;
|
|
31
|
+
$[5] = isDisabled;
|
|
32
|
+
$[6] = t1;
|
|
33
|
+
} else t1 = $[6];
|
|
24
34
|
let t2;
|
|
25
|
-
if ($[
|
|
35
|
+
if ($[7] !== edit || $[8] !== isDisabled || $[9] !== pressableProps || $[10] !== t1) {
|
|
26
36
|
t2 = /* @__PURE__ */ jsx(Pressable, {
|
|
27
37
|
onPress: edit,
|
|
28
|
-
disabled:
|
|
38
|
+
disabled: isDisabled,
|
|
29
39
|
accessibilityRole: "button",
|
|
30
40
|
...pressableProps,
|
|
31
|
-
children
|
|
41
|
+
children: t1
|
|
32
42
|
});
|
|
33
|
-
$[
|
|
34
|
-
$[
|
|
35
|
-
$[
|
|
36
|
-
$[
|
|
37
|
-
$[
|
|
38
|
-
} else t2 = $[
|
|
43
|
+
$[7] = edit;
|
|
44
|
+
$[8] = isDisabled;
|
|
45
|
+
$[9] = pressableProps;
|
|
46
|
+
$[10] = t1;
|
|
47
|
+
$[11] = t2;
|
|
48
|
+
} else t2 = $[11];
|
|
39
49
|
return t2;
|
|
40
50
|
};
|
|
41
51
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBarEdit.js","names":["Pressable","PressableProps","useActionBarEdit","ActionBarEditProps","Omit","children","ActionBarEdit","t0","$","_c","disabledProp","pressableProps","
|
|
1
|
+
{"version":3,"file":"ActionBarEdit.js","names":["ReactNode","Pressable","PressableProps","PressableStateCallbackType","useActionBarEdit","ActionBarEditProps","Omit","children","state","disabled","ActionBarEdit","t0","$","_c","disabledProp","pressableProps","edit","isDisabled","t1","t2"],"sources":["../../../src/primitives/actionBar/ActionBarEdit.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport {\n Pressable,\n type PressableProps,\n type PressableStateCallbackType,\n} from \"react-native\";\nimport { useActionBarEdit } from \"@assistant-ui/core/react\";\n\nexport type ActionBarEditProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children:\n | ReactNode\n | ((\n state: PressableStateCallbackType & { disabled: boolean },\n ) => ReactNode);\n};\n\nexport const ActionBarEdit = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ActionBarEditProps) => {\n const { edit, disabled } = useActionBarEdit();\n const isDisabled = disabledProp ?? disabled;\n\n return (\n <Pressable\n onPress={edit}\n disabled={isDisabled}\n accessibilityRole=\"button\"\n {...pressableProps}\n >\n {typeof children === \"function\"\n ? (state) => children({ ...state, disabled: isDisabled })\n : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAmBA,MAAaU,iBAAgBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAN;CAAA,IAAAO;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAJ,UAAAE,UAAAK,cAAA,GAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAL;EAAAK,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAR,WAAAK,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CACnB,MAAA,EAAAI,MAAAP,aAA2BL,iBAAiB;CAC5C,MAAAa,aAAmBH,gBAAAL;CAAyB,IAAAS;CAAA,IAAAN,EAAA,OAAAL,YAAAK,EAAA,OAAAK,YAAA;EASvCC,KAAA,OAAOX,aAAa,cAApBC,UACcD,SAAS;GAAA,GAAKC;GAAKC,UAAYQ;EAAW,CAAC,IADzDV;EAEWK,EAAA,KAAAL;EAAAK,EAAA,KAAAK;EAAAL,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,IAAAO;CAAA,IAAAP,EAAA,OAAAI,QAAAJ,EAAA,OAAAK,cAAAL,EAAA,OAAAG,kBAAAH,EAAA,QAAAM,IAAA;EARdC,KAAA,oBAAC,WAAD;GACWH,SAAAA;GACCC,UAAAA;GACQ,mBAAA;GAAQ,GACtBF;GAEHG,UAAAA;EANO,CAAA;EASEN,EAAA,KAAAI;EAAAJ,EAAA,KAAAK;EAAAL,EAAA,KAAAG;EAAAH,EAAA,MAAAM;EAAAN,EAAA,MAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OATZO;AASY"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PressableProps } from "react-native";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
//#region src/primitives/actionBar/ActionBarFeedbackNegative.d.ts
|
|
4
|
-
type ActionBarFeedbackNegativeProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
4
|
+
export type ActionBarFeedbackNegativeProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
5
5
|
children: ReactNode | ((props: {
|
|
6
6
|
isSubmitted: boolean;
|
|
7
|
+
disabled: boolean;
|
|
7
8
|
}) => ReactNode);
|
|
8
9
|
};
|
|
9
|
-
declare const ActionBarFeedbackNegative: ({ children, ...pressableProps }: ActionBarFeedbackNegativeProps) => import("react").JSX.Element;
|
|
10
|
+
export declare const ActionBarFeedbackNegative: ({ children, disabled: disabledProp, ...pressableProps }: ActionBarFeedbackNegativeProps) => import("react").JSX.Element;
|
|
10
11
|
//#endregion
|
|
11
|
-
export { ActionBarFeedbackNegative, ActionBarFeedbackNegativeProps };
|
|
12
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":";;;YAIY,iCAAiC,KAC3C;EAGA,UACI,cACE;IAAS;IAAsB;QAAwB;;qBAGlD,8BAA6B,UAAA,UAAA,iBAAA,kBAIvC,mDAA8B,IAAA"}
|
|
@@ -4,39 +4,49 @@ import { Pressable } from "react-native";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/primitives/actionBar/ActionBarFeedbackNegative.tsx
|
|
6
6
|
const ActionBarFeedbackNegative = (t0) => {
|
|
7
|
-
const $ = c(
|
|
7
|
+
const $ = c(13);
|
|
8
8
|
let children;
|
|
9
|
+
let disabledProp;
|
|
9
10
|
let pressableProps;
|
|
10
11
|
if ($[0] !== t0) {
|
|
11
|
-
({children, ...pressableProps} = t0);
|
|
12
|
+
({children, disabled: disabledProp, ...pressableProps} = t0);
|
|
12
13
|
$[0] = t0;
|
|
13
14
|
$[1] = children;
|
|
14
|
-
$[2] =
|
|
15
|
+
$[2] = disabledProp;
|
|
16
|
+
$[3] = pressableProps;
|
|
15
17
|
} else {
|
|
16
18
|
children = $[1];
|
|
17
|
-
|
|
19
|
+
disabledProp = $[2];
|
|
20
|
+
pressableProps = $[3];
|
|
18
21
|
}
|
|
19
22
|
const { submit, isSubmitted } = useActionBarFeedbackNegative();
|
|
23
|
+
const disabled = disabledProp ?? false;
|
|
20
24
|
let t1;
|
|
21
|
-
if ($[
|
|
22
|
-
t1 = typeof children === "function" ? children({
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
if ($[4] !== children || $[5] !== disabled || $[6] !== isSubmitted) {
|
|
26
|
+
t1 = typeof children === "function" ? children({
|
|
27
|
+
isSubmitted,
|
|
28
|
+
disabled
|
|
29
|
+
}) : children;
|
|
30
|
+
$[4] = children;
|
|
31
|
+
$[5] = disabled;
|
|
32
|
+
$[6] = isSubmitted;
|
|
33
|
+
$[7] = t1;
|
|
34
|
+
} else t1 = $[7];
|
|
27
35
|
let t2;
|
|
28
|
-
if ($[
|
|
36
|
+
if ($[8] !== disabledProp || $[9] !== pressableProps || $[10] !== submit || $[11] !== t1) {
|
|
29
37
|
t2 = /* @__PURE__ */ jsx(Pressable, {
|
|
30
38
|
onPress: submit,
|
|
39
|
+
disabled: disabledProp,
|
|
31
40
|
accessibilityRole: "button",
|
|
32
41
|
...pressableProps,
|
|
33
42
|
children: t1
|
|
34
43
|
});
|
|
35
|
-
$[
|
|
36
|
-
$[
|
|
37
|
-
$[
|
|
38
|
-
$[
|
|
39
|
-
|
|
44
|
+
$[8] = disabledProp;
|
|
45
|
+
$[9] = pressableProps;
|
|
46
|
+
$[10] = submit;
|
|
47
|
+
$[11] = t1;
|
|
48
|
+
$[12] = t2;
|
|
49
|
+
} else t2 = $[12];
|
|
40
50
|
return t2;
|
|
41
51
|
};
|
|
42
52
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBarFeedbackNegative.js","names":["ReactNode","Pressable","PressableProps","useActionBarFeedbackNegative","ActionBarFeedbackNegativeProps","Omit","children","props","isSubmitted","ActionBarFeedbackNegative","t0","$","_c","pressableProps","submit","t1","t2"],"sources":["../../../src/primitives/actionBar/ActionBarFeedbackNegative.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarFeedbackNegative } from \"@assistant-ui/core/react\";\n\nexport type ActionBarFeedbackNegativeProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children
|
|
1
|
+
{"version":3,"file":"ActionBarFeedbackNegative.js","names":["ReactNode","Pressable","PressableProps","useActionBarFeedbackNegative","ActionBarFeedbackNegativeProps","Omit","children","props","isSubmitted","disabled","ActionBarFeedbackNegative","t0","$","_c","disabledProp","pressableProps","submit","t1","t2"],"sources":["../../../src/primitives/actionBar/ActionBarFeedbackNegative.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarFeedbackNegative } from \"@assistant-ui/core/react\";\n\nexport type ActionBarFeedbackNegativeProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children:\n | ReactNode\n | ((props: { isSubmitted: boolean; disabled: boolean }) => ReactNode);\n};\n\nexport const ActionBarFeedbackNegative = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ActionBarFeedbackNegativeProps) => {\n const { submit, isSubmitted } = useActionBarFeedbackNegative();\n const disabled = disabledProp ?? false;\n\n return (\n <Pressable\n onPress={submit}\n disabled={disabledProp}\n accessibilityRole=\"button\"\n {...pressableProps}\n >\n {typeof children === \"function\"\n ? children({ isSubmitted, disabled })\n : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAaA,MAAaU,6BAA4BC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAP;CAAA,IAAAQ;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAL,UAAAG,UAAAK,cAAA,GAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAN;EAAAM,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAT,WAAAM,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CAC/B,MAAA,EAAAI,QAAAR,gBAAgCL,6BAA6B;CAC7D,MAAAM,WAAiBK,gBAAA;CAAsB,IAAAG;CAAA,IAAAL,EAAA,OAAAN,YAAAM,EAAA,OAAAH,YAAAG,EAAA,OAAAJ,aAAA;EASlCS,KAAA,OAAOX,aAAa,aACjBA,SAAS;GAAAE;GAAAC;EAAwB,CAC1B,IAFVH;EAEWM,EAAA,KAAAN;EAAAM,EAAA,KAAAH;EAAAG,EAAA,KAAAJ;EAAAI,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,IAAAM;CAAA,IAAAN,EAAA,OAAAE,gBAAAF,EAAA,OAAAG,kBAAAH,EAAA,QAAAI,UAAAJ,EAAA,QAAAK,IAAA;EARdC,KAAA,oBAAC,WAAD;GACWF,SAAAA;GACCF,UAAAA;GACQ,mBAAA;GAAQ,GACtBC;GAEHE,UAAAA;EANO,CAAA;EASEL,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,MAAAI;EAAAJ,EAAA,MAAAK;EAAAL,EAAA,MAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,OATZM;AASY"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PressableProps } from "react-native";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
//#region src/primitives/actionBar/ActionBarFeedbackPositive.d.ts
|
|
4
|
-
type ActionBarFeedbackPositiveProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
4
|
+
export type ActionBarFeedbackPositiveProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
5
5
|
children: ReactNode | ((props: {
|
|
6
6
|
isSubmitted: boolean;
|
|
7
|
+
disabled: boolean;
|
|
7
8
|
}) => ReactNode);
|
|
8
9
|
};
|
|
9
|
-
declare const ActionBarFeedbackPositive: ({ children, ...pressableProps }: ActionBarFeedbackPositiveProps) => import("react").JSX.Element;
|
|
10
|
+
export declare const ActionBarFeedbackPositive: ({ children, disabled: disabledProp, ...pressableProps }: ActionBarFeedbackPositiveProps) => import("react").JSX.Element;
|
|
10
11
|
//#endregion
|
|
11
|
-
export { ActionBarFeedbackPositive, ActionBarFeedbackPositiveProps };
|
|
12
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":";;;YAIY,iCAAiC,KAC3C;EAGA,UACI,cACE;IAAS;IAAsB;QAAwB;;qBAGlD,8BAA6B,UAAA,UAAA,iBAAA,kBAIvC,mDAA8B,IAAA"}
|
|
@@ -4,39 +4,49 @@ import { Pressable } from "react-native";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/primitives/actionBar/ActionBarFeedbackPositive.tsx
|
|
6
6
|
const ActionBarFeedbackPositive = (t0) => {
|
|
7
|
-
const $ = c(
|
|
7
|
+
const $ = c(13);
|
|
8
8
|
let children;
|
|
9
|
+
let disabledProp;
|
|
9
10
|
let pressableProps;
|
|
10
11
|
if ($[0] !== t0) {
|
|
11
|
-
({children, ...pressableProps} = t0);
|
|
12
|
+
({children, disabled: disabledProp, ...pressableProps} = t0);
|
|
12
13
|
$[0] = t0;
|
|
13
14
|
$[1] = children;
|
|
14
|
-
$[2] =
|
|
15
|
+
$[2] = disabledProp;
|
|
16
|
+
$[3] = pressableProps;
|
|
15
17
|
} else {
|
|
16
18
|
children = $[1];
|
|
17
|
-
|
|
19
|
+
disabledProp = $[2];
|
|
20
|
+
pressableProps = $[3];
|
|
18
21
|
}
|
|
19
22
|
const { submit, isSubmitted } = useActionBarFeedbackPositive();
|
|
23
|
+
const disabled = disabledProp ?? false;
|
|
20
24
|
let t1;
|
|
21
|
-
if ($[
|
|
22
|
-
t1 = typeof children === "function" ? children({
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
if ($[4] !== children || $[5] !== disabled || $[6] !== isSubmitted) {
|
|
26
|
+
t1 = typeof children === "function" ? children({
|
|
27
|
+
isSubmitted,
|
|
28
|
+
disabled
|
|
29
|
+
}) : children;
|
|
30
|
+
$[4] = children;
|
|
31
|
+
$[5] = disabled;
|
|
32
|
+
$[6] = isSubmitted;
|
|
33
|
+
$[7] = t1;
|
|
34
|
+
} else t1 = $[7];
|
|
27
35
|
let t2;
|
|
28
|
-
if ($[
|
|
36
|
+
if ($[8] !== disabledProp || $[9] !== pressableProps || $[10] !== submit || $[11] !== t1) {
|
|
29
37
|
t2 = /* @__PURE__ */ jsx(Pressable, {
|
|
30
38
|
onPress: submit,
|
|
39
|
+
disabled: disabledProp,
|
|
31
40
|
accessibilityRole: "button",
|
|
32
41
|
...pressableProps,
|
|
33
42
|
children: t1
|
|
34
43
|
});
|
|
35
|
-
$[
|
|
36
|
-
$[
|
|
37
|
-
$[
|
|
38
|
-
$[
|
|
39
|
-
|
|
44
|
+
$[8] = disabledProp;
|
|
45
|
+
$[9] = pressableProps;
|
|
46
|
+
$[10] = submit;
|
|
47
|
+
$[11] = t1;
|
|
48
|
+
$[12] = t2;
|
|
49
|
+
} else t2 = $[12];
|
|
40
50
|
return t2;
|
|
41
51
|
};
|
|
42
52
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBarFeedbackPositive.js","names":["ReactNode","Pressable","PressableProps","useActionBarFeedbackPositive","ActionBarFeedbackPositiveProps","Omit","children","props","isSubmitted","ActionBarFeedbackPositive","t0","$","_c","pressableProps","submit","t1","t2"],"sources":["../../../src/primitives/actionBar/ActionBarFeedbackPositive.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarFeedbackPositive } from \"@assistant-ui/core/react\";\n\nexport type ActionBarFeedbackPositiveProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children
|
|
1
|
+
{"version":3,"file":"ActionBarFeedbackPositive.js","names":["ReactNode","Pressable","PressableProps","useActionBarFeedbackPositive","ActionBarFeedbackPositiveProps","Omit","children","props","isSubmitted","disabled","ActionBarFeedbackPositive","t0","$","_c","disabledProp","pressableProps","submit","t1","t2"],"sources":["../../../src/primitives/actionBar/ActionBarFeedbackPositive.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Pressable, type PressableProps } from \"react-native\";\nimport { useActionBarFeedbackPositive } from \"@assistant-ui/core/react\";\n\nexport type ActionBarFeedbackPositiveProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children:\n | ReactNode\n | ((props: { isSubmitted: boolean; disabled: boolean }) => ReactNode);\n};\n\nexport const ActionBarFeedbackPositive = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ActionBarFeedbackPositiveProps) => {\n const { submit, isSubmitted } = useActionBarFeedbackPositive();\n const disabled = disabledProp ?? false;\n\n return (\n <Pressable\n onPress={submit}\n disabled={disabledProp}\n accessibilityRole=\"button\"\n {...pressableProps}\n >\n {typeof children === \"function\"\n ? children({ isSubmitted, disabled })\n : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAaA,MAAaU,6BAA4BC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAP;CAAA,IAAAQ;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAL,UAAAG,UAAAK,cAAA,GAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAN;EAAAM,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAT,WAAAM,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CAC/B,MAAA,EAAAI,QAAAR,gBAAgCL,6BAA6B;CAC7D,MAAAM,WAAiBK,gBAAA;CAAsB,IAAAG;CAAA,IAAAL,EAAA,OAAAN,YAAAM,EAAA,OAAAH,YAAAG,EAAA,OAAAJ,aAAA;EASlCS,KAAA,OAAOX,aAAa,aACjBA,SAAS;GAAAE;GAAAC;EAAwB,CAC1B,IAFVH;EAEWM,EAAA,KAAAN;EAAAM,EAAA,KAAAH;EAAAG,EAAA,KAAAJ;EAAAI,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,IAAAM;CAAA,IAAAN,EAAA,OAAAE,gBAAAF,EAAA,OAAAG,kBAAAH,EAAA,QAAAI,UAAAJ,EAAA,QAAAK,IAAA;EARdC,KAAA,oBAAC,WAAD;GACWF,SAAAA;GACCF,UAAAA;GACQ,mBAAA;GAAQ,GACtBC;GAEHE,UAAAA;EANO,CAAA;EASEL,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,MAAAI;EAAAJ,EAAA,MAAAK;EAAAL,EAAA,MAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,OATZM;AASY"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { PressableProps } from "react-native";
|
|
1
|
+
import { PressableProps, PressableStateCallbackType } from "react-native";
|
|
2
|
+
import { ReactNode } from "react";
|
|
2
3
|
//#region src/primitives/actionBar/ActionBarReload.d.ts
|
|
3
|
-
type ActionBarReloadProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
4
|
-
children:
|
|
4
|
+
export type ActionBarReloadProps = Omit<PressableProps, "onPress" | "children"> & {
|
|
5
|
+
children: ReactNode | ((state: PressableStateCallbackType & {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
}) => ReactNode);
|
|
5
8
|
};
|
|
6
|
-
declare const ActionBarReload: ({ children, disabled: disabledProp, ...pressableProps }: ActionBarReloadProps) => import("react").JSX.Element;
|
|
9
|
+
export declare const ActionBarReload: ({ children, disabled: disabledProp, ...pressableProps }: ActionBarReloadProps) => import("react").JSX.Element;
|
|
7
10
|
//#endregion
|
|
8
|
-
export { ActionBarReload, ActionBarReloadProps };
|
|
9
11
|
//# 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":";;;YAQY,uBAAuB,KACjC;EAGA,UACI,cAEE,OAAO;IAA+B;QACnC;;qBAGE,oBAAmB,UAAA,UAAA,iBAAA,kBAI7B,yCAAoB,IAAA"}
|
|
@@ -4,7 +4,7 @@ import { Pressable } from "react-native";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/primitives/actionBar/ActionBarReload.tsx
|
|
6
6
|
const ActionBarReload = (t0) => {
|
|
7
|
-
const $ = c(
|
|
7
|
+
const $ = c(12);
|
|
8
8
|
let children;
|
|
9
9
|
let disabledProp;
|
|
10
10
|
let pressableProps;
|
|
@@ -20,22 +20,32 @@ const ActionBarReload = (t0) => {
|
|
|
20
20
|
pressableProps = $[3];
|
|
21
21
|
}
|
|
22
22
|
const { reload, disabled } = useActionBarReload();
|
|
23
|
-
const
|
|
23
|
+
const isDisabled = disabledProp ?? disabled;
|
|
24
|
+
let t1;
|
|
25
|
+
if ($[4] !== children || $[5] !== isDisabled) {
|
|
26
|
+
t1 = typeof children === "function" ? (state) => children({
|
|
27
|
+
...state,
|
|
28
|
+
disabled: isDisabled
|
|
29
|
+
}) : children;
|
|
30
|
+
$[4] = children;
|
|
31
|
+
$[5] = isDisabled;
|
|
32
|
+
$[6] = t1;
|
|
33
|
+
} else t1 = $[6];
|
|
24
34
|
let t2;
|
|
25
|
-
if ($[
|
|
35
|
+
if ($[7] !== isDisabled || $[8] !== pressableProps || $[9] !== reload || $[10] !== t1) {
|
|
26
36
|
t2 = /* @__PURE__ */ jsx(Pressable, {
|
|
27
37
|
onPress: reload,
|
|
28
|
-
disabled:
|
|
38
|
+
disabled: isDisabled,
|
|
29
39
|
accessibilityRole: "button",
|
|
30
40
|
...pressableProps,
|
|
31
|
-
children
|
|
41
|
+
children: t1
|
|
32
42
|
});
|
|
33
|
-
$[
|
|
34
|
-
$[
|
|
35
|
-
$[
|
|
36
|
-
$[
|
|
37
|
-
$[
|
|
38
|
-
} else t2 = $[
|
|
43
|
+
$[7] = isDisabled;
|
|
44
|
+
$[8] = pressableProps;
|
|
45
|
+
$[9] = reload;
|
|
46
|
+
$[10] = t1;
|
|
47
|
+
$[11] = t2;
|
|
48
|
+
} else t2 = $[11];
|
|
39
49
|
return t2;
|
|
40
50
|
};
|
|
41
51
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBarReload.js","names":["Pressable","PressableProps","useActionBarReload","ActionBarReloadProps","Omit","children","ActionBarReload","t0","$","_c","disabledProp","pressableProps","
|
|
1
|
+
{"version":3,"file":"ActionBarReload.js","names":["ReactNode","Pressable","PressableProps","PressableStateCallbackType","useActionBarReload","ActionBarReloadProps","Omit","children","state","disabled","ActionBarReload","t0","$","_c","disabledProp","pressableProps","reload","isDisabled","t1","t2"],"sources":["../../../src/primitives/actionBar/ActionBarReload.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport {\n Pressable,\n type PressableProps,\n type PressableStateCallbackType,\n} from \"react-native\";\nimport { useActionBarReload } from \"@assistant-ui/core/react\";\n\nexport type ActionBarReloadProps = Omit<\n PressableProps,\n \"onPress\" | \"children\"\n> & {\n children:\n | ReactNode\n | ((\n state: PressableStateCallbackType & { disabled: boolean },\n ) => ReactNode);\n};\n\nexport const ActionBarReload = ({\n children,\n disabled: disabledProp,\n ...pressableProps\n}: ActionBarReloadProps) => {\n const { reload, disabled } = useActionBarReload();\n const isDisabled = disabledProp ?? disabled;\n\n return (\n <Pressable\n onPress={reload}\n disabled={isDisabled}\n accessibilityRole=\"button\"\n {...pressableProps}\n >\n {typeof children === \"function\"\n ? (state) => children({ ...state, disabled: isDisabled })\n : children}\n </Pressable>\n );\n};\n"],"mappings":";;;;;AAmBA,MAAaU,mBAAkBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAN;CAAA,IAAAO;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,IAAA;EAAC,CAAA,CAAAJ,UAAAE,UAAAK,cAAA,GAAAC,kBAAAJ;EAITC,EAAA,KAAAD;EAAAC,EAAA,KAAAL;EAAAK,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAR,WAAAK,EAAA;EAAAE,eAAAF,EAAA;EAAAG,iBAAAH,EAAA;CAAA;CACrB,MAAA,EAAAI,QAAAP,aAA6BL,mBAAmB;CAChD,MAAAa,aAAmBH,gBAAAL;CAAyB,IAAAS;CAAA,IAAAN,EAAA,OAAAL,YAAAK,EAAA,OAAAK,YAAA;EASvCC,KAAA,OAAOX,aAAa,cAApBC,UACcD,SAAS;GAAA,GAAKC;GAAKC,UAAYQ;EAAW,CAAC,IADzDV;EAEWK,EAAA,KAAAL;EAAAK,EAAA,KAAAK;EAAAL,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,IAAAO;CAAA,IAAAP,EAAA,OAAAK,cAAAL,EAAA,OAAAG,kBAAAH,EAAA,OAAAI,UAAAJ,EAAA,QAAAM,IAAA;EARdC,KAAA,oBAAC,WAAD;GACWH,SAAAA;GACCC,UAAAA;GACQ,mBAAA;GAAQ,GACtBF;GAEHG,UAAAA;EANO,CAAA;EASEN,EAAA,KAAAK;EAAAL,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,MAAAM;EAAAN,EAAA,MAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OATZO;AASY"}
|