@atlaskit/dynamic-table 14.4.1 → 14.4.2
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 +6 -0
- package/README.md +1 -1
- package/dist/cjs/components/Stateless.js +1 -1
- package/dist/cjs/styled/constants.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Stateless.js +1 -1
- package/dist/es2019/styled/constants.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Stateless.js +1 -1
- package/dist/esm/styled/constants.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/styled/constants.d.ts +1 -1
- package/dist/types/types.d.ts +24 -24
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/dynamic-table
|
|
2
2
|
|
|
3
|
+
## 14.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`78a7ffa81f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/78a7ffa81f8) - Fixes a bug that meant an undefined width would still be stringifed and applied to the inline styles of table cells.
|
|
8
|
+
|
|
3
9
|
## 14.4.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
52
52
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
53
53
|
|
|
54
54
|
var packageName = "@atlaskit/dynamic-table";
|
|
55
|
-
var packageVersion = "14.4.
|
|
55
|
+
var packageVersion = "14.4.2";
|
|
56
56
|
|
|
57
57
|
function toggleSortOrder(currentSortOrder) {
|
|
58
58
|
switch (currentSortOrder) {
|
|
@@ -31,7 +31,7 @@ exports.overflowTruncateStyles = overflowTruncateStyles;
|
|
|
31
31
|
|
|
32
32
|
var getTruncationStyleVars = function getTruncationStyleVars(_ref) {
|
|
33
33
|
var width = _ref.width;
|
|
34
|
-
return (0, _defineProperty2.default)({}, CSS_VAR_WIDTH, "".concat(width, "%"));
|
|
34
|
+
return (0, _defineProperty2.default)({}, CSS_VAR_WIDTH, typeof width !== 'undefined' ? "".concat(width, "%") : undefined);
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
exports.getTruncationStyleVars = getTruncationStyleVars;
|
package/dist/cjs/version.json
CHANGED
|
@@ -13,7 +13,7 @@ import ManagedPagination from './managed-pagination';
|
|
|
13
13
|
import RankableTableBody from './rankable/Body';
|
|
14
14
|
import TableHead from './TableHead';
|
|
15
15
|
const packageName = "@atlaskit/dynamic-table";
|
|
16
|
-
const packageVersion = "14.4.
|
|
16
|
+
const packageVersion = "14.4.2";
|
|
17
17
|
|
|
18
18
|
function toggleSortOrder(currentSortOrder) {
|
|
19
19
|
switch (currentSortOrder) {
|
package/dist/es2019/version.json
CHANGED
|
@@ -24,7 +24,7 @@ import ManagedPagination from './managed-pagination';
|
|
|
24
24
|
import RankableTableBody from './rankable/Body';
|
|
25
25
|
import TableHead from './TableHead';
|
|
26
26
|
var packageName = "@atlaskit/dynamic-table";
|
|
27
|
-
var packageVersion = "14.4.
|
|
27
|
+
var packageVersion = "14.4.2";
|
|
28
28
|
|
|
29
29
|
function toggleSortOrder(currentSortOrder) {
|
|
30
30
|
switch (currentSortOrder) {
|
|
@@ -15,7 +15,7 @@ export var overflowTruncateStyles = css({
|
|
|
15
15
|
});
|
|
16
16
|
export var getTruncationStyleVars = function getTruncationStyleVars(_ref) {
|
|
17
17
|
var width = _ref.width;
|
|
18
|
-
return _defineProperty({}, CSS_VAR_WIDTH, "".concat(width, "%"));
|
|
18
|
+
return _defineProperty({}, CSS_VAR_WIDTH, typeof width !== 'undefined' ? "".concat(width, "%") : undefined);
|
|
19
19
|
};
|
|
20
20
|
export var cellStyles = css({
|
|
21
21
|
border: 'none',
|
package/dist/esm/version.json
CHANGED
|
@@ -12,7 +12,7 @@ export declare const truncationWidthStyles: import("@emotion/core").SerializedSt
|
|
|
12
12
|
export declare const fixedSizeTruncateStyles: import("@emotion/core").SerializedStyles;
|
|
13
13
|
export declare const overflowTruncateStyles: import("@emotion/core").SerializedStyles;
|
|
14
14
|
export declare const getTruncationStyleVars: ({ width }: TruncateStyleProps) => {
|
|
15
|
-
"--local-dynamic-table-width": string;
|
|
15
|
+
"--local-dynamic-table-width": string | undefined;
|
|
16
16
|
};
|
|
17
17
|
export declare const cellStyles: import("@emotion/core").SerializedStyles;
|
|
18
18
|
export {};
|
package/dist/types/types.d.ts
CHANGED
|
@@ -129,18 +129,18 @@ export interface StatelessProps extends WithAnalyticsEventsProps {
|
|
|
129
129
|
*/
|
|
130
130
|
highlightedRowIndex?: number | number[];
|
|
131
131
|
/**
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
A `testId` prop is provided for specified elements,
|
|
133
|
+
which is a unique string that appears as a data attribute
|
|
134
|
+
`data-testid` in the rendered code, serving as a hook for automated tests.
|
|
135
135
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
136
|
+
The value of `testId` is used to prefix `testId` props in given elements.
|
|
137
|
+
+ `${testId}--table` - Table.
|
|
138
|
+
+ `${testId}--head` - Table header.
|
|
139
|
+
+ `${testId}--head--{content of the cell}` - Table header cell can be identified by their content.
|
|
140
|
+
+ `${testId}--row--{index - content of the first cell}` - Table row.
|
|
141
|
+
+ `${testId}--body` - Table body.
|
|
142
|
+
+ `${testId}--body--{content of the cell}` - Table body cell can be identified by their content.
|
|
143
|
+
+ `${testId}--loadingSpinner` - The spinner overlaid when loading.
|
|
144
144
|
*/
|
|
145
145
|
testId?: string;
|
|
146
146
|
/**
|
|
@@ -260,18 +260,18 @@ export interface StatefulProps extends WithAnalyticsEventsProps {
|
|
|
260
260
|
*/
|
|
261
261
|
highlightedRowIndex?: number | number[];
|
|
262
262
|
/**
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
263
|
+
A `testId` prop is provided for specified elements,
|
|
264
|
+
which is a unique string that appears as a data attribute
|
|
265
|
+
`data-testid` in the rendered code, serving as a hook for automated tests.
|
|
266
|
+
|
|
267
|
+
The value of `testId` is used to prefix `testId` props in given elements.
|
|
268
|
+
+ `${testId}--table` - Table.
|
|
269
|
+
+ `${testId}--head` - Table header.
|
|
270
|
+
+ `${testId}--head--{content of the cell}` - Table header cell can be identified by their content.
|
|
271
|
+
+ `${testId}--row--{index - content of the first cell}` - Table row.
|
|
272
|
+
+ `${testId}--body` - Table body.
|
|
273
|
+
+ `${testId}--body--{content of the cell}` - Table body cell can be identified by their content.
|
|
274
|
+
+ `${testId}--loadingSpinner` - The spinner overlaid when loading.
|
|
275
275
|
*/
|
|
276
276
|
testId?: string;
|
|
277
277
|
/**
|
|
@@ -303,7 +303,7 @@ export interface RowType extends React.ComponentPropsWithoutRef<'tr'> {
|
|
|
303
303
|
*/
|
|
304
304
|
export declare type SortOrderType = 'ASC' | 'DESC';
|
|
305
305
|
/**
|
|
306
|
-
* Determines the size of the
|
|
306
|
+
* Determines the size of the table loading spinner.
|
|
307
307
|
* This matches the underlying `Size` type in `@atlaskit/spinner`
|
|
308
308
|
*/
|
|
309
309
|
export declare type SpinnerSizeType = SizeType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dynamic-table",
|
|
3
|
-
"version": "14.4.
|
|
3
|
+
"version": "14.4.2",
|
|
4
4
|
"description": "A dynamic table displays rows of data with built-in pagination, sorting, and re-ordering functionality.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|