@atlaskit/onboarding 10.5.4 → 10.6.1
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 +17 -0
- package/dist/cjs/components/clone.js +1 -0
- package/dist/cjs/components/modal.js +8 -8
- package/dist/cjs/components/spotlight-card.js +23 -22
- package/dist/cjs/components/spotlight-dialog.js +1 -1
- package/dist/cjs/styled/blanket.js +3 -3
- package/dist/cjs/styled/dialog.js +9 -12
- package/dist/cjs/styled/modal.js +20 -21
- package/dist/cjs/styled/target.js +9 -9
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/clone.js +1 -0
- package/dist/es2019/components/modal.js +1 -1
- package/dist/es2019/components/spotlight-card.js +7 -6
- package/dist/es2019/components/spotlight-dialog.js +1 -1
- package/dist/es2019/styled/blanket.js +1 -1
- package/dist/es2019/styled/dialog.js +3 -5
- package/dist/es2019/styled/modal.js +8 -9
- package/dist/es2019/styled/target.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/clone.js +1 -0
- package/dist/esm/components/modal.js +1 -1
- package/dist/esm/components/spotlight-card.js +7 -6
- package/dist/esm/components/spotlight-dialog.js +1 -1
- package/dist/esm/styled/blanket.js +1 -1
- package/dist/esm/styled/dialog.js +3 -5
- package/dist/esm/styled/modal.js +8 -9
- package/dist/esm/styled/target.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/modal.d.ts +4 -3
- package/dist/types/components/spotlight-dialog.d.ts +1 -1
- package/dist/types-ts4.0/components/modal.d.ts +4 -3
- package/dist/types-ts4.0/components/spotlight-dialog.d.ts +1 -1
- package/package.json +9 -6
- package/report.api.md +68 -34
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/onboarding
|
|
2
2
|
|
|
3
|
+
## 10.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9de88fa1e1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9de88fa1e1e) - Internal changes to include spacing tokens in component implementations.
|
|
8
|
+
|
|
9
|
+
## 10.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`e0015d4e201`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e0015d4e201) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [`05efb20bca8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/05efb20bca8) - Fixes an issue with the Spotlight target element height when this is determined by a parent element.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 10.5.4
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -29,7 +29,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
29
29
|
|
|
30
30
|
var _react = require("react");
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _react2 = require("@emotion/react");
|
|
33
33
|
|
|
34
34
|
var _customThemeButton = _interopRequireWildcard(require("@atlaskit/button/custom-theme-button"));
|
|
35
35
|
|
|
@@ -79,7 +79,7 @@ var BenefitsModal = /*#__PURE__*/function (_Component) {
|
|
|
79
79
|
src = props.image;
|
|
80
80
|
|
|
81
81
|
var ImageElement = function ImageElement() {
|
|
82
|
-
return (0,
|
|
82
|
+
return (0, _react2.jsx)(_modal.ModalImage, {
|
|
83
83
|
src: src,
|
|
84
84
|
alt: ""
|
|
85
85
|
});
|
|
@@ -94,18 +94,18 @@ var BenefitsModal = /*#__PURE__*/function (_Component) {
|
|
|
94
94
|
experimental_shouldShowPrimaryButtonOnRight = _props$experimental_s === void 0 ? false : _props$experimental_s;
|
|
95
95
|
|
|
96
96
|
var ActionsElement = function ActionsElement() {
|
|
97
|
-
return actionList ? (0,
|
|
97
|
+
return actionList ? (0, _react2.jsx)(_customThemeButton.Theme.Provider, {
|
|
98
98
|
value: _theme.modalButtonTheme
|
|
99
|
-
}, (0,
|
|
99
|
+
}, (0, _react2.jsx)(_modal.ModalActionContainer, {
|
|
100
100
|
shouldReverseButtonOrder: experimental_shouldShowPrimaryButtonOnRight
|
|
101
101
|
}, actionList.map(function (_ref, idx) {
|
|
102
102
|
var text = _ref.text,
|
|
103
103
|
key = _ref.key,
|
|
104
104
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
105
105
|
var variant = idx ? 'subtle-link' : 'primary';
|
|
106
|
-
return (0,
|
|
106
|
+
return (0, _react2.jsx)(_modal.ModalActionItem, {
|
|
107
107
|
key: key || (typeof text === 'string' ? text : "".concat(idx))
|
|
108
|
-
}, (0,
|
|
108
|
+
}, (0, _react2.jsx)(_customThemeButton.default, (0, _extends2.default)({
|
|
109
109
|
appearance: variant,
|
|
110
110
|
autoFocus: !idx
|
|
111
111
|
}, rest), text));
|
|
@@ -127,12 +127,12 @@ var BenefitsModal = /*#__PURE__*/function (_Component) {
|
|
|
127
127
|
props = (0, _objectWithoutProperties2.default)(_this$props, _excluded2);
|
|
128
128
|
var Header = this.headerComponent(this.props);
|
|
129
129
|
var Footer = this.footerComponent(this.props);
|
|
130
|
-
return (0,
|
|
130
|
+
return (0, _react2.jsx)(_modalDialog.default, (0, _extends2.default)({
|
|
131
131
|
autoFocus: true,
|
|
132
132
|
shouldScrollInViewport: true,
|
|
133
133
|
shouldCloseOnOverlayClick: false,
|
|
134
134
|
shouldCloseOnEscapePress: false
|
|
135
|
-
}, props), (0,
|
|
135
|
+
}, props), (0, _react2.jsx)(Header, null), (0, _react2.jsx)(_modalDialog.ModalBody, null, (0, _react2.jsx)(_modal.ModalBody, null, heading && (0, _react2.jsx)(_modal.ModalHeading, null, heading), children)), (0, _react2.jsx)(Footer, null));
|
|
136
136
|
}
|
|
137
137
|
}]);
|
|
138
138
|
return BenefitsModal;
|
|
@@ -13,7 +13,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _react2 = require("@emotion/react");
|
|
17
17
|
|
|
18
18
|
var _customThemeButton = _interopRequireWildcard(require("@atlaskit/button/custom-theme-button"));
|
|
19
19
|
|
|
@@ -35,41 +35,42 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
35
35
|
|
|
36
36
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
37
|
|
|
38
|
-
var
|
|
39
|
-
var bodyStyles = (0, _core.css)({
|
|
38
|
+
var bodyStyles = (0, _react2.css)({
|
|
40
39
|
display: 'flex',
|
|
41
|
-
padding: "".concat(
|
|
40
|
+
padding: "var(--ds-scale-200, 16px)".concat(" ", "var(--ds-scale-250, 20px)"),
|
|
42
41
|
flexDirection: 'column'
|
|
43
42
|
});
|
|
44
|
-
var defaultHeaderStyles = (0,
|
|
43
|
+
var defaultHeaderStyles = (0, _react2.css)({
|
|
45
44
|
display: 'flex',
|
|
46
|
-
|
|
45
|
+
// TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
|
|
46
|
+
paddingBottom: "var(--ds-scale-100, 8px)",
|
|
47
47
|
alignItems: 'baseline',
|
|
48
48
|
justifyContent: 'space-between'
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
var DefaultHeader = function DefaultHeader(_ref) {
|
|
52
52
|
var children = _ref.children;
|
|
53
|
-
return (0,
|
|
53
|
+
return (0, _react2.jsx)("div", {
|
|
54
54
|
css: defaultHeaderStyles
|
|
55
55
|
}, children);
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
var defaultFooterStyles = (0,
|
|
58
|
+
var defaultFooterStyles = (0, _react2.css)({
|
|
59
59
|
display: 'flex',
|
|
60
|
-
|
|
60
|
+
// TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
|
|
61
|
+
paddingTop: "var(--ds-scale-100, 8px)",
|
|
61
62
|
alignItems: 'center',
|
|
62
63
|
justifyContent: 'space-between'
|
|
63
64
|
});
|
|
64
65
|
|
|
65
66
|
var DefaultFooter = function DefaultFooter(_ref2) {
|
|
66
67
|
var children = _ref2.children;
|
|
67
|
-
return (0,
|
|
68
|
+
return (0, _react2.jsx)("div", {
|
|
68
69
|
css: defaultFooterStyles
|
|
69
70
|
}, children);
|
|
70
71
|
};
|
|
71
72
|
|
|
72
|
-
var containerStyles = (0,
|
|
73
|
+
var containerStyles = (0, _react2.css)({
|
|
73
74
|
height: 'fit-content',
|
|
74
75
|
zIndex: _constants.layers.spotlight() + 1,
|
|
75
76
|
background: "var(--ds-background-discovery-bold, ".concat(_colors.P300, ")"),
|
|
@@ -77,7 +78,7 @@ var containerStyles = (0, _core.css)({
|
|
|
77
78
|
color: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
|
|
78
79
|
overflow: 'auto'
|
|
79
80
|
});
|
|
80
|
-
var containerShadowStyles = (0,
|
|
81
|
+
var containerShadowStyles = (0, _react2.css)({
|
|
81
82
|
boxShadow: "var(--ds-shadow-raised, ".concat("0 4px 8px -2px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A), ")")
|
|
82
83
|
});
|
|
83
84
|
/**
|
|
@@ -122,13 +123,13 @@ var SpotlightCard = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
122
123
|
Header = _components$Header === void 0 ? DefaultHeader : _components$Header,
|
|
123
124
|
_components$Footer = components.Footer,
|
|
124
125
|
Footer = _components$Footer === void 0 ? DefaultFooter : _components$Footer;
|
|
125
|
-
return (0,
|
|
126
|
+
return (0, _react2.jsx)(_customThemeButton.Theme.Provider, {
|
|
126
127
|
value: _theme.spotlightButtonTheme
|
|
127
|
-
}, (0,
|
|
128
|
+
}, (0, _react2.jsx)(Theme.Provider, {
|
|
128
129
|
value: theme
|
|
129
|
-
}, (0,
|
|
130
|
+
}, (0, _react2.jsx)(Theme.Consumer, null, function (_ref3) {
|
|
130
131
|
var container = _ref3.container;
|
|
131
|
-
return (0,
|
|
132
|
+
return (0, _react2.jsx)("div", {
|
|
132
133
|
css: [containerStyles, !isFlat && containerShadowStyles, // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
133
134
|
container],
|
|
134
135
|
style: {
|
|
@@ -136,22 +137,22 @@ var SpotlightCard = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
136
137
|
},
|
|
137
138
|
ref: ref || innerRef,
|
|
138
139
|
"data-testid": testId
|
|
139
|
-
}, typeof image === 'string' ? (0,
|
|
140
|
+
}, typeof image === 'string' ? (0, _react2.jsx)("img", {
|
|
140
141
|
src: image,
|
|
141
142
|
alt: ""
|
|
142
|
-
}) : image, (0,
|
|
143
|
+
}) : image, (0, _react2.jsx)("div", {
|
|
143
144
|
css: bodyStyles
|
|
144
|
-
}, heading || headingAfterElement ? (0,
|
|
145
|
+
}, heading || headingAfterElement ? (0, _react2.jsx)(Header, null, (0, _react2.jsx)(_heading.default, {
|
|
145
146
|
color: "inverse",
|
|
146
147
|
level: "h600",
|
|
147
148
|
as: "h4"
|
|
148
|
-
}, heading), headingAfterElement) : null, children, actions.length > 0 || actionsBeforeElement ? (0,
|
|
149
|
+
}, heading), headingAfterElement) : 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 (_ref4, idx) {
|
|
149
150
|
var text = _ref4.text,
|
|
150
151
|
key = _ref4.key,
|
|
151
152
|
rest = (0, _objectWithoutProperties2.default)(_ref4, _excluded);
|
|
152
|
-
return (0,
|
|
153
|
+
return (0, _react2.jsx)(_dialog.DialogActionItem, {
|
|
153
154
|
key: key || (typeof text === 'string' ? text : "".concat(idx))
|
|
154
|
-
}, (0,
|
|
155
|
+
}, (0, _react2.jsx)(_customThemeButton.default, rest, text));
|
|
155
156
|
}))) : null));
|
|
156
157
|
})));
|
|
157
158
|
});
|
|
@@ -50,7 +50,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
50
50
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
51
51
|
|
|
52
52
|
var packageName = "@atlaskit/onboarding";
|
|
53
|
-
var packageVersion = "10.
|
|
53
|
+
var packageVersion = "10.6.1";
|
|
54
54
|
|
|
55
55
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
56
56
|
(0, _inherits2.default)(SpotlightDialog, _Component);
|
|
@@ -9,7 +9,7 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _react = require("@emotion/react");
|
|
13
13
|
|
|
14
14
|
var _colors = require("@atlaskit/theme/colors");
|
|
15
15
|
|
|
@@ -27,7 +27,7 @@ var backgroundColor = (0, _components.themed)({
|
|
|
27
27
|
}); // IE11 and Edge: z-index needed because fixed position calculates z-index relative
|
|
28
28
|
// to body instead of nearest stacking context (Portal in our case).
|
|
29
29
|
|
|
30
|
-
var blanketStyles = (0,
|
|
30
|
+
var blanketStyles = (0, _react.css)({
|
|
31
31
|
position: 'fixed',
|
|
32
32
|
zIndex: _constants.layers.spotlight(),
|
|
33
33
|
top: 0,
|
|
@@ -50,7 +50,7 @@ var blanketStyles = (0, _core.css)({
|
|
|
50
50
|
*/
|
|
51
51
|
var Blanket = function Blanket(props) {
|
|
52
52
|
var theme = (0, _components.useGlobalTheme)();
|
|
53
|
-
return (0,
|
|
53
|
+
return (0, _react.jsx)("div", {
|
|
54
54
|
css: blanketStyles,
|
|
55
55
|
style: _objectSpread(_objectSpread({}, props.style), {}, {
|
|
56
56
|
backgroundColor: props.isTinted ? backgroundColor({
|
|
@@ -11,26 +11,23 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
|
|
12
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
var _constants = require("@atlaskit/theme/constants");
|
|
14
|
+
var _react = require("@emotion/react");
|
|
17
15
|
|
|
18
16
|
var _excluded = ["alt"];
|
|
19
|
-
var
|
|
20
|
-
var imageStyles = (0, _core.css)({
|
|
17
|
+
var imageStyles = (0, _react.css)({
|
|
21
18
|
maxWidth: '100%',
|
|
22
19
|
height: 'auto'
|
|
23
20
|
});
|
|
24
|
-
var actionItemContainerStyles = (0,
|
|
21
|
+
var actionItemContainerStyles = (0, _react.css)({
|
|
25
22
|
display: 'flex',
|
|
26
|
-
margin: "0
|
|
23
|
+
margin: "var(--ds-scale-0, 0px)".concat(" -4px"),
|
|
27
24
|
|
|
28
25
|
/* When there is more than one action, place primary action visually on the
|
|
29
26
|
right, but keep it's position as the first focusable element in the DOM */
|
|
30
27
|
flexDirection: 'row-reverse'
|
|
31
28
|
});
|
|
32
|
-
var actionItemStyles = (0,
|
|
33
|
-
margin: "0 ".concat(
|
|
29
|
+
var actionItemStyles = (0, _react.css)({
|
|
30
|
+
margin: "var(--ds-scale-0, 0px)".concat(" ", "var(--ds-scale-050, 4px)")
|
|
34
31
|
});
|
|
35
32
|
/**
|
|
36
33
|
* __Dialog image__
|
|
@@ -43,7 +40,7 @@ var actionItemStyles = (0, _core.css)({
|
|
|
43
40
|
var DialogImage = function DialogImage(_ref) {
|
|
44
41
|
var alt = _ref.alt,
|
|
45
42
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
46
|
-
return (0,
|
|
43
|
+
return (0, _react.jsx)("img", (0, _extends2.default)({
|
|
47
44
|
css: imageStyles,
|
|
48
45
|
alt: alt
|
|
49
46
|
}, props));
|
|
@@ -61,7 +58,7 @@ exports.DialogImage = DialogImage;
|
|
|
61
58
|
|
|
62
59
|
var DialogActionItemContainer = function DialogActionItemContainer(_ref2) {
|
|
63
60
|
var children = _ref2.children;
|
|
64
|
-
return (0,
|
|
61
|
+
return (0, _react.jsx)("div", {
|
|
65
62
|
css: actionItemContainerStyles
|
|
66
63
|
}, children);
|
|
67
64
|
};
|
|
@@ -78,7 +75,7 @@ exports.DialogActionItemContainer = DialogActionItemContainer;
|
|
|
78
75
|
|
|
79
76
|
var DialogActionItem = function DialogActionItem(_ref3) {
|
|
80
77
|
var children = _ref3.children;
|
|
81
|
-
return (0,
|
|
78
|
+
return (0, _react.jsx)("div", {
|
|
82
79
|
css: actionItemStyles
|
|
83
80
|
}, children);
|
|
84
81
|
};
|
package/dist/cjs/styled/modal.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.ModalImage = exports.ModalHeading = exports.ModalBody = exports.ModalActionItem = exports.ModalActionContainer = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
9
|
|
|
10
10
|
var _components = require("@atlaskit/theme/components");
|
|
11
11
|
|
|
@@ -14,31 +14,30 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
14
14
|
var _typography = require("@atlaskit/theme/typography");
|
|
15
15
|
|
|
16
16
|
/** @jsx jsx */
|
|
17
|
-
var
|
|
18
|
-
var borderRadius = (0, _constants.borderRadius)();
|
|
19
|
-
var actionItemBottomMargin = gridSize / 2; // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
17
|
+
var borderRadius = (0, _constants.borderRadius)(); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
20
18
|
|
|
21
|
-
var lightH600Styles = (0,
|
|
19
|
+
var lightH600Styles = (0, _react.css)((0, _typography.h600)({
|
|
22
20
|
theme: {
|
|
23
21
|
mode: 'light'
|
|
24
22
|
}
|
|
25
23
|
})); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
26
24
|
|
|
27
|
-
var darkH600Styles = (0,
|
|
25
|
+
var darkH600Styles = (0, _react.css)((0, _typography.h600)({
|
|
28
26
|
theme: {
|
|
29
27
|
mode: 'dark'
|
|
30
28
|
}
|
|
31
29
|
}));
|
|
32
|
-
var modalBodyStyles = (0,
|
|
33
|
-
padding:
|
|
30
|
+
var modalBodyStyles = (0, _react.css)({
|
|
31
|
+
padding: "var(--ds-scale-500, 40px)".concat(" ", "var(--ds-scale-250, 20px)"),
|
|
34
32
|
textAlign: 'center'
|
|
35
33
|
}); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
36
34
|
|
|
37
|
-
var modalHeadingStyles = (0,
|
|
38
|
-
|
|
35
|
+
var modalHeadingStyles = (0, _react.css)({
|
|
36
|
+
// TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
|
|
37
|
+
marginBottom: "var(--ds-scale-100, 8px)",
|
|
39
38
|
color: 'inherit'
|
|
40
39
|
});
|
|
41
|
-
var modalImageStyles = (0,
|
|
40
|
+
var modalImageStyles = (0, _react.css)({
|
|
42
41
|
width: '100%',
|
|
43
42
|
height: 'auto',
|
|
44
43
|
borderTopLeftRadius: "".concat(borderRadius, "px"),
|
|
@@ -47,18 +46,18 @@ var modalImageStyles = (0, _core.css)({
|
|
|
47
46
|
borderRadius: 0
|
|
48
47
|
}
|
|
49
48
|
});
|
|
50
|
-
var modalActionContainerStyles = (0,
|
|
49
|
+
var modalActionContainerStyles = (0, _react.css)({
|
|
51
50
|
display: 'flex',
|
|
52
|
-
padding: "0
|
|
51
|
+
padding: "var(--ds-scale-0, 0px)".concat(" ", "var(--ds-scale-500, 40px)", " 36px"),
|
|
53
52
|
justifyContent: 'center',
|
|
54
53
|
flexDirection: 'row',
|
|
55
54
|
flexFlow: 'wrap'
|
|
56
55
|
});
|
|
57
|
-
var modalActionContainerReversedStyles = (0,
|
|
56
|
+
var modalActionContainerReversedStyles = (0, _react.css)({
|
|
58
57
|
flexDirection: 'row-reverse'
|
|
59
58
|
});
|
|
60
|
-
var modalActionItemStyles = (0,
|
|
61
|
-
margin: "0 ".concat(
|
|
59
|
+
var modalActionItemStyles = (0, _react.css)({
|
|
60
|
+
margin: "var(--ds-scale-0, 0px)".concat(" ", "var(--ds-scale-050, 4px)", " ", "var(--ds-scale-050, 4px)")
|
|
62
61
|
});
|
|
63
62
|
/**
|
|
64
63
|
* __Modal body__
|
|
@@ -68,7 +67,7 @@ var modalActionItemStyles = (0, _core.css)({
|
|
|
68
67
|
|
|
69
68
|
var ModalBody = function ModalBody(_ref) {
|
|
70
69
|
var children = _ref.children;
|
|
71
|
-
return (0,
|
|
70
|
+
return (0, _react.jsx)("div", {
|
|
72
71
|
css: modalBodyStyles
|
|
73
72
|
}, children);
|
|
74
73
|
};
|
|
@@ -87,7 +86,7 @@ var ModalHeading = function ModalHeading(_ref2) {
|
|
|
87
86
|
var _useGlobalTheme = (0, _components.useGlobalTheme)(),
|
|
88
87
|
mode = _useGlobalTheme.mode;
|
|
89
88
|
|
|
90
|
-
return (0,
|
|
89
|
+
return (0, _react.jsx)("h4", {
|
|
91
90
|
css: [mode === 'light' ? lightH600Styles : darkH600Styles, modalHeadingStyles]
|
|
92
91
|
}, children);
|
|
93
92
|
};
|
|
@@ -103,7 +102,7 @@ exports.ModalHeading = ModalHeading;
|
|
|
103
102
|
var ModalImage = function ModalImage(_ref3) {
|
|
104
103
|
var alt = _ref3.alt,
|
|
105
104
|
src = _ref3.src;
|
|
106
|
-
return (0,
|
|
105
|
+
return (0, _react.jsx)("img", {
|
|
107
106
|
css: modalImageStyles,
|
|
108
107
|
alt: alt,
|
|
109
108
|
src: src
|
|
@@ -121,7 +120,7 @@ exports.ModalImage = ModalImage;
|
|
|
121
120
|
var ModalActionContainer = function ModalActionContainer(_ref4) {
|
|
122
121
|
var children = _ref4.children,
|
|
123
122
|
shouldReverseButtonOrder = _ref4.shouldReverseButtonOrder;
|
|
124
|
-
return (0,
|
|
123
|
+
return (0, _react.jsx)("div", {
|
|
125
124
|
css: [modalActionContainerStyles, shouldReverseButtonOrder && modalActionContainerReversedStyles]
|
|
126
125
|
}, children);
|
|
127
126
|
};
|
|
@@ -136,7 +135,7 @@ exports.ModalActionContainer = ModalActionContainer;
|
|
|
136
135
|
|
|
137
136
|
var ModalActionItem = function ModalActionItem(_ref5) {
|
|
138
137
|
var children = _ref5.children;
|
|
139
|
-
return (0,
|
|
138
|
+
return (0, _react.jsx)("div", {
|
|
140
139
|
css: modalActionItemStyles
|
|
141
140
|
}, children);
|
|
142
141
|
};
|
|
@@ -13,7 +13,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
13
13
|
|
|
14
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _react = require("@emotion/react");
|
|
17
17
|
|
|
18
18
|
var _colors = require("@atlaskit/theme/colors");
|
|
19
19
|
|
|
@@ -31,7 +31,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
31
31
|
// Pulse color "rgb(101, 84, 192)" derived from "colors.P300"
|
|
32
32
|
var baseShadow = "0 0 0 2px ".concat("var(--ds-border-discovery, ".concat(_colors.P300, ")"));
|
|
33
33
|
var easing = 'cubic-bezier(0.55, 0.055, 0.675, 0.19)';
|
|
34
|
-
var pulseKeyframes = (0,
|
|
34
|
+
var pulseKeyframes = (0, _react.keyframes)({
|
|
35
35
|
'0%, 33%': {
|
|
36
36
|
boxShadow: "".concat(baseShadow, ", 0 0 0 ", "var(--ds-border-discovery, rgba(101, 84, 192, 1))")
|
|
37
37
|
},
|
|
@@ -42,12 +42,12 @@ var pulseKeyframes = (0, _core.keyframes)({
|
|
|
42
42
|
|
|
43
43
|
var pulseKeyframesName = pulseKeyframes.name;
|
|
44
44
|
exports.pulseKeyframesName = pulseKeyframesName;
|
|
45
|
-
var animationStyles = (0,
|
|
45
|
+
var animationStyles = (0, _react.css)({
|
|
46
46
|
animation: "".concat(pulseKeyframes, " 3000ms ").concat(easing, " infinite")
|
|
47
47
|
}); // IE11 and Edge: z-index needed because fixed position calculates z-index relative
|
|
48
48
|
// to body instead of nearest stacking context (Portal in our case).
|
|
49
49
|
|
|
50
|
-
var baseStyles = (0,
|
|
50
|
+
var baseStyles = (0, _react.css)({
|
|
51
51
|
zIndex: _constants.layers.spotlight() + 1
|
|
52
52
|
});
|
|
53
53
|
|
|
@@ -58,7 +58,7 @@ var Base = function Base(_ref) {
|
|
|
58
58
|
style = _ref.style,
|
|
59
59
|
testId = _ref.testId,
|
|
60
60
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
61
|
-
return (0,
|
|
61
|
+
return (0, _react.jsx)("div", (0, _extends2.default)({
|
|
62
62
|
css: baseStyles,
|
|
63
63
|
"data-testid": testId,
|
|
64
64
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
@@ -82,14 +82,14 @@ var TargetInner = function TargetInner(_ref2) {
|
|
|
82
82
|
pulse = _ref2.pulse,
|
|
83
83
|
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
|
|
84
84
|
return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
85
|
-
(0,
|
|
85
|
+
(0, _react.jsx)(Base, (0, _extends2.default)({}, props, {
|
|
86
86
|
css: [pulse && animationStyles]
|
|
87
87
|
}), children)
|
|
88
88
|
);
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
exports.TargetInner = TargetInner;
|
|
92
|
-
var targetOverlayStyles = (0,
|
|
92
|
+
var targetOverlayStyles = (0, _react.css)({
|
|
93
93
|
width: '100%',
|
|
94
94
|
height: '100%',
|
|
95
95
|
position: 'absolute',
|
|
@@ -106,7 +106,7 @@ var targetOverlayStyles = (0, _core.css)({
|
|
|
106
106
|
*/
|
|
107
107
|
|
|
108
108
|
var TargetOverlay = function TargetOverlay(props) {
|
|
109
|
-
return (0,
|
|
109
|
+
return (0, _react.jsx)("div", (0, _extends2.default)({}, props, {
|
|
110
110
|
css: targetOverlayStyles,
|
|
111
111
|
style: {
|
|
112
112
|
cursor: props.onClick ? 'pointer' : 'auto'
|
|
@@ -133,7 +133,7 @@ var Pulse = function Pulse(_ref3) {
|
|
|
133
133
|
testId = _ref3.testId,
|
|
134
134
|
props = (0, _objectWithoutProperties2.default)(_ref3, _excluded3);
|
|
135
135
|
return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
136
|
-
(0,
|
|
136
|
+
(0, _react.jsx)(Base, (0, _extends2.default)({}, props, {
|
|
137
137
|
css: [pulse && animationStyles],
|
|
138
138
|
testId: testId
|
|
139
139
|
}), children)
|
package/dist/cjs/version.json
CHANGED
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import { Component } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
7
|
import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
|
|
8
8
|
import Modal, { ModalBody } from '@atlaskit/modal-dialog';
|
|
9
9
|
import { ModalBody as Body, ModalHeading as Heading, ModalActionContainer, ModalActionItem, ModalImage } from '../styled/modal';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import { css, jsx } from '@emotion/
|
|
3
|
+
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 { N0, N50A, N60A, P300 } from '@atlaskit/theme/colors';
|
|
7
7
|
import { createTheme } from '@atlaskit/theme/components';
|
|
8
|
-
import { borderRadius,
|
|
8
|
+
import { borderRadius, layers } from '@atlaskit/theme/constants';
|
|
9
9
|
import { DialogActionItem, DialogActionItemContainer } from '../styled/dialog';
|
|
10
10
|
import { spotlightButtonTheme } from './theme';
|
|
11
|
-
const gridSize = getGridSize();
|
|
12
11
|
const bodyStyles = css({
|
|
13
12
|
display: 'flex',
|
|
14
|
-
padding: `${
|
|
13
|
+
padding: `${"var(--ds-scale-200, 16px)"} ${"var(--ds-scale-250, 20px)"}`,
|
|
15
14
|
flexDirection: 'column'
|
|
16
15
|
});
|
|
17
16
|
const defaultHeaderStyles = css({
|
|
18
17
|
display: 'flex',
|
|
19
|
-
|
|
18
|
+
// TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
|
|
19
|
+
paddingBottom: "var(--ds-scale-100, 8px)",
|
|
20
20
|
alignItems: 'baseline',
|
|
21
21
|
justifyContent: 'space-between'
|
|
22
22
|
});
|
|
@@ -29,7 +29,8 @@ const DefaultHeader = ({
|
|
|
29
29
|
|
|
30
30
|
const defaultFooterStyles = css({
|
|
31
31
|
display: 'flex',
|
|
32
|
-
|
|
32
|
+
// TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
|
|
33
|
+
paddingTop: "var(--ds-scale-100, 8px)",
|
|
33
34
|
alignItems: 'center',
|
|
34
35
|
justifyContent: 'space-between'
|
|
35
36
|
});
|
|
@@ -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 = "10.
|
|
10
|
+
const packageVersion = "10.6.1";
|
|
11
11
|
|
|
12
12
|
class SpotlightDialog extends Component {
|
|
13
13
|
constructor(...args) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { css, jsx } from '@emotion/
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { DN90A, N100A } from '@atlaskit/theme/colors';
|
|
4
4
|
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
5
5
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { css, jsx } from '@emotion/
|
|
5
|
-
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
6
|
-
const gridSize = getGridSize();
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
7
5
|
const imageStyles = css({
|
|
8
6
|
maxWidth: '100%',
|
|
9
7
|
height: 'auto'
|
|
10
8
|
});
|
|
11
9
|
const actionItemContainerStyles = css({
|
|
12
10
|
display: 'flex',
|
|
13
|
-
margin:
|
|
11
|
+
margin: `${"var(--ds-scale-0, 0px)"} -4px`,
|
|
14
12
|
|
|
15
13
|
/* When there is more than one action, place primary action visually on the
|
|
16
14
|
right, but keep it's position as the first focusable element in the DOM */
|
|
17
15
|
flexDirection: 'row-reverse'
|
|
18
16
|
});
|
|
19
17
|
const actionItemStyles = css({
|
|
20
|
-
margin:
|
|
18
|
+
margin: `${"var(--ds-scale-0, 0px)"} ${"var(--ds-scale-050, 4px)"}`
|
|
21
19
|
});
|
|
22
20
|
/**
|
|
23
21
|
* __Dialog image__
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { css, jsx } from '@emotion/
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
4
|
-
import { borderRadius as getBorderRadius
|
|
4
|
+
import { borderRadius as getBorderRadius } from '@atlaskit/theme/constants';
|
|
5
5
|
import { h600 } from '@atlaskit/theme/typography';
|
|
6
|
-
const
|
|
7
|
-
const borderRadius = getBorderRadius();
|
|
8
|
-
const actionItemBottomMargin = gridSize / 2; // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
6
|
+
const borderRadius = getBorderRadius(); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
9
7
|
|
|
10
8
|
const lightH600Styles = css(h600({
|
|
11
9
|
theme: {
|
|
@@ -19,12 +17,13 @@ const darkH600Styles = css(h600({
|
|
|
19
17
|
}
|
|
20
18
|
}));
|
|
21
19
|
const modalBodyStyles = css({
|
|
22
|
-
padding:
|
|
20
|
+
padding: `${"var(--ds-scale-500, 40px)"} ${"var(--ds-scale-250, 20px)"}`,
|
|
23
21
|
textAlign: 'center'
|
|
24
22
|
}); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
25
23
|
|
|
26
24
|
const modalHeadingStyles = css({
|
|
27
|
-
|
|
25
|
+
// TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
|
|
26
|
+
marginBottom: "var(--ds-scale-100, 8px)",
|
|
28
27
|
color: 'inherit'
|
|
29
28
|
});
|
|
30
29
|
const modalImageStyles = css({
|
|
@@ -38,7 +37,7 @@ const modalImageStyles = css({
|
|
|
38
37
|
});
|
|
39
38
|
const modalActionContainerStyles = css({
|
|
40
39
|
display: 'flex',
|
|
41
|
-
padding:
|
|
40
|
+
padding: `${"var(--ds-scale-0, 0px)"} ${"var(--ds-scale-500, 40px)"} 36px`,
|
|
42
41
|
justifyContent: 'center',
|
|
43
42
|
flexDirection: 'row',
|
|
44
43
|
flexFlow: 'wrap'
|
|
@@ -47,7 +46,7 @@ const modalActionContainerReversedStyles = css({
|
|
|
47
46
|
flexDirection: 'row-reverse'
|
|
48
47
|
});
|
|
49
48
|
const modalActionItemStyles = css({
|
|
50
|
-
margin:
|
|
49
|
+
margin: `${"var(--ds-scale-0, 0px)"} ${"var(--ds-scale-050, 4px)"} ${"var(--ds-scale-050, 4px)"}`
|
|
51
50
|
});
|
|
52
51
|
/**
|
|
53
52
|
* __Modal body__
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { css, jsx, keyframes } from '@emotion/
|
|
4
|
+
import { css, jsx, keyframes } from '@emotion/react';
|
|
5
5
|
import { P300 } from '@atlaskit/theme/colors';
|
|
6
6
|
import { layers } from '@atlaskit/theme/constants';
|
|
7
7
|
// NOTE:
|
package/dist/es2019/version.json
CHANGED
|
@@ -16,7 +16,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
16
16
|
|
|
17
17
|
/** @jsx jsx */
|
|
18
18
|
import { Component } from 'react';
|
|
19
|
-
import { jsx } from '@emotion/
|
|
19
|
+
import { jsx } from '@emotion/react';
|
|
20
20
|
import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
|
|
21
21
|
import Modal, { ModalBody } from '@atlaskit/modal-dialog';
|
|
22
22
|
import { ModalBody as Body, ModalHeading as Heading, ModalActionContainer, ModalActionItem, ModalImage } from '../styled/modal';
|
|
@@ -3,23 +3,23 @@ var _excluded = ["text", "key"];
|
|
|
3
3
|
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
|
-
import { css, jsx } from '@emotion/
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-button';
|
|
8
8
|
import Heading from '@atlaskit/heading';
|
|
9
9
|
import { N0, N50A, N60A, P300 } from '@atlaskit/theme/colors';
|
|
10
10
|
import { createTheme } from '@atlaskit/theme/components';
|
|
11
|
-
import { borderRadius,
|
|
11
|
+
import { borderRadius, layers } from '@atlaskit/theme/constants';
|
|
12
12
|
import { DialogActionItem, DialogActionItemContainer } from '../styled/dialog';
|
|
13
13
|
import { spotlightButtonTheme } from './theme';
|
|
14
|
-
var gridSize = getGridSize();
|
|
15
14
|
var bodyStyles = css({
|
|
16
15
|
display: 'flex',
|
|
17
|
-
padding: "".concat(
|
|
16
|
+
padding: "var(--ds-scale-200, 16px)".concat(" ", "var(--ds-scale-250, 20px)"),
|
|
18
17
|
flexDirection: 'column'
|
|
19
18
|
});
|
|
20
19
|
var defaultHeaderStyles = css({
|
|
21
20
|
display: 'flex',
|
|
22
|
-
|
|
21
|
+
// TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
|
|
22
|
+
paddingBottom: "var(--ds-scale-100, 8px)",
|
|
23
23
|
alignItems: 'baseline',
|
|
24
24
|
justifyContent: 'space-between'
|
|
25
25
|
});
|
|
@@ -33,7 +33,8 @@ var DefaultHeader = function DefaultHeader(_ref) {
|
|
|
33
33
|
|
|
34
34
|
var defaultFooterStyles = css({
|
|
35
35
|
display: 'flex',
|
|
36
|
-
|
|
36
|
+
// TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
|
|
37
|
+
paddingTop: "var(--ds-scale-100, 8px)",
|
|
37
38
|
alignItems: 'center',
|
|
38
39
|
justifyContent: 'space-between'
|
|
39
40
|
});
|
|
@@ -22,7 +22,7 @@ import { DialogImage } from '../styled/dialog';
|
|
|
22
22
|
import SpotlightCard from './spotlight-card';
|
|
23
23
|
import ValueChanged from './value-changed';
|
|
24
24
|
var packageName = "@atlaskit/onboarding";
|
|
25
|
-
var packageVersion = "10.
|
|
25
|
+
var packageVersion = "10.6.1";
|
|
26
26
|
|
|
27
27
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
28
28
|
_inherits(SpotlightDialog, _Component);
|
|
@@ -5,7 +5,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
/** @jsx jsx */
|
|
8
|
-
import { css, jsx } from '@emotion/
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { DN90A, N100A } from '@atlaskit/theme/colors';
|
|
10
10
|
import { themed, useGlobalTheme } from '@atlaskit/theme/components';
|
|
11
11
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -3,23 +3,21 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["alt"];
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
|
-
import { css, jsx } from '@emotion/
|
|
7
|
-
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
8
|
-
var gridSize = getGridSize();
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
9
7
|
var imageStyles = css({
|
|
10
8
|
maxWidth: '100%',
|
|
11
9
|
height: 'auto'
|
|
12
10
|
});
|
|
13
11
|
var actionItemContainerStyles = css({
|
|
14
12
|
display: 'flex',
|
|
15
|
-
margin: "0
|
|
13
|
+
margin: "var(--ds-scale-0, 0px)".concat(" -4px"),
|
|
16
14
|
|
|
17
15
|
/* When there is more than one action, place primary action visually on the
|
|
18
16
|
right, but keep it's position as the first focusable element in the DOM */
|
|
19
17
|
flexDirection: 'row-reverse'
|
|
20
18
|
});
|
|
21
19
|
var actionItemStyles = css({
|
|
22
|
-
margin: "0 ".concat(
|
|
20
|
+
margin: "var(--ds-scale-0, 0px)".concat(" ", "var(--ds-scale-050, 4px)")
|
|
23
21
|
});
|
|
24
22
|
/**
|
|
25
23
|
* __Dialog image__
|
package/dist/esm/styled/modal.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { css, jsx } from '@emotion/
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
4
|
-
import { borderRadius as getBorderRadius
|
|
4
|
+
import { borderRadius as getBorderRadius } from '@atlaskit/theme/constants';
|
|
5
5
|
import { h600 } from '@atlaskit/theme/typography';
|
|
6
|
-
var
|
|
7
|
-
var borderRadius = getBorderRadius();
|
|
8
|
-
var actionItemBottomMargin = gridSize / 2; // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
6
|
+
var borderRadius = getBorderRadius(); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
9
7
|
|
|
10
8
|
var lightH600Styles = css(h600({
|
|
11
9
|
theme: {
|
|
@@ -19,12 +17,13 @@ var darkH600Styles = css(h600({
|
|
|
19
17
|
}
|
|
20
18
|
}));
|
|
21
19
|
var modalBodyStyles = css({
|
|
22
|
-
padding:
|
|
20
|
+
padding: "var(--ds-scale-500, 40px)".concat(" ", "var(--ds-scale-250, 20px)"),
|
|
23
21
|
textAlign: 'center'
|
|
24
22
|
}); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
25
23
|
|
|
26
24
|
var modalHeadingStyles = css({
|
|
27
|
-
|
|
25
|
+
// TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
|
|
26
|
+
marginBottom: "var(--ds-scale-100, 8px)",
|
|
28
27
|
color: 'inherit'
|
|
29
28
|
});
|
|
30
29
|
var modalImageStyles = css({
|
|
@@ -38,7 +37,7 @@ var modalImageStyles = css({
|
|
|
38
37
|
});
|
|
39
38
|
var modalActionContainerStyles = css({
|
|
40
39
|
display: 'flex',
|
|
41
|
-
padding: "0
|
|
40
|
+
padding: "var(--ds-scale-0, 0px)".concat(" ", "var(--ds-scale-500, 40px)", " 36px"),
|
|
42
41
|
justifyContent: 'center',
|
|
43
42
|
flexDirection: 'row',
|
|
44
43
|
flexFlow: 'wrap'
|
|
@@ -47,7 +46,7 @@ var modalActionContainerReversedStyles = css({
|
|
|
47
46
|
flexDirection: 'row-reverse'
|
|
48
47
|
});
|
|
49
48
|
var modalActionItemStyles = css({
|
|
50
|
-
margin: "0 ".concat(
|
|
49
|
+
margin: "var(--ds-scale-0, 0px)".concat(" ", "var(--ds-scale-050, 4px)", " ", "var(--ds-scale-050, 4px)")
|
|
51
50
|
});
|
|
52
51
|
/**
|
|
53
52
|
* __Modal body__
|
|
@@ -10,7 +10,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
10
10
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11
11
|
|
|
12
12
|
/** @jsx jsx */
|
|
13
|
-
import { css, jsx, keyframes } from '@emotion/
|
|
13
|
+
import { css, jsx, keyframes } from '@emotion/react';
|
|
14
14
|
import { P300 } from '@atlaskit/theme/colors';
|
|
15
15
|
import { layers } from '@atlaskit/theme/constants';
|
|
16
16
|
// NOTE:
|
package/dist/esm/version.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Component, ElementType, ReactNode } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
3
4
|
import { ModalFooterProps as FooterComponentProps, ModalHeaderProps as HeaderComponentProps } from '@atlaskit/modal-dialog';
|
|
4
5
|
import { Actions } from '../types';
|
|
5
6
|
declare type ModalProps = {
|
|
@@ -42,8 +43,8 @@ declare type ModalProps = {
|
|
|
42
43
|
* - [Usage](https://atlassian.design/components/onboarding/benefits-modal/usage)
|
|
43
44
|
*/
|
|
44
45
|
export default class BenefitsModal extends Component<ModalProps> {
|
|
45
|
-
headerComponent: (props: ModalProps) => ElementType<HeaderComponentProps> | (() => JSX.Element);
|
|
46
|
-
footerComponent: (props: ModalProps) => ElementType<FooterComponentProps> | (() => JSX.Element | null);
|
|
47
|
-
render(): JSX.Element;
|
|
46
|
+
headerComponent: (props: ModalProps) => ElementType<HeaderComponentProps> | (() => jsx.JSX.Element);
|
|
47
|
+
footerComponent: (props: ModalProps) => ElementType<FooterComponentProps> | (() => jsx.JSX.Element | null);
|
|
48
|
+
render(): jsx.JSX.Element;
|
|
48
49
|
}
|
|
49
50
|
export {};
|
|
@@ -57,5 +57,5 @@ export interface SpotlightDialogProps extends WithAnalyticsEventsProps {
|
|
|
57
57
|
*/
|
|
58
58
|
testId?: string;
|
|
59
59
|
}
|
|
60
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<SpotlightDialogProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "children" | "footer" | "header" | "image" | "
|
|
60
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<SpotlightDialogProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "children" | "footer" | "header" | "image" | "key" | "testId" | "analyticsContext" | "actions" | "heading" | "targetNode" | "actionsBeforeElement" | "headingAfterElement" | "dialogPlacement" | "dialogWidth" | "animationStyles"> & React.RefAttributes<any>>;
|
|
61
61
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Component, ElementType, ReactNode } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
3
4
|
import { ModalFooterProps as FooterComponentProps, ModalHeaderProps as HeaderComponentProps } from '@atlaskit/modal-dialog';
|
|
4
5
|
import { Actions } from '../types';
|
|
5
6
|
declare type ModalProps = {
|
|
@@ -42,8 +43,8 @@ declare type ModalProps = {
|
|
|
42
43
|
* - [Usage](https://atlassian.design/components/onboarding/benefits-modal/usage)
|
|
43
44
|
*/
|
|
44
45
|
export default class BenefitsModal extends Component<ModalProps> {
|
|
45
|
-
headerComponent: (props: ModalProps) => ElementType<HeaderComponentProps> | (() => JSX.Element);
|
|
46
|
-
footerComponent: (props: ModalProps) => ElementType<FooterComponentProps> | (() => JSX.Element | null);
|
|
47
|
-
render(): JSX.Element;
|
|
46
|
+
headerComponent: (props: ModalProps) => ElementType<HeaderComponentProps> | (() => jsx.JSX.Element);
|
|
47
|
+
footerComponent: (props: ModalProps) => ElementType<FooterComponentProps> | (() => jsx.JSX.Element | null);
|
|
48
|
+
render(): jsx.JSX.Element;
|
|
48
49
|
}
|
|
49
50
|
export {};
|
|
@@ -57,5 +57,5 @@ export interface SpotlightDialogProps extends WithAnalyticsEventsProps {
|
|
|
57
57
|
*/
|
|
58
58
|
testId?: string;
|
|
59
59
|
}
|
|
60
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<SpotlightDialogProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "children" | "footer" | "header" | "image" | "
|
|
60
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<SpotlightDialogProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "children" | "footer" | "header" | "image" | "key" | "testId" | "analyticsContext" | "actions" | "heading" | "targetNode" | "actionsBeforeElement" | "headingAfterElement" | "dialogPlacement" | "dialogWidth" | "animationStyles"> & React.RefAttributes<any>>;
|
|
61
61
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/onboarding",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.6.1",
|
|
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/"
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"typesVersions": {
|
|
16
16
|
">=4.0 <4.5": {
|
|
17
17
|
"*": [
|
|
18
|
-
"dist/types-ts4.0/*"
|
|
18
|
+
"dist/types-ts4.0/*",
|
|
19
|
+
"dist/types-ts4.0/index.d.ts"
|
|
19
20
|
]
|
|
20
21
|
}
|
|
21
22
|
},
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"atlaskit:src": "src/index.tsx",
|
|
24
25
|
"homepage": "https://atlassian.design/components/onboarding/",
|
|
25
26
|
"atlassian": {
|
|
27
|
+
"disableProductCI": true,
|
|
26
28
|
"team": "Design System Team",
|
|
27
29
|
"deprecatedAutoEntryPoints": true,
|
|
28
30
|
"releaseModel": "scheduled",
|
|
@@ -36,13 +38,13 @@
|
|
|
36
38
|
"@atlaskit/button": "^16.3.0",
|
|
37
39
|
"@atlaskit/ds-lib": "^2.1.0",
|
|
38
40
|
"@atlaskit/heading": "^0.1.14",
|
|
39
|
-
"@atlaskit/modal-dialog": "^12.
|
|
41
|
+
"@atlaskit/modal-dialog": "^12.4.0",
|
|
40
42
|
"@atlaskit/popper": "^5.0.0",
|
|
41
43
|
"@atlaskit/portal": "^4.0.0",
|
|
42
44
|
"@atlaskit/theme": "^12.2.0",
|
|
43
45
|
"@atlaskit/tokens": "^0.10.0",
|
|
44
46
|
"@babel/runtime": "^7.0.0",
|
|
45
|
-
"@emotion/
|
|
47
|
+
"@emotion/react": "^11.7.1",
|
|
46
48
|
"bind-event-listener": "^2.1.1",
|
|
47
49
|
"exenv": "^1.2.2",
|
|
48
50
|
"memoize-one": "^6.0.0",
|
|
@@ -57,9 +59,9 @@
|
|
|
57
59
|
"react-dom": "^16.8.0"
|
|
58
60
|
},
|
|
59
61
|
"devDependencies": {
|
|
60
|
-
"@atlaskit/avatar": "^21.
|
|
62
|
+
"@atlaskit/avatar": "^21.1.0",
|
|
61
63
|
"@atlaskit/docs": "*",
|
|
62
|
-
"@atlaskit/icon": "^21.
|
|
64
|
+
"@atlaskit/icon": "^21.11.0",
|
|
63
65
|
"@atlaskit/progress-indicator": "^9.3.0",
|
|
64
66
|
"@atlaskit/select": "^15.7.0",
|
|
65
67
|
"@atlaskit/ssr": "*",
|
|
@@ -80,6 +82,7 @@
|
|
|
80
82
|
"@repo/internal": {
|
|
81
83
|
"dom-events": "use-bind-event-listener",
|
|
82
84
|
"analytics": "analytics-next",
|
|
85
|
+
"design-tokens": "spacing",
|
|
83
86
|
"theming": "tokens",
|
|
84
87
|
"styling": [
|
|
85
88
|
"static",
|
package/report.api.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/onboarding"
|
|
1
|
+
## API Report File for "@atlaskit/onboarding".
|
|
2
2
|
|
|
3
|
-
> Do not edit this file.
|
|
3
|
+
> Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
4
6
|
|
|
5
7
|
```ts
|
|
6
8
|
/// <reference types="react" />
|
|
@@ -9,6 +11,7 @@ import { Component } from 'react';
|
|
|
9
11
|
import { ComponentType } from 'react';
|
|
10
12
|
import { CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
11
13
|
import { ElementType } from 'react';
|
|
14
|
+
import { jsx } from '@emotion/react';
|
|
12
15
|
import { MemoizedFn } from 'memoize-one';
|
|
13
16
|
import { ModalFooterProps } from '@atlaskit/modal-dialog';
|
|
14
17
|
import { ModalHeaderProps } from '@atlaskit/modal-dialog';
|
|
@@ -34,28 +37,39 @@ declare type BaseProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
34
37
|
testId?: string;
|
|
35
38
|
};
|
|
36
39
|
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated
|
|
42
|
+
*/
|
|
37
43
|
declare interface CardTokens {
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated
|
|
46
|
+
*/
|
|
38
47
|
container: Record<string, string | undefined>;
|
|
39
48
|
}
|
|
40
49
|
|
|
41
50
|
/**
|
|
42
|
-
*
|
|
51
|
+
* __Benefits modal__
|
|
43
52
|
*
|
|
44
|
-
*
|
|
45
|
-
* this component can be used to outline the benefits of the change to the user.
|
|
53
|
+
* A benefits modal explains the benefits of a significant new feature or experience change.
|
|
46
54
|
*
|
|
47
|
-
* - [Examples](https://
|
|
55
|
+
* - [Examples](https://atlassian.design/components/onboarding/benefits-modal/examples)
|
|
56
|
+
* - [Code](https://atlassian.design/components/onboarding/benefits-modal/code)
|
|
57
|
+
* - [Usage](https://atlassian.design/components/onboarding/benefits-modal/usage)
|
|
48
58
|
*/
|
|
49
59
|
export declare class Modal extends Component<ModalProps> {
|
|
50
60
|
headerComponent: (
|
|
51
61
|
props: ModalProps,
|
|
52
|
-
) => ElementType<ModalHeaderProps> | (() => JSX.Element);
|
|
62
|
+
) => ElementType<ModalHeaderProps> | (() => jsx.JSX.Element);
|
|
53
63
|
footerComponent: (
|
|
54
64
|
props: ModalProps,
|
|
55
|
-
) => ElementType<ModalFooterProps> | (() => JSX.Element | null);
|
|
56
|
-
render(): JSX.Element;
|
|
65
|
+
) => ElementType<ModalFooterProps> | (() => jsx.JSX.Element | null);
|
|
66
|
+
render(): jsx.JSX.Element;
|
|
57
67
|
}
|
|
58
68
|
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated
|
|
71
|
+
* Custom button themes are deprecated and will be removed in the future.
|
|
72
|
+
*/
|
|
59
73
|
export declare const modalButtonTheme: (
|
|
60
74
|
current: any,
|
|
61
75
|
themeProps: Record<string, any>,
|
|
@@ -97,21 +111,34 @@ export { ModalTransition };
|
|
|
97
111
|
/**
|
|
98
112
|
* __Spotlight__
|
|
99
113
|
*
|
|
100
|
-
*
|
|
114
|
+
* An onboarding spotlight introduces new features to users through focused messages or multi-step tours.
|
|
101
115
|
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
* - [
|
|
116
|
+
* - [Examples](https://atlassian.design/components/onboarding/examples)
|
|
117
|
+
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
118
|
+
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
105
119
|
*/
|
|
106
120
|
export declare const Spotlight: React_2.FC<SpotlightProps>;
|
|
107
121
|
|
|
122
|
+
/**
|
|
123
|
+
* @deprecated
|
|
124
|
+
* Custom button themes are deprecated and will be removed in the future.
|
|
125
|
+
*/
|
|
108
126
|
export declare const spotlightButtonTheme: (
|
|
109
127
|
current: any,
|
|
110
128
|
themeProps: Record<string, any>,
|
|
111
129
|
) => any;
|
|
112
130
|
|
|
131
|
+
/**
|
|
132
|
+
* __Spotlight card__
|
|
133
|
+
*
|
|
134
|
+
* A spotlight card is for onboarding messages that need a more flexible layout, or don't require a dialog.
|
|
135
|
+
*
|
|
136
|
+
* - [Examples](https://atlassian.design/components/onboarding/spotlight-card/examples)
|
|
137
|
+
* - [Code](https://atlassian.design/components/onboarding/spotlight-card/code)
|
|
138
|
+
* - [Usage](https://atlassian.design/components/onboarding/spotlight-card/usage)
|
|
139
|
+
*/
|
|
113
140
|
export declare const SpotlightCard: React_2.ForwardRefExoticComponent<
|
|
114
|
-
SpotlightCardProps & React_2.RefAttributes<
|
|
141
|
+
SpotlightCardProps & React_2.RefAttributes<HTMLDivElement>
|
|
115
142
|
>;
|
|
116
143
|
|
|
117
144
|
declare interface SpotlightCardProps {
|
|
@@ -151,14 +178,19 @@ declare interface SpotlightCardProps {
|
|
|
151
178
|
*/
|
|
152
179
|
isFlat?: boolean;
|
|
153
180
|
/**
|
|
154
|
-
*
|
|
181
|
+
* @deprecated
|
|
182
|
+
* Theme prop is deprecated and will be removed in the future.
|
|
155
183
|
*/
|
|
156
184
|
theme?: ThemeProp<CardTokens, {}>;
|
|
157
185
|
/**
|
|
158
|
-
* Width of the card in pixels
|
|
186
|
+
* Width of the card in pixels.
|
|
159
187
|
*/
|
|
160
188
|
width?: number;
|
|
161
|
-
|
|
189
|
+
/**
|
|
190
|
+
* @deprecated
|
|
191
|
+
* Use `ref` instead.
|
|
192
|
+
*/
|
|
193
|
+
innerRef?: Ref<HTMLDivElement> | null;
|
|
162
194
|
/**
|
|
163
195
|
* A `testId` prop is provided for specified elements,
|
|
164
196
|
* which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
@@ -170,9 +202,11 @@ declare interface SpotlightCardProps {
|
|
|
170
202
|
/**
|
|
171
203
|
* __Spotlight manager__
|
|
172
204
|
*
|
|
173
|
-
*
|
|
205
|
+
* A spotlight manager manages the visibility of spotlights used to introduce new features to users through focused messages or multi-step tours.
|
|
174
206
|
*
|
|
175
|
-
* - [Examples](https://
|
|
207
|
+
* - [Examples](https://atlassian.design/components/onboarding/examples)
|
|
208
|
+
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
209
|
+
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
176
210
|
*/
|
|
177
211
|
export declare class SpotlightManager extends PureComponent<
|
|
178
212
|
SpotlightManagerProps,
|
|
@@ -218,7 +252,7 @@ declare interface SpotlightManagerProps {
|
|
|
218
252
|
children: ReactNode;
|
|
219
253
|
/**
|
|
220
254
|
* @deprecated
|
|
221
|
-
*
|
|
255
|
+
* Component is deprecated and will be removed in the future.
|
|
222
256
|
*/
|
|
223
257
|
component?: ElementType;
|
|
224
258
|
}
|
|
@@ -320,20 +354,24 @@ declare interface SpotlightProps {
|
|
|
320
354
|
}
|
|
321
355
|
|
|
322
356
|
/**
|
|
323
|
-
*
|
|
357
|
+
* __Spotlight pulse__
|
|
324
358
|
*
|
|
325
|
-
*
|
|
359
|
+
* A spotlight pulse draws attention to a new feature.
|
|
326
360
|
*
|
|
327
|
-
* - [Examples](https://
|
|
361
|
+
* - [Examples](https://atlassian.design/components/onboarding/examples)
|
|
362
|
+
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
363
|
+
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
328
364
|
*/
|
|
329
365
|
export declare const SpotlightPulse: React.FC<TargetProps>;
|
|
330
366
|
|
|
331
367
|
/**
|
|
332
368
|
* __Spotlight target__
|
|
333
369
|
*
|
|
334
|
-
*
|
|
370
|
+
* A spotlight target marks a component to be used for introducing new features to users through focused messages or multi-step tours.
|
|
335
371
|
*
|
|
336
|
-
* - [Examples](https://
|
|
372
|
+
* - [Examples](https://atlassian.design/components/onboarding/examples)
|
|
373
|
+
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
374
|
+
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
337
375
|
*/
|
|
338
376
|
export declare const SpotlightTarget: React_2.FC<SpotlightTargetProps>;
|
|
339
377
|
|
|
@@ -351,9 +389,11 @@ declare interface SpotlightTargetProps {
|
|
|
351
389
|
/**
|
|
352
390
|
* __Spotlight transition__
|
|
353
391
|
*
|
|
354
|
-
*
|
|
392
|
+
* A spotlight transition holds onto spotlights so they can fade out when exiting the viewport.
|
|
355
393
|
*
|
|
356
|
-
* - [Examples](https://
|
|
394
|
+
* - [Examples](https://atlassian.design/components/onboarding/examples)
|
|
395
|
+
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
396
|
+
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
357
397
|
*/
|
|
358
398
|
export declare class SpotlightTransition extends React_2.Component<
|
|
359
399
|
SpotlightTransitionProps,
|
|
@@ -390,13 +430,7 @@ declare type TargetProps = Omit<BaseProps, 'css'> & {
|
|
|
390
430
|
};
|
|
391
431
|
|
|
392
432
|
/**
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
* Provides the following methods:
|
|
396
|
-
* - `isTargetRendered`
|
|
397
|
-
*
|
|
398
|
-
* Checks if the given spotlight target is currently
|
|
399
|
-
* being rendered.
|
|
433
|
+
* Use spotlight hook returns information about available spotlight targets.
|
|
400
434
|
*/
|
|
401
435
|
export declare function useSpotlight(): {
|
|
402
436
|
isTargetRendered: (target: string) => boolean;
|