@atlaskit/editor-plugin-table 40.0.0 → 40.0.1
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 +9 -0
- package/dist/cjs/nodeviews/TableStickyScrollbar.js +13 -1
- package/dist/cjs/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +6 -3
- package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +13 -11
- package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +8 -5
- package/dist/cjs/ui/TableFullWidthLabel/index.js +11 -5
- package/dist/cjs/ui/TableMenu/column/items/HeaderColumnToggleItem.js +1 -1
- package/dist/cjs/ui/TableMenu/column/items/MoveColumnLeftItem.js +2 -2
- package/dist/cjs/ui/TableMenu/column/items/MoveColumnRightItem.js +2 -2
- package/dist/cjs/ui/TableMenu/column/items/SortDecreasingItem.js +4 -3
- package/dist/cjs/ui/TableMenu/column/items/SortIncreasingItem.js +4 -3
- package/dist/cjs/ui/TableMenu/row/items/HeaderRowToggleItem.js +1 -1
- package/dist/cjs/ui/TableMenu/row/items/MoveRowDownItem.js +2 -2
- package/dist/cjs/ui/TableMenu/row/items/MoveRowUpItem.js +2 -2
- package/dist/cjs/ui/TableMenu/row/items/NumberedRowsToggleItem.js +1 -1
- package/dist/cjs/ui/TableMenu/shared/items/BackgroundColorItem.js +3 -3
- package/dist/es2019/nodeviews/TableStickyScrollbar.js +13 -1
- package/dist/es2019/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +3 -1
- package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +3 -1
- package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +4 -2
- package/dist/es2019/ui/TableFullWidthLabel/index.js +5 -1
- package/dist/es2019/ui/TableMenu/column/items/HeaderColumnToggleItem.js +1 -1
- package/dist/es2019/ui/TableMenu/column/items/MoveColumnLeftItem.js +1 -1
- package/dist/es2019/ui/TableMenu/column/items/MoveColumnRightItem.js +1 -1
- package/dist/es2019/ui/TableMenu/column/items/SortDecreasingItem.js +2 -1
- package/dist/es2019/ui/TableMenu/column/items/SortIncreasingItem.js +2 -1
- package/dist/es2019/ui/TableMenu/row/items/HeaderRowToggleItem.js +1 -1
- package/dist/es2019/ui/TableMenu/row/items/MoveRowDownItem.js +1 -1
- package/dist/es2019/ui/TableMenu/row/items/MoveRowUpItem.js +1 -1
- package/dist/es2019/ui/TableMenu/row/items/NumberedRowsToggleItem.js +1 -1
- package/dist/es2019/ui/TableMenu/shared/items/BackgroundColorItem.js +1 -1
- package/dist/esm/nodeviews/TableStickyScrollbar.js +13 -1
- package/dist/esm/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +3 -1
- package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +3 -1
- package/dist/esm/ui/FloatingDragMenu/DragMenu.js +4 -2
- package/dist/esm/ui/TableFullWidthLabel/index.js +5 -1
- package/dist/esm/ui/TableMenu/column/items/HeaderColumnToggleItem.js +1 -1
- package/dist/esm/ui/TableMenu/column/items/MoveColumnLeftItem.js +1 -1
- package/dist/esm/ui/TableMenu/column/items/MoveColumnRightItem.js +1 -1
- package/dist/esm/ui/TableMenu/column/items/SortDecreasingItem.js +2 -1
- package/dist/esm/ui/TableMenu/column/items/SortIncreasingItem.js +2 -1
- package/dist/esm/ui/TableMenu/row/items/HeaderRowToggleItem.js +1 -1
- package/dist/esm/ui/TableMenu/row/items/MoveRowDownItem.js +1 -1
- package/dist/esm/ui/TableMenu/row/items/MoveRowUpItem.js +1 -1
- package/dist/esm/ui/TableMenu/row/items/NumberedRowsToggleItem.js +1 -1
- package/dist/esm/ui/TableMenu/shared/items/BackgroundColorItem.js +1 -1
- package/dist/types/nodeviews/TableStickyScrollbar.d.ts +1 -0
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 40.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`fa1e60dbfa6e5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fa1e60dbfa6e5) -
|
|
8
|
+
Keep rendered diffs visible when navigating inside horizontally overflowing tables, behind
|
|
9
|
+
`platform_editor_ai_suggestion_table_scroll_fix`.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 40.0.0
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -9,6 +9,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _utils = require("@atlaskit/editor-common/Popup/utils");
|
|
12
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
12
13
|
var _types = require("../types");
|
|
13
14
|
var TableStickyScrollbar = exports.TableStickyScrollbar = /*#__PURE__*/function () {
|
|
14
15
|
function TableStickyScrollbar(wrapper, view) {
|
|
@@ -19,7 +20,15 @@ var TableStickyScrollbar = exports.TableStickyScrollbar = /*#__PURE__*/function
|
|
|
19
20
|
if (!_this.stickyScrollbarContainerElement || !_this.wrapper || event.target !== _this.stickyScrollbarContainerElement) {
|
|
20
21
|
return;
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
+
var left = _this.stickyScrollbarContainerElement.scrollLeft;
|
|
24
|
+
if ((0, _fg.fg)('platform_editor_ai_suggestion_table_scroll_fix')) {
|
|
25
|
+
// Ignore positions copied from the table so their scroll events cannot interrupt it.
|
|
26
|
+
if (left === _this.mirroredScrollLeft) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
_this.mirroredScrollLeft = undefined;
|
|
30
|
+
}
|
|
31
|
+
_this.wrapper.scrollLeft = left;
|
|
23
32
|
});
|
|
24
33
|
this.wrapper = wrapper;
|
|
25
34
|
this.view = view;
|
|
@@ -42,6 +51,9 @@ var TableStickyScrollbar = exports.TableStickyScrollbar = /*#__PURE__*/function
|
|
|
42
51
|
value: function scrollLeft(left) {
|
|
43
52
|
if (this.stickyScrollbarContainerElement) {
|
|
44
53
|
this.stickyScrollbarContainerElement.scrollLeft = left;
|
|
54
|
+
if ((0, _fg.fg)('platform_editor_ai_suggestion_table_scroll_fix')) {
|
|
55
|
+
this.mirroredScrollLeft = this.stickyScrollbarContainerElement.scrollLeft;
|
|
56
|
+
}
|
|
45
57
|
}
|
|
46
58
|
}
|
|
47
59
|
}, {
|
|
@@ -9,7 +9,8 @@ var _react = require("@emotion/react");
|
|
|
9
9
|
var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
|
|
10
10
|
var _Button = _interopRequireDefault(require("@atlaskit/editor-common/FloatingToolbar/Button"));
|
|
11
11
|
var _Separator = _interopRequireDefault(require("@atlaskit/editor-common/FloatingToolbar/Separator"));
|
|
12
|
-
var
|
|
12
|
+
var _box = require("@atlaskit/primitives/box");
|
|
13
|
+
var _xcss = require("@atlaskit/primitives/xcss/xcss");
|
|
13
14
|
/**
|
|
14
15
|
* @jsxRuntime classic
|
|
15
16
|
* @jsx jsx
|
|
@@ -18,14 +19,16 @@ var _primitives = require("@atlaskit/primitives");
|
|
|
18
19
|
|
|
19
20
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
23
|
+
|
|
24
|
+
var containerStyles = (0, _xcss.xcss)({
|
|
22
25
|
marginLeft: 'space.100'
|
|
23
26
|
});
|
|
24
27
|
var FloatingAlignmentButtons = exports.FloatingAlignmentButtons = function FloatingAlignmentButtons(_ref) {
|
|
25
28
|
var alignmentButtons = _ref.alignmentButtons,
|
|
26
29
|
dispatchCommand = _ref.dispatchCommand,
|
|
27
30
|
areAnyNewToolbarFlagsEnabled = _ref.areAnyNewToolbarFlagsEnabled;
|
|
28
|
-
return (0, _react.jsx)(
|
|
31
|
+
return (0, _react.jsx)(_box.Box, {
|
|
29
32
|
xcss: containerStyles
|
|
30
33
|
}, (0, _react.jsx)(_buttonGroup.default, null, alignmentButtons.map(function (item, idx) {
|
|
31
34
|
switch (item.type) {
|
|
@@ -44,7 +44,8 @@ var _tableColumnDelete = _interopRequireDefault(require("@atlaskit/icon/core/tab
|
|
|
44
44
|
var _tableColumnsDistribute = _interopRequireDefault(require("@atlaskit/icon/core/table-columns-distribute"));
|
|
45
45
|
var _tableRowAddBelow = _interopRequireDefault(require("@atlaskit/icon/core/table-row-add-below"));
|
|
46
46
|
var _tableRowDelete = _interopRequireDefault(require("@atlaskit/icon/core/table-row-delete"));
|
|
47
|
-
var
|
|
47
|
+
var _box = require("@atlaskit/primitives/box");
|
|
48
|
+
var _xcss = require("@atlaskit/primitives/xcss/xcss");
|
|
48
49
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
49
50
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
50
51
|
var _commands = require("../../pm-plugins/commands");
|
|
@@ -66,10 +67,11 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
66
67
|
* @jsxRuntime classic
|
|
67
68
|
* @jsx jsx
|
|
68
69
|
*/ /* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
70
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
69
71
|
var dropdownMenuSection = {
|
|
70
72
|
hasSeparator: true
|
|
71
73
|
};
|
|
72
|
-
var elementBeforeIconStyles = (0,
|
|
74
|
+
var elementBeforeIconStyles = (0, _xcss.xcss)({
|
|
73
75
|
marginRight: 'space.negative.075',
|
|
74
76
|
display: 'flex'
|
|
75
77
|
});
|
|
@@ -153,7 +155,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
153
155
|
value: {
|
|
154
156
|
name: 'background'
|
|
155
157
|
},
|
|
156
|
-
elemBefore: (0, _react2.jsx)(
|
|
158
|
+
elemBefore: (0, _react2.jsx)(_box.Box, {
|
|
157
159
|
xcss: elementBeforeIconStyles
|
|
158
160
|
}, (0, _react2.jsx)(_paintBucket.default, {
|
|
159
161
|
color: "currentColor",
|
|
@@ -216,7 +218,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
216
218
|
(0, _defineProperty2.default)(_this, "newDistributeColumnsItem", function () {
|
|
217
219
|
var formatMessage = _this.props.intl.formatMessage;
|
|
218
220
|
return _this.createDistributeColumnsItemInternal({
|
|
219
|
-
elemBefore: (0, _react2.jsx)(
|
|
221
|
+
elemBefore: (0, _react2.jsx)(_box.Box, {
|
|
220
222
|
xcss: elementBeforeIconStyles
|
|
221
223
|
}, (0, _react2.jsx)(_tableColumnsDistribute.default, {
|
|
222
224
|
color: "currentColor",
|
|
@@ -237,7 +239,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
237
239
|
name: 'merge'
|
|
238
240
|
},
|
|
239
241
|
isDisabled: !(0, _merge.canMergeCells)(state.tr),
|
|
240
|
-
elemBefore: (0, _react2.jsx)(
|
|
242
|
+
elemBefore: (0, _react2.jsx)(_box.Box, {
|
|
241
243
|
xcss: elementBeforeIconStyles
|
|
242
244
|
}, (0, _react2.jsx)(_tableCellMerge.default, {
|
|
243
245
|
color: "currentColor",
|
|
@@ -250,7 +252,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
250
252
|
name: 'split'
|
|
251
253
|
},
|
|
252
254
|
isDisabled: !(0, _splitCell.splitCell)(state),
|
|
253
|
-
elemBefore: (0, _react2.jsx)(
|
|
255
|
+
elemBefore: (0, _react2.jsx)(_box.Box, {
|
|
254
256
|
xcss: elementBeforeIconStyles
|
|
255
257
|
}, (0, _react2.jsx)(_tableCellSplit.default, {
|
|
256
258
|
color: "currentColor",
|
|
@@ -275,7 +277,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
275
277
|
}, (0, _keymaps.tooltip)(_keymaps.addColumnAfter)),
|
|
276
278
|
elemBefore:
|
|
277
279
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
278
|
-
(0, _react2.jsx)(
|
|
280
|
+
(0, _react2.jsx)(_box.Box, {
|
|
279
281
|
xcss: elementBeforeIconStyles
|
|
280
282
|
}, (0, _react2.jsx)(_tableColumnAddRight.default, {
|
|
281
283
|
color: "currentColor",
|
|
@@ -297,7 +299,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
297
299
|
elemAfter: (0, _react2.jsx)("div", {
|
|
298
300
|
css: _main.shortcutStyle
|
|
299
301
|
}, (0, _keymaps.tooltip)(_keymaps.addRowAfter)),
|
|
300
|
-
elemBefore: (0, _react2.jsx)(
|
|
302
|
+
elemBefore: (0, _react2.jsx)(_box.Box, {
|
|
301
303
|
xcss: elementBeforeIconStyles
|
|
302
304
|
}, (0, _react2.jsx)(_tableRowAddBelow.default, {
|
|
303
305
|
color: "currentColor",
|
|
@@ -329,7 +331,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
329
331
|
elemAfter: (0, _react2.jsx)("div", {
|
|
330
332
|
css: _main.shortcutStyle
|
|
331
333
|
}, (0, _keymaps.tooltip)(_keymaps.backspace)),
|
|
332
|
-
elemBefore: (0, _react2.jsx)(
|
|
334
|
+
elemBefore: (0, _react2.jsx)(_box.Box, {
|
|
333
335
|
xcss: elementBeforeIconStyles
|
|
334
336
|
}, (0, _react2.jsx)(_tableCellClear.default, {
|
|
335
337
|
color: "currentColor",
|
|
@@ -355,7 +357,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
355
357
|
value: {
|
|
356
358
|
name: 'delete_column'
|
|
357
359
|
},
|
|
358
|
-
elemBefore: (0, _react2.jsx)(
|
|
360
|
+
elemBefore: (0, _react2.jsx)(_box.Box, {
|
|
359
361
|
xcss: elementBeforeIconStyles
|
|
360
362
|
}, (0, _react2.jsx)(_tableColumnDelete.default, {
|
|
361
363
|
color: "currentColor",
|
|
@@ -380,7 +382,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
380
382
|
value: {
|
|
381
383
|
name: 'delete_row'
|
|
382
384
|
},
|
|
383
|
-
elemBefore: (0, _react2.jsx)(
|
|
385
|
+
elemBefore: (0, _react2.jsx)(_box.Box, {
|
|
384
386
|
xcss: elementBeforeIconStyles
|
|
385
387
|
}, (0, _react2.jsx)(_tableRowDelete.default, {
|
|
386
388
|
color: "currentColor",
|
|
@@ -30,9 +30,10 @@ var _utils2 = require("@atlaskit/editor-tables/utils");
|
|
|
30
30
|
var _getSelectionRect = require("@atlaskit/editor-tables/utils/get-selection-rect");
|
|
31
31
|
var _isSelectionType = require("@atlaskit/editor-tables/utils/is-selection-type");
|
|
32
32
|
var _paintBucket = _interopRequireDefault(require("@atlaskit/icon/core/paint-bucket"));
|
|
33
|
-
var
|
|
33
|
+
var _box = require("@atlaskit/primitives/box");
|
|
34
|
+
var _xcss = require("@atlaskit/primitives/xcss/xcss");
|
|
34
35
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
35
|
-
var _toggle = _interopRequireDefault(require("@atlaskit/toggle"));
|
|
36
|
+
var _toggle = _interopRequireDefault(require("@atlaskit/toggle/toggle"));
|
|
36
37
|
var _commands = require("../../pm-plugins/commands");
|
|
37
38
|
var _commandsWithAnalytics = require("../../pm-plugins/commands/commands-with-analytics");
|
|
38
39
|
var _commands2 = require("../../pm-plugins/drag-and-drop/commands");
|
|
@@ -57,6 +58,8 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
57
58
|
|
|
58
59
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
59
60
|
|
|
61
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
62
|
+
|
|
60
63
|
var MapDragMenuOptionIdToMessage = {
|
|
61
64
|
add_row_above: {
|
|
62
65
|
message: _table.messages.addRowAbove,
|
|
@@ -121,7 +124,7 @@ var getGroupedDragMenuConfig = function getGroupedDragMenuConfig() {
|
|
|
121
124
|
groupedDragMenuConfig.unshift(sortColumnItems);
|
|
122
125
|
return groupedDragMenuConfig;
|
|
123
126
|
};
|
|
124
|
-
var elementBeforeIconStyles = (0,
|
|
127
|
+
var elementBeforeIconStyles = (0, _xcss.xcss)({
|
|
125
128
|
marginRight: 'space.negative.075',
|
|
126
129
|
display: 'flex'
|
|
127
130
|
});
|
|
@@ -174,7 +177,7 @@ var convertToDropdownItems = function convertToDropdownItems(dragMenuConfig, for
|
|
|
174
177
|
name: item.id
|
|
175
178
|
},
|
|
176
179
|
isDisabled: item.disabled,
|
|
177
|
-
elemBefore: item.icon ? (0, _react2.jsx)(
|
|
180
|
+
elemBefore: item.icon ? (0, _react2.jsx)(_box.Box, {
|
|
178
181
|
xcss: elementBeforeIconStyles
|
|
179
182
|
}, (0, _react2.jsx)(item.icon, {
|
|
180
183
|
color: "currentColor",
|
|
@@ -302,7 +305,7 @@ var DragMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
302
305
|
value: {
|
|
303
306
|
name: 'background'
|
|
304
307
|
},
|
|
305
|
-
elemBefore: (0, _react2.jsx)(
|
|
308
|
+
elemBefore: (0, _react2.jsx)(_box.Box, {
|
|
306
309
|
xcss: elementBeforeIconStyles
|
|
307
310
|
}, (0, _react2.jsx)(_paintBucket.default, {
|
|
308
311
|
color: "currentColor",
|
|
@@ -8,10 +8,16 @@ exports.FullWidthDisplay = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactIntl = require("react-intl");
|
|
10
10
|
var _table = require("@atlaskit/editor-common/messages/table");
|
|
11
|
-
var
|
|
11
|
+
var _box = require("@atlaskit/primitives/box");
|
|
12
|
+
var _inline = require("@atlaskit/primitives/inline");
|
|
13
|
+
var _xcss = require("@atlaskit/primitives/xcss/xcss");
|
|
12
14
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
19
|
+
|
|
20
|
+
var tableFullWidthLabelWrapperStyles = (0, _xcss.xcss)({
|
|
15
21
|
height: "var(--ds-space-400, 32px)",
|
|
16
22
|
display: 'flex',
|
|
17
23
|
backgroundColor: 'elevation.surface.overlay',
|
|
@@ -22,7 +28,7 @@ var tableFullWidthLabelWrapperStyles = (0, _primitives.xcss)({
|
|
|
22
28
|
boxSizing: 'border-box',
|
|
23
29
|
alignItems: 'center'
|
|
24
30
|
});
|
|
25
|
-
var tableFullWidthLabelStyles = (0,
|
|
31
|
+
var tableFullWidthLabelStyles = (0, _xcss.xcss)({
|
|
26
32
|
marginLeft: 'space.100',
|
|
27
33
|
marginRight: 'space.100',
|
|
28
34
|
paddingLeft: 'space.075',
|
|
@@ -33,9 +39,9 @@ var tableFullWidthLabelStyles = (0, _primitives.xcss)({
|
|
|
33
39
|
var FullWidthDisplay = exports.FullWidthDisplay = function FullWidthDisplay() {
|
|
34
40
|
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
35
41
|
formatMessage = _useIntl.formatMessage;
|
|
36
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
42
|
+
return /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
37
43
|
xcss: tableFullWidthLabelWrapperStyles
|
|
38
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement(_inline.Inline, {
|
|
39
45
|
xcss: tableFullWidthLabelStyles
|
|
40
46
|
}, formatMessage(_table.messages.fullWidthLabel)));
|
|
41
47
|
};
|
|
@@ -10,7 +10,7 @@ var _reactIntl = require("react-intl");
|
|
|
10
10
|
var _table = require("@atlaskit/editor-common/messages/table");
|
|
11
11
|
var _useSharedPluginStateWithSelector = require("@atlaskit/editor-common/useSharedPluginStateWithSelector");
|
|
12
12
|
var _toolbarDropdownItem = require("@atlaskit/editor-toolbar/toolbar-dropdown-item");
|
|
13
|
-
var _toggle = _interopRequireDefault(require("@atlaskit/toggle"));
|
|
13
|
+
var _toggle = _interopRequireDefault(require("@atlaskit/toggle/toggle"));
|
|
14
14
|
var _commandsWithAnalytics = require("../../../../pm-plugins/commands/commands-with-analytics");
|
|
15
15
|
var _TableMenuContext = require("../../shared/TableMenuContext");
|
|
16
16
|
/**
|
|
@@ -16,7 +16,7 @@ var _informationCircleIcon = require("@atlaskit/editor-toolbar/information-circl
|
|
|
16
16
|
var _toolbarDropdownItem = require("@atlaskit/editor-toolbar/toolbar-dropdown-item");
|
|
17
17
|
var _toolbarKeyboardShortcutHint = require("@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint");
|
|
18
18
|
var _tableColumnMoveLeft = _interopRequireDefault(require("@atlaskit/icon/core/table-column-move-left"));
|
|
19
|
-
var
|
|
19
|
+
var _text = require("@atlaskit/primitives/compiled/text");
|
|
20
20
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
21
21
|
var _commands = require("../../../../pm-plugins/commands");
|
|
22
22
|
var _commandsWithAnalytics = require("../../../../pm-plugins/drag-and-drop/commands-with-analytics");
|
|
@@ -84,7 +84,7 @@ var MoveColumnLeftItem = exports.MoveColumnLeftItem = function MoveColumnLeftIte
|
|
|
84
84
|
}))
|
|
85
85
|
);
|
|
86
86
|
})
|
|
87
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
87
|
+
}, /*#__PURE__*/_react.default.createElement(_text.Text, {
|
|
88
88
|
color: "color.text.disabled"
|
|
89
89
|
}, label));
|
|
90
90
|
}
|
|
@@ -16,7 +16,7 @@ var _columnMoveRightIcon = require("@atlaskit/editor-toolbar/column-move-right-i
|
|
|
16
16
|
var _informationCircleIcon = require("@atlaskit/editor-toolbar/information-circle-icon");
|
|
17
17
|
var _toolbarDropdownItem = require("@atlaskit/editor-toolbar/toolbar-dropdown-item");
|
|
18
18
|
var _toolbarKeyboardShortcutHint = require("@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint");
|
|
19
|
-
var
|
|
19
|
+
var _text = require("@atlaskit/primitives/compiled/text");
|
|
20
20
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
21
21
|
var _commands = require("../../../../pm-plugins/commands");
|
|
22
22
|
var _commandsWithAnalytics = require("../../../../pm-plugins/drag-and-drop/commands-with-analytics");
|
|
@@ -84,7 +84,7 @@ var MoveColumnRightItem = exports.MoveColumnRightItem = function MoveColumnRight
|
|
|
84
84
|
}))
|
|
85
85
|
);
|
|
86
86
|
})
|
|
87
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
87
|
+
}, /*#__PURE__*/_react.default.createElement(_text.Text, {
|
|
88
88
|
color: "color.text.disabled"
|
|
89
89
|
}, label));
|
|
90
90
|
}
|
|
@@ -18,7 +18,8 @@ var _getSelectionRect = require("@atlaskit/editor-tables/utils/get-selection-rec
|
|
|
18
18
|
var _informationCircleIcon = require("@atlaskit/editor-toolbar/information-circle-icon");
|
|
19
19
|
var _sortDescendingIcon = require("@atlaskit/editor-toolbar/sort-descending-icon");
|
|
20
20
|
var _toolbarDropdownItem = require("@atlaskit/editor-toolbar/toolbar-dropdown-item");
|
|
21
|
-
var
|
|
21
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
22
|
+
var _text = require("@atlaskit/primitives/compiled/text");
|
|
22
23
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
23
24
|
var _commands = require("../../../../pm-plugins/commands");
|
|
24
25
|
var _commandsWithAnalytics = require("../../../../pm-plugins/commands/commands-with-analytics");
|
|
@@ -63,7 +64,7 @@ var SortDecreasingItem = exports.SortDecreasingItem = function SortDecreasingIte
|
|
|
63
64
|
content: formatMessage(_table.messages.canNotSortTableNoIcon),
|
|
64
65
|
position: "top"
|
|
65
66
|
}, function (tooltipProps) {
|
|
66
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
67
|
+
return /*#__PURE__*/_react.default.createElement(_box.Box, (0, _extends2.default)({
|
|
67
68
|
as: "span",
|
|
68
69
|
xcss: styles.infoIconTrigger
|
|
69
70
|
}, tooltipProps), /*#__PURE__*/_react.default.createElement(_informationCircleIcon.InformationCircleIcon, {
|
|
@@ -72,7 +73,7 @@ var SortDecreasingItem = exports.SortDecreasingItem = function SortDecreasingIte
|
|
|
72
73
|
color: "var(--ds-icon, #292A2E)"
|
|
73
74
|
}));
|
|
74
75
|
})
|
|
75
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
76
|
+
}, /*#__PURE__*/_react.default.createElement(_text.Text, {
|
|
76
77
|
color: "color.text.disabled"
|
|
77
78
|
}, formatMessage(_table.messages.sortColumnDecreasing)));
|
|
78
79
|
}
|
|
@@ -18,7 +18,8 @@ var _getSelectionRect = require("@atlaskit/editor-tables/utils/get-selection-rec
|
|
|
18
18
|
var _informationCircleIcon = require("@atlaskit/editor-toolbar/information-circle-icon");
|
|
19
19
|
var _sortAscendingIcon = require("@atlaskit/editor-toolbar/sort-ascending-icon");
|
|
20
20
|
var _toolbarDropdownItem = require("@atlaskit/editor-toolbar/toolbar-dropdown-item");
|
|
21
|
-
var
|
|
21
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
22
|
+
var _text = require("@atlaskit/primitives/compiled/text");
|
|
22
23
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
23
24
|
var _commands = require("../../../../pm-plugins/commands");
|
|
24
25
|
var _commandsWithAnalytics = require("../../../../pm-plugins/commands/commands-with-analytics");
|
|
@@ -63,7 +64,7 @@ var SortIncreasingItem = exports.SortIncreasingItem = function SortIncreasingIte
|
|
|
63
64
|
content: formatMessage(_table.messages.canNotSortTableNoIcon),
|
|
64
65
|
position: "top"
|
|
65
66
|
}, function (tooltipProps) {
|
|
66
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
67
|
+
return /*#__PURE__*/_react.default.createElement(_box.Box, (0, _extends2.default)({
|
|
67
68
|
as: "span",
|
|
68
69
|
xcss: styles.infoIconTrigger
|
|
69
70
|
}, tooltipProps), /*#__PURE__*/_react.default.createElement(_informationCircleIcon.InformationCircleIcon, {
|
|
@@ -72,7 +73,7 @@ var SortIncreasingItem = exports.SortIncreasingItem = function SortIncreasingIte
|
|
|
72
73
|
color: "var(--ds-icon, #292A2E)"
|
|
73
74
|
}));
|
|
74
75
|
})
|
|
75
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
76
|
+
}, /*#__PURE__*/_react.default.createElement(_text.Text, {
|
|
76
77
|
color: "color.text.disabled"
|
|
77
78
|
}, formatMessage(_table.messages.sortColumnIncreasing)));
|
|
78
79
|
}
|
|
@@ -10,7 +10,7 @@ var _reactIntl = require("react-intl");
|
|
|
10
10
|
var _table = require("@atlaskit/editor-common/messages/table");
|
|
11
11
|
var _useSharedPluginStateWithSelector = require("@atlaskit/editor-common/useSharedPluginStateWithSelector");
|
|
12
12
|
var _toolbarDropdownItem = require("@atlaskit/editor-toolbar/toolbar-dropdown-item");
|
|
13
|
-
var _toggle = _interopRequireDefault(require("@atlaskit/toggle"));
|
|
13
|
+
var _toggle = _interopRequireDefault(require("@atlaskit/toggle/toggle"));
|
|
14
14
|
var _commandsWithAnalytics = require("../../../../pm-plugins/commands/commands-with-analytics");
|
|
15
15
|
var _TableMenuContext = require("../../shared/TableMenuContext");
|
|
16
16
|
/** Header row toggle is only visible when the first row is the entire selection. */
|
|
@@ -16,7 +16,7 @@ var _informationCircleIcon = require("@atlaskit/editor-toolbar/information-circl
|
|
|
16
16
|
var _rowMoveDownIcon = require("@atlaskit/editor-toolbar/row-move-down-icon");
|
|
17
17
|
var _toolbarDropdownItem = require("@atlaskit/editor-toolbar/toolbar-dropdown-item");
|
|
18
18
|
var _toolbarKeyboardShortcutHint = require("@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint");
|
|
19
|
-
var
|
|
19
|
+
var _text = require("@atlaskit/primitives/compiled/text");
|
|
20
20
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
21
21
|
var _commands = require("../../../../pm-plugins/commands");
|
|
22
22
|
var _commandsWithAnalytics = require("../../../../pm-plugins/drag-and-drop/commands-with-analytics");
|
|
@@ -84,7 +84,7 @@ var MoveRowDownItem = exports.MoveRowDownItem = function MoveRowDownItem(props)
|
|
|
84
84
|
}))
|
|
85
85
|
);
|
|
86
86
|
})
|
|
87
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
87
|
+
}, /*#__PURE__*/_react.default.createElement(_text.Text, {
|
|
88
88
|
color: "color.text.disabled"
|
|
89
89
|
}, label));
|
|
90
90
|
}
|
|
@@ -16,7 +16,7 @@ var _informationCircleIcon = require("@atlaskit/editor-toolbar/information-circl
|
|
|
16
16
|
var _rowMoveUpIcon = require("@atlaskit/editor-toolbar/row-move-up-icon");
|
|
17
17
|
var _toolbarDropdownItem = require("@atlaskit/editor-toolbar/toolbar-dropdown-item");
|
|
18
18
|
var _toolbarKeyboardShortcutHint = require("@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint");
|
|
19
|
-
var
|
|
19
|
+
var _text = require("@atlaskit/primitives/compiled/text");
|
|
20
20
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
21
21
|
var _commands = require("../../../../pm-plugins/commands");
|
|
22
22
|
var _commandsWithAnalytics = require("../../../../pm-plugins/drag-and-drop/commands-with-analytics");
|
|
@@ -84,7 +84,7 @@ var MoveRowUpItem = exports.MoveRowUpItem = function MoveRowUpItem(props) {
|
|
|
84
84
|
}))
|
|
85
85
|
);
|
|
86
86
|
})
|
|
87
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
87
|
+
}, /*#__PURE__*/_react.default.createElement(_text.Text, {
|
|
88
88
|
color: "color.text.disabled"
|
|
89
89
|
}, label));
|
|
90
90
|
}
|
|
@@ -10,7 +10,7 @@ var _reactIntl = require("react-intl");
|
|
|
10
10
|
var _table = require("@atlaskit/editor-common/messages/table");
|
|
11
11
|
var _useSharedPluginStateWithSelector = require("@atlaskit/editor-common/useSharedPluginStateWithSelector");
|
|
12
12
|
var _toolbarDropdownItem = require("@atlaskit/editor-toolbar/toolbar-dropdown-item");
|
|
13
|
-
var _toggle = _interopRequireDefault(require("@atlaskit/toggle"));
|
|
13
|
+
var _toggle = _interopRequireDefault(require("@atlaskit/toggle/toggle"));
|
|
14
14
|
var _commandsWithAnalytics = require("../../../../pm-plugins/commands/commands-with-analytics");
|
|
15
15
|
var _TableMenuContext = require("../../shared/TableMenuContext");
|
|
16
16
|
var NumberedRowsToggleItem = exports.NumberedRowsToggleItem = function NumberedRowsToggleItem(props) {
|
|
@@ -21,7 +21,7 @@ var _background = require("@atlaskit/editor-palette/background");
|
|
|
21
21
|
var _nestedDropdownRightIcon = require("@atlaskit/editor-toolbar/nested-dropdown-right-icon");
|
|
22
22
|
var _paintBucketIcon = require("@atlaskit/editor-toolbar/paint-bucket-icon");
|
|
23
23
|
var _toolbarNestedDropdownMenu = require("@atlaskit/editor-toolbar/toolbar-nested-dropdown-menu");
|
|
24
|
-
var
|
|
24
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
25
25
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
26
26
|
var _commands = require("../../../../pm-plugins/commands");
|
|
27
27
|
var _commandsWithAnalytics = require("../../../../pm-plugins/commands/commands-with-analytics");
|
|
@@ -90,7 +90,7 @@ var BackgroundColorItem = exports.BackgroundColorItem = function BackgroundColor
|
|
|
90
90
|
label: "",
|
|
91
91
|
size: "small"
|
|
92
92
|
}),
|
|
93
|
-
elemAfter: /*#__PURE__*/_react.default.createElement(
|
|
93
|
+
elemAfter: /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
94
94
|
xcss: colorPaletteStyles.elemAfter
|
|
95
95
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
96
96
|
style: colorPreviewStyle,
|
|
@@ -100,7 +100,7 @@ var BackgroundColorItem = exports.BackgroundColorItem = function BackgroundColor
|
|
|
100
100
|
size: "small"
|
|
101
101
|
})),
|
|
102
102
|
text: formatMessage(_table.messages.backgroundColor)
|
|
103
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
103
|
+
}, /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
104
104
|
xcss: colorPaletteStyles.container
|
|
105
105
|
}, /*#__PURE__*/_react.default.createElement(_ColorPalette.default, {
|
|
106
106
|
cols: activeCols,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { findOverflowScrollParent } from '@atlaskit/editor-common/Popup/utils';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
4
|
import { TableCssClassName as ClassName } from '../types';
|
|
4
5
|
export class TableStickyScrollbar {
|
|
5
6
|
constructor(wrapper, view) {
|
|
@@ -8,7 +9,15 @@ export class TableStickyScrollbar {
|
|
|
8
9
|
if (!this.stickyScrollbarContainerElement || !this.wrapper || event.target !== this.stickyScrollbarContainerElement) {
|
|
9
10
|
return;
|
|
10
11
|
}
|
|
11
|
-
|
|
12
|
+
const left = this.stickyScrollbarContainerElement.scrollLeft;
|
|
13
|
+
if (fg('platform_editor_ai_suggestion_table_scroll_fix')) {
|
|
14
|
+
// Ignore positions copied from the table so their scroll events cannot interrupt it.
|
|
15
|
+
if (left === this.mirroredScrollLeft) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
this.mirroredScrollLeft = undefined;
|
|
19
|
+
}
|
|
20
|
+
this.wrapper.scrollLeft = left;
|
|
12
21
|
});
|
|
13
22
|
this.wrapper = wrapper;
|
|
14
23
|
this.view = view;
|
|
@@ -27,6 +36,9 @@ export class TableStickyScrollbar {
|
|
|
27
36
|
scrollLeft(left) {
|
|
28
37
|
if (this.stickyScrollbarContainerElement) {
|
|
29
38
|
this.stickyScrollbarContainerElement.scrollLeft = left;
|
|
39
|
+
if (fg('platform_editor_ai_suggestion_table_scroll_fix')) {
|
|
40
|
+
this.mirroredScrollLeft = this.stickyScrollbarContainerElement.scrollLeft;
|
|
41
|
+
}
|
|
30
42
|
}
|
|
31
43
|
}
|
|
32
44
|
init() {
|
|
@@ -8,7 +8,9 @@ import ButtonGroup from '@atlaskit/button/button-group';
|
|
|
8
8
|
import Button from '@atlaskit/editor-common/FloatingToolbar/Button';
|
|
9
9
|
import FloatingToolbarSeparator from '@atlaskit/editor-common/FloatingToolbar/Separator';
|
|
10
10
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
11
|
-
import { Box
|
|
11
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
13
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
12
14
|
const containerStyles = xcss({
|
|
13
15
|
marginLeft: 'space.100'
|
|
14
16
|
});
|
|
@@ -39,7 +39,9 @@ import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distri
|
|
|
39
39
|
import TableRowAddBelowIcon from '@atlaskit/icon/core/table-row-add-below';
|
|
40
40
|
import TableRowDeleteIcon from '@atlaskit/icon/core/table-row-delete';
|
|
41
41
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
42
|
-
import { Box
|
|
42
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
43
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
44
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
43
45
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
44
46
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
45
47
|
import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, setFocusToCellMenu, toggleContextualMenu } from '../../pm-plugins/commands';
|
|
@@ -30,9 +30,11 @@ import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-re
|
|
|
30
30
|
import { isSelectionType } from '@atlaskit/editor-tables/utils/is-selection-type';
|
|
31
31
|
import PaintBucketIcon from '@atlaskit/icon/core/paint-bucket';
|
|
32
32
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
33
|
-
import { Box
|
|
33
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
35
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
34
36
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
35
|
-
import Toggle from '@atlaskit/toggle';
|
|
37
|
+
import Toggle from '@atlaskit/toggle/toggle';
|
|
36
38
|
import { clearHoverSelection, hoverColumns, hoverRows } from '../../pm-plugins/commands';
|
|
37
39
|
import { setColorWithAnalytics, toggleHeaderColumnWithAnalytics, toggleHeaderRowWithAnalytics, toggleNumberColumnWithAnalytics } from '../../pm-plugins/commands/commands-with-analytics';
|
|
38
40
|
import { toggleDragMenu } from '../../pm-plugins/drag-and-drop/commands';
|
|
@@ -2,7 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { messages } from '@atlaskit/editor-common/messages/table';
|
|
4
4
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
5
|
-
import { Box
|
|
5
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
6
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
7
|
+
import { Inline } from '@atlaskit/primitives/inline';
|
|
8
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
9
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
6
10
|
const tableFullWidthLabelWrapperStyles = xcss({
|
|
7
11
|
height: "var(--ds-space-400, 32px)",
|
|
8
12
|
display: 'flex',
|
|
@@ -3,7 +3,7 @@ import { useIntl } from 'react-intl';
|
|
|
3
3
|
import { messages } from '@atlaskit/editor-common/messages/table';
|
|
4
4
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
5
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
6
|
-
import Toggle from '@atlaskit/toggle';
|
|
6
|
+
import Toggle from '@atlaskit/toggle/toggle';
|
|
7
7
|
import { toggleHeaderColumnWithAnalytics } from '../../../../pm-plugins/commands/commands-with-analytics';
|
|
8
8
|
import { useTableMenuContext } from '../../shared/TableMenuContext';
|
|
9
9
|
/**
|
|
@@ -9,7 +9,7 @@ import { InformationCircleIcon } from '@atlaskit/editor-toolbar/information-circ
|
|
|
9
9
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
10
10
|
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
11
11
|
import TableColumnMoveLeftIcon from '@atlaskit/icon/core/table-column-move-left';
|
|
12
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
12
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
13
13
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
14
14
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
15
15
|
import { moveSourceWithAnalytics } from '../../../../pm-plugins/drag-and-drop/commands-with-analytics';
|
|
@@ -9,7 +9,7 @@ import { TableColumnMoveRightIcon } from '@atlaskit/editor-toolbar/column-move-r
|
|
|
9
9
|
import { InformationCircleIcon } from '@atlaskit/editor-toolbar/information-circle-icon';
|
|
10
10
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
11
11
|
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
12
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
12
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
13
13
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
14
14
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
15
15
|
import { moveSourceWithAnalytics } from '../../../../pm-plugins/drag-and-drop/commands-with-analytics';
|
|
@@ -11,7 +11,8 @@ import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-re
|
|
|
11
11
|
import { InformationCircleIcon } from '@atlaskit/editor-toolbar/information-circle-icon';
|
|
12
12
|
import { SortDescendingIcon } from '@atlaskit/editor-toolbar/sort-descending-icon';
|
|
13
13
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
14
|
-
import { Box
|
|
14
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
15
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
15
16
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
16
17
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
17
18
|
import { sortColumnWithAnalytics } from '../../../../pm-plugins/commands/commands-with-analytics';
|
|
@@ -11,7 +11,8 @@ import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-re
|
|
|
11
11
|
import { InformationCircleIcon } from '@atlaskit/editor-toolbar/information-circle-icon';
|
|
12
12
|
import { SortAscendingIcon } from '@atlaskit/editor-toolbar/sort-ascending-icon';
|
|
13
13
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
14
|
-
import { Box
|
|
14
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
15
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
15
16
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
16
17
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
17
18
|
import { sortColumnWithAnalytics } from '../../../../pm-plugins/commands/commands-with-analytics';
|
|
@@ -3,7 +3,7 @@ import { useIntl } from 'react-intl';
|
|
|
3
3
|
import { messages } from '@atlaskit/editor-common/messages/table';
|
|
4
4
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
5
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
6
|
-
import Toggle from '@atlaskit/toggle';
|
|
6
|
+
import Toggle from '@atlaskit/toggle/toggle';
|
|
7
7
|
import { toggleHeaderRowWithAnalytics } from '../../../../pm-plugins/commands/commands-with-analytics';
|
|
8
8
|
import { useTableMenuContext } from '../../shared/TableMenuContext';
|
|
9
9
|
/** Header row toggle is only visible when the first row is the entire selection. */
|
|
@@ -9,7 +9,7 @@ import { InformationCircleIcon } from '@atlaskit/editor-toolbar/information-circ
|
|
|
9
9
|
import { TableRowMoveDownIcon } from '@atlaskit/editor-toolbar/row-move-down-icon';
|
|
10
10
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
11
11
|
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
12
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
12
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
13
13
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
14
14
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
15
15
|
import { moveSourceWithAnalytics } from '../../../../pm-plugins/drag-and-drop/commands-with-analytics';
|
|
@@ -9,7 +9,7 @@ import { InformationCircleIcon } from '@atlaskit/editor-toolbar/information-circ
|
|
|
9
9
|
import { TableRowMoveUpIcon } from '@atlaskit/editor-toolbar/row-move-up-icon';
|
|
10
10
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
11
11
|
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
12
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
12
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
13
13
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
14
14
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
15
15
|
import { moveSourceWithAnalytics } from '../../../../pm-plugins/drag-and-drop/commands-with-analytics';
|
|
@@ -3,7 +3,7 @@ import { useIntl } from 'react-intl';
|
|
|
3
3
|
import { messages } from '@atlaskit/editor-common/messages/table';
|
|
4
4
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
5
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
6
|
-
import Toggle from '@atlaskit/toggle';
|
|
6
|
+
import Toggle from '@atlaskit/toggle/toggle';
|
|
7
7
|
import { toggleNumberColumnWithAnalytics } from '../../../../pm-plugins/commands/commands-with-analytics';
|
|
8
8
|
import { useTableMenuContext } from '../../shared/TableMenuContext';
|
|
9
9
|
export const NumberedRowsToggleItem = props => {
|
|
@@ -13,7 +13,7 @@ import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette/back
|
|
|
13
13
|
import { NestedDropdownRightIcon } from '@atlaskit/editor-toolbar/nested-dropdown-right-icon';
|
|
14
14
|
import { PaintBucketIcon } from '@atlaskit/editor-toolbar/paint-bucket-icon';
|
|
15
15
|
import { ToolbarNestedDropdownMenu } from '@atlaskit/editor-toolbar/toolbar-nested-dropdown-menu';
|
|
16
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
16
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
17
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
18
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
19
19
|
import { setColorWithAnalytics } from '../../../../pm-plugins/commands/commands-with-analytics';
|
|
@@ -2,6 +2,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import { findOverflowScrollParent } from '@atlaskit/editor-common/Popup/utils';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
6
|
import { TableCssClassName as ClassName } from '../types';
|
|
6
7
|
export var TableStickyScrollbar = /*#__PURE__*/function () {
|
|
7
8
|
function TableStickyScrollbar(wrapper, view) {
|
|
@@ -12,7 +13,15 @@ export var TableStickyScrollbar = /*#__PURE__*/function () {
|
|
|
12
13
|
if (!_this.stickyScrollbarContainerElement || !_this.wrapper || event.target !== _this.stickyScrollbarContainerElement) {
|
|
13
14
|
return;
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
+
var left = _this.stickyScrollbarContainerElement.scrollLeft;
|
|
17
|
+
if (fg('platform_editor_ai_suggestion_table_scroll_fix')) {
|
|
18
|
+
// Ignore positions copied from the table so their scroll events cannot interrupt it.
|
|
19
|
+
if (left === _this.mirroredScrollLeft) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
_this.mirroredScrollLeft = undefined;
|
|
23
|
+
}
|
|
24
|
+
_this.wrapper.scrollLeft = left;
|
|
16
25
|
});
|
|
17
26
|
this.wrapper = wrapper;
|
|
18
27
|
this.view = view;
|
|
@@ -35,6 +44,9 @@ export var TableStickyScrollbar = /*#__PURE__*/function () {
|
|
|
35
44
|
value: function scrollLeft(left) {
|
|
36
45
|
if (this.stickyScrollbarContainerElement) {
|
|
37
46
|
this.stickyScrollbarContainerElement.scrollLeft = left;
|
|
47
|
+
if (fg('platform_editor_ai_suggestion_table_scroll_fix')) {
|
|
48
|
+
this.mirroredScrollLeft = this.stickyScrollbarContainerElement.scrollLeft;
|
|
49
|
+
}
|
|
38
50
|
}
|
|
39
51
|
}
|
|
40
52
|
}, {
|
|
@@ -8,7 +8,9 @@ import ButtonGroup from '@atlaskit/button/button-group';
|
|
|
8
8
|
import Button from '@atlaskit/editor-common/FloatingToolbar/Button';
|
|
9
9
|
import FloatingToolbarSeparator from '@atlaskit/editor-common/FloatingToolbar/Separator';
|
|
10
10
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
11
|
-
import { Box
|
|
11
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
13
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
12
14
|
var containerStyles = xcss({
|
|
13
15
|
marginLeft: 'space.100'
|
|
14
16
|
});
|
|
@@ -49,7 +49,9 @@ import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distri
|
|
|
49
49
|
import TableRowAddBelowIcon from '@atlaskit/icon/core/table-row-add-below';
|
|
50
50
|
import TableRowDeleteIcon from '@atlaskit/icon/core/table-row-delete';
|
|
51
51
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
52
|
-
import { Box
|
|
52
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
53
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
54
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
53
55
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
54
56
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
55
57
|
import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, setFocusToCellMenu, toggleContextualMenu } from '../../pm-plugins/commands';
|
|
@@ -32,9 +32,11 @@ import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-re
|
|
|
32
32
|
import { isSelectionType } from '@atlaskit/editor-tables/utils/is-selection-type';
|
|
33
33
|
import PaintBucketIcon from '@atlaskit/icon/core/paint-bucket';
|
|
34
34
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
35
|
-
import { Box
|
|
35
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
36
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
37
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
36
38
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
37
|
-
import Toggle from '@atlaskit/toggle';
|
|
39
|
+
import Toggle from '@atlaskit/toggle/toggle';
|
|
38
40
|
import { clearHoverSelection, hoverColumns, hoverRows } from '../../pm-plugins/commands';
|
|
39
41
|
import { setColorWithAnalytics, toggleHeaderColumnWithAnalytics, toggleHeaderRowWithAnalytics, toggleNumberColumnWithAnalytics } from '../../pm-plugins/commands/commands-with-analytics';
|
|
40
42
|
import { toggleDragMenu } from '../../pm-plugins/drag-and-drop/commands';
|
|
@@ -2,7 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { messages } from '@atlaskit/editor-common/messages/table';
|
|
4
4
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
5
|
-
import { Box
|
|
5
|
+
import { Box } from '@atlaskit/primitives/box';
|
|
6
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
7
|
+
import { Inline } from '@atlaskit/primitives/inline';
|
|
8
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
9
|
+
import { xcss } from '@atlaskit/primitives/xcss/xcss';
|
|
6
10
|
var tableFullWidthLabelWrapperStyles = xcss({
|
|
7
11
|
height: "var(--ds-space-400, 32px)",
|
|
8
12
|
display: 'flex',
|
|
@@ -3,7 +3,7 @@ import { useIntl } from 'react-intl';
|
|
|
3
3
|
import { messages } from '@atlaskit/editor-common/messages/table';
|
|
4
4
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
5
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
6
|
-
import Toggle from '@atlaskit/toggle';
|
|
6
|
+
import Toggle from '@atlaskit/toggle/toggle';
|
|
7
7
|
import { toggleHeaderColumnWithAnalytics } from '../../../../pm-plugins/commands/commands-with-analytics';
|
|
8
8
|
import { useTableMenuContext } from '../../shared/TableMenuContext';
|
|
9
9
|
/**
|
|
@@ -9,7 +9,7 @@ import { InformationCircleIcon } from '@atlaskit/editor-toolbar/information-circ
|
|
|
9
9
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
10
10
|
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
11
11
|
import TableColumnMoveLeftIcon from '@atlaskit/icon/core/table-column-move-left';
|
|
12
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
12
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
13
13
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
14
14
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
15
15
|
import { moveSourceWithAnalytics } from '../../../../pm-plugins/drag-and-drop/commands-with-analytics';
|
|
@@ -9,7 +9,7 @@ import { TableColumnMoveRightIcon } from '@atlaskit/editor-toolbar/column-move-r
|
|
|
9
9
|
import { InformationCircleIcon } from '@atlaskit/editor-toolbar/information-circle-icon';
|
|
10
10
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
11
11
|
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
12
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
12
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
13
13
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
14
14
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
15
15
|
import { moveSourceWithAnalytics } from '../../../../pm-plugins/drag-and-drop/commands-with-analytics';
|
|
@@ -11,7 +11,8 @@ import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-re
|
|
|
11
11
|
import { InformationCircleIcon } from '@atlaskit/editor-toolbar/information-circle-icon';
|
|
12
12
|
import { SortDescendingIcon } from '@atlaskit/editor-toolbar/sort-descending-icon';
|
|
13
13
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
14
|
-
import { Box
|
|
14
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
15
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
15
16
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
16
17
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
17
18
|
import { sortColumnWithAnalytics } from '../../../../pm-plugins/commands/commands-with-analytics';
|
|
@@ -11,7 +11,8 @@ import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-re
|
|
|
11
11
|
import { InformationCircleIcon } from '@atlaskit/editor-toolbar/information-circle-icon';
|
|
12
12
|
import { SortAscendingIcon } from '@atlaskit/editor-toolbar/sort-ascending-icon';
|
|
13
13
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
14
|
-
import { Box
|
|
14
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
15
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
15
16
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
16
17
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
17
18
|
import { sortColumnWithAnalytics } from '../../../../pm-plugins/commands/commands-with-analytics';
|
|
@@ -3,7 +3,7 @@ import { useIntl } from 'react-intl';
|
|
|
3
3
|
import { messages } from '@atlaskit/editor-common/messages/table';
|
|
4
4
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
5
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
6
|
-
import Toggle from '@atlaskit/toggle';
|
|
6
|
+
import Toggle from '@atlaskit/toggle/toggle';
|
|
7
7
|
import { toggleHeaderRowWithAnalytics } from '../../../../pm-plugins/commands/commands-with-analytics';
|
|
8
8
|
import { useTableMenuContext } from '../../shared/TableMenuContext';
|
|
9
9
|
/** Header row toggle is only visible when the first row is the entire selection. */
|
|
@@ -9,7 +9,7 @@ import { InformationCircleIcon } from '@atlaskit/editor-toolbar/information-circ
|
|
|
9
9
|
import { TableRowMoveDownIcon } from '@atlaskit/editor-toolbar/row-move-down-icon';
|
|
10
10
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
11
11
|
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
12
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
12
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
13
13
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
14
14
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
15
15
|
import { moveSourceWithAnalytics } from '../../../../pm-plugins/drag-and-drop/commands-with-analytics';
|
|
@@ -9,7 +9,7 @@ import { InformationCircleIcon } from '@atlaskit/editor-toolbar/information-circ
|
|
|
9
9
|
import { TableRowMoveUpIcon } from '@atlaskit/editor-toolbar/row-move-up-icon';
|
|
10
10
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
11
11
|
import { ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint';
|
|
12
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
12
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
13
13
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
14
14
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
15
15
|
import { moveSourceWithAnalytics } from '../../../../pm-plugins/drag-and-drop/commands-with-analytics';
|
|
@@ -3,7 +3,7 @@ import { useIntl } from 'react-intl';
|
|
|
3
3
|
import { messages } from '@atlaskit/editor-common/messages/table';
|
|
4
4
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
5
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
6
|
-
import Toggle from '@atlaskit/toggle';
|
|
6
|
+
import Toggle from '@atlaskit/toggle/toggle';
|
|
7
7
|
import { toggleNumberColumnWithAnalytics } from '../../../../pm-plugins/commands/commands-with-analytics';
|
|
8
8
|
import { useTableMenuContext } from '../../shared/TableMenuContext';
|
|
9
9
|
export var NumberedRowsToggleItem = function NumberedRowsToggleItem(props) {
|
|
@@ -13,7 +13,7 @@ import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette/back
|
|
|
13
13
|
import { NestedDropdownRightIcon } from '@atlaskit/editor-toolbar/nested-dropdown-right-icon';
|
|
14
14
|
import { PaintBucketIcon } from '@atlaskit/editor-toolbar/paint-bucket-icon';
|
|
15
15
|
import { ToolbarNestedDropdownMenu } from '@atlaskit/editor-toolbar/toolbar-nested-dropdown-menu';
|
|
16
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
16
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
17
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
18
|
import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
|
|
19
19
|
import { setColorWithAnalytics } from '../../../../pm-plugins/commands/commands-with-analytics';
|
|
@@ -5,6 +5,7 @@ export declare class TableStickyScrollbar {
|
|
|
5
5
|
private editorScrollableElement?;
|
|
6
6
|
private intersectionObserver?;
|
|
7
7
|
private stickyScrollbarContainerElement?;
|
|
8
|
+
private mirroredScrollLeft?;
|
|
8
9
|
private sentinels;
|
|
9
10
|
private topSentinelState?;
|
|
10
11
|
private bottomSentinelState?;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "40.0.
|
|
3
|
+
"version": "40.0.1",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -74,6 +74,9 @@
|
|
|
74
74
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
75
75
|
},
|
|
76
76
|
"platform-feature-flags": {
|
|
77
|
+
"platform_editor_ai_suggestion_table_scroll_fix": {
|
|
78
|
+
"type": "boolean"
|
|
79
|
+
},
|
|
77
80
|
"platform-dst-tokens-finesse": {
|
|
78
81
|
"type": "boolean",
|
|
79
82
|
"referenceOnly": true
|