diy-template-components 0.2.53 → 0.2.54

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.js CHANGED
@@ -1156,7 +1156,7 @@ const NextImageRenderer = ({
1156
1156
  refSetter,
1157
1157
  className
1158
1158
  } = props;
1159
- if (isCustomWebsite && typeof Image !== undefined) {
1159
+ if (isCustomWebsite && typeof Image !== 'undefined') {
1160
1160
  const classes = nextImageRendererStyles();
1161
1161
  const imageLoader = ({
1162
1162
  src,
@@ -1171,9 +1171,8 @@ const NextImageRenderer = ({
1171
1171
  return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}&w=${dynamicWidth}`;
1172
1172
  };
1173
1173
  const NextImage = require('next/image').default;
1174
- console.log('next image succes');
1175
1174
  return /*#__PURE__*/React__default["default"].createElement(NextImage, _extends({
1176
- priority: sectionIndex === '0' ? true : false,
1175
+ priority: sectionIndex === 0 ? true : false,
1177
1176
  loader: imageLoader,
1178
1177
  src: src,
1179
1178
  layout: 'fill',
@@ -1183,7 +1182,6 @@ const NextImageRenderer = ({
1183
1182
  alt: "image"
1184
1183
  }));
1185
1184
  } else {
1186
- console.log('next image failed image tag');
1187
1185
  return /*#__PURE__*/React__default["default"].createElement("img", {
1188
1186
  ref: refSetter,
1189
1187
  className: className,
@@ -1667,7 +1665,7 @@ const useSectionStyles$9 = createUseStyles(theme => ({
1667
1665
  width: '28%',
1668
1666
  paddingBottom: ({
1669
1667
  isCustomWebsite
1670
- }) => isCustomWebsite ? "8%" : '0%'
1668
+ }) => isCustomWebsite ? '8%' : '0%'
1671
1669
  },
1672
1670
  socialMediaCta: {
1673
1671
  margin: '0 8px 16px 8px'
@@ -2238,7 +2236,7 @@ const useSectionStyles$8 = createUseStyles(theme => ({
2238
2236
  height: 'undefined',
2239
2237
  paddingBottom: ({
2240
2238
  isCustomWebsite
2241
- }) => isCustomWebsite ? "100%" : "unset"
2239
+ }) => isCustomWebsite ? '100%' : 'unset'
2242
2240
  }
2243
2241
  }
2244
2242
  }));
@@ -2855,13 +2853,13 @@ const useSectionStyles$6 = createUseStyles(theme => ({
2855
2853
  // paddingBottom: '35rem',
2856
2854
  paddingBottom: ({
2857
2855
  isCustomWebsite
2858
- }) => isCustomWebsite ? '45%' : "unset",
2856
+ }) => isCustomWebsite ? '45%' : 'unset',
2859
2857
  backgroundSize: 'cover',
2860
2858
  backgroundPosition: 'center center'
2861
2859
  },
2862
2860
  centerBgImage: {
2863
2861
  objectFit: 'cover',
2864
- width: "100%",
2862
+ width: '100%',
2865
2863
  backgroundSize: 'cover',
2866
2864
  backgroundPosition: 'center center'
2867
2865
  },
@@ -2920,15 +2918,15 @@ const useSectionStyles$6 = createUseStyles(theme => ({
2920
2918
  centerBgImageContainer: {
2921
2919
  width: ({
2922
2920
  isCustomWebsite
2923
- }) => isCustomWebsite ? "100%" : 'unset',
2921
+ }) => isCustomWebsite ? '100%' : 'unset',
2924
2922
  position: 'relative',
2925
2923
  height: '34rem',
2926
2924
  paddingBottom: '0'
2927
2925
  },
2928
2926
  centerBgImage: {
2929
- objectFit: "cover",
2930
- width: "100%",
2931
- height: "inherit"
2927
+ objectFit: 'cover',
2928
+ width: '100%',
2929
+ height: 'inherit'
2932
2930
  }
2933
2931
  }
2934
2932
  }));
@@ -3116,7 +3114,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
3116
3114
  height: 'unset !important',
3117
3115
  '& img': {
3118
3116
  height: 'unset !important',
3119
- objectFit: "cover"
3117
+ objectFit: 'cover'
3120
3118
  }
3121
3119
  },
3122
3120
  imageContainerDiv: {
@@ -4004,7 +4002,7 @@ const useVideoStyles$1 = createUseStyles(theme => {
4004
4002
  },
4005
4003
  icon: {
4006
4004
  zIndex: '999',
4007
- position: "absolute"
4005
+ position: 'absolute'
4008
4006
  },
4009
4007
  imgContainer: {
4010
4008
  position: 'absolute',
@@ -4013,7 +4011,7 @@ const useVideoStyles$1 = createUseStyles(theme => {
4013
4011
  borderRadius: theme.shape.borderRadius.small,
4014
4012
  // backgroundImage: ({ imageUrl } = {}) =>
4015
4013
  // `linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%), url("${imageUrl}")`,
4016
- background: "linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%)",
4014
+ background: 'linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%)',
4017
4015
  backgroundSize: 'cover',
4018
4016
  display: 'flex',
4019
4017
  justifyContent: 'center',