@atlaskit/editor-plugin-expand 1.7.5 → 1.7.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,15 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 1.7.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#107785](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107785)
8
+ [`7304a7cd937f9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7304a7cd937f9) -
9
+ [ux] [ED-23522] Single player expands on behind `platform.editor.single-player-expand` for all
10
+ editors, single player expands on without `platform.editor.single-player-expand` feature flag for
11
+ live page editors
12
+
3
13
  ## 1.7.5
4
14
 
5
15
  ### Patch Changes
@@ -11,15 +11,22 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
11
11
  var _ref$config = _ref.config,
12
12
  options = _ref$config === void 0 ? {} : _ref$config,
13
13
  api = _ref.api;
14
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.single-player-expand') && options !== null && options !== void 0 && options.__livePage) {
14
+ if (options !== null && options !== void 0 && options.__livePage) {
15
15
  return (0, _plugin2.expandPlugin)({
16
16
  config: options,
17
17
  api: api
18
18
  });
19
19
  } else {
20
- return (0, _plugin.expandPlugin)({
21
- config: options,
22
- api: api
23
- });
20
+ if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.single-player-expand')) {
21
+ return (0, _plugin2.expandPlugin)({
22
+ config: options,
23
+ api: api
24
+ });
25
+ } else {
26
+ return (0, _plugin.expandPlugin)({
27
+ config: options,
28
+ api: api
29
+ });
30
+ }
24
31
  }
25
32
  };
@@ -5,15 +5,22 @@ export const expandPlugin = ({
5
5
  config: options = {},
6
6
  api
7
7
  }) => {
8
- if (getBooleanFF('platform.editor.single-player-expand') && options !== null && options !== void 0 && options.__livePage) {
8
+ if (options !== null && options !== void 0 && options.__livePage) {
9
9
  return singlePlayerExpandPlugin({
10
10
  config: options,
11
11
  api
12
12
  });
13
13
  } else {
14
- return legacyExpandPlugin({
15
- config: options,
16
- api
17
- });
14
+ if (getBooleanFF('platform.editor.single-player-expand')) {
15
+ return singlePlayerExpandPlugin({
16
+ config: options,
17
+ api
18
+ });
19
+ } else {
20
+ return legacyExpandPlugin({
21
+ config: options,
22
+ api
23
+ });
24
+ }
18
25
  }
19
26
  };
@@ -5,15 +5,22 @@ export var expandPlugin = function expandPlugin(_ref) {
5
5
  var _ref$config = _ref.config,
6
6
  options = _ref$config === void 0 ? {} : _ref$config,
7
7
  api = _ref.api;
8
- if (getBooleanFF('platform.editor.single-player-expand') && options !== null && options !== void 0 && options.__livePage) {
8
+ if (options !== null && options !== void 0 && options.__livePage) {
9
9
  return singlePlayerExpandPlugin({
10
10
  config: options,
11
11
  api: api
12
12
  });
13
13
  } else {
14
- return legacyExpandPlugin({
15
- config: options,
16
- api: api
17
- });
14
+ if (getBooleanFF('platform.editor.single-player-expand')) {
15
+ return singlePlayerExpandPlugin({
16
+ config: options,
17
+ api: api
18
+ });
19
+ } else {
20
+ return legacyExpandPlugin({
21
+ config: options,
22
+ api: api
23
+ });
24
+ }
18
25
  }
19
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "1.7.5",
3
+ "version": "1.7.6",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,8 +34,8 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^36.10.7",
37
- "@atlaskit/button": "^17.20.0",
38
- "@atlaskit/editor-common": "^82.8.0",
37
+ "@atlaskit/button": "^17.22.0",
38
+ "@atlaskit/editor-common": "^82.9.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.2.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^1.1.0",
41
41
  "@atlaskit/editor-plugin-editor-disabled": "^1.1.0",