@atlaskit/editor-plugin-table 12.1.10 → 12.1.11
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 12.1.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#195804](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/195804)
|
|
8
|
+
[`c60fbe1e74541`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c60fbe1e74541) -
|
|
9
|
+
ED-28804: Cleanup FG platform_editor_r18_fix_selection_resync
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 12.1.10
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -165,13 +165,9 @@ var TableView = exports.default = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
165
165
|
var resolvedSelection = selectionBookmark.resolve(_this2.view.state.tr.doc);
|
|
166
166
|
// Don't set the selection if it's the same as the current selection.
|
|
167
167
|
if (!resolvedSelection.eq(_this2.view.state.selection)) {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
_this2.view.dispatch(tr);
|
|
172
|
-
} else {
|
|
173
|
-
_this2.view.dispatch(_this2.view.state.tr.setSelection(resolvedSelection));
|
|
174
|
-
}
|
|
168
|
+
var tr = _this2.view.state.tr.setSelection(resolvedSelection);
|
|
169
|
+
tr.setMeta('source', 'TableNodeView:_handleTableRef:selection-resync');
|
|
170
|
+
_this2.view.dispatch(tr);
|
|
175
171
|
}
|
|
176
172
|
}
|
|
177
173
|
});
|
|
@@ -137,13 +137,9 @@ export default class TableView extends ReactNodeView {
|
|
|
137
137
|
const resolvedSelection = selectionBookmark.resolve(this.view.state.tr.doc);
|
|
138
138
|
// Don't set the selection if it's the same as the current selection.
|
|
139
139
|
if (!resolvedSelection.eq(this.view.state.selection)) {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
this.view.dispatch(tr);
|
|
144
|
-
} else {
|
|
145
|
-
this.view.dispatch(this.view.state.tr.setSelection(resolvedSelection));
|
|
146
|
-
}
|
|
140
|
+
const tr = this.view.state.tr.setSelection(resolvedSelection);
|
|
141
|
+
tr.setMeta('source', 'TableNodeView:_handleTableRef:selection-resync');
|
|
142
|
+
this.view.dispatch(tr);
|
|
147
143
|
}
|
|
148
144
|
}
|
|
149
145
|
});
|
|
@@ -158,13 +158,9 @@ var TableView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
158
158
|
var resolvedSelection = selectionBookmark.resolve(_this2.view.state.tr.doc);
|
|
159
159
|
// Don't set the selection if it's the same as the current selection.
|
|
160
160
|
if (!resolvedSelection.eq(_this2.view.state.selection)) {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
_this2.view.dispatch(tr);
|
|
165
|
-
} else {
|
|
166
|
-
_this2.view.dispatch(_this2.view.state.tr.setSelection(resolvedSelection));
|
|
167
|
-
}
|
|
161
|
+
var tr = _this2.view.state.tr.setSelection(resolvedSelection);
|
|
162
|
+
tr.setMeta('source', 'TableNodeView:_handleTableRef:selection-resync');
|
|
163
|
+
_this2.view.dispatch(tr);
|
|
168
164
|
}
|
|
169
165
|
}
|
|
170
166
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.11",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/primitives": "^14.11.0",
|
|
55
55
|
"@atlaskit/react-ufo": "^4.1.0",
|
|
56
56
|
"@atlaskit/theme": "^19.0.0",
|
|
57
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
57
|
+
"@atlaskit/tmp-editor-statsig": "^9.23.0",
|
|
58
58
|
"@atlaskit/toggle": "^15.1.0",
|
|
59
59
|
"@atlaskit/tokens": "^6.0.0",
|
|
60
60
|
"@atlaskit/tooltip": "^20.4.0",
|
|
@@ -178,9 +178,6 @@
|
|
|
178
178
|
"platform_editor_table_drag_menu_flickers_fix": {
|
|
179
179
|
"type": "boolean"
|
|
180
180
|
},
|
|
181
|
-
"platform_editor_r18_fix_selection_resync": {
|
|
182
|
-
"type": "boolean"
|
|
183
|
-
},
|
|
184
181
|
"platform_editor_table_fw_numcol_overflow_fix": {
|
|
185
182
|
"type": "boolean"
|
|
186
183
|
},
|
package/src/nodeviews/table.tsx
CHANGED
|
@@ -207,13 +207,9 @@ export default class TableView extends ReactNodeView<Props> {
|
|
|
207
207
|
const resolvedSelection = selectionBookmark.resolve(this.view.state.tr.doc);
|
|
208
208
|
// Don't set the selection if it's the same as the current selection.
|
|
209
209
|
if (!resolvedSelection.eq(this.view.state.selection)) {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
this.view.dispatch(tr);
|
|
214
|
-
} else {
|
|
215
|
-
this.view.dispatch(this.view.state.tr.setSelection(resolvedSelection));
|
|
216
|
-
}
|
|
210
|
+
const tr = this.view.state.tr.setSelection(resolvedSelection);
|
|
211
|
+
tr.setMeta('source', 'TableNodeView:_handleTableRef:selection-resync');
|
|
212
|
+
this.view.dispatch(tr);
|
|
217
213
|
}
|
|
218
214
|
}
|
|
219
215
|
});
|