@atlaskit/editor-plugin-extension 1.15.3 → 1.15.5
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/plugin.js +6 -13
- package/dist/cjs/pm-plugins/main.js +0 -4
- package/dist/cjs/toolbar.js +1 -2
- package/dist/es2019/plugin.js +6 -13
- package/dist/es2019/pm-plugins/main.js +0 -4
- package/dist/es2019/toolbar.js +1 -2
- package/dist/esm/plugin.js +6 -13
- package/dist/esm/pm-plugins/main.js +0 -4
- package/dist/esm/toolbar.js +1 -2
- package/package.json +11 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 1.15.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#155693](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/155693)
|
|
8
|
+
[`172485595104b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/172485595104b) -
|
|
9
|
+
[ED-24685] Removing feature flag that gated multi bodied extensions being available in the editor
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 1.15.4
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#154186](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/154186)
|
|
17
|
+
[`5c316170d29dd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5c316170d29dd) -
|
|
18
|
+
Bump @atlaskit/adf-schema to 42.3.1
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 1.15.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.extensionPlugin = void 0;
|
|
8
8
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
9
9
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
10
|
var _actions = require("./actions");
|
|
12
11
|
var _commands = require("./commands");
|
|
13
12
|
var _contextPanel = require("./context-panel");
|
|
@@ -42,19 +41,13 @@ var extensionPlugin = exports.extensionPlugin = function extensionPlugin(_ref) {
|
|
|
42
41
|
}, {
|
|
43
42
|
name: 'inlineExtension',
|
|
44
43
|
node: _adfSchema.inlineExtension
|
|
44
|
+
}, {
|
|
45
|
+
name: 'extensionFrame',
|
|
46
|
+
node: _adfSchema.extensionFrame
|
|
47
|
+
}, {
|
|
48
|
+
name: 'multiBodiedExtension',
|
|
49
|
+
node: _adfSchema.multiBodiedExtension
|
|
45
50
|
}];
|
|
46
|
-
|
|
47
|
-
// Revert to returning all nodes without local variable, once FF is removed
|
|
48
|
-
if ((0, _platformFeatureFlags.fg)('platform.editor.multi-bodied-extension_0rygg')) {
|
|
49
|
-
extensionNodes.push({
|
|
50
|
-
name: 'extensionFrame',
|
|
51
|
-
node: _adfSchema.extensionFrame
|
|
52
|
-
});
|
|
53
|
-
extensionNodes.push({
|
|
54
|
-
name: 'multiBodiedExtension',
|
|
55
|
-
node: _adfSchema.multiBodiedExtension
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
51
|
return extensionNodes;
|
|
59
52
|
},
|
|
60
53
|
getSharedState: function getSharedState(state) {
|
|
@@ -31,7 +31,6 @@ var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
|
31
31
|
var _selection2 = require("@atlaskit/editor-common/selection");
|
|
32
32
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
33
33
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
34
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
35
34
|
var _commands = require("../commands");
|
|
36
35
|
var _lazyExtension = require("../nodeviews/lazyExtension");
|
|
37
36
|
var _pluginFactory = require("../plugin-factory");
|
|
@@ -306,9 +305,6 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatch, provid
|
|
|
306
305
|
multiBodiedExtension: (0, _lazyExtension.lazyExtensionNodeView)('multiBodiedExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags)
|
|
307
306
|
},
|
|
308
307
|
createSelectionBetween: function createSelectionBetween(view, anchor, head) {
|
|
309
|
-
if (!(0, _platformFeatureFlags.fg)('platform.editor.multi-bodied-extension_0rygg')) {
|
|
310
|
-
return null;
|
|
311
|
-
}
|
|
312
308
|
var _view$state3 = view.state,
|
|
313
309
|
schema = _view$state3.schema,
|
|
314
310
|
doc = _view$state3.doc;
|
package/dist/cjs/toolbar.js
CHANGED
|
@@ -21,7 +21,6 @@ var _mediaCenter = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/m
|
|
|
21
21
|
var _mediaFullWidth = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/media-full-width"));
|
|
22
22
|
var _mediaWide = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/media-wide"));
|
|
23
23
|
var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
|
|
24
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
25
24
|
var _actions = require("./actions");
|
|
26
25
|
var _commands = require("./commands");
|
|
27
26
|
var _pluginKey = require("./pm-plugins/macro/plugin-key");
|
|
@@ -39,7 +38,7 @@ var isLayoutSupported = function isLayoutSupported(state, selectedExtNode) {
|
|
|
39
38
|
if (!selectedExtNode) {
|
|
40
39
|
return false;
|
|
41
40
|
}
|
|
42
|
-
var isMultiBodiedExtension =
|
|
41
|
+
var isMultiBodiedExtension = selectedExtNode.node.type === multiBodiedExtension;
|
|
43
42
|
var isNonEmbeddedBodiedExtension = selectedExtNode.node.type === bodiedExtension && !(0, _utils2.hasParentNodeOfType)([multiBodiedExtension].filter(Boolean))(selection);
|
|
44
43
|
var isNonEmbeddedExtension = selectedExtNode.node.type === extension && !(0, _utils2.hasParentNodeOfType)([bodiedExtension, table, expand, multiBodiedExtension].filter(Boolean))(selection);
|
|
45
44
|
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { extension, extensionFrame, inlineExtension, multiBodiedExtension } from '@atlaskit/adf-schema';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { createEditSelectedExtensionAction, insertOrReplaceBodiedExtension, insertOrReplaceExtension } from './actions';
|
|
5
4
|
import { forceAutoSave } from './commands';
|
|
6
5
|
import { getContextPanel } from './context-panel';
|
|
@@ -35,19 +34,13 @@ export const extensionPlugin = ({
|
|
|
35
34
|
}, {
|
|
36
35
|
name: 'inlineExtension',
|
|
37
36
|
node: inlineExtension
|
|
37
|
+
}, {
|
|
38
|
+
name: 'extensionFrame',
|
|
39
|
+
node: extensionFrame
|
|
40
|
+
}, {
|
|
41
|
+
name: 'multiBodiedExtension',
|
|
42
|
+
node: multiBodiedExtension
|
|
38
43
|
}];
|
|
39
|
-
|
|
40
|
-
// Revert to returning all nodes without local variable, once FF is removed
|
|
41
|
-
if (fg('platform.editor.multi-bodied-extension_0rygg')) {
|
|
42
|
-
extensionNodes.push({
|
|
43
|
-
name: 'extensionFrame',
|
|
44
|
-
node: extensionFrame
|
|
45
|
-
});
|
|
46
|
-
extensionNodes.push({
|
|
47
|
-
name: 'multiBodiedExtension',
|
|
48
|
-
node: multiBodiedExtension
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
44
|
return extensionNodes;
|
|
52
45
|
},
|
|
53
46
|
getSharedState(state) {
|
|
@@ -2,7 +2,6 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import { createSelectionClickHandler, GapCursorSelection, isSelectionAtEndOfNode, isSelectionAtStartOfNode } from '@atlaskit/editor-common/selection';
|
|
3
3
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { findParentNodeOfTypeClosestToPos, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { clearEditingContext, updateState } from '../commands';
|
|
7
6
|
import { lazyExtensionNodeView } from '../nodeviews/lazyExtension';
|
|
8
7
|
import { createCommand, createPluginState, getPluginState } from '../plugin-factory';
|
|
@@ -241,9 +240,6 @@ const createPlugin = (dispatch, providerFactory, extensionHandlers, portalProvid
|
|
|
241
240
|
multiBodiedExtension: lazyExtensionNodeView('multiBodiedExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags)
|
|
242
241
|
},
|
|
243
242
|
createSelectionBetween: function (view, anchor, head) {
|
|
244
|
-
if (!fg('platform.editor.multi-bodied-extension_0rygg')) {
|
|
245
|
-
return null;
|
|
246
|
-
}
|
|
247
243
|
const {
|
|
248
244
|
schema,
|
|
249
245
|
doc
|
package/dist/es2019/toolbar.js
CHANGED
|
@@ -13,7 +13,6 @@ import CenterIcon from '@atlaskit/icon/glyph/editor/media-center';
|
|
|
13
13
|
import FullWidthIcon from '@atlaskit/icon/glyph/editor/media-full-width';
|
|
14
14
|
import WideIcon from '@atlaskit/icon/glyph/editor/media-wide';
|
|
15
15
|
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
16
|
import { editExtension } from './actions';
|
|
18
17
|
import { removeDescendantNodes, removeExtension, updateExtensionLayout } from './commands';
|
|
19
18
|
import { pluginKey as macroPluginKey } from './pm-plugins/macro/plugin-key';
|
|
@@ -36,7 +35,7 @@ const isLayoutSupported = (state, selectedExtNode) => {
|
|
|
36
35
|
if (!selectedExtNode) {
|
|
37
36
|
return false;
|
|
38
37
|
}
|
|
39
|
-
const isMultiBodiedExtension =
|
|
38
|
+
const isMultiBodiedExtension = selectedExtNode.node.type === multiBodiedExtension;
|
|
40
39
|
const isNonEmbeddedBodiedExtension = selectedExtNode.node.type === bodiedExtension && !hasParentNodeOfType([multiBodiedExtension].filter(Boolean))(selection);
|
|
41
40
|
const isNonEmbeddedExtension = selectedExtNode.node.type === extension && !hasParentNodeOfType([bodiedExtension, table, expand, multiBodiedExtension].filter(Boolean))(selection);
|
|
42
41
|
|
package/dist/esm/plugin.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { extension, extensionFrame, inlineExtension, multiBodiedExtension } from '@atlaskit/adf-schema';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { createEditSelectedExtensionAction, insertOrReplaceBodiedExtension as _insertOrReplaceBodiedExtension, insertOrReplaceExtension as _insertOrReplaceExtension } from './actions';
|
|
5
4
|
import { forceAutoSave } from './commands';
|
|
6
5
|
import { getContextPanel } from './context-panel';
|
|
@@ -35,19 +34,13 @@ export var extensionPlugin = function extensionPlugin(_ref) {
|
|
|
35
34
|
}, {
|
|
36
35
|
name: 'inlineExtension',
|
|
37
36
|
node: inlineExtension
|
|
37
|
+
}, {
|
|
38
|
+
name: 'extensionFrame',
|
|
39
|
+
node: extensionFrame
|
|
40
|
+
}, {
|
|
41
|
+
name: 'multiBodiedExtension',
|
|
42
|
+
node: multiBodiedExtension
|
|
38
43
|
}];
|
|
39
|
-
|
|
40
|
-
// Revert to returning all nodes without local variable, once FF is removed
|
|
41
|
-
if (fg('platform.editor.multi-bodied-extension_0rygg')) {
|
|
42
|
-
extensionNodes.push({
|
|
43
|
-
name: 'extensionFrame',
|
|
44
|
-
node: extensionFrame
|
|
45
|
-
});
|
|
46
|
-
extensionNodes.push({
|
|
47
|
-
name: 'multiBodiedExtension',
|
|
48
|
-
node: multiBodiedExtension
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
44
|
return extensionNodes;
|
|
52
45
|
},
|
|
53
46
|
getSharedState: function getSharedState(state) {
|
|
@@ -5,7 +5,6 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
5
5
|
import { createSelectionClickHandler, GapCursorSelection, isSelectionAtEndOfNode, isSelectionAtStartOfNode } from '@atlaskit/editor-common/selection';
|
|
6
6
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { findParentNodeOfTypeClosestToPos, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { clearEditingContext, updateState } from '../commands';
|
|
10
9
|
import { lazyExtensionNodeView } from '../nodeviews/lazyExtension';
|
|
11
10
|
import { createCommand, createPluginState, getPluginState } from '../plugin-factory';
|
|
@@ -280,9 +279,6 @@ var createPlugin = function createPlugin(dispatch, providerFactory, extensionHan
|
|
|
280
279
|
multiBodiedExtension: lazyExtensionNodeView('multiBodiedExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags)
|
|
281
280
|
},
|
|
282
281
|
createSelectionBetween: function createSelectionBetween(view, anchor, head) {
|
|
283
|
-
if (!fg('platform.editor.multi-bodied-extension_0rygg')) {
|
|
284
|
-
return null;
|
|
285
|
-
}
|
|
286
282
|
var _view$state3 = view.state,
|
|
287
283
|
schema = _view$state3.schema,
|
|
288
284
|
doc = _view$state3.doc;
|
package/dist/esm/toolbar.js
CHANGED
|
@@ -14,7 +14,6 @@ import CenterIcon from '@atlaskit/icon/glyph/editor/media-center';
|
|
|
14
14
|
import FullWidthIcon from '@atlaskit/icon/glyph/editor/media-full-width';
|
|
15
15
|
import WideIcon from '@atlaskit/icon/glyph/editor/media-wide';
|
|
16
16
|
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
17
|
import { editExtension } from './actions';
|
|
19
18
|
import { removeDescendantNodes, removeExtension, updateExtensionLayout } from './commands';
|
|
20
19
|
import { pluginKey as macroPluginKey } from './pm-plugins/macro/plugin-key';
|
|
@@ -32,7 +31,7 @@ var isLayoutSupported = function isLayoutSupported(state, selectedExtNode) {
|
|
|
32
31
|
if (!selectedExtNode) {
|
|
33
32
|
return false;
|
|
34
33
|
}
|
|
35
|
-
var isMultiBodiedExtension =
|
|
34
|
+
var isMultiBodiedExtension = selectedExtNode.node.type === multiBodiedExtension;
|
|
36
35
|
var isNonEmbeddedBodiedExtension = selectedExtNode.node.type === bodiedExtension && !hasParentNodeOfType([multiBodiedExtension].filter(Boolean))(selection);
|
|
37
36
|
var isNonEmbeddedExtension = selectedExtNode.node.type === extension && !hasParentNodeOfType([bodiedExtension, table, expand, multiBodiedExtension].filter(Boolean))(selection);
|
|
38
37
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.5",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
".": "./src/index.ts"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaskit/adf-schema": "^42.
|
|
27
|
-
"@atlaskit/adf-utils": "^19.
|
|
26
|
+
"@atlaskit/adf-schema": "^42.3.1",
|
|
27
|
+
"@atlaskit/adf-utils": "^19.10.0",
|
|
28
28
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
29
|
-
"@atlaskit/avatar": "^21.
|
|
30
|
-
"@atlaskit/button": "^20.
|
|
31
|
-
"@atlaskit/checkbox": "^15.
|
|
29
|
+
"@atlaskit/avatar": "^21.16.0",
|
|
30
|
+
"@atlaskit/button": "^20.3.0",
|
|
31
|
+
"@atlaskit/checkbox": "^15.1.0",
|
|
32
32
|
"@atlaskit/datetime-picker": "^15.4.0",
|
|
33
|
-
"@atlaskit/editor-common": "^
|
|
33
|
+
"@atlaskit/editor-common": "^94.2.0",
|
|
34
34
|
"@atlaskit/editor-json-transformer": "^8.20.0",
|
|
35
35
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
36
36
|
"@atlaskit/editor-plugin-context-identifier": "^1.3.0",
|
|
@@ -41,22 +41,22 @@
|
|
|
41
41
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^3.0.0",
|
|
43
43
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
44
|
-
"@atlaskit/empty-state": "^7.
|
|
44
|
+
"@atlaskit/empty-state": "^7.12.0",
|
|
45
45
|
"@atlaskit/form": "^10.5.0",
|
|
46
46
|
"@atlaskit/heading": "2.4.6",
|
|
47
|
-
"@atlaskit/icon": "^22.
|
|
47
|
+
"@atlaskit/icon": "^22.24.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
49
49
|
"@atlaskit/primitives": "^12.2.0",
|
|
50
50
|
"@atlaskit/radio": "^6.5.0",
|
|
51
51
|
"@atlaskit/section-message": "^6.6.0",
|
|
52
|
-
"@atlaskit/select": "^18.
|
|
52
|
+
"@atlaskit/select": "^18.2.0",
|
|
53
53
|
"@atlaskit/smart-user-picker": "^6.11.0",
|
|
54
54
|
"@atlaskit/spinner": "^16.3.0",
|
|
55
55
|
"@atlaskit/tabs": "^16.5.0",
|
|
56
56
|
"@atlaskit/textarea": "^5.6.0",
|
|
57
57
|
"@atlaskit/textfield": "^6.5.0",
|
|
58
58
|
"@atlaskit/theme": "^14.0.0",
|
|
59
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
59
|
+
"@atlaskit/tmp-editor-statsig": "^2.8.0",
|
|
60
60
|
"@atlaskit/toggle": "^13.4.0",
|
|
61
61
|
"@atlaskit/tokens": "^2.0.0",
|
|
62
62
|
"@atlaskit/tooltip": "^18.8.0",
|
|
@@ -110,10 +110,5 @@
|
|
|
110
110
|
"no-unused-dependencies": {
|
|
111
111
|
"checkDevDependencies": true
|
|
112
112
|
}
|
|
113
|
-
},
|
|
114
|
-
"platform-feature-flags": {
|
|
115
|
-
"platform.editor.multi-bodied-extension_0rygg": {
|
|
116
|
-
"type": "boolean"
|
|
117
|
-
}
|
|
118
113
|
}
|
|
119
114
|
}
|