@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.
- package/dist/App.vue.d.ts +1 -1
- package/dist/auth.d.ts +2 -0
- package/dist/chat/accessToken.d.ts +9 -1
- package/dist/chat/avatar.d.ts +3 -0
- package/dist/chat/client.d.ts +7 -0
- package/dist/chat/conversationState.d.ts +11 -0
- package/dist/chat/data.d.ts +8 -17
- package/dist/chat/environment.d.ts +7 -2
- package/dist/chat/i18n/en.d.ts +118 -0
- package/dist/chat/i18n/nb.d.ts +118 -0
- package/dist/chat/i18n/types.d.ts +2 -0
- package/dist/chat/index.d.ts +87 -446
- package/dist/chat/localization.d.ts +15 -0
- package/dist/chat/messageText.d.ts +13 -0
- package/dist/chat/mockClient.d.ts +13 -0
- package/dist/chat/offlineStore.d.ts +53 -0
- package/dist/chat/reactions.d.ts +8 -0
- package/dist/chat/richText.d.ts +5 -0
- package/dist/chat/theme.d.ts +10 -400
- package/dist/chat/types.d.ts +206 -28
- package/dist/components/chat/BccChat.vue.d.ts +509 -0
- package/dist/components/chat/ChatStatusOverlay.vue.d.ts +33 -0
- package/dist/components/chat/publicContract.d.ts +43 -0
- package/dist/components/conversations/ConversationList.vue.d.ts +15 -0
- package/dist/components/conversations/UserProfileCard.vue.d.ts +8 -0
- package/dist/components/messages/ActionMessageRow.vue.d.ts +5 -0
- package/dist/components/messages/ComposerActionsPopover.vue.d.ts +19 -0
- package/dist/components/messages/ComposerContextBanner.vue.d.ts +13 -0
- package/dist/components/messages/ComposerFormatMenu.vue.d.ts +13 -0
- package/dist/components/messages/ComposerPollDialog.vue.d.ts +16 -0
- package/dist/components/messages/ComposerScheduleDialog.vue.d.ts +20 -0
- package/dist/components/messages/ConversationComposer.vue.d.ts +106 -0
- package/dist/components/messages/LinkPreviewCard.vue.d.ts +6 -0
- package/dist/components/messages/LinkifiedText.vue.d.ts +8 -0
- package/dist/components/messages/MessageAttachmentList.vue.d.ts +10 -0
- package/dist/components/messages/MessageComposer.vue.d.ts +69 -0
- package/dist/components/messages/MessageDeliveryStatus.vue.d.ts +6 -0
- package/dist/components/messages/MessageItem.vue.d.ts +27 -0
- package/dist/components/messages/MessageItemHeader.vue.d.ts +6 -0
- package/dist/components/messages/MessageItemMenu.vue.d.ts +26 -0
- package/dist/components/messages/MessageItemMenuReactions.vue.d.ts +11 -0
- package/dist/components/messages/MessageItemReactions.vue.d.ts +14 -0
- package/dist/components/messages/MessageList.vue.d.ts +115 -0
- package/dist/components/messages/MessageListHeader.vue.d.ts +7 -0
- package/dist/components/messages/MessagePollContent.vue.d.ts +12 -0
- package/dist/components/messages/MessageReactionList.vue.d.ts +12 -0
- package/dist/components/messages/MessageReplyQuote.vue.d.ts +10 -0
- package/dist/components/messages/MessageTextContent.vue.d.ts +6 -0
- package/dist/components/overlays/FullscreenDialog.vue.d.ts +34 -0
- package/dist/components/overlays/MediaViewerDialog.vue.d.ts +13 -0
- package/dist/components/overlays/MessageInfoDialog.vue.d.ts +14 -0
- package/dist/components/overlays/ReceiptSection.vue.d.ts +9 -0
- package/dist/components/overlays/ScheduledMessagesDialog.vue.d.ts +25 -0
- package/dist/composables/chat/index.d.ts +13 -0
- package/dist/composables/chat/useComposerContext.d.ts +43 -0
- package/dist/composables/chat/useConversationContext.d.ts +30 -0
- package/dist/composables/chat/useDialogsContext.d.ts +27 -0
- package/dist/composables/chat/useMessagesContext.d.ts +36 -0
- package/dist/composables/useChatActions.d.ts +21 -0
- package/dist/composables/useChatEventBus.d.ts +91 -0
- package/dist/composables/useComposerDrafts.d.ts +44 -0
- package/dist/composables/useConversationComposer.d.ts +15 -0
- package/dist/composables/useGroupMemberTracking.d.ts +28 -0
- package/dist/composables/useImageZoom.d.ts +26 -0
- package/dist/composables/useMessageActionMenu.d.ts +202 -0
- package/dist/composables/useMessageInfoDialog.d.ts +165 -0
- package/dist/composables/useMessageListScroll.d.ts +30 -0
- package/dist/composables/useMessageNavigation.d.ts +18 -0
- package/dist/composables/useRichTextComposer.d.ts +31 -0
- package/dist/demo/ApiExamplesPanel.vue.d.ts +6 -0
- package/dist/demo/ChatShell.vue.d.ts +10 -0
- package/dist/demo/ThemeModeToggle.vue.d.ts +12 -0
- package/dist/demo/useDemoThemeMode.d.ts +6 -0
- package/dist/design.d.ts +10 -0
- package/dist/index.d.ts +10 -3
- package/dist/main.d.ts +0 -1
- package/dist/style.css +1 -0
- package/dist/vue-bcc-chat-ui.js +8858 -84780
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/package.json +42 -51
- package/README.md +0 -89
- package/dist/chat/bccuiExtension.d.ts +0 -7
- package/dist/chat/captionedAttachment.d.ts +0 -7
- package/dist/chat/captionedAttachmentExtension.d.ts +0 -7
- package/dist/chat/cometChatPatches.d.ts +0 -3
- package/dist/chat/connection.d.ts +0 -14
- package/dist/chat/logger.d.ts +0 -12
- package/dist/chat/login.d.ts +0 -14
- package/dist/chat/message.d.ts +0 -15
- package/dist/chat/replyExtension.d.ts +0 -26
- package/dist/chat/replyStyle.d.ts +0 -30
- package/dist/chat/rescheduleExtension.d.ts +0 -22
- package/dist/chat/scheduledMessage.d.ts +0 -4
- package/dist/chat/styleFix.d.ts +0 -14
- package/dist/chat/translations.d.ts +0 -3
- package/dist/chat/uiKit.d.ts +0 -10
- package/dist/component-overrides/BccBubbleWrapper.vue.d.ts +0 -156
- package/dist/component-overrides/CometChatMessageListOverride.vue.d.ts +0 -2
- package/dist/components/BccAttachmentBox.vue.d.ts +0 -29
- package/dist/components/BccAttachmentPreview.vue.d.ts +0 -23
- package/dist/components/BccChatMessageBubble.vue.d.ts +0 -99
- package/dist/components/BccChatMessageList.vue.d.ts +0 -82
- package/dist/components/BccChatMessages.vue.d.ts +0 -33
- package/dist/components/BccChatSendButton.vue.d.ts +0 -4
- package/dist/components/BccCometChatFullScreenViewer.vue.d.ts +0 -24
- package/dist/components/BccFileBubble.vue.d.ts +0 -70
- package/dist/components/BccImageBubble.vue.d.ts +0 -27
- package/dist/components/BccReplyBox.vue.d.ts +0 -36
- package/dist/components/BccReplyPreview.vue.d.ts +0 -30
- package/dist/components/BccScheduledMessageModal.vue.d.ts +0 -31
- package/dist/components/BccScheduledMessages.vue.d.ts +0 -25
- package/dist/components/BccScheduledSendButton.vue.d.ts +0 -14
- package/dist/offline/cometChatAPIInterceptor.d.ts +0 -2
- package/dist/offline/cometChatWSInterceptor.d.ts +0 -2
- package/dist/offline/connectivity.d.ts +0 -5
- package/dist/offline/failedSendingRetry.d.ts +0 -4
- package/dist/offline/index.d.ts +0 -10
- package/dist/offline/offlineStoreLocalStorage.d.ts +0 -32
- package/dist/offline/types.d.ts +0 -69
- package/dist/vite.svg +0 -1
- package/dist/vue-bcc-chat-ui.css +0 -1
- package/src/components/BccAttachmentBox.vue +0 -133
- package/src/components/BccAttachmentPreview.vue +0 -57
- package/src/components/BccChatMessageBubble.vue +0 -219
- package/src/components/BccChatMessageList.vue +0 -488
- package/src/components/BccChatMessages.vue +0 -212
- package/src/components/BccChatSendButton.vue +0 -91
- package/src/components/BccCometChatFullScreenViewer.vue +0 -118
- package/src/components/BccFileBubble.vue +0 -137
- package/src/components/BccImageBubble.vue +0 -75
- package/src/components/BccReplyBox.vue +0 -141
- package/src/components/BccReplyPreview.vue +0 -113
- package/src/components/BccScheduledMessageIcon.vue +0 -65
- package/src/components/BccScheduledMessageModal.vue +0 -70
- package/src/components/BccScheduledMessages.vue +0 -125
- package/src/components/BccScheduledSendButton.vue +0 -118
- /package/dist/{components/BccScheduledMessageIcon.vue.d.ts → FixtureApp.vue.d.ts} +0 -0
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { MediaMessage, User } from '@cometchat/chat-sdk-javascript';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
-
id: {
|
|
4
|
-
type: StringConstructor;
|
|
5
|
-
required: false;
|
|
6
|
-
default: string;
|
|
7
|
-
};
|
|
8
|
-
text: {
|
|
9
|
-
type: StringConstructor;
|
|
10
|
-
required: true;
|
|
11
|
-
};
|
|
12
|
-
metadata: {
|
|
13
|
-
type: ObjectConstructor;
|
|
14
|
-
};
|
|
15
|
-
guid: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
mentionedUsers: {
|
|
20
|
-
type: {
|
|
21
|
-
(arrayLength: number): User[];
|
|
22
|
-
(...items: User[]): User[];
|
|
23
|
-
new (arrayLength: number): User[];
|
|
24
|
-
new (...items: User[]): User[];
|
|
25
|
-
isArray(arg: any): arg is any[];
|
|
26
|
-
readonly prototype: any[];
|
|
27
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
28
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
29
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
30
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
31
|
-
of<T>(...items: T[]): T[];
|
|
32
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
message: {
|
|
36
|
-
type: typeof MediaMessage;
|
|
37
|
-
default: null;
|
|
38
|
-
};
|
|
39
|
-
placeholderImage: {
|
|
40
|
-
type: StringConstructor;
|
|
41
|
-
default: null;
|
|
42
|
-
};
|
|
43
|
-
src: {
|
|
44
|
-
type: StringConstructor;
|
|
45
|
-
default: null;
|
|
46
|
-
};
|
|
47
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
48
|
-
id: {
|
|
49
|
-
type: StringConstructor;
|
|
50
|
-
required: false;
|
|
51
|
-
default: string;
|
|
52
|
-
};
|
|
53
|
-
text: {
|
|
54
|
-
type: StringConstructor;
|
|
55
|
-
required: true;
|
|
56
|
-
};
|
|
57
|
-
metadata: {
|
|
58
|
-
type: ObjectConstructor;
|
|
59
|
-
};
|
|
60
|
-
guid: {
|
|
61
|
-
type: StringConstructor;
|
|
62
|
-
default: string;
|
|
63
|
-
};
|
|
64
|
-
mentionedUsers: {
|
|
65
|
-
type: {
|
|
66
|
-
(arrayLength: number): User[];
|
|
67
|
-
(...items: User[]): User[];
|
|
68
|
-
new (arrayLength: number): User[];
|
|
69
|
-
new (...items: User[]): User[];
|
|
70
|
-
isArray(arg: any): arg is any[];
|
|
71
|
-
readonly prototype: any[];
|
|
72
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
73
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
74
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
75
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
76
|
-
of<T>(...items: T[]): T[];
|
|
77
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
message: {
|
|
81
|
-
type: typeof MediaMessage;
|
|
82
|
-
default: null;
|
|
83
|
-
};
|
|
84
|
-
placeholderImage: {
|
|
85
|
-
type: StringConstructor;
|
|
86
|
-
default: null;
|
|
87
|
-
};
|
|
88
|
-
src: {
|
|
89
|
-
type: StringConstructor;
|
|
90
|
-
default: null;
|
|
91
|
-
};
|
|
92
|
-
}>> & Readonly<{}>, {
|
|
93
|
-
message: MediaMessage;
|
|
94
|
-
id: string;
|
|
95
|
-
placeholderImage: string;
|
|
96
|
-
src: string;
|
|
97
|
-
guid: string;
|
|
98
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
99
|
-
export default _default;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
attrs: Partial<{}>;
|
|
4
|
-
slots: {
|
|
5
|
-
'no-messages'?(_: {}): any;
|
|
6
|
-
};
|
|
7
|
-
refs: {};
|
|
8
|
-
rootEl: HTMLDivElement;
|
|
9
|
-
};
|
|
10
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
12
|
-
chatUid: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
senderDisplayName: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
required: false;
|
|
19
|
-
};
|
|
20
|
-
hideDeletedMessages: {
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
required: false;
|
|
23
|
-
default: boolean;
|
|
24
|
-
};
|
|
25
|
-
groupMessageGetter: {
|
|
26
|
-
type: PropType<(guid: string, query: string) => Promise<any>>;
|
|
27
|
-
required: false;
|
|
28
|
-
};
|
|
29
|
-
loadMessageId: {
|
|
30
|
-
type: StringConstructor;
|
|
31
|
-
required: false;
|
|
32
|
-
default: string;
|
|
33
|
-
};
|
|
34
|
-
displayNoMessagesText: {
|
|
35
|
-
type: BooleanConstructor;
|
|
36
|
-
required: false;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
40
|
-
groupMembersFetched: (...args: any[]) => void;
|
|
41
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
42
|
-
chatUid: {
|
|
43
|
-
type: StringConstructor;
|
|
44
|
-
required: true;
|
|
45
|
-
};
|
|
46
|
-
senderDisplayName: {
|
|
47
|
-
type: StringConstructor;
|
|
48
|
-
required: false;
|
|
49
|
-
};
|
|
50
|
-
hideDeletedMessages: {
|
|
51
|
-
type: BooleanConstructor;
|
|
52
|
-
required: false;
|
|
53
|
-
default: boolean;
|
|
54
|
-
};
|
|
55
|
-
groupMessageGetter: {
|
|
56
|
-
type: PropType<(guid: string, query: string) => Promise<any>>;
|
|
57
|
-
required: false;
|
|
58
|
-
};
|
|
59
|
-
loadMessageId: {
|
|
60
|
-
type: StringConstructor;
|
|
61
|
-
required: false;
|
|
62
|
-
default: string;
|
|
63
|
-
};
|
|
64
|
-
displayNoMessagesText: {
|
|
65
|
-
type: BooleanConstructor;
|
|
66
|
-
required: false;
|
|
67
|
-
default: boolean;
|
|
68
|
-
};
|
|
69
|
-
}>> & Readonly<{
|
|
70
|
-
onGroupMembersFetched?: ((...args: any[]) => any) | undefined;
|
|
71
|
-
}>, {
|
|
72
|
-
hideDeletedMessages: boolean;
|
|
73
|
-
loadMessageId: string;
|
|
74
|
-
displayNoMessagesText: boolean;
|
|
75
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
76
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
77
|
-
export default _default;
|
|
78
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
79
|
-
new (): {
|
|
80
|
-
$slots: S;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Group } from '@cometchat/chat-sdk-javascript';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
-
chatUid: {
|
|
4
|
-
type: StringConstructor;
|
|
5
|
-
required: true;
|
|
6
|
-
};
|
|
7
|
-
chatGroup: {
|
|
8
|
-
type: typeof Group;
|
|
9
|
-
required: true;
|
|
10
|
-
};
|
|
11
|
-
hideDeletedMessages: {
|
|
12
|
-
type: BooleanConstructor;
|
|
13
|
-
required: false;
|
|
14
|
-
default: boolean;
|
|
15
|
-
};
|
|
16
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
-
chatUid: {
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
required: true;
|
|
20
|
-
};
|
|
21
|
-
chatGroup: {
|
|
22
|
-
type: typeof Group;
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
|
-
hideDeletedMessages: {
|
|
26
|
-
type: BooleanConstructor;
|
|
27
|
-
required: false;
|
|
28
|
-
default: boolean;
|
|
29
|
-
};
|
|
30
|
-
}>> & Readonly<{}>, {
|
|
31
|
-
hideDeletedMessages: boolean;
|
|
32
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
33
|
-
export default _default;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
|
-
sendButton: HTMLDivElement;
|
|
3
|
-
}, HTMLDivElement>;
|
|
4
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
url: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
placeholderImage: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
};
|
|
9
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
-
"cc-close-clicked": () => any;
|
|
11
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
12
|
-
url: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
placeholderImage: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
};
|
|
19
|
-
}>> & Readonly<{
|
|
20
|
-
"onCc-close-clicked"?: (() => any) | undefined;
|
|
21
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
22
|
-
zoomContainer: HTMLDivElement;
|
|
23
|
-
}, any>;
|
|
24
|
-
export default _default;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
fileURL: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
downloadIconURL: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
title: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
subtitle: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
|
-
fileStyle: {
|
|
19
|
-
type: ObjectConstructor;
|
|
20
|
-
default: () => {
|
|
21
|
-
width: string;
|
|
22
|
-
height: string;
|
|
23
|
-
border: string;
|
|
24
|
-
background: string;
|
|
25
|
-
borderRadius: string;
|
|
26
|
-
titleFont: string;
|
|
27
|
-
titleColor: string;
|
|
28
|
-
subtitleFont: string;
|
|
29
|
-
subtitleColor: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
33
|
-
fileURL: {
|
|
34
|
-
type: StringConstructor;
|
|
35
|
-
default: string;
|
|
36
|
-
};
|
|
37
|
-
downloadIconURL: {
|
|
38
|
-
type: StringConstructor;
|
|
39
|
-
default: string;
|
|
40
|
-
};
|
|
41
|
-
title: {
|
|
42
|
-
type: StringConstructor;
|
|
43
|
-
default: string;
|
|
44
|
-
};
|
|
45
|
-
subtitle: {
|
|
46
|
-
type: StringConstructor;
|
|
47
|
-
default: string;
|
|
48
|
-
};
|
|
49
|
-
fileStyle: {
|
|
50
|
-
type: ObjectConstructor;
|
|
51
|
-
default: () => {
|
|
52
|
-
width: string;
|
|
53
|
-
height: string;
|
|
54
|
-
border: string;
|
|
55
|
-
background: string;
|
|
56
|
-
borderRadius: string;
|
|
57
|
-
titleFont: string;
|
|
58
|
-
titleColor: string;
|
|
59
|
-
subtitleFont: string;
|
|
60
|
-
subtitleColor: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
}>> & Readonly<{}>, {
|
|
64
|
-
title: string;
|
|
65
|
-
fileURL: string;
|
|
66
|
-
downloadIconURL: string;
|
|
67
|
-
subtitle: string;
|
|
68
|
-
fileStyle: Record<string, any>;
|
|
69
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
70
|
-
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { MediaMessage } from '@cometchat/chat-sdk-javascript';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
-
src: {
|
|
4
|
-
type: StringConstructor;
|
|
5
|
-
default: null;
|
|
6
|
-
};
|
|
7
|
-
placeholderImage: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
};
|
|
10
|
-
message: {
|
|
11
|
-
type: typeof MediaMessage;
|
|
12
|
-
};
|
|
13
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
-
src: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
default: null;
|
|
17
|
-
};
|
|
18
|
-
placeholderImage: {
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
};
|
|
21
|
-
message: {
|
|
22
|
-
type: typeof MediaMessage;
|
|
23
|
-
};
|
|
24
|
-
}>> & Readonly<{}>, {
|
|
25
|
-
src: string;
|
|
26
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
27
|
-
export default _default;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { BaseMessage } from '@cometchat/chat-sdk-javascript';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
-
replyToMessage: {
|
|
4
|
-
type: typeof BaseMessage;
|
|
5
|
-
};
|
|
6
|
-
titlePrefix: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
};
|
|
9
|
-
closeButtonIconURL: {
|
|
10
|
-
type: StringConstructor;
|
|
11
|
-
default: string;
|
|
12
|
-
};
|
|
13
|
-
previewStyle: {
|
|
14
|
-
type: ObjectConstructor;
|
|
15
|
-
default: {};
|
|
16
|
-
};
|
|
17
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
-
replyToMessage: {
|
|
19
|
-
type: typeof BaseMessage;
|
|
20
|
-
};
|
|
21
|
-
titlePrefix: {
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
};
|
|
24
|
-
closeButtonIconURL: {
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
default: string;
|
|
27
|
-
};
|
|
28
|
-
previewStyle: {
|
|
29
|
-
type: ObjectConstructor;
|
|
30
|
-
default: {};
|
|
31
|
-
};
|
|
32
|
-
}>> & Readonly<{}>, {
|
|
33
|
-
previewStyle: Record<string, any>;
|
|
34
|
-
closeButtonIconURL: string;
|
|
35
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
36
|
-
export default _default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { BaseMessage } from '@cometchat/chat-sdk-javascript';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
-
replyToMessage: {
|
|
4
|
-
type: typeof BaseMessage;
|
|
5
|
-
};
|
|
6
|
-
titlePrefix: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
previewStyle: {
|
|
11
|
-
type: ObjectConstructor;
|
|
12
|
-
default: {};
|
|
13
|
-
};
|
|
14
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
15
|
-
replyToMessage: {
|
|
16
|
-
type: typeof BaseMessage;
|
|
17
|
-
};
|
|
18
|
-
titlePrefix: {
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
previewStyle: {
|
|
23
|
-
type: ObjectConstructor;
|
|
24
|
-
default: {};
|
|
25
|
-
};
|
|
26
|
-
}>> & Readonly<{}>, {
|
|
27
|
-
titlePrefix: string;
|
|
28
|
-
previewStyle: Record<string, any>;
|
|
29
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
30
|
-
export default _default;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
isReschedule: {
|
|
3
|
-
type: BooleanConstructor;
|
|
4
|
-
default: boolean;
|
|
5
|
-
};
|
|
6
|
-
closeOnOutsideClick: {
|
|
7
|
-
type: BooleanConstructor;
|
|
8
|
-
default: boolean;
|
|
9
|
-
};
|
|
10
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
-
close: (...args: any[]) => void;
|
|
12
|
-
schedule: (...args: any[]) => void;
|
|
13
|
-
reschedule: (...args: any[]) => void;
|
|
14
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
15
|
-
isReschedule: {
|
|
16
|
-
type: BooleanConstructor;
|
|
17
|
-
default: boolean;
|
|
18
|
-
};
|
|
19
|
-
closeOnOutsideClick: {
|
|
20
|
-
type: BooleanConstructor;
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
}>> & Readonly<{
|
|
24
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
25
|
-
onSchedule?: ((...args: any[]) => any) | undefined;
|
|
26
|
-
onReschedule?: ((...args: any[]) => any) | undefined;
|
|
27
|
-
}>, {
|
|
28
|
-
isReschedule: boolean;
|
|
29
|
-
closeOnOutsideClick: boolean;
|
|
30
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Group } from '@cometchat/chat-sdk-javascript';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
-
chatGroup: {
|
|
4
|
-
type: typeof Group;
|
|
5
|
-
required: true;
|
|
6
|
-
};
|
|
7
|
-
originalChatUid: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
required: true;
|
|
10
|
-
};
|
|
11
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
-
close: (...args: any[]) => void;
|
|
13
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
-
chatGroup: {
|
|
15
|
-
type: typeof Group;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
originalChatUid: {
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
}>> & Readonly<{
|
|
23
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
24
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
25
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
chatUid: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
-
chatUid: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
required: true;
|
|
10
|
-
};
|
|
11
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
12
|
-
sendButton: HTMLDivElement;
|
|
13
|
-
}, any>;
|
|
14
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { OnlineStatus } from './types';
|
|
2
|
-
export declare const onlineMode: import('vue').WritableComputedRef<OnlineStatus, OnlineStatus>;
|
|
3
|
-
export declare const onlineStatus: import('vue').ComputedRef<OnlineStatus>;
|
|
4
|
-
export declare function setOnlineStatus(status: OnlineStatus): void;
|
|
5
|
-
export declare function installConnectivityStatus(_realFetch: typeof fetch): void;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { BaseMessage, CustomMessage, MediaMessage, TextMessage } from '@cometchat/chat-sdk-javascript';
|
|
2
|
-
export declare function getQueuedMessagesForChat(chatUid: string): (BaseMessage | TextMessage | MediaMessage | CustomMessage)[];
|
|
3
|
-
export declare function installFailedSendingRetry(): void;
|
|
4
|
-
export declare function uninstallFailedSendingRetry(): void;
|
package/dist/offline/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { OfflineStore } from './types.js';
|
|
2
|
-
export declare let offlineStore: OfflineStore;
|
|
3
|
-
export declare function installOfflineCaching(): void;
|
|
4
|
-
export declare function setOfflineStoreScope(): void;
|
|
5
|
-
export declare function purgeLeftChatsFromCache(conversations: CometChat.Conversation[]): void;
|
|
6
|
-
declare const _default: {
|
|
7
|
-
installOfflineCaching: typeof installOfflineCaching;
|
|
8
|
-
purgeLeftChatsFromCache: typeof purgeLeftChatsFromCache;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { default as Fuse } from 'fuse.js';
|
|
2
|
-
import { CachedLastMessage, CachedParticipantSettings, UserChatInfo } from '../chat/types';
|
|
3
|
-
import { Conversation, ConversationPaginationMeta, Group, Message, MessagePaginationMeta, OfflineStore, PaginatedResponse } from './types';
|
|
4
|
-
export declare class OfflineStoreLocalStorage implements OfflineStore {
|
|
5
|
-
#private;
|
|
6
|
-
storePrefix: string;
|
|
7
|
-
constructor(storePrefix?: string);
|
|
8
|
-
setStorePrefix(storePrefix: string, scopedPrefix?: string, clearOtherScopedKeys?: boolean): void;
|
|
9
|
-
getGroupMessages(groupId: string, pagination: MessagePaginationMeta): PaginatedResponse<Message>;
|
|
10
|
-
getThreadMessages(parentId: string, pagination: MessagePaginationMeta): PaginatedResponse<Message>;
|
|
11
|
-
getMessage(messageId: string): {
|
|
12
|
-
data: Message;
|
|
13
|
-
};
|
|
14
|
-
saveMessages(messages: Message[]): void;
|
|
15
|
-
checkIfCachedMessagesIsExpired(): boolean;
|
|
16
|
-
updateExpiredCachedMessages(): Promise<void>;
|
|
17
|
-
purgeMessages(keepByConversationIds: string[]): void;
|
|
18
|
-
getConversations(pagination: ConversationPaginationMeta): PaginatedResponse<Conversation>;
|
|
19
|
-
saveConversations(conversations: Conversation[]): void;
|
|
20
|
-
purgeConversations(keepConversationIds: string[]): void;
|
|
21
|
-
getGroup(groupId: string): Group | null;
|
|
22
|
-
saveGroup(group: Group): void;
|
|
23
|
-
purgeGroups(keepGroupIds: string[]): void;
|
|
24
|
-
getFuseConversations(): Fuse<Conversation>;
|
|
25
|
-
getFuseMessages(): Fuse<Message>;
|
|
26
|
-
getParticipantSettings(uid: string): CachedParticipantSettings | null;
|
|
27
|
-
storeSettings(participantSettings: CachedParticipantSettings): void;
|
|
28
|
-
getLastMessage(groupId: string): CachedLastMessage | null;
|
|
29
|
-
storeLastMessage(cachedLastMessage: CachedLastMessage): void;
|
|
30
|
-
getUserChats(): UserChatInfo[];
|
|
31
|
-
saveUserChats(userChats: UserChatInfo[]): void;
|
|
32
|
-
}
|
package/dist/offline/types.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { default as Fuse } from 'fuse.js';
|
|
2
|
-
import { CachedLastMessage, CachedParticipantSettings, UserChatInfo } from '../chat/types';
|
|
3
|
-
export type ReqType = {
|
|
4
|
-
url: URL;
|
|
5
|
-
query: Record<string, any>;
|
|
6
|
-
method: string;
|
|
7
|
-
};
|
|
8
|
-
export type OnlineStatus = "online" | "offline";
|
|
9
|
-
export interface MessagePaginationMeta {
|
|
10
|
-
per_page: number;
|
|
11
|
-
affix: "prepend" | "append";
|
|
12
|
-
id?: string;
|
|
13
|
-
sent_at?: number;
|
|
14
|
-
}
|
|
15
|
-
export interface ConversationPaginationMeta {
|
|
16
|
-
per_page: number;
|
|
17
|
-
page: number;
|
|
18
|
-
}
|
|
19
|
-
export interface Message {
|
|
20
|
-
id: string;
|
|
21
|
-
category: string;
|
|
22
|
-
conversationId: string;
|
|
23
|
-
receiver: string;
|
|
24
|
-
receiverType: string;
|
|
25
|
-
sentAt: number;
|
|
26
|
-
type: string;
|
|
27
|
-
parentId?: string;
|
|
28
|
-
data?: any;
|
|
29
|
-
lastUpdated?: number;
|
|
30
|
-
}
|
|
31
|
-
export interface Conversation {
|
|
32
|
-
conversationId: string;
|
|
33
|
-
conversationWith: Group;
|
|
34
|
-
updatedAt: number;
|
|
35
|
-
}
|
|
36
|
-
export interface Group {
|
|
37
|
-
guid: string;
|
|
38
|
-
name: string;
|
|
39
|
-
hasJoined: boolean | undefined;
|
|
40
|
-
}
|
|
41
|
-
export interface PaginatedResponse<T> {
|
|
42
|
-
data: T[];
|
|
43
|
-
total: number;
|
|
44
|
-
}
|
|
45
|
-
export interface OfflineStore {
|
|
46
|
-
getGroupMessages(groupId: string, pagination: MessagePaginationMeta): PaginatedResponse<Message>;
|
|
47
|
-
getThreadMessages(parentId: string, pagination: MessagePaginationMeta): PaginatedResponse<Message>;
|
|
48
|
-
getMessage(messageId: string): {
|
|
49
|
-
data: Message;
|
|
50
|
-
};
|
|
51
|
-
saveMessages(messages: Message[]): void;
|
|
52
|
-
purgeMessages(keepByConversationIds: string[]): void;
|
|
53
|
-
getConversations(pagination: ConversationPaginationMeta): PaginatedResponse<Conversation>;
|
|
54
|
-
saveConversations(conversations: Conversation[]): void;
|
|
55
|
-
purgeConversations(keepConversationIds: string[]): void;
|
|
56
|
-
getFuseConversations(): Fuse<Conversation>;
|
|
57
|
-
getFuseMessages(): Fuse<Message>;
|
|
58
|
-
getGroup(groupId: string): Group | null;
|
|
59
|
-
saveGroup(group: Group): void;
|
|
60
|
-
purgeGroups(keepGroupIds: string[]): void;
|
|
61
|
-
getParticipantSettings(uid: string): CachedParticipantSettings | null;
|
|
62
|
-
storeSettings(participantSettings: CachedParticipantSettings): void;
|
|
63
|
-
getLastMessage(groupId: string): CachedLastMessage | null;
|
|
64
|
-
storeLastMessage(lastMessage: CachedLastMessage): void;
|
|
65
|
-
getUserChats(): UserChatInfo[];
|
|
66
|
-
saveUserChats(userChats: UserChatInfo[]): void;
|
|
67
|
-
checkIfCachedMessagesIsExpired(): boolean;
|
|
68
|
-
updateExpiredCachedMessages(): Promise<void>;
|
|
69
|
-
}
|
package/dist/vite.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|