@assistant-ui/react 0.15.31 → 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.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 +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/internal.js +1 -2
- package/dist/legacy-runtime/AssistantRuntimeProvider.js +1 -2
- 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.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 +1 -2
- 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 +1 -2
- package/dist/unstable/useComposerInput.js +1 -2
- package/dist/unstable/useComposerInputHistory.js +1 -2
- 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 +6 -6
- 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
|
@@ -6,7 +6,7 @@ import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
|
6
6
|
import { useAuiState } from "@assistant-ui/store";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { composeEventHandlers } from "radix-ui/internal";
|
|
9
|
-
|
|
9
|
+
// src/primitives/actionBar/ActionBarFeedbackPositive.tsx
|
|
10
10
|
const useActionBarFeedbackPositive$1 = () => {
|
|
11
11
|
const { submit } = useActionBarFeedbackPositive();
|
|
12
12
|
return submit;
|
|
@@ -76,7 +76,6 @@ ActionBarPrimitiveFeedbackPositive.displayName = "ActionBarPrimitive.FeedbackPos
|
|
|
76
76
|
function _temp(s) {
|
|
77
77
|
return s.message.metadata.submittedFeedback?.type === "positive";
|
|
78
78
|
}
|
|
79
|
-
//#endregion
|
|
80
79
|
export { ActionBarPrimitiveFeedbackPositive };
|
|
81
80
|
|
|
82
81
|
//# sourceMappingURL=ActionBarFeedbackPositive.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/actionBar/ActionBarInteractionContext.ts
|
|
4
4
|
const ActionBarInteractionContext = createContext(null);
|
|
5
5
|
const useActionBarInteractionContext = () => {
|
|
6
6
|
return useContext(ActionBarInteractionContext);
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { ActionBarInteractionContext, useActionBarInteractionContext };
|
|
10
9
|
|
|
11
10
|
//# sourceMappingURL=ActionBarInteractionContext.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createActionButton } from "../../utils/createActionButton.js";
|
|
3
3
|
import { useActionBarReload } from "@assistant-ui/core/react";
|
|
4
|
-
|
|
4
|
+
// src/primitives/actionBar/ActionBarReload.ts
|
|
5
5
|
/**
|
|
6
6
|
* Hook that provides reload functionality for action bar buttons.
|
|
7
7
|
*
|
|
@@ -43,7 +43,6 @@ const useActionBarReload$1 = () => {
|
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
45
|
const ActionBarPrimitiveReload = createActionButton("ActionBarPrimitive.Reload", useActionBarReload$1);
|
|
46
|
-
//#endregion
|
|
47
46
|
export { ActionBarPrimitiveReload };
|
|
48
47
|
|
|
49
48
|
//# sourceMappingURL=ActionBarReload.js.map
|
|
@@ -5,7 +5,7 @@ import { ActionBarInteractionContext } from "./ActionBarInteractionContext.js";
|
|
|
5
5
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
6
6
|
import { forwardRef, useState } from "@assistant-ui/tap/react-shim";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/primitives/actionBar/ActionBarRoot.tsx
|
|
9
9
|
/**
|
|
10
10
|
* The root container for action bar components.
|
|
11
11
|
*
|
|
@@ -113,7 +113,6 @@ function _temp(count) {
|
|
|
113
113
|
function _temp2(count_0) {
|
|
114
114
|
return Math.max(0, count_0 - 1);
|
|
115
115
|
}
|
|
116
|
-
//#endregion
|
|
117
116
|
export { ActionBarPrimitiveRoot };
|
|
118
117
|
|
|
119
118
|
//# sourceMappingURL=ActionBarRoot.js.map
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createActionButton } from "../../utils/createActionButton.js";
|
|
3
3
|
import { useActionBarSpeak } from "@assistant-ui/core/react";
|
|
4
|
-
|
|
4
|
+
// src/primitives/actionBar/ActionBarSpeak.ts
|
|
5
5
|
const useActionBarSpeak$1 = () => {
|
|
6
6
|
const { disabled, speak } = useActionBarSpeak();
|
|
7
7
|
if (disabled) return null;
|
|
8
8
|
return speak;
|
|
9
9
|
};
|
|
10
10
|
const ActionBarPrimitiveSpeak = createActionButton("ActionBarPrimitive.Speak", useActionBarSpeak$1);
|
|
11
|
-
//#endregion
|
|
12
11
|
export { ActionBarPrimitiveSpeak };
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=ActionBarSpeak.js.map
|
|
@@ -5,7 +5,7 @@ import { useActionBarStopSpeaking } from "@assistant-ui/core/react";
|
|
|
5
5
|
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
|
+
// src/primitives/actionBar/ActionBarStopSpeaking.tsx
|
|
9
9
|
const useActionBarStopSpeaking$1 = () => {
|
|
10
10
|
const { disabled, stopSpeaking } = useActionBarStopSpeaking();
|
|
11
11
|
if (disabled) return null;
|
|
@@ -48,7 +48,6 @@ const ActionBarPrimitiveStopSpeaking = forwardRef((props, ref) => {
|
|
|
48
48
|
return t3;
|
|
49
49
|
});
|
|
50
50
|
ActionBarPrimitiveStopSpeaking.displayName = "ActionBarPrimitive.StopSpeaking";
|
|
51
|
-
//#endregion
|
|
52
51
|
export { ActionBarPrimitiveStopSpeaking };
|
|
53
52
|
|
|
54
53
|
//# sourceMappingURL=ActionBarStopSpeaking.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
3
3
|
import { useAuiState } from "@assistant-ui/store";
|
|
4
|
-
|
|
4
|
+
// src/primitives/actionBar/useActionBarFloatStatus.ts
|
|
5
5
|
const HideAndFloatStatus = {
|
|
6
6
|
Hidden: "hidden",
|
|
7
7
|
Floating: "floating",
|
|
@@ -29,7 +29,6 @@ const useActionBarFloatStatus = (t0) => {
|
|
|
29
29
|
} else t1 = $[4];
|
|
30
30
|
return useAuiState(t1);
|
|
31
31
|
};
|
|
32
|
-
//#endregion
|
|
33
32
|
export { HideAndFloatStatus, useActionBarFloatStatus };
|
|
34
33
|
|
|
35
34
|
//# sourceMappingURL=useActionBarFloatStatus.js.map
|
|
@@ -8,7 +8,7 @@ import { ActionBarPrimitiveStopSpeaking } from "./actionBar/ActionBarStopSpeakin
|
|
|
8
8
|
import { ActionBarPrimitiveFeedbackPositive } from "./actionBar/ActionBarFeedbackPositive.js";
|
|
9
9
|
import { ActionBarPrimitiveFeedbackNegative } from "./actionBar/ActionBarFeedbackNegative.js";
|
|
10
10
|
import { ActionBarPrimitiveExportMarkdown } from "./actionBar/ActionBarExportMarkdown.js";
|
|
11
|
-
|
|
11
|
+
// src/primitives/actionBar.ts
|
|
12
12
|
var actionBar_exports = /* @__PURE__ */ __exportAll({
|
|
13
13
|
Copy: () => ActionBarPrimitiveCopy,
|
|
14
14
|
Edit: () => ActionBarPrimitiveEdit,
|
|
@@ -20,7 +20,6 @@ var actionBar_exports = /* @__PURE__ */ __exportAll({
|
|
|
20
20
|
Speak: () => ActionBarPrimitiveSpeak,
|
|
21
21
|
StopSpeaking: () => ActionBarPrimitiveStopSpeaking
|
|
22
22
|
});
|
|
23
|
-
//#endregion
|
|
24
23
|
export { ActionBarPrimitiveCopy as Copy, ActionBarPrimitiveEdit as Edit, ActionBarPrimitiveExportMarkdown as ExportMarkdown, ActionBarPrimitiveFeedbackNegative as FeedbackNegative, ActionBarPrimitiveFeedbackPositive as FeedbackPositive, ActionBarPrimitiveReload as Reload, ActionBarPrimitiveRoot as Root, ActionBarPrimitiveSpeak as Speak, ActionBarPrimitiveStopSpeaking as StopSpeaking, actionBar_exports };
|
|
25
24
|
|
|
26
25
|
//# sourceMappingURL=actionBar.js.map
|
|
@@ -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
|
|
@@ -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"}
|