@atlaskit/media-table 15.1.2 → 15.2.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 +8 -0
- package/dist/cjs/component/downloadButton.js +2 -1
- package/dist/cjs/component/previewButton.js +3 -1
- package/dist/es2019/component/downloadButton.js +2 -1
- package/dist/es2019/component/previewButton.js +3 -1
- package/dist/esm/component/downloadButton.js +2 -1
- package/dist/esm/component/previewButton.js +3 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/media-table
|
|
2
2
|
|
|
3
|
+
## 15.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#141754](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/141754)
|
|
8
|
+
[`71bcccc5aa956`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/71bcccc5aa956) -
|
|
9
|
+
Enable new icons behind a feature flag.
|
|
10
|
+
|
|
3
11
|
## 15.1.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -9,7 +9,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _reactIntlNext = require("react-intl-next");
|
|
11
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
|
-
var _download = _interopRequireDefault(require("@atlaskit/icon/
|
|
12
|
+
var _download = _interopRequireDefault(require("@atlaskit/icon/core/migration/download"));
|
|
13
13
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
14
14
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
15
15
|
var _util = require("../util");
|
|
@@ -23,6 +23,7 @@ var MediaDownloadButton = function MediaDownloadButton(props) {
|
|
|
23
23
|
appearance: "subtle",
|
|
24
24
|
testId: "download-button",
|
|
25
25
|
iconAfter: /*#__PURE__*/_react.default.createElement(_download.default, {
|
|
26
|
+
color: "currentColor",
|
|
26
27
|
label: formatMessage(_mediaUi.messages.download)
|
|
27
28
|
}),
|
|
28
29
|
onKeyPress: function onKeyPress(event) {
|
|
@@ -20,7 +20,9 @@ var MediaPreviewButton = function MediaPreviewButton(props) {
|
|
|
20
20
|
formatMessage = props.intl.formatMessage;
|
|
21
21
|
return /*#__PURE__*/_react.default.createElement(_customThemeButton.default, {
|
|
22
22
|
appearance: "subtle",
|
|
23
|
-
testId: "preview-button"
|
|
23
|
+
testId: "preview-button"
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20884
|
|
25
|
+
,
|
|
24
26
|
iconAfter: /*#__PURE__*/_react.default.createElement(_filePreview.default, {
|
|
25
27
|
label: formatMessage(_mediaUi.messages.preview)
|
|
26
28
|
}),
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
3
3
|
import { injectIntl } from 'react-intl-next';
|
|
4
4
|
import { N40 } from '@atlaskit/theme/colors';
|
|
5
|
-
import DownloadIcon from '@atlaskit/icon/
|
|
5
|
+
import DownloadIcon from '@atlaskit/icon/core/migration/download';
|
|
6
6
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
7
7
|
import { messages } from '@atlaskit/media-ui';
|
|
8
8
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
@@ -19,6 +19,7 @@ const MediaDownloadButton = props => {
|
|
|
19
19
|
appearance: "subtle",
|
|
20
20
|
testId: "download-button",
|
|
21
21
|
iconAfter: /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
22
|
+
color: "currentColor",
|
|
22
23
|
label: formatMessage(messages.download)
|
|
23
24
|
}),
|
|
24
25
|
onKeyPress: event => event.stopPropagation(),
|
|
@@ -16,7 +16,9 @@ const MediaPreviewButton = props => {
|
|
|
16
16
|
} = props;
|
|
17
17
|
return /*#__PURE__*/React.createElement(Button, {
|
|
18
18
|
appearance: "subtle",
|
|
19
|
-
testId: "preview-button"
|
|
19
|
+
testId: "preview-button"
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20884
|
|
21
|
+
,
|
|
20
22
|
iconAfter: /*#__PURE__*/React.createElement(EditorFilePreviewIcon, {
|
|
21
23
|
label: formatMessage(messages.preview)
|
|
22
24
|
}),
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
6
6
|
import { injectIntl } from 'react-intl-next';
|
|
7
7
|
import { N40 } from '@atlaskit/theme/colors';
|
|
8
|
-
import DownloadIcon from '@atlaskit/icon/
|
|
8
|
+
import DownloadIcon from '@atlaskit/icon/core/migration/download';
|
|
9
9
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
10
10
|
import { messages } from '@atlaskit/media-ui';
|
|
11
11
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
@@ -18,6 +18,7 @@ var MediaDownloadButton = function MediaDownloadButton(props) {
|
|
|
18
18
|
appearance: "subtle",
|
|
19
19
|
testId: "download-button",
|
|
20
20
|
iconAfter: /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
21
|
+
color: "currentColor",
|
|
21
22
|
label: formatMessage(messages.download)
|
|
22
23
|
}),
|
|
23
24
|
onKeyPress: function onKeyPress(event) {
|
|
@@ -15,7 +15,9 @@ var MediaPreviewButton = function MediaPreviewButton(props) {
|
|
|
15
15
|
formatMessage = props.intl.formatMessage;
|
|
16
16
|
return /*#__PURE__*/React.createElement(Button, {
|
|
17
17
|
appearance: "subtle",
|
|
18
|
-
testId: "preview-button"
|
|
18
|
+
testId: "preview-button"
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20884
|
|
20
|
+
,
|
|
19
21
|
iconAfter: /*#__PURE__*/React.createElement(EditorFilePreviewIcon, {
|
|
20
22
|
label: formatMessage(messages.preview)
|
|
21
23
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-table",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.2.0",
|
|
4
4
|
"description": "Table UI component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
37
37
|
"@atlaskit/button": "^20.1.0",
|
|
38
|
-
"@atlaskit/dynamic-table": "^15.
|
|
39
|
-
"@atlaskit/icon": "^22.
|
|
38
|
+
"@atlaskit/dynamic-table": "^15.1.0",
|
|
39
|
+
"@atlaskit/icon": "^22.18.0",
|
|
40
40
|
"@atlaskit/media-client": "^28.0.0",
|
|
41
41
|
"@atlaskit/media-client-react": "^2.2.0",
|
|
42
|
-
"@atlaskit/media-ui": "^25.
|
|
43
|
-
"@atlaskit/media-viewer": "^48.
|
|
42
|
+
"@atlaskit/media-ui": "^25.14.0",
|
|
43
|
+
"@atlaskit/media-viewer": "^48.10.0",
|
|
44
44
|
"@atlaskit/theme": "^13.0.0",
|
|
45
|
-
"@atlaskit/tokens": "^1.
|
|
45
|
+
"@atlaskit/tokens": "^1.60.0",
|
|
46
46
|
"@atlaskit/tooltip": "^18.7.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"memoize-one": "^6.0.0"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@atlaskit/icon-file-type": "^6.5.0",
|
|
59
59
|
"@atlaskit/media-core": "^34.3.0",
|
|
60
|
-
"@atlaskit/media-test-helpers": "^34.
|
|
60
|
+
"@atlaskit/media-test-helpers": "^34.4.0",
|
|
61
61
|
"@atlaskit/range": "^7.4.0",
|
|
62
62
|
"@emotion/react": "^11.7.1",
|
|
63
63
|
"@testing-library/react": "^12.1.5",
|