@almadar/ui 5.74.0 → 5.76.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 (379) hide show
  1. package/dist/avl/index.cjs +39646 -43579
  2. package/dist/avl/index.css +0 -504
  3. package/dist/avl/index.d.ts +43 -43
  4. package/dist/avl/index.js +38906 -42838
  5. package/dist/components/avl/atoms/AvlApplication.d.ts +1 -1
  6. package/dist/components/avl/atoms/AvlBindingRef.d.ts +1 -1
  7. package/dist/components/avl/atoms/AvlEffect.d.ts +1 -1
  8. package/dist/components/avl/atoms/AvlEntity.d.ts +1 -1
  9. package/dist/components/avl/atoms/AvlEvent.d.ts +1 -1
  10. package/dist/components/avl/atoms/AvlField.d.ts +1 -1
  11. package/dist/components/avl/atoms/AvlFieldType.d.ts +1 -1
  12. package/dist/components/avl/atoms/AvlGuard.d.ts +1 -1
  13. package/dist/components/avl/atoms/AvlLiteral.d.ts +1 -1
  14. package/dist/components/avl/atoms/AvlOperator.d.ts +1 -1
  15. package/dist/components/avl/atoms/AvlPage.d.ts +1 -1
  16. package/dist/components/avl/atoms/AvlPersistence.d.ts +1 -1
  17. package/dist/components/avl/atoms/AvlSExpr.d.ts +1 -1
  18. package/dist/components/avl/atoms/AvlState.d.ts +2 -2
  19. package/dist/components/avl/atoms/index.d.ts +4 -4
  20. package/dist/components/avl/{molecules → lib}/avl-behavior-compose-converter.d.ts +1 -1
  21. package/dist/components/avl/{molecules → lib}/avl-elk-layout.d.ts +2 -2
  22. package/dist/components/avl/{molecules → lib}/avl-flow-converter.d.ts +1 -1
  23. package/dist/components/avl/{molecules → lib}/avl-preview-converter.d.ts +1 -1
  24. package/dist/components/avl/{molecules → lib}/avl-story-schemas.d.ts +6 -6
  25. package/dist/components/avl/{molecules → lib}/avl-zoom-band.d.ts +1 -1
  26. package/dist/components/avl/molecules/Avl3DExprTree.d.ts +1 -1
  27. package/dist/components/avl/molecules/AvlBehaviorGlyph.d.ts +1 -1
  28. package/dist/components/avl/molecules/AvlClosedCircuit.d.ts +1 -1
  29. package/dist/components/avl/molecules/AvlOrbitalUnit.d.ts +1 -1
  30. package/dist/components/avl/molecules/AvlStateMachine.d.ts +1 -1
  31. package/dist/components/avl/molecules/AvlTransitionLane.d.ts +1 -1
  32. package/dist/components/avl/molecules/BehaviorView.d.ts +1 -1
  33. package/dist/components/avl/molecules/DetailView.d.ts +1 -1
  34. package/dist/components/avl/molecules/MiniStateMachine.d.ts +1 -1
  35. package/dist/components/avl/molecules/ModuleCard.d.ts +1 -1
  36. package/dist/components/avl/molecules/OrbPreviewNode.d.ts +1 -1
  37. package/dist/components/avl/molecules/SystemNode.d.ts +1 -1
  38. package/dist/components/avl/molecules/index.d.ts +9 -9
  39. package/dist/components/avl/organisms/Avl3DApplicationScene.d.ts +1 -1
  40. package/dist/components/avl/organisms/Avl3DEffects.d.ts +1 -1
  41. package/dist/components/avl/organisms/Avl3DOrbitalScene.d.ts +1 -1
  42. package/dist/components/avl/organisms/Avl3DTraitScene.d.ts +1 -1
  43. package/dist/components/avl/organisms/Avl3DTransitionScene.d.ts +1 -1
  44. package/dist/components/avl/organisms/Avl3DViewer.d.ts +2 -2
  45. package/dist/components/avl/organisms/AvlCosmicZoom.d.ts +1 -1
  46. package/dist/components/avl/organisms/AvlLegend.d.ts +1 -1
  47. package/dist/components/avl/organisms/AvlTraitScene.d.ts +1 -1
  48. package/dist/components/avl/organisms/AvlTransitionDetail.d.ts +1 -1
  49. package/dist/components/avl/organisms/AvlTransitionScene.d.ts +1 -1
  50. package/dist/components/avl/organisms/FlowCanvas.d.ts +2 -2
  51. package/dist/components/avl/organisms/OrbInspector.d.ts +1 -1
  52. package/dist/components/avl/organisms/ZoomBreadcrumb.d.ts +1 -1
  53. package/dist/components/avl/organisms/ZoomLegend.d.ts +1 -1
  54. package/dist/components/avl/organisms/index.d.ts +2 -2
  55. package/dist/components/avl/{molecules → types}/avl-behavior-compose-types.d.ts +1 -1
  56. package/dist/components/avl/{molecules → types}/avl-canvas-types.d.ts +1 -1
  57. package/dist/components/core/atoms/index.d.ts +2 -3
  58. package/dist/components/core/molecules/Breadcrumb.d.ts +1 -1
  59. package/dist/components/core/molecules/Card.d.ts +1 -1
  60. package/dist/components/core/molecules/Chart.d.ts +0 -2
  61. package/dist/components/core/molecules/ConfirmDialog.d.ts +0 -2
  62. package/dist/components/core/molecules/DataGrid.d.ts +1 -1
  63. package/dist/components/core/molecules/DataList.d.ts +1 -1
  64. package/dist/components/core/molecules/EmptyState.d.ts +1 -1
  65. package/dist/components/core/molecules/FloatingActionButton.d.ts +1 -1
  66. package/dist/components/core/molecules/FormSectionHeader.d.ts +1 -1
  67. package/dist/components/core/molecules/GraphCanvas.d.ts +0 -2
  68. package/dist/components/core/molecules/Header.d.ts +1 -1
  69. package/dist/components/core/molecules/Menu.d.ts +1 -1
  70. package/dist/components/core/molecules/Navigation.d.ts +1 -1
  71. package/dist/components/core/molecules/OrbitalVisualization.d.ts +0 -2
  72. package/dist/components/core/molecules/PageHeader.d.ts +1 -1
  73. package/dist/components/core/molecules/RepeatableFormSection.d.ts +6 -5
  74. package/dist/components/core/molecules/Section.d.ts +0 -2
  75. package/dist/components/core/molecules/Sidebar.d.ts +1 -1
  76. package/dist/components/core/molecules/SignaturePad.d.ts +0 -2
  77. package/dist/components/core/molecules/Split.d.ts +0 -2
  78. package/dist/components/core/molecules/StatDisplay.d.ts +1 -1
  79. package/dist/components/core/molecules/SwipeableRow.d.ts +1 -1
  80. package/dist/components/core/molecules/TableView.d.ts +1 -1
  81. package/dist/components/core/molecules/Tabs.d.ts +1 -1
  82. package/dist/components/core/molecules/UploadDropZone.d.ts +1 -1
  83. package/dist/components/core/molecules/WizardContainer.d.ts +0 -2
  84. package/dist/components/core/molecules/index.d.ts +1 -1
  85. package/dist/components/core/organisms/UISlotRenderer.d.ts +1 -1
  86. package/dist/components/core/organisms/index.d.ts +4 -4
  87. package/dist/components/core/templates/index.d.ts +12 -12
  88. package/dist/components/game/{atoms → 2d/atoms}/ActionButton.d.ts +1 -1
  89. package/dist/components/game/{atoms → 2d/atoms}/ChoiceButton.d.ts +1 -1
  90. package/dist/components/game/{atoms → 2d/atoms}/ControlButton.d.ts +1 -1
  91. package/dist/components/game/{organisms → 2d/atoms}/GameAudioToggle.d.ts +1 -3
  92. package/dist/components/game/2d/atoms/GameCard.d.ts +26 -0
  93. package/dist/components/game/2d/atoms/GameIcon.d.ts +18 -0
  94. package/dist/components/game/2d/atoms/HealthBar.d.ts +26 -0
  95. package/dist/components/game/{atoms → 2d/atoms}/ItemSlot.d.ts +1 -1
  96. package/dist/components/game/{atoms → 2d/atoms}/MiniMap.d.ts +1 -1
  97. package/dist/components/game/{atoms → 2d/atoms}/ResourceCounter.d.ts +2 -2
  98. package/dist/components/game/{atoms → 2d/atoms}/ScoreDisplay.d.ts +1 -1
  99. package/dist/components/game/{atoms → 2d/atoms}/Sprite.d.ts +1 -1
  100. package/dist/components/game/{atoms → 2d/atoms}/StateIndicator.d.ts +5 -4
  101. package/dist/components/game/{atoms → 2d/atoms}/StatusEffect.d.ts +2 -2
  102. package/dist/components/game/{atoms → 2d/atoms}/WaypointMarker.d.ts +1 -1
  103. package/dist/components/game/2d/molecules/Canvas2D.d.ts +161 -0
  104. package/dist/components/game/2d/molecules/ControlGrid.d.ts +42 -0
  105. package/dist/components/game/{molecules → 2d/molecules}/GameHud.d.ts +3 -1
  106. package/dist/components/game/{molecules → 2d/molecules}/GameMenu.d.ts +1 -1
  107. package/dist/components/game/{molecules → 2d/molecules}/InventoryGrid.d.ts +3 -2
  108. package/dist/components/game/{molecules → 2d/molecules}/ResourceBar.d.ts +3 -1
  109. package/dist/components/game/{molecules → 2d/molecules}/StatBadge.d.ts +1 -1
  110. package/dist/components/game/2d/molecules/index.d.ts +107 -0
  111. package/dist/components/game/{organisms/puzzles/sequencer → 2d/organisms}/ActionPalette.d.ts +1 -1
  112. package/dist/components/game/{organisms/puzzles/sequencer → 2d/organisms}/ActionTile.d.ts +2 -2
  113. package/dist/components/game/{organisms → 2d/organisms}/BattleBoard.d.ts +4 -3
  114. package/dist/components/game/{organisms → 2d/organisms}/BoardgameBoard.d.ts +5 -5
  115. package/dist/components/game/{organisms/puzzles/builder → 2d/organisms}/BuilderBoard.d.ts +7 -3
  116. package/dist/components/game/{organisms → 2d/organisms}/CanvasEffect.d.ts +4 -4
  117. package/dist/components/game/{organisms → 2d/organisms}/CardBattlerBoard.d.ts +1 -1
  118. package/dist/components/game/{organisms → 2d/organisms}/CastleBoard.d.ts +2 -1
  119. package/dist/components/game/{organisms → 2d/organisms}/CityBuilderBoard.d.ts +1 -1
  120. package/dist/components/game/{organisms/puzzles/classifier → 2d/organisms}/ClassifierBoard.d.ts +7 -3
  121. package/dist/components/game/{organisms/puzzles/debugger → 2d/organisms}/DebuggerBoard.d.ts +7 -3
  122. package/dist/components/game/{organisms/puzzles/event-handler → 2d/organisms}/EventHandlerBoard.d.ts +1 -1
  123. package/dist/components/game/{organisms → 2d/organisms}/FishingBoard.d.ts +12 -2
  124. package/dist/components/game/{organisms → 2d/organisms}/HexStrategyBoard.d.ts +13 -6
  125. package/dist/components/game/{organisms → 2d/organisms}/HolidayRunnerBoard.d.ts +5 -5
  126. package/dist/components/game/{organisms → 2d/organisms}/MatchPuzzleBoard.d.ts +5 -5
  127. package/dist/components/game/{organisms → 2d/organisms}/MinigolfBoard.d.ts +5 -5
  128. package/dist/components/game/{organisms/puzzles/negotiator → 2d/organisms}/NegotiatorBoard.d.ts +7 -3
  129. package/dist/components/game/{organisms → 2d/organisms}/PinballBoard.d.ts +12 -4
  130. package/dist/components/game/{organisms → 2d/organisms}/PirateBoard.d.ts +13 -6
  131. package/dist/components/game/{organisms → 2d/organisms}/PlatformerBoard.d.ts +9 -14
  132. package/dist/components/game/{organisms → 2d/organisms}/RacingBoard.d.ts +13 -6
  133. package/dist/components/game/{organisms → 2d/organisms}/RoguelikeBoard.d.ts +2 -2
  134. package/dist/components/game/{organisms/puzzles/sequencer → 2d/organisms}/SequenceBar.d.ts +1 -1
  135. package/dist/components/game/{organisms/puzzles/sequencer → 2d/organisms}/SequencerBoard.d.ts +1 -1
  136. package/dist/components/game/{organisms/physics-sim → 2d/organisms}/SimulationCanvas.d.ts +3 -2
  137. package/dist/components/game/{organisms/physics-sim → 2d/organisms}/SimulationControls.d.ts +6 -1
  138. package/dist/components/game/{organisms/puzzles/simulator → 2d/organisms}/SimulatorBoard.d.ts +7 -3
  139. package/dist/components/game/{organisms → 2d/organisms}/SokobanBoard.d.ts +5 -5
  140. package/dist/components/game/{organisms → 2d/organisms}/SpaceShmupBoard.d.ts +13 -6
  141. package/dist/components/game/{organisms → 2d/organisms}/SpaceStationBoard.d.ts +5 -5
  142. package/dist/components/game/{organisms → 2d/organisms}/SportsBoard.d.ts +5 -5
  143. package/dist/components/game/{organisms/puzzles/state-architect → 2d/organisms}/StateArchitectBoard.d.ts +1 -1
  144. package/dist/components/game/{organisms/puzzles/state-architect → 2d/organisms}/StateNode.d.ts +1 -1
  145. package/dist/components/game/{organisms → 2d/organisms}/TanksBoard.d.ts +5 -5
  146. package/dist/components/game/{organisms → 2d/organisms}/TowerDefenseBoard.d.ts +1 -1
  147. package/dist/components/game/{organisms → 2d/organisms}/TraitSlot.d.ts +1 -1
  148. package/dist/components/game/{organisms → 2d/organisms}/TraitStateViewer.d.ts +1 -1
  149. package/dist/components/game/{organisms/puzzles/state-architect → 2d/organisms}/TransitionArrow.d.ts +1 -1
  150. package/dist/components/game/{organisms → 2d/organisms}/UncontrolledBattleBoard.d.ts +1 -1
  151. package/dist/components/game/{organisms → 2d/organisms}/VisualNovelBoard.d.ts +1 -9
  152. package/dist/components/game/{organisms → 2d/organisms}/WorldMapBoard.d.ts +4 -3
  153. package/dist/components/game/{templates → 2d/templates}/BattleTemplate.d.ts +2 -2
  154. package/dist/components/game/{templates → 2d/templates}/CardBattlerTemplate.d.ts +1 -1
  155. package/dist/components/game/{templates → 2d/templates}/CastleTemplate.d.ts +2 -2
  156. package/dist/components/game/{templates → 2d/templates}/CityBuilderTemplate.d.ts +1 -1
  157. package/dist/components/game/{templates → 2d/templates}/GameTemplate.d.ts +1 -1
  158. package/dist/components/game/{templates → 2d/templates}/PlatformerTemplate.d.ts +1 -1
  159. package/dist/components/game/{templates → 2d/templates}/RoguelikeTemplate.d.ts +2 -2
  160. package/dist/components/game/{templates → 2d/templates}/TopDownShooterTemplate.d.ts +1 -1
  161. package/dist/components/game/{templates → 2d/templates}/TowerDefenseTemplate.d.ts +1 -1
  162. package/dist/components/game/{templates → 2d/templates}/VisualNovelTemplate.d.ts +1 -1
  163. package/dist/components/game/{templates → 2d/templates}/WorldMapTemplate.d.ts +2 -2
  164. package/dist/components/game/3d/molecules/Canvas3D.d.ts +45 -0
  165. package/dist/components/game/{molecules → 3d/molecules}/GameCanvas3D.d.ts +3 -3
  166. package/dist/components/game/{molecules/three → 3d/molecules}/index.d.ts +22 -21
  167. package/dist/components/game/{organisms → 3d/organisms}/GameBoard3D.d.ts +1 -1
  168. package/dist/components/game/{templates → 3d/templates}/GameCanvas3DBattleTemplate.d.ts +3 -3
  169. package/dist/components/game/{templates → 3d/templates}/GameCanvas3DCastleTemplate.d.ts +3 -3
  170. package/dist/components/game/{templates → 3d/templates}/GameCanvas3DWorldMapTemplate.d.ts +3 -3
  171. package/dist/components/game/{organisms/utils → shared}/canvasEffects.d.ts +1 -1
  172. package/dist/components/game/{organisms/utils → shared}/combatPresets.d.ts +1 -1
  173. package/dist/components/game/{organisms/types → shared}/game.d.ts +2 -2
  174. package/dist/components/game/{molecules/three → shared}/hooks/useAssetLoader.d.ts +1 -1
  175. package/dist/components/game/{organisms → shared}/hooks/useBattleState.d.ts +1 -1
  176. package/dist/components/game/{organisms → shared}/hooks/useCamera.d.ts +1 -1
  177. package/dist/components/game/{organisms → shared/hooks}/useCanvasEffects.d.ts +1 -1
  178. package/dist/components/game/{molecules/three → shared}/hooks/useGameCanvas3DEvents.d.ts +1 -1
  179. package/dist/components/game/{molecules/three → shared}/hooks/useThree.d.ts +1 -1
  180. package/dist/components/game/{molecules → shared/hooks}/useUnitSpriteAtlas.d.ts +2 -2
  181. package/dist/components/game/shared/index.d.ts +21 -0
  182. package/dist/components/game/{organisms/types/isometric.d.ts → shared/isometricTypes.d.ts} +3 -7
  183. package/dist/components/game/{organisms/editor → shared/lib}/editorUtils.d.ts +6 -1
  184. package/dist/components/game/{templates → shared/lib}/game3dAssetManifest.d.ts +1 -1
  185. package/dist/components/game/{organisms/physics-sim/presets → shared/lib}/mechanics.d.ts +1 -1
  186. package/dist/components/game/{organisms/physics-sim/presets/index.d.ts → shared/lib/physicsPresets.d.ts} +2 -2
  187. package/dist/components/game/{organisms/puzzles/event-handler → shared/lib}/puzzleObject.d.ts +1 -1
  188. package/dist/components/game/{organisms → shared/providers}/GameAudioProvider.d.ts +3 -4
  189. package/dist/components/game/{organisms/utils → shared}/spriteAnimation.d.ts +1 -1
  190. package/dist/components/game/{organisms/utils → shared}/spriteSheetConstants.d.ts +1 -1
  191. package/dist/components/index.cjs +26303 -27705
  192. package/dist/components/index.css +0 -504
  193. package/dist/components/index.d.ts +5 -5
  194. package/dist/components/index.js +25707 -27155
  195. package/dist/context/index.cjs +93 -829
  196. package/dist/context/index.d.ts +8 -8
  197. package/dist/context/index.js +3 -809
  198. package/dist/hooks/index.cjs +14 -285
  199. package/dist/hooks/index.d.ts +5 -6
  200. package/dist/hooks/index.js +16 -269
  201. package/dist/hooks/useAgentChat.d.ts +7 -6
  202. package/dist/{renderer → hooks}/useClientEffects.d.ts +1 -1
  203. package/dist/hooks/useCompile.d.ts +2 -6
  204. package/dist/hooks/useDeepAgentGeneration.d.ts +4 -4
  205. package/dist/hooks/useEventBus.d.ts +5 -3
  206. package/dist/hooks/useFileSystem.d.ts +11 -1
  207. package/dist/hooks/useOrbitalHistory.d.ts +2 -2
  208. package/dist/hooks/useQuerySingleton.d.ts +5 -4
  209. package/dist/{runtime → hooks}/useResolvedSchema.d.ts +1 -1
  210. package/dist/{runtime → hooks}/useTraitStateMachine.d.ts +5 -5
  211. package/dist/hooks/useUISlots.d.ts +7 -10
  212. package/dist/lib/api-client.d.ts +4 -3
  213. package/dist/{renderer → lib}/client-effect-executor.d.ts +4 -15
  214. package/dist/{runtime → lib}/createClientEffectHandlers.d.ts +4 -4
  215. package/dist/{renderer → lib}/data-resolver.d.ts +3 -16
  216. package/dist/lib/debugRegistry.d.ts +8 -7
  217. package/dist/lib/entityDebug.d.ts +4 -3
  218. package/dist/lib/getNestedValue.d.ts +15 -3
  219. package/dist/lib/guardRegistry.d.ts +3 -2
  220. package/dist/lib/index.cjs +11 -12
  221. package/dist/lib/index.d.ts +1 -1
  222. package/dist/lib/index.js +11 -12
  223. package/dist/lib/jazari/layout.d.ts +3 -2
  224. package/dist/{renderer → lib}/offline-executor.d.ts +6 -5
  225. package/dist/lib/parseContentSegments.d.ts +2 -1
  226. package/dist/{renderer → lib}/pattern-resolver.d.ts +2 -2
  227. package/dist/{runtime → lib}/perf.d.ts +0 -2
  228. package/dist/{renderer → lib}/slot-definitions.d.ts +3 -15
  229. package/dist/{renderer → lib}/trait-binding-resolver.d.ts +6 -2
  230. package/dist/lib/visualizer/browser.d.ts +3 -2
  231. package/dist/lib/visualizer/index.d.ts +6 -5
  232. package/dist/marketing/index.cjs +6 -6
  233. package/dist/marketing/index.js +6 -6
  234. package/dist/{runtime → providers}/EntitySchemaContext.d.ts +0 -4
  235. package/dist/providers/EventBusProvider.d.ts +3 -2
  236. package/dist/providers/OfflineModeProvider.d.ts +1 -1
  237. package/dist/providers/OrbitalProvider.d.ts +5 -4
  238. package/dist/providers/SelectionProvider.d.ts +6 -5
  239. package/dist/{runtime → providers}/ServerBridge.d.ts +14 -11
  240. package/dist/{context → providers}/ThemeContext.d.ts +5 -5
  241. package/dist/{runtime → providers}/TraitProvider.d.ts +4 -3
  242. package/dist/{context → providers}/UISlotContext.d.ts +2 -2
  243. package/dist/{context → providers}/UserContext.d.ts +3 -2
  244. package/dist/providers/VerificationProvider.d.ts +2 -1
  245. package/dist/providers/index.cjs +40362 -43663
  246. package/dist/providers/index.css +0 -504
  247. package/dist/providers/index.d.ts +1 -1
  248. package/dist/providers/index.js +41036 -44336
  249. package/dist/{renderer → providers}/navigation.d.ts +7 -7
  250. package/dist/renderer/index.cjs +84 -322
  251. package/dist/renderer/index.d.ts +12 -12
  252. package/dist/renderer/index.js +30 -301
  253. package/dist/runtime/OrbPreview.d.ts +1 -1
  254. package/dist/runtime/index.cjs +41094 -45072
  255. package/dist/runtime/index.css +0 -504
  256. package/dist/runtime/index.d.ts +11 -11
  257. package/dist/runtime/index.js +40822 -44823
  258. package/dist/{hooks → types}/event-bus-types.d.ts +2 -1
  259. package/dist/{renderer/types.d.ts → types/renderer-types.d.ts} +14 -28
  260. package/dist/types/runtime-types.d.ts +21 -0
  261. package/dist/{runtime/ui → types}/slot-types.d.ts +5 -4
  262. package/locales/index.ts +1 -1
  263. package/package.json +14 -31
  264. package/dist/components/core/atoms/ThemeSelector.d.ts +0 -21
  265. package/dist/components/game/atoms/HealthBar.d.ts +0 -18
  266. package/dist/components/game/atoms/XPBar.d.ts +0 -20
  267. package/dist/components/game/atoms/index.d.ts +0 -25
  268. package/dist/components/game/molecules/ActionButtons.d.ts +0 -38
  269. package/dist/components/game/molecules/CardHand.d.ts +0 -35
  270. package/dist/components/game/molecules/CombatLog.d.ts +0 -30
  271. package/dist/components/game/molecules/CraftingRecipe.d.ts +0 -40
  272. package/dist/components/game/molecules/DPad.d.ts +0 -26
  273. package/dist/components/game/molecules/DialogueBox.d.ts +0 -66
  274. package/dist/components/game/molecules/EnemyPlate.d.ts +0 -30
  275. package/dist/components/game/molecules/GameCanvas2D.d.ts +0 -27
  276. package/dist/components/game/molecules/GameOverScreen.d.ts +0 -57
  277. package/dist/components/game/molecules/HealthPanel.d.ts +0 -31
  278. package/dist/components/game/molecules/InventoryPanel.d.ts +0 -58
  279. package/dist/components/game/molecules/IsometricCanvas.d.ts +0 -137
  280. package/dist/components/game/molecules/PlatformerCanvas.d.ts +0 -60
  281. package/dist/components/game/molecules/PowerupSlots.d.ts +0 -26
  282. package/dist/components/game/molecules/QuestTracker.d.ts +0 -20
  283. package/dist/components/game/molecules/ScoreBoard.d.ts +0 -18
  284. package/dist/components/game/molecules/TurnPanel.d.ts +0 -32
  285. package/dist/components/game/molecules/UnitCommandBar.d.ts +0 -25
  286. package/dist/components/game/molecules/index.d.ts +0 -32
  287. package/dist/components/game/molecules/three/components/PhysicsObject3D.d.ts +0 -74
  288. package/dist/components/game/molecules/three/components/index.d.ts +0 -10
  289. package/dist/components/game/molecules/three/index.cjs +0 -7798
  290. package/dist/components/game/molecules/three/index.css +0 -503
  291. package/dist/components/game/molecules/three/index.js +0 -7717
  292. package/dist/components/game/molecules/three/patterns.d.ts +0 -20
  293. package/dist/components/game/molecules/three/renderers/FeatureRenderer.d.ts +0 -38
  294. package/dist/components/game/molecules/three/renderers/FeatureRenderer3D.d.ts +0 -44
  295. package/dist/components/game/molecules/three/renderers/TileRenderer.d.ts +0 -57
  296. package/dist/components/game/molecules/three/renderers/UnitRenderer.d.ts +0 -46
  297. package/dist/components/game/molecules/three/renderers/index.d.ts +0 -11
  298. package/dist/components/game/organisms/editor/index.d.ts +0 -9
  299. package/dist/components/game/organisms/hooks/usePhysics2D.d.ts +0 -45
  300. package/dist/components/game/organisms/hooks/useSpriteAnimations.d.ts +0 -43
  301. package/dist/components/game/organisms/index.d.ts +0 -66
  302. package/dist/components/game/organisms/managers/PhysicsManager.d.ts +0 -103
  303. package/dist/components/game/organisms/physics-sim/index.d.ts +0 -7
  304. package/dist/components/game/organisms/puzzles/builder/index.d.ts +0 -2
  305. package/dist/components/game/organisms/puzzles/classifier/index.d.ts +0 -2
  306. package/dist/components/game/organisms/puzzles/debugger/index.d.ts +0 -2
  307. package/dist/components/game/organisms/puzzles/event-handler/index.d.ts +0 -8
  308. package/dist/components/game/organisms/puzzles/negotiator/index.d.ts +0 -2
  309. package/dist/components/game/organisms/puzzles/sequencer/index.d.ts +0 -8
  310. package/dist/components/game/organisms/puzzles/simulator/index.d.ts +0 -2
  311. package/dist/components/game/organisms/puzzles/state-architect/index.d.ts +0 -10
  312. package/dist/components/game/organisms/utils/combatEffects.d.ts +0 -64
  313. package/dist/components/game/templates/index.d.ts +0 -4
  314. package/dist/docs/index.cjs +0 -6969
  315. package/dist/docs/index.css +0 -1756
  316. package/dist/docs/index.d.cts +0 -574
  317. package/dist/docs/index.d.ts +0 -29
  318. package/dist/docs/index.js +0 -6926
  319. package/dist/hooks/useAgentTrace.d.ts +0 -85
  320. package/dist/hooks/useEntities.d.ts +0 -52
  321. package/dist/hooks/usePinchZoom.d.ts +0 -22
  322. package/dist/runtime/types.d.ts +0 -37
  323. package/dist/stores/entityStore.d.ts +0 -99
  324. package/dist/stores/filtering.d.ts +0 -51
  325. package/dist/stores/index.cjs +0 -217
  326. package/dist/stores/index.d.ts +0 -7
  327. package/dist/stores/index.js +0 -194
  328. /package/dist/components/avl/{molecules → hooks}/useCanvasDnd.d.ts +0 -0
  329. /package/dist/components/avl/{organisms → lib}/avl-3d-layout.d.ts +0 -0
  330. /package/dist/components/avl/{molecules → lib}/avl-layout.d.ts +0 -0
  331. /package/dist/components/avl/{organisms → lib}/avl-schema-parser.d.ts +0 -0
  332. /package/dist/components/avl/{organisms → lib}/avl-zoom-state.d.ts +0 -0
  333. /package/dist/components/avl/{derive-edit-focus.d.ts → lib/derive-edit-focus.d.ts} +0 -0
  334. /package/dist/components/avl/{molecules → lib}/wire-validation.d.ts +0 -0
  335. /package/dist/components/avl/{organisms → providers}/avl-3d-context.d.ts +0 -0
  336. /package/dist/components/avl/{atoms/types.d.ts → types/avl-atom-types.d.ts} +0 -0
  337. /package/dist/components/avl/{molecules → types}/avl-preview-types.d.ts +0 -0
  338. /package/dist/components/game/{atoms → 2d/atoms}/ComboCounter.d.ts +0 -0
  339. /package/dist/components/game/{atoms → 2d/atoms}/DamageNumber.d.ts +0 -0
  340. /package/dist/components/game/{atoms → 2d/atoms}/DialogueBubble.d.ts +0 -0
  341. /package/dist/components/game/{atoms → 2d/atoms}/TimerDisplay.d.ts +0 -0
  342. /package/dist/components/game/{atoms → 2d/atoms}/TurnIndicator.d.ts +0 -0
  343. /package/dist/components/game/{organisms/puzzles/event-handler → 2d/organisms}/EventLog.d.ts +0 -0
  344. /package/dist/components/game/{organisms/puzzles/event-handler → 2d/organisms}/ObjectRulePanel.d.ts +0 -0
  345. /package/dist/components/game/{organisms/puzzles/event-handler → 2d/organisms}/RuleEditor.d.ts +0 -0
  346. /package/dist/components/game/{organisms/physics-sim → 2d/organisms}/SimulationGraph.d.ts +0 -0
  347. /package/dist/components/game/{organisms/puzzles/state-architect → 2d/organisms}/StateJsonView.d.ts +0 -0
  348. /package/dist/components/game/{organisms → 2d/organisms}/TopDownShooterBoard.d.ts +0 -0
  349. /package/dist/components/game/{organisms/puzzles/state-architect → 2d/organisms}/VariablePanel.d.ts +0 -0
  350. /package/dist/components/game/{templates → 2d/templates}/GameShell.d.ts +0 -0
  351. /package/dist/components/game/{molecules/three → 3d/molecules}/Camera3D.d.ts +0 -0
  352. /package/dist/components/game/{molecules/three/components → 3d/molecules}/Canvas3DErrorBoundary.d.ts +0 -0
  353. /package/dist/components/game/{molecules/three/components → 3d/molecules}/Canvas3DLoadingState.d.ts +0 -0
  354. /package/dist/components/game/{molecules/three → 3d/molecules}/Lighting3D.d.ts +0 -0
  355. /package/dist/components/game/{molecules/three/components → 3d/molecules}/ModelLoader.d.ts +0 -0
  356. /package/dist/components/game/{molecules/three → 3d/molecules}/Scene3D.d.ts +0 -0
  357. /package/dist/components/game/{organisms → shared}/boardEntity.d.ts +0 -0
  358. /package/dist/components/game/{organisms/types → shared}/effects.d.ts +0 -0
  359. /package/dist/components/game/{organisms → shared}/hooks/useGameAudio.d.ts +0 -0
  360. /package/dist/components/game/{molecules/three → shared}/hooks/useRaycaster.d.ts +0 -0
  361. /package/dist/components/game/{molecules/three → shared}/hooks/useSceneGraph.d.ts +0 -0
  362. /package/dist/components/game/{organisms/utils → shared}/isometric.d.ts +0 -0
  363. /package/dist/components/game/{molecules/three/loaders → shared/lib}/AssetLoader.d.ts +0 -0
  364. /package/dist/components/game/{molecules/three/utils → shared/lib}/culling.d.ts +0 -0
  365. /package/dist/components/game/{molecules/three/utils → shared/lib}/grid3D.d.ts +0 -0
  366. /package/dist/components/game/{organisms/physics-sim/presets/types.d.ts → shared/lib/physicsTypes.d.ts} +0 -0
  367. /package/dist/components/game/{organisms/utils → shared}/makeAsset.d.ts +0 -0
  368. /package/dist/components/game/{organisms/types/spriteAnimation.d.ts → shared/spriteAnimationTypes.d.ts} +0 -0
  369. /package/dist/components/game/{organisms/hooks → shared}/useImageCache.d.ts +0 -0
  370. /package/dist/{runtime → lib}/embedded-traits.d.ts +0 -0
  371. /package/dist/{runtime → lib}/fn-form-lambda.d.ts +0 -0
  372. /package/dist/{renderer → lib}/init.d.ts +0 -0
  373. /package/dist/{runtime → lib}/orbitalsByTrait.d.ts +0 -0
  374. /package/dist/{runtime → lib}/prepareSchemaForPreview.d.ts +0 -0
  375. /package/dist/{context → lib}/themeTokens.d.ts +0 -0
  376. /package/dist/{runtime → lib}/wrapCallbackForEvent.d.ts +0 -0
  377. /package/dist/{context → providers}/CurrentPagePathContext.d.ts +0 -0
  378. /package/dist/{context → providers}/DesignThemeContext.d.ts +0 -0
  379. /package/dist/{context → providers}/OrbitalThemeProvider.d.ts +0 -0
@@ -0,0 +1,161 @@
1
+ /**
2
+ * Canvas2D
3
+ *
4
+ * The unified 2D game renderer (GR-6 consolidation). One canvas, a `projection`
5
+ * axis, layered render passes, opt-in clock. Absorbs IsometricCanvas (iso/hex/flat),
6
+ * GameCanvas2D (→ `projection:'free'`, pixel-direct draw) and PlatformerCanvas
7
+ * (→ `projection:'side'` + `platforms[]`).
8
+ *
9
+ * Pure renderer: every game datum arrives via props; only view state (viewport,
10
+ * camera, sprite cache) is local. The clock is LOLO-driven by default — `animate`
11
+ * opts a board into an internal RAF, but the default is OFF.
12
+ *
13
+ * Projection modes:
14
+ * - `isometric | hex | flat`: 2:1 diamond / pointy-top hex / orthographic square,
15
+ * all via `isoToScreen` — identical to IsometricCanvas.
16
+ * - `free`: tile/unit/feature x,y are SCREEN PIXELS drawn directly (no diamond),
17
+ * reusing the same sprite-drawing passes.
18
+ * - `side`: side-view pixel space with `platforms[]` (AABB) + follow-camera +
19
+ * keyboard input — an isolated branch ported from PlatformerCanvas.
20
+ *
21
+ * @packageDocumentation
22
+ */
23
+ import * as React from 'react';
24
+ import type { Asset, EventEmit } from '@almadar/core';
25
+ import type { IsometricTile, IsometricUnit, IsometricFeature, ActiveEffect } from '../../shared/isometricTypes';
26
+ import type { ResolvedFrame } from '../../shared/spriteAnimationTypes';
27
+ import type { UiError } from '../../../core/atoms/types';
28
+ export interface TileCoord {
29
+ x: number;
30
+ y: number;
31
+ }
32
+ /** Projection axis. iso/hex/flat use `isoToScreen`; `free` is pixel-direct; `side`
33
+ * is side-view pixel space with platforms (gravity lives in the LOLO model). */
34
+ export type Projection = 'isometric' | 'hex' | 'flat' | 'free' | 'side';
35
+ /** Camera behavior. `pan-zoom` = user drag+wheel; `follow` = track the player/
36
+ * selected unit; `fixed` = no camera motion. */
37
+ export type CameraMode = 'pan-zoom' | 'follow' | 'fixed';
38
+ /** A side-view platform (AABB rect). `side` projection only. */
39
+ export interface Platform {
40
+ x: number;
41
+ y: number;
42
+ width: number;
43
+ height: number;
44
+ type?: 'ground' | 'platform' | 'hazard' | 'goal';
45
+ }
46
+ /** A side-view player. The model owns physics; Canvas2D only interpolates+draws. */
47
+ export interface SidePlayer {
48
+ x: number;
49
+ y: number;
50
+ width?: number;
51
+ height?: number;
52
+ vx?: number;
53
+ vy?: number;
54
+ grounded?: boolean;
55
+ facingRight?: boolean;
56
+ }
57
+ export interface Canvas2DProps {
58
+ /** Additional CSS classes */
59
+ className?: string;
60
+ /** Loading state indicator */
61
+ isLoading?: boolean;
62
+ /** Error state */
63
+ error?: UiError | null;
64
+ /** Projection axis (default 'isometric'). Replaces the old `tileLayout`. */
65
+ projection?: Projection;
66
+ /** Tiles to render */
67
+ tiles?: IsometricTile[];
68
+ /** Units on the board */
69
+ units?: IsometricUnit[];
70
+ /** Features (resources, portals, buildings, etc.) */
71
+ features?: IsometricFeature[];
72
+ /** Active visual effects, drawn after units */
73
+ effects?: ActiveEffect[];
74
+ /** Side-view platforms (AABB). `projection:'side'` only. */
75
+ platforms?: Platform[];
76
+ /** Side-view player. `projection:'side'` only. */
77
+ player?: SidePlayer;
78
+ /** Background image (tiled behind iso/hex/flat/free; stretched in side). */
79
+ backgroundImage?: Asset;
80
+ /** Currently selected unit ID */
81
+ selectedUnitId?: string | null;
82
+ /** Valid move positions (pulsing green highlights) */
83
+ validMoves?: TileCoord[];
84
+ /** Attack target positions (pulsing red highlights) */
85
+ attackTargets?: TileCoord[];
86
+ /** Hovered tile position */
87
+ hoveredTile?: TileCoord | null;
88
+ /** Emits UI:{tileClickEvent} with { x, y } on tile click */
89
+ tileClickEvent?: EventEmit<{
90
+ x: number;
91
+ y: number;
92
+ }>;
93
+ /** Emits UI:{unitClickEvent} with { unitId } on unit click */
94
+ unitClickEvent?: EventEmit<{
95
+ unitId: string;
96
+ }>;
97
+ /** Emits UI:{tileHoverEvent} with { x, y } on tile hover */
98
+ tileHoverEvent?: EventEmit<{
99
+ x: number;
100
+ y: number;
101
+ }>;
102
+ /** Emits UI:{tileLeaveEvent} with {} on tile leave */
103
+ tileLeaveEvent?: EventEmit<Record<string, never>>;
104
+ /** Emits UI:{keyEvent} with { key } on keydown — for side/free keyboard control */
105
+ keyEvent?: EventEmit<{
106
+ key: string;
107
+ }>;
108
+ /** Camera behavior (default 'pan-zoom'). */
109
+ camera?: CameraMode;
110
+ /** Render scale (0.4 = 40% zoom). */
111
+ scale?: number;
112
+ /** Extra scale multiplier for unit draw size. 1 = default. */
113
+ unitScale?: number;
114
+ /** Toggle minimap overlay. */
115
+ showMinimap?: boolean;
116
+ /** Opt-in internal RAF clock. DEFAULT OFF — the LOLO state machine drives the clock. */
117
+ animate?: {
118
+ fps: number;
119
+ };
120
+ /** Show debug grid lines and coordinates. */
121
+ debug?: boolean;
122
+ /** Ratio of unit draw height to scaledFloorHeight. Default 1.5. */
123
+ spriteHeightRatio?: number;
124
+ /** Max unit draw width as a ratio of scaledTileWidth. Default 0.6. */
125
+ spriteMaxWidthRatio?: number;
126
+ /** Override for the diamond-top Y offset within the tile sprite. */
127
+ diamondTopY?: number;
128
+ /** Resolve terrain sprite URL from terrain key */
129
+ getTerrainSprite?: (terrain: string) => string | undefined;
130
+ /** Resolve feature sprite URL from feature type key */
131
+ getFeatureSprite?: (featureType: string) => string | undefined;
132
+ /** Resolve unit static sprite URL */
133
+ getUnitSprite?: (unit: IsometricUnit) => string | undefined;
134
+ /** Resolve animated sprite sheet frame for a unit */
135
+ resolveUnitFrame?: (unitId: string) => ResolvedFrame | null;
136
+ /** Additional sprite URLs to preload (e.g., effect sprites) */
137
+ effectSpriteUrls?: string[];
138
+ /** Draw canvas effects after units (canvas-specific: cannot be declarative) */
139
+ onDrawEffects?: (ctx: CanvasRenderingContext2D, animTime: number, getImage: (url: string) => HTMLImageElement | undefined) => void;
140
+ /** Player sprite URL for `side`. */
141
+ playerSprite?: Asset;
142
+ /** Platform-type → tile sprite URL map for `side`. */
143
+ tileSprites?: Record<string, Asset>;
144
+ /** Background color for `side` (when no backgroundImage). */
145
+ bgColor?: string;
146
+ /** World dimensions for `side` follow-camera clamp. */
147
+ worldWidth?: number;
148
+ worldHeight?: number;
149
+ /** Manifest mapping entity keys to resolved Asset objects (fallback resolution). */
150
+ assetManifest?: {
151
+ terrains?: Record<string, Asset>;
152
+ units?: Record<string, Asset>;
153
+ features?: Record<string, Asset>;
154
+ effects?: Record<string, Asset>;
155
+ };
156
+ }
157
+ export declare function Canvas2D({ className, isLoading, error, projection, tiles: _tilesPropRaw, units: _unitsPropRaw, features: _featuresPropRaw, effects: _effectsPropRaw, platforms, player, backgroundImage, selectedUnitId, validMoves, attackTargets, hoveredTile, tileClickEvent, unitClickEvent, tileHoverEvent, tileLeaveEvent, keyEvent, camera, scale, unitScale, showMinimap, animate, debug, spriteHeightRatio, spriteMaxWidthRatio, diamondTopY: diamondTopYProp, getTerrainSprite, getFeatureSprite, getUnitSprite, resolveUnitFrame, effectSpriteUrls, onDrawEffects, playerSprite, tileSprites, bgColor, worldWidth, worldHeight, assetManifest, }: Canvas2DProps): React.JSX.Element;
158
+ export declare namespace Canvas2D {
159
+ var displayName: string;
160
+ }
161
+ export default Canvas2D;
@@ -0,0 +1,42 @@
1
+ import * as React from 'react';
2
+ import type { EventEmit, Asset } from '@almadar/core';
3
+ import type { IconInput } from '../../../core/atoms/index';
4
+ export type ControlGridKind = 'dpad' | 'actions';
5
+ export interface ControlGridButton {
6
+ id: string;
7
+ label?: string;
8
+ icon?: IconInput;
9
+ assetUrl?: Asset;
10
+ variant?: 'primary' | 'secondary' | 'ghost' | string;
11
+ }
12
+ export type DPadDirection = 'up' | 'down' | 'left' | 'right';
13
+ export interface ControlGridProps {
14
+ kind: ControlGridKind;
15
+ /** action buttons (kind="actions") */
16
+ buttons?: ControlGridButton[];
17
+ /** Layout for kind="actions" */
18
+ layout?: 'horizontal' | 'vertical' | 'diamond';
19
+ /** Whether to include diagonal buttons (kind="dpad") */
20
+ includeDiagonals?: boolean;
21
+ /** Called when a button/direction is pressed or released */
22
+ onAction?: (id: string, pressed: boolean) => void;
23
+ /** Event-bus event emitted with `{ id, pressed }` on press/release */
24
+ actionEvent?: EventEmit<{
25
+ id: string;
26
+ pressed: boolean;
27
+ }>;
28
+ /** Called when a direction is pressed or released (kind="dpad" convenience overload) */
29
+ onDirection?: (direction: DPadDirection, pressed: boolean) => void;
30
+ /** Event-bus event emitted with `{ direction, pressed }` (kind="dpad") */
31
+ directionEvent?: EventEmit<{
32
+ direction: DPadDirection;
33
+ pressed: boolean;
34
+ }>;
35
+ size?: 'sm' | 'md' | 'lg';
36
+ disabled?: boolean;
37
+ className?: string;
38
+ }
39
+ export declare function ControlGrid({ kind, buttons, layout, includeDiagonals, onAction, actionEvent, onDirection, directionEvent, size, disabled, className, }: ControlGridProps): React.JSX.Element;
40
+ export declare namespace ControlGrid {
41
+ var displayName: string;
42
+ }
@@ -1,5 +1,6 @@
1
1
  import { type StatBadgeProps } from "./StatBadge";
2
- import type { IconInput } from "../../core/atoms";
2
+ import type { Asset } from "@almadar/core";
3
+ import type { IconInput } from "../../../core/atoms/index";
3
4
  export interface GameHudStat extends Omit<StatBadgeProps, "size"> {
4
5
  /** Data source entity name */
5
6
  source?: string;
@@ -19,6 +20,7 @@ export interface GameHudElement {
19
20
  value?: number | string;
20
21
  /** Lucide icon name or component */
21
22
  icon?: IconInput;
23
+ assetUrl?: Asset;
22
24
  /** Display format */
23
25
  format?: string;
24
26
  /** Max value (for bars/hearts) */
@@ -1,5 +1,5 @@
1
1
  import type { EventKey, EventPayload } from "@almadar/core";
2
- import { type EventBusContextType } from "../../../hooks/useEventBus";
2
+ import { type EventBusContextType } from "../../../../hooks/useEventBus";
3
3
  export type MenuOption = EventPayload & {
4
4
  /** Optional ID (generated from index if not provided) */
5
5
  id?: string;
@@ -1,8 +1,9 @@
1
- import type { EventEmit } from '@almadar/core';
2
- import type { IconInput } from '../../core/atoms';
1
+ import type { EventEmit, Asset } from '@almadar/core';
2
+ import type { IconInput } from '../../../core/atoms/index';
3
3
  export interface InventoryGridItem {
4
4
  id: string;
5
5
  icon?: IconInput;
6
+ assetUrl?: Asset;
6
7
  label?: string;
7
8
  quantity?: number;
8
9
  rarity?: 'common' | 'uncommon' | 'rare' | 'epic' | 'legendary';
@@ -1,7 +1,9 @@
1
- import type { IconInput } from '../../core/atoms';
1
+ import type { Asset } from '@almadar/core';
2
+ import type { IconInput } from '../../../core/atoms/index';
2
3
  export interface ResourceBarResource {
3
4
  /** Icon for the resource */
4
5
  icon?: IconInput;
6
+ assetUrl?: Asset;
5
7
  /** Resource name */
6
8
  label: string;
7
9
  /** Current amount */
@@ -1,4 +1,4 @@
1
- import { type IconInput } from '../../core/atoms/Icon';
1
+ import { type IconInput } from '../../../core/atoms/Icon';
2
2
  import type { Asset } from '@almadar/core';
3
3
  /**
4
4
  * StatBadge — game stat display molecule (distinct from core Badge atom).
@@ -0,0 +1,107 @@
1
+ /**
2
+ * Game 2D Components (flat)
3
+ *
4
+ * Atoms, molecules, board organisms, templates, puzzles, editor, and physics-sim.
5
+ * Dimension-agnostic DTO types/utils/hooks are re-surfaced from ../shared.
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+ export * from '../../shared/index';
10
+ export { GameCard, type GameCardProps } from '../atoms/GameCard';
11
+ export { HealthBar, type HealthBarProps } from '../atoms/HealthBar';
12
+ export { ScoreDisplay, type ScoreDisplayProps } from '../atoms/ScoreDisplay';
13
+ export { ControlButton, type ControlButtonProps } from '../atoms/ControlButton';
14
+ export { Sprite, drawSprite, type SpriteProps } from '../atoms/Sprite';
15
+ export { StateIndicator, type StateIndicatorProps, type StateStyle } from '../atoms/StateIndicator';
16
+ export { TimerDisplay, type TimerDisplayProps } from '../atoms/TimerDisplay';
17
+ export { ResourceCounter, type ResourceCounterProps } from '../atoms/ResourceCounter';
18
+ export { ItemSlot, type ItemSlotProps } from '../atoms/ItemSlot';
19
+ export { TurnIndicator, type TurnIndicatorProps } from '../atoms/TurnIndicator';
20
+ export { ComboCounter, type ComboCounterProps } from '../atoms/ComboCounter';
21
+ export { WaypointMarker, type WaypointMarkerProps } from '../atoms/WaypointMarker';
22
+ export { StatusEffect, type StatusEffectProps } from '../atoms/StatusEffect';
23
+ export { DamageNumber, type DamageNumberProps } from '../atoms/DamageNumber';
24
+ export { DialogueBubble, type DialogueBubbleProps } from '../atoms/DialogueBubble';
25
+ export { ChoiceButton, type ChoiceButtonProps } from '../atoms/ChoiceButton';
26
+ export { ActionButton, type ActionButtonProps } from '../atoms/ActionButton';
27
+ export { MiniMap, type MiniMapProps } from '../atoms/MiniMap';
28
+ export { GameIcon, type GameIconProps } from '../atoms/GameIcon';
29
+ export { ControlGrid, type ControlGridProps, type ControlGridButton, type ControlGridKind, type DPadDirection } from './ControlGrid';
30
+ export { StatBadge, type StatBadgeProps } from './StatBadge';
31
+ export { InventoryGrid, type InventoryGridProps, type InventoryGridItem } from './InventoryGrid';
32
+ export { ResourceBar, type ResourceBarProps, type ResourceBarResource } from './ResourceBar';
33
+ export { GameHud, type GameHudProps, type GameHudStat, type GameHudElement } from './GameHud';
34
+ export { GameMenu, type GameMenuProps, type MenuOption } from './GameMenu';
35
+ export { Canvas2D, type Canvas2DProps, type Projection, type CameraMode, type Platform, type SidePlayer, type TileCoord, } from './Canvas2D';
36
+ export { useUnitSpriteAtlas } from '../../shared/hooks/useUnitSpriteAtlas';
37
+ export { CanvasEffect, type CanvasEffectProps } from '../organisms/CanvasEffect';
38
+ export * from '../../shared/hooks/useCanvasEffects';
39
+ export { GameAudioProvider, GameAudioContext, useGameAudioContext, type GameAudioProviderProps, type GameAudioContextValue, } from '../../shared/providers/GameAudioProvider';
40
+ export { GameAudioToggle, type GameAudioToggleProps, } from '../atoms/GameAudioToggle';
41
+ export { useGameAudio, type AudioManifest, type SoundEntry, type GameAudioControls, type UseGameAudioOptions, } from '../../shared/hooks/useGameAudio';
42
+ export { useCamera } from '../../shared/hooks/useCamera';
43
+ export { BattleBoard, type BattleBoardProps, type BattlePhase, type BattleSlotContext, } from '../organisms/BattleBoard';
44
+ export { UncontrolledBattleBoard, type UncontrolledBattleBoardProps, } from '../organisms/UncontrolledBattleBoard';
45
+ export { useBattleState, type BattleStateEventConfig, type BattleStateCallbacks, type BattleStateResult, } from '../../shared/hooks/useBattleState';
46
+ export { WorldMapBoard, type WorldMapBoardProps, type WorldMapSlotContext, } from '../organisms/WorldMapBoard';
47
+ export { CastleBoard, type CastleBoardProps, type CastleSlotContext, } from '../organisms/CastleBoard';
48
+ export { PlatformerBoard, type PlatformerBoardProps, } from '../organisms/PlatformerBoard';
49
+ export { TowerDefenseBoard, type TowerDefenseBoardProps, } from '../organisms/TowerDefenseBoard';
50
+ export { RoguelikeBoard, type RoguelikeBoardProps, } from '../organisms/RoguelikeBoard';
51
+ export { TopDownShooterBoard, type TopDownShooterBoardProps, } from '../organisms/TopDownShooterBoard';
52
+ export { CityBuilderBoard, type CityBuilderBoardProps, } from '../organisms/CityBuilderBoard';
53
+ export { VisualNovelBoard, type VisualNovelBoardProps, type VisualNovelNode, type VisualNovelChoice, } from '../organisms/VisualNovelBoard';
54
+ export { CardBattlerBoard, type CardBattlerBoardProps, type CardBattlerCard, } from '../organisms/CardBattlerBoard';
55
+ export { HexStrategyBoard, type HexStrategyBoardProps, } from '../organisms/HexStrategyBoard';
56
+ export { RacingBoard, type RacingBoardProps } from '../organisms/RacingBoard';
57
+ export { TanksBoard, type TanksBoardProps } from '../organisms/TanksBoard';
58
+ export { SpaceShmupBoard, type SpaceShmupBoardProps } from '../organisms/SpaceShmupBoard';
59
+ export { SportsBoard, type SportsBoardProps } from '../organisms/SportsBoard';
60
+ export { SokobanBoard, type SokobanBoardProps } from '../organisms/SokobanBoard';
61
+ export { BoardgameBoard, type BoardgameBoardProps } from '../organisms/BoardgameBoard';
62
+ export { PirateBoard, type PirateBoardProps } from '../organisms/PirateBoard';
63
+ export { PinballBoard, type PinballBoardProps } from '../organisms/PinballBoard';
64
+ export { FishingBoard, type FishingBoardProps } from '../organisms/FishingBoard';
65
+ export { MatchPuzzleBoard, type MatchPuzzleBoardProps } from '../organisms/MatchPuzzleBoard';
66
+ export { HolidayRunnerBoard, type HolidayRunnerBoardProps } from '../organisms/HolidayRunnerBoard';
67
+ export { MinigolfBoard, type MinigolfBoardProps } from '../organisms/MinigolfBoard';
68
+ export { SpaceStationBoard, type SpaceStationBoardProps } from '../organisms/SpaceStationBoard';
69
+ export { TraitStateViewer, type TraitStateViewerProps, type TraitStateMachineDefinition, type TraitTransition, } from '../organisms/TraitStateViewer';
70
+ export { TraitSlot, type TraitSlotProps, type SlotItemData, } from '../organisms/TraitSlot';
71
+ 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';
72
+ export { ActionTile, type ActionTileProps } from '../organisms/ActionTile';
73
+ export { ActionPalette, type ActionPaletteProps } from '../organisms/ActionPalette';
74
+ export { SequenceBar, type SequenceBarProps } from '../organisms/SequenceBar';
75
+ export { SequencerBoard, type SequencerBoardProps } from '../organisms/SequencerBoard';
76
+ export { RuleEditor, type RuleEditorProps, type RuleDefinition } from '../organisms/RuleEditor';
77
+ export { EventLog, type EventLogProps, type EventLogEntry } from '../organisms/EventLog';
78
+ export { ObjectRulePanel, type ObjectRulePanelProps } from '../organisms/ObjectRulePanel';
79
+ export { EventHandlerBoard, type EventHandlerBoardProps } from '../organisms/EventHandlerBoard';
80
+ export * from '../../shared/lib/puzzleObject';
81
+ export { StateNode, type StateNodeProps } from '../organisms/StateNode';
82
+ export { TransitionArrow, type TransitionArrowProps } from '../organisms/TransitionArrow';
83
+ export { VariablePanel, type VariablePanelProps } from '../organisms/VariablePanel';
84
+ export { StateJsonView, type StateJsonViewProps } from '../organisms/StateJsonView';
85
+ export { StateArchitectBoard, type StateArchitectBoardProps, type StateArchitectTransition, type TestCase, } from '../organisms/StateArchitectBoard';
86
+ export { SimulatorBoard, type SimulatorBoardProps, type SimulatorParameter } from '../organisms/SimulatorBoard';
87
+ export { ClassifierBoard, type ClassifierBoardProps, type ClassifierItem, type ClassifierCategory } from '../organisms/ClassifierBoard';
88
+ export { BuilderBoard, type BuilderBoardProps, type BuilderComponent, type BuilderSlot } from '../organisms/BuilderBoard';
89
+ export { DebuggerBoard, type DebuggerBoardProps, type DebuggerLine } from '../organisms/DebuggerBoard';
90
+ export { NegotiatorBoard, type NegotiatorBoardProps, type NegotiatorAction, type PayoffEntry } from '../organisms/NegotiatorBoard';
91
+ export { SimulationCanvas, type SimulationCanvasProps } from '../organisms/SimulationCanvas';
92
+ export { SimulationControls, type SimulationControlsProps } from '../organisms/SimulationControls';
93
+ export { SimulationGraph, type SimulationGraphProps, type MeasurementPoint } from '../organisms/SimulationGraph';
94
+ export type { PhysicsPreset, PhysicsBody, PhysicsConstraint } from '../../shared/lib/physicsTypes';
95
+ export { projectileMotion, pendulum, springOscillator, ALL_PRESETS } from '../../shared/lib/physicsPresets';
96
+ export { GameTemplate, type GameTemplateProps } from '../templates/GameTemplate';
97
+ export { GameShell, type GameShellProps } from '../templates/GameShell';
98
+ export { BattleTemplate, type BattleTemplateProps } from '../templates/BattleTemplate';
99
+ export { CastleTemplate, type CastleTemplateProps } from '../templates/CastleTemplate';
100
+ export { WorldMapTemplate, type WorldMapTemplateProps } from '../templates/WorldMapTemplate';
101
+ export { PlatformerTemplate, type PlatformerTemplateProps } from '../templates/PlatformerTemplate';
102
+ export { TowerDefenseTemplate, type TowerDefenseTemplateProps } from '../templates/TowerDefenseTemplate';
103
+ export { RoguelikeTemplate, type RoguelikeTemplateProps } from '../templates/RoguelikeTemplate';
104
+ export { TopDownShooterTemplate, type TopDownShooterTemplateProps } from '../templates/TopDownShooterTemplate';
105
+ export { CityBuilderTemplate, type CityBuilderTemplateProps } from '../templates/CityBuilderTemplate';
106
+ export { VisualNovelTemplate, type VisualNovelTemplateProps } from '../templates/VisualNovelTemplate';
107
+ export { CardBattlerTemplate, type CardBattlerTemplateProps } from '../templates/CardBattlerTemplate';
@@ -7,7 +7,7 @@
7
7
  * @packageDocumentation
8
8
  */
9
9
  import React from 'react';
10
- import type { SlotItemData } from '../../TraitSlot';
10
+ import type { SlotItemData } from './TraitSlot';
11
11
  export interface ActionPaletteProps {
12
12
  /** Available actions */
13
13
  actions: SlotItemData[];
@@ -8,8 +8,8 @@
8
8
  * @packageDocumentation
9
9
  */
10
10
  import React from 'react';
11
- import type { DisplayStateProps } from '../../../../core/organisms/types';
12
- import type { SlotItemData } from '../../TraitSlot';
11
+ import type { DisplayStateProps } from '../../../core/organisms/types';
12
+ import type { SlotItemData } from './TraitSlot';
13
13
  export interface ActionTileProps extends DisplayStateProps {
14
14
  /** The action data */
15
15
  action: SlotItemData;
@@ -19,9 +19,9 @@
19
19
  */
20
20
  import React from 'react';
21
21
  import type { Asset, AssetUrl, EventEmit, EntityRow } from '@almadar/core';
22
- import type { DisplayStateProps } from '../../core/organisms/types';
23
- import type { IsometricTile, IsometricUnit, IsometricFeature } from './types/isometric';
24
- import type { ResolvedFrame } from './types/spriteAnimation';
22
+ import type { DisplayStateProps } from '../../../core/organisms/types';
23
+ import type { IsometricTile, IsometricUnit, IsometricFeature } from '../../shared/isometricTypes';
24
+ import type { ResolvedFrame } from '../../shared/spriteAnimationTypes';
25
25
  /** Battle phases an encounter walks through (UI value enum — not entity data). */
26
26
  export type BattlePhase = 'observation' | 'selection' | 'movement' | 'action' | 'enemy_turn' | 'game_over';
27
27
  /** Context exposed to render-prop slots. Carries coerced entity rows + UI helpers. */
@@ -52,6 +52,7 @@ type BattleAssetManifest = {
52
52
  units?: Record<string, Asset>;
53
53
  features?: Record<string, Asset>;
54
54
  effects?: Record<string, Asset>;
55
+ ui?: Record<string, Asset>;
55
56
  };
56
57
  export interface BattleBoardProps extends DisplayStateProps {
57
58
  /** Entity (single board state) containing all board data */
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { AssetUrl, EventEmit } from '@almadar/core';
3
- import type { IsometricTile, IsometricUnit, IsometricFeature } from './types/isometric';
4
- import type { DisplayStateProps } from '../../core/organisms/types';
5
- import type { IsometricCanvasProps } from '../molecules/IsometricCanvas';
3
+ import type { IsometricTile, IsometricUnit, IsometricFeature } from '../../shared/isometricTypes';
4
+ import type { DisplayStateProps } from '../../../core/organisms/types';
5
+ import type { Canvas2DProps } from '../molecules/Canvas2D';
6
6
  export interface BoardgameBoardProps extends DisplayStateProps {
7
7
  /** Board squares (flat top-down grid tiles) */
8
8
  tiles?: IsometricTile[];
@@ -10,8 +10,8 @@ export interface BoardgameBoardProps extends DisplayStateProps {
10
10
  units?: IsometricUnit[];
11
11
  /** Features (markers, structures, etc.) on the board */
12
12
  features?: IsometricFeature[];
13
- /** Asset sprite manifest (same shape as IsometricCanvas.assetManifest) */
14
- assetManifest?: IsometricCanvasProps['assetManifest'];
13
+ /** Asset sprite manifest (same shape as Canvas2D.assetManifest) */
14
+ assetManifest?: Canvas2DProps['assetManifest'];
15
15
  /** Base URL prepended to asset paths */
16
16
  assetBaseUrl?: AssetUrl;
17
17
  /** Render scale */
@@ -9,8 +9,8 @@
9
9
  * Events emitted via completeEvent (default UI:PUZZLE_COMPLETE).
10
10
  */
11
11
  import React from 'react';
12
- import type { AssetUrl, EventEmit, EntityRow } from '@almadar/core';
13
- import type { DisplayStateProps } from '../../../../core/organisms/types';
12
+ import type { AssetUrl, EventEmit, EntityRow, Asset } from '@almadar/core';
13
+ import type { DisplayStateProps } from '../../../core/organisms/types';
14
14
  /** A draggable build component (UI value DTO read off the entity). */
15
15
  export interface BuilderComponent {
16
16
  id: string;
@@ -49,8 +49,12 @@ export interface BuilderBoardProps extends DisplayStateProps {
49
49
  checkEvent?: EventEmit<Record<string, never>>;
50
50
  /** Emits UI:{playAgainEvent} with {} on play again / reset. */
51
51
  playAgainEvent?: EventEmit<Record<string, never>>;
52
+ /** Optional per-semantic-key asset overrides for icons (correct/incorrect/reset/build). */
53
+ assetManifest?: {
54
+ ui?: Record<string, Asset>;
55
+ };
52
56
  }
53
- export declare function BuilderBoard({ entity, completeEvent, placeEvent, checkEvent, playAgainEvent, className, }: BuilderBoardProps): React.JSX.Element | null;
57
+ export declare function BuilderBoard({ entity, completeEvent, placeEvent, checkEvent, playAgainEvent, assetManifest, className, }: BuilderBoardProps): React.JSX.Element | null;
54
58
  export declare namespace BuilderBoard {
55
59
  var displayName: string;
56
60
  }
@@ -25,10 +25,10 @@
25
25
  */
26
26
  import * as React from 'react';
27
27
  import type { AssetUrl, EventEmit } from '@almadar/core';
28
- import type { CombatActionType, EffectAssetManifest } from './types/effects';
29
- import type { UiError } from '../../core/atoms/types';
30
- export type { CombatActionType } from './types/effects';
31
- export type { EffectAssetManifest } from './types/effects';
28
+ import type { CombatActionType, EffectAssetManifest } from '../../shared/effects';
29
+ import type { UiError } from '../../../core/atoms/types';
30
+ export type { CombatActionType } from '../../shared/effects';
31
+ export type { EffectAssetManifest } from '../../shared/effects';
32
32
  export interface CanvasEffectProps {
33
33
  /** The type of combat action to visualise */
34
34
  actionType: CombatActionType;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { Asset, EventEmit, EntityRow } from '@almadar/core';
3
- import type { DisplayStateProps } from '../../core/organisms/types';
3
+ import type { DisplayStateProps } from '../../../core/organisms/types';
4
4
  /** Manifest of per-card sprite map (UI value DTO). */
5
5
  type CardBattlerAssetManifest = {
6
6
  cards?: Record<string, Asset>;
@@ -14,12 +14,13 @@
14
14
  */
15
15
  import React from 'react';
16
16
  import type { Asset, EventEmit, EntityRow } from '@almadar/core';
17
- import type { IsometricTile, IsometricUnit, IsometricFeature } from './types/isometric';
17
+ import type { IsometricTile, IsometricUnit, IsometricFeature } from '../../shared/isometricTypes';
18
18
  /** Manifest of per-kind sprite maps (UI value DTO). */
19
19
  type CastleAssetManifest = {
20
20
  terrains?: Record<string, Asset>;
21
21
  units?: Record<string, Asset>;
22
22
  features?: Record<string, Asset>;
23
+ ui?: Record<string, Asset>;
23
24
  };
24
25
  /** Context exposed to render-prop slots */
25
26
  export type CastleSlotContext = {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { Asset, EventEmit, EntityRow } from '@almadar/core';
3
- import type { DisplayStateProps } from '../../core/organisms/types';
3
+ import type { DisplayStateProps } from '../../../core/organisms/types';
4
4
  /** Manifest of per-kind sprite maps (UI value DTO). */
5
5
  type CityBuilderAssetManifest = {
6
6
  terrains?: Record<string, Asset>;
@@ -15,8 +15,8 @@
15
15
  * from those; otherwise it self-manages with local state.
16
16
  */
17
17
  import React from 'react';
18
- import type { AssetUrl, EventEmit, EntityRow } from '@almadar/core';
19
- import type { DisplayStateProps } from '../../../../core/organisms/types';
18
+ import type { AssetUrl, EventEmit, EntityRow, Asset } from '@almadar/core';
19
+ import type { DisplayStateProps } from '../../../core/organisms/types';
20
20
  /** A sortable item (UI value DTO read off the entity). */
21
21
  export interface ClassifierItem {
22
22
  id: string;
@@ -55,8 +55,12 @@ export interface ClassifierBoardProps extends DisplayStateProps {
55
55
  checkEvent?: EventEmit<Record<string, never>>;
56
56
  /** Emits UI:{playAgainEvent} with {} on reset / play again. */
57
57
  playAgainEvent?: EventEmit<Record<string, never>>;
58
+ /** Optional per-semantic-key asset overrides for icons (correct/incorrect/reset/send). */
59
+ assetManifest?: {
60
+ ui?: Record<string, Asset>;
61
+ };
58
62
  }
59
- export declare function ClassifierBoard({ entity, completeEvent, assignEvent, checkEvent, playAgainEvent, className, }: ClassifierBoardProps): React.JSX.Element | null;
63
+ export declare function ClassifierBoard({ entity, completeEvent, assignEvent, checkEvent, playAgainEvent, assetManifest, className, }: ClassifierBoardProps): React.JSX.Element | null;
60
64
  export declare namespace ClassifierBoard {
61
65
  var displayName: string;
62
66
  }
@@ -9,8 +9,8 @@
9
9
  * Events emitted via completeEvent (default UI:PUZZLE_COMPLETE).
10
10
  */
11
11
  import React from 'react';
12
- import type { EventEmit, EntityRow, EntityWith } from '@almadar/core';
13
- import type { DisplayStateProps } from '../../../../core/organisms/types';
12
+ import type { EventEmit, EntityRow, EntityWith, Asset } from '@almadar/core';
13
+ import type { DisplayStateProps } from '../../../core/organisms/types';
14
14
  /** A reviewable code line (UI value DTO read off the entity). */
15
15
  export interface DebuggerLine {
16
16
  id: string;
@@ -50,8 +50,12 @@ export interface DebuggerBoardProps extends DisplayStateProps {
50
50
  checkEvent?: EventEmit<Record<string, never>>;
51
51
  /** Emits UI:{playAgainEvent} with {} on play again / reset. */
52
52
  playAgainEvent?: EventEmit<Record<string, never>>;
53
+ /** Optional per-semantic-key asset overrides for icons (correct/incorrect/reset/bug/send). */
54
+ assetManifest?: {
55
+ ui?: Record<string, Asset>;
56
+ };
53
57
  }
54
- export declare function DebuggerBoard({ entity, completeEvent, toggleFlagEvent, checkEvent, playAgainEvent, className, }: DebuggerBoardProps): React.JSX.Element | null;
58
+ export declare function DebuggerBoard({ entity, completeEvent, toggleFlagEvent, checkEvent, playAgainEvent, assetManifest, className, }: DebuggerBoardProps): React.JSX.Element | null;
55
59
  export declare namespace DebuggerBoard {
56
60
  var displayName: string;
57
61
  }
@@ -12,7 +12,7 @@
12
12
  */
13
13
  import React from 'react';
14
14
  import type { EventEmit, EntityRow } from '@almadar/core';
15
- import type { DisplayStateProps } from '../../../../core/organisms/types';
15
+ import type { DisplayStateProps } from '../../../core/organisms/types';
16
16
  import type { RuleDefinition } from './RuleEditor';
17
17
  export interface EventHandlerBoardProps extends DisplayStateProps {
18
18
  /** Puzzle board-state entity (single row or array). The board reads
@@ -1,9 +1,19 @@
1
1
  import React from 'react';
2
2
  import type { Asset, EventEmit } from '@almadar/core';
3
- import type { DisplayStateProps } from '../../core/organisms/types';
3
+ import type { DisplayStateProps } from '../../../core/organisms/types';
4
+ /** Asset manifest shape for FishingBoard. */
5
+ type FishingAssetManifest = {
6
+ terrains?: Record<string, Asset>;
7
+ units?: Record<string, Asset>;
8
+ features?: Record<string, Asset>;
9
+ effects?: Record<string, Asset>;
10
+ ui?: Record<string, Asset>;
11
+ };
4
12
  export interface FishingBoardProps extends DisplayStateProps {
5
13
  /** Background image asset for the fishing scene */
6
14
  backgroundImage?: Asset;
15
+ /** Asset sprite manifest */
16
+ assetManifest?: FishingAssetManifest;
7
17
  /** Render scale */
8
18
  scale?: number;
9
19
  /** Show minimap overlay */
@@ -24,7 +34,7 @@ export interface FishingBoardProps extends DisplayStateProps {
24
34
  unitId: string;
25
35
  }>;
26
36
  }
27
- export declare function FishingBoard({ backgroundImage, scale, showMinimap, enableCamera, width, height, isLoading, error, className, }: FishingBoardProps): React.ReactElement;
37
+ export declare function FishingBoard({ backgroundImage, assetManifest, scale, showMinimap, enableCamera, tileClickEvent, unitClickEvent, isLoading, error, className, }: FishingBoardProps): React.ReactElement;
28
38
  export declare namespace FishingBoard {
29
39
  var displayName: string;
30
40
  }