mdm-im-v3 2.0.1 → 2.0.2

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/CHANGELOG.md CHANGED
@@ -71,4 +71,9 @@
71
71
  ## V2.0.1 2026-08-17
72
72
  - 发布mdm-im-v3@2.0.1版本
73
73
  1. 修复H5组件在调用时不渲染页面问题;
74
- 2. 补充License文件。
74
+ 2. 补充License文件。
75
+
76
+ ## V2.0.2 2026-08-17
77
+ - 发布mdm-im-v3@2.0.2版本
78
+ 1. PC端创建群聊时,邀请人员接口更换,人员头像颜色修改;
79
+ 2. PC端会话列表免打扰提示图标位置调整。
@@ -1,8 +1,8 @@
1
1
  import { reactive, computed, ref, watch, nextTick, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, unref, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, createBlock, resolveDynamicComponent } from "vue";
2
2
  import { DocumentDelete, ZoomOut, ZoomIn } from "@element-plus/icons-vue";
3
- import { u as useChatStore } from "./index-Bb8V05H4.js";
3
+ import { u as useChatStore } from "./index-D8yaC3ve.js";
4
4
  import axios from "axios";
5
- import { _ as _export_sfc } from "./index-Bi1CnpxN.js";
5
+ import { _ as _export_sfc } from "./index-HUSyWSoO.js";
6
6
  const _hoisted_1 = { class: "file-preview-box" };
7
7
  const _hoisted_2 = {
8
8
  key: 0,
package/dist/core.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { u, A } from "./index-Bb8V05H4.js";
2
+ import { u, B } from "./index-D8yaC3ve.js";
3
3
  export {
4
4
  u as useChatStore,
5
- A as useMessage
5
+ B as useMessage
6
6
  };
@@ -1,9 +1,9 @@
1
1
  import { computed, reactive, ref, onBeforeMount, watch, resolveComponent, openBlock, createElementBlock, Fragment, renderList, unref, createBlock, withCtx, createElementVNode, createVNode, createSlots, toDisplayString, withModifiers, createCommentVNode, inject, shallowRef, onBeforeUnmount, renderSlot, normalizeClass, normalizeStyle, Teleport, nextTick } from "vue";
2
- import { _ as _export_sfc, u as uploadFiles, a as _imports_0 } from "./index-Bi1CnpxN.js";
2
+ import { _ as _export_sfc, u as uploadFiles, a as _imports_0 } from "./index-HUSyWSoO.js";
3
3
  import { ElMessage } from "element-plus";
4
4
  import { Promotion } from "@element-plus/icons-vue";
5
5
  import { E as Editor } from "./wangeditor-3yO_BGRp.js";
6
- import { u as useChatStore, I as IM_CVS_TYPE, t as throttle, j as debounce, K as IM_FONT_SIZE, L as IM_FONT_FAMILY, M as IM_FONT_STYLE, N as formatFileSize, O as getMediaDuration } from "./index-Bb8V05H4.js";
6
+ import { u as useChatStore, I as IM_CVS_TYPE, t as throttle, j as debounce, L as IM_FONT_SIZE, M as IM_FONT_FAMILY, N as IM_FONT_STYLE, O as formatFileSize, P as getMediaDuration } from "./index-D8yaC3ve.js";
7
7
  const icons = [
8
8
  {
9
9
  title: "表情",
@@ -36188,7 +36188,7 @@ ref([]);
36188
36188
  const useConversations = () => {
36189
36189
  const chatMessage = useChatStore();
36190
36190
  const baseUrl = chatMessage.getBaseUrl;
36191
- const handleUrl = (url, cvsType) => {
36191
+ const handleUrl2 = (url, cvsType) => {
36192
36192
  if (!url) return "";
36193
36193
  if (url.startsWith("data:image")) return url;
36194
36194
  if (/^\/9j\//.test(url)) return `data:image/jpeg;base64,${url}`;
@@ -36225,7 +36225,7 @@ const useConversations = () => {
36225
36225
  latestMsgSendTimeStr: handleDate(item.latestMsgSendTime),
36226
36226
  isNotInGroup: !item.latestMsg,
36227
36227
  isSelfMuted,
36228
- faceURL: handleUrl(item.faceURL, item.conversationType),
36228
+ faceURL: handleUrl2(item.faceURL, item.conversationType),
36229
36229
  pinyinName: toPinyin(item.showName)
36230
36230
  };
36231
36231
  };
@@ -36509,6 +36509,19 @@ const getReplyDetail = (msg, type = "reply") => {
36509
36509
  const labelFn = MSG_TYPE_LABELS[contentType];
36510
36510
  return prefixMap[type] + (labelFn ? labelFn(msg) : "[消息]");
36511
36511
  };
36512
+ const handleUrl = (url, baseUrl) => {
36513
+ if (!url) return "";
36514
+ if (url.startsWith("data:image")) return url;
36515
+ if (/^\/9j\//.test(url)) return `data:image/jpeg;base64,${url}`;
36516
+ if (/^iVBORw0KGgo/.test(url)) return `data:image/png;base64,${url}`;
36517
+ if (/^R0lGOD/.test(url)) return `data:image/gif;base64,${url}`;
36518
+ if (url.indexOf("default_avatar") > -1 || url.indexOf("chat-group") > -1) {
36519
+ return url;
36520
+ }
36521
+ let newUrl = url.replace("/api/v1/common/reviewFile/", "/api/v1/auth/reviewFile/");
36522
+ if ((newUrl == null ? void 0 : newUrl.indexOf("http")) === 0) return newUrl;
36523
+ return baseUrl ? `${baseUrl}${newUrl}` : newUrl;
36524
+ };
36512
36525
  const copyToClipboard = async (text) => {
36513
36526
  var _a;
36514
36527
  try {
@@ -37372,21 +37385,22 @@ const useMessage = (config = {}) => {
37372
37385
  };
37373
37386
  };
37374
37387
  export {
37375
- useMessage as A,
37376
- useUsers as B,
37377
- useConversations as C,
37378
- mittBus as D,
37388
+ GROUP_APPLICATION_STATUS as A,
37389
+ useMessage as B,
37390
+ useUsers as C,
37391
+ useConversations as D,
37379
37392
  EXIT_CODE as E,
37380
- IM_LOGIN_STATUS as F,
37393
+ mittBus as F,
37381
37394
  GROUP_JOIN_SOURCE as G,
37382
- uuidv4 as H,
37395
+ IM_LOGIN_STATUS as H,
37383
37396
  IM_CVS_TYPE as I,
37384
- GROUP_VERIFICATION_TYPE as J,
37385
- IM_FONT_SIZE as K,
37386
- IM_FONT_FAMILY as L,
37387
- IM_FONT_STYLE as M,
37388
- formatFileSize as N,
37389
- getMediaDuration as O,
37397
+ uuidv4 as J,
37398
+ GROUP_VERIFICATION_TYPE as K,
37399
+ IM_FONT_SIZE as L,
37400
+ IM_FONT_FAMILY as M,
37401
+ IM_FONT_STYLE as N,
37402
+ formatFileSize as O,
37403
+ getMediaDuration as P,
37390
37404
  getGroupAvatarBg as a,
37391
37405
  getAvatarBg as b,
37392
37406
  getAvatarText as c,
@@ -37411,6 +37425,6 @@ export {
37411
37425
  getJsonDetail as v,
37412
37426
  getSelectionText as w,
37413
37427
  createCvsId as x,
37414
- handleDate as y,
37415
- GROUP_APPLICATION_STATUS as z
37428
+ handleUrl as y,
37429
+ handleDate as z
37416
37430
  };