@atlaskit/media-table 18.1.13 → 18.1.15
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/downloadButton.js +2 -1
- package/dist/cjs/component/mediaTable.js +3 -2
- package/dist/cjs/component/previewButton.js +2 -1
- package/dist/cjs/util/generateHeadValues.js +2 -1
- package/dist/cjs/util/getValidTableProps.js +2 -1
- package/dist/es2019/component/downloadButton.js +2 -1
- package/dist/es2019/component/mediaTable.js +3 -2
- package/dist/es2019/component/previewButton.js +2 -1
- package/dist/es2019/util/generateHeadValues.js +2 -1
- package/dist/es2019/util/getValidTableProps.js +2 -1
- package/dist/esm/component/downloadButton.js +2 -1
- package/dist/esm/component/mediaTable.js +3 -2
- package/dist/esm/component/previewButton.js +2 -1
- package/dist/esm/util/generateHeadValues.js +2 -1
- package/dist/esm/util/getValidTableProps.js +2 -1
- package/dist/types/component/downloadButton.d.ts +3 -3
- package/dist/types/component/mediaTable.d.ts +5 -3
- package/dist/types/component/previewButton.d.ts +3 -3
- package/dist/types/component/styles.d.ts +4 -3
- package/dist/types/util/generateHeadValues.d.ts +3 -2
- package/dist/types/util/generateRowValues.d.ts +4 -3
- package/dist/types/util/getValidTableProps.d.ts +3 -2
- package/dist/types-ts4.5/component/downloadButton.d.ts +3 -3
- package/dist/types-ts4.5/component/mediaTable.d.ts +5 -3
- package/dist/types-ts4.5/component/previewButton.d.ts +3 -3
- package/dist/types-ts4.5/component/styles.d.ts +4 -3
- package/dist/types-ts4.5/util/generateHeadValues.d.ts +3 -2
- package/dist/types-ts4.5/util/generateRowValues.d.ts +4 -3
- package/dist/types-ts4.5/util/getValidTableProps.d.ts +3 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -50,4 +50,5 @@ var MediaDownloadButton = function MediaDownloadButton(props) {
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
|
-
var
|
|
53
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(MediaDownloadButton);
|
|
54
|
+
var _default = exports.default = _default_1;
|
|
@@ -299,6 +299,7 @@ var MediaTable = exports.MediaTable = /*#__PURE__*/function (_Component) {
|
|
|
299
299
|
}
|
|
300
300
|
}]);
|
|
301
301
|
}(_react2.Component);
|
|
302
|
-
var
|
|
302
|
+
var _default_1 = (0, _mediaClientReact.withMediaClient)((0, _analyticsNext.withAnalyticsEvents)()((0, _reactIntlNext.injectIntl)(MediaTable, {
|
|
303
303
|
enforceContext: false
|
|
304
|
-
})));
|
|
304
|
+
})));
|
|
305
|
+
var _default = exports.default = _default_1;
|
|
@@ -39,4 +39,5 @@ var MediaPreviewButton = function MediaPreviewButton(props) {
|
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
|
-
var
|
|
42
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(MediaPreviewButton);
|
|
43
|
+
var _default = exports.default = _default_1;
|
|
@@ -21,4 +21,5 @@ var generateHeadValues = (0, _memoizeOne.default)(function (columns) {
|
|
|
21
21
|
})
|
|
22
22
|
};
|
|
23
23
|
});
|
|
24
|
-
var
|
|
24
|
+
var _default_1 = (0, _memoizeOne.default)(generateHeadValues);
|
|
25
|
+
var _default = exports.default = _default_1;
|
|
@@ -41,4 +41,5 @@ var getValidTableProps = function getValidTableProps(itemsCount, itemsPerPage, p
|
|
|
41
41
|
validItemsPerPage: validItemsPerPage
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
-
var
|
|
44
|
+
var _default_1 = (0, _memoizeOne.default)(getValidTableProps);
|
|
45
|
+
var _default = exports.default = _default_1;
|
|
@@ -277,6 +277,7 @@ export class MediaTable extends Component {
|
|
|
277
277
|
}, content);
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
|
|
280
|
+
const _default_1 = withMediaClient(withAnalyticsEvents()(injectIntl(MediaTable, {
|
|
281
281
|
enforceContext: false
|
|
282
|
-
})));
|
|
282
|
+
})));
|
|
283
|
+
export default _default_1;
|
|
@@ -292,6 +292,7 @@ export var MediaTable = /*#__PURE__*/function (_Component) {
|
|
|
292
292
|
}
|
|
293
293
|
}]);
|
|
294
294
|
}(Component);
|
|
295
|
-
|
|
295
|
+
var _default_1 = withMediaClient(withAnalyticsEvents()(injectIntl(MediaTable, {
|
|
296
296
|
enforceContext: false
|
|
297
|
-
})));
|
|
297
|
+
})));
|
|
298
|
+
export default _default_1;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
interface Props {
|
|
4
4
|
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
6
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
7
7
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
8
8
|
};
|
|
9
|
-
export default
|
|
9
|
+
export default _default_1;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import { type WithMediaClientConfigProps } from '@atlaskit/media-client-react';
|
|
3
4
|
import { type MediaTableProps, type MediaTableState } from '../types';
|
|
5
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
6
|
export declare class MediaTable extends Component<MediaTableProps & WrappedComponentProps, MediaTableState> {
|
|
5
7
|
state: MediaTableState;
|
|
6
8
|
private subscriptions;
|
|
@@ -22,7 +24,7 @@ export declare class MediaTable extends Component<MediaTableProps & WrappedCompo
|
|
|
22
24
|
private renderMediaViewer;
|
|
23
25
|
render(): React.JSX.Element;
|
|
24
26
|
}
|
|
25
|
-
declare const
|
|
27
|
+
declare const _default_1: React.ComponentType<WithMediaClientConfigProps<Omit<Omit<MediaTableProps & WrappedComponentProps, "intl"> & {
|
|
26
28
|
forwardedRef?: React.Ref<any>;
|
|
27
|
-
}, keyof
|
|
28
|
-
export default
|
|
29
|
+
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>>;
|
|
30
|
+
export default _default_1;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
interface Props {
|
|
4
4
|
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
6
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
7
7
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
8
8
|
};
|
|
9
|
-
export default
|
|
9
|
+
export default _default_1;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
+
export declare const nameCellWrapperStyles: SerializedStyles;
|
|
3
|
+
export declare const truncateWrapperStyles: SerializedStyles;
|
|
4
|
+
export declare const mediaTableWrapperStyles: SerializedStyles;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HeadType } from '@atlaskit/dynamic-table/types';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { type MemoizedFn } from 'memoize-one';
|
|
3
|
+
declare const _default_1: MemoizedFn<MemoizedFn<(columns: HeadType) => HeadType>>;
|
|
4
|
+
export default _default_1;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type RowType, type HeadCellType, type RowCellType } from '@atlaskit/dynamic-table/types';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
2
|
+
import { type MemoizedFn } from 'memoize-one';
|
|
3
|
+
export declare const generateEmptyRow: MemoizedFn<(headerCells: HeadCellType[]) => RowCellType[]>;
|
|
4
|
+
export declare const prependRows: MemoizedFn<(emptyCells: RowCellType[], itemsPerPage?: number, pageNumber?: number) => RowType[]>;
|
|
5
|
+
export declare const appendRows: MemoizedFn<(emptyCells: RowCellType[], rowsLength: number, itemsPerPage?: number, pageNumber?: number, totalItems?: number) => RowType[]>;
|
|
5
6
|
export default function generateRowValues({ itemsPerPage, pageNumber, totalItems, rowValues, headerCells, }: {
|
|
6
7
|
itemsPerPage?: number;
|
|
7
8
|
pageNumber?: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type MemoizedFn } from 'memoize-one';
|
|
1
2
|
import { type ValidatedProps } from '../types';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
3
|
+
declare const _default_1: MemoizedFn<(itemsCount: number, itemsPerPage?: number, pageNumber?: number, totalItems?: number) => ValidatedProps>;
|
|
4
|
+
export default _default_1;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
interface Props {
|
|
4
4
|
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
6
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
7
7
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
8
8
|
};
|
|
9
|
-
export default
|
|
9
|
+
export default _default_1;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import { type WithMediaClientConfigProps } from '@atlaskit/media-client-react';
|
|
3
4
|
import { type MediaTableProps, type MediaTableState } from '../types';
|
|
5
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
6
|
export declare class MediaTable extends Component<MediaTableProps & WrappedComponentProps, MediaTableState> {
|
|
5
7
|
state: MediaTableState;
|
|
6
8
|
private subscriptions;
|
|
@@ -22,7 +24,7 @@ export declare class MediaTable extends Component<MediaTableProps & WrappedCompo
|
|
|
22
24
|
private renderMediaViewer;
|
|
23
25
|
render(): React.JSX.Element;
|
|
24
26
|
}
|
|
25
|
-
declare const
|
|
27
|
+
declare const _default_1: React.ComponentType<WithMediaClientConfigProps<Omit<Omit<MediaTableProps & WrappedComponentProps, "intl"> & {
|
|
26
28
|
forwardedRef?: React.Ref<any>;
|
|
27
|
-
}, keyof
|
|
28
|
-
export default
|
|
29
|
+
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>>;
|
|
30
|
+
export default _default_1;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
interface Props {
|
|
4
4
|
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
6
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
7
7
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
8
8
|
};
|
|
9
|
-
export default
|
|
9
|
+
export default _default_1;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
+
export declare const nameCellWrapperStyles: SerializedStyles;
|
|
3
|
+
export declare const truncateWrapperStyles: SerializedStyles;
|
|
4
|
+
export declare const mediaTableWrapperStyles: SerializedStyles;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type HeadType } from '@atlaskit/dynamic-table/types';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { type MemoizedFn } from 'memoize-one';
|
|
3
|
+
declare const _default_1: MemoizedFn<MemoizedFn<(columns: HeadType) => HeadType>>;
|
|
4
|
+
export default _default_1;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type RowType, type HeadCellType, type RowCellType } from '@atlaskit/dynamic-table/types';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
2
|
+
import { type MemoizedFn } from 'memoize-one';
|
|
3
|
+
export declare const generateEmptyRow: MemoizedFn<(headerCells: HeadCellType[]) => RowCellType[]>;
|
|
4
|
+
export declare const prependRows: MemoizedFn<(emptyCells: RowCellType[], itemsPerPage?: number, pageNumber?: number) => RowType[]>;
|
|
5
|
+
export declare const appendRows: MemoizedFn<(emptyCells: RowCellType[], rowsLength: number, itemsPerPage?: number, pageNumber?: number, totalItems?: number) => RowType[]>;
|
|
5
6
|
export default function generateRowValues({ itemsPerPage, pageNumber, totalItems, rowValues, headerCells, }: {
|
|
6
7
|
itemsPerPage?: number;
|
|
7
8
|
pageNumber?: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type MemoizedFn } from 'memoize-one';
|
|
1
2
|
import { type ValidatedProps } from '../types';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
3
|
+
declare const _default_1: MemoizedFn<(itemsCount: number, itemsPerPage?: number, pageNumber?: number, totalItems?: number) => ValidatedProps>;
|
|
4
|
+
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-table",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.15",
|
|
4
4
|
"description": "Table UI component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/analytics-next": "^11.2.0",
|
|
33
|
-
"@atlaskit/button": "^23.
|
|
33
|
+
"@atlaskit/button": "^23.11.0",
|
|
34
34
|
"@atlaskit/dynamic-table": "^18.3.0",
|
|
35
|
-
"@atlaskit/icon": "^
|
|
35
|
+
"@atlaskit/icon": "^34.0.0",
|
|
36
36
|
"@atlaskit/media-client": "^36.0.0",
|
|
37
37
|
"@atlaskit/media-client-react": "^5.0.0",
|
|
38
38
|
"@atlaskit/media-ui": "^28.7.0",
|
|
39
39
|
"@atlaskit/media-viewer": "^52.9.0",
|
|
40
|
-
"@atlaskit/tokens": "^
|
|
41
|
-
"@atlaskit/tooltip": "^21.
|
|
40
|
+
"@atlaskit/tokens": "^12.0.0",
|
|
41
|
+
"@atlaskit/tooltip": "^21.1.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"memoize-one": "^6.0.0"
|
|
44
44
|
},
|