verstak 0.23.119 → 0.23.120
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,
|
|
19
|
+
import { reactive, unobs, Transaction, Rx, options, Reentrance } from "reactronic";
|
|
20
20
|
import { RxNode } from "./RxDomV1.Types.js";
|
|
21
21
|
export class BasicNodeType {
|
|
22
22
|
constructor(name, sequential) {
|
|
@@ -423,7 +423,7 @@ function tryToRender(node) {
|
|
|
423
423
|
if (node.inline)
|
|
424
424
|
invokeRender(node, node.args);
|
|
425
425
|
else
|
|
426
|
-
|
|
426
|
+
unobs(inst.rerender, node);
|
|
427
427
|
}
|
|
428
428
|
function tryToInitialize(node) {
|
|
429
429
|
var _a, _b;
|
|
@@ -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,
|
|
19
|
+
import { reactive, unobs, Transaction, options, Reentrance, Rx, MergeList, ObservableObject, raw } from "reactronic";
|
|
20
20
|
import { BlockKind, Priority, Mode, Align } from "./Interfaces.js";
|
|
21
21
|
import { emitLetters, equalBlockCoords, parseBlockCoords, getCallerInfo } from "./Utils.js";
|
|
22
22
|
export class Verstak {
|
|
@@ -455,7 +455,7 @@ class BlockImpl {
|
|
|
455
455
|
const b = BlockImpl.curr.instance;
|
|
456
456
|
const node = b.node;
|
|
457
457
|
const owner = node.owner;
|
|
458
|
-
const hostCtx =
|
|
458
|
+
const hostCtx = unobs(() => { var _a; return (_a = owner.node.context) === null || _a === void 0 ? void 0 : _a.value; });
|
|
459
459
|
if (value && value !== hostCtx) {
|
|
460
460
|
if (hostCtx)
|
|
461
461
|
node.outer = owner;
|
|
@@ -693,7 +693,7 @@ function triggerRebuild(ties) {
|
|
|
693
693
|
});
|
|
694
694
|
});
|
|
695
695
|
}
|
|
696
|
-
|
|
696
|
+
unobs(b.rebuild, node.builder.triggers);
|
|
697
697
|
}
|
|
698
698
|
else
|
|
699
699
|
rebuildNow(ties);
|
|
@@ -704,7 +704,7 @@ function mountIfNecessary(block) {
|
|
|
704
704
|
const driver = node.driver;
|
|
705
705
|
if (node.stamp === 0) {
|
|
706
706
|
node.stamp = 1;
|
|
707
|
-
|
|
707
|
+
unobs(() => {
|
|
708
708
|
driver.create(block, block);
|
|
709
709
|
driver.initialize(block);
|
|
710
710
|
if (block.isAutoMountEnabled)
|
|
@@ -712,7 +712,7 @@ function mountIfNecessary(block) {
|
|
|
712
712
|
});
|
|
713
713
|
}
|
|
714
714
|
else if (block.isMoved && block.isAutoMountEnabled)
|
|
715
|
-
|
|
715
|
+
unobs(() => driver.mount(block));
|
|
716
716
|
}
|
|
717
717
|
function rebuildNow(ties) {
|
|
718
718
|
const b = ties.instance;
|
|
@@ -751,7 +751,7 @@ function triggerFinalization(ties, isLeader, individual) {
|
|
|
751
751
|
if (individual && node.key !== node.builder.key && !driver.isRow)
|
|
752
752
|
console.log(`WARNING: it is recommended to assign explicit key for conditional block in order to avoid unexpected side effects: ${node.key}`);
|
|
753
753
|
node.stamp = ~node.stamp;
|
|
754
|
-
const childrenAreLeaders =
|
|
754
|
+
const childrenAreLeaders = unobs(() => driver.finalize(b, isLeader));
|
|
755
755
|
b.native = null;
|
|
756
756
|
b.controller = null;
|
|
757
757
|
if (b.isOn(Mode.PinpointRebuild)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verstak",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.120",
|
|
4
4
|
"description": "Verstak - Front-End Library",
|
|
5
5
|
"publisher": "Nezaboodka Software",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/nezaboodka/verstak/blob/master/README.md#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"reactronic": "^0.23.
|
|
34
|
+
"reactronic": "^0.23.111"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/node": "20.
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
39
|
-
"@typescript-eslint/parser": "6.
|
|
37
|
+
"@types/node": "20.8.9",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "6.9.0",
|
|
39
|
+
"@typescript-eslint/parser": "6.9.0",
|
|
40
40
|
"ava": "5.3.1",
|
|
41
41
|
"c8": "8.0.1",
|
|
42
|
-
"eslint": "8.
|
|
42
|
+
"eslint": "8.52.0",
|
|
43
43
|
"ts-node": "10.9.1",
|
|
44
44
|
"tsconfig-paths": "4.2.0",
|
|
45
45
|
"typescript": "5.2.2"
|