@atlaskit/modal-dialog 15.2.7 → 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,25 @@
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
+
14
+ ## 15.2.8
15
+
16
+ ### Patch Changes
17
+
18
+ - [`6d0485dce81c4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6d0485dce81c4) -
19
+ Internal: updated to the new `@atlaskit/top-layer` `Popover`/`Dialog` behaviour where the host
20
+ element unmounts after the exit animation completes. No consumer action required.
21
+ - Updated dependencies
22
+
3
23
  ## 15.2.7
4
24
 
5
25
  ### 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.dialogSlideUpAndFade)();
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.6"
117
+ packageVersion: "15.2.8"
118
118
  });
119
119
  var onBlanketClicked = (0, _react.useCallback)(function (e) {
120
120
  if (shouldCloseOnOverlayClick) {
@@ -331,7 +331,9 @@ var InternalModalWrapper = /*#__PURE__*/(0, _react.forwardRef)(function (props,
331
331
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
332
332
  ,
333
333
  style: dialogStyle
334
- }), /*#__PURE__*/React.createElement(_dialogScrollLock.DialogScrollLock, null), dialogPositionStyles &&
334
+ }), /*#__PURE__*/React.createElement(_dialogScrollLock.DialogScrollLock, {
335
+ isOpen: true
336
+ }), dialogPositionStyles &&
335
337
  /*#__PURE__*/
336
338
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles
337
339
  React.createElement("style", null, dialogPositionStyles), /*#__PURE__*/React.createElement("div", {
@@ -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 { dialogSlideUpAndFade } from '@atlaskit/top-layer/animations';
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 = dialogSlideUpAndFade();
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.6"
103
+ packageVersion: "15.2.8"
104
104
  });
105
105
  const onBlanketClicked = useCallback(e => {
106
106
  if (shouldCloseOnOverlayClick) {
@@ -316,7 +316,9 @@ const InternalModalWrapper = /*#__PURE__*/forwardRef((props, ref) => {
316
316
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
317
317
  ,
318
318
  style: dialogStyle
319
- }), /*#__PURE__*/React.createElement(DialogScrollLock, null), dialogPositionStyles &&
319
+ }), /*#__PURE__*/React.createElement(DialogScrollLock, {
320
+ isOpen: true
321
+ }), dialogPositionStyles &&
320
322
  /*#__PURE__*/
321
323
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles
322
324
  React.createElement("style", null, dialogPositionStyles), /*#__PURE__*/React.createElement("div", {
@@ -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 { dialogSlideUpAndFade } from '@atlaskit/top-layer/animations';
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 = dialogSlideUpAndFade();
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.6"
108
+ packageVersion: "15.2.8"
109
109
  });
110
110
  var onBlanketClicked = useCallback(function (e) {
111
111
  if (shouldCloseOnOverlayClick) {
@@ -322,7 +322,9 @@ var InternalModalWrapper = /*#__PURE__*/forwardRef(function (props, ref) {
322
322
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
323
323
  ,
324
324
  style: dialogStyle
325
- }), /*#__PURE__*/React.createElement(DialogScrollLock, null), dialogPositionStyles &&
325
+ }), /*#__PURE__*/React.createElement(DialogScrollLock, {
326
+ isOpen: true
327
+ }), dialogPositionStyles &&
326
328
  /*#__PURE__*/
327
329
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles
328
330
  React.createElement("style", null, dialogPositionStyles), /*#__PURE__*/React.createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "15.2.7",
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.3.0",
51
- "@atlaskit/top-layer": "^0.15.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.23.0",
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",