@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.
- package/dist/{GameAudioProvider-CPGwD49P.d.cts → GameAudioProvider-B48iXwz3.d.ts} +2 -50
- package/dist/{GameAudioProvider-CPGwD49P.d.ts → GameAudioProvider-CQAdPreB.d.cts} +2 -50
- package/dist/avl/index.cjs +535 -15
- package/dist/avl/index.js +535 -15
- package/dist/{avl-schema-parser-DVmrgdwc.d.cts → avl-schema-parser-CVzkNzg7.d.cts} +18 -9
- package/dist/{avl-schema-parser-BRJ77Yze.d.ts → avl-schema-parser-Cx_4SVg9.d.ts} +18 -9
- package/dist/{cn-BAn68sNO.d.cts → cn-BnAJZcNb.d.cts} +2 -8
- package/dist/{cn-CWxxLkri.d.ts → cn-DJTUjk1M.d.ts} +2 -8
- package/dist/components/index.cjs +545 -18
- package/dist/components/index.d.cts +278 -98
- package/dist/components/index.d.ts +278 -98
- package/dist/components/index.js +541 -20
- package/dist/lib/drawable/three/index.cjs +56 -29
- package/dist/lib/drawable/three/index.d.cts +4 -3
- package/dist/lib/drawable/three/index.d.ts +4 -3
- package/dist/lib/drawable/three/index.js +56 -29
- package/dist/lib/index.d.cts +3 -2
- package/dist/lib/index.d.ts +3 -2
- package/dist/{paintDispatch-Cb_hQj4Y.d.ts → paintDispatch-BjZjUbcb.d.cts} +63 -69
- package/dist/{paintDispatch-Cb_hQj4Y.d.cts → paintDispatch-CxdLjHQq.d.ts} +63 -69
- package/dist/providers/index.cjs +535 -15
- package/dist/providers/index.d.cts +2 -1
- package/dist/providers/index.d.ts +2 -1
- package/dist/providers/index.js +535 -15
- package/dist/runtime/index.cjs +535 -15
- package/dist/runtime/index.js +535 -15
- package/dist/types-B3nHgnMG.d.cts +51 -0
- package/dist/types-B3nHgnMG.d.ts +51 -0
- 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-
|
|
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
|
|
311
|
-
* the
|
|
312
|
-
*
|
|
313
|
-
*
|
|
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
|
|
426
|
-
*
|
|
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
|
|
481
|
-
|
|
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-
|
|
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
|
|
311
|
-
* the
|
|
312
|
-
*
|
|
313
|
-
*
|
|
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
|
|
426
|
-
*
|
|
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
|
|
481
|
-
|
|
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-
|
|
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 {
|
|
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-
|
|
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 {
|
|
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 };
|