@atlaskit/popper 6.3.2 → 7.0.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 +22 -0
- package/dist/cjs/popper.js +2 -0
- package/dist/es2019/popper.js +2 -0
- package/dist/esm/popper.js +2 -0
- package/dist/types/popper.d.ts +1 -1
- package/dist/types-ts4.5/popper.d.ts +1 -1
- package/package.json +5 -5
- package/__perf__/default.tsx +0 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/popper
|
|
2
2
|
|
|
3
|
+
## 7.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
|
|
8
|
+
[`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
|
|
9
|
+
This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
|
|
10
|
+
status of only supporting React 18 going forward. No explicit breaking change to React support has
|
|
11
|
+
been made in this release, but this is to signify going forward, breaking changes for React 16 or
|
|
12
|
+
React 17 may come via non-major semver releases.
|
|
13
|
+
|
|
14
|
+
Please refer this community post for more details:
|
|
15
|
+
https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
|
|
16
|
+
|
|
17
|
+
## 6.4.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
|
|
22
|
+
[`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
|
|
23
|
+
Update `React` from v16 to v18
|
|
24
|
+
|
|
3
25
|
## 6.3.2
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/cjs/popper.js
CHANGED
|
@@ -70,6 +70,8 @@ function Popper(_ref) {
|
|
|
70
70
|
var maxSizeModifiers = shouldFitViewport ? (0, _maxSize.getMaxSizeModifiers)({
|
|
71
71
|
viewportPadding: viewportPadding
|
|
72
72
|
}) : [];
|
|
73
|
+
|
|
74
|
+
// @ts-ignore Type errors from incompatible @popperjs/core versions between Jira and AFM Platform... we are using ts-ignore here because ts-expect-error will cause an "Unused '@ts-expect-error' directive." error
|
|
73
75
|
return [].concat(constantModifiers, [preventOverflowModifier, offsetModifier], (0, _toConsumableArray2.default)(maxSizeModifiers));
|
|
74
76
|
}, [offsetX, offsetY, shouldFitViewport]);
|
|
75
77
|
|
package/dist/es2019/popper.js
CHANGED
|
@@ -45,6 +45,8 @@ export function Popper({
|
|
|
45
45
|
const maxSizeModifiers = shouldFitViewport ? getMaxSizeModifiers({
|
|
46
46
|
viewportPadding
|
|
47
47
|
}) : [];
|
|
48
|
+
|
|
49
|
+
// @ts-ignore Type errors from incompatible @popperjs/core versions between Jira and AFM Platform... we are using ts-ignore here because ts-expect-error will cause an "Unused '@ts-expect-error' directive." error
|
|
48
50
|
return [...constantModifiers, preventOverflowModifier, offsetModifier, ...maxSizeModifiers];
|
|
49
51
|
}, [offsetX, offsetY, shouldFitViewport]);
|
|
50
52
|
|
package/dist/esm/popper.js
CHANGED
|
@@ -54,6 +54,8 @@ export function Popper(_ref) {
|
|
|
54
54
|
var maxSizeModifiers = shouldFitViewport ? getMaxSizeModifiers({
|
|
55
55
|
viewportPadding: viewportPadding
|
|
56
56
|
}) : [];
|
|
57
|
+
|
|
58
|
+
// @ts-ignore Type errors from incompatible @popperjs/core versions between Jira and AFM Platform... we are using ts-ignore here because ts-expect-error will cause an "Unused '@ts-expect-error' directive." error
|
|
57
59
|
return [].concat(constantModifiers, [preventOverflowModifier, offsetModifier], _toConsumableArray(maxSizeModifiers));
|
|
58
60
|
}, [offsetX, offsetY, shouldFitViewport]);
|
|
59
61
|
|
package/dist/types/popper.d.ts
CHANGED
|
@@ -38,4 +38,4 @@ export interface CustomPopperProps<Modifiers> {
|
|
|
38
38
|
*/
|
|
39
39
|
shouldFitViewport?: boolean;
|
|
40
40
|
}
|
|
41
|
-
export declare function Popper<CustomModifiers>({ children, offset, placement, referenceElement, modifiers, strategy, shouldFitViewport, }: CustomPopperProps<CustomModifiers>): JSX.Element;
|
|
41
|
+
export declare function Popper<CustomModifiers>({ children, offset, placement, referenceElement, modifiers, strategy, shouldFitViewport, }: CustomPopperProps<CustomModifiers>): React.JSX.Element;
|
|
@@ -41,4 +41,4 @@ export interface CustomPopperProps<Modifiers> {
|
|
|
41
41
|
*/
|
|
42
42
|
shouldFitViewport?: boolean;
|
|
43
43
|
}
|
|
44
|
-
export declare function Popper<CustomModifiers>({ children, offset, placement, referenceElement, modifiers, strategy, shouldFitViewport, }: CustomPopperProps<CustomModifiers>): JSX.Element;
|
|
44
|
+
export declare function Popper<CustomModifiers>({ children, offset, placement, referenceElement, modifiers, strategy, shouldFitViewport, }: CustomPopperProps<CustomModifiers>): React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/popper",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "A wrapper for React Popper for situations which require a bespoke popup where other ADS components are deemed unsuitable",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,23 +30,23 @@
|
|
|
30
30
|
"react-popper": "^2.3.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"react": "^
|
|
33
|
+
"react": "^18.2.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@af/accessibility-testing": "*",
|
|
37
37
|
"@af/integration-testing": "*",
|
|
38
38
|
"@af/visual-regression": "*",
|
|
39
|
-
"@atlaskit/ds-lib": "^
|
|
39
|
+
"@atlaskit/ds-lib": "^4.0.0",
|
|
40
40
|
"@atlaskit/ssr": "*",
|
|
41
41
|
"@atlaskit/visual-regression": "*",
|
|
42
42
|
"@emotion/react": "^11.7.1",
|
|
43
43
|
"@emotion/styled": "^11.0.0",
|
|
44
|
-
"@testing-library/react": "^
|
|
44
|
+
"@testing-library/react": "^13.4.0",
|
|
45
45
|
"@testing-library/user-event": "^14.4.3",
|
|
46
46
|
"@types/jscodeshift": "^0.11.0",
|
|
47
47
|
"ast-types": "^0.13.3",
|
|
48
48
|
"jscodeshift": "^0.13.0",
|
|
49
|
-
"react-dom": "^
|
|
49
|
+
"react-dom": "^18.2.0",
|
|
50
50
|
"react-lorem-component": "^0.13.0",
|
|
51
51
|
"typescript": "~5.4.2"
|
|
52
52
|
},
|
package/__perf__/default.tsx
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { Manager, Popper, Reference } from '../src';
|
|
4
|
-
|
|
5
|
-
export default () => (
|
|
6
|
-
<Manager>
|
|
7
|
-
<Reference>
|
|
8
|
-
{({ ref }) => (
|
|
9
|
-
<button ref={ref} type="button">
|
|
10
|
-
Reference element
|
|
11
|
-
</button>
|
|
12
|
-
)}
|
|
13
|
-
</Reference>
|
|
14
|
-
<Popper placement="right">
|
|
15
|
-
{({ ref, style }) => (
|
|
16
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
17
|
-
<div ref={ref} style={style}>
|
|
18
|
-
↔ This text is a popper placed to the right
|
|
19
|
-
</div>
|
|
20
|
-
)}
|
|
21
|
-
</Popper>
|
|
22
|
-
</Manager>
|
|
23
|
-
);
|