@contentful/experiences-components-react 3.2.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
@@ -1334,10 +1334,12 @@ const ParameterSchema = z.object({
1334
1334
  path: z.string(),
1335
1335
  });
1336
1336
  const ParametersSchema = z.record(propertyKeySchema, ParameterSchema);
1337
+ const BREAKPOINT_QUERY_REGEX = /^\*$|^[<>][0-9]+px$/;
1337
1338
  const BreakpointSchema = z
1338
1339
  .object({
1339
1340
  id: propertyKeySchema,
1340
- query: z.string().regex(/^\*$|^[<>][0-9*]+px$/),
1341
+ // Can be replace with z.templateLiteral when upgrading to zod v4
1342
+ query: z.string().refine((s) => BREAKPOINT_QUERY_REGEX.test(s)),
1341
1343
  previewSize: z.string(),
1342
1344
  displayName: z.string(),
1343
1345
  displayIcon: z.enum(['desktop', 'tablet', 'mobile']).optional(),