@atlaskit/editor-core 233.0.1 → 233.0.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 +8 -0
- package/dist/cjs/utils/extensions.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/utils/extensions.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/utils/extensions.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 233.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`01a66c61973bc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/01a66c61973bc) -
|
|
8
|
+
Remove lazy-loaded components from SSR bundle.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 233.0.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -84,7 +84,7 @@ var LazyExtensionIcon = function LazyExtensionIcon(_ref) {
|
|
|
84
84
|
var iconLoader = _ref.iconLoader;
|
|
85
85
|
var Icon = lazyExtensionIconCache.get(iconLoader);
|
|
86
86
|
if (!Icon) {
|
|
87
|
-
Icon = (0, _reactLooselyLazy.
|
|
87
|
+
Icon = (0, _reactLooselyLazy.lazy)(function () {
|
|
88
88
|
return iconLoader();
|
|
89
89
|
});
|
|
90
90
|
lazyExtensionIconCache.set(iconLoader, Icon);
|
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
8
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
9
|
-
var version = exports.version = "233.0.
|
|
9
|
+
var version = exports.version = "233.0.1";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
3
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
4
|
-
import {
|
|
4
|
+
import { lazy, LazySuspense } from 'react-loosely-lazy';
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { getQuickInsertItemsFromModule, resolveImport } from '@atlaskit/editor-common/extensions';
|
|
7
7
|
import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
|
|
@@ -64,7 +64,7 @@ const LazyExtensionIcon = ({
|
|
|
64
64
|
}) => {
|
|
65
65
|
let Icon = lazyExtensionIconCache.get(iconLoader);
|
|
66
66
|
if (!Icon) {
|
|
67
|
-
Icon =
|
|
67
|
+
Icon = lazy(() => iconLoader());
|
|
68
68
|
lazyExtensionIconCache.set(iconLoader, Icon);
|
|
69
69
|
}
|
|
70
70
|
return /*#__PURE__*/React.createElement(LazySuspense, {
|
|
@@ -6,7 +6,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import Loadable from 'react-loadable';
|
|
8
8
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
9
|
-
import {
|
|
9
|
+
import { lazy, LazySuspense } from 'react-loosely-lazy';
|
|
10
10
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
11
11
|
import { getQuickInsertItemsFromModule, resolveImport } from '@atlaskit/editor-common/extensions';
|
|
12
12
|
import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
|
|
@@ -79,7 +79,7 @@ var LazyExtensionIcon = function LazyExtensionIcon(_ref) {
|
|
|
79
79
|
var iconLoader = _ref.iconLoader;
|
|
80
80
|
var Icon = lazyExtensionIconCache.get(iconLoader);
|
|
81
81
|
if (!Icon) {
|
|
82
|
-
Icon =
|
|
82
|
+
Icon = lazy(function () {
|
|
83
83
|
return iconLoader();
|
|
84
84
|
});
|
|
85
85
|
lazyExtensionIconCache.set(iconLoader, Icon);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "233.0.
|
|
3
|
+
"version": "233.0.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
78
78
|
"@atlaskit/react-ufo": "^8.0.0",
|
|
79
79
|
"@atlaskit/task-decision": "^21.11.0",
|
|
80
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
80
|
+
"@atlaskit/tmp-editor-statsig": "^220.0.0",
|
|
81
81
|
"@atlaskit/tokens": "^20.1.0",
|
|
82
82
|
"@atlaskit/tooltip": "^24.4.0",
|
|
83
83
|
"@atlaskit/width-detector": "^7.2.0",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"uuid": "^11.1.1"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
|
-
"@atlaskit/editor-common": "^127.
|
|
99
|
+
"@atlaskit/editor-common": "^127.2.0",
|
|
100
100
|
"@atlaskit/link-provider": "^6.0.0",
|
|
101
101
|
"@atlaskit/media-core": "^39.0.0",
|
|
102
102
|
"react": "^18.2.0 || ^19.2.0",
|
|
@@ -173,11 +173,11 @@
|
|
|
173
173
|
"@atlassian/editor-rovo-bridge": "^22.0.0",
|
|
174
174
|
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
175
175
|
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
|
176
|
-
"@atlassian/search-client": "^3.
|
|
176
|
+
"@atlassian/search-client": "^3.6.0",
|
|
177
177
|
"@atlassian/search-provider": "^24.0.0",
|
|
178
178
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
179
179
|
"@atlassian/testing-library": "^0.11.0",
|
|
180
|
-
"@atlassian/user-profile-card": "^1.
|
|
180
|
+
"@atlassian/user-profile-card": "^1.43.0",
|
|
181
181
|
"@emotion/jest": "^11.8.0",
|
|
182
182
|
"@testing-library/react": "^16.3.0",
|
|
183
183
|
"@types/diff": "^5.0.2",
|