@blueking/ai-blueking 2.1.0-beta.2 → 2.1.0-beta.4
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/vue2/index.es.min.js +40 -12
- package/dist/vue2/index.iife.min.js +5 -5
- package/dist/vue2/index.umd.min.js +5 -5
- package/dist/vue2/style.css +1 -1
- package/dist/vue2.d.ts.map +1 -1
- package/dist/vue3/index.iife.min.js +4 -4
- package/dist/vue3/index.umd.min.js +1 -1
- package/dist/vue3/style.css +1 -1
- package/package.json +2 -2
|
@@ -23676,21 +23676,32 @@ var _A = ["src"], vA = /* @__PURE__ */ x({
|
|
|
23676
23676
|
},
|
|
23677
23677
|
emits: ["click"],
|
|
23678
23678
|
setup(e, { expose: t, emit: n }) {
|
|
23679
|
-
let r =
|
|
23680
|
-
|
|
23681
|
-
|
|
23679
|
+
let r = e, i = W(!1), a = n;
|
|
23680
|
+
de(() => r.shortcut?.icon, () => {
|
|
23681
|
+
i.value = !1;
|
|
23682
|
+
}, { immediate: !0 });
|
|
23683
|
+
let s = (e) => {
|
|
23684
|
+
a("click", e);
|
|
23685
|
+
}, c = le("el");
|
|
23682
23686
|
return t({ get $el() {
|
|
23683
|
-
return
|
|
23687
|
+
return c.value;
|
|
23684
23688
|
} }), (t, n) => (B(), h("button", {
|
|
23685
23689
|
ref_key: "el",
|
|
23686
|
-
ref:
|
|
23690
|
+
ref: c,
|
|
23687
23691
|
class: P(["ai-shortcut-btn", { "is-menu-mode": e.mode === "menu" }]),
|
|
23688
|
-
onClick: n[
|
|
23689
|
-
}, [U(t.$slots, "default", {}, () => [e.shortcut?.icon ? (B(), h(o, { key: 0 }, [typeof e.shortcut.icon == "string" ? (B(), h(o, { key: 0 }, [e.shortcut.icon.startsWith("http") ? (B(), h(
|
|
23692
|
+
onClick: n[1] ||= (t) => s(e.shortcut)
|
|
23693
|
+
}, [U(t.$slots, "default", {}, () => [e.shortcut?.icon ? (B(), h(o, { key: 0 }, [typeof e.shortcut.icon == "string" ? (B(), h(o, { key: 0 }, [e.shortcut.icon.startsWith("http") ? (B(), h(o, { key: 0 }, [i.value ? (B(), p(K(KE), {
|
|
23694
|
+
key: 1,
|
|
23695
|
+
class: "ai-shortcut-btn-icon"
|
|
23696
|
+
})) : (B(), h("img", {
|
|
23690
23697
|
key: 0,
|
|
23691
23698
|
class: "ai-common-icon ai-shortcut-btn-icon",
|
|
23692
|
-
src: e.shortcut.icon
|
|
23693
|
-
|
|
23699
|
+
src: e.shortcut.icon,
|
|
23700
|
+
onError: n[0] ||= (e) => i.value = !0
|
|
23701
|
+
}, null, 40, _A))], 64)) : (B(), h("span", {
|
|
23702
|
+
key: 1,
|
|
23703
|
+
class: P(e.shortcut.icon)
|
|
23704
|
+
}, null, 2))], 64)) : (B(), p(ie(typeof e.shortcut?.icon == "function" ? e.shortcut.icon?.(T) : e.shortcut.icon), {
|
|
23694
23705
|
key: 1,
|
|
23695
23706
|
class: "ai-shortcut-btn-icon"
|
|
23696
23707
|
}))], 64)) : e.shortcut && !e.shortcut.components?.length ? (B(), p(K(KE), {
|
|
@@ -49451,7 +49462,7 @@ var wH = ["src"], TH = {
|
|
|
49451
49462
|
label: X("挂起")
|
|
49452
49463
|
},
|
|
49453
49464
|
{
|
|
49454
|
-
color: "#
|
|
49465
|
+
color: "#4D4F56",
|
|
49455
49466
|
key: "pending",
|
|
49456
49467
|
label: X("待执行")
|
|
49457
49468
|
}
|
|
@@ -50393,7 +50404,7 @@ var wH = ["src"], TH = {
|
|
|
50393
50404
|
"collapseChange"
|
|
50394
50405
|
], ["update:selectedShortcut", "update:cite"]),
|
|
50395
50406
|
setup(e, { expose: t, emit: n }) {
|
|
50396
|
-
oe((e) => ({
|
|
50407
|
+
oe((e) => ({ v56243ed0: O.value }));
|
|
50397
50408
|
let r = tT.TabPanel, i = e, a = d(() => ({
|
|
50398
50409
|
collapsible: !1,
|
|
50399
50410
|
immediate: !0,
|
|
@@ -55603,7 +55614,10 @@ var cJ = { class: "draggable-container-content" }, lJ = /* @__PURE__ */ xe(/* @_
|
|
|
55603
55614
|
"updateSize",
|
|
55604
55615
|
"updatePositionAndSize",
|
|
55605
55616
|
"setCiteText",
|
|
55606
|
-
"focusInput"
|
|
55617
|
+
"focusInput",
|
|
55618
|
+
"getChatHelper",
|
|
55619
|
+
"selectShortcut",
|
|
55620
|
+
"sendShortcut"
|
|
55607
55621
|
], gJ = wq(pJ, {
|
|
55608
55622
|
name: "AIBluekingV2",
|
|
55609
55623
|
props: {
|
|
@@ -55802,6 +55816,15 @@ var cJ = { class: "draggable-container-content" }, lJ = /* @__PURE__ */ xe(/* @_
|
|
|
55802
55816
|
},
|
|
55803
55817
|
focusInput() {
|
|
55804
55818
|
console.warn("AIBluekingV2: focusInput method not ready");
|
|
55819
|
+
},
|
|
55820
|
+
getChatHelper() {
|
|
55821
|
+
return console.warn("AIBluekingV2: getChatHelper method not ready"), null;
|
|
55822
|
+
},
|
|
55823
|
+
selectShortcut() {
|
|
55824
|
+
console.warn("AIBluekingV2: selectShortcut method not ready");
|
|
55825
|
+
},
|
|
55826
|
+
sendShortcut() {
|
|
55827
|
+
return console.warn("AIBluekingV2: sendShortcut method not ready"), Promise.resolve();
|
|
55805
55828
|
}
|
|
55806
55829
|
}
|
|
55807
55830
|
}), _J = [
|
|
@@ -55826,6 +55849,7 @@ var cJ = { class: "draggable-container-content" }, lJ = /* @__PURE__ */ xe(/* @_
|
|
|
55826
55849
|
"setCiteText",
|
|
55827
55850
|
"switchSession",
|
|
55828
55851
|
"selectShortcut",
|
|
55852
|
+
"sendShortcut",
|
|
55829
55853
|
"enterShareMode",
|
|
55830
55854
|
"exitShareMode",
|
|
55831
55855
|
"getChatHelper",
|
|
@@ -55898,6 +55922,10 @@ var cJ = { class: "draggable-container-content" }, lJ = /* @__PURE__ */ xe(/* @_
|
|
|
55898
55922
|
sessionCode: {
|
|
55899
55923
|
type: String,
|
|
55900
55924
|
default: void 0
|
|
55925
|
+
},
|
|
55926
|
+
resizeProps: {
|
|
55927
|
+
type: Object,
|
|
55928
|
+
default: void 0
|
|
55901
55929
|
}
|
|
55902
55930
|
},
|
|
55903
55931
|
emitNames: [..._J],
|