@contentful/experiences-visual-editor-react 3.7.2-dev-20250924T1519-77d453c.0 → 3.8.0-dev-20250925T1014-c658e71.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
@@ -727,7 +727,7 @@ const BREAKPOINT_QUERY_REGEX$1 = /^\*$|^[<>][0-9]+px$/;
727
727
  const BreakpointSchema$1 = z
728
728
  .object({
729
729
  id: propertyKeySchema$1,
730
- // Can be replace with z.templateLiteral when upgrading to zod v4
730
+ // Can be replaced with z.templateLiteral when upgrading to zod v4
731
731
  query: z.string().refine((s) => BREAKPOINT_QUERY_REGEX$1.test(s)),
732
732
  previewSize: z.string().optional(),
733
733
  displayName: z.string(),
@@ -868,8 +868,7 @@ const ParameterDefinitionSchema$1 = z.object({
868
868
  contentTypes: z.array(z.string()).min(1),
869
869
  passToNodes: z
870
870
  .array(PassToNodeSchema$1)
871
- .max(1, 'At most one "passToNodes" element is allowed per parameter definition.')
872
- .optional(), // we might change this to be empty array for native parameter definitions, that's why we don't use .length(1)
871
+ .max(1, 'At most one "passToNodes" element is allowed per parameter definition.'),
873
872
  });
874
873
  const ParameterDefinitionsSchema$1 = z.record(propertyKeySchema$1, ParameterDefinitionSchema$1);
875
874
  const VariableMappingsSchema$1 = z.record(propertyKeySchema$1, VariableMappingSchema$1);
@@ -971,7 +970,7 @@ const validatePassToNodes$1 = (rootChildren, componentSettings, ctx) => {
971
970
  return;
972
971
  }
973
972
  const { parameterDefinitions } = componentSettings.prebindingDefinitions[0];
974
- let nodeIds = new Set();
973
+ const nodeIds = new Set();
975
974
  for (const paramDef of Object.values(parameterDefinitions || {})) {
976
975
  paramDef.passToNodes?.forEach((n) => nodeIds.add(n.nodeId));
977
976
  }
@@ -1749,7 +1748,7 @@ const transformTextAlign = (value) => {
1749
1748
  return undefined;
1750
1749
  const sdkOptions = getSdkOptions();
1751
1750
  // New behavior: translate left/right to start/end
1752
- // Customer can opt-out by activating this global option toggle
1751
+ // Customer can opt out by activating this global option toggle
1753
1752
  if (!sdkOptions.__disableTextAlignmentTransform) {
1754
1753
  if (value === 'left')
1755
1754
  return 'start';
@@ -3965,7 +3964,7 @@ const BREAKPOINT_QUERY_REGEX = /^\*$|^[<>][0-9]+px$/;
3965
3964
  const BreakpointSchema = z
3966
3965
  .object({
3967
3966
  id: propertyKeySchema,
3968
- // Can be replace with z.templateLiteral when upgrading to zod v4
3967
+ // Can be replaced with z.templateLiteral when upgrading to zod v4
3969
3968
  query: z.string().refine((s) => BREAKPOINT_QUERY_REGEX.test(s)),
3970
3969
  previewSize: z.string().optional(),
3971
3970
  displayName: z.string(),
@@ -4106,8 +4105,7 @@ const ParameterDefinitionSchema = z.object({
4106
4105
  contentTypes: z.array(z.string()).min(1),
4107
4106
  passToNodes: z
4108
4107
  .array(PassToNodeSchema)
4109
- .max(1, 'At most one "passToNodes" element is allowed per parameter definition.')
4110
- .optional(), // we might change this to be empty array for native parameter definitions, that's why we don't use .length(1)
4108
+ .max(1, 'At most one "passToNodes" element is allowed per parameter definition.'),
4111
4109
  });
4112
4110
  const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefinitionSchema);
4113
4111
  const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema);
@@ -4209,7 +4207,7 @@ const validatePassToNodes = (rootChildren, componentSettings, ctx) => {
4209
4207
  return;
4210
4208
  }
4211
4209
  const { parameterDefinitions } = componentSettings.prebindingDefinitions[0];
4212
- let nodeIds = new Set();
4210
+ const nodeIds = new Set();
4213
4211
  for (const paramDef of Object.values(parameterDefinitions || {})) {
4214
4212
  paramDef.passToNodes?.forEach((n) => nodeIds.add(n.nodeId));
4215
4213
  }