@atlaskit/editor-plugin-media-insert 14.0.6 → 14.1.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 +17 -0
- package/dist/cjs/ui/LocalMedia.js +1 -3
- package/dist/cjs/ui/MediaFromURL.js +1 -3
- package/dist/es2019/ui/LocalMedia.js +1 -3
- package/dist/es2019/ui/MediaFromURL.js +1 -3
- package/dist/esm/ui/LocalMedia.js +1 -3
- package/dist/esm/ui/MediaFromURL.js +1 -3
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media-insert
|
|
2
2
|
|
|
3
|
+
## 14.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`762b79e21f96a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/762b79e21f96a) -
|
|
8
|
+
Migrated and cleaned up legacy iconography usage.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 14.0.7
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 14.0.6
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -15,7 +15,6 @@ var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
|
15
15
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
16
16
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
17
17
|
var _upload = _interopRequireDefault(require("@atlaskit/icon/core/upload"));
|
|
18
|
-
var _upload2 = _interopRequireDefault(require("@atlaskit/icon/glyph/upload"));
|
|
19
18
|
var _mediaPicker = require("@atlaskit/media-picker");
|
|
20
19
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
21
20
|
var _sectionMessage = _interopRequireDefault(require("@atlaskit/section-message"));
|
|
@@ -164,8 +163,7 @@ var LocalMedia = exports.LocalMedia = /*#__PURE__*/_react.default.forwardRef(fun
|
|
|
164
163
|
id: "local-media-upload-button",
|
|
165
164
|
iconBefore: function iconBefore() {
|
|
166
165
|
return /*#__PURE__*/_react.default.createElement(_upload.default, {
|
|
167
|
-
label: ""
|
|
168
|
-
LEGACY_fallbackIcon: _upload2.default
|
|
166
|
+
label: ""
|
|
169
167
|
});
|
|
170
168
|
},
|
|
171
169
|
ref: ref,
|
|
@@ -22,7 +22,6 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
22
22
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
23
23
|
var _form = _interopRequireWildcard(require("@atlaskit/form"));
|
|
24
24
|
var _growDiagonal = _interopRequireDefault(require("@atlaskit/icon/core/grow-diagonal"));
|
|
25
|
-
var _filePreview = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/file-preview"));
|
|
26
25
|
var _mediaClientReact = require("@atlaskit/media-client-react");
|
|
27
26
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
28
27
|
var _primitives = require("@atlaskit/primitives");
|
|
@@ -365,8 +364,7 @@ function MediaFromURL(_ref) {
|
|
|
365
364
|
isDisabled: !!error || !meta.dirty,
|
|
366
365
|
iconBefore: function iconBefore() {
|
|
367
366
|
return /*#__PURE__*/_react.default.createElement(_growDiagonal.default, {
|
|
368
|
-
label: ""
|
|
369
|
-
LEGACY_fallbackIcon: _filePreview.default
|
|
367
|
+
label: ""
|
|
370
368
|
});
|
|
371
369
|
}
|
|
372
370
|
}, strings.loadPreview)));
|
|
@@ -4,7 +4,6 @@ import Button from '@atlaskit/button/new';
|
|
|
4
4
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import { mediaInsertMessages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import UploadIcon from '@atlaskit/icon/core/upload';
|
|
7
|
-
import { default as UploadIconLegacy } from '@atlaskit/icon/glyph/upload';
|
|
8
7
|
import { Browser } from '@atlaskit/media-picker';
|
|
9
8
|
import { Stack } from '@atlaskit/primitives/compiled';
|
|
10
9
|
import SectionMessage from '@atlaskit/section-message';
|
|
@@ -153,8 +152,7 @@ export const LocalMedia = /*#__PURE__*/React.forwardRef(({
|
|
|
153
152
|
}, uploadState.error === 'upload_fail' ? strings.networkError : strings.genericError), /*#__PURE__*/React.createElement(Button, {
|
|
154
153
|
id: "local-media-upload-button",
|
|
155
154
|
iconBefore: () => /*#__PURE__*/React.createElement(UploadIcon, {
|
|
156
|
-
label: ""
|
|
157
|
-
LEGACY_fallbackIcon: UploadIconLegacy
|
|
155
|
+
label: ""
|
|
158
156
|
}),
|
|
159
157
|
ref: ref,
|
|
160
158
|
shouldFitContainer: true,
|
|
@@ -8,7 +8,6 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } f
|
|
|
8
8
|
import { mediaInsertMessages } from '@atlaskit/editor-common/messages';
|
|
9
9
|
import Form, { ErrorMessage, Field, FormFooter, HelperMessage, MessageWrapper } from '@atlaskit/form';
|
|
10
10
|
import ExpandIcon from '@atlaskit/icon/core/grow-diagonal';
|
|
11
|
-
import { default as EditorFilePreviewIconLegacy } from '@atlaskit/icon/glyph/editor/file-preview';
|
|
12
11
|
import { getMediaClient } from '@atlaskit/media-client-react';
|
|
13
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
13
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
@@ -324,8 +323,7 @@ export function MediaFromURL({
|
|
|
324
323
|
isLoading: previewState.isLoading,
|
|
325
324
|
isDisabled: !!error || !meta.dirty,
|
|
326
325
|
iconBefore: () => /*#__PURE__*/React.createElement(ExpandIcon, {
|
|
327
|
-
label: ""
|
|
328
|
-
LEGACY_fallbackIcon: EditorFilePreviewIconLegacy
|
|
326
|
+
label: ""
|
|
329
327
|
})
|
|
330
328
|
}, strings.loadPreview)))), previewState.previewInfo && /*#__PURE__*/React.createElement(Inline, {
|
|
331
329
|
alignInline: "center",
|
|
@@ -9,7 +9,6 @@ import Button from '@atlaskit/button/new';
|
|
|
9
9
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import { mediaInsertMessages } from '@atlaskit/editor-common/messages';
|
|
11
11
|
import UploadIcon from '@atlaskit/icon/core/upload';
|
|
12
|
-
import { default as UploadIconLegacy } from '@atlaskit/icon/glyph/upload';
|
|
13
12
|
import { Browser } from '@atlaskit/media-picker';
|
|
14
13
|
import { Stack } from '@atlaskit/primitives/compiled';
|
|
15
14
|
import SectionMessage from '@atlaskit/section-message';
|
|
@@ -155,8 +154,7 @@ export var LocalMedia = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
155
154
|
id: "local-media-upload-button",
|
|
156
155
|
iconBefore: function iconBefore() {
|
|
157
156
|
return /*#__PURE__*/React.createElement(UploadIcon, {
|
|
158
|
-
label: ""
|
|
159
|
-
LEGACY_fallbackIcon: UploadIconLegacy
|
|
157
|
+
label: ""
|
|
160
158
|
});
|
|
161
159
|
},
|
|
162
160
|
ref: ref,
|
|
@@ -16,7 +16,6 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } f
|
|
|
16
16
|
import { mediaInsertMessages } from '@atlaskit/editor-common/messages';
|
|
17
17
|
import Form, { ErrorMessage, Field, FormFooter, HelperMessage, MessageWrapper } from '@atlaskit/form';
|
|
18
18
|
import ExpandIcon from '@atlaskit/icon/core/grow-diagonal';
|
|
19
|
-
import { default as EditorFilePreviewIconLegacy } from '@atlaskit/icon/glyph/editor/file-preview';
|
|
20
19
|
import { getMediaClient } from '@atlaskit/media-client-react';
|
|
21
20
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
21
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
@@ -356,8 +355,7 @@ export function MediaFromURL(_ref) {
|
|
|
356
355
|
isDisabled: !!error || !meta.dirty,
|
|
357
356
|
iconBefore: function iconBefore() {
|
|
358
357
|
return /*#__PURE__*/React.createElement(ExpandIcon, {
|
|
359
|
-
label: ""
|
|
360
|
-
LEGACY_fallbackIcon: EditorFilePreviewIconLegacy
|
|
358
|
+
label: ""
|
|
361
359
|
});
|
|
362
360
|
}
|
|
363
361
|
}, strings.loadPreview)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media-insert",
|
|
3
|
-
"version": "14.0
|
|
3
|
+
"version": "14.1.0",
|
|
4
4
|
"description": "Media Insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"team": "Editor: Core Experiences",
|
|
12
12
|
"singleton": true
|
|
13
13
|
},
|
|
14
|
-
"repository": "https://
|
|
14
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-monorepo",
|
|
15
15
|
"main": "dist/cjs/index.js",
|
|
16
16
|
"module": "dist/esm/index.js",
|
|
17
17
|
"module:es2019": "dist/es2019/index.js",
|
|
@@ -21,29 +21,29 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-schema": "^51.5.
|
|
25
|
-
"@atlaskit/button": "^23.
|
|
24
|
+
"@atlaskit/adf-schema": "^51.5.0",
|
|
25
|
+
"@atlaskit/button": "^23.8.0",
|
|
26
26
|
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
27
|
-
"@atlaskit/editor-plugin-media": "^8.
|
|
28
|
-
"@atlaskit/editor-prosemirror": "7.
|
|
27
|
+
"@atlaskit/editor-plugin-media": "^8.6.0",
|
|
28
|
+
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
29
29
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
30
|
-
"@atlaskit/form": "^
|
|
31
|
-
"@atlaskit/icon": "^29.
|
|
32
|
-
"@atlaskit/media-card": "^79.
|
|
33
|
-
"@atlaskit/media-client": "^35.
|
|
30
|
+
"@atlaskit/form": "^15.0.0",
|
|
31
|
+
"@atlaskit/icon": "^29.2.0",
|
|
32
|
+
"@atlaskit/media-card": "^79.11.0",
|
|
33
|
+
"@atlaskit/media-client": "^35.7.0",
|
|
34
34
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
35
35
|
"@atlaskit/media-picker": "^70.1.0",
|
|
36
36
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
37
37
|
"@atlaskit/primitives": "^16.4.0",
|
|
38
|
-
"@atlaskit/section-message": "^8.
|
|
39
|
-
"@atlaskit/tabs": "^18.
|
|
40
|
-
"@atlaskit/textfield": "^8.
|
|
38
|
+
"@atlaskit/section-message": "^8.11.0",
|
|
39
|
+
"@atlaskit/tabs": "^18.3.0",
|
|
40
|
+
"@atlaskit/textfield": "^8.2.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@atlaskit/editor-common": "^110.
|
|
46
|
-
"@atlaskit/tokens": "^8.
|
|
45
|
+
"@atlaskit/editor-common": "^110.45.0",
|
|
46
|
+
"@atlaskit/tokens": "^8.6.0",
|
|
47
47
|
"react": "^18.2.0",
|
|
48
48
|
"react-dom": "^18.2.0"
|
|
49
49
|
},
|