diy-template-components 0.2.47 → 0.2.49
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 +10 -12
- package/build/index.es.js.map +1 -1
- package/build/index.js +10 -12
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
function ___$insertStyle(css) {
|
|
2
|
-
if (!css ||
|
|
3
|
-
return;
|
|
4
|
-
}
|
|
5
|
-
const style = document.createElement('style');
|
|
6
|
-
style.setAttribute('type', 'text/css');
|
|
7
|
-
style.innerHTML = css;
|
|
8
|
-
document.head.appendChild(style);
|
|
9
|
-
return css;
|
|
1
|
+
function ___$insertStyle(css) {
|
|
2
|
+
if (!css || !window) {
|
|
3
|
+
return;
|
|
4
|
+
}
|
|
5
|
+
const style = document.createElement('style');
|
|
6
|
+
style.setAttribute('type', 'text/css');
|
|
7
|
+
style.innerHTML = css;
|
|
8
|
+
document.head.appendChild(style);
|
|
9
|
+
return css;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
import React, { createContext, useContext, forwardRef, useRef, useEffect, useState, useMemo, useLayoutEffect, Suspense, memo, lazy, Fragment } from 'react';
|
|
@@ -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 ===
|
|
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,
|