@atlaskit/modal-dialog 12.18.2 → 12.18.3
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,13 @@
|
|
|
1
1
|
# @atlaskit/modal-dialog
|
|
2
2
|
|
|
3
|
+
## 12.18.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#178053](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/178053)
|
|
8
|
+
[`cb318c8c28c26`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cb318c8c28c26) -
|
|
9
|
+
Internal changes to typography.
|
|
10
|
+
|
|
3
11
|
## 12.18.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -29,12 +29,12 @@ var _external = require("../pragmatic-drag-and-drop/disable-dragging-to-cross-or
|
|
|
29
29
|
var _textSelection = require("../pragmatic-drag-and-drop/disable-dragging-to-cross-origin-iframes/text-selection");
|
|
30
30
|
var _utils = require("../utils");
|
|
31
31
|
var _positioner = _interopRequireDefault(require("./positioner"));
|
|
32
|
-
var _css;
|
|
33
32
|
/**
|
|
34
33
|
* @jsxRuntime classic
|
|
35
34
|
* @jsx jsx
|
|
36
35
|
*/
|
|
37
|
-
|
|
36
|
+
|
|
37
|
+
var dialogStyles = (0, _react2.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
38
38
|
display: 'flex',
|
|
39
39
|
width: '100%',
|
|
40
40
|
maxWidth: '100vw',
|
|
@@ -47,7 +47,7 @@ var dialogStyles = (0, _react2.css)((_css = {
|
|
|
47
47
|
backgroundColor: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
|
|
48
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
49
49
|
color: _constants.textColor
|
|
50
|
-
},
|
|
50
|
+
}, _tokens.CURRENT_SURFACE_CSS_VAR, "var(--ds-surface-overlay, ".concat(_colors.N0, ")")), "pointerEvents", 'auto'), _primitives.media.above.xs, {
|
|
51
51
|
width: 'var(--modal-dialog-width)',
|
|
52
52
|
maxWidth: 'inherit',
|
|
53
53
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -55,11 +55,11 @@ var dialogStyles = (0, _react2.css)((_css = {
|
|
|
55
55
|
boxShadow: "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_colors.N30A, ", 0 2px 1px ").concat(_colors.N30A, ", 0 0 20px -6px ").concat(_colors.N60A), ")"),
|
|
56
56
|
marginInlineEnd: 'inherit',
|
|
57
57
|
marginInlineStart: 'inherit'
|
|
58
|
-
}),
|
|
58
|
+
}), '& > form:only-child', {
|
|
59
59
|
display: 'inherit',
|
|
60
60
|
maxHeight: 'inherit',
|
|
61
61
|
flexDirection: 'inherit'
|
|
62
|
-
})
|
|
62
|
+
}));
|
|
63
63
|
var viewportScrollStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
64
64
|
/**
|
|
65
65
|
* This ensures that the element fills the viewport on mobile
|
|
@@ -99,7 +99,7 @@ var ModalWrapper = function ModalWrapper(props) {
|
|
|
99
99
|
action: 'closed',
|
|
100
100
|
componentName: 'modalDialog',
|
|
101
101
|
packageName: "@atlaskit/modal-dialog",
|
|
102
|
-
packageVersion: "12.18.
|
|
102
|
+
packageVersion: "12.18.3"
|
|
103
103
|
});
|
|
104
104
|
var onBlanketClicked = (0, _react.useCallback)(function (e) {
|
|
105
105
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -84,7 +84,7 @@ const ModalWrapper = props => {
|
|
|
84
84
|
action: 'closed',
|
|
85
85
|
componentName: 'modalDialog',
|
|
86
86
|
packageName: "@atlaskit/modal-dialog",
|
|
87
|
-
packageVersion: "12.18.
|
|
87
|
+
packageVersion: "12.18.3"
|
|
88
88
|
});
|
|
89
89
|
const onBlanketClicked = useCallback(e => {
|
|
90
90
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
|
-
var _css;
|
|
6
5
|
/**
|
|
7
6
|
* @jsxRuntime classic
|
|
8
7
|
* @jsx jsx
|
|
@@ -28,7 +27,7 @@ import { disableDraggingToCrossOriginIFramesForExternal } from '../pragmatic-dra
|
|
|
28
27
|
import { disableDraggingToCrossOriginIFramesForTextSelection } from '../pragmatic-drag-and-drop/disable-dragging-to-cross-origin-iframes/text-selection';
|
|
29
28
|
import { dialogHeight, dialogWidth } from '../utils';
|
|
30
29
|
import Positioner from './positioner';
|
|
31
|
-
var dialogStyles = css((
|
|
30
|
+
var dialogStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
32
31
|
display: 'flex',
|
|
33
32
|
width: '100%',
|
|
34
33
|
maxWidth: '100vw',
|
|
@@ -41,7 +40,7 @@ var dialogStyles = css((_css = {
|
|
|
41
40
|
backgroundColor: "var(--ds-surface-overlay, ".concat(N0, ")"),
|
|
42
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
43
42
|
color: textColor
|
|
44
|
-
},
|
|
43
|
+
}, CURRENT_SURFACE_CSS_VAR, "var(--ds-surface-overlay, ".concat(N0, ")")), "pointerEvents", 'auto'), media.above.xs, {
|
|
45
44
|
width: 'var(--modal-dialog-width)',
|
|
46
45
|
maxWidth: 'inherit',
|
|
47
46
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -49,11 +48,11 @@ var dialogStyles = css((_css = {
|
|
|
49
48
|
boxShadow: "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(N30A, ", 0 2px 1px ").concat(N30A, ", 0 0 20px -6px ").concat(N60A), ")"),
|
|
50
49
|
marginInlineEnd: 'inherit',
|
|
51
50
|
marginInlineStart: 'inherit'
|
|
52
|
-
}),
|
|
51
|
+
}), '& > form:only-child', {
|
|
53
52
|
display: 'inherit',
|
|
54
53
|
maxHeight: 'inherit',
|
|
55
54
|
flexDirection: 'inherit'
|
|
56
|
-
})
|
|
55
|
+
}));
|
|
57
56
|
var viewportScrollStyles = css(_defineProperty({
|
|
58
57
|
/**
|
|
59
58
|
* This ensures that the element fills the viewport on mobile
|
|
@@ -89,7 +89,7 @@ var ModalWrapper = function ModalWrapper(props) {
|
|
|
89
89
|
action: 'closed',
|
|
90
90
|
componentName: 'modalDialog',
|
|
91
91
|
packageName: "@atlaskit/modal-dialog",
|
|
92
|
-
packageVersion: "12.18.
|
|
92
|
+
packageVersion: "12.18.3"
|
|
93
93
|
});
|
|
94
94
|
var onBlanketClicked = useCallback(function (e) {
|
|
95
95
|
if (shouldCloseOnOverlayClick) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/modal-dialog",
|
|
3
|
-
"version": "12.18.
|
|
3
|
+
"version": "12.18.3",
|
|
4
4
|
"description": "A modal dialog displays content that requires user interaction, in a layer above the page.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
"@atlaskit/checkbox": "^15.2.0",
|
|
61
61
|
"@atlaskit/dropdown-menu": "^12.23.0",
|
|
62
62
|
"@atlaskit/popup": "^1.30.0",
|
|
63
|
-
"@atlaskit/radio": "^
|
|
63
|
+
"@atlaskit/radio": "^7.0.0",
|
|
64
64
|
"@atlaskit/select": "^18.8.0",
|
|
65
65
|
"@atlaskit/ssr": "*",
|
|
66
66
|
"@atlaskit/textfield": "^6.7.0",
|
|
67
|
-
"@atlaskit/tooltip": "^
|
|
67
|
+
"@atlaskit/tooltip": "^19.0.0",
|
|
68
68
|
"@atlaskit/visual-regression": "*",
|
|
69
69
|
"@atlassian/feature-flags-test-utils": "*",
|
|
70
70
|
"@testing-library/dom": "^10.1.0",
|