diy-template-components 0.2.45 → 0.2.47
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 +13 -15
- package/build/index.es.js.map +1 -1
- package/build/index.js +13 -15
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1156,7 +1156,7 @@ const NextImageRenderer = ({
|
|
|
1156
1156
|
refSetter,
|
|
1157
1157
|
className
|
|
1158
1158
|
} = props;
|
|
1159
|
-
if (isCustomWebsite
|
|
1159
|
+
if (isCustomWebsite) {
|
|
1160
1160
|
const classes = nextImageRendererStyles();
|
|
1161
1161
|
const imageLoader = ({
|
|
1162
1162
|
src,
|
|
@@ -1171,8 +1171,9 @@ 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');
|
|
1174
1175
|
return /*#__PURE__*/React__default["default"].createElement(NextImage, _extends({
|
|
1175
|
-
priority: sectionIndex
|
|
1176
|
+
priority: sectionIndex === '0' ? true : false,
|
|
1176
1177
|
loader: imageLoader,
|
|
1177
1178
|
src: src,
|
|
1178
1179
|
layout: 'fill',
|
|
@@ -1182,6 +1183,7 @@ const NextImageRenderer = ({
|
|
|
1182
1183
|
alt: "image"
|
|
1183
1184
|
}));
|
|
1184
1185
|
} else {
|
|
1186
|
+
console.log('next image failed image tag');
|
|
1185
1187
|
return /*#__PURE__*/React__default["default"].createElement("img", {
|
|
1186
1188
|
ref: refSetter,
|
|
1187
1189
|
className: className,
|
|
@@ -1749,8 +1751,7 @@ function Footer({
|
|
|
1749
1751
|
className: classes.socialMediaCta,
|
|
1750
1752
|
onClick: () => {
|
|
1751
1753
|
window.open(data?.facebookLink?.metadata?.value, '_blank');
|
|
1752
|
-
}
|
|
1753
|
-
"aria-label": "Name"
|
|
1754
|
+
}
|
|
1754
1755
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
1755
1756
|
name: 'Facebook Solid',
|
|
1756
1757
|
color: theme.palette.background.default,
|
|
@@ -1761,8 +1762,7 @@ function Footer({
|
|
|
1761
1762
|
className: classes.socialMediaCta,
|
|
1762
1763
|
onClick: () => {
|
|
1763
1764
|
window.open(data?.twitterLink?.metadata?.value, '_blank');
|
|
1764
|
-
}
|
|
1765
|
-
"aria-label": "Name"
|
|
1765
|
+
}
|
|
1766
1766
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
1767
1767
|
name: 'Twitter Solid',
|
|
1768
1768
|
color: theme.palette.background.default,
|
|
@@ -1773,8 +1773,7 @@ function Footer({
|
|
|
1773
1773
|
className: classes.socialMediaCta,
|
|
1774
1774
|
onClick: () => {
|
|
1775
1775
|
window.open(data?.instagramLink?.metadata?.value, '_blank');
|
|
1776
|
-
}
|
|
1777
|
-
"aria-label": "Name"
|
|
1776
|
+
}
|
|
1778
1777
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
1779
1778
|
name: 'Instagram',
|
|
1780
1779
|
color: theme.palette.background.default,
|
|
@@ -1785,8 +1784,7 @@ function Footer({
|
|
|
1785
1784
|
className: classes.socialMediaCta,
|
|
1786
1785
|
onClick: () => {
|
|
1787
1786
|
window.open(data?.telegramLink?.metadata?.value, '_blank');
|
|
1788
|
-
}
|
|
1789
|
-
"aria-label": "Name"
|
|
1787
|
+
}
|
|
1790
1788
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
1791
1789
|
name: 'Telegram',
|
|
1792
1790
|
color: theme.palette.background.default,
|
|
@@ -1797,8 +1795,7 @@ function Footer({
|
|
|
1797
1795
|
className: classes.socialMediaCta,
|
|
1798
1796
|
onClick: () => {
|
|
1799
1797
|
window.open(data?.youtubeLink?.metadata?.value, '_blank');
|
|
1800
|
-
}
|
|
1801
|
-
"aria-label": "Name"
|
|
1798
|
+
}
|
|
1802
1799
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
1803
1800
|
name: 'YouTube',
|
|
1804
1801
|
color: theme.palette.background.default,
|
|
@@ -3983,9 +3980,10 @@ const useVideoStyles$1 = createUseStyles(theme => {
|
|
|
3983
3980
|
isLoaded
|
|
3984
3981
|
} = {}) => isLoaded ? 'block' : 'none'
|
|
3985
3982
|
},
|
|
3986
|
-
icon: {
|
|
3987
|
-
|
|
3988
|
-
},
|
|
3983
|
+
// icon: {
|
|
3984
|
+
// zIndex: '999'
|
|
3985
|
+
// },
|
|
3986
|
+
|
|
3989
3987
|
imgContainer: {
|
|
3990
3988
|
position: 'absolute',
|
|
3991
3989
|
width: '100%',
|