@atlaskit/editor-plugin-panel 2.2.0 → 2.2.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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-panel
|
|
2
2
|
|
|
3
|
+
## 2.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#124134](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124134)
|
|
8
|
+
[`66625e5ffed2f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/66625e5ffed2f) -
|
|
9
|
+
Removed FF platform.editor.allow-custom-cut-for-panel
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 2.2.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -7,7 +7,6 @@ exports.createPlugin = void 0;
|
|
|
7
7
|
var _panel = require("@atlaskit/editor-common/panel");
|
|
8
8
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
9
9
|
var _selection = require("@atlaskit/editor-common/selection");
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
10
|
var _panel2 = require("../nodeviews/panel");
|
|
12
11
|
var _types = require("../types");
|
|
13
12
|
var _utils = require("../utils");
|
|
@@ -17,13 +16,11 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatch, provid
|
|
|
17
16
|
return new _safePlugin.SafePlugin({
|
|
18
17
|
key: _types.pluginKey,
|
|
19
18
|
appendTransaction: function appendTransaction(transactions, oldState, newState) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return (0, _utils.handleCut)(newState, oldState);
|
|
26
|
-
}
|
|
19
|
+
var tr = transactions.find(function (tr) {
|
|
20
|
+
return tr.getMeta('uiEvent') === 'cut';
|
|
21
|
+
});
|
|
22
|
+
if (tr) {
|
|
23
|
+
return (0, _utils.handleCut)(newState, oldState);
|
|
27
24
|
}
|
|
28
25
|
},
|
|
29
26
|
props: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
import { createSelectionClickHandler } from '@atlaskit/editor-common/selection';
|
|
4
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import { getPanelNodeView } from '../nodeviews/panel';
|
|
6
5
|
import { pluginKey } from '../types';
|
|
7
6
|
import { handleCut } from '../utils';
|
|
@@ -12,11 +11,9 @@ export const createPlugin = (dispatch, providerFactory, pluginOptions) => {
|
|
|
12
11
|
return new SafePlugin({
|
|
13
12
|
key: pluginKey,
|
|
14
13
|
appendTransaction: (transactions, oldState, newState) => {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return handleCut(newState, oldState);
|
|
19
|
-
}
|
|
14
|
+
const tr = transactions.find(tr => tr.getMeta('uiEvent') === 'cut');
|
|
15
|
+
if (tr) {
|
|
16
|
+
return handleCut(newState, oldState);
|
|
20
17
|
}
|
|
21
18
|
},
|
|
22
19
|
props: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
import { createSelectionClickHandler } from '@atlaskit/editor-common/selection';
|
|
4
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import { getPanelNodeView } from '../nodeviews/panel';
|
|
6
5
|
import { pluginKey } from '../types';
|
|
7
6
|
import { handleCut } from '../utils';
|
|
@@ -11,13 +10,11 @@ export var createPlugin = function createPlugin(dispatch, providerFactory, plugi
|
|
|
11
10
|
return new SafePlugin({
|
|
12
11
|
key: pluginKey,
|
|
13
12
|
appendTransaction: function appendTransaction(transactions, oldState, newState) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return handleCut(newState, oldState);
|
|
20
|
-
}
|
|
13
|
+
var tr = transactions.find(function (tr) {
|
|
14
|
+
return tr.getMeta('uiEvent') === 'cut';
|
|
15
|
+
});
|
|
16
|
+
if (tr) {
|
|
17
|
+
return handleCut(newState, oldState);
|
|
21
18
|
}
|
|
22
19
|
},
|
|
23
20
|
props: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-panel",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Panel plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^40.3.0",
|
|
37
|
-
"@atlaskit/editor-common": "^
|
|
37
|
+
"@atlaskit/editor-common": "^87.0.0",
|
|
38
38
|
"@atlaskit/editor-palette": "1.6.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^1.6.0",
|
|
40
40
|
"@atlaskit/editor-plugin-decorations": "^1.2.0",
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
43
43
|
"@atlaskit/emoji": "^67.6.0",
|
|
44
44
|
"@atlaskit/icon": "^22.7.0",
|
|
45
|
-
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
46
45
|
"@atlaskit/theme": "^12.11.0",
|
|
47
46
|
"@babel/runtime": "^7.0.0"
|
|
48
47
|
},
|
|
@@ -90,11 +89,6 @@
|
|
|
90
89
|
]
|
|
91
90
|
}
|
|
92
91
|
},
|
|
93
|
-
"platform-feature-flags": {
|
|
94
|
-
"platform.editor.allow-custom-cut-for-panel": {
|
|
95
|
-
"type": "boolean"
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
92
|
"stricter": {
|
|
99
93
|
"no-unused-dependencies": {
|
|
100
94
|
"checkDevDependencies": true
|