@atlaskit/media-table 15.1.1 → 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 +14 -0
- package/dist/cjs/component/downloadButton.js +2 -1
- package/dist/cjs/component/mediaTable.js +2 -2
- 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/mediaTable.js +1 -1
- package/dist/esm/component/previewButton.js +3 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
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
|
+
|
|
11
|
+
## 15.1.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 15.1.1
|
|
4
18
|
|
|
5
19
|
### 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) {
|
|
@@ -29,10 +29,10 @@ var _previewButton = _interopRequireDefault(require("./previewButton"));
|
|
|
29
29
|
var _util = require("../util");
|
|
30
30
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
31
31
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
32
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
32
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
33
33
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34
34
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35
|
-
function _createSuper(
|
|
35
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
|
|
36
36
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
37
37
|
* @jsxRuntime classic
|
|
38
38
|
* @jsx jsx
|
|
@@ -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) {
|
|
@@ -9,7 +9,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
9
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
10
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
11
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
|
-
function _createSuper(
|
|
12
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
14
|
/**
|
|
15
15
|
* @jsxRuntime classic
|
|
@@ -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.
|
|
40
|
-
"@atlaskit/media-client": "^
|
|
38
|
+
"@atlaskit/dynamic-table": "^15.1.0",
|
|
39
|
+
"@atlaskit/icon": "^22.18.0",
|
|
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",
|