@uzum-tech/ui 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +92 -34
- package/dist/index.mjs +92 -34
- package/dist/index.prod.js +3 -3
- package/dist/index.prod.mjs +3 -3
- package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.mjs +1 -2
- package/es/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.mjs +2 -1
- package/es/chat/src/styles/index.cssr.mjs +11 -12
- package/es/chat/styles/light.mjs +2 -1
- package/es/components.d.ts +83 -0
- package/es/config-provider/src/ConfigProvider.mjs +6 -2
- package/es/editor/index.d.ts +1 -1
- package/es/editor/src/Editor.d.ts +26 -0
- package/es/editor/src/Editor.mjs +11 -1
- package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +24 -0
- package/es/editor/src/EditorParts/EditorContent/interface.d.ts +12 -0
- package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +24 -0
- package/es/editor/src/EditorParts/EditorToolbar/composables/use-editor-toolbar-customization.mjs +2 -0
- package/es/editor/src/EditorParts/EditorToolbar/interface.d.ts +12 -0
- package/es/editor/src/EditorParts/SendButton/SendButton.mjs +3 -1
- package/es/editor/src/composables/use-editor-css-vars.mjs +8 -0
- package/es/editor/src/extensions.d.ts +1 -1
- package/es/editor/src/extensions.mjs +8 -2
- package/es/editor/src/interface.d.ts +19 -1
- package/es/editor/src/interface.mjs +1 -0
- package/es/editor/src/styles/index.cssr.mjs +14 -2
- package/es/editor/styles/dark.d.ts +4 -0
- package/es/editor/styles/light.d.ts +8 -0
- package/es/editor/styles/light.mjs +4 -0
- package/es/locales/common/enUS.d.ts +1 -0
- package/es/locales/common/enUS.mjs +1 -0
- package/es/locales/common/ruRU.mjs +6 -7
- package/es/locales/common/uzUZ.mjs +1 -0
- package/es/locales/common/zhCN.mjs +1 -0
- package/es/locales/utils/date-locale.d.ts +2 -0
- package/es/locales/utils/date-locale.mjs +8 -0
- package/es/message-bubble/src/MessageBubble.d.ts +9 -0
- package/es/message-bubble/src/MessageBubble.mjs +9 -8
- package/es/message-bubble/src/interface.d.ts +5 -1
- package/es/message-bubble/src/interface.mjs +4 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.js +2 -2
- package/lib/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.js +2 -2
- package/lib/chat/src/styles/index.cssr.js +11 -12
- package/lib/chat/styles/light.js +3 -1
- package/lib/components.d.ts +83 -0
- package/lib/config-provider/src/ConfigProvider.js +7 -4
- package/lib/editor/index.d.ts +1 -1
- package/lib/editor/src/Editor.d.ts +26 -0
- package/lib/editor/src/Editor.js +9 -1
- package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +24 -0
- package/lib/editor/src/EditorParts/EditorContent/interface.d.ts +12 -0
- package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +24 -0
- package/lib/editor/src/EditorParts/EditorToolbar/composables/use-editor-toolbar-customization.js +1 -1
- package/lib/editor/src/EditorParts/EditorToolbar/interface.d.ts +12 -0
- package/lib/editor/src/EditorParts/SendButton/SendButton.js +1 -1
- package/lib/editor/src/composables/use-editor-css-vars.js +5 -1
- package/lib/editor/src/extensions.d.ts +1 -1
- package/lib/editor/src/extensions.js +8 -3
- package/lib/editor/src/interface.d.ts +19 -1
- package/lib/editor/src/interface.js +1 -1
- package/lib/editor/src/styles/index.cssr.js +14 -2
- package/lib/editor/styles/dark.d.ts +4 -0
- package/lib/editor/styles/light.d.ts +8 -0
- package/lib/editor/styles/light.js +4 -0
- package/lib/locales/common/enUS.d.ts +1 -0
- package/lib/locales/common/enUS.js +1 -0
- package/lib/locales/common/ruRU.js +6 -7
- package/lib/locales/common/uzUZ.js +1 -0
- package/lib/locales/common/zhCN.js +1 -0
- package/lib/locales/utils/date-locale.d.ts +2 -0
- package/lib/locales/utils/date-locale.js +14 -0
- package/lib/message-bubble/src/MessageBubble.d.ts +9 -0
- package/lib/message-bubble/src/MessageBubble.js +12 -7
- package/lib/message-bubble/src/interface.d.ts +5 -1
- package/lib/message-bubble/src/interface.js +3 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +20 -3
|
@@ -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;
|
|
@@ -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;
|
package/lib/editor/src/Editor.js
CHANGED
|
@@ -33,11 +33,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
33
33
|
const sourceMarkdownRef = (0, vue_1.ref)((_a = mergedValueRef.value) !== null && _a !== void 0 ? _a : '');
|
|
34
34
|
const loadedDocumentRef = (0, vue_1.ref)(null);
|
|
35
35
|
const editableRef = (0, vue_1.computed)(() => !props.disabled && !props.readonly);
|
|
36
|
+
const mergedPlaceholderRef = (0, vue_1.computed)(() => { var _a; return (_a = props.placeholder) !== null && _a !== void 0 ? _a : localeRef.value.placeholder; });
|
|
36
37
|
const editorRef = (0, vue_3_1.useEditor)({
|
|
37
38
|
extensions: (0, extensions_1.createEditorExtensions)({
|
|
38
|
-
placeholder:
|
|
39
|
+
placeholder: () => mergedPlaceholderRef.value,
|
|
39
40
|
markdownOptions: props.markdownOptions,
|
|
40
41
|
extensions: props.extensions,
|
|
42
|
+
nodeProps: props.nodeProps,
|
|
41
43
|
maxLength: props.maxLength,
|
|
42
44
|
onSendShortcut: props.sendOnEnter ? handleSend : undefined
|
|
43
45
|
}),
|
|
@@ -114,6 +116,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
114
116
|
var _a;
|
|
115
117
|
(_a = editorRef.value) === null || _a === void 0 ? void 0 : _a.setEditable(editable);
|
|
116
118
|
});
|
|
119
|
+
(0, vue_1.watch)(mergedPlaceholderRef, () => {
|
|
120
|
+
const editor = editorRef.value;
|
|
121
|
+
if (!editor)
|
|
122
|
+
return;
|
|
123
|
+
editor.view.dispatch(editor.state.tr.setMeta('addToHistory', false));
|
|
124
|
+
});
|
|
117
125
|
function focus() {
|
|
118
126
|
var _a;
|
|
119
127
|
(_a = editorRef.value) === null || _a === void 0 ? void 0 : _a.commands.focus();
|
|
@@ -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;
|
package/lib/editor/src/EditorParts/EditorToolbar/composables/use-editor-toolbar-customization.js
CHANGED
|
@@ -20,7 +20,7 @@ function useEditorToolbarCustomization() {
|
|
|
20
20
|
borderRadiusTiny: '4px'
|
|
21
21
|
};
|
|
22
22
|
function createToolbarButtonThemeOverrides(themeVars, active) {
|
|
23
|
-
return Object.assign(Object.assign({}, TOOLBAR_BUTTON_SIZE_OVERRIDES), { color: active ? themeVars.toolbarButtonColorActive : 'transparent', colorHover: themeVars.toolbarButtonColorHover, colorPressed: themeVars.toolbarButtonColorActive, colorFocus: active ? themeVars.toolbarButtonColorActive : 'transparent', colorDisabled: 'transparent', textColor: active
|
|
23
|
+
return Object.assign(Object.assign({}, TOOLBAR_BUTTON_SIZE_OVERRIDES), { color: active ? themeVars.toolbarButtonColorActive : 'transparent', colorHover: themeVars.toolbarButtonColorHover, colorPressed: themeVars.toolbarButtonColorActive, colorFocus: active ? themeVars.toolbarButtonColorActive : 'transparent', colorDisabled: 'transparent', rippleColor: themeVars.toolbarButtonRippleColor, waveOpacity: themeVars.toolbarButtonWaveOpacity, textColor: active
|
|
24
24
|
? themeVars.toolbarIconColorActive
|
|
25
25
|
: themeVars.toolbarIconColor, textColorHover: active
|
|
26
26
|
? 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;
|
|
@@ -23,7 +23,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
23
23
|
},
|
|
24
24
|
render() {
|
|
25
25
|
return ((0, vue_1.h)(button_1.UxButton, Object.assign({ class: `${this.mergedClsPrefix}-editor__send-button`, size: "tiny", bordered: false, builtinThemeOverrides: this.buttonThemeOverrides, disabled: this.disabled, "aria-label": this.tooltip, onClick: this.handleClick }, this.buttonProps), {
|
|
26
|
-
icon: () => ((0, vue_1.h)(icon_1.UIcon, Object.assign({}, this.iconProps), {
|
|
26
|
+
icon: () => ((0, vue_1.h)(icon_1.UIcon, Object.assign({}, this.iconProps, { size: 20 }), {
|
|
27
27
|
default: () => { var _a, _b, _c; return (_c = (_b = (_a = this.$slots).icon) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (0, vue_1.h)(icons_1.SendFilled, null); }
|
|
28
28
|
}))
|
|
29
29
|
}));
|
|
@@ -5,7 +5,7 @@ const vue_1 = require("vue");
|
|
|
5
5
|
function useEditorCssVars(themeRef, themeVarsRef) {
|
|
6
6
|
return (0, vue_1.computed)(() => {
|
|
7
7
|
const { common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
8
|
-
const { backgroundColor, borderColor, borderRadius, toolbarBackgroundColor, toolbarDividerColor, toolbarButtonColorActive, toolbarButtonColorHover, toolbarIconColorDisabled, toolbarIconColorActive, toolbarIconColorHover, toolbarIconColor, contentBackgroundColor, contentTextColor, placeholderColor, sendButtonColor, blockTypeMenuWidth, blockTypeMenuColor, blockTypeMenuBorderColor, blockTypeMenuBorderRadius, blockTypeMenuBoxShadow, markdownQuoteBorderColor, markdownQuoteTextColor, markdownQuoteBackgroundColor, markdownQuoteMarkerColor, markdownDividerColor, markdownH1FontSize, markdownH2FontSize, markdownH3FontSize, markdownTextFontSize, markdownH1LineHeight, markdownH2LineHeight, markdownH3LineHeight, markdownTextLineHeight } = themeVarsRef.value;
|
|
8
|
+
const { backgroundColor, borderColor, borderRadius, toolbarBackgroundColor, toolbarDividerColor, toolbarButtonColorActive, toolbarButtonColorHover, toolbarButtonRippleColor, toolbarButtonWaveOpacity, toolbarIconColorDisabled, toolbarIconColorActive, toolbarIconColorHover, toolbarIconColor, contentBackgroundColor, contentTextColor, placeholderColor, sendButtonColor, sendButtonRippleColor, sendButtonWaveOpacity, blockTypeMenuWidth, blockTypeMenuColor, blockTypeMenuBorderColor, blockTypeMenuBorderRadius, blockTypeMenuBoxShadow, markdownQuoteBorderColor, markdownQuoteTextColor, markdownQuoteBackgroundColor, markdownQuoteMarkerColor, markdownDividerColor, markdownH1FontSize, markdownH2FontSize, markdownH3FontSize, markdownTextFontSize, markdownH1LineHeight, markdownH2LineHeight, markdownH3LineHeight, markdownTextLineHeight } = themeVarsRef.value;
|
|
9
9
|
return {
|
|
10
10
|
'--u-bezier': cubicBezierEaseInOut,
|
|
11
11
|
'--u-editor-background-color': backgroundColor,
|
|
@@ -15,6 +15,8 @@ function useEditorCssVars(themeRef, themeVarsRef) {
|
|
|
15
15
|
'--u-editor-toolbar-divider-color': toolbarDividerColor,
|
|
16
16
|
'--u-editor-toolbar-button-color-active': toolbarButtonColorActive,
|
|
17
17
|
'--u-editor-toolbar-button-color-hover': toolbarButtonColorHover,
|
|
18
|
+
'--u-editor-toolbar-button-ripple-color': toolbarButtonRippleColor,
|
|
19
|
+
'--u-editor-toolbar-button-wave-opacity': toolbarButtonWaveOpacity,
|
|
18
20
|
'--u-editor-toolbar-icon-color-disabled': toolbarIconColorDisabled,
|
|
19
21
|
'--u-editor-toolbar-icon-color-active': toolbarIconColorActive,
|
|
20
22
|
'--u-editor-toolbar-icon-color-hover': toolbarIconColorHover,
|
|
@@ -23,6 +25,8 @@ function useEditorCssVars(themeRef, themeVarsRef) {
|
|
|
23
25
|
'--u-editor-content-text-color': contentTextColor,
|
|
24
26
|
'--u-editor-placeholder-color': placeholderColor,
|
|
25
27
|
'--u-editor-send-button-color': sendButtonColor,
|
|
28
|
+
'--u-editor-send-button-ripple-color': sendButtonRippleColor,
|
|
29
|
+
'--u-editor-send-button-wave-opacity': sendButtonWaveOpacity,
|
|
26
30
|
'--u-editor-block-type-menu-width': blockTypeMenuWidth,
|
|
27
31
|
'--u-editor-block-type-menu-color': blockTypeMenuColor,
|
|
28
32
|
'--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;
|
|
@@ -99,7 +99,8 @@ exports.MarkdownPaste = core_1.Extension.create({
|
|
|
99
99
|
];
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
|
-
function createEditorExtensions({ placeholder = '', markdownOptions, extensions = [], maxLength, onSendShortcut } = {}) {
|
|
102
|
+
function createEditorExtensions({ placeholder = '', markdownOptions, extensions = [], nodeProps, maxLength, onSendShortcut } = {}) {
|
|
103
|
+
var _a, _b;
|
|
103
104
|
const normalizedOptions = (0, markdown_1.normalizeOptions)(markdownOptions);
|
|
104
105
|
const features = new Set(normalizedOptions.features);
|
|
105
106
|
const headingLevels = constants_1.EDITOR_HEADING_LEVELS.filter(level => level <= normalizedOptions.maxHeadingLevel);
|
|
@@ -114,8 +115,12 @@ function createEditorExtensions({ placeholder = '', markdownOptions, extensions
|
|
|
114
115
|
italic: features.has('italic') && {},
|
|
115
116
|
strike: features.has('strikethrough') && {},
|
|
116
117
|
heading: features.has('heading') && { levels: headingLevels },
|
|
117
|
-
bulletList: features.has('bulletList') && {
|
|
118
|
-
|
|
118
|
+
bulletList: features.has('bulletList') && {
|
|
119
|
+
HTMLAttributes: (_a = nodeProps === null || nodeProps === void 0 ? void 0 : nodeProps.bulletList) !== null && _a !== void 0 ? _a : {}
|
|
120
|
+
},
|
|
121
|
+
orderedList: features.has('orderedList') && {
|
|
122
|
+
HTMLAttributes: (_b = nodeProps === null || nodeProps === void 0 ? void 0 : nodeProps.orderedList) !== null && _b !== void 0 ? _b : {}
|
|
123
|
+
},
|
|
119
124
|
blockquote: features.has('blockquote') && {},
|
|
120
125
|
horizontalRule: features.has('divider') && {},
|
|
121
126
|
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;
|
|
@@ -19,4 +19,4 @@ exports.editorProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
19
19
|
}, disabled: Boolean, readonly: Boolean, autofocus: Boolean, maxLength: Number, maxRows: Number, toolbarButtonProps: Object, toolbarIconProps: Object, toolbarDropdownProps: Object, sendButtonProps: Object, sendIconProps: Object, contentProps: Object, extensions: {
|
|
20
20
|
type: Array,
|
|
21
21
|
default: () => []
|
|
22
|
-
}, onSend: [Function, Array], onFocus: [Function, Array], onBlur: [Function, Array], 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array] });
|
|
22
|
+
}, nodeProps: Object, onSend: [Function, Array], onFocus: [Function, Array], onBlur: [Function, Array], 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array] });
|