@atlaskit/onboarding 11.2.5 → 11.2.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 +6 -0
- package/dist/cjs/components/spotlight-dialog.js +1 -1
- package/dist/cjs/components/spotlight-transition.js +3 -2
- package/dist/es2019/components/spotlight-dialog.js +1 -1
- package/dist/es2019/components/spotlight-transition.js +4 -1
- package/dist/esm/components/spotlight-dialog.js +1 -1
- package/dist/esm/components/spotlight-transition.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/onboarding
|
|
2
2
|
|
|
3
|
+
## 11.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#83188](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83188) [`cd5d06cd3329`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cd5d06cd3329) - Minor adjustments to improve compatibility with React 18
|
|
8
|
+
|
|
3
9
|
## 11.2.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -27,7 +27,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
27
27
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
28
28
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
29
29
|
var packageName = "@atlaskit/onboarding";
|
|
30
|
-
var packageVersion = "11.2.
|
|
30
|
+
var packageVersion = "11.2.6";
|
|
31
31
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
32
32
|
(0, _inherits2.default)(SpotlightDialog, _Component);
|
|
33
33
|
var _super = _createSuper(SpotlightDialog);
|
|
@@ -26,9 +26,10 @@ var SpotlightTransitionContext = /*#__PURE__*/(0, _react.createContext)({
|
|
|
26
26
|
|
|
27
27
|
// checks if children exist and are truthy
|
|
28
28
|
var hasChildren = function hasChildren(children) {
|
|
29
|
-
|
|
29
|
+
var _React$Children$map;
|
|
30
|
+
return _react.default.Children.count(children) > 0 && (((_React$Children$map = _react.default.Children.map(children || false, function (child) {
|
|
30
31
|
return !!child;
|
|
31
|
-
}).filter(Boolean).length > 0;
|
|
32
|
+
})) === null || _React$Children$map === void 0 || (_React$Children$map = _React$Children$map.filter(Boolean)) === null || _React$Children$map === void 0 ? void 0 : _React$Children$map.length) || 0) > 0;
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
/**
|
|
@@ -7,7 +7,7 @@ import { DialogImage } from '../styled/dialog';
|
|
|
7
7
|
import SpotlightCard from './spotlight-card';
|
|
8
8
|
import ValueChanged from './value-changed';
|
|
9
9
|
const packageName = "@atlaskit/onboarding";
|
|
10
|
-
const packageVersion = "11.2.
|
|
10
|
+
const packageVersion = "11.2.6";
|
|
11
11
|
class SpotlightDialog extends Component {
|
|
12
12
|
constructor(...args) {
|
|
13
13
|
super(...args);
|
|
@@ -7,7 +7,10 @@ const SpotlightTransitionContext = /*#__PURE__*/createContext({
|
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
// checks if children exist and are truthy
|
|
10
|
-
const hasChildren = children =>
|
|
10
|
+
const hasChildren = children => {
|
|
11
|
+
var _React$Children$map, _React$Children$map$f;
|
|
12
|
+
return React.Children.count(children) > 0 && (((_React$Children$map = React.Children.map(children || false, child => !!child)) === null || _React$Children$map === void 0 ? void 0 : (_React$Children$map$f = _React$Children$map.filter(Boolean)) === null || _React$Children$map$f === void 0 ? void 0 : _React$Children$map$f.length) || 0) > 0;
|
|
13
|
+
};
|
|
11
14
|
|
|
12
15
|
/**
|
|
13
16
|
* __Spotlight transition__
|
|
@@ -17,7 +17,7 @@ import { DialogImage } from '../styled/dialog';
|
|
|
17
17
|
import SpotlightCard from './spotlight-card';
|
|
18
18
|
import ValueChanged from './value-changed';
|
|
19
19
|
var packageName = "@atlaskit/onboarding";
|
|
20
|
-
var packageVersion = "11.2.
|
|
20
|
+
var packageVersion = "11.2.6";
|
|
21
21
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
22
22
|
_inherits(SpotlightDialog, _Component);
|
|
23
23
|
var _super = _createSuper(SpotlightDialog);
|
|
@@ -16,9 +16,10 @@ var SpotlightTransitionContext = /*#__PURE__*/createContext({
|
|
|
16
16
|
|
|
17
17
|
// checks if children exist and are truthy
|
|
18
18
|
var hasChildren = function hasChildren(children) {
|
|
19
|
-
|
|
19
|
+
var _React$Children$map;
|
|
20
|
+
return React.Children.count(children) > 0 && (((_React$Children$map = React.Children.map(children || false, function (child) {
|
|
20
21
|
return !!child;
|
|
21
|
-
}).filter(Boolean).length > 0;
|
|
22
|
+
})) === null || _React$Children$map === void 0 || (_React$Children$map = _React$Children$map.filter(Boolean)) === null || _React$Children$map === void 0 ? void 0 : _React$Children$map.length) || 0) > 0;
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/onboarding",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.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/"
|