@atlaskit/editor-plugin-media 4.1.4 → 4.1.6
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 +17 -0
- package/dist/cjs/nodeviews/mediaSingle.js +1 -2
- package/dist/cjs/ui/toolbar/alt-text.js +5 -1
- package/dist/es2019/nodeviews/mediaSingle.js +1 -2
- package/dist/es2019/ui/toolbar/alt-text.js +5 -1
- package/dist/esm/nodeviews/mediaSingle.js +1 -2
- package/dist/esm/ui/toolbar/alt-text.js +5 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 4.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#180346](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/180346)
|
|
8
|
+
[`d00d1d362bd18`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d00d1d362bd18) -
|
|
9
|
+
ED-28086 Clean up platform_editor_no_cursor_on_live_doc_init
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 4.1.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#180410](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/180410)
|
|
17
|
+
[`04eb4c41a97ee`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/04eb4c41a97ee) -
|
|
18
|
+
[ux] [ED-27804] Update alt text icon for media toolbar
|
|
19
|
+
|
|
3
20
|
## 4.1.4
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -19,7 +19,6 @@ var _providerFactory = require("@atlaskit/editor-common/provider-factory");
|
|
|
19
19
|
var _reactNodeView = _interopRequireDefault(require("@atlaskit/editor-common/react-node-view"));
|
|
20
20
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
21
21
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
22
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
23
22
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
24
23
|
var _main = require("../pm-plugins/main");
|
|
25
24
|
var _mediaSingleNext = require("./mediaSingleNext");
|
|
@@ -106,7 +105,7 @@ var MediaSingleNodeWrapper = function MediaSingleNodeWrapper(_ref) {
|
|
|
106
105
|
mediaOptions: mediaOptions,
|
|
107
106
|
view: view,
|
|
108
107
|
fullWidthMode: fullWidthMode,
|
|
109
|
-
selected:
|
|
108
|
+
selected: isSelectedAndInteracted,
|
|
110
109
|
eventDispatcher: eventDispatcher,
|
|
111
110
|
addPendingTask: addPendingTask,
|
|
112
111
|
isDrafting: isDrafting,
|
|
@@ -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(
|
|
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'
|
|
@@ -13,7 +13,6 @@ import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
|
13
13
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
14
14
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
15
15
|
import { isNodeSelectedOrInRange } from '@atlaskit/editor-common/utils';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
17
|
import { MEDIA_CONTENT_WRAP_CLASS_NAME } from '../pm-plugins/main';
|
|
19
18
|
import { MediaSingleNodeNext } from './mediaSingleNext';
|
|
@@ -92,7 +91,7 @@ const MediaSingleNodeWrapper = ({
|
|
|
92
91
|
mediaOptions: mediaOptions,
|
|
93
92
|
view: view,
|
|
94
93
|
fullWidthMode: fullWidthMode,
|
|
95
|
-
selected:
|
|
94
|
+
selected: isSelectedAndInteracted,
|
|
96
95
|
eventDispatcher: eventDispatcher,
|
|
97
96
|
addPendingTask: addPendingTask,
|
|
98
97
|
isDrafting: isDrafting,
|
|
@@ -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(
|
|
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'
|
|
@@ -22,7 +22,6 @@ import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
|
22
22
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
23
23
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
24
24
|
import { isNodeSelectedOrInRange } from '@atlaskit/editor-common/utils';
|
|
25
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
26
25
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
27
26
|
import { MEDIA_CONTENT_WRAP_CLASS_NAME } from '../pm-plugins/main';
|
|
28
27
|
import { MediaSingleNodeNext } from './mediaSingleNext';
|
|
@@ -102,7 +101,7 @@ var MediaSingleNodeWrapper = function MediaSingleNodeWrapper(_ref) {
|
|
|
102
101
|
mediaOptions: mediaOptions,
|
|
103
102
|
view: view,
|
|
104
103
|
fullWidthMode: fullWidthMode,
|
|
105
|
-
selected:
|
|
104
|
+
selected: isSelectedAndInteracted,
|
|
106
105
|
eventDispatcher: eventDispatcher,
|
|
107
106
|
addPendingTask: addPendingTask,
|
|
108
107
|
isDrafting: isDrafting,
|
|
@@ -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(
|
|
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
|
+
"version": "4.1.6",
|
|
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.
|
|
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",
|
|
@@ -174,9 +175,6 @@
|
|
|
174
175
|
"platform_editor_fix_image_size_diff_during_ssr": {
|
|
175
176
|
"type": "boolean"
|
|
176
177
|
},
|
|
177
|
-
"platform_editor_no_cursor_on_live_doc_init": {
|
|
178
|
-
"type": "boolean"
|
|
179
|
-
},
|
|
180
178
|
"platform_editor_track_media_fail_to_insert": {
|
|
181
179
|
"type": "boolean"
|
|
182
180
|
},
|
|
@@ -185,6 +183,9 @@
|
|
|
185
183
|
},
|
|
186
184
|
"platform_media_video_captions": {
|
|
187
185
|
"type": "boolean"
|
|
186
|
+
},
|
|
187
|
+
"platform_editor_controls_patch_15": {
|
|
188
|
+
"type": "boolean"
|
|
188
189
|
}
|
|
189
190
|
},
|
|
190
191
|
"stricter": {
|