@contentful/experiences-visual-editor-react 3.7.0-dev-20250918T1653-d735f6f.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
@@ -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({
@@ -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({