@contentful/experiences-visual-editor-react 1.42.3 → 1.42.4-prerelease-20250702T1207-37b3bfc.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
@@ -836,13 +836,7 @@ const ParameterDefinitionSchema$1 = z.object({
836
836
  }),
837
837
  })
838
838
  .optional(),
839
- contentTypes: z.record(z.string(), z.object({
840
- sys: z.object({
841
- type: z.literal('Link'),
842
- id: z.string(),
843
- linkType: z.enum(['ContentType']),
844
- }),
845
- })),
839
+ contentTypes: z.array(z.string()),
846
840
  passToNodes: z.array(PassToNodeSchema$1).optional(),
847
841
  });
848
842
  const ParameterDefinitionsSchema$1 = z.record(propertyKeySchema$1, ParameterDefinitionSchema$1);
@@ -862,7 +856,7 @@ const ComponentSettingsSchema$1 = z
862
856
  variableDefinitions: ComponentVariablesSchema$1,
863
857
  thumbnailId: z.enum(THUMBNAIL_IDS$1).optional(),
864
858
  category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
865
- prebindingDefinitions: z.array(PrebindingDefinitionSchema$1).max(1).optional(),
859
+ prebindingDefinitions: z.array(PrebindingDefinitionSchema$1).length(1).optional(),
866
860
  })
867
861
  .strict();
868
862
  z.object({
@@ -3712,13 +3706,7 @@ const ParameterDefinitionSchema = z.object({
3712
3706
  }),
3713
3707
  })
3714
3708
  .optional(),
3715
- contentTypes: z.record(z.string(), z.object({
3716
- sys: z.object({
3717
- type: z.literal('Link'),
3718
- id: z.string(),
3719
- linkType: z.enum(['ContentType']),
3720
- }),
3721
- })),
3709
+ contentTypes: z.array(z.string()),
3722
3710
  passToNodes: z.array(PassToNodeSchema).optional(),
3723
3711
  });
3724
3712
  const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefinitionSchema);
@@ -3738,7 +3726,7 @@ const ComponentSettingsSchema = z
3738
3726
  variableDefinitions: ComponentVariablesSchema,
3739
3727
  thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
3740
3728
  category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
3741
- prebindingDefinitions: z.array(PrebindingDefinitionSchema).max(1).optional(),
3729
+ prebindingDefinitions: z.array(PrebindingDefinitionSchema).length(1).optional(),
3742
3730
  })
3743
3731
  .strict();
3744
3732
  z.object({