@atlaskit/media-table 15.0.3 → 15.0.5

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,17 @@
1
1
  # @atlaskit/media-table
2
2
 
3
+ ## 15.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`48e4a655534`](https://bitbucket.org/atlassian/atlassian-frontend/commits/48e4a655534) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
8
+
9
+ ## 15.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 15.0.3
4
16
 
5
17
  ### Patch Changes
@@ -10,7 +10,7 @@ var _react = require("@emotion/react");
10
10
  var _templateObject, _templateObject2, _templateObject3;
11
11
  var nameCellWrapperStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-content: center;\n align-items: center;\n"])));
12
12
  exports.nameCellWrapperStyles = nameCellWrapperStyles;
13
- var truncateWrapperStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n min-width: 0;\n width: 100%;\n margin-left: 4px;\n\n span:first-of-type {\n &::first-letter {\n text-transform: capitalize;\n }\n }\n"])));
13
+ var truncateWrapperStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n min-width: 0;\n width: 100%;\n margin-left: ", ";\n\n span:first-of-type {\n &::first-letter {\n text-transform: capitalize;\n }\n }\n"])), "var(--ds-space-050, 4px)");
14
14
  exports.truncateWrapperStyles = truncateWrapperStyles;
15
15
  var mediaTableWrapperStyles = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n tr {\n cursor: pointer;\n\n td:empty {\n padding: 0;\n }\n }\n"])));
16
16
  exports.mediaTableWrapperStyles = mediaTableWrapperStyles;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-table",
3
- "version": "15.0.3",
3
+ "version": "15.0.5",
4
4
  "sideEffects": false
5
5
  }
@@ -7,7 +7,7 @@ export const nameCellWrapperStyles = css`
7
7
  export const truncateWrapperStyles = css`
8
8
  min-width: 0;
9
9
  width: 100%;
10
- margin-left: 4px;
10
+ margin-left: ${"var(--ds-space-050, 4px)"};
11
11
 
12
12
  span:first-of-type {
13
13
  &::first-letter {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-table",
3
- "version": "15.0.3",
3
+ "version": "15.0.5",
4
4
  "sideEffects": false
5
5
  }
@@ -2,5 +2,5 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject, _templateObject2, _templateObject3;
3
3
  import { css } from '@emotion/react';
4
4
  export var nameCellWrapperStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-content: center;\n align-items: center;\n"])));
5
- export var truncateWrapperStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n min-width: 0;\n width: 100%;\n margin-left: 4px;\n\n span:first-of-type {\n &::first-letter {\n text-transform: capitalize;\n }\n }\n"])));
5
+ export var truncateWrapperStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n min-width: 0;\n width: 100%;\n margin-left: ", ";\n\n span:first-of-type {\n &::first-letter {\n text-transform: capitalize;\n }\n }\n"])), "var(--ds-space-050, 4px)");
6
6
  export var mediaTableWrapperStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n tr {\n cursor: pointer;\n\n td:empty {\n padding: 0;\n }\n }\n"])));
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-table",
3
- "version": "15.0.3",
3
+ "version": "15.0.5",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-table",
3
- "version": "15.0.3",
3
+ "version": "15.0.5",
4
4
  "description": "Table UI component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -28,7 +28,7 @@
28
28
  "atlassian": {
29
29
  "team": "Media Experience",
30
30
  "inPublicMirror": true,
31
- "releaseModel": "scheduled",
31
+ "releaseModel": "continuous",
32
32
  "website": {
33
33
  "name": "Media Client"
34
34
  }
@@ -36,13 +36,13 @@
36
36
  "dependencies": {
37
37
  "@atlaskit/analytics-next": "^9.1.0",
38
38
  "@atlaskit/button": "^16.7.0",
39
- "@atlaskit/dynamic-table": "^14.9.0",
39
+ "@atlaskit/dynamic-table": "^14.10.0",
40
40
  "@atlaskit/icon": "^21.12.0",
41
- "@atlaskit/media-client": "^22.0.0",
41
+ "@atlaskit/media-client": "^23.0.0",
42
42
  "@atlaskit/media-ui": "^23.0.0",
43
43
  "@atlaskit/media-viewer": "^48.0.0",
44
44
  "@atlaskit/theme": "^12.5.0",
45
- "@atlaskit/tokens": "^1.4.0",
45
+ "@atlaskit/tokens": "^1.5.0",
46
46
  "@atlaskit/tooltip": "^17.8.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/docs": "^9.1.0",
59
59
  "@atlaskit/icon-file-type": "^6.4.0",
60
- "@atlaskit/media-common": "^4.1.0",
60
+ "@atlaskit/media-common": "^7.0.0",
61
61
  "@atlaskit/media-core": "^34.1.0",
62
62
  "@atlaskit/media-test-helpers": "^33.0.0",
63
63
  "@atlaskit/range": "^7.1.0",
@@ -73,7 +73,8 @@
73
73
  "techstack": {
74
74
  "@repo/internal": {
75
75
  "design-tokens": [
76
- "color"
76
+ "color",
77
+ "spacing"
77
78
  ]
78
79
  }
79
80
  },
package/report.api.md CHANGED
@@ -109,7 +109,7 @@ export { SortOrderType };
109
109
 
110
110
  ```json
111
111
  {
112
- "@atlaskit/media-core": "^34.1.1",
112
+ "@atlaskit/media-core": "^34.1.2",
113
113
  "@emotion/react": "^11.7.1",
114
114
  "react": "^16.8.0",
115
115
  "react-dom": "^16.8.0",
@@ -0,0 +1,82 @@
1
+ ## API Report File for "@atlaskit/media-table"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ /// <reference types="react" />
8
+
9
+ import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
10
+ import { FC } from 'react';
11
+ import { FileIdentifier } from '@atlaskit/media-client';
12
+ import { HeadType } from '@atlaskit/dynamic-table/types';
13
+ import { MediaClient } from '@atlaskit/media-client';
14
+ import { MediaType } from '@atlaskit/media-client';
15
+ import { default as React_2 } from 'react';
16
+ import { SortOrderType } from '@atlaskit/dynamic-table/types';
17
+ import { TruncateProps } from '@atlaskit/media-ui/truncateText';
18
+ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
19
+ import { WithIntlProps } from 'react-intl-next';
20
+ import { WithMediaClientConfigProps } from '@atlaskit/media-client';
21
+ import { WrappedComponentProps } from 'react-intl-next';
22
+
23
+ // @public (undocumented)
24
+ export const MediaTable: React_2.ComponentType<WithMediaClientConfigProps<Omit<React_2.PropsWithChildren<WithIntlProps<MediaTableProps & WrappedComponentProps<"intl">>>, keyof WithAnalyticsEventsProps> & React_2.RefAttributes<any>>>;
25
+
26
+ // @public (undocumented)
27
+ export interface MediaTableItem {
28
+ // (undocumented)
29
+ data: RowData;
30
+ // (undocumented)
31
+ identifier: FileIdentifier;
32
+ rowProps?: RowProps;
33
+ }
34
+
35
+ // @public (undocumented)
36
+ export interface MediaTableProps {
37
+ columns: HeadType;
38
+ // (undocumented)
39
+ createAnalyticsEvent: CreateUIAnalyticsEvent;
40
+ highlightedRowIndex?: number[];
41
+ isLoading?: boolean;
42
+ items: MediaTableItem[];
43
+ itemsPerPage?: number;
44
+ // (undocumented)
45
+ mediaClient: MediaClient;
46
+ onPreviewClose?: () => void;
47
+ onPreviewOpen?: () => void;
48
+ onRowClick?: (rowData: RowData, index: number) => boolean;
49
+ onSetPage?: (pageNumber: number) => void;
50
+ onSort?: (key: string, sortOrder: SortOrderType) => void;
51
+ pageNumber?: number;
52
+ sortKey?: string;
53
+ sortOrder?: SortOrderType;
54
+ totalItems: number;
55
+ }
56
+
57
+ // @public (undocumented)
58
+ export const NameCell: FC<NameCellProps>;
59
+
60
+ // @public (undocumented)
61
+ export interface NameCellProps extends TruncateProps {
62
+ // (undocumented)
63
+ mediaType?: MediaType;
64
+ }
65
+
66
+ // @public (undocumented)
67
+ interface RowData {
68
+ // (undocumented)
69
+ [key: string]: React.ReactNode | string;
70
+ }
71
+
72
+ // @public (undocumented)
73
+ interface RowProps {
74
+ // (undocumented)
75
+ className?: string;
76
+ }
77
+
78
+ export { SortOrderType }
79
+
80
+ // (No @packageDocumentation comment for this package)
81
+
82
+ ```