@quintype/components 3.5.1-image-below-fold.3 → 3.5.1-image-below-fold.4
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/cjs/index.js
CHANGED
|
@@ -1939,7 +1939,7 @@ var ThumborImage = /*#__PURE__*/function (_React$Component) {
|
|
|
1939
1939
|
_this.state = {
|
|
1940
1940
|
showImage: !_this.shouldLazyLoad()
|
|
1941
1941
|
};
|
|
1942
|
-
console.log("
|
|
1942
|
+
console.log("bb--this.props", _this.props);
|
|
1943
1943
|
return _this;
|
|
1944
1944
|
}
|
|
1945
1945
|
|
|
@@ -1968,12 +1968,13 @@ var ThumborImage = /*#__PURE__*/function (_React$Component) {
|
|
|
1968
1968
|
var imageProps = this.state.showImage ? responsiveProps(this.props) : {
|
|
1969
1969
|
src: emptyWebGif__default["default"]
|
|
1970
1970
|
};
|
|
1971
|
-
console.log("
|
|
1971
|
+
console.log("bb--imageProps", imageProps);
|
|
1972
1972
|
var imageData = responsiveProps(this.props);
|
|
1973
|
-
console.log("
|
|
1973
|
+
console.log("bb--imageData", imageData);
|
|
1974
1974
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("noscript", null, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
1975
1975
|
src: imageProps === null || imageProps === void 0 ? void 0 : imageProps.src,
|
|
1976
|
-
srcSet: imageProps.srcSet
|
|
1976
|
+
srcSet: imageProps.srcSet,
|
|
1977
|
+
className: this.props.className ? "qt-image ".concat(this.props.className) : "qt-image"
|
|
1977
1978
|
})), /*#__PURE__*/React__default["default"].createElement(this.props.reactTag || "img", Object.assign(imageProps, omit__default["default"](this.props, USED_PARAMS), {
|
|
1978
1979
|
ref: function ref(dom) {
|
|
1979
1980
|
return _this2.dom = dom;
|
|
@@ -2022,6 +2023,8 @@ function ResponsiveImageBase(props) {
|
|
|
2022
2023
|
global.console && global.console.warn("Image Found without an alt attribute: ".concat(props.slug));
|
|
2023
2024
|
}
|
|
2024
2025
|
|
|
2026
|
+
console.log("aa--bb--props.imageCDNFormat", props.imageCDNFormat);
|
|
2027
|
+
|
|
2025
2028
|
if (props.imageCDNFormat === "gumlet") {
|
|
2026
2029
|
return /*#__PURE__*/React__default["default"].createElement(GumletImage, props);
|
|
2027
2030
|
}
|
|
@@ -45,7 +45,7 @@ export var ThumborImage = /*#__PURE__*/function (_React$Component) {
|
|
|
45
45
|
_this.state = {
|
|
46
46
|
showImage: !_this.shouldLazyLoad()
|
|
47
47
|
};
|
|
48
|
-
console.log("
|
|
48
|
+
console.log("bb--this.props", _this.props);
|
|
49
49
|
return _this;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -74,12 +74,13 @@ export var ThumborImage = /*#__PURE__*/function (_React$Component) {
|
|
|
74
74
|
var imageProps = this.state.showImage ? responsiveProps(this.props) : {
|
|
75
75
|
src: emptyWebGif
|
|
76
76
|
};
|
|
77
|
-
console.log("
|
|
77
|
+
console.log("bb--imageProps", imageProps);
|
|
78
78
|
var imageData = responsiveProps(this.props);
|
|
79
|
-
console.log("
|
|
79
|
+
console.log("bb--imageData", imageData);
|
|
80
80
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("noscript", null, /*#__PURE__*/React.createElement("img", {
|
|
81
81
|
src: imageProps === null || imageProps === void 0 ? void 0 : imageProps.src,
|
|
82
|
-
srcSet: imageProps.srcSet
|
|
82
|
+
srcSet: imageProps.srcSet,
|
|
83
|
+
className: this.props.className ? "qt-image ".concat(this.props.className) : "qt-image"
|
|
83
84
|
})), /*#__PURE__*/React.createElement(this.props.reactTag || "img", Object.assign(imageProps, omit(this.props, USED_PARAMS), {
|
|
84
85
|
ref: function ref(dom) {
|
|
85
86
|
return _this2.dom = dom;
|
|
@@ -18,6 +18,8 @@ function ResponsiveImageBase(props) {
|
|
|
18
18
|
global.console && global.console.warn("Image Found without an alt attribute: ".concat(props.slug));
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
console.log("aa--bb--props.imageCDNFormat", props.imageCDNFormat);
|
|
22
|
+
|
|
21
23
|
if (props.imageCDNFormat === "gumlet") {
|
|
22
24
|
return /*#__PURE__*/React.createElement(GumletImage, props);
|
|
23
25
|
}
|
package/package.json
CHANGED