@squiz/dx-page-contents-lib 1.78.1 → 1.80.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/lib/formatted-text.d.ts +20 -50
  2. package/lib/formatted-text.js +5 -46
  3. package/lib/formatted-text.js.map +1 -1
  4. package/lib/formatted-text.spec.js +0 -10
  5. package/lib/formatted-text.spec.js.map +1 -1
  6. package/lib/layout-content.d.ts +302 -510
  7. package/lib/layout-content.js +40 -24
  8. package/lib/layout-content.js.map +1 -1
  9. package/lib/layout-content.spec.js +67 -10
  10. package/lib/layout-content.spec.js.map +1 -1
  11. package/lib/layouts/custom-layout.d.ts +6 -1064
  12. package/lib/layouts/index.d.ts +25 -4665
  13. package/lib/layouts/raw.layout.d.ts +5 -933
  14. package/lib/layouts/single-column.layout.d.ts +5 -933
  15. package/lib/layouts/two-column.layout.d.ts +10 -1866
  16. package/lib/mocks/PageContentsHelpers.d.ts +58 -6333
  17. package/lib/mocks/PageContentsHelpers.js +40 -76
  18. package/lib/mocks/PageContentsHelpers.js.map +1 -1
  19. package/lib/mocks/PageContentsMocks.d.ts +7 -6
  20. package/lib/mocks/PageContentsMocks.js +88 -36
  21. package/lib/mocks/PageContentsMocks.js.map +1 -1
  22. package/lib/page-contents-lib.d.ts +24 -242
  23. package/lib/page-contents-lib.js +146 -64
  24. package/lib/page-contents-lib.js.map +1 -1
  25. package/lib/page-contents-lib.spec.js +1382 -798
  26. package/lib/page-contents-lib.spec.js.map +1 -1
  27. package/lib/resolvers/create-variant-resolver.js +1 -1
  28. package/lib/resolvers/create-variant-resolver.js.map +1 -1
  29. package/lib/resolvers/create-variant-resolver.spec.js +50 -20
  30. package/lib/resolvers/create-variant-resolver.spec.js.map +1 -1
  31. package/lib/resolvers/default-layout-resolver.d.ts +2 -2
  32. package/lib/resolvers/default-layout-resolver.js +10 -4
  33. package/lib/resolvers/default-layout-resolver.js.map +1 -1
  34. package/lib/resolvers/default-layout-resolver.spec.js.map +1 -1
  35. package/lib/resolvers/default-variation-resolver.d.ts +2 -2
  36. package/lib/resolvers/default-variation-resolver.js +15 -5
  37. package/lib/resolvers/default-variation-resolver.js.map +1 -1
  38. package/lib/resolvers/default-variation-resolver.spec.js +22 -5
  39. package/lib/resolvers/default-variation-resolver.spec.js.map +1 -1
  40. package/package.json +1 -1
@@ -139,813 +139,15 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
139
139
  } | undefined;
140
140
  }>;
141
141
  content: z.ZodObject<{
142
- main: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodType<{
143
- value: string;
144
- type: "text";
145
- nodeId: string;
146
- } | {
147
- type: "matrix-image";
148
- nodeId: string;
149
- matrixDomain: string;
150
- matrixAssetId: string;
151
- attributes?: (Record<string, string> & {
152
- src?: undefined;
153
- }) | undefined;
154
- formattingOptions?: {
155
- alignment: "left" | "center" | "right" | "justify";
156
- } | undefined;
157
- matrixIdentifier?: string | undefined;
158
- } | {
159
- type: "dam-image";
160
- nodeId: string;
161
- damSystemType: string;
162
- damSystemIdentifier: string;
163
- damObjectId: string;
164
- attributes?: (Record<string, string> & {
165
- src?: undefined;
166
- }) | undefined;
167
- formattingOptions?: {
168
- alignment: "left" | "center" | "right" | "justify";
169
- } | undefined;
170
- damAdditional?: {
171
- variant?: string | undefined;
172
- } | undefined;
173
- } | {
174
- type: "component";
175
- nodeId: string;
176
- componentId: string;
177
- componentSet: string;
178
- i18n?: Record<string, {
179
- id: string;
180
- } | {
181
- content: Record<string, unknown>;
182
- schemaName: string;
183
- }> | undefined;
184
- componentType?: "server" | "edge" | undefined;
185
- contentItem?: {
186
- id: string;
187
- } | {
188
- content: Record<string, unknown>;
189
- schemaName: string;
190
- } | undefined;
191
- } | (({
192
- type: "tag";
193
- nodeId: string;
194
- tag: string;
195
- attributes?: Record<string, string> | undefined;
196
- font?: {
197
- bold?: boolean | undefined;
198
- italics?: boolean | undefined;
199
- underline?: boolean | undefined;
200
- color?: string | undefined;
201
- size?: string | undefined;
202
- fontFamily?: string | undefined;
203
- } | undefined;
204
- formattingOptions?: {
205
- alignment: "left" | "center" | "right" | "justify";
206
- } | undefined;
207
- } | {
208
- type: "fragment";
209
- nodeId: string;
210
- i18n?: Record<string, {}> | undefined;
211
- } | {
212
- type: "link-to-matrix-asset";
213
- nodeId: string;
214
- matrixDomain: string;
215
- matrixAssetId: string;
216
- target: "_blank" | "_self" | "_parent" | "_top";
217
- attributes?: (Record<string, string> & {
218
- target?: undefined;
219
- href?: undefined;
220
- }) | undefined;
221
- formattingOptions?: {
222
- alignment: "left" | "center" | "right" | "justify";
223
- } | undefined;
224
- matrixIdentifier?: string | undefined;
225
- } | {
226
- type: "link-to-dam-asset";
227
- nodeId: string;
228
- target: "_blank" | "_self" | "_parent" | "_top";
229
- damSystemType: string;
230
- damSystemIdentifier: string;
231
- damObjectId: string;
232
- attributes?: (Record<string, string> & {
233
- target?: undefined;
234
- href?: undefined;
235
- }) | undefined;
236
- formattingOptions?: {
237
- alignment: "left" | "center" | "right" | "justify";
238
- } | undefined;
239
- damAdditional?: {
240
- variant?: string | undefined;
241
- } | undefined;
242
- }) & {
243
- children: import("../layout-content").LayoutContentNodes[];
244
- }), z.ZodTypeDef, {
245
- value: string;
246
- type: "text";
247
- nodeId?: string | undefined;
248
- } | {
249
- type: "tag";
250
- tag: string;
251
- nodeId?: string | undefined;
252
- attributes?: Record<string, string> | undefined;
253
- font?: {
254
- bold?: boolean | undefined;
255
- italics?: boolean | undefined;
256
- underline?: boolean | undefined;
257
- color?: string | undefined;
258
- size?: string | undefined;
259
- fontFamily?: string | undefined;
260
- } | undefined;
261
- formattingOptions?: {
262
- alignment: "left" | "center" | "right" | "justify";
263
- } | undefined;
264
- } | {
265
- type: "fragment";
266
- nodeId?: string | undefined;
267
- i18n?: Record<string, {}> | undefined;
268
- } | {
269
- type: "link-to-matrix-asset";
270
- matrixDomain: string;
271
- matrixAssetId: string;
272
- target: "_blank" | "_self" | "_parent" | "_top";
273
- nodeId?: string | undefined;
274
- attributes?: (Record<string, string> & {
275
- target?: undefined;
276
- href?: undefined;
277
- }) | undefined;
278
- formattingOptions?: {
279
- alignment: "left" | "center" | "right" | "justify";
280
- } | undefined;
281
- matrixIdentifier?: string | undefined;
282
- } | {
283
- type: "link-to-dam-asset";
284
- target: "_blank" | "_self" | "_parent" | "_top";
285
- damSystemType: string;
286
- damSystemIdentifier: string;
287
- damObjectId: string;
288
- nodeId?: string | undefined;
289
- attributes?: (Record<string, string> & {
290
- target?: undefined;
291
- href?: undefined;
292
- }) | undefined;
293
- formattingOptions?: {
294
- alignment: "left" | "center" | "right" | "justify";
295
- } | undefined;
296
- damAdditional?: {
297
- variant?: string | undefined;
298
- } | undefined;
299
- } | {
300
- type: "matrix-image";
301
- matrixDomain: string;
302
- matrixAssetId: string;
303
- nodeId?: string | undefined;
304
- attributes?: (Record<string, string> & {
305
- src?: undefined;
306
- }) | undefined;
307
- formattingOptions?: {
308
- alignment: "left" | "center" | "right" | "justify";
309
- } | undefined;
310
- matrixIdentifier?: string | undefined;
311
- } | {
312
- type: "dam-image";
313
- damSystemType: string;
314
- damSystemIdentifier: string;
315
- damObjectId: string;
316
- nodeId?: string | undefined;
317
- attributes?: (Record<string, string> & {
318
- src?: undefined;
319
- }) | undefined;
320
- formattingOptions?: {
321
- alignment: "left" | "center" | "right" | "justify";
322
- } | undefined;
323
- damAdditional?: {
324
- variant?: string | undefined;
325
- } | undefined;
326
- } | {
327
- type: "component";
328
- componentId: string;
329
- componentSet: string;
330
- nodeId?: string | undefined;
331
- i18n?: Record<string, {
332
- id: string;
333
- } | {
334
- content: Record<string, unknown>;
335
- schemaName: string;
336
- }> | undefined;
337
- componentType?: "server" | "edge" | undefined;
338
- contentItem?: {
339
- id: string;
340
- } | {
341
- content: Record<string, unknown>;
342
- schemaName: string;
343
- } | undefined;
344
- }>, z.ZodType<import("../layout-content").LayoutVariationNode, z.ZodTypeDef, {
345
- type: "variation";
346
- default: {};
347
- nodeId?: string | undefined;
348
- }>, z.ZodType<import("../layout-content").DeveloperDefinedLayoutNode, z.ZodTypeDef, {
349
- type: "layout";
350
- layout: {
351
- options: Record<string, {
352
- values: string[];
353
- displayName: string;
354
- description: string;
355
- selectedValue: string;
356
- }>;
357
- name: string;
358
- displayName: string;
359
- description: string;
360
- template: string;
361
- zones: Record<string, {
362
- displayName: string;
363
- description: string;
364
- minNodes: number;
365
- maxNodes?: number | undefined;
366
- }>;
367
- } | {
368
- options: Record<string, {
369
- selectedValue: string;
370
- }>;
371
- name: string;
372
- };
373
- nodeId?: string | undefined;
374
- }>]>, "many">, (import("../layout-content").LayoutVariationNode | ({
375
- value: string;
376
- type: "text";
377
- nodeId: string;
378
- } | {
379
- type: "matrix-image";
380
- nodeId: string;
381
- matrixDomain: string;
382
- matrixAssetId: string;
383
- attributes?: (Record<string, string> & {
384
- src?: undefined;
385
- }) | undefined;
386
- formattingOptions?: {
387
- alignment: "left" | "center" | "right" | "justify";
388
- } | undefined;
389
- matrixIdentifier?: string | undefined;
390
- } | {
391
- type: "dam-image";
392
- nodeId: string;
393
- damSystemType: string;
394
- damSystemIdentifier: string;
395
- damObjectId: string;
396
- attributes?: (Record<string, string> & {
397
- src?: undefined;
398
- }) | undefined;
399
- formattingOptions?: {
400
- alignment: "left" | "center" | "right" | "justify";
401
- } | undefined;
402
- damAdditional?: {
403
- variant?: string | undefined;
404
- } | undefined;
405
- } | {
406
- type: "component";
407
- nodeId: string;
408
- componentId: string;
409
- componentSet: string;
410
- i18n?: Record<string, {
411
- id: string;
412
- } | {
413
- content: Record<string, unknown>;
414
- schemaName: string;
415
- }> | undefined;
416
- componentType?: "server" | "edge" | undefined;
417
- contentItem?: {
418
- id: string;
419
- } | {
420
- content: Record<string, unknown>;
421
- schemaName: string;
422
- } | undefined;
423
- } | (({
424
- type: "tag";
425
- nodeId: string;
426
- tag: string;
427
- attributes?: Record<string, string> | undefined;
428
- font?: {
429
- bold?: boolean | undefined;
430
- italics?: boolean | undefined;
431
- underline?: boolean | undefined;
432
- color?: string | undefined;
433
- size?: string | undefined;
434
- fontFamily?: string | undefined;
435
- } | undefined;
436
- formattingOptions?: {
437
- alignment: "left" | "center" | "right" | "justify";
438
- } | undefined;
439
- } | {
440
- type: "fragment";
441
- nodeId: string;
442
- i18n?: Record<string, {}> | undefined;
443
- } | {
444
- type: "link-to-matrix-asset";
445
- nodeId: string;
446
- matrixDomain: string;
447
- matrixAssetId: string;
448
- target: "_blank" | "_self" | "_parent" | "_top";
449
- attributes?: (Record<string, string> & {
450
- target?: undefined;
451
- href?: undefined;
452
- }) | undefined;
453
- formattingOptions?: {
454
- alignment: "left" | "center" | "right" | "justify";
455
- } | undefined;
456
- matrixIdentifier?: string | undefined;
457
- } | {
458
- type: "link-to-dam-asset";
459
- nodeId: string;
460
- target: "_blank" | "_self" | "_parent" | "_top";
461
- damSystemType: string;
462
- damSystemIdentifier: string;
463
- damObjectId: string;
464
- attributes?: (Record<string, string> & {
465
- target?: undefined;
466
- href?: undefined;
467
- }) | undefined;
468
- formattingOptions?: {
469
- alignment: "left" | "center" | "right" | "justify";
470
- } | undefined;
471
- damAdditional?: {
472
- variant?: string | undefined;
473
- } | undefined;
474
- }) & {
475
- children: import("../layout-content").LayoutContentNodes[];
476
- })) | import("../layout-content").DeveloperDefinedLayoutNode)[], ({
477
- value: string;
478
- type: "text";
479
- nodeId?: string | undefined;
480
- } | {
481
- type: "tag";
482
- tag: string;
483
- nodeId?: string | undefined;
484
- attributes?: Record<string, string> | undefined;
485
- font?: {
486
- bold?: boolean | undefined;
487
- italics?: boolean | undefined;
488
- underline?: boolean | undefined;
489
- color?: string | undefined;
490
- size?: string | undefined;
491
- fontFamily?: string | undefined;
492
- } | undefined;
493
- formattingOptions?: {
494
- alignment: "left" | "center" | "right" | "justify";
495
- } | undefined;
496
- } | {
497
- type: "fragment";
498
- nodeId?: string | undefined;
499
- i18n?: Record<string, {}> | undefined;
500
- } | {
501
- type: "link-to-matrix-asset";
502
- matrixDomain: string;
503
- matrixAssetId: string;
504
- target: "_blank" | "_self" | "_parent" | "_top";
505
- nodeId?: string | undefined;
506
- attributes?: (Record<string, string> & {
507
- target?: undefined;
508
- href?: undefined;
509
- }) | undefined;
510
- formattingOptions?: {
511
- alignment: "left" | "center" | "right" | "justify";
512
- } | undefined;
513
- matrixIdentifier?: string | undefined;
514
- } | {
515
- type: "link-to-dam-asset";
516
- target: "_blank" | "_self" | "_parent" | "_top";
517
- damSystemType: string;
518
- damSystemIdentifier: string;
519
- damObjectId: string;
520
- nodeId?: string | undefined;
521
- attributes?: (Record<string, string> & {
522
- target?: undefined;
523
- href?: undefined;
524
- }) | undefined;
525
- formattingOptions?: {
526
- alignment: "left" | "center" | "right" | "justify";
527
- } | undefined;
528
- damAdditional?: {
529
- variant?: string | undefined;
530
- } | undefined;
531
- } | {
532
- type: "matrix-image";
533
- matrixDomain: string;
534
- matrixAssetId: string;
535
- nodeId?: string | undefined;
536
- attributes?: (Record<string, string> & {
537
- src?: undefined;
538
- }) | undefined;
539
- formattingOptions?: {
540
- alignment: "left" | "center" | "right" | "justify";
541
- } | undefined;
542
- matrixIdentifier?: string | undefined;
543
- } | {
544
- type: "dam-image";
545
- damSystemType: string;
546
- damSystemIdentifier: string;
547
- damObjectId: string;
548
- nodeId?: string | undefined;
549
- attributes?: (Record<string, string> & {
550
- src?: undefined;
551
- }) | undefined;
552
- formattingOptions?: {
553
- alignment: "left" | "center" | "right" | "justify";
554
- } | undefined;
555
- damAdditional?: {
556
- variant?: string | undefined;
557
- } | undefined;
558
- } | {
559
- type: "component";
560
- componentId: string;
561
- componentSet: string;
562
- nodeId?: string | undefined;
563
- i18n?: Record<string, {
564
- id: string;
565
- } | {
566
- content: Record<string, unknown>;
567
- schemaName: string;
568
- }> | undefined;
569
- componentType?: "server" | "edge" | undefined;
570
- contentItem?: {
571
- id: string;
572
- } | {
573
- content: Record<string, unknown>;
574
- schemaName: string;
575
- } | undefined;
576
- } | {
577
- type: "variation";
578
- default: {};
579
- nodeId?: string | undefined;
580
- } | {
581
- type: "layout";
582
- layout: {
583
- options: Record<string, {
584
- values: string[];
585
- displayName: string;
586
- description: string;
587
- selectedValue: string;
588
- }>;
589
- name: string;
590
- displayName: string;
591
- description: string;
592
- template: string;
593
- zones: Record<string, {
594
- displayName: string;
595
- description: string;
596
- minNodes: number;
597
- maxNodes?: number | undefined;
598
- }>;
599
- } | {
600
- options: Record<string, {
601
- selectedValue: string;
602
- }>;
603
- name: string;
604
- };
605
- nodeId?: string | undefined;
606
- })[]>;
142
+ main: z.ZodType<import("../layout-content").LayoutContentNodes[], z.ZodTypeDef, unknown[]>;
607
143
  }, "strip", z.ZodTypeAny, {
608
- main: (import("../layout-content").LayoutVariationNode | ({
609
- value: string;
610
- type: "text";
611
- nodeId: string;
612
- } | {
613
- type: "matrix-image";
614
- nodeId: string;
615
- matrixDomain: string;
616
- matrixAssetId: string;
617
- attributes?: (Record<string, string> & {
618
- src?: undefined;
619
- }) | undefined;
620
- formattingOptions?: {
621
- alignment: "left" | "center" | "right" | "justify";
622
- } | undefined;
623
- matrixIdentifier?: string | undefined;
624
- } | {
625
- type: "dam-image";
626
- nodeId: string;
627
- damSystemType: string;
628
- damSystemIdentifier: string;
629
- damObjectId: string;
630
- attributes?: (Record<string, string> & {
631
- src?: undefined;
632
- }) | undefined;
633
- formattingOptions?: {
634
- alignment: "left" | "center" | "right" | "justify";
635
- } | undefined;
636
- damAdditional?: {
637
- variant?: string | undefined;
638
- } | undefined;
639
- } | {
640
- type: "component";
641
- nodeId: string;
642
- componentId: string;
643
- componentSet: string;
644
- i18n?: Record<string, {
645
- id: string;
646
- } | {
647
- content: Record<string, unknown>;
648
- schemaName: string;
649
- }> | undefined;
650
- componentType?: "server" | "edge" | undefined;
651
- contentItem?: {
652
- id: string;
653
- } | {
654
- content: Record<string, unknown>;
655
- schemaName: string;
656
- } | undefined;
657
- } | (({
658
- type: "tag";
659
- nodeId: string;
660
- tag: string;
661
- attributes?: Record<string, string> | undefined;
662
- font?: {
663
- bold?: boolean | undefined;
664
- italics?: boolean | undefined;
665
- underline?: boolean | undefined;
666
- color?: string | undefined;
667
- size?: string | undefined;
668
- fontFamily?: string | undefined;
669
- } | undefined;
670
- formattingOptions?: {
671
- alignment: "left" | "center" | "right" | "justify";
672
- } | undefined;
673
- } | {
674
- type: "fragment";
675
- nodeId: string;
676
- i18n?: Record<string, {}> | undefined;
677
- } | {
678
- type: "link-to-matrix-asset";
679
- nodeId: string;
680
- matrixDomain: string;
681
- matrixAssetId: string;
682
- target: "_blank" | "_self" | "_parent" | "_top";
683
- attributes?: (Record<string, string> & {
684
- target?: undefined;
685
- href?: undefined;
686
- }) | undefined;
687
- formattingOptions?: {
688
- alignment: "left" | "center" | "right" | "justify";
689
- } | undefined;
690
- matrixIdentifier?: string | undefined;
691
- } | {
692
- type: "link-to-dam-asset";
693
- nodeId: string;
694
- target: "_blank" | "_self" | "_parent" | "_top";
695
- damSystemType: string;
696
- damSystemIdentifier: string;
697
- damObjectId: string;
698
- attributes?: (Record<string, string> & {
699
- target?: undefined;
700
- href?: undefined;
701
- }) | undefined;
702
- formattingOptions?: {
703
- alignment: "left" | "center" | "right" | "justify";
704
- } | undefined;
705
- damAdditional?: {
706
- variant?: string | undefined;
707
- } | undefined;
708
- }) & {
709
- children: import("../layout-content").LayoutContentNodes[];
710
- })) | import("../layout-content").DeveloperDefinedLayoutNode)[];
144
+ main: import("../layout-content").LayoutContentNodes[];
711
145
  }, {
712
- main: ({
713
- value: string;
714
- type: "text";
715
- nodeId?: string | undefined;
716
- } | {
717
- type: "tag";
718
- tag: string;
719
- nodeId?: string | undefined;
720
- attributes?: Record<string, string> | undefined;
721
- font?: {
722
- bold?: boolean | undefined;
723
- italics?: boolean | undefined;
724
- underline?: boolean | undefined;
725
- color?: string | undefined;
726
- size?: string | undefined;
727
- fontFamily?: string | undefined;
728
- } | undefined;
729
- formattingOptions?: {
730
- alignment: "left" | "center" | "right" | "justify";
731
- } | undefined;
732
- } | {
733
- type: "fragment";
734
- nodeId?: string | undefined;
735
- i18n?: Record<string, {}> | undefined;
736
- } | {
737
- type: "link-to-matrix-asset";
738
- matrixDomain: string;
739
- matrixAssetId: string;
740
- target: "_blank" | "_self" | "_parent" | "_top";
741
- nodeId?: string | undefined;
742
- attributes?: (Record<string, string> & {
743
- target?: undefined;
744
- href?: undefined;
745
- }) | undefined;
746
- formattingOptions?: {
747
- alignment: "left" | "center" | "right" | "justify";
748
- } | undefined;
749
- matrixIdentifier?: string | undefined;
750
- } | {
751
- type: "link-to-dam-asset";
752
- target: "_blank" | "_self" | "_parent" | "_top";
753
- damSystemType: string;
754
- damSystemIdentifier: string;
755
- damObjectId: string;
756
- nodeId?: string | undefined;
757
- attributes?: (Record<string, string> & {
758
- target?: undefined;
759
- href?: undefined;
760
- }) | undefined;
761
- formattingOptions?: {
762
- alignment: "left" | "center" | "right" | "justify";
763
- } | undefined;
764
- damAdditional?: {
765
- variant?: string | undefined;
766
- } | undefined;
767
- } | {
768
- type: "matrix-image";
769
- matrixDomain: string;
770
- matrixAssetId: string;
771
- nodeId?: string | undefined;
772
- attributes?: (Record<string, string> & {
773
- src?: undefined;
774
- }) | undefined;
775
- formattingOptions?: {
776
- alignment: "left" | "center" | "right" | "justify";
777
- } | undefined;
778
- matrixIdentifier?: string | undefined;
779
- } | {
780
- type: "dam-image";
781
- damSystemType: string;
782
- damSystemIdentifier: string;
783
- damObjectId: string;
784
- nodeId?: string | undefined;
785
- attributes?: (Record<string, string> & {
786
- src?: undefined;
787
- }) | undefined;
788
- formattingOptions?: {
789
- alignment: "left" | "center" | "right" | "justify";
790
- } | undefined;
791
- damAdditional?: {
792
- variant?: string | undefined;
793
- } | undefined;
794
- } | {
795
- type: "component";
796
- componentId: string;
797
- componentSet: string;
798
- nodeId?: string | undefined;
799
- i18n?: Record<string, {
800
- id: string;
801
- } | {
802
- content: Record<string, unknown>;
803
- schemaName: string;
804
- }> | undefined;
805
- componentType?: "server" | "edge" | undefined;
806
- contentItem?: {
807
- id: string;
808
- } | {
809
- content: Record<string, unknown>;
810
- schemaName: string;
811
- } | undefined;
812
- } | {
813
- type: "variation";
814
- default: {};
815
- nodeId?: string | undefined;
816
- } | {
817
- type: "layout";
818
- layout: {
819
- options: Record<string, {
820
- values: string[];
821
- displayName: string;
822
- description: string;
823
- selectedValue: string;
824
- }>;
825
- name: string;
826
- displayName: string;
827
- description: string;
828
- template: string;
829
- zones: Record<string, {
830
- displayName: string;
831
- description: string;
832
- minNodes: number;
833
- maxNodes?: number | undefined;
834
- }>;
835
- } | {
836
- options: Record<string, {
837
- selectedValue: string;
838
- }>;
839
- name: string;
840
- };
841
- nodeId?: string | undefined;
842
- })[];
146
+ main: unknown[];
843
147
  }>;
844
148
  }, "strip", z.ZodTypeAny, {
845
149
  content: {
846
- main: (import("../layout-content").LayoutVariationNode | ({
847
- value: string;
848
- type: "text";
849
- nodeId: string;
850
- } | {
851
- type: "matrix-image";
852
- nodeId: string;
853
- matrixDomain: string;
854
- matrixAssetId: string;
855
- attributes?: (Record<string, string> & {
856
- src?: undefined;
857
- }) | undefined;
858
- formattingOptions?: {
859
- alignment: "left" | "center" | "right" | "justify";
860
- } | undefined;
861
- matrixIdentifier?: string | undefined;
862
- } | {
863
- type: "dam-image";
864
- nodeId: string;
865
- damSystemType: string;
866
- damSystemIdentifier: string;
867
- damObjectId: string;
868
- attributes?: (Record<string, string> & {
869
- src?: undefined;
870
- }) | undefined;
871
- formattingOptions?: {
872
- alignment: "left" | "center" | "right" | "justify";
873
- } | undefined;
874
- damAdditional?: {
875
- variant?: string | undefined;
876
- } | undefined;
877
- } | {
878
- type: "component";
879
- nodeId: string;
880
- componentId: string;
881
- componentSet: string;
882
- i18n?: Record<string, {
883
- id: string;
884
- } | {
885
- content: Record<string, unknown>;
886
- schemaName: string;
887
- }> | undefined;
888
- componentType?: "server" | "edge" | undefined;
889
- contentItem?: {
890
- id: string;
891
- } | {
892
- content: Record<string, unknown>;
893
- schemaName: string;
894
- } | undefined;
895
- } | (({
896
- type: "tag";
897
- nodeId: string;
898
- tag: string;
899
- attributes?: Record<string, string> | undefined;
900
- font?: {
901
- bold?: boolean | undefined;
902
- italics?: boolean | undefined;
903
- underline?: boolean | undefined;
904
- color?: string | undefined;
905
- size?: string | undefined;
906
- fontFamily?: string | undefined;
907
- } | undefined;
908
- formattingOptions?: {
909
- alignment: "left" | "center" | "right" | "justify";
910
- } | undefined;
911
- } | {
912
- type: "fragment";
913
- nodeId: string;
914
- i18n?: Record<string, {}> | undefined;
915
- } | {
916
- type: "link-to-matrix-asset";
917
- nodeId: string;
918
- matrixDomain: string;
919
- matrixAssetId: string;
920
- target: "_blank" | "_self" | "_parent" | "_top";
921
- attributes?: (Record<string, string> & {
922
- target?: undefined;
923
- href?: undefined;
924
- }) | undefined;
925
- formattingOptions?: {
926
- alignment: "left" | "center" | "right" | "justify";
927
- } | undefined;
928
- matrixIdentifier?: string | undefined;
929
- } | {
930
- type: "link-to-dam-asset";
931
- nodeId: string;
932
- target: "_blank" | "_self" | "_parent" | "_top";
933
- damSystemType: string;
934
- damSystemIdentifier: string;
935
- damObjectId: string;
936
- attributes?: (Record<string, string> & {
937
- target?: undefined;
938
- href?: undefined;
939
- }) | undefined;
940
- formattingOptions?: {
941
- alignment: "left" | "center" | "right" | "justify";
942
- } | undefined;
943
- damAdditional?: {
944
- variant?: string | undefined;
945
- } | undefined;
946
- }) & {
947
- children: import("../layout-content").LayoutContentNodes[];
948
- })) | import("../layout-content").DeveloperDefinedLayoutNode)[];
150
+ main: import("../layout-content").LayoutContentNodes[];
949
151
  };
950
152
  name: "custom-layout";
951
153
  config: {
@@ -962,137 +164,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
962
164
  };
963
165
  }, {
964
166
  content: {
965
- main: ({
966
- value: string;
967
- type: "text";
968
- nodeId?: string | undefined;
969
- } | {
970
- type: "tag";
971
- tag: string;
972
- nodeId?: string | undefined;
973
- attributes?: Record<string, string> | undefined;
974
- font?: {
975
- bold?: boolean | undefined;
976
- italics?: boolean | undefined;
977
- underline?: boolean | undefined;
978
- color?: string | undefined;
979
- size?: string | undefined;
980
- fontFamily?: string | undefined;
981
- } | undefined;
982
- formattingOptions?: {
983
- alignment: "left" | "center" | "right" | "justify";
984
- } | undefined;
985
- } | {
986
- type: "fragment";
987
- nodeId?: string | undefined;
988
- i18n?: Record<string, {}> | undefined;
989
- } | {
990
- type: "link-to-matrix-asset";
991
- matrixDomain: string;
992
- matrixAssetId: string;
993
- target: "_blank" | "_self" | "_parent" | "_top";
994
- nodeId?: string | undefined;
995
- attributes?: (Record<string, string> & {
996
- target?: undefined;
997
- href?: undefined;
998
- }) | undefined;
999
- formattingOptions?: {
1000
- alignment: "left" | "center" | "right" | "justify";
1001
- } | undefined;
1002
- matrixIdentifier?: string | undefined;
1003
- } | {
1004
- type: "link-to-dam-asset";
1005
- target: "_blank" | "_self" | "_parent" | "_top";
1006
- damSystemType: string;
1007
- damSystemIdentifier: string;
1008
- damObjectId: string;
1009
- nodeId?: string | undefined;
1010
- attributes?: (Record<string, string> & {
1011
- target?: undefined;
1012
- href?: undefined;
1013
- }) | undefined;
1014
- formattingOptions?: {
1015
- alignment: "left" | "center" | "right" | "justify";
1016
- } | undefined;
1017
- damAdditional?: {
1018
- variant?: string | undefined;
1019
- } | undefined;
1020
- } | {
1021
- type: "matrix-image";
1022
- matrixDomain: string;
1023
- matrixAssetId: string;
1024
- nodeId?: string | undefined;
1025
- attributes?: (Record<string, string> & {
1026
- src?: undefined;
1027
- }) | undefined;
1028
- formattingOptions?: {
1029
- alignment: "left" | "center" | "right" | "justify";
1030
- } | undefined;
1031
- matrixIdentifier?: string | undefined;
1032
- } | {
1033
- type: "dam-image";
1034
- damSystemType: string;
1035
- damSystemIdentifier: string;
1036
- damObjectId: string;
1037
- nodeId?: string | undefined;
1038
- attributes?: (Record<string, string> & {
1039
- src?: undefined;
1040
- }) | undefined;
1041
- formattingOptions?: {
1042
- alignment: "left" | "center" | "right" | "justify";
1043
- } | undefined;
1044
- damAdditional?: {
1045
- variant?: string | undefined;
1046
- } | undefined;
1047
- } | {
1048
- type: "component";
1049
- componentId: string;
1050
- componentSet: string;
1051
- nodeId?: string | undefined;
1052
- i18n?: Record<string, {
1053
- id: string;
1054
- } | {
1055
- content: Record<string, unknown>;
1056
- schemaName: string;
1057
- }> | undefined;
1058
- componentType?: "server" | "edge" | undefined;
1059
- contentItem?: {
1060
- id: string;
1061
- } | {
1062
- content: Record<string, unknown>;
1063
- schemaName: string;
1064
- } | undefined;
1065
- } | {
1066
- type: "variation";
1067
- default: {};
1068
- nodeId?: string | undefined;
1069
- } | {
1070
- type: "layout";
1071
- layout: {
1072
- options: Record<string, {
1073
- values: string[];
1074
- displayName: string;
1075
- description: string;
1076
- selectedValue: string;
1077
- }>;
1078
- name: string;
1079
- displayName: string;
1080
- description: string;
1081
- template: string;
1082
- zones: Record<string, {
1083
- displayName: string;
1084
- description: string;
1085
- minNodes: number;
1086
- maxNodes?: number | undefined;
1087
- }>;
1088
- } | {
1089
- options: Record<string, {
1090
- selectedValue: string;
1091
- }>;
1092
- name: string;
1093
- };
1094
- nodeId?: string | undefined;
1095
- })[];
167
+ main: unknown[];
1096
168
  };
1097
169
  name: "custom-layout";
1098
170
  config: {
@@ -1115,137 +187,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
1115
187
  };
1116
188
  }, {
1117
189
  content: {
1118
- main: ({
1119
- value: string;
1120
- type: "text";
1121
- nodeId?: string | undefined;
1122
- } | {
1123
- type: "tag";
1124
- tag: string;
1125
- nodeId?: string | undefined;
1126
- attributes?: Record<string, string> | undefined;
1127
- font?: {
1128
- bold?: boolean | undefined;
1129
- italics?: boolean | undefined;
1130
- underline?: boolean | undefined;
1131
- color?: string | undefined;
1132
- size?: string | undefined;
1133
- fontFamily?: string | undefined;
1134
- } | undefined;
1135
- formattingOptions?: {
1136
- alignment: "left" | "center" | "right" | "justify";
1137
- } | undefined;
1138
- } | {
1139
- type: "fragment";
1140
- nodeId?: string | undefined;
1141
- i18n?: Record<string, {}> | undefined;
1142
- } | {
1143
- type: "link-to-matrix-asset";
1144
- matrixDomain: string;
1145
- matrixAssetId: string;
1146
- target: "_blank" | "_self" | "_parent" | "_top";
1147
- nodeId?: string | undefined;
1148
- attributes?: (Record<string, string> & {
1149
- target?: undefined;
1150
- href?: undefined;
1151
- }) | undefined;
1152
- formattingOptions?: {
1153
- alignment: "left" | "center" | "right" | "justify";
1154
- } | undefined;
1155
- matrixIdentifier?: string | undefined;
1156
- } | {
1157
- type: "link-to-dam-asset";
1158
- target: "_blank" | "_self" | "_parent" | "_top";
1159
- damSystemType: string;
1160
- damSystemIdentifier: string;
1161
- damObjectId: string;
1162
- nodeId?: string | undefined;
1163
- attributes?: (Record<string, string> & {
1164
- target?: undefined;
1165
- href?: undefined;
1166
- }) | undefined;
1167
- formattingOptions?: {
1168
- alignment: "left" | "center" | "right" | "justify";
1169
- } | undefined;
1170
- damAdditional?: {
1171
- variant?: string | undefined;
1172
- } | undefined;
1173
- } | {
1174
- type: "matrix-image";
1175
- matrixDomain: string;
1176
- matrixAssetId: string;
1177
- nodeId?: string | undefined;
1178
- attributes?: (Record<string, string> & {
1179
- src?: undefined;
1180
- }) | undefined;
1181
- formattingOptions?: {
1182
- alignment: "left" | "center" | "right" | "justify";
1183
- } | undefined;
1184
- matrixIdentifier?: string | undefined;
1185
- } | {
1186
- type: "dam-image";
1187
- damSystemType: string;
1188
- damSystemIdentifier: string;
1189
- damObjectId: string;
1190
- nodeId?: string | undefined;
1191
- attributes?: (Record<string, string> & {
1192
- src?: undefined;
1193
- }) | undefined;
1194
- formattingOptions?: {
1195
- alignment: "left" | "center" | "right" | "justify";
1196
- } | undefined;
1197
- damAdditional?: {
1198
- variant?: string | undefined;
1199
- } | undefined;
1200
- } | {
1201
- type: "component";
1202
- componentId: string;
1203
- componentSet: string;
1204
- nodeId?: string | undefined;
1205
- i18n?: Record<string, {
1206
- id: string;
1207
- } | {
1208
- content: Record<string, unknown>;
1209
- schemaName: string;
1210
- }> | undefined;
1211
- componentType?: "server" | "edge" | undefined;
1212
- contentItem?: {
1213
- id: string;
1214
- } | {
1215
- content: Record<string, unknown>;
1216
- schemaName: string;
1217
- } | undefined;
1218
- } | {
1219
- type: "variation";
1220
- default: {};
1221
- nodeId?: string | undefined;
1222
- } | {
1223
- type: "layout";
1224
- layout: {
1225
- options: Record<string, {
1226
- values: string[];
1227
- displayName: string;
1228
- description: string;
1229
- selectedValue: string;
1230
- }>;
1231
- name: string;
1232
- displayName: string;
1233
- description: string;
1234
- template: string;
1235
- zones: Record<string, {
1236
- displayName: string;
1237
- description: string;
1238
- minNodes: number;
1239
- maxNodes?: number | undefined;
1240
- }>;
1241
- } | {
1242
- options: Record<string, {
1243
- selectedValue: string;
1244
- }>;
1245
- name: string;
1246
- };
1247
- nodeId?: string | undefined;
1248
- })[];
190
+ main: unknown[];
1249
191
  };
1250
192
  name: "custom-layout";
1251
193
  config: {