@almadar/ui 2.13.3 → 2.15.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 (420) hide show
  1. package/dist/{chunk-UNDQO6DL.js → chunk-4KP6IZEQ.js} +3 -3
  2. package/dist/chunk-4N3BAPDB.js +1667 -0
  3. package/dist/{chunk-PERGHHON.js → chunk-IRIGCHP4.js} +2 -12
  4. package/dist/{chunk-Y7IHEYYE.js → chunk-QU2X55WH.js} +11 -1
  5. package/dist/{chunk-4ZBSL37D.js → chunk-XL7WB2O5.js} +415 -58
  6. package/dist/{chunk-MSLMORZK.js → chunk-YPY74G7F.js} +13434 -2264
  7. package/dist/components/atoms/AnimatedCounter.d.ts +20 -0
  8. package/dist/components/atoms/Avatar.d.ts +58 -0
  9. package/dist/components/atoms/Badge.d.ts +14 -0
  10. package/dist/components/atoms/Box.d.ts +57 -0
  11. package/dist/components/atoms/Button.d.ts +24 -0
  12. package/dist/components/atoms/Card.d.ts +18 -0
  13. package/dist/components/atoms/Center.d.ts +33 -0
  14. package/dist/components/atoms/Checkbox.d.ts +9 -0
  15. package/dist/components/atoms/ConditionalWrapper.d.ts +68 -0
  16. package/dist/components/atoms/ConfettiEffect.d.ts +19 -0
  17. package/dist/components/atoms/DayCell.d.ts +21 -0
  18. package/dist/components/atoms/Divider.d.ts +29 -0
  19. package/dist/components/atoms/FlipContainer.d.ts +21 -0
  20. package/dist/components/atoms/Icon.d.ts +39 -0
  21. package/dist/components/atoms/InfiniteScrollSentinel.d.ts +23 -0
  22. package/dist/components/atoms/Input.d.ts +26 -0
  23. package/dist/components/atoms/Label.d.ts +5 -0
  24. package/dist/components/atoms/LawReferenceTooltip.d.ts +48 -0
  25. package/dist/components/atoms/Overlay.d.ts +16 -0
  26. package/dist/components/atoms/ProgressBar.d.ts +63 -0
  27. package/dist/components/atoms/Radio.d.ts +26 -0
  28. package/dist/components/atoms/RangeSlider.d.ts +31 -0
  29. package/dist/components/atoms/Select.d.ts +12 -0
  30. package/dist/components/atoms/Spacer.d.ts +25 -0
  31. package/dist/components/atoms/Spinner.d.ts +6 -0
  32. package/dist/components/atoms/Stack.d.ts +66 -0
  33. package/dist/components/atoms/StatusDot.d.ts +14 -0
  34. package/dist/components/atoms/Switch.d.ts +12 -0
  35. package/dist/components/atoms/TextHighlight.d.ts +53 -0
  36. package/dist/components/atoms/Textarea.d.ts +5 -0
  37. package/dist/components/atoms/ThemeSelector.d.ts +21 -0
  38. package/dist/components/atoms/ThemeToggle.d.ts +33 -0
  39. package/dist/components/atoms/TimeSlotCell.d.ts +23 -0
  40. package/dist/components/atoms/TrendIndicator.d.ts +18 -0
  41. package/dist/components/atoms/TypewriterText.d.ts +20 -0
  42. package/dist/components/atoms/Typography.d.ts +57 -0
  43. package/dist/components/atoms/game/ActionButton.d.ts +25 -0
  44. package/dist/components/atoms/game/ChoiceButton.d.ts +18 -0
  45. package/dist/components/atoms/game/ComboCounter.d.ts +16 -0
  46. package/dist/components/atoms/game/ControlButton.d.ts +31 -0
  47. package/dist/components/atoms/game/DamageNumber.d.ts +14 -0
  48. package/dist/components/atoms/game/DialogueBubble.d.ts +16 -0
  49. package/dist/components/atoms/game/HealthBar.d.ts +18 -0
  50. package/dist/components/atoms/game/ItemSlot.d.ts +25 -0
  51. package/dist/components/atoms/game/MiniMap.d.ts +36 -0
  52. package/dist/components/atoms/game/ResourceCounter.d.ts +21 -0
  53. package/dist/components/atoms/game/ScoreDisplay.d.ts +21 -0
  54. package/dist/components/atoms/game/Sprite.d.ts +63 -0
  55. package/dist/components/atoms/game/StateIndicator.d.ts +31 -0
  56. package/dist/components/atoms/game/StatusEffect.d.ts +21 -0
  57. package/dist/components/atoms/game/TimerDisplay.d.ts +18 -0
  58. package/dist/components/atoms/game/TurnIndicator.d.ts +18 -0
  59. package/dist/components/atoms/game/WaypointMarker.d.ts +19 -0
  60. package/dist/components/atoms/game/XPBar.d.ts +20 -0
  61. package/dist/components/atoms/game/index.d.ts +25 -0
  62. package/dist/components/atoms/index.d.ts +37 -0
  63. package/dist/components/index.css +508 -0
  64. package/dist/components/index.d.ts +6 -9788
  65. package/dist/components/index.js +769 -11187
  66. package/dist/components/molecules/Accordion.d.ts +67 -0
  67. package/dist/components/molecules/Alert.d.ts +24 -0
  68. package/dist/components/molecules/Breadcrumb.d.ts +55 -0
  69. package/dist/components/molecules/ButtonGroup.d.ts +67 -0
  70. package/dist/components/molecules/CalendarGrid.d.ts +43 -0
  71. package/dist/components/molecules/Card.d.ts +56 -0
  72. package/dist/components/molecules/Carousel.d.ts +31 -0
  73. package/dist/components/molecules/ChartLegend.d.ts +20 -0
  74. package/dist/components/molecules/Container.d.ts +30 -0
  75. package/dist/components/molecules/DataGrid.d.ts +75 -0
  76. package/dist/components/molecules/DataList.d.ts +95 -0
  77. package/dist/components/molecules/DateRangeSelector.d.ts +22 -0
  78. package/dist/components/molecules/Drawer.d.ts +46 -0
  79. package/dist/components/molecules/EmptyState.d.ts +25 -0
  80. package/dist/components/molecules/ErrorBoundary.d.ts +55 -0
  81. package/dist/components/molecules/ErrorState.d.ts +13 -0
  82. package/dist/components/molecules/FilterGroup.d.ts +54 -0
  83. package/dist/components/molecules/Flex.d.ts +43 -0
  84. package/dist/components/molecules/FlipCard.d.ts +25 -0
  85. package/dist/components/molecules/FloatingActionButton.d.ts +69 -0
  86. package/dist/components/molecules/FormField.d.ts +16 -0
  87. package/dist/components/molecules/FormSectionHeader.d.ts +30 -0
  88. package/dist/components/molecules/GraphView.d.ts +45 -0
  89. package/dist/components/molecules/Grid.d.ts +54 -0
  90. package/dist/components/molecules/InputGroup.d.ts +24 -0
  91. package/dist/components/molecules/Lightbox.d.ts +25 -0
  92. package/dist/components/molecules/LineChart.d.ts +33 -0
  93. package/dist/components/molecules/LoadingState.d.ts +7 -0
  94. package/dist/components/molecules/MapView.d.ts +40 -0
  95. package/dist/components/molecules/Menu.d.ts +40 -0
  96. package/dist/components/molecules/Meter.d.ts +51 -0
  97. package/dist/components/molecules/Modal.d.ts +28 -0
  98. package/dist/components/molecules/NumberStepper.d.ts +27 -0
  99. package/dist/components/molecules/Pagination.d.ts +66 -0
  100. package/dist/components/molecules/Popover.d.ts +39 -0
  101. package/dist/components/molecules/ProgressDots.d.ts +24 -0
  102. package/dist/components/molecules/PullToRefresh.d.ts +21 -0
  103. package/dist/components/molecules/QuizBlock.d.ts +20 -0
  104. package/dist/components/molecules/RelationSelect.d.ts +48 -0
  105. package/dist/components/molecules/RepeatableFormSection.d.ts +58 -0
  106. package/dist/components/molecules/ScaledDiagram.d.ts +20 -0
  107. package/dist/components/molecules/SearchInput.d.ts +60 -0
  108. package/dist/components/molecules/SidePanel.d.ts +47 -0
  109. package/dist/components/molecules/SimpleGrid.d.ts +27 -0
  110. package/dist/components/molecules/Skeleton.d.ts +35 -0
  111. package/dist/components/molecules/SortableList.d.ts +17 -0
  112. package/dist/components/molecules/StarRating.d.ts +26 -0
  113. package/dist/components/molecules/StatDisplay.d.ts +37 -0
  114. package/dist/components/molecules/SwipeableRow.d.ts +24 -0
  115. package/dist/components/molecules/Tabs.d.ts +45 -0
  116. package/dist/components/molecules/Toast.d.ts +35 -0
  117. package/dist/components/molecules/Tooltip.d.ts +25 -0
  118. package/dist/components/molecules/UploadDropZone.d.ts +26 -0
  119. package/dist/components/molecules/ViolationAlert.d.ts +49 -0
  120. package/dist/components/molecules/WizardNavigation.d.ts +51 -0
  121. package/dist/components/molecules/WizardProgress.d.ts +42 -0
  122. package/dist/components/molecules/game/ActionButtons.d.ts +34 -0
  123. package/dist/components/molecules/game/CombatLog.d.ts +30 -0
  124. package/dist/components/molecules/game/CraftingRecipe.d.ts +33 -0
  125. package/dist/components/molecules/game/DPad.d.ts +22 -0
  126. package/dist/components/molecules/game/DialogueBox.d.ts +78 -0
  127. package/dist/components/molecules/game/EnemyPlate.d.ts +27 -0
  128. package/dist/components/molecules/game/GameCanvas2D.d.ts +18 -0
  129. package/dist/components/molecules/game/GameHud.d.ts +49 -0
  130. package/dist/components/molecules/game/GameMenu.d.ts +43 -0
  131. package/dist/components/molecules/game/GameOverScreen.d.ts +56 -0
  132. package/dist/components/molecules/game/HealthPanel.d.ts +27 -0
  133. package/dist/components/molecules/game/InventoryGrid.d.ts +30 -0
  134. package/dist/components/molecules/game/InventoryPanel.d.ts +67 -0
  135. package/dist/components/molecules/game/IsometricCanvas.d.ts +127 -0
  136. package/dist/components/molecules/game/PlatformerCanvas.d.ts +52 -0
  137. package/dist/components/molecules/game/PowerupSlots.d.ts +23 -0
  138. package/dist/components/molecules/game/QuestTracker.d.ts +20 -0
  139. package/dist/components/molecules/game/ResourceBar.d.ts +23 -0
  140. package/dist/components/molecules/game/ScoreBoard.d.ts +18 -0
  141. package/dist/components/molecules/game/StatBadge.d.ts +27 -0
  142. package/dist/components/molecules/game/TurnPanel.d.ts +29 -0
  143. package/dist/components/molecules/game/UnitCommandBar.d.ts +25 -0
  144. package/dist/components/molecules/game/index.d.ts +30 -0
  145. package/dist/components/molecules/index.d.ts +59 -0
  146. package/dist/components/molecules/markdown/CodeBlock.d.ts +25 -0
  147. package/dist/components/molecules/markdown/MarkdownContent.d.ts +26 -0
  148. package/dist/components/molecules/markdown/index.d.ts +2 -0
  149. package/dist/components/organisms/CardGrid.d.ts +80 -0
  150. package/dist/components/organisms/Chart.d.ts +59 -0
  151. package/dist/components/organisms/CodeViewer.d.ts +67 -0
  152. package/dist/components/organisms/ComponentPatterns.d.ts +453 -0
  153. package/dist/components/organisms/ConfirmDialog.d.ts +50 -0
  154. package/dist/components/organisms/ContentRenderer.d.ts +23 -0
  155. package/dist/components/organisms/CustomPattern.d.ts +104 -0
  156. package/dist/components/organisms/DataTable.d.ts +67 -0
  157. package/dist/components/organisms/DetailPanel.d.ts +78 -0
  158. package/dist/components/organisms/DocumentViewer.d.ts +60 -0
  159. package/dist/components/organisms/DrawerSlot.d.ts +39 -0
  160. package/dist/components/organisms/Form.d.ts +206 -0
  161. package/dist/components/organisms/FormSection.d.ts +41 -0
  162. package/dist/components/organisms/GraphCanvas.d.ts +69 -0
  163. package/dist/components/organisms/Header.d.ts +110 -0
  164. package/dist/components/organisms/JazariStateMachine.d.ts +60 -0
  165. package/dist/components/organisms/LayoutPatterns.d.ts +181 -0
  166. package/dist/components/organisms/List.d.ts +78 -0
  167. package/dist/components/organisms/MasterDetail.d.ts +32 -0
  168. package/dist/components/organisms/MediaGallery.d.ts +57 -0
  169. package/dist/components/organisms/Meter.d.ts +58 -0
  170. package/dist/components/organisms/ModalSlot.d.ts +35 -0
  171. package/dist/components/organisms/Navigation.d.ts +68 -0
  172. package/dist/components/organisms/NotifyListener.d.ts +15 -0
  173. package/dist/components/organisms/OrbitalVisualization.d.ts +48 -0
  174. package/dist/components/organisms/PageHeader.d.ts +59 -0
  175. package/dist/components/organisms/Section.d.ts +44 -0
  176. package/dist/components/organisms/Sidebar.d.ts +63 -0
  177. package/dist/components/organisms/SignaturePad.d.ts +44 -0
  178. package/dist/components/organisms/Split.d.ts +42 -0
  179. package/dist/components/organisms/StatCard.d.ts +62 -0
  180. package/dist/components/organisms/StateMachineView.d.ts +36 -0
  181. package/dist/components/organisms/Table.d.ts +99 -0
  182. package/dist/components/organisms/Timeline.d.ts +49 -0
  183. package/dist/components/organisms/ToastSlot.d.ts +38 -0
  184. package/dist/components/organisms/UISlotRenderer.d.ts +112 -0
  185. package/dist/components/organisms/WizardContainer.d.ts +160 -0
  186. package/dist/components/organisms/book/BookChapterView.d.ts +17 -0
  187. package/dist/components/organisms/book/BookCoverPage.d.ts +20 -0
  188. package/dist/components/organisms/book/BookNavBar.d.ts +19 -0
  189. package/dist/components/organisms/book/BookTableOfContents.d.ts +18 -0
  190. package/dist/components/organisms/book/BookViewer.d.ts +28 -0
  191. package/dist/components/organisms/book/index.d.ts +7 -0
  192. package/dist/components/organisms/book/types.d.ts +77 -0
  193. package/dist/components/organisms/component-registry.generated.d.ts +9 -0
  194. package/dist/components/organisms/debug/RuntimeDebugger.d.ts +19 -0
  195. package/dist/components/organisms/debug/hooks/useDebugData.d.ts +25 -0
  196. package/dist/components/organisms/debug/index.d.ts +13 -0
  197. package/dist/components/organisms/debug/tabs/EntitiesTab.d.ts +13 -0
  198. package/dist/components/organisms/debug/tabs/EventDispatcherTab.d.ts +16 -0
  199. package/dist/components/organisms/debug/tabs/EventFlowTab.d.ts +9 -0
  200. package/dist/components/organisms/debug/tabs/GuardsPanel.d.ts +9 -0
  201. package/dist/components/organisms/debug/tabs/ServerBridgeTab.d.ts +9 -0
  202. package/dist/components/organisms/debug/tabs/TicksTab.d.ts +13 -0
  203. package/dist/components/organisms/debug/tabs/TraitsTab.d.ts +13 -0
  204. package/dist/components/organisms/debug/tabs/TransitionTimeline.d.ts +9 -0
  205. package/dist/components/organisms/debug/tabs/VerificationTab.d.ts +10 -0
  206. package/dist/components/organisms/game/BattleBoard.d.ts +175 -0
  207. package/dist/components/organisms/game/CanvasEffect.d.ts +68 -0
  208. package/dist/components/organisms/game/CastleBoard.d.ts +85 -0
  209. package/dist/components/organisms/game/CombatLog.d.ts +2 -0
  210. package/dist/components/organisms/game/DialogueBox.d.ts +2 -0
  211. package/dist/components/organisms/game/GameAudioProvider.d.ts +47 -0
  212. package/dist/components/organisms/game/GameAudioToggle.d.ts +28 -0
  213. package/dist/components/organisms/game/GameCanvas3D.d.ts +181 -0
  214. package/dist/components/organisms/game/GameHud.d.ts +2 -0
  215. package/dist/components/organisms/game/GameMenu.d.ts +2 -0
  216. package/dist/components/organisms/game/GameOverScreen.d.ts +2 -0
  217. package/dist/components/organisms/game/InventoryPanel.d.ts +2 -0
  218. package/dist/components/organisms/game/IsometricCanvas.d.ts +3 -0
  219. package/dist/components/organisms/game/PlatformerCanvas.d.ts +2 -0
  220. package/dist/components/organisms/game/TraitSlot.d.ts +90 -0
  221. package/dist/components/organisms/game/TraitStateViewer.d.ts +53 -0
  222. package/dist/components/organisms/game/UncontrolledBattleBoard.d.ts +26 -0
  223. package/dist/components/organisms/game/WorldMapBoard.d.ts +156 -0
  224. package/dist/components/organisms/game/editor/editorUtils.d.ts +109 -0
  225. package/dist/components/organisms/game/editor/index.d.ts +9 -0
  226. package/dist/components/organisms/game/hooks/useBattleState.d.ts +35 -0
  227. package/dist/components/organisms/game/hooks/useCamera.d.ts +41 -0
  228. package/dist/components/organisms/game/hooks/useGameAudio.d.ts +47 -0
  229. package/dist/components/organisms/game/hooks/useImageCache.d.ts +16 -0
  230. package/dist/components/organisms/game/hooks/usePhysics2D.d.ts +45 -0
  231. package/dist/components/organisms/game/hooks/useSpriteAnimations.d.ts +43 -0
  232. package/dist/components/organisms/game/index.d.ts +52 -0
  233. package/dist/components/organisms/game/managers/PhysicsManager.d.ts +103 -0
  234. package/dist/components/organisms/game/physics-sim/SimulationCanvas.d.ts +20 -0
  235. package/dist/components/organisms/game/physics-sim/SimulationControls.d.ts +28 -0
  236. package/dist/components/organisms/game/physics-sim/SimulationGraph.d.ts +25 -0
  237. package/dist/components/organisms/game/physics-sim/index.d.ts +7 -0
  238. package/dist/components/organisms/game/physics-sim/presets/index.d.ts +4 -0
  239. package/dist/components/organisms/game/physics-sim/presets/mechanics.d.ts +4 -0
  240. package/dist/components/organisms/game/physics-sim/presets/types.d.ts +43 -0
  241. package/dist/components/organisms/game/puzzles/builder/BuilderBoard.d.ts +52 -0
  242. package/dist/components/organisms/game/puzzles/builder/index.d.ts +2 -0
  243. package/dist/components/organisms/game/puzzles/classifier/ClassifierBoard.d.ts +53 -0
  244. package/dist/components/organisms/game/puzzles/classifier/index.d.ts +2 -0
  245. package/dist/components/organisms/game/puzzles/debugger/DebuggerBoard.d.ts +45 -0
  246. package/dist/components/organisms/game/puzzles/debugger/index.d.ts +2 -0
  247. package/dist/components/organisms/game/puzzles/event-handler/EventHandlerBoard.d.ts +55 -0
  248. package/dist/components/organisms/game/puzzles/event-handler/EventLog.d.ts +31 -0
  249. package/dist/components/organisms/game/puzzles/event-handler/ObjectRulePanel.d.ts +45 -0
  250. package/dist/components/organisms/game/puzzles/event-handler/RuleEditor.d.ts +41 -0
  251. package/dist/components/organisms/game/puzzles/event-handler/index.d.ts +8 -0
  252. package/dist/components/organisms/game/puzzles/negotiator/NegotiatorBoard.d.ts +54 -0
  253. package/dist/components/organisms/game/puzzles/negotiator/index.d.ts +2 -0
  254. package/dist/components/organisms/game/puzzles/sequencer/ActionPalette.d.ts +34 -0
  255. package/dist/components/organisms/game/puzzles/sequencer/ActionTile.d.ts +30 -0
  256. package/dist/components/organisms/game/puzzles/sequencer/SequenceBar.d.ts +41 -0
  257. package/dist/components/organisms/game/puzzles/sequencer/SequencerBoard.d.ts +72 -0
  258. package/dist/components/organisms/game/puzzles/sequencer/index.d.ts +8 -0
  259. package/dist/components/organisms/game/puzzles/simulator/SimulatorBoard.d.ts +54 -0
  260. package/dist/components/organisms/game/puzzles/simulator/index.d.ts +2 -0
  261. package/dist/components/organisms/game/puzzles/state-architect/CodeView.d.ts +24 -0
  262. package/dist/components/organisms/game/puzzles/state-architect/StateArchitectBoard.d.ts +76 -0
  263. package/dist/components/organisms/game/puzzles/state-architect/StateNode.d.ts +33 -0
  264. package/dist/components/organisms/game/puzzles/state-architect/TransitionArrow.d.ts +36 -0
  265. package/dist/components/organisms/game/puzzles/state-architect/VariablePanel.d.ts +28 -0
  266. package/dist/components/organisms/game/puzzles/state-architect/index.d.ts +10 -0
  267. package/dist/components/organisms/game/three/Camera3D.d.ts +60 -0
  268. package/dist/components/organisms/game/three/Lighting3D.d.ts +47 -0
  269. package/dist/components/organisms/game/three/Scene3D.d.ts +37 -0
  270. package/dist/components/organisms/game/three/components/Canvas3DErrorBoundary.d.ts +51 -0
  271. package/dist/components/organisms/game/three/components/Canvas3DLoadingState.d.ts +44 -0
  272. package/dist/components/organisms/game/three/components/ModelLoader.d.ts +44 -0
  273. package/dist/components/organisms/game/three/components/PhysicsObject3D.d.ts +74 -0
  274. package/dist/components/organisms/game/three/components/index.d.ts +10 -0
  275. package/dist/components/organisms/game/three/hooks/useAssetLoader.d.ts +58 -0
  276. package/dist/components/organisms/game/three/hooks/useGameCanvas3DEvents.d.ts +79 -0
  277. package/dist/components/organisms/game/three/hooks/useRaycaster.d.ts +86 -0
  278. package/dist/components/organisms/game/three/hooks/useSceneGraph.d.ts +66 -0
  279. package/dist/components/organisms/game/three/hooks/useThree.d.ts +58 -0
  280. package/dist/components/organisms/game/three/index.d.ts +18 -1228
  281. package/dist/components/organisms/game/three/index.js +49 -1709
  282. package/dist/components/organisms/game/three/loaders/AssetLoader.d.ts +80 -0
  283. package/dist/components/organisms/game/three/renderers/FeatureRenderer.d.ts +44 -0
  284. package/dist/components/organisms/game/three/renderers/FeatureRenderer3D.d.ts +44 -0
  285. package/dist/components/organisms/game/three/renderers/TileRenderer.d.ts +57 -0
  286. package/dist/components/organisms/game/three/renderers/UnitRenderer.d.ts +46 -0
  287. package/dist/components/organisms/game/three/renderers/index.d.ts +11 -0
  288. package/dist/components/organisms/game/three/utils/culling.d.ts +134 -0
  289. package/dist/components/organisms/game/three/utils/grid3D.d.ts +154 -0
  290. package/dist/components/organisms/game/types/effects.d.ts +253 -0
  291. package/dist/components/organisms/game/types/game.d.ts +92 -0
  292. package/dist/{isometric-ynNHVPZx.d.ts → components/organisms/game/types/isometric.d.ts} +4 -6
  293. package/dist/components/organisms/game/types/spriteAnimation.d.ts +73 -0
  294. package/dist/components/organisms/game/useCanvasEffects.d.ts +26 -0
  295. package/dist/components/organisms/game/utils/canvasEffects.d.ts +50 -0
  296. package/dist/components/organisms/game/utils/combatEffects.d.ts +64 -0
  297. package/dist/components/organisms/game/utils/combatPresets.d.ts +15 -0
  298. package/dist/components/organisms/game/utils/isometric.d.ts +61 -0
  299. package/dist/components/organisms/game/utils/spriteAnimation.d.ts +57 -0
  300. package/dist/components/organisms/game/utils/spriteSheetConstants.d.ts +16 -0
  301. package/dist/components/organisms/index.d.ts +38 -0
  302. package/dist/components/organisms/layout/DashboardGrid.d.ts +35 -0
  303. package/dist/components/organisms/layout/MasterDetail.d.ts +32 -0
  304. package/dist/components/organisms/layout/SplitPane.d.ts +34 -0
  305. package/dist/components/organisms/layout/TabbedContainer.d.ts +42 -0
  306. package/dist/components/organisms/layout/index.d.ts +9 -0
  307. package/dist/components/organisms/types.d.ts +63 -0
  308. package/dist/components/templates/AuthLayout.d.ts +14 -0
  309. package/dist/components/templates/BattleTemplate.d.ts +25 -0
  310. package/dist/components/templates/CastleTemplate.d.ts +23 -0
  311. package/dist/components/templates/CounterTemplate.d.ts +44 -0
  312. package/dist/components/templates/DashboardLayout.d.ts +34 -0
  313. package/dist/components/templates/GameCanvas3DBattleTemplate.d.ts +96 -0
  314. package/dist/components/templates/GameCanvas3DCastleTemplate.d.ts +90 -0
  315. package/dist/components/templates/GameCanvas3DWorldMapTemplate.d.ts +96 -0
  316. package/dist/components/templates/GameShell.d.ts +34 -0
  317. package/dist/components/templates/GameTemplate.d.ts +36 -0
  318. package/dist/components/templates/GenericAppTemplate.d.ts +30 -0
  319. package/dist/components/templates/WorldMapTemplate.d.ts +29 -0
  320. package/dist/components/templates/index.d.ts +10 -0
  321. package/dist/components/templates/types.d.ts +22 -0
  322. package/dist/context/DesignThemeContext.d.ts +21 -0
  323. package/dist/{ThemeContext-D9xUORq5.d.ts → context/ThemeContext.d.ts} +15 -16
  324. package/dist/context/UISlotContext.d.ts +75 -0
  325. package/dist/context/UserContext.d.ts +111 -0
  326. package/dist/context/index.d.ts +6 -206
  327. package/dist/{event-bus-types-CjJduURa.d.ts → hooks/event-bus-types.d.ts} +4 -6
  328. package/dist/hooks/index.d.ts +30 -1220
  329. package/dist/hooks/index.js +2 -2
  330. package/dist/hooks/useAgentChat.d.ts +104 -0
  331. package/dist/hooks/useAuthContext.d.ts +25 -0
  332. package/dist/hooks/useCompile.d.ts +22 -0
  333. package/dist/hooks/useDeepAgentGeneration.d.ts +46 -0
  334. package/dist/hooks/useDragReorder.d.ts +26 -0
  335. package/dist/hooks/useEntities.d.ts +52 -0
  336. package/dist/hooks/useEntityData.d.ts +155 -0
  337. package/dist/hooks/useEntityMutations.d.ts +80 -0
  338. package/dist/hooks/useEventBus.d.ts +96 -0
  339. package/dist/hooks/useExtensions.d.ts +32 -0
  340. package/dist/hooks/useFileEditor.d.ts +32 -0
  341. package/dist/hooks/useFileSystem.d.ts +40 -0
  342. package/dist/hooks/useGitHub.d.ts +58 -0
  343. package/dist/hooks/useInfiniteScroll.d.ts +13 -0
  344. package/dist/hooks/useLongPress.d.ts +16 -0
  345. package/dist/hooks/useOrbitalHistory.d.ts +39 -0
  346. package/dist/hooks/useOrbitalMutations.d.ts +95 -0
  347. package/dist/hooks/usePinchZoom.d.ts +22 -0
  348. package/dist/hooks/usePreview.d.ts +57 -0
  349. package/dist/hooks/usePullToRefresh.d.ts +25 -0
  350. package/dist/hooks/useQuerySingleton.d.ts +78 -0
  351. package/dist/hooks/useResolvedEntity.d.ts +32 -0
  352. package/dist/hooks/useSwipeGesture.d.ts +26 -0
  353. package/dist/hooks/useTranslate.d.ts +35 -0
  354. package/dist/hooks/useUIEvents.d.ts +35 -0
  355. package/dist/{useUISlots-BBjNvQtb.d.ts → hooks/useUISlots.d.ts} +8 -9
  356. package/dist/hooks/useValidation.d.ts +46 -0
  357. package/dist/lib/api-client.d.ts +42 -0
  358. package/dist/lib/cn.d.ts +6 -0
  359. package/dist/lib/debug.d.ts +43 -0
  360. package/dist/lib/debugRegistry.d.ts +29 -0
  361. package/dist/lib/debugUtils.d.ts +27 -0
  362. package/dist/lib/entityDebug.d.ts +38 -0
  363. package/dist/lib/getNestedValue.d.ts +33 -0
  364. package/dist/lib/guardRegistry.d.ts +32 -0
  365. package/dist/lib/index.d.ts +17 -319
  366. package/dist/lib/index.js +1 -3
  367. package/dist/lib/jazari/index.d.ts +5 -0
  368. package/dist/lib/jazari/layout.d.ts +30 -0
  369. package/dist/lib/jazari/svg-paths.d.ts +61 -0
  370. package/dist/lib/jazari/types.d.ts +91 -0
  371. package/dist/lib/parseContentSegments.d.ts +41 -0
  372. package/dist/lib/tickRegistry.d.ts +40 -0
  373. package/dist/lib/traitRegistry.d.ts +34 -0
  374. package/dist/lib/verificationRegistry.d.ts +138 -0
  375. package/dist/lib/visualizer/browser.d.ts +47 -0
  376. package/dist/lib/visualizer/index.d.ts +143 -0
  377. package/dist/locales/index.d.ts +5 -7
  378. package/dist/providers/EventBusProvider.d.ts +60 -0
  379. package/dist/providers/FetchedDataProvider.d.ts +105 -0
  380. package/dist/providers/OfflineModeProvider.d.ts +79 -0
  381. package/dist/providers/OrbitalProvider.d.ts +101 -0
  382. package/dist/providers/SelectionProvider.d.ts +81 -0
  383. package/dist/providers/VerificationProvider.d.ts +63 -0
  384. package/dist/providers/index.css +599 -0
  385. package/dist/providers/index.d.ts +16 -464
  386. package/dist/providers/index.js +5 -4
  387. package/dist/renderer/client-effect-executor.d.ts +68 -0
  388. package/dist/renderer/data-resolver.d.ts +68 -0
  389. package/dist/renderer/index.d.ts +22 -519
  390. package/dist/renderer/init.d.ts +14 -0
  391. package/dist/renderer/navigation.d.ts +142 -0
  392. package/dist/{offline-executor-CHr4uAhf.d.ts → renderer/offline-executor.d.ts} +9 -172
  393. package/dist/renderer/pattern-resolver.d.ts +91 -0
  394. package/dist/renderer/slot-definitions.d.ts +45 -0
  395. package/dist/renderer/types.d.ts +160 -0
  396. package/dist/renderer/useClientEffects.d.ts +88 -0
  397. package/dist/runtime/EntitySchemaContext.d.ts +40 -0
  398. package/dist/runtime/TraitProvider.d.ts +52 -0
  399. package/dist/runtime/createClientEffectHandlers.d.ts +23 -0
  400. package/dist/runtime/index.css +599 -0
  401. package/dist/runtime/index.d.ts +10 -275
  402. package/dist/runtime/index.js +6 -6
  403. package/dist/runtime/types.d.ts +10 -0
  404. package/dist/runtime/ui/SlotsContext.d.ts +71 -0
  405. package/dist/runtime/useResolvedSchema.d.ts +45 -0
  406. package/dist/runtime/useTraitStateMachine.d.ts +48 -0
  407. package/dist/scripts/generate-design-system.d.ts +29 -0
  408. package/dist/scripts/generate-theme-from-schema.d.ts +10 -0
  409. package/dist/scripts/generate.d.ts +12 -0
  410. package/dist/scripts/suggest-components.d.ts +31 -0
  411. package/dist/scripts/types.d.ts +129 -0
  412. package/dist/stores/entityStore.d.ts +99 -0
  413. package/dist/stores/filtering.d.ts +51 -0
  414. package/dist/stores/index.d.ts +4 -148
  415. package/dist/tsup.config.d.ts +2 -0
  416. package/dist/vitest.config.d.ts +2 -0
  417. package/package.json +5 -4
  418. package/dist/chunk-42YQ6JVR.js +0 -48
  419. package/dist/chunk-WCTZ7WZX.js +0 -311
  420. package/dist/cn-C_ATNPvi.d.ts +0 -332
@@ -0,0 +1,42 @@
1
+ /**
2
+ * API Client - HTTP client for backend API calls
3
+ *
4
+ * Provides typed methods for making API requests.
5
+ * All requests go through the backend server, NOT directly to Firestore.
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+ /**
10
+ * API Error class for handling HTTP errors
11
+ */
12
+ export declare class ApiError extends Error {
13
+ status: number;
14
+ statusText: string;
15
+ constructor(status: number, statusText: string, message?: string);
16
+ }
17
+ /**
18
+ * API client with typed methods
19
+ */
20
+ export declare const apiClient: {
21
+ /**
22
+ * GET request
23
+ */
24
+ get<T>(endpoint: string): Promise<T>;
25
+ /**
26
+ * POST request
27
+ */
28
+ post<T>(endpoint: string, data?: unknown): Promise<T>;
29
+ /**
30
+ * PUT request
31
+ */
32
+ put<T>(endpoint: string, data?: unknown): Promise<T>;
33
+ /**
34
+ * PATCH request
35
+ */
36
+ patch<T>(endpoint: string, data?: unknown): Promise<T>;
37
+ /**
38
+ * DELETE request
39
+ */
40
+ delete<T = void>(endpoint: string): Promise<T>;
41
+ };
42
+ export default apiClient;
@@ -0,0 +1,6 @@
1
+ import { type ClassValue } from 'clsx';
2
+ /**
3
+ * Utility function to merge Tailwind CSS classes
4
+ * Combines clsx for conditional classes with tailwind-merge to handle conflicts
5
+ */
6
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Debug utilities for development
3
+ */
4
+ export declare function isDebugEnabled(): boolean;
5
+ export declare function debug(...args: unknown[]): void;
6
+ export declare function debugGroup(label: string): void;
7
+ export declare function debugGroupEnd(): void;
8
+ export declare function debugWarn(...args: unknown[]): void;
9
+ export declare function debugError(...args: unknown[]): void;
10
+ export declare function debugTable(data: unknown): void;
11
+ export declare function debugTime(label: string): void;
12
+ export declare function debugTimeEnd(label: string): void;
13
+ /**
14
+ * Debug input events (keyboard, mouse, touch)
15
+ * @param inputType - Type of input (e.g., 'keydown', 'keyup', 'mouse')
16
+ * @param data - Input data to log
17
+ */
18
+ export declare function debugInput(inputType: string, data: unknown): void;
19
+ /**
20
+ * Debug collision events between entities
21
+ * @param entityA - First entity in collision
22
+ * @param entityB - Second entity in collision
23
+ * @param details - Additional collision details
24
+ */
25
+ export declare function debugCollision(entityA: {
26
+ id?: string;
27
+ type?: string;
28
+ }, entityB: {
29
+ id?: string;
30
+ type?: string;
31
+ }, details?: unknown): void;
32
+ /**
33
+ * Debug physics updates (position, velocity)
34
+ * @param entityId - Entity identifier
35
+ * @param physics - Physics data to log
36
+ */
37
+ export declare function debugPhysics(entityId: string, physics: unknown): void;
38
+ /**
39
+ * Debug game state changes
40
+ * @param stateName - Name of the state that changed
41
+ * @param value - New state value
42
+ */
43
+ export declare function debugGameState(stateName: string, value: unknown): void;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Debug Registry - Central event log for debugging
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+ export type DebugEventType = 'state-change' | 'event-fired' | 'effect-executed' | 'guard-evaluated' | 'error' | 'warning' | 'info';
7
+ export interface DebugEvent {
8
+ id: string;
9
+ type: DebugEventType;
10
+ source: string;
11
+ message: string;
12
+ data?: Record<string, unknown>;
13
+ timestamp: number;
14
+ }
15
+ type ChangeListener = () => void;
16
+ export declare function logDebugEvent(type: DebugEventType, source: string, message: string, data?: Record<string, unknown>): void;
17
+ export declare function logStateChange(source: string, from: string, to: string, event?: string): void;
18
+ export declare function logEventFired(source: string, eventName: string, payload?: unknown): void;
19
+ export declare function logEffectExecuted(source: string, effectType: string, details?: unknown): void;
20
+ export declare function logError(source: string, message: string, error?: unknown): void;
21
+ export declare function logWarning(source: string, message: string, data?: Record<string, unknown>): void;
22
+ export declare function logInfo(source: string, message: string, data?: Record<string, unknown>): void;
23
+ export declare function getDebugEvents(): DebugEvent[];
24
+ export declare function getRecentEvents(count: number): DebugEvent[];
25
+ export declare function getEventsByType(type: DebugEventType): DebugEvent[];
26
+ export declare function getEventsBySource(source: string): DebugEvent[];
27
+ export declare function subscribeToDebugEvents(listener: ChangeListener): () => void;
28
+ export declare function clearDebugEvents(): void;
29
+ export {};
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Debug Utilities - Functions for toggling and checking debug mode
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+ type DebugToggleListener = (enabled: boolean) => void;
7
+ /**
8
+ * Check if debug mode is enabled
9
+ */
10
+ export declare function isDebugEnabled(): boolean;
11
+ /**
12
+ * Enable or disable debug mode
13
+ */
14
+ export declare function setDebugEnabled(enabled: boolean): void;
15
+ /**
16
+ * Toggle debug mode
17
+ */
18
+ export declare function toggleDebug(): boolean;
19
+ /**
20
+ * Subscribe to debug mode changes
21
+ */
22
+ export declare function onDebugToggle(listener: DebugToggleListener): () => void;
23
+ /**
24
+ * Initialize debug mode from keyboard shortcut (Ctrl+Shift+D)
25
+ */
26
+ export declare function initDebugShortcut(): () => void;
27
+ export {};
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Entity Debug - Provides entity state snapshots for debugging
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+ export interface EntityState {
7
+ id: string;
8
+ type: string;
9
+ fields: Record<string, unknown>;
10
+ lastUpdated: number;
11
+ }
12
+ export interface RuntimeEntity {
13
+ id: string;
14
+ type: string;
15
+ data: Record<string, unknown>;
16
+ }
17
+ export interface PersistentEntityInfo {
18
+ loaded: boolean;
19
+ count: number;
20
+ }
21
+ export interface EntitySnapshot {
22
+ entities: EntityState[];
23
+ timestamp: number;
24
+ totalCount: number;
25
+ /** Singleton entities by name */
26
+ singletons: Record<string, unknown>;
27
+ /** Runtime entities (in-memory) */
28
+ runtime: RuntimeEntity[];
29
+ /** Persistent entities info by type */
30
+ persistent: Record<string, PersistentEntityInfo>;
31
+ }
32
+ type EntityProvider = () => EntityState[];
33
+ export declare function setEntityProvider(provider: EntityProvider): void;
34
+ export declare function clearEntityProvider(): void;
35
+ export declare function getEntitySnapshot(): EntitySnapshot | null;
36
+ export declare function getEntityById(id: string): EntityState | undefined;
37
+ export declare function getEntitiesByType(type: string): EntityState[];
38
+ export {};
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Get Nested Value Utility
3
+ *
4
+ * Safely retrieves nested values from objects using dot-notation paths.
5
+ * Used by display components to support relation field access like "company.name".
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+ /**
10
+ * Get a nested value from an object using dot-notation path.
11
+ *
12
+ * @param obj - The object to traverse
13
+ * @param path - Dot-notation path (e.g., "company.name", "address.city")
14
+ * @returns The value at the path, or undefined if not found
15
+ *
16
+ * @example
17
+ * const data = { company: { name: "Acme Corp", address: { city: "NYC" } } };
18
+ * getNestedValue(data, "company.name"); // => "Acme Corp"
19
+ * getNestedValue(data, "company.address.city"); // => "NYC"
20
+ * getNestedValue(data, "company.missing"); // => undefined
21
+ */
22
+ export declare function getNestedValue(obj: Record<string, unknown> | null | undefined, path: string): unknown;
23
+ /**
24
+ * Format a nested field path as a human-readable label.
25
+ *
26
+ * @param path - Dot-notation path (e.g., "company.name")
27
+ * @returns Formatted label (e.g., "Company Name")
28
+ *
29
+ * @example
30
+ * formatFieldLabel("company.name"); // => "Company Name"
31
+ * formatFieldLabel("address.zipCode"); // => "Address Zip Code"
32
+ */
33
+ export declare function formatNestedFieldLabel(path: string): string;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Guard Registry - Tracks guard evaluations for debugging
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+ export interface GuardContext {
7
+ traitName?: string;
8
+ type?: "transition" | "tick";
9
+ transitionFrom?: string;
10
+ transitionTo?: string;
11
+ tickName?: string;
12
+ [key: string]: unknown;
13
+ }
14
+ export interface GuardEvaluation {
15
+ id: string;
16
+ traitName: string;
17
+ guardName: string;
18
+ expression: string;
19
+ result: boolean;
20
+ context: GuardContext;
21
+ timestamp: number;
22
+ /** Input values used in guard evaluation */
23
+ inputs: Record<string, unknown>;
24
+ }
25
+ type ChangeListener = () => void;
26
+ export declare function recordGuardEvaluation(evaluation: Omit<GuardEvaluation, "id" | "timestamp">): void;
27
+ export declare function getGuardHistory(): GuardEvaluation[];
28
+ export declare function getRecentGuardEvaluations(count: number): GuardEvaluation[];
29
+ export declare function getGuardEvaluationsForTrait(traitName: string): GuardEvaluation[];
30
+ export declare function subscribeToGuardChanges(listener: ChangeListener): () => void;
31
+ export declare function clearGuardHistory(): void;
32
+ export {};
@@ -1,320 +1,18 @@
1
- export { A as AssetLoadStatus, B as BridgeHealth, C as CheckStatus, a as ContentSegment, D as DEFAULT_CONFIG, b as DomEntityBox, c as DomLayoutData, d as DomOutputsBox, e as DomStateNode, f as DomTransitionLabel, g as DomTransitionPath, E as EffectTrace, h as EntityDefinition, i as EventLogEntry, R as RenderOptions, S as StateDefinition, j as StateMachineDefinition, T as TransitionDefinition, k as TransitionTrace, V as VerificationCheck, l as VerificationSnapshot, m as VerificationSummary, n as VisualizerConfig, o as bindCanvasCapture, p as bindEventBus, q as bindTraitStateGetter, r as clearVerification, s as cn, t as extractOutputsFromTransitions, u as extractStateMachine, v as formatGuard, w as getAllChecks, x as getBridgeHealth, y as getEffectSummary, z as getSnapshot, F as getSummary, G as getTransitions, H as getTransitionsForTrait, I as parseContentSegments, J as parseMarkdownWithCodeBlocks, K as recordTransition, L as registerCheck, M as renderStateMachineToDomData, N as renderStateMachineToSvg, O as subscribeToVerification, P as updateAssetStatus, Q as updateBridgeHealth, U as updateCheck, W as waitForTransition } from '../cn-C_ATNPvi.js';
2
- import 'clsx';
3
-
4
1
  /**
5
- * Trait Registry - Tracks active traits and their state machines for debugging
6
- *
7
- * @packageDocumentation
8
- */
9
- interface TraitTransition {
10
- from: string;
11
- to: string;
12
- event: string;
13
- guard?: string;
14
- }
15
- interface TraitGuard {
16
- name: string;
17
- lastResult?: boolean;
18
- }
19
- interface TraitDebugInfo {
20
- id: string;
21
- name: string;
22
- currentState: string;
23
- states: string[];
24
- transitions: TraitTransition[];
25
- guards: TraitGuard[];
26
- transitionCount: number;
27
- }
28
- type ChangeListener$3 = () => void;
29
- declare function registerTrait(info: TraitDebugInfo): void;
30
- declare function updateTraitState(id: string, newState: string): void;
31
- declare function updateGuardResult(traitId: string, guardName: string, result: boolean): void;
32
- declare function unregisterTrait(id: string): void;
33
- declare function getAllTraits(): TraitDebugInfo[];
34
- declare function getTrait(id: string): TraitDebugInfo | undefined;
35
- declare function subscribeToTraitChanges(listener: ChangeListener$3): () => void;
36
- declare function clearTraits(): void;
37
-
38
- /**
39
- * Tick Registry - Tracks scheduled tick executions for debugging
40
- *
41
- * @packageDocumentation
42
- */
43
- interface TickExecution {
44
- id: string;
45
- traitName: string;
46
- /** Tick name (display name) */
47
- name: string;
48
- /** Tick identifier */
49
- tickName: string;
50
- interval: number;
51
- /** Last execution timestamp */
52
- lastRun: number;
53
- lastExecuted: number | null;
54
- nextExecution: number | null;
55
- /** Number of times this tick has run */
56
- runCount: number;
57
- executionCount: number;
58
- /** Average execution time in ms */
59
- executionTime: number;
60
- /** Whether the tick is currently active */
61
- active: boolean;
62
- isActive: boolean;
63
- /** Guard name if this tick has a guard */
64
- guardName?: string;
65
- /** Whether the guard passed on last evaluation */
66
- guardPassed?: boolean;
67
- }
68
- type ChangeListener$2 = () => void;
69
- declare function registerTick(tick: TickExecution): void;
70
- declare function updateTickExecution(id: string, timestamp: number): void;
71
- declare function setTickActive(id: string, isActive: boolean): void;
72
- declare function unregisterTick(id: string): void;
73
- declare function getAllTicks(): TickExecution[];
74
- declare function getTick(id: string): TickExecution | undefined;
75
- declare function subscribeToTickChanges(listener: ChangeListener$2): () => void;
76
- declare function clearTicks(): void;
77
-
78
- /**
79
- * Guard Registry - Tracks guard evaluations for debugging
80
- *
81
- * @packageDocumentation
82
- */
83
- interface GuardContext {
84
- traitName?: string;
85
- type?: "transition" | "tick";
86
- transitionFrom?: string;
87
- transitionTo?: string;
88
- tickName?: string;
89
- [key: string]: unknown;
90
- }
91
- interface GuardEvaluation {
92
- id: string;
93
- traitName: string;
94
- guardName: string;
95
- expression: string;
96
- result: boolean;
97
- context: GuardContext;
98
- timestamp: number;
99
- /** Input values used in guard evaluation */
100
- inputs: Record<string, unknown>;
101
- }
102
- type ChangeListener$1 = () => void;
103
- declare function recordGuardEvaluation(evaluation: Omit<GuardEvaluation, "id" | "timestamp">): void;
104
- declare function getGuardHistory(): GuardEvaluation[];
105
- declare function getRecentGuardEvaluations(count: number): GuardEvaluation[];
106
- declare function getGuardEvaluationsForTrait(traitName: string): GuardEvaluation[];
107
- declare function subscribeToGuardChanges(listener: ChangeListener$1): () => void;
108
- declare function clearGuardHistory(): void;
109
-
110
- /**
111
- * Entity Debug - Provides entity state snapshots for debugging
112
- *
113
- * @packageDocumentation
114
- */
115
- interface EntityState {
116
- id: string;
117
- type: string;
118
- fields: Record<string, unknown>;
119
- lastUpdated: number;
120
- }
121
- interface RuntimeEntity {
122
- id: string;
123
- type: string;
124
- data: Record<string, unknown>;
125
- }
126
- interface PersistentEntityInfo {
127
- loaded: boolean;
128
- count: number;
129
- }
130
- interface EntitySnapshot {
131
- entities: EntityState[];
132
- timestamp: number;
133
- totalCount: number;
134
- /** Singleton entities by name */
135
- singletons: Record<string, unknown>;
136
- /** Runtime entities (in-memory) */
137
- runtime: RuntimeEntity[];
138
- /** Persistent entities info by type */
139
- persistent: Record<string, PersistentEntityInfo>;
140
- }
141
- type EntityProvider = () => EntityState[];
142
- declare function setEntityProvider(provider: EntityProvider): void;
143
- declare function clearEntityProvider(): void;
144
- declare function getEntitySnapshot(): EntitySnapshot | null;
145
- declare function getEntityById(id: string): EntityState | undefined;
146
- declare function getEntitiesByType(type: string): EntityState[];
147
-
148
- /**
149
- * Debug Registry - Central event log for debugging
150
- *
151
- * @packageDocumentation
152
- */
153
- type DebugEventType = 'state-change' | 'event-fired' | 'effect-executed' | 'guard-evaluated' | 'error' | 'warning' | 'info';
154
- interface DebugEvent {
155
- id: string;
156
- type: DebugEventType;
157
- source: string;
158
- message: string;
159
- data?: Record<string, unknown>;
160
- timestamp: number;
161
- }
162
- type ChangeListener = () => void;
163
- declare function logDebugEvent(type: DebugEventType, source: string, message: string, data?: Record<string, unknown>): void;
164
- declare function logStateChange(source: string, from: string, to: string, event?: string): void;
165
- declare function logEventFired(source: string, eventName: string, payload?: unknown): void;
166
- declare function logEffectExecuted(source: string, effectType: string, details?: unknown): void;
167
- declare function logError(source: string, message: string, error?: unknown): void;
168
- declare function logWarning(source: string, message: string, data?: Record<string, unknown>): void;
169
- declare function logInfo(source: string, message: string, data?: Record<string, unknown>): void;
170
- declare function getDebugEvents(): DebugEvent[];
171
- declare function getRecentEvents(count: number): DebugEvent[];
172
- declare function getEventsByType(type: DebugEventType): DebugEvent[];
173
- declare function getEventsBySource(source: string): DebugEvent[];
174
- declare function subscribeToDebugEvents(listener: ChangeListener): () => void;
175
- declare function clearDebugEvents(): void;
176
-
177
- /**
178
- * API Client - HTTP client for backend API calls
179
- *
180
- * Provides typed methods for making API requests.
181
- * All requests go through the backend server, NOT directly to Firestore.
182
- *
183
- * @packageDocumentation
184
- */
185
- /**
186
- * API Error class for handling HTTP errors
187
- */
188
- declare class ApiError extends Error {
189
- status: number;
190
- statusText: string;
191
- constructor(status: number, statusText: string, message?: string);
192
- }
193
- /**
194
- * API client with typed methods
195
- */
196
- declare const apiClient: {
197
- /**
198
- * GET request
199
- */
200
- get<T>(endpoint: string): Promise<T>;
201
- /**
202
- * POST request
203
- */
204
- post<T>(endpoint: string, data?: unknown): Promise<T>;
205
- /**
206
- * PUT request
207
- */
208
- put<T>(endpoint: string, data?: unknown): Promise<T>;
209
- /**
210
- * PATCH request
211
- */
212
- patch<T>(endpoint: string, data?: unknown): Promise<T>;
213
- /**
214
- * DELETE request
215
- */
216
- delete<T = void>(endpoint: string): Promise<T>;
217
- };
218
-
219
- /**
220
- * Debug utilities for development
221
- */
222
- declare function isDebugEnabled(): boolean;
223
- declare function debug(...args: unknown[]): void;
224
- declare function debugGroup(label: string): void;
225
- declare function debugGroupEnd(): void;
226
- declare function debugWarn(...args: unknown[]): void;
227
- declare function debugError(...args: unknown[]): void;
228
- declare function debugTable(data: unknown): void;
229
- declare function debugTime(label: string): void;
230
- declare function debugTimeEnd(label: string): void;
231
- /**
232
- * Debug input events (keyboard, mouse, touch)
233
- * @param inputType - Type of input (e.g., 'keydown', 'keyup', 'mouse')
234
- * @param data - Input data to log
235
- */
236
- declare function debugInput(inputType: string, data: unknown): void;
237
- /**
238
- * Debug collision events between entities
239
- * @param entityA - First entity in collision
240
- * @param entityB - Second entity in collision
241
- * @param details - Additional collision details
242
- */
243
- declare function debugCollision(entityA: {
244
- id?: string;
245
- type?: string;
246
- }, entityB: {
247
- id?: string;
248
- type?: string;
249
- }, details?: unknown): void;
250
- /**
251
- * Debug physics updates (position, velocity)
252
- * @param entityId - Entity identifier
253
- * @param physics - Physics data to log
254
- */
255
- declare function debugPhysics(entityId: string, physics: unknown): void;
256
- /**
257
- * Debug game state changes
258
- * @param stateName - Name of the state that changed
259
- * @param value - New state value
260
- */
261
- declare function debugGameState(stateName: string, value: unknown): void;
262
-
263
- /**
264
- * Debug Utilities - Functions for toggling and checking debug mode
265
- *
266
- * @packageDocumentation
267
- */
268
- type DebugToggleListener = (enabled: boolean) => void;
269
- /**
270
- * Enable or disable debug mode
271
- */
272
- declare function setDebugEnabled(enabled: boolean): void;
273
- /**
274
- * Toggle debug mode
275
- */
276
- declare function toggleDebug(): boolean;
277
- /**
278
- * Subscribe to debug mode changes
279
- */
280
- declare function onDebugToggle(listener: DebugToggleListener): () => void;
281
- /**
282
- * Initialize debug mode from keyboard shortcut (Ctrl+Shift+D)
283
- */
284
- declare function initDebugShortcut(): () => void;
285
-
286
- /**
287
- * Get Nested Value Utility
288
- *
289
- * Safely retrieves nested values from objects using dot-notation paths.
290
- * Used by display components to support relation field access like "company.name".
291
- *
292
- * @packageDocumentation
293
- */
294
- /**
295
- * Get a nested value from an object using dot-notation path.
296
- *
297
- * @param obj - The object to traverse
298
- * @param path - Dot-notation path (e.g., "company.name", "address.city")
299
- * @returns The value at the path, or undefined if not found
300
- *
301
- * @example
302
- * const data = { company: { name: "Acme Corp", address: { city: "NYC" } } };
303
- * getNestedValue(data, "company.name"); // => "Acme Corp"
304
- * getNestedValue(data, "company.address.city"); // => "NYC"
305
- * getNestedValue(data, "company.missing"); // => undefined
306
- */
307
- declare function getNestedValue(obj: Record<string, unknown> | null | undefined, path: string): unknown;
308
- /**
309
- * Format a nested field path as a human-readable label.
310
- *
311
- * @param path - Dot-notation path (e.g., "company.name")
312
- * @returns Formatted label (e.g., "Company Name")
313
- *
314
- * @example
315
- * formatFieldLabel("company.name"); // => "Company Name"
316
- * formatFieldLabel("address.zipCode"); // => "Address Zip Code"
317
- */
318
- declare function formatNestedFieldLabel(path: string): string;
319
-
320
- export { ApiError, type DebugEvent, type DebugEventType, type EntitySnapshot, type EntityState, type GuardContext, type GuardEvaluation, type PersistentEntityInfo, type RuntimeEntity, type TickExecution, type TraitDebugInfo, type TraitGuard, type TraitTransition, apiClient, clearDebugEvents, clearEntityProvider, clearGuardHistory, clearTicks, clearTraits, debug, debugCollision, debugError, debugGameState, debugGroup, debugGroupEnd, debugInput, debugPhysics, debugTable, debugTime, debugTimeEnd, debugWarn, formatNestedFieldLabel, getAllTicks, getAllTraits, getDebugEvents, getEntitiesByType, getEntityById, getEntitySnapshot, getEventsBySource, getEventsByType, getGuardEvaluationsForTrait, getGuardHistory, getNestedValue, getRecentEvents, getRecentGuardEvaluations, getTick, getTrait, initDebugShortcut, isDebugEnabled, logDebugEvent, logEffectExecuted, logError, logEventFired, logInfo, logStateChange, logWarning, onDebugToggle, recordGuardEvaluation, registerTick, registerTrait, setDebugEnabled, setEntityProvider, setTickActive, subscribeToDebugEvents, subscribeToGuardChanges, subscribeToTickChanges, subscribeToTraitChanges, toggleDebug, unregisterTick, unregisterTrait, updateGuardResult, updateTickExecution, updateTraitState };
2
+ * Lib - Utility functions and registries
3
+ *
4
+ * Core utilities for the Almadar UI library.
5
+ */
6
+ export { cn } from './cn';
7
+ export * from './api-client';
8
+ export * from './debug';
9
+ export { setDebugEnabled, toggleDebug, onDebugToggle, initDebugShortcut, } from './debugUtils';
10
+ export * from './entityDebug';
11
+ export * from './debugRegistry';
12
+ export * from './guardRegistry';
13
+ export * from './tickRegistry';
14
+ export * from './traitRegistry';
15
+ export * from './verificationRegistry';
16
+ export * from './getNestedValue';
17
+ export * from './visualizer';
18
+ export * from './parseContentSegments';
package/dist/lib/index.js CHANGED
@@ -1,5 +1,3 @@
1
- export { DEFAULT_CONFIG, clearDebugEvents, clearEntityProvider, clearGuardHistory, clearTicks, extractOutputsFromTransitions, extractStateMachine, formatGuard, getAllTicks, getDebugEvents, getEffectSummary, getEntitiesByType, getEntityById, getEntitySnapshot, getEventsBySource, getEventsByType, getGuardEvaluationsForTrait, getGuardHistory, getRecentEvents, getRecentGuardEvaluations, getTick, initDebugShortcut, logDebugEvent, logEffectExecuted, logError, logEventFired, logInfo, logStateChange, logWarning, onDebugToggle, parseContentSegments, parseMarkdownWithCodeBlocks, recordGuardEvaluation, registerTick, renderStateMachineToDomData, renderStateMachineToSvg, setDebugEnabled, setEntityProvider, setTickActive, subscribeToDebugEvents, subscribeToGuardChanges, subscribeToTickChanges, toggleDebug, unregisterTick, updateTickExecution } from '../chunk-4ZBSL37D.js';
2
- export { clearTraits, getAllTraits, getTrait, registerTrait, subscribeToTraitChanges, unregisterTrait, updateGuardResult, updateTraitState } from '../chunk-42YQ6JVR.js';
3
1
  export { ApiError, apiClient } from '../chunk-3HJHHULT.js';
4
- export { bindCanvasCapture, bindEventBus, bindTraitStateGetter, clearVerification, cn, debug, debugCollision, debugError, debugGameState, debugGroup, debugGroupEnd, debugInput, debugPhysics, debugTable, debugTime, debugTimeEnd, debugWarn, formatNestedFieldLabel, getAllChecks, getBridgeHealth, getNestedValue, getSnapshot, getSummary, getTransitions, getTransitionsForTrait, isDebugEnabled, recordTransition, registerCheck, subscribeToVerification, updateAssetStatus, updateBridgeHealth, updateCheck, waitForTransition } from '../chunk-WCTZ7WZX.js';
2
+ export { DEFAULT_CONFIG, bindCanvasCapture, bindEventBus, bindTraitStateGetter, clearDebugEvents, clearEntityProvider, clearGuardHistory, clearTicks, clearTraits, clearVerification, cn, debug, debugCollision, debugError, debugGameState, debugGroup, debugGroupEnd, debugInput, debugPhysics, debugTable, debugTime, debugTimeEnd, debugWarn, extractOutputsFromTransitions, extractStateMachine, formatGuard, formatNestedFieldLabel, getAllChecks, getAllTicks, getAllTraits, getBridgeHealth, getDebugEvents, getEffectSummary, getEntitiesByType, getEntityById, getEntitySnapshot, getEventsBySource, getEventsByType, getGuardEvaluationsForTrait, getGuardHistory, getNestedValue, getRecentEvents, getRecentGuardEvaluations, getSnapshot, getSummary, getTick, getTrait, getTransitions, getTransitionsForTrait, initDebugShortcut, isDebugEnabled, logDebugEvent, logEffectExecuted, logError, logEventFired, logInfo, logStateChange, logWarning, onDebugToggle, parseContentSegments, parseMarkdownWithCodeBlocks, recordGuardEvaluation, recordTransition, registerCheck, registerTick, registerTrait, renderStateMachineToDomData, renderStateMachineToSvg, setDebugEnabled, setEntityProvider, setTickActive, subscribeToDebugEvents, subscribeToGuardChanges, subscribeToTickChanges, subscribeToTraitChanges, subscribeToVerification, toggleDebug, unregisterTick, unregisterTrait, updateAssetStatus, updateBridgeHealth, updateCheck, updateGuardResult, updateTickExecution, updateTraitState, waitForTransition } from '../chunk-XL7WB2O5.js';
5
3
  import '../chunk-PKBMQBKP.js';
@@ -0,0 +1,5 @@
1
+ export { computeJazariLayout } from './layout.js';
2
+ export type { LayoutState, LayoutTransition, LayoutInput } from './layout.js';
3
+ export { gearTeethPath, lockIconPath, brainIconPath, pipeIconPath, eightPointedStarPath, arrowheadPath, } from './svg-paths.js';
4
+ export type { JazariLayout, JazariGearLayout, JazariArmLayout, JazariGuardInfo, JazariEffectInfo, } from './types.js';
5
+ export { JAZARI_COLORS } from './types.js';
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Layout algorithm for the Al-Jazari state machine visualization.
3
+ * Pure TypeScript — zero React/DOM dependencies.
4
+ *
5
+ * 1. BFS from initial state to order states by graph distance.
6
+ * 2. Horizontal distribution of gears along the golden axis.
7
+ * 3. Transition arm routing: forward arcs above, backward arcs below, self-loops above.
8
+ * 4. Guard icons at 30% along arm, effect icons at 70%.
9
+ */
10
+ import type { JazariLayout } from './types.js';
11
+ export interface LayoutState {
12
+ name: string;
13
+ isInitial?: boolean;
14
+ isTerminal?: boolean;
15
+ isFinal?: boolean;
16
+ }
17
+ export interface LayoutTransition {
18
+ from: string;
19
+ to: string;
20
+ event: string;
21
+ guard?: unknown;
22
+ effects?: unknown[];
23
+ }
24
+ export interface LayoutInput {
25
+ states: LayoutState[];
26
+ transitions: LayoutTransition[];
27
+ entityFields?: string[];
28
+ direction?: 'ltr' | 'rtl';
29
+ }
30
+ export declare function computeJazariLayout(input: LayoutInput): JazariLayout;