@atlaskit/onboarding 14.5.1 → 14.5.3

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
+ ## 14.5.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 14.5.2
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 14.5.1
4
16
 
5
17
  ### Patch Changes
@@ -38,6 +38,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
38
38
  *
39
39
  * @internal
40
40
  */
41
+ // eslint-disable-next-line @repo/internal/react/no-class-components
41
42
  var SpotlightInner = /*#__PURE__*/function (_React$Component) {
42
43
  function SpotlightInner() {
43
44
  var _this;
@@ -191,7 +192,7 @@ var SpotlightInner = /*#__PURE__*/function (_React$Component) {
191
192
  });
192
193
  }
193
194
  }]);
194
- }(_react.default.Component);
195
+ }(_react.default.Component); // eslint-disable-next-line @repo/internal/react/require-jsdoc
195
196
  (0, _defineProperty2.default)(SpotlightInner, "defaultProps", {
196
197
  dialogWidth: 400,
197
198
  pulse: true
@@ -24,16 +24,16 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
24
24
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
25
25
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
26
26
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
27
- var _createContext = /*#__PURE__*/(0, _react.createContext)(undefined),
28
- TargetConsumer = exports.TargetConsumer = _createContext.Consumer,
29
- TargetProvider = _createContext.Provider;
27
+ var dest = /*#__PURE__*/(0, _react.createContext)(undefined);
28
+ var TargetConsumer = exports.TargetConsumer = dest.Consumer;
29
+ var TargetProvider = dest.Provider;
30
30
  var SpotlightContext = exports.SpotlightContext = /*#__PURE__*/(0, _react.createContext)({
31
31
  opened: _noop.default,
32
32
  closed: _noop.default,
33
33
  targets: {}
34
34
  });
35
- var SpotlightStateConsumer = exports.SpotlightConsumer = SpotlightContext.Consumer,
36
- SpotlightStateProvider = SpotlightContext.Provider;
35
+ var SpotlightStateConsumer = exports.SpotlightConsumer = SpotlightContext.Consumer;
36
+ var SpotlightStateProvider = SpotlightContext.Provider;
37
37
  var Container = function Container(_ref) {
38
38
  var Wrapper = _ref.component,
39
39
  children = _ref.children;
@@ -41,6 +41,7 @@ var hasChildren = function hasChildren(children) {
41
41
  *
42
42
  * @deprecated Use `@atlaskit/spotlight` instead.
43
43
  */
44
+ // eslint-disable-next-line @repo/internal/react/no-class-components
44
45
  var SpotlightTransition = /*#__PURE__*/function (_React$Component) {
45
46
  function SpotlightTransition() {
46
47
  var _this;
@@ -89,4 +90,6 @@ var SpotlightTransition = /*#__PURE__*/function (_React$Component) {
89
90
  * @internal
90
91
  */
91
92
  var SpotlightTransitionConsumer = exports.SpotlightTransitionConsumer = SpotlightTransitionContext.Consumer;
93
+
94
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
92
95
  var _default = exports.default = SpotlightTransition;
@@ -17,6 +17,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
17
17
  // On update, it checks whether the current value prop is equal to the previous value prop.
18
18
  // If they are different, it calls the onChange function.
19
19
  // We use this for updating Popper when the SpotlightDialog width changes.
20
+ // eslint-disable-next-line @repo/internal/react/no-class-components
20
21
  var ValueChanged = exports.default = /*#__PURE__*/function (_React$Component) {
21
22
  function ValueChanged() {
22
23
  (0, _classCallCheck2.default)(this, ValueChanged);
@@ -1,4 +1,4 @@
1
- ._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c81af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._12l21b66{margin-inline-end:var(--ds-space-050,4px)}
3
3
  ._1bah1h6o{justify-content:center}
4
4
  ._1bsb1osq{width:100%}
@@ -42,7 +42,7 @@ var ModalHeading = exports.ModalHeading = function ModalHeading(_ref2) {
42
42
  id = _ref2.id;
43
43
  return /*#__PURE__*/React.createElement("h1", {
44
44
  id: id,
45
- className: (0, _runtime.ax)(["_11c8lodh _syaz1kw7 _6rthu2gc"])
45
+ className: (0, _runtime.ax)(["_11c81af2 _syaz1kw7 _6rthu2gc"])
46
46
  }, children);
47
47
  };
48
48
 
@@ -8,6 +8,7 @@ exports.ElementBox = void 0;
8
8
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
9
  var _react = require("react");
10
10
  var _bindEventListener = require("bind-event-listener");
11
+ var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
11
12
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
13
  // The minimum interval between position updates in milliseconds
13
14
  var POSITION_UPDATE_INTERVAL = 200;
@@ -59,7 +60,7 @@ var useResizeAwareElementBox = function useResizeAwareElementBox(element, update
59
60
  listener: onResize
60
61
  });
61
62
  }
62
- return function () {};
63
+ return _noop.default;
63
64
  }, [element, updateMethod]);
64
65
  return box;
65
66
  };
@@ -20,6 +20,7 @@ import { SpotlightTransitionConsumer } from './spotlight-transition';
20
20
  *
21
21
  * @internal
22
22
  */
23
+ // eslint-disable-next-line @repo/internal/react/no-class-components
23
24
  class SpotlightInner extends React.Component {
24
25
  constructor(...args) {
25
26
  super(...args);
@@ -159,6 +160,8 @@ class SpotlightInner extends React.Component {
159
160
  }))))), /*#__PURE__*/React.createElement(ScrollLock, null)));
160
161
  }
161
162
  }
163
+
164
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
162
165
  _defineProperty(SpotlightInner, "defaultProps", {
163
166
  dialogWidth: 400,
164
167
  pulse: true
@@ -6,19 +6,16 @@ import { ExitingPersistence, FadeIn } from '@atlaskit/motion';
6
6
  import { fg } from '@atlaskit/platform-feature-flags';
7
7
  import Portal from '@atlaskit/portal';
8
8
  import Blanket from '../styled/blanket';
9
- const {
10
- Consumer: TargetConsumer,
11
- Provider: TargetProvider
12
- } = /*#__PURE__*/createContext(undefined);
9
+ const dest = /*#__PURE__*/createContext(undefined);
10
+ const TargetConsumer = dest.Consumer;
11
+ const TargetProvider = dest.Provider;
13
12
  const SpotlightContext = /*#__PURE__*/createContext({
14
13
  opened: noop,
15
14
  closed: noop,
16
15
  targets: {}
17
16
  });
18
- const {
19
- Consumer: SpotlightStateConsumer,
20
- Provider: SpotlightStateProvider
21
- } = SpotlightContext;
17
+ const SpotlightStateConsumer = SpotlightContext.Consumer;
18
+ const SpotlightStateProvider = SpotlightContext.Provider;
22
19
  export { TargetConsumer };
23
20
  export { SpotlightContext, SpotlightStateConsumer as SpotlightConsumer };
24
21
  const Container = ({
@@ -23,6 +23,7 @@ const hasChildren = children => {
23
23
  *
24
24
  * @deprecated Use `@atlaskit/spotlight` instead.
25
25
  */
26
+ // eslint-disable-next-line @repo/internal/react/no-class-components
26
27
  class SpotlightTransition extends React.Component {
27
28
  constructor(...args) {
28
29
  super(...args);
@@ -62,4 +63,6 @@ class SpotlightTransition extends React.Component {
62
63
  * @internal
63
64
  */
64
65
  export const SpotlightTransitionConsumer = SpotlightTransitionContext.Consumer;
66
+
67
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
65
68
  export default SpotlightTransition;
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  // On update, it checks whether the current value prop is equal to the previous value prop.
4
4
  // If they are different, it calls the onChange function.
5
5
  // We use this for updating Popper when the SpotlightDialog width changes.
6
+ // eslint-disable-next-line @repo/internal/react/no-class-components
6
7
  export default class ValueChanged extends React.Component {
7
8
  componentDidUpdate(prevProps) {
8
9
  if (prevProps.value !== this.props.value) {
@@ -1,4 +1,4 @@
1
- ._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c81af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._12l21b66{margin-inline-end:var(--ds-space-050,4px)}
3
3
  ._1bah1h6o{justify-content:center}
4
4
  ._1bsb1osq{width:100%}
@@ -34,7 +34,7 @@ export const ModalHeading = ({
34
34
  }) => {
35
35
  return /*#__PURE__*/React.createElement("h1", {
36
36
  id: id,
37
- className: ax(["_11c8lodh _syaz1kw7 _6rthu2gc"])
37
+ className: ax(["_11c81af2 _syaz1kw7 _6rthu2gc"])
38
38
  }, children);
39
39
  };
40
40
 
@@ -1,5 +1,6 @@
1
1
  import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
2
2
  import { bind } from 'bind-event-listener';
3
+ import __noop from '@atlaskit/ds-lib/noop';
3
4
  import { fg } from '@atlaskit/platform-feature-flags';
4
5
  // The minimum interval between position updates in milliseconds
5
6
  const POSITION_UPDATE_INTERVAL = 200;
@@ -49,7 +50,7 @@ const useResizeAwareElementBox = (element, updateMethod) => {
49
50
  listener: onResize
50
51
  });
51
52
  }
52
- return () => {};
53
+ return __noop;
53
54
  }, [element, updateMethod]);
54
55
  return box;
55
56
  };
@@ -31,6 +31,7 @@ import { SpotlightTransitionConsumer } from './spotlight-transition';
31
31
  *
32
32
  * @internal
33
33
  */
34
+ // eslint-disable-next-line @repo/internal/react/no-class-components
34
35
  var SpotlightInner = /*#__PURE__*/function (_React$Component) {
35
36
  function SpotlightInner() {
36
37
  var _this;
@@ -184,7 +185,7 @@ var SpotlightInner = /*#__PURE__*/function (_React$Component) {
184
185
  });
185
186
  }
186
187
  }]);
187
- }(React.Component);
188
+ }(React.Component); // eslint-disable-next-line @repo/internal/react/require-jsdoc
188
189
  _defineProperty(SpotlightInner, "defaultProps", {
189
190
  dialogWidth: 400,
190
191
  pulse: true
@@ -15,16 +15,16 @@ import { ExitingPersistence, FadeIn } from '@atlaskit/motion';
15
15
  import { fg } from '@atlaskit/platform-feature-flags';
16
16
  import Portal from '@atlaskit/portal';
17
17
  import Blanket from '../styled/blanket';
18
- var _createContext = /*#__PURE__*/createContext(undefined),
19
- TargetConsumer = _createContext.Consumer,
20
- TargetProvider = _createContext.Provider;
18
+ var dest = /*#__PURE__*/createContext(undefined);
19
+ var TargetConsumer = dest.Consumer;
20
+ var TargetProvider = dest.Provider;
21
21
  var SpotlightContext = /*#__PURE__*/createContext({
22
22
  opened: noop,
23
23
  closed: noop,
24
24
  targets: {}
25
25
  });
26
- var SpotlightStateConsumer = SpotlightContext.Consumer,
27
- SpotlightStateProvider = SpotlightContext.Provider;
26
+ var SpotlightStateConsumer = SpotlightContext.Consumer;
27
+ var SpotlightStateProvider = SpotlightContext.Provider;
28
28
  export { TargetConsumer };
29
29
  export { SpotlightContext, SpotlightStateConsumer as SpotlightConsumer };
30
30
  var Container = function Container(_ref) {
@@ -32,6 +32,7 @@ var hasChildren = function hasChildren(children) {
32
32
  *
33
33
  * @deprecated Use `@atlaskit/spotlight` instead.
34
34
  */
35
+ // eslint-disable-next-line @repo/internal/react/no-class-components
35
36
  var SpotlightTransition = /*#__PURE__*/function (_React$Component) {
36
37
  function SpotlightTransition() {
37
38
  var _this;
@@ -80,4 +81,6 @@ var SpotlightTransition = /*#__PURE__*/function (_React$Component) {
80
81
  * @internal
81
82
  */
82
83
  export var SpotlightTransitionConsumer = SpotlightTransitionContext.Consumer;
84
+
85
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
83
86
  export default SpotlightTransition;
@@ -10,6 +10,7 @@ import React from 'react';
10
10
  // On update, it checks whether the current value prop is equal to the previous value prop.
11
11
  // If they are different, it calls the onChange function.
12
12
  // We use this for updating Popper when the SpotlightDialog width changes.
13
+ // eslint-disable-next-line @repo/internal/react/no-class-components
13
14
  var ValueChanged = /*#__PURE__*/function (_React$Component) {
14
15
  function ValueChanged() {
15
16
  _classCallCheck(this, ValueChanged);
@@ -1,4 +1,4 @@
1
- ._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c81af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._12l21b66{margin-inline-end:var(--ds-space-050,4px)}
3
3
  ._1bah1h6o{justify-content:center}
4
4
  ._1bsb1osq{width:100%}
@@ -34,7 +34,7 @@ export var ModalHeading = function ModalHeading(_ref2) {
34
34
  id = _ref2.id;
35
35
  return /*#__PURE__*/React.createElement("h1", {
36
36
  id: id,
37
- className: ax(["_11c8lodh _syaz1kw7 _6rthu2gc"])
37
+ className: ax(["_11c81af2 _syaz1kw7 _6rthu2gc"])
38
38
  }, children);
39
39
  };
40
40
 
@@ -1,6 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
3
3
  import { bind } from 'bind-event-listener';
4
+ import __noop from '@atlaskit/ds-lib/noop';
4
5
  import { fg } from '@atlaskit/platform-feature-flags';
5
6
  // The minimum interval between position updates in milliseconds
6
7
  var POSITION_UPDATE_INTERVAL = 200;
@@ -52,7 +53,7 @@ var useResizeAwareElementBox = function useResizeAwareElementBox(element, update
52
53
  listener: onResize
53
54
  });
54
55
  }
55
- return function () {};
56
+ return __noop;
56
57
  }, [element, updateMethod]);
57
58
  return box;
58
59
  };
@@ -1,4 +1,5 @@
1
1
  import React, { type ElementType, PureComponent, type ReactNode } from 'react';
2
+ import { type MemoizedFn } from 'memoize-one';
2
3
  export type TargetRef = (element: HTMLElement | null | undefined) => void;
3
4
  export type GetTargetRef = (
4
5
  /**
@@ -73,7 +74,7 @@ export default class SpotlightManager extends PureComponent<SpotlightManagerProp
73
74
  getTargetRef: (name: string) => (element: HTMLElement | null | undefined) => void;
74
75
  spotlightOpen: () => void;
75
76
  spotlightClose: () => void;
76
- getStateProviderValue: import("memoize-one").MemoizedFn<(this: any, targets: any) => {
77
+ getStateProviderValue: MemoizedFn<(this: any, targets: any) => {
77
78
  opened: () => void;
78
79
  closed: () => void;
79
80
  targets: any;
@@ -1,4 +1,5 @@
1
1
  import React, { type ElementType, PureComponent, type ReactNode } from 'react';
2
+ import { type MemoizedFn } from 'memoize-one';
2
3
  export type TargetRef = (element: HTMLElement | null | undefined) => void;
3
4
  export type GetTargetRef = (
4
5
  /**
@@ -73,7 +74,7 @@ export default class SpotlightManager extends PureComponent<SpotlightManagerProp
73
74
  getTargetRef: (name: string) => (element: HTMLElement | null | undefined) => void;
74
75
  spotlightOpen: () => void;
75
76
  spotlightClose: () => void;
76
- getStateProviderValue: import("memoize-one").MemoizedFn<(this: any, targets: any) => {
77
+ getStateProviderValue: MemoizedFn<(this: any, targets: any) => {
77
78
  opened: () => void;
78
79
  closed: () => void;
79
80
  targets: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "14.5.1",
3
+ "version": "14.5.3",
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/"
@@ -56,14 +56,14 @@
56
56
  "@atlaskit/css": "^0.19.0",
57
57
  "@atlaskit/ds-lib": "^5.3.0",
58
58
  "@atlaskit/heading": "^5.2.0",
59
- "@atlaskit/layering": "^3.5.0",
60
- "@atlaskit/modal-dialog": "^14.9.0",
59
+ "@atlaskit/layering": "^3.6.0",
60
+ "@atlaskit/modal-dialog": "^14.10.0",
61
61
  "@atlaskit/motion": "^5.3.0",
62
62
  "@atlaskit/platform-feature-flags": "^1.1.0",
63
63
  "@atlaskit/popper": "^7.1.0",
64
- "@atlaskit/portal": "^5.1.0",
65
- "@atlaskit/primitives": "^17.0.0",
66
- "@atlaskit/tokens": "^9.1.0",
64
+ "@atlaskit/portal": "^5.2.0",
65
+ "@atlaskit/primitives": "^18.0.0",
66
+ "@atlaskit/tokens": "^11.0.0",
67
67
  "@babel/runtime": "^7.0.0",
68
68
  "@compiled/react": "^0.18.6",
69
69
  "bind-event-listener": "^3.0.0",
@@ -84,8 +84,7 @@
84
84
  "@af/visual-regression": "workspace:^",
85
85
  "@atlaskit/theme": "^21.0.0",
86
86
  "@atlassian/ssr-tests": "workspace:^",
87
- "@testing-library/react": "^13.4.0",
88
- "@testing-library/react-hooks": "^8.0.1",
87
+ "@testing-library/react": "^16.3.0",
89
88
  "@testing-library/user-event": "^14.4.3",
90
89
  "@types/exenv": "^1.2.0",
91
90
  "@types/react-node-resolver": "^2.0.0",