@atlaskit/editor-plugin-help-dialog 19.0.2 → 19.1.1
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,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-help-dialog
|
|
2
2
|
|
|
3
|
+
## 19.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 19.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`e8a5fc45d426e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e8a5fc45d426e) -
|
|
14
|
+
Migrate the editor help dialog loader to react-loosely-lazy behind the
|
|
15
|
+
`platform_editor_loosely_lazy_migration` experiment.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 19.0.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -6,9 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.HelpDialogLoader = void 0;
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
10
|
var _reactLoadable = _interopRequireDefault(require("react-loadable"));
|
|
10
|
-
|
|
11
|
-
var
|
|
11
|
+
var _reactLooselyLazy = require("react-loosely-lazy");
|
|
12
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } // oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
14
|
+
var HelpDialogLoadable = (0, _reactLoadable.default)({
|
|
12
15
|
loader: function loader() {
|
|
13
16
|
return Promise.resolve().then(function () {
|
|
14
17
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-core-helpdialog" */
|
|
@@ -20,4 +23,23 @@ var HelpDialogLoader = exports.HelpDialogLoader = (0, _reactLoadable.default)({
|
|
|
20
23
|
loading: function loading() {
|
|
21
24
|
return null;
|
|
22
25
|
}
|
|
23
|
-
});
|
|
26
|
+
});
|
|
27
|
+
var HelpDialogLazy = (0, _reactLooselyLazy.lazyForPaint)(function () {
|
|
28
|
+
return Promise.resolve().then(function () {
|
|
29
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-core-helpdialog" */
|
|
30
|
+
'./index'));
|
|
31
|
+
}).then(function (mod) {
|
|
32
|
+
return mod.default;
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
var HelpDialogLoader = exports.HelpDialogLoader = function HelpDialogLoader(props) {
|
|
36
|
+
return (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/_react.default.createElement(_reactLooselyLazy.LazySuspense, {
|
|
37
|
+
fallback: null
|
|
38
|
+
}, /*#__PURE__*/_react.default.createElement(HelpDialogLazy, props)) :
|
|
39
|
+
/*#__PURE__*/
|
|
40
|
+
/* eslint-disable-next-line react/jsx-props-no-spreading -- forward the loader props to the dialog */
|
|
41
|
+
_react.default.createElement(HelpDialogLoadable, props);
|
|
42
|
+
};
|
|
43
|
+
HelpDialogLoader.preload = function () {
|
|
44
|
+
return (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_loosely_lazy_migration') ? HelpDialogLazy.preload() : HelpDialogLoadable.preload();
|
|
45
|
+
};
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import Loadable from 'react-loadable';
|
|
2
|
-
|
|
3
|
+
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
4
|
+
import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
|
|
5
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
|
+
const HelpDialogLoadable = Loadable({
|
|
3
7
|
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-core-helpdialog" */
|
|
4
8
|
'./index').then(mod => mod.default),
|
|
5
9
|
loading: () => null
|
|
6
|
-
});
|
|
10
|
+
});
|
|
11
|
+
const HelpDialogLazy = lazyForPaint(() => import( /* webpackChunkName: "@atlaskit-internal_editor-core-helpdialog" */
|
|
12
|
+
'./index').then(mod => mod.default));
|
|
13
|
+
export const HelpDialogLoader = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
14
|
+
fallback: null
|
|
15
|
+
}, /*#__PURE__*/React.createElement(HelpDialogLazy, props)) :
|
|
16
|
+
/*#__PURE__*/
|
|
17
|
+
/* eslint-disable-next-line react/jsx-props-no-spreading -- forward the loader props to the dialog */
|
|
18
|
+
React.createElement(HelpDialogLoadable, props);
|
|
19
|
+
HelpDialogLoader.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? HelpDialogLazy.preload() : HelpDialogLoadable.preload();
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import Loadable from 'react-loadable';
|
|
2
|
-
|
|
3
|
+
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
4
|
+
import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
|
|
5
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
|
+
var HelpDialogLoadable = Loadable({
|
|
3
7
|
loader: function loader() {
|
|
4
8
|
return import( /* webpackChunkName: "@atlaskit-internal_editor-core-helpdialog" */
|
|
5
9
|
'./index').then(function (mod) {
|
|
@@ -9,4 +13,21 @@ export var HelpDialogLoader = Loadable({
|
|
|
9
13
|
loading: function loading() {
|
|
10
14
|
return null;
|
|
11
15
|
}
|
|
12
|
-
});
|
|
16
|
+
});
|
|
17
|
+
var HelpDialogLazy = lazyForPaint(function () {
|
|
18
|
+
return import( /* webpackChunkName: "@atlaskit-internal_editor-core-helpdialog" */
|
|
19
|
+
'./index').then(function (mod) {
|
|
20
|
+
return mod.default;
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
export var HelpDialogLoader = function HelpDialogLoader(props) {
|
|
24
|
+
return isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
25
|
+
fallback: null
|
|
26
|
+
}, /*#__PURE__*/React.createElement(HelpDialogLazy, props)) :
|
|
27
|
+
/*#__PURE__*/
|
|
28
|
+
/* eslint-disable-next-line react/jsx-props-no-spreading -- forward the loader props to the dialog */
|
|
29
|
+
React.createElement(HelpDialogLoadable, props);
|
|
30
|
+
};
|
|
31
|
+
HelpDialogLoader.preload = function () {
|
|
32
|
+
return isExperimentEnabled('platform_editor_loosely_lazy_migration') ? HelpDialogLazy.preload() : HelpDialogLoadable.preload();
|
|
33
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import Loadable from 'react-loadable';
|
|
1
|
+
import { type ComponentType, type PropsWithChildren } from 'react';
|
|
3
2
|
import type { HelpDialogProps } from './index';
|
|
4
|
-
export declare const HelpDialogLoader: ComponentType<PropsWithChildren<HelpDialogProps>> &
|
|
3
|
+
export declare const HelpDialogLoader: ComponentType<PropsWithChildren<HelpDialogProps>> & {
|
|
4
|
+
preload: () => unknown;
|
|
5
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-help-dialog",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.1.1",
|
|
4
4
|
"description": "Help Dialog plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,14 +28,16 @@
|
|
|
28
28
|
"@atlaskit/heading": "^7.2.0",
|
|
29
29
|
"@atlaskit/icon": "^37.7.0",
|
|
30
30
|
"@atlaskit/modal-dialog": "^16.6.0",
|
|
31
|
+
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
31
32
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
32
33
|
"@atlaskit/primitives": "^22.5.0",
|
|
33
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
34
|
+
"@atlaskit/tmp-editor-statsig": "^202.0.0",
|
|
34
35
|
"@atlaskit/tokens": "^18.2.0",
|
|
35
36
|
"@atlaskit/tooltip": "^24.3.0",
|
|
36
37
|
"@babel/runtime": "^7.0.0",
|
|
37
38
|
"@emotion/react": "^11.7.1",
|
|
38
|
-
"react-loadable": "^5.1.0"
|
|
39
|
+
"react-loadable": "^5.1.0",
|
|
40
|
+
"react-loosely-lazy": "^1.0.0"
|
|
39
41
|
},
|
|
40
42
|
"devDependencies": {
|
|
41
43
|
"@testing-library/react": "^16.3.0",
|
|
@@ -43,7 +45,7 @@
|
|
|
43
45
|
"react-intl": "^7.0.0"
|
|
44
46
|
},
|
|
45
47
|
"peerDependencies": {
|
|
46
|
-
"@atlaskit/editor-common": "^123.
|
|
48
|
+
"@atlaskit/editor-common": "^123.5.0",
|
|
47
49
|
"react": "^18.2.0 || ^19.2.0",
|
|
48
50
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
49
51
|
}
|