@contentful/experiences-visual-editor-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 +6 -2
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +6 -2
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/renderApp.js
CHANGED
|
@@ -44187,10 +44187,12 @@ const ParameterSchema$1 = z.object({
|
|
|
44187
44187
|
path: z.string(),
|
|
44188
44188
|
});
|
|
44189
44189
|
const ParametersSchema$1 = z.record(propertyKeySchema$1, ParameterSchema$1);
|
|
44190
|
+
const BREAKPOINT_QUERY_REGEX$1 = /^\*$|^[<>][0-9]+px$/;
|
|
44190
44191
|
const BreakpointSchema$1 = z
|
|
44191
44192
|
.object({
|
|
44192
44193
|
id: propertyKeySchema$1,
|
|
44193
|
-
|
|
44194
|
+
// Can be replace with z.templateLiteral when upgrading to zod v4
|
|
44195
|
+
query: z.string().refine((s) => BREAKPOINT_QUERY_REGEX$1.test(s)),
|
|
44194
44196
|
previewSize: z.string(),
|
|
44195
44197
|
displayName: z.string(),
|
|
44196
44198
|
displayIcon: z.enum(['desktop', 'tablet', 'mobile']).optional(),
|
|
@@ -48836,10 +48838,12 @@ const ParameterSchema = z.object({
|
|
|
48836
48838
|
path: z.string(),
|
|
48837
48839
|
});
|
|
48838
48840
|
const ParametersSchema = z.record(propertyKeySchema, ParameterSchema);
|
|
48841
|
+
const BREAKPOINT_QUERY_REGEX = /^\*$|^[<>][0-9]+px$/;
|
|
48839
48842
|
const BreakpointSchema = z
|
|
48840
48843
|
.object({
|
|
48841
48844
|
id: propertyKeySchema,
|
|
48842
|
-
|
|
48845
|
+
// Can be replace with z.templateLiteral when upgrading to zod v4
|
|
48846
|
+
query: z.string().refine((s) => BREAKPOINT_QUERY_REGEX.test(s)),
|
|
48843
48847
|
previewSize: z.string(),
|
|
48844
48848
|
displayName: z.string(),
|
|
48845
48849
|
displayIcon: z.enum(['desktop', 'tablet', 'mobile']).optional(),
|