@liveblocks/react-blocknote 3.9.1 → 3.9.2-tiptap1

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 (37) hide show
  1. package/dist/BlockNoteLiveblocksExtension.cjs +1 -0
  2. package/dist/BlockNoteLiveblocksExtension.cjs.map +1 -1
  3. package/dist/BlockNoteLiveblocksExtension.js +1 -0
  4. package/dist/BlockNoteLiveblocksExtension.js.map +1 -1
  5. package/dist/comments/AnchoredThreads.cjs +7 -4
  6. package/dist/comments/AnchoredThreads.cjs.map +1 -1
  7. package/dist/comments/AnchoredThreads.js +7 -4
  8. package/dist/comments/AnchoredThreads.js.map +1 -1
  9. package/dist/comments/FloatingComposer.cjs +7 -4
  10. package/dist/comments/FloatingComposer.cjs.map +1 -1
  11. package/dist/comments/FloatingComposer.js +7 -4
  12. package/dist/comments/FloatingComposer.js.map +1 -1
  13. package/dist/comments/FloatingThreads.cjs +7 -4
  14. package/dist/comments/FloatingThreads.cjs.map +1 -1
  15. package/dist/comments/FloatingThreads.js +7 -4
  16. package/dist/comments/FloatingThreads.js.map +1 -1
  17. package/dist/index.d.cts +113 -921
  18. package/dist/index.d.ts +113 -921
  19. package/dist/initialization/liveblocksEditorOptions.cjs +13 -2
  20. package/dist/initialization/liveblocksEditorOptions.cjs.map +1 -1
  21. package/dist/initialization/liveblocksEditorOptions.js +13 -2
  22. package/dist/initialization/liveblocksEditorOptions.js.map +1 -1
  23. package/dist/initialization/schema.cjs +36 -6
  24. package/dist/initialization/schema.cjs.map +1 -1
  25. package/dist/initialization/schema.js +36 -6
  26. package/dist/initialization/schema.js.map +1 -1
  27. package/dist/version-history/HistoryVersionPreview.cjs +7 -4
  28. package/dist/version-history/HistoryVersionPreview.cjs.map +1 -1
  29. package/dist/version-history/HistoryVersionPreview.js +7 -4
  30. package/dist/version-history/HistoryVersionPreview.js.map +1 -1
  31. package/dist/version.cjs +1 -1
  32. package/dist/version.cjs.map +1 -1
  33. package/dist/version.js +1 -1
  34. package/dist/version.js.map +1 -1
  35. package/package.json +11 -11
  36. package/styles.css +1 -1
  37. package/styles.css.map +1 -1
package/dist/index.d.ts CHANGED
@@ -28,454 +28,7 @@ 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.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<{
31
+ declare const withLiveblocksEditorOptions: <B extends BlockSchema = _blocknote_core._DefaultBlockSchema, I extends InlineContentSchema = _blocknote_core.InlineContentSchemaFromSpecs<{
479
32
  text: {
480
33
  config: "text";
481
34
  implementation: any;
@@ -490,51 +43,60 @@ declare const withLiveblocksEditorOptions: <B extends BlockSchema = _blocknote_c
490
43
  type: string;
491
44
  propSchema: "boolean";
492
45
  };
493
- implementation: _blocknote_core.StyleImplementation;
46
+ implementation: _blocknote_core.StyleImplementation<{
47
+ type: string;
48
+ propSchema: "boolean";
49
+ }>;
494
50
  };
495
51
  italic: {
496
52
  config: {
497
53
  type: string;
498
54
  propSchema: "boolean";
499
55
  };
500
- implementation: _blocknote_core.StyleImplementation;
56
+ implementation: _blocknote_core.StyleImplementation<{
57
+ type: string;
58
+ propSchema: "boolean";
59
+ }>;
501
60
  };
502
61
  underline: {
503
62
  config: {
504
63
  type: string;
505
64
  propSchema: "boolean";
506
65
  };
507
- implementation: _blocknote_core.StyleImplementation;
66
+ implementation: _blocknote_core.StyleImplementation<{
67
+ type: string;
68
+ propSchema: "boolean";
69
+ }>;
508
70
  };
509
71
  strike: {
510
72
  config: {
511
73
  type: string;
512
74
  propSchema: "boolean";
513
75
  };
514
- implementation: _blocknote_core.StyleImplementation;
76
+ implementation: _blocknote_core.StyleImplementation<{
77
+ type: string;
78
+ propSchema: "boolean";
79
+ }>;
515
80
  };
516
81
  code: {
517
82
  config: {
518
83
  type: string;
519
84
  propSchema: "boolean";
520
85
  };
521
- implementation: _blocknote_core.StyleImplementation;
522
- };
523
- textColor: {
524
- config: {
86
+ implementation: _blocknote_core.StyleImplementation<{
525
87
  type: string;
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<{
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<{
538
100
  mentions: boolean;
539
101
  }>) => Partial<BlockNoteEditorOptions<B, I, S>>;
540
102
 
@@ -550,454 +112,75 @@ declare const withLiveblocksSchema: <B extends BlockSchema, I extends InlineCont
550
112
  /**
551
113
  * Function that can be used instead of standard useCreateBlockNote to add Liveblocks support
552
114
  */
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>;
587
- };
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>;
629
- };
630
- codeBlock: {
631
- config: {
632
- type: "codeBlock";
633
- content: "inline";
634
- propSchema: {
635
- language: {
636
- default: string;
637
- values: string[];
638
- };
639
- };
640
- };
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>;
651
- };
652
- bulletListItem: {
653
- config: {
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
- };
668
- };
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>;
685
- };
686
- numberedListItem: {
687
- config: {
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
- };
706
- };
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>;
115
+ declare const useCreateBlockNoteWithLiveblocks: <B extends BlockSchema = _blocknote_core._DefaultBlockSchema, I extends InlineContentSchema = _blocknote_core.InlineContentSchemaFromSpecs<{
116
+ text: {
117
+ config: "text";
118
+ implementation: any;
727
119
  };
728
- checkListItem: {
729
- config: {
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
- };
747
- };
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>;
120
+ link: {
121
+ config: "link";
122
+ implementation: any;
767
123
  };
768
- table: {
124
+ }>, S extends StyleSchema = _blocknote_core.StyleSchemaFromSpecs<{
125
+ bold: {
769
126
  config: {
770
- type: "table";
771
- content: "table";
772
- propSchema: {
773
- textColor: {
774
- default: "default";
775
- };
776
- };
127
+ type: string;
128
+ propSchema: "boolean";
777
129
  };
778
- implementation: _blocknote_core.TiptapBlockImplementation<{
779
- type: "table";
780
- content: "table";
781
- propSchema: {
782
- textColor: {
783
- default: "default";
784
- };
785
- };
786
- }, any, InlineContentSchema, StyleSchema>;
130
+ implementation: _blocknote_core.StyleImplementation<{
131
+ type: string;
132
+ propSchema: "boolean";
133
+ }>;
787
134
  };
788
- file: {
135
+ italic: {
789
136
  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;
137
+ type: string;
138
+ propSchema: "boolean";
807
139
  };
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>;
140
+ implementation: _blocknote_core.StyleImplementation<{
141
+ type: string;
142
+ propSchema: "boolean";
143
+ }>;
827
144
  };
828
- image: {
145
+ underline: {
829
146
  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[];
147
+ type: string;
148
+ propSchema: "boolean";
858
149
  };
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>;
150
+ implementation: _blocknote_core.StyleImplementation<{
151
+ type: string;
152
+ propSchema: "boolean";
153
+ }>;
889
154
  };
890
- video: {
155
+ strike: {
891
156
  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[];
157
+ type: string;
158
+ propSchema: "boolean";
920
159
  };
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>;
160
+ implementation: _blocknote_core.StyleImplementation<{
161
+ type: string;
162
+ propSchema: "boolean";
163
+ }>;
951
164
  };
952
- audio: {
165
+ code: {
953
166
  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[];
167
+ type: string;
168
+ propSchema: "boolean";
975
169
  };
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<{
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<{
1001
184
  text: {
1002
185
  config: "text";
1003
186
  implementation: any;
@@ -1006,57 +189,66 @@ declare const useCreateBlockNoteWithLiveblocks: <B extends BlockSchema = _blockn
1006
189
  config: "link";
1007
190
  implementation: any;
1008
191
  };
1009
- }>, S extends StyleSchema = _blocknote_core.StyleSchemaFromSpecs<{
192
+ }>, _blocknote_core.StyleSchemaFromSpecs<{
1010
193
  bold: {
1011
194
  config: {
1012
195
  type: string;
1013
196
  propSchema: "boolean";
1014
197
  };
1015
- implementation: _blocknote_core.StyleImplementation;
198
+ implementation: _blocknote_core.StyleImplementation<{
199
+ type: string;
200
+ propSchema: "boolean";
201
+ }>;
1016
202
  };
1017
203
  italic: {
1018
204
  config: {
1019
205
  type: string;
1020
206
  propSchema: "boolean";
1021
207
  };
1022
- implementation: _blocknote_core.StyleImplementation;
208
+ implementation: _blocknote_core.StyleImplementation<{
209
+ type: string;
210
+ propSchema: "boolean";
211
+ }>;
1023
212
  };
1024
213
  underline: {
1025
214
  config: {
1026
215
  type: string;
1027
216
  propSchema: "boolean";
1028
217
  };
1029
- implementation: _blocknote_core.StyleImplementation;
218
+ implementation: _blocknote_core.StyleImplementation<{
219
+ type: string;
220
+ propSchema: "boolean";
221
+ }>;
1030
222
  };
1031
223
  strike: {
1032
224
  config: {
1033
225
  type: string;
1034
226
  propSchema: "boolean";
1035
227
  };
1036
- implementation: _blocknote_core.StyleImplementation;
1037
- };
1038
- code: {
1039
- config: {
228
+ implementation: _blocknote_core.StyleImplementation<{
1040
229
  type: string;
1041
230
  propSchema: "boolean";
1042
- };
1043
- implementation: _blocknote_core.StyleImplementation;
231
+ }>;
1044
232
  };
1045
- textColor: {
233
+ code: {
1046
234
  config: {
1047
235
  type: string;
1048
- propSchema: "string";
236
+ propSchema: "boolean";
1049
237
  };
1050
- implementation: _blocknote_core.StyleImplementation;
1051
- };
1052
- backgroundColor: {
1053
- config: {
238
+ implementation: _blocknote_core.StyleImplementation<{
1054
239
  type: string;
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>;
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
+ }>>;
1060
252
 
1061
253
  type HistoryVersionPreviewProps<B extends BlockSchema = DefaultBlockSchema, I extends InlineContentSchema = DefaultInlineContentSchema, S extends StyleSchema = DefaultStyleSchema> = Omit<Parameters<typeof HistoryVersionPreview$1>[0], "editor"> & {
1062
254
  editor: BlockNoteEditor<B, I, S>;