@contentful/experiences-components-react 3.2.1-dev-20250818T1739-df3d95e.0 → 3.3.0-beta.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
@@ -570,7 +570,6 @@ const CONTENTFUL_COMPONENTS = {
570
570
  name: 'Carousel',
571
571
  },
572
572
  };
573
- const DEFAULT_IMAGE_WIDTH = '500px';
574
573
  var PostMessageMethods;
575
574
  (function (PostMessageMethods) {
576
575
  PostMessageMethods["REQUEST_ENTITIES"] = "REQUEST_ENTITIES";
@@ -779,9 +778,9 @@ const optionalBuiltInStyles = {
779
778
  type: 'Object',
780
779
  group: 'style',
781
780
  defaultValue: {
782
- width: DEFAULT_IMAGE_WIDTH,
781
+ width: '100%',
783
782
  height: '100%',
784
- targetSize: DEFAULT_IMAGE_WIDTH,
783
+ targetSize: 'unset',
785
784
  },
786
785
  },
787
786
  cfBackgroundColor: {
@@ -1680,10 +1679,6 @@ const isLink = (maybeLink) => {
1680
1679
  const link = maybeLink;
1681
1680
  return Boolean(link.sys?.id) && link.sys?.type === 'Link' && Boolean(link.sys?.linkType);
1682
1681
  };
1683
-
1684
- /**
1685
- * This module encapsulates format of the path to a deep reference.
1686
- */
1687
1682
  const parseDataSourcePathIntoFieldset = (path) => {
1688
1683
  const parsedPath = parseDeepPath(path);
1689
1684
  if (null === parsedPath) {
@@ -2143,12 +2138,12 @@ const stopEventPropagation = (event) => {
2143
2138
 
2144
2139
  /* eslint-disable */
2145
2140
  const ContentfulContainer = (props) => {
2146
- const { className, editorMode, children, cfHyperlink } = props;
2141
+ const { className, editorMode, children, cfHyperlink, ...otherProps } = props;
2147
2142
  if (cfHyperlink) {
2148
2143
  return React.createElement(ContentfulContainerAsHyperlink, { ...props }, children);
2149
2144
  }
2150
2145
  if (!editorMode) {
2151
- return (React.createElement(Flex, { "data-test-id": "contentful-container", className: combineClasses(className, 'contentful-container') }, children));
2146
+ return (React.createElement(Flex, { "data-test-id": "contentful-container", ...extractRenderProps(otherProps), className: combineClasses(className, 'contentful-container') }, children));
2152
2147
  }
2153
2148
  // Extract properties that are only available in editor mode
2154
2149
  const { node } = props;