@uzum-tech/ui 2.3.5 → 2.3.7
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/index.js +5997 -65
- package/dist/index.mjs +5997 -65
- package/dist/index.prod.js +4 -2
- package/dist/index.prod.mjs +4 -2
- package/es/_utils/markdown/constants.d.ts +27 -0
- package/es/_utils/markdown/constants.mjs +26 -0
- package/es/_utils/markdown/create-markdown-renderer.d.ts +3 -0
- package/es/_utils/markdown/create-markdown-renderer.mjs +65 -0
- package/es/_utils/markdown/index.d.ts +2 -0
- package/es/_utils/markdown/index.mjs +1 -0
- package/es/_utils/markdown/interface.d.ts +14 -0
- package/es/_utils/markdown/interface.mjs +7 -0
- package/es/_utils/markdown/render-markdown.d.ts +3 -0
- package/es/_utils/markdown/render-markdown.mjs +31 -0
- package/es/_utils/markdown/rulers/clamp-heading.d.ts +2 -0
- package/es/_utils/markdown/rulers/clamp-heading.mjs +25 -0
- package/es/_utils/markdown/rulers/equals-divider.d.ts +2 -0
- package/es/_utils/markdown/rulers/equals-divider.mjs +19 -0
- package/es/_utils/markdown/rulers/prune-empty-blocks.d.ts +2 -0
- package/es/_utils/markdown/rulers/prune-empty-blocks.mjs +31 -0
- package/es/_utils/markdown/rulers/strikethrough.d.ts +3 -0
- package/es/_utils/markdown/rulers/strikethrough.mjs +38 -0
- package/es/_utils/markdown/rulers/strip-html.d.ts +2 -0
- package/es/_utils/markdown/rulers/strip-html.mjs +7 -0
- package/es/chat/src/Chat.d.ts +639 -23
- package/es/chat/src/Chat.mjs +2 -0
- package/es/chat/src/ChatListItems.d.ts +220 -4
- package/es/chat/src/ChatListItems.mjs +3 -2
- package/es/chat/src/ChatMainArea.d.ts +248 -5
- package/es/chat/src/ChatMainArea.mjs +27 -13
- package/es/chat/src/ChatMessages.d.ts +246 -3
- package/es/chat/src/ChatMessages.mjs +22 -2
- package/es/chat/src/ChatParts/Sidebar.d.ts +36 -0
- package/es/chat/src/interface.d.ts +68 -0
- package/es/chat/src/interface.mjs +8 -0
- package/es/chat/styles/dark.d.ts +18 -0
- package/es/chat/styles/light.d.ts +25 -0
- package/es/chat/styles/light.mjs +9 -1
- package/es/components.d.ts +1640 -418
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +1 -1
- package/es/data-table/src/TableParts/Header.mjs +1 -1
- package/es/data-table/src/use-sorter.d.ts +2 -5
- package/es/data-table/src/use-table-data.d.ts +1 -4
- package/es/layout/src/LayoutSider.d.ts +1 -1
- package/es/message-bubble/index.d.ts +1 -0
- package/es/message-bubble/src/MessageBubble.d.ts +90 -6
- package/es/message-bubble/src/MessageBubble.mjs +53 -7
- package/es/message-bubble/src/interface.d.ts +42 -0
- package/es/message-bubble/src/interface.mjs +8 -0
- package/es/message-bubble/src/styles/index.cssr.mjs +35 -1
- package/es/message-bubble/styles/dark.d.ts +11 -0
- package/es/message-bubble/styles/light.d.ts +22 -0
- package/es/message-bubble/styles/light.mjs +14 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/_utils/markdown/constants.d.ts +27 -0
- package/lib/_utils/markdown/constants.js +55 -0
- package/lib/_utils/markdown/create-markdown-renderer.d.ts +3 -0
- package/lib/_utils/markdown/create-markdown-renderer.js +84 -0
- package/lib/_utils/markdown/index.d.ts +2 -0
- package/lib/_utils/markdown/index.js +6 -0
- package/lib/_utils/markdown/interface.d.ts +14 -0
- package/lib/_utils/markdown/interface.js +10 -0
- package/lib/_utils/markdown/render-markdown.d.ts +3 -0
- package/lib/_utils/markdown/render-markdown.js +38 -0
- package/lib/_utils/markdown/rulers/clamp-heading.d.ts +2 -0
- package/lib/_utils/markdown/rulers/clamp-heading.js +30 -0
- package/lib/_utils/markdown/rulers/equals-divider.d.ts +2 -0
- package/lib/_utils/markdown/rulers/equals-divider.js +28 -0
- package/lib/_utils/markdown/rulers/prune-empty-blocks.d.ts +2 -0
- package/lib/_utils/markdown/rulers/prune-empty-blocks.js +40 -0
- package/lib/_utils/markdown/rulers/strikethrough.d.ts +3 -0
- package/lib/_utils/markdown/rulers/strikethrough.js +43 -0
- package/lib/_utils/markdown/rulers/strip-html.d.ts +2 -0
- package/lib/_utils/markdown/rulers/strip-html.js +15 -0
- package/lib/chat/src/Chat.d.ts +639 -23
- package/lib/chat/src/Chat.js +2 -0
- package/lib/chat/src/ChatListItems.d.ts +220 -4
- package/lib/chat/src/ChatListItems.js +7 -2
- package/lib/chat/src/ChatMainArea.d.ts +248 -5
- package/lib/chat/src/ChatMainArea.js +26 -14
- package/lib/chat/src/ChatMessages.d.ts +246 -3
- package/lib/chat/src/ChatMessages.js +11 -4
- package/lib/chat/src/ChatParts/Sidebar.d.ts +36 -0
- package/lib/chat/src/interface.d.ts +68 -0
- package/lib/chat/src/interface.js +6 -0
- package/lib/chat/styles/dark.d.ts +18 -0
- package/lib/chat/styles/light.d.ts +25 -0
- package/lib/chat/styles/light.js +8 -1
- package/lib/components.d.ts +1258 -36
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +1 -1
- package/lib/data-table/src/TableParts/Header.js +1 -1
- package/lib/data-table/src/use-sorter.d.ts +2 -5
- package/lib/data-table/src/use-table-data.d.ts +1 -4
- package/lib/layout/src/LayoutSider.d.ts +1 -1
- package/lib/message-bubble/index.d.ts +1 -0
- package/lib/message-bubble/src/MessageBubble.d.ts +90 -6
- package/lib/message-bubble/src/MessageBubble.js +41 -7
- package/lib/message-bubble/src/interface.d.ts +42 -0
- package/lib/message-bubble/src/interface.js +6 -0
- package/lib/message-bubble/src/styles/index.cssr.js +35 -1
- package/lib/message-bubble/styles/dark.d.ts +11 -0
- package/lib/message-bubble/styles/light.d.ts +22 -0
- package/lib/message-bubble/styles/light.js +13 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -1
- package/web-types.json +29 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PropType, Ref } from 'vue';
|
|
2
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
|
+
import type { MarkdownOptions } from '../../_utils/markdown';
|
|
3
4
|
import type { ButtonProps } from '../../button';
|
|
4
5
|
import type { IconProps } from '../../icon';
|
|
5
6
|
import type { InputProps } from '../../input';
|
|
@@ -114,6 +115,14 @@ export declare const chatMainAreaProps: {
|
|
|
114
115
|
readonly type: StringConstructor;
|
|
115
116
|
readonly default: undefined;
|
|
116
117
|
};
|
|
118
|
+
readonly markdown: {
|
|
119
|
+
readonly type: BooleanConstructor;
|
|
120
|
+
readonly default: true;
|
|
121
|
+
};
|
|
122
|
+
readonly markdownOptions: {
|
|
123
|
+
readonly type: PropType<MarkdownOptions>;
|
|
124
|
+
readonly default: undefined;
|
|
125
|
+
};
|
|
117
126
|
readonly bubbleActions: {
|
|
118
127
|
readonly type: PropType<ChatBubbleAction[]>;
|
|
119
128
|
readonly default: undefined;
|
|
@@ -193,6 +202,13 @@ export declare const chatMainAreaProps: {
|
|
|
193
202
|
inputSuffixColor: string;
|
|
194
203
|
unreadNotificationBackgroundColor: string;
|
|
195
204
|
unreadNotificationTextColor: string;
|
|
205
|
+
markdownQuoteBorderColorOwn: string;
|
|
206
|
+
markdownQuoteBorderColorOther: string;
|
|
207
|
+
markdownQuoteTextColor: string;
|
|
208
|
+
markdownQuoteBackgroundColor: string;
|
|
209
|
+
markdownQuoteMarkerColor: string;
|
|
210
|
+
markdownDividerColorOwn: string;
|
|
211
|
+
markdownDividerColorOther: string;
|
|
196
212
|
typingIndicatorColor: string;
|
|
197
213
|
dateSeparatorColor: string;
|
|
198
214
|
dateSeparatorBackgroundColor: string;
|
|
@@ -966,6 +982,17 @@ export declare const chatMainAreaProps: {
|
|
|
966
982
|
serviceMessageTextColor: string;
|
|
967
983
|
serviceMessageBackgroundColor: string;
|
|
968
984
|
messageTitleColor: string;
|
|
985
|
+
markdownQuoteBorderColorOwn: string;
|
|
986
|
+
markdownQuoteBorderColorOther: string;
|
|
987
|
+
markdownQuoteTextColor: string;
|
|
988
|
+
markdownQuoteBackgroundColor: string;
|
|
989
|
+
markdownQuoteMarkerColor: string;
|
|
990
|
+
markdownDividerColorOwn: string;
|
|
991
|
+
markdownDividerColorOther: string;
|
|
992
|
+
markdownH1FontSize: string;
|
|
993
|
+
markdownH2FontSize: string;
|
|
994
|
+
markdownH3FontSize: string;
|
|
995
|
+
markdownTextFontSize: string;
|
|
969
996
|
}, {
|
|
970
997
|
StatusIcon: import("../../_mixins").Theme<"Icon", {
|
|
971
998
|
color: string;
|
|
@@ -1048,6 +1075,13 @@ export declare const chatMainAreaProps: {
|
|
|
1048
1075
|
inputSuffixColor: string;
|
|
1049
1076
|
unreadNotificationBackgroundColor: string;
|
|
1050
1077
|
unreadNotificationTextColor: string;
|
|
1078
|
+
markdownQuoteBorderColorOwn: string;
|
|
1079
|
+
markdownQuoteBorderColorOther: string;
|
|
1080
|
+
markdownQuoteTextColor: string;
|
|
1081
|
+
markdownQuoteBackgroundColor: string;
|
|
1082
|
+
markdownQuoteMarkerColor: string;
|
|
1083
|
+
markdownDividerColorOwn: string;
|
|
1084
|
+
markdownDividerColorOther: string;
|
|
1051
1085
|
typingIndicatorColor: string;
|
|
1052
1086
|
dateSeparatorColor: string;
|
|
1053
1087
|
dateSeparatorBackgroundColor: string;
|
|
@@ -1821,6 +1855,17 @@ export declare const chatMainAreaProps: {
|
|
|
1821
1855
|
serviceMessageTextColor: string;
|
|
1822
1856
|
serviceMessageBackgroundColor: string;
|
|
1823
1857
|
messageTitleColor: string;
|
|
1858
|
+
markdownQuoteBorderColorOwn: string;
|
|
1859
|
+
markdownQuoteBorderColorOther: string;
|
|
1860
|
+
markdownQuoteTextColor: string;
|
|
1861
|
+
markdownQuoteBackgroundColor: string;
|
|
1862
|
+
markdownQuoteMarkerColor: string;
|
|
1863
|
+
markdownDividerColorOwn: string;
|
|
1864
|
+
markdownDividerColorOther: string;
|
|
1865
|
+
markdownH1FontSize: string;
|
|
1866
|
+
markdownH2FontSize: string;
|
|
1867
|
+
markdownH3FontSize: string;
|
|
1868
|
+
markdownTextFontSize: string;
|
|
1824
1869
|
}, {
|
|
1825
1870
|
StatusIcon: import("../../_mixins").Theme<"Icon", {
|
|
1826
1871
|
color: string;
|
|
@@ -1903,6 +1948,13 @@ export declare const chatMainAreaProps: {
|
|
|
1903
1948
|
inputSuffixColor: string;
|
|
1904
1949
|
unreadNotificationBackgroundColor: string;
|
|
1905
1950
|
unreadNotificationTextColor: string;
|
|
1951
|
+
markdownQuoteBorderColorOwn: string;
|
|
1952
|
+
markdownQuoteBorderColorOther: string;
|
|
1953
|
+
markdownQuoteTextColor: string;
|
|
1954
|
+
markdownQuoteBackgroundColor: string;
|
|
1955
|
+
markdownQuoteMarkerColor: string;
|
|
1956
|
+
markdownDividerColorOwn: string;
|
|
1957
|
+
markdownDividerColorOther: string;
|
|
1906
1958
|
typingIndicatorColor: string;
|
|
1907
1959
|
dateSeparatorColor: string;
|
|
1908
1960
|
dateSeparatorBackgroundColor: string;
|
|
@@ -2676,6 +2728,17 @@ export declare const chatMainAreaProps: {
|
|
|
2676
2728
|
serviceMessageTextColor: string;
|
|
2677
2729
|
serviceMessageBackgroundColor: string;
|
|
2678
2730
|
messageTitleColor: string;
|
|
2731
|
+
markdownQuoteBorderColorOwn: string;
|
|
2732
|
+
markdownQuoteBorderColorOther: string;
|
|
2733
|
+
markdownQuoteTextColor: string;
|
|
2734
|
+
markdownQuoteBackgroundColor: string;
|
|
2735
|
+
markdownQuoteMarkerColor: string;
|
|
2736
|
+
markdownDividerColorOwn: string;
|
|
2737
|
+
markdownDividerColorOther: string;
|
|
2738
|
+
markdownH1FontSize: string;
|
|
2739
|
+
markdownH2FontSize: string;
|
|
2740
|
+
markdownH3FontSize: string;
|
|
2741
|
+
markdownTextFontSize: string;
|
|
2679
2742
|
}, {
|
|
2680
2743
|
StatusIcon: import("../../_mixins").Theme<"Icon", {
|
|
2681
2744
|
color: string;
|
|
@@ -2838,6 +2901,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2838
2901
|
readonly type: StringConstructor;
|
|
2839
2902
|
readonly default: undefined;
|
|
2840
2903
|
};
|
|
2904
|
+
readonly markdown: {
|
|
2905
|
+
readonly type: BooleanConstructor;
|
|
2906
|
+
readonly default: true;
|
|
2907
|
+
};
|
|
2908
|
+
readonly markdownOptions: {
|
|
2909
|
+
readonly type: PropType<MarkdownOptions>;
|
|
2910
|
+
readonly default: undefined;
|
|
2911
|
+
};
|
|
2841
2912
|
readonly bubbleActions: {
|
|
2842
2913
|
readonly type: PropType<ChatBubbleAction[]>;
|
|
2843
2914
|
readonly default: undefined;
|
|
@@ -2917,6 +2988,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2917
2988
|
inputSuffixColor: string;
|
|
2918
2989
|
unreadNotificationBackgroundColor: string;
|
|
2919
2990
|
unreadNotificationTextColor: string;
|
|
2991
|
+
markdownQuoteBorderColorOwn: string;
|
|
2992
|
+
markdownQuoteBorderColorOther: string;
|
|
2993
|
+
markdownQuoteTextColor: string;
|
|
2994
|
+
markdownQuoteBackgroundColor: string;
|
|
2995
|
+
markdownQuoteMarkerColor: string;
|
|
2996
|
+
markdownDividerColorOwn: string;
|
|
2997
|
+
markdownDividerColorOther: string;
|
|
2920
2998
|
typingIndicatorColor: string;
|
|
2921
2999
|
dateSeparatorColor: string;
|
|
2922
3000
|
dateSeparatorBackgroundColor: string;
|
|
@@ -3690,6 +3768,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3690
3768
|
serviceMessageTextColor: string;
|
|
3691
3769
|
serviceMessageBackgroundColor: string;
|
|
3692
3770
|
messageTitleColor: string;
|
|
3771
|
+
markdownQuoteBorderColorOwn: string;
|
|
3772
|
+
markdownQuoteBorderColorOther: string;
|
|
3773
|
+
markdownQuoteTextColor: string;
|
|
3774
|
+
markdownQuoteBackgroundColor: string;
|
|
3775
|
+
markdownQuoteMarkerColor: string;
|
|
3776
|
+
markdownDividerColorOwn: string;
|
|
3777
|
+
markdownDividerColorOther: string;
|
|
3778
|
+
markdownH1FontSize: string;
|
|
3779
|
+
markdownH2FontSize: string;
|
|
3780
|
+
markdownH3FontSize: string;
|
|
3781
|
+
markdownTextFontSize: string;
|
|
3693
3782
|
}, {
|
|
3694
3783
|
StatusIcon: import("../../_mixins").Theme<"Icon", {
|
|
3695
3784
|
color: string;
|
|
@@ -3772,6 +3861,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3772
3861
|
inputSuffixColor: string;
|
|
3773
3862
|
unreadNotificationBackgroundColor: string;
|
|
3774
3863
|
unreadNotificationTextColor: string;
|
|
3864
|
+
markdownQuoteBorderColorOwn: string;
|
|
3865
|
+
markdownQuoteBorderColorOther: string;
|
|
3866
|
+
markdownQuoteTextColor: string;
|
|
3867
|
+
markdownQuoteBackgroundColor: string;
|
|
3868
|
+
markdownQuoteMarkerColor: string;
|
|
3869
|
+
markdownDividerColorOwn: string;
|
|
3870
|
+
markdownDividerColorOther: string;
|
|
3775
3871
|
typingIndicatorColor: string;
|
|
3776
3872
|
dateSeparatorColor: string;
|
|
3777
3873
|
dateSeparatorBackgroundColor: string;
|
|
@@ -4545,6 +4641,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4545
4641
|
serviceMessageTextColor: string;
|
|
4546
4642
|
serviceMessageBackgroundColor: string;
|
|
4547
4643
|
messageTitleColor: string;
|
|
4644
|
+
markdownQuoteBorderColorOwn: string;
|
|
4645
|
+
markdownQuoteBorderColorOther: string;
|
|
4646
|
+
markdownQuoteTextColor: string;
|
|
4647
|
+
markdownQuoteBackgroundColor: string;
|
|
4648
|
+
markdownQuoteMarkerColor: string;
|
|
4649
|
+
markdownDividerColorOwn: string;
|
|
4650
|
+
markdownDividerColorOther: string;
|
|
4651
|
+
markdownH1FontSize: string;
|
|
4652
|
+
markdownH2FontSize: string;
|
|
4653
|
+
markdownH3FontSize: string;
|
|
4654
|
+
markdownTextFontSize: string;
|
|
4548
4655
|
}, {
|
|
4549
4656
|
StatusIcon: import("../../_mixins").Theme<"Icon", {
|
|
4550
4657
|
color: string;
|
|
@@ -4627,6 +4734,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4627
4734
|
inputSuffixColor: string;
|
|
4628
4735
|
unreadNotificationBackgroundColor: string;
|
|
4629
4736
|
unreadNotificationTextColor: string;
|
|
4737
|
+
markdownQuoteBorderColorOwn: string;
|
|
4738
|
+
markdownQuoteBorderColorOther: string;
|
|
4739
|
+
markdownQuoteTextColor: string;
|
|
4740
|
+
markdownQuoteBackgroundColor: string;
|
|
4741
|
+
markdownQuoteMarkerColor: string;
|
|
4742
|
+
markdownDividerColorOwn: string;
|
|
4743
|
+
markdownDividerColorOther: string;
|
|
4630
4744
|
typingIndicatorColor: string;
|
|
4631
4745
|
dateSeparatorColor: string;
|
|
4632
4746
|
dateSeparatorBackgroundColor: string;
|
|
@@ -5400,6 +5514,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
5400
5514
|
serviceMessageTextColor: string;
|
|
5401
5515
|
serviceMessageBackgroundColor: string;
|
|
5402
5516
|
messageTitleColor: string;
|
|
5517
|
+
markdownQuoteBorderColorOwn: string;
|
|
5518
|
+
markdownQuoteBorderColorOther: string;
|
|
5519
|
+
markdownQuoteTextColor: string;
|
|
5520
|
+
markdownQuoteBackgroundColor: string;
|
|
5521
|
+
markdownQuoteMarkerColor: string;
|
|
5522
|
+
markdownDividerColorOwn: string;
|
|
5523
|
+
markdownDividerColorOther: string;
|
|
5524
|
+
markdownH1FontSize: string;
|
|
5525
|
+
markdownH2FontSize: string;
|
|
5526
|
+
markdownH3FontSize: string;
|
|
5527
|
+
markdownTextFontSize: string;
|
|
5403
5528
|
}, {
|
|
5404
5529
|
StatusIcon: import("../../_mixins").Theme<"Icon", {
|
|
5405
5530
|
color: string;
|
|
@@ -5453,7 +5578,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
5453
5578
|
}>>>;
|
|
5454
5579
|
}>, {
|
|
5455
5580
|
mergedClsPrefix: Ref<string, string>;
|
|
5456
|
-
mergedTheme:
|
|
5581
|
+
mergedTheme: import("vue").ComputedRef<{
|
|
5457
5582
|
common: import("../..").ThemeCommonVars;
|
|
5458
5583
|
self: {
|
|
5459
5584
|
backgroundColor: string;
|
|
@@ -5486,6 +5611,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
5486
5611
|
inputSuffixColor: string;
|
|
5487
5612
|
unreadNotificationBackgroundColor: string;
|
|
5488
5613
|
unreadNotificationTextColor: string;
|
|
5614
|
+
markdownQuoteBorderColorOwn: string;
|
|
5615
|
+
markdownQuoteBorderColorOther: string;
|
|
5616
|
+
markdownQuoteTextColor: string;
|
|
5617
|
+
markdownQuoteBackgroundColor: string;
|
|
5618
|
+
markdownQuoteMarkerColor: string;
|
|
5619
|
+
markdownDividerColorOwn: string;
|
|
5620
|
+
markdownDividerColorOther: string;
|
|
5489
5621
|
typingIndicatorColor: string;
|
|
5490
5622
|
dateSeparatorColor: string;
|
|
5491
5623
|
dateSeparatorBackgroundColor: string;
|
|
@@ -6260,6 +6392,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
6260
6392
|
serviceMessageTextColor: string;
|
|
6261
6393
|
serviceMessageBackgroundColor: string;
|
|
6262
6394
|
messageTitleColor: string;
|
|
6395
|
+
markdownQuoteBorderColorOwn: string;
|
|
6396
|
+
markdownQuoteBorderColorOther: string;
|
|
6397
|
+
markdownQuoteTextColor: string;
|
|
6398
|
+
markdownQuoteBackgroundColor: string;
|
|
6399
|
+
markdownQuoteMarkerColor: string;
|
|
6400
|
+
markdownDividerColorOwn: string;
|
|
6401
|
+
markdownDividerColorOther: string;
|
|
6402
|
+
markdownH1FontSize: string;
|
|
6403
|
+
markdownH2FontSize: string;
|
|
6404
|
+
markdownH3FontSize: string;
|
|
6405
|
+
markdownTextFontSize: string;
|
|
6263
6406
|
}, {
|
|
6264
6407
|
StatusIcon: import("../../_mixins").Theme<"Icon", {
|
|
6265
6408
|
color: string;
|
|
@@ -6700,7 +6843,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
6700
6843
|
} | undefined;
|
|
6701
6844
|
} | undefined;
|
|
6702
6845
|
};
|
|
6703
|
-
}
|
|
6846
|
+
}> | Ref<{
|
|
6704
6847
|
common: import("../..").ThemeCommonVars;
|
|
6705
6848
|
self: {
|
|
6706
6849
|
backgroundColor: string;
|
|
@@ -6733,6 +6876,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
6733
6876
|
inputSuffixColor: string;
|
|
6734
6877
|
unreadNotificationBackgroundColor: string;
|
|
6735
6878
|
unreadNotificationTextColor: string;
|
|
6879
|
+
markdownQuoteBorderColorOwn: string;
|
|
6880
|
+
markdownQuoteBorderColorOther: string;
|
|
6881
|
+
markdownQuoteTextColor: string;
|
|
6882
|
+
markdownQuoteBackgroundColor: string;
|
|
6883
|
+
markdownQuoteMarkerColor: string;
|
|
6884
|
+
markdownDividerColorOwn: string;
|
|
6885
|
+
markdownDividerColorOther: string;
|
|
6736
6886
|
typingIndicatorColor: string;
|
|
6737
6887
|
dateSeparatorColor: string;
|
|
6738
6888
|
dateSeparatorBackgroundColor: string;
|
|
@@ -7507,6 +7657,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7507
7657
|
serviceMessageTextColor: string;
|
|
7508
7658
|
serviceMessageBackgroundColor: string;
|
|
7509
7659
|
messageTitleColor: string;
|
|
7660
|
+
markdownQuoteBorderColorOwn: string;
|
|
7661
|
+
markdownQuoteBorderColorOther: string;
|
|
7662
|
+
markdownQuoteTextColor: string;
|
|
7663
|
+
markdownQuoteBackgroundColor: string;
|
|
7664
|
+
markdownQuoteMarkerColor: string;
|
|
7665
|
+
markdownDividerColorOwn: string;
|
|
7666
|
+
markdownDividerColorOther: string;
|
|
7667
|
+
markdownH1FontSize: string;
|
|
7668
|
+
markdownH2FontSize: string;
|
|
7669
|
+
markdownH3FontSize: string;
|
|
7670
|
+
markdownTextFontSize: string;
|
|
7510
7671
|
}, {
|
|
7511
7672
|
StatusIcon: import("../../_mixins").Theme<"Icon", {
|
|
7512
7673
|
color: string;
|
|
@@ -7947,7 +8108,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7947
8108
|
} | undefined;
|
|
7948
8109
|
} | undefined;
|
|
7949
8110
|
};
|
|
7950
|
-
}
|
|
8111
|
+
}, {
|
|
7951
8112
|
common: import("../..").ThemeCommonVars;
|
|
7952
8113
|
self: {
|
|
7953
8114
|
backgroundColor: string;
|
|
@@ -7980,6 +8141,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7980
8141
|
inputSuffixColor: string;
|
|
7981
8142
|
unreadNotificationBackgroundColor: string;
|
|
7982
8143
|
unreadNotificationTextColor: string;
|
|
8144
|
+
markdownQuoteBorderColorOwn: string;
|
|
8145
|
+
markdownQuoteBorderColorOther: string;
|
|
8146
|
+
markdownQuoteTextColor: string;
|
|
8147
|
+
markdownQuoteBackgroundColor: string;
|
|
8148
|
+
markdownQuoteMarkerColor: string;
|
|
8149
|
+
markdownDividerColorOwn: string;
|
|
8150
|
+
markdownDividerColorOther: string;
|
|
7983
8151
|
typingIndicatorColor: string;
|
|
7984
8152
|
dateSeparatorColor: string;
|
|
7985
8153
|
dateSeparatorBackgroundColor: string;
|
|
@@ -8754,6 +8922,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
8754
8922
|
serviceMessageTextColor: string;
|
|
8755
8923
|
serviceMessageBackgroundColor: string;
|
|
8756
8924
|
messageTitleColor: string;
|
|
8925
|
+
markdownQuoteBorderColorOwn: string;
|
|
8926
|
+
markdownQuoteBorderColorOther: string;
|
|
8927
|
+
markdownQuoteTextColor: string;
|
|
8928
|
+
markdownQuoteBackgroundColor: string;
|
|
8929
|
+
markdownQuoteMarkerColor: string;
|
|
8930
|
+
markdownDividerColorOwn: string;
|
|
8931
|
+
markdownDividerColorOther: string;
|
|
8932
|
+
markdownH1FontSize: string;
|
|
8933
|
+
markdownH2FontSize: string;
|
|
8934
|
+
markdownH3FontSize: string;
|
|
8935
|
+
markdownTextFontSize: string;
|
|
8757
8936
|
}, {
|
|
8758
8937
|
StatusIcon: import("../../_mixins").Theme<"Icon", {
|
|
8759
8938
|
color: string;
|
|
@@ -9323,6 +9502,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
9323
9502
|
readonly type: StringConstructor;
|
|
9324
9503
|
readonly default: undefined;
|
|
9325
9504
|
};
|
|
9505
|
+
readonly markdown: {
|
|
9506
|
+
readonly type: BooleanConstructor;
|
|
9507
|
+
readonly default: true;
|
|
9508
|
+
};
|
|
9509
|
+
readonly markdownOptions: {
|
|
9510
|
+
readonly type: PropType<MarkdownOptions>;
|
|
9511
|
+
readonly default: undefined;
|
|
9512
|
+
};
|
|
9326
9513
|
readonly bubbleActions: {
|
|
9327
9514
|
readonly type: PropType<ChatBubbleAction[]>;
|
|
9328
9515
|
readonly default: undefined;
|
|
@@ -9402,6 +9589,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
9402
9589
|
inputSuffixColor: string;
|
|
9403
9590
|
unreadNotificationBackgroundColor: string;
|
|
9404
9591
|
unreadNotificationTextColor: string;
|
|
9592
|
+
markdownQuoteBorderColorOwn: string;
|
|
9593
|
+
markdownQuoteBorderColorOther: string;
|
|
9594
|
+
markdownQuoteTextColor: string;
|
|
9595
|
+
markdownQuoteBackgroundColor: string;
|
|
9596
|
+
markdownQuoteMarkerColor: string;
|
|
9597
|
+
markdownDividerColorOwn: string;
|
|
9598
|
+
markdownDividerColorOther: string;
|
|
9405
9599
|
typingIndicatorColor: string;
|
|
9406
9600
|
dateSeparatorColor: string;
|
|
9407
9601
|
dateSeparatorBackgroundColor: string;
|
|
@@ -10175,6 +10369,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10175
10369
|
serviceMessageTextColor: string;
|
|
10176
10370
|
serviceMessageBackgroundColor: string;
|
|
10177
10371
|
messageTitleColor: string;
|
|
10372
|
+
markdownQuoteBorderColorOwn: string;
|
|
10373
|
+
markdownQuoteBorderColorOther: string;
|
|
10374
|
+
markdownQuoteTextColor: string;
|
|
10375
|
+
markdownQuoteBackgroundColor: string;
|
|
10376
|
+
markdownQuoteMarkerColor: string;
|
|
10377
|
+
markdownDividerColorOwn: string;
|
|
10378
|
+
markdownDividerColorOther: string;
|
|
10379
|
+
markdownH1FontSize: string;
|
|
10380
|
+
markdownH2FontSize: string;
|
|
10381
|
+
markdownH3FontSize: string;
|
|
10382
|
+
markdownTextFontSize: string;
|
|
10178
10383
|
}, {
|
|
10179
10384
|
StatusIcon: import("../../_mixins").Theme<"Icon", {
|
|
10180
10385
|
color: string;
|
|
@@ -10257,6 +10462,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10257
10462
|
inputSuffixColor: string;
|
|
10258
10463
|
unreadNotificationBackgroundColor: string;
|
|
10259
10464
|
unreadNotificationTextColor: string;
|
|
10465
|
+
markdownQuoteBorderColorOwn: string;
|
|
10466
|
+
markdownQuoteBorderColorOther: string;
|
|
10467
|
+
markdownQuoteTextColor: string;
|
|
10468
|
+
markdownQuoteBackgroundColor: string;
|
|
10469
|
+
markdownQuoteMarkerColor: string;
|
|
10470
|
+
markdownDividerColorOwn: string;
|
|
10471
|
+
markdownDividerColorOther: string;
|
|
10260
10472
|
typingIndicatorColor: string;
|
|
10261
10473
|
dateSeparatorColor: string;
|
|
10262
10474
|
dateSeparatorBackgroundColor: string;
|
|
@@ -11030,6 +11242,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
11030
11242
|
serviceMessageTextColor: string;
|
|
11031
11243
|
serviceMessageBackgroundColor: string;
|
|
11032
11244
|
messageTitleColor: string;
|
|
11245
|
+
markdownQuoteBorderColorOwn: string;
|
|
11246
|
+
markdownQuoteBorderColorOther: string;
|
|
11247
|
+
markdownQuoteTextColor: string;
|
|
11248
|
+
markdownQuoteBackgroundColor: string;
|
|
11249
|
+
markdownQuoteMarkerColor: string;
|
|
11250
|
+
markdownDividerColorOwn: string;
|
|
11251
|
+
markdownDividerColorOther: string;
|
|
11252
|
+
markdownH1FontSize: string;
|
|
11253
|
+
markdownH2FontSize: string;
|
|
11254
|
+
markdownH3FontSize: string;
|
|
11255
|
+
markdownTextFontSize: string;
|
|
11033
11256
|
}, {
|
|
11034
11257
|
StatusIcon: import("../../_mixins").Theme<"Icon", {
|
|
11035
11258
|
color: string;
|
|
@@ -11112,6 +11335,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
11112
11335
|
inputSuffixColor: string;
|
|
11113
11336
|
unreadNotificationBackgroundColor: string;
|
|
11114
11337
|
unreadNotificationTextColor: string;
|
|
11338
|
+
markdownQuoteBorderColorOwn: string;
|
|
11339
|
+
markdownQuoteBorderColorOther: string;
|
|
11340
|
+
markdownQuoteTextColor: string;
|
|
11341
|
+
markdownQuoteBackgroundColor: string;
|
|
11342
|
+
markdownQuoteMarkerColor: string;
|
|
11343
|
+
markdownDividerColorOwn: string;
|
|
11344
|
+
markdownDividerColorOther: string;
|
|
11115
11345
|
typingIndicatorColor: string;
|
|
11116
11346
|
dateSeparatorColor: string;
|
|
11117
11347
|
dateSeparatorBackgroundColor: string;
|
|
@@ -11885,6 +12115,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
11885
12115
|
serviceMessageTextColor: string;
|
|
11886
12116
|
serviceMessageBackgroundColor: string;
|
|
11887
12117
|
messageTitleColor: string;
|
|
12118
|
+
markdownQuoteBorderColorOwn: string;
|
|
12119
|
+
markdownQuoteBorderColorOther: string;
|
|
12120
|
+
markdownQuoteTextColor: string;
|
|
12121
|
+
markdownQuoteBackgroundColor: string;
|
|
12122
|
+
markdownQuoteMarkerColor: string;
|
|
12123
|
+
markdownDividerColorOwn: string;
|
|
12124
|
+
markdownDividerColorOther: string;
|
|
12125
|
+
markdownH1FontSize: string;
|
|
12126
|
+
markdownH2FontSize: string;
|
|
12127
|
+
markdownH3FontSize: string;
|
|
12128
|
+
markdownTextFontSize: string;
|
|
11888
12129
|
}, {
|
|
11889
12130
|
StatusIcon: import("../../_mixins").Theme<"Icon", {
|
|
11890
12131
|
color: string;
|
|
@@ -11945,6 +12186,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
11945
12186
|
readonly shareButtonTooltip: string;
|
|
11946
12187
|
readonly profileButtonTooltip: string;
|
|
11947
12188
|
readonly unreadNotificationText: string;
|
|
12189
|
+
readonly markdown: boolean;
|
|
12190
|
+
readonly markdownOptions: MarkdownOptions;
|
|
11948
12191
|
readonly onAttachmentDownload: OnAttachmentDownload;
|
|
11949
12192
|
readonly inputValue: string;
|
|
11950
12193
|
readonly messages: ChatMessageData[];
|
|
@@ -11971,10 +12214,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
11971
12214
|
readonly onFooterInputChange: (value: string, chatId: ChatId) => void;
|
|
11972
12215
|
readonly onMessagesScrollToTop: () => void;
|
|
11973
12216
|
readonly onMessagesScrollToBottom: () => void;
|
|
11974
|
-
readonly
|
|
12217
|
+
readonly 'onUpdate:inputValue': (value: string) => void;
|
|
11975
12218
|
readonly selectedChat: ChatListItemData;
|
|
12219
|
+
readonly loadingCount: number;
|
|
11976
12220
|
readonly showAttachButton: boolean;
|
|
11977
12221
|
readonly onMessageSend: OnMessageSend;
|
|
11978
|
-
readonly 'onUpdate:inputValue': (value: string) => void;
|
|
11979
12222
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11980
12223
|
export default _default;
|
|
@@ -37,6 +37,7 @@ import { computed, defineComponent, Fragment, h, inject, nextTick, onMounted, pr
|
|
|
37
37
|
import { ArrowHookUpRight, AttachIcon, CloseIcon, PersonNote, SendFilled } from "../../_internal/icons/index.mjs";
|
|
38
38
|
import { useConfig, useLocale, useTheme, useThemeClass } from "../../_mixins/index.mjs";
|
|
39
39
|
import { resolveSlot } from "../../_utils/index.mjs";
|
|
40
|
+
import { renderMarkdown } from "../../_utils/markdown/index.mjs";
|
|
40
41
|
import { UButton } from "../../button/index.mjs";
|
|
41
42
|
import { UFlex } from "../../flex/index.mjs";
|
|
42
43
|
import { UIcon } from "../../icon/index.mjs";
|
|
@@ -160,6 +161,14 @@ export const chatMainAreaProps = Object.assign(Object.assign({}, useTheme.props)
|
|
|
160
161
|
type: String,
|
|
161
162
|
default: undefined
|
|
162
163
|
},
|
|
164
|
+
markdown: {
|
|
165
|
+
type: Boolean,
|
|
166
|
+
default: true
|
|
167
|
+
},
|
|
168
|
+
markdownOptions: {
|
|
169
|
+
type: Object,
|
|
170
|
+
default: undefined
|
|
171
|
+
},
|
|
163
172
|
bubbleActions: {
|
|
164
173
|
type: Array,
|
|
165
174
|
default: undefined
|
|
@@ -215,7 +224,7 @@ export default defineComponent({
|
|
|
215
224
|
setup(props, {
|
|
216
225
|
slots
|
|
217
226
|
}) {
|
|
218
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18;
|
|
227
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20;
|
|
219
228
|
const UChat = inject(chatInjectionKey, null);
|
|
220
229
|
const isStandalone = !UChat;
|
|
221
230
|
const {
|
|
@@ -289,24 +298,26 @@ export default defineComponent({
|
|
|
289
298
|
const editMessageIdRef = (_5 = UChat === null || UChat === void 0 ? void 0 : UChat.editMessageIdRef) !== null && _5 !== void 0 ? _5 : ref(null);
|
|
290
299
|
const startEditingMessageRef = (_6 = UChat === null || UChat === void 0 ? void 0 : UChat.startEditingMessage) !== null && _6 !== void 0 ? _6 : ref();
|
|
291
300
|
const bubbleActionsRef = (_7 = UChat === null || UChat === void 0 ? void 0 : UChat.bubbleActionsRef) !== null && _7 !== void 0 ? _7 : toRef(props, 'bubbleActions');
|
|
292
|
-
const
|
|
301
|
+
const markdownRef = (_8 = UChat === null || UChat === void 0 ? void 0 : UChat.markdownRef) !== null && _8 !== void 0 ? _8 : toRef(props, 'markdown');
|
|
302
|
+
const markdownOptionsRef = (_9 = UChat === null || UChat === void 0 ? void 0 : UChat.markdownOptionsRef) !== null && _9 !== void 0 ? _9 : toRef(props, 'markdownOptions');
|
|
303
|
+
const handleMessageSend = (_10 = UChat === null || UChat === void 0 ? void 0 : UChat.handleMessageSend) !== null && _10 !== void 0 ? _10 : (content, attachments) => {
|
|
293
304
|
var _a;
|
|
294
305
|
return (_a = props.onMessageSend) === null || _a === void 0 ? void 0 : _a.call(props, content, attachments);
|
|
295
306
|
};
|
|
296
|
-
const handleMessageRetry = (
|
|
307
|
+
const handleMessageRetry = (_11 = UChat === null || UChat === void 0 ? void 0 : UChat.handleMessageRetry) !== null && _11 !== void 0 ? _11 : message => {
|
|
297
308
|
var _a;
|
|
298
309
|
return (_a = props.onMessageRetry) === null || _a === void 0 ? void 0 : _a.call(props, message);
|
|
299
310
|
};
|
|
300
|
-
const handleFooterInputChange = (
|
|
311
|
+
const handleFooterInputChange = (_12 = UChat === null || UChat === void 0 ? void 0 : UChat.handleFooterInputChange) !== null && _12 !== void 0 ? _12 : (value, chatId) => {
|
|
301
312
|
var _a;
|
|
302
313
|
return (_a = props.onFooterInputChange) === null || _a === void 0 ? void 0 : _a.call(props, value, chatId);
|
|
303
314
|
};
|
|
304
|
-
const onAttachmentUpload = (
|
|
305
|
-
const onChatClose = (
|
|
306
|
-
const onChatShare = (
|
|
307
|
-
const onUserProfile = (
|
|
308
|
-
const onMessagesScrollToTop = (
|
|
309
|
-
const onMessagesScrollToBottom = (
|
|
315
|
+
const onAttachmentUpload = (_13 = UChat === null || UChat === void 0 ? void 0 : UChat.onAttachmentUpload) !== null && _13 !== void 0 ? _13 : toRef(props, 'onAttachmentUpload');
|
|
316
|
+
const onChatClose = (_14 = UChat === null || UChat === void 0 ? void 0 : UChat.onChatClose) !== null && _14 !== void 0 ? _14 : toRef(props, 'onChatClose');
|
|
317
|
+
const onChatShare = (_15 = UChat === null || UChat === void 0 ? void 0 : UChat.onChatShare) !== null && _15 !== void 0 ? _15 : toRef(props, 'onChatShare');
|
|
318
|
+
const onUserProfile = (_16 = UChat === null || UChat === void 0 ? void 0 : UChat.onUserProfile) !== null && _16 !== void 0 ? _16 : toRef(props, 'onUserProfile');
|
|
319
|
+
const onMessagesScrollToTop = (_17 = UChat === null || UChat === void 0 ? void 0 : UChat.onMessagesScrollToTop) !== null && _17 !== void 0 ? _17 : toRef(props, 'onMessagesScrollToTop');
|
|
320
|
+
const onMessagesScrollToBottom = (_18 = UChat === null || UChat === void 0 ? void 0 : UChat.onMessagesScrollToBottom) !== null && _18 !== void 0 ? _18 : toRef(props, 'onMessagesScrollToBottom');
|
|
310
321
|
const cssVarsRef = computed(() => {
|
|
311
322
|
const {
|
|
312
323
|
common: {
|
|
@@ -387,8 +398,8 @@ export default defineComponent({
|
|
|
387
398
|
const themeClassHandle = useThemeClass('chat-main-area', computed(() => ''), cssVarsRef, props);
|
|
388
399
|
const messagesBodyRef = ref();
|
|
389
400
|
const inputRef = ref();
|
|
390
|
-
const uncontrolledInputValueRef = ref((
|
|
391
|
-
const handleInputValueChange = (
|
|
401
|
+
const uncontrolledInputValueRef = ref((_19 = props.inputValue) !== null && _19 !== void 0 ? _19 : '');
|
|
402
|
+
const handleInputValueChange = (_20 = UChat === null || UChat === void 0 ? void 0 : UChat.handleInputValueChange) !== null && _20 !== void 0 ? _20 : value => {
|
|
392
403
|
var _a;
|
|
393
404
|
uncontrolledInputValueRef.value = value;
|
|
394
405
|
(_a = props['onUpdate:inputValue']) === null || _a === void 0 ? void 0 : _a.call(props, value);
|
|
@@ -676,6 +687,8 @@ export default defineComponent({
|
|
|
676
687
|
showUnreadNotification: showUnreadNotification.value,
|
|
677
688
|
unreadNotificationText: unreadNotificationTextRef.value,
|
|
678
689
|
unreadNotificationCount: unreadCountOnOpen.value,
|
|
690
|
+
markdown: markdownRef.value,
|
|
691
|
+
markdownOptions: markdownOptionsRef.value,
|
|
679
692
|
onMessageRetry: handleMessageRetry
|
|
680
693
|
}, {
|
|
681
694
|
messageAttachment: slots.messageAttachment,
|
|
@@ -771,7 +784,8 @@ export default defineComponent({
|
|
|
771
784
|
}
|
|
772
785
|
return result;
|
|
773
786
|
})() : undefined;
|
|
774
|
-
|
|
787
|
+
const content = props.markdown && !renderMarkdown(inputValue.value).length ? '' : inputValue.value;
|
|
788
|
+
handleMessageSend(content, attachments);
|
|
775
789
|
inputValue.value = '';
|
|
776
790
|
attachmentFileList.value = [];
|
|
777
791
|
chatInputs.value[selectedChatRef.value.id] = '';
|