@atlaskit/page-layout 4.2.18 → 4.2.19

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,11 @@
1
1
  # @atlaskit/page-layout
2
2
 
3
+ ## 4.2.19
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 4.2.18
4
10
 
5
11
  ### Patch Changes
@@ -112,27 +112,24 @@ var SkipLinkWrapper = exports.SkipLinkWrapper = function SkipLinkWrapper(_ref) {
112
112
  };
113
113
  var emptyLabelOverride = !!(skipLinksLabel !== null && skipLinksLabel !== void 0 && skipLinksLabel.match(/^\s+$/));
114
114
  var label = skipLinksLabel || _constants.DEFAULT_I18N_PROPS_SKIP_LINKS;
115
- return (
116
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
117
- (0, _react.jsx)("div", {
118
- onFocus: attachEscHandler,
119
- onBlur: removeEscHandler,
120
- css: [skipLinkStyles, prefersReducedMotionStyles],
121
- "data-skip-link-wrapper": true
122
- }, emptyLabelOverride ? null : (0, _react.jsx)("p", {
123
- css: skipLinkHeadingStyles
124
- }, label), (0, _react.jsx)("ol", {
125
- css: skipLinkListStyles
126
- }, sortSkipLinks(skipLinksData).map(function (_ref2) {
127
- var id = _ref2.id,
128
- skipLinkTitle = _ref2.skipLinkTitle;
129
- return (0, _react.jsx)(SkipLink, {
130
- key: id,
131
- href: "#".concat(id),
132
- isFocusable: true
133
- }, skipLinkTitle);
134
- })))
135
- );
115
+ return (0, _react.jsx)("div", {
116
+ onFocus: attachEscHandler,
117
+ onBlur: removeEscHandler,
118
+ css: [skipLinkStyles, prefersReducedMotionStyles],
119
+ "data-skip-link-wrapper": true
120
+ }, emptyLabelOverride ? null : (0, _react.jsx)("p", {
121
+ css: skipLinkHeadingStyles
122
+ }, label), (0, _react.jsx)("ol", {
123
+ css: skipLinkListStyles
124
+ }, sortSkipLinks(skipLinksData).map(function (_ref2) {
125
+ var id = _ref2.id,
126
+ skipLinkTitle = _ref2.skipLinkTitle;
127
+ return (0, _react.jsx)(SkipLink, {
128
+ key: id,
129
+ href: "#".concat(id),
130
+ isFocusable: true
131
+ }, skipLinkTitle);
132
+ })));
136
133
  };
137
134
  var _handleBlur = function handleBlur(event) {
138
135
  // @ts-ignore
@@ -96,26 +96,23 @@ export const SkipLinkWrapper = ({
96
96
  const removeEscHandler = () => window.removeEventListener('keydown', escapeHandler, false);
97
97
  const emptyLabelOverride = !!(skipLinksLabel !== null && skipLinksLabel !== void 0 && skipLinksLabel.match(/^\s+$/));
98
98
  const label = skipLinksLabel || DEFAULT_I18N_PROPS_SKIP_LINKS;
99
- return (
100
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
101
- jsx("div", {
102
- onFocus: attachEscHandler,
103
- onBlur: removeEscHandler,
104
- css: [skipLinkStyles, prefersReducedMotionStyles],
105
- "data-skip-link-wrapper": true
106
- }, emptyLabelOverride ? null : jsx("p", {
107
- css: skipLinkHeadingStyles
108
- }, label), jsx("ol", {
109
- css: skipLinkListStyles
110
- }, sortSkipLinks(skipLinksData).map(({
111
- id,
112
- skipLinkTitle
113
- }) => jsx(SkipLink, {
114
- key: id,
115
- href: `#${id}`,
116
- isFocusable: true
117
- }, skipLinkTitle))))
118
- );
99
+ return jsx("div", {
100
+ onFocus: attachEscHandler,
101
+ onBlur: removeEscHandler,
102
+ css: [skipLinkStyles, prefersReducedMotionStyles],
103
+ "data-skip-link-wrapper": true
104
+ }, emptyLabelOverride ? null : jsx("p", {
105
+ css: skipLinkHeadingStyles
106
+ }, label), jsx("ol", {
107
+ css: skipLinkListStyles
108
+ }, sortSkipLinks(skipLinksData).map(({
109
+ id,
110
+ skipLinkTitle
111
+ }) => jsx(SkipLink, {
112
+ key: id,
113
+ href: `#${id}`,
114
+ isFocusable: true
115
+ }, skipLinkTitle))));
119
116
  };
120
117
  const handleBlur = event => {
121
118
  // @ts-ignore
@@ -109,27 +109,24 @@ export var SkipLinkWrapper = function SkipLinkWrapper(_ref) {
109
109
  };
110
110
  var emptyLabelOverride = !!(skipLinksLabel !== null && skipLinksLabel !== void 0 && skipLinksLabel.match(/^\s+$/));
111
111
  var label = skipLinksLabel || DEFAULT_I18N_PROPS_SKIP_LINKS;
112
- return (
113
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
114
- jsx("div", {
115
- onFocus: attachEscHandler,
116
- onBlur: removeEscHandler,
117
- css: [skipLinkStyles, prefersReducedMotionStyles],
118
- "data-skip-link-wrapper": true
119
- }, emptyLabelOverride ? null : jsx("p", {
120
- css: skipLinkHeadingStyles
121
- }, label), jsx("ol", {
122
- css: skipLinkListStyles
123
- }, sortSkipLinks(skipLinksData).map(function (_ref2) {
124
- var id = _ref2.id,
125
- skipLinkTitle = _ref2.skipLinkTitle;
126
- return jsx(SkipLink, {
127
- key: id,
128
- href: "#".concat(id),
129
- isFocusable: true
130
- }, skipLinkTitle);
131
- })))
132
- );
112
+ return jsx("div", {
113
+ onFocus: attachEscHandler,
114
+ onBlur: removeEscHandler,
115
+ css: [skipLinkStyles, prefersReducedMotionStyles],
116
+ "data-skip-link-wrapper": true
117
+ }, emptyLabelOverride ? null : jsx("p", {
118
+ css: skipLinkHeadingStyles
119
+ }, label), jsx("ol", {
120
+ css: skipLinkListStyles
121
+ }, sortSkipLinks(skipLinksData).map(function (_ref2) {
122
+ var id = _ref2.id,
123
+ skipLinkTitle = _ref2.skipLinkTitle;
124
+ return jsx(SkipLink, {
125
+ key: id,
126
+ href: "#".concat(id),
127
+ isFocusable: true
128
+ }, skipLinkTitle);
129
+ })));
133
130
  };
134
131
  var _handleBlur = function handleBlur(event) {
135
132
  // @ts-ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/page-layout",
3
- "version": "4.2.18",
3
+ "version": "4.2.19",
4
4
  "description": "A collection of components which let you compose an application's page layout.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,14 +37,14 @@
37
37
  },
38
38
  "homepage": "https://atlassian.design/components/page-layout/",
39
39
  "dependencies": {
40
- "@atlaskit/ds-lib": "^5.1.0",
40
+ "@atlaskit/ds-lib": "^5.2.0",
41
41
  "@atlaskit/icon": "^28.5.0",
42
42
  "@atlaskit/link": "^3.2.0",
43
43
  "@atlaskit/motion": "^5.3.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/primitives": "^16.1.0",
46
46
  "@atlaskit/theme": "^21.0.0",
47
- "@atlaskit/tokens": "^7.0.0",
47
+ "@atlaskit/tokens": "^8.0.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@emotion/react": "^11.7.1",
50
50
  "bind-event-listener": "^3.0.0",
@@ -57,16 +57,16 @@
57
57
  "devDependencies": {
58
58
  "@af/accessibility-testing": "workspace:^",
59
59
  "@af/integration-testing": "workspace:^",
60
- "@atlaskit/atlassian-navigation": "^5.3.0",
61
- "@atlaskit/button": "^23.5.0",
60
+ "@atlaskit/atlassian-navigation": "^5.4.0",
61
+ "@atlaskit/button": "^23.6.0",
62
62
  "@atlaskit/docs": "^11.2.0",
63
63
  "@atlaskit/logo": "^19.9.0",
64
64
  "@atlaskit/menu": "^8.4.0",
65
- "@atlaskit/popup": "^4.5.0",
66
- "@atlaskit/section-message": "^8.8.0",
65
+ "@atlaskit/popup": "^4.6.0",
66
+ "@atlaskit/section-message": "^8.9.0",
67
67
  "@atlaskit/side-navigation": "^11.0.0",
68
- "@atlaskit/tooltip": "^20.7.0",
69
- "@atlassian/ssr-tests": "^0.3.0",
68
+ "@atlaskit/tooltip": "^20.8.0",
69
+ "@atlassian/ssr-tests": "workspace:^",
70
70
  "@testing-library/react": "^13.4.0",
71
71
  "@testing-library/react-hooks": "^8.0.1",
72
72
  "@types/raf-schd": "^4.0.1",