@atlassian/aui 9.12.1 → 9.12.2
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/dist/aui/aui-prototyping-design-tokens-api-full.js +1 -1
- package/dist/aui/aui-prototyping-design-tokens-api.js +1 -1
- package/dist/aui/aui-prototyping-design-tokens-base-themes-css.css +1 -1
- package/dist/aui/aui-prototyping-design-tokens-base-themes-css.js +1 -1
- package/dist/aui/aui-prototyping-design-tokens-base-themes.js +1 -1
- package/dist/aui/aui-prototyping.css +2 -2
- package/dist/aui/aui-prototyping.css.map +1 -1
- package/dist/aui/aui-prototyping.js +4 -4
- package/dist/aui/aui-prototyping.js.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.css +2 -2
- package/dist/aui/aui-prototyping.nodeps.css.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.js +4 -4
- package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
- package/package.json +5 -7
- package/src/js/aui/flag.js +9 -11
- package/src/less/aui-appheader.less +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlassian/aui",
|
|
3
3
|
"description": "Atlassian User Interface library",
|
|
4
|
-
"version": "9.12.
|
|
4
|
+
"version": "9.12.2",
|
|
5
5
|
"author": "Atlassian Pty Ltd.",
|
|
6
6
|
"homepage": "https://aui.atlassian.com",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@popperjs/core": "2.11.8",
|
|
43
43
|
"backbone": "1.6.0",
|
|
44
44
|
"css.escape": "1.5.1",
|
|
45
|
-
"dompurify": "2.5.
|
|
45
|
+
"dompurify": "2.5.7",
|
|
46
46
|
"fancy-file-input": "2.0.4",
|
|
47
47
|
"jquery-ui": "1.13.3",
|
|
48
48
|
"skatejs": "0.13.17",
|
|
@@ -57,15 +57,13 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@atlassian/aui-webpack-config": "3.0.1",
|
|
60
|
-
"@babel/core": "7.
|
|
61
|
-
"@babel/preset-env": "7.
|
|
62
|
-
"cross-env": "7.0.3",
|
|
63
|
-
"eslint": "9.7.0",
|
|
60
|
+
"@babel/core": "7.24.9",
|
|
61
|
+
"@babel/preset-env": "7.24.8",
|
|
64
62
|
"fs-extra": "9.1.0",
|
|
65
63
|
"ignore-emit-webpack-plugin": "2.0.6",
|
|
66
64
|
"jquery": "3.5.1",
|
|
67
65
|
"jquery-migrate": "3.5.2",
|
|
68
|
-
"less": "
|
|
66
|
+
"less": "4.2.0",
|
|
69
67
|
"react": "18.3.1"
|
|
70
68
|
},
|
|
71
69
|
"scripts": {
|
package/src/js/aui/flag.js
CHANGED
|
@@ -40,17 +40,12 @@ function flag (flagOptions) {
|
|
|
40
40
|
|
|
41
41
|
handleFlagContainer();
|
|
42
42
|
insertFlag($flag);
|
|
43
|
+
|
|
43
44
|
setTimeout(function () {
|
|
44
45
|
if ($flag.attr('aui-focus-trap') === 'true') {
|
|
45
46
|
getFocusManager.global.enter($flag);
|
|
46
47
|
}
|
|
47
|
-
}, 0)
|
|
48
|
-
|
|
49
|
-
setTimeout(function () {
|
|
50
|
-
$flag.attr({
|
|
51
|
-
'aria-hidden': false
|
|
52
|
-
});
|
|
53
|
-
}, 100)
|
|
48
|
+
}, 0)
|
|
54
49
|
|
|
55
50
|
return $flag.get(0);
|
|
56
51
|
}
|
|
@@ -97,7 +92,7 @@ function renderFlagElement ({ body, title, close, type, ariaLive, ariaLabel, ari
|
|
|
97
92
|
.attr({
|
|
98
93
|
'aui-focus-trap': `${isFocusable}`,
|
|
99
94
|
'aria-label': escapeHtml(ariaLabel),
|
|
100
|
-
'aria-hidden': '
|
|
95
|
+
'aria-hidden': 'false',
|
|
101
96
|
'aria-live': escapeHtml(ariaLive),
|
|
102
97
|
'role': ariaRole,
|
|
103
98
|
...(!!ariaDescription ? {'aria-description': escapeHtml(ariaDescription)} : {}),
|
|
@@ -132,13 +127,16 @@ function makeAutoClosable ($flag, duration) {
|
|
|
132
127
|
function closeFlag ($flagToClose) {
|
|
133
128
|
const flag = $flagToClose.get(0);
|
|
134
129
|
|
|
130
|
+
if ($flagToClose.attr('aui-focus-trap')) {
|
|
131
|
+
getFocusManager.global.exit($flagToClose);
|
|
132
|
+
}
|
|
133
|
+
|
|
135
134
|
flag.removeAttribute('open');
|
|
136
135
|
flag.setAttribute('inert', '');
|
|
137
136
|
flag.setAttribute('aria-hidden', true);
|
|
137
|
+
flag.style.display = 'none';
|
|
138
138
|
flag.dispatchEvent(new CustomEvent('aui-flag-close', { bubbles: true }));
|
|
139
|
-
|
|
140
|
-
getFocusManager.global.exit($flagToClose);
|
|
141
|
-
}
|
|
139
|
+
|
|
142
140
|
|
|
143
141
|
return flag;
|
|
144
142
|
}
|