magic-editor-x 2.1.0 → 2.3.0
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/CHANGELOG.md +125 -0
- package/README.md +593 -142
- package/bin/magic-editor-x.mjs +190 -0
- package/dist/admin/{ConfigurationPage-CK2AbfGW.mjs → ConfigurationPage-BxLHIQdo.mjs} +450 -21
- package/dist/admin/{ConfigurationPage-CzsT_dO_.js → ConfigurationPage-C-UktL1x.js} +479 -50
- package/dist/admin/ConfirmAction-DuQwvRYi.mjs +125 -0
- package/dist/admin/ConfirmAction-zLuIFj8t.js +124 -0
- package/dist/admin/{CustomBlocksPage-CvLrsBds.js → CustomBlocksPage-CxcTfdOT.js} +135 -84
- package/dist/admin/{CustomBlocksPage-B2A8S5MV.mjs → CustomBlocksPage-D8aMbVXc.mjs} +92 -41
- package/dist/admin/DraftSync-BIA8cZgA.js +11 -0
- package/dist/admin/DraftSync-CUxOMG-E.mjs +12 -0
- package/dist/admin/TemplatesPage-Hn6gyu2l.js +993 -0
- package/dist/admin/TemplatesPage-jhYi6Zdf.mjs +993 -0
- package/dist/admin/de-1cFMs-4c.mjs +43 -0
- package/dist/admin/{de-CkUYGb7U.js → de-2Ie5jy7j.js} +86 -2
- package/dist/admin/de-B1X46JJZ.js +453 -0
- package/dist/admin/{de-rRIutpYJ.mjs → de-BMY2LBaa.mjs} +86 -2
- package/dist/admin/{de-Bt6pYIWi.mjs → de-BUS1hUw0.mjs} +145 -0
- package/dist/admin/{de-CVbi685U.js → de-C3AsGauQ.js} +145 -0
- package/dist/admin/de-DOiGaTNX.mjs +453 -0
- package/dist/admin/de-Dn8athM8.js +43 -0
- package/dist/admin/{en-DulOcmXb.js → en-Ah-Cw0Wd.js} +86 -2
- package/dist/admin/{en-BX362fTp.js → en-BkEjpC3i.js} +145 -0
- package/dist/admin/en-CDg_18Bt.js +453 -0
- package/dist/admin/en-CIZ5Ggod.js +43 -0
- package/dist/admin/en-CU6UzV4g.mjs +453 -0
- package/dist/admin/{en-Puup8TFi.mjs → en-CvFiqti2.mjs} +86 -2
- package/dist/admin/en-Dc9y-6n9.mjs +43 -0
- package/dist/admin/{en-B_HltUxZ.mjs → en-GCzgS9Aw.mjs} +145 -0
- package/dist/admin/es-BCpJmUEM.js +453 -0
- package/dist/admin/es-BmfffNM2.mjs +453 -0
- package/dist/admin/es-C4IRHV5d.js +43 -0
- package/dist/admin/{es-CHHEZi44.js → es-C4pEnDRv.js} +145 -0
- package/dist/admin/{es-BoQZC86B.js → es-Cr8JH85N.js} +86 -2
- package/dist/admin/es-D2Kw6E4N.mjs +43 -0
- package/dist/admin/{es-CrhwOq-5.mjs → es-DHBBZKl2.mjs} +145 -0
- package/dist/admin/{es-257SSB7f.mjs → es-DbKHZz5l.mjs} +86 -2
- package/dist/admin/fr-BOvvfEH7.mjs +43 -0
- package/dist/admin/{fr-B3SL0TBV.js → fr-C2aLSwEu.js} +145 -0
- package/dist/admin/{fr-C5rSdKU4.mjs → fr-DQJ_7aq5.mjs} +86 -2
- package/dist/admin/fr-DZd2XJP6.mjs +453 -0
- package/dist/admin/{fr-5djKfQ3s.mjs → fr-Dvq4xk2e.mjs} +145 -0
- package/dist/admin/{fr-HxFcPpv4.js → fr-OJ4VW1kh.js} +86 -2
- package/dist/admin/fr-ZcN0yM_2.js +453 -0
- package/dist/admin/fr-Zkb8vfjN.js +43 -0
- package/dist/admin/index-BHBRr562.js +1940 -0
- package/dist/admin/index-CQk1XeNb.mjs +1939 -0
- package/dist/admin/index-Cm-fFUhE.js +18908 -0
- package/dist/admin/index-XgfwqLfV.mjs +18873 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +2 -2
- package/dist/admin/pt-1IUyx6ae.js +43 -0
- package/dist/admin/{pt-D6UuEtPy.mjs → pt-BSLzA17U.mjs} +86 -2
- package/dist/admin/pt-C3UdeIpd.mjs +453 -0
- package/dist/admin/pt-CImqDnLB.js +453 -0
- package/dist/admin/{pt-BdnY2Cth.mjs → pt-CilDggGF.mjs} +145 -0
- package/dist/admin/{pt-Cjn2Sc9k.js → pt-D0I0_JYs.js} +86 -2
- package/dist/admin/{pt-EVwCuBUK.js → pt-DX0OAIoL.js} +145 -0
- package/dist/admin/pt-etwsg3G4.mjs +43 -0
- package/dist/admin/useBreakpoint-D30eNTkF.js +37 -0
- package/dist/admin/useBreakpoint-DCfn6pDG.mjs +38 -0
- package/dist/admin/useT-CmaeZbCr.mjs +65 -0
- package/dist/admin/{useT-91ruePzq.js → useT-D3sM9Zf7.js} +4 -70
- package/dist/blocks/index.d.mts +167 -0
- package/dist/blocks/index.d.ts +167 -0
- package/dist/blocks/index.js +631 -0
- package/dist/blocks/index.mjs +609 -0
- package/dist/react/index.d.mts +39 -0
- package/dist/react/index.d.ts +39 -0
- package/dist/react/index.js +2687 -0
- package/dist/react/index.mjs +2657 -0
- package/dist/render/index.d.mts +201 -0
- package/dist/render/index.d.ts +201 -0
- package/dist/render/index.js +2918 -0
- package/dist/render/index.mjs +2896 -0
- package/dist/server/index.js +19400 -4738
- package/dist/server/index.mjs +19403 -4741
- package/dist/vue/index.d.mts +41 -0
- package/dist/vue/index.d.ts +41 -0
- package/dist/vue/index.js +2630 -0
- package/dist/vue/index.mjs +2610 -0
- package/package.json +49 -8
- package/schema/magic-editor-x.schema.json +1506 -0
- package/types/blocks.d.ts +167 -0
- package/types/index.d.ts +338 -0
- package/types/react.d.ts +39 -0
- package/types/render.d.ts +201 -0
- package/types/vue.d.ts +41 -0
- package/dist/admin/EditorField-7YCdXx-v.mjs +0 -6829
- package/dist/admin/EditorField-BdBCW15Q.js +0 -6864
- package/dist/admin/api-CmccMxlN.js +0 -36
- package/dist/admin/api-D5CAH0nh.mjs +0 -37
- package/dist/admin/de-BHPyA2S-.mjs +0 -103
- package/dist/admin/de-DBR893G4.js +0 -13
- package/dist/admin/de-RMs-_SCK.js +0 -103
- package/dist/admin/de-fBFh09Wl.mjs +0 -13
- package/dist/admin/en-BluCStLw.mjs +0 -103
- package/dist/admin/en-C81faOHP.js +0 -103
- package/dist/admin/en-D9Nfccux.mjs +0 -13
- package/dist/admin/en-gueRT44P.js +0 -13
- package/dist/admin/es-B0Zy8DVg.mjs +0 -13
- package/dist/admin/es-CQRI2Prp.mjs +0 -103
- package/dist/admin/es-D1QzY0JW.js +0 -103
- package/dist/admin/es-DRGs7meF.js +0 -13
- package/dist/admin/fr-B8rdLAIL.js +0 -13
- package/dist/admin/fr-Di3R6gOX.mjs +0 -103
- package/dist/admin/fr-R3_MbzT5.js +0 -103
- package/dist/admin/fr-oiUb2bb_.mjs +0 -13
- package/dist/admin/index-0_b1iroK.mjs +0 -156
- package/dist/admin/index-6SZLli70.js +0 -155
- package/dist/admin/pt-B3Jce6uT.mjs +0 -13
- package/dist/admin/pt-BCW1u_Hp.js +0 -103
- package/dist/admin/pt-BiWuSBcH.js +0 -13
- package/dist/admin/pt-Cr9AL408.mjs +0 -103
- package/dist/admin/sanitize-DP5aeU7V.js +0 -597
- package/dist/admin/sanitize-jjCot5PM.mjs +0 -596
- package/dist/admin/useT-vgY88N_H.mjs +0 -131
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/** Types of `magic-editor-x/render`. */
|
|
2
|
+
|
|
3
|
+
import type { ImageFile, MagicEditorXTunes } from './index.js';
|
|
4
|
+
|
|
5
|
+
/** Reference of an internal link (`<a data-mex-uid data-mex-document-id data-mex-locale>`). */
|
|
6
|
+
export interface InternalLinkRef {
|
|
7
|
+
uid: string;
|
|
8
|
+
documentId: string;
|
|
9
|
+
locale: string | null;
|
|
10
|
+
/** The href stored when the link was inserted (fallback). */
|
|
11
|
+
href: string | null;
|
|
12
|
+
/** Present (true) for a mention (`data-mex-mention="true"`, an inline entry reference rendered with class `mex-mention`). */
|
|
13
|
+
mention?: true;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** Block handed to an override. `data` is cleaned for built-in types and as stored for custom blocks. */
|
|
17
|
+
export interface RenderBlock {
|
|
18
|
+
id: string;
|
|
19
|
+
type: string;
|
|
20
|
+
data: Record<string, any>;
|
|
21
|
+
tunes?: MagicEditorXTunes;
|
|
22
|
+
/** Toggle content. */
|
|
23
|
+
children: RenderBlock[];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Text node of the render tree (escaped on output). */
|
|
27
|
+
export interface RenderTextNode {
|
|
28
|
+
type: 'text';
|
|
29
|
+
value: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** Element node of the render tree. Attribute names are lower case; `true` is a boolean attribute. */
|
|
33
|
+
export interface RenderElementNode {
|
|
34
|
+
type: 'element';
|
|
35
|
+
tag: string;
|
|
36
|
+
attrs: Record<string, string | true>;
|
|
37
|
+
children: RenderNode[];
|
|
38
|
+
/**
|
|
39
|
+
* Inline style, only set by the renderer for `object-position` of images
|
|
40
|
+
* with a focal point when `focalPoint: 'style'` is on. Overrides cannot set it.
|
|
41
|
+
*/
|
|
42
|
+
style?: { 'object-position'?: string };
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* HTML that went through your `sanitizeRaw` (raw blocks, string overrides in a
|
|
47
|
+
* tree). Only with `rawHtml: 'allow'` and `sanitizeRaw`; always the only child
|
|
48
|
+
* of its element.
|
|
49
|
+
*/
|
|
50
|
+
export interface RenderRawNode {
|
|
51
|
+
type: 'raw';
|
|
52
|
+
html: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** Framework-neutral render node. */
|
|
56
|
+
export type RenderNode = RenderElementNode | RenderTextNode | RenderRawNode;
|
|
57
|
+
|
|
58
|
+
/** What an override may return: a string (HTML), nodes, or undefined/null for the default output. */
|
|
59
|
+
export type OverrideResult = string | RenderNode | Array<RenderNode | string> | null | undefined;
|
|
60
|
+
|
|
61
|
+
export interface HtmlHelpers {
|
|
62
|
+
/** Escapes text for HTML. */
|
|
63
|
+
escape(text: unknown): string;
|
|
64
|
+
/** Safe HTML of stored inline HTML (links resolved with `options.links`). */
|
|
65
|
+
inline(html: unknown): string;
|
|
66
|
+
/** Plain text of stored inline HTML. */
|
|
67
|
+
text(html: unknown): string;
|
|
68
|
+
/** Validated URL or ''. */
|
|
69
|
+
url(value: unknown, schemes?: string[]): string;
|
|
70
|
+
/** Renders toggle children to HTML. */
|
|
71
|
+
renderChildren(blocks: RenderBlock[]): string;
|
|
72
|
+
/** Element node (attributes and URLs are validated when the override returns it). */
|
|
73
|
+
h(tag: string, attrs?: Record<string, unknown>, children?: unknown): RenderElementNode;
|
|
74
|
+
/** Text node. */
|
|
75
|
+
textNode(value: unknown): RenderTextNode;
|
|
76
|
+
/** Nodes of stored inline HTML (strict parser, links resolved). */
|
|
77
|
+
inlineNodes(html: unknown): RenderNode[];
|
|
78
|
+
/** Nodes of toggle children (keeps per-block components in React/Vue). */
|
|
79
|
+
childNodes(blocks: RenderBlock[]): RenderNode[];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** Code block options (HTML, React, Vue; Markdown and text keep plain fences/text). */
|
|
83
|
+
export interface CodeRenderOptions {
|
|
84
|
+
/**
|
|
85
|
+
* Line numbers: `true` for every code block, `'block'` only for codeFlask
|
|
86
|
+
* blocks saved with line numbers on. Adds `mex-code-lines` to `<pre>` and
|
|
87
|
+
* wraps each line in `<span class="mex-code-line">`; number them with CSS
|
|
88
|
+
* counters. Default false.
|
|
89
|
+
*/
|
|
90
|
+
lineNumbers?: boolean | 'block';
|
|
91
|
+
/**
|
|
92
|
+
* Copy button: wraps the block in `<div class="mex-code-block"
|
|
93
|
+
* data-mex-code="copy">` with `<button type="button" class="mex-code-copy"
|
|
94
|
+
* data-mex-copy="code">` and a `role="status"` live region. React and Vue
|
|
95
|
+
* wire it; for plain HTML call `enhanceCodeBlocks()`. Labels: 1 to 80
|
|
96
|
+
* characters.
|
|
97
|
+
*/
|
|
98
|
+
copyButton?: boolean | { label?: string; copiedLabel?: string; failedLabel?: string };
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface RenderOptions {
|
|
102
|
+
/**
|
|
103
|
+
* Per-type output. Return nodes (`helpers.h`, `helpers.inlineNodes`; validated)
|
|
104
|
+
* or a string to replace the default output of that block, or undefined to
|
|
105
|
+
* keep it. A string is HTML: `renderHtml` writes it as it is (the override
|
|
106
|
+
* escapes what it outputs, use the helpers); `renderTree` and the React/Vue
|
|
107
|
+
* components use it only with `rawHtml: 'allow'` + `sanitizeRaw` (as the raw
|
|
108
|
+
* child of `<div class="mex-override">`), otherwise the default output.
|
|
109
|
+
* `renderText`/`renderMarkdown` overrides return text/Markdown.
|
|
110
|
+
*/
|
|
111
|
+
overrides?: Record<
|
|
112
|
+
string,
|
|
113
|
+
(block: RenderBlock, helpers: HtmlHelpers & Record<string, any>) => OverrideResult
|
|
114
|
+
>;
|
|
115
|
+
/**
|
|
116
|
+
* Resolves internal links at render time, so links follow slug changes.
|
|
117
|
+
* Return a URL to use it, `false` to render the link text without a link,
|
|
118
|
+
* or null/undefined to keep the stored href. The result is validated.
|
|
119
|
+
*/
|
|
120
|
+
links?: (ref: InternalLinkRef) => string | false | null | undefined;
|
|
121
|
+
/** Refreshes a Media Library file (url, alt, formats) by `file.id`/`documentId`; the result is validated. */
|
|
122
|
+
media?: (file: ImageFile, block: { id: string; type: string }) => ImageFile | null | undefined;
|
|
123
|
+
/** Raw HTML blocks are omitted unless 'allow' and `sanitizeRaw` are both given. */
|
|
124
|
+
rawHtml?: 'omit' | 'allow';
|
|
125
|
+
/** Your HTML sanitiser for raw HTML blocks (for example sanitize-html or DOMPurify). */
|
|
126
|
+
sanitizeRaw?: (html: string) => string;
|
|
127
|
+
/** Hosts allowed in embed iframes (exact match, https only). Defaults to `DEFAULT_EMBED_HOSTS`. */
|
|
128
|
+
embedHosts?: string[];
|
|
129
|
+
/** `sizes` attribute for images with Media Library formats. Default '100vw'. */
|
|
130
|
+
imageSizes?: string;
|
|
131
|
+
/** Code block line numbers and copy button. */
|
|
132
|
+
code?: CodeRenderOptions;
|
|
133
|
+
/**
|
|
134
|
+
* Focal point of images (image blocks and gallery images with `focalPoint`).
|
|
135
|
+
* `'data'` (default, CSP friendly): `data-mex-focal-x`/`data-mex-focal-y`
|
|
136
|
+
* (0..1) on `<img>`. `'style'`: also `style="object-position:X% Y%"`
|
|
137
|
+
* (React/Vue: the `style` prop), for pages whose CSP allows inline styles.
|
|
138
|
+
*/
|
|
139
|
+
focalPoint?: 'data' | 'style';
|
|
140
|
+
/**
|
|
141
|
+
* Heading anchors `id="mex-h-<blockId>"` (stable across text edits and
|
|
142
|
+
* locales): `true` on every heading, `false` never (table-of-contents entries
|
|
143
|
+
* are then plain text), default only when the value contains a `toc` block.
|
|
144
|
+
* Markdown has no heading ids: its table-of-contents entries link to the
|
|
145
|
+
* GitHub-style slug of the heading text (`#über-uns`, repeats `-1`, `-2`),
|
|
146
|
+
* which Markdown renderers such as GitHub, markdown-it-anchor and rehype-slug assign.
|
|
147
|
+
*/
|
|
148
|
+
headingIds?: boolean;
|
|
149
|
+
/** Table of contents: accessible name of a `toc` block without a title (1 to 80 characters, default 'Table of contents'). */
|
|
150
|
+
toc?: { label?: string };
|
|
151
|
+
/**
|
|
152
|
+
* Code-registered block definitions (`defineBlock` from `magic-editor-x/blocks`):
|
|
153
|
+
* blocks of these types are cleaned by their schema and rendered with their
|
|
154
|
+
* `render`/`text`/`markdown`. Without them such blocks get the neutral
|
|
155
|
+
* rendering. Pass a stable array (compiled once per array). `overrides`
|
|
156
|
+
* still win.
|
|
157
|
+
*/
|
|
158
|
+
blocks?: ReadonlyArray<import('./blocks.js').BlockDefinition<any>>;
|
|
159
|
+
/**
|
|
160
|
+
* Synced blocks (2.3): the sources of `synced` reference blocks, as a map
|
|
161
|
+
* `{ [ref]: document | blocks }` (object or Map) or a function
|
|
162
|
+
* `(ref) => document | blocks | null`. A reference is replaced by a copy of
|
|
163
|
+
* its source (nested references inside a source are dropped). Without this
|
|
164
|
+
* option, or for an unknown reference, a synced block renders nothing.
|
|
165
|
+
* Content API output (`?mex=`) and GraphQL `…Rendered`/`…Resolved` already
|
|
166
|
+
* come expanded.
|
|
167
|
+
*/
|
|
168
|
+
synced?: SyncedSources;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** A synced block source: an Editor.js document or its block array. */
|
|
172
|
+
export type SyncedSource = { blocks: ReadonlyArray<unknown> } | ReadonlyArray<unknown>;
|
|
173
|
+
/** Sources of synced blocks by reference (the source's documentId). */
|
|
174
|
+
export type SyncedSources =
|
|
175
|
+
| Readonly<Record<string, SyncedSource>>
|
|
176
|
+
| ReadonlyMap<string, SyncedSource>
|
|
177
|
+
| ((ref: string) => SyncedSource | null | undefined);
|
|
178
|
+
|
|
179
|
+
/** Renders a stored value to HTML. Empty or invalid input gives ''. */
|
|
180
|
+
export function renderHtml(value: unknown, options?: RenderOptions): string;
|
|
181
|
+
/** Renders a stored value to framework-neutral nodes (blocks separated by `\n` text nodes). */
|
|
182
|
+
export function renderTree(value: unknown, options?: RenderOptions): RenderNode[];
|
|
183
|
+
/** Serialises render nodes to HTML (text and attributes escaped, raw nodes as they are). */
|
|
184
|
+
export function serializeNodes(nodes: ReadonlyArray<RenderNode>): string;
|
|
185
|
+
/**
|
|
186
|
+
* Browser helper for plain HTML: wires the code copy buttons below `root`
|
|
187
|
+
* (default `document`) to the Clipboard API. Returns a cleanup function; does
|
|
188
|
+
* nothing without a DOM.
|
|
189
|
+
*/
|
|
190
|
+
export function enhanceCodeBlocks(root?: ParentNode): () => void;
|
|
191
|
+
/** Copies text with the Clipboard API; resolves false when unavailable or denied. */
|
|
192
|
+
export function copyText(text: string): Promise<boolean>;
|
|
193
|
+
/** Renders a stored value to plain text. */
|
|
194
|
+
export function renderText(value: unknown, options?: RenderOptions): string;
|
|
195
|
+
/** Renders a stored value to Markdown (CommonMark + GFM tables and task lists). */
|
|
196
|
+
export function renderMarkdown(value: unknown, options?: RenderOptions): string;
|
|
197
|
+
export function escapeHtml(text: unknown): string;
|
|
198
|
+
export function escapeMarkdown(text: string): string;
|
|
199
|
+
export function inlineToHtml(html: unknown, options?: Pick<RenderOptions, 'links'>): string;
|
|
200
|
+
export function inlineToText(html: unknown): string;
|
|
201
|
+
export const DEFAULT_EMBED_HOSTS: readonly string[];
|
package/types/vue.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** Types of `magic-editor-x/vue` (Vue 3.3+). */
|
|
2
|
+
|
|
3
|
+
import type { Component, DefineComponent, VNodeChild } from 'vue';
|
|
4
|
+
import type { RenderBlock, RenderNode, RenderOptions } from './render.js';
|
|
5
|
+
|
|
6
|
+
/** Helpers handed to a block slot or component. */
|
|
7
|
+
export interface VueBlockHelpers {
|
|
8
|
+
/** Plain text of stored inline HTML. */
|
|
9
|
+
text(html: unknown): string;
|
|
10
|
+
/** Validated URL or ''. */
|
|
11
|
+
url(value: unknown, schemes?: string[]): string;
|
|
12
|
+
/** Vnodes of stored inline HTML (strict parser, links resolved). */
|
|
13
|
+
inline(html: unknown): VNodeChild[];
|
|
14
|
+
/** Vnodes of child blocks (toggle content), with your slots/components applied. */
|
|
15
|
+
renderBlocks(blocks: RenderBlock[]): VNodeChild[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Props of a `block-<type>` scoped slot. */
|
|
19
|
+
export interface BlockSlotProps {
|
|
20
|
+
block: RenderBlock;
|
|
21
|
+
helpers: VueBlockHelpers;
|
|
22
|
+
/** The default output of the block. */
|
|
23
|
+
children: VNodeChild[];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Renders stored content. Overrides: scoped slots `block-<type>` or the
|
|
28
|
+
* `components` prop (components declare the props `block` and `helpers` and
|
|
29
|
+
* get the default output in their default slot).
|
|
30
|
+
*/
|
|
31
|
+
export declare const MagicEditorXContent: DefineComponent<{
|
|
32
|
+
/** Stored field value (object, JSON string, 1.x shapes). null renders nothing. */
|
|
33
|
+
value?: unknown;
|
|
34
|
+
/** Render options (links, media, embedHosts, imageSizes, code, rawHtml + sanitizeRaw, overrides). */
|
|
35
|
+
options?: RenderOptions;
|
|
36
|
+
/** Per-type components (declare the props `block` and `helpers`). */
|
|
37
|
+
components?: Record<string, Component>;
|
|
38
|
+
}>;
|
|
39
|
+
/** Vnodes of a `renderTree` result. */
|
|
40
|
+
export declare function treeToVue(nodes: RenderNode[]): VNodeChild[];
|
|
41
|
+
export default MagicEditorXContent;
|