@contentful/experiences-visual-editor-react 3.2.0-dev-20250812T1437-66fa8cb.0 → 3.2.1-dev-20250818T1739-df3d95e.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
@@ -749,10 +749,12 @@ const ParameterSchema$1 = z.object({
749
749
  path: z.string(),
750
750
  });
751
751
  const ParametersSchema$1 = z.record(propertyKeySchema$1, ParameterSchema$1);
752
+ const BREAKPOINT_QUERY_REGEX$1 = /^\*$|^[<>][0-9]+px$/;
752
753
  const BreakpointSchema$1 = z
753
754
  .object({
754
755
  id: propertyKeySchema$1,
755
- query: z.string().regex(/^\*$|^[<>][0-9*]+px$/),
756
+ // Can be replace with z.templateLiteral when upgrading to zod v4
757
+ query: z.string().refine((s) => BREAKPOINT_QUERY_REGEX$1.test(s)),
756
758
  previewSize: z.string(),
757
759
  displayName: z.string(),
758
760
  displayIcon: z.enum(['desktop', 'tablet', 'mobile']).optional(),
@@ -3466,10 +3468,12 @@ const ParameterSchema = z.object({
3466
3468
  path: z.string(),
3467
3469
  });
3468
3470
  const ParametersSchema = z.record(propertyKeySchema, ParameterSchema);
3471
+ const BREAKPOINT_QUERY_REGEX = /^\*$|^[<>][0-9]+px$/;
3469
3472
  const BreakpointSchema = z
3470
3473
  .object({
3471
3474
  id: propertyKeySchema,
3472
- query: z.string().regex(/^\*$|^[<>][0-9*]+px$/),
3475
+ // Can be replace with z.templateLiteral when upgrading to zod v4
3476
+ query: z.string().refine((s) => BREAKPOINT_QUERY_REGEX.test(s)),
3473
3477
  previewSize: z.string(),
3474
3478
  displayName: z.string(),
3475
3479
  displayIcon: z.enum(['desktop', 'tablet', 'mobile']).optional(),