@uzum-tech/ui 2.4.0 → 2.4.2

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 (130) hide show
  1. package/dist/index.js +173 -76
  2. package/dist/index.mjs +174 -77
  3. package/dist/index.prod.js +3 -3
  4. package/dist/index.prod.mjs +3 -3
  5. package/es/_utils/index.d.ts +1 -1
  6. package/es/_utils/index.mjs +1 -1
  7. package/es/_utils/markdown/constants.d.ts +1 -0
  8. package/es/_utils/markdown/constants.mjs +1 -0
  9. package/es/_utils/markdown/index.d.ts +1 -1
  10. package/es/_utils/markdown/index.mjs +1 -1
  11. package/es/_utils/markdown/render-markdown.d.ts +3 -0
  12. package/es/_utils/markdown/render-markdown.mjs +18 -3
  13. package/es/_utils/vue/index.d.ts +1 -0
  14. package/es/_utils/vue/index.mjs +1 -0
  15. package/es/_utils/vue/resolve-reactive.d.ts +3 -0
  16. package/es/_utils/vue/resolve-reactive.mjs +9 -0
  17. package/es/chat/src/ChatListItems.mjs +16 -11
  18. package/es/chat/src/ChatMainArea.mjs +2 -1
  19. package/es/chat/src/ChatMessages.d.ts +1 -1
  20. package/es/chat/src/ChatMessages.mjs +6 -5
  21. package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.mjs +1 -2
  22. package/es/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.mjs +2 -1
  23. package/es/chat/src/ChatParts/ChatHeader/ChatHeader.mjs +3 -6
  24. package/es/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.mjs +2 -1
  25. package/es/chat/src/interface.d.ts +17 -34
  26. package/es/chat/src/styles/index.cssr.mjs +11 -12
  27. package/es/chat/styles/light.mjs +2 -1
  28. package/es/chat/tests/utils/constants.d.ts +12 -0
  29. package/es/chat/tests/utils/constants.mjs +12 -0
  30. package/es/chat/tests/utils/create-chat-item-mock.d.ts +2 -0
  31. package/es/chat/tests/utils/create-chat-item-mock.mjs +9 -0
  32. package/es/chat/tests/utils/create-chat-message-mock.d.ts +2 -0
  33. package/es/chat/tests/utils/create-chat-message-mock.mjs +13 -0
  34. package/es/components.d.ts +87 -4
  35. package/es/config-provider/src/ConfigProvider.mjs +6 -2
  36. package/es/editor/index.d.ts +1 -1
  37. package/es/editor/src/Editor.d.ts +26 -0
  38. package/es/editor/src/Editor.mjs +25 -3
  39. package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +24 -0
  40. package/es/editor/src/EditorParts/EditorContent/interface.d.ts +12 -0
  41. package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +24 -0
  42. package/es/editor/src/EditorParts/EditorToolbar/composables/use-editor-toolbar-customization.mjs +2 -0
  43. package/es/editor/src/EditorParts/EditorToolbar/interface.d.ts +12 -0
  44. package/es/editor/src/EditorParts/SendButton/SendButton.mjs +3 -1
  45. package/es/editor/src/composables/use-editor-css-vars.mjs +8 -0
  46. package/es/editor/src/extensions.d.ts +1 -1
  47. package/es/editor/src/extensions.mjs +8 -2
  48. package/es/editor/src/interface.d.ts +19 -1
  49. package/es/editor/src/interface.mjs +1 -0
  50. package/es/editor/src/styles/index.cssr.mjs +14 -2
  51. package/es/editor/styles/dark.d.ts +4 -0
  52. package/es/editor/styles/light.d.ts +8 -0
  53. package/es/editor/styles/light.mjs +4 -0
  54. package/es/locales/common/enUS.d.ts +1 -0
  55. package/es/locales/common/enUS.mjs +1 -0
  56. package/es/locales/common/ruRU.mjs +6 -7
  57. package/es/locales/common/uzUZ.mjs +1 -0
  58. package/es/locales/common/zhCN.mjs +1 -0
  59. package/es/locales/utils/date-locale.d.ts +2 -0
  60. package/es/locales/utils/date-locale.mjs +8 -0
  61. package/es/message-bubble/src/MessageBubble.d.ts +19 -10
  62. package/es/message-bubble/src/MessageBubble.mjs +21 -24
  63. package/es/message-bubble/src/interface.d.ts +9 -5
  64. package/es/message-bubble/src/interface.mjs +7 -3
  65. package/es/version.d.ts +1 -1
  66. package/es/version.mjs +1 -1
  67. package/lib/_utils/index.d.ts +1 -1
  68. package/lib/_utils/index.js +3 -1
  69. package/lib/_utils/markdown/constants.d.ts +1 -0
  70. package/lib/_utils/markdown/constants.js +2 -1
  71. package/lib/_utils/markdown/index.d.ts +1 -1
  72. package/lib/_utils/markdown/index.js +4 -1
  73. package/lib/_utils/markdown/render-markdown.d.ts +3 -0
  74. package/lib/_utils/markdown/render-markdown.js +20 -2
  75. package/lib/_utils/vue/index.d.ts +1 -0
  76. package/lib/_utils/vue/index.js +4 -1
  77. package/lib/_utils/vue/resolve-reactive.d.ts +3 -0
  78. package/lib/_utils/vue/resolve-reactive.js +17 -0
  79. package/lib/chat/src/ChatListItems.js +20 -17
  80. package/lib/chat/src/ChatMainArea.js +2 -2
  81. package/lib/chat/src/ChatMessages.d.ts +1 -1
  82. package/lib/chat/src/ChatMessages.js +6 -5
  83. package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.js +2 -2
  84. package/lib/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.js +4 -1
  85. package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.js +2 -2
  86. package/lib/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.js +2 -2
  87. package/lib/chat/src/interface.d.ts +17 -34
  88. package/lib/chat/src/styles/index.cssr.js +11 -12
  89. package/lib/chat/styles/light.js +3 -1
  90. package/lib/chat/tests/utils/constants.d.ts +12 -0
  91. package/lib/chat/tests/utils/constants.js +15 -0
  92. package/lib/chat/tests/utils/create-chat-item-mock.d.ts +2 -0
  93. package/lib/chat/tests/utils/create-chat-item-mock.js +10 -0
  94. package/lib/chat/tests/utils/create-chat-message-mock.d.ts +2 -0
  95. package/lib/chat/tests/utils/create-chat-message-mock.js +14 -0
  96. package/lib/components.d.ts +87 -4
  97. package/lib/config-provider/src/ConfigProvider.js +7 -4
  98. package/lib/editor/index.d.ts +1 -1
  99. package/lib/editor/src/Editor.d.ts +28 -2
  100. package/lib/editor/src/Editor.js +22 -2
  101. package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +24 -0
  102. package/lib/editor/src/EditorParts/EditorContent/interface.d.ts +12 -0
  103. package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +24 -0
  104. package/lib/editor/src/EditorParts/EditorToolbar/composables/use-editor-toolbar-customization.js +1 -1
  105. package/lib/editor/src/EditorParts/EditorToolbar/interface.d.ts +12 -0
  106. package/lib/editor/src/EditorParts/SendButton/SendButton.js +1 -1
  107. package/lib/editor/src/composables/use-editor-css-vars.js +5 -1
  108. package/lib/editor/src/extensions.d.ts +1 -1
  109. package/lib/editor/src/extensions.js +8 -3
  110. package/lib/editor/src/interface.d.ts +19 -1
  111. package/lib/editor/src/interface.js +1 -1
  112. package/lib/editor/src/styles/index.cssr.js +14 -2
  113. package/lib/editor/styles/dark.d.ts +4 -0
  114. package/lib/editor/styles/light.d.ts +8 -0
  115. package/lib/editor/styles/light.js +4 -0
  116. package/lib/locales/common/enUS.d.ts +1 -0
  117. package/lib/locales/common/enUS.js +1 -0
  118. package/lib/locales/common/ruRU.js +6 -7
  119. package/lib/locales/common/uzUZ.js +1 -0
  120. package/lib/locales/common/zhCN.js +1 -0
  121. package/lib/locales/utils/date-locale.d.ts +2 -0
  122. package/lib/locales/utils/date-locale.js +14 -0
  123. package/lib/message-bubble/src/MessageBubble.d.ts +19 -10
  124. package/lib/message-bubble/src/MessageBubble.js +26 -25
  125. package/lib/message-bubble/src/interface.d.ts +9 -5
  126. package/lib/message-bubble/src/interface.js +6 -3
  127. package/lib/version.d.ts +1 -1
  128. package/lib/version.js +1 -1
  129. package/package.json +1 -1
  130. package/web-types.json +26 -9
@@ -27,6 +27,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
27
27
  toolbarDividerColor: string;
28
28
  toolbarButtonColorActive: string;
29
29
  toolbarButtonColorHover: string;
30
+ toolbarButtonRippleColor: string;
31
+ toolbarButtonWaveOpacity: string;
30
32
  toolbarIconColorDisabled: string;
31
33
  toolbarIconColorActive: string;
32
34
  toolbarIconColorHover: string;
@@ -36,6 +38,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
36
38
  placeholderColor: string;
37
39
  sendButtonColor: string;
38
40
  sendButtonColorDisabled: string;
41
+ sendButtonRippleColor: string;
42
+ sendButtonWaveOpacity: string;
39
43
  sendButtonIconSize: string;
40
44
  blockTypeTriggerHeight: string;
41
45
  blockTypeTriggerPadding: string;
@@ -655,6 +659,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
655
659
  toolbarDividerColor: string;
656
660
  toolbarButtonColorActive: string;
657
661
  toolbarButtonColorHover: string;
662
+ toolbarButtonRippleColor: string;
663
+ toolbarButtonWaveOpacity: string;
658
664
  toolbarIconColorDisabled: string;
659
665
  toolbarIconColorActive: string;
660
666
  toolbarIconColorHover: string;
@@ -664,6 +670,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
664
670
  placeholderColor: string;
665
671
  sendButtonColor: string;
666
672
  sendButtonColorDisabled: string;
673
+ sendButtonRippleColor: string;
674
+ sendButtonWaveOpacity: string;
667
675
  sendButtonIconSize: string;
668
676
  blockTypeTriggerHeight: string;
669
677
  blockTypeTriggerPadding: string;
@@ -1283,6 +1291,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1283
1291
  toolbarDividerColor: string;
1284
1292
  toolbarButtonColorActive: string;
1285
1293
  toolbarButtonColorHover: string;
1294
+ toolbarButtonRippleColor: string;
1295
+ toolbarButtonWaveOpacity: string;
1286
1296
  toolbarIconColorDisabled: string;
1287
1297
  toolbarIconColorActive: string;
1288
1298
  toolbarIconColorHover: string;
@@ -1292,6 +1302,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1292
1302
  placeholderColor: string;
1293
1303
  sendButtonColor: string;
1294
1304
  sendButtonColorDisabled: string;
1305
+ sendButtonRippleColor: string;
1306
+ sendButtonWaveOpacity: string;
1295
1307
  sendButtonIconSize: string;
1296
1308
  blockTypeTriggerHeight: string;
1297
1309
  blockTypeTriggerPadding: string;
@@ -2194,6 +2206,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2194
2206
  toolbarDividerColor: string;
2195
2207
  toolbarButtonColorActive: string;
2196
2208
  toolbarButtonColorHover: string;
2209
+ toolbarButtonRippleColor: string;
2210
+ toolbarButtonWaveOpacity: string;
2197
2211
  toolbarIconColorDisabled: string;
2198
2212
  toolbarIconColorActive: string;
2199
2213
  toolbarIconColorHover: string;
@@ -2203,6 +2217,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2203
2217
  placeholderColor: string;
2204
2218
  sendButtonColor: string;
2205
2219
  sendButtonColorDisabled: string;
2220
+ sendButtonRippleColor: string;
2221
+ sendButtonWaveOpacity: string;
2206
2222
  sendButtonIconSize: string;
2207
2223
  blockTypeTriggerHeight: string;
2208
2224
  blockTypeTriggerPadding: string;
@@ -2822,6 +2838,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2822
2838
  toolbarDividerColor: string;
2823
2839
  toolbarButtonColorActive: string;
2824
2840
  toolbarButtonColorHover: string;
2841
+ toolbarButtonRippleColor: string;
2842
+ toolbarButtonWaveOpacity: string;
2825
2843
  toolbarIconColorDisabled: string;
2826
2844
  toolbarIconColorActive: string;
2827
2845
  toolbarIconColorHover: string;
@@ -2831,6 +2849,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2831
2849
  placeholderColor: string;
2832
2850
  sendButtonColor: string;
2833
2851
  sendButtonColorDisabled: string;
2852
+ sendButtonRippleColor: string;
2853
+ sendButtonWaveOpacity: string;
2834
2854
  sendButtonIconSize: string;
2835
2855
  blockTypeTriggerHeight: string;
2836
2856
  blockTypeTriggerPadding: string;
@@ -3450,6 +3470,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3450
3470
  toolbarDividerColor: string;
3451
3471
  toolbarButtonColorActive: string;
3452
3472
  toolbarButtonColorHover: string;
3473
+ toolbarButtonRippleColor: string;
3474
+ toolbarButtonWaveOpacity: string;
3453
3475
  toolbarIconColorDisabled: string;
3454
3476
  toolbarIconColorActive: string;
3455
3477
  toolbarIconColorHover: string;
@@ -3459,6 +3481,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3459
3481
  placeholderColor: string;
3460
3482
  sendButtonColor: string;
3461
3483
  sendButtonColorDisabled: string;
3484
+ sendButtonRippleColor: string;
3485
+ sendButtonWaveOpacity: string;
3462
3486
  sendButtonIconSize: string;
3463
3487
  blockTypeTriggerHeight: string;
3464
3488
  blockTypeTriggerPadding: string;
@@ -27,6 +27,8 @@ export declare const editorContentProps: {
27
27
  toolbarDividerColor: string;
28
28
  toolbarButtonColorActive: string;
29
29
  toolbarButtonColorHover: string;
30
+ toolbarButtonRippleColor: string;
31
+ toolbarButtonWaveOpacity: string;
30
32
  toolbarIconColorDisabled: string;
31
33
  toolbarIconColorActive: string;
32
34
  toolbarIconColorHover: string;
@@ -36,6 +38,8 @@ export declare const editorContentProps: {
36
38
  placeholderColor: string;
37
39
  sendButtonColor: string;
38
40
  sendButtonColorDisabled: string;
41
+ sendButtonRippleColor: string;
42
+ sendButtonWaveOpacity: string;
39
43
  sendButtonIconSize: string;
40
44
  blockTypeTriggerHeight: string;
41
45
  blockTypeTriggerPadding: string;
@@ -655,6 +659,8 @@ export declare const editorContentProps: {
655
659
  toolbarDividerColor: string;
656
660
  toolbarButtonColorActive: string;
657
661
  toolbarButtonColorHover: string;
662
+ toolbarButtonRippleColor: string;
663
+ toolbarButtonWaveOpacity: string;
658
664
  toolbarIconColorDisabled: string;
659
665
  toolbarIconColorActive: string;
660
666
  toolbarIconColorHover: string;
@@ -664,6 +670,8 @@ export declare const editorContentProps: {
664
670
  placeholderColor: string;
665
671
  sendButtonColor: string;
666
672
  sendButtonColorDisabled: string;
673
+ sendButtonRippleColor: string;
674
+ sendButtonWaveOpacity: string;
667
675
  sendButtonIconSize: string;
668
676
  blockTypeTriggerHeight: string;
669
677
  blockTypeTriggerPadding: string;
@@ -1283,6 +1291,8 @@ export declare const editorContentProps: {
1283
1291
  toolbarDividerColor: string;
1284
1292
  toolbarButtonColorActive: string;
1285
1293
  toolbarButtonColorHover: string;
1294
+ toolbarButtonRippleColor: string;
1295
+ toolbarButtonWaveOpacity: string;
1286
1296
  toolbarIconColorDisabled: string;
1287
1297
  toolbarIconColorActive: string;
1288
1298
  toolbarIconColorHover: string;
@@ -1292,6 +1302,8 @@ export declare const editorContentProps: {
1292
1302
  placeholderColor: string;
1293
1303
  sendButtonColor: string;
1294
1304
  sendButtonColorDisabled: string;
1305
+ sendButtonRippleColor: string;
1306
+ sendButtonWaveOpacity: string;
1295
1307
  sendButtonIconSize: string;
1296
1308
  blockTypeTriggerHeight: string;
1297
1309
  blockTypeTriggerPadding: string;
@@ -27,6 +27,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
27
27
  toolbarDividerColor: string;
28
28
  toolbarButtonColorActive: string;
29
29
  toolbarButtonColorHover: string;
30
+ toolbarButtonRippleColor: string;
31
+ toolbarButtonWaveOpacity: string;
30
32
  toolbarIconColorDisabled: string;
31
33
  toolbarIconColorActive: string;
32
34
  toolbarIconColorHover: string;
@@ -36,6 +38,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
36
38
  placeholderColor: string;
37
39
  sendButtonColor: string;
38
40
  sendButtonColorDisabled: string;
41
+ sendButtonRippleColor: string;
42
+ sendButtonWaveOpacity: string;
39
43
  sendButtonIconSize: string;
40
44
  blockTypeTriggerHeight: string;
41
45
  blockTypeTriggerPadding: string;
@@ -655,6 +659,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
655
659
  toolbarDividerColor: string;
656
660
  toolbarButtonColorActive: string;
657
661
  toolbarButtonColorHover: string;
662
+ toolbarButtonRippleColor: string;
663
+ toolbarButtonWaveOpacity: string;
658
664
  toolbarIconColorDisabled: string;
659
665
  toolbarIconColorActive: string;
660
666
  toolbarIconColorHover: string;
@@ -664,6 +670,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
664
670
  placeholderColor: string;
665
671
  sendButtonColor: string;
666
672
  sendButtonColorDisabled: string;
673
+ sendButtonRippleColor: string;
674
+ sendButtonWaveOpacity: string;
667
675
  sendButtonIconSize: string;
668
676
  blockTypeTriggerHeight: string;
669
677
  blockTypeTriggerPadding: string;
@@ -1283,6 +1291,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1283
1291
  toolbarDividerColor: string;
1284
1292
  toolbarButtonColorActive: string;
1285
1293
  toolbarButtonColorHover: string;
1294
+ toolbarButtonRippleColor: string;
1295
+ toolbarButtonWaveOpacity: string;
1286
1296
  toolbarIconColorDisabled: string;
1287
1297
  toolbarIconColorActive: string;
1288
1298
  toolbarIconColorHover: string;
@@ -1292,6 +1302,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1292
1302
  placeholderColor: string;
1293
1303
  sendButtonColor: string;
1294
1304
  sendButtonColorDisabled: string;
1305
+ sendButtonRippleColor: string;
1306
+ sendButtonWaveOpacity: string;
1295
1307
  sendButtonIconSize: string;
1296
1308
  blockTypeTriggerHeight: string;
1297
1309
  blockTypeTriggerPadding: string;
@@ -2698,6 +2710,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2698
2710
  toolbarDividerColor: string;
2699
2711
  toolbarButtonColorActive: string;
2700
2712
  toolbarButtonColorHover: string;
2713
+ toolbarButtonRippleColor: string;
2714
+ toolbarButtonWaveOpacity: string;
2701
2715
  toolbarIconColorDisabled: string;
2702
2716
  toolbarIconColorActive: string;
2703
2717
  toolbarIconColorHover: string;
@@ -2707,6 +2721,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2707
2721
  placeholderColor: string;
2708
2722
  sendButtonColor: string;
2709
2723
  sendButtonColorDisabled: string;
2724
+ sendButtonRippleColor: string;
2725
+ sendButtonWaveOpacity: string;
2710
2726
  sendButtonIconSize: string;
2711
2727
  blockTypeTriggerHeight: string;
2712
2728
  blockTypeTriggerPadding: string;
@@ -3326,6 +3342,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3326
3342
  toolbarDividerColor: string;
3327
3343
  toolbarButtonColorActive: string;
3328
3344
  toolbarButtonColorHover: string;
3345
+ toolbarButtonRippleColor: string;
3346
+ toolbarButtonWaveOpacity: string;
3329
3347
  toolbarIconColorDisabled: string;
3330
3348
  toolbarIconColorActive: string;
3331
3349
  toolbarIconColorHover: string;
@@ -3335,6 +3353,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3335
3353
  placeholderColor: string;
3336
3354
  sendButtonColor: string;
3337
3355
  sendButtonColorDisabled: string;
3356
+ sendButtonRippleColor: string;
3357
+ sendButtonWaveOpacity: string;
3338
3358
  sendButtonIconSize: string;
3339
3359
  blockTypeTriggerHeight: string;
3340
3360
  blockTypeTriggerPadding: string;
@@ -3954,6 +3974,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3954
3974
  toolbarDividerColor: string;
3955
3975
  toolbarButtonColorActive: string;
3956
3976
  toolbarButtonColorHover: string;
3977
+ toolbarButtonRippleColor: string;
3978
+ toolbarButtonWaveOpacity: string;
3957
3979
  toolbarIconColorDisabled: string;
3958
3980
  toolbarIconColorActive: string;
3959
3981
  toolbarIconColorHover: string;
@@ -3963,6 +3985,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3963
3985
  placeholderColor: string;
3964
3986
  sendButtonColor: string;
3965
3987
  sendButtonColorDisabled: string;
3988
+ sendButtonRippleColor: string;
3989
+ sendButtonWaveOpacity: string;
3966
3990
  sendButtonIconSize: string;
3967
3991
  blockTypeTriggerHeight: string;
3968
3992
  blockTypeTriggerPadding: string;
@@ -23,6 +23,8 @@ export default function useEditorToolbarCustomization() {
23
23
  colorPressed: themeVars.toolbarButtonColorActive,
24
24
  colorFocus: active ? themeVars.toolbarButtonColorActive : 'transparent',
25
25
  colorDisabled: 'transparent',
26
+ rippleColor: themeVars.toolbarButtonRippleColor,
27
+ waveOpacity: themeVars.toolbarButtonWaveOpacity,
26
28
  textColor: active ? themeVars.toolbarIconColorActive : themeVars.toolbarIconColor,
27
29
  textColorHover: active ? themeVars.toolbarIconColorActive : themeVars.toolbarIconColorHover,
28
30
  textColorPressed: themeVars.toolbarIconColorActive,
@@ -33,6 +33,8 @@ export declare const editorToolbarProps: {
33
33
  toolbarDividerColor: string;
34
34
  toolbarButtonColorActive: string;
35
35
  toolbarButtonColorHover: string;
36
+ toolbarButtonRippleColor: string;
37
+ toolbarButtonWaveOpacity: string;
36
38
  toolbarIconColorDisabled: string;
37
39
  toolbarIconColorActive: string;
38
40
  toolbarIconColorHover: string;
@@ -42,6 +44,8 @@ export declare const editorToolbarProps: {
42
44
  placeholderColor: string;
43
45
  sendButtonColor: string;
44
46
  sendButtonColorDisabled: string;
47
+ sendButtonRippleColor: string;
48
+ sendButtonWaveOpacity: string;
45
49
  sendButtonIconSize: string;
46
50
  blockTypeTriggerHeight: string;
47
51
  blockTypeTriggerPadding: string;
@@ -661,6 +665,8 @@ export declare const editorToolbarProps: {
661
665
  toolbarDividerColor: string;
662
666
  toolbarButtonColorActive: string;
663
667
  toolbarButtonColorHover: string;
668
+ toolbarButtonRippleColor: string;
669
+ toolbarButtonWaveOpacity: string;
664
670
  toolbarIconColorDisabled: string;
665
671
  toolbarIconColorActive: string;
666
672
  toolbarIconColorHover: string;
@@ -670,6 +676,8 @@ export declare const editorToolbarProps: {
670
676
  placeholderColor: string;
671
677
  sendButtonColor: string;
672
678
  sendButtonColorDisabled: string;
679
+ sendButtonRippleColor: string;
680
+ sendButtonWaveOpacity: string;
673
681
  sendButtonIconSize: string;
674
682
  blockTypeTriggerHeight: string;
675
683
  blockTypeTriggerPadding: string;
@@ -1289,6 +1297,8 @@ export declare const editorToolbarProps: {
1289
1297
  toolbarDividerColor: string;
1290
1298
  toolbarButtonColorActive: string;
1291
1299
  toolbarButtonColorHover: string;
1300
+ toolbarButtonRippleColor: string;
1301
+ toolbarButtonWaveOpacity: string;
1292
1302
  toolbarIconColorDisabled: string;
1293
1303
  toolbarIconColorActive: string;
1294
1304
  toolbarIconColorHover: string;
@@ -1298,6 +1308,8 @@ export declare const editorToolbarProps: {
1298
1308
  placeholderColor: string;
1299
1309
  sendButtonColor: string;
1300
1310
  sendButtonColorDisabled: string;
1311
+ sendButtonRippleColor: string;
1312
+ sendButtonWaveOpacity: string;
1301
1313
  sendButtonIconSize: string;
1302
1314
  blockTypeTriggerHeight: string;
1303
1315
  blockTypeTriggerPadding: string;
@@ -31,7 +31,9 @@ export default defineComponent({
31
31
  "aria-label": this.tooltip,
32
32
  onClick: this.handleClick
33
33
  }, this.buttonProps), {
34
- icon: () => h(UIcon, Object.assign({}, this.iconProps), {
34
+ icon: () => h(UIcon, Object.assign({}, this.iconProps, {
35
+ size: 20
36
+ }), {
35
37
  default: () => {
36
38
  var _a, _b, _c;
37
39
  return (_c = (_b = (_a = this.$slots).icon) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : h(SendFilled, null);
@@ -14,6 +14,8 @@ export default function useEditorCssVars(themeRef, themeVarsRef) {
14
14
  toolbarDividerColor,
15
15
  toolbarButtonColorActive,
16
16
  toolbarButtonColorHover,
17
+ toolbarButtonRippleColor,
18
+ toolbarButtonWaveOpacity,
17
19
  toolbarIconColorDisabled,
18
20
  toolbarIconColorActive,
19
21
  toolbarIconColorHover,
@@ -22,6 +24,8 @@ export default function useEditorCssVars(themeRef, themeVarsRef) {
22
24
  contentTextColor,
23
25
  placeholderColor,
24
26
  sendButtonColor,
27
+ sendButtonRippleColor,
28
+ sendButtonWaveOpacity,
25
29
  blockTypeMenuWidth,
26
30
  blockTypeMenuColor,
27
31
  blockTypeMenuBorderColor,
@@ -50,6 +54,8 @@ export default function useEditorCssVars(themeRef, themeVarsRef) {
50
54
  '--u-editor-toolbar-divider-color': toolbarDividerColor,
51
55
  '--u-editor-toolbar-button-color-active': toolbarButtonColorActive,
52
56
  '--u-editor-toolbar-button-color-hover': toolbarButtonColorHover,
57
+ '--u-editor-toolbar-button-ripple-color': toolbarButtonRippleColor,
58
+ '--u-editor-toolbar-button-wave-opacity': toolbarButtonWaveOpacity,
53
59
  '--u-editor-toolbar-icon-color-disabled': toolbarIconColorDisabled,
54
60
  '--u-editor-toolbar-icon-color-active': toolbarIconColorActive,
55
61
  '--u-editor-toolbar-icon-color-hover': toolbarIconColorHover,
@@ -58,6 +64,8 @@ export default function useEditorCssVars(themeRef, themeVarsRef) {
58
64
  '--u-editor-content-text-color': contentTextColor,
59
65
  '--u-editor-placeholder-color': placeholderColor,
60
66
  '--u-editor-send-button-color': sendButtonColor,
67
+ '--u-editor-send-button-ripple-color': sendButtonRippleColor,
68
+ '--u-editor-send-button-wave-opacity': sendButtonWaveOpacity,
61
69
  '--u-editor-block-type-menu-width': blockTypeMenuWidth,
62
70
  '--u-editor-block-type-menu-color': blockTypeMenuColor,
63
71
  '--u-editor-block-type-menu-border-color': blockTypeMenuBorderColor,
@@ -4,4 +4,4 @@ import { Extension } from '@tiptap/core';
4
4
  export declare const MarkdownSource: Extension<any, any>;
5
5
  export declare const SendShortcut: Extension<SendShortcutOptions, any>;
6
6
  export declare const MarkdownPaste: Extension<MarkdownPasteOptions, any>;
7
- export declare function createEditorExtensions({ placeholder, markdownOptions, extensions, maxLength, onSendShortcut }?: CreateEditorExtensionsOptions): Extensions;
7
+ export declare function createEditorExtensions({ placeholder, markdownOptions, extensions, nodeProps, maxLength, onSendShortcut }?: CreateEditorExtensionsOptions): Extensions;
@@ -88,9 +88,11 @@ export function createEditorExtensions({
88
88
  placeholder = '',
89
89
  markdownOptions,
90
90
  extensions = [],
91
+ nodeProps,
91
92
  maxLength,
92
93
  onSendShortcut
93
94
  } = {}) {
95
+ var _a, _b;
94
96
  const normalizedOptions = normalizeOptions(markdownOptions);
95
97
  const features = new Set(normalizedOptions.features);
96
98
  const headingLevels = EDITOR_HEADING_LEVELS.filter(level => level <= normalizedOptions.maxHeadingLevel);
@@ -106,8 +108,12 @@ export function createEditorExtensions({
106
108
  heading: features.has('heading') && {
107
109
  levels: headingLevels
108
110
  },
109
- bulletList: features.has('bulletList') && {},
110
- orderedList: features.has('orderedList') && {},
111
+ bulletList: features.has('bulletList') && {
112
+ HTMLAttributes: (_a = nodeProps === null || nodeProps === void 0 ? void 0 : nodeProps.bulletList) !== null && _a !== void 0 ? _a : {}
113
+ },
114
+ orderedList: features.has('orderedList') && {
115
+ HTMLAttributes: (_b = nodeProps === null || nodeProps === void 0 ? void 0 : nodeProps.orderedList) !== null && _b !== void 0 ? _b : {}
116
+ },
111
117
  blockquote: features.has('blockquote') && {},
112
118
  horizontalRule: features.has('divider') && {},
113
119
  listItem: lists && {},
@@ -9,10 +9,15 @@ import type { ButtonProps } from '../../button';
9
9
  import type { IconProps } from '../../icon';
10
10
  import type { SelectProps } from '../../select';
11
11
  import type { EditorTheme, EditorThemeVars } from '../styles';
12
+ export interface EditorNodeProps {
13
+ bulletList?: HTMLAttributes;
14
+ orderedList?: HTMLAttributes;
15
+ }
12
16
  export interface CreateEditorExtensionsOptions {
13
- placeholder?: string;
17
+ placeholder?: string | (() => string);
14
18
  markdownOptions?: MarkdownOptions;
15
19
  extensions?: Extensions;
20
+ nodeProps?: EditorNodeProps;
16
21
  maxLength?: number;
17
22
  onSendShortcut?: VoidFunction;
18
23
  }
@@ -127,6 +132,7 @@ export declare const editorProps: {
127
132
  readonly type: PropType<Extensions>;
128
133
  readonly default: () => never[];
129
134
  };
135
+ readonly nodeProps: PropType<EditorNodeProps>;
130
136
  readonly onSend: PropType<MaybeArray<(value: string) => void>>;
131
137
  readonly onFocus: PropType<MaybeArray<(event: FocusEvent) => void>>;
132
138
  readonly onBlur: PropType<MaybeArray<(event: FocusEvent) => void>>;
@@ -140,6 +146,8 @@ export declare const editorProps: {
140
146
  toolbarDividerColor: string;
141
147
  toolbarButtonColorActive: string;
142
148
  toolbarButtonColorHover: string;
149
+ toolbarButtonRippleColor: string;
150
+ toolbarButtonWaveOpacity: string;
143
151
  toolbarIconColorDisabled: string;
144
152
  toolbarIconColorActive: string;
145
153
  toolbarIconColorHover: string;
@@ -149,6 +157,8 @@ export declare const editorProps: {
149
157
  placeholderColor: string;
150
158
  sendButtonColor: string;
151
159
  sendButtonColorDisabled: string;
160
+ sendButtonRippleColor: string;
161
+ sendButtonWaveOpacity: string;
152
162
  sendButtonIconSize: string;
153
163
  blockTypeTriggerHeight: string;
154
164
  blockTypeTriggerPadding: string;
@@ -768,6 +778,8 @@ export declare const editorProps: {
768
778
  toolbarDividerColor: string;
769
779
  toolbarButtonColorActive: string;
770
780
  toolbarButtonColorHover: string;
781
+ toolbarButtonRippleColor: string;
782
+ toolbarButtonWaveOpacity: string;
771
783
  toolbarIconColorDisabled: string;
772
784
  toolbarIconColorActive: string;
773
785
  toolbarIconColorHover: string;
@@ -777,6 +789,8 @@ export declare const editorProps: {
777
789
  placeholderColor: string;
778
790
  sendButtonColor: string;
779
791
  sendButtonColorDisabled: string;
792
+ sendButtonRippleColor: string;
793
+ sendButtonWaveOpacity: string;
780
794
  sendButtonIconSize: string;
781
795
  blockTypeTriggerHeight: string;
782
796
  blockTypeTriggerPadding: string;
@@ -1396,6 +1410,8 @@ export declare const editorProps: {
1396
1410
  toolbarDividerColor: string;
1397
1411
  toolbarButtonColorActive: string;
1398
1412
  toolbarButtonColorHover: string;
1413
+ toolbarButtonRippleColor: string;
1414
+ toolbarButtonWaveOpacity: string;
1399
1415
  toolbarIconColorDisabled: string;
1400
1416
  toolbarIconColorActive: string;
1401
1417
  toolbarIconColorHover: string;
@@ -1405,6 +1421,8 @@ export declare const editorProps: {
1405
1421
  placeholderColor: string;
1406
1422
  sendButtonColor: string;
1407
1423
  sendButtonColorDisabled: string;
1424
+ sendButtonRippleColor: string;
1425
+ sendButtonWaveOpacity: string;
1408
1426
  sendButtonIconSize: string;
1409
1427
  blockTypeTriggerHeight: string;
1410
1428
  blockTypeTriggerPadding: string;
@@ -44,6 +44,7 @@ export const editorProps = Object.assign(Object.assign({}, useTheme.props), {
44
44
  type: Array,
45
45
  default: () => []
46
46
  },
47
+ nodeProps: Object,
47
48
  onSend: [Function, Array],
48
49
  onFocus: [Function, Array],
49
50
  onBlur: [Function, Array],
@@ -9,6 +9,8 @@ import { c, cB, cE, cM } from "../../../_utils/cssr/index.mjs";
9
9
  // --u-editor-toolbar-divider-color
10
10
  // --u-editor-toolbar-button-color-active
11
11
  // --u-editor-toolbar-button-color-hover
12
+ // --u-editor-toolbar-button-ripple-color
13
+ // --u-editor-toolbar-button-wave-opacity
12
14
  // --u-editor-toolbar-icon-color-disabled
13
15
  // --u-editor-toolbar-icon-color-active
14
16
  // --u-editor-toolbar-icon-color-hover
@@ -17,6 +19,8 @@ import { c, cB, cE, cM } from "../../../_utils/cssr/index.mjs";
17
19
  // --u-editor-content-text-color
18
20
  // --u-editor-placeholder-color
19
21
  // --u-editor-send-button-color
22
+ // --u-editor-send-button-ripple-color
23
+ // --u-editor-send-button-wave-opacity
20
24
  // --u-editor-block-type-menu-width
21
25
  // --u-editor-block-type-menu-color
22
26
  // --u-editor-block-type-menu-border-color
@@ -53,10 +57,14 @@ export default c([cB('editor', `
53
57
  `), cE('toolbar-block-type', `
54
58
  width: 71px;
55
59
  `)]), cE('content-wrapper', `
60
+ position: relative;
61
+ box-sizing: border-box;
56
62
  display: flex;
57
- align-items: flex-start;
63
+ align-items: center;
58
64
  gap: 8px;
59
- padding: 8px 10px;
65
+ min-height: 40px;
66
+ padding: 6px 10px;
67
+ padding-right: 24px;
60
68
  border: 2px solid var(--u-editor-border-color);
61
69
  border-bottom-left-radius: 12px;
62
70
  border-bottom-right-radius: 12px;
@@ -65,6 +73,10 @@ export default c([cB('editor', `
65
73
  min-width: 0;
66
74
  height: auto;
67
75
  `), cE('send-button', `
76
+ position: absolute;
77
+ align-items: flex-start;
78
+ right: 6px;
79
+ top: 6px;
68
80
  flex-shrink: 0;
69
81
  `)]), cE('content', `
70
82
  white-space: normal;
@@ -6,6 +6,8 @@ declare const editorDark: import("../../_mixins").Theme<"Editor", {
6
6
  toolbarDividerColor: string;
7
7
  toolbarButtonColorActive: string;
8
8
  toolbarButtonColorHover: string;
9
+ toolbarButtonRippleColor: string;
10
+ toolbarButtonWaveOpacity: string;
9
11
  toolbarIconColorDisabled: string;
10
12
  toolbarIconColorActive: string;
11
13
  toolbarIconColorHover: string;
@@ -15,6 +17,8 @@ declare const editorDark: import("../../_mixins").Theme<"Editor", {
15
17
  placeholderColor: string;
16
18
  sendButtonColor: string;
17
19
  sendButtonColorDisabled: string;
20
+ sendButtonRippleColor: string;
21
+ sendButtonWaveOpacity: string;
18
22
  sendButtonIconSize: string;
19
23
  blockTypeTriggerHeight: string;
20
24
  blockTypeTriggerPadding: string;
@@ -7,6 +7,8 @@ export declare function self(vars: ThemeCommonVars): {
7
7
  toolbarDividerColor: string;
8
8
  toolbarButtonColorActive: string;
9
9
  toolbarButtonColorHover: string;
10
+ toolbarButtonRippleColor: string;
11
+ toolbarButtonWaveOpacity: string;
10
12
  toolbarIconColorDisabled: string;
11
13
  toolbarIconColorActive: string;
12
14
  toolbarIconColorHover: string;
@@ -16,6 +18,8 @@ export declare function self(vars: ThemeCommonVars): {
16
18
  placeholderColor: string;
17
19
  sendButtonColor: string;
18
20
  sendButtonColorDisabled: string;
21
+ sendButtonRippleColor: string;
22
+ sendButtonWaveOpacity: string;
19
23
  sendButtonIconSize: string;
20
24
  blockTypeTriggerHeight: string;
21
25
  blockTypeTriggerPadding: string;
@@ -52,6 +56,8 @@ declare const editorLight: import("../../_mixins").Theme<"Editor", {
52
56
  toolbarDividerColor: string;
53
57
  toolbarButtonColorActive: string;
54
58
  toolbarButtonColorHover: string;
59
+ toolbarButtonRippleColor: string;
60
+ toolbarButtonWaveOpacity: string;
55
61
  toolbarIconColorDisabled: string;
56
62
  toolbarIconColorActive: string;
57
63
  toolbarIconColorHover: string;
@@ -61,6 +67,8 @@ declare const editorLight: import("../../_mixins").Theme<"Editor", {
61
67
  placeholderColor: string;
62
68
  sendButtonColor: string;
63
69
  sendButtonColorDisabled: string;
70
+ sendButtonRippleColor: string;
71
+ sendButtonWaveOpacity: string;
64
72
  sendButtonIconSize: string;
65
73
  blockTypeTriggerHeight: string;
66
74
  blockTypeTriggerPadding: string;
@@ -34,6 +34,8 @@ export function self(vars) {
34
34
  toolbarDividerColor: elementsQuaternary,
35
35
  toolbarButtonColorActive: elementsQuaternary,
36
36
  toolbarButtonColorHover: elementsQuaternary,
37
+ toolbarButtonRippleColor: elementsQuaternary,
38
+ toolbarButtonWaveOpacity: '0.6',
37
39
  toolbarIconColorDisabled: elementsQuinary,
38
40
  toolbarIconColorActive: brandPrimary500,
39
41
  toolbarIconColorHover: textPrimary,
@@ -43,6 +45,8 @@ export function self(vars) {
43
45
  placeholderColor: textTertiary,
44
46
  sendButtonColor: brandPrimary400,
45
47
  sendButtonColorDisabled: elementsQuinary,
48
+ sendButtonRippleColor: brandPrimary400,
49
+ sendButtonWaveOpacity: '0.6',
46
50
  sendButtonIconSize: iconMedium,
47
51
  blockTypeTriggerHeight: heightMini,
48
52
  blockTypeTriggerPadding: '0 8px 0 0',
@@ -136,6 +136,7 @@ declare const enUS: {
136
136
  uploading: string;
137
137
  };
138
138
  Editor: {
139
+ placeholder: string;
139
140
  sendTooltip: string;
140
141
  boldTooltip: string;
141
142
  strikethroughTooltip: string;
@@ -137,6 +137,7 @@ const enUS = {
137
137
  uploading: 'Uploading'
138
138
  },
139
139
  Editor: {
140
+ placeholder: 'Type a message...',
140
141
  sendTooltip: 'Send',
141
142
  boldTooltip: 'Bold',
142
143
  strikethroughTooltip: 'Strikethrough',
@@ -37,17 +37,15 @@ const ruRu = {
37
37
  datePlaceholder: 'Выбрать дату',
38
38
  datetimePlaceholder: 'Выбрать дату и время',
39
39
  monthPlaceholder: 'Выберите месяц',
40
- // FIXME: translation needed
41
- yearPlaceholder: 'Select Year',
42
- quarterPlaceholder: 'Select Quarter',
43
- weekPlaceholder: 'Select Week',
40
+ yearPlaceholder: 'Выберите год',
41
+ quarterPlaceholder: 'Выберите квартал',
42
+ weekPlaceholder: 'Выберите неделю',
44
43
  startDatePlaceholder: 'Дата начала',
45
44
  endDatePlaceholder: 'Дата окончания',
46
45
  startDatetimePlaceholder: 'Дата и время начала',
47
46
  endDatetimePlaceholder: 'Дата и время окончания',
48
- // FIXME: translation needed
49
- startMonthPlaceholder: 'Start Month',
50
- endMonthPlaceholder: 'End Month',
47
+ startMonthPlaceholder: 'Месяц начала',
48
+ endMonthPlaceholder: 'Месяц окончания',
51
49
  monthBeforeYear: true,
52
50
  firstDayOfWeek: 0,
53
51
  today: 'Сегодня'
@@ -141,6 +139,7 @@ const ruRu = {
141
139
  uploading: 'Загружается'
142
140
  },
143
141
  Editor: {
142
+ placeholder: 'Написать сообщение...',
144
143
  sendTooltip: 'Отправить',
145
144
  boldTooltip: 'Жирный',
146
145
  strikethroughTooltip: 'Зачёркнутый',