@atlaskit/status 3.2.15 → 4.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/status
2
2
 
3
+ ## 4.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`deb3d6a6498e8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/deb3d6a6498e8) -
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
  ## 3.2.15
4
19
 
5
20
  ### Patch Changes
@@ -17,7 +17,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
17
17
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
18
18
  var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
19
19
  var _react = _interopRequireWildcard(require("react"));
20
- var _reactIntlNext = require("react-intl-next");
20
+ var _reactIntl = require("react-intl");
21
21
  var _colorPalette = _interopRequireDefault(require("./internal/color-palette"));
22
22
  var _i18n = require("./i18n");
23
23
  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); }
@@ -112,4 +112,4 @@ var Picker = /*#__PURE__*/function (_PureComponent) {
112
112
  (0, _defineProperty2.default)(Picker, "defaultProps", {
113
113
  autoFocus: true
114
114
  });
115
- var StatusPicker = exports.StatusPicker = (0, _reactIntlNext.injectIntl)(Picker);
115
+ var StatusPicker = exports.StatusPicker = (0, _reactIntl.injectIntl)(Picker);
@@ -10,7 +10,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
10
10
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
11
  var ELEMENTS_CHANNEL = exports.ELEMENTS_CHANNEL = 'fabric-elements';
12
12
  var packageName = "@atlaskit/status";
13
- var packageVersion = "3.2.14";
13
+ var packageVersion = "0.0.0-development";
14
14
  var createStatusAnalyticsAndFire = exports.createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
15
15
  return function (payload) {
16
16
  var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
7
+ var _reactIntl = require("react-intl");
8
+ var messages = exports.messages = (0, _reactIntl.defineMessages)({
9
9
  neutralColor: {
10
10
  id: 'fabric.status.color.grey',
11
11
  defaultMessage: 'Grey',
@@ -19,7 +19,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
19
19
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
20
20
  var _checkMark = _interopRequireDefault(require("@atlaskit/icon/core/check-mark"));
21
21
  var _compiled = require("@atlaskit/primitives/compiled");
22
- var _reactIntlNext = require("react-intl-next");
22
+ var _reactIntl = require("react-intl");
23
23
  var _constants = require("../constants");
24
24
  var _i18n = require("../i18n");
25
25
  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); }
@@ -77,7 +77,7 @@ var Color = exports.default = /*#__PURE__*/function (_PureComponent) {
77
77
  onKeyDown = _this$props2.onKeyDown;
78
78
  return /*#__PURE__*/React.createElement("li", {
79
79
  className: (0, _runtime.ax)(["_2rko12x7 _189ee4h9 _1dqonqa1 _1h6d1j28 _19pkze3t _2hwxv77o _otyrze3t _18u0v77o _1e0c1txw _4cvr1h6o _ca0qe4h9 _u5f3e4h9 _n3tde4h9 _19bve4h9 _bfw7ia51"])
80
- }, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _i18n.messages["".concat(value, "Color")], function (labels) {
80
+ }, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _i18n.messages["".concat(value, "Color")], function (labels) {
81
81
  return /*#__PURE__*/React.createElement(_compiled.Pressable, {
82
82
  xcss: styles.button,
83
83
  onClick: _this2.onClick,
@@ -4,7 +4,7 @@ import "./StatusPicker.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import TextField from '@atlaskit/textfield';
6
6
  import React, { PureComponent } from 'react';
7
- import { injectIntl } from 'react-intl-next';
7
+ import { injectIntl } from 'react-intl';
8
8
  import ColorPalette from './internal/color-palette';
9
9
  import { messages } from './i18n';
10
10
  const fieldTextWrapperStyles = null;
@@ -1,6 +1,6 @@
1
1
  export const ELEMENTS_CHANNEL = 'fabric-elements';
2
2
  const packageName = "@atlaskit/status";
3
- const packageVersion = "3.2.14";
3
+ const packageVersion = "0.0.0-development";
4
4
  export const createStatusAnalyticsAndFire = createAnalyticsEvent => payload => {
5
5
  const statusPayload = {
6
6
  ...payload,
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export const messages = defineMessages({
3
3
  neutralColor: {
4
4
  id: 'fabric.status.color.grey',
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
6
6
  import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
7
7
  import { Pressable } from '@atlaskit/primitives/compiled';
8
8
  import { PureComponent } from 'react';
9
- import { FormattedMessage } from 'react-intl-next';
9
+ import { FormattedMessage } from 'react-intl';
10
10
  import { ANALYTICS_HOVER_DELAY } from '../constants';
11
11
  import { messages } from '../i18n';
12
12
  const styles = {
@@ -11,7 +11,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
11
11
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
12
  import TextField from '@atlaskit/textfield';
13
13
  import React, { PureComponent } from 'react';
14
- import { injectIntl } from 'react-intl-next';
14
+ import { injectIntl } from 'react-intl';
15
15
  import ColorPalette from './internal/color-palette';
16
16
  import { messages } from './i18n';
17
17
  var fieldTextWrapperStyles = null;
@@ -3,7 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  export var ELEMENTS_CHANNEL = 'fabric-elements';
5
5
  var packageName = "@atlaskit/status";
6
- var packageVersion = "3.2.14";
6
+ var packageVersion = "0.0.0-development";
7
7
  export var createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
8
8
  return function (payload) {
9
9
  var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export var messages = defineMessages({
3
3
  neutralColor: {
4
4
  id: 'fabric.status.color.grey',
@@ -13,7 +13,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
13
13
  import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
14
14
  import { Pressable } from '@atlaskit/primitives/compiled';
15
15
  import { PureComponent } from 'react';
16
- import { FormattedMessage } from 'react-intl-next';
16
+ import { FormattedMessage } from 'react-intl';
17
17
  import { ANALYTICS_HOVER_DELAY } from '../constants';
18
18
  import { messages } from '../i18n';
19
19
  var styles = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
2
+ import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
3
3
  import { type Color } from './Status';
4
4
  export type ColorType = Color;
5
5
  export interface Props {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
2
+ import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
3
3
  import { type Color } from './Status';
4
4
  export type ColorType = Color;
5
5
  export interface Props {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/status",
3
- "version": "3.2.15",
3
+ "version": "4.0.0",
4
4
  "description": "Fabric Status React Components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,18 +29,18 @@
29
29
  "@atlaskit/afm-i18n-platform-elements-status": "2.7.0",
30
30
  "@atlaskit/analytics-next": "^11.2.0",
31
31
  "@atlaskit/icon": "^34.1.0",
32
- "@atlaskit/lozenge": "^13.6.0",
32
+ "@atlaskit/lozenge": "^13.7.0",
33
33
  "@atlaskit/platform-feature-flags": "^1.1.0",
34
34
  "@atlaskit/primitives": "^19.0.0",
35
35
  "@atlaskit/textfield": "^8.3.0",
36
- "@atlaskit/tmp-editor-statsig": "^62.0.0",
36
+ "@atlaskit/tmp-editor-statsig": "^62.2.0",
37
37
  "@atlaskit/tokens": "^13.0.0",
38
38
  "@babel/runtime": "^7.0.0",
39
39
  "@compiled/react": "^0.20.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "react": "^18.2.0",
43
- "react-intl-next": "npm:react-intl@^5.18.1"
43
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@af/visual-regression": "workspace:^",
@@ -51,7 +51,7 @@
51
51
  "@testing-library/react": "^16.3.0",
52
52
  "enzyme": "^3.10.0",
53
53
  "react": "^18.2.0",
54
- "react-intl-next": "npm:react-intl@^5.18.1"
54
+ "react-intl": "^6.6.2"
55
55
  },
56
56
  "keywords": [
57
57
  "ui",
package/report.api.md CHANGED
@@ -22,8 +22,8 @@ import { ForwardRefExoticComponent } from 'react';
22
22
  import { default as React_2 } from 'react';
23
23
  import { RefAttributes } from 'react';
24
24
  import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
25
- import { WithIntlProps } from 'react-intl-next';
26
- import { WrappedComponentProps } from 'react-intl-next';
25
+ import { WithIntlProps } from 'react-intl';
26
+ import { WrappedComponentProps } from 'react-intl';
27
27
 
28
28
  // @public (undocumented)
29
29
  export type Color = 'blue' | 'green' | 'neutral' | 'purple' | 'red' | 'yellow';
@@ -97,7 +97,7 @@ export type StatusStyle = 'bold' | 'subtle';
97
97
  ```json
98
98
  {
99
99
  "react": "^16.8.0",
100
- "react-intl-next": "npm:react-intl@^5.18.1"
100
+ "react-intl": "npm:react-intl@^5.18.1"
101
101
  }
102
102
  ```
103
103