@atlaskit/editor-plugin-media 4.1.4 → 4.1.5

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
+ ## 4.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#180410](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/180410)
8
+ [`04eb4c41a97ee`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/04eb4c41a97ee) -
9
+ [ux] [ED-27804] Update alt text icon for media toolbar
10
+
3
11
  ## 4.1.4
4
12
 
5
13
  ### Patch Changes
@@ -12,7 +12,9 @@ var _media = require("@atlaskit/editor-common/media");
12
12
  var _styles = require("@atlaskit/editor-common/styles");
13
13
  var _ui = require("@atlaskit/editor-common/ui");
14
14
  var _state = require("@atlaskit/editor-prosemirror/state");
15
+ var _imageAltText = _interopRequireDefault(require("@atlaskit/icon-lab/core/image-alt-text"));
15
16
  var _text = _interopRequireDefault(require("@atlaskit/icon/core/text"));
17
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
18
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
17
19
  var _commands = require("../../pm-plugins/alt-text/commands");
18
20
  var _AltTextEdit = _interopRequireDefault(require("../../pm-plugins/alt-text/ui/AltTextEdit"));
@@ -96,7 +98,9 @@ var getAltTextDropdownOption = exports.getAltTextDropdownOption = function getAl
96
98
  return [{
97
99
  title: formatMessage(_media.altTextMessages.addAltText),
98
100
  onClick: (0, _commands.openMediaAltTextMenu)(editorAnalyticsAPI),
99
- icon: /*#__PURE__*/_react.default.createElement(_text.default, {
101
+ icon: (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_15') ? /*#__PURE__*/_react.default.createElement(_imageAltText.default, {
102
+ label: ""
103
+ }) : /*#__PURE__*/_react.default.createElement(_text.default, {
100
104
  label: ""
101
105
  }),
102
106
  testId: 'media-alt-text-dropdown-option'
@@ -4,7 +4,9 @@ import { altTextMessages as messages } from '@atlaskit/editor-common/media';
4
4
  import { MediaSharedClassNames as ClassNames } from '@atlaskit/editor-common/styles';
5
5
  import { RECENT_SEARCH_WIDTH_IN_PX as CONTAINER_WIDTH_IN_PX } from '@atlaskit/editor-common/ui';
6
6
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
7
+ import ImageAltTextIcon from '@atlaskit/icon-lab/core/image-alt-text';
7
8
  import TextIcon from '@atlaskit/icon/core/text';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
8
10
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
9
11
  import { openMediaAltTextMenu } from '../../pm-plugins/alt-text/commands';
10
12
  import AltTextEdit from '../../pm-plugins/alt-text/ui/AltTextEdit';
@@ -92,7 +94,9 @@ export const getAltTextDropdownOption = (state, formatMessage, allowAltTextOnIma
92
94
  return [{
93
95
  title: formatMessage(messages.addAltText),
94
96
  onClick: openMediaAltTextMenu(editorAnalyticsAPI),
95
- icon: /*#__PURE__*/React.createElement(TextIcon, {
97
+ icon: fg('platform_editor_controls_patch_15') ? /*#__PURE__*/React.createElement(ImageAltTextIcon, {
98
+ label: ""
99
+ }) : /*#__PURE__*/React.createElement(TextIcon, {
96
100
  label: ""
97
101
  }),
98
102
  testId: 'media-alt-text-dropdown-option'
@@ -7,7 +7,9 @@ import { altTextMessages as messages } from '@atlaskit/editor-common/media';
7
7
  import { MediaSharedClassNames as ClassNames } from '@atlaskit/editor-common/styles';
8
8
  import { RECENT_SEARCH_WIDTH_IN_PX as CONTAINER_WIDTH_IN_PX } from '@atlaskit/editor-common/ui';
9
9
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
10
+ import ImageAltTextIcon from '@atlaskit/icon-lab/core/image-alt-text';
10
11
  import TextIcon from '@atlaskit/icon/core/text';
12
+ import { fg } from '@atlaskit/platform-feature-flags';
11
13
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
12
14
  import { openMediaAltTextMenu } from '../../pm-plugins/alt-text/commands';
13
15
  import AltTextEdit from '../../pm-plugins/alt-text/ui/AltTextEdit';
@@ -89,7 +91,9 @@ export var getAltTextDropdownOption = function getAltTextDropdownOption(state, f
89
91
  return [{
90
92
  title: formatMessage(messages.addAltText),
91
93
  onClick: openMediaAltTextMenu(editorAnalyticsAPI),
92
- icon: /*#__PURE__*/React.createElement(TextIcon, {
94
+ icon: fg('platform_editor_controls_patch_15') ? /*#__PURE__*/React.createElement(ImageAltTextIcon, {
95
+ label: ""
96
+ }) : /*#__PURE__*/React.createElement(TextIcon, {
93
97
  label: ""
94
98
  }),
95
99
  testId: 'media-alt-text-dropdown-option'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "4.1.4",
3
+ "version": "4.1.5",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -57,13 +57,14 @@
57
57
  "@atlaskit/editor-tables": "^2.9.0",
58
58
  "@atlaskit/form": "^12.0.0",
59
59
  "@atlaskit/icon": "^27.2.0",
60
+ "@atlaskit/icon-lab": "^5.1.0",
60
61
  "@atlaskit/media-card": "^79.3.0",
61
62
  "@atlaskit/media-client": "^35.0.0",
62
63
  "@atlaskit/media-client-react": "^4.1.0",
63
64
  "@atlaskit/media-common": "^12.3.0",
64
65
  "@atlaskit/media-filmstrip": "^51.0.0",
65
66
  "@atlaskit/media-picker": "^70.0.0",
66
- "@atlaskit/media-ui": "^28.5.0",
67
+ "@atlaskit/media-ui": "^28.6.0",
67
68
  "@atlaskit/media-viewer": "^52.4.0",
68
69
  "@atlaskit/platform-feature-flags": "^1.1.0",
69
70
  "@atlaskit/primitives": "^14.10.0",
@@ -185,6 +186,9 @@
185
186
  },
186
187
  "platform_media_video_captions": {
187
188
  "type": "boolean"
189
+ },
190
+ "platform_editor_controls_patch_15": {
191
+ "type": "boolean"
188
192
  }
189
193
  },
190
194
  "stricter": {