@assistant-ui/react 0.5.100 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api/AssistantRuntime.d.ts +6 -86
- package/dist/api/AssistantRuntime.d.ts.map +1 -1
- package/dist/api/AssistantRuntime.js +0 -8
- package/dist/api/AssistantRuntime.js.map +1 -1
- package/dist/api/AssistantRuntime.mjs +0 -8
- package/dist/api/AssistantRuntime.mjs.map +1 -1
- package/dist/api/AttachmentRuntime.d.ts +4 -16
- package/dist/api/AttachmentRuntime.d.ts.map +1 -1
- package/dist/api/AttachmentRuntime.js.map +1 -1
- package/dist/api/AttachmentRuntime.mjs.map +1 -1
- package/dist/api/ComposerRuntime.d.ts +15 -131
- package/dist/api/ComposerRuntime.d.ts.map +1 -1
- package/dist/api/ComposerRuntime.js +4 -84
- package/dist/api/ComposerRuntime.js.map +1 -1
- package/dist/api/ComposerRuntime.mjs +4 -84
- package/dist/api/ComposerRuntime.mjs.map +1 -1
- package/dist/api/ContentPartRuntime.d.ts +2 -6
- package/dist/api/ContentPartRuntime.d.ts.map +1 -1
- package/dist/api/ContentPartRuntime.js.map +1 -1
- package/dist/api/ContentPartRuntime.mjs.map +1 -1
- package/dist/api/MessageRuntime.d.ts +8 -19
- package/dist/api/MessageRuntime.d.ts.map +1 -1
- package/dist/api/MessageRuntime.js +11 -7
- package/dist/api/MessageRuntime.js.map +1 -1
- package/dist/api/MessageRuntime.mjs +10 -6
- package/dist/api/MessageRuntime.mjs.map +1 -1
- package/dist/api/RuntimePathTypes.d.ts +33 -33
- package/dist/api/RuntimePathTypes.d.ts.map +1 -1
- package/dist/api/RuntimePathTypes.js.map +1 -1
- package/dist/api/ThreadListItemRuntime.d.ts +12 -8
- package/dist/api/ThreadListItemRuntime.d.ts.map +1 -1
- package/dist/api/ThreadListItemRuntime.js +10 -6
- package/dist/api/ThreadListItemRuntime.js.map +1 -1
- package/dist/api/ThreadListItemRuntime.mjs +10 -6
- package/dist/api/ThreadListItemRuntime.mjs.map +1 -1
- package/dist/api/ThreadListRuntime.d.ts +10 -28
- package/dist/api/ThreadListRuntime.d.ts.map +1 -1
- package/dist/api/ThreadListRuntime.js +23 -26
- package/dist/api/ThreadListRuntime.js.map +1 -1
- package/dist/api/ThreadListRuntime.mjs +23 -26
- package/dist/api/ThreadListRuntime.mjs.map +1 -1
- package/dist/api/ThreadRuntime.d.ts +53 -211
- package/dist/api/ThreadRuntime.d.ts.map +1 -1
- package/dist/api/ThreadRuntime.js +2 -94
- package/dist/api/ThreadRuntime.js.map +1 -1
- package/dist/api/ThreadRuntime.mjs +2 -94
- package/dist/api/ThreadRuntime.mjs.map +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js.map +1 -1
- package/dist/context/providers/AssistantRuntimeProvider.d.ts.map +1 -1
- package/dist/context/providers/AssistantRuntimeProvider.js +0 -1
- package/dist/context/providers/AssistantRuntimeProvider.js.map +1 -1
- package/dist/context/providers/AssistantRuntimeProvider.mjs +0 -1
- package/dist/context/providers/AssistantRuntimeProvider.mjs.map +1 -1
- package/dist/context/providers/TextContentPartProvider.d.ts.map +1 -1
- package/dist/context/providers/TextContentPartProvider.js +0 -2
- package/dist/context/providers/TextContentPartProvider.js.map +1 -1
- package/dist/context/providers/TextContentPartProvider.mjs +0 -2
- package/dist/context/providers/TextContentPartProvider.mjs.map +1 -1
- package/dist/context/providers/ThreadListItemRuntimeProvider.d.ts +1 -4
- package/dist/context/providers/ThreadListItemRuntimeProvider.d.ts.map +1 -1
- package/dist/context/providers/ThreadRuntimeProvider.d.ts.map +1 -1
- package/dist/context/providers/ThreadRuntimeProvider.js +1 -13
- package/dist/context/providers/ThreadRuntimeProvider.js.map +1 -1
- package/dist/context/providers/ThreadRuntimeProvider.mjs +1 -13
- package/dist/context/providers/ThreadRuntimeProvider.mjs.map +1 -1
- package/dist/context/react/AssistantContext.d.ts +10 -120
- package/dist/context/react/AssistantContext.d.ts.map +1 -1
- package/dist/context/react/AssistantContext.js +0 -15
- package/dist/context/react/AssistantContext.js.map +1 -1
- package/dist/context/react/AssistantContext.mjs +0 -11
- package/dist/context/react/AssistantContext.mjs.map +1 -1
- package/dist/context/react/AttachmentContext.d.ts +32 -48
- package/dist/context/react/AttachmentContext.d.ts.map +1 -1
- package/dist/context/react/ComposerContext.d.ts +0 -5
- package/dist/context/react/ComposerContext.d.ts.map +1 -1
- package/dist/context/react/ComposerContext.js +3 -5
- package/dist/context/react/ComposerContext.js.map +1 -1
- package/dist/context/react/ComposerContext.mjs +2 -3
- package/dist/context/react/ComposerContext.mjs.map +1 -1
- package/dist/context/react/ContentPartContext.d.ts +0 -5
- package/dist/context/react/ContentPartContext.d.ts.map +1 -1
- package/dist/context/react/ContentPartContext.js +3 -5
- package/dist/context/react/ContentPartContext.js.map +1 -1
- package/dist/context/react/ContentPartContext.mjs +2 -3
- package/dist/context/react/ContentPartContext.mjs.map +1 -1
- package/dist/context/react/MessageContext.d.ts +6 -46
- package/dist/context/react/MessageContext.d.ts.map +1 -1
- package/dist/context/react/MessageContext.js +2 -6
- package/dist/context/react/MessageContext.js.map +1 -1
- package/dist/context/react/MessageContext.mjs +2 -4
- package/dist/context/react/MessageContext.mjs.map +1 -1
- package/dist/context/react/ThreadContext.d.ts +11 -1749
- package/dist/context/react/ThreadContext.d.ts.map +1 -1
- package/dist/context/react/ThreadContext.js +4 -30
- package/dist/context/react/ThreadContext.js.map +1 -1
- package/dist/context/react/ThreadContext.mjs +4 -22
- package/dist/context/react/ThreadContext.mjs.map +1 -1
- package/dist/context/react/ThreadListItemContext.d.ts +6 -24
- package/dist/context/react/ThreadListItemContext.d.ts.map +1 -1
- package/dist/context/react/index.d.ts +5 -101
- package/dist/context/react/index.d.ts.map +1 -1
- package/dist/context/react/index.js +0 -38
- package/dist/context/react/index.js.map +1 -1
- package/dist/context/react/index.mjs +5 -49
- package/dist/context/react/index.mjs.map +1 -1
- package/dist/context/stores/AssistantToolUIs.d.ts +9 -6
- package/dist/context/stores/AssistantToolUIs.d.ts.map +1 -1
- package/dist/context/stores/AssistantToolUIs.js.map +1 -1
- package/dist/context/stores/AssistantToolUIs.mjs.map +1 -1
- package/dist/context/stores/MessageUtils.d.ts +7 -12
- package/dist/context/stores/MessageUtils.d.ts.map +1 -1
- package/dist/context/stores/MessageUtils.js.map +1 -1
- package/dist/context/stores/MessageUtils.mjs.map +1 -1
- package/dist/context/stores/ThreadViewport.d.ts +6 -10
- package/dist/context/stores/ThreadViewport.d.ts.map +1 -1
- package/dist/context/stores/ThreadViewport.js +0 -1
- package/dist/context/stores/ThreadViewport.js.map +1 -1
- package/dist/context/stores/ThreadViewport.mjs +0 -2
- package/dist/context/stores/ThreadViewport.mjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal.d.ts +1 -0
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +3 -0
- package/dist/internal.js.map +1 -1
- package/dist/internal.mjs +2 -0
- package/dist/internal.mjs.map +1 -1
- package/dist/model-config/useAssistantToolUI.d.ts.map +1 -1
- package/dist/model-config/useAssistantToolUI.js.map +1 -1
- package/dist/model-config/useAssistantToolUI.mjs.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartDisplay.d.ts +1 -4
- package/dist/primitive-hooks/contentPart/useContentPartDisplay.d.ts.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartDisplay.js.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartDisplay.mjs.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartImage.d.ts +1 -4
- package/dist/primitive-hooks/contentPart/useContentPartImage.d.ts.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartImage.js.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartImage.mjs.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartText.d.ts +1 -4
- package/dist/primitive-hooks/contentPart/useContentPartText.d.ts.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartText.js.map +1 -1
- package/dist/primitive-hooks/contentPart/useContentPartText.mjs.map +1 -1
- package/dist/primitive-hooks/index.d.ts +0 -5
- package/dist/primitive-hooks/index.d.ts.map +1 -1
- package/dist/primitive-hooks/index.js +1 -11
- package/dist/primitive-hooks/index.js.map +1 -1
- package/dist/primitive-hooks/index.mjs +0 -5
- package/dist/primitive-hooks/index.mjs.map +1 -1
- package/dist/primitives/actionBar/ActionBarCopy.d.ts +1 -5
- package/dist/primitives/actionBar/ActionBarCopy.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarCopy.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarCopy.mjs.map +1 -1
- package/dist/primitives/actionBar/ActionBarEdit.d.ts +0 -4
- package/dist/primitives/actionBar/ActionBarEdit.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarEdit.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarEdit.mjs.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts +0 -4
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.mjs.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts +0 -4
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.mjs.map +1 -1
- package/dist/primitives/actionBar/ActionBarReload.d.ts +0 -4
- package/dist/primitives/actionBar/ActionBarReload.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarReload.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarReload.mjs.map +1 -1
- package/dist/primitives/actionBar/ActionBarRoot.d.ts +0 -4
- package/dist/primitives/actionBar/ActionBarRoot.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarRoot.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarRoot.mjs.map +1 -1
- package/dist/primitives/actionBar/ActionBarSpeak.d.ts +0 -4
- package/dist/primitives/actionBar/ActionBarSpeak.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarSpeak.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarSpeak.mjs.map +1 -1
- package/dist/primitives/actionBar/ActionBarStopSpeaking.d.ts +0 -4
- package/dist/primitives/actionBar/ActionBarStopSpeaking.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarStopSpeaking.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarStopSpeaking.mjs.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalContent.d.ts +0 -4
- package/dist/primitives/assistantModal/AssistantModalContent.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalContent.js.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalContent.mjs.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalRoot.d.ts +0 -4
- package/dist/primitives/assistantModal/AssistantModalRoot.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalRoot.js.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalRoot.mjs.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalTrigger.d.ts +0 -4
- package/dist/primitives/assistantModal/AssistantModalTrigger.d.ts.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalTrigger.js.map +1 -1
- package/dist/primitives/assistantModal/AssistantModalTrigger.mjs.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts +0 -4
- package/dist/primitives/branchPicker/BranchPickerCount.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerCount.js.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerCount.mjs.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts +0 -4
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNext.js.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNext.mjs.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNumber.d.ts +0 -4
- package/dist/primitives/branchPicker/BranchPickerNumber.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNumber.js.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerNumber.mjs.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts +0 -4
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerPrevious.js.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerPrevious.mjs.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerRoot.d.ts +0 -4
- package/dist/primitives/branchPicker/BranchPickerRoot.d.ts.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerRoot.js.map +1 -1
- package/dist/primitives/branchPicker/BranchPickerRoot.mjs.map +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.d.ts +1 -5
- package/dist/primitives/composer/ComposerAddAttachment.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.js +2 -2
- package/dist/primitives/composer/ComposerAddAttachment.js.map +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.mjs +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.mjs.map +1 -1
- package/dist/primitives/composer/ComposerAttachments.d.ts +0 -4
- package/dist/primitives/composer/ComposerAttachments.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerAttachments.js.map +1 -1
- package/dist/primitives/composer/ComposerAttachments.mjs.map +1 -1
- package/dist/primitives/composer/ComposerCancel.d.ts +0 -4
- package/dist/primitives/composer/ComposerCancel.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerCancel.js.map +1 -1
- package/dist/primitives/composer/ComposerCancel.mjs.map +1 -1
- package/dist/primitives/composer/ComposerIf.d.ts +0 -4
- package/dist/primitives/composer/ComposerIf.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerIf.js.map +1 -1
- package/dist/primitives/composer/ComposerIf.mjs.map +1 -1
- package/dist/primitives/composer/ComposerInput.d.ts +0 -4
- package/dist/primitives/composer/ComposerInput.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerInput.js.map +1 -1
- package/dist/primitives/composer/ComposerInput.mjs.map +1 -1
- package/dist/primitives/composer/ComposerRoot.d.ts +0 -1
- package/dist/primitives/composer/ComposerRoot.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerRoot.js +2 -2
- package/dist/primitives/composer/ComposerRoot.js.map +1 -1
- package/dist/primitives/composer/ComposerRoot.mjs +1 -1
- package/dist/primitives/composer/ComposerRoot.mjs.map +1 -1
- package/dist/primitives/composer/ComposerSend.d.ts +1 -5
- package/dist/primitives/composer/ComposerSend.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerSend.js +2 -2
- package/dist/primitives/composer/ComposerSend.js.map +1 -1
- package/dist/primitives/composer/ComposerSend.mjs +1 -1
- package/dist/primitives/composer/ComposerSend.mjs.map +1 -1
- package/dist/primitives/contentPart/ContentPartDisplay.d.ts +0 -4
- package/dist/primitives/contentPart/ContentPartDisplay.d.ts.map +1 -1
- package/dist/primitives/contentPart/ContentPartDisplay.js.map +1 -1
- package/dist/primitives/contentPart/ContentPartDisplay.mjs.map +1 -1
- package/dist/primitives/contentPart/ContentPartImage.d.ts +0 -4
- package/dist/primitives/contentPart/ContentPartImage.d.ts.map +1 -1
- package/dist/primitives/contentPart/ContentPartImage.js.map +1 -1
- package/dist/primitives/contentPart/ContentPartImage.mjs.map +1 -1
- package/dist/primitives/contentPart/ContentPartInProgress.d.ts +0 -4
- package/dist/primitives/contentPart/ContentPartInProgress.d.ts.map +1 -1
- package/dist/primitives/contentPart/ContentPartInProgress.js.map +1 -1
- package/dist/primitives/contentPart/ContentPartInProgress.mjs.map +1 -1
- package/dist/primitives/contentPart/ContentPartText.d.ts +0 -4
- package/dist/primitives/contentPart/ContentPartText.d.ts.map +1 -1
- package/dist/primitives/contentPart/ContentPartText.js.map +1 -1
- package/dist/primitives/contentPart/ContentPartText.mjs.map +1 -1
- package/dist/primitives/index.d.ts +0 -7
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js.map +1 -1
- package/dist/primitives/index.mjs.map +1 -1
- package/dist/primitives/message/MessageAttachments.d.ts +0 -4
- package/dist/primitives/message/MessageAttachments.d.ts.map +1 -1
- package/dist/primitives/message/MessageAttachments.js +2 -4
- package/dist/primitives/message/MessageAttachments.js.map +1 -1
- package/dist/primitives/message/MessageAttachments.mjs +2 -4
- package/dist/primitives/message/MessageAttachments.mjs.map +1 -1
- package/dist/primitives/message/MessageContent.d.ts +0 -4
- package/dist/primitives/message/MessageContent.d.ts.map +1 -1
- package/dist/primitives/message/MessageContent.js +6 -6
- package/dist/primitives/message/MessageContent.js.map +1 -1
- package/dist/primitives/message/MessageContent.mjs +7 -7
- package/dist/primitives/message/MessageContent.mjs.map +1 -1
- package/dist/primitives/message/MessageIf.d.ts +0 -4
- package/dist/primitives/message/MessageIf.d.ts.map +1 -1
- package/dist/primitives/message/MessageIf.js.map +1 -1
- package/dist/primitives/message/MessageIf.mjs.map +1 -1
- package/dist/primitives/message/MessageRoot.d.ts +0 -4
- package/dist/primitives/message/MessageRoot.d.ts.map +1 -1
- package/dist/primitives/message/MessageRoot.js.map +1 -1
- package/dist/primitives/message/MessageRoot.mjs.map +1 -1
- package/dist/primitives/message/index.d.ts +0 -1
- package/dist/primitives/message/index.d.ts.map +1 -1
- package/dist/primitives/message/index.js +0 -3
- package/dist/primitives/message/index.js.map +1 -1
- package/dist/primitives/message/index.mjs +0 -2
- package/dist/primitives/message/index.mjs.map +1 -1
- package/dist/primitives/thread/ThreadEmpty.d.ts +0 -4
- package/dist/primitives/thread/ThreadEmpty.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadEmpty.js +2 -2
- package/dist/primitives/thread/ThreadEmpty.js.map +1 -1
- package/dist/primitives/thread/ThreadEmpty.mjs +1 -1
- package/dist/primitives/thread/ThreadEmpty.mjs.map +1 -1
- package/dist/primitives/thread/ThreadIf.d.ts +0 -4
- package/dist/primitives/thread/ThreadIf.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadIf.js.map +1 -1
- package/dist/primitives/thread/ThreadIf.mjs.map +1 -1
- package/dist/primitives/thread/ThreadMessages.d.ts +0 -4
- package/dist/primitives/thread/ThreadMessages.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadMessages.js.map +1 -1
- package/dist/primitives/thread/ThreadMessages.mjs.map +1 -1
- package/dist/primitives/thread/ThreadRoot.d.ts +0 -4
- package/dist/primitives/thread/ThreadRoot.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadRoot.js.map +1 -1
- package/dist/primitives/thread/ThreadRoot.mjs.map +1 -1
- package/dist/primitives/thread/ThreadScrollToBottom.d.ts +0 -4
- package/dist/primitives/thread/ThreadScrollToBottom.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadScrollToBottom.js.map +1 -1
- package/dist/primitives/thread/ThreadScrollToBottom.mjs.map +1 -1
- package/dist/primitives/thread/ThreadSuggestion.d.ts +0 -4
- package/dist/primitives/thread/ThreadSuggestion.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadSuggestion.js.map +1 -1
- package/dist/primitives/thread/ThreadSuggestion.mjs.map +1 -1
- package/dist/primitives/thread/ThreadViewport.d.ts +0 -4
- package/dist/primitives/thread/ThreadViewport.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadViewport.js.map +1 -1
- package/dist/primitives/thread/ThreadViewport.mjs.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemArchive.js +3 -2
- package/dist/primitives/threadListItem/ThreadListItemArchive.js.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemArchive.mjs +3 -2
- package/dist/primitives/threadListItem/ThreadListItemArchive.mjs.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts +14 -0
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts.map +1 -0
- package/dist/primitives/threadListItem/ThreadListItemRoot.js +47 -0
- package/dist/primitives/threadListItem/ThreadListItemRoot.js.map +1 -0
- package/dist/primitives/threadListItem/ThreadListItemRoot.mjs +23 -0
- package/dist/primitives/threadListItem/ThreadListItemRoot.mjs.map +1 -0
- package/dist/primitives/threadListItem/ThreadListItemTitle.d.ts +8 -0
- package/dist/primitives/threadListItem/ThreadListItemTitle.d.ts.map +1 -0
- package/dist/primitives/{message/MessageInProgress.js → threadListItem/ThreadListItemTitle.js} +13 -10
- package/dist/primitives/threadListItem/ThreadListItemTitle.js.map +1 -0
- package/dist/primitives/threadListItem/ThreadListItemTitle.mjs +14 -0
- package/dist/primitives/threadListItem/ThreadListItemTitle.mjs.map +1 -0
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts +13 -0
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts.map +1 -0
- package/dist/{runtimes/core/subscribeToMainThread.js → primitives/threadListItem/ThreadListItemTrigger.js} +17 -22
- package/dist/primitives/threadListItem/ThreadListItemTrigger.js.map +1 -0
- package/dist/primitives/threadListItem/ThreadListItemTrigger.mjs +21 -0
- package/dist/primitives/threadListItem/ThreadListItemTrigger.mjs.map +1 -0
- package/dist/primitives/threadListItem/index.d.ts +3 -0
- package/dist/primitives/threadListItem/index.d.ts.map +1 -1
- package/dist/primitives/threadListItem/index.js +9 -0
- package/dist/primitives/threadListItem/index.js.map +1 -1
- package/dist/primitives/threadListItem/index.mjs +6 -0
- package/dist/primitives/threadListItem/index.mjs.map +1 -1
- package/dist/runtimes/attachment/AttachmentAdapter.d.ts +3 -7
- package/dist/runtimes/attachment/AttachmentAdapter.d.ts.map +1 -1
- package/dist/runtimes/attachment/AttachmentAdapter.js.map +1 -1
- package/dist/runtimes/attachment/CompositeAttachmentAdapter.d.ts +2 -6
- package/dist/runtimes/attachment/CompositeAttachmentAdapter.d.ts.map +1 -1
- package/dist/runtimes/attachment/CompositeAttachmentAdapter.js +1 -2
- package/dist/runtimes/attachment/CompositeAttachmentAdapter.js.map +1 -1
- package/dist/runtimes/attachment/CompositeAttachmentAdapter.mjs +1 -2
- package/dist/runtimes/attachment/CompositeAttachmentAdapter.mjs.map +1 -1
- package/dist/runtimes/composer/BaseComposerRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/composer/BaseComposerRuntimeCore.js +0 -6
- package/dist/runtimes/composer/BaseComposerRuntimeCore.js.map +1 -1
- package/dist/runtimes/composer/BaseComposerRuntimeCore.mjs +0 -6
- package/dist/runtimes/composer/BaseComposerRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/core/BaseThreadRuntimeCore.d.ts +6 -7
- package/dist/runtimes/core/BaseThreadRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/core/BaseThreadRuntimeCore.js +8 -4
- package/dist/runtimes/core/BaseThreadRuntimeCore.js.map +1 -1
- package/dist/runtimes/core/BaseThreadRuntimeCore.mjs +8 -4
- package/dist/runtimes/core/BaseThreadRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/core/ComposerRuntimeCore.d.ts +0 -3
- package/dist/runtimes/core/ComposerRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/core/ComposerRuntimeCore.js.map +1 -1
- package/dist/runtimes/core/ThreadListRuntimeCore.d.ts +7 -10
- package/dist/runtimes/core/ThreadListRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/core/ThreadListRuntimeCore.js.map +1 -1
- package/dist/runtimes/core/ThreadRuntimeCore.d.ts +30 -17
- package/dist/runtimes/core/ThreadRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/core/ThreadRuntimeCore.js.map +1 -1
- package/dist/runtimes/core/index.d.ts +1 -2
- package/dist/runtimes/core/index.d.ts.map +1 -1
- package/dist/runtimes/core/index.js +0 -12
- package/dist/runtimes/core/index.js.map +1 -1
- package/dist/runtimes/core/index.mjs +0 -5
- package/dist/runtimes/core/index.mjs.map +1 -1
- package/dist/runtimes/edge/converters/toCoreMessages.d.ts +1 -1
- package/dist/runtimes/edge/converters/toCoreMessages.d.ts.map +1 -1
- package/dist/runtimes/edge/converters/toCoreMessages.js.map +1 -1
- package/dist/runtimes/edge/converters/toCoreMessages.mjs.map +1 -1
- package/dist/runtimes/edge/createEdgeRuntimeAPI.d.ts +0 -4
- package/dist/runtimes/edge/createEdgeRuntimeAPI.d.ts.map +1 -1
- package/dist/runtimes/edge/createEdgeRuntimeAPI.js +0 -2
- package/dist/runtimes/edge/createEdgeRuntimeAPI.js.map +1 -1
- package/dist/runtimes/edge/createEdgeRuntimeAPI.mjs +0 -2
- package/dist/runtimes/edge/createEdgeRuntimeAPI.mjs.map +1 -1
- package/dist/runtimes/edge/streams/runResultStream.js +0 -2
- package/dist/runtimes/edge/streams/runResultStream.js.map +1 -1
- package/dist/runtimes/edge/streams/runResultStream.mjs +0 -2
- package/dist/runtimes/edge/streams/runResultStream.mjs.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreAdapter.d.ts +3 -16
- package/dist/runtimes/external-store/ExternalStoreAdapter.d.ts.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreAdapter.js.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreRuntimeCore.js +0 -3
- package/dist/runtimes/external-store/ExternalStoreRuntimeCore.js.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreRuntimeCore.mjs +0 -3
- package/dist/runtimes/external-store/ExternalStoreRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.d.ts +10 -12
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.js +29 -7
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.js.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.mjs +29 -7
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreThreadRuntimeCore.d.ts +2 -12
- package/dist/runtimes/external-store/ExternalStoreThreadRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreThreadRuntimeCore.js +4 -3
- package/dist/runtimes/external-store/ExternalStoreThreadRuntimeCore.js.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreThreadRuntimeCore.mjs +4 -3
- package/dist/runtimes/external-store/ExternalStoreThreadRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/external-store/ThreadMessageLike.d.ts.map +1 -1
- package/dist/runtimes/external-store/ThreadMessageLike.js +2 -0
- package/dist/runtimes/external-store/ThreadMessageLike.js.map +1 -1
- package/dist/runtimes/external-store/ThreadMessageLike.mjs +2 -0
- package/dist/runtimes/external-store/ThreadMessageLike.mjs.map +1 -1
- package/dist/runtimes/local/ChatModelAdapter.d.ts +0 -8
- package/dist/runtimes/local/ChatModelAdapter.d.ts.map +1 -1
- package/dist/runtimes/local/ChatModelAdapter.js.map +1 -1
- package/dist/runtimes/local/LocalRuntimeOptions.d.ts +1 -6
- package/dist/runtimes/local/LocalRuntimeOptions.d.ts.map +1 -1
- package/dist/runtimes/local/LocalRuntimeOptions.js +1 -2
- package/dist/runtimes/local/LocalRuntimeOptions.js.map +1 -1
- package/dist/runtimes/local/LocalRuntimeOptions.mjs +1 -2
- package/dist/runtimes/local/LocalRuntimeOptions.mjs.map +1 -1
- package/dist/runtimes/local/LocalThreadListRuntimeCore.d.ts +16 -20
- package/dist/runtimes/local/LocalThreadListRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/local/LocalThreadListRuntimeCore.js +112 -72
- package/dist/runtimes/local/LocalThreadListRuntimeCore.js.map +1 -1
- package/dist/runtimes/local/LocalThreadListRuntimeCore.mjs +112 -72
- package/dist/runtimes/local/LocalThreadListRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/local/LocalThreadMetadataRuntimeCore.d.ts +19 -0
- package/dist/runtimes/local/LocalThreadMetadataRuntimeCore.d.ts.map +1 -0
- package/dist/runtimes/local/LocalThreadMetadataRuntimeCore.js +87 -0
- package/dist/runtimes/local/LocalThreadMetadataRuntimeCore.js.map +1 -0
- package/dist/runtimes/local/LocalThreadMetadataRuntimeCore.mjs +62 -0
- package/dist/runtimes/local/LocalThreadMetadataRuntimeCore.mjs.map +1 -0
- package/dist/runtimes/local/LocalThreadRuntimeCore.d.ts +1 -1
- package/dist/runtimes/local/LocalThreadRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/local/LocalThreadRuntimeCore.js +15 -11
- package/dist/runtimes/local/LocalThreadRuntimeCore.js.map +1 -1
- package/dist/runtimes/local/LocalThreadRuntimeCore.mjs +15 -11
- package/dist/runtimes/local/LocalThreadRuntimeCore.mjs.map +1 -1
- package/dist/styles/index.css.map +1 -1
- package/dist/types/AssistantTypes.d.ts +1 -18
- package/dist/types/AssistantTypes.d.ts.map +1 -1
- package/dist/types/AssistantTypes.js.map +1 -1
- package/dist/types/AttachmentTypes.d.ts +1 -1
- package/dist/types/AttachmentTypes.d.ts.map +1 -1
- package/dist/types/AttachmentTypes.js.map +1 -1
- package/dist/types/ContentPartComponentTypes.d.ts +4 -28
- package/dist/types/ContentPartComponentTypes.d.ts.map +1 -1
- package/dist/types/ContentPartComponentTypes.js.map +1 -1
- package/dist/ui/assistant-message.d.ts +1 -10
- package/dist/ui/assistant-message.d.ts.map +1 -1
- package/dist/ui/assistant-message.js.map +1 -1
- package/dist/ui/assistant-message.mjs.map +1 -1
- package/dist/ui/composer.d.ts +1 -25
- package/dist/ui/composer.d.ts.map +1 -1
- package/dist/ui/composer.js.map +1 -1
- package/dist/ui/composer.mjs.map +1 -1
- package/dist/ui/index.d.ts +6 -14
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +0 -4
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +14 -24
- package/dist/ui/index.mjs.map +1 -1
- package/dist/ui/thread-welcome.d.ts +5 -17
- package/dist/ui/thread-welcome.d.ts.map +1 -1
- package/dist/ui/thread-welcome.js.map +1 -1
- package/dist/ui/thread-welcome.mjs.map +1 -1
- package/dist/ui/thread.d.ts +1 -19
- package/dist/ui/thread.d.ts.map +1 -1
- package/dist/ui/thread.js.map +1 -1
- package/dist/ui/thread.mjs.map +1 -1
- package/dist/ui/user-message.d.ts +1 -18
- package/dist/ui/user-message.d.ts.map +1 -1
- package/dist/ui/user-message.js.map +1 -1
- package/dist/ui/user-message.mjs.map +1 -1
- package/dist/utils/smooth/SmoothContext.js +2 -2
- package/dist/utils/smooth/SmoothContext.js.map +1 -1
- package/dist/utils/smooth/SmoothContext.mjs +3 -3
- package/dist/utils/smooth/SmoothContext.mjs.map +1 -1
- package/dist/utils/smooth/useSmooth.d.ts.map +1 -1
- package/dist/utils/smooth/useSmooth.js +0 -1
- package/dist/utils/smooth/useSmooth.js.map +1 -1
- package/dist/utils/smooth/useSmooth.mjs +0 -1
- package/dist/utils/smooth/useSmooth.mjs.map +1 -1
- package/package.json +7 -7
- package/src/api/AssistantRuntime.ts +3 -25
- package/src/api/AttachmentRuntime.ts +4 -16
- package/src/api/ComposerRuntime.ts +18 -214
- package/src/api/ContentPartRuntime.ts +2 -6
- package/src/api/MessageRuntime.ts +16 -20
- package/src/api/RuntimePathTypes.ts +26 -26
- package/src/api/ThreadListItemRuntime.ts +19 -11
- package/src/api/ThreadListRuntime.ts +39 -58
- package/src/api/ThreadRuntime.ts +52 -213
- package/src/api/index.ts +4 -0
- package/src/context/providers/AssistantRuntimeProvider.tsx +0 -1
- package/src/context/providers/TextContentPartProvider.tsx +0 -2
- package/src/context/providers/ThreadRuntimeProvider.tsx +1 -17
- package/src/context/react/AssistantContext.ts +0 -25
- package/src/context/react/ComposerContext.ts +1 -1
- package/src/context/react/ContentPartContext.ts +1 -1
- package/src/context/react/MessageContext.ts +2 -2
- package/src/context/react/ThreadContext.ts +5 -42
- package/src/context/react/index.ts +2 -125
- package/src/context/stores/AssistantToolUIs.ts +9 -2
- package/src/context/stores/MessageUtils.ts +6 -6
- package/src/context/stores/ThreadViewport.tsx +5 -6
- package/src/index.ts +0 -1
- package/src/internal.ts +1 -0
- package/src/model-config/useAssistantToolUI.tsx +0 -1
- package/src/primitive-hooks/contentPart/useContentPartDisplay.tsx +1 -1
- package/src/primitive-hooks/contentPart/useContentPartImage.tsx +1 -2
- package/src/primitive-hooks/contentPart/useContentPartText.tsx +1 -1
- package/src/primitive-hooks/index.ts +0 -5
- package/src/primitives/actionBar/ActionBarCopy.tsx +0 -5
- package/src/primitives/actionBar/ActionBarEdit.tsx +0 -5
- package/src/primitives/actionBar/ActionBarFeedbackNegative.tsx +0 -6
- package/src/primitives/actionBar/ActionBarFeedbackPositive.tsx +0 -6
- package/src/primitives/actionBar/ActionBarReload.tsx +0 -5
- package/src/primitives/actionBar/ActionBarRoot.tsx +0 -5
- package/src/primitives/actionBar/ActionBarSpeak.tsx +0 -5
- package/src/primitives/actionBar/ActionBarStopSpeaking.tsx +0 -6
- package/src/primitives/assistantModal/AssistantModalContent.tsx +1 -7
- package/src/primitives/assistantModal/AssistantModalRoot.tsx +0 -6
- package/src/primitives/assistantModal/AssistantModalTrigger.tsx +0 -6
- package/src/primitives/branchPicker/BranchPickerCount.tsx +0 -5
- package/src/primitives/branchPicker/BranchPickerNext.tsx +0 -6
- package/src/primitives/branchPicker/BranchPickerNumber.tsx +0 -5
- package/src/primitives/branchPicker/BranchPickerPrevious.tsx +1 -6
- package/src/primitives/branchPicker/BranchPickerRoot.tsx +0 -5
- package/src/primitives/composer/ComposerAddAttachment.tsx +2 -7
- package/src/primitives/composer/ComposerAttachments.tsx +0 -6
- package/src/primitives/composer/ComposerCancel.tsx +0 -5
- package/src/primitives/composer/ComposerIf.tsx +0 -5
- package/src/primitives/composer/ComposerInput.tsx +0 -5
- package/src/primitives/composer/ComposerRoot.tsx +1 -3
- package/src/primitives/composer/ComposerSend.tsx +2 -7
- package/src/primitives/contentPart/ContentPartDisplay.tsx +0 -6
- package/src/primitives/contentPart/ContentPartImage.tsx +0 -5
- package/src/primitives/contentPart/ContentPartInProgress.tsx +0 -6
- package/src/primitives/contentPart/ContentPartText.tsx +0 -5
- package/src/primitives/index.ts +0 -8
- package/src/primitives/message/MessageAttachments.tsx +2 -10
- package/src/primitives/message/MessageContent.tsx +7 -15
- package/src/primitives/message/MessageIf.tsx +0 -5
- package/src/primitives/message/MessageRoot.tsx +0 -5
- package/src/primitives/message/index.ts +0 -1
- package/src/primitives/thread/ThreadEmpty.tsx +1 -6
- package/src/primitives/thread/ThreadIf.tsx +0 -5
- package/src/primitives/thread/ThreadMessages.tsx +0 -5
- package/src/primitives/thread/ThreadRoot.tsx +0 -5
- package/src/primitives/thread/ThreadScrollToBottom.tsx +0 -6
- package/src/primitives/thread/ThreadSuggestion.tsx +0 -5
- package/src/primitives/thread/ThreadViewport.tsx +0 -5
- package/src/primitives/threadListItem/ThreadListItemArchive.ts +3 -2
- package/src/primitives/threadListItem/ThreadListItemRoot.tsx +29 -0
- package/src/primitives/threadListItem/ThreadListItemTitle.tsx +19 -0
- package/src/primitives/threadListItem/ThreadListItemTrigger.ts +25 -0
- package/src/primitives/threadListItem/index.ts +4 -1
- package/src/runtimes/attachment/AttachmentAdapter.ts +2 -12
- package/src/runtimes/attachment/CompositeAttachmentAdapter.ts +1 -1
- package/src/runtimes/composer/BaseComposerRuntimeCore.tsx +0 -8
- package/src/runtimes/core/BaseThreadRuntimeCore.tsx +11 -5
- package/src/runtimes/core/ComposerRuntimeCore.tsx +0 -3
- package/src/runtimes/core/ThreadListRuntimeCore.tsx +7 -11
- package/src/runtimes/core/ThreadRuntimeCore.tsx +33 -17
- package/src/runtimes/core/index.ts +1 -2
- package/src/runtimes/edge/converters/toCoreMessages.ts +1 -1
- package/src/runtimes/edge/createEdgeRuntimeAPI.ts +0 -6
- package/src/runtimes/edge/streams/runResultStream.ts +0 -2
- package/src/runtimes/external-store/ExternalStoreAdapter.tsx +3 -17
- package/src/runtimes/external-store/ExternalStoreRuntimeCore.tsx +0 -3
- package/src/runtimes/external-store/ExternalStoreThreadListRuntimeCore.tsx +39 -7
- package/src/runtimes/external-store/ExternalStoreThreadRuntimeCore.tsx +4 -3
- package/src/runtimes/external-store/ThreadMessageLike.tsx +4 -3
- package/src/runtimes/local/ChatModelAdapter.tsx +0 -9
- package/src/runtimes/local/LocalRuntimeOptions.tsx +1 -7
- package/src/runtimes/local/LocalThreadListRuntimeCore.tsx +140 -96
- package/src/runtimes/local/LocalThreadMetadataRuntimeCore.tsx +79 -0
- package/src/runtimes/local/LocalThreadRuntimeCore.tsx +16 -11
- package/src/types/AssistantTypes.ts +1 -20
- package/src/types/AttachmentTypes.ts +1 -2
- package/src/types/ContentPartComponentTypes.tsx +4 -31
- package/src/ui/assistant-message.tsx +0 -5
- package/src/ui/composer.tsx +0 -5
- package/src/ui/index.ts +5 -23
- package/src/ui/thread-welcome.tsx +6 -9
- package/src/ui/thread.tsx +0 -5
- package/src/ui/user-message.tsx +2 -12
- package/src/utils/smooth/SmoothContext.tsx +3 -3
- package/src/utils/smooth/useSmooth.tsx +0 -1
- package/dist/hooks/index.d.ts +0 -3
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/index.js +0 -34
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/index.mjs +0 -8
- package/dist/hooks/index.mjs.map +0 -1
- package/dist/hooks/useAppendMessage.d.ts +0 -6
- package/dist/hooks/useAppendMessage.d.ts.map +0 -1
- package/dist/hooks/useAppendMessage.js +0 -42
- package/dist/hooks/useAppendMessage.js.map +0 -1
- package/dist/hooks/useAppendMessage.mjs +0 -17
- package/dist/hooks/useAppendMessage.mjs.map +0 -1
- package/dist/hooks/useSwitchToNewThread.d.ts +0 -5
- package/dist/hooks/useSwitchToNewThread.d.ts.map +0 -1
- package/dist/hooks/useSwitchToNewThread.js +0 -39
- package/dist/hooks/useSwitchToNewThread.js.map +0 -1
- package/dist/hooks/useSwitchToNewThread.mjs +0 -14
- package/dist/hooks/useSwitchToNewThread.mjs.map +0 -1
- package/dist/primitive-hooks/actionBar/index.d.ts +0 -34
- package/dist/primitive-hooks/actionBar/index.d.ts.map +0 -1
- package/dist/primitive-hooks/actionBar/index.js +0 -49
- package/dist/primitive-hooks/actionBar/index.js.map +0 -1
- package/dist/primitive-hooks/actionBar/index.mjs +0 -20
- package/dist/primitive-hooks/actionBar/index.mjs.map +0 -1
- package/dist/primitive-hooks/branchPicker/index.d.ts +0 -17
- package/dist/primitive-hooks/branchPicker/index.d.ts.map +0 -1
- package/dist/primitive-hooks/branchPicker/index.js +0 -40
- package/dist/primitive-hooks/branchPicker/index.js.map +0 -1
- package/dist/primitive-hooks/branchPicker/index.mjs +0 -12
- package/dist/primitive-hooks/branchPicker/index.mjs.map +0 -1
- package/dist/primitive-hooks/composer/index.d.ts +0 -17
- package/dist/primitive-hooks/composer/index.d.ts.map +0 -1
- package/dist/primitive-hooks/composer/index.js +0 -40
- package/dist/primitive-hooks/composer/index.js.map +0 -1
- package/dist/primitive-hooks/composer/index.mjs +0 -12
- package/dist/primitive-hooks/composer/index.mjs.map +0 -1
- package/dist/primitive-hooks/message/index.d.ts +0 -5
- package/dist/primitive-hooks/message/index.d.ts.map +0 -1
- package/dist/primitive-hooks/message/index.js +0 -31
- package/dist/primitive-hooks/message/index.js.map +0 -1
- package/dist/primitive-hooks/message/index.mjs +0 -6
- package/dist/primitive-hooks/message/index.mjs.map +0 -1
- package/dist/primitive-hooks/thread/index.d.ts +0 -17
- package/dist/primitive-hooks/thread/index.d.ts.map +0 -1
- package/dist/primitive-hooks/thread/index.js +0 -40
- package/dist/primitive-hooks/thread/index.js.map +0 -1
- package/dist/primitive-hooks/thread/index.mjs +0 -12
- package/dist/primitive-hooks/thread/index.mjs.map +0 -1
- package/dist/primitives/actionBar/types.d.ts +0 -9
- package/dist/primitives/actionBar/types.d.ts.map +0 -1
- package/dist/primitives/actionBar/types.js +0 -19
- package/dist/primitives/actionBar/types.js.map +0 -1
- package/dist/primitives/actionBar/types.mjs +0 -1
- package/dist/primitives/actionBar/types.mjs.map +0 -1
- package/dist/primitives/assistantModal/types.d.ts +0 -4
- package/dist/primitives/assistantModal/types.d.ts.map +0 -1
- package/dist/primitives/assistantModal/types.js +0 -19
- package/dist/primitives/assistantModal/types.js.map +0 -1
- package/dist/primitives/assistantModal/types.mjs +0 -1
- package/dist/primitives/assistantModal/types.mjs.map +0 -1
- package/dist/primitives/attachment/types.d.ts +0 -1
- package/dist/primitives/attachment/types.d.ts.map +0 -1
- package/dist/primitives/attachment/types.js +0 -2
- package/dist/primitives/attachment/types.js.map +0 -1
- package/dist/primitives/attachment/types.mjs +0 -1
- package/dist/primitives/attachment/types.mjs.map +0 -1
- package/dist/primitives/branchPicker/types.d.ts +0 -6
- package/dist/primitives/branchPicker/types.d.ts.map +0 -1
- package/dist/primitives/branchPicker/types.js +0 -19
- package/dist/primitives/branchPicker/types.js.map +0 -1
- package/dist/primitives/branchPicker/types.mjs +0 -1
- package/dist/primitives/branchPicker/types.mjs.map +0 -1
- package/dist/primitives/composer/types.d.ts +0 -6
- package/dist/primitives/composer/types.d.ts.map +0 -1
- package/dist/primitives/composer/types.js +0 -19
- package/dist/primitives/composer/types.js.map +0 -1
- package/dist/primitives/composer/types.mjs +0 -1
- package/dist/primitives/composer/types.mjs.map +0 -1
- package/dist/primitives/contentPart/types.d.ts +0 -5
- package/dist/primitives/contentPart/types.d.ts.map +0 -1
- package/dist/primitives/contentPart/types.js +0 -19
- package/dist/primitives/contentPart/types.js.map +0 -1
- package/dist/primitives/contentPart/types.mjs +0 -1
- package/dist/primitives/contentPart/types.mjs.map +0 -1
- package/dist/primitives/message/MessageInProgress.d.ts +0 -13
- package/dist/primitives/message/MessageInProgress.d.ts.map +0 -1
- package/dist/primitives/message/MessageInProgress.js.map +0 -1
- package/dist/primitives/message/MessageInProgress.mjs +0 -11
- package/dist/primitives/message/MessageInProgress.mjs.map +0 -1
- package/dist/primitives/message/types.d.ts +0 -5
- package/dist/primitives/message/types.d.ts.map +0 -1
- package/dist/primitives/message/types.js +0 -19
- package/dist/primitives/message/types.js.map +0 -1
- package/dist/primitives/message/types.mjs +0 -1
- package/dist/primitives/message/types.mjs.map +0 -1
- package/dist/primitives/thread/types.d.ts +0 -8
- package/dist/primitives/thread/types.d.ts.map +0 -1
- package/dist/primitives/thread/types.js +0 -19
- package/dist/primitives/thread/types.js.map +0 -1
- package/dist/primitives/thread/types.mjs +0 -1
- package/dist/primitives/thread/types.mjs.map +0 -1
- package/dist/runtimes/core/subscribeToMainThread.d.ts +0 -6
- package/dist/runtimes/core/subscribeToMainThread.d.ts.map +0 -1
- package/dist/runtimes/core/subscribeToMainThread.js.map +0 -1
- package/dist/runtimes/core/subscribeToMainThread.mjs +0 -23
- package/dist/runtimes/core/subscribeToMainThread.mjs.map +0 -1
- package/src/hooks/index.ts +0 -2
- package/src/hooks/useAppendMessage.tsx +0 -19
- package/src/hooks/useSwitchToNewThread.tsx +0 -14
- package/src/primitive-hooks/actionBar/index.ts +0 -39
- package/src/primitive-hooks/branchPicker/index.ts +0 -18
- package/src/primitive-hooks/composer/index.ts +0 -17
- package/src/primitive-hooks/message/index.ts +0 -4
- package/src/primitive-hooks/thread/index.ts +0 -16
- package/src/primitives/actionBar/types.ts +0 -8
- package/src/primitives/assistantModal/types.ts +0 -3
- package/src/primitives/attachment/types.ts +0 -0
- package/src/primitives/branchPicker/types.ts +0 -5
- package/src/primitives/composer/types.ts +0 -5
- package/src/primitives/contentPart/types.ts +0 -4
- package/src/primitives/message/MessageInProgress.tsx +0 -22
- package/src/primitives/message/types.ts +0 -4
- package/src/primitives/thread/types.ts +0 -7
- package/src/runtimes/core/subscribeToMainThread.ts +0 -30
@@ -3,28 +3,6 @@ export {
|
|
3
3
|
useThreadList,
|
4
4
|
useToolUIs,
|
5
5
|
useToolUIsStore,
|
6
|
-
|
7
|
-
/**
|
8
|
-
* @deprecated Use `useAssistantRuntime()` instead. This will be removed in 0.6.0.
|
9
|
-
*/
|
10
|
-
useAssistantActions,
|
11
|
-
/**
|
12
|
-
* @deprecated Use `useAssistantRuntime()` instead. This will be removed in 0.6.0.
|
13
|
-
*/
|
14
|
-
useAssistantActionsStore,
|
15
|
-
/**
|
16
|
-
* @deprecated Use `useAssistantRuntime()` instead. This will be removed in 0.6.0.
|
17
|
-
*/
|
18
|
-
useAssistantRuntimeStore,
|
19
|
-
|
20
|
-
/**
|
21
|
-
* @deprecated You can import the hooks directly, e.g. `import { useAssistantRuntime } from "@assistant-ui/react"`. This will be removed in 0.6.0.
|
22
|
-
*/
|
23
|
-
type AssistantContextValue,
|
24
|
-
/**
|
25
|
-
* @deprecated You can import the hooks directly, e.g. `import { useAssistantRuntime } from "@assistant-ui/react"`. This will be removed in 0.6.0.
|
26
|
-
*/
|
27
|
-
useAssistantContext,
|
28
6
|
} from "./AssistantContext";
|
29
7
|
|
30
8
|
export {
|
@@ -32,119 +10,18 @@ export {
|
|
32
10
|
useThread,
|
33
11
|
useThreadComposer,
|
34
12
|
useThreadModelConfig,
|
35
|
-
|
36
|
-
/**
|
37
|
-
* @deprecated Use `useThread().messages` instead. This will be removed in 0.6.0.
|
38
|
-
*/
|
39
|
-
useThreadMessages,
|
40
|
-
|
41
|
-
/**
|
42
|
-
* @deprecated Use `useThreadRuntime().getState()` instead. This will be removed in 0.6.0.
|
43
|
-
*/
|
44
|
-
useThreadStore,
|
45
|
-
|
46
|
-
/**
|
47
|
-
* @deprecated Use `useThreadRuntime().getState().messages` instead. This will be removed in 0.6.0.
|
48
|
-
*/
|
49
|
-
useThreadMessagesStore,
|
50
|
-
|
51
|
-
/**
|
52
|
-
* @deprecated Use `useThreadRuntime()` instead. This will be removed in 0.6.0.
|
53
|
-
*/
|
54
|
-
useThreadActions,
|
55
|
-
|
56
|
-
/**
|
57
|
-
* @deprecated Use `useThreadRuntime()` instead. This will be removed in 0.6.0.
|
58
|
-
*/
|
59
|
-
useThreadActionsStore,
|
60
|
-
|
61
|
-
/**
|
62
|
-
* @deprecated Use `useThreadRuntime()` instead. This will be removed in 0.6.0.
|
63
|
-
*/
|
64
|
-
useThreadRuntimeStore,
|
65
|
-
// TODO move out of runtime context after 0.6.0
|
66
13
|
useThreadViewport,
|
67
|
-
// TODO move out of runtime context after 0.6.0
|
68
14
|
useThreadViewportStore,
|
69
|
-
|
70
|
-
/**
|
71
|
-
* @deprecated Use `useThreadRuntime().composer.getState()` instead. This will be removed in 0.6.0.
|
72
|
-
*/
|
73
|
-
useThreadComposerStore,
|
74
|
-
|
75
|
-
/**
|
76
|
-
* @deprecated You can import the hooks directly, e.g. `import { useThread } from "@assistant-ui/react"`. This will be removed in 0.6.0.
|
77
|
-
*/
|
78
|
-
type ThreadContextValue,
|
79
|
-
/**
|
80
|
-
* @deprecated You can import the hooks directly, e.g. `import { useThread } from "@assistant-ui/react"`. This will be removed in 0.6.0.
|
81
|
-
*/
|
82
|
-
useThreadContext,
|
83
15
|
} from "./ThreadContext";
|
84
16
|
export {
|
85
17
|
useMessageRuntime,
|
86
18
|
useMessage,
|
87
19
|
useEditComposer,
|
88
|
-
// TODO move out of runtime context after 0.6.0
|
89
20
|
useMessageUtils,
|
90
|
-
// TODO move out of runtime context after 0.6.0
|
91
21
|
useMessageUtilsStore,
|
92
|
-
|
93
|
-
/**
|
94
|
-
* @deprecated Use `useMessageRuntime().getState()` instead. This will be removed in 0.6.0.
|
95
|
-
*/
|
96
|
-
useMessageStore,
|
97
|
-
|
98
|
-
/**
|
99
|
-
* @deprecated Use `useMessageRuntime().composer.getState()` instead. This will be removed in 0.6.0.
|
100
|
-
*/
|
101
|
-
useEditComposerStore,
|
102
|
-
|
103
|
-
/**
|
104
|
-
* @deprecated You can import the hooks directly, e.g. `import { useMessage } from "@assistant-ui/react"`. This will be removed in 0.6.0.
|
105
|
-
*/
|
106
|
-
type MessageContextValue,
|
107
|
-
/**
|
108
|
-
* @deprecated You can import the hooks directly, e.g. `import { useMessage } from "@assistant-ui/react"`. This will be removed in 0.6.0.
|
109
|
-
*/
|
110
|
-
useMessageContext,
|
111
22
|
} from "./MessageContext";
|
112
|
-
export {
|
113
|
-
|
114
|
-
useContentPart,
|
115
|
-
|
116
|
-
/**
|
117
|
-
* @deprecated Use `useContentPartRuntime().getState()` instead. This will be removed in 0.6.0.
|
118
|
-
*/
|
119
|
-
useContentPartStore,
|
120
|
-
|
121
|
-
/**
|
122
|
-
* @deprecated You can import the hooks directly, e.g. `import { useContentPart } from "@assistant-ui/react"`. This will be removed in 0.6.0.
|
123
|
-
*/
|
124
|
-
type ContentPartContextValue,
|
125
|
-
/**
|
126
|
-
* @deprecated You can import the hooks directly, e.g. `import { useContentPart } from "@assistant-ui/react"`. This will be removed in 0.6.0.
|
127
|
-
*/
|
128
|
-
useContentPartContext,
|
129
|
-
} from "./ContentPartContext";
|
130
|
-
export {
|
131
|
-
useComposerRuntime,
|
132
|
-
useComposer,
|
133
|
-
|
134
|
-
/**
|
135
|
-
* @deprecated Use `useComposerRuntime().getState()` instead. This will be removed in 0.6.0.
|
136
|
-
*/
|
137
|
-
useComposerStore,
|
138
|
-
|
139
|
-
/**
|
140
|
-
* @deprecated You can import the hooks directly, e.g. `import { useComposer } from "@assistant-ui/react"`. This will be removed in 0.6.0.
|
141
|
-
*/
|
142
|
-
type ComposerContextValue,
|
143
|
-
/**
|
144
|
-
* @deprecated You can import the hooks directly, e.g. `import { useComposer } from "@assistant-ui/react"`. This will be removed in 0.6.0.
|
145
|
-
*/
|
146
|
-
useComposerContext,
|
147
|
-
} from "./ComposerContext";
|
23
|
+
export { useContentPartRuntime, useContentPart } from "./ContentPartContext";
|
24
|
+
export { useComposerRuntime, useComposer } from "./ComposerContext";
|
148
25
|
|
149
26
|
export {
|
150
27
|
useAttachment,
|
@@ -4,13 +4,20 @@ import { create } from "zustand";
|
|
4
4
|
import type { ToolCallContentPartComponent } from "../../types/ContentPartComponentTypes";
|
5
5
|
import { Unsubscribe } from "../../types";
|
6
6
|
|
7
|
-
export type AssistantToolUIsState =
|
7
|
+
export type AssistantToolUIsState = {
|
8
|
+
/**
|
9
|
+
* Get the tool UI configured for a given tool name.
|
10
|
+
*/
|
8
11
|
getToolUI: (toolName: string) => ToolCallContentPartComponent | null;
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Registers a tool UI for a given tool name. Returns an unsubscribe function to remove the tool UI.
|
15
|
+
*/
|
9
16
|
setToolUI: (
|
10
17
|
toolName: string,
|
11
18
|
render: ToolCallContentPartComponent,
|
12
19
|
) => Unsubscribe;
|
13
|
-
}
|
20
|
+
};
|
14
21
|
|
15
22
|
export const makeAssistantToolUIsStore = () =>
|
16
23
|
create<AssistantToolUIsState>((set) => {
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { create } from "zustand";
|
2
2
|
|
3
|
-
export type MessageUtilsState =
|
4
|
-
isCopied: boolean;
|
5
|
-
setIsCopied: (value: boolean) => void;
|
3
|
+
export type MessageUtilsState = {
|
4
|
+
readonly isCopied: boolean;
|
5
|
+
readonly setIsCopied: (value: boolean) => void;
|
6
6
|
|
7
|
-
isHovering: boolean;
|
8
|
-
setIsHovering: (value: boolean) => void;
|
9
|
-
}
|
7
|
+
readonly isHovering: boolean;
|
8
|
+
readonly setIsHovering: (value: boolean) => void;
|
9
|
+
};
|
10
10
|
|
11
11
|
export const makeMessageUtilsStore = () =>
|
12
12
|
create<MessageUtilsState>((set) => {
|
@@ -1,12 +1,11 @@
|
|
1
|
-
"use client";
|
2
1
|
import { create } from "zustand";
|
3
2
|
import type { Unsubscribe } from "../../types/Unsubscribe";
|
4
3
|
|
5
|
-
export type ThreadViewportState =
|
6
|
-
isAtBottom: boolean;
|
7
|
-
scrollToBottom: () => void;
|
8
|
-
onScrollToBottom: (callback: () => void) => Unsubscribe;
|
9
|
-
}
|
4
|
+
export type ThreadViewportState = {
|
5
|
+
readonly isAtBottom: boolean;
|
6
|
+
readonly scrollToBottom: () => void;
|
7
|
+
readonly onScrollToBottom: (callback: () => void) => Unsubscribe;
|
8
|
+
};
|
10
9
|
|
11
10
|
export const makeThreadViewportStore = () => {
|
12
11
|
const scrollToBottomListeners = new Set<() => void>();
|
package/src/index.ts
CHANGED
package/src/internal.ts
CHANGED
@@ -9,7 +9,7 @@ export const useContentPartDisplay = () => {
|
|
9
9
|
"This component can only be used inside ui content parts.",
|
10
10
|
);
|
11
11
|
|
12
|
-
return c as ContentPartState & UIContentPart
|
12
|
+
return c as ContentPartState & UIContentPart;
|
13
13
|
});
|
14
14
|
|
15
15
|
return display;
|
@@ -9,8 +9,7 @@ export const useContentPartImage = () => {
|
|
9
9
|
"ContentPartImage can only be used inside image content parts.",
|
10
10
|
);
|
11
11
|
|
12
|
-
return c as ContentPartState &
|
13
|
-
ImageContentPart & { part: ImageContentPart };
|
12
|
+
return c as ContentPartState & ImageContentPart;
|
14
13
|
});
|
15
14
|
|
16
15
|
return image;
|
@@ -9,7 +9,7 @@ export const useContentPartText = () => {
|
|
9
9
|
"ContentPartText can only be used inside text content parts.",
|
10
10
|
);
|
11
11
|
|
12
|
-
return c as ContentPartState & TextContentPart
|
12
|
+
return c as ContentPartState & TextContentPart;
|
13
13
|
});
|
14
14
|
|
15
15
|
return text;
|
@@ -7,11 +7,6 @@ import { composeEventHandlers } from "@radix-ui/primitive";
|
|
7
7
|
import { Primitive } from "@radix-ui/react-primitive";
|
8
8
|
import { useMessageUtils } from "../../context";
|
9
9
|
|
10
|
-
/**
|
11
|
-
* @deprecated Use `ActionBarPrimitive.Copy.Props` instead. This will be removed in 0.6.
|
12
|
-
*/
|
13
|
-
export type ActionBarPrimitiveCopyProps = ActionBarPrimitiveCopy.Props;
|
14
|
-
|
15
10
|
export namespace ActionBarPrimitiveCopy {
|
16
11
|
export type Element = HTMLButtonElement;
|
17
12
|
export type Props = ActionButtonProps<typeof useActionBarCopy>;
|
@@ -7,11 +7,6 @@ import {
|
|
7
7
|
createActionButton,
|
8
8
|
} from "../../utils/createActionButton";
|
9
9
|
|
10
|
-
/**
|
11
|
-
* @deprecated Use `ActionBarPrimitive.Edit.Props` instead. This will be removed in 0.6.
|
12
|
-
*/
|
13
|
-
export type ActionBarPrimitiveEditProps = ActionBarPrimitiveEdit.Props;
|
14
|
-
|
15
10
|
export namespace ActionBarPrimitiveEdit {
|
16
11
|
export type Element = ActionButtonElement;
|
17
12
|
export type Props = ActionButtonProps<typeof useActionBarEdit>;
|
@@ -7,12 +7,6 @@ import { composeEventHandlers } from "@radix-ui/primitive";
|
|
7
7
|
import { useMessage } from "../../context";
|
8
8
|
import { Primitive } from "@radix-ui/react-primitive";
|
9
9
|
|
10
|
-
/**
|
11
|
-
* @deprecated Use `ActionBarPrimitive.FeedbackNegative.Props` instead. This will be removed in 0.6.
|
12
|
-
*/
|
13
|
-
export type ActionBarPrimitiveFeedbackNegativeProps =
|
14
|
-
ActionBarPrimitiveFeedbackNegative.Props;
|
15
|
-
|
16
10
|
export namespace ActionBarPrimitiveFeedbackNegative {
|
17
11
|
export type Element = HTMLButtonElement;
|
18
12
|
export type Props = ActionButtonProps<typeof useActionBarFeedbackNegative>;
|
@@ -7,12 +7,6 @@ import { composeEventHandlers } from "@radix-ui/primitive";
|
|
7
7
|
import { useMessage } from "../../context";
|
8
8
|
import { Primitive } from "@radix-ui/react-primitive";
|
9
9
|
|
10
|
-
/**
|
11
|
-
* @deprecated Use `ActionBarPrimitive.FeedbackPositive.Props` instead. This will be removed in 0.6.
|
12
|
-
*/
|
13
|
-
export type ActionBarPrimitiveFeedbackPositiveProps =
|
14
|
-
ActionBarPrimitiveFeedbackPositive.Props;
|
15
|
-
|
16
10
|
export namespace ActionBarPrimitiveFeedbackPositive {
|
17
11
|
export type Element = HTMLButtonElement;
|
18
12
|
export type Props = ActionButtonProps<typeof useActionBarFeedbackPositive>;
|
@@ -7,11 +7,6 @@ import {
|
|
7
7
|
createActionButton,
|
8
8
|
} from "../../utils/createActionButton";
|
9
9
|
|
10
|
-
/**
|
11
|
-
* @deprecated Use `ActionBarPrimitive.Reload.Props` instead. This will be removed in 0.6.
|
12
|
-
*/
|
13
|
-
export type ActionBarPrimitiveReloadProps = ActionBarPrimitiveReload.Props;
|
14
|
-
|
15
10
|
export namespace ActionBarPrimitiveReload {
|
16
11
|
export type Element = ActionButtonElement;
|
17
12
|
export type Props = ActionButtonProps<typeof useActionBarReload>;
|
@@ -10,11 +10,6 @@ import {
|
|
10
10
|
|
11
11
|
type PrimitiveDivProps = ComponentPropsWithoutRef<typeof Primitive.div>;
|
12
12
|
|
13
|
-
/**
|
14
|
-
* @deprecated Use `ActionBarPrimitive.Root.Props` instead. This will be removed in 0.6.
|
15
|
-
*/
|
16
|
-
export type ActionBarPrimitiveRootProps = ActionBarPrimitiveRoot.Props;
|
17
|
-
|
18
13
|
export namespace ActionBarPrimitiveRoot {
|
19
14
|
export type Element = ElementRef<typeof Primitive.div>;
|
20
15
|
export type Props = PrimitiveDivProps & UseActionBarFloatStatusProps;
|
@@ -7,11 +7,6 @@ import {
|
|
7
7
|
createActionButton,
|
8
8
|
} from "../../utils/createActionButton";
|
9
9
|
|
10
|
-
/**
|
11
|
-
* @deprecated Use `ActionBarPrimitive.Speak.Props` instead. This will be removed in 0.6.
|
12
|
-
*/
|
13
|
-
export type ActionBarPrimitiveSpeakProps = ActionBarPrimitiveSpeak.Props;
|
14
|
-
|
15
10
|
export namespace ActionBarPrimitiveSpeak {
|
16
11
|
export type Element = ActionButtonElement;
|
17
12
|
export type Props = ActionButtonProps<typeof useActionBarSpeak>;
|
@@ -7,12 +7,6 @@ import { useEscapeKeydown } from "@radix-ui/react-use-escape-keydown";
|
|
7
7
|
import { Primitive } from "@radix-ui/react-primitive";
|
8
8
|
import { composeEventHandlers } from "@radix-ui/primitive";
|
9
9
|
|
10
|
-
/**
|
11
|
-
* @deprecated Use `ActionBarPrimitive.StopSpeaking.Props` instead. This will be removed in 0.6.
|
12
|
-
*/
|
13
|
-
export type ActionBarPrimitiveStopSpeakingProps =
|
14
|
-
ActionBarPrimitiveStopSpeaking.Props;
|
15
|
-
|
16
10
|
export namespace ActionBarPrimitiveStopSpeaking {
|
17
11
|
export type Element = HTMLButtonElement;
|
18
12
|
export type Props = ActionButtonProps<typeof useActionBarStopSpeaking>;
|
@@ -5,12 +5,6 @@ import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
5
5
|
import { ScopedProps, usePopoverScope } from "./scope";
|
6
6
|
import { composeEventHandlers } from "@radix-ui/primitive";
|
7
7
|
|
8
|
-
/**
|
9
|
-
* @deprecated Use `AssistantModalPrimitive.Content.Props` instead. This will be removed in 0.6.
|
10
|
-
*/
|
11
|
-
export type AssistantModalPrimitiveContentProps =
|
12
|
-
AssistantModalPrimitiveContent.Props;
|
13
|
-
|
14
8
|
export namespace AssistantModalPrimitiveContent {
|
15
9
|
export type Element = ElementRef<typeof PopoverPrimitive.Content>;
|
16
10
|
export type Props = ComponentPropsWithoutRef<
|
@@ -32,7 +26,7 @@ export const AssistantModalPrimitiveContent = forwardRef<
|
|
32
26
|
onInteractOutside,
|
33
27
|
dissmissOnInteractOutside = false,
|
34
28
|
...props
|
35
|
-
}: ScopedProps<
|
29
|
+
}: ScopedProps<AssistantModalPrimitiveContent.Props>,
|
36
30
|
forwardedRef,
|
37
31
|
) => {
|
38
32
|
const scope = usePopoverScope(__scopeAssistantModal);
|
@@ -6,12 +6,6 @@ import { composeEventHandlers } from "@radix-ui/primitive";
|
|
6
6
|
import { ScopedProps, usePopoverScope } from "./scope";
|
7
7
|
import { useThreadRuntime } from "../../context";
|
8
8
|
|
9
|
-
/**
|
10
|
-
* @deprecated Use `AssistantModalPrimitive.Root.Props` instead. This will be removed in 0.6.
|
11
|
-
*/
|
12
|
-
export type AssistantModalPrimitiveRootProps =
|
13
|
-
AssistantModalPrimitiveRoot.Props;
|
14
|
-
|
15
9
|
export namespace AssistantModalPrimitiveRoot {
|
16
10
|
export type Props = PopoverPrimitive.PopoverProps & {
|
17
11
|
unstable_openOnRunStart?: boolean | undefined;
|
@@ -4,12 +4,6 @@ import { ComponentPropsWithoutRef, ElementRef, forwardRef } from "react";
|
|
4
4
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
5
5
|
import { ScopedProps, usePopoverScope } from "./scope";
|
6
6
|
|
7
|
-
/**
|
8
|
-
* @deprecated Use `AssistantModalPrimitive.Trigger.Props` instead. This will be removed in 0.6.
|
9
|
-
*/
|
10
|
-
export type AssistantModalPrimitiveTriggerProps =
|
11
|
-
AssistantModalPrimitiveTrigger.Props;
|
12
|
-
|
13
7
|
export namespace AssistantModalPrimitiveTrigger {
|
14
8
|
export type Element = ElementRef<typeof PopoverPrimitive.Trigger>;
|
15
9
|
export type Props = ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger>;
|
@@ -3,11 +3,6 @@
|
|
3
3
|
import type { FC } from "react";
|
4
4
|
import { useBranchPickerCount } from "../../primitive-hooks/branchPicker/useBranchPickerCount";
|
5
5
|
|
6
|
-
/**
|
7
|
-
* @deprecated Use `BranchPickerPrimitive.Count.Props` instead. This will be removed in 0.6.
|
8
|
-
*/
|
9
|
-
export type BranchPickerPrimitiveCountProps = BranchPickerPrimitiveCount.Props;
|
10
|
-
|
11
6
|
export namespace BranchPickerPrimitiveCount {
|
12
7
|
export type Props = Record<string, never>;
|
13
8
|
}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
"use client";
|
3
2
|
|
4
3
|
import { useBranchPickerNext } from "../../primitive-hooks/branchPicker/useBranchPickerNext";
|
@@ -8,11 +7,6 @@ import {
|
|
8
7
|
createActionButton,
|
9
8
|
} from "../../utils/createActionButton";
|
10
9
|
|
11
|
-
/**
|
12
|
-
* @deprecated Use `BranchPickerPrimitive.Next.Props` instead. This will be removed in 0.6.
|
13
|
-
*/
|
14
|
-
export type BranchPickerPrimitiveNextProps = BranchPickerPrimitiveNext.Props;
|
15
|
-
|
16
10
|
export namespace BranchPickerPrimitiveNext {
|
17
11
|
export type Element = ActionButtonElement;
|
18
12
|
export type Props = ActionButtonProps<typeof useBranchPickerNext>;
|
@@ -3,11 +3,6 @@
|
|
3
3
|
import type { FC } from "react";
|
4
4
|
import { useBranchPickerNumber } from "../../primitive-hooks/branchPicker/useBranchPickerNumber";
|
5
5
|
|
6
|
-
/**
|
7
|
-
* @deprecated Use `BranchPickerPrimitive.Number.Props` instead. This will be removed in 0.6.
|
8
|
-
*/
|
9
|
-
export type BranchPickerPrimitiveNumberProps = BranchPickerPrimitiveNumber.Props;
|
10
|
-
|
11
6
|
export namespace BranchPickerPrimitiveNumber {
|
12
7
|
export type Props = Record<string, never>;
|
13
8
|
}
|
@@ -7,11 +7,6 @@ import {
|
|
7
7
|
createActionButton,
|
8
8
|
} from "../../utils/createActionButton";
|
9
9
|
|
10
|
-
/**
|
11
|
-
* @deprecated Use `BranchPickerPrimitive.Previous.Props` instead. This will be removed in 0.6.
|
12
|
-
*/
|
13
|
-
export type BranchPickerPrimitivePreviousProps = BranchPickerPrimitivePrevious.Props;
|
14
|
-
|
15
10
|
export namespace BranchPickerPrimitivePrevious {
|
16
11
|
export type Element = ActionButtonElement;
|
17
12
|
export type Props = ActionButtonProps<typeof useBranchPickerPrevious>;
|
@@ -19,5 +14,5 @@ export namespace BranchPickerPrimitivePrevious {
|
|
19
14
|
|
20
15
|
export const BranchPickerPrimitivePrevious = createActionButton(
|
21
16
|
"BranchPickerPrimitive.Previous",
|
22
|
-
useBranchPickerPrevious
|
17
|
+
useBranchPickerPrevious,
|
23
18
|
);
|
@@ -4,11 +4,6 @@ import { Primitive } from "@radix-ui/react-primitive";
|
|
4
4
|
import { type ElementRef, forwardRef, ComponentPropsWithoutRef } from "react";
|
5
5
|
import { If } from "../message";
|
6
6
|
|
7
|
-
/**
|
8
|
-
* @deprecated Use `BranchPickerPrimitive.Root.Props` instead. This will be removed in 0.6.
|
9
|
-
*/
|
10
|
-
export type BranchPickerPrimitiveRootProps = BranchPickerPrimitiveRoot.Props;
|
11
|
-
|
12
7
|
export namespace BranchPickerPrimitiveRoot {
|
13
8
|
export type Element = ElementRef<typeof Primitive.div>;
|
14
9
|
export type Props = ComponentPropsWithoutRef<typeof Primitive.div> & {
|
@@ -5,12 +5,7 @@ import {
|
|
5
5
|
ActionButtonProps,
|
6
6
|
createActionButton,
|
7
7
|
} from "../../utils/createActionButton";
|
8
|
-
import { useComposerAddAttachment } from "../../primitive-hooks/composer";
|
9
|
-
|
10
|
-
/**
|
11
|
-
* @deprecated Use `ComposerPrimitive.AddAttachment.Props` instead. This will be removed in 0.6.
|
12
|
-
*/
|
13
|
-
export type ComposerPrimitiveAddAttachmentProps = ComposerPrimitiveAddAttachment.Props;
|
8
|
+
import { useComposerAddAttachment } from "../../primitive-hooks/composer/useComposerAddAttachment";
|
14
9
|
|
15
10
|
export namespace ComposerPrimitiveAddAttachment {
|
16
11
|
export type Element = ActionButtonElement;
|
@@ -19,5 +14,5 @@ export namespace ComposerPrimitiveAddAttachment {
|
|
19
14
|
|
20
15
|
export const ComposerPrimitiveAddAttachment = createActionButton(
|
21
16
|
"ComposerPrimitive.AddAttachment",
|
22
|
-
useComposerAddAttachment
|
17
|
+
useComposerAddAttachment,
|
23
18
|
);
|
@@ -6,12 +6,6 @@ import { useComposer, useComposerRuntime } from "../../context";
|
|
6
6
|
import { useThreadComposerAttachment } from "../../context/react/AttachmentContext";
|
7
7
|
import { AttachmentRuntimeProvider } from "../../context/providers/AttachmentRuntimeProvider";
|
8
8
|
|
9
|
-
/**
|
10
|
-
* @deprecated Use `ComposerPrimitive.Attachments.Props` instead. This will be removed in 0.6.
|
11
|
-
*/
|
12
|
-
export type ComposerPrimitiveAttachmentsProps =
|
13
|
-
ComposerPrimitiveAttachments.Props;
|
14
|
-
|
15
9
|
export namespace ComposerPrimitiveAttachments {
|
16
10
|
export type Props = {
|
17
11
|
components:
|
@@ -7,11 +7,6 @@ import {
|
|
7
7
|
} from "../../utils/createActionButton";
|
8
8
|
import { useComposerCancel } from "../../primitive-hooks/composer/useComposerCancel";
|
9
9
|
|
10
|
-
/**
|
11
|
-
* @deprecated Use `ComposerPrimitive.Cancel.Props` instead. This will be removed in 0.6.
|
12
|
-
*/
|
13
|
-
export type ComposerPrimitiveCancelProps = ComposerPrimitiveCancel.Props;
|
14
|
-
|
15
10
|
export namespace ComposerPrimitiveCancel {
|
16
11
|
export type Element = ActionButtonElement;
|
17
12
|
export type Props = ActionButtonProps<typeof useComposerCancel>;
|
@@ -6,11 +6,6 @@ import {
|
|
6
6
|
useComposerIf,
|
7
7
|
} from "../../primitive-hooks/composer/useComposerIf";
|
8
8
|
|
9
|
-
/**
|
10
|
-
* @deprecated Use `ComposerPrimitive.If.Props` instead. This will be removed in 0.6.
|
11
|
-
*/
|
12
|
-
export type ComposerPrimitiveIfProps = ComposerPrimitiveIf.Props;
|
13
|
-
|
14
9
|
export namespace ComposerPrimitiveIf {
|
15
10
|
export type Props = PropsWithChildren<UseComposerIfProps>;
|
16
11
|
}
|
@@ -21,11 +21,6 @@ import { useThread, useThreadRuntime } from "../../context/react/ThreadContext";
|
|
21
21
|
import { useEscapeKeydown } from "@radix-ui/react-use-escape-keydown";
|
22
22
|
import { useOnScrollToBottom } from "../../utils/hooks/useOnScrollToBottom";
|
23
23
|
|
24
|
-
/**
|
25
|
-
* @deprecated Use `ComposerPrimitive.Input.Props` instead. This will be removed in 0.6.
|
26
|
-
*/
|
27
|
-
export type ComposerPrimitiveInputProps = ComposerPrimitiveInput.Props;
|
28
|
-
|
29
24
|
export namespace ComposerPrimitiveInput {
|
30
25
|
export type Element = HTMLTextAreaElement;
|
31
26
|
export type Props = TextareaAutosizeProps & {
|
@@ -8,9 +8,7 @@ import {
|
|
8
8
|
forwardRef,
|
9
9
|
ComponentPropsWithoutRef,
|
10
10
|
} from "react";
|
11
|
-
import { useComposerSend } from "../../primitive-hooks";
|
12
|
-
|
13
|
-
export type ComposerPrimitiveRootProps = ComposerPrimitiveRoot.Props;
|
11
|
+
import { useComposerSend } from "../../primitive-hooks/composer/useComposerSend";
|
14
12
|
|
15
13
|
export namespace ComposerPrimitiveRoot {
|
16
14
|
export type Element = ElementRef<typeof Primitive.form>;
|
@@ -5,12 +5,7 @@ import {
|
|
5
5
|
ActionButtonProps,
|
6
6
|
createActionButton,
|
7
7
|
} from "../../utils/createActionButton";
|
8
|
-
import { useComposerSend } from "../../primitive-hooks";
|
9
|
-
|
10
|
-
/**
|
11
|
-
* @deprecated Use `ComposerPrimitive.Send.Props` instead. This will be removed in 0.6.
|
12
|
-
*/
|
13
|
-
export type ComposerPrimitiveSendProps = ComposerPrimitiveSend.Props;
|
8
|
+
import { useComposerSend } from "../../primitive-hooks/composer/useComposerSend";
|
14
9
|
|
15
10
|
export namespace ComposerPrimitiveSend {
|
16
11
|
export type Element = ActionButtonElement;
|
@@ -19,5 +14,5 @@ export namespace ComposerPrimitiveSend {
|
|
19
14
|
|
20
15
|
export const ComposerPrimitiveSend = createActionButton(
|
21
16
|
"ComposerPrimitive.Send",
|
22
|
-
useComposerSend
|
17
|
+
useComposerSend,
|
23
18
|
);
|
@@ -1,12 +1,6 @@
|
|
1
1
|
import type { FC } from "react";
|
2
2
|
import { useContentPartDisplay } from "../../primitive-hooks/contentPart/useContentPartDisplay";
|
3
3
|
|
4
|
-
/**
|
5
|
-
* @deprecated Use `ContentPartPrimitive.Display.Props` instead. This will be removed in 0.6.
|
6
|
-
*/
|
7
|
-
export type ContentPartPrimitiveDisplayProps =
|
8
|
-
ContentPartPrimitiveDisplay.Props;
|
9
|
-
|
10
4
|
export namespace ContentPartPrimitiveDisplay {
|
11
5
|
export type Props = Record<string, never>;
|
12
6
|
}
|
@@ -2,11 +2,6 @@ import { Primitive } from "@radix-ui/react-primitive";
|
|
2
2
|
import { type ElementRef, forwardRef, ComponentPropsWithoutRef } from "react";
|
3
3
|
import { useContentPartImage } from "../../primitive-hooks/contentPart/useContentPartImage";
|
4
4
|
|
5
|
-
/**
|
6
|
-
* @deprecated Use `ContentPartPrimitive.Image.Props` instead. This will be removed in 0.6.
|
7
|
-
*/
|
8
|
-
export type ContentPartPrimitiveImageProps = ContentPartPrimitiveImage.Props;
|
9
|
-
|
10
5
|
export namespace ContentPartPrimitiveImage {
|
11
6
|
export type Element = ElementRef<typeof Primitive.img>;
|
12
7
|
export type Props = ComponentPropsWithoutRef<typeof Primitive.img>;
|