@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.
Files changed (108) hide show
  1. package/dist/index.js +5997 -65
  2. package/dist/index.mjs +5997 -65
  3. package/dist/index.prod.js +4 -2
  4. package/dist/index.prod.mjs +4 -2
  5. package/es/_utils/markdown/constants.d.ts +27 -0
  6. package/es/_utils/markdown/constants.mjs +26 -0
  7. package/es/_utils/markdown/create-markdown-renderer.d.ts +3 -0
  8. package/es/_utils/markdown/create-markdown-renderer.mjs +65 -0
  9. package/es/_utils/markdown/index.d.ts +2 -0
  10. package/es/_utils/markdown/index.mjs +1 -0
  11. package/es/_utils/markdown/interface.d.ts +14 -0
  12. package/es/_utils/markdown/interface.mjs +7 -0
  13. package/es/_utils/markdown/render-markdown.d.ts +3 -0
  14. package/es/_utils/markdown/render-markdown.mjs +31 -0
  15. package/es/_utils/markdown/rulers/clamp-heading.d.ts +2 -0
  16. package/es/_utils/markdown/rulers/clamp-heading.mjs +25 -0
  17. package/es/_utils/markdown/rulers/equals-divider.d.ts +2 -0
  18. package/es/_utils/markdown/rulers/equals-divider.mjs +19 -0
  19. package/es/_utils/markdown/rulers/prune-empty-blocks.d.ts +2 -0
  20. package/es/_utils/markdown/rulers/prune-empty-blocks.mjs +31 -0
  21. package/es/_utils/markdown/rulers/strikethrough.d.ts +3 -0
  22. package/es/_utils/markdown/rulers/strikethrough.mjs +38 -0
  23. package/es/_utils/markdown/rulers/strip-html.d.ts +2 -0
  24. package/es/_utils/markdown/rulers/strip-html.mjs +7 -0
  25. package/es/chat/src/Chat.d.ts +639 -23
  26. package/es/chat/src/Chat.mjs +2 -0
  27. package/es/chat/src/ChatListItems.d.ts +220 -4
  28. package/es/chat/src/ChatListItems.mjs +3 -2
  29. package/es/chat/src/ChatMainArea.d.ts +248 -5
  30. package/es/chat/src/ChatMainArea.mjs +27 -13
  31. package/es/chat/src/ChatMessages.d.ts +246 -3
  32. package/es/chat/src/ChatMessages.mjs +22 -2
  33. package/es/chat/src/ChatParts/Sidebar.d.ts +36 -0
  34. package/es/chat/src/interface.d.ts +68 -0
  35. package/es/chat/src/interface.mjs +8 -0
  36. package/es/chat/styles/dark.d.ts +18 -0
  37. package/es/chat/styles/light.d.ts +25 -0
  38. package/es/chat/styles/light.mjs +9 -1
  39. package/es/components.d.ts +1640 -418
  40. package/es/data-table/src/HeaderButton/FilterButton.d.ts +1 -1
  41. package/es/data-table/src/TableParts/Header.mjs +1 -1
  42. package/es/data-table/src/use-sorter.d.ts +2 -5
  43. package/es/data-table/src/use-table-data.d.ts +1 -4
  44. package/es/layout/src/LayoutSider.d.ts +1 -1
  45. package/es/message-bubble/index.d.ts +1 -0
  46. package/es/message-bubble/src/MessageBubble.d.ts +90 -6
  47. package/es/message-bubble/src/MessageBubble.mjs +53 -7
  48. package/es/message-bubble/src/interface.d.ts +42 -0
  49. package/es/message-bubble/src/interface.mjs +8 -0
  50. package/es/message-bubble/src/styles/index.cssr.mjs +35 -1
  51. package/es/message-bubble/styles/dark.d.ts +11 -0
  52. package/es/message-bubble/styles/light.d.ts +22 -0
  53. package/es/message-bubble/styles/light.mjs +14 -1
  54. package/es/version.d.ts +1 -1
  55. package/es/version.mjs +1 -1
  56. package/lib/_utils/markdown/constants.d.ts +27 -0
  57. package/lib/_utils/markdown/constants.js +55 -0
  58. package/lib/_utils/markdown/create-markdown-renderer.d.ts +3 -0
  59. package/lib/_utils/markdown/create-markdown-renderer.js +84 -0
  60. package/lib/_utils/markdown/index.d.ts +2 -0
  61. package/lib/_utils/markdown/index.js +6 -0
  62. package/lib/_utils/markdown/interface.d.ts +14 -0
  63. package/lib/_utils/markdown/interface.js +10 -0
  64. package/lib/_utils/markdown/render-markdown.d.ts +3 -0
  65. package/lib/_utils/markdown/render-markdown.js +38 -0
  66. package/lib/_utils/markdown/rulers/clamp-heading.d.ts +2 -0
  67. package/lib/_utils/markdown/rulers/clamp-heading.js +30 -0
  68. package/lib/_utils/markdown/rulers/equals-divider.d.ts +2 -0
  69. package/lib/_utils/markdown/rulers/equals-divider.js +28 -0
  70. package/lib/_utils/markdown/rulers/prune-empty-blocks.d.ts +2 -0
  71. package/lib/_utils/markdown/rulers/prune-empty-blocks.js +40 -0
  72. package/lib/_utils/markdown/rulers/strikethrough.d.ts +3 -0
  73. package/lib/_utils/markdown/rulers/strikethrough.js +43 -0
  74. package/lib/_utils/markdown/rulers/strip-html.d.ts +2 -0
  75. package/lib/_utils/markdown/rulers/strip-html.js +15 -0
  76. package/lib/chat/src/Chat.d.ts +639 -23
  77. package/lib/chat/src/Chat.js +2 -0
  78. package/lib/chat/src/ChatListItems.d.ts +220 -4
  79. package/lib/chat/src/ChatListItems.js +7 -2
  80. package/lib/chat/src/ChatMainArea.d.ts +248 -5
  81. package/lib/chat/src/ChatMainArea.js +26 -14
  82. package/lib/chat/src/ChatMessages.d.ts +246 -3
  83. package/lib/chat/src/ChatMessages.js +11 -4
  84. package/lib/chat/src/ChatParts/Sidebar.d.ts +36 -0
  85. package/lib/chat/src/interface.d.ts +68 -0
  86. package/lib/chat/src/interface.js +6 -0
  87. package/lib/chat/styles/dark.d.ts +18 -0
  88. package/lib/chat/styles/light.d.ts +25 -0
  89. package/lib/chat/styles/light.js +8 -1
  90. package/lib/components.d.ts +1258 -36
  91. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +1 -1
  92. package/lib/data-table/src/TableParts/Header.js +1 -1
  93. package/lib/data-table/src/use-sorter.d.ts +2 -5
  94. package/lib/data-table/src/use-table-data.d.ts +1 -4
  95. package/lib/layout/src/LayoutSider.d.ts +1 -1
  96. package/lib/message-bubble/index.d.ts +1 -0
  97. package/lib/message-bubble/src/MessageBubble.d.ts +90 -6
  98. package/lib/message-bubble/src/MessageBubble.js +41 -7
  99. package/lib/message-bubble/src/interface.d.ts +42 -0
  100. package/lib/message-bubble/src/interface.js +6 -0
  101. package/lib/message-bubble/src/styles/index.cssr.js +35 -1
  102. package/lib/message-bubble/styles/dark.d.ts +11 -0
  103. package/lib/message-bubble/styles/light.d.ts +22 -0
  104. package/lib/message-bubble/styles/light.js +13 -2
  105. package/lib/version.d.ts +1 -1
  106. package/lib/version.js +1 -1
  107. package/package.json +2 -1
  108. 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: Ref<{
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
- }> | import("vue").ComputedRef<{
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 loadingCount: number;
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;
@@ -28,6 +28,7 @@ const vue_1 = require("vue");
28
28
  const icons_1 = require("../../_internal/icons");
29
29
  const _mixins_1 = require("../../_mixins");
30
30
  const _utils_1 = require("../../_utils");
31
+ const markdown_1 = require("../../_utils/markdown");
31
32
  const button_1 = require("../../button");
32
33
  const flex_1 = require("../../flex");
33
34
  const icon_1 = require("../../icon");
@@ -123,6 +124,12 @@ exports.chatMainAreaProps = Object.assign(Object.assign({}, _mixins_1.useTheme.p
123
124
  }, unreadNotificationText: {
124
125
  type: String,
125
126
  default: undefined
127
+ }, markdown: {
128
+ type: Boolean,
129
+ default: true
130
+ }, markdownOptions: {
131
+ type: Object,
132
+ default: undefined
126
133
  }, bubbleActions: {
127
134
  type: Array,
128
135
  default: undefined
@@ -164,7 +171,7 @@ exports.default = (0, vue_1.defineComponent)({
164
171
  name: 'ChatMainArea',
165
172
  props: exports.chatMainAreaProps,
166
173
  setup(props, { slots }) {
167
- 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;
174
+ 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;
168
175
  const UChat = (0, vue_1.inject)(interface_1.chatInjectionKey, null);
169
176
  const isStandalone = !UChat;
170
177
  const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
@@ -209,15 +216,17 @@ exports.default = (0, vue_1.defineComponent)({
209
216
  const editMessageIdRef = (_5 = UChat === null || UChat === void 0 ? void 0 : UChat.editMessageIdRef) !== null && _5 !== void 0 ? _5 : (0, vue_1.ref)(null);
210
217
  const startEditingMessageRef = (_6 = UChat === null || UChat === void 0 ? void 0 : UChat.startEditingMessage) !== null && _6 !== void 0 ? _6 : (0, vue_1.ref)();
211
218
  const bubbleActionsRef = (_7 = UChat === null || UChat === void 0 ? void 0 : UChat.bubbleActionsRef) !== null && _7 !== void 0 ? _7 : (0, vue_1.toRef)(props, 'bubbleActions');
212
- const handleMessageSend = (_8 = UChat === null || UChat === void 0 ? void 0 : UChat.handleMessageSend) !== null && _8 !== void 0 ? _8 : ((content, attachments) => { var _a; return (_a = props.onMessageSend) === null || _a === void 0 ? void 0 : _a.call(props, content, attachments); });
213
- const handleMessageRetry = (_9 = UChat === null || UChat === void 0 ? void 0 : UChat.handleMessageRetry) !== null && _9 !== void 0 ? _9 : ((message) => { var _a; return (_a = props.onMessageRetry) === null || _a === void 0 ? void 0 : _a.call(props, message); });
214
- const handleFooterInputChange = (_10 = UChat === null || UChat === void 0 ? void 0 : UChat.handleFooterInputChange) !== null && _10 !== void 0 ? _10 : ((value, chatId) => { var _a; return (_a = props.onFooterInputChange) === null || _a === void 0 ? void 0 : _a.call(props, value, chatId); });
215
- const onAttachmentUpload = (_11 = UChat === null || UChat === void 0 ? void 0 : UChat.onAttachmentUpload) !== null && _11 !== void 0 ? _11 : (0, vue_1.toRef)(props, 'onAttachmentUpload');
216
- const onChatClose = (_12 = UChat === null || UChat === void 0 ? void 0 : UChat.onChatClose) !== null && _12 !== void 0 ? _12 : (0, vue_1.toRef)(props, 'onChatClose');
217
- const onChatShare = (_13 = UChat === null || UChat === void 0 ? void 0 : UChat.onChatShare) !== null && _13 !== void 0 ? _13 : (0, vue_1.toRef)(props, 'onChatShare');
218
- const onUserProfile = (_14 = UChat === null || UChat === void 0 ? void 0 : UChat.onUserProfile) !== null && _14 !== void 0 ? _14 : (0, vue_1.toRef)(props, 'onUserProfile');
219
- const onMessagesScrollToTop = (_15 = UChat === null || UChat === void 0 ? void 0 : UChat.onMessagesScrollToTop) !== null && _15 !== void 0 ? _15 : (0, vue_1.toRef)(props, 'onMessagesScrollToTop');
220
- const onMessagesScrollToBottom = (_16 = UChat === null || UChat === void 0 ? void 0 : UChat.onMessagesScrollToBottom) !== null && _16 !== void 0 ? _16 : (0, vue_1.toRef)(props, 'onMessagesScrollToBottom');
219
+ const markdownRef = (_8 = UChat === null || UChat === void 0 ? void 0 : UChat.markdownRef) !== null && _8 !== void 0 ? _8 : (0, vue_1.toRef)(props, 'markdown');
220
+ const markdownOptionsRef = (_9 = UChat === null || UChat === void 0 ? void 0 : UChat.markdownOptionsRef) !== null && _9 !== void 0 ? _9 : (0, vue_1.toRef)(props, 'markdownOptions');
221
+ const handleMessageSend = (_10 = UChat === null || UChat === void 0 ? void 0 : UChat.handleMessageSend) !== null && _10 !== void 0 ? _10 : ((content, attachments) => { var _a; return (_a = props.onMessageSend) === null || _a === void 0 ? void 0 : _a.call(props, content, attachments); });
222
+ const handleMessageRetry = (_11 = UChat === null || UChat === void 0 ? void 0 : UChat.handleMessageRetry) !== null && _11 !== void 0 ? _11 : ((message) => { var _a; return (_a = props.onMessageRetry) === null || _a === void 0 ? void 0 : _a.call(props, message); });
223
+ const handleFooterInputChange = (_12 = UChat === null || UChat === void 0 ? void 0 : UChat.handleFooterInputChange) !== null && _12 !== void 0 ? _12 : ((value, chatId) => { var _a; return (_a = props.onFooterInputChange) === null || _a === void 0 ? void 0 : _a.call(props, value, chatId); });
224
+ const onAttachmentUpload = (_13 = UChat === null || UChat === void 0 ? void 0 : UChat.onAttachmentUpload) !== null && _13 !== void 0 ? _13 : (0, vue_1.toRef)(props, 'onAttachmentUpload');
225
+ const onChatClose = (_14 = UChat === null || UChat === void 0 ? void 0 : UChat.onChatClose) !== null && _14 !== void 0 ? _14 : (0, vue_1.toRef)(props, 'onChatClose');
226
+ const onChatShare = (_15 = UChat === null || UChat === void 0 ? void 0 : UChat.onChatShare) !== null && _15 !== void 0 ? _15 : (0, vue_1.toRef)(props, 'onChatShare');
227
+ const onUserProfile = (_16 = UChat === null || UChat === void 0 ? void 0 : UChat.onUserProfile) !== null && _16 !== void 0 ? _16 : (0, vue_1.toRef)(props, 'onUserProfile');
228
+ const onMessagesScrollToTop = (_17 = UChat === null || UChat === void 0 ? void 0 : UChat.onMessagesScrollToTop) !== null && _17 !== void 0 ? _17 : (0, vue_1.toRef)(props, 'onMessagesScrollToTop');
229
+ const onMessagesScrollToBottom = (_18 = UChat === null || UChat === void 0 ? void 0 : UChat.onMessagesScrollToBottom) !== null && _18 !== void 0 ? _18 : (0, vue_1.toRef)(props, 'onMessagesScrollToBottom');
221
230
  const cssVarsRef = (0, vue_1.computed)(() => {
222
231
  const { common: { cubicBezierEaseInOut, brandPrimary500, staticGreen, staticRed, textPrimary, textSecondary, textTertiary }, self: { backgroundColor, borderColor, sidebarItemSubtitleColor, mainBackgroundColor, headerBackgroundColor, headerBorderColor, headerTitleColor, messageBubbleBackgroundColorOwn, messageBubbleBackgroundColorOther, messageBubbleTextColorOwn, messageBubbleTextColorOther, messageTimeColor, messageStatusColor, attachmentBackgroundColorOwn, attachmentBackgroundColorOther, footerBackgroundColor, footerBorderColor, inputBackgroundColor, inputBorderColor, inputSuffixColor, unreadNotificationBackgroundColor, unreadNotificationTextColor, typingIndicatorColor, dateSeparatorColor, dateSeparatorBackgroundColor, borderRadius, errorColor } } = mergedThemeRef.value;
223
232
  return {
@@ -259,8 +268,8 @@ exports.default = (0, vue_1.defineComponent)({
259
268
  const themeClassHandle = (0, _mixins_1.useThemeClass)('chat-main-area', (0, vue_1.computed)(() => ''), cssVarsRef, props);
260
269
  const messagesBodyRef = (0, vue_1.ref)();
261
270
  const inputRef = (0, vue_1.ref)();
262
- const uncontrolledInputValueRef = (0, vue_1.ref)((_17 = props.inputValue) !== null && _17 !== void 0 ? _17 : '');
263
- const handleInputValueChange = (_18 = UChat === null || UChat === void 0 ? void 0 : UChat.handleInputValueChange) !== null && _18 !== void 0 ? _18 : ((value) => {
271
+ const uncontrolledInputValueRef = (0, vue_1.ref)((_19 = props.inputValue) !== null && _19 !== void 0 ? _19 : '');
272
+ const handleInputValueChange = (_20 = UChat === null || UChat === void 0 ? void 0 : UChat.handleInputValueChange) !== null && _20 !== void 0 ? _20 : ((value) => {
264
273
  var _a;
265
274
  uncontrolledInputValueRef.value = value;
266
275
  (_a = props['onUpdate:inputValue']) === null || _a === void 0 ? void 0 : _a.call(props, value);
@@ -483,7 +492,7 @@ exports.default = (0, vue_1.defineComponent)({
483
492
  };
484
493
  const renderMessages = () => {
485
494
  var _a;
486
- return ((0, vue_1.h)(ChatMessages_1.default, { messages: messagesRef.value, loading: messagesLoadingRef.value, loadingCount: messagesLoadingCountRef.value, typingChatIds: typingChatIdsRef.value, selectedChatId: (_a = selectedChatRef.value) === null || _a === void 0 ? void 0 : _a.id, typingText: typingTextRef.value, retryText: retryTextRef.value, uploadProps: messageUploadPropsRef.value, showUnreadNotification: showUnreadNotification.value, unreadNotificationText: unreadNotificationTextRef.value, unreadNotificationCount: unreadCountOnOpen.value, onMessageRetry: handleMessageRetry }, {
495
+ return ((0, vue_1.h)(ChatMessages_1.default, { messages: messagesRef.value, loading: messagesLoadingRef.value, loadingCount: messagesLoadingCountRef.value, typingChatIds: typingChatIdsRef.value, selectedChatId: (_a = selectedChatRef.value) === null || _a === void 0 ? void 0 : _a.id, typingText: typingTextRef.value, retryText: retryTextRef.value, uploadProps: messageUploadPropsRef.value, showUnreadNotification: showUnreadNotification.value, unreadNotificationText: unreadNotificationTextRef.value, unreadNotificationCount: unreadCountOnOpen.value, markdown: markdownRef.value, markdownOptions: markdownOptionsRef.value, onMessageRetry: handleMessageRetry }, {
487
496
  messageAttachment: slots.messageAttachment,
488
497
  messageAttachmentTitle: slots.messageAttachmentTitle,
489
498
  messageAttachmentSubtitle: slots.messageAttachmentSubtitle,
@@ -582,7 +591,10 @@ exports.default = (0, vue_1.defineComponent)({
582
591
  return result;
583
592
  })()
584
593
  : undefined;
585
- handleMessageSend(inputValue.value, attachments);
594
+ const content = props.markdown && !(0, markdown_1.renderMarkdown)(inputValue.value).length
595
+ ? ''
596
+ : inputValue.value;
597
+ handleMessageSend(content, attachments);
586
598
  inputValue.value = '';
587
599
  attachmentFileList.value = [];
588
600
  chatInputs.value[selectedChatRef.value.id] = '';