@mobilon-dev/chotto 0.3.27 → 0.3.29
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/{CreateChat-BwBQCc_I.js → CreateChat-2MSB5_mE.js} +1 -1
- package/dist/{CreateChat2-CyF5uUuO.js → CreateChat2-CMpXJzp0.js} +1 -1
- package/dist/{CreateDialog-BXoypGLs.js → CreateDialog-CcDtIhwf.js} +1 -1
- package/dist/{ModalVideoRecorder-D5_csjI8.js → ModalVideoRecorder-BCwswaCl.js} +1 -1
- package/dist/{SelectUser2-D06UxtTo.js → SelectUser2-C9PtiaqO.js} +1 -1
- package/dist/chotto.css +1 -1
- package/dist/{index-BCeTdBth.js → index-5NsJv9hy.js} +13637 -7399
- package/dist/themes/dark.css +1 -1
- package/dist/themes/default.css +1 -1
- package/dist/themes/green.css +1 -1
- package/dist/themes/mobilon1.css +1 -1
- package/dist/types/apps/BaseAdaptiveExtendedChatApp/BaseAdaptiveExtendedChatApp.vue.d.ts +2 -2
- package/dist/types/apps/BaseBaseChatApp/BaseBaseChatApp.vue.d.ts +2 -2
- package/dist/types/apps/BaseExtendedChatApp/BaseExtendedChatApp.vue.d.ts +2 -2
- package/dist/types/apps/MobilonExtendedChatApp/MobilonExtendedChatApp.vue.d.ts +2 -2
- package/dist/types/apps/data/messages.d.ts +31 -0
- package/dist/types/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.d.ts +30 -0
- package/dist/types/components/2_chatinput_elements/TextFormatToolbar/stories/TextFormatToolbar.stories.d.ts +8 -0
- package/dist/types/components/2_chatinput_elements/TextFormatToolbar/styles/types.d.ts +23 -0
- package/dist/types/components/2_chatlist_elements/ChatItem/ChatItem.vue.d.ts +4 -1
- package/dist/types/components/2_chatlist_elements/ChatItem/styles/types.d.ts +22 -0
- package/dist/types/components/2_chatlist_elements/ChatItem/types.d.ts +1 -0
- package/dist/types/components/2_feed_elements/AudioMessage/AudioMessage.vue.d.ts +11 -0
- package/dist/types/components/2_feed_elements/AudioMessage/styles/types.d.ts +30 -0
- package/dist/types/components/2_feed_elements/CallMessage/CallMessage.vue.d.ts +11 -0
- package/dist/types/components/2_feed_elements/FileMessage/FileMessage.vue.d.ts +11 -0
- package/dist/types/components/2_feed_elements/FileMessage/stories/FileMessage.stories.d.ts +2 -0
- package/dist/types/components/2_feed_elements/FileMessage/styles/types.d.ts +30 -0
- package/dist/types/components/2_feed_elements/ImageMessage/ImageMessage.vue.d.ts +11 -0
- package/dist/types/components/2_feed_elements/ImageMessage/stories/ImageMessage.stories.d.ts +2 -21
- package/dist/types/components/2_feed_elements/ImageMessage/styles/types.d.ts +32 -0
- package/dist/types/components/2_feed_elements/MessageReactions/MessageReactions.vue.d.ts +1 -1
- package/dist/types/components/2_feed_elements/ReplyAudioMessage/styles/types.d.ts +30 -0
- package/dist/types/components/2_feed_elements/ReplyFileMessage/styles/types.d.ts +30 -0
- package/dist/types/components/2_feed_elements/ReplyImageMessage/styles/types.d.ts +30 -0
- package/dist/types/components/2_feed_elements/ReplyTextMessage/styles/types.d.ts +30 -0
- package/dist/types/components/2_feed_elements/ReplyVideoMessage/styles/types.d.ts +30 -0
- package/dist/types/components/2_feed_elements/TextMessage/TextMessage.vue.d.ts +11 -0
- package/dist/types/components/2_feed_elements/TextMessage/styles/types.d.ts +30 -0
- package/dist/types/components/2_feed_elements/VideoMessage/VideoMessage.vue.d.ts +11 -0
- package/dist/types/components/2_feed_elements/VideoMessage/stories/VideoMessage.stories.d.ts +2 -2
- package/dist/types/components/2_feed_elements/VideoMessage/styles/types.d.ts +30 -0
- package/dist/types/components/3_compounds/ChatInput/ChatInput.vue.d.ts +2 -2
- package/dist/types/components/3_compounds/ChatList/ChatList.vue.d.ts +2 -0
- package/dist/types/components/3_compounds/ChatList/styles/types.d.ts +20 -0
- package/dist/types/components/3_compounds/Feed/Feed.vue.d.ts +11 -0
- package/dist/types/components/3_compounds/SideBar/styles/types.d.ts +6 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/functions/index.d.ts +1 -0
- package/dist/types/functions/parseMarkdown.d.ts +21 -0
- package/dist/types/hooks/messages/index.d.ts +1 -0
- package/dist/types/hooks/messages/useMessageLinks.d.ts +2 -2
- package/dist/types/hooks/messages/useSubtextTooltip.d.ts +11 -0
- package/dist/types/locale/en.d.ts +6 -0
- package/dist/types/locale/ru.d.ts +6 -0
- package/dist/vuessages.es.js +69 -66
- package/dist/vuessages.umd.js +60 -36
- package/package.json +4 -2
|
@@ -32,4 +32,34 @@ export interface ReplyTextMessageThemeCSSVariables {
|
|
|
32
32
|
'--chotto-replytextmessage-p-line-clamp': string;
|
|
33
33
|
/** Ориентация контейнера строк (webkit) */
|
|
34
34
|
'--chotto-replytextmessage-p-webkit-box-orient': string;
|
|
35
|
+
/** Жирность жирного текста (markdown **текст**) */
|
|
36
|
+
'--chotto-replytextmessage-markdown-strong-font-weight': string;
|
|
37
|
+
/** Стиль курсива (markdown *текст*) */
|
|
38
|
+
'--chotto-replytextmessage-markdown-em-font-style': string;
|
|
39
|
+
/** Подчёркивание (markdown <u>текст</u>) */
|
|
40
|
+
'--chotto-replytextmessage-markdown-u-text-decoration': string;
|
|
41
|
+
/** Зачёркивание (markdown ~~текст~~) */
|
|
42
|
+
'--chotto-replytextmessage-markdown-del-text-decoration': string;
|
|
43
|
+
/** Фон встроенного кода (markdown `код`) */
|
|
44
|
+
'--chotto-replytextmessage-markdown-code-bg': string;
|
|
45
|
+
/** Внутренние отступы встроенного кода */
|
|
46
|
+
'--chotto-replytextmessage-markdown-code-padding': string;
|
|
47
|
+
/** Скругление встроенного кода */
|
|
48
|
+
'--chotto-replytextmessage-markdown-code-border-radius': string;
|
|
49
|
+
/** Шрифт встроенного кода */
|
|
50
|
+
'--chotto-replytextmessage-markdown-code-font-family': string;
|
|
51
|
+
/** Размер шрифта встроенного кода */
|
|
52
|
+
'--chotto-replytextmessage-markdown-code-font-size': string;
|
|
53
|
+
/** Левая граница цитаты (markdown > текст) */
|
|
54
|
+
'--chotto-replytextmessage-markdown-blockquote-border-left': string;
|
|
55
|
+
/** Левый отступ цитаты */
|
|
56
|
+
'--chotto-replytextmessage-markdown-blockquote-padding-left': string;
|
|
57
|
+
/** Внешние отступы цитаты */
|
|
58
|
+
'--chotto-replytextmessage-markdown-blockquote-margin': string;
|
|
59
|
+
/** Стиль шрифта цитаты */
|
|
60
|
+
'--chotto-replytextmessage-markdown-blockquote-font-style': string;
|
|
61
|
+
/** Цвет текста цитаты */
|
|
62
|
+
'--chotto-replytextmessage-markdown-blockquote-color': string;
|
|
63
|
+
/** Нижний отступ параграфов markdown */
|
|
64
|
+
'--chotto-replytextmessage-markdown-p-margin-bottom': string;
|
|
35
65
|
}
|
|
@@ -78,4 +78,34 @@ export interface ReplyVideoMessageThemeCSSVariables {
|
|
|
78
78
|
'--chotto-replyvideomessage-modal-fade-opacity-hidden': string;
|
|
79
79
|
/** Прозрачность модального окна в видимом состоянии */
|
|
80
80
|
'--chotto-replyvideomessage-modal-fade-opacity-visible': string;
|
|
81
|
+
/** Жирность жирного текста (markdown **текст**) */
|
|
82
|
+
'--chotto-replyvideomessage-markdown-strong-font-weight': string;
|
|
83
|
+
/** Стиль курсива (markdown *текст*) */
|
|
84
|
+
'--chotto-replyvideomessage-markdown-em-font-style': string;
|
|
85
|
+
/** Подчёркивание (markdown <u>текст</u>) */
|
|
86
|
+
'--chotto-replyvideomessage-markdown-u-text-decoration': string;
|
|
87
|
+
/** Зачёркивание (markdown ~~текст~~) */
|
|
88
|
+
'--chotto-replyvideomessage-markdown-del-text-decoration': string;
|
|
89
|
+
/** Фон встроенного кода (markdown `код`) */
|
|
90
|
+
'--chotto-replyvideomessage-markdown-code-bg': string;
|
|
91
|
+
/** Внутренние отступы встроенного кода */
|
|
92
|
+
'--chotto-replyvideomessage-markdown-code-padding': string;
|
|
93
|
+
/** Скругление встроенного кода */
|
|
94
|
+
'--chotto-replyvideomessage-markdown-code-border-radius': string;
|
|
95
|
+
/** Шрифт встроенного кода */
|
|
96
|
+
'--chotto-replyvideomessage-markdown-code-font-family': string;
|
|
97
|
+
/** Размер шрифта встроенного кода */
|
|
98
|
+
'--chotto-replyvideomessage-markdown-code-font-size': string;
|
|
99
|
+
/** Левая граница цитаты (markdown > текст) */
|
|
100
|
+
'--chotto-replyvideomessage-markdown-blockquote-border-left': string;
|
|
101
|
+
/** Левый отступ цитаты */
|
|
102
|
+
'--chotto-replyvideomessage-markdown-blockquote-padding-left': string;
|
|
103
|
+
/** Внешние отступы цитаты */
|
|
104
|
+
'--chotto-replyvideomessage-markdown-blockquote-margin': string;
|
|
105
|
+
/** Стиль шрифта цитаты */
|
|
106
|
+
'--chotto-replyvideomessage-markdown-blockquote-font-style': string;
|
|
107
|
+
/** Цвет текста цитаты */
|
|
108
|
+
'--chotto-replyvideomessage-markdown-blockquote-color': string;
|
|
109
|
+
/** Нижний отступ параграфов markdown */
|
|
110
|
+
'--chotto-replyvideomessage-markdown-p-margin-bottom': string;
|
|
81
111
|
}
|
|
@@ -16,6 +16,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
16
16
|
type: BooleanConstructor;
|
|
17
17
|
default: boolean;
|
|
18
18
|
};
|
|
19
|
+
subtextTooltipData: {
|
|
20
|
+
type: () => Record<string, string>;
|
|
21
|
+
required: false;
|
|
22
|
+
default: () => {};
|
|
23
|
+
};
|
|
19
24
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
25
|
reply: (...args: any[]) => void;
|
|
21
26
|
action: (...args: any[]) => void;
|
|
@@ -36,6 +41,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
36
41
|
type: BooleanConstructor;
|
|
37
42
|
default: boolean;
|
|
38
43
|
};
|
|
44
|
+
subtextTooltipData: {
|
|
45
|
+
type: () => Record<string, string>;
|
|
46
|
+
required: false;
|
|
47
|
+
default: () => {};
|
|
48
|
+
};
|
|
39
49
|
}>> & Readonly<{
|
|
40
50
|
onReply?: ((...args: any[]) => any) | undefined;
|
|
41
51
|
onAction?: ((...args: any[]) => any) | undefined;
|
|
@@ -43,5 +53,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
43
53
|
applyStyle: Function;
|
|
44
54
|
isFirstInSeries: boolean;
|
|
45
55
|
reactionsEnabled: boolean;
|
|
56
|
+
subtextTooltipData: Record<string, string>;
|
|
46
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
47
58
|
export default _default;
|
|
@@ -96,6 +96,36 @@ export interface TextMessageThemeCSSVariables {
|
|
|
96
96
|
'--chotto-textmessage-text-font-size': string;
|
|
97
97
|
/** Правила перевода строк текста */
|
|
98
98
|
'--chotto-textmessage-text-white-space': string;
|
|
99
|
+
/** Жирность жирного текста (markdown **текст**) */
|
|
100
|
+
'--chotto-textmessage-markdown-strong-font-weight': string;
|
|
101
|
+
/** Стиль курсива (markdown *текст*) */
|
|
102
|
+
'--chotto-textmessage-markdown-em-font-style': string;
|
|
103
|
+
/** Подчёркивание (markdown <u>текст</u>) */
|
|
104
|
+
'--chotto-textmessage-markdown-u-text-decoration': string;
|
|
105
|
+
/** Зачёркивание (markdown ~~текст~~) */
|
|
106
|
+
'--chotto-textmessage-markdown-del-text-decoration': string;
|
|
107
|
+
/** Фон встроенного кода (markdown `код`) */
|
|
108
|
+
'--chotto-textmessage-markdown-code-bg': string;
|
|
109
|
+
/** Внутренние отступы встроенного кода */
|
|
110
|
+
'--chotto-textmessage-markdown-code-padding': string;
|
|
111
|
+
/** Скругление встроенного кода */
|
|
112
|
+
'--chotto-textmessage-markdown-code-border-radius': string;
|
|
113
|
+
/** Шрифт встроенного кода */
|
|
114
|
+
'--chotto-textmessage-markdown-code-font-family': string;
|
|
115
|
+
/** Размер шрифта встроенного кода */
|
|
116
|
+
'--chotto-textmessage-markdown-code-font-size': string;
|
|
117
|
+
/** Левая граница цитаты (markdown > текст) */
|
|
118
|
+
'--chotto-textmessage-markdown-blockquote-border-left': string;
|
|
119
|
+
/** Левый отступ цитаты */
|
|
120
|
+
'--chotto-textmessage-markdown-blockquote-padding-left': string;
|
|
121
|
+
/** Внешние отступы цитаты */
|
|
122
|
+
'--chotto-textmessage-markdown-blockquote-margin': string;
|
|
123
|
+
/** Стиль шрифта цитаты */
|
|
124
|
+
'--chotto-textmessage-markdown-blockquote-font-style': string;
|
|
125
|
+
/** Цвет текста цитаты */
|
|
126
|
+
'--chotto-textmessage-markdown-blockquote-color': string;
|
|
127
|
+
/** Нижний отступ параграфов markdown */
|
|
128
|
+
'--chotto-textmessage-markdown-p-margin-bottom': string;
|
|
99
129
|
/** Размер шрифта подписи */
|
|
100
130
|
'--chotto-textmessage-subtext-font-size': string;
|
|
101
131
|
/** Цвет подписи */
|
|
@@ -16,6 +16,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
16
16
|
type: BooleanConstructor;
|
|
17
17
|
default: boolean;
|
|
18
18
|
};
|
|
19
|
+
subtextTooltipData: {
|
|
20
|
+
type: () => Record<string, string>;
|
|
21
|
+
required: false;
|
|
22
|
+
default: () => {};
|
|
23
|
+
};
|
|
19
24
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
25
|
reply: (...args: any[]) => void;
|
|
21
26
|
action: (...args: any[]) => void;
|
|
@@ -36,6 +41,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
36
41
|
type: BooleanConstructor;
|
|
37
42
|
default: boolean;
|
|
38
43
|
};
|
|
44
|
+
subtextTooltipData: {
|
|
45
|
+
type: () => Record<string, string>;
|
|
46
|
+
required: false;
|
|
47
|
+
default: () => {};
|
|
48
|
+
};
|
|
39
49
|
}>> & Readonly<{
|
|
40
50
|
onReply?: ((...args: any[]) => any) | undefined;
|
|
41
51
|
onAction?: ((...args: any[]) => any) | undefined;
|
|
@@ -43,5 +53,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
43
53
|
applyStyle: Function;
|
|
44
54
|
isFirstInSeries: boolean;
|
|
45
55
|
reactionsEnabled: boolean;
|
|
56
|
+
subtextTooltipData: Record<string, string>;
|
|
46
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
47
58
|
export default _default;
|
package/dist/types/components/2_feed_elements/VideoMessage/stories/VideoMessage.stories.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ export declare const LeftMessageWithAvatar: Story;
|
|
|
10
10
|
export declare const RightMessageWithAvatar: Story;
|
|
11
11
|
export declare const LeftMessageWithAvatarAndSubtext: Story;
|
|
12
12
|
export declare const RightMessageWithAvatarAndSubtext: Story;
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
13
|
+
export declare const LeftMessageWithMarkdownText: Story;
|
|
14
|
+
export declare const RightMessageWithMarkdownText: Story;
|
|
15
15
|
export declare const LeftMessageWithTextAndActions: Story;
|
|
16
16
|
export declare const RightMessageWithTextAndActions: Story;
|
|
17
17
|
export declare const RightMessageWithStatusSent: Story;
|
|
@@ -244,4 +244,34 @@ export interface VideoMessageThemeCSSVariables {
|
|
|
244
244
|
'--chotto-videomessage-modal-fade-enter-from-opacity': string;
|
|
245
245
|
/** Прозрачность модального окна в конце */
|
|
246
246
|
'--chotto-videomessage-modal-fade-enter-to-opacity': string;
|
|
247
|
+
/** Жирность жирного текста (markdown **текст**) */
|
|
248
|
+
'--chotto-videomessage-markdown-strong-font-weight': string;
|
|
249
|
+
/** Стиль курсива (markdown *текст*) */
|
|
250
|
+
'--chotto-videomessage-markdown-em-font-style': string;
|
|
251
|
+
/** Подчёркивание (markdown <u>текст</u>) */
|
|
252
|
+
'--chotto-videomessage-markdown-u-text-decoration': string;
|
|
253
|
+
/** Зачёркивание (markdown ~~текст~~) */
|
|
254
|
+
'--chotto-videomessage-markdown-del-text-decoration': string;
|
|
255
|
+
/** Фон встроенного кода (markdown `код`) */
|
|
256
|
+
'--chotto-videomessage-markdown-code-bg': string;
|
|
257
|
+
/** Внутренние отступы встроенного кода */
|
|
258
|
+
'--chotto-videomessage-markdown-code-padding': string;
|
|
259
|
+
/** Скругление встроенного кода */
|
|
260
|
+
'--chotto-videomessage-markdown-code-border-radius': string;
|
|
261
|
+
/** Шрифт встроенного кода */
|
|
262
|
+
'--chotto-videomessage-markdown-code-font-family': string;
|
|
263
|
+
/** Размер шрифта встроенного кода */
|
|
264
|
+
'--chotto-videomessage-markdown-code-font-size': string;
|
|
265
|
+
/** Левая граница цитаты (markdown > текст) */
|
|
266
|
+
'--chotto-videomessage-markdown-blockquote-border-left': string;
|
|
267
|
+
/** Левый отступ цитаты */
|
|
268
|
+
'--chotto-videomessage-markdown-blockquote-padding-left': string;
|
|
269
|
+
/** Внешние отступы цитаты */
|
|
270
|
+
'--chotto-videomessage-markdown-blockquote-margin': string;
|
|
271
|
+
/** Стиль шрифта цитаты */
|
|
272
|
+
'--chotto-videomessage-markdown-blockquote-font-style': string;
|
|
273
|
+
/** Цвет текста цитаты */
|
|
274
|
+
'--chotto-videomessage-markdown-blockquote-color': string;
|
|
275
|
+
/** Нижний отступ параграфов markdown */
|
|
276
|
+
'--chotto-videomessage-markdown-p-margin-bottom': string;
|
|
247
277
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare var __VLS_1: {},
|
|
1
|
+
declare var __VLS_1: {}, __VLS_14: {};
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
'inline-buttons'?: (props: typeof __VLS_1) => any;
|
|
4
4
|
} & {
|
|
5
|
-
buttons?: (props: typeof
|
|
5
|
+
buttons?: (props: typeof __VLS_14) => any;
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
8
|
state: {
|
|
@@ -7,6 +7,7 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
7
7
|
$emit: (event: "search" | "select" | "action" | "expand" | "tab-click" | "loadMoreChats" | "clear-search", ...args: any[]) => void;
|
|
8
8
|
chats: unknown[];
|
|
9
9
|
searchQuery: string;
|
|
10
|
+
showDialogs: boolean;
|
|
10
11
|
filterEnabled: boolean;
|
|
11
12
|
filterQuery: string;
|
|
12
13
|
dialogTabs: unknown[];
|
|
@@ -17,6 +18,7 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
17
18
|
$props: {
|
|
18
19
|
readonly chats?: unknown[] | undefined;
|
|
19
20
|
readonly searchQuery?: string | undefined;
|
|
21
|
+
readonly showDialogs?: boolean | undefined;
|
|
20
22
|
readonly filterEnabled?: boolean | undefined;
|
|
21
23
|
readonly filterQuery?: string | undefined;
|
|
22
24
|
readonly dialogTabs?: unknown[] | undefined;
|
|
@@ -170,4 +170,24 @@ export interface ChatListThemeCSSVariables {
|
|
|
170
170
|
'--chotto-chatlist-search-clear-hover-color': string;
|
|
171
171
|
/** Цвет фона кнопки очистки поиска при наведении */
|
|
172
172
|
'--chotto-chatlist-search-clear-hover-bg': string;
|
|
173
|
+
/** Отображение контейнера пустого состояния */
|
|
174
|
+
'--chotto-chatlist-no-data-display': string;
|
|
175
|
+
/** Выравнивание элементов по поперечной оси в пустом состоянии */
|
|
176
|
+
'--chotto-chatlist-no-data-align-items': string;
|
|
177
|
+
/** Выравнивание элементов по главной оси в пустом состоянии */
|
|
178
|
+
'--chotto-chatlist-no-data-justify': string;
|
|
179
|
+
/** Высота контейнера пустого состояния */
|
|
180
|
+
'--chotto-chatlist-no-data-height': string;
|
|
181
|
+
/** Размер шрифта заголовка плейсхолдера */
|
|
182
|
+
'--chotto-chatlist-placeholder-title-font-size': string;
|
|
183
|
+
/** Толщина шрифта заголовка плейсхолдера */
|
|
184
|
+
'--chotto-chatlist-placeholder-title-font-weight': string;
|
|
185
|
+
/** Отступы заголовка плейсхолдера */
|
|
186
|
+
'--chotto-chatlist-placeholder-title-margin': string;
|
|
187
|
+
/** Цвет текста заголовка плейсхолдера */
|
|
188
|
+
'--chotto-chatlist-placeholder-title-color': string;
|
|
189
|
+
/** Размер шрифта подсказки плейсхолдера */
|
|
190
|
+
'--chotto-chatlist-placeholder-hint-font-size': string;
|
|
191
|
+
/** Отступы подсказки плейсхолдера */
|
|
192
|
+
'--chotto-chatlist-placeholder-hint-margin': string;
|
|
173
193
|
}
|
|
@@ -73,6 +73,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
73
73
|
type: BooleanConstructor;
|
|
74
74
|
default: boolean;
|
|
75
75
|
};
|
|
76
|
+
subtextTooltipData: {
|
|
77
|
+
type: ObjectConstructor;
|
|
78
|
+
required: false;
|
|
79
|
+
default: () => {};
|
|
80
|
+
};
|
|
76
81
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
77
82
|
loadMore: (...args: any[]) => void;
|
|
78
83
|
keyboardAction: (...args: any[]) => void;
|
|
@@ -152,6 +157,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
152
157
|
type: BooleanConstructor;
|
|
153
158
|
default: boolean;
|
|
154
159
|
};
|
|
160
|
+
subtextTooltipData: {
|
|
161
|
+
type: ObjectConstructor;
|
|
162
|
+
required: false;
|
|
163
|
+
default: () => {};
|
|
164
|
+
};
|
|
155
165
|
}>> & Readonly<{
|
|
156
166
|
onLoadMore?: ((...args: any[]) => any) | undefined;
|
|
157
167
|
onKeyboardAction?: ((...args: any[]) => any) | undefined;
|
|
@@ -166,6 +176,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
166
176
|
chatBackground: string;
|
|
167
177
|
applyStyle: Function;
|
|
168
178
|
reactionsEnabled: boolean;
|
|
179
|
+
subtextTooltipData: Record<string, any>;
|
|
169
180
|
enableDoubleClickReply: boolean;
|
|
170
181
|
buttonParams: IFeedUnreadButton;
|
|
171
182
|
scrollToBottom: boolean;
|
|
@@ -152,6 +152,12 @@ export interface SideBarThemeCSSVariables {
|
|
|
152
152
|
'--chotto-sidebar-item-span-line-height': string;
|
|
153
153
|
/** Z-index span элемента */
|
|
154
154
|
'--chotto-sidebar-item-span-z-index': string;
|
|
155
|
+
/** Позиция span закрепленного элемента слева */
|
|
156
|
+
'--chotto-sidebar-item-fixed-span-left': string;
|
|
157
|
+
/** Позиция span закрепленного элемента справа */
|
|
158
|
+
'--chotto-sidebar-item-fixed-span-right': string;
|
|
159
|
+
/** Трансформация span закрепленного элемента */
|
|
160
|
+
'--chotto-sidebar-item-fixed-span-transform': string;
|
|
155
161
|
/** Размер шрифта маленького текста */
|
|
156
162
|
'--chotto-sidebar-small-text-font-size': string;
|
|
157
163
|
/** Начертание шрифта маленького текста */
|
|
@@ -24,6 +24,7 @@ export { default as FilePreview } from './2_chatinput_elements/FilePreview/FileP
|
|
|
24
24
|
export { default as FileUploader } from './2_chatinput_elements/FileUploader/FileUploader.vue';
|
|
25
25
|
export { default as PlaceholderComponent } from './2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue';
|
|
26
26
|
export { default as TemplateSelector } from './2_chatinput_elements/TemplateSelector/TemplateSelector.vue';
|
|
27
|
+
export { default as TextFormatToolbar } from './2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue';
|
|
27
28
|
export { default as WABAAttachmentSection } from './2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue';
|
|
28
29
|
export { default as WABAQuickReplyButtons } from './2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue';
|
|
29
30
|
export { default as WABASeparatedQuickButtons } from './2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Утилита для парсинга Markdown-текста в HTML
|
|
3
|
+
*
|
|
4
|
+
* Поддерживает форматирование, используемое в TextFormatToolbar:
|
|
5
|
+
* - **жирный** (bold)
|
|
6
|
+
* - *курсив* (italic)
|
|
7
|
+
* - <u>подчёркнутый</u> (underline)
|
|
8
|
+
* - ~~зачёркнутый~~ (strikethrough)
|
|
9
|
+
* - `встроенный код` (inline code)
|
|
10
|
+
* - > цитата (blockquote)
|
|
11
|
+
*
|
|
12
|
+
* @param {string} text - текст с markdown-разметкой
|
|
13
|
+
* @returns {string} HTML-строка с отформатированным текстом
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Парсит markdown-текст в HTML
|
|
17
|
+
* Использует renderInline для однострочного текста, чтобы избежать оборачивания в параграфы
|
|
18
|
+
* @param text - исходный текст с markdown-разметкой
|
|
19
|
+
* @returns HTML-строка
|
|
20
|
+
*/
|
|
21
|
+
export declare function parseMarkdown(text: string): string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Создает вычисляемое HTML-представление текста с автоссылками и обработчик
|
|
2
|
+
* Создает вычисляемое HTML-представление текста с markdown-форматированием, автоссылками и обработчик
|
|
3
3
|
* открытия ссылок в новой вкладке
|
|
4
4
|
*
|
|
5
5
|
* @param {() => string | undefined} getText - функция, возвращающая исходный текст
|
|
6
6
|
* @returns {{ linkedHtml: import('vue').ComputedRef<string>, inNewWindow: (event: Event) => void }}
|
|
7
|
-
* - linkedHtml: вычисляемый HTML с проставленными ссылками
|
|
7
|
+
* - linkedHtml: вычисляемый HTML с markdown-форматированием и проставленными ссылками
|
|
8
8
|
* - inNewWindow: обработчик клика, открывающий ссылки в новой вкладке
|
|
9
9
|
*/
|
|
10
10
|
export declare const useMessageLinks: (getText: () => string | undefined) => {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ComputedRef, type MaybeRefOrGetter } from 'vue';
|
|
2
|
+
type MessageWithSubtext = {
|
|
3
|
+
messageId?: string | number;
|
|
4
|
+
subText?: string;
|
|
5
|
+
};
|
|
6
|
+
type TooltipMap = Record<string, string>;
|
|
7
|
+
/**
|
|
8
|
+
* Возвращает текст тултипа для подписи сообщения с учётом карты `subtextTooltipData`
|
|
9
|
+
*/
|
|
10
|
+
export declare function useSubtextTooltip(message: MaybeRefOrGetter<MessageWithSubtext | undefined>, tooltipData: MaybeRefOrGetter<TooltipMap | undefined>): ComputedRef<string>;
|
|
11
|
+
export {};
|
|
@@ -10,4 +10,10 @@ export const en: {
|
|
|
10
10
|
'component.FeedSearch.SearchLabel': string;
|
|
11
11
|
'component.FeedSearch.SearchPlaceholder': string;
|
|
12
12
|
'component.ChannelSelector.Placeholder': string;
|
|
13
|
+
'component.TextFormatToolbar.Bold': string;
|
|
14
|
+
'component.TextFormatToolbar.Italic': string;
|
|
15
|
+
'component.TextFormatToolbar.Underline': string;
|
|
16
|
+
'component.TextFormatToolbar.Strikethrough': string;
|
|
17
|
+
'component.TextFormatToolbar.Code': string;
|
|
18
|
+
'component.TextFormatToolbar.Quote': string;
|
|
13
19
|
};
|
|
@@ -10,4 +10,10 @@ export const ru: {
|
|
|
10
10
|
'component.FeedSearch.SearchLabel': string;
|
|
11
11
|
'component.FeedSearch.SearchPlaceholder': string;
|
|
12
12
|
'component.ChannelSelector.Placeholder': string;
|
|
13
|
+
'component.TextFormatToolbar.Bold': string;
|
|
14
|
+
'component.TextFormatToolbar.Italic': string;
|
|
15
|
+
'component.TextFormatToolbar.Underline': string;
|
|
16
|
+
'component.TextFormatToolbar.Strikethrough': string;
|
|
17
|
+
'component.TextFormatToolbar.Code': string;
|
|
18
|
+
'component.TextFormatToolbar.Quote': string;
|
|
13
19
|
};
|
package/dist/vuessages.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ao as s, I as t, x as o, A as l, ar as i, am as n, J as r, i as d, B as u, j as c, k as M, l as g, K as p, y as C, u as m, z as S, ah as h, v as y, aj as R, ai as A, D as F, w as I, aq as T, a as B, b, f as V, c as k, G as f, C as v, N as x, O as P, E as D, an as L, ak as W, F as w, g as E, Q as U, ap as j, h as H, R as K, m as N, n as Q, as as O, X as q, L as z, M as G, Y as J, Z as X, $ as Y, ad as Z, ae as $, af as _, P as aa, a1 as ea, a2 as sa, a3 as ta, a4 as oa, a5 as la, a6 as ia, a7 as na, S as ra, ag as da, d as ua, al as ca, a8 as Ma, a0 as ga, a9 as pa, e as Ca, o as ma, p as Sa, aa as ha, H as ya, T as Ra, ab as Aa, U as Fa, ac as Ia, V as Ta, q as Ba, r as ba, s as Va, t as ka, W as fa, b0 as va, aX as xa, at as Pa, b1 as Da, a$ as La, aK as Wa, aN as wa, aV as Ea, aW as Ua, au as ja, aH as Ha, aZ as Ka, b2 as Na, aY as Qa, a_ as Oa, aU as qa, av as za, aS as Ga, aI as Ja, aw as Xa, ax as Ya, aQ as Za, ay as $a, aR as _a, aL as ae, aB as ee, aC as se, aD as te, aE as oe, aF as le, az as ie, aO as ne, aT as re, aA as de, aP as ue, aG as ce, aJ as Me, aM as ge } from "./index-5NsJv9hy.js";
|
|
2
2
|
export {
|
|
3
3
|
s as AdaptiveExtendedLayout,
|
|
4
4
|
t as AudioMessage,
|
|
@@ -8,31 +8,31 @@ export {
|
|
|
8
8
|
n as BaseLayout,
|
|
9
9
|
r as BaseReplyMessage,
|
|
10
10
|
d as ButtonCommandsSelector,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
u as ButtonContextMenu,
|
|
12
|
+
c as ButtonEmojiPicker,
|
|
13
|
+
M as ButtonTemplateSelector,
|
|
14
|
+
g as ButtonWabaTemplateSelector,
|
|
15
|
+
p as CallMessage,
|
|
16
|
+
C as ChannelSelector,
|
|
17
17
|
m as ChatFilter,
|
|
18
18
|
S as ChatInfo,
|
|
19
19
|
h as ChatInput,
|
|
20
20
|
y as ChatItem,
|
|
21
21
|
R as ChatList,
|
|
22
22
|
A as ChatListHeader,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
F as ChatPanel,
|
|
24
|
+
I as ChatTabs,
|
|
25
|
+
T as ChatWrapper,
|
|
26
|
+
B as CheckIcon,
|
|
27
27
|
b as CloseButtonIcon,
|
|
28
28
|
V as CommunicationPanel,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
k as ContactCRMIcon,
|
|
30
|
+
f as ContactInfo,
|
|
31
31
|
v as ContextMenu,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
x as DateMessage,
|
|
33
|
+
P as DateMessageSticky,
|
|
34
|
+
D as EmbedPreview,
|
|
35
|
+
L as ExtendedLayout,
|
|
36
36
|
W as Feed,
|
|
37
37
|
w as FeedFoundItem,
|
|
38
38
|
E as FeedFoundObjects,
|
|
@@ -62,59 +62,62 @@ export {
|
|
|
62
62
|
na as ReplyVideoMessage,
|
|
63
63
|
ra as SearchIcon,
|
|
64
64
|
da as SelectUser,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
ua as SettingsIcon,
|
|
66
|
+
ca as SideBar,
|
|
67
|
+
Ma as SplashScreen,
|
|
68
|
+
ga as StickerMessage,
|
|
69
|
+
pa as SystemMessage,
|
|
70
|
+
Ca as TelegramIcon,
|
|
71
71
|
ma as TemplateSelector,
|
|
72
|
-
Sa as
|
|
73
|
-
ha as
|
|
74
|
-
ya as
|
|
75
|
-
Ra as
|
|
76
|
-
Aa as
|
|
72
|
+
Sa as TextFormatToolbar,
|
|
73
|
+
ha as TextMessage,
|
|
74
|
+
ya as ThemeMode,
|
|
75
|
+
Ra as Tooltip,
|
|
76
|
+
Aa as TypingMessage,
|
|
77
|
+
Fa as UserProfile,
|
|
77
78
|
Ia as VideoMessage,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
Ta as VideoRecorder,
|
|
80
|
+
Ba as WABAAttachmentSection,
|
|
81
|
+
ba as WABAQuickReplyButtons,
|
|
82
|
+
Va as WABASeparatedQuickButtons,
|
|
83
|
+
ka as WABATemplateSelector,
|
|
83
84
|
fa as WhatsAppIcon,
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
va as createReactionHandlers,
|
|
86
|
+
xa as formatTimestamp,
|
|
86
87
|
Pa as generatePreview,
|
|
87
88
|
Da as getChannelAccentColor,
|
|
88
89
|
La as getMessageClass,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
ce as
|
|
90
|
+
Wa as getMessageValidationReport,
|
|
91
|
+
wa as getSidebarValidationReport,
|
|
92
|
+
Ea as getStatus,
|
|
93
|
+
Ua as getStatusTitle,
|
|
94
|
+
ja as getTypeFileByMime,
|
|
95
|
+
Ha as getValidationReport,
|
|
96
|
+
Ka as insertDaySeparators,
|
|
97
|
+
Na as parseMarkdown,
|
|
98
|
+
Qa as playNotificationAudio,
|
|
99
|
+
Oa as sortByTimestamp,
|
|
100
|
+
qa as statuses,
|
|
101
|
+
za as uploadFile,
|
|
102
|
+
Ga as useChannelAccentColor,
|
|
103
|
+
Ja as useChatValidator,
|
|
104
|
+
Xa as useDelayDebouncedRef,
|
|
105
|
+
Ya as useImmediateDebouncedRef,
|
|
106
|
+
Za as useMessageActions,
|
|
107
|
+
$a as useMessageDraft,
|
|
108
|
+
_a as useMessageLinks,
|
|
109
|
+
ae as useMessageValidator,
|
|
110
|
+
ee as useModalCreateChat,
|
|
111
|
+
se as useModalCreateChat2,
|
|
112
|
+
te as useModalCreateDialog,
|
|
113
|
+
oe as useModalSelectUser2,
|
|
114
|
+
le as useModalVideoRecorder,
|
|
115
|
+
ie as useSearchModel,
|
|
116
|
+
ne as useSidebarValidator,
|
|
117
|
+
re as useSubtextTooltip,
|
|
118
|
+
de as useTheme,
|
|
119
|
+
ue as useValidation,
|
|
120
|
+
ce as validateChats,
|
|
121
|
+
Me as validateMessages,
|
|
122
|
+
ge as validateSidebarItems
|
|
120
123
|
};
|