@atlaskit/modal-dialog 15.2.8 → 15.3.0
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,16 @@
|
|
|
1
1
|
# @atlaskit/modal-dialog
|
|
2
2
|
|
|
3
|
+
## 15.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`2fd74328732bf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2fd74328732bf) -
|
|
8
|
+
Updated to use new motion in top layer dialog
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 15.2.8
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -42,7 +42,7 @@ var _dialogHeight = require("./dialog-height");
|
|
|
42
42
|
var _dialogWidth = require("./dialog-width");
|
|
43
43
|
var _modalDialog = _interopRequireDefault(require("./modal-dialog"));
|
|
44
44
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
45
|
-
var modalAnimation = (0, _animations.
|
|
45
|
+
var modalAnimation = (0, _animations.dialogMotion)();
|
|
46
46
|
var fillScreenStyles = null;
|
|
47
47
|
|
|
48
48
|
// Visual styles for modal content inside native <dialog>.
|
|
@@ -114,7 +114,7 @@ var InternalModalWrapper = /*#__PURE__*/(0, _react.forwardRef)(function (props,
|
|
|
114
114
|
action: 'closed',
|
|
115
115
|
componentName: 'modalDialog',
|
|
116
116
|
packageName: "@atlaskit/modal-dialog",
|
|
117
|
-
packageVersion: "15.2.
|
|
117
|
+
packageVersion: "15.2.8"
|
|
118
118
|
});
|
|
119
119
|
var onBlanketClicked = (0, _react.useCallback)(function (e) {
|
|
120
120
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -20,7 +20,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
20
20
|
import Portal from '@atlaskit/portal';
|
|
21
21
|
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
22
22
|
import { layers } from '@atlaskit/theme/constants';
|
|
23
|
-
import {
|
|
23
|
+
import { dialogMotion } from '@atlaskit/top-layer/animations';
|
|
24
24
|
import { createCloseEvent, Dialog } from '@atlaskit/top-layer/dialog';
|
|
25
25
|
import { DialogScrollLock } from '@atlaskit/top-layer/dialog-scroll-lock';
|
|
26
26
|
import { ModalContext, ScrollContext } from '../context';
|
|
@@ -32,7 +32,7 @@ import { disableDraggingToCrossOriginIFramesForTextSelection } from '../pragmati
|
|
|
32
32
|
import { dialogHeight } from './dialog-height';
|
|
33
33
|
import { dialogWidth as getDialogWidth } from './dialog-width';
|
|
34
34
|
import ModalDialog from './modal-dialog';
|
|
35
|
-
const modalAnimation =
|
|
35
|
+
const modalAnimation = dialogMotion();
|
|
36
36
|
const fillScreenStyles = null;
|
|
37
37
|
|
|
38
38
|
// Visual styles for modal content inside native <dialog>.
|
|
@@ -100,7 +100,7 @@ const InternalModalWrapper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
100
100
|
action: 'closed',
|
|
101
101
|
componentName: 'modalDialog',
|
|
102
102
|
packageName: "@atlaskit/modal-dialog",
|
|
103
|
-
packageVersion: "15.2.
|
|
103
|
+
packageVersion: "15.2.8"
|
|
104
104
|
});
|
|
105
105
|
const onBlanketClicked = useCallback(e => {
|
|
106
106
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -21,7 +21,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
21
21
|
import Portal from '@atlaskit/portal';
|
|
22
22
|
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
23
23
|
import { layers } from '@atlaskit/theme/constants';
|
|
24
|
-
import {
|
|
24
|
+
import { dialogMotion } from '@atlaskit/top-layer/animations';
|
|
25
25
|
import { createCloseEvent, Dialog } from '@atlaskit/top-layer/dialog';
|
|
26
26
|
import { DialogScrollLock } from '@atlaskit/top-layer/dialog-scroll-lock';
|
|
27
27
|
import { ModalContext, ScrollContext } from '../context';
|
|
@@ -33,7 +33,7 @@ import { disableDraggingToCrossOriginIFramesForTextSelection } from '../pragmati
|
|
|
33
33
|
import { dialogHeight } from './dialog-height';
|
|
34
34
|
import { dialogWidth as getDialogWidth } from './dialog-width';
|
|
35
35
|
import ModalDialog from './modal-dialog';
|
|
36
|
-
var modalAnimation =
|
|
36
|
+
var modalAnimation = dialogMotion();
|
|
37
37
|
var fillScreenStyles = null;
|
|
38
38
|
|
|
39
39
|
// Visual styles for modal content inside native <dialog>.
|
|
@@ -105,7 +105,7 @@ var InternalModalWrapper = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
105
105
|
action: 'closed',
|
|
106
106
|
componentName: 'modalDialog',
|
|
107
107
|
packageName: "@atlaskit/modal-dialog",
|
|
108
|
-
packageVersion: "15.2.
|
|
108
|
+
packageVersion: "15.2.8"
|
|
109
109
|
});
|
|
110
110
|
var onBlanketClicked = useCallback(function (e) {
|
|
111
111
|
if (shouldCloseOnOverlayClick) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/modal-dialog",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.3.0",
|
|
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/"
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@atlaskit/pragmatic-drag-and-drop": "^1.8.0",
|
|
48
48
|
"@atlaskit/primitives": "^19.0.0",
|
|
49
49
|
"@atlaskit/theme": "^25.0.0",
|
|
50
|
-
"@atlaskit/tokens": "^13.
|
|
51
|
-
"@atlaskit/top-layer": "^0.
|
|
50
|
+
"@atlaskit/tokens": "^13.4.0",
|
|
51
|
+
"@atlaskit/top-layer": "^0.17.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@compiled/react": "^0.20.0",
|
|
54
54
|
"bind-event-listener": "^3.0.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@atlaskit/form": "^15.5.0",
|
|
77
77
|
"@atlaskit/heading": "^5.4.0",
|
|
78
78
|
"@atlaskit/link": "^3.4.0",
|
|
79
|
-
"@atlaskit/popup": "^4.
|
|
79
|
+
"@atlaskit/popup": "^4.25.0",
|
|
80
80
|
"@atlaskit/radio": "^8.6.0",
|
|
81
81
|
"@atlaskit/section-message": "^8.13.0",
|
|
82
82
|
"@atlaskit/select": "^21.12.0",
|