@contentful/experiences-core 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/index.js CHANGED
@@ -1035,6 +1035,19 @@ const ComponentVariableSchema = z.object({
1035
1035
  });
1036
1036
  const ComponentTreeNodeSchema = BaseComponentTreeNodeSchema.extend({
1037
1037
  children: z.lazy(() => ComponentTreeNodeSchema.array()),
1038
+ }).superRefine(({ id, prebindingId, parameters }, ctx) => {
1039
+ if (prebindingId && !parameters) {
1040
+ ctx.addIssue({
1041
+ code: z.ZodIssueCode.custom,
1042
+ message: `Found "prebindingId" but no "parameters" for node with id: "${id}"`,
1043
+ });
1044
+ }
1045
+ if (parameters && !prebindingId) {
1046
+ ctx.addIssue({
1047
+ code: z.ZodIssueCode.custom,
1048
+ message: `Found "parameters" but no "prebindingId" for node with id: "${id}"`,
1049
+ });
1050
+ }
1038
1051
  });
1039
1052
  const ComponentTreeSchema = z
1040
1053
  .object({