@contentful/experiences-visual-editor-react 1.42.0-dev-20250625T1537-8a20b16.0 → 1.42.0-dev-20250626T1429-8019b38.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
@@ -721,11 +721,11 @@ const ComponentPropertyValueSchema$1 = z.discriminatedUnion('type', [
721
721
  ]);
722
722
  // TODO: finalize schema structure before release
723
723
  // https://contentful.atlassian.net/browse/LUMOS-523
724
- const PatternPropertySchema$1 = z.object({
724
+ const ParameterSchema$1 = z.object({
725
725
  type: z.literal('BoundValue'),
726
726
  path: z.string(),
727
727
  });
728
- const PatternPropertiesSchema$1 = z.record(propertyKeySchema$1, PatternPropertySchema$1);
728
+ const ParametersSchema$1 = z.record(propertyKeySchema$1, ParameterSchema$1);
729
729
  const BreakpointSchema$1 = z
730
730
  .object({
731
731
  id: propertyKeySchema$1,
@@ -742,7 +742,7 @@ const BaseComponentTreeNodeSchema$1 = z.object({
742
742
  displayName: z.string().optional(),
743
743
  slotId: z.string().optional(),
744
744
  variables: z.record(propertyKeySchema$1, ComponentPropertyValueSchema$1),
745
- patternProperties: PatternPropertiesSchema$1.optional(),
745
+ parameters: ParametersSchema$1.optional(),
746
746
  });
747
747
  const ComponentVariableSchema$1 = z.object({
748
748
  displayName: z.string().optional(),
@@ -811,13 +811,13 @@ const THUMBNAIL_IDS$1 = [
811
811
  // TODO: finalize schema structure before release
812
812
  // https://contentful.atlassian.net/browse/LUMOS-523
813
813
  const VariableMappingSchema$1 = z.object({
814
- patternPropertyDefinitionId: propertyKeySchema$1,
814
+ parameterId: propertyKeySchema$1,
815
815
  type: z.literal('ContentTypeMapping'),
816
816
  pathsByContentType: z.record(z.string(), z.object({ path: z.string() })),
817
817
  });
818
818
  // TODO: finalize schema structure before release
819
819
  // https://contentful.atlassian.net/browse/LUMOS-523
820
- const PatternPropertyDefinitionSchema$1 = z.object({
820
+ const ParameterDefinitionSchema$1 = z.object({
821
821
  defaultValue: z
822
822
  .record(z.string(), z.object({
823
823
  sys: z.object({
@@ -835,7 +835,7 @@ const PatternPropertyDefinitionSchema$1 = z.object({
835
835
  }),
836
836
  })),
837
837
  });
838
- const PatternPropertyDefinitionsSchema$1 = z.record(propertyKeySchema$1, PatternPropertyDefinitionSchema$1);
838
+ const ParameterDefinitionsSchema$1 = z.record(propertyKeySchema$1, ParameterDefinitionSchema$1);
839
839
  const VariableMappingsSchema$1 = z.record(propertyKeySchema$1, VariableMappingSchema$1);
840
840
  const ComponentVariablesSchema$1 = 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
841
841
  ComponentVariableSchema$1);
@@ -844,7 +844,7 @@ const ComponentSettingsSchema$1 = z.object({
844
844
  thumbnailId: z.enum(THUMBNAIL_IDS$1).optional(),
845
845
  category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
846
846
  variableMappings: VariableMappingsSchema$1.optional(),
847
- patternPropertyDefinitions: PatternPropertyDefinitionsSchema$1.optional(),
847
+ parameterDefinitions: ParameterDefinitionsSchema$1.optional(),
848
848
  });
849
849
  z.object({
850
850
  componentTree: localeWrapper$1(ComponentTreeSchema$1),
@@ -3560,11 +3560,11 @@ const ComponentPropertyValueSchema = z.discriminatedUnion('type', [
3560
3560
  ]);
3561
3561
  // TODO: finalize schema structure before release
3562
3562
  // https://contentful.atlassian.net/browse/LUMOS-523
3563
- const PatternPropertySchema = z.object({
3563
+ const ParameterSchema = z.object({
3564
3564
  type: z.literal('BoundValue'),
3565
3565
  path: z.string(),
3566
3566
  });
3567
- const PatternPropertiesSchema = z.record(propertyKeySchema, PatternPropertySchema);
3567
+ const ParametersSchema = z.record(propertyKeySchema, ParameterSchema);
3568
3568
  const BreakpointSchema = z
3569
3569
  .object({
3570
3570
  id: propertyKeySchema,
@@ -3581,7 +3581,7 @@ const BaseComponentTreeNodeSchema = z.object({
3581
3581
  displayName: z.string().optional(),
3582
3582
  slotId: z.string().optional(),
3583
3583
  variables: z.record(propertyKeySchema, ComponentPropertyValueSchema),
3584
- patternProperties: PatternPropertiesSchema.optional(),
3584
+ parameters: ParametersSchema.optional(),
3585
3585
  });
3586
3586
  const ComponentVariableSchema = z.object({
3587
3587
  displayName: z.string().optional(),
@@ -3650,13 +3650,13 @@ const THUMBNAIL_IDS = [
3650
3650
  // TODO: finalize schema structure before release
3651
3651
  // https://contentful.atlassian.net/browse/LUMOS-523
3652
3652
  const VariableMappingSchema = z.object({
3653
- patternPropertyDefinitionId: propertyKeySchema,
3653
+ parameterId: propertyKeySchema,
3654
3654
  type: z.literal('ContentTypeMapping'),
3655
3655
  pathsByContentType: z.record(z.string(), z.object({ path: z.string() })),
3656
3656
  });
3657
3657
  // TODO: finalize schema structure before release
3658
3658
  // https://contentful.atlassian.net/browse/LUMOS-523
3659
- const PatternPropertyDefinitionSchema = z.object({
3659
+ const ParameterDefinitionSchema = z.object({
3660
3660
  defaultValue: z
3661
3661
  .record(z.string(), z.object({
3662
3662
  sys: z.object({
@@ -3674,7 +3674,7 @@ const PatternPropertyDefinitionSchema = z.object({
3674
3674
  }),
3675
3675
  })),
3676
3676
  });
3677
- const PatternPropertyDefinitionsSchema = z.record(propertyKeySchema, PatternPropertyDefinitionSchema);
3677
+ const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefinitionSchema);
3678
3678
  const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema);
3679
3679
  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
3680
3680
  ComponentVariableSchema);
@@ -3683,7 +3683,7 @@ const ComponentSettingsSchema = z.object({
3683
3683
  thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
3684
3684
  category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
3685
3685
  variableMappings: VariableMappingsSchema.optional(),
3686
- patternPropertyDefinitions: PatternPropertyDefinitionsSchema.optional(),
3686
+ parameterDefinitions: ParameterDefinitionsSchema.optional(),
3687
3687
  });
3688
3688
  z.object({
3689
3689
  componentTree: localeWrapper(ComponentTreeSchema),