@atlaskit/onboarding 11.5.7 → 11.6.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.
@@ -44,13 +44,17 @@ var Clone = function Clone(props) {
44
44
  "data-testid": testId,
45
45
  pulse: pulse,
46
46
  bgColor: targetBgColor,
47
- radius: targetRadius,
47
+ radius: targetRadius
48
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
49
+ ,
48
50
  style: style
49
51
  }, /*#__PURE__*/_react.default.createElement("div", {
50
52
  // eslint-disable-next-line react/no-danger
51
53
  dangerouslySetInnerHTML: {
52
54
  __html: cloneAndOverrideStyles(targetNode).outerHTML
53
- },
55
+ }
56
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
57
+ ,
54
58
  style: {
55
59
  height: '100%',
56
60
  pointerEvents: 'none'
@@ -112,7 +112,8 @@ var SpotlightCard = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
112
112
  }, heading || headingAfterElement ? (0, _react2.jsx)(Header, null, (0, _react2.jsx)(_heading.default, {
113
113
  id: headingId,
114
114
  size: "medium",
115
- as: "h".concat(headingLevel)
115
+ as: "h".concat(headingLevel),
116
+ color: "color.text.inverse"
116
117
  }, 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
118
  var text = _ref3.text,
118
119
  key = _ref3.key,
@@ -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.7";
30
+ var packageVersion = "11.6.0";
31
31
  var SpotlightDialog = /*#__PURE__*/function (_Component) {
32
32
  (0, _inherits2.default)(SpotlightDialog, _Component);
33
33
  var _super = _createSuper(SpotlightDialog);
@@ -122,7 +122,9 @@ var SpotlightInner = /*#__PURE__*/function (_React$Component) {
122
122
  return /*#__PURE__*/_react.default.createElement(_clone.default, {
123
123
  testId: "".concat(testId, "--target"),
124
124
  pulse: pulse,
125
- target: target,
125
+ target: target
126
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
127
+ ,
126
128
  style: _this2.getTargetNodeStyle(box),
127
129
  targetBgColor: targetBgColor,
128
130
  targetNode: targetNode,
@@ -32,7 +32,9 @@ var blanketStyles = (0, _react.css)({
32
32
  */
33
33
  var Blanket = function Blanket(props) {
34
34
  return (0, _react.jsx)("div", {
35
- css: blanketStyles,
35
+ css: blanketStyles
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
37
+ ,
36
38
  style: _objectSpread(_objectSpread({}, props.style), {}, {
37
39
  backgroundColor: props.isTinted ? "var(--ds-blanket, ".concat(_colors.N100A, ")") : 'transparent'
38
40
  })
@@ -14,7 +14,7 @@ var modalBodyStyles = (0, _react.css)({
14
14
  textAlign: 'center'
15
15
  });
16
16
 
17
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
17
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
18
18
  var modalHeadingStyles = (0, _react.css)([(0, _react.css)((0, _typography.h600)({
19
19
  theme: {
20
20
  mode: 'light'
@@ -45,7 +45,9 @@ var Base = function Base(_ref) {
45
45
  testId = _ref.testId,
46
46
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
47
47
  return (0, _react.jsx)("div", (0, _extends2.default)({
48
- "data-testid": testId,
48
+ "data-testid": testId
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
50
+ ,
49
51
  style: _objectSpread(_objectSpread({}, style), {}, {
50
52
  backgroundColor: bgColor,
51
53
  borderRadius: radius ? "".concat(radius, "px") : undefined
@@ -92,7 +94,9 @@ var targetOverlayStyles = (0, _react.css)({
92
94
  */
93
95
  var TargetOverlay = exports.TargetOverlay = function TargetOverlay(props) {
94
96
  return (0, _react.jsx)("div", (0, _extends2.default)({}, props, {
95
- css: targetOverlayStyles,
97
+ css: targetOverlayStyles
98
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
99
+ ,
96
100
  style: {
97
101
  cursor: props.onClick ? 'pointer' : 'auto'
98
102
  }
@@ -39,13 +39,17 @@ const Clone = props => {
39
39
  "data-testid": testId,
40
40
  pulse: pulse,
41
41
  bgColor: targetBgColor,
42
- radius: targetRadius,
42
+ radius: targetRadius
43
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
44
+ ,
43
45
  style: style
44
46
  }, /*#__PURE__*/React.createElement("div", {
45
47
  // eslint-disable-next-line react/no-danger
46
48
  dangerouslySetInnerHTML: {
47
49
  __html: cloneAndOverrideStyles(targetNode).outerHTML
48
- },
50
+ }
51
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
52
+ ,
49
53
  style: {
50
54
  height: '100%',
51
55
  pointerEvents: 'none'
@@ -96,7 +96,8 @@ const SpotlightCard = /*#__PURE__*/forwardRef((props, ref) => {
96
96
  }, heading || headingAfterElement ? jsx(Header, null, jsx(Heading, {
97
97
  id: headingId,
98
98
  size: "medium",
99
- as: `h${headingLevel}`
99
+ as: `h${headingLevel}`,
100
+ color: "color.text.inverse"
100
101
  }, heading), headingAfterElement) : null, jsx(Text, null, children), actions.length > 0 || actionsBeforeElement ? jsx(Footer, null, actionsBeforeElement || jsx("span", null), jsx(DialogActionItemContainer, null, actions.map(({
101
102
  text,
102
103
  key,
@@ -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.7";
10
+ const packageVersion = "11.6.0";
11
11
  class SpotlightDialog extends Component {
12
12
  constructor(...args) {
13
13
  super(...args);
@@ -87,7 +87,9 @@ class SpotlightInner extends React.Component {
87
87
  }, box => /*#__PURE__*/React.createElement(Clone, {
88
88
  testId: `${testId}--target`,
89
89
  pulse: pulse,
90
- target: target,
90
+ target: target
91
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
92
+ ,
91
93
  style: this.getTargetNodeStyle(box),
92
94
  targetBgColor: targetBgColor,
93
95
  targetNode: targetNode,
@@ -23,7 +23,9 @@ const blanketStyles = css({
23
23
  */
24
24
  const Blanket = props => {
25
25
  return jsx("div", {
26
- css: blanketStyles,
26
+ css: blanketStyles
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
28
+ ,
27
29
  style: {
28
30
  ...props.style,
29
31
  backgroundColor: props.isTinted ? `var(--ds-blanket, ${N100A})` : 'transparent'
@@ -8,7 +8,7 @@ const modalBodyStyles = css({
8
8
  textAlign: 'center'
9
9
  });
10
10
 
11
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
11
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
12
12
  const modalHeadingStyles = css([css(h600({
13
13
  theme: {
14
14
  mode: 'light'
@@ -32,7 +32,9 @@ const Base = ({
32
32
  testId,
33
33
  ...props
34
34
  }) => jsx("div", _extends({
35
- "data-testid": testId,
35
+ "data-testid": testId
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
37
+ ,
36
38
  style: {
37
39
  ...style,
38
40
  backgroundColor: bgColor,
@@ -77,7 +79,9 @@ const targetOverlayStyles = css({
77
79
  * @internal
78
80
  */
79
81
  export const TargetOverlay = props => jsx("div", _extends({}, props, {
80
- css: targetOverlayStyles,
82
+ css: targetOverlayStyles
83
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
84
+ ,
81
85
  style: {
82
86
  cursor: props.onClick ? 'pointer' : 'auto'
83
87
  }
@@ -37,13 +37,17 @@ var Clone = function Clone(props) {
37
37
  "data-testid": testId,
38
38
  pulse: pulse,
39
39
  bgColor: targetBgColor,
40
- radius: targetRadius,
40
+ radius: targetRadius
41
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
42
+ ,
41
43
  style: style
42
44
  }, /*#__PURE__*/React.createElement("div", {
43
45
  // eslint-disable-next-line react/no-danger
44
46
  dangerouslySetInnerHTML: {
45
47
  __html: cloneAndOverrideStyles(targetNode).outerHTML
46
- },
48
+ }
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
50
+ ,
47
51
  style: {
48
52
  height: '100%',
49
53
  pointerEvents: 'none'
@@ -102,7 +102,8 @@ var SpotlightCard = /*#__PURE__*/forwardRef(function (props, ref) {
102
102
  }, heading || headingAfterElement ? jsx(Header, null, jsx(Heading, {
103
103
  id: headingId,
104
104
  size: "medium",
105
- as: "h".concat(headingLevel)
105
+ as: "h".concat(headingLevel),
106
+ color: "color.text.inverse"
106
107
  }, 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
108
  var text = _ref3.text,
108
109
  key = _ref3.key,
@@ -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.7";
20
+ var packageVersion = "11.6.0";
21
21
  var SpotlightDialog = /*#__PURE__*/function (_Component) {
22
22
  _inherits(SpotlightDialog, _Component);
23
23
  var _super = _createSuper(SpotlightDialog);
@@ -115,7 +115,9 @@ var SpotlightInner = /*#__PURE__*/function (_React$Component) {
115
115
  return /*#__PURE__*/React.createElement(Clone, {
116
116
  testId: "".concat(testId, "--target"),
117
117
  pulse: pulse,
118
- target: target,
118
+ target: target
119
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
120
+ ,
119
121
  style: _this2.getTargetNodeStyle(box),
120
122
  targetBgColor: targetBgColor,
121
123
  targetNode: targetNode,
@@ -26,7 +26,9 @@ var blanketStyles = css({
26
26
  */
27
27
  var Blanket = function Blanket(props) {
28
28
  return jsx("div", {
29
- css: blanketStyles,
29
+ css: blanketStyles
30
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
31
+ ,
30
32
  style: _objectSpread(_objectSpread({}, props.style), {}, {
31
33
  backgroundColor: props.isTinted ? "var(--ds-blanket, ".concat(N100A, ")") : 'transparent'
32
34
  })
@@ -8,7 +8,7 @@ var modalBodyStyles = css({
8
8
  textAlign: 'center'
9
9
  });
10
10
 
11
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
11
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
12
12
  var modalHeadingStyles = css([css(h600({
13
13
  theme: {
14
14
  mode: 'light'
@@ -39,7 +39,9 @@ var Base = function Base(_ref) {
39
39
  testId = _ref.testId,
40
40
  props = _objectWithoutProperties(_ref, _excluded);
41
41
  return jsx("div", _extends({
42
- "data-testid": testId,
42
+ "data-testid": testId
43
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
44
+ ,
43
45
  style: _objectSpread(_objectSpread({}, style), {}, {
44
46
  backgroundColor: bgColor,
45
47
  borderRadius: radius ? "".concat(radius, "px") : undefined
@@ -86,7 +88,9 @@ var targetOverlayStyles = css({
86
88
  */
87
89
  export var TargetOverlay = function TargetOverlay(props) {
88
90
  return jsx("div", _extends({}, props, {
89
- css: targetOverlayStyles,
91
+ css: targetOverlayStyles
92
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
93
+ ,
90
94
  style: {
91
95
  cursor: props.onClick ? 'pointer' : 'auto'
92
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "11.5.7",
3
+ "version": "11.6.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/"
@@ -41,15 +41,15 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@atlaskit/analytics-next": "^9.3.0",
44
- "@atlaskit/button": "^17.16.0",
44
+ "@atlaskit/button": "^17.17.0",
45
45
  "@atlaskit/ds-lib": "^2.3.0",
46
46
  "@atlaskit/heading": "^2.3.0",
47
47
  "@atlaskit/modal-dialog": "^12.13.0",
48
48
  "@atlaskit/motion": "^1.6.0",
49
49
  "@atlaskit/popper": "^6.0.0",
50
50
  "@atlaskit/portal": "^4.5.0",
51
- "@atlaskit/primitives": "^6.3.0",
52
- "@atlaskit/theme": "^12.8.0",
51
+ "@atlaskit/primitives": "^7.0.0",
52
+ "@atlaskit/theme": "^12.9.0",
53
53
  "@atlaskit/tokens": "^1.49.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@emotion/react": "^11.7.1",
@@ -72,7 +72,6 @@
72
72
  "@af/visual-regression": "*",
73
73
  "@atlaskit/ssr": "*",
74
74
  "@atlaskit/visual-regression": "*",
75
- "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
76
75
  "@testing-library/react": "^12.1.5",
77
76
  "@testing-library/react-hooks": "^8.0.1",
78
77
  "@types/exenv": "^1.2.0",
@@ -101,6 +100,5 @@
101
100
  "design-system": "v1",
102
101
  "deprecation": "no-deprecated-imports"
103
102
  }
104
- },
105
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
103
+ }
106
104
  }