@almadar/ui 5.147.0 → 5.149.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.
Files changed (29) hide show
  1. package/dist/{GameAudioProvider-CPGwD49P.d.cts → GameAudioProvider-B48iXwz3.d.ts} +2 -50
  2. package/dist/{GameAudioProvider-CPGwD49P.d.ts → GameAudioProvider-CQAdPreB.d.cts} +2 -50
  3. package/dist/avl/index.cjs +535 -15
  4. package/dist/avl/index.js +535 -15
  5. package/dist/{avl-schema-parser-DVmrgdwc.d.cts → avl-schema-parser-CVzkNzg7.d.cts} +18 -9
  6. package/dist/{avl-schema-parser-BRJ77Yze.d.ts → avl-schema-parser-Cx_4SVg9.d.ts} +18 -9
  7. package/dist/{cn-BAn68sNO.d.cts → cn-BnAJZcNb.d.cts} +2 -8
  8. package/dist/{cn-CWxxLkri.d.ts → cn-DJTUjk1M.d.ts} +2 -8
  9. package/dist/components/index.cjs +545 -18
  10. package/dist/components/index.d.cts +278 -98
  11. package/dist/components/index.d.ts +278 -98
  12. package/dist/components/index.js +541 -20
  13. package/dist/lib/drawable/three/index.cjs +56 -29
  14. package/dist/lib/drawable/three/index.d.cts +4 -3
  15. package/dist/lib/drawable/three/index.d.ts +4 -3
  16. package/dist/lib/drawable/three/index.js +56 -29
  17. package/dist/lib/index.d.cts +3 -2
  18. package/dist/lib/index.d.ts +3 -2
  19. package/dist/{paintDispatch-Cb_hQj4Y.d.ts → paintDispatch-BjZjUbcb.d.cts} +63 -69
  20. package/dist/{paintDispatch-Cb_hQj4Y.d.cts → paintDispatch-CxdLjHQq.d.ts} +63 -69
  21. package/dist/providers/index.cjs +535 -15
  22. package/dist/providers/index.d.cts +2 -1
  23. package/dist/providers/index.d.ts +2 -1
  24. package/dist/providers/index.js +535 -15
  25. package/dist/runtime/index.cjs +535 -15
  26. package/dist/runtime/index.js +535 -15
  27. package/dist/types-B3nHgnMG.d.cts +51 -0
  28. package/dist/types-B3nHgnMG.d.ts +51 -0
  29. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
1
  import { AnimationName, Asset, ScenePos, EventEmit, JsonObject, JsonValue } from '@almadar/core';
2
2
  import React__default from 'react';
3
3
  import * as THREE from 'three';
4
- import { D as DrawableNode } from './paintDispatch-Cb_hQj4Y.cjs';
4
+ import { D as DrawableNode } from './paintDispatch-BjZjUbcb.cjs';
5
5
 
6
6
  /**
7
7
  * Sprite Sheet Animation Types
@@ -307,10 +307,11 @@ interface CameraState {
307
307
  * (forwarded as `followTarget`), falling back to the scene centre.
308
308
  *
309
309
  * Interaction: keyboard maps to semantic events (device-agnostic input). Pointer
310
- * click/hover on neutral drawables needs a per-entity id + a scene-space raycast
311
- * the descriptors don't yet carry that hit-test is a tracked fork
312
- * (docs/Almadar_Std_Game_V2_PLAN.md); the click/hover event props are accepted but
313
- * not yet emitted from a raycast.
310
+ * click on a tagged drawable (a descriptor carrying `DrawableBase.id`) raycasts to
311
+ * the mesh and walks up to the tagged ancestor `unitClickEvent {unitId,x,z}`;
312
+ * a click that hits no tagged mesh falls back to the ground-plane cell raycast →
313
+ * `tileClickEvent`. Pointer hover/feature events are accepted but not yet
314
+ * emitted (docs/Almadar_Std_Gaps.md S-CANVAS3D-HOVER-DEAD).
314
315
  *
315
316
  * @packageDocumentation
316
317
  */
@@ -422,8 +423,9 @@ interface Canvas3DHostProps {
422
423
  terrain?: string;
423
424
  elevation?: number;
424
425
  }>;
425
- /** Declarative event: unit click. Emitted `{ unitId, x, z }` when the raycast lands on a
426
- * cell whose descriptor carries an `id` (a tagged unit sprite). */
426
+ /** Declarative event: unit click. Emitted `{ unitId, x, z }` when the raycast hits a
427
+ * mesh tagged with a descriptor `id` (or lands on a ground cell whose descriptor
428
+ * carries an `id`). */
427
429
  unitClickEvent?: EventEmit<{
428
430
  unitId: string;
429
431
  x: number;
@@ -477,8 +479,12 @@ interface Canvas3DHostProps {
477
479
  loadingMessage?: string;
478
480
  /** Unit draw-size multiplier (accepted for API parity; sizing is drawable-authored). */
479
481
  unitScale?: number;
480
- /** Board zoom (accepted for API parity; 3D zoom is camera-driven, not group-scaled). */
481
- scale?: number;
482
+ /** Board zoom the neutral `Camera.zoom`. Dollies the camera: the framing
483
+ * distance is divided by `zoom` (undefined/1 = default framing; <= 0 ignored). */
484
+ zoom?: number;
485
+ /** Enable the orbit camera controls. Default true; `follow`/`chase` modes always
486
+ * disable them (the follow camera is authoritative). */
487
+ controlsEnabled?: boolean;
482
488
  /** Maps a keydown `e.code` → the board's SEMANTIC event (device-agnostic input). */
483
489
  keyMap?: Record<string, string>;
484
490
  /** Maps a keyup `e.code` → the board's SEMANTIC event. */
@@ -494,6 +500,9 @@ interface Canvas3DHostProps {
494
500
  fov?: number;
495
501
  /** Orbit the mode's framing position around the vertical axis through the target, in radians — the neutral `Camera.azimuth`. */
496
502
  azimuth?: number;
503
+ /** Orbit height angle above the ground plane, in radians — the neutral `Camera.elevation`
504
+ * (perspective mode). Omitted → the mode's fixed framing height. */
505
+ elevation?: number;
497
506
  /** 3D scene light rig as data — ambient/directional/hemisphere/point lights + optional
498
507
  * 'room' environment. Omitted → the standard fixed rig (this host's current
499
508
  * hardcoded lights, unchanged). */
@@ -1,7 +1,7 @@
1
1
  import { AnimationName, Asset, ScenePos, EventEmit, JsonObject, JsonValue } from '@almadar/core';
2
2
  import React__default from 'react';
3
3
  import * as THREE from 'three';
4
- import { D as DrawableNode } from './paintDispatch-Cb_hQj4Y.js';
4
+ import { D as DrawableNode } from './paintDispatch-CxdLjHQq.js';
5
5
 
6
6
  /**
7
7
  * Sprite Sheet Animation Types
@@ -307,10 +307,11 @@ interface CameraState {
307
307
  * (forwarded as `followTarget`), falling back to the scene centre.
308
308
  *
309
309
  * Interaction: keyboard maps to semantic events (device-agnostic input). Pointer
310
- * click/hover on neutral drawables needs a per-entity id + a scene-space raycast
311
- * the descriptors don't yet carry that hit-test is a tracked fork
312
- * (docs/Almadar_Std_Game_V2_PLAN.md); the click/hover event props are accepted but
313
- * not yet emitted from a raycast.
310
+ * click on a tagged drawable (a descriptor carrying `DrawableBase.id`) raycasts to
311
+ * the mesh and walks up to the tagged ancestor `unitClickEvent {unitId,x,z}`;
312
+ * a click that hits no tagged mesh falls back to the ground-plane cell raycast →
313
+ * `tileClickEvent`. Pointer hover/feature events are accepted but not yet
314
+ * emitted (docs/Almadar_Std_Gaps.md S-CANVAS3D-HOVER-DEAD).
314
315
  *
315
316
  * @packageDocumentation
316
317
  */
@@ -422,8 +423,9 @@ interface Canvas3DHostProps {
422
423
  terrain?: string;
423
424
  elevation?: number;
424
425
  }>;
425
- /** Declarative event: unit click. Emitted `{ unitId, x, z }` when the raycast lands on a
426
- * cell whose descriptor carries an `id` (a tagged unit sprite). */
426
+ /** Declarative event: unit click. Emitted `{ unitId, x, z }` when the raycast hits a
427
+ * mesh tagged with a descriptor `id` (or lands on a ground cell whose descriptor
428
+ * carries an `id`). */
427
429
  unitClickEvent?: EventEmit<{
428
430
  unitId: string;
429
431
  x: number;
@@ -477,8 +479,12 @@ interface Canvas3DHostProps {
477
479
  loadingMessage?: string;
478
480
  /** Unit draw-size multiplier (accepted for API parity; sizing is drawable-authored). */
479
481
  unitScale?: number;
480
- /** Board zoom (accepted for API parity; 3D zoom is camera-driven, not group-scaled). */
481
- scale?: number;
482
+ /** Board zoom the neutral `Camera.zoom`. Dollies the camera: the framing
483
+ * distance is divided by `zoom` (undefined/1 = default framing; <= 0 ignored). */
484
+ zoom?: number;
485
+ /** Enable the orbit camera controls. Default true; `follow`/`chase` modes always
486
+ * disable them (the follow camera is authoritative). */
487
+ controlsEnabled?: boolean;
482
488
  /** Maps a keydown `e.code` → the board's SEMANTIC event (device-agnostic input). */
483
489
  keyMap?: Record<string, string>;
484
490
  /** Maps a keyup `e.code` → the board's SEMANTIC event. */
@@ -494,6 +500,9 @@ interface Canvas3DHostProps {
494
500
  fov?: number;
495
501
  /** Orbit the mode's framing position around the vertical axis through the target, in radians — the neutral `Camera.azimuth`. */
496
502
  azimuth?: number;
503
+ /** Orbit height angle above the ground plane, in radians — the neutral `Camera.elevation`
504
+ * (perspective mode). Omitted → the mode's fixed framing height. */
505
+ elevation?: number;
497
506
  /** 3D scene light rig as data — ambient/directional/hemisphere/point lights + optional
498
507
  * 'room' environment. Omitted → the standard fixed rig (this host's current
499
508
  * hardcoded lights, unchanged). */
@@ -1,6 +1,6 @@
1
1
  import { OrbitalSchema, SExpr, Effect, OrbitalVerificationAPI, TraitStateSnapshot, EventPayload, BusEvent, VerificationCheck, BridgeHealth, VerificationSnapshot, VerificationSummary, TransitionTrace, ServerResponseTrace, CheckStatus, AssetLoadStatus } from '@almadar/core';
2
2
  import React__default from 'react';
3
- import { D as DrawableNode } from './paintDispatch-Cb_hQj4Y.cjs';
3
+ import { D as DrawableNode } from './paintDispatch-BjZjUbcb.cjs';
4
4
  import { ClassValue } from 'clsx';
5
5
 
6
6
  /**
@@ -126,12 +126,6 @@ type LessonSegment = MixedSegment | {
126
126
  visualizationType: InteractiveOrbitalType;
127
127
  description: string;
128
128
  };
129
- /** User progress state passed into SegmentRenderer. */
130
- interface LessonUserProgress {
131
- activationResponse?: string;
132
- reflectionNotes?: string[];
133
- bloomAnswered?: Record<number, boolean>;
134
- }
135
129
  /** Parse a lesson string into typed segments. Returns `[]` when input is empty. */
136
130
  declare function parseLessonSegments(lesson: string | undefined): LessonSegment[];
137
131
 
@@ -382,4 +376,4 @@ declare function clearVerification(): void;
382
376
  */
383
377
  declare function cn(...inputs: ClassValue[]): string;
384
378
 
385
- export { parseMarkdownWithCodeBlocks as $, parseLessonSegments as A, parseMarkdownWithCodeBlocks$1 as B, type ContentSegment as C, DEFAULT_CONFIG as D, type EntityDefinition as E, recordServerResponse as F, recordTransition as G, registerCheck as H, registerTraitSnapshot as I, renderStateMachineToDomData as J, renderStateMachineToSvg as K, type LessonSegment as L, subscribeToVerification as M, updateAssetStatus as N, updateBridgeHealth as O, updateCheck as P, waitForTransition as Q, type RenderOptions as R, type StateDefinition as S, type TraitSnapshotGetter as T, type LessonUserProgress as U, type VisualizerConfig as V, type InteractiveOrbitalType as W, type BloomLevel as X, BloomQuizBlock as Y, type BloomQuizBlockProps as Z, type MixedSegment as _, type DomEntityBox as a, type DomLayoutData as b, type DomOutputsBox as c, type DomStateNode as d, type DomTransitionLabel as e, type DomTransitionPath as f, type StateMachineDefinition as g, type TransitionDefinition as h, bindCanvasCapture as i, bindEventBus as j, bindLastDrawables as k, bindTraitStateGetter as l, clearVerification as m, cn as n, extractOutputsFromTransitions as o, extractStateMachine as p, formatGuard as q, getAllChecks as r, getBridgeHealth as s, getEffectSummary as t, getSnapshot as u, getSummary as v, getTraitSnapshots as w, getTransitions as x, getTransitionsForTrait as y, parseContentSegments as z };
379
+ export { parseLessonSegments as A, parseMarkdownWithCodeBlocks$1 as B, type ContentSegment as C, DEFAULT_CONFIG as D, type EntityDefinition as E, recordServerResponse as F, recordTransition as G, registerCheck as H, registerTraitSnapshot as I, renderStateMachineToDomData as J, renderStateMachineToSvg as K, type LessonSegment as L, subscribeToVerification as M, updateAssetStatus as N, updateBridgeHealth as O, updateCheck as P, waitForTransition as Q, type RenderOptions as R, type StateDefinition as S, type TraitSnapshotGetter as T, type InteractiveOrbitalType as U, type VisualizerConfig as V, type BloomLevel as W, BloomQuizBlock as X, type BloomQuizBlockProps as Y, type MixedSegment as Z, parseMarkdownWithCodeBlocks as _, type DomEntityBox as a, type DomLayoutData as b, type DomOutputsBox as c, type DomStateNode as d, type DomTransitionLabel as e, type DomTransitionPath as f, type StateMachineDefinition as g, type TransitionDefinition as h, bindCanvasCapture as i, bindEventBus as j, bindLastDrawables as k, bindTraitStateGetter as l, clearVerification as m, cn as n, extractOutputsFromTransitions as o, extractStateMachine as p, formatGuard as q, getAllChecks as r, getBridgeHealth as s, getEffectSummary as t, getSnapshot as u, getSummary as v, getTraitSnapshots as w, getTransitions as x, getTransitionsForTrait as y, parseContentSegments as z };
@@ -1,6 +1,6 @@
1
1
  import { OrbitalSchema, SExpr, Effect, OrbitalVerificationAPI, TraitStateSnapshot, EventPayload, BusEvent, VerificationCheck, BridgeHealth, VerificationSnapshot, VerificationSummary, TransitionTrace, ServerResponseTrace, CheckStatus, AssetLoadStatus } from '@almadar/core';
2
2
  import React__default from 'react';
3
- import { D as DrawableNode } from './paintDispatch-Cb_hQj4Y.js';
3
+ import { D as DrawableNode } from './paintDispatch-CxdLjHQq.js';
4
4
  import { ClassValue } from 'clsx';
5
5
 
6
6
  /**
@@ -126,12 +126,6 @@ type LessonSegment = MixedSegment | {
126
126
  visualizationType: InteractiveOrbitalType;
127
127
  description: string;
128
128
  };
129
- /** User progress state passed into SegmentRenderer. */
130
- interface LessonUserProgress {
131
- activationResponse?: string;
132
- reflectionNotes?: string[];
133
- bloomAnswered?: Record<number, boolean>;
134
- }
135
129
  /** Parse a lesson string into typed segments. Returns `[]` when input is empty. */
136
130
  declare function parseLessonSegments(lesson: string | undefined): LessonSegment[];
137
131
 
@@ -382,4 +376,4 @@ declare function clearVerification(): void;
382
376
  */
383
377
  declare function cn(...inputs: ClassValue[]): string;
384
378
 
385
- export { parseMarkdownWithCodeBlocks as $, parseLessonSegments as A, parseMarkdownWithCodeBlocks$1 as B, type ContentSegment as C, DEFAULT_CONFIG as D, type EntityDefinition as E, recordServerResponse as F, recordTransition as G, registerCheck as H, registerTraitSnapshot as I, renderStateMachineToDomData as J, renderStateMachineToSvg as K, type LessonSegment as L, subscribeToVerification as M, updateAssetStatus as N, updateBridgeHealth as O, updateCheck as P, waitForTransition as Q, type RenderOptions as R, type StateDefinition as S, type TraitSnapshotGetter as T, type LessonUserProgress as U, type VisualizerConfig as V, type InteractiveOrbitalType as W, type BloomLevel as X, BloomQuizBlock as Y, type BloomQuizBlockProps as Z, type MixedSegment as _, type DomEntityBox as a, type DomLayoutData as b, type DomOutputsBox as c, type DomStateNode as d, type DomTransitionLabel as e, type DomTransitionPath as f, type StateMachineDefinition as g, type TransitionDefinition as h, bindCanvasCapture as i, bindEventBus as j, bindLastDrawables as k, bindTraitStateGetter as l, clearVerification as m, cn as n, extractOutputsFromTransitions as o, extractStateMachine as p, formatGuard as q, getAllChecks as r, getBridgeHealth as s, getEffectSummary as t, getSnapshot as u, getSummary as v, getTraitSnapshots as w, getTransitions as x, getTransitionsForTrait as y, parseContentSegments as z };
379
+ export { parseLessonSegments as A, parseMarkdownWithCodeBlocks$1 as B, type ContentSegment as C, DEFAULT_CONFIG as D, type EntityDefinition as E, recordServerResponse as F, recordTransition as G, registerCheck as H, registerTraitSnapshot as I, renderStateMachineToDomData as J, renderStateMachineToSvg as K, type LessonSegment as L, subscribeToVerification as M, updateAssetStatus as N, updateBridgeHealth as O, updateCheck as P, waitForTransition as Q, type RenderOptions as R, type StateDefinition as S, type TraitSnapshotGetter as T, type InteractiveOrbitalType as U, type VisualizerConfig as V, type BloomLevel as W, BloomQuizBlock as X, type BloomQuizBlockProps as Y, type MixedSegment as Z, parseMarkdownWithCodeBlocks as _, type DomEntityBox as a, type DomLayoutData as b, type DomOutputsBox as c, type DomStateNode as d, type DomTransitionLabel as e, type DomTransitionPath as f, type StateMachineDefinition as g, type TransitionDefinition as h, bindCanvasCapture as i, bindEventBus as j, bindLastDrawables as k, bindTraitStateGetter as l, clearVerification as m, cn as n, extractOutputsFromTransitions as o, extractStateMachine as p, formatGuard as q, getAllChecks as r, getBridgeHealth as s, getEffectSummary as t, getSnapshot as u, getSummary as v, getTraitSnapshots as w, getTransitions as x, getTransitionsForTrait as y, parseContentSegments as z };