@contentful/experiences-core 3.7.0-dev-20250919T0754-9f36582.0 → 3.7.0-dev-20250919T1146-39b7162.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.js
CHANGED
|
@@ -1035,19 +1035,6 @@ 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
|
-
}
|
|
1051
1038
|
});
|
|
1052
1039
|
const ComponentTreeSchema = z
|
|
1053
1040
|
.object({
|