@atlaskit/editor-tables 2.9.51 → 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,12 @@
|
|
|
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
|
+
|
|
3
10
|
## 2.9.51
|
|
4
11
|
|
|
5
12
|
### 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
|
|
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,
|
|
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 {
|
|
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 (
|
|
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 {
|
|
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 (
|
|
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