@atlaskit/onboarding 11.13.0 → 11.14.0
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,12 @@
|
|
|
1
1
|
# @atlaskit/onboarding
|
|
2
2
|
|
|
3
|
+
## 11.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`2d1da097bd763`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2d1da097bd763) -
|
|
8
|
+
DSP-20687 removing usage of findDOMNode in react-transition-group behind ff
|
|
9
|
+
|
|
3
10
|
## 11.13.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -5,9 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.Fade = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
10
|
var _react = _interopRequireDefault(require("react"));
|
|
10
11
|
var _reactTransitionGroup = require("react-transition-group");
|
|
12
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
13
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
14
|
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; }
|
|
13
15
|
var duration = {
|
|
@@ -25,13 +27,16 @@ var Fade = exports.Fade = function Fade(_ref) {
|
|
|
25
27
|
var hasEntered = _ref.hasEntered,
|
|
26
28
|
children = _ref.children,
|
|
27
29
|
onExited = _ref.onExited;
|
|
28
|
-
|
|
30
|
+
var nodeRef = _react.default.useRef(null);
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.Transition, (0, _extends2.default)({
|
|
29
32
|
in: hasEntered,
|
|
30
33
|
timeout: duration,
|
|
31
34
|
onExited: onExited,
|
|
32
35
|
unmountOnExit: true,
|
|
33
36
|
appear: true
|
|
34
|
-
},
|
|
37
|
+
}, (0, _platformFeatureFlags.fg)('platform-design-system-dsp-20687-transition-group') && {
|
|
38
|
+
nodeRef: nodeRef
|
|
39
|
+
}), function (status) {
|
|
35
40
|
var base = {
|
|
36
41
|
transition: "opacity ".concat(duration.exit, "ms"),
|
|
37
42
|
opacity: 0
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { Transition } from 'react-transition-group';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
5
|
const duration = {
|
|
4
6
|
enter: 0,
|
|
5
7
|
exit: 100
|
|
@@ -15,28 +17,33 @@ export const Fade = ({
|
|
|
15
17
|
hasEntered,
|
|
16
18
|
children,
|
|
17
19
|
onExited
|
|
18
|
-
}) =>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
opacity: 1
|
|
32
|
-
},
|
|
33
|
-
exiting: {
|
|
20
|
+
}) => {
|
|
21
|
+
const nodeRef = React.useRef(null);
|
|
22
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
23
|
+
in: hasEntered,
|
|
24
|
+
timeout: duration,
|
|
25
|
+
onExited: onExited,
|
|
26
|
+
unmountOnExit: true,
|
|
27
|
+
appear: true
|
|
28
|
+
}, fg('platform-design-system-dsp-20687-transition-group') && {
|
|
29
|
+
nodeRef
|
|
30
|
+
}), status => {
|
|
31
|
+
const base = {
|
|
32
|
+
transition: `opacity ${duration.exit}ms`,
|
|
34
33
|
opacity: 0
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
34
|
+
};
|
|
35
|
+
const anim = {
|
|
36
|
+
entered: {
|
|
37
|
+
opacity: 1
|
|
38
|
+
},
|
|
39
|
+
exiting: {
|
|
40
|
+
opacity: 0
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const style = {
|
|
44
|
+
...base,
|
|
45
|
+
...anim[status]
|
|
46
|
+
};
|
|
47
|
+
return children(style);
|
|
48
|
+
});
|
|
49
|
+
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
4
|
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) { _defineProperty(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; }
|
|
4
5
|
import React from 'react';
|
|
5
6
|
import { Transition } from 'react-transition-group';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
8
|
var duration = {
|
|
7
9
|
enter: 0,
|
|
8
10
|
exit: 100
|
|
@@ -18,13 +20,16 @@ export var Fade = function Fade(_ref) {
|
|
|
18
20
|
var hasEntered = _ref.hasEntered,
|
|
19
21
|
children = _ref.children,
|
|
20
22
|
onExited = _ref.onExited;
|
|
21
|
-
|
|
23
|
+
var nodeRef = React.useRef(null);
|
|
24
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
22
25
|
in: hasEntered,
|
|
23
26
|
timeout: duration,
|
|
24
27
|
onExited: onExited,
|
|
25
28
|
unmountOnExit: true,
|
|
26
29
|
appear: true
|
|
27
|
-
},
|
|
30
|
+
}, fg('platform-design-system-dsp-20687-transition-group') && {
|
|
31
|
+
nodeRef: nodeRef
|
|
32
|
+
}), function (status) {
|
|
28
33
|
var base = {
|
|
29
34
|
transition: "opacity ".concat(duration.exit, "ms"),
|
|
30
35
|
opacity: 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/onboarding",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.14.0",
|
|
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/"
|
|
@@ -29,10 +29,6 @@
|
|
|
29
29
|
"homepage": "https://atlassian.design/components/onboarding/",
|
|
30
30
|
"atlassian": {
|
|
31
31
|
"team": "Design System Team",
|
|
32
|
-
"releaseModel": "continuous",
|
|
33
|
-
"productPushConsumption": [
|
|
34
|
-
"jira"
|
|
35
|
-
],
|
|
36
32
|
"website": {
|
|
37
33
|
"name": "Onboarding (spotlight)",
|
|
38
34
|
"category": "Components"
|
|
@@ -46,9 +42,9 @@
|
|
|
46
42
|
"@atlaskit/modal-dialog": "^12.15.0",
|
|
47
43
|
"@atlaskit/motion": "^1.9.0",
|
|
48
44
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
49
|
-
"@atlaskit/popper": "^6.
|
|
45
|
+
"@atlaskit/popper": "^6.3.0",
|
|
50
46
|
"@atlaskit/portal": "^4.9.0",
|
|
51
|
-
"@atlaskit/primitives": "^12.
|
|
47
|
+
"@atlaskit/primitives": "^12.1.0",
|
|
52
48
|
"@atlaskit/theme": "^13.0.0",
|
|
53
49
|
"@atlaskit/tokens": "^1.59.0",
|
|
54
50
|
"@babel/runtime": "^7.0.0",
|
|
@@ -91,6 +87,9 @@
|
|
|
91
87
|
},
|
|
92
88
|
"platform-design-system-dsp-20262-spotlight-target": {
|
|
93
89
|
"type": "boolean"
|
|
90
|
+
},
|
|
91
|
+
"platform-design-system-dsp-20687-transition-group": {
|
|
92
|
+
"type": "boolean"
|
|
94
93
|
}
|
|
95
94
|
},
|
|
96
95
|
"techstack": {
|