@squiz/dxp-cli-next 5.32.0-develop.2 → 5.32.0-develop.3
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.
|
@@ -170,17 +170,14 @@ export declare const InputLayoutDefinitionV2: z.ZodObject<z.objectUtil.extendSha
|
|
|
170
170
|
title: z.ZodString;
|
|
171
171
|
description: z.ZodString;
|
|
172
172
|
type: z.ZodLiteral<"boolean">;
|
|
173
|
-
enum: z.ZodOptional<z.ZodArray<z.ZodBoolean, "many">>;
|
|
174
173
|
}, "strict", z.ZodTypeAny, {
|
|
175
174
|
type: "boolean";
|
|
176
175
|
description: string;
|
|
177
176
|
title: string;
|
|
178
|
-
enum?: boolean[] | undefined;
|
|
179
177
|
}, {
|
|
180
178
|
type: "boolean";
|
|
181
179
|
description: string;
|
|
182
180
|
title: string;
|
|
183
|
-
enum?: boolean[] | undefined;
|
|
184
181
|
}>, z.ZodObject<{
|
|
185
182
|
title: z.ZodString;
|
|
186
183
|
description: z.ZodString;
|
|
@@ -211,7 +208,6 @@ export declare const InputLayoutDefinitionV2: z.ZodObject<z.objectUtil.extendSha
|
|
|
211
208
|
type: "boolean";
|
|
212
209
|
description: string;
|
|
213
210
|
title: string;
|
|
214
|
-
enum?: boolean[] | undefined;
|
|
215
211
|
} | {
|
|
216
212
|
type: "string";
|
|
217
213
|
description: string;
|
|
@@ -232,7 +228,6 @@ export declare const InputLayoutDefinitionV2: z.ZodObject<z.objectUtil.extendSha
|
|
|
232
228
|
type: "boolean";
|
|
233
229
|
description: string;
|
|
234
230
|
title: string;
|
|
235
|
-
enum?: boolean[] | undefined;
|
|
236
231
|
} | {
|
|
237
232
|
type: "string";
|
|
238
233
|
description: string;
|
|
@@ -377,17 +372,14 @@ export declare const InputLayoutDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
377
372
|
title: z.ZodString;
|
|
378
373
|
description: z.ZodString;
|
|
379
374
|
type: z.ZodLiteral<"boolean">;
|
|
380
|
-
enum: z.ZodOptional<z.ZodArray<z.ZodBoolean, "many">>;
|
|
381
375
|
}, "strict", z.ZodTypeAny, {
|
|
382
376
|
type: "boolean";
|
|
383
377
|
description: string;
|
|
384
378
|
title: string;
|
|
385
|
-
enum?: boolean[] | undefined;
|
|
386
379
|
}, {
|
|
387
380
|
type: "boolean";
|
|
388
381
|
description: string;
|
|
389
382
|
title: string;
|
|
390
|
-
enum?: boolean[] | undefined;
|
|
391
383
|
}>, z.ZodObject<{
|
|
392
384
|
title: z.ZodString;
|
|
393
385
|
description: z.ZodString;
|
|
@@ -418,7 +410,6 @@ export declare const InputLayoutDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
418
410
|
type: "boolean";
|
|
419
411
|
description: string;
|
|
420
412
|
title: string;
|
|
421
|
-
enum?: boolean[] | undefined;
|
|
422
413
|
} | {
|
|
423
414
|
type: "string";
|
|
424
415
|
description: string;
|
|
@@ -439,7 +430,6 @@ export declare const InputLayoutDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
439
430
|
type: "boolean";
|
|
440
431
|
description: string;
|
|
441
432
|
title: string;
|
|
442
|
-
enum?: boolean[] | undefined;
|
|
443
433
|
} | {
|
|
444
434
|
type: "string";
|
|
445
435
|
description: string;
|
|
@@ -490,17 +480,14 @@ export declare const LayoutDefinition: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
490
480
|
title: z.ZodString;
|
|
491
481
|
description: z.ZodString;
|
|
492
482
|
type: z.ZodLiteral<"boolean">;
|
|
493
|
-
enum: z.ZodOptional<z.ZodArray<z.ZodBoolean, "many">>;
|
|
494
483
|
}, "strict", z.ZodTypeAny, {
|
|
495
484
|
type: "boolean";
|
|
496
485
|
description: string;
|
|
497
486
|
title: string;
|
|
498
|
-
enum?: boolean[] | undefined;
|
|
499
487
|
}, {
|
|
500
488
|
type: "boolean";
|
|
501
489
|
description: string;
|
|
502
490
|
title: string;
|
|
503
|
-
enum?: boolean[] | undefined;
|
|
504
491
|
}>, z.ZodObject<{
|
|
505
492
|
title: z.ZodString;
|
|
506
493
|
description: z.ZodString;
|
|
@@ -533,7 +520,6 @@ export declare const LayoutDefinition: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
533
520
|
type: "boolean";
|
|
534
521
|
description: string;
|
|
535
522
|
title: string;
|
|
536
|
-
enum?: boolean[] | undefined;
|
|
537
523
|
} | {
|
|
538
524
|
type: "string";
|
|
539
525
|
description: string;
|
|
@@ -554,7 +540,6 @@ export declare const LayoutDefinition: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
554
540
|
type: "boolean";
|
|
555
541
|
description: string;
|
|
556
542
|
title: string;
|
|
557
|
-
enum?: boolean[] | undefined;
|
|
558
543
|
} | {
|
|
559
544
|
type: "string";
|
|
560
545
|
description: string;
|
|
@@ -215,7 +215,6 @@ exports.InputLayoutDefinitionV2 = exports.BaseLayoutDefinition.extend({
|
|
|
215
215
|
title: zod_1.z.string(),
|
|
216
216
|
description: zod_1.z.string(),
|
|
217
217
|
type: zod_1.z.literal(render_1.LayoutPropertyType.boolean),
|
|
218
|
-
enum: zod_1.z.array(zod_1.z.boolean()).optional(),
|
|
219
218
|
})
|
|
220
219
|
.strict(),
|
|
221
220
|
// String
|
|
@@ -46,14 +46,7 @@ function normalizeProperties(layout) {
|
|
|
46
46
|
break;
|
|
47
47
|
case render_1.LayoutOptionValueType.stringEnum:
|
|
48
48
|
default:
|
|
49
|
-
acc[key] = {
|
|
50
|
-
type: render_1.LayoutPropertyType.string,
|
|
51
|
-
title: option.displayName,
|
|
52
|
-
description: option.description,
|
|
53
|
-
};
|
|
54
|
-
if (option.values !== undefined) {
|
|
55
|
-
acc[key].enum = option.values;
|
|
56
|
-
}
|
|
49
|
+
acc[key] = Object.assign({ type: render_1.LayoutPropertyType.string, title: option.displayName, description: option.description }, (option.values !== undefined && { enum: option.values }));
|
|
57
50
|
}
|
|
58
51
|
return acc;
|
|
59
52
|
}, {});
|