@atlaskit/onboarding 11.0.0 → 11.1.0
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 +6 -0
- package/dist/cjs/components/clone.js +5 -0
- package/dist/cjs/components/spotlight-dialog.js +1 -1
- package/dist/es2019/components/clone.js +5 -0
- package/dist/es2019/components/spotlight-dialog.js +1 -1
- package/dist/esm/components/clone.js +5 -0
- package/dist/esm/components/spotlight-dialog.js +1 -1
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/onboarding
|
|
2
2
|
|
|
3
|
+
## 11.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#58176](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58176) [`32032c9c1289`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32032c9c1289) - [ux] Fix spotlight padding and font style issues on tabs.
|
|
8
|
+
|
|
3
9
|
## 11.0.0
|
|
4
10
|
|
|
5
11
|
### Major Changes
|
|
@@ -7,9 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _target = require("../styled/target");
|
|
10
|
+
var computedStyleAttributesToClone = ['fontSize', 'fontWeight', 'lineHeight', 'padding', 'color', 'textOverflow'];
|
|
10
11
|
function cloneAndOverrideStyles(node) {
|
|
11
12
|
var shouldCloneChildren = true;
|
|
12
13
|
var clonedNode = node.cloneNode(shouldCloneChildren);
|
|
14
|
+
var computedStyles = getComputedStyle(node);
|
|
15
|
+
computedStyleAttributesToClone.forEach(function (attribute) {
|
|
16
|
+
clonedNode.style[attribute] = computedStyles[attribute];
|
|
17
|
+
});
|
|
13
18
|
clonedNode.style.margin = '0';
|
|
14
19
|
clonedNode.style.position = 'static';
|
|
15
20
|
// The target may have other transforms applied. Avoid unintended side effects
|
|
@@ -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 = "11.
|
|
30
|
+
var packageVersion = "11.1.0";
|
|
31
31
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
32
32
|
(0, _inherits2.default)(SpotlightDialog, _Component);
|
|
33
33
|
var _super = _createSuper(SpotlightDialog);
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TargetInner, TargetOverlay } from '../styled/target';
|
|
3
|
+
const computedStyleAttributesToClone = ['fontSize', 'fontWeight', 'lineHeight', 'padding', 'color', 'textOverflow'];
|
|
3
4
|
function cloneAndOverrideStyles(node) {
|
|
4
5
|
const shouldCloneChildren = true;
|
|
5
6
|
const clonedNode = node.cloneNode(shouldCloneChildren);
|
|
7
|
+
const computedStyles = getComputedStyle(node);
|
|
8
|
+
computedStyleAttributesToClone.forEach(attribute => {
|
|
9
|
+
clonedNode.style[attribute] = computedStyles[attribute];
|
|
10
|
+
});
|
|
6
11
|
clonedNode.style.margin = '0';
|
|
7
12
|
clonedNode.style.position = 'static';
|
|
8
13
|
// The target may have other transforms applied. Avoid unintended side effects
|
|
@@ -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.
|
|
10
|
+
const packageVersion = "11.1.0";
|
|
11
11
|
class SpotlightDialog extends Component {
|
|
12
12
|
constructor(...args) {
|
|
13
13
|
super(...args);
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TargetInner, TargetOverlay } from '../styled/target';
|
|
3
|
+
var computedStyleAttributesToClone = ['fontSize', 'fontWeight', 'lineHeight', 'padding', 'color', 'textOverflow'];
|
|
3
4
|
function cloneAndOverrideStyles(node) {
|
|
4
5
|
var shouldCloneChildren = true;
|
|
5
6
|
var clonedNode = node.cloneNode(shouldCloneChildren);
|
|
7
|
+
var computedStyles = getComputedStyle(node);
|
|
8
|
+
computedStyleAttributesToClone.forEach(function (attribute) {
|
|
9
|
+
clonedNode.style[attribute] = computedStyles[attribute];
|
|
10
|
+
});
|
|
6
11
|
clonedNode.style.margin = '0';
|
|
7
12
|
clonedNode.style.position = 'static';
|
|
8
13
|
// The target may have other transforms applied. Avoid unintended side effects
|
|
@@ -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.
|
|
20
|
+
var packageVersion = "11.1.0";
|
|
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": "11.
|
|
3
|
+
"version": "11.1.0",
|
|
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/"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/button": "^16.17.0",
|
|
38
38
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
39
39
|
"@atlaskit/heading": "^1.4.0",
|
|
40
|
-
"@atlaskit/modal-dialog": "^12.
|
|
40
|
+
"@atlaskit/modal-dialog": "^12.10.0",
|
|
41
41
|
"@atlaskit/popper": "^5.5.0",
|
|
42
42
|
"@atlaskit/portal": "^4.4.0",
|
|
43
43
|
"@atlaskit/theme": "^12.6.0",
|
|
@@ -59,6 +59,8 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@af/accessibility-testing": "*",
|
|
62
|
+
"@af/integration-testing": "*",
|
|
63
|
+
"@af/visual-regression": "*",
|
|
62
64
|
"@atlaskit/ssr": "*",
|
|
63
65
|
"@atlaskit/visual-regression": "*",
|
|
64
66
|
"@atlaskit/webdriver-runner": "*",
|