@almadar/ui 4.38.0 → 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.
package/dist/avl/index.cjs
CHANGED
|
@@ -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
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
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
|
|
48238
|
-
|
|
48239
|
-
|
|
48240
|
-
|
|
48241
|
-
|
|
48242
|
-
|
|
48243
|
-
|
|
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;
|
|
@@ -50555,7 +50561,7 @@ function entityNameOf(ref) {
|
|
|
50555
50561
|
if (typeof ref === "string") return ref;
|
|
50556
50562
|
return "name" in ref ? ref.name : void 0;
|
|
50557
50563
|
}
|
|
50558
|
-
var eventHandleLog = createLogger("almadar:ui:
|
|
50564
|
+
var eventHandleLog = createLogger("almadar:ui:nan-coord");
|
|
50559
50565
|
var ScreenSizeContext = React119.createContext("tablet");
|
|
50560
50566
|
var PatternSelectionContext = React119.createContext({ selected: null, select: () => {
|
|
50561
50567
|
} });
|
|
@@ -50584,7 +50590,7 @@ var TARGET_HANDLE_STYLE = {
|
|
|
50584
50590
|
function eventHandleStyle(source) {
|
|
50585
50591
|
const hint = Number.isFinite(source.positionHint) ? source.positionHint : 0.5;
|
|
50586
50592
|
if (hint !== source.positionHint) {
|
|
50587
|
-
eventHandleLog.warn("non-finite positionHint on PatternEventSource", {
|
|
50593
|
+
eventHandleLog.warn("orb-preview-handle: non-finite positionHint on PatternEventSource", {
|
|
50588
50594
|
event: source.event,
|
|
50589
50595
|
patternType: source.patternType,
|
|
50590
50596
|
label: source.label,
|
|
@@ -51015,7 +51021,7 @@ OrbPreviewNode.displayName = "OrbPreviewNode";
|
|
|
51015
51021
|
|
|
51016
51022
|
// components/molecules/avl/EventFlowEdge.tsx
|
|
51017
51023
|
init_logger();
|
|
51018
|
-
var edgeLog = createLogger("almadar:ui:
|
|
51024
|
+
var edgeLog = createLogger("almadar:ui:nan-coord");
|
|
51019
51025
|
var EventFlowEdgeInner = (props) => {
|
|
51020
51026
|
const {
|
|
51021
51027
|
id,
|
|
@@ -51035,7 +51041,7 @@ var EventFlowEdgeInner = (props) => {
|
|
|
51035
51041
|
const isBackward = data?.isBackward ?? false;
|
|
51036
51042
|
const isCrossOrbital = data?.isCrossOrbital ?? false;
|
|
51037
51043
|
if (!Number.isFinite(sourceX) || !Number.isFinite(sourceY) || !Number.isFinite(targetX) || !Number.isFinite(targetY)) {
|
|
51038
|
-
edgeLog.warn("non-finite edge coordinates", {
|
|
51044
|
+
edgeLog.warn("event-flow-edge: non-finite edge coordinates", {
|
|
51039
51045
|
edgeId: id,
|
|
51040
51046
|
source,
|
|
51041
51047
|
target,
|
|
@@ -51121,7 +51127,7 @@ init_Box();
|
|
|
51121
51127
|
init_Typography();
|
|
51122
51128
|
init_Badge();
|
|
51123
51129
|
init_logger();
|
|
51124
|
-
var behaviorHandleLog = createLogger("almadar:ui:
|
|
51130
|
+
var behaviorHandleLog = createLogger("almadar:ui:nan-coord");
|
|
51125
51131
|
var LAYER_COLORS2 = {
|
|
51126
51132
|
Infrastructure: "#3B82F6",
|
|
51127
51133
|
Services: "#F59E0B",
|
|
@@ -51141,7 +51147,7 @@ var TARGET_HANDLE_STYLE2 = {
|
|
|
51141
51147
|
function eventHandleStyle2(source) {
|
|
51142
51148
|
const hint = Number.isFinite(source.positionHint) ? source.positionHint : 0.5;
|
|
51143
51149
|
if (hint !== source.positionHint) {
|
|
51144
|
-
behaviorHandleLog.warn("non-finite positionHint on ConnectableEvent", {
|
|
51150
|
+
behaviorHandleLog.warn("behavior-compose-handle: non-finite positionHint on ConnectableEvent", {
|
|
51145
51151
|
event: source.event,
|
|
51146
51152
|
positionHint: source.positionHint
|
|
51147
51153
|
});
|
|
@@ -52645,7 +52651,7 @@ function layoutOrbitals(count, containerW, containerH) {
|
|
|
52645
52651
|
}));
|
|
52646
52652
|
}
|
|
52647
52653
|
var avlOczWireId = 0;
|
|
52648
|
-
var cosmicWireLog = createLogger("almadar:ui:
|
|
52654
|
+
var cosmicWireLog = createLogger("almadar:ui:nan-coord");
|
|
52649
52655
|
var EventWireOverlay = ({
|
|
52650
52656
|
orbitalViews,
|
|
52651
52657
|
crossLinks,
|
|
@@ -52725,7 +52731,7 @@ var EventWireOverlay = ({
|
|
|
52725
52731
|
const { cpx, cpy } = curveControlPoint(x1, y1, x2, y2, offset);
|
|
52726
52732
|
const pathD = `M${x1},${y1} Q${cpx},${cpy} ${x2},${y2}`;
|
|
52727
52733
|
if (!Number.isFinite(x1) || !Number.isFinite(y1) || !Number.isFinite(x2) || !Number.isFinite(y2) || !Number.isFinite(cpx) || !Number.isFinite(cpy)) {
|
|
52728
|
-
cosmicWireLog.warn("non-finite
|
|
52734
|
+
cosmicWireLog.warn("cosmic-zoom-wire: non-finite wire coordinates", {
|
|
52729
52735
|
eventName: link.eventName,
|
|
52730
52736
|
emitterOrbital: link.emitterOrbital,
|
|
52731
52737
|
listenerOrbital: link.listenerOrbital,
|
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
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
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
|
|
48192
|
-
|
|
48193
|
-
|
|
48194
|
-
|
|
48195
|
-
|
|
48196
|
-
|
|
48197
|
-
|
|
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;
|
|
@@ -50509,7 +50515,7 @@ function entityNameOf(ref) {
|
|
|
50509
50515
|
if (typeof ref === "string") return ref;
|
|
50510
50516
|
return "name" in ref ? ref.name : void 0;
|
|
50511
50517
|
}
|
|
50512
|
-
var eventHandleLog = createLogger("almadar:ui:
|
|
50518
|
+
var eventHandleLog = createLogger("almadar:ui:nan-coord");
|
|
50513
50519
|
var ScreenSizeContext = createContext("tablet");
|
|
50514
50520
|
var PatternSelectionContext = createContext({ selected: null, select: () => {
|
|
50515
50521
|
} });
|
|
@@ -50538,7 +50544,7 @@ var TARGET_HANDLE_STYLE = {
|
|
|
50538
50544
|
function eventHandleStyle(source) {
|
|
50539
50545
|
const hint = Number.isFinite(source.positionHint) ? source.positionHint : 0.5;
|
|
50540
50546
|
if (hint !== source.positionHint) {
|
|
50541
|
-
eventHandleLog.warn("non-finite positionHint on PatternEventSource", {
|
|
50547
|
+
eventHandleLog.warn("orb-preview-handle: non-finite positionHint on PatternEventSource", {
|
|
50542
50548
|
event: source.event,
|
|
50543
50549
|
patternType: source.patternType,
|
|
50544
50550
|
label: source.label,
|
|
@@ -50969,7 +50975,7 @@ OrbPreviewNode.displayName = "OrbPreviewNode";
|
|
|
50969
50975
|
|
|
50970
50976
|
// components/molecules/avl/EventFlowEdge.tsx
|
|
50971
50977
|
init_logger();
|
|
50972
|
-
var edgeLog = createLogger("almadar:ui:
|
|
50978
|
+
var edgeLog = createLogger("almadar:ui:nan-coord");
|
|
50973
50979
|
var EventFlowEdgeInner = (props) => {
|
|
50974
50980
|
const {
|
|
50975
50981
|
id,
|
|
@@ -50989,7 +50995,7 @@ var EventFlowEdgeInner = (props) => {
|
|
|
50989
50995
|
const isBackward = data?.isBackward ?? false;
|
|
50990
50996
|
const isCrossOrbital = data?.isCrossOrbital ?? false;
|
|
50991
50997
|
if (!Number.isFinite(sourceX) || !Number.isFinite(sourceY) || !Number.isFinite(targetX) || !Number.isFinite(targetY)) {
|
|
50992
|
-
edgeLog.warn("non-finite edge coordinates", {
|
|
50998
|
+
edgeLog.warn("event-flow-edge: non-finite edge coordinates", {
|
|
50993
50999
|
edgeId: id,
|
|
50994
51000
|
source,
|
|
50995
51001
|
target,
|
|
@@ -51075,7 +51081,7 @@ init_Box();
|
|
|
51075
51081
|
init_Typography();
|
|
51076
51082
|
init_Badge();
|
|
51077
51083
|
init_logger();
|
|
51078
|
-
var behaviorHandleLog = createLogger("almadar:ui:
|
|
51084
|
+
var behaviorHandleLog = createLogger("almadar:ui:nan-coord");
|
|
51079
51085
|
var LAYER_COLORS2 = {
|
|
51080
51086
|
Infrastructure: "#3B82F6",
|
|
51081
51087
|
Services: "#F59E0B",
|
|
@@ -51095,7 +51101,7 @@ var TARGET_HANDLE_STYLE2 = {
|
|
|
51095
51101
|
function eventHandleStyle2(source) {
|
|
51096
51102
|
const hint = Number.isFinite(source.positionHint) ? source.positionHint : 0.5;
|
|
51097
51103
|
if (hint !== source.positionHint) {
|
|
51098
|
-
behaviorHandleLog.warn("non-finite positionHint on ConnectableEvent", {
|
|
51104
|
+
behaviorHandleLog.warn("behavior-compose-handle: non-finite positionHint on ConnectableEvent", {
|
|
51099
51105
|
event: source.event,
|
|
51100
51106
|
positionHint: source.positionHint
|
|
51101
51107
|
});
|
|
@@ -52599,7 +52605,7 @@ function layoutOrbitals(count, containerW, containerH) {
|
|
|
52599
52605
|
}));
|
|
52600
52606
|
}
|
|
52601
52607
|
var avlOczWireId = 0;
|
|
52602
|
-
var cosmicWireLog = createLogger("almadar:ui:
|
|
52608
|
+
var cosmicWireLog = createLogger("almadar:ui:nan-coord");
|
|
52603
52609
|
var EventWireOverlay = ({
|
|
52604
52610
|
orbitalViews,
|
|
52605
52611
|
crossLinks,
|
|
@@ -52679,7 +52685,7 @@ var EventWireOverlay = ({
|
|
|
52679
52685
|
const { cpx, cpy } = curveControlPoint(x1, y1, x2, y2, offset);
|
|
52680
52686
|
const pathD = `M${x1},${y1} Q${cpx},${cpy} ${x2},${y2}`;
|
|
52681
52687
|
if (!Number.isFinite(x1) || !Number.isFinite(y1) || !Number.isFinite(x2) || !Number.isFinite(y2) || !Number.isFinite(cpx) || !Number.isFinite(cpy)) {
|
|
52682
|
-
cosmicWireLog.warn("non-finite
|
|
52688
|
+
cosmicWireLog.warn("cosmic-zoom-wire: non-finite wire coordinates", {
|
|
52683
52689
|
eventName: link.eventName,
|
|
52684
52690
|
emitterOrbital: link.emitterOrbital,
|
|
52685
52691
|
listenerOrbital: link.listenerOrbital,
|
|
@@ -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
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
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
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
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 };
|