@almadar/ui 2.20.0 → 2.20.6

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.
Files changed (41) hide show
  1. package/LICENSE +72 -21
  2. package/dist/avl/index.cjs +1437 -1328
  3. package/dist/avl/index.d.cts +51 -47
  4. package/dist/avl/index.js +1408 -1299
  5. package/dist/components/atoms/avl/Avl3DLabel.d.ts +23 -0
  6. package/dist/components/atoms/avl/Avl3DTooltip.d.ts +25 -0
  7. package/dist/components/atoms/avl/index.d.ts +2 -0
  8. package/dist/components/index.cjs +3 -1
  9. package/dist/components/index.js +3 -1
  10. package/dist/components/molecules/avl/Avl3DCrossWire.d.ts +22 -0
  11. package/dist/components/molecules/avl/Avl3DEntityCore.d.ts +26 -0
  12. package/dist/components/molecules/avl/Avl3DExprTree.d.ts +21 -0
  13. package/dist/components/molecules/avl/Avl3DOrbitalNode.d.ts +29 -0
  14. package/dist/components/molecules/avl/Avl3DStateNode.d.ts +34 -0
  15. package/dist/components/molecules/avl/Avl3DTransitionArc.d.ts +38 -0
  16. package/dist/components/molecules/avl/index.d.ts +6 -0
  17. package/dist/components/organisms/avl/Avl3DApplicationScene.d.ts +19 -0
  18. package/dist/components/organisms/avl/Avl3DEffects.d.ts +18 -0
  19. package/dist/components/organisms/avl/Avl3DOrbitalScene.d.ts +23 -0
  20. package/dist/components/organisms/avl/Avl3DTraitScene.d.ts +19 -0
  21. package/dist/components/organisms/avl/Avl3DTransitionScene.d.ts +17 -0
  22. package/dist/components/organisms/avl/Avl3DViewer.d.ts +40 -0
  23. package/dist/components/organisms/avl/AvlOrbitalScene.d.ts +4 -0
  24. package/dist/components/organisms/avl/avl-3d-context.d.ts +32 -0
  25. package/dist/components/organisms/avl/avl-3d-layout.d.ts +116 -0
  26. package/dist/components/organisms/avl/avl-zoom-state.d.ts +3 -0
  27. package/dist/components/organisms/game/three/index.cjs +2549 -120
  28. package/dist/components/organisms/game/three/index.d.ts +8 -0
  29. package/dist/components/organisms/game/three/index.js +2419 -5
  30. package/dist/illustrations/index.cjs +2880 -109
  31. package/dist/illustrations/index.js +2879 -108
  32. package/dist/providers/OrbitalProvider.d.ts +4 -2
  33. package/dist/providers/index.cjs +263 -284
  34. package/dist/providers/index.js +189 -210
  35. package/dist/runtime/OrbPreview.d.ts +9 -6
  36. package/dist/runtime/ServerBridge.d.ts +23 -0
  37. package/dist/runtime/enrichFromResponse.d.ts +21 -0
  38. package/dist/runtime/index.cjs +31754 -2587
  39. package/dist/runtime/index.d.ts +2 -0
  40. package/dist/runtime/index.js +31735 -2571
  41. package/package.json +5 -2
@@ -312,53 +312,6 @@ declare function curveControlPoint(x1: number, y1: number, x2: number, y2: numbe
312
312
  cpy: number;
313
313
  };
314
314
 
315
- /**
316
- * AVL Cosmic Zoom State Machine
317
- *
318
- * useReducer-based state machine managing which zoom level is displayed,
319
- * what is selected, and animation state.
320
- *
321
- * @packageDocumentation
322
- */
323
- type ZoomLevel = 'application' | 'orbital' | 'trait' | 'transition';
324
-
325
- /**
326
- * AvlCosmicZoom - Interactive Zoomable Orbital Visualization
327
- *
328
- * The host organism that owns the SVG viewport and delegates to
329
- * scene renderers at each zoom level. Manages animation, pan/zoom,
330
- * and breadcrumb navigation.
331
- *
332
- * @packageDocumentation
333
- */
334
-
335
- interface AvlCosmicZoomProps {
336
- /** The orbital schema (parsed object or JSON string) */
337
- schema: OrbitalSchema | string;
338
- /** CSS class for the outer container */
339
- className?: string;
340
- /** Primary color for the visualization */
341
- color?: string;
342
- /** Enable animations (default: true) */
343
- animated?: boolean;
344
- /** Pre-select an orbital on mount */
345
- initialOrbital?: string;
346
- /** Pre-select a trait on mount */
347
- initialTrait?: string;
348
- /** Callback when zoom level changes */
349
- onZoomChange?: (level: ZoomLevel, context: {
350
- orbital?: string;
351
- trait?: string;
352
- }) => void;
353
- /** Container width */
354
- width?: number | string;
355
- /** Container height */
356
- height?: number | string;
357
- /** Coverage data for verification overlay */
358
- stateCoverage?: Record<string, 'covered' | 'uncovered' | 'partial'>;
359
- }
360
- declare const AvlCosmicZoom: React.FC<AvlCosmicZoomProps>;
361
-
362
315
  /**
363
316
  * AVL Schema Parser
364
317
  *
@@ -486,6 +439,53 @@ declare function parseTraitLevel(schema: OrbitalSchema, orbitalName: string, tra
486
439
  */
487
440
  declare function parseTransitionLevel(schema: OrbitalSchema, orbitalName: string, traitName: string, transitionIndex: number): TransitionLevelData | null;
488
441
 
442
+ /**
443
+ * AVL Cosmic Zoom State Machine
444
+ *
445
+ * useReducer-based state machine managing which zoom level is displayed,
446
+ * what is selected, and animation state.
447
+ *
448
+ * @packageDocumentation
449
+ */
450
+ type ZoomLevel = 'application' | 'orbital' | 'trait' | 'transition';
451
+
452
+ /**
453
+ * AvlCosmicZoom - Interactive Zoomable Orbital Visualization
454
+ *
455
+ * The host organism that owns the SVG viewport and delegates to
456
+ * scene renderers at each zoom level. Manages animation, pan/zoom,
457
+ * and breadcrumb navigation.
458
+ *
459
+ * @packageDocumentation
460
+ */
461
+
462
+ interface AvlCosmicZoomProps {
463
+ /** The orbital schema (parsed object or JSON string) */
464
+ schema: OrbitalSchema | string;
465
+ /** CSS class for the outer container */
466
+ className?: string;
467
+ /** Primary color for the visualization */
468
+ color?: string;
469
+ /** Enable animations (default: true) */
470
+ animated?: boolean;
471
+ /** Pre-select an orbital on mount */
472
+ initialOrbital?: string;
473
+ /** Pre-select a trait on mount */
474
+ initialTrait?: string;
475
+ /** Callback when zoom level changes */
476
+ onZoomChange?: (level: ZoomLevel, context: {
477
+ orbital?: string;
478
+ trait?: string;
479
+ }) => void;
480
+ /** Container width */
481
+ width?: number | string;
482
+ /** Container height */
483
+ height?: number | string;
484
+ /** Coverage data for verification overlay */
485
+ stateCoverage?: Record<string, 'covered' | 'uncovered' | 'partial'>;
486
+ }
487
+ declare const AvlCosmicZoom: React.FC<AvlCosmicZoomProps>;
488
+
489
489
  /**
490
490
  * AvlApplicationScene - Zoom Level 1
491
491
  *
@@ -513,10 +513,14 @@ declare const AvlApplicationScene: React.FC<AvlApplicationSceneProps>;
513
513
  interface AvlOrbitalSceneProps {
514
514
  data: OrbitalLevelData;
515
515
  color?: string;
516
+ /** Currently highlighted trait (before zooming in) */
517
+ highlightedTrait?: string | null;
516
518
  onTraitClick?: (traitName: string, position: {
517
519
  x: number;
518
520
  y: number;
519
521
  }) => void;
522
+ /** Called when a trait tab is hovered/selected (highlight without zoom) */
523
+ onTraitHighlight?: (traitName: string | null) => void;
520
524
  }
521
525
  declare const AvlOrbitalScene: React.FC<AvlOrbitalSceneProps>;
522
526