@pagelines/sdk 1.0.732 → 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 +20 -15
- package/dist/AgentWrap.js.map +1 -1
- package/package.json +1 -1
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
|
-
},
|
|
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: {},
|
|
@@ -5147,6 +5143,11 @@ var kr = [
|
|
|
5147
5143
|
"data-test": "messaging-input",
|
|
5148
5144
|
rows: "1",
|
|
5149
5145
|
enterkeyhint: "send",
|
|
5146
|
+
inputmode: "text",
|
|
5147
|
+
autocomplete: "off",
|
|
5148
|
+
autocapitalize: "sentences",
|
|
5149
|
+
autocorrect: "on",
|
|
5150
|
+
spellcheck: "true",
|
|
5150
5151
|
placeholder: Te.value,
|
|
5151
5152
|
disabled: we.value,
|
|
5152
5153
|
style: {
|
|
@@ -5196,35 +5197,39 @@ var kr = [
|
|
|
5196
5197
|
onClick: s[18] || (s[18] = (e) => handleComposerAction())
|
|
5197
5198
|
}, [Ne.value === "stop" ? (T(), _("i", ta)) : (T(), _("i", na)), v("span", ra, F(Ie.value), 1)], 10, ea))])
|
|
5198
5199
|
])], 10, Ui),
|
|
5199
|
-
K.value && e.centered && e.scope === "private" ? (T(), _("div",
|
|
5200
|
-
|
|
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", {
|
|
5201
5206
|
key: e.id,
|
|
5202
5207
|
type: "button",
|
|
5203
5208
|
disabled: we.value,
|
|
5204
5209
|
"data-test": "messaging-suggested-prompt",
|
|
5205
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" : ""]]),
|
|
5206
5211
|
onClick: (t) => sendSuggestedPrompt(e)
|
|
5207
|
-
}, F(e.label), 11,
|
|
5212
|
+
}, F(e.label), 11, oa))), 128)), e.suggestedPrompts.length > 3 ? (T(), _("button", {
|
|
5208
5213
|
key: 0,
|
|
5209
5214
|
type: "button",
|
|
5210
5215
|
"data-test": "messaging-suggested-prompts-more",
|
|
5211
5216
|
"aria-expanded": j.value,
|
|
5212
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",
|
|
5213
5218
|
onClick: s[19] || (s[19] = (e) => j.value = !j.value)
|
|
5214
|
-
}, [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,
|
|
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)
|
|
5215
5220
|
], 2)
|
|
5216
5221
|
], 2));
|
|
5217
5222
|
}
|
|
5218
|
-
}),
|
|
5223
|
+
}), la = { class: "agent-wrap" }, ua = {
|
|
5219
5224
|
key: 0,
|
|
5220
5225
|
class: "flex items-center justify-center h-full"
|
|
5221
|
-
},
|
|
5226
|
+
}, da = {
|
|
5222
5227
|
key: 2,
|
|
5223
5228
|
class: "flex h-full flex-col items-center justify-center gap-4 px-6 text-center",
|
|
5224
5229
|
role: "status",
|
|
5225
5230
|
"aria-live": "polite",
|
|
5226
5231
|
"data-test": "agent-unavailable"
|
|
5227
|
-
},
|
|
5232
|
+
}, fa = /* @__PURE__ */ x({
|
|
5228
5233
|
__name: "AgentWrap",
|
|
5229
5234
|
props: {
|
|
5230
5235
|
sdk: {},
|
|
@@ -5320,7 +5325,7 @@ var kr = [
|
|
|
5320
5325
|
});
|
|
5321
5326
|
}
|
|
5322
5327
|
}
|
|
5323
|
-
return ie(loadAgent), (t, n) => (T(), _("div",
|
|
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", {
|
|
5324
5329
|
sdk: se(o),
|
|
5325
5330
|
agent: c.value,
|
|
5326
5331
|
context: e.clientContext ?? e.context,
|
|
@@ -5328,7 +5333,7 @@ var kr = [
|
|
|
5328
5333
|
buttonText: e.buttonText,
|
|
5329
5334
|
buttonIcon: e.buttonIcon,
|
|
5330
5335
|
loading: s.value
|
|
5331
|
-
}, void 0, void 0, 1) : u.value ? (T(), _("div",
|
|
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", {
|
|
5332
5337
|
type: "button",
|
|
5333
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",
|
|
5334
5339
|
"data-test": "agent-unavailable-retry",
|
|
@@ -5337,6 +5342,6 @@ var kr = [
|
|
|
5337
5342
|
}
|
|
5338
5343
|
});
|
|
5339
5344
|
//#endregion
|
|
5340
|
-
export { ke as a, getAgentAvatarUrl as c, AgentChatController as d, ve as f, Pe as i, handleImageError as l, _e as m,
|
|
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 };
|
|
5341
5346
|
|
|
5342
5347
|
//# sourceMappingURL=AgentWrap.js.map
|