@atlaskit/modal-dialog 12.17.9 → 12.17.10
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 +8 -0
- package/dist/cjs/internal/components/modal-dialog.js +2 -2
- package/dist/cjs/modal-wrapper.js +2 -2
- package/dist/es2019/internal/components/modal-dialog.js +2 -2
- package/dist/es2019/modal-wrapper.js +3 -3
- package/dist/esm/internal/components/modal-dialog.js +3 -3
- package/dist/esm/modal-wrapper.js +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/modal-dialog
|
|
2
2
|
|
|
3
|
+
## 12.17.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#161638](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/161638)
|
|
8
|
+
[`d2e5e5ce0053d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d2e5e5ce0053d) -
|
|
9
|
+
Use new API of layering without UNSAFE prefix
|
|
10
|
+
|
|
3
11
|
## 12.17.9
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -124,8 +124,8 @@ var ModalDialog = function ModalDialog(props) {
|
|
|
124
124
|
onClose: onClose,
|
|
125
125
|
isDisabled: !shouldCloseOnEscapePress
|
|
126
126
|
});
|
|
127
|
-
var
|
|
128
|
-
currentLevel =
|
|
127
|
+
var _useLayering = (0, _layering.useLayering)(),
|
|
128
|
+
currentLevel = _useLayering.currentLevel;
|
|
129
129
|
return (0, _react2.jsx)(_positioner.default, {
|
|
130
130
|
stackIndex: stackIndex,
|
|
131
131
|
shouldScrollInViewport: shouldScrollInViewport,
|
|
@@ -102,7 +102,7 @@ var ModalWrapper = function ModalWrapper(props) {
|
|
|
102
102
|
action: 'closed',
|
|
103
103
|
componentName: 'modalDialog',
|
|
104
104
|
packageName: "@atlaskit/modal-dialog",
|
|
105
|
-
packageVersion: "12.17.
|
|
105
|
+
packageVersion: "12.17.10"
|
|
106
106
|
});
|
|
107
107
|
var onBlanketClicked = (0, _react.useCallback)(function (e) {
|
|
108
108
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -144,7 +144,7 @@ var ModalWrapper = function ModalWrapper(props) {
|
|
|
144
144
|
}, 0);
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
return (0, _react2.jsx)(_layering.
|
|
147
|
+
return (0, _react2.jsx)(_layering.Layering, {
|
|
148
148
|
isDisabled: false
|
|
149
149
|
}, (0, _react2.jsx)(_portal.default, {
|
|
150
150
|
zIndex: _constants.layers.modal()
|
|
@@ -10,7 +10,7 @@ import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
|
10
10
|
import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
|
|
11
11
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
12
12
|
import FocusRing from '@atlaskit/focus-ring';
|
|
13
|
-
import {
|
|
13
|
+
import { useCloseOnEscapePress, useLayering } from '@atlaskit/layering';
|
|
14
14
|
import FadeIn from '@atlaskit/motion/fade-in';
|
|
15
15
|
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
16
16
|
import { media } from '@atlaskit/primitives';
|
|
@@ -123,7 +123,7 @@ const ModalDialog = props => {
|
|
|
123
123
|
});
|
|
124
124
|
const {
|
|
125
125
|
currentLevel
|
|
126
|
-
} =
|
|
126
|
+
} = useLayering();
|
|
127
127
|
return jsx(Positioner, {
|
|
128
128
|
stackIndex: stackIndex,
|
|
129
129
|
shouldScrollInViewport: shouldScrollInViewport,
|
|
@@ -14,7 +14,7 @@ import ScrollLock, { TouchScrollable } from 'react-scrolllock';
|
|
|
14
14
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
15
15
|
import Blanket from '@atlaskit/blanket';
|
|
16
16
|
import noop from '@atlaskit/ds-lib/noop';
|
|
17
|
-
import {
|
|
17
|
+
import { Layering } from '@atlaskit/layering';
|
|
18
18
|
import FadeIn from '@atlaskit/motion/fade-in';
|
|
19
19
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
20
|
import Portal from '@atlaskit/portal';
|
|
@@ -87,7 +87,7 @@ const ModalWrapper = props => {
|
|
|
87
87
|
action: 'closed',
|
|
88
88
|
componentName: 'modalDialog',
|
|
89
89
|
packageName: "@atlaskit/modal-dialog",
|
|
90
|
-
packageVersion: "12.17.
|
|
90
|
+
packageVersion: "12.17.10"
|
|
91
91
|
});
|
|
92
92
|
const onBlanketClicked = useCallback(e => {
|
|
93
93
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -127,7 +127,7 @@ const ModalWrapper = props => {
|
|
|
127
127
|
}, 0);
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
|
-
return jsx(
|
|
130
|
+
return jsx(Layering, {
|
|
131
131
|
isDisabled: false
|
|
132
132
|
}, jsx(Portal, {
|
|
133
133
|
zIndex: layers.modal()
|
|
@@ -14,7 +14,7 @@ import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
|
14
14
|
import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
|
|
15
15
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
16
16
|
import FocusRing from '@atlaskit/focus-ring';
|
|
17
|
-
import {
|
|
17
|
+
import { useCloseOnEscapePress, useLayering } from '@atlaskit/layering';
|
|
18
18
|
import FadeIn from '@atlaskit/motion/fade-in';
|
|
19
19
|
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
20
20
|
import { media } from '@atlaskit/primitives';
|
|
@@ -118,8 +118,8 @@ var ModalDialog = function ModalDialog(props) {
|
|
|
118
118
|
onClose: onClose,
|
|
119
119
|
isDisabled: !shouldCloseOnEscapePress
|
|
120
120
|
});
|
|
121
|
-
var
|
|
122
|
-
currentLevel =
|
|
121
|
+
var _useLayering = useLayering(),
|
|
122
|
+
currentLevel = _useLayering.currentLevel;
|
|
123
123
|
return jsx(Positioner, {
|
|
124
124
|
stackIndex: stackIndex,
|
|
125
125
|
shouldScrollInViewport: shouldScrollInViewport,
|
|
@@ -14,7 +14,7 @@ import ScrollLock, { TouchScrollable } from 'react-scrolllock';
|
|
|
14
14
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
15
15
|
import Blanket from '@atlaskit/blanket';
|
|
16
16
|
import noop from '@atlaskit/ds-lib/noop';
|
|
17
|
-
import {
|
|
17
|
+
import { Layering } from '@atlaskit/layering';
|
|
18
18
|
import FadeIn from '@atlaskit/motion/fade-in';
|
|
19
19
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
20
|
import Portal from '@atlaskit/portal';
|
|
@@ -92,7 +92,7 @@ var ModalWrapper = function ModalWrapper(props) {
|
|
|
92
92
|
action: 'closed',
|
|
93
93
|
componentName: 'modalDialog',
|
|
94
94
|
packageName: "@atlaskit/modal-dialog",
|
|
95
|
-
packageVersion: "12.17.
|
|
95
|
+
packageVersion: "12.17.10"
|
|
96
96
|
});
|
|
97
97
|
var onBlanketClicked = useCallback(function (e) {
|
|
98
98
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -134,7 +134,7 @@ var ModalWrapper = function ModalWrapper(props) {
|
|
|
134
134
|
}, 0);
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
|
-
return jsx(
|
|
137
|
+
return jsx(Layering, {
|
|
138
138
|
isDisabled: false
|
|
139
139
|
}, jsx(Portal, {
|
|
140
140
|
zIndex: layers.modal()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/modal-dialog",
|
|
3
|
-
"version": "12.17.
|
|
3
|
+
"version": "12.17.10",
|
|
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/"
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"@atlaskit/blanket": "^13.3.0",
|
|
31
31
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
32
32
|
"@atlaskit/ds-lib": "^3.1.0",
|
|
33
|
-
"@atlaskit/focus-ring": "^1.
|
|
33
|
+
"@atlaskit/focus-ring": "^1.7.0",
|
|
34
34
|
"@atlaskit/icon": "^22.24.0",
|
|
35
35
|
"@atlaskit/layering": "^0.7.0",
|
|
36
36
|
"@atlaskit/motion": "^1.9.0",
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
38
38
|
"@atlaskit/portal": "^4.9.0",
|
|
39
39
|
"@atlaskit/pragmatic-drag-and-drop": "^1.4.0",
|
|
40
|
-
"@atlaskit/primitives": "^13.
|
|
40
|
+
"@atlaskit/primitives": "^13.1.0",
|
|
41
41
|
"@atlaskit/theme": "^14.0.0",
|
|
42
|
-
"@atlaskit/tokens": "^2.
|
|
42
|
+
"@atlaskit/tokens": "^2.2.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"@emotion/react": "^11.7.1",
|
|
45
45
|
"bind-event-listener": "^3.0.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@atlaskit/dropdown-menu": "^12.22.0",
|
|
61
61
|
"@atlaskit/popup": "^1.29.0",
|
|
62
62
|
"@atlaskit/radio": "^6.5.0",
|
|
63
|
-
"@atlaskit/select": "^18.
|
|
63
|
+
"@atlaskit/select": "^18.5.0",
|
|
64
64
|
"@atlaskit/ssr": "*",
|
|
65
65
|
"@atlaskit/textfield": "^6.5.0",
|
|
66
66
|
"@atlaskit/tooltip": "^18.8.0",
|