mdm-im-v3 2.0.0 → 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 +11 -1
- package/LICENSE +21 -0
- package/dist/{FilePreview-CQruuDv1.js → FilePreview-u-aYsWSs.js} +2 -2
- package/dist/assets/extracted/017fa3ad.png +0 -0
- package/dist/assets/extracted/01e27fe0.png +0 -0
- package/dist/assets/extracted/03806604.png +0 -0
- package/dist/assets/extracted/1e93bbf6.png +0 -0
- package/dist/assets/extracted/496b907e.png +0 -0
- package/dist/assets/extracted/8b132123.png +0 -0
- package/dist/assets/extracted/9ace2344.png +0 -0
- package/dist/assets/extracted/9f0d261c.png +0 -0
- package/dist/core.es.js +2 -2
- package/dist/{index-s6R7QEVN.js → index-Bn5zFiV_.js} +2 -2
- package/dist/{index-Bb8V05H4.js → index-D8yaC3ve.js} +30 -16
- package/dist/{index-DoLFJbHO.js → index-HUSyWSoO.js} +524 -454
- package/dist/index.es.js +1 -1
- package/dist/style/index.css +1 -1
- package/dist-h5/{ChatHistoryH5-BhLaAyBa.js → ChatHistoryH5-Deqlnw3u.js} +2 -2
- package/dist-h5/{ChatPageH5-CN_0Pg6O.js → ChatPageH5-wyLGmPhW.js} +10 -10
- package/dist-h5/{ChatSettingsH5-KT-3je5w.js → ChatSettingsH5-DD3dnI-H.js} +4 -4
- package/dist-h5/{CreateGroupH5-BMjnypkv.js → CreateGroupH5-3LIujy3_.js} +28 -26
- package/dist-h5/{GroupAnnouncementH5-B7nRyGvd.js → GroupAnnouncementH5-5EpXQs5V.js} +1 -1
- package/dist-h5/{GroupInfoDialogH5-DKtMc4uk.js → GroupInfoDialogH5-fgcrbRyp.js} +3 -3
- package/dist-h5/{GroupMembersH5-CfV4GgW3.js → GroupMembersH5-DX2lxrLB.js} +4 -4
- package/dist-h5/{GroupNoticeH5-BwIdQHeF.js → GroupNoticeH5-DVXrcmP9.js} +1 -1
- package/dist-h5/{MemberDetailH5-CwtmQyeV.js → MemberDetailH5-DAVUVr30.js} +2 -2
- package/dist-h5/{SearchPageH5-BiyIJq3h.js → SearchPageH5-BiGhJF4U.js} +2 -2
- package/dist-h5/{SelectMembersH5-Vs9NTCJ2.js → SelectMembersH5-DbrSnTg3.js} +6 -6
- package/dist-h5/assets/extracted/017fa3ad.png +0 -0
- package/dist-h5/assets/extracted/01e27fe0.png +0 -0
- package/dist-h5/assets/extracted/03806604.png +0 -0
- package/dist-h5/assets/extracted/1e93bbf6.png +0 -0
- package/dist-h5/assets/extracted/496b907e.png +0 -0
- package/dist-h5/assets/extracted/8b132123.png +0 -0
- package/dist-h5/assets/extracted/9ace2344.png +0 -0
- package/dist-h5/assets/extracted/9f0d261c.png +0 -0
- package/dist-h5/{imChat-Xqfgb8mj.js → imChat-Cz45JFEl.js} +1 -1
- package/dist-h5/index.es.js +1 -1
- package/dist-h5/{indexH5-D2Gi0qKH.js → indexH5-BZ77bUNH.js} +7 -3
- package/dist-h5/{indexH5-CH2-ilgj.js → indexH5-Cx3l8YDq.js} +24 -28
- package/dist-h5/{request-NyX27bEa.js → request-rky8JSGo.js} +1 -1
- package/dist-h5/style/index-h5.css +1 -1
- package/package.json +70 -68
- package/dist/assets/extracted/361513b3.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -66,4 +66,14 @@
|
|
|
66
66
|
|
|
67
67
|
## V2.0.0 2026-08-17
|
|
68
68
|
- 发布mdm-im-v3@2.0.0版本
|
|
69
|
-
1. 插件引入H5版本,使用方式详见README.md文档。
|
|
69
|
+
1. 插件引入H5版本,使用方式详见README.md文档。
|
|
70
|
+
|
|
71
|
+
## V2.0.1 2026-08-17
|
|
72
|
+
- 发布mdm-im-v3@2.0.1版本
|
|
73
|
+
1. 修复H5组件在调用时不渲染页面问题;
|
|
74
|
+
2. 补充License文件。
|
|
75
|
+
|
|
76
|
+
## V2.0.2 2026-08-17
|
|
77
|
+
- 发布mdm-im-v3@2.0.2版本
|
|
78
|
+
1. PC端创建群聊时,邀请人员接口更换,人员头像颜色修改;
|
|
79
|
+
2. PC端会话列表免打扰提示图标位置调整。
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 zhencanhua
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -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-
|
|
3
|
+
import { u as useChatStore } from "./index-D8yaC3ve.js";
|
|
4
4
|
import axios from "axios";
|
|
5
|
-
import { _ as _export_sfc } from "./index-
|
|
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,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/core.es.js
CHANGED
|
@@ -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-
|
|
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,
|
|
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
|
|
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:
|
|
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
|
-
|
|
37376
|
-
|
|
37377
|
-
|
|
37378
|
-
|
|
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
|
-
|
|
37393
|
+
mittBus as F,
|
|
37381
37394
|
GROUP_JOIN_SOURCE as G,
|
|
37382
|
-
|
|
37395
|
+
IM_LOGIN_STATUS as H,
|
|
37383
37396
|
IM_CVS_TYPE as I,
|
|
37384
|
-
|
|
37385
|
-
|
|
37386
|
-
|
|
37387
|
-
|
|
37388
|
-
|
|
37389
|
-
|
|
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
|
-
|
|
37415
|
-
|
|
37428
|
+
handleUrl as y,
|
|
37429
|
+
handleDate as z
|
|
37416
37430
|
};
|