@atlaskit/onboarding 10.7.0 → 10.7.2

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,17 @@
1
1
  # @atlaskit/onboarding
2
2
 
3
+ ## 10.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4ba10567310`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ba10567310) - Internal changes.
8
+
9
+ ## 10.7.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`e0460d5d989`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e0460d5d989) - Usages of `process` are now guarded by a `typeof` check.
14
+
3
15
  ## 10.7.0
4
16
 
5
17
  ### Minor Changes
@@ -26,7 +26,8 @@ var _excluded = ["text", "key"],
26
26
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
27
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
28
28
  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); }; }
29
- 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
+ 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; } } /** @jsx jsx */
30
+ // TODO: DSP-1250 - use a composable API consistent with normal modal dialog
30
31
  /**
31
32
  * __Benefits modal__
32
33
  *
@@ -17,6 +17,7 @@ var _constants = require("@atlaskit/theme/constants");
17
17
  var _dialog = require("../styled/dialog");
18
18
  var _theme = require("./theme");
19
19
  var _excluded = ["text", "key"];
20
+ /** @jsx jsx */
20
21
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
22
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
22
23
  var bodyStyles = (0, _react2.css)({
@@ -27,7 +27,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
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.7.0";
30
+ var packageVersion = "10.7.2";
31
31
  var SpotlightDialog = /*#__PURE__*/function (_Component) {
32
32
  (0, _inherits2.default)(SpotlightDialog, _Component);
33
33
  var _super = _createSuper(SpotlightDialog);
@@ -103,7 +103,7 @@ var SpotlightManager = /*#__PURE__*/function (_PureComponent) {
103
103
  (0, _createClass2.default)(SpotlightManager, [{
104
104
  key: "componentDidMount",
105
105
  value: function componentDidMount() {
106
- if (process.env.NODE_ENV !== 'production' && !process.env.CI) {
106
+ if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && !process.env.CI) {
107
107
  if (this.props.component) {
108
108
  // eslint-disable-next-line no-console
109
109
  console.warn("Atlaskit: The SpotlightManager 'component' prop is deprecated. Please wrap the SpotlightManager in the component instead.");
@@ -11,7 +11,7 @@ var _colors = require("@atlaskit/theme/colors");
11
11
  var _components = require("@atlaskit/theme/components");
12
12
  var _constants = require("@atlaskit/theme/constants");
13
13
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
14
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /** @jsx jsx */
15
15
  var backgroundColor = (0, _components.themed)({
16
16
  light: "var(--ds-blanket, ".concat(_colors.N100A, ")"),
17
17
  dark: "var(--ds-blanket, ".concat(_colors.DN90A, ")")
@@ -22,10 +22,7 @@ var backgroundColor = (0, _components.themed)({
22
22
  var blanketStyles = (0, _react.css)({
23
23
  position: 'fixed',
24
24
  zIndex: _constants.layers.spotlight(),
25
- top: 0,
26
- right: 0,
27
- bottom: 0,
28
- left: 0,
25
+ inset: 0,
29
26
  transition: 'opacity 220ms'
30
27
  });
31
28
  /**
@@ -9,6 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _react = require("@emotion/react");
11
11
  var _excluded = ["alt"];
12
+ /** @jsx jsx */
12
13
  var imageStyles = (0, _react.css)({
13
14
  maxWidth: '100%',
14
15
  height: 'auto'
@@ -14,6 +14,7 @@ var _constants = require("@atlaskit/theme/constants");
14
14
  var _excluded = ["children", "bgColor", "radius", "style", "testId"],
15
15
  _excluded2 = ["children", "pulse"],
16
16
  _excluded3 = ["children", "pulse", "testId"];
17
+ /** @jsx jsx */
17
18
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
18
19
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
19
20
  // NOTE:
@@ -81,7 +82,9 @@ var targetOverlayStyles = (0, _react.css)({
81
82
  width: '100%',
82
83
  height: '100%',
83
84
  position: 'absolute',
85
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
84
86
  top: 0,
87
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
85
88
  left: 0
86
89
  });
87
90
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "10.7.0",
3
+ "version": "10.7.2",
4
4
  "sideEffects": false
5
5
  }
@@ -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.7.0";
10
+ const packageVersion = "10.7.2";
11
11
  class SpotlightDialog extends Component {
12
12
  constructor(...args) {
13
13
  super(...args);
@@ -67,7 +67,7 @@ export default class SpotlightManager extends PureComponent {
67
67
  })));
68
68
  }
69
69
  componentDidMount() {
70
- if (process.env.NODE_ENV !== 'production' && !process.env.CI) {
70
+ if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && !process.env.CI) {
71
71
  if (this.props.component) {
72
72
  // eslint-disable-next-line no-console
73
73
  console.warn(`Atlaskit: The SpotlightManager 'component' prop is deprecated. Please wrap the SpotlightManager in the component instead.`);
@@ -13,10 +13,7 @@ const backgroundColor = themed({
13
13
  const blanketStyles = css({
14
14
  position: 'fixed',
15
15
  zIndex: layers.spotlight(),
16
- top: 0,
17
- right: 0,
18
- bottom: 0,
19
- left: 0,
16
+ inset: 0,
20
17
  transition: 'opacity 220ms'
21
18
  });
22
19
  /**
@@ -65,7 +65,9 @@ const targetOverlayStyles = css({
65
65
  width: '100%',
66
66
  height: '100%',
67
67
  position: 'absolute',
68
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
68
69
  top: 0,
70
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
69
71
  left: 0
70
72
  });
71
73
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "10.7.0",
3
+ "version": "10.7.2",
4
4
  "sideEffects": false
5
5
  }
@@ -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.7.0";
20
+ var packageVersion = "10.7.2";
21
21
  var SpotlightDialog = /*#__PURE__*/function (_Component) {
22
22
  _inherits(SpotlightDialog, _Component);
23
23
  var _super = _createSuper(SpotlightDialog);
@@ -92,7 +92,7 @@ var SpotlightManager = /*#__PURE__*/function (_PureComponent) {
92
92
  _createClass(SpotlightManager, [{
93
93
  key: "componentDidMount",
94
94
  value: function componentDidMount() {
95
- if (process.env.NODE_ENV !== 'production' && !process.env.CI) {
95
+ if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && !process.env.CI) {
96
96
  if (this.props.component) {
97
97
  // eslint-disable-next-line no-console
98
98
  console.warn("Atlaskit: The SpotlightManager 'component' prop is deprecated. Please wrap the SpotlightManager in the component instead.");
@@ -16,10 +16,7 @@ var backgroundColor = themed({
16
16
  var blanketStyles = css({
17
17
  position: 'fixed',
18
18
  zIndex: layers.spotlight(),
19
- top: 0,
20
- right: 0,
21
- bottom: 0,
22
- left: 0,
19
+ inset: 0,
23
20
  transition: 'opacity 220ms'
24
21
  });
25
22
  /**
@@ -74,7 +74,9 @@ var targetOverlayStyles = css({
74
74
  width: '100%',
75
75
  height: '100%',
76
76
  position: 'absolute',
77
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
77
78
  top: 0,
79
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
78
80
  left: 0
79
81
  });
80
82
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "10.7.0",
3
+ "version": "10.7.2",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "10.7.0",
3
+ "version": "10.7.2",
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/"
@@ -32,7 +32,7 @@
32
32
  "@atlaskit/modal-dialog": "^12.4.0",
33
33
  "@atlaskit/popper": "^5.4.0",
34
34
  "@atlaskit/portal": "^4.0.0",
35
- "@atlaskit/theme": "^12.3.0",
35
+ "@atlaskit/theme": "^12.4.0",
36
36
  "@atlaskit/tokens": "^1.2.0",
37
37
  "@babel/runtime": "^7.0.0",
38
38
  "@emotion/react": "^11.7.1",
package/report.api.md CHANGED
@@ -15,8 +15,6 @@
15
15
  <!--SECTION START: Main Entry Types-->
16
16
 
17
17
  ```ts
18
- /// <reference types="react" />
19
-
20
18
  import { Component } from 'react';
21
19
  import { ComponentType } from 'react';
22
20
  import { CustomThemeButtonProps } from '@atlaskit/button/types';
@@ -50,6 +48,7 @@ type BaseProps = React.HTMLAttributes<HTMLDivElement> & {
50
48
  radius?: number;
51
49
  className?: string;
52
50
  testId?: string;
51
+ children?: ReactNode;
53
52
  };
54
53
 
55
54
  // @public @deprecated (undocumented)