@atlaskit/editor-plugin-media 3.1.0 → 3.2.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,17 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 3.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#172247](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172247)
8
+ [`67d04382f5777`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/67d04382f5777) -
9
+ Add data-media-vc-wrapper to ProseMirror media signle node
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 3.1.0
4
16
 
5
17
  ### Minor Changes
@@ -31,6 +31,7 @@ var _utils2 = require("@atlaskit/editor-prosemirror/utils");
31
31
  var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
32
32
  var _mediaClient = require("@atlaskit/media-client");
33
33
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
34
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
34
35
  var _captions = require("../pm-plugins/commands/captions");
35
36
  var _main = require("../pm-plugins/main");
36
37
  var _mediaCommon = require("../pm-plugins/utils/media-common");
@@ -715,6 +716,9 @@ var MediaSingleNodeView = /*#__PURE__*/function (_ReactNodeView) {
715
716
  if ((_this$reactComponentP2 = this.reactComponentProps.mediaOptions) !== null && _this$reactComponentP2 !== void 0 && _this$reactComponentP2.allowPixelResizing) {
716
717
  domRef.classList.add('media-extended-resize-experience');
717
718
  }
719
+ if ((0, _expValEquals.expValEquals)('platform_editor_media_card_vc_wrapper_attribute', 'isEnabled', true)) {
720
+ domRef.setAttribute('data-media-vc-wrapper', 'true');
721
+ }
718
722
  return domRef;
719
723
  }
720
724
  }, {
@@ -23,6 +23,7 @@ import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/u
23
23
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
24
24
  import { getAttrsFromUrl } from '@atlaskit/media-client';
25
25
  import { fg } from '@atlaskit/platform-feature-flags';
26
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
26
27
  import { insertAndSelectCaptionFromMediaSinglePos } from '../pm-plugins/commands/captions';
27
28
  import { MEDIA_CONTENT_WRAP_CLASS_NAME } from '../pm-plugins/main';
28
29
  import { isMediaBlobUrlFromAttrs } from '../pm-plugins/utils/media-common';
@@ -619,6 +620,9 @@ class MediaSingleNodeView extends ReactNodeView {
619
620
  if ((_this$reactComponentP4 = this.reactComponentProps.mediaOptions) !== null && _this$reactComponentP4 !== void 0 && _this$reactComponentP4.allowPixelResizing) {
620
621
  domRef.classList.add('media-extended-resize-experience');
621
622
  }
623
+ if (expValEquals('platform_editor_media_card_vc_wrapper_attribute', 'isEnabled', true)) {
624
+ domRef.setAttribute('data-media-vc-wrapper', 'true');
625
+ }
622
626
  return domRef;
623
627
  }
624
628
  getContentDOM() {
@@ -36,6 +36,7 @@ import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/u
36
36
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
37
37
  import { getAttrsFromUrl } from '@atlaskit/media-client';
38
38
  import { fg } from '@atlaskit/platform-feature-flags';
39
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
39
40
  import { insertAndSelectCaptionFromMediaSinglePos } from '../pm-plugins/commands/captions';
40
41
  import { MEDIA_CONTENT_WRAP_CLASS_NAME } from '../pm-plugins/main';
41
42
  import { isMediaBlobUrlFromAttrs } from '../pm-plugins/utils/media-common';
@@ -711,6 +712,9 @@ var MediaSingleNodeView = /*#__PURE__*/function (_ReactNodeView) {
711
712
  if ((_this$reactComponentP2 = this.reactComponentProps.mediaOptions) !== null && _this$reactComponentP2 !== void 0 && _this$reactComponentP2.allowPixelResizing) {
712
713
  domRef.classList.add('media-extended-resize-experience');
713
714
  }
715
+ if (expValEquals('platform_editor_media_card_vc_wrapper_attribute', 'isEnabled', true)) {
716
+ domRef.setAttribute('data-media-vc-wrapper', 'true');
717
+ }
714
718
  return domRef;
715
719
  }
716
720
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/editor-plugin-annotation": "^2.9.0",
45
45
  "@atlaskit/editor-plugin-connectivity": "^2.0.0",
46
46
  "@atlaskit/editor-plugin-decorations": "^2.0.0",
47
- "@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
47
+ "@atlaskit/editor-plugin-editor-disabled": "^2.1.0",
48
48
  "@atlaskit/editor-plugin-editor-viewmode": "^4.0.0",
49
49
  "@atlaskit/editor-plugin-floating-toolbar": "^4.2.0",
50
50
  "@atlaskit/editor-plugin-focus": "^1.5.0",
@@ -57,14 +57,14 @@
57
57
  "@atlaskit/editor-shared-styles": "^3.4.0",
58
58
  "@atlaskit/editor-tables": "^2.9.0",
59
59
  "@atlaskit/form": "^12.0.0",
60
- "@atlaskit/icon": "^26.4.0",
60
+ "@atlaskit/icon": "^27.0.0",
61
61
  "@atlaskit/media-card": "^79.3.0",
62
62
  "@atlaskit/media-client": "^33.4.0",
63
63
  "@atlaskit/media-client-react": "^4.1.0",
64
- "@atlaskit/media-common": "^12.1.0",
64
+ "@atlaskit/media-common": "^12.2.0",
65
65
  "@atlaskit/media-filmstrip": "^50.1.0",
66
66
  "@atlaskit/media-picker": "^69.0.0",
67
- "@atlaskit/media-ui": "^28.2.0",
67
+ "@atlaskit/media-ui": "^28.3.0",
68
68
  "@atlaskit/media-viewer": "^52.2.0",
69
69
  "@atlaskit/platform-feature-flags": "^1.1.0",
70
70
  "@atlaskit/primitives": "^14.8.0",