@treygrr/vjml 0.1.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/LICENSE +21 -0
- package/README.md +143 -0
- package/dist/types/components/VjmlRenderFrame.vue.d.ts +69 -0
- package/dist/types/composables/useVjml.d.ts +1 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/metadata.d.ts +24 -0
- package/dist/types/metadata.generated.d.ts +1231 -0
- package/dist/types/plugin.d.ts +14 -0
- package/dist/types/runtime/client/renderVjmlToDebugTree.d.ts +5 -0
- package/dist/types/runtime/client/renderVjmlToHtml.d.ts +5 -0
- package/dist/types/runtime/client/useVjmlRenderer.d.ts +10 -0
- package/dist/types/runtime/component-types.generated.d.ts +581 -0
- package/dist/types/runtime/components/Accordion.d.ts +2 -0
- package/dist/types/runtime/components/AccordionElement.d.ts +2 -0
- package/dist/types/runtime/components/AccordionText.d.ts +2 -0
- package/dist/types/runtime/components/AccordionTitle.d.ts +2 -0
- package/dist/types/runtime/components/All.d.ts +2 -0
- package/dist/types/runtime/components/Attributes.d.ts +2 -0
- package/dist/types/runtime/components/Body.d.ts +2 -0
- package/dist/types/runtime/components/Breakpoint.d.ts +2 -0
- package/dist/types/runtime/components/Button.d.ts +2 -0
- package/dist/types/runtime/components/Carousel.d.ts +2 -0
- package/dist/types/runtime/components/CarouselImage.d.ts +2 -0
- package/dist/types/runtime/components/Class.d.ts +2 -0
- package/dist/types/runtime/components/Column.d.ts +2 -0
- package/dist/types/runtime/components/Divider.d.ts +2 -0
- package/dist/types/runtime/components/Font.d.ts +2 -0
- package/dist/types/runtime/components/Group.d.ts +2 -0
- package/dist/types/runtime/components/Head.d.ts +2 -0
- package/dist/types/runtime/components/Hero.d.ts +2 -0
- package/dist/types/runtime/components/HtmlAttribute.d.ts +2 -0
- package/dist/types/runtime/components/HtmlAttributes.d.ts +2 -0
- package/dist/types/runtime/components/Image.d.ts +2 -0
- package/dist/types/runtime/components/Mjml.d.ts +2 -0
- package/dist/types/runtime/components/Navbar.d.ts +2 -0
- package/dist/types/runtime/components/NavbarLink.d.ts +2 -0
- package/dist/types/runtime/components/Preview.d.ts +2 -0
- package/dist/types/runtime/components/Raw.d.ts +2 -0
- package/dist/types/runtime/components/Section.d.ts +2 -0
- package/dist/types/runtime/components/Selector.d.ts +2 -0
- package/dist/types/runtime/components/Social.d.ts +2 -0
- package/dist/types/runtime/components/SocialElement.d.ts +2 -0
- package/dist/types/runtime/components/Spacer.d.ts +2 -0
- package/dist/types/runtime/components/Style.d.ts +2 -0
- package/dist/types/runtime/components/Table.d.ts +2 -0
- package/dist/types/runtime/components/Text.d.ts +2 -0
- package/dist/types/runtime/components/Title.d.ts +2 -0
- package/dist/types/runtime/components/Wrapper.d.ts +2 -0
- package/dist/types/runtime/components.generated.d.ts +77 -0
- package/dist/types/runtime/composables/useVjml.d.ts +2 -0
- package/dist/types/runtime/composables/useVjmlComponentName.d.ts +2 -0
- package/dist/types/runtime/internal/browserDocument.d.ts +2 -0
- package/dist/types/runtime/internal/browserRendering.d.ts +3 -0
- package/dist/types/runtime/internal/componentMetadata.d.ts +2 -0
- package/dist/types/runtime/internal/content.d.ts +3 -0
- package/dist/types/runtime/internal/context.d.ts +82 -0
- package/dist/types/runtime/internal/factory.d.ts +54 -0
- package/dist/types/runtime/internal/head.d.ts +3 -0
- package/dist/types/runtime/internal/helpers/conditional.d.ts +10 -0
- package/dist/types/runtime/internal/helpers/documentShared.d.ts +10 -0
- package/dist/types/runtime/internal/helpers/measurements.d.ts +10 -0
- package/dist/types/runtime/internal/helpers/shorthand.d.ts +3 -0
- package/dist/types/runtime/internal/interactive.d.ts +36 -0
- package/dist/types/runtime/internal/layout.d.ts +76 -0
- package/dist/types/runtime/internal/renderless.d.ts +1 -0
- package/dist/types/runtime/internal/vnodes.d.ts +11 -0
- package/dist/types/runtime/manifest.generated.d.ts +412 -0
- package/dist/types/runtime/types.d.ts +1 -0
- package/dist/types/vjml.d.ts +93 -0
- package/dist/vjml.cjs +154 -0
- package/dist/vjml.js +5056 -0
- package/package.json +73 -0
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import type { VjmlComponentSlotKind } from '../metadata';
|
|
2
|
+
export interface VjmlRuntimeComponentManifestEntry {
|
|
3
|
+
readonly tagName: string;
|
|
4
|
+
readonly componentBaseName: string;
|
|
5
|
+
readonly exportName: string;
|
|
6
|
+
readonly sourcePath: string;
|
|
7
|
+
readonly slotKind: VjmlComponentSlotKind;
|
|
8
|
+
readonly acceptsChildren: boolean;
|
|
9
|
+
readonly isLeaf: boolean;
|
|
10
|
+
readonly requiresRawContent: boolean;
|
|
11
|
+
readonly allowsArbitraryAttributes: boolean;
|
|
12
|
+
readonly propInterfaceName: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const VJML_RUNTIME_COMPONENTS: readonly [{
|
|
15
|
+
readonly acceptsChildren: true;
|
|
16
|
+
readonly allowsArbitraryAttributes: false;
|
|
17
|
+
readonly componentBaseName: "Accordion";
|
|
18
|
+
readonly exportName: "Accordion";
|
|
19
|
+
readonly isLeaf: false;
|
|
20
|
+
readonly propInterfaceName: "VjmlAccordionProps";
|
|
21
|
+
readonly requiresRawContent: false;
|
|
22
|
+
readonly slotKind: "mjml";
|
|
23
|
+
readonly sourcePath: "./runtime/components/Accordion";
|
|
24
|
+
readonly tagName: "mj-accordion";
|
|
25
|
+
}, {
|
|
26
|
+
readonly acceptsChildren: true;
|
|
27
|
+
readonly allowsArbitraryAttributes: false;
|
|
28
|
+
readonly componentBaseName: "AccordionElement";
|
|
29
|
+
readonly exportName: "AccordionElement";
|
|
30
|
+
readonly isLeaf: false;
|
|
31
|
+
readonly propInterfaceName: "VjmlAccordionElementProps";
|
|
32
|
+
readonly requiresRawContent: false;
|
|
33
|
+
readonly slotKind: "mjml";
|
|
34
|
+
readonly sourcePath: "./runtime/components/AccordionElement";
|
|
35
|
+
readonly tagName: "mj-accordion-element";
|
|
36
|
+
}, {
|
|
37
|
+
readonly acceptsChildren: true;
|
|
38
|
+
readonly allowsArbitraryAttributes: false;
|
|
39
|
+
readonly componentBaseName: "AccordionText";
|
|
40
|
+
readonly exportName: "AccordionText";
|
|
41
|
+
readonly isLeaf: false;
|
|
42
|
+
readonly propInterfaceName: "VjmlAccordionTextProps";
|
|
43
|
+
readonly requiresRawContent: true;
|
|
44
|
+
readonly slotKind: "html";
|
|
45
|
+
readonly sourcePath: "./runtime/components/AccordionText";
|
|
46
|
+
readonly tagName: "mj-accordion-text";
|
|
47
|
+
}, {
|
|
48
|
+
readonly acceptsChildren: true;
|
|
49
|
+
readonly allowsArbitraryAttributes: false;
|
|
50
|
+
readonly componentBaseName: "AccordionTitle";
|
|
51
|
+
readonly exportName: "AccordionTitle";
|
|
52
|
+
readonly isLeaf: false;
|
|
53
|
+
readonly propInterfaceName: "VjmlAccordionTitleProps";
|
|
54
|
+
readonly requiresRawContent: true;
|
|
55
|
+
readonly slotKind: "html";
|
|
56
|
+
readonly sourcePath: "./runtime/components/AccordionTitle";
|
|
57
|
+
readonly tagName: "mj-accordion-title";
|
|
58
|
+
}, {
|
|
59
|
+
readonly acceptsChildren: false;
|
|
60
|
+
readonly allowsArbitraryAttributes: true;
|
|
61
|
+
readonly componentBaseName: "All";
|
|
62
|
+
readonly exportName: "All";
|
|
63
|
+
readonly isLeaf: true;
|
|
64
|
+
readonly propInterfaceName: "VjmlAllProps";
|
|
65
|
+
readonly requiresRawContent: false;
|
|
66
|
+
readonly slotKind: "none";
|
|
67
|
+
readonly sourcePath: "./runtime/components/All";
|
|
68
|
+
readonly tagName: "mj-all";
|
|
69
|
+
}, {
|
|
70
|
+
readonly acceptsChildren: true;
|
|
71
|
+
readonly allowsArbitraryAttributes: false;
|
|
72
|
+
readonly componentBaseName: "Attributes";
|
|
73
|
+
readonly exportName: "Attributes";
|
|
74
|
+
readonly isLeaf: false;
|
|
75
|
+
readonly propInterfaceName: "VjmlAttributesProps";
|
|
76
|
+
readonly requiresRawContent: false;
|
|
77
|
+
readonly slotKind: "mjml";
|
|
78
|
+
readonly sourcePath: "./runtime/components/Attributes";
|
|
79
|
+
readonly tagName: "mj-attributes";
|
|
80
|
+
}, {
|
|
81
|
+
readonly acceptsChildren: true;
|
|
82
|
+
readonly allowsArbitraryAttributes: false;
|
|
83
|
+
readonly componentBaseName: "Body";
|
|
84
|
+
readonly exportName: "Body";
|
|
85
|
+
readonly isLeaf: false;
|
|
86
|
+
readonly propInterfaceName: "VjmlBodyProps";
|
|
87
|
+
readonly requiresRawContent: false;
|
|
88
|
+
readonly slotKind: "mjml";
|
|
89
|
+
readonly sourcePath: "./runtime/components/Body";
|
|
90
|
+
readonly tagName: "mj-body";
|
|
91
|
+
}, {
|
|
92
|
+
readonly acceptsChildren: true;
|
|
93
|
+
readonly allowsArbitraryAttributes: false;
|
|
94
|
+
readonly componentBaseName: "Breakpoint";
|
|
95
|
+
readonly exportName: "Breakpoint";
|
|
96
|
+
readonly isLeaf: false;
|
|
97
|
+
readonly propInterfaceName: "VjmlBreakpointProps";
|
|
98
|
+
readonly requiresRawContent: true;
|
|
99
|
+
readonly slotKind: "html";
|
|
100
|
+
readonly sourcePath: "./runtime/components/Breakpoint";
|
|
101
|
+
readonly tagName: "mj-breakpoint";
|
|
102
|
+
}, {
|
|
103
|
+
readonly acceptsChildren: true;
|
|
104
|
+
readonly allowsArbitraryAttributes: false;
|
|
105
|
+
readonly componentBaseName: "Button";
|
|
106
|
+
readonly exportName: "Button";
|
|
107
|
+
readonly isLeaf: false;
|
|
108
|
+
readonly propInterfaceName: "VjmlButtonProps";
|
|
109
|
+
readonly requiresRawContent: true;
|
|
110
|
+
readonly slotKind: "html";
|
|
111
|
+
readonly sourcePath: "./runtime/components/Button";
|
|
112
|
+
readonly tagName: "mj-button";
|
|
113
|
+
}, {
|
|
114
|
+
readonly acceptsChildren: true;
|
|
115
|
+
readonly allowsArbitraryAttributes: false;
|
|
116
|
+
readonly componentBaseName: "Carousel";
|
|
117
|
+
readonly exportName: "Carousel";
|
|
118
|
+
readonly isLeaf: false;
|
|
119
|
+
readonly propInterfaceName: "VjmlCarouselProps";
|
|
120
|
+
readonly requiresRawContent: false;
|
|
121
|
+
readonly slotKind: "mjml";
|
|
122
|
+
readonly sourcePath: "./runtime/components/Carousel";
|
|
123
|
+
readonly tagName: "mj-carousel";
|
|
124
|
+
}, {
|
|
125
|
+
readonly acceptsChildren: true;
|
|
126
|
+
readonly allowsArbitraryAttributes: false;
|
|
127
|
+
readonly componentBaseName: "CarouselImage";
|
|
128
|
+
readonly exportName: "CarouselImage";
|
|
129
|
+
readonly isLeaf: false;
|
|
130
|
+
readonly propInterfaceName: "VjmlCarouselImageProps";
|
|
131
|
+
readonly requiresRawContent: true;
|
|
132
|
+
readonly slotKind: "html";
|
|
133
|
+
readonly sourcePath: "./runtime/components/CarouselImage";
|
|
134
|
+
readonly tagName: "mj-carousel-image";
|
|
135
|
+
}, {
|
|
136
|
+
readonly acceptsChildren: true;
|
|
137
|
+
readonly allowsArbitraryAttributes: true;
|
|
138
|
+
readonly componentBaseName: "Class";
|
|
139
|
+
readonly exportName: "Class";
|
|
140
|
+
readonly isLeaf: false;
|
|
141
|
+
readonly propInterfaceName: "VjmlClassProps";
|
|
142
|
+
readonly requiresRawContent: false;
|
|
143
|
+
readonly slotKind: "mjml";
|
|
144
|
+
readonly sourcePath: "./runtime/components/Class";
|
|
145
|
+
readonly tagName: "mj-class";
|
|
146
|
+
}, {
|
|
147
|
+
readonly acceptsChildren: true;
|
|
148
|
+
readonly allowsArbitraryAttributes: false;
|
|
149
|
+
readonly componentBaseName: "Column";
|
|
150
|
+
readonly exportName: "Column";
|
|
151
|
+
readonly isLeaf: false;
|
|
152
|
+
readonly propInterfaceName: "VjmlColumnProps";
|
|
153
|
+
readonly requiresRawContent: false;
|
|
154
|
+
readonly slotKind: "mjml";
|
|
155
|
+
readonly sourcePath: "./runtime/components/Column";
|
|
156
|
+
readonly tagName: "mj-column";
|
|
157
|
+
}, {
|
|
158
|
+
readonly acceptsChildren: false;
|
|
159
|
+
readonly allowsArbitraryAttributes: false;
|
|
160
|
+
readonly componentBaseName: "Divider";
|
|
161
|
+
readonly exportName: "Divider";
|
|
162
|
+
readonly isLeaf: true;
|
|
163
|
+
readonly propInterfaceName: "VjmlDividerProps";
|
|
164
|
+
readonly requiresRawContent: false;
|
|
165
|
+
readonly slotKind: "none";
|
|
166
|
+
readonly sourcePath: "./runtime/components/Divider";
|
|
167
|
+
readonly tagName: "mj-divider";
|
|
168
|
+
}, {
|
|
169
|
+
readonly acceptsChildren: false;
|
|
170
|
+
readonly allowsArbitraryAttributes: false;
|
|
171
|
+
readonly componentBaseName: "Font";
|
|
172
|
+
readonly exportName: "Font";
|
|
173
|
+
readonly isLeaf: true;
|
|
174
|
+
readonly propInterfaceName: "VjmlFontProps";
|
|
175
|
+
readonly requiresRawContent: false;
|
|
176
|
+
readonly slotKind: "none";
|
|
177
|
+
readonly sourcePath: "./runtime/components/Font";
|
|
178
|
+
readonly tagName: "mj-font";
|
|
179
|
+
}, {
|
|
180
|
+
readonly acceptsChildren: true;
|
|
181
|
+
readonly allowsArbitraryAttributes: false;
|
|
182
|
+
readonly componentBaseName: "Group";
|
|
183
|
+
readonly exportName: "Group";
|
|
184
|
+
readonly isLeaf: false;
|
|
185
|
+
readonly propInterfaceName: "VjmlGroupProps";
|
|
186
|
+
readonly requiresRawContent: false;
|
|
187
|
+
readonly slotKind: "mjml";
|
|
188
|
+
readonly sourcePath: "./runtime/components/Group";
|
|
189
|
+
readonly tagName: "mj-group";
|
|
190
|
+
}, {
|
|
191
|
+
readonly acceptsChildren: true;
|
|
192
|
+
readonly allowsArbitraryAttributes: false;
|
|
193
|
+
readonly componentBaseName: "Head";
|
|
194
|
+
readonly exportName: "Head";
|
|
195
|
+
readonly isLeaf: false;
|
|
196
|
+
readonly propInterfaceName: "VjmlHeadProps";
|
|
197
|
+
readonly requiresRawContent: false;
|
|
198
|
+
readonly slotKind: "mjml";
|
|
199
|
+
readonly sourcePath: "./runtime/components/Head";
|
|
200
|
+
readonly tagName: "mj-head";
|
|
201
|
+
}, {
|
|
202
|
+
readonly acceptsChildren: true;
|
|
203
|
+
readonly allowsArbitraryAttributes: false;
|
|
204
|
+
readonly componentBaseName: "Hero";
|
|
205
|
+
readonly exportName: "Hero";
|
|
206
|
+
readonly isLeaf: false;
|
|
207
|
+
readonly propInterfaceName: "VjmlHeroProps";
|
|
208
|
+
readonly requiresRawContent: false;
|
|
209
|
+
readonly slotKind: "mjml";
|
|
210
|
+
readonly sourcePath: "./runtime/components/Hero";
|
|
211
|
+
readonly tagName: "mj-hero";
|
|
212
|
+
}, {
|
|
213
|
+
readonly acceptsChildren: true;
|
|
214
|
+
readonly allowsArbitraryAttributes: false;
|
|
215
|
+
readonly componentBaseName: "HtmlAttribute";
|
|
216
|
+
readonly exportName: "HtmlAttribute";
|
|
217
|
+
readonly isLeaf: false;
|
|
218
|
+
readonly propInterfaceName: "VjmlHtmlAttributeProps";
|
|
219
|
+
readonly requiresRawContent: true;
|
|
220
|
+
readonly slotKind: "text";
|
|
221
|
+
readonly sourcePath: "./runtime/components/HtmlAttribute";
|
|
222
|
+
readonly tagName: "mj-html-attribute";
|
|
223
|
+
}, {
|
|
224
|
+
readonly acceptsChildren: true;
|
|
225
|
+
readonly allowsArbitraryAttributes: false;
|
|
226
|
+
readonly componentBaseName: "HtmlAttributes";
|
|
227
|
+
readonly exportName: "HtmlAttributes";
|
|
228
|
+
readonly isLeaf: false;
|
|
229
|
+
readonly propInterfaceName: "VjmlHtmlAttributesProps";
|
|
230
|
+
readonly requiresRawContent: false;
|
|
231
|
+
readonly slotKind: "mjml";
|
|
232
|
+
readonly sourcePath: "./runtime/components/HtmlAttributes";
|
|
233
|
+
readonly tagName: "mj-html-attributes";
|
|
234
|
+
}, {
|
|
235
|
+
readonly acceptsChildren: false;
|
|
236
|
+
readonly allowsArbitraryAttributes: false;
|
|
237
|
+
readonly componentBaseName: "Image";
|
|
238
|
+
readonly exportName: "Image";
|
|
239
|
+
readonly isLeaf: true;
|
|
240
|
+
readonly propInterfaceName: "VjmlImageProps";
|
|
241
|
+
readonly requiresRawContent: false;
|
|
242
|
+
readonly slotKind: "none";
|
|
243
|
+
readonly sourcePath: "./runtime/components/Image";
|
|
244
|
+
readonly tagName: "mj-image";
|
|
245
|
+
}, {
|
|
246
|
+
readonly acceptsChildren: true;
|
|
247
|
+
readonly allowsArbitraryAttributes: false;
|
|
248
|
+
readonly componentBaseName: "Mjml";
|
|
249
|
+
readonly exportName: "Mjml";
|
|
250
|
+
readonly isLeaf: false;
|
|
251
|
+
readonly propInterfaceName: "VjmlMjmlProps";
|
|
252
|
+
readonly requiresRawContent: false;
|
|
253
|
+
readonly slotKind: "mjml";
|
|
254
|
+
readonly sourcePath: "./runtime/components/Mjml";
|
|
255
|
+
readonly tagName: "mjml";
|
|
256
|
+
}, {
|
|
257
|
+
readonly acceptsChildren: true;
|
|
258
|
+
readonly allowsArbitraryAttributes: false;
|
|
259
|
+
readonly componentBaseName: "Navbar";
|
|
260
|
+
readonly exportName: "Navbar";
|
|
261
|
+
readonly isLeaf: false;
|
|
262
|
+
readonly propInterfaceName: "VjmlNavbarProps";
|
|
263
|
+
readonly requiresRawContent: false;
|
|
264
|
+
readonly slotKind: "mjml";
|
|
265
|
+
readonly sourcePath: "./runtime/components/Navbar";
|
|
266
|
+
readonly tagName: "mj-navbar";
|
|
267
|
+
}, {
|
|
268
|
+
readonly acceptsChildren: true;
|
|
269
|
+
readonly allowsArbitraryAttributes: false;
|
|
270
|
+
readonly componentBaseName: "NavbarLink";
|
|
271
|
+
readonly exportName: "NavbarLink";
|
|
272
|
+
readonly isLeaf: false;
|
|
273
|
+
readonly propInterfaceName: "VjmlNavbarLinkProps";
|
|
274
|
+
readonly requiresRawContent: true;
|
|
275
|
+
readonly slotKind: "html";
|
|
276
|
+
readonly sourcePath: "./runtime/components/NavbarLink";
|
|
277
|
+
readonly tagName: "mj-navbar-link";
|
|
278
|
+
}, {
|
|
279
|
+
readonly acceptsChildren: true;
|
|
280
|
+
readonly allowsArbitraryAttributes: false;
|
|
281
|
+
readonly componentBaseName: "Preview";
|
|
282
|
+
readonly exportName: "Preview";
|
|
283
|
+
readonly isLeaf: false;
|
|
284
|
+
readonly propInterfaceName: "VjmlPreviewProps";
|
|
285
|
+
readonly requiresRawContent: true;
|
|
286
|
+
readonly slotKind: "text";
|
|
287
|
+
readonly sourcePath: "./runtime/components/Preview";
|
|
288
|
+
readonly tagName: "mj-preview";
|
|
289
|
+
}, {
|
|
290
|
+
readonly acceptsChildren: true;
|
|
291
|
+
readonly allowsArbitraryAttributes: false;
|
|
292
|
+
readonly componentBaseName: "Raw";
|
|
293
|
+
readonly exportName: "Raw";
|
|
294
|
+
readonly isLeaf: false;
|
|
295
|
+
readonly propInterfaceName: "VjmlRawProps";
|
|
296
|
+
readonly requiresRawContent: true;
|
|
297
|
+
readonly slotKind: "html";
|
|
298
|
+
readonly sourcePath: "./runtime/components/Raw";
|
|
299
|
+
readonly tagName: "mj-raw";
|
|
300
|
+
}, {
|
|
301
|
+
readonly acceptsChildren: true;
|
|
302
|
+
readonly allowsArbitraryAttributes: false;
|
|
303
|
+
readonly componentBaseName: "Section";
|
|
304
|
+
readonly exportName: "Section";
|
|
305
|
+
readonly isLeaf: false;
|
|
306
|
+
readonly propInterfaceName: "VjmlSectionProps";
|
|
307
|
+
readonly requiresRawContent: false;
|
|
308
|
+
readonly slotKind: "mjml";
|
|
309
|
+
readonly sourcePath: "./runtime/components/Section";
|
|
310
|
+
readonly tagName: "mj-section";
|
|
311
|
+
}, {
|
|
312
|
+
readonly acceptsChildren: true;
|
|
313
|
+
readonly allowsArbitraryAttributes: false;
|
|
314
|
+
readonly componentBaseName: "Selector";
|
|
315
|
+
readonly exportName: "Selector";
|
|
316
|
+
readonly isLeaf: false;
|
|
317
|
+
readonly propInterfaceName: "VjmlSelectorProps";
|
|
318
|
+
readonly requiresRawContent: false;
|
|
319
|
+
readonly slotKind: "mjml";
|
|
320
|
+
readonly sourcePath: "./runtime/components/Selector";
|
|
321
|
+
readonly tagName: "mj-selector";
|
|
322
|
+
}, {
|
|
323
|
+
readonly acceptsChildren: true;
|
|
324
|
+
readonly allowsArbitraryAttributes: false;
|
|
325
|
+
readonly componentBaseName: "Social";
|
|
326
|
+
readonly exportName: "Social";
|
|
327
|
+
readonly isLeaf: false;
|
|
328
|
+
readonly propInterfaceName: "VjmlSocialProps";
|
|
329
|
+
readonly requiresRawContent: false;
|
|
330
|
+
readonly slotKind: "mjml";
|
|
331
|
+
readonly sourcePath: "./runtime/components/Social";
|
|
332
|
+
readonly tagName: "mj-social";
|
|
333
|
+
}, {
|
|
334
|
+
readonly acceptsChildren: true;
|
|
335
|
+
readonly allowsArbitraryAttributes: false;
|
|
336
|
+
readonly componentBaseName: "SocialElement";
|
|
337
|
+
readonly exportName: "SocialElement";
|
|
338
|
+
readonly isLeaf: false;
|
|
339
|
+
readonly propInterfaceName: "VjmlSocialElementProps";
|
|
340
|
+
readonly requiresRawContent: true;
|
|
341
|
+
readonly slotKind: "html";
|
|
342
|
+
readonly sourcePath: "./runtime/components/SocialElement";
|
|
343
|
+
readonly tagName: "mj-social-element";
|
|
344
|
+
}, {
|
|
345
|
+
readonly acceptsChildren: false;
|
|
346
|
+
readonly allowsArbitraryAttributes: false;
|
|
347
|
+
readonly componentBaseName: "Spacer";
|
|
348
|
+
readonly exportName: "Spacer";
|
|
349
|
+
readonly isLeaf: true;
|
|
350
|
+
readonly propInterfaceName: "VjmlSpacerProps";
|
|
351
|
+
readonly requiresRawContent: false;
|
|
352
|
+
readonly slotKind: "none";
|
|
353
|
+
readonly sourcePath: "./runtime/components/Spacer";
|
|
354
|
+
readonly tagName: "mj-spacer";
|
|
355
|
+
}, {
|
|
356
|
+
readonly acceptsChildren: true;
|
|
357
|
+
readonly allowsArbitraryAttributes: false;
|
|
358
|
+
readonly componentBaseName: "Style";
|
|
359
|
+
readonly exportName: "Style";
|
|
360
|
+
readonly isLeaf: false;
|
|
361
|
+
readonly propInterfaceName: "VjmlStyleProps";
|
|
362
|
+
readonly requiresRawContent: true;
|
|
363
|
+
readonly slotKind: "text";
|
|
364
|
+
readonly sourcePath: "./runtime/components/Style";
|
|
365
|
+
readonly tagName: "mj-style";
|
|
366
|
+
}, {
|
|
367
|
+
readonly acceptsChildren: true;
|
|
368
|
+
readonly allowsArbitraryAttributes: false;
|
|
369
|
+
readonly componentBaseName: "Table";
|
|
370
|
+
readonly exportName: "Table";
|
|
371
|
+
readonly isLeaf: false;
|
|
372
|
+
readonly propInterfaceName: "VjmlTableProps";
|
|
373
|
+
readonly requiresRawContent: true;
|
|
374
|
+
readonly slotKind: "html";
|
|
375
|
+
readonly sourcePath: "./runtime/components/Table";
|
|
376
|
+
readonly tagName: "mj-table";
|
|
377
|
+
}, {
|
|
378
|
+
readonly acceptsChildren: true;
|
|
379
|
+
readonly allowsArbitraryAttributes: false;
|
|
380
|
+
readonly componentBaseName: "Text";
|
|
381
|
+
readonly exportName: "Text";
|
|
382
|
+
readonly isLeaf: false;
|
|
383
|
+
readonly propInterfaceName: "VjmlTextProps";
|
|
384
|
+
readonly requiresRawContent: true;
|
|
385
|
+
readonly slotKind: "html";
|
|
386
|
+
readonly sourcePath: "./runtime/components/Text";
|
|
387
|
+
readonly tagName: "mj-text";
|
|
388
|
+
}, {
|
|
389
|
+
readonly acceptsChildren: true;
|
|
390
|
+
readonly allowsArbitraryAttributes: false;
|
|
391
|
+
readonly componentBaseName: "Title";
|
|
392
|
+
readonly exportName: "Title";
|
|
393
|
+
readonly isLeaf: false;
|
|
394
|
+
readonly propInterfaceName: "VjmlTitleProps";
|
|
395
|
+
readonly requiresRawContent: true;
|
|
396
|
+
readonly slotKind: "text";
|
|
397
|
+
readonly sourcePath: "./runtime/components/Title";
|
|
398
|
+
readonly tagName: "mj-title";
|
|
399
|
+
}, {
|
|
400
|
+
readonly acceptsChildren: true;
|
|
401
|
+
readonly allowsArbitraryAttributes: false;
|
|
402
|
+
readonly componentBaseName: "Wrapper";
|
|
403
|
+
readonly exportName: "Wrapper";
|
|
404
|
+
readonly isLeaf: false;
|
|
405
|
+
readonly propInterfaceName: "VjmlWrapperProps";
|
|
406
|
+
readonly requiresRawContent: false;
|
|
407
|
+
readonly slotKind: "mjml";
|
|
408
|
+
readonly sourcePath: "./runtime/components/Wrapper";
|
|
409
|
+
readonly tagName: "mj-wrapper";
|
|
410
|
+
}];
|
|
411
|
+
export declare const VJML_RUNTIME_COMPONENTS_BY_TAG_NAME: Readonly<Record<string, VjmlRuntimeComponentManifestEntry>>;
|
|
412
|
+
export declare function getVjmlRuntimeComponentManifestEntry(tagName: string): VjmlRuntimeComponentManifestEntry | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { RenderVjmlToHtmlOptions, VjmlDebugDocumentState, VjmlDebugNode, VjmlDebugRenderResult, VjmlFontMap, VjmlRenderMode, VjmlRenderOptions, VjmlRenderResult, VjmlRuntimeConfig, VjmlRuntimeConfigInput, VjmlValidationIssue, VjmlValidationMode, VjmlValidationSeverity, } from '../vjml';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export type VjmlFontMap = Record<string, string>;
|
|
2
|
+
export type VjmlRenderMode = 'poc' | 'strict';
|
|
3
|
+
export type VjmlValidationMode = 'off' | 'warn' | 'strict';
|
|
4
|
+
export type VjmlValidationSeverity = 'warning' | 'error';
|
|
5
|
+
export interface VjmlValidationIssue {
|
|
6
|
+
code: string;
|
|
7
|
+
message: string;
|
|
8
|
+
severity: VjmlValidationSeverity;
|
|
9
|
+
path?: string;
|
|
10
|
+
tagName?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface VjmlDebugElementNode {
|
|
13
|
+
type: 'element';
|
|
14
|
+
tagName: string;
|
|
15
|
+
attributes: Record<string, string>;
|
|
16
|
+
children: VjmlDebugNode[];
|
|
17
|
+
}
|
|
18
|
+
export interface VjmlDebugTextNode {
|
|
19
|
+
type: 'text';
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
export interface VjmlDebugCommentNode {
|
|
23
|
+
type: 'comment';
|
|
24
|
+
value: string;
|
|
25
|
+
}
|
|
26
|
+
export type VjmlDebugNode = VjmlDebugCommentNode | VjmlDebugElementNode | VjmlDebugTextNode;
|
|
27
|
+
export interface VjmlDebugDocumentState {
|
|
28
|
+
backgroundColor: string;
|
|
29
|
+
beforeDoctype: string[];
|
|
30
|
+
breakpoint: string;
|
|
31
|
+
classes: Record<string, Record<string, string>>;
|
|
32
|
+
classesDefault: Record<string, Record<string, string>>;
|
|
33
|
+
componentsHeadStyle: string[];
|
|
34
|
+
defaultAttributes: Record<string, Record<string, string>>;
|
|
35
|
+
dir: string;
|
|
36
|
+
fonts: VjmlFontMap;
|
|
37
|
+
forceOWADesktop: boolean;
|
|
38
|
+
headRaw: string[];
|
|
39
|
+
headStyle: Record<string, string>;
|
|
40
|
+
htmlAttributes: Record<string, Record<string, string>>;
|
|
41
|
+
inlineStyle: string[];
|
|
42
|
+
lang: string;
|
|
43
|
+
mediaQueries: Record<string, string>;
|
|
44
|
+
preview: string;
|
|
45
|
+
printerSupport: boolean;
|
|
46
|
+
style: string[];
|
|
47
|
+
title: string;
|
|
48
|
+
wrapWithDocument: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface VjmlRenderOptions {
|
|
51
|
+
breakpoint: string;
|
|
52
|
+
fonts: VjmlFontMap;
|
|
53
|
+
minify: boolean;
|
|
54
|
+
mode: VjmlRenderMode;
|
|
55
|
+
validation: VjmlValidationMode;
|
|
56
|
+
}
|
|
57
|
+
export interface VjmlRuntimeConfigInput {
|
|
58
|
+
prefix?: string;
|
|
59
|
+
render?: Partial<VjmlRenderOptions>;
|
|
60
|
+
}
|
|
61
|
+
export interface VjmlRuntimeConfig {
|
|
62
|
+
prefix: string;
|
|
63
|
+
render: VjmlRenderOptions;
|
|
64
|
+
}
|
|
65
|
+
export interface RenderVjmlToHtmlOptions {
|
|
66
|
+
props?: Record<string, unknown>;
|
|
67
|
+
runtime?: VjmlRuntimeConfigInput;
|
|
68
|
+
}
|
|
69
|
+
export interface VjmlRenderResult {
|
|
70
|
+
html: string;
|
|
71
|
+
warnings: string[];
|
|
72
|
+
issues: VjmlValidationIssue[];
|
|
73
|
+
config: VjmlRuntimeConfig;
|
|
74
|
+
}
|
|
75
|
+
export interface VjmlDebugRenderResult extends VjmlRenderResult {
|
|
76
|
+
document: VjmlDebugDocumentState;
|
|
77
|
+
tree: VjmlDebugNode[];
|
|
78
|
+
}
|
|
79
|
+
export declare const DEFAULT_VJML_PREFIX = "VJ";
|
|
80
|
+
export declare const DEFAULT_VJML_FONTS: VjmlFontMap;
|
|
81
|
+
export declare const DEFAULT_VJML_RENDER_OPTIONS: VjmlRenderOptions;
|
|
82
|
+
export declare const VJML_COMPONENT_NAME_EXAMPLES: {
|
|
83
|
+
mjml: string;
|
|
84
|
+
'mj-body': string;
|
|
85
|
+
'mj-section': string;
|
|
86
|
+
'mj-text': string;
|
|
87
|
+
'mj-html-attribute': string;
|
|
88
|
+
};
|
|
89
|
+
export declare function toVjmlComponentBaseName(tagName: string): string;
|
|
90
|
+
export declare function toVjmlComponentName(tagName: string, prefix?: string): string;
|
|
91
|
+
export declare function resolveVjmlRenderOptions(options?: Partial<VjmlRenderOptions>): VjmlRenderOptions;
|
|
92
|
+
export declare function mergeVjmlRuntimeConfig(base?: VjmlRuntimeConfigInput | Partial<VjmlRuntimeConfig>, overrides?: VjmlRuntimeConfigInput): VjmlRuntimeConfig;
|
|
93
|
+
export declare function resolveVjmlRuntimeConfig(options?: VjmlRuntimeConfigInput): VjmlRuntimeConfig;
|