@atlaskit/inline-dialog 15.2.0 → 15.2.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
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/inline-dialog
|
|
2
2
|
|
|
3
|
+
## 15.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#166026](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166026)
|
|
8
|
+
[`962b5e77810fb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/962b5e77810fb) -
|
|
9
|
+
Adds side-effect config to support Compiled css extraction in third-party apps
|
|
10
|
+
|
|
11
|
+
## 15.2.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#161638](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/161638)
|
|
16
|
+
[`d2e5e5ce0053d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d2e5e5ce0053d) -
|
|
17
|
+
Use new API of layering without UNSAFE prefix
|
|
18
|
+
|
|
3
19
|
## 15.2.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -39,8 +39,8 @@ var CloseManager = function CloseManager(_ref) {
|
|
|
39
39
|
(0, _layering.useCloseOnEscapePress)({
|
|
40
40
|
onClose: handleEscapeClose
|
|
41
41
|
});
|
|
42
|
-
var
|
|
43
|
-
isLayerDisabled =
|
|
42
|
+
var _useLayering = (0, _layering.useLayering)(),
|
|
43
|
+
isLayerDisabled = _useLayering.isLayerDisabled;
|
|
44
44
|
(0, _react.useEffect)(function () {
|
|
45
45
|
return (0, _bindEventListener.bind)(window, {
|
|
46
46
|
type: 'click',
|
|
@@ -86,7 +86,7 @@ var InlineDialog = /*#__PURE__*/(0, _react.memo)(function InlineDialog(_ref2) {
|
|
|
86
86
|
action: 'closed',
|
|
87
87
|
componentName: 'inlineDialog',
|
|
88
88
|
packageName: "@atlaskit/inline-dialog",
|
|
89
|
-
packageVersion: "15.2.
|
|
89
|
+
packageVersion: "15.2.2"
|
|
90
90
|
});
|
|
91
91
|
|
|
92
92
|
// we put this into a ref to avoid handleCloseRequest having this as a dependency
|
|
@@ -181,7 +181,7 @@ var InlineDialog = /*#__PURE__*/(0, _react.memo)(function InlineDialog(_ref2) {
|
|
|
181
181
|
},
|
|
182
182
|
hasNodeResolver: !(0, _platformFeatureFlags.fg)('platform_design_system_team_portal_logic_r18_fix')
|
|
183
183
|
}, (0, _react2.jsx)(_react.default.Fragment, null, children));
|
|
184
|
-
}), isOpen ? (0, _react2.jsx)(_layering.
|
|
184
|
+
}), isOpen ? (0, _react2.jsx)(_layering.Layering, {
|
|
185
185
|
isDisabled: false
|
|
186
186
|
}, popper, (0, _react2.jsx)(CloseManager, {
|
|
187
187
|
handleEscapeClose: handleCloseRequest,
|
|
@@ -9,7 +9,7 @@ import { jsx } from '@emotion/react';
|
|
|
9
9
|
import { bind } from 'bind-event-listener';
|
|
10
10
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
11
11
|
import noop from '@atlaskit/ds-lib/noop';
|
|
12
|
-
import {
|
|
12
|
+
import { Layering, useCloseOnEscapePress, useLayering } from '@atlaskit/layering';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
14
|
import { Manager, Popper, Reference } from '@atlaskit/popper';
|
|
15
15
|
import NodeResolverWrapper from './node-resolver-wrapper';
|
|
@@ -31,7 +31,7 @@ const CloseManager = ({
|
|
|
31
31
|
});
|
|
32
32
|
const {
|
|
33
33
|
isLayerDisabled
|
|
34
|
-
} =
|
|
34
|
+
} = useLayering();
|
|
35
35
|
useEffect(() => {
|
|
36
36
|
return bind(window, {
|
|
37
37
|
type: 'click',
|
|
@@ -69,7 +69,7 @@ const InlineDialog = /*#__PURE__*/memo(function InlineDialog({
|
|
|
69
69
|
action: 'closed',
|
|
70
70
|
componentName: 'inlineDialog',
|
|
71
71
|
packageName: "@atlaskit/inline-dialog",
|
|
72
|
-
packageVersion: "15.2.
|
|
72
|
+
packageVersion: "15.2.2"
|
|
73
73
|
});
|
|
74
74
|
|
|
75
75
|
// we put this into a ref to avoid handleCloseRequest having this as a dependency
|
|
@@ -164,7 +164,7 @@ const InlineDialog = /*#__PURE__*/memo(function InlineDialog({
|
|
|
164
164
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
165
165
|
},
|
|
166
166
|
hasNodeResolver: !fg('platform_design_system_team_portal_logic_r18_fix')
|
|
167
|
-
}, jsx(React.Fragment, null, children))), isOpen ? jsx(
|
|
167
|
+
}, jsx(React.Fragment, null, children))), isOpen ? jsx(Layering, {
|
|
168
168
|
isDisabled: false
|
|
169
169
|
}, popper, jsx(CloseManager, {
|
|
170
170
|
handleEscapeClose: handleCloseRequest,
|
|
@@ -9,7 +9,7 @@ import { jsx } from '@emotion/react';
|
|
|
9
9
|
import { bind } from 'bind-event-listener';
|
|
10
10
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
11
11
|
import noop from '@atlaskit/ds-lib/noop';
|
|
12
|
-
import {
|
|
12
|
+
import { Layering, useCloseOnEscapePress, useLayering } from '@atlaskit/layering';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
14
|
import { Manager, Popper, Reference } from '@atlaskit/popper';
|
|
15
15
|
import NodeResolverWrapper from './node-resolver-wrapper';
|
|
@@ -28,8 +28,8 @@ var CloseManager = function CloseManager(_ref) {
|
|
|
28
28
|
useCloseOnEscapePress({
|
|
29
29
|
onClose: handleEscapeClose
|
|
30
30
|
});
|
|
31
|
-
var
|
|
32
|
-
isLayerDisabled =
|
|
31
|
+
var _useLayering = useLayering(),
|
|
32
|
+
isLayerDisabled = _useLayering.isLayerDisabled;
|
|
33
33
|
useEffect(function () {
|
|
34
34
|
return bind(window, {
|
|
35
35
|
type: 'click',
|
|
@@ -75,7 +75,7 @@ var InlineDialog = /*#__PURE__*/memo(function InlineDialog(_ref2) {
|
|
|
75
75
|
action: 'closed',
|
|
76
76
|
componentName: 'inlineDialog',
|
|
77
77
|
packageName: "@atlaskit/inline-dialog",
|
|
78
|
-
packageVersion: "15.2.
|
|
78
|
+
packageVersion: "15.2.2"
|
|
79
79
|
});
|
|
80
80
|
|
|
81
81
|
// we put this into a ref to avoid handleCloseRequest having this as a dependency
|
|
@@ -170,7 +170,7 @@ var InlineDialog = /*#__PURE__*/memo(function InlineDialog(_ref2) {
|
|
|
170
170
|
},
|
|
171
171
|
hasNodeResolver: !fg('platform_design_system_team_portal_logic_r18_fix')
|
|
172
172
|
}, jsx(React.Fragment, null, children));
|
|
173
|
-
}), isOpen ? jsx(
|
|
173
|
+
}), isOpen ? jsx(Layering, {
|
|
174
174
|
isDisabled: false
|
|
175
175
|
}, popper, jsx(CloseManager, {
|
|
176
176
|
handleEscapeClose: handleCloseRequest,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/inline-dialog",
|
|
3
|
-
"version": "15.2.
|
|
3
|
+
"version": "15.2.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,7 +12,9 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
-
"sideEffects":
|
|
15
|
+
"sideEffects": [
|
|
16
|
+
"**/*.compiled.css"
|
|
17
|
+
],
|
|
16
18
|
"atlaskit:src": "src/index.tsx",
|
|
17
19
|
"af:exports": {
|
|
18
20
|
".": "./src/index.tsx",
|
|
@@ -38,12 +40,12 @@
|
|
|
38
40
|
},
|
|
39
41
|
"dependencies": {
|
|
40
42
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
41
|
-
"@atlaskit/ds-lib": "^3.
|
|
42
|
-
"@atlaskit/layering": "^0.7.
|
|
43
|
+
"@atlaskit/ds-lib": "^3.2.0",
|
|
44
|
+
"@atlaskit/layering": "^0.7.3",
|
|
43
45
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
44
46
|
"@atlaskit/popper": "^6.3.0",
|
|
45
47
|
"@atlaskit/theme": "^14.0.0",
|
|
46
|
-
"@atlaskit/tokens": "^2.
|
|
48
|
+
"@atlaskit/tokens": "^2.2.0",
|
|
47
49
|
"@babel/runtime": "^7.0.0",
|
|
48
50
|
"@emotion/react": "^11.7.1",
|
|
49
51
|
"bind-event-listener": "^3.0.0",
|
|
@@ -57,12 +59,12 @@
|
|
|
57
59
|
"@af/integration-testing": "*",
|
|
58
60
|
"@af/visual-regression": "*",
|
|
59
61
|
"@atlaskit/button": "^20.3.0",
|
|
60
|
-
"@atlaskit/datetime-picker": "^15.
|
|
62
|
+
"@atlaskit/datetime-picker": "^15.9.0",
|
|
61
63
|
"@atlaskit/docs": "*",
|
|
62
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
64
|
+
"@atlaskit/dropdown-menu": "^12.22.0",
|
|
63
65
|
"@atlaskit/modal-dialog": "^12.17.0",
|
|
64
66
|
"@atlaskit/section-message": "^6.6.0",
|
|
65
|
-
"@atlaskit/select": "^18.
|
|
67
|
+
"@atlaskit/select": "^18.5.0",
|
|
66
68
|
"@atlaskit/ssr": "*",
|
|
67
69
|
"@atlaskit/visual-regression": "*",
|
|
68
70
|
"@testing-library/react": "^12.1.5",
|
package/types/package.json
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/types.js",
|
|
4
4
|
"module": "../dist/esm/types.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/types.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/types.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|