@atlaskit/editor-plugin-breakout 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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-plugin-breakout
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
+
3
15
  ## 7.0.27
4
16
 
5
17
  ### 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 _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
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, _platformFeatureFlags.fg)('platform-editor-single-player-expand')) {
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, _platformFeatureFlags.fg)('platform-editor-single-player-expand')) {
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 { fg } from '@atlaskit/platform-feature-flags';
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 || fg('platform-editor-single-player-expand')) {
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 || fg('platform-editor-single-player-expand')) {
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 { fg } from '@atlaskit/platform-feature-flags';
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 || fg('platform-editor-single-player-expand')) {
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 || fg('platform-editor-single-player-expand')) {
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": "7.0.27",
3
+ "version": "7.1.0",
4
4
  "description": "Breakout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,7 +30,7 @@
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
32
  "@atlaskit/adf-schema": "^52.2.0",
33
- "@atlaskit/editor-plugin-block-controls": "^8.10.0",
33
+ "@atlaskit/editor-plugin-block-controls": "^8.11.0",
34
34
  "@atlaskit/editor-plugin-editor-disabled": "^7.0.0",
35
35
  "@atlaskit/editor-plugin-editor-viewmode": "^9.0.0",
36
36
  "@atlaskit/editor-plugin-guideline": "^7.0.0",
@@ -43,8 +43,8 @@
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.0.0",
47
- "@atlaskit/tokens": "^11.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^35.5.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": "^111.30.0",
56
+ "@atlaskit/editor-common": "^111.32.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
  }