@atlaskit/share 4.20.3 → 4.20.5

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,19 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 4.20.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#154149](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/154149)
8
+ [`cc82c0612ae26`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cc82c0612ae26) -
9
+ React 18 compatibility
10
+
11
+ ## 4.20.4
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 4.20.3
4
18
 
5
19
  ### Patch Changes
@@ -6,9 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
- var _react = _interopRequireDefault(require("react"));
9
+ var _react = _interopRequireWildcard(require("react"));
10
10
  var _react2 = require("@emotion/react");
11
- var _reactLooselyLazy = require("react-loosely-lazy");
12
11
  var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
13
12
  var _ShareFormWrapper = require("../ShareFormWrapper");
14
13
  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); }
@@ -23,13 +22,11 @@ var spinnerWrapperStyles = (0, _react2.css)({
23
22
  justifyContent: 'center',
24
23
  alignContent: 'center'
25
24
  });
26
- var LazyShareFormLazy = (0, _reactLooselyLazy.lazyForPaint)(function () {
25
+ var LazyShareFormLazy = /*#__PURE__*/(0, _react.lazy)(function () {
27
26
  return Promise.resolve().then(function () {
28
27
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_share-form" */
29
28
  './LazyShareForm'));
30
29
  });
31
- }, {
32
- ssr: false
33
30
  });
34
31
  var LoadingDialog = function LoadingDialog(_ref) {
35
32
  var shareFormTitle = _ref.shareFormTitle,
@@ -52,7 +49,7 @@ var LoadingDialog = function LoadingDialog(_ref) {
52
49
  }, (0, _react2.jsx)(_spinner.default, null)));
53
50
  };
54
51
  var _default = exports.default = function _default(props) {
55
- return (0, _react2.jsx)(_reactLooselyLazy.LazySuspense, {
52
+ return (0, _react2.jsx)(_react.Suspense, {
56
53
  fallback: (0, _react2.jsx)(LoadingDialog, {
57
54
  shareFormTitle: props.shareFormTitle,
58
55
  showTitle: props.showTitle,
@@ -13,7 +13,7 @@ var buildAttributes = function buildAttributes() {
13
13
  var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14
14
  return _objectSpread({
15
15
  packageName: "@atlaskit/share",
16
- packageVersion: "4.20.3"
16
+ packageVersion: "4.20.5"
17
17
  }, attributes);
18
18
  };
19
19
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -2,11 +2,10 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import React from 'react';
5
+ import React, { lazy, Suspense } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
9
- import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
10
9
  import Spinner from '@atlaskit/spinner';
11
10
  import { ShareFormWrapper } from '../ShareFormWrapper';
12
11
  const spinnerWrapperStyles = css({
@@ -16,10 +15,8 @@ const spinnerWrapperStyles = css({
16
15
  justifyContent: 'center',
17
16
  alignContent: 'center'
18
17
  });
19
- const LazyShareFormLazy = lazyForPaint(() => import( /* webpackChunkName: "@atlaskit-internal_share-form" */
20
- './LazyShareForm'), {
21
- ssr: false
22
- });
18
+ const LazyShareFormLazy = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-internal_share-form" */
19
+ './LazyShareForm'));
23
20
  const LoadingDialog = ({
24
21
  shareFormTitle,
25
22
  showTitle,
@@ -41,7 +38,7 @@ const LoadingDialog = ({
41
38
  css: spinnerWrapperStyles
42
39
  }, jsx(Spinner, null)));
43
40
  };
44
- export default (props => jsx(LazySuspense, {
41
+ export default (props => jsx(Suspense, {
45
42
  fallback: jsx(LoadingDialog, {
46
43
  shareFormTitle: props.shareFormTitle,
47
44
  showTitle: props.showTitle,
@@ -1,7 +1,7 @@
1
1
  import { isEmail, isExternalUser, isTeam, isUser } from '@atlaskit/smart-user-picker';
2
2
  const buildAttributes = (attributes = {}) => ({
3
3
  packageName: "@atlaskit/share",
4
- packageVersion: "4.20.3",
4
+ packageVersion: "4.20.5",
5
5
  ...attributes
6
6
  });
7
7
  const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
@@ -2,11 +2,10 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import React from 'react';
5
+ import React, { lazy, Suspense } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
9
- import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
10
9
  import Spinner from '@atlaskit/spinner';
11
10
  import { ShareFormWrapper } from '../ShareFormWrapper';
12
11
  var spinnerWrapperStyles = css({
@@ -16,11 +15,9 @@ var spinnerWrapperStyles = css({
16
15
  justifyContent: 'center',
17
16
  alignContent: 'center'
18
17
  });
19
- var LazyShareFormLazy = lazyForPaint(function () {
18
+ var LazyShareFormLazy = /*#__PURE__*/lazy(function () {
20
19
  return import( /* webpackChunkName: "@atlaskit-internal_share-form" */
21
20
  './LazyShareForm');
22
- }, {
23
- ssr: false
24
21
  });
25
22
  var LoadingDialog = function LoadingDialog(_ref) {
26
23
  var shareFormTitle = _ref.shareFormTitle,
@@ -43,7 +40,7 @@ var LoadingDialog = function LoadingDialog(_ref) {
43
40
  }, jsx(Spinner, null)));
44
41
  };
45
42
  export default (function (props) {
46
- return jsx(LazySuspense, {
43
+ return jsx(Suspense, {
47
44
  fallback: jsx(LoadingDialog, {
48
45
  shareFormTitle: props.shareFormTitle,
49
46
  showTitle: props.showTitle,
@@ -6,7 +6,7 @@ var buildAttributes = function buildAttributes() {
6
6
  var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7
7
  return _objectSpread({
8
8
  packageName: "@atlaskit/share",
9
- packageVersion: "4.20.3"
9
+ packageVersion: "4.20.5"
10
10
  }, attributes);
11
11
  };
12
12
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.20.3",
3
+ "version": "4.20.5",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -22,6 +22,7 @@
22
22
  },
23
23
  "atlaskit:src": "src/index.ts",
24
24
  "atlassian": {
25
+ "runReact18": true,
25
26
  "team": "People and Teams Collective",
26
27
  "website": {
27
28
  "name": "Share"
@@ -48,27 +49,25 @@
48
49
  "@atlaskit/popup": "^1.28.0",
49
50
  "@atlaskit/portal": "^4.9.0",
50
51
  "@atlaskit/primitives": "^12.2.0",
51
- "@atlaskit/smart-user-picker": "^6.10.0",
52
+ "@atlaskit/smart-user-picker": "^6.11.0",
52
53
  "@atlaskit/spinner": "^16.3.0",
53
54
  "@atlaskit/tabs": "^16.5.0",
54
55
  "@atlaskit/textarea": "^5.6.0",
55
- "@atlaskit/theme": "^13.1.0",
56
+ "@atlaskit/theme": "^14.0.0",
56
57
  "@atlaskit/tokens": "^2.0.0",
57
58
  "@atlaskit/tooltip": "^18.8.0",
58
59
  "@atlaskit/ufo": "^0.3.0",
59
- "@atlaskit/user-picker": "^10.25.0",
60
+ "@atlaskit/user-picker": "^10.26.0",
60
61
  "@atlaskit/util-service-support": "^6.2.0",
61
62
  "@babel/runtime": "^7.0.0",
62
63
  "@emotion/react": "^11.7.1",
63
- "@react-loosely-lazy/manifest": "^1.0.0",
64
64
  "fast-deep-equal": "^3.1.1",
65
65
  "memoize-one": "^6.0.0",
66
66
  "react-intl-next": "npm:react-intl@^5.18.1",
67
- "react-loosely-lazy": "^1.0.0",
68
67
  "tiny-invariant": "^1.2.0"
69
68
  },
70
69
  "peerDependencies": {
71
- "react": "^16.8.0"
70
+ "react": "^16.8.0 || ^17.0.0 || ^18.2.0"
72
71
  },
73
72
  "devDependencies": {
74
73
  "@atlaskit/editor-test-helpers": "^19.1.0",