hexagon-editor 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -11
- package/dist/MarkdownEditor.vue.d.ts +28 -26
- package/dist/MarkdownEditor.vue.d.ts.map +1 -1
- package/dist/{MarkdownEditorLinkForm-C7CGgA83.js → MarkdownEditorLinkForm-B9dEX3WT.js} +1 -1
- package/dist/{base-Bnv2-Te4.js → base-BPdMUtQo.js} +141 -137
- package/dist/components/MarkdownEditorToolbar.vue.d.ts +4 -3
- package/dist/components/MarkdownEditorToolbar.vue.d.ts.map +1 -1
- package/dist/configure.d.ts +0 -2
- package/dist/configure.d.ts.map +1 -1
- package/dist/configure.js +11 -12
- package/dist/core/basic-editor-markdown.d.ts.map +1 -1
- package/dist/core/basic-editor-renderers.d.ts +6 -4
- package/dist/core/basic-editor-renderers.d.ts.map +1 -1
- package/dist/core/basic-editor-types.d.ts +2 -0
- package/dist/core/basic-editor-types.d.ts.map +1 -1
- package/dist/core/basic-editor.d.ts +1 -1
- package/dist/core/basic-editor.d.ts.map +1 -1
- package/dist/core/index.d.ts +0 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/markup-editor.d.ts.map +1 -1
- package/dist/core.js +28 -31
- package/dist/extensions.js +1 -1
- package/dist/forms/MarkdownEditorImageForm.vue.d.ts +2 -2
- package/dist/forms/MarkdownEditorImageForm.vue.d.ts.map +1 -1
- package/dist/forms/MarkdownEditorLinkForm.vue.d.ts +2 -2
- package/dist/forms/MarkdownEditorTextInput.vue.d.ts +2 -2
- package/dist/forms/MarkdownEditorTextInput.vue.d.ts.map +1 -1
- package/dist/forms.js +1 -1
- package/dist/{full-C-o2lPBX.js → full-Da8esvj2.js} +1 -1
- package/dist/{full-specs-Cl-ODShc.js → full-specs-hXKoMF-0.js} +1 -1
- package/dist/index-D_CMntQU.js +3173 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3611 -1284
- package/dist/{markup-commands-BckOOKIe.js → markup-commands-BYsx8ADT.js} +1993 -1963
- package/dist/presets.js +2 -2
- package/dist/public-types.d.ts +22 -0
- package/dist/public-types.d.ts.map +1 -1
- package/dist/renderer/MarkdownRenderer.vue.d.ts +2 -0
- package/dist/renderer/MarkdownRenderer.vue.d.ts.map +1 -1
- package/dist/renderer/markdown.d.ts +2 -1
- package/dist/renderer/markdown.d.ts.map +1 -1
- package/dist/renderer.css +1 -1
- package/dist/renderer.js +142 -146
- package/package.json +106 -108
- package/dist/MarkdownEditorLinkForm.css +0 -1
- package/dist/abnfDiagram-N423BO3Z-DCf6sPky.js +0 -87
- package/dist/arc-y6UeoJpJ.js +0 -83
- package/dist/architectureDiagram-T3A2C74G-Cc3_3-cI.js +0 -4778
- package/dist/base.css +0 -1
- package/dist/blockDiagram-VBNYF7ZC-DWVLZwXY.js +0 -2419
- package/dist/c4Diagram-5PPSVZJV-CaIN7qay.js +0 -1577
- package/dist/channel-BwXGcavV.js +0 -5
- package/dist/chunk-2GRJ4B5K-O75udjPr.js +0 -68
- package/dist/chunk-2Q5K7J3B-CySL0lOA.js +0 -15
- package/dist/chunk-5RXB4S5H-BKPnLCOJ.js +0 -1408
- package/dist/chunk-5VM5RSS4--it1VJIv.js +0 -19
- package/dist/chunk-6Q2QTUOP-DNiML-50.js +0 -664
- package/dist/chunk-GF5L2VYU-z7A-k0-V.js +0 -1533
- package/dist/chunk-JWPE2WC7-DAjx3Kjr.js +0 -8
- package/dist/chunk-KBJHAD2P-D4R1VW0r.js +0 -19
- package/dist/chunk-RYQCIY6F-DmJAYxq8.js +0 -313
- package/dist/chunk-XXDRQBXY-CK913N-t.js +0 -8
- package/dist/classDiagram-JCYQIIEL-Djipq_HJ.js +0 -16
- package/dist/classDiagram-v2-OCEON4UE-Djipq_HJ.js +0 -16
- package/dist/core/optional-renderers.d.ts +0 -9
- package/dist/core/optional-renderers.d.ts.map +0 -1
- package/dist/cose-bilkent-JH36ORCC-CXuKFbXy.js +0 -2608
- package/dist/cynefin-VYW2F7L2-Bkk-F_Js.js +0 -23766
- package/dist/cynefinDiagram-MW4NZA55-DwOK40hm.js +0 -299
- package/dist/cytoscape.esm-3W4EOjxC.js +0 -18756
- package/dist/dagre-VZM6K2ZE-0VsGm8Ag.js +0 -340
- package/dist/defaultLocale-BgPVtth8.js +0 -171
- package/dist/diagram-7IWD3JNH-BrApu1hz.js +0 -350
- package/dist/diagram-B4RE2ZJO-CVXoBg2r.js +0 -461
- package/dist/diagram-LBJQPF4R-Dp0eSz2L.js +0 -142
- package/dist/diagram-Q27KOJAE-DWIltqIH.js +0 -528
- package/dist/diagram-UB23O5K3-B7z2Lj3K.js +0 -219
- package/dist/ebnfDiagram-BXEA7PRR-CYgE6z_2.js +0 -109
- package/dist/erDiagram-JOGREHBK-D3QWrPo-.js +0 -910
- package/dist/flowDiagram-UKHOOZJN-CfjPcHNW.js +0 -1638
- package/dist/ganttDiagram-PKOTCBZU-ECmaWI-9.js +0 -2711
- package/dist/gitGraphDiagram-DS77QQ5N-DgG1RGJ8.js +0 -815
- package/dist/graph-DAHC4kPm.js +0 -1545
- package/dist/infoDiagram-6WML65LV-B1Yl3nZV.js +0 -24
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/ishikawaDiagram-WSZJBQD7-4sngaB5o.js +0 -621
- package/dist/journeyDiagram-NVQOT4AX-B_6AmR_j.js +0 -834
- package/dist/kanban-definition-27J2QSJJ-B8BO9o8J.js +0 -724
- package/dist/katex-ByXcxnHy.js +0 -14436
- package/dist/katex-DoRnZ_sp.js +0 -11682
- package/dist/layout-DBbo_M5I.js +0 -1519
- package/dist/linear-BEdRfKba.js +0 -259
- package/dist/map-DRdzG8Ho.js +0 -224
- package/dist/markup-commands.css +0 -1
- package/dist/mermaid.core-CR0bA2Wa.js +0 -16496
- package/dist/mindmap-definition-FAOFIHXS-DnPz807N.js +0 -827
- package/dist/optional-renderers-BalvqqvY.js +0 -11
- package/dist/ordinal-B6-f3MAq.js +0 -61
- package/dist/pegDiagram-VL7TDLO6-csGWlzs8.js +0 -95
- package/dist/pieDiagram-7S7Q4E2Y-Bqs8j5FX.js +0 -207
- package/dist/quadrantDiagram-CIZ2JOQS-jzP4lRrY.js +0 -1023
- package/dist/railroadDiagram-AXF67PYL-BSCyR24u.js +0 -77
- package/dist/renderer/mermaid-runtime.d.ts +0 -4
- package/dist/renderer/mermaid-runtime.d.ts.map +0 -1
- package/dist/requirementDiagram-LRYGKXZP-DmEkLYqX.js +0 -882
- package/dist/sankeyDiagram-W5VNT64P-CYvRYMTh.js +0 -847
- package/dist/sequenceDiagram-SI44F4Z6-CyWbDtPA.js +0 -2888
- package/dist/sizeCapture-X5ZJPWSS-xKhYCY84.js +0 -46
- package/dist/stateDiagram-OKZ733FA-DP44R2Dd.js +0 -263
- package/dist/stateDiagram-v2-UEYNNEHI-BvlOisND.js +0 -16
- package/dist/swimlanes-SLNWSIFB-BKFp8twH.js +0 -5332
- package/dist/swimlanesDiagram-ULZ7WXOC-CTvIFuHq.js +0 -13
- package/dist/timeline-definition-Z64GVDOM-B4137uIl.js +0 -1055
- package/dist/vennDiagram-T6HMQDX7-CPs8gXjx.js +0 -1578
- package/dist/wardleyDiagram-T6FBY63Y-BYp13hbI.js +0 -675
- package/dist/xychartDiagram-ELKLHX3M-DTT37K2u.js +0 -1388
package/README.md
CHANGED
|
@@ -30,6 +30,28 @@ defineProps<{content: string}>();
|
|
|
30
30
|
|
|
31
31
|
`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
32
|
|
|
33
|
+
Math and Mermaid engines are optional and are not included in the base installation. Install only what the application uses:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pnpm add katex
|
|
37
|
+
pnpm add mermaid
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Pass local adapters through `features`; Mermaid can be loaded lazily, and KaTeX styles must be imported by the application:
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
import katex from 'katex';
|
|
44
|
+
import 'katex/dist/katex.min.css';
|
|
45
|
+
import type {MarkdownFeatures} from 'hexagon-editor';
|
|
46
|
+
|
|
47
|
+
const features: MarkdownFeatures = {
|
|
48
|
+
math: {renderToString: (latex, display) => katex.renderToString(latex, {displayMode: display, throwOnError: true})},
|
|
49
|
+
mermaid: {load: () => import('mermaid').then(({default: mermaid}) => mermaid)},
|
|
50
|
+
};
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Without a corresponding feature, formulas and Mermaid remain safe editable Markdown fallbacks. `features.html` accepts a local trusted HTML renderer for editor HTML blocks.
|
|
54
|
+
|
|
33
55
|
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
56
|
|
|
35
57
|
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.
|
|
@@ -75,22 +97,13 @@ Headless integrations can compose the exported `ZeroPreset`, `CommonMarkPreset`,
|
|
|
75
97
|
|
|
76
98
|
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
99
|
|
|
78
|
-
`configure({lang
|
|
100
|
+
`configure({lang})` sets process-wide defaults. `cn(block)` provides the `hx-md-` BEM classname convention without a React dependency.
|
|
79
101
|
|
|
80
102
|
## Supported Markdown
|
|
81
103
|
|
|
82
104
|
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
105
|
|
|
84
|
-
KaTeX
|
|
85
|
-
|
|
86
|
-
```ts
|
|
87
|
-
import {configureAdvancedMarkdownRenderers} from 'hexagon-editor';
|
|
88
|
-
|
|
89
|
-
configureAdvancedMarkdownRenderers({
|
|
90
|
-
mermaid: (source) => renderMermaidIntoElement(source),
|
|
91
|
-
html: (source) => renderSanitizedHtml(source),
|
|
92
|
-
});
|
|
93
|
-
```
|
|
106
|
+
KaTeX and Mermaid render only when their local `features` adapters are supplied.
|
|
94
107
|
|
|
95
108
|
Invalid Mermaid source remains visible as an editable fallback. YFM HTML source remains visible unless the host supplies a renderer.
|
|
96
109
|
|
|
@@ -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('
|
|
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('
|
|
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('
|
|
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('
|
|
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('
|
|
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('
|
|
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":"
|
|
1
|
+
{"version":3,"file":"MarkdownEditor.vue.d.ts","sourceRoot":"","sources":["../src/MarkdownEditor.vue"],"names":[],"mappings":"AAyqBA,OAAO,EAA+B,QAAQ,EAAyC,MAAM,KAAK,CAAC;AAQnG,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,qCAAqC,CAAC;AAGnF,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,QAAQ,CAAC;AAQrD,OAAO,KAAK,EAAwC,0BAA0B,EAAgB,MAAM,QAAQ,CAAC;AAC7G,OAAO,KAAK,EACR,kBAAkB,EAClB,4BAA4B,EAC5B,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACnB,gBAAgB,EACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAC,2BAA2B,EAA8B,MAAM,WAAW,CAAC;AACxF,OAAO,KAAK,EAAC,2BAA2B,EAAC,MAAM,cAAc,CAAC;AAE9D,MAAM,WAAW,qBAAqB;IAClC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,KAAK,IAAI,IAAI,CAAC;IACd,KAAK,IAAI,IAAI,CAAC;IACd,OAAO,IAAI,kBAAkB,CAAC;IAC9B,QAAQ,IAAI,MAAM,CAAC;IACnB,QAAQ,IAAI,OAAO,CAAC;IACpB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,OAAO,IAAI,OAAO,CAAC;IACnB,UAAU,CAAC,QAAQ,EAAE,4BAA4B,GAAG,IAAI,CAAC;IACzD,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,OAAO,CAAC,I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CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as V, ref as k, openBlock as c, createElementBlock as x, withModifiers as 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
|
-
|
|
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: {
|