@atlaskit/editor-plugin-media 2.3.12 → 2.3.13

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,14 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 2.3.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [#130882](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130882)
8
+ [`df1c29f476539`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/df1c29f476539) -
9
+ [ux] Adds a new i18n message and updates icons and tooltips on links, media and extensions.
10
+ - Updated dependencies
11
+
3
12
  ## 2.3.12
4
13
 
5
14
  ### Patch Changes
@@ -377,17 +377,19 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
377
377
  });
378
378
  } else {
379
379
  var _pluginInjectionApi$a5;
380
+ var inlineTitle = intl.formatMessage(_messages.mediaAndEmbedToolbarMessages.changeToMediaInlineImage);
380
381
  var _options2 = [{
381
382
  id: 'editor.media.convert.mediainline',
382
- title: inlineSwitcherTitle,
383
+ title: inlineTitle,
383
384
  onClick: (0, _commands3.changeMediaSingleToMediaInline)(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a5 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a5 === void 0 ? void 0 : _pluginInjectionApi$a5.actions),
384
385
  icon: /*#__PURE__*/_react.default.createElement(_imageInline.default, {
385
386
  color: "currentColor",
386
387
  spacing: "spacious",
387
- label: inlineSwitcherTitle,
388
+ label: inlineTitle,
388
389
  LEGACY_size: "medium",
389
390
  LEGACY_fallbackIcon: _card.IconInline
390
- })
391
+ }),
392
+ tooltip: hasCaption ? inlineSwitcherTitle : undefined
391
393
  }, {
392
394
  id: 'editor.media.convert.mediasingle',
393
395
  title: floatingSwitcherTitle,
@@ -364,17 +364,19 @@ const generateMediaSingleFloatingToolbar = (state, intl, options, pluginState, m
364
364
  });
365
365
  } else {
366
366
  var _pluginInjectionApi$a5;
367
+ const inlineTitle = intl.formatMessage(mediaAndEmbedToolbarMessages.changeToMediaInlineImage);
367
368
  const options = [{
368
369
  id: 'editor.media.convert.mediainline',
369
- title: inlineSwitcherTitle,
370
+ title: inlineTitle,
370
371
  onClick: changeMediaSingleToMediaInline(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a5 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a5 === void 0 ? void 0 : _pluginInjectionApi$a5.actions),
371
372
  icon: /*#__PURE__*/React.createElement(ImageInlineIcon, {
372
373
  color: "currentColor",
373
374
  spacing: "spacious",
374
- label: inlineSwitcherTitle,
375
+ label: inlineTitle,
375
376
  LEGACY_size: "medium",
376
377
  LEGACY_fallbackIcon: IconInline
377
- })
378
+ }),
379
+ tooltip: hasCaption ? inlineSwitcherTitle : undefined
378
380
  }, {
379
381
  id: 'editor.media.convert.mediasingle',
380
382
  title: floatingSwitcherTitle,
@@ -367,17 +367,19 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
367
367
  });
368
368
  } else {
369
369
  var _pluginInjectionApi$a5;
370
+ var inlineTitle = intl.formatMessage(mediaAndEmbedToolbarMessages.changeToMediaInlineImage);
370
371
  var _options2 = [{
371
372
  id: 'editor.media.convert.mediainline',
372
- title: inlineSwitcherTitle,
373
+ title: inlineTitle,
373
374
  onClick: changeMediaSingleToMediaInline(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a5 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a5 === void 0 ? void 0 : _pluginInjectionApi$a5.actions),
374
375
  icon: /*#__PURE__*/React.createElement(ImageInlineIcon, {
375
376
  color: "currentColor",
376
377
  spacing: "spacious",
377
- label: inlineSwitcherTitle,
378
+ label: inlineTitle,
378
379
  LEGACY_size: "medium",
379
380
  LEGACY_fallbackIcon: IconInline
380
- })
381
+ }),
382
+ tooltip: hasCaption ? inlineSwitcherTitle : undefined
381
383
  }, {
382
384
  id: 'editor.media.convert.mediasingle',
383
385
  title: floatingSwitcherTitle,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "2.3.12",
3
+ "version": "2.3.13",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",