@awsui/collection-hooks
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -1,1 +0,1 @@ | ||
export { useCollection } from './use-collection'; | ||
export { useCollection } from './use-collection.js'; |
@@ -1,1 +0,1 @@ | ||
export { useCollection } from './use-collection'; | ||
export { useCollection } from './use-collection.js'; |
@@ -1,4 +0,4 @@ | ||
import { filter } from './filter'; | ||
import { sort } from './sort'; | ||
import { getPagesCount, normalizePageIndex, paginate } from './paginate'; | ||
import { filter } from './filter.js'; | ||
import { sort } from './sort.js'; | ||
import { getPagesCount, normalizePageIndex, paginate } from './paginate.js'; | ||
export function processItems(items, _a, _b) { | ||
@@ -5,0 +5,0 @@ var filteringText = _a.filteringText, sortingState = _a.sortingState, currentPageIndex = _a.currentPageIndex; |
import { useReducer } from 'react'; | ||
import { createActions, collectionReducer } from './utils'; | ||
import { createActions, collectionReducer } from './utils.js'; | ||
export function useCollectionState(allItems, options, collectionRef) { | ||
@@ -4,0 +4,0 @@ var _a, _b, _c, _d, _e, _f, _g; |
@@ -13,5 +13,5 @@ var __assign = (this && this.__assign) || function () { | ||
import { useRef } from 'react'; | ||
import { processItems, processSelectedItems, itemsAreEqual } from './operations'; | ||
import { createSyncProps } from './utils'; | ||
import { useCollectionState } from './use-collection-state'; | ||
import { processItems, processSelectedItems, itemsAreEqual } from './operations/index.js'; | ||
import { createSyncProps } from './utils.js'; | ||
import { useCollectionState } from './use-collection-state.js'; | ||
export function useCollection(allItems, options) { | ||
@@ -18,0 +18,0 @@ var collectionRef = useRef(null); |
{ | ||
"name": "@awsui/collection-hooks", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"type": "module", | ||
@@ -30,2 +30,3 @@ "main": "./dist/index.js", | ||
"preset": "ts-jest", | ||
"resolver": "jest-ts-webcompat-resolver", | ||
"collectCoverage": true, | ||
@@ -32,0 +33,0 @@ "collectCoverageFrom": [ |
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
29652