@twreporter/react-article-components 2.5.2 → 2.5.3-rc.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.
@@ -84,7 +84,7 @@ function dispatchWindowLoadEvent() {
84
84
  window.dispatchEvent(loadEvent);
85
85
  }
86
86
  var dispatchInlineScriptLoadEvent = function dispatchInlineScriptLoadEvent(scriptText) {
87
- return "".concat(scriptText, "\n // Manually trigger the load event on the script itself\n const loadEvent = new Event('load');\n document.currentScript.dispatchEvent(loadEvent); // Dispatches load event on this script element\n ");
87
+ return "".concat(scriptText, "\n // Manually trigger the load event on the script itself\n document.currentScript.dispatchEvent(new Event('load'));\n ");
88
88
  };
89
89
  var EmbeddedCode = /*#__PURE__*/function (_React$PureComponent) {
90
90
  _inherits(EmbeddedCode, _React$PureComponent);
@@ -223,7 +223,8 @@ _defineProperty(EmbeddedCode, "propTypes", {
223
223
  _defineProperty(EmbeddedCode, "defaultProps", {
224
224
  className: '',
225
225
  showCaption: true,
226
- handleIsLoaded: function handleIsLoaded() {}
226
+ handleIsLoaded: function handleIsLoaded() {},
227
+ handleFinishLoaded: function handleFinishLoaded() {}
227
228
  });
228
229
  var WayPointWrapper = function WayPointWrapper(_ref) {
229
230
  var _ref$isScrollingToAnc = _ref.isScrollingToAnchor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twreporter/react-article-components",
3
- "version": "2.5.2",
3
+ "version": "2.5.3-rc.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",
@@ -41,5 +41,5 @@
41
41
  "files": [
42
42
  "lib"
43
43
  ],
44
- "gitHead": "5087fd5a2a9b23d57ad4c35746501f185a218ef9"
44
+ "gitHead": "d01dd89d37a39dbb94b9fe5122b8a0fde852d2c8"
45
45
  }