@atlaskit/popper 6.3.1 → 6.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/popper
2
2
 
3
+ ## 6.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
8
+ [`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
9
+ Update `React` from v16 to v18
10
+
11
+ ## 6.3.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [#103999](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103999)
16
+ [`9f62ecec4d422`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9f62ecec4d422) -
17
+ Update dependencies.
18
+
3
19
  ## 6.3.1
4
20
 
5
21
  ### Patch Changes
@@ -70,6 +70,8 @@ function Popper(_ref) {
70
70
  var maxSizeModifiers = shouldFitViewport ? (0, _maxSize.getMaxSizeModifiers)({
71
71
  viewportPadding: viewportPadding
72
72
  }) : [];
73
+
74
+ // @ts-ignore Type errors from incompatible @popperjs/core versions between Jira and AFM Platform... we are using ts-ignore here because ts-expect-error will cause an "Unused '@ts-expect-error' directive." error
73
75
  return [].concat(constantModifiers, [preventOverflowModifier, offsetModifier], (0, _toConsumableArray2.default)(maxSizeModifiers));
74
76
  }, [offsetX, offsetY, shouldFitViewport]);
75
77
 
@@ -45,6 +45,8 @@ export function Popper({
45
45
  const maxSizeModifiers = shouldFitViewport ? getMaxSizeModifiers({
46
46
  viewportPadding
47
47
  }) : [];
48
+
49
+ // @ts-ignore Type errors from incompatible @popperjs/core versions between Jira and AFM Platform... we are using ts-ignore here because ts-expect-error will cause an "Unused '@ts-expect-error' directive." error
48
50
  return [...constantModifiers, preventOverflowModifier, offsetModifier, ...maxSizeModifiers];
49
51
  }, [offsetX, offsetY, shouldFitViewport]);
50
52
 
@@ -54,6 +54,8 @@ export function Popper(_ref) {
54
54
  var maxSizeModifiers = shouldFitViewport ? getMaxSizeModifiers({
55
55
  viewportPadding: viewportPadding
56
56
  }) : [];
57
+
58
+ // @ts-ignore Type errors from incompatible @popperjs/core versions between Jira and AFM Platform... we are using ts-ignore here because ts-expect-error will cause an "Unused '@ts-expect-error' directive." error
57
59
  return [].concat(constantModifiers, [preventOverflowModifier, offsetModifier], _toConsumableArray(maxSizeModifiers));
58
60
  }, [offsetX, offsetY, shouldFitViewport]);
59
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/popper",
3
- "version": "6.3.1",
3
+ "version": "6.4.0",
4
4
  "description": "A wrapper for React Popper for situations which require a bespoke popup where other ADS components are deemed unsuitable",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,20 +36,19 @@
36
36
  "@af/accessibility-testing": "*",
37
37
  "@af/integration-testing": "*",
38
38
  "@af/visual-regression": "*",
39
- "@atlaskit/ds-lib": "^3.2.0",
39
+ "@atlaskit/ds-lib": "^3.5.0",
40
40
  "@atlaskit/ssr": "*",
41
41
  "@atlaskit/visual-regression": "*",
42
42
  "@emotion/react": "^11.7.1",
43
43
  "@emotion/styled": "^11.0.0",
44
- "@testing-library/react": "^12.1.5",
44
+ "@testing-library/react": "^13.4.0",
45
45
  "@testing-library/user-event": "^14.4.3",
46
46
  "@types/jscodeshift": "^0.11.0",
47
47
  "ast-types": "^0.13.3",
48
48
  "jscodeshift": "^0.13.0",
49
- "react-dom": "^16.8.0",
49
+ "react-dom": "^18.2.0",
50
50
  "react-lorem-component": "^0.13.0",
51
- "typescript": "~5.4.2",
52
- "wait-for-expect": "^1.2.0"
51
+ "typescript": "~5.4.2"
53
52
  },
54
53
  "keywords": [
55
54
  "atlaskit",
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
-
3
- import { Manager, Popper, Reference } from '../src';
4
-
5
- export default () => (
6
- <Manager>
7
- <Reference>
8
- {({ ref }) => (
9
- <button ref={ref} type="button">
10
- Reference element
11
- </button>
12
- )}
13
- </Reference>
14
- <Popper placement="right">
15
- {({ ref, style }) => (
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
17
- <div ref={ref} style={style}>
18
- ↔ This text is a popper placed to the right
19
- </div>
20
- )}
21
- </Popper>
22
- </Manager>
23
- );