@atlaskit/status 1.7.0 → 1.8.1

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,23 @@
1
1
  # @atlaskit/status
2
2
 
3
+ ## 1.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.8.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#166052](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166052)
14
+ [`45e71a1daa411`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/45e71a1daa411) -
15
+ Adds peerdependency version range for react 17 + 18
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 1.7.0
4
22
 
5
23
  ### Minor Changes
@@ -102,23 +102,26 @@ var StatusInternal = /*#__PURE__*/function (_PureComponent) {
102
102
  }
103
103
  var appearance = colorToLozengeAppearanceMap[color] || DEFAULT_APPEARANCE;
104
104
  // Note: ommitted data-local-id attribute to avoid copying/pasting the same localId
105
- return (0, _react2.jsx)("span", {
106
- css: isAndroidChromium ? inlineBlockStyles : undefined
107
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
108
- ,
109
- className: "status-lozenge-span",
110
- onClick: onClick,
111
- onMouseEnter: this.handleMouseEnter,
112
- onMouseLeave: this.handleMouseLeave,
113
- "data-node-type": "status",
114
- "data-color": color,
115
- "data-style": style,
116
- role: role
117
- }, (0, _react2.jsx)(_lozenge.default, {
118
- appearance: appearance,
119
- maxWidth: MAX_WIDTH,
120
- isBold: isBold
121
- }, text));
105
+ return (
106
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
107
+ (0, _react2.jsx)("span", {
108
+ css: isAndroidChromium ? inlineBlockStyles : undefined
109
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
110
+ ,
111
+ className: "status-lozenge-span",
112
+ onClick: onClick,
113
+ onMouseEnter: this.handleMouseEnter,
114
+ onMouseLeave: this.handleMouseLeave,
115
+ "data-node-type": "status",
116
+ "data-color": color,
117
+ "data-style": style,
118
+ role: role
119
+ }, (0, _react2.jsx)(_lozenge.default, {
120
+ appearance: appearance,
121
+ maxWidth: MAX_WIDTH,
122
+ isBold: isBold
123
+ }, text))
124
+ );
122
125
  }
123
126
  }]);
124
127
  return StatusInternal;
@@ -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 = "1.7.0";
13
+ var packageVersion = "1.8.1";
14
14
  var createStatusAnalyticsAndFire = exports.createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
15
15
  return function (payload) {
16
16
  var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
@@ -87,7 +87,7 @@ var _default = exports.default = function _default(_ref) {
87
87
  When we migrated to emotion from styled component, we started getting this error.
88
88
  Task added in https://product-fabric.atlassian.net/wiki/spaces/E/pages/3182068181/Potential+improvements#Moderate-changes.
89
89
  */
90
- // eslint-disable-next-line jsx-a11y/interactive-supports-focus
90
+ // eslint-disable-next-line jsx-a11y/interactive-supports-focus, jsx-a11y/no-noninteractive-element-interactions
91
91
  (0, _react2.jsx)("ul", {
92
92
  css: colorPaletteWrapperStyles
93
93
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -81,23 +81,26 @@ class StatusInternal extends PureComponent {
81
81
  }
82
82
  const appearance = colorToLozengeAppearanceMap[color] || DEFAULT_APPEARANCE;
83
83
  // Note: ommitted data-local-id attribute to avoid copying/pasting the same localId
84
- return jsx("span", {
85
- css: isAndroidChromium ? inlineBlockStyles : undefined
86
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
87
- ,
88
- className: "status-lozenge-span",
89
- onClick: onClick,
90
- onMouseEnter: this.handleMouseEnter,
91
- onMouseLeave: this.handleMouseLeave,
92
- "data-node-type": "status",
93
- "data-color": color,
94
- "data-style": style,
95
- role: role
96
- }, jsx(Lozenge, {
97
- appearance: appearance,
98
- maxWidth: MAX_WIDTH,
99
- isBold: isBold
100
- }, text));
84
+ return (
85
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
86
+ jsx("span", {
87
+ css: isAndroidChromium ? inlineBlockStyles : undefined
88
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
89
+ ,
90
+ className: "status-lozenge-span",
91
+ onClick: onClick,
92
+ onMouseEnter: this.handleMouseEnter,
93
+ onMouseLeave: this.handleMouseLeave,
94
+ "data-node-type": "status",
95
+ "data-color": color,
96
+ "data-style": style,
97
+ role: role
98
+ }, jsx(Lozenge, {
99
+ appearance: appearance,
100
+ maxWidth: MAX_WIDTH,
101
+ isBold: isBold
102
+ }, text))
103
+ );
101
104
  }
102
105
  }
103
106
  _defineProperty(StatusInternal, "displayName", 'StatusInternal');
@@ -1,6 +1,6 @@
1
1
  export const ELEMENTS_CHANNEL = 'fabric-elements';
2
2
  const packageName = "@atlaskit/status";
3
- const packageVersion = "1.7.0";
3
+ const packageVersion = "1.8.1";
4
4
  export const createStatusAnalyticsAndFire = createAnalyticsEvent => payload => {
5
5
  const statusPayload = {
6
6
  ...payload,
@@ -71,7 +71,7 @@ export default (({
71
71
  When we migrated to emotion from styled component, we started getting this error.
72
72
  Task added in https://product-fabric.atlassian.net/wiki/spaces/E/pages/3182068181/Potential+improvements#Moderate-changes.
73
73
  */
74
- // eslint-disable-next-line jsx-a11y/interactive-supports-focus
74
+ // eslint-disable-next-line jsx-a11y/interactive-supports-focus, jsx-a11y/no-noninteractive-element-interactions
75
75
  jsx("ul", {
76
76
  css: colorPaletteWrapperStyles
77
77
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -98,23 +98,26 @@ var StatusInternal = /*#__PURE__*/function (_PureComponent) {
98
98
  }
99
99
  var appearance = colorToLozengeAppearanceMap[color] || DEFAULT_APPEARANCE;
100
100
  // Note: ommitted data-local-id attribute to avoid copying/pasting the same localId
101
- return jsx("span", {
102
- css: isAndroidChromium ? inlineBlockStyles : undefined
103
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
104
- ,
105
- className: "status-lozenge-span",
106
- onClick: onClick,
107
- onMouseEnter: this.handleMouseEnter,
108
- onMouseLeave: this.handleMouseLeave,
109
- "data-node-type": "status",
110
- "data-color": color,
111
- "data-style": style,
112
- role: role
113
- }, jsx(Lozenge, {
114
- appearance: appearance,
115
- maxWidth: MAX_WIDTH,
116
- isBold: isBold
117
- }, text));
101
+ return (
102
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
103
+ jsx("span", {
104
+ css: isAndroidChromium ? inlineBlockStyles : undefined
105
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
106
+ ,
107
+ className: "status-lozenge-span",
108
+ onClick: onClick,
109
+ onMouseEnter: this.handleMouseEnter,
110
+ onMouseLeave: this.handleMouseLeave,
111
+ "data-node-type": "status",
112
+ "data-color": color,
113
+ "data-style": style,
114
+ role: role
115
+ }, jsx(Lozenge, {
116
+ appearance: appearance,
117
+ maxWidth: MAX_WIDTH,
118
+ isBold: isBold
119
+ }, text))
120
+ );
118
121
  }
119
122
  }]);
120
123
  return StatusInternal;
@@ -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 = "1.7.0";
6
+ var packageVersion = "1.8.1";
7
7
  export var createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
8
8
  return function (payload) {
9
9
  var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
@@ -77,7 +77,7 @@ export default (function (_ref) {
77
77
  When we migrated to emotion from styled component, we started getting this error.
78
78
  Task added in https://product-fabric.atlassian.net/wiki/spaces/E/pages/3182068181/Potential+improvements#Moderate-changes.
79
79
  */
80
- // eslint-disable-next-line jsx-a11y/interactive-supports-focus
80
+ // eslint-disable-next-line jsx-a11y/interactive-supports-focus, jsx-a11y/no-noninteractive-element-interactions
81
81
  jsx("ul", {
82
82
  css: colorPaletteWrapperStyles
83
83
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/status",
3
- "version": "1.7.0",
3
+ "version": "1.8.1",
4
4
  "description": "Fabric Status React Components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -18,25 +18,25 @@
18
18
  "website": {
19
19
  "name": "Status"
20
20
  },
21
- "runReact18": false
21
+ "runReact18": true
22
22
  },
23
23
  "config": {
24
24
  "access": "public"
25
25
  },
26
26
  "dependencies": {
27
27
  "@atlaskit/analytics-next": "^10.1.0",
28
- "@atlaskit/icon": "^22.24.0",
28
+ "@atlaskit/icon": "^23.0.0",
29
29
  "@atlaskit/lozenge": "^11.12.0",
30
30
  "@atlaskit/platform-feature-flags": "^0.3.0",
31
- "@atlaskit/primitives": "^13.2.0",
32
- "@atlaskit/textfield": "^6.5.0",
31
+ "@atlaskit/primitives": "^13.3.0",
32
+ "@atlaskit/textfield": "^6.6.0",
33
33
  "@atlaskit/theme": "^14.0.0",
34
- "@atlaskit/tokens": "^2.2.0",
34
+ "@atlaskit/tokens": "^2.4.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "@emotion/react": "^11.7.1"
37
37
  },
38
38
  "peerDependencies": {
39
- "react": "^16.8.0",
39
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
40
40
  "react-intl-next": "npm:react-intl@^5.18.1"
41
41
  },
42
42
  "devDependencies": {