@twreporter/react-article-components 2.4.0-rc.1 → 2.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.
@@ -120,7 +120,6 @@ var EmbeddedCode = /*#__PURE__*/function (_React$PureComponent) {
120
120
  dispatchWindowLoadEvent();
121
121
  }
122
122
  scriptEle.removeEventListener('load', handleLoad);
123
- _this.props.handleIsLoaded();
124
123
  };
125
124
  scriptEle.addEventListener('load', handleLoad);
126
125
  scriptsFragment.appendChild(scriptEle);
@@ -133,6 +132,7 @@ var EmbeddedCode = /*#__PURE__*/function (_React$PureComponent) {
133
132
  _this.setState({
134
133
  isLoaded: true
135
134
  }, _this.executeScript);
135
+ _this.props.handleIsLoaded();
136
136
  }
137
137
  });
138
138
  _this._embedded = /*#__PURE__*/_react["default"].createRef();
@@ -44,7 +44,7 @@ var EmbeddedBlock = /*#__PURE__*/_styledComponents["default"].div.withConfig({
44
44
  var ContentBlock = /*#__PURE__*/_styledComponents["default"].div.withConfig({
45
45
  displayName: "embedded__ContentBlock",
46
46
  componentId: "sc-1uuttwk-1"
47
- })(["width:100%;display:flex;margin-top:16px;margin-bottom:64px;justify-content:space-between;", " ", " ", " ", ""], _mediaQuery["default"].hdOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 1280px;\n margin: 16px auto 64px;\n "]))), _mediaQuery["default"].desktopOnly(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 0 48px;\n "]))), _mediaQuery["default"].tabletAndBelow(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex-direction: column;\n width: 66.7%;\n margin: 16px auto 64px;\n "]))), _mediaQuery["default"].mobileOnly(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n padding: 0 24px;\n "]))));
47
+ })(["width:100%;display:flex;margin-top:16px;justify-content:space-between;", " ", " ", " ", ""], _mediaQuery["default"].hdOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 1280px;\n margin: 16px auto 0px;\n "]))), _mediaQuery["default"].desktopOnly(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 0 48px;\n "]))), _mediaQuery["default"].tabletAndBelow(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex-direction: column;\n width: 66.7%;\n margin: 16px auto 0px;\n "]))), _mediaQuery["default"].mobileOnly(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n padding: 0 24px;\n "]))));
48
48
  var TitleBlock = /*#__PURE__*/_styledComponents["default"].div.withConfig({
49
49
  displayName: "embedded__TitleBlock",
50
50
  componentId: "sc-1uuttwk-2"
@@ -136,7 +136,8 @@ var Embedded = function Embedded(_ref) {
136
136
  })) : null, subtitle && /*#__PURE__*/_react["default"].createElement(SubTitle, {
137
137
  text: subtitle
138
138
  }), /*#__PURE__*/_react["default"].createElement(Title, {
139
- text: title
139
+ text: title,
140
+ type: _headline.H1.Type.ARTICLE
140
141
  })), captionText ? /*#__PURE__*/_react["default"].createElement(CaptionBlock, null, /*#__PURE__*/_react["default"].createElement(Caption, {
141
142
  text: captionText
142
143
  })) : null));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twreporter/react-article-components",
3
- "version": "2.4.0-rc.1",
3
+ "version": "2.4.0",
4
4
  "description": "The Reporter react article components, which are used in article page",
5
5
  "main": "lib/components/article-page.js",
6
6
  "repository": "https://github.com/twreporter/twreporter-npm-packages.git",
@@ -23,10 +23,10 @@
23
23
  "webpack-dev-server": "^3.7.2"
24
24
  },
25
25
  "dependencies": {
26
- "@twreporter/core": "^1.23.0-rc.0",
27
- "@twreporter/react-components": "^9.2.2-rc.0",
28
- "@twreporter/redux": "^8.1.2-rc.0",
29
- "@twreporter/universal-header": "^3.0.7-rc.0",
26
+ "@twreporter/core": "^1.23.0",
27
+ "@twreporter/react-components": "^9.2.2",
28
+ "@twreporter/redux": "^8.1.2",
29
+ "@twreporter/universal-header": "^3.0.7",
30
30
  "howler": "^2.2.3",
31
31
  "lodash": "^4.17.11",
32
32
  "memoize-one": "^5.0.5",
@@ -41,5 +41,5 @@
41
41
  "files": [
42
42
  "lib"
43
43
  ],
44
- "gitHead": "cef8fdb11c0c1845576862d69bcd88469b987bd1"
44
+ "gitHead": "4fdc214fd7117dd0af4a323053dfdb2a77884247"
45
45
  }