@atlaskit/editor-plugin-media-insert 11.1.0 → 11.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,16 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media-insert
|
|
2
2
|
|
|
3
|
+
## 11.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`b367661ba720e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b367661ba720e) -
|
|
8
|
+
EDITOR-1562 bump adf-schema for afm
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 11.1.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
|
@@ -54,6 +54,9 @@ var mediaInsertPlugin = exports.mediaInsertPlugin = function mediaInsertPlugin(_
|
|
|
54
54
|
popupsMountPoint = _ref4.popupsMountPoint,
|
|
55
55
|
popupsBoundariesElement = _ref4.popupsBoundariesElement,
|
|
56
56
|
popupsScrollableElement = _ref4.popupsScrollableElement;
|
|
57
|
+
if (!editorView) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
57
60
|
var insertMediaSingle = function insertMediaSingle(_ref5) {
|
|
58
61
|
var _api$media$actions$in;
|
|
59
62
|
var mediaState = _ref5.mediaState,
|
|
@@ -47,6 +47,9 @@ export var mediaInsertPlugin = function mediaInsertPlugin(_ref) {
|
|
|
47
47
|
popupsMountPoint = _ref4.popupsMountPoint,
|
|
48
48
|
popupsBoundariesElement = _ref4.popupsBoundariesElement,
|
|
49
49
|
popupsScrollableElement = _ref4.popupsScrollableElement;
|
|
50
|
+
if (!editorView) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
50
53
|
var insertMediaSingle = function insertMediaSingle(_ref5) {
|
|
51
54
|
var _api$media$actions$in;
|
|
52
55
|
var mediaState = _ref5.mediaState,
|
|
@@ -2,6 +2,7 @@ import type { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
|
|
|
2
2
|
import type { Providers } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { UiComponentFactoryParams, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { type MediaState, type MediaStateEventSubscriber } from '@atlaskit/editor-plugin-media/types';
|
|
5
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
6
|
import type { MediaInsertPlugin, MediaInsertPluginConfig } from '../mediaInsertPluginType';
|
|
6
7
|
export type InsertMediaSingle = (props: {
|
|
7
8
|
inputMethod: InputMethodInsertMedia;
|
|
@@ -28,4 +29,6 @@ export type MediaInsertPickerProps = Pick<UiComponentFactoryParams, 'editorView'
|
|
|
28
29
|
insertMediaSingle: InsertMediaSingle;
|
|
29
30
|
isOnlyExternalLinks: MediaInsertPluginConfig['isOnlyExternalLinks'];
|
|
30
31
|
mediaProvider?: Providers['mediaProvider'];
|
|
32
|
+
} & {
|
|
33
|
+
editorView: EditorView;
|
|
31
34
|
};
|
|
@@ -2,6 +2,7 @@ import type { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
|
|
|
2
2
|
import type { Providers } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { UiComponentFactoryParams, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { type MediaState, type MediaStateEventSubscriber } from '@atlaskit/editor-plugin-media/types';
|
|
5
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
6
|
import type { MediaInsertPlugin, MediaInsertPluginConfig } from '../mediaInsertPluginType';
|
|
6
7
|
export type InsertMediaSingle = (props: {
|
|
7
8
|
inputMethod: InputMethodInsertMedia;
|
|
@@ -28,4 +29,6 @@ export type MediaInsertPickerProps = Pick<UiComponentFactoryParams, 'editorView'
|
|
|
28
29
|
insertMediaSingle: InsertMediaSingle;
|
|
29
30
|
isOnlyExternalLinks: MediaInsertPluginConfig['isOnlyExternalLinks'];
|
|
30
31
|
mediaProvider?: Providers['mediaProvider'];
|
|
32
|
+
} & {
|
|
33
|
+
editorView: EditorView;
|
|
31
34
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media-insert",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
4
4
|
"description": "Media Insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-schema": "^51.1.
|
|
24
|
+
"@atlaskit/adf-schema": "^51.1.2",
|
|
25
25
|
"@atlaskit/button": "^23.4.0",
|
|
26
|
-
"@atlaskit/editor-plugin-analytics": "^5.
|
|
27
|
-
"@atlaskit/editor-plugin-media": "^7.
|
|
26
|
+
"@atlaskit/editor-plugin-analytics": "^5.2.0",
|
|
27
|
+
"@atlaskit/editor-plugin-media": "^7.2.0",
|
|
28
28
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
29
29
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
30
|
-
"@atlaskit/form": "^12.
|
|
30
|
+
"@atlaskit/form": "^12.6.0",
|
|
31
31
|
"@atlaskit/icon": "^28.1.0",
|
|
32
32
|
"@atlaskit/media-card": "^79.5.0",
|
|
33
33
|
"@atlaskit/media-client": "^35.3.0",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"@atlaskit/section-message": "^8.7.0",
|
|
39
39
|
"@atlaskit/tabs": "^18.1.0",
|
|
40
40
|
"@atlaskit/textfield": "^8.0.0",
|
|
41
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^12.18.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@atlaskit/editor-common": "^109.
|
|
46
|
+
"@atlaskit/editor-common": "^109.5.0",
|
|
47
47
|
"@atlaskit/tokens": "^6.3.0",
|
|
48
48
|
"react": "^18.2.0",
|
|
49
49
|
"react-dom": "^18.2.0"
|