@liveblocks/react-blocknote 0.0.1 → 2.21.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.
Files changed (48) hide show
  1. package/dist/BlockNoteLiveblocksExtension.cjs +19 -0
  2. package/dist/BlockNoteLiveblocksExtension.cjs.map +1 -0
  3. package/dist/BlockNoteLiveblocksExtension.js +17 -0
  4. package/dist/BlockNoteLiveblocksExtension.js.map +1 -0
  5. package/dist/comments/AnchoredThreads.cjs +14 -0
  6. package/dist/comments/AnchoredThreads.cjs.map +1 -0
  7. package/dist/comments/AnchoredThreads.js +12 -0
  8. package/dist/comments/AnchoredThreads.js.map +1 -0
  9. package/dist/comments/FloatingComposer.cjs +14 -0
  10. package/dist/comments/FloatingComposer.cjs.map +1 -0
  11. package/dist/comments/FloatingComposer.js +12 -0
  12. package/dist/comments/FloatingComposer.js.map +1 -0
  13. package/dist/comments/FloatingThreads.cjs +14 -0
  14. package/dist/comments/FloatingThreads.cjs.map +1 -0
  15. package/dist/comments/FloatingThreads.js +12 -0
  16. package/dist/comments/FloatingThreads.js.map +1 -0
  17. package/dist/index.cjs +29 -0
  18. package/dist/index.cjs.map +1 -0
  19. package/dist/index.d.cts +1066 -0
  20. package/dist/index.d.ts +1066 -0
  21. package/dist/index.js +14 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/initialization/liveblocksEditorOptions.cjs +12 -0
  24. package/dist/initialization/liveblocksEditorOptions.cjs.map +1 -0
  25. package/dist/initialization/liveblocksEditorOptions.js +10 -0
  26. package/dist/initialization/liveblocksEditorOptions.js.map +1 -0
  27. package/dist/initialization/schema.cjs +30 -0
  28. package/dist/initialization/schema.cjs.map +1 -0
  29. package/dist/initialization/schema.js +28 -0
  30. package/dist/initialization/schema.js.map +1 -0
  31. package/dist/initialization/useCreateBlockNoteWithLiveblocks.cjs +20 -0
  32. package/dist/initialization/useCreateBlockNoteWithLiveblocks.cjs.map +1 -0
  33. package/dist/initialization/useCreateBlockNoteWithLiveblocks.js +18 -0
  34. package/dist/initialization/useCreateBlockNoteWithLiveblocks.js.map +1 -0
  35. package/dist/version-history/HistoryVersionPreview.cjs +14 -0
  36. package/dist/version-history/HistoryVersionPreview.cjs.map +1 -0
  37. package/dist/version-history/HistoryVersionPreview.js +12 -0
  38. package/dist/version-history/HistoryVersionPreview.js.map +1 -0
  39. package/dist/version.cjs +10 -0
  40. package/dist/version.cjs.map +1 -0
  41. package/dist/version.js +6 -0
  42. package/dist/version.js.map +1 -0
  43. package/package.json +97 -2
  44. package/src/styles/index.css +8 -0
  45. package/styles.css +1 -0
  46. package/styles.css.d.cts +1 -0
  47. package/styles.css.d.ts +1 -0
  48. package/styles.css.map +1 -0
@@ -0,0 +1,1066 @@
1
+ import * as _tiptap_core from '@tiptap/core';
2
+ import { Extension } from '@tiptap/core';
3
+ import { useLiveblocksExtension as useLiveblocksExtension$1, AnchoredThreads as AnchoredThreads$1, FloatingComposer as FloatingComposer$1, FloatingThreads as FloatingThreads$1, HistoryVersionPreview as HistoryVersionPreview$1 } from '@liveblocks/react-tiptap';
4
+ export { useIsEditorReady } from '@liveblocks/react-tiptap';
5
+ import * as react_jsx_runtime from 'react/jsx-runtime';
6
+ import * as _blocknote_core from '@blocknote/core';
7
+ import { BlockSchema, DefaultBlockSchema, InlineContentSchema, DefaultInlineContentSchema, StyleSchema, DefaultStyleSchema, BlockNoteEditor, BlockNoteEditorOptions, BlockNoteSchema } from '@blocknote/core';
8
+ import { DependencyList } from 'react';
9
+
10
+ type LiveblocksExtensionOptions = Parameters<typeof useLiveblocksExtension$1>[0];
11
+ declare const useLiveblocksExtension: (options?: LiveblocksExtensionOptions) => _tiptap_core.Extension<any, any>;
12
+
13
+ type AnchoredThreadsProps<B extends BlockSchema = DefaultBlockSchema, I extends InlineContentSchema = DefaultInlineContentSchema, S extends StyleSchema = DefaultStyleSchema> = Omit<Parameters<typeof AnchoredThreads$1>[0], "editor"> & {
14
+ editor: BlockNoteEditor<B, I, S>;
15
+ };
16
+ declare function AnchoredThreads(props: AnchoredThreadsProps): react_jsx_runtime.JSX.Element;
17
+
18
+ type FloatingComposerProps<B extends BlockSchema = DefaultBlockSchema, I extends InlineContentSchema = DefaultInlineContentSchema, S extends StyleSchema = DefaultStyleSchema> = Omit<Parameters<typeof FloatingComposer$1>[0], "editor"> & {
19
+ editor: BlockNoteEditor<B, I, S>;
20
+ };
21
+ declare function FloatingComposer(props: FloatingComposerProps): react_jsx_runtime.JSX.Element;
22
+
23
+ type FloatingThreadsProps<B extends BlockSchema = DefaultBlockSchema, I extends InlineContentSchema = DefaultInlineContentSchema, S extends StyleSchema = DefaultStyleSchema> = Omit<Parameters<typeof FloatingThreads$1>[0], "editor"> & {
24
+ editor: BlockNoteEditor<B, I, S>;
25
+ };
26
+ declare function FloatingThreads(props: FloatingThreadsProps): react_jsx_runtime.JSX.Element;
27
+
28
+ /**
29
+ * Helper funcction to add Liveblocks support to BlockNoteEditorOptions
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<{
479
+ text: {
480
+ config: "text";
481
+ implementation: any;
482
+ };
483
+ link: {
484
+ config: "link";
485
+ implementation: any;
486
+ };
487
+ }>, S extends StyleSchema = _blocknote_core.StyleSchemaFromSpecs<{
488
+ bold: {
489
+ config: {
490
+ type: string;
491
+ propSchema: "boolean";
492
+ };
493
+ implementation: _blocknote_core.StyleImplementation;
494
+ };
495
+ italic: {
496
+ config: {
497
+ type: string;
498
+ propSchema: "boolean";
499
+ };
500
+ implementation: _blocknote_core.StyleImplementation;
501
+ };
502
+ underline: {
503
+ config: {
504
+ type: string;
505
+ propSchema: "boolean";
506
+ };
507
+ implementation: _blocknote_core.StyleImplementation;
508
+ };
509
+ strike: {
510
+ config: {
511
+ type: string;
512
+ propSchema: "boolean";
513
+ };
514
+ implementation: _blocknote_core.StyleImplementation;
515
+ };
516
+ code: {
517
+ config: {
518
+ type: string;
519
+ propSchema: "boolean";
520
+ };
521
+ implementation: _blocknote_core.StyleImplementation;
522
+ };
523
+ textColor: {
524
+ config: {
525
+ 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<{
538
+ mentions: boolean;
539
+ }>) => Partial<BlockNoteEditorOptions<B, I, S>>;
540
+
541
+ /**
542
+ * Adds the Liveblocks Mention Node as inline content to the BlockNote schema
543
+ *
544
+ * This makes sure BlockNote knows about Liveblocks mentions and that you can read/write mentions via the BlockNote API
545
+ */
546
+ declare const withLiveblocksSchema: <B extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema>(schema?: BlockNoteSchema<B, I, S>, liveblocksOptions?: Partial<{
547
+ mentions: boolean;
548
+ }>) => BlockNoteSchema<B, I, S>;
549
+
550
+ /**
551
+ * Function that can be used instead of standard useCreateBlockNote to add Liveblocks support
552
+ */
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>;
727
+ };
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>;
767
+ };
768
+ table: {
769
+ config: {
770
+ type: "table";
771
+ content: "table";
772
+ propSchema: {
773
+ textColor: {
774
+ default: "default";
775
+ };
776
+ };
777
+ };
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<{
1001
+ text: {
1002
+ config: "text";
1003
+ implementation: any;
1004
+ };
1005
+ link: {
1006
+ config: "link";
1007
+ implementation: any;
1008
+ };
1009
+ }>, S extends StyleSchema = _blocknote_core.StyleSchemaFromSpecs<{
1010
+ bold: {
1011
+ config: {
1012
+ type: string;
1013
+ propSchema: "boolean";
1014
+ };
1015
+ implementation: _blocknote_core.StyleImplementation;
1016
+ };
1017
+ italic: {
1018
+ config: {
1019
+ type: string;
1020
+ propSchema: "boolean";
1021
+ };
1022
+ implementation: _blocknote_core.StyleImplementation;
1023
+ };
1024
+ underline: {
1025
+ config: {
1026
+ type: string;
1027
+ propSchema: "boolean";
1028
+ };
1029
+ implementation: _blocknote_core.StyleImplementation;
1030
+ };
1031
+ strike: {
1032
+ config: {
1033
+ type: string;
1034
+ propSchema: "boolean";
1035
+ };
1036
+ implementation: _blocknote_core.StyleImplementation;
1037
+ };
1038
+ code: {
1039
+ config: {
1040
+ type: string;
1041
+ propSchema: "boolean";
1042
+ };
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: {
1054
+ 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>;
1060
+
1061
+ type HistoryVersionPreviewProps<B extends BlockSchema = DefaultBlockSchema, I extends InlineContentSchema = DefaultInlineContentSchema, S extends StyleSchema = DefaultStyleSchema> = Omit<Parameters<typeof HistoryVersionPreview$1>[0], "editor"> & {
1062
+ editor: BlockNoteEditor<B, I, S>;
1063
+ };
1064
+ declare function HistoryVersionPreview(props: HistoryVersionPreviewProps): react_jsx_runtime.JSX.Element;
1065
+
1066
+ export { AnchoredThreads, FloatingComposer, FloatingThreads, HistoryVersionPreview, useCreateBlockNoteWithLiveblocks, useLiveblocksExtension, withLiveblocksEditorOptions, withLiveblocksSchema };