Skip to content

Commit

Permalink
0.24.202
Browse files Browse the repository at this point in the history
  • Loading branch information
ychetyrko committed Feb 11, 2024
1 parent 664123c commit 8730120
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "verstak",
"version": "0.24.201",
"version": "0.24.202",
"description": "Verstak - Front-End Library",
"publisher": "Nezaboodka Software",
"license": "Apache-2.0",
Expand Down Expand Up @@ -31,7 +31,7 @@
},
"homepage": "https://github.com/nezaboodka/verstak/blob/master/README.md#readme",
"dependencies": {
"reactronic": "^0.24.201"
"reactronic": "^0.24.202"
},
"devDependencies": {
"@types/node": "20.11.17",
Expand Down
8 changes: 4 additions & 4 deletions source/html/Elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function startNewRow(shiftCursorDown?: number): void {

export function cursor(areaParams: ElArea): void {
RxNode.declare(Drivers.cursor, {
content(b) {
formula(b) {
b.area = areaParams
},
})
Expand All @@ -68,7 +68,7 @@ export function cursor(areaParams: ElArea): void {
export function Note(content: string,
declaration?: RxNodeDecl<El<HTMLElement, void>>): RxNode<El<HTMLElement, void>> {
return RxNode.declare(Drivers.note, declaration, {
content(b) {
formula(b) {
b.native.innerText = content
}},
)
Expand All @@ -77,7 +77,7 @@ export function Note(content: string,
export function HtmlNote(content: string,
declaration?: RxNodeDecl<El<HTMLElement, void>>): RxNode<El<HTMLElement, void>> {
return RxNode.declare(Drivers.note, declaration, {
content(b) {
formula(b) {
b.native.innerHTML = content
}},
)
Expand All @@ -95,7 +95,7 @@ export function Group<M = unknown, R = void>(

export function Handling<M = unknown>(
content: Delegate<El<void, M>>): RxNode<El<void, M>> {
return SyntheticElement({ mode: Mode.independentUpdate, content })
return SyntheticElement({ mode: Mode.independentUpdate, formula: content })
}

export function SyntheticElement<M = unknown>(
Expand Down
6 changes: 3 additions & 3 deletions source/html/Handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function OnClick(target: HTMLElement, action: (() => void) | ToggleRef |
key,
mode: Mode.independentUpdate,
triggers: { target/* , action */ },
content() {
formula() {
const pointer = target.sensors.pointer
if (pointer.clicked) {
if (action instanceof Function) {
Expand All @@ -37,7 +37,7 @@ export function OnResize(target: HTMLElement, action: ((element: ResizedElement)
key,
mode: Mode.independentUpdate,
triggers: { target/* , action */ },
content() {
formula() {
const resize = target.sensors.resize
resize.resizedElements.forEach(x => {
action(x)
Expand All @@ -58,7 +58,7 @@ export function OnFocus(
activation(b) {
b.node.configureReactronic({ throttling: 0 })
},
content() {
formula() {
if (switchEditMode !== undefined) {
switchEditMode(model)
}
Expand Down

0 comments on commit 8730120

Please sign in to comment.