verstak 0.23.123 → 0.23.125
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,4 +1,4 @@
|
|
|
1
|
-
import { MergeListReader,
|
|
1
|
+
import { MergeListReader, MergedItem, MemberOptions } from "reactronic";
|
|
2
2
|
export type Callback<T = unknown> = (native: T) => void;
|
|
3
3
|
export type Delegate<T> = (element: T, base: () => void) => void;
|
|
4
4
|
export type AsyncDelegate<T = unknown, M = unknown> = (element: El<T, M, Promise<void>>) => Promise<void>;
|
|
@@ -42,7 +42,7 @@ export interface RxNode<T = unknown, M = unknown, C = unknown, R = void> {
|
|
|
42
42
|
readonly owner: RxNode;
|
|
43
43
|
readonly host: RxNode;
|
|
44
44
|
readonly children: MergeListReader<El>;
|
|
45
|
-
readonly slot:
|
|
45
|
+
readonly slot: MergedItem<El> | undefined;
|
|
46
46
|
readonly stamp: number;
|
|
47
47
|
readonly outer: RxNode;
|
|
48
48
|
readonly context: RxNodeCtx | undefined;
|
|
@@ -33,11 +33,11 @@ export class Verstak {
|
|
|
33
33
|
let ex = undefined;
|
|
34
34
|
const children = owner.node.children;
|
|
35
35
|
if (driver.isSeparator) {
|
|
36
|
-
const last = children.
|
|
36
|
+
const last = children.lastMergedItem();
|
|
37
37
|
if (((_a = last === null || last === void 0 ? void 0 : last.instance) === null || _a === void 0 ? void 0 : _a.node.driver) === driver)
|
|
38
38
|
ex = last;
|
|
39
39
|
}
|
|
40
|
-
ex !== null && ex !== void 0 ? ex : (ex = children.
|
|
40
|
+
ex !== null && ex !== void 0 ? ex : (ex = children.tryMergeAsExisting(key = key || generateKey(owner), undefined, "nested elements can be declared inside update function only"));
|
|
41
41
|
if (ex) {
|
|
42
42
|
result = ex.instance;
|
|
43
43
|
const node = result.node;
|
|
@@ -50,7 +50,7 @@ export class Verstak {
|
|
|
50
50
|
}
|
|
51
51
|
else {
|
|
52
52
|
result = new ElImpl(key || generateKey(owner), driver, owner, spec);
|
|
53
|
-
result.node.slot = children.
|
|
53
|
+
result.node.slot = children.mergeAsAdded(result);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
else {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MergedItem } from "reactronic";
|
|
2
2
|
import { El, BaseDriver } from "../core/api.js";
|
|
3
3
|
export declare abstract class BaseHtmlDriver<T extends Element, C = unknown> extends BaseDriver<T, C> {
|
|
4
4
|
create(element: El<T, unknown, C, void>): void;
|
|
@@ -10,7 +10,7 @@ export declare abstract class BaseHtmlDriver<T extends Element, C = unknown> ext
|
|
|
10
10
|
static get blinkingEffectMarker(): string | undefined;
|
|
11
11
|
static set blinkingEffectMarker(value: string | undefined);
|
|
12
12
|
static findEffectiveHtmlElementHost(element: El<any>): El<HTMLElement | SVGElement>;
|
|
13
|
-
static findPrevSiblingHtmlElement(ties:
|
|
13
|
+
static findPrevSiblingHtmlElement(ties: MergedItem<El<any>>): MergedItem<El<HTMLElement | SVGElement>> | undefined;
|
|
14
14
|
}
|
|
15
15
|
export declare class HtmlDriver<T extends HTMLElement, C = unknown> extends BaseHtmlDriver<T, C> {
|
|
16
16
|
create(element: El<T, unknown, C, void>): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verstak",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.125",
|
|
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.23.
|
|
34
|
+
"reactronic": "^0.23.115"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "20.10.4",
|