@atlaskit/editor-plugin-breakout 8.0.11 → 8.0.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 +12 -0
- package/dist/cjs/ui/GuidelineLabel.js +3 -1
- package/dist/cjs/ui/LayoutButton.js +6 -2
- package/dist/es2019/ui/GuidelineLabel.js +3 -1
- package/dist/es2019/ui/LayoutButton.js +6 -2
- package/dist/esm/ui/GuidelineLabel.js +3 -1
- package/dist/esm/ui/LayoutButton.js +6 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -31,7 +31,9 @@ var GuidelineLabel = exports.GuidelineLabel = function GuidelineLabel(_ref) {
|
|
|
31
31
|
}
|
|
32
32
|
var element = (0, _utils.findDomRefAtPos)(breakoutNode.pos, editorView.domAtPos.bind(editorView));
|
|
33
33
|
return /*#__PURE__*/_react.default.createElement(_ui.Popup, {
|
|
34
|
-
target: element && element instanceof HTMLElement ? element : undefined
|
|
34
|
+
target: element && element instanceof HTMLElement ? element : undefined
|
|
35
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
36
|
+
,
|
|
35
37
|
offset: [0, 10],
|
|
36
38
|
alignY: "bottom",
|
|
37
39
|
alignX: "center",
|
|
@@ -152,7 +152,9 @@ var LayoutButton = function LayoutButton(_ref) {
|
|
|
152
152
|
}
|
|
153
153
|
return (0, _react2.jsx)(_ui.Popup, {
|
|
154
154
|
ariaLabel: title,
|
|
155
|
-
target: element
|
|
155
|
+
target: element
|
|
156
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
157
|
+
,
|
|
156
158
|
offset: [5, 0],
|
|
157
159
|
alignY: "start",
|
|
158
160
|
alignX: "end",
|
|
@@ -166,7 +168,9 @@ var LayoutButton = function LayoutButton(_ref) {
|
|
|
166
168
|
css: [toolbarButtonWrapperStyles, (0, _experiments.editorExperiment)('platform_editor_preview_panel_responsiveness', true) && toolbarButtonNarrowScreenStyles]
|
|
167
169
|
}, (0, _react2.jsx)(_uiMenu.ToolbarButton, {
|
|
168
170
|
title: title,
|
|
169
|
-
testId: titleMessage.id
|
|
171
|
+
testId: titleMessage.id
|
|
172
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
173
|
+
,
|
|
170
174
|
onClick: function onClick() {
|
|
171
175
|
return handleClick(nextBreakoutMode);
|
|
172
176
|
},
|
|
@@ -25,7 +25,9 @@ export const GuidelineLabel = ({
|
|
|
25
25
|
}
|
|
26
26
|
const element = findDomRefAtPos(breakoutNode.pos, editorView.domAtPos.bind(editorView));
|
|
27
27
|
return /*#__PURE__*/React.createElement(Popup, {
|
|
28
|
-
target: element && element instanceof HTMLElement ? element : undefined
|
|
28
|
+
target: element && element instanceof HTMLElement ? element : undefined
|
|
29
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
30
|
+
,
|
|
29
31
|
offset: [0, 10],
|
|
30
32
|
alignY: "bottom",
|
|
31
33
|
alignX: "center",
|
|
@@ -150,7 +150,9 @@ const LayoutButton = ({
|
|
|
150
150
|
}
|
|
151
151
|
return jsx(Popup, {
|
|
152
152
|
ariaLabel: title,
|
|
153
|
-
target: element
|
|
153
|
+
target: element
|
|
154
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
155
|
+
,
|
|
154
156
|
offset: [5, 0],
|
|
155
157
|
alignY: "start",
|
|
156
158
|
alignX: "end",
|
|
@@ -164,7 +166,9 @@ const LayoutButton = ({
|
|
|
164
166
|
css: [toolbarButtonWrapperStyles, editorExperiment('platform_editor_preview_panel_responsiveness', true) && toolbarButtonNarrowScreenStyles]
|
|
165
167
|
}, jsx(ToolbarButton, {
|
|
166
168
|
title: title,
|
|
167
|
-
testId: titleMessage.id
|
|
169
|
+
testId: titleMessage.id
|
|
170
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
171
|
+
,
|
|
168
172
|
onClick: () => handleClick(nextBreakoutMode),
|
|
169
173
|
iconBefore: breakoutMode === 'full-width' ? jsx(ShrinkHorizontalIcon, {
|
|
170
174
|
label: title,
|
|
@@ -24,7 +24,9 @@ export var GuidelineLabel = function GuidelineLabel(_ref) {
|
|
|
24
24
|
}
|
|
25
25
|
var element = findDomRefAtPos(breakoutNode.pos, editorView.domAtPos.bind(editorView));
|
|
26
26
|
return /*#__PURE__*/React.createElement(Popup, {
|
|
27
|
-
target: element && element instanceof HTMLElement ? element : undefined
|
|
27
|
+
target: element && element instanceof HTMLElement ? element : undefined
|
|
28
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
29
|
+
,
|
|
28
30
|
offset: [0, 10],
|
|
29
31
|
alignY: "bottom",
|
|
30
32
|
alignX: "center",
|
|
@@ -144,7 +144,9 @@ var LayoutButton = function LayoutButton(_ref) {
|
|
|
144
144
|
}
|
|
145
145
|
return jsx(Popup, {
|
|
146
146
|
ariaLabel: title,
|
|
147
|
-
target: element
|
|
147
|
+
target: element
|
|
148
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
149
|
+
,
|
|
148
150
|
offset: [5, 0],
|
|
149
151
|
alignY: "start",
|
|
150
152
|
alignX: "end",
|
|
@@ -158,7 +160,9 @@ var LayoutButton = function LayoutButton(_ref) {
|
|
|
158
160
|
css: [toolbarButtonWrapperStyles, editorExperiment('platform_editor_preview_panel_responsiveness', true) && toolbarButtonNarrowScreenStyles]
|
|
159
161
|
}, jsx(ToolbarButton, {
|
|
160
162
|
title: title,
|
|
161
|
-
testId: titleMessage.id
|
|
163
|
+
testId: titleMessage.id
|
|
164
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
165
|
+
,
|
|
162
166
|
onClick: function onClick() {
|
|
163
167
|
return handleClick(nextBreakoutMode);
|
|
164
168
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-breakout",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.13",
|
|
4
4
|
"description": "Breakout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
45
45
|
"@atlaskit/theme": "^22.0.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^44.0.0",
|
|
47
47
|
"@atlaskit/tokens": "^11.1.0",
|
|
48
48
|
"@atlaskit/tooltip": "^21.0.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|