@atlaskit/onboarding 10.8.10 → 10.8.12
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 +12 -0
- package/dist/cjs/components/spotlight-card.js +7 -5
- package/dist/cjs/components/spotlight-dialog.js +1 -1
- package/dist/es2019/components/spotlight-card.js +7 -5
- package/dist/es2019/components/spotlight-dialog.js +1 -1
- package/dist/esm/components/spotlight-card.js +7 -5
- package/dist/esm/components/spotlight-dialog.js +1 -1
- package/dist/types/components/spotlight-card.d.ts +4 -0
- package/dist/types-ts4.5/components/spotlight-card.d.ts +4 -0
- package/package.json +7 -4
- package/report.api.md +1 -0
- package/tmp/api-report-tmp.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/onboarding
|
|
2
2
|
|
|
3
|
+
## 10.8.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#43073](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43073) [`2d760e89b53`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2d760e89b53) - headingId is the id of heading in spotlightCard, which is used as the value of aria-labelledby attribute of <div> element containing the modal dialog heading for screen reader recognising the dialog
|
|
8
|
+
|
|
9
|
+
## 10.8.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#41764](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41764) [`77fd34690e9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/77fd34690e9) - Add missing dependencies to fix typechecking under local consumption
|
|
14
|
+
|
|
3
15
|
## 10.8.10
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -30,9 +30,9 @@ var imageStyles = (0, _react2.css)({
|
|
|
30
30
|
});
|
|
31
31
|
var defaultHeaderStyles = (0, _react2.css)({
|
|
32
32
|
display: 'flex',
|
|
33
|
-
paddingBottom: "var(--ds-space-100, 8px)",
|
|
34
33
|
alignItems: 'baseline',
|
|
35
|
-
justifyContent: 'space-between'
|
|
34
|
+
justifyContent: 'space-between',
|
|
35
|
+
paddingBlockEnd: "var(--ds-space-100, 8px)"
|
|
36
36
|
});
|
|
37
37
|
var DefaultHeader = function DefaultHeader(_ref) {
|
|
38
38
|
var children = _ref.children;
|
|
@@ -42,9 +42,9 @@ var DefaultHeader = function DefaultHeader(_ref) {
|
|
|
42
42
|
};
|
|
43
43
|
var defaultFooterStyles = (0, _react2.css)({
|
|
44
44
|
display: 'flex',
|
|
45
|
-
paddingTop: "var(--ds-space-100, 8px)",
|
|
46
45
|
alignItems: 'center',
|
|
47
|
-
justifyContent: 'space-between'
|
|
46
|
+
justifyContent: 'space-between',
|
|
47
|
+
paddingBlockStart: "var(--ds-space-100, 8px)"
|
|
48
48
|
});
|
|
49
49
|
var DefaultFooter = function DefaultFooter(_ref2) {
|
|
50
50
|
var children = _ref2.children;
|
|
@@ -101,7 +101,8 @@ var SpotlightCard = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
101
101
|
testId = props.testId,
|
|
102
102
|
theme = props.theme,
|
|
103
103
|
_props$width = props.width,
|
|
104
|
-
width = _props$width === void 0 ? 400 : _props$width
|
|
104
|
+
width = _props$width === void 0 ? 400 : _props$width,
|
|
105
|
+
headingId = props.headingId;
|
|
105
106
|
var _components$Header = components.Header,
|
|
106
107
|
Header = _components$Header === void 0 ? DefaultHeader : _components$Header,
|
|
107
108
|
_components$Footer = components.Footer,
|
|
@@ -130,6 +131,7 @@ var SpotlightCard = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
130
131
|
}) : image, (0, _react2.jsx)("div", {
|
|
131
132
|
css: bodyStyles
|
|
132
133
|
}, heading || headingAfterElement ? (0, _react2.jsx)(Header, null, (0, _react2.jsx)(_heading.default, {
|
|
134
|
+
id: headingId,
|
|
133
135
|
color: "inverse",
|
|
134
136
|
level: "h600",
|
|
135
137
|
as: "h4"
|
|
@@ -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() { 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; } }
|
|
29
29
|
var packageName = "@atlaskit/onboarding";
|
|
30
|
-
var packageVersion = "10.8.
|
|
30
|
+
var packageVersion = "10.8.12";
|
|
31
31
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
32
32
|
(0, _inherits2.default)(SpotlightDialog, _Component);
|
|
33
33
|
var _super = _createSuper(SpotlightDialog);
|
|
@@ -18,9 +18,9 @@ const imageStyles = css({
|
|
|
18
18
|
});
|
|
19
19
|
const defaultHeaderStyles = css({
|
|
20
20
|
display: 'flex',
|
|
21
|
-
paddingBottom: "var(--ds-space-100, 8px)",
|
|
22
21
|
alignItems: 'baseline',
|
|
23
|
-
justifyContent: 'space-between'
|
|
22
|
+
justifyContent: 'space-between',
|
|
23
|
+
paddingBlockEnd: "var(--ds-space-100, 8px)"
|
|
24
24
|
});
|
|
25
25
|
const DefaultHeader = ({
|
|
26
26
|
children
|
|
@@ -29,9 +29,9 @@ const DefaultHeader = ({
|
|
|
29
29
|
}, children);
|
|
30
30
|
const defaultFooterStyles = css({
|
|
31
31
|
display: 'flex',
|
|
32
|
-
paddingTop: "var(--ds-space-100, 8px)",
|
|
33
32
|
alignItems: 'center',
|
|
34
|
-
justifyContent: 'space-between'
|
|
33
|
+
justifyContent: 'space-between',
|
|
34
|
+
paddingBlockStart: "var(--ds-space-100, 8px)"
|
|
35
35
|
});
|
|
36
36
|
const DefaultFooter = ({
|
|
37
37
|
children
|
|
@@ -83,7 +83,8 @@ const SpotlightCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
83
83
|
isFlat,
|
|
84
84
|
testId,
|
|
85
85
|
theme,
|
|
86
|
-
width = 400
|
|
86
|
+
width = 400,
|
|
87
|
+
headingId
|
|
87
88
|
} = props;
|
|
88
89
|
const {
|
|
89
90
|
Header = DefaultHeader,
|
|
@@ -114,6 +115,7 @@ const SpotlightCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
114
115
|
}) : image, jsx("div", {
|
|
115
116
|
css: bodyStyles
|
|
116
117
|
}, heading || headingAfterElement ? jsx(Header, null, jsx(Heading, {
|
|
118
|
+
id: headingId,
|
|
117
119
|
color: "inverse",
|
|
118
120
|
level: "h600",
|
|
119
121
|
as: "h4"
|
|
@@ -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.8.
|
|
10
|
+
const packageVersion = "10.8.12";
|
|
11
11
|
class SpotlightDialog extends Component {
|
|
12
12
|
constructor(...args) {
|
|
13
13
|
super(...args);
|
|
@@ -20,9 +20,9 @@ var imageStyles = css({
|
|
|
20
20
|
});
|
|
21
21
|
var defaultHeaderStyles = css({
|
|
22
22
|
display: 'flex',
|
|
23
|
-
paddingBottom: "var(--ds-space-100, 8px)",
|
|
24
23
|
alignItems: 'baseline',
|
|
25
|
-
justifyContent: 'space-between'
|
|
24
|
+
justifyContent: 'space-between',
|
|
25
|
+
paddingBlockEnd: "var(--ds-space-100, 8px)"
|
|
26
26
|
});
|
|
27
27
|
var DefaultHeader = function DefaultHeader(_ref) {
|
|
28
28
|
var children = _ref.children;
|
|
@@ -32,9 +32,9 @@ var DefaultHeader = function DefaultHeader(_ref) {
|
|
|
32
32
|
};
|
|
33
33
|
var defaultFooterStyles = css({
|
|
34
34
|
display: 'flex',
|
|
35
|
-
paddingTop: "var(--ds-space-100, 8px)",
|
|
36
35
|
alignItems: 'center',
|
|
37
|
-
justifyContent: 'space-between'
|
|
36
|
+
justifyContent: 'space-between',
|
|
37
|
+
paddingBlockStart: "var(--ds-space-100, 8px)"
|
|
38
38
|
});
|
|
39
39
|
var DefaultFooter = function DefaultFooter(_ref2) {
|
|
40
40
|
var children = _ref2.children;
|
|
@@ -91,7 +91,8 @@ var SpotlightCard = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
91
91
|
testId = props.testId,
|
|
92
92
|
theme = props.theme,
|
|
93
93
|
_props$width = props.width,
|
|
94
|
-
width = _props$width === void 0 ? 400 : _props$width
|
|
94
|
+
width = _props$width === void 0 ? 400 : _props$width,
|
|
95
|
+
headingId = props.headingId;
|
|
95
96
|
var _components$Header = components.Header,
|
|
96
97
|
Header = _components$Header === void 0 ? DefaultHeader : _components$Header,
|
|
97
98
|
_components$Footer = components.Footer,
|
|
@@ -120,6 +121,7 @@ var SpotlightCard = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
120
121
|
}) : image, jsx("div", {
|
|
121
122
|
css: bodyStyles
|
|
122
123
|
}, heading || headingAfterElement ? jsx(Header, null, jsx(Heading, {
|
|
124
|
+
id: headingId,
|
|
123
125
|
color: "inverse",
|
|
124
126
|
level: "h600",
|
|
125
127
|
as: "h4"
|
|
@@ -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 = "10.8.
|
|
20
|
+
var packageVersion = "10.8.12";
|
|
21
21
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
22
22
|
_inherits(SpotlightDialog, _Component);
|
|
23
23
|
var _super = _createSuper(SpotlightDialog);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/onboarding",
|
|
3
|
-
"version": "10.8.
|
|
3
|
+
"version": "10.8.12",
|
|
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/"
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
37
|
-
"@atlaskit/button": "^16.
|
|
37
|
+
"@atlaskit/button": "^16.15.0",
|
|
38
38
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
39
39
|
"@atlaskit/heading": "^1.4.0",
|
|
40
40
|
"@atlaskit/modal-dialog": "^12.8.0",
|
|
41
41
|
"@atlaskit/popper": "^5.5.0",
|
|
42
|
-
"@atlaskit/portal": "^4.
|
|
42
|
+
"@atlaskit/portal": "^4.4.0",
|
|
43
43
|
"@atlaskit/theme": "^12.6.0",
|
|
44
|
-
"@atlaskit/tokens": "^1.
|
|
44
|
+
"@atlaskit/tokens": "^1.28.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@emotion/react": "^11.7.1",
|
|
47
47
|
"bind-event-listener": "^2.1.1",
|
|
@@ -65,6 +65,9 @@
|
|
|
65
65
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
66
66
|
"@testing-library/react": "^12.1.5",
|
|
67
67
|
"@testing-library/react-hooks": "^8.0.1",
|
|
68
|
+
"@types/exenv": "^1.2.0",
|
|
69
|
+
"@types/react-node-resolver": "^2.0.0",
|
|
70
|
+
"@types/react-transition-group": "^2.0.6",
|
|
68
71
|
"raf-stub": "^2.0.1",
|
|
69
72
|
"react-dom": "^16.8.0",
|
|
70
73
|
"react-lorem-component": "^0.13.0",
|
package/report.api.md
CHANGED
package/tmp/api-report-tmp.d.ts
CHANGED