@atlaskit/help-article
Advanced tools
Comparing version 1.0.3 to 1.0.4
# @atlaskit/help-article | ||
## 1.0.4 | ||
### Patch Changes | ||
- [patch][5960cd3114](https://bitbucket.org/atlassian/atlassian-frontend/commits/5960cd3114): | ||
Don't return anything if iframeContainer can't be found in the window object | ||
## 1.0.3 | ||
@@ -4,0 +12,0 @@ |
@@ -63,6 +63,13 @@ "use strict"; | ||
} | ||
react_dom_1.default.render(react_1.default.createElement("div", { style: divSyle }), document.getElementById(IFRAME_CONTAINER_ID), function () { | ||
var iframeContainer = document.getElementById(IFRAME_CONTAINER_ID); | ||
if (!iframeContainer) { | ||
return; | ||
} | ||
react_dom_1.default.render(react_1.default.createElement("div", { style: divSyle }), iframeContainer, function () { | ||
if (!iframeContainer) { | ||
return; | ||
} | ||
react_dom_1.default.render(react_1.default.createElement(styled_1.ArticleFrame, { id: IFRAME_ID, name: IFRAME_ID, onLoad: function () { | ||
resizeIframe(props.onArticleRenderDone); | ||
}, sandbox: "allow-same-origin allow-popups allow-popups-to-escape-sandbox" }), document.getElementById(IFRAME_CONTAINER_ID), function () { | ||
}, sandbox: "allow-same-origin allow-popups allow-popups-to-escape-sandbox" }), iframeContainer, function () { | ||
var iframeContainer = document.getElementById(IFRAME_CONTAINER_ID); | ||
@@ -69,0 +76,0 @@ if (iframeContainer) { |
{ | ||
"name": "@atlaskit/help-article", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"sideEffects": false | ||
} |
@@ -60,6 +60,13 @@ import React, { useEffect } from 'react'; | ||
} | ||
ReactDOM.render(React.createElement("div", { style: divSyle }), document.getElementById(IFRAME_CONTAINER_ID), function () { | ||
var iframeContainer = document.getElementById(IFRAME_CONTAINER_ID); | ||
if (!iframeContainer) { | ||
return; | ||
} | ||
ReactDOM.render(React.createElement("div", { style: divSyle }), iframeContainer, function () { | ||
if (!iframeContainer) { | ||
return; | ||
} | ||
ReactDOM.render(React.createElement(ArticleFrame, { id: IFRAME_ID, name: IFRAME_ID, onLoad: function () { | ||
resizeIframe(props.onArticleRenderDone); | ||
}, sandbox: "allow-same-origin allow-popups allow-popups-to-escape-sandbox" }), document.getElementById(IFRAME_CONTAINER_ID), function () { | ||
}, sandbox: "allow-same-origin allow-popups allow-popups-to-escape-sandbox" }), iframeContainer, function () { | ||
var iframeContainer = document.getElementById(IFRAME_CONTAINER_ID); | ||
@@ -66,0 +73,0 @@ if (iframeContainer) { |
{ | ||
"name": "@atlaskit/help-article", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"sideEffects": false | ||
} |
{ | ||
"name": "@atlaskit/help-article", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A cross-product help-article component", | ||
@@ -8,2 +8,4 @@ "publishConfig": { | ||
}, | ||
"repository": "https://bitbucket.org/atlassian/atlassian-frontend", | ||
"author": "Atlassian Pty Ltd", | ||
"license": "Apache-2.0", | ||
@@ -13,10 +15,11 @@ "module": "dist/esm/index.js", | ||
"types": "dist/cjs/index.d.ts", | ||
"sideEffects": false, | ||
"atlaskit:src": "src/index.ts", | ||
"sideEffects": false, | ||
"author": "Atlassian Pty Ltd", | ||
"atlaskit": { | ||
"name": "Help Article" | ||
"atlassian": { | ||
"team": "Jira Platform: SPA / Endeavour (Help squad)", | ||
"releaseModel": "continuous", | ||
"website": { | ||
"name": "Help Article" | ||
} | ||
}, | ||
"team": "Jira Platform: SPA / Endeavour (Help squad)", | ||
"repository": "bitbucket:atlaskit/atlaskit-mk-2", | ||
"dependencies": { | ||
@@ -23,0 +26,0 @@ "@atlaskit/css-reset": "^5.0.10", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
79108
587