@vite-plugin-opencode-assistant/components 1.0.36 → 1.0.38
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/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/open-code-widget/composables/use-persist-state.d.ts +2 -0
- package/es/open-code-widget/composables/use-persist-state.js +24 -9
- package/es/open-code-widget/composables/use-split.d.ts +24 -0
- package/es/open-code-widget/composables/use-split.js +90 -0
- package/es/open-code-widget/src/components/ChatPanel-sfc.css +1 -0
- package/es/open-code-widget/src/components/ChatPanel.vue.d.ts +180 -0
- package/es/open-code-widget/src/components/ChatPanel.vue.js +288 -0
- package/es/open-code-widget/src/components/Header.vue.js +13 -8
- package/es/open-code-widget/src/components/ResizeHandle-sfc.css +1 -0
- package/es/open-code-widget/src/components/ResizeHandle.vue.d.ts +19 -0
- package/es/open-code-widget/src/components/ResizeHandle.vue.js +91 -0
- package/es/open-code-widget/src/components/SplitTrigger-sfc.css +1 -0
- package/es/open-code-widget/src/components/SplitTrigger.vue.d.ts +17 -0
- package/es/open-code-widget/src/components/SplitTrigger.vue.js +130 -0
- package/es/open-code-widget/src/context.d.ts +1 -0
- package/es/open-code-widget/src/index-sfc.css +1 -1
- package/es/open-code-widget/src/index.vue.d.ts +16 -53
- package/es/open-code-widget/src/index.vue.js +150 -140
- package/es/open-code-widget/src/types.d.ts +1 -1
- package/lib/@vite-plugin-opencode-assistant/components.cjs.js +806 -248
- package/lib/@vite-plugin-opencode-assistant/components.es.js +802 -244
- package/lib/components.css +5 -3
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/open-code-widget/composables/use-persist-state.d.ts +2 -0
- package/lib/open-code-widget/composables/use-persist-state.js +24 -9
- package/lib/open-code-widget/composables/use-split.d.ts +24 -0
- package/lib/open-code-widget/composables/use-split.js +109 -0
- package/lib/open-code-widget/src/components/ChatPanel-sfc.css +1 -0
- package/lib/open-code-widget/src/components/ChatPanel.vue.d.ts +180 -0
- package/lib/open-code-widget/src/components/ChatPanel.vue.js +315 -0
- package/lib/open-code-widget/src/components/Header.vue.js +12 -7
- package/lib/open-code-widget/src/components/ResizeHandle-sfc.css +1 -0
- package/lib/open-code-widget/src/components/ResizeHandle.vue.d.ts +19 -0
- package/lib/open-code-widget/src/components/ResizeHandle.vue.js +108 -0
- package/lib/open-code-widget/src/components/SplitTrigger-sfc.css +1 -0
- package/lib/open-code-widget/src/components/SplitTrigger.vue.d.ts +17 -0
- package/lib/open-code-widget/src/components/SplitTrigger.vue.js +147 -0
- package/lib/open-code-widget/src/context.d.ts +1 -0
- package/lib/open-code-widget/src/index-sfc.css +1 -1
- package/lib/open-code-widget/src/index.vue.d.ts +16 -53
- package/lib/open-code-widget/src/index.vue.js +149 -139
- package/lib/open-code-widget/src/types.d.ts +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +2 -2
|
@@ -20,17 +20,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20
20
|
import "./index-sfc.css";
|
|
21
21
|
import { useCssVars as _useCssVars, defineComponent as _defineComponent } from "vue";
|
|
22
22
|
import { useSlots, toRef, ref, watch, computed, nextTick, onMounted, onUnmounted } from "vue";
|
|
23
|
-
import
|
|
24
|
-
import Header from "./components/Header.vue.js";
|
|
23
|
+
import ChatPanel from "./components/ChatPanel.vue.js";
|
|
25
24
|
import SelectHint from "./components/SelectHint.vue.js";
|
|
26
|
-
import SelectedNodes from "./components/SelectedNodes.vue.js";
|
|
27
|
-
import SessionList from "./components/SessionList.vue.js";
|
|
28
25
|
import Trigger from "./components/Trigger.vue.js";
|
|
29
26
|
import { useSelection } from "../composables/use-selection";
|
|
30
27
|
import { useSession } from "../composables/use-session";
|
|
31
28
|
import { useWidget } from "../composables/use-widget";
|
|
32
29
|
import { useInspector } from "../composables/use-inspector";
|
|
33
30
|
import { usePersistState } from "../composables/use-persist-state";
|
|
31
|
+
import { useSplitMode } from "../composables/use-split";
|
|
34
32
|
import { provideOpenCodeWidgetContext } from "./context";
|
|
35
33
|
const __vue_sfc__ = /* @__PURE__ */ _defineComponent(__spreadProps(__spreadValues({}, {
|
|
36
34
|
name: "OpencodeWidget"
|
|
@@ -59,9 +57,12 @@ const __vue_sfc__ = /* @__PURE__ */ _defineComponent(__spreadProps(__spreadValue
|
|
|
59
57
|
showClearAll: { type: Boolean, required: false, default: true },
|
|
60
58
|
selectEnabled: { type: Boolean, required: false, default: true },
|
|
61
59
|
thinking: { type: Boolean, required: false, default: false },
|
|
62
|
-
sessionStates: { type: Object, required: false }
|
|
60
|
+
sessionStates: { type: Object, required: false },
|
|
61
|
+
displayMode: { type: String, required: false, default: "bubble" },
|
|
62
|
+
splitMode: { type: Object, required: false, default: void 0 },
|
|
63
|
+
splitPanelWidth: { type: Number, required: false, default: 500 }
|
|
63
64
|
},
|
|
64
|
-
emits: ["update:open", "update:selectMode", "update:sessionListCollapsed", "update:currentSessionId", "update:selectedElements", "update:theme", "update:thinking", "toggle", "close", "toggle-session-list", "toggle-select-mode", "toggle-theme", "create-session", "select-session", "delete-session", "click-selected-node", "remove-selected-node", "clear-selected-nodes", "empty-action", "frame-loaded", "thinking-change"],
|
|
65
|
+
emits: ["update:open", "update:selectMode", "update:sessionListCollapsed", "update:currentSessionId", "update:selectedElements", "update:theme", "update:thinking", "update:splitPanelWidth", "toggle", "close", "toggle-session-list", "toggle-select-mode", "toggle-theme", "create-session", "select-session", "delete-session", "click-selected-node", "remove-selected-node", "clear-selected-nodes", "empty-action", "frame-loaded", "thinking-change", "split-panel-width-change"],
|
|
65
66
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
66
67
|
_useCssVars((_ctx) => ({
|
|
67
68
|
"-chatAnimationOrigin.x": chatAnimationOrigin.value.x,
|
|
@@ -113,6 +114,7 @@ const __vue_sfc__ = /* @__PURE__ */ _defineComponent(__spreadProps(__spreadValue
|
|
|
113
114
|
const promptDockVisible = ref(true);
|
|
114
115
|
const isRestoring = ref(true);
|
|
115
116
|
const iframeLoaded = ref(false);
|
|
117
|
+
const splitPanelWidth = ref(props.splitPanelWidth);
|
|
116
118
|
const syncStateToIframe = () => {
|
|
117
119
|
if (!iframeLoaded.value) return;
|
|
118
120
|
sendMessageToIframe("prompt-dock-visibility-change", { visible: promptDockVisible.value });
|
|
@@ -134,6 +136,12 @@ const __vue_sfc__ = /* @__PURE__ */ _defineComponent(__spreadProps(__spreadValue
|
|
|
134
136
|
localSessionListCollapsed.value = val;
|
|
135
137
|
}
|
|
136
138
|
);
|
|
139
|
+
watch(
|
|
140
|
+
() => props.splitPanelWidth,
|
|
141
|
+
(val) => {
|
|
142
|
+
splitPanelWidth.value = val;
|
|
143
|
+
}
|
|
144
|
+
);
|
|
137
145
|
const {
|
|
138
146
|
buttonActive,
|
|
139
147
|
containerClasses,
|
|
@@ -225,6 +233,27 @@ const __vue_sfc__ = /* @__PURE__ */ _defineComponent(__spreadProps(__spreadValue
|
|
|
225
233
|
}
|
|
226
234
|
});
|
|
227
235
|
const bubbleOffset = ref(void 0);
|
|
236
|
+
const {
|
|
237
|
+
effectiveMode,
|
|
238
|
+
isSplitMode,
|
|
239
|
+
panelWidth,
|
|
240
|
+
splitConfig,
|
|
241
|
+
handleResize,
|
|
242
|
+
handleToggle: handleSplitToggle
|
|
243
|
+
} = useSplitMode({
|
|
244
|
+
displayMode: toRef(props, "displayMode"),
|
|
245
|
+
splitMode: toRef(props, "splitMode"),
|
|
246
|
+
open: toRef(props, "open"),
|
|
247
|
+
onOpenChange: (nextOpen) => {
|
|
248
|
+
emit("update:open", nextOpen);
|
|
249
|
+
emit("toggle", nextOpen);
|
|
250
|
+
},
|
|
251
|
+
onWidthChange: (width) => {
|
|
252
|
+
splitPanelWidth.value = width;
|
|
253
|
+
emit("update:splitPanelWidth", width);
|
|
254
|
+
emit("split-panel-width-change", width);
|
|
255
|
+
}
|
|
256
|
+
});
|
|
228
257
|
usePersistState({
|
|
229
258
|
open: toRef(props, "open"),
|
|
230
259
|
minimized,
|
|
@@ -232,6 +261,7 @@ const __vue_sfc__ = /* @__PURE__ */ _defineComponent(__spreadProps(__spreadValue
|
|
|
232
261
|
bubbleOffset,
|
|
233
262
|
theme: toRef(props, "theme"),
|
|
234
263
|
sessionListCollapsed: localSessionListCollapsed,
|
|
264
|
+
splitPanelWidth,
|
|
235
265
|
onRestore: (state) => {
|
|
236
266
|
if (state.open !== void 0 && state.open !== props.open) {
|
|
237
267
|
emit("update:open", state.open);
|
|
@@ -371,6 +401,12 @@ const __vue_sfc__ = /* @__PURE__ */ _defineComponent(__spreadProps(__spreadValue
|
|
|
371
401
|
const handleBubbleOffsetChange = (offset) => {
|
|
372
402
|
bubbleOffset.value = offset;
|
|
373
403
|
};
|
|
404
|
+
const handleResizeStart = () => {
|
|
405
|
+
isDragging.value = true;
|
|
406
|
+
};
|
|
407
|
+
const handleResizeEnd = () => {
|
|
408
|
+
isDragging.value = false;
|
|
409
|
+
};
|
|
374
410
|
const chatAnimationOrigin = computed(() => {
|
|
375
411
|
const quadrant = bubbleQuadrant.value;
|
|
376
412
|
switch (quadrant) {
|
|
@@ -423,6 +459,7 @@ const __vue_sfc__ = /* @__PURE__ */ _defineComponent(__spreadProps(__spreadValue
|
|
|
423
459
|
minimized,
|
|
424
460
|
promptDockVisible,
|
|
425
461
|
bubbleOffset,
|
|
462
|
+
mode: effectiveMode,
|
|
426
463
|
sessionStates: computed(() => {
|
|
427
464
|
var _a;
|
|
428
465
|
return (_a = props.sessionStates) != null ? _a : {};
|
|
@@ -459,36 +496,30 @@ const __vue_sfc__ = /* @__PURE__ */ _defineComponent(__spreadProps(__spreadValue
|
|
|
459
496
|
return dialogResolve;
|
|
460
497
|
}, set dialogResolve(v) {
|
|
461
498
|
dialogResolve = v;
|
|
462
|
-
}, showConfirmDialog, handleDialogConfirm, handleDialogCancel, frameRef, triggerRef, sendMessageToIframe, localSessionListCollapsed, minimized, promptDockVisible, isRestoring, iframeLoaded, syncStateToIframe, handleFrameLoaded, buttonActive, containerClasses, iframeSource, sessionListTitle, resolvedTheme, handleClose, handleEmptyAction, handleToggle, handleToggleSessionList, handleToggleTheme, sessionItems, handleCreateSession, handleDeleteSession, handleSelectSession, bubbleVisible, hasSelectedElements, selectedElementItems, handleClearSelectedNodes, handleClickSelectedNode, handleRemoveSelectedNode, handleToggleSelectMode, highlightVisible, highlightStyle, tooltipVisible, tooltipStyle, tooltipContent, bubbleOffset, handleToggleMinimize, handleTogglePromptDock, windowWidth, windowHeight, handleWindowResize, bubbleQuadrant, isBubbleOnRightSide, chatPositionStyle, handleBubbleOffsetChange, chatAnimationOrigin, isDragging, get wasOpenBeforeDrag() {
|
|
499
|
+
}, showConfirmDialog, handleDialogConfirm, handleDialogCancel, frameRef, triggerRef, sendMessageToIframe, localSessionListCollapsed, minimized, promptDockVisible, isRestoring, iframeLoaded, splitPanelWidth, syncStateToIframe, handleFrameLoaded, buttonActive, containerClasses, iframeSource, sessionListTitle, resolvedTheme, handleClose, handleEmptyAction, handleToggle, handleToggleSessionList, handleToggleTheme, sessionItems, handleCreateSession, handleDeleteSession, handleSelectSession, bubbleVisible, hasSelectedElements, selectedElementItems, handleClearSelectedNodes, handleClickSelectedNode, handleRemoveSelectedNode, handleToggleSelectMode, highlightVisible, highlightStyle, tooltipVisible, tooltipStyle, tooltipContent, bubbleOffset, effectiveMode, isSplitMode, panelWidth, splitConfig, handleResize, handleSplitToggle, handleToggleMinimize, handleTogglePromptDock, windowWidth, windowHeight, handleWindowResize, bubbleQuadrant, isBubbleOnRightSide, chatPositionStyle, handleBubbleOffsetChange, handleResizeStart, handleResizeEnd, chatAnimationOrigin, isDragging, get wasOpenBeforeDrag() {
|
|
463
500
|
return wasOpenBeforeDrag;
|
|
464
501
|
}, set wasOpenBeforeDrag(v) {
|
|
465
502
|
wasOpenBeforeDrag = v;
|
|
466
|
-
}, handleDragStart, handleDragEnd,
|
|
503
|
+
}, handleDragStart, handleDragEnd, ChatPanel, SelectHint, Trigger };
|
|
467
504
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
468
505
|
return __returned__;
|
|
469
506
|
}
|
|
470
507
|
}));
|
|
471
|
-
import { renderSlot as _renderSlot, withCtx as _withCtx, createSlots as _createSlots,
|
|
472
|
-
const _hoisted_1 = {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
};
|
|
477
|
-
const _hoisted_2 = { class: "opencode-chat-content" };
|
|
478
|
-
const _hoisted_3 = { class: "opencode-tooltip-tag" };
|
|
479
|
-
const _hoisted_4 = { class: "opencode-tooltip-file" };
|
|
480
|
-
const _hoisted_5 = {
|
|
481
|
-
key: 0,
|
|
508
|
+
import { renderSlot as _renderSlot, withCtx as _withCtx, createSlots as _createSlots, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, createVNode as _createVNode, vShow as _vShow, normalizeStyle as _normalizeStyle, withDirectives as _withDirectives, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, Teleport as _Teleport, normalizeClass as _normalizeClass } from "vue";
|
|
509
|
+
const _hoisted_1 = { class: "opencode-tooltip-tag" };
|
|
510
|
+
const _hoisted_2 = { class: "opencode-tooltip-file" };
|
|
511
|
+
const _hoisted_3 = {
|
|
512
|
+
key: 1,
|
|
482
513
|
class: "opencode-dialog-overlay"
|
|
483
514
|
};
|
|
484
|
-
const
|
|
515
|
+
const _hoisted_4 = {
|
|
485
516
|
class: "opencode-dialog",
|
|
486
517
|
role: "alertdialog",
|
|
487
518
|
"aria-modal": "true"
|
|
488
519
|
};
|
|
489
|
-
const
|
|
490
|
-
const
|
|
491
|
-
const
|
|
520
|
+
const _hoisted_5 = { class: "opencode-dialog-content" };
|
|
521
|
+
const _hoisted_6 = { class: "opencode-dialog-message" };
|
|
522
|
+
const _hoisted_7 = {
|
|
492
523
|
key: 0,
|
|
493
524
|
class: "opencode-page-notification",
|
|
494
525
|
role: "alert"
|
|
@@ -500,9 +531,10 @@ function __vue_render__(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
500
531
|
class: _normalizeClass($setup.containerClasses)
|
|
501
532
|
},
|
|
502
533
|
[
|
|
503
|
-
|
|
534
|
+
!$setup.isSplitMode ? (_openBlock(), _createBlock(
|
|
504
535
|
$setup["Trigger"],
|
|
505
536
|
{
|
|
537
|
+
key: 0,
|
|
506
538
|
ref: "triggerRef",
|
|
507
539
|
onDragStart: $setup.handleDragStart,
|
|
508
540
|
onDragEnd: $setup.handleDragEnd
|
|
@@ -521,116 +553,94 @@ function __vue_render__(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
521
553
|
]),
|
|
522
554
|
1536
|
|
523
555
|
/* NEED_PATCH, DYNAMIC_SLOTS */
|
|
524
|
-
),
|
|
525
|
-
|
|
526
|
-
"
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
]),
|
|
558
|
-
key: "2"
|
|
559
|
-
} : void 0
|
|
560
|
-
]),
|
|
561
|
-
1024
|
|
562
|
-
/* DYNAMIC_SLOTS */
|
|
563
|
-
),
|
|
564
|
-
$setup.notificationVisible && $setup.notificationMode === "widget" ? (_openBlock(), _createElementBlock(
|
|
565
|
-
"div",
|
|
566
|
-
_hoisted_1,
|
|
567
|
-
_toDisplayString($setup.notificationMessage),
|
|
568
|
-
1
|
|
569
|
-
/* TEXT */
|
|
570
|
-
)) : _createCommentVNode("v-if", true),
|
|
571
|
-
_createElementVNode("div", _hoisted_2, [
|
|
572
|
-
_createVNode($setup["SessionList"], null, {
|
|
573
|
-
empty: _withCtx(() => [
|
|
574
|
-
_renderSlot(_ctx.$slots, "sessions-empty", {}, () => [
|
|
575
|
-
_cache[0] || (_cache[0] = _createElementVNode(
|
|
576
|
-
"div",
|
|
577
|
-
{ class: "opencode-session-empty" },
|
|
578
|
-
"\u6682\u65E0\u4F1A\u8BDD",
|
|
579
|
-
-1
|
|
580
|
-
/* CACHED */
|
|
581
|
-
))
|
|
582
|
-
])
|
|
583
|
-
]),
|
|
584
|
-
_: 3
|
|
585
|
-
/* FORWARDED */
|
|
586
|
-
}),
|
|
587
|
-
_createVNode(
|
|
588
|
-
$setup["Frame"],
|
|
589
|
-
{ ref: "frameRef" },
|
|
590
|
-
_createSlots({
|
|
591
|
-
_: 2
|
|
592
|
-
/* DYNAMIC */
|
|
593
|
-
}, [
|
|
594
|
-
$setup.slots["empty-state"] ? {
|
|
595
|
-
name: "empty-state",
|
|
596
|
-
fn: _withCtx(() => [
|
|
597
|
-
_renderSlot(_ctx.$slots, "empty-state")
|
|
598
|
-
]),
|
|
599
|
-
key: "0"
|
|
600
|
-
} : void 0,
|
|
601
|
-
$setup.slots.loading ? {
|
|
602
|
-
name: "loading",
|
|
603
|
-
fn: _withCtx(() => [
|
|
604
|
-
_renderSlot(_ctx.$slots, "loading")
|
|
605
|
-
]),
|
|
606
|
-
key: "1"
|
|
607
|
-
} : void 0,
|
|
608
|
-
$setup.slots.error ? {
|
|
609
|
-
name: "error",
|
|
610
|
-
fn: _withCtx(() => [
|
|
611
|
-
_renderSlot(_ctx.$slots, "error")
|
|
612
|
-
]),
|
|
613
|
-
key: "2"
|
|
614
|
-
} : void 0,
|
|
615
|
-
$setup.slots.content ? {
|
|
616
|
-
name: "content",
|
|
617
|
-
fn: _withCtx(() => [
|
|
618
|
-
_renderSlot(_ctx.$slots, "content")
|
|
619
|
-
]),
|
|
620
|
-
key: "3"
|
|
621
|
-
} : void 0
|
|
622
|
-
]),
|
|
623
|
-
1536
|
|
624
|
-
/* NEED_PATCH, DYNAMIC_SLOTS */
|
|
625
|
-
),
|
|
626
|
-
_createVNode($setup["SelectedNodes"])
|
|
556
|
+
)) : _createCommentVNode("v-if", true),
|
|
557
|
+
_createVNode($setup["ChatPanel"], {
|
|
558
|
+
ref: "frameRef",
|
|
559
|
+
mode: $setup.effectiveMode,
|
|
560
|
+
open: $props.open,
|
|
561
|
+
minimized: $setup.minimized,
|
|
562
|
+
"position-style": $setup.chatPositionStyle,
|
|
563
|
+
"animation-origin": $setup.chatAnimationOrigin,
|
|
564
|
+
"panel-width": $setup.panelWidth,
|
|
565
|
+
resizable: $setup.splitConfig.resizable,
|
|
566
|
+
"min-width": $setup.splitConfig.minWidth,
|
|
567
|
+
"max-width": $setup.splitConfig.maxWidth,
|
|
568
|
+
"no-transition": $setup.isRestoring,
|
|
569
|
+
dragging: $setup.isDragging,
|
|
570
|
+
"notification-visible": $setup.notificationVisible,
|
|
571
|
+
"notification-message": $setup.notificationMessage,
|
|
572
|
+
"notification-mode": $setup.notificationMode,
|
|
573
|
+
thinking: $props.thinking,
|
|
574
|
+
"resolved-theme": $setup.resolvedTheme,
|
|
575
|
+
onResize: $setup.handleResize,
|
|
576
|
+
onResizeStart: $setup.handleResizeStart,
|
|
577
|
+
onResizeEnd: $setup.handleResizeEnd,
|
|
578
|
+
onToggle: $setup.handleSplitToggle
|
|
579
|
+
}, _createSlots({
|
|
580
|
+
"sessions-empty": _withCtx(() => [
|
|
581
|
+
_renderSlot(_ctx.$slots, "sessions-empty", {}, () => [
|
|
582
|
+
_cache[0] || (_cache[0] = _createElementVNode(
|
|
583
|
+
"div",
|
|
584
|
+
{ class: "opencode-session-empty" },
|
|
585
|
+
"\u6682\u65E0\u4F1A\u8BDD",
|
|
586
|
+
-1
|
|
587
|
+
/* CACHED */
|
|
588
|
+
))
|
|
627
589
|
])
|
|
628
|
-
],
|
|
629
|
-
|
|
630
|
-
/*
|
|
631
|
-
|
|
632
|
-
[
|
|
633
|
-
|
|
590
|
+
]),
|
|
591
|
+
_: 2
|
|
592
|
+
/* DYNAMIC */
|
|
593
|
+
}, [
|
|
594
|
+
$setup.slots["session-toggle-icon"] ? {
|
|
595
|
+
name: "session-toggle-icon",
|
|
596
|
+
fn: _withCtx(() => [
|
|
597
|
+
_renderSlot(_ctx.$slots, "session-toggle-icon")
|
|
598
|
+
]),
|
|
599
|
+
key: "0"
|
|
600
|
+
} : void 0,
|
|
601
|
+
$setup.slots["select-icon"] ? {
|
|
602
|
+
name: "select-icon",
|
|
603
|
+
fn: _withCtx(() => [
|
|
604
|
+
_renderSlot(_ctx.$slots, "select-icon")
|
|
605
|
+
]),
|
|
606
|
+
key: "1"
|
|
607
|
+
} : void 0,
|
|
608
|
+
$setup.slots["close-icon"] ? {
|
|
609
|
+
name: "close-icon",
|
|
610
|
+
fn: _withCtx(() => [
|
|
611
|
+
_renderSlot(_ctx.$slots, "close-icon")
|
|
612
|
+
]),
|
|
613
|
+
key: "2"
|
|
614
|
+
} : void 0,
|
|
615
|
+
$setup.slots["empty-state"] ? {
|
|
616
|
+
name: "empty-state",
|
|
617
|
+
fn: _withCtx(() => [
|
|
618
|
+
_renderSlot(_ctx.$slots, "empty-state")
|
|
619
|
+
]),
|
|
620
|
+
key: "3"
|
|
621
|
+
} : void 0,
|
|
622
|
+
$setup.slots.loading ? {
|
|
623
|
+
name: "loading",
|
|
624
|
+
fn: _withCtx(() => [
|
|
625
|
+
_renderSlot(_ctx.$slots, "loading")
|
|
626
|
+
]),
|
|
627
|
+
key: "4"
|
|
628
|
+
} : void 0,
|
|
629
|
+
$setup.slots.error ? {
|
|
630
|
+
name: "error",
|
|
631
|
+
fn: _withCtx(() => [
|
|
632
|
+
_renderSlot(_ctx.$slots, "error")
|
|
633
|
+
]),
|
|
634
|
+
key: "5"
|
|
635
|
+
} : void 0,
|
|
636
|
+
$setup.slots.content ? {
|
|
637
|
+
name: "content",
|
|
638
|
+
fn: _withCtx(() => [
|
|
639
|
+
_renderSlot(_ctx.$slots, "content")
|
|
640
|
+
]),
|
|
641
|
+
key: "6"
|
|
642
|
+
} : void 0
|
|
643
|
+
]), 1032, ["mode", "open", "minimized", "position-style", "animation-origin", "panel-width", "resizable", "min-width", "max-width", "no-transition", "dragging", "notification-visible", "notification-message", "notification-mode", "thinking", "resolved-theme", "onResize", "onToggle"]),
|
|
634
644
|
_createVNode($setup["SelectHint"]),
|
|
635
645
|
_withDirectives(_createElementVNode(
|
|
636
646
|
"div",
|
|
@@ -653,14 +663,14 @@ function __vue_render__(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
653
663
|
[
|
|
654
664
|
_createElementVNode(
|
|
655
665
|
"div",
|
|
656
|
-
|
|
666
|
+
_hoisted_1,
|
|
657
667
|
_toDisplayString($setup.tooltipContent.description),
|
|
658
668
|
1
|
|
659
669
|
/* TEXT */
|
|
660
670
|
),
|
|
661
671
|
_createElementVNode(
|
|
662
672
|
"div",
|
|
663
|
-
|
|
673
|
+
_hoisted_2,
|
|
664
674
|
_toDisplayString($setup.tooltipContent.fileInfo),
|
|
665
675
|
1
|
|
666
676
|
/* TEXT */
|
|
@@ -671,12 +681,12 @@ function __vue_render__(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
671
681
|
), [
|
|
672
682
|
[_vShow, $setup.tooltipVisible]
|
|
673
683
|
]),
|
|
674
|
-
$setup.dialogVisible ? (_openBlock(), _createElementBlock("div",
|
|
675
|
-
_createElementVNode("div",
|
|
676
|
-
_createElementVNode("div",
|
|
684
|
+
$setup.dialogVisible ? (_openBlock(), _createElementBlock("div", _hoisted_3, [
|
|
685
|
+
_createElementVNode("div", _hoisted_4, [
|
|
686
|
+
_createElementVNode("div", _hoisted_5, [
|
|
677
687
|
_createElementVNode(
|
|
678
688
|
"div",
|
|
679
|
-
|
|
689
|
+
_hoisted_6,
|
|
680
690
|
_toDisplayString($setup.dialogMessage),
|
|
681
691
|
1
|
|
682
692
|
/* TEXT */
|
|
@@ -697,7 +707,7 @@ function __vue_render__(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
697
707
|
(_openBlock(), _createBlock(_Teleport, { to: "body" }, [
|
|
698
708
|
$setup.notificationVisible && $setup.notificationMode === "page" ? (_openBlock(), _createElementBlock(
|
|
699
709
|
"div",
|
|
700
|
-
|
|
710
|
+
_hoisted_7,
|
|
701
711
|
_toDisplayString($setup.notificationMessage),
|
|
702
712
|
1
|
|
703
713
|
/* TEXT */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { OpenCodeWidgetTheme, OpenCodeWidgetSession, OpenCodeSelectedElement, OpenCodeRemoveSelectedPayload, OpenCodeWidgetSessionItem, OpenCodeSelectedElementItem, OpenCodeWidgetProps, OpenCodeWidgetEmits, OpencodeSessionThinkingState, } from "@vite-plugin-opencode-assistant/shared";
|
|
1
|
+
export type { OpenCodeWidgetTheme, OpenCodeWidgetSession, OpenCodeSelectedElement, OpenCodeRemoveSelectedPayload, OpenCodeWidgetSessionItem, OpenCodeSelectedElementItem, OpenCodeWidgetProps, OpenCodeWidgetEmits, OpencodeSessionThinkingState, DisplayMode, SplitModeOptions, } from "@vite-plugin-opencode-assistant/shared";
|
|
2
2
|
export type OpenCodeWidgetThemeLocal = "light" | "dark" | "auto";
|