@aipanel/ui 1.2.11 → 1.2.13
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/AI-panel-widget/composables/use-inspector.mjs +4 -4
- package/es/AI-panel-widget/composables/use-selection.mjs +4 -4
- package/es/AI-panel-widget/src/components/ChatPanel-sfc.css +1 -1
- package/es/AI-panel-widget/src/components/ChatPanel.vue.d.ts +3 -0
- package/es/AI-panel-widget/src/components/ChatPanel.vue.mjs +13 -4
- package/es/AI-panel-widget/src/components/Frame-sfc.css +1 -1
- package/es/AI-panel-widget/src/components/Header-sfc.css +1 -1
- package/es/AI-panel-widget/src/components/Header.vue.mjs +14 -5
- package/es/AI-panel-widget/src/components/ResizeHandle-sfc.css +1 -1
- package/es/AI-panel-widget/src/components/SelectedBubbles-sfc.css +1 -1
- package/es/AI-panel-widget/src/components/SelectedBubbles.vue.mjs +1 -1
- package/es/AI-panel-widget/src/components/SelectedNodes-sfc.css +1 -1
- package/es/AI-panel-widget/src/components/SessionList-sfc.css +1 -1
- package/es/AI-panel-widget/src/components/SessionList.vue.mjs +86 -67
- package/es/AI-panel-widget/src/context.d.ts +5 -1
- package/es/AI-panel-widget/src/index-sfc.css +1 -1
- package/es/AI-panel-widget/src/index.vue.d.ts +2 -0
- package/es/AI-panel-widget/src/index.vue.mjs +34 -2
- package/es/AI-panel-widget/src/types.d.ts +1 -1
- package/es/env.d.ts +0 -8
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/lib/AI-panel-widget/composables/use-inspector.cjs +4 -4
- package/lib/AI-panel-widget/composables/use-selection.cjs +4 -4
- package/lib/AI-panel-widget/src/components/ChatPanel-sfc.css +1 -1
- package/lib/AI-panel-widget/src/components/ChatPanel.vue.cjs +13 -4
- package/lib/AI-panel-widget/src/components/ChatPanel.vue.d.ts +3 -0
- package/lib/AI-panel-widget/src/components/Frame-sfc.css +1 -1
- package/lib/AI-panel-widget/src/components/Header-sfc.css +1 -1
- package/lib/AI-panel-widget/src/components/Header.vue.cjs +14 -5
- package/lib/AI-panel-widget/src/components/ResizeHandle-sfc.css +1 -1
- package/lib/AI-panel-widget/src/components/SelectedBubbles-sfc.css +1 -1
- package/lib/AI-panel-widget/src/components/SelectedBubbles.vue.cjs +1 -1
- package/lib/AI-panel-widget/src/components/SelectedNodes-sfc.css +1 -1
- package/lib/AI-panel-widget/src/components/SessionList-sfc.css +1 -1
- package/lib/AI-panel-widget/src/components/SessionList.vue.cjs +86 -67
- package/lib/AI-panel-widget/src/context.d.ts +5 -1
- package/lib/AI-panel-widget/src/index-sfc.css +1 -1
- package/lib/AI-panel-widget/src/index.vue.cjs +34 -2
- package/lib/AI-panel-widget/src/index.vue.d.ts +2 -0
- package/lib/AI-panel-widget/src/types.d.ts +1 -1
- package/lib/env.d.ts +0 -8
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/package.json +2 -2
- package/es/AI-panel-widget/src/components/SplitTrigger-sfc.css +0 -1
- package/es/AI-panel-widget/src/components/SplitTrigger.vue.d.ts +0 -18
- package/es/AI-panel-widget/src/components/SplitTrigger.vue.mjs +0 -112
- package/lib/AI-panel-widget/src/components/SplitTrigger-sfc.css +0 -1
- package/lib/AI-panel-widget/src/components/SplitTrigger.vue.cjs +0 -131
- package/lib/AI-panel-widget/src/components/SplitTrigger.vue.d.ts +0 -18
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var SplitTrigger_vue_exports = {};
|
|
19
|
-
__export(SplitTrigger_vue_exports, {
|
|
20
|
-
default: () => SplitTrigger_vue_default
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(SplitTrigger_vue_exports);
|
|
23
|
-
var import_SplitTrigger_sfc = require("./SplitTrigger-sfc.css");
|
|
24
|
-
var import_vue = require("vue");
|
|
25
|
-
var import_vue2 = require("vue");
|
|
26
|
-
var import_vue3 = require("vue");
|
|
27
|
-
const __vue_sfc__ = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
28
|
-
...{
|
|
29
|
-
name: "SplitTrigger"
|
|
30
|
-
},
|
|
31
|
-
__name: "SplitTrigger",
|
|
32
|
-
props: {
|
|
33
|
-
open: { type: Boolean, required: false, default: false },
|
|
34
|
-
thinking: { type: Boolean, required: false, default: false },
|
|
35
|
-
resolvedTheme: { type: String, required: false, default: "light" },
|
|
36
|
-
panelWidth: { type: Number, required: false, default: 500 }
|
|
37
|
-
},
|
|
38
|
-
emits: ["toggle"],
|
|
39
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
40
|
-
__expose();
|
|
41
|
-
const props = __props;
|
|
42
|
-
const emit = __emit;
|
|
43
|
-
const buttonClasses = (0, import_vue2.computed)(() => [
|
|
44
|
-
"aipanel-split-trigger",
|
|
45
|
-
{
|
|
46
|
-
open: props.open,
|
|
47
|
-
thinking: props.thinking,
|
|
48
|
-
"aipanel-theme-dark": props.resolvedTheme === "dark"
|
|
49
|
-
}
|
|
50
|
-
]);
|
|
51
|
-
const buttonStyle = (0, import_vue2.computed)(() => {
|
|
52
|
-
if (props.open) {
|
|
53
|
-
return {
|
|
54
|
-
right: `${props.panelWidth}px`
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
return {};
|
|
58
|
-
});
|
|
59
|
-
const handleClick = () => {
|
|
60
|
-
emit("toggle");
|
|
61
|
-
};
|
|
62
|
-
const __returned__ = { props, emit, buttonClasses, buttonStyle, handleClick };
|
|
63
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
64
|
-
return __returned__;
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
const _hoisted_1 = ["aria-expanded"];
|
|
68
|
-
const _hoisted_2 = { class: "aipanel-split-trigger-icon" };
|
|
69
|
-
const _hoisted_3 = {
|
|
70
|
-
key: 0,
|
|
71
|
-
viewBox: "0 0 24 24",
|
|
72
|
-
width: "16",
|
|
73
|
-
height: "16",
|
|
74
|
-
fill: "none",
|
|
75
|
-
stroke: "currentColor",
|
|
76
|
-
"stroke-width": "2"
|
|
77
|
-
};
|
|
78
|
-
const _hoisted_4 = {
|
|
79
|
-
key: 1,
|
|
80
|
-
viewBox: "0 0 24 24",
|
|
81
|
-
width: "16",
|
|
82
|
-
height: "16",
|
|
83
|
-
fill: "none",
|
|
84
|
-
stroke: "currentColor",
|
|
85
|
-
"stroke-width": "2"
|
|
86
|
-
};
|
|
87
|
-
const _hoisted_5 = {
|
|
88
|
-
key: 0,
|
|
89
|
-
class: "aipanel-split-thinking-indicator"
|
|
90
|
-
};
|
|
91
|
-
function __vue_render__(_ctx, _cache, $props, $setup, $data, $options) {
|
|
92
|
-
return (0, import_vue3.openBlock)(), (0, import_vue3.createElementBlock)("button", {
|
|
93
|
-
class: (0, import_vue3.normalizeClass)($setup.buttonClasses),
|
|
94
|
-
style: (0, import_vue3.normalizeStyle)($setup.buttonStyle),
|
|
95
|
-
type: "button",
|
|
96
|
-
"aria-expanded": $props.open,
|
|
97
|
-
"aria-label": "\u6253\u5F00 AI \u52A9\u624B",
|
|
98
|
-
onClick: $setup.handleClick
|
|
99
|
-
}, [
|
|
100
|
-
(0, import_vue3.createElementVNode)("span", _hoisted_2, [
|
|
101
|
-
$props.open ? ((0, import_vue3.openBlock)(), (0, import_vue3.createElementBlock)("svg", _hoisted_3, [..._cache[0] || (_cache[0] = [
|
|
102
|
-
(0, import_vue3.createElementVNode)(
|
|
103
|
-
"path",
|
|
104
|
-
{
|
|
105
|
-
d: "M9 18l6-6-6-6",
|
|
106
|
-
"stroke-linecap": "round",
|
|
107
|
-
"stroke-linejoin": "round"
|
|
108
|
-
},
|
|
109
|
-
null,
|
|
110
|
-
-1
|
|
111
|
-
/* CACHED */
|
|
112
|
-
)
|
|
113
|
-
])])) : ((0, import_vue3.openBlock)(), (0, import_vue3.createElementBlock)("svg", _hoisted_4, [..._cache[1] || (_cache[1] = [
|
|
114
|
-
(0, import_vue3.createElementVNode)(
|
|
115
|
-
"path",
|
|
116
|
-
{
|
|
117
|
-
d: "M15 18l-6-6 6-6",
|
|
118
|
-
"stroke-linecap": "round",
|
|
119
|
-
"stroke-linejoin": "round"
|
|
120
|
-
},
|
|
121
|
-
null,
|
|
122
|
-
-1
|
|
123
|
-
/* CACHED */
|
|
124
|
-
)
|
|
125
|
-
])]))
|
|
126
|
-
]),
|
|
127
|
-
$props.thinking ? ((0, import_vue3.openBlock)(), (0, import_vue3.createElementBlock)("span", _hoisted_5)) : (0, import_vue3.createCommentVNode)("v-if", true)
|
|
128
|
-
], 14, _hoisted_1);
|
|
129
|
-
}
|
|
130
|
-
__vue_sfc__.render = __vue_render__;
|
|
131
|
-
var SplitTrigger_vue_default = __vue_sfc__;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
open?: boolean;
|
|
3
|
-
thinking?: boolean;
|
|
4
|
-
resolvedTheme?: "light" | "dark";
|
|
5
|
-
panelWidth?: number;
|
|
6
|
-
};
|
|
7
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
|
-
toggle: () => any;
|
|
9
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
-
onToggle?: (() => any) | undefined;
|
|
11
|
-
}>, {
|
|
12
|
-
resolvedTheme: "light" | "dark";
|
|
13
|
-
thinking: boolean;
|
|
14
|
-
open: boolean;
|
|
15
|
-
panelWidth: number;
|
|
16
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
-
declare const _default: typeof __VLS_export;
|
|
18
|
-
export default _default;
|