@ngstarter-ui/components 22.2.2 → 22.2.4

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 (56) hide show
  1. package/ai/component-registry.json +37 -0
  2. package/content-editor/BLOCK_FORMAT.md +861 -0
  3. package/content-editor/document.schema.json +1598 -0
  4. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-rzZKJ2JH.mjs +35 -0
  5. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-rzZKJ2JH.mjs.map +1 -0
  6. package/fesm2022/{ngstarter-ui-components-content-editor-callout-block-Cnga7Z-6.mjs → ngstarter-ui-components-content-editor-callout-block-DTdApN0r.mjs} +2 -3
  7. package/fesm2022/{ngstarter-ui-components-content-editor-callout-block-Cnga7Z-6.mjs.map → ngstarter-ui-components-content-editor-callout-block-DTdApN0r.mjs.map} +1 -1
  8. package/fesm2022/{ngstarter-ui-components-content-editor-code-block.component-DSdVOJtH.mjs → ngstarter-ui-components-content-editor-code-block.component-DpONkTMU.mjs} +2 -2
  9. package/fesm2022/{ngstarter-ui-components-content-editor-code-block.component-DSdVOJtH.mjs.map → ngstarter-ui-components-content-editor-code-block.component-DpONkTMU.mjs.map} +1 -1
  10. package/fesm2022/{ngstarter-ui-components-content-editor-embed-block-DhFxtMQS.mjs → ngstarter-ui-components-content-editor-embed-block-CmhzpaRk.mjs} +2 -2
  11. package/fesm2022/{ngstarter-ui-components-content-editor-embed-block-DhFxtMQS.mjs.map → ngstarter-ui-components-content-editor-embed-block-CmhzpaRk.mjs.map} +1 -1
  12. package/fesm2022/{ngstarter-ui-components-content-editor-gallery-block-cEy-dCMa.mjs → ngstarter-ui-components-content-editor-gallery-block-gtH7yWd5.mjs} +16 -39
  13. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-gtH7yWd5.mjs.map +1 -0
  14. package/fesm2022/{ngstarter-ui-components-content-editor-grid-block-DFLGRFiO.mjs → ngstarter-ui-components-content-editor-grid-block-Pb-xV7Pw.mjs} +3 -4
  15. package/fesm2022/{ngstarter-ui-components-content-editor-grid-block-DFLGRFiO.mjs.map → ngstarter-ui-components-content-editor-grid-block-Pb-xV7Pw.mjs.map} +1 -1
  16. package/fesm2022/{ngstarter-ui-components-content-editor-heading-block.component-BYpctSPe.mjs → ngstarter-ui-components-content-editor-heading-block.component-BKe9Zy_x.mjs} +2 -2
  17. package/fesm2022/{ngstarter-ui-components-content-editor-heading-block.component-BYpctSPe.mjs.map → ngstarter-ui-components-content-editor-heading-block.component-BKe9Zy_x.mjs.map} +1 -1
  18. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-DSpBVTu-.mjs +113 -0
  19. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-DSpBVTu-.mjs.map +1 -0
  20. package/fesm2022/{ngstarter-ui-components-content-editor-list-block.component-6SMBxIl4.mjs → ngstarter-ui-components-content-editor-list-block.component-BPKPE1uY.mjs} +2 -2
  21. package/fesm2022/{ngstarter-ui-components-content-editor-list-block.component-6SMBxIl4.mjs.map → ngstarter-ui-components-content-editor-list-block.component-BPKPE1uY.mjs.map} +1 -1
  22. package/fesm2022/{ngstarter-ui-components-content-editor-nested-blocks-DSY7xfzf.mjs → ngstarter-ui-components-content-editor-nested-blocks-Dh-p3WMp.mjs} +4 -4
  23. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-Dh-p3WMp.mjs.map +1 -0
  24. package/fesm2022/{ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor--rb3-UuO.mjs → ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CR-NrarE.mjs} +2058 -983
  25. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CR-NrarE.mjs.map +1 -0
  26. package/fesm2022/{ngstarter-ui-components-content-editor-paragraph-block.component-JVxf_Cdx.mjs → ngstarter-ui-components-content-editor-paragraph-block.component-D5wS3m6O.mjs} +2 -2
  27. package/fesm2022/{ngstarter-ui-components-content-editor-paragraph-block.component-JVxf_Cdx.mjs.map → ngstarter-ui-components-content-editor-paragraph-block.component-D5wS3m6O.mjs.map} +1 -1
  28. package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-7EO7z7Sr.mjs → ngstarter-ui-components-content-editor-quote-block.component-C3GFAGKF.mjs} +2 -2
  29. package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-7EO7z7Sr.mjs.map → ngstarter-ui-components-content-editor-quote-block.component-C3GFAGKF.mjs.map} +1 -1
  30. package/fesm2022/{ngstarter-ui-components-content-editor-table-block.component-CJS-IBHw.mjs → ngstarter-ui-components-content-editor-table-block.component-DQgs_kyN.mjs} +2 -2
  31. package/fesm2022/{ngstarter-ui-components-content-editor-table-block.component-CJS-IBHw.mjs.map → ngstarter-ui-components-content-editor-table-block.component-DQgs_kyN.mjs.map} +1 -1
  32. package/fesm2022/{ngstarter-ui-components-content-editor-toggle-block-B01lhY_V.mjs → ngstarter-ui-components-content-editor-toggle-block-Cb67ChE8.mjs} +3 -4
  33. package/fesm2022/{ngstarter-ui-components-content-editor-toggle-block-B01lhY_V.mjs.map → ngstarter-ui-components-content-editor-toggle-block-Cb67ChE8.mjs.map} +1 -1
  34. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs +19 -0
  35. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs.map +1 -0
  36. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-CRa0g9Ez.mjs +134 -0
  37. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-CRa0g9Ez.mjs.map +1 -0
  38. package/fesm2022/ngstarter-ui-components-content-editor.mjs +1 -1
  39. package/fesm2022/ngstarter-ui-components-headless-editor.mjs +57 -0
  40. package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
  41. package/package.json +3 -1
  42. package/types/ngstarter-ui-components-content-editor.d.ts +302 -18
  43. package/types/ngstarter-ui-components-headless-editor.d.ts +6 -1
  44. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-B2GUlWO2.mjs +0 -54
  45. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-B2GUlWO2.mjs.map +0 -1
  46. package/fesm2022/ngstarter-ui-components-content-editor-block-base-BHAxKEOT.mjs +0 -47
  47. package/fesm2022/ngstarter-ui-components-content-editor-block-base-BHAxKEOT.mjs.map +0 -1
  48. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-cEy-dCMa.mjs.map +0 -1
  49. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-B3MnANpi.mjs +0 -169
  50. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-B3MnANpi.mjs.map +0 -1
  51. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-DSY7xfzf.mjs.map +0 -1
  52. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor--rb3-UuO.mjs.map +0 -1
  53. package/fesm2022/ngstarter-ui-components-content-editor-upload-block-base-D9ELpJr-.mjs +0 -29
  54. package/fesm2022/ngstarter-ui-components-content-editor-upload-block-base-D9ELpJr-.mjs.map +0 -1
  55. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-DQUPVDwV.mjs +0 -201
  56. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-DQUPVDwV.mjs.map +0 -1
@@ -0,0 +1,1598 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "NgStarter Content Editor document v1",
4
+ "description": "Built-in block format. Block IDs must also be globally unique (enforced by the importer). Grid cell/image IDs are unique within their collection. Schema defaults are descriptive and are not inserted into documents.",
5
+ "type": "object",
6
+ "properties": {
7
+ "version": {
8
+ "const": 1
9
+ },
10
+ "blocks": {
11
+ "type": "array",
12
+ "items": {
13
+ "$ref": "#/$defs/block"
14
+ }
15
+ }
16
+ },
17
+ "required": [
18
+ "version",
19
+ "blocks"
20
+ ],
21
+ "additionalProperties": true,
22
+ "$defs": {
23
+ "block": {
24
+ "oneOf": [
25
+ {
26
+ "type": "object",
27
+ "properties": {
28
+ "id": {
29
+ "type": "string",
30
+ "minLength": 1
31
+ },
32
+ "type": {
33
+ "const": "paragraph"
34
+ },
35
+ "content": {
36
+ "type": "array",
37
+ "items": {
38
+ "$ref": "#/$defs/textRun"
39
+ }
40
+ },
41
+ "attrs": {
42
+ "type": "object",
43
+ "properties": {
44
+ "props": {
45
+ "type": "array",
46
+ "items": {
47
+ "type": "object",
48
+ "properties": {
49
+ "name": {
50
+ "type": "string",
51
+ "minLength": 1
52
+ },
53
+ "value": {
54
+ "type": "string"
55
+ }
56
+ },
57
+ "required": [
58
+ "name",
59
+ "value"
60
+ ],
61
+ "additionalProperties": true
62
+ }
63
+ },
64
+ "settings": {
65
+ "type": "object",
66
+ "properties": {},
67
+ "required": [],
68
+ "additionalProperties": true
69
+ }
70
+ },
71
+ "required": [],
72
+ "additionalProperties": true
73
+ }
74
+ },
75
+ "required": [
76
+ "id",
77
+ "type",
78
+ "content"
79
+ ],
80
+ "additionalProperties": true
81
+ },
82
+ {
83
+ "type": "object",
84
+ "properties": {
85
+ "id": {
86
+ "type": "string",
87
+ "minLength": 1
88
+ },
89
+ "type": {
90
+ "const": "heading"
91
+ },
92
+ "content": {
93
+ "type": "array",
94
+ "items": {
95
+ "$ref": "#/$defs/textRun"
96
+ }
97
+ },
98
+ "attrs": {
99
+ "type": "object",
100
+ "properties": {
101
+ "props": {
102
+ "type": "array",
103
+ "items": {
104
+ "type": "object",
105
+ "properties": {
106
+ "name": {
107
+ "type": "string",
108
+ "minLength": 1
109
+ },
110
+ "value": {
111
+ "type": "string"
112
+ }
113
+ },
114
+ "required": [
115
+ "name",
116
+ "value"
117
+ ],
118
+ "additionalProperties": true
119
+ }
120
+ },
121
+ "settings": {
122
+ "type": "object",
123
+ "properties": {
124
+ "level": {
125
+ "enum": [
126
+ 1,
127
+ 2,
128
+ 3,
129
+ 4,
130
+ 5,
131
+ 6
132
+ ],
133
+ "default": 2
134
+ }
135
+ },
136
+ "required": [],
137
+ "additionalProperties": true
138
+ }
139
+ },
140
+ "required": [],
141
+ "additionalProperties": true
142
+ }
143
+ },
144
+ "required": [
145
+ "id",
146
+ "type",
147
+ "content"
148
+ ],
149
+ "additionalProperties": true
150
+ },
151
+ {
152
+ "type": "object",
153
+ "properties": {
154
+ "id": {
155
+ "type": "string",
156
+ "minLength": 1
157
+ },
158
+ "type": {
159
+ "const": "code"
160
+ },
161
+ "content": {
162
+ "type": "array",
163
+ "items": {
164
+ "$ref": "#/$defs/textRun"
165
+ }
166
+ },
167
+ "attrs": {
168
+ "type": "object",
169
+ "properties": {
170
+ "props": {
171
+ "type": "array",
172
+ "items": {
173
+ "type": "object",
174
+ "properties": {
175
+ "name": {
176
+ "type": "string",
177
+ "minLength": 1
178
+ },
179
+ "value": {
180
+ "type": "string"
181
+ }
182
+ },
183
+ "required": [
184
+ "name",
185
+ "value"
186
+ ],
187
+ "additionalProperties": true
188
+ }
189
+ },
190
+ "settings": {
191
+ "type": "object",
192
+ "properties": {
193
+ "language": {
194
+ "type": "string",
195
+ "default": "none"
196
+ }
197
+ },
198
+ "required": [],
199
+ "additionalProperties": true
200
+ }
201
+ },
202
+ "required": [],
203
+ "additionalProperties": true
204
+ }
205
+ },
206
+ "required": [
207
+ "id",
208
+ "type",
209
+ "content"
210
+ ],
211
+ "additionalProperties": true
212
+ },
213
+ {
214
+ "type": "object",
215
+ "properties": {
216
+ "id": {
217
+ "type": "string",
218
+ "minLength": 1
219
+ },
220
+ "type": {
221
+ "const": "callout"
222
+ },
223
+ "content": {
224
+ "type": "array",
225
+ "items": {
226
+ "$ref": "#/$defs/textRun"
227
+ }
228
+ },
229
+ "attrs": {
230
+ "type": "object",
231
+ "properties": {
232
+ "props": {
233
+ "type": "array",
234
+ "items": {
235
+ "type": "object",
236
+ "properties": {
237
+ "name": {
238
+ "type": "string",
239
+ "minLength": 1
240
+ },
241
+ "value": {
242
+ "type": "string"
243
+ }
244
+ },
245
+ "required": [
246
+ "name",
247
+ "value"
248
+ ],
249
+ "additionalProperties": true
250
+ }
251
+ },
252
+ "settings": {
253
+ "type": "object",
254
+ "properties": {
255
+ "variant": {
256
+ "enum": [
257
+ "note",
258
+ "tip",
259
+ "warning",
260
+ "danger"
261
+ ],
262
+ "default": "note"
263
+ }
264
+ },
265
+ "required": [],
266
+ "additionalProperties": true
267
+ }
268
+ },
269
+ "required": [],
270
+ "additionalProperties": true
271
+ }
272
+ },
273
+ "required": [
274
+ "id",
275
+ "type",
276
+ "content"
277
+ ],
278
+ "additionalProperties": true
279
+ },
280
+ {
281
+ "type": "object",
282
+ "properties": {
283
+ "id": {
284
+ "type": "string",
285
+ "minLength": 1
286
+ },
287
+ "type": {
288
+ "const": "divider"
289
+ },
290
+ "content": {
291
+ "type": "null"
292
+ },
293
+ "attrs": {
294
+ "type": "object",
295
+ "properties": {
296
+ "props": {
297
+ "type": "array",
298
+ "items": {
299
+ "type": "object",
300
+ "properties": {
301
+ "name": {
302
+ "type": "string",
303
+ "minLength": 1
304
+ },
305
+ "value": {
306
+ "type": "string"
307
+ }
308
+ },
309
+ "required": [
310
+ "name",
311
+ "value"
312
+ ],
313
+ "additionalProperties": true
314
+ }
315
+ },
316
+ "settings": {
317
+ "type": "object",
318
+ "properties": {},
319
+ "required": [],
320
+ "additionalProperties": true
321
+ }
322
+ },
323
+ "required": [],
324
+ "additionalProperties": true
325
+ }
326
+ },
327
+ "required": [
328
+ "id",
329
+ "type",
330
+ "content"
331
+ ],
332
+ "additionalProperties": true
333
+ },
334
+ {
335
+ "type": "object",
336
+ "properties": {
337
+ "id": {
338
+ "type": "string",
339
+ "minLength": 1
340
+ },
341
+ "type": {
342
+ "const": "bulletList"
343
+ },
344
+ "content": {
345
+ "type": "array",
346
+ "items": {
347
+ "$ref": "#/$defs/listItem"
348
+ }
349
+ },
350
+ "attrs": {
351
+ "type": "object",
352
+ "properties": {
353
+ "props": {
354
+ "type": "array",
355
+ "items": {
356
+ "type": "object",
357
+ "properties": {
358
+ "name": {
359
+ "type": "string",
360
+ "minLength": 1
361
+ },
362
+ "value": {
363
+ "type": "string"
364
+ }
365
+ },
366
+ "required": [
367
+ "name",
368
+ "value"
369
+ ],
370
+ "additionalProperties": true
371
+ }
372
+ },
373
+ "settings": {
374
+ "type": "object",
375
+ "properties": {
376
+ "listStyle": {
377
+ "enum": [
378
+ "bullet",
379
+ "ordered"
380
+ ],
381
+ "default": "bullet"
382
+ }
383
+ },
384
+ "required": [],
385
+ "additionalProperties": true
386
+ }
387
+ },
388
+ "required": [],
389
+ "additionalProperties": true
390
+ }
391
+ },
392
+ "required": [
393
+ "id",
394
+ "type",
395
+ "content"
396
+ ],
397
+ "additionalProperties": true
398
+ },
399
+ {
400
+ "type": "object",
401
+ "properties": {
402
+ "id": {
403
+ "type": "string",
404
+ "minLength": 1
405
+ },
406
+ "type": {
407
+ "const": "orderedList"
408
+ },
409
+ "content": {
410
+ "type": "array",
411
+ "items": {
412
+ "$ref": "#/$defs/listItem"
413
+ }
414
+ },
415
+ "attrs": {
416
+ "type": "object",
417
+ "properties": {
418
+ "props": {
419
+ "type": "array",
420
+ "items": {
421
+ "type": "object",
422
+ "properties": {
423
+ "name": {
424
+ "type": "string",
425
+ "minLength": 1
426
+ },
427
+ "value": {
428
+ "type": "string"
429
+ }
430
+ },
431
+ "required": [
432
+ "name",
433
+ "value"
434
+ ],
435
+ "additionalProperties": true
436
+ }
437
+ },
438
+ "settings": {
439
+ "type": "object",
440
+ "properties": {
441
+ "listStyle": {
442
+ "enum": [
443
+ "bullet",
444
+ "ordered"
445
+ ],
446
+ "default": "ordered"
447
+ }
448
+ },
449
+ "required": [],
450
+ "additionalProperties": true
451
+ }
452
+ },
453
+ "required": [],
454
+ "additionalProperties": true
455
+ }
456
+ },
457
+ "required": [
458
+ "id",
459
+ "type",
460
+ "content"
461
+ ],
462
+ "additionalProperties": true
463
+ },
464
+ {
465
+ "type": "object",
466
+ "properties": {
467
+ "id": {
468
+ "type": "string",
469
+ "minLength": 1
470
+ },
471
+ "type": {
472
+ "const": "quote"
473
+ },
474
+ "content": {
475
+ "type": "object",
476
+ "properties": {
477
+ "cite": {
478
+ "$ref": "#/$defs/quoteText"
479
+ },
480
+ "caption": {
481
+ "$ref": "#/$defs/quoteText"
482
+ }
483
+ },
484
+ "required": [
485
+ "cite",
486
+ "caption"
487
+ ],
488
+ "additionalProperties": true
489
+ },
490
+ "attrs": {
491
+ "type": "object",
492
+ "properties": {
493
+ "props": {
494
+ "type": "array",
495
+ "items": {
496
+ "type": "object",
497
+ "properties": {
498
+ "name": {
499
+ "type": "string",
500
+ "minLength": 1
501
+ },
502
+ "value": {
503
+ "type": "string"
504
+ }
505
+ },
506
+ "required": [
507
+ "name",
508
+ "value"
509
+ ],
510
+ "additionalProperties": true
511
+ }
512
+ },
513
+ "settings": {
514
+ "type": "object",
515
+ "properties": {},
516
+ "required": [],
517
+ "additionalProperties": true
518
+ }
519
+ },
520
+ "required": [],
521
+ "additionalProperties": true
522
+ }
523
+ },
524
+ "required": [
525
+ "id",
526
+ "type",
527
+ "content"
528
+ ],
529
+ "additionalProperties": true
530
+ },
531
+ {
532
+ "type": "object",
533
+ "properties": {
534
+ "id": {
535
+ "type": "string",
536
+ "minLength": 1
537
+ },
538
+ "type": {
539
+ "const": "table"
540
+ },
541
+ "content": {
542
+ "type": "null"
543
+ },
544
+ "attrs": {
545
+ "type": "object",
546
+ "properties": {
547
+ "props": {
548
+ "type": "array",
549
+ "items": {
550
+ "type": "object",
551
+ "properties": {
552
+ "name": {
553
+ "type": "string",
554
+ "minLength": 1
555
+ },
556
+ "value": {
557
+ "type": "string"
558
+ }
559
+ },
560
+ "required": [
561
+ "name",
562
+ "value"
563
+ ],
564
+ "additionalProperties": true
565
+ }
566
+ },
567
+ "settings": {
568
+ "type": "object",
569
+ "properties": {},
570
+ "required": [],
571
+ "additionalProperties": true
572
+ },
573
+ "rows": {
574
+ "type": "array",
575
+ "items": {
576
+ "type": "array",
577
+ "items": {
578
+ "type": "array",
579
+ "items": {
580
+ "$ref": "#/$defs/textRun"
581
+ }
582
+ },
583
+ "maxItems": 50
584
+ },
585
+ "maxItems": 500
586
+ },
587
+ "header": {
588
+ "type": "boolean"
589
+ },
590
+ "cellMetadata": {
591
+ "type": "array",
592
+ "items": {
593
+ "type": "array",
594
+ "items": {
595
+ "type": "object",
596
+ "properties": {
597
+ "props": {
598
+ "type": "array",
599
+ "items": {
600
+ "type": "object",
601
+ "properties": {
602
+ "name": {
603
+ "type": "string",
604
+ "minLength": 1
605
+ },
606
+ "value": {
607
+ "type": "string"
608
+ }
609
+ },
610
+ "required": [
611
+ "name",
612
+ "value"
613
+ ],
614
+ "additionalProperties": true
615
+ }
616
+ },
617
+ "options": {
618
+ "type": "object",
619
+ "properties": {
620
+ "colspan": {
621
+ "type": "integer",
622
+ "minimum": 1
623
+ },
624
+ "rowspan": {
625
+ "type": "integer",
626
+ "minimum": 1
627
+ },
628
+ "width": {
629
+ "anyOf": [
630
+ {
631
+ "type": "number",
632
+ "exclusiveMinimum": 0
633
+ },
634
+ {
635
+ "const": "auto"
636
+ },
637
+ {
638
+ "type": "null"
639
+ }
640
+ ]
641
+ }
642
+ },
643
+ "required": [],
644
+ "additionalProperties": true
645
+ },
646
+ "styles": {
647
+ "type": "object",
648
+ "properties": {},
649
+ "required": [],
650
+ "additionalProperties": true
651
+ }
652
+ },
653
+ "required": [],
654
+ "additionalProperties": true
655
+ }
656
+ }
657
+ }
658
+ },
659
+ "required": [
660
+ "rows"
661
+ ],
662
+ "additionalProperties": true
663
+ }
664
+ },
665
+ "required": [
666
+ "id",
667
+ "type",
668
+ "content",
669
+ "attrs"
670
+ ],
671
+ "additionalProperties": true
672
+ },
673
+ {
674
+ "type": "object",
675
+ "properties": {
676
+ "id": {
677
+ "type": "string",
678
+ "minLength": 1
679
+ },
680
+ "type": {
681
+ "const": "image"
682
+ },
683
+ "content": {
684
+ "type": "object",
685
+ "properties": {
686
+ "src": {
687
+ "type": "string"
688
+ },
689
+ "alt": {
690
+ "type": "string"
691
+ }
692
+ },
693
+ "required": [
694
+ "src",
695
+ "alt"
696
+ ],
697
+ "additionalProperties": true
698
+ },
699
+ "attrs": {
700
+ "type": "object",
701
+ "properties": {
702
+ "props": {
703
+ "type": "array",
704
+ "items": {
705
+ "type": "object",
706
+ "properties": {
707
+ "name": {
708
+ "type": "string",
709
+ "minLength": 1
710
+ },
711
+ "value": {
712
+ "type": "string"
713
+ }
714
+ },
715
+ "required": [
716
+ "name",
717
+ "value"
718
+ ],
719
+ "additionalProperties": true
720
+ }
721
+ },
722
+ "settings": {
723
+ "type": "object",
724
+ "properties": {
725
+ "width": {
726
+ "anyOf": [
727
+ {
728
+ "type": "number",
729
+ "exclusiveMinimum": 0
730
+ },
731
+ {
732
+ "const": "auto"
733
+ },
734
+ {
735
+ "type": "null"
736
+ }
737
+ ]
738
+ },
739
+ "height": {
740
+ "anyOf": [
741
+ {
742
+ "type": "number",
743
+ "exclusiveMinimum": 0
744
+ },
745
+ {
746
+ "const": "auto"
747
+ },
748
+ {
749
+ "type": "null"
750
+ }
751
+ ]
752
+ },
753
+ "actualWidth": {
754
+ "anyOf": [
755
+ {
756
+ "type": "number",
757
+ "exclusiveMinimum": 0
758
+ },
759
+ {
760
+ "const": "auto"
761
+ },
762
+ {
763
+ "type": "null"
764
+ }
765
+ ]
766
+ },
767
+ "actualHeight": {
768
+ "anyOf": [
769
+ {
770
+ "type": "number",
771
+ "exclusiveMinimum": 0
772
+ },
773
+ {
774
+ "const": "auto"
775
+ },
776
+ {
777
+ "type": "null"
778
+ }
779
+ ]
780
+ }
781
+ },
782
+ "required": [],
783
+ "additionalProperties": true
784
+ }
785
+ },
786
+ "required": [],
787
+ "additionalProperties": true
788
+ }
789
+ },
790
+ "required": [
791
+ "id",
792
+ "type",
793
+ "content"
794
+ ],
795
+ "additionalProperties": true
796
+ },
797
+ {
798
+ "type": "object",
799
+ "properties": {
800
+ "id": {
801
+ "type": "string",
802
+ "minLength": 1
803
+ },
804
+ "type": {
805
+ "const": "video"
806
+ },
807
+ "content": {
808
+ "type": "object",
809
+ "properties": {
810
+ "src": {
811
+ "type": "string"
812
+ },
813
+ "caption": {
814
+ "type": "string"
815
+ },
816
+ "orientation": {
817
+ "enum": [
818
+ "portrait",
819
+ "landscape"
820
+ ]
821
+ }
822
+ },
823
+ "required": [
824
+ "src",
825
+ "caption"
826
+ ],
827
+ "additionalProperties": true
828
+ },
829
+ "attrs": {
830
+ "type": "object",
831
+ "properties": {
832
+ "props": {
833
+ "type": "array",
834
+ "items": {
835
+ "type": "object",
836
+ "properties": {
837
+ "name": {
838
+ "type": "string",
839
+ "minLength": 1
840
+ },
841
+ "value": {
842
+ "type": "string"
843
+ }
844
+ },
845
+ "required": [
846
+ "name",
847
+ "value"
848
+ ],
849
+ "additionalProperties": true
850
+ }
851
+ },
852
+ "settings": {
853
+ "type": "object",
854
+ "properties": {
855
+ "width": {
856
+ "anyOf": [
857
+ {
858
+ "type": "number",
859
+ "exclusiveMinimum": 0
860
+ },
861
+ {
862
+ "const": "auto"
863
+ },
864
+ {
865
+ "type": "null"
866
+ }
867
+ ]
868
+ },
869
+ "height": {
870
+ "anyOf": [
871
+ {
872
+ "type": "number",
873
+ "exclusiveMinimum": 0
874
+ },
875
+ {
876
+ "const": "auto"
877
+ },
878
+ {
879
+ "type": "null"
880
+ }
881
+ ]
882
+ },
883
+ "actualWidth": {
884
+ "anyOf": [
885
+ {
886
+ "type": "number",
887
+ "exclusiveMinimum": 0
888
+ },
889
+ {
890
+ "const": "auto"
891
+ },
892
+ {
893
+ "type": "null"
894
+ }
895
+ ]
896
+ },
897
+ "actualHeight": {
898
+ "anyOf": [
899
+ {
900
+ "type": "number",
901
+ "exclusiveMinimum": 0
902
+ },
903
+ {
904
+ "const": "auto"
905
+ },
906
+ {
907
+ "type": "null"
908
+ }
909
+ ]
910
+ }
911
+ },
912
+ "required": [],
913
+ "additionalProperties": true
914
+ }
915
+ },
916
+ "required": [],
917
+ "additionalProperties": true
918
+ }
919
+ },
920
+ "required": [
921
+ "id",
922
+ "type",
923
+ "content"
924
+ ],
925
+ "additionalProperties": true
926
+ },
927
+ {
928
+ "type": "object",
929
+ "properties": {
930
+ "id": {
931
+ "type": "string",
932
+ "minLength": 1
933
+ },
934
+ "type": {
935
+ "const": "embed"
936
+ },
937
+ "content": {
938
+ "type": "object",
939
+ "properties": {
940
+ "url": {
941
+ "type": "string"
942
+ },
943
+ "type": {
944
+ "type": "string"
945
+ }
946
+ },
947
+ "required": [
948
+ "url",
949
+ "type"
950
+ ],
951
+ "additionalProperties": true
952
+ },
953
+ "attrs": {
954
+ "type": "object",
955
+ "properties": {
956
+ "props": {
957
+ "type": "array",
958
+ "items": {
959
+ "type": "object",
960
+ "properties": {
961
+ "name": {
962
+ "type": "string",
963
+ "minLength": 1
964
+ },
965
+ "value": {
966
+ "type": "string"
967
+ }
968
+ },
969
+ "required": [
970
+ "name",
971
+ "value"
972
+ ],
973
+ "additionalProperties": true
974
+ }
975
+ },
976
+ "settings": {
977
+ "type": "object",
978
+ "properties": {
979
+ "width": {
980
+ "anyOf": [
981
+ {
982
+ "type": "number",
983
+ "exclusiveMinimum": 0
984
+ },
985
+ {
986
+ "const": "auto"
987
+ },
988
+ {
989
+ "type": "null"
990
+ }
991
+ ]
992
+ },
993
+ "height": {
994
+ "anyOf": [
995
+ {
996
+ "type": "number",
997
+ "exclusiveMinimum": 0
998
+ },
999
+ {
1000
+ "const": "auto"
1001
+ },
1002
+ {
1003
+ "type": "null"
1004
+ }
1005
+ ]
1006
+ },
1007
+ "actualWidth": {
1008
+ "anyOf": [
1009
+ {
1010
+ "type": "number",
1011
+ "exclusiveMinimum": 0
1012
+ },
1013
+ {
1014
+ "const": "auto"
1015
+ },
1016
+ {
1017
+ "type": "null"
1018
+ }
1019
+ ]
1020
+ },
1021
+ "actualHeight": {
1022
+ "anyOf": [
1023
+ {
1024
+ "type": "number",
1025
+ "exclusiveMinimum": 0
1026
+ },
1027
+ {
1028
+ "const": "auto"
1029
+ },
1030
+ {
1031
+ "type": "null"
1032
+ }
1033
+ ]
1034
+ }
1035
+ },
1036
+ "required": [],
1037
+ "additionalProperties": true
1038
+ }
1039
+ },
1040
+ "required": [],
1041
+ "additionalProperties": true
1042
+ }
1043
+ },
1044
+ "required": [
1045
+ "id",
1046
+ "type",
1047
+ "content"
1048
+ ],
1049
+ "additionalProperties": true
1050
+ },
1051
+ {
1052
+ "type": "object",
1053
+ "properties": {
1054
+ "id": {
1055
+ "type": "string",
1056
+ "minLength": 1
1057
+ },
1058
+ "type": {
1059
+ "const": "attachment"
1060
+ },
1061
+ "content": {
1062
+ "type": "object",
1063
+ "properties": {
1064
+ "url": {
1065
+ "type": "string"
1066
+ },
1067
+ "name": {
1068
+ "type": "string"
1069
+ },
1070
+ "size": {
1071
+ "type": "integer",
1072
+ "minimum": 0
1073
+ },
1074
+ "mimeType": {
1075
+ "type": "string"
1076
+ }
1077
+ },
1078
+ "required": [
1079
+ "url",
1080
+ "name",
1081
+ "size",
1082
+ "mimeType"
1083
+ ],
1084
+ "additionalProperties": true
1085
+ },
1086
+ "attrs": {
1087
+ "type": "object",
1088
+ "properties": {
1089
+ "props": {
1090
+ "type": "array",
1091
+ "items": {
1092
+ "type": "object",
1093
+ "properties": {
1094
+ "name": {
1095
+ "type": "string",
1096
+ "minLength": 1
1097
+ },
1098
+ "value": {
1099
+ "type": "string"
1100
+ }
1101
+ },
1102
+ "required": [
1103
+ "name",
1104
+ "value"
1105
+ ],
1106
+ "additionalProperties": true
1107
+ }
1108
+ },
1109
+ "settings": {
1110
+ "type": "object",
1111
+ "properties": {},
1112
+ "required": [],
1113
+ "additionalProperties": true
1114
+ }
1115
+ },
1116
+ "required": [],
1117
+ "additionalProperties": true
1118
+ }
1119
+ },
1120
+ "required": [
1121
+ "id",
1122
+ "type",
1123
+ "content"
1124
+ ],
1125
+ "additionalProperties": true
1126
+ },
1127
+ {
1128
+ "type": "object",
1129
+ "properties": {
1130
+ "id": {
1131
+ "type": "string",
1132
+ "minLength": 1
1133
+ },
1134
+ "type": {
1135
+ "const": "gallery"
1136
+ },
1137
+ "content": {
1138
+ "type": "object",
1139
+ "properties": {
1140
+ "images": {
1141
+ "type": "array",
1142
+ "items": {
1143
+ "type": "object",
1144
+ "properties": {
1145
+ "id": {
1146
+ "type": "string",
1147
+ "minLength": 1
1148
+ },
1149
+ "src": {
1150
+ "type": "string"
1151
+ },
1152
+ "alt": {
1153
+ "type": "string"
1154
+ },
1155
+ "caption": {
1156
+ "type": "array",
1157
+ "items": {
1158
+ "$ref": "#/$defs/textRun"
1159
+ }
1160
+ }
1161
+ },
1162
+ "required": [
1163
+ "id",
1164
+ "src",
1165
+ "alt",
1166
+ "caption"
1167
+ ],
1168
+ "additionalProperties": true
1169
+ }
1170
+ }
1171
+ },
1172
+ "required": [
1173
+ "images"
1174
+ ],
1175
+ "additionalProperties": true
1176
+ },
1177
+ "attrs": {
1178
+ "type": "object",
1179
+ "properties": {
1180
+ "props": {
1181
+ "type": "array",
1182
+ "items": {
1183
+ "type": "object",
1184
+ "properties": {
1185
+ "name": {
1186
+ "type": "string",
1187
+ "minLength": 1
1188
+ },
1189
+ "value": {
1190
+ "type": "string"
1191
+ }
1192
+ },
1193
+ "required": [
1194
+ "name",
1195
+ "value"
1196
+ ],
1197
+ "additionalProperties": true
1198
+ }
1199
+ },
1200
+ "settings": {
1201
+ "type": "object",
1202
+ "properties": {},
1203
+ "required": [],
1204
+ "additionalProperties": true
1205
+ }
1206
+ },
1207
+ "required": [],
1208
+ "additionalProperties": true
1209
+ }
1210
+ },
1211
+ "required": [
1212
+ "id",
1213
+ "type",
1214
+ "content"
1215
+ ],
1216
+ "additionalProperties": true
1217
+ },
1218
+ {
1219
+ "type": "object",
1220
+ "properties": {
1221
+ "id": {
1222
+ "type": "string",
1223
+ "minLength": 1
1224
+ },
1225
+ "type": {
1226
+ "const": "toggle"
1227
+ },
1228
+ "content": {
1229
+ "type": "object",
1230
+ "properties": {
1231
+ "title": {
1232
+ "type": "array",
1233
+ "items": {
1234
+ "$ref": "#/$defs/textRun"
1235
+ }
1236
+ },
1237
+ "blocks": {
1238
+ "type": "array",
1239
+ "items": {
1240
+ "$ref": "#/$defs/block"
1241
+ }
1242
+ }
1243
+ },
1244
+ "required": [
1245
+ "title",
1246
+ "blocks"
1247
+ ],
1248
+ "additionalProperties": true
1249
+ },
1250
+ "attrs": {
1251
+ "type": "object",
1252
+ "properties": {
1253
+ "props": {
1254
+ "type": "array",
1255
+ "items": {
1256
+ "type": "object",
1257
+ "properties": {
1258
+ "name": {
1259
+ "type": "string",
1260
+ "minLength": 1
1261
+ },
1262
+ "value": {
1263
+ "type": "string"
1264
+ }
1265
+ },
1266
+ "required": [
1267
+ "name",
1268
+ "value"
1269
+ ],
1270
+ "additionalProperties": true
1271
+ }
1272
+ },
1273
+ "settings": {
1274
+ "type": "object",
1275
+ "properties": {
1276
+ "expanded": {
1277
+ "type": "boolean",
1278
+ "default": false
1279
+ }
1280
+ },
1281
+ "required": [],
1282
+ "additionalProperties": true
1283
+ }
1284
+ },
1285
+ "required": [],
1286
+ "additionalProperties": true
1287
+ }
1288
+ },
1289
+ "required": [
1290
+ "id",
1291
+ "type",
1292
+ "content"
1293
+ ],
1294
+ "additionalProperties": true
1295
+ },
1296
+ {
1297
+ "type": "object",
1298
+ "properties": {
1299
+ "id": {
1300
+ "type": "string",
1301
+ "minLength": 1
1302
+ },
1303
+ "type": {
1304
+ "const": "grid"
1305
+ },
1306
+ "content": {
1307
+ "type": "object",
1308
+ "properties": {
1309
+ "cells": {
1310
+ "type": "array",
1311
+ "items": {
1312
+ "type": "object",
1313
+ "properties": {
1314
+ "id": {
1315
+ "type": "string",
1316
+ "minLength": 1
1317
+ },
1318
+ "blocks": {
1319
+ "type": "array",
1320
+ "items": {
1321
+ "$ref": "#/$defs/block"
1322
+ }
1323
+ }
1324
+ },
1325
+ "required": [
1326
+ "id",
1327
+ "blocks"
1328
+ ],
1329
+ "additionalProperties": true
1330
+ }
1331
+ }
1332
+ },
1333
+ "required": [
1334
+ "cells"
1335
+ ],
1336
+ "additionalProperties": true
1337
+ },
1338
+ "attrs": {
1339
+ "type": "object",
1340
+ "properties": {
1341
+ "props": {
1342
+ "type": "array",
1343
+ "items": {
1344
+ "type": "object",
1345
+ "properties": {
1346
+ "name": {
1347
+ "type": "string",
1348
+ "minLength": 1
1349
+ },
1350
+ "value": {
1351
+ "type": "string"
1352
+ }
1353
+ },
1354
+ "required": [
1355
+ "name",
1356
+ "value"
1357
+ ],
1358
+ "additionalProperties": true
1359
+ }
1360
+ },
1361
+ "settings": {
1362
+ "type": "object",
1363
+ "properties": {
1364
+ "columns": {
1365
+ "enum": [
1366
+ 2,
1367
+ 3,
1368
+ 4
1369
+ ],
1370
+ "default": 2
1371
+ },
1372
+ "gap": {
1373
+ "enum": [
1374
+ "small",
1375
+ "medium",
1376
+ "large"
1377
+ ],
1378
+ "default": "medium"
1379
+ },
1380
+ "stackOnMobile": {
1381
+ "type": "boolean",
1382
+ "default": true
1383
+ }
1384
+ },
1385
+ "required": [],
1386
+ "additionalProperties": true
1387
+ }
1388
+ },
1389
+ "required": [],
1390
+ "additionalProperties": true
1391
+ }
1392
+ },
1393
+ "required": [
1394
+ "id",
1395
+ "type",
1396
+ "content"
1397
+ ],
1398
+ "additionalProperties": true
1399
+ }
1400
+ ]
1401
+ },
1402
+ "textRun": {
1403
+ "type": "object",
1404
+ "properties": {
1405
+ "type": {
1406
+ "const": "text"
1407
+ },
1408
+ "text": {
1409
+ "type": "string"
1410
+ },
1411
+ "marks": {
1412
+ "type": "array",
1413
+ "items": {
1414
+ "$ref": "#/$defs/mark"
1415
+ }
1416
+ }
1417
+ },
1418
+ "required": [
1419
+ "type",
1420
+ "text",
1421
+ "marks"
1422
+ ],
1423
+ "additionalProperties": true
1424
+ },
1425
+ "mark": {
1426
+ "type": "object",
1427
+ "properties": {
1428
+ "type": {
1429
+ "type": "string",
1430
+ "minLength": 1
1431
+ },
1432
+ "attrs": {
1433
+ "type": "object",
1434
+ "additionalProperties": {
1435
+ "type": [
1436
+ "string",
1437
+ "number",
1438
+ "boolean",
1439
+ "null"
1440
+ ]
1441
+ }
1442
+ }
1443
+ },
1444
+ "required": [
1445
+ "type"
1446
+ ],
1447
+ "additionalProperties": true,
1448
+ "allOf": [
1449
+ {
1450
+ "if": {
1451
+ "properties": {
1452
+ "type": {
1453
+ "const": "link"
1454
+ }
1455
+ },
1456
+ "required": [
1457
+ "type"
1458
+ ]
1459
+ },
1460
+ "then": {
1461
+ "required": [
1462
+ "attrs"
1463
+ ],
1464
+ "properties": {
1465
+ "attrs": {
1466
+ "required": [
1467
+ "href"
1468
+ ],
1469
+ "properties": {
1470
+ "href": {
1471
+ "type": "string",
1472
+ "minLength": 1
1473
+ },
1474
+ "target": {
1475
+ "enum": [
1476
+ "_blank",
1477
+ "_self"
1478
+ ]
1479
+ }
1480
+ }
1481
+ }
1482
+ }
1483
+ }
1484
+ },
1485
+ {
1486
+ "if": {
1487
+ "properties": {
1488
+ "type": {
1489
+ "enum": [
1490
+ "textColor",
1491
+ "backgroundColor"
1492
+ ]
1493
+ }
1494
+ },
1495
+ "required": [
1496
+ "type"
1497
+ ]
1498
+ },
1499
+ "then": {
1500
+ "required": [
1501
+ "attrs"
1502
+ ],
1503
+ "properties": {
1504
+ "attrs": {
1505
+ "required": [
1506
+ "color"
1507
+ ],
1508
+ "properties": {
1509
+ "color": {
1510
+ "type": "string",
1511
+ "minLength": 1
1512
+ }
1513
+ }
1514
+ }
1515
+ }
1516
+ }
1517
+ }
1518
+ ]
1519
+ },
1520
+ "listItem": {
1521
+ "type": "object",
1522
+ "properties": {
1523
+ "content": {
1524
+ "type": "array",
1525
+ "items": {
1526
+ "$ref": "#/$defs/textRun"
1527
+ }
1528
+ },
1529
+ "props": {
1530
+ "type": "array",
1531
+ "items": {
1532
+ "type": "object",
1533
+ "properties": {
1534
+ "name": {
1535
+ "type": "string",
1536
+ "minLength": 1
1537
+ },
1538
+ "value": {
1539
+ "type": "string"
1540
+ }
1541
+ },
1542
+ "required": [
1543
+ "name",
1544
+ "value"
1545
+ ],
1546
+ "additionalProperties": true
1547
+ }
1548
+ },
1549
+ "children": {
1550
+ "type": "array",
1551
+ "items": {
1552
+ "$ref": "#/$defs/listItem"
1553
+ }
1554
+ }
1555
+ },
1556
+ "required": [
1557
+ "content",
1558
+ "children"
1559
+ ],
1560
+ "additionalProperties": true
1561
+ },
1562
+ "quoteText": {
1563
+ "type": "object",
1564
+ "properties": {
1565
+ "content": {
1566
+ "type": "array",
1567
+ "items": {
1568
+ "$ref": "#/$defs/textRun"
1569
+ }
1570
+ },
1571
+ "props": {
1572
+ "type": "array",
1573
+ "items": {
1574
+ "type": "object",
1575
+ "properties": {
1576
+ "name": {
1577
+ "type": "string",
1578
+ "minLength": 1
1579
+ },
1580
+ "value": {
1581
+ "type": "string"
1582
+ }
1583
+ },
1584
+ "required": [
1585
+ "name",
1586
+ "value"
1587
+ ],
1588
+ "additionalProperties": true
1589
+ }
1590
+ }
1591
+ },
1592
+ "required": [
1593
+ "content"
1594
+ ],
1595
+ "additionalProperties": true
1596
+ }
1597
+ }
1598
+ }