@contentful/experiences-visual-editor-react 3.7.0-dev-20250918T1641-6da833a.0 → 3.7.0-dev-20250919T0754-9f36582.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
@@ -42129,7 +42129,7 @@ const BreakpointSchema$1 = z
42129
42129
  id: propertyKeySchema$1,
42130
42130
  // Can be replace with z.templateLiteral when upgrading to zod v4
42131
42131
  query: z.string().refine((s) => BREAKPOINT_QUERY_REGEX$1.test(s)),
42132
- previewSize: z.string(),
42132
+ previewSize: z.string().optional(),
42133
42133
  displayName: z.string(),
42134
42134
  displayIcon: z.enum(['desktop', 'tablet', 'mobile']).optional(),
42135
42135
  })
@@ -42166,6 +42166,19 @@ const ComponentVariableSchema$1 = z.object({
42166
42166
  });
42167
42167
  const ComponentTreeNodeSchema$1 = BaseComponentTreeNodeSchema$1.extend({
42168
42168
  children: z.lazy(() => ComponentTreeNodeSchema$1.array()),
42169
+ }).superRefine(({ id, prebindingId, parameters }, ctx) => {
42170
+ if (prebindingId && !parameters) {
42171
+ ctx.addIssue({
42172
+ code: z.ZodIssueCode.custom,
42173
+ message: `Found "prebindingId" but no "parameters" for node with id: "${id}"`,
42174
+ });
42175
+ }
42176
+ if (parameters && !prebindingId) {
42177
+ ctx.addIssue({
42178
+ code: z.ZodIssueCode.custom,
42179
+ message: `Found "parameters" but no "prebindingId" for node with id: "${id}"`,
42180
+ });
42181
+ }
42169
42182
  });
42170
42183
  const ComponentTreeSchema$1 = z
42171
42184
  .object({
@@ -49680,7 +49693,7 @@ const BreakpointSchema = z
49680
49693
  id: propertyKeySchema,
49681
49694
  // Can be replace with z.templateLiteral when upgrading to zod v4
49682
49695
  query: z.string().refine((s) => BREAKPOINT_QUERY_REGEX.test(s)),
49683
- previewSize: z.string(),
49696
+ previewSize: z.string().optional(),
49684
49697
  displayName: z.string(),
49685
49698
  displayIcon: z.enum(['desktop', 'tablet', 'mobile']).optional(),
49686
49699
  })
@@ -49717,6 +49730,19 @@ const ComponentVariableSchema = z.object({
49717
49730
  });
49718
49731
  const ComponentTreeNodeSchema = BaseComponentTreeNodeSchema.extend({
49719
49732
  children: z.lazy(() => ComponentTreeNodeSchema.array()),
49733
+ }).superRefine(({ id, prebindingId, parameters }, ctx) => {
49734
+ if (prebindingId && !parameters) {
49735
+ ctx.addIssue({
49736
+ code: z.ZodIssueCode.custom,
49737
+ message: `Found "prebindingId" but no "parameters" for node with id: "${id}"`,
49738
+ });
49739
+ }
49740
+ if (parameters && !prebindingId) {
49741
+ ctx.addIssue({
49742
+ code: z.ZodIssueCode.custom,
49743
+ message: `Found "parameters" but no "prebindingId" for node with id: "${id}"`,
49744
+ });
49745
+ }
49720
49746
  });
49721
49747
  const ComponentTreeSchema = z
49722
49748
  .object({