@contentful/experiences-visual-editor-react 1.42.0-prerelease-20250627T1335-d74dad7.0 → 1.42.0-prerelease-20250630T1135-a8b68d4.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 +40 -8
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +40 -8
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -843,13 +843,29 @@ const ParameterDefinitionsSchema$1 = z.record(propertyKeySchema$1, ParameterDefi
|
|
|
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);
|
|
846
|
-
const
|
|
846
|
+
const PassToNodeSchema$1 = z
|
|
847
|
+
.object({
|
|
848
|
+
nodeId: propertyKeySchema$1,
|
|
849
|
+
parameterId: propertyKeySchema$1,
|
|
850
|
+
prebindingId: propertyKeySchema$1,
|
|
851
|
+
})
|
|
852
|
+
.strict();
|
|
853
|
+
const PrebindingDefinitionSchema$1 = z
|
|
854
|
+
.object({
|
|
855
|
+
id: propertyKeySchema$1,
|
|
856
|
+
variableMappings: VariableMappingsSchema$1.optional(),
|
|
857
|
+
parameterDefinitions: ParameterDefinitionsSchema$1,
|
|
858
|
+
passToNodes: z.array(PassToNodeSchema$1).optional(),
|
|
859
|
+
})
|
|
860
|
+
.strict();
|
|
861
|
+
const ComponentSettingsSchema$1 = z
|
|
862
|
+
.object({
|
|
847
863
|
variableDefinitions: ComponentVariablesSchema$1,
|
|
848
864
|
thumbnailId: z.enum(THUMBNAIL_IDS$1).optional(),
|
|
849
865
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
866
|
+
prebindingDefinitions: z.array(PrebindingDefinitionSchema$1).optional(),
|
|
867
|
+
})
|
|
868
|
+
.strict();
|
|
853
869
|
z.object({
|
|
854
870
|
componentTree: localeWrapper$1(ComponentTreeSchema$1),
|
|
855
871
|
dataSource: localeWrapper$1(DataSourceSchema$1),
|
|
@@ -3686,13 +3702,29 @@ const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefiniti
|
|
|
3686
3702
|
const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema);
|
|
3687
3703
|
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
3704
|
ComponentVariableSchema);
|
|
3689
|
-
const
|
|
3705
|
+
const PassToNodeSchema = z
|
|
3706
|
+
.object({
|
|
3707
|
+
nodeId: propertyKeySchema,
|
|
3708
|
+
parameterId: propertyKeySchema,
|
|
3709
|
+
prebindingId: propertyKeySchema,
|
|
3710
|
+
})
|
|
3711
|
+
.strict();
|
|
3712
|
+
const PrebindingDefinitionSchema = z
|
|
3713
|
+
.object({
|
|
3714
|
+
id: propertyKeySchema,
|
|
3715
|
+
variableMappings: VariableMappingsSchema.optional(),
|
|
3716
|
+
parameterDefinitions: ParameterDefinitionsSchema,
|
|
3717
|
+
passToNodes: z.array(PassToNodeSchema).optional(),
|
|
3718
|
+
})
|
|
3719
|
+
.strict();
|
|
3720
|
+
const ComponentSettingsSchema = z
|
|
3721
|
+
.object({
|
|
3690
3722
|
variableDefinitions: ComponentVariablesSchema,
|
|
3691
3723
|
thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
|
|
3692
3724
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3725
|
+
prebindingDefinitions: z.array(PrebindingDefinitionSchema).optional(),
|
|
3726
|
+
})
|
|
3727
|
+
.strict();
|
|
3696
3728
|
z.object({
|
|
3697
3729
|
componentTree: localeWrapper(ComponentTreeSchema),
|
|
3698
3730
|
dataSource: localeWrapper(DataSourceSchema),
|