@atlaskit/editor-plugin-table 17.2.0 → 17.3.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 17.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`fe3cbbba3c6d6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fe3cbbba3c6d6) -
8
+ [EDITOR-4877](https://hello.jira.atlassian.cloud/browse/EDITOR-4877) - remove
9
+ queryCommandSupported from TableComponent
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 17.2.0
4
16
 
5
17
  ### Minor Changes
@@ -353,15 +353,16 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
353
353
  _iterator.f();
354
354
  }
355
355
  });
356
-
357
- // Disable inline table editing and resizing controls in Firefox
358
- // https://github.com/ProseMirror/prosemirror/issues/432
359
- if ('execCommand' in document) {
360
- ['enableObjectResizing', 'enableInlineTableEditing'].forEach(function (cmd) {
361
- if (document.queryCommandSupported(cmd)) {
362
- document.execCommand(cmd, false, 'false');
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
  }
@@ -335,15 +335,16 @@ class TableComponent extends React.Component {
335
335
  });
336
336
  }
337
337
  });
338
-
339
- // Disable inline table editing and resizing controls in Firefox
340
- // https://github.com/ProseMirror/prosemirror/issues/432
341
- if ('execCommand' in document) {
342
- ['enableObjectResizing', 'enableInlineTableEditing'].forEach(cmd => {
343
- if (document.queryCommandSupported(cmd)) {
344
- document.execCommand(cmd, false, 'false');
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() {
@@ -347,15 +347,16 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
347
347
  _iterator.f();
348
348
  }
349
349
  });
350
-
351
- // Disable inline table editing and resizing controls in Firefox
352
- // https://github.com/ProseMirror/prosemirror/issues/432
353
- if ('execCommand' in document) {
354
- ['enableObjectResizing', 'enableInlineTableEditing'].forEach(function (cmd) {
355
- if (document.queryCommandSupported(cmd)) {
356
- document.execCommand(cmd, false, 'false');
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "17.2.0",
3
+ "version": "17.3.0",
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.5.0",
60
+ "@atlaskit/tmp-editor-statsig": "^17.7.0",
61
61
  "@atlaskit/toggle": "^15.2.0",
62
62
  "@atlaskit/tokens": "^10.1.0",
63
63
  "@atlaskit/tooltip": "^20.14.0",