@atlaskit/onboarding 11.15.4 → 11.15.6
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/onboarding
|
|
2
2
|
|
|
3
|
+
## 11.15.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#152429](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152429)
|
|
8
|
+
[`5d414827c3394`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5d414827c3394) -
|
|
9
|
+
Removes usages of deprecated CustomThemeButton in favor of the new Button
|
|
10
|
+
|
|
11
|
+
## 11.15.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#143559](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/143559)
|
|
16
|
+
[`a25693d44cd74`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a25693d44cd74) -
|
|
17
|
+
Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 11.15.4
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -15,6 +15,8 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
15
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
var _reactFocusLock = _interopRequireDefault(require("react-focus-lock"));
|
|
18
|
+
var _reactFocusLockNext = _interopRequireDefault(require("react-focus-lock-next"));
|
|
19
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
20
|
var _popper = require("@atlaskit/popper");
|
|
19
21
|
var _dialog = require("../styled/dialog");
|
|
20
22
|
var _spotlightCard = _interopRequireDefault(require("./spotlight-card"));
|
|
@@ -25,6 +27,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
25
27
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26
28
|
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
|
|
27
29
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
30
|
+
var FocusLock = (0, _platformFeatureFlags.fg)('platform_dst_onboarding-bump-react-focus-lock') ? _reactFocusLockNext.default : _reactFocusLock.default;
|
|
28
31
|
/**
|
|
29
32
|
* __Spotlight dialog__
|
|
30
33
|
*
|
|
@@ -122,7 +125,7 @@ var SpotlightDialogComponent = /*#__PURE__*/function (_Component) {
|
|
|
122
125
|
return /*#__PURE__*/_react.default.createElement(_valueChanged.default, {
|
|
123
126
|
value: dialogWidth,
|
|
124
127
|
onChange: update
|
|
125
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
128
|
+
}, /*#__PURE__*/_react.default.createElement(FocusLock, {
|
|
126
129
|
disabled: focusLockDisabled,
|
|
127
130
|
returnFocus: false,
|
|
128
131
|
autoFocus: true
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React, { Component } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import FocusLockOld from 'react-focus-lock';
|
|
4
|
+
import FocusLockNext from 'react-focus-lock-next';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
6
|
import { Popper } from '@atlaskit/popper';
|
|
5
7
|
import { DialogImage } from '../styled/dialog';
|
|
6
8
|
import SpotlightCard from './spotlight-card';
|
|
7
9
|
import ValueChanged from './value-changed';
|
|
10
|
+
const FocusLock = fg('platform_dst_onboarding-bump-react-focus-lock') ? FocusLockNext : FocusLockOld;
|
|
8
11
|
/**
|
|
9
12
|
* __Spotlight dialog__
|
|
10
13
|
*
|
|
@@ -10,11 +10,14 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React, { Component } from 'react';
|
|
13
|
-
import
|
|
13
|
+
import FocusLockOld from 'react-focus-lock';
|
|
14
|
+
import FocusLockNext from 'react-focus-lock-next';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
16
|
import { Popper } from '@atlaskit/popper';
|
|
15
17
|
import { DialogImage } from '../styled/dialog';
|
|
16
18
|
import SpotlightCard from './spotlight-card';
|
|
17
19
|
import ValueChanged from './value-changed';
|
|
20
|
+
var FocusLock = fg('platform_dst_onboarding-bump-react-focus-lock') ? FocusLockNext : FocusLockOld;
|
|
18
21
|
/**
|
|
19
22
|
* __Spotlight dialog__
|
|
20
23
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/onboarding",
|
|
3
|
-
"version": "11.15.
|
|
3
|
+
"version": "11.15.6",
|
|
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/"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@atlaskit/button": "^20.2.0",
|
|
40
|
-
"@atlaskit/ds-lib": "^3.
|
|
40
|
+
"@atlaskit/ds-lib": "^3.1.0",
|
|
41
41
|
"@atlaskit/heading": "^2.4.0",
|
|
42
42
|
"@atlaskit/modal-dialog": "^12.17.0",
|
|
43
43
|
"@atlaskit/motion": "^1.9.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/popper": "^6.3.0",
|
|
46
46
|
"@atlaskit/portal": "^4.9.0",
|
|
47
47
|
"@atlaskit/primitives": "^12.2.0",
|
|
48
|
-
"@atlaskit/theme": "^13.
|
|
48
|
+
"@atlaskit/theme": "^13.1.0",
|
|
49
49
|
"@atlaskit/tokens": "^2.0.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"exenv": "^1.2.2",
|
|
54
54
|
"memoize-one": "^6.0.0",
|
|
55
55
|
"react-focus-lock": "^2.9.5",
|
|
56
|
+
"react-focus-lock-next": "npm:react-focus-lock@^2.13.2",
|
|
56
57
|
"react-node-resolver": "^1.0.1",
|
|
57
58
|
"react-scrolllock": "^5.0.1",
|
|
58
59
|
"react-transition-group": "^4.4.1",
|
|
@@ -90,6 +91,9 @@
|
|
|
90
91
|
},
|
|
91
92
|
"platform_design_system_team_spotlight_layering": {
|
|
92
93
|
"type": "boolean"
|
|
94
|
+
},
|
|
95
|
+
"platform_dst_onboarding-bump-react-focus-lock": {
|
|
96
|
+
"type": "boolean"
|
|
93
97
|
}
|
|
94
98
|
},
|
|
95
99
|
"techstack": {
|