@almadar/ui 4.54.9 → 4.54.10

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.
@@ -62099,30 +62099,39 @@ var TraitCardNodeInner = (props) => {
62099
62099
  /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "h6", weight: "semibold", children: traitName }),
62100
62100
  linkedEntity ? /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: "secondary", children: linkedEntity }) : null
62101
62101
  ] }),
62102
- traitLevelData ? /* @__PURE__ */ jsxRuntime.jsx(
62103
- "svg",
62104
- {
62105
- viewBox: `0 0 ${SCENE_WIDTH} ${SCENE_HEIGHT}`,
62106
- style: { width: "100%", height: "auto", display: "block" },
62107
- children: /* @__PURE__ */ jsxRuntime.jsx(
62108
- AvlTraitScene,
62109
- {
62110
- data: traitLevelData,
62111
- onTransitionClick: (idx) => {
62112
- const t = transitions[idx];
62113
- if (!t) return;
62114
- selectTransition({
62115
- orbitalName,
62116
- traitName,
62117
- transitionEvent: t.event,
62118
- fromState: t.fromState,
62119
- toState: t.toState,
62120
- index: idx
62121
- });
62102
+ traitLevelData ? (
62103
+ // `nodrag` + `nowheel` tell xyflow to skip its drag/wheel
62104
+ // handlers on this element, so transition-arc clicks inside
62105
+ // the SVG actually reach React's onClick handlers instead of
62106
+ // being swallowed by the node-drag behavior. `nopan` keeps the
62107
+ // ReactFlow canvas from panning when the user scrolls or
62108
+ // pans within the trait card.
62109
+ /* @__PURE__ */ jsxRuntime.jsx(
62110
+ "svg",
62111
+ {
62112
+ viewBox: `0 0 ${SCENE_WIDTH} ${SCENE_HEIGHT}`,
62113
+ className: "nodrag nopan nowheel",
62114
+ style: { width: "100%", height: "auto", display: "block" },
62115
+ children: /* @__PURE__ */ jsxRuntime.jsx(
62116
+ AvlTraitScene,
62117
+ {
62118
+ data: traitLevelData,
62119
+ onTransitionClick: (idx) => {
62120
+ const t = transitions[idx];
62121
+ if (!t) return;
62122
+ selectTransition({
62123
+ orbitalName,
62124
+ traitName,
62125
+ transitionEvent: t.event,
62126
+ fromState: t.fromState,
62127
+ toState: t.toState,
62128
+ index: idx
62129
+ });
62130
+ }
62122
62131
  }
62123
- }
62124
- )
62125
- }
62132
+ )
62133
+ }
62134
+ )
62126
62135
  ) : /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "small", color: "muted", children: "No state machine" })
62127
62136
  ] })
62128
62137
  ]
package/dist/avl/index.js CHANGED
@@ -62053,30 +62053,39 @@ var TraitCardNodeInner = (props) => {
62053
62053
  /* @__PURE__ */ jsx(Typography, { variant: "h6", weight: "semibold", children: traitName }),
62054
62054
  linkedEntity ? /* @__PURE__ */ jsx(Badge, { variant: "secondary", children: linkedEntity }) : null
62055
62055
  ] }),
62056
- traitLevelData ? /* @__PURE__ */ jsx(
62057
- "svg",
62058
- {
62059
- viewBox: `0 0 ${SCENE_WIDTH} ${SCENE_HEIGHT}`,
62060
- style: { width: "100%", height: "auto", display: "block" },
62061
- children: /* @__PURE__ */ jsx(
62062
- AvlTraitScene,
62063
- {
62064
- data: traitLevelData,
62065
- onTransitionClick: (idx) => {
62066
- const t = transitions[idx];
62067
- if (!t) return;
62068
- selectTransition({
62069
- orbitalName,
62070
- traitName,
62071
- transitionEvent: t.event,
62072
- fromState: t.fromState,
62073
- toState: t.toState,
62074
- index: idx
62075
- });
62056
+ traitLevelData ? (
62057
+ // `nodrag` + `nowheel` tell xyflow to skip its drag/wheel
62058
+ // handlers on this element, so transition-arc clicks inside
62059
+ // the SVG actually reach React's onClick handlers instead of
62060
+ // being swallowed by the node-drag behavior. `nopan` keeps the
62061
+ // ReactFlow canvas from panning when the user scrolls or
62062
+ // pans within the trait card.
62063
+ /* @__PURE__ */ jsx(
62064
+ "svg",
62065
+ {
62066
+ viewBox: `0 0 ${SCENE_WIDTH} ${SCENE_HEIGHT}`,
62067
+ className: "nodrag nopan nowheel",
62068
+ style: { width: "100%", height: "auto", display: "block" },
62069
+ children: /* @__PURE__ */ jsx(
62070
+ AvlTraitScene,
62071
+ {
62072
+ data: traitLevelData,
62073
+ onTransitionClick: (idx) => {
62074
+ const t = transitions[idx];
62075
+ if (!t) return;
62076
+ selectTransition({
62077
+ orbitalName,
62078
+ traitName,
62079
+ transitionEvent: t.event,
62080
+ fromState: t.fromState,
62081
+ toState: t.toState,
62082
+ index: idx
62083
+ });
62084
+ }
62076
62085
  }
62077
- }
62078
- )
62079
- }
62086
+ )
62087
+ }
62088
+ )
62080
62089
  ) : /* @__PURE__ */ jsx(Typography, { variant: "small", color: "muted", children: "No state machine" })
62081
62090
  ] })
62082
62091
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "4.54.9",
3
+ "version": "4.54.10",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "sideEffects": [