@atlaskit/modal-dialog 12.8.2 → 12.8.4
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 +12 -0
- package/dist/cjs/modal-wrapper.js +5 -2
- package/dist/es2019/modal-wrapper.js +5 -2
- package/dist/esm/modal-wrapper.js +5 -2
- package/package.json +19 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/modal-dialog
|
|
2
2
|
|
|
3
|
+
## 12.8.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 12.8.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#41628](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41628) [`b05664f7aba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b05664f7aba) - Use feature flag to toggle if we enable UNSAFE_LAYERING
|
|
14
|
+
|
|
3
15
|
## 12.8.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -16,6 +16,7 @@ var _blanket = _interopRequireDefault(require("@atlaskit/blanket"));
|
|
|
16
16
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
17
17
|
var _layering = require("@atlaskit/layering");
|
|
18
18
|
var _fadeIn = _interopRequireDefault(require("@atlaskit/motion/fade-in"));
|
|
19
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
20
|
var _portal = _interopRequireDefault(require("@atlaskit/portal"));
|
|
20
21
|
var _constants = require("@atlaskit/theme/constants");
|
|
21
22
|
var _modalDialog = _interopRequireDefault(require("./internal/components/modal-dialog"));
|
|
@@ -86,7 +87,7 @@ var ModalWrapper = function ModalWrapper(props) {
|
|
|
86
87
|
action: 'closed',
|
|
87
88
|
componentName: 'modalDialog',
|
|
88
89
|
packageName: "@atlaskit/modal-dialog",
|
|
89
|
-
packageVersion: "12.8.
|
|
90
|
+
packageVersion: "12.8.4"
|
|
90
91
|
});
|
|
91
92
|
var onBlanketClicked = (0, _react.useCallback)(function (e) {
|
|
92
93
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -111,7 +112,9 @@ var ModalWrapper = function ModalWrapper(props) {
|
|
|
111
112
|
onCloseComplete: onCloseComplete,
|
|
112
113
|
onOpenComplete: onOpenComplete
|
|
113
114
|
}, children));
|
|
114
|
-
return (0, _react2.jsx)(_layering.UNSAFE_LAYERING,
|
|
115
|
+
return (0, _react2.jsx)(_layering.UNSAFE_LAYERING, {
|
|
116
|
+
isDisabled: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.layering_qmiw3') ? false : true
|
|
117
|
+
}, (0, _react2.jsx)(_portal.default, {
|
|
115
118
|
zIndex: _constants.layers.modal()
|
|
116
119
|
}, (0, _react2.jsx)(_fadeIn.default, null, function (fadeInProps) {
|
|
117
120
|
return (0, _react2.jsx)("div", (0, _extends2.default)({}, fadeInProps, {
|
|
@@ -10,6 +10,7 @@ import Blanket from '@atlaskit/blanket';
|
|
|
10
10
|
import noop from '@atlaskit/ds-lib/noop';
|
|
11
11
|
import { UNSAFE_LAYERING } from '@atlaskit/layering';
|
|
12
12
|
import FadeIn from '@atlaskit/motion/fade-in';
|
|
13
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import Portal from '@atlaskit/portal';
|
|
14
15
|
import { layers } from '@atlaskit/theme/constants';
|
|
15
16
|
import ModalDialog from './internal/components/modal-dialog';
|
|
@@ -71,7 +72,7 @@ const ModalWrapper = props => {
|
|
|
71
72
|
action: 'closed',
|
|
72
73
|
componentName: 'modalDialog',
|
|
73
74
|
packageName: "@atlaskit/modal-dialog",
|
|
74
|
-
packageVersion: "12.8.
|
|
75
|
+
packageVersion: "12.8.4"
|
|
75
76
|
});
|
|
76
77
|
const onBlanketClicked = useCallback(e => {
|
|
77
78
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -96,7 +97,9 @@ const ModalWrapper = props => {
|
|
|
96
97
|
onCloseComplete: onCloseComplete,
|
|
97
98
|
onOpenComplete: onOpenComplete
|
|
98
99
|
}, children));
|
|
99
|
-
return jsx(UNSAFE_LAYERING,
|
|
100
|
+
return jsx(UNSAFE_LAYERING, {
|
|
101
|
+
isDisabled: getBooleanFF('platform.design-system-team.layering_qmiw3') ? false : true
|
|
102
|
+
}, jsx(Portal, {
|
|
100
103
|
zIndex: layers.modal()
|
|
101
104
|
}, jsx(FadeIn, null, fadeInProps => jsx("div", _extends({}, fadeInProps, {
|
|
102
105
|
css: fillScreenStyles,
|
|
@@ -10,6 +10,7 @@ import Blanket from '@atlaskit/blanket';
|
|
|
10
10
|
import noop from '@atlaskit/ds-lib/noop';
|
|
11
11
|
import { UNSAFE_LAYERING } from '@atlaskit/layering';
|
|
12
12
|
import FadeIn from '@atlaskit/motion/fade-in';
|
|
13
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import Portal from '@atlaskit/portal';
|
|
14
15
|
import { layers } from '@atlaskit/theme/constants';
|
|
15
16
|
import ModalDialog from './internal/components/modal-dialog';
|
|
@@ -76,7 +77,7 @@ var ModalWrapper = function ModalWrapper(props) {
|
|
|
76
77
|
action: 'closed',
|
|
77
78
|
componentName: 'modalDialog',
|
|
78
79
|
packageName: "@atlaskit/modal-dialog",
|
|
79
|
-
packageVersion: "12.8.
|
|
80
|
+
packageVersion: "12.8.4"
|
|
80
81
|
});
|
|
81
82
|
var onBlanketClicked = useCallback(function (e) {
|
|
82
83
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -101,7 +102,9 @@ var ModalWrapper = function ModalWrapper(props) {
|
|
|
101
102
|
onCloseComplete: onCloseComplete,
|
|
102
103
|
onOpenComplete: onOpenComplete
|
|
103
104
|
}, children));
|
|
104
|
-
return jsx(UNSAFE_LAYERING,
|
|
105
|
+
return jsx(UNSAFE_LAYERING, {
|
|
106
|
+
isDisabled: getBooleanFF('platform.design-system-team.layering_qmiw3') ? false : true
|
|
107
|
+
}, jsx(Portal, {
|
|
105
108
|
zIndex: layers.modal()
|
|
106
109
|
}, jsx(FadeIn, null, function (fadeInProps) {
|
|
107
110
|
return jsx("div", _extends({}, fadeInProps, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/modal-dialog",
|
|
3
|
-
"version": "12.8.
|
|
3
|
+
"version": "12.8.4",
|
|
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/"
|
|
@@ -27,17 +27,18 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
30
|
-
"@atlaskit/blanket": "^
|
|
30
|
+
"@atlaskit/blanket": "^13.0.0",
|
|
31
31
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
32
32
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
33
33
|
"@atlaskit/focus-ring": "^1.3.0",
|
|
34
34
|
"@atlaskit/icon": "^21.12.0",
|
|
35
35
|
"@atlaskit/layering": "^0.2.0",
|
|
36
36
|
"@atlaskit/motion": "^1.5.0",
|
|
37
|
-
"@atlaskit/
|
|
38
|
-
"@atlaskit/
|
|
37
|
+
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
38
|
+
"@atlaskit/portal": "^4.4.0",
|
|
39
|
+
"@atlaskit/primitives": "^1.9.0",
|
|
39
40
|
"@atlaskit/theme": "^12.6.0",
|
|
40
|
-
"@atlaskit/tokens": "^1.
|
|
41
|
+
"@atlaskit/tokens": "^1.28.0",
|
|
41
42
|
"@babel/runtime": "^7.0.0",
|
|
42
43
|
"@emotion/react": "^11.7.1",
|
|
43
44
|
"bind-event-listener": "^2.1.1",
|
|
@@ -54,10 +55,14 @@
|
|
|
54
55
|
"@af/integration-testing": "*",
|
|
55
56
|
"@af/visual-regression": "*",
|
|
56
57
|
"@atlaskit/button": "*",
|
|
58
|
+
"@atlaskit/dropdown-menu": "^12.0.0",
|
|
59
|
+
"@atlaskit/popup": "^1.10.0",
|
|
60
|
+
"@atlaskit/select": "^16.7.0",
|
|
57
61
|
"@atlaskit/ssr": "*",
|
|
58
62
|
"@atlaskit/visual-regression": "*",
|
|
59
63
|
"@atlaskit/webdriver-runner": "*",
|
|
60
64
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
65
|
+
"@atlassian/feature-flags-test-utils": "*",
|
|
61
66
|
"@testing-library/dom": "^8.17.1",
|
|
62
67
|
"@testing-library/react": "^12.1.5",
|
|
63
68
|
"@testing-library/react-hooks": "^8.0.1",
|
|
@@ -116,6 +121,15 @@
|
|
|
116
121
|
"./modal-footer": "./src/modal-footer.tsx",
|
|
117
122
|
"./modal-transition": "./src/modal-transition.tsx"
|
|
118
123
|
},
|
|
124
|
+
"platform-feature-flags": {
|
|
125
|
+
"platform.design-system-team.layering_qmiw3": {
|
|
126
|
+
"type": "boolean"
|
|
127
|
+
},
|
|
128
|
+
"platform.design-system-team.popup-select-close_8h15h": {
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"referenceOnly": "true"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
119
133
|
"homepage": "https://atlassian.design/components/modal-dialog/",
|
|
120
134
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
121
135
|
}
|