@contentful/experiences-visual-editor-react 1.42.0-prerelease-20250627T1335-d74dad7.0 → 1.42.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,18 +818,14 @@ 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
- 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
- }),
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']),
831
827
  }),
832
- })
828
+ }))
833
829
  .optional(),
834
830
  contentTypes: z.record(z.string(), z.object({
835
831
  sys: z.object({
@@ -3661,18 +3657,14 @@ const VariableMappingSchema = z.object({
3661
3657
  // TODO: finalize schema structure before release
3662
3658
  // https://contentful.atlassian.net/browse/LUMOS-523
3663
3659
  const ParameterDefinitionSchema = z.object({
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
- }),
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']),
3674
3666
  }),
3675
- })
3667
+ }))
3676
3668
  .optional(),
3677
3669
  contentTypes: z.record(z.string(), z.object({
3678
3670
  sys: z.object({