@atlaskit/panel 0.13.0 → 1.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,20 @@
1
1
  # @atlaskit/panel
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`d2e14ba5ae9fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d2e14ba5ae9fc) -
8
+ Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
9
+
10
+ What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
11
+ removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
12
+ to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
13
+
14
+ How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
15
+ `^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
16
+ can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
17
+
3
18
  ## 0.13.0
4
19
 
5
20
  ### Minor Changes
@@ -8,14 +8,14 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.default = void 0;
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _reactAnimateHeight = _interopRequireDefault(require("react-animate-height"));
11
- var _reactIntlNext = require("react-intl-next");
11
+ var _reactIntl = require("react-intl");
12
12
  var _button = _interopRequireDefault(require("@atlaskit/button"));
13
13
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
14
14
  var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
15
15
  var _compiled = require("@atlaskit/primitives/compiled");
16
16
  var styles = _interopRequireWildcard(require("./styledPanel"));
17
17
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
18
- var i18n = (0, _reactIntlNext.defineMessages)({
18
+ var i18n = (0, _reactIntl.defineMessages)({
19
19
  collapse: {
20
20
  id: 'bitbucket.panel-collapse.message',
21
21
  defaultMessage: 'collapse',
@@ -33,7 +33,7 @@ var PanelStateless = function PanelStateless(_ref) {
33
33
  _ref$isExpanded = _ref.isExpanded,
34
34
  isExpanded = _ref$isExpanded === void 0 ? false : _ref$isExpanded,
35
35
  onChange = _ref.onChange;
36
- var intl = (0, _reactIntlNext.useIntl)();
36
+ var intl = (0, _reactIntl.useIntl)();
37
37
  var i18nExpandText = intl.formatMessage(i18n.expand);
38
38
  var i18nCollapseText = intl.formatMessage(i18n.collapse);
39
39
  return /*#__PURE__*/_react.default.createElement(styles.PanelWrapper, null, /*#__PURE__*/_react.default.createElement(styles.PanelHeader, {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import AnimateHeight from 'react-animate-height';
3
- import { defineMessages, useIntl } from 'react-intl-next';
3
+ import { defineMessages, useIntl } from 'react-intl';
4
4
  import Button from '@atlaskit/button';
5
5
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
6
6
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import AnimateHeight from 'react-animate-height';
3
- import { defineMessages, useIntl } from 'react-intl-next';
3
+ import { defineMessages, useIntl } from 'react-intl';
4
4
  import Button from '@atlaskit/button';
5
5
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
6
6
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/panel",
3
- "version": "0.13.0",
3
+ "version": "1.0.0",
4
4
  "description": "A React component rendering a collapsible panel",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@atlaskit/afm-i18n-platform-bitbucket-panel": "2.95.0",
32
32
  "@atlaskit/button": "^23.11.0",
33
- "@atlaskit/icon": "^34.0.0",
33
+ "@atlaskit/icon": "^34.1.0",
34
34
  "@atlaskit/link": "^3.4.0",
35
35
  "@atlaskit/platform-feature-flags": "^1.1.0",
36
36
  "@atlaskit/primitives": "^19.0.0",
@@ -38,16 +38,17 @@
38
38
  "@atlaskit/tokens": "^13.0.0",
39
39
  "@babel/runtime": "^7.0.0",
40
40
  "react-animate-height": "^2.1.0",
41
- "react-focus-within": "^2.0.1",
42
- "react-intl-next": "npm:react-intl@^5.18.1"
41
+ "react-focus-within": "^2.0.1"
43
42
  },
44
43
  "peerDependencies": {
45
44
  "react": "^18.2.0",
45
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0",
46
46
  "styled-components": "^3.2.6"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@testing-library/react": "^16.3.0",
50
- "@testing-library/user-event": "^14.4.3"
50
+ "@testing-library/user-event": "^14.4.3",
51
+ "react-intl": "^6.6.2"
51
52
  },
52
53
  "techstack": {
53
54
  "@atlassian/frontend": {