@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.
- package/dist/avl/index.cjs +32 -23
- package/dist/avl/index.js +32 -23
- package/package.json +1 -1
package/dist/avl/index.cjs
CHANGED
|
@@ -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 ?
|
|
62103
|
-
|
|
62104
|
-
|
|
62105
|
-
|
|
62106
|
-
|
|
62107
|
-
|
|
62108
|
-
|
|
62109
|
-
|
|
62110
|
-
|
|
62111
|
-
|
|
62112
|
-
|
|
62113
|
-
|
|
62114
|
-
|
|
62115
|
-
|
|
62116
|
-
|
|
62117
|
-
|
|
62118
|
-
|
|
62119
|
-
|
|
62120
|
-
|
|
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 ?
|
|
62057
|
-
|
|
62058
|
-
|
|
62059
|
-
|
|
62060
|
-
|
|
62061
|
-
|
|
62062
|
-
|
|
62063
|
-
|
|
62064
|
-
|
|
62065
|
-
|
|
62066
|
-
|
|
62067
|
-
|
|
62068
|
-
|
|
62069
|
-
|
|
62070
|
-
|
|
62071
|
-
|
|
62072
|
-
|
|
62073
|
-
|
|
62074
|
-
|
|
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
|
]
|