@atlaskit/inline-dialog 13.2.2 → 13.3.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 +22 -0
- package/dist/cjs/InlineDialog/index.js +5 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/InlineDialog/index.js +4 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/InlineDialog/index.js +5 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/InlineDialog/index.d.ts +1 -1
- package/dist/types/types.d.ts +4 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/inline-dialog
|
|
2
2
|
|
|
3
|
+
## 13.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 13.3.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 13.3.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [`2a53f51adc6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2a53f51adc6) - Introduce the prop `strategy` to allow consumers to override the default positioning strategy
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 13.2.2
|
|
4
26
|
|
|
5
27
|
### Patch 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.
|
|
34
|
+
var packageVersion = "13.3.2";
|
|
35
35
|
|
|
36
36
|
var checkIsChildOfPortal = function checkIsChildOfPortal(node) {
|
|
37
37
|
if (!node) {
|
|
@@ -54,6 +54,8 @@ var InlineDialog = /*#__PURE__*/(0, _react.memo)(function InlineDialog(_ref) {
|
|
|
54
54
|
onClose = _ref$onClose === void 0 ? _noop.default : _ref$onClose,
|
|
55
55
|
_ref$placement = _ref.placement,
|
|
56
56
|
placement = _ref$placement === void 0 ? 'bottom-start' : _ref$placement,
|
|
57
|
+
_ref$strategy = _ref.strategy,
|
|
58
|
+
strategy = _ref$strategy === void 0 ? 'fixed' : _ref$strategy,
|
|
57
59
|
testId = _ref.testId,
|
|
58
60
|
content = _ref.content,
|
|
59
61
|
children = _ref.children;
|
|
@@ -116,7 +118,8 @@ var InlineDialog = /*#__PURE__*/(0, _react.memo)(function InlineDialog(_ref) {
|
|
|
116
118
|
return unbind;
|
|
117
119
|
}, [isOpen, handleClickOutside]);
|
|
118
120
|
var popper = isOpen ? (0, _core.jsx)(_popper.Popper, {
|
|
119
|
-
placement: placement
|
|
121
|
+
placement: placement,
|
|
122
|
+
strategy: strategy
|
|
120
123
|
}, function (_ref2) {
|
|
121
124
|
var _ref3 = _ref2.ref,
|
|
122
125
|
style = _ref2.style;
|
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.
|
|
11
|
+
const packageVersion = "13.3.2";
|
|
12
12
|
|
|
13
13
|
const checkIsChildOfPortal = node => {
|
|
14
14
|
if (!node) {
|
|
@@ -25,6 +25,7 @@ const InlineDialog = /*#__PURE__*/memo(function InlineDialog({
|
|
|
25
25
|
onContentFocus = noop,
|
|
26
26
|
onClose = noop,
|
|
27
27
|
placement = 'bottom-start',
|
|
28
|
+
strategy = 'fixed',
|
|
28
29
|
testId,
|
|
29
30
|
content,
|
|
30
31
|
children
|
|
@@ -88,7 +89,8 @@ const InlineDialog = /*#__PURE__*/memo(function InlineDialog({
|
|
|
88
89
|
return unbind;
|
|
89
90
|
}, [isOpen, handleClickOutside]);
|
|
90
91
|
const popper = isOpen ? jsx(Popper, {
|
|
91
|
-
placement: placement
|
|
92
|
+
placement: placement,
|
|
93
|
+
strategy: strategy
|
|
92
94
|
}, ({
|
|
93
95
|
ref,
|
|
94
96
|
style
|
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.
|
|
11
|
+
var packageVersion = "13.3.2";
|
|
12
12
|
|
|
13
13
|
var checkIsChildOfPortal = function checkIsChildOfPortal(node) {
|
|
14
14
|
if (!node) {
|
|
@@ -31,6 +31,8 @@ var InlineDialog = /*#__PURE__*/memo(function InlineDialog(_ref) {
|
|
|
31
31
|
onClose = _ref$onClose === void 0 ? noop : _ref$onClose,
|
|
32
32
|
_ref$placement = _ref.placement,
|
|
33
33
|
placement = _ref$placement === void 0 ? 'bottom-start' : _ref$placement,
|
|
34
|
+
_ref$strategy = _ref.strategy,
|
|
35
|
+
strategy = _ref$strategy === void 0 ? 'fixed' : _ref$strategy,
|
|
34
36
|
testId = _ref.testId,
|
|
35
37
|
content = _ref.content,
|
|
36
38
|
children = _ref.children;
|
|
@@ -93,7 +95,8 @@ var InlineDialog = /*#__PURE__*/memo(function InlineDialog(_ref) {
|
|
|
93
95
|
return unbind;
|
|
94
96
|
}, [isOpen, handleClickOutside]);
|
|
95
97
|
var popper = isOpen ? jsx(Popper, {
|
|
96
|
-
placement: placement
|
|
98
|
+
placement: placement,
|
|
99
|
+
strategy: strategy
|
|
97
100
|
}, function (_ref2) {
|
|
98
101
|
var _ref3 = _ref2.ref,
|
|
99
102
|
style = _ref2.style;
|
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<Pick<React.PropsWithChildren<InlineDialogProps>, "content" | "children" | "testId" | "isOpen" | "onContentBlur" | "onContentClick" | "onContentFocus" | "onClose" | "placement"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "content" | "children" | "testId" | "isOpen" | "onContentBlur" | "onContentClick" | "onContentFocus" | "onClose" | "placement" | "key" | "analyticsContext"> & React.RefAttributes<any>>;
|
|
6
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Pick<React.PropsWithChildren<InlineDialogProps>, "content" | "children" | "testId" | "isOpen" | "onContentBlur" | "onContentClick" | "onContentFocus" | "onClose" | "placement" | "strategy"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "content" | "children" | "testId" | "isOpen" | "onContentBlur" | "onContentClick" | "onContentFocus" | "onClose" | "placement" | "strategy" | "key" | "analyticsContext"> & React.RefAttributes<any>>;
|
|
7
7
|
export default _default;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -38,6 +38,10 @@ export interface InlineDialogProps extends WithAnalyticsEventsProps {
|
|
|
38
38
|
* Where the dialog should appear, relative to the contents of the children.
|
|
39
39
|
*/
|
|
40
40
|
placement?: Placement;
|
|
41
|
+
/**
|
|
42
|
+
* Placement strategy used. Can be 'fixed' or 'absolute'. Defaults to 'fixed'.
|
|
43
|
+
*/
|
|
44
|
+
strategy?: 'fixed' | 'absolute';
|
|
41
45
|
/**
|
|
42
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
|
|
43
47
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/inline-dialog",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.3.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/"
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
27
|
-
"@atlaskit/ds-lib": "^1.
|
|
27
|
+
"@atlaskit/ds-lib": "^1.4.0",
|
|
28
28
|
"@atlaskit/popper": "^5.0.0",
|
|
29
29
|
"@atlaskit/theme": "^12.1.0",
|
|
30
|
-
"@atlaskit/tokens": "^0.
|
|
30
|
+
"@atlaskit/tokens": "^0.8.0",
|
|
31
31
|
"@babel/runtime": "^7.0.0",
|
|
32
32
|
"@emotion/core": "^10.0.9",
|
|
33
33
|
"bind-event-listener": "^1.0.2",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"react": "^16.8.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@atlaskit/button": "^16.
|
|
40
|
+
"@atlaskit/button": "^16.2.0",
|
|
41
41
|
"@atlaskit/datetime-picker": "^11.1.0",
|
|
42
42
|
"@atlaskit/docs": "*",
|
|
43
43
|
"@atlaskit/icon": "^21.10.0",
|