@twreporter/index-page 1.4.0-rc.6 → 1.4.0
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.4.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/index-page@1.4.0-rc.7...@twreporter/index-page@1.4.0) (2022-10-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @twreporter/index-page
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [1.4.0-rc.7](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/index-page@1.4.0-rc.6...@twreporter/index-page@1.4.0-rc.7) (2022-10-26)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @twreporter/index-page
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [1.4.0-rc.6](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/index-page@1.4.0-rc.5...@twreporter/index-page@1.4.0-rc.6) (2022-10-25)
|
|
7
23
|
|
|
8
24
|
|
|
@@ -107,8 +107,7 @@ var ImgWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
107
107
|
src = _this$props.src,
|
|
108
108
|
alt = _this$props.alt,
|
|
109
109
|
srcSet = _this$props.srcSet,
|
|
110
|
-
sizes = _this$props.sizes
|
|
111
|
-
isLazyLoaded = _this$props.isLazyLoaded;
|
|
110
|
+
sizes = _this$props.sizes;
|
|
112
111
|
var isObjectFit = this.state.isObjectFit;
|
|
113
112
|
return isObjectFit ? /*#__PURE__*/_react["default"].createElement(ImgObjectFit, null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
114
113
|
alt: alt,
|
|
@@ -117,8 +116,7 @@ var ImgWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
117
116
|
sizes: sizes,
|
|
118
117
|
style: {
|
|
119
118
|
transform: 'translateZ(0)'
|
|
120
|
-
}
|
|
121
|
-
loading: isLazyLoaded ? 'lazy' : 'eager'
|
|
119
|
+
}
|
|
122
120
|
}), this.props.children) : /*#__PURE__*/_react["default"].createElement(ImgFallback, {
|
|
123
121
|
url: (0, _storageUrlProcessor.replaceGCSUrlOrigin)(src)
|
|
124
122
|
}, this.props.children);
|
|
@@ -133,16 +131,14 @@ ImgWrapper.defaultProps = {
|
|
|
133
131
|
children: null,
|
|
134
132
|
src: '',
|
|
135
133
|
srcSet: {},
|
|
136
|
-
sizes: ''
|
|
137
|
-
isLazyLoaded: true
|
|
134
|
+
sizes: ''
|
|
138
135
|
};
|
|
139
136
|
ImgWrapper.propTypes = {
|
|
140
137
|
alt: _propTypes["default"].string,
|
|
141
138
|
children: _propTypes["default"].element,
|
|
142
139
|
src: _propTypes["default"].string.isRequired,
|
|
143
140
|
srcSet: _propTypes["default"].object,
|
|
144
|
-
sizes: _propTypes["default"].string
|
|
145
|
-
isLazyLoaded: _propTypes["default"].bool
|
|
141
|
+
sizes: _propTypes["default"].string
|
|
146
142
|
};
|
|
147
143
|
var _default = ImgWrapper;
|
|
148
144
|
exports["default"] = _default;
|
|
@@ -453,8 +453,7 @@ var EditorPicks = /*#__PURE__*/function (_React$Component) {
|
|
|
453
453
|
alt: _.get(imgObj, 'description'),
|
|
454
454
|
src: _.get(imgObj, 'resized_targets.tablet.url'),
|
|
455
455
|
srcSet: _.get(imgObj, 'resized_targets'),
|
|
456
|
-
sizes: "(min-width: ".concat(_styleUtils.breakPoints.desktopMinWidth, ") ").concat(mockup.img.sizes.desktop, ", ") + "(min-width: ".concat(_styleUtils.breakPoints.tabletMinWidth, ") ").concat(mockup.img.sizes.tablet, ", ") + "".concat(mockup.img.sizes.mobile)
|
|
457
|
-
isLazyLoaded: false
|
|
456
|
+
sizes: "(min-width: ".concat(_styleUtils.breakPoints.desktopMinWidth, ") ").concat(mockup.img.sizes.desktop, ", ") + "(min-width: ".concat(_styleUtils.breakPoints.tabletMinWidth, ") ").concat(mockup.img.sizes.tablet, ", ") + "".concat(mockup.img.sizes.mobile)
|
|
458
457
|
})))));
|
|
459
458
|
});
|
|
460
459
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twreporter/index-page",
|
|
3
|
-
"version": "1.4.0
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"repository": "https://github.com/twreporter/twreporter-npm-packages.git",
|
|
6
6
|
"author": "twreporter <developer@twreporter.org>",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"prepublishOnly": "make build"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@twreporter/core": "^1.7.0
|
|
16
|
-
"@twreporter/react-components": "^8.14.0
|
|
15
|
+
"@twreporter/core": "^1.7.0",
|
|
16
|
+
"@twreporter/react-components": "^8.14.0",
|
|
17
17
|
"lodash": "^4.0.0",
|
|
18
18
|
"prop-types": "^15.0.0",
|
|
19
19
|
"react": "^16.3.0",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"lib"
|
|
29
29
|
],
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "7c69d3797214348fb441596bd4c78788010c8fe5"
|
|
31
31
|
}
|