@blocknote/xl-pdf-exporter 0.19.0 → 0.19.1

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.
Files changed (41) hide show
  1. package/dist/webpack-stats.json +1 -1
  2. package/package.json +4 -4
  3. package/types/src/pdf/defaultSchema/index.d.ts +0 -6
  4. package/types/src/Exporter.d.ts +0 -26
  5. package/types/src/context/BlockNoteContext.d.ts +0 -59
  6. package/types/src/context/BlockNoteContext.test.d.ts +0 -1
  7. package/types/src/context/ServerBlockNoteEditor.d.ts +0 -137
  8. package/types/src/context/ServerBlockNoteEditor.test.d.ts +0 -1
  9. package/types/src/context/react/ReactServer.test.d.ts +0 -2
  10. package/types/src/docx/blocks.d.ts +0 -433
  11. package/types/src/docx/defaultSchema/blocks.d.ts +0 -4
  12. package/types/src/docx/defaultSchema/index.d.ts +0 -559
  13. package/types/src/docx/defaultSchema/inlinecontent.d.ts +0 -4
  14. package/types/src/docx/defaultSchema/styles.d.ts +0 -4
  15. package/types/src/docx/docxExporter.d.ts +0 -14
  16. package/types/src/docx/docxExporter.test.d.ts +0 -1
  17. package/types/src/docx/imageUtil.d.ts +0 -4
  18. package/types/src/docx/index.d.ts +0 -2
  19. package/types/src/docx/inlinecontent.d.ts +0 -12
  20. package/types/src/docx/styles.d.ts +0 -55
  21. package/types/src/docx/util/Table.d.ts +0 -4
  22. package/types/src/docxExporter.d.ts +0 -255
  23. package/types/src/docxExporter.test.d.ts +0 -1
  24. package/types/src/mapping.d.ts +0 -29
  25. package/types/src/pdf/blocks.d.ts +0 -434
  26. package/types/src/pdf/inlinecontent.d.ts +0 -13
  27. package/types/src/pdf/styles.d.ts +0 -55
  28. package/types/src/pdf/util/loadFontDataUrl.d.ts +0 -3
  29. package/types/src/pdfExporter.d.ts +0 -256
  30. package/types/src/pdfExporter.test.d.ts +0 -1
  31. package/types/src/react-email/defaultSchema/blocks.d.ts +0 -5
  32. package/types/src/react-email/defaultSchema/index.d.ts +0 -560
  33. package/types/src/react-email/defaultSchema/inlinecontent.d.ts +0 -5
  34. package/types/src/react-email/defaultSchema/styles.d.ts +0 -4
  35. package/types/src/react-email/reactEmailExporter.d.ts +0 -13
  36. package/types/src/react-email/reactEmailExporter.test.d.ts +0 -8
  37. package/types/src/testDocument.d.ts +0 -505
  38. package/types/src/transformer.d.ts +0 -20
  39. package/types/src/util/fileUtil.d.ts +0 -22
  40. package/types/src/util/imageUtil.d.ts +0 -4
  41. package/types/src/yjs/index.d.ts +0 -2
@@ -1,560 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const reactEmailDefaultSchemaMappings: {
3
- blockMapping: import("@blocknote/core").BlockMapping<import("@blocknote/core").BlockSchemaFromSpecs<{
4
- paragraph: {
5
- config: {
6
- type: "paragraph";
7
- content: "inline";
8
- propSchema: {
9
- backgroundColor: {
10
- default: "default";
11
- };
12
- textColor: {
13
- default: "default";
14
- };
15
- textAlignment: {
16
- default: "left";
17
- values: readonly ["left", "center", "right", "justify"];
18
- };
19
- };
20
- };
21
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
22
- type: "paragraph";
23
- content: "inline";
24
- propSchema: {
25
- backgroundColor: {
26
- default: "default";
27
- };
28
- textColor: {
29
- default: "default";
30
- };
31
- textAlignment: {
32
- default: "left";
33
- values: readonly ["left", "center", "right", "justify"];
34
- };
35
- };
36
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
37
- };
38
- heading: {
39
- config: {
40
- type: "heading";
41
- content: "inline";
42
- propSchema: {
43
- level: {
44
- default: number;
45
- values: readonly [1, 2, 3];
46
- };
47
- backgroundColor: {
48
- default: "default";
49
- };
50
- textColor: {
51
- default: "default";
52
- };
53
- textAlignment: {
54
- default: "left";
55
- values: readonly ["left", "center", "right", "justify"];
56
- };
57
- };
58
- };
59
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
60
- type: "heading";
61
- content: "inline";
62
- propSchema: {
63
- level: {
64
- default: number;
65
- values: readonly [1, 2, 3];
66
- };
67
- backgroundColor: {
68
- default: "default";
69
- };
70
- textColor: {
71
- default: "default";
72
- };
73
- textAlignment: {
74
- default: "left";
75
- values: readonly ["left", "center", "right", "justify"];
76
- };
77
- };
78
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
79
- };
80
- codeBlock: {
81
- config: {
82
- type: "codeBlock";
83
- content: "inline";
84
- propSchema: {
85
- language: {
86
- default: string;
87
- values: string[];
88
- };
89
- };
90
- };
91
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
92
- type: "codeBlock";
93
- content: "inline";
94
- propSchema: {
95
- language: {
96
- default: string;
97
- values: string[];
98
- };
99
- };
100
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
101
- };
102
- bulletListItem: {
103
- config: {
104
- type: "bulletListItem";
105
- content: "inline";
106
- propSchema: {
107
- backgroundColor: {
108
- default: "default";
109
- };
110
- textColor: {
111
- default: "default";
112
- };
113
- textAlignment: {
114
- default: "left";
115
- values: readonly ["left", "center", "right", "justify"];
116
- };
117
- };
118
- };
119
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
120
- type: "bulletListItem";
121
- content: "inline";
122
- propSchema: {
123
- backgroundColor: {
124
- default: "default";
125
- };
126
- textColor: {
127
- default: "default";
128
- };
129
- textAlignment: {
130
- default: "left";
131
- values: readonly ["left", "center", "right", "justify"];
132
- };
133
- };
134
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
135
- };
136
- numberedListItem: {
137
- config: {
138
- type: "numberedListItem";
139
- content: "inline";
140
- propSchema: {
141
- backgroundColor: {
142
- default: "default";
143
- };
144
- textColor: {
145
- default: "default";
146
- };
147
- textAlignment: {
148
- default: "left";
149
- values: readonly ["left", "center", "right", "justify"];
150
- };
151
- };
152
- };
153
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
154
- type: "numberedListItem";
155
- content: "inline";
156
- propSchema: {
157
- backgroundColor: {
158
- default: "default";
159
- };
160
- textColor: {
161
- default: "default";
162
- };
163
- textAlignment: {
164
- default: "left";
165
- values: readonly ["left", "center", "right", "justify"];
166
- };
167
- };
168
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
169
- };
170
- checkListItem: {
171
- config: {
172
- type: "checkListItem";
173
- content: "inline";
174
- propSchema: {
175
- checked: {
176
- default: false;
177
- };
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: "checkListItem";
192
- content: "inline";
193
- propSchema: {
194
- checked: {
195
- default: false;
196
- };
197
- backgroundColor: {
198
- default: "default";
199
- };
200
- textColor: {
201
- default: "default";
202
- };
203
- textAlignment: {
204
- default: "left";
205
- values: readonly ["left", "center", "right", "justify"];
206
- };
207
- };
208
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
209
- };
210
- table: {
211
- config: {
212
- type: "table";
213
- content: "table";
214
- propSchema: {
215
- backgroundColor: {
216
- default: "default";
217
- };
218
- textColor: {
219
- default: "default";
220
- };
221
- };
222
- };
223
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
224
- type: "table";
225
- content: "table";
226
- propSchema: {
227
- backgroundColor: {
228
- default: "default";
229
- };
230
- textColor: {
231
- default: "default";
232
- };
233
- };
234
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
235
- };
236
- file: {
237
- config: {
238
- type: "file";
239
- propSchema: {
240
- backgroundColor: {
241
- default: "default";
242
- };
243
- name: {
244
- default: "";
245
- };
246
- url: {
247
- default: "";
248
- };
249
- caption: {
250
- default: "";
251
- };
252
- };
253
- content: "none";
254
- isFileBlock: true;
255
- };
256
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
257
- type: "file";
258
- propSchema: {
259
- backgroundColor: {
260
- default: "default";
261
- };
262
- name: {
263
- default: "";
264
- };
265
- url: {
266
- default: "";
267
- };
268
- caption: {
269
- default: "";
270
- };
271
- };
272
- content: "none";
273
- isFileBlock: true;
274
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
275
- };
276
- image: {
277
- config: {
278
- type: "image";
279
- propSchema: {
280
- textAlignment: {
281
- default: "left";
282
- values: readonly ["left", "center", "right", "justify"];
283
- };
284
- backgroundColor: {
285
- default: "default";
286
- };
287
- name: {
288
- default: "";
289
- };
290
- url: {
291
- default: "";
292
- };
293
- caption: {
294
- default: "";
295
- };
296
- showPreview: {
297
- default: true;
298
- };
299
- previewWidth: {
300
- default: number;
301
- };
302
- };
303
- content: "none";
304
- isFileBlock: true;
305
- fileBlockAccept: string[];
306
- };
307
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
308
- type: "image";
309
- propSchema: {
310
- textAlignment: {
311
- default: "left";
312
- values: readonly ["left", "center", "right", "justify"];
313
- };
314
- backgroundColor: {
315
- default: "default";
316
- };
317
- name: {
318
- default: "";
319
- };
320
- url: {
321
- default: "";
322
- };
323
- caption: {
324
- default: "";
325
- };
326
- showPreview: {
327
- default: true;
328
- };
329
- previewWidth: {
330
- default: number;
331
- };
332
- };
333
- content: "none";
334
- isFileBlock: true;
335
- fileBlockAccept: string[];
336
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
337
- };
338
- video: {
339
- config: {
340
- type: "video";
341
- propSchema: {
342
- textAlignment: {
343
- default: "left";
344
- values: readonly ["left", "center", "right", "justify"];
345
- };
346
- backgroundColor: {
347
- default: "default";
348
- };
349
- name: {
350
- default: "";
351
- };
352
- url: {
353
- default: "";
354
- };
355
- caption: {
356
- default: "";
357
- };
358
- showPreview: {
359
- default: true;
360
- };
361
- previewWidth: {
362
- default: number;
363
- };
364
- };
365
- content: "none";
366
- isFileBlock: true;
367
- fileBlockAccept: string[];
368
- };
369
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
370
- type: "video";
371
- propSchema: {
372
- textAlignment: {
373
- default: "left";
374
- values: readonly ["left", "center", "right", "justify"];
375
- };
376
- backgroundColor: {
377
- default: "default";
378
- };
379
- name: {
380
- default: "";
381
- };
382
- url: {
383
- default: "";
384
- };
385
- caption: {
386
- default: "";
387
- };
388
- showPreview: {
389
- default: true;
390
- };
391
- previewWidth: {
392
- default: number;
393
- };
394
- };
395
- content: "none";
396
- isFileBlock: true;
397
- fileBlockAccept: string[];
398
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
399
- };
400
- audio: {
401
- config: {
402
- type: "audio";
403
- propSchema: {
404
- backgroundColor: {
405
- default: "default";
406
- };
407
- name: {
408
- default: "";
409
- };
410
- url: {
411
- default: "";
412
- };
413
- caption: {
414
- default: "";
415
- };
416
- showPreview: {
417
- default: true;
418
- };
419
- };
420
- content: "none";
421
- isFileBlock: true;
422
- fileBlockAccept: string[];
423
- };
424
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
425
- type: "audio";
426
- propSchema: {
427
- backgroundColor: {
428
- default: "default";
429
- };
430
- name: {
431
- default: "";
432
- };
433
- url: {
434
- default: "";
435
- };
436
- caption: {
437
- default: "";
438
- };
439
- showPreview: {
440
- default: true;
441
- };
442
- };
443
- content: "none";
444
- isFileBlock: true;
445
- fileBlockAccept: string[];
446
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
447
- };
448
- }>, 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>>>;
449
- inlineContentMapping: import("@blocknote/core").InlineContentMapping<import("@blocknote/core").InlineContentSchemaFromSpecs<{
450
- text: {
451
- config: "text";
452
- implementation: any;
453
- };
454
- link: {
455
- config: "link";
456
- implementation: any;
457
- };
458
- }>, import("@blocknote/core").StyleSchemaFromSpecs<{
459
- bold: {
460
- config: {
461
- type: string;
462
- propSchema: "boolean";
463
- };
464
- implementation: import("@blocknote/core").StyleImplementation;
465
- };
466
- italic: {
467
- config: {
468
- type: string;
469
- propSchema: "boolean";
470
- };
471
- implementation: import("@blocknote/core").StyleImplementation;
472
- };
473
- underline: {
474
- config: {
475
- type: string;
476
- propSchema: "boolean";
477
- };
478
- implementation: import("@blocknote/core").StyleImplementation;
479
- };
480
- strike: {
481
- config: {
482
- type: string;
483
- propSchema: "boolean";
484
- };
485
- implementation: import("@blocknote/core").StyleImplementation;
486
- };
487
- code: {
488
- config: {
489
- type: string;
490
- propSchema: "boolean";
491
- };
492
- implementation: import("@blocknote/core").StyleImplementation;
493
- };
494
- textColor: {
495
- config: {
496
- type: string;
497
- propSchema: "string";
498
- };
499
- implementation: import("@blocknote/core").StyleImplementation;
500
- };
501
- backgroundColor: {
502
- config: {
503
- type: string;
504
- propSchema: "string";
505
- };
506
- implementation: import("@blocknote/core").StyleImplementation;
507
- };
508
- }>, 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>>>;
509
- styleMapping: import("@blocknote/core").StyleMapping<import("@blocknote/core").StyleSchemaFromSpecs<{
510
- bold: {
511
- config: {
512
- type: string;
513
- propSchema: "boolean";
514
- };
515
- implementation: import("@blocknote/core").StyleImplementation;
516
- };
517
- italic: {
518
- config: {
519
- type: string;
520
- propSchema: "boolean";
521
- };
522
- implementation: import("@blocknote/core").StyleImplementation;
523
- };
524
- underline: {
525
- config: {
526
- type: string;
527
- propSchema: "boolean";
528
- };
529
- implementation: import("@blocknote/core").StyleImplementation;
530
- };
531
- strike: {
532
- config: {
533
- type: string;
534
- propSchema: "boolean";
535
- };
536
- implementation: import("@blocknote/core").StyleImplementation;
537
- };
538
- code: {
539
- config: {
540
- type: string;
541
- propSchema: "boolean";
542
- };
543
- implementation: import("@blocknote/core").StyleImplementation;
544
- };
545
- textColor: {
546
- config: {
547
- type: string;
548
- propSchema: "string";
549
- };
550
- implementation: import("@blocknote/core").StyleImplementation;
551
- };
552
- backgroundColor: {
553
- config: {
554
- type: string;
555
- propSchema: "string";
556
- };
557
- implementation: import("@blocknote/core").StyleImplementation;
558
- };
559
- }>, import("react").CSSProperties>;
560
- };
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { DefaultInlineContentSchema, DefaultStyleSchema } from "@blocknote/core";
3
- import { InlineContentMapping } from "@blocknote/core/src/exporter/mapping.js";
4
- import { Link } from "@react-email/components";
5
- export declare const reactEmailInlineContentMappingForDefaultSchema: InlineContentMapping<DefaultInlineContentSchema, DefaultStyleSchema, React.ReactElement<typeof Link> | React.ReactElement<HTMLSpanElement>, React.ReactElement<HTMLSpanElement>>;
@@ -1,4 +0,0 @@
1
- import { DefaultStyleSchema } from "@blocknote/core";
2
- import { StyleMapping } from "@blocknote/core/src/exporter/mapping.js";
3
- import { CSSProperties } from "react";
4
- export declare const reactEmailStyleMappingForDefaultSchema: StyleMapping<DefaultStyleSchema, CSSProperties>;
@@ -1,13 +0,0 @@
1
- import { Block, BlockNoteSchema, BlockSchema, InlineContentSchema, StyleSchema, StyledText } from "@blocknote/core";
2
- import { Exporter, ExporterOptions } from "@blocknote/core";
3
- import { Link } from "@react-email/components";
4
- import { CSSProperties } from "react";
5
- export declare class ReactEmailExporter<B extends BlockSchema, S extends StyleSchema, I extends InlineContentSchema> extends Exporter<B, I, S, React.ReactElement<any>, React.ReactElement<typeof Link> | React.ReactElement<HTMLSpanElement>, CSSProperties, React.ReactElement<HTMLSpanElement>> {
6
- readonly schema: BlockNoteSchema<B, I, S>;
7
- constructor(schema: BlockNoteSchema<B, I, S>, mappings: Exporter<NoInfer<B>, NoInfer<I>, NoInfer<S>, React.ReactElement<any>, React.ReactElement<typeof Link> | React.ReactElement<HTMLSpanElement>, CSSProperties, React.ReactElement<HTMLSpanElement>>["mappings"], options?: Partial<ExporterOptions>);
8
- transformStyledText(styledText: StyledText<S>): import("react/jsx-runtime").JSX.Element;
9
- transformBlocks(blocks: Block<B, I, S>[], // Or BlockFromConfig<B[keyof B], I, S>?
10
- nestingLevel?: number): React.ReactElement<Text>[];
11
- renderFonts(): import("react/jsx-runtime").JSX.Element;
12
- toReactEmailDocument(blocks: Block<B, I, S>[]): import("react/jsx-runtime").JSX.Element;
13
- }
@@ -1,8 +0,0 @@
1
- interface KoalaWelcomeEmailProps {
2
- userFirstname: string;
3
- }
4
- export declare const KoalaWelcomeEmail: {
5
- ({ userFirstname, }: KoalaWelcomeEmailProps): import("react/jsx-runtime").JSX.Element;
6
- PreviewProps: KoalaWelcomeEmailProps;
7
- };
8
- export default KoalaWelcomeEmail;