@elyx-code/project-logic-tree 0.0.6859 → 0.0.6860

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.js CHANGED
@@ -84497,7 +84497,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
84497
84497
  added: m,
84498
84498
  removed: b
84499
84499
  } = this.removeUnrecognizedInputs(i);
84500
- return r.push(...h), a.push(...m), c.push(...b), this.inputs.sort((E, I) => E.index - I.index), i == null || i.attemptAutoclose(D.SyncInputs, this.id), {
84500
+ return r.push(...h), a.push(...m), c.push(...b), this.inputs.forEach((E) => {
84501
+ const {
84502
+ updated: I,
84503
+ added: _,
84504
+ removed: P
84505
+ } = E.afterAllChildrenInitialized(i);
84506
+ r.push(...I), a.push(..._), c.push(...P);
84507
+ }), this.inputs.sort((E, I) => E.index - I.index), i == null || i.attemptAutoclose(D.SyncInputs, this.id), {
84501
84508
  updated: C(r),
84502
84509
  added: C(a),
84503
84510
  removed: C(c),
@@ -84595,7 +84602,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
84595
84602
  added: m,
84596
84603
  removed: b
84597
84604
  } = this.removeUnrecognizedOutputs(i);
84598
- return r.push(...h), a.push(...m), c.push(...b), this.outputs.sort((E, I) => E.index - I.index), i == null || i.attemptAutoclose(D.SyncOutputs, this.id), {
84605
+ return r.push(...h), a.push(...m), c.push(...b), this.outputs.forEach((E) => {
84606
+ const {
84607
+ updated: I,
84608
+ added: _,
84609
+ removed: P
84610
+ } = E.afterAllChildrenInitialized(i);
84611
+ r.push(...I), a.push(..._), c.push(...P);
84612
+ }), this.outputs.sort((E, I) => E.index - I.index), i == null || i.attemptAutoclose(D.SyncOutputs, this.id), {
84599
84613
  updated: C(r),
84600
84614
  added: C(a),
84601
84615
  removed: C(c),
@@ -89342,13 +89356,20 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
89342
89356
  );
89343
89357
  this.inputs.sort((E, I) => E.index - I.index), f.forEach((E) => (this.inputs.forEach((I) => {
89344
89358
  I.index >= E.index && I.metaSync({ index: I.index + 1 }, i);
89345
- }), E.implementAsInputMap(i, this))), this.inputs.sort((E, I) => E.index - I.index);
89359
+ }), E.implementAsInputMap(i, this)));
89346
89360
  const {
89347
89361
  updated: h,
89348
89362
  added: m,
89349
89363
  removed: b
89350
89364
  } = this.removeUnrecognizedInputs(i);
89351
- return r.push(...h), a.push(...m), c.push(...b), i == null || i.attemptAutoclose(D.SyncInputs, this.id), {
89365
+ return r.push(...h), a.push(...m), c.push(...b), this.inputs.forEach((E) => {
89366
+ const {
89367
+ updated: I,
89368
+ added: _,
89369
+ removed: P
89370
+ } = E.afterAllChildrenInitialized(i);
89371
+ r.push(...I), a.push(..._), c.push(...P);
89372
+ }), this.inputs.sort((E, I) => E.index - I.index), i == null || i.attemptAutoclose(D.SyncInputs, this.id), {
89352
89373
  updated: C(r),
89353
89374
  added: C(a),
89354
89375
  removed: C(c),
@@ -89412,13 +89433,20 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
89412
89433
  this.project
89413
89434
  );
89414
89435
  P.setParent(this, i), P.initChildren(i), i == null || i.add(P, H.Added), P.addSelfToProject(i);
89415
- }), this.outputs.sort((I, _) => I.index - _.index);
89436
+ });
89416
89437
  const {
89417
89438
  updated: m,
89418
89439
  added: b,
89419
89440
  removed: E
89420
89441
  } = this.removeUnrecognizedOutputs(i);
89421
- return r.push(...m), a.push(...b), c.push(...E), i == null || i.attemptAutoclose(D.SyncOutputs, this.id), {
89442
+ return r.push(...m), a.push(...b), c.push(...E), this.outputs.forEach((I) => {
89443
+ const {
89444
+ updated: _,
89445
+ added: P,
89446
+ removed: x
89447
+ } = I.afterAllChildrenInitialized(i);
89448
+ r.push(..._), a.push(...P), c.push(...x);
89449
+ }), this.outputs.sort((I, _) => I.index - _.index), i == null || i.attemptAutoclose(D.SyncOutputs, this.id), {
89422
89450
  updated: C(r),
89423
89451
  added: C(a),
89424
89452
  removed: C(c),
@@ -91205,7 +91233,14 @@ Specifically for return statements the parent needs to always be the 'function-d
91205
91233
  self: this
91206
91234
  };
91207
91235
  }
91208
- return i == null || i.attemptAutoclose("sync-returned-inputs", this.id), {
91236
+ return this.outputs.forEach((h) => {
91237
+ const {
91238
+ updated: m,
91239
+ added: b,
91240
+ removed: E
91241
+ } = h.afterAllChildrenInitialized(i);
91242
+ r.push(...m), a.push(...b), c.push(...E);
91243
+ }), this.outputs.sort((h, m) => h.index - m.index), i == null || i.attemptAutoclose("sync-returned-inputs", this.id), {
91209
91244
  updated: C(r),
91210
91245
  added: C(a),
91211
91246
  removed: C(c),
@@ -96749,7 +96784,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
96749
96784
  i
96750
96785
  );
96751
96786
  r.push(...P), c.push(...x);
96752
- }), i == null || i.attemptAutoclose(D.SyncOutputs, this.id), {
96787
+ }), this.outputs.forEach((_) => {
96788
+ const {
96789
+ updated: P,
96790
+ added: x,
96791
+ removed: j
96792
+ } = _.afterAllChildrenInitialized(i);
96793
+ r.push(...P), a.push(...x), c.push(...j);
96794
+ }), this.outputs.sort((_, P) => _.index - P.index), i == null || i.attemptAutoclose(D.SyncOutputs, this.id), {
96753
96795
  updated: C(r),
96754
96796
  added: C(a),
96755
96797
  removed: C(c),
@@ -97789,7 +97831,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
97789
97831
  break;
97790
97832
  }
97791
97833
  }
97792
- return i == null || i.attemptAutoclose("sync-input-maps", this.id), {
97834
+ return this.inputs.forEach((f) => {
97835
+ const {
97836
+ updated: h,
97837
+ added: m,
97838
+ removed: b
97839
+ } = f.afterAllChildrenInitialized(i);
97840
+ r.push(...h), a.push(...m), c.push(...b);
97841
+ }), this.inputs.sort((f, h) => f.index - h.index), i == null || i.attemptAutoclose("sync-input-maps", this.id), {
97793
97842
  updated: C(r),
97794
97843
  added: C(a),
97795
97844
  removed: C(c),
@@ -100067,7 +100116,14 @@ If an entity is called by another, they must be in the same scope, which means t
100067
100116
  added: m,
100068
100117
  removed: b
100069
100118
  } = this.removeUnrecognizedInputs(i);
100070
- return r.push(...h), a.push(...m), c.push(...b), i == null || i.attemptAutoclose(D.SyncInputs, this.id), {
100119
+ return r.push(...h), a.push(...m), c.push(...b), this.inputs.forEach((E) => {
100120
+ const {
100121
+ updated: I,
100122
+ added: _,
100123
+ removed: P
100124
+ } = E.afterAllChildrenInitialized(i);
100125
+ r.push(...I), a.push(..._), c.push(...P);
100126
+ }), this.inputs.sort((E, I) => E.index - I.index), i == null || i.attemptAutoclose(D.SyncInputs, this.id), {
100071
100127
  updated: C(r),
100072
100128
  added: C(a),
100073
100129
  removed: C(c),
@@ -128651,7 +128707,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
128651
128707
  affected: [],
128652
128708
  self: this
128653
128709
  };
128654
- return i == null || i.attemptAutoclose("sync-variable-instance-inputs", this.id), {
128710
+ return this.inputs.forEach((f) => {
128711
+ const {
128712
+ updated: h,
128713
+ added: m,
128714
+ removed: b
128715
+ } = f.afterAllChildrenInitialized(i);
128716
+ a.push(...h), r.push(...m), c.push(...b);
128717
+ }), this.inputs.sort((f, h) => f.index - h.index), i == null || i.attemptAutoclose("sync-variable-instance-inputs", this.id), {
128655
128718
  added: C(r),
128656
128719
  updated: C(a),
128657
128720
  removed: C(c),
@@ -128728,7 +128791,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
128728
128791
  affected: [],
128729
128792
  self: this
128730
128793
  };
128731
- return i == null || i.attemptAutoclose(D.SyncOutputs, this.id), {
128794
+ return this.outputs.forEach((f) => {
128795
+ const {
128796
+ updated: h,
128797
+ added: m,
128798
+ removed: b
128799
+ } = f.afterAllChildrenInitialized(i);
128800
+ a.push(...h), r.push(...m), c.push(...b);
128801
+ }), this.outputs.sort((f, h) => f.index - h.index), i == null || i.attemptAutoclose(D.SyncOutputs, this.id), {
128732
128802
  added: C(r),
128733
128803
  updated: C(a),
128734
128804
  removed: C(c),
@@ -131759,7 +131829,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
131759
131829
  affected: [],
131760
131830
  self: this
131761
131831
  };
131762
- return i == null || i.attemptAutoclose("sync-variable-declaration-inputs", this.id), {
131832
+ return this.inputs.forEach((f) => {
131833
+ const {
131834
+ updated: h,
131835
+ added: m,
131836
+ removed: b
131837
+ } = f.afterAllChildrenInitialized(i);
131838
+ a.push(...h), r.push(...m), c.push(...b);
131839
+ }), this.inputs.sort((f, h) => f.index - h.index), i == null || i.attemptAutoclose("sync-variable-declaration-inputs", this.id), {
131763
131840
  added: C(r),
131764
131841
  updated: C(a),
131765
131842
  removed: C(c),
@@ -131847,7 +131924,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
131847
131924
  affected: [],
131848
131925
  self: this
131849
131926
  };
131850
- return i == null || i.attemptAutoclose(D.SyncOutputs, this.id), {
131927
+ return this.outputs.forEach((f) => {
131928
+ const {
131929
+ updated: h,
131930
+ added: m,
131931
+ removed: b
131932
+ } = f.afterAllChildrenInitialized(i);
131933
+ a.push(...h), r.push(...m), c.push(...b);
131934
+ }), this.outputs.sort((f, h) => f.index - h.index), i == null || i.attemptAutoclose(D.SyncOutputs, this.id), {
131851
131935
  added: C(r),
131852
131936
  updated: C(a),
131853
131937
  removed: C(c),
@@ -160871,25 +160955,31 @@ Search entities can interpolate values, but the values should come from the 'inp
160871
160955
  }), this.inputs.forEach((f) => {
160872
160956
  if (f.declaration) {
160873
160957
  if (!this.inputsDeclarations.find(
160874
- (m) => {
160875
- var b;
160876
- return m.id === ((b = f.declaration) == null ? void 0 : b.id);
160958
+ (I) => {
160959
+ var _;
160960
+ return I.id === ((_ = f.declaration) == null ? void 0 : _.id);
160877
160961
  }
160878
160962
  )) {
160879
- const { updated: m, removed: b } = f.remove(
160963
+ const { updated: I, removed: _ } = f.remove(
160880
160964
  { ignoreUpstream: !1 },
160881
160965
  i
160882
160966
  );
160883
- m.push(...m), c.push(...b);
160967
+ I.push(...I), c.push(..._);
160884
160968
  }
160885
160969
  } else {
160886
- const { updated: h, removed: m } = f.remove(
160970
+ const { updated: E, removed: I } = f.remove(
160887
160971
  { ignoreUpstream: !1 },
160888
160972
  i
160889
160973
  );
160890
- r.push(...h), c.push(...m);
160974
+ r.push(...E), c.push(...I);
160891
160975
  }
160892
- }), i == null || i.attemptAutoclose("sync-input-maps", this.id), {
160976
+ const {
160977
+ updated: h,
160978
+ added: m,
160979
+ removed: b
160980
+ } = f.afterAllChildrenInitialized(i);
160981
+ r.push(...h), a.push(...m), c.push(...b);
160982
+ }), this.inputs.sort((f, h) => f.index - h.index), i == null || i.attemptAutoclose("sync-input-maps", this.id), {
160893
160983
  updated: C(r),
160894
160984
  added: C(a),
160895
160985
  removed: C(c),
@@ -164408,13 +164498,20 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
164408
164498
  this.project
164409
164499
  );
164410
164500
  _.setParent(this, i), _.initChildren(i), i == null || i.add(_, H.Added), _.addSelfToProject(i), a.push(_);
164411
- }), this.inputs.sort((E, I) => E.index - I.index);
164501
+ });
164412
164502
  const {
164413
164503
  updated: h,
164414
164504
  added: m,
164415
164505
  removed: b
164416
164506
  } = this.removeUnrecognizedInputs(i);
164417
- return r.push(...h), a.push(...m), c.push(...b), i == null || i.attemptAutoclose(D.SyncInputs, this.id), {
164507
+ return r.push(...h), a.push(...m), c.push(...b), this.inputs.forEach((E) => {
164508
+ const {
164509
+ updated: I,
164510
+ added: _,
164511
+ removed: P
164512
+ } = E.afterAllChildrenInitialized(i);
164513
+ r.push(...I), a.push(..._), c.push(...P);
164514
+ }), this.inputs.sort((E, I) => E.index - I.index), i == null || i.attemptAutoclose(D.SyncInputs, this.id), {
164418
164515
  updated: C(r),
164419
164516
  added: C(a),
164420
164517
  removed: C(c),
@@ -164512,7 +164609,14 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
164512
164609
  added: m,
164513
164610
  removed: b
164514
164611
  } = this.removeUnrecognizedOutputs(i);
164515
- return r.push(...h), a.push(...m), c.push(...b), this.outputs.sort((E, I) => E.index - I.index), i == null || i.attemptAutoclose(D.SyncOutputs, this.id), {
164612
+ return r.push(...h), a.push(...m), c.push(...b), this.outputs.forEach((E) => {
164613
+ const {
164614
+ updated: I,
164615
+ added: _,
164616
+ removed: P
164617
+ } = E.afterAllChildrenInitialized(i);
164618
+ r.push(...I), a.push(..._), c.push(...P);
164619
+ }), this.outputs.sort((E, I) => E.index - I.index), i == null || i.attemptAutoclose(D.SyncOutputs, this.id), {
164516
164620
  updated: C(r),
164517
164621
  added: C(a),
164518
164622
  removed: C(c),
@@ -167630,7 +167734,14 @@ Specifically for break statements the parent needs to always be the 'loop' entit
167630
167734
  affected: [],
167631
167735
  self: this
167632
167736
  };
167633
- return i == null || i.attemptAutoclose("sync-break-statement-inputs", this.id), {
167737
+ return this.outputs.forEach((h) => {
167738
+ const {
167739
+ updated: m,
167740
+ added: b,
167741
+ removed: E
167742
+ } = h.afterAllChildrenInitialized(i);
167743
+ a.push(...m), r.push(...b), c.push(...E);
167744
+ }), this.outputs.sort((h, m) => h.index - m.index), i == null || i.attemptAutoclose("sync-break-statement-inputs", this.id), {
167634
167745
  added: C(r),
167635
167746
  updated: C(a),
167636
167747
  removed: C(c),
@@ -169417,7 +169528,14 @@ Specifically for continue statements the parent needs to always be the 'loop' en
169417
169528
  affected: [],
169418
169529
  self: this
169419
169530
  };
169420
- return i == null || i.attemptAutoclose("sync-continue-statement-inputs", this.id), {
169531
+ return this.outputs.forEach((h) => {
169532
+ const {
169533
+ updated: m,
169534
+ added: b,
169535
+ removed: E
169536
+ } = h.afterAllChildrenInitialized(i);
169537
+ a.push(...m), r.push(...b), c.push(...E);
169538
+ }), this.outputs.sort((h, m) => h.index - m.index), i == null || i.attemptAutoclose("sync-continue-statement-inputs", this.id), {
169421
169539
  added: C(r),
169422
169540
  updated: C(a),
169423
169541
  removed: C(c),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6859",
3
+ "version": "0.0.6860",
4
4
  "author": "Sergio Herrero",
5
5
  "license": "UNLICENSED",
6
6
  "description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",