@elliemae/ds-portal 2.0.0-rc.9 → 2.1.0-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.
- package/cjs/DSPortal.js +4 -7
- package/esm/DSPortal.js +4 -6
- package/package.json +3 -3
package/cjs/DSPortal.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
|
-
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
6
|
require('core-js/modules/web.dom-collections.iterator.js');
|
|
8
7
|
var react = require('react');
|
|
9
8
|
var ReactDOM = require('react-dom');
|
|
@@ -14,7 +13,6 @@ require('./ie-remove-polyfill.js');
|
|
|
14
13
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
14
|
|
|
16
15
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
17
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
18
16
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
19
17
|
|
|
20
18
|
const blockName = 'portal';
|
|
@@ -23,10 +21,9 @@ const canRenderPortal = dsUtilities.isFunction(ReactDOM__default["default"].crea
|
|
|
23
21
|
class DSPortal extends react.Component {
|
|
24
22
|
constructor() {
|
|
25
23
|
super(...arguments);
|
|
26
|
-
|
|
27
|
-
_defineProperty__default["default"](this, "state", {
|
|
24
|
+
this.state = {
|
|
28
25
|
isMounted: false
|
|
29
|
-
}
|
|
26
|
+
};
|
|
30
27
|
}
|
|
31
28
|
|
|
32
29
|
componentDidMount() {
|
|
@@ -89,9 +86,9 @@ class DSPortal extends react.Component {
|
|
|
89
86
|
|
|
90
87
|
}
|
|
91
88
|
|
|
92
|
-
|
|
89
|
+
DSPortal.defaultProps = {
|
|
93
90
|
onRender: () => null
|
|
94
|
-
}
|
|
91
|
+
};
|
|
95
92
|
|
|
96
93
|
exports.DSPortal = DSPortal;
|
|
97
94
|
exports["default"] = DSPortal;
|
package/esm/DSPortal.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
3
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
3
|
import { Component } from 'react';
|
|
5
4
|
import ReactDOM from 'react-dom';
|
|
@@ -13,10 +12,9 @@ const canRenderPortal = isFunction(ReactDOM.createPortal); // TODO: If this is r
|
|
|
13
12
|
class DSPortal extends Component {
|
|
14
13
|
constructor() {
|
|
15
14
|
super(...arguments);
|
|
16
|
-
|
|
17
|
-
_defineProperty(this, "state", {
|
|
15
|
+
this.state = {
|
|
18
16
|
isMounted: false
|
|
19
|
-
}
|
|
17
|
+
};
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
componentDidMount() {
|
|
@@ -79,8 +77,8 @@ class DSPortal extends Component {
|
|
|
79
77
|
|
|
80
78
|
}
|
|
81
79
|
|
|
82
|
-
|
|
80
|
+
DSPortal.defaultProps = {
|
|
83
81
|
onRender: () => null
|
|
84
|
-
}
|
|
82
|
+
};
|
|
85
83
|
|
|
86
84
|
export { DSPortal, DSPortal as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-portal",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Portal",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"build": "node ../../scripts/build/build.js"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@elliemae/ds-classnames": "2.
|
|
44
|
-
"@elliemae/ds-utilities": "2.
|
|
43
|
+
"@elliemae/ds-classnames": "2.1.0-rc.0",
|
|
44
|
+
"@elliemae/ds-utilities": "2.1.0-rc.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": "^17.0.2",
|