@maily-to/render 0.2.3 → 2.0.0-beta.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.
- package/LICENSE +21 -0
- package/dist/index.cjs +1619 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +196 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +162 -258
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1585 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +46 -51
- package/readme.md +61 -58
- package/dist/index.d.ts +0 -292
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import { AnyMailyMark, AnyMailyNode, FontFamilyItem, FontProps, NodeThemeOptions } from "@maily-to/shared";
|
|
1
2
|
import { HtmlProps } from "@react-email/components";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { JSONContent } from "@tiptap/core";
|
|
4
|
+
//#region src/lib/meta.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Descriptor for a single meta element to inject into the `<head>`.
|
|
7
|
+
* Supports the same shapes as Remix/React-Router's MetaDescriptor:
|
|
8
|
+
* charSet, title, name/content, property/content, httpEquiv/content,
|
|
9
|
+
* tagName ('meta' | 'link'), and a catch-all for arbitrary attrs.
|
|
10
|
+
*/
|
|
7
11
|
type MetaDescriptor = {
|
|
8
12
|
charSet: 'utf-8';
|
|
9
13
|
} | {
|
|
@@ -19,274 +23,174 @@ type MetaDescriptor = {
|
|
|
19
23
|
content: string;
|
|
20
24
|
} | {
|
|
21
25
|
tagName: 'meta' | 'link';
|
|
22
|
-
[
|
|
26
|
+
[attr: string]: string;
|
|
23
27
|
} | {
|
|
24
28
|
[name: string]: string;
|
|
25
29
|
};
|
|
26
|
-
type MetaDescriptors = MetaDescriptor[];
|
|
27
30
|
//#endregion
|
|
28
|
-
//#region src/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
private doc;
|
|
35
|
-
private paragraph;
|
|
36
|
-
private text;
|
|
37
|
-
private variable;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=preheader.d.ts.map
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region src/maily.d.ts
|
|
42
|
-
interface NodeOptions {
|
|
43
|
-
parent?: JSONContent$1;
|
|
44
|
-
prev?: JSONContent$1;
|
|
45
|
-
next?: JSONContent$1;
|
|
46
|
-
payloadValue?: PayloadValue;
|
|
47
|
-
}
|
|
48
|
-
interface MarkType {
|
|
49
|
-
[key: string]: any;
|
|
50
|
-
type: string;
|
|
51
|
-
attrs?: Record<string, any> | undefined;
|
|
52
|
-
}
|
|
53
|
-
interface MailyConfig {
|
|
54
|
-
/**
|
|
55
|
-
* The preview text is the snippet of text that is pulled into the inbox
|
|
56
|
-
* preview of an email client, usually right after the subject line.
|
|
57
|
-
*
|
|
58
|
-
* Default: `undefined`
|
|
59
|
-
*/
|
|
60
|
-
preview?: string | JSONContent$1;
|
|
61
|
-
/**
|
|
62
|
-
* The theme object allows you to customize the colors and font sizes of the
|
|
63
|
-
* rendered email.
|
|
64
|
-
*
|
|
65
|
-
* Default:
|
|
66
|
-
* ```js
|
|
67
|
-
* {
|
|
68
|
-
* colors: {
|
|
69
|
-
* heading: '#111827',
|
|
70
|
-
* paragraph: '#374151',
|
|
71
|
-
* horizontal: '#EAEAEA',
|
|
72
|
-
* footer: '#64748B',
|
|
73
|
-
* },
|
|
74
|
-
* fontSize: {
|
|
75
|
-
* paragraph: '15px',
|
|
76
|
-
* footer: {
|
|
77
|
-
* size: '14px',
|
|
78
|
-
* lineHeight: '24px',
|
|
79
|
-
* },
|
|
80
|
-
* },
|
|
81
|
-
* }
|
|
82
|
-
* ```
|
|
83
|
-
*
|
|
84
|
-
* @example
|
|
85
|
-
* ```js
|
|
86
|
-
* const maily = new Maily(content, {
|
|
87
|
-
* theme: {
|
|
88
|
-
* colors: {
|
|
89
|
-
* heading: '#111827',
|
|
90
|
-
* },
|
|
91
|
-
* fontSize: {
|
|
92
|
-
* footer: {
|
|
93
|
-
* size: '14px',
|
|
94
|
-
* lineHeight: '24px',
|
|
95
|
-
* },
|
|
96
|
-
* },
|
|
97
|
-
* },
|
|
98
|
-
* });
|
|
99
|
-
* ```
|
|
100
|
-
*/
|
|
101
|
-
theme?: Partial<RendererThemeOptions>;
|
|
102
|
-
}
|
|
103
|
-
declare const DEFAULT_SECTION_BACKGROUND_COLOR = "#ffffff";
|
|
104
|
-
declare const DEFAULT_SECTION_ALIGN = "left";
|
|
105
|
-
declare const DEFAULT_SECTION_BORDER_WIDTH = 1;
|
|
106
|
-
declare const DEFAULT_SECTION_BORDER_COLOR = "#000000";
|
|
107
|
-
declare const DEFAULT_SECTION_MARGIN_TOP = 0;
|
|
108
|
-
declare const DEFAULT_SECTION_MARGIN_RIGHT = 0;
|
|
109
|
-
declare const DEFAULT_SECTION_MARGIN_BOTTOM = 0;
|
|
110
|
-
declare const DEFAULT_SECTION_MARGIN_LEFT = 0;
|
|
111
|
-
declare const DEFAULT_SECTION_PADDING_TOP = 5;
|
|
112
|
-
declare const DEFAULT_SECTION_PADDING_RIGHT = 5;
|
|
113
|
-
declare const DEFAULT_SECTION_PADDING_BOTTOM = 5;
|
|
114
|
-
declare const DEFAULT_SECTION_PADDING_LEFT = 5;
|
|
115
|
-
declare const DEFAULT_COLUMNS_WIDTH = "100%";
|
|
116
|
-
declare const DEFAULT_COLUMNS_GAP = 8;
|
|
117
|
-
declare const DEFAULT_COLUMN_BACKGROUND_COLOR = "transparent";
|
|
118
|
-
declare const DEFAULT_COLUMN_BORDER_RADIUS = 0;
|
|
119
|
-
declare const DEFAULT_COLUMN_BORDER_WIDTH = 0;
|
|
120
|
-
declare const DEFAULT_COLUMN_BORDER_COLOR = "transparent";
|
|
121
|
-
declare const DEFAULT_COLUMN_PADDING_TOP = 0;
|
|
122
|
-
declare const DEFAULT_COLUMN_PADDING_RIGHT = 0;
|
|
123
|
-
declare const DEFAULT_COLUMN_PADDING_BOTTOM = 0;
|
|
124
|
-
declare const DEFAULT_COLUMN_PADDING_LEFT = 0;
|
|
125
|
-
declare const DEFAULT_INLINE_IMAGE_HEIGHT = 20;
|
|
126
|
-
declare const DEFAULT_INLINE_IMAGE_WIDTH = 20;
|
|
127
|
-
declare const LINK_PROTOCOL_REGEX: RegExp;
|
|
128
|
-
declare const DEFAULT_META_TAGS: MetaDescriptors;
|
|
129
|
-
declare const DEFAULT_HTML_PROPS: HtmlProps;
|
|
130
|
-
interface RenderOptions {
|
|
131
|
-
/**
|
|
132
|
-
* The options object allows you to customize the output of the rendered
|
|
133
|
-
* email.
|
|
134
|
-
* - `pretty` - If `true`, the output will be formatted with indentation and
|
|
135
|
-
* line breaks.
|
|
136
|
-
* - `plainText` - If `true`, the output will be plain text instead of HTML.
|
|
137
|
-
* This is useful for testing purposes.
|
|
138
|
-
*
|
|
139
|
-
* Default: `pretty` - `false`, `plainText` - `false`
|
|
140
|
-
*/
|
|
141
|
-
pretty?: boolean;
|
|
142
|
-
plainText?: boolean;
|
|
143
|
-
}
|
|
144
|
-
type VariableFormatter = (options: {
|
|
145
|
-
variable: string;
|
|
31
|
+
//#region src/config.d.ts
|
|
32
|
+
/**
|
|
33
|
+
* Custom formatter called when a variable has no value in `variables`.
|
|
34
|
+
* Return a placeholder string (e.g. `{{name}}` or `${name}`).
|
|
35
|
+
*/
|
|
36
|
+
type VariableFormatter = (opts: {
|
|
146
37
|
fallback?: string;
|
|
38
|
+
variable: string;
|
|
147
39
|
}) => string;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Any value that can be stored in the unified `variables` map.
|
|
42
|
+
*
|
|
43
|
+
* - `string` — text substitution (variable nodes, link href overrides)
|
|
44
|
+
* - `number` — numeric comparisons in visibility rules
|
|
45
|
+
* - `boolean` — truthy/falsy visibility checks
|
|
46
|
+
* - `Record<string, unknown>` — nested object data
|
|
47
|
+
* - `VariableValue[]` — arrays iterated by repeat nodes
|
|
48
|
+
*/
|
|
49
|
+
type VariableValue = Record<string, unknown> | VariableValue[] | boolean | number | string;
|
|
50
|
+
/**
|
|
51
|
+
* Public config passed to `render()`.
|
|
52
|
+
*
|
|
53
|
+
* Resolution priority (highest → lowest):
|
|
54
|
+
* 1. `item` — per-iteration data set by repeat nodes (via context)
|
|
55
|
+
* 2. `variables` — this map
|
|
56
|
+
* 3. `variableFormatter` — fallback that produces a placeholder string
|
|
57
|
+
*/
|
|
58
|
+
type MailyConfig = {
|
|
59
|
+
fontFamilies?: FontFamilyItem[];
|
|
60
|
+
htmlProps?: HtmlProps;
|
|
61
|
+
meta?: MetaDescriptor[];
|
|
62
|
+
openTrackingPixel?: string;
|
|
63
|
+
preview?: JSONContent | string;
|
|
64
|
+
theme?: NodeThemeOptions;
|
|
65
|
+
variableFormatter?: VariableFormatter;
|
|
66
|
+
variables?: Record<string, VariableValue>;
|
|
67
|
+
};
|
|
68
|
+
type BuiltMailyConfig = {
|
|
69
|
+
fontFamilies: FontFamilyItem[];
|
|
70
|
+
htmlProps: HtmlProps;
|
|
71
|
+
meta: MetaDescriptor[];
|
|
72
|
+
openTrackingPixel?: string;
|
|
73
|
+
preview?: JSONContent | string;
|
|
74
|
+
variableFormatter: VariableFormatter;
|
|
75
|
+
variableValues: Map<string, VariableValue>;
|
|
76
|
+
};
|
|
77
|
+
declare function buildConfig(config?: MailyConfig): BuiltMailyConfig;
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/context.d.ts
|
|
80
|
+
/**
|
|
81
|
+
* Typed variable keys available on every RenderContext.
|
|
82
|
+
*
|
|
83
|
+
* Extend via module augmentation to add custom keys:
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* declare module '@maily-to/render' {
|
|
88
|
+
* interface RenderVariableMap {
|
|
89
|
+
* item: Record<string, unknown>;
|
|
90
|
+
* }
|
|
91
|
+
* }
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
interface RenderVariableMap {
|
|
95
|
+
columnWidth: string;
|
|
96
|
+
item: Record<string, unknown>;
|
|
97
|
+
}
|
|
98
|
+
type BoxModel = {
|
|
99
|
+
totalWidth: number;
|
|
100
|
+
totalBorder: number;
|
|
101
|
+
totalPadding: number;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Render-time context threaded through every node renderer.
|
|
105
|
+
*
|
|
106
|
+
* State scoping:
|
|
107
|
+
* - `config` — immutable, shared by the entire tree.
|
|
108
|
+
* - `styles` — a shared collector that accumulates to the document root.
|
|
109
|
+
* Use `style()` from any depth; every context writes to the same set.
|
|
110
|
+
* - `fonts` — a shared collector of the fonts the document needs an
|
|
111
|
+
* `@font-face` rule for, keyed so each variant is registered once.
|
|
112
|
+
* - `vars` — cloned per `child()` call. A child inherits the parent's vars at
|
|
113
|
+
* creation time, but mutations in either direction are isolated.
|
|
114
|
+
* - `parent`, `siblingIndex`, `size` — local to each context instance.
|
|
115
|
+
*/
|
|
116
|
+
interface RenderContext<Variables extends RenderVariableMap = RenderVariableMap> {
|
|
117
|
+
readonly parent: AnyMailyNode | undefined;
|
|
118
|
+
readonly siblingIndex: number;
|
|
119
|
+
readonly config: BuiltMailyConfig;
|
|
120
|
+
readonly size: Readonly<BoxModel>;
|
|
121
|
+
/** Content width after subtracting border and padding from `size.totalWidth`. */
|
|
122
|
+
readonly box: number;
|
|
123
|
+
/** Render a single node using the registered node renderers. */
|
|
124
|
+
render(node: AnyMailyNode): React.ReactNode;
|
|
125
|
+
/** Render all child nodes of a parent, creating a child context for each. */
|
|
126
|
+
children(parent: AnyMailyNode): React.ReactNode[];
|
|
203
127
|
/**
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
* Default: `false`
|
|
128
|
+
* Set a typed variable on this context.
|
|
129
|
+
* Only affects this context — child contexts created via `child()` get
|
|
130
|
+
* their own copy and won't see mutations made here after creation.
|
|
208
131
|
*/
|
|
209
|
-
|
|
132
|
+
set<K extends keyof Variables>(key: K, value: Variables[K]): void;
|
|
133
|
+
/** Get a typed variable from this context. */
|
|
134
|
+
get<K extends keyof Variables>(key: K): Variables[K];
|
|
210
135
|
/**
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
* @param meta - The meta tags
|
|
136
|
+
* Access all variables as a readonly object. Creates a new object on
|
|
137
|
+
* each access — prefer `get()` for individual lookups.
|
|
214
138
|
*/
|
|
215
|
-
|
|
139
|
+
readonly var: Readonly<Variables>;
|
|
140
|
+
/** Add a CSS rule to the shared document-level style collector. */
|
|
141
|
+
style(css: string): void;
|
|
142
|
+
/** Add a font to the shared document-level font collector. */
|
|
143
|
+
font(key: string, font: FontProps): void;
|
|
216
144
|
/**
|
|
217
|
-
*
|
|
145
|
+
* Derive a child context for rendering a child node.
|
|
218
146
|
*
|
|
219
|
-
*
|
|
147
|
+
* - `config` and `styles` are shared by reference.
|
|
148
|
+
* - `vars` are shallow-cloned so child `set()` calls don't affect the parent.
|
|
149
|
+
* - `parent`, `siblingIndex`, and `size` can be overridden; unset fields
|
|
150
|
+
* inherit from the current context.
|
|
220
151
|
*/
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
render(options?: RenderOptions): Promise<string>;
|
|
225
|
-
/**
|
|
226
|
-
* `children` will return the children of the content.
|
|
227
|
-
* this is useful for rendering the content in a custom component.
|
|
228
|
-
*
|
|
229
|
-
* @returns The children of the content as JSX elements
|
|
230
|
-
*/
|
|
231
|
-
children(): (react_jsx_runtime0.JSX.Element | null)[];
|
|
232
|
-
/**
|
|
233
|
-
* `markup` will render the JSON content into React Email markup.
|
|
234
|
-
* and return the raw React Tree.
|
|
235
|
-
*/
|
|
236
|
-
markup(): react_jsx_runtime0.JSX.Element;
|
|
237
|
-
private getMarginOverrideConditions;
|
|
238
|
-
private getMappedContent;
|
|
239
|
-
private renderNode;
|
|
240
|
-
private renderMark;
|
|
241
|
-
private paragraph;
|
|
242
|
-
private text;
|
|
243
|
-
private bold;
|
|
244
|
-
private italic;
|
|
245
|
-
private underline;
|
|
246
|
-
private strike;
|
|
247
|
-
private textStyle;
|
|
248
|
-
private link;
|
|
249
|
-
private removeLinkProtocol;
|
|
250
|
-
private variableUrlValue;
|
|
251
|
-
private heading;
|
|
252
|
-
private variable;
|
|
253
|
-
getVariableValue(variable: string, fallback?: string, options?: NodeOptions): string;
|
|
254
|
-
private horizontalRule;
|
|
255
|
-
private orderedList;
|
|
256
|
-
private bulletList;
|
|
257
|
-
private listItem;
|
|
258
|
-
private button;
|
|
259
|
-
private spacer;
|
|
260
|
-
private hardBreak;
|
|
261
|
-
private logo;
|
|
262
|
-
private image;
|
|
263
|
-
private footer;
|
|
264
|
-
private blockquote;
|
|
265
|
-
private code;
|
|
266
|
-
private linkCard;
|
|
267
|
-
private section;
|
|
268
|
-
private columns;
|
|
269
|
-
private adjustColumnsContent;
|
|
270
|
-
private column;
|
|
271
|
-
private repeat;
|
|
272
|
-
/**
|
|
273
|
-
* @deprecated
|
|
274
|
-
* This for node is an alias for the repeat node
|
|
275
|
-
* we will remove this in the future
|
|
276
|
-
* @param node
|
|
277
|
-
* @param options
|
|
278
|
-
* @returns JSX.Element
|
|
279
|
-
*/
|
|
280
|
-
private for;
|
|
281
|
-
private shouldShow;
|
|
282
|
-
htmlCodeBlock(node: JSONContent$1, options?: NodeOptions): JSX.Element;
|
|
283
|
-
private inlineImage;
|
|
152
|
+
child(opts: ChildContextOptions): RenderContext<Variables>;
|
|
153
|
+
readonly styles: ReadonlySet<string>;
|
|
154
|
+
readonly fonts: ReadonlyMap<string, FontProps>;
|
|
284
155
|
}
|
|
156
|
+
type ChildContextOptions = {
|
|
157
|
+
parent?: AnyMailyNode;
|
|
158
|
+
siblingIndex?: number;
|
|
159
|
+
size?: Partial<BoxModel>;
|
|
160
|
+
};
|
|
161
|
+
type CreateRenderContextOptions = {
|
|
162
|
+
config: BuiltMailyConfig;
|
|
163
|
+
parent?: AnyMailyNode;
|
|
164
|
+
siblingIndex?: number;
|
|
165
|
+
size?: Partial<BoxModel>;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Creates the root RenderContext for a render pass. Node renderers
|
|
169
|
+
* derive child contexts via `ctx.child()` as they descend the tree.
|
|
170
|
+
*/
|
|
171
|
+
declare function defineRenderContext<Variables extends RenderVariableMap = RenderVariableMap>(opts: CreateRenderContextOptions): RenderContext<Variables>;
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/lib/link.d.ts
|
|
174
|
+
/**
|
|
175
|
+
* Extracts all valid URLs from link marks in a Maily document.
|
|
176
|
+
* Returns a deduplicated Set of href strings.
|
|
177
|
+
*/
|
|
178
|
+
declare function links(json: JSONContent): Set<string>;
|
|
179
|
+
declare function getSafeHref(url: string | null | undefined): string | undefined;
|
|
180
|
+
//#endregion
|
|
181
|
+
//#region src/mark.d.ts
|
|
182
|
+
type MarkRenderer = (mark: AnyMailyMark, text: React.ReactNode, ctx: RenderContext) => React.ReactNode;
|
|
183
|
+
declare function marks(node: AnyMailyNode, ctx: RenderContext): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null | undefined;
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region src/node.d.ts
|
|
186
|
+
type NodeRenderer = (node: AnyMailyNode, ctx: RenderContext) => React.ReactNode;
|
|
187
|
+
declare function dispatch(node: AnyMailyNode, ctx: RenderContext): React.ReactNode;
|
|
188
|
+
declare function children(parent: AnyMailyNode, ctx: RenderContext): React.ReactNode[];
|
|
285
189
|
//#endregion
|
|
286
190
|
//#region src/render.d.ts
|
|
287
|
-
declare function
|
|
288
|
-
|
|
289
|
-
|
|
191
|
+
declare function markup(json: AnyMailyNode, config?: MailyConfig): import("react").ReactNode;
|
|
192
|
+
declare function render(json: AnyMailyNode, config?: MailyConfig): Promise<string>;
|
|
193
|
+
declare function renderText(json: AnyMailyNode, config?: MailyConfig): Promise<string>;
|
|
290
194
|
//#endregion
|
|
291
|
-
export {
|
|
195
|
+
export { BoxModel, BuiltMailyConfig, ChildContextOptions, CreateRenderContextOptions, MailyConfig, MarkRenderer, type MetaDescriptor, NodeRenderer, RenderContext, RenderVariableMap, VariableFormatter, VariableValue, buildConfig, children, defineRenderContext, dispatch, getSafeHref, links, marks, markup, render, renderText };
|
|
292
196
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/meta.tsx","../src/
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/lib/meta.tsx","../src/config.ts","../src/context.ts","../src/lib/link.ts","../src/mark.tsx","../src/node.tsx","../src/render.tsx"],"mappings":";;;;;;;;;;KAMY;EACN;;EACA;;EACA;EAAc;;EACd;EAAkB;;EAClB;EAAmB;;EACnB;GAA2B;;GAC1B;;;;;;;;KCCK,qBAAqB;EAC/B;EACA;;;;;;;;;;;KAYU,gBACR,0BACA;;;;;;;;;KAaQ;EACV,eAAe;EACf,YAAY;EACZ,OAAO;EACP;EACA,UAAU;EACV,QAAQ;EACR,oBAAoB;EACpB,YAAY,eAAe;;KAGjB;EACV,cAAc;EACd,WAAW;EACX,MAAM;EACN;EACA,UAAU;EACV,mBAAmB;EACnB,gBAAgB,YAAY;;iBAUd,YAAY,SAAQ,cAAmB;;;;;;;;;;;;;;;;;UCpDtC;EACf;EACA,MAAM;;KAGI;EACV;EACA;EACA;;;;;;;;;;;;;;;UAgBe,cACf,kBAAkB,oBAAoB;WAE7B,QAAQ;WACR;WACA,QAAQ;WACR,MAAM,SAAS;;WAEf;;EAGT,OAAO,MAAM,eAAe,MAAM;;EAGlC,SAAS,QAAQ,eAAe,MAAM;;;;;;EAOtC,IAAI,gBAAgB,WAAW,KAAK,GAAG,OAAO,UAAU;;EAGxD,IAAI,gBAAgB,WAAW,KAAK,IAAI,UAAU;;;;;WAMzC,KAAK,SAAS;;EAGvB,MAAM;;EAGN,KAAK,aAAa,MAAM;;;;;;;;;EAUxB,MAAM,MAAM,sBAAsB,cAAc;WAEvC,QAAQ;WACR,OAAO,oBAAoB;;KAG1B;EACV,SAAS;EACT;EACA,OAAO,QAAQ;;KASL;EACV,QAAQ;EACR,SAAS;EACT;EACA,OAAO,QAAQ;;;;;;iBAaD,oBACd,kBAAkB,oBAAoB,mBACtC,MAAM,6BAA6B,cAAc;;;;;;;iBCtHnC,MAAM,MAAM,cAAc;iBA0C1B,YAAY;;;KCzBhB,gBACV,MAAM,cACN,MAAM,MAAM,WACZ,KAAK,kBACF,MAAM;iBA6BK,MAAM,MAAM,cAAc,KAAK,qDAAa,yBAAA,aAAA,6CAAA,yBAAA,6BAAA,+CAAA,8CAAA,kDAAA,+CAAA;;;KCtBhD,gBACV,MAAM,cACN,KAAK,kBACF,MAAM;iBAkCK,SACd,MAAM,cACN,KAAK,gBACJ,MAAM;iBAiBO,SACd,QAAQ,cACR,KAAK,gBACJ,MAAM;;;iBCtFO,OAAO,MAAM,cAAc,SAAQ,8BAAgB;iBAc7C,OAAO,MAAM,cAAc,SAAQ,cAAgB;iBAInD,WAAW,MAAM,cAAc,SAAQ,cAAgB"}
|