tuikit-atomicx-vue3 4.5.0 → 4.5.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/{PopoverTrigger-L8abAry7.js → PopoverPortal-DghpKKm8.js} +91 -136
- package/dist/PopoverTrigger-BajjNkGO.js +54 -0
- package/dist/{PopperContent-XdhqL8Y2.js → PopperContent-SLoFuK7k.js} +6 -6
- package/dist/{Teleport-CSEuZbpM.js → Teleport-DFrneqLM.js} +4 -4
- package/dist/baseComp/Modal/Modal.js +3 -3
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +10 -9
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +16 -15
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +62 -40
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +29 -27
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +27 -23
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue.d.ts +1 -1
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +67 -65
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +32 -30
- package/dist/components/ConversationList/ConversationPreview/utils.d.ts +2 -2
- package/dist/components/ConversationList/ConversationPreview/utils.js +81 -35
- package/dist/components/ConversationList/i18n/en-US.d.ts +10 -1
- package/dist/components/ConversationList/i18n/en-US.js +11 -2
- package/dist/components/ConversationList/i18n/zh-CN.d.ts +10 -1
- package/dist/components/ConversationList/i18n/zh-CN.js +11 -2
- package/dist/components/LiveScenePanel/index.js +10 -9
- package/dist/components/MessageInput/AttachmentPicker/index.js +10 -9
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +17 -16
- package/dist/components/MessageInput/QuotedMessagePreview/index.js +35 -35
- package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +13 -12
- package/dist/components/MessageInput/TextEditor/EditorCore.js +54 -89
- package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.js +229 -0
- package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue.d.ts +15 -0
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +1 -1
- package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.d.ts +1 -0
- package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.js +22 -0
- package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.d.ts +3 -0
- package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.js +15 -0
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +2 -2
- package/dist/components/MessageInput/TextEditor/extensions/index.d.ts +8 -0
- package/dist/components/MessageInput/TextEditor/extensions/index.js +12 -0
- package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.d.ts +5 -0
- package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.js +330 -0
- package/dist/components/MessageInput/TextEditor/index.js +62 -62
- package/dist/components/MessageInput/i18n/en-US.d.ts +3 -0
- package/dist/components/MessageInput/i18n/en-US.js +4 -1
- package/dist/components/MessageInput/i18n/index.d.ts +6 -0
- package/dist/components/MessageInput/i18n/zh-CN.d.ts +3 -0
- package/dist/components/MessageInput/i18n/zh-CN.js +4 -1
- package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +119 -89
- package/dist/components/MessageList/Message/ImageMessage/ImagePreview.js +142 -0
- package/dist/components/MessageList/Message/ImageMessage/ImagePreview.vue.d.ts +20 -0
- package/dist/components/MessageList/Message/Message.vue.d.ts +8 -0
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +3 -3
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +69 -58
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.vue.d.ts +8 -0
- package/dist/components/MessageList/Message/index.js +8 -4
- package/dist/components/MessageList/MessageList.js +98 -90
- package/dist/components/MessageList/MessageList.vue.d.ts +1 -1
- package/dist/components/MessageList/index.d.ts +21 -3
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +6 -6
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.vue.d.ts +1 -1
- package/dist/index-BvFYOUyz.js +2936 -0
- package/dist/{index-Do-2CngU.js → index-C8Jw_xE4.js} +1621 -1731
- package/dist/{index-7vNB_Vx8.js → index-CiYL_XsE.js} +1 -1
- package/dist/index-CzCDLp99.js +2174 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +103 -103
- package/dist/states/MessageActionState/MessageActionState.js +83 -223
- package/dist/states/MessageInputState/MessageInputState.js +115 -83
- package/dist/states/MessageInputState/type.d.ts +36 -10
- package/dist/states/MessageInputState/utils.d.ts +1 -5
- package/dist/states/MessageListState/MessageListState.d.ts +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/{chat/index.d.ts → subEntry/chat/chat.d.ts} +2112 -2087
- package/dist/subEntry/chat/chat.js +89 -0
- package/dist/subEntry/chat/index.d.ts +11 -0
- package/dist/subEntry/chat/index.js +81 -0
- package/dist/{chat → subEntry/chat}/server.js +4 -4
- package/dist/{useId-CtirfF0W.js → useId-D5WE76CM.js} +1 -1
- package/dist/{utils-DaB7eSu5.js → utils-CttDpxqz.js} +1 -1
- package/package.json +8 -6
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.scss +8 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +32 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +3 -2
- package/src/components/ConversationList/ConversationPreview/utils.ts +98 -28
- package/src/components/ConversationList/i18n/en-US.ts +10 -1
- package/src/components/ConversationList/i18n/zh-CN.ts +10 -1
- package/src/components/LiveScenePanel/index.vue +1 -0
- package/src/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.vue +19 -22
- package/src/components/MessageInput/TextEditor/Editor.scss +25 -0
- package/src/components/MessageInput/TextEditor/EditorCore.ts +79 -99
- package/src/components/MessageInput/TextEditor/TextEditor.vue +64 -68
- package/src/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue +449 -0
- package/src/components/MessageInput/TextEditor/extensions/emojiExtension.ts +22 -0
- package/src/components/MessageInput/TextEditor/extensions/enterKeyExtension.ts +22 -0
- package/src/components/MessageInput/TextEditor/extensions/index.ts +8 -0
- package/src/components/MessageInput/TextEditor/extensions/mentionExtension.ts +87 -0
- package/src/components/MessageInput/i18n/en-US.ts +3 -0
- package/src/components/MessageInput/i18n/zh-CN.ts +3 -0
- package/src/components/MessageList/Message/ImageMessage/ImageMessage.vue +49 -0
- package/src/components/MessageList/Message/ImageMessage/ImagePreview.vue +344 -0
- package/src/components/MessageList/Message/Message.vue +6 -0
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +8 -1
- package/src/components/MessageList/MessageList.vue +36 -14
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +30 -31
- package/src/index.ts +1 -1
- package/src/{chat/index.ts → subEntry/chat/chat.ts} +25 -18
- package/src/subEntry/chat/index.ts +13 -0
- package/src/{chat → subEntry/chat}/server.ts +3 -3
- package/dist/chat/index.js +0 -59
- package/dist/index-ZILx4LYk.js +0 -4826
- package/dist/states/SearchState.d.ts +0 -314
- /package/dist/{chat → subEntry/chat}/server.d.ts +0 -0
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
import { ISearchType as SearchType, SearchCloudGroupsParams, SearchCloudMessagesParams, SearchCloudUsersParams } from '@tencentcloud/chat-uikit-engine';
|
|
2
|
-
import { VariantType } from '../types/search';
|
|
3
|
-
import { SearchResult } from '../types/engine';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* 搜索状态管理 Hook
|
|
7
|
-
* @memberof module:SearchState
|
|
8
|
-
* @description 提供搜索状态的管理和控制功能,支持多种搜索变体和搜索类型
|
|
9
|
-
* @param {VariantType} [variant] - 可选的搜索变体类型,默认为 STANDARD
|
|
10
|
-
* @returns {Object} 返回搜索状态管理对象
|
|
11
|
-
* @returns {ComputedRef<string>} returns.keyword - 当前搜索关键词
|
|
12
|
-
* @returns {ComputedRef<Map<SearchType, SearchResult<SearchType>>>} returns.results - 搜索结果映射
|
|
13
|
-
* @returns {ComputedRef<boolean>} returns.isLoading - 搜索加载状态
|
|
14
|
-
* @returns {ComputedRef<Error | null>} returns.error - 搜索错误信息
|
|
15
|
-
* @returns {ComputedRef<Map<SearchType, SearchParamsMap[SearchType]>>} returns.searchAdvancedParams - 高级搜索参数
|
|
16
|
-
* @returns {ComputedRef<SearchType | 'all'>} returns.selectedSearchType - 选中的搜索类型
|
|
17
|
-
* @returns {Function} returns.setKeyword - 设置搜索关键词函数
|
|
18
|
-
* @returns {Function} returns.loadMore - 加载更多搜索结果函数
|
|
19
|
-
* @returns {Function} returns.setSelectedType - 设置选中搜索类型函数
|
|
20
|
-
* @returns {Function} returns.setSearchMessageAdvancedParams - 设置消息搜索高级参数函数
|
|
21
|
-
* @returns {Function} returns.setSearchUserAdvancedParams - 设置用户搜索高级参数函数
|
|
22
|
-
* @returns {Function} returns.setSearchGroupAdvancedParams - 设置群组搜索高级参数函数
|
|
23
|
-
* @example
|
|
24
|
-
* ```typescript
|
|
25
|
-
* const {
|
|
26
|
-
* keyword,
|
|
27
|
-
* results,
|
|
28
|
-
* isLoading,
|
|
29
|
-
* error,
|
|
30
|
-
* setKeyword,
|
|
31
|
-
* loadMore,
|
|
32
|
-
* setSelectedType,
|
|
33
|
-
* setSearchMessageAdvancedParams
|
|
34
|
-
* } = useSearchState(VariantType.STANDARD);
|
|
35
|
-
*
|
|
36
|
-
* // 设置搜索关键词
|
|
37
|
-
* setKeyword('hello world');
|
|
38
|
-
*
|
|
39
|
-
* // 设置搜索类型为消息
|
|
40
|
-
* setSelectedType(SearchType.MESSAGE);
|
|
41
|
-
*
|
|
42
|
-
* // 设置消息搜索高级参数
|
|
43
|
-
* setSearchMessageAdvancedParams({
|
|
44
|
-
* conversationID: 'conversation123',
|
|
45
|
-
* senderUserIDList: ['user1', 'user2']
|
|
46
|
-
* });
|
|
47
|
-
*
|
|
48
|
-
* // 加载更多搜索结果
|
|
49
|
-
* await loadMore(SearchType.MESSAGE);
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
export declare function useSearchState(variant?: VariantType): {
|
|
53
|
-
keyword: import('vue').ComputedRef<string>;
|
|
54
|
-
results: import('vue').ComputedRef<Map<SearchType, {
|
|
55
|
-
resultList: [] | {
|
|
56
|
-
messageList: {
|
|
57
|
-
ID: string;
|
|
58
|
-
type: import("@tencentcloud/chat").default.TYPES;
|
|
59
|
-
payload: any;
|
|
60
|
-
conversationID: string;
|
|
61
|
-
conversationType: import("@tencentcloud/chat").default.TYPES;
|
|
62
|
-
to: string;
|
|
63
|
-
from: string;
|
|
64
|
-
flow: string;
|
|
65
|
-
time: number;
|
|
66
|
-
status: string;
|
|
67
|
-
isRevoked: boolean;
|
|
68
|
-
priority: import("@tencentcloud/chat").default.TYPES;
|
|
69
|
-
nick: string;
|
|
70
|
-
avatar: string;
|
|
71
|
-
isPeerRead: boolean;
|
|
72
|
-
nameCard: string;
|
|
73
|
-
atUserList: string[];
|
|
74
|
-
cloudCustomData: string;
|
|
75
|
-
isDeleted: boolean;
|
|
76
|
-
isModified: boolean;
|
|
77
|
-
needReadReceipt: boolean;
|
|
78
|
-
readReceiptInfo: any;
|
|
79
|
-
isBroadcastMessage: boolean;
|
|
80
|
-
isSupportExtension: boolean;
|
|
81
|
-
receiverList?: string[] | undefined;
|
|
82
|
-
revoker: string;
|
|
83
|
-
sequence: number;
|
|
84
|
-
progress: number;
|
|
85
|
-
revokerInfo: {
|
|
86
|
-
userID: string;
|
|
87
|
-
nick: string;
|
|
88
|
-
avatar: string;
|
|
89
|
-
};
|
|
90
|
-
revokeReason: string;
|
|
91
|
-
hasRiskContent: boolean;
|
|
92
|
-
reactionList: {
|
|
93
|
-
reactionID: string;
|
|
94
|
-
totalUserCount: number;
|
|
95
|
-
partialUserList: {
|
|
96
|
-
userID: string;
|
|
97
|
-
nick: string;
|
|
98
|
-
avatar: string;
|
|
99
|
-
}[];
|
|
100
|
-
}[];
|
|
101
|
-
updateProperties: (options: import('@tencentcloud/chat').Message) => void;
|
|
102
|
-
getMessage: () => import('@tencentcloud/chat').Message;
|
|
103
|
-
modifyMessage: (options: import('@tencentcloud/chat-uikit-engine').ModifyMessageParams) => Promise<any>;
|
|
104
|
-
revokeMessage: () => Promise<any>;
|
|
105
|
-
resendMessage: () => Promise<any>;
|
|
106
|
-
deleteMessage: () => Promise<any>;
|
|
107
|
-
quoteMessage: () => import('@tencentcloud/chat').Message;
|
|
108
|
-
replyMessage: () => import('@tencentcloud/chat').Message;
|
|
109
|
-
setMessageExtensions: (extensions: object[]) => Promise<any>;
|
|
110
|
-
deleteMessageExtensions: (keyList?: string[]) => Promise<any>;
|
|
111
|
-
getMessageExtensions: () => Promise<any>;
|
|
112
|
-
getSignalingInfo: () => Record<string, any> | null;
|
|
113
|
-
getMessageContent: () => Record<string, any>;
|
|
114
|
-
}[];
|
|
115
|
-
messageCount: number;
|
|
116
|
-
conversation?: {
|
|
117
|
-
conversationID: string;
|
|
118
|
-
type: string;
|
|
119
|
-
subType: string;
|
|
120
|
-
unreadCount: number;
|
|
121
|
-
lastMessage?: {
|
|
122
|
-
nick: string;
|
|
123
|
-
nameCard: string;
|
|
124
|
-
lastTime: number | string;
|
|
125
|
-
lastSequence: string;
|
|
126
|
-
fromAccount: string;
|
|
127
|
-
isRevoked: boolean;
|
|
128
|
-
revoker?: string | undefined;
|
|
129
|
-
isPeerRead: boolean;
|
|
130
|
-
messageForShow: string;
|
|
131
|
-
type: string;
|
|
132
|
-
payload: any;
|
|
133
|
-
} | undefined;
|
|
134
|
-
groupProfile?: any;
|
|
135
|
-
userProfile?: any;
|
|
136
|
-
groupAtInfoList?: any[] | undefined;
|
|
137
|
-
remark: string;
|
|
138
|
-
isPinned: boolean;
|
|
139
|
-
messageRemindType: string;
|
|
140
|
-
markList: string[];
|
|
141
|
-
customData: string;
|
|
142
|
-
conversationGroupList: any[];
|
|
143
|
-
draftText: string;
|
|
144
|
-
isMuted: boolean;
|
|
145
|
-
operationType: number;
|
|
146
|
-
_conversation: any;
|
|
147
|
-
updateProperties: (options: import('@tencentcloud/chat').Conversation) => void;
|
|
148
|
-
updateOperationType: (operationType: number) => void;
|
|
149
|
-
getConversation: () => any;
|
|
150
|
-
deleteConversation: (clearHistoryMessage?: boolean) => Promise<any>;
|
|
151
|
-
pinConversation: () => Promise<any>;
|
|
152
|
-
muteConversation: () => Promise<any>;
|
|
153
|
-
setMessageRead: () => Promise<any>;
|
|
154
|
-
getAvatar: () => string;
|
|
155
|
-
getShowName: () => string;
|
|
156
|
-
getGroupAtInfo: () => string;
|
|
157
|
-
getLastMessage: (key: string) => string | null;
|
|
158
|
-
} | undefined;
|
|
159
|
-
}[] | {
|
|
160
|
-
profile: {
|
|
161
|
-
userID: string;
|
|
162
|
-
nick: string;
|
|
163
|
-
gender: import("@tencentcloud/chat").default.TYPES;
|
|
164
|
-
birthday: number;
|
|
165
|
-
location: string;
|
|
166
|
-
selfSignature: string;
|
|
167
|
-
allowType: import("@tencentcloud/chat").default.TYPES;
|
|
168
|
-
language: number;
|
|
169
|
-
avatar: string;
|
|
170
|
-
messageSettings: number;
|
|
171
|
-
adminForbidType: import("@tencentcloud/chat").default.TYPES;
|
|
172
|
-
level: number;
|
|
173
|
-
role: number;
|
|
174
|
-
lastUpdatedNumber: number;
|
|
175
|
-
profileCustomField: Array<any>;
|
|
176
|
-
};
|
|
177
|
-
relation: import("@tencentcloud/chat").default.TYPES.SNS_TYPE_NO_RELATION | import("@tencentcloud/chat").default.TYPES.SNS_TYPE_A_WITH_B | import("@tencentcloud/chat").default.TYPES.SNS_TYPE_B_WITH_A | import("@tencentcloud/chat").default.TYPES.SNS_TYPE_BOTH_WAY;
|
|
178
|
-
}[] | {
|
|
179
|
-
groupInfo: {
|
|
180
|
-
groupID: string;
|
|
181
|
-
name: string;
|
|
182
|
-
avatar: string;
|
|
183
|
-
type: import("@tencentcloud/chat").default.TYPES;
|
|
184
|
-
introduction: string;
|
|
185
|
-
notification: string;
|
|
186
|
-
ownerID: string;
|
|
187
|
-
createTime: string;
|
|
188
|
-
infoSequence: number;
|
|
189
|
-
lastInfoTime: number;
|
|
190
|
-
selfInfo: any;
|
|
191
|
-
lastMessage: any;
|
|
192
|
-
nextMessageSeq: number;
|
|
193
|
-
memberCount: number;
|
|
194
|
-
maxMemberCount: number;
|
|
195
|
-
muteAllMembers: boolean;
|
|
196
|
-
joinOption: import("@tencentcloud/chat").default.TYPES;
|
|
197
|
-
groupCustomField: Array<any>;
|
|
198
|
-
isSupportTopic: boolean;
|
|
199
|
-
};
|
|
200
|
-
conversation?: {
|
|
201
|
-
conversationID: string;
|
|
202
|
-
type: string;
|
|
203
|
-
subType: string;
|
|
204
|
-
unreadCount: number;
|
|
205
|
-
lastMessage?: {
|
|
206
|
-
nick: string;
|
|
207
|
-
nameCard: string;
|
|
208
|
-
lastTime: number | string;
|
|
209
|
-
lastSequence: string;
|
|
210
|
-
fromAccount: string;
|
|
211
|
-
isRevoked: boolean;
|
|
212
|
-
revoker?: string | undefined;
|
|
213
|
-
isPeerRead: boolean;
|
|
214
|
-
messageForShow: string;
|
|
215
|
-
type: string;
|
|
216
|
-
payload: any;
|
|
217
|
-
} | undefined;
|
|
218
|
-
groupProfile?: any;
|
|
219
|
-
userProfile?: any;
|
|
220
|
-
groupAtInfoList?: any[] | undefined;
|
|
221
|
-
remark: string;
|
|
222
|
-
isPinned: boolean;
|
|
223
|
-
messageRemindType: string;
|
|
224
|
-
markList: string[];
|
|
225
|
-
customData: string;
|
|
226
|
-
conversationGroupList: any[];
|
|
227
|
-
draftText: string;
|
|
228
|
-
isMuted: boolean;
|
|
229
|
-
operationType: number;
|
|
230
|
-
_conversation: any;
|
|
231
|
-
updateProperties: (options: import('@tencentcloud/chat').Conversation) => void;
|
|
232
|
-
updateOperationType: (operationType: number) => void;
|
|
233
|
-
getConversation: () => any;
|
|
234
|
-
deleteConversation: (clearHistoryMessage?: boolean) => Promise<any>;
|
|
235
|
-
pinConversation: () => Promise<any>;
|
|
236
|
-
muteConversation: () => Promise<any>;
|
|
237
|
-
setMessageRead: () => Promise<any>;
|
|
238
|
-
getAvatar: () => string;
|
|
239
|
-
getShowName: () => string;
|
|
240
|
-
getGroupAtInfo: () => string;
|
|
241
|
-
getLastMessage: (key: string) => string | null;
|
|
242
|
-
} | undefined;
|
|
243
|
-
}[];
|
|
244
|
-
hasMore: boolean;
|
|
245
|
-
cursor: string;
|
|
246
|
-
totalCount: number;
|
|
247
|
-
params: {
|
|
248
|
-
senderUserIDList?: string[] | undefined;
|
|
249
|
-
messageTypeList?: any[] | undefined;
|
|
250
|
-
conversationID?: string | undefined;
|
|
251
|
-
timePosition?: number | undefined;
|
|
252
|
-
timePeriod?: number | undefined;
|
|
253
|
-
keyword?: string | undefined;
|
|
254
|
-
keywordList?: string[] | undefined;
|
|
255
|
-
keywordListMatchType?: "or" | "and" | undefined;
|
|
256
|
-
cursor?: string | undefined;
|
|
257
|
-
count?: number | undefined;
|
|
258
|
-
} | {
|
|
259
|
-
gender?: string | undefined;
|
|
260
|
-
miniBirthday?: number | undefined;
|
|
261
|
-
maxBirthday?: number | undefined;
|
|
262
|
-
keyword?: string | undefined;
|
|
263
|
-
keywordList?: string[] | undefined;
|
|
264
|
-
keywordListMatchType?: "or" | "and" | undefined;
|
|
265
|
-
cursor?: string | undefined;
|
|
266
|
-
count?: number | undefined;
|
|
267
|
-
} | {
|
|
268
|
-
groupTypeList?: any[] | undefined;
|
|
269
|
-
keyword?: string | undefined;
|
|
270
|
-
keywordList?: string[] | undefined;
|
|
271
|
-
keywordListMatchType?: "or" | "and" | undefined;
|
|
272
|
-
cursor?: string | undefined;
|
|
273
|
-
count?: number | undefined;
|
|
274
|
-
};
|
|
275
|
-
}> & Omit<Map<SearchType, SearchResult<SearchType>>, keyof Map<any, any>>>;
|
|
276
|
-
isLoading: import('vue').ComputedRef<boolean>;
|
|
277
|
-
error: import('vue').ComputedRef<Error | null>;
|
|
278
|
-
searchAdvancedParams: import('vue').ComputedRef<Map<SearchType, {
|
|
279
|
-
senderUserIDList?: string[] | undefined;
|
|
280
|
-
messageTypeList?: any[] | undefined;
|
|
281
|
-
conversationID?: string | undefined;
|
|
282
|
-
timePosition?: number | undefined;
|
|
283
|
-
timePeriod?: number | undefined;
|
|
284
|
-
keyword?: string | undefined;
|
|
285
|
-
keywordList?: string[] | undefined;
|
|
286
|
-
keywordListMatchType?: "or" | "and" | undefined;
|
|
287
|
-
cursor?: string | undefined;
|
|
288
|
-
count?: number | undefined;
|
|
289
|
-
} | {
|
|
290
|
-
gender?: string | undefined;
|
|
291
|
-
miniBirthday?: number | undefined;
|
|
292
|
-
maxBirthday?: number | undefined;
|
|
293
|
-
keyword?: string | undefined;
|
|
294
|
-
keywordList?: string[] | undefined;
|
|
295
|
-
keywordListMatchType?: "or" | "and" | undefined;
|
|
296
|
-
cursor?: string | undefined;
|
|
297
|
-
count?: number | undefined;
|
|
298
|
-
} | {
|
|
299
|
-
groupTypeList?: any[] | undefined;
|
|
300
|
-
keyword?: string | undefined;
|
|
301
|
-
keywordList?: string[] | undefined;
|
|
302
|
-
keywordListMatchType?: "or" | "and" | undefined;
|
|
303
|
-
cursor?: string | undefined;
|
|
304
|
-
count?: number | undefined;
|
|
305
|
-
}> & Omit<Map<SearchType, SearchCloudMessagesParams | SearchCloudUsersParams | SearchCloudGroupsParams>, keyof Map<any, any>>>;
|
|
306
|
-
selectedSearchType: import('vue').ComputedRef<"all" | SearchType>;
|
|
307
|
-
setKeyword: (k: string) => void;
|
|
308
|
-
loadMore: (type?: SearchType) => Promise<void>;
|
|
309
|
-
setSelectedType: (type: SearchType | "all") => void;
|
|
310
|
-
setSearchMessageAdvancedParams: (params: SearchCloudMessagesParams) => void;
|
|
311
|
-
setSearchUserAdvancedParams: (params: SearchCloudUsersParams) => void;
|
|
312
|
-
setSearchGroupAdvancedParams: (params: SearchCloudGroupsParams) => void;
|
|
313
|
-
};
|
|
314
|
-
export default useSearchState;
|
|
File without changes
|