reactronic 0.24.261 → 0.24.263
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.
|
@@ -35,7 +35,7 @@ export declare abstract class RxNode<E = unknown> {
|
|
|
35
35
|
static readonly longFrameDuration = 300;
|
|
36
36
|
static currentUpdatePriority: Priority;
|
|
37
37
|
static frameDuration: number;
|
|
38
|
-
static
|
|
38
|
+
static declare<E = void>(driver: RxNodeDriver<E>, declaration?: RxNodeDecl<E>, preset?: RxNodeDecl<E>): RxNode<E>;
|
|
39
39
|
static get isFirstUpdate(): boolean;
|
|
40
40
|
static get key(): string;
|
|
41
41
|
static get stamp(): number;
|
|
@@ -72,7 +72,7 @@ export type RxNodeDriver<E = unknown> = {
|
|
|
72
72
|
destroy(node: RxNode<E>, isLeader: boolean): boolean;
|
|
73
73
|
mount(node: RxNode<E>): void;
|
|
74
74
|
update(node: RxNode<E>): void | Promise<void>;
|
|
75
|
-
child(
|
|
75
|
+
child(ownerNode: RxNode<E>, childDriver: RxNodeDriver<any>, childDeclaration?: RxNodeDecl<any>, childPreset?: RxNodeDecl<any>): void;
|
|
76
76
|
};
|
|
77
77
|
export type RxNodeContext<T extends Object = Object> = {
|
|
78
78
|
value: T;
|
|
@@ -87,7 +87,7 @@ export declare abstract class BaseDriver<E = unknown> implements RxNodeDriver<E>
|
|
|
87
87
|
destroy(node: RxNode<E>, isLeader: boolean): boolean;
|
|
88
88
|
mount(node: RxNode<E>): void;
|
|
89
89
|
update(node: RxNode<E>): void | Promise<void>;
|
|
90
|
-
child(
|
|
90
|
+
child(ownerNode: RxNode<E>, childDriver: RxNodeDriver<any>, childDeclaration?: RxNodeDecl<any>, childPreset?: RxNodeDecl<any>): void;
|
|
91
91
|
}
|
|
92
92
|
export declare class RxNodeVariable<T extends Object = Object> {
|
|
93
93
|
readonly defaultValue: T | undefined;
|
|
@@ -35,7 +35,7 @@ export var Priority;
|
|
|
35
35
|
Priority[Priority["background"] = 2] = "background";
|
|
36
36
|
})(Priority || (Priority = {}));
|
|
37
37
|
export class RxNode {
|
|
38
|
-
static
|
|
38
|
+
static declare(driver, declaration, preset) {
|
|
39
39
|
var _a;
|
|
40
40
|
let result;
|
|
41
41
|
if (declaration)
|
|
@@ -45,7 +45,7 @@ export class RxNode {
|
|
|
45
45
|
let key = declaration.key;
|
|
46
46
|
const owner = gOwnSeat === null || gOwnSeat === void 0 ? void 0 : gOwnSeat.instance;
|
|
47
47
|
if (owner) {
|
|
48
|
-
owner.driver.child(driver, declaration, preset);
|
|
48
|
+
owner.driver.child(owner, driver, declaration, preset);
|
|
49
49
|
let existing = undefined;
|
|
50
50
|
const children = owner.children;
|
|
51
51
|
if (driver.isPartitionSeparator) {
|
|
@@ -170,7 +170,7 @@ export class BaseDriver {
|
|
|
170
170
|
update(node) {
|
|
171
171
|
invokeOnChangeViaPresetChain(node.element, node.declaration);
|
|
172
172
|
}
|
|
173
|
-
child(
|
|
173
|
+
child(ownerNode, childDriver, childDeclaration, childPreset) {
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
export class RxNodeVariable {
|