@winglet/react-utils
Version:
React utility library providing custom hooks, higher-order components (HOCs), and utility functions to enhance React application development with improved reusability and functionality
119 lines • 3.6 kB
JSON
{
"name": "@winglet/react-utils",
"version": "0.2.3",
"description": "React utility library providing custom hooks, higher-order components (HOCs), and utility functions to enhance React application development with improved reusability and functionality",
"keywords": [
"react",
"typescript",
"hooks",
"hoc",
"higher-order-components",
"utilities",
"portal",
"error-boundary",
"custom-hooks",
"react-components",
"component-library",
"react-helpers"
],
"repository": {
"type": "git",
"url": "https://github.com/vincent-kk/albatrion.git",
"directory": "packages/winglet/react-utils"
},
"license": "MIT",
"author": {
"name": "Vincent K. Kelvin",
"email": "lunox273@gmail.com"
},
"sideEffects": false,
"type": "module",
"exports": {
".": {
"source": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./portal": {
"source": "./src/components/Portal/index.ts",
"types": "./dist/components/Portal/index.d.ts",
"import": "./dist/components/Portal/index.mjs",
"require": "./dist/components/Portal/index.cjs"
},
"./hoc": {
"source": "./src/hoc/index.ts",
"types": "./dist/hoc/index.d.ts",
"import": "./dist/hoc/index.mjs",
"require": "./dist/hoc/index.cjs"
},
"./hook": {
"source": "./src/hooks/index.ts",
"types": "./dist/hooks/index.d.ts",
"import": "./dist/hooks/index.mjs",
"require": "./dist/hooks/index.cjs"
},
"./filter": {
"source": "./src/utils/filter/index.ts",
"types": "./dist/utils/filter/index.d.ts",
"import": "./dist/utils/filter/index.mjs",
"require": "./dist/utils/filter/index.cjs"
},
"./object": {
"source": "./src/utils/object/index.ts",
"types": "./dist/utils/object/index.d.ts",
"import": "./dist/utils/object/index.mjs",
"require": "./dist/utils/object/index.cjs"
},
"./render": {
"source": "./src/utils/render/index.ts",
"types": "./dist/utils/render/index.d.ts",
"import": "./dist/utils/render/index.mjs",
"require": "./dist/utils/render/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist",
"README.md"
],
"scripts": {
"build": "rollup -c && yarn build:types",
"build:publish:npm": "yarn build && yarn publish:npm",
"build:types": "tsc -p ./tsconfig.declarations.json && tsc-alias -p ./tsconfig.declarations.json",
"publish:npm": "yarn npm publish --access public",
"test": "vitest",
"version:major": "yarn version major",
"version:minor": "yarn version minor",
"version:patch": "yarn version patch"
},
"dependencies": {
"@winglet/common-utils": "^0.2.2"
},
"devDependencies": {
"@rollup/plugin-typescript": "^12.1.2",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"jsdom": "^25.0.1",
"prettier": "^3.5.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"rollup": "^4.42.0",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"tsc-alias": "^1.8.16",
"typescript": "^5.7.2",
"vite": "^6.3.5",
"vitest": "2.1.9"
},
"peerDependencies": {
"react": ">=16 <20",
"react-dom": ">=16 <20"
}
}