@atlaskit/editor-plugin-selection 12.0.20 → 12.0.22

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,22 @@
1
1
  # @atlaskit/editor-plugin-selection
2
2
 
3
+ ## 12.0.22
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a3bbfab896310`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a3bbfab896310) -
8
+ Replace feature gate `confluence_frontend_native_tabs_extension` with experiment
9
+ `confluence_native_tabs_experiment` using `expValEquals` from
10
+ `@atlaskit/tmp-editor-statsig/exp-val-equals`. Usage:
11
+ `expValEquals('confluence_native_tabs_experiment', 'isEnabled', true)`.
12
+ - Updated dependencies
13
+
14
+ ## 12.0.21
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 12.0.20
4
21
 
5
22
  ### Patch Changes
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.toDOM = void 0;
8
8
  var _toArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toArray"));
9
9
  var _selection = require("@atlaskit/editor-common/selection");
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
11
11
  var _utils = require("../utils");
12
12
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
13
  /**
@@ -24,7 +24,7 @@ var nestedCases = {
24
24
  'datasourceView-content-wrap': '.datasourceView-content-inner-wrap'
25
25
  };
26
26
  var getNestedSelector = function getNestedSelector(key) {
27
- if (key === 'multiBodiedExtensionView-content-wrap' && (0, _platformFeatureFlags.fg)('confluence_frontend_native_tabs_extension')) {
27
+ if (key === 'multiBodiedExtensionView-content-wrap' && (0, _expValEquals.expValEquals)('confluence_native_tabs_experiment', 'isEnabled', true)) {
28
28
  return '.multiBodiedExtension--wrapper';
29
29
  }
30
30
  return nestedCases[key];
@@ -1,5 +1,5 @@
1
1
  import { Side } from '@atlaskit/editor-common/selection';
2
- import { fg } from '@atlaskit/platform-feature-flags';
2
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
3
  import { getComputedStyleForLayoutMode, getLayoutModeFromTargetNode, isLeftCursor } from '../utils';
4
4
 
5
5
  /**
@@ -16,7 +16,7 @@ const nestedCases = {
16
16
  'datasourceView-content-wrap': '.datasourceView-content-inner-wrap'
17
17
  };
18
18
  const getNestedSelector = key => {
19
- if (key === 'multiBodiedExtensionView-content-wrap' && fg('confluence_frontend_native_tabs_extension')) {
19
+ if (key === 'multiBodiedExtensionView-content-wrap' && expValEquals('confluence_native_tabs_experiment', 'isEnabled', true)) {
20
20
  return '.multiBodiedExtension--wrapper';
21
21
  }
22
22
  return nestedCases[key];
@@ -1,7 +1,7 @@
1
1
  import _toArray from "@babel/runtime/helpers/toArray";
2
2
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
3
3
  import { Side } from '@atlaskit/editor-common/selection';
4
- import { fg } from '@atlaskit/platform-feature-flags';
4
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
5
  import { getComputedStyleForLayoutMode, getLayoutModeFromTargetNode, isLeftCursor } from '../utils';
6
6
 
7
7
  /**
@@ -18,7 +18,7 @@ var nestedCases = {
18
18
  'datasourceView-content-wrap': '.datasourceView-content-inner-wrap'
19
19
  };
20
20
  var getNestedSelector = function getNestedSelector(key) {
21
- if (key === 'multiBodiedExtensionView-content-wrap' && fg('confluence_frontend_native_tabs_extension')) {
21
+ if (key === 'multiBodiedExtensionView-content-wrap' && expValEquals('confluence_native_tabs_experiment', 'isEnabled', true)) {
22
22
  return '.multiBodiedExtension--wrapper';
23
23
  }
24
24
  return nestedCases[key];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection",
3
- "version": "12.0.20",
3
+ "version": "12.0.22",
4
4
  "description": "Selection plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -24,13 +24,12 @@
24
24
  "@atlaskit/editor-prosemirror": "^8.0.0",
25
25
  "@atlaskit/editor-shared-styles": "^4.0.0",
26
26
  "@atlaskit/editor-tables": "^3.0.0",
27
- "@atlaskit/platform-feature-flags": "^2.0.0",
28
- "@atlaskit/tmp-editor-statsig": "^124.0.0",
29
- "@atlaskit/tokens": "^15.5.0",
27
+ "@atlaskit/tmp-editor-statsig": "^125.2.0",
28
+ "@atlaskit/tokens": "^15.8.0",
30
29
  "@babel/runtime": "^7.0.0"
31
30
  },
32
31
  "peerDependencies": {
33
- "@atlaskit/editor-common": "^116.24.0",
32
+ "@atlaskit/editor-common": "^116.30.0",
34
33
  "react": "^18.2.0"
35
34
  },
36
35
  "techstack": {
@@ -76,10 +75,5 @@
76
75
  },
77
76
  "devDependencies": {
78
77
  "react": "^18.2.0"
79
- },
80
- "platform-feature-flags": {
81
- "confluence_frontend_native_tabs_extension": {
82
- "type": "boolean"
83
- }
84
78
  }
85
79
  }