@atlaskit/editor-plugin-media 1.33.3 → 1.34.0

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,13 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 1.34.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#146025](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/146025)
8
+ [`03eae90c614d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/03eae90c614d1) -
9
+ Remove platform.editor.live-view.disable-editing-in-view-mode_fi1rx feature flag
10
+
3
11
  ## 1.33.3
4
12
 
5
13
  ### Patch Changes
@@ -460,9 +460,7 @@ var MediaSingleNode = exports.default = /*#__PURE__*/function (_Component) {
460
460
  };
461
461
  var badgeOffsetRight = isBadgePosOffsetRight();
462
462
  var shouldShowPlaceholder = mediaOptions.allowCaptions && node.childCount !== 2 && isSelected && state.selection instanceof _state.NodeSelection;
463
- if ((0, _platformFeatureFlags.fg)('platform.editor.live-view.disable-editing-in-view-mode_fi1rx')) {
464
- shouldShowPlaceholder = !editorDisabled && shouldShowPlaceholder;
465
- }
463
+ shouldShowPlaceholder = !editorDisabled && shouldShowPlaceholder;
466
464
  var isCurrentNodeDrafting = (annotationPluginState === null || annotationPluginState === void 0 ? void 0 : annotationPluginState.isDrafting) && (annotationPluginState === null || annotationPluginState === void 0 ? void 0 : annotationPluginState.targetNodeId) === (node === null || node === void 0 || (_node$firstChild = node.firstChild) === null || _node$firstChild === void 0 ? void 0 : _node$firstChild.attrs.id);
467
465
  var shouldShowExternalMediaBadge = attrs.type === 'external';
468
466
  var pos = getPos();
@@ -378,9 +378,7 @@ export default class MediaSingleNode extends Component {
378
378
  };
379
379
  const badgeOffsetRight = isBadgePosOffsetRight();
380
380
  let shouldShowPlaceholder = mediaOptions.allowCaptions && node.childCount !== 2 && isSelected && state.selection instanceof NodeSelection;
381
- if (fg('platform.editor.live-view.disable-editing-in-view-mode_fi1rx')) {
382
- shouldShowPlaceholder = !editorDisabled && shouldShowPlaceholder;
383
- }
381
+ shouldShowPlaceholder = !editorDisabled && shouldShowPlaceholder;
384
382
  const isCurrentNodeDrafting = (annotationPluginState === null || annotationPluginState === void 0 ? void 0 : annotationPluginState.isDrafting) && (annotationPluginState === null || annotationPluginState === void 0 ? void 0 : annotationPluginState.targetNodeId) === (node === null || node === void 0 ? void 0 : (_node$firstChild = node.firstChild) === null || _node$firstChild === void 0 ? void 0 : _node$firstChild.attrs.id);
385
383
  const shouldShowExternalMediaBadge = attrs.type === 'external';
386
384
  const pos = getPos();
@@ -454,9 +454,7 @@ var MediaSingleNode = /*#__PURE__*/function (_Component) {
454
454
  };
455
455
  var badgeOffsetRight = isBadgePosOffsetRight();
456
456
  var shouldShowPlaceholder = mediaOptions.allowCaptions && node.childCount !== 2 && isSelected && state.selection instanceof NodeSelection;
457
- if (fg('platform.editor.live-view.disable-editing-in-view-mode_fi1rx')) {
458
- shouldShowPlaceholder = !editorDisabled && shouldShowPlaceholder;
459
- }
457
+ shouldShowPlaceholder = !editorDisabled && shouldShowPlaceholder;
460
458
  var isCurrentNodeDrafting = (annotationPluginState === null || annotationPluginState === void 0 ? void 0 : annotationPluginState.isDrafting) && (annotationPluginState === null || annotationPluginState === void 0 ? void 0 : annotationPluginState.targetNodeId) === (node === null || node === void 0 || (_node$firstChild = node.firstChild) === null || _node$firstChild === void 0 ? void 0 : _node$firstChild.attrs.id);
461
459
  var shouldShowExternalMediaBadge = attrs.type === 'external';
462
460
  var pos = getPos();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "1.33.3",
3
+ "version": "1.34.0",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -132,9 +132,6 @@
132
132
  "type": "boolean",
133
133
  "referenceOnly": "true"
134
134
  },
135
- "platform.editor.live-view.disable-editing-in-view-mode_fi1rx": {
136
- "type": "boolean"
137
- },
138
135
  "platform-editor-a11y-image-border-options-dropdown": {
139
136
  "type": "boolean"
140
137
  },