@atlaskit/editor-plugin-block-controls 3.13.5 → 3.13.6

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-block-controls
2
2
 
3
+ ## 3.13.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#151503](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/151503)
8
+ [`cba8cfe03c049`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cba8cfe03c049) -
9
+ Fix event listener leak
10
+ - Updated dependencies
11
+
3
12
  ## 3.13.5
4
13
 
5
14
  ### Patch Changes
@@ -58,13 +58,18 @@ var dragHandleDecoration = exports.dragHandleDecoration = function dragHandleDec
58
58
  * However, the tooltip for nested drag handle is no long working.
59
59
  */
60
60
  if (newPos === undefined || !isTopLevelNode) {
61
- // This will also hide the tooltip.
62
- unbind = (0, _bindEventListener.bind)(element, {
63
- type: 'mouseover',
64
- listener: function listener(e) {
61
+ if ((0, _platformFeatureFlags.fg)('platform_editor_fix_widget_destroy')) {
62
+ element.onmouseover = function (e) {
65
63
  e.stopPropagation();
66
- }
67
- });
64
+ };
65
+ } else {
66
+ unbind = (0, _bindEventListener.bind)(element, {
67
+ type: 'mouseover',
68
+ listener: function listener(e) {
69
+ e.stopPropagation();
70
+ }
71
+ });
72
+ }
68
73
  }
69
74
 
70
75
  // There are times when global clear: "both" styles are applied to this decoration causing jumpiness
@@ -49,13 +49,18 @@ export const dragHandleDecoration = (api, formatMessage, pos, anchorName, nodeTy
49
49
  * However, the tooltip for nested drag handle is no long working.
50
50
  */
51
51
  if (newPos === undefined || !isTopLevelNode) {
52
- // This will also hide the tooltip.
53
- unbind = bind(element, {
54
- type: 'mouseover',
55
- listener: e => {
52
+ if (fg('platform_editor_fix_widget_destroy')) {
53
+ element.onmouseover = e => {
56
54
  e.stopPropagation();
57
- }
58
- });
55
+ };
56
+ } else {
57
+ unbind = bind(element, {
58
+ type: 'mouseover',
59
+ listener: e => {
60
+ e.stopPropagation();
61
+ }
62
+ });
63
+ }
59
64
  }
60
65
 
61
66
  // There are times when global clear: "both" styles are applied to this decoration causing jumpiness
@@ -54,6 +54,7 @@ export const DropTargetLayout = props => {
54
54
  }
55
55
  }
56
56
  const dropTargetStackLayoutHintStyle = css({
57
+ // jest warning: JSDOM version (22) doesn't support the new @container CSS rule
57
58
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
58
59
  [`@container layout-area (max-width:${layoutBreakpointWidth.MEDIUM - 1}px)`]: {
59
60
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
@@ -51,13 +51,18 @@ export var dragHandleDecoration = function dragHandleDecoration(api, formatMessa
51
51
  * However, the tooltip for nested drag handle is no long working.
52
52
  */
53
53
  if (newPos === undefined || !isTopLevelNode) {
54
- // This will also hide the tooltip.
55
- unbind = bind(element, {
56
- type: 'mouseover',
57
- listener: function listener(e) {
54
+ if (fg('platform_editor_fix_widget_destroy')) {
55
+ element.onmouseover = function (e) {
58
56
  e.stopPropagation();
59
- }
60
- });
57
+ };
58
+ } else {
59
+ unbind = bind(element, {
60
+ type: 'mouseover',
61
+ listener: function listener(e) {
62
+ e.stopPropagation();
63
+ }
64
+ });
65
+ }
61
66
  }
62
67
 
63
68
  // There are times when global clear: "both" styles are applied to this decoration causing jumpiness
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "3.13.5",
3
+ "version": "3.13.6",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -48,14 +48,14 @@
48
48
  "@atlaskit/editor-prosemirror": "7.0.0",
49
49
  "@atlaskit/editor-shared-styles": "^3.4.0",
50
50
  "@atlaskit/editor-tables": "^2.9.0",
51
- "@atlaskit/icon": "^25.7.0",
51
+ "@atlaskit/icon": "^25.8.0",
52
52
  "@atlaskit/platform-feature-flags": "^1.1.0",
53
53
  "@atlaskit/pragmatic-drag-and-drop": "^1.6.0",
54
54
  "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
55
55
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.1.0",
56
56
  "@atlaskit/primitives": "^14.7.0",
57
57
  "@atlaskit/theme": "^18.0.0",
58
- "@atlaskit/tmp-editor-statsig": "^4.17.0",
58
+ "@atlaskit/tmp-editor-statsig": "^4.19.0",
59
59
  "@atlaskit/tokens": "^4.8.0",
60
60
  "@atlaskit/tooltip": "^20.0.0",
61
61
  "@babel/runtime": "^7.0.0",