@atlaskit/editor-plugin-selection 7.0.27 → 7.1.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 +21 -0
- package/dist/cjs/pm-plugins/events/keydown.js +2 -2
- package/dist/cjs/pm-plugins/gap-cursor-main.js +2 -2
- package/dist/es2019/pm-plugins/events/keydown.js +2 -2
- package/dist/es2019/pm-plugins/gap-cursor-main.js +2 -2
- package/dist/esm/pm-plugins/events/keydown.js +2 -2
- package/dist/esm/pm-plugins/gap-cursor-main.js +2 -2
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection
|
|
2
2
|
|
|
3
|
+
## 7.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`9398ad3ad409c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9398ad3ad409c) -
|
|
8
|
+
[ux] [EDITOR-5376] change single player expands feature gate to the new
|
|
9
|
+
`platform_editor_single_player_expand` experiment
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 7.0.28
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`31ee998a097db`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/31ee998a097db) -
|
|
20
|
+
Replace expValEquals/expValEqualsNoExposure with editorExperiment for platform_synced_block
|
|
21
|
+
experiment checks
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 7.0.27
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.createOnKeydown = createOnKeydown;
|
|
7
7
|
var _expand = require("@atlaskit/editor-common/expand");
|
|
8
8
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
9
|
-
var
|
|
9
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
10
10
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
11
11
|
/*
|
|
12
12
|
* The way expand was built, no browser recognize selection on it.
|
|
@@ -22,7 +22,7 @@ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equa
|
|
|
22
22
|
var isCollapsedExpand = function isCollapsedExpand(node, _ref) {
|
|
23
23
|
var __livePage = _ref.__livePage;
|
|
24
24
|
var currentExpandedState;
|
|
25
|
-
if (__livePage && (0,
|
|
25
|
+
if (__livePage && (0, _expValEquals.expValEquals)('platform_editor_single_player_expand', 'isEnabled', true)) {
|
|
26
26
|
currentExpandedState = node ? !_expand.expandedState.get(node) : undefined;
|
|
27
27
|
} else if (__livePage) {
|
|
28
28
|
currentExpandedState = node === null || node === void 0 ? void 0 : node.attrs.__expanded;
|
|
@@ -10,7 +10,7 @@ var _state = require("@atlaskit/editor-prosemirror/state");
|
|
|
10
10
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
11
11
|
var _view2 = require("@atlaskit/editor-prosemirror/view");
|
|
12
12
|
var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
|
|
13
|
-
var
|
|
13
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
14
14
|
var _types = require("../types");
|
|
15
15
|
var _gapCursorPluginKey = require("./gap-cursor-plugin-key");
|
|
16
16
|
var _actions = require("./gap-cursor/actions");
|
|
@@ -55,7 +55,7 @@ var plugin = new _safePlugin.SafePlugin({
|
|
|
55
55
|
}
|
|
56
56
|
return {
|
|
57
57
|
update: function update(view) {
|
|
58
|
-
if ((0,
|
|
58
|
+
if ((0, _experiments.editorExperiment)('platform_synced_block', true)) {
|
|
59
59
|
// Caret visibility now handled directly via CSS selector in gapCursorStyles.ts
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { expandedState, getNextNodeExpandPos } from '@atlaskit/editor-common/expand';
|
|
2
2
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import {
|
|
3
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
4
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
5
5
|
|
|
6
6
|
/*
|
|
@@ -18,7 +18,7 @@ const isCollapsedExpand = (node, {
|
|
|
18
18
|
__livePage
|
|
19
19
|
}) => {
|
|
20
20
|
let currentExpandedState;
|
|
21
|
-
if (__livePage &&
|
|
21
|
+
if (__livePage && expValEquals('platform_editor_single_player_expand', 'isEnabled', true)) {
|
|
22
22
|
currentExpandedState = node ? !expandedState.get(node) : undefined;
|
|
23
23
|
} else if (__livePage) {
|
|
24
24
|
currentExpandedState = node === null || node === void 0 ? void 0 : node.attrs.__expanded;
|
|
@@ -4,7 +4,7 @@ import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
4
4
|
import { findPositionOfNodeBefore } from '@atlaskit/editor-prosemirror/utils';
|
|
5
5
|
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
7
|
-
import {
|
|
7
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
8
|
import { selectionPluginKey } from '../types';
|
|
9
9
|
import { gapCursorPluginKey } from './gap-cursor-plugin-key';
|
|
10
10
|
import { deleteNode } from './gap-cursor/actions';
|
|
@@ -47,7 +47,7 @@ const plugin = new SafePlugin({
|
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
49
|
update(view) {
|
|
50
|
-
if (
|
|
50
|
+
if (editorExperiment('platform_synced_block', true)) {
|
|
51
51
|
// Caret visibility now handled directly via CSS selector in gapCursorStyles.ts
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { expandedState, getNextNodeExpandPos } from '@atlaskit/editor-common/expand';
|
|
2
2
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import {
|
|
3
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
4
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
5
5
|
|
|
6
6
|
/*
|
|
@@ -17,7 +17,7 @@ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equ
|
|
|
17
17
|
var isCollapsedExpand = function isCollapsedExpand(node, _ref) {
|
|
18
18
|
var __livePage = _ref.__livePage;
|
|
19
19
|
var currentExpandedState;
|
|
20
|
-
if (__livePage &&
|
|
20
|
+
if (__livePage && expValEquals('platform_editor_single_player_expand', 'isEnabled', true)) {
|
|
21
21
|
currentExpandedState = node ? !expandedState.get(node) : undefined;
|
|
22
22
|
} else if (__livePage) {
|
|
23
23
|
currentExpandedState = node === null || node === void 0 ? void 0 : node.attrs.__expanded;
|
|
@@ -4,7 +4,7 @@ import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
4
4
|
import { findPositionOfNodeBefore } from '@atlaskit/editor-prosemirror/utils';
|
|
5
5
|
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
7
|
-
import {
|
|
7
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
8
|
import { selectionPluginKey } from '../types';
|
|
9
9
|
import { gapCursorPluginKey } from './gap-cursor-plugin-key';
|
|
10
10
|
import { deleteNode } from './gap-cursor/actions';
|
|
@@ -49,7 +49,7 @@ var plugin = new SafePlugin({
|
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
51
|
update: function update(view) {
|
|
52
|
-
if (
|
|
52
|
+
if (editorExperiment('platform_synced_block', true)) {
|
|
53
53
|
// Caret visibility now handled directly via CSS selector in gapCursorStyles.ts
|
|
54
54
|
return;
|
|
55
55
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection",
|
|
3
|
-
"version": "7.0
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "Selection plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
26
26
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
27
27
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
28
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
29
|
-
"@atlaskit/tokens": "^11.
|
|
28
|
+
"@atlaskit/tmp-editor-statsig": "^35.5.0",
|
|
29
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
30
30
|
"@babel/runtime": "^7.0.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@atlaskit/editor-common": "^111.
|
|
33
|
+
"@atlaskit/editor-common": "^111.32.0",
|
|
34
34
|
"react": "^18.2.0"
|
|
35
35
|
},
|
|
36
36
|
"techstack": {
|
|
@@ -75,9 +75,6 @@
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"platform-feature-flags": {
|
|
78
|
-
"platform-editor-single-player-expand": {
|
|
79
|
-
"type": "boolean"
|
|
80
|
-
},
|
|
81
78
|
"platform_editor_nested_tables_gap_cursor": {
|
|
82
79
|
"type": "boolean"
|
|
83
80
|
},
|