@atlaskit/editor-plugin-media 2.3.6 → 2.3.7

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,11 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 2.3.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 2.3.6
4
10
 
5
11
  ### Patch Changes
@@ -95,7 +95,7 @@ var MediaGroup = /*#__PURE__*/function (_React$Component) {
95
95
  // Because the original code would return NaN on runtime
96
96
  // We are just make it explict now.
97
97
  // We may run a deep investagation on Media code to figure out a better fix. But, for now, we want to keep the current behavior.
98
- // TODO: ED-13910 prosemirror-bump leftovers
98
+ // TODO: ED-13910 - prosemirror-bump leftovers
99
99
  return NaN;
100
100
  }
101
101
  return pos + childOffset + 1;
@@ -147,7 +147,7 @@ var MediaGroup = /*#__PURE__*/function (_React$Component) {
147
147
  // Because the original code would return NaN on runtime
148
148
  // We are just make it explict now.
149
149
  // We may run a deep investagation on Media code to figure out a better fix. But, for now, we want to keep the current behavior.
150
- // TODO: ED-13910 prosemirror-bump leftovers
150
+ // TODO: ED-13910 - prosemirror-bump leftovers
151
151
  return NaN;
152
152
  }
153
153
  return pos + idx + 1;
@@ -225,7 +225,7 @@ var MediaGroup = /*#__PURE__*/function (_React$Component) {
225
225
  // Because the original code would return NaN on runtime
226
226
  // We are just make it explict now.
227
227
  // We may run a deep investagation on Media code to figure out a better fix. But, for now, we want to keep the current behavior.
228
- // TODO: ED-13910 prosemirror-bump leftovers
228
+ // TODO: ED-13910 - prosemirror-bump leftovers
229
229
  return NaN;
230
230
  }
231
231
  return pos + 1;
@@ -67,7 +67,7 @@ var prepareFilmstripItem = function prepareFilmstripItem(_ref) {
67
67
  // Because the original code would return NaN on runtime
68
68
  // We are just make it explict now.
69
69
  // We may run a deep investagation on Media code to figure out a better fix. But, for now, we want to keep the current behavior.
70
- // TODO: ED-13910 prosemirror-bump leftovers
70
+ // TODO: ED-13910 - prosemirror-bump leftovers
71
71
  return NaN;
72
72
  }
73
73
  return pos + idx + 1;
@@ -533,6 +533,8 @@ var MediaPluginStateImplementation = exports.MediaPluginStateImplementation = /*
533
533
  return mediaProvider;
534
534
  case 11:
535
535
  this.mediaProvider = _context.sent;
536
+ // Ignored via go/ees007
537
+ // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
536
538
  // TODO [MS-2038]: remove once context api is removed
537
539
  // We want to re assign the view and upload configs if they are missing for backwards compatibility
538
540
  // as currently integrators can pass context || mediaClientConfig
@@ -264,7 +264,7 @@ var createMediaSingleNode = function createMediaSingleNode(schema, collection, m
264
264
  } : {};
265
265
  var extendedMediaSingleAttrs = (0, _platformFeatureFlags.fg)('platform_editor_media_extended_resize_experience') ? _objectSpread(_objectSpread({}, mediaSingleAttrs), {}, {
266
266
  width: (0, _mediaSingle.getMediaSingleInitialWidth)(scaledWidth, maxWidth, minWidth),
267
- // TODO: change to use enum
267
+ // TODO: ED-26962 - change to use enum
268
268
  widthType: 'pixel'
269
269
  }) : mediaSingleAttrs;
270
270
  (0, _mediaCommon.copyOptionalAttrsFromMediaState)(mediaState, mediaNode);
@@ -28,7 +28,7 @@ var menuItemDimensions = exports.menuItemDimensions = {
28
28
  height: 32
29
29
  };
30
30
 
31
- // TODO: Migrate away from gridSize
31
+ // TODO: ED-26962 - Migrate away from gridSize
32
32
  // Recommendation: Replace directly with 4 due to itemSpacing being used in calculations
33
33
  var itemSpacing = exports.itemSpacing = (0, _constants.gridSize)() / 2;
34
34
 
@@ -190,7 +190,7 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
190
190
  };
191
191
  });
192
192
  (0, _defineProperty2.default)(_this, "selectCurrentMediaNode", function () {
193
- // TODO: if adding !this.props.selected, it doesn't work if media single node is at top postion
193
+ // TODO: ED-26962 - if adding !this.props.selected, it doesn't work if media single node is at top postion
194
194
  if (_this.pos === null) {
195
195
  return;
196
196
  }
@@ -397,7 +397,7 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
397
397
  return width / height;
398
398
  }
399
399
 
400
- // TODO handle this case
400
+ // TODO: ED-26962 - handle this case
401
401
  return 1;
402
402
  }
403
403
  }, {
@@ -535,7 +535,7 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
535
535
  }
536
536
  });
537
537
 
538
- // TODO: Clean up where this lives and how it gets generated
538
+ // TODO: ED-26962 - Clean up where this lives and how it gets generated
539
539
  var className = (0, _classnames.default)(_styles.richMediaClassName, "image-".concat(layout), isResizing ? 'is-resizing' : 'not-resizing', this.props.className, {
540
540
  'richMedia-selected': selected,
541
541
  'rich-media-wrapped': layout === 'wrap-left' || layout === 'wrap-right'
@@ -677,7 +677,7 @@ var getAspectRatio = function getAspectRatio(_ref6) {
677
677
  return width / height;
678
678
  }
679
679
 
680
- // TODO handle this case
680
+ // TODO: ED-26962 - handle this case
681
681
  return 1;
682
682
  };
683
683
  var updateSizeInPluginState = (0, _throttle.default)(function (_ref7) {
@@ -797,7 +797,7 @@ var ResizableMediaSingleNextFunctional = exports.ResizableMediaSingleNextFunctio
797
797
  // while is not resizing, we take 100% as min-width if the container width is less than the min-width
798
798
  var minViewWidth = isResizing ? minWidth : "min(".concat(minWidth, "px, 100%)");
799
799
  var resizerNextClassName = (0, _react.useMemo)(function () {
800
- // TODO: Clean up where this lives and how it gets generated
800
+ // TODO: ED-26962 - Clean up where this lives and how it gets generated
801
801
  var classNameNext = (0, _classnames.default)(_styles.richMediaClassName, "image-".concat(layout), isResizing ? 'is-resizing' : 'not-resizing', className, {
802
802
  'richMedia-selected': selected,
803
803
  'rich-media-wrapped': layout === 'wrap-left' || layout === 'wrap-right'
@@ -37,7 +37,7 @@ var commentButton = exports.commentButton = function commentButton(intl, state,
37
37
  if (!showCommentForBlockNode(selectMediaNode, _analytics.VIEW_METHOD.COMMENT_BUTTON, isOpeningMediaCommentFromToolbar)(state, dispatch)) {
38
38
  var _selectMediaNode$attr;
39
39
  setInlineCommentDraftState(true,
40
- // TODO: might need to update to reflect it's from media floating toolbar
40
+ // TODO: ED-26962 - might need to update to reflect it's from media floating toolbar
41
41
  _analytics.INPUT_METHOD.FLOATING_TB, 'block', (_selectMediaNode$attr = selectMediaNode.attrs) === null || _selectMediaNode$attr === void 0 ? void 0 : _selectMediaNode$attr.id, isOpeningMediaCommentFromToolbar)(state, dispatch);
42
42
  }
43
43
  }
@@ -94,7 +94,7 @@ var generateMediaCardFloatingToolbar = function generateMediaCardFloatingToolbar
94
94
  return [];
95
95
  }
96
96
  var enforceMediaDataSecurityPolicy = mediaPluginState === null || mediaPluginState === void 0 || (_mediaPluginState$med = mediaPluginState.mediaClientConfig) === null || _mediaPluginState$med === void 0 ? void 0 : _mediaPluginState$med.enforceDataSecurityPolicy;
97
- var disableDownloadButton = typeof enforceMediaDataSecurityPolicy === 'boolean' && (0, _platformFeatureFlags.fg)('dlp_cc-enforce-attachment-dl-dsp') ? enforceMediaDataSecurityPolicy : false;
97
+ var disableDownloadButton = typeof enforceMediaDataSecurityPolicy === 'boolean' ? enforceMediaDataSecurityPolicy : false;
98
98
  var mediaGroup = state.schema.nodes.mediaGroup;
99
99
  var items = [{
100
100
  id: 'editor.media.view.switcher.inline',
@@ -644,7 +644,7 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
644
644
  supportsViewMode: true
645
645
  });
646
646
  if (allowAdvancedToolBarOptions && allowCommentsOnMedia) {
647
- // TODO: add separator when overflow menu is added
647
+ // TODO: ED-26962 - add separator when overflow menu is added
648
648
  toolbarButtons.push((0, _comments.commentButton)(intl, state, pluginInjectionApi));
649
649
  }
650
650
  return toolbarButtons;
@@ -770,6 +770,8 @@ var floatingToolbar = exports.floatingToolbar = function floatingToolbar(state,
770
770
  }, {
771
771
  title: 'Resize',
772
772
  onClick: function onClick() {
773
+ // Ignored via go/ees007
774
+ // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
773
775
  // TODO open resize dialog?
774
776
  return true;
775
777
  },
@@ -253,7 +253,7 @@ var getMediaInlineImageToolbar = function getMediaInlineImageToolbar(state, intl
253
253
  });
254
254
  }
255
255
 
256
- // TODO: editor controls move to overflow menu
256
+ // TODO: ED-26961 - editor controls move to overflow menu
257
257
  if ((0, _experiments.editorExperiment)('platform_editor_controls', 'control')) {
258
258
  inlineImageItems.push({
259
259
  type: 'custom',
@@ -78,7 +78,7 @@ class MediaGroup extends React.Component {
78
78
  // Because the original code would return NaN on runtime
79
79
  // We are just make it explict now.
80
80
  // We may run a deep investagation on Media code to figure out a better fix. But, for now, we want to keep the current behavior.
81
- // TODO: ED-13910 prosemirror-bump leftovers
81
+ // TODO: ED-13910 - prosemirror-bump leftovers
82
82
  return NaN;
83
83
  }
84
84
  return pos + childOffset + 1;
@@ -133,7 +133,7 @@ class MediaGroup extends React.Component {
133
133
  // Because the original code would return NaN on runtime
134
134
  // We are just make it explict now.
135
135
  // We may run a deep investagation on Media code to figure out a better fix. But, for now, we want to keep the current behavior.
136
- // TODO: ED-13910 prosemirror-bump leftovers
136
+ // TODO: ED-13910 - prosemirror-bump leftovers
137
137
  return NaN;
138
138
  }
139
139
  return pos + idx + 1;
@@ -202,7 +202,7 @@ class MediaGroup extends React.Component {
202
202
  // Because the original code would return NaN on runtime
203
203
  // We are just make it explict now.
204
204
  // We may run a deep investagation on Media code to figure out a better fix. But, for now, we want to keep the current behavior.
205
- // TODO: ED-13910 prosemirror-bump leftovers
205
+ // TODO: ED-13910 - prosemirror-bump leftovers
206
206
  return NaN;
207
207
  }
208
208
  return pos + 1;
@@ -49,7 +49,7 @@ const prepareFilmstripItem = ({
49
49
  // Because the original code would return NaN on runtime
50
50
  // We are just make it explict now.
51
51
  // We may run a deep investagation on Media code to figure out a better fix. But, for now, we want to keep the current behavior.
52
- // TODO: ED-13910 prosemirror-bump leftovers
52
+ // TODO: ED-13910 - prosemirror-bump leftovers
53
53
  return NaN;
54
54
  }
55
55
  return pos + idx + 1;
@@ -486,10 +486,14 @@ export class MediaPluginStateImplementation {
486
486
  return;
487
487
  }
488
488
 
489
+ // Ignored via go/ees007
490
+ // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
489
491
  // TODO disable (not destroy!) pickers until mediaProvider is resolved
490
492
  try {
491
493
  this.mediaProvider = await mediaProvider;
492
494
 
495
+ // Ignored via go/ees007
496
+ // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
493
497
  // TODO [MS-2038]: remove once context api is removed
494
498
  // We want to re assign the view and upload configs if they are missing for backwards compatibility
495
499
  // as currently integrators can pass context || mediaClientConfig
@@ -267,7 +267,7 @@ const createMediaSingleNode = (schema, collection, maxWidth, minWidth, alignLeft
267
267
  const extendedMediaSingleAttrs = fg('platform_editor_media_extended_resize_experience') ? {
268
268
  ...mediaSingleAttrs,
269
269
  width: getMediaSingleInitialWidth(scaledWidth, maxWidth, minWidth),
270
- // TODO: change to use enum
270
+ // TODO: ED-26962 - change to use enum
271
271
  widthType: 'pixel'
272
272
  } : mediaSingleAttrs;
273
273
  copyOptionalAttrsFromMediaState(mediaState, mediaNode);
@@ -16,7 +16,7 @@ export const menuItemDimensions = {
16
16
  height: 32
17
17
  };
18
18
 
19
- // TODO: Migrate away from gridSize
19
+ // TODO: ED-26962 - Migrate away from gridSize
20
20
  // Recommendation: Replace directly with 4 due to itemSpacing being used in calculations
21
21
  export const itemSpacing = gridSize() / 2;
22
22
 
@@ -171,7 +171,7 @@ class ResizableMediaSingleNext extends React.Component {
171
171
  };
172
172
  });
173
173
  _defineProperty(this, "selectCurrentMediaNode", () => {
174
- // TODO: if adding !this.props.selected, it doesn't work if media single node is at top postion
174
+ // TODO: ED-26962 - if adding !this.props.selected, it doesn't work if media single node is at top postion
175
175
  if (this.pos === null) {
176
176
  return;
177
177
  }
@@ -354,7 +354,7 @@ class ResizableMediaSingleNext extends React.Component {
354
354
  return width / height;
355
355
  }
356
356
 
357
- // TODO handle this case
357
+ // TODO: ED-26962 - handle this case
358
358
  return 1;
359
359
  }
360
360
  get insideInlineLike() {
@@ -449,7 +449,7 @@ class ResizableMediaSingleNext extends React.Component {
449
449
  }
450
450
  });
451
451
 
452
- // TODO: Clean up where this lives and how it gets generated
452
+ // TODO: ED-26962 - Clean up where this lives and how it gets generated
453
453
  const className = classnames(richMediaClassName, `image-${layout}`, isResizing ? 'is-resizing' : 'not-resizing', this.props.className, {
454
454
  'richMedia-selected': selected,
455
455
  'rich-media-wrapped': layout === 'wrap-left' || layout === 'wrap-right'
@@ -589,7 +589,7 @@ const getAspectRatio = ({
589
589
  return width / height;
590
590
  }
591
591
 
592
- // TODO handle this case
592
+ // TODO: ED-26962 - handle this case
593
593
  return 1;
594
594
  };
595
595
  const updateSizeInPluginState = throttle(({
@@ -702,7 +702,7 @@ export const ResizableMediaSingleNextFunctional = props => {
702
702
  // while is not resizing, we take 100% as min-width if the container width is less than the min-width
703
703
  const minViewWidth = isResizing ? minWidth : `min(${minWidth}px, 100%)`;
704
704
  const resizerNextClassName = useMemo(() => {
705
- // TODO: Clean up where this lives and how it gets generated
705
+ // TODO: ED-26962 - Clean up where this lives and how it gets generated
706
706
  const classNameNext = classnames(richMediaClassName, `image-${layout}`, isResizing ? 'is-resizing' : 'not-resizing', className, {
707
707
  'richMedia-selected': selected,
708
708
  'rich-media-wrapped': layout === 'wrap-left' || layout === 'wrap-right'
@@ -29,7 +29,7 @@ export const commentButton = (intl, state, api) => {
29
29
  if (!showCommentForBlockNode(selectMediaNode, VIEW_METHOD.COMMENT_BUTTON, isOpeningMediaCommentFromToolbar)(state, dispatch)) {
30
30
  var _selectMediaNode$attr;
31
31
  setInlineCommentDraftState(true,
32
- // TODO: might need to update to reflect it's from media floating toolbar
32
+ // TODO: ED-26962 - might need to update to reflect it's from media floating toolbar
33
33
  INPUT_METHOD.FLOATING_TB, 'block', (_selectMediaNode$attr = selectMediaNode.attrs) === null || _selectMediaNode$attr === void 0 ? void 0 : _selectMediaNode$attr.id, isOpeningMediaCommentFromToolbar)(state, dispatch);
34
34
  }
35
35
  }
@@ -81,7 +81,7 @@ const generateMediaCardFloatingToolbar = (state, intl, mediaPluginState, hoverDe
81
81
  return [];
82
82
  }
83
83
  const enforceMediaDataSecurityPolicy = mediaPluginState === null || mediaPluginState === void 0 ? void 0 : (_mediaPluginState$med = mediaPluginState.mediaClientConfig) === null || _mediaPluginState$med === void 0 ? void 0 : _mediaPluginState$med.enforceDataSecurityPolicy;
84
- const disableDownloadButton = typeof enforceMediaDataSecurityPolicy === 'boolean' && fg('dlp_cc-enforce-attachment-dl-dsp') ? enforceMediaDataSecurityPolicy : false;
84
+ const disableDownloadButton = typeof enforceMediaDataSecurityPolicy === 'boolean' ? enforceMediaDataSecurityPolicy : false;
85
85
  const {
86
86
  mediaGroup
87
87
  } = state.schema.nodes;
@@ -646,7 +646,7 @@ const generateMediaSingleFloatingToolbar = (state, intl, options, pluginState, m
646
646
  supportsViewMode: true
647
647
  });
648
648
  if (allowAdvancedToolBarOptions && allowCommentsOnMedia) {
649
- // TODO: add separator when overflow menu is added
649
+ // TODO: ED-26962 - add separator when overflow menu is added
650
650
  toolbarButtons.push(commentButton(intl, state, pluginInjectionApi));
651
651
  }
652
652
  return toolbarButtons;
@@ -770,6 +770,8 @@ export const floatingToolbar = (state, intl, options = {}, pluginInjectionApi) =
770
770
  }, {
771
771
  title: 'Resize',
772
772
  onClick: () => {
773
+ // Ignored via go/ees007
774
+ // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
773
775
  // TODO open resize dialog?
774
776
  return true;
775
777
  },
@@ -239,7 +239,7 @@ const getMediaInlineImageToolbar = (state, intl, mediaPluginState, hoverDecorati
239
239
  });
240
240
  }
241
241
 
242
- // TODO: editor controls move to overflow menu
242
+ // TODO: ED-26961 - editor controls move to overflow menu
243
243
  if (editorExperiment('platform_editor_controls', 'control')) {
244
244
  inlineImageItems.push({
245
245
  type: 'custom',
@@ -88,7 +88,7 @@ var MediaGroup = /*#__PURE__*/function (_React$Component) {
88
88
  // Because the original code would return NaN on runtime
89
89
  // We are just make it explict now.
90
90
  // We may run a deep investagation on Media code to figure out a better fix. But, for now, we want to keep the current behavior.
91
- // TODO: ED-13910 prosemirror-bump leftovers
91
+ // TODO: ED-13910 - prosemirror-bump leftovers
92
92
  return NaN;
93
93
  }
94
94
  return pos + childOffset + 1;
@@ -140,7 +140,7 @@ var MediaGroup = /*#__PURE__*/function (_React$Component) {
140
140
  // Because the original code would return NaN on runtime
141
141
  // We are just make it explict now.
142
142
  // We may run a deep investagation on Media code to figure out a better fix. But, for now, we want to keep the current behavior.
143
- // TODO: ED-13910 prosemirror-bump leftovers
143
+ // TODO: ED-13910 - prosemirror-bump leftovers
144
144
  return NaN;
145
145
  }
146
146
  return pos + idx + 1;
@@ -218,7 +218,7 @@ var MediaGroup = /*#__PURE__*/function (_React$Component) {
218
218
  // Because the original code would return NaN on runtime
219
219
  // We are just make it explict now.
220
220
  // We may run a deep investagation on Media code to figure out a better fix. But, for now, we want to keep the current behavior.
221
- // TODO: ED-13910 prosemirror-bump leftovers
221
+ // TODO: ED-13910 - prosemirror-bump leftovers
222
222
  return NaN;
223
223
  }
224
224
  return pos + 1;
@@ -57,7 +57,7 @@ var prepareFilmstripItem = function prepareFilmstripItem(_ref) {
57
57
  // Because the original code would return NaN on runtime
58
58
  // We are just make it explict now.
59
59
  // We may run a deep investagation on Media code to figure out a better fix. But, for now, we want to keep the current behavior.
60
- // TODO: ED-13910 prosemirror-bump leftovers
60
+ // TODO: ED-13910 - prosemirror-bump leftovers
61
61
  return NaN;
62
62
  }
63
63
  return pos + idx + 1;
@@ -524,6 +524,8 @@ export var MediaPluginStateImplementation = /*#__PURE__*/function () {
524
524
  return mediaProvider;
525
525
  case 11:
526
526
  this.mediaProvider = _context.sent;
527
+ // Ignored via go/ees007
528
+ // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
527
529
  // TODO [MS-2038]: remove once context api is removed
528
530
  // We want to re assign the view and upload configs if they are missing for backwards compatibility
529
531
  // as currently integrators can pass context || mediaClientConfig
@@ -257,7 +257,7 @@ var createMediaSingleNode = function createMediaSingleNode(schema, collection, m
257
257
  } : {};
258
258
  var extendedMediaSingleAttrs = fg('platform_editor_media_extended_resize_experience') ? _objectSpread(_objectSpread({}, mediaSingleAttrs), {}, {
259
259
  width: getMediaSingleInitialWidth(scaledWidth, maxWidth, minWidth),
260
- // TODO: change to use enum
260
+ // TODO: ED-26962 - change to use enum
261
261
  widthType: 'pixel'
262
262
  }) : mediaSingleAttrs;
263
263
  copyOptionalAttrsFromMediaState(mediaState, mediaNode);
@@ -18,7 +18,7 @@ export var menuItemDimensions = {
18
18
  height: 32
19
19
  };
20
20
 
21
- // TODO: Migrate away from gridSize
21
+ // TODO: ED-26962 - Migrate away from gridSize
22
22
  // Recommendation: Replace directly with 4 due to itemSpacing being used in calculations
23
23
  export var itemSpacing = gridSize() / 2;
24
24
 
@@ -183,7 +183,7 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
183
183
  };
184
184
  });
185
185
  _defineProperty(_this, "selectCurrentMediaNode", function () {
186
- // TODO: if adding !this.props.selected, it doesn't work if media single node is at top postion
186
+ // TODO: ED-26962 - if adding !this.props.selected, it doesn't work if media single node is at top postion
187
187
  if (_this.pos === null) {
188
188
  return;
189
189
  }
@@ -390,7 +390,7 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
390
390
  return width / height;
391
391
  }
392
392
 
393
- // TODO handle this case
393
+ // TODO: ED-26962 - handle this case
394
394
  return 1;
395
395
  }
396
396
  }, {
@@ -528,7 +528,7 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
528
528
  }
529
529
  });
530
530
 
531
- // TODO: Clean up where this lives and how it gets generated
531
+ // TODO: ED-26962 - Clean up where this lives and how it gets generated
532
532
  var className = classnames(richMediaClassName, "image-".concat(layout), isResizing ? 'is-resizing' : 'not-resizing', this.props.className, {
533
533
  'richMedia-selected': selected,
534
534
  'rich-media-wrapped': layout === 'wrap-left' || layout === 'wrap-right'
@@ -670,7 +670,7 @@ var getAspectRatio = function getAspectRatio(_ref6) {
670
670
  return width / height;
671
671
  }
672
672
 
673
- // TODO handle this case
673
+ // TODO: ED-26962 - handle this case
674
674
  return 1;
675
675
  };
676
676
  var updateSizeInPluginState = throttle(function (_ref7) {
@@ -790,7 +790,7 @@ export var ResizableMediaSingleNextFunctional = function ResizableMediaSingleNex
790
790
  // while is not resizing, we take 100% as min-width if the container width is less than the min-width
791
791
  var minViewWidth = isResizing ? minWidth : "min(".concat(minWidth, "px, 100%)");
792
792
  var resizerNextClassName = useMemo(function () {
793
- // TODO: Clean up where this lives and how it gets generated
793
+ // TODO: ED-26962 - Clean up where this lives and how it gets generated
794
794
  var classNameNext = classnames(richMediaClassName, "image-".concat(layout), isResizing ? 'is-resizing' : 'not-resizing', className, {
795
795
  'richMedia-selected': selected,
796
796
  'rich-media-wrapped': layout === 'wrap-left' || layout === 'wrap-right'
@@ -30,7 +30,7 @@ export var commentButton = function commentButton(intl, state, api) {
30
30
  if (!showCommentForBlockNode(selectMediaNode, VIEW_METHOD.COMMENT_BUTTON, isOpeningMediaCommentFromToolbar)(state, dispatch)) {
31
31
  var _selectMediaNode$attr;
32
32
  setInlineCommentDraftState(true,
33
- // TODO: might need to update to reflect it's from media floating toolbar
33
+ // TODO: ED-26962 - might need to update to reflect it's from media floating toolbar
34
34
  INPUT_METHOD.FLOATING_TB, 'block', (_selectMediaNode$attr = selectMediaNode.attrs) === null || _selectMediaNode$attr === void 0 ? void 0 : _selectMediaNode$attr.id, isOpeningMediaCommentFromToolbar)(state, dispatch);
35
35
  }
36
36
  }
@@ -84,7 +84,7 @@ var generateMediaCardFloatingToolbar = function generateMediaCardFloatingToolbar
84
84
  return [];
85
85
  }
86
86
  var enforceMediaDataSecurityPolicy = mediaPluginState === null || mediaPluginState === void 0 || (_mediaPluginState$med = mediaPluginState.mediaClientConfig) === null || _mediaPluginState$med === void 0 ? void 0 : _mediaPluginState$med.enforceDataSecurityPolicy;
87
- var disableDownloadButton = typeof enforceMediaDataSecurityPolicy === 'boolean' && fg('dlp_cc-enforce-attachment-dl-dsp') ? enforceMediaDataSecurityPolicy : false;
87
+ var disableDownloadButton = typeof enforceMediaDataSecurityPolicy === 'boolean' ? enforceMediaDataSecurityPolicy : false;
88
88
  var mediaGroup = state.schema.nodes.mediaGroup;
89
89
  var items = [{
90
90
  id: 'editor.media.view.switcher.inline',
@@ -634,7 +634,7 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
634
634
  supportsViewMode: true
635
635
  });
636
636
  if (allowAdvancedToolBarOptions && allowCommentsOnMedia) {
637
- // TODO: add separator when overflow menu is added
637
+ // TODO: ED-26962 - add separator when overflow menu is added
638
638
  toolbarButtons.push(commentButton(intl, state, pluginInjectionApi));
639
639
  }
640
640
  return toolbarButtons;
@@ -760,6 +760,8 @@ export var floatingToolbar = function floatingToolbar(state, intl) {
760
760
  }, {
761
761
  title: 'Resize',
762
762
  onClick: function onClick() {
763
+ // Ignored via go/ees007
764
+ // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
763
765
  // TODO open resize dialog?
764
766
  return true;
765
767
  },
@@ -243,7 +243,7 @@ var getMediaInlineImageToolbar = function getMediaInlineImageToolbar(state, intl
243
243
  });
244
244
  }
245
245
 
246
- // TODO: editor controls move to overflow menu
246
+ // TODO: ED-26961 - editor controls move to overflow menu
247
247
  if (editorExperiment('platform_editor_controls', 'control')) {
248
248
  inlineImageItems.push({
249
249
  type: 'custom',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "2.3.6",
3
+ "version": "2.3.7",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/analytics-namespaced-context": "^7.0.0",
39
39
  "@atlaskit/analytics-next": "^11.0.0",
40
40
  "@atlaskit/button": "^21.1.0",
41
- "@atlaskit/editor-common": "^102.0.0",
41
+ "@atlaskit/editor-common": "^102.4.0",
42
42
  "@atlaskit/editor-palette": "^2.0.0",
43
43
  "@atlaskit/editor-plugin-analytics": "^2.1.0",
44
44
  "@atlaskit/editor-plugin-annotation": "^2.1.0",
@@ -46,17 +46,17 @@
46
46
  "@atlaskit/editor-plugin-decorations": "^2.0.0",
47
47
  "@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
48
48
  "@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
49
- "@atlaskit/editor-plugin-floating-toolbar": "^3.1.0",
49
+ "@atlaskit/editor-plugin-floating-toolbar": "^3.2.0",
50
50
  "@atlaskit/editor-plugin-focus": "^1.5.0",
51
51
  "@atlaskit/editor-plugin-grid": "^2.0.0",
52
52
  "@atlaskit/editor-plugin-guideline": "^2.0.0",
53
- "@atlaskit/editor-plugin-selection": "^2.0.0",
53
+ "@atlaskit/editor-plugin-selection": "^2.1.0",
54
54
  "@atlaskit/editor-plugin-width": "^3.0.0",
55
55
  "@atlaskit/editor-prosemirror": "7.0.0",
56
56
  "@atlaskit/editor-shared-styles": "^3.4.0",
57
57
  "@atlaskit/editor-tables": "^2.9.0",
58
58
  "@atlaskit/form": "^12.0.0",
59
- "@atlaskit/icon": "^24.1.0",
59
+ "@atlaskit/icon": "^25.0.0",
60
60
  "@atlaskit/media-card": "^79.0.0",
61
61
  "@atlaskit/media-client": "^32.0.0",
62
62
  "@atlaskit/media-client-react": "^4.0.0",
@@ -69,8 +69,8 @@
69
69
  "@atlaskit/primitives": "^14.1.0",
70
70
  "@atlaskit/textfield": "^8.0.0",
71
71
  "@atlaskit/theme": "^18.0.0",
72
- "@atlaskit/tmp-editor-statsig": "^3.4.0",
73
- "@atlaskit/tokens": "^4.3.0",
72
+ "@atlaskit/tmp-editor-statsig": "^3.6.0",
73
+ "@atlaskit/tokens": "^4.4.0",
74
74
  "@atlaskit/tooltip": "^20.0.0",
75
75
  "@babel/runtime": "^7.0.0",
76
76
  "@emotion/react": "^11.7.1",
@@ -164,9 +164,6 @@
164
164
  },
165
165
  "platform_editor_safari_media_clipboard_fix": {
166
166
  "type": "boolean"
167
- },
168
- "dlp_cc-enforce-attachment-dl-dsp": {
169
- "type": "boolean"
170
167
  }
171
168
  },
172
169
  "stricter": {