Skip to content

Commit

Permalink
0.24.263
Browse files Browse the repository at this point in the history
  • Loading branch information
ychetyrko committed Feb 16, 2024
1 parent 99ffa00 commit 72e4d67
Show file tree
Hide file tree
Showing 4 changed files with 192 additions and 192 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.262",
"version": "0.24.263",
"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.262"
"reactronic": "^0.24.263"
},
"devDependencies": {
"@types/node": "20.11.17",
Expand Down
14 changes: 7 additions & 7 deletions source/html/Elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ import { HtmlElementDriver } from "./HtmlDriver.js"
export function Section<M = unknown>(
declaration?: RxNodeDecl<El<HTMLElement, M>>,
preset?: RxNodeDecl<El<HTMLElement, M>>): RxNode<El<HTMLElement, M>> {
return RxNode.child(Drivers.section, declaration, preset)
return RxNode.declare(Drivers.section, declaration, preset)
}

// Table

export function Table<M = unknown, R = void>(
declaration?: RxNodeDecl<El<HTMLElement, M>>,
preset?: RxNodeDecl<El<HTMLElement, M>>): RxNode<El<HTMLElement, M>> {
return RxNode.child(Drivers.table, declaration, preset)
return RxNode.declare(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.child(Drivers.partition)
RxNode.declare(Drivers.partition)
}

export function cursor(areaParams: ElArea): void {
RxNode.child(Drivers.cursor, {
RxNode.declare(Drivers.cursor, {
onChange: el => {
el.area = areaParams
},
Expand All @@ -67,7 +67,7 @@ export function cursor(areaParams: ElArea): void {

export function Note(content: string, formatted?: boolean,
declaration?: RxNodeDecl<El<HTMLElement, void>>): RxNode<El<HTMLElement, void>> {
return RxNode.child(Drivers.note, declaration, {
return RxNode.declare(Drivers.note, declaration, {
onChange: el => {
if (formatted)
el.native.innerHTML = content
Expand All @@ -82,7 +82,7 @@ export function Note(content: string, formatted?: boolean,
export function Group<M = unknown, R = void>(
declaration?: RxNodeDecl<El<HTMLElement, M>>,
preset?: RxNodeDecl<El<HTMLElement, M>>): RxNode<El<HTMLElement, M>> {
return RxNode.child(Drivers.group, declaration, preset)
return RxNode.declare(Drivers.group, declaration, preset)
}

// Fragment
Expand All @@ -95,7 +95,7 @@ export function Handling<M = unknown>(
export function SyntheticElement<M = unknown>(
declaration?: RxNodeDecl<El<void, M>>,
preset?: RxNodeDecl<El<void, M>>): RxNode<El<void, M>> {
return RxNode.child(Drivers.synthetic, declaration, preset)
return RxNode.declare(Drivers.synthetic, declaration, preset)
}

// VerstakElementDriver
Expand Down
Loading

0 comments on commit 72e4d67

Please sign in to comment.