@atlaskit/editor-plugin-media 4.1.3 → 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,19 @@
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
+
11
+ ## 4.1.4
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 4.1.3
4
18
 
5
19
  ### 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.3",
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",
@@ -9,8 +9,7 @@
9
9
  },
10
10
  "atlassian": {
11
11
  "team": "Editor: Core Experiences",
12
- "singleton": true,
13
- "runReact18": true
12
+ "singleton": true
14
13
  },
15
14
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
16
15
  "main": "dist/cjs/index.js",
@@ -38,7 +37,7 @@
38
37
  "@atlaskit/analytics-namespaced-context": "^7.0.0",
39
38
  "@atlaskit/analytics-next": "^11.1.0",
40
39
  "@atlaskit/button": "^23.2.0",
41
- "@atlaskit/editor-common": "^107.3.0",
40
+ "@atlaskit/editor-common": "^107.4.0",
42
41
  "@atlaskit/editor-palette": "^2.1.0",
43
42
  "@atlaskit/editor-plugin-analytics": "^2.3.0",
44
43
  "@atlaskit/editor-plugin-annotation": "^2.9.0",
@@ -58,19 +57,20 @@
58
57
  "@atlaskit/editor-tables": "^2.9.0",
59
58
  "@atlaskit/form": "^12.0.0",
60
59
  "@atlaskit/icon": "^27.2.0",
60
+ "@atlaskit/icon-lab": "^5.1.0",
61
61
  "@atlaskit/media-card": "^79.3.0",
62
- "@atlaskit/media-client": "^34.2.0",
62
+ "@atlaskit/media-client": "^35.0.0",
63
63
  "@atlaskit/media-client-react": "^4.1.0",
64
64
  "@atlaskit/media-common": "^12.3.0",
65
65
  "@atlaskit/media-filmstrip": "^51.0.0",
66
66
  "@atlaskit/media-picker": "^70.0.0",
67
- "@atlaskit/media-ui": "^28.5.0",
67
+ "@atlaskit/media-ui": "^28.6.0",
68
68
  "@atlaskit/media-viewer": "^52.4.0",
69
69
  "@atlaskit/platform-feature-flags": "^1.1.0",
70
70
  "@atlaskit/primitives": "^14.10.0",
71
71
  "@atlaskit/textfield": "^8.0.0",
72
72
  "@atlaskit/theme": "^18.0.0",
73
- "@atlaskit/tmp-editor-statsig": "^8.4.0",
73
+ "@atlaskit/tmp-editor-statsig": "^8.6.0",
74
74
  "@atlaskit/tokens": "^5.4.0",
75
75
  "@atlaskit/tooltip": "^20.3.0",
76
76
  "@babel/runtime": "^7.0.0",
@@ -186,6 +186,9 @@
186
186
  },
187
187
  "platform_media_video_captions": {
188
188
  "type": "boolean"
189
+ },
190
+ "platform_editor_controls_patch_15": {
191
+ "type": "boolean"
189
192
  }
190
193
  },
191
194
  "stricter": {