@atlaskit/table 0.14.1 → 0.14.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/dist/types/hooks/selection-provider.d.ts +2 -1
- package/dist/types/hooks/use-row-id.d.ts +1 -1
- package/dist/types/hooks/use-sorting.d.ts +1 -1
- package/dist/types/hooks/use-table-body.d.ts +1 -1
- package/dist/types-ts4.5/hooks/selection-provider.d.ts +2 -1
- package/dist/types-ts4.5/hooks/use-row-id.d.ts +1 -1
- package/dist/types-ts4.5/hooks/use-sorting.d.ts +1 -1
- package/dist/types-ts4.5/hooks/use-table-body.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,10 +2,11 @@ import React, { type FC, type ReactNode } from 'react';
|
|
|
2
2
|
import { type SelectableActions, type SelectableState } from './use-selectable';
|
|
3
3
|
type SelectionContext = [
|
|
4
4
|
SelectableState,
|
|
5
|
+
(
|
|
5
6
|
/**
|
|
6
7
|
* Context actions will be undefined without a `SelectionProvider` mounted.
|
|
7
8
|
*/
|
|
8
|
-
SelectableActions | Partial<SelectableActions>
|
|
9
|
+
SelectableActions | Partial<SelectableActions>)
|
|
9
10
|
];
|
|
10
11
|
declare const SelectionContext: React.Context<SelectionContext>;
|
|
11
12
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SortDirection, type SortKey } from './use-table';
|
|
2
2
|
export declare const useSorting: <ItemType extends object>(sortKey: SortKey<keyof ItemType>) => {
|
|
3
|
-
sortKey:
|
|
3
|
+
sortKey: 'unset' | keyof ItemType;
|
|
4
4
|
sortDirection: SortDirection | undefined;
|
|
5
5
|
setSortState: (key: SortKey<keyof ItemType>) => void;
|
|
6
6
|
sortFn: (rowA: ItemType, rowB: ItemType) => number;
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* __Table body provider__
|
|
3
3
|
* Ensures correct nesting of table elements.
|
|
4
4
|
*/
|
|
5
|
-
export declare const TableBodyProvider: import(
|
|
5
|
+
export declare const TableBodyProvider: import('react').Provider<boolean>;
|
|
6
6
|
export declare const useTableBody: () => void;
|
|
@@ -2,10 +2,11 @@ import React, { type FC, type ReactNode } from 'react';
|
|
|
2
2
|
import { type SelectableActions, type SelectableState } from './use-selectable';
|
|
3
3
|
type SelectionContext = [
|
|
4
4
|
SelectableState,
|
|
5
|
+
(
|
|
5
6
|
/**
|
|
6
7
|
* Context actions will be undefined without a `SelectionProvider` mounted.
|
|
7
8
|
*/
|
|
8
|
-
SelectableActions | Partial<SelectableActions>
|
|
9
|
+
SelectableActions | Partial<SelectableActions>)
|
|
9
10
|
];
|
|
10
11
|
declare const SelectionContext: React.Context<SelectionContext>;
|
|
11
12
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SortDirection, type SortKey } from './use-table';
|
|
2
2
|
export declare const useSorting: <ItemType extends object>(sortKey: SortKey<keyof ItemType>) => {
|
|
3
|
-
sortKey:
|
|
3
|
+
sortKey: 'unset' | keyof ItemType;
|
|
4
4
|
sortDirection: SortDirection | undefined;
|
|
5
5
|
setSortState: (key: SortKey<keyof ItemType>) => void;
|
|
6
6
|
sortFn: (rowA: ItemType, rowB: ItemType) => number;
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* __Table body provider__
|
|
3
3
|
* Ensures correct nesting of table elements.
|
|
4
4
|
*/
|
|
5
|
-
export declare const TableBodyProvider: import(
|
|
5
|
+
export declare const TableBodyProvider: import('react').Provider<boolean>;
|
|
6
6
|
export declare const useTableBody: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/table",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"description": "A table is used to display data.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/checkbox": "^17.3.0",
|
|
42
42
|
"@atlaskit/css": "^0.19.0",
|
|
43
43
|
"@atlaskit/ds-lib": "^5.3.0",
|
|
44
|
-
"@atlaskit/icon": "^
|
|
44
|
+
"@atlaskit/icon": "^32.0.0",
|
|
45
45
|
"@atlaskit/primitives": "^18.0.0",
|
|
46
46
|
"@atlaskit/tokens": "^11.0.0",
|
|
47
47
|
"@atlaskit/tooltip": "^20.14.0",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@af/accessibility-testing": "workspace:^",
|
|
58
58
|
"@af/integration-testing": "workspace:^",
|
|
59
|
-
"@atlaskit/avatar": "^25.
|
|
59
|
+
"@atlaskit/avatar": "^25.8.0",
|
|
60
60
|
"@atlaskit/date": "^2.0.0",
|
|
61
|
-
"@atlaskit/docs": "^11.
|
|
61
|
+
"@atlaskit/docs": "^11.4.0",
|
|
62
62
|
"@atlaskit/dynamic-table": "^18.3.0",
|
|
63
63
|
"@atlaskit/lozenge": "^13.4.0",
|
|
64
64
|
"@atlaskit/section-message": "^8.12.0",
|