@atlaskit/page-layout 3.11.2 → 3.11.3
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,24 +112,27 @@ 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
|
-
|
|
115
|
+
return (
|
|
116
|
+
// eslint-disable-next-line jsx-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
|
+
);
|
|
133
136
|
};
|
|
134
137
|
var handleBlur = function handleBlur(event) {
|
|
135
138
|
// @ts-ignore
|
|
@@ -96,23 +96,26 @@ 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
|
-
|
|
99
|
+
return (
|
|
100
|
+
// eslint-disable-next-line jsx-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
|
+
);
|
|
116
119
|
};
|
|
117
120
|
const handleBlur = event => {
|
|
118
121
|
// @ts-ignore
|
|
@@ -109,24 +109,27 @@ 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
|
-
|
|
112
|
+
return (
|
|
113
|
+
// eslint-disable-next-line jsx-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
|
+
);
|
|
130
133
|
};
|
|
131
134
|
var handleBlur = function handleBlur(event) {
|
|
132
135
|
// @ts-ignore
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/page-layout",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.3",
|
|
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/"
|
|
@@ -31,19 +31,23 @@
|
|
|
31
31
|
"team": "Design System Team",
|
|
32
32
|
"website": {
|
|
33
33
|
"name": "Page layout",
|
|
34
|
-
"category": "
|
|
34
|
+
"category": "Layout and structure",
|
|
35
|
+
"status": {
|
|
36
|
+
"type": "intent-to-deprecate",
|
|
37
|
+
"description": "We are in the process of building a new page layout component: [@atlassian/navigation-system](https://staging.atlassian.design/components/navigation-system/page-layout/examples) (For Atlassian employees only at this stage)"
|
|
38
|
+
}
|
|
35
39
|
},
|
|
36
40
|
"runReact18": true
|
|
37
41
|
},
|
|
38
42
|
"homepage": "https://atlassian.design/components/page-layout/",
|
|
39
43
|
"dependencies": {
|
|
40
|
-
"@atlaskit/ds-lib": "^3.
|
|
41
|
-
"@atlaskit/icon": "^
|
|
44
|
+
"@atlaskit/ds-lib": "^3.3.0",
|
|
45
|
+
"@atlaskit/icon": "^23.0.0",
|
|
42
46
|
"@atlaskit/link": "^1.2.0",
|
|
43
47
|
"@atlaskit/motion": "^1.9.0",
|
|
44
|
-
"@atlaskit/primitives": "^13.
|
|
48
|
+
"@atlaskit/primitives": "^13.3.0",
|
|
45
49
|
"@atlaskit/theme": "^14.0.0",
|
|
46
|
-
"@atlaskit/tokens": "^2.
|
|
50
|
+
"@atlaskit/tokens": "^2.4.0",
|
|
47
51
|
"@babel/runtime": "^7.0.0",
|
|
48
52
|
"@emotion/react": "^11.7.1",
|
|
49
53
|
"bind-event-listener": "^3.0.0",
|
|
@@ -59,11 +63,11 @@
|
|
|
59
63
|
"@atlaskit/atlassian-navigation": "^4.9.0",
|
|
60
64
|
"@atlaskit/atlassian-notifications": "^0.5.0",
|
|
61
65
|
"@atlaskit/drawer": "^9.2.0",
|
|
62
|
-
"@atlaskit/logo": "^
|
|
66
|
+
"@atlaskit/logo": "^15.0.0",
|
|
63
67
|
"@atlaskit/menu": "^2.13.0",
|
|
64
68
|
"@atlaskit/notification-indicator": "^9.4.0",
|
|
65
69
|
"@atlaskit/notification-log-client": "^6.1.0",
|
|
66
|
-
"@atlaskit/popup": "^1.
|
|
70
|
+
"@atlaskit/popup": "^1.30.0",
|
|
67
71
|
"@atlaskit/side-navigation": "^3.6.0",
|
|
68
72
|
"@atlaskit/ssr": "*",
|
|
69
73
|
"@atlaskit/toggle": "^13.4.0",
|