diff --git a/package-lock.json b/package-lock.json index 2ac697c..6c0753b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "verstak", - "version": "0.24.205", + "version": "0.24.250", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "verstak", - "version": "0.24.205", + "version": "0.24.250", "license": "Apache-2.0", "dependencies": { - "reactronic": "^0.24.202" + "reactronic": "^0.24.250" }, "devDependencies": { "@types/node": "20.11.17", @@ -2792,9 +2792,9 @@ ] }, "node_modules/reactronic": { - "version": "0.24.202", - "resolved": "https://registry.npmjs.org/reactronic/-/reactronic-0.24.202.tgz", - "integrity": "sha512-R2Vh7kjSwg111DbkYO3AZSObLgz54dqgyfq2TaQpHWhc/MMLAoaB0KqoyNXcEC9Pujv/2BrbQwTuO+7aEoGWSw==" + "version": "0.24.250", + "resolved": "https://registry.npmjs.org/reactronic/-/reactronic-0.24.250.tgz", + "integrity": "sha512-NQSTrbh7svDGFrKy45TZR1ryst87PL0btwwMn8QnVa8zUMp28oU1bIC+2PBeib2ty4q2U18J/L+D6Tkc3tg1hg==" }, "node_modules/readable-stream": { "version": "3.6.2", @@ -5590,9 +5590,9 @@ "dev": true }, "reactronic": { - "version": "0.24.202", - "resolved": "https://registry.npmjs.org/reactronic/-/reactronic-0.24.202.tgz", - "integrity": "sha512-R2Vh7kjSwg111DbkYO3AZSObLgz54dqgyfq2TaQpHWhc/MMLAoaB0KqoyNXcEC9Pujv/2BrbQwTuO+7aEoGWSw==" + "version": "0.24.250", + "resolved": "https://registry.npmjs.org/reactronic/-/reactronic-0.24.250.tgz", + "integrity": "sha512-NQSTrbh7svDGFrKy45TZR1ryst87PL0btwwMn8QnVa8zUMp28oU1bIC+2PBeib2ty4q2U18J/L+D6Tkc3tg1hg==" }, "readable-stream": { "version": "3.6.2", diff --git a/package.json b/package.json index d429ac7..d67e4cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "verstak", - "version": "0.24.205", + "version": "0.24.250", "description": "Verstak - Front-End Library", "publisher": "Nezaboodka Software", "license": "Apache-2.0", @@ -31,7 +31,7 @@ }, "homepage": "https://github.com/nezaboodka/verstak/blob/master/README.md#readme", "dependencies": { - "reactronic": "^0.24.202" + "reactronic": "^0.24.250" }, "devDependencies": { "@types/node": "20.11.17", diff --git a/source/html/Elements.ts b/source/html/Elements.ts index f6daa13..54af813 100644 --- a/source/html/Elements.ts +++ b/source/html/Elements.ts @@ -57,7 +57,7 @@ export function startNewRow(shiftCursorDown?: number): void { export function cursor(areaParams: ElArea): void { RxNode.declare(Drivers.cursor, { - formula: el => { + autorun: el => { el.area = areaParams }, }) @@ -68,7 +68,7 @@ export function cursor(areaParams: ElArea): void { export function Note(content: string, formatted?: boolean, declaration?: RxNodeDecl>): RxNode> { return RxNode.declare(Drivers.note, declaration, { - formula: el => { + autorun: el => { if (formatted) el.native.innerHTML = content else @@ -88,8 +88,8 @@ export function Group( // Fragment export function Handling( - formula: Delegate>): RxNode> { - return SyntheticElement({ mode: Mode.independentUpdate, formula }) + autorun: Delegate>): RxNode> { + return SyntheticElement({ mode: Mode.independentUpdate, autorun }) } export function SyntheticElement( diff --git a/source/html/Handlers.ts b/source/html/Handlers.ts index 8b8878e..1779ba2 100644 --- a/source/html/Handlers.ts +++ b/source/html/Handlers.ts @@ -16,7 +16,7 @@ export function OnClick(target: HTMLElement, action: (() => void) | ToggleRef | key, mode: Mode.independentUpdate, triggers: { target/* , action */ }, - formula: el => { + autorun: el => { const pointer = target.sensors.pointer if (pointer.clicked) { if (action instanceof Function) { @@ -37,7 +37,7 @@ export function OnResize(target: HTMLElement, action: ((element: ResizedElement) key, mode: Mode.independentUpdate, triggers: { target/* , action */ }, - formula: el => { + autorun: el => { const resize = target.sensors.resize resize.resizedElements.forEach(x => { action(x) @@ -58,7 +58,7 @@ export function OnFocus( activation: el => { el.node.configureReactronic({ throttling: 0 }) }, - formula: el => { + autorun: el => { if (switchEditMode !== undefined) { switchEditMode(model) }