@atlaskit/section-message 6.6.3 → 6.6.5

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/section-message
2
2
 
3
+ ## 6.6.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.6.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [#137586](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/137586)
14
+ [`7ef921d67c033`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7ef921d67c033) -
15
+ Accessibility changes. Add roles to improve semantics.
16
+ - Updated dependencies
17
+
3
18
  ## 6.6.3
4
19
 
5
20
  ### Patch Changes
@@ -9,7 +9,7 @@ exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
13
  /**
14
14
  * __Section message action__
15
15
  *
@@ -11,7 +11,7 @@ var _heading = _interopRequireDefault(require("@atlaskit/heading"));
11
11
  var _primitives = require("@atlaskit/primitives");
12
12
  var _appearanceIcon = require("./internal/appearance-icon");
13
13
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
15
  var containerStyles = (0, _primitives.xcss)({
16
16
  wordBreak: 'break-word',
17
17
  borderRadius: 'border.radius'
@@ -77,8 +77,14 @@ var SectionMessage = /*#__PURE__*/(0, _react.forwardRef)(function SectionMessage
77
77
  testId: testId && "".concat(testId, "--actions"),
78
78
  separator: "\xB7",
79
79
  space: "space.100",
80
- rowSpace: "space.0"
81
- }, actionsArray))));
80
+ rowSpace: "space.0",
81
+ role: "list"
82
+ }, actionsArray.map(function (action, id) {
83
+ return /*#__PURE__*/_react.default.createElement(_primitives.Inline, {
84
+ role: "listitem",
85
+ key: id
86
+ }, action);
87
+ })))));
82
88
  });
83
89
  var appearanceMap = {
84
90
  information: 'color.background.information',
@@ -68,8 +68,12 @@ const SectionMessage = /*#__PURE__*/forwardRef(function SectionMessage({
68
68
  testId: testId && `${testId}--actions`,
69
69
  separator: "\xB7",
70
70
  space: "space.100",
71
- rowSpace: "space.0"
72
- }, actionsArray))));
71
+ rowSpace: "space.0",
72
+ role: "list"
73
+ }, actionsArray.map((action, id) => /*#__PURE__*/React.createElement(Inline, {
74
+ role: "listitem",
75
+ key: id
76
+ }, action))))));
73
77
  });
74
78
  const appearanceMap = {
75
79
  information: 'color.background.information',
@@ -67,8 +67,14 @@ var SectionMessage = /*#__PURE__*/forwardRef(function SectionMessage(_ref, ref)
67
67
  testId: testId && "".concat(testId, "--actions"),
68
68
  separator: "\xB7",
69
69
  space: "space.100",
70
- rowSpace: "space.0"
71
- }, actionsArray))));
70
+ rowSpace: "space.0",
71
+ role: "list"
72
+ }, actionsArray.map(function (action, id) {
73
+ return /*#__PURE__*/React.createElement(Inline, {
74
+ role: "listitem",
75
+ key: id
76
+ }, action);
77
+ })))));
72
78
  });
73
79
  var appearanceMap = {
74
80
  information: 'color.background.information',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/section-message",
3
- "version": "6.6.3",
3
+ "version": "6.6.5",
4
4
  "description": "A section message is used to alert users to a particular section of the screen.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,13 +37,13 @@
37
37
  ".": "./src/index.tsx"
38
38
  },
39
39
  "dependencies": {
40
- "@atlaskit/button": "^20.1.0",
40
+ "@atlaskit/button": "^20.2.0",
41
41
  "@atlaskit/codemod-utils": "^4.2.0",
42
42
  "@atlaskit/heading": "^2.4.0",
43
- "@atlaskit/icon": "^22.15.0",
44
- "@atlaskit/primitives": "^12.1.0",
43
+ "@atlaskit/icon": "^22.18.0",
44
+ "@atlaskit/primitives": "^12.2.0",
45
45
  "@atlaskit/theme": "^13.0.0",
46
- "@atlaskit/tokens": "^1.59.0",
46
+ "@atlaskit/tokens": "^2.0.0",
47
47
  "@babel/runtime": "^7.0.0"
48
48
  },
49
49
  "peerDependencies": {
@@ -53,7 +53,7 @@
53
53
  "@af/accessibility-testing": "*",
54
54
  "@af/integration-testing": "*",
55
55
  "@atlaskit/analytics-next": "^10.1.0",
56
- "@atlaskit/ds-lib": "^2.5.0",
56
+ "@atlaskit/ds-lib": "^2.6.0",
57
57
  "@atlaskit/ssr": "*",
58
58
  "@atlaskit/visual-regression": "*",
59
59
  "@testing-library/react": "^12.1.5",