@contentful/experiences-visual-editor-react 3.7.2-dev-20250924T1519-77d453c.0 → 3.8.0-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/renderApp.js CHANGED
@@ -42101,7 +42101,7 @@ const BREAKPOINT_QUERY_REGEX$1 = /^\*$|^[<>][0-9]+px$/;
42101
42101
  const BreakpointSchema$1 = z
42102
42102
  .object({
42103
42103
  id: propertyKeySchema$1,
42104
- // Can be replace with z.templateLiteral when upgrading to zod v4
42104
+ // Can be replaced with z.templateLiteral when upgrading to zod v4
42105
42105
  query: z.string().refine((s) => BREAKPOINT_QUERY_REGEX$1.test(s)),
42106
42106
  previewSize: z.string().optional(),
42107
42107
  displayName: z.string(),
@@ -42242,8 +42242,7 @@ const ParameterDefinitionSchema$1 = z.object({
42242
42242
  contentTypes: z.array(z.string()).min(1),
42243
42243
  passToNodes: z
42244
42244
  .array(PassToNodeSchema$1)
42245
- .max(1, 'At most one "passToNodes" element is allowed per parameter definition.')
42246
- .optional(), // we might change this to be empty array for native parameter definitions, that's why we don't use .length(1)
42245
+ .max(1, 'At most one "passToNodes" element is allowed per parameter definition.'),
42247
42246
  });
42248
42247
  const ParameterDefinitionsSchema$1 = z.record(propertyKeySchema$1, ParameterDefinitionSchema$1);
42249
42248
  const VariableMappingsSchema$1 = z.record(propertyKeySchema$1, VariableMappingSchema$1);
@@ -42345,7 +42344,7 @@ const validatePassToNodes$1 = (rootChildren, componentSettings, ctx) => {
42345
42344
  return;
42346
42345
  }
42347
42346
  const { parameterDefinitions } = componentSettings.prebindingDefinitions[0];
42348
- let nodeIds = new Set();
42347
+ const nodeIds = new Set();
42349
42348
  for (const paramDef of Object.values(parameterDefinitions || {})) {
42350
42349
  paramDef.passToNodes?.forEach((n) => nodeIds.add(n.nodeId));
42351
42350
  }
@@ -43123,7 +43122,7 @@ const transformTextAlign = (value) => {
43123
43122
  return undefined;
43124
43123
  const sdkOptions = getSdkOptions();
43125
43124
  // New behavior: translate left/right to start/end
43126
- // Customer can opt-out by activating this global option toggle
43125
+ // Customer can opt out by activating this global option toggle
43127
43126
  if (!sdkOptions.__disableTextAlignmentTransform) {
43128
43127
  if (value === 'left')
43129
43128
  return 'start';
@@ -49911,7 +49910,7 @@ const BREAKPOINT_QUERY_REGEX = /^\*$|^[<>][0-9]+px$/;
49911
49910
  const BreakpointSchema = z
49912
49911
  .object({
49913
49912
  id: propertyKeySchema,
49914
- // Can be replace with z.templateLiteral when upgrading to zod v4
49913
+ // Can be replaced with z.templateLiteral when upgrading to zod v4
49915
49914
  query: z.string().refine((s) => BREAKPOINT_QUERY_REGEX.test(s)),
49916
49915
  previewSize: z.string().optional(),
49917
49916
  displayName: z.string(),
@@ -50052,8 +50051,7 @@ const ParameterDefinitionSchema = z.object({
50052
50051
  contentTypes: z.array(z.string()).min(1),
50053
50052
  passToNodes: z
50054
50053
  .array(PassToNodeSchema)
50055
- .max(1, 'At most one "passToNodes" element is allowed per parameter definition.')
50056
- .optional(), // we might change this to be empty array for native parameter definitions, that's why we don't use .length(1)
50054
+ .max(1, 'At most one "passToNodes" element is allowed per parameter definition.'),
50057
50055
  });
50058
50056
  const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefinitionSchema);
50059
50057
  const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema);
@@ -50155,7 +50153,7 @@ const validatePassToNodes = (rootChildren, componentSettings, ctx) => {
50155
50153
  return;
50156
50154
  }
50157
50155
  const { parameterDefinitions } = componentSettings.prebindingDefinitions[0];
50158
- let nodeIds = new Set();
50156
+ const nodeIds = new Set();
50159
50157
  for (const paramDef of Object.values(parameterDefinitions || {})) {
50160
50158
  paramDef.passToNodes?.forEach((n) => nodeIds.add(n.nodeId));
50161
50159
  }