@atlaskit/onboarding 14.5.5 → 14.5.7
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 +14 -0
- package/dist/cjs/components/node-resolver-spotlight-target.js +1 -1
- package/dist/cjs/components/spotlight-card.js +1 -1
- package/dist/cjs/components/spotlight-manager.js +1 -10
- package/dist/cjs/styled/blanket.js +1 -1
- package/dist/cjs/styled/dialog.js +1 -1
- package/dist/cjs/styled/modal.js +1 -1
- package/dist/cjs/styled/target.js +1 -1
- package/dist/es2019/components/node-resolver-spotlight-target.js +1 -1
- package/dist/es2019/components/spotlight-card.js +1 -1
- package/dist/es2019/components/spotlight-manager.js +1 -9
- package/dist/es2019/styled/blanket.js +1 -1
- package/dist/es2019/styled/dialog.js +1 -1
- package/dist/es2019/styled/modal.js +1 -1
- package/dist/es2019/styled/target.js +1 -1
- package/dist/esm/components/node-resolver-spotlight-target.js +1 -1
- package/dist/esm/components/spotlight-card.js +1 -1
- package/dist/esm/components/spotlight-manager.js +1 -10
- package/dist/esm/styled/blanket.js +1 -1
- package/dist/esm/styled/dialog.js +1 -1
- package/dist/esm/styled/modal.js +1 -1
- package/dist/esm/styled/target.js +1 -1
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/onboarding
|
|
2
2
|
|
|
3
|
+
## 14.5.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`122f05b37d695`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/122f05b37d695) -
|
|
8
|
+
Clean up platform_fix_component_state_update_for_suspense feature gate - the fix for Suspense
|
|
9
|
+
boundary updates is now always enabled
|
|
10
|
+
|
|
11
|
+
## 14.5.6
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 14.5.5
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* node-resolver-spotlight-target.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* node-resolver-spotlight-target.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -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) {
|
package/dist/cjs/styled/modal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* node-resolver-spotlight-target.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* node-resolver-spotlight-target.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import "./node-resolver-spotlight-target.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -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 => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* node-resolver-spotlight-target.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* node-resolver-spotlight-target.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import "./node-resolver-spotlight-target.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* spotlight-card.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* spotlight-card.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["text", "key"];
|
|
4
4
|
import "./spotlight-card.compiled.css";
|
|
@@ -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) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* dialog.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* dialog.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["alt"];
|
package/dist/esm/styled/modal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* target.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* target.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/onboarding",
|
|
3
|
-
"version": "14.5.
|
|
3
|
+
"version": "14.5.7",
|
|
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/"
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@atlaskit/button": "^23.10.0",
|
|
56
56
|
"@atlaskit/css": "^0.19.0",
|
|
57
|
-
"@atlaskit/ds-lib": "^
|
|
57
|
+
"@atlaskit/ds-lib": "^6.0.0",
|
|
58
58
|
"@atlaskit/heading": "^5.3.0",
|
|
59
59
|
"@atlaskit/layering": "^3.6.0",
|
|
60
60
|
"@atlaskit/modal-dialog": "^14.11.0",
|
|
61
|
-
"@atlaskit/motion": "^5.
|
|
61
|
+
"@atlaskit/motion": "^5.4.0",
|
|
62
62
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
63
63
|
"@atlaskit/popper": "^7.1.0",
|
|
64
64
|
"@atlaskit/portal": "^5.2.0",
|
|
65
65
|
"@atlaskit/primitives": "^18.0.0",
|
|
66
|
-
"@atlaskit/tokens": "^11.
|
|
66
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@compiled/react": "^0.20.0",
|
|
69
69
|
"bind-event-listener": "^3.0.0",
|
|
@@ -102,9 +102,6 @@
|
|
|
102
102
|
"platform_design_system_team_transition_group_r18": {
|
|
103
103
|
"type": "boolean",
|
|
104
104
|
"referenceOnly": true
|
|
105
|
-
},
|
|
106
|
-
"platform_fix_component_state_update_for_suspense": {
|
|
107
|
-
"type": "boolean"
|
|
108
105
|
}
|
|
109
106
|
},
|
|
110
107
|
"techstack": {
|