@atlaskit/editor-plugin-expand 8.2.4 → 8.2.6

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,19 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 8.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d63d5af234d7f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d63d5af234d7f) -
8
+ Fix issue when expand is collapsed after streaming.
9
+ - Updated dependencies
10
+
11
+ ## 8.2.5
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 8.2.4
4
18
 
5
19
  ### Patch Changes
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.toggleExpandRange = void 0;
7
7
  var _expand = require("@atlaskit/editor-common/expand");
8
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
8
9
  var toggleExpandRange = exports.toggleExpandRange = function toggleExpandRange(from, to) {
9
10
  var open = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
10
11
  return function (_ref) {
@@ -19,6 +20,9 @@ var toggleExpandRange = exports.toggleExpandRange = function toggleExpandRange(f
19
20
  _expand.expandedState.set(node, open);
20
21
  }
21
22
  });
23
+ if ((0, _expValEquals.expValEquals)('platform_editor_aifc_expand_collapses_oncreate_fix', 'isEnabled', true)) {
24
+ return tr;
25
+ }
22
26
  return null;
23
27
  };
24
28
  };
@@ -1,4 +1,5 @@
1
1
  import { expandedState } from '@atlaskit/editor-common/expand';
2
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
3
  export const toggleExpandRange = (from, to, open = true) => ({
3
4
  tr
4
5
  }) => {
@@ -13,5 +14,8 @@ export const toggleExpandRange = (from, to, open = true) => ({
13
14
  expandedState.set(node, open);
14
15
  }
15
16
  });
17
+ if (expValEquals('platform_editor_aifc_expand_collapses_oncreate_fix', 'isEnabled', true)) {
18
+ return tr;
19
+ }
16
20
  return null;
17
21
  };
@@ -1,4 +1,5 @@
1
1
  import { expandedState } from '@atlaskit/editor-common/expand';
2
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
3
  export var toggleExpandRange = function toggleExpandRange(from, to) {
3
4
  var open = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
4
5
  return function (_ref) {
@@ -13,6 +14,9 @@ export var toggleExpandRange = function toggleExpandRange(from, to) {
13
14
  expandedState.set(node, open);
14
15
  }
15
16
  });
17
+ if (expValEquals('platform_editor_aifc_expand_collapses_oncreate_fix', 'isEnabled', true)) {
18
+ return tr;
19
+ }
16
20
  return null;
17
21
  };
18
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "8.2.4",
3
+ "version": "8.2.6",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -48,7 +48,7 @@
48
48
  "@atlaskit/icon-lab": "^5.15.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
50
  "@atlaskit/prosemirror-history": "^0.2.0",
51
- "@atlaskit/tmp-editor-statsig": "^21.0.0",
51
+ "@atlaskit/tmp-editor-statsig": "^22.2.0",
52
52
  "@atlaskit/tokens": "^11.0.0",
53
53
  "@atlaskit/tooltip": "^20.14.0",
54
54
  "@babel/runtime": "^7.0.0",