@atlaskit/modal-dialog 14.18.0 → 14.18.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/modal-dialog
|
|
2
2
|
|
|
3
|
+
## 14.18.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 14.18.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`a5e997ea70aac`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a5e997ea70aac) -
|
|
14
|
+
Remove unnecessary boolean casting in if statement.
|
|
15
|
+
|
|
3
16
|
## 14.18.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -32,7 +32,7 @@ var fillScreenStyles = null;
|
|
|
32
32
|
var allowlistElements = function allowlistElements(element, callback) {
|
|
33
33
|
// Allow focus to reach elements outside the modal:
|
|
34
34
|
// if AUI dialog is allowListed and visible
|
|
35
|
-
if (
|
|
35
|
+
if (document.querySelector('.aui-blanket:not([hidden])')) {
|
|
36
36
|
return false;
|
|
37
37
|
}
|
|
38
38
|
// allows to pass a callback function to allow elements be ignored by focus lock
|
|
@@ -94,7 +94,7 @@ var InternalModalWrapper = function InternalModalWrapper(props) {
|
|
|
94
94
|
action: 'closed',
|
|
95
95
|
componentName: 'modalDialog',
|
|
96
96
|
packageName: "@atlaskit/modal-dialog",
|
|
97
|
-
packageVersion: "
|
|
97
|
+
packageVersion: "14.18.1"
|
|
98
98
|
});
|
|
99
99
|
var onBlanketClicked = (0, _react.useCallback)(function (e) {
|
|
100
100
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -23,7 +23,7 @@ const fillScreenStyles = null;
|
|
|
23
23
|
const allowlistElements = (element, callback) => {
|
|
24
24
|
// Allow focus to reach elements outside the modal:
|
|
25
25
|
// if AUI dialog is allowListed and visible
|
|
26
|
-
if (
|
|
26
|
+
if (document.querySelector('.aui-blanket:not([hidden])')) {
|
|
27
27
|
return false;
|
|
28
28
|
}
|
|
29
29
|
// allows to pass a callback function to allow elements be ignored by focus lock
|
|
@@ -80,7 +80,7 @@ const InternalModalWrapper = props => {
|
|
|
80
80
|
action: 'closed',
|
|
81
81
|
componentName: 'modalDialog',
|
|
82
82
|
packageName: "@atlaskit/modal-dialog",
|
|
83
|
-
packageVersion: "
|
|
83
|
+
packageVersion: "14.18.1"
|
|
84
84
|
});
|
|
85
85
|
const onBlanketClicked = useCallback(e => {
|
|
86
86
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -23,7 +23,7 @@ var fillScreenStyles = null;
|
|
|
23
23
|
var allowlistElements = function allowlistElements(element, callback) {
|
|
24
24
|
// Allow focus to reach elements outside the modal:
|
|
25
25
|
// if AUI dialog is allowListed and visible
|
|
26
|
-
if (
|
|
26
|
+
if (document.querySelector('.aui-blanket:not([hidden])')) {
|
|
27
27
|
return false;
|
|
28
28
|
}
|
|
29
29
|
// allows to pass a callback function to allow elements be ignored by focus lock
|
|
@@ -85,7 +85,7 @@ var InternalModalWrapper = function InternalModalWrapper(props) {
|
|
|
85
85
|
action: 'closed',
|
|
86
86
|
componentName: 'modalDialog',
|
|
87
87
|
packageName: "@atlaskit/modal-dialog",
|
|
88
|
-
packageVersion: "
|
|
88
|
+
packageVersion: "14.18.1"
|
|
89
89
|
});
|
|
90
90
|
var onBlanketClicked = useCallback(function (e) {
|
|
91
91
|
if (shouldCloseOnOverlayClick) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/modal-dialog",
|
|
3
|
-
"version": "14.18.
|
|
3
|
+
"version": "14.18.2",
|
|
4
4
|
"description": "A modal dialog displays content that requires user interaction, in a layer above the page.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/ds-lib": "^7.0.0",
|
|
42
42
|
"@atlaskit/icon": "^34.3.0",
|
|
43
43
|
"@atlaskit/layering": "^3.7.0",
|
|
44
|
-
"@atlaskit/motion": "^
|
|
44
|
+
"@atlaskit/motion": "^6.0.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
46
|
"@atlaskit/portal": "^5.4.0",
|
|
47
47
|
"@atlaskit/pragmatic-drag-and-drop": "^1.8.0",
|