Skip to content

Commit

Permalink
0.24.118
Browse files Browse the repository at this point in the history
  • Loading branch information
ychetyrko committed Dec 15, 2023
1 parent 3d9bbd9 commit 256aa04
Show file tree
Hide file tree
Showing 4 changed files with 193 additions and 193 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.117",
"version": "0.24.118",
"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.117"
"reactronic": "^0.24.118"
},
"devDependencies": {
"@types/node": "20.10.4",
Expand Down
16 changes: 8 additions & 8 deletions source/html/Elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ import { HtmlDriver } from "./HtmlDriver.js"
export function Section<M = unknown, R = void>(
declaration?: RxNodeDecl<El<HTMLElement, M, R>>,
preset?: RxNodeDecl<El<HTMLElement, M, R>>): RxNode<El<HTMLElement, M, R>> {
return RxNode.declare(Drivers.section, declaration, preset)
return RxNode.acquire(Drivers.section, declaration, preset)
}

// Table

export function Table<M = unknown, R = void>(
declaration?: RxNodeDecl<El<HTMLElement, M, R>>,
preset?: RxNodeDecl<El<HTMLElement, M, R>>): RxNode<El<HTMLElement, M, R>> {
return RxNode.declare(Drivers.table, declaration, preset)
return RxNode.acquire(Drivers.table, declaration, preset)
}

// Partition
Expand All @@ -52,11 +52,11 @@ export function row<T = void>(builder?: (element: void) => T, shiftCursorDown?:
}

export function startNewRow(shiftCursorDown?: number): void {
RxNode.declare(Drivers.partition)
RxNode.acquire(Drivers.partition)
}

export function cursor(areaParams: ElArea): void {
RxNode.declare(Drivers.cursor, {
RxNode.acquire(Drivers.cursor, {
update(b) {
b.area = areaParams
},
Expand All @@ -67,7 +67,7 @@ export function cursor(areaParams: ElArea): void {

export function Note(content: string,
declaration?: RxNodeDecl<El<HTMLElement, void, void>>): RxNode<El<HTMLElement, void, void>> {
return RxNode.declare(Drivers.note, declaration, {
return RxNode.acquire(Drivers.note, declaration, {
update(b) {
b.native.innerText = content
}},
Expand All @@ -76,7 +76,7 @@ export function Note(content: string,

export function HtmlNote(content: string,
declaration?: RxNodeDecl<El<HTMLElement, void, void>>): RxNode<El<HTMLElement, void, void>> {
return RxNode.declare(Drivers.note, declaration, {
return RxNode.acquire(Drivers.note, declaration, {
update(b) {
b.native.innerHTML = content
}},
Expand All @@ -88,15 +88,15 @@ export function HtmlNote(content: string,
export function Group<M = unknown, R = void>(
declaration?: RxNodeDecl<El<HTMLElement, M, R>>,
preset?: RxNodeDecl<El<HTMLElement, M, R>>): RxNode<El<HTMLElement, M, R>> {
return RxNode.declare(Drivers.group, declaration, preset)
return RxNode.acquire(Drivers.group, declaration, preset)
}

// PseudoElement

export function PseudoElement<M = unknown, R = void>(
declaration?: RxNodeDecl<El<void, M, R>>,
preset?: RxNodeDecl<El<void, M, R>>): RxNode<El<void, M, R>> {
return RxNode.declare(Drivers.pseudo, declaration, preset)
return RxNode.acquire(Drivers.pseudo, declaration, preset)
}

// VerstakHtmlDriver
Expand Down
Loading

0 comments on commit 256aa04

Please sign in to comment.