hexagon-editor 0.1.5 → 0.1.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 (117) hide show
  1. package/README.md +44 -24
  2. package/dist/MarkdownEditor.vue.d.ts +28 -26
  3. package/dist/MarkdownEditor.vue.d.ts.map +1 -1
  4. package/dist/{MarkdownEditorLinkForm-C7CGgA83.js → MarkdownEditorLinkForm-B9dEX3WT.js} +1 -1
  5. package/dist/{base-Bnv2-Te4.js → base-BPdMUtQo.js} +141 -137
  6. package/dist/components/MarkdownEditorToolbar.vue.d.ts +4 -3
  7. package/dist/components/MarkdownEditorToolbar.vue.d.ts.map +1 -1
  8. package/dist/configure.d.ts +0 -2
  9. package/dist/configure.d.ts.map +1 -1
  10. package/dist/configure.js +11 -12
  11. package/dist/core/basic-editor-markdown.d.ts.map +1 -1
  12. package/dist/core/basic-editor-renderers.d.ts +6 -4
  13. package/dist/core/basic-editor-renderers.d.ts.map +1 -1
  14. package/dist/core/basic-editor-types.d.ts +2 -0
  15. package/dist/core/basic-editor-types.d.ts.map +1 -1
  16. package/dist/core/basic-editor.d.ts +1 -1
  17. package/dist/core/basic-editor.d.ts.map +1 -1
  18. package/dist/core/index.d.ts +0 -2
  19. package/dist/core/index.d.ts.map +1 -1
  20. package/dist/core.js +28 -31
  21. package/dist/extensions.js +1 -1
  22. package/dist/forms/MarkdownEditorImageForm.vue.d.ts +2 -2
  23. package/dist/forms/MarkdownEditorImageForm.vue.d.ts.map +1 -1
  24. package/dist/forms/MarkdownEditorLinkForm.vue.d.ts +2 -2
  25. package/dist/forms/MarkdownEditorTextInput.vue.d.ts +2 -2
  26. package/dist/forms/MarkdownEditorTextInput.vue.d.ts.map +1 -1
  27. package/dist/forms.js +1 -1
  28. package/dist/{full-C-o2lPBX.js → full-Da8esvj2.js} +1 -1
  29. package/dist/{full-specs-Cl-ODShc.js → full-specs-hXKoMF-0.js} +1 -1
  30. package/dist/index-D_CMntQU.js +3173 -0
  31. package/dist/index.css +1 -1
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +240 -236
  35. package/dist/{markup-commands-B2NMfYHE.js → markup-commands-BYsx8ADT.js} +1989 -1963
  36. package/dist/presets.js +2 -2
  37. package/dist/public-types.d.ts +22 -0
  38. package/dist/public-types.d.ts.map +1 -1
  39. package/dist/renderer/MarkdownRenderer.vue.d.ts +2 -0
  40. package/dist/renderer/MarkdownRenderer.vue.d.ts.map +1 -1
  41. package/dist/renderer/markdown.d.ts +2 -1
  42. package/dist/renderer/markdown.d.ts.map +1 -1
  43. package/dist/renderer.css +1 -1
  44. package/dist/renderer.js +3590 -200
  45. package/package.json +106 -108
  46. package/dist/MarkdownEditorLinkForm.css +0 -1
  47. package/dist/abnfDiagram-N423BO3Z-DCf6sPky.js +0 -87
  48. package/dist/arc-y6UeoJpJ.js +0 -83
  49. package/dist/architectureDiagram-T3A2C74G-Cc3_3-cI.js +0 -4778
  50. package/dist/base.css +0 -1
  51. package/dist/blockDiagram-VBNYF7ZC-DWVLZwXY.js +0 -2419
  52. package/dist/c4Diagram-5PPSVZJV-CaIN7qay.js +0 -1577
  53. package/dist/channel-BwXGcavV.js +0 -5
  54. package/dist/chunk-2GRJ4B5K-O75udjPr.js +0 -68
  55. package/dist/chunk-2Q5K7J3B-CySL0lOA.js +0 -15
  56. package/dist/chunk-5RXB4S5H-BKPnLCOJ.js +0 -1408
  57. package/dist/chunk-5VM5RSS4--it1VJIv.js +0 -19
  58. package/dist/chunk-6Q2QTUOP-DNiML-50.js +0 -664
  59. package/dist/chunk-GF5L2VYU-z7A-k0-V.js +0 -1533
  60. package/dist/chunk-JWPE2WC7-DAjx3Kjr.js +0 -8
  61. package/dist/chunk-KBJHAD2P-D4R1VW0r.js +0 -19
  62. package/dist/chunk-RYQCIY6F-DmJAYxq8.js +0 -313
  63. package/dist/chunk-XXDRQBXY-CK913N-t.js +0 -8
  64. package/dist/classDiagram-JCYQIIEL-Djipq_HJ.js +0 -16
  65. package/dist/classDiagram-v2-OCEON4UE-Djipq_HJ.js +0 -16
  66. package/dist/core/optional-renderers.d.ts +0 -9
  67. package/dist/core/optional-renderers.d.ts.map +0 -1
  68. package/dist/cose-bilkent-JH36ORCC-CXuKFbXy.js +0 -2608
  69. package/dist/cynefin-VYW2F7L2-Bkk-F_Js.js +0 -23766
  70. package/dist/cynefinDiagram-MW4NZA55-DwOK40hm.js +0 -299
  71. package/dist/cytoscape.esm-3W4EOjxC.js +0 -18756
  72. package/dist/dagre-VZM6K2ZE-0VsGm8Ag.js +0 -340
  73. package/dist/defaultLocale-BgPVtth8.js +0 -171
  74. package/dist/diagram-7IWD3JNH-BrApu1hz.js +0 -350
  75. package/dist/diagram-B4RE2ZJO-CVXoBg2r.js +0 -461
  76. package/dist/diagram-LBJQPF4R-Dp0eSz2L.js +0 -142
  77. package/dist/diagram-Q27KOJAE-DWIltqIH.js +0 -528
  78. package/dist/diagram-UB23O5K3-B7z2Lj3K.js +0 -219
  79. package/dist/ebnfDiagram-BXEA7PRR-CYgE6z_2.js +0 -109
  80. package/dist/erDiagram-JOGREHBK-D3QWrPo-.js +0 -910
  81. package/dist/flowDiagram-UKHOOZJN-CfjPcHNW.js +0 -1638
  82. package/dist/ganttDiagram-PKOTCBZU-ECmaWI-9.js +0 -2711
  83. package/dist/gitGraphDiagram-DS77QQ5N-DgG1RGJ8.js +0 -815
  84. package/dist/graph-DAHC4kPm.js +0 -1545
  85. package/dist/infoDiagram-6WML65LV-B1Yl3nZV.js +0 -24
  86. package/dist/init-DjUOC4st.js +0 -16
  87. package/dist/ishikawaDiagram-WSZJBQD7-4sngaB5o.js +0 -621
  88. package/dist/journeyDiagram-NVQOT4AX-B_6AmR_j.js +0 -834
  89. package/dist/kanban-definition-27J2QSJJ-B8BO9o8J.js +0 -724
  90. package/dist/katex-ByXcxnHy.js +0 -14436
  91. package/dist/katex-DoRnZ_sp.js +0 -11682
  92. package/dist/layout-DBbo_M5I.js +0 -1519
  93. package/dist/linear-BEdRfKba.js +0 -259
  94. package/dist/map-DRdzG8Ho.js +0 -224
  95. package/dist/markup-commands.css +0 -1
  96. package/dist/mermaid.core-CR0bA2Wa.js +0 -16496
  97. package/dist/mindmap-definition-FAOFIHXS-DnPz807N.js +0 -827
  98. package/dist/optional-renderers-BalvqqvY.js +0 -11
  99. package/dist/ordinal-B6-f3MAq.js +0 -61
  100. package/dist/pegDiagram-VL7TDLO6-csGWlzs8.js +0 -95
  101. package/dist/pieDiagram-7S7Q4E2Y-Bqs8j5FX.js +0 -207
  102. package/dist/quadrantDiagram-CIZ2JOQS-jzP4lRrY.js +0 -1023
  103. package/dist/railroadDiagram-AXF67PYL-BSCyR24u.js +0 -77
  104. package/dist/renderer/mermaid-runtime.d.ts +0 -4
  105. package/dist/renderer/mermaid-runtime.d.ts.map +0 -1
  106. package/dist/requirementDiagram-LRYGKXZP-DmEkLYqX.js +0 -882
  107. package/dist/sankeyDiagram-W5VNT64P-CYvRYMTh.js +0 -847
  108. package/dist/sequenceDiagram-SI44F4Z6-CyWbDtPA.js +0 -2888
  109. package/dist/sizeCapture-X5ZJPWSS-xKhYCY84.js +0 -46
  110. package/dist/stateDiagram-OKZ733FA-DP44R2Dd.js +0 -263
  111. package/dist/stateDiagram-v2-UEYNNEHI-BvlOisND.js +0 -16
  112. package/dist/swimlanes-SLNWSIFB-BKFp8twH.js +0 -5332
  113. package/dist/swimlanesDiagram-ULZ7WXOC-CTvIFuHq.js +0 -13
  114. package/dist/timeline-definition-Z64GVDOM-B4137uIl.js +0 -1055
  115. package/dist/vennDiagram-T6HMQDX7-CPs8gXjx.js +0 -1578
  116. package/dist/wardleyDiagram-T6FBY63Y-BYp13hbI.js +0 -675
  117. package/dist/xychartDiagram-ELKLHX3M-DTT37K2u.js +0 -1388
package/README.md CHANGED
@@ -12,24 +12,58 @@ Component styles are included automatically when importing the editor or rendere
12
12
  `hexagon-editor/style.css` export is available only for integrations that need to load
13
13
  the complete stylesheet explicitly.
14
14
 
15
+ ```ts
16
+ export default defineNuxtConfig({
17
+ css: ['hexagon-editor/renderer.css'],
18
+ });
19
+
20
+ export default defineNuxtConfig({
21
+ css: ['hexagon-editor/style.css'],
22
+ });
23
+ ```
24
+
15
25
  ## Read-only rendering
16
26
 
17
27
  Sites that only display documents can import the standalone renderer without bundling the editor, ProseMirror, CodeMirror, toolbar, or editor styles:
18
28
 
19
29
  ```vue
20
30
  <script setup lang="ts">
21
- import {MarkdownRenderer} from 'hexagon-editor/renderer';
31
+ import { MarkdownRenderer } from 'hexagon-editor/renderer';
22
32
 
23
- defineProps<{content: string}>();
33
+ defineProps<{ content: string }>();
24
34
  </script>
25
35
 
26
36
  <template>
27
- <MarkdownRenderer :content="content" />
37
+ <MarkdownRenderer :content="content" />
28
38
  </template>
29
39
  ```
30
40
 
31
41
  `MarkdownRenderer` supports server rendering. Mermaid source is emitted as a stable fallback during SSR and is replaced with an SVG after hydration. The Mermaid runtime is loaded lazily only when a document contains a diagram.
32
42
 
43
+ Math and Mermaid engines are optional and are not included in the base installation. Install only what the application uses:
44
+
45
+ ```bash
46
+ pnpm add katex
47
+ pnpm add mermaid
48
+ ```
49
+
50
+ Pass local adapters through `features`; Mermaid can be loaded lazily, and KaTeX styles must be imported by the application:
51
+
52
+ ```ts
53
+ import katex from 'katex';
54
+ import 'katex/dist/katex.min.css';
55
+ import type { MarkdownFeatures } from 'hexagon-editor';
56
+
57
+ const features: MarkdownFeatures = {
58
+ math: {
59
+ renderToString: (latex, display) => katex.renderToString(latex, { displayMode: display, throwOnError: true }),
60
+ },
61
+ mermaid: { load: () => import('mermaid').then(({ default: mermaid }) => mermaid) },
62
+ };
63
+ ```
64
+
65
+ Without a corresponding feature, formulas and Mermaid remain safe editable Markdown fallbacks. `features.html` accepts a local trusted HTML renderer for editor HTML blocks.
66
+
33
67
  The renderer includes basic typography for headings, links, and inline code. Override its `.markdown-renderer` root, semantic descendants, or the `--markdown-renderer-link` and `--markdown-renderer-code-background` custom properties to match the consuming site. KaTeX output requires host-provided styles if the site wants the standard KaTeX appearance.
34
68
 
35
69
  Raw Markdown HTML and the contents of `:::html ... :::` are displayed as source text. Only the spaced `::: html ... :::` directive is rendered as HTML. Pass trusted content to that directive; the renderer does not sanitize it.
@@ -38,20 +72,15 @@ Raw Markdown HTML and the contents of `:::html ... :::` are displayed as source
38
72
 
39
73
  ```vue
40
74
  <script setup lang="ts">
41
- import {ref} from 'vue';
42
- import {MarkdownEditor} from 'hexagon-editor';
75
+ import { ref } from 'vue';
76
+ import { MarkdownEditor } from 'hexagon-editor';
43
77
 
44
- const value = ref('# Document');
45
- const mode = ref<'wysiwyg' | 'markup' | 'split'>('wysiwyg');
78
+ const value = ref('# Document');
79
+ const mode = ref<'wysiwyg' | 'markup' | 'split'>('wysiwyg');
46
80
  </script>
47
81
 
48
82
  <template>
49
- <MarkdownEditor
50
- v-model="value"
51
- v-model:mode="mode"
52
- locale="ru"
53
- theme="auto"
54
- />
83
+ <MarkdownEditor v-model="value" v-model:mode="mode" locale="ru" theme="auto" />
55
84
  </template>
56
85
  ```
57
86
 
@@ -75,22 +104,13 @@ Headless integrations can compose the exported `ZeroPreset`, `CommonMarkPreset`,
75
104
 
76
105
  The root entry exports the complete supported public API. Focused integrations may use the documented subpaths: `./core`, `./extensions`, `./specs`, `./presets`, `./renderer`, `./toolbar`, `./forms`, `./configure`, and `./classname`. Other internal source paths are not part of the compatibility contract.
77
106
 
78
- `configure({lang, renderers})` sets process-wide defaults and optional host renderers. `cn(block)` provides the `hx-md-` BEM classname convention without a React dependency.
107
+ `configure({lang})` sets process-wide defaults. `cn(block)` provides the `hx-md-` BEM classname convention without a React dependency.
79
108
 
80
109
  ## Supported Markdown
81
110
 
82
111
  The editor supports CommonMark blocks and marks, tables, definition lists, heading attributes and folding headings (`##+`), quote links, raw HTML, directives, Math/LaTeX (`$…$` and `$$…$$`), Mermaid fences, and YFM HTML blocks (`:::html`).
83
112
 
84
- KaTeX renders math by default. Mermaid diagrams are rendered lazily by the bundled Mermaid runtime. Mermaid and YFM HTML rendering can be overridden by the host:
85
-
86
- ```ts
87
- import {configureAdvancedMarkdownRenderers} from 'hexagon-editor';
88
-
89
- configureAdvancedMarkdownRenderers({
90
- mermaid: (source) => renderMermaidIntoElement(source),
91
- html: (source) => renderSanitizedHtml(source),
92
- });
93
- ```
113
+ KaTeX and Mermaid render only when their local `features` adapters are supplied.
94
114
 
95
115
  Invalid Mermaid source remains visible as an editable fallback. YFM HTML source remains visible unless the host supplies a renderer.
96
116
 
@@ -2,7 +2,7 @@ import { nextTick } from 'vue';
2
2
  import { MarkdownEditorImageUpload } from './forms/MarkdownEditorImageForm.vue';
3
3
  import { MarkdownEditorMessageKey } from './i18n';
4
4
  import { BasicWysiwygSelectionState } from './core';
5
- import { MarkdownEditorMode, MarkdownEditorCursorPosition, MarkdownEditorLocale, MarkdownEditorToolbarPreset, MarkdownEditorTheme } from './public-types';
5
+ import { MarkdownEditorMode, MarkdownEditorCursorPosition, MarkdownEditorLocale, MarkdownEditorToolbarPreset, MarkdownEditorTheme, MarkdownFeatures } from './public-types';
6
6
  import { MarkdownEditorToolbarConfig } from './toolbar';
7
7
  import { MarkdownDirectiveComponents } from './directives';
8
8
  export interface MarkdownEditorExposed {
@@ -32,6 +32,7 @@ type __VLS_Props = {
32
32
  /** Overrides the preset with an ordered set of toolbar groups and items. */
33
33
  toolbarConfig?: MarkdownEditorToolbarConfig;
34
34
  theme?: MarkdownEditorTheme;
35
+ features?: MarkdownFeatures;
35
36
  };
36
37
  declare function __VLS_template(): {
37
38
  attrs: Partial<{}>;
@@ -129,8 +130,8 @@ declare function __VLS_template(): {
129
130
  }> & Readonly<{
130
131
  onCancel?: (() => any) | undefined;
131
132
  onInvalid?: ((message: string) => any) | undefined;
133
+ onApply?: ((params: import('.').MarkdownEditorLinkSubmitParams) => any) | undefined;
132
134
  onRemove?: (() => any) | undefined;
133
- onApply?: ((params: import('./forms').MarkdownEditorLinkSubmitParams) => any) | undefined;
134
135
  "onUpdate:url"?: ((value: string) => any) | undefined;
135
136
  "onUpdate:text"?: ((value: string) => any) | undefined;
136
137
  "onUpdate:openInNewWindow"?: ((value: boolean) => any) | undefined;
@@ -139,8 +140,8 @@ declare function __VLS_template(): {
139
140
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
140
141
  cancel: () => any;
141
142
  invalid: (message: string) => any;
143
+ apply: (params: import('.').MarkdownEditorLinkSubmitParams) => any;
142
144
  remove: () => any;
143
- apply: (params: import('./forms').MarkdownEditorLinkSubmitParams) => any;
144
145
  "update:url": (value: string) => any;
145
146
  "update:text": (value: string) => any;
146
147
  "update:openInNewWindow": (value: boolean) => any;
@@ -245,8 +246,8 @@ declare function __VLS_template(): {
245
246
  }> & Readonly<{
246
247
  onCancel?: (() => any) | undefined;
247
248
  onInvalid?: ((message: string) => any) | undefined;
249
+ onApply?: ((params: import('.').MarkdownEditorLinkSubmitParams) => any) | undefined;
248
250
  onRemove?: (() => any) | undefined;
249
- onApply?: ((params: import('./forms').MarkdownEditorLinkSubmitParams) => any) | undefined;
250
251
  "onUpdate:url"?: ((value: string) => any) | undefined;
251
252
  "onUpdate:text"?: ((value: string) => any) | undefined;
252
253
  "onUpdate:openInNewWindow"?: ((value: boolean) => any) | undefined;
@@ -278,7 +279,7 @@ declare function __VLS_template(): {
278
279
  }> & Readonly<{
279
280
  onCancel?: (() => any) | undefined;
280
281
  onInvalid?: ((message: string) => any) | undefined;
281
- onApply?: ((params: import('./forms').MarkdownEditorImageSubmitParams) => any) | undefined;
282
+ onApply?: ((params: import('.').MarkdownEditorImageSubmitParams) => any) | undefined;
282
283
  "onUpdate:alt"?: ((value: string) => any) | undefined;
283
284
  "onUpdate:height"?: ((value: string) => any) | undefined;
284
285
  "onUpdate:name"?: ((value: string) => any) | undefined;
@@ -290,7 +291,7 @@ declare function __VLS_template(): {
290
291
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
291
292
  cancel: () => any;
292
293
  invalid: (message: string) => any;
293
- apply: (params: import('./forms').MarkdownEditorImageSubmitParams) => any;
294
+ apply: (params: import('.').MarkdownEditorImageSubmitParams) => any;
294
295
  "update:alt": (value: string) => any;
295
296
  "update:height": (value: string) => any;
296
297
  "update:name": (value: string) => any;
@@ -298,11 +299,11 @@ declare function __VLS_template(): {
298
299
  "update:url": (value: string) => any;
299
300
  "update:width": (value: string) => any;
300
301
  }, import('vue').PublicProps, {
302
+ width: number | string;
303
+ height: number | string;
301
304
  name: string;
302
305
  title: string;
303
306
  alt: string;
304
- height: number | string;
305
- width: number | string;
306
307
  disabled: boolean;
307
308
  theme: MarkdownEditorTheme;
308
309
  url: string;
@@ -402,7 +403,7 @@ declare function __VLS_template(): {
402
403
  }> & Readonly<{
403
404
  onCancel?: (() => any) | undefined;
404
405
  onInvalid?: ((message: string) => any) | undefined;
405
- onApply?: ((params: import('./forms').MarkdownEditorImageSubmitParams) => any) | undefined;
406
+ onApply?: ((params: import('.').MarkdownEditorImageSubmitParams) => any) | undefined;
406
407
  "onUpdate:alt"?: ((value: string) => any) | undefined;
407
408
  "onUpdate:height"?: ((value: string) => any) | undefined;
408
409
  "onUpdate:name"?: ((value: string) => any) | undefined;
@@ -412,11 +413,11 @@ declare function __VLS_template(): {
412
413
  }>, {
413
414
  element: import('vue').ComputedRef<HTMLFormElement | undefined>;
414
415
  }, {}, {}, {}, {
416
+ width: number | string;
417
+ height: number | string;
415
418
  name: string;
416
419
  title: string;
417
420
  alt: string;
418
- height: number | string;
419
- width: number | string;
420
421
  disabled: boolean;
421
422
  theme: MarkdownEditorTheme;
422
423
  url: string;
@@ -476,30 +477,31 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
476
477
  setMode(mode: MarkdownEditorMode): Promise<void>;
477
478
  setValue(value: string): void;
478
479
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
479
- cancel: () => any;
480
480
  change: (value: string) => any;
481
+ cancel: () => any;
481
482
  submit: () => any;
482
483
  "update:modelValue": (value: string) => any;
483
484
  "mode-change": (mode: MarkdownEditorMode) => any;
484
485
  "update:mode": (mode: MarkdownEditorMode) => any;
485
486
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
486
- onCancel?: (() => any) | undefined;
487
487
  onChange?: ((value: string) => any) | undefined;
488
+ onCancel?: (() => any) | undefined;
488
489
  onSubmit?: (() => any) | undefined;
489
490
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
490
491
  "onMode-change"?: ((mode: MarkdownEditorMode) => any) | undefined;
491
492
  "onUpdate:mode"?: ((mode: MarkdownEditorMode) => any) | undefined;
492
493
  }>, {
493
494
  mode: MarkdownEditorMode;
494
- placeholder: string;
495
495
  directiveComponents: Readonly<Record<string, import('vue').Component>>;
496
+ features: MarkdownFeatures;
496
497
  readonly: boolean;
498
+ placeholder: string;
497
499
  theme: MarkdownEditorTheme;
500
+ toolbarPreset: MarkdownEditorToolbarPreset;
501
+ toolbarConfig: MarkdownEditorToolbarConfig;
498
502
  modelValue: string;
499
503
  locale: MarkdownEditorLocale;
500
504
  uploadImage: MarkdownEditorImageUpload;
501
- toolbarPreset: MarkdownEditorToolbarPreset;
502
- toolbarConfig: MarkdownEditorToolbarConfig;
503
505
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
504
506
  floatingMenus: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
505
507
  codeVisible: boolean;
@@ -587,8 +589,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
587
589
  }> & Readonly<{
588
590
  onCancel?: (() => any) | undefined;
589
591
  onInvalid?: ((message: string) => any) | undefined;
592
+ onApply?: ((params: import('.').MarkdownEditorLinkSubmitParams) => any) | undefined;
590
593
  onRemove?: (() => any) | undefined;
591
- onApply?: ((params: import('./forms').MarkdownEditorLinkSubmitParams) => any) | undefined;
592
594
  "onUpdate:url"?: ((value: string) => any) | undefined;
593
595
  "onUpdate:text"?: ((value: string) => any) | undefined;
594
596
  "onUpdate:openInNewWindow"?: ((value: boolean) => any) | undefined;
@@ -597,8 +599,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
597
599
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
598
600
  cancel: () => any;
599
601
  invalid: (message: string) => any;
602
+ apply: (params: import('.').MarkdownEditorLinkSubmitParams) => any;
600
603
  remove: () => any;
601
- apply: (params: import('./forms').MarkdownEditorLinkSubmitParams) => any;
602
604
  "update:url": (value: string) => any;
603
605
  "update:text": (value: string) => any;
604
606
  "update:openInNewWindow": (value: boolean) => any;
@@ -703,8 +705,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
703
705
  }> & Readonly<{
704
706
  onCancel?: (() => any) | undefined;
705
707
  onInvalid?: ((message: string) => any) | undefined;
708
+ onApply?: ((params: import('.').MarkdownEditorLinkSubmitParams) => any) | undefined;
706
709
  onRemove?: (() => any) | undefined;
707
- onApply?: ((params: import('./forms').MarkdownEditorLinkSubmitParams) => any) | undefined;
708
710
  "onUpdate:url"?: ((value: string) => any) | undefined;
709
711
  "onUpdate:text"?: ((value: string) => any) | undefined;
710
712
  "onUpdate:openInNewWindow"?: ((value: boolean) => any) | undefined;
@@ -736,7 +738,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
736
738
  }> & Readonly<{
737
739
  onCancel?: (() => any) | undefined;
738
740
  onInvalid?: ((message: string) => any) | undefined;
739
- onApply?: ((params: import('./forms').MarkdownEditorImageSubmitParams) => any) | undefined;
741
+ onApply?: ((params: import('.').MarkdownEditorImageSubmitParams) => any) | undefined;
740
742
  "onUpdate:alt"?: ((value: string) => any) | undefined;
741
743
  "onUpdate:height"?: ((value: string) => any) | undefined;
742
744
  "onUpdate:name"?: ((value: string) => any) | undefined;
@@ -748,7 +750,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
748
750
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
749
751
  cancel: () => any;
750
752
  invalid: (message: string) => any;
751
- apply: (params: import('./forms').MarkdownEditorImageSubmitParams) => any;
753
+ apply: (params: import('.').MarkdownEditorImageSubmitParams) => any;
752
754
  "update:alt": (value: string) => any;
753
755
  "update:height": (value: string) => any;
754
756
  "update:name": (value: string) => any;
@@ -756,11 +758,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
756
758
  "update:url": (value: string) => any;
757
759
  "update:width": (value: string) => any;
758
760
  }, import('vue').PublicProps, {
761
+ width: number | string;
762
+ height: number | string;
759
763
  name: string;
760
764
  title: string;
761
765
  alt: string;
762
- height: number | string;
763
- width: number | string;
764
766
  disabled: boolean;
765
767
  theme: MarkdownEditorTheme;
766
768
  url: string;
@@ -860,7 +862,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
860
862
  }> & Readonly<{
861
863
  onCancel?: (() => any) | undefined;
862
864
  onInvalid?: ((message: string) => any) | undefined;
863
- onApply?: ((params: import('./forms').MarkdownEditorImageSubmitParams) => any) | undefined;
865
+ onApply?: ((params: import('.').MarkdownEditorImageSubmitParams) => any) | undefined;
864
866
  "onUpdate:alt"?: ((value: string) => any) | undefined;
865
867
  "onUpdate:height"?: ((value: string) => any) | undefined;
866
868
  "onUpdate:name"?: ((value: string) => any) | undefined;
@@ -870,11 +872,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
870
872
  }>, {
871
873
  element: import('vue').ComputedRef<HTMLFormElement | undefined>;
872
874
  }, {}, {}, {}, {
875
+ width: number | string;
876
+ height: number | string;
873
877
  name: string;
874
878
  title: string;
875
879
  alt: string;
876
- height: number | string;
877
- width: number | string;
878
880
  disabled: boolean;
879
881
  theme: MarkdownEditorTheme;
880
882
  url: string;
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownEditor.vue.d.ts","sourceRoot":"","sources":["../src/MarkdownEditor.vue"],"names":[],"mappings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W, createElementVNode as u, renderSlot as N, onMounted as S, toDisplayString as v, createCommentVNode as $, normalizeClass as M, computed as E, createBlock as C, withCtx as I, createVNode as p, createTextVNode as q } from "vue";
2
2
  import { getMarkdownEditorMessages as F } from "./i18n.js";
3
3
  import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './MarkdownEditorLinkForm.css';const A = ["aria-disabled", "data-theme"], H = { class: "markdown-editor-form__layout" }, R = { class: "markdown-editor-form__footer" }, T = /* @__PURE__ */ V({
4
+ const A = ["aria-disabled", "data-theme"], H = { class: "markdown-editor-form__layout" }, R = { class: "markdown-editor-form__footer" }, T = /* @__PURE__ */ V({
5
5
  name: "MarkdownEditorForm",
6
6
  __name: "MarkdownEditorForm",
7
7
  props: {