{"_id":"final-form-set-field-touched","_rev":"2-946f6b8c3098e40b6346d44c2c62a374","name":"final-form-set-field-touched","description":"Mutator for setting a field as \"touched\" in 🏁 Final Form","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"final-form-set-field-touched","version":"1.0.0","description":"Mutator for setting a field as \"touched\" in 🏁 Final Form","main":"dist/final-form-set-field-touched.cjs.js","jsnext:main":"dist/final-form-set-field-touched.es.js","module":"dist/final-form-set-field-touched.es.js","files":["dist"],"scripts":{"start":"nps","test":"nps test","precommit":"lint-staged && npm start validate"},"author":{"name":"Erik Rasmussen","email":"rasmussenerik@gmail.com","url":"http://github.com/erikras"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/final-form/final-form-set-field-touched.git"},"bugs":{"url":"https://github.com/final-form/final-form-set-field-touched/issues"},"homepage":"https://github.com/final-form/final-form-set-field-touched#readme","devDependencies":{"babel-eslint":"^8.2.1","babel-jest":"^22.0.4","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-flow-strip-types":"^6.22.0","babel-preset-env":"^1.6.1","babel-preset-stage-2":"^6.24.1","bundlesize":"^0.15.3","doctoc":"^1.3.0","eslint":"^4.15.0","eslint-config-react-app":"^2.0.1","eslint-plugin-babel":"^4.1.2","eslint-plugin-flowtype":"^2.41.0","eslint-plugin-import":"^2.8.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.5.1","final-form":"^1.2.0","flow":"^0.2.3","flow-bin":"^0.60.1","husky":"^0.14.3","jest":"^22.0.5","lint-staged":"^6.0.0","nps":"^5.7.1","nps-utils":"^1.5.0","prettier":"^1.10.1","prettier-eslint-cli":"^4.7.0","rollup":"^0.53.4","rollup-plugin-babel":"^3.0.3","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-flow":"^1.1.1","rollup-plugin-node-resolve":"^3.0.2","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^2.0.1"},"peerDependencies":{"final-form":">=1.2.0"},"lint-staged":{"*.{js,json,md,css}":["prettier --write","git add"]},"bundlesize":[{"path":"dist/final-form-set-field-touched.umd.min.js","threshold":"580B"},{"path":"dist/final-form-set-field-touched.es.js","threshold":"640B"},{"path":"dist/final-form-set-field-touched.cjs.js","threshold":"650B"}],"gitHead":"f155c8f7f2eab5eec363d71bb5a18eac18f79c55","_id":"final-form-set-field-touched@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"erikras","email":"rasmussenerik@gmail.com"},"dist":{"integrity":"sha512-HybhN2L7EbEHxIOHxHuniAUZJmUqPJhJ8/a0fZADFNm969N6JZnk9LYKW+SU7Ni5Gddpj2xx1sWAMBfr7FGBCg==","shasum":"1f7e21cddcab9df80a390337b8f4f3f19093bb27","tarball":"https://registry.npmjs.org/final-form-set-field-touched/-/final-form-set-field-touched-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIHb4ADq1WBI4cezhUe22dTzUVDoRu5teOawuqiwcpjAIgegDXLRR02IrL7B2V7iTdBtuy7sm0hDGb51Zi8cd5VAM="}]},"maintainers":[{"name":"erikras","email":"rasmussenerik@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/final-form-set-field-touched-1.0.0.tgz_1515670999428_0.9975993339903653"},"directories":{}},"1.0.1":{"name":"final-form-set-field-touched","version":"1.0.1","description":"Mutator for setting a field as \"touched\" in 🏁 Final Form","main":"dist/final-form-set-field-touched.cjs.js","jsnext:main":"dist/final-form-set-field-touched.es.js","module":"dist/final-form-set-field-touched.es.js","scripts":{"start":"nps","test":"nps test","precommit":"lint-staged && npm start validate"},"author":{"name":"Erik Rasmussen","email":"rasmussenerik@gmail.com","url":"http://github.com/erikras"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/final-form/final-form-set-field-touched.git"},"bugs":{"url":"https://github.com/final-form/final-form-set-field-touched/issues"},"homepage":"https://github.com/final-form/final-form-set-field-touched#readme","devDependencies":{"@babel/core":"^7.0.0","@babel/plugin-external-helpers":"^7.0.0","@babel/plugin-proposal-class-properties":"^7.0.0","@babel/plugin-proposal-decorators":"^7.0.0","@babel/plugin-proposal-export-namespace-from":"^7.0.0","@babel/plugin-proposal-function-sent":"^7.0.0","@babel/plugin-proposal-json-strings":"^7.0.0","@babel/plugin-proposal-numeric-separator":"^7.0.0","@babel/plugin-proposal-throw-expressions":"^7.0.0","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/plugin-syntax-import-meta":"^7.0.0","@babel/plugin-transform-flow-strip-types":"^7.2.3","@babel/plugin-transform-runtime":"^7.2.0","@babel/preset-env":"^7.0.0","@babel/preset-flow":"^7.0.0","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-jest":"^23.4.2","bundlesize":"^0.17.1","doctoc":"^1.4.0","eslint":"^5.13.0","eslint-config-react-app":"^3.0.6","eslint-plugin-babel":"^5.3.0","eslint-plugin-flowtype":"^3.2.1","eslint-plugin-import":"^2.16.0","eslint-plugin-jsx-a11y":"^6.2.1","eslint-plugin-react":"^7.12.4","final-form":"^4.11.1","flow":"^0.2.3","flow-bin":"^0.92.1","glow":"^1.2.2","husky":"^1.3.1","jest":"^24.1.0","lint-staged":"^8.1.3","nps":"^5.9.3","nps-utils":"^1.7.0","prettier":"^1.16.4","prettier-eslint-cli":"^4.7.1","rollup":"^1.1.2","rollup-plugin-babel":"^4.3.2","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-flow":"^1.1.1","rollup-plugin-node-resolve":"^4.0.0","rollup-plugin-replace":"^2.1.0","rollup-plugin-uglify":"^6.0.2"},"peerDependencies":{"final-form":">=1.2.0"},"lint-staged":{"*.{js,json,md,css}":["prettier --write","git add"]},"bundlesize":[{"path":"dist/final-form-set-field-touched.umd.min.js","threshold":"580B"},{"path":"dist/final-form-set-field-touched.es.js","threshold":"640B"},{"path":"dist/final-form-set-field-touched.cjs.js","threshold":"650B"}],"gitHead":"b612f9d75f4382ea115ef177b635f24fd5a1f1f1","_id":"final-form-set-field-touched@1.0.1","_nodeVersion":"11.1.0","_npmVersion":"6.7.0","_npmUser":{"name":"erikras","email":"rasmussenerik@gmail.com"},"dist":{"integrity":"sha512-yvE5AAs9U3OgJQ9YF8NhSF0I0mJEECvOpkaXNqovloxji5Q6gOZ0DCIAyLAKHluGSpsXKUGORyBm8Hq0beZIqQ==","shasum":"cfbfc0c623df157a1dd0f1a120faa4e2274950f2","tarball":"https://registry.npmjs.org/final-form-set-field-touched/-/final-form-set-field-touched-1.0.1.tgz","fileCount":10,"unpackedSize":7824,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcXEvwCRA9TVsSAnZWagAA8esP/A58MTSXZTH79rqrfUBp\nQhGUgAn1aqSeG7nEU9bhmfu4cliHzTqOVd22kKijaCtf//pKZL0n5M4zJQvC\nv0vfpqPfBuKXcNGdHI3+I+C8KFTijARnLUwwtBX9wNxZN37DbvxpwMK9wVSK\nCdrufDeBi1UNT+d8lDXpZOJvXfvvgcqX572LZ3wU6l+BwfMIxC0pSKqDGflK\nvgsaPdfCl20iZLZaEtTJLkW1J5j35nzIK2orVkmp9MDIjZ+9N+Bal5uX6PyF\n2Z30HhC/m7CTBrx4kxZuoXwzRSl9AH83NEI16NB7OcwvO5bH5wDapizvk5Yr\nmWoq6ie3hAeD0BehUV0ig+2nrGn/hl1Oo4piLlDuu4p1yulxJWZd7O6ytRk/\nMgnv4dJ+yVkaMSHPaLELKaLy5Y7XdBH8/Sa7qbo+ZJSQjkC9Itpo8HpnHjuT\n6HI5Zua5UUrYYxD/Y85g0LBOUKjiALpkRT1x4JLahJH7dXlWHfEjMWiJMCDx\nWFM4T1hZbqaJZUD3TrdPbcVHvMnhfUYGUCvHKa9o3CP6gYjwA+Rt5DwI/Dzx\nSmfPdokEtljJU5GrtjP5lxkoc3fQ6E4WCKhuFB/1XKFL3l486Y+r+E4kjgPq\nGO8V7IR1UHoLHCluUHCRgCD7jrEI+YJqddp6zrB7IeJIVM9ssHOeIYRHcQyA\nrPVm\r\n=zLE3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAPe87qt+kRGUUyRRDa8ShusLllNs1a3kz8dM+kaxhejAiEAkYy/5tZ76wPOZv86TDiyKJTNKEezR98S+ZueSNW5ZvE="}]},"maintainers":[{"name":"erikras","email":"rasmussenerik@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/final-form-set-field-touched_1.0.1_1549552623919_0.4005428066947685"},"_hasShrinkwrap":false}},"readme":"# 🏁 Final Form Set Field Touched\n\n[![NPM Version](https://img.shields.io/npm/v/final-form-set-field-touched.svg?style=flat)](https://www.npmjs.com/package/final-form-set-field-touched)\n[![NPM Downloads](https://img.shields.io/npm/dm/final-form-set-field-touched.svg?style=flat)](https://www.npmjs.com/package/final-form-set-field-touched)\n[![Build Status](https://travis-ci.org/final-form/final-form-set-field-touched.svg?branch=master)](https://travis-ci.org/final-form/final-form-set-field-touched)\n[![codecov.io](https://codecov.io/gh/final-form/final-form-set-field-touched/branch/master/graph/badge.svg)](https://codecov.io/gh/final-form/final-form-set-field-touched)\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n\nMutator for setting a field as \"touched\" in [🏁 Final Form](https://github.com/final-form/final-form).\n\n---\n\n## Installation\n\n```bash\nnpm install --save final-form-set-field-touched\n```\n\nor\n\n```bash\nyarn add final-form-set-field-touched\n```\n\n## Usage\n\n```js\nimport { createForm } from 'final-form'\nimport setFieldTouched from 'final-form-set-field-touched'\n\n// Create Form\nconst form = createForm({\n  mutators: { setFieldTouched },\n  onSubmit\n})\n\nform.mutators.setFieldTouched('firstName', true)\n\nform.registerField(\n  'firstName',\n  fieldState => {\n    const { touched } = fieldState // true\n  },\n  {\n    // ...other subscription items\n    touched: true\n  }\n)\n```\n\n## Mutator\n\n### `form.mutators.setFieldTouched(name: string, touched: boolean) => void`\n\nSets the specified field's `touched` flag to the boolean value provided.\n","maintainers":[{"name":"erikras","email":"rasmussenerik@gmail.com"}],"time":{"modified":"2022-05-02T10:25:21.861Z","created":"2018-01-11T11:43:19.686Z","1.0.0":"2018-01-11T11:43:19.686Z","1.0.1":"2019-02-07T15:17:04.037Z"},"homepage":"https://github.com/final-form/final-form-set-field-touched#readme","repository":{"type":"git","url":"git+https://github.com/final-form/final-form-set-field-touched.git"},"author":{"name":"Erik Rasmussen","email":"rasmussenerik@gmail.com","url":"http://github.com/erikras"},"bugs":{"url":"https://github.com/final-form/final-form-set-field-touched/issues"},"license":"MIT","readmeFilename":"README.md"}