@liveblocks/react-blocknote 3.8.0-tiptap1 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -28,7 +28,454 @@ declare function FloatingThreads(props: FloatingThreadsProps): react_jsx_runtime
28
28
  /**
29
29
  * Helper function to add Liveblocks support to BlockNoteEditorOptions
30
30
  */
31
- declare const withLiveblocksEditorOptions: <B extends BlockSchema = _blocknote_core._DefaultBlockSchema, I extends InlineContentSchema = _blocknote_core.InlineContentSchemaFromSpecs<{
31
+ declare const withLiveblocksEditorOptions: <B extends BlockSchema = _blocknote_core.BlockSchemaFromSpecs<{
32
+ paragraph: {
33
+ config: {
34
+ type: "paragraph";
35
+ content: "inline";
36
+ propSchema: {
37
+ backgroundColor: {
38
+ default: "default";
39
+ };
40
+ textColor: {
41
+ default: "default";
42
+ };
43
+ textAlignment: {
44
+ default: "left";
45
+ values: readonly ["left", "center", "right", "justify"];
46
+ };
47
+ };
48
+ };
49
+ implementation: _blocknote_core.TiptapBlockImplementation<{
50
+ type: "paragraph";
51
+ content: "inline";
52
+ propSchema: {
53
+ backgroundColor: {
54
+ default: "default";
55
+ };
56
+ textColor: {
57
+ default: "default";
58
+ };
59
+ textAlignment: {
60
+ default: "left";
61
+ values: readonly ["left", "center", "right", "justify"];
62
+ };
63
+ };
64
+ }, any, InlineContentSchema, StyleSchema>;
65
+ };
66
+ heading: {
67
+ config: {
68
+ type: "heading";
69
+ content: "inline";
70
+ propSchema: {
71
+ level: {
72
+ default: number;
73
+ values: readonly [1, 2, 3];
74
+ };
75
+ backgroundColor: {
76
+ default: "default";
77
+ };
78
+ textColor: {
79
+ default: "default";
80
+ };
81
+ textAlignment: {
82
+ default: "left";
83
+ values: readonly ["left", "center", "right", "justify"];
84
+ };
85
+ };
86
+ };
87
+ implementation: _blocknote_core.TiptapBlockImplementation<{
88
+ type: "heading";
89
+ content: "inline";
90
+ propSchema: {
91
+ level: {
92
+ default: number;
93
+ values: readonly [1, 2, 3];
94
+ };
95
+ backgroundColor: {
96
+ default: "default";
97
+ };
98
+ textColor: {
99
+ default: "default";
100
+ };
101
+ textAlignment: {
102
+ default: "left";
103
+ values: readonly ["left", "center", "right", "justify"];
104
+ };
105
+ };
106
+ }, any, InlineContentSchema, StyleSchema>;
107
+ };
108
+ codeBlock: {
109
+ config: {
110
+ type: "codeBlock";
111
+ content: "inline";
112
+ propSchema: {
113
+ language: {
114
+ default: string;
115
+ values: string[];
116
+ };
117
+ };
118
+ };
119
+ implementation: _blocknote_core.TiptapBlockImplementation<{
120
+ type: "codeBlock";
121
+ content: "inline";
122
+ propSchema: {
123
+ language: {
124
+ default: string;
125
+ values: string[];
126
+ };
127
+ };
128
+ }, any, InlineContentSchema, StyleSchema>;
129
+ };
130
+ bulletListItem: {
131
+ config: {
132
+ type: "bulletListItem";
133
+ content: "inline";
134
+ propSchema: {
135
+ backgroundColor: {
136
+ default: "default";
137
+ };
138
+ textColor: {
139
+ default: "default";
140
+ };
141
+ textAlignment: {
142
+ default: "left";
143
+ values: readonly ["left", "center", "right", "justify"];
144
+ };
145
+ };
146
+ };
147
+ implementation: _blocknote_core.TiptapBlockImplementation<{
148
+ type: "bulletListItem";
149
+ content: "inline";
150
+ propSchema: {
151
+ backgroundColor: {
152
+ default: "default";
153
+ };
154
+ textColor: {
155
+ default: "default";
156
+ };
157
+ textAlignment: {
158
+ default: "left";
159
+ values: readonly ["left", "center", "right", "justify"];
160
+ };
161
+ };
162
+ }, any, InlineContentSchema, StyleSchema>;
163
+ };
164
+ numberedListItem: {
165
+ config: {
166
+ type: "numberedListItem";
167
+ content: "inline";
168
+ propSchema: {
169
+ start: {
170
+ default: undefined;
171
+ type: "number";
172
+ };
173
+ backgroundColor: {
174
+ default: "default";
175
+ };
176
+ textColor: {
177
+ default: "default";
178
+ };
179
+ textAlignment: {
180
+ default: "left";
181
+ values: readonly ["left", "center", "right", "justify"];
182
+ };
183
+ };
184
+ };
185
+ implementation: _blocknote_core.TiptapBlockImplementation<{
186
+ type: "numberedListItem";
187
+ content: "inline";
188
+ propSchema: {
189
+ start: {
190
+ default: undefined;
191
+ type: "number";
192
+ };
193
+ backgroundColor: {
194
+ default: "default";
195
+ };
196
+ textColor: {
197
+ default: "default";
198
+ };
199
+ textAlignment: {
200
+ default: "left";
201
+ values: readonly ["left", "center", "right", "justify"];
202
+ };
203
+ };
204
+ }, any, InlineContentSchema, StyleSchema>;
205
+ };
206
+ checkListItem: {
207
+ config: {
208
+ type: "checkListItem";
209
+ content: "inline";
210
+ propSchema: {
211
+ checked: {
212
+ default: false;
213
+ };
214
+ backgroundColor: {
215
+ default: "default";
216
+ };
217
+ textColor: {
218
+ default: "default";
219
+ };
220
+ textAlignment: {
221
+ default: "left";
222
+ values: readonly ["left", "center", "right", "justify"];
223
+ };
224
+ };
225
+ };
226
+ implementation: _blocknote_core.TiptapBlockImplementation<{
227
+ type: "checkListItem";
228
+ content: "inline";
229
+ propSchema: {
230
+ checked: {
231
+ default: false;
232
+ };
233
+ backgroundColor: {
234
+ default: "default";
235
+ };
236
+ textColor: {
237
+ default: "default";
238
+ };
239
+ textAlignment: {
240
+ default: "left";
241
+ values: readonly ["left", "center", "right", "justify"];
242
+ };
243
+ };
244
+ }, any, InlineContentSchema, StyleSchema>;
245
+ };
246
+ table: {
247
+ config: {
248
+ type: "table";
249
+ content: "table";
250
+ propSchema: {
251
+ textColor: {
252
+ default: "default";
253
+ };
254
+ };
255
+ };
256
+ implementation: _blocknote_core.TiptapBlockImplementation<{
257
+ type: "table";
258
+ content: "table";
259
+ propSchema: {
260
+ textColor: {
261
+ default: "default";
262
+ };
263
+ };
264
+ }, any, InlineContentSchema, StyleSchema>;
265
+ };
266
+ file: {
267
+ config: {
268
+ type: "file";
269
+ propSchema: {
270
+ backgroundColor: {
271
+ default: "default";
272
+ };
273
+ name: {
274
+ default: "";
275
+ };
276
+ url: {
277
+ default: "";
278
+ };
279
+ caption: {
280
+ default: "";
281
+ };
282
+ };
283
+ content: "none";
284
+ isFileBlock: true;
285
+ };
286
+ implementation: _blocknote_core.TiptapBlockImplementation<{
287
+ type: "file";
288
+ propSchema: {
289
+ backgroundColor: {
290
+ default: "default";
291
+ };
292
+ name: {
293
+ default: "";
294
+ };
295
+ url: {
296
+ default: "";
297
+ };
298
+ caption: {
299
+ default: "";
300
+ };
301
+ };
302
+ content: "none";
303
+ isFileBlock: true;
304
+ }, any, InlineContentSchema, StyleSchema>;
305
+ };
306
+ image: {
307
+ config: {
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
+ };
337
+ implementation: _blocknote_core.TiptapBlockImplementation<{
338
+ type: "image";
339
+ propSchema: {
340
+ textAlignment: {
341
+ default: "left";
342
+ values: readonly ["left", "center", "right", "justify"];
343
+ };
344
+ backgroundColor: {
345
+ default: "default";
346
+ };
347
+ name: {
348
+ default: "";
349
+ };
350
+ url: {
351
+ default: "";
352
+ };
353
+ caption: {
354
+ default: "";
355
+ };
356
+ showPreview: {
357
+ default: true;
358
+ };
359
+ previewWidth: {
360
+ default: number;
361
+ };
362
+ };
363
+ content: "none";
364
+ isFileBlock: true;
365
+ fileBlockAccept: string[];
366
+ }, any, InlineContentSchema, StyleSchema>;
367
+ };
368
+ video: {
369
+ config: {
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
+ };
399
+ implementation: _blocknote_core.TiptapBlockImplementation<{
400
+ type: "video";
401
+ propSchema: {
402
+ textAlignment: {
403
+ default: "left";
404
+ values: readonly ["left", "center", "right", "justify"];
405
+ };
406
+ backgroundColor: {
407
+ default: "default";
408
+ };
409
+ name: {
410
+ default: "";
411
+ };
412
+ url: {
413
+ default: "";
414
+ };
415
+ caption: {
416
+ default: "";
417
+ };
418
+ showPreview: {
419
+ default: true;
420
+ };
421
+ previewWidth: {
422
+ default: number;
423
+ };
424
+ };
425
+ content: "none";
426
+ isFileBlock: true;
427
+ fileBlockAccept: string[];
428
+ }, any, InlineContentSchema, StyleSchema>;
429
+ };
430
+ audio: {
431
+ config: {
432
+ type: "audio";
433
+ propSchema: {
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: true;
448
+ };
449
+ };
450
+ content: "none";
451
+ isFileBlock: true;
452
+ fileBlockAccept: string[];
453
+ };
454
+ implementation: _blocknote_core.TiptapBlockImplementation<{
455
+ type: "audio";
456
+ propSchema: {
457
+ backgroundColor: {
458
+ default: "default";
459
+ };
460
+ name: {
461
+ default: "";
462
+ };
463
+ url: {
464
+ default: "";
465
+ };
466
+ caption: {
467
+ default: "";
468
+ };
469
+ showPreview: {
470
+ default: true;
471
+ };
472
+ };
473
+ content: "none";
474
+ isFileBlock: true;
475
+ fileBlockAccept: string[];
476
+ }, any, InlineContentSchema, StyleSchema>;
477
+ };
478
+ }>, I extends InlineContentSchema = _blocknote_core.InlineContentSchemaFromSpecs<{
32
479
  text: {
33
480
  config: "text";
34
481
  implementation: any;
@@ -43,60 +490,51 @@ declare const withLiveblocksEditorOptions: <B extends BlockSchema = _blocknote_c
43
490
  type: string;
44
491
  propSchema: "boolean";
45
492
  };
46
- implementation: _blocknote_core.StyleImplementation<{
47
- type: string;
48
- propSchema: "boolean";
49
- }>;
493
+ implementation: _blocknote_core.StyleImplementation;
50
494
  };
51
495
  italic: {
52
496
  config: {
53
497
  type: string;
54
498
  propSchema: "boolean";
55
499
  };
56
- implementation: _blocknote_core.StyleImplementation<{
57
- type: string;
58
- propSchema: "boolean";
59
- }>;
500
+ implementation: _blocknote_core.StyleImplementation;
60
501
  };
61
502
  underline: {
62
503
  config: {
63
504
  type: string;
64
505
  propSchema: "boolean";
65
506
  };
66
- implementation: _blocknote_core.StyleImplementation<{
67
- type: string;
68
- propSchema: "boolean";
69
- }>;
507
+ implementation: _blocknote_core.StyleImplementation;
70
508
  };
71
509
  strike: {
72
510
  config: {
73
511
  type: string;
74
512
  propSchema: "boolean";
75
513
  };
76
- implementation: _blocknote_core.StyleImplementation<{
77
- type: string;
78
- propSchema: "boolean";
79
- }>;
514
+ implementation: _blocknote_core.StyleImplementation;
80
515
  };
81
516
  code: {
82
517
  config: {
83
518
  type: string;
84
519
  propSchema: "boolean";
85
520
  };
86
- implementation: _blocknote_core.StyleImplementation<{
521
+ implementation: _blocknote_core.StyleImplementation;
522
+ };
523
+ textColor: {
524
+ config: {
87
525
  type: string;
88
- propSchema: "boolean";
89
- }>;
90
- };
91
- textColor: _blocknote_core.StyleSpec<{
92
- readonly type: "textColor";
93
- readonly propSchema: "string";
94
- }>;
95
- backgroundColor: _blocknote_core.StyleSpec<{
96
- readonly type: "backgroundColor";
97
- readonly propSchema: "string";
98
- }>;
99
- }>>(liveblocksExtension: Extension<any, any>, blocknoteOptions?: Partial<BlockNoteEditorOptions<B, I, S>>, liveblocksOptions?: Partial<{
526
+ propSchema: "string";
527
+ };
528
+ implementation: _blocknote_core.StyleImplementation;
529
+ };
530
+ backgroundColor: {
531
+ config: {
532
+ type: string;
533
+ propSchema: "string";
534
+ };
535
+ implementation: _blocknote_core.StyleImplementation;
536
+ };
537
+ }>>(liveblocksExtension: Extension, blocknoteOptions?: Partial<BlockNoteEditorOptions<B, I, S>>, liveblocksOptions?: Partial<{
100
538
  mentions: boolean;
101
539
  }>) => Partial<BlockNoteEditorOptions<B, I, S>>;
102
540
 
@@ -112,75 +550,454 @@ declare const withLiveblocksSchema: <B extends BlockSchema, I extends InlineCont
112
550
  /**
113
551
  * Function that can be used instead of standard useCreateBlockNote to add Liveblocks support
114
552
  */
115
- declare const useCreateBlockNoteWithLiveblocks: <B extends BlockSchema = _blocknote_core._DefaultBlockSchema, I extends InlineContentSchema = _blocknote_core.InlineContentSchemaFromSpecs<{
116
- text: {
117
- config: "text";
118
- implementation: any;
553
+ declare const useCreateBlockNoteWithLiveblocks: <B extends BlockSchema = _blocknote_core.BlockSchemaFromSpecs<{
554
+ paragraph: {
555
+ config: {
556
+ type: "paragraph";
557
+ content: "inline";
558
+ propSchema: {
559
+ backgroundColor: {
560
+ default: "default";
561
+ };
562
+ textColor: {
563
+ default: "default";
564
+ };
565
+ textAlignment: {
566
+ default: "left";
567
+ values: readonly ["left", "center", "right", "justify"];
568
+ };
569
+ };
570
+ };
571
+ implementation: _blocknote_core.TiptapBlockImplementation<{
572
+ type: "paragraph";
573
+ content: "inline";
574
+ propSchema: {
575
+ backgroundColor: {
576
+ default: "default";
577
+ };
578
+ textColor: {
579
+ default: "default";
580
+ };
581
+ textAlignment: {
582
+ default: "left";
583
+ values: readonly ["left", "center", "right", "justify"];
584
+ };
585
+ };
586
+ }, any, InlineContentSchema, StyleSchema>;
119
587
  };
120
- link: {
121
- config: "link";
122
- implementation: any;
588
+ heading: {
589
+ config: {
590
+ type: "heading";
591
+ content: "inline";
592
+ propSchema: {
593
+ level: {
594
+ default: number;
595
+ values: readonly [1, 2, 3];
596
+ };
597
+ backgroundColor: {
598
+ default: "default";
599
+ };
600
+ textColor: {
601
+ default: "default";
602
+ };
603
+ textAlignment: {
604
+ default: "left";
605
+ values: readonly ["left", "center", "right", "justify"];
606
+ };
607
+ };
608
+ };
609
+ implementation: _blocknote_core.TiptapBlockImplementation<{
610
+ type: "heading";
611
+ content: "inline";
612
+ propSchema: {
613
+ level: {
614
+ default: number;
615
+ values: readonly [1, 2, 3];
616
+ };
617
+ backgroundColor: {
618
+ default: "default";
619
+ };
620
+ textColor: {
621
+ default: "default";
622
+ };
623
+ textAlignment: {
624
+ default: "left";
625
+ values: readonly ["left", "center", "right", "justify"];
626
+ };
627
+ };
628
+ }, any, InlineContentSchema, StyleSchema>;
123
629
  };
124
- }>, S extends StyleSchema = _blocknote_core.StyleSchemaFromSpecs<{
125
- bold: {
630
+ codeBlock: {
126
631
  config: {
127
- type: string;
128
- propSchema: "boolean";
632
+ type: "codeBlock";
633
+ content: "inline";
634
+ propSchema: {
635
+ language: {
636
+ default: string;
637
+ values: string[];
638
+ };
639
+ };
129
640
  };
130
- implementation: _blocknote_core.StyleImplementation<{
131
- type: string;
132
- propSchema: "boolean";
133
- }>;
641
+ implementation: _blocknote_core.TiptapBlockImplementation<{
642
+ type: "codeBlock";
643
+ content: "inline";
644
+ propSchema: {
645
+ language: {
646
+ default: string;
647
+ values: string[];
648
+ };
649
+ };
650
+ }, any, InlineContentSchema, StyleSchema>;
134
651
  };
135
- italic: {
652
+ bulletListItem: {
136
653
  config: {
137
- type: string;
138
- propSchema: "boolean";
654
+ type: "bulletListItem";
655
+ content: "inline";
656
+ propSchema: {
657
+ backgroundColor: {
658
+ default: "default";
659
+ };
660
+ textColor: {
661
+ default: "default";
662
+ };
663
+ textAlignment: {
664
+ default: "left";
665
+ values: readonly ["left", "center", "right", "justify"];
666
+ };
667
+ };
139
668
  };
140
- implementation: _blocknote_core.StyleImplementation<{
141
- type: string;
142
- propSchema: "boolean";
143
- }>;
669
+ implementation: _blocknote_core.TiptapBlockImplementation<{
670
+ type: "bulletListItem";
671
+ content: "inline";
672
+ propSchema: {
673
+ backgroundColor: {
674
+ default: "default";
675
+ };
676
+ textColor: {
677
+ default: "default";
678
+ };
679
+ textAlignment: {
680
+ default: "left";
681
+ values: readonly ["left", "center", "right", "justify"];
682
+ };
683
+ };
684
+ }, any, InlineContentSchema, StyleSchema>;
144
685
  };
145
- underline: {
686
+ numberedListItem: {
146
687
  config: {
147
- type: string;
148
- propSchema: "boolean";
688
+ type: "numberedListItem";
689
+ content: "inline";
690
+ propSchema: {
691
+ start: {
692
+ default: undefined;
693
+ type: "number";
694
+ };
695
+ backgroundColor: {
696
+ default: "default";
697
+ };
698
+ textColor: {
699
+ default: "default";
700
+ };
701
+ textAlignment: {
702
+ default: "left";
703
+ values: readonly ["left", "center", "right", "justify"];
704
+ };
705
+ };
149
706
  };
150
- implementation: _blocknote_core.StyleImplementation<{
151
- type: string;
152
- propSchema: "boolean";
153
- }>;
707
+ implementation: _blocknote_core.TiptapBlockImplementation<{
708
+ type: "numberedListItem";
709
+ content: "inline";
710
+ propSchema: {
711
+ start: {
712
+ default: undefined;
713
+ type: "number";
714
+ };
715
+ backgroundColor: {
716
+ default: "default";
717
+ };
718
+ textColor: {
719
+ default: "default";
720
+ };
721
+ textAlignment: {
722
+ default: "left";
723
+ values: readonly ["left", "center", "right", "justify"];
724
+ };
725
+ };
726
+ }, any, InlineContentSchema, StyleSchema>;
154
727
  };
155
- strike: {
728
+ checkListItem: {
156
729
  config: {
157
- type: string;
158
- propSchema: "boolean";
730
+ type: "checkListItem";
731
+ content: "inline";
732
+ propSchema: {
733
+ checked: {
734
+ default: false;
735
+ };
736
+ backgroundColor: {
737
+ default: "default";
738
+ };
739
+ textColor: {
740
+ default: "default";
741
+ };
742
+ textAlignment: {
743
+ default: "left";
744
+ values: readonly ["left", "center", "right", "justify"];
745
+ };
746
+ };
159
747
  };
160
- implementation: _blocknote_core.StyleImplementation<{
161
- type: string;
162
- propSchema: "boolean";
163
- }>;
748
+ implementation: _blocknote_core.TiptapBlockImplementation<{
749
+ type: "checkListItem";
750
+ content: "inline";
751
+ propSchema: {
752
+ checked: {
753
+ default: false;
754
+ };
755
+ backgroundColor: {
756
+ default: "default";
757
+ };
758
+ textColor: {
759
+ default: "default";
760
+ };
761
+ textAlignment: {
762
+ default: "left";
763
+ values: readonly ["left", "center", "right", "justify"];
764
+ };
765
+ };
766
+ }, any, InlineContentSchema, StyleSchema>;
164
767
  };
165
- code: {
768
+ table: {
166
769
  config: {
167
- type: string;
168
- propSchema: "boolean";
770
+ type: "table";
771
+ content: "table";
772
+ propSchema: {
773
+ textColor: {
774
+ default: "default";
775
+ };
776
+ };
169
777
  };
170
- implementation: _blocknote_core.StyleImplementation<{
171
- type: string;
172
- propSchema: "boolean";
173
- }>;
174
- };
175
- textColor: _blocknote_core.StyleSpec<{
176
- readonly type: "textColor";
177
- readonly propSchema: "string";
178
- }>;
179
- backgroundColor: _blocknote_core.StyleSpec<{
180
- readonly type: "backgroundColor";
181
- readonly propSchema: "string";
182
- }>;
183
- }>>(blocknoteOptions?: Partial<BlockNoteEditorOptions<B, I, S>>, liveblocksOptions?: LiveblocksExtensionOptions, deps?: DependencyList) => _blocknote_core.BlockNoteEditor<_blocknote_core._DefaultBlockSchema, _blocknote_core.InlineContentSchemaFromSpecs<{
778
+ implementation: _blocknote_core.TiptapBlockImplementation<{
779
+ type: "table";
780
+ content: "table";
781
+ propSchema: {
782
+ textColor: {
783
+ default: "default";
784
+ };
785
+ };
786
+ }, any, InlineContentSchema, StyleSchema>;
787
+ };
788
+ file: {
789
+ config: {
790
+ type: "file";
791
+ propSchema: {
792
+ backgroundColor: {
793
+ default: "default";
794
+ };
795
+ name: {
796
+ default: "";
797
+ };
798
+ url: {
799
+ default: "";
800
+ };
801
+ caption: {
802
+ default: "";
803
+ };
804
+ };
805
+ content: "none";
806
+ isFileBlock: true;
807
+ };
808
+ implementation: _blocknote_core.TiptapBlockImplementation<{
809
+ type: "file";
810
+ propSchema: {
811
+ backgroundColor: {
812
+ default: "default";
813
+ };
814
+ name: {
815
+ default: "";
816
+ };
817
+ url: {
818
+ default: "";
819
+ };
820
+ caption: {
821
+ default: "";
822
+ };
823
+ };
824
+ content: "none";
825
+ isFileBlock: true;
826
+ }, any, InlineContentSchema, StyleSchema>;
827
+ };
828
+ image: {
829
+ config: {
830
+ type: "image";
831
+ propSchema: {
832
+ textAlignment: {
833
+ default: "left";
834
+ values: readonly ["left", "center", "right", "justify"];
835
+ };
836
+ backgroundColor: {
837
+ default: "default";
838
+ };
839
+ name: {
840
+ default: "";
841
+ };
842
+ url: {
843
+ default: "";
844
+ };
845
+ caption: {
846
+ default: "";
847
+ };
848
+ showPreview: {
849
+ default: true;
850
+ };
851
+ previewWidth: {
852
+ default: number;
853
+ };
854
+ };
855
+ content: "none";
856
+ isFileBlock: true;
857
+ fileBlockAccept: string[];
858
+ };
859
+ implementation: _blocknote_core.TiptapBlockImplementation<{
860
+ type: "image";
861
+ propSchema: {
862
+ textAlignment: {
863
+ default: "left";
864
+ values: readonly ["left", "center", "right", "justify"];
865
+ };
866
+ backgroundColor: {
867
+ default: "default";
868
+ };
869
+ name: {
870
+ default: "";
871
+ };
872
+ url: {
873
+ default: "";
874
+ };
875
+ caption: {
876
+ default: "";
877
+ };
878
+ showPreview: {
879
+ default: true;
880
+ };
881
+ previewWidth: {
882
+ default: number;
883
+ };
884
+ };
885
+ content: "none";
886
+ isFileBlock: true;
887
+ fileBlockAccept: string[];
888
+ }, any, InlineContentSchema, StyleSchema>;
889
+ };
890
+ video: {
891
+ config: {
892
+ type: "video";
893
+ propSchema: {
894
+ textAlignment: {
895
+ default: "left";
896
+ values: readonly ["left", "center", "right", "justify"];
897
+ };
898
+ backgroundColor: {
899
+ default: "default";
900
+ };
901
+ name: {
902
+ default: "";
903
+ };
904
+ url: {
905
+ default: "";
906
+ };
907
+ caption: {
908
+ default: "";
909
+ };
910
+ showPreview: {
911
+ default: true;
912
+ };
913
+ previewWidth: {
914
+ default: number;
915
+ };
916
+ };
917
+ content: "none";
918
+ isFileBlock: true;
919
+ fileBlockAccept: string[];
920
+ };
921
+ implementation: _blocknote_core.TiptapBlockImplementation<{
922
+ type: "video";
923
+ propSchema: {
924
+ textAlignment: {
925
+ default: "left";
926
+ values: readonly ["left", "center", "right", "justify"];
927
+ };
928
+ backgroundColor: {
929
+ default: "default";
930
+ };
931
+ name: {
932
+ default: "";
933
+ };
934
+ url: {
935
+ default: "";
936
+ };
937
+ caption: {
938
+ default: "";
939
+ };
940
+ showPreview: {
941
+ default: true;
942
+ };
943
+ previewWidth: {
944
+ default: number;
945
+ };
946
+ };
947
+ content: "none";
948
+ isFileBlock: true;
949
+ fileBlockAccept: string[];
950
+ }, any, InlineContentSchema, StyleSchema>;
951
+ };
952
+ audio: {
953
+ config: {
954
+ type: "audio";
955
+ propSchema: {
956
+ backgroundColor: {
957
+ default: "default";
958
+ };
959
+ name: {
960
+ default: "";
961
+ };
962
+ url: {
963
+ default: "";
964
+ };
965
+ caption: {
966
+ default: "";
967
+ };
968
+ showPreview: {
969
+ default: true;
970
+ };
971
+ };
972
+ content: "none";
973
+ isFileBlock: true;
974
+ fileBlockAccept: string[];
975
+ };
976
+ implementation: _blocknote_core.TiptapBlockImplementation<{
977
+ type: "audio";
978
+ propSchema: {
979
+ backgroundColor: {
980
+ default: "default";
981
+ };
982
+ name: {
983
+ default: "";
984
+ };
985
+ url: {
986
+ default: "";
987
+ };
988
+ caption: {
989
+ default: "";
990
+ };
991
+ showPreview: {
992
+ default: true;
993
+ };
994
+ };
995
+ content: "none";
996
+ isFileBlock: true;
997
+ fileBlockAccept: string[];
998
+ }, any, InlineContentSchema, StyleSchema>;
999
+ };
1000
+ }>, I extends InlineContentSchema = _blocknote_core.InlineContentSchemaFromSpecs<{
184
1001
  text: {
185
1002
  config: "text";
186
1003
  implementation: any;
@@ -189,66 +1006,57 @@ declare const useCreateBlockNoteWithLiveblocks: <B extends BlockSchema = _blockn
189
1006
  config: "link";
190
1007
  implementation: any;
191
1008
  };
192
- }>, _blocknote_core.StyleSchemaFromSpecs<{
1009
+ }>, S extends StyleSchema = _blocknote_core.StyleSchemaFromSpecs<{
193
1010
  bold: {
194
1011
  config: {
195
1012
  type: string;
196
1013
  propSchema: "boolean";
197
1014
  };
198
- implementation: _blocknote_core.StyleImplementation<{
199
- type: string;
200
- propSchema: "boolean";
201
- }>;
1015
+ implementation: _blocknote_core.StyleImplementation;
202
1016
  };
203
1017
  italic: {
204
1018
  config: {
205
1019
  type: string;
206
1020
  propSchema: "boolean";
207
1021
  };
208
- implementation: _blocknote_core.StyleImplementation<{
209
- type: string;
210
- propSchema: "boolean";
211
- }>;
1022
+ implementation: _blocknote_core.StyleImplementation;
212
1023
  };
213
1024
  underline: {
214
1025
  config: {
215
1026
  type: string;
216
1027
  propSchema: "boolean";
217
1028
  };
218
- implementation: _blocknote_core.StyleImplementation<{
219
- type: string;
220
- propSchema: "boolean";
221
- }>;
1029
+ implementation: _blocknote_core.StyleImplementation;
222
1030
  };
223
1031
  strike: {
224
1032
  config: {
225
1033
  type: string;
226
1034
  propSchema: "boolean";
227
1035
  };
228
- implementation: _blocknote_core.StyleImplementation<{
229
- type: string;
230
- propSchema: "boolean";
231
- }>;
1036
+ implementation: _blocknote_core.StyleImplementation;
232
1037
  };
233
1038
  code: {
234
1039
  config: {
235
1040
  type: string;
236
1041
  propSchema: "boolean";
237
1042
  };
238
- implementation: _blocknote_core.StyleImplementation<{
1043
+ implementation: _blocknote_core.StyleImplementation;
1044
+ };
1045
+ textColor: {
1046
+ config: {
1047
+ type: string;
1048
+ propSchema: "string";
1049
+ };
1050
+ implementation: _blocknote_core.StyleImplementation;
1051
+ };
1052
+ backgroundColor: {
1053
+ config: {
239
1054
  type: string;
240
- propSchema: "boolean";
241
- }>;
242
- };
243
- textColor: _blocknote_core.StyleSpec<{
244
- readonly type: "textColor";
245
- readonly propSchema: "string";
246
- }>;
247
- backgroundColor: _blocknote_core.StyleSpec<{
248
- readonly type: "backgroundColor";
249
- readonly propSchema: "string";
250
- }>;
251
- }>>;
1055
+ propSchema: "string";
1056
+ };
1057
+ implementation: _blocknote_core.StyleImplementation;
1058
+ };
1059
+ }>>(blocknoteOptions?: Partial<BlockNoteEditorOptions<B, I, S>>, liveblocksOptions?: LiveblocksExtensionOptions, deps?: DependencyList) => _blocknote_core.BlockNoteEditor<B, I, S>;
252
1060
 
253
1061
  type HistoryVersionPreviewProps<B extends BlockSchema = DefaultBlockSchema, I extends InlineContentSchema = DefaultInlineContentSchema, S extends StyleSchema = DefaultStyleSchema> = Omit<Parameters<typeof HistoryVersionPreview$1>[0], "editor"> & {
254
1062
  editor: BlockNoteEditor<B, I, S>;