@atlaskit/inline-dialog 13.2.1 → 13.3.1
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 +23 -0
- package/dist/cjs/InlineDialog/index.js +6 -4
- package/dist/cjs/InlineDialog/styled/container.js +6 -6
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/InlineDialog/index.js +5 -4
- package/dist/es2019/InlineDialog/styled/container.js +6 -6
- package/dist/es2019/version.json +1 -1
- package/dist/esm/InlineDialog/index.js +6 -4
- package/dist/esm/InlineDialog/styled/container.js +6 -6
- 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 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/inline-dialog
|
|
2
2
|
|
|
3
|
+
## 13.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 13.3.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`2a53f51adc6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2a53f51adc6) - Introduce the prop `strategy` to allow consumers to override the default positioning strategy
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
19
|
+
## 13.2.2
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Updates usage of deprecated token names so they're aligned with the latest naming conventions. No UI or visual changes
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 13.2.1
|
|
4
27
|
|
|
5
28
|
### 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.1";
|
|
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;
|
|
@@ -153,8 +156,7 @@ var InlineDialog = /*#__PURE__*/(0, _react.memo)(function InlineDialog(_ref) {
|
|
|
153
156
|
}
|
|
154
157
|
}, children);
|
|
155
158
|
}), popper);
|
|
156
|
-
});
|
|
157
|
-
|
|
159
|
+
});
|
|
158
160
|
exports.InlineDialogWithoutAnalytics = InlineDialog;
|
|
159
161
|
InlineDialog.displayName = 'InlineDialog';
|
|
160
162
|
var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
|
|
@@ -30,16 +30,16 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
30
30
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
31
31
|
|
|
32
32
|
var themedBackground = (0, _components.themed)({
|
|
33
|
-
light: "var(--ds-
|
|
34
|
-
dark: "var(--ds-
|
|
33
|
+
light: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
|
|
34
|
+
dark: "var(--ds-surface-overlay, ".concat(_colors.DN50, ")")
|
|
35
35
|
});
|
|
36
36
|
var themedColor = (0, _components.themed)({
|
|
37
|
-
light: "var(--ds-text
|
|
38
|
-
dark: "var(--ds-text
|
|
37
|
+
light: "var(--ds-text, ".concat(_colors.N900, ")"),
|
|
38
|
+
dark: "var(--ds-text, ".concat(_colors.DN600, ")")
|
|
39
39
|
});
|
|
40
40
|
var themedBoxShadow = (0, _components.themed)({
|
|
41
|
-
light: "var(--ds-overlay, ".concat("0 4px 8px -2px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A), ")"),
|
|
42
|
-
dark: "var(--ds-overlay, ".concat("0 4px 8px -2px ".concat(_colors.DN50A, ", 0 0 1px ").concat(_colors.DN60A), ")")
|
|
41
|
+
light: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A), ")"),
|
|
42
|
+
dark: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.DN50A, ", 0 0 1px ").concat(_colors.DN60A), ")")
|
|
43
43
|
});
|
|
44
44
|
var borderRadius = (0, _constants.borderRadius)();
|
|
45
45
|
var gridSize = (0, _constants.gridSize)();
|
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.1";
|
|
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
|
|
@@ -123,8 +125,7 @@ const InlineDialog = /*#__PURE__*/memo(function InlineDialog({
|
|
|
123
125
|
}
|
|
124
126
|
}
|
|
125
127
|
}, children)), popper);
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
+
});
|
|
128
129
|
InlineDialog.displayName = 'InlineDialog';
|
|
129
130
|
export { InlineDialog as InlineDialogWithoutAnalytics };
|
|
130
131
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
@@ -9,16 +9,16 @@ import { DN50, DN50A, DN600, DN60A, N0, N50A, N60A, N900 } from '@atlaskit/theme
|
|
|
9
9
|
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
10
10
|
import { borderRadius as getBorderRadius, gridSize as getGridSize, layers } from '@atlaskit/theme/constants';
|
|
11
11
|
const themedBackground = themed({
|
|
12
|
-
light: `var(--ds-
|
|
13
|
-
dark: `var(--ds-
|
|
12
|
+
light: `var(--ds-surface-overlay, ${N0})`,
|
|
13
|
+
dark: `var(--ds-surface-overlay, ${DN50})`
|
|
14
14
|
});
|
|
15
15
|
const themedColor = themed({
|
|
16
|
-
light: `var(--ds-text
|
|
17
|
-
dark: `var(--ds-text
|
|
16
|
+
light: `var(--ds-text, ${N900})`,
|
|
17
|
+
dark: `var(--ds-text, ${DN600})`
|
|
18
18
|
});
|
|
19
19
|
const themedBoxShadow = themed({
|
|
20
|
-
light: `var(--ds-overlay, ${`0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`})`,
|
|
21
|
-
dark: `var(--ds-overlay, ${`0 4px 8px -2px ${DN50A}, 0 0 1px ${DN60A}`})`
|
|
20
|
+
light: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`})`,
|
|
21
|
+
dark: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${DN50A}, 0 0 1px ${DN60A}`})`
|
|
22
22
|
});
|
|
23
23
|
const borderRadius = getBorderRadius();
|
|
24
24
|
const gridSize = getGridSize();
|
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.1";
|
|
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;
|
|
@@ -130,8 +133,7 @@ var InlineDialog = /*#__PURE__*/memo(function InlineDialog(_ref) {
|
|
|
130
133
|
}
|
|
131
134
|
}, children);
|
|
132
135
|
}), popper);
|
|
133
|
-
});
|
|
134
|
-
|
|
136
|
+
});
|
|
135
137
|
InlineDialog.displayName = 'InlineDialog';
|
|
136
138
|
export { InlineDialog as InlineDialogWithoutAnalytics };
|
|
137
139
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
@@ -15,16 +15,16 @@ import { DN50, DN50A, DN600, DN60A, N0, N50A, N60A, N900 } from '@atlaskit/theme
|
|
|
15
15
|
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
16
16
|
import { borderRadius as getBorderRadius, gridSize as getGridSize, layers } from '@atlaskit/theme/constants';
|
|
17
17
|
var themedBackground = themed({
|
|
18
|
-
light: "var(--ds-
|
|
19
|
-
dark: "var(--ds-
|
|
18
|
+
light: "var(--ds-surface-overlay, ".concat(N0, ")"),
|
|
19
|
+
dark: "var(--ds-surface-overlay, ".concat(DN50, ")")
|
|
20
20
|
});
|
|
21
21
|
var themedColor = themed({
|
|
22
|
-
light: "var(--ds-text
|
|
23
|
-
dark: "var(--ds-text
|
|
22
|
+
light: "var(--ds-text, ".concat(N900, ")"),
|
|
23
|
+
dark: "var(--ds-text, ".concat(DN600, ")")
|
|
24
24
|
});
|
|
25
25
|
var themedBoxShadow = themed({
|
|
26
|
-
light: "var(--ds-overlay, ".concat("0 4px 8px -2px ".concat(N50A, ", 0 0 1px ").concat(N60A), ")"),
|
|
27
|
-
dark: "var(--ds-overlay, ".concat("0 4px 8px -2px ".concat(DN50A, ", 0 0 1px ").concat(DN60A), ")")
|
|
26
|
+
light: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N50A, ", 0 0 1px ").concat(N60A), ")"),
|
|
27
|
+
dark: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(DN50A, ", 0 0 1px ").concat(DN60A), ")")
|
|
28
28
|
});
|
|
29
29
|
var borderRadius = getBorderRadius();
|
|
30
30
|
var gridSize = getGridSize();
|
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.1",
|
|
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.7.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",
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
"@atlaskit/webdriver-runner": "*",
|
|
50
50
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
51
51
|
"@testing-library/react": "^8.0.1",
|
|
52
|
-
"enzyme": "^3.10.0",
|
|
53
52
|
"react-dom": "^16.8.0",
|
|
54
53
|
"react-lorem-component": "^0.13.0",
|
|
55
54
|
"typescript": "3.9.6",
|