@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
@@ -71799,7 +71799,7 @@ export declare const UChatMessages: import("vue").DefineComponent<import("vue").
71799
71799
  renderMessage: (message: import("./chat").ChatMessageData) => JSX.Element;
71800
71800
  renderMarkMessage: (message: import("./chat").ChatMessageData) => JSX.Element;
71801
71801
  renderSkeletonMessage: (isOwn: boolean, index: number) => JSX.Element;
71802
- renderDateSeparator: (date: string) => JSX.Element;
71802
+ renderDateSeparator: (date: import("./chat").ChatMessageData["date"]) => JSX.Element;
71803
71803
  renderUnreadNotification: () => JSX.Element;
71804
71804
  cssVars: import("vue").ComputedRef<Record<string, string>>;
71805
71805
  themeClass: import("vue").Ref<string, string>;
@@ -106354,6 +106354,7 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
106354
106354
  readonly type: import("vue").PropType<import("@tiptap/core").Extensions>;
106355
106355
  readonly default: () => never[];
106356
106356
  };
106357
+ readonly nodeProps: import("vue").PropType<import("./editor").EditorNodeProps>;
106357
106358
  readonly onSend: import("vue").PropType<import("./_utils").MaybeArray<(value: string) => void>>;
106358
106359
  readonly onFocus: import("vue").PropType<import("./_utils").MaybeArray<(event: FocusEvent) => void>>;
106359
106360
  readonly onBlur: import("vue").PropType<import("./_utils").MaybeArray<(event: FocusEvent) => void>>;
@@ -106367,6 +106368,8 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
106367
106368
  toolbarDividerColor: string;
106368
106369
  toolbarButtonColorActive: string;
106369
106370
  toolbarButtonColorHover: string;
106371
+ toolbarButtonRippleColor: string;
106372
+ toolbarButtonWaveOpacity: string;
106370
106373
  toolbarIconColorDisabled: string;
106371
106374
  toolbarIconColorActive: string;
106372
106375
  toolbarIconColorHover: string;
@@ -106376,6 +106379,8 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
106376
106379
  placeholderColor: string;
106377
106380
  sendButtonColor: string;
106378
106381
  sendButtonColorDisabled: string;
106382
+ sendButtonRippleColor: string;
106383
+ sendButtonWaveOpacity: string;
106379
106384
  sendButtonIconSize: string;
106380
106385
  blockTypeTriggerHeight: string;
106381
106386
  blockTypeTriggerPadding: string;
@@ -106995,6 +107000,8 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
106995
107000
  toolbarDividerColor: string;
106996
107001
  toolbarButtonColorActive: string;
106997
107002
  toolbarButtonColorHover: string;
107003
+ toolbarButtonRippleColor: string;
107004
+ toolbarButtonWaveOpacity: string;
106998
107005
  toolbarIconColorDisabled: string;
106999
107006
  toolbarIconColorActive: string;
107000
107007
  toolbarIconColorHover: string;
@@ -107004,6 +107011,8 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
107004
107011
  placeholderColor: string;
107005
107012
  sendButtonColor: string;
107006
107013
  sendButtonColorDisabled: string;
107014
+ sendButtonRippleColor: string;
107015
+ sendButtonWaveOpacity: string;
107007
107016
  sendButtonIconSize: string;
107008
107017
  blockTypeTriggerHeight: string;
107009
107018
  blockTypeTriggerPadding: string;
@@ -107623,6 +107632,8 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
107623
107632
  toolbarDividerColor: string;
107624
107633
  toolbarButtonColorActive: string;
107625
107634
  toolbarButtonColorHover: string;
107635
+ toolbarButtonRippleColor: string;
107636
+ toolbarButtonWaveOpacity: string;
107626
107637
  toolbarIconColorDisabled: string;
107627
107638
  toolbarIconColorActive: string;
107628
107639
  toolbarIconColorHover: string;
@@ -107632,6 +107643,8 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
107632
107643
  placeholderColor: string;
107633
107644
  sendButtonColor: string;
107634
107645
  sendButtonColorDisabled: string;
107646
+ sendButtonRippleColor: string;
107647
+ sendButtonWaveOpacity: string;
107635
107648
  sendButtonIconSize: string;
107636
107649
  blockTypeTriggerHeight: string;
107637
107650
  blockTypeTriggerPadding: string;
@@ -108304,6 +108317,7 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
108304
108317
  readonly type: import("vue").PropType<import("@tiptap/core").Extensions>;
108305
108318
  readonly default: () => never[];
108306
108319
  };
108320
+ readonly nodeProps: import("vue").PropType<import("./editor").EditorNodeProps>;
108307
108321
  readonly onSend: import("vue").PropType<import("./_utils").MaybeArray<(value: string) => void>>;
108308
108322
  readonly onFocus: import("vue").PropType<import("./_utils").MaybeArray<(event: FocusEvent) => void>>;
108309
108323
  readonly onBlur: import("vue").PropType<import("./_utils").MaybeArray<(event: FocusEvent) => void>>;
@@ -108317,6 +108331,8 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
108317
108331
  toolbarDividerColor: string;
108318
108332
  toolbarButtonColorActive: string;
108319
108333
  toolbarButtonColorHover: string;
108334
+ toolbarButtonRippleColor: string;
108335
+ toolbarButtonWaveOpacity: string;
108320
108336
  toolbarIconColorDisabled: string;
108321
108337
  toolbarIconColorActive: string;
108322
108338
  toolbarIconColorHover: string;
@@ -108326,6 +108342,8 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
108326
108342
  placeholderColor: string;
108327
108343
  sendButtonColor: string;
108328
108344
  sendButtonColorDisabled: string;
108345
+ sendButtonRippleColor: string;
108346
+ sendButtonWaveOpacity: string;
108329
108347
  sendButtonIconSize: string;
108330
108348
  blockTypeTriggerHeight: string;
108331
108349
  blockTypeTriggerPadding: string;
@@ -108945,6 +108963,8 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
108945
108963
  toolbarDividerColor: string;
108946
108964
  toolbarButtonColorActive: string;
108947
108965
  toolbarButtonColorHover: string;
108966
+ toolbarButtonRippleColor: string;
108967
+ toolbarButtonWaveOpacity: string;
108948
108968
  toolbarIconColorDisabled: string;
108949
108969
  toolbarIconColorActive: string;
108950
108970
  toolbarIconColorHover: string;
@@ -108954,6 +108974,8 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
108954
108974
  placeholderColor: string;
108955
108975
  sendButtonColor: string;
108956
108976
  sendButtonColorDisabled: string;
108977
+ sendButtonRippleColor: string;
108978
+ sendButtonWaveOpacity: string;
108957
108979
  sendButtonIconSize: string;
108958
108980
  blockTypeTriggerHeight: string;
108959
108981
  blockTypeTriggerPadding: string;
@@ -109573,6 +109595,8 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
109573
109595
  toolbarDividerColor: string;
109574
109596
  toolbarButtonColorActive: string;
109575
109597
  toolbarButtonColorHover: string;
109598
+ toolbarButtonRippleColor: string;
109599
+ toolbarButtonWaveOpacity: string;
109576
109600
  toolbarIconColorDisabled: string;
109577
109601
  toolbarIconColorActive: string;
109578
109602
  toolbarIconColorHover: string;
@@ -109582,6 +109606,8 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
109582
109606
  placeholderColor: string;
109583
109607
  sendButtonColor: string;
109584
109608
  sendButtonColorDisabled: string;
109609
+ sendButtonRippleColor: string;
109610
+ sendButtonWaveOpacity: string;
109585
109611
  sendButtonIconSize: string;
109586
109612
  blockTypeTriggerHeight: string;
109587
109613
  blockTypeTriggerPadding: string;
@@ -110227,6 +110253,8 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
110227
110253
  toolbarDividerColor: string;
110228
110254
  toolbarButtonColorActive: string;
110229
110255
  toolbarButtonColorHover: string;
110256
+ toolbarButtonRippleColor: string;
110257
+ toolbarButtonWaveOpacity: string;
110230
110258
  toolbarIconColorDisabled: string;
110231
110259
  toolbarIconColorActive: string;
110232
110260
  toolbarIconColorHover: string;
@@ -110236,6 +110264,8 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
110236
110264
  placeholderColor: string;
110237
110265
  sendButtonColor: string;
110238
110266
  sendButtonColorDisabled: string;
110267
+ sendButtonRippleColor: string;
110268
+ sendButtonWaveOpacity: string;
110239
110269
  sendButtonIconSize: string;
110240
110270
  blockTypeTriggerHeight: string;
110241
110271
  blockTypeTriggerPadding: string;
@@ -110855,6 +110885,8 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
110855
110885
  toolbarDividerColor: string;
110856
110886
  toolbarButtonColorActive: string;
110857
110887
  toolbarButtonColorHover: string;
110888
+ toolbarButtonRippleColor: string;
110889
+ toolbarButtonWaveOpacity: string;
110858
110890
  toolbarIconColorDisabled: string;
110859
110891
  toolbarIconColorActive: string;
110860
110892
  toolbarIconColorHover: string;
@@ -110864,6 +110896,8 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
110864
110896
  placeholderColor: string;
110865
110897
  sendButtonColor: string;
110866
110898
  sendButtonColorDisabled: string;
110899
+ sendButtonRippleColor: string;
110900
+ sendButtonWaveOpacity: string;
110867
110901
  sendButtonIconSize: string;
110868
110902
  blockTypeTriggerHeight: string;
110869
110903
  blockTypeTriggerPadding: string;
@@ -111483,6 +111517,8 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
111483
111517
  toolbarDividerColor: string;
111484
111518
  toolbarButtonColorActive: string;
111485
111519
  toolbarButtonColorHover: string;
111520
+ toolbarButtonRippleColor: string;
111521
+ toolbarButtonWaveOpacity: string;
111486
111522
  toolbarIconColorDisabled: string;
111487
111523
  toolbarIconColorActive: string;
111488
111524
  toolbarIconColorHover: string;
@@ -111492,6 +111528,8 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
111492
111528
  placeholderColor: string;
111493
111529
  sendButtonColor: string;
111494
111530
  sendButtonColorDisabled: string;
111531
+ sendButtonRippleColor: string;
111532
+ sendButtonWaveOpacity: string;
111495
111533
  sendButtonIconSize: string;
111496
111534
  blockTypeTriggerHeight: string;
111497
111535
  blockTypeTriggerPadding: string;
@@ -112898,6 +112936,8 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
112898
112936
  toolbarDividerColor: string;
112899
112937
  toolbarButtonColorActive: string;
112900
112938
  toolbarButtonColorHover: string;
112939
+ toolbarButtonRippleColor: string;
112940
+ toolbarButtonWaveOpacity: string;
112901
112941
  toolbarIconColorDisabled: string;
112902
112942
  toolbarIconColorActive: string;
112903
112943
  toolbarIconColorHover: string;
@@ -112907,6 +112947,8 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
112907
112947
  placeholderColor: string;
112908
112948
  sendButtonColor: string;
112909
112949
  sendButtonColorDisabled: string;
112950
+ sendButtonRippleColor: string;
112951
+ sendButtonWaveOpacity: string;
112910
112952
  sendButtonIconSize: string;
112911
112953
  blockTypeTriggerHeight: string;
112912
112954
  blockTypeTriggerPadding: string;
@@ -113526,6 +113568,8 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
113526
113568
  toolbarDividerColor: string;
113527
113569
  toolbarButtonColorActive: string;
113528
113570
  toolbarButtonColorHover: string;
113571
+ toolbarButtonRippleColor: string;
113572
+ toolbarButtonWaveOpacity: string;
113529
113573
  toolbarIconColorDisabled: string;
113530
113574
  toolbarIconColorActive: string;
113531
113575
  toolbarIconColorHover: string;
@@ -113535,6 +113579,8 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
113535
113579
  placeholderColor: string;
113536
113580
  sendButtonColor: string;
113537
113581
  sendButtonColorDisabled: string;
113582
+ sendButtonRippleColor: string;
113583
+ sendButtonWaveOpacity: string;
113538
113584
  sendButtonIconSize: string;
113539
113585
  blockTypeTriggerHeight: string;
113540
113586
  blockTypeTriggerPadding: string;
@@ -114154,6 +114200,8 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
114154
114200
  toolbarDividerColor: string;
114155
114201
  toolbarButtonColorActive: string;
114156
114202
  toolbarButtonColorHover: string;
114203
+ toolbarButtonRippleColor: string;
114204
+ toolbarButtonWaveOpacity: string;
114157
114205
  toolbarIconColorDisabled: string;
114158
114206
  toolbarIconColorActive: string;
114159
114207
  toolbarIconColorHover: string;
@@ -114163,6 +114211,8 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
114163
114211
  placeholderColor: string;
114164
114212
  sendButtonColor: string;
114165
114213
  sendButtonColorDisabled: string;
114214
+ sendButtonRippleColor: string;
114215
+ sendButtonWaveOpacity: string;
114166
114216
  sendButtonIconSize: string;
114167
114217
  blockTypeTriggerHeight: string;
114168
114218
  blockTypeTriggerPadding: string;
@@ -114802,6 +114852,8 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
114802
114852
  toolbarDividerColor: string;
114803
114853
  toolbarButtonColorActive: string;
114804
114854
  toolbarButtonColorHover: string;
114855
+ toolbarButtonRippleColor: string;
114856
+ toolbarButtonWaveOpacity: string;
114805
114857
  toolbarIconColorDisabled: string;
114806
114858
  toolbarIconColorActive: string;
114807
114859
  toolbarIconColorHover: string;
@@ -114811,6 +114863,8 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
114811
114863
  placeholderColor: string;
114812
114864
  sendButtonColor: string;
114813
114865
  sendButtonColorDisabled: string;
114866
+ sendButtonRippleColor: string;
114867
+ sendButtonWaveOpacity: string;
114814
114868
  sendButtonIconSize: string;
114815
114869
  blockTypeTriggerHeight: string;
114816
114870
  blockTypeTriggerPadding: string;
@@ -115430,6 +115484,8 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
115430
115484
  toolbarDividerColor: string;
115431
115485
  toolbarButtonColorActive: string;
115432
115486
  toolbarButtonColorHover: string;
115487
+ toolbarButtonRippleColor: string;
115488
+ toolbarButtonWaveOpacity: string;
115433
115489
  toolbarIconColorDisabled: string;
115434
115490
  toolbarIconColorActive: string;
115435
115491
  toolbarIconColorHover: string;
@@ -115439,6 +115495,8 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
115439
115495
  placeholderColor: string;
115440
115496
  sendButtonColor: string;
115441
115497
  sendButtonColorDisabled: string;
115498
+ sendButtonRippleColor: string;
115499
+ sendButtonWaveOpacity: string;
115442
115500
  sendButtonIconSize: string;
115443
115501
  blockTypeTriggerHeight: string;
115444
115502
  blockTypeTriggerPadding: string;
@@ -116058,6 +116116,8 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
116058
116116
  toolbarDividerColor: string;
116059
116117
  toolbarButtonColorActive: string;
116060
116118
  toolbarButtonColorHover: string;
116119
+ toolbarButtonRippleColor: string;
116120
+ toolbarButtonWaveOpacity: string;
116061
116121
  toolbarIconColorDisabled: string;
116062
116122
  toolbarIconColorActive: string;
116063
116123
  toolbarIconColorHover: string;
@@ -116067,6 +116127,8 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
116067
116127
  placeholderColor: string;
116068
116128
  sendButtonColor: string;
116069
116129
  sendButtonColorDisabled: string;
116130
+ sendButtonRippleColor: string;
116131
+ sendButtonWaveOpacity: string;
116070
116132
  sendButtonIconSize: string;
116071
116133
  blockTypeTriggerHeight: string;
116072
116134
  blockTypeTriggerPadding: string;
@@ -116969,6 +117031,8 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
116969
117031
  toolbarDividerColor: string;
116970
117032
  toolbarButtonColorActive: string;
116971
117033
  toolbarButtonColorHover: string;
117034
+ toolbarButtonRippleColor: string;
117035
+ toolbarButtonWaveOpacity: string;
116972
117036
  toolbarIconColorDisabled: string;
116973
117037
  toolbarIconColorActive: string;
116974
117038
  toolbarIconColorHover: string;
@@ -116978,6 +117042,8 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
116978
117042
  placeholderColor: string;
116979
117043
  sendButtonColor: string;
116980
117044
  sendButtonColorDisabled: string;
117045
+ sendButtonRippleColor: string;
117046
+ sendButtonWaveOpacity: string;
116981
117047
  sendButtonIconSize: string;
116982
117048
  blockTypeTriggerHeight: string;
116983
117049
  blockTypeTriggerPadding: string;
@@ -117597,6 +117663,8 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
117597
117663
  toolbarDividerColor: string;
117598
117664
  toolbarButtonColorActive: string;
117599
117665
  toolbarButtonColorHover: string;
117666
+ toolbarButtonRippleColor: string;
117667
+ toolbarButtonWaveOpacity: string;
117600
117668
  toolbarIconColorDisabled: string;
117601
117669
  toolbarIconColorActive: string;
117602
117670
  toolbarIconColorHover: string;
@@ -117606,6 +117674,8 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
117606
117674
  placeholderColor: string;
117607
117675
  sendButtonColor: string;
117608
117676
  sendButtonColorDisabled: string;
117677
+ sendButtonRippleColor: string;
117678
+ sendButtonWaveOpacity: string;
117609
117679
  sendButtonIconSize: string;
117610
117680
  blockTypeTriggerHeight: string;
117611
117681
  blockTypeTriggerPadding: string;
@@ -118225,6 +118295,8 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
118225
118295
  toolbarDividerColor: string;
118226
118296
  toolbarButtonColorActive: string;
118227
118297
  toolbarButtonColorHover: string;
118298
+ toolbarButtonRippleColor: string;
118299
+ toolbarButtonWaveOpacity: string;
118228
118300
  toolbarIconColorDisabled: string;
118229
118301
  toolbarIconColorActive: string;
118230
118302
  toolbarIconColorHover: string;
@@ -118234,6 +118306,8 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
118234
118306
  placeholderColor: string;
118235
118307
  sendButtonColor: string;
118236
118308
  sendButtonColorDisabled: string;
118309
+ sendButtonRippleColor: string;
118310
+ sendButtonWaveOpacity: string;
118237
118311
  sendButtonIconSize: string;
118238
118312
  blockTypeTriggerHeight: string;
118239
118313
  blockTypeTriggerPadding: string;
@@ -142779,8 +142853,12 @@ export declare const UMessageBubble: import("vue").DefineComponent<import("vue")
142779
142853
  readonly type: import("vue").PropType<import("./message-bubble").MarkdownOptions>;
142780
142854
  readonly default: undefined;
142781
142855
  };
142856
+ readonly markdownProps: {
142857
+ readonly type: import("vue").PropType<import("vue").HTMLAttributes>;
142858
+ readonly default: undefined;
142859
+ };
142782
142860
  readonly timestamp: {
142783
- readonly type: import("vue").PropType<string | number | Date | (() => import("vue").VNodeChild)>;
142861
+ readonly type: import("vue").PropType<import("vue").MaybeRefOrGetter<string | number | Date> | (() => import("vue").VNodeChild)>;
142784
142862
  readonly default: undefined;
142785
142863
  };
142786
142864
  readonly status: {
@@ -142966,8 +143044,12 @@ export declare const UMessageBubble: import("vue").DefineComponent<import("vue")
142966
143044
  readonly type: import("vue").PropType<import("./message-bubble").MarkdownOptions>;
142967
143045
  readonly default: undefined;
142968
143046
  };
143047
+ readonly markdownProps: {
143048
+ readonly type: import("vue").PropType<import("vue").HTMLAttributes>;
143049
+ readonly default: undefined;
143050
+ };
142969
143051
  readonly timestamp: {
142970
- readonly type: import("vue").PropType<string | number | Date | (() => import("vue").VNodeChild)>;
143052
+ readonly type: import("vue").PropType<import("vue").MaybeRefOrGetter<string | number | Date> | (() => import("vue").VNodeChild)>;
142971
143053
  readonly default: undefined;
142972
143054
  };
142973
143055
  readonly status: {
@@ -143125,7 +143207,8 @@ export declare const UMessageBubble: import("vue").DefineComponent<import("vue")
143125
143207
  readonly isOwn: boolean;
143126
143208
  readonly markdown: boolean;
143127
143209
  readonly markdownOptions: import("./message-bubble").MarkdownOptions;
143128
- readonly timestamp: string | number | Date | (() => import("vue").VNodeChild);
143210
+ readonly markdownProps: import("vue").HTMLAttributes;
143211
+ readonly timestamp: import("vue").MaybeRefOrGetter<string | number | Date> | (() => import("vue").VNodeChild);
143129
143212
  readonly attachments: import("./message-bubble").MessageBubbleAttachment | import("./message-bubble").MessageBubbleAttachment[];
143130
143213
  readonly uploadProps: Partial<import("./upload").UploadProps>;
143131
143214
  readonly onAttachmentDownload: (attachment: import("./message-bubble").MessageBubbleAttachment) => Promise<void> | void;
@@ -7,6 +7,7 @@ const vooks_1 = require("vooks");
7
7
  const vue_1 = require("vue");
8
8
  const _mixins_1 = require("../../_mixins");
9
9
  const _utils_1 = require("../../_utils");
10
+ const date_locale_1 = require("../../locales/utils/date-locale");
10
11
  const context_1 = require("./context");
11
12
  exports.configProviderProps = {
12
13
  abstract: Boolean,
@@ -312,12 +313,14 @@ exports.default = (0, vue_1.defineComponent)({
312
313
  : locale;
313
314
  }),
314
315
  mergedDateLocaleRef: (0, vue_1.computed)(() => {
315
- const { dateLocale } = props;
316
+ const { dateLocale, locale } = props;
316
317
  if (dateLocale === null)
317
318
  return;
318
- return dateLocale === undefined
319
- ? UConfigProvider === null || UConfigProvider === void 0 ? void 0 : UConfigProvider.mergedDateLocaleRef.value
320
- : dateLocale;
319
+ if (dateLocale !== undefined)
320
+ return dateLocale;
321
+ if (locale !== undefined)
322
+ return locale === null ? undefined : (0, date_locale_1.resolveDateLocale)(locale.name);
323
+ return UConfigProvider === null || UConfigProvider === void 0 ? void 0 : UConfigProvider.mergedDateLocaleRef.value;
321
324
  }),
322
325
  mergedHljsRef: (0, vue_1.computed)(() => {
323
326
  const { hljs } = props;
@@ -6,5 +6,5 @@ export type { SendButtonProps } from './src/EditorParts/SendButton/interface';
6
6
  export type { ToolbarButtonProps } from './src/EditorParts/ToolbarButton/interface';
7
7
  export { createEditorExtensions } from './src/extensions';
8
8
  export { editorInjectionKey, editorProps } from './src/interface';
9
- export type { EditorInst, EditorProps, EditorSlots, EditorToolbar, EditorToolbarItemKey } from './src/interface';
9
+ export type { EditorInst, EditorNodeProps, EditorProps, EditorSlots, EditorToolbar, EditorToolbarItemKey } from './src/interface';
10
10
  export type { Editor } from '@tiptap/vue-3';
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
8
8
  readonly default: "";
9
9
  };
10
10
  readonly placeholder: StringConstructor;
11
- readonly markdownOptions: import("vue").PropType<import("../..").MarkdownOptions>;
11
+ readonly markdownOptions: import("vue").PropType<import("../../_utils/markdown").MarkdownOptions>;
12
12
  readonly toolbar: {
13
13
  readonly type: import("vue").PropType<import("./interface").EditorToolbar>;
14
14
  readonly default: true;
@@ -44,6 +44,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
44
44
  readonly type: import("vue").PropType<import("@tiptap/core").Extensions>;
45
45
  readonly default: () => never[];
46
46
  };
47
+ readonly nodeProps: import("vue").PropType<import("./interface").EditorNodeProps>;
47
48
  readonly onSend: import("vue").PropType<import("../../_utils").MaybeArray<(value: string) => void>>;
48
49
  readonly onFocus: import("vue").PropType<import("../../_utils").MaybeArray<(event: FocusEvent) => void>>;
49
50
  readonly onBlur: import("vue").PropType<import("../../_utils").MaybeArray<(event: FocusEvent) => void>>;
@@ -57,6 +58,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
57
58
  toolbarDividerColor: string;
58
59
  toolbarButtonColorActive: string;
59
60
  toolbarButtonColorHover: string;
61
+ toolbarButtonRippleColor: string;
62
+ toolbarButtonWaveOpacity: string;
60
63
  toolbarIconColorDisabled: string;
61
64
  toolbarIconColorActive: string;
62
65
  toolbarIconColorHover: string;
@@ -66,6 +69,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
66
69
  placeholderColor: string;
67
70
  sendButtonColor: string;
68
71
  sendButtonColorDisabled: string;
72
+ sendButtonRippleColor: string;
73
+ sendButtonWaveOpacity: string;
69
74
  sendButtonIconSize: string;
70
75
  blockTypeTriggerHeight: string;
71
76
  blockTypeTriggerPadding: string;
@@ -685,6 +690,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
685
690
  toolbarDividerColor: string;
686
691
  toolbarButtonColorActive: string;
687
692
  toolbarButtonColorHover: string;
693
+ toolbarButtonRippleColor: string;
694
+ toolbarButtonWaveOpacity: string;
688
695
  toolbarIconColorDisabled: string;
689
696
  toolbarIconColorActive: string;
690
697
  toolbarIconColorHover: string;
@@ -694,6 +701,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
694
701
  placeholderColor: string;
695
702
  sendButtonColor: string;
696
703
  sendButtonColorDisabled: string;
704
+ sendButtonRippleColor: string;
705
+ sendButtonWaveOpacity: string;
697
706
  sendButtonIconSize: string;
698
707
  blockTypeTriggerHeight: string;
699
708
  blockTypeTriggerPadding: string;
@@ -1313,6 +1322,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1313
1322
  toolbarDividerColor: string;
1314
1323
  toolbarButtonColorActive: string;
1315
1324
  toolbarButtonColorHover: string;
1325
+ toolbarButtonRippleColor: string;
1326
+ toolbarButtonWaveOpacity: string;
1316
1327
  toolbarIconColorDisabled: string;
1317
1328
  toolbarIconColorActive: string;
1318
1329
  toolbarIconColorHover: string;
@@ -1322,6 +1333,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1322
1333
  placeholderColor: string;
1323
1334
  sendButtonColor: string;
1324
1335
  sendButtonColorDisabled: string;
1336
+ sendButtonRippleColor: string;
1337
+ sendButtonWaveOpacity: string;
1325
1338
  sendButtonIconSize: string;
1326
1339
  blockTypeTriggerHeight: string;
1327
1340
  blockTypeTriggerPadding: string;
@@ -1958,7 +1971,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1958
1971
  readonly default: "";
1959
1972
  };
1960
1973
  readonly placeholder: StringConstructor;
1961
- readonly markdownOptions: import("vue").PropType<import("../..").MarkdownOptions>;
1974
+ readonly markdownOptions: import("vue").PropType<import("../../_utils/markdown").MarkdownOptions>;
1962
1975
  readonly toolbar: {
1963
1976
  readonly type: import("vue").PropType<import("./interface").EditorToolbar>;
1964
1977
  readonly default: true;
@@ -1994,6 +2007,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1994
2007
  readonly type: import("vue").PropType<import("@tiptap/core").Extensions>;
1995
2008
  readonly default: () => never[];
1996
2009
  };
2010
+ readonly nodeProps: import("vue").PropType<import("./interface").EditorNodeProps>;
1997
2011
  readonly onSend: import("vue").PropType<import("../../_utils").MaybeArray<(value: string) => void>>;
1998
2012
  readonly onFocus: import("vue").PropType<import("../../_utils").MaybeArray<(event: FocusEvent) => void>>;
1999
2013
  readonly onBlur: import("vue").PropType<import("../../_utils").MaybeArray<(event: FocusEvent) => void>>;
@@ -2007,6 +2021,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2007
2021
  toolbarDividerColor: string;
2008
2022
  toolbarButtonColorActive: string;
2009
2023
  toolbarButtonColorHover: string;
2024
+ toolbarButtonRippleColor: string;
2025
+ toolbarButtonWaveOpacity: string;
2010
2026
  toolbarIconColorDisabled: string;
2011
2027
  toolbarIconColorActive: string;
2012
2028
  toolbarIconColorHover: string;
@@ -2016,6 +2032,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2016
2032
  placeholderColor: string;
2017
2033
  sendButtonColor: string;
2018
2034
  sendButtonColorDisabled: string;
2035
+ sendButtonRippleColor: string;
2036
+ sendButtonWaveOpacity: string;
2019
2037
  sendButtonIconSize: string;
2020
2038
  blockTypeTriggerHeight: string;
2021
2039
  blockTypeTriggerPadding: string;
@@ -2635,6 +2653,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2635
2653
  toolbarDividerColor: string;
2636
2654
  toolbarButtonColorActive: string;
2637
2655
  toolbarButtonColorHover: string;
2656
+ toolbarButtonRippleColor: string;
2657
+ toolbarButtonWaveOpacity: string;
2638
2658
  toolbarIconColorDisabled: string;
2639
2659
  toolbarIconColorActive: string;
2640
2660
  toolbarIconColorHover: string;
@@ -2644,6 +2664,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2644
2664
  placeholderColor: string;
2645
2665
  sendButtonColor: string;
2646
2666
  sendButtonColorDisabled: string;
2667
+ sendButtonRippleColor: string;
2668
+ sendButtonWaveOpacity: string;
2647
2669
  sendButtonIconSize: string;
2648
2670
  blockTypeTriggerHeight: string;
2649
2671
  blockTypeTriggerPadding: string;
@@ -3263,6 +3285,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3263
3285
  toolbarDividerColor: string;
3264
3286
  toolbarButtonColorActive: string;
3265
3287
  toolbarButtonColorHover: string;
3288
+ toolbarButtonRippleColor: string;
3289
+ toolbarButtonWaveOpacity: string;
3266
3290
  toolbarIconColorDisabled: string;
3267
3291
  toolbarIconColorActive: string;
3268
3292
  toolbarIconColorHover: string;
@@ -3272,6 +3296,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3272
3296
  placeholderColor: string;
3273
3297
  sendButtonColor: string;
3274
3298
  sendButtonColorDisabled: string;
3299
+ sendButtonRippleColor: string;
3300
+ sendButtonWaveOpacity: string;
3275
3301
  sendButtonIconSize: string;
3276
3302
  blockTypeTriggerHeight: string;
3277
3303
  blockTypeTriggerPadding: string;
@@ -8,6 +8,7 @@ const vooks_1 = require("vooks");
8
8
  const vue_1 = require("vue");
9
9
  const _mixins_1 = require("../../_mixins");
10
10
  const _utils_1 = require("../../_utils");
11
+ const markdown_1 = require("../../_utils/markdown");
11
12
  const styles_1 = require("../styles");
12
13
  const use_editor_css_vars_1 = __importDefault(require("./composables/use-editor-css-vars"));
13
14
  const EditorContent_1 = __importDefault(require("./EditorParts/EditorContent/EditorContent"));
@@ -29,15 +30,19 @@ exports.default = (0, vue_1.defineComponent)({
29
30
  const themeRef = (0, _mixins_1.useTheme)('Editor', '-editor', index_cssr_1.default, styles_1.editorLight, props, mergedClsPrefixRef);
30
31
  const uncontrolledValueRef = (0, vue_1.ref)(props.defaultValue);
31
32
  const mergedValueRef = (0, vooks_1.useMergedState)((0, vue_1.toRef)(props, 'value'), uncontrolledValueRef);
33
+ const parserRef = (0, vue_1.shallowRef)();
34
+ const parserKeyRef = (0, vue_1.shallowRef)();
32
35
  const serializer = (0, serializer_1.createMarkdownSerializer)(props.markdownOptions);
33
36
  const sourceMarkdownRef = (0, vue_1.ref)((_a = mergedValueRef.value) !== null && _a !== void 0 ? _a : '');
34
37
  const loadedDocumentRef = (0, vue_1.ref)(null);
35
38
  const editableRef = (0, vue_1.computed)(() => !props.disabled && !props.readonly);
39
+ const mergedPlaceholderRef = (0, vue_1.computed)(() => { var _a; return (_a = props.placeholder) !== null && _a !== void 0 ? _a : localeRef.value.placeholder; });
36
40
  const editorRef = (0, vue_3_1.useEditor)({
37
41
  extensions: (0, extensions_1.createEditorExtensions)({
38
- placeholder: props.placeholder,
42
+ placeholder: () => mergedPlaceholderRef.value,
39
43
  markdownOptions: props.markdownOptions,
40
44
  extensions: props.extensions,
45
+ nodeProps: props.nodeProps,
41
46
  maxLength: props.maxLength,
42
47
  onSendShortcut: props.sendOnEnter ? handleSend : undefined
43
48
  }),
@@ -75,10 +80,19 @@ exports.default = (0, vue_1.defineComponent)({
75
80
  if (props['onUpdate:value'])
76
81
  (0, _utils_1.call)(props['onUpdate:value'], value);
77
82
  }
83
+ function getParser(instance) {
84
+ const normalizedOptions = (0, markdown_1.normalizeOptions)(props.markdownOptions);
85
+ const key = (0, markdown_1.getMarkdownOptionsKey)(normalizedOptions);
86
+ if (!parserRef.value || parserKeyRef.value !== key) {
87
+ parserKeyRef.value = key;
88
+ parserRef.value = (0, parser_1.createMarkdownParser)(instance.schema, props.markdownOptions);
89
+ }
90
+ return parserRef.value;
91
+ }
78
92
  function setMarkdown(markdown, instance = editorRef.value, addToHistory = true) {
79
93
  if (!instance)
80
94
  return;
81
- const document = (0, parser_1.createMarkdownParser)(instance.schema, props.markdownOptions).parse(markdown);
95
+ const document = getParser(instance).parse(markdown);
82
96
  sourceMarkdownRef.value = markdown;
83
97
  loadedDocumentRef.value = document;
84
98
  instance
@@ -114,6 +128,12 @@ exports.default = (0, vue_1.defineComponent)({
114
128
  var _a;
115
129
  (_a = editorRef.value) === null || _a === void 0 ? void 0 : _a.setEditable(editable);
116
130
  });
131
+ (0, vue_1.watch)(mergedPlaceholderRef, () => {
132
+ const editor = editorRef.value;
133
+ if (!editor)
134
+ return;
135
+ editor.view.dispatch(editor.state.tr.setMeta('addToHistory', false));
136
+ });
117
137
  function focus() {
118
138
  var _a;
119
139
  (_a = editorRef.value) === null || _a === void 0 ? void 0 : _a.commands.focus();