verstak 0.23.116 → 0.23.118

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;
@@ -430,7 +430,7 @@ class BlockImpl {
430
430
  configureReactronic(options) {
431
431
  if (this.node.stamp !== 1 || !this.isOn(Mode.PinpointRebuild))
432
432
  throw new Error("reactronic can be configured only for blocks with separate reaction mode and only inside initialize");
433
- return Rx.getController(this.rebuild).configure(options);
433
+ return Rx.getReaction(this.rebuild).configure(options);
434
434
  }
435
435
  static get curr() {
436
436
  if (!gCurrent)
@@ -688,7 +688,7 @@ function triggerRebuild(ties) {
688
688
  Transaction.outside(() => {
689
689
  if (Rx.isLogging)
690
690
  Rx.setLoggingHint(b, node.key);
691
- Rx.getController(b.rebuild).configure({
691
+ Rx.getReaction(b.rebuild).configure({
692
692
  order: node.level,
693
693
  });
694
694
  });
@@ -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.116",
3
+ "version": "0.23.118",
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.105"
34
+ "reactronic": "^0.23.109"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "20.6.3",