easemob-chat-uikit 1.7.0-beta.4 → 1.7.0-beta.5

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/ChatUI.esm.js CHANGED
@@ -359,7 +359,7 @@ const cue = (t) => /* @__PURE__ */ at.createElement("svg", { width: 24, height:
359
359
  );
360
360
  switch (m) {
361
361
  case "sending":
362
- A = b == "icon" ? /* @__PURE__ */ Y.createElement("img", { alt: "sending", src: iue }) : "\u53D1\u9001\u4E2D";
362
+ A = b == "icon" ? /* @__PURE__ */ Y.createElement("img", { alt: "sending", src: iue, crossOrigin: "anonymous" }) : "\u53D1\u9001\u4E2D";
363
363
  break;
364
364
  case "sent":
365
365
  A = b == "icon" ? /* @__PURE__ */ Y.createElement(bn, { type: "CHECK", width: 20, height: 20 }) : "\u5DF2\u53D1\u9001";
@@ -17246,7 +17246,7 @@ const DG = (t, n) => {
17246
17246
  alt: E,
17247
17247
  children: y,
17248
17248
  draggable: S,
17249
- crossOrigin: R,
17249
+ crossOrigin: R = "anonymous",
17250
17250
  srcSet: w,
17251
17251
  isOnline: P,
17252
17252
  presence: _,
@@ -17319,7 +17319,7 @@ const DG = (t, n) => {
17319
17319
  title: _.text ? /* @__PURE__ */ Y.createElement("div", { className: `${F}-presence-text` }, _.text) : null,
17320
17320
  placement: "bottom"
17321
17321
  },
17322
- /* @__PURE__ */ Y.createElement("div", { className: `${F}-presence-wrap`, style: pe }, Y.isValidElement(_.icon) ? _.icon : /* @__PURE__ */ Y.createElement("img", { alt: _.text, src: _.icon }))
17322
+ /* @__PURE__ */ Y.createElement("div", { className: `${F}-presence-wrap`, style: pe }, Y.isValidElement(_.icon) ? _.icon : /* @__PURE__ */ Y.createElement("img", { alt: _.text, src: _.icon, crossOrigin: R }))
17323
17323
  )
17324
17324
  );
17325
17325
  }, jfe = Y.forwardRef(DG);
@@ -43858,7 +43858,7 @@ function Er(t) {
43858
43858
  return (t == null ? void 0 : t.type) !== "notice" && (t == null ? void 0 : t.type) !== "recall" && (t = t, t.chatType == "groupChat" || t.chatType == "chatRoom" || t.from == en.client.user ? n = t.to : n = t.from || ""), n;
43859
43859
  }
43860
43860
  function T0e({ src: t = "", dataKey: n = "", alt: o = "" }) {
43861
- return `<span><img src=${t} data-key=${n} alt=${o} width="20" height="20" style="vertical-align: middle" /></span>`;
43861
+ return `<span><img crossOrigin="anonymous" src=${t} data-key=${n} alt=${o} width="20" height="20" style="vertical-align: middle" /></span>`;
43862
43862
  }
43863
43863
  const FG = (t) => {
43864
43864
  if (t === void 0)
@@ -61116,7 +61116,7 @@ const N2e = (t) => {
61116
61116
  return null;
61117
61117
  if (n === "website") {
61118
61118
  const g = m == null ? void 0 : m[0];
61119
- f = /* @__PURE__ */ Y.createElement(Y.Fragment, null, /* @__PURE__ */ Y.createElement("div", null, g && /* @__PURE__ */ Y.createElement("img", { src: g, alt: "image", className: "message-text-url-img" })), /* @__PURE__ */ Y.createElement(
61119
+ f = /* @__PURE__ */ Y.createElement(Y.Fragment, null, /* @__PURE__ */ Y.createElement("div", null, g && /* @__PURE__ */ Y.createElement("img", { src: g, alt: "image", className: "message-text-url-img", crossOrigin: "anonymous" })), /* @__PURE__ */ Y.createElement(
61120
61120
  "div",
61121
61121
  {
61122
61122
  className: vn("message-text-url-info", {
@@ -62150,7 +62150,8 @@ const Gc = (t) => {
62150
62150
  height: 20,
62151
62151
  style: {
62152
62152
  verticalAlign: "text-top"
62153
- }
62153
+ },
62154
+ crossOrigin: "anonymous"
62154
62155
  }
62155
62156
  )
62156
62157
  );
@@ -62484,7 +62485,7 @@ const fY = (t) => {
62484
62485
  x = /* @__PURE__ */ Y.createElement("div", { className: `${c}-summary-desc` }, /* @__PURE__ */ Y.createElement(bn, { type: "WAVE3", color: "#75828A", width: 16, height: 16 }), /* @__PURE__ */ Y.createElement("span", null, u("audio"), ":"), _.length, '"');
62485
62486
  break;
62486
62487
  case "img":
62487
- x = /* @__PURE__ */ Y.createElement("div", { className: `${c}-summary-desc` }, /* @__PURE__ */ Y.createElement("span", null, u("image")), /* @__PURE__ */ Y.createElement("div", { className: `${c}-summary-desc-img` }, /* @__PURE__ */ Y.createElement("img", { src: _.thumb || _.url })));
62488
+ x = /* @__PURE__ */ Y.createElement("div", { className: `${c}-summary-desc` }, /* @__PURE__ */ Y.createElement("span", null, u("image")), /* @__PURE__ */ Y.createElement("div", { className: `${c}-summary-desc-img` }, /* @__PURE__ */ Y.createElement("img", { src: _.thumb || _.url, crossOrigin: "anonymous" })));
62488
62489
  break;
62489
62490
  case "combine":
62490
62491
  x = /* @__PURE__ */ Y.createElement("div", { className: `${c}-summary-desc` }, /* @__PURE__ */ Y.createElement(bn, { type: "TIME", color: "#75828A", width: 16, height: 16 }), /* @__PURE__ */ Y.createElement("span", null, u("chatHistory")));
@@ -62830,6 +62831,7 @@ const iAe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0A
62830
62831
  /* @__PURE__ */ Y.createElement(
62831
62832
  "img",
62832
62833
  {
62834
+ crossOrigin: "anonymous",
62833
62835
  className: "message-image-big",
62834
62836
  src: o,
62835
62837
  alt: l
@@ -63917,7 +63919,8 @@ const W3 = (t) => {
63917
63919
  U(!0);
63918
63920
  },
63919
63921
  height: 75,
63920
- src: P.thumb || P.url
63922
+ src: P.thumb || P.url,
63923
+ crossOrigin: "anonymous"
63921
63924
  }
63922
63925
  )), /* @__PURE__ */ Y.createElement(
63923
63926
  pY,
@@ -64042,7 +64045,8 @@ const Zy = 25, gY = (t) => {
64042
64045
  src: new URL((/* @__PURE__ */ Object.assign({ "/module/assets/reactions/U+1F308.png": T0, "/module/assets/reactions/U+1F31C.png": y0, "/module/assets/reactions/U+1F31F.png": b0, "/module/assets/reactions/U+1F381.png": A0, "/module/assets/reactions/U+1F382.png": C0, "/module/assets/reactions/U+1F389.png": S0, "/module/assets/reactions/U+1F44D.png": O0, "/module/assets/reactions/U+1F44E.png": I0, "/module/assets/reactions/U+1F44F.png": R0, "/module/assets/reactions/U+1F47F.png": _0, "/module/assets/reactions/U+1F48B.png": N0, "/module/assets/reactions/U+1F490.png": w0, "/module/assets/reactions/U+1F494.png": P0, "/module/assets/reactions/U+1F495.png": D0, "/module/assets/reactions/U+1F4A9.png": M0, "/module/assets/reactions/U+1F600.png": x0, "/module/assets/reactions/U+1F604.png": L0, "/module/assets/reactions/U+1F607.png": k0, "/module/assets/reactions/U+1F609.png": U0, "/module/assets/reactions/U+1F60D.png": j0, "/module/assets/reactions/U+1F60E.png": H0, "/module/assets/reactions/U+1F610.png": B0, "/module/assets/reactions/U+1F618.png": F0, "/module/assets/reactions/U+1F620.png": G0, "/module/assets/reactions/U+1F621.png": z0, "/module/assets/reactions/U+1F62B.png": V0, "/module/assets/reactions/U+1F62C.png": Y0, "/module/assets/reactions/U+1F62D.png": X0, "/module/assets/reactions/U+1F62E.png": W0, "/module/assets/reactions/U+1F631.png": q0, "/module/assets/reactions/U+1F633.png": K0, "/module/assets/reactions/U+1F637.png": J0, "/module/assets/reactions/U+1F641.png": Z0, "/module/assets/reactions/U+1F644.png": Q0, "/module/assets/reactions/U+1F64C.png": $0, "/module/assets/reactions/U+1F64F.png": em, "/module/assets/reactions/U+1F910.png": tm, "/module/assets/reactions/U+1F912.png": nm, "/module/assets/reactions/U+1F913.png": rm, "/module/assets/reactions/U+1F91D.png": im, "/module/assets/reactions/U+1F922.png": am, "/module/assets/reactions/U+1F928.png": om, "/module/assets/reactions/U+1F92A.png": sm, "/module/assets/reactions/U+1F92C.png": cm, "/module/assets/reactions/U+1F971.png": um, "/module/assets/reactions/U+1F973.png": lm, "/module/assets/reactions/U+1F974.png": dm, "/module/assets/reactions/U+1F97A.png": hm, "/module/assets/reactions/U+2600.png": fm, "/module/assets/reactions/U+263A.png": pm, "/module/assets/reactions/U+2764.png": mm, "/module/assets/reactions/U+2B50.png": gm }))[`/module/assets/reactions/${H}`], self.location).href,
64043
64046
  alt: j,
64044
64047
  width: Zy,
64045
- height: Zy
64048
+ height: Zy,
64049
+ crossOrigin: "anonymous"
64046
64050
  }
64047
64051
  ) : H : /* @__PURE__ */ Y.createElement(
64048
64052
  "img",
@@ -64050,7 +64054,8 @@ const Zy = 25, gY = (t) => {
64050
64054
  src: new URL((/* @__PURE__ */ Object.assign({ "/module/assets/reactions/U+1F308.png": T0, "/module/assets/reactions/U+1F31C.png": y0, "/module/assets/reactions/U+1F31F.png": b0, "/module/assets/reactions/U+1F381.png": A0, "/module/assets/reactions/U+1F382.png": C0, "/module/assets/reactions/U+1F389.png": S0, "/module/assets/reactions/U+1F44D.png": O0, "/module/assets/reactions/U+1F44E.png": I0, "/module/assets/reactions/U+1F44F.png": R0, "/module/assets/reactions/U+1F47F.png": _0, "/module/assets/reactions/U+1F48B.png": N0, "/module/assets/reactions/U+1F490.png": w0, "/module/assets/reactions/U+1F494.png": P0, "/module/assets/reactions/U+1F495.png": D0, "/module/assets/reactions/U+1F4A9.png": M0, "/module/assets/reactions/U+1F600.png": x0, "/module/assets/reactions/U+1F604.png": L0, "/module/assets/reactions/U+1F607.png": k0, "/module/assets/reactions/U+1F609.png": U0, "/module/assets/reactions/U+1F60D.png": j0, "/module/assets/reactions/U+1F60E.png": H0, "/module/assets/reactions/U+1F610.png": B0, "/module/assets/reactions/U+1F618.png": F0, "/module/assets/reactions/U+1F620.png": G0, "/module/assets/reactions/U+1F621.png": z0, "/module/assets/reactions/U+1F62B.png": V0, "/module/assets/reactions/U+1F62C.png": Y0, "/module/assets/reactions/U+1F62D.png": X0, "/module/assets/reactions/U+1F62E.png": W0, "/module/assets/reactions/U+1F631.png": q0, "/module/assets/reactions/U+1F633.png": K0, "/module/assets/reactions/U+1F637.png": J0, "/module/assets/reactions/U+1F641.png": Z0, "/module/assets/reactions/U+1F644.png": Q0, "/module/assets/reactions/U+1F64C.png": $0, "/module/assets/reactions/U+1F64F.png": em, "/module/assets/reactions/U+1F910.png": tm, "/module/assets/reactions/U+1F912.png": nm, "/module/assets/reactions/U+1F913.png": rm, "/module/assets/reactions/U+1F91D.png": im, "/module/assets/reactions/U+1F922.png": am, "/module/assets/reactions/U+1F928.png": om, "/module/assets/reactions/U+1F92A.png": sm, "/module/assets/reactions/U+1F92C.png": cm, "/module/assets/reactions/U+1F971.png": um, "/module/assets/reactions/U+1F973.png": lm, "/module/assets/reactions/U+1F974.png": dm, "/module/assets/reactions/U+1F97A.png": hm, "/module/assets/reactions/U+2600.png": fm, "/module/assets/reactions/U+263A.png": pm, "/module/assets/reactions/U+2764.png": mm, "/module/assets/reactions/U+2B50.png": gm }))[`/module/assets/reactions/${H}`], self.location).href,
64051
64055
  alt: j,
64052
64056
  width: Zy,
64053
- height: Zy
64057
+ height: Zy,
64058
+ crossOrigin: "anonymous"
64054
64059
  }
64055
64060
  )));
64056
64061
  }), F = (U) => {
@@ -64364,7 +64369,8 @@ const WH = 18, dAe = (t) => {
64364
64369
  {
64365
64370
  src: new URL((/* @__PURE__ */ Object.assign({ "/module/assets/reactions/U+1F308.png": T0, "/module/assets/reactions/U+1F31C.png": y0, "/module/assets/reactions/U+1F31F.png": b0, "/module/assets/reactions/U+1F381.png": A0, "/module/assets/reactions/U+1F382.png": C0, "/module/assets/reactions/U+1F389.png": S0, "/module/assets/reactions/U+1F44D.png": O0, "/module/assets/reactions/U+1F44E.png": I0, "/module/assets/reactions/U+1F44F.png": R0, "/module/assets/reactions/U+1F47F.png": _0, "/module/assets/reactions/U+1F48B.png": N0, "/module/assets/reactions/U+1F490.png": w0, "/module/assets/reactions/U+1F494.png": P0, "/module/assets/reactions/U+1F495.png": D0, "/module/assets/reactions/U+1F4A9.png": M0, "/module/assets/reactions/U+1F600.png": x0, "/module/assets/reactions/U+1F604.png": L0, "/module/assets/reactions/U+1F607.png": k0, "/module/assets/reactions/U+1F609.png": U0, "/module/assets/reactions/U+1F60D.png": j0, "/module/assets/reactions/U+1F60E.png": H0, "/module/assets/reactions/U+1F610.png": B0, "/module/assets/reactions/U+1F618.png": F0, "/module/assets/reactions/U+1F620.png": G0, "/module/assets/reactions/U+1F621.png": z0, "/module/assets/reactions/U+1F62B.png": V0, "/module/assets/reactions/U+1F62C.png": Y0, "/module/assets/reactions/U+1F62D.png": X0, "/module/assets/reactions/U+1F62E.png": W0, "/module/assets/reactions/U+1F631.png": q0, "/module/assets/reactions/U+1F633.png": K0, "/module/assets/reactions/U+1F637.png": J0, "/module/assets/reactions/U+1F641.png": Z0, "/module/assets/reactions/U+1F644.png": Q0, "/module/assets/reactions/U+1F64C.png": $0, "/module/assets/reactions/U+1F64F.png": em, "/module/assets/reactions/U+1F910.png": tm, "/module/assets/reactions/U+1F912.png": nm, "/module/assets/reactions/U+1F913.png": rm, "/module/assets/reactions/U+1F91D.png": im, "/module/assets/reactions/U+1F922.png": am, "/module/assets/reactions/U+1F928.png": om, "/module/assets/reactions/U+1F92A.png": sm, "/module/assets/reactions/U+1F92C.png": cm, "/module/assets/reactions/U+1F971.png": um, "/module/assets/reactions/U+1F973.png": lm, "/module/assets/reactions/U+1F974.png": dm, "/module/assets/reactions/U+1F97A.png": hm, "/module/assets/reactions/U+2600.png": fm, "/module/assets/reactions/U+263A.png": pm, "/module/assets/reactions/U+2764.png": mm, "/module/assets/reactions/U+2B50.png": gm }))[`/module/assets/reactions/${w}`], self.location).href,
64366
64371
  width: WH,
64367
- height: WH
64372
+ height: WH,
64373
+ crossOrigin: "anonymous"
64368
64374
  }
64369
64375
  ),
64370
64376
  /* @__PURE__ */ Y.createElement("span", { className: `${f}-count` }, A)
@@ -67121,7 +67127,7 @@ const RAe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAMCAYAAAC5tzfZA
67121
67127
  b && (b == null || b(a));
67122
67128
  }, v = () => {
67123
67129
  };
67124
- return /* @__PURE__ */ Y.createElement("div", { className: f, onClick: g, key: l }, /* @__PURE__ */ Y.createElement("img", { src: c, alt: l }), !A && /* @__PURE__ */ Y.createElement("div", { className: `${h}-title` }, l), /* @__PURE__ */ Y.createElement("div", { className: `${h}-subtitle` }, /* @__PURE__ */ Y.createElement("img", { src: RAe, alt: "coin" }), " ", p), A && /* @__PURE__ */ Y.createElement("div", { className: `${h}-button`, onClick: (m == null ? void 0 : m.onClick) || v }, m == null ? void 0 : m.text));
67130
+ return /* @__PURE__ */ Y.createElement("div", { className: f, onClick: g, key: l }, /* @__PURE__ */ Y.createElement("img", { src: c, alt: l, crossOrigin: "anonymous" }), !A && /* @__PURE__ */ Y.createElement("div", { className: `${h}-title` }, l), /* @__PURE__ */ Y.createElement("div", { className: `${h}-subtitle` }, /* @__PURE__ */ Y.createElement("img", { src: RAe, alt: "coin", crossOrigin: "anonymous" }), " ", p), A && /* @__PURE__ */ Y.createElement("div", { className: `${h}-button`, onClick: (m == null ? void 0 : m.onClick) || v }, m == null ? void 0 : m.text));
67125
67131
  }, NAe = {
67126
67132
  gifts: [
67127
67133
  {
@@ -67344,7 +67350,7 @@ const SY = [
67344
67350
  _e && _e.rangeCount === 1 && (Ce.focus(), de = _e.getRangeAt(0), Te = new Image(), Te.src = ke, Te.setAttribute("data-key", Ae), Te.setAttribute("width", "16px"), Te.setAttribute("height", "16px"), Te.draggable = !1, Te.className = "message-text-emoji", Te.setAttribute("title", Ae.replace("[", "").replace("]", "")), Te.setAttribute("style", "vertical-align: middle"), de.deleteContents(), de.insertNode(Te), de.collapse(!1), _e.removeAllRanges(), _e.addRange(de));
67345
67351
  } else
67346
67352
  "selection" in document && (Ce.focus(), (de = document.selection.createRange()).pasteHTML(
67347
- '<img class="emoj-insert" draggable="false" data-key="' + Ae + '" title="' + Ae.replace("[", "").replace("]", "") + '" src="' + ke + '">'
67353
+ '<img class="emoj-insert" crossOrigin="anonymous" draggable="false" data-key="' + Ae + '" title="' + Ae.replace("[", "").replace("]", "") + '" src="' + ke + '">'
67348
67354
  ), Ce.focus());
67349
67355
  const Pe = wAe(Ce.innerHTML).trim();
67350
67356
  b.current.setTextareaValue(Pe);
@@ -117973,7 +117979,15 @@ const yRe = (t) => {
117973
117979
  if (p.customEvent != "CHATROOMUIKITGIFT")
117974
117980
  return;
117975
117981
  let Pe = ((_e = p == null ? void 0 : p.customExts) == null ? void 0 : _e.chatroom_uikit_gift) || {};
117976
- return typeof Pe == "string" && (Pe = JSON.parse(Pe)), /* @__PURE__ */ Y.createElement("div", { className: `${a}-gift` }, u("sent"), /* @__PURE__ */ Y.createElement("div", null, u(Pe.giftName)), /* @__PURE__ */ Y.createElement("img", { src: Pe.giftIcon, alt: "", className: `${a}-gift-img` }), /* @__PURE__ */ Y.createElement("div", { className: `${a}-gift-number` }, "x", Pe.giftCount || 1));
117982
+ return typeof Pe == "string" && (Pe = JSON.parse(Pe)), /* @__PURE__ */ Y.createElement("div", { className: `${a}-gift` }, u("sent"), /* @__PURE__ */ Y.createElement("div", null, u(Pe.giftName)), /* @__PURE__ */ Y.createElement(
117983
+ "img",
117984
+ {
117985
+ src: Pe.giftIcon,
117986
+ alt: "",
117987
+ className: `${a}-gift-img`,
117988
+ crossOrigin: "anonymous"
117989
+ }
117990
+ ), /* @__PURE__ */ Y.createElement("div", { className: `${a}-gift-number` }, "x", Pe.giftCount || 1));
117977
117991
  }, Ne = ((Te = p == null ? void 0 : p.ext) == null ? void 0 : Te.chatroom_uikit_userInfo) || {}, xe = (Pe) => new Date(Pe).getHours() + ":" + (new Date(Pe).getMinutes() < 10 ? `0${new Date(Pe).getMinutes()}` : new Date(Pe).getMinutes());
117978
117992
  return /* @__PURE__ */ Y.createElement(
117979
117993
  "div",