@atlaskit/popper 5.5.4 → 5.6.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 +367 -213
- package/Popper/package.json +1 -1
- package/dist/cjs/__tests_external__/page-objects/base-popper.js +3 -4
- package/dist/cjs/__tests_external__/test-cases/popper.js +2 -3
- package/dist/cjs/popper.js +6 -3
- package/dist/es2019/popper.js +4 -1
- package/dist/esm/__tests_external__/page-objects/base-popper.js +1 -1
- package/dist/esm/popper.js +4 -1
- package/in-product/package.json +1 -1
- package/package.json +9 -8
- package/tmp/api-report-tmp.d.ts +0 -61
package/CHANGELOG.md
CHANGED
|
@@ -1,599 +1,753 @@
|
|
|
1
1
|
# @atlaskit/popper
|
|
2
2
|
|
|
3
|
+
## 5.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#99248](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99248)
|
|
8
|
+
[`ffd6f7e683e0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ffd6f7e683e0) -
|
|
9
|
+
Add support for React 18.
|
|
10
|
+
|
|
11
|
+
## 5.5.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
16
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
17
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
18
|
+
|
|
3
19
|
## 5.5.4
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
6
22
|
|
|
7
|
-
-
|
|
23
|
+
- [#38731](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38731)
|
|
24
|
+
[`9af31f3c1ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9af31f3c1ae) - Delete
|
|
25
|
+
version.json
|
|
8
26
|
|
|
9
27
|
## 5.5.3
|
|
10
28
|
|
|
11
29
|
### Patch Changes
|
|
12
30
|
|
|
13
|
-
-
|
|
31
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
32
|
+
[`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
|
|
33
|
+
legacy types are published for TS 4.5-4.8
|
|
14
34
|
|
|
15
35
|
## 5.5.2
|
|
16
36
|
|
|
17
37
|
### Patch Changes
|
|
18
38
|
|
|
19
|
-
-
|
|
39
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
40
|
+
[`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) -
|
|
41
|
+
Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
20
42
|
|
|
21
43
|
## 5.5.1
|
|
22
44
|
|
|
23
45
|
### Patch Changes
|
|
24
46
|
|
|
25
|
-
-
|
|
47
|
+
- [#32945](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32945)
|
|
48
|
+
[`f859e9ccda4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f859e9ccda4) -
|
|
49
|
+
Migrates unit tests from enzyme to RTL.
|
|
26
50
|
|
|
27
51
|
## 5.5.0
|
|
28
52
|
|
|
29
53
|
### Minor Changes
|
|
30
54
|
|
|
31
|
-
-
|
|
55
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
56
|
+
[`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
|
|
57
|
+
minor dependency bump
|
|
32
58
|
|
|
33
59
|
### Patch Changes
|
|
34
60
|
|
|
35
|
-
-
|
|
61
|
+
- Updated dependencies
|
|
36
62
|
|
|
37
63
|
## 5.4.11
|
|
38
64
|
|
|
39
65
|
### Patch Changes
|
|
40
66
|
|
|
41
|
-
-
|
|
67
|
+
- [#29327](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29327)
|
|
68
|
+
[`d84f56e6e50`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d84f56e6e50) - Remove
|
|
69
|
+
the unused feature flag
|
|
42
70
|
|
|
43
71
|
## 5.4.10
|
|
44
72
|
|
|
45
73
|
### Patch Changes
|
|
46
74
|
|
|
47
|
-
-
|
|
75
|
+
- Updated dependencies
|
|
48
76
|
|
|
49
77
|
## 5.4.9
|
|
50
78
|
|
|
51
79
|
### Patch Changes
|
|
52
80
|
|
|
53
|
-
-
|
|
81
|
+
- Updated dependencies
|
|
54
82
|
|
|
55
83
|
## 5.4.8
|
|
56
84
|
|
|
57
85
|
### Patch Changes
|
|
58
86
|
|
|
59
|
-
-
|
|
87
|
+
- Updated dependencies
|
|
60
88
|
|
|
61
89
|
## 5.4.7
|
|
62
90
|
|
|
63
91
|
### Patch Changes
|
|
64
92
|
|
|
65
|
-
-
|
|
93
|
+
- Updated dependencies
|
|
66
94
|
|
|
67
95
|
## 5.4.6
|
|
68
96
|
|
|
69
97
|
### Patch Changes
|
|
70
98
|
|
|
71
|
-
-
|
|
72
|
-
-
|
|
99
|
+
- [#28158](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28158)
|
|
100
|
+
[`7888ba61c3b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7888ba61c3b) - Add
|
|
101
|
+
platform feature flag registration and dynamic type generation for platform feature flag client
|
|
102
|
+
- Updated dependencies
|
|
73
103
|
|
|
74
104
|
## 5.4.5
|
|
75
105
|
|
|
76
106
|
### Patch Changes
|
|
77
107
|
|
|
78
|
-
-
|
|
108
|
+
- [#28303](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28303)
|
|
109
|
+
[`85dc0230439`](https://bitbucket.org/atlassian/atlassian-frontend/commits/85dc0230439) - Add
|
|
110
|
+
eslint rule to allow for platform feature flag usage
|
|
79
111
|
|
|
80
112
|
## 5.4.4
|
|
81
113
|
|
|
82
114
|
### Patch Changes
|
|
83
115
|
|
|
84
|
-
-
|
|
116
|
+
- Updated dependencies
|
|
85
117
|
|
|
86
118
|
## 5.4.3
|
|
87
119
|
|
|
88
120
|
### Patch Changes
|
|
89
121
|
|
|
90
|
-
-
|
|
122
|
+
- Updated dependencies
|
|
91
123
|
|
|
92
124
|
## 5.4.2
|
|
93
125
|
|
|
94
126
|
### Patch Changes
|
|
95
127
|
|
|
96
|
-
-
|
|
128
|
+
- [#27890](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27890)
|
|
129
|
+
[`03a51e8100d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/03a51e8100d) -
|
|
130
|
+
Introduces a hidden, dummy html element to validate that our new deployment pipeline is working
|
|
131
|
+
end-to-end.
|
|
97
132
|
|
|
98
133
|
## 5.4.1
|
|
99
134
|
|
|
100
135
|
### Patch Changes
|
|
101
136
|
|
|
102
|
-
-
|
|
137
|
+
- [#27756](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27756)
|
|
138
|
+
[`211c04b1c96`](https://bitbucket.org/atlassian/atlassian-frontend/commits/211c04b1c96) - Fixes
|
|
139
|
+
in-product testing typos causing assert errors
|
|
103
140
|
|
|
104
141
|
## 5.4.0
|
|
105
142
|
|
|
106
143
|
### Minor Changes
|
|
107
144
|
|
|
108
|
-
-
|
|
145
|
+
- [#27549](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27549)
|
|
146
|
+
[`cd2800156bd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cd2800156bd) -
|
|
147
|
+
Updates to in-product testing interface. The change switches
|
|
148
|
+
popperRendersWithPositionFixedTestCase to popperRendersTestCase.
|
|
109
149
|
|
|
110
150
|
## 5.3.0
|
|
111
151
|
|
|
112
152
|
### Minor Changes
|
|
113
153
|
|
|
114
|
-
-
|
|
154
|
+
- [#27258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27258)
|
|
155
|
+
[`6d5881c30a4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6d5881c30a4) -
|
|
156
|
+
Introducing in-product testing entrypoints to popper.
|
|
115
157
|
|
|
116
158
|
## 5.2.11
|
|
117
159
|
|
|
118
160
|
### Patch Changes
|
|
119
161
|
|
|
120
|
-
-
|
|
162
|
+
- [#27294](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27294)
|
|
163
|
+
[`dc53dc3201b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dc53dc3201b) - Add
|
|
164
|
+
'productPushConsumption' as a new optional field in package.json.
|
|
121
165
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
This field is optional.
|
|
166
|
+
_Note_: We want to track the information if the package was moved from the pull into the push
|
|
167
|
+
model in the product. Hence, we extended the `package.json` file by adding a new field e.g.:
|
|
168
|
+
"atlassian.productPushConsumption": ["jira"] This field is optional.
|
|
126
169
|
|
|
127
170
|
## 5.2.10
|
|
128
171
|
|
|
129
172
|
### Patch Changes
|
|
130
173
|
|
|
131
|
-
-
|
|
174
|
+
- [#26303](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26303)
|
|
175
|
+
[`9827dcb82b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9827dcb82b8) - No-op
|
|
176
|
+
change to introduce spacing tokens to design system components.
|
|
132
177
|
|
|
133
178
|
## 5.2.9
|
|
134
179
|
|
|
135
180
|
### Patch Changes
|
|
136
181
|
|
|
137
|
-
-
|
|
182
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
|
|
183
|
+
[`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) -
|
|
184
|
+
Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
138
185
|
|
|
139
186
|
## 5.2.8
|
|
140
187
|
|
|
141
188
|
### Patch Changes
|
|
142
189
|
|
|
143
|
-
-
|
|
190
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
|
|
191
|
+
[`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) -
|
|
192
|
+
Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
144
193
|
|
|
145
194
|
## 5.2.7
|
|
146
195
|
|
|
147
196
|
### Patch Changes
|
|
148
197
|
|
|
149
|
-
-
|
|
198
|
+
- [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381)
|
|
199
|
+
[`ff5655480e6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff5655480e6) -
|
|
200
|
+
Internal code change turning on new linting rules.
|
|
150
201
|
|
|
151
202
|
## 5.2.6
|
|
152
203
|
|
|
153
204
|
### Patch Changes
|
|
154
205
|
|
|
155
|
-
-
|
|
206
|
+
- [#22642](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22642)
|
|
207
|
+
[`45ebe7af434`](https://bitbucket.org/atlassian/atlassian-frontend/commits/45ebe7af434) - Moved
|
|
208
|
+
to using declarative entrypoints internally. Public API is unchanged.
|
|
156
209
|
|
|
157
210
|
## 5.2.5
|
|
158
211
|
|
|
159
212
|
### Patch Changes
|
|
160
213
|
|
|
161
|
-
-
|
|
214
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
|
|
215
|
+
[`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) -
|
|
216
|
+
Upgrade to TypeScript 4.2.4
|
|
162
217
|
|
|
163
218
|
## 5.2.4
|
|
164
219
|
|
|
165
220
|
### Patch Changes
|
|
166
221
|
|
|
167
|
-
-
|
|
222
|
+
- [#20033](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20033)
|
|
223
|
+
[`b3e5a62a9e3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b3e5a62a9e3) - Adds
|
|
224
|
+
`static` techstack to package, enforcing stricter style linting. In this case the package
|
|
225
|
+
already satisfied this requirement so there have been no changes to styles.
|
|
168
226
|
|
|
169
227
|
## 5.2.3
|
|
170
228
|
|
|
171
229
|
### Patch Changes
|
|
172
230
|
|
|
173
|
-
-
|
|
231
|
+
- [#19678](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19678)
|
|
232
|
+
[`10d1f4d4a4b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/10d1f4d4a4b) - Export
|
|
233
|
+
placement options
|
|
174
234
|
|
|
175
235
|
## 5.2.2
|
|
176
236
|
|
|
177
237
|
### Patch Changes
|
|
178
238
|
|
|
179
|
-
-
|
|
239
|
+
- [#13302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13302)
|
|
240
|
+
[`cd34d8ca8ea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cd34d8ca8ea) -
|
|
241
|
+
Internal wiring up to the tokens techstack, no code changes.
|
|
180
242
|
|
|
181
243
|
## 5.2.1
|
|
182
244
|
|
|
183
245
|
### Patch Changes
|
|
184
246
|
|
|
185
|
-
-
|
|
247
|
+
- [#12880](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12880)
|
|
248
|
+
[`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump
|
|
249
|
+
`@atlaskit/theme` to version `^11.3.0`.
|
|
186
250
|
|
|
187
251
|
## 5.2.0
|
|
188
252
|
|
|
189
253
|
### Minor Changes
|
|
190
254
|
|
|
191
|
-
-
|
|
255
|
+
- [#12170](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12170)
|
|
256
|
+
[`f6b951a51f2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f6b951a51f2) -
|
|
257
|
+
Removes usage of styled-components in favour of standardising on emotion
|
|
192
258
|
|
|
193
259
|
## 5.1.0
|
|
194
260
|
|
|
195
261
|
### Minor Changes
|
|
196
262
|
|
|
197
|
-
-
|
|
263
|
+
- [#8388](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8388)
|
|
264
|
+
[`81f4f9f7562`](https://bitbucket.org/atlassian/atlassian-frontend/commits/81f4f9f7562) - Update
|
|
265
|
+
core `@popperjs/core` dependency to `^2.9.1`, fixing some positioning bugs, such as in parents
|
|
266
|
+
with `will-change` CSS properties set. For more information on the specific changes, see the
|
|
267
|
+
popper docs.
|
|
198
268
|
|
|
199
269
|
## 5.0.4
|
|
200
270
|
|
|
201
271
|
### Patch Changes
|
|
202
272
|
|
|
203
|
-
-
|
|
273
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
|
|
274
|
+
[`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) -
|
|
275
|
+
Transpile packages using babel rather than tsc
|
|
204
276
|
|
|
205
277
|
## 5.0.3
|
|
206
278
|
|
|
207
279
|
### Patch Changes
|
|
208
280
|
|
|
209
|
-
-
|
|
210
|
-
|
|
211
|
-
|
|
281
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
|
|
282
|
+
[`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export
|
|
283
|
+
types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules
|
|
284
|
+
compiler option. This requires version 3.8 of Typescript, read more about how we handle
|
|
285
|
+
Typescript versions here: https://atlaskit.atlassian.com/get-started Also add `typescript` to
|
|
286
|
+
`devDependencies` to denote version that the package was built with.
|
|
212
287
|
|
|
213
288
|
## 5.0.2
|
|
214
289
|
|
|
215
290
|
### Patch Changes
|
|
216
291
|
|
|
217
|
-
-
|
|
292
|
+
- [#4346](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4346)
|
|
293
|
+
[`fc8f6e61f3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fc8f6e61f3) - Fix
|
|
294
|
+
codemod utilities being exposed through the codemod cli
|
|
218
295
|
|
|
219
296
|
## 5.0.1
|
|
220
297
|
|
|
221
298
|
### Patch Changes
|
|
222
299
|
|
|
223
|
-
-
|
|
300
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
|
|
301
|
+
[`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded
|
|
302
|
+
to TypeScript 3.9.6 and tslib to 2.0.0
|
|
224
303
|
|
|
225
|
-
|
|
226
|
-
|
|
304
|
+
Since tslib is a dependency for all our packages we recommend that products also follow this
|
|
305
|
+
tslib upgrade to prevent duplicates of tslib being bundled.
|
|
227
306
|
|
|
228
307
|
## 5.0.0
|
|
229
308
|
|
|
230
309
|
### Major Changes
|
|
231
310
|
|
|
232
|
-
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
311
|
+
- [#3823](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3823)
|
|
312
|
+
[`044869b067`](https://bitbucket.org/atlassian/atlassian-frontend/commits/044869b067) - This
|
|
313
|
+
major release of Popper upgrades from react-popper v.1.3.6 to 2.2.3, which includes version 2 of
|
|
314
|
+
Popper JS (@popperjs/core). This is a complete re-write of popper.js which comes with
|
|
315
|
+
bundle-size and performance improvements, as well as a number of bug fixes and longer-term
|
|
316
|
+
support.
|
|
317
|
+
|
|
318
|
+
There are a number of major changes for consumers are listed below; ⚙️ indicates the change has
|
|
319
|
+
codemod support:
|
|
320
|
+
|
|
321
|
+
- **Component Props**:
|
|
322
|
+
- ⚙️ `offset` is no longer a string, but an array of two integers (i.e. '0px 8px' is now
|
|
323
|
+
[0, 8])
|
|
324
|
+
- **Render Props**:
|
|
325
|
+
- ⚙️ `outOfBoundaries` has been replaced with `isReferenceHidden`, and is now true when
|
|
326
|
+
the popper is hidden (i.e. by a scroll container)
|
|
327
|
+
- ⚙️ `scheduleUpdate`, for async updates, has been renamed to `update`, and now returns a
|
|
328
|
+
Promise.
|
|
329
|
+
- **✨new** `hasPopperEscaped` tracks when the reference element is fully clipped or
|
|
330
|
+
hidden
|
|
331
|
+
- **✨new** `forceUpdate` is exposed to perform synchronous updates
|
|
332
|
+
- **Types**:
|
|
333
|
+
- @atlaskit/popper now exports a number of useful types from both `@popperjs/core`
|
|
334
|
+
(`Placement`) and `react-popper` (`ManagerProps`, `ReferenceProps`, `PopperProps`,
|
|
335
|
+
`PopperArrowProps`, `PopperChildrenProps`, `StrictModifier`, `Modifier`).
|
|
336
|
+
- Custom modifiers are now more strongly typed; to improve the specificity of the types,
|
|
337
|
+
pass a generic type with the modifier names you plan to use.
|
|
338
|
+
- **Custom modifiers**: This only affects users applying custom modifiers via the `modifiers`
|
|
339
|
+
prop:
|
|
340
|
+
- the `modifiers` prop has been significantly updated:
|
|
341
|
+
- The format is now an array of objects, each labelled via a `name` key:value pair. Previously
|
|
342
|
+
the prop was an object where each property was the modifier name.
|
|
343
|
+
- Prop options are grouped together in an `options` object
|
|
344
|
+
- default boundary paddings have been removed from `preventOverflow` and `flip`; to restore
|
|
345
|
+
original padding, set `padding: 5`
|
|
346
|
+
- modifiers that supported a `boundariesElement` option now have two options in its place:
|
|
347
|
+
- `boundary`, which takes `clippingParents` (similar to `scrollParent`)
|
|
348
|
+
- `rootBoundary` which takes `viewport` or `document` (replacing `viewport` and
|
|
349
|
+
`window`respectively)
|
|
350
|
+
|
|
351
|
+
Each modifier has more internal changes not listed here: see
|
|
352
|
+
[the Popper JS docs](https://popper.js.org/docs/v2/modifiers/) for more information, as well as
|
|
353
|
+
the [Popper migration guide](https://popper.js.org/docs/v2/migration-guide/) for an example of
|
|
354
|
+
the new list structure.
|
|
355
|
+
|
|
356
|
+
Due to the highly specific nature of these modifiers, codemod support is not provided for this
|
|
357
|
+
change
|
|
358
|
+
|
|
359
|
+
Note: due to a bug in `react-popper`, a console.error message relating to React `act()` may be
|
|
360
|
+
raised on some tests. It should not cause test failures. This issue has been raised in
|
|
361
|
+
[the React Popper issue tracker](https://github.com/popperjs/react-popper/issues/368)
|
|
362
|
+
|
|
363
|
+
**Running the codemod cli**
|
|
364
|
+
|
|
365
|
+
To run the codemod: **You first need to have the latest version of popper installed before you
|
|
366
|
+
can run the codemod**
|
|
367
|
+
|
|
368
|
+
`yarn upgrade @atlaskit/popper@^5.0.0`
|
|
369
|
+
|
|
370
|
+
Once upgraded, use the Atlaskit codemod-cli;
|
|
371
|
+
|
|
372
|
+
`npx @atlaskit/codemod-cli --parser [PARSER] --extensions [FILE_EXTENSIONS] [TARGET_PATH]`
|
|
373
|
+
|
|
374
|
+
Or run `npx @atlaskit/codemod-cli -h` for more details on usage. For Atlassians, refer to
|
|
375
|
+
[this doc](https://hello.atlassian.net/wiki/spaces/AF/pages/2627171992/Codemods) for more
|
|
376
|
+
details on the codemod CLI.
|
|
280
377
|
|
|
281
378
|
## 4.0.1
|
|
282
379
|
|
|
283
380
|
### Patch Changes
|
|
284
381
|
|
|
285
|
-
-
|
|
382
|
+
- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428)
|
|
383
|
+
[`db053b24d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db053b24d8) - Update
|
|
384
|
+
all the theme imports to be tree-shakable
|
|
286
385
|
|
|
287
386
|
## 4.0.0
|
|
288
387
|
|
|
289
388
|
### Major Changes
|
|
290
389
|
|
|
291
|
-
-
|
|
292
|
-
|
|
390
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
|
|
391
|
+
[`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) -
|
|
392
|
+
Officially dropping IE11 support, from this version onwards there are no warranties of the
|
|
393
|
+
package working in IE11. For more information see:
|
|
394
|
+
https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
293
395
|
|
|
294
396
|
## 3.1.13
|
|
295
397
|
|
|
296
398
|
### Patch Changes
|
|
297
399
|
|
|
298
|
-
-
|
|
400
|
+
- [#2866](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2866)
|
|
401
|
+
[`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build
|
|
402
|
+
and supporting files will no longer be published to npm
|
|
299
403
|
|
|
300
404
|
## 3.1.12
|
|
301
405
|
|
|
302
406
|
### Patch Changes
|
|
303
407
|
|
|
304
|
-
-
|
|
408
|
+
- [patch][cf8577f5d6](https://bitbucket.org/atlassian/atlassian-frontend/commits/cf8577f5d6):
|
|
305
409
|
|
|
306
|
-
|
|
410
|
+
Change imports to comply with Atlassian conventions- Updated dependencies
|
|
411
|
+
[6b8e60827e](https://bitbucket.org/atlassian/atlassian-frontend/commits/6b8e60827e):
|
|
307
412
|
|
|
308
|
-
-
|
|
309
|
-
|
|
413
|
+
- Updated dependencies
|
|
414
|
+
[57c0487a02](https://bitbucket.org/atlassian/atlassian-frontend/commits/57c0487a02):
|
|
415
|
+
- @atlaskit/button@13.3.11
|
|
310
416
|
|
|
311
417
|
## 3.1.11
|
|
312
418
|
|
|
313
419
|
### Patch Changes
|
|
314
420
|
|
|
315
|
-
-
|
|
421
|
+
- [patch][6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
316
422
|
|
|
317
|
-
|
|
423
|
+
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
424
|
+
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
318
425
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
426
|
+
- @atlaskit/docs@8.3.2
|
|
427
|
+
- @atlaskit/button@13.3.7
|
|
428
|
+
- @atlaskit/theme@9.5.1
|
|
322
429
|
|
|
323
430
|
## 3.1.10
|
|
324
431
|
|
|
325
432
|
### Patch Changes
|
|
326
433
|
|
|
327
|
-
-
|
|
434
|
+
- [patch][671de2d063](https://bitbucket.org/atlassian/atlassian-frontend/commits/671de2d063):
|
|
328
435
|
|
|
329
|
-
|
|
436
|
+
Updates `offset` prop description.
|
|
330
437
|
|
|
331
438
|
## 3.1.9
|
|
332
439
|
|
|
333
440
|
### Patch Changes
|
|
334
441
|
|
|
335
|
-
-
|
|
442
|
+
- [patch][4a223473c5](https://bitbucket.org/atlassian/atlassian-frontend/commits/4a223473c5):
|
|
336
443
|
|
|
337
|
-
|
|
444
|
+
Removes babel/runtime from dependencies. Users should see a smaller bundlesize as a result-
|
|
445
|
+
Updated dependencies
|
|
446
|
+
[82747f2922](https://bitbucket.org/atlassian/atlassian-frontend/commits/82747f2922):
|
|
338
447
|
|
|
339
|
-
-
|
|
340
|
-
|
|
341
|
-
|
|
448
|
+
- Updated dependencies
|
|
449
|
+
[4a223473c5](https://bitbucket.org/atlassian/atlassian-frontend/commits/4a223473c5):
|
|
450
|
+
- @atlaskit/theme@9.5.0
|
|
451
|
+
- @atlaskit/button@13.3.5
|
|
342
452
|
|
|
343
453
|
## 3.1.8
|
|
344
454
|
|
|
345
455
|
### Patch Changes
|
|
346
456
|
|
|
347
|
-
-
|
|
457
|
+
- [patch][24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
|
|
348
458
|
|
|
349
|
-
|
|
459
|
+
Updates react-popper dependency to a safe version.
|
|
350
460
|
|
|
351
461
|
## 3.1.7
|
|
352
462
|
|
|
353
463
|
### Patch Changes
|
|
354
464
|
|
|
355
|
-
-
|
|
465
|
+
- [patch][542080be8a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/542080be8a):
|
|
356
466
|
|
|
357
|
-
|
|
467
|
+
Bumped react-popper and resolved infinite looping refs issue, and fixed close-on-outside-click
|
|
468
|
+
for @atlaskit/popup
|
|
358
469
|
|
|
359
470
|
## 3.1.6
|
|
360
471
|
|
|
361
472
|
### Patch Changes
|
|
362
473
|
|
|
363
|
-
-
|
|
474
|
+
- [patch][35d2229b2a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/35d2229b2a):
|
|
364
475
|
|
|
365
|
-
|
|
476
|
+
Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd.
|
|
366
477
|
|
|
367
478
|
## 3.1.5
|
|
368
479
|
|
|
369
480
|
### Patch Changes
|
|
370
481
|
|
|
371
|
-
-
|
|
482
|
+
- [patch][a2d0043716](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a2d0043716):
|
|
372
483
|
|
|
373
|
-
|
|
484
|
+
Updated version of analytics-next to fix potential incompatibilities with TS 3.6
|
|
374
485
|
|
|
375
486
|
## 3.1.4
|
|
376
487
|
|
|
377
488
|
### Patch Changes
|
|
378
489
|
|
|
379
|
-
-
|
|
490
|
+
- [patch][097b696613](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/097b696613):
|
|
380
491
|
|
|
381
|
-
|
|
492
|
+
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving
|
|
493
|
+
non-relative imports as relative imports
|
|
382
494
|
|
|
383
495
|
## 3.1.3
|
|
384
496
|
|
|
385
497
|
### Patch Changes
|
|
386
498
|
|
|
387
|
-
-
|
|
499
|
+
- [patch][ecca4d1dbb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ecca4d1dbb):
|
|
388
500
|
|
|
389
|
-
|
|
501
|
+
Upgraded Typescript to 3.3.x
|
|
390
502
|
|
|
391
503
|
## 3.1.2
|
|
392
504
|
|
|
393
505
|
### Patch Changes
|
|
394
506
|
|
|
395
|
-
-
|
|
507
|
+
- [patch][abee1a5f4f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/abee1a5f4f):
|
|
396
508
|
|
|
397
|
-
|
|
509
|
+
Bumping internal dependency (memoize-one) to latest version (5.1.0). memoize-one@5.1.0 has full
|
|
510
|
+
typescript support so it is recommended that typescript consumers use it also.
|
|
398
511
|
|
|
399
512
|
## 3.1.1
|
|
400
513
|
|
|
401
514
|
### Patch Changes
|
|
402
515
|
|
|
403
|
-
-
|
|
516
|
+
- [patch][de35ce8c67](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/de35ce8c67):
|
|
404
517
|
|
|
405
|
-
|
|
518
|
+
Updates component maintainers
|
|
406
519
|
|
|
407
520
|
## 3.1.0
|
|
408
521
|
|
|
409
522
|
### Minor Changes
|
|
410
523
|
|
|
411
|
-
-
|
|
524
|
+
- [minor][0a3116e217](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0a3116e217):
|
|
412
525
|
|
|
413
|
-
|
|
526
|
+
Add ability to overwrite and adjust modifiers in popper
|
|
414
527
|
|
|
415
528
|
## 3.0.1
|
|
416
529
|
|
|
417
530
|
### Patch Changes
|
|
418
531
|
|
|
419
|
-
-
|
|
532
|
+
- [patch][f34776be97](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f34776be97):
|
|
420
533
|
|
|
421
|
-
|
|
534
|
+
Type definition files are now referenced in package.json
|
|
422
535
|
|
|
423
536
|
## 3.0.0
|
|
424
537
|
|
|
425
538
|
### Major Changes
|
|
426
539
|
|
|
427
|
-
-
|
|
540
|
+
- [major][ebfeb03eb7](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ebfeb03eb7):
|
|
428
541
|
|
|
429
|
-
|
|
542
|
+
popper has been converted to Typescript. Typescript consumers will now get static type safety.
|
|
543
|
+
Flow types are no longer provided. No API or behavioral changes.
|
|
430
544
|
|
|
431
545
|
## 2.0.1
|
|
432
546
|
|
|
433
547
|
### Patch Changes
|
|
434
548
|
|
|
435
|
-
-
|
|
549
|
+
- [patch][4615439434](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4615439434):
|
|
436
550
|
|
|
437
|
-
|
|
551
|
+
index.ts will now be ignored when publishing to npm
|
|
438
552
|
|
|
439
553
|
## 2.0.0
|
|
440
554
|
|
|
441
|
-
-
|
|
555
|
+
- [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
|
|
442
556
|
|
|
443
|
-
|
|
557
|
+
- Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
|
|
558
|
+
this package, please ensure you use at least this version of react and react-dom.
|
|
444
559
|
|
|
445
560
|
## 1.0.0
|
|
446
561
|
|
|
447
|
-
-
|
|
562
|
+
- [major][8b5f052003](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8b5f052003):
|
|
448
563
|
|
|
449
|
-
|
|
564
|
+
- This major release indicates that this package is no longer under dev preview but is ready
|
|
565
|
+
for use
|
|
450
566
|
|
|
451
567
|
## 0.4.3
|
|
452
568
|
|
|
453
|
-
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
569
|
+
- Updated dependencies
|
|
570
|
+
[9c0b4744be](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9c0b4744be):
|
|
571
|
+
- @atlaskit/docs@7.0.3
|
|
572
|
+
- @atlaskit/button@12.0.3
|
|
573
|
+
- @atlaskit/theme@8.1.7
|
|
457
574
|
|
|
458
575
|
## 0.4.2
|
|
459
576
|
|
|
460
|
-
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
577
|
+
- Updated dependencies
|
|
578
|
+
[1e826b2966](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e826b2966):
|
|
579
|
+
- @atlaskit/docs@7.0.2
|
|
580
|
+
- @atlaskit/theme@8.1.6
|
|
581
|
+
- @atlaskit/button@12.0.0
|
|
464
582
|
|
|
465
583
|
## 0.4.1
|
|
466
584
|
|
|
467
|
-
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
585
|
+
- Updated dependencies
|
|
586
|
+
[9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
|
|
587
|
+
- @atlaskit/docs@7.0.1
|
|
588
|
+
- @atlaskit/theme@8.0.1
|
|
589
|
+
- @atlaskit/button@11.0.0
|
|
471
590
|
|
|
472
591
|
## 0.4.0
|
|
473
592
|
|
|
474
|
-
-
|
|
593
|
+
- [minor][76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
|
|
475
594
|
|
|
476
|
-
|
|
595
|
+
- Drop ES5 from all the flow modules
|
|
477
596
|
|
|
478
|
-
|
|
597
|
+
### Dropping CJS support in all @atlaskit packages
|
|
479
598
|
|
|
480
|
-
|
|
481
|
-
|
|
599
|
+
As a breaking change, all @atlaskit packages will be dropping cjs distributions and will only
|
|
600
|
+
distribute esm. This means all distributed code will be transpiled, but will still contain
|
|
601
|
+
`import` and `export` declarations.
|
|
482
602
|
|
|
483
|
-
|
|
603
|
+
The major reason for doing this is to allow us to support multiple entry points in packages,
|
|
604
|
+
e.g:
|
|
484
605
|
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
606
|
+
```js
|
|
607
|
+
import colors from `@atlaskit/theme/colors`;
|
|
608
|
+
```
|
|
488
609
|
|
|
489
|
-
|
|
610
|
+
Previously this was sort of possible for consumers by doing something like:
|
|
490
611
|
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
612
|
+
```js
|
|
613
|
+
import colors from `@atlaskit/theme/dist/esm/colors`;
|
|
614
|
+
```
|
|
494
615
|
|
|
495
|
-
|
|
616
|
+
This has a couple of issues. 1, it treats the file system as API making internal refactors
|
|
617
|
+
harder, we have to worry about how consumers might be using things that aren't _actually_
|
|
618
|
+
supposed to be used. 2. We are unable to do this _internally_ in @atlaskit packages. This leads
|
|
619
|
+
to lots of packages bundling all of theme, just to use a single color, especially in situations
|
|
620
|
+
where tree shaking fails.
|
|
496
621
|
|
|
497
|
-
|
|
622
|
+
To support being able to use multiple entrypoints internally, we unfortunately cannot have
|
|
623
|
+
multiple distributions as they would need to have very different imports from of their own
|
|
624
|
+
internal dependencies.
|
|
498
625
|
|
|
499
|
-
|
|
626
|
+
ES Modules are widely supported by all modern bundlers and can be worked around in node
|
|
627
|
+
environments.
|
|
500
628
|
|
|
501
|
-
|
|
629
|
+
We may choose to revisit this solution in the future if we find any unintended condequences, but
|
|
630
|
+
we see this as a pretty sane path forward which should lead to some major bundle size decreases,
|
|
631
|
+
saner API's and simpler package architecture.
|
|
502
632
|
|
|
503
|
-
|
|
633
|
+
Please reach out to #fabric-build (if in Atlassian) or create an issue in
|
|
634
|
+
[Design System Support](https://ecosystem.atlassian.net/secure/CreateIssue.jspa?pid=24670) (for
|
|
635
|
+
external) if you have any questions or queries about this.
|
|
504
636
|
|
|
505
637
|
## 0.3.7
|
|
506
638
|
|
|
507
|
-
-
|
|
639
|
+
- [patch][efc35d1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/efc35d1):
|
|
508
640
|
|
|
509
|
-
|
|
641
|
+
- Internal changes: - Adding react-dom and build utils as dev dependencies - Adding unit test
|
|
642
|
+
for server side rendering use-case - Adding unit test to cover Popper component
|
|
510
643
|
|
|
511
644
|
## 0.3.6
|
|
512
645
|
|
|
513
|
-
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
646
|
+
- Updated dependencies [58b84fa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/58b84fa):
|
|
647
|
+
- @atlaskit/button@10.1.1
|
|
648
|
+
- @atlaskit/theme@7.0.1
|
|
649
|
+
- @atlaskit/docs@6.0.0
|
|
517
650
|
|
|
518
651
|
## 0.3.5
|
|
519
652
|
|
|
520
|
-
-
|
|
653
|
+
- [patch][82fc5f5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/82fc5f5):
|
|
521
654
|
|
|
522
|
-
|
|
655
|
+
- Pinning react-popper to 1.0.2 to avoid recursive bug
|
|
523
656
|
|
|
524
657
|
## 0.3.4
|
|
525
658
|
|
|
526
|
-
-
|
|
659
|
+
- [patch][0a297ba](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0a297ba):
|
|
527
660
|
|
|
528
|
-
|
|
661
|
+
- Packages should not be shown in the navigation, search and overview
|
|
529
662
|
|
|
530
663
|
## 0.3.3
|
|
531
664
|
|
|
532
|
-
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
665
|
+
- Updated dependencies [d13242d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d13242d):
|
|
666
|
+
- @atlaskit/docs@5.2.3
|
|
667
|
+
- @atlaskit/button@10.0.4
|
|
668
|
+
- @atlaskit/theme@7.0.0
|
|
536
669
|
|
|
537
670
|
## 0.3.2
|
|
538
671
|
|
|
539
|
-
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
672
|
+
- Updated dependencies [6998f11](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6998f11):
|
|
673
|
+
- @atlaskit/docs@5.2.1
|
|
674
|
+
- @atlaskit/theme@6.2.1
|
|
675
|
+
- @atlaskit/button@10.0.0
|
|
543
676
|
|
|
544
677
|
## 0.3.1
|
|
545
678
|
|
|
546
|
-
-
|
|
679
|
+
- [patch] Fix referenceElement overriding ref from Reference component
|
|
680
|
+
[874d5bd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/874d5bd)
|
|
547
681
|
|
|
548
682
|
## 0.3.0
|
|
549
683
|
|
|
550
|
-
-
|
|
684
|
+
- [minor] Adds replacementElement prop to enable onboarding use-case. See prop documentation
|
|
685
|
+
[here](https://github.com/FezVrasta/react-popper#usage-without-a-reference-htmlelement)
|
|
686
|
+
[1a752e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1a752e6)
|
|
551
687
|
|
|
552
688
|
## 0.2.5
|
|
553
689
|
|
|
554
|
-
-
|
|
690
|
+
- [patch] Adds missing implicit @babel/runtime dependency
|
|
691
|
+
[b71751b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b71751b)
|
|
555
692
|
|
|
556
693
|
## 0.2.4
|
|
557
694
|
|
|
558
|
-
-
|
|
695
|
+
- [patch] Fixed popper placement offset to not fire deprecation warning.
|
|
696
|
+
[4fcff1c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4fcff1c)
|
|
559
697
|
|
|
560
698
|
## 0.2.3
|
|
561
699
|
|
|
562
|
-
-
|
|
700
|
+
- [patch] Adds sideEffects: false to allow proper tree shaking
|
|
701
|
+
[b5d6d04](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b5d6d04)
|
|
563
702
|
|
|
564
703
|
## 0.2.2
|
|
565
704
|
|
|
566
|
-
-
|
|
705
|
+
- [patch] Using the latest popper to avoid recursive setState calls.
|
|
706
|
+
[9dceca9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9dceca9)
|
|
567
707
|
|
|
568
708
|
## 0.2.1
|
|
569
709
|
|
|
570
|
-
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
710
|
+
- [patch] Updated dependencies
|
|
711
|
+
[df22ad8](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/df22ad8)
|
|
712
|
+
- @atlaskit/theme@6.0.0
|
|
713
|
+
- @atlaskit/button@9.0.6
|
|
714
|
+
- @atlaskit/docs@5.0.6
|
|
574
715
|
|
|
575
716
|
## 0.2.0
|
|
576
717
|
|
|
577
|
-
-
|
|
578
|
-
|
|
579
|
-
-
|
|
580
|
-
|
|
581
|
-
-
|
|
718
|
+
- [minor] Bumped react-popper version to get bug fixes, also added offset prop
|
|
719
|
+
[a08b0c2](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a08b0c2)
|
|
720
|
+
- [none] Updated dependencies
|
|
721
|
+
[1d9e75a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1d9e75a)
|
|
722
|
+
- [none] Updated dependencies
|
|
723
|
+
[a3109d3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a3109d3)
|
|
724
|
+
- [none] Updated dependencies
|
|
725
|
+
[87d45d3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/87d45d3)
|
|
726
|
+
- [none] Updated dependencies
|
|
727
|
+
[a08b0c2](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a08b0c2)
|
|
582
728
|
|
|
583
729
|
## 0.1.2
|
|
584
730
|
|
|
585
|
-
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
-
|
|
731
|
+
- [patch] Replace @atlaskit/layer in date time picker with @atlaskit/popper, changed configuration
|
|
732
|
+
of flipbehavior modifier to use viewport as the element boundary rather than the window.
|
|
733
|
+
[4286672](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4286672)
|
|
734
|
+
- [patch] Updated datetime-picker to use @atlaskit/popper internally instead of @atlaskit/layer.
|
|
735
|
+
Minor fix to @atlaskit/popper, boundariesElement for flipbehavior is now viewport and not
|
|
736
|
+
window. [f2159f4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f2159f4)
|
|
737
|
+
- [none] Updated dependencies
|
|
738
|
+
[4286672](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4286672)
|
|
739
|
+
- [none] Updated dependencies
|
|
740
|
+
[f2159f4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f2159f4)
|
|
589
741
|
|
|
590
742
|
## 0.1.1
|
|
591
743
|
|
|
592
|
-
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
744
|
+
- [patch] Updated dependencies
|
|
745
|
+
[acd86a1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/acd86a1)
|
|
746
|
+
- @atlaskit/button@9.0.4
|
|
747
|
+
- @atlaskit/theme@5.1.2
|
|
748
|
+
- @atlaskit/docs@5.0.2
|
|
596
749
|
|
|
597
750
|
## 0.1.0
|
|
598
751
|
|
|
599
|
-
-
|
|
752
|
+
- [minor] Dev release for popper
|
|
753
|
+
[e987222](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e987222)
|
package/Popper/package.json
CHANGED
|
@@ -12,8 +12,8 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
12
12
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
13
13
|
var _inProductTesting = require("@atlaskit/in-product-testing");
|
|
14
14
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
15
|
-
function _isNativeReflectConstruct() {
|
|
16
|
-
var BasePopperPageObject = /*#__PURE__*/function (_InProductTestPageObj) {
|
|
15
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
16
|
+
var BasePopperPageObject = exports.BasePopperPageObject = /*#__PURE__*/function (_InProductTestPageObj) {
|
|
17
17
|
(0, _inherits2.default)(BasePopperPageObject, _InProductTestPageObj);
|
|
18
18
|
var _super = _createSuper(BasePopperPageObject);
|
|
19
19
|
function BasePopperPageObject() {
|
|
@@ -27,5 +27,4 @@ var BasePopperPageObject = /*#__PURE__*/function (_InProductTestPageObj) {
|
|
|
27
27
|
}
|
|
28
28
|
}]);
|
|
29
29
|
return BasePopperPageObject;
|
|
30
|
-
}(_inProductTesting.InProductTestPageObject);
|
|
31
|
-
exports.BasePopperPageObject = BasePopperPageObject;
|
|
30
|
+
}(_inProductTesting.InProductTestPageObject);
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.popperRendersTestCase = void 0;
|
|
7
7
|
var _inProductTesting = require("@atlaskit/in-product-testing");
|
|
8
8
|
var _basePopper = require("../page-objects/base-popper");
|
|
9
|
-
var popperRendersTestCase = function popperRendersTestCase(elementSelector) {
|
|
9
|
+
var popperRendersTestCase = exports.popperRendersTestCase = function popperRendersTestCase(elementSelector) {
|
|
10
10
|
return new _inProductTesting.InProductTestCase({
|
|
11
11
|
title: 'Popped container renders with position fixed',
|
|
12
12
|
id: 'popped-container-fixed-position',
|
|
@@ -15,5 +15,4 @@ var popperRendersTestCase = function popperRendersTestCase(elementSelector) {
|
|
|
15
15
|
popperElement.assertPopperStyle(elementSelector);
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
};
|
|
19
|
-
exports.popperRendersTestCase = popperRendersTestCase;
|
|
18
|
+
};
|
package/dist/cjs/popper.js
CHANGED
|
@@ -17,8 +17,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
17
17
|
var _react = _interopRequireWildcard(require("react"));
|
|
18
18
|
var _reactPopper = require("react-popper");
|
|
19
19
|
var _core = require("@popperjs/core");
|
|
20
|
-
function _getRequireWildcardCache(
|
|
21
|
-
function _interopRequireWildcard(
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
|
+
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 && Object.prototype.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; }
|
|
22
22
|
// Export types from PopperJS / React Popper
|
|
23
23
|
|
|
24
24
|
var constantModifiers = [{
|
|
@@ -73,7 +73,10 @@ function Popper(_ref) {
|
|
|
73
73
|
}
|
|
74
74
|
return [].concat((0, _toConsumableArray2.default)(internalModifiers), (0, _toConsumableArray2.default)(modifiers));
|
|
75
75
|
}, [internalModifiers, modifiers]);
|
|
76
|
-
return /*#__PURE__*/_react.default.createElement(_reactPopper.Popper
|
|
76
|
+
return /*#__PURE__*/_react.default.createElement(_reactPopper.Popper
|
|
77
|
+
// @ts-expect-error - No overload matches this call
|
|
78
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
79
|
+
, {
|
|
77
80
|
modifiers: mergedModifiers,
|
|
78
81
|
placement: placement,
|
|
79
82
|
strategy: strategy,
|
package/dist/es2019/popper.js
CHANGED
|
@@ -49,7 +49,10 @@ export function Popper({
|
|
|
49
49
|
}
|
|
50
50
|
return [...internalModifiers, ...modifiers];
|
|
51
51
|
}, [internalModifiers, modifiers]);
|
|
52
|
-
return /*#__PURE__*/React.createElement(ReactPopper
|
|
52
|
+
return /*#__PURE__*/React.createElement(ReactPopper
|
|
53
|
+
// @ts-expect-error - No overload matches this call
|
|
54
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
55
|
+
, {
|
|
53
56
|
modifiers: mergedModifiers,
|
|
54
57
|
placement: placement,
|
|
55
58
|
strategy: strategy,
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import { InProductTestPageObject } from '@atlaskit/in-product-testing';
|
|
9
9
|
export var BasePopperPageObject = /*#__PURE__*/function (_InProductTestPageObj) {
|
|
10
10
|
_inherits(BasePopperPageObject, _InProductTestPageObj);
|
package/dist/esm/popper.js
CHANGED
|
@@ -57,7 +57,10 @@ export function Popper(_ref) {
|
|
|
57
57
|
}
|
|
58
58
|
return [].concat(_toConsumableArray(internalModifiers), _toConsumableArray(modifiers));
|
|
59
59
|
}, [internalModifiers, modifiers]);
|
|
60
|
-
return /*#__PURE__*/React.createElement(ReactPopper
|
|
60
|
+
return /*#__PURE__*/React.createElement(ReactPopper
|
|
61
|
+
// @ts-expect-error - No overload matches this call
|
|
62
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
63
|
+
, {
|
|
61
64
|
modifiers: mergedModifiers,
|
|
62
65
|
placement: placement,
|
|
63
66
|
strategy: strategy,
|
package/in-product/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/popper",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.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/"
|
|
@@ -23,21 +23,22 @@
|
|
|
23
23
|
"website": {
|
|
24
24
|
"name": "Popper",
|
|
25
25
|
"category": "Libraries"
|
|
26
|
-
}
|
|
26
|
+
},
|
|
27
|
+
"runReact18": true
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
30
|
"@atlaskit/in-product-testing": "^0.2.0",
|
|
30
31
|
"@babel/runtime": "^7.0.0",
|
|
31
|
-
"@popperjs/core": "^2.
|
|
32
|
-
"react-popper": "^2.
|
|
32
|
+
"@popperjs/core": "^2.11.8",
|
|
33
|
+
"react-popper": "^2.3.0"
|
|
33
34
|
},
|
|
34
35
|
"peerDependencies": {
|
|
35
|
-
"react": "^16.8.0"
|
|
36
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@af/accessibility-testing": "*",
|
|
39
40
|
"@af/visual-regression": "*",
|
|
40
|
-
"@atlaskit/ds-lib": "^2.
|
|
41
|
+
"@atlaskit/ds-lib": "^2.3.0",
|
|
41
42
|
"@atlaskit/ssr": "*",
|
|
42
43
|
"@atlaskit/visual-regression": "*",
|
|
43
44
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"jscodeshift": "^0.13.0",
|
|
51
52
|
"react-dom": "^16.8.0",
|
|
52
53
|
"react-lorem-component": "^0.13.0",
|
|
53
|
-
"typescript": "~4.
|
|
54
|
+
"typescript": "~5.4.2",
|
|
54
55
|
"wait-for-expect": "^1.2.0"
|
|
55
56
|
},
|
|
56
57
|
"keywords": [
|
|
@@ -92,4 +93,4 @@
|
|
|
92
93
|
},
|
|
93
94
|
"homepage": "https://atlassian.design/components/popper",
|
|
94
95
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
95
|
-
}
|
|
96
|
+
}
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/popper"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import { Manager } from 'react-popper';
|
|
8
|
-
import { ManagerProps } from 'react-popper';
|
|
9
|
-
import { Modifier } from 'react-popper';
|
|
10
|
-
import { Placement } from '@popperjs/core';
|
|
11
|
-
import { placements } from '@popperjs/core';
|
|
12
|
-
import { PopperArrowProps } from 'react-popper';
|
|
13
|
-
import { PopperChildrenProps } from 'react-popper';
|
|
14
|
-
import { PopperProps } from 'react-popper';
|
|
15
|
-
import { default as React_2 } from 'react';
|
|
16
|
-
import { Reference } from 'react-popper';
|
|
17
|
-
import { ReferenceProps } from 'react-popper';
|
|
18
|
-
import { StrictModifier } from 'react-popper';
|
|
19
|
-
import { VirtualElement } from '@popperjs/core';
|
|
20
|
-
|
|
21
|
-
// @public (undocumented)
|
|
22
|
-
interface CustomPopperProps<Modifiers> {
|
|
23
|
-
children?: (childrenProps: PopperChildrenProps) => React_2.ReactNode;
|
|
24
|
-
modifiers?: PopperProps<Modifiers>['modifiers'];
|
|
25
|
-
offset?: Offset;
|
|
26
|
-
placement?: Placement;
|
|
27
|
-
referenceElement?: HTMLElement | VirtualElement;
|
|
28
|
-
strategy?: PopperProps<Modifiers>['strategy'];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { Manager }
|
|
32
|
-
|
|
33
|
-
export { ManagerProps }
|
|
34
|
-
|
|
35
|
-
export { Modifier }
|
|
36
|
-
|
|
37
|
-
// @public (undocumented)
|
|
38
|
-
type Offset = [null | number | undefined, null | number | undefined];
|
|
39
|
-
|
|
40
|
-
export { Placement }
|
|
41
|
-
|
|
42
|
-
export { placements }
|
|
43
|
-
|
|
44
|
-
// @public (undocumented)
|
|
45
|
-
export function Popper<CustomModifiers>({ children, offset, placement, referenceElement, modifiers, strategy, }: CustomPopperProps<CustomModifiers>): JSX.Element;
|
|
46
|
-
|
|
47
|
-
export { PopperArrowProps }
|
|
48
|
-
|
|
49
|
-
export { PopperChildrenProps }
|
|
50
|
-
|
|
51
|
-
export { PopperProps }
|
|
52
|
-
|
|
53
|
-
export { Reference }
|
|
54
|
-
|
|
55
|
-
export { ReferenceProps }
|
|
56
|
-
|
|
57
|
-
export { StrictModifier }
|
|
58
|
-
|
|
59
|
-
// (No @packageDocumentation comment for this package)
|
|
60
|
-
|
|
61
|
-
```
|