@pagelines/sdk 1.0.846 → 1.0.848
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/AgentWrap.js +7 -4
- package/dist/AgentWrap.js.map +1 -1
- package/dist/sdk.css +1 -1
- package/package.json +1 -1
package/dist/AgentWrap.js
CHANGED
|
@@ -5153,8 +5153,8 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
|
|
|
5153
5153
|
}
|
|
5154
5154
|
async function endVoiceConversation() {
|
|
5155
5155
|
if (!qe.value) return;
|
|
5156
|
-
let t = Je.value
|
|
5157
|
-
qe.value = !1, Ye.value = void 0, await A(), await t, i.value?.focus(), await e.chatController?.refreshMessages();
|
|
5156
|
+
let t = Je.value;
|
|
5157
|
+
qe.value = !1, Ye.value = void 0, await A(), await new Promise((e) => setTimeout(e, 80)), await t?.end(), window.matchMedia("(pointer: coarse)").matches || i.value?.focus(), await e.chatController?.refreshMessages();
|
|
5158
5158
|
}
|
|
5159
5159
|
let J = v(() => e.variant === "light"), rt = v(() => J.value ? "bg-gradient-to-r from-transparent via-theme-300/70 to-transparent" : "bg-gradient-to-r from-transparent via-white/15 to-transparent"), X = v(() => J.value ? "text-theme-300" : "text-white/30");
|
|
5160
5160
|
ne(async () => {
|
|
@@ -5163,7 +5163,10 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
|
|
|
5163
5163
|
e.chatController?.voiceRecorder?.teardown();
|
|
5164
5164
|
});
|
|
5165
5165
|
async function sendMessage() {
|
|
5166
|
-
!e.chatController || Pe.value !== "send" || (i.value && (i.value.style.height = "auto", window.matchMedia("(pointer: coarse)").matches ? i.value.blur()
|
|
5166
|
+
!e.chatController || Pe.value !== "send" || (i.value && (i.value.style.height = "auto", window.matchMedia("(pointer: coarse)").matches ? (i.value.blur(), requestAnimationFrame(() => {
|
|
5167
|
+
let e = document.activeElement;
|
|
5168
|
+
e && (e.tagName === "TEXTAREA" || e.tagName === "INPUT") && e.blur();
|
|
5169
|
+
})) : i.value.focus()), r.value?.pin(), await e.chatController.sendComposerMessage());
|
|
5167
5170
|
}
|
|
5168
5171
|
async function handleCardAction(t) {
|
|
5169
5172
|
!e.chatController || Se.value || (r.value?.pin(), await e.chatController.sendChatMessage(t));
|
|
@@ -5715,7 +5718,7 @@ var Mi = ["data-voice-state", "data-voice-activity"], Ni = ["src"], Pi = {
|
|
|
5715
5718
|
let n = e.__vccOpts || e;
|
|
5716
5719
|
for (let [e, r] of t) n[e] = r;
|
|
5717
5720
|
return n;
|
|
5718
|
-
}, "default"), Ka = /*#__PURE__*/ Ga(Wa, [["__scopeId", "data-v-
|
|
5721
|
+
}, "default"), Ka = /*#__PURE__*/ Ga(Wa, [["__scopeId", "data-v-96b5c96e"]]), qa = { class: "agent-wrap" }, Ja = {
|
|
5719
5722
|
key: 0,
|
|
5720
5723
|
class: "flex items-center justify-center h-full"
|
|
5721
5724
|
}, Ya = {
|