@atlaskit/editor-plugin-table 15.0.0 → 15.0.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,15 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 15.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`199b1024b2b0e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/199b1024b2b0e) -
8
+ Remove hover decoration on table unmount, to fix issues of delete decorations persisting
9
+ - [`99d1f21e15dcc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/99d1f21e15dcc) -
10
+ clean up platform_editor_nodevisibility_resize_sync
11
+ - Updated dependencies
12
+
3
13
  ## 15.0.0
4
14
 
5
15
  ### Patch Changes
@@ -452,9 +452,9 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
452
452
  element: this.table,
453
453
  onFirstVisible: function onFirstVisible() {
454
454
  _this2.initialiseEventListenersAfterMount();
455
- // force width calculcation - missed resize event under firefox when
455
+ // force width calculation - missed resize event under firefox when
456
456
  // table is nested within bodied extension
457
- if (_this2.wrapper && (0, _platformFeatureFlags.fg)('platform_editor_nodevisibility_resize_sync')) {
457
+ if (_this2.wrapper) {
458
458
  var _this2$wrapper;
459
459
  _this2.wrapperWidth = (_this2$wrapper = _this2.wrapper) === null || _this2$wrapper === void 0 ? void 0 : _this2$wrapper.clientWidth;
460
460
  }
@@ -571,7 +571,9 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
571
571
  allowColumnResizing = _this$props8.allowColumnResizing,
572
572
  allowTableResizing = _this$props8.allowTableResizing,
573
573
  eventDispatcher = _this$props8.eventDispatcher,
574
- isDragAndDropEnabled = _this$props8.isDragAndDropEnabled;
574
+ isDragAndDropEnabled = _this$props8.isDragAndDropEnabled,
575
+ view = _this$props8.view,
576
+ isInDanger = _this$props8.isInDanger;
575
577
  if (this.wrapper && !isIE11) {
576
578
  // Ignored via go/ees005
577
579
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
@@ -596,6 +598,11 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
596
598
  this.handleWindowResizeDebounced.cancel();
597
599
  }
598
600
  this.handleWindowResizeNewDebounced.cancel();
601
+ if ((0, _expValEquals.expValEquals)('platform_editor_table_drag_handle_hover', 'isEnabled', true)) {
602
+ if (isInDanger) {
603
+ (0, _commands.clearHoverSelection)()(view.state, view.dispatch);
604
+ }
605
+ }
599
606
  if (!allowTableResizing && allowColumnResizing) {
600
607
  // Ignored via go/ees005
601
608
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
@@ -439,9 +439,9 @@ class TableComponent extends React.Component {
439
439
  element: this.table,
440
440
  onFirstVisible: () => {
441
441
  this.initialiseEventListenersAfterMount();
442
- // force width calculcation - missed resize event under firefox when
442
+ // force width calculation - missed resize event under firefox when
443
443
  // table is nested within bodied extension
444
- if (this.wrapper && fg('platform_editor_nodevisibility_resize_sync')) {
444
+ if (this.wrapper) {
445
445
  var _this$wrapper;
446
446
  this.wrapperWidth = (_this$wrapper = this.wrapper) === null || _this$wrapper === void 0 ? void 0 : _this$wrapper.clientWidth;
447
447
  }
@@ -543,7 +543,9 @@ class TableComponent extends React.Component {
543
543
  allowColumnResizing,
544
544
  allowTableResizing,
545
545
  eventDispatcher,
546
- isDragAndDropEnabled
546
+ isDragAndDropEnabled,
547
+ view,
548
+ isInDanger
547
549
  } = this.props;
548
550
  if (this.wrapper && !isIE11) {
549
551
  // Ignored via go/ees005
@@ -569,6 +571,11 @@ class TableComponent extends React.Component {
569
571
  this.handleWindowResizeDebounced.cancel();
570
572
  }
571
573
  this.handleWindowResizeNewDebounced.cancel();
574
+ if (expValEquals('platform_editor_table_drag_handle_hover', 'isEnabled', true)) {
575
+ if (isInDanger) {
576
+ clearHoverSelection()(view.state, view.dispatch);
577
+ }
578
+ }
572
579
  if (!allowTableResizing && allowColumnResizing) {
573
580
  // Ignored via go/ees005
574
581
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
@@ -446,9 +446,9 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
446
446
  element: this.table,
447
447
  onFirstVisible: function onFirstVisible() {
448
448
  _this2.initialiseEventListenersAfterMount();
449
- // force width calculcation - missed resize event under firefox when
449
+ // force width calculation - missed resize event under firefox when
450
450
  // table is nested within bodied extension
451
- if (_this2.wrapper && fg('platform_editor_nodevisibility_resize_sync')) {
451
+ if (_this2.wrapper) {
452
452
  var _this2$wrapper;
453
453
  _this2.wrapperWidth = (_this2$wrapper = _this2.wrapper) === null || _this2$wrapper === void 0 ? void 0 : _this2$wrapper.clientWidth;
454
454
  }
@@ -565,7 +565,9 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
565
565
  allowColumnResizing = _this$props8.allowColumnResizing,
566
566
  allowTableResizing = _this$props8.allowTableResizing,
567
567
  eventDispatcher = _this$props8.eventDispatcher,
568
- isDragAndDropEnabled = _this$props8.isDragAndDropEnabled;
568
+ isDragAndDropEnabled = _this$props8.isDragAndDropEnabled,
569
+ view = _this$props8.view,
570
+ isInDanger = _this$props8.isInDanger;
569
571
  if (this.wrapper && !isIE11) {
570
572
  // Ignored via go/ees005
571
573
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
@@ -590,6 +592,11 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
590
592
  this.handleWindowResizeDebounced.cancel();
591
593
  }
592
594
  this.handleWindowResizeNewDebounced.cancel();
595
+ if (expValEquals('platform_editor_table_drag_handle_hover', 'isEnabled', true)) {
596
+ if (isInDanger) {
597
+ clearHoverSelection()(view.state, view.dispatch);
598
+ }
599
+ }
593
600
  if (!allowTableResizing && allowColumnResizing) {
594
601
  // Ignored via go/ees005
595
602
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "15.0.0",
3
+ "version": "15.0.1",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -57,12 +57,12 @@
57
57
  "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
58
58
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
59
59
  "@atlaskit/primitives": "^14.15.0",
60
- "@atlaskit/react-ufo": "^4.10.0",
60
+ "@atlaskit/react-ufo": "^4.11.0",
61
61
  "@atlaskit/theme": "^21.0.0",
62
- "@atlaskit/tmp-editor-statsig": "^12.31.0",
62
+ "@atlaskit/tmp-editor-statsig": "^12.32.0",
63
63
  "@atlaskit/toggle": "^15.1.0",
64
- "@atlaskit/tokens": "^6.3.0",
65
- "@atlaskit/tooltip": "^20.4.0",
64
+ "@atlaskit/tokens": "^6.4.0",
65
+ "@atlaskit/tooltip": "^20.5.0",
66
66
  "@babel/runtime": "^7.0.0",
67
67
  "@emotion/react": "^11.7.1",
68
68
  "classnames": "^2.2.5",
@@ -72,7 +72,7 @@
72
72
  "uuid": "^3.1.0"
73
73
  },
74
74
  "peerDependencies": {
75
- "@atlaskit/editor-common": "^110.0.0",
75
+ "@atlaskit/editor-common": "^110.2.0",
76
76
  "react": "^18.2.0",
77
77
  "react-dom": "^18.2.0",
78
78
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -154,9 +154,6 @@
154
154
  "platform_editor_table_fw_numcol_overflow_fix": {
155
155
  "type": "boolean"
156
156
  },
157
- "platform_editor_nodevisibility_resize_sync": {
158
- "type": "boolean"
159
- },
160
157
  "platform_editor_adf_with_localid": {
161
158
  "type": "boolean"
162
159
  }