@atlaskit/editor-plugin-media-insert 34.0.0 → 34.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
package/dist/cjs/ui/MediaCard.js
CHANGED
|
@@ -8,7 +8,8 @@ exports.MediaCard = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactIntl = require("react-intl");
|
|
10
10
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
11
|
-
var
|
|
11
|
+
var _cardLoader = _interopRequireDefault(require("@atlaskit/media-card/cardLoader"));
|
|
12
|
+
var _cardLoading = require("@atlaskit/media-card/cardLoading");
|
|
12
13
|
var maxDimensions = {
|
|
13
14
|
width: '100%',
|
|
14
15
|
height: '100%'
|
|
@@ -32,12 +33,12 @@ var MediaCard = exports.MediaCard = function MediaCard(_ref) {
|
|
|
32
33
|
};
|
|
33
34
|
}, [attrs.collection, attrs.id]);
|
|
34
35
|
if (!mediaProvider) {
|
|
35
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
36
|
+
return /*#__PURE__*/_react.default.createElement(_cardLoading.CardLoading, {
|
|
36
37
|
dimensions: dimensions,
|
|
37
38
|
interactionName: "editor-media-insert-card-loading"
|
|
38
39
|
});
|
|
39
40
|
}
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
41
|
+
return /*#__PURE__*/_react.default.createElement(_cardLoader.default, {
|
|
41
42
|
mediaClientConfig: mediaProvider.viewMediaClientConfig,
|
|
42
43
|
resizeMode: "stretchy-fit",
|
|
43
44
|
dimensions: maxDimensions,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { mediaInsertMessages } from '@atlaskit/editor-common/messages';
|
|
4
|
-
import
|
|
4
|
+
import Card from '@atlaskit/media-card/cardLoader';
|
|
5
|
+
import { CardLoading } from '@atlaskit/media-card/cardLoading';
|
|
5
6
|
const maxDimensions = {
|
|
6
7
|
width: '100%',
|
|
7
8
|
height: '100%'
|
package/dist/esm/ui/MediaCard.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { mediaInsertMessages } from '@atlaskit/editor-common/messages';
|
|
4
|
-
import
|
|
4
|
+
import Card from '@atlaskit/media-card/cardLoader';
|
|
5
|
+
import { CardLoading } from '@atlaskit/media-card/cardLoading';
|
|
5
6
|
var maxDimensions = {
|
|
6
7
|
width: '100%',
|
|
7
8
|
height: '100%'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media-insert",
|
|
3
|
-
"version": "34.0.
|
|
3
|
+
"version": "34.0.1",
|
|
4
4
|
"description": "Media Insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"@atlaskit/section-message": "^10.2.0",
|
|
43
43
|
"@atlaskit/tabs": "^21.2.0",
|
|
44
44
|
"@atlaskit/textfield": "^10.2.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^196.0.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@atlaskit/editor-common": "^122.
|
|
49
|
+
"@atlaskit/editor-common": "^122.7.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
51
51
|
"@atlaskit/tokens": "^17.0.0",
|
|
52
52
|
"react": "^18.2.0 || ^19.2.0",
|