@atlaskit/editor-plugin-extension 3.4.0 → 3.5.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,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 3.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 3.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#113205](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113205)
|
|
14
|
+
[`74786973d6de2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/74786973d6de2) -
|
|
15
|
+
ED-26443 LCM: Add scrollIntoView option on extension API 'update' function. This allows you to
|
|
16
|
+
disable scrollIntoView.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 3.4.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
|
@@ -14,6 +14,7 @@ var _editorJsonTransformer = require("@atlaskit/editor-json-transformer");
|
|
|
14
14
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
15
15
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
16
16
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
17
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
18
|
var _commands = require("../editor-commands/commands");
|
|
18
19
|
var _actions = require("./macro/actions");
|
|
19
20
|
var _pluginKey = require("./macro/plugin-key");
|
|
@@ -259,6 +260,9 @@ var createExtensionAPI = exports.createExtensionAPI = function createExtensionAP
|
|
|
259
260
|
if (typeof (opts === null || opts === void 0 ? void 0 : opts.addToHistory) === 'boolean') {
|
|
260
261
|
tr.setMeta('addToHistory', opts.addToHistory);
|
|
261
262
|
}
|
|
263
|
+
if (typeof (opts === null || opts === void 0 ? void 0 : opts.scrollIntoView) === 'boolean' && (0, _platformFeatureFlags.fg)('platform_editor_legacy_content_macro')) {
|
|
264
|
+
tr.setMeta('scrollIntoView', opts.scrollIntoView);
|
|
265
|
+
}
|
|
262
266
|
dispatch(tr);
|
|
263
267
|
}
|
|
264
268
|
};
|
|
@@ -5,6 +5,7 @@ import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
|
5
5
|
import { Fragment, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { setTextSelection } from '@atlaskit/editor-prosemirror/utils';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { setEditingContextToContextPanel } from '../editor-commands/commands';
|
|
9
10
|
import { insertMacroFromMacroBrowser } from './macro/actions';
|
|
10
11
|
import { pluginKey as macroPluginKey } from './macro/plugin-key';
|
|
@@ -277,6 +278,9 @@ export const createExtensionAPI = options => {
|
|
|
277
278
|
if (typeof (opts === null || opts === void 0 ? void 0 : opts.addToHistory) === 'boolean') {
|
|
278
279
|
tr.setMeta('addToHistory', opts.addToHistory);
|
|
279
280
|
}
|
|
281
|
+
if (typeof (opts === null || opts === void 0 ? void 0 : opts.scrollIntoView) === 'boolean' && fg('platform_editor_legacy_content_macro')) {
|
|
282
|
+
tr.setMeta('scrollIntoView', opts.scrollIntoView);
|
|
283
|
+
}
|
|
280
284
|
dispatch(tr);
|
|
281
285
|
}
|
|
282
286
|
};
|
|
@@ -9,6 +9,7 @@ import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
|
9
9
|
import { Fragment, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
10
10
|
import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
11
11
|
import { setTextSelection } from '@atlaskit/editor-prosemirror/utils';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
13
|
import { setEditingContextToContextPanel } from '../editor-commands/commands';
|
|
13
14
|
import { insertMacroFromMacroBrowser } from './macro/actions';
|
|
14
15
|
import { pluginKey as macroPluginKey } from './macro/plugin-key';
|
|
@@ -252,6 +253,9 @@ export var createExtensionAPI = function createExtensionAPI(options) {
|
|
|
252
253
|
if (typeof (opts === null || opts === void 0 ? void 0 : opts.addToHistory) === 'boolean') {
|
|
253
254
|
tr.setMeta('addToHistory', opts.addToHistory);
|
|
254
255
|
}
|
|
256
|
+
if (typeof (opts === null || opts === void 0 ? void 0 : opts.scrollIntoView) === 'boolean' && fg('platform_editor_legacy_content_macro')) {
|
|
257
|
+
tr.setMeta('scrollIntoView', opts.scrollIntoView);
|
|
258
|
+
}
|
|
255
259
|
dispatch(tr);
|
|
256
260
|
}
|
|
257
261
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"@atlaskit/avatar": "^21.18.0",
|
|
30
30
|
"@atlaskit/button": "^20.5.0",
|
|
31
31
|
"@atlaskit/checkbox": "^15.3.0",
|
|
32
|
-
"@atlaskit/datetime-picker": "^15.
|
|
33
|
-
"@atlaskit/editor-common": "^99.
|
|
32
|
+
"@atlaskit/datetime-picker": "^15.13.0",
|
|
33
|
+
"@atlaskit/editor-common": "^99.14.0",
|
|
34
34
|
"@atlaskit/editor-json-transformer": "^8.23.0",
|
|
35
35
|
"@atlaskit/editor-plugin-analytics": "^1.12.0",
|
|
36
36
|
"@atlaskit/editor-plugin-context-identifier": "^1.4.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/empty-state": "^8.2.0",
|
|
45
45
|
"@atlaskit/form": "^11.1.0",
|
|
46
46
|
"@atlaskit/heading": "4.1.0",
|
|
47
|
-
"@atlaskit/icon": "^23.
|
|
47
|
+
"@atlaskit/icon": "^23.9.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
49
49
|
"@atlaskit/primitives": "^13.5.0",
|
|
50
50
|
"@atlaskit/radio": "^7.2.0",
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"@atlaskit/smart-user-picker": "^7.0.0",
|
|
54
54
|
"@atlaskit/spinner": "^17.1.0",
|
|
55
55
|
"@atlaskit/tabs": "^17.2.0",
|
|
56
|
-
"@atlaskit/textarea": "^
|
|
56
|
+
"@atlaskit/textarea": "^7.0.0",
|
|
57
57
|
"@atlaskit/textfield": "^6.8.0",
|
|
58
58
|
"@atlaskit/theme": "^15.0.0",
|
|
59
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
59
|
+
"@atlaskit/tmp-editor-statsig": "^2.46.0",
|
|
60
60
|
"@atlaskit/toggle": "^14.1.0",
|
|
61
61
|
"@atlaskit/tokens": "^3.3.0",
|
|
62
62
|
"@atlaskit/tooltip": "^19.1.0",
|