@contentful/experiences-visual-editor-react 1.42.0 → 1.42.1-beta.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
@@ -818,14 +818,18 @@ const VariableMappingSchema$1 = z.object({
818
818
  // TODO: finalize schema structure before release
819
819
  // https://contentful.atlassian.net/browse/LUMOS-523
820
820
  const ParameterDefinitionSchema$1 = z.object({
821
- defaultValue: z
822
- .record(z.string(), z.object({
823
- sys: z.object({
824
- type: z.literal('Link'),
825
- id: z.string(),
826
- linkType: z.enum(['Entry']),
821
+ defaultSource: z
822
+ .strictObject({
823
+ type: z.enum(['Entry']),
824
+ contentTypeId: z.string(),
825
+ link: z.strictObject({
826
+ sys: z.strictObject({
827
+ type: z.literal('Link'),
828
+ id: z.string(),
829
+ linkType: z.enum(['Entry']),
830
+ }),
827
831
  }),
828
- }))
832
+ })
829
833
  .optional(),
830
834
  contentTypes: z.record(z.string(), z.object({
831
835
  sys: z.object({
@@ -3657,14 +3661,18 @@ const VariableMappingSchema = z.object({
3657
3661
  // TODO: finalize schema structure before release
3658
3662
  // https://contentful.atlassian.net/browse/LUMOS-523
3659
3663
  const ParameterDefinitionSchema = z.object({
3660
- defaultValue: z
3661
- .record(z.string(), z.object({
3662
- sys: z.object({
3663
- type: z.literal('Link'),
3664
- id: z.string(),
3665
- linkType: z.enum(['Entry']),
3664
+ defaultSource: z
3665
+ .strictObject({
3666
+ type: z.enum(['Entry']),
3667
+ contentTypeId: z.string(),
3668
+ link: z.strictObject({
3669
+ sys: z.strictObject({
3670
+ type: z.literal('Link'),
3671
+ id: z.string(),
3672
+ linkType: z.enum(['Entry']),
3673
+ }),
3666
3674
  }),
3667
- }))
3675
+ })
3668
3676
  .optional(),
3669
3677
  contentTypes: z.record(z.string(), z.object({
3670
3678
  sys: z.object({