@atlaskit/editor-plugin-table 22.2.4 → 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 +6 -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 +4 -4
|
@@ -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 var removeDescendantNodes = function removeDescendantNodes(sourceNode) {
|
|
4
7
|
return createCommand({
|
|
5
8
|
type: 'UPDATE_STATE',
|
|
@@ -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
|
var getDecorations = function 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
|
var destroyFn = function destroyFn(editorView, editorAnalyticsAPI, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, isCommentEditor, api) {
|
|
24
26
|
var editorPageScrollContainer = document.querySelector('.fabric-editor-popup-scroll-parent');
|
|
25
27
|
var 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 var autoScrollerFactory = function autoScrollerFactory(_ref) {
|
|
5
8
|
var tableWrapper = _ref.tableWrapper,
|
|
6
9
|
getNode = _ref.getNode;
|
|
@@ -4,7 +4,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
// @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
|
|
5
5
|
import { pluginFactory } from '@atlaskit/editor-common/utils';
|
|
6
6
|
import { pluginKey } from './plugin-key';
|
|
7
|
+
// eslint-disable-next-line import/order
|
|
7
8
|
import reducer from './reducer';
|
|
9
|
+
// eslint-disable-next-line import/order
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line import/order
|
|
12
|
+
|
|
8
13
|
function mapping(tr, pluginState) {
|
|
9
14
|
if (pluginState && pluginState.resizeHandlePos !== null) {
|
|
10
15
|
return _objectSpread(_objectSpread({}, pluginState), {}, {
|
|
@@ -205,7 +205,7 @@ export var getDragMenuConfig = function getDragMenuConfig(direction, getEditorCo
|
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
}] : [];
|
|
208
|
-
var sortConfigs =
|
|
208
|
+
var sortConfigs = sortOptions.map(function (_ref) {
|
|
209
209
|
var label = _ref.label,
|
|
210
210
|
order = _ref.order,
|
|
211
211
|
icon = _ref.icon;
|
|
@@ -219,7 +219,7 @@ export var getDragMenuConfig = function getDragMenuConfig(direction, getEditorCo
|
|
|
219
219
|
return true;
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
|
-
})
|
|
222
|
+
});
|
|
223
223
|
var restConfigs = [].concat(_toConsumableArray(addOptions.map(function (_ref2) {
|
|
224
224
|
var label = _ref2.label,
|
|
225
225
|
offset = _ref2.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';
|
|
@@ -15,7 +15,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
15
15
|
* @jsx jsx
|
|
16
16
|
*/
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
|
-
|
|
18
|
+
/* 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 */
|
|
19
19
|
import { jsx } from '@emotion/react';
|
|
20
20
|
import { injectIntl } from 'react-intl';
|
|
21
21
|
import { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
|
|
@@ -814,7 +814,10 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
814
814
|
}
|
|
815
815
|
}]);
|
|
816
816
|
}(Component);
|
|
817
|
+
|
|
818
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
817
819
|
_defineProperty(ContextualMenu, "defaultProps", {
|
|
818
820
|
boundariesElement: typeof document !== 'undefined' ? document.body : undefined
|
|
819
821
|
});
|
|
820
|
-
|
|
822
|
+
var _default_1 = injectIntl(ContextualMenu);
|
|
823
|
+
export default _default_1;
|
|
@@ -39,4 +39,7 @@ var DeleteButton = function DeleteButton(_ref) {
|
|
|
39
39
|
fillRule: "evenodd"
|
|
40
40
|
}))));
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
|
|
43
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
44
|
+
var _default_1 = injectIntl(DeleteButton);
|
|
45
|
+
export default _default_1;
|
|
@@ -581,4 +581,7 @@ var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
581
581
|
scrollableElement: scrollableElement
|
|
582
582
|
}));
|
|
583
583
|
});
|
|
584
|
-
|
|
584
|
+
|
|
585
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
586
|
+
var _default_1 = injectIntl(DragMenu);
|
|
587
|
+
export default _default_1;
|
|
@@ -117,6 +117,8 @@ var InsertButtonForDragAndDrop = function InsertButtonForDragAndDrop(_ref2) {
|
|
|
117
117
|
}, content))
|
|
118
118
|
);
|
|
119
119
|
};
|
|
120
|
+
|
|
121
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
120
122
|
export var DragAndDropInsertButton = injectIntl(InsertButtonForDragAndDrop);
|
|
121
123
|
var InsertButton = function InsertButton(_ref3) {
|
|
122
124
|
var onMouseDown = _ref3.onMouseDown,
|
|
@@ -168,4 +170,7 @@ var InsertButton = function InsertButton(_ref3) {
|
|
|
168
170
|
}, content))
|
|
169
171
|
);
|
|
170
172
|
};
|
|
171
|
-
|
|
173
|
+
|
|
174
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
175
|
+
var _default_1 = injectIntl(InsertButton);
|
|
176
|
+
export default _default_1;
|
|
@@ -225,5 +225,8 @@ export var FloatingInsertButton = /*#__PURE__*/function (_React$Component) {
|
|
|
225
225
|
}
|
|
226
226
|
}]);
|
|
227
227
|
}(React.Component);
|
|
228
|
+
|
|
229
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
228
230
|
_defineProperty(FloatingInsertButton, "displayName", 'FloatingInsertButton');
|
|
229
|
-
|
|
231
|
+
var _default_1 = injectIntl(FloatingInsertButton);
|
|
232
|
+
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';
|
|
@@ -101,5 +101,9 @@ var DragCornerControlsComponentWithSelection = function DragCornerControlsCompon
|
|
|
101
101
|
className: ClassName.DRAG_CORNER_BUTTON_INNER
|
|
102
102
|
}));
|
|
103
103
|
};
|
|
104
|
+
|
|
105
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
104
106
|
export var DragCornerControlsWithSelection = injectIntl(DragCornerControlsComponentWithSelection);
|
|
107
|
+
|
|
108
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
105
109
|
export var 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 var GlobalStylesWrapper = function GlobalStylesWrapper(_ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { IntlShape } from 'react-intl';
|
|
2
|
+
import type { IntlShape, WithIntlProps } from 'react-intl';
|
|
3
3
|
import type { TableColumnOrdering } from '@atlaskit/custom-steps';
|
|
4
4
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
@@ -42,7 +42,7 @@ interface ComponentProps {
|
|
|
42
42
|
tableActive: boolean;
|
|
43
43
|
view: EditorView;
|
|
44
44
|
}
|
|
45
|
-
declare const
|
|
45
|
+
declare const _default_1: React.FC<WithIntlProps<ComponentProps>> & {
|
|
46
46
|
WrappedComponent: React.ComponentType<ComponentProps>;
|
|
47
47
|
};
|
|
48
|
-
export default
|
|
48
|
+
export default _default_1;
|
|
@@ -3,7 +3,7 @@ import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
|
3
3
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
4
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
+
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
7
7
|
import type { PluginInjectionAPI } from '../types';
|
|
8
8
|
import TableCell from './TableCell';
|
|
9
9
|
import TableRow from './TableRow';
|
|
@@ -19,7 +19,7 @@ type TableViewOptions = {
|
|
|
19
19
|
pluginInjectionApi?: PluginInjectionAPI;
|
|
20
20
|
portalProviderAPI: PortalProviderAPI;
|
|
21
21
|
};
|
|
22
|
-
export declare const tableView: (options: TableViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) =>
|
|
22
|
+
export declare const tableView: (options: TableViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => NodeView;
|
|
23
23
|
type TableCellViewOptions = {
|
|
24
24
|
eventDispatcher: EventDispatcher;
|
|
25
25
|
isDragAndDropEnabled?: boolean;
|
|
@@ -27,5 +27,5 @@ type TableCellViewOptions = {
|
|
|
27
27
|
};
|
|
28
28
|
export declare const tableCellView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => TableCell;
|
|
29
29
|
export declare const tableHeaderView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => TableCell;
|
|
30
|
-
export declare const tableRowView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) =>
|
|
30
|
+
export declare const tableRowView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => TableRowNativeStickyWithFallback | TableRow;
|
|
31
31
|
export {};
|
|
@@ -7,7 +7,7 @@ import type { GetEditorContainerWidth, GetEditorFeatureFlags, getPosHandler, get
|
|
|
7
7
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import type { PluginInjectionAPI } from '../types';
|
|
10
|
-
import type { Props } from './types';
|
|
10
|
+
import type { Props, TableOptions } from './types';
|
|
11
11
|
type ForwardRef = (node: HTMLElement | null) => void;
|
|
12
12
|
export default class TableView extends ReactNodeView<Props> {
|
|
13
13
|
private table;
|
|
@@ -15,7 +15,7 @@ export default class TableView extends ReactNodeView<Props> {
|
|
|
15
15
|
private resizeObserver?;
|
|
16
16
|
eventDispatcher?: EventDispatcher;
|
|
17
17
|
getPos: getPosHandlerNode;
|
|
18
|
-
options:
|
|
18
|
+
options: TableOptions | undefined;
|
|
19
19
|
getEditorFeatureFlags: GetEditorFeatureFlags;
|
|
20
20
|
constructor(props: Props);
|
|
21
21
|
getContentDOM(): {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { ActionType, RowOrColumnMovedState } from './types';
|
|
3
|
-
|
|
3
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
4
|
+
export declare const updateRowOrColumnMoved: (nextState: Omit<RowOrColumnMovedState, "currentActions">, nextAction: ActionType) => Command;
|
|
4
5
|
export declare const resetRowOrColumnMovedTransform: () => (tr: Transaction) => Transaction;
|
|
5
6
|
export declare const updateRowOrColumnMovedTransform: (nextState: Omit<RowOrColumnMovedState, "currentActions">, nextAction: ActionType) => (state: EditorState, tr: Transaction) => Transaction;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
|
-
|
|
4
|
+
import { type AnalyticPluginState } from './types';
|
|
5
|
+
export declare const createPlugin: (dispatch: Dispatch, dispatchAnalyticsEvent: DispatchAnalyticsEvent) => SafePlugin<AnalyticPluginState>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { CellColumnPositioning } from '../../types';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
+
export declare const hoverMergedCells: () => Command;
|
|
4
|
+
export declare const hoverColumns: (hoveredColumns: number[], isInDanger?: boolean) => Command;
|
|
5
|
+
export declare const hoverRows: (hoveredRows: number[], isInDanger?: boolean) => Command;
|
|
6
|
+
export declare const hoverTable: (isInDanger?: boolean, isSelected?: boolean) => Command;
|
|
7
|
+
export declare const clearHoverSelection: () => Command;
|
|
8
|
+
export declare const showResizeHandleLine: (cellColumnPositioning: CellColumnPositioning) => Command;
|
|
9
|
+
export declare const hideResizeHandleLine: () => Command;
|
|
10
|
+
export declare const setTableHovered: (hovered: boolean) => Command;
|
|
11
|
+
export declare const hoverCell: (rowIndex?: number, colIndex?: number) => Command;
|
|
@@ -22,7 +22,7 @@ export declare const deleteTable: Command;
|
|
|
22
22
|
export declare const deleteTableIfSelected: Command;
|
|
23
23
|
export declare const convertFirstRowToHeader: (schema: Schema) => (tr: Transaction) => Transaction;
|
|
24
24
|
export declare const moveCursorBackward: Command;
|
|
25
|
-
export declare const setMultipleCellAttrs: (attrs:
|
|
25
|
+
export declare const setMultipleCellAttrs: (attrs: object, editorView?: EditorView | null) => Command;
|
|
26
26
|
export declare const selectColumn: (column: number, expand?: boolean, triggeredByKeyboard?: boolean) => Command;
|
|
27
27
|
export declare const selectColumns: (columnIndexes: number[]) => Command;
|
|
28
28
|
export declare const selectRow: (row: number, expand?: boolean, triggeredByKeyboard?: boolean) => Command;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
+
export declare const removeDescendantNodes: (sourceNode: PMNode) => Command;
|
|
@@ -4,7 +4,7 @@ import type { Command } from '@atlaskit/editor-common/types';
|
|
|
4
4
|
* Table layout toggle logic
|
|
5
5
|
* default -> wide -> full-width -> default
|
|
6
6
|
*/
|
|
7
|
-
export declare const getNextLayout: (currentLayout: TableLayout) => "default" | "
|
|
7
|
+
export declare const getNextLayout: (currentLayout: TableLayout) => "default" | "wide" | "full-width";
|
|
8
8
|
export declare const toggleHeaderRow: Command;
|
|
9
9
|
export declare const toggleHeaderColumn: Command;
|
|
10
10
|
export declare const toggleNumberColumn: Command;
|
|
@@ -2,7 +2,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import type { EditorState, ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
export declare const pluginKey: PluginKey
|
|
5
|
+
export declare const pluginKey: PluginKey;
|
|
6
6
|
export declare const getDecorations: (state: EditorState) => DecorationSet;
|
|
7
7
|
export declare const handleDocOrSelectionChanged: (tr: Transaction | ReadonlyTransaction, decorationSet: DecorationSet, oldState: EditorState, newState: EditorState) => DecorationSet;
|
|
8
8
|
export declare const createPlugin: () => SafePlugin<DecorationSet>;
|
|
@@ -2,8 +2,9 @@ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
|
2
2
|
import type { DraggableType, TableDirection } from '../../types';
|
|
3
3
|
import { DropTargetType } from './consts';
|
|
4
4
|
import type { TriggerType } from './types';
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
5
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
6
|
+
export declare const setDropTarget: (type: DropTargetType, index: number, hasMergedCells: boolean, tr?: Transaction) => Command;
|
|
7
|
+
export declare const clearDropTarget: (tr?: Transaction) => Command;
|
|
8
|
+
export declare const moveSource: (sourceType: DraggableType, sourceIndexes: number[], targetIndex: number, tr?: Transaction) => Command;
|
|
9
|
+
export declare const toggleDragMenu: (isDragMenuOpen: boolean | undefined, direction?: TableDirection, index?: number, trigger?: TriggerType) => Command;
|
|
10
|
+
export declare const cloneSource: (sourceType: DraggableType, sourceIndexes: number[], targetIndex: number, targetDirection: "start" | "end", tr?: Transaction) => Command;
|
|
@@ -3,4 +3,5 @@ import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { TablePlugin } from '../../tablePluginType';
|
|
6
|
-
|
|
6
|
+
import type { DragAndDropPluginState } from './types';
|
|
7
|
+
export declare const createPlugin: (dispatch: Dispatch, editorAnalyticsAPI?: EditorAnalyticsAPI, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, isCommentEditor?: boolean, api?: ExtractInjectionAPI<TablePlugin>) => SafePlugin<DragAndDropPluginState>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { CleanupFn } from '@atlaskit/pragmatic-drag-and-drop/types';
|
|
2
3
|
type AutoScrollerFactory = {
|
|
3
4
|
getNode: () => PmNode;
|
|
4
5
|
tableWrapper: HTMLElement;
|
|
5
6
|
};
|
|
6
|
-
export declare const autoScrollerFactory: ({ tableWrapper, getNode }: AutoScrollerFactory) =>
|
|
7
|
+
export declare const autoScrollerFactory: ({ tableWrapper, getNode }: AutoScrollerFactory) => CleanupFn[];
|
|
7
8
|
export {};
|
|
@@ -4,5 +4,5 @@ import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-di
|
|
|
4
4
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
5
5
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
6
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
|
-
import type { PluginConfig, PluginInjectionAPI } from '../types';
|
|
8
|
-
export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, nodeViewPortalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, getIntl: () => IntlShape, fullWidthModeEnabled?: boolean, previousFullWidthModeEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI, pluginInjectionApi?: PluginInjectionAPI, isTableScalingEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean, isChromelessEditor?: boolean, allowFixedColumnWidthOption?: boolean) => SafePlugin<
|
|
7
|
+
import type { PluginConfig, PluginInjectionAPI, TablePluginState } from '../types';
|
|
8
|
+
export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, nodeViewPortalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, getIntl: () => IntlShape, fullWidthModeEnabled?: boolean, previousFullWidthModeEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI, pluginInjectionApi?: PluginInjectionAPI, isTableScalingEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean, isChromelessEditor?: boolean, allowFixedColumnWidthOption?: boolean) => SafePlugin<TablePluginState>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
2
|
import type { RowStickyState } from './types';
|
|
2
|
-
export declare const updateStickyState: (rowState: RowStickyState) =>
|
|
3
|
-
export declare const removeStickyState: (pos: number) =>
|
|
3
|
+
export declare const updateStickyState: (rowState: RowStickyState) => Command;
|
|
4
|
+
export declare const removeStickyState: (pos: number) => Command;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
|
|
3
|
+
import type { StickyPluginState } from './types';
|
|
4
|
+
export declare const createPlugin: (dispatch: Dispatch, initialState?: () => never[]) => SafePlugin<StickyPluginState>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { StickyPluginState } from './types';
|
|
2
|
-
export declare const findStickyHeaderForTable: (state: StickyPluginState, tablePos: number | undefined) =>
|
|
1
|
+
import type { RowStickyState, StickyPluginState } from './types';
|
|
2
|
+
export declare const findStickyHeaderForTable: (state: StickyPluginState, tablePos: number | undefined) => RowStickyState | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
export declare const pluginKey: PluginKey
|
|
4
|
+
export declare const pluginKey: PluginKey;
|
|
5
5
|
export declare const createPlugin: () => SafePlugin<DecorationSet>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import type { ColumnResizingPluginAction, ColumnResizingPluginState } from '../../types';
|
|
3
|
+
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
5
|
+
export declare const createCommand: <A = ColumnResizingPluginAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
|
|
6
|
+
export declare const createPluginState: (dispatch: Dispatch, initialState: ColumnResizingPluginState | ((state: EditorState) => ColumnResizingPluginState)) => SafeStateField<ColumnResizingPluginState>;
|
|
7
|
+
export declare const getPluginState: (state: EditorState) => ColumnResizingPluginState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare const createTableWithWidth: ({ isTableScalingEnabled, isTableAlignmentEnabled, isFullWidthModeEnabled, isMaxWidthModeEnabled, isCommentEditor, isChromelessEditor, isTableResizingEnabled, isNestedTable, createTableProps, }: {
|
|
3
3
|
createTableProps?: {
|
|
4
4
|
colsCount?: number;
|
|
@@ -12,4 +12,4 @@ export declare const createTableWithWidth: ({ isTableScalingEnabled, isTableAlig
|
|
|
12
12
|
isTableAlignmentEnabled?: boolean;
|
|
13
13
|
isTableResizingEnabled?: boolean;
|
|
14
14
|
isTableScalingEnabled?: boolean;
|
|
15
|
-
}) => (schema: Schema) =>
|
|
15
|
+
}) => (schema: Schema) => Node;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MouseEventHandler, FocusEventHandler } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
3
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import type { TriggerType } from '../../pm-plugins/drag-and-drop/types';
|
|
6
6
|
import type { CellHoverMeta, TableDirection } from '../../types';
|
|
@@ -23,7 +23,7 @@ type DragHandleProps = {
|
|
|
23
23
|
tableLocalId: string;
|
|
24
24
|
toggleDragMenu?: (trigger: TriggerType, event?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
25
25
|
};
|
|
26
|
-
export declare const DragHandle: React.FC<
|
|
26
|
+
export declare const DragHandle: React.FC<WithIntlProps<DragHandleProps & WrappedComponentProps>> & {
|
|
27
27
|
WrappedComponent: React.ComponentType<DragHandleProps & WrappedComponentProps>;
|
|
28
28
|
};
|
|
29
29
|
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
+
export declare const tableFloatingCellButtonStyles: () => SerializedStyles;
|
|
3
|
+
export declare const tableFloatingCellButtonSelectedStyles: () => SerializedStyles;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React, { Component } from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
7
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
8
8
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
10
10
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -64,7 +64,7 @@ export declare class ContextualMenu extends Component<Props & WrappedComponentPr
|
|
|
64
64
|
private closeSubmenu;
|
|
65
65
|
private setColor;
|
|
66
66
|
}
|
|
67
|
-
declare const
|
|
67
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
68
68
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
69
69
|
};
|
|
70
|
-
export default
|
|
70
|
+
export default _default_1;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
+
export declare const cellColourPreviewStyles: (selectedColor: string) => SerializedStyles;
|
|
3
|
+
export declare const tablePopupStyles: (isDragAndDropEnabled: boolean | undefined) => SerializedStyles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SyntheticEvent } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { MessageDescriptor, WrappedComponentProps } from 'react-intl';
|
|
3
|
+
import type { MessageDescriptor, WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
4
4
|
interface ButtonProps {
|
|
5
5
|
onClick?: (event: SyntheticEvent) => void;
|
|
6
6
|
onMouseEnter?: (event: SyntheticEvent) => void;
|
|
@@ -8,7 +8,7 @@ interface ButtonProps {
|
|
|
8
8
|
removeLabel: MessageDescriptor;
|
|
9
9
|
style?: object;
|
|
10
10
|
}
|
|
11
|
-
declare const
|
|
11
|
+
declare const _default_1: React.FC<WithIntlProps<ButtonProps & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
|
|
13
13
|
};
|
|
14
|
-
export default
|
|
14
|
+
export default _default_1;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/** @jsxFrag */
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
7
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
8
8
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import type { ExtractInjectionAPI, GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
10
10
|
import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils';
|
|
@@ -35,7 +35,7 @@ type DragMenuProps = {
|
|
|
35
35
|
target?: Element;
|
|
36
36
|
targetCellPosition?: number;
|
|
37
37
|
};
|
|
38
|
-
declare const
|
|
38
|
+
declare const _default_1: React.FC<WithIntlProps<DragMenuProps & WrappedComponentProps>> & {
|
|
39
39
|
WrappedComponent: React.ComponentType<DragMenuProps & WrappedComponentProps>;
|
|
40
40
|
};
|
|
41
|
-
export default
|
|
41
|
+
export default _default_1;
|