@almadar/ui 4.37.0 → 4.38.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.
@@ -50547,11 +50547,15 @@ function formatPayloadTooltip(fields) {
50547
50547
  );
50548
50548
  return `{ ${parts.join(", ")} }`;
50549
50549
  }
50550
+
50551
+ // components/molecules/avl/OrbPreviewNode.tsx
50552
+ init_logger();
50550
50553
  function entityNameOf(ref) {
50551
50554
  if (!ref) return void 0;
50552
50555
  if (typeof ref === "string") return ref;
50553
50556
  return "name" in ref ? ref.name : void 0;
50554
50557
  }
50558
+ var eventHandleLog = createLogger("almadar:ui:orb-preview-handle");
50555
50559
  var ScreenSizeContext = React119.createContext("tablet");
50556
50560
  var PatternSelectionContext = React119.createContext({ selected: null, select: () => {
50557
50561
  } });
@@ -50578,12 +50582,21 @@ var TARGET_HANDLE_STYLE = {
50578
50582
  border: "2px solid var(--color-card)"
50579
50583
  };
50580
50584
  function eventHandleStyle(source) {
50585
+ const hint = Number.isFinite(source.positionHint) ? source.positionHint : 0.5;
50586
+ if (hint !== source.positionHint) {
50587
+ eventHandleLog.warn("non-finite positionHint on PatternEventSource", {
50588
+ event: source.event,
50589
+ patternType: source.patternType,
50590
+ label: source.label,
50591
+ positionHint: source.positionHint
50592
+ });
50593
+ }
50581
50594
  return {
50582
50595
  background: "#F97316",
50583
50596
  width: 10,
50584
50597
  height: 10,
50585
50598
  border: "2px solid var(--color-card)",
50586
- top: `${source.positionHint * 100}%`,
50599
+ top: `${hint * 100}%`,
50587
50600
  right: -5
50588
50601
  };
50589
50602
  }
@@ -50999,9 +51012,17 @@ var OrbPreviewNodeInner = (props) => {
50999
51012
  };
51000
51013
  var OrbPreviewNode = React119__namespace.default.memo(OrbPreviewNodeInner);
51001
51014
  OrbPreviewNode.displayName = "OrbPreviewNode";
51015
+
51016
+ // components/molecules/avl/EventFlowEdge.tsx
51017
+ init_logger();
51018
+ var edgeLog = createLogger("almadar:ui:event-flow-edge");
51002
51019
  var EventFlowEdgeInner = (props) => {
51003
51020
  const {
51004
51021
  id,
51022
+ source,
51023
+ target,
51024
+ sourceHandleId,
51025
+ targetHandleId,
51005
51026
  sourceX,
51006
51027
  sourceY,
51007
51028
  targetX,
@@ -51013,6 +51034,24 @@ var EventFlowEdgeInner = (props) => {
51013
51034
  const data = props.data;
51014
51035
  const isBackward = data?.isBackward ?? false;
51015
51036
  const isCrossOrbital = data?.isCrossOrbital ?? false;
51037
+ if (!Number.isFinite(sourceX) || !Number.isFinite(sourceY) || !Number.isFinite(targetX) || !Number.isFinite(targetY)) {
51038
+ edgeLog.warn("non-finite edge coordinates", {
51039
+ edgeId: id,
51040
+ source,
51041
+ target,
51042
+ sourceHandleId,
51043
+ targetHandleId,
51044
+ sourceX,
51045
+ sourceY,
51046
+ targetX,
51047
+ targetY,
51048
+ sourcePosition,
51049
+ targetPosition,
51050
+ eventName: data?.event,
51051
+ fromState: data?.fromState,
51052
+ toState: data?.toState
51053
+ });
51054
+ }
51016
51055
  const [edgePath2, labelX, labelY] = react.getBezierPath({
51017
51056
  sourceX,
51018
51057
  sourceY,
@@ -51081,6 +51120,8 @@ EventFlowEdge.displayName = "EventFlowEdge";
51081
51120
  init_Box();
51082
51121
  init_Typography();
51083
51122
  init_Badge();
51123
+ init_logger();
51124
+ var behaviorHandleLog = createLogger("almadar:ui:behavior-compose-handle");
51084
51125
  var LAYER_COLORS2 = {
51085
51126
  Infrastructure: "#3B82F6",
51086
51127
  Services: "#F59E0B",
@@ -51098,12 +51139,19 @@ var TARGET_HANDLE_STYLE2 = {
51098
51139
  border: "2px solid var(--color-card)"
51099
51140
  };
51100
51141
  function eventHandleStyle2(source) {
51142
+ const hint = Number.isFinite(source.positionHint) ? source.positionHint : 0.5;
51143
+ if (hint !== source.positionHint) {
51144
+ behaviorHandleLog.warn("non-finite positionHint on ConnectableEvent", {
51145
+ event: source.event,
51146
+ positionHint: source.positionHint
51147
+ });
51148
+ }
51101
51149
  return {
51102
51150
  background: "#F97316",
51103
51151
  width: 10,
51104
51152
  height: 10,
51105
51153
  border: "2px solid var(--color-card)",
51106
- top: `${source.positionHint * 100}%`,
51154
+ top: `${hint * 100}%`,
51107
51155
  right: -5
51108
51156
  };
51109
51157
  }
@@ -52574,6 +52622,7 @@ var AvlTransitionScene = ({
52574
52622
  AvlTransitionScene.displayName = "AvlTransitionScene";
52575
52623
 
52576
52624
  // components/organisms/avl/AvlOrbitalsCosmicZoom.tsx
52625
+ init_logger();
52577
52626
  init_Box();
52578
52627
  init_Stack();
52579
52628
  init_Typography();
@@ -52596,6 +52645,7 @@ function layoutOrbitals(count, containerW, containerH) {
52596
52645
  }));
52597
52646
  }
52598
52647
  var avlOczWireId = 0;
52648
+ var cosmicWireLog = createLogger("almadar:ui:cosmic-zoom-wire");
52599
52649
  var EventWireOverlay = ({
52600
52650
  orbitalViews,
52601
52651
  crossLinks,
@@ -52674,6 +52724,23 @@ var EventWireOverlay = ({
52674
52724
  const offset = 25 + wireIdx * 18;
52675
52725
  const { cpx, cpy } = curveControlPoint(x1, y1, x2, y2, offset);
52676
52726
  const pathD = `M${x1},${y1} Q${cpx},${cpy} ${x2},${y2}`;
52727
+ if (!Number.isFinite(x1) || !Number.isFinite(y1) || !Number.isFinite(x2) || !Number.isFinite(y2) || !Number.isFinite(cpx) || !Number.isFinite(cpy)) {
52728
+ cosmicWireLog.warn("non-finite cosmic wire coordinates", {
52729
+ eventName: link.eventName,
52730
+ emitterOrbital: link.emitterOrbital,
52731
+ listenerOrbital: link.listenerOrbital,
52732
+ fromPos,
52733
+ toPos,
52734
+ orbitalR,
52735
+ wireIdx,
52736
+ x1,
52737
+ y1,
52738
+ x2,
52739
+ y2,
52740
+ cpx,
52741
+ cpy
52742
+ });
52743
+ }
52677
52744
  const t = 0.5;
52678
52745
  const lx = (1 - t) * (1 - t) * x1 + 2 * (1 - t) * t * cpx + t * t * x2;
52679
52746
  const ly = (1 - t) * (1 - t) * y1 + 2 * (1 - t) * t * cpy + t * t * y2;
package/dist/avl/index.js CHANGED
@@ -50501,11 +50501,15 @@ function formatPayloadTooltip(fields) {
50501
50501
  );
50502
50502
  return `{ ${parts.join(", ")} }`;
50503
50503
  }
50504
+
50505
+ // components/molecules/avl/OrbPreviewNode.tsx
50506
+ init_logger();
50504
50507
  function entityNameOf(ref) {
50505
50508
  if (!ref) return void 0;
50506
50509
  if (typeof ref === "string") return ref;
50507
50510
  return "name" in ref ? ref.name : void 0;
50508
50511
  }
50512
+ var eventHandleLog = createLogger("almadar:ui:orb-preview-handle");
50509
50513
  var ScreenSizeContext = createContext("tablet");
50510
50514
  var PatternSelectionContext = createContext({ selected: null, select: () => {
50511
50515
  } });
@@ -50532,12 +50536,21 @@ var TARGET_HANDLE_STYLE = {
50532
50536
  border: "2px solid var(--color-card)"
50533
50537
  };
50534
50538
  function eventHandleStyle(source) {
50539
+ const hint = Number.isFinite(source.positionHint) ? source.positionHint : 0.5;
50540
+ if (hint !== source.positionHint) {
50541
+ eventHandleLog.warn("non-finite positionHint on PatternEventSource", {
50542
+ event: source.event,
50543
+ patternType: source.patternType,
50544
+ label: source.label,
50545
+ positionHint: source.positionHint
50546
+ });
50547
+ }
50535
50548
  return {
50536
50549
  background: "#F97316",
50537
50550
  width: 10,
50538
50551
  height: 10,
50539
50552
  border: "2px solid var(--color-card)",
50540
- top: `${source.positionHint * 100}%`,
50553
+ top: `${hint * 100}%`,
50541
50554
  right: -5
50542
50555
  };
50543
50556
  }
@@ -50953,9 +50966,17 @@ var OrbPreviewNodeInner = (props) => {
50953
50966
  };
50954
50967
  var OrbPreviewNode = React119__default.memo(OrbPreviewNodeInner);
50955
50968
  OrbPreviewNode.displayName = "OrbPreviewNode";
50969
+
50970
+ // components/molecules/avl/EventFlowEdge.tsx
50971
+ init_logger();
50972
+ var edgeLog = createLogger("almadar:ui:event-flow-edge");
50956
50973
  var EventFlowEdgeInner = (props) => {
50957
50974
  const {
50958
50975
  id,
50976
+ source,
50977
+ target,
50978
+ sourceHandleId,
50979
+ targetHandleId,
50959
50980
  sourceX,
50960
50981
  sourceY,
50961
50982
  targetX,
@@ -50967,6 +50988,24 @@ var EventFlowEdgeInner = (props) => {
50967
50988
  const data = props.data;
50968
50989
  const isBackward = data?.isBackward ?? false;
50969
50990
  const isCrossOrbital = data?.isCrossOrbital ?? false;
50991
+ if (!Number.isFinite(sourceX) || !Number.isFinite(sourceY) || !Number.isFinite(targetX) || !Number.isFinite(targetY)) {
50992
+ edgeLog.warn("non-finite edge coordinates", {
50993
+ edgeId: id,
50994
+ source,
50995
+ target,
50996
+ sourceHandleId,
50997
+ targetHandleId,
50998
+ sourceX,
50999
+ sourceY,
51000
+ targetX,
51001
+ targetY,
51002
+ sourcePosition,
51003
+ targetPosition,
51004
+ eventName: data?.event,
51005
+ fromState: data?.fromState,
51006
+ toState: data?.toState
51007
+ });
51008
+ }
50970
51009
  const [edgePath2, labelX, labelY] = getBezierPath({
50971
51010
  sourceX,
50972
51011
  sourceY,
@@ -51035,6 +51074,8 @@ EventFlowEdge.displayName = "EventFlowEdge";
51035
51074
  init_Box();
51036
51075
  init_Typography();
51037
51076
  init_Badge();
51077
+ init_logger();
51078
+ var behaviorHandleLog = createLogger("almadar:ui:behavior-compose-handle");
51038
51079
  var LAYER_COLORS2 = {
51039
51080
  Infrastructure: "#3B82F6",
51040
51081
  Services: "#F59E0B",
@@ -51052,12 +51093,19 @@ var TARGET_HANDLE_STYLE2 = {
51052
51093
  border: "2px solid var(--color-card)"
51053
51094
  };
51054
51095
  function eventHandleStyle2(source) {
51096
+ const hint = Number.isFinite(source.positionHint) ? source.positionHint : 0.5;
51097
+ if (hint !== source.positionHint) {
51098
+ behaviorHandleLog.warn("non-finite positionHint on ConnectableEvent", {
51099
+ event: source.event,
51100
+ positionHint: source.positionHint
51101
+ });
51102
+ }
51055
51103
  return {
51056
51104
  background: "#F97316",
51057
51105
  width: 10,
51058
51106
  height: 10,
51059
51107
  border: "2px solid var(--color-card)",
51060
- top: `${source.positionHint * 100}%`,
51108
+ top: `${hint * 100}%`,
51061
51109
  right: -5
51062
51110
  };
51063
51111
  }
@@ -52528,6 +52576,7 @@ var AvlTransitionScene = ({
52528
52576
  AvlTransitionScene.displayName = "AvlTransitionScene";
52529
52577
 
52530
52578
  // components/organisms/avl/AvlOrbitalsCosmicZoom.tsx
52579
+ init_logger();
52531
52580
  init_Box();
52532
52581
  init_Stack();
52533
52582
  init_Typography();
@@ -52550,6 +52599,7 @@ function layoutOrbitals(count, containerW, containerH) {
52550
52599
  }));
52551
52600
  }
52552
52601
  var avlOczWireId = 0;
52602
+ var cosmicWireLog = createLogger("almadar:ui:cosmic-zoom-wire");
52553
52603
  var EventWireOverlay = ({
52554
52604
  orbitalViews,
52555
52605
  crossLinks,
@@ -52628,6 +52678,23 @@ var EventWireOverlay = ({
52628
52678
  const offset = 25 + wireIdx * 18;
52629
52679
  const { cpx, cpy } = curveControlPoint(x1, y1, x2, y2, offset);
52630
52680
  const pathD = `M${x1},${y1} Q${cpx},${cpy} ${x2},${y2}`;
52681
+ if (!Number.isFinite(x1) || !Number.isFinite(y1) || !Number.isFinite(x2) || !Number.isFinite(y2) || !Number.isFinite(cpx) || !Number.isFinite(cpy)) {
52682
+ cosmicWireLog.warn("non-finite cosmic wire coordinates", {
52683
+ eventName: link.eventName,
52684
+ emitterOrbital: link.emitterOrbital,
52685
+ listenerOrbital: link.listenerOrbital,
52686
+ fromPos,
52687
+ toPos,
52688
+ orbitalR,
52689
+ wireIdx,
52690
+ x1,
52691
+ y1,
52692
+ x2,
52693
+ y2,
52694
+ cpx,
52695
+ cpy
52696
+ });
52697
+ }
52631
52698
  const t = 0.5;
52632
52699
  const lx = (1 - t) * (1 - t) * x1 + 2 * (1 - t) * t * cpx + t * t * x2;
52633
52700
  const ly = (1 - t) * (1 - t) * y1 + 2 * (1 - t) * t * cpy + t * t * y2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "4.37.0",
3
+ "version": "4.38.0",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "sideEffects": [