react-children-utilities
Advanced tools
Comparing version
import type { ReactNode } from 'react'; | ||
declare const deepFilter: (children: ReactNode | ReactNode[], deepFilterFn: (child: ReactNode, index?: number | undefined, children?: ReactNode[] | undefined) => boolean) => ReactNode[]; | ||
declare const deepFilter: (children: ReactNode | ReactNode[], deepFilterFn: (child: ReactNode, index?: number, children?: ReactNode[]) => boolean) => ReactNode[]; | ||
export default deepFilter; | ||
//# sourceMappingURL=deepFilter.d.ts.map |
import type { ReactNode } from 'react'; | ||
declare const deepFind: (children: ReactNode | ReactNode[], deepFindFn: (child: ReactNode, index?: number | undefined, children?: ReactNode[] | undefined) => boolean) => ReactNode | undefined; | ||
declare const deepFind: (children: ReactNode | ReactNode[], deepFindFn: (child: ReactNode, index?: number, children?: ReactNode[]) => boolean) => ReactNode | undefined; | ||
export default deepFind; | ||
//# sourceMappingURL=deepFind.d.ts.map |
import type { ReactNode } from 'react'; | ||
declare const deepForEach: (children: ReactNode | ReactNode[], deepForEachFn: (child: ReactNode, index?: number | undefined) => void) => void; | ||
declare const deepForEach: (children: ReactNode | ReactNode[], deepForEachFn: (child: ReactNode, index?: number) => void) => void; | ||
export default deepForEach; | ||
//# sourceMappingURL=deepForEach.d.ts.map |
import type { ReactNode } from 'react'; | ||
declare const deepMap: (children: ReactNode | ReactNode[], deepMapFn: (child: ReactNode, index?: number | undefined, children?: ReactNode[] | undefined) => ReactNode) => ReactNode[]; | ||
declare const deepMap: (children: ReactNode | ReactNode[], deepMapFn: (child: ReactNode, index?: number, children?: ReactNode[]) => ReactNode) => ReactNode[]; | ||
export default deepMap; | ||
//# sourceMappingURL=deepMap.d.ts.map |
import type { ReactNode } from 'react'; | ||
declare const filter: (children: ReactNode | ReactNode[], filterFn: (child: ReactNode, index?: number | undefined, children?: ReactNode[] | undefined) => boolean) => ReactNode[]; | ||
declare const filter: (children: ReactNode | ReactNode[], filterFn: (child: ReactNode, index?: number, children?: ReactNode[]) => boolean) => ReactNode[]; | ||
export default filter; | ||
//# sourceMappingURL=filter.d.ts.map |
{ | ||
"name": "react-children-utilities", | ||
"version": "2.8.0", | ||
"version": "2.9.0", | ||
"type": "module", | ||
"description": "Recursive and extended utils for React children opaque data structure", | ||
"description": "Extended utils for ⚛️ React.Children data structure that adds recursive filter, map and more methods to iterate nested children.", | ||
"repository": "fernandopasik/react-children-utilities", | ||
@@ -59,42 +59,42 @@ "homepage": "https://fernandopasik.com/react-children-utilities", | ||
"devDependencies": { | ||
"@commitlint/cli": "^16.2.4", | ||
"@commitlint/config-conventional": "^16.2.4", | ||
"@types/jest": "^27.4.1", | ||
"@types/react": "^18.0.8", | ||
"@types/react-dom": "^18.0.3", | ||
"@commitlint/cli": "^17.4.4", | ||
"@commitlint/config-conventional": "^17.4.4", | ||
"@rollup/plugin-terser": "^0.4.0", | ||
"@types/jest": "^29.4.0", | ||
"@types/react": "^18.0.28", | ||
"@types/react-dom": "^18.0.11", | ||
"@types/react-test-renderer": "^18.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.21.0", | ||
"@typescript-eslint/parser": "^5.21.0", | ||
"all-contributors-cli": "^6.20.0", | ||
"@typescript-eslint/eslint-plugin": "^5.54.1", | ||
"@typescript-eslint/parser": "^5.54.1", | ||
"all-contributors-cli": "^6.24.0", | ||
"bundlewatch": "^0.3.3", | ||
"del-cli": "^4.0.1", | ||
"eslint": "^8.14.0", | ||
"del-cli": "^5.0.0", | ||
"eslint": "^8.35.0", | ||
"eslint-config-airbnb": "^19.0.4", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jest": "^26.1.5", | ||
"eslint-plugin-jsx-a11y": "^6.5.1", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-react": "^7.29.4", | ||
"eslint-plugin-react-hooks": "^4.5.0", | ||
"flow-bin": "^0.176.3", | ||
"flowgen": "^1.19.0", | ||
"husky": "^7.0.4", | ||
"jest": "^27.5.1", | ||
"jest-junit": "^13.2.0", | ||
"lint-staged": "^12.4.1", | ||
"eslint-config-prettier": "^8.7.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-jest": "^27.2.1", | ||
"eslint-plugin-jsx-a11y": "^6.7.1", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-react": "^7.32.2", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"flow-bin": "^0.201.0", | ||
"flowgen": "^1.21.0", | ||
"husky": "^8.0.3", | ||
"jest": "^29.5.0", | ||
"jest-junit": "^15.0.0", | ||
"lint-staged": "^13.1.2", | ||
"normalize.css": "^8.0.1", | ||
"pinst": "^3.0.0", | ||
"prettier": "^2.6.2", | ||
"prettier-plugin-organize-imports": "^2.3.4", | ||
"prettier-plugin-pkg": "^0.13.0", | ||
"prettier-plugin-sh": "^0.10.1", | ||
"prettier": "^2.8.4", | ||
"prettier-plugin-organize-imports": "^3.2.2", | ||
"prettier-plugin-pkg": "^0.17.1", | ||
"prettier-plugin-sh": "^0.12.8", | ||
"raf": "^3.4.1", | ||
"react": "^18.1.0", | ||
"react-dom": "^18.1.0", | ||
"react-test-renderer": "^18.1.0", | ||
"rollup": "^2.71.1", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"ts-jest": "^27.1.4", | ||
"typescript": "^4.6.4" | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-test-renderer": "^18.2.0", | ||
"rollup": "^3.18.0", | ||
"ts-jest": "^29.0.5", | ||
"typescript": "^4.9.5" | ||
}, | ||
@@ -101,0 +101,0 @@ "sideEffects": false, |
# React Children Utilities | ||
Recursive and extended utils for React children opaque data structure. | ||
Extended utils for ⚛️ React.Children data structure that adds recursive filter, map and more methods to iterate nested children. | ||
@@ -5,0 +5,0 @@ <!-- BADGES - START --> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
59813
0.15%0
-100%