@atlaskit/modal-dialog 12.5.0 → 12.5.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/modal-wrapper.js +1 -1
  3. package/dist/cjs/version.json +1 -1
  4. package/dist/es2019/modal-wrapper.js +1 -1
  5. package/dist/es2019/version.json +1 -1
  6. package/dist/esm/modal-wrapper.js +1 -1
  7. package/dist/esm/version.json +1 -1
  8. package/dist/types/internal/constants.d.ts +1 -1
  9. package/dist/types/internal/context.d.ts +1 -1
  10. package/dist/types/types.d.ts +6 -6
  11. package/dist/types-ts4.5/hooks.d.ts +1 -0
  12. package/dist/types-ts4.5/index.d.ts +8 -0
  13. package/dist/types-ts4.5/internal/components/modal-dialog.d.ts +4 -0
  14. package/dist/types-ts4.5/internal/components/positioner.d.ts +11 -0
  15. package/dist/types-ts4.5/internal/components/scroll-container.d.ts +20 -0
  16. package/dist/types-ts4.5/internal/constants.d.ts +22 -0
  17. package/dist/types-ts4.5/internal/context.d.ts +20 -0
  18. package/dist/types-ts4.5/internal/hooks/use-modal-stack.d.ts +13 -0
  19. package/dist/types-ts4.5/internal/hooks/use-on-motion-finish.d.ts +7 -0
  20. package/dist/types-ts4.5/internal/hooks/use-prevent-programmatic-scroll.d.ts +7 -0
  21. package/dist/types-ts4.5/internal/hooks/use-scroll.d.ts +1 -0
  22. package/dist/types-ts4.5/internal/utils.d.ts +3 -0
  23. package/dist/types-ts4.5/modal-body.d.ts +26 -0
  24. package/dist/types-ts4.5/modal-footer.d.ts +26 -0
  25. package/dist/types-ts4.5/modal-header.d.ts +26 -0
  26. package/dist/types-ts4.5/modal-title.d.ts +36 -0
  27. package/dist/types-ts4.5/modal-transition.d.ts +13 -0
  28. package/dist/types-ts4.5/modal-wrapper.d.ts +16 -0
  29. package/dist/types-ts4.5/types.d.ts +90 -0
  30. package/hooks/package.json +2 -2
  31. package/modal-body/package.json +2 -2
  32. package/modal-dialog/package.json +2 -2
  33. package/modal-footer/package.json +2 -2
  34. package/modal-header/package.json +2 -2
  35. package/modal-title/package.json +2 -2
  36. package/modal-transition/package.json +2 -2
  37. package/package.json +11 -3
  38. package/types/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/modal-dialog
2
2
 
3
+ ## 12.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
8
+
9
+ ## 12.5.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
14
+
3
15
  ## 12.5.0
4
16
 
5
17
  ### Minor 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.5.0"
88
+ packageVersion: "12.5.2"
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.5.0",
3
+ "version": "12.5.2",
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.5.0"
74
+ packageVersion: "12.5.2"
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.5.0",
3
+ "version": "12.5.2",
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.5.0"
78
+ packageVersion: "12.5.2"
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.5.0",
3
+ "version": "12.5.2",
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';
@@ -0,0 +1 @@
1
+ export declare const useModal: () => import("./internal/context").ModalAttributes;
@@ -0,0 +1,8 @@
1
+ export { default } from './modal-wrapper';
2
+ export { default as ModalTransition } from './modal-transition';
3
+ export type { KeyboardOrMouseEvent, Appearance, ModalAttributes, ModalDialogProps, ModalHeaderProps, ModalTitleProps, ModalBodyProps, ModalFooterProps, OnCloseHandler, OnCloseCompleteHandler, OnOpenCompleteHandler, OnStackChangeHandler, } from './types';
4
+ export { default as ModalHeader } from './modal-header';
5
+ export { default as ModalTitle } from './modal-title';
6
+ export { default as ModalBody } from './modal-body';
7
+ export { default as ModalFooter } from './modal-footer';
8
+ export { useModal } from './hooks';
@@ -0,0 +1,4 @@
1
+ import { jsx } from '@emotion/react';
2
+ import type { ModalDialogProps } from '../../types';
3
+ declare const ModalDialog: (props: ModalDialogProps) => jsx.JSX.Element;
4
+ export default ModalDialog;
@@ -0,0 +1,11 @@
1
+ /** @jsx jsx */
2
+ import { ReactNode } from 'react';
3
+ import { jsx } from '@emotion/react';
4
+ interface PositionerProps {
5
+ children?: ReactNode;
6
+ stackIndex: number;
7
+ shouldScrollInViewport: boolean;
8
+ testId?: string;
9
+ }
10
+ declare const Positioner: (props: PositionerProps) => jsx.JSX.Element;
11
+ export default Positioner;
@@ -0,0 +1,20 @@
1
+ /** @jsx jsx */
2
+ import React from 'react';
3
+ interface ScrollContainerProps {
4
+ /**
5
+ * Children of the body within modal dialog.
6
+ */
7
+ children: React.ReactNode;
8
+ /**
9
+ * A `testId` prop is provided for specified elements,
10
+ * which is a unique string that appears as a data attribute `data-testid` in the rendered code,
11
+ * serving as a hook for automated tests.
12
+ */
13
+ testId?: string;
14
+ }
15
+ /**
16
+ * A container that shows top and bottom keylines when the
17
+ * content overflows into the scrollable element.
18
+ */
19
+ declare const ScrollContainer: React.ForwardRefExoticComponent<ScrollContainerProps & React.RefAttributes<HTMLElement | null>>;
20
+ export default ScrollContainer;
@@ -0,0 +1,22 @@
1
+ import type { Appearance } from '../types';
2
+ export type WidthNames = 'small' | 'medium' | 'large' | 'x-large';
3
+ interface Width {
4
+ values: string[];
5
+ widths: {
6
+ [index in WidthNames]: number;
7
+ };
8
+ defaultValue: string;
9
+ }
10
+ export declare const width: Width;
11
+ export declare const gutter = 60;
12
+ export declare const borderRadius: number;
13
+ export declare const verticalOffset: number;
14
+ export declare const padding: number;
15
+ export declare const titleIconMargin: number;
16
+ export declare const keylineHeight = 2;
17
+ export declare const keylineColor: "var(--ds-border)";
18
+ export declare const textColor: "var(--ds-text)";
19
+ export declare const iconColor: {
20
+ [key in Appearance]: string;
21
+ };
22
+ export {};
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { ModalDialogProps, OnCloseHandler } from '../types';
3
+ export type ModalAttributes = {
4
+ /**
5
+ * Test id passed to the modal dialog.
6
+ */
7
+ testId?: ModalDialogProps['testId'];
8
+ /**
9
+ * Id referenced by the modal dialog's `aria-labelledby` attribute.
10
+ * This id should be assigned to the modal title element.
11
+ */
12
+ titleId: string;
13
+ /**
14
+ * Callback function called when the modal dialog is requesting to be closed,
15
+ * wrapped in modal dialog's analytic event context.
16
+ */
17
+ onClose?: OnCloseHandler;
18
+ };
19
+ export declare const ModalContext: import("react").Context<ModalAttributes | null>;
20
+ export declare const ScrollContext: import("react").Context<boolean | null>;
@@ -0,0 +1,13 @@
1
+ interface ModalStackOpts {
2
+ /**
3
+ * Fired when the modal dialog stack has changed.
4
+ */
5
+ onStackChange: (newStackIndex: number) => void;
6
+ }
7
+ /**
8
+ * Returns the position of the calling modal dialog in the modal dialog stack.
9
+ * Stack index of `0` is the highest position in the stack,
10
+ * with every higher number being behind in the stack.
11
+ */
12
+ export default function useModalStack({ onStackChange, }: ModalStackOpts): number;
13
+ export {};
@@ -0,0 +1,7 @@
1
+ import { RefObject } from 'react';
2
+ import type { Transition } from '@atlaskit/motion/types';
3
+ import { ModalDialogProps } from '../../types';
4
+ export default function useOnMotionFinish({ onOpenComplete, onCloseComplete, }: Pick<ModalDialogProps, 'onOpenComplete' | 'onCloseComplete'>): [
5
+ RefObject<HTMLElement>,
6
+ (state: Transition) => void
7
+ ];
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Prevents programatic scrolling of the viewport with `scrollIntoView`.
3
+ * Should be used in conjunction with a scroll lock to prevent a user from scrolling.
4
+ *
5
+ * @returns scroll top offset of the viewport
6
+ */
7
+ export default function usePreventProgrammaticScroll(): number;
@@ -0,0 +1 @@
1
+ export default function useScroll(): boolean;
@@ -0,0 +1,3 @@
1
+ import { ModalDialogProps } from '../types';
2
+ export declare const dialogWidth: (input?: ModalDialogProps['width']) => string;
3
+ export declare const dialogHeight: (input?: ModalDialogProps['height']) => string;
@@ -0,0 +1,26 @@
1
+ /** @jsx jsx */
2
+ import React from 'react';
3
+ import { jsx } from '@emotion/react';
4
+ export interface ModalBodyProps {
5
+ /**
6
+ * Children of modal dialog footer.
7
+ */
8
+ children: React.ReactNode;
9
+ /**
10
+ * A `testId` prop is provided for specified elements,
11
+ * which is a unique string that appears as a data attribute `data-testid` in the rendered code,
12
+ * serving as a hook for automated tests.
13
+ */
14
+ testId?: string;
15
+ }
16
+ /**
17
+ * __Modal body__
18
+ *
19
+ * A modal body is used to display the main content of a modal.
20
+ *
21
+ * - [Examples](https://atlassian.design/components/modal-dialog/examples)
22
+ * - [Code](https://atlassian.design/components/modal-dialog/code#modal-body-props)
23
+ * - [Usage](https://atlassian.design/components/modal-dialog/usage)
24
+ */
25
+ declare const ModalBody: (props: ModalBodyProps) => jsx.JSX.Element;
26
+ export default ModalBody;
@@ -0,0 +1,26 @@
1
+ /** @jsx jsx */
2
+ import { ReactNode } from 'react';
3
+ import { jsx } from '@emotion/react';
4
+ export interface ModalFooterProps {
5
+ /**
6
+ * Children of modal dialog footer.
7
+ */
8
+ children?: ReactNode;
9
+ /**
10
+ * A `testId` prop is provided for specified elements,
11
+ * which is a unique string that appears as a data attribute `data-testid` in the rendered code,
12
+ * serving as a hook for automated tests.
13
+ */
14
+ testId?: string;
15
+ }
16
+ /**
17
+ * __Modal footer__
18
+ *
19
+ * A modal footer often contains a primary action and the ability to cancel and close the dialog, though can contain any React element.
20
+ *
21
+ * - [Examples](https://atlassian.design/components/modal-dialog/examples#modal-footer)
22
+ * - [Code](https://atlassian.design/components/modal-dialog/code#modal-footer-props)
23
+ * - [Usage](https://atlassian.design/components/modal-dialog/usage)
24
+ */
25
+ declare const ModalFooter: (props: ModalFooterProps) => jsx.JSX.Element;
26
+ export default ModalFooter;
@@ -0,0 +1,26 @@
1
+ /** @jsx jsx */
2
+ import React from 'react';
3
+ import { jsx } from '@emotion/react';
4
+ export interface ModalHeaderProps {
5
+ /**
6
+ * Children of modal dialog header.
7
+ */
8
+ children?: React.ReactNode;
9
+ /**
10
+ * A `testId` prop is provided for specified elements,
11
+ * which is a unique string that appears as a data attribute `data-testid` in the rendered code,
12
+ * serving as a hook for automated tests.
13
+ */
14
+ testId?: string;
15
+ }
16
+ /**
17
+ * __Modal header__
18
+ *
19
+ * A modal header contains the title of the modal and can contain other React elements such as a close button.
20
+ *
21
+ * - [Examples](https://atlassian.design/components/modal-dialog/examples#modal-header)
22
+ * - [Code](https://atlassian.design/components/modal-dialog/code#modal-header-props)
23
+ * - [Usage](https://atlassian.design/components/modal-dialog/usage)
24
+ */
25
+ declare const ModalHeader: (props: ModalHeaderProps) => jsx.JSX.Element;
26
+ export default ModalHeader;
@@ -0,0 +1,36 @@
1
+ /** @jsx jsx */
2
+ import { ReactNode } from 'react';
3
+ import { jsx } from '@emotion/react';
4
+ import { Appearance } from './types';
5
+ export interface ModalTitleProps {
6
+ /**
7
+ * Appearance of the modal that changes the color of the primary action and adds an icon to the title.
8
+ */
9
+ appearance?: Appearance;
10
+ /**
11
+ * Children of modal dialog header.
12
+ */
13
+ children?: ReactNode;
14
+ /**
15
+ * When `true` will allow the title to span multiple lines.
16
+ * Defaults to `true`.
17
+ */
18
+ isMultiline?: boolean;
19
+ /**
20
+ * A `testId` prop is provided for specified elements,
21
+ * which is a unique string that appears as a data attribute `data-testid` in the rendered code,
22
+ * serving as a hook for automated tests.
23
+ */
24
+ testId?: string;
25
+ }
26
+ /**
27
+ * __Modal title__
28
+ *
29
+ * A modal title is used to display a title within a modal.
30
+ *
31
+ * - [Examples](https://atlassian.design/components/modal-dialog/examples)
32
+ * - [Code](https://atlassian.design/components/modal-dialog/code)
33
+ * - [Usage](https://atlassian.design/components/modal-dialog/usage)
34
+ */
35
+ declare const ModalTitle: (props: ModalTitleProps) => jsx.JSX.Element;
36
+ export default ModalTitle;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { ExitingPersistenceProps } from '@atlaskit/motion/exiting-persistence';
3
+ /**
4
+ * __Modal transition__
5
+ *
6
+ * A modal transition wraps a modal to provide a fluid transition upon opening and closing.
7
+ *
8
+ * - [Examples](https://atlassian.design/components/modal-dialog/examples)
9
+ * - [Code](https://atlassian.design/components/modal-dialog/code)
10
+ * - [Usage](https://atlassian.design/components/modal-dialog/usage)
11
+ */
12
+ declare const ModalTransition: (props: Pick<ExitingPersistenceProps, 'children'>) => JSX.Element;
13
+ export default ModalTransition;
@@ -0,0 +1,16 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
3
+ import type { ModalDialogProps } from './types';
4
+ export type { ModalDialogProps };
5
+ /**
6
+ * __Modal wrapper__
7
+ *
8
+ * A modal wrapper displays content that requires user interaction, in a layer above the page.
9
+ * This component is primary container for other modal components.
10
+ *
11
+ * - [Examples](https://atlassian.design/components/modal-dialog/examples)
12
+ * - [Code](https://atlassian.design/components/modal-dialog/code)
13
+ * - [Usage](https://atlassian.design/components/modal-dialog/usage)
14
+ */
15
+ declare const ModalWrapper: (props: ModalDialogProps) => jsx.JSX.Element;
16
+ export default ModalWrapper;
@@ -0,0 +1,90 @@
1
+ import React, { RefObject } from 'react';
2
+ import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
+ import type { WidthNames } from './internal/constants';
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
+ export type { ModalHeaderProps } from './modal-header';
11
+ export type { ModalTitleProps } from './modal-title';
12
+ export type { ModalBodyProps } from './modal-body';
13
+ export type { ModalFooterProps } from './modal-footer';
14
+ export type { ModalAttributes } from './internal/context';
15
+ export interface ModalDialogProps {
16
+ /**
17
+ * Focus is moved to the first interactive element inside the modal dialog when `true`.
18
+ * Pass an element `ref` to focus on a specific element.
19
+ */
20
+ autoFocus?: boolean | RefObject<HTMLElement | null | undefined>;
21
+ /**
22
+ * Contents of the modal dialog.
23
+ */
24
+ children?: React.ReactNode;
25
+ /**
26
+ * Height of the modal dialog.
27
+ * When unset the modal dialog will grow to fill the viewport and then start overflowing its contents.
28
+ */
29
+ height?: number | string;
30
+ /**
31
+ * Width of the modal dialog.
32
+ * The recommended way to specify modal width is using named size options.
33
+ */
34
+ width?: number | string | WidthNames;
35
+ /**
36
+ * Callback function called when the modal dialog is requesting to be closed.
37
+ */
38
+ onClose?: OnCloseHandler;
39
+ /**
40
+ * Callback function called when the modal dialog has finished closing.
41
+ */
42
+ onCloseComplete?: OnCloseCompleteHandler;
43
+ /**
44
+ * Callback function called when the modal dialog has finished opening.
45
+ */
46
+ onOpenComplete?: OnOpenCompleteHandler;
47
+ /**
48
+ * Callback function called when the modal changes position in the stack.
49
+ */
50
+ onStackChange?: OnStackChangeHandler;
51
+ /**
52
+ * Will set the scroll boundary to the viewport.
53
+ * If set to false, the scroll boundary is set to the modal dialog body.
54
+ */
55
+ shouldScrollInViewport?: boolean;
56
+ /**
57
+ * Calls `onClose` when clicking the blanket behind the modal dialog.
58
+ */
59
+ shouldCloseOnOverlayClick?: boolean;
60
+ /**
61
+ * Calls `onClose` when pressing escape.
62
+ */
63
+ shouldCloseOnEscapePress?: boolean;
64
+ /**
65
+ * Will remove the blanket tinted background color.
66
+ */
67
+ isBlanketHidden?: boolean;
68
+ /**
69
+ * Number representing where in the stack of modals this modal sits.
70
+ * This offsets the modal dialogs vertical position.
71
+ */
72
+ stackIndex?: number;
73
+ /**
74
+ * A `testId` prop is provided for specified elements,
75
+ * which is a unique string that appears as a data attribute `data-testid` in the rendered code,
76
+ * serving as a hook for automated tests.
77
+ *
78
+ * If not overridden using `testId` prop in the respective components,
79
+ * this will set `data-testid` on these elements when defined:
80
+ *
81
+ * - Modal dialog - `{testId}`
82
+ * - Modal header - `{testId}--header`
83
+ * - Modal title - `{testId}--title`
84
+ * - Modal body - `{testId}--body`
85
+ * - Modal footer - `{testId}--footer`
86
+ * - Scrollable element - `{testId}--scrollable`
87
+ * - Blanket - `{testId}--blanket`
88
+ */
89
+ testId?: string;
90
+ }
@@ -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.5.0",
3
+ "version": "12.5.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/"
@@ -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",
@@ -46,7 +54,7 @@
46
54
  "@atlaskit/motion": "^1.4.0",
47
55
  "@atlaskit/portal": "^4.3.0",
48
56
  "@atlaskit/theme": "^12.5.0",
49
- "@atlaskit/tokens": "^1.3.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
  }