@atlaskit/onboarding 11.5.6 → 11.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 +992 -982
- package/dist/cjs/components/clone.js +6 -2
- package/dist/cjs/components/spotlight-dialog.js +1 -1
- package/dist/cjs/components/spotlight-inner.js +3 -1
- package/dist/cjs/styled/blanket.js +3 -1
- package/dist/cjs/styled/modal.js +1 -1
- package/dist/cjs/styled/target.js +6 -2
- package/dist/es2019/components/clone.js +6 -2
- package/dist/es2019/components/spotlight-dialog.js +1 -1
- package/dist/es2019/components/spotlight-inner.js +3 -1
- package/dist/es2019/styled/blanket.js +3 -1
- package/dist/es2019/styled/modal.js +1 -1
- package/dist/es2019/styled/target.js +6 -2
- package/dist/esm/components/clone.js +6 -2
- package/dist/esm/components/spotlight-dialog.js +1 -1
- package/dist/esm/components/spotlight-inner.js +3 -1
- package/dist/esm/styled/blanket.js +3 -1
- package/dist/esm/styled/modal.js +1 -1
- package/dist/esm/styled/target.js +6 -2
- package/dist/types/components/animation.d.ts +1 -1
- package/dist/types/components/clone.d.ts +1 -1
- package/dist/types/components/modal.d.ts +3 -3
- package/dist/types/components/spotlight-dialog.d.ts +3 -3
- package/dist/types/components/spotlight-inner.d.ts +2 -2
- package/dist/types/components/spotlight-manager.d.ts +1 -1
- package/dist/types/components/spotlight-target.d.ts +1 -1
- package/dist/types/components/spotlight-transition.d.ts +1 -1
- package/dist/types/components/spotlight.d.ts +2 -2
- package/dist/types/components/value-changed.d.ts +1 -1
- package/dist/types/styled/dialog.d.ts +1 -1
- package/dist/types/styled/modal.d.ts +1 -1
- package/dist/types/types.d.ts +2 -2
- package/dist/types-ts4.5/components/animation.d.ts +1 -1
- package/dist/types-ts4.5/components/clone.d.ts +1 -1
- package/dist/types-ts4.5/components/modal.d.ts +3 -3
- package/dist/types-ts4.5/components/spotlight-dialog.d.ts +3 -3
- package/dist/types-ts4.5/components/spotlight-inner.d.ts +2 -2
- package/dist/types-ts4.5/components/spotlight-manager.d.ts +1 -1
- package/dist/types-ts4.5/components/spotlight-target.d.ts +1 -1
- package/dist/types-ts4.5/components/spotlight-transition.d.ts +1 -1
- package/dist/types-ts4.5/components/spotlight.d.ts +2 -2
- package/dist/types-ts4.5/components/value-changed.d.ts +1 -1
- package/dist/types-ts4.5/styled/dialog.d.ts +1 -1
- package/dist/types-ts4.5/styled/modal.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +2 -2
- package/package.json +7 -9
|
@@ -44,13 +44,17 @@ var Clone = function Clone(props) {
|
|
|
44
44
|
"data-testid": testId,
|
|
45
45
|
pulse: pulse,
|
|
46
46
|
bgColor: targetBgColor,
|
|
47
|
-
radius: targetRadius
|
|
47
|
+
radius: targetRadius
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
49
|
+
,
|
|
48
50
|
style: style
|
|
49
51
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
50
52
|
// eslint-disable-next-line react/no-danger
|
|
51
53
|
dangerouslySetInnerHTML: {
|
|
52
54
|
__html: cloneAndOverrideStyles(targetNode).outerHTML
|
|
53
|
-
}
|
|
55
|
+
}
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
57
|
+
,
|
|
54
58
|
style: {
|
|
55
59
|
height: '100%',
|
|
56
60
|
pointerEvents: 'none'
|
|
@@ -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.5.
|
|
30
|
+
var packageVersion = "11.5.8";
|
|
31
31
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
32
32
|
(0, _inherits2.default)(SpotlightDialog, _Component);
|
|
33
33
|
var _super = _createSuper(SpotlightDialog);
|
|
@@ -122,7 +122,9 @@ var SpotlightInner = /*#__PURE__*/function (_React$Component) {
|
|
|
122
122
|
return /*#__PURE__*/_react.default.createElement(_clone.default, {
|
|
123
123
|
testId: "".concat(testId, "--target"),
|
|
124
124
|
pulse: pulse,
|
|
125
|
-
target: target
|
|
125
|
+
target: target
|
|
126
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
127
|
+
,
|
|
126
128
|
style: _this2.getTargetNodeStyle(box),
|
|
127
129
|
targetBgColor: targetBgColor,
|
|
128
130
|
targetNode: targetNode,
|
|
@@ -32,7 +32,9 @@ var blanketStyles = (0, _react.css)({
|
|
|
32
32
|
*/
|
|
33
33
|
var Blanket = function Blanket(props) {
|
|
34
34
|
return (0, _react.jsx)("div", {
|
|
35
|
-
css: blanketStyles
|
|
35
|
+
css: blanketStyles
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
37
|
+
,
|
|
36
38
|
style: _objectSpread(_objectSpread({}, props.style), {}, {
|
|
37
39
|
backgroundColor: props.isTinted ? "var(--ds-blanket, ".concat(_colors.N100A, ")") : 'transparent'
|
|
38
40
|
})
|
package/dist/cjs/styled/modal.js
CHANGED
|
@@ -14,7 +14,7 @@ var modalBodyStyles = (0, _react.css)({
|
|
|
14
14
|
textAlign: 'center'
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
|
|
18
18
|
var modalHeadingStyles = (0, _react.css)([(0, _react.css)((0, _typography.h600)({
|
|
19
19
|
theme: {
|
|
20
20
|
mode: 'light'
|
|
@@ -45,7 +45,9 @@ var Base = function Base(_ref) {
|
|
|
45
45
|
testId = _ref.testId,
|
|
46
46
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
47
47
|
return (0, _react.jsx)("div", (0, _extends2.default)({
|
|
48
|
-
"data-testid": testId
|
|
48
|
+
"data-testid": testId
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
50
|
+
,
|
|
49
51
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
50
52
|
backgroundColor: bgColor,
|
|
51
53
|
borderRadius: radius ? "".concat(radius, "px") : undefined
|
|
@@ -92,7 +94,9 @@ var targetOverlayStyles = (0, _react.css)({
|
|
|
92
94
|
*/
|
|
93
95
|
var TargetOverlay = exports.TargetOverlay = function TargetOverlay(props) {
|
|
94
96
|
return (0, _react.jsx)("div", (0, _extends2.default)({}, props, {
|
|
95
|
-
css: targetOverlayStyles
|
|
97
|
+
css: targetOverlayStyles
|
|
98
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
99
|
+
,
|
|
96
100
|
style: {
|
|
97
101
|
cursor: props.onClick ? 'pointer' : 'auto'
|
|
98
102
|
}
|
|
@@ -39,13 +39,17 @@ const Clone = props => {
|
|
|
39
39
|
"data-testid": testId,
|
|
40
40
|
pulse: pulse,
|
|
41
41
|
bgColor: targetBgColor,
|
|
42
|
-
radius: targetRadius
|
|
42
|
+
radius: targetRadius
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
44
|
+
,
|
|
43
45
|
style: style
|
|
44
46
|
}, /*#__PURE__*/React.createElement("div", {
|
|
45
47
|
// eslint-disable-next-line react/no-danger
|
|
46
48
|
dangerouslySetInnerHTML: {
|
|
47
49
|
__html: cloneAndOverrideStyles(targetNode).outerHTML
|
|
48
|
-
}
|
|
50
|
+
}
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
52
|
+
,
|
|
49
53
|
style: {
|
|
50
54
|
height: '100%',
|
|
51
55
|
pointerEvents: 'none'
|
|
@@ -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.5.
|
|
10
|
+
const packageVersion = "11.5.8";
|
|
11
11
|
class SpotlightDialog extends Component {
|
|
12
12
|
constructor(...args) {
|
|
13
13
|
super(...args);
|
|
@@ -87,7 +87,9 @@ class SpotlightInner extends React.Component {
|
|
|
87
87
|
}, box => /*#__PURE__*/React.createElement(Clone, {
|
|
88
88
|
testId: `${testId}--target`,
|
|
89
89
|
pulse: pulse,
|
|
90
|
-
target: target
|
|
90
|
+
target: target
|
|
91
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
92
|
+
,
|
|
91
93
|
style: this.getTargetNodeStyle(box),
|
|
92
94
|
targetBgColor: targetBgColor,
|
|
93
95
|
targetNode: targetNode,
|
|
@@ -23,7 +23,9 @@ const blanketStyles = css({
|
|
|
23
23
|
*/
|
|
24
24
|
const Blanket = props => {
|
|
25
25
|
return jsx("div", {
|
|
26
|
-
css: blanketStyles
|
|
26
|
+
css: blanketStyles
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
28
|
+
,
|
|
27
29
|
style: {
|
|
28
30
|
...props.style,
|
|
29
31
|
backgroundColor: props.isTinted ? `var(--ds-blanket, ${N100A})` : 'transparent'
|
|
@@ -8,7 +8,7 @@ const modalBodyStyles = css({
|
|
|
8
8
|
textAlign: 'center'
|
|
9
9
|
});
|
|
10
10
|
|
|
11
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
11
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
|
|
12
12
|
const modalHeadingStyles = css([css(h600({
|
|
13
13
|
theme: {
|
|
14
14
|
mode: 'light'
|
|
@@ -32,7 +32,9 @@ const Base = ({
|
|
|
32
32
|
testId,
|
|
33
33
|
...props
|
|
34
34
|
}) => jsx("div", _extends({
|
|
35
|
-
"data-testid": testId
|
|
35
|
+
"data-testid": testId
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
37
|
+
,
|
|
36
38
|
style: {
|
|
37
39
|
...style,
|
|
38
40
|
backgroundColor: bgColor,
|
|
@@ -77,7 +79,9 @@ const targetOverlayStyles = css({
|
|
|
77
79
|
* @internal
|
|
78
80
|
*/
|
|
79
81
|
export const TargetOverlay = props => jsx("div", _extends({}, props, {
|
|
80
|
-
css: targetOverlayStyles
|
|
82
|
+
css: targetOverlayStyles
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
84
|
+
,
|
|
81
85
|
style: {
|
|
82
86
|
cursor: props.onClick ? 'pointer' : 'auto'
|
|
83
87
|
}
|
|
@@ -37,13 +37,17 @@ var Clone = function Clone(props) {
|
|
|
37
37
|
"data-testid": testId,
|
|
38
38
|
pulse: pulse,
|
|
39
39
|
bgColor: targetBgColor,
|
|
40
|
-
radius: targetRadius
|
|
40
|
+
radius: targetRadius
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
42
|
+
,
|
|
41
43
|
style: style
|
|
42
44
|
}, /*#__PURE__*/React.createElement("div", {
|
|
43
45
|
// eslint-disable-next-line react/no-danger
|
|
44
46
|
dangerouslySetInnerHTML: {
|
|
45
47
|
__html: cloneAndOverrideStyles(targetNode).outerHTML
|
|
46
|
-
}
|
|
48
|
+
}
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
50
|
+
,
|
|
47
51
|
style: {
|
|
48
52
|
height: '100%',
|
|
49
53
|
pointerEvents: 'none'
|
|
@@ -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.5.
|
|
20
|
+
var packageVersion = "11.5.8";
|
|
21
21
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
22
22
|
_inherits(SpotlightDialog, _Component);
|
|
23
23
|
var _super = _createSuper(SpotlightDialog);
|
|
@@ -115,7 +115,9 @@ var SpotlightInner = /*#__PURE__*/function (_React$Component) {
|
|
|
115
115
|
return /*#__PURE__*/React.createElement(Clone, {
|
|
116
116
|
testId: "".concat(testId, "--target"),
|
|
117
117
|
pulse: pulse,
|
|
118
|
-
target: target
|
|
118
|
+
target: target
|
|
119
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
120
|
+
,
|
|
119
121
|
style: _this2.getTargetNodeStyle(box),
|
|
120
122
|
targetBgColor: targetBgColor,
|
|
121
123
|
targetNode: targetNode,
|
|
@@ -26,7 +26,9 @@ var blanketStyles = css({
|
|
|
26
26
|
*/
|
|
27
27
|
var Blanket = function Blanket(props) {
|
|
28
28
|
return jsx("div", {
|
|
29
|
-
css: blanketStyles
|
|
29
|
+
css: blanketStyles
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
31
|
+
,
|
|
30
32
|
style: _objectSpread(_objectSpread({}, props.style), {}, {
|
|
31
33
|
backgroundColor: props.isTinted ? "var(--ds-blanket, ".concat(N100A, ")") : 'transparent'
|
|
32
34
|
})
|
package/dist/esm/styled/modal.js
CHANGED
|
@@ -8,7 +8,7 @@ var modalBodyStyles = css({
|
|
|
8
8
|
textAlign: 'center'
|
|
9
9
|
});
|
|
10
10
|
|
|
11
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
11
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
|
|
12
12
|
var modalHeadingStyles = css([css(h600({
|
|
13
13
|
theme: {
|
|
14
14
|
mode: 'light'
|
|
@@ -39,7 +39,9 @@ var Base = function Base(_ref) {
|
|
|
39
39
|
testId = _ref.testId,
|
|
40
40
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
41
41
|
return jsx("div", _extends({
|
|
42
|
-
"data-testid": testId
|
|
42
|
+
"data-testid": testId
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
44
|
+
,
|
|
43
45
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
44
46
|
backgroundColor: bgColor,
|
|
45
47
|
borderRadius: radius ? "".concat(radius, "px") : undefined
|
|
@@ -86,7 +88,9 @@ var targetOverlayStyles = css({
|
|
|
86
88
|
*/
|
|
87
89
|
export var TargetOverlay = function TargetOverlay(props) {
|
|
88
90
|
return jsx("div", _extends({}, props, {
|
|
89
|
-
css: targetOverlayStyles
|
|
91
|
+
css: targetOverlayStyles
|
|
92
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
93
|
+
,
|
|
90
94
|
style: {
|
|
91
95
|
cursor: props.onClick ? 'pointer' : 'auto'
|
|
92
96
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { Component, ElementType, ReactNode } from 'react';
|
|
2
|
+
import { Component, type ElementType, type ReactNode } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { ModalFooterProps as FooterComponentProps, ModalHeaderProps as HeaderComponentProps } from '@atlaskit/modal-dialog';
|
|
5
|
-
import { Actions } from '../types';
|
|
4
|
+
import { type ModalFooterProps as FooterComponentProps, type ModalHeaderProps as HeaderComponentProps } from '@atlaskit/modal-dialog';
|
|
5
|
+
import { type Actions } from '../types';
|
|
6
6
|
type ModalProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Buttons to render in the footer.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
-
import { Actions } from '../types';
|
|
1
|
+
import React, { type ComponentType, type ReactNode } from 'react';
|
|
2
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type Actions } from '../types';
|
|
4
4
|
export interface SpotlightDialogProps extends WithAnalyticsEventsProps {
|
|
5
5
|
/**
|
|
6
6
|
* Buttons to render in the footer.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ElementBoundingBox } from '../utils/use-element-box';
|
|
3
|
-
import { SpotlightProps } from './spotlight';
|
|
2
|
+
import { type ElementBoundingBox } from '../utils/use-element-box';
|
|
3
|
+
import { type SpotlightProps } from './spotlight';
|
|
4
4
|
export interface SpotlightInnerProps extends SpotlightProps {
|
|
5
5
|
/**
|
|
6
6
|
* The spotlight target DOM element.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ElementType, PureComponent, ReactNode } from 'react';
|
|
1
|
+
import React, { type ElementType, PureComponent, type ReactNode } from 'react';
|
|
2
2
|
declare const TargetConsumer: React.Consumer<any>;
|
|
3
3
|
declare const SpotlightContext: React.Context<{
|
|
4
4
|
opened: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentType, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { Actions } from '../types';
|
|
1
|
+
import { type ComponentType, type MouseEvent, type ReactNode } from 'react';
|
|
2
|
+
import { type Actions } from '../types';
|
|
3
3
|
export interface SpotlightProps {
|
|
4
4
|
/**
|
|
5
5
|
* Buttons to render in the footer.
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
3
3
|
interface Action extends Omit<CustomThemeButtonProps, 'children'> {
|
|
4
4
|
key?: string;
|
|
5
5
|
text?: ReactNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { Component, ElementType, ReactNode } from 'react';
|
|
2
|
+
import { Component, type ElementType, type ReactNode } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { ModalFooterProps as FooterComponentProps, ModalHeaderProps as HeaderComponentProps } from '@atlaskit/modal-dialog';
|
|
5
|
-
import { Actions } from '../types';
|
|
4
|
+
import { type ModalFooterProps as FooterComponentProps, type ModalHeaderProps as HeaderComponentProps } from '@atlaskit/modal-dialog';
|
|
5
|
+
import { type Actions } from '../types';
|
|
6
6
|
type ModalProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Buttons to render in the footer.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
-
import { Actions } from '../types';
|
|
1
|
+
import React, { type ComponentType, type ReactNode } from 'react';
|
|
2
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type Actions } from '../types';
|
|
4
4
|
export interface SpotlightDialogProps extends WithAnalyticsEventsProps {
|
|
5
5
|
/**
|
|
6
6
|
* Buttons to render in the footer.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ElementBoundingBox } from '../utils/use-element-box';
|
|
3
|
-
import { SpotlightProps } from './spotlight';
|
|
2
|
+
import { type ElementBoundingBox } from '../utils/use-element-box';
|
|
3
|
+
import { type SpotlightProps } from './spotlight';
|
|
4
4
|
export interface SpotlightInnerProps extends SpotlightProps {
|
|
5
5
|
/**
|
|
6
6
|
* The spotlight target DOM element.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ElementType, PureComponent, ReactNode } from 'react';
|
|
1
|
+
import React, { type ElementType, PureComponent, type ReactNode } from 'react';
|
|
2
2
|
declare const TargetConsumer: React.Consumer<any>;
|
|
3
3
|
declare const SpotlightContext: React.Context<{
|
|
4
4
|
opened: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentType, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { Actions } from '../types';
|
|
1
|
+
import { type ComponentType, type MouseEvent, type ReactNode } from 'react';
|
|
2
|
+
import { type Actions } from '../types';
|
|
3
3
|
export interface SpotlightProps {
|
|
4
4
|
/**
|
|
5
5
|
* Buttons to render in the footer.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
3
3
|
interface Action extends Omit<CustomThemeButtonProps, 'children'> {
|
|
4
4
|
key?: string;
|
|
5
5
|
text?: ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/onboarding",
|
|
3
|
-
"version": "11.5.
|
|
3
|
+
"version": "11.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/"
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
44
|
-
"@atlaskit/button": "^17.
|
|
44
|
+
"@atlaskit/button": "^17.17.0",
|
|
45
45
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
46
46
|
"@atlaskit/heading": "^2.3.0",
|
|
47
47
|
"@atlaskit/modal-dialog": "^12.13.0",
|
|
48
48
|
"@atlaskit/motion": "^1.6.0",
|
|
49
|
-
"@atlaskit/popper": "^
|
|
49
|
+
"@atlaskit/popper": "^6.0.0",
|
|
50
50
|
"@atlaskit/portal": "^4.5.0",
|
|
51
|
-
"@atlaskit/primitives": "^
|
|
52
|
-
"@atlaskit/theme": "^12.
|
|
53
|
-
"@atlaskit/tokens": "^1.
|
|
51
|
+
"@atlaskit/primitives": "^7.0.0",
|
|
52
|
+
"@atlaskit/theme": "^12.9.0",
|
|
53
|
+
"@atlaskit/tokens": "^1.49.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@emotion/react": "^11.7.1",
|
|
56
56
|
"bind-event-listener": "^3.0.0",
|
|
@@ -72,7 +72,6 @@
|
|
|
72
72
|
"@af/visual-regression": "*",
|
|
73
73
|
"@atlaskit/ssr": "*",
|
|
74
74
|
"@atlaskit/visual-regression": "*",
|
|
75
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
76
75
|
"@testing-library/react": "^12.1.5",
|
|
77
76
|
"@testing-library/react-hooks": "^8.0.1",
|
|
78
77
|
"@types/exenv": "^1.2.0",
|
|
@@ -101,6 +100,5 @@
|
|
|
101
100
|
"design-system": "v1",
|
|
102
101
|
"deprecation": "no-deprecated-imports"
|
|
103
102
|
}
|
|
104
|
-
}
|
|
105
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
103
|
+
}
|
|
106
104
|
}
|