@atlaskit/popper 5.5.4 → 5.5.5

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 CHANGED
@@ -1,34 +1,40 @@
1
1
  # @atlaskit/popper
2
2
 
3
+ ## 5.5.5
4
+
5
+ ### Patch Changes
6
+
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`
8
+
3
9
  ## 5.5.4
4
10
 
5
11
  ### Patch Changes
6
12
 
7
- - [`9af31f3c1ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9af31f3c1ae) - Delete version.json
13
+ - [#38731](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38731) [`9af31f3c1ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9af31f3c1ae) - Delete version.json
8
14
 
9
15
  ## 5.5.3
10
16
 
11
17
  ### Patch Changes
12
18
 
13
- - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
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
14
20
 
15
21
  ## 5.5.2
16
22
 
17
23
  ### Patch Changes
18
24
 
19
- - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
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`
20
26
 
21
27
  ## 5.5.1
22
28
 
23
29
  ### Patch Changes
24
30
 
25
- - [`f859e9ccda4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f859e9ccda4) - Migrates unit tests from enzyme to RTL.
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.
26
32
 
27
33
  ## 5.5.0
28
34
 
29
35
  ### Minor Changes
30
36
 
31
- - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
37
+ - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
32
38
 
33
39
  ### Patch Changes
34
40
 
@@ -38,7 +44,7 @@
38
44
 
39
45
  ### Patch Changes
40
46
 
41
- - [`d84f56e6e50`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d84f56e6e50) - Remove the unused feature flag
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
42
48
 
43
49
  ## 5.4.10
44
50
 
@@ -68,14 +74,14 @@
68
74
 
69
75
  ### Patch Changes
70
76
 
71
- - [`7888ba61c3b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7888ba61c3b) - Add platform feature flag registration and dynamic type generation for platform feature flag client
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
72
78
  - Updated dependencies
73
79
 
74
80
  ## 5.4.5
75
81
 
76
82
  ### Patch Changes
77
83
 
78
- - [`85dc0230439`](https://bitbucket.org/atlassian/atlassian-frontend/commits/85dc0230439) - Add eslint rule to allow for platform feature flag usage
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
79
85
 
80
86
  ## 5.4.4
81
87
 
@@ -93,31 +99,31 @@
93
99
 
94
100
  ### Patch Changes
95
101
 
96
- - [`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.
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.
97
103
 
98
104
  ## 5.4.1
99
105
 
100
106
  ### Patch Changes
101
107
 
102
- - [`211c04b1c96`](https://bitbucket.org/atlassian/atlassian-frontend/commits/211c04b1c96) - Fixes in-product testing typos causing assert errors
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
103
109
 
104
110
  ## 5.4.0
105
111
 
106
112
  ### Minor Changes
107
113
 
108
- - [`cd2800156bd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cd2800156bd) - Updates to in-product testing interface. The change switches popperRendersWithPositionFixedTestCase to popperRendersTestCase.
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.
109
115
 
110
116
  ## 5.3.0
111
117
 
112
118
  ### Minor Changes
113
119
 
114
- - [`6d5881c30a4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6d5881c30a4) - Introducing in-product testing entrypoints to popper.
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.
115
121
 
116
122
  ## 5.2.11
117
123
 
118
124
  ### Patch Changes
119
125
 
120
- - [`dc53dc3201b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dc53dc3201b) - Add 'productPushConsumption' as a new optional field in package.json.
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.
121
127
 
122
128
  _Note_:
123
129
  We want to track the information if the package was moved from the pull into the push model in the product.
@@ -128,85 +134,85 @@
128
134
 
129
135
  ### Patch Changes
130
136
 
131
- - [`9827dcb82b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9827dcb82b8) - No-op change to introduce spacing tokens to design system components.
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.
132
138
 
133
139
  ## 5.2.9
134
140
 
135
141
  ### Patch Changes
136
142
 
137
- - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
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`
138
144
 
139
145
  ## 5.2.8
140
146
 
141
147
  ### Patch Changes
142
148
 
143
- - [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
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`.
144
150
 
145
151
  ## 5.2.7
146
152
 
147
153
  ### Patch Changes
148
154
 
149
- - [`ff5655480e6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff5655480e6) - Internal code change turning on new linting rules.
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.
150
156
 
151
157
  ## 5.2.6
152
158
 
153
159
  ### Patch Changes
154
160
 
155
- - [`45ebe7af434`](https://bitbucket.org/atlassian/atlassian-frontend/commits/45ebe7af434) - Moved to using declarative entrypoints internally. Public API is unchanged.
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.
156
162
 
157
163
  ## 5.2.5
158
164
 
159
165
  ### Patch Changes
160
166
 
161
- - [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
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
162
168
 
163
169
  ## 5.2.4
164
170
 
165
171
  ### Patch Changes
166
172
 
167
- - [`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.
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.
168
174
 
169
175
  ## 5.2.3
170
176
 
171
177
  ### Patch Changes
172
178
 
173
- - [`10d1f4d4a4b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/10d1f4d4a4b) - Export placement options
179
+ - [#19678](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19678) [`10d1f4d4a4b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/10d1f4d4a4b) - Export placement options
174
180
 
175
181
  ## 5.2.2
176
182
 
177
183
  ### Patch Changes
178
184
 
179
- - [`cd34d8ca8ea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cd34d8ca8ea) - Internal wiring up to the tokens techstack, no code changes.
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.
180
186
 
181
187
  ## 5.2.1
182
188
 
183
189
  ### Patch Changes
184
190
 
185
- - [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
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`.
186
192
 
187
193
  ## 5.2.0
188
194
 
189
195
  ### Minor Changes
190
196
 
191
- - [`f6b951a51f2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f6b951a51f2) - Removes usage of styled-components in favour of standardising on emotion
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
192
198
 
193
199
  ## 5.1.0
194
200
 
195
201
  ### Minor Changes
196
202
 
197
- - [`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.
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.
198
204
 
199
205
  ## 5.0.4
200
206
 
201
207
  ### Patch Changes
202
208
 
203
- - [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
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
204
210
 
205
211
  ## 5.0.3
206
212
 
207
213
  ### Patch Changes
208
214
 
209
- - [`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.
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.
210
216
  This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
211
217
  Also add `typescript` to `devDependencies` to denote version that the package was built with.
212
218
 
@@ -214,13 +220,13 @@
214
220
 
215
221
  ### Patch Changes
216
222
 
217
- - [`fc8f6e61f3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fc8f6e61f3) - Fix codemod utilities being exposed through the codemod cli
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
218
224
 
219
225
  ## 5.0.1
220
226
 
221
227
  ### Patch Changes
222
228
 
223
- - [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
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
224
230
 
225
231
  Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
226
232
  to prevent duplicates of tslib being bundled.
@@ -229,7 +235,7 @@
229
235
 
230
236
  ### Major Changes
231
237
 
232
- - [`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.
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.
233
239
 
234
240
  There are a number of major changes for consumers are listed below; ⚙️ indicates the change has codemod support:
235
241
 
@@ -276,26 +282,26 @@
276
282
  `npx @atlaskit/codemod-cli --parser [PARSER] --extensions [FILE_EXTENSIONS] [TARGET_PATH]`
277
283
 
278
284
  Or run `npx @atlaskit/codemod-cli -h` for more details on usage.
279
- For Atlassians, refer to [this doc](https://developer.atlassian.com/cloud/framework/atlassian-frontend/codemods/01-atlassian-codemods/) for more details on the codemod CLI.
285
+ For Atlassians, refer to [this doc](https://hello.atlassian.net/wiki/spaces/AF/pages/2627171992/Codemods) for more details on the codemod CLI.
280
286
 
281
287
  ## 4.0.1
282
288
 
283
289
  ### Patch Changes
284
290
 
285
- - [`db053b24d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db053b24d8) - Update all the theme imports to be tree-shakable
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
286
292
 
287
293
  ## 4.0.0
288
294
 
289
295
  ### Major Changes
290
296
 
291
- - [`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.
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.
292
298
  For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
293
299
 
294
300
  ## 3.1.13
295
301
 
296
302
  ### Patch Changes
297
303
 
298
- - [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
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
299
305
 
300
306
  ## 3.1.12
301
307
 
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/popper.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/popper.d.ts"
12
12
  ]
@@ -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() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
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
+ };
@@ -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(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
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,
@@ -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() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
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);
@@ -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,
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/in-product.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/in-product.d.ts"
12
12
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/popper",
3
- "version": "5.5.4",
3
+ "version": "5.5.5",
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/"
@@ -50,7 +50,7 @@
50
50
  "jscodeshift": "^0.13.0",
51
51
  "react-dom": "^16.8.0",
52
52
  "react-lorem-component": "^0.13.0",
53
- "typescript": "~4.9.5",
53
+ "typescript": "~5.4.2",
54
54
  "wait-for-expect": "^1.2.0"
55
55
  },
56
56
  "keywords": [
@@ -92,4 +92,4 @@
92
92
  },
93
93
  "homepage": "https://atlassian.design/components/popper",
94
94
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
95
- }
95
+ }
@@ -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
- ```