support for item presets

This commit is contained in:
Anton Tranelis 2024-07-12 14:16:53 +02:00
parent dd29f971d7
commit 273b4ea76e
3 changed files with 6 additions and 5 deletions

8
package-lock.json generated
View File

@ -17,7 +17,7 @@
"react-dom": "^18.2.0",
"react-rnd": "^10.4.1",
"react-router-dom": "^6.23.0",
"utopia-ui": "^3.0.0-alpha.187"
"utopia-ui": "^3.0.0-alpha.192"
},
"devDependencies": {
"@types/react": "^18.2.79",
@ -7250,9 +7250,9 @@
"license": "MIT"
},
"node_modules/utopia-ui": {
"version": "3.0.0-alpha.187",
"resolved": "https://registry.npmjs.org/utopia-ui/-/utopia-ui-3.0.0-alpha.187.tgz",
"integrity": "sha512-LTVapROcVO/RaHnPMzPYWdW/xo4qEfikeBAGBv6/HLH30Oh/C4GnBdAn/raXA8hOzWyhSEzA+gfp+QjdjpY6lA==",
"version": "3.0.0-alpha.192",
"resolved": "https://registry.npmjs.org/utopia-ui/-/utopia-ui-3.0.0-alpha.192.tgz",
"integrity": "sha512-1m7Bcm60SX94WnqcF11XXMOyXFK96RK4z8roTp0Wpcmoxf36JUqWd1SjuM0Pi/fmlnL8F+fzGjc+mdEmVzrdPA==",
"dependencies": {
"@heroicons/react": "^2.0.17",
"@tanstack/react-query": "^5.17.8",

View File

@ -19,7 +19,7 @@
"react-dom": "^18.2.0",
"react-rnd": "^10.4.1",
"react-router-dom": "^6.23.0",
"utopia-ui": "^3.0.0-alpha.187"
"utopia-ui": "^3.0.0-alpha.192"
},
"devDependencies": {
"@types/react": "^18.2.79",

View File

@ -85,6 +85,7 @@ function MapContainer({ layers, map }: { layers: Array<LayerProps>, map: any })
{layer.itemType.custom_text && <div className='flex justify-center'>
<p>Press Save to place your Profile to the Map</p>
</div>}
{layer.item_presets && Object.entries(layer.item_presets).map((ip : any) => <input type="hidden" id={ip[0]} name={ip[0]} value={ip[1]} />)}
</ItemForm>
</Layer>)
}