@squiz/dx-page-contents-lib 1.75.0 → 1.75.1
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 +27 -0
- package/lib/formatted-text.js +37 -0
- package/lib/formatted-text.js.map +1 -1
- package/lib/formatted-text.spec.js +4 -0
- package/lib/formatted-text.spec.js.map +1 -1
- package/lib/layout-content.d.ts +51 -3
- 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 +73 -0
- package/lib/layouts/index.d.ts +320 -0
- package/lib/layouts/raw.layout.d.ts +64 -0
- package/lib/layouts/single-column.layout.d.ts +64 -0
- package/lib/layouts/two-column.layout.d.ts +128 -0
- package/lib/mocks/PageContentsHelpers.d.ts +432 -0
- 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 +27 -0
- package/lib/mocks/PageContentsMocks.js.map +1 -1
- package/lib/page-contents-lib.d.ts +16 -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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-content.js","sourceRoot":"","sources":["../src/layout-content.ts"],"names":[],"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,CAAC,MAAM,CAAC;iBACpB,IAAI,CAAC,GAAG,CAAC,CACb,CAAC;QACJ,CAAC;QACD,OAAO,MAAM;aACV,MAAM,CAAC,CAAC,MAAM,EAAwD,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,WAAW,CAAC;aACvG,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;aACzC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAA2B,CAAC,CAAC;IACzD,CAAC;CACF;AAvCD,8DAuCC"}
|
|
@@ -34,15 +34,17 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
const l = __importStar(require("./layout-content"));
|
|
37
|
+
const crypto_1 = require("crypto");
|
|
37
38
|
describe('layout-content', () => {
|
|
38
39
|
describe('experiment nodes', () => {
|
|
39
40
|
it('only allows a single experiment ID', () => {
|
|
40
41
|
const experiment = {
|
|
41
42
|
type: 'variation',
|
|
42
|
-
|
|
43
|
+
nodeId: (0, crypto_1.randomUUID)(),
|
|
44
|
+
default: { node: { type: 'text', value: 'default', nodeId: (0, crypto_1.randomUUID)() } },
|
|
43
45
|
variants: [
|
|
44
46
|
{
|
|
45
|
-
node: { type: 'text', value: 'my-a-value' },
|
|
47
|
+
node: { type: 'text', value: 'my-a-value', nodeId: (0, crypto_1.randomUUID)() },
|
|
46
48
|
conditions: { experiment: { id: 'experiment-id', variant: 'B' } },
|
|
47
49
|
},
|
|
48
50
|
],
|
|
@@ -61,18 +63,24 @@ describe('layout-content', () => {
|
|
|
61
63
|
it('only allows a single experiment ID in nested experiment blocks', () => {
|
|
62
64
|
const experiment = {
|
|
63
65
|
type: 'variation',
|
|
66
|
+
nodeId: (0, crypto_1.randomUUID)(),
|
|
64
67
|
default: {
|
|
65
|
-
node: { type: 'text', value: 'experiment' },
|
|
68
|
+
node: { type: 'text', value: 'experiment', nodeId: (0, crypto_1.randomUUID)() },
|
|
66
69
|
},
|
|
67
70
|
variants: [
|
|
68
71
|
{
|
|
69
72
|
conditions: { experiment: { id: '123', variant: 'B' } },
|
|
70
|
-
node: {
|
|
73
|
+
node: {
|
|
74
|
+
type: 'text',
|
|
75
|
+
value: 'experiment',
|
|
76
|
+
nodeId: (0, crypto_1.randomUUID)(),
|
|
77
|
+
},
|
|
71
78
|
},
|
|
72
79
|
],
|
|
73
80
|
};
|
|
74
81
|
const variant = {
|
|
75
82
|
type: 'variation',
|
|
83
|
+
nodeId: (0, crypto_1.randomUUID)(),
|
|
76
84
|
default: {
|
|
77
85
|
node: experiment,
|
|
78
86
|
},
|
|
@@ -88,13 +96,14 @@ describe('layout-content', () => {
|
|
|
88
96
|
it('allows multiple nodes with the same experiment', () => {
|
|
89
97
|
const experiment = {
|
|
90
98
|
type: 'variation',
|
|
99
|
+
nodeId: (0, crypto_1.randomUUID)(),
|
|
91
100
|
default: {
|
|
92
|
-
node: { type: 'text', value: 'experiment' },
|
|
101
|
+
node: { type: 'text', value: 'experiment', nodeId: (0, crypto_1.randomUUID)() },
|
|
93
102
|
},
|
|
94
103
|
variants: [
|
|
95
104
|
{
|
|
96
105
|
conditions: { experiment: { id: '123', variant: 'B' } },
|
|
97
|
-
node: { type: 'text', value: 'experiment' },
|
|
106
|
+
node: { type: 'text', value: 'experiment', nodeId: (0, crypto_1.randomUUID)() },
|
|
98
107
|
},
|
|
99
108
|
],
|
|
100
109
|
};
|
|
@@ -103,6 +112,7 @@ describe('layout-content', () => {
|
|
|
103
112
|
default: {
|
|
104
113
|
node: experiment,
|
|
105
114
|
},
|
|
115
|
+
nodeId: (0, crypto_1.randomUUID)(),
|
|
106
116
|
variants: [
|
|
107
117
|
{
|
|
108
118
|
conditions: { experiment: { id: '123', variant: 'B' } },
|
|
@@ -118,12 +128,14 @@ describe('layout-content', () => {
|
|
|
118
128
|
const experiment = {
|
|
119
129
|
type: 'text',
|
|
120
130
|
value: 'other',
|
|
131
|
+
nodeId: (0, crypto_1.randomUUID)(),
|
|
121
132
|
};
|
|
122
133
|
const variant = {
|
|
123
134
|
type: 'variation',
|
|
124
135
|
default: {
|
|
125
136
|
node: experiment,
|
|
126
137
|
},
|
|
138
|
+
nodeId: (0, crypto_1.randomUUID)(),
|
|
127
139
|
variants: [
|
|
128
140
|
{
|
|
129
141
|
conditions: { segment: { code: '123' } },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-content.spec.js","sourceRoot":"","sources":["../src/layout-content.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsC;
|
|
1
|
+
{"version":3,"file":"layout-content.spec.js","sourceRoot":"","sources":["../src/layout-content.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsC;AACtC,mCAAoC;AAEpC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAChC,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;YAC5C,MAAM,UAAU,GAA0B;gBACxC,IAAI,EAAE,WAAW;gBACjB,MAAM,EAAE,IAAA,mBAAU,GAAE;gBACpB,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,IAAA,mBAAU,GAAE,EAAE,EAAE;gBAC3E,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,IAAA,mBAAU,GAAE,EAAE;wBACjE,UAAU,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE;qBAClE;iBACF;aACF,CAAC;YAEF,MAAM,eAAe,GA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AQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;QAC9B,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;YAC1C,MAAM,UAAU,GAAyB;gBACvC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,OAAO;gBACd,MAAM,EAAE,IAAA,mBAAU,GAAE;aACrB,CAAC;YAEF,MAAM,OAAO,GAA0B;gBACrC,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE;oBACP,IAAI,EAAE,UAAU;iBACjB;gBACD,MAAM,EAAE,IAAA,mBAAU,GAAE;gBACpB,QAAQ,EAAE;oBACR;wBACE,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;wBACxC,IAAI,EAAE,UAAU;qBACjB;iBACF;aACF,CAAC;YAEF,MAAM,YAAY,GAAG,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC;YAEhE,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;QAClG,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -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";
|
|
@@ -213,9 +220,11 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
213
220
|
}), z.ZodTypeDef, {
|
|
214
221
|
value: string;
|
|
215
222
|
type: "text";
|
|
223
|
+
nodeId?: string | undefined;
|
|
216
224
|
} | {
|
|
217
225
|
type: "tag";
|
|
218
226
|
tag: string;
|
|
227
|
+
nodeId?: string | undefined;
|
|
219
228
|
attributes?: Record<string, string> | undefined;
|
|
220
229
|
font?: {
|
|
221
230
|
bold?: boolean | undefined;
|
|
@@ -230,11 +239,13 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
230
239
|
} | undefined;
|
|
231
240
|
} | {
|
|
232
241
|
type: "fragment";
|
|
242
|
+
nodeId?: string | undefined;
|
|
233
243
|
} | {
|
|
234
244
|
type: "link-to-matrix-asset";
|
|
235
245
|
matrixDomain: string;
|
|
236
246
|
matrixAssetId: string;
|
|
237
247
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
248
|
+
nodeId?: string | undefined;
|
|
238
249
|
attributes?: (Record<string, string> & {
|
|
239
250
|
target?: undefined;
|
|
240
251
|
href?: undefined;
|
|
@@ -247,6 +258,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
247
258
|
type: "matrix-image";
|
|
248
259
|
matrixDomain: string;
|
|
249
260
|
matrixAssetId: string;
|
|
261
|
+
nodeId?: string | undefined;
|
|
250
262
|
attributes?: (Record<string, string> & {
|
|
251
263
|
src?: undefined;
|
|
252
264
|
}) | undefined;
|
|
@@ -259,6 +271,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
259
271
|
damSystemType: "bynder";
|
|
260
272
|
damSystemIdentifier: string;
|
|
261
273
|
damObjectId: string;
|
|
274
|
+
nodeId?: string | undefined;
|
|
262
275
|
attributes?: (Record<string, string> & {
|
|
263
276
|
src?: undefined;
|
|
264
277
|
}) | undefined;
|
|
@@ -272,6 +285,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
272
285
|
type: "component";
|
|
273
286
|
componentId: string;
|
|
274
287
|
componentSet: string;
|
|
288
|
+
nodeId?: string | undefined;
|
|
275
289
|
componentType?: "server" | "edge" | undefined;
|
|
276
290
|
contentItem?: {
|
|
277
291
|
id: string;
|
|
@@ -282,6 +296,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
282
296
|
}>, z.ZodType<import("../layout-content").LayoutVariationNode, z.ZodTypeDef, {
|
|
283
297
|
type: "variation";
|
|
284
298
|
default: {};
|
|
299
|
+
nodeId?: string | undefined;
|
|
285
300
|
}>, z.ZodType<import("../layout-content").DeveloperDefinedLayoutNode, z.ZodTypeDef, {
|
|
286
301
|
type: "layout";
|
|
287
302
|
layout: {
|
|
@@ -307,11 +322,14 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
307
322
|
}>;
|
|
308
323
|
name: string;
|
|
309
324
|
};
|
|
325
|
+
nodeId?: string | undefined;
|
|
310
326
|
}>]>, "many">, (import("../layout-content").LayoutVariationNode | ({
|
|
311
327
|
value: string;
|
|
312
328
|
type: "text";
|
|
329
|
+
nodeId: string;
|
|
313
330
|
} | {
|
|
314
331
|
type: "matrix-image";
|
|
332
|
+
nodeId: string;
|
|
315
333
|
matrixDomain: string;
|
|
316
334
|
matrixAssetId: string;
|
|
317
335
|
attributes?: (Record<string, string> & {
|
|
@@ -323,6 +341,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
323
341
|
matrixIdentifier?: string | undefined;
|
|
324
342
|
} | {
|
|
325
343
|
type: "dam-image";
|
|
344
|
+
nodeId: string;
|
|
326
345
|
damSystemType: "bynder";
|
|
327
346
|
damSystemIdentifier: string;
|
|
328
347
|
damObjectId: string;
|
|
@@ -337,6 +356,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
337
356
|
} | undefined;
|
|
338
357
|
} | {
|
|
339
358
|
type: "component";
|
|
359
|
+
nodeId: string;
|
|
340
360
|
componentId: string;
|
|
341
361
|
componentSet: string;
|
|
342
362
|
componentType?: "server" | "edge" | undefined;
|
|
@@ -348,6 +368,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
348
368
|
} | undefined;
|
|
349
369
|
} | (({
|
|
350
370
|
type: "tag";
|
|
371
|
+
nodeId: string;
|
|
351
372
|
tag: string;
|
|
352
373
|
attributes?: Record<string, string> | undefined;
|
|
353
374
|
font?: {
|
|
@@ -363,8 +384,10 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
363
384
|
} | undefined;
|
|
364
385
|
} | {
|
|
365
386
|
type: "fragment";
|
|
387
|
+
nodeId: string;
|
|
366
388
|
} | {
|
|
367
389
|
type: "link-to-matrix-asset";
|
|
390
|
+
nodeId: string;
|
|
368
391
|
matrixDomain: string;
|
|
369
392
|
matrixAssetId: string;
|
|
370
393
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
@@ -381,9 +404,11 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
381
404
|
})) | import("../layout-content").DeveloperDefinedLayoutNode)[], ({
|
|
382
405
|
value: string;
|
|
383
406
|
type: "text";
|
|
407
|
+
nodeId?: string | undefined;
|
|
384
408
|
} | {
|
|
385
409
|
type: "tag";
|
|
386
410
|
tag: string;
|
|
411
|
+
nodeId?: string | undefined;
|
|
387
412
|
attributes?: Record<string, string> | undefined;
|
|
388
413
|
font?: {
|
|
389
414
|
bold?: boolean | undefined;
|
|
@@ -398,11 +423,13 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
398
423
|
} | undefined;
|
|
399
424
|
} | {
|
|
400
425
|
type: "fragment";
|
|
426
|
+
nodeId?: string | undefined;
|
|
401
427
|
} | {
|
|
402
428
|
type: "link-to-matrix-asset";
|
|
403
429
|
matrixDomain: string;
|
|
404
430
|
matrixAssetId: string;
|
|
405
431
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
432
|
+
nodeId?: string | undefined;
|
|
406
433
|
attributes?: (Record<string, string> & {
|
|
407
434
|
target?: undefined;
|
|
408
435
|
href?: undefined;
|
|
@@ -415,6 +442,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
415
442
|
type: "matrix-image";
|
|
416
443
|
matrixDomain: string;
|
|
417
444
|
matrixAssetId: string;
|
|
445
|
+
nodeId?: string | undefined;
|
|
418
446
|
attributes?: (Record<string, string> & {
|
|
419
447
|
src?: undefined;
|
|
420
448
|
}) | undefined;
|
|
@@ -427,6 +455,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
427
455
|
damSystemType: "bynder";
|
|
428
456
|
damSystemIdentifier: string;
|
|
429
457
|
damObjectId: string;
|
|
458
|
+
nodeId?: string | undefined;
|
|
430
459
|
attributes?: (Record<string, string> & {
|
|
431
460
|
src?: undefined;
|
|
432
461
|
}) | undefined;
|
|
@@ -440,6 +469,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
440
469
|
type: "component";
|
|
441
470
|
componentId: string;
|
|
442
471
|
componentSet: string;
|
|
472
|
+
nodeId?: string | undefined;
|
|
443
473
|
componentType?: "server" | "edge" | undefined;
|
|
444
474
|
contentItem?: {
|
|
445
475
|
id: string;
|
|
@@ -450,6 +480,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
450
480
|
} | {
|
|
451
481
|
type: "variation";
|
|
452
482
|
default: {};
|
|
483
|
+
nodeId?: string | undefined;
|
|
453
484
|
} | {
|
|
454
485
|
type: "layout";
|
|
455
486
|
layout: {
|
|
@@ -475,13 +506,16 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
475
506
|
}>;
|
|
476
507
|
name: string;
|
|
477
508
|
};
|
|
509
|
+
nodeId?: string | undefined;
|
|
478
510
|
})[]>;
|
|
479
511
|
}, "strip", z.ZodTypeAny, {
|
|
480
512
|
main: (import("../layout-content").LayoutVariationNode | ({
|
|
481
513
|
value: string;
|
|
482
514
|
type: "text";
|
|
515
|
+
nodeId: string;
|
|
483
516
|
} | {
|
|
484
517
|
type: "matrix-image";
|
|
518
|
+
nodeId: string;
|
|
485
519
|
matrixDomain: string;
|
|
486
520
|
matrixAssetId: string;
|
|
487
521
|
attributes?: (Record<string, string> & {
|
|
@@ -493,6 +527,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
493
527
|
matrixIdentifier?: string | undefined;
|
|
494
528
|
} | {
|
|
495
529
|
type: "dam-image";
|
|
530
|
+
nodeId: string;
|
|
496
531
|
damSystemType: "bynder";
|
|
497
532
|
damSystemIdentifier: string;
|
|
498
533
|
damObjectId: string;
|
|
@@ -507,6 +542,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
507
542
|
} | undefined;
|
|
508
543
|
} | {
|
|
509
544
|
type: "component";
|
|
545
|
+
nodeId: string;
|
|
510
546
|
componentId: string;
|
|
511
547
|
componentSet: string;
|
|
512
548
|
componentType?: "server" | "edge" | undefined;
|
|
@@ -518,6 +554,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
518
554
|
} | undefined;
|
|
519
555
|
} | (({
|
|
520
556
|
type: "tag";
|
|
557
|
+
nodeId: string;
|
|
521
558
|
tag: string;
|
|
522
559
|
attributes?: Record<string, string> | undefined;
|
|
523
560
|
font?: {
|
|
@@ -533,8 +570,10 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
533
570
|
} | undefined;
|
|
534
571
|
} | {
|
|
535
572
|
type: "fragment";
|
|
573
|
+
nodeId: string;
|
|
536
574
|
} | {
|
|
537
575
|
type: "link-to-matrix-asset";
|
|
576
|
+
nodeId: string;
|
|
538
577
|
matrixDomain: string;
|
|
539
578
|
matrixAssetId: string;
|
|
540
579
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
@@ -553,9 +592,11 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
553
592
|
main: ({
|
|
554
593
|
value: string;
|
|
555
594
|
type: "text";
|
|
595
|
+
nodeId?: string | undefined;
|
|
556
596
|
} | {
|
|
557
597
|
type: "tag";
|
|
558
598
|
tag: string;
|
|
599
|
+
nodeId?: string | undefined;
|
|
559
600
|
attributes?: Record<string, string> | undefined;
|
|
560
601
|
font?: {
|
|
561
602
|
bold?: boolean | undefined;
|
|
@@ -570,11 +611,13 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
570
611
|
} | undefined;
|
|
571
612
|
} | {
|
|
572
613
|
type: "fragment";
|
|
614
|
+
nodeId?: string | undefined;
|
|
573
615
|
} | {
|
|
574
616
|
type: "link-to-matrix-asset";
|
|
575
617
|
matrixDomain: string;
|
|
576
618
|
matrixAssetId: string;
|
|
577
619
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
620
|
+
nodeId?: string | undefined;
|
|
578
621
|
attributes?: (Record<string, string> & {
|
|
579
622
|
target?: undefined;
|
|
580
623
|
href?: undefined;
|
|
@@ -587,6 +630,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
587
630
|
type: "matrix-image";
|
|
588
631
|
matrixDomain: string;
|
|
589
632
|
matrixAssetId: string;
|
|
633
|
+
nodeId?: string | undefined;
|
|
590
634
|
attributes?: (Record<string, string> & {
|
|
591
635
|
src?: undefined;
|
|
592
636
|
}) | undefined;
|
|
@@ -599,6 +643,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
599
643
|
damSystemType: "bynder";
|
|
600
644
|
damSystemIdentifier: string;
|
|
601
645
|
damObjectId: string;
|
|
646
|
+
nodeId?: string | undefined;
|
|
602
647
|
attributes?: (Record<string, string> & {
|
|
603
648
|
src?: undefined;
|
|
604
649
|
}) | undefined;
|
|
@@ -612,6 +657,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
612
657
|
type: "component";
|
|
613
658
|
componentId: string;
|
|
614
659
|
componentSet: string;
|
|
660
|
+
nodeId?: string | undefined;
|
|
615
661
|
componentType?: "server" | "edge" | undefined;
|
|
616
662
|
contentItem?: {
|
|
617
663
|
id: string;
|
|
@@ -622,6 +668,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
622
668
|
} | {
|
|
623
669
|
type: "variation";
|
|
624
670
|
default: {};
|
|
671
|
+
nodeId?: string | undefined;
|
|
625
672
|
} | {
|
|
626
673
|
type: "layout";
|
|
627
674
|
layout: {
|
|
@@ -647,6 +694,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
647
694
|
}>;
|
|
648
695
|
name: string;
|
|
649
696
|
};
|
|
697
|
+
nodeId?: string | undefined;
|
|
650
698
|
})[];
|
|
651
699
|
}>;
|
|
652
700
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -654,8 +702,10 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
654
702
|
main: (import("../layout-content").LayoutVariationNode | ({
|
|
655
703
|
value: string;
|
|
656
704
|
type: "text";
|
|
705
|
+
nodeId: string;
|
|
657
706
|
} | {
|
|
658
707
|
type: "matrix-image";
|
|
708
|
+
nodeId: string;
|
|
659
709
|
matrixDomain: string;
|
|
660
710
|
matrixAssetId: string;
|
|
661
711
|
attributes?: (Record<string, string> & {
|
|
@@ -667,6 +717,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
667
717
|
matrixIdentifier?: string | undefined;
|
|
668
718
|
} | {
|
|
669
719
|
type: "dam-image";
|
|
720
|
+
nodeId: string;
|
|
670
721
|
damSystemType: "bynder";
|
|
671
722
|
damSystemIdentifier: string;
|
|
672
723
|
damObjectId: string;
|
|
@@ -681,6 +732,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
681
732
|
} | undefined;
|
|
682
733
|
} | {
|
|
683
734
|
type: "component";
|
|
735
|
+
nodeId: string;
|
|
684
736
|
componentId: string;
|
|
685
737
|
componentSet: string;
|
|
686
738
|
componentType?: "server" | "edge" | undefined;
|
|
@@ -692,6 +744,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
692
744
|
} | undefined;
|
|
693
745
|
} | (({
|
|
694
746
|
type: "tag";
|
|
747
|
+
nodeId: string;
|
|
695
748
|
tag: string;
|
|
696
749
|
attributes?: Record<string, string> | undefined;
|
|
697
750
|
font?: {
|
|
@@ -707,8 +760,10 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
707
760
|
} | undefined;
|
|
708
761
|
} | {
|
|
709
762
|
type: "fragment";
|
|
763
|
+
nodeId: string;
|
|
710
764
|
} | {
|
|
711
765
|
type: "link-to-matrix-asset";
|
|
766
|
+
nodeId: string;
|
|
712
767
|
matrixDomain: string;
|
|
713
768
|
matrixAssetId: string;
|
|
714
769
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
@@ -742,9 +797,11 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
742
797
|
main: ({
|
|
743
798
|
value: string;
|
|
744
799
|
type: "text";
|
|
800
|
+
nodeId?: string | undefined;
|
|
745
801
|
} | {
|
|
746
802
|
type: "tag";
|
|
747
803
|
tag: string;
|
|
804
|
+
nodeId?: string | undefined;
|
|
748
805
|
attributes?: Record<string, string> | undefined;
|
|
749
806
|
font?: {
|
|
750
807
|
bold?: boolean | undefined;
|
|
@@ -759,11 +816,13 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
759
816
|
} | undefined;
|
|
760
817
|
} | {
|
|
761
818
|
type: "fragment";
|
|
819
|
+
nodeId?: string | undefined;
|
|
762
820
|
} | {
|
|
763
821
|
type: "link-to-matrix-asset";
|
|
764
822
|
matrixDomain: string;
|
|
765
823
|
matrixAssetId: string;
|
|
766
824
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
825
|
+
nodeId?: string | undefined;
|
|
767
826
|
attributes?: (Record<string, string> & {
|
|
768
827
|
target?: undefined;
|
|
769
828
|
href?: undefined;
|
|
@@ -776,6 +835,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
776
835
|
type: "matrix-image";
|
|
777
836
|
matrixDomain: string;
|
|
778
837
|
matrixAssetId: string;
|
|
838
|
+
nodeId?: string | undefined;
|
|
779
839
|
attributes?: (Record<string, string> & {
|
|
780
840
|
src?: undefined;
|
|
781
841
|
}) | undefined;
|
|
@@ -788,6 +848,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
788
848
|
damSystemType: "bynder";
|
|
789
849
|
damSystemIdentifier: string;
|
|
790
850
|
damObjectId: string;
|
|
851
|
+
nodeId?: string | undefined;
|
|
791
852
|
attributes?: (Record<string, string> & {
|
|
792
853
|
src?: undefined;
|
|
793
854
|
}) | undefined;
|
|
@@ -801,6 +862,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
801
862
|
type: "component";
|
|
802
863
|
componentId: string;
|
|
803
864
|
componentSet: string;
|
|
865
|
+
nodeId?: string | undefined;
|
|
804
866
|
componentType?: "server" | "edge" | undefined;
|
|
805
867
|
contentItem?: {
|
|
806
868
|
id: string;
|
|
@@ -811,6 +873,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
811
873
|
} | {
|
|
812
874
|
type: "variation";
|
|
813
875
|
default: {};
|
|
876
|
+
nodeId?: string | undefined;
|
|
814
877
|
} | {
|
|
815
878
|
type: "layout";
|
|
816
879
|
layout: {
|
|
@@ -836,6 +899,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
836
899
|
}>;
|
|
837
900
|
name: string;
|
|
838
901
|
};
|
|
902
|
+
nodeId?: string | undefined;
|
|
839
903
|
})[];
|
|
840
904
|
};
|
|
841
905
|
name: "custom-layout";
|
|
@@ -862,9 +926,11 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
862
926
|
main: ({
|
|
863
927
|
value: string;
|
|
864
928
|
type: "text";
|
|
929
|
+
nodeId?: string | undefined;
|
|
865
930
|
} | {
|
|
866
931
|
type: "tag";
|
|
867
932
|
tag: string;
|
|
933
|
+
nodeId?: string | undefined;
|
|
868
934
|
attributes?: Record<string, string> | undefined;
|
|
869
935
|
font?: {
|
|
870
936
|
bold?: boolean | undefined;
|
|
@@ -879,11 +945,13 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
879
945
|
} | undefined;
|
|
880
946
|
} | {
|
|
881
947
|
type: "fragment";
|
|
948
|
+
nodeId?: string | undefined;
|
|
882
949
|
} | {
|
|
883
950
|
type: "link-to-matrix-asset";
|
|
884
951
|
matrixDomain: string;
|
|
885
952
|
matrixAssetId: string;
|
|
886
953
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
954
|
+
nodeId?: string | undefined;
|
|
887
955
|
attributes?: (Record<string, string> & {
|
|
888
956
|
target?: undefined;
|
|
889
957
|
href?: undefined;
|
|
@@ -896,6 +964,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
896
964
|
type: "matrix-image";
|
|
897
965
|
matrixDomain: string;
|
|
898
966
|
matrixAssetId: string;
|
|
967
|
+
nodeId?: string | undefined;
|
|
899
968
|
attributes?: (Record<string, string> & {
|
|
900
969
|
src?: undefined;
|
|
901
970
|
}) | undefined;
|
|
@@ -908,6 +977,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
908
977
|
damSystemType: "bynder";
|
|
909
978
|
damSystemIdentifier: string;
|
|
910
979
|
damObjectId: string;
|
|
980
|
+
nodeId?: string | undefined;
|
|
911
981
|
attributes?: (Record<string, string> & {
|
|
912
982
|
src?: undefined;
|
|
913
983
|
}) | undefined;
|
|
@@ -921,6 +991,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
921
991
|
type: "component";
|
|
922
992
|
componentId: string;
|
|
923
993
|
componentSet: string;
|
|
994
|
+
nodeId?: string | undefined;
|
|
924
995
|
componentType?: "server" | "edge" | undefined;
|
|
925
996
|
contentItem?: {
|
|
926
997
|
id: string;
|
|
@@ -931,6 +1002,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
931
1002
|
} | {
|
|
932
1003
|
type: "variation";
|
|
933
1004
|
default: {};
|
|
1005
|
+
nodeId?: string | undefined;
|
|
934
1006
|
} | {
|
|
935
1007
|
type: "layout";
|
|
936
1008
|
layout: {
|
|
@@ -956,6 +1028,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
956
1028
|
}>;
|
|
957
1029
|
name: string;
|
|
958
1030
|
};
|
|
1031
|
+
nodeId?: string | undefined;
|
|
959
1032
|
})[];
|
|
960
1033
|
};
|
|
961
1034
|
name: "custom-layout";
|