@contentful/experiences-visual-editor-react 1.42.0-dev-20250625T1537-8a20b16.0 → 1.42.0-dev-20250626T1429-8019b38.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 +14 -14
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +14 -14
- 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,13 +43432,13 @@ 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
|
|
43441
|
+
const ParameterDefinitionSchema$1 = z.object({
|
|
43442
43442
|
defaultValue: z
|
|
43443
43443
|
.record(z.string(), z.object({
|
|
43444
43444
|
sys: z.object({
|
|
@@ -43456,7 +43456,7 @@ const PatternPropertyDefinitionSchema$1 = z.object({
|
|
|
43456
43456
|
}),
|
|
43457
43457
|
})),
|
|
43458
43458
|
});
|
|
43459
|
-
const
|
|
43459
|
+
const ParameterDefinitionsSchema$1 = z.record(propertyKeySchema$1, ParameterDefinitionSchema$1);
|
|
43460
43460
|
const VariableMappingsSchema$1 = z.record(propertyKeySchema$1, VariableMappingSchema$1);
|
|
43461
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
|
|
43462
43462
|
ComponentVariableSchema$1);
|
|
@@ -43465,7 +43465,7 @@ const ComponentSettingsSchema$1 = z.object({
|
|
|
43465
43465
|
thumbnailId: z.enum(THUMBNAIL_IDS$1).optional(),
|
|
43466
43466
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
43467
43467
|
variableMappings: VariableMappingsSchema$1.optional(),
|
|
43468
|
-
|
|
43468
|
+
parameterDefinitions: ParameterDefinitionsSchema$1.optional(),
|
|
43469
43469
|
});
|
|
43470
43470
|
z.object({
|
|
43471
43471
|
componentTree: localeWrapper$1(ComponentTreeSchema$1),
|
|
@@ -58474,11 +58474,11 @@ const ComponentPropertyValueSchema = z.discriminatedUnion('type', [
|
|
|
58474
58474
|
]);
|
|
58475
58475
|
// TODO: finalize schema structure before release
|
|
58476
58476
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
58477
|
-
const
|
|
58477
|
+
const ParameterSchema = z.object({
|
|
58478
58478
|
type: z.literal('BoundValue'),
|
|
58479
58479
|
path: z.string(),
|
|
58480
58480
|
});
|
|
58481
|
-
const
|
|
58481
|
+
const ParametersSchema = z.record(propertyKeySchema, ParameterSchema);
|
|
58482
58482
|
const BreakpointSchema = z
|
|
58483
58483
|
.object({
|
|
58484
58484
|
id: propertyKeySchema,
|
|
@@ -58495,7 +58495,7 @@ const BaseComponentTreeNodeSchema = z.object({
|
|
|
58495
58495
|
displayName: z.string().optional(),
|
|
58496
58496
|
slotId: z.string().optional(),
|
|
58497
58497
|
variables: z.record(propertyKeySchema, ComponentPropertyValueSchema),
|
|
58498
|
-
|
|
58498
|
+
parameters: ParametersSchema.optional(),
|
|
58499
58499
|
});
|
|
58500
58500
|
const ComponentVariableSchema = z.object({
|
|
58501
58501
|
displayName: z.string().optional(),
|
|
@@ -58564,13 +58564,13 @@ const THUMBNAIL_IDS = [
|
|
|
58564
58564
|
// TODO: finalize schema structure before release
|
|
58565
58565
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
58566
58566
|
const VariableMappingSchema = z.object({
|
|
58567
|
-
|
|
58567
|
+
parameterId: propertyKeySchema,
|
|
58568
58568
|
type: z.literal('ContentTypeMapping'),
|
|
58569
58569
|
pathsByContentType: z.record(z.string(), z.object({ path: z.string() })),
|
|
58570
58570
|
});
|
|
58571
58571
|
// TODO: finalize schema structure before release
|
|
58572
58572
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
58573
|
-
const
|
|
58573
|
+
const ParameterDefinitionSchema = z.object({
|
|
58574
58574
|
defaultValue: z
|
|
58575
58575
|
.record(z.string(), z.object({
|
|
58576
58576
|
sys: z.object({
|
|
@@ -58588,7 +58588,7 @@ const PatternPropertyDefinitionSchema = z.object({
|
|
|
58588
58588
|
}),
|
|
58589
58589
|
})),
|
|
58590
58590
|
});
|
|
58591
|
-
const
|
|
58591
|
+
const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefinitionSchema);
|
|
58592
58592
|
const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema);
|
|
58593
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
|
|
58594
58594
|
ComponentVariableSchema);
|
|
@@ -58597,7 +58597,7 @@ const ComponentSettingsSchema = z.object({
|
|
|
58597
58597
|
thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
|
|
58598
58598
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
58599
58599
|
variableMappings: VariableMappingsSchema.optional(),
|
|
58600
|
-
|
|
58600
|
+
parameterDefinitions: ParameterDefinitionsSchema.optional(),
|
|
58601
58601
|
});
|
|
58602
58602
|
z.object({
|
|
58603
58603
|
componentTree: localeWrapper(ComponentTreeSchema),
|