verstak 0.24.308 → 0.24.309
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { RxNode, RxNodeDecl } from "reactronic";
|
|
1
|
+
import { RxNode, RxNodeDecl, Script as Scr, ScriptAsync as ScrAsync, Mode } from "reactronic";
|
|
2
2
|
import { El } from "./El.js";
|
|
3
|
+
export declare function Page(script?: Scr<El<HTMLBodyElement>>, scriptAsync?: ScrAsync<El<HTMLBodyElement>>, key?: string, mode?: Mode, creation?: Scr<El<HTMLBodyElement>>, creationAsync?: ScrAsync<El<HTMLBodyElement>>, destruction?: Scr<El<HTMLBodyElement>>, triggers?: unknown, basis?: RxNodeDecl<El<HTMLBodyElement>>): RxNode<El<HTMLBodyElement>>;
|
|
3
4
|
export declare function Page(declaration?: RxNodeDecl<El<HTMLBodyElement>>): RxNode<El<HTMLBodyElement>>;
|
|
4
5
|
export declare function A<M = unknown>(declaration?: RxNodeDecl<El<HTMLAnchorElement, M>>): RxNode<El<HTMLAnchorElement, M>>;
|
|
5
6
|
export declare function Abbr<M = unknown>(declaration?: RxNodeDecl<El<HTMLElement, M>>): RxNode<El<HTMLElement, M>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RxNode } from "reactronic";
|
|
2
2
|
import { ElKind } from "./El.js";
|
|
3
3
|
import { StaticDriver, HtmlDriver, SvgDriver } from "./HtmlDriver.js";
|
|
4
|
-
export function Page(
|
|
4
|
+
export function Page(scriptOrDeclaration, scriptAsync, key, mode, creation, creationAsync, destruction, triggers, basis) {
|
|
5
5
|
const driver = new StaticDriver(global.document.body, "Page", false, el => el.kind = ElKind.panel);
|
|
6
|
-
return RxNode.declare(driver,
|
|
6
|
+
return RxNode.declare(driver, scriptOrDeclaration, scriptAsync, key, mode, creation, creationAsync, destruction, triggers, basis);
|
|
7
7
|
}
|
|
8
8
|
export function A(declaration) { return RxNode.declare(HtmlTags.a, declaration); }
|
|
9
9
|
export function Abbr(declaration) { return RxNode.declare(HtmlTags.abbr, declaration); }
|