@conform-to/react
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -377,2 +377,3 @@ 'use strict'; | ||
case 'prepend': | ||
case 'insert': | ||
case 'replace': | ||
@@ -379,0 +380,0 @@ return dom.updateList(list, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, intent.payload), {}, { |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"main": "index.js", | ||
@@ -34,3 +34,3 @@ "module": "index.mjs", | ||
"dependencies": { | ||
"@conform-to/dom": "0.8.0" | ||
"@conform-to/dom": "0.8.1" | ||
}, | ||
@@ -37,0 +37,0 @@ "peerDependencies": { |
@@ -273,3 +273,3 @@ # @conform-to/react | ||
{/* Setup a button that can append a new row with optional default value */} | ||
<button {...list.append(items.name, { defaultValue: '' })}>add</button> | ||
<button {...list.insert(items.name, { defaultValue: '' })}>add</button> | ||
</fieldset> | ||
@@ -506,8 +506,8 @@ ); | ||
<form> | ||
{/* To append a new row with optional defaultValue */} | ||
<button {...list.append('name', { defaultValue })}>Append</button> | ||
{/* | ||
To insert a new row with optional defaultValue at a given index. | ||
If no index is given, then the element will be appended at the end of the list. | ||
*/} | ||
<button {...list.insert('name', { index, defaultValue })}>Insert</button> | ||
{/* To prepend a new row with optional defaultValue */} | ||
<button {...list.prepend('name', { defaultValue })}>Prepend</button> | ||
{/* To remove a row by index */} | ||
@@ -514,0 +514,0 @@ <button {...list.remove('name', { index })}>Remove</button> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100959
2093
+ Added@conform-to/dom@0.8.1(transitive)
- Removed@conform-to/dom@0.8.0(transitive)
Updated@conform-to/dom@0.8.1