@atlaskit/editor-plugin-table 22.2.3 → 22.2.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/nodeviews/TableComponent.js +3 -2
- package/dist/cjs/pm-plugins/analytics/commands.js +4 -0
- package/dist/cjs/pm-plugins/commands/hover.js +4 -0
- package/dist/cjs/pm-plugins/commands/referentiality.js +4 -0
- package/dist/cjs/pm-plugins/drag-and-drop/commands.js +4 -0
- package/dist/cjs/pm-plugins/drag-and-drop/plugin.js +2 -0
- package/dist/cjs/pm-plugins/drag-and-drop/utils/autoscrollers.js +4 -0
- package/dist/cjs/pm-plugins/sticky-headers/commands.js +2 -0
- package/dist/cjs/pm-plugins/table-resizing/plugin-factory.js +5 -0
- package/dist/cjs/pm-plugins/utils/drag-menu.js +2 -2
- package/dist/cjs/ui/ColumnResizeWidget/index.js +1 -1
- package/dist/cjs/ui/DragHandle/index.js +2 -0
- package/dist/cjs/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +1 -1
- package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +4 -4
- package/dist/cjs/ui/FloatingDeleteButton/DeleteButton.js +4 -1
- package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +4 -1
- package/dist/cjs/ui/FloatingInsertButton/InsertButton.js +6 -1
- package/dist/cjs/ui/FloatingInsertButton/index.js +3 -2
- package/dist/cjs/ui/SizeSelector/index.js +1 -1
- package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
- package/dist/cjs/ui/TableFloatingControls/CornerControls/DragCornerControls.js +4 -0
- package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -1
- package/dist/cjs/ui/TableFloatingControls/index.js +1 -1
- package/dist/cjs/ui/global-styles.js +1 -1
- package/dist/es2019/nodeviews/TableComponent.js +4 -1
- package/dist/es2019/pm-plugins/analytics/commands.js +3 -0
- package/dist/es2019/pm-plugins/commands/hover.js +3 -0
- package/dist/es2019/pm-plugins/commands/referentiality.js +3 -0
- package/dist/es2019/pm-plugins/drag-and-drop/commands.js +4 -0
- package/dist/es2019/pm-plugins/drag-and-drop/plugin.js +2 -0
- package/dist/es2019/pm-plugins/drag-and-drop/utils/autoscrollers.js +3 -0
- package/dist/es2019/pm-plugins/sticky-headers/commands.js +2 -0
- package/dist/es2019/pm-plugins/table-resizing/plugin-factory.js +5 -0
- package/dist/es2019/pm-plugins/utils/drag-menu.js +2 -2
- package/dist/es2019/ui/ColumnResizeWidget/index.js +1 -1
- package/dist/es2019/ui/DragHandle/index.js +2 -0
- package/dist/es2019/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +1 -1
- package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +5 -2
- package/dist/es2019/ui/FloatingDeleteButton/DeleteButton.js +4 -1
- package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +4 -1
- package/dist/es2019/ui/FloatingInsertButton/InsertButton.js +6 -1
- package/dist/es2019/ui/FloatingInsertButton/index.js +4 -1
- package/dist/es2019/ui/SizeSelector/index.js +1 -1
- package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +2 -0
- package/dist/es2019/ui/TableFloatingControls/CornerControls/DragCornerControls.js +4 -0
- package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -0
- package/dist/es2019/ui/TableFloatingControls/index.js +2 -2
- package/dist/es2019/ui/global-styles.js +2 -2
- package/dist/esm/nodeviews/TableComponent.js +3 -2
- package/dist/esm/pm-plugins/analytics/commands.js +3 -0
- package/dist/esm/pm-plugins/commands/hover.js +3 -0
- package/dist/esm/pm-plugins/commands/referentiality.js +3 -0
- package/dist/esm/pm-plugins/drag-and-drop/commands.js +4 -0
- package/dist/esm/pm-plugins/drag-and-drop/plugin.js +2 -0
- package/dist/esm/pm-plugins/drag-and-drop/utils/autoscrollers.js +3 -0
- package/dist/esm/pm-plugins/sticky-headers/commands.js +2 -0
- package/dist/esm/pm-plugins/table-resizing/plugin-factory.js +5 -0
- package/dist/esm/pm-plugins/utils/drag-menu.js +2 -2
- package/dist/esm/ui/ColumnResizeWidget/index.js +1 -1
- package/dist/esm/ui/DragHandle/index.js +2 -0
- package/dist/esm/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +1 -1
- package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +5 -2
- package/dist/esm/ui/FloatingDeleteButton/DeleteButton.js +4 -1
- package/dist/esm/ui/FloatingDragMenu/DragMenu.js +4 -1
- package/dist/esm/ui/FloatingInsertButton/InsertButton.js +6 -1
- package/dist/esm/ui/FloatingInsertButton/index.js +4 -1
- package/dist/esm/ui/SizeSelector/index.js +1 -1
- package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
- package/dist/esm/ui/TableFloatingControls/CornerControls/DragCornerControls.js +4 -0
- package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -1
- package/dist/esm/ui/TableFloatingControls/index.js +2 -2
- package/dist/esm/ui/global-styles.js +2 -2
- package/dist/types/nodeviews/TableComponent.d.ts +3 -3
- package/dist/types/nodeviews/table-node-views.d.ts +3 -3
- package/dist/types/nodeviews/table.d.ts +2 -2
- package/dist/types/pm-plugins/analytics/commands.d.ts +2 -1
- package/dist/types/pm-plugins/analytics/plugin.d.ts +2 -1
- package/dist/types/pm-plugins/commands/hover.d.ts +10 -9
- package/dist/types/pm-plugins/commands/misc.d.ts +1 -1
- package/dist/types/pm-plugins/commands/referentiality.d.ts +2 -1
- package/dist/types/pm-plugins/commands/toggle.d.ts +1 -1
- package/dist/types/pm-plugins/decorations/plugin.d.ts +1 -1
- package/dist/types/pm-plugins/drag-and-drop/commands.d.ts +6 -5
- package/dist/types/pm-plugins/drag-and-drop/plugin.d.ts +2 -1
- package/dist/types/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +2 -1
- package/dist/types/pm-plugins/main.d.ts +2 -2
- package/dist/types/pm-plugins/sticky-headers/commands.d.ts +3 -2
- package/dist/types/pm-plugins/sticky-headers/plugin.d.ts +2 -1
- package/dist/types/pm-plugins/sticky-headers/util.d.ts +2 -2
- package/dist/types/pm-plugins/table-anchor-names/plugin.d.ts +1 -1
- package/dist/types/pm-plugins/table-resizing/plugin-factory.d.ts +7 -4
- package/dist/types/pm-plugins/utils/create.d.ts +2 -2
- package/dist/types/pm-plugins/utils/sticky-header.d.ts +2 -1
- package/dist/types/ui/DragHandle/index.d.ts +2 -2
- package/dist/types/ui/FloatingContextualButton/styles.d.ts +3 -2
- package/dist/types/ui/FloatingContextualMenu/ContextualMenu.d.ts +3 -3
- package/dist/types/ui/FloatingContextualMenu/styles.d.ts +3 -2
- package/dist/types/ui/FloatingDeleteButton/DeleteButton.d.ts +3 -3
- package/dist/types/ui/FloatingDragMenu/DragMenu.d.ts +3 -3
- package/dist/types/ui/FloatingInsertButton/InsertButton.d.ts +4 -4
- package/dist/types/ui/FloatingInsertButton/index.d.ts +3 -3
- package/dist/types/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +2 -2
- package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +3 -3
- package/dist/types/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +2 -2
- package/dist/types/ui/common-styles.d.ts +5 -4
- package/dist/types/ui/consts.d.ts +1 -1
- package/dist/types/ui/ui-styles.d.ts +21 -20
- package/dist/types-ts4.5/nodeviews/TableComponent.d.ts +3 -3
- package/dist/types-ts4.5/nodeviews/table-node-views.d.ts +3 -3
- package/dist/types-ts4.5/nodeviews/table.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/analytics/commands.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/analytics/plugin.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/commands/hover.d.ts +10 -9
- package/dist/types-ts4.5/pm-plugins/commands/misc.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/commands/referentiality.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/commands/toggle.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/decorations/plugin.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands.d.ts +6 -5
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/sticky-headers/commands.d.ts +3 -2
- package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/sticky-headers/util.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/table-anchor-names/plugin.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/table-resizing/plugin-factory.d.ts +7 -4
- package/dist/types-ts4.5/pm-plugins/utils/create.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/utils/sticky-header.d.ts +2 -1
- package/dist/types-ts4.5/ui/DragHandle/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/FloatingContextualButton/styles.d.ts +3 -2
- package/dist/types-ts4.5/ui/FloatingContextualMenu/ContextualMenu.d.ts +3 -3
- package/dist/types-ts4.5/ui/FloatingContextualMenu/styles.d.ts +3 -2
- package/dist/types-ts4.5/ui/FloatingDeleteButton/DeleteButton.d.ts +3 -3
- package/dist/types-ts4.5/ui/FloatingDragMenu/DragMenu.d.ts +3 -3
- package/dist/types-ts4.5/ui/FloatingInsertButton/InsertButton.d.ts +4 -4
- package/dist/types-ts4.5/ui/FloatingInsertButton/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +2 -2
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +3 -3
- package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +2 -2
- package/dist/types-ts4.5/ui/common-styles.d.ts +5 -4
- package/dist/types-ts4.5/ui/consts.d.ts +1 -1
- package/dist/types-ts4.5/ui/ui-styles.d.ts +21 -20
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1028,6 +1028,7 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1028
1028
|
}));
|
|
1029
1029
|
}
|
|
1030
1030
|
}]);
|
|
1031
|
-
}(_react.default.Component);
|
|
1031
|
+
}(_react.default.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
1032
1032
|
(0, _defineProperty2.default)(TableComponent, "displayName", 'TableComponent');
|
|
1033
|
-
var
|
|
1033
|
+
var _default_1 = (0, _reactIntl.injectIntl)(TableComponent);
|
|
1034
|
+
var _default = exports.default = _default_1;
|
|
@@ -8,6 +8,10 @@ var _actions = require("./actions");
|
|
|
8
8
|
var _pluginFactory = require("./plugin-factory");
|
|
9
9
|
var _pluginKey = require("./plugin-key");
|
|
10
10
|
var _movedEvent = require("./utils/moved-event");
|
|
11
|
+
// eslint-disable-next-line import/order
|
|
12
|
+
|
|
13
|
+
// eslint-disable-next-line import/order
|
|
14
|
+
|
|
11
15
|
var updateRowOrColumnMoved = exports.updateRowOrColumnMoved = function updateRowOrColumnMoved(nextState, nextAction) {
|
|
12
16
|
return (0, _pluginFactory.createCommand)(function (state) {
|
|
13
17
|
var _getPluginState = (0, _pluginFactory.getPluginState)(state),
|
|
@@ -13,6 +13,10 @@ var _table = require("../utils/table");
|
|
|
13
13
|
var _updatePluginStateDecorations = require("../utils/update-plugin-state-decorations");
|
|
14
14
|
// #region Imports
|
|
15
15
|
|
|
16
|
+
// eslint-disable-next-line import/order
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line import/order
|
|
19
|
+
|
|
16
20
|
var makeArray = function makeArray(n) {
|
|
17
21
|
return Array.from(Array(n).keys());
|
|
18
22
|
};
|
|
@@ -6,6 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.removeDescendantNodes = void 0;
|
|
7
7
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
8
8
|
var _pluginFactory = require("../plugin-factory");
|
|
9
|
+
// eslint-disable-next-line import/order
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line import/order
|
|
12
|
+
|
|
9
13
|
var removeDescendantNodes = exports.removeDescendantNodes = function removeDescendantNodes(sourceNode) {
|
|
10
14
|
return (0, _pluginFactory.createCommand)({
|
|
11
15
|
type: 'UPDATE_STATE',
|
|
@@ -12,6 +12,10 @@ var _actions = require("./actions");
|
|
|
12
12
|
var _consts = require("./consts");
|
|
13
13
|
var _pluginFactory = require("./plugin-factory");
|
|
14
14
|
var _pluginKey = require("./plugin-key");
|
|
15
|
+
// eslint-disable-next-line import/order
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line import/order
|
|
18
|
+
|
|
15
19
|
// TODO: ED-26961 - This command is a placeholder example. Please replace this if required.
|
|
16
20
|
var getDecorations = function getDecorations(state) {
|
|
17
21
|
var _pluginKey$getState;
|
|
@@ -26,6 +26,8 @@ var _consts = require("./consts");
|
|
|
26
26
|
var _pluginFactory2 = require("./plugin-factory");
|
|
27
27
|
var _pluginKey2 = require("./plugin-key");
|
|
28
28
|
var _monitor = require("./utils/monitor");
|
|
29
|
+
// eslint-disable-next-line import/order
|
|
30
|
+
|
|
29
31
|
var destroyFn = function destroyFn(editorView, editorAnalyticsAPI, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, isCommentEditor, api) {
|
|
30
32
|
var editorPageScrollContainer = document.querySelector('.fabric-editor-popup-scroll-parent');
|
|
31
33
|
var rowAutoScrollers = editorPageScrollContainer ? [(0, _adapter.monitorForElements)({
|
|
@@ -7,6 +7,10 @@ exports.autoScrollerFactory = void 0;
|
|
|
7
7
|
var _element = require("@atlaskit/pragmatic-drag-and-drop-auto-scroll/element");
|
|
8
8
|
var _element2 = require("@atlaskit/pragmatic-drag-and-drop-auto-scroll/unsafe-overflow/element");
|
|
9
9
|
var _consts = require("../../../ui/consts");
|
|
10
|
+
// eslint-disable-next-line import/order
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line import/order
|
|
13
|
+
|
|
10
14
|
var autoScrollerFactory = exports.autoScrollerFactory = function autoScrollerFactory(_ref) {
|
|
11
15
|
var tableWrapper = _ref.tableWrapper,
|
|
12
16
|
getNode = _ref.getNode;
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.updateStickyState = exports.removeStickyState = void 0;
|
|
7
7
|
var _pluginState = require("./plugin-state");
|
|
8
|
+
// eslint-disable-next-line import/order
|
|
9
|
+
|
|
8
10
|
var updateStickyState = exports.updateStickyState = function updateStickyState(rowState) {
|
|
9
11
|
return (0, _pluginState.createCommand)({
|
|
10
12
|
name: 'UPDATE',
|
|
@@ -11,6 +11,11 @@ var _pluginKey = require("./plugin-key");
|
|
|
11
11
|
var _reducer = _interopRequireDefault(require("./reducer"));
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
|
|
14
|
+
// eslint-disable-next-line import/order
|
|
15
|
+
// eslint-disable-next-line import/order
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line import/order
|
|
18
|
+
|
|
14
19
|
function mapping(tr, pluginState) {
|
|
15
20
|
if (pluginState && pluginState.resizeHandlePos !== null) {
|
|
16
21
|
return _objectSpread(_objectSpread({}, pluginState), {}, {
|
|
@@ -212,7 +212,7 @@ var getDragMenuConfig = exports.getDragMenuConfig = function getDragMenuConfig(d
|
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
}] : [];
|
|
215
|
-
var sortConfigs =
|
|
215
|
+
var sortConfigs = sortOptions.map(function (_ref) {
|
|
216
216
|
var label = _ref.label,
|
|
217
217
|
order = _ref.order,
|
|
218
218
|
icon = _ref.icon;
|
|
@@ -226,7 +226,7 @@ var getDragMenuConfig = exports.getDragMenuConfig = function getDragMenuConfig(d
|
|
|
226
226
|
return true;
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
|
-
})
|
|
229
|
+
});
|
|
230
230
|
var restConfigs = [].concat((0, _toConsumableArray2.default)(addOptions.map(function (_ref2) {
|
|
231
231
|
var label = _ref2.label,
|
|
232
232
|
offset = _ref2.offset,
|
|
@@ -16,7 +16,7 @@ var _types = require("../../types");
|
|
|
16
16
|
* @jsxRuntime classic
|
|
17
17
|
* @jsx jsx
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
/* 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 */
|
|
20
20
|
|
|
21
21
|
var ColumnResizeWidget = exports.ColumnResizeWidget = function ColumnResizeWidget(_ref) {
|
|
22
22
|
var startIndex = _ref.startIndex,
|
|
@@ -254,4 +254,6 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
|
|
|
254
254
|
height: previewHeight
|
|
255
255
|
}), previewContainer));
|
|
256
256
|
};
|
|
257
|
+
|
|
258
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
257
259
|
var DragHandle = exports.DragHandle = (0, _reactIntl.injectIntl)(DragHandleComponent);
|
|
@@ -12,7 +12,7 @@ var _primitives = require("@atlaskit/primitives");
|
|
|
12
12
|
* @jsxRuntime classic
|
|
13
13
|
* @jsx jsx
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
/* 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 */
|
|
16
16
|
|
|
17
17
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
18
18
|
|
|
@@ -58,8 +58,7 @@ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0,
|
|
|
58
58
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/prefer-primitives */ /**
|
|
59
59
|
* @jsxRuntime classic
|
|
60
60
|
* @jsx jsx
|
|
61
|
-
*/
|
|
62
|
-
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
61
|
+
*/ /* 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
|
|
63
62
|
var arrowsList = new Set(!(0, _expValEquals.expValEquals)('platform_editor_toolbar_submenu_open_click', 'isEnabled', true) ? ['ArrowRight', 'ArrowLeft'] : ['ArrowRight']);
|
|
64
63
|
var elementBeforeIconStyles = (0, _primitives.xcss)({
|
|
65
64
|
marginRight: 'space.negative.075',
|
|
@@ -819,8 +818,9 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
819
818
|
})));
|
|
820
819
|
}
|
|
821
820
|
}]);
|
|
822
|
-
}(_react.Component);
|
|
821
|
+
}(_react.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
823
822
|
(0, _defineProperty2.default)(ContextualMenu, "defaultProps", {
|
|
824
823
|
boundariesElement: typeof document !== 'undefined' ? document.body : undefined
|
|
825
824
|
});
|
|
826
|
-
var
|
|
825
|
+
var _default_1 = (0, _reactIntl.injectIntl)(ContextualMenu);
|
|
826
|
+
var _default = exports.default = _default_1;
|
|
@@ -46,4 +46,7 @@ var DeleteButton = function DeleteButton(_ref) {
|
|
|
46
46
|
fillRule: "evenodd"
|
|
47
47
|
}))));
|
|
48
48
|
};
|
|
49
|
-
|
|
49
|
+
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
51
|
+
var _default_1 = (0, _reactIntl.injectIntl)(DeleteButton);
|
|
52
|
+
var _default = exports.default = _default_1;
|
|
@@ -592,4 +592,7 @@ var DragMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
592
592
|
scrollableElement: scrollableElement
|
|
593
593
|
}));
|
|
594
594
|
});
|
|
595
|
-
|
|
595
|
+
|
|
596
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
597
|
+
var _default_1 = (0, _reactIntl.injectIntl)(DragMenu);
|
|
598
|
+
var _default = exports.default = _default_1;
|
|
@@ -124,6 +124,8 @@ var InsertButtonForDragAndDrop = function InsertButtonForDragAndDrop(_ref2) {
|
|
|
124
124
|
}, content))
|
|
125
125
|
);
|
|
126
126
|
};
|
|
127
|
+
|
|
128
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
127
129
|
var DragAndDropInsertButton = exports.DragAndDropInsertButton = (0, _reactIntl.injectIntl)(InsertButtonForDragAndDrop);
|
|
128
130
|
var InsertButton = function InsertButton(_ref3) {
|
|
129
131
|
var onMouseDown = _ref3.onMouseDown,
|
|
@@ -175,4 +177,7 @@ var InsertButton = function InsertButton(_ref3) {
|
|
|
175
177
|
}, content))
|
|
176
178
|
);
|
|
177
179
|
};
|
|
178
|
-
|
|
180
|
+
|
|
181
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
182
|
+
var _default_1 = (0, _reactIntl.injectIntl)(InsertButton);
|
|
183
|
+
var _default = exports.default = _default_1;
|
|
@@ -233,6 +233,7 @@ var FloatingInsertButton = exports.FloatingInsertButton = /*#__PURE__*/function
|
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
}]);
|
|
236
|
-
}(_react.default.Component);
|
|
236
|
+
}(_react.default.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
237
237
|
(0, _defineProperty2.default)(FloatingInsertButton, "displayName", 'FloatingInsertButton');
|
|
238
|
-
var
|
|
238
|
+
var _default_1 = (0, _reactIntl.injectIntl)(FloatingInsertButton);
|
|
239
|
+
var _default = exports.default = _default_1;
|
|
@@ -13,7 +13,7 @@ var _tableSizeSelector = require("../../pm-plugins/table-size-selector");
|
|
|
13
13
|
* @jsx jsx
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
/* 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 */
|
|
17
17
|
|
|
18
18
|
var DEFAULT_TABLE_SELECTOR_COLS = 3;
|
|
19
19
|
var DEFAULT_TABLE_SELECTOR_ROWS = 3;
|
|
@@ -121,5 +121,5 @@ var CornerControlComponent = /*#__PURE__*/function (_Component) {
|
|
|
121
121
|
})));
|
|
122
122
|
}
|
|
123
123
|
}]);
|
|
124
|
-
}(_react.Component);
|
|
124
|
+
}(_react.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
125
125
|
var CornerControls = exports.CornerControls = (0, _reactIntl.injectIntl)(CornerControlComponent);
|
|
@@ -110,5 +110,9 @@ var DragCornerControlsComponentWithSelection = function DragCornerControlsCompon
|
|
|
110
110
|
className: _types.TableCssClassName.DRAG_CORNER_BUTTON_INNER
|
|
111
111
|
}));
|
|
112
112
|
};
|
|
113
|
+
|
|
114
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
113
115
|
var DragCornerControlsWithSelection = exports.DragCornerControlsWithSelection = (0, _reactIntl.injectIntl)(DragCornerControlsComponentWithSelection);
|
|
116
|
+
|
|
117
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
114
118
|
var DragCornerControls = exports.DragCornerControls = (0, _reactIntl.injectIntl)(DragCornerControlsComponent);
|
|
@@ -120,5 +120,5 @@ var RowControlsComponent = /*#__PURE__*/function (_Component) {
|
|
|
120
120
|
);
|
|
121
121
|
}
|
|
122
122
|
}]);
|
|
123
|
-
}(_react.Component);
|
|
123
|
+
}(_react.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
124
124
|
var RowControls = exports.RowControls = (0, _reactIntl.injectIntl)(RowControlsComponent);
|
|
@@ -23,7 +23,7 @@ var _DragControls = require("./RowControls/DragControls");
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
/* 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 */
|
|
27
27
|
|
|
28
28
|
var styles = (0, _react2.css)({
|
|
29
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
@@ -11,7 +11,7 @@ var _commonStyles = require("./common-styles");
|
|
|
11
11
|
* @jsxRuntime classic
|
|
12
12
|
* @jsx jsx
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
15
15
|
|
|
16
16
|
var GlobalStylesWrapper = exports.GlobalStylesWrapper = function GlobalStylesWrapper(_ref) {
|
|
17
17
|
var featureFlags = _ref.featureFlags,
|
|
@@ -991,5 +991,8 @@ class TableComponent extends React.Component {
|
|
|
991
991
|
}));
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
|
+
|
|
995
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
994
996
|
_defineProperty(TableComponent, "displayName", 'TableComponent');
|
|
995
|
-
|
|
997
|
+
const _default_1 = injectIntl(TableComponent);
|
|
998
|
+
export default _default_1;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { AnalyticPluginTypes } from './actions';
|
|
2
2
|
import { createCommand, getPluginState } from './plugin-factory';
|
|
3
3
|
import { pluginKey } from './plugin-key';
|
|
4
|
+
// eslint-disable-next-line import/order
|
|
4
5
|
import { getMovedPayload } from './utils/moved-event';
|
|
6
|
+
// eslint-disable-next-line import/order
|
|
7
|
+
|
|
5
8
|
export const updateRowOrColumnMoved = (nextState, nextAction) => createCommand(state => {
|
|
6
9
|
const {
|
|
7
10
|
rowOrColumnMoved
|
|
@@ -5,7 +5,10 @@ import { TableDecorations } from '../../types';
|
|
|
5
5
|
import { createCommand, getPluginState } from '../plugin-factory';
|
|
6
6
|
import { createCellHoverDecoration, createColumnLineResize, createControlsHoverDecoration } from '../utils/decoration';
|
|
7
7
|
import { getMergedCellsPositions } from '../utils/table';
|
|
8
|
+
// eslint-disable-next-line import/order
|
|
8
9
|
import { updatePluginStateDecorations } from '../utils/update-plugin-state-decorations';
|
|
10
|
+
// eslint-disable-next-line import/order
|
|
11
|
+
|
|
9
12
|
const makeArray = n => Array.from(Array(n).keys());
|
|
10
13
|
export const hoverMergedCells = () => createCommand(state => {
|
|
11
14
|
const mergedCellsPositions = getMergedCellsPositions(state.tr);
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { removeConnectedNodes } from '@atlaskit/editor-common/utils';
|
|
2
|
+
// eslint-disable-next-line import/order
|
|
2
3
|
import { createCommand } from '../plugin-factory';
|
|
4
|
+
// eslint-disable-next-line import/order
|
|
5
|
+
|
|
3
6
|
export const removeDescendantNodes = sourceNode => createCommand({
|
|
4
7
|
type: 'UPDATE_STATE',
|
|
5
8
|
data: {
|
|
@@ -6,6 +6,10 @@ import { DragAndDropActionType } from './actions';
|
|
|
6
6
|
import { DropTargetType } from './consts';
|
|
7
7
|
import { createCommand, getPluginState } from './plugin-factory';
|
|
8
8
|
import { pluginKey } from './plugin-key';
|
|
9
|
+
// eslint-disable-next-line import/order
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line import/order
|
|
12
|
+
|
|
9
13
|
// TODO: ED-26961 - This command is a placeholder example. Please replace this if required.
|
|
10
14
|
const getDecorations = state => {
|
|
11
15
|
var _pluginKey$getState;
|
|
@@ -20,6 +20,8 @@ import { DropTargetType } from './consts';
|
|
|
20
20
|
import { createPluginState, getPluginState } from './plugin-factory';
|
|
21
21
|
import { pluginKey } from './plugin-key';
|
|
22
22
|
import { getDraggableDataFromEvent } from './utils/monitor';
|
|
23
|
+
// eslint-disable-next-line import/order
|
|
24
|
+
|
|
23
25
|
const destroyFn = (editorView, editorAnalyticsAPI, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, isCommentEditor, api) => {
|
|
24
26
|
const editorPageScrollContainer = document.querySelector('.fabric-editor-popup-scroll-parent');
|
|
25
27
|
const rowAutoScrollers = editorPageScrollContainer ? [monitorForElements({
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { autoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
|
|
2
2
|
import { unsafeOverflowAutoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/unsafe-overflow/element';
|
|
3
|
+
// eslint-disable-next-line import/order
|
|
3
4
|
import { dropTargetExtendedWidth } from '../../../ui/consts';
|
|
5
|
+
// eslint-disable-next-line import/order
|
|
6
|
+
|
|
4
7
|
export const autoScrollerFactory = ({
|
|
5
8
|
tableWrapper,
|
|
6
9
|
getNode
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
// @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
|
|
2
2
|
import { pluginFactory } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { pluginKey } from './plugin-key';
|
|
4
|
+
// eslint-disable-next-line import/order
|
|
4
5
|
import reducer from './reducer';
|
|
6
|
+
// eslint-disable-next-line import/order
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line import/order
|
|
9
|
+
|
|
5
10
|
function mapping(tr, pluginState) {
|
|
6
11
|
if (pluginState && pluginState.resizeHandlePos !== null) {
|
|
7
12
|
return {
|
|
@@ -171,7 +171,7 @@ export const getDragMenuConfig = (direction, getEditorContainerWidth, hasMergedC
|
|
|
171
171
|
label: ''
|
|
172
172
|
})
|
|
173
173
|
}] : [];
|
|
174
|
-
const sortConfigs =
|
|
174
|
+
const sortConfigs = sortOptions.map(({
|
|
175
175
|
label,
|
|
176
176
|
order,
|
|
177
177
|
icon
|
|
@@ -184,7 +184,7 @@ export const getDragMenuConfig = (direction, getEditorContainerWidth, hasMergedC
|
|
|
184
184
|
sortColumnWithAnalytics(editorAnalyticsAPI)(INPUT_METHOD.TABLE_CONTEXT_MENU, index !== null && index !== void 0 ? index : 0, order)(state, dispatch);
|
|
185
185
|
return true;
|
|
186
186
|
}
|
|
187
|
-
}))
|
|
187
|
+
}));
|
|
188
188
|
const restConfigs = [...addOptions.map(({
|
|
189
189
|
label,
|
|
190
190
|
offset,
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
/* 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 */
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import { useIntl } from 'react-intl';
|
|
9
9
|
import { startColumnResizing, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
/* 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 */
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { ButtonGroup } from '@atlaskit/button';
|
|
8
8
|
import { FloatingToolbarButton as Button, FloatingToolbarSeparator } from '@atlaskit/editor-common/ui';
|
|
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
* @jsx jsx
|
|
6
6
|
*/
|
|
7
7
|
import React, { Component } from 'react';
|
|
8
|
-
|
|
8
|
+
/* 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 */
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { injectIntl } from 'react-intl';
|
|
11
11
|
import { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
|
|
@@ -875,7 +875,10 @@ export class ContextualMenu extends Component {
|
|
|
875
875
|
})));
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
|
+
|
|
879
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
878
880
|
_defineProperty(ContextualMenu, "defaultProps", {
|
|
879
881
|
boundariesElement: typeof document !== 'undefined' ? document.body : undefined
|
|
880
882
|
});
|
|
881
|
-
|
|
883
|
+
const _default_1 = injectIntl(ContextualMenu);
|
|
884
|
+
export default _default_1;
|
|
@@ -38,4 +38,7 @@ const DeleteButton = ({
|
|
|
38
38
|
fill: "currentColor",
|
|
39
39
|
fillRule: "evenodd"
|
|
40
40
|
}))));
|
|
41
|
-
|
|
41
|
+
|
|
42
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
43
|
+
const _default_1 = injectIntl(DeleteButton);
|
|
44
|
+
export default _default_1;
|
|
@@ -585,4 +585,7 @@ const DragMenu = /*#__PURE__*/React.memo(({
|
|
|
585
585
|
scrollableElement: scrollableElement
|
|
586
586
|
}));
|
|
587
587
|
});
|
|
588
|
-
|
|
588
|
+
|
|
589
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
590
|
+
const _default_1 = injectIntl(DragMenu);
|
|
591
|
+
export default _default_1;
|
|
@@ -126,6 +126,8 @@ const InsertButtonForDragAndDrop = ({
|
|
|
126
126
|
}, content))
|
|
127
127
|
);
|
|
128
128
|
};
|
|
129
|
+
|
|
130
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
129
131
|
export const DragAndDropInsertButton = injectIntl(InsertButtonForDragAndDrop);
|
|
130
132
|
const InsertButton = ({
|
|
131
133
|
onMouseDown,
|
|
@@ -180,4 +182,7 @@ const InsertButton = ({
|
|
|
180
182
|
}, content))
|
|
181
183
|
);
|
|
182
184
|
};
|
|
183
|
-
|
|
185
|
+
|
|
186
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
187
|
+
const _default_1 = injectIntl(InsertButton);
|
|
188
|
+
export default _default_1;
|
|
@@ -217,5 +217,8 @@ export class FloatingInsertButton extends React.Component {
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
+
|
|
221
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
220
222
|
_defineProperty(FloatingInsertButton, "displayName", 'FloatingInsertButton');
|
|
221
|
-
|
|
223
|
+
const _default_1 = injectIntl(FloatingInsertButton);
|
|
224
|
+
export default _default_1;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { useCallback } from 'react';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
/* 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 */
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { TableSelectorPopup } from '@atlaskit/editor-common/ui';
|
|
10
10
|
import { pluginKey } from '../../pm-plugins/table-size-selector';
|
|
@@ -118,5 +118,9 @@ const DragCornerControlsComponentWithSelection = ({
|
|
|
118
118
|
className: ClassName.DRAG_CORNER_BUTTON_INNER
|
|
119
119
|
}));
|
|
120
120
|
};
|
|
121
|
+
|
|
122
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
121
123
|
export const DragCornerControlsWithSelection = injectIntl(DragCornerControlsComponentWithSelection);
|
|
124
|
+
|
|
125
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
122
126
|
export const DragCornerControls = injectIntl(DragCornerControlsComponent);
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Fragment, useCallback } from 'react';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
import {
|
|
7
|
+
/* 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 */
|
|
8
|
+
import { jsx, css } from '@emotion/react';
|
|
9
9
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
10
10
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
import {
|
|
5
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
6
|
+
import { jsx, Global } from '@emotion/react';
|
|
7
7
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
8
8
|
import { tableStyles } from './common-styles';
|
|
9
9
|
export const GlobalStylesWrapper = ({
|
|
@@ -1022,6 +1022,7 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1022
1022
|
}));
|
|
1023
1023
|
}
|
|
1024
1024
|
}]);
|
|
1025
|
-
}(React.Component);
|
|
1025
|
+
}(React.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
1026
1026
|
_defineProperty(TableComponent, "displayName", 'TableComponent');
|
|
1027
|
-
|
|
1027
|
+
var _default_1 = injectIntl(TableComponent);
|
|
1028
|
+
export default _default_1;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { AnalyticPluginTypes } from './actions';
|
|
2
2
|
import { createCommand, getPluginState } from './plugin-factory';
|
|
3
3
|
import { pluginKey } from './plugin-key';
|
|
4
|
+
// eslint-disable-next-line import/order
|
|
4
5
|
import { getMovedPayload } from './utils/moved-event';
|
|
6
|
+
// eslint-disable-next-line import/order
|
|
7
|
+
|
|
5
8
|
export var updateRowOrColumnMoved = function updateRowOrColumnMoved(nextState, nextAction) {
|
|
6
9
|
return createCommand(function (state) {
|
|
7
10
|
var _getPluginState = getPluginState(state),
|
|
@@ -5,7 +5,10 @@ import { TableDecorations } from '../../types';
|
|
|
5
5
|
import { createCommand, getPluginState } from '../plugin-factory';
|
|
6
6
|
import { createCellHoverDecoration, createColumnLineResize, createControlsHoverDecoration } from '../utils/decoration';
|
|
7
7
|
import { getMergedCellsPositions } from '../utils/table';
|
|
8
|
+
// eslint-disable-next-line import/order
|
|
8
9
|
import { updatePluginStateDecorations } from '../utils/update-plugin-state-decorations';
|
|
10
|
+
// eslint-disable-next-line import/order
|
|
11
|
+
|
|
9
12
|
var makeArray = function makeArray(n) {
|
|
10
13
|
return Array.from(Array(n).keys());
|
|
11
14
|
};
|