@squiz/dx-page-contents-lib 1.78.0 → 1.79.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 (46) hide show
  1. package/lib/formatted-text.d.ts +26 -56
  2. package/lib/formatted-text.js +7 -48
  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 +322 -516
  7. package/lib/layout-content.js +30 -24
  8. package/lib/layout-content.js.map +1 -1
  9. package/lib/layout-content.spec.js +49 -10
  10. package/lib/layout-content.spec.js.map +1 -1
  11. package/lib/layouts/custom-layout.d.ts +6 -1056
  12. package/lib/layouts/index.d.ts +10 -4683
  13. package/lib/layouts/index.js +0 -6
  14. package/lib/layouts/index.js.map +1 -1
  15. package/lib/layouts/raw.layout.d.ts +5 -927
  16. package/lib/mocks/PageContentsHelpers.d.ts +37 -6359
  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 +56 -38
  21. package/lib/mocks/PageContentsMocks.js.map +1 -1
  22. package/lib/page-contents-lib.d.ts +19 -238
  23. package/lib/page-contents-lib.js +40 -67
  24. package/lib/page-contents-lib.js.map +1 -1
  25. package/lib/page-contents-lib.spec.js +231 -254
  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 +2 -2
  41. package/lib/layouts/single-column.layout.d.ts +0 -950
  42. package/lib/layouts/single-column.layout.js +0 -15
  43. package/lib/layouts/single-column.layout.js.map +0 -1
  44. package/lib/layouts/two-column.layout.d.ts +0 -1883
  45. package/lib/layouts/two-column.layout.js +0 -16
  46. package/lib/layouts/two-column.layout.js.map +0 -1
@@ -2,946 +2,24 @@ import { z } from 'zod';
2
2
  export declare const RawLayout: z.ZodObject<{
3
3
  name: z.ZodLiteral<"layout-raw">;
4
4
  content: z.ZodObject<{
5
- main: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodType<{
6
- value: string;
7
- type: "text";
8
- nodeId: string;
9
- } | {
10
- type: "matrix-image";
11
- nodeId: string;
12
- matrixDomain: string;
13
- matrixAssetId: string;
14
- attributes?: (Record<string, string> & {
15
- src?: undefined;
16
- }) | undefined;
17
- formattingOptions?: {
18
- alignment: "left" | "center" | "right" | "justify";
19
- } | undefined;
20
- matrixIdentifier?: string | undefined;
21
- } | {
22
- type: "dam-image";
23
- nodeId: string;
24
- damSystemType: "bynder";
25
- damSystemIdentifier: string;
26
- damObjectId: string;
27
- attributes?: (Record<string, string> & {
28
- src?: undefined;
29
- }) | undefined;
30
- formattingOptions?: {
31
- alignment: "left" | "center" | "right" | "justify";
32
- } | undefined;
33
- damAdditional?: {
34
- variant?: string | undefined;
35
- } | undefined;
36
- } | {
37
- type: "component";
38
- nodeId: string;
39
- componentId: string;
40
- componentSet: string;
41
- i18n?: Record<string, {
42
- id: string;
43
- } | {
44
- content: Record<string, unknown>;
45
- schemaName: string;
46
- }> | undefined;
47
- componentType?: "server" | "edge" | undefined;
48
- contentItem?: {
49
- id: string;
50
- } | {
51
- content: Record<string, unknown>;
52
- schemaName: string;
53
- } | undefined;
54
- } | (({
55
- type: "tag";
56
- nodeId: string;
57
- tag: string;
58
- attributes?: Record<string, string> | undefined;
59
- font?: {
60
- bold?: boolean | undefined;
61
- italics?: boolean | undefined;
62
- underline?: boolean | undefined;
63
- color?: string | undefined;
64
- size?: string | undefined;
65
- fontFamily?: string | undefined;
66
- } | undefined;
67
- formattingOptions?: {
68
- alignment: "left" | "center" | "right" | "justify";
69
- } | undefined;
70
- } | {
71
- type: "fragment";
72
- nodeId: string;
73
- i18n?: Record<string, {}> | undefined;
74
- } | {
75
- type: "link-to-matrix-asset";
76
- nodeId: string;
77
- matrixDomain: string;
78
- matrixAssetId: string;
79
- target: "_blank" | "_self" | "_parent" | "_top";
80
- attributes?: (Record<string, string> & {
81
- target?: undefined;
82
- href?: undefined;
83
- }) | undefined;
84
- formattingOptions?: {
85
- alignment: "left" | "center" | "right" | "justify";
86
- } | undefined;
87
- matrixIdentifier?: string | undefined;
88
- } | {
89
- type: "link-to-dam-asset";
90
- nodeId: string;
91
- target: "_blank" | "_self" | "_parent" | "_top";
92
- damSystemType: "bynder";
93
- damSystemIdentifier: string;
94
- damObjectId: string;
95
- attributes?: (Record<string, string> & {
96
- target?: undefined;
97
- href?: undefined;
98
- }) | undefined;
99
- formattingOptions?: {
100
- alignment: "left" | "center" | "right" | "justify";
101
- } | undefined;
102
- damAdditional?: {
103
- variant?: string | undefined;
104
- } | undefined;
105
- }) & {
106
- children: import("../layout-content").LayoutContentNodes[];
107
- }), z.ZodTypeDef, {
108
- value: string;
109
- type: "text";
110
- nodeId?: string | undefined;
111
- } | {
112
- type: "tag";
113
- tag: string;
114
- nodeId?: string | undefined;
115
- attributes?: Record<string, string> | undefined;
116
- font?: {
117
- bold?: boolean | undefined;
118
- italics?: boolean | undefined;
119
- underline?: boolean | undefined;
120
- color?: string | undefined;
121
- size?: string | undefined;
122
- fontFamily?: string | undefined;
123
- } | undefined;
124
- formattingOptions?: {
125
- alignment: "left" | "center" | "right" | "justify";
126
- } | undefined;
127
- } | {
128
- type: "fragment";
129
- nodeId?: string | undefined;
130
- i18n?: Record<string, {}> | undefined;
131
- } | {
132
- type: "link-to-matrix-asset";
133
- matrixDomain: string;
134
- matrixAssetId: string;
135
- target: "_blank" | "_self" | "_parent" | "_top";
136
- nodeId?: string | undefined;
137
- attributes?: (Record<string, string> & {
138
- target?: undefined;
139
- href?: undefined;
140
- }) | undefined;
141
- formattingOptions?: {
142
- alignment: "left" | "center" | "right" | "justify";
143
- } | undefined;
144
- matrixIdentifier?: string | undefined;
145
- } | {
146
- type: "link-to-dam-asset";
147
- target: "_blank" | "_self" | "_parent" | "_top";
148
- damSystemType: "bynder";
149
- damSystemIdentifier: string;
150
- damObjectId: string;
151
- nodeId?: string | undefined;
152
- attributes?: (Record<string, string> & {
153
- target?: undefined;
154
- href?: undefined;
155
- }) | undefined;
156
- formattingOptions?: {
157
- alignment: "left" | "center" | "right" | "justify";
158
- } | undefined;
159
- damAdditional?: {
160
- variant?: string | undefined;
161
- } | undefined;
162
- } | {
163
- type: "matrix-image";
164
- matrixDomain: string;
165
- matrixAssetId: string;
166
- nodeId?: string | undefined;
167
- attributes?: (Record<string, string> & {
168
- src?: undefined;
169
- }) | undefined;
170
- formattingOptions?: {
171
- alignment: "left" | "center" | "right" | "justify";
172
- } | undefined;
173
- matrixIdentifier?: string | undefined;
174
- } | {
175
- type: "dam-image";
176
- damSystemType: "bynder";
177
- damSystemIdentifier: string;
178
- damObjectId: string;
179
- nodeId?: string | undefined;
180
- attributes?: (Record<string, string> & {
181
- src?: undefined;
182
- }) | undefined;
183
- formattingOptions?: {
184
- alignment: "left" | "center" | "right" | "justify";
185
- } | undefined;
186
- damAdditional?: {
187
- variant?: string | undefined;
188
- } | undefined;
189
- } | {
190
- type: "component";
191
- componentId: string;
192
- componentSet: string;
193
- nodeId?: string | undefined;
194
- i18n?: Record<string, {
195
- id: string;
196
- } | {
197
- content: Record<string, unknown>;
198
- schemaName: string;
199
- }> | undefined;
200
- componentType?: "server" | "edge" | undefined;
201
- contentItem?: {
202
- id: string;
203
- } | {
204
- content: Record<string, unknown>;
205
- schemaName: string;
206
- } | undefined;
207
- }>, z.ZodType<import("../layout-content").LayoutVariationNode, z.ZodTypeDef, {
208
- type: "variation";
209
- default: {};
210
- nodeId?: string | undefined;
211
- }>, z.ZodType<import("../layout-content").DeveloperDefinedLayoutNode, z.ZodTypeDef, {
212
- type: "layout";
213
- layout: {
214
- options: Record<string, {
215
- values: string[];
216
- displayName: string;
217
- description: string;
218
- selectedValue: string;
219
- }>;
220
- name: string;
221
- displayName: string;
222
- description: string;
223
- template: string;
224
- zones: Record<string, {
225
- displayName: string;
226
- description: string;
227
- minNodes: number;
228
- maxNodes?: number | undefined;
229
- }>;
230
- } | {
231
- options: Record<string, {
232
- selectedValue: string;
233
- }>;
234
- name: string;
235
- };
236
- nodeId?: string | undefined;
237
- }>]>, "many">, (import("../layout-content").LayoutVariationNode | ({
238
- value: string;
239
- type: "text";
240
- nodeId: string;
241
- } | {
242
- type: "matrix-image";
243
- nodeId: string;
244
- matrixDomain: string;
245
- matrixAssetId: string;
246
- attributes?: (Record<string, string> & {
247
- src?: undefined;
248
- }) | undefined;
249
- formattingOptions?: {
250
- alignment: "left" | "center" | "right" | "justify";
251
- } | undefined;
252
- matrixIdentifier?: string | undefined;
253
- } | {
254
- type: "dam-image";
255
- nodeId: string;
256
- damSystemType: "bynder";
257
- damSystemIdentifier: string;
258
- damObjectId: string;
259
- attributes?: (Record<string, string> & {
260
- src?: undefined;
261
- }) | undefined;
262
- formattingOptions?: {
263
- alignment: "left" | "center" | "right" | "justify";
264
- } | undefined;
265
- damAdditional?: {
266
- variant?: string | undefined;
267
- } | undefined;
268
- } | {
269
- type: "component";
270
- nodeId: string;
271
- componentId: string;
272
- componentSet: string;
273
- i18n?: Record<string, {
274
- id: string;
275
- } | {
276
- content: Record<string, unknown>;
277
- schemaName: string;
278
- }> | undefined;
279
- componentType?: "server" | "edge" | undefined;
280
- contentItem?: {
281
- id: string;
282
- } | {
283
- content: Record<string, unknown>;
284
- schemaName: string;
285
- } | undefined;
286
- } | (({
287
- type: "tag";
288
- nodeId: string;
289
- tag: string;
290
- attributes?: Record<string, string> | undefined;
291
- font?: {
292
- bold?: boolean | undefined;
293
- italics?: boolean | undefined;
294
- underline?: boolean | undefined;
295
- color?: string | undefined;
296
- size?: string | undefined;
297
- fontFamily?: string | undefined;
298
- } | undefined;
299
- formattingOptions?: {
300
- alignment: "left" | "center" | "right" | "justify";
301
- } | undefined;
302
- } | {
303
- type: "fragment";
304
- nodeId: string;
305
- i18n?: Record<string, {}> | undefined;
306
- } | {
307
- type: "link-to-matrix-asset";
308
- nodeId: string;
309
- matrixDomain: string;
310
- matrixAssetId: string;
311
- target: "_blank" | "_self" | "_parent" | "_top";
312
- attributes?: (Record<string, string> & {
313
- target?: undefined;
314
- href?: undefined;
315
- }) | undefined;
316
- formattingOptions?: {
317
- alignment: "left" | "center" | "right" | "justify";
318
- } | undefined;
319
- matrixIdentifier?: string | undefined;
320
- } | {
321
- type: "link-to-dam-asset";
322
- nodeId: string;
323
- target: "_blank" | "_self" | "_parent" | "_top";
324
- damSystemType: "bynder";
325
- damSystemIdentifier: string;
326
- damObjectId: string;
327
- attributes?: (Record<string, string> & {
328
- target?: undefined;
329
- href?: undefined;
330
- }) | undefined;
331
- formattingOptions?: {
332
- alignment: "left" | "center" | "right" | "justify";
333
- } | undefined;
334
- damAdditional?: {
335
- variant?: string | undefined;
336
- } | undefined;
337
- }) & {
338
- children: import("../layout-content").LayoutContentNodes[];
339
- })) | import("../layout-content").DeveloperDefinedLayoutNode)[], ({
340
- value: string;
341
- type: "text";
342
- nodeId?: string | undefined;
343
- } | {
344
- type: "tag";
345
- tag: string;
346
- nodeId?: string | undefined;
347
- attributes?: Record<string, string> | undefined;
348
- font?: {
349
- bold?: boolean | undefined;
350
- italics?: boolean | undefined;
351
- underline?: boolean | undefined;
352
- color?: string | undefined;
353
- size?: string | undefined;
354
- fontFamily?: string | undefined;
355
- } | undefined;
356
- formattingOptions?: {
357
- alignment: "left" | "center" | "right" | "justify";
358
- } | undefined;
359
- } | {
360
- type: "fragment";
361
- nodeId?: string | undefined;
362
- i18n?: Record<string, {}> | undefined;
363
- } | {
364
- type: "link-to-matrix-asset";
365
- matrixDomain: string;
366
- matrixAssetId: string;
367
- target: "_blank" | "_self" | "_parent" | "_top";
368
- nodeId?: string | undefined;
369
- attributes?: (Record<string, string> & {
370
- target?: undefined;
371
- href?: undefined;
372
- }) | undefined;
373
- formattingOptions?: {
374
- alignment: "left" | "center" | "right" | "justify";
375
- } | undefined;
376
- matrixIdentifier?: string | undefined;
377
- } | {
378
- type: "link-to-dam-asset";
379
- target: "_blank" | "_self" | "_parent" | "_top";
380
- damSystemType: "bynder";
381
- damSystemIdentifier: string;
382
- damObjectId: string;
383
- nodeId?: string | undefined;
384
- attributes?: (Record<string, string> & {
385
- target?: undefined;
386
- href?: undefined;
387
- }) | undefined;
388
- formattingOptions?: {
389
- alignment: "left" | "center" | "right" | "justify";
390
- } | undefined;
391
- damAdditional?: {
392
- variant?: string | undefined;
393
- } | undefined;
394
- } | {
395
- type: "matrix-image";
396
- matrixDomain: string;
397
- matrixAssetId: string;
398
- nodeId?: string | undefined;
399
- attributes?: (Record<string, string> & {
400
- src?: undefined;
401
- }) | undefined;
402
- formattingOptions?: {
403
- alignment: "left" | "center" | "right" | "justify";
404
- } | undefined;
405
- matrixIdentifier?: string | undefined;
406
- } | {
407
- type: "dam-image";
408
- damSystemType: "bynder";
409
- damSystemIdentifier: string;
410
- damObjectId: string;
411
- nodeId?: string | undefined;
412
- attributes?: (Record<string, string> & {
413
- src?: undefined;
414
- }) | undefined;
415
- formattingOptions?: {
416
- alignment: "left" | "center" | "right" | "justify";
417
- } | undefined;
418
- damAdditional?: {
419
- variant?: string | undefined;
420
- } | undefined;
421
- } | {
422
- type: "component";
423
- componentId: string;
424
- componentSet: string;
425
- nodeId?: string | undefined;
426
- i18n?: Record<string, {
427
- id: string;
428
- } | {
429
- content: Record<string, unknown>;
430
- schemaName: string;
431
- }> | undefined;
432
- componentType?: "server" | "edge" | undefined;
433
- contentItem?: {
434
- id: string;
435
- } | {
436
- content: Record<string, unknown>;
437
- schemaName: string;
438
- } | undefined;
439
- } | {
440
- type: "variation";
441
- default: {};
442
- nodeId?: string | undefined;
443
- } | {
444
- type: "layout";
445
- layout: {
446
- options: Record<string, {
447
- values: string[];
448
- displayName: string;
449
- description: string;
450
- selectedValue: string;
451
- }>;
452
- name: string;
453
- displayName: string;
454
- description: string;
455
- template: string;
456
- zones: Record<string, {
457
- displayName: string;
458
- description: string;
459
- minNodes: number;
460
- maxNodes?: number | undefined;
461
- }>;
462
- } | {
463
- options: Record<string, {
464
- selectedValue: string;
465
- }>;
466
- name: string;
467
- };
5
+ main: z.ZodType<import("../layout-content").LayoutContentNodes[], z.ZodTypeDef, (Omit<import("../layout-content").LayoutContentNodes, "nodeId"> & {
468
6
  nodeId?: string | undefined;
469
7
  })[]>;
470
8
  }, "strip", z.ZodTypeAny, {
471
- main: (import("../layout-content").LayoutVariationNode | ({
472
- value: string;
473
- type: "text";
474
- nodeId: string;
475
- } | {
476
- type: "matrix-image";
477
- nodeId: string;
478
- matrixDomain: string;
479
- matrixAssetId: string;
480
- attributes?: (Record<string, string> & {
481
- src?: undefined;
482
- }) | undefined;
483
- formattingOptions?: {
484
- alignment: "left" | "center" | "right" | "justify";
485
- } | undefined;
486
- matrixIdentifier?: string | undefined;
487
- } | {
488
- type: "dam-image";
489
- nodeId: string;
490
- damSystemType: "bynder";
491
- damSystemIdentifier: string;
492
- damObjectId: string;
493
- attributes?: (Record<string, string> & {
494
- src?: undefined;
495
- }) | undefined;
496
- formattingOptions?: {
497
- alignment: "left" | "center" | "right" | "justify";
498
- } | undefined;
499
- damAdditional?: {
500
- variant?: string | undefined;
501
- } | undefined;
502
- } | {
503
- type: "component";
504
- nodeId: string;
505
- componentId: string;
506
- componentSet: string;
507
- i18n?: Record<string, {
508
- id: string;
509
- } | {
510
- content: Record<string, unknown>;
511
- schemaName: string;
512
- }> | undefined;
513
- componentType?: "server" | "edge" | undefined;
514
- contentItem?: {
515
- id: string;
516
- } | {
517
- content: Record<string, unknown>;
518
- schemaName: string;
519
- } | undefined;
520
- } | (({
521
- type: "tag";
522
- nodeId: string;
523
- tag: string;
524
- attributes?: Record<string, string> | undefined;
525
- font?: {
526
- bold?: boolean | undefined;
527
- italics?: boolean | undefined;
528
- underline?: boolean | undefined;
529
- color?: string | undefined;
530
- size?: string | undefined;
531
- fontFamily?: string | undefined;
532
- } | undefined;
533
- formattingOptions?: {
534
- alignment: "left" | "center" | "right" | "justify";
535
- } | undefined;
536
- } | {
537
- type: "fragment";
538
- nodeId: string;
539
- i18n?: Record<string, {}> | undefined;
540
- } | {
541
- type: "link-to-matrix-asset";
542
- nodeId: string;
543
- matrixDomain: string;
544
- matrixAssetId: string;
545
- target: "_blank" | "_self" | "_parent" | "_top";
546
- attributes?: (Record<string, string> & {
547
- target?: undefined;
548
- href?: undefined;
549
- }) | undefined;
550
- formattingOptions?: {
551
- alignment: "left" | "center" | "right" | "justify";
552
- } | undefined;
553
- matrixIdentifier?: string | undefined;
554
- } | {
555
- type: "link-to-dam-asset";
556
- nodeId: string;
557
- target: "_blank" | "_self" | "_parent" | "_top";
558
- damSystemType: "bynder";
559
- damSystemIdentifier: string;
560
- damObjectId: string;
561
- attributes?: (Record<string, string> & {
562
- target?: undefined;
563
- href?: undefined;
564
- }) | undefined;
565
- formattingOptions?: {
566
- alignment: "left" | "center" | "right" | "justify";
567
- } | undefined;
568
- damAdditional?: {
569
- variant?: string | undefined;
570
- } | undefined;
571
- }) & {
572
- children: import("../layout-content").LayoutContentNodes[];
573
- })) | import("../layout-content").DeveloperDefinedLayoutNode)[];
9
+ main: import("../layout-content").LayoutContentNodes[];
574
10
  }, {
575
- main: ({
576
- value: string;
577
- type: "text";
578
- nodeId?: string | undefined;
579
- } | {
580
- type: "tag";
581
- tag: string;
582
- nodeId?: string | undefined;
583
- attributes?: Record<string, string> | undefined;
584
- font?: {
585
- bold?: boolean | undefined;
586
- italics?: boolean | undefined;
587
- underline?: boolean | undefined;
588
- color?: string | undefined;
589
- size?: string | undefined;
590
- fontFamily?: string | undefined;
591
- } | undefined;
592
- formattingOptions?: {
593
- alignment: "left" | "center" | "right" | "justify";
594
- } | undefined;
595
- } | {
596
- type: "fragment";
597
- nodeId?: string | undefined;
598
- i18n?: Record<string, {}> | undefined;
599
- } | {
600
- type: "link-to-matrix-asset";
601
- matrixDomain: string;
602
- matrixAssetId: string;
603
- target: "_blank" | "_self" | "_parent" | "_top";
604
- nodeId?: string | undefined;
605
- attributes?: (Record<string, string> & {
606
- target?: undefined;
607
- href?: undefined;
608
- }) | undefined;
609
- formattingOptions?: {
610
- alignment: "left" | "center" | "right" | "justify";
611
- } | undefined;
612
- matrixIdentifier?: string | undefined;
613
- } | {
614
- type: "link-to-dam-asset";
615
- target: "_blank" | "_self" | "_parent" | "_top";
616
- damSystemType: "bynder";
617
- damSystemIdentifier: string;
618
- damObjectId: string;
619
- nodeId?: string | undefined;
620
- attributes?: (Record<string, string> & {
621
- target?: undefined;
622
- href?: undefined;
623
- }) | undefined;
624
- formattingOptions?: {
625
- alignment: "left" | "center" | "right" | "justify";
626
- } | undefined;
627
- damAdditional?: {
628
- variant?: string | undefined;
629
- } | undefined;
630
- } | {
631
- type: "matrix-image";
632
- matrixDomain: string;
633
- matrixAssetId: string;
634
- nodeId?: string | undefined;
635
- attributes?: (Record<string, string> & {
636
- src?: undefined;
637
- }) | undefined;
638
- formattingOptions?: {
639
- alignment: "left" | "center" | "right" | "justify";
640
- } | undefined;
641
- matrixIdentifier?: string | undefined;
642
- } | {
643
- type: "dam-image";
644
- damSystemType: "bynder";
645
- damSystemIdentifier: string;
646
- damObjectId: string;
647
- nodeId?: string | undefined;
648
- attributes?: (Record<string, string> & {
649
- src?: undefined;
650
- }) | undefined;
651
- formattingOptions?: {
652
- alignment: "left" | "center" | "right" | "justify";
653
- } | undefined;
654
- damAdditional?: {
655
- variant?: string | undefined;
656
- } | undefined;
657
- } | {
658
- type: "component";
659
- componentId: string;
660
- componentSet: string;
661
- nodeId?: string | undefined;
662
- i18n?: Record<string, {
663
- id: string;
664
- } | {
665
- content: Record<string, unknown>;
666
- schemaName: string;
667
- }> | undefined;
668
- componentType?: "server" | "edge" | undefined;
669
- contentItem?: {
670
- id: string;
671
- } | {
672
- content: Record<string, unknown>;
673
- schemaName: string;
674
- } | undefined;
675
- } | {
676
- type: "variation";
677
- default: {};
678
- nodeId?: string | undefined;
679
- } | {
680
- type: "layout";
681
- layout: {
682
- options: Record<string, {
683
- values: string[];
684
- displayName: string;
685
- description: string;
686
- selectedValue: string;
687
- }>;
688
- name: string;
689
- displayName: string;
690
- description: string;
691
- template: string;
692
- zones: Record<string, {
693
- displayName: string;
694
- description: string;
695
- minNodes: number;
696
- maxNodes?: number | undefined;
697
- }>;
698
- } | {
699
- options: Record<string, {
700
- selectedValue: string;
701
- }>;
702
- name: string;
703
- };
11
+ main: (Omit<import("../layout-content").LayoutContentNodes, "nodeId"> & {
704
12
  nodeId?: string | undefined;
705
13
  })[];
706
14
  }>;
707
15
  }, "strip", z.ZodTypeAny, {
708
16
  content: {
709
- main: (import("../layout-content").LayoutVariationNode | ({
710
- value: string;
711
- type: "text";
712
- nodeId: string;
713
- } | {
714
- type: "matrix-image";
715
- nodeId: string;
716
- matrixDomain: string;
717
- matrixAssetId: string;
718
- attributes?: (Record<string, string> & {
719
- src?: undefined;
720
- }) | undefined;
721
- formattingOptions?: {
722
- alignment: "left" | "center" | "right" | "justify";
723
- } | undefined;
724
- matrixIdentifier?: string | undefined;
725
- } | {
726
- type: "dam-image";
727
- nodeId: string;
728
- damSystemType: "bynder";
729
- damSystemIdentifier: string;
730
- damObjectId: string;
731
- attributes?: (Record<string, string> & {
732
- src?: undefined;
733
- }) | undefined;
734
- formattingOptions?: {
735
- alignment: "left" | "center" | "right" | "justify";
736
- } | undefined;
737
- damAdditional?: {
738
- variant?: string | undefined;
739
- } | undefined;
740
- } | {
741
- type: "component";
742
- nodeId: string;
743
- componentId: string;
744
- componentSet: string;
745
- i18n?: Record<string, {
746
- id: string;
747
- } | {
748
- content: Record<string, unknown>;
749
- schemaName: string;
750
- }> | undefined;
751
- componentType?: "server" | "edge" | undefined;
752
- contentItem?: {
753
- id: string;
754
- } | {
755
- content: Record<string, unknown>;
756
- schemaName: string;
757
- } | undefined;
758
- } | (({
759
- type: "tag";
760
- nodeId: string;
761
- tag: string;
762
- attributes?: Record<string, string> | undefined;
763
- font?: {
764
- bold?: boolean | undefined;
765
- italics?: boolean | undefined;
766
- underline?: boolean | undefined;
767
- color?: string | undefined;
768
- size?: string | undefined;
769
- fontFamily?: string | undefined;
770
- } | undefined;
771
- formattingOptions?: {
772
- alignment: "left" | "center" | "right" | "justify";
773
- } | undefined;
774
- } | {
775
- type: "fragment";
776
- nodeId: string;
777
- i18n?: Record<string, {}> | undefined;
778
- } | {
779
- type: "link-to-matrix-asset";
780
- nodeId: string;
781
- matrixDomain: string;
782
- matrixAssetId: string;
783
- target: "_blank" | "_self" | "_parent" | "_top";
784
- attributes?: (Record<string, string> & {
785
- target?: undefined;
786
- href?: undefined;
787
- }) | undefined;
788
- formattingOptions?: {
789
- alignment: "left" | "center" | "right" | "justify";
790
- } | undefined;
791
- matrixIdentifier?: string | undefined;
792
- } | {
793
- type: "link-to-dam-asset";
794
- nodeId: string;
795
- target: "_blank" | "_self" | "_parent" | "_top";
796
- damSystemType: "bynder";
797
- damSystemIdentifier: string;
798
- damObjectId: string;
799
- attributes?: (Record<string, string> & {
800
- target?: undefined;
801
- href?: undefined;
802
- }) | undefined;
803
- formattingOptions?: {
804
- alignment: "left" | "center" | "right" | "justify";
805
- } | undefined;
806
- damAdditional?: {
807
- variant?: string | undefined;
808
- } | undefined;
809
- }) & {
810
- children: import("../layout-content").LayoutContentNodes[];
811
- })) | import("../layout-content").DeveloperDefinedLayoutNode)[];
17
+ main: import("../layout-content").LayoutContentNodes[];
812
18
  };
813
19
  name: "layout-raw";
814
20
  }, {
815
21
  content: {
816
- main: ({
817
- value: string;
818
- type: "text";
819
- nodeId?: string | undefined;
820
- } | {
821
- type: "tag";
822
- tag: string;
823
- nodeId?: string | undefined;
824
- attributes?: Record<string, string> | undefined;
825
- font?: {
826
- bold?: boolean | undefined;
827
- italics?: boolean | undefined;
828
- underline?: boolean | undefined;
829
- color?: string | undefined;
830
- size?: string | undefined;
831
- fontFamily?: string | undefined;
832
- } | undefined;
833
- formattingOptions?: {
834
- alignment: "left" | "center" | "right" | "justify";
835
- } | undefined;
836
- } | {
837
- type: "fragment";
838
- nodeId?: string | undefined;
839
- i18n?: Record<string, {}> | undefined;
840
- } | {
841
- type: "link-to-matrix-asset";
842
- matrixDomain: string;
843
- matrixAssetId: string;
844
- target: "_blank" | "_self" | "_parent" | "_top";
845
- nodeId?: string | undefined;
846
- attributes?: (Record<string, string> & {
847
- target?: undefined;
848
- href?: undefined;
849
- }) | undefined;
850
- formattingOptions?: {
851
- alignment: "left" | "center" | "right" | "justify";
852
- } | undefined;
853
- matrixIdentifier?: string | undefined;
854
- } | {
855
- type: "link-to-dam-asset";
856
- target: "_blank" | "_self" | "_parent" | "_top";
857
- damSystemType: "bynder";
858
- damSystemIdentifier: string;
859
- damObjectId: string;
860
- nodeId?: string | undefined;
861
- attributes?: (Record<string, string> & {
862
- target?: undefined;
863
- href?: undefined;
864
- }) | undefined;
865
- formattingOptions?: {
866
- alignment: "left" | "center" | "right" | "justify";
867
- } | undefined;
868
- damAdditional?: {
869
- variant?: string | undefined;
870
- } | undefined;
871
- } | {
872
- type: "matrix-image";
873
- matrixDomain: string;
874
- matrixAssetId: string;
875
- nodeId?: string | undefined;
876
- attributes?: (Record<string, string> & {
877
- src?: undefined;
878
- }) | undefined;
879
- formattingOptions?: {
880
- alignment: "left" | "center" | "right" | "justify";
881
- } | undefined;
882
- matrixIdentifier?: string | undefined;
883
- } | {
884
- type: "dam-image";
885
- damSystemType: "bynder";
886
- damSystemIdentifier: string;
887
- damObjectId: string;
888
- nodeId?: string | undefined;
889
- attributes?: (Record<string, string> & {
890
- src?: undefined;
891
- }) | undefined;
892
- formattingOptions?: {
893
- alignment: "left" | "center" | "right" | "justify";
894
- } | undefined;
895
- damAdditional?: {
896
- variant?: string | undefined;
897
- } | undefined;
898
- } | {
899
- type: "component";
900
- componentId: string;
901
- componentSet: string;
902
- nodeId?: string | undefined;
903
- i18n?: Record<string, {
904
- id: string;
905
- } | {
906
- content: Record<string, unknown>;
907
- schemaName: string;
908
- }> | undefined;
909
- componentType?: "server" | "edge" | undefined;
910
- contentItem?: {
911
- id: string;
912
- } | {
913
- content: Record<string, unknown>;
914
- schemaName: string;
915
- } | undefined;
916
- } | {
917
- type: "variation";
918
- default: {};
919
- nodeId?: string | undefined;
920
- } | {
921
- type: "layout";
922
- layout: {
923
- options: Record<string, {
924
- values: string[];
925
- displayName: string;
926
- description: string;
927
- selectedValue: string;
928
- }>;
929
- name: string;
930
- displayName: string;
931
- description: string;
932
- template: string;
933
- zones: Record<string, {
934
- displayName: string;
935
- description: string;
936
- minNodes: number;
937
- maxNodes?: number | undefined;
938
- }>;
939
- } | {
940
- options: Record<string, {
941
- selectedValue: string;
942
- }>;
943
- name: string;
944
- };
22
+ main: (Omit<import("../layout-content").LayoutContentNodes, "nodeId"> & {
945
23
  nodeId?: string | undefined;
946
24
  })[];
947
25
  };