UNPKG

@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

107 lines 3.21 kB
{ "name": "@winglet/react-utils", "version": "0.7.0", "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", "format": "prettier --write \"src/**/*.{ts,tsx}\"", "lint": "eslint \"src/**/*.{ts,tsx}\"", "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.7.0" }, "devDependencies": { "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "react": "^19.0.0", "react-dom": "^19.0.0" }, "peerDependencies": { "react": ">=16 <20", "react-dom": ">=16 <20" } }