@atlaskit/media-table 15.3.0 → 15.4.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
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/media-table
|
|
2
2
|
|
|
3
|
+
## 15.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 15.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#162934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/162934)
|
|
14
|
+
[`413e3e1e0c088`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/413e3e1e0c088) -
|
|
15
|
+
[ux] Enable new icons behind a feature flag.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 15.3.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -9,6 +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 _filePreview = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/file-preview"));
|
|
12
|
+
var _expand = _interopRequireDefault(require("@atlaskit/icon/core/expand"));
|
|
12
13
|
var _button = _interopRequireDefault(require("@atlaskit/button"));
|
|
13
14
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
14
15
|
var _util = require("../util");
|
|
@@ -20,11 +21,11 @@ var MediaPreviewButton = function MediaPreviewButton(props) {
|
|
|
20
21
|
formatMessage = props.intl.formatMessage;
|
|
21
22
|
return /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
22
23
|
appearance: "subtle",
|
|
23
|
-
testId: "preview-button"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
testId: "preview-button",
|
|
25
|
+
iconAfter: /*#__PURE__*/_react.default.createElement(_expand.default, {
|
|
26
|
+
LEGACY_fallbackIcon: _filePreview.default,
|
|
27
|
+
label: formatMessage(_mediaUi.messages.preview),
|
|
28
|
+
color: "currentColor"
|
|
28
29
|
}),
|
|
29
30
|
onKeyPress: function onKeyPress(event) {
|
|
30
31
|
return event.stopPropagation();
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
3
3
|
import { injectIntl } from 'react-intl-next';
|
|
4
|
-
import
|
|
4
|
+
import LegacyEditorFilePreviewIcon from '@atlaskit/icon/glyph/editor/file-preview';
|
|
5
|
+
import EditorFilePreviewIcon from '@atlaskit/icon/core/expand';
|
|
5
6
|
import Button from '@atlaskit/button';
|
|
6
7
|
import { messages } from '@atlaskit/media-ui';
|
|
7
8
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
@@ -16,11 +17,11 @@ const MediaPreviewButton = props => {
|
|
|
16
17
|
} = props;
|
|
17
18
|
return /*#__PURE__*/React.createElement(Button, {
|
|
18
19
|
appearance: "subtle",
|
|
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
|
+
testId: "preview-button",
|
|
22
21
|
iconAfter: /*#__PURE__*/React.createElement(EditorFilePreviewIcon, {
|
|
23
|
-
|
|
22
|
+
LEGACY_fallbackIcon: LegacyEditorFilePreviewIcon,
|
|
23
|
+
label: formatMessage(messages.preview),
|
|
24
|
+
color: "currentColor"
|
|
24
25
|
}),
|
|
25
26
|
onKeyPress: event => event.stopPropagation(),
|
|
26
27
|
onClick: (event, analyticsEvent) => {
|
|
@@ -4,7 +4,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
6
6
|
import { injectIntl } from 'react-intl-next';
|
|
7
|
-
import
|
|
7
|
+
import LegacyEditorFilePreviewIcon from '@atlaskit/icon/glyph/editor/file-preview';
|
|
8
|
+
import EditorFilePreviewIcon from '@atlaskit/icon/core/expand';
|
|
8
9
|
import Button from '@atlaskit/button';
|
|
9
10
|
import { messages } from '@atlaskit/media-ui';
|
|
10
11
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
@@ -15,11 +16,11 @@ var MediaPreviewButton = function MediaPreviewButton(props) {
|
|
|
15
16
|
formatMessage = props.intl.formatMessage;
|
|
16
17
|
return /*#__PURE__*/React.createElement(Button, {
|
|
17
18
|
appearance: "subtle",
|
|
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
|
+
testId: "preview-button",
|
|
21
20
|
iconAfter: /*#__PURE__*/React.createElement(EditorFilePreviewIcon, {
|
|
22
|
-
|
|
21
|
+
LEGACY_fallbackIcon: LegacyEditorFilePreviewIcon,
|
|
22
|
+
label: formatMessage(messages.preview),
|
|
23
|
+
color: "currentColor"
|
|
23
24
|
}),
|
|
24
25
|
onKeyPress: function onKeyPress(event) {
|
|
25
26
|
return event.stopPropagation();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-table",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.4.1",
|
|
4
4
|
"description": "Table UI component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
37
37
|
"@atlaskit/button": "^20.3.0",
|
|
38
38
|
"@atlaskit/dynamic-table": "^16.1.0",
|
|
39
|
-
"@atlaskit/icon": "^22.
|
|
40
|
-
"@atlaskit/media-client": "^28.
|
|
39
|
+
"@atlaskit/icon": "^22.26.0",
|
|
40
|
+
"@atlaskit/media-client": "^28.3.0",
|
|
41
41
|
"@atlaskit/media-client-react": "^2.3.0",
|
|
42
|
-
"@atlaskit/media-ui": "^
|
|
43
|
-
"@atlaskit/media-viewer": "^49.
|
|
42
|
+
"@atlaskit/media-ui": "^27.0.0",
|
|
43
|
+
"@atlaskit/media-viewer": "^49.4.0",
|
|
44
44
|
"@atlaskit/theme": "^14.0.0",
|
|
45
|
-
"@atlaskit/tokens": "^2.
|
|
45
|
+
"@atlaskit/tokens": "^2.3.0",
|
|
46
46
|
"@atlaskit/tooltip": "^18.9.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"memoize-one": "^6.0.0"
|