@contentful/experiences-visual-editor-react 3.7.0 → 3.7.1-dev-20250922T0805-b99a8e0.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/renderApp.js
CHANGED
|
@@ -42169,6 +42169,19 @@ const ComponentVariableSchema$1 = z.object({
|
|
|
42169
42169
|
});
|
|
42170
42170
|
const ComponentTreeNodeSchema$1 = BaseComponentTreeNodeSchema$1.extend({
|
|
42171
42171
|
children: z.lazy(() => ComponentTreeNodeSchema$1.array()),
|
|
42172
|
+
}).superRefine(({ id, prebindingId, parameters }, ctx) => {
|
|
42173
|
+
if (prebindingId && !parameters) {
|
|
42174
|
+
ctx.addIssue({
|
|
42175
|
+
code: z.ZodIssueCode.custom,
|
|
42176
|
+
message: `Found "prebindingId" but no "parameters" for node with id: "${id}"`,
|
|
42177
|
+
});
|
|
42178
|
+
}
|
|
42179
|
+
if (parameters && !prebindingId) {
|
|
42180
|
+
ctx.addIssue({
|
|
42181
|
+
code: z.ZodIssueCode.custom,
|
|
42182
|
+
message: `Found "parameters" but no "prebindingId" for node with id: "${id}"`,
|
|
42183
|
+
});
|
|
42184
|
+
}
|
|
42172
42185
|
});
|
|
42173
42186
|
const ComponentTreeSchema$1 = z
|
|
42174
42187
|
.object({
|
|
@@ -49979,6 +49992,19 @@ const ComponentVariableSchema = z.object({
|
|
|
49979
49992
|
});
|
|
49980
49993
|
const ComponentTreeNodeSchema = BaseComponentTreeNodeSchema.extend({
|
|
49981
49994
|
children: z.lazy(() => ComponentTreeNodeSchema.array()),
|
|
49995
|
+
}).superRefine(({ id, prebindingId, parameters }, ctx) => {
|
|
49996
|
+
if (prebindingId && !parameters) {
|
|
49997
|
+
ctx.addIssue({
|
|
49998
|
+
code: z.ZodIssueCode.custom,
|
|
49999
|
+
message: `Found "prebindingId" but no "parameters" for node with id: "${id}"`,
|
|
50000
|
+
});
|
|
50001
|
+
}
|
|
50002
|
+
if (parameters && !prebindingId) {
|
|
50003
|
+
ctx.addIssue({
|
|
50004
|
+
code: z.ZodIssueCode.custom,
|
|
50005
|
+
message: `Found "parameters" but no "prebindingId" for node with id: "${id}"`,
|
|
50006
|
+
});
|
|
50007
|
+
}
|
|
49982
50008
|
});
|
|
49983
50009
|
const ComponentTreeSchema = z
|
|
49984
50010
|
.object({
|