@contentful/experiences-visual-editor-react 1.31.1-dev-20250218T1728-50b0be5.0 → 1.31.1-prerelease-20250218T2104-febb4f2.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 CHANGED
@@ -926,14 +926,14 @@ const ComponentValueSchema$1 = z
926
926
  .strict();
927
927
  // TODO: finalize schema structure before release
928
928
  // https://contentful.atlassian.net/browse/LUMOS-523
929
- const EmptyObjectSchema$1 = z.object({ type: z.undefined() });
929
+ const NoValueSchema$1 = z.object({ type: z.literal('NoValue') }).strict();
930
930
  const ComponentPropertyValueSchema$1 = z.discriminatedUnion('type', [
931
931
  DesignValueSchema$1,
932
932
  BoundValueSchema$1,
933
933
  UnboundValueSchema$1,
934
934
  HyperlinkValueSchema$1,
935
935
  ComponentValueSchema$1,
936
- EmptyObjectSchema$1,
936
+ NoValueSchema$1,
937
937
  ]);
938
938
  // TODO: finalize schema structure before release
939
939
  // https://contentful.atlassian.net/browse/LUMOS-523
@@ -946,13 +946,12 @@ const VariableMappingsSchema$1 = z.record(propertyKeySchema$1, VariableMappingSc
946
946
  // TODO: finalize schema structure before release
947
947
  // https://contentful.atlassian.net/browse/LUMOS-523
948
948
  const PatternPropertyDefinitionSchema$1 = z.object({
949
- defaultValue: z.union([
950
- z.object({
951
- path: z.string(),
952
- type: z.literal('BoundValue'),
953
- }),
954
- z.null(),
955
- ]),
949
+ defaultValue: z
950
+ .object({
951
+ path: z.string(),
952
+ type: z.literal('BoundValue'),
953
+ })
954
+ .optional(),
956
955
  contentTypes: z.record(z.string(), z.any()),
957
956
  });
958
957
  const PatternPropertyDefinitionsSchema$1 = z.record(propertyKeySchema$1, PatternPropertyDefinitionSchema$1);
@@ -3336,14 +3335,14 @@ const ComponentValueSchema = z
3336
3335
  .strict();
3337
3336
  // TODO: finalize schema structure before release
3338
3337
  // https://contentful.atlassian.net/browse/LUMOS-523
3339
- const EmptyObjectSchema = z.object({ type: z.undefined() });
3338
+ const NoValueSchema = z.object({ type: z.literal('NoValue') }).strict();
3340
3339
  const ComponentPropertyValueSchema = z.discriminatedUnion('type', [
3341
3340
  DesignValueSchema,
3342
3341
  BoundValueSchema,
3343
3342
  UnboundValueSchema,
3344
3343
  HyperlinkValueSchema,
3345
3344
  ComponentValueSchema,
3346
- EmptyObjectSchema,
3345
+ NoValueSchema,
3347
3346
  ]);
3348
3347
  // TODO: finalize schema structure before release
3349
3348
  // https://contentful.atlassian.net/browse/LUMOS-523
@@ -3356,13 +3355,12 @@ const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema
3356
3355
  // TODO: finalize schema structure before release
3357
3356
  // https://contentful.atlassian.net/browse/LUMOS-523
3358
3357
  const PatternPropertyDefinitionSchema = z.object({
3359
- defaultValue: z.union([
3360
- z.object({
3361
- path: z.string(),
3362
- type: z.literal('BoundValue'),
3363
- }),
3364
- z.null(),
3365
- ]),
3358
+ defaultValue: z
3359
+ .object({
3360
+ path: z.string(),
3361
+ type: z.literal('BoundValue'),
3362
+ })
3363
+ .optional(),
3366
3364
  contentTypes: z.record(z.string(), z.any()),
3367
3365
  });
3368
3366
  const PatternPropertyDefinitionsSchema = z.record(propertyKeySchema, PatternPropertyDefinitionSchema);