@atlaskit/media-table 15.2.2 → 15.2.4
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/previewButton.js +2 -10
- package/dist/es2019/component/previewButton.js +2 -9
- package/dist/esm/component/previewButton.js +1 -9
- package/dist/types/component/mediaTable.d.ts +3 -1
- package/dist/types-ts4.5/component/mediaTable.d.ts +3 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/media-table
|
|
2
2
|
|
|
3
|
+
## 15.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#152324](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152324)
|
|
8
|
+
[`dbbedfddad4dc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dbbedfddad4dc) -
|
|
9
|
+
Removes deprecated CustomThemeButton
|
|
10
|
+
|
|
11
|
+
## 15.2.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 15.2.2
|
|
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 _filePreview = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/file-preview"));
|
|
12
|
-
var
|
|
12
|
+
var _button = _interopRequireDefault(require("@atlaskit/button"));
|
|
13
13
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
14
14
|
var _util = require("../util");
|
|
15
15
|
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; }
|
|
@@ -18,7 +18,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
18
18
|
var MediaPreviewButton = function MediaPreviewButton(props) {
|
|
19
19
|
var _onClick = props.onClick,
|
|
20
20
|
formatMessage = props.intl.formatMessage;
|
|
21
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
22
22
|
appearance: "subtle",
|
|
23
23
|
testId: "preview-button"
|
|
24
24
|
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20884
|
|
@@ -37,14 +37,6 @@ var MediaPreviewButton = function MediaPreviewButton(props) {
|
|
|
37
37
|
});
|
|
38
38
|
}).fire(_util.ANALYTICS_MEDIA_CHANNEL);
|
|
39
39
|
_onClick(event);
|
|
40
|
-
},
|
|
41
|
-
theme: function theme(current, themeProps) {
|
|
42
|
-
return {
|
|
43
|
-
buttonStyles: _objectSpread(_objectSpread({}, current(themeProps).buttonStyles), {}, {
|
|
44
|
-
minWidth: 'max-content'
|
|
45
|
-
}),
|
|
46
|
-
spinnerStyles: current(themeProps).spinnerStyles
|
|
47
|
-
};
|
|
48
40
|
}
|
|
49
41
|
});
|
|
50
42
|
};
|
|
@@ -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 EditorFilePreviewIcon from '@atlaskit/icon/glyph/editor/file-preview';
|
|
5
|
-
import Button from '@atlaskit/button
|
|
5
|
+
import Button from '@atlaskit/button';
|
|
6
6
|
import { messages } from '@atlaskit/media-ui';
|
|
7
7
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
8
8
|
|
|
@@ -30,14 +30,7 @@ const MediaPreviewButton = props => {
|
|
|
30
30
|
actionSubjectId: 'mediaTablePreview'
|
|
31
31
|
})).fire(ANALYTICS_MEDIA_CHANNEL);
|
|
32
32
|
onClick(event);
|
|
33
|
-
}
|
|
34
|
-
theme: (current, themeProps) => ({
|
|
35
|
-
buttonStyles: {
|
|
36
|
-
...current(themeProps).buttonStyles,
|
|
37
|
-
minWidth: 'max-content'
|
|
38
|
-
},
|
|
39
|
-
spinnerStyles: current(themeProps).spinnerStyles
|
|
40
|
-
})
|
|
33
|
+
}
|
|
41
34
|
});
|
|
42
35
|
};
|
|
43
36
|
export default injectIntl(MediaPreviewButton);
|
|
@@ -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 EditorFilePreviewIcon from '@atlaskit/icon/glyph/editor/file-preview';
|
|
8
|
-
import Button from '@atlaskit/button
|
|
8
|
+
import Button from '@atlaskit/button';
|
|
9
9
|
import { messages } from '@atlaskit/media-ui';
|
|
10
10
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
11
11
|
|
|
@@ -32,14 +32,6 @@ var MediaPreviewButton = function MediaPreviewButton(props) {
|
|
|
32
32
|
});
|
|
33
33
|
}).fire(ANALYTICS_MEDIA_CHANNEL);
|
|
34
34
|
_onClick(event);
|
|
35
|
-
},
|
|
36
|
-
theme: function theme(current, themeProps) {
|
|
37
|
-
return {
|
|
38
|
-
buttonStyles: _objectSpread(_objectSpread({}, current(themeProps).buttonStyles), {}, {
|
|
39
|
-
minWidth: 'max-content'
|
|
40
|
-
}),
|
|
41
|
-
spinnerStyles: current(themeProps).spinnerStyles
|
|
42
|
-
};
|
|
43
35
|
}
|
|
44
36
|
});
|
|
45
37
|
};
|
|
@@ -27,5 +27,7 @@ export declare class MediaTable extends Component<MediaTableProps & WrappedCompo
|
|
|
27
27
|
private renderMediaViewer;
|
|
28
28
|
render(): jsx.JSX.Element;
|
|
29
29
|
}
|
|
30
|
-
declare const _default: React.ComponentType<import("@atlaskit/media-client-react").WithMediaClientConfigProps<Omit<
|
|
30
|
+
declare const _default: React.ComponentType<import("@atlaskit/media-client-react").WithMediaClientConfigProps<Omit<Omit<MediaTableProps & WrappedComponentProps, "intl"> & {
|
|
31
|
+
forwardedRef?: React.Ref<any> | undefined;
|
|
32
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>>;
|
|
31
33
|
export default _default;
|
|
@@ -27,5 +27,7 @@ export declare class MediaTable extends Component<MediaTableProps & WrappedCompo
|
|
|
27
27
|
private renderMediaViewer;
|
|
28
28
|
render(): jsx.JSX.Element;
|
|
29
29
|
}
|
|
30
|
-
declare const _default: React.ComponentType<import("@atlaskit/media-client-react").WithMediaClientConfigProps<Omit<
|
|
30
|
+
declare const _default: React.ComponentType<import("@atlaskit/media-client-react").WithMediaClientConfigProps<Omit<Omit<MediaTableProps & WrappedComponentProps, "intl"> & {
|
|
31
|
+
forwardedRef?: React.Ref<any> | undefined;
|
|
32
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>>;
|
|
31
33
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-table",
|
|
3
|
-
"version": "15.2.
|
|
3
|
+
"version": "15.2.4",
|
|
4
4
|
"description": "Table UI component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
37
37
|
"@atlaskit/button": "^20.2.0",
|
|
38
|
-
"@atlaskit/dynamic-table": "^
|
|
39
|
-
"@atlaskit/icon": "^22.
|
|
38
|
+
"@atlaskit/dynamic-table": "^16.1.0",
|
|
39
|
+
"@atlaskit/icon": "^22.22.0",
|
|
40
40
|
"@atlaskit/media-client": "^28.0.0",
|
|
41
41
|
"@atlaskit/media-client-react": "^2.2.0",
|
|
42
42
|
"@atlaskit/media-ui": "^25.15.0",
|
|
43
|
-
"@atlaskit/media-viewer": "^49.
|
|
44
|
-
"@atlaskit/theme": "^13.
|
|
43
|
+
"@atlaskit/media-viewer": "^49.1.0",
|
|
44
|
+
"@atlaskit/theme": "^13.1.0",
|
|
45
45
|
"@atlaskit/tokens": "^2.0.0",
|
|
46
46
|
"@atlaskit/tooltip": "^18.8.0",
|
|
47
47
|
"@babel/runtime": "^7.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.5.0",
|
|
61
61
|
"@atlaskit/range": "^7.4.0",
|
|
62
62
|
"@emotion/react": "^11.7.1",
|
|
63
63
|
"@testing-library/react": "^12.1.5",
|