@bcc-code/vue-bcc-chat-ui 5.2.8 → 5.2.10
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 +15 -14
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/package.json +1 -1
package/dist/vue-bcc-chat-ui.js
CHANGED
|
@@ -12382,7 +12382,7 @@ function nE() {
|
|
|
12382
12382
|
}(pm)), pm.exports;
|
|
12383
12383
|
}
|
|
12384
12384
|
var X = nE();
|
|
12385
|
-
/*! @license DOMPurify 3.2.
|
|
12385
|
+
/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */
|
|
12386
12386
|
const {
|
|
12387
12387
|
entries: gM,
|
|
12388
12388
|
setPrototypeOf: pA,
|
|
@@ -12413,6 +12413,7 @@ uv || (uv = function(t, r) {
|
|
|
12413
12413
|
const A2 = mo(Array.prototype.forEach), Qje = mo(Array.prototype.lastIndexOf), CA = mo(Array.prototype.pop), gc = mo(Array.prototype.push), Jje = mo(Array.prototype.splice), R2 = mo(String.prototype.toLowerCase), Cm = mo(String.prototype.toString), mA = mo(String.prototype.match), Ec = mo(String.prototype.replace), qje = mo(String.prototype.indexOf), Zje = mo(String.prototype.trim), ca = mo(Object.prototype.hasOwnProperty), go = mo(RegExp.prototype.test), pc = Xje(TypeError);
|
|
12414
12414
|
function mo(e) {
|
|
12415
12415
|
return function(t) {
|
|
12416
|
+
t instanceof RegExp && (t.lastIndex = 0);
|
|
12416
12417
|
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
12417
12418
|
n[a - 1] = arguments[a];
|
|
12418
12419
|
return lv(e, t, n);
|
|
@@ -12530,7 +12531,7 @@ const mc = {
|
|
|
12530
12531
|
function mM() {
|
|
12531
12532
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : dFe();
|
|
12532
12533
|
const t = (H) => mM(H);
|
|
12533
|
-
if (t.version = "3.2.
|
|
12534
|
+
if (t.version = "3.2.5", t.removed = [], !e || !e.document || e.document.nodeType !== mc.document || !e.Element)
|
|
12534
12535
|
return t.isSupported = !1, t;
|
|
12535
12536
|
let {
|
|
12536
12537
|
document: r
|
|
@@ -12717,7 +12718,7 @@ function mM() {
|
|
|
12717
12718
|
if (Jn(re.uponSanitizeElement, B, {
|
|
12718
12719
|
tagName: fe,
|
|
12719
12720
|
allowedTags: ve
|
|
12720
|
-
}), B.hasChildNodes() && !sr(B.firstElementChild) && go(/<[/\w]/g, B.innerHTML) && go(/<[/\w]/g, B.textContent) || B.nodeType === mc.progressingInstruction || $e && B.nodeType === mc.comment && go(/<[/\w]/g, B.data))
|
|
12721
|
+
}), B.hasChildNodes() && !sr(B.firstElementChild) && go(/<[/\w!]/g, B.innerHTML) && go(/<[/\w!]/g, B.textContent) || B.nodeType === mc.progressingInstruction || $e && B.nodeType === mc.comment && go(/<[/\w]/g, B.data))
|
|
12721
12722
|
return Yt(B), !0;
|
|
12722
12723
|
if (!ve[fe] || Pe[fe]) {
|
|
12723
12724
|
if (!Pe[fe] && f(fe) && (Se.tagNameCheck instanceof RegExp && go(Se.tagNameCheck, fe) || Se.tagNameCheck instanceof Function && Se.tagNameCheck(fe)))
|
|
@@ -78233,7 +78234,7 @@ class pat {
|
|
|
78233
78234
|
}
|
|
78234
78235
|
Bi = new WeakMap(), ci = new WeakMap(), gl = new WeakMap(), uu = new WeakMap(), Fo = new WeakSet(), Ch = function(t, r, n) {
|
|
78235
78236
|
const a = structuredClone(n) ?? {};
|
|
78236
|
-
a.chatVersion = "5.2.
|
|
78237
|
+
a.chatVersion = "5.2.10";
|
|
78237
78238
|
const i = {
|
|
78238
78239
|
logUid: window.crypto.randomUUID(),
|
|
78239
78240
|
correlationUid: xr(this, gl),
|
|
@@ -80085,21 +80086,21 @@ async function wit() {
|
|
|
80085
80086
|
const h = (u == null ? void 0 : u.getMetadata()) ?? {};
|
|
80086
80087
|
let C = null;
|
|
80087
80088
|
try {
|
|
80088
|
-
C = await I1(u.getGuid());
|
|
80089
|
+
u != null && u.getHasJoined() && (C = await I1(u.getGuid()));
|
|
80089
80090
|
} catch (S) {
|
|
80090
80091
|
rn.error("could not fetch mute settings", { error: S });
|
|
80091
80092
|
}
|
|
80092
80093
|
let E = null;
|
|
80093
|
-
if (s) {
|
|
80094
|
-
|
|
80095
|
-
|
|
80096
|
-
|
|
80097
|
-
|
|
80098
|
-
|
|
80099
|
-
}
|
|
80100
|
-
rn.error("failed to fetch conversation's last message from Cometchat", { error: A }), s = new X.CometChat.TextMessage("", "Couldn't load the message", "");
|
|
80101
|
-
}
|
|
80094
|
+
if (s && s.getType() == g.CometChatUIKitConstants.MessageTypes.groupMember && h.isChannel) {
|
|
80095
|
+
d = d.filter((A) => A !== g.CometChatUIKitConstants.MessageTypes.groupMember);
|
|
80096
|
+
let S = new X.CometChat.MessagesRequestBuilder().setLimit(1).setTypes(d).setGUID(s.getReceiverId()).hideReplies(!0).build();
|
|
80097
|
+
try {
|
|
80098
|
+
s = (await S.fetchPrevious())[0];
|
|
80099
|
+
} catch (A) {
|
|
80100
|
+
rn.error("failed to fetch conversation's last message from Cometchat", { error: A }), s = new X.CometChat.TextMessage("", "Couldn't load the message", "");
|
|
80102
80101
|
}
|
|
80102
|
+
}
|
|
80103
|
+
if (s) {
|
|
80103
80104
|
E = {
|
|
80104
80105
|
text: xS(s, !0, !0),
|
|
80105
80106
|
type: s.getType(),
|