@blocknote/xl-odt-exporter 0.37.0 → 0.39.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.
@@ -1,577 +1,13 @@
1
1
  export declare const odtDefaultSchemaMappings: {
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
- }> & import("@blocknote/core").BlockSchemaFromSpecs<{
543
- column: {
544
- config: {
545
- type: "column";
546
- content: "none";
547
- propSchema: {
548
- width: {
549
- default: number;
550
- };
551
- };
552
- };
553
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
554
- type: "column";
555
- content: "none";
556
- propSchema: {
557
- width: {
558
- default: number;
559
- };
560
- };
561
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
562
- };
563
- columnList: {
564
- config: {
565
- type: "columnList";
566
- content: "none";
567
- propSchema: {};
568
- };
569
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
570
- type: "columnList";
571
- content: "none";
572
- propSchema: {};
573
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
574
- };
2
+ blockMapping: import("@blocknote/core").BlockMapping<import("@blocknote/core")._DefaultBlockSchema & {
3
+ pageBreak: ReturnType<typeof import("@blocknote/core").createPageBreakBlockConfig>;
4
+ } & import("@blocknote/core").BlockSchemaFromSpecs<{
5
+ column: import("@blocknote/core").LooseBlockSpec<"column", {
6
+ width: {
7
+ default: number;
8
+ };
9
+ }, "none">;
10
+ columnList: import("@blocknote/core").LooseBlockSpec<"columnList", {}, "none">;
575
11
  }>, any, any, import("react").ReactNode, import("react").ReactNode>;
576
12
  inlineContentMapping: import("@blocknote/core").InlineContentMapping<import("@blocknote/core").InlineContentSchemaFromSpecs<{
577
13
  text: {
@@ -589,49 +25,58 @@ export declare const odtDefaultSchemaMappings: {
589
25
  type: string;
590
26
  propSchema: "boolean";
591
27
  };
592
- implementation: import("@blocknote/core").StyleImplementation;
28
+ implementation: import("@blocknote/core").StyleImplementation<{
29
+ type: string;
30
+ propSchema: "boolean";
31
+ }>;
593
32
  };
594
33
  italic: {
595
34
  config: {
596
35
  type: string;
597
36
  propSchema: "boolean";
598
37
  };
599
- implementation: import("@blocknote/core").StyleImplementation;
38
+ implementation: import("@blocknote/core").StyleImplementation<{
39
+ type: string;
40
+ propSchema: "boolean";
41
+ }>;
600
42
  };
601
43
  underline: {
602
44
  config: {
603
45
  type: string;
604
46
  propSchema: "boolean";
605
47
  };
606
- implementation: import("@blocknote/core").StyleImplementation;
48
+ implementation: import("@blocknote/core").StyleImplementation<{
49
+ type: string;
50
+ propSchema: "boolean";
51
+ }>;
607
52
  };
608
53
  strike: {
609
54
  config: {
610
55
  type: string;
611
56
  propSchema: "boolean";
612
57
  };
613
- implementation: import("@blocknote/core").StyleImplementation;
614
- };
615
- code: {
616
- config: {
58
+ implementation: import("@blocknote/core").StyleImplementation<{
617
59
  type: string;
618
60
  propSchema: "boolean";
619
- };
620
- implementation: import("@blocknote/core").StyleImplementation;
61
+ }>;
621
62
  };
622
- textColor: {
63
+ code: {
623
64
  config: {
624
65
  type: string;
625
- propSchema: "string";
66
+ propSchema: "boolean";
626
67
  };
627
- implementation: import("@blocknote/core").StyleImplementation;
628
- };
629
- backgroundColor: {
630
- config: {
68
+ implementation: import("@blocknote/core").StyleImplementation<{
631
69
  type: string;
632
- propSchema: "string";
633
- };
634
- implementation: import("@blocknote/core").StyleImplementation;
635
- };
70
+ propSchema: "boolean";
71
+ }>;
72
+ };
73
+ textColor: import("@blocknote/core").StyleSpec<{
74
+ readonly type: "textColor";
75
+ readonly propSchema: "string";
76
+ }>;
77
+ backgroundColor: import("@blocknote/core").StyleSpec<{
78
+ readonly type: "backgroundColor";
79
+ readonly propSchema: "string";
80
+ }>;
636
81
  }>, Record<string, string>>;
637
82
  };