@blocknote/xl-email-exporter 0.32.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.
@@ -0,0 +1,654 @@
1
+ export declare const reactEmailDefaultSchemaMappings: {
2
+ blockMapping: import("@blocknote/core").BlockMapping<import("@blocknote/core").BlockSchemaFromSpecs<{
3
+ paragraph: {
4
+ config: {
5
+ type: "paragraph";
6
+ content: "inline";
7
+ propSchema: {
8
+ backgroundColor: {
9
+ default: "default";
10
+ };
11
+ textColor: {
12
+ default: "default";
13
+ };
14
+ textAlignment: {
15
+ default: "left";
16
+ values: readonly ["left", "center", "right", "justify"];
17
+ };
18
+ };
19
+ };
20
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
21
+ type: "paragraph";
22
+ content: "inline";
23
+ propSchema: {
24
+ backgroundColor: {
25
+ default: "default";
26
+ };
27
+ textColor: {
28
+ default: "default";
29
+ };
30
+ textAlignment: {
31
+ default: "left";
32
+ values: readonly ["left", "center", "right", "justify"];
33
+ };
34
+ };
35
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
36
+ };
37
+ heading: {
38
+ config: {
39
+ type: "heading";
40
+ content: "inline";
41
+ propSchema: {
42
+ level: {
43
+ default: number;
44
+ values: readonly [1, 2, 3, 4, 5, 6];
45
+ };
46
+ isToggleable: {
47
+ default: false;
48
+ };
49
+ backgroundColor: {
50
+ default: "default";
51
+ };
52
+ textColor: {
53
+ default: "default";
54
+ };
55
+ textAlignment: {
56
+ default: "left";
57
+ values: readonly ["left", "center", "right", "justify"];
58
+ };
59
+ };
60
+ };
61
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
62
+ type: "heading";
63
+ content: "inline";
64
+ propSchema: {
65
+ level: {
66
+ default: number;
67
+ values: readonly [1, 2, 3, 4, 5, 6];
68
+ };
69
+ isToggleable: {
70
+ default: false;
71
+ };
72
+ backgroundColor: {
73
+ default: "default";
74
+ };
75
+ textColor: {
76
+ default: "default";
77
+ };
78
+ textAlignment: {
79
+ default: "left";
80
+ values: readonly ["left", "center", "right", "justify"];
81
+ };
82
+ };
83
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
84
+ };
85
+ quote: {
86
+ config: {
87
+ type: "quote";
88
+ content: "inline";
89
+ propSchema: {
90
+ backgroundColor: {
91
+ default: "default";
92
+ };
93
+ textColor: {
94
+ default: "default";
95
+ };
96
+ textAlignment: {
97
+ default: "left";
98
+ values: readonly ["left", "center", "right", "justify"];
99
+ };
100
+ };
101
+ };
102
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
103
+ type: "quote";
104
+ content: "inline";
105
+ propSchema: {
106
+ backgroundColor: {
107
+ default: "default";
108
+ };
109
+ textColor: {
110
+ default: "default";
111
+ };
112
+ textAlignment: {
113
+ default: "left";
114
+ values: readonly ["left", "center", "right", "justify"];
115
+ };
116
+ };
117
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
118
+ };
119
+ codeBlock: {
120
+ config: {
121
+ type: "codeBlock";
122
+ content: "inline";
123
+ propSchema: {
124
+ language: {
125
+ default: string;
126
+ };
127
+ };
128
+ };
129
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
130
+ type: "codeBlock";
131
+ content: "inline";
132
+ propSchema: {
133
+ language: {
134
+ default: string;
135
+ };
136
+ };
137
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
138
+ };
139
+ toggleListItem: {
140
+ config: {
141
+ type: "toggleListItem";
142
+ content: "inline";
143
+ propSchema: {
144
+ backgroundColor: {
145
+ default: "default";
146
+ };
147
+ textColor: {
148
+ default: "default";
149
+ };
150
+ textAlignment: {
151
+ default: "left";
152
+ values: readonly ["left", "center", "right", "justify"];
153
+ };
154
+ };
155
+ };
156
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
157
+ type: "toggleListItem";
158
+ content: "inline";
159
+ propSchema: {
160
+ backgroundColor: {
161
+ default: "default";
162
+ };
163
+ textColor: {
164
+ default: "default";
165
+ };
166
+ textAlignment: {
167
+ default: "left";
168
+ values: readonly ["left", "center", "right", "justify"];
169
+ };
170
+ };
171
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
172
+ };
173
+ bulletListItem: {
174
+ config: {
175
+ type: "bulletListItem";
176
+ content: "inline";
177
+ propSchema: {
178
+ backgroundColor: {
179
+ default: "default";
180
+ };
181
+ textColor: {
182
+ default: "default";
183
+ };
184
+ textAlignment: {
185
+ default: "left";
186
+ values: readonly ["left", "center", "right", "justify"];
187
+ };
188
+ };
189
+ };
190
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
191
+ type: "bulletListItem";
192
+ content: "inline";
193
+ propSchema: {
194
+ backgroundColor: {
195
+ default: "default";
196
+ };
197
+ textColor: {
198
+ default: "default";
199
+ };
200
+ textAlignment: {
201
+ default: "left";
202
+ values: readonly ["left", "center", "right", "justify"];
203
+ };
204
+ };
205
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
206
+ };
207
+ numberedListItem: {
208
+ config: {
209
+ type: "numberedListItem";
210
+ content: "inline";
211
+ propSchema: {
212
+ start: {
213
+ default: undefined;
214
+ type: "number";
215
+ };
216
+ backgroundColor: {
217
+ default: "default";
218
+ };
219
+ textColor: {
220
+ default: "default";
221
+ };
222
+ textAlignment: {
223
+ default: "left";
224
+ values: readonly ["left", "center", "right", "justify"];
225
+ };
226
+ };
227
+ };
228
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
229
+ type: "numberedListItem";
230
+ content: "inline";
231
+ propSchema: {
232
+ start: {
233
+ default: undefined;
234
+ type: "number";
235
+ };
236
+ backgroundColor: {
237
+ default: "default";
238
+ };
239
+ textColor: {
240
+ default: "default";
241
+ };
242
+ textAlignment: {
243
+ default: "left";
244
+ values: readonly ["left", "center", "right", "justify"];
245
+ };
246
+ };
247
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
248
+ };
249
+ checkListItem: {
250
+ config: {
251
+ type: "checkListItem";
252
+ content: "inline";
253
+ propSchema: {
254
+ checked: {
255
+ default: false;
256
+ };
257
+ backgroundColor: {
258
+ default: "default";
259
+ };
260
+ textColor: {
261
+ default: "default";
262
+ };
263
+ textAlignment: {
264
+ default: "left";
265
+ values: readonly ["left", "center", "right", "justify"];
266
+ };
267
+ };
268
+ };
269
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
270
+ type: "checkListItem";
271
+ content: "inline";
272
+ propSchema: {
273
+ checked: {
274
+ default: false;
275
+ };
276
+ backgroundColor: {
277
+ default: "default";
278
+ };
279
+ textColor: {
280
+ default: "default";
281
+ };
282
+ textAlignment: {
283
+ default: "left";
284
+ values: readonly ["left", "center", "right", "justify"];
285
+ };
286
+ };
287
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
288
+ };
289
+ table: {
290
+ config: {
291
+ type: "table";
292
+ content: "table";
293
+ propSchema: {
294
+ textColor: {
295
+ default: "default";
296
+ };
297
+ };
298
+ };
299
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
300
+ type: "table";
301
+ content: "table";
302
+ propSchema: {
303
+ textColor: {
304
+ default: "default";
305
+ };
306
+ };
307
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
308
+ };
309
+ file: {
310
+ config: {
311
+ type: "file";
312
+ propSchema: {
313
+ backgroundColor: {
314
+ default: "default";
315
+ };
316
+ name: {
317
+ default: "";
318
+ };
319
+ url: {
320
+ default: "";
321
+ };
322
+ caption: {
323
+ default: "";
324
+ };
325
+ };
326
+ content: "none";
327
+ isFileBlock: true;
328
+ };
329
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
330
+ type: "file";
331
+ propSchema: {
332
+ backgroundColor: {
333
+ default: "default";
334
+ };
335
+ name: {
336
+ default: "";
337
+ };
338
+ url: {
339
+ default: "";
340
+ };
341
+ caption: {
342
+ default: "";
343
+ };
344
+ };
345
+ content: "none";
346
+ isFileBlock: true;
347
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
348
+ };
349
+ image: {
350
+ config: {
351
+ type: "image";
352
+ propSchema: {
353
+ textAlignment: {
354
+ default: "left";
355
+ values: readonly ["left", "center", "right", "justify"];
356
+ };
357
+ backgroundColor: {
358
+ default: "default";
359
+ };
360
+ name: {
361
+ default: "";
362
+ };
363
+ url: {
364
+ default: "";
365
+ };
366
+ caption: {
367
+ default: "";
368
+ };
369
+ showPreview: {
370
+ default: true;
371
+ };
372
+ previewWidth: {
373
+ default: undefined;
374
+ type: "number";
375
+ };
376
+ };
377
+ content: "none";
378
+ isFileBlock: true;
379
+ fileBlockAccept: string[];
380
+ };
381
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
382
+ type: "image";
383
+ propSchema: {
384
+ textAlignment: {
385
+ default: "left";
386
+ values: readonly ["left", "center", "right", "justify"];
387
+ };
388
+ backgroundColor: {
389
+ default: "default";
390
+ };
391
+ name: {
392
+ default: "";
393
+ };
394
+ url: {
395
+ default: "";
396
+ };
397
+ caption: {
398
+ default: "";
399
+ };
400
+ showPreview: {
401
+ default: true;
402
+ };
403
+ previewWidth: {
404
+ default: undefined;
405
+ type: "number";
406
+ };
407
+ };
408
+ content: "none";
409
+ isFileBlock: true;
410
+ fileBlockAccept: string[];
411
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
412
+ };
413
+ video: {
414
+ config: {
415
+ type: "video";
416
+ propSchema: {
417
+ textAlignment: {
418
+ default: "left";
419
+ values: readonly ["left", "center", "right", "justify"];
420
+ };
421
+ backgroundColor: {
422
+ default: "default";
423
+ };
424
+ name: {
425
+ default: "";
426
+ };
427
+ url: {
428
+ default: "";
429
+ };
430
+ caption: {
431
+ default: "";
432
+ };
433
+ showPreview: {
434
+ default: true;
435
+ };
436
+ previewWidth: {
437
+ default: undefined;
438
+ type: "number";
439
+ };
440
+ };
441
+ content: "none";
442
+ isFileBlock: true;
443
+ fileBlockAccept: string[];
444
+ };
445
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
446
+ type: "video";
447
+ propSchema: {
448
+ textAlignment: {
449
+ default: "left";
450
+ values: readonly ["left", "center", "right", "justify"];
451
+ };
452
+ backgroundColor: {
453
+ default: "default";
454
+ };
455
+ name: {
456
+ default: "";
457
+ };
458
+ url: {
459
+ default: "";
460
+ };
461
+ caption: {
462
+ default: "";
463
+ };
464
+ showPreview: {
465
+ default: true;
466
+ };
467
+ previewWidth: {
468
+ default: undefined;
469
+ type: "number";
470
+ };
471
+ };
472
+ content: "none";
473
+ isFileBlock: true;
474
+ fileBlockAccept: string[];
475
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
476
+ };
477
+ audio: {
478
+ config: {
479
+ type: "audio";
480
+ propSchema: {
481
+ backgroundColor: {
482
+ default: "default";
483
+ };
484
+ name: {
485
+ default: "";
486
+ };
487
+ url: {
488
+ default: "";
489
+ };
490
+ caption: {
491
+ default: "";
492
+ };
493
+ showPreview: {
494
+ default: true;
495
+ };
496
+ };
497
+ content: "none";
498
+ isFileBlock: true;
499
+ fileBlockAccept: string[];
500
+ };
501
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
502
+ type: "audio";
503
+ propSchema: {
504
+ backgroundColor: {
505
+ default: "default";
506
+ };
507
+ name: {
508
+ default: "";
509
+ };
510
+ url: {
511
+ default: "";
512
+ };
513
+ caption: {
514
+ default: "";
515
+ };
516
+ showPreview: {
517
+ default: true;
518
+ };
519
+ };
520
+ content: "none";
521
+ isFileBlock: true;
522
+ fileBlockAccept: string[];
523
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
524
+ };
525
+ }> & import("@blocknote/core").BlockSchemaFromSpecs<{
526
+ pageBreak: {
527
+ config: {
528
+ type: "pageBreak";
529
+ propSchema: {};
530
+ content: "none";
531
+ isFileBlock: false;
532
+ isSelectable: false;
533
+ };
534
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
535
+ type: "pageBreak";
536
+ propSchema: {};
537
+ content: "none";
538
+ isFileBlock: false;
539
+ isSelectable: false;
540
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
541
+ };
542
+ }>, any, any, import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, import("react").ReactElement<import("react").ForwardRefExoticComponent<Readonly<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">> & import("react").RefAttributes<HTMLAnchorElement>>, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<HTMLSpanElement, string | import("react").JSXElementConstructor<any>>>;
543
+ inlineContentMapping: import("@blocknote/core").InlineContentMapping<import("@blocknote/core").InlineContentSchemaFromSpecs<{
544
+ text: {
545
+ config: "text";
546
+ implementation: any;
547
+ };
548
+ link: {
549
+ config: "link";
550
+ implementation: any;
551
+ };
552
+ }>, import("@blocknote/core").StyleSchemaFromSpecs<{
553
+ bold: {
554
+ config: {
555
+ type: string;
556
+ propSchema: "boolean";
557
+ };
558
+ implementation: import("@blocknote/core").StyleImplementation;
559
+ };
560
+ italic: {
561
+ config: {
562
+ type: string;
563
+ propSchema: "boolean";
564
+ };
565
+ implementation: import("@blocknote/core").StyleImplementation;
566
+ };
567
+ underline: {
568
+ config: {
569
+ type: string;
570
+ propSchema: "boolean";
571
+ };
572
+ implementation: import("@blocknote/core").StyleImplementation;
573
+ };
574
+ strike: {
575
+ config: {
576
+ type: string;
577
+ propSchema: "boolean";
578
+ };
579
+ implementation: import("@blocknote/core").StyleImplementation;
580
+ };
581
+ code: {
582
+ config: {
583
+ type: string;
584
+ propSchema: "boolean";
585
+ };
586
+ implementation: import("@blocknote/core").StyleImplementation;
587
+ };
588
+ textColor: {
589
+ config: {
590
+ type: string;
591
+ propSchema: "string";
592
+ };
593
+ implementation: import("@blocknote/core").StyleImplementation;
594
+ };
595
+ backgroundColor: {
596
+ config: {
597
+ type: string;
598
+ propSchema: "string";
599
+ };
600
+ implementation: import("@blocknote/core").StyleImplementation;
601
+ };
602
+ }>, import("react").ReactElement<import("react").ForwardRefExoticComponent<Readonly<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">> & import("react").RefAttributes<HTMLAnchorElement>>, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<HTMLSpanElement, string | import("react").JSXElementConstructor<any>>, import("react").ReactElement<HTMLSpanElement, string | import("react").JSXElementConstructor<any>>>;
603
+ styleMapping: import("@blocknote/core").StyleMapping<import("@blocknote/core").StyleSchemaFromSpecs<{
604
+ bold: {
605
+ config: {
606
+ type: string;
607
+ propSchema: "boolean";
608
+ };
609
+ implementation: import("@blocknote/core").StyleImplementation;
610
+ };
611
+ italic: {
612
+ config: {
613
+ type: string;
614
+ propSchema: "boolean";
615
+ };
616
+ implementation: import("@blocknote/core").StyleImplementation;
617
+ };
618
+ underline: {
619
+ config: {
620
+ type: string;
621
+ propSchema: "boolean";
622
+ };
623
+ implementation: import("@blocknote/core").StyleImplementation;
624
+ };
625
+ strike: {
626
+ config: {
627
+ type: string;
628
+ propSchema: "boolean";
629
+ };
630
+ implementation: import("@blocknote/core").StyleImplementation;
631
+ };
632
+ code: {
633
+ config: {
634
+ type: string;
635
+ propSchema: "boolean";
636
+ };
637
+ implementation: import("@blocknote/core").StyleImplementation;
638
+ };
639
+ textColor: {
640
+ config: {
641
+ type: string;
642
+ propSchema: "string";
643
+ };
644
+ implementation: import("@blocknote/core").StyleImplementation;
645
+ };
646
+ backgroundColor: {
647
+ config: {
648
+ type: string;
649
+ propSchema: "string";
650
+ };
651
+ implementation: import("@blocknote/core").StyleImplementation;
652
+ };
653
+ }>, import("react").CSSProperties>;
654
+ };
@@ -0,0 +1,4 @@
1
+ import { DefaultInlineContentSchema, DefaultStyleSchema } from "@blocknote/core";
2
+ import { InlineContentMapping } from "@blocknote/core/src/exporter/mapping.js";
3
+ import { Link } from "@react-email/components";
4
+ export declare const reactEmailInlineContentMappingForDefaultSchema: InlineContentMapping<DefaultInlineContentSchema, DefaultStyleSchema, React.ReactElement<typeof Link> | React.ReactElement<HTMLSpanElement>, React.ReactElement<HTMLSpanElement>>;
@@ -0,0 +1,3 @@
1
+ import { DefaultStyleSchema, StyleMapping } from "@blocknote/core";
2
+ import { CSSProperties } from "react";
3
+ export declare const reactEmailStyleMappingForDefaultSchema: StyleMapping<DefaultStyleSchema, CSSProperties>;
@@ -0,0 +1,2 @@
1
+ export * from "./defaultSchema/index.js";
2
+ export * from "./reactEmailExporter.jsx";