@atlaskit/editor-tables 2.9.50 → 2.9.52

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,18 @@
1
1
  # @atlaskit/editor-tables
2
2
 
3
+ ## 2.9.52
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9ed32aea2c1d3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9ed32aea2c1d3) -
8
+ Replace feature experiment util with cross platform alternative for platform_editor_block_menu
9
+
10
+ ## 2.9.51
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 2.9.50
4
17
 
5
18
  ### Patch Changes
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.selectTableClosestToPos = exports.selectTable = exports.selectRows = exports.selectRow = exports.selectColumns = exports.selectColumn = exports.getTableSelectionClosesToPos = void 0;
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
9
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
10
10
  var _cellSelection = require("../cell-selection");
11
11
  var _tableMap = require("../table-map");
12
12
  var _cloneTr = require("./clone-tr");
@@ -182,7 +182,9 @@ var getTableSelectionClosesToPos = exports.getTableSelectionClosesToPos = functi
182
182
  }
183
183
  };
184
184
  var selectTableClosestToPos = exports.selectTableClosestToPos = function selectTableClosestToPos(tr, $pos) {
185
- if ((0, _expValEquals.expValEquals)('platform_editor_block_menu', 'isEnabled', true)) {
185
+ if ((0, _experiments.editorExperiment)('platform_editor_block_menu', true, {
186
+ exposure: true
187
+ })) {
186
188
  var tableSelection = getTableSelectionClosesToPos($pos);
187
189
  if (tableSelection) {
188
190
  return (0, _cloneTr.cloneTr)(tr.setSelection(tableSelection));
@@ -1,4 +1,4 @@
1
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
1
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
2
2
  import { CellSelection } from '../cell-selection';
3
3
  import { TableMap } from '../table-map';
4
4
  import { cloneTr } from './clone-tr';
@@ -168,7 +168,9 @@ export const getTableSelectionClosesToPos = $pos => {
168
168
  }
169
169
  };
170
170
  export const selectTableClosestToPos = (tr, $pos) => {
171
- if (expValEquals('platform_editor_block_menu', 'isEnabled', true)) {
171
+ if (editorExperiment('platform_editor_block_menu', true, {
172
+ exposure: true
173
+ })) {
172
174
  const tableSelection = getTableSelectionClosesToPos($pos);
173
175
  if (tableSelection) {
174
176
  return cloneTr(tr.setSelection(tableSelection));
@@ -1,5 +1,5 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
3
  import { CellSelection } from '../cell-selection';
4
4
  import { TableMap } from '../table-map';
5
5
  import { cloneTr } from './clone-tr';
@@ -175,7 +175,9 @@ export var getTableSelectionClosesToPos = function getTableSelectionClosesToPos(
175
175
  }
176
176
  };
177
177
  export var selectTableClosestToPos = function selectTableClosestToPos(tr, $pos) {
178
- if (expValEquals('platform_editor_block_menu', 'isEnabled', true)) {
178
+ if (editorExperiment('platform_editor_block_menu', true, {
179
+ exposure: true
180
+ })) {
179
181
  var tableSelection = getTableSelectionClosesToPos($pos);
180
182
  if (tableSelection) {
181
183
  return cloneTr(tr.setSelection(tableSelection));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-tables",
3
- "version": "2.9.50",
3
+ "version": "2.9.52",
4
4
  "description": "A package that contains common classes and utility functions for editor tables",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,7 +29,7 @@
29
29
  "dependencies": {
30
30
  "@atlaskit/editor-prosemirror": "^7.3.0",
31
31
  "@atlaskit/platform-feature-flags": "^1.1.0",
32
- "@atlaskit/tmp-editor-statsig": "^42.0.0",
32
+ "@atlaskit/tmp-editor-statsig": "^43.0.0",
33
33
  "@babel/runtime": "^7.0.0"
34
34
  },
35
35
  "devDependencies": {