@atlaskit/inline-dialog 13.3.7 → 13.4.0
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 +22 -0
- package/dist/cjs/InlineDialog/index.js +6 -6
- package/dist/cjs/InlineDialog/styled/container.js +3 -3
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/InlineDialog/index.js +2 -2
- package/dist/es2019/InlineDialog/styled/container.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/InlineDialog/index.js +2 -2
- 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/package.json +10 -10
- package/report.api.md +98 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/inline-dialog
|
|
2
2
|
|
|
3
|
+
## 13.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`8d2ea17980d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d2ea17980d) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 13.3.9
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
18
|
+
|
|
19
|
+
## 13.3.8
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [`8a5bdb3c844`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8a5bdb3c844) - Upgrading internal dependency (bind-event-listener) for improved internal types
|
|
24
|
+
|
|
3
25
|
## 13.3.7
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ exports.default = exports.InlineDialogWithoutAnalytics = void 0;
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
15
|
|
|
16
16
|
var _bindEventListener = require("bind-event-listener");
|
|
17
17
|
|
|
@@ -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.
|
|
34
|
+
var packageVersion = "13.4.0";
|
|
35
35
|
|
|
36
36
|
var checkIsChildOfPortal = function checkIsChildOfPortal(node) {
|
|
37
37
|
if (!node) {
|
|
@@ -114,13 +114,13 @@ var InlineDialog = /*#__PURE__*/(0, _react.memo)(function InlineDialog(_ref) {
|
|
|
114
114
|
});
|
|
115
115
|
return unbind;
|
|
116
116
|
}, [isOpen, handleClickOutside]);
|
|
117
|
-
var popper = isOpen ? (0,
|
|
117
|
+
var popper = isOpen ? (0, _react2.jsx)(_popper.Popper, {
|
|
118
118
|
placement: placement,
|
|
119
119
|
strategy: strategy
|
|
120
120
|
}, function (_ref2) {
|
|
121
121
|
var _ref3 = _ref2.ref,
|
|
122
122
|
style = _ref2.style;
|
|
123
|
-
return (0,
|
|
123
|
+
return (0, _react2.jsx)(_container.Container, {
|
|
124
124
|
onBlur: onContentBlur,
|
|
125
125
|
onFocus: onContentFocus,
|
|
126
126
|
onClick: onContentClick,
|
|
@@ -139,9 +139,9 @@ var InlineDialog = /*#__PURE__*/(0, _react.memo)(function InlineDialog(_ref) {
|
|
|
139
139
|
testId: testId
|
|
140
140
|
}, content);
|
|
141
141
|
}) : null;
|
|
142
|
-
return (0,
|
|
142
|
+
return (0, _react2.jsx)(_popper.Manager, null, (0, _react2.jsx)(_popper.Reference, null, function (_ref4) {
|
|
143
143
|
var ref = _ref4.ref;
|
|
144
|
-
return (0,
|
|
144
|
+
return (0, _react2.jsx)(_reactNodeResolver.default, {
|
|
145
145
|
innerRef: function innerRef(node) {
|
|
146
146
|
triggerRef.current = node;
|
|
147
147
|
|
|
@@ -13,7 +13,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _react2 = require("@emotion/react");
|
|
17
17
|
|
|
18
18
|
var _colors = require("@atlaskit/theme/colors");
|
|
19
19
|
|
|
@@ -46,7 +46,7 @@ var gridSize = (0, _constants.gridSize)();
|
|
|
46
46
|
var CSS_THEME_BACKGROUND = '--theme-background';
|
|
47
47
|
var CSS_THEME_COLOR = '--theme-color';
|
|
48
48
|
var CSS_THEME_BOX_SHADOW = '--theme-box-shadow';
|
|
49
|
-
var containerStyles = (0,
|
|
49
|
+
var containerStyles = (0, _react2.css)({
|
|
50
50
|
boxSizing: 'content-box',
|
|
51
51
|
maxWidth: "".concat(gridSize * 56, "px"),
|
|
52
52
|
maxHeight: "".concat(gridSize * 56, "px"),
|
|
@@ -78,7 +78,7 @@ var Container = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
78
78
|
style = _ref.style,
|
|
79
79
|
testId = _ref.testId;
|
|
80
80
|
var theme = (0, _components.useGlobalTheme)();
|
|
81
|
-
return (0,
|
|
81
|
+
return (0, _react2.jsx)("div", {
|
|
82
82
|
css: containerStyles,
|
|
83
83
|
"data-testid": testId,
|
|
84
84
|
onBlur: onBlur,
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { memo, useCallback, useEffect, useRef } from 'react';
|
|
3
|
-
import { jsx } from '@emotion/
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
4
|
import { bind } from 'bind-event-listener';
|
|
5
5
|
import NodeResolver from 'react-node-resolver';
|
|
6
6
|
import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -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.
|
|
11
|
+
const packageVersion = "13.4.0";
|
|
12
12
|
|
|
13
13
|
const checkIsChildOfPortal = node => {
|
|
14
14
|
if (!node) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import React, { forwardRef } from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { DN50, DN50A, DN600, DN60A, N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
9
9
|
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
10
10
|
import { borderRadius as getBorderRadius, gridSize as getGridSize, layers } from '@atlaskit/theme/constants';
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { memo, useCallback, useEffect, useRef } from 'react';
|
|
3
|
-
import { jsx } from '@emotion/
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
4
|
import { bind } from 'bind-event-listener';
|
|
5
5
|
import NodeResolver from 'react-node-resolver';
|
|
6
6
|
import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -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.
|
|
11
|
+
var packageVersion = "13.4.0";
|
|
12
12
|
|
|
13
13
|
var checkIsChildOfPortal = function checkIsChildOfPortal(node) {
|
|
14
14
|
if (!node) {
|
|
@@ -10,7 +10,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
10
10
|
|
|
11
11
|
/** @jsx jsx */
|
|
12
12
|
import React, { forwardRef } from 'react';
|
|
13
|
-
import { css, jsx } from '@emotion/
|
|
13
|
+
import { css, jsx } from '@emotion/react';
|
|
14
14
|
import { DN50, DN50A, DN600, DN60A, N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
15
15
|
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
16
16
|
import { borderRadius as getBorderRadius, gridSize as getGridSize, layers } from '@atlaskit/theme/constants';
|
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, "content" | "children" | "testId" | "isOpen" | "onContentBlur" | "onContentClick" | "onContentFocus" | "onClose" | "placement" | "strategy" | "
|
|
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, "content" | "children" | "testId" | "key" | "isOpen" | "onContentBlur" | "onContentClick" | "onContentFocus" | "onClose" | "placement" | "strategy" | "analyticsContext"> & React.RefAttributes<any>>;
|
|
7
7
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/inline-dialog",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.4.0",
|
|
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/"
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
36
|
-
"@atlaskit/ds-lib": "^2.
|
|
36
|
+
"@atlaskit/ds-lib": "^2.1.0",
|
|
37
37
|
"@atlaskit/popper": "^5.0.0",
|
|
38
|
-
"@atlaskit/theme": "^12.
|
|
38
|
+
"@atlaskit/theme": "^12.2.0",
|
|
39
39
|
"@atlaskit/tokens": "^0.10.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|
|
41
|
-
"@emotion/
|
|
42
|
-
"bind-event-listener": "^2.1.
|
|
41
|
+
"@emotion/react": "^11.7.1",
|
|
42
|
+
"bind-event-listener": "^2.1.1",
|
|
43
43
|
"react-node-resolver": "^1.0.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@atlaskit/button": "^16.3.0",
|
|
50
|
-
"@atlaskit/datetime-picker": "^12.
|
|
50
|
+
"@atlaskit/datetime-picker": "^12.2.0",
|
|
51
51
|
"@atlaskit/docs": "*",
|
|
52
52
|
"@atlaskit/icon": "^21.10.0",
|
|
53
|
-
"@atlaskit/modal-dialog": "^12.
|
|
54
|
-
"@atlaskit/section-message": "^6.
|
|
55
|
-
"@atlaskit/select": "^15.
|
|
53
|
+
"@atlaskit/modal-dialog": "^12.3.0",
|
|
54
|
+
"@atlaskit/section-message": "^6.2.0",
|
|
55
|
+
"@atlaskit/select": "^15.7.0",
|
|
56
56
|
"@atlaskit/ssr": "*",
|
|
57
57
|
"@atlaskit/visual-regression": "*",
|
|
58
58
|
"@atlaskit/webdriver-runner": "*",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@testing-library/react": "^8.0.1",
|
|
61
61
|
"react-dom": "^16.8.0",
|
|
62
62
|
"react-lorem-component": "^0.13.0",
|
|
63
|
-
"typescript": "4.
|
|
63
|
+
"typescript": "4.3.5",
|
|
64
64
|
"wait-for-expect": "^1.2.0"
|
|
65
65
|
},
|
|
66
66
|
"keywords": [
|
package/report.api.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/inline-dialog"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { default as React_2 } from 'react';
|
|
7
|
+
import { ReactNode } from 'react';
|
|
8
|
+
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
9
|
+
import { WithContextProps } from '@atlaskit/analytics-next';
|
|
10
|
+
|
|
11
|
+
declare const _default: React_2.ForwardRefExoticComponent<
|
|
12
|
+
Pick<
|
|
13
|
+
Omit<
|
|
14
|
+
React_2.PropsWithChildren<InlineDialogProps>,
|
|
15
|
+
keyof WithAnalyticsEventsProps
|
|
16
|
+
> &
|
|
17
|
+
React_2.RefAttributes<any> &
|
|
18
|
+
WithContextProps,
|
|
19
|
+
| 'content'
|
|
20
|
+
| 'children'
|
|
21
|
+
| 'testId'
|
|
22
|
+
| 'isOpen'
|
|
23
|
+
| 'onContentBlur'
|
|
24
|
+
| 'onContentClick'
|
|
25
|
+
| 'onContentFocus'
|
|
26
|
+
| 'onClose'
|
|
27
|
+
| 'placement'
|
|
28
|
+
| 'strategy'
|
|
29
|
+
| 'key'
|
|
30
|
+
| 'analyticsContext'
|
|
31
|
+
> &
|
|
32
|
+
React_2.RefAttributes<any>
|
|
33
|
+
>;
|
|
34
|
+
export default _default;
|
|
35
|
+
|
|
36
|
+
declare interface InlineDialogProps extends WithAnalyticsEventsProps {
|
|
37
|
+
/**
|
|
38
|
+
* The elements that the InlineDialog will be positioned relative to.
|
|
39
|
+
*/
|
|
40
|
+
children: ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* The elements to be displayed within the InlineDialog.
|
|
43
|
+
*/
|
|
44
|
+
content: ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* Sets whether to show or hide the dialog.
|
|
47
|
+
*/
|
|
48
|
+
isOpen?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Function called when you lose focus on the object.
|
|
51
|
+
*/
|
|
52
|
+
onContentBlur?: () => void;
|
|
53
|
+
/**
|
|
54
|
+
* Function called when user clicks on the open dialog.
|
|
55
|
+
*/
|
|
56
|
+
onContentClick?: () => void;
|
|
57
|
+
/**
|
|
58
|
+
* Function called when user focuses on the open dialog.
|
|
59
|
+
*/
|
|
60
|
+
onContentFocus?: () => void;
|
|
61
|
+
/**
|
|
62
|
+
* Function called when the dialog is open and a click occurs anywhere outside
|
|
63
|
+
* the dialog.
|
|
64
|
+
*/
|
|
65
|
+
onClose?: (obj: { isOpen: boolean; event: Event }) => void;
|
|
66
|
+
/**
|
|
67
|
+
* Where the dialog should appear, relative to the contents of the children.
|
|
68
|
+
*/
|
|
69
|
+
placement?: Placement;
|
|
70
|
+
/**
|
|
71
|
+
* Placement strategy used. Can be 'fixed' or 'absolute'. Defaults to 'fixed'.
|
|
72
|
+
*/
|
|
73
|
+
strategy?: 'fixed' | 'absolute';
|
|
74
|
+
/**
|
|
75
|
+
* 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
|
|
76
|
+
*/
|
|
77
|
+
testId?: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export declare type Placement =
|
|
81
|
+
| 'auto-start'
|
|
82
|
+
| 'auto'
|
|
83
|
+
| 'auto-end'
|
|
84
|
+
| 'top-start'
|
|
85
|
+
| 'top'
|
|
86
|
+
| 'top-end'
|
|
87
|
+
| 'right-start'
|
|
88
|
+
| 'right'
|
|
89
|
+
| 'right-end'
|
|
90
|
+
| 'bottom-end'
|
|
91
|
+
| 'bottom'
|
|
92
|
+
| 'bottom-start'
|
|
93
|
+
| 'left-end'
|
|
94
|
+
| 'left'
|
|
95
|
+
| 'left-start';
|
|
96
|
+
|
|
97
|
+
export {};
|
|
98
|
+
```
|