@atlaskit/editor-plugin-media 17.1.1 → 17.2.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,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 17.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`d96f86ff344b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d96f86ff344b8) -
|
|
8
|
+
Use @atlaskit/platform-feature-experiments directly for
|
|
9
|
+
platform_editor_vc90_transition_expand_icon, platform_editor_add_image_editing,
|
|
10
|
+
platform_editor_ai_multi_format_streaming, platform_editor_default_toolbar_state,
|
|
11
|
+
platform_editor_early_exit_return_draft, platform_editor_fix_focus_MediaInsertPicker,
|
|
12
|
+
platform_editor_fix_table_move_shortcut, platform_editor_menu_radius_update,
|
|
13
|
+
platform_editor_react19_migration, and show_mentions_in_suggest_reply.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 17.1.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -34,7 +34,6 @@ var _mediaFilmstrip = require("@atlaskit/media-filmstrip");
|
|
|
34
34
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
35
35
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
36
36
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
37
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
38
37
|
var _styles = require("../../nodeviews/styles");
|
|
39
38
|
var _altText = require("../../pm-plugins/alt-text");
|
|
40
39
|
var _linking = require("../../pm-plugins/commands/linking");
|
|
@@ -573,7 +572,7 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
|
|
|
573
572
|
});
|
|
574
573
|
}
|
|
575
574
|
// Image Editing Support
|
|
576
|
-
if (!!(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.mediaEditing) && allowImageEditing && (0,
|
|
575
|
+
if (!!(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.mediaEditing) && allowImageEditing && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_add_image_editing')) {
|
|
577
576
|
var _mediaNode$attrs, _mediaNode$attrs2, _mediaNode$attrs3;
|
|
578
577
|
var _selectedMediaSingleNode = (0, _utils2.getSelectedMediaSingle)(state);
|
|
579
578
|
var mediaNode = _selectedMediaSingleNode === null || _selectedMediaSingleNode === void 0 ? void 0 : _selectedMediaSingleNode.node.content.firstChild;
|
|
@@ -718,7 +717,7 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
|
|
|
718
717
|
}])));
|
|
719
718
|
}
|
|
720
719
|
}
|
|
721
|
-
if (allowAdvancedToolBarOptions && allowImageEditing && (0,
|
|
720
|
+
if (allowAdvancedToolBarOptions && allowImageEditing && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_add_image_editing')) {
|
|
722
721
|
var _mediaNode3$attrs, _mediaNode3$attrs2, _mediaNode3$attrs3;
|
|
723
722
|
var _selectedMediaSingleNode4 = (0, _utils2.getSelectedMediaSingle)(state);
|
|
724
723
|
var _mediaNode3 = _selectedMediaSingleNode4 === null || _selectedMediaSingleNode4 === void 0 ? void 0 : _selectedMediaSingleNode4.node.content.firstChild;
|
|
@@ -24,7 +24,6 @@ import { mediaFilmstripItemDOMSelector } from '@atlaskit/media-filmstrip';
|
|
|
24
24
|
import { messages } from '@atlaskit/media-ui';
|
|
25
25
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
26
26
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
27
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
28
27
|
import { MediaSingleNodeSelector } from '../../nodeviews/styles';
|
|
29
28
|
import { getPluginState as getMediaAltTextPluginState } from '../../pm-plugins/alt-text';
|
|
30
29
|
import { showLinkingToolbar } from '../../pm-plugins/commands/linking';
|
|
@@ -571,7 +570,7 @@ const generateMediaSingleFloatingToolbar = (state, intl, options, pluginState, m
|
|
|
571
570
|
});
|
|
572
571
|
}
|
|
573
572
|
// Image Editing Support
|
|
574
|
-
if (!!(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.mediaEditing) && allowImageEditing &&
|
|
573
|
+
if (!!(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.mediaEditing) && allowImageEditing && isExperimentEnabled('platform_editor_add_image_editing')) {
|
|
575
574
|
var _mediaNode$attrs, _mediaNode$attrs2, _mediaNode$attrs3;
|
|
576
575
|
const selectedMediaSingleNode = getSelectedMediaSingle(state);
|
|
577
576
|
const mediaNode = selectedMediaSingleNode === null || selectedMediaSingleNode === void 0 ? void 0 : selectedMediaSingleNode.node.content.firstChild;
|
|
@@ -714,7 +713,7 @@ const generateMediaSingleFloatingToolbar = (state, intl, options, pluginState, m
|
|
|
714
713
|
}]));
|
|
715
714
|
}
|
|
716
715
|
}
|
|
717
|
-
if (allowAdvancedToolBarOptions && allowImageEditing &&
|
|
716
|
+
if (allowAdvancedToolBarOptions && allowImageEditing && isExperimentEnabled('platform_editor_add_image_editing')) {
|
|
718
717
|
var _mediaNode$attrs6, _mediaNode$attrs7, _mediaNode$attrs8;
|
|
719
718
|
const selectedMediaSingleNode = getSelectedMediaSingle(state);
|
|
720
719
|
const mediaNode = selectedMediaSingleNode === null || selectedMediaSingleNode === void 0 ? void 0 : selectedMediaSingleNode.node.content.firstChild;
|
|
@@ -28,7 +28,6 @@ import { mediaFilmstripItemDOMSelector } from '@atlaskit/media-filmstrip';
|
|
|
28
28
|
import { messages } from '@atlaskit/media-ui';
|
|
29
29
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
30
30
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
31
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
32
31
|
import { MediaSingleNodeSelector } from '../../nodeviews/styles';
|
|
33
32
|
import { getPluginState as getMediaAltTextPluginState } from '../../pm-plugins/alt-text';
|
|
34
33
|
import { showLinkingToolbar } from '../../pm-plugins/commands/linking';
|
|
@@ -564,7 +563,7 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
|
|
|
564
563
|
});
|
|
565
564
|
}
|
|
566
565
|
// Image Editing Support
|
|
567
|
-
if (!!(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.mediaEditing) && allowImageEditing &&
|
|
566
|
+
if (!!(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.mediaEditing) && allowImageEditing && isExperimentEnabled('platform_editor_add_image_editing')) {
|
|
568
567
|
var _mediaNode$attrs, _mediaNode$attrs2, _mediaNode$attrs3;
|
|
569
568
|
var _selectedMediaSingleNode = getSelectedMediaSingle(state);
|
|
570
569
|
var mediaNode = _selectedMediaSingleNode === null || _selectedMediaSingleNode === void 0 ? void 0 : _selectedMediaSingleNode.node.content.firstChild;
|
|
@@ -709,7 +708,7 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
|
|
|
709
708
|
}])));
|
|
710
709
|
}
|
|
711
710
|
}
|
|
712
|
-
if (allowAdvancedToolBarOptions && allowImageEditing &&
|
|
711
|
+
if (allowAdvancedToolBarOptions && allowImageEditing && isExperimentEnabled('platform_editor_add_image_editing')) {
|
|
713
712
|
var _mediaNode3$attrs, _mediaNode3$attrs2, _mediaNode3$attrs3;
|
|
714
713
|
var _selectedMediaSingleNode4 = getSelectedMediaSingle(state);
|
|
715
714
|
var _mediaNode3 = _selectedMediaSingleNode4 === null || _selectedMediaSingleNode4 === void 0 ? void 0 : _selectedMediaSingleNode4.node.content.firstChild;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.2.0",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@atlaskit/adf-schema": "^57.0.0",
|
|
25
25
|
"@atlaskit/analytics-namespaced-context": "^8.1.0",
|
|
26
26
|
"@atlaskit/analytics-next": "^12.3.0",
|
|
27
|
-
"@atlaskit/button": "^25.
|
|
27
|
+
"@atlaskit/button": "^25.2.0",
|
|
28
28
|
"@atlaskit/editor-palette": "^3.4.0",
|
|
29
29
|
"@atlaskit/editor-plugin-analytics": "^15.0.0",
|
|
30
30
|
"@atlaskit/editor-plugin-annotation": "^15.0.0",
|
|
@@ -45,24 +45,24 @@
|
|
|
45
45
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
46
46
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
47
47
|
"@atlaskit/editor-tables": "^3.0.0",
|
|
48
|
-
"@atlaskit/form": "^17.
|
|
49
|
-
"@atlaskit/icon": "^37.
|
|
50
|
-
"@atlaskit/icon-lab": "^7.
|
|
51
|
-
"@atlaskit/media-card": "^81.
|
|
52
|
-
"@atlaskit/media-client": "^37.
|
|
53
|
-
"@atlaskit/media-client-react": "^6.
|
|
54
|
-
"@atlaskit/media-common": "^14.
|
|
55
|
-
"@atlaskit/media-filmstrip": "^52.
|
|
56
|
-
"@atlaskit/media-picker": "^72.
|
|
57
|
-
"@atlaskit/media-ui": "^30.
|
|
58
|
-
"@atlaskit/media-viewer": "^54.
|
|
48
|
+
"@atlaskit/form": "^17.1.0",
|
|
49
|
+
"@atlaskit/icon": "^37.5.0",
|
|
50
|
+
"@atlaskit/icon-lab": "^7.7.0",
|
|
51
|
+
"@atlaskit/media-card": "^81.7.0",
|
|
52
|
+
"@atlaskit/media-client": "^37.5.0",
|
|
53
|
+
"@atlaskit/media-client-react": "^6.2.0",
|
|
54
|
+
"@atlaskit/media-common": "^14.5.0",
|
|
55
|
+
"@atlaskit/media-filmstrip": "^52.3.0",
|
|
56
|
+
"@atlaskit/media-picker": "^72.3.0",
|
|
57
|
+
"@atlaskit/media-ui": "^30.12.0",
|
|
58
|
+
"@atlaskit/media-viewer": "^54.6.0",
|
|
59
59
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
60
60
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
61
|
-
"@atlaskit/primitives": "^22.
|
|
62
|
-
"@atlaskit/textfield": "^10.
|
|
63
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
64
|
-
"@atlaskit/tokens": "^16.
|
|
65
|
-
"@atlaskit/tooltip": "^24.
|
|
61
|
+
"@atlaskit/primitives": "^22.4.0",
|
|
62
|
+
"@atlaskit/textfield": "^10.1.0",
|
|
63
|
+
"@atlaskit/tmp-editor-statsig": "^157.0.0",
|
|
64
|
+
"@atlaskit/tokens": "^16.8.0",
|
|
65
|
+
"@atlaskit/tooltip": "^24.2.0",
|
|
66
66
|
"@babel/runtime": "^7.0.0",
|
|
67
67
|
"@emotion/react": "^11.7.1",
|
|
68
68
|
"bind-event-listener": "^3.0.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"uuid": "^3.1.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^119.
|
|
75
|
+
"@atlaskit/editor-common": "^119.13.0",
|
|
76
76
|
"@atlaskit/media-core": "^38.0.0",
|
|
77
77
|
"react": "^18.2.0 || ^19.2.0",
|
|
78
78
|
"react-dom": "^18.2.0 || ^19.2.0",
|