verstak 0.24.109 → 0.24.111

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.
@@ -74,7 +74,7 @@ export class ElImpl {
74
74
  if (!driver.isPartitionSeparator) {
75
75
  const owner = node.owner;
76
76
  const ownerEl = owner.element;
77
- const prevEl = (_a = node.slot.prev) === null || _a === void 0 ? void 0 : _a.instance.element;
77
+ const prevEl = (_a = node.seat.prev) === null || _a === void 0 ? void 0 : _a.instance.element;
78
78
  const cursorPosition = (_b = prevEl === null || prevEl === void 0 ? void 0 : prevEl.cursorPosition) !== null && _b !== void 0 ? _b : InitialCursorPosition;
79
79
  const newCursorPosition = this.cursorPosition = owner.children.isStrict ? new CursorPosition(cursorPosition) : undefined;
80
80
  const isCursorElement = driver instanceof CursorCommandDriver;
@@ -166,7 +166,7 @@ export class ElImpl {
166
166
  rowBreak() {
167
167
  var _a, _b;
168
168
  const node = this.node;
169
- const prevEl = (_a = node.slot.prev) === null || _a === void 0 ? void 0 : _a.instance.element;
169
+ const prevEl = (_a = node.seat.prev) === null || _a === void 0 ? void 0 : _a.instance.element;
170
170
  const cursorPosition = (_b = prevEl === null || prevEl === void 0 ? void 0 : prevEl.cursorPosition) !== null && _b !== void 0 ? _b : InitialCursorPosition;
171
171
  const newCursorPosition = this.cursorPosition = new CursorPosition(cursorPosition);
172
172
  newCursorPosition.x = 1;
@@ -356,7 +356,7 @@ export class Apply {
356
356
  const hostDriver = bNode.host.driver;
357
357
  if (hostDriver.isPartitionSeparator) {
358
358
  Apply.elementAlignment(element, Align.ToBounds);
359
- Apply.heightGrowth(bNode.host.slot.instance.element, value);
359
+ Apply.heightGrowth(bNode.host.seat.instance.element, value);
360
360
  }
361
361
  }
362
362
  }
@@ -13,12 +13,12 @@ export declare class VerstakDriver<T extends Element, M = unknown, C = unknown>
13
13
  export declare class StaticDriver<T extends HTMLElement> extends VerstakDriver<T> {
14
14
  readonly native: T;
15
15
  constructor(native: T, name: string, isRow: boolean, predefine?: SimpleDelegate<El<T>>);
16
- assign(element: El<T>): void;
16
+ initialize(element: El<T>): void;
17
17
  }
18
18
  export declare class HtmlDriver<T extends HTMLElement, M = any, C = any> extends VerstakDriver<T, M, C> {
19
19
  static readonly group: HtmlDriver<any, any, any>;
20
- assign(element: El<T, any, C, void>): void;
20
+ initialize(element: El<T, any, C, void>): void;
21
21
  }
22
22
  export declare class SvgDriver<T extends SVGElement, M = any, C = any> extends VerstakDriver<T, M, C> {
23
- assign(element: El<T, any, C, void>): void;
23
+ initialize(element: El<T, any, C, void>): void;
24
24
  }
@@ -75,21 +75,22 @@ export class StaticDriver extends VerstakDriver {
75
75
  super(name, isRow, predefine);
76
76
  this.native = native;
77
77
  }
78
- assign(element) {
78
+ initialize(element) {
79
79
  element.native = this.native;
80
+ super.initialize(element);
80
81
  }
81
82
  }
82
83
  export class HtmlDriver extends VerstakDriver {
83
- assign(element) {
84
+ initialize(element) {
84
85
  element.native = document.createElement(element.node.driver.name);
85
- super.assign(element);
86
+ super.initialize(element);
86
87
  }
87
88
  }
88
89
  HtmlDriver.group = new HtmlDriver("group", false, el => el.kind = ElKind.Group);
89
90
  export class SvgDriver extends VerstakDriver {
90
- assign(element) {
91
+ initialize(element) {
91
92
  element.native = document.createElementNS("http://www.w3.org/2000/svg", element.node.driver.name);
92
- super.assign(element);
93
+ super.initialize(element);
93
94
  }
94
95
  }
95
96
  function blink(element, priority, revision) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verstak",
3
- "version": "0.24.109",
3
+ "version": "0.24.111",
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.24.107"
34
+ "reactronic": "^0.24.111"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "20.10.4",