@atlaskit/editor-plugin-breakout 1.9.11 → 1.9.13
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
|
@@ -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 = ({
|
|
@@ -80,7 +84,7 @@ const LayoutButton = ({
|
|
|
80
84
|
const title = formatMessage(titleMessage);
|
|
81
85
|
const nextBreakoutMode = getNextBreakoutMode(breakoutMode);
|
|
82
86
|
const belowOtherPopupsZIndex = layers.layer() - 1;
|
|
83
|
-
|
|
87
|
+
const pluginState = getPluginState(state);
|
|
84
88
|
if (!pluginState) {
|
|
85
89
|
return null;
|
|
86
90
|
}
|
|
@@ -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, {
|
|
@@ -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.
|
|
3
|
+
"version": "1.9.13",
|
|
4
4
|
"description": "Breakout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
35
|
+
"@atlaskit/editor-common": "^98.0.0",
|
|
36
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": "^
|
|
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.
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^2.31.0",
|
|
46
46
|
"@atlaskit/tokens": "^2.5.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@emotion/react": "^11.7.1"
|