@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 CHANGED
@@ -53,9 +53,6 @@ await sdk.loginWithCode({
53
53
  code: '123456'
54
54
  })
55
55
 
56
- // Google OAuth popup
57
- await sdk.loginWithGoogle()
58
-
59
56
  // Get current user
60
57
  const user = await sdk.getCurrentUser()
61
58
 
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: "send",
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
  }, [