@atlaskit/portal 4.10.0 → 4.11.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/CHANGELOG.md +12 -0
- package/package.json +8 -8
- package/__perf__/default.tsx +0 -9
- package/__perf__/examples.tsx +0 -36
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/portal
|
|
2
2
|
|
|
3
|
+
## 4.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
|
|
8
|
+
[`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
|
|
9
|
+
Update `React` from v16 to v18
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 4.10.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/portal",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.11.0",
|
|
4
4
|
"description": "A wrapper for rendering components in React portals.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
41
|
-
"@atlaskit/theme": "^14.
|
|
41
|
+
"@atlaskit/theme": "^14.1.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
@@ -48,15 +48,15 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@af/accessibility-testing": "*",
|
|
50
50
|
"@af/integration-testing": "*",
|
|
51
|
-
"@atlaskit/ds-lib": "^3.
|
|
52
|
-
"@atlaskit/modal-dialog": "^12.
|
|
51
|
+
"@atlaskit/ds-lib": "^3.5.0",
|
|
52
|
+
"@atlaskit/modal-dialog": "^12.20.0",
|
|
53
53
|
"@atlaskit/ssr": "*",
|
|
54
|
-
"@atlaskit/tokens": "^
|
|
55
|
-
"@atlaskit/tooltip": "^19.
|
|
54
|
+
"@atlaskit/tokens": "^3.3.0",
|
|
55
|
+
"@atlaskit/tooltip": "^19.1.0",
|
|
56
56
|
"@atlaskit/visual-regression": "*",
|
|
57
|
-
"@atlassian/feature-flags-test-utils": "^0.
|
|
57
|
+
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
58
58
|
"@emotion/react": "^11.7.1",
|
|
59
|
-
"@testing-library/react": "^
|
|
59
|
+
"@testing-library/react": "^13.4.0",
|
|
60
60
|
"@testing-library/react-hooks": "^8.0.1",
|
|
61
61
|
"bind-event-listener": "^3.0.0",
|
|
62
62
|
"raf-stub": "^2.0.1",
|
package/__perf__/default.tsx
DELETED
package/__perf__/examples.tsx
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { token } from '@atlaskit/tokens';
|
|
4
|
-
|
|
5
|
-
import Portal from '../src';
|
|
6
|
-
|
|
7
|
-
const PortalPerformance = () => {
|
|
8
|
-
return (
|
|
9
|
-
<Portal zIndex={200}>
|
|
10
|
-
<div
|
|
11
|
-
style={{
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
13
|
-
position: 'absolute',
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
15
|
-
top: token('space.300', '24px'),
|
|
16
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
17
|
-
left: token('space.300', '24px'),
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
19
|
-
background: 'lightpink',
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
21
|
-
padding: token('space.300', '24px'),
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
23
|
-
borderRadius: '3px',
|
|
24
|
-
// this z-index is relative to the portal
|
|
25
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
26
|
-
zIndex: 1,
|
|
27
|
-
}}
|
|
28
|
-
>
|
|
29
|
-
<p>portal z-index: 200</p>
|
|
30
|
-
<p>element z-index: 1</p>
|
|
31
|
-
</div>
|
|
32
|
-
</Portal>
|
|
33
|
-
);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export default PortalPerformance;
|