@bcc-code/vue-bcc-chat-ui 6.5.0 → 7.0.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 (137) hide show
  1. package/dist/App.vue.d.ts +1 -1
  2. package/dist/auth.d.ts +2 -0
  3. package/dist/chat/accessToken.d.ts +9 -1
  4. package/dist/chat/avatar.d.ts +3 -0
  5. package/dist/chat/client.d.ts +7 -0
  6. package/dist/chat/conversationState.d.ts +11 -0
  7. package/dist/chat/data.d.ts +8 -17
  8. package/dist/chat/environment.d.ts +7 -2
  9. package/dist/chat/i18n/en.d.ts +118 -0
  10. package/dist/chat/i18n/nb.d.ts +118 -0
  11. package/dist/chat/i18n/types.d.ts +2 -0
  12. package/dist/chat/index.d.ts +87 -446
  13. package/dist/chat/localization.d.ts +15 -0
  14. package/dist/chat/messageText.d.ts +13 -0
  15. package/dist/chat/mockClient.d.ts +13 -0
  16. package/dist/chat/offlineStore.d.ts +53 -0
  17. package/dist/chat/reactions.d.ts +8 -0
  18. package/dist/chat/richText.d.ts +5 -0
  19. package/dist/chat/theme.d.ts +10 -400
  20. package/dist/chat/types.d.ts +206 -28
  21. package/dist/components/chat/BccChat.vue.d.ts +509 -0
  22. package/dist/components/chat/ChatStatusOverlay.vue.d.ts +33 -0
  23. package/dist/components/chat/publicContract.d.ts +43 -0
  24. package/dist/components/conversations/ConversationList.vue.d.ts +15 -0
  25. package/dist/components/conversations/UserProfileCard.vue.d.ts +8 -0
  26. package/dist/components/messages/ActionMessageRow.vue.d.ts +5 -0
  27. package/dist/components/messages/ComposerActionsPopover.vue.d.ts +19 -0
  28. package/dist/components/messages/ComposerContextBanner.vue.d.ts +13 -0
  29. package/dist/components/messages/ComposerFormatMenu.vue.d.ts +13 -0
  30. package/dist/components/messages/ComposerPollDialog.vue.d.ts +16 -0
  31. package/dist/components/messages/ComposerScheduleDialog.vue.d.ts +20 -0
  32. package/dist/components/messages/ConversationComposer.vue.d.ts +106 -0
  33. package/dist/components/messages/LinkPreviewCard.vue.d.ts +6 -0
  34. package/dist/components/messages/LinkifiedText.vue.d.ts +8 -0
  35. package/dist/components/messages/MessageAttachmentList.vue.d.ts +10 -0
  36. package/dist/components/messages/MessageComposer.vue.d.ts +69 -0
  37. package/dist/components/messages/MessageDeliveryStatus.vue.d.ts +6 -0
  38. package/dist/components/messages/MessageItem.vue.d.ts +27 -0
  39. package/dist/components/messages/MessageItemHeader.vue.d.ts +6 -0
  40. package/dist/components/messages/MessageItemMenu.vue.d.ts +26 -0
  41. package/dist/components/messages/MessageItemMenuReactions.vue.d.ts +11 -0
  42. package/dist/components/messages/MessageItemReactions.vue.d.ts +14 -0
  43. package/dist/components/messages/MessageList.vue.d.ts +115 -0
  44. package/dist/components/messages/MessageListHeader.vue.d.ts +7 -0
  45. package/dist/components/messages/MessagePollContent.vue.d.ts +12 -0
  46. package/dist/components/messages/MessageReactionList.vue.d.ts +12 -0
  47. package/dist/components/messages/MessageReplyQuote.vue.d.ts +10 -0
  48. package/dist/components/messages/MessageTextContent.vue.d.ts +6 -0
  49. package/dist/components/overlays/FullscreenDialog.vue.d.ts +34 -0
  50. package/dist/components/overlays/MediaViewerDialog.vue.d.ts +13 -0
  51. package/dist/components/overlays/MessageInfoDialog.vue.d.ts +14 -0
  52. package/dist/components/overlays/ReceiptSection.vue.d.ts +9 -0
  53. package/dist/components/overlays/ScheduledMessagesDialog.vue.d.ts +25 -0
  54. package/dist/composables/chat/index.d.ts +13 -0
  55. package/dist/composables/chat/useComposerContext.d.ts +43 -0
  56. package/dist/composables/chat/useConversationContext.d.ts +30 -0
  57. package/dist/composables/chat/useDialogsContext.d.ts +27 -0
  58. package/dist/composables/chat/useMessagesContext.d.ts +36 -0
  59. package/dist/composables/useChatActions.d.ts +21 -0
  60. package/dist/composables/useChatEventBus.d.ts +91 -0
  61. package/dist/composables/useComposerDrafts.d.ts +44 -0
  62. package/dist/composables/useConversationComposer.d.ts +15 -0
  63. package/dist/composables/useGroupMemberTracking.d.ts +28 -0
  64. package/dist/composables/useImageZoom.d.ts +26 -0
  65. package/dist/composables/useMessageActionMenu.d.ts +202 -0
  66. package/dist/composables/useMessageInfoDialog.d.ts +165 -0
  67. package/dist/composables/useMessageListScroll.d.ts +30 -0
  68. package/dist/composables/useMessageNavigation.d.ts +18 -0
  69. package/dist/composables/useRichTextComposer.d.ts +31 -0
  70. package/dist/demo/ApiExamplesPanel.vue.d.ts +6 -0
  71. package/dist/demo/ChatShell.vue.d.ts +10 -0
  72. package/dist/demo/ThemeModeToggle.vue.d.ts +12 -0
  73. package/dist/demo/useDemoThemeMode.d.ts +6 -0
  74. package/dist/design.d.ts +10 -0
  75. package/dist/index.d.ts +10 -3
  76. package/dist/main.d.ts +0 -1
  77. package/dist/style.css +1 -0
  78. package/dist/vue-bcc-chat-ui.js +8858 -84780
  79. package/dist/vue-bcc-chat-ui.js.map +1 -1
  80. package/package.json +42 -51
  81. package/README.md +0 -89
  82. package/dist/chat/bccuiExtension.d.ts +0 -7
  83. package/dist/chat/captionedAttachment.d.ts +0 -7
  84. package/dist/chat/captionedAttachmentExtension.d.ts +0 -7
  85. package/dist/chat/cometChatPatches.d.ts +0 -3
  86. package/dist/chat/connection.d.ts +0 -14
  87. package/dist/chat/logger.d.ts +0 -12
  88. package/dist/chat/login.d.ts +0 -14
  89. package/dist/chat/message.d.ts +0 -15
  90. package/dist/chat/replyExtension.d.ts +0 -26
  91. package/dist/chat/replyStyle.d.ts +0 -30
  92. package/dist/chat/rescheduleExtension.d.ts +0 -22
  93. package/dist/chat/scheduledMessage.d.ts +0 -4
  94. package/dist/chat/styleFix.d.ts +0 -14
  95. package/dist/chat/translations.d.ts +0 -3
  96. package/dist/chat/uiKit.d.ts +0 -10
  97. package/dist/component-overrides/BccBubbleWrapper.vue.d.ts +0 -156
  98. package/dist/component-overrides/CometChatMessageListOverride.vue.d.ts +0 -2
  99. package/dist/components/BccAttachmentBox.vue.d.ts +0 -29
  100. package/dist/components/BccAttachmentPreview.vue.d.ts +0 -23
  101. package/dist/components/BccChatMessageBubble.vue.d.ts +0 -99
  102. package/dist/components/BccChatMessageList.vue.d.ts +0 -82
  103. package/dist/components/BccChatMessages.vue.d.ts +0 -33
  104. package/dist/components/BccChatSendButton.vue.d.ts +0 -4
  105. package/dist/components/BccCometChatFullScreenViewer.vue.d.ts +0 -24
  106. package/dist/components/BccFileBubble.vue.d.ts +0 -70
  107. package/dist/components/BccImageBubble.vue.d.ts +0 -27
  108. package/dist/components/BccReplyBox.vue.d.ts +0 -36
  109. package/dist/components/BccReplyPreview.vue.d.ts +0 -30
  110. package/dist/components/BccScheduledMessageModal.vue.d.ts +0 -31
  111. package/dist/components/BccScheduledMessages.vue.d.ts +0 -25
  112. package/dist/components/BccScheduledSendButton.vue.d.ts +0 -14
  113. package/dist/offline/cometChatAPIInterceptor.d.ts +0 -2
  114. package/dist/offline/cometChatWSInterceptor.d.ts +0 -2
  115. package/dist/offline/connectivity.d.ts +0 -5
  116. package/dist/offline/failedSendingRetry.d.ts +0 -4
  117. package/dist/offline/index.d.ts +0 -10
  118. package/dist/offline/offlineStoreLocalStorage.d.ts +0 -32
  119. package/dist/offline/types.d.ts +0 -69
  120. package/dist/vite.svg +0 -1
  121. package/dist/vue-bcc-chat-ui.css +0 -1
  122. package/src/components/BccAttachmentBox.vue +0 -133
  123. package/src/components/BccAttachmentPreview.vue +0 -57
  124. package/src/components/BccChatMessageBubble.vue +0 -219
  125. package/src/components/BccChatMessageList.vue +0 -488
  126. package/src/components/BccChatMessages.vue +0 -212
  127. package/src/components/BccChatSendButton.vue +0 -91
  128. package/src/components/BccCometChatFullScreenViewer.vue +0 -118
  129. package/src/components/BccFileBubble.vue +0 -137
  130. package/src/components/BccImageBubble.vue +0 -75
  131. package/src/components/BccReplyBox.vue +0 -141
  132. package/src/components/BccReplyPreview.vue +0 -113
  133. package/src/components/BccScheduledMessageIcon.vue +0 -65
  134. package/src/components/BccScheduledMessageModal.vue +0 -70
  135. package/src/components/BccScheduledMessages.vue +0 -125
  136. package/src/components/BccScheduledSendButton.vue +0 -118
  137. /package/dist/{components/BccScheduledMessageIcon.vue.d.ts → FixtureApp.vue.d.ts} +0 -0
@@ -1,453 +1,94 @@
1
- import { Ref } from 'vue';
2
- import { ChatInstallOptions } from './types';
3
- declare function install(app: any, options: ChatInstallOptions): Promise<void>;
4
- declare function updateGetGroupMessages(groupMessageGetter: ((guid: string, query: string) => Promise<any>) | undefined): void;
5
- declare const _default: {
6
- setLanguage: (lang: import('./types').Language) => void;
7
- getGroupMessages: Ref<((guid: string, query: string) => Promise<any>) | undefined, ((guid: string, query: string) => Promise<any>) | undefined>;
8
- loadMessageId: Ref<string | undefined, string | undefined>;
9
- scrollToMessageId: Ref<string | undefined, string | undefined>;
10
- onlineMode: import('vue').WritableComputedRef<import('../offline/types').OnlineStatus, import('../offline/types').OnlineStatus>;
11
- onlineStatus: import('vue').ComputedRef<import('../offline/types').OnlineStatus>;
12
- theme: Ref<{
1
+ import { App } from 'vue';
2
+ import { retrieveCcToken } from './accessToken';
3
+ import { proxyImage } from './avatar';
4
+ import { getGroupMembersInfo as getGroupMembersInfoCompat, getMyChatSettings, getSenderDisplayName, setMuteAll, toggleMuteAll, updateMyChatSettings } from './data';
5
+ import { getCurrentEnvironment, Environment } from './environment';
6
+ import { getMessageTextPreview } from './messageText';
7
+ import { toMarkdownHtml } from './richText';
8
+ import { ChatClient, ChatInstallOptions, Language, OnlineStatus, ThemeMode, UserChatInfo } from './types';
9
+ declare const chatClient: import('vue').ShallowRef<ChatClient | null, ChatClient | null>;
10
+ declare function install(app: App, options: ChatInstallOptions): Promise<void>;
11
+ declare function login(accessToken?: string): Promise<void>;
12
+ declare function logout(): Promise<void>;
13
+ declare function connect(connectionName?: string): Promise<void>;
14
+ declare function disconnect(connectionName?: string): Promise<void>;
15
+ declare function disconnectAll(): Promise<void>;
16
+ declare function updateGetGroupMessages(groupMessageGetter: ((guid: string, query: string) => Promise<unknown>) | undefined): void;
17
+ declare function setLanguage(language: Language): void;
18
+ declare function setThemeMode(mode: ThemeMode): void;
19
+ declare function setAccessToken(token: string): Promise<void>;
20
+ declare function setEnvironment(environment: Environment): void;
21
+ declare function getGroup(groupUid: string): Promise<import('@cometchat/chat-sdk-javascript').Group | null | undefined>;
22
+ declare function getUserChats(): Promise<UserChatInfo[]>;
23
+ declare function clearGroupChatCount(groupUid: string): Promise<void>;
24
+ declare function getOnlineGroupMemberCount(groupUid: string): Promise<number>;
25
+ declare function muteChat(chatUid: string, mutedUntil: string | null): Promise<string | null>;
26
+ declare function getMutedUntil(chatUid: string): Promise<string | null>;
27
+ declare function scrollToMessage(messageId: string): void;
28
+ export { chatClient };
29
+ declare const chat: {
30
+ install: typeof install;
31
+ updateGetGroupMessages: typeof updateGetGroupMessages;
32
+ initialized: import('vue').Ref<boolean, boolean>;
33
+ connected: import('vue').ComputedRef<boolean>;
34
+ connecting: import('vue').ComputedRef<boolean>;
35
+ loggedIn: import('vue').ComputedRef<boolean>;
36
+ userChats: import('vue').ComputedRef<UserChatInfo[]>;
37
+ connect: typeof connect;
38
+ disconnect: typeof disconnect;
39
+ disconnectAll: typeof disconnectAll;
40
+ setAccessToken: typeof setAccessToken;
41
+ login: typeof login;
42
+ logout: typeof logout;
43
+ setCurrentEnvironment: typeof setEnvironment;
44
+ getCurrentEnvironment: typeof getCurrentEnvironment;
45
+ setThemeMode: typeof setThemeMode;
46
+ setLanguage: typeof setLanguage;
47
+ getGroup: typeof getGroup;
48
+ getGroupMembersInfo: typeof getGroupMembersInfoCompat;
49
+ getUserChats: typeof getUserChats;
50
+ clearGroupChatCount: typeof clearGroupChatCount;
51
+ getOnlineGroupMemberCount: typeof getOnlineGroupMemberCount;
52
+ getGroupOnlineCount: typeof getOnlineGroupMemberCount;
53
+ searchChat: (searchQuery: string, limit?: number) => import('./types').SearchedItems | undefined;
54
+ getSenderDisplayName: typeof getSenderDisplayName;
55
+ getMessageTextPreview: typeof getMessageTextPreview;
56
+ proxyImage: typeof proxyImage;
57
+ getMutedUntil: typeof getMutedUntil;
58
+ muteChat: typeof muteChat;
59
+ getMyChatSettings: typeof getMyChatSettings;
60
+ updateMyChatSettings: typeof updateMyChatSettings;
61
+ setMuteAll: typeof setMuteAll;
62
+ toggleMuteAll: typeof toggleMuteAll;
63
+ toMarkdownHtml: typeof toMarkdownHtml;
64
+ retrieveCcToken: typeof retrieveCcToken;
65
+ getGroupMessages: import('vue').Ref<((guid: string, query: string) => Promise<unknown>) | undefined, ((guid: string, query: string) => Promise<unknown>) | undefined>;
66
+ loadMessageId: import('vue').Ref<string | undefined, string | undefined>;
67
+ scrollToMessageId: import('vue').Ref<string | undefined, string | undefined>;
68
+ scrollToMessage: typeof scrollToMessage;
69
+ connectivity: {
70
+ onlineMode: import('vue').WritableComputedRef<OnlineStatus, OnlineStatus>;
71
+ onlineStatus: import('vue').ComputedRef<OnlineStatus>;
72
+ };
73
+ onlineMode: import('vue').WritableComputedRef<OnlineStatus, OnlineStatus>;
74
+ onlineStatus: import('vue').ComputedRef<OnlineStatus>;
75
+ theme: import('vue').Ref<{
13
76
  palette: {
14
- mode: string;
15
- background: {
16
- light?: string | undefined;
17
- dark?: string | undefined;
18
- };
19
- primary: {
20
- light?: string | undefined;
21
- dark?: string | undefined;
22
- };
23
- primary150: {
24
- light?: string | undefined;
25
- dark?: string | undefined;
26
- };
27
- primary500: {
28
- light?: string | undefined;
29
- dark?: string | undefined;
30
- };
31
- error: {
32
- light?: string | undefined;
33
- dark?: string | undefined;
34
- };
35
- accent: {
36
- light?: string | undefined;
37
- dark?: string | undefined;
38
- };
39
- accent50: {
40
- light?: string | undefined;
41
- dark?: string | undefined;
42
- };
43
- accent100: {
44
- light?: string | undefined;
45
- dark?: string | undefined;
46
- };
47
- accent200: {
48
- light?: string | undefined;
49
- dark?: string | undefined;
50
- };
51
- accent300: {
52
- light?: string | undefined;
53
- dark?: string | undefined;
54
- };
55
- accent400: {
56
- light?: string | undefined;
57
- dark?: string | undefined;
58
- };
59
- accent500: {
60
- light?: string | undefined;
61
- dark?: string | undefined;
62
- };
63
- accent600: {
64
- light?: string | undefined;
65
- dark?: string | undefined;
66
- };
67
- accent700: {
68
- light?: string | undefined;
69
- dark?: string | undefined;
70
- };
71
- accent800: {
72
- light?: string | undefined;
73
- dark?: string | undefined;
74
- };
75
- accent900: {
76
- light?: string | undefined;
77
- dark?: string | undefined;
78
- };
79
- success: {
80
- light?: string | undefined;
81
- dark?: string | undefined;
82
- };
83
- secondary: {
84
- light?: string | undefined;
85
- dark?: string | undefined;
86
- };
87
- tertiary: {
88
- light?: string | undefined;
89
- dark?: string | undefined;
90
- };
91
- getAccent: (mode?: string) => string | undefined;
92
- getAccent50: (mode?: string) => string | undefined;
93
- getAccent100: (mode?: string) => string | undefined;
94
- getAccent200: (mode?: string) => string | undefined;
95
- getAccent300: (mode?: string) => string | undefined;
96
- getAccent400: (mode?: string) => string | undefined;
97
- getAccent500: (mode?: string) => string | undefined;
98
- getAccent600: (mode?: string) => string | undefined;
99
- getAccent700: (mode?: string) => string | undefined;
100
- getAccent800: (mode?: string) => string | undefined;
101
- getAccent900: (mode?: string) => string | undefined;
102
- getSuccess: (mode?: string) => string | undefined;
103
- getError: (mode?: string) => string | undefined;
104
- getPrimary: (mode?: string) => string | undefined;
105
- getPrimary150: (mode?: string) => string | undefined;
106
- getPrimary500: (mode?: string) => string | undefined;
107
- getSecondary: (mode?: string) => string | undefined;
108
- getBackground: (mode?: string) => string | undefined;
109
- getTertiary: (mode?: string) => string | undefined;
110
- setMode: (mode: string) => void;
111
- setBackground: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
112
- setPrimary: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
113
- setPrimary150: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
114
- setPrimary500: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
115
- setSecondary: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
116
- setError: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
117
- setAccent: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
118
- setAccent50: (colorset?: import('@cometchat/uikit-resources').PaletteItem) => void;
119
- setAccent100: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
120
- setAccent200: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
121
- setAccent300: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
122
- setAccent400: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
123
- setAccent500: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
124
- setAccent600: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
125
- setAccent700: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
126
- setAccent800: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
127
- setAccent900: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
128
- setTertiary: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
129
- };
130
- typography: {
131
- fontFamily: string;
132
- fontWeightRegular: string;
133
- fontWeightMedium: string;
134
- fontWeightSemibold: string;
135
- fontWeightBold: string;
136
- heading: {
137
- fontFamily: string;
138
- fontWeight: string;
139
- fontSize: string;
140
- };
141
- name: {
142
- fontFamily: string;
143
- fontWeight: string;
144
- fontSize: string;
145
- };
146
- title1: {
147
- fontFamily: string;
148
- fontWeight: string;
149
- fontSize: string;
150
- };
151
- title2: {
152
- fontFamily: string;
153
- fontWeight: string;
154
- fontSize: string;
155
- };
156
- subtitle1: {
157
- fontFamily: string;
158
- fontWeight: string;
159
- fontSize: string;
160
- };
161
- subtitle2: {
162
- fontFamily: string;
163
- fontWeight: string;
164
- fontSize: string;
165
- };
166
- text1: {
167
- fontFamily: string;
168
- fontWeight: string;
169
- fontSize: string;
170
- };
171
- text2: {
172
- fontFamily: string;
173
- fontWeight: string;
174
- fontSize: string;
175
- };
176
- text3: {
177
- fontFamily: string;
178
- fontWeight: string;
179
- fontSize: string;
180
- };
181
- caption1: {
182
- fontFamily: string;
183
- fontWeight: string;
184
- fontSize: string;
185
- };
186
- caption2: {
187
- fontFamily: string;
188
- fontWeight: string;
189
- fontSize: string;
190
- };
191
- caption3: {
192
- fontFamily: string;
193
- fontWeight: string;
194
- fontSize: string;
195
- };
196
- setFontFamily: (fontFamily: string) => void;
197
- setFontWeightRegular: (fontWeightRegular: string) => void;
198
- setFontWeightMedium: (fontWeightMedium: string) => void;
199
- setFontWeightSemibold: (fontWeightSemibold: string) => void;
200
- setFontWeightBold: (fontWeightBold: string) => void;
201
- setHeading: (headingFont: import('@cometchat/uikit-resources').CometChatFont) => void;
202
- setName: (nameFont: import('@cometchat/uikit-resources').CometChatFont) => void;
203
- setTitle1: (titleFont: import('@cometchat/uikit-resources').CometChatFont) => void;
204
- setTitle2: (titleFont: import('@cometchat/uikit-resources').CometChatFont) => void;
205
- setSubtitle1: (subtitleFont: import('@cometchat/uikit-resources').CometChatFont) => void;
206
- setSubtitle2: (subtitleFont: import('@cometchat/uikit-resources').CometChatFont) => void;
207
- setText1: (textFont: import('@cometchat/uikit-resources').CometChatFont) => void;
208
- setText2: (textFont: import('@cometchat/uikit-resources').CometChatFont) => void;
209
- setText3: (textFont: import('@cometchat/uikit-resources').CometChatFont) => void;
210
- setCaption1: (captionFont: import('@cometchat/uikit-resources').CometChatFont) => void;
211
- setCaption2: (captionFont: import('@cometchat/uikit-resources').CometChatFont) => void;
212
- setCaption3: (captionFont: import('@cometchat/uikit-resources').CometChatFont) => void;
77
+ mode: ThemeMode;
78
+ setMode: (mode: ThemeMode) => void;
213
79
  };
214
- }, import('@cometchat/uikit-resources').CometChatTheme | {
80
+ }, {
215
81
  palette: {
216
- mode: string;
217
- background: {
218
- light?: string | undefined;
219
- dark?: string | undefined;
220
- };
221
- primary: {
222
- light?: string | undefined;
223
- dark?: string | undefined;
224
- };
225
- primary150: {
226
- light?: string | undefined;
227
- dark?: string | undefined;
228
- };
229
- primary500: {
230
- light?: string | undefined;
231
- dark?: string | undefined;
232
- };
233
- error: {
234
- light?: string | undefined;
235
- dark?: string | undefined;
236
- };
237
- accent: {
238
- light?: string | undefined;
239
- dark?: string | undefined;
240
- };
241
- accent50: {
242
- light?: string | undefined;
243
- dark?: string | undefined;
244
- };
245
- accent100: {
246
- light?: string | undefined;
247
- dark?: string | undefined;
248
- };
249
- accent200: {
250
- light?: string | undefined;
251
- dark?: string | undefined;
252
- };
253
- accent300: {
254
- light?: string | undefined;
255
- dark?: string | undefined;
256
- };
257
- accent400: {
258
- light?: string | undefined;
259
- dark?: string | undefined;
260
- };
261
- accent500: {
262
- light?: string | undefined;
263
- dark?: string | undefined;
264
- };
265
- accent600: {
266
- light?: string | undefined;
267
- dark?: string | undefined;
268
- };
269
- accent700: {
270
- light?: string | undefined;
271
- dark?: string | undefined;
272
- };
273
- accent800: {
274
- light?: string | undefined;
275
- dark?: string | undefined;
276
- };
277
- accent900: {
278
- light?: string | undefined;
279
- dark?: string | undefined;
280
- };
281
- success: {
282
- light?: string | undefined;
283
- dark?: string | undefined;
284
- };
285
- secondary: {
286
- light?: string | undefined;
287
- dark?: string | undefined;
288
- };
289
- tertiary: {
290
- light?: string | undefined;
291
- dark?: string | undefined;
292
- };
293
- getAccent: (mode?: string) => string | undefined;
294
- getAccent50: (mode?: string) => string | undefined;
295
- getAccent100: (mode?: string) => string | undefined;
296
- getAccent200: (mode?: string) => string | undefined;
297
- getAccent300: (mode?: string) => string | undefined;
298
- getAccent400: (mode?: string) => string | undefined;
299
- getAccent500: (mode?: string) => string | undefined;
300
- getAccent600: (mode?: string) => string | undefined;
301
- getAccent700: (mode?: string) => string | undefined;
302
- getAccent800: (mode?: string) => string | undefined;
303
- getAccent900: (mode?: string) => string | undefined;
304
- getSuccess: (mode?: string) => string | undefined;
305
- getError: (mode?: string) => string | undefined;
306
- getPrimary: (mode?: string) => string | undefined;
307
- getPrimary150: (mode?: string) => string | undefined;
308
- getPrimary500: (mode?: string) => string | undefined;
309
- getSecondary: (mode?: string) => string | undefined;
310
- getBackground: (mode?: string) => string | undefined;
311
- getTertiary: (mode?: string) => string | undefined;
312
- setMode: (mode: string) => void;
313
- setBackground: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
314
- setPrimary: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
315
- setPrimary150: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
316
- setPrimary500: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
317
- setSecondary: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
318
- setError: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
319
- setAccent: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
320
- setAccent50: (colorset?: import('@cometchat/uikit-resources').PaletteItem) => void;
321
- setAccent100: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
322
- setAccent200: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
323
- setAccent300: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
324
- setAccent400: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
325
- setAccent500: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
326
- setAccent600: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
327
- setAccent700: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
328
- setAccent800: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
329
- setAccent900: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
330
- setTertiary: (colorset: import('@cometchat/uikit-resources').PaletteItem) => void;
82
+ mode: ThemeMode;
83
+ setMode(mode: ThemeMode): void;
331
84
  };
332
- typography: {
333
- fontFamily: string;
334
- fontWeightRegular: string;
335
- fontWeightMedium: string;
336
- fontWeightSemibold: string;
337
- fontWeightBold: string;
338
- heading: {
339
- fontFamily: string;
340
- fontWeight: string;
341
- fontSize: string;
342
- };
343
- name: {
344
- fontFamily: string;
345
- fontWeight: string;
346
- fontSize: string;
347
- };
348
- title1: {
349
- fontFamily: string;
350
- fontWeight: string;
351
- fontSize: string;
352
- };
353
- title2: {
354
- fontFamily: string;
355
- fontWeight: string;
356
- fontSize: string;
357
- };
358
- subtitle1: {
359
- fontFamily: string;
360
- fontWeight: string;
361
- fontSize: string;
362
- };
363
- subtitle2: {
364
- fontFamily: string;
365
- fontWeight: string;
366
- fontSize: string;
367
- };
368
- text1: {
369
- fontFamily: string;
370
- fontWeight: string;
371
- fontSize: string;
372
- };
373
- text2: {
374
- fontFamily: string;
375
- fontWeight: string;
376
- fontSize: string;
377
- };
378
- text3: {
379
- fontFamily: string;
380
- fontWeight: string;
381
- fontSize: string;
382
- };
383
- caption1: {
384
- fontFamily: string;
385
- fontWeight: string;
386
- fontSize: string;
387
- };
388
- caption2: {
389
- fontFamily: string;
390
- fontWeight: string;
391
- fontSize: string;
392
- };
393
- caption3: {
394
- fontFamily: string;
395
- fontWeight: string;
396
- fontSize: string;
397
- };
398
- setFontFamily: (fontFamily: string) => void;
399
- setFontWeightRegular: (fontWeightRegular: string) => void;
400
- setFontWeightMedium: (fontWeightMedium: string) => void;
401
- setFontWeightSemibold: (fontWeightSemibold: string) => void;
402
- setFontWeightBold: (fontWeightBold: string) => void;
403
- setHeading: (headingFont: import('@cometchat/uikit-resources').CometChatFont) => void;
404
- setName: (nameFont: import('@cometchat/uikit-resources').CometChatFont) => void;
405
- setTitle1: (titleFont: import('@cometchat/uikit-resources').CometChatFont) => void;
406
- setTitle2: (titleFont: import('@cometchat/uikit-resources').CometChatFont) => void;
407
- setSubtitle1: (subtitleFont: import('@cometchat/uikit-resources').CometChatFont) => void;
408
- setSubtitle2: (subtitleFont: import('@cometchat/uikit-resources').CometChatFont) => void;
409
- setText1: (textFont: import('@cometchat/uikit-resources').CometChatFont) => void;
410
- setText2: (textFont: import('@cometchat/uikit-resources').CometChatFont) => void;
411
- setText3: (textFont: import('@cometchat/uikit-resources').CometChatFont) => void;
412
- setCaption1: (captionFont: import('@cometchat/uikit-resources').CometChatFont) => void;
413
- setCaption2: (captionFont: import('@cometchat/uikit-resources').CometChatFont) => void;
414
- setCaption3: (captionFont: import('@cometchat/uikit-resources').CometChatFont) => void;
85
+ } | {
86
+ palette: {
87
+ mode: ThemeMode;
88
+ setMode: (mode: ThemeMode) => void;
415
89
  };
416
90
  }>;
417
- setThemeMode: (mode: import('./types').ThemeMode) => void;
418
- loggedIn: Ref<boolean, boolean>;
419
- login: typeof import('./login').login;
420
- logout: typeof import('./login').logout;
421
- getCurrentEnvironment(): import('./types').ChatEnvironmentConfig;
422
- setCurrentEnvironment(env: import('./types').Environment): void;
423
- setAccessToken: (token: string) => Promise<void>;
424
- connect: typeof import('./connection').connect;
425
- disconnect: typeof import('./connection').disconnect;
426
- connected: import('vue').ComputedRef<boolean>;
427
- connecting: import('vue').ComputedRef<boolean>;
428
- getGroup(groupUid: string): Promise<import('@cometchat/chat-sdk-javascript').Group | null | undefined>;
429
- clearGroupChatCount(groupUid: string): Promise<void>;
430
- getGroupOnlineCount(groupUid: string): Promise<number>;
431
- getGroupMembersInfo(groupUid: string): Promise<import('./types').ParticipantInfo[]>;
432
- getUserChats(): Promise<import('./types').UserChatInfo[]>;
433
- clearUserChats(): void;
434
- restoreUserChatsFromOfflineStore(): import('./types').UserChatInfo[];
435
- installUserChatsSync(initialized: Ref<boolean>): import('vue').WatchHandle;
436
- searchChat(searchQuery: string, limit?: number): import('./types').SearchedItems | undefined;
437
- scrollToMessage(messageId: string): void;
438
- getSenderDisplayName(message: import('@cometchat/chat-sdk-javascript').BaseMessage | undefined, group?: Ref<import('@cometchat/chat-sdk-javascript').Group | undefined>): any;
439
- getMessageTextPreview(message?: import('@cometchat/chat-sdk-javascript').BaseMessage, showEmoji?: boolean, showAttachmentName?: boolean): string;
440
- proxyImage(imageUrl: string): string;
441
- getMutedUntil(chatUid: string): Promise<string | null>;
442
- muteChat(chatUid: string, mutedUntil: string | null): Promise<string | null>;
443
- getMyChatSettings(): Promise<import('./types').PersonSettings>;
444
- updateMyChatSettings(settings: Partial<import('./types').PersonSettings>): Promise<import('./types').PersonSettings>;
445
- setMuteAll(mute: boolean): Promise<boolean>;
446
- toggleMuteAll(): Promise<boolean>;
447
- toMarkdownHtml(str: string, mentionedUsers?: import('@cometchat/chat-sdk-javascript').User[]): string;
448
- userChats: Ref<import('./types').UserChatInfo[]>;
449
- install: typeof install;
450
- updateGetGroupMessages: typeof updateGetGroupMessages;
451
- initialized: Ref<boolean, boolean>;
91
+ themeMode: import('vue').Ref<ThemeMode, ThemeMode>;
92
+ language: import('vue').Ref<Language, Language>;
452
93
  };
453
- export default _default;
94
+ export default chat;
@@ -0,0 +1,15 @@
1
+ import { MaybeRefOrGetter } from 'vue';
2
+ import { englishTranslations } from './i18n/en';
3
+ import { TranslationEntry, TranslationParams } from './i18n/types';
4
+ import { Language } from './types';
5
+ type TranslationDictionary = Record<keyof typeof englishTranslations, TranslationEntry>;
6
+ export type TranslationKey = keyof TranslationDictionary;
7
+ export declare const currentChatLanguage: import('vue').Ref<Language, Language>;
8
+ export declare function resolveChatLocale(language?: Language | null): "nb-NO" | "en-US";
9
+ export declare function setCurrentChatLanguage(language: Language): void;
10
+ export declare function translateChat(key: TranslationKey, params?: TranslationParams, language?: Language | null): string;
11
+ export declare function useChatI18n(language?: MaybeRefOrGetter<Language | undefined | null>): {
12
+ locale: import('vue').ComputedRef<"nb-NO" | "en-US">;
13
+ t: (key: TranslationKey, params?: TranslationParams) => string;
14
+ };
15
+ export {};
@@ -0,0 +1,13 @@
1
+ import { ChatAttachmentItem, ChatMessageItem, ChatReplyPreview } from './types';
2
+ type MessageTextSource = Pick<ChatMessageItem, "text" | "kind" | "poll" | "attachments">;
3
+ export declare function getAttachmentDisplayText(attachments: ReadonlyArray<Pick<ChatAttachmentItem, "kind" | "name">>, fallback?: string): string;
4
+ export declare function normalizeMessageText(value: string | null | undefined): string;
5
+ export declare function hasMessageText(value: string | null | undefined): boolean;
6
+ export declare function getMessagePlainText(value: string | null | undefined): string;
7
+ export declare function getMessageDisplayText(message: MessageTextSource, fallback?: string): string;
8
+ export declare function getMessagePreviewText(message: MessageTextSource): string;
9
+ export declare function getMessageTextPreview(message?: any, showEmoji?: boolean, showAttachmentName?: boolean): string;
10
+ export declare function buildReplyPreview(message: Pick<ChatMessageItem, "id" | "senderName" | "text" | "kind" | "poll" | "attachments">): ChatReplyPreview;
11
+ export declare function buildMessageActionText(message: Pick<ChatMessageItem, "text" | "attachments">): string;
12
+ export declare function buildConversationSubtitle(message: MessageTextSource): string;
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import { ChatClient, ChatUserProfile } from './types';
2
+ export type VisualFixtureMode = "desktop" | "mobile" | "empty" | "scheduled";
3
+ export interface MockChatScenario {
4
+ client: ChatClient;
5
+ profile: ChatUserProfile;
6
+ displayName: string;
7
+ email: string;
8
+ heroStatus: {
9
+ label: string;
10
+ severity: "warn" | "success" | "contrast";
11
+ };
12
+ }
13
+ export declare function createMockChatScenario(mode: VisualFixtureMode): MockChatScenario;
@@ -0,0 +1,53 @@
1
+ import { CachedLastMessage, CachedParticipantSettings, ChatAttachmentItem, ChatConversationItem, ChatMessageItem, PollComposerInput } from './types';
2
+ interface OfflineQueueAttachment {
3
+ kind: ChatAttachmentItem["kind"];
4
+ name: string;
5
+ type: string;
6
+ size: number;
7
+ caption?: string;
8
+ }
9
+ export interface OfflineQueueItem {
10
+ id: string;
11
+ muid: string;
12
+ conversationId: string;
13
+ targetId: string;
14
+ receiverType: "group" | "user";
15
+ kind: "text" | "poll" | "attachment";
16
+ senderAvatar?: string;
17
+ text?: string;
18
+ poll?: PollComposerInput;
19
+ attachment?: OfflineQueueAttachment;
20
+ metadata?: Record<string, unknown>;
21
+ parentMessageId?: string;
22
+ createdAt: string;
23
+ }
24
+ export declare class ChatOfflineStore {
25
+ readonly storageKey: string;
26
+ private attachmentDbPromise;
27
+ constructor(storageKey: string);
28
+ getConversations(): ChatConversationItem[];
29
+ getSearchableConversations(): ChatConversationItem[];
30
+ setConversations(conversations: ChatConversationItem[]): void;
31
+ getMessages(conversationId: string): ChatMessageItem[];
32
+ getAllMessages(): ChatMessageItem[];
33
+ setMessages(conversationId: string, messages: ChatMessageItem[]): void;
34
+ getThreadMessages(parentMessageId: string): ChatMessageItem[];
35
+ setThreadMessages(parentMessageId: string, messages: ChatMessageItem[]): void;
36
+ getQueue(): OfflineQueueItem[];
37
+ enqueue(item: OfflineQueueItem): void;
38
+ dequeue(id: string): void;
39
+ getParticipantSettings(chatUid: string): CachedParticipantSettings | null;
40
+ storeParticipantSettings(settings: CachedParticipantSettings): void;
41
+ getLastMessage(chatUid: string): CachedLastMessage | null;
42
+ storeLastMessage(lastMessage: CachedLastMessage): void;
43
+ clear(): void;
44
+ storeQueuedAttachment(id: string, file: File): Promise<void>;
45
+ getQueuedAttachment(id: string): Promise<File | null>;
46
+ deleteQueuedAttachment(id: string): Promise<void>;
47
+ private read;
48
+ private write;
49
+ private mutate;
50
+ private clearQueuedAttachments;
51
+ private openAttachmentDb;
52
+ }
53
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Emoji reaction sets used across message action menus and reaction pickers.
3
+ *
4
+ * COMMON_REACTIONS are shown first in the compact popover row.
5
+ * EXTENDED_REACTIONS populate the expanded grid when the user opens the full picker.
6
+ */
7
+ export declare const COMMON_REACTIONS: string[];
8
+ export declare const EXTENDED_REACTIONS: string[];
@@ -0,0 +1,5 @@
1
+ export declare function normalizeRichTextForStorage(input: string | null | undefined): string;
2
+ export declare function getPlainTextFromRichText(input: string | null | undefined): string;
3
+ export declare function renderRichText(input: string | null | undefined): string;
4
+ export declare function toMarkdownHtml(str: string, mentionedUsers?: any[]): string;
5
+ export declare function getFirstUrlFromRichText(input: string | null | undefined): string | undefined;