@atlaskit/editor-plugin-panel 2.2.0 → 2.3.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,28 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 2.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#128347](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128347)
8
+ [`e33566cebd5d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e33566cebd5d1) -
9
+ [ED-24175] bump @atlaskit/adf-schema to 40.8.1 and @atlassian/adf-schema-json to 1.22.0 to
10
+ promotecodeblocks & media in quotes, and nested expands in expands to full schema, and allow
11
+ quotes in panels and decisions in lists in stage0 schema, and a validator spec change
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
17
+ ## 2.2.1
18
+
19
+ ### Patch Changes
20
+
21
+ - [#124134](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124134)
22
+ [`66625e5ffed2f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/66625e5ffed2f) -
23
+ Removed FF platform.editor.allow-custom-cut-for-panel
24
+ - Updated dependencies
25
+
3
26
  ## 2.2.0
4
27
 
5
28
  ### 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
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.allow-custom-cut-for-panel')) {
21
- var tr = transactions.find(function (tr) {
22
- return tr.getMeta('uiEvent') === 'cut';
23
- });
24
- if (tr) {
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
- if (getBooleanFF('platform.editor.allow-custom-cut-for-panel')) {
16
- const tr = transactions.find(tr => tr.getMeta('uiEvent') === 'cut');
17
- if (tr) {
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
- if (getBooleanFF('platform.editor.allow-custom-cut-for-panel')) {
15
- var tr = transactions.find(function (tr) {
16
- return tr.getMeta('uiEvent') === 'cut';
17
- });
18
- if (tr) {
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.0",
3
+ "version": "2.3.0",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,16 +33,15 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/adf-schema": "^40.3.0",
37
- "@atlaskit/editor-common": "^86.8.0",
36
+ "@atlaskit/adf-schema": "^40.8.1",
37
+ "@atlaskit/editor-common": "^87.6.0",
38
38
  "@atlaskit/editor-palette": "1.6.0",
39
- "@atlaskit/editor-plugin-analytics": "^1.6.0",
39
+ "@atlaskit/editor-plugin-analytics": "^1.7.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^1.2.0",
41
41
  "@atlaskit/editor-prosemirror": "5.0.1",
42
42
  "@atlaskit/editor-shared-styles": "^2.13.0",
43
- "@atlaskit/emoji": "^67.6.0",
44
- "@atlaskit/icon": "^22.7.0",
45
- "@atlaskit/platform-feature-flags": "^0.3.0",
43
+ "@atlaskit/emoji": "^67.7.0",
44
+ "@atlaskit/icon": "^22.11.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