@assistant-ui/react 0.15.20 → 0.15.22
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/README.md +1 -1
- package/dist/assistant-transport.d.ts +28 -28
- package/dist/assistant-transport.d.ts.map +1 -1
- package/dist/assistant-transport.js.map +1 -1
- package/dist/augmentations.d.ts +31 -9
- package/dist/augmentations.d.ts.map +1 -1
- package/dist/cloud-renderer/CloudRendererHost.d.ts +13 -0
- package/dist/cloud-renderer/CloudRendererHost.d.ts.map +1 -0
- package/dist/cloud-renderer/CloudRendererHost.js +291 -0
- package/dist/cloud-renderer/CloudRendererHost.js.map +1 -0
- package/dist/context/ReadonlyStore.d.ts +3 -6
- package/dist/context/ReadonlyStore.d.ts.map +1 -1
- package/dist/context/index.d.ts +13 -13
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/providers/AttachmentByIndexProvider.d.ts +2 -2
- package/dist/context/providers/AttachmentByIndexProvider.d.ts.map +1 -0
- package/dist/context/providers/ChainOfThoughtByIndicesProvider.d.ts +2 -2
- package/dist/context/providers/ChainOfThoughtByIndicesProvider.d.ts.map +1 -0
- package/dist/context/providers/ChainOfThoughtPartByIndexProvider.d.ts +2 -2
- package/dist/context/providers/ChainOfThoughtPartByIndexProvider.d.ts.map +1 -0
- package/dist/context/providers/MessageByIndexProvider.d.ts +2 -2
- package/dist/context/providers/MessageByIndexProvider.d.ts.map +1 -0
- package/dist/context/providers/MessageProvider.d.ts +3 -6
- package/dist/context/providers/MessageProvider.d.ts.map +1 -1
- package/dist/context/providers/PartByIndexProvider.d.ts +2 -2
- package/dist/context/providers/PartByIndexProvider.d.ts.map +1 -0
- package/dist/context/providers/SuggestionByIndexProvider.d.ts +2 -2
- package/dist/context/providers/SuggestionByIndexProvider.d.ts.map +1 -0
- package/dist/context/providers/TextMessagePartProvider.d.ts +2 -2
- package/dist/context/providers/TextMessagePartProvider.d.ts.map +1 -0
- package/dist/context/providers/ThreadListItemProvider.d.ts +2 -2
- package/dist/context/providers/ThreadListItemProvider.d.ts.map +1 -0
- package/dist/context/providers/ThreadViewportProvider.d.ts +5 -8
- package/dist/context/providers/ThreadViewportProvider.d.ts.map +1 -1
- package/dist/context/react/ThreadViewportContext.d.ts +20 -23
- package/dist/context/react/ThreadViewportContext.d.ts.map +1 -1
- package/dist/context/react/utils/createContextHook.d.ts +3 -6
- package/dist/context/react/utils/createContextHook.d.ts.map +1 -1
- package/dist/context/react/utils/createContextStoreHook.d.ts +16 -19
- package/dist/context/react/utils/createContextStoreHook.d.ts.map +1 -1
- package/dist/context/stores/ThreadViewport.d.ts +76 -79
- package/dist/context/stores/ThreadViewport.d.ts.map +1 -1
- package/dist/devtools/DevToolsHooks.d.ts +22 -24
- package/dist/devtools/DevToolsHooks.d.ts.map +1 -1
- package/dist/hooks/useMessageQuote.d.ts +2 -5
- package/dist/hooks/useMessageQuote.d.ts.map +1 -1
- package/dist/hooks/useMessageTiming.d.ts +2 -5
- package/dist/hooks/useMessageTiming.d.ts.map +1 -1
- package/dist/hooks/useToolCallElapsed.d.ts +1 -4
- package/dist/hooks/useToolCallElapsed.d.ts.map +1 -1
- package/dist/hooks/useToolCallElapsed.js +1 -1
- package/dist/index.d.ts +126 -82
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -13
- package/dist/internal.d.ts +8 -11
- package/dist/internal.d.ts.map +1 -1
- package/dist/legacy-runtime/AssistantRuntimeProvider.d.ts +27 -30
- package/dist/legacy-runtime/AssistantRuntimeProvider.d.ts.map +1 -1
- package/dist/legacy-runtime/AssistantRuntimeProvider.js +1 -1
- package/dist/legacy-runtime/RuntimeAdapter.d.ts +2 -2
- package/dist/legacy-runtime/RuntimeAdapter.d.ts.map +1 -0
- package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.d.ts +2 -2
- package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime/AssistantRuntime.d.ts +3 -3
- package/dist/legacy-runtime/runtime/AssistantRuntime.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime/AttachmentRuntime.d.ts +3 -3
- package/dist/legacy-runtime/runtime/AttachmentRuntime.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime/ComposerRuntime.d.ts +4 -3
- package/dist/legacy-runtime/runtime/ComposerRuntime.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime/RuntimeBindings.d.ts +3 -3
- package/dist/legacy-runtime/runtime/RuntimeBindings.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime/RuntimePathTypes.d.ts +2 -2
- package/dist/legacy-runtime/runtime/RuntimePathTypes.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime/ThreadListItemRuntime.d.ts +5 -3
- package/dist/legacy-runtime/runtime/ThreadListItemRuntime.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime/ThreadRuntime.d.ts +4 -3
- package/dist/legacy-runtime/runtime/ThreadRuntime.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/core/AssistantRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/core/AssistantRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/core/ComposerRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/core/ComposerRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/core/ThreadListRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/core/ThreadListRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/core/ThreadRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/core/ThreadRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreAdapter.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreAdapter.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.d.ts +3 -2
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.d.ts +3 -2
- package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.d.ts +3 -3
- package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/auto-status.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/external-store/auto-status.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/createMessageConverter.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/external-store/createMessageConverter.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/local/ChatModelAdapter.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/local/ChatModelAdapter.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.d.ts +4 -3
- package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/local/LocalThreadListRuntimeCore.d.ts +3 -2
- package/dist/legacy-runtime/runtime-cores/local/LocalThreadListRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/local/LocalThreadRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/local/LocalThreadRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/local/shouldContinue.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/local/shouldContinue.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/local/useLocalRuntime.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/local/useLocalRuntime.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/EMPTY_THREAD_CORE.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/EMPTY_THREAD_CORE.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/OptimisticState.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/OptimisticState.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/in-memory.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/in-memory.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/types.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/types.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.d.ts +2 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/utils/MessageRepository.d.ts +4 -3
- package/dist/legacy-runtime/runtime-cores/utils/MessageRepository.d.ts.map +1 -0
- package/dist/legacy-runtime/runtime-cores/utils/MessageRepository.js +1 -1
- package/dist/mcp-apps/McpAppRenderer.d.ts +52 -55
- package/dist/mcp-apps/McpAppRenderer.d.ts.map +1 -1
- package/dist/mcp-apps/McpAppRenderer.js +2 -2
- package/dist/mcp-apps/McpAppsRemoteHost.d.ts +2 -5
- package/dist/mcp-apps/McpAppsRemoteHost.d.ts.map +1 -1
- package/dist/mcp-apps/app-frame.d.ts +2 -5
- package/dist/mcp-apps/app-frame.d.ts.map +1 -1
- package/dist/mcp-apps/bridge.d.ts +15 -18
- package/dist/mcp-apps/bridge.d.ts.map +1 -1
- package/dist/mcp-apps/index.d.ts +5 -5
- package/dist/mcp-apps/index.d.ts.map +1 -0
- package/dist/mcp-apps/types.d.ts +114 -116
- package/dist/mcp-apps/types.d.ts.map +1 -1
- package/dist/mcp-apps/utils.d.ts +3 -5
- package/dist/mcp-apps/utils.d.ts.map +1 -1
- package/dist/model-context/frame/useAssistantFrameHost.d.ts +8 -9
- package/dist/model-context/frame/useAssistantFrameHost.d.ts.map +1 -1
- package/dist/model-context/frame/useAssistantFrameHost.js +1 -1
- package/dist/model-context/makeAssistantVisible.d.ts +5 -7
- package/dist/model-context/makeAssistantVisible.d.ts.map +1 -1
- package/dist/model-context/makeAssistantVisible.js +2 -2
- package/dist/primitives/actionBar/ActionBarCopy.d.ts +15 -17
- package/dist/primitives/actionBar/ActionBarCopy.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarCopy.js +1 -1
- package/dist/primitives/actionBar/ActionBarEdit.d.ts +12 -14
- package/dist/primitives/actionBar/ActionBarEdit.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarExportMarkdown.d.ts +13 -15
- package/dist/primitives/actionBar/ActionBarExportMarkdown.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarExportMarkdown.js +4 -1
- package/dist/primitives/actionBar/ActionBarExportMarkdown.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts +8 -10
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.js +11 -9
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts +8 -10
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.js +11 -9
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarInteractionContext.d.ts +4 -7
- package/dist/primitives/actionBar/ActionBarInteractionContext.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarReload.d.ts +12 -14
- package/dist/primitives/actionBar/ActionBarReload.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarRoot.d.ts +51 -53
- package/dist/primitives/actionBar/ActionBarRoot.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarSpeak.d.ts +8 -10
- package/dist/primitives/actionBar/ActionBarSpeak.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarStopSpeaking.d.ts +8 -10
- package/dist/primitives/actionBar/ActionBarStopSpeaking.d.ts.map +1 -1
- package/dist/primitives/actionBar/useActionBarFloatStatus.d.ts +11 -14
- package/dist/primitives/actionBar/useActionBarFloatStatus.d.ts.map +1 -1
- package/dist/primitives/actionBar.d.ts +9 -14
- package/dist/primitives/actionBar.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreContent.d.ts +11 -14
- package/dist/primitives/actionBarMore/ActionBarMoreContent.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreItem.d.ts +8 -11
- package/dist/primitives/actionBarMore/ActionBarMoreItem.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreRoot.d.ts +5 -8
- package/dist/primitives/actionBarMore/ActionBarMoreRoot.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreSeparator.d.ts +8 -11
- package/dist/primitives/actionBarMore/ActionBarMoreSeparator.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/ActionBarMoreTrigger.d.ts +8 -11
- package/dist/primitives/actionBarMore/ActionBarMoreTrigger.d.ts.map +1 -1
- package/dist/primitives/actionBarMore/scope.d.ts +5 -8
- package/dist/primitives/actionBarMore/scope.d.ts.map +1 -1
- package/dist/primitives/actionBarMore.d.ts +5 -10
- package/dist/primitives/actionBarMore.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalAnchor.d.ts +8 -11
- package/dist/primitives/assistantModal/AssistantModalAnchor.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalContent.d.ts +13 -16
- package/dist/primitives/assistantModal/AssistantModalContent.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalRoot.d.ts +7 -10
- package/dist/primitives/assistantModal/AssistantModalRoot.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalRoot.js +1 -1
- package/dist/primitives/assistantModal/AssistantModalTrigger.d.ts +8 -11
- package/dist/primitives/assistantModal/AssistantModalTrigger.d.ts.map +1 -1
- package/dist/primitives/assistantModal/popoverRenderPrimitives.d.ts +7 -10
- package/dist/primitives/assistantModal/popoverRenderPrimitives.d.ts.map +1 -1
- package/dist/primitives/assistantModal/scope.d.ts +5 -8
- package/dist/primitives/assistantModal/scope.d.ts.map +1 -1
- package/dist/primitives/assistantModal.d.ts +4 -9
- package/dist/primitives/assistantModal.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentName.d.ts +4 -7
- package/dist/primitives/attachment/AttachmentName.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentRemove.d.ts +8 -10
- package/dist/primitives/attachment/AttachmentRemove.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentRemove.js +1 -1
- package/dist/primitives/attachment/AttachmentRoot.d.ts +12 -14
- package/dist/primitives/attachment/AttachmentRoot.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentThumb.d.ts +8 -10
- package/dist/primitives/attachment/AttachmentThumb.d.ts.map +1 -1
- package/dist/primitives/attachment/AttachmentThumb.js +1 -1
- package/dist/primitives/attachment.d.ts +4 -9
- package/dist/primitives/attachment.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts +8 -11
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts +12 -14
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNumber.d.ts +4 -7
- package/dist/primitives/branchPicker/BranchPickerNumber.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts +12 -14
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerRoot.d.ts +20 -23
- package/dist/primitives/branchPicker/BranchPickerRoot.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerRoot.js +1 -1
- package/dist/primitives/branchPicker.d.ts +5 -10
- package/dist/primitives/branchPicker.d.ts.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts +12 -14
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.js +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtParts.d.ts +2 -2
- package/dist/primitives/chainOfThought/ChainOfThoughtParts.d.ts.map +1 -0
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts +8 -10
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts.map +1 -1
- package/dist/primitives/chainOfThought.d.ts +3 -8
- package/dist/primitives/chainOfThought.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.d.ts +13 -15
- package/dist/primitives/composer/ComposerAddAttachment.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.js +1 -1
- package/dist/primitives/composer/ComposerAttachmentDropzone.d.ts +11 -13
- package/dist/primitives/composer/ComposerAttachmentDropzone.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAttachmentDropzone.js +9 -7
- package/dist/primitives/composer/ComposerAttachmentDropzone.js.map +1 -1
- package/dist/primitives/composer/ComposerAttachments.d.ts +2 -2
- package/dist/primitives/composer/ComposerAttachments.d.ts.map +1 -0
- package/dist/primitives/composer/ComposerCancel.d.ts +12 -14
- package/dist/primitives/composer/ComposerCancel.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerCompactContext.d.ts +4 -7
- package/dist/primitives/composer/ComposerCompactContext.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerDictate.d.ts +8 -10
- package/dist/primitives/composer/ComposerDictate.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerDictationTranscript.d.ts +7 -10
- package/dist/primitives/composer/ComposerDictationTranscript.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerDictationTranscript.js +1 -1
- package/dist/primitives/composer/ComposerIf.d.ts +3 -2
- package/dist/primitives/composer/ComposerIf.d.ts.map +1 -0
- package/dist/primitives/composer/ComposerInput.d.ts +74 -77
- package/dist/primitives/composer/ComposerInput.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerInput.js +3 -3
- package/dist/primitives/composer/ComposerInput.js.map +1 -1
- package/dist/primitives/composer/ComposerInputPluginContext.d.ts +27 -30
- package/dist/primitives/composer/ComposerInputPluginContext.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerQueue.d.ts +2 -2
- package/dist/primitives/composer/ComposerQueue.d.ts.map +1 -0
- package/dist/primitives/composer/ComposerQuote.d.ts +19 -22
- package/dist/primitives/composer/ComposerQuote.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerQuote.js +1 -1
- package/dist/primitives/composer/ComposerRoot.d.ts +28 -31
- package/dist/primitives/composer/ComposerRoot.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerRoot.js +1 -1
- package/dist/primitives/composer/ComposerSend.d.ts +12 -15
- package/dist/primitives/composer/ComposerSend.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerStopDictation.d.ts +8 -10
- package/dist/primitives/composer/ComposerStopDictation.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerStopDictation.js +1 -1
- package/dist/primitives/composer/trigger/TriggerPopover.d.ts +33 -36
- package/dist/primitives/composer/trigger/TriggerPopover.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/TriggerPopover.js +2 -2
- package/dist/primitives/composer/trigger/TriggerPopoverAction.d.ts +12 -15
- package/dist/primitives/composer/trigger/TriggerPopoverAction.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/TriggerPopoverAction.js +1 -1
- package/dist/primitives/composer/trigger/TriggerPopoverBack.d.ts +7 -10
- package/dist/primitives/composer/trigger/TriggerPopoverBack.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/TriggerPopoverCategories.d.ts +20 -23
- package/dist/primitives/composer/trigger/TriggerPopoverCategories.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/TriggerPopoverDirective.d.ts +10 -13
- package/dist/primitives/composer/trigger/TriggerPopoverDirective.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/TriggerPopoverDirective.js +1 -1
- package/dist/primitives/composer/trigger/TriggerPopoverItems.d.ts +22 -25
- package/dist/primitives/composer/trigger/TriggerPopoverItems.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/TriggerPopoverResource.d.ts +44 -46
- package/dist/primitives/composer/trigger/TriggerPopoverResource.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/TriggerPopoverRootContext.d.ts +39 -41
- package/dist/primitives/composer/trigger/TriggerPopoverRootContext.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/detectTrigger.d.ts +6 -9
- package/dist/primitives/composer/trigger/detectTrigger.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/index.d.ts +16 -19
- package/dist/primitives/composer/trigger/index.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/matchesTriggerItemQuery.d.ts +2 -5
- package/dist/primitives/composer/trigger/matchesTriggerItemQuery.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/triggerDetectionResource.d.ts +13 -16
- package/dist/primitives/composer/trigger/triggerDetectionResource.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/triggerKeyboardResource.d.ts +25 -28
- package/dist/primitives/composer/trigger/triggerKeyboardResource.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/triggerNavigationResource.d.ts +20 -23
- package/dist/primitives/composer/trigger/triggerNavigationResource.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/triggerSelectionResource.d.ts +27 -30
- package/dist/primitives/composer/trigger/triggerSelectionResource.d.ts.map +1 -1
- package/dist/primitives/composer/useComposerInputState.d.ts +8 -11
- package/dist/primitives/composer/useComposerInputState.d.ts.map +1 -1
- package/dist/primitives/composer.d.ts +31 -25
- package/dist/primitives/composer.d.ts.map +1 -1
- package/dist/primitives/dropdownMenuRenderPrimitives.d.ts +9 -12
- package/dist/primitives/dropdownMenuRenderPrimitives.d.ts.map +1 -1
- package/dist/primitives/error/ErrorMessage.d.ts +7 -10
- package/dist/primitives/error/ErrorMessage.d.ts.map +1 -1
- package/dist/primitives/error/ErrorRoot.d.ts +7 -10
- package/dist/primitives/error/ErrorRoot.d.ts.map +1 -1
- package/dist/primitives/error.d.ts +2 -7
- package/dist/primitives/error.d.ts.map +1 -1
- package/dist/primitives/message/MessageAttachments.d.ts +2 -2
- package/dist/primitives/message/MessageAttachments.d.ts.map +1 -0
- package/dist/primitives/message/MessageError.d.ts +2 -5
- package/dist/primitives/message/MessageError.d.ts.map +1 -1
- package/dist/primitives/message/MessageIf.d.ts +17 -19
- package/dist/primitives/message/MessageIf.d.ts.map +1 -1
- package/dist/primitives/message/MessageParts.d.ts +6 -8
- package/dist/primitives/message/MessageParts.d.ts.map +1 -1
- package/dist/primitives/message/MessagePartsGrouped.d.ts +136 -138
- package/dist/primitives/message/MessagePartsGrouped.d.ts.map +1 -1
- package/dist/primitives/message/MessagePartsGrouped.js +103 -71
- package/dist/primitives/message/MessagePartsGrouped.js.map +1 -1
- package/dist/primitives/message/MessageRoot.d.ts +7 -10
- package/dist/primitives/message/MessageRoot.d.ts.map +1 -1
- package/dist/primitives/message/MessageRoot.js +6 -2
- package/dist/primitives/message/MessageRoot.js.map +1 -1
- package/dist/primitives/message.d.ts +12 -12
- package/dist/primitives/message.d.ts.map +1 -1
- package/dist/primitives/messagePart/MessagePartImage.d.ts +11 -14
- package/dist/primitives/messagePart/MessagePartImage.d.ts.map +1 -1
- package/dist/primitives/messagePart/MessagePartInProgress.d.ts +2 -2
- package/dist/primitives/messagePart/MessagePartInProgress.d.ts.map +1 -0
- package/dist/primitives/messagePart/MessagePartText.d.ts +37 -40
- package/dist/primitives/messagePart/MessagePartText.d.ts.map +1 -1
- package/dist/primitives/messagePart/useMessagePartData.d.ts +2 -5
- package/dist/primitives/messagePart/useMessagePartData.d.ts.map +1 -1
- package/dist/primitives/messagePart/useMessagePartFile.d.ts +3 -6
- package/dist/primitives/messagePart/useMessagePartFile.d.ts.map +1 -1
- package/dist/primitives/messagePart/useMessagePartImage.d.ts +3 -6
- package/dist/primitives/messagePart/useMessagePartImage.d.ts.map +1 -1
- package/dist/primitives/messagePart/useMessagePartReasoning.d.ts +3 -6
- package/dist/primitives/messagePart/useMessagePartReasoning.d.ts.map +1 -1
- package/dist/primitives/messagePart/useMessagePartSource.d.ts +20 -23
- package/dist/primitives/messagePart/useMessagePartSource.d.ts.map +1 -1
- package/dist/primitives/messagePart/useMessagePartText.d.ts +4 -7
- package/dist/primitives/messagePart/useMessagePartText.d.ts.map +1 -1
- package/dist/primitives/messagePart.d.ts +4 -9
- package/dist/primitives/messagePart.d.ts.map +1 -1
- package/dist/primitives/queueItem/QueueItemRemove.d.ts +8 -10
- package/dist/primitives/queueItem/QueueItemRemove.d.ts.map +1 -1
- package/dist/primitives/queueItem/QueueItemRemove.js +1 -1
- package/dist/primitives/queueItem/QueueItemSteer.d.ts +8 -10
- package/dist/primitives/queueItem/QueueItemSteer.d.ts.map +1 -1
- package/dist/primitives/queueItem/QueueItemSteer.js +1 -1
- package/dist/primitives/queueItem/QueueItemText.d.ts +7 -10
- package/dist/primitives/queueItem/QueueItemText.d.ts.map +1 -1
- package/dist/primitives/queueItem/QueueItemText.js +1 -1
- package/dist/primitives/queueItem.d.ts +3 -8
- package/dist/primitives/queueItem.d.ts.map +1 -1
- package/dist/primitives/reasoning/useScrollLock.d.ts +2 -5
- package/dist/primitives/reasoning/useScrollLock.d.ts.map +1 -1
- package/dist/primitives/reasoning/useScrollLock.js +14 -15
- package/dist/primitives/reasoning/useScrollLock.js.map +1 -1
- package/dist/primitives/selectionToolbar/SelectionToolbarQuote.d.ts +7 -10
- package/dist/primitives/selectionToolbar/SelectionToolbarQuote.d.ts.map +1 -1
- package/dist/primitives/selectionToolbar/SelectionToolbarQuote.js +1 -1
- package/dist/primitives/selectionToolbar/SelectionToolbarRoot.d.ts +15 -17
- package/dist/primitives/selectionToolbar/SelectionToolbarRoot.d.ts.map +1 -1
- package/dist/primitives/selectionToolbar/SelectionToolbarRoot.js +86 -43
- package/dist/primitives/selectionToolbar/SelectionToolbarRoot.js.map +1 -1
- package/dist/primitives/selectionToolbar.d.ts +2 -7
- package/dist/primitives/selectionToolbar.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionDescription.d.ts +7 -10
- package/dist/primitives/suggestion/SuggestionDescription.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionDescription.js +1 -1
- package/dist/primitives/suggestion/SuggestionTitle.d.ts +7 -10
- package/dist/primitives/suggestion/SuggestionTitle.d.ts.map +1 -1
- package/dist/primitives/suggestion/SuggestionTitle.js +1 -1
- package/dist/primitives/suggestion/SuggestionTrigger.d.ts +37 -39
- package/dist/primitives/suggestion/SuggestionTrigger.d.ts.map +1 -1
- package/dist/primitives/suggestion.d.ts +3 -8
- package/dist/primitives/suggestion.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadEmpty.d.ts +4 -7
- package/dist/primitives/thread/ThreadEmpty.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadIf.d.ts +9 -11
- package/dist/primitives/thread/ThreadIf.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadMessages.d.ts +2 -2
- package/dist/primitives/thread/ThreadMessages.d.ts.map +1 -0
- package/dist/primitives/thread/ThreadRoot.d.ts +11 -14
- package/dist/primitives/thread/ThreadRoot.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadRoot.js +15 -8
- package/dist/primitives/thread/ThreadRoot.js.map +1 -1
- package/dist/primitives/thread/ThreadRootElementContext.d.ts +4 -0
- package/dist/primitives/thread/ThreadRootElementContext.d.ts.map +1 -0
- package/dist/primitives/thread/ThreadRootElementContext.js +11 -0
- package/dist/primitives/thread/ThreadRootElementContext.js.map +1 -0
- package/dist/primitives/thread/ThreadScrollToBottom.d.ts +13 -15
- package/dist/primitives/thread/ThreadScrollToBottom.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadSuggestion.d.ts +49 -51
- package/dist/primitives/thread/ThreadSuggestion.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadSuggestions.d.ts +2 -2
- package/dist/primitives/thread/ThreadSuggestions.d.ts.map +1 -0
- package/dist/primitives/thread/ThreadViewport.d.ts +89 -92
- package/dist/primitives/thread/ThreadViewport.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadViewport.js +1 -1
- package/dist/primitives/thread/ThreadViewportFooter.d.ts +7 -10
- package/dist/primitives/thread/ThreadViewportFooter.d.ts.map +1 -1
- package/dist/primitives/thread/topAnchor/computeTopAnchorSlack.d.ts +9 -12
- package/dist/primitives/thread/topAnchor/computeTopAnchorSlack.d.ts.map +1 -1
- package/dist/primitives/thread/topAnchor/createReserveObservers.d.ts +3 -6
- package/dist/primitives/thread/topAnchor/createReserveObservers.d.ts.map +1 -1
- package/dist/primitives/thread/topAnchor/mountTopAnchorReserve.d.ts +18 -21
- package/dist/primitives/thread/topAnchor/mountTopAnchorReserve.d.ts.map +1 -1
- package/dist/primitives/thread/topAnchor/mountTopAnchorReserve.js +55 -6
- package/dist/primitives/thread/topAnchor/mountTopAnchorReserve.js.map +1 -1
- package/dist/primitives/thread/topAnchor/topAnchorTurn.d.ts +14 -16
- package/dist/primitives/thread/topAnchor/topAnchorTurn.d.ts.map +1 -1
- package/dist/primitives/thread/topAnchor/topAnchorUtils.d.ts +5 -8
- package/dist/primitives/thread/topAnchor/topAnchorUtils.d.ts.map +1 -1
- package/dist/primitives/thread/topAnchor/useTopAnchorReserve.d.ts +1 -4
- package/dist/primitives/thread/topAnchor/useTopAnchorReserve.d.ts.map +1 -1
- package/dist/primitives/thread/useThreadViewportAutoScroll.d.ts +30 -33
- package/dist/primitives/thread/useThreadViewportAutoScroll.d.ts.map +1 -1
- package/dist/primitives/thread/useThreadViewportAutoScroll.js +39 -16
- package/dist/primitives/thread/useThreadViewportAutoScroll.js.map +1 -1
- package/dist/primitives/thread.d.ts +12 -15
- package/dist/primitives/thread.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListItems.d.ts +2 -2
- package/dist/primitives/threadList/ThreadListItems.d.ts.map +1 -0
- package/dist/primitives/threadList/ThreadListLoadMore.d.ts +8 -10
- package/dist/primitives/threadList/ThreadListLoadMore.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListNew.d.ts +7 -10
- package/dist/primitives/threadList/ThreadListNew.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListNew.js +1 -1
- package/dist/primitives/threadList/ThreadListRoot.d.ts +8 -10
- package/dist/primitives/threadList/ThreadListRoot.d.ts.map +1 -1
- package/dist/primitives/threadList.d.ts +5 -9
- package/dist/primitives/threadList.d.ts.map +1 -1
- package/dist/primitives/threadListFocusGroup.d.ts +17 -19
- package/dist/primitives/threadListFocusGroup.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts +8 -10
- package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts +8 -10
- package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts +8 -10
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemRoot.js +1 -1
- package/dist/primitives/threadListItem/ThreadListItemTitle.d.ts +2 -2
- package/dist/primitives/threadListItem/ThreadListItemTitle.d.ts.map +1 -0
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts +8 -10
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts +8 -10
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts.map +1 -1
- package/dist/primitives/threadListItem.d.ts +6 -11
- package/dist/primitives/threadListItem.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreContent.d.ts +11 -14
- package/dist/primitives/threadListItemMore/ThreadListItemMoreContent.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreItem.d.ts +8 -11
- package/dist/primitives/threadListItemMore/ThreadListItemMoreItem.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreRoot.d.ts +15 -18
- package/dist/primitives/threadListItemMore/ThreadListItemMoreRoot.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreSeparator.d.ts +8 -11
- package/dist/primitives/threadListItemMore/ThreadListItemMoreSeparator.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/ThreadListItemMoreTrigger.d.ts +8 -11
- package/dist/primitives/threadListItemMore/ThreadListItemMoreTrigger.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore/scope.d.ts +5 -8
- package/dist/primitives/threadListItemMore/scope.d.ts.map +1 -1
- package/dist/primitives/threadListItemMore.d.ts +5 -10
- package/dist/primitives/threadListItemMore.d.ts.map +1 -1
- package/dist/sandbox-host/SandboxHost.d.ts +31 -34
- package/dist/sandbox-host/SandboxHost.d.ts.map +1 -1
- package/dist/unstable/useComposerInput.d.ts +37 -40
- package/dist/unstable/useComposerInput.d.ts.map +1 -1
- package/dist/unstable/useComposerInput.js +1 -1
- package/dist/unstable/useComposerInputHistory.d.ts +5 -8
- package/dist/unstable/useComposerInputHistory.d.ts.map +1 -1
- package/dist/unstable/useComposerInputHistory.js +2 -2
- package/dist/unstable/useLiveCompletionAdapter.d.ts +20 -23
- package/dist/unstable/useLiveCompletionAdapter.d.ts.map +1 -1
- package/dist/unstable/useMentionAdapter.d.ts +63 -66
- package/dist/unstable/useMentionAdapter.d.ts.map +1 -1
- package/dist/unstable/useMentionAdapter.js +1 -1
- package/dist/unstable/useMessageStallDetection.d.ts +13 -16
- package/dist/unstable/useMessageStallDetection.d.ts.map +1 -1
- package/dist/unstable/useMessageStallDetection.js +1 -1
- package/dist/unstable/useModelContextSnapshot.d.ts +16 -19
- package/dist/unstable/useModelContextSnapshot.d.ts.map +1 -1
- package/dist/unstable/useSlashCommandAdapter.d.ts +24 -27
- package/dist/unstable/useSlashCommandAdapter.d.ts.map +1 -1
- package/dist/unstable/webmcp/WebMcpRegistrationResource.d.ts +9 -12
- package/dist/unstable/webmcp/WebMcpRegistrationResource.d.ts.map +1 -1
- package/dist/unstable/webmcp/convertTools.d.ts +9 -12
- package/dist/unstable/webmcp/convertTools.d.ts.map +1 -1
- package/dist/unstable/webmcp/convertTools.js +2 -2
- package/dist/unstable/webmcp/convertTools.js.map +1 -1
- package/dist/unstable/webmcp/useWebMcpProvider.d.ts +7 -10
- package/dist/unstable/webmcp/useWebMcpProvider.d.ts.map +1 -1
- package/dist/unstable/webmcp/useWebMcpProvider.js +1 -1
- package/dist/unstable/webmcp/webmcp-host.d.ts +29 -32
- package/dist/unstable/webmcp/webmcp-host.d.ts.map +1 -1
- package/dist/utils/Primitive.d.ts +91 -92
- package/dist/utils/Primitive.d.ts.map +1 -1
- package/dist/utils/RequireAtLeastOne.d.ts +3 -4
- package/dist/utils/RequireAtLeastOne.d.ts.map +1 -1
- package/dist/utils/createActionButton.d.ts +7 -9
- package/dist/utils/createActionButton.d.ts.map +1 -1
- package/dist/utils/getSelectionMessageId.d.ts +1 -4
- package/dist/utils/getSelectionMessageId.d.ts.map +1 -1
- package/dist/utils/getSelectionMessageId.js +2 -1
- package/dist/utils/getSelectionMessageId.js.map +1 -1
- package/dist/utils/hooks/useManagedRef.d.ts +1 -4
- package/dist/utils/hooks/useManagedRef.d.ts.map +1 -1
- package/dist/utils/hooks/useMediaQuery.d.ts +1 -4
- package/dist/utils/hooks/useMediaQuery.d.ts.map +1 -1
- package/dist/utils/hooks/useOnResizeContent.d.ts +1 -4
- package/dist/utils/hooks/useOnResizeContent.d.ts.map +1 -1
- package/dist/utils/hooks/useOnScrollToBottom.d.ts +2 -5
- package/dist/utils/hooks/useOnScrollToBottom.d.ts.map +1 -1
- package/dist/utils/hooks/useSizeHandle.d.ts +2 -5
- package/dist/utils/hooks/useSizeHandle.d.ts.map +1 -1
- package/dist/utils/smooth/SmoothContext.d.ts +108 -111
- package/dist/utils/smooth/SmoothContext.d.ts.map +1 -1
- package/dist/utils/smooth/SmoothContext.js +1 -1
- package/dist/utils/smooth/useSmooth.d.ts +28 -31
- package/dist/utils/smooth/useSmooth.d.ts.map +1 -1
- package/dist/utils/smooth/useSmooth.js +1 -1
- package/package.json +17 -16
- package/src/assistant-transport.ts +5 -4
- package/src/cloud-renderer/CloudRendererHost.test.tsx +362 -0
- package/src/cloud-renderer/CloudRendererHost.tsx +249 -0
- package/src/index.ts +29 -1
- package/src/mcp-apps/McpAppRenderer.test.tsx +1 -2
- package/src/primitives/actionBar/ActionBarExportMarkdown.test.tsx +30 -0
- package/src/primitives/actionBar/ActionBarExportMarkdown.tsx +4 -0
- package/src/primitives/actionBar/ActionBarFeedback.test.tsx +87 -0
- package/src/primitives/actionBar/ActionBarFeedbackNegative.tsx +1 -0
- package/src/primitives/actionBar/ActionBarFeedbackPositive.tsx +1 -0
- package/src/primitives/composer/ComposerAddAttachment.test.tsx +7 -5
- package/src/primitives/composer/ComposerAttachmentDropzone.test.tsx +54 -0
- package/src/primitives/composer/ComposerAttachmentDropzone.tsx +12 -6
- package/src/primitives/composer/ComposerInput.test.tsx +18 -0
- package/src/primitives/composer/ComposerInput.tsx +8 -2
- package/src/primitives/composer/ComposerRoot.test.tsx +5 -3
- package/src/primitives/message/MessagePartsGrouped.test.tsx +151 -4
- package/src/primitives/message/MessagePartsGrouped.tool-interaction.test.tsx +97 -0
- package/src/primitives/message/MessagePartsGrouped.tsx +14 -5
- package/src/primitives/message/MessageRoot.test.tsx +108 -0
- package/src/primitives/message/MessageRoot.tsx +5 -1
- package/src/primitives/reasoning/useScrollLock.test.tsx +47 -0
- package/src/primitives/reasoning/useScrollLock.ts +15 -17
- package/src/primitives/selectionToolbar/SelectionToolbarRoot.test.tsx +271 -13
- package/src/primitives/selectionToolbar/SelectionToolbarRoot.tsx +67 -13
- package/src/primitives/thread/ThreadRoot.tsx +10 -1
- package/src/primitives/thread/ThreadRootElementContext.ts +10 -0
- package/src/primitives/thread/topAnchor/mountTopAnchorReserve.test.ts +196 -0
- package/src/primitives/thread/topAnchor/mountTopAnchorReserve.ts +78 -5
- package/src/primitives/thread/useThreadViewportAutoScroll.test.tsx +317 -0
- package/src/primitives/thread/useThreadViewportAutoScroll.ts +47 -2
- package/src/tests/RemoteThreadListRuntime.reloadMainThread.test.tsx +2 -4
- package/src/tests/augmentations.test.ts +7 -0
- package/src/tests/threadListItemIsRunning.test.tsx +3 -2
- package/src/unstable/useMentionAdapter.test.tsx +15 -21
- package/src/unstable/useModelContextSnapshot.test.tsx +3 -2
- package/src/unstable/webmcp/convertTools.test.ts +81 -39
- package/src/unstable/webmcp/convertTools.ts +7 -11
- package/src/unstable/webmcp/useWebMcpProvider.test.tsx +12 -3
- package/src/utils/getSelectionMessageId.test.ts +28 -0
- package/src/utils/getSelectionMessageId.ts +7 -1
- package/dist/tests/remote-thread-list-test-helpers.d.ts +0 -6
- package/dist/tests/remote-thread-list-test-helpers.d.ts.map +0 -1
- package/dist/tests/remote-thread-list-test-helpers.js +0 -29
- package/dist/tests/remote-thread-list-test-helpers.js.map +0 -1
- package/dist/tests/setup.d.ts +0 -1
- package/dist/tests/setup.js +0 -6
- package/dist/tests/setup.js.map +0 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Primitive } from "../../utils/Primitive.js";
|
|
2
|
-
import {
|
|
3
|
-
//#region src/primitives/chainOfThought/ChainOfThoughtRoot.d.ts
|
|
2
|
+
import { type ComponentRef, type ComponentPropsWithoutRef } from "react";
|
|
4
3
|
type PrimitiveDivProps = ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
5
|
-
declare namespace ChainOfThoughtPrimitiveRoot {
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export declare namespace ChainOfThoughtPrimitiveRoot {
|
|
5
|
+
type Element = ComponentRef<typeof Primitive.div>;
|
|
6
|
+
type Props = PrimitiveDivProps;
|
|
8
7
|
}
|
|
9
8
|
/**
|
|
10
9
|
* The root container for chain of thought components.
|
|
@@ -22,11 +21,10 @@ declare namespace ChainOfThoughtPrimitiveRoot {
|
|
|
22
21
|
* </ChainOfThoughtPrimitive.Root>
|
|
23
22
|
* ```
|
|
24
23
|
*/
|
|
25
|
-
declare const ChainOfThoughtPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
26
|
-
|
|
24
|
+
export declare const ChainOfThoughtPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
25
|
+
asChild?: boolean;
|
|
27
26
|
}, "ref"> & {
|
|
28
|
-
|
|
27
|
+
render?: import("react").ReactElement | undefined;
|
|
29
28
|
} & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
|
-
|
|
31
|
-
export { ChainOfThoughtPrimitiveRoot };
|
|
29
|
+
export {};
|
|
32
30
|
//# sourceMappingURL=ChainOfThoughtRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainOfThoughtRoot.d.ts","
|
|
1
|
+
{"version":3,"file":"ChainOfThoughtRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAClD,OAAO,EACL,KAAK,YAAY,EAEjB,KAAK,wBAAwB,EAC9B,MAAM,OAAO,CAAC;AAEf,KAAK,iBAAiB,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;AAExE,yBAAiB,2BAA2B,CAAC;IAC3C,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,2BAA2B;;;;0GAKtC,CAAC"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare namespace chainOfThought_d_exports {
|
|
5
|
-
export { ChainOfThoughtPrimitiveAccordionTrigger as AccordionTrigger, ChainOfThoughtPrimitiveAccordionTrigger as AccordionTriggerPrimitive, ChainOfThoughtPrimitiveParts as Parts, ChainOfThoughtPrimitiveParts as PartsPrimitive, ChainOfThoughtPrimitiveRoot as Root, ChainOfThoughtPrimitiveRoot as RootPrimitive };
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { ChainOfThoughtPrimitiveAccordionTrigger as AccordionTrigger, type ChainOfThoughtPrimitiveAccordionTrigger as AccordionTriggerPrimitive, ChainOfThoughtPrimitiveParts as Parts, type ChainOfThoughtPrimitiveParts as PartsPrimitive, ChainOfThoughtPrimitiveRoot as Root, type ChainOfThoughtPrimitiveRoot as RootPrimitive, chainOfThought_d_exports };
|
|
1
|
+
export { ChainOfThoughtPrimitiveRoot as Root, type ChainOfThoughtPrimitiveRoot as RootPrimitive, } from "./chainOfThought/ChainOfThoughtRoot.js";
|
|
2
|
+
export { ChainOfThoughtPrimitiveAccordionTrigger as AccordionTrigger, type ChainOfThoughtPrimitiveAccordionTrigger as AccordionTriggerPrimitive, } from "./chainOfThought/ChainOfThoughtAccordionTrigger.js";
|
|
3
|
+
export { ChainOfThoughtPrimitiveParts as Parts, type ChainOfThoughtPrimitiveParts as PartsPrimitive, } from "./chainOfThought/ChainOfThoughtParts.js";
|
|
9
4
|
//# sourceMappingURL=chainOfThought.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chainOfThought.d.ts","
|
|
1
|
+
{"version":3,"file":"chainOfThought.d.ts","sourceRoot":"","sources":["../../src/primitives/chainOfThought.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,IAAI,IAAI,EACnC,KAAK,2BAA2B,IAAI,aAAa,GAClD,+CAA4C;AAE7C,OAAO,EACL,uCAAuC,IAAI,gBAAgB,EAC3D,KAAK,uCAAuC,IAAI,yBAAyB,GAC1E,2DAAwD;AAEzD,OAAO,EACL,4BAA4B,IAAI,KAAK,EACrC,KAAK,4BAA4B,IAAI,cAAc,GACpD,gDAA6C"}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { ActionButtonElement, ActionButtonProps } from "../../utils/createActionButton.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
multiple?: boolean | undefined;
|
|
1
|
+
import { type ActionButtonElement, type ActionButtonProps } from "../../utils/createActionButton.js";
|
|
2
|
+
declare const useComposerAddAttachment: ({ multiple, }?: {
|
|
3
|
+
/** allow selecting multiple files */
|
|
4
|
+
multiple?: boolean | undefined;
|
|
6
5
|
}) => (() => void) | null;
|
|
7
|
-
declare namespace ComposerPrimitiveAddAttachment {
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
export declare namespace ComposerPrimitiveAddAttachment {
|
|
7
|
+
type Element = ActionButtonElement;
|
|
8
|
+
type Props = ActionButtonProps<typeof useComposerAddAttachment>;
|
|
10
9
|
}
|
|
11
|
-
declare const ComposerPrimitiveAddAttachment: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
12
|
-
|
|
10
|
+
export declare const ComposerPrimitiveAddAttachment: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
11
|
+
asChild?: boolean;
|
|
13
12
|
}, "ref"> & {
|
|
14
|
-
|
|
13
|
+
render?: import("react").ReactElement | undefined;
|
|
15
14
|
} & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
/** allow selecting multiple files */
|
|
16
|
+
multiple?: boolean | undefined;
|
|
18
17
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
19
|
-
|
|
20
|
-
export { ComposerPrimitiveAddAttachment };
|
|
18
|
+
export {};
|
|
21
19
|
//# sourceMappingURL=ComposerAddAttachment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerAddAttachment.d.ts","
|
|
1
|
+
{"version":3,"file":"ComposerAddAttachment.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerAddAttachment.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EAEvB,0CAAuC;AAKxC,QAAA,MAAM,wBAAwB,GAAI,gBAE/B;IACD,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC3B,wBA4CL,CAAC;AAEF,yBAAiB,8BAA8B,CAAC;IAC9C,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,wBAAwB,CAAC,CAAC;CACxE;AAED,eAAO,MAAM,8BAA8B;;;;;IArDzC,qCAAqC;eAC1B,OAAO,GAAG,SAAS;qDAwD/B,CAAC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { createActionButton } from "../../utils/createActionButton.js";
|
|
3
3
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
4
4
|
import { useComposerAddAttachment } from "@assistant-ui/core/react";
|
|
5
|
-
import { useAui } from "@assistant-ui/store";
|
|
6
5
|
import "@assistant-ui/tap/react-shim";
|
|
6
|
+
import { useAui } from "@assistant-ui/store";
|
|
7
7
|
//#region src/primitives/composer/ComposerAddAttachment.ts
|
|
8
8
|
const useComposerAddAttachment$1 = (t0) => {
|
|
9
9
|
const $ = c(6);
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
declare namespace ComposerPrimitiveAttachmentDropzone {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
export declare namespace ComposerPrimitiveAttachmentDropzone {
|
|
4
|
+
type Element = HTMLDivElement;
|
|
5
|
+
type Props = React.HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
asChild?: boolean | undefined;
|
|
7
|
+
render?: ReactElement | undefined;
|
|
8
|
+
disabled?: boolean | undefined;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare const ComposerPrimitiveAttachmentDropzone: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
6
12
|
asChild?: boolean | undefined;
|
|
7
13
|
render?: ReactElement | undefined;
|
|
8
14
|
disabled?: boolean | undefined;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
declare const ComposerPrimitiveAttachmentDropzone: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
12
|
-
asChild?: boolean | undefined;
|
|
13
|
-
render?: ReactElement | undefined;
|
|
14
|
-
disabled?: boolean | undefined;
|
|
15
15
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { ComposerPrimitiveAttachmentDropzone };
|
|
18
16
|
//# sourceMappingURL=ComposerAttachmentDropzone.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerAttachmentDropzone.d.ts","
|
|
1
|
+
{"version":3,"file":"ComposerAttachmentDropzone.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerAttachmentDropzone.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,yBAAiB,mCAAmC,CAAC;IACnD,KAAY,OAAO,GAAG,cAAc,CAAC;IACrC,KAAY,KAAK,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;QACzD,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC9B,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;QAClC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAChC,CAAC;CACH;AAED,eAAO,MAAM,mCAAmC;cANlC,OAAO,GAAG,SAAS;aACpB,YAAY,GAAG,SAAS;eACtB,OAAO,GAAG,SAAS;wCA2GhC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { renderSlot } from "../../utils/Primitive.js";
|
|
3
|
+
import { forwardRef, isValidElement, useCallback, useEffect, useState } from "@assistant-ui/tap/react-shim";
|
|
3
4
|
import { useAui } from "@assistant-ui/store";
|
|
4
|
-
import { forwardRef, isValidElement, useCallback, useState } from "@assistant-ui/tap/react-shim";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { composeEventHandlers } from "radix-ui/internal";
|
|
7
7
|
import { Slot } from "radix-ui";
|
|
@@ -9,21 +9,23 @@ import { Slot } from "radix-ui";
|
|
|
9
9
|
const ComposerPrimitiveAttachmentDropzone = forwardRef(({ disabled, asChild = false, render, children, ...rest }, ref) => {
|
|
10
10
|
const [isDragging, setIsDragging] = useState(false);
|
|
11
11
|
const aui = useAui();
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
if (!disabled) return;
|
|
14
|
+
setIsDragging(false);
|
|
15
|
+
}, [disabled]);
|
|
12
16
|
const handleDragEnterCapture = useCallback((e) => {
|
|
13
|
-
if (disabled) return;
|
|
14
17
|
if (!e.dataTransfer.types.includes("Files")) return;
|
|
15
18
|
e.preventDefault();
|
|
16
|
-
if (!aui.thread.getState().capabilities.attachments) {
|
|
19
|
+
if (disabled || !aui.thread.getState().capabilities.attachments) {
|
|
17
20
|
e.dataTransfer.dropEffect = "none";
|
|
18
21
|
return;
|
|
19
22
|
}
|
|
20
23
|
setIsDragging(true);
|
|
21
24
|
}, [disabled, aui]);
|
|
22
25
|
const handleDragOverCapture = useCallback((e_0) => {
|
|
23
|
-
if (disabled) return;
|
|
24
26
|
if (!e_0.dataTransfer.types.includes("Files")) return;
|
|
25
27
|
e_0.preventDefault();
|
|
26
|
-
if (!aui.thread.getState().capabilities.attachments) {
|
|
28
|
+
if (disabled || !aui.thread.getState().capabilities.attachments) {
|
|
27
29
|
e_0.dataTransfer.dropEffect = "none";
|
|
28
30
|
return;
|
|
29
31
|
}
|
|
@@ -41,10 +43,10 @@ const ComposerPrimitiveAttachmentDropzone = forwardRef(({ disabled, asChild = fa
|
|
|
41
43
|
setIsDragging(false);
|
|
42
44
|
}, [disabled]);
|
|
43
45
|
const handleDrop = useCallback(async (e_2) => {
|
|
44
|
-
if (disabled) return;
|
|
45
46
|
setIsDragging(false);
|
|
46
47
|
if (!e_2.dataTransfer.types.includes("Files")) return;
|
|
47
48
|
e_2.preventDefault();
|
|
49
|
+
if (disabled) return;
|
|
48
50
|
const files = Array.from(e_2.dataTransfer.files);
|
|
49
51
|
if (!aui.thread.getState().capabilities.attachments || files.length === 0) return;
|
|
50
52
|
await Promise.all(files.map(async (file) => {
|
|
@@ -54,7 +56,7 @@ const ComposerPrimitiveAttachmentDropzone = forwardRef(({ disabled, asChild = fa
|
|
|
54
56
|
}));
|
|
55
57
|
}, [disabled, aui]);
|
|
56
58
|
const mergedProps = {
|
|
57
|
-
...isDragging ? { "data-dragging": "true" } : null,
|
|
59
|
+
...isDragging && !disabled ? { "data-dragging": "true" } : null,
|
|
58
60
|
...rest,
|
|
59
61
|
onDragEnterCapture: composeEventHandlers(rest.onDragEnterCapture, handleDragEnterCapture),
|
|
60
62
|
onDragOverCapture: composeEventHandlers(rest.onDragOverCapture, handleDragOverCapture),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerAttachmentDropzone.js","names":["forwardRef","useCallback","useState","ReactElement","isValidElement","composeEventHandlers","Slot","React","useAui","renderSlot","ComposerPrimitiveAttachmentDropzone","Element","HTMLDivElement","Props","HTMLAttributes","asChild","render","disabled","children","rest","ref","isDragging","setIsDragging","aui","handleDragEnterCapture","e","DragEvent","dataTransfer","types","includes","preventDefault","thread","getState","capabilities","attachments","dropEffect","handleDragOverCapture","handleDragLeaveCapture","next","relatedTarget","Node","currentTarget","contains","handleDrop","files","Array","from","length","Promise","all","map","file","composer","addAttachment","mergedProps","onDragEnterCapture","onDragOverCapture","onDragLeaveCapture","onDropCapture","Comp","Root","displayName"],"sources":["../../../src/primitives/composer/ComposerAttachmentDropzone.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n forwardRef,\n useCallback,\n useState,\n type ReactElement,\n isValidElement,\n} from \"react\";\n\nimport { composeEventHandlers } from \"radix-ui/internal\";\nimport { Slot } from \"radix-ui\";\nimport type React from \"react\";\nimport { useAui } from \"@assistant-ui/store\";\nimport { renderSlot } from \"../../utils/Primitive\";\n\nexport namespace ComposerPrimitiveAttachmentDropzone {\n export type Element = HTMLDivElement;\n export type Props = React.HTMLAttributes<HTMLDivElement> & {\n asChild?: boolean | undefined;\n render?: ReactElement | undefined;\n disabled?: boolean | undefined;\n };\n}\n\nexport const ComposerPrimitiveAttachmentDropzone = forwardRef<\n HTMLDivElement,\n ComposerPrimitiveAttachmentDropzone.Props\n>(({ disabled, asChild = false, render, children, ...rest }, ref) => {\n const [isDragging, setIsDragging] = useState(false);\n const aui = useAui();\n\n // An unprevented file drop navigates the tab to the file, so file drags are\n // claimed via preventDefault even when the runtime does not support attachments.\n const handleDragEnterCapture = useCallback(\n (e: React.DragEvent) => {\n if (
|
|
1
|
+
{"version":3,"file":"ComposerAttachmentDropzone.js","names":["forwardRef","useCallback","useEffect","useState","ReactElement","isValidElement","composeEventHandlers","Slot","React","useAui","renderSlot","ComposerPrimitiveAttachmentDropzone","Element","HTMLDivElement","Props","HTMLAttributes","asChild","render","disabled","children","rest","ref","isDragging","setIsDragging","aui","handleDragEnterCapture","e","DragEvent","dataTransfer","types","includes","preventDefault","thread","getState","capabilities","attachments","dropEffect","handleDragOverCapture","handleDragLeaveCapture","next","relatedTarget","Node","currentTarget","contains","handleDrop","files","Array","from","length","Promise","all","map","file","composer","addAttachment","mergedProps","onDragEnterCapture","onDragOverCapture","onDragLeaveCapture","onDropCapture","Comp","Root","displayName"],"sources":["../../../src/primitives/composer/ComposerAttachmentDropzone.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n forwardRef,\n useCallback,\n useEffect,\n useState,\n type ReactElement,\n isValidElement,\n} from \"react\";\n\nimport { composeEventHandlers } from \"radix-ui/internal\";\nimport { Slot } from \"radix-ui\";\nimport type React from \"react\";\nimport { useAui } from \"@assistant-ui/store\";\nimport { renderSlot } from \"../../utils/Primitive\";\n\nexport namespace ComposerPrimitiveAttachmentDropzone {\n export type Element = HTMLDivElement;\n export type Props = React.HTMLAttributes<HTMLDivElement> & {\n asChild?: boolean | undefined;\n render?: ReactElement | undefined;\n disabled?: boolean | undefined;\n };\n}\n\nexport const ComposerPrimitiveAttachmentDropzone = forwardRef<\n HTMLDivElement,\n ComposerPrimitiveAttachmentDropzone.Props\n>(({ disabled, asChild = false, render, children, ...rest }, ref) => {\n const [isDragging, setIsDragging] = useState(false);\n const aui = useAui();\n\n useEffect(() => {\n if (!disabled) return;\n // Disabled handlers cannot clear the latch, so reset it when the enabled period ends.\n // eslint-disable-next-line react-hooks/set-state-in-effect\n setIsDragging(false);\n }, [disabled]);\n\n // An unprevented file drop navigates the tab to the file, so file drags are\n // claimed via preventDefault even when the runtime does not support attachments.\n const handleDragEnterCapture = useCallback(\n (e: React.DragEvent) => {\n if (!e.dataTransfer.types.includes(\"Files\")) return;\n e.preventDefault();\n if (disabled || !aui.thread.getState().capabilities.attachments) {\n e.dataTransfer.dropEffect = \"none\";\n return;\n }\n setIsDragging(true);\n },\n [disabled, aui],\n );\n\n const handleDragOverCapture = useCallback(\n (e: React.DragEvent) => {\n if (!e.dataTransfer.types.includes(\"Files\")) return;\n e.preventDefault();\n if (disabled || !aui.thread.getState().capabilities.attachments) {\n e.dataTransfer.dropEffect = \"none\";\n return;\n }\n if (!isDragging) setIsDragging(true);\n },\n [disabled, isDragging, aui],\n );\n\n const handleDragLeaveCapture = useCallback(\n (e: React.DragEvent) => {\n if (disabled) return;\n e.preventDefault();\n const next = e.relatedTarget as Node | null;\n if (next && e.currentTarget.contains(next)) {\n return;\n }\n setIsDragging(false);\n },\n [disabled],\n );\n\n const handleDrop = useCallback(\n async (e: React.DragEvent) => {\n setIsDragging(false);\n if (!e.dataTransfer.types.includes(\"Files\")) return;\n e.preventDefault();\n if (disabled) return;\n const files = Array.from(e.dataTransfer.files);\n if (!aui.thread.getState().capabilities.attachments || files.length === 0)\n return;\n await Promise.all(\n files.map(async (file) => {\n try {\n await aui.composer.addAttachment(file);\n } catch {\n // The composer runtime emits composer.attachmentAddError before rejecting;\n // the readonly and empty-thread stubs only throw.\n }\n }),\n );\n },\n [disabled, aui],\n );\n\n const mergedProps = {\n ...(isDragging && !disabled ? { \"data-dragging\": \"true\" } : null),\n ...rest,\n onDragEnterCapture: composeEventHandlers(\n rest.onDragEnterCapture,\n handleDragEnterCapture,\n ),\n onDragOverCapture: composeEventHandlers(\n rest.onDragOverCapture,\n handleDragOverCapture,\n ),\n onDragLeaveCapture: composeEventHandlers(\n rest.onDragLeaveCapture,\n handleDragLeaveCapture,\n ),\n onDropCapture: composeEventHandlers(rest.onDropCapture, handleDrop),\n ref,\n };\n\n if (render && isValidElement(render)) {\n return renderSlot(render, children, mergedProps);\n }\n\n const Comp = asChild ? Slot.Root : \"div\";\n return <Comp {...mergedProps}>{children}</Comp>;\n});\n\nComposerPrimitiveAttachmentDropzone.displayName =\n \"ComposerPrimitive.AttachmentDropzone\";\n"],"mappings":";;;;;;;;AA0BA,MAAaW,sCAAsCX,YAGhD,EAAEkB,UAAUF,UAAU,OAAOC,QAAQE,UAAU,GAAGC,QAAQC,QAAQ;CACnE,MAAM,CAACC,YAAYC,iBAAiBpB,SAAS,KAAK;CAClD,MAAMqB,MAAMf,OAAO;CAEnBP,gBAAgB;EACd,IAAI,CAACgB,UAAU;EAGfK,cAAc,KAAK;CACrB,GAAG,CAACL,QAAQ,CAAC;CAIb,MAAMO,yBAAyBxB,aAC5ByB,MAAuB;EACtB,IAAI,CAACA,EAAEE,aAAaC,MAAMC,SAAS,OAAO,GAAG;EAC7CJ,EAAEK,eAAe;EACjB,IAAIb,YAAY,CAACM,IAAIQ,OAAOC,SAAS,CAAC,CAACC,aAAaC,aAAa;GAC/DT,EAAEE,aAAaQ,aAAa;GAC5B;EACF;EACAb,cAAc,IAAI;CACpB,GACA,CAACL,UAAUM,GAAG,CAChB;CAEA,MAAMa,wBAAwBpC,aAC3ByB,QAAuB;EACtB,IAAI,CAACA,IAAEE,aAAaC,MAAMC,SAAS,OAAO,GAAG;EAC7CJ,IAAEK,eAAe;EACjB,IAAIb,YAAY,CAACM,IAAIQ,OAAOC,SAAS,CAAC,CAACC,aAAaC,aAAa;GAC/DT,IAAEE,aAAaQ,aAAa;GAC5B;EACF;EACA,IAAI,CAACd,YAAYC,cAAc,IAAI;CACrC,GACA;EAACL;EAAUI;EAAYE;CAAG,CAC5B;CAEA,MAAMc,yBAAyBrC,aAC5ByB,QAAuB;EACtB,IAAIR,UAAU;EACdQ,IAAEK,eAAe;EACjB,MAAMQ,OAAOb,IAAEc;EACf,IAAID,QAAQb,IAAEgB,cAAcC,SAASJ,IAAI,GACvC;EAEFhB,cAAc,KAAK;CACrB,GACA,CAACL,QAAQ,CACX;CAEA,MAAM0B,aAAa3C,YACjB,OAAOyB,QAAuB;EAC5BH,cAAc,KAAK;EACnB,IAAI,CAACG,IAAEE,aAAaC,MAAMC,SAAS,OAAO,GAAG;EAC7CJ,IAAEK,eAAe;EACjB,IAAIb,UAAU;EACd,MAAM2B,QAAQC,MAAMC,KAAKrB,IAAEE,aAAaiB,KAAK;EAC7C,IAAI,CAACrB,IAAIQ,OAAOC,SAAS,CAAC,CAACC,aAAaC,eAAeU,MAAMG,WAAW,GACtE;EACF,MAAMC,QAAQC,IACZL,MAAMM,IAAI,OAAOC,SAAS;GACxB,IAAI;IACF,MAAM5B,IAAI6B,SAASC,cAAcF,IAAI;GACvC,QAAQ,CAEN;EAEJ,CAAC,CACH;CACF,GACA,CAAClC,UAAUM,GAAG,CAChB;CAEA,MAAM+B,cAAc;EAClB,GAAIjC,cAAc,CAACJ,WAAW,EAAE,iBAAiB,OAAO,IAAI;EAC5D,GAAGE;EACHoC,oBAAoBlD,qBAClBc,KAAKoC,oBACL/B,sBACF;EACAgC,mBAAmBnD,qBACjBc,KAAKqC,mBACLpB,qBACF;EACAqB,oBAAoBpD,qBAClBc,KAAKsC,oBACLpB,sBACF;EACAqB,eAAerD,qBAAqBc,KAAKuC,eAAef,UAAU;EAClEvB;CACF;CAEA,IAAIJ,UAAUZ,eAAeY,MAAM,GACjC,OAAOP,WAAWO,QAAQE,UAAUoC,WAAW;CAGjD,MAAMK,OAAO5C,UAAUT,KAAKsD,OAAO;CACnC,OAAO,oBAAC,MAAD;EAAM,GAAIN;EAAcpC;CAAe,CAAA;AAChD,CAAC;AAEDR,oCAAoCmD,cAClC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export { ComposerPrimitiveAttachments, ComposerPrimitiveAttachmentByIndex, } from "@assistant-ui/core/react";
|
|
2
|
+
//# sourceMappingURL=ComposerAttachments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComposerAttachments.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerAttachments.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,4BAA4B,EAC5B,kCAAkC,GACnC,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { ActionButtonElement, ActionButtonProps } from "../../utils/createActionButton.js";
|
|
2
|
-
//#region src/primitives/composer/ComposerCancel.d.ts
|
|
1
|
+
import { type ActionButtonElement, type ActionButtonProps } from "../../utils/createActionButton.js";
|
|
3
2
|
declare const useComposerCancel: () => (() => void) | null;
|
|
4
|
-
declare namespace ComposerPrimitiveCancel {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
export declare namespace ComposerPrimitiveCancel {
|
|
4
|
+
type Element = ActionButtonElement;
|
|
5
|
+
/**
|
|
6
|
+
* Props for the ComposerPrimitive.Cancel component.
|
|
7
|
+
* Inherits all button element props and action button functionality.
|
|
8
|
+
*/
|
|
9
|
+
type Props = ActionButtonProps<typeof useComposerCancel>;
|
|
11
10
|
}
|
|
12
11
|
/**
|
|
13
12
|
* A button component that cancels the current message composition.
|
|
@@ -22,11 +21,10 @@ declare namespace ComposerPrimitiveCancel {
|
|
|
22
21
|
* </ComposerPrimitive.Cancel>
|
|
23
22
|
* ```
|
|
24
23
|
*/
|
|
25
|
-
declare const ComposerPrimitiveCancel: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
26
|
-
|
|
24
|
+
export declare const ComposerPrimitiveCancel: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
25
|
+
asChild?: boolean;
|
|
27
26
|
}, "ref"> & {
|
|
28
|
-
|
|
27
|
+
render?: import("react").ReactElement | undefined;
|
|
29
28
|
} & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
30
|
-
|
|
31
|
-
export { ComposerPrimitiveCancel };
|
|
29
|
+
export {};
|
|
32
30
|
//# sourceMappingURL=ComposerCancel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerCancel.d.ts","
|
|
1
|
+
{"version":3,"file":"ComposerCancel.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerCancel.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EAEvB,0CAAuC;AAGxC,QAAA,MAAM,iBAAiB,2BAItB,CAAC;AAEF,yBAAiB,uBAAuB,CAAC;IACvC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C;;;OAGG;IACH,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,iBAAiB,CAAC,CAAC;CACjE;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB;;;;gHAGnC,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
setMultiline: (multiline: boolean) => void;
|
|
1
|
+
export type ComposerCompactContextValue = {
|
|
2
|
+
setMultiline: (multiline: boolean) => void;
|
|
4
3
|
};
|
|
5
|
-
declare const ComposerCompactContext: import("react").Context<ComposerCompactContextValue | null>;
|
|
6
|
-
declare const useComposerCompactContextOptional: () => ComposerCompactContextValue | null;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { ComposerCompactContext, ComposerCompactContextValue, useComposerCompactContextOptional };
|
|
4
|
+
export declare const ComposerCompactContext: import("react").Context<ComposerCompactContextValue | null>;
|
|
5
|
+
export declare const useComposerCompactContextOptional: () => ComposerCompactContextValue | null;
|
|
9
6
|
//# sourceMappingURL=ComposerCompactContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerCompactContext.d.ts","
|
|
1
|
+
{"version":3,"file":"ComposerCompactContext.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerCompactContext.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,2BAA2B,GAAG;IACxC,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,sBAAsB,6DACsB,CAAC;AAE1D,eAAO,MAAM,iCAAiC,0CACV,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ActionButtonElement, ActionButtonProps } from "../../utils/createActionButton.js";
|
|
2
|
-
//#region src/primitives/composer/ComposerDictate.d.ts
|
|
1
|
+
import type { ActionButtonElement, ActionButtonProps } from "../../utils/createActionButton.js";
|
|
3
2
|
declare const useComposerDictate: () => (() => void) | null;
|
|
4
|
-
declare namespace ComposerPrimitiveDictate {
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
export declare namespace ComposerPrimitiveDictate {
|
|
4
|
+
type Element = ActionButtonElement;
|
|
5
|
+
type Props = ActionButtonProps<typeof useComposerDictate>;
|
|
7
6
|
}
|
|
8
7
|
/**
|
|
9
8
|
* A button that starts dictation to convert voice to text.
|
|
@@ -17,11 +16,10 @@ declare namespace ComposerPrimitiveDictate {
|
|
|
17
16
|
* </ComposerPrimitive.Dictate>
|
|
18
17
|
* ```
|
|
19
18
|
*/
|
|
20
|
-
declare const ComposerPrimitiveDictate: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
21
|
-
|
|
19
|
+
export declare const ComposerPrimitiveDictate: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
20
|
+
asChild?: boolean;
|
|
22
21
|
}, "ref"> & {
|
|
23
|
-
|
|
22
|
+
render?: import("react").ReactElement | undefined;
|
|
24
23
|
} & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
25
|
-
|
|
26
|
-
export { ComposerPrimitiveDictate };
|
|
24
|
+
export {};
|
|
27
25
|
//# sourceMappingURL=ComposerDictate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerDictate.d.ts","
|
|
1
|
+
{"version":3,"file":"ComposerDictate.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerDictate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EAClB,0CAAuC;AAIxC,QAAA,MAAM,kBAAkB,2BAIvB,CAAC;AAEF,yBAAiB,wBAAwB,CAAC;IACxC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,kBAAkB,CAAC,CAAC;CAClE;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB;;;;gHAGpC,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Primitive } from "../../utils/Primitive.js";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
2
|
+
import { type ComponentRef, type ComponentPropsWithoutRef } from "react";
|
|
3
|
+
export declare namespace ComposerPrimitiveDictationTranscript {
|
|
4
|
+
type Element = ComponentRef<typeof Primitive.span>;
|
|
5
|
+
type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
7
6
|
}
|
|
8
7
|
/**
|
|
9
8
|
* Renders the current interim (partial) transcript while dictation is active.
|
|
@@ -20,11 +19,9 @@ declare namespace ComposerPrimitiveDictationTranscript {
|
|
|
20
19
|
* </AuiIf>
|
|
21
20
|
* ```
|
|
22
21
|
*/
|
|
23
|
-
declare const ComposerPrimitiveDictationTranscript: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
24
|
-
|
|
22
|
+
export declare const ComposerPrimitiveDictationTranscript: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
23
|
+
asChild?: boolean;
|
|
25
24
|
}, "ref"> & {
|
|
26
|
-
|
|
25
|
+
render?: import("react").ReactElement | undefined;
|
|
27
26
|
} & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
28
|
-
//#endregion
|
|
29
|
-
export { ComposerPrimitiveDictationTranscript };
|
|
30
27
|
//# sourceMappingURL=ComposerDictationTranscript.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerDictationTranscript.d.ts","
|
|
1
|
+
{"version":3,"file":"ComposerDictationTranscript.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerDictationTranscript.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAClD,OAAO,EACL,KAAK,YAAY,EAEjB,KAAK,wBAAwB,EAC9B,MAAM,OAAO,CAAC;AAGf,yBAAiB,oCAAoC,CAAC;IACpD,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IAC1D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;CACrE;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,oCAAoC;;;;4GAa/C,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Primitive } from "../../utils/Primitive.js";
|
|
3
3
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
4
|
-
import { useAuiState } from "@assistant-ui/store";
|
|
5
4
|
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
5
|
+
import { useAuiState } from "@assistant-ui/store";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/primitives/composer/ComposerDictationTranscript.tsx
|
|
8
8
|
/**
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
export { ComposerPrimitiveIf } from "@assistant-ui/core/react";
|
|
2
|
+
export type { UseComposerIfProps } from "@assistant-ui/core/react";
|
|
3
|
+
//# sourceMappingURL=ComposerIf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComposerIf.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerIf.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,YAAY,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,77 +1,76 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { TextareaAutosizeProps } from "react-textarea-autosize";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
export {};
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type TextareaAutosizeProps } from "react-textarea-autosize";
|
|
3
|
+
export declare namespace ComposerPrimitiveInput {
|
|
4
|
+
export type Element = HTMLTextAreaElement;
|
|
5
|
+
type BaseProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Whether to render as a child component using Slot.
|
|
8
|
+
* When true, the component will merge its props with its child.
|
|
9
|
+
*/
|
|
10
|
+
asChild?: boolean | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* A React element to use as the input container, with props merged in.
|
|
13
|
+
*/
|
|
14
|
+
render?: ReactElement | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Whether to cancel message composition when Escape is pressed.
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
19
|
+
cancelOnEscape?: boolean | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Whether to automatically focus the input when a new run starts.
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
unstable_focusOnRunStart?: boolean | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Whether to automatically focus the input when scrolling to bottom.
|
|
27
|
+
* @default true
|
|
28
|
+
*/
|
|
29
|
+
unstable_focusOnScrollToBottom?: boolean | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Whether to automatically focus the input when switching threads.
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
unstable_focusOnThreadSwitched?: boolean | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Whether plain Enter on a touch-primary device should insert a newline
|
|
37
|
+
* instead of submitting, detected via
|
|
38
|
+
* `(pointer: coarse) and (not (any-pointer: fine))`. Only takes effect
|
|
39
|
+
* when `submitMode` resolves to `"enter"`.
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
unstable_insertNewlineOnTouchEnter?: boolean | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Whether to automatically add pasted files as attachments.
|
|
45
|
+
* @default true
|
|
46
|
+
*/
|
|
47
|
+
addAttachmentOnPaste?: boolean | undefined;
|
|
48
|
+
};
|
|
49
|
+
type SubmitModeProps = {
|
|
50
|
+
/**
|
|
51
|
+
* Controls how the Enter key submits messages.
|
|
52
|
+
* - "enter": Plain Enter submits (Shift+Enter for newline)
|
|
53
|
+
* - "ctrlEnter": Ctrl/Cmd+Enter submits (plain Enter for newline)
|
|
54
|
+
* - "none": Keyboard submission disabled
|
|
55
|
+
* @default "enter"
|
|
56
|
+
*/
|
|
57
|
+
submitMode?: "enter" | "ctrlEnter" | "none" | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated Use `submitMode` instead
|
|
60
|
+
* @ignore
|
|
61
|
+
*/
|
|
62
|
+
submitOnEnter?: never;
|
|
63
|
+
} | {
|
|
64
|
+
submitMode?: never;
|
|
65
|
+
/**
|
|
66
|
+
* Whether to submit the message when Enter is pressed (without Shift).
|
|
67
|
+
* @default true
|
|
68
|
+
* @deprecated Use `submitMode` instead. Will be removed in a future version.
|
|
69
|
+
*/
|
|
70
|
+
submitOnEnter?: boolean | undefined;
|
|
71
|
+
};
|
|
72
|
+
export type Props = TextareaAutosizeProps & BaseProps & SubmitModeProps;
|
|
73
|
+
export {};
|
|
75
74
|
}
|
|
76
75
|
/**
|
|
77
76
|
* A text input component for composing messages.
|
|
@@ -107,7 +106,5 @@ declare namespace ComposerPrimitiveInput {
|
|
|
107
106
|
* />
|
|
108
107
|
* ```
|
|
109
108
|
*/
|
|
110
|
-
declare const ComposerPrimitiveInput: import("react").ForwardRefExoticComponent<ComposerPrimitiveInput.Props & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
111
|
-
//#endregion
|
|
112
|
-
export { ComposerPrimitiveInput };
|
|
109
|
+
export declare const ComposerPrimitiveInput: import("react").ForwardRefExoticComponent<ComposerPrimitiveInput.Props & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
113
110
|
//# sourceMappingURL=ComposerInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerInput.d.ts","
|
|
1
|
+
{"version":3,"file":"ComposerInput.d.ts","sourceRoot":"","sources":["../../../src/primitives/composer/ComposerInput.tsx"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,YAAY,EAOlB,MAAM,OAAO,CAAC;AACf,OAAyB,EACvB,KAAK,qBAAqB,EAE3B,MAAM,yBAAyB,CAAC;AAiBjC,yBAAiB,sBAAsB,CAAC;IACtC,MAAM,MAAM,OAAO,GAAG,mBAAmB,CAAC;IAE1C,KAAK,SAAS,GAAG;QACf;;;WAGG;QACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC9B;;WAEG;QACH,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;QAClC;;;WAGG;QACH,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACrC;;;WAGG;QACH,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC/C;;;WAGG;QACH,8BAA8B,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACrD;;;WAGG;QACH,8BAA8B,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACrD;;;;;;WAMG;QACH,kCAAkC,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACzD;;;WAGG;QACH,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAC5C,CAAC;IAEF,KAAK,eAAe,GAChB;QACE;;;;;;WAMG;QACH,UAAU,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;QACxD;;;WAGG;QACH,aAAa,CAAC,EAAE,KAAK,CAAC;KACvB,GACD;QACE,UAAU,CAAC,EAAE,KAAK,CAAC;QACnB;;;;WAIG;QACH,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KACrC,CAAC;IAEN,MAAM,MAAM,KAAK,GAAG,qBAAqB,GAAG,SAAS,GAAG,eAAe,CAAC;;CACzE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,sBAAsB,8HAiTlC,CAAC"}
|