@atlaskit/media-card 73.3.1 → 73.3.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 +7 -0
- package/dist/cjs/root/inline/mediaInlineCard.js +7 -4
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/root/inline/mediaInlineCard.js +7 -4
- package/dist/es2019/version.json +1 -1
- package/dist/esm/root/inline/mediaInlineCard.js +7 -4
- package/dist/esm/version.json +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/media-card
|
|
2
2
|
|
|
3
|
+
## 73.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4f97dd898fc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4f97dd898fc) - EDM-2995: fix media inline icon, use mimeType to render a better icon type
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 73.3.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -19,7 +19,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
19
19
|
|
|
20
20
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _mimeTypeIcon = require("@atlaskit/media-ui/mime-type-icon");
|
|
23
23
|
|
|
24
24
|
var _mediaViewer = require("@atlaskit/media-viewer");
|
|
25
25
|
|
|
@@ -149,12 +149,15 @@ var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
var mediaType = fileState.mediaType,
|
|
152
|
-
name = fileState.name
|
|
152
|
+
name = fileState.name,
|
|
153
|
+
mimeType = fileState.mimeType;
|
|
153
154
|
|
|
154
|
-
var linkIcon = /*#__PURE__*/_react.default.createElement(
|
|
155
|
+
var linkIcon = /*#__PURE__*/_react.default.createElement(_mimeTypeIcon.MimeTypeIcon, {
|
|
155
156
|
testId: 'media-inline-card-file-type-icon',
|
|
156
157
|
size: "small",
|
|
157
|
-
|
|
158
|
+
mediaType: mediaType,
|
|
159
|
+
mimeType: mimeType,
|
|
160
|
+
name: name
|
|
158
161
|
});
|
|
159
162
|
|
|
160
163
|
var mediaViewer = renderMediaViewer();
|
package/dist/cjs/version.json
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
|
|
|
2
2
|
import ReactDOM from 'react-dom';
|
|
3
3
|
import { injectIntl, IntlProvider, createIntl } from 'react-intl-next';
|
|
4
4
|
import { MediaInlineCardLoadedView, MediaInlineCardLoadingView, MediaInlineCardErroredView, messages } from '@atlaskit/media-ui';
|
|
5
|
-
import {
|
|
5
|
+
import { MimeTypeIcon } from '@atlaskit/media-ui/mime-type-icon';
|
|
6
6
|
import { MediaViewer } from '@atlaskit/media-viewer';
|
|
7
7
|
import Tooltip from '@atlaskit/tooltip';
|
|
8
8
|
import { formatDate } from '@atlaskit/media-ui/formatDate';
|
|
@@ -112,12 +112,15 @@ export const MediaInlineCardInternal = ({
|
|
|
112
112
|
|
|
113
113
|
const {
|
|
114
114
|
mediaType,
|
|
115
|
-
name
|
|
115
|
+
name,
|
|
116
|
+
mimeType
|
|
116
117
|
} = fileState;
|
|
117
|
-
const linkIcon = /*#__PURE__*/React.createElement(
|
|
118
|
+
const linkIcon = /*#__PURE__*/React.createElement(MimeTypeIcon, {
|
|
118
119
|
testId: 'media-inline-card-file-type-icon',
|
|
119
120
|
size: "small",
|
|
120
|
-
|
|
121
|
+
mediaType: mediaType,
|
|
122
|
+
mimeType: mimeType,
|
|
123
|
+
name: name
|
|
121
124
|
});
|
|
122
125
|
const mediaViewer = renderMediaViewer();
|
|
123
126
|
let formattedDate;
|
package/dist/es2019/version.json
CHANGED
|
@@ -3,7 +3,7 @@ import React, { useState, useEffect } from 'react';
|
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
4
|
import { injectIntl, IntlProvider, createIntl } from 'react-intl-next';
|
|
5
5
|
import { MediaInlineCardLoadedView, MediaInlineCardLoadingView, MediaInlineCardErroredView, messages } from '@atlaskit/media-ui';
|
|
6
|
-
import {
|
|
6
|
+
import { MimeTypeIcon } from '@atlaskit/media-ui/mime-type-icon';
|
|
7
7
|
import { MediaViewer } from '@atlaskit/media-viewer';
|
|
8
8
|
import Tooltip from '@atlaskit/tooltip';
|
|
9
9
|
import { formatDate } from '@atlaskit/media-ui/formatDate';
|
|
@@ -125,11 +125,14 @@ export var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
var mediaType = fileState.mediaType,
|
|
128
|
-
name = fileState.name
|
|
129
|
-
|
|
128
|
+
name = fileState.name,
|
|
129
|
+
mimeType = fileState.mimeType;
|
|
130
|
+
var linkIcon = /*#__PURE__*/React.createElement(MimeTypeIcon, {
|
|
130
131
|
testId: 'media-inline-card-file-type-icon',
|
|
131
132
|
size: "small",
|
|
132
|
-
|
|
133
|
+
mediaType: mediaType,
|
|
134
|
+
mimeType: mimeType,
|
|
135
|
+
name: name
|
|
133
136
|
});
|
|
134
137
|
var mediaViewer = renderMediaViewer();
|
|
135
138
|
var formattedDate;
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-card",
|
|
3
|
-
"version": "73.3.
|
|
3
|
+
"version": "73.3.2",
|
|
4
4
|
"description": "Includes all media card related components, CardView, CardViewSmall, Card...",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@atlaskit/in-product-testing": "^0.1.0",
|
|
36
36
|
"@atlaskit/media-client": "^14.4.0",
|
|
37
37
|
"@atlaskit/media-common": "^2.11.0",
|
|
38
|
-
"@atlaskit/media-ui": "^20.
|
|
38
|
+
"@atlaskit/media-ui": "^20.1.0",
|
|
39
39
|
"@atlaskit/media-viewer": "^46.1.0",
|
|
40
40
|
"@atlaskit/spinner": "^15.1.0",
|
|
41
41
|
"@atlaskit/theme": "^12.1.0",
|