@atlaskit/inline-dialog 13.3.9 → 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 +10 -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 +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
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
|
+
|
|
3
13
|
## 13.3.9
|
|
4
14
|
|
|
5
15
|
### 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/"
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
36
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/
|
|
41
|
+
"@emotion/react": "^11.7.1",
|
|
42
42
|
"bind-event-listener": "^2.1.1",
|
|
43
43
|
"react-node-resolver": "^1.0.1"
|
|
44
44
|
},
|
|
@@ -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": "*",
|