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