@pagelines/sdk 1.0.925 → 1.0.927

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/BotWrap.js CHANGED
@@ -4604,7 +4604,7 @@ var ri = [
4604
4604
  }) : [];
4605
4605
  });
4606
4606
  return (t, n) => (R(), O("div", {
4607
- class: "chat-msg-rich break-words text-[14px] leading-[1.55] @sm/chat:text-[15px] @sm/chat:leading-[1.5]",
4607
+ class: "chat-msg-rich break-words text-[14px] leading-[1.55] @sm/chat:text-[15px] @sm/chat:leading-[1.5] @lg/chat:text-[15.5px] @lg/chat:leading-[1.55]",
4608
4608
  onErrorCapture: onRichTextAssetError
4609
4609
  }, [(R(!0), O(y, null, W(d.value, (t) => (R(), O(y, { key: t.key }, [t.kind === "markdown" ? (R(), O("div", {
4610
4610
  key: 0,
@@ -5685,11 +5685,12 @@ var ya = ["data-voice-state", "data-voice-activity"], ba = ["src"], xa = {
5685
5685
  M(Ii, {
5686
5686
  ref_key: "chatScroller",
5687
5687
  ref: o,
5688
+ "data-test": "messaging-scroller",
5688
5689
  inert: at.value,
5689
5690
  "aria-hidden": at.value ? "true" : void 0,
5690
- class: F(I.value.length === 0 ? "flex-none" : "flex-1")
5691
+ class: F([I.value.length === 0 ? "flex-none" : "flex-1", e.centered && !e.showHeader && I.value.length > 0 ? "mt-16" : ""])
5691
5692
  }, {
5692
- default: pe(() => [k("div", { class: F([I.value.length === 0 ? "flex flex-col items-center justify-center px-3 py-4" : e.centered ? "pt-20 pb-5 px-3 @lg/chat:px-8 space-y-2" : "pt-4 pb-[120px] px-3 @lg/chat:px-8 space-y-2", e.centered ? I.value.length === 0 ? "max-w-[900px] mx-auto w-full" : "max-w-[640px] @5xl/chat:max-w-[720px] mx-auto w-full" : ""]) }, [
5693
+ default: pe(() => [k("div", { class: F([I.value.length === 0 ? "flex flex-col items-center justify-center px-3 py-4" : e.centered ? "pt-4 pb-5 px-3 @lg/chat:px-8 space-y-2" : "pt-4 pb-[120px] px-3 @lg/chat:px-8 space-y-2", e.centered ? I.value.length === 0 ? "max-w-[900px] mx-auto w-full" : "max-w-[640px] @5xl/chat:max-w-[720px] mx-auto w-full" : ""]) }, [
5693
5694
  I.value.length === 0 && !g.value ? (R(), O("div", Ra, [se(t.$slots, "empty-heading", {
5694
5695
  bot: e.bot,
5695
5696
  isLight: Z.value
@@ -5854,7 +5855,7 @@ var ya = ["data-voice-state", "data-voice-activity"], ba = ["src"], xa = {
5854
5855
  messageRenderParts(t).length ? (R(), O("div", {
5855
5856
  key: 2,
5856
5857
  "data-test": "messaging-message-content",
5857
- class: F(t.sender === "user" ? Z.value ? "rounded-[14px] px-4 py-2.5 bg-theme-50 text-theme-900" : "rounded-[14px] px-4 py-2.5 bg-white/10 text-white" : Z.value ? "text-theme-800" : "text-white/95")
5858
+ class: F(t.sender === "user" ? Z.value ? "rounded-[14px] px-4 py-2.5 bg-theme-50 text-theme-900" : "rounded-[14px] px-4 py-2.5 bg-white/10 text-white" : Z.value ? "text-theme-900" : "text-white/95")
5858
5859
  }, [(R(!0), O(y, null, W(messageRenderParts(t), (e) => (R(), O(y, { key: e.key }, [e.kind === "text" && e.text ? (R(), O("div", Qa, [M(Ni, {
5859
5860
  text: e.text,
5860
5861
  inverted: t.sender === "user" || !Z.value,
@@ -5943,7 +5944,7 @@ var ya = ["data-voice-state", "data-voice-activity"], ba = ["src"], xa = {
5943
5944
  }, null, 8, ["model", "is-light"])], 8, oo)) : e.kind === "text" && e.content ? (R(), O("div", {
5944
5945
  key: 1,
5945
5946
  "data-test": "messaging-live-text-block",
5946
- class: F(["mb-4", Z.value ? "text-theme-800" : "text-white/95"])
5947
+ class: F(["mb-4", Z.value ? "text-theme-900" : "text-white/95"])
5947
5948
  }, [M(Ni, {
5948
5949
  text: e.content,
5949
5950
  inverted: !Z.value,
@@ -6024,7 +6025,7 @@ var ya = ["data-voice-state", "data-voice-activity"], ba = ["src"], xa = {
6024
6025
  "aria-hidden": at.value ? "true" : void 0,
6025
6026
  class: F(["left-0 right-0 z-30 px-3 @lg/chat:px-8 pb-[max(env(safe-area-inset-bottom),1rem)]", [
6026
6027
  I.value.length === 0 || e.centered ? "relative shrink-0" : "absolute bottom-0",
6027
- e.centered && I.value.length > 0 ? "pt-0 sm:pb-7" : "pt-3",
6028
+ e.centered && I.value.length > 0 ? "pt-0 sm:pb-9" : "pt-3",
6028
6029
  Z.value ? e.centered ? "bg-transparent" : "bg-theme-0" : "bg-gradient-to-t from-black/90 via-black/60 to-transparent"
6029
6030
  ]])
6030
6031
  }, [se(t.$slots, "composer", {}, () => [Oe.value ? (R(), O("div", {
@@ -6094,7 +6095,7 @@ var ya = ["data-voice-state", "data-voice-activity"], ba = ["src"], xa = {
6094
6095
  fontSize: "16px",
6095
6096
  resize: "none"
6096
6097
  },
6097
- class: F(["block w-full bg-transparent leading-snug focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", Z.value ? "text-theme-900 placeholder-theme-400" : "text-white placeholder-white/50"]),
6098
+ class: F(["block w-full bg-transparent leading-[1.5] focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", Z.value ? "text-theme-900 placeholder-theme-400" : "text-white placeholder-white/50"]),
6098
6099
  onKeydown: handleKeydown
6099
6100
  }, null, 42, wo)), [[fe, Ae.value]]), k("div", Eo, [
6100
6101
  k("button", {
@@ -6187,7 +6188,7 @@ var ya = ["data-voice-state", "data-voice-activity"], ba = ["src"], xa = {
6187
6188
  ])) : E("", !0)
6188
6189
  ], 2));
6189
6190
  }
6190
- }), [["__scopeId", "data-v-89d3bf69"]]), Ho = { class: "bot-wrap" }, Uo = {
6191
+ }), [["__scopeId", "data-v-4c8d65fc"]]), Ho = { class: "bot-wrap" }, Uo = {
6191
6192
  key: 0,
6192
6193
  class: "flex items-center justify-center h-full"
6193
6194
  }, Wo = {