@atlaskit/modal-dialog 16.2.0 → 16.2.1
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,13 @@
|
|
|
1
1
|
# @atlaskit/modal-dialog
|
|
2
2
|
|
|
3
|
+
## 16.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`25392f10c50ee`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/25392f10c50ee) -
|
|
8
|
+
Deprecate `shouldCloseOnEscapePress` prop. Closing on escape is standard accessible modal
|
|
9
|
+
behaviour and should not be disabled. Handle the `onClose` callback conditionally instead.
|
|
10
|
+
|
|
3
11
|
## 16.2.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -113,7 +113,7 @@ var InternalModalWrapper = /*#__PURE__*/(0, _react.forwardRef)(function (props,
|
|
|
113
113
|
action: 'closed',
|
|
114
114
|
componentName: 'modalDialog',
|
|
115
115
|
packageName: "@atlaskit/modal-dialog",
|
|
116
|
-
packageVersion: "16.
|
|
116
|
+
packageVersion: "16.2.0"
|
|
117
117
|
});
|
|
118
118
|
var onBlanketClicked = (0, _react.useCallback)(function (e) {
|
|
119
119
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -99,7 +99,7 @@ const InternalModalWrapper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
99
99
|
action: 'closed',
|
|
100
100
|
componentName: 'modalDialog',
|
|
101
101
|
packageName: "@atlaskit/modal-dialog",
|
|
102
|
-
packageVersion: "16.
|
|
102
|
+
packageVersion: "16.2.0"
|
|
103
103
|
});
|
|
104
104
|
const onBlanketClicked = useCallback(e => {
|
|
105
105
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -104,7 +104,7 @@ var InternalModalWrapper = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
104
104
|
action: 'closed',
|
|
105
105
|
componentName: 'modalDialog',
|
|
106
106
|
packageName: "@atlaskit/modal-dialog",
|
|
107
|
-
packageVersion: "16.
|
|
107
|
+
packageVersion: "16.2.0"
|
|
108
108
|
});
|
|
109
109
|
var onBlanketClicked = useCallback(function (e) {
|
|
110
110
|
if (shouldCloseOnOverlayClick) {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -65,6 +65,10 @@ export interface ModalDialogProps {
|
|
|
65
65
|
shouldCloseOnOverlayClick?: boolean;
|
|
66
66
|
/**
|
|
67
67
|
* Calls `onClose` when pressing escape.
|
|
68
|
+
*
|
|
69
|
+
* @deprecated This prop will be removed in a future major release. Closing on escape is standard
|
|
70
|
+
* modal behaviour and should not be disabled. If you need to prevent closing during an in-progress
|
|
71
|
+
* async action, instead handle the `onClose` callback to block the action conditionally.
|
|
68
72
|
*/
|
|
69
73
|
shouldCloseOnEscapePress?: boolean;
|
|
70
74
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/modal-dialog",
|
|
3
|
-
"version": "16.2.
|
|
3
|
+
"version": "16.2.1",
|
|
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/"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@af/accessibility-testing": "workspace:^",
|
|
65
65
|
"@af/integration-testing": "workspace:^",
|
|
66
66
|
"@af/visual-regression": "workspace:^",
|
|
67
|
-
"@atlaskit/avatar": "^26.
|
|
67
|
+
"@atlaskit/avatar": "^26.4.0",
|
|
68
68
|
"@atlaskit/avatar-group": "^13.2.0",
|
|
69
69
|
"@atlaskit/banner": "^15.1.0",
|
|
70
70
|
"@atlaskit/breadcrumbs": "^17.5.0",
|