@atlaskit/onboarding 11.5.3 → 11.5.4

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.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#96898](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96898)
8
+ [`255626d6dcd8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/255626d6dcd8) -
9
+ [ux] Remove zIndex for legacy browsers
10
+ - Updated dependencies
11
+
3
12
  ## 11.5.3
4
13
 
5
14
  ### Patch Changes
@@ -21,7 +30,7 @@
21
30
 
22
31
  - [#95529](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95529)
23
32
  [`48e3bdade8f8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/48e3bdade8f8) -
24
- [ux] Remove zIndex for legacy browser support
33
+ Internal changes.
25
34
 
26
35
  ## 11.5.0
27
36
 
@@ -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.3";
30
+ var packageVersion = "11.5.4";
31
31
  var SpotlightDialog = /*#__PURE__*/function (_Component) {
32
32
  (0, _inherits2.default)(SpotlightDialog, _Component);
33
33
  var _super = _createSuper(SpotlightDialog);
@@ -11,7 +11,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
11
11
  var _react = require("@emotion/react");
12
12
  var _motion = require("@atlaskit/motion");
13
13
  var _colors = require("@atlaskit/theme/colors");
14
- var _constants = require("@atlaskit/theme/constants");
15
14
  var _excluded = ["children", "bgColor", "radius", "style", "testId"],
16
15
  _excluded2 = ["children", "pulse"],
17
16
  _excluded3 = ["children", "pulse", "testId"];
@@ -38,12 +37,6 @@ var animationStyles = (0, _react.css)({
38
37
  // is applied so we still have a functioning semantic affordance.
39
38
  boxShadow: baseShadow
40
39
  });
41
-
42
- // IE11 and Edge: z-index needed because fixed position calculates z-index relative
43
- // to body instead of nearest stacking context (Portal in our case).
44
- var baseStyles = (0, _react.css)({
45
- zIndex: _constants.layers.spotlight() + 1
46
- });
47
40
  var Base = function Base(_ref) {
48
41
  var children = _ref.children,
49
42
  bgColor = _ref.bgColor,
@@ -52,7 +45,6 @@ var Base = function Base(_ref) {
52
45
  testId = _ref.testId,
53
46
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
54
47
  return (0, _react.jsx)("div", (0, _extends2.default)({
55
- css: baseStyles,
56
48
  "data-testid": testId,
57
49
  style: _objectSpread(_objectSpread({}, style), {}, {
58
50
  backgroundColor: bgColor,
@@ -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.3";
10
+ const packageVersion = "11.5.4";
11
11
  class SpotlightDialog extends Component {
12
12
  constructor(...args) {
13
13
  super(...args);
@@ -4,7 +4,6 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  import { css, jsx, keyframes } from '@emotion/react';
5
5
  import { reduceMotionAsPerUserPreference } from '@atlaskit/motion';
6
6
  import { P300 } from '@atlaskit/theme/colors';
7
- import { layers } from '@atlaskit/theme/constants';
8
7
  // NOTE:
9
8
  // Pulse color "rgb(101, 84, 192)" derived from "colors.P300"
10
9
  const baseShadow = `0 0 0 2px ${`var(--ds-border-discovery, ${P300})`}`;
@@ -25,12 +24,6 @@ const animationStyles = css({
25
24
  // is applied so we still have a functioning semantic affordance.
26
25
  boxShadow: baseShadow
27
26
  });
28
-
29
- // IE11 and Edge: z-index needed because fixed position calculates z-index relative
30
- // to body instead of nearest stacking context (Portal in our case).
31
- const baseStyles = css({
32
- zIndex: layers.spotlight() + 1
33
- });
34
27
  const Base = ({
35
28
  children,
36
29
  bgColor,
@@ -39,7 +32,6 @@ const Base = ({
39
32
  testId,
40
33
  ...props
41
34
  }) => jsx("div", _extends({
42
- css: baseStyles,
43
35
  "data-testid": testId,
44
36
  style: {
45
37
  ...style,
@@ -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.3";
20
+ var packageVersion = "11.5.4";
21
21
  var SpotlightDialog = /*#__PURE__*/function (_Component) {
22
22
  _inherits(SpotlightDialog, _Component);
23
23
  var _super = _createSuper(SpotlightDialog);
@@ -11,7 +11,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
11
11
  import { css, jsx, keyframes } from '@emotion/react';
12
12
  import { reduceMotionAsPerUserPreference } from '@atlaskit/motion';
13
13
  import { P300 } from '@atlaskit/theme/colors';
14
- import { layers } from '@atlaskit/theme/constants';
15
14
  // NOTE:
16
15
  // Pulse color "rgb(101, 84, 192)" derived from "colors.P300"
17
16
  var baseShadow = "0 0 0 2px ".concat("var(--ds-border-discovery, ".concat(P300, ")"));
@@ -32,12 +31,6 @@ var animationStyles = css({
32
31
  // is applied so we still have a functioning semantic affordance.
33
32
  boxShadow: baseShadow
34
33
  });
35
-
36
- // IE11 and Edge: z-index needed because fixed position calculates z-index relative
37
- // to body instead of nearest stacking context (Portal in our case).
38
- var baseStyles = css({
39
- zIndex: layers.spotlight() + 1
40
- });
41
34
  var Base = function Base(_ref) {
42
35
  var children = _ref.children,
43
36
  bgColor = _ref.bgColor,
@@ -46,7 +39,6 @@ var Base = function Base(_ref) {
46
39
  testId = _ref.testId,
47
40
  props = _objectWithoutProperties(_ref, _excluded);
48
41
  return jsx("div", _extends({
49
- css: baseStyles,
50
42
  "data-testid": testId,
51
43
  style: _objectSpread(_objectSpread({}, style), {}, {
52
44
  backgroundColor: bgColor,
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { HTMLAttributes, ReactNode } from 'react';
2
+ import { type HTMLAttributes, type ReactNode } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  type BaseProps = React.HTMLAttributes<HTMLDivElement> & {
5
5
  bgColor?: string;
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { HTMLAttributes, ReactNode } from 'react';
2
+ import { type HTMLAttributes, type ReactNode } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  type BaseProps = React.HTMLAttributes<HTMLDivElement> & {
5
5
  bgColor?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "11.5.3",
3
+ "version": "11.5.4",
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/"
@@ -48,7 +48,7 @@
48
48
  "@atlaskit/motion": "^1.5.0",
49
49
  "@atlaskit/popper": "^5.5.0",
50
50
  "@atlaskit/portal": "^4.4.0",
51
- "@atlaskit/primitives": "^6.0.0",
51
+ "@atlaskit/primitives": "^6.1.0",
52
52
  "@atlaskit/theme": "^12.7.0",
53
53
  "@atlaskit/tokens": "^1.45.0",
54
54
  "@babel/runtime": "^7.0.0",