@linzjs/lui 17.5.4 → 17.5.5
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 +7 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +3 -1
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [17.5.5](https://github.com/linz/lui/compare/v17.5.4...v17.5.5) (2022-06-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Check if window.process is defined before accessing ([#700](https://github.com/linz/lui/issues/700)) ([a300d54](https://github.com/linz/lui/commit/a300d54e1a7aa5739ecf01478cbbb996124def98))
|
|
7
|
+
|
|
1
8
|
## [17.5.4](https://github.com/linz/lui/compare/v17.5.3...v17.5.4) (2022-06-17)
|
|
2
9
|
|
|
3
10
|
|
package/dist/index.js
CHANGED
|
@@ -55707,7 +55707,9 @@ var LuiUpdatesSplashModal = function (props) {
|
|
|
55707
55707
|
document.removeEventListener('mousedown', handleClickOutside);
|
|
55708
55708
|
};
|
|
55709
55709
|
}, [handleClickOutside]);
|
|
55710
|
-
|
|
55710
|
+
// process may be undefined, e.g. webpack 5 does not include a polyfill for it. Assume if process is undefined then
|
|
55711
|
+
// this isn't running in a test.
|
|
55712
|
+
if (typeof process === 'undefined' || ((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.NODE_ENV) !== 'test') {
|
|
55711
55713
|
Modal.setAppElement('#root');
|
|
55712
55714
|
}
|
|
55713
55715
|
return (React__default["default"].createElement(Modal, { key: props.id, isOpen: true, shouldCloseOnOverlayClick: true, onRequestClose: props.onClose, contentLabel: "Recent updates", className: "lui-scrim", style: { overlay: { backgroundColor: 'transparent' } } },
|