@contentful/experiences-core 3.7.0-dev-20250919T0754-9f36582.0 → 3.7.0-dev-20250919T0822-6a47406.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.cjs +0 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -13
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1037,19 +1037,6 @@ const ComponentVariableSchema = zod.z.object({
|
|
|
1037
1037
|
});
|
|
1038
1038
|
const ComponentTreeNodeSchema = BaseComponentTreeNodeSchema.extend({
|
|
1039
1039
|
children: zod.z.lazy(() => ComponentTreeNodeSchema.array()),
|
|
1040
|
-
}).superRefine(({ id, prebindingId, parameters }, ctx) => {
|
|
1041
|
-
if (prebindingId && !parameters) {
|
|
1042
|
-
ctx.addIssue({
|
|
1043
|
-
code: zod.z.ZodIssueCode.custom,
|
|
1044
|
-
message: `Found "prebindingId" but no "parameters" for node with id: "${id}"`,
|
|
1045
|
-
});
|
|
1046
|
-
}
|
|
1047
|
-
if (parameters && !prebindingId) {
|
|
1048
|
-
ctx.addIssue({
|
|
1049
|
-
code: zod.z.ZodIssueCode.custom,
|
|
1050
|
-
message: `Found "parameters" but no "prebindingId" for node with id: "${id}"`,
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
1040
|
});
|
|
1054
1041
|
const ComponentTreeSchema = zod.z
|
|
1055
1042
|
.object({
|