tuikit-atomicx-vue3 4.3.1 → 4.4.0

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 (113) hide show
  1. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D1G-LitO.js → MessageInput.vue_vue_type_script_setup_true_lang-D9jiYNFu.js} +31 -31
  2. package/dist/chat/index.d.ts +35 -35
  3. package/dist/chat/server.js +15 -15
  4. package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +6 -6
  5. package/dist/components/ContactList/ContactInfo/ContactInfo.js +1 -1
  6. package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +1 -1
  7. package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +9 -9
  8. package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +1 -1
  9. package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +4 -4
  10. package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +8 -8
  11. package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +7 -7
  12. package/dist/components/ContactList/ContactList.js +7 -7
  13. package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +8 -8
  14. package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +5 -5
  15. package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +5 -5
  16. package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +1 -1
  17. package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +1 -1
  18. package/dist/components/ContactList/ContactSearch/ContactSearch.js +6 -6
  19. package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +9 -9
  20. package/dist/components/ConversationList/ConversationList.js +4 -4
  21. package/dist/components/ConversationList/ConversationList.vue.d.ts +10 -10
  22. package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +10 -10
  23. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +20 -20
  24. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +2 -2
  25. package/dist/components/ConversationList/ConversationPreview/index.js +1 -1
  26. package/dist/components/ConversationList/index.d.ts +30 -30
  27. package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +88 -84
  28. package/dist/components/MessageInput/MessageInput.js +1 -1
  29. package/dist/components/MessageInput/MessageInput.vue.d.ts +2 -2
  30. package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +2 -1
  31. package/dist/components/MessageInput/TextEditor/EditorCore.js +23 -21
  32. package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +2 -2
  33. package/dist/components/MessageInput/TextEditor/index.js +32 -31
  34. package/dist/components/MessageInput/index.d.ts +6 -6
  35. package/dist/components/MessageInput/index.js +1 -1
  36. package/dist/components/MessageList/Message/AudioMessage/WaveForm.js +24 -34
  37. package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +29 -28
  38. package/dist/components/MessageList/Message/Message.vue.d.ts +1 -1
  39. package/dist/components/MessageList/MessageList.js +8 -6
  40. package/dist/components/MessageList/index.d.ts +2 -2
  41. package/dist/hooks/useAudioControl.d.ts +3 -3
  42. package/dist/hooks/useAudioControl.js +32 -30
  43. package/dist/rtc/server.js +45 -40
  44. package/dist/states/LoginState.d.ts +23 -0
  45. package/dist/states/LoginState.js +34 -39
  46. package/dist/states/MessageInputState/MessageInputState.d.ts +41 -7
  47. package/dist/states/MessageInputState/MessageInputState.js +60 -59
  48. package/dist/states/MessageInputState/utils.d.ts +8 -1
  49. package/dist/states/MessageInputState/utils.js +30 -10
  50. package/dist/styles/index.css +1 -1
  51. package/dist/utils/call.js +1 -1
  52. package/package.json +1 -1
  53. package/src/chat/server.ts +0 -1
  54. package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.vue +1 -1
  55. package/src/components/ContactList/ContactInfo/ContactInfo.vue +1 -1
  56. package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.vue +1 -1
  57. package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.vue +1 -1
  58. package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.vue +1 -1
  59. package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -1
  60. package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue +1 -1
  61. package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.vue +1 -1
  62. package/src/components/ContactList/ContactList.vue +1 -1
  63. package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.vue +1 -1
  64. package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.vue +1 -1
  65. package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.vue +1 -1
  66. package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.vue +1 -1
  67. package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.vue +1 -1
  68. package/src/components/ContactList/ContactSearch/ContactSearch.vue +1 -1
  69. package/src/components/ConversationList/ConversationActions/ConversationActions.vue +1 -1
  70. package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +2 -2
  71. package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue +1 -1
  72. package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue +1 -1
  73. package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +1 -1
  74. package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue +1 -1
  75. package/src/components/ConversationList/ConversationList.vue +2 -2
  76. package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +1 -1
  77. package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.vue +1 -1
  78. package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue +1 -1
  79. package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +1 -1
  80. package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +1 -1
  81. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +1 -1
  82. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +1 -1
  83. package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +3 -3
  84. package/src/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue +1 -1
  85. package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -1
  86. package/src/components/MessageInput/EmojiPicker/EmojiPicker.vue +7 -3
  87. package/src/components/MessageInput/MessageInput.module.scss +1 -0
  88. package/src/components/MessageInput/MessageInput.vue +1 -1
  89. package/src/components/MessageInput/TextEditor/EditorCore.ts +4 -2
  90. package/src/components/MessageInput/TextEditor/TextEditor.vue +3 -4
  91. package/src/components/MessageList/Message/AudioMessage/WaveForm.vue +20 -37
  92. package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +1 -1
  93. package/src/components/MessageList/Message/Message.vue +1 -1
  94. package/src/components/MessageList/MessageList.vue +2 -0
  95. package/src/components/Search/Search.vue +1 -1
  96. package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue +1 -1
  97. package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue +1 -1
  98. package/src/components/Search/SearchAdvanced/SearchAdvanced.vue +1 -1
  99. package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.vue +1 -1
  100. package/src/components/Search/SearchAdvanced/Slider/Slider.vue +1 -1
  101. package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue +1 -1
  102. package/src/components/Search/SearchBar/SearchBar.vue +1 -1
  103. package/src/components/Search/SearchResults/EmptyResult/EmptyResult.vue +1 -1
  104. package/src/components/Search/SearchResults/Loading/Loading.vue +1 -1
  105. package/src/components/Search/SearchResults/SearchResults.vue +1 -1
  106. package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue +1 -1
  107. package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.vue +1 -1
  108. package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +1 -1
  109. package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.vue +1 -1
  110. package/src/components/Search/SearchResults/SearchResultsItem/User/User.vue +1 -1
  111. package/src/hooks/useAudioControl.ts +17 -4
  112. package/src/rtc/server.ts +4 -0
  113. package/src/utils/call.ts +2 -2
@@ -1,4 +1,4 @@
1
- import { defineComponent as O, ref as U, watch as V, createElementBlock as H, openBlock as t, createElementVNode as c, createBlock as i, createCommentVNode as K, mergeProps as l, unref as o, renderSlot as j, normalizeClass as u, resolveDynamicComponent as a } from "vue";
1
+ import { defineComponent as O, ref as U, watch as V, createElementBlock as H, openBlock as o, createElementVNode as c, createBlock as i, createCommentVNode as K, mergeProps as l, unref as t, renderSlot as j, normalizeClass as u, resolveDynamicComponent as a } from "vue";
2
2
  import P from "@tencentcloud/chat-uikit-engine";
3
3
  import F from "../../Avatar/Avatar.js";
4
4
  import z from "./ConversationPreviewAbstract.js";
@@ -29,7 +29,7 @@ const ne = /* @__PURE__ */ O({
29
29
  style: {},
30
30
  children: {}
31
31
  },
32
- emits: ["select"],
32
+ emits: ["selectConversation"],
33
33
  setup(e, { emit: $ }) {
34
34
  const m = e, N = $, { activeConversation: h, setActiveConversation: R } = p(), _ = U(), s = U(!1), { isHovered: S } = X(_), { getEventHandlers: I } = Z(() => {
35
35
  r && (s.value = !0);
@@ -38,53 +38,53 @@ const ne = /* @__PURE__ */ O({
38
38
  r || (s.value = n);
39
39
  });
40
40
  const B = () => {
41
- N("select", m.conversation), R(m.conversation.conversationID);
41
+ N("selectConversation", m.conversation), R(m.conversation.conversationID);
42
42
  }, d = () => {
43
43
  s.value = !1;
44
44
  };
45
45
  return (n, de) => {
46
46
  var w, f, C, A, y, M, g, q;
47
- return t(), H("div", null, [
47
+ return o(), H("div", null, [
48
48
  c("div", l({
49
49
  ref_key: "conversationPreviewRef",
50
50
  ref: _,
51
51
  class: [
52
52
  n.$style.conversationPreview,
53
53
  e.className,
54
- o(r) && [n.$style["conversationPreview--mobile"]],
55
- (e.isSelected || ((w = e.conversation) == null ? void 0 : w.conversationID) === ((f = o(h)) == null ? void 0 : f.conversationID)) && [n.$style["conversationPreview--active"]],
56
- !((C = e.conversation) != null && C.isMuted) && (((A = e.conversation) == null ? void 0 : A.unreadCount) > 0 || ((M = (y = e.conversation) == null ? void 0 : y.markList) == null ? void 0 : M.includes(o(P).TYPES.CONV_MARK_TYPE_UNREAD))) && [n.$style["conversationPreview--unread"]],
54
+ t(r) && [n.$style["conversationPreview--mobile"]],
55
+ (e.isSelected || ((w = e.conversation) == null ? void 0 : w.conversationID) === ((f = t(h)) == null ? void 0 : f.conversationID)) && [n.$style["conversationPreview--active"]],
56
+ !((C = e.conversation) != null && C.isMuted) && (((A = e.conversation) == null ? void 0 : A.unreadCount) > 0 || ((M = (y = e.conversation) == null ? void 0 : y.markList) == null ? void 0 : M.includes(t(P).TYPES.CONV_MARK_TYPE_UNREAD))) && [n.$style["conversationPreview--unread"]],
57
57
  ((g = e.conversation) == null ? void 0 : g.isPinned) && [n.$style["conversationPreview--pin"]],
58
58
  ((q = e.conversation) == null ? void 0 : q.isMuted) && [n.$style["conversationPreview--mute"]]
59
59
  ],
60
60
  style: e.style
61
- }, o(Y), { onClick: B }), [
61
+ }, t(Y), { onClick: B }), [
62
62
  j(n.$slots, "default", {}, () => {
63
63
  var v, E, D, T, b, k, x, L;
64
64
  return [
65
65
  c("div", {
66
66
  class: u(n.$style.conversationPreview__avatar)
67
67
  }, [
68
- (t(), i(a(e.Avatar), {
68
+ (o(), i(a(e.Avatar), {
69
69
  src: (E = (v = e.conversation) == null ? void 0 : v.getAvatar) == null ? void 0 : E.call(v),
70
- unreadCount: (D = e.conversation) != null && D.isMuted && ((b = (T = e.conversation) == null ? void 0 : T.markList) != null && b.includes(o(P).TYPES.CONV_MARK_TYPE_UNREAD)) ? 1 : void 0,
71
- isDotUnreadCount: ((k = e.conversation) == null ? void 0 : k.isMuted) && ((L = (x = e.conversation) == null ? void 0 : x.markList) == null ? void 0 : L.includes(o(P).TYPES.CONV_MARK_TYPE_UNREAD))
70
+ unreadCount: (D = e.conversation) != null && D.isMuted && ((b = (T = e.conversation) == null ? void 0 : T.markList) != null && b.includes(t(P).TYPES.CONV_MARK_TYPE_UNREAD)) ? 1 : void 0,
71
+ isDotUnreadCount: ((k = e.conversation) == null ? void 0 : k.isMuted) && ((L = (x = e.conversation) == null ? void 0 : x.markList) == null ? void 0 : L.includes(t(P).TYPES.CONV_MARK_TYPE_UNREAD))
72
72
  }, null, 8, ["src", "unreadCount", "isDotUnreadCount"]))
73
73
  ], 2),
74
74
  c("div", {
75
75
  class: u(n.$style.conversationPreview__content)
76
76
  }, [
77
- (t(), i(a(e.Title), { conversation: e.conversation }, null, 8, ["conversation"])),
78
- (t(), i(a(e.LastMessageAbstract), { conversation: e.conversation }, null, 8, ["conversation"]))
77
+ (o(), i(a(e.Title), { conversation: e.conversation }, null, 8, ["conversation"])),
78
+ (o(), i(a(e.LastMessageAbstract), { conversation: e.conversation }, null, 8, ["conversation"]))
79
79
  ], 2),
80
80
  c("div", {
81
81
  class: u(n.$style.conversationPreview__external)
82
82
  }, [
83
- (t(), i(a(e.Unread), { conversation: e.conversation }, null, 8, ["conversation"])),
84
- e.enableActions && s.value && !o(r) ? (t(), i(a(e.ConversationActions), l({
83
+ (o(), i(a(e.Unread), { conversation: e.conversation }, null, 8, ["conversation"])),
84
+ e.enableActions && s.value && !t(r) ? (o(), i(a(e.ConversationActions), l({
85
85
  key: 0,
86
86
  conversation: e.conversation
87
- }, e.actionsConfig, { onClose: d }), null, 16, ["conversation"])) : (t(), i(a(e.LastMessageTimestamp), {
87
+ }, e.actionsConfig, { onClose: d }), null, 16, ["conversation"])) : (o(), i(a(e.LastMessageTimestamp), {
88
88
  key: 1,
89
89
  conversation: e.conversation
90
90
  }, null, 8, ["conversation"]))
@@ -92,18 +92,18 @@ const ne = /* @__PURE__ */ O({
92
92
  ];
93
93
  })
94
94
  ], 16),
95
- o(r) && e.enableActions && s.value ? (t(), i(a(e.ConversationActions), l({
95
+ t(r) && e.enableActions && s.value ? (o(), i(a(e.ConversationActions), l({
96
96
  key: 0,
97
97
  conversation: e.conversation
98
98
  }, e.actionsConfig, { onClose: d }), null, 16, ["conversation"])) : K("", !0)
99
99
  ]);
100
100
  };
101
101
  }
102
- }), te = "_conversationPreview_29xqv_12", oe = "_conversationPreview__avatar_29xqv_34", ie = "_conversationPreview__content_29xqv_38", ae = "_conversationPreview__header_29xqv_42", se = "_conversationPreview__title_29xqv_48", re = "_conversationPreview__time_29xqv_58", ve = "_conversationPreview__footer_29xqv_65", ce = "_conversationPreview__abstract_29xqv_70", le = "_conversationPreview__external_29xqv_79", ue = "_conversationPreview__unread_29xqv_88", Pe = "_conversationPreview__actions_29xqv_108", me = {
103
- conversationPreview: te,
102
+ }), oe = "_conversationPreview_29xqv_12", te = "_conversationPreview__avatar_29xqv_34", ie = "_conversationPreview__content_29xqv_38", ae = "_conversationPreview__header_29xqv_42", se = "_conversationPreview__title_29xqv_48", re = "_conversationPreview__time_29xqv_58", ve = "_conversationPreview__footer_29xqv_65", ce = "_conversationPreview__abstract_29xqv_70", le = "_conversationPreview__external_29xqv_79", ue = "_conversationPreview__unread_29xqv_88", Pe = "_conversationPreview__actions_29xqv_108", me = {
103
+ conversationPreview: oe,
104
104
  "conversationPreview--active": "_conversationPreview--active_29xqv_28",
105
105
  "conversationPreview--pin": "_conversationPreview--pin_29xqv_31",
106
- conversationPreview__avatar: oe,
106
+ conversationPreview__avatar: te,
107
107
  conversationPreview__content: ie,
108
108
  conversationPreview__header: ae,
109
109
  conversationPreview__title: se,
@@ -276,7 +276,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
276
276
  };
277
277
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
278
278
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
279
- select: (conversation: ConversationModel) => void;
279
+ selectConversation: (conversation: ConversationModel) => void;
280
280
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ConversationPreviewUIProps>, {
281
281
  isSelected: boolean;
282
282
  enableActions: boolean;
@@ -550,7 +550,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
550
550
  };
551
551
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
552
552
  }>>> & Readonly<{
553
- onSelect?: ((conversation: ConversationModel) => any) | undefined;
553
+ onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
554
554
  }>, {
555
555
  Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
556
556
  isSelected: boolean;
@@ -53,7 +53,7 @@ const O = /* @__PURE__ */ C({
53
53
  actionsConfig: e.actionsConfig,
54
54
  className: e.className,
55
55
  style: g(e.style),
56
- onSelect: f
56
+ onSelectConversation: f
57
57
  }, {
58
58
  default: p(() => [
59
59
  b(n.$slots, "default")
@@ -433,9 +433,9 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
433
433
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
434
434
  };
435
435
  }>> & Readonly<{
436
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
436
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
437
437
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
438
- select: (conversation: import('../..').ConversationModel) => void;
438
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
439
439
  }, import('vue').PublicProps, {
440
440
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
441
441
  isSelected: boolean;
@@ -768,7 +768,7 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
768
768
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
769
769
  };
770
770
  }>> & Readonly<{
771
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
771
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
772
772
  }>, {}, {}, {}, {}, {
773
773
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
774
774
  isSelected: boolean;
@@ -1098,9 +1098,9 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
1098
1098
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
1099
1099
  };
1100
1100
  }>> & Readonly<{
1101
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
1101
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
1102
1102
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1103
- select: (conversation: import('../..').ConversationModel) => void;
1103
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
1104
1104
  }, string, {
1105
1105
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
1106
1106
  isSelected: boolean;
@@ -4108,9 +4108,9 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
4108
4108
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
4109
4109
  };
4110
4110
  }>> & Readonly<{
4111
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
4111
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
4112
4112
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4113
- select: (conversation: import('../..').ConversationModel) => void;
4113
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
4114
4114
  }, import('vue').PublicProps, {
4115
4115
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
4116
4116
  isSelected: boolean;
@@ -4443,7 +4443,7 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
4443
4443
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
4444
4444
  };
4445
4445
  }>> & Readonly<{
4446
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
4446
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
4447
4447
  }>, {}, {}, {}, {}, {
4448
4448
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
4449
4449
  isSelected: boolean;
@@ -4773,9 +4773,9 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
4773
4773
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
4774
4774
  };
4775
4775
  }>> & Readonly<{
4776
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
4776
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
4777
4777
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4778
- select: (conversation: import('../..').ConversationModel) => void;
4778
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
4779
4779
  }, string, {
4780
4780
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
4781
4781
  isSelected: boolean;
@@ -8265,9 +8265,9 @@ declare const ConversationPreview: {
8265
8265
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
8266
8266
  };
8267
8267
  }>> & Readonly<{
8268
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
8268
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
8269
8269
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8270
- select: (conversation: import('../..').ConversationModel) => void;
8270
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
8271
8271
  }, import('vue').PublicProps, {
8272
8272
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
8273
8273
  isSelected: boolean;
@@ -8600,7 +8600,7 @@ declare const ConversationPreview: {
8600
8600
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
8601
8601
  };
8602
8602
  }>> & Readonly<{
8603
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
8603
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
8604
8604
  }>, {}, {}, {}, {}, {
8605
8605
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
8606
8606
  isSelected: boolean;
@@ -8930,9 +8930,9 @@ declare const ConversationPreview: {
8930
8930
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
8931
8931
  };
8932
8932
  }>> & Readonly<{
8933
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
8933
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
8934
8934
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8935
- select: (conversation: import('../..').ConversationModel) => void;
8935
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
8936
8936
  }, string, {
8937
8937
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
8938
8938
  isSelected: boolean;
@@ -9555,9 +9555,9 @@ declare const ConversationPreview: {
9555
9555
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
9556
9556
  };
9557
9557
  }>> & Readonly<{
9558
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
9558
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
9559
9559
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9560
- select: (conversation: import('../..').ConversationModel) => void;
9560
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
9561
9561
  }, import('vue').PublicProps, {
9562
9562
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
9563
9563
  isSelected: boolean;
@@ -9890,7 +9890,7 @@ declare const ConversationPreview: {
9890
9890
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
9891
9891
  };
9892
9892
  }>> & Readonly<{
9893
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
9893
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
9894
9894
  }>, {}, {}, {}, {}, {
9895
9895
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
9896
9896
  isSelected: boolean;
@@ -10220,9 +10220,9 @@ declare const ConversationPreview: {
10220
10220
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
10221
10221
  };
10222
10222
  }>> & Readonly<{
10223
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
10223
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
10224
10224
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10225
- select: (conversation: import('../..').ConversationModel) => void;
10225
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
10226
10226
  }, string, {
10227
10227
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
10228
10228
  isSelected: boolean;
@@ -10840,9 +10840,9 @@ declare const ConversationPreview: {
10840
10840
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
10841
10841
  };
10842
10842
  }>> & Readonly<{
10843
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
10843
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
10844
10844
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10845
- select: (conversation: import('../..').ConversationModel) => void;
10845
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
10846
10846
  }, import('vue').PublicProps, {
10847
10847
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
10848
10848
  isSelected: boolean;
@@ -11175,7 +11175,7 @@ declare const ConversationPreview: {
11175
11175
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
11176
11176
  };
11177
11177
  }>> & Readonly<{
11178
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
11178
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
11179
11179
  }>, {}, {}, {}, {}, {
11180
11180
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
11181
11181
  isSelected: boolean;
@@ -11505,9 +11505,9 @@ declare const ConversationPreview: {
11505
11505
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
11506
11506
  };
11507
11507
  }>> & Readonly<{
11508
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
11508
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
11509
11509
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11510
- select: (conversation: import('../..').ConversationModel) => void;
11510
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
11511
11511
  }, string, {
11512
11512
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
11513
11513
  isSelected: boolean;
@@ -12008,9 +12008,9 @@ declare const ConversationPreviewUI: {
12008
12008
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
12009
12009
  };
12010
12010
  }>> & Readonly<{
12011
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
12011
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
12012
12012
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12013
- select: (conversation: import('../..').ConversationModel) => void;
12013
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
12014
12014
  }, import('vue').PublicProps, {
12015
12015
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
12016
12016
  isSelected: boolean;
@@ -12343,7 +12343,7 @@ declare const ConversationPreviewUI: {
12343
12343
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
12344
12344
  };
12345
12345
  }>> & Readonly<{
12346
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
12346
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
12347
12347
  }>, {}, {}, {}, {}, {
12348
12348
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
12349
12349
  isSelected: boolean;
@@ -12673,9 +12673,9 @@ declare const ConversationPreviewUI: {
12673
12673
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
12674
12674
  };
12675
12675
  }>> & Readonly<{
12676
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
12676
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
12677
12677
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12678
- select: (conversation: import('../..').ConversationModel) => void;
12678
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
12679
12679
  }, string, {
12680
12680
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
12681
12681
  isSelected: boolean;
@@ -1,13 +1,14 @@
1
- import { defineComponent as g, ref as C, useCssModule as E, onMounted as P, createElementBlock as _, openBlock as d, createVNode as s, unref as e, withCtx as n, createElementVNode as r, mergeProps as h, renderSlot as x, normalizeClass as a, Fragment as M, renderList as I } from "vue";
2
- import { useUIKit as z, IconEmoji as O } from "@tencentcloud/uikit-base-component-vue3";
3
- import { c as T } from "../../../index-DPczIrgX.js";
4
- import { P as $, a as y, b as B, c as S } from "../../../PopoverTrigger-L8abAry7.js";
1
+ import { defineComponent as g, ref as C, useCssModule as E, onMounted as P, createBlock as h, openBlock as _, unref as e, withCtx as s, createVNode as i, createElementVNode as n, mergeProps as x, renderSlot as M, normalizeClass as a, createElementBlock as u, Fragment as I, renderList as $ } from "vue";
2
+ import { useUIKit as z, IconEmoji as B } from "@tencentcloud/uikit-base-component-vue3";
3
+ import { c as O } from "../../../index-DPczIrgX.js";
4
+ import { P as T, a as y, b as S, c as U } from "../../../PopoverTrigger-L8abAry7.js";
5
+ import { View as w } from "../../../baseComp/View/index.js";
5
6
  import { emojiUrlMap as c, emojiBaseUrl as m } from "../../../constants/emoji.js";
6
- import { transformTextWithEmojiKeyToName as U } from "../../../utils/emoji.js";
7
- import { useMessageInputState as N } from "../../../states/MessageInputState/MessageInputState.js";
8
- import { MessageContentType as w } from "../../../states/MessageInputState/type.js";
9
- import { _ as V } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
10
- const A = ["onClick"], F = ["src", "alt"], J = /* @__PURE__ */ g({
7
+ import { transformTextWithEmojiKeyToName as N } from "../../../utils/emoji.js";
8
+ import { useMessageInputState as V } from "../../../states/MessageInputState/MessageInputState.js";
9
+ import { MessageContentType as A } from "../../../states/MessageInputState/type.js";
10
+ import { _ as F } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const J = ["onClick"], L = ["src", "alt"], R = /* @__PURE__ */ g({
11
12
  name: "EmojiPicker",
12
13
  inheritAttrs: !1,
13
14
  __name: "EmojiPicker",
@@ -17,103 +18,106 @@ const A = ["onClick"], F = ["src", "alt"], J = /* @__PURE__ */ g({
17
18
  disabled: { type: Boolean, default: !1 }
18
19
  },
19
20
  setup(f) {
20
- const i = f, p = C(!1), o = E(), { t: k } = z(), { insertContent: j } = N();
21
+ const l = f, d = C(!1), o = E(), { t: k } = z(), { insertContent: j } = V();
21
22
  P(() => {
22
23
  Object.values(c).forEach((t) => {
23
- const u = new Image();
24
- u.src = m + t;
24
+ const p = new Image();
25
+ p.src = m + t;
25
26
  });
26
27
  });
27
28
  const b = (t) => {
28
- i.disabled || (p.value = t);
29
+ l.disabled || (d.value = t);
29
30
  };
30
31
  function v(t) {
31
32
  t && j([
32
33
  {
33
- type: w.EMOJI,
34
+ type: A.EMOJI,
34
35
  content: {
35
36
  url: m + c[t],
36
37
  key: t,
37
- text: U(t)
38
+ text: N(t)
38
39
  }
39
40
  }
40
41
  ]);
41
42
  }
42
- return (t, u) => (d(), _("div", null, [
43
- s(e($), {
44
- open: p.value,
45
- "onUpdate:open": b
46
- }, {
47
- default: n(() => [
48
- s(e(y), {
49
- as: "div",
50
- disabled: i.disabled
51
- }, {
52
- default: n(() => [
53
- r("div", h({
54
- "data-test": "test",
55
- class: e(T)(
56
- e(o)["emoji-picker__button"],
57
- {
58
- [e(o).disabled]: i.disabled
59
- }
60
- )
61
- }, t.$attrs), [
62
- x(t.$slots, "default", {}, () => [
63
- s(e(O), {
64
- class: a(e(o)["emoji-picker__icon"]),
65
- size: i.iconSize
66
- }, null, 8, ["class", "size"])
67
- ])
68
- ], 16)
69
- ]),
70
- _: 3
71
- }, 8, ["disabled"]),
72
- s(e(B), null, {
73
- default: n(() => [
74
- s(e(S), {
75
- side: "top",
76
- align: "start",
77
- "side-offset": 5
78
- }, {
79
- default: n(() => [
80
- r("div", null, [
81
- r("div", {
82
- class: a(e(o)["emoji-picker__list"])
83
- }, [
84
- (d(!0), _(M, null, I(Object.keys(e(c)), (l) => (d(), _("div", {
85
- key: l,
86
- class: a(e(o)["emoji-picker__list-item"]),
87
- onClick: (q) => v(l)
43
+ return (t, p) => (_(), h(e(w), null, {
44
+ default: s(() => [
45
+ i(e(T), {
46
+ open: d.value,
47
+ "onUpdate:open": b
48
+ }, {
49
+ default: s(() => [
50
+ i(e(y), {
51
+ as: "div",
52
+ disabled: l.disabled
53
+ }, {
54
+ default: s(() => [
55
+ n("div", x({
56
+ "data-test": "test",
57
+ class: e(O)(
58
+ e(o)["emoji-picker__button"],
59
+ {
60
+ [e(o).disabled]: l.disabled
61
+ }
62
+ )
63
+ }, t.$attrs), [
64
+ M(t.$slots, "default", {}, () => [
65
+ i(e(B), {
66
+ class: a(e(o)["emoji-picker__icon"]),
67
+ size: l.iconSize
68
+ }, null, 8, ["class", "size"])
69
+ ])
70
+ ], 16)
71
+ ]),
72
+ _: 3
73
+ }, 8, ["disabled"]),
74
+ i(e(S), null, {
75
+ default: s(() => [
76
+ i(e(U), {
77
+ side: "top",
78
+ align: "start",
79
+ "side-offset": 5
80
+ }, {
81
+ default: s(() => [
82
+ n("div", null, [
83
+ n("div", {
84
+ class: a(e(o)["emoji-picker__list"])
88
85
  }, [
89
- r("img", {
86
+ (_(!0), u(I, null, $(Object.keys(e(c)), (r) => (_(), u("div", {
87
+ key: r,
90
88
  class: a(e(o)["emoji-picker__list-item"]),
91
- src: e(m) + e(c)[l],
92
- alt: e(k)(`Emoji.${l}`)
93
- }, null, 10, F)
94
- ], 10, A))), 128))
95
- ], 2)
96
- ])
97
- ]),
98
- _: 1
99
- })
100
- ]),
101
- _: 1
102
- })
103
- ]),
104
- _: 3
105
- }, 8, ["open"])
106
- ]));
89
+ onClick: (G) => v(r)
90
+ }, [
91
+ n("img", {
92
+ class: a(e(o)["emoji-picker__list-item"]),
93
+ src: e(m) + e(c)[r],
94
+ alt: e(k)(`Emoji.${r}`)
95
+ }, null, 10, L)
96
+ ], 10, J))), 128))
97
+ ], 2)
98
+ ])
99
+ ]),
100
+ _: 1
101
+ })
102
+ ]),
103
+ _: 1
104
+ })
105
+ ]),
106
+ _: 3
107
+ }, 8, ["open"])
108
+ ]),
109
+ _: 3
110
+ }));
107
111
  }
108
- }), L = "_disabled_kxj4t_16", R = {
112
+ }), W = "_disabled_kxj4t_16", q = {
109
113
  "emoji-picker__button": "_emoji-picker__button_kxj4t_1",
110
- disabled: L,
114
+ disabled: W,
111
115
  "emoji-picker__icon": "_emoji-picker__icon_kxj4t_22",
112
116
  "emoji-picker__list": "_emoji-picker__list_kxj4t_25",
113
117
  "emoji-picker__list-item": "_emoji-picker__list-item_kxj4t_36"
114
- }, W = {
115
- $style: R
116
- }, te = /* @__PURE__ */ V(J, [["__cssModules", W]]);
118
+ }, D = {
119
+ $style: q
120
+ }, ie = /* @__PURE__ */ F(R, [["__cssModules", D]]);
117
121
  export {
118
- te as default
122
+ ie as default
119
123
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../../MessageInput.vue_vue_type_script_setup_true_lang-D1G-LitO.js";
1
+ import { _ as f } from "../../MessageInput.vue_vue_type_script_setup_true_lang-D9jiYNFu.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -13,14 +13,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
13
13
  autoFocus: boolean;
14
14
  disabled: boolean;
15
15
  hideSendButton: boolean;
16
- placeholder: string;
16
+ placeholder: undefined;
17
17
  attachmentPickerMode: string;
18
18
  actions: () => string[];
19
19
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MessageInputProps>, {
20
20
  autoFocus: boolean;
21
21
  disabled: boolean;
22
22
  hideSendButton: boolean;
23
- placeholder: string;
23
+ placeholder: undefined;
24
24
  attachmentPickerMode: string;
25
25
  actions: () => string[];
26
26
  }>>> & Readonly<{}>, {
@@ -6,11 +6,12 @@ interface EditorOptions {
6
6
  placeholder?: string;
7
7
  autoFocus?: boolean;
8
8
  disabled?: boolean;
9
+ isPlaceholderOnlyShowWhenEditable?: boolean;
9
10
  onUpdate?: (content: InputContent[]) => void;
10
11
  onEnter?: () => void;
11
12
  onFocus?: () => void;
12
13
  onBlur?: () => void;
13
14
  }
14
- declare function createEditor({ element, placeholder, autoFocus, disabled, onUpdate, onEnter, onFocus, onBlur, }: EditorOptions): Editor;
15
+ declare function createEditor({ element, placeholder, autoFocus, disabled, isPlaceholderOnlyShowWhenEditable, onUpdate, onEnter, onFocus, onBlur, }: EditorOptions): Editor;
15
16
  export { createEditor, };
16
17
  export type { Editor, };