@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/index.js +26 -0
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +26 -0
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -792,6 +792,19 @@ const ComponentVariableSchema$1 = z.object({
|
|
|
792
792
|
});
|
|
793
793
|
const ComponentTreeNodeSchema$1 = BaseComponentTreeNodeSchema$1.extend({
|
|
794
794
|
children: z.lazy(() => ComponentTreeNodeSchema$1.array()),
|
|
795
|
+
}).superRefine(({ id, prebindingId, parameters }, ctx) => {
|
|
796
|
+
if (prebindingId && !parameters) {
|
|
797
|
+
ctx.addIssue({
|
|
798
|
+
code: z.ZodIssueCode.custom,
|
|
799
|
+
message: `Found "prebindingId" but no "parameters" for node with id: "${id}"`,
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
if (parameters && !prebindingId) {
|
|
803
|
+
ctx.addIssue({
|
|
804
|
+
code: z.ZodIssueCode.custom,
|
|
805
|
+
message: `Found "parameters" but no "prebindingId" for node with id: "${id}"`,
|
|
806
|
+
});
|
|
807
|
+
}
|
|
795
808
|
});
|
|
796
809
|
const ComponentTreeSchema$1 = z
|
|
797
810
|
.object({
|
|
@@ -3771,6 +3784,19 @@ const ComponentVariableSchema = z.object({
|
|
|
3771
3784
|
});
|
|
3772
3785
|
const ComponentTreeNodeSchema = BaseComponentTreeNodeSchema.extend({
|
|
3773
3786
|
children: z.lazy(() => ComponentTreeNodeSchema.array()),
|
|
3787
|
+
}).superRefine(({ id, prebindingId, parameters }, ctx) => {
|
|
3788
|
+
if (prebindingId && !parameters) {
|
|
3789
|
+
ctx.addIssue({
|
|
3790
|
+
code: z.ZodIssueCode.custom,
|
|
3791
|
+
message: `Found "prebindingId" but no "parameters" for node with id: "${id}"`,
|
|
3792
|
+
});
|
|
3793
|
+
}
|
|
3794
|
+
if (parameters && !prebindingId) {
|
|
3795
|
+
ctx.addIssue({
|
|
3796
|
+
code: z.ZodIssueCode.custom,
|
|
3797
|
+
message: `Found "parameters" but no "prebindingId" for node with id: "${id}"`,
|
|
3798
|
+
});
|
|
3799
|
+
}
|
|
3774
3800
|
});
|
|
3775
3801
|
const ComponentTreeSchema = z
|
|
3776
3802
|
.object({
|