@assistant-ui/react 0.15.31 → 0.15.33
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/GeminiLiveVoiceAdapter.d.ts +26 -0
- package/dist/adapters/GeminiLiveVoiceAdapter.d.ts.map +1 -0
- package/dist/adapters/GeminiLiveVoiceAdapter.js +346 -0
- package/dist/adapters/GeminiLiveVoiceAdapter.js.map +1 -0
- package/dist/adapters/OpenAIRealtimeVoiceAdapter.js +1 -2
- package/dist/adapters/gemini-live/audio.d.ts +27 -0
- package/dist/adapters/gemini-live/audio.d.ts.map +1 -0
- package/dist/adapters/gemini-live/audio.js +291 -0
- package/dist/adapters/gemini-live/audio.js.map +1 -0
- package/dist/assistant-transport.js +1 -2
- package/dist/cloud-renderer/CloudRendererHost.js +1 -2
- package/dist/context/ReadonlyStore.js +1 -2
- package/dist/context/providers/MessageProvider.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 +2 -3
- 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 +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/internal.js +2 -3
- package/dist/legacy-runtime/AssistantRuntimeProvider.js +1 -2
- package/dist/mcp-apps/McpAppRenderer.d.ts.map +1 -1
- package/dist/mcp-apps/McpAppRenderer.js +4 -4
- package/dist/mcp-apps/McpAppRenderer.js.map +1 -1
- package/dist/mcp-apps/McpAppsRemoteHost.js +1 -2
- package/dist/mcp-apps/app-frame.js +2 -3
- 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.js +1 -2
- package/dist/primitives/actionBar/ActionBarEdit.js +1 -2
- package/dist/primitives/actionBar/ActionBarExportMarkdown.js +1 -2
- package/dist/primitives/actionBar/ActionBarFeedbackNegative.js +1 -2
- package/dist/primitives/actionBar/ActionBarFeedbackPositive.js +1 -2
- package/dist/primitives/actionBar/ActionBarInteractionContext.js +1 -2
- package/dist/primitives/actionBar/ActionBarReload.js +1 -2
- package/dist/primitives/actionBar/ActionBarRoot.js +1 -2
- package/dist/primitives/actionBar/ActionBarSpeak.js +1 -2
- 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.js +1 -2
- package/dist/primitives/attachment/AttachmentRoot.js +1 -2
- 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.js +1 -2
- package/dist/primitives/branchPicker/BranchPickerNumber.js +1 -2
- package/dist/primitives/branchPicker/BranchPickerPrevious.js +1 -2
- package/dist/primitives/branchPicker/BranchPickerRoot.js +1 -2
- package/dist/primitives/branchPicker.js +1 -2
- package/dist/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.d.ts +5 -4
- 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/ChainOfThoughtRoot.js +1 -2
- package/dist/primitives/chainOfThought.js +1 -2
- package/dist/primitives/composer/ComposerAddAttachment.js +1 -2
- package/dist/primitives/composer/ComposerAttachmentDropzone.js +1 -2
- package/dist/primitives/composer/ComposerCancel.js +1 -2
- package/dist/primitives/composer/ComposerCompactContext.js +1 -2
- package/dist/primitives/composer/ComposerDictate.js +1 -2
- package/dist/primitives/composer/ComposerDictationTranscript.js +1 -2
- package/dist/primitives/composer/ComposerInput.js +1 -2
- package/dist/primitives/composer/ComposerInputPluginContext.js +1 -2
- package/dist/primitives/composer/ComposerQuote.js +1 -2
- package/dist/primitives/composer/ComposerResume.js +1 -2
- package/dist/primitives/composer/ComposerRoot.js +1 -2
- package/dist/primitives/composer/ComposerSend.js +1 -2
- package/dist/primitives/composer/ComposerStopDictation.js +1 -2
- package/dist/primitives/composer/composerInputSelector.js +1 -2
- package/dist/primitives/composer/trigger/TriggerPopover.js +1 -2
- package/dist/primitives/composer/trigger/TriggerPopoverAction.js +1 -2
- package/dist/primitives/composer/trigger/TriggerPopoverBack.js +1 -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.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.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.js +1 -2
- 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.js +1 -2
- package/dist/primitives/error/ErrorRoot.js +1 -2
- package/dist/primitives/error.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 +2 -3
- package/dist/primitives/message/MessageRoot.js +1 -2
- package/dist/primitives/message.js +1 -2
- package/dist/primitives/messagePart/MessagePartImage.js +1 -2
- 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.js +1 -2
- package/dist/primitives/queueItem/QueueItemSteer.js +1 -2
- 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.js +1 -2
- package/dist/primitives/selectionToolbar/SelectionToolbarRoot.js +1 -2
- package/dist/primitives/selectionToolbar.js +1 -2
- package/dist/primitives/suggestion/SuggestionDescription.js +1 -2
- package/dist/primitives/suggestion/SuggestionTitle.js +1 -2
- 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.js +1 -2
- package/dist/primitives/thread/ThreadRoot.js +1 -2
- package/dist/primitives/thread/ThreadRootElementContext.js +1 -2
- package/dist/primitives/thread/ThreadScrollToBottom.js +1 -2
- package/dist/primitives/thread/ThreadSuggestion.js +1 -2
- package/dist/primitives/thread/ThreadViewport.js +1 -2
- 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.js +1 -2
- package/dist/primitives/thread.js +1 -2
- package/dist/primitives/threadList/ThreadListLoadMore.js +1 -2
- package/dist/primitives/threadList/ThreadListNew.js +1 -2
- package/dist/primitives/threadList/ThreadListRoot.js +1 -2
- package/dist/primitives/threadList.js +1 -2
- package/dist/primitives/threadListFocusGroup.js +1 -2
- package/dist/primitives/threadListItem/ThreadListItemArchive.js +1 -2
- package/dist/primitives/threadListItem/ThreadListItemDelete.js +1 -2
- 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/ThreadListItemTrigger.js +1 -2
- package/dist/primitives/threadListItem/ThreadListItemUnarchive.js +1 -2
- 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 +2 -3
- package/dist/unstable/useComposerInput.js +1 -2
- package/dist/unstable/useComposerInputHistory.js +2 -3
- package/dist/unstable/useLiveCompletionAdapter.js +1 -2
- 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.js +1 -2
- 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 +8 -8
- package/src/adapters/GeminiLiveVoiceAdapter.test.ts +992 -0
- package/src/adapters/GeminiLiveVoiceAdapter.ts +454 -0
- package/src/adapters/gemini-live/audio.test.ts +880 -0
- package/src/adapters/gemini-live/audio.ts +333 -0
- package/src/index.test.ts +34 -0
- package/src/index.ts +4 -0
- 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/chainOfThought/ChainOfThoughtAccordionTrigger.test.tsx +91 -0
- package/src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx +54 -0
- package/src/primitives/reasoning/useScrollLock.test.tsx +71 -2
- package/src/primitives/reasoning/useScrollLock.ts +78 -51
- package/src/primitives/threadListItem/ThreadListItemRoot.tsx +4 -1
- package/src/primitives/threadListItem/ThreadListKeyboardNav.test.tsx +25 -0
- package/src/utils/smooth/useSmooth.test.tsx +113 -4
- package/src/utils/smooth/useSmooth.ts +16 -2
- package/src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.ts +0 -49
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -26,5 +28,4 @@ export declare const ChainOfThoughtPrimitiveAccordionTrigger: import("react").Fo
|
|
|
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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainOfThoughtAccordionTrigger.js","names":["c","_c","ActionButtonElement","
|
|
1
|
+
{"version":3,"file":"ChainOfThoughtAccordionTrigger.js","names":["c","_c","ActionButtonElement","ComponentPropsWithoutRef","forwardRef","useCallback","useAuiState","useAui","composeEventHandlers","Primitive","ChainOfThoughtPrimitiveAccordionTrigger","Element","Props","button","t0","ref","$","onClick","props","aui","collapsed","_temp","t1","chainOfThought","setCollapsed","toggle","t2","t3","t4","displayName","s","_c","Primitive"],"sources":["../../../src/primitives/chainOfThought/ChainOfThoughtAccordionTrigger.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ActionButtonElement } from \"../../utils/createActionButton\";\nimport { type ComponentPropsWithoutRef, forwardRef, useCallback } from \"react\";\nimport { useAuiState, useAui } from \"@assistant-ui/store\";\nimport { composeEventHandlers } from \"radix-ui/internal\";\nimport { Primitive } from \"../../utils/Primitive\";\n\nexport namespace ChainOfThoughtPrimitiveAccordionTrigger {\n export type Element = ActionButtonElement;\n /**\n * Props for the ChainOfThoughtPrimitive.AccordionTrigger component.\n * Inherits all button element props and action button functionality.\n */\n export type Props = ComponentPropsWithoutRef<typeof Primitive.button>;\n}\n\n/**\n * A button component that toggles the collapsed state of the chain of thought accordion.\n *\n * This component automatically handles the toggle functionality, expanding or collapsing\n * the chain of thought parts when clicked.\n * Exposes the current disclosure state through `aria-expanded`.\n *\n * @example\n * ```tsx\n * <ChainOfThoughtPrimitive.AccordionTrigger>\n * Toggle Reasoning\n * </ChainOfThoughtPrimitive.AccordionTrigger>\n * ```\n */\nexport const ChainOfThoughtPrimitiveAccordionTrigger = forwardRef<\n ChainOfThoughtPrimitiveAccordionTrigger.Element,\n ChainOfThoughtPrimitiveAccordionTrigger.Props\n>(({ onClick, ...props }, ref) => {\n const aui = useAui();\n const collapsed = useAuiState((s) => s.chainOfThought.collapsed);\n const toggle = useCallback(() => {\n aui.chainOfThought.setCollapsed(!collapsed);\n }, [aui, collapsed]);\n\n return (\n <Primitive.button\n type=\"button\"\n {...props}\n ref={ref}\n aria-expanded={!collapsed}\n onClick={composeEventHandlers(onClick, toggle)}\n />\n );\n});\n\nChainOfThoughtPrimitiveAccordionTrigger.displayName =\n \"ChainOfThoughtPrimitive.AccordionTrigger\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAaU,0CAA0CN,YAGrDU,IAAAC,QAAA;CAAA,MAAAC,IAAAf,EAAA,EAAA;CAAA,IAAAgB;CAAA,IAAAC;CAAA,IAAAF,EAAA,OAAAF,IAAA;EAAC,CAAA,CAAAG,SAAA,GAAAC,SAAAJ;EAAqBE,EAAA,KAAAF;EAAAE,EAAA,KAAAC;EAAAD,EAAA,KAAAE;CAAA,OAAA;EAAAD,UAAAD,EAAA;EAAAE,QAAAF,EAAA;CAAA;CACtB,MAAAG,MAAYZ,OAAO;CACnB,MAAAa,YAAkBd,YAAYe,KAAiC;CAAE,IAAAC;CAAA,IAAAN,EAAA,OAAAG,OAAAH,EAAA,OAAAI,WAAA;EACtCE,WAAA;GACzBH,IAAGI,eAAeC,aAAc,CAACJ,SAAS;EAAC;EAC5CJ,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAFD,MAAAS,SAAeH;CASI,MAAAI,KAAA,CAACN;CAAS,IAAAO;CAAA,IAAAX,EAAA,OAAAC,WAAAD,EAAA,OAAAS,QAAA;EAChBE,KAAAnB,qBAAqBS,SAASQ,MAAM;EAACT,EAAA,KAAAC;EAAAD,EAAA,KAAAS;EAAAT,EAAA,KAAAW;CAAA,OAAAA,KAAAX,EAAA;CAAA,IAAAY;CAAA,IAAAZ,EAAA,OAAAE,SAAAF,EAAA,QAAAD,OAAAC,EAAA,QAAAU,MAAAV,EAAA,QAAAW,IAAA;EALhDC,KAAA,oBAAAI,YAAA,QAAA;GACO,MAAA;GAAQ,GACTd;GACCH;GACU,iBAAAW;GACN,SAAAC;EAAqC,CAAA;EAC9CX,EAAA,KAAAE;EAAAF,EAAA,MAAAD;EAAAC,EAAA,MAAAU;EAAAV,EAAA,MAAAW;EAAAX,EAAA,MAAAY;CAAA,OAAAA,KAAAZ,EAAA;CAAA,OANFY;AAME,CAEL;AAEDlB,wCAAwCmB,cACtC;AAnBA,SAAAR,MAAAS,GAAA;CAAA,OAEqCA,EAACP,eAAeH;AAAU"}
|
|
@@ -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/chainOfThought/ChainOfThoughtRoot.tsx
|
|
7
7
|
/**
|
|
8
8
|
* The root container for chain of thought components.
|
|
9
9
|
*
|
|
@@ -35,7 +35,6 @@ const ChainOfThoughtPrimitiveRoot = forwardRef((props, ref) => {
|
|
|
35
35
|
return t0;
|
|
36
36
|
});
|
|
37
37
|
ChainOfThoughtPrimitiveRoot.displayName = "ChainOfThoughtPrimitive.Root";
|
|
38
|
-
//#endregion
|
|
39
38
|
export { ChainOfThoughtPrimitiveRoot };
|
|
40
39
|
|
|
41
40
|
//# sourceMappingURL=ChainOfThoughtRoot.js.map
|
|
@@ -2,13 +2,12 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
import { ChainOfThoughtPrimitiveRoot } from "./chainOfThought/ChainOfThoughtRoot.js";
|
|
3
3
|
import { ChainOfThoughtPrimitiveAccordionTrigger } from "./chainOfThought/ChainOfThoughtAccordionTrigger.js";
|
|
4
4
|
import { ChainOfThoughtPrimitiveParts } from "./chainOfThought/ChainOfThoughtParts.js";
|
|
5
|
-
|
|
5
|
+
// src/primitives/chainOfThought.ts
|
|
6
6
|
var chainOfThought_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
AccordionTrigger: () => ChainOfThoughtPrimitiveAccordionTrigger,
|
|
8
8
|
Parts: () => ChainOfThoughtPrimitiveParts,
|
|
9
9
|
Root: () => ChainOfThoughtPrimitiveRoot
|
|
10
10
|
});
|
|
11
|
-
//#endregion
|
|
12
11
|
export { ChainOfThoughtPrimitiveAccordionTrigger as AccordionTrigger, ChainOfThoughtPrimitiveParts as Parts, ChainOfThoughtPrimitiveRoot as Root, chainOfThought_exports };
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=chainOfThought.js.map
|
|
@@ -4,7 +4,7 @@ import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
|
4
4
|
import { useComposerAddAttachment } from "@assistant-ui/core/react";
|
|
5
5
|
import { useInsertionEffect, useRef } from "@assistant-ui/tap/react-shim";
|
|
6
6
|
import { useAui } from "@assistant-ui/store";
|
|
7
|
-
|
|
7
|
+
// src/primitives/composer/ComposerAddAttachment.ts
|
|
8
8
|
const useComposerAddAttachment$1 = (t0) => {
|
|
9
9
|
const $ = c(10);
|
|
10
10
|
let t1;
|
|
@@ -71,7 +71,6 @@ const useComposerAddAttachment$1 = (t0) => {
|
|
|
71
71
|
return callback;
|
|
72
72
|
};
|
|
73
73
|
const ComposerPrimitiveAddAttachment = createActionButton("ComposerPrimitive.AddAttachment", useComposerAddAttachment$1, ["multiple"]);
|
|
74
|
-
//#endregion
|
|
75
74
|
export { ComposerPrimitiveAddAttachment };
|
|
76
75
|
|
|
77
76
|
//# sourceMappingURL=ComposerAddAttachment.js.map
|
|
@@ -5,7 +5,7 @@ import { useAui, useAuiState } from "@assistant-ui/store";
|
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { composeEventHandlers } from "radix-ui/internal";
|
|
7
7
|
import { Slot } from "radix-ui";
|
|
8
|
-
|
|
8
|
+
// src/primitives/composer/ComposerAttachmentDropzone.tsx
|
|
9
9
|
const ComposerPrimitiveAttachmentDropzone = forwardRef(({ disabled, asChild = false, render, children, ...rest }, ref) => {
|
|
10
10
|
const [isDragging, setIsDragging] = useState(false);
|
|
11
11
|
const aui = useAui();
|
|
@@ -74,7 +74,6 @@ const ComposerPrimitiveAttachmentDropzone = forwardRef(({ disabled, asChild = fa
|
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
76
|
ComposerPrimitiveAttachmentDropzone.displayName = "ComposerPrimitive.AttachmentDropzone";
|
|
77
|
-
//#endregion
|
|
78
77
|
export { ComposerPrimitiveAttachmentDropzone };
|
|
79
78
|
|
|
80
79
|
//# sourceMappingURL=ComposerAttachmentDropzone.js.map
|
|
@@ -3,7 +3,7 @@ import { createActionButton } from "../../utils/createActionButton.js";
|
|
|
3
3
|
import { useComposerCancelWithFocus } from "./useComposerCancelWithFocus.js";
|
|
4
4
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
5
5
|
import { useComposerCancel } from "@assistant-ui/core/react";
|
|
6
|
-
|
|
6
|
+
// src/primitives/composer/ComposerCancel.ts
|
|
7
7
|
const useComposerCancel$1 = () => {
|
|
8
8
|
const $ = c(2);
|
|
9
9
|
const { disabled, cancel } = useComposerCancel();
|
|
@@ -34,7 +34,6 @@ const useComposerCancel$1 = () => {
|
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
36
|
const ComposerPrimitiveCancel = createActionButton("ComposerPrimitive.Cancel", useComposerCancel$1);
|
|
37
|
-
//#endregion
|
|
38
37
|
export { ComposerPrimitiveCancel };
|
|
39
38
|
|
|
40
39
|
//# sourceMappingURL=ComposerCancel.js.map
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createContext, useContext } from "@assistant-ui/tap/react-shim";
|
|
3
|
-
|
|
3
|
+
// src/primitives/composer/ComposerCompactContext.tsx
|
|
4
4
|
const ComposerCompactContext = createContext(null);
|
|
5
5
|
const useComposerCompactContextOptional = () => {
|
|
6
6
|
return useContext(ComposerCompactContext);
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { ComposerCompactContext, useComposerCompactContextOptional };
|
|
10
9
|
|
|
11
10
|
//# sourceMappingURL=ComposerCompactContext.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createActionButton } from "../../utils/createActionButton.js";
|
|
3
3
|
import { useComposerDictate } from "@assistant-ui/core/react";
|
|
4
|
-
|
|
4
|
+
// src/primitives/composer/ComposerDictate.ts
|
|
5
5
|
const useComposerDictate$1 = () => {
|
|
6
6
|
const { disabled, startDictation } = useComposerDictate();
|
|
7
7
|
if (disabled) return null;
|
|
@@ -20,7 +20,6 @@ const useComposerDictate$1 = () => {
|
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
22
|
const ComposerPrimitiveDictate = createActionButton("ComposerPrimitive.Dictate", useComposerDictate$1);
|
|
23
|
-
//#endregion
|
|
24
23
|
export { ComposerPrimitiveDictate };
|
|
25
24
|
|
|
26
25
|
//# sourceMappingURL=ComposerDictate.js.map
|
|
@@ -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/composer/ComposerDictationTranscript.tsx
|
|
8
8
|
/**
|
|
9
9
|
* Renders the current interim (partial) transcript while dictation is active.
|
|
10
10
|
*
|
|
@@ -54,7 +54,6 @@ ComposerPrimitiveDictationTranscript.displayName = "ComposerPrimitive.DictationT
|
|
|
54
54
|
function _temp(s) {
|
|
55
55
|
return s.composer.dictation?.transcript;
|
|
56
56
|
}
|
|
57
|
-
//#endregion
|
|
58
57
|
export { ComposerPrimitiveDictationTranscript };
|
|
59
58
|
|
|
60
59
|
//# sourceMappingURL=ComposerDictationTranscript.js.map
|
|
@@ -15,7 +15,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
15
15
|
import { composeEventHandlers, useComposedRefs, useEscapeKeydown } from "radix-ui/internal";
|
|
16
16
|
import { Slot } from "radix-ui";
|
|
17
17
|
import TextareaAutosize from "react-textarea-autosize";
|
|
18
|
-
|
|
18
|
+
// src/primitives/composer/ComposerInput.tsx
|
|
19
19
|
const TOUCH_PRIMARY_QUERY = "(pointer: coarse) and (not (any-pointer: fine))";
|
|
20
20
|
/**
|
|
21
21
|
* A text input component for composing messages.
|
|
@@ -213,7 +213,6 @@ const ComposerPrimitiveInput = forwardRef(({ autoFocus = false, asChild, render,
|
|
|
213
213
|
return /* @__PURE__ */ jsx(Component, { ...inputProps });
|
|
214
214
|
});
|
|
215
215
|
ComposerPrimitiveInput.displayName = "ComposerPrimitive.Input";
|
|
216
|
-
//#endregion
|
|
217
216
|
export { ComposerPrimitiveInput };
|
|
218
217
|
|
|
219
218
|
//# sourceMappingURL=ComposerInput.js.map
|