@atlaskit/editor-plugin-table 7.3.1 → 7.3.2
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,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 7.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#72081](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72081) [`4487160917d2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4487160917d2) - [ux] ED-22052: adds button type attribute to non atlaskit button instances
|
|
8
|
+
|
|
3
9
|
## 7.3.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -124,6 +124,7 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
|
|
|
124
124
|
}, [tableLocalId, direction, indexes, isRow, editorView.state.selection, hasMergedCells]);
|
|
125
125
|
var showDragMenuAnchorId = isRow ? 'drag-handle-button-row' : 'drag-handle-button-column';
|
|
126
126
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("button", {
|
|
127
|
+
type: "button",
|
|
127
128
|
className: _types.TableCssClassName.DRAG_HANDLE_BUTTON_CLICKABLE_ZONE,
|
|
128
129
|
"data-testid": "table-drag-handle-clickable-zone-button",
|
|
129
130
|
style: {
|
|
@@ -138,6 +139,7 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
|
|
|
138
139
|
},
|
|
139
140
|
onClick: onClick
|
|
140
141
|
}), /*#__PURE__*/_react.default.createElement("button", {
|
|
142
|
+
type: "button",
|
|
141
143
|
id: isDragMenuTarget ? showDragMenuAnchorId : undefined,
|
|
142
144
|
className: (0, _classnames2.default)(_types.TableCssClassName.DRAG_HANDLE_BUTTON_CONTAINER, appearance, (0, _defineProperty2.default)({}, _types.TableCssClassName.DRAG_HANDLE_DISABLED, hasMergedCells)),
|
|
143
145
|
ref: dragHandleDivRef,
|
|
@@ -114,6 +114,7 @@ const DragHandleComponent = ({
|
|
|
114
114
|
}, [tableLocalId, direction, indexes, isRow, editorView.state.selection, hasMergedCells]);
|
|
115
115
|
const showDragMenuAnchorId = isRow ? 'drag-handle-button-row' : 'drag-handle-button-column';
|
|
116
116
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("button", {
|
|
117
|
+
type: "button",
|
|
117
118
|
className: ClassName.DRAG_HANDLE_BUTTON_CLICKABLE_ZONE,
|
|
118
119
|
"data-testid": "table-drag-handle-clickable-zone-button",
|
|
119
120
|
style: {
|
|
@@ -128,6 +129,7 @@ const DragHandleComponent = ({
|
|
|
128
129
|
},
|
|
129
130
|
onClick: onClick
|
|
130
131
|
}), /*#__PURE__*/React.createElement("button", {
|
|
132
|
+
type: "button",
|
|
131
133
|
id: isDragMenuTarget ? showDragMenuAnchorId : undefined,
|
|
132
134
|
className: classnames(ClassName.DRAG_HANDLE_BUTTON_CONTAINER, appearance, {
|
|
133
135
|
[ClassName.DRAG_HANDLE_DISABLED]: hasMergedCells
|
|
@@ -114,6 +114,7 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
|
|
|
114
114
|
}, [tableLocalId, direction, indexes, isRow, editorView.state.selection, hasMergedCells]);
|
|
115
115
|
var showDragMenuAnchorId = isRow ? 'drag-handle-button-row' : 'drag-handle-button-column';
|
|
116
116
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("button", {
|
|
117
|
+
type: "button",
|
|
117
118
|
className: ClassName.DRAG_HANDLE_BUTTON_CLICKABLE_ZONE,
|
|
118
119
|
"data-testid": "table-drag-handle-clickable-zone-button",
|
|
119
120
|
style: {
|
|
@@ -128,6 +129,7 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
|
|
|
128
129
|
},
|
|
129
130
|
onClick: onClick
|
|
130
131
|
}), /*#__PURE__*/React.createElement("button", {
|
|
132
|
+
type: "button",
|
|
131
133
|
id: isDragMenuTarget ? showDragMenuAnchorId : undefined,
|
|
132
134
|
className: classnames(ClassName.DRAG_HANDLE_BUTTON_CONTAINER, appearance, _defineProperty({}, ClassName.DRAG_HANDLE_DISABLED, hasMergedCells)),
|
|
133
135
|
ref: dragHandleDivRef,
|
package/package.json
CHANGED
|
@@ -157,6 +157,7 @@ const DragHandleComponent = ({
|
|
|
157
157
|
return (
|
|
158
158
|
<>
|
|
159
159
|
<button
|
|
160
|
+
type="button"
|
|
160
161
|
className={ClassName.DRAG_HANDLE_BUTTON_CLICKABLE_ZONE}
|
|
161
162
|
data-testid="table-drag-handle-clickable-zone-button"
|
|
162
163
|
style={{
|
|
@@ -174,6 +175,7 @@ const DragHandleComponent = ({
|
|
|
174
175
|
onClick={onClick}
|
|
175
176
|
/>
|
|
176
177
|
<button
|
|
178
|
+
type="button"
|
|
177
179
|
id={isDragMenuTarget ? showDragMenuAnchorId : undefined}
|
|
178
180
|
className={classnames(
|
|
179
181
|
ClassName.DRAG_HANDLE_BUTTON_CONTAINER,
|