@squiz/dx-page-contents-lib 1.75.0 → 1.75.2

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 (34) hide show
  1. package/lib/formatted-text.d.ts +93 -0
  2. package/lib/formatted-text.js +62 -1
  3. package/lib/formatted-text.js.map +1 -1
  4. package/lib/formatted-text.spec.js +52 -0
  5. package/lib/formatted-text.spec.js.map +1 -1
  6. package/lib/layout-content.d.ts +168 -4
  7. package/lib/layout-content.js +2 -1
  8. package/lib/layout-content.js.map +1 -1
  9. package/lib/layout-content.spec.js +18 -6
  10. package/lib/layout-content.spec.js.map +1 -1
  11. package/lib/layouts/custom-layout.d.ts +226 -0
  12. package/lib/layouts/index.d.ts +1001 -1
  13. package/lib/layouts/raw.layout.d.ts +200 -0
  14. package/lib/layouts/single-column.layout.d.ts +200 -0
  15. package/lib/layouts/two-column.layout.d.ts +400 -0
  16. package/lib/mocks/PageContentsHelpers.d.ts +1351 -1
  17. package/lib/mocks/PageContentsHelpers.js +7 -0
  18. package/lib/mocks/PageContentsHelpers.js.map +1 -1
  19. package/lib/mocks/PageContentsMocks.d.ts +1 -0
  20. package/lib/mocks/PageContentsMocks.js +36 -0
  21. package/lib/mocks/PageContentsMocks.js.map +1 -1
  22. package/lib/page-contents-lib.d.ts +50 -0
  23. package/lib/page-contents-lib.spec.js +61 -15
  24. package/lib/page-contents-lib.spec.js.map +1 -1
  25. package/lib/resolvers/create-variant-resolver.js +6 -1
  26. package/lib/resolvers/create-variant-resolver.js.map +1 -1
  27. package/lib/resolvers/create-variant-resolver.spec.js +21 -17
  28. package/lib/resolvers/create-variant-resolver.spec.js.map +1 -1
  29. package/lib/resolvers/default-layout-resolver.spec.d.ts +1 -0
  30. package/lib/resolvers/default-layout-resolver.spec.js +36 -0
  31. package/lib/resolvers/default-layout-resolver.spec.js.map +1 -0
  32. package/lib/resolvers/default-variation-resolver.spec.js +8 -4
  33. package/lib/resolvers/default-variation-resolver.spec.js.map +1 -1
  34. package/package.json +1 -1
@@ -142,8 +142,10 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
142
142
  main: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodType<{
143
143
  value: string;
144
144
  type: "text";
145
+ nodeId: string;
145
146
  } | {
146
147
  type: "matrix-image";
148
+ nodeId: string;
147
149
  matrixDomain: string;
148
150
  matrixAssetId: string;
149
151
  attributes?: (Record<string, string> & {
@@ -155,6 +157,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
155
157
  matrixIdentifier?: string | undefined;
156
158
  } | {
157
159
  type: "dam-image";
160
+ nodeId: string;
158
161
  damSystemType: "bynder";
159
162
  damSystemIdentifier: string;
160
163
  damObjectId: string;
@@ -169,6 +172,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
169
172
  } | undefined;
170
173
  } | {
171
174
  type: "component";
175
+ nodeId: string;
172
176
  componentId: string;
173
177
  componentSet: string;
174
178
  componentType?: "server" | "edge" | undefined;
@@ -180,6 +184,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
180
184
  } | undefined;
181
185
  } | (({
182
186
  type: "tag";
187
+ nodeId: string;
183
188
  tag: string;
184
189
  attributes?: Record<string, string> | undefined;
185
190
  font?: {
@@ -195,8 +200,10 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
195
200
  } | undefined;
196
201
  } | {
197
202
  type: "fragment";
203
+ nodeId: string;
198
204
  } | {
199
205
  type: "link-to-matrix-asset";
206
+ nodeId: string;
200
207
  matrixDomain: string;
201
208
  matrixAssetId: string;
202
209
  target: "_blank" | "_self" | "_parent" | "_top";
@@ -208,14 +215,33 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
208
215
  alignment: "left" | "center" | "right" | "justify";
209
216
  } | undefined;
210
217
  matrixIdentifier?: string | undefined;
218
+ } | {
219
+ type: "link-to-dam-asset";
220
+ nodeId: string;
221
+ target: "_blank" | "_self" | "_parent" | "_top";
222
+ damSystemType: "bynder";
223
+ damSystemIdentifier: string;
224
+ damObjectId: string;
225
+ attributes?: (Record<string, string> & {
226
+ target?: undefined;
227
+ href?: undefined;
228
+ }) | undefined;
229
+ formattingOptions?: {
230
+ alignment: "left" | "center" | "right" | "justify";
231
+ } | undefined;
232
+ damAdditional?: {
233
+ variant?: string | undefined;
234
+ } | undefined;
211
235
  }) & {
212
236
  children: import("../layout-content").LayoutContentNodes[];
213
237
  }), z.ZodTypeDef, {
214
238
  value: string;
215
239
  type: "text";
240
+ nodeId?: string | undefined;
216
241
  } | {
217
242
  type: "tag";
218
243
  tag: string;
244
+ nodeId?: string | undefined;
219
245
  attributes?: Record<string, string> | undefined;
220
246
  font?: {
221
247
  bold?: boolean | undefined;
@@ -230,11 +256,13 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
230
256
  } | undefined;
231
257
  } | {
232
258
  type: "fragment";
259
+ nodeId?: string | undefined;
233
260
  } | {
234
261
  type: "link-to-matrix-asset";
235
262
  matrixDomain: string;
236
263
  matrixAssetId: string;
237
264
  target: "_blank" | "_self" | "_parent" | "_top";
265
+ nodeId?: string | undefined;
238
266
  attributes?: (Record<string, string> & {
239
267
  target?: undefined;
240
268
  href?: undefined;
@@ -243,10 +271,28 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
243
271
  alignment: "left" | "center" | "right" | "justify";
244
272
  } | undefined;
245
273
  matrixIdentifier?: string | undefined;
274
+ } | {
275
+ type: "link-to-dam-asset";
276
+ target: "_blank" | "_self" | "_parent" | "_top";
277
+ damSystemType: "bynder";
278
+ damSystemIdentifier: string;
279
+ damObjectId: string;
280
+ nodeId?: string | undefined;
281
+ attributes?: (Record<string, string> & {
282
+ target?: undefined;
283
+ href?: undefined;
284
+ }) | undefined;
285
+ formattingOptions?: {
286
+ alignment: "left" | "center" | "right" | "justify";
287
+ } | undefined;
288
+ damAdditional?: {
289
+ variant?: string | undefined;
290
+ } | undefined;
246
291
  } | {
247
292
  type: "matrix-image";
248
293
  matrixDomain: string;
249
294
  matrixAssetId: string;
295
+ nodeId?: string | undefined;
250
296
  attributes?: (Record<string, string> & {
251
297
  src?: undefined;
252
298
  }) | undefined;
@@ -259,6 +305,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
259
305
  damSystemType: "bynder";
260
306
  damSystemIdentifier: string;
261
307
  damObjectId: string;
308
+ nodeId?: string | undefined;
262
309
  attributes?: (Record<string, string> & {
263
310
  src?: undefined;
264
311
  }) | undefined;
@@ -272,6 +319,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
272
319
  type: "component";
273
320
  componentId: string;
274
321
  componentSet: string;
322
+ nodeId?: string | undefined;
275
323
  componentType?: "server" | "edge" | undefined;
276
324
  contentItem?: {
277
325
  id: string;
@@ -282,6 +330,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
282
330
  }>, z.ZodType<import("../layout-content").LayoutVariationNode, z.ZodTypeDef, {
283
331
  type: "variation";
284
332
  default: {};
333
+ nodeId?: string | undefined;
285
334
  }>, z.ZodType<import("../layout-content").DeveloperDefinedLayoutNode, z.ZodTypeDef, {
286
335
  type: "layout";
287
336
  layout: {
@@ -307,11 +356,14 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
307
356
  }>;
308
357
  name: string;
309
358
  };
359
+ nodeId?: string | undefined;
310
360
  }>]>, "many">, (import("../layout-content").LayoutVariationNode | ({
311
361
  value: string;
312
362
  type: "text";
363
+ nodeId: string;
313
364
  } | {
314
365
  type: "matrix-image";
366
+ nodeId: string;
315
367
  matrixDomain: string;
316
368
  matrixAssetId: string;
317
369
  attributes?: (Record<string, string> & {
@@ -323,6 +375,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
323
375
  matrixIdentifier?: string | undefined;
324
376
  } | {
325
377
  type: "dam-image";
378
+ nodeId: string;
326
379
  damSystemType: "bynder";
327
380
  damSystemIdentifier: string;
328
381
  damObjectId: string;
@@ -337,6 +390,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
337
390
  } | undefined;
338
391
  } | {
339
392
  type: "component";
393
+ nodeId: string;
340
394
  componentId: string;
341
395
  componentSet: string;
342
396
  componentType?: "server" | "edge" | undefined;
@@ -348,6 +402,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
348
402
  } | undefined;
349
403
  } | (({
350
404
  type: "tag";
405
+ nodeId: string;
351
406
  tag: string;
352
407
  attributes?: Record<string, string> | undefined;
353
408
  font?: {
@@ -363,8 +418,10 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
363
418
  } | undefined;
364
419
  } | {
365
420
  type: "fragment";
421
+ nodeId: string;
366
422
  } | {
367
423
  type: "link-to-matrix-asset";
424
+ nodeId: string;
368
425
  matrixDomain: string;
369
426
  matrixAssetId: string;
370
427
  target: "_blank" | "_self" | "_parent" | "_top";
@@ -376,14 +433,33 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
376
433
  alignment: "left" | "center" | "right" | "justify";
377
434
  } | undefined;
378
435
  matrixIdentifier?: string | undefined;
436
+ } | {
437
+ type: "link-to-dam-asset";
438
+ nodeId: string;
439
+ target: "_blank" | "_self" | "_parent" | "_top";
440
+ damSystemType: "bynder";
441
+ damSystemIdentifier: string;
442
+ damObjectId: string;
443
+ attributes?: (Record<string, string> & {
444
+ target?: undefined;
445
+ href?: undefined;
446
+ }) | undefined;
447
+ formattingOptions?: {
448
+ alignment: "left" | "center" | "right" | "justify";
449
+ } | undefined;
450
+ damAdditional?: {
451
+ variant?: string | undefined;
452
+ } | undefined;
379
453
  }) & {
380
454
  children: import("../layout-content").LayoutContentNodes[];
381
455
  })) | import("../layout-content").DeveloperDefinedLayoutNode)[], ({
382
456
  value: string;
383
457
  type: "text";
458
+ nodeId?: string | undefined;
384
459
  } | {
385
460
  type: "tag";
386
461
  tag: string;
462
+ nodeId?: string | undefined;
387
463
  attributes?: Record<string, string> | undefined;
388
464
  font?: {
389
465
  bold?: boolean | undefined;
@@ -398,11 +474,13 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
398
474
  } | undefined;
399
475
  } | {
400
476
  type: "fragment";
477
+ nodeId?: string | undefined;
401
478
  } | {
402
479
  type: "link-to-matrix-asset";
403
480
  matrixDomain: string;
404
481
  matrixAssetId: string;
405
482
  target: "_blank" | "_self" | "_parent" | "_top";
483
+ nodeId?: string | undefined;
406
484
  attributes?: (Record<string, string> & {
407
485
  target?: undefined;
408
486
  href?: undefined;
@@ -411,10 +489,28 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
411
489
  alignment: "left" | "center" | "right" | "justify";
412
490
  } | undefined;
413
491
  matrixIdentifier?: string | undefined;
492
+ } | {
493
+ type: "link-to-dam-asset";
494
+ target: "_blank" | "_self" | "_parent" | "_top";
495
+ damSystemType: "bynder";
496
+ damSystemIdentifier: string;
497
+ damObjectId: string;
498
+ nodeId?: string | undefined;
499
+ attributes?: (Record<string, string> & {
500
+ target?: undefined;
501
+ href?: undefined;
502
+ }) | undefined;
503
+ formattingOptions?: {
504
+ alignment: "left" | "center" | "right" | "justify";
505
+ } | undefined;
506
+ damAdditional?: {
507
+ variant?: string | undefined;
508
+ } | undefined;
414
509
  } | {
415
510
  type: "matrix-image";
416
511
  matrixDomain: string;
417
512
  matrixAssetId: string;
513
+ nodeId?: string | undefined;
418
514
  attributes?: (Record<string, string> & {
419
515
  src?: undefined;
420
516
  }) | undefined;
@@ -427,6 +523,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
427
523
  damSystemType: "bynder";
428
524
  damSystemIdentifier: string;
429
525
  damObjectId: string;
526
+ nodeId?: string | undefined;
430
527
  attributes?: (Record<string, string> & {
431
528
  src?: undefined;
432
529
  }) | undefined;
@@ -440,6 +537,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
440
537
  type: "component";
441
538
  componentId: string;
442
539
  componentSet: string;
540
+ nodeId?: string | undefined;
443
541
  componentType?: "server" | "edge" | undefined;
444
542
  contentItem?: {
445
543
  id: string;
@@ -450,6 +548,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
450
548
  } | {
451
549
  type: "variation";
452
550
  default: {};
551
+ nodeId?: string | undefined;
453
552
  } | {
454
553
  type: "layout";
455
554
  layout: {
@@ -475,13 +574,16 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
475
574
  }>;
476
575
  name: string;
477
576
  };
577
+ nodeId?: string | undefined;
478
578
  })[]>;
479
579
  }, "strip", z.ZodTypeAny, {
480
580
  main: (import("../layout-content").LayoutVariationNode | ({
481
581
  value: string;
482
582
  type: "text";
583
+ nodeId: string;
483
584
  } | {
484
585
  type: "matrix-image";
586
+ nodeId: string;
485
587
  matrixDomain: string;
486
588
  matrixAssetId: string;
487
589
  attributes?: (Record<string, string> & {
@@ -493,6 +595,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
493
595
  matrixIdentifier?: string | undefined;
494
596
  } | {
495
597
  type: "dam-image";
598
+ nodeId: string;
496
599
  damSystemType: "bynder";
497
600
  damSystemIdentifier: string;
498
601
  damObjectId: string;
@@ -507,6 +610,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
507
610
  } | undefined;
508
611
  } | {
509
612
  type: "component";
613
+ nodeId: string;
510
614
  componentId: string;
511
615
  componentSet: string;
512
616
  componentType?: "server" | "edge" | undefined;
@@ -518,6 +622,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
518
622
  } | undefined;
519
623
  } | (({
520
624
  type: "tag";
625
+ nodeId: string;
521
626
  tag: string;
522
627
  attributes?: Record<string, string> | undefined;
523
628
  font?: {
@@ -533,8 +638,10 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
533
638
  } | undefined;
534
639
  } | {
535
640
  type: "fragment";
641
+ nodeId: string;
536
642
  } | {
537
643
  type: "link-to-matrix-asset";
644
+ nodeId: string;
538
645
  matrixDomain: string;
539
646
  matrixAssetId: string;
540
647
  target: "_blank" | "_self" | "_parent" | "_top";
@@ -546,6 +653,23 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
546
653
  alignment: "left" | "center" | "right" | "justify";
547
654
  } | undefined;
548
655
  matrixIdentifier?: string | undefined;
656
+ } | {
657
+ type: "link-to-dam-asset";
658
+ nodeId: string;
659
+ target: "_blank" | "_self" | "_parent" | "_top";
660
+ damSystemType: "bynder";
661
+ damSystemIdentifier: string;
662
+ damObjectId: string;
663
+ attributes?: (Record<string, string> & {
664
+ target?: undefined;
665
+ href?: undefined;
666
+ }) | undefined;
667
+ formattingOptions?: {
668
+ alignment: "left" | "center" | "right" | "justify";
669
+ } | undefined;
670
+ damAdditional?: {
671
+ variant?: string | undefined;
672
+ } | undefined;
549
673
  }) & {
550
674
  children: import("../layout-content").LayoutContentNodes[];
551
675
  })) | import("../layout-content").DeveloperDefinedLayoutNode)[];
@@ -553,9 +677,11 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
553
677
  main: ({
554
678
  value: string;
555
679
  type: "text";
680
+ nodeId?: string | undefined;
556
681
  } | {
557
682
  type: "tag";
558
683
  tag: string;
684
+ nodeId?: string | undefined;
559
685
  attributes?: Record<string, string> | undefined;
560
686
  font?: {
561
687
  bold?: boolean | undefined;
@@ -570,11 +696,13 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
570
696
  } | undefined;
571
697
  } | {
572
698
  type: "fragment";
699
+ nodeId?: string | undefined;
573
700
  } | {
574
701
  type: "link-to-matrix-asset";
575
702
  matrixDomain: string;
576
703
  matrixAssetId: string;
577
704
  target: "_blank" | "_self" | "_parent" | "_top";
705
+ nodeId?: string | undefined;
578
706
  attributes?: (Record<string, string> & {
579
707
  target?: undefined;
580
708
  href?: undefined;
@@ -583,10 +711,28 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
583
711
  alignment: "left" | "center" | "right" | "justify";
584
712
  } | undefined;
585
713
  matrixIdentifier?: string | undefined;
714
+ } | {
715
+ type: "link-to-dam-asset";
716
+ target: "_blank" | "_self" | "_parent" | "_top";
717
+ damSystemType: "bynder";
718
+ damSystemIdentifier: string;
719
+ damObjectId: string;
720
+ nodeId?: string | undefined;
721
+ attributes?: (Record<string, string> & {
722
+ target?: undefined;
723
+ href?: undefined;
724
+ }) | undefined;
725
+ formattingOptions?: {
726
+ alignment: "left" | "center" | "right" | "justify";
727
+ } | undefined;
728
+ damAdditional?: {
729
+ variant?: string | undefined;
730
+ } | undefined;
586
731
  } | {
587
732
  type: "matrix-image";
588
733
  matrixDomain: string;
589
734
  matrixAssetId: string;
735
+ nodeId?: string | undefined;
590
736
  attributes?: (Record<string, string> & {
591
737
  src?: undefined;
592
738
  }) | undefined;
@@ -599,6 +745,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
599
745
  damSystemType: "bynder";
600
746
  damSystemIdentifier: string;
601
747
  damObjectId: string;
748
+ nodeId?: string | undefined;
602
749
  attributes?: (Record<string, string> & {
603
750
  src?: undefined;
604
751
  }) | undefined;
@@ -612,6 +759,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
612
759
  type: "component";
613
760
  componentId: string;
614
761
  componentSet: string;
762
+ nodeId?: string | undefined;
615
763
  componentType?: "server" | "edge" | undefined;
616
764
  contentItem?: {
617
765
  id: string;
@@ -622,6 +770,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
622
770
  } | {
623
771
  type: "variation";
624
772
  default: {};
773
+ nodeId?: string | undefined;
625
774
  } | {
626
775
  type: "layout";
627
776
  layout: {
@@ -647,6 +796,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
647
796
  }>;
648
797
  name: string;
649
798
  };
799
+ nodeId?: string | undefined;
650
800
  })[];
651
801
  }>;
652
802
  }, "strip", z.ZodTypeAny, {
@@ -654,8 +804,10 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
654
804
  main: (import("../layout-content").LayoutVariationNode | ({
655
805
  value: string;
656
806
  type: "text";
807
+ nodeId: string;
657
808
  } | {
658
809
  type: "matrix-image";
810
+ nodeId: string;
659
811
  matrixDomain: string;
660
812
  matrixAssetId: string;
661
813
  attributes?: (Record<string, string> & {
@@ -667,6 +819,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
667
819
  matrixIdentifier?: string | undefined;
668
820
  } | {
669
821
  type: "dam-image";
822
+ nodeId: string;
670
823
  damSystemType: "bynder";
671
824
  damSystemIdentifier: string;
672
825
  damObjectId: string;
@@ -681,6 +834,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
681
834
  } | undefined;
682
835
  } | {
683
836
  type: "component";
837
+ nodeId: string;
684
838
  componentId: string;
685
839
  componentSet: string;
686
840
  componentType?: "server" | "edge" | undefined;
@@ -692,6 +846,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
692
846
  } | undefined;
693
847
  } | (({
694
848
  type: "tag";
849
+ nodeId: string;
695
850
  tag: string;
696
851
  attributes?: Record<string, string> | undefined;
697
852
  font?: {
@@ -707,8 +862,10 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
707
862
  } | undefined;
708
863
  } | {
709
864
  type: "fragment";
865
+ nodeId: string;
710
866
  } | {
711
867
  type: "link-to-matrix-asset";
868
+ nodeId: string;
712
869
  matrixDomain: string;
713
870
  matrixAssetId: string;
714
871
  target: "_blank" | "_self" | "_parent" | "_top";
@@ -720,6 +877,23 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
720
877
  alignment: "left" | "center" | "right" | "justify";
721
878
  } | undefined;
722
879
  matrixIdentifier?: string | undefined;
880
+ } | {
881
+ type: "link-to-dam-asset";
882
+ nodeId: string;
883
+ target: "_blank" | "_self" | "_parent" | "_top";
884
+ damSystemType: "bynder";
885
+ damSystemIdentifier: string;
886
+ damObjectId: string;
887
+ attributes?: (Record<string, string> & {
888
+ target?: undefined;
889
+ href?: undefined;
890
+ }) | undefined;
891
+ formattingOptions?: {
892
+ alignment: "left" | "center" | "right" | "justify";
893
+ } | undefined;
894
+ damAdditional?: {
895
+ variant?: string | undefined;
896
+ } | undefined;
723
897
  }) & {
724
898
  children: import("../layout-content").LayoutContentNodes[];
725
899
  })) | import("../layout-content").DeveloperDefinedLayoutNode)[];
@@ -742,9 +916,11 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
742
916
  main: ({
743
917
  value: string;
744
918
  type: "text";
919
+ nodeId?: string | undefined;
745
920
  } | {
746
921
  type: "tag";
747
922
  tag: string;
923
+ nodeId?: string | undefined;
748
924
  attributes?: Record<string, string> | undefined;
749
925
  font?: {
750
926
  bold?: boolean | undefined;
@@ -759,11 +935,13 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
759
935
  } | undefined;
760
936
  } | {
761
937
  type: "fragment";
938
+ nodeId?: string | undefined;
762
939
  } | {
763
940
  type: "link-to-matrix-asset";
764
941
  matrixDomain: string;
765
942
  matrixAssetId: string;
766
943
  target: "_blank" | "_self" | "_parent" | "_top";
944
+ nodeId?: string | undefined;
767
945
  attributes?: (Record<string, string> & {
768
946
  target?: undefined;
769
947
  href?: undefined;
@@ -772,10 +950,28 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
772
950
  alignment: "left" | "center" | "right" | "justify";
773
951
  } | undefined;
774
952
  matrixIdentifier?: string | undefined;
953
+ } | {
954
+ type: "link-to-dam-asset";
955
+ target: "_blank" | "_self" | "_parent" | "_top";
956
+ damSystemType: "bynder";
957
+ damSystemIdentifier: string;
958
+ damObjectId: string;
959
+ nodeId?: string | undefined;
960
+ attributes?: (Record<string, string> & {
961
+ target?: undefined;
962
+ href?: undefined;
963
+ }) | undefined;
964
+ formattingOptions?: {
965
+ alignment: "left" | "center" | "right" | "justify";
966
+ } | undefined;
967
+ damAdditional?: {
968
+ variant?: string | undefined;
969
+ } | undefined;
775
970
  } | {
776
971
  type: "matrix-image";
777
972
  matrixDomain: string;
778
973
  matrixAssetId: string;
974
+ nodeId?: string | undefined;
779
975
  attributes?: (Record<string, string> & {
780
976
  src?: undefined;
781
977
  }) | undefined;
@@ -788,6 +984,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
788
984
  damSystemType: "bynder";
789
985
  damSystemIdentifier: string;
790
986
  damObjectId: string;
987
+ nodeId?: string | undefined;
791
988
  attributes?: (Record<string, string> & {
792
989
  src?: undefined;
793
990
  }) | undefined;
@@ -801,6 +998,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
801
998
  type: "component";
802
999
  componentId: string;
803
1000
  componentSet: string;
1001
+ nodeId?: string | undefined;
804
1002
  componentType?: "server" | "edge" | undefined;
805
1003
  contentItem?: {
806
1004
  id: string;
@@ -811,6 +1009,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
811
1009
  } | {
812
1010
  type: "variation";
813
1011
  default: {};
1012
+ nodeId?: string | undefined;
814
1013
  } | {
815
1014
  type: "layout";
816
1015
  layout: {
@@ -836,6 +1035,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
836
1035
  }>;
837
1036
  name: string;
838
1037
  };
1038
+ nodeId?: string | undefined;
839
1039
  })[];
840
1040
  };
841
1041
  name: "custom-layout";
@@ -862,9 +1062,11 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
862
1062
  main: ({
863
1063
  value: string;
864
1064
  type: "text";
1065
+ nodeId?: string | undefined;
865
1066
  } | {
866
1067
  type: "tag";
867
1068
  tag: string;
1069
+ nodeId?: string | undefined;
868
1070
  attributes?: Record<string, string> | undefined;
869
1071
  font?: {
870
1072
  bold?: boolean | undefined;
@@ -879,11 +1081,13 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
879
1081
  } | undefined;
880
1082
  } | {
881
1083
  type: "fragment";
1084
+ nodeId?: string | undefined;
882
1085
  } | {
883
1086
  type: "link-to-matrix-asset";
884
1087
  matrixDomain: string;
885
1088
  matrixAssetId: string;
886
1089
  target: "_blank" | "_self" | "_parent" | "_top";
1090
+ nodeId?: string | undefined;
887
1091
  attributes?: (Record<string, string> & {
888
1092
  target?: undefined;
889
1093
  href?: undefined;
@@ -892,10 +1096,28 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
892
1096
  alignment: "left" | "center" | "right" | "justify";
893
1097
  } | undefined;
894
1098
  matrixIdentifier?: string | undefined;
1099
+ } | {
1100
+ type: "link-to-dam-asset";
1101
+ target: "_blank" | "_self" | "_parent" | "_top";
1102
+ damSystemType: "bynder";
1103
+ damSystemIdentifier: string;
1104
+ damObjectId: string;
1105
+ nodeId?: string | undefined;
1106
+ attributes?: (Record<string, string> & {
1107
+ target?: undefined;
1108
+ href?: undefined;
1109
+ }) | undefined;
1110
+ formattingOptions?: {
1111
+ alignment: "left" | "center" | "right" | "justify";
1112
+ } | undefined;
1113
+ damAdditional?: {
1114
+ variant?: string | undefined;
1115
+ } | undefined;
895
1116
  } | {
896
1117
  type: "matrix-image";
897
1118
  matrixDomain: string;
898
1119
  matrixAssetId: string;
1120
+ nodeId?: string | undefined;
899
1121
  attributes?: (Record<string, string> & {
900
1122
  src?: undefined;
901
1123
  }) | undefined;
@@ -908,6 +1130,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
908
1130
  damSystemType: "bynder";
909
1131
  damSystemIdentifier: string;
910
1132
  damObjectId: string;
1133
+ nodeId?: string | undefined;
911
1134
  attributes?: (Record<string, string> & {
912
1135
  src?: undefined;
913
1136
  }) | undefined;
@@ -921,6 +1144,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
921
1144
  type: "component";
922
1145
  componentId: string;
923
1146
  componentSet: string;
1147
+ nodeId?: string | undefined;
924
1148
  componentType?: "server" | "edge" | undefined;
925
1149
  contentItem?: {
926
1150
  id: string;
@@ -931,6 +1155,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
931
1155
  } | {
932
1156
  type: "variation";
933
1157
  default: {};
1158
+ nodeId?: string | undefined;
934
1159
  } | {
935
1160
  type: "layout";
936
1161
  layout: {
@@ -956,6 +1181,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
956
1181
  }>;
957
1182
  name: string;
958
1183
  };
1184
+ nodeId?: string | undefined;
959
1185
  })[];
960
1186
  };
961
1187
  name: "custom-layout";