@atlaskit/onboarding 11.5.5 → 11.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 +15 -0
- package/dist/cjs/components/spotlight-card.js +26 -39
- package/dist/cjs/components/spotlight-dialog.js +1 -1
- package/dist/es2019/components/spotlight-card.js +2 -11
- package/dist/es2019/components/spotlight-dialog.js +1 -1
- package/dist/esm/components/spotlight-card.js +26 -39
- package/dist/esm/components/spotlight-dialog.js +1 -1
- 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 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/onboarding
|
|
2
2
|
|
|
3
|
+
## 11.5.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 11.5.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#100605](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100605)
|
|
14
|
+
[`f12f3d4764e2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12f3d4764e2) -
|
|
15
|
+
Reverts an attempted bug fix in 11.5.2 that re-added a theme provider to spotlight card to
|
|
16
|
+
prevent custom theme buttons inheriting other themes
|
|
17
|
+
|
|
3
18
|
## 11.5.5
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -12,12 +12,10 @@ var _react2 = require("@emotion/react");
|
|
|
12
12
|
var _customThemeButton = _interopRequireWildcard(require("@atlaskit/button/custom-theme-button"));
|
|
13
13
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
14
14
|
var _primitives = require("@atlaskit/primitives");
|
|
15
|
-
var _components = require("@atlaskit/theme/components");
|
|
16
15
|
var _dialog = require("../styled/dialog");
|
|
17
16
|
var _theme = require("./theme");
|
|
18
17
|
var _excluded = ["text", "key"];
|
|
19
18
|
/** @jsx jsx */
|
|
20
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
21
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
21
|
var bodyStyles = (0, _react2.css)({
|
|
@@ -64,13 +62,6 @@ var containerStyles = (0, _primitives.xcss)({
|
|
|
64
62
|
var containerShadowStyles = (0, _primitives.xcss)({
|
|
65
63
|
boxShadow: 'elevation.shadow.raised'
|
|
66
64
|
});
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @deprecated
|
|
70
|
-
*/
|
|
71
|
-
var Theme = (0, _components.createTheme)(function () {
|
|
72
|
-
return {};
|
|
73
|
-
});
|
|
74
65
|
/**
|
|
75
66
|
* __Spotlight card__
|
|
76
67
|
*
|
|
@@ -104,36 +95,32 @@ var SpotlightCard = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
104
95
|
Footer = _components$Footer === void 0 ? DefaultFooter : _components$Footer;
|
|
105
96
|
return (0, _react2.jsx)(_customThemeButton.Theme.Provider, {
|
|
106
97
|
value: _theme.spotlightButtonTheme
|
|
107
|
-
}, (0, _react2.jsx)(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
key: key || (typeof text === 'string' ? text : "".concat(idx))
|
|
134
|
-
}, (0, _react2.jsx)(_customThemeButton.default, rest, text));
|
|
135
|
-
}))) : null));
|
|
136
|
-
})));
|
|
98
|
+
}, (0, _react2.jsx)(_primitives.Box, {
|
|
99
|
+
backgroundColor: "color.background.discovery.bold",
|
|
100
|
+
xcss: [containerStyles, !isFlat && containerShadowStyles],
|
|
101
|
+
style: {
|
|
102
|
+
width: width
|
|
103
|
+
},
|
|
104
|
+
ref: ref || innerRef,
|
|
105
|
+
testId: testId
|
|
106
|
+
}, typeof image === 'string' ? (0, _react2.jsx)("img", {
|
|
107
|
+
css: imageStyles,
|
|
108
|
+
src: image,
|
|
109
|
+
alt: ""
|
|
110
|
+
}) : image, (0, _react2.jsx)("div", {
|
|
111
|
+
css: bodyStyles
|
|
112
|
+
}, heading || headingAfterElement ? (0, _react2.jsx)(Header, null, (0, _react2.jsx)(_heading.default, {
|
|
113
|
+
id: headingId,
|
|
114
|
+
size: "medium",
|
|
115
|
+
as: "h".concat(headingLevel)
|
|
116
|
+
}, heading), headingAfterElement) : null, (0, _react2.jsx)(_primitives.Text, null, children), actions.length > 0 || actionsBeforeElement ? (0, _react2.jsx)(Footer, null, actionsBeforeElement || (0, _react2.jsx)("span", null), (0, _react2.jsx)(_dialog.DialogActionItemContainer, null, actions.map(function (_ref3, idx) {
|
|
117
|
+
var text = _ref3.text,
|
|
118
|
+
key = _ref3.key,
|
|
119
|
+
rest = (0, _objectWithoutProperties2.default)(_ref3, _excluded);
|
|
120
|
+
return (0, _react2.jsx)(_dialog.DialogActionItem, {
|
|
121
|
+
key: key || (typeof text === 'string' ? text : "".concat(idx))
|
|
122
|
+
}, (0, _react2.jsx)(_customThemeButton.default, rest, text));
|
|
123
|
+
}))) : null)));
|
|
137
124
|
});
|
|
138
125
|
SpotlightCard.displayName = 'SpotlightCard';
|
|
139
126
|
var _default = exports.default = SpotlightCard;
|
|
@@ -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.7";
|
|
31
31
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
32
32
|
(0, _inherits2.default)(SpotlightDialog, _Component);
|
|
33
33
|
var _super = _createSuper(SpotlightDialog);
|
|
@@ -4,8 +4,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
4
4
|
import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
|
|
5
5
|
import Heading from '@atlaskit/heading';
|
|
6
6
|
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
7
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
8
|
-
import { createTheme } from '@atlaskit/theme/components';
|
|
9
7
|
import { DialogActionItem, DialogActionItemContainer } from '../styled/dialog';
|
|
10
8
|
import { spotlightButtonTheme } from './theme';
|
|
11
9
|
const bodyStyles = css({
|
|
@@ -50,11 +48,6 @@ const containerStyles = xcss({
|
|
|
50
48
|
const containerShadowStyles = xcss({
|
|
51
49
|
boxShadow: 'elevation.shadow.raised'
|
|
52
50
|
});
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated
|
|
56
|
-
*/
|
|
57
|
-
const Theme = createTheme(() => ({}));
|
|
58
51
|
/**
|
|
59
52
|
* __Spotlight card__
|
|
60
53
|
*
|
|
@@ -86,9 +79,7 @@ const SpotlightCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
86
79
|
} = components;
|
|
87
80
|
return jsx(ButtonTheme.Provider, {
|
|
88
81
|
value: spotlightButtonTheme
|
|
89
|
-
}, jsx(
|
|
90
|
-
value: undefined
|
|
91
|
-
}, jsx(Theme.Consumer, null, () => jsx(Box, {
|
|
82
|
+
}, jsx(Box, {
|
|
92
83
|
backgroundColor: "color.background.discovery.bold",
|
|
93
84
|
xcss: [containerStyles, !isFlat && containerShadowStyles],
|
|
94
85
|
style: {
|
|
@@ -114,7 +105,7 @@ const SpotlightCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
114
105
|
return jsx(DialogActionItem, {
|
|
115
106
|
key: key || (typeof text === 'string' ? text : `${idx}`)
|
|
116
107
|
}, jsx(Button, rest, text));
|
|
117
|
-
}))) : null)))
|
|
108
|
+
}))) : null)));
|
|
118
109
|
});
|
|
119
110
|
SpotlightCard.displayName = 'SpotlightCard';
|
|
120
111
|
export default SpotlightCard;
|
|
@@ -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.7";
|
|
11
11
|
class SpotlightDialog extends Component {
|
|
12
12
|
constructor(...args) {
|
|
13
13
|
super(...args);
|
|
@@ -6,8 +6,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
6
6
|
import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
|
|
7
7
|
import Heading from '@atlaskit/heading';
|
|
8
8
|
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
9
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
10
|
-
import { createTheme } from '@atlaskit/theme/components';
|
|
11
9
|
import { DialogActionItem, DialogActionItemContainer } from '../styled/dialog';
|
|
12
10
|
import { spotlightButtonTheme } from './theme';
|
|
13
11
|
var bodyStyles = css({
|
|
@@ -54,13 +52,6 @@ var containerStyles = xcss({
|
|
|
54
52
|
var containerShadowStyles = xcss({
|
|
55
53
|
boxShadow: 'elevation.shadow.raised'
|
|
56
54
|
});
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @deprecated
|
|
60
|
-
*/
|
|
61
|
-
var Theme = createTheme(function () {
|
|
62
|
-
return {};
|
|
63
|
-
});
|
|
64
55
|
/**
|
|
65
56
|
* __Spotlight card__
|
|
66
57
|
*
|
|
@@ -94,36 +85,32 @@ var SpotlightCard = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
94
85
|
Footer = _components$Footer === void 0 ? DefaultFooter : _components$Footer;
|
|
95
86
|
return jsx(ButtonTheme.Provider, {
|
|
96
87
|
value: spotlightButtonTheme
|
|
97
|
-
}, jsx(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
key: key || (typeof text === 'string' ? text : "".concat(idx))
|
|
124
|
-
}, jsx(Button, rest, text));
|
|
125
|
-
}))) : null));
|
|
126
|
-
})));
|
|
88
|
+
}, jsx(Box, {
|
|
89
|
+
backgroundColor: "color.background.discovery.bold",
|
|
90
|
+
xcss: [containerStyles, !isFlat && containerShadowStyles],
|
|
91
|
+
style: {
|
|
92
|
+
width: width
|
|
93
|
+
},
|
|
94
|
+
ref: ref || innerRef,
|
|
95
|
+
testId: testId
|
|
96
|
+
}, typeof image === 'string' ? jsx("img", {
|
|
97
|
+
css: imageStyles,
|
|
98
|
+
src: image,
|
|
99
|
+
alt: ""
|
|
100
|
+
}) : image, jsx("div", {
|
|
101
|
+
css: bodyStyles
|
|
102
|
+
}, heading || headingAfterElement ? jsx(Header, null, jsx(Heading, {
|
|
103
|
+
id: headingId,
|
|
104
|
+
size: "medium",
|
|
105
|
+
as: "h".concat(headingLevel)
|
|
106
|
+
}, heading), headingAfterElement) : null, jsx(Text, null, children), actions.length > 0 || actionsBeforeElement ? jsx(Footer, null, actionsBeforeElement || jsx("span", null), jsx(DialogActionItemContainer, null, actions.map(function (_ref3, idx) {
|
|
107
|
+
var text = _ref3.text,
|
|
108
|
+
key = _ref3.key,
|
|
109
|
+
rest = _objectWithoutProperties(_ref3, _excluded);
|
|
110
|
+
return jsx(DialogActionItem, {
|
|
111
|
+
key: key || (typeof text === 'string' ? text : "".concat(idx))
|
|
112
|
+
}, jsx(Button, rest, text));
|
|
113
|
+
}))) : null)));
|
|
127
114
|
});
|
|
128
115
|
SpotlightCard.displayName = 'SpotlightCard';
|
|
129
116
|
export default SpotlightCard;
|
|
@@ -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.7";
|
|
21
21
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
22
22
|
_inherits(SpotlightDialog, _Component);
|
|
23
23
|
var _super = _createSuper(SpotlightDialog);
|
|
@@ -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.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/"
|
|
@@ -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.16.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
|
-
"@atlaskit/motion": "^1.
|
|
49
|
-
"@atlaskit/popper": "^
|
|
48
|
+
"@atlaskit/motion": "^1.6.0",
|
|
49
|
+
"@atlaskit/popper": "^6.0.0",
|
|
50
50
|
"@atlaskit/portal": "^4.5.0",
|
|
51
|
-
"@atlaskit/primitives": "^6.
|
|
52
|
-
"@atlaskit/theme": "^12.
|
|
53
|
-
"@atlaskit/tokens": "^1.
|
|
51
|
+
"@atlaskit/primitives": "^6.3.0",
|
|
52
|
+
"@atlaskit/theme": "^12.8.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",
|