@atlaskit/editor-plugin-table 7.16.15 → 7.16.16
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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 7.16.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#107213](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107213)
|
|
8
|
+
[`afae0e144fb2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/afae0e144fb2) -
|
|
9
|
+
[ux] Hide table selection control when blocks plugin enabled
|
|
10
|
+
|
|
3
11
|
## 7.16.15
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -98,7 +98,7 @@ var TableFloatingControls = exports.TableFloatingControls = function TableFloati
|
|
|
98
98
|
updateCellHoverLocation: updateCellHoverLocation,
|
|
99
99
|
stickyTop: stickyTop,
|
|
100
100
|
isDragAndDropEnabled: isDragAndDropEnabled
|
|
101
|
-
}) : null, tableActive && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isDragAndDropEnabled ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _platformFeatureFlags.getBooleanFF)('platform.editor.table.use-shared-state-hook') ? /*#__PURE__*/_react.default.createElement(_CornerControls.DragCornerControlsWithSelection, {
|
|
101
|
+
}) : null, tableActive && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isDragAndDropEnabled ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !(0, _platformFeatureFlags.getBooleanFF)('platform.editor.drag-and-drop_wmv9t') && ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.table.use-shared-state-hook') ? /*#__PURE__*/_react.default.createElement(_CornerControls.DragCornerControlsWithSelection, {
|
|
102
102
|
editorView: editorView,
|
|
103
103
|
tableRef: tableRef,
|
|
104
104
|
isInDanger: isInDanger,
|
|
@@ -109,7 +109,7 @@ var TableFloatingControls = exports.TableFloatingControls = function TableFloati
|
|
|
109
109
|
tableRef: tableRef,
|
|
110
110
|
isInDanger: isInDanger,
|
|
111
111
|
isResizing: isResizing
|
|
112
|
-
}), /*#__PURE__*/_react.default.createElement(_RowControls.DragControls, {
|
|
112
|
+
})), /*#__PURE__*/_react.default.createElement(_RowControls.DragControls, {
|
|
113
113
|
tableRef: tableRef,
|
|
114
114
|
tableNode: tableNode,
|
|
115
115
|
hoveredCell: hoveredCell,
|
|
@@ -95,7 +95,7 @@ export const TableFloatingControls = ({
|
|
|
95
95
|
updateCellHoverLocation: updateCellHoverLocation,
|
|
96
96
|
stickyTop: stickyTop,
|
|
97
97
|
isDragAndDropEnabled: isDragAndDropEnabled
|
|
98
|
-
}) : null, tableActive && /*#__PURE__*/React.createElement(React.Fragment, null, isDragAndDropEnabled ? /*#__PURE__*/React.createElement(React.Fragment, null, getBooleanFF('platform.editor.table.use-shared-state-hook') ? /*#__PURE__*/React.createElement(DragCornerControlsWithSelection, {
|
|
98
|
+
}) : null, tableActive && /*#__PURE__*/React.createElement(React.Fragment, null, isDragAndDropEnabled ? /*#__PURE__*/React.createElement(React.Fragment, null, !getBooleanFF('platform.editor.drag-and-drop_wmv9t') && (getBooleanFF('platform.editor.table.use-shared-state-hook') ? /*#__PURE__*/React.createElement(DragCornerControlsWithSelection, {
|
|
99
99
|
editorView: editorView,
|
|
100
100
|
tableRef: tableRef,
|
|
101
101
|
isInDanger: isInDanger,
|
|
@@ -106,7 +106,7 @@ export const TableFloatingControls = ({
|
|
|
106
106
|
tableRef: tableRef,
|
|
107
107
|
isInDanger: isInDanger,
|
|
108
108
|
isResizing: isResizing
|
|
109
|
-
}), /*#__PURE__*/React.createElement(DragControls, {
|
|
109
|
+
})), /*#__PURE__*/React.createElement(DragControls, {
|
|
110
110
|
tableRef: tableRef,
|
|
111
111
|
tableNode: tableNode,
|
|
112
112
|
hoveredCell: hoveredCell,
|
|
@@ -88,7 +88,7 @@ export var TableFloatingControls = function TableFloatingControls(_ref) {
|
|
|
88
88
|
updateCellHoverLocation: updateCellHoverLocation,
|
|
89
89
|
stickyTop: stickyTop,
|
|
90
90
|
isDragAndDropEnabled: isDragAndDropEnabled
|
|
91
|
-
}) : null, tableActive && /*#__PURE__*/React.createElement(React.Fragment, null, isDragAndDropEnabled ? /*#__PURE__*/React.createElement(React.Fragment, null, getBooleanFF('platform.editor.table.use-shared-state-hook') ? /*#__PURE__*/React.createElement(DragCornerControlsWithSelection, {
|
|
91
|
+
}) : null, tableActive && /*#__PURE__*/React.createElement(React.Fragment, null, isDragAndDropEnabled ? /*#__PURE__*/React.createElement(React.Fragment, null, !getBooleanFF('platform.editor.drag-and-drop_wmv9t') && (getBooleanFF('platform.editor.table.use-shared-state-hook') ? /*#__PURE__*/React.createElement(DragCornerControlsWithSelection, {
|
|
92
92
|
editorView: editorView,
|
|
93
93
|
tableRef: tableRef,
|
|
94
94
|
isInDanger: isInDanger,
|
|
@@ -99,7 +99,7 @@ export var TableFloatingControls = function TableFloatingControls(_ref) {
|
|
|
99
99
|
tableRef: tableRef,
|
|
100
100
|
isInDanger: isInDanger,
|
|
101
101
|
isResizing: isResizing
|
|
102
|
-
}), /*#__PURE__*/React.createElement(DragControls, {
|
|
102
|
+
})), /*#__PURE__*/React.createElement(DragControls, {
|
|
103
103
|
tableRef: tableRef,
|
|
104
104
|
tableNode: tableNode,
|
|
105
105
|
hoveredCell: hoveredCell,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "7.16.
|
|
3
|
+
"version": "7.16.16",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@atlaskit/pragmatic-drag-and-drop": "^1.1.0",
|
|
50
50
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^1.3.0",
|
|
51
51
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
52
|
-
"@atlaskit/primitives": "^6.
|
|
52
|
+
"@atlaskit/primitives": "^6.5.0",
|
|
53
53
|
"@atlaskit/theme": "^12.8.0",
|
|
54
54
|
"@atlaskit/toggle": "^13.1.0",
|
|
55
55
|
"@atlaskit/tokens": "^1.49.0",
|
|
@@ -143,6 +143,9 @@
|
|
|
143
143
|
},
|
|
144
144
|
"platform.editor.table.editor-num-col-style-changes": {
|
|
145
145
|
"type": "boolean"
|
|
146
|
+
},
|
|
147
|
+
"platform.editor.drag-and-drop_wmv9t": {
|
|
148
|
+
"type": "boolean"
|
|
146
149
|
}
|
|
147
150
|
}
|
|
148
151
|
}
|
|
@@ -149,22 +149,24 @@ export const TableFloatingControls = ({
|
|
|
149
149
|
<>
|
|
150
150
|
{isDragAndDropEnabled ? (
|
|
151
151
|
<>
|
|
152
|
-
{getBooleanFF('platform.editor.
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
152
|
+
{!getBooleanFF('platform.editor.drag-and-drop_wmv9t') &&
|
|
153
|
+
(getBooleanFF('platform.editor.table.use-shared-state-hook') ? (
|
|
154
|
+
<DragCornerControlsWithSelection
|
|
155
|
+
editorView={editorView}
|
|
156
|
+
tableRef={tableRef}
|
|
157
|
+
isInDanger={isInDanger}
|
|
158
|
+
isResizing={isResizing}
|
|
159
|
+
api={api}
|
|
160
|
+
/>
|
|
161
|
+
) : (
|
|
162
|
+
<DragCornerControls
|
|
163
|
+
editorView={editorView}
|
|
164
|
+
tableRef={tableRef}
|
|
165
|
+
isInDanger={isInDanger}
|
|
166
|
+
isResizing={isResizing}
|
|
167
|
+
/>
|
|
168
|
+
|
|
169
|
+
))}
|
|
168
170
|
<DragControls
|
|
169
171
|
tableRef={tableRef}
|
|
170
172
|
tableNode={tableNode}
|