@atlaskit/onboarding 11.5.5 → 11.5.6

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/onboarding
2
2
 
3
+ ## 11.5.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#100605](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100605)
8
+ [`f12f3d4764e2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12f3d4764e2) -
9
+ Reverts an attempted bug fix in 11.5.2 that re-added a theme provider to spotlight card to
10
+ prevent custom theme buttons inheriting other themes
11
+
3
12
  ## 11.5.5
4
13
 
5
14
  ### 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)(Theme.Provider, {
108
- value: undefined
109
- }, (0, _react2.jsx)(Theme.Consumer, null, function () {
110
- return (0, _react2.jsx)(_primitives.Box, {
111
- backgroundColor: "color.background.discovery.bold",
112
- xcss: [containerStyles, !isFlat && containerShadowStyles],
113
- style: {
114
- width: width
115
- },
116
- ref: ref || innerRef,
117
- testId: testId
118
- }, typeof image === 'string' ? (0, _react2.jsx)("img", {
119
- css: imageStyles,
120
- src: image,
121
- alt: ""
122
- }) : image, (0, _react2.jsx)("div", {
123
- css: bodyStyles
124
- }, heading || headingAfterElement ? (0, _react2.jsx)(Header, null, (0, _react2.jsx)(_heading.default, {
125
- id: headingId,
126
- size: "medium",
127
- as: "h".concat(headingLevel)
128
- }, 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) {
129
- var text = _ref3.text,
130
- key = _ref3.key,
131
- rest = (0, _objectWithoutProperties2.default)(_ref3, _excluded);
132
- return (0, _react2.jsx)(_dialog.DialogActionItem, {
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.5";
30
+ var packageVersion = "11.5.6";
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(Theme.Provider, {
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.5";
10
+ const packageVersion = "11.5.6";
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(Theme.Provider, {
98
- value: undefined
99
- }, jsx(Theme.Consumer, null, function () {
100
- return jsx(Box, {
101
- backgroundColor: "color.background.discovery.bold",
102
- xcss: [containerStyles, !isFlat && containerShadowStyles],
103
- style: {
104
- width: width
105
- },
106
- ref: ref || innerRef,
107
- testId: testId
108
- }, typeof image === 'string' ? jsx("img", {
109
- css: imageStyles,
110
- src: image,
111
- alt: ""
112
- }) : image, jsx("div", {
113
- css: bodyStyles
114
- }, heading || headingAfterElement ? jsx(Header, null, jsx(Heading, {
115
- id: headingId,
116
- size: "medium",
117
- as: "h".concat(headingLevel)
118
- }, 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) {
119
- var text = _ref3.text,
120
- key = _ref3.key,
121
- rest = _objectWithoutProperties(_ref3, _excluded);
122
- return jsx(DialogActionItem, {
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.5";
20
+ var packageVersion = "11.5.6";
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.5.5",
3
+ "version": "11.5.6",
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/"
@@ -45,12 +45,12 @@
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.5.0",
48
+ "@atlaskit/motion": "^1.6.0",
49
49
  "@atlaskit/popper": "^5.5.0",
50
50
  "@atlaskit/portal": "^4.5.0",
51
51
  "@atlaskit/primitives": "^6.1.0",
52
- "@atlaskit/theme": "^12.7.0",
53
- "@atlaskit/tokens": "^1.45.0",
52
+ "@atlaskit/theme": "^12.8.0",
53
+ "@atlaskit/tokens": "^1.48.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@emotion/react": "^11.7.1",
56
56
  "bind-event-listener": "^3.0.0",