@atlaskit/editor-plugin-decorations 12.0.7 → 12.0.8
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-decorations
|
|
2
2
|
|
|
3
|
+
## 12.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b2f53114889ac`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b2f53114889ac) -
|
|
8
|
+
Clean up feature gate `platform_editor_block_menu_jira_patch_1`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 12.0.7
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ var _state = require("@atlaskit/editor-prosemirror/state");
|
|
|
9
9
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
10
10
|
var _editorTables = require("@atlaskit/editor-tables");
|
|
11
11
|
var _utils = require("@atlaskit/editor-tables/utils");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
14
13
|
var _main = require("./main");
|
|
15
14
|
var hoverDecorationCommand = exports.hoverDecorationCommand = function hoverDecorationCommand(_ref) {
|
|
@@ -19,10 +18,7 @@ var hoverDecorationCommand = exports.hoverDecorationCommand = function hoverDeco
|
|
|
19
18
|
providedSelection = _ref.selection;
|
|
20
19
|
return function (_ref2) {
|
|
21
20
|
var tr = _ref2.tr;
|
|
22
|
-
|
|
23
|
-
// Use the provided selection (e.g., preservedSelection) or fall back to tr.selection.
|
|
24
|
-
// To clean up: always use providedSelection || tr.selection, remove the feature flag check.
|
|
25
|
-
var selection = ((0, _platformFeatureFlags.fg)('platform_editor_block_menu_jira_patch_1') ? providedSelection : undefined) || tr.selection;
|
|
21
|
+
var selection = providedSelection || tr.selection;
|
|
26
22
|
var decorations = [];
|
|
27
23
|
var handleTableSelection = function handleTableSelection() {
|
|
28
24
|
var pos = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : selection.$from;
|
|
@@ -3,7 +3,6 @@ import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state
|
|
|
3
3
|
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import { CellSelection, TableMap } from '@atlaskit/editor-tables';
|
|
5
5
|
import { findTableClosestToPos } from '@atlaskit/editor-tables/utils';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
7
|
import { ACTIONS, decorationStateKey } from './main';
|
|
9
8
|
export const hoverDecorationCommand = ({
|
|
@@ -13,10 +12,7 @@ export const hoverDecorationCommand = ({
|
|
|
13
12
|
}) => ({
|
|
14
13
|
tr
|
|
15
14
|
}) => {
|
|
16
|
-
|
|
17
|
-
// Use the provided selection (e.g., preservedSelection) or fall back to tr.selection.
|
|
18
|
-
// To clean up: always use providedSelection || tr.selection, remove the feature flag check.
|
|
19
|
-
const selection = (fg('platform_editor_block_menu_jira_patch_1') ? providedSelection : undefined) || tr.selection;
|
|
15
|
+
const selection = providedSelection || tr.selection;
|
|
20
16
|
const decorations = [];
|
|
21
17
|
const handleTableSelection = (pos = selection.$from) => {
|
|
22
18
|
const table = findTableClosestToPos(pos);
|
|
@@ -3,7 +3,6 @@ import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state
|
|
|
3
3
|
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import { CellSelection, TableMap } from '@atlaskit/editor-tables';
|
|
5
5
|
import { findTableClosestToPos } from '@atlaskit/editor-tables/utils';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
7
|
import { ACTIONS, decorationStateKey } from './main';
|
|
9
8
|
export var hoverDecorationCommand = function hoverDecorationCommand(_ref) {
|
|
@@ -13,10 +12,7 @@ export var hoverDecorationCommand = function hoverDecorationCommand(_ref) {
|
|
|
13
12
|
providedSelection = _ref.selection;
|
|
14
13
|
return function (_ref2) {
|
|
15
14
|
var tr = _ref2.tr;
|
|
16
|
-
|
|
17
|
-
// Use the provided selection (e.g., preservedSelection) or fall back to tr.selection.
|
|
18
|
-
// To clean up: always use providedSelection || tr.selection, remove the feature flag check.
|
|
19
|
-
var selection = (fg('platform_editor_block_menu_jira_patch_1') ? providedSelection : undefined) || tr.selection;
|
|
15
|
+
var selection = providedSelection || tr.selection;
|
|
20
16
|
var decorations = [];
|
|
21
17
|
var handleTableSelection = function handleTableSelection() {
|
|
22
18
|
var pos = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : selection.$from;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-decorations",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.8",
|
|
4
4
|
"description": "Decorations plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
23
23
|
"@atlaskit/editor-tables": "^3.0.0",
|
|
24
24
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
25
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
25
|
+
"@atlaskit/tmp-editor-statsig": "^112.0.0",
|
|
26
26
|
"@babel/runtime": "^7.0.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@atlaskit/editor-common": "^116.
|
|
29
|
+
"@atlaskit/editor-common": "^116.12.0",
|
|
30
30
|
"react": "^18.2.0",
|
|
31
31
|
"react-dom": "^18.2.0"
|
|
32
32
|
},
|
|
@@ -68,10 +68,5 @@
|
|
|
68
68
|
"emotion"
|
|
69
69
|
]
|
|
70
70
|
}
|
|
71
|
-
},
|
|
72
|
-
"platform-feature-flags": {
|
|
73
|
-
"platform_editor_block_menu_jira_patch_1": {
|
|
74
|
-
"type": "boolean"
|
|
75
|
-
}
|
|
76
71
|
}
|
|
77
72
|
}
|