@atlaskit/onboarding 12.1.5 → 12.1.7

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,21 @@
1
1
  # @atlaskit/onboarding
2
2
 
3
+ ## 12.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#167181](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/167181)
8
+ [`5bc9dc0796474`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5bc9dc0796474) -
9
+ Remove `react-focus-lock-next` dependency
10
+
11
+ ## 12.1.6
12
+
13
+ ### Patch Changes
14
+
15
+ - [#166087](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166087)
16
+ [`3ab7d7da348ab`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3ab7d7da348ab) -
17
+ Adds side-effect config to support Compiled css extraction in third-party apps
18
+
3
19
  ## 12.1.5
4
20
 
5
21
  ### Patch Changes
@@ -15,8 +15,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
15
15
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
16
  var _react = _interopRequireWildcard(require("react"));
17
17
  var _reactFocusLock = _interopRequireDefault(require("react-focus-lock"));
18
- var _reactFocusLockNext = _interopRequireDefault(require("react-focus-lock-next"));
19
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
18
  var _popper = require("@atlaskit/popper");
21
19
  var _primitives = require("@atlaskit/primitives");
22
20
  var _dialog = require("../styled/dialog");
@@ -28,7 +26,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
28
26
  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; }
29
27
  function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
30
28
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
31
- var FocusLock = (0, _platformFeatureFlags.fg)('platform_dst_onboarding-bump-react-focus-lock') ? _reactFocusLockNext.default : _reactFocusLock.default;
32
29
  /**
33
30
  * __Spotlight dialog__
34
31
  *
@@ -132,7 +129,7 @@ var SpotlightDialogComponent = /*#__PURE__*/function (_Component) {
132
129
  return /*#__PURE__*/_react.default.createElement(_valueChanged.default, {
133
130
  value: dialogWidth,
134
131
  onChange: update
135
- }, /*#__PURE__*/_react.default.createElement(FocusLock, {
132
+ }, /*#__PURE__*/_react.default.createElement(_reactFocusLock.default, {
136
133
  disabled: focusLockDisabled,
137
134
  returnFocus: false,
138
135
  autoFocus: true
@@ -1,14 +1,11 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React, { Component } from 'react';
3
- import FocusLockOld from 'react-focus-lock';
4
- import FocusLockNext from 'react-focus-lock-next';
5
- import { fg } from '@atlaskit/platform-feature-flags';
3
+ import FocusLock from 'react-focus-lock';
6
4
  import { Popper } from '@atlaskit/popper';
7
5
  import { Box } from '@atlaskit/primitives';
8
6
  import { DialogImage } from '../styled/dialog';
9
7
  import SpotlightCard from './spotlight-card';
10
8
  import ValueChanged from './value-changed';
11
- const FocusLock = fg('platform_dst_onboarding-bump-react-focus-lock') ? FocusLockNext : FocusLockOld;
12
9
  /**
13
10
  * __Spotlight dialog__
14
11
  *
@@ -10,15 +10,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
10
10
  function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
11
11
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
12
  import React, { Component } from 'react';
13
- import FocusLockOld from 'react-focus-lock';
14
- import FocusLockNext from 'react-focus-lock-next';
15
- import { fg } from '@atlaskit/platform-feature-flags';
13
+ import FocusLock from 'react-focus-lock';
16
14
  import { Popper } from '@atlaskit/popper';
17
15
  import { Box } from '@atlaskit/primitives';
18
16
  import { DialogImage } from '../styled/dialog';
19
17
  import SpotlightCard from './spotlight-card';
20
18
  import ValueChanged from './value-changed';
21
- var FocusLock = fg('platform_dst_onboarding-bump-react-focus-lock') ? FocusLockNext : FocusLockOld;
22
19
  /**
23
20
  * __Spotlight dialog__
24
21
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "12.1.5",
3
+ "version": "12.1.7",
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/"
@@ -20,7 +20,9 @@
20
20
  ]
21
21
  }
22
22
  },
23
- "sideEffects": false,
23
+ "sideEffects": [
24
+ "**/*.compiled.css"
25
+ ],
24
26
  "atlaskit:src": "src/index.tsx",
25
27
  "af:exports": {
26
28
  ".": "./src/index.tsx",
@@ -47,14 +49,13 @@
47
49
  "@atlaskit/portal": "^4.9.0",
48
50
  "@atlaskit/primitives": "^13.2.0",
49
51
  "@atlaskit/theme": "^14.0.0",
50
- "@atlaskit/tokens": "^2.2.0",
52
+ "@atlaskit/tokens": "^2.3.0",
51
53
  "@babel/runtime": "^7.0.0",
52
54
  "@emotion/react": "^11.7.1",
53
55
  "bind-event-listener": "^3.0.0",
54
56
  "exenv": "^1.2.2",
55
57
  "memoize-one": "^6.0.0",
56
58
  "react-focus-lock": "^2.9.5",
57
- "react-focus-lock-next": "npm:react-focus-lock@^2.13.2",
58
59
  "react-node-resolver": "^1.0.1",
59
60
  "react-scrolllock": "^5.0.1",
60
61
  "react-transition-group": "^4.4.1",
@@ -91,9 +92,6 @@
91
92
  "platform_design_system_team_spotlight_layering": {
92
93
  "type": "boolean"
93
94
  },
94
- "platform_dst_onboarding-bump-react-focus-lock": {
95
- "type": "boolean"
96
- },
97
95
  "design-system-closed-all-when-click-outside": {
98
96
  "type": "boolean",
99
97
  "referenceOnly": true
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/types.js",
4
4
  "module": "../dist/esm/types.js",
5
5
  "module:es2019": "../dist/es2019/types.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/types.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {