@atlaskit/onboarding 14.5.2 → 14.5.4
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/clone.js +1 -3
- package/dist/cjs/components/spotlight-dialog.js +1 -3
- package/dist/cjs/components/spotlight-inner.js +3 -4
- package/dist/cjs/components/spotlight-manager.js +6 -7
- package/dist/cjs/components/spotlight-transition.js +3 -0
- package/dist/cjs/components/value-changed.js +1 -0
- package/dist/es2019/components/clone.js +1 -3
- package/dist/es2019/components/spotlight-dialog.js +1 -3
- package/dist/es2019/components/spotlight-inner.js +4 -3
- package/dist/es2019/components/spotlight-manager.js +6 -10
- package/dist/es2019/components/spotlight-transition.js +3 -0
- package/dist/es2019/components/value-changed.js +1 -0
- package/dist/esm/components/clone.js +1 -3
- package/dist/esm/components/spotlight-dialog.js +1 -3
- package/dist/esm/components/spotlight-inner.js +3 -4
- package/dist/esm/components/spotlight-manager.js +6 -7
- package/dist/esm/components/spotlight-transition.js +3 -0
- package/dist/esm/components/value-changed.js +1 -0
- package/dist/types/components/spotlight-manager.d.ts +2 -1
- package/dist/types/styled/modal.d.ts +1 -1
- package/dist/types-ts4.5/components/spotlight-manager.d.ts +2 -1
- package/dist/types-ts4.5/styled/modal.d.ts +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/onboarding
|
|
2
2
|
|
|
3
|
+
## 14.5.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5db9e3f21a52f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5db9e3f21a52f) -
|
|
8
|
+
Internal refactoring
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 14.5.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 14.5.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -55,9 +55,7 @@ var Clone = function Clone(props) {
|
|
|
55
55
|
"data-testid": testId,
|
|
56
56
|
pulse: pulse,
|
|
57
57
|
bgColor: targetBgColor,
|
|
58
|
-
radius: targetRadius
|
|
59
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
60
|
-
,
|
|
58
|
+
radius: targetRadius,
|
|
61
59
|
style: style
|
|
62
60
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
63
61
|
dangerouslySetInnerHTML: {
|
|
@@ -127,9 +127,7 @@ var SpotlightDialogComponent = /*#__PURE__*/function (_Component) {
|
|
|
127
127
|
disabled: focusLockDisabled,
|
|
128
128
|
returnFocus: false,
|
|
129
129
|
autoFocus: true
|
|
130
|
-
}, /*#__PURE__*/_react.default.createElement(_compiled.Box
|
|
131
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
132
|
-
, {
|
|
130
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
133
131
|
style: style,
|
|
134
132
|
ref: ref,
|
|
135
133
|
"aria-modal": true,
|
|
@@ -38,6 +38,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
38
38
|
*
|
|
39
39
|
* @internal
|
|
40
40
|
*/
|
|
41
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
41
42
|
var SpotlightInner = /*#__PURE__*/function (_React$Component) {
|
|
42
43
|
function SpotlightInner() {
|
|
43
44
|
var _this;
|
|
@@ -167,9 +168,7 @@ var SpotlightInner = /*#__PURE__*/function (_React$Component) {
|
|
|
167
168
|
ref: ref
|
|
168
169
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
169
170
|
,
|
|
170
|
-
className: className
|
|
171
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
172
|
-
,
|
|
171
|
+
className: className,
|
|
173
172
|
style: style
|
|
174
173
|
}, /*#__PURE__*/_react.default.createElement(_spotlightDialog.default, {
|
|
175
174
|
testId: "".concat(testId, "--dialog"),
|
|
@@ -191,7 +190,7 @@ var SpotlightInner = /*#__PURE__*/function (_React$Component) {
|
|
|
191
190
|
});
|
|
192
191
|
}
|
|
193
192
|
}]);
|
|
194
|
-
}(_react.default.Component);
|
|
193
|
+
}(_react.default.Component); // eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
195
194
|
(0, _defineProperty2.default)(SpotlightInner, "defaultProps", {
|
|
196
195
|
dialogWidth: 400,
|
|
197
196
|
pulse: true
|
|
@@ -24,16 +24,16 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
24
24
|
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; }
|
|
25
25
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
26
26
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
var dest = /*#__PURE__*/(0, _react.createContext)(undefined);
|
|
28
|
+
var TargetConsumer = exports.TargetConsumer = dest.Consumer;
|
|
29
|
+
var TargetProvider = dest.Provider;
|
|
30
30
|
var SpotlightContext = exports.SpotlightContext = /*#__PURE__*/(0, _react.createContext)({
|
|
31
31
|
opened: _noop.default,
|
|
32
32
|
closed: _noop.default,
|
|
33
33
|
targets: {}
|
|
34
34
|
});
|
|
35
|
-
var SpotlightStateConsumer = exports.SpotlightConsumer = SpotlightContext.Consumer
|
|
36
|
-
|
|
35
|
+
var SpotlightStateConsumer = exports.SpotlightConsumer = SpotlightContext.Consumer;
|
|
36
|
+
var SpotlightStateProvider = SpotlightContext.Provider;
|
|
37
37
|
var Container = function Container(_ref) {
|
|
38
38
|
var Wrapper = _ref.component,
|
|
39
39
|
children = _ref.children;
|
|
@@ -150,8 +150,7 @@ var SpotlightManager = exports.default = /*#__PURE__*/function (_PureComponent)
|
|
|
150
150
|
ref: ref
|
|
151
151
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
152
152
|
,
|
|
153
|
-
className: className
|
|
154
|
-
/* eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766 */,
|
|
153
|
+
className: className,
|
|
155
154
|
style: style,
|
|
156
155
|
isTinted: blanketIsTinted,
|
|
157
156
|
onBlanketClicked: onBlanketClicked
|
|
@@ -41,6 +41,7 @@ var hasChildren = function hasChildren(children) {
|
|
|
41
41
|
*
|
|
42
42
|
* @deprecated Use `@atlaskit/spotlight` instead.
|
|
43
43
|
*/
|
|
44
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
44
45
|
var SpotlightTransition = /*#__PURE__*/function (_React$Component) {
|
|
45
46
|
function SpotlightTransition() {
|
|
46
47
|
var _this;
|
|
@@ -89,4 +90,6 @@ var SpotlightTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
89
90
|
* @internal
|
|
90
91
|
*/
|
|
91
92
|
var SpotlightTransitionConsumer = exports.SpotlightTransitionConsumer = SpotlightTransitionContext.Consumer;
|
|
93
|
+
|
|
94
|
+
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
92
95
|
var _default = exports.default = SpotlightTransition;
|
|
@@ -17,6 +17,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
17
17
|
// On update, it checks whether the current value prop is equal to the previous value prop.
|
|
18
18
|
// If they are different, it calls the onChange function.
|
|
19
19
|
// We use this for updating Popper when the SpotlightDialog width changes.
|
|
20
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
20
21
|
var ValueChanged = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
21
22
|
function ValueChanged() {
|
|
22
23
|
(0, _classCallCheck2.default)(this, ValueChanged);
|
|
@@ -47,9 +47,7 @@ const Clone = props => {
|
|
|
47
47
|
"data-testid": testId,
|
|
48
48
|
pulse: pulse,
|
|
49
49
|
bgColor: targetBgColor,
|
|
50
|
-
radius: targetRadius
|
|
51
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
52
|
-
,
|
|
50
|
+
radius: targetRadius,
|
|
53
51
|
style: style
|
|
54
52
|
}, /*#__PURE__*/React.createElement("div", {
|
|
55
53
|
dangerouslySetInnerHTML: {
|
|
@@ -99,9 +99,7 @@ class SpotlightDialogComponent extends Component {
|
|
|
99
99
|
disabled: focusLockDisabled,
|
|
100
100
|
returnFocus: false,
|
|
101
101
|
autoFocus: true
|
|
102
|
-
}, /*#__PURE__*/React.createElement(Box
|
|
103
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
104
|
-
, {
|
|
102
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
105
103
|
style: style,
|
|
106
104
|
ref: ref,
|
|
107
105
|
"aria-modal": true,
|
|
@@ -20,6 +20,7 @@ import { SpotlightTransitionConsumer } from './spotlight-transition';
|
|
|
20
20
|
*
|
|
21
21
|
* @internal
|
|
22
22
|
*/
|
|
23
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
23
24
|
class SpotlightInner extends React.Component {
|
|
24
25
|
constructor(...args) {
|
|
25
26
|
super(...args);
|
|
@@ -137,9 +138,7 @@ class SpotlightInner extends React.Component {
|
|
|
137
138
|
ref: ref
|
|
138
139
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
139
140
|
,
|
|
140
|
-
className: className
|
|
141
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
142
|
-
,
|
|
141
|
+
className: className,
|
|
143
142
|
style: style
|
|
144
143
|
}, /*#__PURE__*/React.createElement(SpotlightDialog, {
|
|
145
144
|
testId: `${testId}--dialog`,
|
|
@@ -159,6 +158,8 @@ class SpotlightInner extends React.Component {
|
|
|
159
158
|
}))))), /*#__PURE__*/React.createElement(ScrollLock, null)));
|
|
160
159
|
}
|
|
161
160
|
}
|
|
161
|
+
|
|
162
|
+
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
162
163
|
_defineProperty(SpotlightInner, "defaultProps", {
|
|
163
164
|
dialogWidth: 400,
|
|
164
165
|
pulse: true
|
|
@@ -6,19 +6,16 @@ import { ExitingPersistence, FadeIn } from '@atlaskit/motion';
|
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import Portal from '@atlaskit/portal';
|
|
8
8
|
import Blanket from '../styled/blanket';
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} = /*#__PURE__*/createContext(undefined);
|
|
9
|
+
const dest = /*#__PURE__*/createContext(undefined);
|
|
10
|
+
const TargetConsumer = dest.Consumer;
|
|
11
|
+
const TargetProvider = dest.Provider;
|
|
13
12
|
const SpotlightContext = /*#__PURE__*/createContext({
|
|
14
13
|
opened: noop,
|
|
15
14
|
closed: noop,
|
|
16
15
|
targets: {}
|
|
17
16
|
});
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
Provider: SpotlightStateProvider
|
|
21
|
-
} = SpotlightContext;
|
|
17
|
+
const SpotlightStateConsumer = SpotlightContext.Consumer;
|
|
18
|
+
const SpotlightStateProvider = SpotlightContext.Provider;
|
|
22
19
|
export { TargetConsumer };
|
|
23
20
|
export { SpotlightContext, SpotlightStateConsumer as SpotlightConsumer };
|
|
24
21
|
const Container = ({
|
|
@@ -118,8 +115,7 @@ export default class SpotlightManager extends PureComponent {
|
|
|
118
115
|
ref: ref
|
|
119
116
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
120
117
|
,
|
|
121
|
-
className: className
|
|
122
|
-
/* eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766 */,
|
|
118
|
+
className: className,
|
|
123
119
|
style: style,
|
|
124
120
|
isTinted: blanketIsTinted,
|
|
125
121
|
onBlanketClicked: onBlanketClicked
|
|
@@ -23,6 +23,7 @@ const hasChildren = children => {
|
|
|
23
23
|
*
|
|
24
24
|
* @deprecated Use `@atlaskit/spotlight` instead.
|
|
25
25
|
*/
|
|
26
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
26
27
|
class SpotlightTransition extends React.Component {
|
|
27
28
|
constructor(...args) {
|
|
28
29
|
super(...args);
|
|
@@ -62,4 +63,6 @@ class SpotlightTransition extends React.Component {
|
|
|
62
63
|
* @internal
|
|
63
64
|
*/
|
|
64
65
|
export const SpotlightTransitionConsumer = SpotlightTransitionContext.Consumer;
|
|
66
|
+
|
|
67
|
+
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
65
68
|
export default SpotlightTransition;
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
// On update, it checks whether the current value prop is equal to the previous value prop.
|
|
4
4
|
// If they are different, it calls the onChange function.
|
|
5
5
|
// We use this for updating Popper when the SpotlightDialog width changes.
|
|
6
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
6
7
|
export default class ValueChanged extends React.Component {
|
|
7
8
|
componentDidUpdate(prevProps) {
|
|
8
9
|
if (prevProps.value !== this.props.value) {
|
|
@@ -47,9 +47,7 @@ var Clone = function Clone(props) {
|
|
|
47
47
|
"data-testid": testId,
|
|
48
48
|
pulse: pulse,
|
|
49
49
|
bgColor: targetBgColor,
|
|
50
|
-
radius: targetRadius
|
|
51
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
52
|
-
,
|
|
50
|
+
radius: targetRadius,
|
|
53
51
|
style: style
|
|
54
52
|
}, /*#__PURE__*/React.createElement("div", {
|
|
55
53
|
dangerouslySetInnerHTML: {
|
|
@@ -118,9 +118,7 @@ var SpotlightDialogComponent = /*#__PURE__*/function (_Component) {
|
|
|
118
118
|
disabled: focusLockDisabled,
|
|
119
119
|
returnFocus: false,
|
|
120
120
|
autoFocus: true
|
|
121
|
-
}, /*#__PURE__*/React.createElement(Box
|
|
122
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
123
|
-
, {
|
|
121
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
124
122
|
style: style,
|
|
125
123
|
ref: ref,
|
|
126
124
|
"aria-modal": true,
|
|
@@ -31,6 +31,7 @@ import { SpotlightTransitionConsumer } from './spotlight-transition';
|
|
|
31
31
|
*
|
|
32
32
|
* @internal
|
|
33
33
|
*/
|
|
34
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
34
35
|
var SpotlightInner = /*#__PURE__*/function (_React$Component) {
|
|
35
36
|
function SpotlightInner() {
|
|
36
37
|
var _this;
|
|
@@ -160,9 +161,7 @@ var SpotlightInner = /*#__PURE__*/function (_React$Component) {
|
|
|
160
161
|
ref: ref
|
|
161
162
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
162
163
|
,
|
|
163
|
-
className: className
|
|
164
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
165
|
-
,
|
|
164
|
+
className: className,
|
|
166
165
|
style: style
|
|
167
166
|
}, /*#__PURE__*/React.createElement(SpotlightDialog, {
|
|
168
167
|
testId: "".concat(testId, "--dialog"),
|
|
@@ -184,7 +183,7 @@ var SpotlightInner = /*#__PURE__*/function (_React$Component) {
|
|
|
184
183
|
});
|
|
185
184
|
}
|
|
186
185
|
}]);
|
|
187
|
-
}(React.Component);
|
|
186
|
+
}(React.Component); // eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
188
187
|
_defineProperty(SpotlightInner, "defaultProps", {
|
|
189
188
|
dialogWidth: 400,
|
|
190
189
|
pulse: true
|
|
@@ -15,16 +15,16 @@ import { ExitingPersistence, FadeIn } from '@atlaskit/motion';
|
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
16
|
import Portal from '@atlaskit/portal';
|
|
17
17
|
import Blanket from '../styled/blanket';
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
var dest = /*#__PURE__*/createContext(undefined);
|
|
19
|
+
var TargetConsumer = dest.Consumer;
|
|
20
|
+
var TargetProvider = dest.Provider;
|
|
21
21
|
var SpotlightContext = /*#__PURE__*/createContext({
|
|
22
22
|
opened: noop,
|
|
23
23
|
closed: noop,
|
|
24
24
|
targets: {}
|
|
25
25
|
});
|
|
26
|
-
var SpotlightStateConsumer = SpotlightContext.Consumer
|
|
27
|
-
|
|
26
|
+
var SpotlightStateConsumer = SpotlightContext.Consumer;
|
|
27
|
+
var SpotlightStateProvider = SpotlightContext.Provider;
|
|
28
28
|
export { TargetConsumer };
|
|
29
29
|
export { SpotlightContext, SpotlightStateConsumer as SpotlightConsumer };
|
|
30
30
|
var Container = function Container(_ref) {
|
|
@@ -143,8 +143,7 @@ var SpotlightManager = /*#__PURE__*/function (_PureComponent) {
|
|
|
143
143
|
ref: ref
|
|
144
144
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
145
145
|
,
|
|
146
|
-
className: className
|
|
147
|
-
/* eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766 */,
|
|
146
|
+
className: className,
|
|
148
147
|
style: style,
|
|
149
148
|
isTinted: blanketIsTinted,
|
|
150
149
|
onBlanketClicked: onBlanketClicked
|
|
@@ -32,6 +32,7 @@ var hasChildren = function hasChildren(children) {
|
|
|
32
32
|
*
|
|
33
33
|
* @deprecated Use `@atlaskit/spotlight` instead.
|
|
34
34
|
*/
|
|
35
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
35
36
|
var SpotlightTransition = /*#__PURE__*/function (_React$Component) {
|
|
36
37
|
function SpotlightTransition() {
|
|
37
38
|
var _this;
|
|
@@ -80,4 +81,6 @@ var SpotlightTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
80
81
|
* @internal
|
|
81
82
|
*/
|
|
82
83
|
export var SpotlightTransitionConsumer = SpotlightTransitionContext.Consumer;
|
|
84
|
+
|
|
85
|
+
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
83
86
|
export default SpotlightTransition;
|
|
@@ -10,6 +10,7 @@ import React from 'react';
|
|
|
10
10
|
// On update, it checks whether the current value prop is equal to the previous value prop.
|
|
11
11
|
// If they are different, it calls the onChange function.
|
|
12
12
|
// We use this for updating Popper when the SpotlightDialog width changes.
|
|
13
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
13
14
|
var ValueChanged = /*#__PURE__*/function (_React$Component) {
|
|
14
15
|
function ValueChanged() {
|
|
15
16
|
_classCallCheck(this, ValueChanged);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { type ElementType, PureComponent, type ReactNode } from 'react';
|
|
2
|
+
import { type MemoizedFn } from 'memoize-one';
|
|
2
3
|
export type TargetRef = (element: HTMLElement | null | undefined) => void;
|
|
3
4
|
export type GetTargetRef = (
|
|
4
5
|
/**
|
|
@@ -73,7 +74,7 @@ export default class SpotlightManager extends PureComponent<SpotlightManagerProp
|
|
|
73
74
|
getTargetRef: (name: string) => (element: HTMLElement | null | undefined) => void;
|
|
74
75
|
spotlightOpen: () => void;
|
|
75
76
|
spotlightClose: () => void;
|
|
76
|
-
getStateProviderValue:
|
|
77
|
+
getStateProviderValue: MemoizedFn<(this: any, targets: any) => {
|
|
77
78
|
opened: () => void;
|
|
78
79
|
closed: () => void;
|
|
79
80
|
targets: any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { type ElementType, PureComponent, type ReactNode } from 'react';
|
|
2
|
+
import { type MemoizedFn } from 'memoize-one';
|
|
2
3
|
export type TargetRef = (element: HTMLElement | null | undefined) => void;
|
|
3
4
|
export type GetTargetRef = (
|
|
4
5
|
/**
|
|
@@ -73,7 +74,7 @@ export default class SpotlightManager extends PureComponent<SpotlightManagerProp
|
|
|
73
74
|
getTargetRef: (name: string) => (element: HTMLElement | null | undefined) => void;
|
|
74
75
|
spotlightOpen: () => void;
|
|
75
76
|
spotlightClose: () => void;
|
|
76
|
-
getStateProviderValue:
|
|
77
|
+
getStateProviderValue: MemoizedFn<(this: any, targets: any) => {
|
|
77
78
|
opened: () => void;
|
|
78
79
|
closed: () => void;
|
|
79
80
|
targets: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/onboarding",
|
|
3
|
-
"version": "14.5.
|
|
3
|
+
"version": "14.5.4",
|
|
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/"
|
|
@@ -55,15 +55,15 @@
|
|
|
55
55
|
"@atlaskit/button": "^23.9.0",
|
|
56
56
|
"@atlaskit/css": "^0.19.0",
|
|
57
57
|
"@atlaskit/ds-lib": "^5.3.0",
|
|
58
|
-
"@atlaskit/heading": "^5.
|
|
58
|
+
"@atlaskit/heading": "^5.3.0",
|
|
59
59
|
"@atlaskit/layering": "^3.6.0",
|
|
60
|
-
"@atlaskit/modal-dialog": "^14.
|
|
60
|
+
"@atlaskit/modal-dialog": "^14.11.0",
|
|
61
61
|
"@atlaskit/motion": "^5.3.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
|
-
"@atlaskit/primitives": "^
|
|
66
|
-
"@atlaskit/tokens": "^
|
|
65
|
+
"@atlaskit/primitives": "^18.0.0",
|
|
66
|
+
"@atlaskit/tokens": "^11.0.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@compiled/react": "^0.18.6",
|
|
69
69
|
"bind-event-listener": "^3.0.0",
|