tuikit-atomicx-vue3 4.5.0 → 4.5.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.
Files changed (182) hide show
  1. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-jPzZ5INK.js → MessageInput.vue_vue_type_script_setup_true_lang-3RVYOdkv.js} +38 -38
  2. package/dist/{PopoverTrigger-L8abAry7.js → PopoverPortal-DV6zFXcf.js} +91 -136
  3. package/dist/PopoverTrigger-DIjW4PKa.js +54 -0
  4. package/dist/{PopperContent-XdhqL8Y2.js → PopperContent-D__dbwpA.js} +6 -6
  5. package/dist/{Teleport-CSEuZbpM.js → Teleport-98QrIYDI.js} +280 -270
  6. package/dist/baseComp/Modal/Modal.js +3 -3
  7. package/dist/components/AudioSettingPanel/index.js +14 -14
  8. package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +10 -9
  9. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
  10. package/dist/components/BarrageInput/TextEditor/EditorCore.js +16 -15
  11. package/dist/components/ConversationList/ConversationActions/ConversationActions.js +53 -50
  12. package/dist/components/ConversationList/ConversationActions/ConversationActions.vue.d.ts +2 -0
  13. package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +25 -25
  14. package/dist/components/ConversationList/ConversationList.vue.d.ts +16 -0
  15. package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +16 -0
  16. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +62 -40
  17. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +28 -26
  18. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +27 -23
  19. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue.d.ts +1 -1
  20. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +81 -70
  21. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +4 -0
  22. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +33 -31
  23. package/dist/components/ConversationList/ConversationPreview/utils.d.ts +2 -2
  24. package/dist/components/ConversationList/ConversationPreview/utils.js +81 -35
  25. package/dist/components/ConversationList/i18n/en-US.d.ts +11 -1
  26. package/dist/components/ConversationList/i18n/en-US.js +12 -2
  27. package/dist/components/ConversationList/i18n/zh-CN.d.ts +11 -1
  28. package/dist/components/ConversationList/i18n/zh-CN.js +12 -2
  29. package/dist/components/ConversationList/index.d.ts +48 -0
  30. package/dist/components/MessageInput/AttachmentPicker/index.js +10 -9
  31. package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +17 -16
  32. package/dist/components/MessageInput/MessageInput.js +1 -1
  33. package/dist/components/MessageInput/QuotedMessagePreview/index.js +35 -35
  34. package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +13 -12
  35. package/dist/components/MessageInput/TextEditor/EditorCore.js +54 -89
  36. package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.js +229 -0
  37. package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue.d.ts +15 -0
  38. package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +1 -1
  39. package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.d.ts +1 -0
  40. package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.js +22 -0
  41. package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.d.ts +3 -0
  42. package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.js +15 -0
  43. package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +2 -2
  44. package/dist/components/MessageInput/TextEditor/extensions/index.d.ts +8 -0
  45. package/dist/components/MessageInput/TextEditor/extensions/index.js +12 -0
  46. package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.d.ts +5 -0
  47. package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.js +330 -0
  48. package/dist/components/MessageInput/TextEditor/index.js +62 -62
  49. package/dist/components/MessageInput/i18n/en-US.d.ts +3 -0
  50. package/dist/components/MessageInput/i18n/en-US.js +4 -1
  51. package/dist/components/MessageInput/i18n/index.d.ts +6 -0
  52. package/dist/components/MessageInput/i18n/zh-CN.d.ts +3 -0
  53. package/dist/components/MessageInput/i18n/zh-CN.js +4 -1
  54. package/dist/components/MessageInput/index.js +1 -1
  55. package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +119 -89
  56. package/dist/components/MessageList/Message/ImageMessage/ImagePreview.js +142 -0
  57. package/dist/components/MessageList/Message/ImageMessage/ImagePreview.vue.d.ts +20 -0
  58. package/dist/components/MessageList/Message/Message.vue.d.ts +8 -0
  59. package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +3 -3
  60. package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +69 -58
  61. package/dist/components/MessageList/Message/MessageLayout/MessageLayout.vue.d.ts +8 -0
  62. package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.js +37 -28
  63. package/dist/components/MessageList/Message/index.js +8 -4
  64. package/dist/components/MessageList/MessageList.js +109 -91
  65. package/dist/components/MessageList/MessageList.vue.d.ts +1 -1
  66. package/dist/components/MessageList/index.d.ts +21 -3
  67. package/dist/components/ScheduleRoomPanel/RoomDetail.js +22 -22
  68. package/dist/components/ScheduleRoomPanel/RoomEdit.js +1 -1
  69. package/dist/components/ScheduleRoomPanel/RoomShare.js +4 -4
  70. package/dist/components/ScheduleRoomPanel/ScheduleRoomPanel.js +1 -1
  71. package/dist/components/ScheduleRoomPanel/ScheduledRoomList.js +1 -1
  72. package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +6 -6
  73. package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.vue.d.ts +1 -1
  74. package/dist/components/UIKitModal/chatErrorModal/chatErrorModal.d.ts +72 -0
  75. package/dist/components/UIKitModal/chatErrorModal/chatErrorModal.js +95 -0
  76. package/dist/components/UIKitModal/chatErrorModal/i18n/en-US/index.d.ts +40 -0
  77. package/dist/components/UIKitModal/chatErrorModal/i18n/en-US/index.js +51 -0
  78. package/dist/components/UIKitModal/chatErrorModal/i18n/index.d.ts +4 -0
  79. package/dist/components/UIKitModal/chatErrorModal/i18n/index.js +6 -0
  80. package/dist/components/UIKitModal/chatErrorModal/i18n/zh-CN/index.d.ts +40 -0
  81. package/dist/components/UIKitModal/chatErrorModal/i18n/zh-CN/index.js +51 -0
  82. package/dist/components/UIKitModal/chatErrorModal/index.d.ts +3 -0
  83. package/dist/components/UIKitModal/chatErrorModal/index.js +11 -0
  84. package/dist/components/VideoSettingPanel/index.js +1 -1
  85. package/dist/hooks/useReadReceipt/useReadReceipt.js +44 -41
  86. package/dist/index-CTthrJb2.js +1461 -0
  87. package/dist/index-DXC5bPY4.js +2174 -0
  88. package/dist/{index-Do-2CngU.js → index-DuAffztD.js} +115 -142
  89. package/dist/{index-7vNB_Vx8.js → index-hHVD-MG2.js} +1 -1
  90. package/dist/index.d.ts +1 -1
  91. package/dist/index.js +150 -149
  92. package/dist/states/GroupSettingState/GroupSettingState.js +109 -102
  93. package/dist/states/LoginState.js +43 -43
  94. package/dist/states/MessageActionState/MessageActionState.js +83 -223
  95. package/dist/states/MessageInputState/MessageInputState.js +111 -82
  96. package/dist/states/MessageInputState/type.d.ts +36 -10
  97. package/dist/states/MessageInputState/utils.d.ts +1 -5
  98. package/dist/states/MessageListState/MessageListState.d.ts +1 -1
  99. package/dist/states/MessageListState/MessageListState.js +26 -23
  100. package/dist/states/RoomParticipantState/index.js +83 -24
  101. package/dist/states/RoomParticipantState/participantEventManager.d.ts +2 -2
  102. package/dist/states/RoomParticipantState/participantEventManager.js +217 -205
  103. package/dist/states/RoomParticipantState/participantManager.d.ts +4 -0
  104. package/dist/states/RoomParticipantState/participantManager.js +159 -127
  105. package/dist/states/RoomState/callManager.d.ts +3 -3
  106. package/dist/states/RoomState/callManager.js +20 -20
  107. package/dist/states/RoomState/common.d.ts +3 -2
  108. package/dist/states/RoomState/common.js +34 -24
  109. package/dist/states/RoomState/roomManager.d.ts +0 -1
  110. package/dist/states/RoomState/roomManager.js +21 -27
  111. package/dist/states/RoomState/scheduleManager.js +2 -2
  112. package/dist/styles/index.css +1 -1
  113. package/dist/{chat/index.d.ts → subEntry/chat/chat.d.ts} +2160 -2087
  114. package/dist/subEntry/chat/chat.js +89 -0
  115. package/dist/subEntry/chat/index.d.ts +11 -0
  116. package/dist/subEntry/chat/index.js +81 -0
  117. package/dist/{chat → subEntry/chat}/server.js +4 -4
  118. package/dist/subEntry/live/index.js +46 -45
  119. package/dist/subEntry/room/index.js +39 -38
  120. package/dist/types/beauty.d.ts +20 -0
  121. package/dist/types/index.js +37 -36
  122. package/dist/types/participant.d.ts +2 -0
  123. package/dist/types/room.d.ts +45 -1
  124. package/dist/types/room.js +4 -3
  125. package/dist/{useId-CtirfF0W.js → useId-B1VwPJLm.js} +1 -1
  126. package/dist/utils/call.js +77 -71
  127. package/dist/{utils-DaB7eSu5.js → utils-BU8IkP_V.js} +1 -1
  128. package/package.json +8 -7
  129. package/src/components/AudioSettingPanel/index.vue +4 -5
  130. package/src/components/ConversationList/ConversationActions/ConversationActions.vue +7 -1
  131. package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +5 -1
  132. package/src/components/ConversationList/ConversationList.vue +0 -1
  133. package/src/components/ConversationList/ConversationPreview/ConversationPreview.scss +10 -2
  134. package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +32 -1
  135. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +3 -2
  136. package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +15 -0
  137. package/src/components/ConversationList/ConversationPreview/utils.ts +98 -28
  138. package/src/components/ConversationList/i18n/en-US.ts +11 -1
  139. package/src/components/ConversationList/i18n/zh-CN.ts +11 -1
  140. package/src/components/MessageInput/MessageInput.module.scss +1 -0
  141. package/src/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.vue +19 -22
  142. package/src/components/MessageInput/TextEditor/Editor.scss +25 -0
  143. package/src/components/MessageInput/TextEditor/EditorCore.ts +79 -99
  144. package/src/components/MessageInput/TextEditor/TextEditor.vue +64 -68
  145. package/src/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue +449 -0
  146. package/src/components/MessageInput/TextEditor/extensions/emojiExtension.ts +22 -0
  147. package/src/components/MessageInput/TextEditor/extensions/enterKeyExtension.ts +22 -0
  148. package/src/components/MessageInput/TextEditor/extensions/index.ts +8 -0
  149. package/src/components/MessageInput/TextEditor/extensions/mentionExtension.ts +87 -0
  150. package/src/components/MessageInput/i18n/en-US.ts +3 -0
  151. package/src/components/MessageInput/i18n/zh-CN.ts +3 -0
  152. package/src/components/MessageList/Message/ImageMessage/ImageMessage.vue +49 -0
  153. package/src/components/MessageList/Message/ImageMessage/ImagePreview.vue +344 -0
  154. package/src/components/MessageList/Message/Message.vue +6 -0
  155. package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +8 -1
  156. package/src/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +12 -3
  157. package/src/components/MessageList/MessageList.vue +50 -14
  158. package/src/components/ScheduleRoomPanel/RoomDetail.vue +1 -0
  159. package/src/components/ScheduleRoomPanel/RoomEdit.vue +2 -1
  160. package/src/components/ScheduleRoomPanel/RoomShare.vue +1 -0
  161. package/src/components/ScheduleRoomPanel/ScheduleRoomPanel.vue +1 -0
  162. package/src/components/ScheduleRoomPanel/ScheduledRoomList.vue +1 -0
  163. package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +30 -31
  164. package/src/components/UIKitModal/chatErrorModal/chatErrorModal.ts +205 -0
  165. package/src/components/UIKitModal/chatErrorModal/i18n/en-US/index.ts +56 -0
  166. package/src/components/UIKitModal/chatErrorModal/i18n/index.ts +4 -0
  167. package/src/components/UIKitModal/chatErrorModal/i18n/zh-CN/index.ts +56 -0
  168. package/src/components/UIKitModal/chatErrorModal/index.ts +16 -0
  169. package/src/components/VideoSettingPanel/index.vue +1 -0
  170. package/src/hooks/useReadReceipt/useReadReceipt.ts +5 -4
  171. package/src/index.ts +1 -1
  172. package/src/{chat/index.ts → subEntry/chat/chat.ts} +25 -18
  173. package/src/subEntry/chat/index.ts +13 -0
  174. package/src/{chat → subEntry/chat}/server.ts +3 -3
  175. package/src/types/beauty.ts +20 -0
  176. package/src/types/participant.ts +3 -0
  177. package/src/types/room.ts +49 -1
  178. package/src/utils/call.ts +8 -0
  179. package/dist/chat/index.js +0 -59
  180. package/dist/index-ZILx4LYk.js +0 -4826
  181. package/dist/states/SearchState.d.ts +0 -314
  182. /package/dist/{chat → subEntry/chat}/server.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as g, ref as E, toRefs as P, renderSlot as _, unref as t, onMounted as A, createBlock as v, openBlock as m, withCtx as f, createVNode as C, mergeProps as y, createCommentVNode as h, normalizeProps as $, guardReactiveProps as T, normalizeClass as R } from "vue";
2
- import { u as k, c as N, a as D, g as I, F as S, D as L, f as q, d as K, P as F, b as V, e as U, T as W } from "../../Teleport-CSEuZbpM.js";
3
- import { u as w } from "../../useId-CtirfF0W.js";
4
- import { g as z } from "../../utils-DaB7eSu5.js";
2
+ import { a as k, c as N, u as D, g as I, F as S, D as L, f as q, d as K, e as F, b as V, P as U, T as W } from "../../Teleport-98QrIYDI.js";
3
+ import { u as w } from "../../useId-B1VwPJLm.js";
4
+ import { g as z } from "../../utils-BU8IkP_V.js";
5
5
  import { _ as G } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const [O, H] = N("DialogRoot");
7
7
  var j = /* @__PURE__ */ g({
@@ -1,7 +1,7 @@
1
1
  import { addI18n as B } from "../../i18n/index.js";
2
2
  import { resource as $ } from "./i18n/en-US/index.js";
3
3
  import { resource as q } from "./i18n/zh-CN/index.js";
4
- import { defineComponent as F, ref as _, computed as g, watch as k, createElementBlock as a, openBlock as l, createElementVNode as t, createCommentVNode as u, toDisplayString as o, unref as e, createVNode as m, createBlock as b, withCtx as y, createTextVNode as A, Fragment as j, renderList as G, normalizeClass as H } from "vue";
4
+ import { defineComponent as F, ref as _, computed as g, watch as k, createElementBlock as n, openBlock as l, createElementVNode as t, createCommentVNode as u, toDisplayString as o, unref as e, createVNode as m, createBlock as b, withCtx as y, createTextVNode as A, Fragment as j, renderList as G, normalizeClass as H } from "vue";
5
5
  import { useUIKit as J, TUIButton as P, TUISlider as x } from "@tencentcloud/uikit-base-component-vue3";
6
6
  import Q from "./MicrophoneSelect.js";
7
7
  import W from "./SpeakerSelect.js";
@@ -10,10 +10,10 @@ import { _ as Y } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  const Z = { class: "audio-setting-tab" }, ee = { class: "item-setting" }, te = { class: "title" }, se = { class: "flex" }, oe = {
11
11
  key: 0,
12
12
  class: "item-setting"
13
- }, le = { class: "title" }, ie = { class: "mic-bar-container" }, ae = {
13
+ }, le = { class: "title" }, ie = { class: "mic-bar-container" }, ne = {
14
14
  key: 1,
15
15
  class: "item-setting"
16
- }, ne = { class: "title" }, ue = { class: "flex" }, ce = { class: "volume-value" }, re = { class: "item-setting" }, de = { class: "title" }, me = { class: "flex" }, pe = {
16
+ }, ae = { class: "title" }, ue = { class: "flex" }, ce = { class: "volume-value" }, re = { class: "item-setting" }, de = { class: "title" }, me = { class: "flex" }, pe = {
17
17
  key: 2,
18
18
  class: "item-setting"
19
19
  }, ve = { class: "title" }, Ve = { class: "flex" }, _e = { class: "volume-value" }, fe = /* @__PURE__ */ F({
@@ -62,11 +62,11 @@ const Z = { class: "audio-setting-tab" }, ee = { class: "item-setting" }, te = {
62
62
  h.value ? R() : L({ filePath: "https://web.sdk.qcloud.com/trtc/electron/download/resources/media/TestSpeaker.mp3" });
63
63
  }
64
64
  const p = _(28), D = g(() => c.value ? E.value * p.value / 100 : w.value * p.value / 100), O = g(() => C.micTestVisible ? c.value : !0), v = _(f.value), V = _(S.value);
65
- return k(v, async (n) => {
66
- await I(n);
67
- }), k(V, async (n) => {
68
- await M(n);
69
- }), (n, r) => (l(), a("div", Z, [
65
+ return k(v, async (a) => {
66
+ await I(a);
67
+ }), k(V, async (a) => {
68
+ await M(a);
69
+ }), (a, r) => (l(), n("div", Z, [
70
70
  t("div", ee, [
71
71
  t("span", te, o(e(s)("AudioSettingPanel.Microphone")), 1),
72
72
  t("div", se, [
@@ -82,10 +82,10 @@ const Z = { class: "audio-setting-tab" }, ee = { class: "item-setting" }, te = {
82
82
  })) : u("", !0)
83
83
  ])
84
84
  ]),
85
- i.inputVolumeLevelVisible ? (l(), a("div", oe, [
85
+ i.inputVolumeLevelVisible ? (l(), n("div", oe, [
86
86
  t("span", le, o(e(s)("AudioSettingPanel.InputLevel")), 1),
87
87
  t("div", ie, [
88
- (l(!0), a(j, null, G(new Array(p.value).fill(""), (d, T) => (l(), a("div", {
88
+ (l(!0), n(j, null, G(new Array(p.value).fill(""), (d, T) => (l(), n("div", {
89
89
  key: T,
90
90
  class: H([
91
91
  "mic-bar",
@@ -94,8 +94,8 @@ const Z = { class: "audio-setting-tab" }, ee = { class: "item-setting" }, te = {
94
94
  }, null, 2))), 128))
95
95
  ])
96
96
  ])) : u("", !0),
97
- i.inputVolumeVisible ? (l(), a("div", ae, [
98
- t("span", ne, o(e(s)("AudioSettingPanel.InputVolume")), 1),
97
+ i.inputVolumeVisible ? (l(), n("div", ne, [
98
+ t("span", ae, o(e(s)("AudioSettingPanel.InputVolume")), 1),
99
99
  t("div", ue, [
100
100
  m(e(x), {
101
101
  modelValue: v.value,
@@ -125,7 +125,7 @@ const Z = { class: "audio-setting-tab" }, ee = { class: "item-setting" }, te = {
125
125
  })) : u("", !0)
126
126
  ])
127
127
  ]),
128
- i.outputVolumeVisible ? (l(), a("div", pe, [
128
+ i.outputVolumeVisible ? (l(), n("div", pe, [
129
129
  t("span", ve, o(e(s)("AudioSettingPanel.OutputVolume")), 1),
130
130
  t("div", Ve, [
131
131
  m(e(x), {
@@ -140,7 +140,7 @@ const Z = { class: "audio-setting-tab" }, ee = { class: "item-setting" }, te = {
140
140
  ])) : u("", !0)
141
141
  ]));
142
142
  }
143
- }), Se = /* @__PURE__ */ Y(fe, [["__scopeId", "data-v-6cabe0da"]]);
143
+ }), Se = /* @__PURE__ */ Y(fe, [["__scopeId", "data-v-5b1de05d"]]);
144
144
  B("en-US", { translation: $ });
145
145
  B("zh-CN", { translation: q });
146
146
  const Be = Se;
@@ -1,6 +1,7 @@
1
1
  import { defineComponent as j, onMounted as x, createElementBlock as a, openBlock as c, createVNode as o, unref as e, withCtx as r, normalizeClass as i, normalizeStyle as v, createElementVNode as _, Fragment as b, renderList as E } from "vue";
2
- import { useUIKit as y, IconEmoji as C } from "@tencentcloud/uikit-base-component-vue3";
3
- import { P, a as h, b as I, c as z } from "../../../PopoverTrigger-L8abAry7.js";
2
+ import { useUIKit as y, IconEmoji as P } from "@tencentcloud/uikit-base-component-vue3";
3
+ import { P as C, a as h, b as I } from "../../../PopoverPortal-DV6zFXcf.js";
4
+ import { P as z } from "../../../PopoverTrigger-DIjW4PKa.js";
4
5
  import { emojiUrlMap as l, emojiBaseUrl as m } from "../../../constants/emoji.js";
5
6
  import { transformTextWithEmojiKeyToName as M } from "../../../utils/emoji.js";
6
7
  import { useMessageInputState as T } from "../MessageInputState.js";
@@ -44,24 +45,24 @@ const n = {
44
45
  );
45
46
  }
46
47
  return (t, d) => (c(), a("div", null, [
47
- o(e(P), null, {
48
+ o(e(C), null, {
48
49
  default: r(() => [
49
- o(e(h), {
50
+ o(e(z), {
50
51
  as: "span",
51
52
  style: v(p.triggerStyle),
52
53
  class: i([u.disabled && "disabled"])
53
54
  }, {
54
55
  default: r(() => [
55
- o(e(C), {
56
+ o(e(P), {
56
57
  class: i(e(n)["emoji-picker__icon"]),
57
58
  size: "24"
58
59
  }, null, 8, ["class"])
59
60
  ]),
60
61
  _: 1
61
62
  }, 8, ["style", "class"]),
62
- o(e(I), null, {
63
+ o(e(h), null, {
63
64
  default: r(() => [
64
- o(e(z), {
65
+ o(e(I), {
65
66
  side: "top",
66
67
  align: "center",
67
68
  "side-offset": 8,
@@ -96,7 +97,7 @@ const n = {
96
97
  })
97
98
  ]));
98
99
  }
99
- }), D = /* @__PURE__ */ S(w, [["__scopeId", "data-v-e11cd753"]]);
100
+ }), G = /* @__PURE__ */ S(w, [["__scopeId", "data-v-e11cd753"]]);
100
101
  export {
101
- D as default
102
+ G as default
102
103
  };
@@ -1,4 +1,4 @@
1
- import { E as l, P as h, a as f } from "../../../index-Do-2CngU.js";
1
+ import { E as l, P as h, a as f } from "../../../index-DuAffztD.js";
2
2
  const m = l.create({
3
3
  name: "characterCount",
4
4
  addOptions() {
@@ -1,11 +1,12 @@
1
- import { I as o } from "../../../index-7vNB_Vx8.js";
2
- import { S as g, P as x, E as p } from "../../../index-ZILx4LYk.js";
1
+ import { I as u } from "../../../index-hHVD-MG2.js";
2
+ import { S as g, P as x } from "../../../index-CTthrJb2.js";
3
+ import { E as p } from "../../../index-DXC5bPY4.js";
3
4
  import { isMobile as y } from "../../../utils/environment.js";
4
5
  import { CharacterCount as M } from "./CharacterCountExtension.js";
5
- import { E as T } from "../../../index-Do-2CngU.js";
6
+ import { E as T } from "../../../index-DuAffztD.js";
6
7
  import { MessageContentType as a } from "../../../states/MessageInputState/type.js";
7
8
  function b() {
8
- return o.extend({
9
+ return u.extend({
9
10
  name: a.EMOJI,
10
11
  inline: !0,
11
12
  group: "inline",
@@ -22,7 +23,7 @@ function b() {
22
23
  });
23
24
  }
24
25
  function C() {
25
- return o.extend({
26
+ return u.extend({
26
27
  addOptions() {
27
28
  var t;
28
29
  return {
@@ -102,43 +103,43 @@ function c(t) {
102
103
  }
103
104
  }) : [];
104
105
  }
105
- function S({
106
+ function j({
106
107
  element: t,
107
108
  placeholder: e = "",
108
109
  autoFocus: r = !1,
109
110
  disabled: s = !1,
110
111
  maxLength: i,
111
112
  onUpdate: n,
112
- onEnter: f,
113
- onFocus: m,
113
+ onEnter: m,
114
+ onFocus: f,
114
115
  onBlur: E
115
116
  }) {
116
117
  const l = {
117
118
  element: t,
118
119
  autofocus: r,
119
120
  editable: !s,
120
- extensions: ((u) => [
121
+ extensions: ((o) => [
121
122
  g,
122
123
  M.configure({
123
124
  limit: i
124
125
  }),
125
- I(u ? { onEnter: u } : void 0),
126
+ I(o ? { onEnter: o } : void 0),
126
127
  b(),
127
128
  C(),
128
129
  x.configure({
129
130
  emptyEditorClass: "is-editor-empty",
130
131
  placeholder: e
131
132
  })
132
- ])(f),
133
- onUpdate: ({ editor: u }) => {
134
- const d = c(u.getJSON());
133
+ ])(m),
134
+ onUpdate: ({ editor: o }) => {
135
+ const d = c(o.getJSON());
135
136
  n == null || n(d);
136
137
  },
137
- onFocus: m,
138
+ onFocus: f,
138
139
  onBlur: E
139
140
  };
140
141
  return new p(l);
141
142
  }
142
143
  export {
143
- S as createEditor
144
+ j as createEditor
144
145
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as g, ref as k, computed as D, watch as f, createElementBlock as r, openBlock as a, normalizeStyle as z, normalizeClass as l, unref as u, createBlock as $, withModifiers as E, Fragment as b, renderList as U, toDisplayString as h, withCtx as M, createElementVNode as B, createVNode as q } from "vue";
1
+ import { defineComponent as D, ref as k, computed as z, watch as b, createElementBlock as c, openBlock as a, normalizeStyle as $, normalizeClass as l, unref as v, createBlock as E, withModifiers as V, Fragment as h, renderList as f, toDisplayString as U, withCtx as M, createElementVNode as B, createVNode as q } from "vue";
2
2
  import N from "@tencentcloud/chat-uikit-engine";
3
- import { useUIKit as S, TUIDropdown as R, IconEllipsis as V } from "@tencentcloud/uikit-base-component-vue3";
3
+ import { useUIKit as S, TUIDropdown as w, IconEllipsis as R } from "@tencentcloud/uikit-base-component-vue3";
4
4
  import { isH5 as C } from "../../../utils/env.js";
5
5
  import { useConversationListState as L } from "../../../states/ConversationListState/ConversationListState.js";
6
6
  import { _ as K } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
7
- const O = ["onClick"], Y = ["onClick"], j = /* @__PURE__ */ g({
7
+ const O = ["onClick"], Y = ["onClick"], j = /* @__PURE__ */ D({
8
8
  __name: "ConversationActions",
9
9
  props: {
10
10
  conversation: {},
@@ -24,123 +24,126 @@ const O = ["onClick"], Y = ["onClick"], j = /* @__PURE__ */ g({
24
24
  enableDelete: { type: Boolean, default: !0 },
25
25
  enableMarkUnread: { type: Boolean, default: !0 }
26
26
  },
27
- emits: ["click", "close", "markConversationUnread", "conversationPin", "conversationMute", "conversationDelete"],
27
+ emits: ["click", "close", "dropdownVisibleChange", "markConversationUnread", "conversationPin", "conversationMute", "conversationDelete"],
28
28
  setup(_, { emit: y }) {
29
- const o = _, c = y, { t: i } = S(), { markConversationUnread: I } = L(), v = k(!0), d = k({}), p = D(() => Object.entries(d.value).filter(([, e]) => e.enable !== !1).reduce((e, [n, t]) => (e[n] = t, e), {})), P = () => ({
29
+ const o = _, r = y, { t: s } = S(), { markConversationUnread: g } = L(), u = k(!0), d = k({}), p = z(() => Object.entries(d.value).filter(([, e]) => e.enable !== !1).reduce((e, [n, t]) => (e[n] = t, e), {})), I = () => ({
30
30
  pin: {
31
31
  enable: !!o.enablePin,
32
- label: o.conversation.isPinned ? i("TUIConversation.Unpin") : i("TUIConversation.Pin"),
32
+ label: o.conversation.isPinned ? s("TUIConversation.Unpin") : s("TUIConversation.Pin"),
33
33
  onClick: (e, n) => {
34
- e.pinConversation(), c("conversationPin", e, n);
34
+ e.pinConversation(), r("conversationPin", e, n);
35
35
  }
36
36
  },
37
37
  mute: {
38
38
  enable: !!o.enableMute,
39
- label: o.conversation.isMuted ? i("TUIConversation.Unmute") : i("TUIConversation.Mute"),
39
+ label: o.conversation.isMuted ? s("TUIConversation.Unmute") : s("TUIConversation.Mute"),
40
40
  onClick: (e, n) => {
41
- e.muteConversation(), c("conversationMute", e, n);
41
+ e.muteConversation(), r("conversationMute", e, n);
42
42
  }
43
43
  },
44
44
  markUnread: {
45
45
  enable: !!o.enableMarkUnread,
46
- label: v.value ? i("TUIConversation.MarkRead") : i("TUIConversation.MarkUnRead"),
46
+ label: u.value ? s("TUIConversation.MarkRead") : s("TUIConversation.MarkUnRead"),
47
47
  onClick: (e, n) => {
48
- I(e.conversationID, !v.value), c("markConversationUnread", e, n);
48
+ g(e.conversationID, !u.value), r("markConversationUnread", e, n);
49
49
  }
50
50
  },
51
51
  delete: {
52
52
  enable: !!o.enableDelete,
53
- label: i("TUIConversation.Delete"),
53
+ label: s("TUIConversation.Delete"),
54
54
  onClick: (e, n) => {
55
- e.deleteConversation(), c("conversationDelete", e, n);
55
+ e.deleteConversation(), r("conversationDelete", e, n);
56
56
  }
57
57
  }
58
58
  });
59
- f(
59
+ b(
60
60
  () => o.conversation,
61
61
  (e) => {
62
62
  var n;
63
63
  if (e.unreadCount > 0)
64
- v.value = !0;
64
+ u.value = !0;
65
65
  else {
66
- const t = N.TYPES.CONV_MARK_TYPE_UNREAD, s = (n = e == null ? void 0 : e.markList) == null ? void 0 : n.includes(t);
67
- v.value = s;
66
+ const t = N.TYPES.CONV_MARK_TYPE_UNREAD, i = (n = e == null ? void 0 : e.markList) == null ? void 0 : n.includes(t);
67
+ u.value = i;
68
68
  }
69
69
  },
70
70
  { immediate: !0 }
71
- ), f(
71
+ ), b(
72
72
  [() => o.conversation, () => o.customConversationActions],
73
73
  ([e, n]) => {
74
74
  d.value = {
75
- ...P(),
75
+ ...I(),
76
76
  ...n || {}
77
77
  };
78
78
  },
79
79
  { immediate: !0, deep: !0 }
80
80
  );
81
81
  const A = (e, n) => {
82
- c("click", e, n, o.conversation);
82
+ r("click", e, n, o.conversation);
83
83
  const t = d.value[n];
84
84
  t && t.onClick(o.conversation, e), o.onClose && o.onClose();
85
- }, T = (e) => {
85
+ }, P = (e) => {
86
86
  e.stopPropagation(), e.target === e.currentTarget && C && o.onClose && o.onClose();
87
+ }, T = (e) => {
88
+ r("dropdownVisibleChange", e);
87
89
  };
88
- return (e, n) => (a(), r("div", {
90
+ return (e, n) => (a(), c("div", {
89
91
  class: l([e.$style.conversationActions, {
90
- [e.$style.conversationActions__h5]: u(C)
92
+ [e.$style.conversationActions__h5]: v(C)
91
93
  }, _.className]),
92
- style: z(_.style),
93
- onClick: T
94
+ style: $(_.style),
95
+ onClick: P
94
96
  }, [
95
- u(C) ? (a(), r("div", {
97
+ v(C) ? (a(), c("div", {
96
98
  key: 0,
97
99
  class: l(e.$style.conversationActions__h5__container),
98
- onClick: n[0] || (n[0] = E(() => {
100
+ onClick: n[0] || (n[0] = V(() => {
99
101
  }, ["stop"]))
100
102
  }, [
101
- (a(!0), r(b, null, U(p.value, (t, s) => (a(), r("div", {
102
- key: s,
103
+ (a(!0), c(h, null, f(p.value, (t, i) => (a(), c("div", {
104
+ key: i,
103
105
  class: l([e.$style.conversationActions__item, {
104
- [e.$style["conversationActions__item--delete"]]: s === "delete"
106
+ [e.$style["conversationActions__item--delete"]]: i === "delete"
105
107
  }]),
106
- onClick: (m) => A(m, s)
107
- }, h(t.label), 11, O))), 128))
108
- ], 2)) : (a(), $(u(R), {
108
+ onClick: (m) => A(m, i)
109
+ }, U(t.label), 11, O))), 128))
110
+ ], 2)) : (a(), E(v(w), {
109
111
  key: 1,
110
112
  trigger: "click",
111
- teleported: !1,
112
- placement: "bottom-end"
113
+ teleported: !0,
114
+ placement: "bottom-end",
115
+ onVisibleChange: T
113
116
  }, {
114
117
  dropdown: M(() => [
115
- (a(!0), r(b, null, U(p.value, (t, s) => (a(), r("div", {
116
- key: s,
118
+ (a(!0), c(h, null, f(p.value, (t, i) => (a(), c("div", {
119
+ key: i,
117
120
  class: l([e.$style.conversationActions__item, {
118
- [e.$style["conversationActions__item--delete"]]: s === "delete"
121
+ [e.$style["conversationActions__item--delete"]]: i === "delete"
119
122
  }]),
120
- onClick: (m) => A(m, s)
121
- }, h(t.label), 11, Y))), 128))
123
+ onClick: (m) => A(m, i)
124
+ }, U(t.label), 11, Y))), 128))
122
125
  ]),
123
126
  default: M(() => [
124
127
  B("div", {
125
128
  class: l(e.$style["conversationActions__popup-icon"])
126
129
  }, [
127
- q(u(V), { size: "18px" })
130
+ q(v(R), { size: "18px" })
128
131
  ], 2)
129
132
  ]),
130
133
  _: 1
131
134
  }))
132
135
  ], 6));
133
136
  }
134
- }), w = "_conversationActions_qrz2h_1", F = "_conversationActions__h5_qrz2h_10", H = "_conversationActions__h5__container_qrz2h_22", G = "_conversationActions__item_qrz2h_27", J = {
135
- conversationActions: w,
137
+ }), F = "_conversationActions_qrz2h_1", H = "_conversationActions__h5_qrz2h_10", G = "_conversationActions__h5__container_qrz2h_22", J = "_conversationActions__item_qrz2h_27", Q = {
138
+ conversationActions: F,
136
139
  "conversationActions__popup-icon": "_conversationActions__popup-icon_qrz2h_5",
137
- conversationActions__h5: F,
138
- conversationActions__h5__container: H,
139
- conversationActions__item: G,
140
+ conversationActions__h5: H,
141
+ conversationActions__h5__container: G,
142
+ conversationActions__item: J,
140
143
  "conversationActions__item--delete": "_conversationActions__item--delete_qrz2h_52"
141
- }, Q = {
142
- $style: J
143
- }, oe = /* @__PURE__ */ K(j, [["__cssModules", Q]]);
144
+ }, W = {
145
+ $style: Q
146
+ }, te = /* @__PURE__ */ K(j, [["__cssModules", W]]);
144
147
  export {
145
- oe as default
148
+ te as default
146
149
  };
@@ -9,6 +9,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
9
9
  click: (e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => void;
10
10
  close: () => void;
11
11
  markConversationUnread: (conversation: ConversationModel, e?: Event | undefined) => void;
12
+ dropdownVisibleChange: (visible: boolean) => void;
12
13
  conversationPin: (conversation: ConversationModel, e?: Event | undefined) => void;
13
14
  conversationMute: (conversation: ConversationModel, e?: Event | undefined) => void;
14
15
  conversationDelete: (conversation: ConversationModel, e?: Event | undefined) => void;
@@ -21,6 +22,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
21
22
  onClick?: ((e: Event, key?: string | undefined, conversation?: ConversationModel | undefined) => any) | undefined;
22
23
  onClose?: (() => any) | undefined;
23
24
  onMarkConversationUnread?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
25
+ onDropdownVisibleChange?: ((visible: boolean) => any) | undefined;
24
26
  onConversationPin?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
25
27
  onConversationMute?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
26
28
  onConversationDelete?: ((conversation: ConversationModel, e?: Event | undefined) => any) | undefined;
@@ -1,6 +1,6 @@
1
- import { defineComponent as Q, ref as u, computed as I, createElementBlock as X, openBlock as g, normalizeClass as Z, unref as p, createVNode as h, withCtx as ee, createBlock as P } from "vue";
1
+ import { defineComponent as Q, ref as u, computed as g, createElementBlock as X, openBlock as U, normalizeClass as Z, unref as p, createVNode as h, withCtx as ee, createBlock as P } from "vue";
2
2
  import { TUIConversationService as te } from "@tencentcloud/chat-uikit-engine";
3
- import { useUIKit as oe, TUIDialog as ae, TUIToast as U } from "@tencentcloud/uikit-base-component-vue3";
3
+ import { useUIKit as oe, TUIDialog as ae, TUIToast as T } from "@tencentcloud/uikit-base-component-vue3";
4
4
  import { useLoginState as ne } from "../../../states/LoginState.js";
5
5
  import { isH5 as re } from "../../../utils/env.js";
6
6
  import { useConversation as se } from "../hooks/useConversation.js";
@@ -21,14 +21,14 @@ const G = 20, pe = /* @__PURE__ */ Q({
21
21
  conversationList: { default: () => [] }
22
22
  },
23
23
  emits: ["update:visible", "beforeCreateConversation", "conversationCreated"],
24
- setup(x, { emit: y }) {
25
- const { t: o } = oe(), { enableSearch: O } = se(), { getDefaultAvatar: S } = ie(), { loginUserInfo: d } = ne(), { createC2CConversation: b, createGroupConversation: N } = ue(), k = {
26
- avatar: S(E.WORK),
24
+ setup(y, { emit: x }) {
25
+ const { t: o } = oe(), { enableSearch: O } = se(), { getDefaultAvatar: d } = ie(), { loginUserInfo: S } = ne(), { createC2CConversation: b, createGroupConversation: N } = ue(), k = {
26
+ avatar: d(E.WORK),
27
27
  name: "",
28
28
  groupID: "",
29
29
  type: E.WORK
30
- }, s = x, T = y, m = u(!1), c = u(!1), n = u(t.USER_SELECT), l = u([]), v = u({
31
- avatar: S(E.WORK),
30
+ }, s = y, m = x, _ = u(!1), c = u(!1), n = u(t.USER_SELECT), l = u([]), v = u({
31
+ avatar: d(E.WORK),
32
32
  name: "",
33
33
  groupID: "",
34
34
  type: E.WORK
@@ -39,14 +39,14 @@ const G = 20, pe = /* @__PURE__ */ Q({
39
39
  }, w = (e) => {
40
40
  l.value = e;
41
41
  }, B = (e) => {
42
- e === ve.GROUP ? R(!0) : R(!1), m.value = !0;
42
+ e === ve.GROUP ? R(!0) : R(!1), _.value = !0;
43
43
  }, f = (e) => {
44
- m.value = e;
45
- }, _ = () => {
44
+ _.value = e;
45
+ }, I = () => {
46
46
  f(!1), v.value = k, c.value = !1, n.value = t.USER_SELECT, l.value = [];
47
47
  }, L = (e) => {
48
48
  var r;
49
- _(), te.switchConversation(e.conversationID), T("conversationCreated", e), (r = s.onConversationCreated) == null || r.call(s, e);
49
+ I(), te.switchConversation(e.conversationID), m("conversationCreated", e), (r = s.onConversationCreated) == null || r.call(s, e);
50
50
  }, K = {
51
51
  [t.USER_SELECT]: o("TUIConversation.Add Participants"),
52
52
  [t.CREATE_DETAIL]: o("TUIConversation.New group chat"),
@@ -59,17 +59,17 @@ const G = 20, pe = /* @__PURE__ */ Q({
59
59
  [t.USER_SELECT]: o("TUIConversation.Cancel"),
60
60
  [t.CREATE_DETAIL]: o("TUIConversation.Prev"),
61
61
  [t.GROUP_TYPE]: o("TUIConversation.Prev")
62
- }, F = I(() => c.value ? Y[n.value] : o("TUIConversation.Cancel")), M = I(() => c.value ? K[n.value] : o("TUIConversation.Start chat")), $ = I(() => c.value ? W[n.value] : o("TUIConversation.Start chat")), j = (e) => {
62
+ }, F = g(() => c.value ? Y[n.value] : o("TUIConversation.Cancel")), M = g(() => c.value ? K[n.value] : o("TUIConversation.Start chat")), $ = g(() => c.value ? W[n.value] : o("TUIConversation.Start chat")), j = (e) => {
63
63
  v.value = e;
64
64
  }, z = async () => {
65
65
  var r;
66
66
  const { userID: e } = l.value[0];
67
- T("beforeCreateConversation", e), (r = s.onBeforeCreateConversation) == null || r.call(s, e);
67
+ m("beforeCreateConversation", e), (r = s.onBeforeCreateConversation) == null || r.call(s, e);
68
68
  try {
69
69
  const a = await b(e);
70
70
  L(a);
71
71
  } catch (a) {
72
- U.error({ message: a.message });
72
+ T.error({ message: a.message });
73
73
  }
74
74
  }, H = async () => {
75
75
  var r;
@@ -79,49 +79,49 @@ const G = 20, pe = /* @__PURE__ */ Q({
79
79
  userID: a.userID
80
80
  }))
81
81
  };
82
- T("beforeCreateConversation", e), (r = s.onBeforeCreateConversation) == null || r.call(s, e);
82
+ m("beforeCreateConversation", e), (r = s.onBeforeCreateConversation) == null || r.call(s, e);
83
83
  try {
84
84
  const a = await N(e);
85
85
  L(a);
86
86
  } catch (a) {
87
- U.error({ message: a.message });
87
+ a.code === 10021 ? T.error({ message: o("TUIConversation.group_id_already_used") }) : T.error({ message: a.message });
88
88
  }
89
89
  }, V = (e) => {
90
90
  var A, D;
91
- const a = `${((A = d.value) == null ? void 0 : A.userName) || ((D = d.value) == null ? void 0 : D.userId) || ""}、${e.map((i) => (i == null ? void 0 : i.remark) || (i == null ? void 0 : i.nick) || (i == null ? void 0 : i.userID)).join("、")}`;
91
+ const a = `${((A = S.value) == null ? void 0 : A.userName) || ((D = S.value) == null ? void 0 : D.userId) || ""}、${e.map((i) => (i == null ? void 0 : i.remark) || (i == null ? void 0 : i.nick) || (i == null ? void 0 : i.userID)).join("、")}`;
92
92
  return a.length >= G ? a.slice(0, G) : a;
93
93
  }, q = () => {
94
94
  if (l.value.length === 0) {
95
- U.error({ message: o("TUIConversation.Participant cannot be empty") });
95
+ T.error({ message: o("TUIConversation.Participant cannot be empty") });
96
96
  return;
97
97
  }
98
98
  c.value ? n.value === t.USER_SELECT ? (v.value.name = V(l.value), C(t.CREATE_DETAIL)) : n.value === t.CREATE_DETAIL ? (H(), f(!1)) : C(t.CREATE_DETAIL) : (z(), f(!1));
99
99
  }, J = () => {
100
- n.value === t.USER_SELECT ? (f(!1), _()) : n.value === t.CREATE_DETAIL ? C(t.USER_SELECT) : n.value === t.GROUP_TYPE && C(t.CREATE_DETAIL);
100
+ n.value === t.USER_SELECT ? (f(!1), I()) : n.value === t.CREATE_DETAIL ? C(t.USER_SELECT) : n.value === t.GROUP_TYPE && C(t.CREATE_DETAIL);
101
101
  };
102
- return (e, r) => (g(), X("div", {
102
+ return (e, r) => (U(), X("div", {
103
103
  class: Z(["conversationCreate__container", { conversationCreate__detail: !p(O) }])
104
104
  }, [
105
105
  h(le, { onClick: B }),
106
106
  h(p(ae), {
107
107
  appendTo: "body",
108
- visible: m.value,
108
+ visible: _.value,
109
109
  title: M.value,
110
110
  "confirm-text": $.value,
111
111
  "cancel-text": F.value,
112
112
  "custom-classes": [p(re) ? "conversationCreate__dialog" : ""],
113
113
  onConfirm: q,
114
114
  onCancel: J,
115
- onClose: _
115
+ onClose: I
116
116
  }, {
117
117
  default: ee(() => [
118
- n.value === p(t).USER_SELECT ? (g(), P(Ce, {
118
+ n.value === p(t).USER_SELECT ? (U(), P(Ce, {
119
119
  key: 0,
120
120
  "is-create-group": c.value,
121
121
  "select-list": l.value,
122
122
  "set-select-list": w,
123
123
  "set-page-state": C
124
- }, null, 8, ["is-create-group", "select-list"])) : (g(), P(ce, {
124
+ }, null, 8, ["is-create-group", "select-list"])) : (U(), P(ce, {
125
125
  key: 1,
126
126
  "page-state": n.value,
127
127
  "profile-list": l.value,
@@ -134,7 +134,7 @@ const G = 20, pe = /* @__PURE__ */ Q({
134
134
  }, 8, ["visible", "title", "confirm-text", "cancel-text", "custom-classes"])
135
135
  ], 2));
136
136
  }
137
- }), Ge = /* @__PURE__ */ fe(pe, [["__scopeId", "data-v-4707a253"]]);
137
+ }), Ge = /* @__PURE__ */ fe(pe, [["__scopeId", "data-v-df093e81"]]);
138
138
  export {
139
139
  Ge as default
140
140
  };