@potok-web-framework/core 0.12.0 → 0.13.0

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.
package/dist/index.mjs CHANGED
@@ -152,8 +152,6 @@ var ListClass = class extends LibBlock {
152
152
  });
153
153
  }), this.entries.forEach((e, n) => {
154
154
  t.has(n) || e.block.unmount();
155
- }), this.children.forEach((e) => {
156
- e?.isNode() && e.insert();
157
155
  }), this.entries = t;
158
156
  }
159
157
  unmount() {
package/dist/server.mjs CHANGED
@@ -36,7 +36,8 @@ var ServerNode = class {
36
36
  this.libNode = e;
37
37
  }
38
38
  addChild(e, t) {
39
- if (t) {
39
+ let n = this.children.indexOf(e);
40
+ if (n !== -1 && this.children.splice(n, 1), t) {
40
41
  let n = this.children.indexOf(t);
41
42
  this.children.splice(n + 1, 0, e);
42
43
  } else this.children.push(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@potok-web-framework/core",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/index.mjs",