@contentful/experiences-visual-editor-react 1.42.0-prerelease-20250625T0902-d9db401.0 → 1.42.0-prerelease-20250627T1335-d74dad7.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
|
defaultSource: z
|
|
43443
43443
|
.strictObject({
|
|
43444
43444
|
type: z.enum(['Entry']),
|
|
@@ -43460,7 +43460,7 @@ const PatternPropertyDefinitionSchema$1 = z.object({
|
|
|
43460
43460
|
}),
|
|
43461
43461
|
})),
|
|
43462
43462
|
});
|
|
43463
|
-
const
|
|
43463
|
+
const ParameterDefinitionsSchema$1 = z.record(propertyKeySchema$1, ParameterDefinitionSchema$1);
|
|
43464
43464
|
const VariableMappingsSchema$1 = z.record(propertyKeySchema$1, VariableMappingSchema$1);
|
|
43465
43465
|
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
43466
|
ComponentVariableSchema$1);
|
|
@@ -43469,7 +43469,7 @@ const ComponentSettingsSchema$1 = z.object({
|
|
|
43469
43469
|
thumbnailId: z.enum(THUMBNAIL_IDS$1).optional(),
|
|
43470
43470
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
43471
43471
|
variableMappings: VariableMappingsSchema$1.optional(),
|
|
43472
|
-
|
|
43472
|
+
parameterDefinitions: ParameterDefinitionsSchema$1.optional(),
|
|
43473
43473
|
});
|
|
43474
43474
|
z.object({
|
|
43475
43475
|
componentTree: localeWrapper$1(ComponentTreeSchema$1),
|
|
@@ -58478,11 +58478,11 @@ const ComponentPropertyValueSchema = z.discriminatedUnion('type', [
|
|
|
58478
58478
|
]);
|
|
58479
58479
|
// TODO: finalize schema structure before release
|
|
58480
58480
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
58481
|
-
const
|
|
58481
|
+
const ParameterSchema = z.object({
|
|
58482
58482
|
type: z.literal('BoundValue'),
|
|
58483
58483
|
path: z.string(),
|
|
58484
58484
|
});
|
|
58485
|
-
const
|
|
58485
|
+
const ParametersSchema = z.record(propertyKeySchema, ParameterSchema);
|
|
58486
58486
|
const BreakpointSchema = z
|
|
58487
58487
|
.object({
|
|
58488
58488
|
id: propertyKeySchema,
|
|
@@ -58499,7 +58499,7 @@ const BaseComponentTreeNodeSchema = z.object({
|
|
|
58499
58499
|
displayName: z.string().optional(),
|
|
58500
58500
|
slotId: z.string().optional(),
|
|
58501
58501
|
variables: z.record(propertyKeySchema, ComponentPropertyValueSchema),
|
|
58502
|
-
|
|
58502
|
+
parameters: ParametersSchema.optional(),
|
|
58503
58503
|
});
|
|
58504
58504
|
const ComponentVariableSchema = z.object({
|
|
58505
58505
|
displayName: z.string().optional(),
|
|
@@ -58568,13 +58568,13 @@ const THUMBNAIL_IDS = [
|
|
|
58568
58568
|
// TODO: finalize schema structure before release
|
|
58569
58569
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
58570
58570
|
const VariableMappingSchema = z.object({
|
|
58571
|
-
|
|
58571
|
+
parameterId: propertyKeySchema,
|
|
58572
58572
|
type: z.literal('ContentTypeMapping'),
|
|
58573
58573
|
pathsByContentType: z.record(z.string(), z.object({ path: z.string() })),
|
|
58574
58574
|
});
|
|
58575
58575
|
// TODO: finalize schema structure before release
|
|
58576
58576
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
58577
|
-
const
|
|
58577
|
+
const ParameterDefinitionSchema = z.object({
|
|
58578
58578
|
defaultSource: z
|
|
58579
58579
|
.strictObject({
|
|
58580
58580
|
type: z.enum(['Entry']),
|
|
@@ -58596,7 +58596,7 @@ const PatternPropertyDefinitionSchema = z.object({
|
|
|
58596
58596
|
}),
|
|
58597
58597
|
})),
|
|
58598
58598
|
});
|
|
58599
|
-
const
|
|
58599
|
+
const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefinitionSchema);
|
|
58600
58600
|
const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema);
|
|
58601
58601
|
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
58602
|
ComponentVariableSchema);
|
|
@@ -58605,7 +58605,7 @@ const ComponentSettingsSchema = z.object({
|
|
|
58605
58605
|
thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
|
|
58606
58606
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
58607
58607
|
variableMappings: VariableMappingsSchema.optional(),
|
|
58608
|
-
|
|
58608
|
+
parameterDefinitions: ParameterDefinitionsSchema.optional(),
|
|
58609
58609
|
});
|
|
58610
58610
|
z.object({
|
|
58611
58611
|
componentTree: localeWrapper(ComponentTreeSchema),
|