@atlaskit/editor-core 243.2.0 → 244.0.0

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,17 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 244.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [`f039487b0e531`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f039487b0e531) -
8
+ Remove internal code that the `platform_editor_controls` experiment cleanup left unused: unused
9
+ component props, an unused view mode subscription in media groups, unused placeholder messages,
10
+ and the internal bracket placeholder text.
11
+ - [`b2444e74978c4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b2444e74978c4) -
12
+ Make the shipped editor memory-leak reductions permanent and remove the experiment checks.
13
+ - Updated dependencies
14
+
3
15
  ## 243.2.0
4
16
 
5
17
  ### Minor Changes
@@ -6,10 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.createEditorStateNotificationPlugin = void 0;
7
7
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
8
8
  var _state = require("@atlaskit/editor-prosemirror/state");
9
- var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
10
9
  var key = new _state.PluginKey('editorStateNotificationPlugin');
11
10
  var createEditorStateNotificationPlugin = exports.createEditorStateNotificationPlugin = function createEditorStateNotificationPlugin(onEditorStateUpdated, onEditorViewStateUpdatedCallbacks) {
12
- var transactions = [];
13
11
  return new _safePlugin.SafePlugin({
14
12
  key: key,
15
13
  state: {
@@ -19,11 +17,6 @@ var createEditorStateNotificationPlugin = exports.createEditorStateNotificationP
19
17
  };
20
18
  },
21
19
  apply: function apply(tr) {
22
- if (!(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_reduce_memory_leaks')) {
23
- // Dead accumulator: nothing reads it, so it pins every transaction for the
24
- // editor's lifetime. Delete it when the experiment ships.
25
- transactions.push(tr);
26
- }
27
20
  return {
28
21
  latestTransaction: tr
29
22
  };
@@ -148,7 +148,6 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
148
148
  customPrimaryToolbarComponents: props.customPrimaryToolbarComponents
149
149
  }) : /*#__PURE__*/_react.default.createElement(_FullPageToolbar.FullPageToolbar, {
150
150
  appearance: props.appearance,
151
- editorAPI: editorAPI,
152
151
  beforeIcon: props.primaryToolbarIconBefore,
153
152
  collabEdit: props.collabEdit,
154
153
  containerElement: (_scrollContentContain2 = (_scrollContentContain3 = scrollContentContainerRef.current) === null || _scrollContentContain3 === void 0 ? void 0 : _scrollContentContain3.scrollContainer) !== null && _scrollContentContain2 !== void 0 ? _scrollContentContain2 : null,
@@ -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 = "243.1.0";
9
+ var version = exports.version = "243.2.0";
@@ -1,9 +1,7 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
4
3
  const key = new PluginKey('editorStateNotificationPlugin');
5
4
  export const createEditorStateNotificationPlugin = (onEditorStateUpdated, onEditorViewStateUpdatedCallbacks) => {
6
- const transactions = [];
7
5
  return new SafePlugin({
8
6
  key: key,
9
7
  state: {
@@ -13,11 +11,6 @@ export const createEditorStateNotificationPlugin = (onEditorStateUpdated, onEdit
13
11
  };
14
12
  },
15
13
  apply(tr) {
16
- if (!isExperimentEnabled('platform_editor_reduce_memory_leaks')) {
17
- // Dead accumulator: nothing reads it, so it pins every transaction for the
18
- // editor's lifetime. Delete it when the experiment ships.
19
- transactions.push(tr);
20
- }
21
14
  return {
22
15
  latestTransaction: tr
23
16
  };
@@ -134,7 +134,6 @@ export const FullPageEditor = props => {
134
134
  customPrimaryToolbarComponents: props.customPrimaryToolbarComponents
135
135
  }) : /*#__PURE__*/React.createElement(FullPageToolbar, {
136
136
  appearance: props.appearance,
137
- editorAPI: editorAPI,
138
137
  beforeIcon: props.primaryToolbarIconBefore,
139
138
  collabEdit: props.collabEdit,
140
139
  containerElement: (_scrollContentContain2 = (_scrollContentContain3 = scrollContentContainerRef.current) === null || _scrollContentContain3 === void 0 ? void 0 : _scrollContentContain3.scrollContainer) !== null && _scrollContentContain2 !== void 0 ? _scrollContentContain2 : null,
@@ -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 = "243.1.0";
3
+ export const version = "243.2.0";
@@ -1,9 +1,7 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
4
3
  var key = new PluginKey('editorStateNotificationPlugin');
5
4
  export var createEditorStateNotificationPlugin = function createEditorStateNotificationPlugin(onEditorStateUpdated, onEditorViewStateUpdatedCallbacks) {
6
- var transactions = [];
7
5
  return new SafePlugin({
8
6
  key: key,
9
7
  state: {
@@ -13,11 +11,6 @@ export var createEditorStateNotificationPlugin = function createEditorStateNotif
13
11
  };
14
12
  },
15
13
  apply: function apply(tr) {
16
- if (!isExperimentEnabled('platform_editor_reduce_memory_leaks')) {
17
- // Dead accumulator: nothing reads it, so it pins every transaction for the
18
- // editor's lifetime. Delete it when the experiment ships.
19
- transactions.push(tr);
20
- }
21
14
  return {
22
15
  latestTransaction: tr
23
16
  };
@@ -139,7 +139,6 @@ export var FullPageEditor = function FullPageEditor(props) {
139
139
  customPrimaryToolbarComponents: props.customPrimaryToolbarComponents
140
140
  }) : /*#__PURE__*/React.createElement(FullPageToolbar, {
141
141
  appearance: props.appearance,
142
- editorAPI: editorAPI,
143
142
  beforeIcon: props.primaryToolbarIconBefore,
144
143
  collabEdit: props.collabEdit,
145
144
  containerElement: (_scrollContentContain2 = (_scrollContentContain3 = scrollContentContainerRef.current) === null || _scrollContentContain3 === void 0 ? void 0 : _scrollContentContain3.scrollContainer) !== null && _scrollContentContain2 !== void 0 ? _scrollContentContain2 : null,
@@ -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 = "243.1.0";
3
+ export var version = "243.2.0";
@@ -7,20 +7,18 @@ import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
7
7
  import type ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
8
8
  import type { EditorAppearance } from '@atlaskit/editor-common/types/editor-appearance';
9
9
  import type { FeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
10
- import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
10
+ import type { OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
11
11
  import type { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types/toolbar';
12
12
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugins/analytics';
13
13
  import type { AvatarGroupPlugin } from '@atlaskit/editor-plugins/avatar-group';
14
14
  import type { BeforePrimaryToolbarPlugin } from '@atlaskit/editor-plugins/before-primary-toolbar';
15
15
  import type { CollabEditPlugin } from '@atlaskit/editor-plugins/collab-edit';
16
16
  import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugins/feature-flags';
17
- import type { FindReplacePlugin } from '@atlaskit/editor-plugins/find-replace';
18
17
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
19
18
  import type { EditorActions } from '../../../index';
20
19
  import type { PrimaryToolbarComponents } from '../../../types/editor-props';
21
20
  export type ToolbarEditorPlugins = [
22
21
  OptionalPlugin<AnalyticsPlugin>,
23
- OptionalPlugin<FindReplacePlugin>,
24
22
  OptionalPlugin<FeatureFlagsPlugin>,
25
23
  OptionalPlugin<CollabEditPlugin>,
26
24
  OptionalPlugin<AvatarGroupPlugin>,
@@ -35,7 +33,6 @@ export interface FullPageToolbarProps {
35
33
  disabled: boolean;
36
34
  dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
37
35
  editorActions?: EditorActions;
38
- editorAPI: PublicPluginAPI<ToolbarEditorPlugins> | undefined;
39
36
  editorDOMElement: JSX.Element;
40
37
  editorView: EditorView;
41
38
  eventDispatcher: EventDispatcher;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "243.2.0",
3
+ "version": "244.0.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -50,15 +50,15 @@
50
50
  "@atlaskit/button": "^25.8.0",
51
51
  "@atlaskit/css": "^1.1.0",
52
52
  "@atlaskit/editor-json-transformer": "^10.0.0",
53
- "@atlaskit/editor-plugin-block-menu": "^30.0.0",
54
- "@atlaskit/editor-plugin-connectivity": "^31.0.0",
55
- "@atlaskit/editor-plugin-quick-insert": "^31.0.0",
56
- "@atlaskit/editor-plugin-selection-extension": "^34.1.0",
57
- "@atlaskit/editor-plugin-user-preferences": "^29.0.0",
53
+ "@atlaskit/editor-plugin-block-menu": "^31.0.0",
54
+ "@atlaskit/editor-plugin-connectivity": "^32.0.0",
55
+ "@atlaskit/editor-plugin-quick-insert": "^32.0.0",
56
+ "@atlaskit/editor-plugin-selection-extension": "^35.0.0",
57
+ "@atlaskit/editor-plugin-user-preferences": "^30.0.0",
58
58
  "@atlaskit/editor-plugins": "^17.0.0",
59
59
  "@atlaskit/editor-prosemirror": "^9.0.0",
60
- "@atlaskit/editor-shared-styles": "^5.1.0",
61
- "@atlaskit/editor-ssr-renderer": "^26.0.0",
60
+ "@atlaskit/editor-shared-styles": "^5.2.0",
61
+ "@atlaskit/editor-ssr-renderer": "^27.0.0",
62
62
  "@atlaskit/editor-toolbar": "^2.11.0",
63
63
  "@atlaskit/editor-toolbar-model": "^1.2.0",
64
64
  "@atlaskit/editor-ui-control-model": "^3.0.0",
@@ -92,7 +92,7 @@
92
92
  "uuid": "^11.1.1"
93
93
  },
94
94
  "peerDependencies": {
95
- "@atlaskit/editor-common": "^135.3.0",
95
+ "@atlaskit/editor-common": "^136.0.0",
96
96
  "@atlaskit/link-provider": "^6.2.0",
97
97
  "@atlaskit/media-core": "^39.0.0",
98
98
  "react": "^18.2.0 || ^19.2.0",
@@ -109,41 +109,41 @@
109
109
  "@atlaskit/analytics-gas-types": "^6.2.0",
110
110
  "@atlaskit/analytics-listeners": "^11.4.0",
111
111
  "@atlaskit/code": "^20.0.0",
112
- "@atlaskit/collab-provider": "^40.0.0",
112
+ "@atlaskit/collab-provider": "^41.0.0",
113
113
  "@atlaskit/docs": "^12.3.0",
114
114
  "@atlaskit/drawer": "^14.3.0",
115
- "@atlaskit/editor-common": "^135.3.0",
116
- "@atlaskit/editor-plugin-alignment": "^32.1.0",
117
- "@atlaskit/editor-plugin-annotation": "^31.1.0",
118
- "@atlaskit/editor-plugin-base": "^32.0.0",
119
- "@atlaskit/editor-plugin-card": "^37.0.0",
120
- "@atlaskit/editor-plugin-code-block-advanced": "^31.1.0",
121
- "@atlaskit/editor-plugin-collab-edit": "^33.0.0",
122
- "@atlaskit/editor-plugin-content-insertion": "^31.0.0",
123
- "@atlaskit/editor-plugin-editor-viewmode": "^33.0.0",
124
- "@atlaskit/editor-plugin-extension": "^34.0.0",
125
- "@atlaskit/editor-plugin-grid": "^31.0.0",
126
- "@atlaskit/editor-plugin-guideline": "^31.0.0",
127
- "@atlaskit/editor-plugin-highlight": "^31.1.0",
128
- "@atlaskit/editor-plugin-hyperlink": "^33.1.0",
129
- "@atlaskit/editor-plugin-insert-block": "^32.1.0",
130
- "@atlaskit/editor-plugin-layout": "^32.0.0",
131
- "@atlaskit/editor-plugin-list": "^33.0.0",
132
- "@atlaskit/editor-plugin-media": "^33.1.0",
133
- "@atlaskit/editor-plugin-media-insert": "^49.1.0",
134
- "@atlaskit/editor-plugin-paste": "^32.0.0",
135
- "@atlaskit/editor-plugin-selection-marker": "^31.1.0",
136
- "@atlaskit/editor-plugin-show-diff": "^31.0.0",
137
- "@atlaskit/editor-plugin-synced-block": "^29.1.0",
138
- "@atlaskit/editor-plugin-table": "^43.1.0",
139
- "@atlaskit/editor-plugin-tasks-and-decisions": "^34.1.0",
140
- "@atlaskit/editor-plugin-text-color": "^31.1.0",
141
- "@atlaskit/editor-plugin-text-formatting": "^32.1.0",
142
- "@atlaskit/editor-plugin-toolbar": "^28.0.0",
143
- "@atlaskit/editor-plugin-toolbar-lists-indentation": "^32.1.0",
144
- "@atlaskit/editor-plugin-track-changes": "^30.0.0",
145
- "@atlaskit/editor-synced-block-provider": "^27.1.0",
146
- "@atlaskit/editor-synced-block-renderer": "^29.0.0",
115
+ "@atlaskit/editor-common": "^136.0.0",
116
+ "@atlaskit/editor-plugin-alignment": "^33.0.0",
117
+ "@atlaskit/editor-plugin-annotation": "^32.0.0",
118
+ "@atlaskit/editor-plugin-base": "^33.0.0",
119
+ "@atlaskit/editor-plugin-card": "^38.0.0",
120
+ "@atlaskit/editor-plugin-code-block-advanced": "^32.0.0",
121
+ "@atlaskit/editor-plugin-collab-edit": "^34.0.0",
122
+ "@atlaskit/editor-plugin-content-insertion": "^32.0.0",
123
+ "@atlaskit/editor-plugin-editor-viewmode": "^34.0.0",
124
+ "@atlaskit/editor-plugin-extension": "^35.0.0",
125
+ "@atlaskit/editor-plugin-grid": "^32.0.0",
126
+ "@atlaskit/editor-plugin-guideline": "^32.0.0",
127
+ "@atlaskit/editor-plugin-highlight": "^32.0.0",
128
+ "@atlaskit/editor-plugin-hyperlink": "^34.0.0",
129
+ "@atlaskit/editor-plugin-insert-block": "^33.0.0",
130
+ "@atlaskit/editor-plugin-layout": "^33.0.0",
131
+ "@atlaskit/editor-plugin-list": "^34.0.0",
132
+ "@atlaskit/editor-plugin-media": "^34.0.0",
133
+ "@atlaskit/editor-plugin-media-insert": "^50.0.0",
134
+ "@atlaskit/editor-plugin-paste": "^33.0.0",
135
+ "@atlaskit/editor-plugin-selection-marker": "^32.0.0",
136
+ "@atlaskit/editor-plugin-show-diff": "^32.0.0",
137
+ "@atlaskit/editor-plugin-synced-block": "^30.0.0",
138
+ "@atlaskit/editor-plugin-table": "^44.0.0",
139
+ "@atlaskit/editor-plugin-tasks-and-decisions": "^35.0.0",
140
+ "@atlaskit/editor-plugin-text-color": "^32.0.0",
141
+ "@atlaskit/editor-plugin-text-formatting": "^33.0.0",
142
+ "@atlaskit/editor-plugin-toolbar": "^29.0.0",
143
+ "@atlaskit/editor-plugin-toolbar-lists-indentation": "^33.0.0",
144
+ "@atlaskit/editor-plugin-track-changes": "^31.0.0",
145
+ "@atlaskit/editor-synced-block-provider": "^28.0.0",
146
+ "@atlaskit/editor-synced-block-renderer": "^30.0.0",
147
147
  "@atlaskit/editor-tables": "^3.2.0",
148
148
  "@atlaskit/editor-test-helpers": "workspace:^",
149
149
  "@atlaskit/form": "^18.3.0",
@@ -160,7 +160,7 @@
160
160
  "@atlaskit/popper": "^9.4.0",
161
161
  "@atlaskit/portal": "^7.1.0",
162
162
  "@atlaskit/profilecard": "^27.10.0",
163
- "@atlaskit/renderer": "^154.0.0",
163
+ "@atlaskit/renderer": "^155.0.0",
164
164
  "@atlaskit/section-message": "^10.3.0",
165
165
  "@atlaskit/spinner": "^20.4.0",
166
166
  "@atlaskit/synchrony-test-helpers": "workspace:^",
@@ -171,12 +171,12 @@
171
171
  "@atlassian/a11y-jest-testing": "^0.17.0",
172
172
  "@atlassian/a11y-playwright-testing": "^0.13.0",
173
173
  "@atlassian/adf-schema-json": "^1.35.0",
174
- "@atlassian/editor-rovo-bridge": "^30.2.0",
174
+ "@atlassian/editor-rovo-bridge": "^31.0.0",
175
175
  "@atlassian/experiment-test-utils": "^0.2.0",
176
176
  "@atlassian/feature-flags-storybook-utils": "^0.5.0",
177
177
  "@atlassian/feature-flags-test-utils": "^1.3.0",
178
178
  "@atlassian/search-client": "^3.15.0",
179
- "@atlassian/search-provider": "^32.0.0",
179
+ "@atlassian/search-provider": "^33.0.0",
180
180
  "@atlassian/structured-docs-types": "workspace:^",
181
181
  "@atlassian/testing-library": "^0.12.0",
182
182
  "@atlassian/user-profile-card": "^1.56.0",