@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,129 @@
1
+ /**
2
+ * Design System Generator Types
3
+ *
4
+ * Input configuration for generating a customized design system
5
+ * that gets output to a project folder.
6
+ */
7
+ export interface DesignSystemConfig {
8
+ /** Project/client name (e.g., "winning-11") */
9
+ projectName: string;
10
+ /** Output directory for the generated design system */
11
+ outputDir: string;
12
+ /** Theme configuration */
13
+ theme: ThemeConfig;
14
+ /** Custom components not in the standard library */
15
+ customComponents?: CustomComponentConfig[];
16
+ /** Which standard components to include (default: all) */
17
+ includeComponents?: ComponentFilter;
18
+ /** Storybook configuration */
19
+ storybook?: StorybookConfig;
20
+ }
21
+ export interface ThemeConfig {
22
+ /** Theme name (used in data-design-theme attribute) */
23
+ name: string;
24
+ /** Theme display name for documentation */
25
+ displayName?: string;
26
+ /** Design metaphor/style description */
27
+ metaphor?: string;
28
+ /** Color palette */
29
+ colors: {
30
+ primary: string;
31
+ primaryHover?: string;
32
+ primaryForeground?: string;
33
+ secondary: string;
34
+ secondaryHover?: string;
35
+ secondaryForeground?: string;
36
+ accent: string;
37
+ accentForeground?: string;
38
+ muted: string;
39
+ mutedForeground?: string;
40
+ background: string;
41
+ foreground: string;
42
+ card?: string;
43
+ cardForeground?: string;
44
+ border: string;
45
+ input?: string;
46
+ ring?: string;
47
+ /** Semantic colors */
48
+ success?: string;
49
+ warning?: string;
50
+ error?: string;
51
+ info?: string;
52
+ /** Custom domain-specific colors */
53
+ custom?: Record<string, string>;
54
+ };
55
+ /** Shadow style preset or custom shadows */
56
+ shadows?: 'soft-organic' | 'minimal' | 'corporate' | 'playful' | 'dramatic' | 'soft' | ShadowConfig;
57
+ /** Border radius preset or custom radii */
58
+ radius?: 'organic' | 'gentle' | 'sharp' | 'rounded' | 'friendly' | RadiusConfig;
59
+ /** Typography overrides */
60
+ typography?: {
61
+ fontFamily?: string;
62
+ fontWeightNormal?: number;
63
+ fontWeightMedium?: number;
64
+ fontWeightBold?: number;
65
+ };
66
+ /** Dark mode variant */
67
+ darkMode?: Partial<ThemeConfig['colors']>;
68
+ }
69
+ export interface ShadowConfig {
70
+ main: string;
71
+ sm: string;
72
+ lg: string;
73
+ hover: string;
74
+ inner?: string;
75
+ active?: string;
76
+ }
77
+ export interface RadiusConfig {
78
+ sm: string;
79
+ md: string;
80
+ lg: string;
81
+ xl: string;
82
+ }
83
+ export interface CustomComponentConfig {
84
+ /** Component name (PascalCase) */
85
+ name: string;
86
+ /** Component description */
87
+ description: string;
88
+ /** Category in the component library */
89
+ category: 'atoms' | 'molecules' | 'organisms' | 'templates';
90
+ /** Component props */
91
+ props: ComponentProp[];
92
+ /** Why this component is needed */
93
+ reasoning?: string;
94
+ /** Priority for implementation */
95
+ priority?: 'high' | 'medium' | 'low';
96
+ /** Optional implementation code */
97
+ implementation?: string;
98
+ /** Optional Storybook stories */
99
+ stories?: string;
100
+ }
101
+ export interface ComponentProp {
102
+ name: string;
103
+ type: string;
104
+ description: string;
105
+ required?: boolean;
106
+ defaultValue?: string;
107
+ }
108
+ export interface ComponentFilter {
109
+ /** Include all components (default: true) */
110
+ all?: boolean;
111
+ /** Specific categories to include */
112
+ categories?: ('atoms' | 'molecules' | 'organisms' | 'templates')[];
113
+ /** Specific components to include (by name) */
114
+ include?: string[];
115
+ /** Specific components to exclude (by name) */
116
+ exclude?: string[];
117
+ }
118
+ export interface StorybookConfig {
119
+ /** Build Storybook (default: true) */
120
+ build?: boolean;
121
+ /** Include Storybook source in output (default: true) */
122
+ includeSource?: boolean;
123
+ /** Custom Storybook title */
124
+ title?: string;
125
+ }
126
+ /**
127
+ * Example configuration for Winning-11 (Garden theme)
128
+ */
129
+ export declare const WINNING_11_CONFIG: DesignSystemConfig;
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Entity Store
3
+ *
4
+ * Simple module-level store for runtime entities.
5
+ * No providers needed - hooks import and use directly.
6
+ *
7
+ * NOTE: Mutations create new Map instances to trigger React rerenders
8
+ * when using useSyncExternalStore.
9
+ */
10
+ import { type EntityFilterValue, type FilterOperator, type EntityFilters, applyFilters, createFilter } from './filtering';
11
+ export type { EntityFilterValue, FilterOperator, EntityFilters };
12
+ export { applyFilters, createFilter };
13
+ export interface Entity {
14
+ id: string;
15
+ type: string;
16
+ [key: string]: unknown;
17
+ }
18
+ type Listener = () => void;
19
+ /**
20
+ * Subscribe to store changes
21
+ */
22
+ export declare function subscribe(listener: Listener): () => void;
23
+ /**
24
+ * Get all entities
25
+ */
26
+ export declare function getEntities(): Map<string, Entity>;
27
+ /**
28
+ * Get entity by ID
29
+ */
30
+ export declare function getEntity(id: string): Entity | undefined;
31
+ /**
32
+ * Get entities by type
33
+ */
34
+ export declare function getByType(type: string | string[]): Entity[];
35
+ /**
36
+ * Get all entities as array
37
+ */
38
+ export declare function getAllEntities(): Entity[];
39
+ /**
40
+ * Get singleton entity by type (first of that type)
41
+ */
42
+ export declare function getSingleton(type: string): Entity | undefined;
43
+ /**
44
+ * Spawn a new entity
45
+ */
46
+ export declare function spawnEntity(config: {
47
+ type: string;
48
+ id?: string;
49
+ [key: string]: unknown;
50
+ }): string;
51
+ /**
52
+ * Update an entity
53
+ */
54
+ export declare function updateEntity(id: string, updates: Partial<Entity>): void;
55
+ /**
56
+ * Update singleton entity by type
57
+ */
58
+ export declare function updateSingleton(type: string, updates: Partial<Entity>): void;
59
+ /**
60
+ * Remove an entity
61
+ */
62
+ export declare function removeEntity(id: string): void;
63
+ /**
64
+ * Clear all entities
65
+ */
66
+ export declare function clearEntities(): void;
67
+ /**
68
+ * Set a filter for an entity type
69
+ * @param entityType - The entity type to filter (e.g., "Player", "Enemy")
70
+ * @param field - The filter key (e.g., 'status' or 'date_from')
71
+ * @param value - The filter value
72
+ * @param operator - The comparison operator
73
+ * @param targetField - The actual record field to compare (defaults to field)
74
+ */
75
+ export declare function setFilter(entityType: string, field: string, value: unknown, operator?: FilterOperator, targetField?: string): void;
76
+ /**
77
+ * Clear a specific filter
78
+ */
79
+ export declare function clearFilter(entityType: string, field: string): void;
80
+ /**
81
+ * Clear all filters for an entity type
82
+ */
83
+ export declare function clearAllFilters(entityType: string): void;
84
+ /**
85
+ * Get active filters for an entity type
86
+ */
87
+ export declare function getFilters(entityType: string): EntityFilters;
88
+ /**
89
+ * Get entities by type with optional filtering
90
+ */
91
+ export declare function getByTypeFiltered(type: string | string[]): Entity[];
92
+ /**
93
+ * Get snapshot for React useSyncExternalStore
94
+ */
95
+ export declare function getSnapshot(): Map<string, Entity>;
96
+ /**
97
+ * Get filter snapshot for React useSyncExternalStore
98
+ */
99
+ export declare function getFilterSnapshot(): Map<string, EntityFilters>;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Entity Filtering Utilities
3
+ *
4
+ * Provides filter types and utility functions for filtering entity records.
5
+ * Used by EntityStore and can be imported by runtime preview.
6
+ */
7
+ /** Filter value for a single field (entity filtering) */
8
+ export interface EntityFilterValue {
9
+ /** The field key (may include suffix like _from, _to for date ranges) */
10
+ field: string;
11
+ /** The actual record field to compare against (defaults to field if not specified) */
12
+ targetField?: string;
13
+ value: unknown;
14
+ /** Comparison operator for filtering
15
+ * - eq: exact match (default)
16
+ * - contains: substring match for strings
17
+ * - in: value is in array
18
+ * - date_eq: same date (ignoring time)
19
+ * - date_gte: on or after date
20
+ * - date_lte: on or before date
21
+ */
22
+ operator?: FilterOperator;
23
+ }
24
+ /** Operator type for filter */
25
+ export type FilterOperator = 'eq' | 'contains' | 'in' | 'date_eq' | 'date_gte' | 'date_lte' | 'search';
26
+ /** Filter state for an entity - Map of field key to filter value */
27
+ export type EntityFilters = Map<string, EntityFilterValue>;
28
+ /** Record type that can be filtered */
29
+ export interface FilterableRecord {
30
+ id: string;
31
+ [key: string]: unknown;
32
+ }
33
+ /**
34
+ * Extract date part from ISO string or Date object.
35
+ * Returns format: "YYYY-MM-DD"
36
+ */
37
+ export declare function getDateString(value: unknown): string | null;
38
+ /**
39
+ * Apply a single filter to check if a record matches.
40
+ * Returns true if the record passes the filter.
41
+ */
42
+ export declare function matchesFilter(record: FilterableRecord, filter: EntityFilterValue): boolean;
43
+ /**
44
+ * Apply all filters to a list of records.
45
+ * Returns only records that match ALL filters.
46
+ */
47
+ export declare function applyFilters<T extends FilterableRecord>(records: T[], entityFilters: EntityFilters): T[];
48
+ /**
49
+ * Create a filter value with proper defaults.
50
+ */
51
+ export declare function createFilter(field: string, value: unknown, operator?: FilterOperator, targetField?: string): EntityFilterValue;
@@ -1,151 +1,7 @@
1
1
  /**
2
- * Entity Filtering Utilities
2
+ * Stores
3
3
  *
4
- * Provides filter types and utility functions for filtering entity records.
5
- * Used by EntityStore and can be imported by runtime preview.
4
+ * Module-level state management for entities and filtering.
6
5
  */
7
- /** Filter value for a single field (entity filtering) */
8
- interface EntityFilterValue {
9
- /** The field key (may include suffix like _from, _to for date ranges) */
10
- field: string;
11
- /** The actual record field to compare against (defaults to field if not specified) */
12
- targetField?: string;
13
- value: unknown;
14
- /** Comparison operator for filtering
15
- * - eq: exact match (default)
16
- * - contains: substring match for strings
17
- * - in: value is in array
18
- * - date_eq: same date (ignoring time)
19
- * - date_gte: on or after date
20
- * - date_lte: on or before date
21
- */
22
- operator?: FilterOperator;
23
- }
24
- /** Operator type for filter */
25
- type FilterOperator = 'eq' | 'contains' | 'in' | 'date_eq' | 'date_gte' | 'date_lte' | 'search';
26
- /** Filter state for an entity - Map of field key to filter value */
27
- type EntityFilters = Map<string, EntityFilterValue>;
28
- /** Record type that can be filtered */
29
- interface FilterableRecord {
30
- id: string;
31
- [key: string]: unknown;
32
- }
33
- /**
34
- * Extract date part from ISO string or Date object.
35
- * Returns format: "YYYY-MM-DD"
36
- */
37
- declare function getDateString(value: unknown): string | null;
38
- /**
39
- * Apply a single filter to check if a record matches.
40
- * Returns true if the record passes the filter.
41
- */
42
- declare function matchesFilter(record: FilterableRecord, filter: EntityFilterValue): boolean;
43
- /**
44
- * Apply all filters to a list of records.
45
- * Returns only records that match ALL filters.
46
- */
47
- declare function applyFilters<T extends FilterableRecord>(records: T[], entityFilters: EntityFilters): T[];
48
- /**
49
- * Create a filter value with proper defaults.
50
- */
51
- declare function createFilter(field: string, value: unknown, operator?: FilterOperator, targetField?: string): EntityFilterValue;
52
-
53
- /**
54
- * Entity Store
55
- *
56
- * Simple module-level store for runtime entities.
57
- * No providers needed - hooks import and use directly.
58
- *
59
- * NOTE: Mutations create new Map instances to trigger React rerenders
60
- * when using useSyncExternalStore.
61
- */
62
-
63
- interface Entity {
64
- id: string;
65
- type: string;
66
- [key: string]: unknown;
67
- }
68
- type Listener = () => void;
69
- /**
70
- * Subscribe to store changes
71
- */
72
- declare function subscribe(listener: Listener): () => void;
73
- /**
74
- * Get all entities
75
- */
76
- declare function getEntities(): Map<string, Entity>;
77
- /**
78
- * Get entity by ID
79
- */
80
- declare function getEntity(id: string): Entity | undefined;
81
- /**
82
- * Get entities by type
83
- */
84
- declare function getByType(type: string | string[]): Entity[];
85
- /**
86
- * Get all entities as array
87
- */
88
- declare function getAllEntities(): Entity[];
89
- /**
90
- * Get singleton entity by type (first of that type)
91
- */
92
- declare function getSingleton(type: string): Entity | undefined;
93
- /**
94
- * Spawn a new entity
95
- */
96
- declare function spawnEntity(config: {
97
- type: string;
98
- id?: string;
99
- [key: string]: unknown;
100
- }): string;
101
- /**
102
- * Update an entity
103
- */
104
- declare function updateEntity(id: string, updates: Partial<Entity>): void;
105
- /**
106
- * Update singleton entity by type
107
- */
108
- declare function updateSingleton(type: string, updates: Partial<Entity>): void;
109
- /**
110
- * Remove an entity
111
- */
112
- declare function removeEntity(id: string): void;
113
- /**
114
- * Clear all entities
115
- */
116
- declare function clearEntities(): void;
117
- /**
118
- * Set a filter for an entity type
119
- * @param entityType - The entity type to filter (e.g., "Player", "Enemy")
120
- * @param field - The filter key (e.g., 'status' or 'date_from')
121
- * @param value - The filter value
122
- * @param operator - The comparison operator
123
- * @param targetField - The actual record field to compare (defaults to field)
124
- */
125
- declare function setFilter(entityType: string, field: string, value: unknown, operator?: FilterOperator, targetField?: string): void;
126
- /**
127
- * Clear a specific filter
128
- */
129
- declare function clearFilter(entityType: string, field: string): void;
130
- /**
131
- * Clear all filters for an entity type
132
- */
133
- declare function clearAllFilters(entityType: string): void;
134
- /**
135
- * Get active filters for an entity type
136
- */
137
- declare function getFilters(entityType: string): EntityFilters;
138
- /**
139
- * Get entities by type with optional filtering
140
- */
141
- declare function getByTypeFiltered(type: string | string[]): Entity[];
142
- /**
143
- * Get snapshot for React useSyncExternalStore
144
- */
145
- declare function getSnapshot(): Map<string, Entity>;
146
- /**
147
- * Get filter snapshot for React useSyncExternalStore
148
- */
149
- declare function getFilterSnapshot(): Map<string, EntityFilters>;
150
-
151
- export { type Entity, type EntityFilterValue, type EntityFilters, type FilterOperator, type FilterableRecord, applyFilters, clearAllFilters, clearEntities, clearFilter, createFilter, getAllEntities, getByType, getByTypeFiltered, getDateString, getEntities, getEntity, getFilterSnapshot, getFilters, getSingleton, getSnapshot, matchesFilter, removeEntity, setFilter, spawnEntity, subscribe, updateEntity, updateSingleton };
6
+ export * from './filtering';
7
+ export * from './entityStore';
@@ -0,0 +1,2 @@
1
+ declare const _default: import("tsup").Options | import("tsup").Options[] | ((overrideOptions: import("tsup").Options) => import("tsup").Options | import("tsup").Options[] | Promise<import("tsup").Options | import("tsup").Options[]>);
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vite").UserConfig;
2
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "2.13.3",
3
+ "version": "2.15.0",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",
@@ -82,6 +82,7 @@
82
82
  "themes"
83
83
  ],
84
84
  "publishConfig": {
85
+ "registry": "https://registry.npmjs.org",
85
86
  "access": "public"
86
87
  },
87
88
  "dependencies": {
@@ -102,7 +103,7 @@
102
103
  },
103
104
  "peerDependencies": {
104
105
  "@react-three/drei": "^9.92.0 || ^10.0.0",
105
- "@react-three/fiber": "^8.15.0",
106
+ "@react-three/fiber": "^9.0.0",
106
107
  "@tanstack/react-query": "^5.0.0",
107
108
  "react": ">=18.0.0",
108
109
  "react-dom": ">=18.0.0",
@@ -150,7 +151,7 @@
150
151
  },
151
152
  "repository": {
152
153
  "type": "git",
153
- "url": "https://github.com/almadar-io/almadar.git",
154
+ "url": "https://github.com/almadar-io/almadar-ui.git",
154
155
  "directory": "docs/packages/ui"
155
156
  },
156
157
  "license": "MIT",
@@ -163,7 +164,7 @@
163
164
  ],
164
165
  "homepage": "https://github.com/almadar-io/almadar#readme",
165
166
  "scripts": {
166
- "build": "tsup && tsc --declaration --emitDeclarationOnly --outDir dist --skipLibCheck",
167
+ "build": "tsup && tsc -p tsconfig.build.json",
167
168
  "build:watch": "tsup --watch",
168
169
  "storybook": "storybook dev -p 6006",
169
170
  "build-storybook": "storybook build -o storybook-static",
@@ -1,48 +0,0 @@
1
- // lib/traitRegistry.ts
2
- var traits = /* @__PURE__ */ new Map();
3
- var listeners = /* @__PURE__ */ new Set();
4
- function notifyListeners() {
5
- listeners.forEach((listener) => listener());
6
- }
7
- function registerTrait(info) {
8
- traits.set(info.id, info);
9
- notifyListeners();
10
- }
11
- function updateTraitState(id, newState) {
12
- const trait = traits.get(id);
13
- if (trait) {
14
- trait.currentState = newState;
15
- trait.transitionCount++;
16
- notifyListeners();
17
- }
18
- }
19
- function updateGuardResult(traitId, guardName, result) {
20
- const trait = traits.get(traitId);
21
- if (trait) {
22
- const guard = trait.guards.find((g) => g.name === guardName);
23
- if (guard) {
24
- guard.lastResult = result;
25
- notifyListeners();
26
- }
27
- }
28
- }
29
- function unregisterTrait(id) {
30
- traits.delete(id);
31
- notifyListeners();
32
- }
33
- function getAllTraits() {
34
- return Array.from(traits.values());
35
- }
36
- function getTrait(id) {
37
- return traits.get(id);
38
- }
39
- function subscribeToTraitChanges(listener) {
40
- listeners.add(listener);
41
- return () => listeners.delete(listener);
42
- }
43
- function clearTraits() {
44
- traits.clear();
45
- notifyListeners();
46
- }
47
-
48
- export { clearTraits, getAllTraits, getTrait, registerTrait, subscribeToTraitChanges, unregisterTrait, updateGuardResult, updateTraitState };