@contentful/experiences-core 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.
@@ -29,13 +29,7 @@ declare class EntityStore extends EntityStoreBase {
29
29
  }>;
30
30
  }>;
31
31
  get hoistedParameterDefinitions(): Record<string, {
32
- contentTypes: Record<string, {
33
- sys: {
34
- type: "Link";
35
- id: string;
36
- linkType: "ContentType";
37
- };
38
- }>;
32
+ contentTypes: string[];
39
33
  defaultSource?: {
40
34
  type: "Entry";
41
35
  contentTypeId: string;
package/dist/index.js CHANGED
@@ -1059,13 +1059,7 @@ const ParameterDefinitionSchema = z.object({
1059
1059
  }),
1060
1060
  })
1061
1061
  .optional(),
1062
- contentTypes: z.record(z.string(), z.object({
1063
- sys: z.object({
1064
- type: z.literal('Link'),
1065
- id: z.string(),
1066
- linkType: z.enum(['ContentType']),
1067
- }),
1068
- })),
1062
+ contentTypes: z.array(z.string()),
1069
1063
  passToNodes: z.array(PassToNodeSchema).optional(),
1070
1064
  });
1071
1065
  const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefinitionSchema);
@@ -1085,7 +1079,7 @@ const ComponentSettingsSchema = z
1085
1079
  variableDefinitions: ComponentVariablesSchema,
1086
1080
  thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
1087
1081
  category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
1088
- prebindingDefinitions: z.array(PrebindingDefinitionSchema).max(1).optional(),
1082
+ prebindingDefinitions: z.array(PrebindingDefinitionSchema).length(1).optional(),
1089
1083
  })
1090
1084
  .strict();
1091
1085
  z.object({