@atlaskit/modal-dialog 12.1.0 → 12.2.2

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,39 @@
1
1
  # @atlaskit/modal-dialog
2
2
 
3
+ ## 12.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.
8
+ - [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.
9
+ - [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Bump raf-schd to latest (4.0.3), including better TS typings.
10
+ - Updated dependencies
11
+
12
+ ## 12.2.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
18
+ ## 12.2.0
19
+
20
+ ### Minor Changes
21
+
22
+ - [`2d60dd3116d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2d60dd3116d) - [ux] Modal dialogs which contain no focusable children will now lock focus to the modal container. The container will have a focus ring, so some VR tests may need to be regenerated.
23
+
24
+ ### Patch Changes
25
+
26
+ - [`3fced6aa641`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fced6aa641) - Bumped `react-focus-lock` to version `^2.2.1`.
27
+ - [`a8c55e479e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a8c55e479e8) - Removes unused dependency on emotion-styled
28
+ - [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
29
+ - Updated dependencies
30
+
31
+ ## 12.1.1
32
+
33
+ ### Patch Changes
34
+
35
+ - [`2b2290121eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2b2290121eb) - Raised the minimum version carat range of focus ring to latest.
36
+
3
37
  ## 12.1.0
4
38
 
5
39
  ### Minor Changes
package/dist/cjs/index.js CHANGED
@@ -5,16 +5,16 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- Object.defineProperty(exports, "default", {
8
+ Object.defineProperty(exports, "ModalBody", {
9
9
  enumerable: true,
10
10
  get: function get() {
11
- return _modalWrapper.default;
11
+ return _modalBody.default;
12
12
  }
13
13
  });
14
- Object.defineProperty(exports, "ModalTransition", {
14
+ Object.defineProperty(exports, "ModalFooter", {
15
15
  enumerable: true,
16
16
  get: function get() {
17
- return _modalTransition.default;
17
+ return _modalFooter.default;
18
18
  }
19
19
  });
20
20
  Object.defineProperty(exports, "ModalHeader", {
@@ -29,16 +29,16 @@ Object.defineProperty(exports, "ModalTitle", {
29
29
  return _modalTitle.default;
30
30
  }
31
31
  });
32
- Object.defineProperty(exports, "ModalBody", {
32
+ Object.defineProperty(exports, "ModalTransition", {
33
33
  enumerable: true,
34
34
  get: function get() {
35
- return _modalBody.default;
35
+ return _modalTransition.default;
36
36
  }
37
37
  });
38
- Object.defineProperty(exports, "ModalFooter", {
38
+ Object.defineProperty(exports, "default", {
39
39
  enumerable: true,
40
40
  get: function get() {
41
- return _modalFooter.default;
41
+ return _modalWrapper.default;
42
42
  }
43
43
  });
44
44
  Object.defineProperty(exports, "useModal", {
@@ -23,12 +23,12 @@ var _mergeRefs = _interopRequireDefault(require("@atlaskit/ds-lib/merge-refs"));
23
23
 
24
24
  var _useAutoFocus = _interopRequireDefault(require("@atlaskit/ds-lib/use-auto-focus"));
25
25
 
26
+ var _focusRing = _interopRequireDefault(require("@atlaskit/focus-ring"));
27
+
26
28
  var _fadeIn = _interopRequireDefault(require("@atlaskit/motion/fade-in"));
27
29
 
28
30
  var _colors = require("@atlaskit/theme/colors");
29
31
 
30
- var _tokens = require("@atlaskit/tokens");
31
-
32
32
  var _constants = require("../constants");
33
33
 
34
34
  var _context = require("../context");
@@ -49,7 +49,7 @@ var dialogStyles = (0, _core.css)({
49
49
  maxHeight: '100vh',
50
50
  flex: '1 1 auto',
51
51
  flexDirection: 'column',
52
- backgroundColor: (0, _tokens.token)('color.background.overlay', _colors.N0),
52
+ backgroundColor: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
53
53
  color: _constants.textColor,
54
54
  pointerEvents: 'auto',
55
55
  '@media (min-width: 480px)': {
@@ -58,7 +58,7 @@ var dialogStyles = (0, _core.css)({
58
58
  marginRight: 'inherit',
59
59
  marginLeft: 'inherit',
60
60
  borderRadius: _constants.borderRadius,
61
- boxShadow: (0, _tokens.token)('shadow.overlay', "0 0 0 1px ".concat(_colors.N30A, ", 0 2px 1px ").concat(_colors.N30A, ", 0 0 20px -6px ").concat(_colors.N60A))
61
+ boxShadow: "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_colors.N30A, ", 0 2px 1px ").concat(_colors.N30A, ", 0 0 20px -6px ").concat(_colors.N60A), ")")
62
62
  },
63
63
 
64
64
  /**
@@ -136,7 +136,7 @@ var ModalDialog = function ModalDialog(props) {
136
136
  entranceDirection: "bottom",
137
137
  onFinish: onMotionFinish
138
138
  }, function (bottomFadeInProps) {
139
- return (0, _core.jsx)("section", (0, _extends2.default)({}, bottomFadeInProps, {
139
+ return (0, _core.jsx)(_focusRing.default, null, (0, _core.jsx)("section", (0, _extends2.default)({}, bottomFadeInProps, {
140
140
  ref: (0, _mergeRefs.default)([bottomFadeInProps.ref, motionRef]),
141
141
  style: {
142
142
  '--modal-dialog-width': (0, _utils.dialogWidth)(width),
@@ -149,7 +149,7 @@ var ModalDialog = function ModalDialog(props) {
149
149
  "data-modal-stack": stackIndex,
150
150
  tabIndex: -1,
151
151
  "aria-modal": true
152
- }), children);
152
+ }), children));
153
153
  }))));
154
154
  };
155
155
 
@@ -3,14 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.iconColor = exports.textColor = exports.keylineColor = exports.keylineHeight = exports.titleIconMargin = exports.footerItemGap = exports.padding = exports.verticalOffset = exports.borderRadius = exports.gutter = exports.width = void 0;
6
+ exports.width = exports.verticalOffset = exports.titleIconMargin = exports.textColor = exports.padding = exports.keylineHeight = exports.keylineColor = exports.iconColor = exports.gutter = exports.footerItemGap = exports.borderRadius = void 0;
7
7
 
8
8
  var _colors = require("@atlaskit/theme/colors");
9
9
 
10
10
  var _constants = require("@atlaskit/theme/constants");
11
11
 
12
- var _tokens = require("@atlaskit/tokens");
13
-
14
12
  var width = {
15
13
  values: ['small', 'medium', 'large', 'x-large'],
16
14
  widths: {
@@ -37,12 +35,12 @@ var titleIconMargin = gridSize;
37
35
  exports.titleIconMargin = titleIconMargin;
38
36
  var keylineHeight = 2;
39
37
  exports.keylineHeight = keylineHeight;
40
- var keylineColor = (0, _tokens.token)('color.border.neutral', _colors.N30);
38
+ var keylineColor = "var(--ds-border, ".concat(_colors.N30, ")");
41
39
  exports.keylineColor = keylineColor;
42
- var textColor = (0, _tokens.token)('color.text.highEmphasis', (0, _colors.text)());
40
+ var textColor = "var(--ds-text, ".concat((0, _colors.text)(), ")");
43
41
  exports.textColor = textColor;
44
42
  var iconColor = {
45
- danger: (0, _tokens.token)('color.iconBorder.danger', _colors.R400),
46
- warning: (0, _tokens.token)('color.iconBorder.warning', _colors.Y400)
43
+ danger: "var(--ds-icon-danger, ".concat(_colors.R400, ")"),
44
+ warning: "var(--ds-icon-warning, ".concat(_colors.Y400, ")")
47
45
  };
48
46
  exports.iconColor = iconColor;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.dialogHeight = exports.dialogWidth = void 0;
6
+ exports.dialogWidth = exports.dialogHeight = void 0;
7
7
 
8
8
  var _constants = require("./constants");
9
9
 
@@ -41,11 +41,12 @@ var _useModalStack = _interopRequireDefault(require("./internal/hooks/use-modal-
41
41
 
42
42
  var _usePreventProgrammaticScroll = _interopRequireDefault(require("./internal/hooks/use-prevent-programmatic-scroll"));
43
43
 
44
+ var _excluded = ["autoFocus", "shouldCloseOnEscapePress", "shouldCloseOnOverlayClick", "shouldScrollInViewport", "stackIndex", "onClose", "onStackChange", "isBlanketHidden", "testId"];
45
+
44
46
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
45
47
 
46
48
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
47
49
 
48
- /** @jsx jsx */
49
50
  var fillScreenStyles = (0, _core.css)({
50
51
  width: '100vw',
51
52
  height: '100vh',
@@ -72,7 +73,7 @@ var ModalWrapper = function ModalWrapper(props) {
72
73
  onStackChange = _props$onStackChange === void 0 ? _noop.default : _props$onStackChange,
73
74
  isBlanketHidden = props.isBlanketHidden,
74
75
  testId = props.testId,
75
- modalDialogProps = (0, _objectWithoutProperties2.default)(props, ["autoFocus", "shouldCloseOnEscapePress", "shouldCloseOnOverlayClick", "shouldScrollInViewport", "stackIndex", "onClose", "onStackChange", "isBlanketHidden", "testId"]);
76
+ modalDialogProps = (0, _objectWithoutProperties2.default)(props, _excluded);
76
77
  var calculatedStackIndex = (0, _useModalStack.default)({
77
78
  onStackChange: onStackChange
78
79
  });
@@ -85,7 +86,7 @@ var ModalWrapper = function ModalWrapper(props) {
85
86
  action: 'closed',
86
87
  componentName: 'modalDialog',
87
88
  packageName: "@atlaskit/modal-dialog",
88
- packageVersion: "12.1.0"
89
+ packageVersion: "12.2.2"
89
90
  });
90
91
  var onBlanketClicked = (0, _react.useCallback)(function (e) {
91
92
  if (shouldCloseOnOverlayClick) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "12.1.0",
3
+ "version": "12.2.2",
4
4
  "sideEffects": false
5
5
  }
@@ -6,9 +6,9 @@ import { css, jsx } from '@emotion/core';
6
6
  import { useUID } from 'react-uid';
7
7
  import mergeRefs from '@atlaskit/ds-lib/merge-refs';
8
8
  import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
9
+ import FocusRing from '@atlaskit/focus-ring';
9
10
  import FadeIn from '@atlaskit/motion/fade-in';
10
11
  import { N0, N30A, N60A } from '@atlaskit/theme/colors';
11
- import { token } from '@atlaskit/tokens';
12
12
  import { borderRadius, textColor } from '../constants';
13
13
  import { ModalContext, ScrollContext } from '../context';
14
14
  import useOnMotionFinish from '../hooks/use-on-motion-finish';
@@ -23,7 +23,7 @@ const dialogStyles = css({
23
23
  maxHeight: '100vh',
24
24
  flex: '1 1 auto',
25
25
  flexDirection: 'column',
26
- backgroundColor: token('color.background.overlay', N0),
26
+ backgroundColor: `var(--ds-surface-overlay, ${N0})`,
27
27
  color: textColor,
28
28
  pointerEvents: 'auto',
29
29
  '@media (min-width: 480px)': {
@@ -32,7 +32,7 @@ const dialogStyles = css({
32
32
  marginRight: 'inherit',
33
33
  marginLeft: 'inherit',
34
34
  borderRadius,
35
- boxShadow: token('shadow.overlay', `0 0 0 1px ${N30A}, 0 2px 1px ${N30A}, 0 0 20px -6px ${N60A}`)
35
+ boxShadow: `var(--ds-shadow-overlay, ${`0 0 0 1px ${N30A}, 0 2px 1px ${N30A}, 0 0 20px -6px ${N60A}`})`
36
36
  },
37
37
 
38
38
  /**
@@ -102,7 +102,7 @@ const ModalDialog = props => {
102
102
  }, jsx(FadeIn, {
103
103
  entranceDirection: "bottom",
104
104
  onFinish: onMotionFinish
105
- }, bottomFadeInProps => jsx("section", _extends({}, bottomFadeInProps, {
105
+ }, bottomFadeInProps => jsx(FocusRing, null, jsx("section", _extends({}, bottomFadeInProps, {
106
106
  ref: mergeRefs([bottomFadeInProps.ref, motionRef]),
107
107
  style: {
108
108
  '--modal-dialog-width': dialogWidth(width),
@@ -115,7 +115,7 @@ const ModalDialog = props => {
115
115
  "data-modal-stack": stackIndex,
116
116
  tabIndex: -1,
117
117
  "aria-modal": true
118
- }), children)))));
118
+ }), children))))));
119
119
  };
120
120
 
121
121
  export default ModalDialog;
@@ -1,6 +1,5 @@
1
1
  import { N30, R400, text, Y400 } from '@atlaskit/theme/colors';
2
2
  import { borderRadius as getBorderRadius, gridSize as getGridSize } from '@atlaskit/theme/constants';
3
- import { token } from '@atlaskit/tokens';
4
3
  export const width = {
5
4
  values: ['small', 'medium', 'large', 'x-large'],
6
5
  widths: {
@@ -19,9 +18,9 @@ export const padding = gridSize * 3;
19
18
  export const footerItemGap = gridSize;
20
19
  export const titleIconMargin = gridSize;
21
20
  export const keylineHeight = 2;
22
- export const keylineColor = token('color.border.neutral', N30);
23
- export const textColor = token('color.text.highEmphasis', text());
21
+ export const keylineColor = `var(--ds-border, ${N30})`;
22
+ export const textColor = `var(--ds-text, ${text()})`;
24
23
  export const iconColor = {
25
- danger: token('color.iconBorder.danger', R400),
26
- warning: token('color.iconBorder.warning', Y400)
24
+ danger: `var(--ds-icon-danger, ${R400})`,
25
+ warning: `var(--ds-icon-warning, ${Y400})`
27
26
  };
@@ -50,7 +50,7 @@ const ModalWrapper = props => {
50
50
  action: 'closed',
51
51
  componentName: 'modalDialog',
52
52
  packageName: "@atlaskit/modal-dialog",
53
- packageVersion: "12.1.0"
53
+ packageVersion: "12.2.2"
54
54
  });
55
55
  const onBlanketClicked = useCallback(e => {
56
56
  if (shouldCloseOnOverlayClick) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "12.1.0",
3
+ "version": "12.2.2",
4
4
  "sideEffects": false
5
5
  }
@@ -8,9 +8,9 @@ import { css, jsx } from '@emotion/core';
8
8
  import { useUID } from 'react-uid';
9
9
  import mergeRefs from '@atlaskit/ds-lib/merge-refs';
10
10
  import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
11
+ import FocusRing from '@atlaskit/focus-ring';
11
12
  import FadeIn from '@atlaskit/motion/fade-in';
12
13
  import { N0, N30A, N60A } from '@atlaskit/theme/colors';
13
- import { token } from '@atlaskit/tokens';
14
14
  import { borderRadius, textColor } from '../constants';
15
15
  import { ModalContext, ScrollContext } from '../context';
16
16
  import useOnMotionFinish from '../hooks/use-on-motion-finish';
@@ -25,7 +25,7 @@ var dialogStyles = css({
25
25
  maxHeight: '100vh',
26
26
  flex: '1 1 auto',
27
27
  flexDirection: 'column',
28
- backgroundColor: token('color.background.overlay', N0),
28
+ backgroundColor: "var(--ds-surface-overlay, ".concat(N0, ")"),
29
29
  color: textColor,
30
30
  pointerEvents: 'auto',
31
31
  '@media (min-width: 480px)': {
@@ -34,7 +34,7 @@ var dialogStyles = css({
34
34
  marginRight: 'inherit',
35
35
  marginLeft: 'inherit',
36
36
  borderRadius: borderRadius,
37
- boxShadow: token('shadow.overlay', "0 0 0 1px ".concat(N30A, ", 0 2px 1px ").concat(N30A, ", 0 0 20px -6px ").concat(N60A))
37
+ boxShadow: "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(N30A, ", 0 2px 1px ").concat(N30A, ", 0 0 20px -6px ").concat(N60A), ")")
38
38
  },
39
39
 
40
40
  /**
@@ -112,7 +112,7 @@ var ModalDialog = function ModalDialog(props) {
112
112
  entranceDirection: "bottom",
113
113
  onFinish: onMotionFinish
114
114
  }, function (bottomFadeInProps) {
115
- return jsx("section", _extends({}, bottomFadeInProps, {
115
+ return jsx(FocusRing, null, jsx("section", _extends({}, bottomFadeInProps, {
116
116
  ref: mergeRefs([bottomFadeInProps.ref, motionRef]),
117
117
  style: {
118
118
  '--modal-dialog-width': dialogWidth(width),
@@ -125,7 +125,7 @@ var ModalDialog = function ModalDialog(props) {
125
125
  "data-modal-stack": stackIndex,
126
126
  tabIndex: -1,
127
127
  "aria-modal": true
128
- }), children);
128
+ }), children));
129
129
  }))));
130
130
  };
131
131
 
@@ -1,6 +1,5 @@
1
1
  import { N30, R400, text, Y400 } from '@atlaskit/theme/colors';
2
2
  import { borderRadius as getBorderRadius, gridSize as getGridSize } from '@atlaskit/theme/constants';
3
- import { token } from '@atlaskit/tokens';
4
3
  export var width = {
5
4
  values: ['small', 'medium', 'large', 'x-large'],
6
5
  widths: {
@@ -19,9 +18,9 @@ export var padding = gridSize * 3;
19
18
  export var footerItemGap = gridSize;
20
19
  export var titleIconMargin = gridSize;
21
20
  export var keylineHeight = 2;
22
- export var keylineColor = token('color.border.neutral', N30);
23
- export var textColor = token('color.text.highEmphasis', text());
21
+ export var keylineColor = "var(--ds-border, ".concat(N30, ")");
22
+ export var textColor = "var(--ds-text, ".concat(text(), ")");
24
23
  export var iconColor = {
25
- danger: token('color.iconBorder.danger', R400),
26
- warning: token('color.iconBorder.warning', Y400)
24
+ danger: "var(--ds-icon-danger, ".concat(R400, ")"),
25
+ warning: "var(--ds-icon-warning, ".concat(Y400, ")")
27
26
  };
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["autoFocus", "shouldCloseOnEscapePress", "shouldCloseOnOverlayClick", "shouldScrollInViewport", "stackIndex", "onClose", "onStackChange", "isBlanketHidden", "testId"];
3
4
 
4
5
  /** @jsx jsx */
5
6
  import { useCallback } from 'react';
@@ -42,7 +43,7 @@ var ModalWrapper = function ModalWrapper(props) {
42
43
  onStackChange = _props$onStackChange === void 0 ? noop : _props$onStackChange,
43
44
  isBlanketHidden = props.isBlanketHidden,
44
45
  testId = props.testId,
45
- modalDialogProps = _objectWithoutProperties(props, ["autoFocus", "shouldCloseOnEscapePress", "shouldCloseOnOverlayClick", "shouldScrollInViewport", "stackIndex", "onClose", "onStackChange", "isBlanketHidden", "testId"]);
46
+ modalDialogProps = _objectWithoutProperties(props, _excluded);
46
47
 
47
48
  var calculatedStackIndex = useModalStack({
48
49
  onStackChange: onStackChange
@@ -56,7 +57,7 @@ var ModalWrapper = function ModalWrapper(props) {
56
57
  action: 'closed',
57
58
  componentName: 'modalDialog',
58
59
  packageName: "@atlaskit/modal-dialog",
59
- packageVersion: "12.1.0"
60
+ packageVersion: "12.2.2"
60
61
  });
61
62
  var onBlanketClicked = useCallback(function (e) {
62
63
  if (shouldCloseOnOverlayClick) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "12.1.0",
3
+ "version": "12.2.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ModalDialogProps } from '../../types';
2
3
  declare const ModalDialog: (props: ModalDialogProps) => JSX.Element;
3
4
  export default ModalDialog;
@@ -15,8 +15,8 @@ export declare const padding: number;
15
15
  export declare const footerItemGap: number;
16
16
  export declare const titleIconMargin: number;
17
17
  export declare const keylineHeight = 2;
18
- export declare const keylineColor: "var(--ds-border-neutral)";
19
- export declare const textColor: "var(--ds-text-highEmphasis)";
18
+ export declare const keylineColor: "var(--ds-border)";
19
+ export declare const textColor: "var(--ds-text)";
20
20
  export declare const iconColor: {
21
21
  [key in Appearance]: string;
22
22
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ExitingPersistenceProps } from '@atlaskit/motion/exiting-persistence';
2
3
  declare const ModalTransition: (props: Pick<ExitingPersistenceProps, 'children'>) => JSX.Element;
3
4
  export default ModalTransition;
@@ -1,4 +1,5 @@
1
1
  /** @jsx jsx */
2
+ /// <reference types="react" />
2
3
  import type { ModalDialogProps } from './types';
3
4
  export type { ModalDialogProps };
4
5
  declare const ModalWrapper: (props: ModalDialogProps) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "12.1.0",
3
+ "version": "12.2.2",
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,7 +27,6 @@
27
27
  "atlaskit:src": "src/index.ts",
28
28
  "atlassian": {
29
29
  "team": "Design System Team",
30
- "inPublicMirror": true,
31
30
  "releaseModel": "scheduled",
32
31
  "website": {
33
32
  "name": "Modal dialog"
@@ -41,16 +40,16 @@
41
40
  "@atlaskit/blanket": "^12.2.0",
42
41
  "@atlaskit/codemod-utils": "^3.4.0",
43
42
  "@atlaskit/ds-lib": "^1.3.0",
44
- "@atlaskit/focus-ring": "0.2.4",
45
- "@atlaskit/icon": "^21.9.0",
43
+ "@atlaskit/focus-ring": "^0.2.4",
44
+ "@atlaskit/icon": "^21.10.0",
46
45
  "@atlaskit/motion": "^1.0.0",
47
46
  "@atlaskit/portal": "^4.1.0",
48
- "@atlaskit/theme": "^12.0.0",
49
- "@atlaskit/tokens": "^0.3.0",
47
+ "@atlaskit/theme": "^12.1.0",
48
+ "@atlaskit/tokens": "^0.6.0",
50
49
  "@babel/runtime": "^7.0.0",
51
50
  "@emotion/core": "^10.0.9",
52
- "raf-schd": "^2.1.0",
53
- "react-focus-lock": "^1.19.1",
51
+ "raf-schd": "^4.0.3",
52
+ "react-focus-lock": "^2.5.2",
54
53
  "react-scrolllock": "^5.0.1",
55
54
  "react-uid": "^2.2.0"
56
55
  },
@@ -61,7 +60,6 @@
61
60
  "@atlaskit/avatar": "*",
62
61
  "@atlaskit/avatar-group": "*",
63
62
  "@atlaskit/breadcrumbs": "*",
64
- "@atlaskit/build-utils": "*",
65
63
  "@atlaskit/button": "*",
66
64
  "@atlaskit/checkbox": "*",
67
65
  "@atlaskit/datetime-picker": "*",
@@ -83,6 +81,7 @@
83
81
  "@testing-library/dom": "^7.7.3",
84
82
  "@testing-library/react": "^8.0.1",
85
83
  "@testing-library/react-hooks": "^1.0.4",
84
+ "@types/raf-schd": "^4.0.1",
86
85
  "@types/react-beautiful-dnd": "^11.0.1",
87
86
  "jscodeshift": "^0.13.0",
88
87
  "react-beautiful-dnd": "^12.1.1",
@@ -106,7 +105,10 @@
106
105
  "analytics": "analytics-next",
107
106
  "theming": "tokens",
108
107
  "deprecation": "no-deprecated-imports",
109
- "styling": "emotion"
108
+ "styling": [
109
+ "static",
110
+ "emotion"
111
+ ]
110
112
  }
111
113
  },
112
114
  "homepage": "https://atlassian.design/components/modal-dialog/",