@contentful/experiences-components-react 1.42.0-prerelease-20250627T1335-d74dad7.0 → 1.42.0-prerelease-20250630T1135-a8b68d4.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
@@ -1396,13 +1396,29 @@ const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefiniti
1396
1396
  const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema);
1397
1397
  const ComponentVariablesSchema = z.record(z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/), // Here the key is <variableName>_<nanoidId> so we need to allow for a longer length
1398
1398
  ComponentVariableSchema);
1399
- const ComponentSettingsSchema = z.object({
1399
+ const PassToNodeSchema = z
1400
+ .object({
1401
+ nodeId: propertyKeySchema,
1402
+ parameterId: propertyKeySchema,
1403
+ prebindingId: propertyKeySchema,
1404
+ })
1405
+ .strict();
1406
+ const PrebindingDefinitionSchema = z
1407
+ .object({
1408
+ id: propertyKeySchema,
1409
+ variableMappings: VariableMappingsSchema.optional(),
1410
+ parameterDefinitions: ParameterDefinitionsSchema,
1411
+ passToNodes: z.array(PassToNodeSchema).optional(),
1412
+ })
1413
+ .strict();
1414
+ const ComponentSettingsSchema = z
1415
+ .object({
1400
1416
  variableDefinitions: ComponentVariablesSchema,
1401
1417
  thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
1402
1418
  category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
1403
- variableMappings: VariableMappingsSchema.optional(),
1404
- parameterDefinitions: ParameterDefinitionsSchema.optional(),
1405
- });
1419
+ prebindingDefinitions: z.array(PrebindingDefinitionSchema).optional(),
1420
+ })
1421
+ .strict();
1406
1422
  z.object({
1407
1423
  componentTree: localeWrapper(ComponentTreeSchema),
1408
1424
  dataSource: localeWrapper(DataSourceSchema),