@contentful/experiences-visual-editor-react 2.0.0-beta.1 → 2.0.0-dev-20250703T1456-7a2737b.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 +16 -4
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +16 -4
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -828,7 +828,13 @@ const ParameterDefinitionSchema$1 = z.object({
|
|
|
828
828
|
}),
|
|
829
829
|
})
|
|
830
830
|
.optional(),
|
|
831
|
-
contentTypes: z.
|
|
831
|
+
contentTypes: z.record(z.string(), z.object({
|
|
832
|
+
sys: z.object({
|
|
833
|
+
type: z.literal('Link'),
|
|
834
|
+
id: z.string(),
|
|
835
|
+
linkType: z.enum(['ContentType']),
|
|
836
|
+
}),
|
|
837
|
+
})),
|
|
832
838
|
passToNodes: z.array(PassToNodeSchema$1).optional(),
|
|
833
839
|
});
|
|
834
840
|
const ParameterDefinitionsSchema$1 = z.record(propertyKeySchema$1, ParameterDefinitionSchema$1);
|
|
@@ -848,7 +854,7 @@ const ComponentSettingsSchema$1 = z
|
|
|
848
854
|
variableDefinitions: ComponentVariablesSchema$1,
|
|
849
855
|
thumbnailId: z.enum(THUMBNAIL_IDS$1).optional(),
|
|
850
856
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
851
|
-
prebindingDefinitions: z.array(PrebindingDefinitionSchema$1).
|
|
857
|
+
prebindingDefinitions: z.array(PrebindingDefinitionSchema$1).max(1).optional(),
|
|
852
858
|
})
|
|
853
859
|
.strict();
|
|
854
860
|
z.object({
|
|
@@ -3814,7 +3820,13 @@ const ParameterDefinitionSchema = z.object({
|
|
|
3814
3820
|
}),
|
|
3815
3821
|
})
|
|
3816
3822
|
.optional(),
|
|
3817
|
-
contentTypes: z.
|
|
3823
|
+
contentTypes: z.record(z.string(), z.object({
|
|
3824
|
+
sys: z.object({
|
|
3825
|
+
type: z.literal('Link'),
|
|
3826
|
+
id: z.string(),
|
|
3827
|
+
linkType: z.enum(['ContentType']),
|
|
3828
|
+
}),
|
|
3829
|
+
})),
|
|
3818
3830
|
passToNodes: z.array(PassToNodeSchema).optional(),
|
|
3819
3831
|
});
|
|
3820
3832
|
const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefinitionSchema);
|
|
@@ -3834,7 +3846,7 @@ const ComponentSettingsSchema = z
|
|
|
3834
3846
|
variableDefinitions: ComponentVariablesSchema,
|
|
3835
3847
|
thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
|
|
3836
3848
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
3837
|
-
prebindingDefinitions: z.array(PrebindingDefinitionSchema).
|
|
3849
|
+
prebindingDefinitions: z.array(PrebindingDefinitionSchema).max(1).optional(),
|
|
3838
3850
|
})
|
|
3839
3851
|
.strict();
|
|
3840
3852
|
z.object({
|