@contentful/experiences-visual-editor-react 3.8.0-dev-20250925T1014-c658e71.0 → 3.8.0-dev-20250926T1440-9676290.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 +20 -0
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +20 -0
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/renderApp.js
CHANGED
|
@@ -42140,6 +42140,16 @@ const ComponentVariableSchema$1 = z.object({
|
|
|
42140
42140
|
});
|
|
42141
42141
|
const ComponentTreeNodeSchema$1 = BaseComponentTreeNodeSchema$1.extend({
|
|
42142
42142
|
children: z.lazy(() => ComponentTreeNodeSchema$1.array()),
|
|
42143
|
+
}).superRefine(({ id, prebindingId, parameters }, ctx) => {
|
|
42144
|
+
// We don't fail if parameters are present but prebindingId is not because
|
|
42145
|
+
// older experiences (updated before 21-09-2025) always included parameters
|
|
42146
|
+
// and they will start failing if we do.
|
|
42147
|
+
if (prebindingId && !parameters) {
|
|
42148
|
+
ctx.addIssue({
|
|
42149
|
+
code: z.ZodIssueCode.custom,
|
|
42150
|
+
message: `Found "prebindingId" but no "parameters" for node with id: "${id}"`,
|
|
42151
|
+
});
|
|
42152
|
+
}
|
|
42143
42153
|
});
|
|
42144
42154
|
const ComponentTreeSchema$1 = z
|
|
42145
42155
|
.object({
|
|
@@ -49949,6 +49959,16 @@ const ComponentVariableSchema = z.object({
|
|
|
49949
49959
|
});
|
|
49950
49960
|
const ComponentTreeNodeSchema = BaseComponentTreeNodeSchema.extend({
|
|
49951
49961
|
children: z.lazy(() => ComponentTreeNodeSchema.array()),
|
|
49962
|
+
}).superRefine(({ id, prebindingId, parameters }, ctx) => {
|
|
49963
|
+
// We don't fail if parameters are present but prebindingId is not because
|
|
49964
|
+
// older experiences (updated before 21-09-2025) always included parameters
|
|
49965
|
+
// and they will start failing if we do.
|
|
49966
|
+
if (prebindingId && !parameters) {
|
|
49967
|
+
ctx.addIssue({
|
|
49968
|
+
code: z.ZodIssueCode.custom,
|
|
49969
|
+
message: `Found "prebindingId" but no "parameters" for node with id: "${id}"`,
|
|
49970
|
+
});
|
|
49971
|
+
}
|
|
49952
49972
|
});
|
|
49953
49973
|
const ComponentTreeSchema = z
|
|
49954
49974
|
.object({
|