@atlaskit/editor-plugin-table 18.1.32 → 18.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/nodeviews/TableComponent.js +2 -2
- package/dist/cjs/nodeviews/TableResizer.js +2 -2
- package/dist/cjs/pm-plugins/drag-and-drop/utils/getDragBehaviour.js +1 -2
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/cjs/tablePlugin.js +1 -1
- package/dist/cjs/ui/DragHandle/index.js +2 -2
- package/dist/cjs/ui/TableFloatingControls/index.js +2 -2
- package/dist/cjs/ui/common-styles.js +1 -1
- package/dist/es2019/nodeviews/TableComponent.js +3 -3
- package/dist/es2019/nodeviews/TableResizer.js +3 -3
- package/dist/es2019/pm-plugins/drag-and-drop/utils/getDragBehaviour.js +2 -3
- package/dist/es2019/pm-plugins/main.js +2 -2
- package/dist/es2019/tablePlugin.js +2 -2
- package/dist/es2019/ui/DragHandle/index.js +3 -3
- package/dist/es2019/ui/TableFloatingControls/index.js +3 -3
- package/dist/es2019/ui/common-styles.js +2 -2
- package/dist/esm/nodeviews/TableComponent.js +3 -3
- package/dist/esm/nodeviews/TableResizer.js +3 -3
- package/dist/esm/pm-plugins/drag-and-drop/utils/getDragBehaviour.js +2 -3
- package/dist/esm/pm-plugins/main.js +2 -2
- package/dist/esm/tablePlugin.js +2 -2
- package/dist/esm/ui/DragHandle/index.js +3 -3
- package/dist/esm/ui/TableFloatingControls/index.js +3 -3
- package/dist/esm/ui/common-styles.js +2 -2
- package/dist/types/types/index.d.ts +16 -16
- package/dist/types-ts4.5/types/index.d.ts +16 -16
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 18.1.33
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`73b2fc243f544`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73b2fc243f544) -
|
|
8
|
+
Cleaning up getBrowserInfo which was behind experiment platform_editor_hydratable_ui and is now
|
|
9
|
+
rolled out
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 18.1.32
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -395,7 +395,7 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
395
395
|
eventDispatcher = _this$props6.eventDispatcher,
|
|
396
396
|
isDragAndDropEnabled = _this$props6.isDragAndDropEnabled,
|
|
397
397
|
getNode = _this$props6.getNode;
|
|
398
|
-
var browser = (0,
|
|
398
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
399
399
|
var isIE11 = browser.ie_version === 11;
|
|
400
400
|
|
|
401
401
|
// Ignored via go/ees005
|
|
@@ -475,7 +475,7 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
475
475
|
isDragAndDropEnabled = _this$props7.isDragAndDropEnabled,
|
|
476
476
|
view = _this$props7.view,
|
|
477
477
|
isInDanger = _this$props7.isInDanger;
|
|
478
|
-
var browser = (0,
|
|
478
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
479
479
|
var isIE11 = browser.ie_version === 11;
|
|
480
480
|
if (this.wrapper && !isIE11) {
|
|
481
481
|
// Ignored via go/ees005
|
|
@@ -429,7 +429,7 @@ var TableResizer = exports.TableResizer = function TableResizer(_ref) {
|
|
|
429
429
|
}, [editorView]);
|
|
430
430
|
var handleKeyDown = (0, _react.useCallback)(function (event) {
|
|
431
431
|
var isBracketKey = event.code === 'BracketRight' || event.code === 'BracketLeft';
|
|
432
|
-
var browser = (0,
|
|
432
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
433
433
|
var metaKey = browser.mac ? event.metaKey : event.ctrlKey;
|
|
434
434
|
if (event.altKey || metaKey || event.shiftKey) {
|
|
435
435
|
areResizeMetaKeysPressed.current = true;
|
|
@@ -455,7 +455,7 @@ var TableResizer = exports.TableResizer = function TableResizer(_ref) {
|
|
|
455
455
|
}
|
|
456
456
|
var resizeHandleThumbEl = resizerRef.current.getResizerThumbEl();
|
|
457
457
|
var globalKeyDownHandler = function globalKeyDownHandler(event) {
|
|
458
|
-
var browser = (0,
|
|
458
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
459
459
|
var metaKey = browser.mac ? event.metaKey : event.ctrlKey;
|
|
460
460
|
if (!isTableSelected) {
|
|
461
461
|
return;
|
|
@@ -5,11 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getDragBehaviour = void 0;
|
|
7
7
|
var _browser = require("@atlaskit/editor-common/browser");
|
|
8
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
9
8
|
var getDragBehaviour = exports.getDragBehaviour = function getDragBehaviour(_ref) {
|
|
10
9
|
var altKey = _ref.altKey,
|
|
11
10
|
ctrlKey = _ref.ctrlKey;
|
|
12
|
-
var browser = (0,
|
|
11
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
13
12
|
var isCloneModifierKeyPressed = browser.mac ? altKey : ctrlKey;
|
|
14
13
|
return isCloneModifierKeyPressed ? 'clone' : 'move';
|
|
15
14
|
};
|
|
@@ -274,7 +274,7 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatchAnalytic
|
|
|
274
274
|
var state = _ref2.state,
|
|
275
275
|
dispatch = _ref2.dispatch;
|
|
276
276
|
var decorationSet = _plugin.pluginKey.getState(state);
|
|
277
|
-
var browser = (0,
|
|
277
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
278
278
|
if ((0, _decoration.findControlsHoverDecoration)(decorationSet).length) {
|
|
279
279
|
(0, _commands.clearHoverSelection)()(state, dispatch);
|
|
280
280
|
}
|
package/dist/cjs/tablePlugin.js
CHANGED
|
@@ -501,7 +501,7 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
501
501
|
}
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
|
-
var browser = (0,
|
|
504
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
505
505
|
|
|
506
506
|
// Workaround for table element breaking issue caused by composition event with an inputType of deleteCompositionText.
|
|
507
507
|
// https://github.com/ProseMirror/prosemirror/issues/934
|
|
@@ -104,7 +104,7 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
|
|
|
104
104
|
};
|
|
105
105
|
(0, _react.useEffect)(function () {
|
|
106
106
|
var dragHandleDivRefCurrent = dragHandleDivRef.current;
|
|
107
|
-
var browser = (0,
|
|
107
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
108
108
|
if (dragHandleDivRefCurrent) {
|
|
109
109
|
return (0, _adapter.draggable)({
|
|
110
110
|
element: dragHandleDivRefCurrent,
|
|
@@ -159,7 +159,7 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
|
|
|
159
159
|
}
|
|
160
160
|
}, [tableLocalId, direction, indexes, isRow, editorView.state.selection, hasMergedCells]);
|
|
161
161
|
var showDragMenuAnchorId = isRow ? 'drag-handle-button-row' : 'drag-handle-button-column';
|
|
162
|
-
var browser = (0,
|
|
162
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
163
163
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("button", {
|
|
164
164
|
type: "button"
|
|
165
165
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -56,7 +56,7 @@ var TableFloatingControls = exports.TableFloatingControls = function TableFloati
|
|
|
56
56
|
var _selectRow = (0, _react.useCallback)(function (row, expand) {
|
|
57
57
|
var state = editorView.state,
|
|
58
58
|
dispatch = editorView.dispatch;
|
|
59
|
-
var browser = (0,
|
|
59
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
60
60
|
if (browser.ie_version === 11) {
|
|
61
61
|
// Ignored via go/ees005
|
|
62
62
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
@@ -67,7 +67,7 @@ var TableFloatingControls = exports.TableFloatingControls = function TableFloati
|
|
|
67
67
|
var _selectRows = (0, _react.useCallback)(function (rowIndexes) {
|
|
68
68
|
var state = editorView.state,
|
|
69
69
|
dispatch = editorView.dispatch;
|
|
70
|
-
var browser = (0,
|
|
70
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
71
71
|
if (browser.ie_version === 11) {
|
|
72
72
|
// Ignored via go/ees005
|
|
73
73
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
@@ -59,7 +59,7 @@ var tableStickyHeaderColumnControlsDecorationsStyle = function tableStickyHeader
|
|
|
59
59
|
return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t\t.", " .", " {\n\t\t\tz-index: 0;\n\t\t\tleft: -1px;\n\t\t}\n\n\t\t.", " .", "::after {\n\t\t\tborder-left: 1px solid ", ";\n\t\t}\n\n\t\t.", " tr:first-of-type th.", " {\n\t\t\t&.", ", &.", " {\n\t\t\t\t.", "::after {\n\t\t\t\t\tleft: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t"])), _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, _consts2.tableBorderColor, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.TABLE_HEADER_CELL, _types.TableCssClassName.COLUMN_SELECTED, _types.TableCssClassName.HOVERED_COLUMN, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS);
|
|
60
60
|
};
|
|
61
61
|
var tableStickyHeaderFirefoxFixStyle = function tableStickyHeaderFirefoxFixStyle() {
|
|
62
|
-
var browser = (0,
|
|
62
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
63
63
|
/*
|
|
64
64
|
This is MAGIC!
|
|
65
65
|
This fixes a bug which occurs in firefox when the first row becomes sticky.
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import rafSchedule from 'raf-schd';
|
|
5
5
|
import { injectIntl } from 'react-intl-next';
|
|
6
|
-
import {
|
|
6
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
7
7
|
import { tintDirtyTransaction } from '@atlaskit/editor-common/collab';
|
|
8
8
|
import { getParentOfTypeCount } from '@atlaskit/editor-common/nesting';
|
|
9
9
|
import { nodeVisibilityManager } from '@atlaskit/editor-common/node-visibility';
|
|
@@ -369,7 +369,7 @@ class TableComponent extends React.Component {
|
|
|
369
369
|
isDragAndDropEnabled,
|
|
370
370
|
getNode
|
|
371
371
|
} = this.props;
|
|
372
|
-
const browser =
|
|
372
|
+
const browser = getBrowserInfo();
|
|
373
373
|
const isIE11 = browser.ie_version === 11;
|
|
374
374
|
|
|
375
375
|
// Ignored via go/ees005
|
|
@@ -439,7 +439,7 @@ class TableComponent extends React.Component {
|
|
|
439
439
|
view,
|
|
440
440
|
isInDanger
|
|
441
441
|
} = this.props;
|
|
442
|
-
const browser =
|
|
442
|
+
const browser = getBrowserInfo();
|
|
443
443
|
const isIE11 = browser.ie_version === 11;
|
|
444
444
|
if (this.wrapper && !isIE11) {
|
|
445
445
|
// Ignored via go/ees005
|
|
@@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useSta
|
|
|
2
2
|
import rafSchd from 'raf-schd';
|
|
3
3
|
import { useIntl } from 'react-intl-next';
|
|
4
4
|
import { CHANGE_ALIGNMENT_REASON, INPUT_METHOD, TABLE_OVERFLOW_CHANGE_TRIGGER } from '@atlaskit/editor-common/analytics';
|
|
5
|
-
import {
|
|
5
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
6
6
|
import { getGuidelinesWithHighlights } from '@atlaskit/editor-common/guideline';
|
|
7
7
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
8
8
|
import { focusTableResizer, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
@@ -425,7 +425,7 @@ export const TableResizer = ({
|
|
|
425
425
|
}, [editorView]);
|
|
426
426
|
const handleKeyDown = useCallback(event => {
|
|
427
427
|
const isBracketKey = event.code === 'BracketRight' || event.code === 'BracketLeft';
|
|
428
|
-
const browser =
|
|
428
|
+
const browser = getBrowserInfo();
|
|
429
429
|
const metaKey = browser.mac ? event.metaKey : event.ctrlKey;
|
|
430
430
|
if (event.altKey || metaKey || event.shiftKey) {
|
|
431
431
|
areResizeMetaKeysPressed.current = true;
|
|
@@ -451,7 +451,7 @@ export const TableResizer = ({
|
|
|
451
451
|
}
|
|
452
452
|
const resizeHandleThumbEl = resizerRef.current.getResizerThumbEl();
|
|
453
453
|
const globalKeyDownHandler = event => {
|
|
454
|
-
const browser =
|
|
454
|
+
const browser = getBrowserInfo();
|
|
455
455
|
const metaKey = browser.mac ? event.metaKey : event.ctrlKey;
|
|
456
456
|
if (!isTableSelected) {
|
|
457
457
|
return;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
1
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
3
2
|
export const getDragBehaviour = ({
|
|
4
3
|
altKey,
|
|
5
4
|
ctrlKey
|
|
6
5
|
}) => {
|
|
7
|
-
const browser =
|
|
6
|
+
const browser = getBrowserInfo();
|
|
8
7
|
const isCloneModifierKeyPressed = browser.mac ? altKey : ctrlKey;
|
|
9
8
|
return isCloneModifierKeyPressed ? 'clone' : 'move';
|
|
10
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import {
|
|
2
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
3
3
|
import { insideTable } from '@atlaskit/editor-common/core-utils';
|
|
4
4
|
import { isNestedTablesSupported } from '@atlaskit/editor-common/nesting';
|
|
5
5
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
@@ -267,7 +267,7 @@ export const createPlugin = (dispatchAnalyticsEvent, dispatch, portalProviderAPI
|
|
|
267
267
|
dispatch
|
|
268
268
|
}, _pos, event) => {
|
|
269
269
|
const decorationSet = decorationsPluginKey.getState(state);
|
|
270
|
-
const browser =
|
|
270
|
+
const browser = getBrowserInfo();
|
|
271
271
|
if (findControlsHoverDecoration(decorationSet).length) {
|
|
272
272
|
clearHoverSelection()(state, dispatch);
|
|
273
273
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import { tableCell, tableCellWithNestedTable, tableHeader, tableHeaderWithLocalId, tableHeaderWithNestedTable, tableRow, tableRowWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableCellWithNestedTableWithLocalId, tableRowWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from '@atlaskit/adf-schema';
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, TABLE_ACTION } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import {
|
|
4
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
5
5
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
6
6
|
import { IconTable } from '@atlaskit/editor-common/icons';
|
|
7
7
|
import { toggleTable, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
@@ -486,7 +486,7 @@ const tablePlugin = ({
|
|
|
486
486
|
plugin: () => createTableAnchorNamesPlugin()
|
|
487
487
|
});
|
|
488
488
|
}
|
|
489
|
-
const browser =
|
|
489
|
+
const browser = getBrowserInfo();
|
|
490
490
|
|
|
491
491
|
// Workaround for table element breaking issue caused by composition event with an inputType of deleteCompositionText.
|
|
492
492
|
// https://github.com/ProseMirror/prosemirror/issues/934
|
|
@@ -4,7 +4,7 @@ import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import ReactDOM from 'react-dom';
|
|
6
6
|
import { injectIntl } from 'react-intl-next';
|
|
7
|
-
import {
|
|
7
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
8
8
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
9
9
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
10
10
|
import { findTable, TableMap } from '@atlaskit/editor-tables';
|
|
@@ -91,7 +91,7 @@ const DragHandleComponent = ({
|
|
|
91
91
|
};
|
|
92
92
|
useEffect(() => {
|
|
93
93
|
const dragHandleDivRefCurrent = dragHandleDivRef.current;
|
|
94
|
-
const browser =
|
|
94
|
+
const browser = getBrowserInfo();
|
|
95
95
|
if (dragHandleDivRefCurrent) {
|
|
96
96
|
return draggable({
|
|
97
97
|
element: dragHandleDivRefCurrent,
|
|
@@ -147,7 +147,7 @@ const DragHandleComponent = ({
|
|
|
147
147
|
}
|
|
148
148
|
}, [tableLocalId, direction, indexes, isRow, editorView.state.selection, hasMergedCells]);
|
|
149
149
|
const showDragMenuAnchorId = isRow ? 'drag-handle-button-row' : 'drag-handle-button-column';
|
|
150
|
-
const browser =
|
|
150
|
+
const browser = getBrowserInfo();
|
|
151
151
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("button", {
|
|
152
152
|
type: "button"
|
|
153
153
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -6,7 +6,7 @@ import { Fragment, useCallback } from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import {
|
|
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';
|
|
12
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -51,7 +51,7 @@ export const TableFloatingControls = ({
|
|
|
51
51
|
state,
|
|
52
52
|
dispatch
|
|
53
53
|
} = editorView;
|
|
54
|
-
const browser =
|
|
54
|
+
const browser = getBrowserInfo();
|
|
55
55
|
if (browser.ie_version === 11) {
|
|
56
56
|
// Ignored via go/ees005
|
|
57
57
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
@@ -64,7 +64,7 @@ export const TableFloatingControls = ({
|
|
|
64
64
|
state,
|
|
65
65
|
dispatch
|
|
66
66
|
} = editorView;
|
|
67
|
-
const browser =
|
|
67
|
+
const browser = getBrowserInfo();
|
|
68
68
|
if (browser.ie_version === 11) {
|
|
69
69
|
// Ignored via go/ees005
|
|
70
70
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css } from '@emotion/react';
|
|
8
|
-
import {
|
|
8
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
9
9
|
import { ANCHOR_VARIABLE_NAME, tableMarginTop, tableSharedStyle, TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
10
10
|
import { SORTABLE_COLUMN_ICON_CLASSNAME } from '@atlaskit/editor-common/table';
|
|
11
11
|
import { akEditorSelectedNodeClassName, akEditorSmallZIndex, akEditorStickyHeaderZIndex, akEditorTableCellOnStickyHeaderZIndex, akEditorTableNumberColumnWidth, akEditorTableToolbarSize, akEditorUnitZIndex, getSelectionStyles, MAX_BROWSER_SCROLLBAR_HEIGHT, SelectionStyle, relativeSizeToBaseFontSize, relativeFontSizeToBase16, akEditorSelectedBorderColor } from '@atlaskit/editor-shared-styles';
|
|
@@ -204,7 +204,7 @@ const tableStickyHeaderColumnControlsDecorationsStyle = () => {
|
|
|
204
204
|
`;
|
|
205
205
|
};
|
|
206
206
|
const tableStickyHeaderFirefoxFixStyle = () => {
|
|
207
|
-
const browser =
|
|
207
|
+
const browser = getBrowserInfo();
|
|
208
208
|
/*
|
|
209
209
|
This is MAGIC!
|
|
210
210
|
This fixes a bug which occurs in firefox when the first row becomes sticky.
|
|
@@ -16,7 +16,7 @@ import React from 'react';
|
|
|
16
16
|
import classnames from 'classnames';
|
|
17
17
|
import rafSchedule from 'raf-schd';
|
|
18
18
|
import { injectIntl } from 'react-intl-next';
|
|
19
|
-
import {
|
|
19
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
20
20
|
import { tintDirtyTransaction } from '@atlaskit/editor-common/collab';
|
|
21
21
|
import { getParentOfTypeCount } from '@atlaskit/editor-common/nesting';
|
|
22
22
|
import { nodeVisibilityManager } from '@atlaskit/editor-common/node-visibility';
|
|
@@ -389,7 +389,7 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
389
389
|
eventDispatcher = _this$props6.eventDispatcher,
|
|
390
390
|
isDragAndDropEnabled = _this$props6.isDragAndDropEnabled,
|
|
391
391
|
getNode = _this$props6.getNode;
|
|
392
|
-
var browser =
|
|
392
|
+
var browser = getBrowserInfo();
|
|
393
393
|
var isIE11 = browser.ie_version === 11;
|
|
394
394
|
|
|
395
395
|
// Ignored via go/ees005
|
|
@@ -469,7 +469,7 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
469
469
|
isDragAndDropEnabled = _this$props7.isDragAndDropEnabled,
|
|
470
470
|
view = _this$props7.view,
|
|
471
471
|
isInDanger = _this$props7.isInDanger;
|
|
472
|
-
var browser =
|
|
472
|
+
var browser = getBrowserInfo();
|
|
473
473
|
var isIE11 = browser.ie_version === 11;
|
|
474
474
|
if (this.wrapper && !isIE11) {
|
|
475
475
|
// Ignored via go/ees005
|
|
@@ -6,7 +6,7 @@ import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useSta
|
|
|
6
6
|
import rafSchd from 'raf-schd';
|
|
7
7
|
import { useIntl } from 'react-intl-next';
|
|
8
8
|
import { CHANGE_ALIGNMENT_REASON, INPUT_METHOD, TABLE_OVERFLOW_CHANGE_TRIGGER } from '@atlaskit/editor-common/analytics';
|
|
9
|
-
import {
|
|
9
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
10
10
|
import { getGuidelinesWithHighlights } from '@atlaskit/editor-common/guideline';
|
|
11
11
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
12
12
|
import { focusTableResizer, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
@@ -420,7 +420,7 @@ export var TableResizer = function TableResizer(_ref) {
|
|
|
420
420
|
}, [editorView]);
|
|
421
421
|
var handleKeyDown = useCallback(function (event) {
|
|
422
422
|
var isBracketKey = event.code === 'BracketRight' || event.code === 'BracketLeft';
|
|
423
|
-
var browser =
|
|
423
|
+
var browser = getBrowserInfo();
|
|
424
424
|
var metaKey = browser.mac ? event.metaKey : event.ctrlKey;
|
|
425
425
|
if (event.altKey || metaKey || event.shiftKey) {
|
|
426
426
|
areResizeMetaKeysPressed.current = true;
|
|
@@ -446,7 +446,7 @@ export var TableResizer = function TableResizer(_ref) {
|
|
|
446
446
|
}
|
|
447
447
|
var resizeHandleThumbEl = resizerRef.current.getResizerThumbEl();
|
|
448
448
|
var globalKeyDownHandler = function globalKeyDownHandler(event) {
|
|
449
|
-
var browser =
|
|
449
|
+
var browser = getBrowserInfo();
|
|
450
450
|
var metaKey = browser.mac ? event.metaKey : event.ctrlKey;
|
|
451
451
|
if (!isTableSelected) {
|
|
452
452
|
return;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
1
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
3
2
|
export var getDragBehaviour = function getDragBehaviour(_ref) {
|
|
4
3
|
var altKey = _ref.altKey,
|
|
5
4
|
ctrlKey = _ref.ctrlKey;
|
|
6
|
-
var browser =
|
|
5
|
+
var browser = getBrowserInfo();
|
|
7
6
|
var isCloneModifierKeyPressed = browser.mac ? altKey : ctrlKey;
|
|
8
7
|
return isCloneModifierKeyPressed ? 'clone' : 'move';
|
|
9
8
|
};
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
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; }
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
|
-
import {
|
|
5
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
6
6
|
import { insideTable } from '@atlaskit/editor-common/core-utils';
|
|
7
7
|
import { isNestedTablesSupported } from '@atlaskit/editor-common/nesting';
|
|
8
8
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
@@ -267,7 +267,7 @@ export var createPlugin = function createPlugin(dispatchAnalyticsEvent, dispatch
|
|
|
267
267
|
var state = _ref2.state,
|
|
268
268
|
dispatch = _ref2.dispatch;
|
|
269
269
|
var decorationSet = decorationsPluginKey.getState(state);
|
|
270
|
-
var browser =
|
|
270
|
+
var browser = getBrowserInfo();
|
|
271
271
|
if (findControlsHoverDecoration(decorationSet).length) {
|
|
272
272
|
clearHoverSelection()(state, dispatch);
|
|
273
273
|
}
|
package/dist/esm/tablePlugin.js
CHANGED
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import React, { useEffect } from 'react';
|
|
5
5
|
import { tableCell, tableCellWithNestedTable, tableHeader, tableHeaderWithLocalId, tableHeaderWithNestedTable, tableRow, tableRowWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableCellWithNestedTableWithLocalId, tableRowWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from '@atlaskit/adf-schema';
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, TABLE_ACTION } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
import {
|
|
7
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
8
8
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
9
9
|
import { IconTable } from '@atlaskit/editor-common/icons';
|
|
10
10
|
import { toggleTable, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
@@ -492,7 +492,7 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
492
492
|
}
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
|
-
var browser =
|
|
495
|
+
var browser = getBrowserInfo();
|
|
496
496
|
|
|
497
497
|
// Workaround for table element breaking issue caused by composition event with an inputType of deleteCompositionText.
|
|
498
498
|
// https://github.com/ProseMirror/prosemirror/issues/934
|
|
@@ -6,7 +6,7 @@ import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
|
6
6
|
import classnames from 'classnames';
|
|
7
7
|
import ReactDOM from 'react-dom';
|
|
8
8
|
import { injectIntl } from 'react-intl-next';
|
|
9
|
-
import {
|
|
9
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
10
10
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
11
11
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
12
12
|
import { findTable, TableMap } from '@atlaskit/editor-tables';
|
|
@@ -95,7 +95,7 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
|
|
|
95
95
|
};
|
|
96
96
|
useEffect(function () {
|
|
97
97
|
var dragHandleDivRefCurrent = dragHandleDivRef.current;
|
|
98
|
-
var browser =
|
|
98
|
+
var browser = getBrowserInfo();
|
|
99
99
|
if (dragHandleDivRefCurrent) {
|
|
100
100
|
return draggable({
|
|
101
101
|
element: dragHandleDivRefCurrent,
|
|
@@ -150,7 +150,7 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
|
|
|
150
150
|
}
|
|
151
151
|
}, [tableLocalId, direction, indexes, isRow, editorView.state.selection, hasMergedCells]);
|
|
152
152
|
var showDragMenuAnchorId = isRow ? 'drag-handle-button-row' : 'drag-handle-button-column';
|
|
153
|
-
var browser =
|
|
153
|
+
var browser = getBrowserInfo();
|
|
154
154
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("button", {
|
|
155
155
|
type: "button"
|
|
156
156
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -6,7 +6,7 @@ import { Fragment, useCallback } from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import {
|
|
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';
|
|
12
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -48,7 +48,7 @@ export var TableFloatingControls = function TableFloatingControls(_ref) {
|
|
|
48
48
|
var _selectRow = useCallback(function (row, expand) {
|
|
49
49
|
var state = editorView.state,
|
|
50
50
|
dispatch = editorView.dispatch;
|
|
51
|
-
var browser =
|
|
51
|
+
var browser = getBrowserInfo();
|
|
52
52
|
if (browser.ie_version === 11) {
|
|
53
53
|
// Ignored via go/ees005
|
|
54
54
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
@@ -59,7 +59,7 @@ export var TableFloatingControls = function TableFloatingControls(_ref) {
|
|
|
59
59
|
var _selectRows = useCallback(function (rowIndexes) {
|
|
60
60
|
var state = editorView.state,
|
|
61
61
|
dispatch = editorView.dispatch;
|
|
62
|
-
var browser =
|
|
62
|
+
var browser = getBrowserInfo();
|
|
63
63
|
if (browser.ie_version === 11) {
|
|
64
64
|
// Ignored via go/ees005
|
|
65
65
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
@@ -7,7 +7,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import {
|
|
10
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
11
11
|
import { ANCHOR_VARIABLE_NAME, tableMarginTop, tableSharedStyle, TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
12
12
|
import { SORTABLE_COLUMN_ICON_CLASSNAME } from '@atlaskit/editor-common/table';
|
|
13
13
|
import { akEditorSelectedNodeClassName, akEditorSmallZIndex, akEditorStickyHeaderZIndex, akEditorTableCellOnStickyHeaderZIndex, akEditorTableNumberColumnWidth, akEditorTableToolbarSize, akEditorUnitZIndex, getSelectionStyles, MAX_BROWSER_SCROLLBAR_HEIGHT, SelectionStyle, relativeSizeToBaseFontSize, relativeFontSizeToBase16, akEditorSelectedBorderColor } from '@atlaskit/editor-shared-styles';
|
|
@@ -54,7 +54,7 @@ var tableStickyHeaderColumnControlsDecorationsStyle = function tableStickyHeader
|
|
|
54
54
|
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t\t.", " .", " {\n\t\t\tz-index: 0;\n\t\t\tleft: -1px;\n\t\t}\n\n\t\t.", " .", "::after {\n\t\t\tborder-left: 1px solid ", ";\n\t\t}\n\n\t\t.", " tr:first-of-type th.", " {\n\t\t\t&.", ", &.", " {\n\t\t\t\t.", "::after {\n\t\t\t\t\tleft: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t"])), ClassName.TABLE_STICKY, ClassName.COLUMN_CONTROLS_DECORATIONS, ClassName.TABLE_STICKY, ClassName.COLUMN_CONTROLS_DECORATIONS, tableBorderColor, ClassName.TABLE_STICKY, ClassName.TABLE_HEADER_CELL, ClassName.COLUMN_SELECTED, ClassName.HOVERED_COLUMN, ClassName.COLUMN_CONTROLS_DECORATIONS);
|
|
55
55
|
};
|
|
56
56
|
var tableStickyHeaderFirefoxFixStyle = function tableStickyHeaderFirefoxFixStyle() {
|
|
57
|
-
var browser =
|
|
57
|
+
var browser = getBrowserInfo();
|
|
58
58
|
/*
|
|
59
59
|
This is MAGIC!
|
|
60
60
|
This fixes a bug which occurs in firefox when the first row becomes sticky.
|
|
@@ -425,29 +425,29 @@ export declare const TableCssClassName: {
|
|
|
425
425
|
NATIVE_STICKY: string;
|
|
426
426
|
NATIVE_STICKY_ACTIVE: string;
|
|
427
427
|
NO_OVERFLOW: string;
|
|
428
|
+
TABLE_CELL_NODEVIEW_CONTENT_DOM: "pm-table-cell-nodeview-content-dom";
|
|
429
|
+
TABLE_CELL_WRAPPER: "pm-table-cell-content-wrap";
|
|
430
|
+
TABLE_COLUMN_CONTROLS_DECORATIONS: "pm-table-column-controls-decoration";
|
|
428
431
|
TABLE_CONTAINER: "pm-table-container";
|
|
432
|
+
TABLE_HEADER_CELL_WRAPPER: "pm-table-header-content-wrap";
|
|
433
|
+
TABLE_LEFT_BORDER: "pm-table-left-border";
|
|
434
|
+
TABLE_LEFT_SHADOW: "pm-table-with-left-shadow";
|
|
429
435
|
TABLE_NODE_WRAPPER: "pm-table-wrapper";
|
|
430
436
|
TABLE_NODE_WRAPPER_NO_OVERFLOW: "pm-table-wrapper-no-overflow";
|
|
431
|
-
|
|
437
|
+
TABLE_RESIZER_CONTAINER: "pm-table-resizer-container";
|
|
432
438
|
TABLE_RIGHT_BORDER: "pm-table-right-border";
|
|
433
|
-
TABLE_LEFT_BORDER: "pm-table-left-border";
|
|
434
|
-
TABLE_LEFT_SHADOW: "pm-table-with-left-shadow";
|
|
435
439
|
TABLE_RIGHT_SHADOW: "pm-table-with-right-shadow";
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
TABLE_STICKY_SCROLLBAR_CONTAINER: "pm-table-sticky-scrollbar-container";
|
|
439
|
-
TABLE_STICKY_SENTINEL_TOP: "pm-table-sticky-sentinel-top";
|
|
440
|
-
TABLE_STICKY_SENTINEL_BOTTOM: "pm-table-sticky-sentinel-bottom";
|
|
441
|
-
TABLE_STICKY_SCROLLBAR_SENTINEL_TOP: "pm-table-sticky-scrollbar-sentinel-top";
|
|
442
|
-
TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM: "pm-table-sticky-scrollbar-sentinel-bottom";
|
|
440
|
+
TABLE_ROW_CONTROLS_WRAPPER: "pm-table-row-controls-wrapper";
|
|
441
|
+
TABLE_SCROLL_INLINE_SHADOW: "pm-table-scroll-inline-shadow";
|
|
443
442
|
TABLE_SHADOW_SENTINEL_LEFT: "pm-table-shadow-sentinel-left";
|
|
444
443
|
TABLE_SHADOW_SENTINEL_RIGHT: "pm-table-shadow-sentinel-right";
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
444
|
+
TABLE_STICKY_SCROLLBAR_CONTAINER: "pm-table-sticky-scrollbar-container";
|
|
445
|
+
TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM: "pm-table-sticky-scrollbar-sentinel-bottom";
|
|
446
|
+
TABLE_STICKY_SCROLLBAR_SENTINEL_TOP: "pm-table-sticky-scrollbar-sentinel-top";
|
|
447
|
+
TABLE_STICKY_SENTINEL_BOTTOM: "pm-table-sticky-sentinel-bottom";
|
|
448
|
+
TABLE_STICKY_SENTINEL_TOP: "pm-table-sticky-sentinel-top";
|
|
449
|
+
TABLE_STICKY_SHADOW: "pm-table-sticky-shadow";
|
|
450
|
+
TABLE_STICKY_WRAPPER: "pm-table-sticky-wrapper";
|
|
451
451
|
};
|
|
452
452
|
export interface ToolbarMenuConfig {
|
|
453
453
|
allowCollapse?: boolean;
|
|
@@ -425,29 +425,29 @@ export declare const TableCssClassName: {
|
|
|
425
425
|
NATIVE_STICKY: string;
|
|
426
426
|
NATIVE_STICKY_ACTIVE: string;
|
|
427
427
|
NO_OVERFLOW: string;
|
|
428
|
+
TABLE_CELL_NODEVIEW_CONTENT_DOM: "pm-table-cell-nodeview-content-dom";
|
|
429
|
+
TABLE_CELL_WRAPPER: "pm-table-cell-content-wrap";
|
|
430
|
+
TABLE_COLUMN_CONTROLS_DECORATIONS: "pm-table-column-controls-decoration";
|
|
428
431
|
TABLE_CONTAINER: "pm-table-container";
|
|
432
|
+
TABLE_HEADER_CELL_WRAPPER: "pm-table-header-content-wrap";
|
|
433
|
+
TABLE_LEFT_BORDER: "pm-table-left-border";
|
|
434
|
+
TABLE_LEFT_SHADOW: "pm-table-with-left-shadow";
|
|
429
435
|
TABLE_NODE_WRAPPER: "pm-table-wrapper";
|
|
430
436
|
TABLE_NODE_WRAPPER_NO_OVERFLOW: "pm-table-wrapper-no-overflow";
|
|
431
|
-
|
|
437
|
+
TABLE_RESIZER_CONTAINER: "pm-table-resizer-container";
|
|
432
438
|
TABLE_RIGHT_BORDER: "pm-table-right-border";
|
|
433
|
-
TABLE_LEFT_BORDER: "pm-table-left-border";
|
|
434
|
-
TABLE_LEFT_SHADOW: "pm-table-with-left-shadow";
|
|
435
439
|
TABLE_RIGHT_SHADOW: "pm-table-with-right-shadow";
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
TABLE_STICKY_SCROLLBAR_CONTAINER: "pm-table-sticky-scrollbar-container";
|
|
439
|
-
TABLE_STICKY_SENTINEL_TOP: "pm-table-sticky-sentinel-top";
|
|
440
|
-
TABLE_STICKY_SENTINEL_BOTTOM: "pm-table-sticky-sentinel-bottom";
|
|
441
|
-
TABLE_STICKY_SCROLLBAR_SENTINEL_TOP: "pm-table-sticky-scrollbar-sentinel-top";
|
|
442
|
-
TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM: "pm-table-sticky-scrollbar-sentinel-bottom";
|
|
440
|
+
TABLE_ROW_CONTROLS_WRAPPER: "pm-table-row-controls-wrapper";
|
|
441
|
+
TABLE_SCROLL_INLINE_SHADOW: "pm-table-scroll-inline-shadow";
|
|
443
442
|
TABLE_SHADOW_SENTINEL_LEFT: "pm-table-shadow-sentinel-left";
|
|
444
443
|
TABLE_SHADOW_SENTINEL_RIGHT: "pm-table-shadow-sentinel-right";
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
444
|
+
TABLE_STICKY_SCROLLBAR_CONTAINER: "pm-table-sticky-scrollbar-container";
|
|
445
|
+
TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM: "pm-table-sticky-scrollbar-sentinel-bottom";
|
|
446
|
+
TABLE_STICKY_SCROLLBAR_SENTINEL_TOP: "pm-table-sticky-scrollbar-sentinel-top";
|
|
447
|
+
TABLE_STICKY_SENTINEL_BOTTOM: "pm-table-sticky-sentinel-bottom";
|
|
448
|
+
TABLE_STICKY_SENTINEL_TOP: "pm-table-sticky-sentinel-top";
|
|
449
|
+
TABLE_STICKY_SHADOW: "pm-table-sticky-shadow";
|
|
450
|
+
TABLE_STICKY_WRAPPER: "pm-table-sticky-wrapper";
|
|
451
451
|
};
|
|
452
452
|
export interface ToolbarMenuConfig {
|
|
453
453
|
allowCollapse?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.33",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^8.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-content-insertion": "^8.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^10.0.0",
|
|
40
|
-
"@atlaskit/editor-plugin-extension": "11.0.
|
|
40
|
+
"@atlaskit/editor-plugin-extension": "11.0.34",
|
|
41
41
|
"@atlaskit/editor-plugin-guideline": "^8.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-interaction": "^17.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-limited-mode": "^5.0.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
49
49
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
50
50
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
51
|
-
"@atlaskit/icon": "^34.
|
|
51
|
+
"@atlaskit/icon": "^34.1.0",
|
|
52
52
|
"@atlaskit/insm": "^0.4.0",
|
|
53
53
|
"@atlaskit/menu": "^8.4.0",
|
|
54
54
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
57
57
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
58
58
|
"@atlaskit/primitives": "^19.0.0",
|
|
59
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
59
|
+
"@atlaskit/tmp-editor-statsig": "^62.0.0",
|
|
60
60
|
"@atlaskit/toggle": "^15.5.0",
|
|
61
61
|
"@atlaskit/tokens": "^13.0.0",
|
|
62
62
|
"@atlaskit/tooltip": "^21.1.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"uuid": "^3.1.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"@atlaskit/editor-common": "^112.
|
|
72
|
+
"@atlaskit/editor-common": "^112.21.0",
|
|
73
73
|
"react": "^18.2.0",
|
|
74
74
|
"react-dom": "^18.2.0",
|
|
75
75
|
"react-intl-next": "npm:react-intl@^5.18.1"
|