@atlaskit/editor-plugin-table 10.7.2 → 10.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/tablePlugin.js +4 -1
- package/dist/es2019/tablePlugin.js +4 -1
- package/dist/esm/tablePlugin.js +4 -1
- package/package.json +3 -3
- package/src/tablePlugin.tsx +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 10.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#137973](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/137973)
|
|
8
|
+
[`5cc195689bfb2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5cc195689bfb2) -
|
|
9
|
+
ED-27400 add resize layout to single column layout
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 10.7.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/tablePlugin.js
CHANGED
|
@@ -18,6 +18,7 @@ var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
|
18
18
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
19
19
|
var _nesting = require("@atlaskit/editor-common/nesting");
|
|
20
20
|
var _preset = require("@atlaskit/editor-common/preset");
|
|
21
|
+
var _resizer = require("@atlaskit/editor-common/resizer");
|
|
21
22
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
22
23
|
var _withPluginState = require("@atlaskit/editor-common/with-plugin-state");
|
|
23
24
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
@@ -538,7 +539,9 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
538
539
|
api: api
|
|
539
540
|
}), ((options === null || options === void 0 ? void 0 : options.isTableScalingEnabled) || (options === null || options === void 0 ? void 0 : options.tableOptions.allowTableResizing) && options.isCommentEditor) && isTableResizing && widthToWidest && resizingTableLocalId && resizingTableRef && widthToWidest[resizingTableLocalId] && /*#__PURE__*/_react.default.createElement(_FloatingToolbarLabel.FloatingToolbarLabel, {
|
|
540
541
|
target: resizingTableRef,
|
|
541
|
-
content: /*#__PURE__*/_react.default.createElement(
|
|
542
|
+
content: (0, _experiments.editorExperiment)('single_column_layouts', true) ? /*#__PURE__*/_react.default.createElement(_resizer.ResizerBreakoutModeLabel, {
|
|
543
|
+
layout: "full-width"
|
|
544
|
+
}) : /*#__PURE__*/_react.default.createElement(_TableFullWidthLabel.FullWidthDisplay, null),
|
|
542
545
|
alignX: 'center',
|
|
543
546
|
alignY: 'bottom',
|
|
544
547
|
stick: true,
|
|
@@ -9,6 +9,7 @@ import { toggleTable, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
|
9
9
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
10
10
|
import { getParentOfTypeCount, getPositionAfterTopParentNodeOfType } from '@atlaskit/editor-common/nesting';
|
|
11
11
|
import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
12
|
+
import { ResizerBreakoutModeLabel } from '@atlaskit/editor-common/resizer';
|
|
12
13
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
13
14
|
import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
|
|
14
15
|
import { hasParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -533,7 +534,9 @@ const tablePlugin = ({
|
|
|
533
534
|
api: api
|
|
534
535
|
}), ((options === null || options === void 0 ? void 0 : options.isTableScalingEnabled) || (options === null || options === void 0 ? void 0 : options.tableOptions.allowTableResizing) && options.isCommentEditor) && isTableResizing && widthToWidest && resizingTableLocalId && resizingTableRef && widthToWidest[resizingTableLocalId] && /*#__PURE__*/React.createElement(FloatingToolbarLabel, {
|
|
535
536
|
target: resizingTableRef,
|
|
536
|
-
content: /*#__PURE__*/React.createElement(
|
|
537
|
+
content: editorExperiment('single_column_layouts', true) ? /*#__PURE__*/React.createElement(ResizerBreakoutModeLabel, {
|
|
538
|
+
layout: "full-width"
|
|
539
|
+
}) : /*#__PURE__*/React.createElement(FullWidthDisplay, null),
|
|
537
540
|
alignX: 'center',
|
|
538
541
|
alignY: 'bottom',
|
|
539
542
|
stick: true,
|
package/dist/esm/tablePlugin.js
CHANGED
|
@@ -12,6 +12,7 @@ import { toggleTable, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
|
12
12
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
13
13
|
import { getParentOfTypeCount, getPositionAfterTopParentNodeOfType } from '@atlaskit/editor-common/nesting';
|
|
14
14
|
import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
15
|
+
import { ResizerBreakoutModeLabel } from '@atlaskit/editor-common/resizer';
|
|
15
16
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
16
17
|
import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
|
|
17
18
|
import { hasParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -529,7 +530,9 @@ var tablePlugin = function tablePlugin(_ref) {
|
|
|
529
530
|
api: api
|
|
530
531
|
}), ((options === null || options === void 0 ? void 0 : options.isTableScalingEnabled) || (options === null || options === void 0 ? void 0 : options.tableOptions.allowTableResizing) && options.isCommentEditor) && isTableResizing && widthToWidest && resizingTableLocalId && resizingTableRef && widthToWidest[resizingTableLocalId] && /*#__PURE__*/React.createElement(FloatingToolbarLabel, {
|
|
531
532
|
target: resizingTableRef,
|
|
532
|
-
content: /*#__PURE__*/React.createElement(
|
|
533
|
+
content: editorExperiment('single_column_layouts', true) ? /*#__PURE__*/React.createElement(ResizerBreakoutModeLabel, {
|
|
534
|
+
layout: "full-width"
|
|
535
|
+
}) : /*#__PURE__*/React.createElement(FullWidthDisplay, null),
|
|
533
536
|
alignX: 'center',
|
|
534
537
|
alignY: 'bottom',
|
|
535
538
|
stick: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.8.0",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
33
33
|
"@atlaskit/button": "^23.0.0",
|
|
34
34
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
35
|
-
"@atlaskit/editor-common": "^103.
|
|
35
|
+
"@atlaskit/editor-common": "^103.7.0",
|
|
36
36
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-accessibility-utils": "^2.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
55
55
|
"@atlaskit/primitives": "^14.4.0",
|
|
56
56
|
"@atlaskit/theme": "^18.0.0",
|
|
57
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
57
|
+
"@atlaskit/tmp-editor-statsig": "^4.8.0",
|
|
58
58
|
"@atlaskit/toggle": "^15.0.0",
|
|
59
59
|
"@atlaskit/tokens": "^4.7.0",
|
|
60
60
|
"@atlaskit/tooltip": "^20.0.0",
|
package/src/tablePlugin.tsx
CHANGED
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
getPositionAfterTopParentNodeOfType,
|
|
28
28
|
} from '@atlaskit/editor-common/nesting';
|
|
29
29
|
import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
30
|
+
import { ResizerBreakoutModeLabel } from '@atlaskit/editor-common/resizer';
|
|
30
31
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
31
32
|
import type { Command, EditorPlugin, GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
32
33
|
import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
|
|
@@ -679,7 +680,13 @@ const tablePlugin: TablePlugin = ({ config: options, api }) => {
|
|
|
679
680
|
widthToWidest[resizingTableLocalId] && (
|
|
680
681
|
<FloatingToolbarLabel
|
|
681
682
|
target={resizingTableRef}
|
|
682
|
-
content={
|
|
683
|
+
content={
|
|
684
|
+
editorExperiment('single_column_layouts', true) ? (
|
|
685
|
+
<ResizerBreakoutModeLabel layout="full-width" />
|
|
686
|
+
) : (
|
|
687
|
+
<FullWidthDisplay />
|
|
688
|
+
)
|
|
689
|
+
}
|
|
683
690
|
alignX={'center'}
|
|
684
691
|
alignY={'bottom'}
|
|
685
692
|
stick={true}
|