@bcc-code/vue-bcc-chat-ui 7.1.57 → 7.1.58
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/vue-bcc-chat-ui.js +17 -23
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/package.json +1 -1
package/dist/vue-bcc-chat-ui.js
CHANGED
|
@@ -3826,12 +3826,12 @@ function Is(e) {
|
|
|
3826
3826
|
ALLOWED_TAGS: Os,
|
|
3827
3827
|
ALLOWED_ATTR: Ds,
|
|
3828
3828
|
ALLOW_DATA_ATTR: !1
|
|
3829
|
-
}).replace(
|
|
3829
|
+
}).replace(/^(<br\s*\/?>\s*)+|(<br\s*\/?>\s*)+$/gi, "").trim(), n);
|
|
3830
3830
|
}
|
|
3831
3831
|
function Ls(e, t) {
|
|
3832
3832
|
if (!e) return "";
|
|
3833
3833
|
let n = Ht(kt(e), t ?? {}).replace(/<br\s*\/?>/gi, "\n").replace(ks, (e) => e.startsWith("</") ? "\n" : "");
|
|
3834
|
-
return (new DOMParser().parseFromString(`<div>${n}</div>`, "text/html").body.textContent ?? "").replace(/\u00a0/g, " ").
|
|
3834
|
+
return (new DOMParser().parseFromString(`<div>${n}</div>`, "text/html").body.textContent ?? "").replace(/\u00a0/g, " ").trim();
|
|
3835
3835
|
}
|
|
3836
3836
|
function Rs(e, t) {
|
|
3837
3837
|
if (!e) return "";
|
|
@@ -7305,28 +7305,22 @@ function Ed(e, t, r, i) {
|
|
|
7305
7305
|
}
|
|
7306
7306
|
function ce(e) {
|
|
7307
7307
|
if (!S(e)) {
|
|
7308
|
-
if (!i.isTouchUI?.()) {
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
return;
|
|
7322
|
-
}
|
|
7323
|
-
if (t === "k") {
|
|
7324
|
-
e.preventDefault(), W();
|
|
7325
|
-
return;
|
|
7326
|
-
}
|
|
7308
|
+
if (!i.isTouchUI?.() && (e.ctrlKey || e.metaKey) && !e.shiftKey) {
|
|
7309
|
+
let t = e.key.toLowerCase();
|
|
7310
|
+
if (t === "b") {
|
|
7311
|
+
e.preventDefault(), ae("bold");
|
|
7312
|
+
return;
|
|
7313
|
+
}
|
|
7314
|
+
if (t === "i") {
|
|
7315
|
+
e.preventDefault(), ae("italic");
|
|
7316
|
+
return;
|
|
7317
|
+
}
|
|
7318
|
+
if (t === "u") {
|
|
7319
|
+
e.preventDefault(), ae("underline");
|
|
7320
|
+
return;
|
|
7327
7321
|
}
|
|
7328
|
-
if (
|
|
7329
|
-
e.preventDefault(),
|
|
7322
|
+
if (t === "k") {
|
|
7323
|
+
e.preventDefault(), W();
|
|
7330
7324
|
return;
|
|
7331
7325
|
}
|
|
7332
7326
|
}
|