@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
package/package.json
CHANGED
|
@@ -1,72 +1,63 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcc-code/vue-bcc-chat-ui",
|
|
3
|
-
"author": "bcc-code",
|
|
4
|
-
"license": "Apache-2.0",
|
|
5
|
-
"version": "6.5.0",
|
|
6
|
-
"type": "module",
|
|
7
3
|
"private": false,
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"src/components"
|
|
11
|
-
],
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "git+https://github.com/bcc-code/bcc-chat.git"
|
|
15
|
-
},
|
|
4
|
+
"version": "7.0.2",
|
|
5
|
+
"type": "module",
|
|
16
6
|
"module": "./dist/vue-bcc-chat-ui.js",
|
|
17
7
|
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
18
11
|
"exports": {
|
|
19
12
|
".": {
|
|
20
|
-
"
|
|
21
|
-
"
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/vue-bcc-chat-ui.js"
|
|
22
15
|
},
|
|
23
|
-
"./style.css":
|
|
24
|
-
"import": "./dist/vue-bcc-chat-ui.css",
|
|
25
|
-
"require": "./dist/vue-bcc-chat-ui.css"
|
|
26
|
-
}
|
|
16
|
+
"./style.css": "./dist/style.css"
|
|
27
17
|
},
|
|
28
18
|
"publishConfig": {
|
|
29
19
|
"access": "public"
|
|
30
20
|
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@auth0/auth0-spa-js": "^2.17.0",
|
|
23
|
+
"@auth0/auth0-vue": "^2.5.0",
|
|
24
|
+
"@bcc-code/component-library-vue": "^0.8.8",
|
|
25
|
+
"@bcc-code/design-tokens": "^5.1.49",
|
|
26
|
+
"@capacitor/app": "^5.0.8",
|
|
27
|
+
"@capacitor/browser": "^5.2.1",
|
|
28
|
+
"@capacitor/core": "^5.7.8",
|
|
29
|
+
"@cometchat/chat-sdk-javascript": "4.1.8",
|
|
30
|
+
"@primeuix/themes": "^2.0.3",
|
|
31
|
+
"dompurify": "^3.3.3",
|
|
32
|
+
"markdown-it": "^14.1.1",
|
|
33
|
+
"primeicons": "^7.0.0",
|
|
34
|
+
"primevue": "^4.5.4",
|
|
35
|
+
"vue": "^3.5.29"
|
|
36
|
+
},
|
|
31
37
|
"peerDependencies": {
|
|
32
|
-
"
|
|
33
|
-
"vue": "^3.0.0"
|
|
38
|
+
"vue": "^3.5.29"
|
|
34
39
|
},
|
|
35
40
|
"devDependencies": {
|
|
36
|
-
"@
|
|
37
|
-
"@tailwindcss/
|
|
38
|
-
"@tailwindcss/forms": "^0.5.10",
|
|
39
|
-
"@tailwindcss/typography": "^0.5.16",
|
|
40
|
-
"@types/dompurify": "^3.2.0",
|
|
41
|
+
"@playwright/test": "^1.53.2",
|
|
42
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
41
43
|
"@types/markdown-it": "^14.1.2",
|
|
42
|
-
"@types/node": "^20.17.23",
|
|
43
44
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"vite-plugin-dts": "^4.5.3",
|
|
52
|
-
"vue": "^3.5.13"
|
|
53
|
-
},
|
|
54
|
-
"dependencies": {
|
|
55
|
-
"@cometchat/chat-sdk-javascript": "4.1.8",
|
|
56
|
-
"@cometchat/chat-uikit-vue": "4.3.32",
|
|
57
|
-
"@cometchat/uikit-elements": "4.3.23",
|
|
58
|
-
"@cometchat/uikit-resources": "4.3.24",
|
|
59
|
-
"@cometchat/uikit-shared": "4.3.30",
|
|
60
|
-
"dompurify": "^3.2.4",
|
|
61
|
-
"fuse.js": "^7.1.0",
|
|
62
|
-
"markdown-it": "^14.1.0",
|
|
63
|
-
"panzoom": "^9.4.3"
|
|
45
|
+
"jsdom": "^29.0.1",
|
|
46
|
+
"tailwindcss": "^4.2.2",
|
|
47
|
+
"typescript": "^5.9.3",
|
|
48
|
+
"vite": "^5.4.21",
|
|
49
|
+
"vite-plugin-dts": "^4.5.4",
|
|
50
|
+
"vitest": "^1.6.1",
|
|
51
|
+
"vue-tsc": "^1.8.27"
|
|
64
52
|
},
|
|
65
|
-
"packageManager": "pnpm@10.27.0+sha512.72d699da16b1179c14ba9e64dc71c9a40988cbdc65c264cb0e489db7de917f20dcf4d64d8723625f2969ba52d4b7e2a1170682d9ac2a5dcaeaab732b7e16f04a",
|
|
66
53
|
"scripts": {
|
|
67
|
-
"dev": "vite",
|
|
68
|
-
"build": "
|
|
69
|
-
"
|
|
70
|
-
"
|
|
54
|
+
"dev": "vite --port 5174",
|
|
55
|
+
"build": "vite build --mode library && vite build --mode demo",
|
|
56
|
+
"build:lib": "vite build --mode library",
|
|
57
|
+
"build:demo": "vite build --mode demo",
|
|
58
|
+
"preview": "vite preview --port 5174",
|
|
59
|
+
"test:unit": "vitest run",
|
|
60
|
+
"test:ui": "playwright test",
|
|
61
|
+
"test:ui:update": "playwright test --update-snapshots"
|
|
71
62
|
}
|
|
72
63
|
}
|
package/README.md
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
# BCC Chat UI
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Installation
|
|
5
|
-
|
|
6
|
-
### Vue Components
|
|
7
|
-
|
|
8
|
-
1. Add package to project
|
|
9
|
-
```bash
|
|
10
|
-
# npm
|
|
11
|
-
npm install @bcc-code/vue-bcc-chat-ui
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
2. Register component in the Vue App
|
|
15
|
-
```ts
|
|
16
|
-
import chat from "@bcc-code/vue-bcc-chat-ui";
|
|
17
|
-
|
|
18
|
-
const app = createApp(App);
|
|
19
|
-
app.use(chat, { environment: "prod", themeMode: "light" });
|
|
20
|
-
|
|
21
|
-
await chat.login("access-token")
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
3. Use component in Vue
|
|
25
|
-
```ts
|
|
26
|
-
<script lang="ts" setup>
|
|
27
|
-
import { BccChatMessageList } from '@bcc-code/vue-bcc-chat-ui';
|
|
28
|
-
|
|
29
|
-
const authToken = ref('....');
|
|
30
|
-
const chatUid = ref('my-chat-id');
|
|
31
|
-
|
|
32
|
-
</script>
|
|
33
|
-
|
|
34
|
-
<template>
|
|
35
|
-
<div>
|
|
36
|
-
<BccChatMessageList :chatUid="chatUid" />
|
|
37
|
-
</div>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
## Styling
|
|
44
|
-
|
|
45
|
-
The component can by styled with the folowing styles
|
|
46
|
-
|
|
47
|
-
```css
|
|
48
|
-
.bcc-chat-message-list {
|
|
49
|
-
/* 1. Wrapper for Messages component */
|
|
50
|
-
.cc-messages-wrapper {
|
|
51
|
-
|
|
52
|
-
/* 1.1 Messages component */
|
|
53
|
-
.cc-messages-wrapper__messages {
|
|
54
|
-
|
|
55
|
-
/* 1.1.1 Wrapper for Messages List */
|
|
56
|
-
.cc-messages-wrapper__messages-list {
|
|
57
|
-
|
|
58
|
-
/* 1.1.1.1 Messages List header view */
|
|
59
|
-
.cc__messagelist__headerview {
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/* 1.1.1.2 Messages List messages */
|
|
63
|
-
.cc-messagelist {
|
|
64
|
-
.cc-list__wrapper {
|
|
65
|
-
.cc-list__header {
|
|
66
|
-
}
|
|
67
|
-
.cc-list__list {
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/* 1.1.1.3 Message List footer */
|
|
73
|
-
.cc__messagelist__footerview {
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/* 1.1.2 Wrapper for Composer */
|
|
78
|
-
.cc-messages-wrapper__composer {
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/* 1.1.3 Wrapper for Live Reaction */
|
|
82
|
-
.cc__messages__livereaction {
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
```
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { MessageComposerConfiguration } from '@cometchat/uikit-shared';
|
|
2
|
-
export declare function sendMediaMessage(msgComposerConfig: MessageComposerConfiguration & {
|
|
3
|
-
parentMessageId: number;
|
|
4
|
-
}, fileObject: File, receiverId: string, receiverType: string, messageType: string, dimensions?: {
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
}, caption?: string): boolean;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const connected: import('vue').ComputedRef<boolean>;
|
|
2
|
-
export declare const connecting: import('vue').ComputedRef<boolean>;
|
|
3
|
-
export declare function connect(id?: string): Promise<void>;
|
|
4
|
-
export declare function disconnectAll(): Promise<void>;
|
|
5
|
-
export declare function disconnect(id?: string): Promise<void>;
|
|
6
|
-
export declare const setAccessToken: (token: string) => Promise<void>;
|
|
7
|
-
declare const _default: {
|
|
8
|
-
setAccessToken: (token: string) => Promise<void>;
|
|
9
|
-
connect: typeof connect;
|
|
10
|
-
disconnect: typeof disconnect;
|
|
11
|
-
connected: import('vue').ComputedRef<boolean>;
|
|
12
|
-
connecting: import('vue').ComputedRef<boolean>;
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
package/dist/chat/logger.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { LogEntry } from './types';
|
|
2
|
-
declare class Logger {
|
|
3
|
-
#private;
|
|
4
|
-
constructor();
|
|
5
|
-
debug(msg: string, metadata?: Record<string, any>): void;
|
|
6
|
-
info(msg: string, metadata?: Record<string, any>): void;
|
|
7
|
-
warn(msg: string, metadata?: Record<string, any>): void;
|
|
8
|
-
error(msg: string, metadata?: Record<string, any>): void;
|
|
9
|
-
setCallback(callback: (entry: LogEntry) => void): void;
|
|
10
|
-
}
|
|
11
|
-
declare const logger: Logger;
|
|
12
|
-
export default logger;
|
package/dist/chat/login.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
interface StoredToken {
|
|
2
|
-
sub: string;
|
|
3
|
-
token: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const loggedIn: import('vue').Ref<boolean, boolean>;
|
|
6
|
-
export declare function login(accessToken?: string): Promise<void>;
|
|
7
|
-
export declare function logout(): Promise<void>;
|
|
8
|
-
export declare function retrieveCcToken(): StoredToken | null;
|
|
9
|
-
declare const _default: {
|
|
10
|
-
loggedIn: import('vue').Ref<boolean, boolean>;
|
|
11
|
-
login: typeof login;
|
|
12
|
-
logout: typeof logout;
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
package/dist/chat/message.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare class Message {
|
|
2
|
-
chatUid?: string;
|
|
3
|
-
type?: MessageType;
|
|
4
|
-
text?: string;
|
|
5
|
-
mediaUrl?: string;
|
|
6
|
-
metadata?: MessageMetadata;
|
|
7
|
-
}
|
|
8
|
-
export declare enum MessageType {
|
|
9
|
-
MessageTypeText = "Text",
|
|
10
|
-
MessageTypeMedia = "Media"
|
|
11
|
-
}
|
|
12
|
-
export declare class MessageMetadata {
|
|
13
|
-
scheduleDate?: string;
|
|
14
|
-
file?: File;
|
|
15
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ExtensionsDataSource, OptionsStyle } from '@cometchat/chat-uikit-vue';
|
|
2
|
-
import { ReplyPreviewStyle } from './replyStyle';
|
|
3
|
-
export declare const bccReplyOptionId = "bccreply";
|
|
4
|
-
declare class InlineReplyExtensionConfiguration {
|
|
5
|
-
private style;
|
|
6
|
-
private optionIconURL;
|
|
7
|
-
private optionStyle;
|
|
8
|
-
constructor(configuration: {
|
|
9
|
-
style?: ReplyPreviewStyle;
|
|
10
|
-
optionIconURL?: string;
|
|
11
|
-
optionStyle?: OptionsStyle;
|
|
12
|
-
});
|
|
13
|
-
getReplyPreviewStyle(): ReplyPreviewStyle | undefined;
|
|
14
|
-
getOptionIconURL(): string | undefined;
|
|
15
|
-
getOptionStyle(): OptionsStyle | undefined;
|
|
16
|
-
}
|
|
17
|
-
export declare class InlineReplyExtension extends ExtensionsDataSource {
|
|
18
|
-
configuration: InlineReplyExtensionConfiguration;
|
|
19
|
-
constructor({ configuration }?: {
|
|
20
|
-
configuration: InlineReplyExtensionConfiguration;
|
|
21
|
-
});
|
|
22
|
-
enable(): void;
|
|
23
|
-
addExtension(): void;
|
|
24
|
-
getExtensionId(): string;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { CometChatTheme } from '@cometchat/uikit-resources';
|
|
2
|
-
import { BaseStyle } from '@cometchat/uikit-shared';
|
|
3
|
-
/**
|
|
4
|
-
* ReplyPreviewStyle
|
|
5
|
-
*
|
|
6
|
-
* @property {string} height - The height of the component.
|
|
7
|
-
* @property {string} width - The width of the component.
|
|
8
|
-
* @property {string} border - The border of the component.
|
|
9
|
-
* @property {string} borderRadius - The border radius of the component.
|
|
10
|
-
* @property {string} background - The background color of the component.
|
|
11
|
-
* @property {string} titleFont - The font of the title text.
|
|
12
|
-
* @property {string} titleColor - The color of the title text.
|
|
13
|
-
* @property {string} subtitleFont - The font of the subtitle text.
|
|
14
|
-
* @property {string} subtitleColor - The color of the subtitle text.
|
|
15
|
-
* @property {string} closeButtonIconTint - The color of the close button.
|
|
16
|
-
*/
|
|
17
|
-
export declare class ReplyPreviewStyle extends BaseStyle {
|
|
18
|
-
titleFont: string;
|
|
19
|
-
titleColor?: string;
|
|
20
|
-
subtitleFont: string;
|
|
21
|
-
subtitleColor?: string;
|
|
22
|
-
closeButtonIconTint?: string;
|
|
23
|
-
barLeftPosition: string;
|
|
24
|
-
barWidth: string;
|
|
25
|
-
barBackground?: string;
|
|
26
|
-
barOpacity: string;
|
|
27
|
-
previewWrapperPadding?: string;
|
|
28
|
-
previewWrapperOpacity?: string;
|
|
29
|
-
constructor(props: Partial<ReplyPreviewStyle>, theme: CometChatTheme);
|
|
30
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ExtensionsDataSource, OptionsStyle } from '@cometchat/chat-uikit-vue';
|
|
2
|
-
export declare const rescheduleOptionId = "reschedule";
|
|
3
|
-
declare class RescheduleExtensionConfiguration {
|
|
4
|
-
private optionIconURL;
|
|
5
|
-
private optionStyle;
|
|
6
|
-
constructor(configuration: {
|
|
7
|
-
optionIconURL?: string;
|
|
8
|
-
optionStyle?: OptionsStyle;
|
|
9
|
-
});
|
|
10
|
-
getOptionIconURL(): string | undefined;
|
|
11
|
-
getOptionStyle(): OptionsStyle | undefined;
|
|
12
|
-
}
|
|
13
|
-
export declare class RescheduleExtension extends ExtensionsDataSource {
|
|
14
|
-
configuration: RescheduleExtensionConfiguration;
|
|
15
|
-
constructor({ configuration }?: {
|
|
16
|
-
configuration: RescheduleExtensionConfiguration;
|
|
17
|
-
});
|
|
18
|
-
enable(): void;
|
|
19
|
-
addExtension(): void;
|
|
20
|
-
getExtensionId(): string;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { ChatInstance } from './types';
|
|
3
|
-
export declare function rescheduleMessage(scheduleDate: string, originalChatUid: string, muid: string, messageId: number): Promise<boolean>;
|
|
4
|
-
export declare function sendScheduledMessage(scheduleDate: string, originalChatUid: string, chatInstance: Ref<ChatInstance>): Promise<boolean>;
|
package/dist/chat/styleFix.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @param targetSelector
|
|
4
|
-
* @param apply: Array with objects containing the following properties:
|
|
5
|
-
* - selector Which elements to find and apply the style to
|
|
6
|
-
* - style The css styles to apply
|
|
7
|
-
* - shadowDomSelector (optional) If the elements are in a shadow dom, you can specify the selector to find the shadow dom (e.g. 'my-element'
|
|
8
|
-
* @returns
|
|
9
|
-
*/
|
|
10
|
-
export declare function watchAndApplyStyle(targetSelector: string, apply: Array<{
|
|
11
|
-
selector: string;
|
|
12
|
-
style: Record<string, string>;
|
|
13
|
-
shadowDomSelector?: string;
|
|
14
|
-
}>): MutationObserver | undefined;
|
package/dist/chat/uiKit.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Group } from '@cometchat/chat-sdk-javascript';
|
|
2
|
-
import { MessageComposerConfiguration, MessageListConfiguration, ThreadedMessagesConfiguration } from '@cometchat/uikit-shared';
|
|
3
|
-
import { Ref } from 'vue';
|
|
4
|
-
import { ChatInstance } from './types';
|
|
5
|
-
export declare function setupUiKit(): Promise<void>;
|
|
6
|
-
export declare function getMessageComposerConfiguration(chatInstance?: Ref<ChatInstance>): Ref<MessageComposerConfiguration>;
|
|
7
|
-
export declare function getScheduledMessagesComposerConfiguration(originalChatUid: string, chatInstance?: Ref<ChatInstance>): Ref<MessageComposerConfiguration>;
|
|
8
|
-
export declare function getMessageListConfiguration(hideDeletedMessages: boolean, chatInstance?: Ref<ChatInstance>, group?: Ref<Group | undefined>): import('vue').ComputedRef<MessageListConfiguration>;
|
|
9
|
-
export declare function getScheduledMessagesListConfiguration(originalChatUid: string, chatInstance?: Ref<ChatInstance>, group?: Ref<Group | undefined>): Ref<MessageListConfiguration>;
|
|
10
|
-
export declare function getThreadedMessagesConfiguration(chatGroup?: Ref<Group | undefined>): ThreadedMessagesConfiguration;
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { CometChatContextMenu } from '@cometchat/chat-uikit-vue';
|
|
2
|
-
import { MessageBubbleAlignment } from '@cometchat/uikit-resources';
|
|
3
|
-
declare class VueComponentOrHTML {
|
|
4
|
-
html?: string;
|
|
5
|
-
componentName?: string;
|
|
6
|
-
props?: object;
|
|
7
|
-
slots?: object;
|
|
8
|
-
listeners?: any;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
-
messageBubbleStyle: {
|
|
12
|
-
type: ObjectConstructor;
|
|
13
|
-
default: () => {
|
|
14
|
-
width: string;
|
|
15
|
-
height: string;
|
|
16
|
-
background: string;
|
|
17
|
-
borderRadius: string;
|
|
18
|
-
border: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
options: {
|
|
22
|
-
type: ArrayConstructor;
|
|
23
|
-
default: () => never[];
|
|
24
|
-
};
|
|
25
|
-
alignment: {
|
|
26
|
-
type: NumberConstructor;
|
|
27
|
-
default: () => MessageBubbleAlignment;
|
|
28
|
-
};
|
|
29
|
-
id: {
|
|
30
|
-
type: null;
|
|
31
|
-
default: undefined;
|
|
32
|
-
};
|
|
33
|
-
moreIconURL: {
|
|
34
|
-
type: StringConstructor;
|
|
35
|
-
default: string;
|
|
36
|
-
};
|
|
37
|
-
topMenuSize: {
|
|
38
|
-
type: NumberConstructor;
|
|
39
|
-
default: number;
|
|
40
|
-
};
|
|
41
|
-
leadingView: {
|
|
42
|
-
type: typeof VueComponentOrHTML;
|
|
43
|
-
};
|
|
44
|
-
contentView: {
|
|
45
|
-
type: typeof VueComponentOrHTML;
|
|
46
|
-
};
|
|
47
|
-
bottomView: {
|
|
48
|
-
type: typeof VueComponentOrHTML;
|
|
49
|
-
};
|
|
50
|
-
headerView: {
|
|
51
|
-
type: typeof VueComponentOrHTML;
|
|
52
|
-
};
|
|
53
|
-
footerView: {
|
|
54
|
-
type: typeof VueComponentOrHTML;
|
|
55
|
-
};
|
|
56
|
-
replyView: {
|
|
57
|
-
type: typeof VueComponentOrHTML;
|
|
58
|
-
};
|
|
59
|
-
threadView: {
|
|
60
|
-
type: {
|
|
61
|
-
(arrayLength: number): VueComponentOrHTML[];
|
|
62
|
-
(...items: VueComponentOrHTML[]): VueComponentOrHTML[];
|
|
63
|
-
new (arrayLength: number): VueComponentOrHTML[];
|
|
64
|
-
new (...items: VueComponentOrHTML[]): VueComponentOrHTML[];
|
|
65
|
-
isArray(arg: any): arg is any[];
|
|
66
|
-
readonly prototype: any[];
|
|
67
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
68
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
69
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
70
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
71
|
-
of<T>(...items: T[]): T[];
|
|
72
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
statusInfoView: {
|
|
76
|
-
type: typeof VueComponentOrHTML;
|
|
77
|
-
};
|
|
78
|
-
}>, any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
79
|
-
messageBubbleStyle: {
|
|
80
|
-
type: ObjectConstructor;
|
|
81
|
-
default: () => {
|
|
82
|
-
width: string;
|
|
83
|
-
height: string;
|
|
84
|
-
background: string;
|
|
85
|
-
borderRadius: string;
|
|
86
|
-
border: string;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
options: {
|
|
90
|
-
type: ArrayConstructor;
|
|
91
|
-
default: () => never[];
|
|
92
|
-
};
|
|
93
|
-
alignment: {
|
|
94
|
-
type: NumberConstructor;
|
|
95
|
-
default: () => MessageBubbleAlignment;
|
|
96
|
-
};
|
|
97
|
-
id: {
|
|
98
|
-
type: null;
|
|
99
|
-
default: undefined;
|
|
100
|
-
};
|
|
101
|
-
moreIconURL: {
|
|
102
|
-
type: StringConstructor;
|
|
103
|
-
default: string;
|
|
104
|
-
};
|
|
105
|
-
topMenuSize: {
|
|
106
|
-
type: NumberConstructor;
|
|
107
|
-
default: number;
|
|
108
|
-
};
|
|
109
|
-
leadingView: {
|
|
110
|
-
type: typeof VueComponentOrHTML;
|
|
111
|
-
};
|
|
112
|
-
contentView: {
|
|
113
|
-
type: typeof VueComponentOrHTML;
|
|
114
|
-
};
|
|
115
|
-
bottomView: {
|
|
116
|
-
type: typeof VueComponentOrHTML;
|
|
117
|
-
};
|
|
118
|
-
headerView: {
|
|
119
|
-
type: typeof VueComponentOrHTML;
|
|
120
|
-
};
|
|
121
|
-
footerView: {
|
|
122
|
-
type: typeof VueComponentOrHTML;
|
|
123
|
-
};
|
|
124
|
-
replyView: {
|
|
125
|
-
type: typeof VueComponentOrHTML;
|
|
126
|
-
};
|
|
127
|
-
threadView: {
|
|
128
|
-
type: {
|
|
129
|
-
(arrayLength: number): VueComponentOrHTML[];
|
|
130
|
-
(...items: VueComponentOrHTML[]): VueComponentOrHTML[];
|
|
131
|
-
new (arrayLength: number): VueComponentOrHTML[];
|
|
132
|
-
new (...items: VueComponentOrHTML[]): VueComponentOrHTML[];
|
|
133
|
-
isArray(arg: any): arg is any[];
|
|
134
|
-
readonly prototype: any[];
|
|
135
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
136
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
137
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
138
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
139
|
-
of<T>(...items: T[]): T[];
|
|
140
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
statusInfoView: {
|
|
144
|
-
type: typeof VueComponentOrHTML;
|
|
145
|
-
};
|
|
146
|
-
}>> & Readonly<{}>, {
|
|
147
|
-
id: any;
|
|
148
|
-
alignment: number;
|
|
149
|
-
options: unknown[];
|
|
150
|
-
messageBubbleStyle: Record<string, any>;
|
|
151
|
-
moreIconURL: string;
|
|
152
|
-
topMenuSize: number;
|
|
153
|
-
}, {}, {
|
|
154
|
-
CometChatContextMenu: typeof CometChatContextMenu;
|
|
155
|
-
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
156
|
-
export default _default;
|
|
@@ -1,2 +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, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
captionedAttachment: {
|
|
3
|
-
type: ObjectConstructor;
|
|
4
|
-
};
|
|
5
|
-
closeButtonIconURL: {
|
|
6
|
-
type: StringConstructor;
|
|
7
|
-
default: string;
|
|
8
|
-
};
|
|
9
|
-
previewStyle: {
|
|
10
|
-
type: ObjectConstructor;
|
|
11
|
-
default: {};
|
|
12
|
-
};
|
|
13
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
-
captionedAttachment: {
|
|
15
|
-
type: ObjectConstructor;
|
|
16
|
-
};
|
|
17
|
-
closeButtonIconURL: {
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
previewStyle: {
|
|
22
|
-
type: ObjectConstructor;
|
|
23
|
-
default: {};
|
|
24
|
-
};
|
|
25
|
-
}>> & Readonly<{}>, {
|
|
26
|
-
previewStyle: Record<string, any>;
|
|
27
|
-
closeButtonIconURL: string;
|
|
28
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
29
|
-
export default _default;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
captionedAttachment: {
|
|
3
|
-
type: ObjectConstructor;
|
|
4
|
-
default: {};
|
|
5
|
-
};
|
|
6
|
-
previewStyle: {
|
|
7
|
-
type: ObjectConstructor;
|
|
8
|
-
default: {};
|
|
9
|
-
};
|
|
10
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
-
captionedAttachment: {
|
|
12
|
-
type: ObjectConstructor;
|
|
13
|
-
default: {};
|
|
14
|
-
};
|
|
15
|
-
previewStyle: {
|
|
16
|
-
type: ObjectConstructor;
|
|
17
|
-
default: {};
|
|
18
|
-
};
|
|
19
|
-
}>> & Readonly<{}>, {
|
|
20
|
-
previewStyle: Record<string, any>;
|
|
21
|
-
captionedAttachment: Record<string, any>;
|
|
22
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
23
|
-
export default _default;
|