@atlaskit/editor-plugin-media-insert 4.0.14 → 5.0.1
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
|
@@ -162,6 +162,7 @@ var LocalMedia = exports.LocalMedia = /*#__PURE__*/_react.default.forwardRef(fun
|
|
|
162
162
|
}, uploadState.error && /*#__PURE__*/_react.default.createElement(_sectionMessage.default, {
|
|
163
163
|
appearance: "error"
|
|
164
164
|
}, uploadState.error === 'upload_fail' ? strings.networkError : strings.genericError), /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
165
|
+
id: "local-media-upload-button",
|
|
165
166
|
iconBefore: function iconBefore() {
|
|
166
167
|
return /*#__PURE__*/_react.default.createElement(_upload.default, {
|
|
167
168
|
label: "",
|
|
@@ -151,6 +151,7 @@ export const LocalMedia = /*#__PURE__*/React.forwardRef(({
|
|
|
151
151
|
}, uploadState.error && /*#__PURE__*/React.createElement(SectionMessage, {
|
|
152
152
|
appearance: "error"
|
|
153
153
|
}, uploadState.error === 'upload_fail' ? strings.networkError : strings.genericError), /*#__PURE__*/React.createElement(Button, {
|
|
154
|
+
id: "local-media-upload-button",
|
|
154
155
|
iconBefore: () => /*#__PURE__*/React.createElement(UploadIcon, {
|
|
155
156
|
label: "",
|
|
156
157
|
LEGACY_fallbackIcon: UploadIconLegacy
|
|
@@ -152,6 +152,7 @@ export var LocalMedia = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
152
152
|
}, uploadState.error && /*#__PURE__*/React.createElement(SectionMessage, {
|
|
153
153
|
appearance: "error"
|
|
154
154
|
}, uploadState.error === 'upload_fail' ? strings.networkError : strings.genericError), /*#__PURE__*/React.createElement(Button, {
|
|
155
|
+
id: "local-media-upload-button",
|
|
155
156
|
iconBefore: function iconBefore() {
|
|
156
157
|
return /*#__PURE__*/React.createElement(UploadIcon, {
|
|
157
158
|
label: "",
|
|
@@ -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
|
}>;
|
|
@@ -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
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media-insert",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "Media Insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,29 +25,30 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
27
27
|
"@atlaskit/button": "^20.3.0",
|
|
28
|
-
"@atlaskit/editor-common": "^
|
|
28
|
+
"@atlaskit/editor-common": "^99.4.0",
|
|
29
29
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
30
|
-
"@atlaskit/editor-plugin-media": "^1.
|
|
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.
|
|
35
|
-
"@atlaskit/media-card": "^78.
|
|
36
|
-
"@atlaskit/media-client": "^
|
|
37
|
-
"@atlaskit/media-client-react": "^2.
|
|
34
|
+
"@atlaskit/icon": "^23.4.0",
|
|
35
|
+
"@atlaskit/media-card": "^78.18.0",
|
|
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
|
-
"react": "^16.8.0",
|
|
47
46
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
48
47
|
},
|
|
49
48
|
"peerDependencies": {
|
|
50
|
-
"@atlaskit/tokens": "^
|
|
49
|
+
"@atlaskit/tokens": "^3.1.0",
|
|
50
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0",
|
|
51
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ~18.2.0"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
54
|
"typescript": "~5.4.2"
|