@bcc-code/vue-bcc-chat-ui 7.3.0 → 7.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/index.d.ts +886 -11
  2. package/dist/style.css +1 -1
  3. package/dist/vue-bcc-chat-ui.js +4796 -4274
  4. package/dist/vue-bcc-chat-ui.js.map +1 -1
  5. package/package.json +4 -2
  6. package/dist/App.vue.d.ts +0 -4
  7. package/dist/FixtureApp.vue.d.ts +0 -4
  8. package/dist/auth.d.ts +0 -3
  9. package/dist/chat/accessToken.d.ts +0 -11
  10. package/dist/chat/avatar.d.ts +0 -3
  11. package/dist/chat/cacheScope.d.ts +0 -13
  12. package/dist/chat/client.d.ts +0 -7
  13. package/dist/chat/clipboardFiles.d.ts +0 -5
  14. package/dist/chat/conversationState.d.ts +0 -17
  15. package/dist/chat/data.d.ts +0 -18
  16. package/dist/chat/environment.d.ts +0 -8
  17. package/dist/chat/i18n/en.d.ts +0 -151
  18. package/dist/chat/i18n/nb.d.ts +0 -151
  19. package/dist/chat/i18n/types.d.ts +0 -2
  20. package/dist/chat/index.d.ts +0 -240
  21. package/dist/chat/localization.d.ts +0 -17
  22. package/dist/chat/mentions.d.ts +0 -33
  23. package/dist/chat/messageText.d.ts +0 -21
  24. package/dist/chat/mockClient.d.ts +0 -13
  25. package/dist/chat/offlineStore.d.ts +0 -55
  26. package/dist/chat/participants.d.ts +0 -8
  27. package/dist/chat/pinnedMessages.d.ts +0 -12
  28. package/dist/chat/publicChannelMessageFallback.d.ts +0 -1
  29. package/dist/chat/reactions.d.ts +0 -8
  30. package/dist/chat/richText.d.ts +0 -9
  31. package/dist/chat/runtime.d.ts +0 -3
  32. package/dist/chat/theme.d.ts +0 -19
  33. package/dist/chat/types.d.ts +0 -409
  34. package/dist/components/chat/BccChat.vue.d.ts +0 -100
  35. package/dist/components/chat/ChatStatusOverlay.vue.d.ts +0 -34
  36. package/dist/components/chat/publicContract.d.ts +0 -44
  37. package/dist/components/conversations/ConversationList.vue.d.ts +0 -18
  38. package/dist/components/conversations/UserProfileCard.vue.d.ts +0 -9
  39. package/dist/components/messages/ActionMessageRow.vue.d.ts +0 -7
  40. package/dist/components/messages/AudioStickyPlayer.vue.d.ts +0 -12
  41. package/dist/components/messages/ComposerActionsPopover.vue.d.ts +0 -15
  42. package/dist/components/messages/ComposerContextBanner.vue.d.ts +0 -15
  43. package/dist/components/messages/ComposerFormatMenu.vue.d.ts +0 -19
  44. package/dist/components/messages/ComposerLinkDialog.vue.d.ts +0 -18
  45. package/dist/components/messages/ComposerPollDialog.vue.d.ts +0 -18
  46. package/dist/components/messages/ComposerScheduleDialog.vue.d.ts +0 -22
  47. package/dist/components/messages/ComposerTriggerMenu.vue.d.ts +0 -24
  48. package/dist/components/messages/ConversationComposer.vue.d.ts +0 -30
  49. package/dist/components/messages/LinkPreviewCard.vue.d.ts +0 -8
  50. package/dist/components/messages/LinkifiedText.vue.d.ts +0 -15
  51. package/dist/components/messages/MessageAttachmentList.vue.d.ts +0 -12
  52. package/dist/components/messages/MessageComposer.vue.d.ts +0 -59
  53. package/dist/components/messages/MessageDateSeparator.vue.d.ts +0 -7
  54. package/dist/components/messages/MessageDeliveryStatus.vue.d.ts +0 -8
  55. package/dist/components/messages/MessageForwardedLabel.vue.d.ts +0 -8
  56. package/dist/components/messages/MessageItem.vue.d.ts +0 -36
  57. package/dist/components/messages/MessageItemHeader.vue.d.ts +0 -8
  58. package/dist/components/messages/MessageItemMenu.vue.d.ts +0 -36
  59. package/dist/components/messages/MessageItemMenuReactions.vue.d.ts +0 -13
  60. package/dist/components/messages/MessageItemReactions.vue.d.ts +0 -16
  61. package/dist/components/messages/MessageList.vue.d.ts +0 -42
  62. package/dist/components/messages/MessageListHeader.vue.d.ts +0 -9
  63. package/dist/components/messages/MessagePinnedLabel.vue.d.ts +0 -4
  64. package/dist/components/messages/MessagePollContent.vue.d.ts +0 -14
  65. package/dist/components/messages/MessageReactionList.vue.d.ts +0 -14
  66. package/dist/components/messages/MessageReplyQuote.vue.d.ts +0 -12
  67. package/dist/components/messages/MessageTextContent.vue.d.ts +0 -12
  68. package/dist/components/messages/PinnedMessagesBar.vue.d.ts +0 -4
  69. package/dist/components/overlays/ForwardMessageDialog.vue.d.ts +0 -16
  70. package/dist/components/overlays/FullscreenDialog.vue.d.ts +0 -34
  71. package/dist/components/overlays/MediaViewerDialog.vue.d.ts +0 -12
  72. package/dist/components/overlays/MessageInfoDialog.vue.d.ts +0 -16
  73. package/dist/components/overlays/PinnedMessagesDialog.vue.d.ts +0 -20
  74. package/dist/components/overlays/ReceiptSection.vue.d.ts +0 -13
  75. package/dist/components/overlays/ScheduledMessagesDialog.vue.d.ts +0 -37
  76. package/dist/components/shared/PersonAvatar.vue.d.ts +0 -8
  77. package/dist/composables/chat/index.d.ts +0 -13
  78. package/dist/composables/chat/useComposerContext.d.ts +0 -44
  79. package/dist/composables/chat/useConversationContext.d.ts +0 -36
  80. package/dist/composables/chat/useDialogsContext.d.ts +0 -43
  81. package/dist/composables/chat/useMessagesContext.d.ts +0 -42
  82. package/dist/composables/useAudioPlayer.d.ts +0 -18
  83. package/dist/composables/useChatActions.d.ts +0 -21
  84. package/dist/composables/useChatEventBus.d.ts +0 -108
  85. package/dist/composables/useComposerDrafts.d.ts +0 -47
  86. package/dist/composables/useComposerTriggers.d.ts +0 -63
  87. package/dist/composables/useConversationComposer.d.ts +0 -16
  88. package/dist/composables/useGroupMemberTracking.d.ts +0 -33
  89. package/dist/composables/useImageZoom.d.ts +0 -26
  90. package/dist/composables/useIsTouchUi.d.ts +0 -4
  91. package/dist/composables/useMessageActionMenu.d.ts +0 -257
  92. package/dist/composables/useMessageInfoDialog.d.ts +0 -201
  93. package/dist/composables/useMessageListScroll.d.ts +0 -15
  94. package/dist/composables/useMessageNavigation.d.ts +0 -16
  95. package/dist/composables/usePinnedMessages.d.ts +0 -190
  96. package/dist/composables/useRichTextComposer.d.ts +0 -75
  97. package/dist/demo/ApiExamplesPanel.vue.d.ts +0 -8
  98. package/dist/demo/CallDebugPanel.vue.d.ts +0 -8
  99. package/dist/demo/ChatShell.vue.d.ts +0 -12
  100. package/dist/demo/StatCard.vue.d.ts +0 -17
  101. package/dist/demo/ThemeModeToggle.vue.d.ts +0 -17
  102. package/dist/demo/useDemoThemeMode.d.ts +0 -7
  103. package/dist/main.d.ts +0 -0
  104. package/dist/sfc-styles-entry.d.ts +0 -1
  105. package/dist/shims-vue.d.ts +0 -6
  106. package/dist/vite-env.d.ts +0 -1
@@ -1,409 +0,0 @@
1
- import { BaseMessage, Conversation, Group, MessageReceipt, CometChat } from '@cometchat/chat-sdk-javascript';
2
- import { ComputedRef, Ref } from 'vue';
3
- import { Environment } from './environment';
4
- export interface ChatUserProfile {
5
- uid: string;
6
- name: string;
7
- avatar?: string;
8
- status?: string;
9
- lastSeen?: Date;
10
- }
11
- export interface FuseResultMatch {
12
- indices: ReadonlyArray<[number, number]>;
13
- key?: {
14
- src: string;
15
- } | string;
16
- value?: string;
17
- }
18
- export type Language = "nb" | "no" | "ar" | "de" | "en" | "es" | "fr" | "hi" | "ms" | "pt" | "ru" | "zh" | "zh-tw" | "sv" | "lt";
19
- export type ThemeMode = "dark" | "light";
20
- export type OnlineStatus = "online" | "offline";
21
- export interface ChatInstallOptions {
22
- environment: Environment;
23
- language?: Language;
24
- themeMode: ThemeMode;
25
- accessToken?: Ref<string | null | undefined> | null | undefined | string;
26
- loggerCallback?: (entry: LogEntry) => void;
27
- }
28
- export interface ChatInstance {
29
- componentId: string;
30
- replyToMessage: BaseMessage | null;
31
- captionedAttachment: {
32
- fileObject?: File;
33
- dimensions?: {
34
- width: number;
35
- height: number;
36
- };
37
- } | null;
38
- decoyAttachment: {
39
- fileObject?: File;
40
- dimensions?: {
41
- width: number;
42
- height: number;
43
- };
44
- } | null;
45
- scheduledMessageChat?: Group;
46
- showScheduledMessagesChat: boolean;
47
- showAlert: boolean;
48
- showRescheduleAlert: boolean;
49
- userInput: string | null;
50
- rescheduleInfo: {
51
- rescheduleMuid: string;
52
- messageId: number;
53
- } | null;
54
- }
55
- export interface View {
56
- componentName: string;
57
- props?: Record<string, unknown>;
58
- }
59
- export type ChatMessageKind = "text" | "image" | "video" | "audio" | "file" | "poll" | "action" | "unsupported";
60
- export type ChatComposerTarget = "main" | "thread";
61
- export type ComposerFormatCommand = "bold" | "italic" | "underline";
62
- export type ComposerFormattingMode = "default" | "external";
63
- export interface ComposerSelectionRect {
64
- x: number;
65
- y: number;
66
- top: number;
67
- right: number;
68
- bottom: number;
69
- left: number;
70
- width: number;
71
- height: number;
72
- }
73
- export interface ComposerSelectionState {
74
- text: string;
75
- href?: string;
76
- rect: ComposerSelectionRect;
77
- }
78
- export interface ChatComposerSelectionState extends ComposerSelectionState {
79
- target: ChatComposerTarget;
80
- }
81
- export interface BccChatComposerFormattingHandle {
82
- applyComposerFormat(command: ComposerFormatCommand, target?: ChatComposerTarget): boolean;
83
- requestComposerLink(target?: ChatComposerTarget): boolean;
84
- applyComposerLink(url: string, target?: ChatComposerTarget): boolean;
85
- cancelComposerLink(target?: ChatComposerTarget): void;
86
- getComposerSelection(target?: ChatComposerTarget): ChatComposerSelectionState | null;
87
- }
88
- export interface BccChatExpose extends BccChatComposerFormattingHandle {
89
- scrollToMessage(messageId: string): Promise<void>;
90
- readonly groupMembers: ParticipantInfo[];
91
- }
92
- export interface ChatAttachmentItem {
93
- kind: Extract<ChatMessageKind, "image" | "video" | "audio" | "file">;
94
- name: string;
95
- url?: string;
96
- mimeType?: string;
97
- extension?: string;
98
- size?: number;
99
- width?: number;
100
- height?: number;
101
- }
102
- export interface ChatPollOptionItem {
103
- id: string;
104
- text: string;
105
- voteCount: number;
106
- voters: ChatUserProfile[];
107
- }
108
- export interface ChatPollData {
109
- id?: string;
110
- question: string;
111
- options: ChatPollOptionItem[];
112
- totalVotes: number;
113
- allowsMultipleAnswers: boolean;
114
- }
115
- export interface ChatReactionItem {
116
- emoji: string;
117
- count: number;
118
- reactedByMe: boolean;
119
- }
120
- export interface ChatReactionDetailItem {
121
- emoji: string;
122
- user: ChatUserProfile;
123
- reactedAt?: Date;
124
- }
125
- export type ChatMessageReceiptKind = "delivered" | "read";
126
- export interface ChatMessageReceiptItem {
127
- kind: ChatMessageReceiptKind;
128
- user: ChatUserProfile;
129
- timestamp?: Date;
130
- }
131
- export interface MessageInfo {
132
- text?: string;
133
- type: string;
134
- senderUid: string;
135
- senderName: string;
136
- sentAt: Date;
137
- sentByCurrentUser: boolean;
138
- readAt: Date | undefined;
139
- messageReceipts?: MessageReceipt[];
140
- }
141
- export interface ChatMessageReceiptSummary {
142
- deliveredAt?: Date;
143
- deliveredToMeAt?: Date;
144
- readAt?: Date;
145
- readByMeAt?: Date;
146
- }
147
- export interface ChatReplyPreview {
148
- messageId: string;
149
- senderName: string;
150
- text: string;
151
- kind: ChatMessageKind;
152
- }
153
- export interface ChatForwardedFromInfo {
154
- senderName: string;
155
- }
156
- export type ChatDeliveryState = "sent" | "queued" | "sending" | "failed";
157
- export interface ChatScheduledInfo {
158
- scheduleDate?: Date;
159
- originalChatUid?: string;
160
- muid?: string;
161
- messageId?: number;
162
- }
163
- export interface ChatMessageItem {
164
- id: string;
165
- muid?: string;
166
- conversationId: string;
167
- senderId: string;
168
- senderName: string;
169
- text: string;
170
- kind: ChatMessageKind;
171
- sentAt: Date;
172
- category: string;
173
- type: string;
174
- senderAvatar?: string;
175
- isOwn: boolean;
176
- isDeleted: boolean;
177
- isEdited: boolean;
178
- attachments: ChatAttachmentItem[];
179
- poll?: ChatPollData;
180
- scheduled?: ChatScheduledInfo;
181
- translatedText?: string;
182
- replyTo?: ChatReplyPreview;
183
- forwardedFrom?: ChatForwardedFromInfo;
184
- parentMessageId?: string;
185
- replyCount: number;
186
- reactions: ChatReactionItem[];
187
- receipts: ChatMessageReceiptSummary;
188
- /** Set while the message is pinned in its conversation; the same value for every member. */
189
- pinnedAt?: Date;
190
- /** Uid of the most recent pinner, or the `app_system` sentinel for an app/admin pin. */
191
- pinnedBy?: string;
192
- deliveryState: ChatDeliveryState;
193
- metadata?: Record<string, unknown>;
194
- source: any;
195
- }
196
- export interface ChatConversationItem {
197
- id: string;
198
- targetId: string;
199
- type: "group" | "user";
200
- title: string;
201
- subtitle: string;
202
- avatar?: string;
203
- unreadCount: number;
204
- lastMessageAt?: Date;
205
- muteSettings?: Date | null;
206
- hasJoined?: boolean;
207
- tags: string[];
208
- memberCount?: number;
209
- source?: Conversation | null;
210
- lastMessage?: ChatMessageItem | null;
211
- }
212
- export interface UserChatInfo {
213
- chatUid: string;
214
- name: string;
215
- unreadMessageCount: number;
216
- lastMessage?: MessageInfo;
217
- membersCount: number;
218
- tags: string[];
219
- muteSettings?: Date | null;
220
- hasJoined: boolean;
221
- }
222
- export interface ForwardMessageTarget {
223
- chatUid: string;
224
- type: "user" | "group";
225
- }
226
- export interface ParticipantInfo {
227
- uid: string;
228
- displayName: string;
229
- avatar: string;
230
- role: string;
231
- lastSeen?: Date;
232
- }
233
- export interface DispatchData {
234
- muid: string;
235
- originalChatUid: string;
236
- scheduleDate: string;
237
- messageId: number;
238
- }
239
- export interface LogEntry {
240
- logUid: string;
241
- correlationUid?: string;
242
- message: string;
243
- severity: LogSeverity;
244
- userMetadata?: Record<string, unknown>;
245
- timestamp: string;
246
- }
247
- export declare enum LogSeverity {
248
- DEBUG = "Debug",
249
- INFO = "Info",
250
- WARN = "Warn",
251
- ERROR = "Error"
252
- }
253
- export interface SearchedItems {
254
- conversations: {
255
- conversation: ChatConversationItem;
256
- matches: FuseResultMatch[];
257
- }[];
258
- messages: {
259
- message: ChatMessageItem;
260
- matches: FuseResultMatch[];
261
- }[];
262
- }
263
- export interface ParticipantSettings {
264
- chatUid: string;
265
- personUid: string;
266
- mutedUntil: string | null;
267
- }
268
- export interface PersonSettings {
269
- mutedAll: boolean;
270
- }
271
- export interface CachedParticipantSettings {
272
- chatUid: string;
273
- mutedUntil: string | null;
274
- lastUpdated: number;
275
- }
276
- export interface CachedLastMessage {
277
- chatUid: string;
278
- lastMessage: null | MessageInfo;
279
- lastUpdated: number;
280
- }
281
- export interface AttachmentUploadInput {
282
- file: File;
283
- caption?: string;
284
- }
285
- export interface PollComposerInput {
286
- question: string;
287
- options: string[];
288
- }
289
- export interface MessageSendOptions {
290
- senderDisplayName?: string;
291
- }
292
- export interface ScheduleMessageInput {
293
- scheduleDate: string;
294
- text?: string;
295
- file?: File;
296
- caption?: string;
297
- }
298
- export interface ChatMessagesGetterPagination {
299
- total_pages?: number;
300
- current_page?: number;
301
- [key: string]: unknown;
302
- }
303
- export interface ChatMessagesGetterResult<TMessage = Record<string, unknown>> {
304
- data: TMessage[];
305
- meta?: {
306
- pagination?: ChatMessagesGetterPagination;
307
- [key: string]: unknown;
308
- };
309
- [key: string]: unknown;
310
- }
311
- export type ChatMessagesGetter = (guid: string, query: string) => Promise<ChatMessagesGetterResult>;
312
- export interface RescheduleMessageInput {
313
- messageId: number;
314
- muid: string;
315
- originalChatUid: string;
316
- scheduleDate: string;
317
- }
318
- export interface ChatClient {
319
- initialized: Ref<boolean>;
320
- loggingIn: Ref<boolean>;
321
- loadingConversations: Ref<boolean>;
322
- loadingMessages: Ref<boolean>;
323
- loadingThreadMessages: Ref<boolean>;
324
- loadingOlderMessages: Ref<boolean>;
325
- loadingOlderThreadMessages: Ref<boolean>;
326
- loadingScheduledMessages: Ref<boolean>;
327
- sendingMessage: Ref<boolean>;
328
- schedulingMessage: Ref<boolean>;
329
- syncingQueue: Ref<boolean>;
330
- connected: Ref<boolean>;
331
- offlineMode: Ref<boolean>;
332
- hideGroupActions: Ref<boolean>;
333
- loggedIn: Ref<boolean>;
334
- error: Ref<string | null>;
335
- currentUser: Ref<ChatUserProfile | null>;
336
- conversations: Ref<ChatConversationItem[]>;
337
- messages: Ref<ChatMessageItem[]>;
338
- threadMessages: Ref<ChatMessageItem[]>;
339
- scheduledMessages: Ref<ChatMessageItem[]>;
340
- /** Pinned messages of the active conversation, most recently pinned first. */
341
- pinnedMessages: Ref<ChatMessageItem[]>;
342
- loadingPinnedMessages: Ref<boolean>;
343
- /** Whether Pin Message is enabled for the chat app. */
344
- pinningEnabled: Ref<boolean>;
345
- /** Server-owned cap on pins per conversation; null while unknown. */
346
- pinnedMessagesLimit: Ref<number | null>;
347
- hasOlderMessages: Ref<boolean>;
348
- hasOlderThreadMessages: Ref<boolean>;
349
- pendingQueueCount: ComputedRef<number>;
350
- activeConversationId: Ref<string | null>;
351
- activeConversation: ComputedRef<ChatConversationItem | null>;
352
- activeThreadParentMessage: Ref<ChatMessageItem | null>;
353
- replyToMessage: Ref<ChatMessageItem | null>;
354
- editingMessage: Ref<ChatMessageItem | null>;
355
- init: () => Promise<void>;
356
- connectRealtime: () => Promise<void>;
357
- disconnectRealtime: () => Promise<void>;
358
- login: (accessToken: string) => Promise<void>;
359
- logout: () => Promise<void>;
360
- fetchConversations: () => Promise<void>;
361
- selectConversation: (conversationId: string | null) => Promise<void>;
362
- sendTextMessage: (text: string, options?: MessageSendOptions) => Promise<void>;
363
- sendAttachmentMessage: (input: AttachmentUploadInput, options?: MessageSendOptions) => Promise<void>;
364
- sendPollMessage: (input: PollComposerInput, options?: MessageSendOptions) => Promise<void>;
365
- forwardMessage: (message: ChatMessageItem, target: ForwardMessageTarget) => Promise<void>;
366
- fetchScheduledMessages: (originalChatUid?: string) => Promise<void>;
367
- loadOlderMessages: () => Promise<boolean>;
368
- loadOlderThreadMessages: () => Promise<boolean>;
369
- ensureMessageLoaded: (messageId: string) => Promise<boolean>;
370
- scheduleMessage: (input: ScheduleMessageInput, options?: MessageSendOptions) => Promise<void>;
371
- rescheduleMessage: (input: RescheduleMessageInput) => Promise<void>;
372
- removeScheduledMessage: (message: ChatMessageItem) => Promise<void>;
373
- editScheduledMessage: (message: ChatMessageItem, nextText: string) => Promise<void>;
374
- setReplyToMessage: (message: ChatMessageItem | null) => void;
375
- setEditingMessage: (message: ChatMessageItem | null) => void;
376
- openThread: (message: ChatMessageItem) => Promise<void>;
377
- closeThread: () => void;
378
- refreshVisibleMessages: (options?: {
379
- includeThread?: boolean;
380
- }) => Promise<void>;
381
- fetchMessageReceipts: (message: ChatMessageItem) => Promise<ChatMessageReceiptItem[]>;
382
- fetchMessageReactions: (message: ChatMessageItem) => Promise<ChatReactionDetailItem[]>;
383
- deleteMessage: (message: ChatMessageItem) => Promise<void>;
384
- votePoll: (message: ChatMessageItem, optionId: string) => Promise<void>;
385
- toggleReaction: (message: ChatMessageItem, emoji: string) => Promise<void>;
386
- fetchPinnedMessages: (conversationId?: string) => Promise<void>;
387
- pinMessage: (message: ChatMessageItem) => Promise<void>;
388
- unpinMessage: (messageId: string) => Promise<void>;
389
- togglePinnedMessage: (message: ChatMessageItem) => Promise<void>;
390
- isMessagePinned: (messageId: string) => boolean;
391
- translateMessage: (message: ChatMessageItem) => Promise<void>;
392
- mentionDisplayNamesByUid: Ref<Record<string, string>>;
393
- rememberMentionDisplayNames: (entries: ReadonlyArray<{
394
- uid: string;
395
- displayName: string;
396
- }>) => void;
397
- initiateCall: (receiverId: string, container: HTMLElement, callType?: "video" | "audio", receiverType?: "user" | "group") => Promise<InstanceType<typeof CometChat.Call>>;
398
- acceptIncomingCall: (container: HTMLElement, sessionId?: string) => Promise<void>;
399
- rejectIncomingCall: (sessionId?: string) => Promise<void>;
400
- endActiveCall: () => Promise<void>;
401
- joinOutgoingCallSession: (container: HTMLElement) => Promise<void>;
402
- incomingCall: Ref<InstanceType<typeof CometChat.Call> | null>;
403
- incomingCalls: Ref<Map<string, InstanceType<typeof CometChat.Call>>>;
404
- outgoingCall: Ref<InstanceType<typeof CometChat.Call> | null>;
405
- activeCallSessionId: Ref<string | null>;
406
- activeCallType: Ref<"audio" | "video">;
407
- callState: Ref<"idle" | "outgoing" | "incoming" | "connecting" | "in-call">;
408
- }
409
- export type { Environment };
@@ -1,100 +0,0 @@
1
- import { ChatClient, ChatComposerSelectionState, ChatComposerTarget, ChatConversationItem, ChatMessageItem, ChatMessagesGetter, ComposerFormatCommand, ComposerFormattingMode, Language, MessageSendOptions, ParticipantInfo } from '../../chat/types';
2
- import { ChatTarget } from '../../composables/useChatEventBus';
3
- import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
- type __VLS_Props = {
5
- client?: ChatClient | null;
6
- conversation?: ChatConversationItem | null;
7
- messages?: ChatMessageItem[];
8
- threadMessages?: ChatMessageItem[];
9
- loadingMessages?: boolean;
10
- loadingThreadMessages?: boolean;
11
- isReadOnly?: boolean;
12
- sendOptions?: MessageSendOptions;
13
- showDefaultEmptyState?: boolean;
14
- initialScheduledMessagesOpen?: boolean;
15
- chatUid?: string;
16
- senderDisplayName?: string;
17
- hideDeletedMessages?: boolean;
18
- hideGroupActions?: boolean;
19
- chatMessageGetter?: ChatMessagesGetter;
20
- displayNoMessagesText?: boolean;
21
- language?: Language;
22
- showHeader?: boolean;
23
- showMessageHeader?: boolean;
24
- containerClass?: string;
25
- actionMessageClass?: string;
26
- actionMessageRowClass?: string;
27
- composerFormattingMode?: ComposerFormattingMode;
28
- };
29
- declare function applyComposerFormat(command: ComposerFormatCommand, target?: ChatComposerTarget): boolean;
30
- declare function requestComposerLink(target?: ChatComposerTarget): boolean;
31
- declare function applyComposerLink(url: string, target?: ChatComposerTarget): boolean;
32
- declare function cancelComposerLink(target?: ChatComposerTarget): void;
33
- declare function getComposerSelection(target?: ChatComposerTarget): ChatComposerSelectionState | null;
34
- declare function scrollToMessage(messageId: string): Promise<void>;
35
- declare var __VLS_6: {
36
- message: string;
37
- }, __VLS_23: {
38
- conversation: ChatConversationItem | null;
39
- parentMessage: ChatMessageItem | null;
40
- target: ChatTarget;
41
- title: string;
42
- subtitle: string;
43
- memberCount: number;
44
- }, __VLS_102: {}, __VLS_105: {};
45
- type __VLS_Slots = {} & {
46
- 'error-message'?: (props: typeof __VLS_6) => any;
47
- } & {
48
- 'message-header'?: (props: typeof __VLS_23) => any;
49
- } & {
50
- 'no-messages'?: (props: typeof __VLS_102) => any;
51
- } & {
52
- 'not-a-member'?: (props: typeof __VLS_105) => any;
53
- };
54
- declare const __VLS_base: DefineComponent<__VLS_Props, {
55
- applyComposerFormat: typeof applyComposerFormat;
56
- applyComposerLink: typeof applyComposerLink;
57
- cancelComposerLink: typeof cancelComposerLink;
58
- getComposerSelection: typeof getComposerSelection;
59
- requestComposerLink: typeof requestComposerLink;
60
- scrollToMessage: typeof scrollToMessage;
61
- groupMembers: ComputedRef<{
62
- uid: string;
63
- displayName: string;
64
- avatar: string;
65
- role: string;
66
- lastSeen?: Date | undefined;
67
- }[]>;
68
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
69
- chatNotAMember: (chatUid: string) => any;
70
- composerSelectionChange: (selection: ChatComposerSelectionState | null) => any;
71
- composerLinkRequest: (selection: ChatComposerSelectionState) => any;
72
- chatMembersFetched: (members: ParticipantInfo[]) => any;
73
- chatEmpty: () => any;
74
- linkClicked: (event: MouseEvent, url: string) => any;
75
- }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
76
- onChatNotAMember?: ((chatUid: string) => any) | undefined;
77
- onComposerSelectionChange?: ((selection: ChatComposerSelectionState | null) => any) | undefined;
78
- onComposerLinkRequest?: ((selection: ChatComposerSelectionState) => any) | undefined;
79
- onChatMembersFetched?: ((members: ParticipantInfo[]) => any) | undefined;
80
- onChatEmpty?: (() => any) | undefined;
81
- onLinkClicked?: ((event: MouseEvent, url: string) => any) | undefined;
82
- }>, {
83
- chatUid: string;
84
- hideGroupActions: boolean;
85
- client: ChatClient | null;
86
- isReadOnly: boolean;
87
- initialScheduledMessagesOpen: boolean;
88
- hideDeletedMessages: boolean;
89
- displayNoMessagesText: boolean;
90
- showMessageHeader: boolean;
91
- composerFormattingMode: ComposerFormattingMode;
92
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
93
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
94
- declare const _default: typeof __VLS_export;
95
- export default _default;
96
- type __VLS_WithSlots<T, S> = T & {
97
- new (): {
98
- $slots: S;
99
- };
100
- };
@@ -1,34 +0,0 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- type __VLS_Props = {
3
- visible: boolean;
4
- offlineMode: boolean;
5
- connected: boolean;
6
- loading: boolean;
7
- notFound: boolean;
8
- notAMember: boolean;
9
- isEmpty: boolean;
10
- showEmptySlot: boolean;
11
- messages: {
12
- waitingForNetwork: string;
13
- connecting: string;
14
- loading: string;
15
- notFound: string;
16
- noMessages: string;
17
- notAMember: string;
18
- };
19
- };
20
- declare var __VLS_2: string, __VLS_3: {}, __VLS_6: `${string}-content`, __VLS_7: {};
21
- type __VLS_Slots = {} & {
22
- [K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
23
- } & {
24
- [K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7) => any;
25
- };
26
- declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
27
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
- declare const _default: typeof __VLS_export;
29
- export default _default;
30
- type __VLS_WithSlots<T, S> = T & {
31
- new (): {
32
- $slots: S;
33
- };
34
- };
@@ -1,44 +0,0 @@
1
- import { BccChatComposerFormattingHandle, ChatClient, ChatComposerSelectionState, ChatConversationItem, ChatMessagesGetter, ChatMessageItem, ComposerFormattingMode, Language, MessageSendOptions, ParticipantInfo } from '../../chat/types';
2
- export interface BccChatPublicProps {
3
- client?: ChatClient | null;
4
- conversation?: ChatConversationItem | null;
5
- messages?: ChatMessageItem[];
6
- threadMessages?: ChatMessageItem[];
7
- loadingMessages?: boolean;
8
- loadingThreadMessages?: boolean;
9
- isReadOnly?: boolean;
10
- sendOptions?: MessageSendOptions;
11
- showDefaultEmptyState?: boolean;
12
- initialScheduledMessagesOpen?: boolean;
13
- chatUid?: string;
14
- senderDisplayName?: string;
15
- hideDeletedMessages?: boolean;
16
- chatMessageGetter?: ChatMessagesGetter;
17
- loadMessageId?: string;
18
- displayNoMessagesText?: boolean;
19
- language?: Language;
20
- topInset?: number;
21
- bottomInset?: number;
22
- composerFormattingMode?: ComposerFormattingMode;
23
- }
24
- export declare const bccChatPublicPropDefaults: {
25
- client: null;
26
- initialScheduledMessagesOpen: boolean;
27
- chatUid: string;
28
- hideDeletedMessages: boolean;
29
- loadMessageId: string;
30
- displayNoMessagesText: boolean;
31
- topInset: number;
32
- bottomInset: number;
33
- composerFormattingMode: string;
34
- };
35
- export type BccChatPublicEmits = {
36
- chatMembersFetched: [members: ParticipantInfo[]];
37
- chatEmpty: [];
38
- composerSelectionChange: [selection: ChatComposerSelectionState | null];
39
- composerLinkRequest: [selection: ChatComposerSelectionState];
40
- };
41
- export interface BccChatPublicExpose extends BccChatComposerFormattingHandle {
42
- scrollToMessage(messageId: string): Promise<void>;
43
- readonly groupMembers: ParticipantInfo[];
44
- }
@@ -1,18 +0,0 @@
1
- import { ChatConversationItem } from '../../chat/types';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- type __VLS_Props = {
4
- conversations: ChatConversationItem[];
5
- activeConversationId: string | null;
6
- loading: boolean;
7
- query: string;
8
- mentionNameByUid?: Record<string, string>;
9
- };
10
- declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
- select: (conversationId: string) => any;
12
- "update:query": (value: string) => any;
13
- }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
14
- onSelect?: ((conversationId: string) => any) | undefined;
15
- "onUpdate:query"?: ((value: string) => any) | undefined;
16
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
17
- declare const _default: typeof __VLS_export;
18
- export default _default;
@@ -1,9 +0,0 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- type __VLS_Props = {
3
- name: string;
4
- subtitle?: string;
5
- avatar?: string;
6
- };
7
- declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
8
- declare const _default: typeof __VLS_export;
9
- export default _default;
@@ -1,7 +0,0 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- type __VLS_Props = {
3
- text: string;
4
- };
5
- declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
6
- declare const _default: typeof __VLS_export;
7
- export default _default;
@@ -1,12 +0,0 @@
1
- import { ChatAttachmentItem } from '../../chat/types';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- type __VLS_Props = {
4
- attachment: ChatAttachmentItem | null;
5
- };
6
- declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
7
- close: () => any;
8
- }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- onClose?: (() => any) | undefined;
10
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
11
- declare const _default: typeof __VLS_export;
12
- export default _default;
@@ -1,15 +0,0 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare function toggle(_event?: Event): void;
3
- declare function hide(): void;
4
- declare const __VLS_export: DefineComponent<{}, {
5
- toggle: typeof toggle;
6
- hide: typeof hide;
7
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
- pickFile: (kind: "image" | "video" | "audio" | "file") => any;
9
- openPoll: () => any;
10
- }, string, PublicProps, Readonly<{}> & Readonly<{
11
- onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
12
- onOpenPoll?: (() => any) | undefined;
13
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
14
- declare const _default: typeof __VLS_export;
15
- export default _default;
@@ -1,15 +0,0 @@
1
- import { ChatMessageItem } from '../../chat/types';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- type __VLS_Props = {
4
- message: ChatMessageItem;
5
- /** "editing" shows an information-coloured banner; "replying" shows success-coloured */
6
- variant: "editing" | "replying";
7
- contextLabel?: string;
8
- };
9
- declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
- cancel: () => any;
11
- }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
12
- onCancel?: (() => any) | undefined;
13
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
14
- declare const _default: typeof __VLS_export;
15
- export default _default;