tuikit-atomicx-vue3 3.3.0-beta.3 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AttachmentPicker.module-BesmtGyl.js +11 -0
- package/dist/FilePicker.vue_vue_type_script_setup_true_lang-CdJ4DUzE.js +76 -0
- package/dist/ImagePicker.vue_vue_type_script_setup_true_lang-CbNUofpK.js +76 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-XRL7A5Gj.js → MessageInput.vue_vue_type_script_setup_true_lang-wUJPjWbx.js} +23 -18
- package/dist/VideoPicker.vue_vue_type_script_setup_true_lang-CmxjbNDJ.js +76 -0
- package/dist/chat/index.d.ts +3747 -2386
- package/dist/chat/index.js +12 -11
- package/dist/components/BarrageInput/BarrageInputH5.js +32 -8
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +9 -5
- package/dist/components/BarrageInput/TextEditor/index.js +14 -6
- package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +4 -4
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +12 -4
- package/dist/components/BarrageList/i18n/en-US/index.d.ts +1 -0
- package/dist/components/BarrageList/i18n/en-US/index.js +2 -1
- package/dist/components/BarrageList/i18n/zh-CN/index.d.ts +1 -0
- package/dist/components/BarrageList/i18n/zh-CN/index.js +2 -1
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.js +5 -3
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +3 -3
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +3 -3
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.js +3 -3
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.js +3 -3
- package/dist/components/ChatSetting/SettingItem/SettingItem.js +21 -21
- package/dist/components/ChatSetting/i18n/en-US.js +3 -3
- package/dist/components/ChatSetting/i18n/zh-CN.js +3 -3
- package/dist/components/ChatSetting/index.d.ts +1 -4
- package/dist/components/ChatSetting/index.js +3 -6
- package/dist/components/CoGuestPanel/CoGuestPanel.js +1 -1
- package/dist/components/ContactList/ContactInfo/ContactInfo.js +17 -17
- package/dist/components/ContactList/ContactInfo/ContactInfo.vue.d.ts +26 -2
- package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +2 -1
- package/dist/components/ContactList/ContactList.js +19 -10
- package/dist/components/ContactList/ContactList.vue.d.ts +109 -1
- package/dist/components/ContactList/index.d.ts +158 -26
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +8 -9
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +2 -1
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.js +8 -8
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.js +1 -2
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.js +8 -8
- package/dist/components/ConversationList/ConversationList.js +18 -44
- package/dist/components/ConversationList/ConversationList.vue.d.ts +197 -1535
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.js +8 -11
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.vue.d.ts +22 -340
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +80 -134
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +14 -14
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +14 -14
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +19 -30
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue.d.ts +0 -2
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +14 -15
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +12 -24
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +14 -14
- package/dist/components/ConversationList/ConversationPreview/index.d.ts +1 -1
- package/dist/components/ConversationList/ConversationPreview/index.js +17 -21
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.js +1 -0
- package/dist/components/ConversationList/index.d.ts +468 -2400
- package/dist/components/ConversationList/index.js +1 -1
- package/dist/components/LiveAudienceList/LiveAudienceListH5.js +1 -1
- package/dist/components/LiveCoreView/index.js +113 -58
- package/dist/components/LiveCoreView/index.vue.d.ts +9 -0
- package/dist/components/LiveList/LiveList.js +7 -5
- package/dist/components/LiveList/LiveListH5.js +77 -71
- package/dist/components/LiveList/i18n/en-US/index.d.ts +5 -0
- package/dist/components/LiveList/i18n/en-US/index.js +6 -1
- package/dist/components/LiveList/i18n/zh-CN/index.d.ts +5 -0
- package/dist/components/LiveList/i18n/zh-CN/index.js +6 -1
- package/dist/components/LiveList/pullToRefresh.js +204 -0
- package/dist/components/LiveList/pullToRefresh.vue.d.ts +86 -0
- package/dist/components/LiveScenePanel/CameraSettingDialog.js +6 -5
- package/dist/components/LiveScenePanel/index.js +3 -3
- package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.vue.d.ts +0 -4
- package/dist/components/MessageInput/AttachmentPicker/FilePicker.js +1 -1
- package/dist/components/MessageInput/AttachmentPicker/ImagePicker.js +1 -1
- package/dist/components/MessageInput/AttachmentPicker/VideoPicker.js +1 -1
- package/dist/components/MessageInput/AttachmentPicker/index.js +14 -19
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +3 -3
- package/dist/components/MessageInput/MessageInput.js +1 -1
- package/dist/components/MessageInput/MessageInput.vue.d.ts +6 -9
- package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +2 -2
- package/dist/components/MessageInput/TextEditor/index.js +18 -9
- package/dist/components/MessageInput/index.d.ts +5 -41
- package/dist/components/MessageInput/index.js +4 -4
- package/dist/components/MessageList/Message/CustomMessage/index.js +2 -2
- package/dist/components/MessageList/Message/FaceMessage/FaceMessage.js +7 -5
- package/dist/components/MessageList/Message/FaceMessage/FaceMessage.vue.d.ts +8 -8
- package/dist/components/MessageList/Message/LocationMessage/LocationMessage.js +2 -1
- package/dist/components/MessageList/Message/MergerMessage/MergerMessage.js +2 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +12 -4
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue.d.ts +3 -3
- package/dist/components/MessageList/MessageForward/MessageForward.js +2 -3
- package/dist/components/MessageList/MessageList.js +14 -7
- package/dist/components/MessageList/MessageList.vue.d.ts +1 -1
- package/dist/components/MessageList/MessageTimeDivider/MessageTimeDivider.js +5 -5
- package/dist/components/MessageList/MessageTimeDivider/MessageTimeDivider.vue.d.ts +10 -10
- package/dist/components/MessageList/index.d.ts +143 -5
- package/dist/components/MessageList/index.js +5 -5
- package/dist/components/Search/Search.js +1 -3
- package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.js +4 -6
- package/dist/components/Search/SearchResults/Loading/Loading.js +2 -4
- package/dist/components/Search/SearchResults/SearchResults.js +20 -22
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.js +6 -8
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/Group.js +5 -7
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +19 -21
- package/dist/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.js +1 -3
- package/dist/components/Search/SearchResults/SearchResultsItem/User/User.js +5 -7
- package/dist/components/StreamMixer/LocalMixer/index.js +11 -5
- package/dist/components/StreamView/manager/mediaManager.js +1 -1
- package/dist/components/UserPicker/UserPicker.js +2 -2
- package/dist/components/UserPicker/UserPicker.vue.d.ts +7 -8
- package/dist/components/UserPicker/components/ListMode/ListMode.js +14 -17
- package/dist/components/UserPicker/components/ListMode/ListMode.vue.d.ts +2 -2
- package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.vue.d.ts +2 -2
- package/dist/components/UserPicker/components/TreeMode/TreeMode.vue.d.ts +3 -3
- package/dist/components/UserPicker/components/TreeMode/TreeNode.vue.d.ts +4 -4
- package/dist/components/UserPicker/hooks/useSearchFilter.d.ts +3 -3
- package/dist/components/UserPicker/hooks/useSelection.d.ts +8 -8
- package/dist/components/UserPicker/hooks/useTreeState.d.ts +3 -3
- package/dist/components/UserPicker/index.d.ts +134 -3
- package/dist/components/UserPicker/index.js +3 -2
- package/dist/components/UserPicker/type.d.ts +18 -18
- package/dist/index.js +6 -3
- package/dist/rtc/index.d.ts +9 -0
- package/dist/states/GroupSettingState/GroupSettingState.js +3 -3
- package/dist/states/LiveSeatState/usePlayStream/MixStreamPlayer.js +3 -0
- package/dist/states/LoginState.js +1 -0
- package/dist/states/MessageInputState/MessageInputState.js +25 -5
- package/dist/styles/index.css +1294 -3578
- package/dist/types/contact.d.ts +13 -12
- package/dist/types/conversation.d.ts +12 -14
- package/dist/types/engine.d.ts +12 -0
- package/dist/types/engine.js +15 -0
- package/dist/types/index.js +2 -1
- package/dist/utils/json.js +0 -1
- package/package.json +7 -3
- package/src/chat/index.ts +12 -4
- package/src/components/BarrageInput/BarrageInputH5.vue +50 -4
- package/src/components/BarrageInput/EmojiPicker/EmojiPicker.module.scss +1 -0
- package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
- package/src/components/BarrageInput/TextEditor/Editor.scss +1 -1
- package/src/components/BarrageInput/TextEditor/TextEditor.module.scss +2 -0
- package/src/components/BarrageInput/TextEditor/TextEditor.vue +6 -0
- package/src/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue +8 -8
- package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +10 -0
- package/src/components/BarrageList/i18n/en-US/index.ts +1 -0
- package/src/components/BarrageList/i18n/zh-CN/index.ts +1 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.vue +5 -2
- package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +5 -4
- package/src/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.vue +2 -2
- package/src/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.vue +3 -2
- package/src/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.vue +3 -3
- package/src/components/ChatSetting/SettingItem/SettingItem.vue +10 -7
- package/src/components/ChatSetting/i18n/en-US.ts +3 -3
- package/src/components/ChatSetting/i18n/zh-CN.ts +3 -3
- package/src/components/ChatSetting/index.ts +3 -3
- package/src/components/CoGuestPanel/CoGuestPanel.vue +9 -0
- package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.scss +2 -0
- package/src/components/ContactList/ContactInfo/ContactInfo.vue +17 -9
- package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.scss +2 -0
- package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.scss +4 -3
- package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.scss +2 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.scss +2 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -0
- package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.scss +2 -2
- package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.scss +3 -2
- package/src/components/ContactList/ContactList.scss +2 -1
- package/src/components/ContactList/ContactList.vue +18 -3
- package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.scss +3 -3
- package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.scss +5 -6
- package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.scss +3 -3
- package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.scss +5 -6
- package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.scss +3 -3
- package/src/components/ConversationList/ConversationActions/ConversationActions.scss +2 -12
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +2 -2
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +1 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.scss +2 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +2 -2
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.scss +2 -1
- package/src/components/ConversationList/ConversationList.scss +0 -5
- package/src/components/ConversationList/ConversationList.vue +15 -41
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.scss +1 -0
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +13 -18
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.scss +11 -9
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +14 -16
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +2 -14
- package/src/components/ConversationList/ConversationPreview/index.ts +1 -1
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -0
- package/src/components/LiveAudienceList/LiveAudienceListH5.vue +2 -2
- package/src/components/LiveCoreView/index.vue +145 -79
- package/src/components/LiveList/LiveList.vue +3 -0
- package/src/components/LiveList/LiveListH5.vue +60 -85
- package/src/components/LiveList/i18n/en-US/index.ts +5 -0
- package/src/components/LiveList/i18n/zh-CN/index.ts +5 -0
- package/src/components/LiveList/pullToRefresh.vue +364 -0
- package/src/components/LiveScenePanel/CameraSettingDialog.vue +6 -5
- package/src/components/LiveScenePanel/index.vue +2 -2
- package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.module.scss +4 -0
- package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.vue +12 -17
- package/src/components/MessageInput/AttachmentPicker/FilePicker.vue +3 -2
- package/src/components/MessageInput/AttachmentPicker/ImagePicker.vue +3 -2
- package/src/components/MessageInput/AttachmentPicker/VideoPicker.vue +3 -2
- package/src/components/MessageInput/EmojiPicker/EmojiPicker.module.scss +1 -0
- package/src/components/MessageInput/MessageInput.vue +21 -15
- package/src/components/MessageInput/TextEditor/Editor.scss +1 -0
- package/src/components/MessageInput/TextEditor/TextEditor.vue +16 -6
- package/src/components/MessageInput/types.d.ts +3 -4
- package/src/components/MessageList/Message/CustomMessage/CustomMessage.vue +1 -1
- package/src/components/MessageList/Message/FaceMessage/FaceMessage.vue +10 -7
- package/src/components/MessageList/Message/LocationMessage/LocationMessage.vue +3 -1
- package/src/components/MessageList/Message/MergerMessage/MergerMessage.vue +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue +2 -2
- package/src/components/MessageList/MessageForward/MessageForward.vue +3 -3
- package/src/components/MessageList/MessageList.vue +17 -5
- package/src/components/MessageList/MessageTimeDivider/MessageTimeDivider.vue +9 -9
- package/src/components/MessageList/index.ts +5 -4
- package/src/components/Search/Search.scss +0 -3
- package/src/components/Search/SearchResults/EmptyResult/EmptyResult.scss +0 -3
- package/src/components/Search/SearchResults/Loading/Loading.scss +0 -3
- package/src/components/Search/SearchResults/SearchResults.scss +7 -16
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.scss +5 -11
- package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.scss +5 -11
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.scss +5 -11
- package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.scss +0 -3
- package/src/components/Search/SearchResults/SearchResultsItem/User/User.scss +5 -6
- package/src/components/StreamMixer/LocalMixer/index.vue +9 -4
- package/src/components/StreamView/manager/mediaManager.ts +1 -1
- package/src/components/UserPicker/UserPicker.vue +6 -9
- package/src/components/UserPicker/components/ListMode/ListMode.vue +3 -7
- package/src/components/UserPicker/components/SelectedPanel/SelectedPanel.vue +2 -2
- package/src/components/UserPicker/components/TreeMode/TreeMode.vue +3 -3
- package/src/components/UserPicker/components/TreeMode/TreeNode.vue +3 -3
- package/src/components/UserPicker/hooks/useSearchFilter.ts +15 -14
- package/src/components/UserPicker/hooks/useSelection.ts +32 -32
- package/src/components/UserPicker/hooks/useTreeState.ts +4 -4
- package/src/components/UserPicker/index.ts +16 -14
- package/src/components/UserPicker/type.ts +18 -18
- package/src/types/contact.ts +13 -12
- package/src/types/conversation.ts +12 -14
- package/src/types/engine.ts +15 -0
- package/src/utils/json.ts +0 -4
- package/dist/AttachmentPicker.module-0_DWsAtr.js +0 -11
- package/dist/FilePicker.vue_vue_type_script_setup_true_lang-CaSj3Gh_.js +0 -72
- package/dist/ImagePicker.vue_vue_type_script_setup_true_lang-CrzGMmrh.js +0 -72
- package/dist/VideoPicker.vue_vue_type_script_setup_true_lang-DTv6TJKr.js +0 -72
- package/dist/states/UIOpenControlState/UIOpenControlState.d.ts +0 -15
- package/dist/states/UIOpenControlState/UIOpenControlState.js +0 -28
- package/dist/states/UIOpenControlState/index.d.ts +0 -1
- package/dist/states/UIOpenControlState/index.js +0 -4
|
@@ -1,5 +1,136 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IUserPickerProps, IUserPickerRef, IUserPickerRow, IUserPickerNode, IUserPickerDataSource, IUserPickerResult } from './type';
|
|
1
|
+
import { UserPickerProps, UserPickerRef, UserPickerRow, UserPickerNode, UserPickerDataSource, UserPickerResult } from './type';
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
declare const UserPicker: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
displayMode: {
|
|
5
|
+
type: import('vue').PropType<"list" | "tree">;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
dataSource: {
|
|
9
|
+
type: import('vue').PropType<UserPickerDataSource<unknown>>;
|
|
10
|
+
required: true;
|
|
11
|
+
default: () => never[];
|
|
12
|
+
};
|
|
13
|
+
onReachEnd: {
|
|
14
|
+
type: import('vue').PropType<() => void>;
|
|
15
|
+
};
|
|
16
|
+
renderItem: {
|
|
17
|
+
type: import('vue').PropType<(data: UserPickerRow<unknown> | UserPickerNode<unknown>) => any>;
|
|
18
|
+
};
|
|
19
|
+
onSearch: {
|
|
20
|
+
type: import('vue').PropType<(value: string) => void>;
|
|
21
|
+
};
|
|
22
|
+
maxCount: {
|
|
23
|
+
type: import('vue').PropType<number>;
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
onExpand: {
|
|
27
|
+
type: import('vue').PropType<(node: UserPickerNode<unknown>) => void>;
|
|
28
|
+
};
|
|
29
|
+
minCount: {
|
|
30
|
+
type: import('vue').PropType<number>;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
onSelectedChange: {
|
|
34
|
+
type: import('vue').PropType<(selectedItems: UserPickerResult<unknown>) => void>;
|
|
35
|
+
};
|
|
36
|
+
onMaxCountExceed: {
|
|
37
|
+
type: import('vue').PropType<(selectedItems: UserPickerResult<unknown>) => void>;
|
|
38
|
+
};
|
|
39
|
+
defaultSelectedItems: {
|
|
40
|
+
type: import('vue').PropType<{
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
key: string;
|
|
43
|
+
}[]>;
|
|
44
|
+
default: () => never[];
|
|
45
|
+
};
|
|
46
|
+
lockedItems: {
|
|
47
|
+
type: import('vue').PropType<{
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
key: string;
|
|
50
|
+
}[]>;
|
|
51
|
+
default: () => never[];
|
|
52
|
+
};
|
|
53
|
+
enableSearch: {
|
|
54
|
+
type: import('vue').PropType<boolean>;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
searchPlaceholder: {
|
|
58
|
+
type: import('vue').PropType<string>;
|
|
59
|
+
};
|
|
60
|
+
}>, {
|
|
61
|
+
getSelectedItems: () => UserPickerResult<any>;
|
|
62
|
+
updateListData: (newDataSource: UserPickerRow<any>[]) => void;
|
|
63
|
+
updateTreeData: (key: string, partialNewNode: Partial<UserPickerNode<any>>) => void;
|
|
64
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
65
|
+
displayMode: {
|
|
66
|
+
type: import('vue').PropType<"list" | "tree">;
|
|
67
|
+
required: true;
|
|
68
|
+
};
|
|
69
|
+
dataSource: {
|
|
70
|
+
type: import('vue').PropType<UserPickerDataSource<unknown>>;
|
|
71
|
+
required: true;
|
|
72
|
+
default: () => never[];
|
|
73
|
+
};
|
|
74
|
+
onReachEnd: {
|
|
75
|
+
type: import('vue').PropType<() => void>;
|
|
76
|
+
};
|
|
77
|
+
renderItem: {
|
|
78
|
+
type: import('vue').PropType<(data: UserPickerRow<unknown> | UserPickerNode<unknown>) => any>;
|
|
79
|
+
};
|
|
80
|
+
onSearch: {
|
|
81
|
+
type: import('vue').PropType<(value: string) => void>;
|
|
82
|
+
};
|
|
83
|
+
maxCount: {
|
|
84
|
+
type: import('vue').PropType<number>;
|
|
85
|
+
default: number;
|
|
86
|
+
};
|
|
87
|
+
onExpand: {
|
|
88
|
+
type: import('vue').PropType<(node: UserPickerNode<unknown>) => void>;
|
|
89
|
+
};
|
|
90
|
+
minCount: {
|
|
91
|
+
type: import('vue').PropType<number>;
|
|
92
|
+
default: number;
|
|
93
|
+
};
|
|
94
|
+
onSelectedChange: {
|
|
95
|
+
type: import('vue').PropType<(selectedItems: UserPickerResult<unknown>) => void>;
|
|
96
|
+
};
|
|
97
|
+
onMaxCountExceed: {
|
|
98
|
+
type: import('vue').PropType<(selectedItems: UserPickerResult<unknown>) => void>;
|
|
99
|
+
};
|
|
100
|
+
defaultSelectedItems: {
|
|
101
|
+
type: import('vue').PropType<{
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
key: string;
|
|
104
|
+
}[]>;
|
|
105
|
+
default: () => never[];
|
|
106
|
+
};
|
|
107
|
+
lockedItems: {
|
|
108
|
+
type: import('vue').PropType<{
|
|
109
|
+
[key: string]: any;
|
|
110
|
+
key: string;
|
|
111
|
+
}[]>;
|
|
112
|
+
default: () => never[];
|
|
113
|
+
};
|
|
114
|
+
enableSearch: {
|
|
115
|
+
type: import('vue').PropType<boolean>;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
searchPlaceholder: {
|
|
119
|
+
type: import('vue').PropType<string>;
|
|
120
|
+
};
|
|
121
|
+
}>> & Readonly<{}>, {
|
|
122
|
+
dataSource: UserPickerDataSource<unknown>;
|
|
123
|
+
maxCount: number;
|
|
124
|
+
minCount: number;
|
|
125
|
+
defaultSelectedItems: Array<{
|
|
126
|
+
key: string;
|
|
127
|
+
[key: string]: any;
|
|
128
|
+
}>;
|
|
129
|
+
lockedItems: Array<{
|
|
130
|
+
key: string;
|
|
131
|
+
[key: string]: any;
|
|
132
|
+
}>;
|
|
133
|
+
enableSearch: boolean;
|
|
134
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
135
|
export { UserPicker };
|
|
136
|
+
export type { UserPickerProps, UserPickerRef, UserPickerRow, UserPickerNode, UserPickerDataSource, UserPickerResult, };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import UserPickerComponent from "./UserPicker.js";
|
|
2
2
|
import { addI18n } from "../../i18n/index.js";
|
|
3
3
|
import { resources } from "./i18n/index.js";
|
|
4
4
|
addI18n("en-US", { translation: { UserPicker: resources["en-US"] } });
|
|
5
5
|
addI18n("zh-CN", { translation: { UserPicker: resources["zh-CN"] } });
|
|
6
|
+
const UserPicker = UserPickerComponent;
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
+
UserPicker
|
|
8
9
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface UserPickerRow<T = unknown> {
|
|
2
2
|
key: string;
|
|
3
3
|
label: string;
|
|
4
4
|
avatarUrl?: string | undefined;
|
|
5
5
|
extraData?: T | undefined;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface UserPickerNode<T = unknown> {
|
|
8
8
|
key: string;
|
|
9
9
|
label: string;
|
|
10
10
|
isLeafNode: boolean;
|
|
11
11
|
avatarUrl?: string | undefined;
|
|
12
12
|
lazyLoad?: boolean;
|
|
13
|
-
children?: Array<
|
|
13
|
+
children?: Array<UserPickerNode<T>>;
|
|
14
14
|
extraData?: T | undefined;
|
|
15
15
|
}
|
|
16
|
-
export type
|
|
17
|
-
export interface
|
|
16
|
+
export type UserPickerDataSource<T = unknown> = Array<UserPickerRow<T>> | Array<UserPickerNode<T>>;
|
|
17
|
+
export interface UserPickerResultItem<T = unknown> {
|
|
18
18
|
key: string;
|
|
19
19
|
label: string;
|
|
20
20
|
avatarUrl?: string | undefined;
|
|
@@ -22,10 +22,10 @@ export interface IUserPickerResultItem<T = unknown> {
|
|
|
22
22
|
extraData?: T | undefined;
|
|
23
23
|
path?: string[] | undefined;
|
|
24
24
|
}
|
|
25
|
-
export type
|
|
26
|
-
export interface
|
|
25
|
+
export type UserPickerResult<T = unknown> = Array<UserPickerResultItem<T>>;
|
|
26
|
+
export interface UserPickerProps<T = unknown> {
|
|
27
27
|
displayMode: 'list' | 'tree';
|
|
28
|
-
dataSource:
|
|
28
|
+
dataSource: UserPickerDataSource<T>;
|
|
29
29
|
defaultSelectedItems?: Array<{
|
|
30
30
|
key: string;
|
|
31
31
|
[key: string]: any;
|
|
@@ -36,25 +36,25 @@ export interface IUserPickerProps<T = unknown> {
|
|
|
36
36
|
}>;
|
|
37
37
|
maxCount?: number | undefined;
|
|
38
38
|
minCount?: number | undefined;
|
|
39
|
-
onMaxCountExceed?: (selectedItems:
|
|
39
|
+
onMaxCountExceed?: (selectedItems: UserPickerResult<T>) => void;
|
|
40
40
|
enableSearch?: boolean;
|
|
41
41
|
searchPlaceholder?: string;
|
|
42
42
|
onSearch?: (value: string) => void;
|
|
43
|
-
renderItem?: (data:
|
|
44
|
-
onSelectedChange?: (selectedItems:
|
|
43
|
+
renderItem?: (data: UserPickerRow<T> | UserPickerNode<T>) => any;
|
|
44
|
+
onSelectedChange?: (selectedItems: UserPickerResult<T>) => void;
|
|
45
45
|
onReachEnd?: () => void;
|
|
46
|
-
onExpand?: (node:
|
|
46
|
+
onExpand?: (node: UserPickerNode<T>) => void;
|
|
47
47
|
}
|
|
48
|
-
export interface
|
|
49
|
-
getSelectedItems: () =>
|
|
50
|
-
updateListData: (newDataSource: Array<
|
|
51
|
-
updateTreeData: (key: string, partialNewNode: Partial<
|
|
48
|
+
export interface UserPickerRef<T = unknown> {
|
|
49
|
+
getSelectedItems: () => UserPickerResult<T>;
|
|
50
|
+
updateListData: (newDataSource: Array<UserPickerRow<T>>) => void;
|
|
51
|
+
updateTreeData: (key: string, partialNewNode: Partial<UserPickerNode<T>>) => void;
|
|
52
52
|
}
|
|
53
|
-
export interface
|
|
53
|
+
export interface SelectionState {
|
|
54
54
|
selectedKeys: Set<string>;
|
|
55
55
|
halfSelectedKeys?: Set<string>;
|
|
56
56
|
}
|
|
57
|
-
export interface
|
|
57
|
+
export interface TreeState {
|
|
58
58
|
expandedKeys: Set<string>;
|
|
59
59
|
loadingKeys: Set<string>;
|
|
60
60
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './styles/index.css';
|
|
2
2
|
import { useLoginState } from "./states/LoginState.js";
|
|
3
|
-
import { ChatSetting, ContactInfo, ContactList, ContactListItem, ConversationActions, ConversationList, ConversationListContent, ConversationListHeader, ConversationPreview, EmojiPicker, MessageAdvanced, MessageInput, MessageList, Search, SearchAdvanced, SearchBar, SearchResultItem, SearchResults, UserAdvanced, View, useConversationListState, useMessageActionState, useMessageActions, useMessageInputState, useMessageListState, useSearchState
|
|
3
|
+
import { ChatSetting, ContactInfo, ContactList, ContactListItem, ConversationActions, ConversationList, ConversationListContent, ConversationListHeader, ConversationPreview, ConversationPreviewUI, ConversationSearch, EmojiPicker, Message, MessageAdvanced, MessageInput, MessageList, Search, SearchAdvanced, SearchBar, SearchResultItem, SearchResults, UserAdvanced, View, useConversationListState, useMessageActionState, useMessageActions, useMessageInputState, useMessageListState, useSearchState } from "./chat/index.js";
|
|
4
4
|
import { AudioSetting, AudioSettingPanel, BarrageInput, BarrageList, CameraButton, CoGuestPanel, LiveAudienceList, LiveCoreView, LiveList, LiveMonitorView, LiveScenePanel, MicButton, StreamMixer, StreamView, VideoSetting, VideoSettingPanel, useBarrageListState, useCoGuestState, useCoHostState, useDeviceState, useLiveAudienceState, useLiveMonitorState, useLiveSeatState, useLiveState, useRoomEngine, useRoomState, useUserState, useVideoMixerState } from "./rtc/index.js";
|
|
5
5
|
import { addI18n } from "./i18n/index.js";
|
|
6
6
|
import { default as default2 } from "./components/Avatar/Avatar.js";
|
|
@@ -15,7 +15,7 @@ import { LocalRoomStatus, RoomAction } from "./types/room.js";
|
|
|
15
15
|
import { MonitorDeviceStatus } from "./types/monitor.js";
|
|
16
16
|
import { CoGuestStatus } from "./types/coGuest.js";
|
|
17
17
|
import { VariantType, defaultTypeLabels } from "./types/search.js";
|
|
18
|
-
import { SearchType } from "./types/engine.js";
|
|
18
|
+
import { MessageType, SearchType } from "./types/engine.js";
|
|
19
19
|
import { CreateConvTypes, GroupLabelTypes, GroupType, PageStateTypes, PlaceHolderTypes } from "./types/conversation.js";
|
|
20
20
|
import { ContactItemType, GroupApplicationType } from "./types/contact.js";
|
|
21
21
|
export {
|
|
@@ -40,6 +40,8 @@ export {
|
|
|
40
40
|
ConversationListContent,
|
|
41
41
|
ConversationListHeader,
|
|
42
42
|
ConversationPreview,
|
|
43
|
+
ConversationPreviewUI,
|
|
44
|
+
ConversationSearch,
|
|
43
45
|
CreateConvTypes,
|
|
44
46
|
DEFAULT_GROUP_AVATAR_AVCHATROOM,
|
|
45
47
|
DEFAULT_GROUP_AVATAR_COMMON,
|
|
@@ -65,9 +67,11 @@ export {
|
|
|
65
67
|
LiveType,
|
|
66
68
|
LocalRoomStatus,
|
|
67
69
|
MediaSettingDisplayMode,
|
|
70
|
+
Message,
|
|
68
71
|
MessageAdvanced,
|
|
69
72
|
MessageInput,
|
|
70
73
|
MessageList,
|
|
74
|
+
MessageType,
|
|
71
75
|
MicButton,
|
|
72
76
|
MonitorDeviceStatus,
|
|
73
77
|
PageStateTypes,
|
|
@@ -146,7 +150,6 @@ export {
|
|
|
146
150
|
useRoomEngine,
|
|
147
151
|
useRoomState,
|
|
148
152
|
useSearchState,
|
|
149
|
-
useUIOpenControlState,
|
|
150
153
|
useUserState,
|
|
151
154
|
useVideoMixerState
|
|
152
155
|
};
|
package/dist/rtc/index.d.ts
CHANGED
|
@@ -201,7 +201,16 @@ declare const LiveCoreView: {
|
|
|
201
201
|
top: string;
|
|
202
202
|
width: string;
|
|
203
203
|
height: string;
|
|
204
|
+
transform: string;
|
|
204
205
|
zIndex: number;
|
|
206
|
+
} | {
|
|
207
|
+
position: "absolute";
|
|
208
|
+
left: string;
|
|
209
|
+
top: string;
|
|
210
|
+
width: string;
|
|
211
|
+
height: string;
|
|
212
|
+
zIndex: number;
|
|
213
|
+
transform?: undefined;
|
|
205
214
|
} | undefined;
|
|
206
215
|
}): any;
|
|
207
216
|
};
|
|
@@ -84,7 +84,7 @@ async function updateGroupProfile(params) {
|
|
|
84
84
|
if (params.name.length === 0) {
|
|
85
85
|
throw new Error("updateGroupProfile::name cannot be empty");
|
|
86
86
|
}
|
|
87
|
-
if (params.name.length >
|
|
87
|
+
if (params.name.length > 30) {
|
|
88
88
|
throw new Error("updateGroupProfile::name must be less than or equal to 25 characters");
|
|
89
89
|
}
|
|
90
90
|
if (params.name === groupNameRef.value) {
|
|
@@ -96,7 +96,7 @@ async function updateGroupProfile(params) {
|
|
|
96
96
|
if (typeof params.introduction !== "string") {
|
|
97
97
|
throw new Error("updateGroupProfile::introduction must be a string");
|
|
98
98
|
}
|
|
99
|
-
if (params.introduction.length >
|
|
99
|
+
if (params.introduction.length > 130) {
|
|
100
100
|
throw new Error("updateGroupProfile::introduction must be less than 100 characters");
|
|
101
101
|
}
|
|
102
102
|
if (params.introduction === introductionRef.value) {
|
|
@@ -108,7 +108,7 @@ async function updateGroupProfile(params) {
|
|
|
108
108
|
if (typeof params.notification !== "string") {
|
|
109
109
|
throw new Error("updateGroupProfile::notification must be a string");
|
|
110
110
|
}
|
|
111
|
-
if (params.notification.length >
|
|
111
|
+
if (params.notification.length > 130) {
|
|
112
112
|
throw new Error("updateGroupProfile::notification must be less than 100 characters");
|
|
113
113
|
}
|
|
114
114
|
if (params.notification === notificationRef.value) {
|
|
@@ -54,6 +54,9 @@ const _MixStreamPlayer = class _MixStreamPlayer {
|
|
|
54
54
|
async stop() {
|
|
55
55
|
var _a;
|
|
56
56
|
console.log("MixStreamPlayer.stop: ", this.mixUserInfo);
|
|
57
|
+
if (!this.mixUserInfo || !this.mixUserInfo.userId) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
57
60
|
await ((_a = roomEngine.instance) == null ? void 0 : _a.stopPlayRemoteVideo({
|
|
58
61
|
userId: this.mixUserInfo.userId,
|
|
59
62
|
streamType: TUIVideoStreamType.kCameraStream
|
|
@@ -2,6 +2,7 @@ import { ref } from "vue";
|
|
|
2
2
|
import { TUIStore, StoreName, TUIChatService } from "@tencentcloud/chat-uikit-engine";
|
|
3
3
|
import { MessageContentType } from "./type.js";
|
|
4
4
|
import { convertInputContentToEditorNode } from "./utils.js";
|
|
5
|
+
import { useMessageListState } from "../MessageListState/MessageListState.js";
|
|
5
6
|
import { transformTextWithEmojiNameToKey } from "../../utils/emoji.js";
|
|
6
7
|
const editor = ref(null);
|
|
7
8
|
const inputRawValue = ref("");
|
|
@@ -62,18 +63,28 @@ const blurEditor = () => {
|
|
|
62
63
|
(_a = editor.value) == null ? void 0 : _a.commands.blur();
|
|
63
64
|
};
|
|
64
65
|
const sendMessage = async (msg) => {
|
|
66
|
+
const { enableReadReceipt } = useMessageListState();
|
|
67
|
+
const sendMessageParamsWithoutPayload = {
|
|
68
|
+
needReadReceipt: enableReadReceipt.value || false
|
|
69
|
+
};
|
|
65
70
|
const messageToSend = msg ?? inputRawValue.value;
|
|
66
71
|
if (!messageToSend) {
|
|
67
72
|
return;
|
|
68
73
|
}
|
|
69
74
|
if (typeof messageToSend === "string") {
|
|
70
|
-
TUIChatService.sendTextMessage({
|
|
75
|
+
TUIChatService.sendTextMessage({
|
|
76
|
+
payload: { text: transformTextWithEmojiNameToKey(messageToSend) },
|
|
77
|
+
...sendMessageParamsWithoutPayload
|
|
78
|
+
});
|
|
71
79
|
return;
|
|
72
80
|
}
|
|
73
81
|
let mergedText = "";
|
|
74
82
|
const sendAccumulatedText = async () => {
|
|
75
83
|
if (mergedText) {
|
|
76
|
-
await TUIChatService.sendTextMessage({
|
|
84
|
+
await TUIChatService.sendTextMessage({
|
|
85
|
+
payload: { text: transformTextWithEmojiNameToKey(mergedText) },
|
|
86
|
+
...sendMessageParamsWithoutPayload
|
|
87
|
+
});
|
|
77
88
|
mergedText = "";
|
|
78
89
|
}
|
|
79
90
|
};
|
|
@@ -81,17 +92,26 @@ const sendMessage = async (msg) => {
|
|
|
81
92
|
[MessageContentType.TEXT]: (content) => content,
|
|
82
93
|
[MessageContentType.IMAGE]: async (content) => {
|
|
83
94
|
await sendAccumulatedText();
|
|
84
|
-
await TUIChatService.sendImageMessage({
|
|
95
|
+
await TUIChatService.sendImageMessage({
|
|
96
|
+
payload: { file: content },
|
|
97
|
+
...sendMessageParamsWithoutPayload
|
|
98
|
+
});
|
|
85
99
|
return "";
|
|
86
100
|
},
|
|
87
101
|
[MessageContentType.VIDEO]: async (content) => {
|
|
88
102
|
await sendAccumulatedText();
|
|
89
|
-
await TUIChatService.sendVideoMessage({
|
|
103
|
+
await TUIChatService.sendVideoMessage({
|
|
104
|
+
payload: { file: content },
|
|
105
|
+
...sendMessageParamsWithoutPayload
|
|
106
|
+
});
|
|
90
107
|
return "";
|
|
91
108
|
},
|
|
92
109
|
[MessageContentType.FILE]: async (content) => {
|
|
93
110
|
await sendAccumulatedText();
|
|
94
|
-
await TUIChatService.sendFileMessage({
|
|
111
|
+
await TUIChatService.sendFileMessage({
|
|
112
|
+
payload: { file: content },
|
|
113
|
+
...sendMessageParamsWithoutPayload
|
|
114
|
+
});
|
|
95
115
|
return "";
|
|
96
116
|
},
|
|
97
117
|
[MessageContentType.MENTION]: async () => {
|