@atlaskit/editor-plugin-media 5.4.3 → 6.0.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
|
+
## 6.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`eaaa054620847`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/eaaa054620847) -
|
|
8
|
+
Cleanup media toolbar performance experiment
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 5.4.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`15d43fdcf6ec2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/15d43fdcf6ec2) -
|
|
16
|
+
PR to cleanup platform_editor_usesharedpluginstatewithselector for `media`
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 5.4.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -731,10 +731,8 @@ var floatingToolbar = exports.floatingToolbar = function floatingToolbar(state,
|
|
|
731
731
|
}
|
|
732
732
|
var nodeType = allowMediaInline ? [mediaInline, mediaSingle, media] : [mediaSingle];
|
|
733
733
|
var isSelectedNodeMediaSingle = state.selection instanceof _state2.NodeSelection && state.selection.node.type === mediaSingle;
|
|
734
|
-
if ((
|
|
735
|
-
|
|
736
|
-
return;
|
|
737
|
-
}
|
|
734
|
+
if (!isMediaSelection(state.selection, nodeType)) {
|
|
735
|
+
return;
|
|
738
736
|
}
|
|
739
737
|
var baseToolbar = {
|
|
740
738
|
title: 'Media floating controls',
|
|
@@ -731,10 +731,8 @@ export const floatingToolbar = (state, intl, options = {}, pluginInjectionApi) =
|
|
|
731
731
|
}
|
|
732
732
|
const nodeType = allowMediaInline ? [mediaInline, mediaSingle, media] : [mediaSingle];
|
|
733
733
|
const isSelectedNodeMediaSingle = state.selection instanceof NodeSelection && state.selection.node.type === mediaSingle;
|
|
734
|
-
if (
|
|
735
|
-
|
|
736
|
-
return;
|
|
737
|
-
}
|
|
734
|
+
if (!isMediaSelection(state.selection, nodeType)) {
|
|
735
|
+
return;
|
|
738
736
|
}
|
|
739
737
|
const baseToolbar = {
|
|
740
738
|
title: 'Media floating controls',
|
|
@@ -722,10 +722,8 @@ export var floatingToolbar = function floatingToolbar(state, intl) {
|
|
|
722
722
|
}
|
|
723
723
|
var nodeType = allowMediaInline ? [mediaInline, mediaSingle, media] : [mediaSingle];
|
|
724
724
|
var isSelectedNodeMediaSingle = state.selection instanceof NodeSelection && state.selection.node.type === mediaSingle;
|
|
725
|
-
if (
|
|
726
|
-
|
|
727
|
-
return;
|
|
728
|
-
}
|
|
725
|
+
if (!isMediaSelection(state.selection, nodeType)) {
|
|
726
|
+
return;
|
|
729
727
|
}
|
|
730
728
|
var baseToolbar = {
|
|
731
729
|
title: 'Media floating controls',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,23 +34,23 @@
|
|
|
34
34
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
35
35
|
"@atlaskit/button": "^23.4.0",
|
|
36
36
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
37
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
38
|
-
"@atlaskit/editor-plugin-annotation": "^
|
|
39
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
40
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
41
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
42
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
43
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^
|
|
44
|
-
"@atlaskit/editor-plugin-focus": "^
|
|
45
|
-
"@atlaskit/editor-plugin-grid": "^
|
|
46
|
-
"@atlaskit/editor-plugin-guideline": "^
|
|
47
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
48
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
49
|
-
"@atlaskit/editor-plugin-width": "^
|
|
37
|
+
"@atlaskit/editor-plugin-analytics": "^4.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-annotation": "^4.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-connectivity": "^4.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-decorations": "^4.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-editor-disabled": "^4.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^6.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^6.0.0",
|
|
44
|
+
"@atlaskit/editor-plugin-focus": "^3.0.0",
|
|
45
|
+
"@atlaskit/editor-plugin-grid": "^4.0.0",
|
|
46
|
+
"@atlaskit/editor-plugin-guideline": "^4.0.0",
|
|
47
|
+
"@atlaskit/editor-plugin-interaction": "^6.0.0",
|
|
48
|
+
"@atlaskit/editor-plugin-selection": "^4.0.0",
|
|
49
|
+
"@atlaskit/editor-plugin-width": "^5.0.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
52
52
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
53
|
-
"@atlaskit/form": "^12.
|
|
53
|
+
"@atlaskit/form": "^12.4.0",
|
|
54
54
|
"@atlaskit/icon": "^28.1.0",
|
|
55
55
|
"@atlaskit/icon-lab": "^5.7.0",
|
|
56
56
|
"@atlaskit/media-card": "^79.5.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@atlaskit/primitives": "^14.12.0",
|
|
66
66
|
"@atlaskit/textfield": "^8.0.0",
|
|
67
67
|
"@atlaskit/theme": "^20.0.0",
|
|
68
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
68
|
+
"@atlaskit/tmp-editor-statsig": "^12.0.0",
|
|
69
69
|
"@atlaskit/tokens": "^6.1.0",
|
|
70
70
|
"@atlaskit/tooltip": "^20.4.0",
|
|
71
71
|
"@babel/runtime": "^7.0.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"uuid": "^3.1.0"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
|
-
"@atlaskit/editor-common": "^
|
|
80
|
+
"@atlaskit/editor-common": "^108.0.0",
|
|
81
81
|
"@atlaskit/media-core": "^37.0.0",
|
|
82
82
|
"react": "^18.2.0",
|
|
83
83
|
"react-dom": "^18.2.0",
|