@atlaskit/modal-dialog 16.1.6 → 16.1.8
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 +12 -0
- package/dist/cjs/internal/components/modal-dialog.compiled.css +0 -1
- package/dist/cjs/internal/components/modal-dialog.js +5 -4
- package/dist/cjs/internal/components/modal-wrapper.compiled.css +0 -1
- package/dist/cjs/internal/components/modal-wrapper.js +5 -5
- package/dist/cjs/internal/components/positioner.js +1 -1
- package/dist/cjs/internal/components/scroll-container.compiled.css +0 -1
- package/dist/cjs/internal/components/scroll-container.js +1 -1
- package/dist/cjs/modal-body.js +1 -1
- package/dist/cjs/modal-footer.compiled.css +0 -1
- package/dist/cjs/modal-footer.js +1 -1
- package/dist/cjs/modal-header.js +1 -1
- package/dist/cjs/modal-title.js +1 -1
- package/dist/es2019/internal/components/modal-dialog.compiled.css +0 -1
- package/dist/es2019/internal/components/modal-dialog.js +3 -2
- package/dist/es2019/internal/components/modal-wrapper.compiled.css +0 -1
- package/dist/es2019/internal/components/modal-wrapper.js +4 -4
- package/dist/es2019/internal/components/positioner.js +1 -1
- package/dist/es2019/internal/components/scroll-container.compiled.css +0 -1
- package/dist/es2019/internal/components/scroll-container.js +1 -1
- package/dist/es2019/modal-body.js +1 -1
- package/dist/es2019/modal-footer.compiled.css +0 -1
- package/dist/es2019/modal-footer.js +1 -1
- package/dist/es2019/modal-header.js +1 -1
- package/dist/es2019/modal-title.js +1 -1
- package/dist/esm/internal/components/modal-dialog.compiled.css +0 -1
- package/dist/esm/internal/components/modal-dialog.js +3 -2
- package/dist/esm/internal/components/modal-wrapper.compiled.css +0 -1
- package/dist/esm/internal/components/modal-wrapper.js +4 -4
- package/dist/esm/internal/components/positioner.js +1 -1
- package/dist/esm/internal/components/scroll-container.compiled.css +0 -1
- package/dist/esm/internal/components/scroll-container.js +1 -1
- package/dist/esm/modal-body.js +1 -1
- package/dist/esm/modal-footer.compiled.css +0 -1
- package/dist/esm/modal-footer.js +1 -1
- package/dist/esm/modal-header.js +1 -1
- package/dist/esm/modal-title.js +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* modal-dialog.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* modal-dialog.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -30,7 +30,8 @@ var _css = require("@atlaskit/css");
|
|
|
30
30
|
var _mergeRefs = _interopRequireDefault(require("@atlaskit/ds-lib/merge-refs"));
|
|
31
31
|
var _useAutoFocus = _interopRequireDefault(require("@atlaskit/ds-lib/use-auto-focus"));
|
|
32
32
|
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
33
|
-
var
|
|
33
|
+
var _useCloseOnEscapePress = require("@atlaskit/layering/use-close-on-escape-press");
|
|
34
|
+
var _useLayering2 = require("@atlaskit/layering/use-layering");
|
|
34
35
|
var _motion = require("@atlaskit/motion");
|
|
35
36
|
var _fadeIn = _interopRequireDefault(require("@atlaskit/motion/fade-in"));
|
|
36
37
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
@@ -109,11 +110,11 @@ var ModalDialog = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
109
110
|
isFullScreen: isFullScreen
|
|
110
111
|
};
|
|
111
112
|
}, [defaultTestId, titleId, onClose, hasProvidedOnClose, isFullScreen]);
|
|
112
|
-
(0,
|
|
113
|
+
(0, _useCloseOnEscapePress.useCloseOnEscapePress)({
|
|
113
114
|
onClose: onClose,
|
|
114
115
|
isDisabled: !shouldCloseOnEscapePress
|
|
115
116
|
});
|
|
116
|
-
var _useLayering = (0,
|
|
117
|
+
var _useLayering = (0, _useLayering2.useLayering)(),
|
|
117
118
|
currentLevel = _useLayering.currentLevel;
|
|
118
119
|
return /*#__PURE__*/React.createElement(_positioner.default, {
|
|
119
120
|
stackIndex: stackIndex,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* modal-wrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* modal-wrapper.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -20,8 +20,8 @@ var _blanket = _interopRequireDefault(require("@atlaskit/blanket"));
|
|
|
20
20
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
21
21
|
var _useAutoFocus = _interopRequireDefault(require("@atlaskit/ds-lib/use-auto-focus"));
|
|
22
22
|
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
23
|
-
var _layering = require("@atlaskit/layering");
|
|
24
|
-
var
|
|
23
|
+
var _layering = require("@atlaskit/layering/layering");
|
|
24
|
+
var _useNotifyOpenLayerObserver = require("@atlaskit/layering/use-notify-open-layer-observer");
|
|
25
25
|
var _motion = require("@atlaskit/motion");
|
|
26
26
|
var _exitingPersistence = require("@atlaskit/motion/exiting-persistence");
|
|
27
27
|
var _fadeIn = _interopRequireDefault(require("@atlaskit/motion/fade-in"));
|
|
@@ -112,7 +112,7 @@ var InternalModalWrapper = /*#__PURE__*/(0, _react.forwardRef)(function (props,
|
|
|
112
112
|
action: 'closed',
|
|
113
113
|
componentName: 'modalDialog',
|
|
114
114
|
packageName: "@atlaskit/modal-dialog",
|
|
115
|
-
packageVersion: "16.1.
|
|
115
|
+
packageVersion: "16.1.7"
|
|
116
116
|
});
|
|
117
117
|
var onBlanketClicked = (0, _react.useCallback)(function (e) {
|
|
118
118
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -143,7 +143,7 @@ var InternalModalWrapper = /*#__PURE__*/(0, _react.forwardRef)(function (props,
|
|
|
143
143
|
// Safe conditional hook: feature flags are resolved once at startup.
|
|
144
144
|
if (!(0, _platformFeatureFlags.fg)('platform-dst-top-layer')) {
|
|
145
145
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
146
|
-
(0,
|
|
146
|
+
(0, _useNotifyOpenLayerObserver.useNotifyOpenLayerObserver)({
|
|
147
147
|
type: 'modal',
|
|
148
148
|
// Always open — modal is conditionally rendered when visible.
|
|
149
149
|
isOpen: true,
|
package/dist/cjs/modal-body.js
CHANGED
package/dist/cjs/modal-footer.js
CHANGED
package/dist/cjs/modal-header.js
CHANGED
package/dist/cjs/modal-title.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* modal-dialog.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* modal-dialog.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./modal-dialog.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -8,7 +8,8 @@ import { cx } from '@atlaskit/css';
|
|
|
8
8
|
import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
9
9
|
import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
|
|
10
10
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
11
|
-
import { useCloseOnEscapePress
|
|
11
|
+
import { useCloseOnEscapePress } from '@atlaskit/layering/use-close-on-escape-press';
|
|
12
|
+
import { useLayering } from '@atlaskit/layering/use-layering';
|
|
12
13
|
import { Motion } from '@atlaskit/motion';
|
|
13
14
|
import FadeIn from '@atlaskit/motion/fade-in';
|
|
14
15
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* modal-wrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* modal-wrapper.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./modal-wrapper.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -11,8 +11,8 @@ import Blanket from '@atlaskit/blanket';
|
|
|
11
11
|
import noop from '@atlaskit/ds-lib/noop';
|
|
12
12
|
import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
|
|
13
13
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
14
|
-
import { Layering } from '@atlaskit/layering';
|
|
15
|
-
import { useNotifyOpenLayerObserver } from '@atlaskit/layering/
|
|
14
|
+
import { Layering } from '@atlaskit/layering/layering';
|
|
15
|
+
import { useNotifyOpenLayerObserver } from '@atlaskit/layering/use-notify-open-layer-observer';
|
|
16
16
|
import { Motion } from '@atlaskit/motion';
|
|
17
17
|
import { useExitingPersistence } from '@atlaskit/motion/exiting-persistence';
|
|
18
18
|
import FadeIn from '@atlaskit/motion/fade-in';
|
|
@@ -98,7 +98,7 @@ const InternalModalWrapper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
98
98
|
action: 'closed',
|
|
99
99
|
componentName: 'modalDialog',
|
|
100
100
|
packageName: "@atlaskit/modal-dialog",
|
|
101
|
-
packageVersion: "16.1.
|
|
101
|
+
packageVersion: "16.1.7"
|
|
102
102
|
});
|
|
103
103
|
const onBlanketClicked = useCallback(e => {
|
|
104
104
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* scroll-container.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* scroll-container.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import "./scroll-container.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { forwardRef, useEffect, useRef, useState } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* modal-dialog.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* modal-dialog.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
@@ -10,7 +10,8 @@ import { cx } from '@atlaskit/css';
|
|
|
10
10
|
import mergeRefs from '@atlaskit/ds-lib/merge-refs';
|
|
11
11
|
import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
|
|
12
12
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
13
|
-
import { useCloseOnEscapePress
|
|
13
|
+
import { useCloseOnEscapePress } from '@atlaskit/layering/use-close-on-escape-press';
|
|
14
|
+
import { useLayering } from '@atlaskit/layering/use-layering';
|
|
14
15
|
import { Motion } from '@atlaskit/motion';
|
|
15
16
|
import FadeIn from '@atlaskit/motion/fade-in';
|
|
16
17
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* modal-wrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* modal-wrapper.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
4
4
|
import "./modal-wrapper.compiled.css";
|
|
@@ -12,8 +12,8 @@ import Blanket from '@atlaskit/blanket';
|
|
|
12
12
|
import noop from '@atlaskit/ds-lib/noop';
|
|
13
13
|
import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
|
|
14
14
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
15
|
-
import { Layering } from '@atlaskit/layering';
|
|
16
|
-
import { useNotifyOpenLayerObserver } from '@atlaskit/layering/
|
|
15
|
+
import { Layering } from '@atlaskit/layering/layering';
|
|
16
|
+
import { useNotifyOpenLayerObserver } from '@atlaskit/layering/use-notify-open-layer-observer';
|
|
17
17
|
import { Motion } from '@atlaskit/motion';
|
|
18
18
|
import { useExitingPersistence } from '@atlaskit/motion/exiting-persistence';
|
|
19
19
|
import FadeIn from '@atlaskit/motion/fade-in';
|
|
@@ -103,7 +103,7 @@ var InternalModalWrapper = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
103
103
|
action: 'closed',
|
|
104
104
|
componentName: 'modalDialog',
|
|
105
105
|
packageName: "@atlaskit/modal-dialog",
|
|
106
|
-
packageVersion: "16.1.
|
|
106
|
+
packageVersion: "16.1.7"
|
|
107
107
|
});
|
|
108
108
|
var onBlanketClicked = useCallback(function (e) {
|
|
109
109
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* scroll-container.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* scroll-container.tsx generated by @compiled/babel-plugin v0.40.0 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "./scroll-container.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
package/dist/esm/modal-body.js
CHANGED
package/dist/esm/modal-footer.js
CHANGED
package/dist/esm/modal-header.js
CHANGED
package/dist/esm/modal-title.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/modal-dialog",
|
|
3
|
-
"version": "16.1.
|
|
3
|
+
"version": "16.1.8",
|
|
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/"
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
"@atlaskit/button": "^24.3.0",
|
|
40
40
|
"@atlaskit/css": "^1.0.0",
|
|
41
41
|
"@atlaskit/ds-lib": "^8.0.0",
|
|
42
|
-
"@atlaskit/icon": "^37.
|
|
43
|
-
"@atlaskit/layering": "^
|
|
44
|
-
"@atlaskit/motion": "^7.
|
|
45
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
42
|
+
"@atlaskit/icon": "^37.1.0",
|
|
43
|
+
"@atlaskit/layering": "^5.0.0",
|
|
44
|
+
"@atlaskit/motion": "^7.5.0",
|
|
45
|
+
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
46
46
|
"@atlaskit/portal": "^6.1.0",
|
|
47
47
|
"@atlaskit/pragmatic-drag-and-drop": "^2.0.0",
|
|
48
|
-
"@atlaskit/primitives": "^
|
|
48
|
+
"@atlaskit/primitives": "^22.1.0",
|
|
49
49
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
50
50
|
"@atlaskit/theme": "^26.1.0",
|
|
51
|
-
"@atlaskit/tokens": "^16.
|
|
52
|
-
"@atlaskit/top-layer": "^1.
|
|
51
|
+
"@atlaskit/tokens": "^16.2.0",
|
|
52
|
+
"@atlaskit/top-layer": "^1.10.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
|
-
"@compiled/react": "^0.
|
|
54
|
+
"@compiled/react": "^1.0.0",
|
|
55
55
|
"bind-event-listener": "^3.0.0",
|
|
56
56
|
"raf-schd": "^4.0.3",
|
|
57
57
|
"react-focus-lock": "^2.9.5",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@af/accessibility-testing": "workspace:^",
|
|
65
65
|
"@af/integration-testing": "workspace:^",
|
|
66
66
|
"@af/visual-regression": "workspace:^",
|
|
67
|
-
"@atlaskit/avatar": "^26.
|
|
67
|
+
"@atlaskit/avatar": "^26.2.0",
|
|
68
68
|
"@atlaskit/avatar-group": "^13.1.0",
|
|
69
69
|
"@atlaskit/banner": "^15.1.0",
|
|
70
70
|
"@atlaskit/breadcrumbs": "^17.5.0",
|