@atlaskit/inline-dialog 13.4.0 → 13.4.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 +12 -0
- package/dist/cjs/InlineDialog/index.js +1 -1
- package/dist/cjs/InlineDialog/styled/container.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/InlineDialog/index.js +1 -1
- package/dist/es2019/InlineDialog/styled/container.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/InlineDialog/index.js +1 -1
- package/dist/esm/InlineDialog/styled/container.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/InlineDialog/index.d.ts +1 -1
- package/dist/types-ts4.0/InlineDialog/index.d.ts +7 -0
- package/dist/types-ts4.0/InlineDialog/styled/container.d.ts +19 -0
- package/dist/types-ts4.0/index.d.ts +2 -0
- package/dist/types-ts4.0/types.d.ts +49 -0
- package/package.json +17 -7
- package/report.api.md +5 -3
- package/types/package.json +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/inline-dialog
|
|
2
2
|
|
|
3
|
+
## 13.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9de88fa1e1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9de88fa1e1e) - Internal changes to include spacing tokens in component implementations.
|
|
8
|
+
|
|
9
|
+
## 13.4.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
14
|
+
|
|
3
15
|
## 13.4.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -31,7 +31,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
31
31
|
|
|
32
32
|
/** @jsx jsx */
|
|
33
33
|
var packageName = "@atlaskit/inline-dialog";
|
|
34
|
-
var packageVersion = "13.4.
|
|
34
|
+
var packageVersion = "13.4.2";
|
|
35
35
|
|
|
36
36
|
var checkIsChildOfPortal = function checkIsChildOfPortal(node) {
|
|
37
37
|
if (!node) {
|
|
@@ -50,7 +50,7 @@ var containerStyles = (0, _react2.css)({
|
|
|
50
50
|
boxSizing: 'content-box',
|
|
51
51
|
maxWidth: "".concat(gridSize * 56, "px"),
|
|
52
52
|
maxHeight: "".concat(gridSize * 56, "px"),
|
|
53
|
-
padding: "".concat(
|
|
53
|
+
padding: "var(--ds-scale-200, 16px)".concat(" ", "var(--ds-scale-300, 24px)"),
|
|
54
54
|
zIndex: _constants.layers.dialog(),
|
|
55
55
|
background: "var(".concat(CSS_THEME_BACKGROUND, ")"),
|
|
56
56
|
borderRadius: "".concat(borderRadius, "px"),
|
package/dist/cjs/version.json
CHANGED
|
@@ -8,7 +8,7 @@ import noop from '@atlaskit/ds-lib/noop';
|
|
|
8
8
|
import { Manager, Popper, Reference } from '@atlaskit/popper';
|
|
9
9
|
import { Container } from './styled/container';
|
|
10
10
|
const packageName = "@atlaskit/inline-dialog";
|
|
11
|
-
const packageVersion = "13.4.
|
|
11
|
+
const packageVersion = "13.4.2";
|
|
12
12
|
|
|
13
13
|
const checkIsChildOfPortal = node => {
|
|
14
14
|
if (!node) {
|
|
@@ -29,7 +29,7 @@ const containerStyles = css({
|
|
|
29
29
|
boxSizing: 'content-box',
|
|
30
30
|
maxWidth: `${gridSize * 56}px`,
|
|
31
31
|
maxHeight: `${gridSize * 56}px`,
|
|
32
|
-
padding: `${
|
|
32
|
+
padding: `${"var(--ds-scale-200, 16px)"} ${"var(--ds-scale-300, 24px)"}`,
|
|
33
33
|
zIndex: layers.dialog(),
|
|
34
34
|
background: `var(${CSS_THEME_BACKGROUND})`,
|
|
35
35
|
borderRadius: `${borderRadius}px`,
|
package/dist/es2019/version.json
CHANGED
|
@@ -8,7 +8,7 @@ import noop from '@atlaskit/ds-lib/noop';
|
|
|
8
8
|
import { Manager, Popper, Reference } from '@atlaskit/popper';
|
|
9
9
|
import { Container } from './styled/container';
|
|
10
10
|
var packageName = "@atlaskit/inline-dialog";
|
|
11
|
-
var packageVersion = "13.4.
|
|
11
|
+
var packageVersion = "13.4.2";
|
|
12
12
|
|
|
13
13
|
var checkIsChildOfPortal = function checkIsChildOfPortal(node) {
|
|
14
14
|
if (!node) {
|
|
@@ -35,7 +35,7 @@ var containerStyles = css({
|
|
|
35
35
|
boxSizing: 'content-box',
|
|
36
36
|
maxWidth: "".concat(gridSize * 56, "px"),
|
|
37
37
|
maxHeight: "".concat(gridSize * 56, "px"),
|
|
38
|
-
padding: "".concat(
|
|
38
|
+
padding: "var(--ds-scale-200, 16px)".concat(" ", "var(--ds-scale-300, 24px)"),
|
|
39
39
|
zIndex: layers.dialog(),
|
|
40
40
|
background: "var(".concat(CSS_THEME_BACKGROUND, ")"),
|
|
41
41
|
borderRadius: "".concat(borderRadius, "px"),
|
package/dist/esm/version.json
CHANGED
|
@@ -3,5 +3,5 @@ import React, { FC } from 'react';
|
|
|
3
3
|
import type { InlineDialogProps } from '../types';
|
|
4
4
|
declare const InlineDialog: FC<InlineDialogProps>;
|
|
5
5
|
export { InlineDialog as InlineDialogWithoutAnalytics };
|
|
6
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<InlineDialogProps>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "
|
|
6
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<InlineDialogProps>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "children" | "content" | "isOpen" | "onContentBlur" | "onContentClick" | "onContentFocus" | "onClose" | "placement" | "strategy" | "testId" | "key" | "analyticsContext"> & React.RefAttributes<any>>;
|
|
7
7
|
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React, { FC } from 'react';
|
|
3
|
+
import type { InlineDialogProps } from '../types';
|
|
4
|
+
declare const InlineDialog: FC<InlineDialogProps>;
|
|
5
|
+
export { InlineDialog as InlineDialogWithoutAnalytics };
|
|
6
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<InlineDialogProps>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "children" | "content" | "isOpen" | "onContentBlur" | "onContentClick" | "onContentFocus" | "onClose" | "placement" | "strategy" | "testId" | "key" | "analyticsContext"> & React.RefAttributes<any>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface ContainerProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
6
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
7
|
+
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
8
|
+
style: React.CSSProperties;
|
|
9
|
+
testId?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* __Container__
|
|
13
|
+
*
|
|
14
|
+
* A container is used as a styled wrapper around the contents of an inline dialog.
|
|
15
|
+
* Note that the styles here are merged with the style prop that comes from the popper.js library.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
export declare type Placement = 'auto-start' | 'auto' | 'auto-end' | 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-end' | 'bottom' | 'bottom-start' | 'left-end' | 'left' | 'left-start';
|
|
4
|
+
export interface InlineDialogProps extends WithAnalyticsEventsProps {
|
|
5
|
+
/**
|
|
6
|
+
* The elements that the InlineDialog will be positioned relative to.
|
|
7
|
+
*/
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* The elements to be displayed within the InlineDialog.
|
|
11
|
+
*/
|
|
12
|
+
content: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Sets whether to show or hide the dialog.
|
|
15
|
+
*/
|
|
16
|
+
isOpen?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Function called when you lose focus on the object.
|
|
19
|
+
*/
|
|
20
|
+
onContentBlur?: () => void;
|
|
21
|
+
/**
|
|
22
|
+
* Function called when user clicks on the open dialog.
|
|
23
|
+
*/
|
|
24
|
+
onContentClick?: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* Function called when user focuses on the open dialog.
|
|
27
|
+
*/
|
|
28
|
+
onContentFocus?: () => void;
|
|
29
|
+
/**
|
|
30
|
+
* Function called when the dialog is open and a click occurs anywhere outside
|
|
31
|
+
* the dialog.
|
|
32
|
+
*/
|
|
33
|
+
onClose?: (obj: {
|
|
34
|
+
isOpen: boolean;
|
|
35
|
+
event: Event;
|
|
36
|
+
}) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Where the dialog should appear, relative to the contents of the children.
|
|
39
|
+
*/
|
|
40
|
+
placement?: Placement;
|
|
41
|
+
/**
|
|
42
|
+
* Placement strategy used. Can be 'fixed' or 'absolute'. Defaults to 'fixed'.
|
|
43
|
+
*/
|
|
44
|
+
strategy?: 'fixed' | 'absolute';
|
|
45
|
+
/**
|
|
46
|
+
* A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests
|
|
47
|
+
*/
|
|
48
|
+
testId?: string;
|
|
49
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/inline-dialog",
|
|
3
|
-
"version": "13.4.
|
|
3
|
+
"version": "13.4.2",
|
|
4
4
|
"description": "An inline dialog is a pop-up container for small amounts of information. It can also contain controls.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,9 +12,18 @@
|
|
|
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.0 <4.5": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.0/*",
|
|
19
|
+
"dist/types-ts4.0/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"sideEffects": false,
|
|
16
24
|
"atlaskit:src": "src/index.tsx",
|
|
17
25
|
"atlassian": {
|
|
26
|
+
"disableProductCI": true,
|
|
18
27
|
"team": "Design System Team",
|
|
19
28
|
"deprecatedAutoEntryPoints": true,
|
|
20
29
|
"releaseModel": "scheduled",
|
|
@@ -47,20 +56,20 @@
|
|
|
47
56
|
},
|
|
48
57
|
"devDependencies": {
|
|
49
58
|
"@atlaskit/button": "^16.3.0",
|
|
50
|
-
"@atlaskit/datetime-picker": "^12.
|
|
59
|
+
"@atlaskit/datetime-picker": "^12.3.0",
|
|
51
60
|
"@atlaskit/docs": "*",
|
|
52
|
-
"@atlaskit/icon": "^21.
|
|
53
|
-
"@atlaskit/modal-dialog": "^12.
|
|
54
|
-
"@atlaskit/section-message": "^6.
|
|
61
|
+
"@atlaskit/icon": "^21.11.0",
|
|
62
|
+
"@atlaskit/modal-dialog": "^12.4.0",
|
|
63
|
+
"@atlaskit/section-message": "^6.3.0",
|
|
55
64
|
"@atlaskit/select": "^15.7.0",
|
|
56
65
|
"@atlaskit/ssr": "*",
|
|
57
66
|
"@atlaskit/visual-regression": "*",
|
|
58
67
|
"@atlaskit/webdriver-runner": "*",
|
|
59
68
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
60
|
-
"@testing-library/react": "^
|
|
69
|
+
"@testing-library/react": "^12.1.5",
|
|
61
70
|
"react-dom": "^16.8.0",
|
|
62
71
|
"react-lorem-component": "^0.13.0",
|
|
63
|
-
"typescript": "4.
|
|
72
|
+
"typescript": "4.5.5",
|
|
64
73
|
"wait-for-expect": "^1.2.0"
|
|
65
74
|
},
|
|
66
75
|
"keywords": [
|
|
@@ -83,6 +92,7 @@
|
|
|
83
92
|
"static",
|
|
84
93
|
"emotion"
|
|
85
94
|
],
|
|
95
|
+
"design-tokens": "spacing",
|
|
86
96
|
"design-system": "v1",
|
|
87
97
|
"deprecation": "no-deprecated-imports"
|
|
88
98
|
}
|
package/report.api.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/inline-dialog"
|
|
1
|
+
## API Report File for "@atlaskit/inline-dialog".
|
|
2
2
|
|
|
3
|
-
> Do not edit this file.
|
|
3
|
+
> Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
4
6
|
|
|
5
7
|
```ts
|
|
6
8
|
import { default as React_2 } from 'react';
|
|
@@ -19,6 +21,7 @@ declare const _default: React_2.ForwardRefExoticComponent<
|
|
|
19
21
|
| 'content'
|
|
20
22
|
| 'children'
|
|
21
23
|
| 'testId'
|
|
24
|
+
| 'key'
|
|
22
25
|
| 'isOpen'
|
|
23
26
|
| 'onContentBlur'
|
|
24
27
|
| 'onContentClick'
|
|
@@ -26,7 +29,6 @@ declare const _default: React_2.ForwardRefExoticComponent<
|
|
|
26
29
|
| 'onClose'
|
|
27
30
|
| 'placement'
|
|
28
31
|
| 'strategy'
|
|
29
|
-
| 'key'
|
|
30
32
|
| 'analyticsContext'
|
|
31
33
|
> &
|
|
32
34
|
React_2.RefAttributes<any>
|
package/types/package.json
CHANGED
|
@@ -4,5 +4,12 @@
|
|
|
4
4
|
"module": "../dist/esm/types.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/types.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/types.d.ts"
|
|
7
|
+
"types": "../dist/types/types.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.0 <4.5": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.0/types.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
8
15
|
}
|