@mobilon-dev/chotto 0.3.28 → 0.3.30
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-O-87sUly.js → CreateChat-C4y1ddK_.js} +1 -1
- package/dist/{CreateChat2-BMXlCRLk.js → CreateChat2-Oy9JaaRC.js} +1 -1
- package/dist/{CreateDialog-ry0BQXaP.js → CreateDialog-DacwclUe.js} +1 -1
- package/dist/{ModalVideoRecorder-3eVWhEV3.js → ModalVideoRecorder-BkPr4JP7.js} +1 -1
- package/dist/{SelectUser2-C0QnV1mm.js → SelectUser2-kaPAmxhi.js} +1 -1
- package/dist/chotto.css +1 -1
- package/dist/{index-C8JOAGtF.js → index-BzAEsq7j.js} +8727 -5389
- 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/data/messages.d.ts +31 -0
- package/dist/types/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.d.ts +2 -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_feed_elements/AudioMessage/styles/types.d.ts +30 -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/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/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/styles/types.d.ts +30 -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/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/useMessageLinks.d.ts +2 -2
- package/dist/types/locale/en.d.ts +6 -0
- package/dist/types/locale/ru.d.ts +6 -0
- package/dist/vuessages.es.js +61 -59
- package/dist/vuessages.umd.js +60 -36
- package/package.json +4 -2
|
@@ -1903,6 +1903,37 @@ export declare const messages: ({
|
|
|
1903
1903
|
statusMsg?: undefined;
|
|
1904
1904
|
callAttemptDuration?: undefined;
|
|
1905
1905
|
backgroundColor?: undefined;
|
|
1906
|
+
} | {
|
|
1907
|
+
chatId: number;
|
|
1908
|
+
dialogId: string;
|
|
1909
|
+
type: string;
|
|
1910
|
+
url: string;
|
|
1911
|
+
alt: string;
|
|
1912
|
+
direction: string;
|
|
1913
|
+
status: string;
|
|
1914
|
+
timestamp: string;
|
|
1915
|
+
header: string;
|
|
1916
|
+
subText: string;
|
|
1917
|
+
messageId: string;
|
|
1918
|
+
text: string;
|
|
1919
|
+
position?: undefined;
|
|
1920
|
+
time?: undefined;
|
|
1921
|
+
callDuration?: undefined;
|
|
1922
|
+
isMissedCall?: undefined;
|
|
1923
|
+
callParticipant?: undefined;
|
|
1924
|
+
avatar?: undefined;
|
|
1925
|
+
actions?: undefined;
|
|
1926
|
+
embed?: undefined;
|
|
1927
|
+
views?: undefined;
|
|
1928
|
+
reply?: undefined;
|
|
1929
|
+
filename?: undefined;
|
|
1930
|
+
transcript?: undefined;
|
|
1931
|
+
linkPreview?: undefined;
|
|
1932
|
+
keyboard?: undefined;
|
|
1933
|
+
reactions?: undefined;
|
|
1934
|
+
statusMsg?: undefined;
|
|
1935
|
+
callAttemptDuration?: undefined;
|
|
1936
|
+
backgroundColor?: undefined;
|
|
1906
1937
|
} | {
|
|
1907
1938
|
chatId: number;
|
|
1908
1939
|
dialogId: string;
|
package/dist/types/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
mode: string;
|
|
3
3
|
state: string;
|
|
4
|
+
native: boolean;
|
|
4
5
|
$props: {
|
|
5
6
|
readonly mode?: string | undefined;
|
|
6
7
|
readonly state?: string | undefined;
|
|
8
|
+
readonly native?: boolean | undefined;
|
|
7
9
|
};
|
|
8
10
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
11
|
export default _default;
|
package/dist/types/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
textarea: {
|
|
3
|
+
type: () => HTMLTextAreaElement | null;
|
|
4
|
+
default: null;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"format-applied": (data: {
|
|
8
|
+
format: string;
|
|
9
|
+
selectedText: string;
|
|
10
|
+
start: number;
|
|
11
|
+
end: number;
|
|
12
|
+
newText: string;
|
|
13
|
+
}) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
textarea: {
|
|
16
|
+
type: () => HTMLTextAreaElement | null;
|
|
17
|
+
default: null;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{
|
|
20
|
+
"onFormat-applied"?: ((data: {
|
|
21
|
+
format: string;
|
|
22
|
+
selectedText: string;
|
|
23
|
+
start: number;
|
|
24
|
+
end: number;
|
|
25
|
+
newText: string;
|
|
26
|
+
}) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
textarea: HTMLTextAreaElement | null;
|
|
29
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import TextFormatToolbar from '../TextFormatToolbar.vue';
|
|
3
|
+
declare const meta: Meta<typeof TextFormatToolbar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof TextFormatToolbar>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithSampleText: Story;
|
|
8
|
+
export declare const MultilineText: Story;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface TextFormatToolbarThemeCSSVariables {
|
|
2
|
+
'--chotto-textformattoolbar-z-index'?: string;
|
|
3
|
+
'--chotto-textformattoolbar-gap'?: string;
|
|
4
|
+
'--chotto-textformattoolbar-padding'?: string;
|
|
5
|
+
'--chotto-textformattoolbar-background-color'?: string;
|
|
6
|
+
'--chotto-textformattoolbar-border'?: string;
|
|
7
|
+
'--chotto-textformattoolbar-border-radius'?: string;
|
|
8
|
+
'--chotto-textformattoolbar-box-shadow'?: string;
|
|
9
|
+
'--chotto-textformattoolbar-font-family'?: string;
|
|
10
|
+
'--chotto-textformattoolbar-button-width'?: string;
|
|
11
|
+
'--chotto-textformattoolbar-button-height'?: string;
|
|
12
|
+
'--chotto-textformattoolbar-button-padding'?: string;
|
|
13
|
+
'--chotto-textformattoolbar-button-background-color'?: string;
|
|
14
|
+
'--chotto-textformattoolbar-button-border'?: string;
|
|
15
|
+
'--chotto-textformattoolbar-button-border-radius'?: string;
|
|
16
|
+
'--chotto-textformattoolbar-button-cursor'?: string;
|
|
17
|
+
'--chotto-textformattoolbar-button-color'?: string;
|
|
18
|
+
'--chotto-textformattoolbar-button-font-size'?: string;
|
|
19
|
+
'--chotto-textformattoolbar-button-transition'?: string;
|
|
20
|
+
'--chotto-textformattoolbar-button-hover-background-color'?: string;
|
|
21
|
+
'--chotto-textformattoolbar-button-hover-color'?: string;
|
|
22
|
+
'--chotto-textformattoolbar-button-active-background-color'?: string;
|
|
23
|
+
}
|
|
@@ -542,4 +542,34 @@ export interface AudioMessageThemeCSSVariables {
|
|
|
542
542
|
'--chotto-audiomessage-modal-close-button-icon-color': string;
|
|
543
543
|
/** Размер иконки кнопки закрытия */
|
|
544
544
|
'--chotto-audiomessage-modal-close-button-icon-size': string;
|
|
545
|
+
/** Жирность жирного текста (markdown **текст**) */
|
|
546
|
+
'--chotto-audiomessage-markdown-strong-font-weight': string;
|
|
547
|
+
/** Стиль курсива (markdown *текст*) */
|
|
548
|
+
'--chotto-audiomessage-markdown-em-font-style': string;
|
|
549
|
+
/** Подчёркивание (markdown <u>текст</u>) */
|
|
550
|
+
'--chotto-audiomessage-markdown-u-text-decoration': string;
|
|
551
|
+
/** Зачёркивание (markdown ~~текст~~) */
|
|
552
|
+
'--chotto-audiomessage-markdown-del-text-decoration': string;
|
|
553
|
+
/** Фон встроенного кода (markdown `код`) */
|
|
554
|
+
'--chotto-audiomessage-markdown-code-bg': string;
|
|
555
|
+
/** Внутренние отступы встроенного кода */
|
|
556
|
+
'--chotto-audiomessage-markdown-code-padding': string;
|
|
557
|
+
/** Скругление встроенного кода */
|
|
558
|
+
'--chotto-audiomessage-markdown-code-border-radius': string;
|
|
559
|
+
/** Шрифт встроенного кода */
|
|
560
|
+
'--chotto-audiomessage-markdown-code-font-family': string;
|
|
561
|
+
/** Размер шрифта встроенного кода */
|
|
562
|
+
'--chotto-audiomessage-markdown-code-font-size': string;
|
|
563
|
+
/** Левая граница цитаты (markdown > текст) */
|
|
564
|
+
'--chotto-audiomessage-markdown-blockquote-border-left': string;
|
|
565
|
+
/** Левый отступ цитаты */
|
|
566
|
+
'--chotto-audiomessage-markdown-blockquote-padding-left': string;
|
|
567
|
+
/** Внешние отступы цитаты */
|
|
568
|
+
'--chotto-audiomessage-markdown-blockquote-margin': string;
|
|
569
|
+
/** Стиль шрифта цитаты */
|
|
570
|
+
'--chotto-audiomessage-markdown-blockquote-font-style': string;
|
|
571
|
+
/** Цвет текста цитаты */
|
|
572
|
+
'--chotto-audiomessage-markdown-blockquote-color': string;
|
|
573
|
+
/** Нижний отступ параграфов markdown */
|
|
574
|
+
'--chotto-audiomessage-markdown-p-margin-bottom': string;
|
|
545
575
|
}
|
|
@@ -23,6 +23,8 @@ export declare const RightFileMessageWithActionsAndText: Story;
|
|
|
23
23
|
export declare const LeftFileMessageWithActionsAndText: Story;
|
|
24
24
|
export declare const RightFileMessageWithActionsAndTextWithLink: Story;
|
|
25
25
|
export declare const LeftFileMessageWithActionsAndTextWithLink: Story;
|
|
26
|
+
export declare const LeftFileMessageWithMarkdown: Story;
|
|
27
|
+
export declare const RightFileMessageWithMarkdown: Story;
|
|
26
28
|
export declare const LeftMessageWithReplyText: Story;
|
|
27
29
|
export declare const RightMessageWithReplyText: Story;
|
|
28
30
|
export declare const LeftMessageWithReplyImage: Story;
|
|
@@ -254,4 +254,34 @@ export interface FileMessageThemeCSSVariables {
|
|
|
254
254
|
'--chotto-filemessage-v-enter-from-transform': string;
|
|
255
255
|
/** Стартовая прозрачность при появлении */
|
|
256
256
|
'--chotto-filemessage-v-enter-from-opacity': string;
|
|
257
|
+
/** Жирность жирного текста (markdown **текст**) */
|
|
258
|
+
'--chotto-filemessage-markdown-strong-font-weight': string;
|
|
259
|
+
/** Стиль курсива (markdown *текст*) */
|
|
260
|
+
'--chotto-filemessage-markdown-em-font-style': string;
|
|
261
|
+
/** Подчёркивание (markdown <u>текст</u>) */
|
|
262
|
+
'--chotto-filemessage-markdown-u-text-decoration': string;
|
|
263
|
+
/** Зачёркивание (markdown ~~текст~~) */
|
|
264
|
+
'--chotto-filemessage-markdown-del-text-decoration': string;
|
|
265
|
+
/** Фон встроенного кода (markdown `код`) */
|
|
266
|
+
'--chotto-filemessage-markdown-code-bg': string;
|
|
267
|
+
/** Внутренние отступы встроенного кода */
|
|
268
|
+
'--chotto-filemessage-markdown-code-padding': string;
|
|
269
|
+
/** Скругление встроенного кода */
|
|
270
|
+
'--chotto-filemessage-markdown-code-border-radius': string;
|
|
271
|
+
/** Шрифт встроенного кода */
|
|
272
|
+
'--chotto-filemessage-markdown-code-font-family': string;
|
|
273
|
+
/** Размер шрифта встроенного кода */
|
|
274
|
+
'--chotto-filemessage-markdown-code-font-size': string;
|
|
275
|
+
/** Левая граница цитаты (markdown > текст) */
|
|
276
|
+
'--chotto-filemessage-markdown-blockquote-border-left': string;
|
|
277
|
+
/** Левый отступ цитаты */
|
|
278
|
+
'--chotto-filemessage-markdown-blockquote-padding-left': string;
|
|
279
|
+
/** Внешние отступы цитаты */
|
|
280
|
+
'--chotto-filemessage-markdown-blockquote-margin': string;
|
|
281
|
+
/** Стиль шрифта цитаты */
|
|
282
|
+
'--chotto-filemessage-markdown-blockquote-font-style': string;
|
|
283
|
+
/** Цвет текста цитаты */
|
|
284
|
+
'--chotto-filemessage-markdown-blockquote-color': string;
|
|
285
|
+
/** Нижний отступ параграфов markdown */
|
|
286
|
+
'--chotto-filemessage-markdown-p-margin-bottom': string;
|
|
257
287
|
}
|
package/dist/types/components/2_feed_elements/ImageMessage/stories/ImageMessage.stories.d.ts
CHANGED
|
@@ -4,27 +4,8 @@ declare const meta: Meta<typeof ImageMessage>;
|
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof ImageMessage>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const LeftImageMessageWithTextAndLink: Story;
|
|
10
|
-
export declare const LeftImageMessageWithViews: Story;
|
|
11
|
-
export declare const LeftImageMessageWithAvatar: Story;
|
|
12
|
-
export declare const RightImageMessageWithAvatar: Story;
|
|
13
|
-
export declare const LeftImageMessageWithAvatarAndSubtext: Story;
|
|
14
|
-
export declare const RightImageMessageWithAvatarAndSubtext: Story;
|
|
15
|
-
export declare const LeftImageMessageWithSubtext: Story;
|
|
16
|
-
export declare const LeftImageMessageWithActions: Story;
|
|
17
|
-
export declare const RightImageMessage: Story;
|
|
18
|
-
export declare const RightImageMessageWithText: Story;
|
|
19
|
-
export declare const RightImageMessageWithTextAndLink: Story;
|
|
20
|
-
export declare const RightImageMessageWithViews: Story;
|
|
21
|
-
export declare const RightImageMessageWithSubtext: Story;
|
|
22
|
-
export declare const RightImageMessageStatusSent: Story;
|
|
23
|
-
export declare const RightImageMessageStatusReceived: Story;
|
|
24
|
-
export declare const RightImageMessageStatusRead: Story;
|
|
25
|
-
export declare const RightImageMessageStatusPending: Story;
|
|
26
|
-
export declare const RightImageMessageStatusError: Story;
|
|
27
|
-
export declare const RightImageMessageWithActions: Story;
|
|
7
|
+
export declare const LeftImageMessages: Story;
|
|
8
|
+
export declare const RightImageMessages: Story;
|
|
28
9
|
export declare const LeftMessageWithReplyText: Story;
|
|
29
10
|
export declare const RightMessageWithReplyText: Story;
|
|
30
11
|
export declare const LeftMessageWithReplyImage: Story;
|
|
@@ -146,6 +146,38 @@ export interface ImageMessageThemeCSSVariables {
|
|
|
146
146
|
'--chotto-imagemessage-text-container-p-font-size': string;
|
|
147
147
|
/** Перенос слов в абзаце текста */
|
|
148
148
|
'--chotto-imagemessage-text-container-p-word-break': string;
|
|
149
|
+
/** Правила перевода строк текста */
|
|
150
|
+
'--chotto-imagemessage-text-container-p-white-space': string;
|
|
151
|
+
/** Жирность жирного текста (markdown **текст**) */
|
|
152
|
+
'--chotto-imagemessage-markdown-strong-font-weight': string;
|
|
153
|
+
/** Стиль курсива (markdown *текст*) */
|
|
154
|
+
'--chotto-imagemessage-markdown-em-font-style': string;
|
|
155
|
+
/** Подчёркивание (markdown <u>текст</u>) */
|
|
156
|
+
'--chotto-imagemessage-markdown-u-text-decoration': string;
|
|
157
|
+
/** Зачёркивание (markdown ~~текст~~) */
|
|
158
|
+
'--chotto-imagemessage-markdown-del-text-decoration': string;
|
|
159
|
+
/** Фон встроенного кода (markdown `код`) */
|
|
160
|
+
'--chotto-imagemessage-markdown-code-bg': string;
|
|
161
|
+
/** Внутренние отступы встроенного кода */
|
|
162
|
+
'--chotto-imagemessage-markdown-code-padding': string;
|
|
163
|
+
/** Скругление встроенного кода */
|
|
164
|
+
'--chotto-imagemessage-markdown-code-border-radius': string;
|
|
165
|
+
/** Шрифт встроенного кода */
|
|
166
|
+
'--chotto-imagemessage-markdown-code-font-family': string;
|
|
167
|
+
/** Размер шрифта встроенного кода */
|
|
168
|
+
'--chotto-imagemessage-markdown-code-font-size': string;
|
|
169
|
+
/** Левая граница цитаты (markdown > текст) */
|
|
170
|
+
'--chotto-imagemessage-markdown-blockquote-border-left': string;
|
|
171
|
+
/** Левый отступ цитаты */
|
|
172
|
+
'--chotto-imagemessage-markdown-blockquote-padding-left': string;
|
|
173
|
+
/** Внешние отступы цитаты */
|
|
174
|
+
'--chotto-imagemessage-markdown-blockquote-margin': string;
|
|
175
|
+
/** Стиль шрифта цитаты */
|
|
176
|
+
'--chotto-imagemessage-markdown-blockquote-font-style': string;
|
|
177
|
+
/** Цвет текста цитаты */
|
|
178
|
+
'--chotto-imagemessage-markdown-blockquote-color': string;
|
|
179
|
+
/** Нижний отступ параграфов markdown */
|
|
180
|
+
'--chotto-imagemessage-markdown-p-margin-bottom': string;
|
|
149
181
|
/** Внешние отступы блока превью ссылки */
|
|
150
182
|
'--chotto-imagemessage-link-preview-margin': string;
|
|
151
183
|
/** Отображение общего контейнера лево/право */
|
|
@@ -68,4 +68,34 @@ export interface ReplyAudioMessageThemeCSSVariables {
|
|
|
68
68
|
'--chotto-replyaudiomessage-reply-description-margin-bottom': string;
|
|
69
69
|
/** Цвет спана в описании ответа */
|
|
70
70
|
'--chotto-replyaudiomessage-reply-description-span-color': string;
|
|
71
|
+
/** Жирность жирного текста (markdown **текст**) */
|
|
72
|
+
'--chotto-replyaudiomessage-markdown-strong-font-weight': string;
|
|
73
|
+
/** Стиль курсива (markdown *текст*) */
|
|
74
|
+
'--chotto-replyaudiomessage-markdown-em-font-style': string;
|
|
75
|
+
/** Подчёркивание (markdown <u>текст</u>) */
|
|
76
|
+
'--chotto-replyaudiomessage-markdown-u-text-decoration': string;
|
|
77
|
+
/** Зачёркивание (markdown ~~текст~~) */
|
|
78
|
+
'--chotto-replyaudiomessage-markdown-del-text-decoration': string;
|
|
79
|
+
/** Фон встроенного кода (markdown `код`) */
|
|
80
|
+
'--chotto-replyaudiomessage-markdown-code-bg': string;
|
|
81
|
+
/** Внутренние отступы встроенного кода */
|
|
82
|
+
'--chotto-replyaudiomessage-markdown-code-padding': string;
|
|
83
|
+
/** Скругление встроенного кода */
|
|
84
|
+
'--chotto-replyaudiomessage-markdown-code-border-radius': string;
|
|
85
|
+
/** Шрифт встроенного кода */
|
|
86
|
+
'--chotto-replyaudiomessage-markdown-code-font-family': string;
|
|
87
|
+
/** Размер шрифта встроенного кода */
|
|
88
|
+
'--chotto-replyaudiomessage-markdown-code-font-size': string;
|
|
89
|
+
/** Левая граница цитаты (markdown > текст) */
|
|
90
|
+
'--chotto-replyaudiomessage-markdown-blockquote-border-left': string;
|
|
91
|
+
/** Левый отступ цитаты */
|
|
92
|
+
'--chotto-replyaudiomessage-markdown-blockquote-padding-left': string;
|
|
93
|
+
/** Внешние отступы цитаты */
|
|
94
|
+
'--chotto-replyaudiomessage-markdown-blockquote-margin': string;
|
|
95
|
+
/** Стиль шрифта цитаты */
|
|
96
|
+
'--chotto-replyaudiomessage-markdown-blockquote-font-style': string;
|
|
97
|
+
/** Цвет текста цитаты */
|
|
98
|
+
'--chotto-replyaudiomessage-markdown-blockquote-color': string;
|
|
99
|
+
/** Нижний отступ параграфов markdown */
|
|
100
|
+
'--chotto-replyaudiomessage-markdown-p-margin-bottom': string;
|
|
71
101
|
}
|
|
@@ -64,4 +64,34 @@ export interface ReplyFileMessageThemeCSSVariables {
|
|
|
64
64
|
'--chotto-replyfilemessage-filename-text-color': string;
|
|
65
65
|
/** Подчёркивание имени файла */
|
|
66
66
|
'--chotto-replyfilemessage-filename-text-text-decoration': string;
|
|
67
|
+
/** Жирность жирного текста (markdown **текст**) */
|
|
68
|
+
'--chotto-replyfilemessage-markdown-strong-font-weight': string;
|
|
69
|
+
/** Стиль курсива (markdown *текст*) */
|
|
70
|
+
'--chotto-replyfilemessage-markdown-em-font-style': string;
|
|
71
|
+
/** Подчёркивание (markdown <u>текст</u>) */
|
|
72
|
+
'--chotto-replyfilemessage-markdown-u-text-decoration': string;
|
|
73
|
+
/** Зачёркивание (markdown ~~текст~~) */
|
|
74
|
+
'--chotto-replyfilemessage-markdown-del-text-decoration': string;
|
|
75
|
+
/** Фон встроенного кода (markdown `код`) */
|
|
76
|
+
'--chotto-replyfilemessage-markdown-code-bg': string;
|
|
77
|
+
/** Внутренние отступы встроенного кода */
|
|
78
|
+
'--chotto-replyfilemessage-markdown-code-padding': string;
|
|
79
|
+
/** Скругление встроенного кода */
|
|
80
|
+
'--chotto-replyfilemessage-markdown-code-border-radius': string;
|
|
81
|
+
/** Шрифт встроенного кода */
|
|
82
|
+
'--chotto-replyfilemessage-markdown-code-font-family': string;
|
|
83
|
+
/** Размер шрифта встроенного кода */
|
|
84
|
+
'--chotto-replyfilemessage-markdown-code-font-size': string;
|
|
85
|
+
/** Левая граница цитаты (markdown > текст) */
|
|
86
|
+
'--chotto-replyfilemessage-markdown-blockquote-border-left': string;
|
|
87
|
+
/** Левый отступ цитаты */
|
|
88
|
+
'--chotto-replyfilemessage-markdown-blockquote-padding-left': string;
|
|
89
|
+
/** Внешние отступы цитаты */
|
|
90
|
+
'--chotto-replyfilemessage-markdown-blockquote-margin': string;
|
|
91
|
+
/** Стиль шрифта цитаты */
|
|
92
|
+
'--chotto-replyfilemessage-markdown-blockquote-font-style': string;
|
|
93
|
+
/** Цвет текста цитаты */
|
|
94
|
+
'--chotto-replyfilemessage-markdown-blockquote-color': string;
|
|
95
|
+
/** Нижний отступ параграфов markdown */
|
|
96
|
+
'--chotto-replyfilemessage-markdown-p-margin-bottom': string;
|
|
67
97
|
}
|
|
@@ -82,4 +82,34 @@ export interface ReplyImageMessageThemeCSSVariables {
|
|
|
82
82
|
'--chotto-replyimagemessage-modal-fade-enter-from-opacity': string;
|
|
83
83
|
/** Прозрачность модального окна в конце */
|
|
84
84
|
'--chotto-replyimagemessage-modal-fade-enter-to-opacity': string;
|
|
85
|
+
/** Жирность жирного текста (markdown **текст**) */
|
|
86
|
+
'--chotto-replyimagemessage-markdown-strong-font-weight': string;
|
|
87
|
+
/** Стиль курсива (markdown *текст*) */
|
|
88
|
+
'--chotto-replyimagemessage-markdown-em-font-style': string;
|
|
89
|
+
/** Подчёркивание (markdown <u>текст</u>) */
|
|
90
|
+
'--chotto-replyimagemessage-markdown-u-text-decoration': string;
|
|
91
|
+
/** Зачёркивание (markdown ~~текст~~) */
|
|
92
|
+
'--chotto-replyimagemessage-markdown-del-text-decoration': string;
|
|
93
|
+
/** Фон встроенного кода (markdown `код`) */
|
|
94
|
+
'--chotto-replyimagemessage-markdown-code-bg': string;
|
|
95
|
+
/** Внутренние отступы встроенного кода */
|
|
96
|
+
'--chotto-replyimagemessage-markdown-code-padding': string;
|
|
97
|
+
/** Скругление встроенного кода */
|
|
98
|
+
'--chotto-replyimagemessage-markdown-code-border-radius': string;
|
|
99
|
+
/** Шрифт встроенного кода */
|
|
100
|
+
'--chotto-replyimagemessage-markdown-code-font-family': string;
|
|
101
|
+
/** Размер шрифта встроенного кода */
|
|
102
|
+
'--chotto-replyimagemessage-markdown-code-font-size': string;
|
|
103
|
+
/** Левая граница цитаты (markdown > текст) */
|
|
104
|
+
'--chotto-replyimagemessage-markdown-blockquote-border-left': string;
|
|
105
|
+
/** Левый отступ цитаты */
|
|
106
|
+
'--chotto-replyimagemessage-markdown-blockquote-padding-left': string;
|
|
107
|
+
/** Внешние отступы цитаты */
|
|
108
|
+
'--chotto-replyimagemessage-markdown-blockquote-margin': string;
|
|
109
|
+
/** Стиль шрифта цитаты */
|
|
110
|
+
'--chotto-replyimagemessage-markdown-blockquote-font-style': string;
|
|
111
|
+
/** Цвет текста цитаты */
|
|
112
|
+
'--chotto-replyimagemessage-markdown-blockquote-color': string;
|
|
113
|
+
/** Нижний отступ параграфов markdown */
|
|
114
|
+
'--chotto-replyimagemessage-markdown-p-margin-bottom': string;
|
|
85
115
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
/** Цвет подписи */
|
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: {
|
|
@@ -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) => {
|
|
@@ -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
|
};
|