@contentful/experiences-visual-editor-react 1.42.0-prerelease-20250625T0902-d9db401.0 → 1.42.0-prerelease-20250626T1154-6ca57b0.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.
- package/dist/index.js +28 -36
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +28 -36
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/renderApp.js
CHANGED
|
@@ -43342,11 +43342,11 @@ const ComponentPropertyValueSchema$1 = z.discriminatedUnion('type', [
|
|
|
43342
43342
|
]);
|
|
43343
43343
|
// TODO: finalize schema structure before release
|
|
43344
43344
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
43345
|
-
const
|
|
43345
|
+
const ParameterSchema$1 = z.object({
|
|
43346
43346
|
type: z.literal('BoundValue'),
|
|
43347
43347
|
path: z.string(),
|
|
43348
43348
|
});
|
|
43349
|
-
const
|
|
43349
|
+
const ParametersSchema$1 = z.record(propertyKeySchema$1, ParameterSchema$1);
|
|
43350
43350
|
const BreakpointSchema$1 = z
|
|
43351
43351
|
.object({
|
|
43352
43352
|
id: propertyKeySchema$1,
|
|
@@ -43363,7 +43363,7 @@ const BaseComponentTreeNodeSchema$1 = z.object({
|
|
|
43363
43363
|
displayName: z.string().optional(),
|
|
43364
43364
|
slotId: z.string().optional(),
|
|
43365
43365
|
variables: z.record(propertyKeySchema$1, ComponentPropertyValueSchema$1),
|
|
43366
|
-
|
|
43366
|
+
parameters: ParametersSchema$1.optional(),
|
|
43367
43367
|
});
|
|
43368
43368
|
const ComponentVariableSchema$1 = z.object({
|
|
43369
43369
|
displayName: z.string().optional(),
|
|
@@ -43432,25 +43432,21 @@ const THUMBNAIL_IDS$1 = [
|
|
|
43432
43432
|
// TODO: finalize schema structure before release
|
|
43433
43433
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
43434
43434
|
const VariableMappingSchema$1 = z.object({
|
|
43435
|
-
|
|
43435
|
+
parameterId: propertyKeySchema$1,
|
|
43436
43436
|
type: z.literal('ContentTypeMapping'),
|
|
43437
43437
|
pathsByContentType: z.record(z.string(), z.object({ path: z.string() })),
|
|
43438
43438
|
});
|
|
43439
43439
|
// TODO: finalize schema structure before release
|
|
43440
43440
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
43441
|
-
const
|
|
43442
|
-
|
|
43443
|
-
.
|
|
43444
|
-
|
|
43445
|
-
|
|
43446
|
-
|
|
43447
|
-
|
|
43448
|
-
type: z.literal('Link'),
|
|
43449
|
-
id: z.string(),
|
|
43450
|
-
linkType: z.enum(['Entry']),
|
|
43451
|
-
}),
|
|
43441
|
+
const ParameterDefinitionSchema$1 = z.object({
|
|
43442
|
+
defaultValue: z
|
|
43443
|
+
.record(z.string(), z.object({
|
|
43444
|
+
sys: z.object({
|
|
43445
|
+
type: z.literal('Link'),
|
|
43446
|
+
id: z.string(),
|
|
43447
|
+
linkType: z.enum(['Entry']),
|
|
43452
43448
|
}),
|
|
43453
|
-
})
|
|
43449
|
+
}))
|
|
43454
43450
|
.optional(),
|
|
43455
43451
|
contentTypes: z.record(z.string(), z.object({
|
|
43456
43452
|
sys: z.object({
|
|
@@ -43460,7 +43456,7 @@ const PatternPropertyDefinitionSchema$1 = z.object({
|
|
|
43460
43456
|
}),
|
|
43461
43457
|
})),
|
|
43462
43458
|
});
|
|
43463
|
-
const
|
|
43459
|
+
const ParameterDefinitionsSchema$1 = z.record(propertyKeySchema$1, ParameterDefinitionSchema$1);
|
|
43464
43460
|
const VariableMappingsSchema$1 = z.record(propertyKeySchema$1, VariableMappingSchema$1);
|
|
43465
43461
|
const ComponentVariablesSchema$1 = z.record(z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/), // Here the key is <variableName>_<nanoidId> so we need to allow for a longer length
|
|
43466
43462
|
ComponentVariableSchema$1);
|
|
@@ -43469,7 +43465,7 @@ const ComponentSettingsSchema$1 = z.object({
|
|
|
43469
43465
|
thumbnailId: z.enum(THUMBNAIL_IDS$1).optional(),
|
|
43470
43466
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
43471
43467
|
variableMappings: VariableMappingsSchema$1.optional(),
|
|
43472
|
-
|
|
43468
|
+
parameterDefinitions: ParameterDefinitionsSchema$1.optional(),
|
|
43473
43469
|
});
|
|
43474
43470
|
z.object({
|
|
43475
43471
|
componentTree: localeWrapper$1(ComponentTreeSchema$1),
|
|
@@ -58478,11 +58474,11 @@ const ComponentPropertyValueSchema = z.discriminatedUnion('type', [
|
|
|
58478
58474
|
]);
|
|
58479
58475
|
// TODO: finalize schema structure before release
|
|
58480
58476
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
58481
|
-
const
|
|
58477
|
+
const ParameterSchema = z.object({
|
|
58482
58478
|
type: z.literal('BoundValue'),
|
|
58483
58479
|
path: z.string(),
|
|
58484
58480
|
});
|
|
58485
|
-
const
|
|
58481
|
+
const ParametersSchema = z.record(propertyKeySchema, ParameterSchema);
|
|
58486
58482
|
const BreakpointSchema = z
|
|
58487
58483
|
.object({
|
|
58488
58484
|
id: propertyKeySchema,
|
|
@@ -58499,7 +58495,7 @@ const BaseComponentTreeNodeSchema = z.object({
|
|
|
58499
58495
|
displayName: z.string().optional(),
|
|
58500
58496
|
slotId: z.string().optional(),
|
|
58501
58497
|
variables: z.record(propertyKeySchema, ComponentPropertyValueSchema),
|
|
58502
|
-
|
|
58498
|
+
parameters: ParametersSchema.optional(),
|
|
58503
58499
|
});
|
|
58504
58500
|
const ComponentVariableSchema = z.object({
|
|
58505
58501
|
displayName: z.string().optional(),
|
|
@@ -58568,25 +58564,21 @@ const THUMBNAIL_IDS = [
|
|
|
58568
58564
|
// TODO: finalize schema structure before release
|
|
58569
58565
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
58570
58566
|
const VariableMappingSchema = z.object({
|
|
58571
|
-
|
|
58567
|
+
parameterId: propertyKeySchema,
|
|
58572
58568
|
type: z.literal('ContentTypeMapping'),
|
|
58573
58569
|
pathsByContentType: z.record(z.string(), z.object({ path: z.string() })),
|
|
58574
58570
|
});
|
|
58575
58571
|
// TODO: finalize schema structure before release
|
|
58576
58572
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
58577
|
-
const
|
|
58578
|
-
|
|
58579
|
-
.
|
|
58580
|
-
|
|
58581
|
-
|
|
58582
|
-
|
|
58583
|
-
|
|
58584
|
-
type: z.literal('Link'),
|
|
58585
|
-
id: z.string(),
|
|
58586
|
-
linkType: z.enum(['Entry']),
|
|
58587
|
-
}),
|
|
58573
|
+
const ParameterDefinitionSchema = z.object({
|
|
58574
|
+
defaultValue: z
|
|
58575
|
+
.record(z.string(), z.object({
|
|
58576
|
+
sys: z.object({
|
|
58577
|
+
type: z.literal('Link'),
|
|
58578
|
+
id: z.string(),
|
|
58579
|
+
linkType: z.enum(['Entry']),
|
|
58588
58580
|
}),
|
|
58589
|
-
})
|
|
58581
|
+
}))
|
|
58590
58582
|
.optional(),
|
|
58591
58583
|
contentTypes: z.record(z.string(), z.object({
|
|
58592
58584
|
sys: z.object({
|
|
@@ -58596,7 +58588,7 @@ const PatternPropertyDefinitionSchema = z.object({
|
|
|
58596
58588
|
}),
|
|
58597
58589
|
})),
|
|
58598
58590
|
});
|
|
58599
|
-
const
|
|
58591
|
+
const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefinitionSchema);
|
|
58600
58592
|
const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema);
|
|
58601
58593
|
const ComponentVariablesSchema = z.record(z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/), // Here the key is <variableName>_<nanoidId> so we need to allow for a longer length
|
|
58602
58594
|
ComponentVariableSchema);
|
|
@@ -58605,7 +58597,7 @@ const ComponentSettingsSchema = z.object({
|
|
|
58605
58597
|
thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
|
|
58606
58598
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
58607
58599
|
variableMappings: VariableMappingsSchema.optional(),
|
|
58608
|
-
|
|
58600
|
+
parameterDefinitions: ParameterDefinitionsSchema.optional(),
|
|
58609
58601
|
});
|
|
58610
58602
|
z.object({
|
|
58611
58603
|
componentTree: localeWrapper(ComponentTreeSchema),
|