@atlaskit/popper 6.0.0 → 6.2.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 +377 -360
- package/__perf__/default.tsx +17 -16
- package/codemods/5.0.0-lite-mode.tsx +126 -156
- package/codemods/__tests__/update-modifier.tsx +15 -15
- package/codemods/__tests__/update-offset-prop.tsx +71 -71
- package/codemods/__tests__/update-render-props.tsx +13 -13
- package/codemods/utils/helpers.tsx +250 -261
- package/package.json +91 -93
- package/report.api.md +15 -14
package/package.json
CHANGED
|
@@ -1,94 +1,92 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
94
|
-
}
|
|
2
|
+
"name": "@atlaskit/popper",
|
|
3
|
+
"version": "6.2.0",
|
|
4
|
+
"description": "A wrapper for React Popper for situations which require a bespoke popup where other ADS components are deemed unsuitable",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
|
+
"author": "Atlassian Pty Ltd",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"module:es2019": "dist/es2019/index.js",
|
|
14
|
+
"types": "dist/types/index.d.ts",
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"atlaskit:src": "src/index.tsx",
|
|
17
|
+
"atlassian": {
|
|
18
|
+
"team": "Design System Team",
|
|
19
|
+
"productPushConsumption": [
|
|
20
|
+
"jira"
|
|
21
|
+
],
|
|
22
|
+
"releaseModel": "continuous",
|
|
23
|
+
"website": {
|
|
24
|
+
"name": "Popper",
|
|
25
|
+
"category": "Libraries"
|
|
26
|
+
},
|
|
27
|
+
"runReact18": true
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@babel/runtime": "^7.0.0",
|
|
31
|
+
"@popperjs/core": "^2.11.8",
|
|
32
|
+
"react-popper": "^2.3.0"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@af/accessibility-testing": "*",
|
|
39
|
+
"@af/visual-regression": "*",
|
|
40
|
+
"@atlaskit/ds-lib": "^2.4.0",
|
|
41
|
+
"@atlaskit/ssr": "*",
|
|
42
|
+
"@atlaskit/visual-regression": "*",
|
|
43
|
+
"@emotion/react": "^11.7.1",
|
|
44
|
+
"@emotion/styled": "^11.0.0",
|
|
45
|
+
"@testing-library/react": "^12.1.5",
|
|
46
|
+
"@testing-library/user-event": "^14.4.3",
|
|
47
|
+
"@types/jscodeshift": "^0.11.0",
|
|
48
|
+
"ast-types": "^0.13.3",
|
|
49
|
+
"jscodeshift": "^0.13.0",
|
|
50
|
+
"react-dom": "^16.8.0",
|
|
51
|
+
"react-lorem-component": "^0.13.0",
|
|
52
|
+
"typescript": "~5.4.2",
|
|
53
|
+
"wait-for-expect": "^1.2.0"
|
|
54
|
+
},
|
|
55
|
+
"keywords": [
|
|
56
|
+
"atlaskit",
|
|
57
|
+
"ui"
|
|
58
|
+
],
|
|
59
|
+
"techstack": {
|
|
60
|
+
"@atlassian/frontend": {
|
|
61
|
+
"import-structure": "atlassian-conventions"
|
|
62
|
+
},
|
|
63
|
+
"@repo/internal": {
|
|
64
|
+
"dom-events": "use-bind-event-listener",
|
|
65
|
+
"design-system": "v1",
|
|
66
|
+
"ui-components": "lite-mode",
|
|
67
|
+
"analytics": "analytics-next",
|
|
68
|
+
"design-tokens": [
|
|
69
|
+
"color",
|
|
70
|
+
"spacing"
|
|
71
|
+
],
|
|
72
|
+
"deprecation": "no-deprecated-imports",
|
|
73
|
+
"styling": [
|
|
74
|
+
"static",
|
|
75
|
+
"emotion"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"typesVersions": {
|
|
80
|
+
">=4.5 <4.9": {
|
|
81
|
+
"*": [
|
|
82
|
+
"dist/types-ts4.5/*",
|
|
83
|
+
"dist/types-ts4.5/index.d.ts"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"af:exports": {
|
|
88
|
+
".": "./src/index.tsx",
|
|
89
|
+
"./Popper": "./src/popper.tsx"
|
|
90
|
+
},
|
|
91
|
+
"homepage": "https://atlassian.design/components/popper"
|
|
92
|
+
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/popper"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -31,12 +32,12 @@ import { VirtualElement } from '@popperjs/core';
|
|
|
31
32
|
|
|
32
33
|
// @public (undocumented)
|
|
33
34
|
interface CustomPopperProps<Modifiers> {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
children?: (childrenProps: PopperChildrenProps) => React_2.ReactNode;
|
|
36
|
+
modifiers?: PopperProps<Modifiers>['modifiers'];
|
|
37
|
+
offset?: Offset;
|
|
38
|
+
placement?: Placement;
|
|
39
|
+
referenceElement?: HTMLElement | VirtualElement;
|
|
40
|
+
strategy?: PopperProps<Modifiers>['strategy'];
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
export { Manager };
|
|
@@ -54,12 +55,12 @@ export { placements };
|
|
|
54
55
|
|
|
55
56
|
// @public (undocumented)
|
|
56
57
|
export function Popper<CustomModifiers>({
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
children,
|
|
59
|
+
offset,
|
|
60
|
+
placement,
|
|
61
|
+
referenceElement,
|
|
62
|
+
modifiers,
|
|
63
|
+
strategy,
|
|
63
64
|
}: CustomPopperProps<CustomModifiers>): JSX.Element;
|
|
64
65
|
|
|
65
66
|
export { PopperArrowProps };
|
|
@@ -85,7 +86,7 @@ export { StrictModifier };
|
|
|
85
86
|
|
|
86
87
|
```json
|
|
87
88
|
{
|
|
88
|
-
|
|
89
|
+
"react": "^16.8.0"
|
|
89
90
|
}
|
|
90
91
|
```
|
|
91
92
|
|