verstak 0.24.104 → 0.24.108
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.
|
@@ -16,7 +16,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
16
16
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
|
-
import { reactive, unobs, Transaction,
|
|
19
|
+
import { reactive, unobs, Transaction, RxSystem, options, Reentrance } from "reactronic";
|
|
20
20
|
import { RxNode } from "./RxDomV1.Types.js";
|
|
21
21
|
export class BasicNodeType {
|
|
22
22
|
constructor(name, sequential) {
|
|
@@ -25,7 +25,7 @@ export class BasicNodeType {
|
|
|
25
25
|
}
|
|
26
26
|
initialize(node) {
|
|
27
27
|
if (!node.inline)
|
|
28
|
-
|
|
28
|
+
RxSystem.setLoggingHint(node, node.id);
|
|
29
29
|
}
|
|
30
30
|
render(node, args) {
|
|
31
31
|
const inst = node.instance;
|
|
@@ -56,7 +56,7 @@ export class BasicNodeType {
|
|
|
56
56
|
if (inst) {
|
|
57
57
|
inst.native = undefined;
|
|
58
58
|
if (!node.inline && node.instance)
|
|
59
|
-
Transaction.separate(() =>
|
|
59
|
+
Transaction.separate(() => RxSystem.dispose(node.instance));
|
|
60
60
|
for (const x of inst.children)
|
|
61
61
|
tryToFinalize(x, initiator);
|
|
62
62
|
for (const x of inst.guests)
|
|
@@ -78,7 +78,7 @@ export class RxNodeInstanceImpl {
|
|
|
78
78
|
}
|
|
79
79
|
rerender(node) {
|
|
80
80
|
invokeRender(node, node.args);
|
|
81
|
-
|
|
81
|
+
RxSystem.configureCurrentOperation({ order: this.level });
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
RxNodeInstanceImpl.gUuid = 0;
|
|
@@ -432,7 +432,7 @@ function tryToInitialize(node) {
|
|
|
432
432
|
(_a = type.initialize) === null || _a === void 0 ? void 0 : _a.call(type, node);
|
|
433
433
|
(_b = type.mount) === null || _b === void 0 ? void 0 : _b.call(type, node);
|
|
434
434
|
if (!node.inline)
|
|
435
|
-
|
|
435
|
+
RxSystem.setLoggingHint(inst, node.id);
|
|
436
436
|
return inst;
|
|
437
437
|
}
|
|
438
438
|
function tryToFinalize(node, initiator) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SimpleDelegate } from "reactronic";
|
|
1
|
+
import { SimpleDelegate, RxNode } from "reactronic";
|
|
2
2
|
import { El, ElDriver } from "./El.js";
|
|
3
3
|
export declare class VerstakDriver<T extends Element, M = unknown, C = unknown> extends ElDriver<T, M, C> {
|
|
4
4
|
initialize(element: El<T, M, C>): void;
|
|
@@ -6,6 +6,8 @@ export declare class VerstakDriver<T extends Element, M = unknown, C = unknown>
|
|
|
6
6
|
mount(element: El<T, M, C>): void;
|
|
7
7
|
relocate(element: El<T, M, C>): void;
|
|
8
8
|
update(element: El<T, M, C>): void | Promise<void>;
|
|
9
|
+
static findBrotherlyHost<T, R>(node: RxNode<El<T>>): RxNode<El<R>> | undefined;
|
|
10
|
+
static findBrotherlyPrevSibling<T, R>(node: RxNode<El<T>>): RxNode<El<R>> | undefined;
|
|
9
11
|
static get blinkingEffectMarker(): string | undefined;
|
|
10
12
|
static set blinkingEffectMarker(value: string | undefined);
|
|
11
13
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RxSystem, RxTree } from "reactronic";
|
|
2
2
|
import { Constants, ElDriver, ElImpl, ElKind } from "./El.js";
|
|
3
3
|
export class VerstakDriver extends ElDriver {
|
|
4
4
|
initialize(element) {
|
|
5
|
-
if (
|
|
5
|
+
if (RxSystem.isLogging && !element.node.driver.isPartitionSeparator)
|
|
6
6
|
element.native.setAttribute(Constants.keyAttrName, element.node.key);
|
|
7
7
|
super.initialize(element);
|
|
8
8
|
}
|
|
@@ -57,6 +57,12 @@ export class VerstakDriver extends ElDriver {
|
|
|
57
57
|
blink(element.native, RxTree.currentUpdatePriority, element.node.stamp);
|
|
58
58
|
return result;
|
|
59
59
|
}
|
|
60
|
+
static findBrotherlyHost(node) {
|
|
61
|
+
return RxTree.findMatchingHost(node, n => n.element.native instanceof HTMLElement || n.element.native instanceof SVGElement);
|
|
62
|
+
}
|
|
63
|
+
static findBrotherlyPrevSibling(node) {
|
|
64
|
+
return RxTree.findMatchingPrevSibling(node, n => n.element.native instanceof HTMLElement || n.element.native instanceof SVGElement);
|
|
65
|
+
}
|
|
60
66
|
static get blinkingEffectMarker() {
|
|
61
67
|
return gBlinkingEffectMarker;
|
|
62
68
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verstak",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.108",
|
|
4
4
|
"description": "Verstak - Front-End Library",
|
|
5
5
|
"publisher": "Nezaboodka Software",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/nezaboodka/verstak/blob/master/README.md#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"reactronic": "^0.24.
|
|
34
|
+
"reactronic": "^0.24.106"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "20.10.4",
|