@atlaskit/editor-plugin-panel 1.1.0 → 1.1.2

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-panel
2
2
 
3
+ ## 1.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#93748](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93748) [`16e695c28843`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/16e695c28843) - ED-22891: Fixed selection weirdness when panel has no icon
8
+
9
+ ## 1.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689) [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) - Updating adf-schema version to 35.10.0
14
+
3
15
  ## 1.1.0
4
16
 
5
17
  ### Minor Changes
@@ -79,6 +79,9 @@ var PanelNodeView = /*#__PURE__*/function () {
79
79
  key: "ignoreMutation",
80
80
  value: function ignoreMutation(mutation) {
81
81
  // ignore mutation if it caused by the icon.
82
+ if (!this.icon) {
83
+ return false;
84
+ }
82
85
  var isIcon = mutation.target === this.icon || mutation.target.parentNode === this.icon;
83
86
  // ignore mutation if it caused by the lazy load emoji inside icon.
84
87
  var isInsideIcon = this.icon.contains(mutation.target);
@@ -71,6 +71,9 @@ class PanelNodeView {
71
71
  }
72
72
  ignoreMutation(mutation) {
73
73
  // ignore mutation if it caused by the icon.
74
+ if (!this.icon) {
75
+ return false;
76
+ }
74
77
  const isIcon = mutation.target === this.icon || mutation.target.parentNode === this.icon;
75
78
  // ignore mutation if it caused by the lazy load emoji inside icon.
76
79
  const isInsideIcon = this.icon.contains(mutation.target);
@@ -72,6 +72,9 @@ var PanelNodeView = /*#__PURE__*/function () {
72
72
  key: "ignoreMutation",
73
73
  value: function ignoreMutation(mutation) {
74
74
  // ignore mutation if it caused by the icon.
75
+ if (!this.icon) {
76
+ return false;
77
+ }
75
78
  var isIcon = mutation.target === this.icon || mutation.target.parentNode === this.icon;
76
79
  // ignore mutation if it caused by the lazy load emoji inside icon.
77
80
  var isInsideIcon = this.icon.contains(mutation.target);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/adf-schema": "^35.9.2",
36
+ "@atlaskit/adf-schema": "^35.10.0",
37
37
  "@atlaskit/editor-common": "^78.31.0",
38
38
  "@atlaskit/editor-palette": "1.5.3",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.1.0",