@commercetools-uikit/hooks 14.0.0 → 15.0.0
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/dist/commercetools-uikit-hooks.cjs.dev.js +1 -1
- package/dist/commercetools-uikit-hooks.cjs.prod.js +1 -1
- package/dist/commercetools-uikit-hooks.esm.js +1 -1
- package/dist/declarations/src/index.d.ts +1 -0
- package/dist/declarations/src/use-data-table-sorting-state/export-types.d.ts +1 -0
- package/dist/declarations/src/use-data-table-sorting-state/index.d.ts +1 -0
- package/dist/declarations/src/use-data-table-sorting-state/use-data-table-sorting-state.d.ts +2 -2
- package/package.json +3 -3
|
@@ -353,7 +353,7 @@ var useDataTableSortingState = function useDataTableSortingState() {
|
|
|
353
353
|
var useDataTableSortingState$1 = useDataTableSortingState;
|
|
354
354
|
|
|
355
355
|
// NOTE: This string will be replaced on build time with the package version.
|
|
356
|
-
var version = "
|
|
356
|
+
var version = "15.0.0";
|
|
357
357
|
|
|
358
358
|
exports.useDataTableSortingState = useDataTableSortingState$1;
|
|
359
359
|
exports.useFieldId = useFieldId$1;
|
|
@@ -353,7 +353,7 @@ var useDataTableSortingState = function useDataTableSortingState() {
|
|
|
353
353
|
var useDataTableSortingState$1 = useDataTableSortingState;
|
|
354
354
|
|
|
355
355
|
// NOTE: This string will be replaced on build time with the package version.
|
|
356
|
-
var version = "
|
|
356
|
+
var version = "15.0.0";
|
|
357
357
|
|
|
358
358
|
exports.useDataTableSortingState = useDataTableSortingState$1;
|
|
359
359
|
exports.useFieldId = useFieldId$1;
|
|
@@ -333,6 +333,6 @@ var useDataTableSortingState = function useDataTableSortingState() {
|
|
|
333
333
|
var useDataTableSortingState$1 = useDataTableSortingState;
|
|
334
334
|
|
|
335
335
|
// NOTE: This string will be replaced on build time with the package version.
|
|
336
|
-
var version = "
|
|
336
|
+
var version = "15.0.0";
|
|
337
337
|
|
|
338
338
|
export { useDataTableSortingState$1 as useDataTableSortingState, useFieldId$1 as useFieldId, usePaginationState$1 as usePaginationState, usePrevious$1 as usePrevious, useRowSelection$1 as useRowSelection, useSorting$1 as useSorting, useToggleState$1 as useToggleState, version };
|
|
@@ -5,4 +5,5 @@ export { default as useRowSelection } from './use-row-selection';
|
|
|
5
5
|
export { default as useSorting } from './use-sorting';
|
|
6
6
|
export { default as usePaginationState } from './use-pagination-state';
|
|
7
7
|
export { default as useDataTableSortingState } from './use-data-table-sorting-state';
|
|
8
|
+
export * from './use-data-table-sorting-state/export-types';
|
|
8
9
|
export { default as version } from './version';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { TSortDefinition, TDataTableSortingState, } from './use-data-table-sorting-state';
|
package/dist/declarations/src/use-data-table-sorting-state/use-data-table-sorting-state.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare type TSortDefinition = {
|
|
1
|
+
export declare type TSortDefinition = {
|
|
2
2
|
key: string;
|
|
3
3
|
order: 'desc' | 'asc';
|
|
4
4
|
};
|
|
5
|
-
declare type TDataTableSortingState = {
|
|
5
|
+
export declare type TDataTableSortingState = {
|
|
6
6
|
value: TSortDefinition;
|
|
7
7
|
onChange: (key: TSortDefinition['key'], order: TSortDefinition['order']) => void;
|
|
8
8
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/hooks",
|
|
3
3
|
"description": "A collection of React hooks used across some of the UI-Kit components.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "15.0.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.17.2",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.17.2",
|
|
24
|
-
"@commercetools-uikit/utils": "
|
|
24
|
+
"@commercetools-uikit/utils": "15.0.0",
|
|
25
25
|
"lodash": "4.17.21"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@testing-library/react": "12.1.
|
|
28
|
+
"@testing-library/react": "12.1.5",
|
|
29
29
|
"react": "17.0.2"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|