@bcc-code/vue-bcc-chat-ui 7.2.3 → 7.2.7
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/App.vue.d.ts +4 -0
- package/dist/FixtureApp.vue.d.ts +4 -0
- package/dist/auth.d.ts +3 -0
- package/dist/chat/accessToken.d.ts +11 -0
- package/dist/chat/avatar.d.ts +3 -0
- package/dist/chat/cacheScope.d.ts +13 -0
- package/dist/chat/client.d.ts +7 -0
- package/dist/chat/clipboardFiles.d.ts +5 -0
- package/dist/chat/conversationState.d.ts +17 -0
- package/dist/chat/data.d.ts +18 -0
- package/dist/chat/environment.d.ts +8 -0
- package/dist/chat/i18n/en.d.ts +151 -0
- package/dist/chat/i18n/nb.d.ts +151 -0
- package/dist/chat/i18n/types.d.ts +2 -0
- package/dist/chat/index.d.ts +240 -0
- package/dist/chat/localization.d.ts +17 -0
- package/dist/chat/mentions.d.ts +33 -0
- package/dist/chat/messageText.d.ts +21 -0
- package/dist/chat/mockClient.d.ts +13 -0
- package/dist/chat/offlineStore.d.ts +55 -0
- package/dist/chat/participants.d.ts +8 -0
- package/dist/chat/pinnedMessages.d.ts +12 -0
- package/dist/chat/publicChannelMessageFallback.d.ts +1 -0
- package/dist/chat/reactions.d.ts +8 -0
- package/dist/chat/richText.d.ts +9 -0
- package/dist/chat/runtime.d.ts +3 -0
- package/dist/chat/theme.d.ts +19 -0
- package/dist/chat/types.d.ts +409 -0
- package/dist/components/chat/BccChat.vue.d.ts +100 -0
- package/dist/components/chat/ChatStatusOverlay.vue.d.ts +34 -0
- package/dist/components/chat/publicContract.d.ts +44 -0
- package/dist/components/conversations/ConversationList.vue.d.ts +18 -0
- package/dist/components/conversations/UserProfileCard.vue.d.ts +9 -0
- package/dist/components/messages/ActionMessageRow.vue.d.ts +7 -0
- package/dist/components/messages/AudioStickyPlayer.vue.d.ts +12 -0
- package/dist/components/messages/ComposerActionsPopover.vue.d.ts +15 -0
- package/dist/components/messages/ComposerContextBanner.vue.d.ts +15 -0
- package/dist/components/messages/ComposerFormatMenu.vue.d.ts +19 -0
- package/dist/components/messages/ComposerLinkDialog.vue.d.ts +18 -0
- package/dist/components/messages/ComposerPollDialog.vue.d.ts +18 -0
- package/dist/components/messages/ComposerScheduleDialog.vue.d.ts +22 -0
- package/dist/components/messages/ComposerTriggerMenu.vue.d.ts +24 -0
- package/dist/components/messages/ConversationComposer.vue.d.ts +30 -0
- package/dist/components/messages/LinkPreviewCard.vue.d.ts +8 -0
- package/dist/components/messages/LinkifiedText.vue.d.ts +15 -0
- package/dist/components/messages/MessageAttachmentList.vue.d.ts +12 -0
- package/dist/components/messages/MessageComposer.vue.d.ts +59 -0
- package/dist/components/messages/MessageDateSeparator.vue.d.ts +7 -0
- package/dist/components/messages/MessageDeliveryStatus.vue.d.ts +8 -0
- package/dist/components/messages/MessageForwardedLabel.vue.d.ts +8 -0
- package/dist/components/messages/MessageItem.vue.d.ts +36 -0
- package/dist/components/messages/MessageItemHeader.vue.d.ts +8 -0
- package/dist/components/messages/MessageItemMenu.vue.d.ts +36 -0
- package/dist/components/messages/MessageItemMenuReactions.vue.d.ts +13 -0
- package/dist/components/messages/MessageItemReactions.vue.d.ts +16 -0
- package/dist/components/messages/MessageList.vue.d.ts +42 -0
- package/dist/components/messages/MessageListHeader.vue.d.ts +9 -0
- package/dist/components/messages/MessagePinnedLabel.vue.d.ts +4 -0
- package/dist/components/messages/MessagePollContent.vue.d.ts +14 -0
- package/dist/components/messages/MessageReactionList.vue.d.ts +14 -0
- package/dist/components/messages/MessageReplyQuote.vue.d.ts +12 -0
- package/dist/components/messages/MessageTextContent.vue.d.ts +12 -0
- package/dist/components/messages/PinnedMessagesBar.vue.d.ts +4 -0
- package/dist/components/overlays/ForwardMessageDialog.vue.d.ts +16 -0
- package/dist/components/overlays/FullscreenDialog.vue.d.ts +34 -0
- package/dist/components/overlays/MediaViewerDialog.vue.d.ts +12 -0
- package/dist/components/overlays/MessageInfoDialog.vue.d.ts +16 -0
- package/dist/components/overlays/PinnedMessagesDialog.vue.d.ts +20 -0
- package/dist/components/overlays/ReceiptSection.vue.d.ts +13 -0
- package/dist/components/overlays/ScheduledMessagesDialog.vue.d.ts +37 -0
- package/dist/components/shared/PersonAvatar.vue.d.ts +8 -0
- package/dist/composables/chat/index.d.ts +13 -0
- package/dist/composables/chat/useComposerContext.d.ts +44 -0
- package/dist/composables/chat/useConversationContext.d.ts +36 -0
- package/dist/composables/chat/useDialogsContext.d.ts +43 -0
- package/dist/composables/chat/useMessagesContext.d.ts +42 -0
- package/dist/composables/useAudioPlayer.d.ts +18 -0
- package/dist/composables/useChatActions.d.ts +21 -0
- package/dist/composables/useChatEventBus.d.ts +108 -0
- package/dist/composables/useComposerDrafts.d.ts +47 -0
- package/dist/composables/useComposerTriggers.d.ts +63 -0
- package/dist/composables/useConversationComposer.d.ts +16 -0
- package/dist/composables/useGroupMemberTracking.d.ts +33 -0
- package/dist/composables/useImageZoom.d.ts +26 -0
- package/dist/composables/useIsTouchUi.d.ts +4 -0
- package/dist/composables/useMessageActionMenu.d.ts +257 -0
- package/dist/composables/useMessageInfoDialog.d.ts +201 -0
- package/dist/composables/useMessageListScroll.d.ts +15 -0
- package/dist/composables/useMessageNavigation.d.ts +16 -0
- package/dist/composables/usePinnedMessages.d.ts +190 -0
- package/dist/composables/useRichTextComposer.d.ts +75 -0
- package/dist/demo/ApiExamplesPanel.vue.d.ts +8 -0
- package/dist/demo/CallDebugPanel.vue.d.ts +8 -0
- package/dist/demo/ChatShell.vue.d.ts +12 -0
- package/dist/demo/StatCard.vue.d.ts +17 -0
- package/dist/demo/ThemeModeToggle.vue.d.ts +17 -0
- package/dist/demo/useDemoThemeMode.d.ts +7 -0
- package/dist/{dist-CP-Tq-KK.js → dist-BJ6-Om37.js} +1 -1
- package/dist/dist-BJ6-Om37.js.map +1 -0
- package/dist/index.d.ts +11 -841
- package/dist/main.d.ts +0 -0
- package/dist/sfc-styles-entry.d.ts +1 -0
- package/dist/shims-vue.d.ts +6 -0
- package/dist/style.css +1 -1
- package/dist/vite-env.d.ts +1 -0
- package/dist/vue-bcc-chat-ui.js +6174 -5663
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/dist/{web-CDfDePhG.js → web-DSJwqhTK.js} +2 -2
- package/dist/web-DSJwqhTK.js.map +1 -0
- package/package.json +9 -5
- package/dist/dist-CP-Tq-KK.js.map +0 -1
- package/dist/web-CDfDePhG.js.map +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const __VLS_export: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const __VLS_export: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
package/dist/auth.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface StoredCometChatToken {
|
|
2
|
+
sub: string;
|
|
3
|
+
token: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function getAccessToken(): string | null;
|
|
6
|
+
export declare function storeAccessToken(token: string | null): void;
|
|
7
|
+
export declare function getAccessTokenSubject(accessToken?: string | null): any;
|
|
8
|
+
export declare function getStoredCometChatToken(): StoredCometChatToken | null;
|
|
9
|
+
export declare function retrieveCcToken(): StoredCometChatToken | null;
|
|
10
|
+
export declare function storeCometChatToken(token: StoredCometChatToken): void;
|
|
11
|
+
export declare function clearCometChatToken(): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function getChatCacheScope(): string | null;
|
|
2
|
+
export declare function getChatCacheOwner(): string | null;
|
|
3
|
+
/**
|
|
4
|
+
* Ensures a cache scope exists for the given owner. Reuses the current scope
|
|
5
|
+
* when the owner has not changed; rotates it otherwise.
|
|
6
|
+
*/
|
|
7
|
+
export declare function ensureChatCacheScope(ownerId: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* Clears the in-memory mirrors so the next read re-fetches from localStorage.
|
|
10
|
+
* Only needed in tests where localStorage is cleared between runs without
|
|
11
|
+
* reloading the module.
|
|
12
|
+
*/
|
|
13
|
+
export declare function resetCacheScopeForTesting(): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ChatConversationItem, MessageSendOptions } from './types';
|
|
2
|
+
export declare function isConversationChannel(conversation?: Pick<ChatConversationItem, "source"> | null): boolean;
|
|
3
|
+
export declare function hasJoinedConversation(conversation?: Pick<ChatConversationItem, "source"> | null): boolean;
|
|
4
|
+
export declare function getConversationScope(conversation?: Pick<ChatConversationItem, "source"> | null): string | undefined;
|
|
5
|
+
export declare function isConversationReadOnly(conversation?: Pick<ChatConversationItem, "source"> | null): boolean;
|
|
6
|
+
export declare function canUseConversationMessageActions(conversation?: Pick<ChatConversationItem, "source"> | null): boolean;
|
|
7
|
+
export declare function canReactInConversation(conversation?: Pick<ChatConversationItem, "source"> | null): boolean;
|
|
8
|
+
export declare function canReplyInConversation(conversation?: Pick<ChatConversationItem, "source"> | null): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Pinning follows who may write. Ordinary chats have no moderators, so every
|
|
11
|
+
* participant may pin. A channel only lets its moderators post, so only they
|
|
12
|
+
* may pin there too.
|
|
13
|
+
*/
|
|
14
|
+
export declare function canPinInConversation(conversation?: Pick<ChatConversationItem, "source"> | null): boolean;
|
|
15
|
+
export declare function canOpenThreadInConversation(conversation?: Pick<ChatConversationItem, "source"> | null): boolean;
|
|
16
|
+
export declare function canShowConversationAvatars(conversation?: Pick<ChatConversationItem, "source" | "type"> | null): boolean;
|
|
17
|
+
export declare function getConversationSendOptions(conversation: Pick<ChatConversationItem, "source"> | null | undefined, senderDisplayName?: string): MessageSendOptions | undefined;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { getMessageTextPreview } from './messageText';
|
|
3
|
+
import { CachedParticipantSettings, ChatConversationItem, ParticipantInfo, PersonSettings, SearchedItems } from './types';
|
|
4
|
+
export declare function getSenderDisplayName(message: any, group?: Ref<{
|
|
5
|
+
getMetadata?: () => Record<string, any>;
|
|
6
|
+
} | undefined>): any;
|
|
7
|
+
export { getMessageTextPreview };
|
|
8
|
+
export declare function searchChat(searchQuery: string, limit?: number, currentUserId?: string | null): SearchedItems | undefined;
|
|
9
|
+
export declare function getChatMembersInfo(chatUid: string): Promise<ParticipantInfo[]>;
|
|
10
|
+
export declare function getMutedUntil(chatUid: string): Promise<string | null>;
|
|
11
|
+
export declare function muteChat(chatUid: string, mutedUntil: string | null): Promise<string | null>;
|
|
12
|
+
export declare function getMyChatSettings(): Promise<PersonSettings>;
|
|
13
|
+
export declare function updateMyChatSettings(settings: Partial<PersonSettings>): Promise<PersonSettings>;
|
|
14
|
+
export declare function setMuteAll(mute: boolean): Promise<boolean>;
|
|
15
|
+
export declare function toggleMuteAll(): Promise<boolean>;
|
|
16
|
+
export declare function getCachedParticipantSettings(chatUid: string): CachedParticipantSettings | null;
|
|
17
|
+
export declare function cacheParticipantSettings(settings: CachedParticipantSettings): void;
|
|
18
|
+
export declare function applyMuteSettingToConversations(conversations: ChatConversationItem[], chatUid: string, mutedUntil: string | null): ChatConversationItem[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type Environment = "prod" | "sandbox";
|
|
2
|
+
export interface ChatEnvironmentConfig {
|
|
3
|
+
region: string;
|
|
4
|
+
appId: string;
|
|
5
|
+
chatApiBaseUrl: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function setCurrentEnvironment(environment: Environment): void;
|
|
8
|
+
export declare function getCurrentEnvironment(): ChatEnvironmentConfig;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { TranslationParams } from './types';
|
|
2
|
+
export declare const englishTranslations: {
|
|
3
|
+
readonly addOption: "Add option";
|
|
4
|
+
readonly addToMessage: "Add to message";
|
|
5
|
+
readonly applyLink: "Apply link";
|
|
6
|
+
readonly attachAudio: "Attach audio";
|
|
7
|
+
readonly attachFile: "Attach file";
|
|
8
|
+
readonly attachImage: "Attach image";
|
|
9
|
+
readonly attachVideo: "Attach video";
|
|
10
|
+
readonly attachment: "Attachment";
|
|
11
|
+
readonly attachmentSummary: ({ name }: TranslationParams) => string;
|
|
12
|
+
readonly audio: "Audio";
|
|
13
|
+
readonly audioMessage: "Audio message";
|
|
14
|
+
readonly back: "Back";
|
|
15
|
+
readonly bold: "Bold";
|
|
16
|
+
readonly cancel: "Cancel";
|
|
17
|
+
readonly chatNotFound: "Chat not found...";
|
|
18
|
+
readonly chatNotAMember: "You are not a member of this chat.";
|
|
19
|
+
readonly close: "Close";
|
|
20
|
+
readonly closeMediaViewer: "Close media viewer";
|
|
21
|
+
readonly closeThread: "Close thread";
|
|
22
|
+
readonly connecting: "Connecting...";
|
|
23
|
+
readonly copyText: "Copy text";
|
|
24
|
+
readonly copied: "Copied";
|
|
25
|
+
readonly createPoll: "Create poll";
|
|
26
|
+
readonly createPollTitle: "Create poll";
|
|
27
|
+
readonly currentDraftWillBeScheduled: "Current draft will be scheduled.";
|
|
28
|
+
readonly delete: "Delete";
|
|
29
|
+
readonly delivered: "Delivered";
|
|
30
|
+
readonly deliveredNotYetRead: "Delivered, not yet read";
|
|
31
|
+
readonly deliveredToAll: "Delivered to all";
|
|
32
|
+
readonly deliveryAndReadDetails: "Delivery and read details";
|
|
33
|
+
readonly downloadVideo: "Download video";
|
|
34
|
+
readonly edit: "Edit";
|
|
35
|
+
readonly edited: "edited";
|
|
36
|
+
readonly editing: "Editing";
|
|
37
|
+
readonly editingInContext: ({ context }: TranslationParams) => string;
|
|
38
|
+
readonly failed: "Failed";
|
|
39
|
+
readonly file: "File";
|
|
40
|
+
readonly forward: "Forward";
|
|
41
|
+
readonly forwardedFrom: ({ name }: TranslationParams) => string;
|
|
42
|
+
readonly forwardedToConversation: ({ title }: TranslationParams) => string;
|
|
43
|
+
readonly forwardMessage: "Forward message";
|
|
44
|
+
readonly goToMessage: "Go to message";
|
|
45
|
+
readonly groupChat: "Group chat";
|
|
46
|
+
readonly hiddenHelperConversation: "Hidden helper conversation";
|
|
47
|
+
readonly image: "Image";
|
|
48
|
+
readonly info: "Info";
|
|
49
|
+
readonly italic: "Italic";
|
|
50
|
+
readonly insertLink: "Insert link";
|
|
51
|
+
readonly invalidLinkUrl: "Enter a valid web URL.";
|
|
52
|
+
readonly link: "Link";
|
|
53
|
+
readonly linkUrl: "URL";
|
|
54
|
+
readonly linkUrlPlaceholder: "https://example.com";
|
|
55
|
+
readonly loadMessageReceiptsError: "Unable to load message receipts.";
|
|
56
|
+
readonly loadScheduledMessagesError: "Unable to load scheduled messages.";
|
|
57
|
+
readonly loadOlderMessages: "Load older messages";
|
|
58
|
+
readonly loadingOlderMessages: "Loading older messages";
|
|
59
|
+
readonly loadingChat: "Loading chat...";
|
|
60
|
+
readonly loadingPreview: "Loading preview...";
|
|
61
|
+
readonly members: ({ count }: TranslationParams) => string;
|
|
62
|
+
readonly message: "Message";
|
|
63
|
+
readonly messageInfo: "Message info";
|
|
64
|
+
readonly messages: "Messages";
|
|
65
|
+
readonly multipleAnswersAllowed: "multiple answers allowed";
|
|
66
|
+
readonly noMatchingChatsFound: "No matching chats found.";
|
|
67
|
+
readonly noMessagesHaveBeenSentYet: "No messages have been sent yet";
|
|
68
|
+
readonly noMessagesYetInThisGroup: "No messages yet in this group.";
|
|
69
|
+
readonly noPinnedMessages: "No pinned messages in this conversation.";
|
|
70
|
+
readonly noRecipientsDeliveredStageYet: "No one here.";
|
|
71
|
+
readonly noScheduledMessagesForConversation: "No scheduled messages for this conversation.";
|
|
72
|
+
readonly nobodyHasReadThisMessageYet: "No one yet.";
|
|
73
|
+
readonly notYet: "Not yet";
|
|
74
|
+
readonly offline: "Offline";
|
|
75
|
+
readonly offlineQueued: ({ count }: TranslationParams) => string;
|
|
76
|
+
readonly openInNewTab: "Open in new tab";
|
|
77
|
+
readonly openVideoViewer: "Open video viewer";
|
|
78
|
+
readonly option: ({ index }: TranslationParams) => string;
|
|
79
|
+
readonly options: "Options";
|
|
80
|
+
readonly pause: "Pause";
|
|
81
|
+
readonly photo: "Photo";
|
|
82
|
+
readonly pinLimitReached: "This chat has reached its limit of pinned messages. Unpin one to pin another.";
|
|
83
|
+
readonly pinMessage: "Pin message";
|
|
84
|
+
readonly pinNotAllowed: "You do not have permission to pin messages here.";
|
|
85
|
+
readonly pinnedBy: ({ name }: TranslationParams) => string;
|
|
86
|
+
readonly pinnedLabel: "Pinned";
|
|
87
|
+
readonly pinnedMessage: "Pinned message";
|
|
88
|
+
readonly pinnedMessages: "Pinned messages";
|
|
89
|
+
readonly pinnedMessagesCount: ({ count }: TranslationParams) => string;
|
|
90
|
+
readonly play: "Play";
|
|
91
|
+
readonly poll: "Poll";
|
|
92
|
+
readonly pollPrefix: ({ question }: TranslationParams) => string;
|
|
93
|
+
readonly pollQuestionPlaceholder: "What should we prioritize next?";
|
|
94
|
+
readonly question: "Question";
|
|
95
|
+
readonly queued: "Queued";
|
|
96
|
+
readonly queuedForConversation: ({ title }: TranslationParams) => string;
|
|
97
|
+
readonly queuedOutgoingMessagesForThisChat: "Queued outgoing messages for this chat";
|
|
98
|
+
readonly reactionsCount: ({ count }: TranslationParams) => string;
|
|
99
|
+
readonly read: "Read";
|
|
100
|
+
readonly readBy: "Read by";
|
|
101
|
+
readonly readByAll: "Read by all";
|
|
102
|
+
readonly readOnlyChannel: "This channel is read-only.";
|
|
103
|
+
readonly realtimeOn: "Realtime on";
|
|
104
|
+
readonly recentConversations: "Recent conversations";
|
|
105
|
+
readonly refreshingMessages: "Refreshing messages";
|
|
106
|
+
readonly repliesDisabledInChannels: "Replies are disabled in channels.";
|
|
107
|
+
readonly reply: "Reply";
|
|
108
|
+
readonly replying: "Replying";
|
|
109
|
+
readonly replyingInContext: ({ context }: TranslationParams) => string;
|
|
110
|
+
readonly remove: "Remove";
|
|
111
|
+
readonly reschedule: "Reschedule";
|
|
112
|
+
readonly save: "Save";
|
|
113
|
+
readonly saveMessage: "Save message";
|
|
114
|
+
readonly schedule: "Schedule";
|
|
115
|
+
readonly scheduled: "Scheduled";
|
|
116
|
+
readonly scheduledDateLabel: ({ date }: TranslationParams) => string;
|
|
117
|
+
readonly scheduledMessages: "Scheduled messages";
|
|
118
|
+
readonly scheduleMessage: "Schedule message";
|
|
119
|
+
readonly searchByGroupName: "Search by group name";
|
|
120
|
+
readonly selectConversationToStart: "Select a conversation to start reading and sending messages.";
|
|
121
|
+
readonly sendAt: "Send at";
|
|
122
|
+
readonly sendAttachment: "Send attachment";
|
|
123
|
+
readonly sendMessage: "Send message";
|
|
124
|
+
readonly sending: "Sending";
|
|
125
|
+
readonly sendPoll: "Send poll";
|
|
126
|
+
readonly sent: "Sent";
|
|
127
|
+
readonly sentAnAttachment: "Sent an attachment";
|
|
128
|
+
readonly seekAudio: "Seek in audio";
|
|
129
|
+
readonly seen: "Seen";
|
|
130
|
+
readonly seenCount: ({ count }: TranslationParams) => string;
|
|
131
|
+
readonly signedInToSandbox: "Signed in to BCC Sandbox";
|
|
132
|
+
readonly someRecipients: "Some recipients";
|
|
133
|
+
readonly system: "System";
|
|
134
|
+
readonly thread: "Thread";
|
|
135
|
+
readonly threadReplies: ({ count }: TranslationParams) => string;
|
|
136
|
+
readonly today: "Today";
|
|
137
|
+
readonly yesterday: "Yesterday";
|
|
138
|
+
readonly threadWithCount: ({ count }: TranslationParams) => string;
|
|
139
|
+
readonly translate: "Translate";
|
|
140
|
+
readonly underline: "Underline";
|
|
141
|
+
readonly unpin: "Unpin";
|
|
142
|
+
readonly unpinMessage: "Unpin message";
|
|
143
|
+
readonly unsupportedMessageType: "Unsupported message type";
|
|
144
|
+
readonly unscheduled: "Unscheduled";
|
|
145
|
+
readonly video: "Video";
|
|
146
|
+
readonly voteCount: ({ count }: TranslationParams) => string;
|
|
147
|
+
readonly waitingForNetwork: "Waiting for network...";
|
|
148
|
+
readonly writeMessage: "Write a message...";
|
|
149
|
+
readonly you: "You";
|
|
150
|
+
readonly youSentAMessage: "You sent a message";
|
|
151
|
+
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { TranslationParams } from './types';
|
|
2
|
+
export declare const norwegianTranslations: {
|
|
3
|
+
readonly addOption: "Legg til alternativ";
|
|
4
|
+
readonly addToMessage: "Legg til i melding";
|
|
5
|
+
readonly applyLink: "Bruk lenke";
|
|
6
|
+
readonly attachAudio: "Legg ved lyd";
|
|
7
|
+
readonly attachFile: "Legg ved fil";
|
|
8
|
+
readonly attachImage: "Legg ved bilde";
|
|
9
|
+
readonly attachVideo: "Legg ved video";
|
|
10
|
+
readonly attachment: "Vedlegg";
|
|
11
|
+
readonly attachmentSummary: ({ name }: TranslationParams) => string;
|
|
12
|
+
readonly audio: "Lyd";
|
|
13
|
+
readonly audioMessage: "Lydmelding";
|
|
14
|
+
readonly back: "Tilbake";
|
|
15
|
+
readonly bold: "Fet";
|
|
16
|
+
readonly cancel: "Avbryt";
|
|
17
|
+
readonly chatNotFound: "Fant ikke chatten...";
|
|
18
|
+
readonly chatNotAMember: "Du er ikke medlem av denne chatten.";
|
|
19
|
+
readonly close: "Lukk";
|
|
20
|
+
readonly closeMediaViewer: "Lukk medievisning";
|
|
21
|
+
readonly closeThread: "Lukk tråd";
|
|
22
|
+
readonly connecting: "Kobler til...";
|
|
23
|
+
readonly copyText: "Kopier tekst";
|
|
24
|
+
readonly copied: "Kopiert";
|
|
25
|
+
readonly createPoll: "Opprett avstemning";
|
|
26
|
+
readonly createPollTitle: "Opprett avstemning";
|
|
27
|
+
readonly currentDraftWillBeScheduled: "Gjeldende utkast blir planlagt.";
|
|
28
|
+
readonly delete: "Slett";
|
|
29
|
+
readonly delivered: "Levert";
|
|
30
|
+
readonly deliveredNotYetRead: "Levert, ikke lest ennå";
|
|
31
|
+
readonly deliveredToAll: "Levert til alle";
|
|
32
|
+
readonly deliveryAndReadDetails: "Leverings- og lesedetaljer";
|
|
33
|
+
readonly downloadVideo: "Last ned video";
|
|
34
|
+
readonly edit: "Rediger";
|
|
35
|
+
readonly edited: "redigert";
|
|
36
|
+
readonly editing: "Redigerer";
|
|
37
|
+
readonly editingInContext: ({ context }: TranslationParams) => string;
|
|
38
|
+
readonly failed: "Mislyktes";
|
|
39
|
+
readonly file: "Fil";
|
|
40
|
+
readonly forward: "Videresend";
|
|
41
|
+
readonly forwardedFrom: ({ name }: TranslationParams) => string;
|
|
42
|
+
readonly forwardedToConversation: ({ title }: TranslationParams) => string;
|
|
43
|
+
readonly forwardMessage: "Videresend melding";
|
|
44
|
+
readonly goToMessage: "Gå til melding";
|
|
45
|
+
readonly groupChat: "Gruppechat";
|
|
46
|
+
readonly hiddenHelperConversation: "Skjult hjelpesamtale";
|
|
47
|
+
readonly image: "Bilde";
|
|
48
|
+
readonly info: "Info";
|
|
49
|
+
readonly italic: "Kursiv";
|
|
50
|
+
readonly insertLink: "Sett inn lenke";
|
|
51
|
+
readonly invalidLinkUrl: "Skriv inn en gyldig nettadresse.";
|
|
52
|
+
readonly link: "Lenke";
|
|
53
|
+
readonly linkUrl: "URL";
|
|
54
|
+
readonly linkUrlPlaceholder: "https://eksempel.no";
|
|
55
|
+
readonly loadMessageReceiptsError: "Kunne ikke laste meldingskvitteringer.";
|
|
56
|
+
readonly loadScheduledMessagesError: "Kunne ikke laste planlagte meldinger.";
|
|
57
|
+
readonly loadOlderMessages: "Last eldre meldinger";
|
|
58
|
+
readonly loadingOlderMessages: "Laster eldre meldinger";
|
|
59
|
+
readonly loadingChat: "Laster chat...";
|
|
60
|
+
readonly loadingPreview: "Laster forhåndsvisning...";
|
|
61
|
+
readonly members: ({ count }: TranslationParams) => string;
|
|
62
|
+
readonly message: "Melding";
|
|
63
|
+
readonly messageInfo: "Meldingsinfo";
|
|
64
|
+
readonly messages: "Meldinger";
|
|
65
|
+
readonly multipleAnswersAllowed: "flere svar tillatt";
|
|
66
|
+
readonly noMatchingChatsFound: "Fant ingen samsvarende chatter.";
|
|
67
|
+
readonly noMessagesHaveBeenSentYet: "Ingen meldinger har blitt sendt ennå";
|
|
68
|
+
readonly noMessagesYetInThisGroup: "Ingen meldinger i denne gruppen ennå.";
|
|
69
|
+
readonly noPinnedMessages: "Ingen festede meldinger i denne samtalen.";
|
|
70
|
+
readonly noRecipientsDeliveredStageYet: "Ingen mottakere er bare på levert-stadiet ennå.";
|
|
71
|
+
readonly noScheduledMessagesForConversation: "Ingen planlagte meldinger for denne samtalen.";
|
|
72
|
+
readonly nobodyHasReadThisMessageYet: "Ingen ennå.";
|
|
73
|
+
readonly notYet: "Ikke ennå";
|
|
74
|
+
readonly offline: "Frakoblet";
|
|
75
|
+
readonly offlineQueued: ({ count }: TranslationParams) => string;
|
|
76
|
+
readonly openInNewTab: "Åpne i ny fane";
|
|
77
|
+
readonly openVideoViewer: "Åpne videovisning";
|
|
78
|
+
readonly option: ({ index }: TranslationParams) => string;
|
|
79
|
+
readonly options: "Alternativer";
|
|
80
|
+
readonly pause: "Pause";
|
|
81
|
+
readonly photo: "Bilde";
|
|
82
|
+
readonly pinLimitReached: "Denne chatten har nådd grensen for festede meldinger. Løsne en for å feste en ny.";
|
|
83
|
+
readonly pinMessage: "Fest melding";
|
|
84
|
+
readonly pinNotAllowed: "Du har ikke tillatelse til å feste meldinger her.";
|
|
85
|
+
readonly pinnedBy: ({ name }: TranslationParams) => string;
|
|
86
|
+
readonly pinnedLabel: "Festet";
|
|
87
|
+
readonly pinnedMessage: "Festet melding";
|
|
88
|
+
readonly pinnedMessages: "Festede meldinger";
|
|
89
|
+
readonly pinnedMessagesCount: ({ count }: TranslationParams) => string;
|
|
90
|
+
readonly play: "Spill av";
|
|
91
|
+
readonly poll: "Avstemning";
|
|
92
|
+
readonly pollPrefix: ({ question }: TranslationParams) => string;
|
|
93
|
+
readonly pollQuestionPlaceholder: "Hva bør vi prioritere videre?";
|
|
94
|
+
readonly question: "Spørsmål";
|
|
95
|
+
readonly queued: "I kø";
|
|
96
|
+
readonly queuedForConversation: ({ title }: TranslationParams) => string;
|
|
97
|
+
readonly queuedOutgoingMessagesForThisChat: "Utgående meldinger i kø for denne chatten";
|
|
98
|
+
readonly reactionsCount: ({ count }: TranslationParams) => string;
|
|
99
|
+
readonly read: "Lest";
|
|
100
|
+
readonly readBy: "Lest av";
|
|
101
|
+
readonly readByAll: "Lest av alle";
|
|
102
|
+
readonly readOnlyChannel: "Denne kanalen er skrivebeskyttet.";
|
|
103
|
+
readonly realtimeOn: "Sanntid på";
|
|
104
|
+
readonly recentConversations: "Nylige samtaler";
|
|
105
|
+
readonly refreshingMessages: "Oppdaterer meldinger";
|
|
106
|
+
readonly repliesDisabledInChannels: "Svar er deaktivert i kanaler.";
|
|
107
|
+
readonly reply: "Svar";
|
|
108
|
+
readonly replying: "Svarer";
|
|
109
|
+
readonly replyingInContext: ({ context }: TranslationParams) => string;
|
|
110
|
+
readonly remove: "Fjern";
|
|
111
|
+
readonly reschedule: "Planlegg på nytt";
|
|
112
|
+
readonly save: "Lagre";
|
|
113
|
+
readonly saveMessage: "Lagre melding";
|
|
114
|
+
readonly schedule: "Planlegg";
|
|
115
|
+
readonly scheduled: "Planlagt";
|
|
116
|
+
readonly scheduledDateLabel: ({ date }: TranslationParams) => string;
|
|
117
|
+
readonly scheduledMessages: "Planlagte meldinger";
|
|
118
|
+
readonly scheduleMessage: "Planlegg melding";
|
|
119
|
+
readonly searchByGroupName: "Søk etter gruppenavn";
|
|
120
|
+
readonly selectConversationToStart: "Velg en samtale for å begynne å lese og sende meldinger.";
|
|
121
|
+
readonly sendAt: "Send kl.";
|
|
122
|
+
readonly sendAttachment: "Send vedlegg";
|
|
123
|
+
readonly sendMessage: "Send melding";
|
|
124
|
+
readonly sending: "Sender";
|
|
125
|
+
readonly sendPoll: "Send avstemning";
|
|
126
|
+
readonly sent: "Sendt";
|
|
127
|
+
readonly sentAnAttachment: "Sendte et vedlegg";
|
|
128
|
+
readonly seekAudio: "Spol i lyden";
|
|
129
|
+
readonly seen: "Sett";
|
|
130
|
+
readonly seenCount: ({ count }: TranslationParams) => string;
|
|
131
|
+
readonly signedInToSandbox: "Logget inn i BCC Sandbox";
|
|
132
|
+
readonly someRecipients: "Noen mottakere";
|
|
133
|
+
readonly system: "System";
|
|
134
|
+
readonly thread: "Tråd";
|
|
135
|
+
readonly threadReplies: ({ count }: TranslationParams) => string;
|
|
136
|
+
readonly today: "I dag";
|
|
137
|
+
readonly yesterday: "I går";
|
|
138
|
+
readonly threadWithCount: ({ count }: TranslationParams) => string;
|
|
139
|
+
readonly translate: "Oversett";
|
|
140
|
+
readonly underline: "Understrek";
|
|
141
|
+
readonly unpin: "Løsne";
|
|
142
|
+
readonly unpinMessage: "Løsne melding";
|
|
143
|
+
readonly unsupportedMessageType: "Meldingstype støttes ikke";
|
|
144
|
+
readonly unscheduled: "Ikke planlagt";
|
|
145
|
+
readonly video: "Video";
|
|
146
|
+
readonly voteCount: ({ count }: TranslationParams) => string;
|
|
147
|
+
readonly waitingForNetwork: "Venter på nettverk...";
|
|
148
|
+
readonly writeMessage: "Skriv en melding...";
|
|
149
|
+
readonly you: "Du";
|
|
150
|
+
readonly youSentAMessage: "Du sendte en melding";
|
|
151
|
+
};
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { Group, User, Call } from '@cometchat/chat-sdk-javascript';
|
|
2
|
+
import { App, Ref, ComputedRef, WritableComputedRef } from 'vue';
|
|
3
|
+
import { retrieveCcToken } from './accessToken';
|
|
4
|
+
import { proxyImage } from './avatar';
|
|
5
|
+
import { getChatMembersInfo, getMyChatSettings, getSenderDisplayName, setMuteAll, toggleMuteAll, updateMyChatSettings } from './data';
|
|
6
|
+
import { getCurrentEnvironment, Environment } from './environment';
|
|
7
|
+
import { getMessageTextPreview } from './messageText';
|
|
8
|
+
import { toMarkdownHtml } from './richText';
|
|
9
|
+
import { chatClient } from './runtime';
|
|
10
|
+
import { ChatInstallOptions, ChatMessagesGetter, Language, ChatMessageItem, OnlineStatus, ThemeMode, UserChatInfo, SearchedItems } from './types';
|
|
11
|
+
declare function install(app: App, options: ChatInstallOptions): Promise<void>;
|
|
12
|
+
declare function login(accessToken?: string): Promise<void>;
|
|
13
|
+
declare function logout(): Promise<void>;
|
|
14
|
+
declare function connect(connectionName?: string): Promise<void>;
|
|
15
|
+
declare function disconnect(connectionName?: string): Promise<void>;
|
|
16
|
+
declare function disconnectAll(): Promise<void>;
|
|
17
|
+
declare function setGetChatMessagesCallback(chatMessageGetter: ChatMessagesGetter | undefined): void;
|
|
18
|
+
declare function setLanguage(language: Language): void;
|
|
19
|
+
declare function setThemeMode(mode: ThemeMode): void;
|
|
20
|
+
declare function setAccessToken(token: string): Promise<void>;
|
|
21
|
+
declare function setEnvironment(environment: Environment): void;
|
|
22
|
+
declare function getGroup(groupUid: string, throwErrors?: boolean): Promise<Group | null | undefined>;
|
|
23
|
+
declare function getUserChats(): Promise<{
|
|
24
|
+
chatUid: string;
|
|
25
|
+
name: string;
|
|
26
|
+
unreadMessageCount: number;
|
|
27
|
+
lastMessage?: {
|
|
28
|
+
text?: string | undefined;
|
|
29
|
+
type: string;
|
|
30
|
+
senderUid: string;
|
|
31
|
+
senderName: string;
|
|
32
|
+
sentAt: Date;
|
|
33
|
+
sentByCurrentUser: boolean;
|
|
34
|
+
readAt: Date | undefined;
|
|
35
|
+
messageReceipts?: {
|
|
36
|
+
RECEIPT_TYPE: {
|
|
37
|
+
READ_RECEIPT: string;
|
|
38
|
+
DELIVERY_RECEIPT: string;
|
|
39
|
+
READ_BY_ALL_RECEIPT: string;
|
|
40
|
+
DELIVERED_TO_ALL_RECEIPT: string;
|
|
41
|
+
};
|
|
42
|
+
getReceiverType: () => string;
|
|
43
|
+
setReceiverType: (receiverType: string) => void;
|
|
44
|
+
getSender: () => User;
|
|
45
|
+
setSender: (sender: User) => void;
|
|
46
|
+
getReceiver: () => string;
|
|
47
|
+
setReceiver: (receiver: string) => void;
|
|
48
|
+
getTimestamp: () => string;
|
|
49
|
+
setTimestamp: (timestamp: string) => void;
|
|
50
|
+
setReadAt: (readAt: number) => void;
|
|
51
|
+
getReadAt: () => number;
|
|
52
|
+
setDeliveredAt: (deliveredAt: number) => void;
|
|
53
|
+
getDeliveredAt: () => number;
|
|
54
|
+
getMessageId: () => string;
|
|
55
|
+
setMessageId: (messageId: string) => void;
|
|
56
|
+
getReceiptType: () => string;
|
|
57
|
+
setReceiptType: (receiptType?: string) => void;
|
|
58
|
+
}[] | undefined;
|
|
59
|
+
} | undefined;
|
|
60
|
+
membersCount: number;
|
|
61
|
+
tags: string[];
|
|
62
|
+
muteSettings?: (Date | null) | undefined;
|
|
63
|
+
hasJoined: boolean;
|
|
64
|
+
}[]>;
|
|
65
|
+
declare function clearChatCount(chatUid: string): Promise<void>;
|
|
66
|
+
declare function getChatOnlineCount(chatUid: string): Promise<number>;
|
|
67
|
+
declare function muteChat(chatUid: string, mutedUntil: string | null): Promise<string | null>;
|
|
68
|
+
declare function getMutedUntil(chatUid: string): Promise<string | null>;
|
|
69
|
+
declare function pinMessage(message: ChatMessageItem): Promise<void>;
|
|
70
|
+
declare function unpinMessage(messageId: string): Promise<void>;
|
|
71
|
+
declare function togglePinnedMessage(message: ChatMessageItem): Promise<void>;
|
|
72
|
+
declare function isMessagePinned(messageId: string): boolean;
|
|
73
|
+
declare function scrollToMessage(messageId: string): void;
|
|
74
|
+
export { chatClient };
|
|
75
|
+
declare const chat: {
|
|
76
|
+
install: typeof install;
|
|
77
|
+
setGetChatMessagesCallback: typeof setGetChatMessagesCallback;
|
|
78
|
+
initialized: Ref<boolean, boolean>;
|
|
79
|
+
connected: ComputedRef<boolean>;
|
|
80
|
+
connecting: ComputedRef<boolean>;
|
|
81
|
+
loggedIn: ComputedRef<boolean>;
|
|
82
|
+
userChats: Ref<{
|
|
83
|
+
chatUid: string;
|
|
84
|
+
name: string;
|
|
85
|
+
unreadMessageCount: number;
|
|
86
|
+
lastMessage?: {
|
|
87
|
+
text?: string | undefined;
|
|
88
|
+
type: string;
|
|
89
|
+
senderUid: string;
|
|
90
|
+
senderName: string;
|
|
91
|
+
sentAt: Date;
|
|
92
|
+
sentByCurrentUser: boolean;
|
|
93
|
+
readAt: Date | undefined;
|
|
94
|
+
messageReceipts?: {
|
|
95
|
+
RECEIPT_TYPE: {
|
|
96
|
+
READ_RECEIPT: string;
|
|
97
|
+
DELIVERY_RECEIPT: string;
|
|
98
|
+
READ_BY_ALL_RECEIPT: string;
|
|
99
|
+
DELIVERED_TO_ALL_RECEIPT: string;
|
|
100
|
+
};
|
|
101
|
+
getReceiverType: () => string;
|
|
102
|
+
setReceiverType: (receiverType: string) => void;
|
|
103
|
+
getSender: () => User;
|
|
104
|
+
setSender: (sender: User) => void;
|
|
105
|
+
getReceiver: () => string;
|
|
106
|
+
setReceiver: (receiver: string) => void;
|
|
107
|
+
getTimestamp: () => string;
|
|
108
|
+
setTimestamp: (timestamp: string) => void;
|
|
109
|
+
setReadAt: (readAt: number) => void;
|
|
110
|
+
getReadAt: () => number;
|
|
111
|
+
setDeliveredAt: (deliveredAt: number) => void;
|
|
112
|
+
getDeliveredAt: () => number;
|
|
113
|
+
getMessageId: () => string;
|
|
114
|
+
setMessageId: (messageId: string) => void;
|
|
115
|
+
getReceiptType: () => string;
|
|
116
|
+
setReceiptType: (receiptType?: string) => void;
|
|
117
|
+
}[] | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
membersCount: number;
|
|
120
|
+
tags: string[];
|
|
121
|
+
muteSettings?: (Date | null) | undefined;
|
|
122
|
+
hasJoined: boolean;
|
|
123
|
+
}[], UserChatInfo[] | {
|
|
124
|
+
chatUid: string;
|
|
125
|
+
name: string;
|
|
126
|
+
unreadMessageCount: number;
|
|
127
|
+
lastMessage?: {
|
|
128
|
+
text?: string | undefined;
|
|
129
|
+
type: string;
|
|
130
|
+
senderUid: string;
|
|
131
|
+
senderName: string;
|
|
132
|
+
sentAt: Date;
|
|
133
|
+
sentByCurrentUser: boolean;
|
|
134
|
+
readAt: Date | undefined;
|
|
135
|
+
messageReceipts?: {
|
|
136
|
+
RECEIPT_TYPE: {
|
|
137
|
+
READ_RECEIPT: string;
|
|
138
|
+
DELIVERY_RECEIPT: string;
|
|
139
|
+
READ_BY_ALL_RECEIPT: string;
|
|
140
|
+
DELIVERED_TO_ALL_RECEIPT: string;
|
|
141
|
+
};
|
|
142
|
+
getReceiverType: () => string;
|
|
143
|
+
setReceiverType: (receiverType: string) => void;
|
|
144
|
+
getSender: () => User;
|
|
145
|
+
setSender: (sender: User) => void;
|
|
146
|
+
getReceiver: () => string;
|
|
147
|
+
setReceiver: (receiver: string) => void;
|
|
148
|
+
getTimestamp: () => string;
|
|
149
|
+
setTimestamp: (timestamp: string) => void;
|
|
150
|
+
setReadAt: (readAt: number) => void;
|
|
151
|
+
getReadAt: () => number;
|
|
152
|
+
setDeliveredAt: (deliveredAt: number) => void;
|
|
153
|
+
getDeliveredAt: () => number;
|
|
154
|
+
getMessageId: () => string;
|
|
155
|
+
setMessageId: (messageId: string) => void;
|
|
156
|
+
getReceiptType: () => string;
|
|
157
|
+
setReceiptType: (receiptType?: string) => void;
|
|
158
|
+
}[] | undefined;
|
|
159
|
+
} | undefined;
|
|
160
|
+
membersCount: number;
|
|
161
|
+
tags: string[];
|
|
162
|
+
muteSettings?: (Date | null) | undefined;
|
|
163
|
+
hasJoined: boolean;
|
|
164
|
+
}[]>;
|
|
165
|
+
userUid: ComputedRef<string | undefined>;
|
|
166
|
+
connect: typeof connect;
|
|
167
|
+
disconnect: typeof disconnect;
|
|
168
|
+
disconnectAll: typeof disconnectAll;
|
|
169
|
+
setAccessToken: typeof setAccessToken;
|
|
170
|
+
login: typeof login;
|
|
171
|
+
logout: typeof logout;
|
|
172
|
+
setCurrentEnvironment: typeof setEnvironment;
|
|
173
|
+
getCurrentEnvironment: typeof getCurrentEnvironment;
|
|
174
|
+
setThemeMode: typeof setThemeMode;
|
|
175
|
+
setLanguage: typeof setLanguage;
|
|
176
|
+
getGroup: typeof getGroup;
|
|
177
|
+
getChatMembersInfo: typeof getChatMembersInfo;
|
|
178
|
+
getUserChats: typeof getUserChats;
|
|
179
|
+
clearChatCount: typeof clearChatCount;
|
|
180
|
+
refreshVisibleMessages: () => Promise<void> | undefined;
|
|
181
|
+
getChatOnlineCount: typeof getChatOnlineCount;
|
|
182
|
+
searchChat: (searchQuery: string, limit?: number) => SearchedItems | undefined;
|
|
183
|
+
getSenderDisplayName: typeof getSenderDisplayName;
|
|
184
|
+
getMessageTextPreview: typeof getMessageTextPreview;
|
|
185
|
+
proxyImage: typeof proxyImage;
|
|
186
|
+
getMutedUntil: typeof getMutedUntil;
|
|
187
|
+
muteChat: typeof muteChat;
|
|
188
|
+
getMyChatSettings: typeof getMyChatSettings;
|
|
189
|
+
updateMyChatSettings: typeof updateMyChatSettings;
|
|
190
|
+
setMuteAll: typeof setMuteAll;
|
|
191
|
+
toggleMuteAll: typeof toggleMuteAll;
|
|
192
|
+
toMarkdownHtml: typeof toMarkdownHtml;
|
|
193
|
+
retrieveCcToken: typeof retrieveCcToken;
|
|
194
|
+
getChatMessages: Ref<ChatMessagesGetter | undefined, ChatMessagesGetter | undefined>;
|
|
195
|
+
scrollToMessageId: Ref<string | undefined, string | undefined>;
|
|
196
|
+
scrollToMessage: typeof scrollToMessage;
|
|
197
|
+
pinnedMessages: ComputedRef<ChatMessageItem[]>;
|
|
198
|
+
pinMessage: typeof pinMessage;
|
|
199
|
+
unpinMessage: typeof unpinMessage;
|
|
200
|
+
togglePinnedMessage: typeof togglePinnedMessage;
|
|
201
|
+
isMessagePinned: typeof isMessagePinned;
|
|
202
|
+
connectivity: {
|
|
203
|
+
onlineMode: WritableComputedRef<OnlineStatus, OnlineStatus>;
|
|
204
|
+
onlineStatus: ComputedRef<OnlineStatus>;
|
|
205
|
+
};
|
|
206
|
+
onlineMode: WritableComputedRef<OnlineStatus, OnlineStatus>;
|
|
207
|
+
onlineStatus: ComputedRef<OnlineStatus>;
|
|
208
|
+
theme: Ref<{
|
|
209
|
+
palette: {
|
|
210
|
+
mode: ThemeMode;
|
|
211
|
+
setMode: (mode: ThemeMode) => void;
|
|
212
|
+
};
|
|
213
|
+
}, {
|
|
214
|
+
palette: {
|
|
215
|
+
mode: ThemeMode;
|
|
216
|
+
setMode(mode: ThemeMode): void;
|
|
217
|
+
};
|
|
218
|
+
} | {
|
|
219
|
+
palette: {
|
|
220
|
+
mode: ThemeMode;
|
|
221
|
+
setMode: (mode: ThemeMode) => void;
|
|
222
|
+
};
|
|
223
|
+
}>;
|
|
224
|
+
themeMode: Ref<ThemeMode, ThemeMode>;
|
|
225
|
+
language: Ref<Language, Language>;
|
|
226
|
+
calls: {
|
|
227
|
+
state: ComputedRef<"idle" | "outgoing" | "incoming" | "connecting" | "in-call">;
|
|
228
|
+
activeType: ComputedRef<"video" | "audio">;
|
|
229
|
+
activeSessionId: ComputedRef<string | null>;
|
|
230
|
+
incomingCall: ComputedRef< Call | null>;
|
|
231
|
+
incomingCalls: ComputedRef<Map<string, Call>>;
|
|
232
|
+
outgoingCall: ComputedRef< Call | null>;
|
|
233
|
+
start: (receiverId: string, container: HTMLElement, callType?: "audio" | "video", receiverType?: "user" | "group") => Promise< Call>;
|
|
234
|
+
accept: (container: HTMLElement, sessionId?: string) => Promise<void>;
|
|
235
|
+
reject: (sessionId?: string) => Promise<void>;
|
|
236
|
+
end: () => Promise<void>;
|
|
237
|
+
joinActive: (container: HTMLElement) => Promise<void>;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
export default chat;
|