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