@uzum-tech/ui 2.3.4 → 2.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/dist/index.js +6368 -441
  2. package/dist/index.mjs +6368 -441
  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 +515 -23
  26. package/es/chat/src/Chat.mjs +2 -0
  27. package/es/chat/src/ChatListItems.d.ts +172 -4
  28. package/es/chat/src/ChatListItems.mjs +3 -2
  29. package/es/chat/src/ChatMainArea.d.ts +200 -5
  30. package/es/chat/src/ChatMainArea.mjs +27 -13
  31. package/es/chat/src/ChatMessages.d.ts +198 -3
  32. package/es/chat/src/ChatMessages.mjs +20 -2
  33. package/es/chat/src/ChatParts/Sidebar.d.ts +28 -0
  34. package/es/chat/src/interface.d.ts +56 -0
  35. package/es/chat/src/interface.mjs +8 -0
  36. package/es/chat/styles/dark.d.ts +14 -0
  37. package/es/chat/styles/light.d.ts +19 -0
  38. package/es/chat/styles/light.mjs +5 -0
  39. package/es/components.d.ts +1452 -456
  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/image/index.d.ts +2 -2
  45. package/es/image/index.mjs +2 -1
  46. package/es/image/src/ImagePreview.d.ts +60 -184
  47. package/es/image/src/ImagePreview.mjs +12 -18
  48. package/es/image/src/interface.d.ts +156 -3
  49. package/es/image/src/interface.mjs +23 -1
  50. package/es/image/src/public-types.d.ts +11 -5
  51. package/es/image/src/styles/index.cssr.mjs +11 -1
  52. package/es/layout/src/LayoutSider.d.ts +1 -1
  53. package/es/message-bubble/index.d.ts +1 -0
  54. package/es/message-bubble/src/MessageBubble.d.ts +78 -6
  55. package/es/message-bubble/src/MessageBubble.mjs +49 -7
  56. package/es/message-bubble/src/interface.d.ts +36 -0
  57. package/es/message-bubble/src/interface.mjs +8 -0
  58. package/es/message-bubble/src/styles/index.cssr.mjs +17 -1
  59. package/es/message-bubble/styles/dark.d.ts +9 -0
  60. package/es/message-bubble/styles/light.d.ts +18 -0
  61. package/es/message-bubble/styles/light.mjs +10 -1
  62. package/es/version.d.ts +1 -1
  63. package/es/version.mjs +1 -1
  64. package/lib/_utils/markdown/constants.d.ts +27 -0
  65. package/lib/_utils/markdown/constants.js +55 -0
  66. package/lib/_utils/markdown/create-markdown-renderer.d.ts +3 -0
  67. package/lib/_utils/markdown/create-markdown-renderer.js +84 -0
  68. package/lib/_utils/markdown/index.d.ts +2 -0
  69. package/lib/_utils/markdown/index.js +6 -0
  70. package/lib/_utils/markdown/interface.d.ts +14 -0
  71. package/lib/_utils/markdown/interface.js +10 -0
  72. package/lib/_utils/markdown/render-markdown.d.ts +3 -0
  73. package/lib/_utils/markdown/render-markdown.js +38 -0
  74. package/lib/_utils/markdown/rulers/clamp-heading.d.ts +2 -0
  75. package/lib/_utils/markdown/rulers/clamp-heading.js +30 -0
  76. package/lib/_utils/markdown/rulers/equals-divider.d.ts +2 -0
  77. package/lib/_utils/markdown/rulers/equals-divider.js +28 -0
  78. package/lib/_utils/markdown/rulers/prune-empty-blocks.d.ts +2 -0
  79. package/lib/_utils/markdown/rulers/prune-empty-blocks.js +40 -0
  80. package/lib/_utils/markdown/rulers/strikethrough.d.ts +3 -0
  81. package/lib/_utils/markdown/rulers/strikethrough.js +43 -0
  82. package/lib/_utils/markdown/rulers/strip-html.d.ts +2 -0
  83. package/lib/_utils/markdown/rulers/strip-html.js +15 -0
  84. package/lib/chat/src/Chat.d.ts +515 -23
  85. package/lib/chat/src/Chat.js +2 -0
  86. package/lib/chat/src/ChatListItems.d.ts +172 -4
  87. package/lib/chat/src/ChatListItems.js +7 -2
  88. package/lib/chat/src/ChatMainArea.d.ts +200 -5
  89. package/lib/chat/src/ChatMainArea.js +26 -14
  90. package/lib/chat/src/ChatMessages.d.ts +198 -3
  91. package/lib/chat/src/ChatMessages.js +11 -4
  92. package/lib/chat/src/ChatParts/Sidebar.d.ts +28 -0
  93. package/lib/chat/src/interface.d.ts +56 -0
  94. package/lib/chat/src/interface.js +6 -0
  95. package/lib/chat/styles/dark.d.ts +14 -0
  96. package/lib/chat/styles/light.d.ts +19 -0
  97. package/lib/chat/styles/light.js +5 -0
  98. package/lib/components.d.ts +1073 -77
  99. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +1 -1
  100. package/lib/data-table/src/TableParts/Header.js +1 -1
  101. package/lib/data-table/src/use-sorter.d.ts +2 -5
  102. package/lib/data-table/src/use-table-data.d.ts +1 -4
  103. package/lib/image/index.d.ts +2 -2
  104. package/lib/image/index.js +3 -2
  105. package/lib/image/src/ImagePreview.d.ts +60 -184
  106. package/lib/image/src/ImagePreview.js +18 -17
  107. package/lib/image/src/interface.d.ts +156 -3
  108. package/lib/image/src/interface.js +12 -1
  109. package/lib/image/src/public-types.d.ts +11 -5
  110. package/lib/image/src/styles/index.cssr.js +11 -1
  111. package/lib/layout/src/LayoutSider.d.ts +1 -1
  112. package/lib/message-bubble/index.d.ts +1 -0
  113. package/lib/message-bubble/src/MessageBubble.d.ts +78 -6
  114. package/lib/message-bubble/src/MessageBubble.js +39 -7
  115. package/lib/message-bubble/src/interface.d.ts +36 -0
  116. package/lib/message-bubble/src/interface.js +6 -0
  117. package/lib/message-bubble/src/styles/index.cssr.js +17 -1
  118. package/lib/message-bubble/styles/dark.d.ts +9 -0
  119. package/lib/message-bubble/styles/light.d.ts +18 -0
  120. package/lib/message-bubble/styles/light.js +10 -1
  121. package/lib/version.d.ts +1 -1
  122. package/lib/version.js +1 -1
  123. package/package.json +2 -1
  124. package/web-types.json +75 -2
@@ -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,11 @@ 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
+ markdownDividerColorOwn: string;
209
+ markdownDividerColorOther: string;
196
210
  typingIndicatorColor: string;
197
211
  dateSeparatorColor: string;
198
212
  dateSeparatorBackgroundColor: string;
@@ -966,6 +980,15 @@ export declare const chatMainAreaProps: {
966
980
  serviceMessageTextColor: string;
967
981
  serviceMessageBackgroundColor: string;
968
982
  messageTitleColor: string;
983
+ markdownQuoteBorderColorOwn: string;
984
+ markdownQuoteBorderColorOther: string;
985
+ markdownQuoteTextColor: string;
986
+ markdownDividerColorOwn: string;
987
+ markdownDividerColorOther: string;
988
+ markdownH1FontSize: string;
989
+ markdownH2FontSize: string;
990
+ markdownH3FontSize: string;
991
+ markdownTextFontSize: string;
969
992
  }, {
970
993
  StatusIcon: import("../../_mixins").Theme<"Icon", {
971
994
  color: string;
@@ -1048,6 +1071,11 @@ export declare const chatMainAreaProps: {
1048
1071
  inputSuffixColor: string;
1049
1072
  unreadNotificationBackgroundColor: string;
1050
1073
  unreadNotificationTextColor: string;
1074
+ markdownQuoteBorderColorOwn: string;
1075
+ markdownQuoteBorderColorOther: string;
1076
+ markdownQuoteTextColor: string;
1077
+ markdownDividerColorOwn: string;
1078
+ markdownDividerColorOther: string;
1051
1079
  typingIndicatorColor: string;
1052
1080
  dateSeparatorColor: string;
1053
1081
  dateSeparatorBackgroundColor: string;
@@ -1821,6 +1849,15 @@ export declare const chatMainAreaProps: {
1821
1849
  serviceMessageTextColor: string;
1822
1850
  serviceMessageBackgroundColor: string;
1823
1851
  messageTitleColor: string;
1852
+ markdownQuoteBorderColorOwn: string;
1853
+ markdownQuoteBorderColorOther: string;
1854
+ markdownQuoteTextColor: string;
1855
+ markdownDividerColorOwn: string;
1856
+ markdownDividerColorOther: string;
1857
+ markdownH1FontSize: string;
1858
+ markdownH2FontSize: string;
1859
+ markdownH3FontSize: string;
1860
+ markdownTextFontSize: string;
1824
1861
  }, {
1825
1862
  StatusIcon: import("../../_mixins").Theme<"Icon", {
1826
1863
  color: string;
@@ -1903,6 +1940,11 @@ export declare const chatMainAreaProps: {
1903
1940
  inputSuffixColor: string;
1904
1941
  unreadNotificationBackgroundColor: string;
1905
1942
  unreadNotificationTextColor: string;
1943
+ markdownQuoteBorderColorOwn: string;
1944
+ markdownQuoteBorderColorOther: string;
1945
+ markdownQuoteTextColor: string;
1946
+ markdownDividerColorOwn: string;
1947
+ markdownDividerColorOther: string;
1906
1948
  typingIndicatorColor: string;
1907
1949
  dateSeparatorColor: string;
1908
1950
  dateSeparatorBackgroundColor: string;
@@ -2676,6 +2718,15 @@ export declare const chatMainAreaProps: {
2676
2718
  serviceMessageTextColor: string;
2677
2719
  serviceMessageBackgroundColor: string;
2678
2720
  messageTitleColor: string;
2721
+ markdownQuoteBorderColorOwn: string;
2722
+ markdownQuoteBorderColorOther: string;
2723
+ markdownQuoteTextColor: string;
2724
+ markdownDividerColorOwn: string;
2725
+ markdownDividerColorOther: string;
2726
+ markdownH1FontSize: string;
2727
+ markdownH2FontSize: string;
2728
+ markdownH3FontSize: string;
2729
+ markdownTextFontSize: string;
2679
2730
  }, {
2680
2731
  StatusIcon: import("../../_mixins").Theme<"Icon", {
2681
2732
  color: string;
@@ -2838,6 +2889,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2838
2889
  readonly type: StringConstructor;
2839
2890
  readonly default: undefined;
2840
2891
  };
2892
+ readonly markdown: {
2893
+ readonly type: BooleanConstructor;
2894
+ readonly default: true;
2895
+ };
2896
+ readonly markdownOptions: {
2897
+ readonly type: PropType<MarkdownOptions>;
2898
+ readonly default: undefined;
2899
+ };
2841
2900
  readonly bubbleActions: {
2842
2901
  readonly type: PropType<ChatBubbleAction[]>;
2843
2902
  readonly default: undefined;
@@ -2917,6 +2976,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2917
2976
  inputSuffixColor: string;
2918
2977
  unreadNotificationBackgroundColor: string;
2919
2978
  unreadNotificationTextColor: string;
2979
+ markdownQuoteBorderColorOwn: string;
2980
+ markdownQuoteBorderColorOther: string;
2981
+ markdownQuoteTextColor: string;
2982
+ markdownDividerColorOwn: string;
2983
+ markdownDividerColorOther: string;
2920
2984
  typingIndicatorColor: string;
2921
2985
  dateSeparatorColor: string;
2922
2986
  dateSeparatorBackgroundColor: string;
@@ -3690,6 +3754,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3690
3754
  serviceMessageTextColor: string;
3691
3755
  serviceMessageBackgroundColor: string;
3692
3756
  messageTitleColor: string;
3757
+ markdownQuoteBorderColorOwn: string;
3758
+ markdownQuoteBorderColorOther: string;
3759
+ markdownQuoteTextColor: string;
3760
+ markdownDividerColorOwn: string;
3761
+ markdownDividerColorOther: string;
3762
+ markdownH1FontSize: string;
3763
+ markdownH2FontSize: string;
3764
+ markdownH3FontSize: string;
3765
+ markdownTextFontSize: string;
3693
3766
  }, {
3694
3767
  StatusIcon: import("../../_mixins").Theme<"Icon", {
3695
3768
  color: string;
@@ -3772,6 +3845,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3772
3845
  inputSuffixColor: string;
3773
3846
  unreadNotificationBackgroundColor: string;
3774
3847
  unreadNotificationTextColor: string;
3848
+ markdownQuoteBorderColorOwn: string;
3849
+ markdownQuoteBorderColorOther: string;
3850
+ markdownQuoteTextColor: string;
3851
+ markdownDividerColorOwn: string;
3852
+ markdownDividerColorOther: string;
3775
3853
  typingIndicatorColor: string;
3776
3854
  dateSeparatorColor: string;
3777
3855
  dateSeparatorBackgroundColor: string;
@@ -4545,6 +4623,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4545
4623
  serviceMessageTextColor: string;
4546
4624
  serviceMessageBackgroundColor: string;
4547
4625
  messageTitleColor: string;
4626
+ markdownQuoteBorderColorOwn: string;
4627
+ markdownQuoteBorderColorOther: string;
4628
+ markdownQuoteTextColor: string;
4629
+ markdownDividerColorOwn: string;
4630
+ markdownDividerColorOther: string;
4631
+ markdownH1FontSize: string;
4632
+ markdownH2FontSize: string;
4633
+ markdownH3FontSize: string;
4634
+ markdownTextFontSize: string;
4548
4635
  }, {
4549
4636
  StatusIcon: import("../../_mixins").Theme<"Icon", {
4550
4637
  color: string;
@@ -4627,6 +4714,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4627
4714
  inputSuffixColor: string;
4628
4715
  unreadNotificationBackgroundColor: string;
4629
4716
  unreadNotificationTextColor: string;
4717
+ markdownQuoteBorderColorOwn: string;
4718
+ markdownQuoteBorderColorOther: string;
4719
+ markdownQuoteTextColor: string;
4720
+ markdownDividerColorOwn: string;
4721
+ markdownDividerColorOther: string;
4630
4722
  typingIndicatorColor: string;
4631
4723
  dateSeparatorColor: string;
4632
4724
  dateSeparatorBackgroundColor: string;
@@ -5400,6 +5492,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
5400
5492
  serviceMessageTextColor: string;
5401
5493
  serviceMessageBackgroundColor: string;
5402
5494
  messageTitleColor: string;
5495
+ markdownQuoteBorderColorOwn: string;
5496
+ markdownQuoteBorderColorOther: string;
5497
+ markdownQuoteTextColor: string;
5498
+ markdownDividerColorOwn: string;
5499
+ markdownDividerColorOther: string;
5500
+ markdownH1FontSize: string;
5501
+ markdownH2FontSize: string;
5502
+ markdownH3FontSize: string;
5503
+ markdownTextFontSize: string;
5403
5504
  }, {
5404
5505
  StatusIcon: import("../../_mixins").Theme<"Icon", {
5405
5506
  color: string;
@@ -5453,7 +5554,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
5453
5554
  }>>>;
5454
5555
  }>, {
5455
5556
  mergedClsPrefix: Ref<string, string>;
5456
- mergedTheme: Ref<{
5557
+ mergedTheme: import("vue").ComputedRef<{
5457
5558
  common: import("../..").ThemeCommonVars;
5458
5559
  self: {
5459
5560
  backgroundColor: string;
@@ -5486,6 +5587,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
5486
5587
  inputSuffixColor: string;
5487
5588
  unreadNotificationBackgroundColor: string;
5488
5589
  unreadNotificationTextColor: string;
5590
+ markdownQuoteBorderColorOwn: string;
5591
+ markdownQuoteBorderColorOther: string;
5592
+ markdownQuoteTextColor: string;
5593
+ markdownDividerColorOwn: string;
5594
+ markdownDividerColorOther: string;
5489
5595
  typingIndicatorColor: string;
5490
5596
  dateSeparatorColor: string;
5491
5597
  dateSeparatorBackgroundColor: string;
@@ -6260,6 +6366,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
6260
6366
  serviceMessageTextColor: string;
6261
6367
  serviceMessageBackgroundColor: string;
6262
6368
  messageTitleColor: string;
6369
+ markdownQuoteBorderColorOwn: string;
6370
+ markdownQuoteBorderColorOther: string;
6371
+ markdownQuoteTextColor: string;
6372
+ markdownDividerColorOwn: string;
6373
+ markdownDividerColorOther: string;
6374
+ markdownH1FontSize: string;
6375
+ markdownH2FontSize: string;
6376
+ markdownH3FontSize: string;
6377
+ markdownTextFontSize: string;
6263
6378
  }, {
6264
6379
  StatusIcon: import("../../_mixins").Theme<"Icon", {
6265
6380
  color: string;
@@ -6700,7 +6815,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
6700
6815
  } | undefined;
6701
6816
  } | undefined;
6702
6817
  };
6703
- }, {
6818
+ }> | Ref<{
6704
6819
  common: import("../..").ThemeCommonVars;
6705
6820
  self: {
6706
6821
  backgroundColor: string;
@@ -6733,6 +6848,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
6733
6848
  inputSuffixColor: string;
6734
6849
  unreadNotificationBackgroundColor: string;
6735
6850
  unreadNotificationTextColor: string;
6851
+ markdownQuoteBorderColorOwn: string;
6852
+ markdownQuoteBorderColorOther: string;
6853
+ markdownQuoteTextColor: string;
6854
+ markdownDividerColorOwn: string;
6855
+ markdownDividerColorOther: string;
6736
6856
  typingIndicatorColor: string;
6737
6857
  dateSeparatorColor: string;
6738
6858
  dateSeparatorBackgroundColor: string;
@@ -7507,6 +7627,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
7507
7627
  serviceMessageTextColor: string;
7508
7628
  serviceMessageBackgroundColor: string;
7509
7629
  messageTitleColor: string;
7630
+ markdownQuoteBorderColorOwn: string;
7631
+ markdownQuoteBorderColorOther: string;
7632
+ markdownQuoteTextColor: string;
7633
+ markdownDividerColorOwn: string;
7634
+ markdownDividerColorOther: string;
7635
+ markdownH1FontSize: string;
7636
+ markdownH2FontSize: string;
7637
+ markdownH3FontSize: string;
7638
+ markdownTextFontSize: string;
7510
7639
  }, {
7511
7640
  StatusIcon: import("../../_mixins").Theme<"Icon", {
7512
7641
  color: string;
@@ -7947,7 +8076,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
7947
8076
  } | undefined;
7948
8077
  } | undefined;
7949
8078
  };
7950
- }> | import("vue").ComputedRef<{
8079
+ }, {
7951
8080
  common: import("../..").ThemeCommonVars;
7952
8081
  self: {
7953
8082
  backgroundColor: string;
@@ -7980,6 +8109,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
7980
8109
  inputSuffixColor: string;
7981
8110
  unreadNotificationBackgroundColor: string;
7982
8111
  unreadNotificationTextColor: string;
8112
+ markdownQuoteBorderColorOwn: string;
8113
+ markdownQuoteBorderColorOther: string;
8114
+ markdownQuoteTextColor: string;
8115
+ markdownDividerColorOwn: string;
8116
+ markdownDividerColorOther: string;
7983
8117
  typingIndicatorColor: string;
7984
8118
  dateSeparatorColor: string;
7985
8119
  dateSeparatorBackgroundColor: string;
@@ -8754,6 +8888,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
8754
8888
  serviceMessageTextColor: string;
8755
8889
  serviceMessageBackgroundColor: string;
8756
8890
  messageTitleColor: string;
8891
+ markdownQuoteBorderColorOwn: string;
8892
+ markdownQuoteBorderColorOther: string;
8893
+ markdownQuoteTextColor: string;
8894
+ markdownDividerColorOwn: string;
8895
+ markdownDividerColorOther: string;
8896
+ markdownH1FontSize: string;
8897
+ markdownH2FontSize: string;
8898
+ markdownH3FontSize: string;
8899
+ markdownTextFontSize: string;
8757
8900
  }, {
8758
8901
  StatusIcon: import("../../_mixins").Theme<"Icon", {
8759
8902
  color: string;
@@ -9323,6 +9466,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
9323
9466
  readonly type: StringConstructor;
9324
9467
  readonly default: undefined;
9325
9468
  };
9469
+ readonly markdown: {
9470
+ readonly type: BooleanConstructor;
9471
+ readonly default: true;
9472
+ };
9473
+ readonly markdownOptions: {
9474
+ readonly type: PropType<MarkdownOptions>;
9475
+ readonly default: undefined;
9476
+ };
9326
9477
  readonly bubbleActions: {
9327
9478
  readonly type: PropType<ChatBubbleAction[]>;
9328
9479
  readonly default: undefined;
@@ -9402,6 +9553,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
9402
9553
  inputSuffixColor: string;
9403
9554
  unreadNotificationBackgroundColor: string;
9404
9555
  unreadNotificationTextColor: string;
9556
+ markdownQuoteBorderColorOwn: string;
9557
+ markdownQuoteBorderColorOther: string;
9558
+ markdownQuoteTextColor: string;
9559
+ markdownDividerColorOwn: string;
9560
+ markdownDividerColorOther: string;
9405
9561
  typingIndicatorColor: string;
9406
9562
  dateSeparatorColor: string;
9407
9563
  dateSeparatorBackgroundColor: string;
@@ -10175,6 +10331,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
10175
10331
  serviceMessageTextColor: string;
10176
10332
  serviceMessageBackgroundColor: string;
10177
10333
  messageTitleColor: string;
10334
+ markdownQuoteBorderColorOwn: string;
10335
+ markdownQuoteBorderColorOther: string;
10336
+ markdownQuoteTextColor: string;
10337
+ markdownDividerColorOwn: string;
10338
+ markdownDividerColorOther: string;
10339
+ markdownH1FontSize: string;
10340
+ markdownH2FontSize: string;
10341
+ markdownH3FontSize: string;
10342
+ markdownTextFontSize: string;
10178
10343
  }, {
10179
10344
  StatusIcon: import("../../_mixins").Theme<"Icon", {
10180
10345
  color: string;
@@ -10257,6 +10422,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
10257
10422
  inputSuffixColor: string;
10258
10423
  unreadNotificationBackgroundColor: string;
10259
10424
  unreadNotificationTextColor: string;
10425
+ markdownQuoteBorderColorOwn: string;
10426
+ markdownQuoteBorderColorOther: string;
10427
+ markdownQuoteTextColor: string;
10428
+ markdownDividerColorOwn: string;
10429
+ markdownDividerColorOther: string;
10260
10430
  typingIndicatorColor: string;
10261
10431
  dateSeparatorColor: string;
10262
10432
  dateSeparatorBackgroundColor: string;
@@ -11030,6 +11200,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
11030
11200
  serviceMessageTextColor: string;
11031
11201
  serviceMessageBackgroundColor: string;
11032
11202
  messageTitleColor: string;
11203
+ markdownQuoteBorderColorOwn: string;
11204
+ markdownQuoteBorderColorOther: string;
11205
+ markdownQuoteTextColor: string;
11206
+ markdownDividerColorOwn: string;
11207
+ markdownDividerColorOther: string;
11208
+ markdownH1FontSize: string;
11209
+ markdownH2FontSize: string;
11210
+ markdownH3FontSize: string;
11211
+ markdownTextFontSize: string;
11033
11212
  }, {
11034
11213
  StatusIcon: import("../../_mixins").Theme<"Icon", {
11035
11214
  color: string;
@@ -11112,6 +11291,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
11112
11291
  inputSuffixColor: string;
11113
11292
  unreadNotificationBackgroundColor: string;
11114
11293
  unreadNotificationTextColor: string;
11294
+ markdownQuoteBorderColorOwn: string;
11295
+ markdownQuoteBorderColorOther: string;
11296
+ markdownQuoteTextColor: string;
11297
+ markdownDividerColorOwn: string;
11298
+ markdownDividerColorOther: string;
11115
11299
  typingIndicatorColor: string;
11116
11300
  dateSeparatorColor: string;
11117
11301
  dateSeparatorBackgroundColor: string;
@@ -11885,6 +12069,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
11885
12069
  serviceMessageTextColor: string;
11886
12070
  serviceMessageBackgroundColor: string;
11887
12071
  messageTitleColor: string;
12072
+ markdownQuoteBorderColorOwn: string;
12073
+ markdownQuoteBorderColorOther: string;
12074
+ markdownQuoteTextColor: string;
12075
+ markdownDividerColorOwn: string;
12076
+ markdownDividerColorOther: string;
12077
+ markdownH1FontSize: string;
12078
+ markdownH2FontSize: string;
12079
+ markdownH3FontSize: string;
12080
+ markdownTextFontSize: string;
11888
12081
  }, {
11889
12082
  StatusIcon: import("../../_mixins").Theme<"Icon", {
11890
12083
  color: string;
@@ -11945,6 +12138,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
11945
12138
  readonly shareButtonTooltip: string;
11946
12139
  readonly profileButtonTooltip: string;
11947
12140
  readonly unreadNotificationText: string;
12141
+ readonly markdown: boolean;
12142
+ readonly markdownOptions: MarkdownOptions;
11948
12143
  readonly onAttachmentDownload: OnAttachmentDownload;
11949
12144
  readonly inputValue: string;
11950
12145
  readonly messages: ChatMessageData[];
@@ -11971,10 +12166,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
11971
12166
  readonly onFooterInputChange: (value: string, chatId: ChatId) => void;
11972
12167
  readonly onMessagesScrollToTop: () => void;
11973
12168
  readonly onMessagesScrollToBottom: () => void;
11974
- readonly loadingCount: number;
12169
+ readonly 'onUpdate:inputValue': (value: string) => void;
11975
12170
  readonly selectedChat: ChatListItemData;
12171
+ readonly loadingCount: number;
11976
12172
  readonly showAttachButton: boolean;
11977
12173
  readonly onMessageSend: OnMessageSend;
11978
- readonly 'onUpdate:inputValue': (value: string) => void;
11979
12174
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11980
12175
  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 handleMessageSend = (_8 = UChat === null || UChat === void 0 ? void 0 : UChat.handleMessageSend) !== null && _8 !== void 0 ? _8 : (content, attachments) => {
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 = (_9 = UChat === null || UChat === void 0 ? void 0 : UChat.handleMessageRetry) !== null && _9 !== void 0 ? _9 : message => {
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 = (_10 = UChat === null || UChat === void 0 ? void 0 : UChat.handleFooterInputChange) !== null && _10 !== void 0 ? _10 : (value, chatId) => {
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 = (_11 = UChat === null || UChat === void 0 ? void 0 : UChat.onAttachmentUpload) !== null && _11 !== void 0 ? _11 : toRef(props, 'onAttachmentUpload');
305
- const onChatClose = (_12 = UChat === null || UChat === void 0 ? void 0 : UChat.onChatClose) !== null && _12 !== void 0 ? _12 : toRef(props, 'onChatClose');
306
- const onChatShare = (_13 = UChat === null || UChat === void 0 ? void 0 : UChat.onChatShare) !== null && _13 !== void 0 ? _13 : toRef(props, 'onChatShare');
307
- const onUserProfile = (_14 = UChat === null || UChat === void 0 ? void 0 : UChat.onUserProfile) !== null && _14 !== void 0 ? _14 : toRef(props, 'onUserProfile');
308
- const onMessagesScrollToTop = (_15 = UChat === null || UChat === void 0 ? void 0 : UChat.onMessagesScrollToTop) !== null && _15 !== void 0 ? _15 : toRef(props, 'onMessagesScrollToTop');
309
- const onMessagesScrollToBottom = (_16 = UChat === null || UChat === void 0 ? void 0 : UChat.onMessagesScrollToBottom) !== null && _16 !== void 0 ? _16 : toRef(props, '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((_17 = props.inputValue) !== null && _17 !== void 0 ? _17 : '');
391
- const handleInputValueChange = (_18 = UChat === null || UChat === void 0 ? void 0 : UChat.handleInputValueChange) !== null && _18 !== void 0 ? _18 : value => {
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
- handleMessageSend(inputValue.value, attachments);
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] = '';