@atlaskit/editor-plugin-selection 1.5.2 → 1.5.4

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,20 @@
1
1
  # @atlaskit/editor-plugin-selection
2
2
 
3
+ ## 1.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.5.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#159308](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159308)
14
+ [`14ef6f05d711c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/14ef6f05d711c) -
15
+ [ED-24690] Replace LD FF with Statsig platform-editor-single-player-expand
16
+ - Updated dependencies
17
+
3
18
  ## 1.5.2
4
19
 
5
20
  ### Patch Changes
@@ -21,7 +21,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
21
21
  var isCollapsedExpand = function isCollapsedExpand(node, _ref) {
22
22
  var __livePage = _ref.__livePage;
23
23
  var currentExpandedState;
24
- if (__livePage && (0, _platformFeatureFlags.getBooleanFF)('platform.editor.single-player-expand')) {
24
+ if (__livePage && (0, _platformFeatureFlags.fg)('platform-editor-single-player-expand')) {
25
25
  currentExpandedState = node ? !_expand.expandedState.get(node) : undefined;
26
26
  } else if (__livePage) {
27
27
  currentExpandedState = node === null || node === void 0 ? void 0 : node.attrs.__expanded;
@@ -1,6 +1,6 @@
1
1
  import { expandedState } from '@atlaskit/editor-common/expand';
2
2
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
3
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
4
4
 
5
5
  /*
6
6
  * The way expand was built, no browser recognize selection on it.
@@ -17,7 +17,7 @@ const isCollapsedExpand = (node, {
17
17
  __livePage
18
18
  }) => {
19
19
  let currentExpandedState;
20
- if (__livePage && getBooleanFF('platform.editor.single-player-expand')) {
20
+ if (__livePage && fg('platform-editor-single-player-expand')) {
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;
@@ -1,6 +1,6 @@
1
1
  import { expandedState } from '@atlaskit/editor-common/expand';
2
2
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
3
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
4
4
 
5
5
  /*
6
6
  * The way expand was built, no browser recognize selection on it.
@@ -16,7 +16,7 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
16
16
  var isCollapsedExpand = function isCollapsedExpand(node, _ref) {
17
17
  var __livePage = _ref.__livePage;
18
18
  var currentExpandedState;
19
- if (__livePage && getBooleanFF('platform.editor.single-player-expand')) {
19
+ if (__livePage && fg('platform-editor-single-player-expand')) {
20
20
  currentExpandedState = node ? !expandedState.get(node) : undefined;
21
21
  } else if (__livePage) {
22
22
  currentExpandedState = node === null || node === void 0 ? void 0 : node.attrs.__expanded;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection",
3
- "version": "1.5.2",
3
+ "version": "1.5.4",
4
4
  "description": "Selection plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -20,12 +20,12 @@
20
20
  "runReact18": true
21
21
  },
22
22
  "dependencies": {
23
- "@atlaskit/editor-common": "^94.2.0",
23
+ "@atlaskit/editor-common": "^95.0.0",
24
24
  "@atlaskit/editor-prosemirror": "6.0.0",
25
- "@atlaskit/editor-shared-styles": "^3.0.0",
25
+ "@atlaskit/editor-shared-styles": "^3.2.0",
26
26
  "@atlaskit/editor-tables": "^2.8.0",
27
27
  "@atlaskit/platform-feature-flags": "^0.3.0",
28
- "@atlaskit/tokens": "^2.0.0",
28
+ "@atlaskit/tokens": "^2.3.0",
29
29
  "@babel/runtime": "^7.0.0"
30
30
  },
31
31
  "peerDependencies": {
@@ -77,7 +77,7 @@
77
77
  }
78
78
  },
79
79
  "platform-feature-flags": {
80
- "platform.editor.single-player-expand": {
80
+ "platform-editor-single-player-expand": {
81
81
  "type": "boolean"
82
82
  },
83
83
  "platform_editor_mark_boundary_cursor": {