@atlaskit/editor-plugin-breakout 7.0.27 → 8.0.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,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-breakout
|
|
2
2
|
|
|
3
|
+
## 8.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 7.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`9398ad3ad409c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9398ad3ad409c) -
|
|
14
|
+
[ux] [EDITOR-5376] change single player expands feature gate to the new
|
|
15
|
+
`platform_editor_single_player_expand` experiment
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 7.0.27
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.updateExpandedStateNew = exports.updateExpandedState = void 0;
|
|
7
7
|
var _expand = require("@atlaskit/editor-common/expand");
|
|
8
|
-
var
|
|
8
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
9
9
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
10
10
|
var updateExpandedStateNew = exports.updateExpandedStateNew = function updateExpandedStateNew(_ref) {
|
|
11
11
|
var tr = _ref.tr,
|
|
12
12
|
node = _ref.node,
|
|
13
13
|
pos = _ref.pos,
|
|
14
14
|
isLivePage = _ref.isLivePage;
|
|
15
|
-
if (isLivePage || (0,
|
|
15
|
+
if (isLivePage || (0, _expValEquals.expValEquals)('platform_editor_single_player_expand', 'isEnabled', true)) {
|
|
16
16
|
var wasExpandExpanded = _expand.expandedState.get(node);
|
|
17
17
|
var newExpand = tr.doc.nodeAt(pos);
|
|
18
18
|
if (wasExpandExpanded !== undefined && newExpand) {
|
|
@@ -29,7 +29,7 @@ var updateExpandedState = exports.updateExpandedState = function updateExpandedS
|
|
|
29
29
|
isLivePage: isLivePage
|
|
30
30
|
});
|
|
31
31
|
} else {
|
|
32
|
-
if (isLivePage || (0,
|
|
32
|
+
if (isLivePage || (0, _expValEquals.expValEquals)('platform_editor_single_player_expand', 'isEnabled', true)) {
|
|
33
33
|
var wasExpandExpanded = _expand.expandedState.get(node.node);
|
|
34
34
|
var newExpand = tr.doc.nodeAt(node.pos);
|
|
35
35
|
if (wasExpandExpanded !== undefined && newExpand) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { expandedState } from '@atlaskit/editor-common/expand';
|
|
2
|
-
import {
|
|
2
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
3
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
4
4
|
export const updateExpandedStateNew = ({
|
|
5
5
|
tr,
|
|
@@ -7,7 +7,7 @@ export const updateExpandedStateNew = ({
|
|
|
7
7
|
pos,
|
|
8
8
|
isLivePage
|
|
9
9
|
}) => {
|
|
10
|
-
if (isLivePage ||
|
|
10
|
+
if (isLivePage || expValEquals('platform_editor_single_player_expand', 'isEnabled', true)) {
|
|
11
11
|
const wasExpandExpanded = expandedState.get(node);
|
|
12
12
|
const newExpand = tr.doc.nodeAt(pos);
|
|
13
13
|
if (wasExpandExpanded !== undefined && newExpand) {
|
|
@@ -24,7 +24,7 @@ export const updateExpandedState = (tr, node, isLivePage) => {
|
|
|
24
24
|
isLivePage
|
|
25
25
|
});
|
|
26
26
|
} else {
|
|
27
|
-
if (isLivePage ||
|
|
27
|
+
if (isLivePage || expValEquals('platform_editor_single_player_expand', 'isEnabled', true)) {
|
|
28
28
|
const wasExpandExpanded = expandedState.get(node.node);
|
|
29
29
|
const newExpand = tr.doc.nodeAt(node.pos);
|
|
30
30
|
if (wasExpandExpanded !== undefined && newExpand) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { expandedState } from '@atlaskit/editor-common/expand';
|
|
2
|
-
import {
|
|
2
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
3
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
4
4
|
export var updateExpandedStateNew = function updateExpandedStateNew(_ref) {
|
|
5
5
|
var tr = _ref.tr,
|
|
6
6
|
node = _ref.node,
|
|
7
7
|
pos = _ref.pos,
|
|
8
8
|
isLivePage = _ref.isLivePage;
|
|
9
|
-
if (isLivePage ||
|
|
9
|
+
if (isLivePage || expValEquals('platform_editor_single_player_expand', 'isEnabled', true)) {
|
|
10
10
|
var wasExpandExpanded = expandedState.get(node);
|
|
11
11
|
var newExpand = tr.doc.nodeAt(pos);
|
|
12
12
|
if (wasExpandExpanded !== undefined && newExpand) {
|
|
@@ -23,7 +23,7 @@ export var updateExpandedState = function updateExpandedState(tr, node, isLivePa
|
|
|
23
23
|
isLivePage: isLivePage
|
|
24
24
|
});
|
|
25
25
|
} else {
|
|
26
|
-
if (isLivePage ||
|
|
26
|
+
if (isLivePage || expValEquals('platform_editor_single_player_expand', 'isEnabled', true)) {
|
|
27
27
|
var wasExpandExpanded = expandedState.get(node.node);
|
|
28
28
|
var newExpand = tr.doc.nodeAt(node.pos);
|
|
29
29
|
if (wasExpandExpanded !== undefined && newExpand) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-breakout",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Breakout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,21 +30,21 @@
|
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/adf-schema": "^52.2.0",
|
|
33
|
-
"@atlaskit/editor-plugin-block-controls": "^
|
|
34
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
35
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
36
|
-
"@atlaskit/editor-plugin-guideline": "^
|
|
37
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
38
|
-
"@atlaskit/editor-plugin-user-intent": "^
|
|
39
|
-
"@atlaskit/editor-plugin-width": "^
|
|
33
|
+
"@atlaskit/editor-plugin-block-controls": "^9.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-editor-disabled": "^8.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^10.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-guideline": "^8.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-interaction": "^15.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-user-intent": "^6.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-width": "^9.0.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
41
41
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
42
42
|
"@atlaskit/icon": "^32.0.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
45
45
|
"@atlaskit/theme": "^22.0.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^35.
|
|
47
|
-
"@atlaskit/tokens": "^11.
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^35.10.0",
|
|
47
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
48
48
|
"@atlaskit/tooltip": "^20.14.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"uuid": "^3.1.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@atlaskit/editor-common": "^
|
|
56
|
+
"@atlaskit/editor-common": "^112.0.0",
|
|
57
57
|
"react": "^18.2.0",
|
|
58
58
|
"react-dom": "^18.2.0",
|
|
59
59
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -99,9 +99,6 @@
|
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
"platform-feature-flags": {
|
|
102
|
-
"platform-editor-single-player-expand": {
|
|
103
|
-
"type": "boolean"
|
|
104
|
-
},
|
|
105
102
|
"platform_editor_fix_resize_selected_node": {
|
|
106
103
|
"type": "boolean"
|
|
107
104
|
}
|