@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.
105 lines (104 loc) • 3 kB
JSON
{
"name": "@hookform/lenses",
"version": "0.7.1",
"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.",
"keywords": [
"react",
"react-hook-form",
"hooks",
"form",
"forms",
"lenses",
"reusable-form-components",
"typescript",
"react-hooks",
"type-safe",
"form-management",
"react-components"
],
"homepage": "https://react-hook-form.com/docs/uselens",
"bugs": {
"url": "https://github.com/react-hook-form/lenses/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/react-hook-form/lenses.git"
},
"license": "MIT",
"sideEffects": false,
"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"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsup",
"lint": "bun --bun eslint '**/*.{ts,tsx}'",
"lint:fix": "bun lint --fix",
"prettier": "prettier --check '**/*.md'",
"prettier:fix": "prettier --write '**/*.md'",
"storybook": "storybook dev -p 6006",
"test": "vitest watch",
"test:e2e": "vitest run --project=e2e --coverage",
"test:unit": "vitest run --project=unit --coverage"
},
"peerDependencies": {
"react": "^16.8.0 || ^17 || ^18 || ^19",
"react-hook-form": "^7.0.0"
},
"devDependencies": {
"@storybook/addon-essentials": "^8.6.12",
"@storybook/experimental-addon-test": "^8.6.12",
"@storybook/react": "^8.6.12",
"@storybook/react-vite": "^8.6.12",
"@storybook/test": "^8.6.12",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@types/node": "^22.15.17",
"@types/react": "^19.1.3",
"@types/react-dom": "^19.1.3",
"@vitejs/plugin-react": "^4.4.1",
"@vitest/browser": "3.1.3",
"@vitest/coverage-v8": "^3.1.3",
"babel-plugin-react-compiler": "^19.1.0-rc.1",
"eslint": "^9.26.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-prettier": "^5.4.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-storybook": "^0.12.0",
"jiti": "^2.4.2",
"jsdom": "^26.1.0",
"playwright": "^1.52.0",
"prettier": "^3.5.3",
"storybook": "^8.6.12",
"tsup": "^8.4.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.32.0",
"vite": "^6.3.5",
"vite-plugin-checker": "^0.9.3",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.1.3"
},
"engines": {
"bun": ">=1.2"
},
"publishConfig": {
"access": "public"
}
}