@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/index.js
CHANGED
|
@@ -721,11 +721,11 @@ const ComponentPropertyValueSchema$1 = z.discriminatedUnion('type', [
|
|
|
721
721
|
]);
|
|
722
722
|
// TODO: finalize schema structure before release
|
|
723
723
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
724
|
-
const
|
|
724
|
+
const ParameterSchema$1 = z.object({
|
|
725
725
|
type: z.literal('BoundValue'),
|
|
726
726
|
path: z.string(),
|
|
727
727
|
});
|
|
728
|
-
const
|
|
728
|
+
const ParametersSchema$1 = z.record(propertyKeySchema$1, ParameterSchema$1);
|
|
729
729
|
const BreakpointSchema$1 = z
|
|
730
730
|
.object({
|
|
731
731
|
id: propertyKeySchema$1,
|
|
@@ -742,7 +742,7 @@ const BaseComponentTreeNodeSchema$1 = z.object({
|
|
|
742
742
|
displayName: z.string().optional(),
|
|
743
743
|
slotId: z.string().optional(),
|
|
744
744
|
variables: z.record(propertyKeySchema$1, ComponentPropertyValueSchema$1),
|
|
745
|
-
|
|
745
|
+
parameters: ParametersSchema$1.optional(),
|
|
746
746
|
});
|
|
747
747
|
const ComponentVariableSchema$1 = z.object({
|
|
748
748
|
displayName: z.string().optional(),
|
|
@@ -811,13 +811,13 @@ const THUMBNAIL_IDS$1 = [
|
|
|
811
811
|
// TODO: finalize schema structure before release
|
|
812
812
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
813
813
|
const VariableMappingSchema$1 = z.object({
|
|
814
|
-
|
|
814
|
+
parameterId: propertyKeySchema$1,
|
|
815
815
|
type: z.literal('ContentTypeMapping'),
|
|
816
816
|
pathsByContentType: z.record(z.string(), z.object({ path: z.string() })),
|
|
817
817
|
});
|
|
818
818
|
// TODO: finalize schema structure before release
|
|
819
819
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
820
|
-
const
|
|
820
|
+
const ParameterDefinitionSchema$1 = z.object({
|
|
821
821
|
defaultSource: z
|
|
822
822
|
.strictObject({
|
|
823
823
|
type: z.enum(['Entry']),
|
|
@@ -839,7 +839,7 @@ const PatternPropertyDefinitionSchema$1 = z.object({
|
|
|
839
839
|
}),
|
|
840
840
|
})),
|
|
841
841
|
});
|
|
842
|
-
const
|
|
842
|
+
const ParameterDefinitionsSchema$1 = z.record(propertyKeySchema$1, ParameterDefinitionSchema$1);
|
|
843
843
|
const VariableMappingsSchema$1 = z.record(propertyKeySchema$1, VariableMappingSchema$1);
|
|
844
844
|
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
|
|
845
845
|
ComponentVariableSchema$1);
|
|
@@ -848,7 +848,7 @@ const ComponentSettingsSchema$1 = z.object({
|
|
|
848
848
|
thumbnailId: z.enum(THUMBNAIL_IDS$1).optional(),
|
|
849
849
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
850
850
|
variableMappings: VariableMappingsSchema$1.optional(),
|
|
851
|
-
|
|
851
|
+
parameterDefinitions: ParameterDefinitionsSchema$1.optional(),
|
|
852
852
|
});
|
|
853
853
|
z.object({
|
|
854
854
|
componentTree: localeWrapper$1(ComponentTreeSchema$1),
|
|
@@ -3564,11 +3564,11 @@ const ComponentPropertyValueSchema = z.discriminatedUnion('type', [
|
|
|
3564
3564
|
]);
|
|
3565
3565
|
// TODO: finalize schema structure before release
|
|
3566
3566
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
3567
|
-
const
|
|
3567
|
+
const ParameterSchema = z.object({
|
|
3568
3568
|
type: z.literal('BoundValue'),
|
|
3569
3569
|
path: z.string(),
|
|
3570
3570
|
});
|
|
3571
|
-
const
|
|
3571
|
+
const ParametersSchema = z.record(propertyKeySchema, ParameterSchema);
|
|
3572
3572
|
const BreakpointSchema = z
|
|
3573
3573
|
.object({
|
|
3574
3574
|
id: propertyKeySchema,
|
|
@@ -3585,7 +3585,7 @@ const BaseComponentTreeNodeSchema = z.object({
|
|
|
3585
3585
|
displayName: z.string().optional(),
|
|
3586
3586
|
slotId: z.string().optional(),
|
|
3587
3587
|
variables: z.record(propertyKeySchema, ComponentPropertyValueSchema),
|
|
3588
|
-
|
|
3588
|
+
parameters: ParametersSchema.optional(),
|
|
3589
3589
|
});
|
|
3590
3590
|
const ComponentVariableSchema = z.object({
|
|
3591
3591
|
displayName: z.string().optional(),
|
|
@@ -3654,13 +3654,13 @@ const THUMBNAIL_IDS = [
|
|
|
3654
3654
|
// TODO: finalize schema structure before release
|
|
3655
3655
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
3656
3656
|
const VariableMappingSchema = z.object({
|
|
3657
|
-
|
|
3657
|
+
parameterId: propertyKeySchema,
|
|
3658
3658
|
type: z.literal('ContentTypeMapping'),
|
|
3659
3659
|
pathsByContentType: z.record(z.string(), z.object({ path: z.string() })),
|
|
3660
3660
|
});
|
|
3661
3661
|
// TODO: finalize schema structure before release
|
|
3662
3662
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
3663
|
-
const
|
|
3663
|
+
const ParameterDefinitionSchema = z.object({
|
|
3664
3664
|
defaultSource: z
|
|
3665
3665
|
.strictObject({
|
|
3666
3666
|
type: z.enum(['Entry']),
|
|
@@ -3682,7 +3682,7 @@ const PatternPropertyDefinitionSchema = z.object({
|
|
|
3682
3682
|
}),
|
|
3683
3683
|
})),
|
|
3684
3684
|
});
|
|
3685
|
-
const
|
|
3685
|
+
const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefinitionSchema);
|
|
3686
3686
|
const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema);
|
|
3687
3687
|
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
|
|
3688
3688
|
ComponentVariableSchema);
|
|
@@ -3691,7 +3691,7 @@ const ComponentSettingsSchema = z.object({
|
|
|
3691
3691
|
thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
|
|
3692
3692
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
3693
3693
|
variableMappings: VariableMappingsSchema.optional(),
|
|
3694
|
-
|
|
3694
|
+
parameterDefinitions: ParameterDefinitionsSchema.optional(),
|
|
3695
3695
|
});
|
|
3696
3696
|
z.object({
|
|
3697
3697
|
componentTree: localeWrapper(ComponentTreeSchema),
|