hexagon-editor 0.1.8 → 0.1.10

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 (217) hide show
  1. package/README.md +145 -118
  2. package/dist/MarkdownEditor.vue.d.ts +21 -883
  3. package/dist/MarkdownEditor.vue.d.ts.map +1 -1
  4. package/dist/{MarkdownEditorLinkForm-nx1gDLpK.js → MarkdownEditorLinkForm-BAIb4QJp.js} +95 -92
  5. package/dist/background-color-DJ1tENTK.js +80 -0
  6. package/dist/{base-BOV5nzwj.js → base-B5Cf0K33.js} +9 -6
  7. package/dist/classname.d.ts.map +1 -1
  8. package/dist/{color-7y9Yd6c7.js → color-DYgeN76h.js} +268 -267
  9. package/dist/components/MarkdownEditorFloatingMenus.vue.d.ts +14 -17
  10. package/dist/components/MarkdownEditorFloatingMenus.vue.d.ts.map +1 -1
  11. package/dist/components/MarkdownEditorImageActions.vue.d.ts +8 -9
  12. package/dist/components/MarkdownEditorImageActions.vue.d.ts.map +1 -1
  13. package/dist/components/MarkdownEditorToolbar.vue.d.ts +27 -22
  14. package/dist/components/MarkdownEditorToolbar.vue.d.ts.map +1 -1
  15. package/dist/components/MarkdownEditorToolbarIcon.vue.d.ts +2 -1
  16. package/dist/components/MarkdownEditorToolbarIcon.vue.d.ts.map +1 -1
  17. package/dist/composables/useFloatingPanel.d.ts +2 -2
  18. package/dist/composables/useFloatingPanel.d.ts.map +1 -1
  19. package/dist/composables/useMarkdownEditorValue.d.ts +1 -1
  20. package/dist/composables/useMarkdownEditorValue.d.ts.map +1 -1
  21. package/dist/configure.d.ts.map +1 -1
  22. package/dist/core/actions.d.ts.map +1 -1
  23. package/dist/core/basic-editor-atomic-source.d.ts +1 -1
  24. package/dist/core/basic-editor-atomic-source.d.ts.map +1 -1
  25. package/dist/core/basic-editor-command-helpers.d.ts +8 -6
  26. package/dist/core/basic-editor-command-helpers.d.ts.map +1 -1
  27. package/dist/core/basic-editor-markdown.d.ts +4 -2
  28. package/dist/core/basic-editor-markdown.d.ts.map +1 -1
  29. package/dist/core/basic-editor-renderers.d.ts +2 -2
  30. package/dist/core/basic-editor-renderers.d.ts.map +1 -1
  31. package/dist/core/basic-editor-runtime-plugins.d.ts +3 -3
  32. package/dist/core/basic-editor-runtime-plugins.d.ts.map +1 -1
  33. package/dist/core/basic-editor-selection.d.ts +3 -3
  34. package/dist/core/basic-editor-selection.d.ts.map +1 -1
  35. package/dist/core/basic-editor-types.d.ts +10 -8
  36. package/dist/core/basic-editor-types.d.ts.map +1 -1
  37. package/dist/core/basic-editor.d.ts +7 -4
  38. package/dist/core/basic-editor.d.ts.map +1 -1
  39. package/dist/core/content-handler.d.ts +2 -2
  40. package/dist/core/content-handler.d.ts.map +1 -1
  41. package/dist/core/editor-instance.d.ts +2 -2
  42. package/dist/core/editor-instance.d.ts.map +1 -1
  43. package/dist/core/events.d.ts.map +1 -1
  44. package/dist/core/extension-builder.d.ts +4 -4
  45. package/dist/core/extension-builder.d.ts.map +1 -1
  46. package/dist/core/extensions-manager.d.ts +7 -5
  47. package/dist/core/extensions-manager.d.ts.map +1 -1
  48. package/dist/core/index.d.ts +1 -1
  49. package/dist/core/index.d.ts.map +1 -1
  50. package/dist/core/lists.d.ts +3 -2
  51. package/dist/core/lists.d.ts.map +1 -1
  52. package/dist/core/logger.d.ts +1 -1
  53. package/dist/core/logger.d.ts.map +1 -1
  54. package/dist/core/markdown-parser.d.ts +3 -3
  55. package/dist/core/markdown-parser.d.ts.map +1 -1
  56. package/dist/core/markdown.d.ts +3 -2
  57. package/dist/core/markdown.d.ts.map +1 -1
  58. package/dist/core/markup-commands.d.ts +1 -1
  59. package/dist/core/markup-commands.d.ts.map +1 -1
  60. package/dist/core/markup-editor.d.ts +1 -1
  61. package/dist/core/markup-editor.d.ts.map +1 -1
  62. package/dist/core/registries.d.ts +6 -3
  63. package/dist/core/registries.d.ts.map +1 -1
  64. package/dist/core/schema-dynamic-modifier.d.ts +1 -1
  65. package/dist/core/schema-dynamic-modifier.d.ts.map +1 -1
  66. package/dist/core/vue-renderer.d.ts +6 -4
  67. package/dist/core/vue-renderer.d.ts.map +1 -1
  68. package/dist/core.d.ts +1 -0
  69. package/dist/core.js +17 -16
  70. package/dist/directives-CqalziGj.js +11 -0
  71. package/dist/directives.d.ts +23 -4
  72. package/dist/directives.d.ts.map +1 -1
  73. package/dist/extensions/additional/folding-heading.d.ts +3 -2
  74. package/dist/extensions/additional/folding-heading.d.ts.map +1 -1
  75. package/dist/extensions/additional/math.d.ts +7 -5
  76. package/dist/extensions/additional/math.d.ts.map +1 -1
  77. package/dist/extensions/additional/mermaid.d.ts +7 -5
  78. package/dist/extensions/additional/mermaid.d.ts.map +1 -1
  79. package/dist/extensions/additional/quote-link.d.ts +7 -5
  80. package/dist/extensions/additional/quote-link.d.ts.map +1 -1
  81. package/dist/extensions/additional/yfm-html-block.d.ts +7 -5
  82. package/dist/extensions/additional/yfm-html-block.d.ts.map +1 -1
  83. package/dist/extensions/base.d.ts +1 -1
  84. package/dist/extensions/base.d.ts.map +1 -1
  85. package/dist/extensions/behavior/clicks-on-edges.d.ts +2 -2
  86. package/dist/extensions/behavior/clicks-on-edges.d.ts.map +1 -1
  87. package/dist/extensions/behavior/clipboard.d.ts +2 -2
  88. package/dist/extensions/behavior/cursor.d.ts +4 -3
  89. package/dist/extensions/behavior/cursor.d.ts.map +1 -1
  90. package/dist/extensions/behavior/editor-mode-keymap.d.ts +1 -1
  91. package/dist/extensions/behavior/editor-mode-keymap.d.ts.map +1 -1
  92. package/dist/extensions/behavior/history.d.ts +2 -2
  93. package/dist/extensions/behavior/history.d.ts.map +1 -1
  94. package/dist/extensions/behavior/placeholder.d.ts +1 -1
  95. package/dist/extensions/behavior/placeholder.d.ts.map +1 -1
  96. package/dist/extensions/behavior/resizable.d.ts +1 -1
  97. package/dist/extensions/behavior/selection-commands.d.ts +3 -2
  98. package/dist/extensions/behavior/selection-commands.d.ts.map +1 -1
  99. package/dist/extensions/behavior/selection-context.d.ts +3 -3
  100. package/dist/extensions/behavior/selection-context.d.ts.map +1 -1
  101. package/dist/extensions/behavior/selection.d.ts +1 -1
  102. package/dist/extensions/behavior/selection.d.ts.map +1 -1
  103. package/dist/extensions/index.d.ts +1 -0
  104. package/dist/extensions/index.d.ts.map +1 -1
  105. package/dist/extensions/markdown/background-color.d.ts +17 -0
  106. package/dist/extensions/markdown/background-color.d.ts.map +1 -0
  107. package/dist/extensions/markdown/blockquote-specs.d.ts +4 -3
  108. package/dist/extensions/markdown/blockquote-specs.d.ts.map +1 -1
  109. package/dist/extensions/markdown/blockquote.d.ts +3 -3
  110. package/dist/extensions/markdown/blockquote.d.ts.map +1 -1
  111. package/dist/extensions/markdown/bold-specs.d.ts +4 -3
  112. package/dist/extensions/markdown/bold.d.ts +3 -3
  113. package/dist/extensions/markdown/bold.d.ts.map +1 -1
  114. package/dist/extensions/markdown/breaks-specs.d.ts +4 -3
  115. package/dist/extensions/markdown/breaks-specs.d.ts.map +1 -1
  116. package/dist/extensions/markdown/breaks.d.ts +2 -2
  117. package/dist/extensions/markdown/breaks.d.ts.map +1 -1
  118. package/dist/extensions/markdown/code-block-specs.d.ts +4 -3
  119. package/dist/extensions/markdown/code-block.d.ts +3 -3
  120. package/dist/extensions/markdown/code-block.d.ts.map +1 -1
  121. package/dist/extensions/markdown/code-specs.d.ts +4 -3
  122. package/dist/extensions/markdown/code.d.ts +4 -3
  123. package/dist/extensions/markdown/code.d.ts.map +1 -1
  124. package/dist/extensions/markdown/color.d.ts +9 -7
  125. package/dist/extensions/markdown/color.d.ts.map +1 -1
  126. package/dist/extensions/markdown/deflist-specs.d.ts +4 -3
  127. package/dist/extensions/markdown/deflist-specs.d.ts.map +1 -1
  128. package/dist/extensions/markdown/deflist.d.ts +5 -5
  129. package/dist/extensions/markdown/deflist.d.ts.map +1 -1
  130. package/dist/extensions/markdown/heading-specs.d.ts +4 -3
  131. package/dist/extensions/markdown/heading.d.ts +3 -3
  132. package/dist/extensions/markdown/heading.d.ts.map +1 -1
  133. package/dist/extensions/markdown/horizontal-rule-specs.d.ts +4 -3
  134. package/dist/extensions/markdown/horizontal-rule.d.ts +3 -3
  135. package/dist/extensions/markdown/horizontal-rule.d.ts.map +1 -1
  136. package/dist/extensions/markdown/html.d.ts +4 -3
  137. package/dist/extensions/markdown/html.d.ts.map +1 -1
  138. package/dist/extensions/markdown/image.d.ts +7 -6
  139. package/dist/extensions/markdown/image.d.ts.map +1 -1
  140. package/dist/extensions/markdown/italic-specs.d.ts +4 -3
  141. package/dist/extensions/markdown/italic.d.ts +3 -3
  142. package/dist/extensions/markdown/italic.d.ts.map +1 -1
  143. package/dist/extensions/markdown/link-specs.d.ts +5 -4
  144. package/dist/extensions/markdown/link.d.ts +3 -3
  145. package/dist/extensions/markdown/link.d.ts.map +1 -1
  146. package/dist/extensions/markdown/list-specs.d.ts +3 -2
  147. package/dist/extensions/markdown/list-specs.d.ts.map +1 -1
  148. package/dist/extensions/markdown/lists.d.ts +3 -3
  149. package/dist/extensions/markdown/lists.d.ts.map +1 -1
  150. package/dist/extensions/markdown/mark.d.ts +5 -4
  151. package/dist/extensions/markdown/mark.d.ts.map +1 -1
  152. package/dist/extensions/markdown/strike.d.ts +5 -4
  153. package/dist/extensions/markdown/strike.d.ts.map +1 -1
  154. package/dist/extensions/markdown/subscript.d.ts +5 -4
  155. package/dist/extensions/markdown/subscript.d.ts.map +1 -1
  156. package/dist/extensions/markdown/table-actions.d.ts +2 -2
  157. package/dist/extensions/markdown/table-actions.d.ts.map +1 -1
  158. package/dist/extensions/markdown/table-specs.d.ts +4 -3
  159. package/dist/extensions/markdown/table-specs.d.ts.map +1 -1
  160. package/dist/extensions/markdown/table.d.ts +1 -1
  161. package/dist/extensions/markdown/table.d.ts.map +1 -1
  162. package/dist/extensions/markdown/underline.d.ts +5 -4
  163. package/dist/extensions/markdown/underline.d.ts.map +1 -1
  164. package/dist/extensions.d.ts +1 -0
  165. package/dist/extensions.js +121 -111
  166. package/dist/forms/MarkdownEditorForm.vue.d.ts +14 -21
  167. package/dist/forms/MarkdownEditorForm.vue.d.ts.map +1 -1
  168. package/dist/forms/MarkdownEditorImageForm.vue.d.ts +13 -81
  169. package/dist/forms/MarkdownEditorImageForm.vue.d.ts.map +1 -1
  170. package/dist/forms/MarkdownEditorLinkForm.vue.d.ts +9 -79
  171. package/dist/forms/MarkdownEditorLinkForm.vue.d.ts.map +1 -1
  172. package/dist/forms/MarkdownEditorTextInput.vue.d.ts +8 -9
  173. package/dist/forms/MarkdownEditorTextInput.vue.d.ts.map +1 -1
  174. package/dist/forms.d.ts +1 -0
  175. package/dist/forms.js +1 -1
  176. package/dist/{full-s-sYdwp2.js → full-DakJ7Z5o.js} +1 -1
  177. package/dist/{full-specs-Cm3QffD5.js → full-specs-CE16SWE6.js} +1 -1
  178. package/dist/i18n/index.d.ts +11 -1
  179. package/dist/i18n/index.d.ts.map +1 -1
  180. package/dist/i18n.d.ts +1 -0
  181. package/dist/i18n.js +24 -4
  182. package/dist/index.css +1 -1
  183. package/dist/index.d.ts +1 -1
  184. package/dist/index.d.ts.map +1 -1
  185. package/dist/index.js +963 -862
  186. package/dist/{markup-commands-uq7LBcNQ.js → markup-commands-C-IL6Ajf.js} +2340 -2268
  187. package/dist/presets/commonmark-specs.d.ts +2 -2
  188. package/dist/presets/commonmark.d.ts +11 -11
  189. package/dist/presets/commonmark.d.ts.map +1 -1
  190. package/dist/presets/default.d.ts +2 -2
  191. package/dist/presets/full-specs.d.ts +2 -2
  192. package/dist/presets/full.d.ts +7 -7
  193. package/dist/presets/full.d.ts.map +1 -1
  194. package/dist/presets/zero.d.ts +2 -2
  195. package/dist/presets/zero.d.ts.map +1 -1
  196. package/dist/presets.d.ts +1 -0
  197. package/dist/presets.js +2 -2
  198. package/dist/public-types.d.ts +1 -1
  199. package/dist/public-types.d.ts.map +1 -1
  200. package/dist/renderer/MarkdownRenderer.vue.d.ts +11 -9
  201. package/dist/renderer/MarkdownRenderer.vue.d.ts.map +1 -1
  202. package/dist/renderer/index.d.ts +1 -1
  203. package/dist/renderer/index.d.ts.map +1 -1
  204. package/dist/renderer/markdown.d.ts +3 -2
  205. package/dist/renderer/markdown.d.ts.map +1 -1
  206. package/dist/renderer.css +1 -1
  207. package/dist/renderer.d.ts +1 -0
  208. package/dist/renderer.js +872 -800
  209. package/dist/toolbar/config.d.ts +3 -3
  210. package/dist/toolbar/config.d.ts.map +1 -1
  211. package/dist/toolbar/index.d.ts.map +1 -1
  212. package/dist/toolbar.d.ts +1 -0
  213. package/dist/toolbar.js +21 -20
  214. package/dist/use-markdown-editor.d.ts +3 -3
  215. package/dist/use-markdown-editor.d.ts.map +1 -1
  216. package/dist/version.d.ts +1 -1
  217. package/package.json +104 -105
@@ -1,10 +1,7 @@
1
- import { nextTick } from 'vue';
2
- import { MarkdownEditorImageUpload } from './forms/MarkdownEditorImageForm.vue';
3
- import { MarkdownEditorMessageKey } from './i18n';
4
- import { BasicWysiwygSelectionState } from './core';
5
- import { MarkdownEditorMode, MarkdownEditorCursorPosition, MarkdownEditorLocale, MarkdownEditorToolbarPreset, MarkdownEditorTheme, MarkdownFeatures } from './public-types';
6
- import { MarkdownEditorToolbarConfig } from './toolbar';
7
- import { MarkdownDirectiveComponents } from './directives';
1
+ import type { MarkdownEditorImageUpload } from './forms/MarkdownEditorImageForm.vue';
2
+ import type { MarkdownEditorMode, MarkdownEditorCursorPosition, MarkdownEditorLocale, MarkdownEditorToolbarPreset, MarkdownEditorTheme, MarkdownFeatures } from './public-types';
3
+ import type { MarkdownEditorToolbarConfig } from './toolbar';
4
+ import type { MarkdownDirectives } from './directives';
8
5
  export interface MarkdownEditorExposed {
9
6
  append(markup: string): void;
10
7
  clear(): void;
@@ -22,7 +19,7 @@ export interface MarkdownEditorExposed {
22
19
  }
23
20
  type __VLS_Props = {
24
21
  modelValue?: string;
25
- directiveComponents?: MarkdownDirectiveComponents;
22
+ directives?: MarkdownDirectives;
26
23
  mode?: MarkdownEditorMode;
27
24
  locale?: MarkdownEditorLocale;
28
25
  placeholder?: string;
@@ -34,462 +31,23 @@ type __VLS_Props = {
34
31
  theme?: MarkdownEditorTheme;
35
32
  features?: MarkdownFeatures;
36
33
  };
37
- declare function __VLS_template(): {
38
- attrs: Partial<{}>;
39
- slots: {
40
- header?(_: {}): any;
41
- toolbar?(_: {
42
- commands: import('./core').BasicEditorCommands;
43
- execute: (command: import('prosemirror-state').Command) => void;
44
- }): any;
45
- };
46
- refs: {
47
- floatingMenus: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
48
- codeVisible: boolean;
49
- colorVisible: boolean;
50
- formulaVisible: boolean;
51
- headingVisible: boolean;
52
- listVisible: boolean;
53
- mode: MarkdownEditorMode;
54
- modeVisible: boolean;
55
- state: BasicWysiwygSelectionState;
56
- textStyle: string;
57
- theme: MarkdownEditorTheme;
58
- translate: (key: MarkdownEditorMessageKey) => string;
59
- }> & Readonly<{
60
- "onCode-block"?: (() => any) | undefined;
61
- "onSelect-color"?: ((color: "gray" | "yellow" | "orange" | "red" | "green" | "blue" | "violet") => any) | undefined;
62
- "onInline-code"?: (() => any) | undefined;
63
- "onInline-formula"?: (() => any) | undefined;
64
- "onMath-block"?: (() => any) | undefined;
65
- "onSelect-mode"?: ((mode: MarkdownEditorMode) => any) | undefined;
66
- "onSelect-text-style"?: ((style: string) => any) | undefined;
67
- "onBullet-list"?: (() => any) | undefined;
68
- "onOrdered-list"?: (() => any) | undefined;
69
- "onIndent-list"?: (() => any) | undefined;
70
- "onOutdent-list"?: (() => any) | undefined;
71
- }>, {
72
- getElement(name: "code" | "color" | "formula" | "heading" | "list" | "mode"): HTMLElement | undefined;
73
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
74
- "code-block": () => any;
75
- "select-color": (color: "gray" | "yellow" | "orange" | "red" | "green" | "blue" | "violet") => any;
76
- "inline-code": () => any;
77
- "inline-formula": () => any;
78
- "math-block": () => any;
79
- "select-mode": (mode: MarkdownEditorMode) => any;
80
- "select-text-style": (style: string) => any;
81
- "bullet-list": () => any;
82
- "ordered-list": () => any;
83
- "indent-list": () => any;
84
- "outdent-list": () => any;
85
- }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
86
- color: HTMLDivElement;
87
- code: HTMLDivElement;
88
- heading: HTMLDivElement;
89
- formula: HTMLDivElement;
90
- list: HTMLDivElement;
91
- modeMenu: HTMLDivElement;
92
- }, any, import('vue').ComponentProvideOptions, {
93
- P: {};
94
- B: {};
95
- D: {};
96
- C: {};
97
- M: {};
98
- Defaults: {};
99
- }, Readonly<{
100
- codeVisible: boolean;
101
- colorVisible: boolean;
102
- formulaVisible: boolean;
103
- headingVisible: boolean;
104
- listVisible: boolean;
105
- mode: MarkdownEditorMode;
106
- modeVisible: boolean;
107
- state: BasicWysiwygSelectionState;
108
- textStyle: string;
109
- theme: MarkdownEditorTheme;
110
- translate: (key: MarkdownEditorMessageKey) => string;
111
- }> & Readonly<{
112
- "onCode-block"?: (() => any) | undefined;
113
- "onSelect-color"?: ((color: "gray" | "yellow" | "orange" | "red" | "green" | "blue" | "violet") => any) | undefined;
114
- "onInline-code"?: (() => any) | undefined;
115
- "onInline-formula"?: (() => any) | undefined;
116
- "onMath-block"?: (() => any) | undefined;
117
- "onSelect-mode"?: ((mode: MarkdownEditorMode) => any) | undefined;
118
- "onSelect-text-style"?: ((style: string) => any) | undefined;
119
- "onBullet-list"?: (() => any) | undefined;
120
- "onOrdered-list"?: (() => any) | undefined;
121
- "onIndent-list"?: (() => any) | undefined;
122
- "onOutdent-list"?: (() => any) | undefined;
123
- }>, {
124
- getElement(name: "code" | "color" | "formula" | "heading" | "list" | "mode"): HTMLElement | undefined;
125
- }, {}, {}, {}, {}> | null;
126
- linkForm: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
127
- autofocus?: boolean;
128
- disabled?: boolean;
129
- hasCurrentLink?: boolean;
130
- locale?: MarkdownEditorLocale;
131
- openInNewWindow?: boolean;
132
- readOnlyText?: boolean;
133
- text?: string;
134
- theme?: MarkdownEditorTheme;
135
- url?: string;
136
- }> & Readonly<{
137
- onCancel?: (() => any) | undefined;
138
- onInvalid?: ((message: string) => any) | undefined;
139
- onApply?: ((params: import('.').MarkdownEditorLinkSubmitParams) => any) | undefined;
140
- onRemove?: (() => any) | undefined;
141
- "onUpdate:url"?: ((value: string) => any) | undefined;
142
- "onUpdate:text"?: ((value: string) => any) | undefined;
143
- "onUpdate:openInNewWindow"?: ((value: boolean) => any) | undefined;
144
- }>, {
145
- element: import('vue').ComputedRef<HTMLFormElement | undefined>;
146
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
147
- cancel: () => any;
148
- invalid: (message: string) => any;
149
- apply: (params: import('.').MarkdownEditorLinkSubmitParams) => any;
150
- remove: () => any;
151
- "update:url": (value: string) => any;
152
- "update:text": (value: string) => any;
153
- "update:openInNewWindow": (value: boolean) => any;
154
- }, import('vue').PublicProps, {
155
- text: string;
156
- disabled: boolean;
157
- theme: MarkdownEditorTheme;
158
- url: string;
159
- autofocus: boolean;
160
- locale: MarkdownEditorLocale;
161
- hasCurrentLink: boolean;
162
- openInNewWindow: boolean;
163
- readOnlyText: boolean;
164
- }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
165
- form: ({
166
- $: import('vue').ComponentInternalInstance;
167
- $data: {};
168
- $props: {
169
- readonly disabled?: boolean | undefined;
170
- readonly theme?: MarkdownEditorTheme | undefined;
171
- readonly onSubmit?: (() => any) | undefined;
172
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
173
- $attrs: import('vue').Attrs;
174
- $refs: {
175
- [x: string]: unknown;
176
- } & {
177
- element: HTMLFormElement;
178
- };
179
- $slots: Readonly<{
180
- [name: string]: import('vue').Slot<any> | undefined;
181
- }>;
182
- $root: import('vue').ComponentPublicInstance | null;
183
- $parent: import('vue').ComponentPublicInstance | null;
184
- $host: Element | null;
185
- $emit: (event: "submit") => void;
186
- $el: HTMLFormElement;
187
- $options: import('vue').ComponentOptionsBase<Readonly<{
188
- disabled?: boolean;
189
- theme?: MarkdownEditorTheme;
190
- }> & Readonly<{
191
- onSubmit?: (() => any) | undefined;
192
- }>, {
193
- element: import('vue').Ref<HTMLFormElement | undefined, HTMLFormElement | undefined>;
194
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
195
- submit: () => any;
196
- }, string, {
197
- disabled: boolean;
198
- theme: MarkdownEditorTheme;
199
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
200
- beforeCreate?: (() => void) | (() => void)[];
201
- created?: (() => void) | (() => void)[];
202
- beforeMount?: (() => void) | (() => void)[];
203
- mounted?: (() => void) | (() => void)[];
204
- beforeUpdate?: (() => void) | (() => void)[];
205
- updated?: (() => void) | (() => void)[];
206
- activated?: (() => void) | (() => void)[];
207
- deactivated?: (() => void) | (() => void)[];
208
- beforeDestroy?: (() => void) | (() => void)[];
209
- beforeUnmount?: (() => void) | (() => void)[];
210
- destroyed?: (() => void) | (() => void)[];
211
- unmounted?: (() => void) | (() => void)[];
212
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
213
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
214
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
215
- };
216
- $forceUpdate: () => void;
217
- $nextTick: typeof nextTick;
218
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
219
- } & Readonly<{
220
- disabled: boolean;
221
- theme: MarkdownEditorTheme;
222
- }> & Omit<Readonly<{
223
- disabled?: boolean;
224
- theme?: MarkdownEditorTheme;
225
- }> & Readonly<{
226
- onSubmit?: (() => any) | undefined;
227
- }>, "element" | ("disabled" | "theme")> & {
228
- element: HTMLFormElement | undefined;
229
- } & {} & import('vue').ComponentCustomProperties & {} & {
230
- $slots: {
231
- default?(_: {}): any;
232
- footer?(_: {}): any;
233
- };
234
- }) | null;
235
- }, HTMLFormElement, import('vue').ComponentProvideOptions, {
236
- P: {};
237
- B: {};
238
- D: {};
239
- C: {};
240
- M: {};
241
- Defaults: {};
242
- }, Readonly<{
243
- autofocus?: boolean;
244
- disabled?: boolean;
245
- hasCurrentLink?: boolean;
246
- locale?: MarkdownEditorLocale;
247
- openInNewWindow?: boolean;
248
- readOnlyText?: boolean;
249
- text?: string;
250
- theme?: MarkdownEditorTheme;
251
- url?: string;
252
- }> & Readonly<{
253
- onCancel?: (() => any) | undefined;
254
- onInvalid?: ((message: string) => any) | undefined;
255
- onApply?: ((params: import('.').MarkdownEditorLinkSubmitParams) => any) | undefined;
256
- onRemove?: (() => any) | undefined;
257
- "onUpdate:url"?: ((value: string) => any) | undefined;
258
- "onUpdate:text"?: ((value: string) => any) | undefined;
259
- "onUpdate:openInNewWindow"?: ((value: boolean) => any) | undefined;
260
- }>, {
261
- element: import('vue').ComputedRef<HTMLFormElement | undefined>;
262
- }, {}, {}, {}, {
263
- text: string;
264
- disabled: boolean;
265
- theme: MarkdownEditorTheme;
266
- url: string;
267
- autofocus: boolean;
268
- locale: MarkdownEditorLocale;
269
- hasCurrentLink: boolean;
270
- openInNewWindow: boolean;
271
- readOnlyText: boolean;
272
- }> | null;
273
- imageForm: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
274
- alt?: string;
275
- autofocus?: boolean;
276
- disabled?: boolean;
277
- height?: number | string;
278
- locale?: MarkdownEditorLocale;
279
- name?: string;
280
- title?: string;
281
- theme?: MarkdownEditorTheme;
282
- uploadImage?: MarkdownEditorImageUpload;
283
- url?: string;
284
- width?: number | string;
285
- }> & Readonly<{
286
- onCancel?: (() => any) | undefined;
287
- onInvalid?: ((message: string) => any) | undefined;
288
- onApply?: ((params: import('.').MarkdownEditorImageSubmitParams) => any) | undefined;
289
- "onUpdate:alt"?: ((value: string) => any) | undefined;
290
- "onUpdate:height"?: ((value: string) => any) | undefined;
291
- "onUpdate:name"?: ((value: string) => any) | undefined;
292
- "onUpdate:title"?: ((value: string) => any) | undefined;
293
- "onUpdate:url"?: ((value: string) => any) | undefined;
294
- "onUpdate:width"?: ((value: string) => any) | undefined;
295
- }>, {
296
- element: import('vue').ComputedRef<HTMLFormElement | undefined>;
297
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
298
- cancel: () => any;
299
- invalid: (message: string) => any;
300
- apply: (params: import('.').MarkdownEditorImageSubmitParams) => any;
301
- "update:alt": (value: string) => any;
302
- "update:height": (value: string) => any;
303
- "update:name": (value: string) => any;
304
- "update:title": (value: string) => any;
305
- "update:url": (value: string) => any;
306
- "update:width": (value: string) => any;
307
- }, import('vue').PublicProps, {
308
- width: number | string;
309
- height: number | string;
310
- name: string;
311
- title: string;
312
- alt: string;
313
- disabled: boolean;
314
- theme: MarkdownEditorTheme;
315
- url: string;
316
- autofocus: boolean;
317
- locale: MarkdownEditorLocale;
318
- uploadImage: MarkdownEditorImageUpload;
319
- }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
320
- form: ({
321
- $: import('vue').ComponentInternalInstance;
322
- $data: {};
323
- $props: {
324
- readonly disabled?: boolean | undefined;
325
- readonly theme?: MarkdownEditorTheme | undefined;
326
- readonly onSubmit?: (() => any) | undefined;
327
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
328
- $attrs: import('vue').Attrs;
329
- $refs: {
330
- [x: string]: unknown;
331
- } & {
332
- element: HTMLFormElement;
333
- };
334
- $slots: Readonly<{
335
- [name: string]: import('vue').Slot<any> | undefined;
336
- }>;
337
- $root: import('vue').ComponentPublicInstance | null;
338
- $parent: import('vue').ComponentPublicInstance | null;
339
- $host: Element | null;
340
- $emit: (event: "submit") => void;
341
- $el: HTMLFormElement;
342
- $options: import('vue').ComponentOptionsBase<Readonly<{
343
- disabled?: boolean;
344
- theme?: MarkdownEditorTheme;
345
- }> & Readonly<{
346
- onSubmit?: (() => any) | undefined;
347
- }>, {
348
- element: import('vue').Ref<HTMLFormElement | undefined, HTMLFormElement | undefined>;
349
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
350
- submit: () => any;
351
- }, string, {
352
- disabled: boolean;
353
- theme: MarkdownEditorTheme;
354
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
355
- beforeCreate?: (() => void) | (() => void)[];
356
- created?: (() => void) | (() => void)[];
357
- beforeMount?: (() => void) | (() => void)[];
358
- mounted?: (() => void) | (() => void)[];
359
- beforeUpdate?: (() => void) | (() => void)[];
360
- updated?: (() => void) | (() => void)[];
361
- activated?: (() => void) | (() => void)[];
362
- deactivated?: (() => void) | (() => void)[];
363
- beforeDestroy?: (() => void) | (() => void)[];
364
- beforeUnmount?: (() => void) | (() => void)[];
365
- destroyed?: (() => void) | (() => void)[];
366
- unmounted?: (() => void) | (() => void)[];
367
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
368
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
369
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
370
- };
371
- $forceUpdate: () => void;
372
- $nextTick: typeof nextTick;
373
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
374
- } & Readonly<{
375
- disabled: boolean;
376
- theme: MarkdownEditorTheme;
377
- }> & Omit<Readonly<{
378
- disabled?: boolean;
379
- theme?: MarkdownEditorTheme;
380
- }> & Readonly<{
381
- onSubmit?: (() => any) | undefined;
382
- }>, "element" | ("disabled" | "theme")> & {
383
- element: HTMLFormElement | undefined;
384
- } & {} & import('vue').ComponentCustomProperties & {} & {
385
- $slots: {
386
- default?(_: {}): any;
387
- footer?(_: {}): any;
388
- };
389
- }) | null;
390
- }, HTMLFormElement, import('vue').ComponentProvideOptions, {
391
- P: {};
392
- B: {};
393
- D: {};
394
- C: {};
395
- M: {};
396
- Defaults: {};
397
- }, Readonly<{
398
- alt?: string;
399
- autofocus?: boolean;
400
- disabled?: boolean;
401
- height?: number | string;
402
- locale?: MarkdownEditorLocale;
403
- name?: string;
404
- title?: string;
405
- theme?: MarkdownEditorTheme;
406
- uploadImage?: MarkdownEditorImageUpload;
407
- url?: string;
408
- width?: number | string;
409
- }> & Readonly<{
410
- onCancel?: (() => any) | undefined;
411
- onInvalid?: ((message: string) => any) | undefined;
412
- onApply?: ((params: import('.').MarkdownEditorImageSubmitParams) => any) | undefined;
413
- "onUpdate:alt"?: ((value: string) => any) | undefined;
414
- "onUpdate:height"?: ((value: string) => any) | undefined;
415
- "onUpdate:name"?: ((value: string) => any) | undefined;
416
- "onUpdate:title"?: ((value: string) => any) | undefined;
417
- "onUpdate:url"?: ((value: string) => any) | undefined;
418
- "onUpdate:width"?: ((value: string) => any) | undefined;
419
- }>, {
420
- element: import('vue').ComputedRef<HTMLFormElement | undefined>;
421
- }, {}, {}, {}, {
422
- width: number | string;
423
- height: number | string;
424
- name: string;
425
- title: string;
426
- alt: string;
427
- disabled: boolean;
428
- theme: MarkdownEditorTheme;
429
- url: string;
430
- autofocus: boolean;
431
- locale: MarkdownEditorLocale;
432
- uploadImage: MarkdownEditorImageUpload;
433
- }> | null;
434
- imageActions: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
435
- objectFit?: string;
436
- theme: MarkdownEditorTheme;
437
- translate: (key: MarkdownEditorMessageKey) => string;
438
- }> & Readonly<{
439
- "onObject-fit"?: ((value: "fill" | "contain" | "cover" | "none" | "scale-down") => any) | undefined;
440
- "onFull-width"?: (() => any) | undefined;
441
- }>, {
442
- element: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
443
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
444
- "object-fit": (value: "fill" | "contain" | "cover" | "none" | "scale-down") => any;
445
- "full-width": () => any;
446
- }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
447
- element: HTMLDivElement;
448
- }, HTMLDivElement, import('vue').ComponentProvideOptions, {
449
- P: {};
450
- B: {};
451
- D: {};
452
- C: {};
453
- M: {};
454
- Defaults: {};
455
- }, Readonly<{
456
- objectFit?: string;
457
- theme: MarkdownEditorTheme;
458
- translate: (key: MarkdownEditorMessageKey) => string;
459
- }> & Readonly<{
460
- "onObject-fit"?: ((value: "fill" | "contain" | "cover" | "none" | "scale-down") => any) | undefined;
461
- "onFull-width"?: (() => any) | undefined;
462
- }>, {
463
- element: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
464
- }, {}, {}, {}, {}> | null;
465
- visualTarget: HTMLDivElement;
466
- markupTarget: HTMLDivElement;
467
- };
468
- rootEl: HTMLElement;
34
+ declare var __VLS_1: {}, __VLS_23: {
35
+ commands: import("./core").BasicEditorCommands;
36
+ execute: (command: import("prosemirror-state").Command) => void;
469
37
  };
470
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
471
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
472
- append(markup: string): void;
473
- clear(): void;
474
- focus(): void;
475
- getMode(): MarkdownEditorMode;
476
- getValue(): string;
477
- hasFocus(): boolean;
478
- insert(markup: string): void;
479
- isEmpty(): boolean;
480
- moveCursor(position: MarkdownEditorCursorPosition): void;
481
- prepend(markup: string): void;
482
- replace(markup: string): void;
483
- setMode(mode: MarkdownEditorMode): Promise<void>;
484
- setValue(value: string): void;
485
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
38
+ type __VLS_Slots = {} & {
39
+ header?: (props: typeof __VLS_1) => any;
40
+ } & {
41
+ toolbar?: (props: typeof __VLS_23) => any;
42
+ };
43
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, MarkdownEditorExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
486
44
  change: (value: string) => any;
487
45
  cancel: () => any;
488
46
  submit: () => any;
489
47
  "update:modelValue": (value: string) => any;
490
48
  "mode-change": (mode: MarkdownEditorMode) => any;
491
49
  "update:mode": (mode: MarkdownEditorMode) => any;
492
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
50
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
493
51
  onChange?: ((value: string) => any) | undefined;
494
52
  onCancel?: (() => any) | undefined;
495
53
  onSubmit?: (() => any) | undefined;
@@ -498,441 +56,21 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
498
56
  "onUpdate:mode"?: ((mode: MarkdownEditorMode) => any) | undefined;
499
57
  }>, {
500
58
  mode: MarkdownEditorMode;
501
- directiveComponents: Readonly<Record<string, import('vue').Component>>;
59
+ directives: Readonly<Record<string, import("./directives").MarkdownDirectivePlugin<import("./directives").MarkdownDirectiveAttrs>>>;
60
+ placeholder: string;
502
61
  features: MarkdownFeatures;
503
62
  readonly: boolean;
504
- placeholder: string;
505
63
  theme: MarkdownEditorTheme;
506
64
  toolbarPreset: MarkdownEditorToolbarPreset;
507
65
  toolbarConfig: MarkdownEditorToolbarConfig;
508
66
  modelValue: string;
509
67
  locale: MarkdownEditorLocale;
510
68
  uploadImage: MarkdownEditorImageUpload;
511
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
512
- floatingMenus: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
513
- codeVisible: boolean;
514
- colorVisible: boolean;
515
- formulaVisible: boolean;
516
- headingVisible: boolean;
517
- listVisible: boolean;
518
- mode: MarkdownEditorMode;
519
- modeVisible: boolean;
520
- state: BasicWysiwygSelectionState;
521
- textStyle: string;
522
- theme: MarkdownEditorTheme;
523
- translate: (key: MarkdownEditorMessageKey) => string;
524
- }> & Readonly<{
525
- "onCode-block"?: (() => any) | undefined;
526
- "onSelect-color"?: ((color: "gray" | "yellow" | "orange" | "red" | "green" | "blue" | "violet") => any) | undefined;
527
- "onInline-code"?: (() => any) | undefined;
528
- "onInline-formula"?: (() => any) | undefined;
529
- "onMath-block"?: (() => any) | undefined;
530
- "onSelect-mode"?: ((mode: MarkdownEditorMode) => any) | undefined;
531
- "onSelect-text-style"?: ((style: string) => any) | undefined;
532
- "onBullet-list"?: (() => any) | undefined;
533
- "onOrdered-list"?: (() => any) | undefined;
534
- "onIndent-list"?: (() => any) | undefined;
535
- "onOutdent-list"?: (() => any) | undefined;
536
- }>, {
537
- getElement(name: "code" | "color" | "formula" | "heading" | "list" | "mode"): HTMLElement | undefined;
538
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
539
- "code-block": () => any;
540
- "select-color": (color: "gray" | "yellow" | "orange" | "red" | "green" | "blue" | "violet") => any;
541
- "inline-code": () => any;
542
- "inline-formula": () => any;
543
- "math-block": () => any;
544
- "select-mode": (mode: MarkdownEditorMode) => any;
545
- "select-text-style": (style: string) => any;
546
- "bullet-list": () => any;
547
- "ordered-list": () => any;
548
- "indent-list": () => any;
549
- "outdent-list": () => any;
550
- }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
551
- color: HTMLDivElement;
552
- code: HTMLDivElement;
553
- heading: HTMLDivElement;
554
- formula: HTMLDivElement;
555
- list: HTMLDivElement;
556
- modeMenu: HTMLDivElement;
557
- }, any, import('vue').ComponentProvideOptions, {
558
- P: {};
559
- B: {};
560
- D: {};
561
- C: {};
562
- M: {};
563
- Defaults: {};
564
- }, Readonly<{
565
- codeVisible: boolean;
566
- colorVisible: boolean;
567
- formulaVisible: boolean;
568
- headingVisible: boolean;
569
- listVisible: boolean;
570
- mode: MarkdownEditorMode;
571
- modeVisible: boolean;
572
- state: BasicWysiwygSelectionState;
573
- textStyle: string;
574
- theme: MarkdownEditorTheme;
575
- translate: (key: MarkdownEditorMessageKey) => string;
576
- }> & Readonly<{
577
- "onCode-block"?: (() => any) | undefined;
578
- "onSelect-color"?: ((color: "gray" | "yellow" | "orange" | "red" | "green" | "blue" | "violet") => any) | undefined;
579
- "onInline-code"?: (() => any) | undefined;
580
- "onInline-formula"?: (() => any) | undefined;
581
- "onMath-block"?: (() => any) | undefined;
582
- "onSelect-mode"?: ((mode: MarkdownEditorMode) => any) | undefined;
583
- "onSelect-text-style"?: ((style: string) => any) | undefined;
584
- "onBullet-list"?: (() => any) | undefined;
585
- "onOrdered-list"?: (() => any) | undefined;
586
- "onIndent-list"?: (() => any) | undefined;
587
- "onOutdent-list"?: (() => any) | undefined;
588
- }>, {
589
- getElement(name: "code" | "color" | "formula" | "heading" | "list" | "mode"): HTMLElement | undefined;
590
- }, {}, {}, {}, {}> | null;
591
- linkForm: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
592
- autofocus?: boolean;
593
- disabled?: boolean;
594
- hasCurrentLink?: boolean;
595
- locale?: MarkdownEditorLocale;
596
- openInNewWindow?: boolean;
597
- readOnlyText?: boolean;
598
- text?: string;
599
- theme?: MarkdownEditorTheme;
600
- url?: string;
601
- }> & Readonly<{
602
- onCancel?: (() => any) | undefined;
603
- onInvalid?: ((message: string) => any) | undefined;
604
- onApply?: ((params: import('.').MarkdownEditorLinkSubmitParams) => any) | undefined;
605
- onRemove?: (() => any) | undefined;
606
- "onUpdate:url"?: ((value: string) => any) | undefined;
607
- "onUpdate:text"?: ((value: string) => any) | undefined;
608
- "onUpdate:openInNewWindow"?: ((value: boolean) => any) | undefined;
609
- }>, {
610
- element: import('vue').ComputedRef<HTMLFormElement | undefined>;
611
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
612
- cancel: () => any;
613
- invalid: (message: string) => any;
614
- apply: (params: import('.').MarkdownEditorLinkSubmitParams) => any;
615
- remove: () => any;
616
- "update:url": (value: string) => any;
617
- "update:text": (value: string) => any;
618
- "update:openInNewWindow": (value: boolean) => any;
619
- }, import('vue').PublicProps, {
620
- text: string;
621
- disabled: boolean;
622
- theme: MarkdownEditorTheme;
623
- url: string;
624
- autofocus: boolean;
625
- locale: MarkdownEditorLocale;
626
- hasCurrentLink: boolean;
627
- openInNewWindow: boolean;
628
- readOnlyText: boolean;
629
- }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
630
- form: ({
631
- $: import('vue').ComponentInternalInstance;
632
- $data: {};
633
- $props: {
634
- readonly disabled?: boolean | undefined;
635
- readonly theme?: MarkdownEditorTheme | undefined;
636
- readonly onSubmit?: (() => any) | undefined;
637
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
638
- $attrs: import('vue').Attrs;
639
- $refs: {
640
- [x: string]: unknown;
641
- } & {
642
- element: HTMLFormElement;
643
- };
644
- $slots: Readonly<{
645
- [name: string]: import('vue').Slot<any> | undefined;
646
- }>;
647
- $root: import('vue').ComponentPublicInstance | null;
648
- $parent: import('vue').ComponentPublicInstance | null;
649
- $host: Element | null;
650
- $emit: (event: "submit") => void;
651
- $el: HTMLFormElement;
652
- $options: import('vue').ComponentOptionsBase<Readonly<{
653
- disabled?: boolean;
654
- theme?: MarkdownEditorTheme;
655
- }> & Readonly<{
656
- onSubmit?: (() => any) | undefined;
657
- }>, {
658
- element: import('vue').Ref<HTMLFormElement | undefined, HTMLFormElement | undefined>;
659
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
660
- submit: () => any;
661
- }, string, {
662
- disabled: boolean;
663
- theme: MarkdownEditorTheme;
664
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
665
- beforeCreate?: (() => void) | (() => void)[];
666
- created?: (() => void) | (() => void)[];
667
- beforeMount?: (() => void) | (() => void)[];
668
- mounted?: (() => void) | (() => void)[];
669
- beforeUpdate?: (() => void) | (() => void)[];
670
- updated?: (() => void) | (() => void)[];
671
- activated?: (() => void) | (() => void)[];
672
- deactivated?: (() => void) | (() => void)[];
673
- beforeDestroy?: (() => void) | (() => void)[];
674
- beforeUnmount?: (() => void) | (() => void)[];
675
- destroyed?: (() => void) | (() => void)[];
676
- unmounted?: (() => void) | (() => void)[];
677
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
678
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
679
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
680
- };
681
- $forceUpdate: () => void;
682
- $nextTick: typeof nextTick;
683
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
684
- } & Readonly<{
685
- disabled: boolean;
686
- theme: MarkdownEditorTheme;
687
- }> & Omit<Readonly<{
688
- disabled?: boolean;
689
- theme?: MarkdownEditorTheme;
690
- }> & Readonly<{
691
- onSubmit?: (() => any) | undefined;
692
- }>, "element" | ("disabled" | "theme")> & {
693
- element: HTMLFormElement | undefined;
694
- } & {} & import('vue').ComponentCustomProperties & {} & {
695
- $slots: {
696
- default?(_: {}): any;
697
- footer?(_: {}): any;
698
- };
699
- }) | null;
700
- }, HTMLFormElement, import('vue').ComponentProvideOptions, {
701
- P: {};
702
- B: {};
703
- D: {};
704
- C: {};
705
- M: {};
706
- Defaults: {};
707
- }, Readonly<{
708
- autofocus?: boolean;
709
- disabled?: boolean;
710
- hasCurrentLink?: boolean;
711
- locale?: MarkdownEditorLocale;
712
- openInNewWindow?: boolean;
713
- readOnlyText?: boolean;
714
- text?: string;
715
- theme?: MarkdownEditorTheme;
716
- url?: string;
717
- }> & Readonly<{
718
- onCancel?: (() => any) | undefined;
719
- onInvalid?: ((message: string) => any) | undefined;
720
- onApply?: ((params: import('.').MarkdownEditorLinkSubmitParams) => any) | undefined;
721
- onRemove?: (() => any) | undefined;
722
- "onUpdate:url"?: ((value: string) => any) | undefined;
723
- "onUpdate:text"?: ((value: string) => any) | undefined;
724
- "onUpdate:openInNewWindow"?: ((value: boolean) => any) | undefined;
725
- }>, {
726
- element: import('vue').ComputedRef<HTMLFormElement | undefined>;
727
- }, {}, {}, {}, {
728
- text: string;
729
- disabled: boolean;
730
- theme: MarkdownEditorTheme;
731
- url: string;
732
- autofocus: boolean;
733
- locale: MarkdownEditorLocale;
734
- hasCurrentLink: boolean;
735
- openInNewWindow: boolean;
736
- readOnlyText: boolean;
737
- }> | null;
738
- imageForm: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
739
- alt?: string;
740
- autofocus?: boolean;
741
- disabled?: boolean;
742
- height?: number | string;
743
- locale?: MarkdownEditorLocale;
744
- name?: string;
745
- title?: string;
746
- theme?: MarkdownEditorTheme;
747
- uploadImage?: MarkdownEditorImageUpload;
748
- url?: string;
749
- width?: number | string;
750
- }> & Readonly<{
751
- onCancel?: (() => any) | undefined;
752
- onInvalid?: ((message: string) => any) | undefined;
753
- onApply?: ((params: import('.').MarkdownEditorImageSubmitParams) => any) | undefined;
754
- "onUpdate:alt"?: ((value: string) => any) | undefined;
755
- "onUpdate:height"?: ((value: string) => any) | undefined;
756
- "onUpdate:name"?: ((value: string) => any) | undefined;
757
- "onUpdate:title"?: ((value: string) => any) | undefined;
758
- "onUpdate:url"?: ((value: string) => any) | undefined;
759
- "onUpdate:width"?: ((value: string) => any) | undefined;
760
- }>, {
761
- element: import('vue').ComputedRef<HTMLFormElement | undefined>;
762
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
763
- cancel: () => any;
764
- invalid: (message: string) => any;
765
- apply: (params: import('.').MarkdownEditorImageSubmitParams) => any;
766
- "update:alt": (value: string) => any;
767
- "update:height": (value: string) => any;
768
- "update:name": (value: string) => any;
769
- "update:title": (value: string) => any;
770
- "update:url": (value: string) => any;
771
- "update:width": (value: string) => any;
772
- }, import('vue').PublicProps, {
773
- width: number | string;
774
- height: number | string;
775
- name: string;
776
- title: string;
777
- alt: string;
778
- disabled: boolean;
779
- theme: MarkdownEditorTheme;
780
- url: string;
781
- autofocus: boolean;
782
- locale: MarkdownEditorLocale;
783
- uploadImage: MarkdownEditorImageUpload;
784
- }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
785
- form: ({
786
- $: import('vue').ComponentInternalInstance;
787
- $data: {};
788
- $props: {
789
- readonly disabled?: boolean | undefined;
790
- readonly theme?: MarkdownEditorTheme | undefined;
791
- readonly onSubmit?: (() => any) | undefined;
792
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
793
- $attrs: import('vue').Attrs;
794
- $refs: {
795
- [x: string]: unknown;
796
- } & {
797
- element: HTMLFormElement;
798
- };
799
- $slots: Readonly<{
800
- [name: string]: import('vue').Slot<any> | undefined;
801
- }>;
802
- $root: import('vue').ComponentPublicInstance | null;
803
- $parent: import('vue').ComponentPublicInstance | null;
804
- $host: Element | null;
805
- $emit: (event: "submit") => void;
806
- $el: HTMLFormElement;
807
- $options: import('vue').ComponentOptionsBase<Readonly<{
808
- disabled?: boolean;
809
- theme?: MarkdownEditorTheme;
810
- }> & Readonly<{
811
- onSubmit?: (() => any) | undefined;
812
- }>, {
813
- element: import('vue').Ref<HTMLFormElement | undefined, HTMLFormElement | undefined>;
814
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
815
- submit: () => any;
816
- }, string, {
817
- disabled: boolean;
818
- theme: MarkdownEditorTheme;
819
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
820
- beforeCreate?: (() => void) | (() => void)[];
821
- created?: (() => void) | (() => void)[];
822
- beforeMount?: (() => void) | (() => void)[];
823
- mounted?: (() => void) | (() => void)[];
824
- beforeUpdate?: (() => void) | (() => void)[];
825
- updated?: (() => void) | (() => void)[];
826
- activated?: (() => void) | (() => void)[];
827
- deactivated?: (() => void) | (() => void)[];
828
- beforeDestroy?: (() => void) | (() => void)[];
829
- beforeUnmount?: (() => void) | (() => void)[];
830
- destroyed?: (() => void) | (() => void)[];
831
- unmounted?: (() => void) | (() => void)[];
832
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
833
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
834
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
835
- };
836
- $forceUpdate: () => void;
837
- $nextTick: typeof nextTick;
838
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
839
- } & Readonly<{
840
- disabled: boolean;
841
- theme: MarkdownEditorTheme;
842
- }> & Omit<Readonly<{
843
- disabled?: boolean;
844
- theme?: MarkdownEditorTheme;
845
- }> & Readonly<{
846
- onSubmit?: (() => any) | undefined;
847
- }>, "element" | ("disabled" | "theme")> & {
848
- element: HTMLFormElement | undefined;
849
- } & {} & import('vue').ComponentCustomProperties & {} & {
850
- $slots: {
851
- default?(_: {}): any;
852
- footer?(_: {}): any;
853
- };
854
- }) | null;
855
- }, HTMLFormElement, import('vue').ComponentProvideOptions, {
856
- P: {};
857
- B: {};
858
- D: {};
859
- C: {};
860
- M: {};
861
- Defaults: {};
862
- }, Readonly<{
863
- alt?: string;
864
- autofocus?: boolean;
865
- disabled?: boolean;
866
- height?: number | string;
867
- locale?: MarkdownEditorLocale;
868
- name?: string;
869
- title?: string;
870
- theme?: MarkdownEditorTheme;
871
- uploadImage?: MarkdownEditorImageUpload;
872
- url?: string;
873
- width?: number | string;
874
- }> & Readonly<{
875
- onCancel?: (() => any) | undefined;
876
- onInvalid?: ((message: string) => any) | undefined;
877
- onApply?: ((params: import('.').MarkdownEditorImageSubmitParams) => any) | undefined;
878
- "onUpdate:alt"?: ((value: string) => any) | undefined;
879
- "onUpdate:height"?: ((value: string) => any) | undefined;
880
- "onUpdate:name"?: ((value: string) => any) | undefined;
881
- "onUpdate:title"?: ((value: string) => any) | undefined;
882
- "onUpdate:url"?: ((value: string) => any) | undefined;
883
- "onUpdate:width"?: ((value: string) => any) | undefined;
884
- }>, {
885
- element: import('vue').ComputedRef<HTMLFormElement | undefined>;
886
- }, {}, {}, {}, {
887
- width: number | string;
888
- height: number | string;
889
- name: string;
890
- title: string;
891
- alt: string;
892
- disabled: boolean;
893
- theme: MarkdownEditorTheme;
894
- url: string;
895
- autofocus: boolean;
896
- locale: MarkdownEditorLocale;
897
- uploadImage: MarkdownEditorImageUpload;
898
- }> | null;
899
- imageActions: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
900
- objectFit?: string;
901
- theme: MarkdownEditorTheme;
902
- translate: (key: MarkdownEditorMessageKey) => string;
903
- }> & Readonly<{
904
- "onObject-fit"?: ((value: "fill" | "contain" | "cover" | "none" | "scale-down") => any) | undefined;
905
- "onFull-width"?: (() => any) | undefined;
906
- }>, {
907
- element: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
908
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
909
- "object-fit": (value: "fill" | "contain" | "cover" | "none" | "scale-down") => any;
910
- "full-width": () => any;
911
- }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
912
- element: HTMLDivElement;
913
- }, HTMLDivElement, import('vue').ComponentProvideOptions, {
914
- P: {};
915
- B: {};
916
- D: {};
917
- C: {};
918
- M: {};
919
- Defaults: {};
920
- }, Readonly<{
921
- objectFit?: string;
922
- theme: MarkdownEditorTheme;
923
- translate: (key: MarkdownEditorMessageKey) => string;
924
- }> & Readonly<{
925
- "onObject-fit"?: ((value: "fill" | "contain" | "cover" | "none" | "scale-down") => any) | undefined;
926
- "onFull-width"?: (() => any) | undefined;
927
- }>, {
928
- element: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
929
- }, {}, {}, {}, {}> | null;
930
- visualTarget: HTMLDivElement;
931
- markupTarget: HTMLDivElement;
932
- }, HTMLElement>;
933
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
69
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
70
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
71
+ declare const _default: typeof __VLS_export;
934
72
  export default _default;
935
- type __VLS_WithTemplateSlots<T, S> = T & {
73
+ type __VLS_WithSlots<T, S> = T & {
936
74
  new (): {
937
75
  $slots: S;
938
76
  };