@almadar/ui 6.4.0 → 6.6.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/{EntityBindingContext-0Evn_LcT.d.cts → EntityBindingContext-Bn3ePJQC.d.cts} +1 -1
- package/dist/{EntityBindingContext-0Evn_LcT.d.ts → EntityBindingContext-Bn3ePJQC.d.ts} +1 -1
- package/dist/{GameAudioProvider-B48iXwz3.d.ts → GameAudioProvider-Ctceau1s.d.ts} +6 -18
- package/dist/{GameAudioProvider-CQAdPreB.d.cts → GameAudioProvider-Dk_Y3LN3.d.cts} +6 -18
- package/dist/avl/index.cjs +2755 -1532
- package/dist/avl/index.js +1710 -487
- package/dist/{avl-schema-parser-dvJKXn-o.d.ts → avl-schema-parser-DncJLEn9.d.ts} +18 -0
- package/dist/{avl-schema-parser-Bt4NzAam.d.cts → avl-schema-parser-FQ1474v8.d.cts} +18 -0
- package/dist/{cn-DJSBBm5W.d.cts → cn-CCjFspAo.d.cts} +25 -1
- package/dist/{cn-BbhJq_nr.d.ts → cn-sgpqpN0U.d.ts} +25 -1
- package/dist/components/index.cjs +2518 -1692
- package/dist/components/index.d.cts +178 -25
- package/dist/components/index.d.ts +178 -25
- package/dist/components/index.js +1500 -677
- package/dist/context/index.cjs +10 -13
- package/dist/context/index.js +10 -13
- package/dist/hooks/index.cjs +63 -13
- package/dist/hooks/index.d.cts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +64 -15
- package/dist/lib/drawable/three/index.cjs +126 -13
- package/dist/lib/drawable/three/index.d.cts +2 -2
- package/dist/lib/drawable/three/index.d.ts +2 -2
- package/dist/lib/drawable/three/index.js +127 -14
- package/dist/lib/index.cjs +180 -0
- package/dist/lib/index.d.cts +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +178 -1
- package/dist/locales/index.cjs +6 -3
- package/dist/locales/index.js +6 -3
- package/dist/providers/index.cjs +2346 -1399
- package/dist/providers/index.d.cts +2 -2
- package/dist/providers/index.d.ts +2 -2
- package/dist/providers/index.js +1389 -442
- package/dist/runtime/index.cjs +2892 -1356
- package/dist/runtime/index.d.cts +78 -6
- package/dist/runtime/index.d.ts +78 -6
- package/dist/runtime/index.js +1974 -441
- package/dist/{useEventBus-CQWyAWpK.d.ts → useKeyboardRouter-D84cNWmA.d.ts} +31 -1
- package/dist/{useEventBus-Ckr4wqW3.d.cts → useKeyboardRouter-DQEE_9mq.d.cts} +31 -1
- package/locales/ar.json +2 -1
- package/locales/en.json +2 -1
- package/locales/sl.json +2 -1
- package/package.json +4 -4
- package/themes/comic.css +437 -0
- package/themes/index.css +1 -0
|
@@ -509,6 +509,24 @@ interface Canvas3DHostProps {
|
|
|
509
509
|
lighting?: CanvasLighting;
|
|
510
510
|
/** 3D post-processing stack — bloom + vignette. Omitted → no composer pass mounted. */
|
|
511
511
|
post?: CanvasPost;
|
|
512
|
+
/** Enter scene-edit mode: click selects/deselects a drawable, drag moves it. */
|
|
513
|
+
editable?: boolean;
|
|
514
|
+
/** The currently-selected drawable id (controlled); `null`/undefined = none. */
|
|
515
|
+
selectedId?: string | null;
|
|
516
|
+
/** Fired on a click that changes selection — before `selectEvent`. */
|
|
517
|
+
onSelect?: (id: string | null) => void;
|
|
518
|
+
/** Fired once per drag gesture, on drop — before `moveEvent`. */
|
|
519
|
+
onMove?: (id: string, x: number, y: number) => void;
|
|
520
|
+
/** Declarative selection event, `UI:{selectEvent} { id }`. */
|
|
521
|
+
selectEvent?: EventEmit<{
|
|
522
|
+
id: string | null;
|
|
523
|
+
}>;
|
|
524
|
+
/** Declarative move event, `UI:{moveEvent} { id, x, y }` — fired once on drop. */
|
|
525
|
+
moveEvent?: EventEmit<{
|
|
526
|
+
id: string;
|
|
527
|
+
x: number;
|
|
528
|
+
y: number;
|
|
529
|
+
}>;
|
|
512
530
|
}
|
|
513
531
|
/** Imperative handle for GameCanvas3D */
|
|
514
532
|
interface Canvas3DHostHandle {
|
|
@@ -509,6 +509,24 @@ interface Canvas3DHostProps {
|
|
|
509
509
|
lighting?: CanvasLighting;
|
|
510
510
|
/** 3D post-processing stack — bloom + vignette. Omitted → no composer pass mounted. */
|
|
511
511
|
post?: CanvasPost;
|
|
512
|
+
/** Enter scene-edit mode: click selects/deselects a drawable, drag moves it. */
|
|
513
|
+
editable?: boolean;
|
|
514
|
+
/** The currently-selected drawable id (controlled); `null`/undefined = none. */
|
|
515
|
+
selectedId?: string | null;
|
|
516
|
+
/** Fired on a click that changes selection — before `selectEvent`. */
|
|
517
|
+
onSelect?: (id: string | null) => void;
|
|
518
|
+
/** Fired once per drag gesture, on drop — before `moveEvent`. */
|
|
519
|
+
onMove?: (id: string, x: number, y: number) => void;
|
|
520
|
+
/** Declarative selection event, `UI:{selectEvent} { id }`. */
|
|
521
|
+
selectEvent?: EventEmit<{
|
|
522
|
+
id: string | null;
|
|
523
|
+
}>;
|
|
524
|
+
/** Declarative move event, `UI:{moveEvent} { id, x, y }` — fired once on drop. */
|
|
525
|
+
moveEvent?: EventEmit<{
|
|
526
|
+
id: string;
|
|
527
|
+
x: number;
|
|
528
|
+
y: number;
|
|
529
|
+
}>;
|
|
512
530
|
}
|
|
513
531
|
/** Imperative handle for GameCanvas3D */
|
|
514
532
|
interface Canvas3DHostHandle {
|
|
@@ -3,6 +3,30 @@ import React__default from 'react';
|
|
|
3
3
|
import { D as DrawableNode } from './paintDispatch-D3R8NNmV.cjs';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Pure vim-flavored editor motion module. No DOM — `CodeBlock.tsx` drives a
|
|
8
|
+
* real `<textarea>` selection through this (Almadar Studio V4 §14 plan, P1
|
|
9
|
+
* E2); this module only computes offsets and text.
|
|
10
|
+
*
|
|
11
|
+
* Caret convention: an integer offset in `[0, text.length]`, a gap position
|
|
12
|
+
* (matches `textarea.selectionStart`) — except `word-end` and `line-end`,
|
|
13
|
+
* which land ON the index of their target character (vim's `e`/`$` block-
|
|
14
|
+
* cursor convention), so `motionRange` widens those by one to make an
|
|
15
|
+
* operator's range inclusive of that char.
|
|
16
|
+
*/
|
|
17
|
+
type EditorMotion = 'left' | 'right' | 'up' | 'down' | 'word-forward' | 'word-back' | 'word-end' | 'line-start' | 'line-end' | 'first-nonblank' | 'doc-start' | 'doc-end' | 'paragraph-forward' | 'paragraph-back' | 'line' | 'selection';
|
|
18
|
+
type EditorOperator = 'delete' | 'yank' | 'change';
|
|
19
|
+
/** New caret offset after applying `motion` `count` times. `line`/`selection` are range-only — caret is unchanged. */
|
|
20
|
+
declare function applyMotion(text: string, caret: number, motion: EditorMotion, count: number): number;
|
|
21
|
+
/** The `[start, end)` range an operator acts on for `motion`. */
|
|
22
|
+
declare function motionRange(text: string, caret: number, motion: EditorMotion, count: number, selection?: [number, number]): [number, number];
|
|
23
|
+
/** Apply `operator` over `range`. `delete`/`change` remove and store; `yank` only stores. */
|
|
24
|
+
declare function applyOperator(text: string, range: [number, number], operator: EditorOperator, register: string): {
|
|
25
|
+
text: string;
|
|
26
|
+
caret: number;
|
|
27
|
+
register: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
6
30
|
/**
|
|
7
31
|
* Content Segment Parsing Utilities
|
|
8
32
|
*
|
|
@@ -376,4 +400,4 @@ declare function clearVerification(): void;
|
|
|
376
400
|
*/
|
|
377
401
|
declare function cn(...inputs: ClassValue[]): string;
|
|
378
402
|
|
|
379
|
-
export {
|
|
403
|
+
export { type BloomLevel as $, getTraitSnapshots as A, getTransitions as B, type ContentSegment as C, DEFAULT_CONFIG as D, type EditorMotion as E, getTransitionsForTrait as F, motionRange as G, parseContentSegments as H, parseLessonSegments as I, parseMarkdownWithCodeBlocks$1 as J, recordServerResponse as K, type LessonSegment as L, recordTransition as M, registerCheck as N, registerTraitSnapshot as O, renderStateMachineToDomData as P, renderStateMachineToSvg as Q, type RenderOptions as R, type StateDefinition as S, type TraitSnapshotGetter as T, subscribeToVerification as U, type VisualizerConfig as V, updateAssetStatus as W, updateBridgeHealth as X, updateCheck as Y, waitForTransition as Z, type InteractiveOrbitalType as _, type DomEntityBox as a, BloomQuizBlock as a0, type BloomQuizBlockProps as a1, type MixedSegment as a2, parseMarkdownWithCodeBlocks as a3, type DomLayoutData as b, type DomOutputsBox as c, type DomStateNode as d, type DomTransitionLabel as e, type DomTransitionPath as f, type EditorOperator as g, type EntityDefinition as h, type StateMachineDefinition as i, type TransitionDefinition as j, applyMotion as k, applyOperator as l, bindCanvasCapture as m, bindEventBus as n, bindLastDrawables as o, bindTraitStateGetter as p, clearVerification as q, cn as r, extractOutputsFromTransitions as s, extractStateMachine as t, formatGuard as u, getAllChecks as v, getBridgeHealth as w, getEffectSummary as x, getSnapshot as y, getSummary as z };
|
|
@@ -3,6 +3,30 @@ import React__default from 'react';
|
|
|
3
3
|
import { D as DrawableNode } from './paintDispatch-B5ObLnUv.js';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Pure vim-flavored editor motion module. No DOM — `CodeBlock.tsx` drives a
|
|
8
|
+
* real `<textarea>` selection through this (Almadar Studio V4 §14 plan, P1
|
|
9
|
+
* E2); this module only computes offsets and text.
|
|
10
|
+
*
|
|
11
|
+
* Caret convention: an integer offset in `[0, text.length]`, a gap position
|
|
12
|
+
* (matches `textarea.selectionStart`) — except `word-end` and `line-end`,
|
|
13
|
+
* which land ON the index of their target character (vim's `e`/`$` block-
|
|
14
|
+
* cursor convention), so `motionRange` widens those by one to make an
|
|
15
|
+
* operator's range inclusive of that char.
|
|
16
|
+
*/
|
|
17
|
+
type EditorMotion = 'left' | 'right' | 'up' | 'down' | 'word-forward' | 'word-back' | 'word-end' | 'line-start' | 'line-end' | 'first-nonblank' | 'doc-start' | 'doc-end' | 'paragraph-forward' | 'paragraph-back' | 'line' | 'selection';
|
|
18
|
+
type EditorOperator = 'delete' | 'yank' | 'change';
|
|
19
|
+
/** New caret offset after applying `motion` `count` times. `line`/`selection` are range-only — caret is unchanged. */
|
|
20
|
+
declare function applyMotion(text: string, caret: number, motion: EditorMotion, count: number): number;
|
|
21
|
+
/** The `[start, end)` range an operator acts on for `motion`. */
|
|
22
|
+
declare function motionRange(text: string, caret: number, motion: EditorMotion, count: number, selection?: [number, number]): [number, number];
|
|
23
|
+
/** Apply `operator` over `range`. `delete`/`change` remove and store; `yank` only stores. */
|
|
24
|
+
declare function applyOperator(text: string, range: [number, number], operator: EditorOperator, register: string): {
|
|
25
|
+
text: string;
|
|
26
|
+
caret: number;
|
|
27
|
+
register: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
6
30
|
/**
|
|
7
31
|
* Content Segment Parsing Utilities
|
|
8
32
|
*
|
|
@@ -376,4 +400,4 @@ declare function clearVerification(): void;
|
|
|
376
400
|
*/
|
|
377
401
|
declare function cn(...inputs: ClassValue[]): string;
|
|
378
402
|
|
|
379
|
-
export {
|
|
403
|
+
export { type BloomLevel as $, getTraitSnapshots as A, getTransitions as B, type ContentSegment as C, DEFAULT_CONFIG as D, type EditorMotion as E, getTransitionsForTrait as F, motionRange as G, parseContentSegments as H, parseLessonSegments as I, parseMarkdownWithCodeBlocks$1 as J, recordServerResponse as K, type LessonSegment as L, recordTransition as M, registerCheck as N, registerTraitSnapshot as O, renderStateMachineToDomData as P, renderStateMachineToSvg as Q, type RenderOptions as R, type StateDefinition as S, type TraitSnapshotGetter as T, subscribeToVerification as U, type VisualizerConfig as V, updateAssetStatus as W, updateBridgeHealth as X, updateCheck as Y, waitForTransition as Z, type InteractiveOrbitalType as _, type DomEntityBox as a, BloomQuizBlock as a0, type BloomQuizBlockProps as a1, type MixedSegment as a2, parseMarkdownWithCodeBlocks as a3, type DomLayoutData as b, type DomOutputsBox as c, type DomStateNode as d, type DomTransitionLabel as e, type DomTransitionPath as f, type EditorOperator as g, type EntityDefinition as h, type StateMachineDefinition as i, type TransitionDefinition as j, applyMotion as k, applyOperator as l, bindCanvasCapture as m, bindEventBus as n, bindLastDrawables as o, bindTraitStateGetter as p, clearVerification as q, cn as r, extractOutputsFromTransitions as s, extractStateMachine as t, formatGuard as u, getAllChecks as v, getBridgeHealth as w, getEffectSummary as x, getSnapshot as y, getSummary as z };
|