diy-template-components 0.2.53 → 0.2.55

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/build/index.es.js CHANGED
@@ -1141,7 +1141,7 @@ const NextImageRenderer = ({
1141
1141
  refSetter,
1142
1142
  className
1143
1143
  } = props;
1144
- if (isCustomWebsite && typeof Image !== undefined) {
1144
+ if (isCustomWebsite && typeof Image !== 'undefined') {
1145
1145
  const classes = nextImageRendererStyles();
1146
1146
  const imageLoader = ({
1147
1147
  src,
@@ -1156,9 +1156,8 @@ const NextImageRenderer = ({
1156
1156
  return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}&w=${dynamicWidth}`;
1157
1157
  };
1158
1158
  const NextImage = require('next/image').default;
1159
- console.log('next image succes');
1160
1159
  return /*#__PURE__*/React.createElement(NextImage, _extends({
1161
- priority: sectionIndex === '0' ? true : false,
1160
+ priority: sectionIndex === 0 ? true : false,
1162
1161
  loader: imageLoader,
1163
1162
  src: src,
1164
1163
  layout: 'fill',
@@ -1168,7 +1167,6 @@ const NextImageRenderer = ({
1168
1167
  alt: "image"
1169
1168
  }));
1170
1169
  } else {
1171
- console.log('next image failed image tag');
1172
1170
  return /*#__PURE__*/React.createElement("img", {
1173
1171
  ref: refSetter,
1174
1172
  className: className,
@@ -1652,7 +1650,7 @@ const useSectionStyles$9 = createUseStyles(theme => ({
1652
1650
  width: '28%',
1653
1651
  paddingBottom: ({
1654
1652
  isCustomWebsite
1655
- }) => isCustomWebsite ? "8%" : '0%'
1653
+ }) => isCustomWebsite ? '8%' : '0%'
1656
1654
  },
1657
1655
  socialMediaCta: {
1658
1656
  margin: '0 8px 16px 8px'
@@ -2223,7 +2221,7 @@ const useSectionStyles$8 = createUseStyles(theme => ({
2223
2221
  height: 'undefined',
2224
2222
  paddingBottom: ({
2225
2223
  isCustomWebsite
2226
- }) => isCustomWebsite ? "100%" : "unset"
2224
+ }) => isCustomWebsite ? '100%' : 'unset'
2227
2225
  }
2228
2226
  }
2229
2227
  }));
@@ -2840,13 +2838,13 @@ const useSectionStyles$6 = createUseStyles(theme => ({
2840
2838
  // paddingBottom: '35rem',
2841
2839
  paddingBottom: ({
2842
2840
  isCustomWebsite
2843
- }) => isCustomWebsite ? '45%' : "unset",
2841
+ }) => isCustomWebsite ? '45%' : 'unset',
2844
2842
  backgroundSize: 'cover',
2845
2843
  backgroundPosition: 'center center'
2846
2844
  },
2847
2845
  centerBgImage: {
2848
2846
  objectFit: 'cover',
2849
- width: "100%",
2847
+ width: '100%',
2850
2848
  backgroundSize: 'cover',
2851
2849
  backgroundPosition: 'center center'
2852
2850
  },
@@ -2905,15 +2903,15 @@ const useSectionStyles$6 = createUseStyles(theme => ({
2905
2903
  centerBgImageContainer: {
2906
2904
  width: ({
2907
2905
  isCustomWebsite
2908
- }) => isCustomWebsite ? "100%" : 'unset',
2906
+ }) => isCustomWebsite ? '100%' : 'unset',
2909
2907
  position: 'relative',
2910
2908
  height: '34rem',
2911
2909
  paddingBottom: '0'
2912
2910
  },
2913
2911
  centerBgImage: {
2914
- objectFit: "cover",
2915
- width: "100%",
2916
- height: "inherit"
2912
+ objectFit: 'cover',
2913
+ width: '100%',
2914
+ height: 'inherit'
2917
2915
  }
2918
2916
  }
2919
2917
  }));
@@ -2995,6 +2993,7 @@ function BannerCarouselCenter({
2995
2993
  className: classes.bannerCarouselCenterSection
2996
2994
  }, /*#__PURE__*/React.createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React.createElement(Section$3, {
2997
2995
  nodeData: node,
2996
+ isCustomWebsite: isCustomWebsite,
2998
2997
  key: idx /* or some other unique property */,
2999
2998
  sectionIndex: sectionIndex
3000
2999
  }))));
@@ -3101,7 +3100,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
3101
3100
  height: 'unset !important',
3102
3101
  '& img': {
3103
3102
  height: 'unset !important',
3104
- objectFit: "cover"
3103
+ objectFit: 'cover'
3105
3104
  }
3106
3105
  },
3107
3106
  imageContainerDiv: {
@@ -3989,7 +3988,7 @@ const useVideoStyles$1 = createUseStyles(theme => {
3989
3988
  },
3990
3989
  icon: {
3991
3990
  zIndex: '999',
3992
- position: "absolute"
3991
+ position: 'absolute'
3993
3992
  },
3994
3993
  imgContainer: {
3995
3994
  position: 'absolute',
@@ -3998,7 +3997,7 @@ const useVideoStyles$1 = createUseStyles(theme => {
3998
3997
  borderRadius: theme.shape.borderRadius.small,
3999
3998
  // backgroundImage: ({ imageUrl } = {}) =>
4000
3999
  // `linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%), url("${imageUrl}")`,
4001
- background: "linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%)",
4000
+ background: 'linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%)',
4002
4001
  backgroundSize: 'cover',
4003
4002
  display: 'flex',
4004
4003
  justifyContent: 'center',