@atlaskit/editor-plugin-table 10.12.4 → 10.12.5
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 +12 -0
- package/dist/cjs/tablePlugin.js +1 -1
- package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +1 -2
- package/dist/es2019/tablePlugin.js +1 -1
- package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +1 -2
- package/dist/esm/tablePlugin.js +1 -1
- package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +1 -2
- package/package.json +5 -11
- package/src/tablePlugin.tsx +1 -2
- package/src/ui/FloatingContextualMenu/ContextualMenu.tsx +1 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 10.12.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#172640](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172640)
|
|
8
|
+
[`903534ec3c2df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/903534ec3c2df) -
|
|
9
|
+
Clean up platform_editor_controls_table_picker
|
|
10
|
+
- [#172583](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172583)
|
|
11
|
+
[`40f387a0c0962`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/40f387a0c0962) -
|
|
12
|
+
Clean up platform_editor_controls_patch_2
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 10.12.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/tablePlugin.js
CHANGED
|
@@ -110,7 +110,7 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
110
110
|
options === null || options === void 0 ? void 0 : options.isCommentEditor));
|
|
111
111
|
var isTableSelectorEnabled =
|
|
112
112
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
113
|
-
!(options !== null && options !== void 0 && options.isChromelessEditor) && !(options !== null && options !== void 0 && options.isCommentEditor) && (options === null || options === void 0 || (_options$getEditorFea2 = options.getEditorFeatureFlags) === null || _options$getEditorFea2 === void 0 ? void 0 : _options$getEditorFea2.call(options).tableSelector) && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')
|
|
113
|
+
!(options !== null && options !== void 0 && options.isChromelessEditor) && !(options !== null && options !== void 0 && options.isCommentEditor) && (options === null || options === void 0 || (_options$getEditorFea2 = options.getEditorFeatureFlags) === null || _options$getEditorFea2 === void 0 ? void 0 : _options$getEditorFea2.call(options).tableSelector) && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1');
|
|
114
114
|
return {
|
|
115
115
|
name: 'table',
|
|
116
116
|
// Use getSharedState to store fullWidthEnabled and wasFullWidthModeEnabled to guarantee access
|
|
@@ -38,7 +38,6 @@ var _tableRowAddBelow = _interopRequireDefault(require("@atlaskit/icon/core/tabl
|
|
|
38
38
|
var _tableRowDelete = _interopRequireDefault(require("@atlaskit/icon/core/table-row-delete"));
|
|
39
39
|
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/cross-circle"));
|
|
40
40
|
var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
|
|
41
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
42
41
|
var _primitives = require("@atlaskit/primitives");
|
|
43
42
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
44
43
|
var _commands = require("../../pm-plugins/commands");
|
|
@@ -485,7 +484,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
485
484
|
(_items$0$items = items[0].items).push.apply(_items$0$items, (0, _toConsumableArray2.default)(mergeSplitCellItems));
|
|
486
485
|
items[1].items.push(insertColumnItem);
|
|
487
486
|
items[1].items.push(insertRowItem);
|
|
488
|
-
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')
|
|
487
|
+
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
489
488
|
items[1].items.push(_this.newDistributeColumnsItem());
|
|
490
489
|
}
|
|
491
490
|
items[1].items.push(clearCellsItem);
|
|
@@ -99,7 +99,7 @@ const tablePlugin = ({
|
|
|
99
99
|
options === null || options === void 0 ? void 0 : options.isCommentEditor));
|
|
100
100
|
const isTableSelectorEnabled =
|
|
101
101
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
102
|
-
!(options !== null && options !== void 0 && options.isChromelessEditor) && !(options !== null && options !== void 0 && options.isCommentEditor) && (options === null || options === void 0 ? void 0 : (_options$getEditorFea2 = options.getEditorFeatureFlags) === null || _options$getEditorFea2 === void 0 ? void 0 : _options$getEditorFea2.call(options).tableSelector) && editorExperiment('platform_editor_controls', 'variant1')
|
|
102
|
+
!(options !== null && options !== void 0 && options.isChromelessEditor) && !(options !== null && options !== void 0 && options.isCommentEditor) && (options === null || options === void 0 ? void 0 : (_options$getEditorFea2 = options.getEditorFeatureFlags) === null || _options$getEditorFea2 === void 0 ? void 0 : _options$getEditorFea2.call(options).tableSelector) && editorExperiment('platform_editor_controls', 'variant1');
|
|
103
103
|
return {
|
|
104
104
|
name: 'table',
|
|
105
105
|
// Use getSharedState to store fullWidthEnabled and wasFullWidthModeEnabled to guarantee access
|
|
@@ -30,7 +30,6 @@ import TableRowAddBelowIcon from '@atlaskit/icon/core/table-row-add-below';
|
|
|
30
30
|
import TableRowDeleteIcon from '@atlaskit/icon/core/table-row-delete';
|
|
31
31
|
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
|
|
32
32
|
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
33
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
34
33
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
35
34
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
36
35
|
import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, setFocusToCellMenu, toggleContextualMenu } from '../../pm-plugins/commands';
|
|
@@ -522,7 +521,7 @@ export class ContextualMenu extends Component {
|
|
|
522
521
|
items[0].items.push(...mergeSplitCellItems);
|
|
523
522
|
items[1].items.push(insertColumnItem);
|
|
524
523
|
items[1].items.push(insertRowItem);
|
|
525
|
-
if (editorExperiment('platform_editor_controls', 'variant1')
|
|
524
|
+
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
526
525
|
items[1].items.push(this.newDistributeColumnsItem());
|
|
527
526
|
}
|
|
528
527
|
items[1].items.push(clearCellsItem);
|
package/dist/esm/tablePlugin.js
CHANGED
|
@@ -102,7 +102,7 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
102
102
|
options === null || options === void 0 ? void 0 : options.isCommentEditor));
|
|
103
103
|
var isTableSelectorEnabled =
|
|
104
104
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
105
|
-
!(options !== null && options !== void 0 && options.isChromelessEditor) && !(options !== null && options !== void 0 && options.isCommentEditor) && (options === null || options === void 0 || (_options$getEditorFea2 = options.getEditorFeatureFlags) === null || _options$getEditorFea2 === void 0 ? void 0 : _options$getEditorFea2.call(options).tableSelector) && editorExperiment('platform_editor_controls', 'variant1')
|
|
105
|
+
!(options !== null && options !== void 0 && options.isChromelessEditor) && !(options !== null && options !== void 0 && options.isCommentEditor) && (options === null || options === void 0 || (_options$getEditorFea2 = options.getEditorFeatureFlags) === null || _options$getEditorFea2 === void 0 ? void 0 : _options$getEditorFea2.call(options).tableSelector) && editorExperiment('platform_editor_controls', 'variant1');
|
|
106
106
|
return {
|
|
107
107
|
name: 'table',
|
|
108
108
|
// Use getSharedState to store fullWidthEnabled and wasFullWidthModeEnabled to guarantee access
|
|
@@ -40,7 +40,6 @@ import TableRowAddBelowIcon from '@atlaskit/icon/core/table-row-add-below';
|
|
|
40
40
|
import TableRowDeleteIcon from '@atlaskit/icon/core/table-row-delete';
|
|
41
41
|
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
|
|
42
42
|
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
43
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
44
43
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
45
44
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
46
45
|
import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, setFocusToCellMenu, toggleContextualMenu } from '../../pm-plugins/commands';
|
|
@@ -479,7 +478,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
479
478
|
(_items$0$items = items[0].items).push.apply(_items$0$items, _toConsumableArray(mergeSplitCellItems));
|
|
480
479
|
items[1].items.push(insertColumnItem);
|
|
481
480
|
items[1].items.push(insertRowItem);
|
|
482
|
-
if (editorExperiment('platform_editor_controls', 'variant1')
|
|
481
|
+
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
483
482
|
items[1].items.push(_this.newDistributeColumnsItem());
|
|
484
483
|
}
|
|
485
484
|
items[1].items.push(clearCellsItem);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "10.12.
|
|
3
|
+
"version": "10.12.5",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^2.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-content-insertion": "^2.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-editor-viewmode": "^4.0.0",
|
|
42
|
-
"@atlaskit/editor-plugin-extension": "5.5.
|
|
42
|
+
"@atlaskit/editor-plugin-extension": "5.5.9",
|
|
43
43
|
"@atlaskit/editor-plugin-guideline": "^2.0.0",
|
|
44
44
|
"@atlaskit/editor-plugin-interaction": "^2.0.0",
|
|
45
45
|
"@atlaskit/editor-plugin-selection": "^2.2.0",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
54
54
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
55
55
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
56
|
-
"@atlaskit/primitives": "^14.
|
|
56
|
+
"@atlaskit/primitives": "^14.9.0",
|
|
57
57
|
"@atlaskit/theme": "^18.0.0",
|
|
58
|
-
"@atlaskit/tmp-editor-statsig": "^7.
|
|
58
|
+
"@atlaskit/tmp-editor-statsig": "^7.2.0",
|
|
59
59
|
"@atlaskit/toggle": "^15.0.0",
|
|
60
|
-
"@atlaskit/tokens": "^5.
|
|
60
|
+
"@atlaskit/tokens": "^5.3.0",
|
|
61
61
|
"@atlaskit/tooltip": "^20.3.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
63
63
|
"@emotion/react": "^11.7.1",
|
|
@@ -184,18 +184,12 @@
|
|
|
184
184
|
"platform_editor_number_column_sticky_header_broken": {
|
|
185
185
|
"type": "boolean"
|
|
186
186
|
},
|
|
187
|
-
"platform_editor_controls_patch_2": {
|
|
188
|
-
"type": "boolean"
|
|
189
|
-
},
|
|
190
187
|
"platform_editor_controls_patch_4": {
|
|
191
188
|
"type": "boolean"
|
|
192
189
|
},
|
|
193
190
|
"platform_editor_tables_table_selector": {
|
|
194
191
|
"type": "boolean"
|
|
195
192
|
},
|
|
196
|
-
"platform_editor_controls_table_picker": {
|
|
197
|
-
"type": "boolean"
|
|
198
|
-
},
|
|
199
193
|
"platform_editor_remove_slow_table_transactions": {
|
|
200
194
|
"type": "boolean"
|
|
201
195
|
},
|
package/src/tablePlugin.tsx
CHANGED
|
@@ -143,8 +143,7 @@ const tablePlugin: TablePlugin = ({ config: options, api }) => {
|
|
|
143
143
|
!options?.isChromelessEditor &&
|
|
144
144
|
!options?.isCommentEditor &&
|
|
145
145
|
options?.getEditorFeatureFlags?.().tableSelector &&
|
|
146
|
-
editorExperiment('platform_editor_controls', 'variant1')
|
|
147
|
-
fg('platform_editor_controls_table_picker');
|
|
146
|
+
editorExperiment('platform_editor_controls', 'variant1');
|
|
148
147
|
|
|
149
148
|
return {
|
|
150
149
|
name: 'table',
|
|
@@ -53,7 +53,6 @@ import TableRowAddBelowIcon from '@atlaskit/icon/core/table-row-add-below';
|
|
|
53
53
|
import TableRowDeleteIcon from '@atlaskit/icon/core/table-row-delete';
|
|
54
54
|
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
|
|
55
55
|
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
56
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
57
56
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
58
57
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
59
58
|
|
|
@@ -664,10 +663,7 @@ export class ContextualMenu extends Component<Props & WrappedComponentProps, Sta
|
|
|
664
663
|
items[0].items.push(...mergeSplitCellItems);
|
|
665
664
|
items[1].items.push(insertColumnItem);
|
|
666
665
|
items[1].items.push(insertRowItem);
|
|
667
|
-
if (
|
|
668
|
-
editorExperiment('platform_editor_controls', 'variant1') &&
|
|
669
|
-
fg('platform_editor_controls_patch_2')
|
|
670
|
-
) {
|
|
666
|
+
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
671
667
|
items[1].items.push(this.newDistributeColumnsItem());
|
|
672
668
|
}
|
|
673
669
|
items[1].items.push(clearCellsItem);
|