@pagelines/sdk 1.0.938 → 1.0.939
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/README.md +0 -3
- package/dist/BotWrap.js +8 -4
- package/dist/BotWrap.js.map +1 -1
- package/dist/bot/ui/ChatComposer.vue.d.ts +2 -0
- package/dist/bot/ui/ChatTurn.vue.d.ts +4 -1
- package/dist/bot/voice/provider.d.ts +0 -2
- package/dist/clients/AuthClient.d.ts +0 -4
- package/dist/provider.js.map +1 -1
- package/dist/sdkClient.js +0 -40
- package/dist/sdkClient.js.map +1 -1
- package/dist/ui/FModal.vue.d.ts +2 -2
- package/dist/widget.js +115 -138
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/BotWrap.js
CHANGED
|
@@ -4714,6 +4714,7 @@ var di = [
|
|
|
4714
4714
|
}, null, -1), O(" Preparing chart… ", -1)])], 4))], 64))), 128))], 34));
|
|
4715
4715
|
}
|
|
4716
4716
|
}), Ui = ["data-composer-action"], Wi = [
|
|
4717
|
+
"enterkeyhint",
|
|
4717
4718
|
"placeholder",
|
|
4718
4719
|
"disabled",
|
|
4719
4720
|
"maxlength"
|
|
@@ -4754,9 +4755,12 @@ var di = [
|
|
|
4754
4755
|
}),
|
|
4755
4756
|
emits: /*@__PURE__*/ j(["submit", "action"], ["update:modelValue"]),
|
|
4756
4757
|
setup(e, { expose: t, emit: n }) {
|
|
4757
|
-
let r = n, i = G(e, "modelValue"), o = B();
|
|
4758
|
+
let r = n, i = G(e, "modelValue"), o = B(), isTouch = () => window.matchMedia("(pointer: coarse)").matches, l = B("send");
|
|
4759
|
+
ie(() => {
|
|
4760
|
+
l.value = isTouch() ? "enter" : "send";
|
|
4761
|
+
});
|
|
4758
4762
|
function onKeydown(e) {
|
|
4759
|
-
e.isComposing || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), r("submit"));
|
|
4763
|
+
e.isComposing || isTouch() || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), r("submit"));
|
|
4760
4764
|
}
|
|
4761
4765
|
function focusField(t) {
|
|
4762
4766
|
e.disabled || t.target instanceof Element && t.target.closest("button, a, textarea") || o.value?.focus();
|
|
@@ -4785,7 +4789,7 @@ var di = [
|
|
|
4785
4789
|
"onUpdate:modelValue": n[0] || (n[0] = (e) => i.value = e),
|
|
4786
4790
|
"data-test": "messaging-input",
|
|
4787
4791
|
rows: "1",
|
|
4788
|
-
enterkeyhint:
|
|
4792
|
+
enterkeyhint: l.value,
|
|
4789
4793
|
inputmode: "text",
|
|
4790
4794
|
autocomplete: "off",
|
|
4791
4795
|
autocapitalize: "sentences",
|
|
@@ -4889,7 +4893,7 @@ var di = [
|
|
|
4889
4893
|
return (t, n) => (R(), w("div", {
|
|
4890
4894
|
class: N(["group/msg flex items-end gap-2", e.own ? "justify-end" : "justify-start"]),
|
|
4891
4895
|
"data-chat-turn": e.own ? "own" : "other"
|
|
4892
|
-
}, [T("div", {
|
|
4896
|
+
}, [oe(t.$slots, "aside"), T("div", {
|
|
4893
4897
|
"data-test": "messaging-message-body",
|
|
4894
4898
|
class: N(e.own ? "min-w-0 ml-3 @sm/chat:ml-[2em]" : "w-full min-w-0 pr-3 @sm/chat:pr-[2em]")
|
|
4895
4899
|
}, [
|