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