@atlaskit/editor-plugin-breakout 15.0.1 → 15.0.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,12 @@
1
1
  # @atlaskit/editor-plugin-breakout
2
2
 
3
+ ## 15.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8ebcd81f67273`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8ebcd81f67273) -
8
+ [EDITOR-8277] fix feature gate references to platform_editor_lovability_resize_ext_gracefully
9
+
3
10
  ## 15.0.1
4
11
 
5
12
  ### Patch Changes
@@ -98,13 +98,13 @@ var ResizingMarkView = exports.ResizingMarkView = /*#__PURE__*/function () {
98
98
  this.nodeViewPortalProviderAPI = nodeViewPortalProviderAPI;
99
99
  var isLiveViewMode = (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) === 'view';
100
100
  if (!isLiveViewMode) {
101
- (0, _platformFeatureFlags.fg)('platform_editor_lovability_resize_gracefully') || (0, _platformFeatureFlags.fg)('platform_editor_lovability_resize_ext_gracefully') ? this.setupResizerCallbacksIfSupported(dom, contentDOM, view, mark, isResizingDividersPanelsEnabled, isResizingExtensionsEnabled, api) : this.setupResizerCallbacks(dom, contentDOM, view, mark, api);
101
+ (0, _platformFeatureFlags.fg)('platform_editor_lovability_resize_gracefully') || (0, _platformFeatureFlags.fg)('platform_editor_lovability_resize_exts_gracefully') ? this.setupResizerCallbacksIfSupported(dom, contentDOM, view, mark, isResizingDividersPanelsEnabled, isResizingExtensionsEnabled, api) : this.setupResizerCallbacks(dom, contentDOM, view, mark, api);
102
102
  }
103
103
  this.unsubscribeToViewModeChange = api === null || api === void 0 || (_api$editorViewMode2 = api.editorViewMode) === null || _api$editorViewMode2 === void 0 ? void 0 : _api$editorViewMode2.sharedState.onChange(function (sharedState) {
104
104
  var _sharedState$nextShar, _sharedState$prevShar;
105
105
  if (((_sharedState$nextShar = sharedState.nextSharedState) === null || _sharedState$nextShar === void 0 ? void 0 : _sharedState$nextShar.mode) !== ((_sharedState$prevShar = sharedState.prevSharedState) === null || _sharedState$prevShar === void 0 ? void 0 : _sharedState$prevShar.mode)) {
106
106
  var _sharedState$nextShar4, _sharedState$nextShar5;
107
- if ((0, _platformFeatureFlags.fg)('platform_editor_lovability_resize_gracefully') || (0, _platformFeatureFlags.fg)('platform_editor_lovability_resize_ext_gracefully')) {
107
+ if ((0, _platformFeatureFlags.fg)('platform_editor_lovability_resize_gracefully') || (0, _platformFeatureFlags.fg)('platform_editor_lovability_resize_exts_gracefully')) {
108
108
  var _sharedState$nextShar2, _sharedState$nextShar3;
109
109
  if (((_sharedState$nextShar2 = sharedState.nextSharedState) === null || _sharedState$nextShar2 === void 0 ? void 0 : _sharedState$nextShar2.mode) === 'view') {
110
110
  var _this$cancelScheduled;
@@ -82,13 +82,13 @@ export class ResizingMarkView {
82
82
  this.nodeViewPortalProviderAPI = nodeViewPortalProviderAPI;
83
83
  const isLiveViewMode = (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) === 'view';
84
84
  if (!isLiveViewMode) {
85
- fg('platform_editor_lovability_resize_gracefully') || fg('platform_editor_lovability_resize_ext_gracefully') ? this.setupResizerCallbacksIfSupported(dom, contentDOM, view, mark, isResizingDividersPanelsEnabled, isResizingExtensionsEnabled, api) : this.setupResizerCallbacks(dom, contentDOM, view, mark, api);
85
+ fg('platform_editor_lovability_resize_gracefully') || fg('platform_editor_lovability_resize_exts_gracefully') ? this.setupResizerCallbacksIfSupported(dom, contentDOM, view, mark, isResizingDividersPanelsEnabled, isResizingExtensionsEnabled, api) : this.setupResizerCallbacks(dom, contentDOM, view, mark, api);
86
86
  }
87
87
  this.unsubscribeToViewModeChange = api === null || api === void 0 ? void 0 : (_api$editorViewMode2 = api.editorViewMode) === null || _api$editorViewMode2 === void 0 ? void 0 : _api$editorViewMode2.sharedState.onChange(sharedState => {
88
88
  var _sharedState$nextShar, _sharedState$prevShar;
89
89
  if (((_sharedState$nextShar = sharedState.nextSharedState) === null || _sharedState$nextShar === void 0 ? void 0 : _sharedState$nextShar.mode) !== ((_sharedState$prevShar = sharedState.prevSharedState) === null || _sharedState$prevShar === void 0 ? void 0 : _sharedState$prevShar.mode)) {
90
90
  var _sharedState$nextShar4, _sharedState$nextShar5;
91
- if (fg('platform_editor_lovability_resize_gracefully') || fg('platform_editor_lovability_resize_ext_gracefully')) {
91
+ if (fg('platform_editor_lovability_resize_gracefully') || fg('platform_editor_lovability_resize_exts_gracefully')) {
92
92
  var _sharedState$nextShar2, _sharedState$nextShar3;
93
93
  if (((_sharedState$nextShar2 = sharedState.nextSharedState) === null || _sharedState$nextShar2 === void 0 ? void 0 : _sharedState$nextShar2.mode) === 'view') {
94
94
  var _this$cancelScheduled;
@@ -91,13 +91,13 @@ export var ResizingMarkView = /*#__PURE__*/function () {
91
91
  this.nodeViewPortalProviderAPI = nodeViewPortalProviderAPI;
92
92
  var isLiveViewMode = (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) === 'view';
93
93
  if (!isLiveViewMode) {
94
- fg('platform_editor_lovability_resize_gracefully') || fg('platform_editor_lovability_resize_ext_gracefully') ? this.setupResizerCallbacksIfSupported(dom, contentDOM, view, mark, isResizingDividersPanelsEnabled, isResizingExtensionsEnabled, api) : this.setupResizerCallbacks(dom, contentDOM, view, mark, api);
94
+ fg('platform_editor_lovability_resize_gracefully') || fg('platform_editor_lovability_resize_exts_gracefully') ? this.setupResizerCallbacksIfSupported(dom, contentDOM, view, mark, isResizingDividersPanelsEnabled, isResizingExtensionsEnabled, api) : this.setupResizerCallbacks(dom, contentDOM, view, mark, api);
95
95
  }
96
96
  this.unsubscribeToViewModeChange = api === null || api === void 0 || (_api$editorViewMode2 = api.editorViewMode) === null || _api$editorViewMode2 === void 0 ? void 0 : _api$editorViewMode2.sharedState.onChange(function (sharedState) {
97
97
  var _sharedState$nextShar, _sharedState$prevShar;
98
98
  if (((_sharedState$nextShar = sharedState.nextSharedState) === null || _sharedState$nextShar === void 0 ? void 0 : _sharedState$nextShar.mode) !== ((_sharedState$prevShar = sharedState.prevSharedState) === null || _sharedState$prevShar === void 0 ? void 0 : _sharedState$prevShar.mode)) {
99
99
  var _sharedState$nextShar4, _sharedState$nextShar5;
100
- if (fg('platform_editor_lovability_resize_gracefully') || fg('platform_editor_lovability_resize_ext_gracefully')) {
100
+ if (fg('platform_editor_lovability_resize_gracefully') || fg('platform_editor_lovability_resize_exts_gracefully')) {
101
101
  var _sharedState$nextShar2, _sharedState$nextShar3;
102
102
  if (((_sharedState$nextShar2 = sharedState.nextSharedState) === null || _sharedState$nextShar2 === void 0 ? void 0 : _sharedState$nextShar2.mode) === 'view') {
103
103
  var _this$cancelScheduled;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-breakout",
3
- "version": "15.0.1",
3
+ "version": "15.0.2",
4
4
  "description": "Breakout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -95,7 +95,7 @@
95
95
  }
96
96
  },
97
97
  "platform-feature-flags": {
98
- "platform_editor_lovability_resize_ext_gracefully": {
98
+ "platform_editor_lovability_resize_exts_gracefully": {
99
99
  "type": "boolean"
100
100
  },
101
101
  "platform_editor_lovability_resize_gracefully": {