@atlaskit/media-table 15.0.19 → 15.0.21
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 +12 -0
- package/dist/cjs/component/mediaTable.js +4 -1
- package/dist/cjs/component/nameCell.js +4 -1
- package/dist/cjs/component/styles.js +3 -3
- package/dist/es2019/component/mediaTable.js +4 -1
- package/dist/es2019/component/nameCell.js +4 -1
- package/dist/es2019/component/styles.js +3 -3
- package/dist/esm/component/mediaTable.js +4 -1
- package/dist/esm/component/nameCell.js +4 -1
- package/dist/esm/component/styles.js +3 -3
- package/dist/types/component/mediaTable.d.ts +4 -1
- package/dist/types-ts4.5/component/mediaTable.d.ts +4 -1
- package/example-helpers/helpers.tsx +4 -1
- package/example-helpers/styles.tsx +2 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -33,7 +33,10 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
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
35
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
36
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
36
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
37
|
+
* @jsxRuntime classic
|
|
38
|
+
* @jsx jsx
|
|
39
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
37
40
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
38
41
|
var MediaTable = exports.MediaTable = /*#__PURE__*/function (_Component) {
|
|
39
42
|
(0, _inherits2.default)(MediaTable, _Component);
|
|
@@ -13,7 +13,10 @@ var _truncateText = require("@atlaskit/media-ui/truncateText");
|
|
|
13
13
|
var _mediaTypeIcon = require("@atlaskit/media-ui/media-type-icon");
|
|
14
14
|
var _styles = require("./styles");
|
|
15
15
|
var _excluded = ["mediaType", "text"];
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @jsxRuntime classic
|
|
18
|
+
* @jsx jsx
|
|
19
|
+
*/
|
|
17
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
21
|
var NameCell = exports.NameCell = function NameCell(props) {
|
|
19
22
|
var mediaType = props.mediaType,
|
|
@@ -7,14 +7,14 @@ exports.truncateWrapperStyles = exports.nameCellWrapperStyles = exports.mediaTab
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
11
|
var nameCellWrapperStyles = exports.nameCellWrapperStyles = (0, _react.css)({
|
|
12
12
|
display: 'flex',
|
|
13
13
|
alignContent: 'center',
|
|
14
14
|
alignItems: 'center'
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
18
|
var truncateWrapperStyles = exports.truncateWrapperStyles = (0, _react.css)({
|
|
19
19
|
minWidth: 0,
|
|
20
20
|
width: '100%',
|
|
@@ -27,7 +27,7 @@ var truncateWrapperStyles = exports.truncateWrapperStyles = (0, _react.css)({
|
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
|
|
30
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
31
31
|
var mediaTableWrapperStyles = exports.mediaTableWrapperStyles = (0, _react.css)({
|
|
32
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
33
33
|
tr: {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
7
|
import { jsx } from '@emotion/react';
|
|
5
8
|
import React, { Component } from 'react';
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
7
|
import { jsx } from '@emotion/react';
|
|
5
8
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
4
|
export const nameCellWrapperStyles = css({
|
|
5
5
|
display: 'flex',
|
|
6
6
|
alignContent: 'center',
|
|
7
7
|
alignItems: 'center'
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
11
|
export const truncateWrapperStyles = css({
|
|
12
12
|
minWidth: 0,
|
|
13
13
|
width: '100%',
|
|
@@ -20,7 +20,7 @@ export const truncateWrapperStyles = css({
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
24
24
|
export const mediaTableWrapperStyles = css({
|
|
25
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
26
|
tr: {
|
|
@@ -11,7 +11,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
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
12
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
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
|
+
* @jsxRuntime classic
|
|
16
|
+
* @jsx jsx
|
|
17
|
+
*/
|
|
15
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
19
|
import { jsx } from '@emotion/react';
|
|
17
20
|
import React, { Component } from 'react';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["mediaType", "text"];
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
7
|
+
*/
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
9
|
import { jsx } from '@emotion/react';
|
|
7
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
4
|
export var nameCellWrapperStyles = css({
|
|
5
5
|
display: 'flex',
|
|
6
6
|
alignContent: 'center',
|
|
7
7
|
alignItems: 'center'
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
11
|
export var truncateWrapperStyles = css({
|
|
12
12
|
minWidth: 0,
|
|
13
13
|
width: '100%',
|
|
@@ -20,7 +20,7 @@ export var truncateWrapperStyles = css({
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
24
24
|
export var mediaTableWrapperStyles = css({
|
|
25
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
26
|
tr: {
|
|
@@ -8,7 +8,7 @@ import { colors } from '@atlaskit/theme';
|
|
|
8
8
|
export const ROW_HIGHLIGHT_CLASSNAME = 'media-table-row-highlighted';
|
|
9
9
|
export const ROW_CLASSNAME = 'media-table-row';
|
|
10
10
|
|
|
11
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles
|
|
11
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
12
|
export const exampleWrapperStyles = css`
|
|
13
13
|
display: flex;
|
|
14
14
|
flex-direction: column;
|
|
@@ -23,7 +23,7 @@ export const exampleWrapperStyles = css`
|
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
25
|
|
|
26
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
27
|
export const greenOnHoverStyles = css`
|
|
28
28
|
background-color: ${token('color.background.danger.bold', 'red')};
|
|
29
29
|
height: 8px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-table",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.21",
|
|
4
4
|
"description": "Table UI component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@atlaskit/analytics-next": "^
|
|
38
|
-
"@atlaskit/button": "^
|
|
37
|
+
"@atlaskit/analytics-next": "^10.0.0",
|
|
38
|
+
"@atlaskit/button": "^19.1.0",
|
|
39
39
|
"@atlaskit/dynamic-table": "^14.18.0",
|
|
40
|
-
"@atlaskit/icon": "^22.
|
|
40
|
+
"@atlaskit/icon": "^22.10.0",
|
|
41
41
|
"@atlaskit/media-client": "^27.3.0",
|
|
42
42
|
"@atlaskit/media-client-react": "^2.0.0",
|
|
43
43
|
"@atlaskit/media-ui": "^25.10.0",
|
|
44
44
|
"@atlaskit/media-viewer": "^48.6.0",
|
|
45
45
|
"@atlaskit/theme": "^12.11.0",
|
|
46
|
-
"@atlaskit/tokens": "^1.
|
|
46
|
+
"@atlaskit/tokens": "^1.57.0",
|
|
47
47
|
"@atlaskit/tooltip": "^18.5.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"memoize-one": "^6.0.0"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@atlaskit/icon-file-type": "^6.4.0",
|
|
60
60
|
"@atlaskit/media-core": "^34.2.0",
|
|
61
|
-
"@atlaskit/media-test-helpers": "^
|
|
61
|
+
"@atlaskit/media-test-helpers": "^34.0.0",
|
|
62
62
|
"@atlaskit/range": "^7.3.0",
|
|
63
63
|
"@emotion/react": "^11.7.1",
|
|
64
64
|
"date-fns": "^2.17.0",
|