@atlaskit/portal 5.1.0 → 5.1.2
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
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/portal
|
|
2
2
|
|
|
3
|
+
## 5.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 5.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#175845](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175845)
|
|
14
|
+
[`e553e0b7cb828`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e553e0b7cb828) -
|
|
15
|
+
Updated dev dependencies
|
|
16
|
+
|
|
3
17
|
## 5.1.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -11,8 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _reactDom = require("react-dom");
|
|
12
12
|
var _useIsomorphicLayoutEffect = require("../hooks/use-isomorphic-layout-effect");
|
|
13
13
|
var _portalDomUtils = require("../utils/portal-dom-utils");
|
|
14
|
-
function
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
16
15
|
function InternalPortalNew(props) {
|
|
17
16
|
var zIndex = props.zIndex,
|
|
18
17
|
children = props.children;
|
package/dist/cjs/portal.js
CHANGED
|
@@ -19,8 +19,6 @@ function Portal(_ref) {
|
|
|
19
19
|
mountStrategy = _ref$mountStrategy === void 0 ? 'effect' : _ref$mountStrategy;
|
|
20
20
|
var isSubsequentRender = (0, _useIsSubsequentRender.default)(mountStrategy);
|
|
21
21
|
(0, _usePortalEvent.default)(zIndex);
|
|
22
|
-
|
|
23
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
24
22
|
return !(0, _platformFeatureFlags.fg)('platform_design_system_team_portal_logic_r18_fix') ? isSubsequentRender ? /*#__PURE__*/_react.default.createElement(_internalPortal.default, {
|
|
25
23
|
zIndex: zIndex
|
|
26
24
|
}, children) : null : /*#__PURE__*/_react.default.createElement(_internalPortalNew.default, {
|
package/dist/es2019/portal.js
CHANGED
|
@@ -11,8 +11,6 @@ export default function Portal({
|
|
|
11
11
|
}) {
|
|
12
12
|
const isSubsequentRender = useIsSubsequentRender(mountStrategy);
|
|
13
13
|
useFirePortalEvent(zIndex);
|
|
14
|
-
|
|
15
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
16
14
|
return !fg('platform_design_system_team_portal_logic_r18_fix') ? isSubsequentRender ? /*#__PURE__*/React.createElement(InternalPortal, {
|
|
17
15
|
zIndex: zIndex
|
|
18
16
|
}, children) : null : /*#__PURE__*/React.createElement(InternalPortalNew, {
|
package/dist/esm/portal.js
CHANGED
|
@@ -12,8 +12,6 @@ export default function Portal(_ref) {
|
|
|
12
12
|
mountStrategy = _ref$mountStrategy === void 0 ? 'effect' : _ref$mountStrategy;
|
|
13
13
|
var isSubsequentRender = useIsSubsequentRender(mountStrategy);
|
|
14
14
|
useFirePortalEvent(zIndex);
|
|
15
|
-
|
|
16
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
17
15
|
return !fg('platform_design_system_team_portal_logic_r18_fix') ? isSubsequentRender ? /*#__PURE__*/React.createElement(InternalPortal, {
|
|
18
16
|
zIndex: zIndex
|
|
19
17
|
}, children) : null : /*#__PURE__*/React.createElement(InternalPortalNew, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/portal",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.2",
|
|
4
4
|
"description": "A wrapper for rendering components in React portals.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,8 +29,7 @@
|
|
|
29
29
|
"website": {
|
|
30
30
|
"name": "Portal",
|
|
31
31
|
"category": "Libraries"
|
|
32
|
-
}
|
|
33
|
-
"runReact18": true
|
|
32
|
+
}
|
|
34
33
|
},
|
|
35
34
|
"af:exports": {
|
|
36
35
|
"./types": "./src/entry-points/types.tsx",
|
|
@@ -38,7 +37,7 @@
|
|
|
38
37
|
},
|
|
39
38
|
"dependencies": {
|
|
40
39
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
|
-
"@atlaskit/theme": "^
|
|
40
|
+
"@atlaskit/theme": "^19.0.0",
|
|
42
41
|
"@babel/runtime": "^7.0.0"
|
|
43
42
|
},
|
|
44
43
|
"peerDependencies": {
|
|
@@ -46,26 +45,28 @@
|
|
|
46
45
|
"react-dom": "^18.2.0"
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
|
49
|
-
"@af/accessibility-testing": "
|
|
50
|
-
"@af/integration-testing": "
|
|
51
|
-
"@atlaskit/button": "^
|
|
52
|
-
"@atlaskit/code": "^
|
|
53
|
-
"@atlaskit/
|
|
48
|
+
"@af/accessibility-testing": "workspace:^",
|
|
49
|
+
"@af/integration-testing": "workspace:^",
|
|
50
|
+
"@atlaskit/button": "^23.2.0",
|
|
51
|
+
"@atlaskit/code": "^17.2.0",
|
|
52
|
+
"@atlaskit/css": "^0.12.0",
|
|
53
|
+
"@atlaskit/docs": "^11.0.0",
|
|
54
54
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
55
|
-
"@atlaskit/flag": "^
|
|
56
|
-
"@atlaskit/icon": "^
|
|
57
|
-
"@atlaskit/inline-dialog": "^17.
|
|
58
|
-
"@atlaskit/link": "^3.
|
|
59
|
-
"@atlaskit/modal-dialog": "^
|
|
60
|
-
"@atlaskit/onboarding": "^
|
|
61
|
-
"@atlaskit/primitives": "^14.
|
|
62
|
-
"@atlaskit/section-message": "^8.
|
|
63
|
-
"@atlaskit/ssr": "
|
|
64
|
-
"@atlaskit/tokens": "^4.
|
|
65
|
-
"@atlaskit/tooltip": "^20.
|
|
66
|
-
"@atlaskit/visual-regression": "
|
|
55
|
+
"@atlaskit/flag": "^17.2.0",
|
|
56
|
+
"@atlaskit/icon": "^27.3.0",
|
|
57
|
+
"@atlaskit/inline-dialog": "^17.2.0",
|
|
58
|
+
"@atlaskit/link": "^3.2.0",
|
|
59
|
+
"@atlaskit/modal-dialog": "^14.2.0",
|
|
60
|
+
"@atlaskit/onboarding": "^14.2.0",
|
|
61
|
+
"@atlaskit/primitives": "^14.10.0",
|
|
62
|
+
"@atlaskit/section-message": "^8.2.0",
|
|
63
|
+
"@atlaskit/ssr": "workspace:^",
|
|
64
|
+
"@atlaskit/tokens": "^5.4.0",
|
|
65
|
+
"@atlaskit/tooltip": "^20.3.0",
|
|
66
|
+
"@atlaskit/visual-regression": "workspace:^",
|
|
67
67
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
68
|
-
"@
|
|
68
|
+
"@atlassian/ssr-tests": "^0.2.0",
|
|
69
|
+
"@compiled/react": "^0.18.3",
|
|
69
70
|
"@testing-library/react": "^13.4.0",
|
|
70
71
|
"@testing-library/react-hooks": "^8.0.1",
|
|
71
72
|
"bind-event-listener": "^3.0.0",
|
|
@@ -93,7 +94,7 @@
|
|
|
93
94
|
"deprecation": "no-deprecated-imports",
|
|
94
95
|
"styling": [
|
|
95
96
|
"static",
|
|
96
|
-
"
|
|
97
|
+
"compiled"
|
|
97
98
|
]
|
|
98
99
|
}
|
|
99
100
|
},
|