@blocknote/xl-multi-column 0.38.0 → 0.39.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.
@@ -1,542 +1,199 @@
1
- import { BlockNoteEditor, BlockNoteSchema } from "@blocknote/core";
2
- export declare const testEditorSchema: BlockNoteSchema<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
- };
1
+ import { BlockNoteEditor } from "@blocknote/core";
2
+ export declare const testEditorSchema: import("@blocknote/core").CustomBlockNoteSchema<import("@blocknote/core").BlockSchemaFromSpecs<{
3
+ readonly audio: import("@blocknote/core").BlockSpec<"audio", {
4
+ readonly backgroundColor: {
5
+ default: "default";
6
+ };
7
+ readonly name: {
8
+ readonly default: "";
9
+ };
10
+ readonly url: {
11
+ readonly default: "";
12
+ };
13
+ readonly caption: {
14
+ readonly default: "";
15
+ };
16
+ readonly showPreview: {
17
+ readonly default: true;
18
+ };
19
+ }, "none">;
20
+ readonly bulletListItem: import("@blocknote/core").BlockSpec<"bulletListItem", {
21
+ readonly backgroundColor: {
22
+ default: "default";
23
+ };
24
+ readonly textColor: {
25
+ default: "default";
26
+ };
27
+ readonly textAlignment: {
28
+ default: "left";
29
+ values: readonly ["left", "center", "right", "justify"];
30
+ };
31
+ }, "inline">;
32
+ readonly checkListItem: import("@blocknote/core").BlockSpec<"checkListItem", {
33
+ readonly checked: {
34
+ readonly default: false;
35
+ readonly type: "boolean";
36
+ };
37
+ readonly backgroundColor: {
38
+ default: "default";
39
+ };
40
+ readonly textColor: {
41
+ default: "default";
42
+ };
43
+ readonly textAlignment: {
44
+ default: "left";
45
+ values: readonly ["left", "center", "right", "justify"];
46
+ };
47
+ }, "inline">;
48
+ readonly codeBlock: import("@blocknote/core").BlockSpec<"codeBlock", {
49
+ readonly language: {
50
+ readonly default: string;
51
+ };
52
+ }, "inline">;
53
+ readonly file: import("@blocknote/core").BlockSpec<"file", {
54
+ readonly backgroundColor: {
55
+ default: "default";
56
+ };
57
+ readonly name: {
58
+ readonly default: "";
59
+ };
60
+ readonly url: {
61
+ readonly default: "";
62
+ };
63
+ readonly caption: {
64
+ readonly default: "";
65
+ };
66
+ }, "none">;
67
+ readonly heading: import("@blocknote/core").BlockSpec<"heading", {
68
+ readonly isToggleable?: {
69
+ readonly default: false;
70
+ readonly optional: true;
71
+ } | undefined;
72
+ readonly level: {
73
+ readonly default: 1 | 2 | 4 | 3 | 5 | 6;
74
+ readonly values: readonly number[];
75
+ };
76
+ readonly backgroundColor: {
77
+ default: "default";
78
+ };
79
+ readonly textColor: {
80
+ default: "default";
81
+ };
82
+ readonly textAlignment: {
83
+ default: "left";
84
+ values: readonly ["left", "center", "right", "justify"];
85
+ };
86
+ }, "inline">;
87
+ readonly image: import("@blocknote/core").BlockSpec<"image", {
88
+ readonly textAlignment: {
89
+ default: "left";
90
+ values: readonly ["left", "center", "right", "justify"];
91
+ };
92
+ readonly backgroundColor: {
93
+ default: "default";
94
+ };
95
+ readonly name: {
96
+ readonly default: "";
97
+ };
98
+ readonly url: {
99
+ readonly default: "";
100
+ };
101
+ readonly caption: {
102
+ readonly default: "";
103
+ };
104
+ readonly showPreview: {
105
+ readonly default: true;
106
+ };
107
+ readonly previewWidth: {
108
+ readonly default: undefined;
109
+ readonly type: "number";
110
+ };
111
+ }, "none">;
112
+ readonly numberedListItem: import("@blocknote/core").BlockSpec<"numberedListItem", {
113
+ readonly start: {
114
+ readonly default: undefined;
115
+ readonly type: "number";
116
+ };
117
+ readonly backgroundColor: {
118
+ default: "default";
119
+ };
120
+ readonly textColor: {
121
+ default: "default";
122
+ };
123
+ readonly textAlignment: {
124
+ default: "left";
125
+ values: readonly ["left", "center", "right", "justify"];
126
+ };
127
+ }, "inline">;
128
+ readonly paragraph: import("@blocknote/core").BlockSpec<"paragraph", {
129
+ backgroundColor: {
130
+ default: "default";
131
+ };
132
+ textColor: {
133
+ default: "default";
134
+ };
135
+ textAlignment: {
136
+ default: "left";
137
+ values: readonly ["left", "center", "right", "justify"];
138
+ };
139
+ }, "inline">;
140
+ readonly quote: import("@blocknote/core").BlockSpec<"quote", {
141
+ readonly backgroundColor: {
142
+ default: "default";
143
+ };
144
+ readonly textColor: {
145
+ default: "default";
146
+ };
147
+ }, "inline">;
148
+ readonly table: import("@blocknote/core").LooseBlockSpec<"table", {
149
+ textColor: {
150
+ default: "default";
151
+ };
152
+ }, "table">;
153
+ readonly toggleListItem: import("@blocknote/core").BlockSpec<"toggleListItem", {
154
+ readonly backgroundColor: {
155
+ default: "default";
156
+ };
157
+ readonly textColor: {
158
+ default: "default";
159
+ };
160
+ readonly textAlignment: {
161
+ default: "left";
162
+ values: readonly ["left", "center", "right", "justify"];
163
+ };
164
+ }, "inline">;
165
+ readonly video: import("@blocknote/core").BlockSpec<"video", {
166
+ textAlignment: {
167
+ default: "left";
168
+ values: readonly ["left", "center", "right", "justify"];
169
+ };
170
+ backgroundColor: {
171
+ default: "default";
172
+ };
173
+ name: {
174
+ default: "";
175
+ };
176
+ url: {
177
+ default: "";
178
+ };
179
+ caption: {
180
+ default: "";
181
+ };
182
+ showPreview: {
183
+ default: boolean;
184
+ };
185
+ previewWidth: {
186
+ default: undefined;
187
+ type: "number";
188
+ };
189
+ }, "none">;
525
190
  }> & {
526
- column: {
527
- type: "column";
528
- content: "none";
529
- propSchema: {
530
- width: {
531
- default: number;
532
- };
191
+ readonly column: import("@blocknote/core").BlockConfig<"column", {
192
+ width: {
193
+ default: number;
533
194
  };
534
- };
535
- columnList: {
536
- type: "columnList";
537
- content: "none";
538
- propSchema: {};
539
- };
195
+ }, "none">;
196
+ readonly columnList: import("@blocknote/core").BlockConfig<"columnList", {}, "none">;
540
197
  }, import("@blocknote/core").InlineContentSchemaFromSpecs<{
541
198
  text: {
542
199
  config: "text";
@@ -552,589 +209,255 @@ export declare const testEditorSchema: BlockNoteSchema<import("@blocknote/core")
552
209
  type: string;
553
210
  propSchema: "boolean";
554
211
  };
555
- implementation: import("@blocknote/core").StyleImplementation;
212
+ implementation: import("@blocknote/core").StyleImplementation<{
213
+ type: string;
214
+ propSchema: "boolean";
215
+ }>;
556
216
  };
557
217
  italic: {
558
218
  config: {
559
219
  type: string;
560
220
  propSchema: "boolean";
561
221
  };
562
- implementation: import("@blocknote/core").StyleImplementation;
222
+ implementation: import("@blocknote/core").StyleImplementation<{
223
+ type: string;
224
+ propSchema: "boolean";
225
+ }>;
563
226
  };
564
227
  underline: {
565
228
  config: {
566
229
  type: string;
567
230
  propSchema: "boolean";
568
231
  };
569
- implementation: import("@blocknote/core").StyleImplementation;
232
+ implementation: import("@blocknote/core").StyleImplementation<{
233
+ type: string;
234
+ propSchema: "boolean";
235
+ }>;
570
236
  };
571
237
  strike: {
572
238
  config: {
573
239
  type: string;
574
240
  propSchema: "boolean";
575
241
  };
576
- implementation: import("@blocknote/core").StyleImplementation;
242
+ implementation: import("@blocknote/core").StyleImplementation<{
243
+ type: string;
244
+ propSchema: "boolean";
245
+ }>;
577
246
  };
578
247
  code: {
579
248
  config: {
580
249
  type: string;
581
250
  propSchema: "boolean";
582
251
  };
583
- implementation: import("@blocknote/core").StyleImplementation;
584
- };
585
- textColor: {
586
- config: {
252
+ implementation: import("@blocknote/core").StyleImplementation<{
587
253
  type: string;
588
- propSchema: "string";
589
- };
590
- implementation: import("@blocknote/core").StyleImplementation;
591
- };
592
- backgroundColor: {
593
- config: {
594
- type: string;
595
- propSchema: "string";
596
- };
597
- implementation: import("@blocknote/core").StyleImplementation;
598
- };
254
+ propSchema: "boolean";
255
+ }>;
256
+ };
257
+ textColor: import("@blocknote/core").StyleSpec<{
258
+ readonly type: "textColor";
259
+ readonly propSchema: "string";
260
+ }>;
261
+ backgroundColor: import("@blocknote/core").StyleSpec<{
262
+ readonly type: "backgroundColor";
263
+ readonly propSchema: "string";
264
+ }>;
599
265
  }>>;
600
266
  export declare function setupTestEnv(): () => BlockNoteEditor<import("@blocknote/core").BlockSchemaFromSpecs<{
601
- paragraph: {
602
- config: {
603
- type: "paragraph";
604
- content: "inline";
605
- propSchema: {
606
- backgroundColor: {
607
- default: "default";
608
- };
609
- textColor: {
610
- default: "default";
611
- };
612
- textAlignment: {
613
- default: "left";
614
- values: readonly ["left", "center", "right", "justify"];
615
- };
616
- };
617
- };
618
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
619
- type: "paragraph";
620
- content: "inline";
621
- propSchema: {
622
- backgroundColor: {
623
- default: "default";
624
- };
625
- textColor: {
626
- default: "default";
627
- };
628
- textAlignment: {
629
- default: "left";
630
- values: readonly ["left", "center", "right", "justify"];
631
- };
632
- };
633
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
634
- };
635
- heading: {
636
- config: {
637
- type: "heading";
638
- content: "inline";
639
- propSchema: {
640
- level: {
641
- default: number;
642
- values: readonly [1, 2, 3, 4, 5, 6];
643
- };
644
- isToggleable: {
645
- default: false;
646
- };
647
- backgroundColor: {
648
- default: "default";
649
- };
650
- textColor: {
651
- default: "default";
652
- };
653
- textAlignment: {
654
- default: "left";
655
- values: readonly ["left", "center", "right", "justify"];
656
- };
657
- };
658
- };
659
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
660
- type: "heading";
661
- content: "inline";
662
- propSchema: {
663
- level: {
664
- default: number;
665
- values: readonly [1, 2, 3, 4, 5, 6];
666
- };
667
- isToggleable: {
668
- default: false;
669
- };
670
- backgroundColor: {
671
- default: "default";
672
- };
673
- textColor: {
674
- default: "default";
675
- };
676
- textAlignment: {
677
- default: "left";
678
- values: readonly ["left", "center", "right", "justify"];
679
- };
680
- };
681
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
682
- };
683
- quote: {
684
- config: {
685
- type: "quote";
686
- content: "inline";
687
- propSchema: {
688
- backgroundColor: {
689
- default: "default";
690
- };
691
- textColor: {
692
- default: "default";
693
- };
694
- textAlignment: {
695
- default: "left";
696
- values: readonly ["left", "center", "right", "justify"];
697
- };
698
- };
699
- };
700
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
701
- type: "quote";
702
- content: "inline";
703
- propSchema: {
704
- backgroundColor: {
705
- default: "default";
706
- };
707
- textColor: {
708
- default: "default";
709
- };
710
- textAlignment: {
711
- default: "left";
712
- values: readonly ["left", "center", "right", "justify"];
713
- };
714
- };
715
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
716
- };
717
- codeBlock: {
718
- config: {
719
- type: "codeBlock";
720
- content: "inline";
721
- propSchema: {
722
- language: {
723
- default: string;
724
- };
725
- };
726
- };
727
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
728
- type: "codeBlock";
729
- content: "inline";
730
- propSchema: {
731
- language: {
732
- default: string;
733
- };
734
- };
735
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
736
- };
737
- toggleListItem: {
738
- config: {
739
- type: "toggleListItem";
740
- content: "inline";
741
- propSchema: {
742
- backgroundColor: {
743
- default: "default";
744
- };
745
- textColor: {
746
- default: "default";
747
- };
748
- textAlignment: {
749
- default: "left";
750
- values: readonly ["left", "center", "right", "justify"];
751
- };
752
- };
753
- };
754
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
755
- type: "toggleListItem";
756
- content: "inline";
757
- propSchema: {
758
- backgroundColor: {
759
- default: "default";
760
- };
761
- textColor: {
762
- default: "default";
763
- };
764
- textAlignment: {
765
- default: "left";
766
- values: readonly ["left", "center", "right", "justify"];
767
- };
768
- };
769
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
770
- };
771
- bulletListItem: {
772
- config: {
773
- type: "bulletListItem";
774
- content: "inline";
775
- propSchema: {
776
- backgroundColor: {
777
- default: "default";
778
- };
779
- textColor: {
780
- default: "default";
781
- };
782
- textAlignment: {
783
- default: "left";
784
- values: readonly ["left", "center", "right", "justify"];
785
- };
786
- };
787
- };
788
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
789
- type: "bulletListItem";
790
- content: "inline";
791
- propSchema: {
792
- backgroundColor: {
793
- default: "default";
794
- };
795
- textColor: {
796
- default: "default";
797
- };
798
- textAlignment: {
799
- default: "left";
800
- values: readonly ["left", "center", "right", "justify"];
801
- };
802
- };
803
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
804
- };
805
- numberedListItem: {
806
- config: {
807
- type: "numberedListItem";
808
- content: "inline";
809
- propSchema: {
810
- start: {
811
- default: undefined;
812
- type: "number";
813
- };
814
- backgroundColor: {
815
- default: "default";
816
- };
817
- textColor: {
818
- default: "default";
819
- };
820
- textAlignment: {
821
- default: "left";
822
- values: readonly ["left", "center", "right", "justify"];
823
- };
824
- };
825
- };
826
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
827
- type: "numberedListItem";
828
- content: "inline";
829
- propSchema: {
830
- start: {
831
- default: undefined;
832
- type: "number";
833
- };
834
- backgroundColor: {
835
- default: "default";
836
- };
837
- textColor: {
838
- default: "default";
839
- };
840
- textAlignment: {
841
- default: "left";
842
- values: readonly ["left", "center", "right", "justify"];
843
- };
844
- };
845
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
846
- };
847
- checkListItem: {
848
- config: {
849
- type: "checkListItem";
850
- content: "inline";
851
- propSchema: {
852
- checked: {
853
- default: false;
854
- };
855
- backgroundColor: {
856
- default: "default";
857
- };
858
- textColor: {
859
- default: "default";
860
- };
861
- textAlignment: {
862
- default: "left";
863
- values: readonly ["left", "center", "right", "justify"];
864
- };
865
- };
866
- };
867
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
868
- type: "checkListItem";
869
- content: "inline";
870
- propSchema: {
871
- checked: {
872
- default: false;
873
- };
874
- backgroundColor: {
875
- default: "default";
876
- };
877
- textColor: {
878
- default: "default";
879
- };
880
- textAlignment: {
881
- default: "left";
882
- values: readonly ["left", "center", "right", "justify"];
883
- };
884
- };
885
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
886
- };
887
- table: {
888
- config: {
889
- type: "table";
890
- content: "table";
891
- propSchema: {
892
- textColor: {
893
- default: "default";
894
- };
895
- };
896
- };
897
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
898
- type: "table";
899
- content: "table";
900
- propSchema: {
901
- textColor: {
902
- default: "default";
903
- };
904
- };
905
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
906
- };
907
- file: {
908
- config: {
909
- type: "file";
910
- propSchema: {
911
- backgroundColor: {
912
- default: "default";
913
- };
914
- name: {
915
- default: "";
916
- };
917
- url: {
918
- default: "";
919
- };
920
- caption: {
921
- default: "";
922
- };
923
- };
924
- content: "none";
925
- isFileBlock: true;
926
- };
927
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
928
- type: "file";
929
- propSchema: {
930
- backgroundColor: {
931
- default: "default";
932
- };
933
- name: {
934
- default: "";
935
- };
936
- url: {
937
- default: "";
938
- };
939
- caption: {
940
- default: "";
941
- };
942
- };
943
- content: "none";
944
- isFileBlock: true;
945
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
946
- };
947
- image: {
948
- config: {
949
- type: "image";
950
- propSchema: {
951
- textAlignment: {
952
- default: "left";
953
- values: readonly ["left", "center", "right", "justify"];
954
- };
955
- backgroundColor: {
956
- default: "default";
957
- };
958
- name: {
959
- default: "";
960
- };
961
- url: {
962
- default: "";
963
- };
964
- caption: {
965
- default: "";
966
- };
967
- showPreview: {
968
- default: true;
969
- };
970
- previewWidth: {
971
- default: undefined;
972
- type: "number";
973
- };
974
- };
975
- content: "none";
976
- isFileBlock: true;
977
- fileBlockAccept: string[];
978
- };
979
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
980
- type: "image";
981
- propSchema: {
982
- textAlignment: {
983
- default: "left";
984
- values: readonly ["left", "center", "right", "justify"];
985
- };
986
- backgroundColor: {
987
- default: "default";
988
- };
989
- name: {
990
- default: "";
991
- };
992
- url: {
993
- default: "";
994
- };
995
- caption: {
996
- default: "";
997
- };
998
- showPreview: {
999
- default: true;
1000
- };
1001
- previewWidth: {
1002
- default: undefined;
1003
- type: "number";
1004
- };
1005
- };
1006
- content: "none";
1007
- isFileBlock: true;
1008
- fileBlockAccept: string[];
1009
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
1010
- };
1011
- video: {
1012
- config: {
1013
- type: "video";
1014
- propSchema: {
1015
- textAlignment: {
1016
- default: "left";
1017
- values: readonly ["left", "center", "right", "justify"];
1018
- };
1019
- backgroundColor: {
1020
- default: "default";
1021
- };
1022
- name: {
1023
- default: "";
1024
- };
1025
- url: {
1026
- default: "";
1027
- };
1028
- caption: {
1029
- default: "";
1030
- };
1031
- showPreview: {
1032
- default: true;
1033
- };
1034
- previewWidth: {
1035
- default: undefined;
1036
- type: "number";
1037
- };
1038
- };
1039
- content: "none";
1040
- isFileBlock: true;
1041
- fileBlockAccept: string[];
1042
- };
1043
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
1044
- type: "video";
1045
- propSchema: {
1046
- textAlignment: {
1047
- default: "left";
1048
- values: readonly ["left", "center", "right", "justify"];
1049
- };
1050
- backgroundColor: {
1051
- default: "default";
1052
- };
1053
- name: {
1054
- default: "";
1055
- };
1056
- url: {
1057
- default: "";
1058
- };
1059
- caption: {
1060
- default: "";
1061
- };
1062
- showPreview: {
1063
- default: true;
1064
- };
1065
- previewWidth: {
1066
- default: undefined;
1067
- type: "number";
1068
- };
1069
- };
1070
- content: "none";
1071
- isFileBlock: true;
1072
- fileBlockAccept: string[];
1073
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
1074
- };
1075
- audio: {
1076
- config: {
1077
- type: "audio";
1078
- propSchema: {
1079
- backgroundColor: {
1080
- default: "default";
1081
- };
1082
- name: {
1083
- default: "";
1084
- };
1085
- url: {
1086
- default: "";
1087
- };
1088
- caption: {
1089
- default: "";
1090
- };
1091
- showPreview: {
1092
- default: true;
1093
- };
1094
- };
1095
- content: "none";
1096
- isFileBlock: true;
1097
- fileBlockAccept: string[];
1098
- };
1099
- implementation: import("@blocknote/core").TiptapBlockImplementation<{
1100
- type: "audio";
1101
- propSchema: {
1102
- backgroundColor: {
1103
- default: "default";
1104
- };
1105
- name: {
1106
- default: "";
1107
- };
1108
- url: {
1109
- default: "";
1110
- };
1111
- caption: {
1112
- default: "";
1113
- };
1114
- showPreview: {
1115
- default: true;
1116
- };
1117
- };
1118
- content: "none";
1119
- isFileBlock: true;
1120
- fileBlockAccept: string[];
1121
- }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
1122
- };
267
+ readonly audio: import("@blocknote/core").BlockSpec<"audio", {
268
+ readonly backgroundColor: {
269
+ default: "default";
270
+ };
271
+ readonly name: {
272
+ readonly default: "";
273
+ };
274
+ readonly url: {
275
+ readonly default: "";
276
+ };
277
+ readonly caption: {
278
+ readonly default: "";
279
+ };
280
+ readonly showPreview: {
281
+ readonly default: true;
282
+ };
283
+ }, "none">;
284
+ readonly bulletListItem: import("@blocknote/core").BlockSpec<"bulletListItem", {
285
+ readonly backgroundColor: {
286
+ default: "default";
287
+ };
288
+ readonly textColor: {
289
+ default: "default";
290
+ };
291
+ readonly textAlignment: {
292
+ default: "left";
293
+ values: readonly ["left", "center", "right", "justify"];
294
+ };
295
+ }, "inline">;
296
+ readonly checkListItem: import("@blocknote/core").BlockSpec<"checkListItem", {
297
+ readonly checked: {
298
+ readonly default: false;
299
+ readonly type: "boolean";
300
+ };
301
+ readonly backgroundColor: {
302
+ default: "default";
303
+ };
304
+ readonly textColor: {
305
+ default: "default";
306
+ };
307
+ readonly textAlignment: {
308
+ default: "left";
309
+ values: readonly ["left", "center", "right", "justify"];
310
+ };
311
+ }, "inline">;
312
+ readonly codeBlock: import("@blocknote/core").BlockSpec<"codeBlock", {
313
+ readonly language: {
314
+ readonly default: string;
315
+ };
316
+ }, "inline">;
317
+ readonly file: import("@blocknote/core").BlockSpec<"file", {
318
+ readonly backgroundColor: {
319
+ default: "default";
320
+ };
321
+ readonly name: {
322
+ readonly default: "";
323
+ };
324
+ readonly url: {
325
+ readonly default: "";
326
+ };
327
+ readonly caption: {
328
+ readonly default: "";
329
+ };
330
+ }, "none">;
331
+ readonly heading: import("@blocknote/core").BlockSpec<"heading", {
332
+ readonly isToggleable?: {
333
+ readonly default: false;
334
+ readonly optional: true;
335
+ } | undefined;
336
+ readonly level: {
337
+ readonly default: 1 | 2 | 4 | 3 | 5 | 6;
338
+ readonly values: readonly number[];
339
+ };
340
+ readonly backgroundColor: {
341
+ default: "default";
342
+ };
343
+ readonly textColor: {
344
+ default: "default";
345
+ };
346
+ readonly textAlignment: {
347
+ default: "left";
348
+ values: readonly ["left", "center", "right", "justify"];
349
+ };
350
+ }, "inline">;
351
+ readonly image: import("@blocknote/core").BlockSpec<"image", {
352
+ readonly textAlignment: {
353
+ default: "left";
354
+ values: readonly ["left", "center", "right", "justify"];
355
+ };
356
+ readonly backgroundColor: {
357
+ default: "default";
358
+ };
359
+ readonly name: {
360
+ readonly default: "";
361
+ };
362
+ readonly url: {
363
+ readonly default: "";
364
+ };
365
+ readonly caption: {
366
+ readonly default: "";
367
+ };
368
+ readonly showPreview: {
369
+ readonly default: true;
370
+ };
371
+ readonly previewWidth: {
372
+ readonly default: undefined;
373
+ readonly type: "number";
374
+ };
375
+ }, "none">;
376
+ readonly numberedListItem: import("@blocknote/core").BlockSpec<"numberedListItem", {
377
+ readonly start: {
378
+ readonly default: undefined;
379
+ readonly type: "number";
380
+ };
381
+ readonly backgroundColor: {
382
+ default: "default";
383
+ };
384
+ readonly textColor: {
385
+ default: "default";
386
+ };
387
+ readonly textAlignment: {
388
+ default: "left";
389
+ values: readonly ["left", "center", "right", "justify"];
390
+ };
391
+ }, "inline">;
392
+ readonly paragraph: import("@blocknote/core").BlockSpec<"paragraph", {
393
+ backgroundColor: {
394
+ default: "default";
395
+ };
396
+ textColor: {
397
+ default: "default";
398
+ };
399
+ textAlignment: {
400
+ default: "left";
401
+ values: readonly ["left", "center", "right", "justify"];
402
+ };
403
+ }, "inline">;
404
+ readonly quote: import("@blocknote/core").BlockSpec<"quote", {
405
+ readonly backgroundColor: {
406
+ default: "default";
407
+ };
408
+ readonly textColor: {
409
+ default: "default";
410
+ };
411
+ }, "inline">;
412
+ readonly table: import("@blocknote/core").LooseBlockSpec<"table", {
413
+ textColor: {
414
+ default: "default";
415
+ };
416
+ }, "table">;
417
+ readonly toggleListItem: import("@blocknote/core").BlockSpec<"toggleListItem", {
418
+ readonly backgroundColor: {
419
+ default: "default";
420
+ };
421
+ readonly textColor: {
422
+ default: "default";
423
+ };
424
+ readonly textAlignment: {
425
+ default: "left";
426
+ values: readonly ["left", "center", "right", "justify"];
427
+ };
428
+ }, "inline">;
429
+ readonly video: import("@blocknote/core").BlockSpec<"video", {
430
+ textAlignment: {
431
+ default: "left";
432
+ values: readonly ["left", "center", "right", "justify"];
433
+ };
434
+ backgroundColor: {
435
+ default: "default";
436
+ };
437
+ name: {
438
+ default: "";
439
+ };
440
+ url: {
441
+ default: "";
442
+ };
443
+ caption: {
444
+ default: "";
445
+ };
446
+ showPreview: {
447
+ default: boolean;
448
+ };
449
+ previewWidth: {
450
+ default: undefined;
451
+ type: "number";
452
+ };
453
+ }, "none">;
1123
454
  }> & {
1124
- column: {
1125
- type: "column";
1126
- content: "none";
1127
- propSchema: {
1128
- width: {
1129
- default: number;
1130
- };
455
+ readonly column: import("@blocknote/core").BlockConfig<"column", {
456
+ width: {
457
+ default: number;
1131
458
  };
1132
- };
1133
- columnList: {
1134
- type: "columnList";
1135
- content: "none";
1136
- propSchema: {};
1137
- };
459
+ }, "none">;
460
+ readonly columnList: import("@blocknote/core").BlockConfig<"columnList", {}, "none">;
1138
461
  }, import("@blocknote/core").InlineContentSchemaFromSpecs<{
1139
462
  text: {
1140
463
  config: "text";
@@ -1150,48 +473,57 @@ export declare function setupTestEnv(): () => BlockNoteEditor<import("@blocknote
1150
473
  type: string;
1151
474
  propSchema: "boolean";
1152
475
  };
1153
- implementation: import("@blocknote/core").StyleImplementation;
476
+ implementation: import("@blocknote/core").StyleImplementation<{
477
+ type: string;
478
+ propSchema: "boolean";
479
+ }>;
1154
480
  };
1155
481
  italic: {
1156
482
  config: {
1157
483
  type: string;
1158
484
  propSchema: "boolean";
1159
485
  };
1160
- implementation: import("@blocknote/core").StyleImplementation;
486
+ implementation: import("@blocknote/core").StyleImplementation<{
487
+ type: string;
488
+ propSchema: "boolean";
489
+ }>;
1161
490
  };
1162
491
  underline: {
1163
492
  config: {
1164
493
  type: string;
1165
494
  propSchema: "boolean";
1166
495
  };
1167
- implementation: import("@blocknote/core").StyleImplementation;
496
+ implementation: import("@blocknote/core").StyleImplementation<{
497
+ type: string;
498
+ propSchema: "boolean";
499
+ }>;
1168
500
  };
1169
501
  strike: {
1170
502
  config: {
1171
503
  type: string;
1172
504
  propSchema: "boolean";
1173
505
  };
1174
- implementation: import("@blocknote/core").StyleImplementation;
506
+ implementation: import("@blocknote/core").StyleImplementation<{
507
+ type: string;
508
+ propSchema: "boolean";
509
+ }>;
1175
510
  };
1176
511
  code: {
1177
512
  config: {
1178
513
  type: string;
1179
514
  propSchema: "boolean";
1180
515
  };
1181
- implementation: import("@blocknote/core").StyleImplementation;
1182
- };
1183
- textColor: {
1184
- config: {
516
+ implementation: import("@blocknote/core").StyleImplementation<{
1185
517
  type: string;
1186
- propSchema: "string";
1187
- };
1188
- implementation: import("@blocknote/core").StyleImplementation;
1189
- };
1190
- backgroundColor: {
1191
- config: {
1192
- type: string;
1193
- propSchema: "string";
1194
- };
1195
- implementation: import("@blocknote/core").StyleImplementation;
1196
- };
518
+ propSchema: "boolean";
519
+ }>;
520
+ };
521
+ textColor: import("@blocknote/core").StyleSpec<{
522
+ readonly type: "textColor";
523
+ readonly propSchema: "string";
524
+ }>;
525
+ backgroundColor: import("@blocknote/core").StyleSpec<{
526
+ readonly type: "backgroundColor";
527
+ readonly propSchema: "string";
528
+ }>;
1197
529
  }>>;