@atlaskit/editor-plugin-table 17.2.0 → 17.3.1
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,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 17.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`afb6165b36773`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/afb6165b36773) -
|
|
8
|
+
[ux] Add new gate for missing cell option menu fix for atlas"
|
|
9
|
+
|
|
10
|
+
## 17.3.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`fe3cbbba3c6d6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fe3cbbba3c6d6) -
|
|
15
|
+
[EDITOR-4877](https://hello.jira.atlassian.cloud/browse/EDITOR-4877) - remove
|
|
16
|
+
queryCommandSupported from TableComponent
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 17.2.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
|
@@ -353,15 +353,16 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
353
353
|
_iterator.f();
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
356
|
+
if (!(0, _expValEquals.expValEquals)('platform_editor_disable_query_command_supported', 'isEnabled', true)) {
|
|
357
|
+
if ('execCommand' in document) {
|
|
358
|
+
// Disable inline table editing and resizing controls in Firefox
|
|
359
|
+
// https://github.com/ProseMirror/prosemirror/issues/432
|
|
360
|
+
['enableObjectResizing', 'enableInlineTableEditing'].forEach(function (cmd) {
|
|
361
|
+
if (document.queryCommandSupported(cmd)) {
|
|
362
|
+
document.execCommand(cmd, false, 'false');
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
}
|
|
365
366
|
}
|
|
366
367
|
return _this;
|
|
367
368
|
}
|
|
@@ -927,7 +928,7 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
927
928
|
|
|
928
929
|
// // Update tableRef in plugin state when table is properly mounted
|
|
929
930
|
// // At this point, both table and wrapper are in DOM with correct parent-child relationship
|
|
930
|
-
if (_this5.table && _this5.props.view && (0, _expValEquals.expValEquals)('platform_editor_table_update_table_ref', 'isEnabled', true)) {
|
|
931
|
+
if (_this5.table && _this5.props.view && ((0, _expValEquals.expValEquals)('platform_editor_table_update_table_ref', 'isEnabled', true) || (0, _platformFeatureFlags.fg)('platform_editor_enable_table_update_ref_atlas'))) {
|
|
931
932
|
(0, _commands.setTableRef)(_this5.table)(_this5.props.view.state, _this5.props.view.dispatch);
|
|
932
933
|
}
|
|
933
934
|
}
|
|
@@ -335,15 +335,16 @@ class TableComponent extends React.Component {
|
|
|
335
335
|
});
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
338
|
+
if (!expValEquals('platform_editor_disable_query_command_supported', 'isEnabled', true)) {
|
|
339
|
+
if ('execCommand' in document) {
|
|
340
|
+
// Disable inline table editing and resizing controls in Firefox
|
|
341
|
+
// https://github.com/ProseMirror/prosemirror/issues/432
|
|
342
|
+
['enableObjectResizing', 'enableInlineTableEditing'].forEach(cmd => {
|
|
343
|
+
if (document.queryCommandSupported(cmd)) {
|
|
344
|
+
document.execCommand(cmd, false, 'false');
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
}
|
|
347
348
|
}
|
|
348
349
|
}
|
|
349
350
|
componentDidMount() {
|
|
@@ -892,7 +893,7 @@ class TableComponent extends React.Component {
|
|
|
892
893
|
|
|
893
894
|
// // Update tableRef in plugin state when table is properly mounted
|
|
894
895
|
// // At this point, both table and wrapper are in DOM with correct parent-child relationship
|
|
895
|
-
if (this.table && this.props.view && expValEquals('platform_editor_table_update_table_ref', 'isEnabled', true)) {
|
|
896
|
+
if (this.table && this.props.view && (expValEquals('platform_editor_table_update_table_ref', 'isEnabled', true) || fg('platform_editor_enable_table_update_ref_atlas'))) {
|
|
896
897
|
setTableRef(this.table)(this.props.view.state, this.props.view.dispatch);
|
|
897
898
|
}
|
|
898
899
|
}
|
|
@@ -347,15 +347,16 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
347
347
|
_iterator.f();
|
|
348
348
|
}
|
|
349
349
|
});
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
350
|
+
if (!expValEquals('platform_editor_disable_query_command_supported', 'isEnabled', true)) {
|
|
351
|
+
if ('execCommand' in document) {
|
|
352
|
+
// Disable inline table editing and resizing controls in Firefox
|
|
353
|
+
// https://github.com/ProseMirror/prosemirror/issues/432
|
|
354
|
+
['enableObjectResizing', 'enableInlineTableEditing'].forEach(function (cmd) {
|
|
355
|
+
if (document.queryCommandSupported(cmd)) {
|
|
356
|
+
document.execCommand(cmd, false, 'false');
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
}
|
|
359
360
|
}
|
|
360
361
|
return _this;
|
|
361
362
|
}
|
|
@@ -921,7 +922,7 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
921
922
|
|
|
922
923
|
// // Update tableRef in plugin state when table is properly mounted
|
|
923
924
|
// // At this point, both table and wrapper are in DOM with correct parent-child relationship
|
|
924
|
-
if (_this5.table && _this5.props.view && expValEquals('platform_editor_table_update_table_ref', 'isEnabled', true)) {
|
|
925
|
+
if (_this5.table && _this5.props.view && (expValEquals('platform_editor_table_update_table_ref', 'isEnabled', true) || fg('platform_editor_enable_table_update_ref_atlas'))) {
|
|
925
926
|
setTableRef(_this5.table)(_this5.props.view.state, _this5.props.view.dispatch);
|
|
926
927
|
}
|
|
927
928
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.3.1",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
58
58
|
"@atlaskit/primitives": "^17.1.0",
|
|
59
59
|
"@atlaskit/theme": "^21.0.0",
|
|
60
|
-
"@atlaskit/tmp-editor-statsig": "^17.
|
|
60
|
+
"@atlaskit/tmp-editor-statsig": "^17.9.0",
|
|
61
61
|
"@atlaskit/toggle": "^15.2.0",
|
|
62
62
|
"@atlaskit/tokens": "^10.1.0",
|
|
63
63
|
"@atlaskit/tooltip": "^20.14.0",
|
|
@@ -183,6 +183,9 @@
|
|
|
183
183
|
},
|
|
184
184
|
"platform_editor_table_fixed_column_width_prop": {
|
|
185
185
|
"type": "boolean"
|
|
186
|
+
},
|
|
187
|
+
"platform_editor_enable_table_update_ref_atlas": {
|
|
188
|
+
"type": "boolean"
|
|
186
189
|
}
|
|
187
190
|
}
|
|
188
191
|
}
|