@atlaskit/editor-plugin-table 34.0.2 → 34.0.3
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 +10 -0
- package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +1 -2
- package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +1 -2
- package/dist/cjs/ui/TableMenu/shared/items/BackgroundColorItem.js +1 -2
- package/dist/cjs/ui/toolbar.js +1 -2
- package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +1 -2
- package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +1 -2
- package/dist/es2019/ui/TableMenu/shared/items/BackgroundColorItem.js +1 -2
- package/dist/es2019/ui/toolbar.js +1 -2
- package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +1 -2
- package/dist/esm/ui/FloatingDragMenu/DragMenu.js +1 -2
- package/dist/esm/ui/TableMenu/shared/items/BackgroundColorItem.js +1 -2
- package/dist/esm/ui/toolbar.js +1 -2
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 34.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a13383c3c99b2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a13383c3c99b2) -
|
|
8
|
+
[FFCLEANUP-192944] clean up code references to patch gates
|
|
9
|
+
`platform_editor_lovability_text_bg_color_patch_1` and
|
|
10
|
+
`platform_editor_lovability_text_bg_color_patch_2`.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 34.0.2
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -38,7 +38,6 @@ var _tableColumnDelete = _interopRequireDefault(require("@atlaskit/icon/core/tab
|
|
|
38
38
|
var _tableColumnsDistribute = _interopRequireDefault(require("@atlaskit/icon/core/table-columns-distribute"));
|
|
39
39
|
var _tableRowAddBelow = _interopRequireDefault(require("@atlaskit/icon/core/table-row-add-below"));
|
|
40
40
|
var _tableRowDelete = _interopRequireDefault(require("@atlaskit/icon/core/table-row-delete"));
|
|
41
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
42
41
|
var _primitives = require("@atlaskit/primitives");
|
|
43
42
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
44
43
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
@@ -134,7 +133,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
134
133
|
var _node$attrs, _node$attrs2;
|
|
135
134
|
var node = isOpen && targetCellPosition ? state.doc.nodeAt(targetCellPosition) : null;
|
|
136
135
|
var background = (0, _editorPalette.hexToEditorBackgroundPaletteColor)((node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
|
|
137
|
-
var isMoreColorsEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true)
|
|
136
|
+
var isMoreColorsEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true);
|
|
138
137
|
var activePalette = isMoreColorsEnabled ? _uiColor.cellBackgroundColorPaletteNew : _uiColor.cellBackgroundColorPalette;
|
|
139
138
|
var activeCols = isMoreColorsEnabled ? _consts.colorPaletteColumns : _consts.colorPalletteColumns;
|
|
140
139
|
var selectedRowAndColumnFromPalette = (0, _uiColor.getSelectedRowAndColumnFromPalette)(activePalette,
|
|
@@ -23,7 +23,6 @@ var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
|
|
|
23
23
|
var _tableMap = require("@atlaskit/editor-tables/table-map");
|
|
24
24
|
var _utils2 = require("@atlaskit/editor-tables/utils");
|
|
25
25
|
var _paintBucket = _interopRequireDefault(require("@atlaskit/icon/core/paint-bucket"));
|
|
26
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
27
26
|
var _primitives = require("@atlaskit/primitives");
|
|
28
27
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
29
28
|
var _toggle = _interopRequireDefault(require("@atlaskit/toggle"));
|
|
@@ -284,7 +283,7 @@ var DragMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
284
283
|
targetCellPosition = _getTablePluginState.targetCellPosition;
|
|
285
284
|
var node = targetCellPosition ? state.doc.nodeAt(targetCellPosition) : null;
|
|
286
285
|
var background = (0, _editorPalette.hexToEditorBackgroundPaletteColor)((node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
|
|
287
|
-
var isMoreColorsEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true)
|
|
286
|
+
var isMoreColorsEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true);
|
|
288
287
|
var activePalette = isMoreColorsEnabled ? _uiColor.cellBackgroundColorPaletteNew : _uiColor.cellBackgroundColorPalette;
|
|
289
288
|
var activeCols = isMoreColorsEnabled ? _consts.colorPaletteColumns : _consts.colorPalletteColumns;
|
|
290
289
|
var _getSelectedRowAndCol = (0, _uiColor.getSelectedRowAndColumnFromPalette)(activePalette, background, activeCols),
|
|
@@ -15,7 +15,6 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
15
15
|
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
16
16
|
var _editorPalette = require("@atlaskit/editor-palette");
|
|
17
17
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
18
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
19
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
20
19
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
20
|
var _commands = require("../../../../pm-plugins/commands");
|
|
@@ -69,7 +68,7 @@ var BackgroundColorItem = exports.BackgroundColorItem = function BackgroundColor
|
|
|
69
68
|
backgroundColor: selectedColor
|
|
70
69
|
};
|
|
71
70
|
}, [selectedColor]);
|
|
72
|
-
var isMoreColorsEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true)
|
|
71
|
+
var isMoreColorsEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true);
|
|
73
72
|
var activePalette = isMoreColorsEnabled ? _uiColor.cellBackgroundColorPaletteNew : _uiColor.cellBackgroundColorPalette;
|
|
74
73
|
var activeCols = isMoreColorsEnabled ? _consts.colorPaletteColumns : _consts.colorPalletteColumns;
|
|
75
74
|
var paletteOptions = (0, _react.useMemo)(function () {
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -36,7 +36,6 @@ var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
|
|
|
36
36
|
var _shrinkHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/shrink-horizontal"));
|
|
37
37
|
var _tableColumnsDistribute = _interopRequireDefault(require("@atlaskit/icon/core/table-columns-distribute"));
|
|
38
38
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
39
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
40
39
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
41
40
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
42
41
|
var _commands = require("../pm-plugins/commands");
|
|
@@ -697,7 +696,7 @@ var getColorPicker = function getColorPicker(state, menu, _ref4, editorAnalytics
|
|
|
697
696
|
}
|
|
698
697
|
var node = targetCellPosition ? state.doc.nodeAt(targetCellPosition) : undefined;
|
|
699
698
|
var currentBackground = (node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff';
|
|
700
|
-
var isMoreColorsEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true)
|
|
699
|
+
var isMoreColorsEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true);
|
|
701
700
|
var activePalette = isMoreColorsEnabled ? _uiColor.cellBackgroundColorPaletteNew : _uiColor.cellBackgroundColorPalette;
|
|
702
701
|
var defaultPalette = activePalette.find(function (item) {
|
|
703
702
|
return item.value === currentBackground;
|
|
@@ -32,7 +32,6 @@ import TableColumnDeleteIcon from '@atlaskit/icon/core/table-column-delete';
|
|
|
32
32
|
import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distribute';
|
|
33
33
|
import TableRowAddBelowIcon from '@atlaskit/icon/core/table-row-add-below';
|
|
34
34
|
import TableRowDeleteIcon from '@atlaskit/icon/core/table-row-delete';
|
|
35
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
36
35
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
37
36
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
38
37
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
@@ -122,7 +121,7 @@ export class ContextualMenu extends Component {
|
|
|
122
121
|
var _node$attrs, _node$attrs2;
|
|
123
122
|
const node = isOpen && targetCellPosition ? state.doc.nodeAt(targetCellPosition) : null;
|
|
124
123
|
const background = hexToEditorBackgroundPaletteColor((node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
|
|
125
|
-
const isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true)
|
|
124
|
+
const isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true);
|
|
126
125
|
const activePalette = isMoreColorsEnabled ? cellBackgroundColorPaletteNew : cellBackgroundColorPalette;
|
|
127
126
|
const activeCols = isMoreColorsEnabled ? colorPaletteColumns : colorPalletteColumns;
|
|
128
127
|
const selectedRowAndColumnFromPalette = getSelectedRowAndColumnFromPalette(activePalette,
|
|
@@ -22,7 +22,6 @@ import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
|
22
22
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
23
23
|
import { findCellRectClosestToPos, getSelectionRect, isSelectionType } from '@atlaskit/editor-tables/utils';
|
|
24
24
|
import PaintBucketIcon from '@atlaskit/icon/core/paint-bucket';
|
|
25
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
26
25
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
27
26
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
28
27
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -278,7 +277,7 @@ const DragMenu = /*#__PURE__*/React.memo(({
|
|
|
278
277
|
} = getTablePluginState(editorView.state);
|
|
279
278
|
const node = targetCellPosition ? state.doc.nodeAt(targetCellPosition) : null;
|
|
280
279
|
const background = hexToEditorBackgroundPaletteColor((node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
|
|
281
|
-
const isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true)
|
|
280
|
+
const isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true);
|
|
282
281
|
const activePalette = isMoreColorsEnabled ? cellBackgroundColorPaletteNew : cellBackgroundColorPalette;
|
|
283
282
|
const activeCols = isMoreColorsEnabled ? colorPaletteColumns : colorPalletteColumns;
|
|
284
283
|
const {
|
|
@@ -8,7 +8,6 @@ import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
|
8
8
|
import { backgroundPaletteTooltipMessages, cellBackgroundColorPalette, cellBackgroundColorPaletteNew, ColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
9
9
|
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
10
10
|
import { NestedDropdownRightIcon, PaintBucketIcon, ToolbarNestedDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
11
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
13
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
13
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
@@ -64,7 +63,7 @@ export const BackgroundColorItem = ({
|
|
|
64
63
|
const colorPreviewStyle = useMemo(() => ({
|
|
65
64
|
backgroundColor: selectedColor
|
|
66
65
|
}), [selectedColor]);
|
|
67
|
-
const isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true)
|
|
66
|
+
const isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true);
|
|
68
67
|
const activePalette = isMoreColorsEnabled ? cellBackgroundColorPaletteNew : cellBackgroundColorPalette;
|
|
69
68
|
const activeCols = isMoreColorsEnabled ? colorPaletteColumns : colorPalletteColumns;
|
|
70
69
|
const paletteOptions = useMemo(() => {
|
|
@@ -30,7 +30,6 @@ import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
|
30
30
|
import ShrinkHorizontalIcon from '@atlaskit/icon/core/shrink-horizontal';
|
|
31
31
|
import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distribute';
|
|
32
32
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
33
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
34
33
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
35
34
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
36
35
|
import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, hoverTable, removeDescendantNodes } from '../pm-plugins/commands';
|
|
@@ -653,7 +652,7 @@ const getColorPicker = (state, menu, {
|
|
|
653
652
|
}
|
|
654
653
|
const node = targetCellPosition ? state.doc.nodeAt(targetCellPosition) : undefined;
|
|
655
654
|
const currentBackground = (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff';
|
|
656
|
-
const isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true)
|
|
655
|
+
const isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true);
|
|
657
656
|
const activePalette = isMoreColorsEnabled ? cellBackgroundColorPaletteNew : cellBackgroundColorPalette;
|
|
658
657
|
const defaultPalette = activePalette.find(item => item.value === currentBackground) || {
|
|
659
658
|
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
@@ -42,7 +42,6 @@ import TableColumnDeleteIcon from '@atlaskit/icon/core/table-column-delete';
|
|
|
42
42
|
import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distribute';
|
|
43
43
|
import TableRowAddBelowIcon from '@atlaskit/icon/core/table-row-add-below';
|
|
44
44
|
import TableRowDeleteIcon from '@atlaskit/icon/core/table-row-delete';
|
|
45
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
46
45
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
47
46
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
48
47
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
@@ -131,7 +130,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
131
130
|
var _node$attrs, _node$attrs2;
|
|
132
131
|
var node = isOpen && targetCellPosition ? state.doc.nodeAt(targetCellPosition) : null;
|
|
133
132
|
var background = hexToEditorBackgroundPaletteColor((node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
|
|
134
|
-
var isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true)
|
|
133
|
+
var isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true);
|
|
135
134
|
var activePalette = isMoreColorsEnabled ? cellBackgroundColorPaletteNew : cellBackgroundColorPalette;
|
|
136
135
|
var activeCols = isMoreColorsEnabled ? colorPaletteColumns : colorPalletteColumns;
|
|
137
136
|
var selectedRowAndColumnFromPalette = getSelectedRowAndColumnFromPalette(activePalette,
|
|
@@ -24,7 +24,6 @@ import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
|
24
24
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
25
25
|
import { findCellRectClosestToPos, getSelectionRect, isSelectionType } from '@atlaskit/editor-tables/utils';
|
|
26
26
|
import PaintBucketIcon from '@atlaskit/icon/core/paint-bucket';
|
|
27
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
28
27
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
29
28
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
30
29
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -274,7 +273,7 @@ var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
274
273
|
targetCellPosition = _getTablePluginState.targetCellPosition;
|
|
275
274
|
var node = targetCellPosition ? state.doc.nodeAt(targetCellPosition) : null;
|
|
276
275
|
var background = hexToEditorBackgroundPaletteColor((node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
|
|
277
|
-
var isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true)
|
|
276
|
+
var isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true);
|
|
278
277
|
var activePalette = isMoreColorsEnabled ? cellBackgroundColorPaletteNew : cellBackgroundColorPalette;
|
|
279
278
|
var activeCols = isMoreColorsEnabled ? colorPaletteColumns : colorPalletteColumns;
|
|
280
279
|
var _getSelectedRowAndCol = getSelectedRowAndColumnFromPalette(activePalette, background, activeCols),
|
|
@@ -8,7 +8,6 @@ import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
|
8
8
|
import { backgroundPaletteTooltipMessages, cellBackgroundColorPalette, cellBackgroundColorPaletteNew, ColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
9
9
|
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
10
10
|
import { NestedDropdownRightIcon, PaintBucketIcon, ToolbarNestedDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
11
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
13
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
13
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
@@ -61,7 +60,7 @@ export var BackgroundColorItem = function BackgroundColorItem(_ref) {
|
|
|
61
60
|
backgroundColor: selectedColor
|
|
62
61
|
};
|
|
63
62
|
}, [selectedColor]);
|
|
64
|
-
var isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true)
|
|
63
|
+
var isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true);
|
|
65
64
|
var activePalette = isMoreColorsEnabled ? cellBackgroundColorPaletteNew : cellBackgroundColorPalette;
|
|
66
65
|
var activeCols = isMoreColorsEnabled ? colorPaletteColumns : colorPalletteColumns;
|
|
67
66
|
var paletteOptions = useMemo(function () {
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -36,7 +36,6 @@ import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
|
36
36
|
import ShrinkHorizontalIcon from '@atlaskit/icon/core/shrink-horizontal';
|
|
37
37
|
import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distribute';
|
|
38
38
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
39
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
40
39
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
41
40
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
42
41
|
import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, hoverTable, removeDescendantNodes } from '../pm-plugins/commands';
|
|
@@ -690,7 +689,7 @@ var getColorPicker = function getColorPicker(state, menu, _ref4, editorAnalytics
|
|
|
690
689
|
}
|
|
691
690
|
var node = targetCellPosition ? state.doc.nodeAt(targetCellPosition) : undefined;
|
|
692
691
|
var currentBackground = (node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff';
|
|
693
|
-
var isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true)
|
|
692
|
+
var isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true);
|
|
694
693
|
var activePalette = isMoreColorsEnabled ? cellBackgroundColorPaletteNew : cellBackgroundColorPalette;
|
|
695
694
|
var defaultPalette = activePalette.find(function (item) {
|
|
696
695
|
return item.value === currentBackground;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "34.0.
|
|
3
|
+
"version": "34.0.3",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -113,9 +113,6 @@
|
|
|
113
113
|
},
|
|
114
114
|
"platform_editor_table_flicker_issue": {
|
|
115
115
|
"type": "boolean"
|
|
116
|
-
},
|
|
117
|
-
"platform_editor_lovability_text_bg_color_patch_2": {
|
|
118
|
-
"type": "boolean"
|
|
119
116
|
}
|
|
120
117
|
},
|
|
121
118
|
"devDependencies": {
|