@awsui/collection-hooks
Advanced tools
Comparing version 1.0.13 to 1.0.14
export { useCollection } from './use-collection.js'; | ||
export { UseCollectionResult, CollectionRef } from './interfaces'; |
@@ -83,3 +83,3 @@ import * as React from 'react'; | ||
} | ||
interface CollectionBaseResult<T> { | ||
interface UseCollectionResultBase<T> { | ||
items: ReadonlyArray<T>; | ||
@@ -119,5 +119,5 @@ actions: CollectionActions<T>; | ||
} | ||
export interface CollectionSyncResult<T> extends CollectionBaseResult<T> { | ||
export interface UseCollectionResult<T> extends UseCollectionResultBase<T> { | ||
filteredItemsCount: number | undefined; | ||
paginationProps: CollectionBaseResult<T>['paginationProps'] & { | ||
paginationProps: UseCollectionResultBase<T>['paginationProps'] & { | ||
pagesCount: number; | ||
@@ -124,0 +124,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import { CollectionOptions, CollectionSyncResult } from './interfaces'; | ||
export declare function useCollection<T>(allItems: ReadonlyArray<T>, options: CollectionOptions<T>): CollectionSyncResult<T>; | ||
import { CollectionOptions, UseCollectionResult } from './interfaces'; | ||
export declare function useCollection<T>(allItems: ReadonlyArray<T>, options: CollectionOptions<T>): UseCollectionResult<T>; |
import { Dispatch, Reducer } from 'react'; | ||
import { CollectionActions, CollectionOptions, CollectionState, SortingState, CollectionSyncResult, CollectionRef, Query } from './interfaces'; | ||
import { CollectionActions, CollectionOptions, CollectionState, SortingState, UseCollectionResult, CollectionRef, Query } from './interfaces'; | ||
interface SelectionAction<T> { | ||
@@ -34,3 +34,3 @@ type: 'selection'; | ||
allItems: ReadonlyArray<T>; | ||
}): Pick<CollectionSyncResult<T>, 'collectionProps' | 'filterProps' | 'paginationProps' | 'propertyFilterProps'>; | ||
}): Pick<UseCollectionResult<T>, 'collectionProps' | 'filterProps' | 'paginationProps' | 'propertyFilterProps'>; | ||
export {}; |
export { useCollection } from './use-collection.js'; | ||
export { UseCollectionResult, CollectionRef } from './interfaces'; |
@@ -83,3 +83,3 @@ import * as React from 'react'; | ||
} | ||
interface CollectionBaseResult<T> { | ||
interface UseCollectionResultBase<T> { | ||
items: ReadonlyArray<T>; | ||
@@ -119,5 +119,5 @@ actions: CollectionActions<T>; | ||
} | ||
export interface CollectionSyncResult<T> extends CollectionBaseResult<T> { | ||
export interface UseCollectionResult<T> extends UseCollectionResultBase<T> { | ||
filteredItemsCount: number | undefined; | ||
paginationProps: CollectionBaseResult<T>['paginationProps'] & { | ||
paginationProps: UseCollectionResultBase<T>['paginationProps'] & { | ||
pagesCount: number; | ||
@@ -124,0 +124,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import { CollectionOptions, CollectionSyncResult } from './interfaces'; | ||
export declare function useCollection<T>(allItems: ReadonlyArray<T>, options: CollectionOptions<T>): CollectionSyncResult<T>; | ||
import { CollectionOptions, UseCollectionResult } from './interfaces'; | ||
export declare function useCollection<T>(allItems: ReadonlyArray<T>, options: CollectionOptions<T>): UseCollectionResult<T>; |
import { Dispatch, Reducer } from 'react'; | ||
import { CollectionActions, CollectionOptions, CollectionState, SortingState, CollectionSyncResult, CollectionRef, Query } from './interfaces'; | ||
import { CollectionActions, CollectionOptions, CollectionState, SortingState, UseCollectionResult, CollectionRef, Query } from './interfaces'; | ||
interface SelectionAction<T> { | ||
@@ -34,3 +34,3 @@ type: 'selection'; | ||
allItems: ReadonlyArray<T>; | ||
}): Pick<CollectionSyncResult<T>, 'collectionProps' | 'filterProps' | 'paginationProps' | 'propertyFilterProps'>; | ||
}): Pick<UseCollectionResult<T>, 'collectionProps' | 'filterProps' | 'paginationProps' | 'propertyFilterProps'>; | ||
export {}; |
{ | ||
"name": "@awsui/collection-hooks", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
64524
1190
0