verstak 0.23.115 → 0.23.117

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 { CollectionReader, Item, MemberOptions } from "reactronic";
1
+ import { MergeListReader, MergeItem, MemberOptions } from "reactronic";
2
2
  export type Callback<T = unknown> = (native: T) => void;
3
3
  export type Delegate<T = unknown, M = unknown, C = unknown, R = void> = (block: Block<T, M, C, R>, base: () => R) => R;
4
4
  export type AsyncDelegate<T = unknown, M = unknown> = (block: Block<T, M, Promise<void>>) => Promise<void>;
@@ -45,8 +45,8 @@ export interface BlockNode<T = unknown, M = unknown, C = unknown, R = void> {
45
45
  readonly level: number;
46
46
  readonly owner: Block;
47
47
  readonly host: Block;
48
- readonly children: CollectionReader<Block>;
49
- readonly ties: Item<Block> | undefined;
48
+ readonly children: MergeListReader<Block>;
49
+ readonly ties: MergeItem<Block> | undefined;
50
50
  readonly stamp: number;
51
51
  readonly outer: Block;
52
52
  readonly context: BlockCtx | undefined;
@@ -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, nonreactive, Transaction, options, Reentrance, Rx, Collection, ObservableObject, raw } from "reactronic";
19
+ import { reactive, nonreactive, 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 {
@@ -55,7 +55,7 @@ export class Verstak {
55
55
  }
56
56
  else {
57
57
  result = new BlockImpl(key || "", driver, owner, builder);
58
- result.node.ties = Collection.createItem(result);
58
+ result.node.ties = MergeList.createItem(result);
59
59
  triggerRebuild(result.node.ties);
60
60
  }
61
61
  return result;
@@ -272,7 +272,7 @@ class BlockNodeImpl {
272
272
  this.outer = self;
273
273
  }
274
274
  this.host = self;
275
- this.children = new Collection(getBlockKey, true);
275
+ this.children = new MergeList(getBlockKey, true);
276
276
  this.ties = undefined;
277
277
  this.stamp = 0;
278
278
  this.context = undefined;
@@ -1,4 +1,4 @@
1
- import { Item } from "reactronic";
1
+ import { MergeItem } from "reactronic";
2
2
  import { Block, BaseDriver } from "../core/api.js";
3
3
  export declare abstract class BaseHtmlDriver<T extends Element, C = unknown> extends BaseDriver<T, C> {
4
4
  create(block: Block<T, unknown, C, void>, b: {
@@ -13,7 +13,7 @@ export declare abstract class BaseHtmlDriver<T extends Element, C = unknown> ext
13
13
  static get blinkingEffectMarker(): string | undefined;
14
14
  static set blinkingEffectMarker(value: string | undefined);
15
15
  static findEffectiveHtmlBlockHost(block: Block<any>): Block<HTMLElement | SVGElement>;
16
- static findPrevSiblingHtmlBlock(ties: Item<Block<any>>): Item<Block<HTMLElement | SVGElement>> | undefined;
16
+ static findPrevSiblingHtmlBlock(ties: MergeItem<Block<any>>): MergeItem<Block<HTMLElement | SVGElement>> | undefined;
17
17
  }
18
18
  export declare class HtmlDriver<T extends HTMLElement, C = unknown> extends BaseHtmlDriver<T, C> {
19
19
  create(block: Block<T, unknown, C, void>, b: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verstak",
3
- "version": "0.23.115",
3
+ "version": "0.23.117",
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.104"
34
+ "reactronic": "^0.23.107"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "20.6.3",