@atlaskit/modal-dialog 12.4.2 → 12.4.3

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,11 @@
1
1
  # @atlaskit/modal-dialog
2
2
 
3
+ ## 12.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 12.4.2
4
10
 
5
11
  ### Patch Changes
@@ -103,7 +103,7 @@ var ModalWrapper = function ModalWrapper(props) {
103
103
  action: 'closed',
104
104
  componentName: 'modalDialog',
105
105
  packageName: "@atlaskit/modal-dialog",
106
- packageVersion: "12.4.2"
106
+ packageVersion: "12.4.3"
107
107
  });
108
108
  var onBlanketClicked = (0, _react.useCallback)(function (e) {
109
109
  if (shouldCloseOnOverlayClick) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "12.4.2",
3
+ "version": "12.4.3",
4
4
  "sideEffects": false
5
5
  }
@@ -70,7 +70,7 @@ const ModalWrapper = props => {
70
70
  action: 'closed',
71
71
  componentName: 'modalDialog',
72
72
  packageName: "@atlaskit/modal-dialog",
73
- packageVersion: "12.4.2"
73
+ packageVersion: "12.4.3"
74
74
  });
75
75
  const onBlanketClicked = useCallback(e => {
76
76
  if (shouldCloseOnOverlayClick) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "12.4.2",
3
+ "version": "12.4.3",
4
4
  "sideEffects": false
5
5
  }
@@ -74,7 +74,7 @@ var ModalWrapper = function ModalWrapper(props) {
74
74
  action: 'closed',
75
75
  componentName: 'modalDialog',
76
76
  packageName: "@atlaskit/modal-dialog",
77
- packageVersion: "12.4.2"
77
+ packageVersion: "12.4.3"
78
78
  });
79
79
  var onBlanketClicked = useCallback(function (e) {
80
80
  if (shouldCloseOnOverlayClick) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "12.4.2",
3
+ "version": "12.4.3",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "12.4.2",
3
+ "version": "12.4.3",
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,7 +47,7 @@
47
47
  "@atlaskit/motion": "^1.3.0",
48
48
  "@atlaskit/portal": "^4.1.0",
49
49
  "@atlaskit/theme": "^12.2.0",
50
- "@atlaskit/tokens": "^0.11.0",
50
+ "@atlaskit/tokens": "^0.12.0",
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "@emotion/react": "^11.7.1",
53
53
  "bind-event-listener": "^2.1.1",
package/report.api.md CHANGED
@@ -1,12 +1,17 @@
1
+ <!-- API Report Version: 2.2 -->
2
+
1
3
  ## API Report File for "@atlaskit/modal-dialog"
2
4
 
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
6
+ > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
+
8
+ ### Table of contents
4
9
 
5
- <!--
6
- Generated API Report version: 2.0
7
- -->
10
+ - [Main Entry Types](#main-entry-types)
8
11
 
9
- [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
12
+ ### Main Entry Types
13
+
14
+ <!--SECTION START: Main Entry Types-->
10
15
 
11
16
  ```ts
12
17
  /// <reference types="react" />
@@ -23,9 +28,9 @@ export type Appearance = 'danger' | 'warning';
23
28
 
24
29
  // @public (undocumented)
25
30
  export type KeyboardOrMouseEvent =
26
- | React_2.MouseEvent<any>
31
+ | KeyboardEvent
27
32
  | React_2.KeyboardEvent<any>
28
- | KeyboardEvent;
33
+ | React_2.MouseEvent<any>;
29
34
 
30
35
  // @public (undocumented)
31
36
  export type ModalAttributes = {
@@ -45,7 +50,7 @@ export interface ModalBodyProps {
45
50
 
46
51
  // @public (undocumented)
47
52
  export interface ModalDialogProps {
48
- autoFocus?: boolean | RefObject<HTMLElement | null | undefined>;
53
+ autoFocus?: RefObject<HTMLElement | null | undefined> | boolean;
49
54
  children?: React_2.ReactNode;
50
55
  height?: number | string;
51
56
  isBlanketHidden?: boolean;
@@ -58,7 +63,7 @@ export interface ModalDialogProps {
58
63
  shouldScrollInViewport?: boolean;
59
64
  stackIndex?: number;
60
65
  testId?: string;
61
- width?: number | string | WidthNames;
66
+ width?: WidthNames | number | string;
62
67
  }
63
68
 
64
69
  // @public
@@ -121,7 +126,9 @@ export type OnStackChangeHandler = (stackIndex: number) => void;
121
126
  export const useModal: () => ModalAttributes;
122
127
 
123
128
  // @public (undocumented)
124
- type WidthNames = 'small' | 'medium' | 'large' | 'x-large';
129
+ type WidthNames = 'large' | 'medium' | 'small' | 'x-large';
125
130
 
126
131
  // (No @packageDocumentation comment for this package)
127
132
  ```
133
+
134
+ <!--SECTION END: Main Entry Types-->