@atlaskit/popper 6.3.2 → 6.4.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 +8 -0
- package/dist/cjs/popper.js +2 -0
- package/dist/es2019/popper.js +2 -0
- package/dist/esm/popper.js +2 -0
- package/package.json +4 -4
- package/__perf__/default.tsx +0 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/popper
|
|
2
2
|
|
|
3
|
+
## 6.4.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
|
+
|
|
3
11
|
## 6.3.2
|
|
4
12
|
|
|
5
13
|
### 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/popper",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.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/"
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"@af/accessibility-testing": "*",
|
|
37
37
|
"@af/integration-testing": "*",
|
|
38
38
|
"@af/visual-regression": "*",
|
|
39
|
-
"@atlaskit/ds-lib": "^3.
|
|
39
|
+
"@atlaskit/ds-lib": "^3.5.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
|
-
);
|