@atlaskit/onboarding 11.15.1 → 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,13 @@
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
+
3
11
  ## 11.15.1
4
12
 
5
13
  ### Patch 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(_spotlightDialog.default, {
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(SpotlightDialog, {
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(SpotlightDialog, {
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.1",
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/"
@@ -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": {