@atlaskit/editor-plugin-breakout 1.9.10 → 1.9.12

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-breakout
2
2
 
3
+ ## 1.9.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.9.11
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 1.9.10
4
16
 
5
17
  ### Patch Changes
@@ -103,7 +103,7 @@ var BreakoutViewOld = /*#__PURE__*/function () {
103
103
  });
104
104
  this.updateWidth(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$w2 = pluginInjectionApi.width) === null || _pluginInjectionApi$w2 === void 0 ? void 0 : _pluginInjectionApi$w2.sharedState.currentState());
105
105
  }
106
- (0, _createClass2.default)(BreakoutViewOld, [{
106
+ return (0, _createClass2.default)(BreakoutViewOld, [{
107
107
  key: "destroy",
108
108
  value:
109
109
  // NOTE: Lifecycle events doesn't work for mark NodeView. So currently this is a no-op.
@@ -113,7 +113,6 @@ var BreakoutViewOld = /*#__PURE__*/function () {
113
113
  (_this$unsubscribe = this.unsubscribe) === null || _this$unsubscribe === void 0 || _this$unsubscribe.call(this);
114
114
  }
115
115
  }]);
116
- return BreakoutViewOld;
117
116
  }();
118
117
  var BreakoutView = /*#__PURE__*/(0, _createClass2.default)(function BreakoutView(
119
118
  /**
@@ -51,8 +51,12 @@ function getBreakoutNodeElement(pluginState, selection, editorView) {
51
51
  return undefined;
52
52
  }
53
53
  if (selection instanceof _state.NodeSelection && (0, _isSupportedNode.isSupportedNodeForBreakout)(selection.node)) {
54
+ // Ignored via go/ees005
55
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
54
56
  return (0, _utils2.findDomRefAtPos)(selection.from, editorView.domAtPos.bind(editorView));
55
57
  }
58
+ // Ignored via go/ees005
59
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
56
60
  return (0, _utils2.findParentDomRefOfType)(pluginState.breakoutNode.node.type, editorView.domAtPos.bind(editorView))(selection);
57
61
  }
58
62
  var LayoutButton = function LayoutButton(_ref) {
@@ -91,6 +95,8 @@ var LayoutButton = function LayoutButton(_ref) {
91
95
  }
92
96
  var closestEl = element.querySelector(".".concat(_styles.BreakoutCssClassName.BREAKOUT_MARK_DOM));
93
97
  if (closestEl && closestEl.firstChild) {
98
+ // Ignored via go/ees005
99
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
94
100
  element = closestEl.firstChild;
95
101
  }
96
102
  return (0, _react2.jsx)(_ui.Popup, {
@@ -43,8 +43,12 @@ function getBreakoutNodeElement(pluginState, selection, editorView) {
43
43
  return undefined;
44
44
  }
45
45
  if (selection instanceof NodeSelection && isSupportedNodeForBreakout(selection.node)) {
46
+ // Ignored via go/ees005
47
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
46
48
  return findDomRefAtPos(selection.from, editorView.domAtPos.bind(editorView));
47
49
  }
50
+ // Ignored via go/ees005
51
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
48
52
  return findParentDomRefOfType(pluginState.breakoutNode.node.type, editorView.domAtPos.bind(editorView))(selection);
49
53
  }
50
54
  const LayoutButton = ({
@@ -90,6 +94,8 @@ const LayoutButton = ({
90
94
  }
91
95
  const closestEl = element.querySelector(`.${BreakoutCssClassName.BREAKOUT_MARK_DOM}`);
92
96
  if (closestEl && closestEl.firstChild) {
97
+ // Ignored via go/ees005
98
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
93
99
  element = closestEl.firstChild;
94
100
  }
95
101
  return jsx(Popup, {
@@ -96,7 +96,7 @@ var BreakoutViewOld = /*#__PURE__*/function () {
96
96
  });
97
97
  this.updateWidth(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$w2 = pluginInjectionApi.width) === null || _pluginInjectionApi$w2 === void 0 ? void 0 : _pluginInjectionApi$w2.sharedState.currentState());
98
98
  }
99
- _createClass(BreakoutViewOld, [{
99
+ return _createClass(BreakoutViewOld, [{
100
100
  key: "destroy",
101
101
  value:
102
102
  // NOTE: Lifecycle events doesn't work for mark NodeView. So currently this is a no-op.
@@ -106,7 +106,6 @@ var BreakoutViewOld = /*#__PURE__*/function () {
106
106
  (_this$unsubscribe = this.unsubscribe) === null || _this$unsubscribe === void 0 || _this$unsubscribe.call(this);
107
107
  }
108
108
  }]);
109
- return BreakoutViewOld;
110
109
  }();
111
110
  var BreakoutView = /*#__PURE__*/_createClass(function BreakoutView(
112
111
  /**
@@ -43,8 +43,12 @@ function getBreakoutNodeElement(pluginState, selection, editorView) {
43
43
  return undefined;
44
44
  }
45
45
  if (selection instanceof NodeSelection && isSupportedNodeForBreakout(selection.node)) {
46
+ // Ignored via go/ees005
47
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
46
48
  return findDomRefAtPos(selection.from, editorView.domAtPos.bind(editorView));
47
49
  }
50
+ // Ignored via go/ees005
51
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
48
52
  return findParentDomRefOfType(pluginState.breakoutNode.node.type, editorView.domAtPos.bind(editorView))(selection);
49
53
  }
50
54
  var LayoutButton = function LayoutButton(_ref) {
@@ -83,6 +87,8 @@ var LayoutButton = function LayoutButton(_ref) {
83
87
  }
84
88
  var closestEl = element.querySelector(".".concat(BreakoutCssClassName.BREAKOUT_MARK_DOM));
85
89
  if (closestEl && closestEl.firstChild) {
90
+ // Ignored via go/ees005
91
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
86
92
  element = closestEl.firstChild;
87
93
  }
88
94
  return jsx(Popup, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-breakout",
3
- "version": "1.9.10",
3
+ "version": "1.9.12",
4
4
  "description": "Breakout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,18 +32,18 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^46.1.0",
35
- "@atlaskit/editor-common": "^96.3.0",
36
- "@atlaskit/editor-plugin-block-controls": "^2.15.0",
35
+ "@atlaskit/editor-common": "^97.2.0",
36
+ "@atlaskit/editor-plugin-block-controls": "^2.16.0",
37
37
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
38
38
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
39
- "@atlaskit/editor-plugin-width": "^1.3.0",
39
+ "@atlaskit/editor-plugin-width": "^2.0.0",
40
40
  "@atlaskit/editor-prosemirror": "6.2.1",
41
41
  "@atlaskit/editor-shared-styles": "^3.2.0",
42
42
  "@atlaskit/icon": "^23.1.0",
43
43
  "@atlaskit/platform-feature-flags": "^0.3.0",
44
44
  "@atlaskit/theme": "^14.0.0",
45
- "@atlaskit/tmp-editor-statsig": "^2.25.0",
46
- "@atlaskit/tokens": "^2.4.0",
45
+ "@atlaskit/tmp-editor-statsig": "^2.29.0",
46
+ "@atlaskit/tokens": "^2.5.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "@emotion/react": "^11.7.1"
49
49
  },