@atlaskit/editor-core 243.2.0 → 245.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 +18 -0
- package/dist/cjs/create-editor/editorStateNotificationPlugin.js +0 -7
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +0 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/editorStateNotificationPlugin.js +0 -7
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +0 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/editorStateNotificationPlugin.js +0 -7
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +0 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +1 -4
- package/package.json +47 -47
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 245.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 244.0.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`f039487b0e531`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f039487b0e531) -
|
|
14
|
+
Remove internal code that the `platform_editor_controls` experiment cleanup left unused: unused
|
|
15
|
+
component props, an unused view mode subscription in media groups, unused placeholder messages,
|
|
16
|
+
and the internal bracket placeholder text.
|
|
17
|
+
- [`b2444e74978c4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b2444e74978c4) -
|
|
18
|
+
Make the shipped editor memory-leak reductions permanent and remove the experiment checks.
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 243.2.0
|
|
4
22
|
|
|
5
23
|
### 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 = "
|
|
9
|
+
var version = exports.version = "244.0.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,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,
|
|
@@ -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
|
|
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": "
|
|
3
|
+
"version": "245.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": "^
|
|
54
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
55
|
-
"@atlaskit/editor-plugin-quick-insert": "^
|
|
56
|
-
"@atlaskit/editor-plugin-selection-extension": "^
|
|
57
|
-
"@atlaskit/editor-plugin-user-preferences": "^
|
|
53
|
+
"@atlaskit/editor-plugin-block-menu": "^32.0.0",
|
|
54
|
+
"@atlaskit/editor-plugin-connectivity": "^33.0.0",
|
|
55
|
+
"@atlaskit/editor-plugin-quick-insert": "^33.0.0",
|
|
56
|
+
"@atlaskit/editor-plugin-selection-extension": "^36.0.0",
|
|
57
|
+
"@atlaskit/editor-plugin-user-preferences": "^31.0.0",
|
|
58
58
|
"@atlaskit/editor-plugins": "^17.0.0",
|
|
59
59
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
60
|
-
"@atlaskit/editor-shared-styles": "^5.
|
|
61
|
-
"@atlaskit/editor-ssr-renderer": "^
|
|
60
|
+
"@atlaskit/editor-shared-styles": "^5.2.0",
|
|
61
|
+
"@atlaskit/editor-ssr-renderer": "^28.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": "^
|
|
95
|
+
"@atlaskit/editor-common": "^137.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": "^
|
|
112
|
+
"@atlaskit/collab-provider": "^42.0.0",
|
|
113
113
|
"@atlaskit/docs": "^12.3.0",
|
|
114
114
|
"@atlaskit/drawer": "^14.3.0",
|
|
115
|
-
"@atlaskit/editor-common": "^
|
|
116
|
-
"@atlaskit/editor-plugin-alignment": "^
|
|
117
|
-
"@atlaskit/editor-plugin-annotation": "^
|
|
118
|
-
"@atlaskit/editor-plugin-base": "^
|
|
119
|
-
"@atlaskit/editor-plugin-card": "^
|
|
120
|
-
"@atlaskit/editor-plugin-code-block-advanced": "^
|
|
121
|
-
"@atlaskit/editor-plugin-collab-edit": "^
|
|
122
|
-
"@atlaskit/editor-plugin-content-insertion": "^
|
|
123
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
124
|
-
"@atlaskit/editor-plugin-extension": "^
|
|
125
|
-
"@atlaskit/editor-plugin-grid": "^
|
|
126
|
-
"@atlaskit/editor-plugin-guideline": "^
|
|
127
|
-
"@atlaskit/editor-plugin-highlight": "^
|
|
128
|
-
"@atlaskit/editor-plugin-hyperlink": "^
|
|
129
|
-
"@atlaskit/editor-plugin-insert-block": "^
|
|
130
|
-
"@atlaskit/editor-plugin-layout": "^
|
|
131
|
-
"@atlaskit/editor-plugin-list": "^
|
|
132
|
-
"@atlaskit/editor-plugin-media": "^
|
|
133
|
-
"@atlaskit/editor-plugin-media-insert": "^
|
|
134
|
-
"@atlaskit/editor-plugin-paste": "^
|
|
135
|
-
"@atlaskit/editor-plugin-selection-marker": "^
|
|
136
|
-
"@atlaskit/editor-plugin-show-diff": "^
|
|
137
|
-
"@atlaskit/editor-plugin-synced-block": "^
|
|
138
|
-
"@atlaskit/editor-plugin-table": "^
|
|
139
|
-
"@atlaskit/editor-plugin-tasks-and-decisions": "^
|
|
140
|
-
"@atlaskit/editor-plugin-text-color": "^
|
|
141
|
-
"@atlaskit/editor-plugin-text-formatting": "^
|
|
142
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
143
|
-
"@atlaskit/editor-plugin-toolbar-lists-indentation": "^
|
|
144
|
-
"@atlaskit/editor-plugin-track-changes": "^
|
|
145
|
-
"@atlaskit/editor-synced-block-provider": "^
|
|
146
|
-
"@atlaskit/editor-synced-block-renderer": "^
|
|
115
|
+
"@atlaskit/editor-common": "^137.0.0",
|
|
116
|
+
"@atlaskit/editor-plugin-alignment": "^34.0.0",
|
|
117
|
+
"@atlaskit/editor-plugin-annotation": "^33.0.0",
|
|
118
|
+
"@atlaskit/editor-plugin-base": "^34.0.0",
|
|
119
|
+
"@atlaskit/editor-plugin-card": "^39.0.0",
|
|
120
|
+
"@atlaskit/editor-plugin-code-block-advanced": "^33.0.0",
|
|
121
|
+
"@atlaskit/editor-plugin-collab-edit": "^35.0.0",
|
|
122
|
+
"@atlaskit/editor-plugin-content-insertion": "^33.0.0",
|
|
123
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^35.0.0",
|
|
124
|
+
"@atlaskit/editor-plugin-extension": "^36.0.0",
|
|
125
|
+
"@atlaskit/editor-plugin-grid": "^33.0.0",
|
|
126
|
+
"@atlaskit/editor-plugin-guideline": "^33.0.0",
|
|
127
|
+
"@atlaskit/editor-plugin-highlight": "^33.0.0",
|
|
128
|
+
"@atlaskit/editor-plugin-hyperlink": "^35.0.0",
|
|
129
|
+
"@atlaskit/editor-plugin-insert-block": "^34.0.0",
|
|
130
|
+
"@atlaskit/editor-plugin-layout": "^34.0.0",
|
|
131
|
+
"@atlaskit/editor-plugin-list": "^35.0.0",
|
|
132
|
+
"@atlaskit/editor-plugin-media": "^35.0.0",
|
|
133
|
+
"@atlaskit/editor-plugin-media-insert": "^51.0.0",
|
|
134
|
+
"@atlaskit/editor-plugin-paste": "^34.0.0",
|
|
135
|
+
"@atlaskit/editor-plugin-selection-marker": "^33.0.0",
|
|
136
|
+
"@atlaskit/editor-plugin-show-diff": "^33.0.0",
|
|
137
|
+
"@atlaskit/editor-plugin-synced-block": "^31.0.0",
|
|
138
|
+
"@atlaskit/editor-plugin-table": "^45.0.0",
|
|
139
|
+
"@atlaskit/editor-plugin-tasks-and-decisions": "^36.0.0",
|
|
140
|
+
"@atlaskit/editor-plugin-text-color": "^33.0.0",
|
|
141
|
+
"@atlaskit/editor-plugin-text-formatting": "^34.0.0",
|
|
142
|
+
"@atlaskit/editor-plugin-toolbar": "^30.0.0",
|
|
143
|
+
"@atlaskit/editor-plugin-toolbar-lists-indentation": "^34.0.0",
|
|
144
|
+
"@atlaskit/editor-plugin-track-changes": "^32.0.0",
|
|
145
|
+
"@atlaskit/editor-synced-block-provider": "^29.0.0",
|
|
146
|
+
"@atlaskit/editor-synced-block-renderer": "^31.0.0",
|
|
147
147
|
"@atlaskit/editor-tables": "^3.2.0",
|
|
148
148
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
149
149
|
"@atlaskit/form": "^18.3.0",
|
|
@@ -156,11 +156,11 @@
|
|
|
156
156
|
"@atlaskit/media-test-helpers": "^43.0.0",
|
|
157
157
|
"@atlaskit/media-ui": "^31.10.0",
|
|
158
158
|
"@atlaskit/modal-dialog": "^17.2.0",
|
|
159
|
-
"@atlaskit/navigation-system": "^11.
|
|
159
|
+
"@atlaskit/navigation-system": "^11.8.0",
|
|
160
160
|
"@atlaskit/popper": "^9.4.0",
|
|
161
161
|
"@atlaskit/portal": "^7.1.0",
|
|
162
162
|
"@atlaskit/profilecard": "^27.10.0",
|
|
163
|
-
"@atlaskit/renderer": "^
|
|
163
|
+
"@atlaskit/renderer": "^156.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": "^
|
|
174
|
+
"@atlassian/editor-rovo-bridge": "^32.0.0",
|
|
175
175
|
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
176
176
|
"@atlassian/feature-flags-storybook-utils": "^0.5.0",
|
|
177
|
-
"@atlassian/feature-flags-test-utils": "^
|
|
177
|
+
"@atlassian/feature-flags-test-utils": "^2.0.0",
|
|
178
178
|
"@atlassian/search-client": "^3.15.0",
|
|
179
|
-
"@atlassian/search-provider": "^
|
|
179
|
+
"@atlassian/search-provider": "^34.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",
|