@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.
- package/lib/formatted-text.d.ts +93 -0
- package/lib/formatted-text.js +62 -1
- package/lib/formatted-text.js.map +1 -1
- package/lib/formatted-text.spec.js +52 -0
- package/lib/formatted-text.spec.js.map +1 -1
- package/lib/layout-content.d.ts +168 -4
- package/lib/layout-content.js +2 -1
- package/lib/layout-content.js.map +1 -1
- package/lib/layout-content.spec.js +18 -6
- package/lib/layout-content.spec.js.map +1 -1
- package/lib/layouts/custom-layout.d.ts +226 -0
- package/lib/layouts/index.d.ts +1001 -1
- package/lib/layouts/raw.layout.d.ts +200 -0
- package/lib/layouts/single-column.layout.d.ts +200 -0
- package/lib/layouts/two-column.layout.d.ts +400 -0
- package/lib/mocks/PageContentsHelpers.d.ts +1351 -1
- package/lib/mocks/PageContentsHelpers.js +7 -0
- package/lib/mocks/PageContentsHelpers.js.map +1 -1
- package/lib/mocks/PageContentsMocks.d.ts +1 -0
- package/lib/mocks/PageContentsMocks.js +36 -0
- package/lib/mocks/PageContentsMocks.js.map +1 -1
- package/lib/page-contents-lib.d.ts +50 -0
- package/lib/page-contents-lib.spec.js +61 -15
- package/lib/page-contents-lib.spec.js.map +1 -1
- package/lib/resolvers/create-variant-resolver.js +6 -1
- package/lib/resolvers/create-variant-resolver.js.map +1 -1
- package/lib/resolvers/create-variant-resolver.spec.js +21 -17
- package/lib/resolvers/create-variant-resolver.spec.js.map +1 -1
- package/lib/resolvers/default-layout-resolver.spec.d.ts +1 -0
- package/lib/resolvers/default-layout-resolver.spec.js +36 -0
- package/lib/resolvers/default-layout-resolver.spec.js.map +1 -0
- package/lib/resolvers/default-variation-resolver.spec.js +8 -4
- package/lib/resolvers/default-variation-resolver.spec.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,8 +5,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
5
5
|
main: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodType<{
|
|
6
6
|
value: string;
|
|
7
7
|
type: "text";
|
|
8
|
+
nodeId: string;
|
|
8
9
|
} | {
|
|
9
10
|
type: "matrix-image";
|
|
11
|
+
nodeId: string;
|
|
10
12
|
matrixDomain: string;
|
|
11
13
|
matrixAssetId: string;
|
|
12
14
|
attributes?: (Record<string, string> & {
|
|
@@ -18,6 +20,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
18
20
|
matrixIdentifier?: string | undefined;
|
|
19
21
|
} | {
|
|
20
22
|
type: "dam-image";
|
|
23
|
+
nodeId: string;
|
|
21
24
|
damSystemType: "bynder";
|
|
22
25
|
damSystemIdentifier: string;
|
|
23
26
|
damObjectId: string;
|
|
@@ -32,6 +35,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
32
35
|
} | undefined;
|
|
33
36
|
} | {
|
|
34
37
|
type: "component";
|
|
38
|
+
nodeId: string;
|
|
35
39
|
componentId: string;
|
|
36
40
|
componentSet: string;
|
|
37
41
|
componentType?: "server" | "edge" | undefined;
|
|
@@ -43,6 +47,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
43
47
|
} | undefined;
|
|
44
48
|
} | (({
|
|
45
49
|
type: "tag";
|
|
50
|
+
nodeId: string;
|
|
46
51
|
tag: string;
|
|
47
52
|
attributes?: Record<string, string> | undefined;
|
|
48
53
|
font?: {
|
|
@@ -58,8 +63,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
58
63
|
} | undefined;
|
|
59
64
|
} | {
|
|
60
65
|
type: "fragment";
|
|
66
|
+
nodeId: string;
|
|
61
67
|
} | {
|
|
62
68
|
type: "link-to-matrix-asset";
|
|
69
|
+
nodeId: string;
|
|
63
70
|
matrixDomain: string;
|
|
64
71
|
matrixAssetId: string;
|
|
65
72
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
@@ -71,14 +78,33 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
71
78
|
alignment: "left" | "center" | "right" | "justify";
|
|
72
79
|
} | undefined;
|
|
73
80
|
matrixIdentifier?: string | undefined;
|
|
81
|
+
} | {
|
|
82
|
+
type: "link-to-dam-asset";
|
|
83
|
+
nodeId: string;
|
|
84
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
85
|
+
damSystemType: "bynder";
|
|
86
|
+
damSystemIdentifier: string;
|
|
87
|
+
damObjectId: string;
|
|
88
|
+
attributes?: (Record<string, string> & {
|
|
89
|
+
target?: undefined;
|
|
90
|
+
href?: undefined;
|
|
91
|
+
}) | undefined;
|
|
92
|
+
formattingOptions?: {
|
|
93
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
94
|
+
} | undefined;
|
|
95
|
+
damAdditional?: {
|
|
96
|
+
variant?: string | undefined;
|
|
97
|
+
} | undefined;
|
|
74
98
|
}) & {
|
|
75
99
|
children: import("../layout-content").LayoutContentNodes[];
|
|
76
100
|
}), z.ZodTypeDef, {
|
|
77
101
|
value: string;
|
|
78
102
|
type: "text";
|
|
103
|
+
nodeId?: string | undefined;
|
|
79
104
|
} | {
|
|
80
105
|
type: "tag";
|
|
81
106
|
tag: string;
|
|
107
|
+
nodeId?: string | undefined;
|
|
82
108
|
attributes?: Record<string, string> | undefined;
|
|
83
109
|
font?: {
|
|
84
110
|
bold?: boolean | undefined;
|
|
@@ -93,11 +119,13 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
93
119
|
} | undefined;
|
|
94
120
|
} | {
|
|
95
121
|
type: "fragment";
|
|
122
|
+
nodeId?: string | undefined;
|
|
96
123
|
} | {
|
|
97
124
|
type: "link-to-matrix-asset";
|
|
98
125
|
matrixDomain: string;
|
|
99
126
|
matrixAssetId: string;
|
|
100
127
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
128
|
+
nodeId?: string | undefined;
|
|
101
129
|
attributes?: (Record<string, string> & {
|
|
102
130
|
target?: undefined;
|
|
103
131
|
href?: undefined;
|
|
@@ -106,10 +134,28 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
106
134
|
alignment: "left" | "center" | "right" | "justify";
|
|
107
135
|
} | undefined;
|
|
108
136
|
matrixIdentifier?: string | undefined;
|
|
137
|
+
} | {
|
|
138
|
+
type: "link-to-dam-asset";
|
|
139
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
140
|
+
damSystemType: "bynder";
|
|
141
|
+
damSystemIdentifier: string;
|
|
142
|
+
damObjectId: string;
|
|
143
|
+
nodeId?: string | undefined;
|
|
144
|
+
attributes?: (Record<string, string> & {
|
|
145
|
+
target?: undefined;
|
|
146
|
+
href?: undefined;
|
|
147
|
+
}) | undefined;
|
|
148
|
+
formattingOptions?: {
|
|
149
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
150
|
+
} | undefined;
|
|
151
|
+
damAdditional?: {
|
|
152
|
+
variant?: string | undefined;
|
|
153
|
+
} | undefined;
|
|
109
154
|
} | {
|
|
110
155
|
type: "matrix-image";
|
|
111
156
|
matrixDomain: string;
|
|
112
157
|
matrixAssetId: string;
|
|
158
|
+
nodeId?: string | undefined;
|
|
113
159
|
attributes?: (Record<string, string> & {
|
|
114
160
|
src?: undefined;
|
|
115
161
|
}) | undefined;
|
|
@@ -122,6 +168,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
122
168
|
damSystemType: "bynder";
|
|
123
169
|
damSystemIdentifier: string;
|
|
124
170
|
damObjectId: string;
|
|
171
|
+
nodeId?: string | undefined;
|
|
125
172
|
attributes?: (Record<string, string> & {
|
|
126
173
|
src?: undefined;
|
|
127
174
|
}) | undefined;
|
|
@@ -135,6 +182,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
135
182
|
type: "component";
|
|
136
183
|
componentId: string;
|
|
137
184
|
componentSet: string;
|
|
185
|
+
nodeId?: string | undefined;
|
|
138
186
|
componentType?: "server" | "edge" | undefined;
|
|
139
187
|
contentItem?: {
|
|
140
188
|
id: string;
|
|
@@ -145,6 +193,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
145
193
|
}>, z.ZodType<import("../layout-content").LayoutVariationNode, z.ZodTypeDef, {
|
|
146
194
|
type: "variation";
|
|
147
195
|
default: {};
|
|
196
|
+
nodeId?: string | undefined;
|
|
148
197
|
}>, z.ZodType<import("../layout-content").DeveloperDefinedLayoutNode, z.ZodTypeDef, {
|
|
149
198
|
type: "layout";
|
|
150
199
|
layout: {
|
|
@@ -170,11 +219,14 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
170
219
|
}>;
|
|
171
220
|
name: string;
|
|
172
221
|
};
|
|
222
|
+
nodeId?: string | undefined;
|
|
173
223
|
}>]>, "many">, (import("../layout-content").LayoutVariationNode | ({
|
|
174
224
|
value: string;
|
|
175
225
|
type: "text";
|
|
226
|
+
nodeId: string;
|
|
176
227
|
} | {
|
|
177
228
|
type: "matrix-image";
|
|
229
|
+
nodeId: string;
|
|
178
230
|
matrixDomain: string;
|
|
179
231
|
matrixAssetId: string;
|
|
180
232
|
attributes?: (Record<string, string> & {
|
|
@@ -186,6 +238,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
186
238
|
matrixIdentifier?: string | undefined;
|
|
187
239
|
} | {
|
|
188
240
|
type: "dam-image";
|
|
241
|
+
nodeId: string;
|
|
189
242
|
damSystemType: "bynder";
|
|
190
243
|
damSystemIdentifier: string;
|
|
191
244
|
damObjectId: string;
|
|
@@ -200,6 +253,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
200
253
|
} | undefined;
|
|
201
254
|
} | {
|
|
202
255
|
type: "component";
|
|
256
|
+
nodeId: string;
|
|
203
257
|
componentId: string;
|
|
204
258
|
componentSet: string;
|
|
205
259
|
componentType?: "server" | "edge" | undefined;
|
|
@@ -211,6 +265,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
211
265
|
} | undefined;
|
|
212
266
|
} | (({
|
|
213
267
|
type: "tag";
|
|
268
|
+
nodeId: string;
|
|
214
269
|
tag: string;
|
|
215
270
|
attributes?: Record<string, string> | undefined;
|
|
216
271
|
font?: {
|
|
@@ -226,8 +281,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
226
281
|
} | undefined;
|
|
227
282
|
} | {
|
|
228
283
|
type: "fragment";
|
|
284
|
+
nodeId: string;
|
|
229
285
|
} | {
|
|
230
286
|
type: "link-to-matrix-asset";
|
|
287
|
+
nodeId: string;
|
|
231
288
|
matrixDomain: string;
|
|
232
289
|
matrixAssetId: string;
|
|
233
290
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
@@ -239,14 +296,33 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
239
296
|
alignment: "left" | "center" | "right" | "justify";
|
|
240
297
|
} | undefined;
|
|
241
298
|
matrixIdentifier?: string | undefined;
|
|
299
|
+
} | {
|
|
300
|
+
type: "link-to-dam-asset";
|
|
301
|
+
nodeId: string;
|
|
302
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
303
|
+
damSystemType: "bynder";
|
|
304
|
+
damSystemIdentifier: string;
|
|
305
|
+
damObjectId: string;
|
|
306
|
+
attributes?: (Record<string, string> & {
|
|
307
|
+
target?: undefined;
|
|
308
|
+
href?: undefined;
|
|
309
|
+
}) | undefined;
|
|
310
|
+
formattingOptions?: {
|
|
311
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
312
|
+
} | undefined;
|
|
313
|
+
damAdditional?: {
|
|
314
|
+
variant?: string | undefined;
|
|
315
|
+
} | undefined;
|
|
242
316
|
}) & {
|
|
243
317
|
children: import("../layout-content").LayoutContentNodes[];
|
|
244
318
|
})) | import("../layout-content").DeveloperDefinedLayoutNode)[], ({
|
|
245
319
|
value: string;
|
|
246
320
|
type: "text";
|
|
321
|
+
nodeId?: string | undefined;
|
|
247
322
|
} | {
|
|
248
323
|
type: "tag";
|
|
249
324
|
tag: string;
|
|
325
|
+
nodeId?: string | undefined;
|
|
250
326
|
attributes?: Record<string, string> | undefined;
|
|
251
327
|
font?: {
|
|
252
328
|
bold?: boolean | undefined;
|
|
@@ -261,11 +337,13 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
261
337
|
} | undefined;
|
|
262
338
|
} | {
|
|
263
339
|
type: "fragment";
|
|
340
|
+
nodeId?: string | undefined;
|
|
264
341
|
} | {
|
|
265
342
|
type: "link-to-matrix-asset";
|
|
266
343
|
matrixDomain: string;
|
|
267
344
|
matrixAssetId: string;
|
|
268
345
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
346
|
+
nodeId?: string | undefined;
|
|
269
347
|
attributes?: (Record<string, string> & {
|
|
270
348
|
target?: undefined;
|
|
271
349
|
href?: undefined;
|
|
@@ -274,10 +352,28 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
274
352
|
alignment: "left" | "center" | "right" | "justify";
|
|
275
353
|
} | undefined;
|
|
276
354
|
matrixIdentifier?: string | undefined;
|
|
355
|
+
} | {
|
|
356
|
+
type: "link-to-dam-asset";
|
|
357
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
358
|
+
damSystemType: "bynder";
|
|
359
|
+
damSystemIdentifier: string;
|
|
360
|
+
damObjectId: string;
|
|
361
|
+
nodeId?: string | undefined;
|
|
362
|
+
attributes?: (Record<string, string> & {
|
|
363
|
+
target?: undefined;
|
|
364
|
+
href?: undefined;
|
|
365
|
+
}) | undefined;
|
|
366
|
+
formattingOptions?: {
|
|
367
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
368
|
+
} | undefined;
|
|
369
|
+
damAdditional?: {
|
|
370
|
+
variant?: string | undefined;
|
|
371
|
+
} | undefined;
|
|
277
372
|
} | {
|
|
278
373
|
type: "matrix-image";
|
|
279
374
|
matrixDomain: string;
|
|
280
375
|
matrixAssetId: string;
|
|
376
|
+
nodeId?: string | undefined;
|
|
281
377
|
attributes?: (Record<string, string> & {
|
|
282
378
|
src?: undefined;
|
|
283
379
|
}) | undefined;
|
|
@@ -290,6 +386,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
290
386
|
damSystemType: "bynder";
|
|
291
387
|
damSystemIdentifier: string;
|
|
292
388
|
damObjectId: string;
|
|
389
|
+
nodeId?: string | undefined;
|
|
293
390
|
attributes?: (Record<string, string> & {
|
|
294
391
|
src?: undefined;
|
|
295
392
|
}) | undefined;
|
|
@@ -303,6 +400,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
303
400
|
type: "component";
|
|
304
401
|
componentId: string;
|
|
305
402
|
componentSet: string;
|
|
403
|
+
nodeId?: string | undefined;
|
|
306
404
|
componentType?: "server" | "edge" | undefined;
|
|
307
405
|
contentItem?: {
|
|
308
406
|
id: string;
|
|
@@ -313,6 +411,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
313
411
|
} | {
|
|
314
412
|
type: "variation";
|
|
315
413
|
default: {};
|
|
414
|
+
nodeId?: string | undefined;
|
|
316
415
|
} | {
|
|
317
416
|
type: "layout";
|
|
318
417
|
layout: {
|
|
@@ -338,13 +437,16 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
338
437
|
}>;
|
|
339
438
|
name: string;
|
|
340
439
|
};
|
|
440
|
+
nodeId?: string | undefined;
|
|
341
441
|
})[]>;
|
|
342
442
|
}, "strip", z.ZodTypeAny, {
|
|
343
443
|
main: (import("../layout-content").LayoutVariationNode | ({
|
|
344
444
|
value: string;
|
|
345
445
|
type: "text";
|
|
446
|
+
nodeId: string;
|
|
346
447
|
} | {
|
|
347
448
|
type: "matrix-image";
|
|
449
|
+
nodeId: string;
|
|
348
450
|
matrixDomain: string;
|
|
349
451
|
matrixAssetId: string;
|
|
350
452
|
attributes?: (Record<string, string> & {
|
|
@@ -356,6 +458,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
356
458
|
matrixIdentifier?: string | undefined;
|
|
357
459
|
} | {
|
|
358
460
|
type: "dam-image";
|
|
461
|
+
nodeId: string;
|
|
359
462
|
damSystemType: "bynder";
|
|
360
463
|
damSystemIdentifier: string;
|
|
361
464
|
damObjectId: string;
|
|
@@ -370,6 +473,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
370
473
|
} | undefined;
|
|
371
474
|
} | {
|
|
372
475
|
type: "component";
|
|
476
|
+
nodeId: string;
|
|
373
477
|
componentId: string;
|
|
374
478
|
componentSet: string;
|
|
375
479
|
componentType?: "server" | "edge" | undefined;
|
|
@@ -381,6 +485,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
381
485
|
} | undefined;
|
|
382
486
|
} | (({
|
|
383
487
|
type: "tag";
|
|
488
|
+
nodeId: string;
|
|
384
489
|
tag: string;
|
|
385
490
|
attributes?: Record<string, string> | undefined;
|
|
386
491
|
font?: {
|
|
@@ -396,8 +501,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
396
501
|
} | undefined;
|
|
397
502
|
} | {
|
|
398
503
|
type: "fragment";
|
|
504
|
+
nodeId: string;
|
|
399
505
|
} | {
|
|
400
506
|
type: "link-to-matrix-asset";
|
|
507
|
+
nodeId: string;
|
|
401
508
|
matrixDomain: string;
|
|
402
509
|
matrixAssetId: string;
|
|
403
510
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
@@ -409,6 +516,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
409
516
|
alignment: "left" | "center" | "right" | "justify";
|
|
410
517
|
} | undefined;
|
|
411
518
|
matrixIdentifier?: string | undefined;
|
|
519
|
+
} | {
|
|
520
|
+
type: "link-to-dam-asset";
|
|
521
|
+
nodeId: string;
|
|
522
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
523
|
+
damSystemType: "bynder";
|
|
524
|
+
damSystemIdentifier: string;
|
|
525
|
+
damObjectId: string;
|
|
526
|
+
attributes?: (Record<string, string> & {
|
|
527
|
+
target?: undefined;
|
|
528
|
+
href?: undefined;
|
|
529
|
+
}) | undefined;
|
|
530
|
+
formattingOptions?: {
|
|
531
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
532
|
+
} | undefined;
|
|
533
|
+
damAdditional?: {
|
|
534
|
+
variant?: string | undefined;
|
|
535
|
+
} | undefined;
|
|
412
536
|
}) & {
|
|
413
537
|
children: import("../layout-content").LayoutContentNodes[];
|
|
414
538
|
})) | import("../layout-content").DeveloperDefinedLayoutNode)[];
|
|
@@ -416,9 +540,11 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
416
540
|
main: ({
|
|
417
541
|
value: string;
|
|
418
542
|
type: "text";
|
|
543
|
+
nodeId?: string | undefined;
|
|
419
544
|
} | {
|
|
420
545
|
type: "tag";
|
|
421
546
|
tag: string;
|
|
547
|
+
nodeId?: string | undefined;
|
|
422
548
|
attributes?: Record<string, string> | undefined;
|
|
423
549
|
font?: {
|
|
424
550
|
bold?: boolean | undefined;
|
|
@@ -433,11 +559,13 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
433
559
|
} | undefined;
|
|
434
560
|
} | {
|
|
435
561
|
type: "fragment";
|
|
562
|
+
nodeId?: string | undefined;
|
|
436
563
|
} | {
|
|
437
564
|
type: "link-to-matrix-asset";
|
|
438
565
|
matrixDomain: string;
|
|
439
566
|
matrixAssetId: string;
|
|
440
567
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
568
|
+
nodeId?: string | undefined;
|
|
441
569
|
attributes?: (Record<string, string> & {
|
|
442
570
|
target?: undefined;
|
|
443
571
|
href?: undefined;
|
|
@@ -446,10 +574,28 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
446
574
|
alignment: "left" | "center" | "right" | "justify";
|
|
447
575
|
} | undefined;
|
|
448
576
|
matrixIdentifier?: string | undefined;
|
|
577
|
+
} | {
|
|
578
|
+
type: "link-to-dam-asset";
|
|
579
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
580
|
+
damSystemType: "bynder";
|
|
581
|
+
damSystemIdentifier: string;
|
|
582
|
+
damObjectId: string;
|
|
583
|
+
nodeId?: string | undefined;
|
|
584
|
+
attributes?: (Record<string, string> & {
|
|
585
|
+
target?: undefined;
|
|
586
|
+
href?: undefined;
|
|
587
|
+
}) | undefined;
|
|
588
|
+
formattingOptions?: {
|
|
589
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
590
|
+
} | undefined;
|
|
591
|
+
damAdditional?: {
|
|
592
|
+
variant?: string | undefined;
|
|
593
|
+
} | undefined;
|
|
449
594
|
} | {
|
|
450
595
|
type: "matrix-image";
|
|
451
596
|
matrixDomain: string;
|
|
452
597
|
matrixAssetId: string;
|
|
598
|
+
nodeId?: string | undefined;
|
|
453
599
|
attributes?: (Record<string, string> & {
|
|
454
600
|
src?: undefined;
|
|
455
601
|
}) | undefined;
|
|
@@ -462,6 +608,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
462
608
|
damSystemType: "bynder";
|
|
463
609
|
damSystemIdentifier: string;
|
|
464
610
|
damObjectId: string;
|
|
611
|
+
nodeId?: string | undefined;
|
|
465
612
|
attributes?: (Record<string, string> & {
|
|
466
613
|
src?: undefined;
|
|
467
614
|
}) | undefined;
|
|
@@ -475,6 +622,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
475
622
|
type: "component";
|
|
476
623
|
componentId: string;
|
|
477
624
|
componentSet: string;
|
|
625
|
+
nodeId?: string | undefined;
|
|
478
626
|
componentType?: "server" | "edge" | undefined;
|
|
479
627
|
contentItem?: {
|
|
480
628
|
id: string;
|
|
@@ -485,6 +633,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
485
633
|
} | {
|
|
486
634
|
type: "variation";
|
|
487
635
|
default: {};
|
|
636
|
+
nodeId?: string | undefined;
|
|
488
637
|
} | {
|
|
489
638
|
type: "layout";
|
|
490
639
|
layout: {
|
|
@@ -510,6 +659,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
510
659
|
}>;
|
|
511
660
|
name: string;
|
|
512
661
|
};
|
|
662
|
+
nodeId?: string | undefined;
|
|
513
663
|
})[];
|
|
514
664
|
}>;
|
|
515
665
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -517,8 +667,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
517
667
|
main: (import("../layout-content").LayoutVariationNode | ({
|
|
518
668
|
value: string;
|
|
519
669
|
type: "text";
|
|
670
|
+
nodeId: string;
|
|
520
671
|
} | {
|
|
521
672
|
type: "matrix-image";
|
|
673
|
+
nodeId: string;
|
|
522
674
|
matrixDomain: string;
|
|
523
675
|
matrixAssetId: string;
|
|
524
676
|
attributes?: (Record<string, string> & {
|
|
@@ -530,6 +682,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
530
682
|
matrixIdentifier?: string | undefined;
|
|
531
683
|
} | {
|
|
532
684
|
type: "dam-image";
|
|
685
|
+
nodeId: string;
|
|
533
686
|
damSystemType: "bynder";
|
|
534
687
|
damSystemIdentifier: string;
|
|
535
688
|
damObjectId: string;
|
|
@@ -544,6 +697,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
544
697
|
} | undefined;
|
|
545
698
|
} | {
|
|
546
699
|
type: "component";
|
|
700
|
+
nodeId: string;
|
|
547
701
|
componentId: string;
|
|
548
702
|
componentSet: string;
|
|
549
703
|
componentType?: "server" | "edge" | undefined;
|
|
@@ -555,6 +709,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
555
709
|
} | undefined;
|
|
556
710
|
} | (({
|
|
557
711
|
type: "tag";
|
|
712
|
+
nodeId: string;
|
|
558
713
|
tag: string;
|
|
559
714
|
attributes?: Record<string, string> | undefined;
|
|
560
715
|
font?: {
|
|
@@ -570,8 +725,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
570
725
|
} | undefined;
|
|
571
726
|
} | {
|
|
572
727
|
type: "fragment";
|
|
728
|
+
nodeId: string;
|
|
573
729
|
} | {
|
|
574
730
|
type: "link-to-matrix-asset";
|
|
731
|
+
nodeId: string;
|
|
575
732
|
matrixDomain: string;
|
|
576
733
|
matrixAssetId: string;
|
|
577
734
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
@@ -583,6 +740,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
583
740
|
alignment: "left" | "center" | "right" | "justify";
|
|
584
741
|
} | undefined;
|
|
585
742
|
matrixIdentifier?: string | undefined;
|
|
743
|
+
} | {
|
|
744
|
+
type: "link-to-dam-asset";
|
|
745
|
+
nodeId: string;
|
|
746
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
747
|
+
damSystemType: "bynder";
|
|
748
|
+
damSystemIdentifier: string;
|
|
749
|
+
damObjectId: string;
|
|
750
|
+
attributes?: (Record<string, string> & {
|
|
751
|
+
target?: undefined;
|
|
752
|
+
href?: undefined;
|
|
753
|
+
}) | undefined;
|
|
754
|
+
formattingOptions?: {
|
|
755
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
756
|
+
} | undefined;
|
|
757
|
+
damAdditional?: {
|
|
758
|
+
variant?: string | undefined;
|
|
759
|
+
} | undefined;
|
|
586
760
|
}) & {
|
|
587
761
|
children: import("../layout-content").LayoutContentNodes[];
|
|
588
762
|
})) | import("../layout-content").DeveloperDefinedLayoutNode)[];
|
|
@@ -593,9 +767,11 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
593
767
|
main: ({
|
|
594
768
|
value: string;
|
|
595
769
|
type: "text";
|
|
770
|
+
nodeId?: string | undefined;
|
|
596
771
|
} | {
|
|
597
772
|
type: "tag";
|
|
598
773
|
tag: string;
|
|
774
|
+
nodeId?: string | undefined;
|
|
599
775
|
attributes?: Record<string, string> | undefined;
|
|
600
776
|
font?: {
|
|
601
777
|
bold?: boolean | undefined;
|
|
@@ -610,11 +786,13 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
610
786
|
} | undefined;
|
|
611
787
|
} | {
|
|
612
788
|
type: "fragment";
|
|
789
|
+
nodeId?: string | undefined;
|
|
613
790
|
} | {
|
|
614
791
|
type: "link-to-matrix-asset";
|
|
615
792
|
matrixDomain: string;
|
|
616
793
|
matrixAssetId: string;
|
|
617
794
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
795
|
+
nodeId?: string | undefined;
|
|
618
796
|
attributes?: (Record<string, string> & {
|
|
619
797
|
target?: undefined;
|
|
620
798
|
href?: undefined;
|
|
@@ -623,10 +801,28 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
623
801
|
alignment: "left" | "center" | "right" | "justify";
|
|
624
802
|
} | undefined;
|
|
625
803
|
matrixIdentifier?: string | undefined;
|
|
804
|
+
} | {
|
|
805
|
+
type: "link-to-dam-asset";
|
|
806
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
807
|
+
damSystemType: "bynder";
|
|
808
|
+
damSystemIdentifier: string;
|
|
809
|
+
damObjectId: string;
|
|
810
|
+
nodeId?: string | undefined;
|
|
811
|
+
attributes?: (Record<string, string> & {
|
|
812
|
+
target?: undefined;
|
|
813
|
+
href?: undefined;
|
|
814
|
+
}) | undefined;
|
|
815
|
+
formattingOptions?: {
|
|
816
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
817
|
+
} | undefined;
|
|
818
|
+
damAdditional?: {
|
|
819
|
+
variant?: string | undefined;
|
|
820
|
+
} | undefined;
|
|
626
821
|
} | {
|
|
627
822
|
type: "matrix-image";
|
|
628
823
|
matrixDomain: string;
|
|
629
824
|
matrixAssetId: string;
|
|
825
|
+
nodeId?: string | undefined;
|
|
630
826
|
attributes?: (Record<string, string> & {
|
|
631
827
|
src?: undefined;
|
|
632
828
|
}) | undefined;
|
|
@@ -639,6 +835,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
639
835
|
damSystemType: "bynder";
|
|
640
836
|
damSystemIdentifier: string;
|
|
641
837
|
damObjectId: string;
|
|
838
|
+
nodeId?: string | undefined;
|
|
642
839
|
attributes?: (Record<string, string> & {
|
|
643
840
|
src?: undefined;
|
|
644
841
|
}) | undefined;
|
|
@@ -652,6 +849,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
652
849
|
type: "component";
|
|
653
850
|
componentId: string;
|
|
654
851
|
componentSet: string;
|
|
852
|
+
nodeId?: string | undefined;
|
|
655
853
|
componentType?: "server" | "edge" | undefined;
|
|
656
854
|
contentItem?: {
|
|
657
855
|
id: string;
|
|
@@ -662,6 +860,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
662
860
|
} | {
|
|
663
861
|
type: "variation";
|
|
664
862
|
default: {};
|
|
863
|
+
nodeId?: string | undefined;
|
|
665
864
|
} | {
|
|
666
865
|
type: "layout";
|
|
667
866
|
layout: {
|
|
@@ -687,6 +886,7 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
687
886
|
}>;
|
|
688
887
|
name: string;
|
|
689
888
|
};
|
|
889
|
+
nodeId?: string | undefined;
|
|
690
890
|
})[];
|
|
691
891
|
};
|
|
692
892
|
name: "layout-raw";
|