@almadar/ui 4.54.5 → 4.54.7
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 +365 -256
- package/dist/avl/index.d.cts +48 -2
- package/dist/avl/index.js +365 -256
- package/dist/components/molecules/avl/TraitCardNode.d.ts +33 -0
- package/dist/components/molecules/avl/avl-preview-converter.d.ts +18 -0
- package/dist/components/molecules/avl/avl-preview-types.d.ts +41 -1
- package/dist/components/organisms/avl/FlowCanvas.d.ts +1 -1
- package/dist/components/organisms/avl/avl-zoom-state.d.ts +12 -0
- package/dist/components/organisms/game/three/index.cjs +18 -1
- package/dist/components/organisms/game/three/index.js +18 -1
- package/package.json +1 -1
package/dist/avl/index.d.cts
CHANGED
|
@@ -840,8 +840,12 @@ declare const AvlBindingEdge: React__default.FC<EdgeProps>;
|
|
|
840
840
|
* - `behavior-expanded` (L3) — drilled into a single imported behavior at
|
|
841
841
|
* L2: one card per transition of THAT behavior. Used to inspect what an
|
|
842
842
|
* import contributes without leaving the canvas.
|
|
843
|
+
* - `trait-expanded` — one card per trait of a single orbital, connected
|
|
844
|
+
* by intra-orbital `emits → listens` edges. Used by the cosmic tab to
|
|
845
|
+
* render the trait-level circuit when the user drills into an orbital
|
|
846
|
+
* from the L1 grid. Not used by the canvas tab today.
|
|
843
847
|
*/
|
|
844
|
-
type ViewLevel = 'overview' | 'expanded' | 'behavior-expanded';
|
|
848
|
+
type ViewLevel = 'overview' | 'expanded' | 'behavior-expanded' | 'trait-expanded';
|
|
845
849
|
/**
|
|
846
850
|
* An interactive element inside a render-ui pattern that fires an event.
|
|
847
851
|
* For example, a button with `event: "CHECKOUT"` is an event source.
|
|
@@ -954,6 +958,42 @@ interface PreviewNodeData extends Record<string, unknown> {
|
|
|
954
958
|
* card. Renderer can surface it as a "+N screens" badge.
|
|
955
959
|
*/
|
|
956
960
|
transitionCount?: number;
|
|
961
|
+
/**
|
|
962
|
+
* Discriminator for the node variant. Absent on overview/expanded/
|
|
963
|
+
* behavior-expanded cards (those use field-presence-based discrimination
|
|
964
|
+
* via `behaviorAlias`/`transitionEvent`). Set to `'trait-card'` for nodes
|
|
965
|
+
* produced by `orbitalToTraitGraph` so renderers can branch cleanly.
|
|
966
|
+
*/
|
|
967
|
+
kind?: 'trait-card';
|
|
968
|
+
/**
|
|
969
|
+
* Trait-card transitions (`kind === 'trait-card'` only). One row per
|
|
970
|
+
* transition; each row is clickable and drills to L4 transition detail
|
|
971
|
+
* in cosmic. `event` is the trigger; `fromState` / `toState` mirror the
|
|
972
|
+
* underlying state-machine edge.
|
|
973
|
+
*/
|
|
974
|
+
transitions?: Array<{
|
|
975
|
+
event: string;
|
|
976
|
+
fromState: string;
|
|
977
|
+
toState: string;
|
|
978
|
+
}>;
|
|
979
|
+
/**
|
|
980
|
+
* Trait-card `emits` event names (`kind === 'trait-card'` only). One
|
|
981
|
+
* source handle per entry on the right edge of the card. Drives the
|
|
982
|
+
* outgoing wire endpoints in `orbitalToTraitGraph`.
|
|
983
|
+
*/
|
|
984
|
+
emits?: string[];
|
|
985
|
+
/**
|
|
986
|
+
* Trait-card `listens` event names (`kind === 'trait-card'` only). One
|
|
987
|
+
* target handle per entry on the left edge of the card. Drives the
|
|
988
|
+
* incoming wire endpoints in `orbitalToTraitGraph`.
|
|
989
|
+
*/
|
|
990
|
+
listens?: string[];
|
|
991
|
+
/**
|
|
992
|
+
* Trait-card `linkedEntity` (`kind === 'trait-card'` only). Surfaced as a
|
|
993
|
+
* subtitle/badge next to the trait name so users can see what entity the
|
|
994
|
+
* trait operates on. Mirrors `Trait.linkedEntity` from the resolved schema.
|
|
995
|
+
*/
|
|
996
|
+
linkedEntity?: string;
|
|
957
997
|
}
|
|
958
998
|
/** Data for event flow edges. */
|
|
959
999
|
interface EventEdgeData extends Record<string, unknown> {
|
|
@@ -1432,7 +1472,7 @@ interface FlowCanvasProps {
|
|
|
1432
1472
|
width?: number | string;
|
|
1433
1473
|
height?: number | string;
|
|
1434
1474
|
onNodeClick?: (context: {
|
|
1435
|
-
level: ViewLevel | 'code';
|
|
1475
|
+
level: ViewLevel | 'code' | 'transition';
|
|
1436
1476
|
orbital: string;
|
|
1437
1477
|
trait?: string;
|
|
1438
1478
|
transition?: string;
|
|
@@ -1575,6 +1615,12 @@ declare const ZoomLegend: React__default.FC<ZoomLegendProps>;
|
|
|
1575
1615
|
* useReducer-based state machine managing which zoom level is displayed,
|
|
1576
1616
|
* what is selected, and animation state.
|
|
1577
1617
|
*
|
|
1618
|
+
* Shared by AvlOrbitalsCosmicZoom (2D) and Avl3DViewer (3D). The 3D
|
|
1619
|
+
* viewer drills through every level (`application → orbital → trait →
|
|
1620
|
+
* transition`); the 2D cosmic view skips the `'orbital'` level after
|
|
1621
|
+
* COSMIC-1 (no Orbital-View screen) by dispatching `JUMP_TO_TRAIT_CIRCUIT`
|
|
1622
|
+
* to land directly at `'trait'`.
|
|
1623
|
+
*
|
|
1578
1624
|
* @packageDocumentation
|
|
1579
1625
|
*/
|
|
1580
1626
|
type ZoomLevel = 'application' | 'orbital' | 'trait' | 'transition';
|