bump version

This commit is contained in:
CoolElectronics 2024-01-09 20:53:35 -05:00
parent 01129edb48
commit 6cd1e1f304
No known key found for this signature in database
GPG key ID: F63593D168636C50
2 changed files with 9 additions and 4 deletions

View file

@ -84,7 +84,7 @@ export function handle(references, callback) {
(pair) => values.get(pair[0])[pair[1]], (pair) => values.get(pair[0])[pair[1]],
); );
const value = mapping(...flattened_values); const value = mapping(...flattened_values.reverse());
callback(value); callback(value);
}; };
@ -363,6 +363,11 @@ function h(type, props, ...children) {
elm.addEventListener("change", () => { elm.addEventListener("change", () => {
reference.proxy[reference.property] = elm.value; reference.proxy[reference.property] = elm.value;
}) })
} else if (propname == "checked") {
handle(references, value => elm.checked = value);
elm.addEventListener("click", () => {
reference.proxy[reference.property] = elm.checked;
})
} }
delete props[name]; delete props[name];
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "@mercuryworkshop/alicejs", "name": "@mercuryworkshop/alicejs",
"version": "1.1.2", "version": "1.1.3",
"description": "A utilitarian HTML rendering library", "description": "A utilitarian HTML rendering library",
"scripts": { "scripts": {
"build": "esbuild --minify --bundle AliceJS.js --outfile=index.js && tsc", "build": "esbuild --minify --bundle AliceJS.js --outfile=index.js && tsc",
@ -12,8 +12,8 @@
"license": "MIT", "license": "MIT",
"exports": { "exports": {
".": { ".": {
"browser": "./dist/index.js", "browser": "./index.js",
"node": "./dist/index.js", "node": "./index.js",
"types":"./AliceJS.d.ts" "types":"./AliceJS.d.ts"
} }
}, },