@almadar/ui 4.38.1 → 4.39.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.
@@ -3779,17 +3779,20 @@ function parseApplicationLevel(schema) {
3779
3779
  }
3780
3780
  }
3781
3781
  }
3782
+ const seenLinks = /* @__PURE__ */ new Set();
3782
3783
  for (const emit of emitMap) {
3783
3784
  for (const listen of listenMap) {
3784
- if (emit.event === listen.event && emit.orbital !== listen.orbital) {
3785
- crossLinks.push({
3786
- emitterOrbital: emit.orbital,
3787
- listenerOrbital: listen.orbital,
3788
- eventName: emit.event,
3789
- emitterTrait: emit.trait,
3790
- listenerTrait: listen.trait
3791
- });
3792
- }
3785
+ if (emit.event !== listen.event || emit.orbital === listen.orbital) continue;
3786
+ const key = `${emit.orbital}\u241F${listen.orbital}\u241F${emit.event}`;
3787
+ if (seenLinks.has(key)) continue;
3788
+ seenLinks.add(key);
3789
+ crossLinks.push({
3790
+ emitterOrbital: emit.orbital,
3791
+ listenerOrbital: listen.orbital,
3792
+ eventName: emit.event,
3793
+ emitterTrait: emit.trait,
3794
+ listenerTrait: listen.trait
3795
+ });
3793
3796
  }
3794
3797
  }
3795
3798
  return { orbitals, crossLinks };
@@ -48232,17 +48235,20 @@ function findCrossLinks(orbitals) {
48232
48235
  }
48233
48236
  }
48234
48237
  }
48238
+ const seen = /* @__PURE__ */ new Set();
48235
48239
  for (const em of emitters) {
48236
48240
  for (const li of listeners6) {
48237
- if (em.event === li.event && em.orbital !== li.orbital) {
48238
- links.push({
48239
- emitterOrbital: em.orbital,
48240
- listenerOrbital: li.orbital,
48241
- event: em.event,
48242
- emitterTrait: em.trait,
48243
- listenerTrait: li.trait
48244
- });
48245
- }
48241
+ if (em.event !== li.event || em.orbital === li.orbital) continue;
48242
+ const key = `${em.orbital}\u241F${li.orbital}\u241F${em.event}`;
48243
+ if (seen.has(key)) continue;
48244
+ seen.add(key);
48245
+ links.push({
48246
+ emitterOrbital: em.orbital,
48247
+ listenerOrbital: li.orbital,
48248
+ event: em.event,
48249
+ emitterTrait: em.trait,
48250
+ listenerTrait: li.trait
48251
+ });
48246
48252
  }
48247
48253
  }
48248
48254
  return links;
package/dist/avl/index.js CHANGED
@@ -3733,17 +3733,20 @@ function parseApplicationLevel(schema) {
3733
3733
  }
3734
3734
  }
3735
3735
  }
3736
+ const seenLinks = /* @__PURE__ */ new Set();
3736
3737
  for (const emit of emitMap) {
3737
3738
  for (const listen of listenMap) {
3738
- if (emit.event === listen.event && emit.orbital !== listen.orbital) {
3739
- crossLinks.push({
3740
- emitterOrbital: emit.orbital,
3741
- listenerOrbital: listen.orbital,
3742
- eventName: emit.event,
3743
- emitterTrait: emit.trait,
3744
- listenerTrait: listen.trait
3745
- });
3746
- }
3739
+ if (emit.event !== listen.event || emit.orbital === listen.orbital) continue;
3740
+ const key = `${emit.orbital}\u241F${listen.orbital}\u241F${emit.event}`;
3741
+ if (seenLinks.has(key)) continue;
3742
+ seenLinks.add(key);
3743
+ crossLinks.push({
3744
+ emitterOrbital: emit.orbital,
3745
+ listenerOrbital: listen.orbital,
3746
+ eventName: emit.event,
3747
+ emitterTrait: emit.trait,
3748
+ listenerTrait: listen.trait
3749
+ });
3747
3750
  }
3748
3751
  }
3749
3752
  return { orbitals, crossLinks };
@@ -48186,17 +48189,20 @@ function findCrossLinks(orbitals) {
48186
48189
  }
48187
48190
  }
48188
48191
  }
48192
+ const seen = /* @__PURE__ */ new Set();
48189
48193
  for (const em of emitters) {
48190
48194
  for (const li of listeners6) {
48191
- if (em.event === li.event && em.orbital !== li.orbital) {
48192
- links.push({
48193
- emitterOrbital: em.orbital,
48194
- listenerOrbital: li.orbital,
48195
- event: em.event,
48196
- emitterTrait: em.trait,
48197
- listenerTrait: li.trait
48198
- });
48199
- }
48195
+ if (em.event !== li.event || em.orbital === li.orbital) continue;
48196
+ const key = `${em.orbital}\u241F${li.orbital}\u241F${em.event}`;
48197
+ if (seen.has(key)) continue;
48198
+ seen.add(key);
48199
+ links.push({
48200
+ emitterOrbital: em.orbital,
48201
+ listenerOrbital: li.orbital,
48202
+ event: em.event,
48203
+ emitterTrait: em.trait,
48204
+ listenerTrait: li.trait
48205
+ });
48200
48206
  }
48201
48207
  }
48202
48208
  return links;
@@ -3571,17 +3571,20 @@ function parseApplicationLevel(schema) {
3571
3571
  }
3572
3572
  }
3573
3573
  }
3574
+ const seenLinks = /* @__PURE__ */ new Set();
3574
3575
  for (const emit of emitMap) {
3575
3576
  for (const listen of listenMap) {
3576
- if (emit.event === listen.event && emit.orbital !== listen.orbital) {
3577
- crossLinks.push({
3578
- emitterOrbital: emit.orbital,
3579
- listenerOrbital: listen.orbital,
3580
- eventName: emit.event,
3581
- emitterTrait: emit.trait,
3582
- listenerTrait: listen.trait
3583
- });
3584
- }
3577
+ if (emit.event !== listen.event || emit.orbital === listen.orbital) continue;
3578
+ const key = `${emit.orbital}\u241F${listen.orbital}\u241F${emit.event}`;
3579
+ if (seenLinks.has(key)) continue;
3580
+ seenLinks.add(key);
3581
+ crossLinks.push({
3582
+ emitterOrbital: emit.orbital,
3583
+ listenerOrbital: listen.orbital,
3584
+ eventName: emit.event,
3585
+ emitterTrait: emit.trait,
3586
+ listenerTrait: listen.trait
3587
+ });
3585
3588
  }
3586
3589
  }
3587
3590
  return { orbitals, crossLinks };
@@ -3547,17 +3547,20 @@ function parseApplicationLevel(schema) {
3547
3547
  }
3548
3548
  }
3549
3549
  }
3550
+ const seenLinks = /* @__PURE__ */ new Set();
3550
3551
  for (const emit of emitMap) {
3551
3552
  for (const listen of listenMap) {
3552
- if (emit.event === listen.event && emit.orbital !== listen.orbital) {
3553
- crossLinks.push({
3554
- emitterOrbital: emit.orbital,
3555
- listenerOrbital: listen.orbital,
3556
- eventName: emit.event,
3557
- emitterTrait: emit.trait,
3558
- listenerTrait: listen.trait
3559
- });
3560
- }
3553
+ if (emit.event !== listen.event || emit.orbital === listen.orbital) continue;
3554
+ const key = `${emit.orbital}\u241F${listen.orbital}\u241F${emit.event}`;
3555
+ if (seenLinks.has(key)) continue;
3556
+ seenLinks.add(key);
3557
+ crossLinks.push({
3558
+ emitterOrbital: emit.orbital,
3559
+ listenerOrbital: listen.orbital,
3560
+ eventName: emit.event,
3561
+ emitterTrait: emit.trait,
3562
+ listenerTrait: listen.trait
3563
+ });
3561
3564
  }
3562
3565
  }
3563
3566
  return { orbitals, crossLinks };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "4.38.1",
3
+ "version": "4.39.0",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "sideEffects": [