@atlaskit/panel 0.13.0 → 1.1.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,27 @@
1
1
  # @atlaskit/panel
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`f8631829a2320`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f8631829a2320) -
8
+ Remove flag to increase accessibility in links.
9
+
10
+ ## 1.0.0
11
+
12
+ ### Major Changes
13
+
14
+ - [`d2e14ba5ae9fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d2e14ba5ae9fc) -
15
+ Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
16
+
17
+ What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
18
+ removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
19
+ to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
20
+
21
+ How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
22
+ `^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
23
+ can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
24
+
3
25
  ## 0.13.0
4
26
 
5
27
  ### 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.1.0",
4
4
  "description": "A React component rendering a collapsible panel",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,24 +30,25 @@
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.2.0",
34
34
  "@atlaskit/link": "^3.4.0",
35
35
  "@atlaskit/platform-feature-flags": "^1.1.0",
36
36
  "@atlaskit/primitives": "^19.0.0",
37
- "@atlaskit/theme": "^23.0.0",
37
+ "@atlaskit/theme": "^23.1.0",
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": {
@@ -57,9 +58,5 @@
57
58
  "sideEffects": [
58
59
  "*.compiled.css"
59
60
  ],
60
- "platform-feature-flags": {
61
- "dst-a11y__replace-anchor-with-link__bitbucket-core": {
62
- "type": "boolean"
63
- }
64
- }
61
+ "platform-feature-flags": {}
65
62
  }