@contentful/experiences-visual-editor-react 2.0.0-dev-20250703T1456-7a2737b.0 → 2.0.0-dev-20250704T1052-fad2ef4.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 CHANGED
@@ -828,13 +828,7 @@ const ParameterDefinitionSchema$1 = z.object({
828
828
  }),
829
829
  })
830
830
  .optional(),
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
- })),
831
+ contentTypes: z.array(z.string()),
838
832
  passToNodes: z.array(PassToNodeSchema$1).optional(),
839
833
  });
840
834
  const ParameterDefinitionsSchema$1 = z.record(propertyKeySchema$1, ParameterDefinitionSchema$1);
@@ -854,7 +848,7 @@ const ComponentSettingsSchema$1 = z
854
848
  variableDefinitions: ComponentVariablesSchema$1,
855
849
  thumbnailId: z.enum(THUMBNAIL_IDS$1).optional(),
856
850
  category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
857
- prebindingDefinitions: z.array(PrebindingDefinitionSchema$1).max(1).optional(),
851
+ prebindingDefinitions: z.array(PrebindingDefinitionSchema$1).length(1).optional(),
858
852
  })
859
853
  .strict();
860
854
  z.object({
@@ -3820,13 +3814,7 @@ const ParameterDefinitionSchema = z.object({
3820
3814
  }),
3821
3815
  })
3822
3816
  .optional(),
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
- })),
3817
+ contentTypes: z.array(z.string()),
3830
3818
  passToNodes: z.array(PassToNodeSchema).optional(),
3831
3819
  });
3832
3820
  const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefinitionSchema);
@@ -3846,7 +3834,7 @@ const ComponentSettingsSchema = z
3846
3834
  variableDefinitions: ComponentVariablesSchema,
3847
3835
  thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
3848
3836
  category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
3849
- prebindingDefinitions: z.array(PrebindingDefinitionSchema).max(1).optional(),
3837
+ prebindingDefinitions: z.array(PrebindingDefinitionSchema).length(1).optional(),
3850
3838
  })
3851
3839
  .strict();
3852
3840
  z.object({