@atlaskit/popup 1.31.3 → 2.0.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,35 @@
1
1
  # @atlaskit/popup
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
8
+ [`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
9
+ This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
10
+ status of only supporting React 18 going forward. No explicit breaking change to React support has
11
+ been made in this release, but this is to signify going forward, breaking changes for React 16 or
12
+ React 17 may come via non-major semver releases.
13
+
14
+ Please refer this community post for more details:
15
+ https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
21
+ ## 1.32.0
22
+
23
+ ### Minor Changes
24
+
25
+ - [#116138](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116138)
26
+ [`b50c5d5d65ae2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b50c5d5d65ae2) -
27
+ Bump to the latest version of @compiled/react
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies
32
+
3
33
  ## 1.31.3
4
34
 
5
35
  ### Patch Changes
@@ -66,8 +66,9 @@ var DefaultPopupComponent = /*#__PURE__*/(0, _react.forwardRef)(function (props,
66
66
  xcss = props.xcss,
67
67
  htmlAttributes = (0, _objectWithoutProperties2.default)(props, _excluded);
68
68
  return (0, _react2.jsx)("div", (0, _extends2.default)({
69
- // We suppress this for now as we can't use the Compiled pragma until this module has migrated to Compiled.
70
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @compiled/jsx-pragma
69
+ // Because we're using Emotion local jsx namespace we have to coerce xcss prop to a string.
70
+ // When we're fully on Compiled its local jsx namespace accepts the output of xcss prop.
71
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- This rule still fails because of the TS assertion
71
72
  className: xcss,
72
73
  css: [rootStyles, appearance === 'UNSAFE_modal-below-sm' && modalStyles, !shouldRenderToParent && scrollableStyles, shouldFitContainer && fullWidthStyles]
73
74
  }, htmlAttributes, {
@@ -58,8 +58,9 @@ const DefaultPopupComponent = /*#__PURE__*/forwardRef((props, ref) => {
58
58
  ...htmlAttributes
59
59
  } = props;
60
60
  return jsx("div", _extends({
61
- // We suppress this for now as we can't use the Compiled pragma until this module has migrated to Compiled.
62
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @compiled/jsx-pragma
61
+ // Because we're using Emotion local jsx namespace we have to coerce xcss prop to a string.
62
+ // When we're fully on Compiled its local jsx namespace accepts the output of xcss prop.
63
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- This rule still fails because of the TS assertion
63
64
  className: xcss,
64
65
  css: [rootStyles, appearance === 'UNSAFE_modal-below-sm' && modalStyles, !shouldRenderToParent && scrollableStyles, shouldFitContainer && fullWidthStyles]
65
66
  }, htmlAttributes, {
@@ -59,8 +59,9 @@ var DefaultPopupComponent = /*#__PURE__*/forwardRef(function (props, ref) {
59
59
  xcss = props.xcss,
60
60
  htmlAttributes = _objectWithoutProperties(props, _excluded);
61
61
  return jsx("div", _extends({
62
- // We suppress this for now as we can't use the Compiled pragma until this module has migrated to Compiled.
63
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @compiled/jsx-pragma
62
+ // Because we're using Emotion local jsx namespace we have to coerce xcss prop to a string.
63
+ // When we're fully on Compiled its local jsx namespace accepts the output of xcss prop.
64
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- This rule still fails because of the TS assertion
64
65
  className: xcss,
65
66
  css: [rootStyles, appearance === 'UNSAFE_modal-below-sm' && modalStyles, !shouldRenderToParent && scrollableStyles, shouldFitContainer && fullWidthStyles]
66
67
  }, htmlAttributes, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/popup",
3
- "version": "1.31.3",
3
+ "version": "2.0.0",
4
4
  "description": "A popup displays brief content in an overlay.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,16 +38,16 @@
38
38
  }
39
39
  },
40
40
  "dependencies": {
41
- "@atlaskit/css": "^0.8.0",
42
- "@atlaskit/ds-lib": "^3.5.0",
43
- "@atlaskit/focus-ring": "^2.1.0",
44
- "@atlaskit/layering": "^1.1.0",
41
+ "@atlaskit/css": "^0.10.0",
42
+ "@atlaskit/ds-lib": "^4.0.0",
43
+ "@atlaskit/focus-ring": "^3.0.0",
44
+ "@atlaskit/layering": "^2.0.0",
45
45
  "@atlaskit/platform-feature-flags": "^1.1.0",
46
- "@atlaskit/popper": "^6.4.0",
47
- "@atlaskit/portal": "^4.11.0",
48
- "@atlaskit/primitives": "^13.5.0",
49
- "@atlaskit/theme": "^16.0.0",
50
- "@atlaskit/tokens": "^3.3.0",
46
+ "@atlaskit/popper": "^7.0.0",
47
+ "@atlaskit/portal": "^5.0.0",
48
+ "@atlaskit/primitives": "^14.0.0",
49
+ "@atlaskit/theme": "^17.0.0",
50
+ "@atlaskit/tokens": "^4.0.0",
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "@emotion/react": "^11.7.1",
53
53
  "bind-event-listener": "^3.0.0",
@@ -56,21 +56,21 @@
56
56
  "tiny-invariant": "^1.2.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
60
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
59
+ "react": "^18.2.0",
60
+ "react-dom": "^18.2.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@af/accessibility-testing": "*",
64
64
  "@af/integration-testing": "*",
65
65
  "@af/visual-regression": "*",
66
- "@atlaskit/button": "^20.5.0",
67
- "@atlaskit/icon": "^23.9.0",
66
+ "@atlaskit/button": "^21.0.0",
67
+ "@atlaskit/icon": "^24.0.0",
68
68
  "@atlaskit/ssr": "*",
69
- "@atlaskit/textfield": "^6.8.0",
70
- "@atlaskit/toggle": "^14.1.0",
69
+ "@atlaskit/textfield": "^8.0.0",
70
+ "@atlaskit/toggle": "^15.0.0",
71
71
  "@atlaskit/visual-regression": "*",
72
72
  "@atlassian/feature-flags-test-utils": "*",
73
- "@compiled/react": "^0.18.1",
73
+ "@compiled/react": "^0.18.2",
74
74
  "@testing-library/dom": "^10.1.0",
75
75
  "@testing-library/react": "^13.4.0",
76
76
  "@testing-library/react-hooks": "^8.0.1",