@atlaskit/editor-plugin-media 17.0.7 → 17.1.0
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,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 17.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`a285770e5decb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a285770e5decb) -
|
|
8
|
+
Use @atlaskit/platform-feature-experiments directly for platform_editor_ai_move_node,
|
|
9
|
+
platform_editor_confluence_base_preset, platform_editor_inline_media_replacement, and
|
|
10
|
+
platform_editor_lovability_color_schema_change.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 17.0.8
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 17.0.7
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -32,6 +32,7 @@ var _smartLinkCard = _interopRequireDefault(require("@atlaskit/icon/core/smart-l
|
|
|
32
32
|
var _upload = _interopRequireDefault(require("@atlaskit/icon/core/upload"));
|
|
33
33
|
var _mediaFilmstrip = require("@atlaskit/media-filmstrip");
|
|
34
34
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
35
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
35
36
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
36
37
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
37
38
|
var _styles = require("../../nodeviews/styles");
|
|
@@ -903,7 +904,7 @@ var floatingToolbar = exports.floatingToolbar = function floatingToolbar(state,
|
|
|
903
904
|
if (!(0, _platformFeatureFlags.fg)('cc-maui-toolbar-separators-update')) {
|
|
904
905
|
(0, _utils2.updateToFullHeightSeparator)(items);
|
|
905
906
|
}
|
|
906
|
-
var showReplaceOption = !isViewOnly && mediaPluginState.allowsUploads && (0,
|
|
907
|
+
var showReplaceOption = !isViewOnly && mediaPluginState.allowsUploads && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_inline_media_replacement') && selectedNodeType === mediaSingle;
|
|
907
908
|
var customOptions = [].concat((0, _toConsumableArray2.default)((0, _linking3.getLinkingDropdownOptions)(state, intl, mediaLinkingState, allowMediaInline && selectedNodeType && selectedNodeType === mediaInline, allowLinking, isViewOnly)), (0, _toConsumableArray2.default)((0, _altText2.getAltTextDropdownOption)(state, intl.formatMessage, allowAltTextOnImages, selectedNodeType, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a0 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a0 === void 0 ? void 0 : _pluginInjectionApi$a0.actions)), (0, _toConsumableArray2.default)((0, _pixelResizing2.getResizeDropdownOption)(options, state, intl.formatMessage, selectedNodeType)));
|
|
908
909
|
if (customOptions.length) {
|
|
909
910
|
customOptions.push({
|
|
@@ -22,6 +22,7 @@ import SmartLinkCardIcon from '@atlaskit/icon/core/smart-link-card';
|
|
|
22
22
|
import UploadIcon from '@atlaskit/icon/core/upload';
|
|
23
23
|
import { mediaFilmstripItemDOMSelector } from '@atlaskit/media-filmstrip';
|
|
24
24
|
import { messages } from '@atlaskit/media-ui';
|
|
25
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
25
26
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
26
27
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
27
28
|
import { MediaSingleNodeSelector } from '../../nodeviews/styles';
|
|
@@ -901,7 +902,7 @@ export const floatingToolbar = (state, intl, options = {}, pluginInjectionApi) =
|
|
|
901
902
|
if (!fg('cc-maui-toolbar-separators-update')) {
|
|
902
903
|
updateToFullHeightSeparator(items);
|
|
903
904
|
}
|
|
904
|
-
const showReplaceOption = !isViewOnly && mediaPluginState.allowsUploads &&
|
|
905
|
+
const showReplaceOption = !isViewOnly && mediaPluginState.allowsUploads && isExperimentEnabled('platform_editor_inline_media_replacement') && selectedNodeType === mediaSingle;
|
|
905
906
|
const customOptions = [...getLinkingDropdownOptions(state, intl, mediaLinkingState, allowMediaInline && selectedNodeType && selectedNodeType === mediaInline, allowLinking, isViewOnly), ...getAltTextDropdownOption(state, intl.formatMessage, allowAltTextOnImages, selectedNodeType, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a0 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a0 === void 0 ? void 0 : _pluginInjectionApi$a0.actions), ...getResizeDropdownOption(options, state, intl.formatMessage, selectedNodeType)];
|
|
906
907
|
if (customOptions.length) {
|
|
907
908
|
customOptions.push({
|
|
@@ -26,6 +26,7 @@ import SmartLinkCardIcon from '@atlaskit/icon/core/smart-link-card';
|
|
|
26
26
|
import UploadIcon from '@atlaskit/icon/core/upload';
|
|
27
27
|
import { mediaFilmstripItemDOMSelector } from '@atlaskit/media-filmstrip';
|
|
28
28
|
import { messages } from '@atlaskit/media-ui';
|
|
29
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
29
30
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
30
31
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
31
32
|
import { MediaSingleNodeSelector } from '../../nodeviews/styles';
|
|
@@ -894,7 +895,7 @@ export var floatingToolbar = function floatingToolbar(state, intl) {
|
|
|
894
895
|
if (!fg('cc-maui-toolbar-separators-update')) {
|
|
895
896
|
updateToFullHeightSeparator(items);
|
|
896
897
|
}
|
|
897
|
-
var showReplaceOption = !isViewOnly && mediaPluginState.allowsUploads &&
|
|
898
|
+
var showReplaceOption = !isViewOnly && mediaPluginState.allowsUploads && isExperimentEnabled('platform_editor_inline_media_replacement') && selectedNodeType === mediaSingle;
|
|
898
899
|
var customOptions = [].concat(_toConsumableArray(getLinkingDropdownOptions(state, intl, mediaLinkingState, allowMediaInline && selectedNodeType && selectedNodeType === mediaInline, allowLinking, isViewOnly)), _toConsumableArray(getAltTextDropdownOption(state, intl.formatMessage, allowAltTextOnImages, selectedNodeType, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a0 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a0 === void 0 ? void 0 : _pluginInjectionApi$a0.actions)), _toConsumableArray(getResizeDropdownOption(options, state, intl.formatMessage, selectedNodeType)));
|
|
899
900
|
if (customOptions.length) {
|
|
900
901
|
customOptions.push({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "17.0
|
|
3
|
+
"version": "17.1.0",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,19 +49,20 @@
|
|
|
49
49
|
"@atlaskit/icon": "^37.4.0",
|
|
50
50
|
"@atlaskit/icon-lab": "^7.6.0",
|
|
51
51
|
"@atlaskit/media-card": "^81.6.0",
|
|
52
|
-
"@atlaskit/media-client": "^37.
|
|
52
|
+
"@atlaskit/media-client": "^37.3.0",
|
|
53
53
|
"@atlaskit/media-client-react": "^6.1.0",
|
|
54
54
|
"@atlaskit/media-common": "^14.4.0",
|
|
55
55
|
"@atlaskit/media-filmstrip": "^52.2.0",
|
|
56
56
|
"@atlaskit/media-picker": "^72.2.0",
|
|
57
57
|
"@atlaskit/media-ui": "^30.11.0",
|
|
58
58
|
"@atlaskit/media-viewer": "^54.5.0",
|
|
59
|
+
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
59
60
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
60
|
-
"@atlaskit/primitives": "^22.
|
|
61
|
+
"@atlaskit/primitives": "^22.3.0",
|
|
61
62
|
"@atlaskit/textfield": "^10.0.0",
|
|
62
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
63
|
+
"@atlaskit/tmp-editor-statsig": "^155.0.0",
|
|
63
64
|
"@atlaskit/tokens": "^16.7.0",
|
|
64
|
-
"@atlaskit/tooltip": "^24.
|
|
65
|
+
"@atlaskit/tooltip": "^24.1.0",
|
|
65
66
|
"@babel/runtime": "^7.0.0",
|
|
66
67
|
"@emotion/react": "^11.7.1",
|
|
67
68
|
"bind-event-listener": "^3.0.0",
|
|
@@ -71,7 +72,7 @@
|
|
|
71
72
|
"uuid": "^3.1.0"
|
|
72
73
|
},
|
|
73
74
|
"peerDependencies": {
|
|
74
|
-
"@atlaskit/editor-common": "^119.
|
|
75
|
+
"@atlaskit/editor-common": "^119.10.0",
|
|
75
76
|
"@atlaskit/media-core": "^38.0.0",
|
|
76
77
|
"react": "^18.2.0 || ^19.2.0",
|
|
77
78
|
"react-dom": "^18.2.0 || ^19.2.0",
|