@bcc-code/vue-bcc-chat-ui 7.0.38 → 7.0.40
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/style.css +1 -1
- package/dist/vue-bcc-chat-ui.js +20 -23
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/package.json +1 -1
package/dist/vue-bcc-chat-ui.js
CHANGED
|
@@ -8318,57 +8318,54 @@ var fd = { class: "w-full" }, pd = {
|
|
|
8318
8318
|
function h(e) {
|
|
8319
8319
|
return { aspectRatio: String(m(e)) };
|
|
8320
8320
|
}
|
|
8321
|
-
return (n, d) => (x(), a("div", qd, [(x(!0), a(e, null, w(t.message.attachments, (
|
|
8322
|
-
key: `${t.message.id}-${e.name}`,
|
|
8323
|
-
class: "w-full"
|
|
8324
|
-
}, [e.kind === "image" && e.url ? (x(), r(A(L), {
|
|
8321
|
+
return (n, d) => (x(), a("div", qd, [(x(!0), a(e, null, w(t.message.attachments, (n) => (x(), a(e, { key: `${t.message.id}-${n.name}` }, [n.kind === "image" && n.url ? (x(), r(A(L), {
|
|
8325
8322
|
key: 0,
|
|
8326
8323
|
preview: "",
|
|
8327
|
-
src:
|
|
8328
|
-
alt:
|
|
8329
|
-
"image-class": "bg-elevation-surface-raised-default rounded-
|
|
8330
|
-
class: "rounded-lg"
|
|
8331
|
-
}, null, 8, ["src", "alt"])) :
|
|
8324
|
+
src: n.url,
|
|
8325
|
+
alt: n.name,
|
|
8326
|
+
"image-class": "bg-elevation-surface-raised-default object-contain rounded-sm max-h-96 max-w-96",
|
|
8327
|
+
class: "mx-auto rounded-lg"
|
|
8328
|
+
}, null, 8, ["src", "alt"])) : n.kind === "video" && n.url ? (x(), a("div", {
|
|
8332
8329
|
key: 1,
|
|
8333
8330
|
class: "attachment-media-bleed media-surface attachment-media-frame group relative rounded-xl",
|
|
8334
|
-
style: _(h(
|
|
8331
|
+
style: _(h(n))
|
|
8335
8332
|
}, [o("video", Jd, [o("source", {
|
|
8336
|
-
src:
|
|
8337
|
-
type:
|
|
8333
|
+
src: n.url,
|
|
8334
|
+
type: n.mimeType || void 0
|
|
8338
8335
|
}, null, 8, Yd)]), o("button", {
|
|
8339
8336
|
type: "button",
|
|
8340
8337
|
tabindex: "-1",
|
|
8341
8338
|
class: "border-inverse text-inverse absolute top-2 right-2 inline-flex size-6 items-center justify-center rounded-full border bg-(--color-background-inverse-subtle-default) backdrop-blur",
|
|
8342
8339
|
"aria-label": A(l)("openVideoViewer"),
|
|
8343
|
-
onClick: (
|
|
8340
|
+
onClick: (e) => s("openMedia", n)
|
|
8344
8341
|
}, [(x(), r(E(A(au)), {
|
|
8345
|
-
class: "size-
|
|
8342
|
+
class: "size-4",
|
|
8346
8343
|
"aria-hidden": "true"
|
|
8347
|
-
}))], 8, Xd)], 4)) :
|
|
8344
|
+
}))], 8, Xd)], 4)) : n.kind === "audio" && n.url ? (x(), a("button", {
|
|
8348
8345
|
key: 2,
|
|
8349
8346
|
type: "button",
|
|
8350
8347
|
class: "flex w-full items-center justify-between gap-3 rounded-2xl px-3 py-2 text-left text-sm transition hover:opacity-90",
|
|
8351
|
-
onClick: (
|
|
8352
|
-
}, [o("span", Qd, [d[0] ||= o("span", { class: "bg-elevation-surface-hovered text-default inline-flex h-8 w-8 items-center justify-center rounded-full" }, " ♪ ", -1), c(" " + O(A(l)("audioMessage")), 1)])], 8, Zd)) :
|
|
8348
|
+
onClick: (e) => s("openMedia", n)
|
|
8349
|
+
}, [o("span", Qd, [d[0] ||= o("span", { class: "bg-elevation-surface-hovered text-default inline-flex h-8 w-8 items-center justify-center rounded-full" }, " ♪ ", -1), c(" " + O(A(l)("audioMessage")), 1)])], 8, Zd)) : n.url ? (x(), a("a", {
|
|
8353
8350
|
key: 3,
|
|
8354
|
-
href:
|
|
8351
|
+
href: n.url,
|
|
8355
8352
|
target: "_blank",
|
|
8356
8353
|
rel: "noreferrer",
|
|
8357
8354
|
class: "flex items-center justify-between gap-3 rounded-2xl px-3 py-2 text-sm no-underline transition hover:opacity-90"
|
|
8358
|
-
}, [o("span", ef, [o("span", tf, [(x(), r(E(f(
|
|
8355
|
+
}, [o("span", ef, [o("span", tf, [(x(), r(E(f(n)), {
|
|
8359
8356
|
class: "size-5",
|
|
8360
8357
|
"aria-hidden": "true"
|
|
8361
|
-
}))]), o("span", nf, O(
|
|
8358
|
+
}))]), o("span", nf, O(n.name), 1)]), o("span", rf, O(u(n.size)), 1)], 8, $d)) : (x(), a("div", af, [o("span", of, [o("span", sf, [(x(), r(E(f(n)), {
|
|
8362
8359
|
class: "size-5",
|
|
8363
8360
|
"aria-hidden": "true"
|
|
8364
|
-
}))]), o("span", cf, O(
|
|
8361
|
+
}))]), o("span", cf, O(n.name), 1)]), o("span", lf, O(u(n.size) || A(l)("queued")), 1)]))], 64))), 128)), p(t.message) ? (x(), r(Kd, {
|
|
8365
8362
|
key: 0,
|
|
8366
8363
|
text: t.message.text,
|
|
8367
8364
|
"is-own": t.message.isOwn,
|
|
8368
8365
|
"text-class": "whitespace-normal wrap-break-word body-md text-default"
|
|
8369
8366
|
}, null, 8, ["text", "is-own"])) : i("", !0)]));
|
|
8370
8367
|
}
|
|
8371
|
-
}), [["__scopeId", "data-v-
|
|
8368
|
+
}), [["__scopeId", "data-v-c82e820d"]]), pf = { class: "message-status" }, mf = { key: 0 }, hf = /* @__PURE__ */ bu(/* @__PURE__ */ u({
|
|
8372
8369
|
__name: "MessageDeliveryStatus",
|
|
8373
8370
|
props: { message: {} },
|
|
8374
8371
|
setup(e) {
|
|
@@ -8675,7 +8672,7 @@ var fd = { class: "w-full" }, pd = {
|
|
|
8675
8672
|
]), l(hf, { message: t.message }, null, 8, ["message"])])
|
|
8676
8673
|
], 34)], 64))], 10, zf));
|
|
8677
8674
|
}
|
|
8678
|
-
}), [["__scopeId", "data-v-
|
|
8675
|
+
}), [["__scopeId", "data-v-cb4a4183"]]), Hf = [
|
|
8679
8676
|
"👍",
|
|
8680
8677
|
"❤️",
|
|
8681
8678
|
"🔥",
|