@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/renderApp.js CHANGED
@@ -43569,7 +43569,6 @@ const CF_STYLE_ATTRIBUTES = [
43569
43569
  'cfTextUnderline',
43570
43570
  ];
43571
43571
  const EMPTY_CONTAINER_SIZE$1 = '80px';
43572
- const DEFAULT_IMAGE_WIDTH = '500px';
43573
43572
  var PostMessageMethods$3;
43574
43573
  (function (PostMessageMethods) {
43575
43574
  PostMessageMethods["REQUEST_ENTITIES"] = "REQUEST_ENTITIES";
@@ -43791,9 +43790,9 @@ const optionalBuiltInStyles = {
43791
43790
  type: 'Object',
43792
43791
  group: 'style',
43793
43792
  defaultValue: {
43794
- width: DEFAULT_IMAGE_WIDTH,
43793
+ width: '100%',
43795
43794
  height: '100%',
43796
- targetSize: DEFAULT_IMAGE_WIDTH,
43795
+ targetSize: 'unset',
43797
43796
  },
43798
43797
  },
43799
43798
  cfBackgroundColor: {
@@ -44187,10 +44186,12 @@ const ParameterSchema$1 = z.object({
44187
44186
  path: z.string(),
44188
44187
  });
44189
44188
  const ParametersSchema$1 = z.record(propertyKeySchema$1, ParameterSchema$1);
44189
+ const BREAKPOINT_QUERY_REGEX$1 = /^\*$|^[<>][0-9]+px$/;
44190
44190
  const BreakpointSchema$1 = z
44191
44191
  .object({
44192
44192
  id: propertyKeySchema$1,
44193
- query: z.string().regex(/^\*$|^[<>][0-9*]+px$/),
44193
+ // Can be replace with z.templateLiteral when upgrading to zod v4
44194
+ query: z.string().refine((s) => BREAKPOINT_QUERY_REGEX$1.test(s)),
44194
44195
  previewSize: z.string(),
44195
44196
  displayName: z.string(),
44196
44197
  displayIcon: z.enum(['desktop', 'tablet', 'mobile']).optional(),
@@ -48836,10 +48837,12 @@ const ParameterSchema = z.object({
48836
48837
  path: z.string(),
48837
48838
  });
48838
48839
  const ParametersSchema = z.record(propertyKeySchema, ParameterSchema);
48840
+ const BREAKPOINT_QUERY_REGEX = /^\*$|^[<>][0-9]+px$/;
48839
48841
  const BreakpointSchema = z
48840
48842
  .object({
48841
48843
  id: propertyKeySchema,
48842
- query: z.string().regex(/^\*$|^[<>][0-9*]+px$/),
48844
+ // Can be replace with z.templateLiteral when upgrading to zod v4
48845
+ query: z.string().refine((s) => BREAKPOINT_QUERY_REGEX.test(s)),
48843
48846
  previewSize: z.string(),
48844
48847
  displayName: z.string(),
48845
48848
  displayIcon: z.enum(['desktop', 'tablet', 'mobile']).optional(),