@atlaskit/onboarding 14.5.6 → 14.5.8
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
|
+
## 14.5.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e2085d35701ca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e2085d35701ca) -
|
|
8
|
+
Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 14.5.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`122f05b37d695`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/122f05b37d695) -
|
|
16
|
+
Clean up platform_fix_component_state_update_for_suspense feature gate - the fix for Suspense
|
|
17
|
+
boundary updates is now always enabled
|
|
18
|
+
|
|
3
19
|
## 14.5.6
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -16,7 +16,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
16
16
|
var _memoizeOne = _interopRequireDefault(require("memoize-one"));
|
|
17
17
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
18
18
|
var _motion = require("@atlaskit/motion");
|
|
19
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
19
|
var _portal = _interopRequireDefault(require("@atlaskit/portal"));
|
|
21
20
|
var _blanket = _interopRequireDefault(require("../styled/blanket"));
|
|
22
21
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -70,7 +69,7 @@ var SpotlightManager = exports.default = /*#__PURE__*/function (_PureComponent)
|
|
|
70
69
|
* error happens.
|
|
71
70
|
* This is to fix this error by wrapping the state update in startTransition as suggested by React: https://react.dev/errors/421?invariant=421
|
|
72
71
|
*/
|
|
73
|
-
(0, _defineProperty2.default)(_this, "getTargetRef",
|
|
72
|
+
(0, _defineProperty2.default)(_this, "getTargetRef", function (name) {
|
|
74
73
|
return function (element) {
|
|
75
74
|
(0, _react.startTransition)(function () {
|
|
76
75
|
_this.setState(function (state) {
|
|
@@ -80,14 +79,6 @@ var SpotlightManager = exports.default = /*#__PURE__*/function (_PureComponent)
|
|
|
80
79
|
});
|
|
81
80
|
});
|
|
82
81
|
};
|
|
83
|
-
} : function (name) {
|
|
84
|
-
return function (element) {
|
|
85
|
-
_this.setState(function (state) {
|
|
86
|
-
return {
|
|
87
|
-
targets: _objectSpread(_objectSpread({}, state.targets), {}, (0, _defineProperty2.default)({}, name, element || undefined))
|
|
88
|
-
};
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
82
|
});
|
|
92
83
|
(0, _defineProperty2.default)(_this, "spotlightOpen", function () {
|
|
93
84
|
_this.setState(function (state) {
|
|
@@ -3,7 +3,6 @@ import React, { createContext, PureComponent, startTransition } from 'react';
|
|
|
3
3
|
import memoizeOne from 'memoize-one';
|
|
4
4
|
import noop from '@atlaskit/ds-lib/noop';
|
|
5
5
|
import { ExitingPersistence, FadeIn } from '@atlaskit/motion';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import Portal from '@atlaskit/portal';
|
|
8
7
|
import Blanket from '../styled/blanket';
|
|
9
8
|
const dest = /*#__PURE__*/createContext(undefined);
|
|
@@ -48,7 +47,7 @@ export default class SpotlightManager extends PureComponent {
|
|
|
48
47
|
* error happens.
|
|
49
48
|
* This is to fix this error by wrapping the state update in startTransition as suggested by React: https://react.dev/errors/421?invariant=421
|
|
50
49
|
*/
|
|
51
|
-
_defineProperty(this, "getTargetRef",
|
|
50
|
+
_defineProperty(this, "getTargetRef", name => element => {
|
|
52
51
|
startTransition(() => {
|
|
53
52
|
this.setState(state => ({
|
|
54
53
|
targets: {
|
|
@@ -57,13 +56,6 @@ export default class SpotlightManager extends PureComponent {
|
|
|
57
56
|
}
|
|
58
57
|
}));
|
|
59
58
|
});
|
|
60
|
-
} : name => element => {
|
|
61
|
-
this.setState(state => ({
|
|
62
|
-
targets: {
|
|
63
|
-
...state.targets,
|
|
64
|
-
[name]: element || undefined
|
|
65
|
-
}
|
|
66
|
-
}));
|
|
67
59
|
});
|
|
68
60
|
_defineProperty(this, "spotlightOpen", () => {
|
|
69
61
|
this.setState(state => ({
|
|
@@ -12,7 +12,6 @@ import React, { createContext, PureComponent, startTransition } from 'react';
|
|
|
12
12
|
import memoizeOne from 'memoize-one';
|
|
13
13
|
import noop from '@atlaskit/ds-lib/noop';
|
|
14
14
|
import { ExitingPersistence, FadeIn } from '@atlaskit/motion';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import Portal from '@atlaskit/portal';
|
|
17
16
|
import Blanket from '../styled/blanket';
|
|
18
17
|
var dest = /*#__PURE__*/createContext(undefined);
|
|
@@ -63,7 +62,7 @@ var SpotlightManager = /*#__PURE__*/function (_PureComponent) {
|
|
|
63
62
|
* error happens.
|
|
64
63
|
* This is to fix this error by wrapping the state update in startTransition as suggested by React: https://react.dev/errors/421?invariant=421
|
|
65
64
|
*/
|
|
66
|
-
_defineProperty(_this, "getTargetRef",
|
|
65
|
+
_defineProperty(_this, "getTargetRef", function (name) {
|
|
67
66
|
return function (element) {
|
|
68
67
|
startTransition(function () {
|
|
69
68
|
_this.setState(function (state) {
|
|
@@ -73,14 +72,6 @@ var SpotlightManager = /*#__PURE__*/function (_PureComponent) {
|
|
|
73
72
|
});
|
|
74
73
|
});
|
|
75
74
|
};
|
|
76
|
-
} : function (name) {
|
|
77
|
-
return function (element) {
|
|
78
|
-
_this.setState(function (state) {
|
|
79
|
-
return {
|
|
80
|
-
targets: _objectSpread(_objectSpread({}, state.targets), {}, _defineProperty({}, name, element || undefined))
|
|
81
|
-
};
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
75
|
});
|
|
85
76
|
_defineProperty(_this, "spotlightOpen", function () {
|
|
86
77
|
_this.setState(function (state) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/onboarding",
|
|
3
|
-
"version": "14.5.
|
|
3
|
+
"version": "14.5.8",
|
|
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/"
|
|
@@ -31,21 +31,24 @@
|
|
|
31
31
|
"name": "Onboarding (spotlight)",
|
|
32
32
|
"category": "Messaging",
|
|
33
33
|
"status": {
|
|
34
|
-
"type": "deprecated"
|
|
34
|
+
"type": "deprecated",
|
|
35
|
+
"description": "This package is deprecated. Use [@atlaskit/spotlight](https://atlassian.design/components/spotlight/examples)."
|
|
35
36
|
},
|
|
36
37
|
"subPages": [
|
|
37
38
|
{
|
|
38
39
|
"title": "Benefits modal",
|
|
39
40
|
"id": "benefits-modal",
|
|
40
41
|
"status": {
|
|
41
|
-
"type": "deprecated"
|
|
42
|
+
"type": "deprecated",
|
|
43
|
+
"description": "This package is deprecated. Use [@atlaskit/modal-dialog](https://atlassian.design/components/modal-dialog/examples)."
|
|
42
44
|
}
|
|
43
45
|
},
|
|
44
46
|
{
|
|
45
47
|
"title": "Spotlight card",
|
|
46
48
|
"id": "spotlight-card",
|
|
47
49
|
"status": {
|
|
48
|
-
"type": "deprecated"
|
|
50
|
+
"type": "deprecated",
|
|
51
|
+
"description": "This package is deprecated. Use [@atlaskit/spotlight](https://atlassian.design/components/spotlight/examples)."
|
|
49
52
|
}
|
|
50
53
|
}
|
|
51
54
|
]
|
|
@@ -57,13 +60,13 @@
|
|
|
57
60
|
"@atlaskit/ds-lib": "^6.0.0",
|
|
58
61
|
"@atlaskit/heading": "^5.3.0",
|
|
59
62
|
"@atlaskit/layering": "^3.6.0",
|
|
60
|
-
"@atlaskit/modal-dialog": "^14.
|
|
61
|
-
"@atlaskit/motion": "^5.
|
|
63
|
+
"@atlaskit/modal-dialog": "^14.14.0",
|
|
64
|
+
"@atlaskit/motion": "^5.5.0",
|
|
62
65
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
63
66
|
"@atlaskit/popper": "^7.1.0",
|
|
64
|
-
"@atlaskit/portal": "^5.
|
|
65
|
-
"@atlaskit/primitives": "^18.
|
|
66
|
-
"@atlaskit/tokens": "^11.
|
|
67
|
+
"@atlaskit/portal": "^5.3.0",
|
|
68
|
+
"@atlaskit/primitives": "^18.1.0",
|
|
69
|
+
"@atlaskit/tokens": "^11.4.0",
|
|
67
70
|
"@babel/runtime": "^7.0.0",
|
|
68
71
|
"@compiled/react": "^0.20.0",
|
|
69
72
|
"bind-event-listener": "^3.0.0",
|
|
@@ -84,6 +87,7 @@
|
|
|
84
87
|
"@af/visual-regression": "workspace:^",
|
|
85
88
|
"@atlaskit/theme": "^22.0.0",
|
|
86
89
|
"@atlassian/ssr-tests": "workspace:^",
|
|
90
|
+
"@atlassian/testing-library": "^0.5.0",
|
|
87
91
|
"@testing-library/react": "^16.3.0",
|
|
88
92
|
"@testing-library/user-event": "^14.4.3",
|
|
89
93
|
"@types/exenv": "^1.2.0",
|
|
@@ -102,9 +106,6 @@
|
|
|
102
106
|
"platform_design_system_team_transition_group_r18": {
|
|
103
107
|
"type": "boolean",
|
|
104
108
|
"referenceOnly": true
|
|
105
|
-
},
|
|
106
|
-
"platform_fix_component_state_update_for_suspense": {
|
|
107
|
-
"type": "boolean"
|
|
108
109
|
}
|
|
109
110
|
},
|
|
110
111
|
"techstack": {
|