tuikit-atomicx-vue3 4.4.0-beta.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 +2 -2
  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 B, computed as E, createElementBlock as f, openBlock as r, normalizeClass as s, unref as o, renderSlot as i, createElementVNode as m, Fragment as F, renderList as V, createBlock as d, resolveDynamicComponent as A, mergeProps as M, createVNode as T, withCtx as g, createCommentVNode as j } from "vue";
1
+ import { defineComponent as E, computed as F, createElementBlock as f, openBlock as l, normalizeClass as s, unref as t, renderSlot as i, createElementVNode as m, Fragment as V, renderList as A, createBlock as d, resolveDynamicComponent as M, mergeProps as T, createVNode as w, withCtx as g, createCommentVNode as j } from "vue";
2
2
  import { AttachmentPicker as k } from "./components/MessageInput/AttachmentPicker/index.js";
3
3
  import N from "./components/MessageInput/AttachmentPicker/FilePicker.js";
4
4
  import L from "./components/MessageInput/AttachmentPicker/ImagePicker.js";
@@ -11,20 +11,20 @@ import { TextEditor as Q } from "./components/MessageInput/TextEditor/index.js";
11
11
  import R from "./components/MessageInput/VideoCallPicker/VideoCallPicker.js";
12
12
  import { useMessageInputState as U } from "./states/MessageInputState/MessageInputState.js";
13
13
  const a = {
14
- "message-input": "_message-input_clemw_1",
15
- "message-input__toolbar": "_message-input__toolbar_clemw_11",
16
- "message-input__wrapper": "_message-input__wrapper_clemw_18",
17
- "message-input__leftInline": "_message-input__leftInline_clemw_23",
18
- "message-input__rightInline": "_message-input__rightInline_clemw_23",
19
- "message-input__actions": "_message-input__actions_clemw_27",
20
- "message-input__footerToolbar": "_message-input__footerToolbar_clemw_33"
21
- }, se = /* @__PURE__ */ B({
14
+ "message-input": "_message-input_m79i1_1",
15
+ "message-input__toolbar": "_message-input__toolbar_m79i1_11",
16
+ "message-input__wrapper": "_message-input__wrapper_m79i1_19",
17
+ "message-input__leftInline": "_message-input__leftInline_m79i1_24",
18
+ "message-input__rightInline": "_message-input__rightInline_m79i1_24",
19
+ "message-input__actions": "_message-input__actions_m79i1_28",
20
+ "message-input__footerToolbar": "_message-input__footerToolbar_m79i1_34"
21
+ }, se = /* @__PURE__ */ E({
22
22
  __name: "MessageInput",
23
23
  props: {
24
24
  autoFocus: { type: Boolean, default: !0 },
25
25
  disabled: { type: Boolean, default: !1 },
26
26
  hideSendButton: { type: Boolean, default: !1 },
27
- placeholder: { default: "" },
27
+ placeholder: { default: void 0 },
28
28
  attachmentPickerMode: { default: "collapsed" },
29
29
  actions: { default: () => ["EmojiPicker", "ImagePicker", "FilePicker", "VideoPicker"] },
30
30
  slots: {}
@@ -38,44 +38,44 @@ const a = {
38
38
  { key: "VideoPicker", component: O },
39
39
  { key: "AudioCallPicker", component: x },
40
40
  { key: "VideoCallPicker", component: R }
41
- ], c = n, { inputRawValue: P, setContent: b, sendMessage: C } = U(), h = (e, l) => Object.fromEntries(
42
- l.map((t) => [t, e[t]]).filter(([, t]) => t !== void 0)
41
+ ], c = n, { inputRawValue: P, setContent: b, sendMessage: C } = U(), h = (e, r) => Object.fromEntries(
42
+ r.map((o) => [o, e[o]]).filter(([, o]) => o !== void 0)
43
43
  ), y = (e) => {
44
- const { component: l = () => null } = u.find(({ key: t }) => t === e) ?? {};
45
- return { Component: l, props: { disabled: c.disabled } };
44
+ const { component: r = () => null } = u.find(({ key: o }) => o === e) ?? {};
45
+ return { Component: r, props: { disabled: c.disabled } };
46
46
  }, I = (e) => {
47
47
  var _;
48
- const { key: l, component: t, ...p } = e, $ = ((_ = u.find(({ key: S }) => S === l)) == null ? void 0 : _.component) ?? (() => null);
48
+ const { key: r, component: o, ...p } = e, S = ((_ = u.find(({ key: B }) => B === r)) == null ? void 0 : _.component) ?? (() => null);
49
49
  return {
50
- Component: t ?? $,
50
+ Component: o ?? S,
51
51
  props: h(p, ["label", "className", "style", "iconSize"])
52
52
  };
53
- }, v = E(
53
+ }, v = F(
54
54
  () => c.actions.map((e) => typeof e == "string" ? y(e) : I(e)).filter(({ Component: e }) => e !== null)
55
- ), w = () => {
55
+ ), $ = () => {
56
56
  P.value && (C(), b(""));
57
57
  };
58
- return (e, l) => (r(), f("div", {
59
- class: s([o(a)["message-input"]])
58
+ return (e, r) => (l(), f("div", {
59
+ class: s([t(a)["message-input"]])
60
60
  }, [
61
61
  i(e.$slots, "headerToolbar", {}, () => [
62
62
  m("div", {
63
- class: s(o(a)["message-input__toolbar"])
63
+ class: s(t(a)["message-input__toolbar"])
64
64
  }, [
65
- (r(!0), f(F, null, V(v.value, (t, p) => (r(), d(A(t.Component), M({ key: p }, { ref_for: !0 }, { ...t.props, ...t.Component === o(k) ? { attachmentPickerMode: n.attachmentPickerMode } : {} }), null, 16))), 128))
65
+ (l(!0), f(V, null, A(v.value, (o, p) => (l(), d(M(o.Component), T({ key: p }, { ref_for: !0 }, { ...o.props, ...o.Component === t(k) ? { attachmentPickerMode: n.attachmentPickerMode } : {} }), null, 16))), 128))
66
66
  ], 2)
67
67
  ]),
68
68
  m("div", {
69
- class: s(o(a)["message-input__wrapper"])
69
+ class: s(t(a)["message-input__wrapper"])
70
70
  }, [
71
- T(o(D)),
71
+ w(t(D)),
72
72
  m("div", {
73
- class: s(o(a)["message-input__leftInline"])
73
+ class: s(t(a)["message-input__leftInline"])
74
74
  }, [
75
75
  i(e.$slots, "leftInline")
76
76
  ], 2),
77
77
  i(e.$slots, "textEditor", {}, () => [
78
- (r(), d(o(Q), {
78
+ (l(), d(t(Q), {
79
79
  key: n.disabled ? "disabled-editor" : "enabled-editor",
80
80
  autoFocus: n.autoFocus,
81
81
  disabled: n.disabled,
@@ -91,20 +91,20 @@ const a = {
91
91
  }, 8, ["autoFocus", "disabled", "placeholder"]))
92
92
  ]),
93
93
  m("div", {
94
- class: s(o(a)["message-input__rightInline"])
94
+ class: s(t(a)["message-input__rightInline"])
95
95
  }, [
96
96
  i(e.$slots, "rightInline")
97
97
  ], 2)
98
98
  ], 2),
99
99
  i(e.$slots, "footerToolbar", {}, () => [
100
100
  m("div", {
101
- class: s(o(a)["message-input__footerToolbar"])
101
+ class: s(t(a)["message-input__footerToolbar"])
102
102
  }, [
103
- n.hideSendButton ? j("", !0) : (r(), d(o(K), {
103
+ n.hideSendButton ? j("", !0) : (l(), d(t(K), {
104
104
  key: 0,
105
- class: s(o(a)["message-input__send-button"]),
105
+ class: s(t(a)["message-input__send-button"]),
106
106
  disabled: c.disabled,
107
- onClick: w
107
+ onClick: $
108
108
  }, null, 8, ["class", "disabled"]))
109
109
  ], 2)
110
110
  ])
@@ -1777,9 +1777,9 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
1777
1777
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
1778
1778
  };
1779
1779
  }>> & Readonly<{
1780
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
1780
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
1781
1781
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1782
- select: (conversation: import('..').ConversationModel) => void;
1782
+ selectConversation: (conversation: import('..').ConversationModel) => void;
1783
1783
  }, import('vue').PublicProps, {
1784
1784
  Avatar: import('vue').Component<import('..').AvatarProps>;
1785
1785
  isSelected: boolean;
@@ -2112,7 +2112,7 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
2112
2112
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
2113
2113
  };
2114
2114
  }>> & Readonly<{
2115
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
2115
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
2116
2116
  }>, {}, {}, {}, {}, {
2117
2117
  Avatar: import('vue').Component<import('..').AvatarProps>;
2118
2118
  isSelected: boolean;
@@ -2442,9 +2442,9 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
2442
2442
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
2443
2443
  };
2444
2444
  }>> & Readonly<{
2445
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
2445
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
2446
2446
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2447
- select: (conversation: import('..').ConversationModel) => void;
2447
+ selectConversation: (conversation: import('..').ConversationModel) => void;
2448
2448
  }, string, {
2449
2449
  Avatar: import('vue').Component<import('..').AvatarProps>;
2450
2450
  isSelected: boolean;
@@ -5452,9 +5452,9 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
5452
5452
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
5453
5453
  };
5454
5454
  }>> & Readonly<{
5455
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
5455
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
5456
5456
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5457
- select: (conversation: import('..').ConversationModel) => void;
5457
+ selectConversation: (conversation: import('..').ConversationModel) => void;
5458
5458
  }, import('vue').PublicProps, {
5459
5459
  Avatar: import('vue').Component<import('..').AvatarProps>;
5460
5460
  isSelected: boolean;
@@ -5787,7 +5787,7 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
5787
5787
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
5788
5788
  };
5789
5789
  }>> & Readonly<{
5790
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
5790
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
5791
5791
  }>, {}, {}, {}, {}, {
5792
5792
  Avatar: import('vue').Component<import('..').AvatarProps>;
5793
5793
  isSelected: boolean;
@@ -6117,9 +6117,9 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
6117
6117
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
6118
6118
  };
6119
6119
  }>> & Readonly<{
6120
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
6120
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
6121
6121
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6122
- select: (conversation: import('..').ConversationModel) => void;
6122
+ selectConversation: (conversation: import('..').ConversationModel) => void;
6123
6123
  }, string, {
6124
6124
  Avatar: import('vue').Component<import('..').AvatarProps>;
6125
6125
  isSelected: boolean;
@@ -9525,9 +9525,9 @@ declare const ConversationPreview: {
9525
9525
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
9526
9526
  };
9527
9527
  }>> & Readonly<{
9528
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
9528
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
9529
9529
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9530
- select: (conversation: import('..').ConversationModel) => void;
9530
+ selectConversation: (conversation: import('..').ConversationModel) => void;
9531
9531
  }, import('vue').PublicProps, {
9532
9532
  Avatar: import('vue').Component<import('..').AvatarProps>;
9533
9533
  isSelected: boolean;
@@ -9860,7 +9860,7 @@ declare const ConversationPreview: {
9860
9860
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
9861
9861
  };
9862
9862
  }>> & Readonly<{
9863
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
9863
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
9864
9864
  }>, {}, {}, {}, {}, {
9865
9865
  Avatar: import('vue').Component<import('..').AvatarProps>;
9866
9866
  isSelected: boolean;
@@ -10190,9 +10190,9 @@ declare const ConversationPreview: {
10190
10190
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
10191
10191
  };
10192
10192
  }>> & Readonly<{
10193
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
10193
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
10194
10194
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10195
- select: (conversation: import('..').ConversationModel) => void;
10195
+ selectConversation: (conversation: import('..').ConversationModel) => void;
10196
10196
  }, string, {
10197
10197
  Avatar: import('vue').Component<import('..').AvatarProps>;
10198
10198
  isSelected: boolean;
@@ -10815,9 +10815,9 @@ declare const ConversationPreview: {
10815
10815
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
10816
10816
  };
10817
10817
  }>> & Readonly<{
10818
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
10818
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
10819
10819
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10820
- select: (conversation: import('..').ConversationModel) => void;
10820
+ selectConversation: (conversation: import('..').ConversationModel) => void;
10821
10821
  }, import('vue').PublicProps, {
10822
10822
  Avatar: import('vue').Component<import('..').AvatarProps>;
10823
10823
  isSelected: boolean;
@@ -11150,7 +11150,7 @@ declare const ConversationPreview: {
11150
11150
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
11151
11151
  };
11152
11152
  }>> & Readonly<{
11153
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
11153
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
11154
11154
  }>, {}, {}, {}, {}, {
11155
11155
  Avatar: import('vue').Component<import('..').AvatarProps>;
11156
11156
  isSelected: boolean;
@@ -11480,9 +11480,9 @@ declare const ConversationPreview: {
11480
11480
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
11481
11481
  };
11482
11482
  }>> & Readonly<{
11483
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
11483
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
11484
11484
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11485
- select: (conversation: import('..').ConversationModel) => void;
11485
+ selectConversation: (conversation: import('..').ConversationModel) => void;
11486
11486
  }, string, {
11487
11487
  Avatar: import('vue').Component<import('..').AvatarProps>;
11488
11488
  isSelected: boolean;
@@ -12100,9 +12100,9 @@ declare const ConversationPreview: {
12100
12100
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
12101
12101
  };
12102
12102
  }>> & Readonly<{
12103
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
12103
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
12104
12104
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12105
- select: (conversation: import('..').ConversationModel) => void;
12105
+ selectConversation: (conversation: import('..').ConversationModel) => void;
12106
12106
  }, import('vue').PublicProps, {
12107
12107
  Avatar: import('vue').Component<import('..').AvatarProps>;
12108
12108
  isSelected: boolean;
@@ -12435,7 +12435,7 @@ declare const ConversationPreview: {
12435
12435
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
12436
12436
  };
12437
12437
  }>> & Readonly<{
12438
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
12438
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
12439
12439
  }>, {}, {}, {}, {}, {
12440
12440
  Avatar: import('vue').Component<import('..').AvatarProps>;
12441
12441
  isSelected: boolean;
@@ -12765,9 +12765,9 @@ declare const ConversationPreview: {
12765
12765
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
12766
12766
  };
12767
12767
  }>> & Readonly<{
12768
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
12768
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
12769
12769
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12770
- select: (conversation: import('..').ConversationModel) => void;
12770
+ selectConversation: (conversation: import('..').ConversationModel) => void;
12771
12771
  }, string, {
12772
12772
  Avatar: import('vue').Component<import('..').AvatarProps>;
12773
12773
  isSelected: boolean;
@@ -13268,9 +13268,9 @@ declare const ConversationPreviewUI: {
13268
13268
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
13269
13269
  };
13270
13270
  }>> & Readonly<{
13271
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
13271
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
13272
13272
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13273
- select: (conversation: import('..').ConversationModel) => void;
13273
+ selectConversation: (conversation: import('..').ConversationModel) => void;
13274
13274
  }, import('vue').PublicProps, {
13275
13275
  Avatar: import('vue').Component<import('..').AvatarProps>;
13276
13276
  isSelected: boolean;
@@ -13603,7 +13603,7 @@ declare const ConversationPreviewUI: {
13603
13603
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
13604
13604
  };
13605
13605
  }>> & Readonly<{
13606
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
13606
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
13607
13607
  }>, {}, {}, {}, {}, {
13608
13608
  Avatar: import('vue').Component<import('..').AvatarProps>;
13609
13609
  isSelected: boolean;
@@ -13933,9 +13933,9 @@ declare const ConversationPreviewUI: {
13933
13933
  type: import('vue').PropType<import('..').ConversationActionsConfig>;
13934
13934
  };
13935
13935
  }>> & Readonly<{
13936
- onSelect?: ((conversation: import('..').ConversationModel) => any) | undefined;
13936
+ onSelectConversation?: ((conversation: import('..').ConversationModel) => any) | undefined;
13937
13937
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13938
- select: (conversation: import('..').ConversationModel) => void;
13938
+ selectConversation: (conversation: import('..').ConversationModel) => void;
13939
13939
  }, string, {
13940
13940
  Avatar: import('vue').Component<import('..').AvatarProps>;
13941
13941
  isSelected: boolean;
@@ -16549,7 +16549,7 @@ declare const MessageList: import('vue').DefineComponent<import('vue').ExtractPr
16549
16549
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16550
16550
  declare const Message: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
16551
16551
  message: {
16552
- type: import('vue').PropType<import('@tencentcloud/chat-uikit-engine').IMessageModel>;
16552
+ type: import('vue').PropType<import('..').MessageModel>;
16553
16553
  required: true;
16554
16554
  };
16555
16555
  isLastInChunk: {
@@ -16582,7 +16582,7 @@ declare const Message: import('vue').DefineComponent<import('vue').ExtractPropTy
16582
16582
  };
16583
16583
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16584
16584
  message: {
16585
- type: import('vue').PropType<import('@tencentcloud/chat-uikit-engine').IMessageModel>;
16585
+ type: import('vue').PropType<import('..').MessageModel>;
16586
16586
  required: true;
16587
16587
  };
16588
16588
  isLastInChunk: {
@@ -16629,7 +16629,7 @@ declare const MessageInput: {
16629
16629
  };
16630
16630
  placeholder: {
16631
16631
  type: import('vue').PropType<string>;
16632
- default: string;
16632
+ default: undefined;
16633
16633
  };
16634
16634
  disabled: {
16635
16635
  type: import('vue').PropType<boolean>;
@@ -16671,7 +16671,7 @@ declare const MessageInput: {
16671
16671
  };
16672
16672
  placeholder: {
16673
16673
  type: import('vue').PropType<string>;
16674
- default: string;
16674
+ default: undefined;
16675
16675
  };
16676
16676
  disabled: {
16677
16677
  type: import('vue').PropType<boolean>;
@@ -16710,7 +16710,7 @@ declare const MessageInput: {
16710
16710
  };
16711
16711
  placeholder: {
16712
16712
  type: import('vue').PropType<string>;
16713
- default: string;
16713
+ default: undefined;
16714
16714
  };
16715
16715
  disabled: {
16716
16716
  type: import('vue').PropType<boolean>;
@@ -1,18 +1,18 @@
1
1
  var L = Object.defineProperty;
2
- var I = (o, t, i) => t in o ? L(o, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[t] = i;
3
- var s = (o, t, i) => I(o, typeof t != "symbol" ? t + "" : t, i);
4
- import { ref as U } from "vue";
5
- import l from "@tencentcloud/chat-uikit-engine";
2
+ var u = (o, t, i) => t in o ? L(o, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[t] = i;
3
+ var s = (o, t, i) => u(o, typeof t != "symbol" ? t + "" : t, i);
4
+ import { ref as I } from "vue";
5
+ import U from "@tencentcloud/chat-uikit-engine";
6
6
  import T, { TUIConstants as g, TUILogin as S } from "@tencentcloud/tui-core";
7
7
  import { useLoginState as m } from "../states/LoginState.js";
8
- import { ChatSceneType as E } from "../statistical/const.js";
8
+ import { ChatSceneType as l } from "../statistical/const.js";
9
9
  import { useStatistical as C } from "../statistical/statistical.js";
10
10
  import { isPC as p } from "../utils/env.js";
11
11
  const { setChatScene: N } = C(), e = class e {
12
12
  constructor() {
13
13
  s(this, "isReady", !1);
14
14
  s(this, "isEngineLoggingIn", !1);
15
- s(this, "isLogin", U(!1));
15
+ s(this, "isLogin", I(!1));
16
16
  s(this, "resolveList", []);
17
17
  s(this, "rejectList", []);
18
18
  this.init();
@@ -21,7 +21,7 @@ const { setChatScene: N } = C(), e = class e {
21
21
  return e.instance || (e.instance = new e()), e.instance;
22
22
  }
23
23
  init() {
24
- N(p ? E.CHAT_WEB : E.CHAT_H5), this.isReady || (this.isReady = !0, T.registerEvent(
24
+ N(p ? l.CHAT_WEB : l.CHAT_H5), this.isReady || (this.isReady = !0, T.registerEvent(
25
25
  g.TUILogin.EVENT.LOGIN_STATE_CHANGED,
26
26
  g.TUILogin.EVENT_SUB_KEY.USER_LOGIN_SUCCESS,
27
27
  this
@@ -46,7 +46,7 @@ const { setChatScene: N } = C(), e = class e {
46
46
  chat: t,
47
47
  SDKAppID: i,
48
48
  userID: c,
49
- userSig: h
49
+ userSig: f
50
50
  } = S.getContext();
51
51
  if (this.isEngineLoggingIn)
52
52
  return new Promise((n, r) => {
@@ -54,14 +54,14 @@ const { setChatScene: N } = C(), e = class e {
54
54
  });
55
55
  try {
56
56
  this.isEngineLoggingIn = !0;
57
- const n = await l.login({
57
+ const n = await U.login({
58
58
  chat: t,
59
59
  SDKAppID: i,
60
60
  userID: c,
61
- userSig: h
61
+ userSig: f
62
62
  });
63
- this.isLogin.value = !0, this.resolveList.forEach((u) => {
64
- u();
63
+ this.isLogin.value = !0, this.resolveList.forEach((h) => {
64
+ h();
65
65
  }), this.rejectList = [], this.resolveList = [];
66
66
  const { loginUserInfo: r } = m(), a = (await t.getUserProfile({ userIDList: [c] })).data[0];
67
67
  return a.value || (r.value = {
@@ -79,11 +79,11 @@ const { setChatScene: N } = C(), e = class e {
79
79
  }
80
80
  }
81
81
  logout() {
82
- l.logout(), this.isLogin.value = !1, this.isEngineLoggingIn = !1;
82
+ this.isLogin.value = !1, this.isEngineLoggingIn = !1;
83
83
  }
84
84
  };
85
85
  s(e, "instance");
86
- let f = e;
86
+ let E = e;
87
87
  export {
88
- f as default
88
+ E as default
89
89
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as I, computed as B, createElementBlock as d, openBlock as k, createElementVNode as s, createCommentVNode as b, createVNode as p, toDisplayString as o, unref as a, withCtx as C, createTextVNode as y } from "vue";
1
+ import { defineComponent as I, computed as B, createElementBlock as _, openBlock as k, createElementVNode as s, createCommentVNode as b, createVNode as p, toDisplayString as o, unref as a, withCtx as C, createTextVNode as y } from "vue";
2
2
  import { useUIKit as x, TUIButton as F } from "@tencentcloud/uikit-base-component-vue3";
3
3
  import D from "../../../Avatar/Avatar.js";
4
4
  import { useContactListState as N } from "../../../../states/ContactListState/ContactListState.js";
@@ -28,8 +28,8 @@ const U = { class: "contact-blacklist-info" }, g = { class: "contact-blacklist-i
28
28
  }
29
29
  };
30
30
  return (t, c) => {
31
- var m, f, _;
32
- return k(), d("div", U, [
31
+ var m, f, d;
32
+ return k(), _("div", U, [
33
33
  s("div", g, [
34
34
  s("div", w, [
35
35
  s("div", V, o(r.value), 1),
@@ -37,12 +37,12 @@ const U = { class: "contact-blacklist-info" }, g = { class: "contact-blacklist-i
37
37
  s("div", R, o(a(l)("TUIContact.Personal signature")) + ":" + o(((f = e.profile) == null ? void 0 : f.selfSignature) || ""), 1)
38
38
  ]),
39
39
  p(a(D), {
40
- src: (_ = e.profile) == null ? void 0 : _.avatar,
40
+ src: (d = e.profile) == null ? void 0 : d.avatar,
41
41
  alt: r.value,
42
42
  size: "xl"
43
43
  }, null, 8, ["src", "alt"])
44
44
  ]),
45
- e.showActions ? (k(), d("div", S, [
45
+ e.showActions ? (k(), _("div", S, [
46
46
  p(a(F), {
47
47
  type: "primary",
48
48
  size: "big",
@@ -57,7 +57,7 @@ const U = { class: "contact-blacklist-info" }, g = { class: "contact-blacklist-i
57
57
  ]);
58
58
  };
59
59
  }
60
- }), q = /* @__PURE__ */ T(z, [["__scopeId", "data-v-a0fb4b4a"]]);
60
+ }), q = /* @__PURE__ */ T(z, [["__scopeId", "data-v-52b7d9b8"]]);
61
61
  export {
62
62
  q as default
63
63
  };
@@ -196,7 +196,7 @@ const de = { class: "contact-info" }, se = {
196
196
  ]);
197
197
  };
198
198
  }
199
- }), Se = /* @__PURE__ */ re(te, [["__scopeId", "data-v-bb24453c"]]);
199
+ }), Se = /* @__PURE__ */ re(te, [["__scopeId", "data-v-d3be16ab"]]);
200
200
  export {
201
201
  Se as default
202
202
  };
@@ -68,7 +68,7 @@ const N = { class: "contact-friend-application-info" }, V = { class: "contact-fr
68
68
  ]);
69
69
  };
70
70
  }
71
- }), P = /* @__PURE__ */ g(L, [["__scopeId", "data-v-307dfce7"]]);
71
+ }), P = /* @__PURE__ */ g(L, [["__scopeId", "data-v-95a272a1"]]);
72
72
  export {
73
73
  P as default
74
74
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, ref as d, watch as F, computed as B, createElementBlock as k, openBlock as C, createElementVNode as a, createCommentVNode as j, createVNode as l, toDisplayString as r, unref as e, Fragment as x, withKeys as q, withCtx as y, createTextVNode as D } from "vue";
1
+ import { defineComponent as P, ref as d, watch as b, computed as B, createElementBlock as k, openBlock as C, createElementVNode as a, createCommentVNode as j, createVNode as l, toDisplayString as r, unref as e, Fragment as x, withKeys as q, withCtx as y, createTextVNode as D } from "vue";
2
2
  import { useUIKit as G, TUIInput as H, TUIButton as T, IconEditNameCard as J, TUISwitch as O, TUIDialog as Q } from "@tencentcloud/uikit-base-component-vue3";
3
3
  import W from "../../../Avatar/Avatar.js";
4
4
  import { useContactListState as X } from "../../../../states/ContactListState/ContactListState.js";
@@ -27,15 +27,15 @@ const ee = { class: "contact-friend-info" }, te = { class: "contact-friend-info_
27
27
  setFriendRemark: A,
28
28
  blackList: L
29
29
  } = X(), { setActiveConversation: E } = Y(), v = d(!1), g = d(""), f = d(t.friend.remark || ""), s = d(t.friend.remark || ""), I = d(!1), p = d(!1), _ = d(!1);
30
- F(() => t.friend.remark, (n) => {
30
+ b(() => t.friend.remark, (n) => {
31
31
  f.value = n || "", s.value = n || "";
32
- }), F(() => t.friend.userID, () => {
32
+ }), b(() => t.friend.userID, () => {
33
33
  t.friend.userID !== g.value && (v.value = !1), g.value = t.friend.userID;
34
34
  });
35
35
  const U = B(() => {
36
36
  var n;
37
37
  return f.value || ((n = t.friend) == null ? void 0 : n.nick) || t.friend.userID;
38
- }), b = B(() => L.value.some((n) => n.userID === t.friend.userID)), $ = () => {
38
+ }), w = B(() => L.value.some((n) => n.userID === t.friend.userID)), $ = () => {
39
39
  s.value = f.value, v.value = !0;
40
40
  }, h = async () => {
41
41
  if (s.value.trim() === f.value) {
@@ -70,13 +70,13 @@ const ee = { class: "contact-friend-info" }, te = { class: "contact-friend-info_
70
70
  c("sendMessage", t.friend), E(`C2C${t.friend.userID}`), c("close");
71
71
  };
72
72
  return (n, o) => {
73
- var w;
73
+ var F;
74
74
  return C(), k("div", ee, [
75
75
  a("div", te, [
76
76
  a("div", ne, [
77
77
  a("div", ae, r(U.value), 1),
78
78
  a("div", oe, r(e(i)("TUIContact.ID")) + ":" + r(m.friend.userID), 1),
79
- a("div", ie, r(e(i)("TUIContact.Personal signature")) + ":" + r(((w = m.friend) == null ? void 0 : w.selfSignature) || ""), 1)
79
+ a("div", ie, r(e(i)("TUIContact.Personal signature")) + ":" + r(((F = m.friend) == null ? void 0 : F.selfSignature) || ""), 1)
80
80
  ]),
81
81
  l(e(W), {
82
82
  src: m.friend.avatar,
@@ -122,8 +122,8 @@ const ee = { class: "contact-friend-info" }, te = { class: "contact-friend-info_
122
122
  a("div", ue, r(e(i)("TUIContact.Add to blacklist")), 1),
123
123
  a("div", me, [
124
124
  l(e(O), {
125
- modelValue: b.value,
126
- "onUpdate:modelValue": o[1] || (o[1] = (u) => b.value = u),
125
+ modelValue: w.value,
126
+ "onUpdate:modelValue": o[1] || (o[1] = (u) => w.value = u),
127
127
  disabled: p.value,
128
128
  onChange: z
129
129
  }, null, 8, ["modelValue", "disabled"])
@@ -171,7 +171,7 @@ const ee = { class: "contact-friend-info" }, te = { class: "contact-friend-info_
171
171
  ]);
172
172
  };
173
173
  }
174
- }), De = /* @__PURE__ */ Z(_e, [["__scopeId", "data-v-5772bab5"]]);
174
+ }), De = /* @__PURE__ */ Z(_e, [["__scopeId", "data-v-e9d15324"]]);
175
175
  export {
176
176
  De as default
177
177
  };
@@ -67,7 +67,7 @@ const k = { class: "contact-group-application-info" }, B = { class: "contact-gro
67
67
  ])) : y("", !0)
68
68
  ]));
69
69
  }
70
- }), O = /* @__PURE__ */ x(S, [["__scopeId", "data-v-8608f244"]]);
70
+ }), O = /* @__PURE__ */ x(S, [["__scopeId", "data-v-611935a4"]]);
71
71
  export {
72
72
  O as default
73
73
  };
@@ -19,8 +19,8 @@ const Q = { class: "contact-group-info" }, K = { class: "contact-group-info__hea
19
19
  onClose: {}
20
20
  },
21
21
  emits: ["close", "enterGroup", "leaveGroup", "dismissGroup"],
22
- setup(u, { emit: x }) {
23
- const e = u, a = x, { t } = $(), { quitGroup: b, dismissGroup: k, hasPermission: I } = R(), { setActiveConversation: S } = V(), s = P(!1), _ = l(() => e.group.name || e.group.groupID), y = l(() => {
22
+ setup(u, { emit: b }) {
23
+ const e = u, a = b, { t } = $(), { quitGroup: x, dismissGroup: k, hasPermission: I } = R(), { setActiveConversation: S } = V(), s = P(!1), _ = l(() => e.group.name || e.group.groupID), y = l(() => {
24
24
  var i;
25
25
  return ((i = e.group.selfInfo) == null ? void 0 : i.role) || z.COMMON;
26
26
  }), U = l(() => e.group.type), d = l(
@@ -31,7 +31,7 @@ const Q = { class: "contact-group-info" }, K = { class: "contact-group-info__hea
31
31
  S(`GROUP${e.group.groupID}`), a("enterGroup", e.group), a("close");
32
32
  }, A = async () => {
33
33
  try {
34
- await b(e.group.groupID), a("leaveGroup", e.group);
34
+ await x(e.group.groupID), a("leaveGroup", e.group);
35
35
  } catch (i) {
36
36
  console.error("[ContactInfo quitGroup] error", i);
37
37
  }
@@ -114,7 +114,7 @@ const Q = { class: "contact-group-info" }, K = { class: "contact-group-info__hea
114
114
  ])) : f("", !0)
115
115
  ]));
116
116
  }
117
- }), io = /* @__PURE__ */ L(Y, [["__scopeId", "data-v-ce333195"]]);
117
+ }), io = /* @__PURE__ */ L(Y, [["__scopeId", "data-v-888b0942"]]);
118
118
  export {
119
119
  io as default
120
120
  };