testomatio-editor-blocks 0.1.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.
@@ -0,0 +1,636 @@
1
+ import { BlockNoteSchema } from "@blocknote/core";
2
+ declare function markdownToHtml(markdown: string): string;
3
+ declare function htmlToMarkdown(html: string): string;
4
+ declare const statusOptions: readonly ["draft", "ready", "blocked"];
5
+ type Status = (typeof statusOptions)[number];
6
+ export declare const customSchema: BlockNoteSchema<import("@blocknote/core").BlockSchemaFromSpecs<{
7
+ testCase: {
8
+ config: {
9
+ readonly type: "testCase";
10
+ readonly content: "inline";
11
+ readonly propSchema: {
12
+ readonly textAlignment: {
13
+ default: "left";
14
+ values: readonly ["left", "center", "right", "justify"];
15
+ };
16
+ readonly textColor: {
17
+ default: "default";
18
+ };
19
+ readonly backgroundColor: {
20
+ default: "default";
21
+ };
22
+ readonly status: {
23
+ readonly default: Status;
24
+ readonly values: ("draft" | "ready" | "blocked")[];
25
+ };
26
+ readonly reference: {
27
+ readonly default: "";
28
+ };
29
+ };
30
+ };
31
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
32
+ readonly type: "testCase";
33
+ readonly content: "inline";
34
+ readonly propSchema: {
35
+ readonly textAlignment: {
36
+ default: "left";
37
+ values: readonly ["left", "center", "right", "justify"];
38
+ };
39
+ readonly textColor: {
40
+ default: "default";
41
+ };
42
+ readonly backgroundColor: {
43
+ default: "default";
44
+ };
45
+ readonly status: {
46
+ readonly default: Status;
47
+ readonly values: ("draft" | "ready" | "blocked")[];
48
+ };
49
+ readonly reference: {
50
+ readonly default: "";
51
+ };
52
+ };
53
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
54
+ };
55
+ testStep: {
56
+ config: {
57
+ readonly type: "testStep";
58
+ readonly content: "none";
59
+ readonly propSchema: {
60
+ readonly stepTitle: {
61
+ readonly default: "";
62
+ };
63
+ readonly stepData: {
64
+ readonly default: "";
65
+ };
66
+ readonly expectedResult: {
67
+ readonly default: "";
68
+ };
69
+ };
70
+ };
71
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
72
+ readonly type: "testStep";
73
+ readonly content: "none";
74
+ readonly propSchema: {
75
+ readonly stepTitle: {
76
+ readonly default: "";
77
+ };
78
+ readonly stepData: {
79
+ readonly default: "";
80
+ };
81
+ readonly expectedResult: {
82
+ readonly default: "";
83
+ };
84
+ };
85
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
86
+ };
87
+ paragraph: {
88
+ config: {
89
+ type: "paragraph";
90
+ content: "inline";
91
+ propSchema: {
92
+ backgroundColor: {
93
+ default: "default";
94
+ };
95
+ textColor: {
96
+ default: "default";
97
+ };
98
+ textAlignment: {
99
+ default: "left";
100
+ values: readonly ["left", "center", "right", "justify"];
101
+ };
102
+ };
103
+ };
104
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
105
+ type: "paragraph";
106
+ content: "inline";
107
+ propSchema: {
108
+ backgroundColor: {
109
+ default: "default";
110
+ };
111
+ textColor: {
112
+ default: "default";
113
+ };
114
+ textAlignment: {
115
+ default: "left";
116
+ values: readonly ["left", "center", "right", "justify"];
117
+ };
118
+ };
119
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
120
+ };
121
+ heading: {
122
+ config: {
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
+ };
142
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
143
+ type: "heading";
144
+ content: "inline";
145
+ propSchema: {
146
+ level: {
147
+ default: number;
148
+ values: readonly [1, 2, 3];
149
+ };
150
+ backgroundColor: {
151
+ default: "default";
152
+ };
153
+ textColor: {
154
+ default: "default";
155
+ };
156
+ textAlignment: {
157
+ default: "left";
158
+ values: readonly ["left", "center", "right", "justify"];
159
+ };
160
+ };
161
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
162
+ };
163
+ quote: {
164
+ config: {
165
+ type: "quote";
166
+ content: "inline";
167
+ propSchema: {
168
+ backgroundColor: {
169
+ default: "default";
170
+ };
171
+ textColor: {
172
+ default: "default";
173
+ };
174
+ textAlignment: {
175
+ default: "left";
176
+ values: readonly ["left", "center", "right", "justify"];
177
+ };
178
+ };
179
+ };
180
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
181
+ type: "quote";
182
+ content: "inline";
183
+ propSchema: {
184
+ backgroundColor: {
185
+ default: "default";
186
+ };
187
+ textColor: {
188
+ default: "default";
189
+ };
190
+ textAlignment: {
191
+ default: "left";
192
+ values: readonly ["left", "center", "right", "justify"];
193
+ };
194
+ };
195
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
196
+ };
197
+ codeBlock: {
198
+ config: {
199
+ type: "codeBlock";
200
+ content: "inline";
201
+ propSchema: {
202
+ language: {
203
+ default: string;
204
+ };
205
+ };
206
+ };
207
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
208
+ type: "codeBlock";
209
+ content: "inline";
210
+ propSchema: {
211
+ language: {
212
+ default: string;
213
+ };
214
+ };
215
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
216
+ };
217
+ bulletListItem: {
218
+ config: {
219
+ type: "bulletListItem";
220
+ content: "inline";
221
+ propSchema: {
222
+ backgroundColor: {
223
+ default: "default";
224
+ };
225
+ textColor: {
226
+ default: "default";
227
+ };
228
+ textAlignment: {
229
+ default: "left";
230
+ values: readonly ["left", "center", "right", "justify"];
231
+ };
232
+ };
233
+ };
234
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
235
+ type: "bulletListItem";
236
+ content: "inline";
237
+ propSchema: {
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, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
250
+ };
251
+ numberedListItem: {
252
+ config: {
253
+ type: "numberedListItem";
254
+ content: "inline";
255
+ propSchema: {
256
+ start: {
257
+ default: undefined;
258
+ type: "number";
259
+ };
260
+ backgroundColor: {
261
+ default: "default";
262
+ };
263
+ textColor: {
264
+ default: "default";
265
+ };
266
+ textAlignment: {
267
+ default: "left";
268
+ values: readonly ["left", "center", "right", "justify"];
269
+ };
270
+ };
271
+ };
272
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
273
+ type: "numberedListItem";
274
+ content: "inline";
275
+ propSchema: {
276
+ start: {
277
+ default: undefined;
278
+ type: "number";
279
+ };
280
+ backgroundColor: {
281
+ default: "default";
282
+ };
283
+ textColor: {
284
+ default: "default";
285
+ };
286
+ textAlignment: {
287
+ default: "left";
288
+ values: readonly ["left", "center", "right", "justify"];
289
+ };
290
+ };
291
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
292
+ };
293
+ checkListItem: {
294
+ config: {
295
+ type: "checkListItem";
296
+ content: "inline";
297
+ propSchema: {
298
+ checked: {
299
+ default: false;
300
+ };
301
+ backgroundColor: {
302
+ default: "default";
303
+ };
304
+ textColor: {
305
+ default: "default";
306
+ };
307
+ textAlignment: {
308
+ default: "left";
309
+ values: readonly ["left", "center", "right", "justify"];
310
+ };
311
+ };
312
+ };
313
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
314
+ type: "checkListItem";
315
+ content: "inline";
316
+ propSchema: {
317
+ checked: {
318
+ default: false;
319
+ };
320
+ backgroundColor: {
321
+ default: "default";
322
+ };
323
+ textColor: {
324
+ default: "default";
325
+ };
326
+ textAlignment: {
327
+ default: "left";
328
+ values: readonly ["left", "center", "right", "justify"];
329
+ };
330
+ };
331
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
332
+ };
333
+ table: {
334
+ config: {
335
+ type: "table";
336
+ content: "table";
337
+ propSchema: {
338
+ textColor: {
339
+ default: "default";
340
+ };
341
+ };
342
+ };
343
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
344
+ type: "table";
345
+ content: "table";
346
+ propSchema: {
347
+ textColor: {
348
+ default: "default";
349
+ };
350
+ };
351
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
352
+ };
353
+ file: {
354
+ config: {
355
+ type: "file";
356
+ propSchema: {
357
+ backgroundColor: {
358
+ default: "default";
359
+ };
360
+ name: {
361
+ default: "";
362
+ };
363
+ url: {
364
+ default: "";
365
+ };
366
+ caption: {
367
+ default: "";
368
+ };
369
+ };
370
+ content: "none";
371
+ isFileBlock: true;
372
+ };
373
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
374
+ type: "file";
375
+ propSchema: {
376
+ backgroundColor: {
377
+ default: "default";
378
+ };
379
+ name: {
380
+ default: "";
381
+ };
382
+ url: {
383
+ default: "";
384
+ };
385
+ caption: {
386
+ default: "";
387
+ };
388
+ };
389
+ content: "none";
390
+ isFileBlock: true;
391
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
392
+ };
393
+ image: {
394
+ config: {
395
+ type: "image";
396
+ propSchema: {
397
+ textAlignment: {
398
+ default: "left";
399
+ values: readonly ["left", "center", "right", "justify"];
400
+ };
401
+ backgroundColor: {
402
+ default: "default";
403
+ };
404
+ name: {
405
+ default: "";
406
+ };
407
+ url: {
408
+ default: "";
409
+ };
410
+ caption: {
411
+ default: "";
412
+ };
413
+ showPreview: {
414
+ default: true;
415
+ };
416
+ previewWidth: {
417
+ default: undefined;
418
+ type: "number";
419
+ };
420
+ };
421
+ content: "none";
422
+ isFileBlock: true;
423
+ fileBlockAccept: string[];
424
+ };
425
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
426
+ type: "image";
427
+ propSchema: {
428
+ textAlignment: {
429
+ default: "left";
430
+ values: readonly ["left", "center", "right", "justify"];
431
+ };
432
+ backgroundColor: {
433
+ default: "default";
434
+ };
435
+ name: {
436
+ default: "";
437
+ };
438
+ url: {
439
+ default: "";
440
+ };
441
+ caption: {
442
+ default: "";
443
+ };
444
+ showPreview: {
445
+ default: true;
446
+ };
447
+ previewWidth: {
448
+ default: undefined;
449
+ type: "number";
450
+ };
451
+ };
452
+ content: "none";
453
+ isFileBlock: true;
454
+ fileBlockAccept: string[];
455
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
456
+ };
457
+ video: {
458
+ config: {
459
+ type: "video";
460
+ propSchema: {
461
+ textAlignment: {
462
+ default: "left";
463
+ values: readonly ["left", "center", "right", "justify"];
464
+ };
465
+ backgroundColor: {
466
+ default: "default";
467
+ };
468
+ name: {
469
+ default: "";
470
+ };
471
+ url: {
472
+ default: "";
473
+ };
474
+ caption: {
475
+ default: "";
476
+ };
477
+ showPreview: {
478
+ default: true;
479
+ };
480
+ previewWidth: {
481
+ default: undefined;
482
+ type: "number";
483
+ };
484
+ };
485
+ content: "none";
486
+ isFileBlock: true;
487
+ fileBlockAccept: string[];
488
+ };
489
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
490
+ type: "video";
491
+ propSchema: {
492
+ textAlignment: {
493
+ default: "left";
494
+ values: readonly ["left", "center", "right", "justify"];
495
+ };
496
+ backgroundColor: {
497
+ default: "default";
498
+ };
499
+ name: {
500
+ default: "";
501
+ };
502
+ url: {
503
+ default: "";
504
+ };
505
+ caption: {
506
+ default: "";
507
+ };
508
+ showPreview: {
509
+ default: true;
510
+ };
511
+ previewWidth: {
512
+ default: undefined;
513
+ type: "number";
514
+ };
515
+ };
516
+ content: "none";
517
+ isFileBlock: true;
518
+ fileBlockAccept: string[];
519
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
520
+ };
521
+ audio: {
522
+ config: {
523
+ type: "audio";
524
+ propSchema: {
525
+ backgroundColor: {
526
+ default: "default";
527
+ };
528
+ name: {
529
+ default: "";
530
+ };
531
+ url: {
532
+ default: "";
533
+ };
534
+ caption: {
535
+ default: "";
536
+ };
537
+ showPreview: {
538
+ default: true;
539
+ };
540
+ };
541
+ content: "none";
542
+ isFileBlock: true;
543
+ fileBlockAccept: string[];
544
+ };
545
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
546
+ type: "audio";
547
+ propSchema: {
548
+ backgroundColor: {
549
+ default: "default";
550
+ };
551
+ name: {
552
+ default: "";
553
+ };
554
+ url: {
555
+ default: "";
556
+ };
557
+ caption: {
558
+ default: "";
559
+ };
560
+ showPreview: {
561
+ default: true;
562
+ };
563
+ };
564
+ content: "none";
565
+ isFileBlock: true;
566
+ fileBlockAccept: string[];
567
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
568
+ };
569
+ }>, import("@blocknote/core").InlineContentSchemaFromSpecs<{
570
+ text: {
571
+ config: "text";
572
+ implementation: any;
573
+ };
574
+ link: {
575
+ config: "link";
576
+ implementation: any;
577
+ };
578
+ }>, import("@blocknote/core").StyleSchemaFromSpecs<{
579
+ bold: {
580
+ config: {
581
+ type: string;
582
+ propSchema: "boolean";
583
+ };
584
+ implementation: import("@blocknote/core").StyleImplementation;
585
+ };
586
+ italic: {
587
+ config: {
588
+ type: string;
589
+ propSchema: "boolean";
590
+ };
591
+ implementation: import("@blocknote/core").StyleImplementation;
592
+ };
593
+ underline: {
594
+ config: {
595
+ type: string;
596
+ propSchema: "boolean";
597
+ };
598
+ implementation: import("@blocknote/core").StyleImplementation;
599
+ };
600
+ strike: {
601
+ config: {
602
+ type: string;
603
+ propSchema: "boolean";
604
+ };
605
+ implementation: import("@blocknote/core").StyleImplementation;
606
+ };
607
+ code: {
608
+ config: {
609
+ type: string;
610
+ propSchema: "boolean";
611
+ };
612
+ implementation: import("@blocknote/core").StyleImplementation;
613
+ };
614
+ textColor: {
615
+ config: {
616
+ type: string;
617
+ propSchema: "string";
618
+ };
619
+ implementation: import("@blocknote/core").StyleImplementation;
620
+ };
621
+ backgroundColor: {
622
+ config: {
623
+ type: string;
624
+ propSchema: "string";
625
+ };
626
+ implementation: import("@blocknote/core").StyleImplementation;
627
+ };
628
+ }>>;
629
+ export type CustomSchema = typeof customSchema;
630
+ export type CustomBlock = CustomSchema["Block"];
631
+ export type CustomEditor = CustomSchema["BlockNoteEditor"];
632
+ export declare const __markdownTestUtils: {
633
+ markdownToHtml: typeof markdownToHtml;
634
+ htmlToMarkdown: typeof htmlToMarkdown;
635
+ };
636
+ export {};