@contentful/experiences-visual-editor-react 3.2.0 → 3.2.1-dev-20250819T1408-2dcca7e.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 +8 -5
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +8 -5
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -131,7 +131,6 @@ const CF_STYLE_ATTRIBUTES = [
|
|
|
131
131
|
'cfTextUnderline',
|
|
132
132
|
];
|
|
133
133
|
const EMPTY_CONTAINER_SIZE$1 = '80px';
|
|
134
|
-
const DEFAULT_IMAGE_WIDTH = '500px';
|
|
135
134
|
var PostMessageMethods$3;
|
|
136
135
|
(function (PostMessageMethods) {
|
|
137
136
|
PostMessageMethods["REQUEST_ENTITIES"] = "REQUEST_ENTITIES";
|
|
@@ -353,9 +352,9 @@ const optionalBuiltInStyles = {
|
|
|
353
352
|
type: 'Object',
|
|
354
353
|
group: 'style',
|
|
355
354
|
defaultValue: {
|
|
356
|
-
width:
|
|
355
|
+
width: '100%',
|
|
357
356
|
height: '100%',
|
|
358
|
-
targetSize:
|
|
357
|
+
targetSize: 'unset',
|
|
359
358
|
},
|
|
360
359
|
},
|
|
361
360
|
cfBackgroundColor: {
|
|
@@ -749,10 +748,12 @@ const ParameterSchema$1 = z.object({
|
|
|
749
748
|
path: z.string(),
|
|
750
749
|
});
|
|
751
750
|
const ParametersSchema$1 = z.record(propertyKeySchema$1, ParameterSchema$1);
|
|
751
|
+
const BREAKPOINT_QUERY_REGEX$1 = /^\*$|^[<>][0-9]+px$/;
|
|
752
752
|
const BreakpointSchema$1 = z
|
|
753
753
|
.object({
|
|
754
754
|
id: propertyKeySchema$1,
|
|
755
|
-
|
|
755
|
+
// Can be replace with z.templateLiteral when upgrading to zod v4
|
|
756
|
+
query: z.string().refine((s) => BREAKPOINT_QUERY_REGEX$1.test(s)),
|
|
756
757
|
previewSize: z.string(),
|
|
757
758
|
displayName: z.string(),
|
|
758
759
|
displayIcon: z.enum(['desktop', 'tablet', 'mobile']).optional(),
|
|
@@ -3466,10 +3467,12 @@ const ParameterSchema = z.object({
|
|
|
3466
3467
|
path: z.string(),
|
|
3467
3468
|
});
|
|
3468
3469
|
const ParametersSchema = z.record(propertyKeySchema, ParameterSchema);
|
|
3470
|
+
const BREAKPOINT_QUERY_REGEX = /^\*$|^[<>][0-9]+px$/;
|
|
3469
3471
|
const BreakpointSchema = z
|
|
3470
3472
|
.object({
|
|
3471
3473
|
id: propertyKeySchema,
|
|
3472
|
-
|
|
3474
|
+
// Can be replace with z.templateLiteral when upgrading to zod v4
|
|
3475
|
+
query: z.string().refine((s) => BREAKPOINT_QUERY_REGEX.test(s)),
|
|
3473
3476
|
previewSize: z.string(),
|
|
3474
3477
|
displayName: z.string(),
|
|
3475
3478
|
displayIcon: z.enum(['desktop', 'tablet', 'mobile']).optional(),
|