@atlaskit/modal-dialog 12.4.13 → 12.5.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,21 @@
1
1
  # @atlaskit/modal-dialog
2
2
 
3
+ ## 12.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
8
+
9
+ ## 12.5.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 12.4.13
4
20
 
5
21
  ### Patch Changes
@@ -85,7 +85,7 @@ var ModalWrapper = function ModalWrapper(props) {
85
85
  action: 'closed',
86
86
  componentName: 'modalDialog',
87
87
  packageName: "@atlaskit/modal-dialog",
88
- packageVersion: "12.4.13"
88
+ packageVersion: "12.5.1"
89
89
  });
90
90
  var onBlanketClicked = (0, _react.useCallback)(function (e) {
91
91
  if (shouldCloseOnOverlayClick) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "12.4.13",
3
+ "version": "12.5.1",
4
4
  "sideEffects": false
5
5
  }
@@ -71,7 +71,7 @@ const ModalWrapper = props => {
71
71
  action: 'closed',
72
72
  componentName: 'modalDialog',
73
73
  packageName: "@atlaskit/modal-dialog",
74
- packageVersion: "12.4.13"
74
+ packageVersion: "12.5.1"
75
75
  });
76
76
  const onBlanketClicked = useCallback(e => {
77
77
  if (shouldCloseOnOverlayClick) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "12.4.13",
3
+ "version": "12.5.1",
4
4
  "sideEffects": false
5
5
  }
@@ -75,7 +75,7 @@ var ModalWrapper = function ModalWrapper(props) {
75
75
  action: 'closed',
76
76
  componentName: 'modalDialog',
77
77
  packageName: "@atlaskit/modal-dialog",
78
- packageVersion: "12.4.13"
78
+ packageVersion: "12.5.1"
79
79
  });
80
80
  var onBlanketClicked = useCallback(function (e) {
81
81
  if (shouldCloseOnOverlayClick) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "12.4.13",
3
+ "version": "12.5.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import type { Appearance } from '../types';
2
- export declare type WidthNames = 'small' | 'medium' | 'large' | 'x-large';
2
+ export type WidthNames = 'small' | 'medium' | 'large' | 'x-large';
3
3
  interface Width {
4
4
  values: string[];
5
5
  widths: {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ModalDialogProps, OnCloseHandler } from '../types';
3
- export declare type ModalAttributes = {
3
+ export type ModalAttributes = {
4
4
  /**
5
5
  * Test id passed to the modal dialog.
6
6
  */
@@ -1,12 +1,12 @@
1
1
  import React, { RefObject } from 'react';
2
2
  import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  import type { WidthNames } from './internal/constants';
4
- export declare type KeyboardOrMouseEvent = React.MouseEvent<any> | React.KeyboardEvent<any> | KeyboardEvent;
5
- export declare type Appearance = 'danger' | 'warning';
6
- export declare type OnCloseHandler = (e: KeyboardOrMouseEvent, analyticEvent: UIAnalyticsEvent) => void;
7
- export declare type OnCloseCompleteHandler = (element: HTMLElement) => void;
8
- export declare type OnOpenCompleteHandler = (node: HTMLElement, isAppearing: boolean) => void;
9
- export declare type OnStackChangeHandler = (stackIndex: number) => void;
4
+ export type KeyboardOrMouseEvent = React.MouseEvent<any> | React.KeyboardEvent<any> | KeyboardEvent;
5
+ export type Appearance = 'danger' | 'warning';
6
+ export type OnCloseHandler = (e: KeyboardOrMouseEvent, analyticEvent: UIAnalyticsEvent) => void;
7
+ export type OnCloseCompleteHandler = (element: HTMLElement) => void;
8
+ export type OnOpenCompleteHandler = (node: HTMLElement, isAppearing: boolean) => void;
9
+ export type OnStackChangeHandler = (stackIndex: number) => void;
10
10
  export type { ModalHeaderProps } from './modal-header';
11
11
  export type { ModalTitleProps } from './modal-title';
12
12
  export type { ModalBodyProps } from './modal-body';
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/hooks.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/hooks.d.ts"
11
+ "../dist/types-ts4.5/hooks.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/modal-body.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/modal-body.d.ts"
11
+ "../dist/types-ts4.5/modal-body.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/modal-wrapper.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/modal-wrapper.d.ts"
11
+ "../dist/types-ts4.5/modal-wrapper.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/modal-footer.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/modal-footer.d.ts"
11
+ "../dist/types-ts4.5/modal-footer.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/modal-header.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/modal-header.d.ts"
11
+ "../dist/types-ts4.5/modal-header.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/modal-title.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/modal-title.d.ts"
11
+ "../dist/types-ts4.5/modal-title.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/modal-transition.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/modal-transition.d.ts"
11
+ "../dist/types-ts4.5/modal-transition.d.ts"
12
12
  ]
13
13
  }
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "12.4.13",
3
+ "version": "12.5.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/"
@@ -12,6 +12,14 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
+ "typesVersions": {
16
+ ">=4.5 <4.9": {
17
+ "*": [
18
+ "dist/types-ts4.5/*",
19
+ "dist/types-ts4.5/index.d.ts"
20
+ ]
21
+ }
22
+ },
15
23
  "sideEffects": false,
16
24
  "af:exports": {
17
25
  ".": "./src/index.tsx",
@@ -37,16 +45,16 @@
37
45
  "watch": "tsc --watch --noEmit --project './tsconfig.json'"
38
46
  },
39
47
  "dependencies": {
40
- "@atlaskit/analytics-next": "^9.0.0",
41
- "@atlaskit/blanket": "^12.3.0",
42
- "@atlaskit/codemod-utils": "^4.1.0",
43
- "@atlaskit/ds-lib": "^2.1.0",
44
- "@atlaskit/focus-ring": "^1.2.0",
45
- "@atlaskit/icon": "^21.11.0",
46
- "@atlaskit/motion": "^1.3.0",
47
- "@atlaskit/portal": "^4.1.0",
48
- "@atlaskit/theme": "^12.4.0",
49
- "@atlaskit/tokens": "^1.2.0",
48
+ "@atlaskit/analytics-next": "^9.1.0",
49
+ "@atlaskit/blanket": "^12.4.0",
50
+ "@atlaskit/codemod-utils": "^4.2.0",
51
+ "@atlaskit/ds-lib": "^2.2.0",
52
+ "@atlaskit/focus-ring": "^1.3.0",
53
+ "@atlaskit/icon": "^21.12.0",
54
+ "@atlaskit/motion": "^1.4.0",
55
+ "@atlaskit/portal": "^4.3.0",
56
+ "@atlaskit/theme": "^12.5.0",
57
+ "@atlaskit/tokens": "^1.4.0",
50
58
  "@babel/runtime": "^7.0.0",
51
59
  "@emotion/react": "^11.7.1",
52
60
  "bind-event-listener": "^2.1.1",
@@ -91,7 +99,7 @@
91
99
  "react-dom": "^16.8.0",
92
100
  "react-lorem-component": "^0.13.0",
93
101
  "storybook-addon-performance": "^0.16.0",
94
- "typescript": "4.5.5",
102
+ "typescript": "~4.9.5",
95
103
  "wait-for-expect": "^1.2.0"
96
104
  },
97
105
  "keywords": [
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/types.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/types.d.ts"
11
+ "../dist/types-ts4.5/types.d.ts"
12
12
  ]
13
13
  }
14
14
  }