@almadar/ui 5.85.0 → 5.86.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 (39) hide show
  1. package/dist/avl/index.cjs +1379 -4754
  2. package/dist/avl/index.js +431 -3806
  3. package/dist/components/game/2d/{organisms → molecules}/SequenceBar.d.ts +8 -3
  4. package/dist/components/game/2d/molecules/index.d.ts +15 -25
  5. package/dist/components/game/shared/index.d.ts +0 -2
  6. package/dist/components/game/shared/lib/puzzleObject.d.ts +1 -1
  7. package/dist/components/index.cjs +1357 -4440
  8. package/dist/components/index.js +399 -3463
  9. package/dist/providers/index.cjs +1209 -4584
  10. package/dist/providers/index.js +370 -3745
  11. package/dist/runtime/index.cjs +1211 -4586
  12. package/dist/runtime/index.js +382 -3757
  13. package/package.json +1 -1
  14. package/dist/components/game/2d/organisms/BuilderBoard.d.ts +0 -60
  15. package/dist/components/game/2d/organisms/CanvasEffect.d.ts +0 -70
  16. package/dist/components/game/2d/organisms/ClassifierBoard.d.ts +0 -66
  17. package/dist/components/game/2d/organisms/DebuggerBoard.d.ts +0 -61
  18. package/dist/components/game/2d/organisms/EventHandlerBoard.d.ts +0 -42
  19. package/dist/components/game/2d/organisms/NegotiatorBoard.d.ts +0 -56
  20. package/dist/components/game/2d/organisms/SequencerBoard.d.ts +0 -69
  21. package/dist/components/game/2d/organisms/SimulatorBoard.d.ts +0 -58
  22. package/dist/components/game/2d/organisms/StateArchitectBoard.d.ts +0 -61
  23. package/dist/components/game/shared/canvasEffects.d.ts +0 -50
  24. package/dist/components/game/shared/combatPresets.d.ts +0 -15
  25. package/dist/components/game/shared/hooks/useCanvasEffects.d.ts +0 -27
  26. /package/dist/components/game/2d/{organisms → molecules}/ActionPalette.d.ts +0 -0
  27. /package/dist/components/game/2d/{organisms → molecules}/ActionTile.d.ts +0 -0
  28. /package/dist/components/game/2d/{organisms → molecules}/EventLog.d.ts +0 -0
  29. /package/dist/components/game/2d/{organisms → molecules}/ObjectRulePanel.d.ts +0 -0
  30. /package/dist/components/game/2d/{organisms → molecules}/RuleEditor.d.ts +0 -0
  31. /package/dist/components/game/2d/{organisms → molecules}/SimulationCanvas.d.ts +0 -0
  32. /package/dist/components/game/2d/{organisms → molecules}/SimulationControls.d.ts +0 -0
  33. /package/dist/components/game/2d/{organisms → molecules}/SimulationGraph.d.ts +0 -0
  34. /package/dist/components/game/2d/{organisms → molecules}/StateJsonView.d.ts +0 -0
  35. /package/dist/components/game/2d/{organisms → molecules}/StateNode.d.ts +0 -0
  36. /package/dist/components/game/2d/{organisms → molecules}/TraitSlot.d.ts +0 -0
  37. /package/dist/components/game/2d/{organisms → molecules}/TraitStateViewer.d.ts +0 -0
  38. /package/dist/components/game/2d/{organisms → molecules}/TransitionArrow.d.ts +0 -0
  39. /package/dist/components/game/2d/{organisms → molecules}/VariablePanel.d.ts +0 -0
@@ -8,6 +8,7 @@
8
8
  * @packageDocumentation
9
9
  */
10
10
  import React from 'react';
11
+ import type { EventKey } from '@almadar/core';
11
12
  import type { SlotItemData } from './TraitSlot';
12
13
  export interface SequenceBarProps {
13
14
  /** The current sequence (sparse — undefined means empty slot) */
@@ -15,9 +16,13 @@ export interface SequenceBarProps {
15
16
  /** Max number of slots */
16
17
  maxSlots: number;
17
18
  /** Called when an item is dropped into slot at index */
18
- onSlotDrop: (index: number, item: SlotItemData) => void;
19
+ onSlotDrop?: (index: number, item: SlotItemData) => void;
19
20
  /** Called when a slot is cleared */
20
- onSlotRemove: (index: number) => void;
21
+ onSlotRemove?: (index: number) => void;
22
+ /** Declarative event — emits UI:{slotDropEvent} with { slotIndex, actionId } on drop */
23
+ slotDropEvent?: EventKey;
24
+ /** Declarative event — emits UI:{slotRemoveEvent} with { slotIndex } on clear */
25
+ slotRemoveEvent?: EventKey;
21
26
  /** Whether the sequence is currently playing (disable interaction) */
22
27
  playing?: boolean;
23
28
  /** Current step index during playback (-1 = not playing) */
@@ -34,7 +39,7 @@ export interface SequenceBarProps {
34
39
  /** Additional CSS classes */
35
40
  className?: string;
36
41
  }
37
- export declare function SequenceBar({ slots, maxSlots, onSlotDrop, onSlotRemove, playing, currentStep, categoryColors, slotFeedback, size, className, }: SequenceBarProps): React.JSX.Element;
42
+ export declare function SequenceBar({ slots, maxSlots, onSlotDrop, onSlotRemove, slotDropEvent, slotRemoveEvent, playing, currentStep, categoryColors, slotFeedback, size, className, }: SequenceBarProps): React.JSX.Element;
38
43
  export declare namespace SequenceBar {
39
44
  var displayName: string;
40
45
  }
@@ -34,37 +34,27 @@ export { GameHud, type GameHudProps, type GameHudStat, type GameHudElement } fro
34
34
  export { GameMenu, type GameMenuProps, type MenuOption } from './GameMenu';
35
35
  export { Canvas2D, type Canvas2DProps, type Projection, type CameraMode, type Platform, type SidePlayer, type TileCoord, } from './Canvas2D';
36
36
  export { useUnitSpriteAtlas } from '../../shared/hooks/useUnitSpriteAtlas';
37
- export { CanvasEffect, type CanvasEffectProps } from '../organisms/CanvasEffect';
38
- export * from '../../shared/hooks/useCanvasEffects';
39
37
  export { GameAudioProvider, GameAudioContext, useGameAudioContext, type GameAudioProviderProps, type GameAudioContextValue, } from '../../shared/providers/GameAudioProvider';
40
38
  export { GameAudioToggle, type GameAudioToggleProps, } from '../atoms/GameAudioToggle';
41
39
  export { useGameAudio, type AudioManifest, type SoundEntry, type GameAudioControls, type UseGameAudioOptions, } from '../../shared/hooks/useGameAudio';
42
40
  export { useCamera } from '../../shared/hooks/useCamera';
43
- export { TraitStateViewer, type TraitStateViewerProps, type TraitStateMachineDefinition, type TraitTransition, } from '../organisms/TraitStateViewer';
44
- export { TraitSlot, type TraitSlotProps, type SlotItemData, } from '../organisms/TraitSlot';
41
+ export { TraitStateViewer, type TraitStateViewerProps, type TraitStateMachineDefinition, type TraitTransition, } from './TraitStateViewer';
42
+ export { TraitSlot, type TraitSlotProps, type SlotItemData, } from './TraitSlot';
45
43
  export { CollapsibleSection, EditorSlider, EditorSelect, EditorCheckbox, EditorTextInput, StatusBar, TerrainPalette, EditorToolbar, TERRAIN_COLORS, FEATURE_TYPES, type EditorMode, type CollapsibleSectionProps, type EditorSliderProps, type EditorSelectProps, type EditorCheckboxProps, type EditorTextInputProps, type StatusBarProps, type TerrainPaletteProps, type EditorToolbarProps, } from '../../shared/lib/editorUtils';
46
- export { ActionTile, type ActionTileProps } from '../organisms/ActionTile';
47
- export { ActionPalette, type ActionPaletteProps } from '../organisms/ActionPalette';
48
- export { SequenceBar, type SequenceBarProps } from '../organisms/SequenceBar';
49
- export { SequencerBoard, type SequencerBoardProps } from '../organisms/SequencerBoard';
50
- export { RuleEditor, type RuleEditorProps, type RuleDefinition } from '../organisms/RuleEditor';
51
- export { EventLog, type EventLogProps, type EventLogEntry } from '../organisms/EventLog';
52
- export { ObjectRulePanel, type ObjectRulePanelProps } from '../organisms/ObjectRulePanel';
53
- export { EventHandlerBoard, type EventHandlerBoardProps } from '../organisms/EventHandlerBoard';
44
+ export { ActionTile, type ActionTileProps } from './ActionTile';
45
+ export { ActionPalette, type ActionPaletteProps } from './ActionPalette';
46
+ export { SequenceBar, type SequenceBarProps } from './SequenceBar';
47
+ export { RuleEditor, type RuleEditorProps, type RuleDefinition } from './RuleEditor';
48
+ export { EventLog, type EventLogProps, type EventLogEntry } from './EventLog';
49
+ export { ObjectRulePanel, type ObjectRulePanelProps } from './ObjectRulePanel';
54
50
  export * from '../../shared/lib/puzzleObject';
55
- export { StateNode, type StateNodeProps } from '../organisms/StateNode';
56
- export { TransitionArrow, type TransitionArrowProps } from '../organisms/TransitionArrow';
57
- export { VariablePanel, type VariablePanelProps } from '../organisms/VariablePanel';
58
- export { StateJsonView, type StateJsonViewProps } from '../organisms/StateJsonView';
59
- export { StateArchitectBoard, type StateArchitectBoardProps, type StateArchitectTransition, type TestCase, } from '../organisms/StateArchitectBoard';
60
- export { SimulatorBoard, type SimulatorBoardProps, type SimulatorParameter } from '../organisms/SimulatorBoard';
61
- export { ClassifierBoard, type ClassifierBoardProps, type ClassifierItem, type ClassifierCategory } from '../organisms/ClassifierBoard';
62
- export { BuilderBoard, type BuilderBoardProps, type BuilderComponent, type BuilderSlot } from '../organisms/BuilderBoard';
63
- export { DebuggerBoard, type DebuggerBoardProps, type DebuggerLine } from '../organisms/DebuggerBoard';
64
- export { NegotiatorBoard, type NegotiatorBoardProps, type NegotiatorAction, type PayoffEntry } from '../organisms/NegotiatorBoard';
65
- export { SimulationCanvas, type SimulationCanvasProps } from '../organisms/SimulationCanvas';
66
- export { SimulationControls, type SimulationControlsProps } from '../organisms/SimulationControls';
67
- export { SimulationGraph, type SimulationGraphProps, type MeasurementPoint } from '../organisms/SimulationGraph';
51
+ export { StateNode, type StateNodeProps } from './StateNode';
52
+ export { TransitionArrow, type TransitionArrowProps } from './TransitionArrow';
53
+ export { VariablePanel, type VariablePanelProps } from './VariablePanel';
54
+ export { StateJsonView, type StateJsonViewProps } from './StateJsonView';
55
+ export { SimulationCanvas, type SimulationCanvasProps } from './SimulationCanvas';
56
+ export { SimulationControls, type SimulationControlsProps } from './SimulationControls';
57
+ export { SimulationGraph, type SimulationGraphProps, type MeasurementPoint } from './SimulationGraph';
68
58
  export type { PhysicsPreset, PhysicsBody, PhysicsConstraint } from '../../shared/lib/physicsTypes';
69
59
  export { projectileMotion, pendulum, springOscillator, ALL_PRESETS } from '../../shared/lib/physicsPresets';
70
60
  export { GameTemplate, type GameTemplateProps } from '../templates/GameTemplate';
@@ -17,5 +17,3 @@ export { isoToScreen, screenToIso, TILE_WIDTH, TILE_HEIGHT, FLOOR_HEIGHT, DIAMON
17
17
  export type { TileLayout } from './isometric';
18
18
  export { inferDirection, resolveSheetDirection, getCurrentFrame, resolveFrame, createUnitAnimationState, transitionAnimation, tickAnimationState, } from './spriteAnimation';
19
19
  export { SPRITE_SHEET_LAYOUT, SHEET_COLUMNS } from './spriteSheetConstants';
20
- export * from './combatPresets';
21
- export * from './canvasEffects';
@@ -9,7 +9,7 @@
9
9
  * @packageDocumentation
10
10
  */
11
11
  import type { EntityWith } from '@almadar/core';
12
- import type { RuleDefinition, RuleOption } from '../../2d/organisms/RuleEditor';
12
+ import type { RuleDefinition, RuleOption } from '../../2d/molecules/RuleEditor';
13
13
  type PuzzleObjectRow = EntityWith<{
14
14
  name?: string;
15
15
  icon?: string;