@almadar/ui 5.84.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.
- package/dist/avl/index.cjs +1379 -5162
- package/dist/avl/index.js +431 -4214
- package/dist/components/game/2d/{organisms → molecules}/SequenceBar.d.ts +8 -3
- package/dist/components/game/2d/molecules/index.d.ts +15 -27
- package/dist/components/game/shared/index.d.ts +0 -2
- package/dist/components/game/shared/lib/puzzleObject.d.ts +1 -1
- package/dist/components/index.cjs +1445 -4940
- package/dist/components/index.js +487 -3961
- package/dist/providers/index.cjs +1209 -4992
- package/dist/providers/index.js +370 -4153
- package/dist/runtime/index.cjs +1211 -4994
- package/dist/runtime/index.js +382 -4165
- package/package.json +1 -1
- package/dist/components/game/2d/organisms/BuilderBoard.d.ts +0 -60
- package/dist/components/game/2d/organisms/CanvasEffect.d.ts +0 -70
- package/dist/components/game/2d/organisms/CardBattlerBoard.d.ts +0 -45
- package/dist/components/game/2d/organisms/ClassifierBoard.d.ts +0 -66
- package/dist/components/game/2d/organisms/DebuggerBoard.d.ts +0 -61
- package/dist/components/game/2d/organisms/EventHandlerBoard.d.ts +0 -42
- package/dist/components/game/2d/organisms/NegotiatorBoard.d.ts +0 -56
- package/dist/components/game/2d/organisms/SequencerBoard.d.ts +0 -69
- package/dist/components/game/2d/organisms/SimulatorBoard.d.ts +0 -58
- package/dist/components/game/2d/organisms/StateArchitectBoard.d.ts +0 -61
- package/dist/components/game/2d/organisms/VisualNovelBoard.d.ts +0 -44
- package/dist/components/game/shared/canvasEffects.d.ts +0 -50
- package/dist/components/game/shared/combatPresets.d.ts +0 -15
- package/dist/components/game/shared/hooks/useCanvasEffects.d.ts +0 -27
- /package/dist/components/game/2d/{organisms → molecules}/ActionPalette.d.ts +0 -0
- /package/dist/components/game/2d/{organisms → molecules}/ActionTile.d.ts +0 -0
- /package/dist/components/game/2d/{organisms → molecules}/EventLog.d.ts +0 -0
- /package/dist/components/game/2d/{organisms → molecules}/ObjectRulePanel.d.ts +0 -0
- /package/dist/components/game/2d/{organisms → molecules}/RuleEditor.d.ts +0 -0
- /package/dist/components/game/2d/{organisms → molecules}/SimulationCanvas.d.ts +0 -0
- /package/dist/components/game/2d/{organisms → molecules}/SimulationControls.d.ts +0 -0
- /package/dist/components/game/2d/{organisms → molecules}/SimulationGraph.d.ts +0 -0
- /package/dist/components/game/2d/{organisms → molecules}/StateJsonView.d.ts +0 -0
- /package/dist/components/game/2d/{organisms → molecules}/StateNode.d.ts +0 -0
- /package/dist/components/game/2d/{organisms → molecules}/TraitSlot.d.ts +0 -0
- /package/dist/components/game/2d/{organisms → molecules}/TraitStateViewer.d.ts +0 -0
- /package/dist/components/game/2d/{organisms → molecules}/TransitionArrow.d.ts +0 -0
- /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
|
|
19
|
+
onSlotDrop?: (index: number, item: SlotItemData) => void;
|
|
19
20
|
/** Called when a slot is cleared */
|
|
20
|
-
onSlotRemove
|
|
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,39 +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 {
|
|
44
|
-
export {
|
|
45
|
-
export { TraitStateViewer, type TraitStateViewerProps, type TraitStateMachineDefinition, type TraitTransition, } from '../organisms/TraitStateViewer';
|
|
46
|
-
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';
|
|
47
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';
|
|
48
|
-
export { ActionTile, type ActionTileProps } from '
|
|
49
|
-
export { ActionPalette, type ActionPaletteProps } from '
|
|
50
|
-
export { SequenceBar, type SequenceBarProps } from '
|
|
51
|
-
export {
|
|
52
|
-
export {
|
|
53
|
-
export {
|
|
54
|
-
export { ObjectRulePanel, type ObjectRulePanelProps } from '../organisms/ObjectRulePanel';
|
|
55
|
-
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';
|
|
56
50
|
export * from '../../shared/lib/puzzleObject';
|
|
57
|
-
export { StateNode, type StateNodeProps } from '
|
|
58
|
-
export { TransitionArrow, type TransitionArrowProps } from '
|
|
59
|
-
export { VariablePanel, type VariablePanelProps } from '
|
|
60
|
-
export { StateJsonView, type StateJsonViewProps } from '
|
|
61
|
-
export {
|
|
62
|
-
export {
|
|
63
|
-
export {
|
|
64
|
-
export { BuilderBoard, type BuilderBoardProps, type BuilderComponent, type BuilderSlot } from '../organisms/BuilderBoard';
|
|
65
|
-
export { DebuggerBoard, type DebuggerBoardProps, type DebuggerLine } from '../organisms/DebuggerBoard';
|
|
66
|
-
export { NegotiatorBoard, type NegotiatorBoardProps, type NegotiatorAction, type PayoffEntry } from '../organisms/NegotiatorBoard';
|
|
67
|
-
export { SimulationCanvas, type SimulationCanvasProps } from '../organisms/SimulationCanvas';
|
|
68
|
-
export { SimulationControls, type SimulationControlsProps } from '../organisms/SimulationControls';
|
|
69
|
-
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';
|
|
70
58
|
export type { PhysicsPreset, PhysicsBody, PhysicsConstraint } from '../../shared/lib/physicsTypes';
|
|
71
59
|
export { projectileMotion, pendulum, springOscillator, ALL_PRESETS } from '../../shared/lib/physicsPresets';
|
|
72
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/
|
|
12
|
+
import type { RuleDefinition, RuleOption } from '../../2d/molecules/RuleEditor';
|
|
13
13
|
type PuzzleObjectRow = EntityWith<{
|
|
14
14
|
name?: string;
|
|
15
15
|
icon?: string;
|