@atlaskit/editor-plugin-breakout 18.0.2 → 18.0.4
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 +16 -0
- package/dist/cjs/pm-plugins/get-guidelines.js +1 -4
- package/dist/cjs/pm-plugins/handle-key-down.js +6 -17
- package/dist/cjs/pm-plugins/resizing-plugin.js +2 -2
- package/dist/es2019/pm-plugins/get-guidelines.js +1 -4
- package/dist/es2019/pm-plugins/handle-key-down.js +6 -17
- package/dist/es2019/pm-plugins/resizing-plugin.js +2 -2
- package/dist/esm/pm-plugins/get-guidelines.js +1 -4
- package/dist/esm/pm-plugins/handle-key-down.js +6 -17
- package/dist/esm/pm-plugins/resizing-plugin.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-breakout
|
|
2
2
|
|
|
3
|
+
## 18.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9f005c4fabff9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f005c4fabff9) -
|
|
8
|
+
Clean up experiment `platform_editor_sync_block_guideline_bugfix`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 18.0.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`a0b5ab4d98338`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a0b5ab4d98338) -
|
|
16
|
+
[FFCLEANUP-147868] clean up experiment `platform_editor_lovability_breakout_resizing_fixes`
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 18.0.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -8,7 +8,6 @@ exports.getGuidelines = exports.GUIDELINE_KEYS = void 0;
|
|
|
8
8
|
var _memoizeOne = _interopRequireDefault(require("memoize-one"));
|
|
9
9
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
10
10
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
11
|
-
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
12
11
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
13
12
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
14
13
|
var WIDTHS = {
|
|
@@ -50,9 +49,7 @@ var getGuidelines = exports.getGuidelines = (0, _memoizeOne.default)(function (i
|
|
|
50
49
|
break;
|
|
51
50
|
case 'bodiedSyncBlock':
|
|
52
51
|
case 'syncBlock':
|
|
53
|
-
|
|
54
|
-
innerPaddingOffset = SYNC_BLOCK_PADDING;
|
|
55
|
-
}
|
|
52
|
+
innerPaddingOffset = SYNC_BLOCK_PADDING;
|
|
56
53
|
break;
|
|
57
54
|
case 'extension':
|
|
58
55
|
case 'multiBodiedExtension':
|
|
@@ -7,7 +7,6 @@ exports.handleKeyDown = void 0;
|
|
|
7
7
|
var _browser = require("@atlaskit/editor-common/browser");
|
|
8
8
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
9
9
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
10
|
-
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
11
10
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
12
11
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
13
12
|
var _setBreakoutWidth = require("../editor-commands/set-breakout-width");
|
|
@@ -62,22 +61,12 @@ var handleKeyDown = exports.handleKeyDown = function handleKeyDown(api) {
|
|
|
62
61
|
});
|
|
63
62
|
if (breakoutMark) {
|
|
64
63
|
var step = event.code === 'BracketRight' ? KEYBOARD_RESIZE_STEP : -KEYBOARD_RESIZE_STEP;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
view.focus();
|
|
72
|
-
}
|
|
73
|
-
} else {
|
|
74
|
-
var _newWidth = breakoutMark.attrs.width + step;
|
|
75
|
-
if (_newWidth < _editorSharedStyles.akEditorFullWidthLayoutWidth && _newWidth > _editorSharedStyles.akEditorDefaultLayoutWidth) {
|
|
76
|
-
var _api$editorViewMode2;
|
|
77
|
-
var _isEditMode = (api === null || api === void 0 || (_api$editorViewMode2 = api.editorViewMode) === null || _api$editorViewMode2 === void 0 || (_api$editorViewMode2 = _api$editorViewMode2.sharedState.currentState()) === null || _api$editorViewMode2 === void 0 ? void 0 : _api$editorViewMode2.mode) === 'edit';
|
|
78
|
-
(0, _setBreakoutWidth.setBreakoutWidth)(breakoutMark.attrs.width + step, breakoutMark.attrs.mode, pos, _isEditMode)(view.state, view.dispatch);
|
|
79
|
-
view.focus();
|
|
80
|
-
}
|
|
64
|
+
var newWidth = getKeyboardResizeWidth(breakoutMark.attrs.width, step, api);
|
|
65
|
+
if (newWidth !== breakoutMark.attrs.width) {
|
|
66
|
+
var _api$editorViewMode;
|
|
67
|
+
var isEditMode = (api === null || api === void 0 || (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 || (_api$editorViewMode = _api$editorViewMode.sharedState.currentState()) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.mode) === 'edit';
|
|
68
|
+
(0, _setBreakoutWidth.setBreakoutWidth)(newWidth, breakoutMark.attrs.mode, pos, isEditMode)(view.state, view.dispatch);
|
|
69
|
+
view.focus();
|
|
81
70
|
}
|
|
82
71
|
return true;
|
|
83
72
|
}
|
|
@@ -163,7 +163,7 @@ var createResizingPlugin = exports.createResizingPlugin = function createResizin
|
|
|
163
163
|
return;
|
|
164
164
|
}
|
|
165
165
|
var isFullWidthEnabled = !((options === null || options === void 0 ? void 0 : options.allowBreakoutButton) === true);
|
|
166
|
-
var isMaxWidthEnabled = (options === null || options === void 0 ? void 0 : options.appearance) === 'max' && (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true)
|
|
166
|
+
var isMaxWidthEnabled = (options === null || options === void 0 ? void 0 : options.appearance) === 'max' && (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true);
|
|
167
167
|
var state = editorView.state;
|
|
168
168
|
var breakoutResizableNodes = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_lovability_resize_extensions') ? (0, _utils.getBreakoutResizableNodeTypesNew)(state.schema) : (0, _utils.getBreakoutResizableNodeTypes)(state.schema, isRuleAndPanelResizingEnabled);
|
|
169
169
|
var newTr = state.tr;
|
|
@@ -215,7 +215,7 @@ var createResizingPlugin = exports.createResizingPlugin = function createResizin
|
|
|
215
215
|
var isRuleAndPanelResizingEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true);
|
|
216
216
|
var breakoutResizableNodes = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_lovability_resize_extensions') ? (0, _utils.getBreakoutResizableNodeTypesNew)(newState.schema) : (0, _utils.getBreakoutResizableNodeTypes)(newState.schema, isRuleAndPanelResizingEnabled);
|
|
217
217
|
var isFullWidthEnabled = !((options === null || options === void 0 ? void 0 : options.allowBreakoutButton) === true);
|
|
218
|
-
var isMaxWidthEnabled = (options === null || options === void 0 ? void 0 : options.appearance) === 'max' && (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true)
|
|
218
|
+
var isMaxWidthEnabled = (options === null || options === void 0 ? void 0 : options.appearance) === 'max' && (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true);
|
|
219
219
|
var isPageLoadNormalizationEnabled = (0, _expValEquals.expValEquals)('platform_editor_add_breakout_marks_on_page_load', 'isEnabled', true) || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_lovability_resize_extensions');
|
|
220
220
|
if (!isPageLoadNormalizationEnabled && !isRuleAndPanelResizingEnabled && (0, _document.isReplaceDocOperation)(transactions, oldState)) {
|
|
221
221
|
newState.doc.forEach(function (node, pos) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
|
2
2
|
import { EXPAND_CONTAINER_PADDING, LAYOUT_COLUMN_PADDING, resizerHandleThumbWidth } from '@atlaskit/editor-common/styles';
|
|
3
3
|
import { akEditorGutterPaddingDynamic, akEditorGutterPadding, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout, akEditorCalculatedWideLayoutWidth, akEditorFullWidthLayoutWidth, akEditorDefaultLayoutWidth, akEditorMaxLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
5
4
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
7
6
|
const WIDTHS = {
|
|
@@ -40,9 +39,7 @@ export const getGuidelines = memoizeOne((isResizing, newWidth, getEditorWidth, n
|
|
|
40
39
|
break;
|
|
41
40
|
case 'bodiedSyncBlock':
|
|
42
41
|
case 'syncBlock':
|
|
43
|
-
|
|
44
|
-
innerPaddingOffset = SYNC_BLOCK_PADDING;
|
|
45
|
-
}
|
|
42
|
+
innerPaddingOffset = SYNC_BLOCK_PADDING;
|
|
46
43
|
break;
|
|
47
44
|
case 'extension':
|
|
48
45
|
case 'multiBodiedExtension':
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
2
2
|
import { getBreakoutResizableNodeTypes, getBreakoutResizableNodeTypesNew } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
5
4
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
6
|
import { setBreakoutWidth } from '../editor-commands/set-breakout-width';
|
|
@@ -55,22 +54,12 @@ export const handleKeyDown = api => (view, event) => {
|
|
|
55
54
|
const breakoutMark = node === null || node === void 0 ? void 0 : node.marks.find(mark => mark.type.name === 'breakout');
|
|
56
55
|
if (breakoutMark) {
|
|
57
56
|
const step = event.code === 'BracketRight' ? KEYBOARD_RESIZE_STEP : -KEYBOARD_RESIZE_STEP;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
view.focus();
|
|
65
|
-
}
|
|
66
|
-
} else {
|
|
67
|
-
const newWidth = breakoutMark.attrs.width + step;
|
|
68
|
-
if (newWidth < akEditorFullWidthLayoutWidth && newWidth > akEditorDefaultLayoutWidth) {
|
|
69
|
-
var _api$editorViewMode2, _api$editorViewMode2$;
|
|
70
|
-
const isEditMode = (api === null || api === void 0 ? void 0 : (_api$editorViewMode2 = api.editorViewMode) === null || _api$editorViewMode2 === void 0 ? void 0 : (_api$editorViewMode2$ = _api$editorViewMode2.sharedState.currentState()) === null || _api$editorViewMode2$ === void 0 ? void 0 : _api$editorViewMode2$.mode) === 'edit';
|
|
71
|
-
setBreakoutWidth(breakoutMark.attrs.width + step, breakoutMark.attrs.mode, pos, isEditMode)(view.state, view.dispatch);
|
|
72
|
-
view.focus();
|
|
73
|
-
}
|
|
57
|
+
const newWidth = getKeyboardResizeWidth(breakoutMark.attrs.width, step, api);
|
|
58
|
+
if (newWidth !== breakoutMark.attrs.width) {
|
|
59
|
+
var _api$editorViewMode, _api$editorViewMode$s;
|
|
60
|
+
const isEditMode = (api === null || api === void 0 ? void 0 : (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 ? void 0 : (_api$editorViewMode$s = _api$editorViewMode.sharedState.currentState()) === null || _api$editorViewMode$s === void 0 ? void 0 : _api$editorViewMode$s.mode) === 'edit';
|
|
61
|
+
setBreakoutWidth(newWidth, breakoutMark.attrs.mode, pos, isEditMode)(view.state, view.dispatch);
|
|
62
|
+
view.focus();
|
|
74
63
|
}
|
|
75
64
|
return true;
|
|
76
65
|
}
|
|
@@ -159,7 +159,7 @@ export const createResizingPlugin = (api, getIntl, nodeViewPortalProviderAPI, op
|
|
|
159
159
|
return;
|
|
160
160
|
}
|
|
161
161
|
const isFullWidthEnabled = !((options === null || options === void 0 ? void 0 : options.allowBreakoutButton) === true);
|
|
162
|
-
const isMaxWidthEnabled = (options === null || options === void 0 ? void 0 : options.appearance) === 'max' && expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)
|
|
162
|
+
const isMaxWidthEnabled = (options === null || options === void 0 ? void 0 : options.appearance) === 'max' && expValEquals('confluence_max_width_content_appearance', 'isEnabled', true);
|
|
163
163
|
const {
|
|
164
164
|
state
|
|
165
165
|
} = editorView;
|
|
@@ -215,7 +215,7 @@ export const createResizingPlugin = (api, getIntl, nodeViewPortalProviderAPI, op
|
|
|
215
215
|
const isRuleAndPanelResizingEnabled = expValEquals('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true);
|
|
216
216
|
const breakoutResizableNodes = isExperimentEnabled('platform_editor_lovability_resize_extensions') ? getBreakoutResizableNodeTypesNew(newState.schema) : getBreakoutResizableNodeTypes(newState.schema, isRuleAndPanelResizingEnabled);
|
|
217
217
|
const isFullWidthEnabled = !((options === null || options === void 0 ? void 0 : options.allowBreakoutButton) === true);
|
|
218
|
-
const isMaxWidthEnabled = (options === null || options === void 0 ? void 0 : options.appearance) === 'max' && expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)
|
|
218
|
+
const isMaxWidthEnabled = (options === null || options === void 0 ? void 0 : options.appearance) === 'max' && expValEquals('confluence_max_width_content_appearance', 'isEnabled', true);
|
|
219
219
|
const isPageLoadNormalizationEnabled = expValEquals('platform_editor_add_breakout_marks_on_page_load', 'isEnabled', true) || isExperimentEnabled('platform_editor_lovability_resize_extensions');
|
|
220
220
|
if (!isPageLoadNormalizationEnabled && !isRuleAndPanelResizingEnabled && isReplaceDocOperation(transactions, oldState)) {
|
|
221
221
|
newState.doc.forEach((node, pos) => {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
|
2
2
|
import { EXPAND_CONTAINER_PADDING, LAYOUT_COLUMN_PADDING, resizerHandleThumbWidth } from '@atlaskit/editor-common/styles';
|
|
3
3
|
import { akEditorGutterPaddingDynamic, akEditorGutterPadding, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout, akEditorCalculatedWideLayoutWidth, akEditorFullWidthLayoutWidth, akEditorDefaultLayoutWidth, akEditorMaxLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
5
4
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
7
6
|
var WIDTHS = {
|
|
@@ -43,9 +42,7 @@ export var getGuidelines = memoizeOne(function (isResizing, newWidth, getEditorW
|
|
|
43
42
|
break;
|
|
44
43
|
case 'bodiedSyncBlock':
|
|
45
44
|
case 'syncBlock':
|
|
46
|
-
|
|
47
|
-
innerPaddingOffset = SYNC_BLOCK_PADDING;
|
|
48
|
-
}
|
|
45
|
+
innerPaddingOffset = SYNC_BLOCK_PADDING;
|
|
49
46
|
break;
|
|
50
47
|
case 'extension':
|
|
51
48
|
case 'multiBodiedExtension':
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
2
2
|
import { getBreakoutResizableNodeTypes, getBreakoutResizableNodeTypesNew } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
5
4
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
6
|
import { setBreakoutWidth } from '../editor-commands/set-breakout-width';
|
|
@@ -56,22 +55,12 @@ export var handleKeyDown = function handleKeyDown(api) {
|
|
|
56
55
|
});
|
|
57
56
|
if (breakoutMark) {
|
|
58
57
|
var step = event.code === 'BracketRight' ? KEYBOARD_RESIZE_STEP : -KEYBOARD_RESIZE_STEP;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
view.focus();
|
|
66
|
-
}
|
|
67
|
-
} else {
|
|
68
|
-
var _newWidth = breakoutMark.attrs.width + step;
|
|
69
|
-
if (_newWidth < akEditorFullWidthLayoutWidth && _newWidth > akEditorDefaultLayoutWidth) {
|
|
70
|
-
var _api$editorViewMode2;
|
|
71
|
-
var _isEditMode = (api === null || api === void 0 || (_api$editorViewMode2 = api.editorViewMode) === null || _api$editorViewMode2 === void 0 || (_api$editorViewMode2 = _api$editorViewMode2.sharedState.currentState()) === null || _api$editorViewMode2 === void 0 ? void 0 : _api$editorViewMode2.mode) === 'edit';
|
|
72
|
-
setBreakoutWidth(breakoutMark.attrs.width + step, breakoutMark.attrs.mode, pos, _isEditMode)(view.state, view.dispatch);
|
|
73
|
-
view.focus();
|
|
74
|
-
}
|
|
58
|
+
var newWidth = getKeyboardResizeWidth(breakoutMark.attrs.width, step, api);
|
|
59
|
+
if (newWidth !== breakoutMark.attrs.width) {
|
|
60
|
+
var _api$editorViewMode;
|
|
61
|
+
var isEditMode = (api === null || api === void 0 || (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 || (_api$editorViewMode = _api$editorViewMode.sharedState.currentState()) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.mode) === 'edit';
|
|
62
|
+
setBreakoutWidth(newWidth, breakoutMark.attrs.mode, pos, isEditMode)(view.state, view.dispatch);
|
|
63
|
+
view.focus();
|
|
75
64
|
}
|
|
76
65
|
return true;
|
|
77
66
|
}
|
|
@@ -156,7 +156,7 @@ export var createResizingPlugin = function createResizingPlugin(api, getIntl, no
|
|
|
156
156
|
return;
|
|
157
157
|
}
|
|
158
158
|
var isFullWidthEnabled = !((options === null || options === void 0 ? void 0 : options.allowBreakoutButton) === true);
|
|
159
|
-
var isMaxWidthEnabled = (options === null || options === void 0 ? void 0 : options.appearance) === 'max' && expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)
|
|
159
|
+
var isMaxWidthEnabled = (options === null || options === void 0 ? void 0 : options.appearance) === 'max' && expValEquals('confluence_max_width_content_appearance', 'isEnabled', true);
|
|
160
160
|
var state = editorView.state;
|
|
161
161
|
var breakoutResizableNodes = isExperimentEnabled('platform_editor_lovability_resize_extensions') ? getBreakoutResizableNodeTypesNew(state.schema) : getBreakoutResizableNodeTypes(state.schema, isRuleAndPanelResizingEnabled);
|
|
162
162
|
var newTr = state.tr;
|
|
@@ -208,7 +208,7 @@ export var createResizingPlugin = function createResizingPlugin(api, getIntl, no
|
|
|
208
208
|
var isRuleAndPanelResizingEnabled = expValEquals('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true);
|
|
209
209
|
var breakoutResizableNodes = isExperimentEnabled('platform_editor_lovability_resize_extensions') ? getBreakoutResizableNodeTypesNew(newState.schema) : getBreakoutResizableNodeTypes(newState.schema, isRuleAndPanelResizingEnabled);
|
|
210
210
|
var isFullWidthEnabled = !((options === null || options === void 0 ? void 0 : options.allowBreakoutButton) === true);
|
|
211
|
-
var isMaxWidthEnabled = (options === null || options === void 0 ? void 0 : options.appearance) === 'max' && expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)
|
|
211
|
+
var isMaxWidthEnabled = (options === null || options === void 0 ? void 0 : options.appearance) === 'max' && expValEquals('confluence_max_width_content_appearance', 'isEnabled', true);
|
|
212
212
|
var isPageLoadNormalizationEnabled = expValEquals('platform_editor_add_breakout_marks_on_page_load', 'isEnabled', true) || isExperimentEnabled('platform_editor_lovability_resize_extensions');
|
|
213
213
|
if (!isPageLoadNormalizationEnabled && !isRuleAndPanelResizingEnabled && isReplaceDocOperation(transactions, oldState)) {
|
|
214
214
|
newState.doc.forEach(function (node, pos) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-breakout",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.4",
|
|
4
4
|
"description": "Breakout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
37
37
|
"@atlaskit/pragmatic-drag-and-drop": "^3.1.0",
|
|
38
38
|
"@atlaskit/theme": "^28.2.0",
|
|
39
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
39
|
+
"@atlaskit/tmp-editor-statsig": "^192.0.0",
|
|
40
40
|
"@atlaskit/tokens": "^16.12.0",
|
|
41
41
|
"@atlaskit/tooltip": "^24.3.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|