@atlaskit/editor-plugin-table 13.0.5 → 13.0.6
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 +7 -0
- package/dist/cjs/nodeviews/TableComponentWithSharedState.js +19 -98
- package/dist/cjs/nodeviews/TableContainer.js +14 -53
- package/dist/cjs/nodeviews/TableResizer.js +2 -15
- package/dist/cjs/tablePlugin.js +30 -213
- package/dist/cjs/ui/DragHandle/index.js +9 -26
- package/dist/cjs/ui/TableFloatingColumnControls/ColumnControls/index.js +7 -20
- package/dist/cjs/ui/TableFloatingControls/CornerControls/DragCornerControls.js +6 -19
- package/dist/cjs/ui/TableFloatingControls/FloatingControlsWithSelection.js +7 -20
- package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +7 -20
- package/dist/cjs/ui/global-styles.js +4 -17
- package/dist/cjs/ui/icons/SortingIconWrapper.js +2 -15
- package/dist/es2019/nodeviews/TableComponentWithSharedState.js +21 -102
- package/dist/es2019/nodeviews/TableContainer.js +11 -54
- package/dist/es2019/nodeviews/TableResizer.js +2 -17
- package/dist/es2019/tablePlugin.js +19 -211
- package/dist/es2019/ui/DragHandle/index.js +8 -27
- package/dist/es2019/ui/TableFloatingColumnControls/ColumnControls/index.js +7 -22
- package/dist/es2019/ui/TableFloatingControls/CornerControls/DragCornerControls.js +7 -22
- package/dist/es2019/ui/TableFloatingControls/FloatingControlsWithSelection.js +7 -22
- package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +7 -22
- package/dist/es2019/ui/global-styles.js +6 -21
- package/dist/es2019/ui/icons/SortingIconWrapper.js +3 -18
- package/dist/esm/nodeviews/TableComponentWithSharedState.js +20 -99
- package/dist/esm/nodeviews/TableContainer.js +15 -54
- package/dist/esm/nodeviews/TableResizer.js +3 -16
- package/dist/esm/tablePlugin.js +24 -208
- package/dist/esm/ui/DragHandle/index.js +10 -27
- package/dist/esm/ui/TableFloatingColumnControls/ColumnControls/index.js +8 -21
- package/dist/esm/ui/TableFloatingControls/CornerControls/DragCornerControls.js +7 -20
- package/dist/esm/ui/TableFloatingControls/FloatingControlsWithSelection.js +8 -21
- package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +8 -21
- package/dist/esm/ui/global-styles.js +5 -18
- package/dist/esm/ui/icons/SortingIconWrapper.js +3 -16
- package/dist/types/nodeviews/TableComponentWithSharedState.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/TableComponentWithSharedState.d.ts +1 -1
- package/package.json +2 -2
|
@@ -7,7 +7,7 @@ import classnames from 'classnames';
|
|
|
7
7
|
import ReactDOM from 'react-dom';
|
|
8
8
|
import { injectIntl } from 'react-intl-next';
|
|
9
9
|
import { browser } from '@atlaskit/editor-common/browser';
|
|
10
|
-
import {
|
|
10
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
11
11
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
13
13
|
import { findTable, TableMap } from '@atlaskit/editor-tables';
|
|
@@ -245,29 +245,6 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
|
|
|
245
245
|
height: previewHeight
|
|
246
246
|
}), previewContainer));
|
|
247
247
|
};
|
|
248
|
-
var useSharedState = sharedPluginStateHookMigratorFactory(function (api) {
|
|
249
|
-
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['table'], function (states) {
|
|
250
|
-
var _states$tableState, _states$tableState2;
|
|
251
|
-
return {
|
|
252
|
-
hoveredColumns: (_states$tableState = states.tableState) === null || _states$tableState === void 0 ? void 0 : _states$tableState.hoveredColumns,
|
|
253
|
-
hoveredRows: (_states$tableState2 = states.tableState) === null || _states$tableState2 === void 0 ? void 0 : _states$tableState2.hoveredRows
|
|
254
|
-
};
|
|
255
|
-
}),
|
|
256
|
-
hoveredColumns = _useSharedPluginState.hoveredColumns,
|
|
257
|
-
hoveredRows = _useSharedPluginState.hoveredRows;
|
|
258
|
-
return {
|
|
259
|
-
hoveredColumns: hoveredColumns,
|
|
260
|
-
hoveredRows: hoveredRows
|
|
261
|
-
};
|
|
262
|
-
}, function (api) {
|
|
263
|
-
var _useSharedPluginState2 = useSharedPluginState(api, ['table']),
|
|
264
|
-
tableState = _useSharedPluginState2.tableState;
|
|
265
|
-
var tableStateInternal = tableState;
|
|
266
|
-
return {
|
|
267
|
-
hoveredColumns: tableStateInternal === null || tableStateInternal === void 0 ? void 0 : tableStateInternal.hoveredColumns,
|
|
268
|
-
hoveredRows: tableStateInternal === null || tableStateInternal === void 0 ? void 0 : tableStateInternal.hoveredRows
|
|
269
|
-
};
|
|
270
|
-
});
|
|
271
248
|
var DragHandleComponentWithSharedState = function DragHandleComponentWithSharedState(_ref5) {
|
|
272
249
|
var isDragMenuTarget = _ref5.isDragMenuTarget,
|
|
273
250
|
tableLocalId = _ref5.tableLocalId,
|
|
@@ -285,9 +262,15 @@ var DragHandleComponentWithSharedState = function DragHandleComponentWithSharedS
|
|
|
285
262
|
editorView = _ref5.editorView,
|
|
286
263
|
intl = _ref5.intl,
|
|
287
264
|
api = _ref5.api;
|
|
288
|
-
var
|
|
289
|
-
|
|
290
|
-
|
|
265
|
+
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['table'], function (states) {
|
|
266
|
+
var _states$tableState, _states$tableState2;
|
|
267
|
+
return {
|
|
268
|
+
hoveredColumns: (_states$tableState = states.tableState) === null || _states$tableState === void 0 ? void 0 : _states$tableState.hoveredColumns,
|
|
269
|
+
hoveredRows: (_states$tableState2 = states.tableState) === null || _states$tableState2 === void 0 ? void 0 : _states$tableState2.hoveredRows
|
|
270
|
+
};
|
|
271
|
+
}),
|
|
272
|
+
hoveredColumns = _useSharedPluginState.hoveredColumns,
|
|
273
|
+
hoveredRows = _useSharedPluginState.hoveredRows;
|
|
291
274
|
return /*#__PURE__*/React.createElement(DragHandleComponent, {
|
|
292
275
|
isDragMenuTarget: isDragMenuTarget,
|
|
293
276
|
tableLocalId: tableLocalId,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
2
2
|
|
|
3
3
|
import React, { useCallback, useMemo, useRef } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
5
5
|
import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
6
6
|
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
7
7
|
import { CellSelection } from '@atlaskit/editor-tables';
|
|
@@ -23,24 +23,6 @@ var getSelectedColumns = function getSelectedColumns(selection) {
|
|
|
23
23
|
}
|
|
24
24
|
return [];
|
|
25
25
|
};
|
|
26
|
-
var useSharedState = sharedPluginStateHookMigratorFactory(function (api) {
|
|
27
|
-
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['selection'], function (states) {
|
|
28
|
-
var _states$selectionStat;
|
|
29
|
-
return {
|
|
30
|
-
selection: (_states$selectionStat = states.selectionState) === null || _states$selectionStat === void 0 ? void 0 : _states$selectionStat.selection
|
|
31
|
-
};
|
|
32
|
-
}),
|
|
33
|
-
selection = _useSharedPluginState.selection;
|
|
34
|
-
return {
|
|
35
|
-
selection: selection
|
|
36
|
-
};
|
|
37
|
-
}, function (api) {
|
|
38
|
-
var _useSharedPluginState2 = useSharedPluginState(api, ['selection']),
|
|
39
|
-
selectionState = _useSharedPluginState2.selectionState;
|
|
40
|
-
return {
|
|
41
|
-
selection: selectionState === null || selectionState === void 0 ? void 0 : selectionState.selection
|
|
42
|
-
};
|
|
43
|
-
});
|
|
44
26
|
export var ColumnControls = function ColumnControls(_ref) {
|
|
45
27
|
var _colWidths$map$join;
|
|
46
28
|
var editorView = _ref.editorView,
|
|
@@ -59,8 +41,13 @@ export var ColumnControls = function ColumnControls(_ref) {
|
|
|
59
41
|
getScrollOffset = _ref.getScrollOffset,
|
|
60
42
|
api = _ref.api;
|
|
61
43
|
var columnControlsRef = useRef(null);
|
|
62
|
-
var
|
|
63
|
-
|
|
44
|
+
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['selection'], function (states) {
|
|
45
|
+
var _states$selectionStat;
|
|
46
|
+
return {
|
|
47
|
+
selection: (_states$selectionStat = states.selectionState) === null || _states$selectionStat === void 0 ? void 0 : _states$selectionStat.selection
|
|
48
|
+
};
|
|
49
|
+
}),
|
|
50
|
+
selection = _useSharedPluginState.selection;
|
|
64
51
|
var widths = (_colWidths$map$join = colWidths === null || colWidths === void 0 ? void 0 : colWidths.map(function (width) {
|
|
65
52
|
return (
|
|
66
53
|
// when there is sticky header, a `margin-right: -1px` applied to `tr.sticky th` so it causes colWidths to be 1px wider
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import { injectIntl } from 'react-intl-next';
|
|
4
|
-
import {
|
|
4
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
5
5
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { findTable, isTableSelected, selectTable } from '@atlaskit/editor-tables/utils';
|
|
7
7
|
import { clearHoverSelection } from '../../../pm-plugins/commands';
|
|
@@ -49,7 +49,12 @@ var DragCornerControlsComponent = function DragCornerControlsComponent(_ref) {
|
|
|
49
49
|
className: ClassName.DRAG_CORNER_BUTTON_INNER
|
|
50
50
|
}));
|
|
51
51
|
};
|
|
52
|
-
var
|
|
52
|
+
var DragCornerControlsComponentWithSelection = function DragCornerControlsComponentWithSelection(_ref2) {
|
|
53
|
+
var editorView = _ref2.editorView,
|
|
54
|
+
isInDanger = _ref2.isInDanger,
|
|
55
|
+
isResizing = _ref2.isResizing,
|
|
56
|
+
formatMessage = _ref2.intl.formatMessage,
|
|
57
|
+
api = _ref2.api;
|
|
53
58
|
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['selection'], function (states) {
|
|
54
59
|
var _states$selectionStat;
|
|
55
60
|
return {
|
|
@@ -57,24 +62,6 @@ var useSharedState = sharedPluginStateHookMigratorFactory(function (api) {
|
|
|
57
62
|
};
|
|
58
63
|
}),
|
|
59
64
|
selection = _useSharedPluginState.selection;
|
|
60
|
-
return {
|
|
61
|
-
selection: selection
|
|
62
|
-
};
|
|
63
|
-
}, function (api) {
|
|
64
|
-
var _useSharedPluginState2 = useSharedPluginState(api, ['selection']),
|
|
65
|
-
selectionState = _useSharedPluginState2.selectionState;
|
|
66
|
-
return {
|
|
67
|
-
selection: selectionState === null || selectionState === void 0 ? void 0 : selectionState.selection
|
|
68
|
-
};
|
|
69
|
-
});
|
|
70
|
-
var DragCornerControlsComponentWithSelection = function DragCornerControlsComponentWithSelection(_ref2) {
|
|
71
|
-
var editorView = _ref2.editorView,
|
|
72
|
-
isInDanger = _ref2.isInDanger,
|
|
73
|
-
isResizing = _ref2.isResizing,
|
|
74
|
-
formatMessage = _ref2.intl.formatMessage,
|
|
75
|
-
api = _ref2.api;
|
|
76
|
-
var _useSharedState = useSharedState(api),
|
|
77
|
-
selection = _useSharedState.selection;
|
|
78
65
|
var handleOnClick = function handleOnClick() {
|
|
79
66
|
var state = editorView.state,
|
|
80
67
|
dispatch = editorView.dispatch;
|
|
@@ -1,25 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
3
3
|
import { CornerControls } from './CornerControls/ClassicCornerControls';
|
|
4
4
|
import { RowControls } from './RowControls/ClassicControls';
|
|
5
|
-
var useSharedState = sharedPluginStateHookMigratorFactory(function (api) {
|
|
6
|
-
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['selection'], function (states) {
|
|
7
|
-
var _states$selectionStat;
|
|
8
|
-
return {
|
|
9
|
-
selection: (_states$selectionStat = states.selectionState) === null || _states$selectionStat === void 0 ? void 0 : _states$selectionStat.selection
|
|
10
|
-
};
|
|
11
|
-
}),
|
|
12
|
-
selection = _useSharedPluginState.selection;
|
|
13
|
-
return {
|
|
14
|
-
selection: selection
|
|
15
|
-
};
|
|
16
|
-
}, function (api) {
|
|
17
|
-
var _useSharedPluginState2 = useSharedPluginState(api, ['selection']),
|
|
18
|
-
selectionState = _useSharedPluginState2.selectionState;
|
|
19
|
-
return {
|
|
20
|
-
selection: selectionState === null || selectionState === void 0 ? void 0 : selectionState.selection
|
|
21
|
-
};
|
|
22
|
-
});
|
|
23
5
|
export var FloatingControlsWithSelection = function FloatingControlsWithSelection(_ref) {
|
|
24
6
|
var editorView = _ref.editorView,
|
|
25
7
|
tableRef = _ref.tableRef,
|
|
@@ -33,8 +15,13 @@ export var FloatingControlsWithSelection = function FloatingControlsWithSelectio
|
|
|
33
15
|
selectRow = _ref.selectRow,
|
|
34
16
|
tableActive = _ref.tableActive,
|
|
35
17
|
api = _ref.api;
|
|
36
|
-
var
|
|
37
|
-
|
|
18
|
+
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['selection'], function (states) {
|
|
19
|
+
var _states$selectionStat;
|
|
20
|
+
return {
|
|
21
|
+
selection: (_states$selectionStat = states.selectionState) === null || _states$selectionStat === void 0 ? void 0 : _states$selectionStat.selection
|
|
22
|
+
};
|
|
23
|
+
}),
|
|
24
|
+
selection = _useSharedPluginState.selection;
|
|
38
25
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CornerControls, {
|
|
39
26
|
editorView: editorView,
|
|
40
27
|
tableRef: tableRef,
|
|
@@ -2,7 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
3
3
|
|
|
4
4
|
import React, { Fragment, useCallback, useEffect, useMemo, useState } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
6
6
|
import { CellSelection } from '@atlaskit/editor-tables';
|
|
7
7
|
import { getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -277,24 +277,6 @@ export var DragControls = function DragControls(_ref) {
|
|
|
277
277
|
}), rowHandles())
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
|
-
var useSharedState = sharedPluginStateHookMigratorFactory(function (api) {
|
|
281
|
-
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['selection'], function (states) {
|
|
282
|
-
var _states$selectionStat;
|
|
283
|
-
return {
|
|
284
|
-
selection: (_states$selectionStat = states.selectionState) === null || _states$selectionStat === void 0 ? void 0 : _states$selectionStat.selection
|
|
285
|
-
};
|
|
286
|
-
}),
|
|
287
|
-
selection = _useSharedPluginState.selection;
|
|
288
|
-
return {
|
|
289
|
-
selection: selection
|
|
290
|
-
};
|
|
291
|
-
}, function (api) {
|
|
292
|
-
var _useSharedPluginState2 = useSharedPluginState(api, ['selection']),
|
|
293
|
-
selectionState = _useSharedPluginState2.selectionState;
|
|
294
|
-
return {
|
|
295
|
-
selection: selectionState === null || selectionState === void 0 ? void 0 : selectionState.selection
|
|
296
|
-
};
|
|
297
|
-
});
|
|
298
280
|
export var DragControlsWithSelection = function DragControlsWithSelection(_ref5) {
|
|
299
281
|
var editorView = _ref5.editorView,
|
|
300
282
|
tableRef = _ref5.tableRef,
|
|
@@ -310,8 +292,13 @@ export var DragControlsWithSelection = function DragControlsWithSelection(_ref5)
|
|
|
310
292
|
selectRows = _ref5.selectRows,
|
|
311
293
|
updateCellHoverLocation = _ref5.updateCellHoverLocation,
|
|
312
294
|
api = _ref5.api;
|
|
313
|
-
var
|
|
314
|
-
|
|
295
|
+
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['selection'], function (states) {
|
|
296
|
+
var _states$selectionStat;
|
|
297
|
+
return {
|
|
298
|
+
selection: (_states$selectionStat = states.selectionState) === null || _states$selectionStat === void 0 ? void 0 : _states$selectionStat.selection
|
|
299
|
+
};
|
|
300
|
+
}),
|
|
301
|
+
selection = _useSharedPluginState.selection;
|
|
315
302
|
return /*#__PURE__*/React.createElement(DragControls, {
|
|
316
303
|
editorView: editorView,
|
|
317
304
|
tableRef: tableRef,
|
|
@@ -4,9 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { Global, jsx } from '@emotion/react';
|
|
7
|
-
import {
|
|
7
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
8
8
|
import { tableStyles } from './common-styles';
|
|
9
|
-
var
|
|
9
|
+
export var GlobalStylesWrapper = function GlobalStylesWrapper(_ref) {
|
|
10
|
+
var featureFlags = _ref.featureFlags,
|
|
11
|
+
isDragAndDropEnabledOption = _ref.isDragAndDropEnabledOption,
|
|
12
|
+
api = _ref.api;
|
|
10
13
|
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['editorViewMode'], function (states) {
|
|
11
14
|
var _states$editorViewMod;
|
|
12
15
|
return {
|
|
@@ -14,22 +17,6 @@ var useSharedState = sharedPluginStateHookMigratorFactory(function (api) {
|
|
|
14
17
|
};
|
|
15
18
|
}),
|
|
16
19
|
mode = _useSharedPluginState.mode;
|
|
17
|
-
return {
|
|
18
|
-
mode: mode
|
|
19
|
-
};
|
|
20
|
-
}, function (api) {
|
|
21
|
-
var _useSharedPluginState2 = useSharedPluginState(api, ['editorViewMode']),
|
|
22
|
-
editorViewModeState = _useSharedPluginState2.editorViewModeState;
|
|
23
|
-
return {
|
|
24
|
-
mode: editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode
|
|
25
|
-
};
|
|
26
|
-
});
|
|
27
|
-
export var GlobalStylesWrapper = function GlobalStylesWrapper(_ref) {
|
|
28
|
-
var featureFlags = _ref.featureFlags,
|
|
29
|
-
isDragAndDropEnabledOption = _ref.isDragAndDropEnabledOption,
|
|
30
|
-
api = _ref.api;
|
|
31
|
-
var _useSharedState = useSharedState(api),
|
|
32
|
-
mode = _useSharedState.mode;
|
|
33
20
|
var isLivePageViewMode = mode === 'view';
|
|
34
21
|
return jsx(Global, {
|
|
35
22
|
styles: tableStyles({
|
|
@@ -1,27 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
3
3
|
import { SortingIcon } from '@atlaskit/editor-common/table';
|
|
4
|
-
var
|
|
5
|
-
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['editorViewMode'], function (states) {
|
|
4
|
+
export var SortingIconWrapper = function SortingIconWrapper(props) {
|
|
5
|
+
var _useSharedPluginState = useSharedPluginStateWithSelector(props.api, ['editorViewMode'], function (states) {
|
|
6
6
|
var _states$editorViewMod;
|
|
7
7
|
return {
|
|
8
8
|
mode: (_states$editorViewMod = states.editorViewModeState) === null || _states$editorViewMod === void 0 ? void 0 : _states$editorViewMod.mode
|
|
9
9
|
};
|
|
10
10
|
}),
|
|
11
11
|
mode = _useSharedPluginState.mode;
|
|
12
|
-
return {
|
|
13
|
-
mode: mode
|
|
14
|
-
};
|
|
15
|
-
}, function (api) {
|
|
16
|
-
var _useSharedPluginState2 = useSharedPluginState(api, ['editorViewMode']),
|
|
17
|
-
editorViewModeState = _useSharedPluginState2.editorViewModeState;
|
|
18
|
-
return {
|
|
19
|
-
mode: editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode
|
|
20
|
-
};
|
|
21
|
-
});
|
|
22
|
-
export var SortingIconWrapper = function SortingIconWrapper(props) {
|
|
23
|
-
var _useSharedState = useSharedState(props.api),
|
|
24
|
-
mode = _useSharedState.mode;
|
|
25
12
|
if (mode === 'edit') {
|
|
26
13
|
return null;
|
|
27
14
|
}
|
|
@@ -25,5 +25,5 @@ type TableComponentWithSharedStateProps = {
|
|
|
25
25
|
/**
|
|
26
26
|
* Use useSharedPluginState to control re-renders from plugin dependencies
|
|
27
27
|
*/
|
|
28
|
-
export declare const TableComponentWithSharedState: ({ view, options, getNode, dispatchAnalyticsEvent, api, getEditorFeatureFlags, eventDispatcher, allowColumnResizing, allowControls, getPos, forwardRef, allowTableAlignment, allowTableResizing, }: TableComponentWithSharedStateProps) => React.JSX.Element
|
|
28
|
+
export declare const TableComponentWithSharedState: ({ view, options, getNode, dispatchAnalyticsEvent, api, getEditorFeatureFlags, eventDispatcher, allowColumnResizing, allowControls, getPos, forwardRef, allowTableAlignment, allowTableResizing, }: TableComponentWithSharedStateProps) => React.JSX.Element;
|
|
29
29
|
export {};
|
|
@@ -25,5 +25,5 @@ type TableComponentWithSharedStateProps = {
|
|
|
25
25
|
/**
|
|
26
26
|
* Use useSharedPluginState to control re-renders from plugin dependencies
|
|
27
27
|
*/
|
|
28
|
-
export declare const TableComponentWithSharedState: ({ view, options, getNode, dispatchAnalyticsEvent, api, getEditorFeatureFlags, eventDispatcher, allowColumnResizing, allowControls, getPos, forwardRef, allowTableAlignment, allowTableResizing, }: TableComponentWithSharedStateProps) => React.JSX.Element
|
|
28
|
+
export declare const TableComponentWithSharedState: ({ view, options, getNode, dispatchAnalyticsEvent, api, getEditorFeatureFlags, eventDispatcher, allowColumnResizing, allowControls, getPos, forwardRef, allowTableAlignment, allowTableResizing, }: TableComponentWithSharedStateProps) => React.JSX.Element;
|
|
29
29
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.6",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/primitives": "^14.12.0",
|
|
58
58
|
"@atlaskit/react-ufo": "^4.5.0",
|
|
59
59
|
"@atlaskit/theme": "^20.0.0",
|
|
60
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
60
|
+
"@atlaskit/tmp-editor-statsig": "^12.3.0",
|
|
61
61
|
"@atlaskit/toggle": "^15.1.0",
|
|
62
62
|
"@atlaskit/tokens": "^6.1.0",
|
|
63
63
|
"@atlaskit/tooltip": "^20.4.0",
|