UNPKG

@hookform/lenses

Version:

Type-safe lenses for React Hook Form that enable precise control over nested form state. Build reusable form components with composable operations, array handling, and full TypeScript support.

93 lines (92 loc) 2.34 kB
{ "name": "@hookform/lenses", "description": "Type-safe lenses for React Hook Form that enable precise control over nested form state. Build reusable form components with composable operations, array handling, and full TypeScript support.", "version": "0.5.0", "repository": { "type": "git", "url": "git+https://github.com/react-hook-form/lenses.git" }, "license": "MIT", "bugs": { "url": "https://github.com/react-hook-form/lenses/issues" }, "homepage": "https://github.com/react-hook-form/lenses", "main": "dist/index.cjs", "module": "dist/index.js", "types": "dist/index.d.ts", "sideEffects": false, "keywords": [ "react", "react-hook-form", "hooks", "form", "forms", "lenses", "reusable-form-components", "typescript", "react-hooks", "type-safe", "form-management", "react-components" ], "files": [ "dist" ], "type": "module", "exports": { "./package.json": "./package.json", ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" }, "./rhf": { "types": "./dist/rhf/index.d.ts", "import": "./dist/rhf/index.js", "require": "./dist/rhf/index.cjs" } }, "scripts": { "build": "tsup", "prettier:fix": "prettier --config .prettierrc --write \"**/*.{js,ts,tsx,css,md}\"", "lint": "eslint '**/*.{js,ts,tsx}'", "lint:fix": "bun lint --fix", "test:run": "bun run --filter '*' test:run" }, "workspaces": [ "examples" ], "peerDependencies": { "react": "^16.8.0 || ^17 || ^18 || ^19", "react-hook-form": "^7.0.0" }, "devDependencies": { "@types/react": "^19.0.10", "@types/react-dom": "^19.0.4", "eslint": "^9.21.0", "eslint-config-prettier": "^10.0.2", "eslint-plugin-prettier": "^5.2.3", "eslint-plugin-react": "^7.37.4", "eslint-plugin-simple-import-sort": "^12.1.1", "lint-staged": "^15.4.3", "prettier": "^3.5.3", "tsup": "^8.4.0", "typescript": "^5.8.2", "typescript-eslint": "^8.26.0" }, "publishConfig": { "access": "public" }, "lint-staged": { "*.{js,ts,tsx}": [ "bun run lint:fix", "bun run prettier:fix" ], "*.{md,json,yml}": [ "prettier --write" ] }, "engines": { "bun": ">=1.2" } }