@assistant-ui/react 0.15.30 → 0.15.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/adapters/OpenAIRealtimeVoiceAdapter.js +1 -2
- package/dist/assistant-transport.js +1 -2
- package/dist/cloud-renderer/CloudRendererHost.d.ts.map +1 -1
- package/dist/cloud-renderer/CloudRendererHost.js +2 -4
- package/dist/cloud-renderer/CloudRendererHost.js.map +1 -1
- package/dist/context/ReadonlyStore.js +1 -2
- package/dist/context/providers/AttachmentByIndexProvider.js +1 -2
- package/dist/context/providers/ChainOfThoughtByIndicesProvider.js +1 -2
- package/dist/context/providers/MessageByIndexProvider.js +1 -2
- package/dist/context/providers/MessageProvider.js +1 -2
- package/dist/context/providers/PartByIndexProvider.js +1 -2
- package/dist/context/providers/SuggestionByIndexProvider.js +1 -2
- package/dist/context/providers/TextMessagePartProvider.js +1 -2
- package/dist/context/providers/ThreadListItemProvider.js +1 -2
- package/dist/context/providers/ThreadViewportProvider.js +1 -2
- package/dist/context/react/ThreadViewportContext.js +1 -2
- package/dist/context/react/utils/createContextHook.js +1 -2
- package/dist/context/react/utils/createContextStoreHook.js +1 -2
- package/dist/context/stores/ThreadViewport.js +1 -2
- package/dist/devtools/DevToolsHooks.js +1 -2
- package/dist/hooks/useMessageQuote.js +1 -2
- package/dist/hooks/useMessageTiming.js +1 -2
- package/dist/hooks/useToolCallElapsed.js +1 -2
- package/dist/index.d.ts +9 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -9
- package/dist/internal.d.ts +1 -1
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +2 -3
- package/dist/internal.js.map +1 -1
- package/dist/legacy-runtime/AssistantRuntimeProvider.d.ts +1 -1
- package/dist/legacy-runtime/AssistantRuntimeProvider.d.ts.map +1 -1
- package/dist/legacy-runtime/AssistantRuntimeProvider.js +1 -2
- package/dist/legacy-runtime/AssistantRuntimeProvider.js.map +1 -1
- package/dist/mcp-apps/McpAppRenderer.d.ts.map +1 -1
- package/dist/mcp-apps/McpAppRenderer.js +3 -3
- package/dist/mcp-apps/McpAppRenderer.js.map +1 -1
- package/dist/mcp-apps/McpAppsRemoteHost.js +1 -2
- package/dist/mcp-apps/app-frame.js +1 -2
- package/dist/mcp-apps/bridge.js +1 -2
- package/dist/mcp-apps/csp.js +1 -2
- package/dist/mcp-apps/types.js +1 -2
- package/dist/mcp-apps/utils.js +1 -2
- package/dist/model-context/frame/useAssistantFrameHost.js +1 -2
- package/dist/model-context/makeAssistantVisible.js +1 -2
- package/dist/primitives/actionBar/ActionBarCopy.d.ts +1 -1
- package/dist/primitives/actionBar/ActionBarCopy.js +1 -2
- package/dist/primitives/actionBar/ActionBarEdit.d.ts +1 -1
- package/dist/primitives/actionBar/ActionBarEdit.js +1 -2
- package/dist/primitives/actionBar/ActionBarExportMarkdown.d.ts +1 -1
- package/dist/primitives/actionBar/ActionBarExportMarkdown.js +1 -2
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.d.ts +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.js +1 -2
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.d.ts +1 -1
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.js +1 -2
- package/dist/primitives/actionBar/ActionBarInteractionContext.js +1 -2
- package/dist/primitives/actionBar/ActionBarReload.d.ts +1 -1
- package/dist/primitives/actionBar/ActionBarReload.js +1 -2
- package/dist/primitives/actionBar/ActionBarRoot.d.ts +1 -1
- package/dist/primitives/actionBar/ActionBarRoot.js +1 -2
- package/dist/primitives/actionBar/ActionBarSpeak.d.ts +1 -1
- package/dist/primitives/actionBar/ActionBarSpeak.js +1 -2
- package/dist/primitives/actionBar/ActionBarStopSpeaking.d.ts +1 -1
- package/dist/primitives/actionBar/ActionBarStopSpeaking.js +1 -2
- package/dist/primitives/actionBar/useActionBarFloatStatus.js +1 -2
- package/dist/primitives/actionBar.js +1 -2
- package/dist/primitives/actionBarMore/ActionBarMoreContent.js +1 -2
- package/dist/primitives/actionBarMore/ActionBarMoreItem.js +1 -2
- package/dist/primitives/actionBarMore/ActionBarMoreRoot.js +1 -2
- package/dist/primitives/actionBarMore/ActionBarMoreSeparator.js +1 -2
- package/dist/primitives/actionBarMore/ActionBarMoreTrigger.js +1 -2
- package/dist/primitives/actionBarMore/scope.js +1 -2
- package/dist/primitives/actionBarMore.js +1 -2
- package/dist/primitives/assistantModal/AssistantModalAnchor.js +1 -2
- package/dist/primitives/assistantModal/AssistantModalContent.js +1 -2
- package/dist/primitives/assistantModal/AssistantModalRoot.js +1 -2
- package/dist/primitives/assistantModal/AssistantModalTrigger.js +1 -2
- package/dist/primitives/assistantModal/popoverRenderPrimitives.js +1 -2
- package/dist/primitives/assistantModal/scope.js +1 -2
- package/dist/primitives/assistantModal.js +1 -2
- package/dist/primitives/attachment/AttachmentName.js +1 -2
- package/dist/primitives/attachment/AttachmentRemove.d.ts +1 -1
- package/dist/primitives/attachment/AttachmentRemove.js +1 -2
- package/dist/primitives/attachment/AttachmentRoot.d.ts +1 -1
- package/dist/primitives/attachment/AttachmentRoot.js +1 -2
- package/dist/primitives/attachment/AttachmentThumb.d.ts +1 -1
- package/dist/primitives/attachment/AttachmentThumb.js +1 -2
- package/dist/primitives/attachment.js +1 -2
- package/dist/primitives/branchPicker/BranchPickerCount.js +1 -2
- package/dist/primitives/branchPicker/BranchPickerNext.d.ts +1 -1
- package/dist/primitives/branchPicker/BranchPickerNext.js +1 -2
- package/dist/primitives/branchPicker/BranchPickerNumber.js +1 -2
- package/dist/primitives/branchPicker/BranchPickerPrevious.d.ts +1 -1
- package/dist/primitives/branchPicker/BranchPickerPrevious.js +1 -2
- package/dist/primitives/branchPicker/BranchPickerRoot.d.ts +1 -1
- package/dist/primitives/branchPicker/BranchPickerRoot.js +1 -2
- package/dist/primitives/branchPicker.js +1 -2
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts +6 -5
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.js +57 -20
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.js.map +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtParts.js +1 -2
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.d.ts +1 -1
- package/dist/primitives/chainOfThought/ChainOfThoughtRoot.js +1 -2
- package/dist/primitives/chainOfThought.js +1 -2
- package/dist/primitives/composer/ComposerAddAttachment.d.ts +1 -1
- package/dist/primitives/composer/ComposerAddAttachment.js +1 -2
- package/dist/primitives/composer/ComposerAttachmentDropzone.js +1 -2
- package/dist/primitives/composer/ComposerAttachments.js +1 -2
- package/dist/primitives/composer/ComposerCancel.d.ts +1 -1
- package/dist/primitives/composer/ComposerCancel.js +1 -2
- package/dist/primitives/composer/ComposerCompactContext.js +1 -2
- package/dist/primitives/composer/ComposerDictate.d.ts +1 -1
- package/dist/primitives/composer/ComposerDictate.js +1 -2
- package/dist/primitives/composer/ComposerDictationTranscript.d.ts +1 -1
- package/dist/primitives/composer/ComposerDictationTranscript.js +1 -2
- package/dist/primitives/composer/ComposerIf.js +1 -2
- package/dist/primitives/composer/ComposerInput.d.ts.map +1 -1
- package/dist/primitives/composer/ComposerInput.js +4 -5
- package/dist/primitives/composer/ComposerInput.js.map +1 -1
- package/dist/primitives/composer/ComposerInputPluginContext.js +1 -2
- package/dist/primitives/composer/ComposerQueue.js +1 -2
- package/dist/primitives/composer/ComposerQuote.d.ts +3 -3
- package/dist/primitives/composer/ComposerQuote.js +1 -2
- package/dist/primitives/composer/ComposerResume.d.ts +1 -1
- package/dist/primitives/composer/ComposerResume.js +1 -2
- package/dist/primitives/composer/ComposerRoot.d.ts +1 -1
- package/dist/primitives/composer/ComposerRoot.js +1 -2
- package/dist/primitives/composer/ComposerSend.d.ts +1 -1
- package/dist/primitives/composer/ComposerSend.js +1 -2
- package/dist/primitives/composer/ComposerStopDictation.d.ts +1 -1
- package/dist/primitives/composer/ComposerStopDictation.js +1 -2
- package/dist/primitives/composer/composerInputSelector.js +1 -2
- package/dist/primitives/composer/trigger/TriggerPopover.d.ts +1 -1
- package/dist/primitives/composer/trigger/TriggerPopover.js +1 -2
- package/dist/primitives/composer/trigger/TriggerPopoverAction.js +1 -2
- package/dist/primitives/composer/trigger/TriggerPopoverBack.d.ts +1 -1
- package/dist/primitives/composer/trigger/TriggerPopoverBack.js +1 -2
- package/dist/primitives/composer/trigger/TriggerPopoverCategories.d.ts +2 -2
- package/dist/primitives/composer/trigger/TriggerPopoverCategories.js +1 -2
- package/dist/primitives/composer/trigger/TriggerPopoverDirective.js +1 -2
- package/dist/primitives/composer/trigger/TriggerPopoverItems.d.ts +2 -2
- package/dist/primitives/composer/trigger/TriggerPopoverItems.js +1 -2
- package/dist/primitives/composer/trigger/TriggerPopoverResource.js +1 -2
- package/dist/primitives/composer/trigger/TriggerPopoverRootContext.js +1 -2
- package/dist/primitives/composer/trigger/detectTrigger.js +1 -2
- package/dist/primitives/composer/trigger/index.d.ts +1 -1
- package/dist/primitives/composer/trigger/index.js +1 -2
- package/dist/primitives/composer/trigger/matchesTriggerItemQuery.js +1 -2
- package/dist/primitives/composer/trigger/triggerDetectionResource.js +1 -2
- package/dist/primitives/composer/trigger/triggerKeyboardResource.js +1 -2
- package/dist/primitives/composer/trigger/triggerNavigationResource.js +1 -2
- package/dist/primitives/composer/trigger/triggerSelectionResource.d.ts.map +1 -1
- package/dist/primitives/composer/trigger/triggerSelectionResource.js +3 -4
- package/dist/primitives/composer/trigger/triggerSelectionResource.js.map +1 -1
- package/dist/primitives/composer/useComposerCancelWithFocus.js +1 -2
- package/dist/primitives/composer/useComposerInputState.js +1 -2
- package/dist/primitives/composer.js +1 -2
- package/dist/primitives/dropdownMenuRenderPrimitives.js +1 -2
- package/dist/primitives/error/ErrorMessage.d.ts +1 -1
- package/dist/primitives/error/ErrorMessage.js +1 -2
- package/dist/primitives/error/ErrorRoot.d.ts +1 -1
- package/dist/primitives/error/ErrorRoot.js +1 -2
- package/dist/primitives/error.js +1 -2
- package/dist/primitives/message/MessageAttachments.js +1 -2
- package/dist/primitives/message/MessageError.js +1 -2
- package/dist/primitives/message/MessageIf.js +1 -2
- package/dist/primitives/message/MessageParts.js +1 -2
- package/dist/primitives/message/MessagePartsGrouped.js +1 -2
- package/dist/primitives/message/MessageRoot.d.ts +1 -1
- package/dist/primitives/message/MessageRoot.js +1 -2
- package/dist/primitives/message.js +1 -2
- package/dist/primitives/messagePart/MessagePartImage.d.ts +1 -1
- package/dist/primitives/messagePart/MessagePartImage.js +1 -2
- package/dist/primitives/messagePart/MessagePartInProgress.js +1 -2
- package/dist/primitives/messagePart/MessagePartText.d.ts +1 -1
- package/dist/primitives/messagePart/MessagePartText.js +1 -2
- package/dist/primitives/messagePart/useMessagePartData.js +1 -2
- package/dist/primitives/messagePart/useMessagePartFile.js +1 -2
- package/dist/primitives/messagePart/useMessagePartImage.js +1 -2
- package/dist/primitives/messagePart/useMessagePartReasoning.js +1 -2
- package/dist/primitives/messagePart/useMessagePartSource.js +1 -2
- package/dist/primitives/messagePart/useMessagePartText.js +1 -2
- package/dist/primitives/messagePart.js +1 -2
- package/dist/primitives/queueItem/QueueItemRemove.d.ts +1 -1
- package/dist/primitives/queueItem/QueueItemRemove.js +1 -2
- package/dist/primitives/queueItem/QueueItemSteer.d.ts +1 -1
- package/dist/primitives/queueItem/QueueItemSteer.js +1 -2
- package/dist/primitives/queueItem/QueueItemText.d.ts +1 -1
- package/dist/primitives/queueItem/QueueItemText.js +1 -2
- package/dist/primitives/queueItem.js +1 -2
- package/dist/primitives/reasoning/useScrollLock.d.ts.map +1 -1
- package/dist/primitives/reasoning/useScrollLock.js +41 -25
- package/dist/primitives/reasoning/useScrollLock.js.map +1 -1
- package/dist/primitives/selectionToolbar/SelectionToolbarQuote.d.ts +1 -1
- package/dist/primitives/selectionToolbar/SelectionToolbarQuote.js +1 -2
- package/dist/primitives/selectionToolbar/SelectionToolbarRoot.d.ts +1 -1
- package/dist/primitives/selectionToolbar/SelectionToolbarRoot.js +1 -2
- package/dist/primitives/selectionToolbar.js +1 -2
- package/dist/primitives/suggestion/SuggestionDescription.d.ts +1 -1
- package/dist/primitives/suggestion/SuggestionDescription.js +1 -2
- package/dist/primitives/suggestion/SuggestionTitle.d.ts +1 -1
- package/dist/primitives/suggestion/SuggestionTitle.js +1 -2
- package/dist/primitives/suggestion/SuggestionTrigger.d.ts +1 -1
- package/dist/primitives/suggestion/SuggestionTrigger.js +1 -2
- package/dist/primitives/suggestion.js +1 -2
- package/dist/primitives/thread/ThreadEmpty.js +1 -2
- package/dist/primitives/thread/ThreadIf.js +1 -2
- package/dist/primitives/thread/ThreadLoadEarlier.d.ts +1 -1
- package/dist/primitives/thread/ThreadLoadEarlier.js +1 -2
- package/dist/primitives/thread/ThreadMessages.js +1 -2
- package/dist/primitives/thread/ThreadRoot.d.ts +1 -1
- package/dist/primitives/thread/ThreadRoot.js +1 -2
- package/dist/primitives/thread/ThreadRootElementContext.js +1 -2
- package/dist/primitives/thread/ThreadScrollToBottom.d.ts +1 -1
- package/dist/primitives/thread/ThreadScrollToBottom.js +1 -2
- package/dist/primitives/thread/ThreadSuggestion.d.ts +1 -1
- package/dist/primitives/thread/ThreadSuggestion.js +1 -2
- package/dist/primitives/thread/ThreadSuggestions.js +1 -2
- package/dist/primitives/thread/ThreadViewport.d.ts +1 -1
- package/dist/primitives/thread/ThreadViewport.js +1 -2
- package/dist/primitives/thread/ThreadViewportFooter.d.ts +1 -1
- package/dist/primitives/thread/ThreadViewportFooter.js +1 -2
- package/dist/primitives/thread/topAnchor/computeTopAnchorSlack.js +1 -2
- package/dist/primitives/thread/topAnchor/createReserveObservers.js +1 -2
- package/dist/primitives/thread/topAnchor/mountTopAnchorReserve.js +1 -2
- package/dist/primitives/thread/topAnchor/topAnchorTurn.js +1 -2
- package/dist/primitives/thread/topAnchor/topAnchorUtils.js +1 -2
- package/dist/primitives/thread/topAnchor/useTopAnchorReserve.js +1 -2
- package/dist/primitives/thread/useThreadViewportAutoScroll.d.ts.map +1 -1
- package/dist/primitives/thread/useThreadViewportAutoScroll.js +7 -5
- package/dist/primitives/thread/useThreadViewportAutoScroll.js.map +1 -1
- package/dist/primitives/thread.js +1 -2
- package/dist/primitives/threadList/ThreadListItems.js +1 -2
- package/dist/primitives/threadList/ThreadListLoadMore.d.ts +1 -1
- package/dist/primitives/threadList/ThreadListLoadMore.js +1 -2
- package/dist/primitives/threadList/ThreadListNew.d.ts +1 -1
- package/dist/primitives/threadList/ThreadListNew.js +1 -2
- package/dist/primitives/threadList/ThreadListRoot.d.ts +1 -1
- package/dist/primitives/threadList/ThreadListRoot.js +1 -2
- package/dist/primitives/threadList.js +1 -2
- package/dist/primitives/threadListFocusGroup.d.ts +1 -1
- package/dist/primitives/threadListFocusGroup.d.ts.map +1 -1
- package/dist/primitives/threadListFocusGroup.js +1 -2
- package/dist/primitives/threadListItem/ThreadListItemArchive.d.ts +1 -1
- package/dist/primitives/threadListItem/ThreadListItemArchive.js +1 -2
- package/dist/primitives/threadListItem/ThreadListItemDelete.d.ts +1 -1
- package/dist/primitives/threadListItem/ThreadListItemDelete.js +1 -2
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts +1 -1
- package/dist/primitives/threadListItem/ThreadListItemRoot.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemRoot.js +2 -3
- package/dist/primitives/threadListItem/ThreadListItemRoot.js.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemTitle.js +1 -2
- package/dist/primitives/threadListItem/ThreadListItemTrigger.d.ts +1 -1
- package/dist/primitives/threadListItem/ThreadListItemTrigger.js +1 -2
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts +2 -2
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.d.ts.map +1 -1
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.js +3 -4
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.js.map +1 -1
- package/dist/primitives/threadListItem.js +1 -2
- package/dist/primitives/threadListItemMore/ThreadListItemMoreContent.js +1 -2
- package/dist/primitives/threadListItemMore/ThreadListItemMoreItem.js +1 -2
- package/dist/primitives/threadListItemMore/ThreadListItemMoreRoot.js +1 -2
- package/dist/primitives/threadListItemMore/ThreadListItemMoreSeparator.js +1 -2
- package/dist/primitives/threadListItemMore/ThreadListItemMoreTrigger.js +1 -2
- package/dist/primitives/threadListItemMore/scope.js +1 -2
- package/dist/primitives/threadListItemMore.js +1 -2
- package/dist/sandbox-host/SandboxHost.js +1 -2
- package/dist/unstable/useComposerInput.js +2 -3
- package/dist/unstable/useComposerInput.js.map +1 -1
- package/dist/unstable/useComposerInputHistory.d.ts.map +1 -1
- package/dist/unstable/useComposerInputHistory.js +3 -4
- package/dist/unstable/useComposerInputHistory.js.map +1 -1
- package/dist/unstable/useLiveCompletionAdapter.d.ts.map +1 -1
- package/dist/unstable/useLiveCompletionAdapter.js +4 -4
- package/dist/unstable/useLiveCompletionAdapter.js.map +1 -1
- package/dist/unstable/useMentionAdapter.js +1 -2
- package/dist/unstable/useMessageStallDetection.js +1 -2
- package/dist/unstable/useModelContextSnapshot.js +1 -2
- package/dist/unstable/useSlashCommandAdapter.js +1 -2
- package/dist/unstable/webmcp/WebMcpRegistrationResource.js +1 -2
- package/dist/unstable/webmcp/convertTools.js +1 -2
- package/dist/unstable/webmcp/useWebMcpProvider.js +1 -2
- package/dist/unstable/webmcp/webmcp-host.js +1 -2
- package/dist/utils/Primitive.d.ts +17 -17
- package/dist/utils/Primitive.js +1 -2
- package/dist/utils/createActionButton.d.ts +1 -1
- package/dist/utils/createActionButton.js +1 -2
- package/dist/utils/getSelectionMessageId.js +1 -2
- package/dist/utils/hooks/useManagedRef.js +1 -2
- package/dist/utils/hooks/useMediaQuery.js +1 -2
- package/dist/utils/hooks/useOnScrollToBottom.js +1 -2
- package/dist/utils/hooks/useSizeHandle.js +1 -2
- package/dist/utils/isCompositionKey.js +1 -2
- package/dist/utils/smooth/SmoothContext.js +1 -2
- package/dist/utils/smooth/useSmooth.d.ts.map +1 -1
- package/dist/utils/smooth/useSmooth.js +11 -4
- package/dist/utils/smooth/useSmooth.js.map +1 -1
- package/dist/utils/useIsomorphicLayoutEffect.js +0 -1
- package/package.json +13 -13
- package/src/adapters/OpenAIRealtimeVoiceAdapter.test.ts +14 -1
- package/src/cloud-renderer/CloudRendererHost.tsx +4 -2
- package/src/index.ts +9 -8
- package/src/internal.ts +1 -1
- package/src/legacy-runtime/AssistantRuntimeProvider.tsx +1 -1
- package/src/mcp-apps/McpAppRenderer.composer.test.tsx +111 -0
- package/src/mcp-apps/McpAppRenderer.test.tsx +24 -23
- package/src/mcp-apps/McpAppRenderer.tsx +9 -1
- package/src/primitives/actionBar/ActionBarCopy.test.tsx +57 -0
- package/src/primitives/actionBar/ActionBarExportMarkdown.test.tsx +24 -5
- package/src/primitives/assistantModal/AssistantModalRoot.test.tsx +1 -1
- package/src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.test.tsx +91 -0
- package/src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx +54 -0
- package/src/primitives/composer/ComposerInput.focus-on-run-start.test.tsx +1 -1
- package/src/primitives/composer/ComposerInput.test.tsx +1 -0
- package/src/primitives/composer/ComposerInput.text-change.test.tsx +68 -0
- package/src/primitives/composer/ComposerInput.thread-scope.test.tsx +82 -0
- package/src/primitives/composer/ComposerInput.tsx +4 -3
- package/src/primitives/composer/trigger/triggerSelectionResource.test.ts +6 -4
- package/src/primitives/composer/trigger/triggerSelectionResource.ts +2 -0
- package/src/primitives/reasoning/useScrollLock.test.tsx +71 -2
- package/src/primitives/reasoning/useScrollLock.ts +78 -51
- package/src/primitives/thread/ThreadRoot.test.tsx +1 -1
- package/src/primitives/thread/ThreadViewport.thread-scope.test.tsx +51 -0
- package/src/primitives/thread/useThreadViewportAutoScroll.ts +8 -2
- package/src/primitives/threadListItem/ThreadListItemRoot.tsx +4 -1
- package/src/primitives/threadListItem/ThreadListItemUnarchive.test.tsx +52 -0
- package/src/primitives/threadListItem/ThreadListItemUnarchive.ts +2 -2
- package/src/primitives/threadListItem/ThreadListKeyboardNav.test.tsx +25 -0
- package/src/tests/DataRenderers.test.tsx +1 -1
- package/src/tests/MessageParts.loading.test.tsx +1 -1
- package/src/tests/RemoteThreadListRuntime.adapterProvider.test.tsx +1 -1
- package/src/tests/RemoteThreadListRuntime.deferredProvider.test.tsx +4 -2
- package/src/tests/RemoteThreadListRuntime.reloadMainThread.test.tsx +4 -2
- package/src/tests/generative-ui.primitive.test.tsx +1 -1
- package/src/tests/local-runtime-queue.test.tsx +2 -2
- package/src/tests/messagePartSwitchRace.test.tsx +2 -2
- package/src/tests/messagePartTypeMismatch.test.tsx +1 -1
- package/src/tests/threadListItemIsRunning.test.tsx +5 -3
- package/src/tests/toolCallTiming.test.tsx +1 -1
- package/src/unstable/useComposerInput.test.tsx +1 -1
- package/src/unstable/useComposerInput.ts +1 -1
- package/src/unstable/useComposerInputHistory.test.tsx +10 -7
- package/src/unstable/useComposerInputHistory.thread-scope.test.tsx +123 -0
- package/src/unstable/useComposerInputHistory.ts +3 -2
- package/src/unstable/useLiveCompletionAdapter.test.tsx +44 -0
- package/src/unstable/useLiveCompletionAdapter.ts +3 -2
- package/src/unstable/webmcp/convertTools.test.ts +11 -1
- package/src/utils/hooks/useMediaQuery.test.tsx +35 -0
- package/src/utils/smooth/useSmooth.test.tsx +150 -14
- package/src/utils/smooth/useSmooth.ts +16 -2
- package/dist/context/providers/ChainOfThoughtPartByIndexProvider.d.ts +0 -2
- package/dist/context/providers/ChainOfThoughtPartByIndexProvider.d.ts.map +0 -1
- package/dist/context/providers/ChainOfThoughtPartByIndexProvider.js +0 -3
- package/dist/legacy-runtime/RuntimeAdapter.d.ts +0 -2
- package/dist/legacy-runtime/RuntimeAdapter.d.ts.map +0 -1
- package/dist/legacy-runtime/RuntimeAdapter.js +0 -2
- package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.d.ts +0 -2
- package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.d.ts.map +0 -1
- package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.js +0 -3
- package/dist/legacy-runtime/runtime/AssistantRuntime.d.ts +0 -3
- package/dist/legacy-runtime/runtime/AssistantRuntime.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime/AssistantRuntime.js +0 -2
- package/dist/legacy-runtime/runtime/AttachmentRuntime.d.ts +0 -3
- package/dist/legacy-runtime/runtime/AttachmentRuntime.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime/AttachmentRuntime.js +0 -2
- package/dist/legacy-runtime/runtime/ComposerRuntime.d.ts +0 -4
- package/dist/legacy-runtime/runtime/ComposerRuntime.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime/ComposerRuntime.js +0 -2
- package/dist/legacy-runtime/runtime/RuntimeBindings.d.ts +0 -3
- package/dist/legacy-runtime/runtime/RuntimeBindings.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime/RuntimeBindings.js +0 -0
- package/dist/legacy-runtime/runtime/RuntimePathTypes.d.ts +0 -2
- package/dist/legacy-runtime/runtime/RuntimePathTypes.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime/RuntimePathTypes.js +0 -0
- package/dist/legacy-runtime/runtime/ThreadListItemRuntime.d.ts +0 -5
- package/dist/legacy-runtime/runtime/ThreadListItemRuntime.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime/ThreadListItemRuntime.js +0 -2
- package/dist/legacy-runtime/runtime/ThreadRuntime.d.ts +0 -4
- package/dist/legacy-runtime/runtime/ThreadRuntime.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime/ThreadRuntime.js +0 -2
- package/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.js +0 -3
- package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.js +0 -3
- package/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.js +0 -2
- package/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.js +0 -2
- package/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.js +0 -2
- package/dist/legacy-runtime/runtime-cores/core/AssistantRuntimeCore.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/core/AssistantRuntimeCore.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/core/AssistantRuntimeCore.js +0 -0
- package/dist/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.js +0 -2
- package/dist/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.js +0 -2
- package/dist/legacy-runtime/runtime-cores/core/ComposerRuntimeCore.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/core/ComposerRuntimeCore.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/core/ComposerRuntimeCore.js +0 -0
- package/dist/legacy-runtime/runtime-cores/core/ThreadListRuntimeCore.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/core/ThreadListRuntimeCore.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/core/ThreadListRuntimeCore.js +0 -0
- package/dist/legacy-runtime/runtime-cores/core/ThreadRuntimeCore.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/core/ThreadRuntimeCore.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/core/ThreadRuntimeCore.js +0 -0
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreAdapter.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreAdapter.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreAdapter.js +0 -0
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.js +0 -2
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.d.ts +0 -3
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.js +0 -2
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.js +0 -2
- package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.d.ts +0 -3
- package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.js +0 -2
- package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.d.ts +0 -3
- package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.js +0 -2
- package/dist/legacy-runtime/runtime-cores/external-store/auto-status.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/external-store/auto-status.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/external-store/auto-status.js +0 -2
- package/dist/legacy-runtime/runtime-cores/external-store/createMessageConverter.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/external-store/createMessageConverter.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/external-store/createMessageConverter.js +0 -3
- package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.js +0 -3
- package/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.js +0 -3
- package/dist/legacy-runtime/runtime-cores/local/ChatModelAdapter.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/local/ChatModelAdapter.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/local/ChatModelAdapter.js +0 -0
- package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeCore.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeCore.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeCore.js +0 -2
- package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.d.ts +0 -4
- package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.js +0 -2
- package/dist/legacy-runtime/runtime-cores/local/LocalThreadListRuntimeCore.d.ts +0 -3
- package/dist/legacy-runtime/runtime-cores/local/LocalThreadListRuntimeCore.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/local/LocalThreadListRuntimeCore.js +0 -2
- package/dist/legacy-runtime/runtime-cores/local/LocalThreadRuntimeCore.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/local/LocalThreadRuntimeCore.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/local/LocalThreadRuntimeCore.js +0 -2
- package/dist/legacy-runtime/runtime-cores/local/shouldContinue.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/local/shouldContinue.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/local/shouldContinue.js +0 -2
- package/dist/legacy-runtime/runtime-cores/local/useLocalRuntime.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/local/useLocalRuntime.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/local/useLocalRuntime.js +0 -3
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.js +0 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/EMPTY_THREAD_CORE.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/EMPTY_THREAD_CORE.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/EMPTY_THREAD_CORE.js +0 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/OptimisticState.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/OptimisticState.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/OptimisticState.js +0 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.js +0 -3
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.js +0 -3
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.js +0 -3
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/in-memory.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/in-memory.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/in-memory.js +0 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/types.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/types.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/types.js +0 -0
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.d.ts +0 -2
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.js +0 -3
- package/dist/legacy-runtime/runtime-cores/utils/MessageRepository.d.ts +0 -4
- package/dist/legacy-runtime/runtime-cores/utils/MessageRepository.d.ts.map +0 -1
- package/dist/legacy-runtime/runtime-cores/utils/MessageRepository.js +0 -3
- package/dist/utils/hooks/useOnResizeContent.d.ts +0 -2
- package/dist/utils/hooks/useOnResizeContent.d.ts.map +0 -1
- package/dist/utils/hooks/useOnResizeContent.js +0 -21
- package/dist/utils/hooks/useOnResizeContent.js.map +0 -1
- package/src/context/providers/ChainOfThoughtPartByIndexProvider.tsx +0 -3
- package/src/legacy-runtime/RuntimeAdapter.ts +0 -1
- package/src/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.ts +0 -3
- package/src/legacy-runtime/runtime/AssistantRuntime.ts +0 -2
- package/src/legacy-runtime/runtime/AttachmentRuntime.ts +0 -7
- package/src/legacy-runtime/runtime/ComposerRuntime.ts +0 -20
- package/src/legacy-runtime/runtime/RuntimeBindings.ts +0 -12
- package/src/legacy-runtime/runtime/RuntimePathTypes.ts +0 -8
- package/src/legacy-runtime/runtime/ThreadListItemRuntime.ts +0 -10
- package/src/legacy-runtime/runtime/ThreadRuntime.ts +0 -14
- package/src/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.tsx +0 -7
- package/src/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.ts +0 -3
- package/src/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.ts +0 -1
- package/src/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.ts +0 -1
- package/src/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.ts +0 -1
- package/src/legacy-runtime/runtime-cores/core/AssistantRuntimeCore.ts +0 -1
- package/src/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.ts +0 -1
- package/src/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.ts +0 -1
- package/src/legacy-runtime/runtime-cores/core/ComposerRuntimeCore.ts +0 -6
- package/src/legacy-runtime/runtime-cores/core/ThreadListRuntimeCore.ts +0 -4
- package/src/legacy-runtime/runtime-cores/core/ThreadRuntimeCore.ts +0 -13
- package/src/legacy-runtime/runtime-cores/external-store/ExternalStoreAdapter.ts +0 -6
- package/src/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.ts +0 -1
- package/src/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.ts +0 -2
- package/src/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.ts +0 -4
- package/src/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.ts +0 -2
- package/src/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.ts +0 -2
- package/src/legacy-runtime/runtime-cores/external-store/auto-status.ts +0 -1
- package/src/legacy-runtime/runtime-cores/external-store/createMessageConverter.ts +0 -2
- package/src/legacy-runtime/runtime-cores/external-store/external-message-converter.ts +0 -7
- package/src/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.ts +0 -3
- package/src/legacy-runtime/runtime-cores/local/ChatModelAdapter.ts +0 -7
- package/src/legacy-runtime/runtime-cores/local/LocalRuntimeCore.ts +0 -1
- package/src/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.ts +0 -3
- package/src/legacy-runtime/runtime-cores/local/LocalThreadListRuntimeCore.ts +0 -2
- package/src/legacy-runtime/runtime-cores/local/LocalThreadRuntimeCore.ts +0 -1
- package/src/legacy-runtime/runtime-cores/local/shouldContinue.ts +0 -1
- package/src/legacy-runtime/runtime-cores/local/useLocalRuntime.ts +0 -3
- package/src/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.ts +0 -1
- package/src/legacy-runtime/runtime-cores/remote-thread-list/EMPTY_THREAD_CORE.ts +0 -1
- package/src/legacy-runtime/runtime-cores/remote-thread-list/OptimisticState.ts +0 -1
- package/src/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.tsx +0 -3
- package/src/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.tsx +0 -3
- package/src/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.tsx +0 -3
- package/src/legacy-runtime/runtime-cores/remote-thread-list/adapter/in-memory.ts +0 -1
- package/src/legacy-runtime/runtime-cores/remote-thread-list/types.ts +0 -7
- package/src/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.ts +0 -3
- package/src/legacy-runtime/runtime-cores/utils/MessageRepository.ts +0 -3
- package/src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.ts +0 -49
- package/src/utils/hooks/useOnResizeContent.ts +0 -15
|
@@ -5,7 +5,7 @@ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
|
5
5
|
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { DropdownMenu } from "radix-ui";
|
|
8
|
-
|
|
8
|
+
// src/primitives/actionBarMore/ActionBarMoreContent.tsx
|
|
9
9
|
const ActionBarMorePrimitiveContent = forwardRef((t0, forwardedRef) => {
|
|
10
10
|
const $ = c(14);
|
|
11
11
|
let __scopeActionBarMore;
|
|
@@ -56,7 +56,6 @@ const ActionBarMorePrimitiveContent = forwardRef((t0, forwardedRef) => {
|
|
|
56
56
|
return t3;
|
|
57
57
|
});
|
|
58
58
|
ActionBarMorePrimitiveContent.displayName = "ActionBarMorePrimitive.Content";
|
|
59
|
-
//#endregion
|
|
60
59
|
export { ActionBarMorePrimitiveContent };
|
|
61
60
|
|
|
62
61
|
//# sourceMappingURL=ActionBarMoreContent.js.map
|
|
@@ -4,7 +4,7 @@ import { DropdownMenuRenderItem } from "../dropdownMenuRenderPrimitives.js";
|
|
|
4
4
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
5
5
|
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/primitives/actionBarMore/ActionBarMoreItem.tsx
|
|
8
8
|
const ActionBarMorePrimitiveItem = forwardRef((t0, ref) => {
|
|
9
9
|
const $ = c(7);
|
|
10
10
|
let __scopeActionBarMore;
|
|
@@ -34,7 +34,6 @@ const ActionBarMorePrimitiveItem = forwardRef((t0, ref) => {
|
|
|
34
34
|
return t1;
|
|
35
35
|
});
|
|
36
36
|
ActionBarMorePrimitiveItem.displayName = "ActionBarMorePrimitive.Item";
|
|
37
|
-
//#endregion
|
|
38
37
|
export { ActionBarMorePrimitiveItem };
|
|
39
38
|
|
|
40
39
|
//# sourceMappingURL=ActionBarMoreItem.js.map
|
|
@@ -5,7 +5,7 @@ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
|
5
5
|
import { useEffect, useRef } from "@assistant-ui/tap/react-shim";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { DropdownMenu } from "radix-ui";
|
|
8
|
-
|
|
8
|
+
// src/primitives/actionBarMore/ActionBarMoreRoot.tsx
|
|
9
9
|
const ActionBarMorePrimitiveRoot = (t0) => {
|
|
10
10
|
const $ = c(25);
|
|
11
11
|
let __scopeActionBarMore;
|
|
@@ -116,7 +116,6 @@ const ActionBarMorePrimitiveRoot = (t0) => {
|
|
|
116
116
|
return t8;
|
|
117
117
|
};
|
|
118
118
|
ActionBarMorePrimitiveRoot.displayName = "ActionBarMorePrimitive.Root";
|
|
119
|
-
//#endregion
|
|
120
119
|
export { ActionBarMorePrimitiveRoot };
|
|
121
120
|
|
|
122
121
|
//# sourceMappingURL=ActionBarMoreRoot.js.map
|
|
@@ -4,7 +4,7 @@ import { DropdownMenuRenderSeparator } from "../dropdownMenuRenderPrimitives.js"
|
|
|
4
4
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
5
5
|
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/primitives/actionBarMore/ActionBarMoreSeparator.tsx
|
|
8
8
|
const ActionBarMorePrimitiveSeparator = forwardRef((t0, ref) => {
|
|
9
9
|
const $ = c(7);
|
|
10
10
|
let __scopeActionBarMore;
|
|
@@ -34,7 +34,6 @@ const ActionBarMorePrimitiveSeparator = forwardRef((t0, ref) => {
|
|
|
34
34
|
return t1;
|
|
35
35
|
});
|
|
36
36
|
ActionBarMorePrimitiveSeparator.displayName = "ActionBarMorePrimitive.Separator";
|
|
37
|
-
//#endregion
|
|
38
37
|
export { ActionBarMorePrimitiveSeparator };
|
|
39
38
|
|
|
40
39
|
//# sourceMappingURL=ActionBarMoreSeparator.js.map
|
|
@@ -4,7 +4,7 @@ import { DropdownMenuRenderTrigger } from "../dropdownMenuRenderPrimitives.js";
|
|
|
4
4
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
5
5
|
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/primitives/actionBarMore/ActionBarMoreTrigger.tsx
|
|
8
8
|
const ActionBarMorePrimitiveTrigger = forwardRef((t0, ref) => {
|
|
9
9
|
const $ = c(7);
|
|
10
10
|
let __scopeActionBarMore;
|
|
@@ -34,7 +34,6 @@ const ActionBarMorePrimitiveTrigger = forwardRef((t0, ref) => {
|
|
|
34
34
|
return t1;
|
|
35
35
|
});
|
|
36
36
|
ActionBarMorePrimitiveTrigger.displayName = "ActionBarMorePrimitive.Trigger";
|
|
37
|
-
//#endregion
|
|
38
37
|
export { ActionBarMorePrimitiveTrigger };
|
|
39
38
|
|
|
40
39
|
//# sourceMappingURL=ActionBarMoreTrigger.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DropdownMenu } from "radix-ui";
|
|
2
|
-
|
|
2
|
+
// src/primitives/actionBarMore/scope.ts
|
|
3
3
|
const useDropdownMenuScope = DropdownMenu.createDropdownMenuScope();
|
|
4
|
-
//#endregion
|
|
5
4
|
export { useDropdownMenuScope };
|
|
6
5
|
|
|
7
6
|
//# sourceMappingURL=scope.js.map
|
|
@@ -4,7 +4,7 @@ import { ActionBarMorePrimitiveTrigger } from "./actionBarMore/ActionBarMoreTrig
|
|
|
4
4
|
import { ActionBarMorePrimitiveContent } from "./actionBarMore/ActionBarMoreContent.js";
|
|
5
5
|
import { ActionBarMorePrimitiveItem } from "./actionBarMore/ActionBarMoreItem.js";
|
|
6
6
|
import { ActionBarMorePrimitiveSeparator } from "./actionBarMore/ActionBarMoreSeparator.js";
|
|
7
|
-
|
|
7
|
+
// src/primitives/actionBarMore.ts
|
|
8
8
|
var actionBarMore_exports = /* @__PURE__ */ __exportAll({
|
|
9
9
|
Content: () => ActionBarMorePrimitiveContent,
|
|
10
10
|
Item: () => ActionBarMorePrimitiveItem,
|
|
@@ -12,7 +12,6 @@ var actionBarMore_exports = /* @__PURE__ */ __exportAll({
|
|
|
12
12
|
Separator: () => ActionBarMorePrimitiveSeparator,
|
|
13
13
|
Trigger: () => ActionBarMorePrimitiveTrigger
|
|
14
14
|
});
|
|
15
|
-
//#endregion
|
|
16
15
|
export { ActionBarMorePrimitiveContent as Content, ActionBarMorePrimitiveItem as Item, ActionBarMorePrimitiveRoot as Root, ActionBarMorePrimitiveSeparator as Separator, ActionBarMorePrimitiveTrigger as Trigger, actionBarMore_exports };
|
|
17
16
|
|
|
18
17
|
//# sourceMappingURL=actionBarMore.js.map
|
|
@@ -4,7 +4,7 @@ import { PopoverRenderAnchor } from "./popoverRenderPrimitives.js";
|
|
|
4
4
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
5
5
|
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/primitives/assistantModal/AssistantModalAnchor.tsx
|
|
8
8
|
const AssistantModalPrimitiveAnchor = forwardRef((t0, ref) => {
|
|
9
9
|
const $ = c(7);
|
|
10
10
|
let __scopeAssistantModal;
|
|
@@ -34,7 +34,6 @@ const AssistantModalPrimitiveAnchor = forwardRef((t0, ref) => {
|
|
|
34
34
|
return t1;
|
|
35
35
|
});
|
|
36
36
|
AssistantModalPrimitiveAnchor.displayName = "AssistantModalPrimitive.Anchor";
|
|
37
|
-
//#endregion
|
|
38
37
|
export { AssistantModalPrimitiveAnchor };
|
|
39
38
|
|
|
40
39
|
//# sourceMappingURL=AssistantModalAnchor.js.map
|
|
@@ -6,7 +6,7 @@ import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { composeEventHandlers } from "radix-ui/internal";
|
|
8
8
|
import { Popover } from "radix-ui";
|
|
9
|
-
|
|
9
|
+
// src/primitives/assistantModal/AssistantModalContent.tsx
|
|
10
10
|
const AssistantModalPrimitiveContent = forwardRef((t0, forwardedRef) => {
|
|
11
11
|
const $ = c(22);
|
|
12
12
|
let __scopeAssistantModal;
|
|
@@ -83,7 +83,6 @@ AssistantModalPrimitiveContent.displayName = "AssistantModalPrimitive.Content";
|
|
|
83
83
|
function _temp(e) {
|
|
84
84
|
return e.preventDefault();
|
|
85
85
|
}
|
|
86
|
-
//#endregion
|
|
87
86
|
export { AssistantModalPrimitiveContent };
|
|
88
87
|
|
|
89
88
|
//# sourceMappingURL=AssistantModalContent.js.map
|
|
@@ -5,7 +5,7 @@ import { useState } from "@assistant-ui/tap/react-shim";
|
|
|
5
5
|
import { useAuiEvent } from "@assistant-ui/store";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { Popover } from "radix-ui";
|
|
8
|
-
|
|
8
|
+
// src/primitives/assistantModal/AssistantModalRoot.tsx
|
|
9
9
|
const AssistantModalPrimitiveRoot = (t0) => {
|
|
10
10
|
const $ = c(18);
|
|
11
11
|
let __scopeAssistantModal;
|
|
@@ -74,7 +74,6 @@ const AssistantModalPrimitiveRoot = (t0) => {
|
|
|
74
74
|
return t5;
|
|
75
75
|
};
|
|
76
76
|
AssistantModalPrimitiveRoot.displayName = "AssistantModalPrimitive.Root";
|
|
77
|
-
//#endregion
|
|
78
77
|
export { AssistantModalPrimitiveRoot };
|
|
79
78
|
|
|
80
79
|
//# sourceMappingURL=AssistantModalRoot.js.map
|
|
@@ -3,7 +3,7 @@ import { PopoverRenderTrigger } from "./popoverRenderPrimitives.js";
|
|
|
3
3
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
4
4
|
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/primitives/assistantModal/AssistantModalTrigger.tsx
|
|
7
7
|
const AssistantModalPrimitiveTrigger = forwardRef((t0, ref) => {
|
|
8
8
|
const $ = c(7);
|
|
9
9
|
let __scopeAssistantModal;
|
|
@@ -33,7 +33,6 @@ const AssistantModalPrimitiveTrigger = forwardRef((t0, ref) => {
|
|
|
33
33
|
return t1;
|
|
34
34
|
});
|
|
35
35
|
AssistantModalPrimitiveTrigger.displayName = "AssistantModalPrimitive.Trigger";
|
|
36
|
-
//#endregion
|
|
37
36
|
export { AssistantModalPrimitiveTrigger };
|
|
38
37
|
|
|
39
38
|
//# sourceMappingURL=AssistantModalTrigger.js.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { withRenderProp } from "../../utils/Primitive.js";
|
|
2
2
|
import { Popover } from "radix-ui";
|
|
3
|
-
|
|
3
|
+
// src/primitives/assistantModal/popoverRenderPrimitives.ts
|
|
4
4
|
const PopoverRenderTrigger = withRenderProp(Popover.Trigger);
|
|
5
5
|
const PopoverRenderAnchor = withRenderProp(Popover.Anchor);
|
|
6
6
|
const PopoverRenderContent = withRenderProp(Popover.Content);
|
|
7
|
-
//#endregion
|
|
8
7
|
export { PopoverRenderAnchor, PopoverRenderContent, PopoverRenderTrigger };
|
|
9
8
|
|
|
10
9
|
//# sourceMappingURL=popoverRenderPrimitives.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Popover } from "radix-ui";
|
|
2
|
-
|
|
2
|
+
// src/primitives/assistantModal/scope.ts
|
|
3
3
|
const usePopoverScope = Popover.createPopoverScope();
|
|
4
|
-
//#endregion
|
|
5
4
|
export { usePopoverScope };
|
|
6
5
|
|
|
7
6
|
//# sourceMappingURL=scope.js.map
|
|
@@ -3,14 +3,13 @@ import { AssistantModalPrimitiveRoot } from "./assistantModal/AssistantModalRoot
|
|
|
3
3
|
import { AssistantModalPrimitiveTrigger } from "./assistantModal/AssistantModalTrigger.js";
|
|
4
4
|
import { AssistantModalPrimitiveContent } from "./assistantModal/AssistantModalContent.js";
|
|
5
5
|
import { AssistantModalPrimitiveAnchor } from "./assistantModal/AssistantModalAnchor.js";
|
|
6
|
-
|
|
6
|
+
// src/primitives/assistantModal.ts
|
|
7
7
|
var assistantModal_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
Anchor: () => AssistantModalPrimitiveAnchor,
|
|
9
9
|
Content: () => AssistantModalPrimitiveContent,
|
|
10
10
|
Root: () => AssistantModalPrimitiveRoot,
|
|
11
11
|
Trigger: () => AssistantModalPrimitiveTrigger
|
|
12
12
|
});
|
|
13
|
-
//#endregion
|
|
14
13
|
export { AssistantModalPrimitiveAnchor as Anchor, AssistantModalPrimitiveContent as Content, AssistantModalPrimitiveRoot as Root, AssistantModalPrimitiveTrigger as Trigger, assistantModal_exports };
|
|
15
14
|
|
|
16
15
|
//# sourceMappingURL=assistantModal.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
3
3
|
import { useAuiState } from "@assistant-ui/store";
|
|
4
4
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/primitives/attachment/AttachmentName.tsx
|
|
6
6
|
const AttachmentPrimitiveName = () => {
|
|
7
7
|
const $ = c(2);
|
|
8
8
|
const name = useAuiState(_temp);
|
|
@@ -18,7 +18,6 @@ AttachmentPrimitiveName.displayName = "AttachmentPrimitive.Name";
|
|
|
18
18
|
function _temp(s) {
|
|
19
19
|
return s.attachment.name;
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { AttachmentPrimitiveName };
|
|
23
22
|
|
|
24
23
|
//# sourceMappingURL=AttachmentName.js.map
|
|
@@ -5,7 +5,7 @@ export declare namespace AttachmentPrimitiveRemove {
|
|
|
5
5
|
type Props = ActionButtonProps<typeof useAttachmentRemove>;
|
|
6
6
|
}
|
|
7
7
|
export declare const AttachmentPrimitiveRemove: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
8
|
-
asChild?: boolean;
|
|
8
|
+
asChild?: boolean | undefined;
|
|
9
9
|
}, "ref"> & {
|
|
10
10
|
render?: import("react").ReactElement | undefined;
|
|
11
11
|
} & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -3,7 +3,7 @@ import { createActionButton } from "../../utils/createActionButton.js";
|
|
|
3
3
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
4
4
|
import "@assistant-ui/tap/react-shim";
|
|
5
5
|
import { useAui } from "@assistant-ui/store";
|
|
6
|
-
|
|
6
|
+
// src/primitives/attachment/AttachmentRemove.ts
|
|
7
7
|
const useAttachmentRemove = () => {
|
|
8
8
|
const $ = c(2);
|
|
9
9
|
const aui = useAui();
|
|
@@ -18,7 +18,6 @@ const useAttachmentRemove = () => {
|
|
|
18
18
|
return t0;
|
|
19
19
|
};
|
|
20
20
|
const AttachmentPrimitiveRemove = createActionButton("AttachmentPrimitive.Remove", useAttachmentRemove);
|
|
21
|
-
//#endregion
|
|
22
21
|
export { AttachmentPrimitiveRemove };
|
|
23
22
|
|
|
24
23
|
//# sourceMappingURL=AttachmentRemove.js.map
|
|
@@ -24,7 +24,7 @@ export declare namespace AttachmentPrimitiveRoot {
|
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
export declare const AttachmentPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
27
|
-
asChild?: boolean;
|
|
27
|
+
asChild?: boolean | undefined;
|
|
28
28
|
}, "ref"> & {
|
|
29
29
|
render?: import("react").ReactElement | undefined;
|
|
30
30
|
} & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -3,7 +3,7 @@ import { Primitive } from "../../utils/Primitive.js";
|
|
|
3
3
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
4
4
|
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/primitives/attachment/AttachmentRoot.tsx
|
|
7
7
|
/**
|
|
8
8
|
* The root container component for an attachment.
|
|
9
9
|
*
|
|
@@ -33,7 +33,6 @@ const AttachmentPrimitiveRoot = forwardRef((props, ref) => {
|
|
|
33
33
|
return t0;
|
|
34
34
|
});
|
|
35
35
|
AttachmentPrimitiveRoot.displayName = "AttachmentPrimitive.Root";
|
|
36
|
-
//#endregion
|
|
37
36
|
export { AttachmentPrimitiveRoot };
|
|
38
37
|
|
|
39
38
|
//# sourceMappingURL=AttachmentRoot.js.map
|
|
@@ -6,7 +6,7 @@ export declare namespace AttachmentPrimitiveThumb {
|
|
|
6
6
|
type Props = PrimitiveDivProps;
|
|
7
7
|
}
|
|
8
8
|
export declare const AttachmentPrimitiveThumb: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
9
|
-
asChild?: boolean;
|
|
9
|
+
asChild?: boolean | undefined;
|
|
10
10
|
}, "ref"> & {
|
|
11
11
|
render?: import("react").ReactElement | undefined;
|
|
12
12
|
} & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -4,7 +4,7 @@ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
|
4
4
|
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
5
5
|
import { useAuiState } from "@assistant-ui/store";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/primitives/attachment/AttachmentThumb.tsx
|
|
8
8
|
const AttachmentPrimitiveThumb = forwardRef((props, ref) => {
|
|
9
9
|
const $ = c(4);
|
|
10
10
|
const label = useAuiState(_temp);
|
|
@@ -30,7 +30,6 @@ function _temp(s) {
|
|
|
30
30
|
if (dot > 0 && dot < name.length - 1) return `.${name.slice(dot + 1)}`;
|
|
31
31
|
return s.attachment.type;
|
|
32
32
|
}
|
|
33
|
-
//#endregion
|
|
34
33
|
export { AttachmentPrimitiveThumb };
|
|
35
34
|
|
|
36
35
|
//# sourceMappingURL=AttachmentThumb.js.map
|
|
@@ -3,14 +3,13 @@ import { AttachmentPrimitiveRoot } from "./attachment/AttachmentRoot.js";
|
|
|
3
3
|
import { AttachmentPrimitiveThumb } from "./attachment/AttachmentThumb.js";
|
|
4
4
|
import { AttachmentPrimitiveName } from "./attachment/AttachmentName.js";
|
|
5
5
|
import { AttachmentPrimitiveRemove } from "./attachment/AttachmentRemove.js";
|
|
6
|
-
|
|
6
|
+
// src/primitives/attachment.ts
|
|
7
7
|
var attachment_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
Name: () => AttachmentPrimitiveName,
|
|
9
9
|
Remove: () => AttachmentPrimitiveRemove,
|
|
10
10
|
Root: () => AttachmentPrimitiveRoot,
|
|
11
11
|
unstable_Thumb: () => AttachmentPrimitiveThumb
|
|
12
12
|
});
|
|
13
|
-
//#endregion
|
|
14
13
|
export { AttachmentPrimitiveName as Name, AttachmentPrimitiveRemove as Remove, AttachmentPrimitiveRoot as Root, attachment_exports, AttachmentPrimitiveThumb as unstable_Thumb };
|
|
15
14
|
|
|
16
15
|
//# sourceMappingURL=attachment.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
3
3
|
import { useAuiState } from "@assistant-ui/store";
|
|
4
4
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/primitives/branchPicker/BranchPickerCount.tsx
|
|
6
6
|
const useBranchPickerCount = () => {
|
|
7
7
|
return useAuiState(_temp);
|
|
8
8
|
};
|
|
@@ -34,7 +34,6 @@ BranchPickerPrimitiveCount.displayName = "BranchPickerPrimitive.Count";
|
|
|
34
34
|
function _temp(s) {
|
|
35
35
|
return s.message.branchCount;
|
|
36
36
|
}
|
|
37
|
-
//#endregion
|
|
38
37
|
export { BranchPickerPrimitiveCount };
|
|
39
38
|
|
|
40
39
|
//# sourceMappingURL=BranchPickerCount.js.map
|
|
@@ -22,7 +22,7 @@ export declare namespace BranchPickerPrimitiveNext {
|
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
24
|
export declare const BranchPickerPrimitiveNext: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
25
|
-
asChild?: boolean;
|
|
25
|
+
asChild?: boolean | undefined;
|
|
26
26
|
}, "ref"> & {
|
|
27
27
|
render?: import("react").ReactElement | undefined;
|
|
28
28
|
} & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createActionButton } from "../../utils/createActionButton.js";
|
|
3
3
|
import { useBranchPickerNext } from "@assistant-ui/core/react";
|
|
4
|
-
|
|
4
|
+
// src/primitives/branchPicker/BranchPickerNext.ts
|
|
5
5
|
const useBranchPickerNext$1 = () => {
|
|
6
6
|
const { disabled, next } = useBranchPickerNext();
|
|
7
7
|
if (disabled) return null;
|
|
@@ -21,7 +21,6 @@ const useBranchPickerNext$1 = () => {
|
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
const BranchPickerPrimitiveNext = createActionButton("BranchPickerPrimitive.Next", useBranchPickerNext$1);
|
|
24
|
-
//#endregion
|
|
25
24
|
export { BranchPickerPrimitiveNext };
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=BranchPickerNext.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
3
3
|
import { useAuiState } from "@assistant-ui/store";
|
|
4
4
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/primitives/branchPicker/BranchPickerNumber.tsx
|
|
6
6
|
const useBranchPickerNumber = () => {
|
|
7
7
|
return useAuiState(_temp);
|
|
8
8
|
};
|
|
@@ -21,7 +21,6 @@ BranchPickerPrimitiveNumber.displayName = "BranchPickerPrimitive.Number";
|
|
|
21
21
|
function _temp(s) {
|
|
22
22
|
return s.message.branchNumber;
|
|
23
23
|
}
|
|
24
|
-
//#endregion
|
|
25
24
|
export { BranchPickerPrimitiveNumber };
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=BranchPickerNumber.js.map
|
|
@@ -22,7 +22,7 @@ export declare namespace BranchPickerPrimitivePrevious {
|
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
24
|
export declare const BranchPickerPrimitivePrevious: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
25
|
-
asChild?: boolean;
|
|
25
|
+
asChild?: boolean | undefined;
|
|
26
26
|
}, "ref"> & {
|
|
27
27
|
render?: import("react").ReactElement | undefined;
|
|
28
28
|
} & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createActionButton } from "../../utils/createActionButton.js";
|
|
3
3
|
import { useBranchPickerPrevious } from "@assistant-ui/core/react";
|
|
4
|
-
|
|
4
|
+
// src/primitives/branchPicker/BranchPickerPrevious.ts
|
|
5
5
|
const useBranchPickerPrevious$1 = () => {
|
|
6
6
|
const { disabled, previous } = useBranchPickerPrevious();
|
|
7
7
|
if (disabled) return null;
|
|
@@ -21,7 +21,6 @@ const useBranchPickerPrevious$1 = () => {
|
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
const BranchPickerPrimitivePrevious = createActionButton("BranchPickerPrimitive.Previous", useBranchPickerPrevious$1);
|
|
24
|
-
//#endregion
|
|
25
24
|
export { BranchPickerPrimitivePrevious };
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=BranchPickerPrevious.js.map
|
|
@@ -29,7 +29,7 @@ export declare namespace BranchPickerPrimitiveRoot {
|
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
31
|
export declare const BranchPickerPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
32
|
-
asChild?: boolean;
|
|
32
|
+
asChild?: boolean | undefined;
|
|
33
33
|
}, "ref"> & {
|
|
34
34
|
render?: import("react").ReactElement | undefined;
|
|
35
35
|
} & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
@@ -4,7 +4,7 @@ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
|
4
4
|
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
5
5
|
import { AuiIf } from "@assistant-ui/store";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/primitives/branchPicker/BranchPickerRoot.tsx
|
|
8
8
|
/**
|
|
9
9
|
* The root container for branch picker components.
|
|
10
10
|
*
|
|
@@ -64,7 +64,6 @@ const BranchPickerPrimitiveRoot = forwardRef((t0, ref) => {
|
|
|
64
64
|
return t3;
|
|
65
65
|
});
|
|
66
66
|
BranchPickerPrimitiveRoot.displayName = "BranchPickerPrimitive.Root";
|
|
67
|
-
//#endregion
|
|
68
67
|
export { BranchPickerPrimitiveRoot };
|
|
69
68
|
|
|
70
69
|
//# sourceMappingURL=BranchPickerRoot.js.map
|
|
@@ -4,7 +4,7 @@ import { BranchPickerPrimitivePrevious } from "./branchPicker/BranchPickerPrevio
|
|
|
4
4
|
import { BranchPickerPrimitiveCount } from "./branchPicker/BranchPickerCount.js";
|
|
5
5
|
import { BranchPickerPrimitiveNumber } from "./branchPicker/BranchPickerNumber.js";
|
|
6
6
|
import { BranchPickerPrimitiveRoot } from "./branchPicker/BranchPickerRoot.js";
|
|
7
|
-
|
|
7
|
+
// src/primitives/branchPicker.ts
|
|
8
8
|
var branchPicker_exports = /* @__PURE__ */ __exportAll({
|
|
9
9
|
Count: () => BranchPickerPrimitiveCount,
|
|
10
10
|
Next: () => BranchPickerPrimitiveNext,
|
|
@@ -12,7 +12,6 @@ var branchPicker_exports = /* @__PURE__ */ __exportAll({
|
|
|
12
12
|
Previous: () => BranchPickerPrimitivePrevious,
|
|
13
13
|
Root: () => BranchPickerPrimitiveRoot
|
|
14
14
|
});
|
|
15
|
-
//#endregion
|
|
16
15
|
export { BranchPickerPrimitiveCount as Count, BranchPickerPrimitiveNext as Next, BranchPickerPrimitiveNumber as Number, BranchPickerPrimitivePrevious as Previous, BranchPickerPrimitiveRoot as Root, branchPicker_exports };
|
|
17
16
|
|
|
18
17
|
//# sourceMappingURL=branchPicker.js.map
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import type { ActionButtonElement } from "../../utils/createActionButton.js";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
|
+
import { Primitive } from "../../utils/Primitive.js";
|
|
3
4
|
export declare namespace ChainOfThoughtPrimitiveAccordionTrigger {
|
|
4
5
|
type Element = ActionButtonElement;
|
|
5
6
|
/**
|
|
6
7
|
* Props for the ChainOfThoughtPrimitive.AccordionTrigger component.
|
|
7
8
|
* Inherits all button element props and action button functionality.
|
|
8
9
|
*/
|
|
9
|
-
type Props =
|
|
10
|
+
type Props = ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
13
|
* A button component that toggles the collapsed state of the chain of thought accordion.
|
|
13
14
|
*
|
|
14
15
|
* This component automatically handles the toggle functionality, expanding or collapsing
|
|
15
16
|
* the chain of thought parts when clicked.
|
|
17
|
+
* Exposes the current disclosure state through `aria-expanded`.
|
|
16
18
|
*
|
|
17
19
|
* @example
|
|
18
20
|
* ```tsx
|
|
@@ -22,9 +24,8 @@ export declare namespace ChainOfThoughtPrimitiveAccordionTrigger {
|
|
|
22
24
|
* ```
|
|
23
25
|
*/
|
|
24
26
|
export declare const ChainOfThoughtPrimitiveAccordionTrigger: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
25
|
-
asChild?: boolean;
|
|
27
|
+
asChild?: boolean | undefined;
|
|
26
28
|
}, "ref"> & {
|
|
27
29
|
render?: import("react").ReactElement | undefined;
|
|
28
30
|
} & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
29
|
-
export {};
|
|
30
31
|
//# sourceMappingURL=ChainOfThoughtAccordionTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainOfThoughtAccordionTrigger.d.ts","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.
|
|
1
|
+
{"version":3,"file":"ChainOfThoughtAccordionTrigger.d.ts","sourceRoot":"","sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,0CAAuC;AAC1E,OAAO,EAAE,KAAK,wBAAwB,EAA2B,MAAM,OAAO,CAAC;AAG/E,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAElD,yBAAiB,uCAAuC,CAAC;IACvD,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C;;;OAGG;IACH,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;CACvE;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uCAAuC;;;;gHAmBlD,CAAC"}
|
|
@@ -1,29 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Primitive as Primitive$1 } from "../../utils/Primitive.js";
|
|
3
3
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
4
|
-
import "@assistant-ui/tap/react-shim";
|
|
4
|
+
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
5
5
|
import { useAui, useAuiState } from "@assistant-ui/store";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const aui = useAui();
|
|
10
|
-
const collapsed = useAuiState(_temp);
|
|
11
|
-
let t0;
|
|
12
|
-
if ($[0] !== aui.chainOfThought || $[1] !== collapsed) {
|
|
13
|
-
t0 = () => {
|
|
14
|
-
aui.chainOfThought.setCollapsed(!collapsed);
|
|
15
|
-
};
|
|
16
|
-
$[0] = aui.chainOfThought;
|
|
17
|
-
$[1] = collapsed;
|
|
18
|
-
$[2] = t0;
|
|
19
|
-
} else t0 = $[2];
|
|
20
|
-
return t0;
|
|
21
|
-
};
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { composeEventHandlers } from "radix-ui/internal";
|
|
8
|
+
// src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx
|
|
22
9
|
/**
|
|
23
10
|
* A button component that toggles the collapsed state of the chain of thought accordion.
|
|
24
11
|
*
|
|
25
12
|
* This component automatically handles the toggle functionality, expanding or collapsing
|
|
26
13
|
* the chain of thought parts when clicked.
|
|
14
|
+
* Exposes the current disclosure state through `aria-expanded`.
|
|
27
15
|
*
|
|
28
16
|
* @example
|
|
29
17
|
* ```tsx
|
|
@@ -32,11 +20,60 @@ const useChainOfThoughtAccordionTrigger = () => {
|
|
|
32
20
|
* </ChainOfThoughtPrimitive.AccordionTrigger>
|
|
33
21
|
* ```
|
|
34
22
|
*/
|
|
35
|
-
const ChainOfThoughtPrimitiveAccordionTrigger =
|
|
23
|
+
const ChainOfThoughtPrimitiveAccordionTrigger = forwardRef((t0, ref) => {
|
|
24
|
+
const $ = c(14);
|
|
25
|
+
let onClick;
|
|
26
|
+
let props;
|
|
27
|
+
if ($[0] !== t0) {
|
|
28
|
+
({onClick, ...props} = t0);
|
|
29
|
+
$[0] = t0;
|
|
30
|
+
$[1] = onClick;
|
|
31
|
+
$[2] = props;
|
|
32
|
+
} else {
|
|
33
|
+
onClick = $[1];
|
|
34
|
+
props = $[2];
|
|
35
|
+
}
|
|
36
|
+
const aui = useAui();
|
|
37
|
+
const collapsed = useAuiState(_temp);
|
|
38
|
+
let t1;
|
|
39
|
+
if ($[3] !== aui || $[4] !== collapsed) {
|
|
40
|
+
t1 = () => {
|
|
41
|
+
aui.chainOfThought.setCollapsed(!collapsed);
|
|
42
|
+
};
|
|
43
|
+
$[3] = aui;
|
|
44
|
+
$[4] = collapsed;
|
|
45
|
+
$[5] = t1;
|
|
46
|
+
} else t1 = $[5];
|
|
47
|
+
const toggle = t1;
|
|
48
|
+
const t2 = !collapsed;
|
|
49
|
+
let t3;
|
|
50
|
+
if ($[6] !== onClick || $[7] !== toggle) {
|
|
51
|
+
t3 = composeEventHandlers(onClick, toggle);
|
|
52
|
+
$[6] = onClick;
|
|
53
|
+
$[7] = toggle;
|
|
54
|
+
$[8] = t3;
|
|
55
|
+
} else t3 = $[8];
|
|
56
|
+
let t4;
|
|
57
|
+
if ($[9] !== props || $[10] !== ref || $[11] !== t2 || $[12] !== t3) {
|
|
58
|
+
t4 = /* @__PURE__ */ jsx(Primitive$1.button, {
|
|
59
|
+
type: "button",
|
|
60
|
+
...props,
|
|
61
|
+
ref,
|
|
62
|
+
"aria-expanded": t2,
|
|
63
|
+
onClick: t3
|
|
64
|
+
});
|
|
65
|
+
$[9] = props;
|
|
66
|
+
$[10] = ref;
|
|
67
|
+
$[11] = t2;
|
|
68
|
+
$[12] = t3;
|
|
69
|
+
$[13] = t4;
|
|
70
|
+
} else t4 = $[13];
|
|
71
|
+
return t4;
|
|
72
|
+
});
|
|
73
|
+
ChainOfThoughtPrimitiveAccordionTrigger.displayName = "ChainOfThoughtPrimitive.AccordionTrigger";
|
|
36
74
|
function _temp(s) {
|
|
37
75
|
return s.chainOfThought.collapsed;
|
|
38
76
|
}
|
|
39
|
-
//#endregion
|
|
40
77
|
export { ChainOfThoughtPrimitiveAccordionTrigger };
|
|
41
78
|
|
|
42
79
|
//# sourceMappingURL=ChainOfThoughtAccordionTrigger.js.map
|