@atlaskit/editor-core 233.0.0 → 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 CHANGED
@@ -1,5 +1,22 @@
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
+
11
+ ## 233.0.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [`c770ec0f70bb3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c770ec0f70bb3) -
16
+ Render `data-gramm="false"` and `translate="no"` on the editor root element directly, instead of
17
+ leaving ProseMirror to apply them when the `EditorView` is constructed.
18
+ - Updated dependencies
19
+
3
20
  ## 233.0.0
4
21
 
5
22
  ### Patch Changes
@@ -970,7 +970,9 @@ function ReactEditorView(props) {
970
970
  "data-editor-id": editorId.current,
971
971
  "data-vc-ignore-if-no-layout-shift": true,
972
972
  "data-ssr-placeholder": "editor-view",
973
- "data-ssr-placeholder-replace": "editor-view"
973
+ "data-ssr-placeholder-replace": "editor-view",
974
+ "data-gramm": (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_reduce_forced_layout') ? 'false' : undefined,
975
+ translate: (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_reduce_forced_layout') ? 'no' : undefined
974
976
  // eslint-disable-next-line react/no-danger -- needed for SSR and hydration so react keeps the HTML untouched
975
977
  ,
976
978
  dangerouslySetInnerHTML: {
@@ -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.lazyForPaint)(function () {
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 = "232.0.11";
9
+ var version = exports.version = "233.0.1";
@@ -900,7 +900,9 @@ export function ReactEditorView(props) {
900
900
  "data-editor-id": editorId.current,
901
901
  "data-vc-ignore-if-no-layout-shift": true,
902
902
  "data-ssr-placeholder": "editor-view",
903
- "data-ssr-placeholder-replace": "editor-view"
903
+ "data-ssr-placeholder-replace": "editor-view",
904
+ "data-gramm": isExperimentEnabled('platform_editor_reduce_forced_layout') ? 'false' : undefined,
905
+ translate: isExperimentEnabled('platform_editor_reduce_forced_layout') ? 'no' : undefined
904
906
  // eslint-disable-next-line react/no-danger -- needed for SSR and hydration so react keeps the HTML untouched
905
907
  ,
906
908
  dangerouslySetInnerHTML: {
@@ -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 { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
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 = lazyForPaint(() => iconLoader());
67
+ Icon = lazy(() => iconLoader());
68
68
  lazyExtensionIconCache.set(iconLoader, Icon);
69
69
  }
70
70
  return /*#__PURE__*/React.createElement(LazySuspense, {
@@ -1,3 +1,3 @@
1
1
  export const name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export const version = "232.0.11";
3
+ export const version = "233.0.1";
@@ -961,7 +961,9 @@ export function ReactEditorView(props) {
961
961
  "data-editor-id": editorId.current,
962
962
  "data-vc-ignore-if-no-layout-shift": true,
963
963
  "data-ssr-placeholder": "editor-view",
964
- "data-ssr-placeholder-replace": "editor-view"
964
+ "data-ssr-placeholder-replace": "editor-view",
965
+ "data-gramm": isExperimentEnabled('platform_editor_reduce_forced_layout') ? 'false' : undefined,
966
+ translate: isExperimentEnabled('platform_editor_reduce_forced_layout') ? 'no' : undefined
965
967
  // eslint-disable-next-line react/no-danger -- needed for SSR and hydration so react keeps the HTML untouched
966
968
  ,
967
969
  dangerouslySetInnerHTML: {
@@ -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 { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
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 = lazyForPaint(function () {
82
+ Icon = lazy(function () {
83
83
  return iconLoader();
84
84
  });
85
85
  lazyExtensionIconCache.set(iconLoader, Icon);
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "232.0.11";
3
+ export var version = "233.0.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "233.0.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/"
@@ -72,14 +72,14 @@
72
72
  "@atlaskit/platform-feature-experiments": "^0.3.0",
73
73
  "@atlaskit/platform-feature-flags": "^2.2.0",
74
74
  "@atlaskit/platform-feature-flags-react": "^1.2.0",
75
- "@atlaskit/popup": "^8.1.0",
75
+ "@atlaskit/popup": "^9.0.0",
76
76
  "@atlaskit/primitives": "^22.5.0",
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": "^219.0.0",
80
+ "@atlaskit/tmp-editor-statsig": "^220.0.0",
81
81
  "@atlaskit/tokens": "^20.1.0",
82
- "@atlaskit/tooltip": "^24.3.0",
82
+ "@atlaskit/tooltip": "^24.4.0",
83
83
  "@atlaskit/width-detector": "^7.2.0",
84
84
  "@babel/runtime": "^7.0.0",
85
85
  "@compiled/react": "^1.0.2",
@@ -96,7 +96,7 @@
96
96
  "uuid": "^11.1.1"
97
97
  },
98
98
  "peerDependencies": {
99
- "@atlaskit/editor-common": "^127.0.0",
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.5.0",
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.42.0",
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",