@atlaskit/onboarding 11.15.0 → 11.15.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,19 @@
|
|
|
1
1
|
# @atlaskit/onboarding
|
|
2
2
|
|
|
3
|
+
## 11.15.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#146525](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/146525)
|
|
8
|
+
[`2ec1031034a2b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2ec1031034a2b) -
|
|
9
|
+
Integrate layering into spotlight
|
|
10
|
+
|
|
11
|
+
## 11.15.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 11.15.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -17,6 +17,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
17
17
|
var _exenv = require("exenv");
|
|
18
18
|
var _reactScrolllock = _interopRequireDefault(require("react-scrolllock"));
|
|
19
19
|
var _scrollIntoViewIfNeeded = _interopRequireDefault(require("scroll-into-view-if-needed"));
|
|
20
|
+
var _layering = require("@atlaskit/layering");
|
|
20
21
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
22
|
var _portal = _interopRequireDefault(require("@atlaskit/portal"));
|
|
22
23
|
var _constants = require("@atlaskit/theme/constants");
|
|
@@ -139,7 +140,9 @@ var SpotlightInner = /*#__PURE__*/function (_React$Component) {
|
|
|
139
140
|
hasEntered: isOpen,
|
|
140
141
|
onExited: onExited
|
|
141
142
|
}, function (animationStyles) {
|
|
142
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
143
|
+
return /*#__PURE__*/_react.default.createElement(_layering.UNSAFE_LAYERING, {
|
|
144
|
+
isDisabled: (0, _platformFeatureFlags.fg)('platform_design_system_team_spotlight_layering') ? false : true
|
|
145
|
+
}, /*#__PURE__*/_react.default.createElement(_spotlightDialog.default, {
|
|
143
146
|
testId: "".concat(testId, "--dialog"),
|
|
144
147
|
actions: _this2.props.actions,
|
|
145
148
|
actionsBeforeElement: _this2.props.actionsBeforeElement,
|
|
@@ -153,7 +156,7 @@ var SpotlightInner = /*#__PURE__*/function (_React$Component) {
|
|
|
153
156
|
image: _this2.props.image,
|
|
154
157
|
targetNode: replacementElement || targetNode,
|
|
155
158
|
animationStyles: animationStyles
|
|
156
|
-
});
|
|
159
|
+
}));
|
|
157
160
|
}), /*#__PURE__*/_react.default.createElement(_reactScrolllock.default, null));
|
|
158
161
|
});
|
|
159
162
|
}
|
|
@@ -4,6 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import { canUseDOM } from 'exenv';
|
|
5
5
|
import ScrollLock from 'react-scrolllock';
|
|
6
6
|
import scrollIntoView from 'scroll-into-view-if-needed';
|
|
7
|
+
import { UNSAFE_LAYERING } from '@atlaskit/layering';
|
|
7
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import Portal from '@atlaskit/portal';
|
|
9
10
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -102,7 +103,9 @@ class SpotlightInner extends React.Component {
|
|
|
102
103
|
})), TargetReplacement && !replacementElement ? null : /*#__PURE__*/React.createElement(Fade, {
|
|
103
104
|
hasEntered: isOpen,
|
|
104
105
|
onExited: onExited
|
|
105
|
-
}, animationStyles => /*#__PURE__*/React.createElement(
|
|
106
|
+
}, animationStyles => /*#__PURE__*/React.createElement(UNSAFE_LAYERING, {
|
|
107
|
+
isDisabled: fg('platform_design_system_team_spotlight_layering') ? false : true
|
|
108
|
+
}, /*#__PURE__*/React.createElement(SpotlightDialog, {
|
|
106
109
|
testId: `${testId}--dialog`,
|
|
107
110
|
actions: this.props.actions,
|
|
108
111
|
actionsBeforeElement: this.props.actionsBeforeElement,
|
|
@@ -116,7 +119,7 @@ class SpotlightInner extends React.Component {
|
|
|
116
119
|
image: this.props.image,
|
|
117
120
|
targetNode: replacementElement || targetNode,
|
|
118
121
|
animationStyles: animationStyles
|
|
119
|
-
})), /*#__PURE__*/React.createElement(ScrollLock, null)));
|
|
122
|
+
}))), /*#__PURE__*/React.createElement(ScrollLock, null)));
|
|
120
123
|
}
|
|
121
124
|
}
|
|
122
125
|
_defineProperty(SpotlightInner, "defaultProps", {
|
|
@@ -14,6 +14,7 @@ import React from 'react';
|
|
|
14
14
|
import { canUseDOM } from 'exenv';
|
|
15
15
|
import ScrollLock from 'react-scrolllock';
|
|
16
16
|
import scrollIntoView from 'scroll-into-view-if-needed';
|
|
17
|
+
import { UNSAFE_LAYERING } from '@atlaskit/layering';
|
|
17
18
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
19
|
import Portal from '@atlaskit/portal';
|
|
19
20
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -132,7 +133,9 @@ var SpotlightInner = /*#__PURE__*/function (_React$Component) {
|
|
|
132
133
|
hasEntered: isOpen,
|
|
133
134
|
onExited: onExited
|
|
134
135
|
}, function (animationStyles) {
|
|
135
|
-
return /*#__PURE__*/React.createElement(
|
|
136
|
+
return /*#__PURE__*/React.createElement(UNSAFE_LAYERING, {
|
|
137
|
+
isDisabled: fg('platform_design_system_team_spotlight_layering') ? false : true
|
|
138
|
+
}, /*#__PURE__*/React.createElement(SpotlightDialog, {
|
|
136
139
|
testId: "".concat(testId, "--dialog"),
|
|
137
140
|
actions: _this2.props.actions,
|
|
138
141
|
actionsBeforeElement: _this2.props.actionsBeforeElement,
|
|
@@ -146,7 +149,7 @@ var SpotlightInner = /*#__PURE__*/function (_React$Component) {
|
|
|
146
149
|
image: _this2.props.image,
|
|
147
150
|
targetNode: replacementElement || targetNode,
|
|
148
151
|
animationStyles: animationStyles
|
|
149
|
-
});
|
|
152
|
+
}));
|
|
150
153
|
}), /*#__PURE__*/React.createElement(ScrollLock, null));
|
|
151
154
|
});
|
|
152
155
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/onboarding",
|
|
3
|
-
"version": "11.15.
|
|
3
|
+
"version": "11.15.2",
|
|
4
4
|
"description": "An onboarding spotlight introduces new features to users through focused messages or multi-step tours.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"runReact18": true
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/button": "^20.
|
|
39
|
+
"@atlaskit/button": "^20.2.0",
|
|
40
40
|
"@atlaskit/ds-lib": "^2.6.0",
|
|
41
41
|
"@atlaskit/heading": "^2.4.0",
|
|
42
|
-
"@atlaskit/modal-dialog": "^12.
|
|
42
|
+
"@atlaskit/modal-dialog": "^12.17.0",
|
|
43
43
|
"@atlaskit/motion": "^1.9.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
45
45
|
"@atlaskit/popper": "^6.3.0",
|
|
46
46
|
"@atlaskit/portal": "^4.9.0",
|
|
47
47
|
"@atlaskit/primitives": "^12.2.0",
|
|
48
48
|
"@atlaskit/theme": "^13.0.0",
|
|
49
|
-
"@atlaskit/tokens": "^
|
|
49
|
+
"@atlaskit/tokens": "^2.0.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
52
52
|
"bind-event-listener": "^3.0.0",
|
|
@@ -90,6 +90,9 @@
|
|
|
90
90
|
},
|
|
91
91
|
"platform-design-system-dsp-20687-transition-group": {
|
|
92
92
|
"type": "boolean"
|
|
93
|
+
},
|
|
94
|
+
"platform_design_system_team_spotlight_layering": {
|
|
95
|
+
"type": "boolean"
|
|
93
96
|
}
|
|
94
97
|
},
|
|
95
98
|
"techstack": {
|