verstak 0.23.112 → 0.23.113

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.
@@ -59,7 +59,7 @@ export interface BlockBuilder<T = unknown, M = unknown, C = unknown, R = void> {
59
59
  claim?: Delegate<T, M, C, R>;
60
60
  create?: Delegate<T, M, C, R>;
61
61
  initialize?: Delegate<T, M, C, R>;
62
- update?: Delegate<T, M, C, R>;
62
+ rebuild?: Delegate<T, M, C, R>;
63
63
  finalize?: Delegate<T, M, C, R>;
64
64
  }
65
65
  export interface BlockCtx<T extends Object = Object> {
@@ -105,7 +105,7 @@ export declare const enum Priority {
105
105
  }
106
106
  export declare enum Mode {
107
107
  Default = 0,
108
- PinpointUpdate = 1,
108
+ PinpointRebuild = 1,
109
109
  ManualMount = 2
110
110
  }
111
111
  export declare enum Align {
@@ -17,7 +17,7 @@ export var Priority;
17
17
  export var Mode;
18
18
  (function (Mode) {
19
19
  Mode[Mode["Default"] = 0] = "Default";
20
- Mode[Mode["PinpointUpdate"] = 1] = "PinpointUpdate";
20
+ Mode[Mode["PinpointRebuild"] = 1] = "PinpointRebuild";
21
21
  Mode[Mode["ManualMount"] = 2] = "ManualMount";
22
22
  })(Mode || (Mode = {}));
23
23
  export var Align;
@@ -170,7 +170,7 @@ function chainedInitialize(block, bb) {
170
170
  chainedInitialize(block, base);
171
171
  }
172
172
  function chainedUpdate(block, bb) {
173
- const update = bb.update;
173
+ const update = bb.rebuild;
174
174
  const base = bb.base;
175
175
  if (update)
176
176
  update(block, base ? () => chainedUpdate(block, base) : NOP);
@@ -305,7 +305,7 @@ class BlockImpl {
305
305
  this.updatePriority = Priority.Realtime;
306
306
  this.childrenShuffling = false;
307
307
  BlockImpl.grandBlockCount++;
308
- if (this.isOn(Mode.PinpointUpdate))
308
+ if (this.isOn(Mode.PinpointRebuild))
309
309
  BlockImpl.disposableBlockCount++;
310
310
  }
311
311
  update(_triggers) {
@@ -428,7 +428,7 @@ class BlockImpl {
428
428
  this._hasStyles = true;
429
429
  }
430
430
  configureReactronic(options) {
431
- if (this.node.stamp !== 1 || !this.isOn(Mode.PinpointUpdate))
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
433
  return Rx.getController(this.update).configure(options);
434
434
  }
@@ -683,7 +683,7 @@ function triggerUpdate(ties) {
683
683
  const b = ties.instance;
684
684
  const node = b.node;
685
685
  if (node.stamp >= 0) {
686
- if (b.isOn(Mode.PinpointUpdate)) {
686
+ if (b.isOn(Mode.PinpointRebuild)) {
687
687
  if (node.stamp === 0) {
688
688
  Transaction.outside(() => {
689
689
  if (Rx.isLogging)
@@ -754,7 +754,7 @@ function triggerFinalization(ties, isLeader, individual) {
754
754
  const childrenAreLeaders = nonreactive(() => driver.finalize(b, isLeader));
755
755
  b.native = null;
756
756
  b.controller = null;
757
- if (b.isOn(Mode.PinpointUpdate)) {
757
+ if (b.isOn(Mode.PinpointRebuild)) {
758
758
  ties.aux = undefined;
759
759
  const last = gLastToDispose;
760
760
  if (last)
@@ -15,21 +15,21 @@ export function fromNewRow(shiftCursorDown) {
15
15
  }
16
16
  export function cursor(areaParams) {
17
17
  Verstak.claim(Drivers.cursor, {
18
- update(b) {
18
+ rebuild(b) {
19
19
  b.area = areaParams;
20
20
  },
21
21
  });
22
22
  }
23
23
  export function Note(content, builder) {
24
24
  return Verstak.claim(Drivers.note, builder, {
25
- update(b) {
25
+ rebuild(b) {
26
26
  b.native.innerText = content;
27
27
  }
28
28
  });
29
29
  }
30
30
  export function HtmlNote(content, builder) {
31
31
  return Verstak.claim(Drivers.note, builder, {
32
- update(b) {
32
+ rebuild(b) {
33
33
  b.native.innerHTML = content;
34
34
  }
35
35
  });
@@ -3,12 +3,12 @@ import { Fragment } from "./Blocks";
3
3
  export function FocuserReaction(key, target, model, switchEditMode = undefined) {
4
4
  Fragment({
5
5
  key,
6
- mode: Mode.PinpointUpdate,
6
+ mode: Mode.PinpointRebuild,
7
7
  triggers: { target, model },
8
8
  initialize(b) {
9
9
  b.configureReactronic({ throttling: 0 });
10
10
  },
11
- update() {
11
+ rebuild() {
12
12
  if (switchEditMode !== undefined) {
13
13
  switchEditMode(model);
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verstak",
3
- "version": "0.23.112",
3
+ "version": "0.23.113",
4
4
  "description": "Verstak - Front-End Library",
5
5
  "publisher": "Nezaboodka Software",
6
6
  "license": "Apache-2.0",