@bcc-code/vue-bcc-chat-ui 7.2.3 → 7.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.vue.d.ts +4 -0
- package/dist/FixtureApp.vue.d.ts +4 -0
- package/dist/auth.d.ts +3 -0
- package/dist/chat/accessToken.d.ts +11 -0
- package/dist/chat/avatar.d.ts +3 -0
- package/dist/chat/cacheScope.d.ts +13 -0
- package/dist/chat/client.d.ts +7 -0
- package/dist/chat/clipboardFiles.d.ts +5 -0
- package/dist/chat/conversationState.d.ts +17 -0
- package/dist/chat/data.d.ts +18 -0
- package/dist/chat/environment.d.ts +8 -0
- package/dist/chat/i18n/en.d.ts +151 -0
- package/dist/chat/i18n/nb.d.ts +151 -0
- package/dist/chat/i18n/types.d.ts +2 -0
- package/dist/chat/index.d.ts +240 -0
- package/dist/chat/localization.d.ts +17 -0
- package/dist/chat/mentions.d.ts +33 -0
- package/dist/chat/messageText.d.ts +21 -0
- package/dist/chat/mockClient.d.ts +13 -0
- package/dist/chat/offlineStore.d.ts +55 -0
- package/dist/chat/participants.d.ts +8 -0
- package/dist/chat/pinnedMessages.d.ts +12 -0
- package/dist/chat/publicChannelMessageFallback.d.ts +1 -0
- package/dist/chat/reactions.d.ts +8 -0
- package/dist/chat/richText.d.ts +9 -0
- package/dist/chat/runtime.d.ts +3 -0
- package/dist/chat/theme.d.ts +19 -0
- package/dist/chat/types.d.ts +409 -0
- package/dist/components/chat/BccChat.vue.d.ts +100 -0
- package/dist/components/chat/ChatStatusOverlay.vue.d.ts +34 -0
- package/dist/components/chat/publicContract.d.ts +44 -0
- package/dist/components/conversations/ConversationList.vue.d.ts +18 -0
- package/dist/components/conversations/UserProfileCard.vue.d.ts +9 -0
- package/dist/components/messages/ActionMessageRow.vue.d.ts +7 -0
- package/dist/components/messages/AudioStickyPlayer.vue.d.ts +12 -0
- package/dist/components/messages/ComposerActionsPopover.vue.d.ts +15 -0
- package/dist/components/messages/ComposerContextBanner.vue.d.ts +15 -0
- package/dist/components/messages/ComposerFormatMenu.vue.d.ts +19 -0
- package/dist/components/messages/ComposerLinkDialog.vue.d.ts +18 -0
- package/dist/components/messages/ComposerPollDialog.vue.d.ts +18 -0
- package/dist/components/messages/ComposerScheduleDialog.vue.d.ts +22 -0
- package/dist/components/messages/ComposerTriggerMenu.vue.d.ts +24 -0
- package/dist/components/messages/ConversationComposer.vue.d.ts +30 -0
- package/dist/components/messages/LinkPreviewCard.vue.d.ts +8 -0
- package/dist/components/messages/LinkifiedText.vue.d.ts +15 -0
- package/dist/components/messages/MessageAttachmentList.vue.d.ts +12 -0
- package/dist/components/messages/MessageComposer.vue.d.ts +59 -0
- package/dist/components/messages/MessageDateSeparator.vue.d.ts +7 -0
- package/dist/components/messages/MessageDeliveryStatus.vue.d.ts +8 -0
- package/dist/components/messages/MessageForwardedLabel.vue.d.ts +8 -0
- package/dist/components/messages/MessageItem.vue.d.ts +36 -0
- package/dist/components/messages/MessageItemHeader.vue.d.ts +8 -0
- package/dist/components/messages/MessageItemMenu.vue.d.ts +36 -0
- package/dist/components/messages/MessageItemMenuReactions.vue.d.ts +13 -0
- package/dist/components/messages/MessageItemReactions.vue.d.ts +16 -0
- package/dist/components/messages/MessageList.vue.d.ts +42 -0
- package/dist/components/messages/MessageListHeader.vue.d.ts +9 -0
- package/dist/components/messages/MessagePinnedLabel.vue.d.ts +4 -0
- package/dist/components/messages/MessagePollContent.vue.d.ts +14 -0
- package/dist/components/messages/MessageReactionList.vue.d.ts +14 -0
- package/dist/components/messages/MessageReplyQuote.vue.d.ts +12 -0
- package/dist/components/messages/MessageTextContent.vue.d.ts +12 -0
- package/dist/components/messages/PinnedMessagesBar.vue.d.ts +4 -0
- package/dist/components/overlays/ForwardMessageDialog.vue.d.ts +16 -0
- package/dist/components/overlays/FullscreenDialog.vue.d.ts +34 -0
- package/dist/components/overlays/MediaViewerDialog.vue.d.ts +12 -0
- package/dist/components/overlays/MessageInfoDialog.vue.d.ts +16 -0
- package/dist/components/overlays/PinnedMessagesDialog.vue.d.ts +20 -0
- package/dist/components/overlays/ReceiptSection.vue.d.ts +13 -0
- package/dist/components/overlays/ScheduledMessagesDialog.vue.d.ts +37 -0
- package/dist/components/shared/PersonAvatar.vue.d.ts +8 -0
- package/dist/composables/chat/index.d.ts +13 -0
- package/dist/composables/chat/useComposerContext.d.ts +44 -0
- package/dist/composables/chat/useConversationContext.d.ts +36 -0
- package/dist/composables/chat/useDialogsContext.d.ts +43 -0
- package/dist/composables/chat/useMessagesContext.d.ts +42 -0
- package/dist/composables/useAudioPlayer.d.ts +18 -0
- package/dist/composables/useChatActions.d.ts +21 -0
- package/dist/composables/useChatEventBus.d.ts +108 -0
- package/dist/composables/useComposerDrafts.d.ts +47 -0
- package/dist/composables/useComposerTriggers.d.ts +63 -0
- package/dist/composables/useConversationComposer.d.ts +16 -0
- package/dist/composables/useGroupMemberTracking.d.ts +33 -0
- package/dist/composables/useImageZoom.d.ts +26 -0
- package/dist/composables/useIsTouchUi.d.ts +4 -0
- package/dist/composables/useMessageActionMenu.d.ts +257 -0
- package/dist/composables/useMessageInfoDialog.d.ts +201 -0
- package/dist/composables/useMessageListScroll.d.ts +15 -0
- package/dist/composables/useMessageNavigation.d.ts +16 -0
- package/dist/composables/usePinnedMessages.d.ts +190 -0
- package/dist/composables/useRichTextComposer.d.ts +75 -0
- package/dist/demo/ApiExamplesPanel.vue.d.ts +8 -0
- package/dist/demo/CallDebugPanel.vue.d.ts +8 -0
- package/dist/demo/ChatShell.vue.d.ts +12 -0
- package/dist/demo/StatCard.vue.d.ts +17 -0
- package/dist/demo/ThemeModeToggle.vue.d.ts +17 -0
- package/dist/demo/useDemoThemeMode.d.ts +7 -0
- package/dist/{dist-CP-Tq-KK.js → dist-BJ6-Om37.js} +1 -1
- package/dist/dist-BJ6-Om37.js.map +1 -0
- package/dist/index.d.ts +11 -841
- package/dist/main.d.ts +0 -0
- package/dist/sfc-styles-entry.d.ts +1 -0
- package/dist/shims-vue.d.ts +6 -0
- package/dist/style.css +1 -1
- package/dist/vite-env.d.ts +1 -0
- package/dist/vue-bcc-chat-ui.js +6132 -5653
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/dist/{web-CDfDePhG.js → web-DSJwqhTK.js} +2 -2
- package/dist/web-DSJwqhTK.js.map +1 -0
- package/package.json +8 -4
- package/dist/dist-CP-Tq-KK.js.map +0 -1
- package/dist/web-CDfDePhG.js.map +0 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { ChatClient, ChatComposerSelectionState, ChatComposerTarget, ChatConversationItem, ChatMessageItem, ChatMessagesGetter, ComposerFormatCommand, ComposerFormattingMode, Language, MessageSendOptions, ParticipantInfo } from '../../chat/types';
|
|
2
|
+
import { ChatTarget } from '../../composables/useChatEventBus';
|
|
3
|
+
import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
client?: ChatClient | null;
|
|
6
|
+
conversation?: ChatConversationItem | null;
|
|
7
|
+
messages?: ChatMessageItem[];
|
|
8
|
+
threadMessages?: ChatMessageItem[];
|
|
9
|
+
loadingMessages?: boolean;
|
|
10
|
+
loadingThreadMessages?: boolean;
|
|
11
|
+
isReadOnly?: boolean;
|
|
12
|
+
sendOptions?: MessageSendOptions;
|
|
13
|
+
showDefaultEmptyState?: boolean;
|
|
14
|
+
initialScheduledMessagesOpen?: boolean;
|
|
15
|
+
chatUid?: string;
|
|
16
|
+
senderDisplayName?: string;
|
|
17
|
+
hideDeletedMessages?: boolean;
|
|
18
|
+
hideGroupActions?: boolean;
|
|
19
|
+
chatMessageGetter?: ChatMessagesGetter;
|
|
20
|
+
displayNoMessagesText?: boolean;
|
|
21
|
+
language?: Language;
|
|
22
|
+
showHeader?: boolean;
|
|
23
|
+
showMessageHeader?: boolean;
|
|
24
|
+
containerClass?: string;
|
|
25
|
+
actionMessageClass?: string;
|
|
26
|
+
actionMessageRowClass?: string;
|
|
27
|
+
composerFormattingMode?: ComposerFormattingMode;
|
|
28
|
+
};
|
|
29
|
+
declare function applyComposerFormat(command: ComposerFormatCommand, target?: ChatComposerTarget): boolean;
|
|
30
|
+
declare function requestComposerLink(target?: ChatComposerTarget): boolean;
|
|
31
|
+
declare function applyComposerLink(url: string, target?: ChatComposerTarget): boolean;
|
|
32
|
+
declare function cancelComposerLink(target?: ChatComposerTarget): void;
|
|
33
|
+
declare function getComposerSelection(target?: ChatComposerTarget): ChatComposerSelectionState | null;
|
|
34
|
+
declare function scrollToMessage(messageId: string): Promise<void>;
|
|
35
|
+
declare var __VLS_6: {
|
|
36
|
+
message: string;
|
|
37
|
+
}, __VLS_23: {
|
|
38
|
+
conversation: ChatConversationItem | null;
|
|
39
|
+
parentMessage: ChatMessageItem | null;
|
|
40
|
+
target: ChatTarget;
|
|
41
|
+
title: string;
|
|
42
|
+
subtitle: string;
|
|
43
|
+
memberCount: number;
|
|
44
|
+
}, __VLS_102: {}, __VLS_105: {};
|
|
45
|
+
type __VLS_Slots = {} & {
|
|
46
|
+
'error-message'?: (props: typeof __VLS_6) => any;
|
|
47
|
+
} & {
|
|
48
|
+
'message-header'?: (props: typeof __VLS_23) => any;
|
|
49
|
+
} & {
|
|
50
|
+
'no-messages'?: (props: typeof __VLS_102) => any;
|
|
51
|
+
} & {
|
|
52
|
+
'not-a-member'?: (props: typeof __VLS_105) => any;
|
|
53
|
+
};
|
|
54
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {
|
|
55
|
+
applyComposerFormat: typeof applyComposerFormat;
|
|
56
|
+
applyComposerLink: typeof applyComposerLink;
|
|
57
|
+
cancelComposerLink: typeof cancelComposerLink;
|
|
58
|
+
getComposerSelection: typeof getComposerSelection;
|
|
59
|
+
requestComposerLink: typeof requestComposerLink;
|
|
60
|
+
scrollToMessage: typeof scrollToMessage;
|
|
61
|
+
groupMembers: ComputedRef<{
|
|
62
|
+
uid: string;
|
|
63
|
+
displayName: string;
|
|
64
|
+
avatar: string;
|
|
65
|
+
role: string;
|
|
66
|
+
lastSeen?: Date | undefined;
|
|
67
|
+
}[]>;
|
|
68
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
69
|
+
chatNotAMember: (chatUid: string) => any;
|
|
70
|
+
composerSelectionChange: (selection: ChatComposerSelectionState | null) => any;
|
|
71
|
+
composerLinkRequest: (selection: ChatComposerSelectionState) => any;
|
|
72
|
+
chatMembersFetched: (members: ParticipantInfo[]) => any;
|
|
73
|
+
chatEmpty: () => any;
|
|
74
|
+
linkClicked: (event: MouseEvent, url: string) => any;
|
|
75
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
76
|
+
onChatNotAMember?: ((chatUid: string) => any) | undefined;
|
|
77
|
+
onComposerSelectionChange?: ((selection: ChatComposerSelectionState | null) => any) | undefined;
|
|
78
|
+
onComposerLinkRequest?: ((selection: ChatComposerSelectionState) => any) | undefined;
|
|
79
|
+
onChatMembersFetched?: ((members: ParticipantInfo[]) => any) | undefined;
|
|
80
|
+
onChatEmpty?: (() => any) | undefined;
|
|
81
|
+
onLinkClicked?: ((event: MouseEvent, url: string) => any) | undefined;
|
|
82
|
+
}>, {
|
|
83
|
+
chatUid: string;
|
|
84
|
+
hideGroupActions: boolean;
|
|
85
|
+
client: ChatClient | null;
|
|
86
|
+
isReadOnly: boolean;
|
|
87
|
+
initialScheduledMessagesOpen: boolean;
|
|
88
|
+
hideDeletedMessages: boolean;
|
|
89
|
+
displayNoMessagesText: boolean;
|
|
90
|
+
showMessageHeader: boolean;
|
|
91
|
+
composerFormattingMode: ComposerFormattingMode;
|
|
92
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
93
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
94
|
+
declare const _default: typeof __VLS_export;
|
|
95
|
+
export default _default;
|
|
96
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
97
|
+
new (): {
|
|
98
|
+
$slots: S;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
offlineMode: boolean;
|
|
5
|
+
connected: boolean;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
notFound: boolean;
|
|
8
|
+
notAMember: boolean;
|
|
9
|
+
isEmpty: boolean;
|
|
10
|
+
showEmptySlot: boolean;
|
|
11
|
+
messages: {
|
|
12
|
+
waitingForNetwork: string;
|
|
13
|
+
connecting: string;
|
|
14
|
+
loading: string;
|
|
15
|
+
notFound: string;
|
|
16
|
+
noMessages: string;
|
|
17
|
+
notAMember: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
declare var __VLS_2: string, __VLS_3: {}, __VLS_6: `${string}-content`, __VLS_7: {};
|
|
21
|
+
type __VLS_Slots = {} & {
|
|
22
|
+
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
23
|
+
} & {
|
|
24
|
+
[K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7) => any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { BccChatComposerFormattingHandle, ChatClient, ChatComposerSelectionState, ChatConversationItem, ChatMessagesGetter, ChatMessageItem, ComposerFormattingMode, Language, MessageSendOptions, ParticipantInfo } from '../../chat/types';
|
|
2
|
+
export interface BccChatPublicProps {
|
|
3
|
+
client?: ChatClient | null;
|
|
4
|
+
conversation?: ChatConversationItem | null;
|
|
5
|
+
messages?: ChatMessageItem[];
|
|
6
|
+
threadMessages?: ChatMessageItem[];
|
|
7
|
+
loadingMessages?: boolean;
|
|
8
|
+
loadingThreadMessages?: boolean;
|
|
9
|
+
isReadOnly?: boolean;
|
|
10
|
+
sendOptions?: MessageSendOptions;
|
|
11
|
+
showDefaultEmptyState?: boolean;
|
|
12
|
+
initialScheduledMessagesOpen?: boolean;
|
|
13
|
+
chatUid?: string;
|
|
14
|
+
senderDisplayName?: string;
|
|
15
|
+
hideDeletedMessages?: boolean;
|
|
16
|
+
chatMessageGetter?: ChatMessagesGetter;
|
|
17
|
+
loadMessageId?: string;
|
|
18
|
+
displayNoMessagesText?: boolean;
|
|
19
|
+
language?: Language;
|
|
20
|
+
topInset?: number;
|
|
21
|
+
bottomInset?: number;
|
|
22
|
+
composerFormattingMode?: ComposerFormattingMode;
|
|
23
|
+
}
|
|
24
|
+
export declare const bccChatPublicPropDefaults: {
|
|
25
|
+
client: null;
|
|
26
|
+
initialScheduledMessagesOpen: boolean;
|
|
27
|
+
chatUid: string;
|
|
28
|
+
hideDeletedMessages: boolean;
|
|
29
|
+
loadMessageId: string;
|
|
30
|
+
displayNoMessagesText: boolean;
|
|
31
|
+
topInset: number;
|
|
32
|
+
bottomInset: number;
|
|
33
|
+
composerFormattingMode: string;
|
|
34
|
+
};
|
|
35
|
+
export type BccChatPublicEmits = {
|
|
36
|
+
chatMembersFetched: [members: ParticipantInfo[]];
|
|
37
|
+
chatEmpty: [];
|
|
38
|
+
composerSelectionChange: [selection: ChatComposerSelectionState | null];
|
|
39
|
+
composerLinkRequest: [selection: ChatComposerSelectionState];
|
|
40
|
+
};
|
|
41
|
+
export interface BccChatPublicExpose extends BccChatComposerFormattingHandle {
|
|
42
|
+
scrollToMessage(messageId: string): Promise<void>;
|
|
43
|
+
readonly groupMembers: ParticipantInfo[];
|
|
44
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChatConversationItem } from '../../chat/types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
conversations: ChatConversationItem[];
|
|
5
|
+
activeConversationId: string | null;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
query: string;
|
|
8
|
+
mentionNameByUid?: Record<string, string>;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
11
|
+
select: (conversationId: string) => any;
|
|
12
|
+
"update:query": (value: string) => any;
|
|
13
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onSelect?: ((conversationId: string) => any) | undefined;
|
|
15
|
+
"onUpdate:query"?: ((value: string) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
name: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
avatar?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
text: string;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ChatAttachmentItem } from '../../chat/types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
attachment: ChatAttachmentItem | null;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
7
|
+
close: () => any;
|
|
8
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onClose?: (() => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare function toggle(_event?: Event): void;
|
|
3
|
+
declare function hide(): void;
|
|
4
|
+
declare const __VLS_export: DefineComponent<{}, {
|
|
5
|
+
toggle: typeof toggle;
|
|
6
|
+
hide: typeof hide;
|
|
7
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
8
|
+
pickFile: (kind: "image" | "video" | "audio" | "file") => any;
|
|
9
|
+
openPoll: () => any;
|
|
10
|
+
}, string, PublicProps, Readonly<{}> & Readonly<{
|
|
11
|
+
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
12
|
+
onOpenPoll?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ChatMessageItem } from '../../chat/types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
message: ChatMessageItem;
|
|
5
|
+
/** "editing" shows an information-coloured banner; "replying" shows success-coloured */
|
|
6
|
+
variant: "editing" | "replying";
|
|
7
|
+
contextLabel?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
|
+
cancel: () => any;
|
|
11
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onCancel?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ComposerFormatCommand } from '../../chat/types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
position: {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
placement?: "above" | "below";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
12
|
+
link: () => any;
|
|
13
|
+
format: (command: ComposerFormatCommand) => any;
|
|
14
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onLink?: (() => any) | undefined;
|
|
16
|
+
onFormat?: ((command: ComposerFormatCommand) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
initialUrl?: string;
|
|
6
|
+
selectedText?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
9
|
+
cancel: () => any;
|
|
10
|
+
apply: (url: string) => any;
|
|
11
|
+
"update:visible": (value: boolean) => any;
|
|
12
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onCancel?: (() => any) | undefined;
|
|
14
|
+
onApply?: ((url: string) => any) | undefined;
|
|
15
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PollComposerInput } from '../../chat/types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare function reset(): void;
|
|
8
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {
|
|
9
|
+
reset: typeof reset;
|
|
10
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
11
|
+
"update:visible": (value: boolean) => any;
|
|
12
|
+
send: (input: PollComposerInput) => any;
|
|
13
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
15
|
+
onSend?: ((input: PollComposerInput) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ScheduleMessageInput } from '../../chat/types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
/** Human-readable preview of what will be sent. */
|
|
7
|
+
contentPreview: string;
|
|
8
|
+
/** Whether scheduling is currently possible (e.g. file attachments are allowed). */
|
|
9
|
+
canSchedule: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare function reset(): void;
|
|
12
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {
|
|
13
|
+
reset: typeof reset;
|
|
14
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
|
+
schedule: (input: ScheduleMessageInput) => any;
|
|
16
|
+
"update:visible": (value: boolean) => any;
|
|
17
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onSchedule?: ((input: ScheduleMessageInput) => any) | undefined;
|
|
19
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComposerTriggerCandidate } from '../../composables/useComposerTriggers';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
position: {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
placement?: "above" | "below";
|
|
9
|
+
};
|
|
10
|
+
candidates: ComposerTriggerCandidate[];
|
|
11
|
+
};
|
|
12
|
+
type __VLS_ModelProps = {
|
|
13
|
+
"highlightedIndex"?: number;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
16
|
+
declare const __VLS_export: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
17
|
+
select: (candidate: ComposerTriggerCandidate) => any;
|
|
18
|
+
"update:highlightedIndex": (value: number | undefined) => any;
|
|
19
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
|
+
onSelect?: ((candidate: ComposerTriggerCandidate) => any) | undefined;
|
|
21
|
+
"onUpdate:highlightedIndex"?: ((value: number | undefined) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ChatComposerSelectionState, ComposerFormatCommand, ComposerFormattingMode } from '../../chat/types';
|
|
2
|
+
import { ChatTarget } from '../../composables/useChatEventBus';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
/** Which target this composer belongs to. */
|
|
6
|
+
target: ChatTarget;
|
|
7
|
+
formattingMode?: ComposerFormattingMode;
|
|
8
|
+
};
|
|
9
|
+
declare function focusEditor(): Promise<void>;
|
|
10
|
+
declare function applyComposerFormat(command: ComposerFormatCommand): boolean;
|
|
11
|
+
declare function requestComposerLink(): boolean;
|
|
12
|
+
declare function applyComposerLink(url: string): boolean;
|
|
13
|
+
declare function cancelComposerLink(): void;
|
|
14
|
+
declare function getComposerSelection(): ChatComposerSelectionState | null;
|
|
15
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {
|
|
16
|
+
applyComposerFormat: typeof applyComposerFormat;
|
|
17
|
+
applyComposerLink: typeof applyComposerLink;
|
|
18
|
+
cancelComposerLink: typeof cancelComposerLink;
|
|
19
|
+
focusEditor: typeof focusEditor;
|
|
20
|
+
getComposerSelection: typeof getComposerSelection;
|
|
21
|
+
requestComposerLink: typeof requestComposerLink;
|
|
22
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
23
|
+
composerSelectionChange: (selection: ChatComposerSelectionState | null) => any;
|
|
24
|
+
composerLinkRequest: (selection: ChatComposerSelectionState) => any;
|
|
25
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
|
+
onComposerSelectionChange?: ((selection: ChatComposerSelectionState | null) => any) | undefined;
|
|
27
|
+
onComposerLinkRequest?: ((selection: ChatComposerSelectionState) => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
url: string;
|
|
4
|
+
isOwn?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
text: string;
|
|
4
|
+
isOwn?: boolean;
|
|
5
|
+
showPreview?: boolean;
|
|
6
|
+
textClass?: string;
|
|
7
|
+
mentionNameByUid?: Record<string, string>;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
|
+
anchorclick: (event: MouseEvent, url: string) => any;
|
|
11
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onAnchorclick?: ((event: MouseEvent, url: string) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ChatAttachmentItem, ChatMessageItem } from '../../chat/types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
message: ChatMessageItem;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
7
|
+
openMedia: (attachment: ChatAttachmentItem) => any;
|
|
8
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onOpenMedia?: ((attachment: ChatAttachmentItem) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { MentionCandidate } from '../../chat/mentions';
|
|
2
|
+
import { AttachmentUploadInput, ChatMessageItem, ComposerFormatCommand, ComposerFormattingMode, ComposerSelectionState, PollComposerInput, ScheduleMessageInput } from '../../chat/types';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
modelValue: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
resetSignal: number;
|
|
8
|
+
showScheduledButton?: boolean;
|
|
9
|
+
replyToMessage?: ChatMessageItem | null;
|
|
10
|
+
editingMessage?: ChatMessageItem | null;
|
|
11
|
+
contextLabel?: string;
|
|
12
|
+
offlineMode?: boolean;
|
|
13
|
+
pendingQueueCount?: number;
|
|
14
|
+
compact?: boolean;
|
|
15
|
+
mentionCandidates?: MentionCandidate[];
|
|
16
|
+
mentionNameByUid?: Record<string, string>;
|
|
17
|
+
mentionsEnabled?: boolean;
|
|
18
|
+
formattingMode?: ComposerFormattingMode;
|
|
19
|
+
};
|
|
20
|
+
declare function focusComposerEditor(): Promise<void>;
|
|
21
|
+
declare function hideComposerActions(): void;
|
|
22
|
+
declare function applyComposerFormat(command: ComposerFormatCommand): boolean;
|
|
23
|
+
declare function requestComposerLink(): boolean;
|
|
24
|
+
declare function applyComposerLink(url: string): boolean;
|
|
25
|
+
declare function cancelComposerLink(): void;
|
|
26
|
+
declare function getComposerSelection(): ComposerSelectionState | null;
|
|
27
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {
|
|
28
|
+
focusEditor: typeof focusComposerEditor;
|
|
29
|
+
hideComposerActions: typeof hideComposerActions;
|
|
30
|
+
applyComposerFormat: typeof applyComposerFormat;
|
|
31
|
+
applyComposerLink: typeof applyComposerLink;
|
|
32
|
+
cancelComposerLink: typeof cancelComposerLink;
|
|
33
|
+
getComposerSelection: typeof getComposerSelection;
|
|
34
|
+
requestComposerLink: typeof requestComposerLink;
|
|
35
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
36
|
+
scheduleMessage: (input: ScheduleMessageInput) => any;
|
|
37
|
+
sendAttachment: (input: AttachmentUploadInput) => any;
|
|
38
|
+
sendPoll: (input: PollComposerInput) => any;
|
|
39
|
+
"update:modelValue": (value: string) => any;
|
|
40
|
+
sendText: () => any;
|
|
41
|
+
openScheduled: () => any;
|
|
42
|
+
cancelReply: () => any;
|
|
43
|
+
cancelEdit: () => any;
|
|
44
|
+
composerSelectionChange: (selection: ComposerSelectionState | null) => any;
|
|
45
|
+
composerLinkRequest: (selection: ComposerSelectionState) => any;
|
|
46
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
47
|
+
onScheduleMessage?: ((input: ScheduleMessageInput) => any) | undefined;
|
|
48
|
+
onSendAttachment?: ((input: AttachmentUploadInput) => any) | undefined;
|
|
49
|
+
onSendPoll?: ((input: PollComposerInput) => any) | undefined;
|
|
50
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
51
|
+
onSendText?: (() => any) | undefined;
|
|
52
|
+
onOpenScheduled?: (() => any) | undefined;
|
|
53
|
+
onCancelReply?: (() => any) | undefined;
|
|
54
|
+
onCancelEdit?: (() => any) | undefined;
|
|
55
|
+
onComposerSelectionChange?: ((selection: ComposerSelectionState | null) => any) | undefined;
|
|
56
|
+
onComposerLinkRequest?: ((selection: ComposerSelectionState) => any) | undefined;
|
|
57
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
58
|
+
declare const _default: typeof __VLS_export;
|
|
59
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
date: Date;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ChatMessageItem } from '../../chat/types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
message: ChatMessageItem;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ChatMessageItem } from '../../chat/types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
message: ChatMessageItem;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ChatAttachmentItem, ChatMessageItem } from '../../chat/types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
message: ChatMessageItem;
|
|
5
|
+
currentUserId?: string;
|
|
6
|
+
canReact?: boolean;
|
|
7
|
+
canOpenThread?: boolean;
|
|
8
|
+
isPinned?: boolean;
|
|
9
|
+
contextMenuOpen?: boolean;
|
|
10
|
+
canShowSenderAvatar: boolean;
|
|
11
|
+
pendingOptionKey?: string | null;
|
|
12
|
+
actionMessageClass?: string;
|
|
13
|
+
actionMessageRowClass?: string;
|
|
14
|
+
isTouchUi?: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
17
|
+
contextmenu: (event: MouseEvent) => any;
|
|
18
|
+
tap: (event: MouseEvent) => any;
|
|
19
|
+
anchorclick: (event: MouseEvent, url: string) => any;
|
|
20
|
+
openMedia: (attachment: ChatAttachmentItem) => any;
|
|
21
|
+
toggleReaction: (emoji: string) => any;
|
|
22
|
+
openThread: () => any;
|
|
23
|
+
votePoll: (optionId: string) => any;
|
|
24
|
+
openReferencedMessage: (messageId: string) => any;
|
|
25
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
|
+
onContextmenu?: ((event: MouseEvent) => any) | undefined;
|
|
27
|
+
onTap?: ((event: MouseEvent) => any) | undefined;
|
|
28
|
+
onAnchorclick?: ((event: MouseEvent, url: string) => any) | undefined;
|
|
29
|
+
onOpenMedia?: ((attachment: ChatAttachmentItem) => any) | undefined;
|
|
30
|
+
onToggleReaction?: ((emoji: string) => any) | undefined;
|
|
31
|
+
onOpenThread?: (() => any) | undefined;
|
|
32
|
+
onVotePoll?: ((optionId: string) => any) | undefined;
|
|
33
|
+
onOpenReferencedMessage?: ((messageId: string) => any) | undefined;
|
|
34
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ChatMessageItem } from '../../chat/types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
message: ChatMessageItem;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Component, DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { ChatMessageItem } from '../../chat/types';
|
|
3
|
+
import { MessagePollVotersSummaryAction, MessageReactionsSummaryAction, MessageReceiptSummaryAction } from '../../composables/useMessageActionMenu';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
message: ChatMessageItem | null;
|
|
6
|
+
canReact: boolean;
|
|
7
|
+
receiptSummaryAction?: MessageReceiptSummaryAction | null;
|
|
8
|
+
pollVotersSummaryAction?: MessagePollVotersSummaryAction | null;
|
|
9
|
+
reactionsSummaryAction?: MessageReactionsSummaryAction | null;
|
|
10
|
+
actionItems: Array<{
|
|
11
|
+
key: string;
|
|
12
|
+
label: string;
|
|
13
|
+
icon: Component;
|
|
14
|
+
command: () => void;
|
|
15
|
+
}>;
|
|
16
|
+
};
|
|
17
|
+
declare function show(event: Event, fallback?: {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
}, element?: HTMLElement): Promise<void>;
|
|
21
|
+
declare function hide(): void;
|
|
22
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {
|
|
23
|
+
show: typeof show;
|
|
24
|
+
hide: typeof hide;
|
|
25
|
+
visible: ComputedRef<boolean>;
|
|
26
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
27
|
+
hide: () => any;
|
|
28
|
+
react: (emoji: string) => any;
|
|
29
|
+
loadReactions: () => any;
|
|
30
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
|
+
onHide?: (() => any) | undefined;
|
|
32
|
+
onReact?: ((emoji: string) => any) | undefined;
|
|
33
|
+
onLoadReactions?: (() => any) | undefined;
|
|
34
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ChatMessageItem } from '../../chat/types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
message: ChatMessageItem;
|
|
5
|
+
canReact: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
8
|
+
react: (emoji: string) => any;
|
|
9
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onReact?: ((emoji: string) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ChatMessageItem } from '../../chat/types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
message: ChatMessageItem;
|
|
5
|
+
canReact?: boolean;
|
|
6
|
+
canOpenThread?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
9
|
+
toggleReaction: (emoji: string) => any;
|
|
10
|
+
openThread: () => any;
|
|
11
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onToggleReaction?: ((emoji: string) => any) | undefined;
|
|
13
|
+
onOpenThread?: (() => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|