@contentful/experiences-components-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 CHANGED
@@ -1409,7 +1409,13 @@ const ParameterDefinitionSchema = z.object({
1409
1409
  }),
1410
1410
  })
1411
1411
  .optional(),
1412
- contentTypes: z.array(z.string()),
1412
+ contentTypes: z.record(z.string(), z.object({
1413
+ sys: z.object({
1414
+ type: z.literal('Link'),
1415
+ id: z.string(),
1416
+ linkType: z.enum(['ContentType']),
1417
+ }),
1418
+ })),
1413
1419
  passToNodes: z.array(PassToNodeSchema).optional(),
1414
1420
  });
1415
1421
  const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefinitionSchema);
@@ -1429,7 +1435,7 @@ const ComponentSettingsSchema = z
1429
1435
  variableDefinitions: ComponentVariablesSchema,
1430
1436
  thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
1431
1437
  category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
1432
- prebindingDefinitions: z.array(PrebindingDefinitionSchema).length(1).optional(),
1438
+ prebindingDefinitions: z.array(PrebindingDefinitionSchema).max(1).optional(),
1433
1439
  })
1434
1440
  .strict();
1435
1441
  z.object({