@atlaskit/page-layout 4.2.18 → 4.2.20
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
|
@@ -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
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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.
|
|
3
|
+
"version": "4.2.20",
|
|
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.
|
|
41
|
-
"@atlaskit/icon": "^
|
|
40
|
+
"@atlaskit/ds-lib": "^5.2.0",
|
|
41
|
+
"@atlaskit/icon": "^29.0.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": "^
|
|
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.
|
|
61
|
-
"@atlaskit/button": "^23.
|
|
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.
|
|
66
|
-
"@atlaskit/section-message": "^8.
|
|
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.
|
|
69
|
-
"@atlassian/ssr-tests": "
|
|
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",
|