@uzum-tech/ui 2.4.6 → 2.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/index.js +109 -19
  2. package/dist/index.mjs +109 -19
  3. package/dist/index.prod.js +2 -2
  4. package/dist/index.prod.mjs +2 -2
  5. package/es/chat/src/styles/index.cssr.mjs +1 -1
  6. package/es/components.d.ts +66 -0
  7. package/es/editor/index.d.ts +1 -1
  8. package/es/editor/src/Editor.d.ts +21 -0
  9. package/es/editor/src/Editor.mjs +5 -2
  10. package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +27 -0
  11. package/es/editor/src/EditorParts/EditorContent/EditorContent.mjs +37 -3
  12. package/es/editor/src/EditorParts/EditorContent/interface.d.ts +11 -0
  13. package/es/editor/src/EditorParts/EditorContent/interface.mjs +2 -0
  14. package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +18 -0
  15. package/es/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
  16. package/es/editor/src/composables/use-editor-css-vars.mjs +8 -2
  17. package/es/editor/src/extensions.d.ts +2 -1
  18. package/es/editor/src/extensions.mjs +34 -4
  19. package/es/editor/src/interface.d.ts +22 -2
  20. package/es/editor/src/interface.mjs +1 -0
  21. package/es/editor/src/styles/index.cssr.mjs +21 -4
  22. package/es/editor/styles/dark.d.ts +3 -0
  23. package/es/editor/styles/light.d.ts +6 -0
  24. package/es/editor/styles/light.mjs +6 -1
  25. package/es/message-bubble/src/styles/index.cssr.mjs +1 -1
  26. package/es/version.d.ts +1 -1
  27. package/es/version.mjs +1 -1
  28. package/lib/chat/src/styles/index.cssr.js +1 -1
  29. package/lib/components.d.ts +66 -0
  30. package/lib/editor/index.d.ts +1 -1
  31. package/lib/editor/src/Editor.d.ts +21 -0
  32. package/lib/editor/src/Editor.js +4 -2
  33. package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +27 -0
  34. package/lib/editor/src/EditorParts/EditorContent/EditorContent.js +30 -3
  35. package/lib/editor/src/EditorParts/EditorContent/interface.d.ts +11 -0
  36. package/lib/editor/src/EditorParts/EditorContent/interface.js +1 -1
  37. package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +18 -0
  38. package/lib/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
  39. package/lib/editor/src/composables/use-editor-css-vars.js +5 -2
  40. package/lib/editor/src/extensions.d.ts +2 -1
  41. package/lib/editor/src/extensions.js +41 -5
  42. package/lib/editor/src/interface.d.ts +22 -2
  43. package/lib/editor/src/interface.js +1 -1
  44. package/lib/editor/src/styles/index.cssr.js +21 -4
  45. package/lib/editor/styles/dark.d.ts +3 -0
  46. package/lib/editor/styles/light.d.ts +6 -0
  47. package/lib/editor/styles/light.js +5 -2
  48. package/lib/message-bubble/src/styles/index.cssr.js +1 -1
  49. package/lib/version.d.ts +1 -1
  50. package/lib/version.js +1 -1
  51. package/package.json +1 -1
  52. package/web-types.json +21 -2
@@ -73,6 +73,9 @@ export declare const editorToolbarProps: {
73
73
  markdownH2LineHeight: string;
74
74
  markdownH3LineHeight: string;
75
75
  markdownTextLineHeight: string;
76
+ countTextColor: string;
77
+ countFontSize: string;
78
+ countLineHeight: string;
76
79
  }, {
77
80
  Button: import("../../../../_mixins").Theme<"Button", {
78
81
  heightTiny: string;
@@ -708,6 +711,9 @@ export declare const editorToolbarProps: {
708
711
  markdownH2LineHeight: string;
709
712
  markdownH3LineHeight: string;
710
713
  markdownTextLineHeight: string;
714
+ countTextColor: string;
715
+ countFontSize: string;
716
+ countLineHeight: string;
711
717
  }, {
712
718
  Button: import("../../../../_mixins").Theme<"Button", {
713
719
  heightTiny: string;
@@ -1343,6 +1349,9 @@ export declare const editorToolbarProps: {
1343
1349
  markdownH2LineHeight: string;
1344
1350
  markdownH3LineHeight: string;
1345
1351
  markdownTextLineHeight: string;
1352
+ countTextColor: string;
1353
+ countFontSize: string;
1354
+ countLineHeight: string;
1346
1355
  }, {
1347
1356
  Button: import("../../../../_mixins").Theme<"Button", {
1348
1357
  heightTiny: string;
@@ -43,7 +43,10 @@ export default function useEditorCssVars(themeRef, themeVarsRef) {
43
43
  markdownH1LineHeight,
44
44
  markdownH2LineHeight,
45
45
  markdownH3LineHeight,
46
- markdownTextLineHeight
46
+ markdownTextLineHeight,
47
+ countTextColor,
48
+ countFontSize,
49
+ countLineHeight
47
50
  } = themeVarsRef.value;
48
51
  return {
49
52
  '--u-bezier': cubicBezierEaseInOut,
@@ -83,7 +86,10 @@ export default function useEditorCssVars(themeRef, themeVarsRef) {
83
86
  '--u-editor-markdown-h1-line-height': markdownH1LineHeight,
84
87
  '--u-editor-markdown-h2-line-height': markdownH2LineHeight,
85
88
  '--u-editor-markdown-h3-line-height': markdownH3LineHeight,
86
- '--u-editor-markdown-text-line-height': markdownTextLineHeight
89
+ '--u-editor-markdown-text-line-height': markdownTextLineHeight,
90
+ '--u-editor-count-text-color': countTextColor,
91
+ '--u-editor-count-font-size': countFontSize,
92
+ '--u-editor-count-line-height': countLineHeight
87
93
  };
88
94
  });
89
95
  }
@@ -1,7 +1,8 @@
1
1
  import type { Extensions } from '@tiptap/core';
2
- import type { CreateEditorExtensionsOptions, MarkdownPasteOptions, SendShortcutOptions } from './interface';
2
+ import type { CharacterLimitOptions, CreateEditorExtensionsOptions, MarkdownPasteOptions, SendShortcutOptions } from './interface';
3
3
  import { Extension } from '@tiptap/core';
4
4
  export declare const MarkdownSource: Extension<any, any>;
5
+ export declare const CharacterLimit: Extension<CharacterLimitOptions, any>;
5
6
  export declare const SendShortcut: Extension<SendShortcutOptions, any>;
6
7
  export declare const MarkdownPaste: Extension<MarkdownPasteOptions, any>;
7
8
  export declare function createEditorExtensions({ placeholder, markdownOptions, extensions, nodeProps, maxLength, onSendShortcut }?: CreateEditorExtensionsOptions): Extensions;
@@ -21,6 +21,36 @@ export const MarkdownSource = Extension.create({
21
21
  }];
22
22
  }
23
23
  });
24
+ export const CharacterLimit = Extension.create({
25
+ name: 'characterLimit',
26
+ addOptions: () => ({
27
+ getLimit: () => undefined
28
+ }),
29
+ addProseMirrorPlugins() {
30
+ const {
31
+ getLimit
32
+ } = this.options;
33
+ const count = node => this.editor.storage.characterCount.characters({
34
+ node
35
+ });
36
+ return [new Plugin({
37
+ filterTransaction: (transaction, state) => {
38
+ const limit = getLimit();
39
+ if (!transaction.docChanged || transaction.getMeta('preventUpdate') || !limit) {
40
+ return true;
41
+ }
42
+ const oldSize = count(state.doc);
43
+ const newSize = count(transaction.doc);
44
+ if (newSize <= limit) return true;
45
+ if (oldSize > limit) return newSize <= oldSize;
46
+ if (!transaction.getMeta('paste')) return false;
47
+ const pos = transaction.selection.$head.pos;
48
+ transaction.deleteRange(pos - (newSize - limit), pos);
49
+ return count(transaction.doc) <= limit;
50
+ }
51
+ })];
52
+ }
53
+ });
24
54
  export const SendShortcut = Extension.create({
25
55
  name: 'sendShortcut',
26
56
  priority: 1000,
@@ -77,7 +107,7 @@ export const MarkdownPaste = Extension.create({
77
107
  }
78
108
  const single = document.childCount === 1 && ((_b = document.firstChild) === null || _b === void 0 ? void 0 : _b.type.name) === 'paragraph';
79
109
  const slice = single ? new Slice(document.content, 1, 1) : new Slice(document.content, 0, 0);
80
- view.dispatch(view.state.tr.replaceSelection(slice).scrollIntoView());
110
+ view.dispatch(view.state.tr.replaceSelection(slice).scrollIntoView().setMeta('paste', true).setMeta('uiEvent', 'paste'));
81
111
  return true;
82
112
  }
83
113
  }
@@ -125,9 +155,9 @@ export function createEditorExtensions({
125
155
  }
126
156
  }), Placeholder.configure({
127
157
  placeholder
128
- }), ...(maxLength === undefined ? [] : [CharacterCount.configure({
129
- limit: maxLength
130
- })]), MarkdownSource, MarkdownPaste.configure({
158
+ }), CharacterCount, CharacterLimit.configure({
159
+ getLimit: typeof maxLength === 'function' ? maxLength : () => maxLength
160
+ }), MarkdownSource, MarkdownPaste.configure({
131
161
  markdownOptions
132
162
  }), ...(onSendShortcut ? [SendShortcut.configure({
133
163
  onSend: onSendShortcut
@@ -1,7 +1,7 @@
1
1
  import type { Extensions } from '@tiptap/core';
2
2
  import type { Editor } from '@tiptap/vue-3';
3
3
  import type { MarkdownSerializer, MarkdownSerializerState } from 'prosemirror-markdown';
4
- import type { HTMLAttributes, PropType, Ref, UnwrapRef, VNodeChild } from 'vue';
4
+ import type { HTMLAttributes, PropType, Ref, UnwrapRef, VNode, VNodeChild } from 'vue';
5
5
  import type { MergedTheme } from '../../_mixins/use-theme';
6
6
  import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
7
7
  import type { MarkdownOptions } from '../../_utils/markdown';
@@ -18,12 +18,15 @@ export interface CreateEditorExtensionsOptions {
18
18
  markdownOptions?: MarkdownOptions;
19
19
  extensions?: Extensions;
20
20
  nodeProps?: EditorNodeProps;
21
- maxLength?: number;
21
+ maxLength?: number | (() => number | undefined);
22
22
  onSendShortcut?: VoidFunction;
23
23
  }
24
24
  export interface SendShortcutOptions {
25
25
  onSend: VoidFunction | null;
26
26
  }
27
+ export interface CharacterLimitOptions {
28
+ getLimit: () => number | undefined;
29
+ }
27
30
  export interface MarkdownPasteOptions {
28
31
  markdownOptions?: MarkdownOptions;
29
32
  }
@@ -31,6 +34,11 @@ export interface EditorSlots {
31
34
  toolbar?: () => VNodeChild;
32
35
  content?: () => VNodeChild;
33
36
  sendIcon?: () => VNodeChild;
37
+ count?: (props: EditorCountSlotProps) => VNode[];
38
+ }
39
+ export interface EditorCountSlotProps {
40
+ count: number;
41
+ maxLength: number | undefined;
34
42
  }
35
43
  export interface MarkdownSerializerStateOptions {
36
44
  tightLists?: boolean;
@@ -82,6 +90,8 @@ export declare const editorInjectionKey: import("vue").InjectionKey<{
82
90
  contentPropsRef: Ref<HTMLAttributes | undefined>;
83
91
  maxRowsRef: Ref<number | undefined>;
84
92
  showSendButtonRef: Ref<boolean>;
93
+ showCountRef: Ref<boolean>;
94
+ maxLengthRef: Ref<number | undefined>;
85
95
  sendDisabledRef: Ref<boolean>;
86
96
  sendTooltipRef: Ref<string>;
87
97
  disabledRef: Ref<boolean>;
@@ -122,6 +132,7 @@ export declare const editorProps: {
122
132
  readonly autofocus: BooleanConstructor;
123
133
  readonly maxLength: NumberConstructor;
124
134
  readonly maxRows: NumberConstructor;
135
+ readonly showCount: BooleanConstructor;
125
136
  readonly toolbarButtonProps: PropType<Partial<ButtonProps>>;
126
137
  readonly toolbarIconProps: PropType<Partial<IconProps>>;
127
138
  readonly toolbarDropdownProps: PropType<Partial<SelectProps>>;
@@ -186,6 +197,9 @@ export declare const editorProps: {
186
197
  markdownH2LineHeight: string;
187
198
  markdownH3LineHeight: string;
188
199
  markdownTextLineHeight: string;
200
+ countTextColor: string;
201
+ countFontSize: string;
202
+ countLineHeight: string;
189
203
  }, {
190
204
  Button: import("../../_mixins").Theme<"Button", {
191
205
  heightTiny: string;
@@ -821,6 +835,9 @@ export declare const editorProps: {
821
835
  markdownH2LineHeight: string;
822
836
  markdownH3LineHeight: string;
823
837
  markdownTextLineHeight: string;
838
+ countTextColor: string;
839
+ countFontSize: string;
840
+ countLineHeight: string;
824
841
  }, {
825
842
  Button: import("../../_mixins").Theme<"Button", {
826
843
  heightTiny: string;
@@ -1456,6 +1473,9 @@ export declare const editorProps: {
1456
1473
  markdownH2LineHeight: string;
1457
1474
  markdownH3LineHeight: string;
1458
1475
  markdownTextLineHeight: string;
1476
+ countTextColor: string;
1477
+ countFontSize: string;
1478
+ countLineHeight: string;
1459
1479
  }, {
1460
1480
  Button: import("../../_mixins").Theme<"Button", {
1461
1481
  heightTiny: string;
@@ -34,6 +34,7 @@ export const editorProps = Object.assign(Object.assign({}, useTheme.props), {
34
34
  autofocus: Boolean,
35
35
  maxLength: Number,
36
36
  maxRows: Number,
37
+ showCount: Boolean,
37
38
  toolbarButtonProps: Object,
38
39
  toolbarIconProps: Object,
39
40
  toolbarDropdownProps: Object,
@@ -39,6 +39,9 @@ import { c, cB, cE, cM } from "../../../_utils/cssr/index.mjs";
39
39
  // --u-editor-markdown-h2-line-height
40
40
  // --u-editor-markdown-h3-line-height
41
41
  // --u-editor-markdown-text-line-height
42
+ // --u-editor-count-text-color
43
+ // --u-editor-count-font-size
44
+ // --u-editor-count-line-height
42
45
  export default c([cB('editor', `
43
46
  box-sizing: border-box;
44
47
  display: flex;
@@ -56,7 +59,11 @@ export default c([cB('editor', `
56
59
  margin: 0;
57
60
  `), cE('toolbar-block-type', `
58
61
  width: 71px;
59
- `)]), cE('content-wrapper', `
62
+ `)]), cE('body', `
63
+ display: flex;
64
+ flex-direction: column;
65
+ gap: 4px;
66
+ `), cE('content-wrapper', `
60
67
  position: relative;
61
68
  box-sizing: border-box;
62
69
  display: flex;
@@ -78,7 +85,14 @@ export default c([cB('editor', `
78
85
  right: 6px;
79
86
  top: 6px;
80
87
  flex-shrink: 0;
81
- `)]), cE('content', `
88
+ `)]), cE('count', `
89
+ align-self: flex-end;
90
+ font-size: var(--u-editor-count-font-size);
91
+ line-height: var(--u-editor-count-line-height);
92
+ color: var(--u-editor-count-text-color);
93
+ white-space: nowrap;
94
+ padding-right: 10px;
95
+ `), cE('content', `
82
96
  white-space: normal;
83
97
  width: 100%;
84
98
  min-width: 0;
@@ -86,7 +100,7 @@ export default c([cB('editor', `
86
100
  color: var(--u-editor-content-text-color);
87
101
  font-size: var(--u-editor-markdown-text-font-size);
88
102
  line-height: var(--u-editor-markdown-text-line-height);
89
- word-wrap: break-word;
103
+ overflow-wrap: anywhere;
90
104
  `, [cM('scrollable', `
91
105
  overflow-y: auto;
92
106
  scrollbar-width: none;
@@ -94,7 +108,10 @@ export default c([cB('editor', `
94
108
  width: 0;
95
109
  height: 0;
96
110
  display: none;
97
- `)]), cE('editable', 'outline: none;', [c('.is-editor-empty:first-child::before', `
111
+ `)]), cE('editable', `
112
+ outline: none;
113
+ overflow-wrap: anywhere;
114
+ `, [c('.is-editor-empty:first-child::before', `
98
115
  content: attr(data-placeholder);
99
116
  float: left;
100
117
  height: 0;
@@ -46,6 +46,9 @@ declare const editorDark: import("../../_mixins").Theme<"Editor", {
46
46
  markdownH2LineHeight: string;
47
47
  markdownH3LineHeight: string;
48
48
  markdownTextLineHeight: string;
49
+ countTextColor: string;
50
+ countFontSize: string;
51
+ countLineHeight: string;
49
52
  }, {
50
53
  Button: import("../../_mixins").Theme<"Button", {
51
54
  heightTiny: string;
@@ -47,6 +47,9 @@ export declare function self(vars: ThemeCommonVars): {
47
47
  markdownH2LineHeight: string;
48
48
  markdownH3LineHeight: string;
49
49
  markdownTextLineHeight: string;
50
+ countTextColor: string;
51
+ countFontSize: string;
52
+ countLineHeight: string;
50
53
  };
51
54
  declare const editorLight: import("../../_mixins").Theme<"Editor", {
52
55
  backgroundColor: string;
@@ -96,6 +99,9 @@ declare const editorLight: import("../../_mixins").Theme<"Editor", {
96
99
  markdownH2LineHeight: string;
97
100
  markdownH3LineHeight: string;
98
101
  markdownTextLineHeight: string;
102
+ countTextColor: string;
103
+ countFontSize: string;
104
+ countLineHeight: string;
99
105
  }, {
100
106
  Button: import("../../_mixins").Theme<"Button", {
101
107
  heightTiny: string;
@@ -17,6 +17,8 @@ export function self(vars) {
17
17
  lineHeightTitleSmall,
18
18
  lineHeightBodyLarge,
19
19
  lineHeightBodyMedium,
20
+ fontBodySmall,
21
+ lineHeightBodySmall,
20
22
  surfacePrimary,
21
23
  elementsQuaternary,
22
24
  elementsQuinary,
@@ -73,7 +75,10 @@ export function self(vars) {
73
75
  markdownH1LineHeight: lineHeightTitleMedium,
74
76
  markdownH2LineHeight: lineHeightTitleSmall,
75
77
  markdownH3LineHeight: lineHeightBodyLarge,
76
- markdownTextLineHeight: lineHeightBodyMedium
78
+ markdownTextLineHeight: lineHeightBodyMedium,
79
+ countTextColor: textTertiary,
80
+ countFontSize: fontBodySmall,
81
+ countLineHeight: lineHeightBodySmall
77
82
  };
78
83
  }
79
84
  const editorLight = createTheme({
@@ -55,7 +55,7 @@ export default cB('message-bubble', `
55
55
  border-radius: var(--u-message-bubble-border-radius);
56
56
  font-size: 14px;
57
57
  line-height: 20px;
58
- word-wrap: break-word;
58
+ overflow-wrap: anywhere;
59
59
  background-color: var(--u-message-bubble-background-color-other);
60
60
  color: var(--u-message-bubble-text-color-other);
61
61
  border-bottom-left-radius: 6px;
package/es/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.4.6";
1
+ declare const _default: "2.4.7";
2
2
  export default _default;
package/es/version.mjs CHANGED
@@ -1 +1 @@
1
- export default '2.4.6';
1
+ export default '2.4.7';
@@ -245,7 +245,7 @@ exports.default = (0, cssr_1.cB)('chat', `
245
245
  border-radius: 18px;
246
246
  font-size: 14px;
247
247
  line-height: 20px;
248
- word-wrap: break-word;
248
+ overflow-wrap: anywhere;
249
249
  background-color: var(--u-message-bubble-background-color-other);
250
250
  color: var(--u-message-bubble-text-color-other);
251
251
  border-bottom-left-radius: 6px;
@@ -106685,6 +106685,7 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
106685
106685
  readonly autofocus: BooleanConstructor;
106686
106686
  readonly maxLength: NumberConstructor;
106687
106687
  readonly maxRows: NumberConstructor;
106688
+ readonly showCount: BooleanConstructor;
106688
106689
  readonly toolbarButtonProps: import("vue").PropType<Partial<import("./button").ButtonProps>>;
106689
106690
  readonly toolbarIconProps: import("vue").PropType<Partial<import("./icon").IconProps>>;
106690
106691
  readonly toolbarDropdownProps: import("vue").PropType<Partial<import("./select").SelectProps>>;
@@ -106749,6 +106750,9 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
106749
106750
  markdownH2LineHeight: string;
106750
106751
  markdownH3LineHeight: string;
106751
106752
  markdownTextLineHeight: string;
106753
+ countTextColor: string;
106754
+ countFontSize: string;
106755
+ countLineHeight: string;
106752
106756
  }, {
106753
106757
  Button: import("./_mixins").Theme<"Button", {
106754
106758
  heightTiny: string;
@@ -107384,6 +107388,9 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
107384
107388
  markdownH2LineHeight: string;
107385
107389
  markdownH3LineHeight: string;
107386
107390
  markdownTextLineHeight: string;
107391
+ countTextColor: string;
107392
+ countFontSize: string;
107393
+ countLineHeight: string;
107387
107394
  }, {
107388
107395
  Button: import("./_mixins").Theme<"Button", {
107389
107396
  heightTiny: string;
@@ -108019,6 +108026,9 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
108019
108026
  markdownH2LineHeight: string;
108020
108027
  markdownH3LineHeight: string;
108021
108028
  markdownTextLineHeight: string;
108029
+ countTextColor: string;
108030
+ countFontSize: string;
108031
+ countLineHeight: string;
108022
108032
  }, {
108023
108033
  Button: import("./_mixins").Theme<"Button", {
108024
108034
  heightTiny: string;
@@ -108657,6 +108667,7 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
108657
108667
  readonly autofocus: BooleanConstructor;
108658
108668
  readonly maxLength: NumberConstructor;
108659
108669
  readonly maxRows: NumberConstructor;
108670
+ readonly showCount: BooleanConstructor;
108660
108671
  readonly toolbarButtonProps: import("vue").PropType<Partial<import("./button").ButtonProps>>;
108661
108672
  readonly toolbarIconProps: import("vue").PropType<Partial<import("./icon").IconProps>>;
108662
108673
  readonly toolbarDropdownProps: import("vue").PropType<Partial<import("./select").SelectProps>>;
@@ -108721,6 +108732,9 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
108721
108732
  markdownH2LineHeight: string;
108722
108733
  markdownH3LineHeight: string;
108723
108734
  markdownTextLineHeight: string;
108735
+ countTextColor: string;
108736
+ countFontSize: string;
108737
+ countLineHeight: string;
108724
108738
  }, {
108725
108739
  Button: import("./_mixins").Theme<"Button", {
108726
108740
  heightTiny: string;
@@ -109356,6 +109370,9 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
109356
109370
  markdownH2LineHeight: string;
109357
109371
  markdownH3LineHeight: string;
109358
109372
  markdownTextLineHeight: string;
109373
+ countTextColor: string;
109374
+ countFontSize: string;
109375
+ countLineHeight: string;
109359
109376
  }, {
109360
109377
  Button: import("./_mixins").Theme<"Button", {
109361
109378
  heightTiny: string;
@@ -109991,6 +110008,9 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
109991
110008
  markdownH2LineHeight: string;
109992
110009
  markdownH3LineHeight: string;
109993
110010
  markdownTextLineHeight: string;
110011
+ countTextColor: string;
110012
+ countFontSize: string;
110013
+ countLineHeight: string;
109994
110014
  }, {
109995
110015
  Button: import("./_mixins").Theme<"Button", {
109996
110016
  heightTiny: string;
@@ -110583,6 +110603,7 @@ export declare const UEditor: import("vue").DefineComponent<import("vue").Extrac
110583
110603
  readonly disabled: boolean;
110584
110604
  readonly readonly: boolean;
110585
110605
  readonly autofocus: boolean;
110606
+ readonly showCount: boolean;
110586
110607
  readonly toolbar: import("./editor").EditorToolbar;
110587
110608
  readonly showSendButton: boolean;
110588
110609
  readonly sendOnEnter: boolean;
@@ -110652,6 +110673,9 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
110652
110673
  markdownH2LineHeight: string;
110653
110674
  markdownH3LineHeight: string;
110654
110675
  markdownTextLineHeight: string;
110676
+ countTextColor: string;
110677
+ countFontSize: string;
110678
+ countLineHeight: string;
110655
110679
  }, {
110656
110680
  Button: import("./_mixins").Theme<"Button", {
110657
110681
  heightTiny: string;
@@ -111287,6 +111311,9 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
111287
111311
  markdownH2LineHeight: string;
111288
111312
  markdownH3LineHeight: string;
111289
111313
  markdownTextLineHeight: string;
111314
+ countTextColor: string;
111315
+ countFontSize: string;
111316
+ countLineHeight: string;
111290
111317
  }, {
111291
111318
  Button: import("./_mixins").Theme<"Button", {
111292
111319
  heightTiny: string;
@@ -111922,6 +111949,9 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
111922
111949
  markdownH2LineHeight: string;
111923
111950
  markdownH3LineHeight: string;
111924
111951
  markdownTextLineHeight: string;
111952
+ countTextColor: string;
111953
+ countFontSize: string;
111954
+ countLineHeight: string;
111925
111955
  }, {
111926
111956
  Button: import("./_mixins").Theme<"Button", {
111927
111957
  heightTiny: string;
@@ -113347,6 +113377,9 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
113347
113377
  markdownH2LineHeight: string;
113348
113378
  markdownH3LineHeight: string;
113349
113379
  markdownTextLineHeight: string;
113380
+ countTextColor: string;
113381
+ countFontSize: string;
113382
+ countLineHeight: string;
113350
113383
  }, {
113351
113384
  Button: import("./_mixins").Theme<"Button", {
113352
113385
  heightTiny: string;
@@ -113982,6 +114015,9 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
113982
114015
  markdownH2LineHeight: string;
113983
114016
  markdownH3LineHeight: string;
113984
114017
  markdownTextLineHeight: string;
114018
+ countTextColor: string;
114019
+ countFontSize: string;
114020
+ countLineHeight: string;
113985
114021
  }, {
113986
114022
  Button: import("./_mixins").Theme<"Button", {
113987
114023
  heightTiny: string;
@@ -114617,6 +114653,9 @@ export declare const UEditorToolbar: import("vue").DefineComponent<import("vue")
114617
114653
  markdownH2LineHeight: string;
114618
114654
  markdownH3LineHeight: string;
114619
114655
  markdownTextLineHeight: string;
114656
+ countTextColor: string;
114657
+ countFontSize: string;
114658
+ countLineHeight: string;
114620
114659
  }, {
114621
114660
  Button: import("./_mixins").Theme<"Button", {
114622
114661
  heightTiny: string;
@@ -115218,6 +115257,8 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
115218
115257
  };
115219
115258
  readonly sendDisabled: BooleanConstructor;
115220
115259
  readonly maxRows: NumberConstructor;
115260
+ readonly showCount: BooleanConstructor;
115261
+ readonly maxLength: NumberConstructor;
115221
115262
  readonly sendTooltip: StringConstructor;
115222
115263
  readonly disabled: BooleanConstructor;
115223
115264
  readonly sendButtonProps: import("vue").PropType<Partial<import("./button").ButtonProps>>;
@@ -115272,6 +115313,9 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
115272
115313
  markdownH2LineHeight: string;
115273
115314
  markdownH3LineHeight: string;
115274
115315
  markdownTextLineHeight: string;
115316
+ countTextColor: string;
115317
+ countFontSize: string;
115318
+ countLineHeight: string;
115275
115319
  }, {
115276
115320
  Button: import("./_mixins").Theme<"Button", {
115277
115321
  heightTiny: string;
@@ -115907,6 +115951,9 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
115907
115951
  markdownH2LineHeight: string;
115908
115952
  markdownH3LineHeight: string;
115909
115953
  markdownTextLineHeight: string;
115954
+ countTextColor: string;
115955
+ countFontSize: string;
115956
+ countLineHeight: string;
115910
115957
  }, {
115911
115958
  Button: import("./_mixins").Theme<"Button", {
115912
115959
  heightTiny: string;
@@ -116542,6 +116589,9 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
116542
116589
  markdownH2LineHeight: string;
116543
116590
  markdownH3LineHeight: string;
116544
116591
  markdownTextLineHeight: string;
116592
+ countTextColor: string;
116593
+ countFontSize: string;
116594
+ countLineHeight: string;
116545
116595
  }, {
116546
116596
  Button: import("./_mixins").Theme<"Button", {
116547
116597
  heightTiny: string;
@@ -117362,6 +117412,10 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
117362
117412
  mergedSendButtonProps: import("vue").ComputedRef<Partial<import("./button").ButtonProps> | undefined>;
117363
117413
  mergedSendIconProps: import("vue").ComputedRef<Partial<import("./icon").IconProps> | undefined>;
117364
117414
  mergedContentProps: import("vue").ComputedRef<import("vue").HTMLAttributes | undefined>;
117415
+ mergedShowCount: import("vue").ComputedRef<boolean>;
117416
+ mergedMaxLength: import("vue").ComputedRef<number | undefined>;
117417
+ countAvailable: import("vue").ComputedRef<boolean>;
117418
+ characterCount: import("vue").Ref<number, number>;
117365
117419
  scrollbarInstRef: import("vue").Ref<{
117366
117420
  $el: HTMLElement;
117367
117421
  containerRef: HTMLElement | null;
@@ -117408,6 +117462,8 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
117408
117462
  };
117409
117463
  readonly sendDisabled: BooleanConstructor;
117410
117464
  readonly maxRows: NumberConstructor;
117465
+ readonly showCount: BooleanConstructor;
117466
+ readonly maxLength: NumberConstructor;
117411
117467
  readonly sendTooltip: StringConstructor;
117412
117468
  readonly disabled: BooleanConstructor;
117413
117469
  readonly sendButtonProps: import("vue").PropType<Partial<import("./button").ButtonProps>>;
@@ -117462,6 +117518,9 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
117462
117518
  markdownH2LineHeight: string;
117463
117519
  markdownH3LineHeight: string;
117464
117520
  markdownTextLineHeight: string;
117521
+ countTextColor: string;
117522
+ countFontSize: string;
117523
+ countLineHeight: string;
117465
117524
  }, {
117466
117525
  Button: import("./_mixins").Theme<"Button", {
117467
117526
  heightTiny: string;
@@ -118097,6 +118156,9 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
118097
118156
  markdownH2LineHeight: string;
118098
118157
  markdownH3LineHeight: string;
118099
118158
  markdownTextLineHeight: string;
118159
+ countTextColor: string;
118160
+ countFontSize: string;
118161
+ countLineHeight: string;
118100
118162
  }, {
118101
118163
  Button: import("./_mixins").Theme<"Button", {
118102
118164
  heightTiny: string;
@@ -118732,6 +118794,9 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
118732
118794
  markdownH2LineHeight: string;
118733
118795
  markdownH3LineHeight: string;
118734
118796
  markdownTextLineHeight: string;
118797
+ countTextColor: string;
118798
+ countFontSize: string;
118799
+ countLineHeight: string;
118735
118800
  }, {
118736
118801
  Button: import("./_mixins").Theme<"Button", {
118737
118802
  heightTiny: string;
@@ -119321,6 +119386,7 @@ export declare const UEditorContent: import("vue").DefineComponent<import("vue")
119321
119386
  }>>>;
119322
119387
  }>> & Readonly<{}>, {
119323
119388
  readonly disabled: boolean;
119389
+ readonly showCount: boolean;
119324
119390
  readonly showSendButton: boolean;
119325
119391
  readonly sendDisabled: boolean;
119326
119392
  }, import("vue").SlotsType<import("./editor").EditorSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -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, EditorNodeProps, EditorProps, EditorSlots, EditorToolbar, EditorToolbarItemKey } from './src/interface';
9
+ export type { EditorCountSlotProps, EditorInst, EditorNodeProps, EditorProps, EditorSlots, EditorToolbar, EditorToolbarItemKey } from './src/interface';
10
10
  export type { Editor } from '@tiptap/vue-3';