@conform-to/react
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -115,3 +115,3 @@ 'use strict'; | ||
props.value = typeof options.value === 'string' ? options.value : 'on'; | ||
props.defaultChecked = typeof metadata.initialValue === 'boolean' ? metadata.initialValue : metadata.initialValue === props.value; | ||
props.defaultChecked = Array.isArray(metadata.initialValue) ? metadata.initialValue.includes(options.value) : metadata.initialValue === props.value; | ||
} else if (typeof metadata.initialValue === 'string') { | ||
@@ -118,0 +118,0 @@ props.defaultValue = metadata.initialValue; |
137
package.json
{ | ||
"name": "@conform-to/react", | ||
"description": "Conform view adapter for react", | ||
"homepage": "https://conform.guide", | ||
"license": "MIT", | ||
"version": "1.1.3", | ||
"main": "index.js", | ||
"module": "index.mjs", | ||
"types": "index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts", | ||
"module": "./index.mjs", | ||
"import": "./index.mjs", | ||
"require": "./index.js", | ||
"default": "./index.mjs" | ||
} | ||
}, | ||
"scripts": { | ||
"build:js": "rollup -c", | ||
"build:ts": "tsc", | ||
"build": "pnpm run \"/^build:.*/\"", | ||
"dev:js": "pnpm run build:js --watch", | ||
"dev:ts": "pnpm run build:ts --watch", | ||
"dev": "pnpm run \"/^dev:.*/\"", | ||
"prepare": "pnpm run build" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/edmundhung/conform", | ||
"directory": "packages/conform-react" | ||
}, | ||
"author": { | ||
"name": "Edmund Hung", | ||
"email": "me@edmund.dev", | ||
"url": "https://edmund.dev" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/edmundhung/conform/issues" | ||
}, | ||
"dependencies": { | ||
"@conform-to/dom": "1.1.3" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.17.8", | ||
"@babel/preset-env": "^7.20.2", | ||
"@babel/preset-react": "^7.18.6", | ||
"@babel/preset-typescript": "^7.20.2", | ||
"@rollup/plugin-babel": "^5.3.1", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"@types/react": "^18.2.43", | ||
"react": "^18.2.0", | ||
"rollup-plugin-copy": "^3.4.0", | ||
"rollup": "^2.79.1" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=18" | ||
}, | ||
"keywords": [ | ||
"constraint-validation", | ||
"form", | ||
"form-validation", | ||
"html", | ||
"progressive-enhancement", | ||
"validation", | ||
"react", | ||
"remix" | ||
], | ||
"sideEffects": false | ||
} | ||
"name": "@conform-to/react", | ||
"description": "Conform view adapter for react", | ||
"homepage": "https://conform.guide", | ||
"license": "MIT", | ||
"version": "1.1.4", | ||
"main": "index.js", | ||
"module": "index.mjs", | ||
"types": "index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts", | ||
"module": "./index.mjs", | ||
"import": "./index.mjs", | ||
"require": "./index.js", | ||
"default": "./index.mjs" | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/edmundhung/conform", | ||
"directory": "packages/conform-react" | ||
}, | ||
"author": { | ||
"name": "Edmund Hung", | ||
"email": "me@edmund.dev", | ||
"url": "https://edmund.dev" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/edmundhung/conform/issues" | ||
}, | ||
"dependencies": { | ||
"@conform-to/dom": "1.1.4" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.17.8", | ||
"@babel/preset-env": "^7.20.2", | ||
"@babel/preset-react": "^7.18.6", | ||
"@babel/preset-typescript": "^7.20.2", | ||
"@rollup/plugin-babel": "^5.3.1", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"@types/react": "^18.2.43", | ||
"react": "^18.2.0", | ||
"rollup-plugin-copy": "^3.4.0", | ||
"rollup": "^2.79.1" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=18" | ||
}, | ||
"keywords": [ | ||
"constraint-validation", | ||
"form", | ||
"form-validation", | ||
"html", | ||
"progressive-enhancement", | ||
"validation", | ||
"react", | ||
"remix" | ||
], | ||
"sideEffects": false, | ||
"scripts": { | ||
"build:js": "rollup -c", | ||
"build:ts": "tsc", | ||
"build": "pnpm run \"/^build:.*/\"", | ||
"dev:js": "pnpm run build:js --watch", | ||
"dev:ts": "pnpm run build:ts --watch", | ||
"dev": "pnpm run \"/^dev:.*/\"" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
94052
+ Added@conform-to/dom@1.1.4(transitive)
- Removed@conform-to/dom@1.1.3(transitive)
Updated@conform-to/dom@1.1.4