@atlaskit/editor-plugin-media-insert 5.0.0 → 5.0.2
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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media-insert
|
|
2
2
|
|
|
3
|
+
## 5.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#104847](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104847)
|
|
8
|
+
[`b55fc11242d17`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b55fc11242d17) -
|
|
9
|
+
Consolidate duplicate import statements
|
|
10
|
+
|
|
11
|
+
## 5.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 5.0.0
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -9,17 +9,19 @@ export type MediaInsertPluginState = {
|
|
|
9
9
|
mountPoint: HTMLElement;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
+
export type MediaInsertPluginDependencies = [
|
|
13
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
14
|
+
MediaPlugin,
|
|
15
|
+
OptionalPlugin<FeatureFlagsPlugin>
|
|
16
|
+
];
|
|
17
|
+
export type MediaInsertPluginCommands = {
|
|
18
|
+
showMediaInsertPopup: (mountInfo?: {
|
|
19
|
+
ref: HTMLElement;
|
|
20
|
+
mountPoint: HTMLElement;
|
|
21
|
+
}) => EditorCommand;
|
|
22
|
+
};
|
|
12
23
|
export type MediaInsertPlugin = NextEditorPlugin<'mediaInsert', {
|
|
13
|
-
dependencies:
|
|
14
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
15
|
-
MediaPlugin,
|
|
16
|
-
OptionalPlugin<FeatureFlagsPlugin>
|
|
17
|
-
];
|
|
24
|
+
dependencies: MediaInsertPluginDependencies;
|
|
18
25
|
sharedState: MediaInsertPluginState;
|
|
19
|
-
commands:
|
|
20
|
-
showMediaInsertPopup: (mountInfo?: {
|
|
21
|
-
ref: HTMLElement;
|
|
22
|
-
mountPoint: HTMLElement;
|
|
23
|
-
}) => EditorCommand;
|
|
24
|
-
};
|
|
26
|
+
commands: MediaInsertPluginCommands;
|
|
25
27
|
}>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { Providers } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { UiComponentFactoryParams } from '@atlaskit/editor-common/types';
|
|
4
|
-
import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { UiComponentFactoryParams, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
4
|
import { type MediaState, type MediaStateEventSubscriber } from '@atlaskit/editor-plugin-media/types';
|
|
6
5
|
import type { MediaInsertPlugin } from '../mediaInsertPluginType';
|
|
7
6
|
export type InsertMediaSingle = (props: {
|
|
@@ -9,17 +9,19 @@ export type MediaInsertPluginState = {
|
|
|
9
9
|
mountPoint: HTMLElement;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
+
export type MediaInsertPluginDependencies = [
|
|
13
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
14
|
+
MediaPlugin,
|
|
15
|
+
OptionalPlugin<FeatureFlagsPlugin>
|
|
16
|
+
];
|
|
17
|
+
export type MediaInsertPluginCommands = {
|
|
18
|
+
showMediaInsertPopup: (mountInfo?: {
|
|
19
|
+
ref: HTMLElement;
|
|
20
|
+
mountPoint: HTMLElement;
|
|
21
|
+
}) => EditorCommand;
|
|
22
|
+
};
|
|
12
23
|
export type MediaInsertPlugin = NextEditorPlugin<'mediaInsert', {
|
|
13
|
-
dependencies:
|
|
14
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
15
|
-
MediaPlugin,
|
|
16
|
-
OptionalPlugin<FeatureFlagsPlugin>
|
|
17
|
-
];
|
|
24
|
+
dependencies: MediaInsertPluginDependencies;
|
|
18
25
|
sharedState: MediaInsertPluginState;
|
|
19
|
-
commands:
|
|
20
|
-
showMediaInsertPopup: (mountInfo?: {
|
|
21
|
-
ref: HTMLElement;
|
|
22
|
-
mountPoint: HTMLElement;
|
|
23
|
-
}) => EditorCommand;
|
|
24
|
-
};
|
|
26
|
+
commands: MediaInsertPluginCommands;
|
|
25
27
|
}>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { Providers } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { UiComponentFactoryParams } from '@atlaskit/editor-common/types';
|
|
4
|
-
import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { UiComponentFactoryParams, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
4
|
import { type MediaState, type MediaStateEventSubscriber } from '@atlaskit/editor-plugin-media/types';
|
|
6
5
|
import type { MediaInsertPlugin } from '../mediaInsertPluginType';
|
|
7
6
|
export type InsertMediaSingle = (props: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media-insert",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Media Insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,28 +25,28 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
27
27
|
"@atlaskit/button": "^20.3.0",
|
|
28
|
-
"@atlaskit/editor-common": "^99.
|
|
28
|
+
"@atlaskit/editor-common": "^99.4.0",
|
|
29
29
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
30
30
|
"@atlaskit/editor-plugin-media": "^1.44.0",
|
|
31
31
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
32
32
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
33
33
|
"@atlaskit/form": "^11.0.0",
|
|
34
|
-
"@atlaskit/icon": "^23.
|
|
34
|
+
"@atlaskit/icon": "^23.4.0",
|
|
35
35
|
"@atlaskit/media-card": "^78.18.0",
|
|
36
|
-
"@atlaskit/media-client": "^
|
|
37
|
-
"@atlaskit/media-client-react": "^2.
|
|
36
|
+
"@atlaskit/media-client": "^30.0.0",
|
|
37
|
+
"@atlaskit/media-client-react": "^2.6.0",
|
|
38
38
|
"@atlaskit/media-picker": "^67.0.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
40
40
|
"@atlaskit/primitives": "^13.3.0",
|
|
41
41
|
"@atlaskit/section-message": "^6.8.0",
|
|
42
42
|
"@atlaskit/tabs": "^17.0.0",
|
|
43
43
|
"@atlaskit/textfield": "^6.7.0",
|
|
44
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^2.38.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@atlaskit/tokens": "^3.
|
|
49
|
+
"@atlaskit/tokens": "^3.1.0",
|
|
50
50
|
"react": "^16.8.0 || ^17.0.0 || ~18.2.0",
|
|
51
51
|
"react-dom": "^16.8.0 || ^17.0.0 || ~18.2.0"
|
|
52
52
|
},
|