@ixo/editor 1.1.4 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1253 +0,0 @@
1
- import * as _blocknote_core from '@blocknote/core';
2
- import { BlockNoteEditor } from '@blocknote/core';
3
- export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
4
- import { I as IxoEditorOptions, a as IxoCollaborativeEditorOptions } from '../graphql-client-BIr8uzKX.mjs';
5
- export { E as Entity, e as EntityResponse, f as EntityVariables, G as GraphQLClient, j as GraphQLRequest, h as GraphQLResponse, d as IxoCollaborativeUser, c as IxoEditorConfig, b as IxoEditorTheme, g as getEntity, i as ixoGraphQLClient } from '../graphql-client-BIr8uzKX.mjs';
6
- import React from 'react';
7
- import 'matrix-js-sdk';
8
-
9
- /**
10
- * Custom hook that wraps useCreateBlockNote with IXO-specific configurations (Mantine version)
11
- * @param options - Configuration options for the IxoEditor
12
- * @returns A configured BlockNote editor instance
13
- */
14
- declare function useCreateIxoEditor(options?: IxoEditorOptions): _blocknote_core.BlockNoteEditor<_blocknote_core.BlockSchemaFromSpecs<{
15
- list: {
16
- config: {
17
- readonly type: "list";
18
- readonly propSchema: {
19
- readonly title: {
20
- readonly default: "";
21
- };
22
- readonly did: {
23
- readonly default: "";
24
- };
25
- readonly fragmentIdentifier: {
26
- readonly default: "";
27
- };
28
- };
29
- readonly content: "none";
30
- };
31
- implementation: _blocknote_core.TiptapBlockImplementation<{
32
- readonly type: "list";
33
- readonly propSchema: {
34
- readonly title: {
35
- readonly default: "";
36
- };
37
- readonly did: {
38
- readonly default: "";
39
- };
40
- readonly fragmentIdentifier: {
41
- readonly default: "";
42
- };
43
- };
44
- readonly content: "none";
45
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
46
- };
47
- overview: {
48
- config: {
49
- readonly type: "overview";
50
- readonly propSchema: {
51
- readonly did: {
52
- readonly default: "";
53
- };
54
- };
55
- readonly content: "none";
56
- };
57
- implementation: _blocknote_core.TiptapBlockImplementation<{
58
- readonly type: "overview";
59
- readonly propSchema: {
60
- readonly did: {
61
- readonly default: "";
62
- };
63
- };
64
- readonly content: "none";
65
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
66
- };
67
- paragraph: {
68
- config: {
69
- type: "paragraph";
70
- content: "inline";
71
- propSchema: {
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
- };
84
- implementation: _blocknote_core.TiptapBlockImplementation<{
85
- type: "paragraph";
86
- content: "inline";
87
- propSchema: {
88
- backgroundColor: {
89
- default: "default";
90
- };
91
- textColor: {
92
- default: "default";
93
- };
94
- textAlignment: {
95
- default: "left";
96
- values: readonly ["left", "center", "right", "justify"];
97
- };
98
- };
99
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
100
- };
101
- heading: {
102
- config: {
103
- type: "heading";
104
- content: "inline";
105
- propSchema: {
106
- level: {
107
- default: number;
108
- values: readonly [1, 2, 3];
109
- };
110
- backgroundColor: {
111
- default: "default";
112
- };
113
- textColor: {
114
- default: "default";
115
- };
116
- textAlignment: {
117
- default: "left";
118
- values: readonly ["left", "center", "right", "justify"];
119
- };
120
- };
121
- };
122
- implementation: _blocknote_core.TiptapBlockImplementation<{
123
- type: "heading";
124
- content: "inline";
125
- propSchema: {
126
- level: {
127
- default: number;
128
- values: readonly [1, 2, 3];
129
- };
130
- backgroundColor: {
131
- default: "default";
132
- };
133
- textColor: {
134
- default: "default";
135
- };
136
- textAlignment: {
137
- default: "left";
138
- values: readonly ["left", "center", "right", "justify"];
139
- };
140
- };
141
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
142
- };
143
- bulletListItem: {
144
- config: {
145
- type: "bulletListItem";
146
- content: "inline";
147
- propSchema: {
148
- backgroundColor: {
149
- default: "default";
150
- };
151
- textColor: {
152
- default: "default";
153
- };
154
- textAlignment: {
155
- default: "left";
156
- values: readonly ["left", "center", "right", "justify"];
157
- };
158
- };
159
- };
160
- implementation: _blocknote_core.TiptapBlockImplementation<{
161
- type: "bulletListItem";
162
- content: "inline";
163
- propSchema: {
164
- backgroundColor: {
165
- default: "default";
166
- };
167
- textColor: {
168
- default: "default";
169
- };
170
- textAlignment: {
171
- default: "left";
172
- values: readonly ["left", "center", "right", "justify"];
173
- };
174
- };
175
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
176
- };
177
- numberedListItem: {
178
- config: {
179
- type: "numberedListItem";
180
- content: "inline";
181
- propSchema: {
182
- backgroundColor: {
183
- default: "default";
184
- };
185
- textColor: {
186
- default: "default";
187
- };
188
- textAlignment: {
189
- default: "left";
190
- values: readonly ["left", "center", "right", "justify"];
191
- };
192
- };
193
- };
194
- implementation: _blocknote_core.TiptapBlockImplementation<{
195
- type: "numberedListItem";
196
- content: "inline";
197
- propSchema: {
198
- backgroundColor: {
199
- default: "default";
200
- };
201
- textColor: {
202
- default: "default";
203
- };
204
- textAlignment: {
205
- default: "left";
206
- values: readonly ["left", "center", "right", "justify"];
207
- };
208
- };
209
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
210
- };
211
- checkListItem: {
212
- config: {
213
- type: "checkListItem";
214
- content: "inline";
215
- propSchema: {
216
- checked: {
217
- default: false;
218
- };
219
- backgroundColor: {
220
- default: "default";
221
- };
222
- textColor: {
223
- default: "default";
224
- };
225
- textAlignment: {
226
- default: "left";
227
- values: readonly ["left", "center", "right", "justify"];
228
- };
229
- };
230
- };
231
- implementation: _blocknote_core.TiptapBlockImplementation<{
232
- type: "checkListItem";
233
- content: "inline";
234
- propSchema: {
235
- checked: {
236
- default: false;
237
- };
238
- backgroundColor: {
239
- default: "default";
240
- };
241
- textColor: {
242
- default: "default";
243
- };
244
- textAlignment: {
245
- default: "left";
246
- values: readonly ["left", "center", "right", "justify"];
247
- };
248
- };
249
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
250
- };
251
- table: {
252
- config: {
253
- type: "table";
254
- content: "table";
255
- propSchema: {
256
- backgroundColor: {
257
- default: "default";
258
- };
259
- textColor: {
260
- default: "default";
261
- };
262
- textAlignment: {
263
- default: "left";
264
- values: readonly ["left", "center", "right", "justify"];
265
- };
266
- };
267
- };
268
- implementation: _blocknote_core.TiptapBlockImplementation<{
269
- type: "table";
270
- content: "table";
271
- propSchema: {
272
- backgroundColor: {
273
- default: "default";
274
- };
275
- textColor: {
276
- default: "default";
277
- };
278
- textAlignment: {
279
- default: "left";
280
- values: readonly ["left", "center", "right", "justify"];
281
- };
282
- };
283
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
284
- };
285
- file: {
286
- config: {
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
- };
305
- implementation: _blocknote_core.TiptapBlockImplementation<{
306
- type: "file";
307
- propSchema: {
308
- backgroundColor: {
309
- default: "default";
310
- };
311
- name: {
312
- default: "";
313
- };
314
- url: {
315
- default: "";
316
- };
317
- caption: {
318
- default: "";
319
- };
320
- };
321
- content: "none";
322
- isFileBlock: true;
323
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
324
- };
325
- image: {
326
- config: {
327
- type: "image";
328
- propSchema: {
329
- textAlignment: {
330
- default: "left";
331
- values: readonly ["left", "center", "right", "justify"];
332
- };
333
- backgroundColor: {
334
- default: "default";
335
- };
336
- name: {
337
- default: "";
338
- };
339
- url: {
340
- default: "";
341
- };
342
- caption: {
343
- default: "";
344
- };
345
- showPreview: {
346
- default: true;
347
- };
348
- previewWidth: {
349
- default: number;
350
- };
351
- };
352
- content: "none";
353
- isFileBlock: true;
354
- fileBlockAccept: string[];
355
- };
356
- implementation: _blocknote_core.TiptapBlockImplementation<{
357
- type: "image";
358
- propSchema: {
359
- textAlignment: {
360
- default: "left";
361
- values: readonly ["left", "center", "right", "justify"];
362
- };
363
- backgroundColor: {
364
- default: "default";
365
- };
366
- name: {
367
- default: "";
368
- };
369
- url: {
370
- default: "";
371
- };
372
- caption: {
373
- default: "";
374
- };
375
- showPreview: {
376
- default: true;
377
- };
378
- previewWidth: {
379
- default: number;
380
- };
381
- };
382
- content: "none";
383
- isFileBlock: true;
384
- fileBlockAccept: string[];
385
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
386
- };
387
- video: {
388
- config: {
389
- type: "video";
390
- propSchema: {
391
- textAlignment: {
392
- default: "left";
393
- values: readonly ["left", "center", "right", "justify"];
394
- };
395
- backgroundColor: {
396
- default: "default";
397
- };
398
- name: {
399
- default: "";
400
- };
401
- url: {
402
- default: "";
403
- };
404
- caption: {
405
- default: "";
406
- };
407
- showPreview: {
408
- default: true;
409
- };
410
- previewWidth: {
411
- default: number;
412
- };
413
- };
414
- content: "none";
415
- isFileBlock: true;
416
- fileBlockAccept: string[];
417
- };
418
- implementation: _blocknote_core.TiptapBlockImplementation<{
419
- type: "video";
420
- propSchema: {
421
- textAlignment: {
422
- default: "left";
423
- values: readonly ["left", "center", "right", "justify"];
424
- };
425
- backgroundColor: {
426
- default: "default";
427
- };
428
- name: {
429
- default: "";
430
- };
431
- url: {
432
- default: "";
433
- };
434
- caption: {
435
- default: "";
436
- };
437
- showPreview: {
438
- default: true;
439
- };
440
- previewWidth: {
441
- default: number;
442
- };
443
- };
444
- content: "none";
445
- isFileBlock: true;
446
- fileBlockAccept: string[];
447
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
448
- };
449
- audio: {
450
- config: {
451
- type: "audio";
452
- propSchema: {
453
- backgroundColor: {
454
- default: "default";
455
- };
456
- name: {
457
- default: "";
458
- };
459
- url: {
460
- default: "";
461
- };
462
- caption: {
463
- default: "";
464
- };
465
- showPreview: {
466
- default: true;
467
- };
468
- };
469
- content: "none";
470
- isFileBlock: true;
471
- fileBlockAccept: string[];
472
- };
473
- implementation: _blocknote_core.TiptapBlockImplementation<{
474
- type: "audio";
475
- propSchema: {
476
- backgroundColor: {
477
- default: "default";
478
- };
479
- name: {
480
- default: "";
481
- };
482
- url: {
483
- default: "";
484
- };
485
- caption: {
486
- default: "";
487
- };
488
- showPreview: {
489
- default: true;
490
- };
491
- };
492
- content: "none";
493
- isFileBlock: true;
494
- fileBlockAccept: string[];
495
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
496
- };
497
- }>, _blocknote_core.InlineContentSchemaFromSpecs<{
498
- text: {
499
- config: "text";
500
- implementation: any;
501
- };
502
- link: {
503
- config: "link";
504
- implementation: any;
505
- };
506
- }>, _blocknote_core.StyleSchemaFromSpecs<{
507
- bold: {
508
- config: {
509
- type: string;
510
- propSchema: "boolean";
511
- };
512
- implementation: _blocknote_core.StyleImplementation;
513
- };
514
- italic: {
515
- config: {
516
- type: string;
517
- propSchema: "boolean";
518
- };
519
- implementation: _blocknote_core.StyleImplementation;
520
- };
521
- underline: {
522
- config: {
523
- type: string;
524
- propSchema: "boolean";
525
- };
526
- implementation: _blocknote_core.StyleImplementation;
527
- };
528
- strike: {
529
- config: {
530
- type: string;
531
- propSchema: "boolean";
532
- };
533
- implementation: _blocknote_core.StyleImplementation;
534
- };
535
- code: {
536
- config: {
537
- type: string;
538
- propSchema: "boolean";
539
- };
540
- implementation: _blocknote_core.StyleImplementation;
541
- };
542
- textColor: {
543
- config: {
544
- type: string;
545
- propSchema: "string";
546
- };
547
- implementation: _blocknote_core.StyleImplementation;
548
- };
549
- backgroundColor: {
550
- config: {
551
- type: string;
552
- propSchema: "string";
553
- };
554
- implementation: _blocknote_core.StyleImplementation;
555
- };
556
- }>>;
557
-
558
- /**
559
- * Custom hook that wraps useCreateBlockNote with IXO-specific configurations (Mantine version)
560
- * @param options - Configuration options for the IxoEditor
561
- * @returns A configured BlockNote editor instance
562
- */
563
- declare function useCreateCollaborativeIxoEditor(options: IxoCollaborativeEditorOptions): {
564
- editor: _blocknote_core.BlockNoteEditor<_blocknote_core.BlockSchemaFromSpecs<{
565
- list: {
566
- config: {
567
- readonly type: "list";
568
- readonly propSchema: {
569
- readonly title: {
570
- readonly default: "";
571
- };
572
- readonly did: {
573
- readonly default: "";
574
- };
575
- readonly fragmentIdentifier: {
576
- readonly default: "";
577
- };
578
- };
579
- readonly content: "none";
580
- };
581
- implementation: _blocknote_core.TiptapBlockImplementation<{
582
- readonly type: "list";
583
- readonly propSchema: {
584
- readonly title: {
585
- readonly default: "";
586
- };
587
- readonly did: {
588
- readonly default: "";
589
- };
590
- readonly fragmentIdentifier: {
591
- readonly default: "";
592
- };
593
- };
594
- readonly content: "none";
595
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
596
- };
597
- overview: {
598
- config: {
599
- readonly type: "overview";
600
- readonly propSchema: {
601
- readonly did: {
602
- readonly default: "";
603
- };
604
- };
605
- readonly content: "none";
606
- };
607
- implementation: _blocknote_core.TiptapBlockImplementation<{
608
- readonly type: "overview";
609
- readonly propSchema: {
610
- readonly did: {
611
- readonly default: "";
612
- };
613
- };
614
- readonly content: "none";
615
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
616
- };
617
- paragraph: {
618
- config: {
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
- };
634
- implementation: _blocknote_core.TiptapBlockImplementation<{
635
- type: "paragraph";
636
- content: "inline";
637
- propSchema: {
638
- backgroundColor: {
639
- default: "default";
640
- };
641
- textColor: {
642
- default: "default";
643
- };
644
- textAlignment: {
645
- default: "left";
646
- values: readonly ["left", "center", "right", "justify"];
647
- };
648
- };
649
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
650
- };
651
- heading: {
652
- config: {
653
- type: "heading";
654
- content: "inline";
655
- propSchema: {
656
- level: {
657
- default: number;
658
- values: readonly [1, 2, 3];
659
- };
660
- backgroundColor: {
661
- default: "default";
662
- };
663
- textColor: {
664
- default: "default";
665
- };
666
- textAlignment: {
667
- default: "left";
668
- values: readonly ["left", "center", "right", "justify"];
669
- };
670
- };
671
- };
672
- implementation: _blocknote_core.TiptapBlockImplementation<{
673
- type: "heading";
674
- content: "inline";
675
- propSchema: {
676
- level: {
677
- default: number;
678
- values: readonly [1, 2, 3];
679
- };
680
- backgroundColor: {
681
- default: "default";
682
- };
683
- textColor: {
684
- default: "default";
685
- };
686
- textAlignment: {
687
- default: "left";
688
- values: readonly ["left", "center", "right", "justify"];
689
- };
690
- };
691
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
692
- };
693
- bulletListItem: {
694
- config: {
695
- type: "bulletListItem";
696
- content: "inline";
697
- propSchema: {
698
- backgroundColor: {
699
- default: "default";
700
- };
701
- textColor: {
702
- default: "default";
703
- };
704
- textAlignment: {
705
- default: "left";
706
- values: readonly ["left", "center", "right", "justify"];
707
- };
708
- };
709
- };
710
- implementation: _blocknote_core.TiptapBlockImplementation<{
711
- type: "bulletListItem";
712
- content: "inline";
713
- propSchema: {
714
- backgroundColor: {
715
- default: "default";
716
- };
717
- textColor: {
718
- default: "default";
719
- };
720
- textAlignment: {
721
- default: "left";
722
- values: readonly ["left", "center", "right", "justify"];
723
- };
724
- };
725
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
726
- };
727
- numberedListItem: {
728
- config: {
729
- type: "numberedListItem";
730
- content: "inline";
731
- propSchema: {
732
- backgroundColor: {
733
- default: "default";
734
- };
735
- textColor: {
736
- default: "default";
737
- };
738
- textAlignment: {
739
- default: "left";
740
- values: readonly ["left", "center", "right", "justify"];
741
- };
742
- };
743
- };
744
- implementation: _blocknote_core.TiptapBlockImplementation<{
745
- type: "numberedListItem";
746
- content: "inline";
747
- propSchema: {
748
- backgroundColor: {
749
- default: "default";
750
- };
751
- textColor: {
752
- default: "default";
753
- };
754
- textAlignment: {
755
- default: "left";
756
- values: readonly ["left", "center", "right", "justify"];
757
- };
758
- };
759
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
760
- };
761
- checkListItem: {
762
- config: {
763
- type: "checkListItem";
764
- content: "inline";
765
- propSchema: {
766
- checked: {
767
- default: false;
768
- };
769
- backgroundColor: {
770
- default: "default";
771
- };
772
- textColor: {
773
- default: "default";
774
- };
775
- textAlignment: {
776
- default: "left";
777
- values: readonly ["left", "center", "right", "justify"];
778
- };
779
- };
780
- };
781
- implementation: _blocknote_core.TiptapBlockImplementation<{
782
- type: "checkListItem";
783
- content: "inline";
784
- propSchema: {
785
- checked: {
786
- default: false;
787
- };
788
- backgroundColor: {
789
- default: "default";
790
- };
791
- textColor: {
792
- default: "default";
793
- };
794
- textAlignment: {
795
- default: "left";
796
- values: readonly ["left", "center", "right", "justify"];
797
- };
798
- };
799
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
800
- };
801
- table: {
802
- config: {
803
- type: "table";
804
- content: "table";
805
- propSchema: {
806
- backgroundColor: {
807
- default: "default";
808
- };
809
- textColor: {
810
- default: "default";
811
- };
812
- textAlignment: {
813
- default: "left";
814
- values: readonly ["left", "center", "right", "justify"];
815
- };
816
- };
817
- };
818
- implementation: _blocknote_core.TiptapBlockImplementation<{
819
- type: "table";
820
- content: "table";
821
- propSchema: {
822
- backgroundColor: {
823
- default: "default";
824
- };
825
- textColor: {
826
- default: "default";
827
- };
828
- textAlignment: {
829
- default: "left";
830
- values: readonly ["left", "center", "right", "justify"];
831
- };
832
- };
833
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
834
- };
835
- file: {
836
- config: {
837
- type: "file";
838
- propSchema: {
839
- backgroundColor: {
840
- default: "default";
841
- };
842
- name: {
843
- default: "";
844
- };
845
- url: {
846
- default: "";
847
- };
848
- caption: {
849
- default: "";
850
- };
851
- };
852
- content: "none";
853
- isFileBlock: true;
854
- };
855
- implementation: _blocknote_core.TiptapBlockImplementation<{
856
- type: "file";
857
- propSchema: {
858
- backgroundColor: {
859
- default: "default";
860
- };
861
- name: {
862
- default: "";
863
- };
864
- url: {
865
- default: "";
866
- };
867
- caption: {
868
- default: "";
869
- };
870
- };
871
- content: "none";
872
- isFileBlock: true;
873
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
874
- };
875
- image: {
876
- config: {
877
- type: "image";
878
- propSchema: {
879
- textAlignment: {
880
- default: "left";
881
- values: readonly ["left", "center", "right", "justify"];
882
- };
883
- backgroundColor: {
884
- default: "default";
885
- };
886
- name: {
887
- default: "";
888
- };
889
- url: {
890
- default: "";
891
- };
892
- caption: {
893
- default: "";
894
- };
895
- showPreview: {
896
- default: true;
897
- };
898
- previewWidth: {
899
- default: number;
900
- };
901
- };
902
- content: "none";
903
- isFileBlock: true;
904
- fileBlockAccept: string[];
905
- };
906
- implementation: _blocknote_core.TiptapBlockImplementation<{
907
- type: "image";
908
- propSchema: {
909
- textAlignment: {
910
- default: "left";
911
- values: readonly ["left", "center", "right", "justify"];
912
- };
913
- backgroundColor: {
914
- default: "default";
915
- };
916
- name: {
917
- default: "";
918
- };
919
- url: {
920
- default: "";
921
- };
922
- caption: {
923
- default: "";
924
- };
925
- showPreview: {
926
- default: true;
927
- };
928
- previewWidth: {
929
- default: number;
930
- };
931
- };
932
- content: "none";
933
- isFileBlock: true;
934
- fileBlockAccept: string[];
935
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
936
- };
937
- video: {
938
- config: {
939
- type: "video";
940
- propSchema: {
941
- textAlignment: {
942
- default: "left";
943
- values: readonly ["left", "center", "right", "justify"];
944
- };
945
- backgroundColor: {
946
- default: "default";
947
- };
948
- name: {
949
- default: "";
950
- };
951
- url: {
952
- default: "";
953
- };
954
- caption: {
955
- default: "";
956
- };
957
- showPreview: {
958
- default: true;
959
- };
960
- previewWidth: {
961
- default: number;
962
- };
963
- };
964
- content: "none";
965
- isFileBlock: true;
966
- fileBlockAccept: string[];
967
- };
968
- implementation: _blocknote_core.TiptapBlockImplementation<{
969
- type: "video";
970
- propSchema: {
971
- textAlignment: {
972
- default: "left";
973
- values: readonly ["left", "center", "right", "justify"];
974
- };
975
- backgroundColor: {
976
- default: "default";
977
- };
978
- name: {
979
- default: "";
980
- };
981
- url: {
982
- default: "";
983
- };
984
- caption: {
985
- default: "";
986
- };
987
- showPreview: {
988
- default: true;
989
- };
990
- previewWidth: {
991
- default: number;
992
- };
993
- };
994
- content: "none";
995
- isFileBlock: true;
996
- fileBlockAccept: string[];
997
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
998
- };
999
- audio: {
1000
- config: {
1001
- type: "audio";
1002
- propSchema: {
1003
- backgroundColor: {
1004
- default: "default";
1005
- };
1006
- name: {
1007
- default: "";
1008
- };
1009
- url: {
1010
- default: "";
1011
- };
1012
- caption: {
1013
- default: "";
1014
- };
1015
- showPreview: {
1016
- default: true;
1017
- };
1018
- };
1019
- content: "none";
1020
- isFileBlock: true;
1021
- fileBlockAccept: string[];
1022
- };
1023
- implementation: _blocknote_core.TiptapBlockImplementation<{
1024
- type: "audio";
1025
- propSchema: {
1026
- backgroundColor: {
1027
- default: "default";
1028
- };
1029
- name: {
1030
- default: "";
1031
- };
1032
- url: {
1033
- default: "";
1034
- };
1035
- caption: {
1036
- default: "";
1037
- };
1038
- showPreview: {
1039
- default: true;
1040
- };
1041
- };
1042
- content: "none";
1043
- isFileBlock: true;
1044
- fileBlockAccept: string[];
1045
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1046
- };
1047
- }>, _blocknote_core.InlineContentSchemaFromSpecs<{
1048
- text: {
1049
- config: "text";
1050
- implementation: any;
1051
- };
1052
- link: {
1053
- config: "link";
1054
- implementation: any;
1055
- };
1056
- }>, _blocknote_core.StyleSchemaFromSpecs<{
1057
- bold: {
1058
- config: {
1059
- type: string;
1060
- propSchema: "boolean";
1061
- };
1062
- implementation: _blocknote_core.StyleImplementation;
1063
- };
1064
- italic: {
1065
- config: {
1066
- type: string;
1067
- propSchema: "boolean";
1068
- };
1069
- implementation: _blocknote_core.StyleImplementation;
1070
- };
1071
- underline: {
1072
- config: {
1073
- type: string;
1074
- propSchema: "boolean";
1075
- };
1076
- implementation: _blocknote_core.StyleImplementation;
1077
- };
1078
- strike: {
1079
- config: {
1080
- type: string;
1081
- propSchema: "boolean";
1082
- };
1083
- implementation: _blocknote_core.StyleImplementation;
1084
- };
1085
- code: {
1086
- config: {
1087
- type: string;
1088
- propSchema: "boolean";
1089
- };
1090
- implementation: _blocknote_core.StyleImplementation;
1091
- };
1092
- textColor: {
1093
- config: {
1094
- type: string;
1095
- propSchema: "string";
1096
- };
1097
- implementation: _blocknote_core.StyleImplementation;
1098
- };
1099
- backgroundColor: {
1100
- config: {
1101
- type: string;
1102
- propSchema: "string";
1103
- };
1104
- implementation: _blocknote_core.StyleImplementation;
1105
- };
1106
- }>>;
1107
- connectionStatus: "connecting" | "connected" | "failed" | "disconnected";
1108
- };
1109
-
1110
- interface IxoEditorProps {
1111
- editor: BlockNoteEditor<any, any, any> | undefined;
1112
- className?: string;
1113
- onChange?: () => void;
1114
- onSelectionChange?: () => void;
1115
- children?: React.ReactNode;
1116
- }
1117
- /**
1118
- * IxoEditor component - A customized BlockNote editor for IXO (Mantine UI)
1119
- */
1120
- declare function IxoEditor({ editor, className, onChange, onSelectionChange, children, }: IxoEditorProps): React.JSX.Element | null;
1121
-
1122
- interface ListBlockSettings {
1123
- did: string;
1124
- fragmentIdentifier: string;
1125
- }
1126
- interface ListBlockProps {
1127
- block: any;
1128
- editor: any;
1129
- }
1130
- declare const ListBlock: {
1131
- config: {
1132
- readonly type: "list";
1133
- readonly propSchema: {
1134
- readonly title: {
1135
- readonly default: "";
1136
- };
1137
- readonly did: {
1138
- readonly default: "";
1139
- };
1140
- readonly fragmentIdentifier: {
1141
- readonly default: "";
1142
- };
1143
- };
1144
- readonly content: "none";
1145
- };
1146
- implementation: _blocknote_core.TiptapBlockImplementation<{
1147
- readonly type: "list";
1148
- readonly propSchema: {
1149
- readonly title: {
1150
- readonly default: "";
1151
- };
1152
- readonly did: {
1153
- readonly default: "";
1154
- };
1155
- readonly fragmentIdentifier: {
1156
- readonly default: "";
1157
- };
1158
- };
1159
- readonly content: "none";
1160
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1161
- };
1162
-
1163
- interface OverviewBlockSettings {
1164
- did: string;
1165
- }
1166
- interface OverviewBlockProps {
1167
- block: any;
1168
- editor: any;
1169
- }
1170
- declare const OverviewBlock: {
1171
- config: {
1172
- readonly type: "overview";
1173
- readonly propSchema: {
1174
- readonly did: {
1175
- readonly default: "";
1176
- };
1177
- };
1178
- readonly content: "none";
1179
- };
1180
- implementation: _blocknote_core.TiptapBlockImplementation<{
1181
- readonly type: "overview";
1182
- readonly propSchema: {
1183
- readonly did: {
1184
- readonly default: "";
1185
- };
1186
- };
1187
- readonly content: "none";
1188
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1189
- };
1190
-
1191
- declare const blockSpecs: {
1192
- list: {
1193
- config: {
1194
- readonly type: "list";
1195
- readonly propSchema: {
1196
- readonly title: {
1197
- readonly default: "";
1198
- };
1199
- readonly did: {
1200
- readonly default: "";
1201
- };
1202
- readonly fragmentIdentifier: {
1203
- readonly default: "";
1204
- };
1205
- };
1206
- readonly content: "none";
1207
- };
1208
- implementation: _blocknote_core.TiptapBlockImplementation<{
1209
- readonly type: "list";
1210
- readonly propSchema: {
1211
- readonly title: {
1212
- readonly default: "";
1213
- };
1214
- readonly did: {
1215
- readonly default: "";
1216
- };
1217
- readonly fragmentIdentifier: {
1218
- readonly default: "";
1219
- };
1220
- };
1221
- readonly content: "none";
1222
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1223
- };
1224
- overview: {
1225
- config: {
1226
- readonly type: "overview";
1227
- readonly propSchema: {
1228
- readonly did: {
1229
- readonly default: "";
1230
- };
1231
- };
1232
- readonly content: "none";
1233
- };
1234
- implementation: _blocknote_core.TiptapBlockImplementation<{
1235
- readonly type: "overview";
1236
- readonly propSchema: {
1237
- readonly did: {
1238
- readonly default: "";
1239
- };
1240
- };
1241
- readonly content: "none";
1242
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1243
- };
1244
- };
1245
- declare const getExtraSlashMenuItems: (editor: any) => {
1246
- title: string;
1247
- onItemClick: () => void;
1248
- aliases: string[];
1249
- group: string;
1250
- subtext: string;
1251
- }[];
1252
-
1253
- export { IxoCollaborativeEditorOptions, IxoEditor, IxoEditorOptions, type IxoEditorProps, ListBlock, type ListBlockProps, type ListBlockSettings, OverviewBlock, type OverviewBlockProps, type OverviewBlockSettings, blockSpecs, getExtraSlashMenuItems, useCreateCollaborativeIxoEditor, useCreateIxoEditor };