@atlaskit/editor-plugin-media 1.33.2 → 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,22 @@
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
+
11
+ ## 1.33.3
12
+
13
+ ### Patch Changes
14
+
15
+ - [#145926](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/145926)
16
+ [`5da502417a091`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5da502417a091) -
17
+ [ED-25128] Fixed the false exposure that would not fire for external images
18
+ - Updated dependencies
19
+
3
20
  ## 1.33.2
4
21
 
5
22
  ### Patch Changes
@@ -328,8 +328,8 @@ var MediaSingleNode = exports.default = /*#__PURE__*/function (_Component) {
328
328
  exposure: true
329
329
  });
330
330
  } else {
331
- (0, _experiments.editorExperiment)('add-media-from-url', true, {
332
- exposure: false
331
+ (0, _experiments.editorExperiment)('add-media-from-url', false, {
332
+ exposure: true
333
333
  });
334
334
  }
335
335
  }
@@ -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();
@@ -244,8 +244,8 @@ export default class MediaSingleNode extends Component {
244
244
  exposure: true
245
245
  });
246
246
  } else {
247
- editorExperiment('add-media-from-url', true, {
248
- exposure: false
247
+ editorExperiment('add-media-from-url', false, {
248
+ exposure: true
249
249
  });
250
250
  }
251
251
  }
@@ -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();
@@ -322,8 +322,8 @@ var MediaSingleNode = /*#__PURE__*/function (_Component) {
322
322
  exposure: true
323
323
  });
324
324
  } else {
325
- editorExperiment('add-media-from-url', true, {
326
- exposure: false
325
+ editorExperiment('add-media-from-url', false, {
326
+ exposure: true
327
327
  });
328
328
  }
329
329
  }
@@ -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.2",
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",
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/analytics-next": "^10.1.0",
38
38
  "@atlaskit/button": "^20.2.0",
39
39
  "@atlaskit/editor-common": "^91.1.0",
40
- "@atlaskit/editor-palette": "1.6.0",
40
+ "@atlaskit/editor-palette": "1.6.1",
41
41
  "@atlaskit/editor-plugin-analytics": "^1.8.0",
42
42
  "@atlaskit/editor-plugin-annotation": "1.19.8",
43
43
  "@atlaskit/editor-plugin-decorations": "^1.3.0",
@@ -67,7 +67,7 @@
67
67
  "@atlaskit/textfield": "^6.5.0",
68
68
  "@atlaskit/theme": "^13.0.0",
69
69
  "@atlaskit/tmp-editor-statsig": "^2.1.8",
70
- "@atlaskit/tokens": "^1.61.0",
70
+ "@atlaskit/tokens": "^2.0.0",
71
71
  "@atlaskit/tooltip": "^18.7.0",
72
72
  "@babel/runtime": "^7.0.0",
73
73
  "@emotion/react": "^11.7.1",
@@ -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
  },