@pagelines/sdk 1.0.731 → 1.0.733

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 CHANGED
@@ -4629,14 +4629,10 @@ var kr = [
4629
4629
  key: 1,
4630
4630
  class: "i-tabler-arrow-up size-[17px]"
4631
4631
  }, ra = { class: "sr-only" }, ia = {
4632
- key: 2,
4633
- "data-test": "messaging-ai-disclosure",
4634
- class: "mt-2.5 text-center text-[12px] text-theme-300"
4635
- }, aa = {
4636
4632
  key: 3,
4637
4633
  "data-test": "messaging-suggested-prompts",
4638
4634
  class: "mt-5 w-full sm:mx-auto sm:max-w-[720px]"
4639
- }, oa = { class: "flex flex-col gap-2 sm:flex-row sm:flex-wrap sm:items-center sm:justify-center" }, sa = ["disabled", "onClick"], ca = ["aria-expanded"], la = /* @__PURE__ */ x({
4635
+ }, aa = { class: "flex flex-col gap-2 sm:flex-row sm:flex-wrap sm:items-center sm:justify-center" }, oa = ["disabled", "onClick"], sa = ["aria-expanded"], ca = /* @__PURE__ */ x({
4640
4636
  __name: "ElAgentChat",
4641
4637
  props: {
4642
4638
  chatController: {},
@@ -5094,7 +5090,11 @@ var kr = [
5094
5090
  ], 2)]),
5095
5091
  _: 3
5096
5092
  }, 8, ["class"]),
5097
- v("div", { class: S(["left-0 right-0 z-30 px-5 pb-4 pt-3", [z.value.length === 0 || e.centered ? "relative shrink-0" : "absolute bottom-0", K.value ? e.centered ? "bg-theme-25/50" : "bg-gradient-to-t from-theme-0/90 via-theme-0/55 to-transparent" : "bg-gradient-to-t from-black/90 via-black/60 to-transparent"]]) }, [
5093
+ v("div", { class: S(["left-0 right-0 z-30 px-5 pb-4", [
5094
+ z.value.length === 0 || e.centered ? "relative shrink-0" : "absolute bottom-0",
5095
+ e.centered && z.value.length > 0 ? "pt-0" : "pt-3",
5096
+ K.value ? e.centered ? "bg-theme-25/50" : "bg-gradient-to-t from-theme-0/90 via-theme-0/55 to-transparent" : "bg-gradient-to-t from-black/90 via-black/60 to-transparent"
5097
+ ]]) }, [
5098
5098
  Oe.value.length > 0 ? (T(), _("div", {
5099
5099
  key: 0,
5100
5100
  class: S(["flex items-center gap-2 px-2 pb-2 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", e.centered ? "max-w-[720px] mx-auto" : ""])
@@ -5143,6 +5143,11 @@ var kr = [
5143
5143
  "data-test": "messaging-input",
5144
5144
  rows: "1",
5145
5145
  enterkeyhint: "send",
5146
+ inputmode: "text",
5147
+ autocomplete: "off",
5148
+ autocapitalize: "sentences",
5149
+ autocorrect: "on",
5150
+ spellcheck: "true",
5146
5151
  placeholder: Te.value,
5147
5152
  disabled: we.value,
5148
5153
  style: {
@@ -5192,35 +5197,39 @@ var kr = [
5192
5197
  onClick: s[18] || (s[18] = (e) => handleComposerAction())
5193
5198
  }, [Ne.value === "stop" ? (T(), _("i", ta)) : (T(), _("i", na)), v("span", ra, F(Ie.value), 1)], 10, ea))])
5194
5199
  ])], 10, Ui),
5195
- K.value && e.centered && e.scope === "private" ? (T(), _("div", ia, F(e.agent.displayName.value) + " is AI and can make mistakes. ", 1)) : h("", !0),
5196
- z.value.length === 0 && e.suggestedPrompts.length > 0 ? (T(), _("div", aa, [v("div", oa, [(T(!0), _(f, null, A(e.suggestedPrompts, (e, t) => (T(), _("button", {
5200
+ K.value && e.centered && e.scope === "private" ? (T(), _("div", {
5201
+ key: 2,
5202
+ "data-test": "messaging-ai-disclosure",
5203
+ class: S(["mt-2.5 text-center text-[12px] text-theme-300", r.value ? "max-sm:hidden" : ""])
5204
+ }, F(e.agent.displayName.value) + " is AI and can make mistakes. ", 3)) : h("", !0),
5205
+ z.value.length === 0 && e.suggestedPrompts.length > 0 ? (T(), _("div", ia, [v("div", aa, [(T(!0), _(f, null, A(e.suggestedPrompts, (e, t) => (T(), _("button", {
5197
5206
  key: e.id,
5198
5207
  type: "button",
5199
5208
  disabled: we.value,
5200
5209
  "data-test": "messaging-suggested-prompt",
5201
5210
  class: S(["w-full rounded-2xl bg-theme-50 px-4 py-3 text-left text-[14.5px] font-medium transition-colors sm:w-auto sm:rounded-full sm:py-2 sm:text-center sm:text-[14px]", [we.value ? "cursor-not-allowed text-theme-300" : "cursor-pointer text-theme-600 hover:bg-theme-100 hover:text-theme-900", !j.value && t >= 3 ? "max-sm:hidden" : ""]]),
5202
5211
  onClick: (t) => sendSuggestedPrompt(e)
5203
- }, F(e.label), 11, sa))), 128)), e.suggestedPrompts.length > 3 ? (T(), _("button", {
5212
+ }, F(e.label), 11, oa))), 128)), e.suggestedPrompts.length > 3 ? (T(), _("button", {
5204
5213
  key: 0,
5205
5214
  type: "button",
5206
5215
  "data-test": "messaging-suggested-prompts-more",
5207
5216
  "aria-expanded": j.value,
5208
5217
  class: "flex w-full cursor-pointer items-center justify-center gap-1.5 rounded-2xl px-4 py-3 text-[14px] font-medium text-theme-600 ring-1 ring-theme-200 transition-colors hover:bg-theme-50 hover:text-theme-900 sm:hidden",
5209
5218
  onClick: s[19] || (s[19] = (e) => j.value = !j.value)
5210
- }, [te(F(j.value ? "See less" : "See more") + " ", 1), v("i", { class: S(["i-tabler-chevron-down size-4 transition-transform", j.value ? "rotate-180" : ""]) }, null, 2)], 8, ca)) : h("", !0)])])) : h("", !0)
5219
+ }, [te(F(j.value ? "See less" : "See more") + " ", 1), v("i", { class: S(["i-tabler-chevron-down size-4 transition-transform", j.value ? "rotate-180" : ""]) }, null, 2)], 8, sa)) : h("", !0)])])) : h("", !0)
5211
5220
  ], 2)
5212
5221
  ], 2));
5213
5222
  }
5214
- }), ua = { class: "agent-wrap" }, da = {
5223
+ }), la = { class: "agent-wrap" }, ua = {
5215
5224
  key: 0,
5216
5225
  class: "flex items-center justify-center h-full"
5217
- }, fa = {
5226
+ }, da = {
5218
5227
  key: 2,
5219
5228
  class: "flex h-full flex-col items-center justify-center gap-4 px-6 text-center",
5220
5229
  role: "status",
5221
5230
  "aria-live": "polite",
5222
5231
  "data-test": "agent-unavailable"
5223
- }, pa = /* @__PURE__ */ x({
5232
+ }, fa = /* @__PURE__ */ x({
5224
5233
  __name: "AgentWrap",
5225
5234
  props: {
5226
5235
  sdk: {},
@@ -5316,7 +5325,7 @@ var kr = [
5316
5325
  });
5317
5326
  }
5318
5327
  }
5319
- return ie(loadAgent), (t, n) => (T(), _("div", ua, [s.value ? (T(), _("div", da, [v("div", { class: S(["size-6 animate-spin rounded-full border-b-2", i.bare ? "border-theme-400" : "border-white"]) }, null, 2)])) : c.value ? oe(t.$slots, "default", {
5328
+ return ie(loadAgent), (t, n) => (T(), _("div", la, [s.value ? (T(), _("div", ua, [v("div", { class: S(["size-6 animate-spin rounded-full border-b-2", i.bare ? "border-theme-400" : "border-white"]) }, null, 2)])) : c.value ? oe(t.$slots, "default", {
5320
5329
  sdk: se(o),
5321
5330
  agent: c.value,
5322
5331
  context: e.clientContext ?? e.context,
@@ -5324,7 +5333,7 @@ var kr = [
5324
5333
  buttonText: e.buttonText,
5325
5334
  buttonIcon: e.buttonIcon,
5326
5335
  loading: s.value
5327
- }, void 0, void 0, 1) : u.value ? (T(), _("div", fa, [n[0] || (n[0] = v("p", { class: "text-sm font-medium text-theme-600" }, " This assistant is unavailable right now. ", -1)), v("button", {
5336
+ }, void 0, void 0, 1) : u.value ? (T(), _("div", da, [n[0] || (n[0] = v("p", { class: "text-sm font-medium text-theme-600" }, " This assistant is unavailable right now. ", -1)), v("button", {
5328
5337
  type: "button",
5329
5338
  class: "min-h-11 rounded-full bg-theme-900 px-5 text-sm font-semibold text-theme-0 transition-colors hover:bg-theme-700",
5330
5339
  "data-test": "agent-unavailable-retry",
@@ -5333,6 +5342,6 @@ var kr = [
5333
5342
  }
5334
5343
  });
5335
5344
  //#endregion
5336
- export { ke as a, getAgentAvatarUrl as c, AgentChatController as d, ve as f, Pe as i, handleImageError as l, _e as m, la as n, De as o, n as p, ai as r, Te as s, pa as t, parseButtonTemplate as u };
5345
+ export { ke as a, getAgentAvatarUrl as c, AgentChatController as d, ve as f, Pe as i, handleImageError as l, _e as m, ca as n, De as o, n as p, ai as r, Te as s, fa as t, parseButtonTemplate as u };
5337
5346
 
5338
5347
  //# sourceMappingURL=AgentWrap.js.map