@contentful/experiences-components-react 1.42.0 → 1.42.1

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
@@ -1371,14 +1371,18 @@ const VariableMappingSchema = z.object({
1371
1371
  // TODO: finalize schema structure before release
1372
1372
  // https://contentful.atlassian.net/browse/LUMOS-523
1373
1373
  const ParameterDefinitionSchema = z.object({
1374
- defaultValue: z
1375
- .record(z.string(), z.object({
1376
- sys: z.object({
1377
- type: z.literal('Link'),
1378
- id: z.string(),
1379
- linkType: z.enum(['Entry']),
1374
+ defaultSource: z
1375
+ .strictObject({
1376
+ type: z.enum(['Entry']),
1377
+ contentTypeId: z.string(),
1378
+ link: z.strictObject({
1379
+ sys: z.strictObject({
1380
+ type: z.literal('Link'),
1381
+ id: z.string(),
1382
+ linkType: z.enum(['Entry']),
1383
+ }),
1380
1384
  }),
1381
- }))
1385
+ })
1382
1386
  .optional(),
1383
1387
  contentTypes: z.record(z.string(), z.object({
1384
1388
  sys: z.object({