@almadar/ui 5.91.0 → 5.94.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "5.91.0",
3
+ "version": "5.94.0",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -123,11 +123,11 @@
123
123
  "lint": "eslint --no-warn-ignored --max-warnings 0 ."
124
124
  },
125
125
  "dependencies": {
126
- "@almadar/core": "^10.11.0",
126
+ "@almadar/core": "^10.13.0",
127
127
  "@almadar/evaluator": ">=2.9.2",
128
128
  "@almadar/logger": "^1.3.0",
129
129
  "@almadar/patterns": ">=2.35.0",
130
- "@almadar/runtime": "^6.15.2",
130
+ "@almadar/runtime": "^6.19.0",
131
131
  "@almadar/std": ">=6.4.1",
132
132
  "@almadar/syntax": ">=1.3.1",
133
133
  "@dnd-kit/core": "^6.3.1",
@@ -1,27 +0,0 @@
1
- /**
2
- * SimulationCanvas
3
- *
4
- * Pure renderer: paints the initial preset bodies and, when the `bodies` prop
5
- * is provided, interpolates externally-driven snapshots to 60fps.
6
- * Physics integration is owned by the LOLO animTick — this canvas does NOT
7
- * self-advance positions.
8
- */
9
- import React from 'react';
10
- import type { PhysicsPreset, PhysicsBody } from '../../shared/lib/physicsTypes';
11
- export type PhysicsPresetId = 'mechanics-projectile' | 'mechanics-pendulum' | 'mechanics-spring';
12
- export interface SimulationCanvasProps {
13
- preset: PhysicsPresetId | PhysicsPreset;
14
- width?: number;
15
- height?: number;
16
- running: boolean;
17
- speed?: number;
18
- /** External model-authoritative body snapshots (~30Hz). When provided,
19
- * the self-simulation loop is bypassed and positions are interpolated
20
- * to 60fps between consecutive snapshots. */
21
- bodies?: readonly Pick<PhysicsBody, 'id' | 'x' | 'y'>[];
22
- className?: string;
23
- }
24
- export declare function SimulationCanvas({ preset: presetProp, width, height, bodies: externalBodies, className, }: SimulationCanvasProps): React.JSX.Element;
25
- export declare namespace SimulationCanvas {
26
- var displayName: string;
27
- }
@@ -1,51 +0,0 @@
1
- /**
2
- * SimulationControls
3
- *
4
- * Play/pause/step/reset controls with speed and parameter sliders.
5
- */
6
- import React from 'react';
7
- import type { Asset, EventEmit } from '@almadar/core';
8
- export interface SimulationParameter {
9
- value: number;
10
- min: number;
11
- max: number;
12
- step: number;
13
- label: string;
14
- }
15
- export interface SimulationControlsProps {
16
- running: boolean;
17
- speed: number;
18
- parameters: Record<string, SimulationParameter>;
19
- onPlay?: () => void;
20
- onPause?: () => void;
21
- onStep?: () => void;
22
- onReset?: () => void;
23
- onSpeedChange?: (speed: number) => void;
24
- onParameterChange?: (name: string, value: number) => void;
25
- /** Emits UI:{playEvent} on play */
26
- playEvent?: EventEmit<Record<string, never>>;
27
- /** Emits UI:{pauseEvent} on pause */
28
- pauseEvent?: EventEmit<Record<string, never>>;
29
- /** Emits UI:{stepEvent} on step */
30
- stepEvent?: EventEmit<Record<string, never>>;
31
- /** Emits UI:{resetEvent} on reset */
32
- resetEvent?: EventEmit<Record<string, never>>;
33
- /** Emits UI:{speedChangeEvent} with { speed } on speed change */
34
- speedChangeEvent?: EventEmit<{
35
- speed: number;
36
- }>;
37
- /** Emits UI:{parameterChangeEvent} with { name, value } on parameter change */
38
- parameterChangeEvent?: EventEmit<{
39
- name: string;
40
- value: number;
41
- }>;
42
- /** Optional per-semantic-key asset overrides for icons (play/pause/step/reset). */
43
- assetManifest?: {
44
- ui?: Record<string, Asset>;
45
- };
46
- className?: string;
47
- }
48
- export declare function SimulationControls({ running, speed, parameters, onPlay, onPause, onStep, onReset, onSpeedChange, onParameterChange, playEvent, pauseEvent, stepEvent, resetEvent, speedChangeEvent, parameterChangeEvent, assetManifest, className, }: SimulationControlsProps): React.JSX.Element;
49
- export declare namespace SimulationControls {
50
- var displayName: string;
51
- }
@@ -1,25 +0,0 @@
1
- /**
2
- * SimulationGraph
3
- *
4
- * Real-time measurement graph for physics simulations.
5
- * Renders measurement data as a simple line chart on canvas.
6
- */
7
- import React from 'react';
8
- export interface MeasurementPoint {
9
- time: number;
10
- value: number;
11
- }
12
- export interface SimulationGraphProps {
13
- label: string;
14
- unit: string;
15
- data: MeasurementPoint[];
16
- maxPoints?: number;
17
- width?: number;
18
- height?: number;
19
- color?: string;
20
- className?: string;
21
- }
22
- export declare function SimulationGraph({ label, unit, data, maxPoints, width, height, color, className, }: SimulationGraphProps): React.JSX.Element;
23
- export declare namespace SimulationGraph {
24
- var displayName: string;
25
- }