@almadar/ui 5.111.0 → 5.112.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 (587) hide show
  1. package/dist/GameAudioProvider-CPGwD49P.d.cts +151 -0
  2. package/dist/GameAudioProvider-CPGwD49P.d.ts +151 -0
  3. package/dist/TraitProvider-YkK6tXDw.d.cts +236 -0
  4. package/dist/TraitProvider-YkK6tXDw.d.ts +236 -0
  5. package/dist/{providers/UISlotContext.d.ts → UISlotContext-C1FsU9GB.d.ts} +14 -10
  6. package/dist/UISlotContext-D8_SoDsD.d.cts +79 -0
  7. package/dist/UserContext-bziZwgFL.d.cts +278 -0
  8. package/dist/UserContext-bziZwgFL.d.ts +278 -0
  9. package/dist/avl/index.cjs +97 -16
  10. package/dist/avl/index.js +99 -18
  11. package/dist/avl-schema-parser-DKRm-nyh.d.cts +611 -0
  12. package/dist/avl-schema-parser-DKRm-nyh.d.ts +611 -0
  13. package/dist/cn-BbPvQLHt.d.cts +294 -0
  14. package/dist/cn-BbPvQLHt.d.ts +294 -0
  15. package/dist/components/index.cjs +27 -5
  16. package/dist/components/index.d.cts +11224 -0
  17. package/dist/components/index.d.ts +11224 -6
  18. package/dist/components/index.js +27 -5
  19. package/dist/{lib/themeTokens.d.ts → context/index.d.cts} +13 -4
  20. package/dist/context/index.d.ts +62 -9
  21. package/dist/{types/event-bus-types.d.ts → event-bus-types-Bl78kokd.d.cts} +7 -6
  22. package/dist/event-bus-types-Bl78kokd.d.ts +65 -0
  23. package/dist/hooks/index.d.cts +995 -0
  24. package/dist/hooks/index.d.ts +994 -32
  25. package/dist/lib/drawable/three/index.cjs +11 -24
  26. package/dist/lib/drawable/three/index.d.cts +1484 -0
  27. package/dist/lib/drawable/three/index.d.ts +1483 -38
  28. package/dist/lib/drawable/three/index.js +11 -24
  29. package/dist/lib/index.d.cts +504 -0
  30. package/dist/lib/index.d.ts +503 -18
  31. package/dist/locales/index.d.cts +22 -0
  32. package/dist/locales/index.d.ts +7 -5
  33. package/dist/offline-executor-aRuNznZx.d.cts +520 -0
  34. package/dist/offline-executor-aRuNznZx.d.ts +520 -0
  35. package/dist/providers/index.cjs +27 -5
  36. package/dist/providers/index.d.cts +428 -0
  37. package/dist/providers/index.d.ts +427 -26
  38. package/dist/providers/index.js +27 -5
  39. package/dist/renderer/index.cjs +1 -1
  40. package/dist/renderer/index.d.cts +343 -0
  41. package/dist/renderer/index.d.ts +337 -22
  42. package/dist/renderer/index.js +1 -1
  43. package/dist/runtime/index.cjs +97 -16
  44. package/dist/runtime/index.d.cts +426 -0
  45. package/dist/runtime/index.d.ts +421 -16
  46. package/dist/runtime/index.js +99 -18
  47. package/dist/useEventBus-CQWyAWpK.d.ts +65 -0
  48. package/dist/useEventBus-Ckr4wqW3.d.cts +65 -0
  49. package/dist/{hooks/useUISlots.d.ts → useUISlots-BesZYMks.d.cts} +16 -14
  50. package/dist/useUISlots-BesZYMks.d.ts +216 -0
  51. package/package.json +11 -11
  52. package/dist/avl/index.d.cts +0 -1853
  53. package/dist/avl/index.d.ts +0 -64
  54. package/dist/components/avl/atoms/Avl3DLabel.d.ts +0 -23
  55. package/dist/components/avl/atoms/Avl3DTooltip.d.ts +0 -25
  56. package/dist/components/avl/atoms/AvlApplication.d.ts +0 -8
  57. package/dist/components/avl/atoms/AvlBinding.d.ts +0 -12
  58. package/dist/components/avl/atoms/AvlBindingRef.d.ts +0 -7
  59. package/dist/components/avl/atoms/AvlEffect.d.ts +0 -10
  60. package/dist/components/avl/atoms/AvlEntity.d.ts +0 -9
  61. package/dist/components/avl/atoms/AvlEvent.d.ts +0 -7
  62. package/dist/components/avl/atoms/AvlField.d.ts +0 -10
  63. package/dist/components/avl/atoms/AvlFieldType.d.ts +0 -8
  64. package/dist/components/avl/atoms/AvlGuard.d.ts +0 -7
  65. package/dist/components/avl/atoms/AvlLiteral.d.ts +0 -7
  66. package/dist/components/avl/atoms/AvlOperator.d.ts +0 -8
  67. package/dist/components/avl/atoms/AvlOrbital.d.ts +0 -11
  68. package/dist/components/avl/atoms/AvlPage.d.ts +0 -7
  69. package/dist/components/avl/atoms/AvlPersistence.d.ts +0 -8
  70. package/dist/components/avl/atoms/AvlSExpr.d.ts +0 -8
  71. package/dist/components/avl/atoms/AvlState.d.ts +0 -15
  72. package/dist/components/avl/atoms/AvlTrait.d.ts +0 -13
  73. package/dist/components/avl/atoms/AvlTransition.d.ts +0 -18
  74. package/dist/components/avl/atoms/index.d.ts +0 -24
  75. package/dist/components/avl/hooks/useCanvasDnd.d.ts +0 -155
  76. package/dist/components/avl/lib/avl-3d-layout.d.ts +0 -116
  77. package/dist/components/avl/lib/avl-behavior-compose-converter.d.ts +0 -55
  78. package/dist/components/avl/lib/avl-elk-layout.d.ts +0 -55
  79. package/dist/components/avl/lib/avl-flow-converter.d.ts +0 -17
  80. package/dist/components/avl/lib/avl-layout.d.ts +0 -32
  81. package/dist/components/avl/lib/avl-preview-converter.d.ts +0 -71
  82. package/dist/components/avl/lib/avl-schema-parser.d.ts +0 -128
  83. package/dist/components/avl/lib/avl-story-schemas.d.ts +0 -34
  84. package/dist/components/avl/lib/avl-zoom-band.d.ts +0 -19
  85. package/dist/components/avl/lib/avl-zoom-state.d.ts +0 -72
  86. package/dist/components/avl/lib/derive-edit-focus.d.ts +0 -8
  87. package/dist/components/avl/lib/wire-validation.d.ts +0 -30
  88. package/dist/components/avl/molecules/Avl3DCrossWire.d.ts +0 -22
  89. package/dist/components/avl/molecules/Avl3DEntityCore.d.ts +0 -26
  90. package/dist/components/avl/molecules/Avl3DExprTree.d.ts +0 -21
  91. package/dist/components/avl/molecules/Avl3DOrbitalNode.d.ts +0 -29
  92. package/dist/components/avl/molecules/Avl3DStateNode.d.ts +0 -34
  93. package/dist/components/avl/molecules/Avl3DTransitionArc.d.ts +0 -38
  94. package/dist/components/avl/molecules/AvlBackwardEdge.d.ts +0 -8
  95. package/dist/components/avl/molecules/AvlBehaviorGlyph.d.ts +0 -61
  96. package/dist/components/avl/molecules/AvlBindingEdge.d.ts +0 -9
  97. package/dist/components/avl/molecules/AvlClosedCircuit.d.ts +0 -20
  98. package/dist/components/avl/molecules/AvlEmitListen.d.ts +0 -16
  99. package/dist/components/avl/molecules/AvlEventWireEdge.d.ts +0 -15
  100. package/dist/components/avl/molecules/AvlExprTree.d.ts +0 -13
  101. package/dist/components/avl/molecules/AvlOrbitalNode.d.ts +0 -12
  102. package/dist/components/avl/molecules/AvlOrbitalUnit.d.ts +0 -20
  103. package/dist/components/avl/molecules/AvlPageEdge.d.ts +0 -8
  104. package/dist/components/avl/molecules/AvlSlotMap.d.ts +0 -18
  105. package/dist/components/avl/molecules/AvlStateMachine.d.ts +0 -22
  106. package/dist/components/avl/molecules/AvlSwimLane.d.ts +0 -10
  107. package/dist/components/avl/molecules/AvlTransitionEdge.d.ts +0 -17
  108. package/dist/components/avl/molecules/AvlTransitionLane.d.ts +0 -18
  109. package/dist/components/avl/molecules/BehaviorComposeNode.d.ts +0 -13
  110. package/dist/components/avl/molecules/BehaviorView.d.ts +0 -12
  111. package/dist/components/avl/molecules/DetailView.d.ts +0 -13
  112. package/dist/components/avl/molecules/EventFlowEdge.d.ts +0 -13
  113. package/dist/components/avl/molecules/MiniStateMachine.d.ts +0 -14
  114. package/dist/components/avl/molecules/ModuleCard.d.ts +0 -22
  115. package/dist/components/avl/molecules/OrbPreviewNode.d.ts +0 -38
  116. package/dist/components/avl/molecules/SystemNode.d.ts +0 -12
  117. package/dist/components/avl/molecules/TraitCardNode.d.ts +0 -33
  118. package/dist/components/avl/molecules/index.d.ts +0 -38
  119. package/dist/components/avl/organisms/Avl3DApplicationScene.d.ts +0 -19
  120. package/dist/components/avl/organisms/Avl3DEffects.d.ts +0 -18
  121. package/dist/components/avl/organisms/Avl3DOrbitalScene.d.ts +0 -23
  122. package/dist/components/avl/organisms/Avl3DTraitScene.d.ts +0 -19
  123. package/dist/components/avl/organisms/Avl3DTransitionScene.d.ts +0 -17
  124. package/dist/components/avl/organisms/Avl3DViewer.d.ts +0 -40
  125. package/dist/components/avl/organisms/AvlClickTarget.d.ts +0 -31
  126. package/dist/components/avl/organisms/AvlCosmicZoom.d.ts +0 -41
  127. package/dist/components/avl/organisms/AvlLegend.d.ts +0 -15
  128. package/dist/components/avl/organisms/AvlOrbitalsCosmicZoom.d.ts +0 -54
  129. package/dist/components/avl/organisms/AvlTraitScene.d.ts +0 -17
  130. package/dist/components/avl/organisms/AvlTransitionDetail.d.ts +0 -20
  131. package/dist/components/avl/organisms/AvlTransitionScene.d.ts +0 -13
  132. package/dist/components/avl/organisms/FlowCanvas.d.ts +0 -134
  133. package/dist/components/avl/organisms/OrbInspector.d.ts +0 -45
  134. package/dist/components/avl/organisms/ZoomBreadcrumb.d.ts +0 -16
  135. package/dist/components/avl/organisms/ZoomLegend.d.ts +0 -10
  136. package/dist/components/avl/organisms/index.d.ts +0 -19
  137. package/dist/components/avl/providers/avl-3d-context.d.ts +0 -32
  138. package/dist/components/avl/types/avl-atom-types.d.ts +0 -53
  139. package/dist/components/avl/types/avl-behavior-compose-types.d.ts +0 -120
  140. package/dist/components/avl/types/avl-canvas-types.d.ts +0 -39
  141. package/dist/components/avl/types/avl-preview-types.d.ts +0 -240
  142. package/dist/components/core/atoms/Aside.d.ts +0 -15
  143. package/dist/components/core/atoms/AtlasImage.d.ts +0 -58
  144. package/dist/components/core/atoms/Avatar.d.ts +0 -61
  145. package/dist/components/core/atoms/Badge.d.ts +0 -29
  146. package/dist/components/core/atoms/Box.d.ts +0 -68
  147. package/dist/components/core/atoms/Button.d.ts +0 -33
  148. package/dist/components/core/atoms/Card.d.ts +0 -34
  149. package/dist/components/core/atoms/Center.d.ts +0 -33
  150. package/dist/components/core/atoms/Checkbox.d.ts +0 -14
  151. package/dist/components/core/atoms/ConditionalWrapper.d.ts +0 -69
  152. package/dist/components/core/atoms/ConfettiEffect.d.ts +0 -19
  153. package/dist/components/core/atoms/DayCell.d.ts +0 -22
  154. package/dist/components/core/atoms/Dialog.d.ts +0 -18
  155. package/dist/components/core/atoms/Divider.d.ts +0 -29
  156. package/dist/components/core/atoms/FilterPill.d.ts +0 -30
  157. package/dist/components/core/atoms/FlipContainer.d.ts +0 -21
  158. package/dist/components/core/atoms/GameIcon.d.ts +0 -19
  159. package/dist/components/core/atoms/Icon.d.ts +0 -57
  160. package/dist/components/core/atoms/InfiniteScrollSentinel.d.ts +0 -24
  161. package/dist/components/core/atoms/Input.d.ts +0 -39
  162. package/dist/components/core/atoms/Label.d.ts +0 -12
  163. package/dist/components/core/atoms/LawReferenceTooltip.d.ts +0 -48
  164. package/dist/components/core/atoms/Overlay.d.ts +0 -17
  165. package/dist/components/core/atoms/ProgressBar.d.ts +0 -63
  166. package/dist/components/core/atoms/Radio.d.ts +0 -35
  167. package/dist/components/core/atoms/RangeSlider.d.ts +0 -34
  168. package/dist/components/core/atoms/SectionHeader.d.ts +0 -14
  169. package/dist/components/core/atoms/Select.d.ts +0 -49
  170. package/dist/components/core/atoms/Spacer.d.ts +0 -25
  171. package/dist/components/core/atoms/Sparkline.d.ts +0 -30
  172. package/dist/components/core/atoms/Spinner.d.ts +0 -10
  173. package/dist/components/core/atoms/Stack.d.ts +0 -67
  174. package/dist/components/core/atoms/StatusDot.d.ts +0 -16
  175. package/dist/components/core/atoms/Switch.d.ts +0 -12
  176. package/dist/components/core/atoms/TextHighlight.d.ts +0 -54
  177. package/dist/components/core/atoms/Textarea.d.ts +0 -17
  178. package/dist/components/core/atoms/ThemeToggle.d.ts +0 -33
  179. package/dist/components/core/atoms/TimeSlotCell.d.ts +0 -23
  180. package/dist/components/core/atoms/TraitFrame.d.ts +0 -54
  181. package/dist/components/core/atoms/TrendIndicator.d.ts +0 -20
  182. package/dist/components/core/atoms/TypewriterText.d.ts +0 -20
  183. package/dist/components/core/atoms/Typography.d.ts +0 -39
  184. package/dist/components/core/atoms/index.d.ts +0 -52
  185. package/dist/components/core/atoms/svg/SvgBranch.d.ts +0 -16
  186. package/dist/components/core/atoms/svg/SvgConnection.d.ts +0 -17
  187. package/dist/components/core/atoms/svg/SvgFlow.d.ts +0 -14
  188. package/dist/components/core/atoms/svg/SvgGrid.d.ts +0 -18
  189. package/dist/components/core/atoms/svg/SvgLobe.d.ts +0 -17
  190. package/dist/components/core/atoms/svg/SvgMesh.d.ts +0 -16
  191. package/dist/components/core/atoms/svg/SvgMorph.d.ts +0 -15
  192. package/dist/components/core/atoms/svg/SvgNode.d.ts +0 -16
  193. package/dist/components/core/atoms/svg/SvgPulse.d.ts +0 -16
  194. package/dist/components/core/atoms/svg/SvgRing.d.ts +0 -17
  195. package/dist/components/core/atoms/svg/SvgShield.d.ts +0 -15
  196. package/dist/components/core/atoms/svg/SvgStack.d.ts +0 -17
  197. package/dist/components/core/atoms/svg/index.d.ts +0 -12
  198. package/dist/components/core/atoms/types.d.ts +0 -47
  199. package/dist/components/core/molecules/Accordion.d.ts +0 -71
  200. package/dist/components/core/molecules/ActivationBlock.d.ts +0 -22
  201. package/dist/components/core/molecules/Alert.d.ts +0 -25
  202. package/dist/components/core/molecules/AnimatedCounter.d.ts +0 -18
  203. package/dist/components/core/molecules/AssetPicker.d.ts +0 -21
  204. package/dist/components/core/molecules/BloomQuizBlock.d.ts +0 -25
  205. package/dist/components/core/molecules/BranchingLogicBuilder.d.ts +0 -33
  206. package/dist/components/core/molecules/Breadcrumb.d.ts +0 -55
  207. package/dist/components/core/molecules/ButtonGroup.d.ts +0 -77
  208. package/dist/components/core/molecules/CalendarGrid.d.ts +0 -61
  209. package/dist/components/core/molecules/Card.d.ts +0 -58
  210. package/dist/components/core/molecules/Carousel.d.ts +0 -42
  211. package/dist/components/core/molecules/Chart.d.ts +0 -106
  212. package/dist/components/core/molecules/ChartLegend.d.ts +0 -20
  213. package/dist/components/core/molecules/Coachmark.d.ts +0 -47
  214. package/dist/components/core/molecules/ConfirmDialog.d.ts +0 -49
  215. package/dist/components/core/molecules/ConnectionBlock.d.ts +0 -18
  216. package/dist/components/core/molecules/Container.d.ts +0 -30
  217. package/dist/components/core/molecules/ContentRenderer.d.ts +0 -23
  218. package/dist/components/core/molecules/DataGrid.d.ts +0 -117
  219. package/dist/components/core/molecules/DataList.d.ts +0 -129
  220. package/dist/components/core/molecules/DateRangePicker.d.ts +0 -56
  221. package/dist/components/core/molecules/DateRangeSelector.d.ts +0 -21
  222. package/dist/components/core/molecules/DocBreadcrumb.d.ts +0 -20
  223. package/dist/components/core/molecules/DocPagination.d.ts +0 -21
  224. package/dist/components/core/molecules/DocSearch.d.ts +0 -22
  225. package/dist/components/core/molecules/DocSidebar.d.ts +0 -24
  226. package/dist/components/core/molecules/DocTOC.d.ts +0 -24
  227. package/dist/components/core/molecules/DocumentViewer.d.ts +0 -61
  228. package/dist/components/core/molecules/Drawer.d.ts +0 -47
  229. package/dist/components/core/molecules/EdgeDecoration.d.ts +0 -36
  230. package/dist/components/core/molecules/EmptyState.d.ts +0 -29
  231. package/dist/components/core/molecules/ErrorBoundary.d.ts +0 -54
  232. package/dist/components/core/molecules/ErrorState.d.ts +0 -14
  233. package/dist/components/core/molecules/FeatureGrid.d.ts +0 -19
  234. package/dist/components/core/molecules/FileTree.d.ts +0 -37
  235. package/dist/components/core/molecules/FilterGroup.d.ts +0 -61
  236. package/dist/components/core/molecules/Flex.d.ts +0 -43
  237. package/dist/components/core/molecules/FlipCard.d.ts +0 -24
  238. package/dist/components/core/molecules/FloatingActionButton.d.ts +0 -83
  239. package/dist/components/core/molecules/FormField.d.ts +0 -16
  240. package/dist/components/core/molecules/FormSection.d.ts +0 -39
  241. package/dist/components/core/molecules/FormSectionHeader.d.ts +0 -31
  242. package/dist/components/core/molecules/GradientDivider.d.ts +0 -15
  243. package/dist/components/core/molecules/GraphCanvas.d.ts +0 -83
  244. package/dist/components/core/molecules/GraphView.d.ts +0 -45
  245. package/dist/components/core/molecules/Grid.d.ts +0 -54
  246. package/dist/components/core/molecules/GridPicker.d.ts +0 -44
  247. package/dist/components/core/molecules/Header.d.ts +0 -113
  248. package/dist/components/core/molecules/IconPicker.d.ts +0 -18
  249. package/dist/components/core/molecules/InputGroup.d.ts +0 -24
  250. package/dist/components/core/molecules/JazariStateMachine.d.ts +0 -34
  251. package/dist/components/core/molecules/JsonTreeEditor.d.ts +0 -13
  252. package/dist/components/core/molecules/Lightbox.d.ts +0 -26
  253. package/dist/components/core/molecules/LikertScale.d.ts +0 -34
  254. package/dist/components/core/molecules/LineChart.d.ts +0 -35
  255. package/dist/components/core/molecules/LoadingState.d.ts +0 -7
  256. package/dist/components/core/molecules/MapView.d.ts +0 -87
  257. package/dist/components/core/molecules/MatrixQuestion.d.ts +0 -35
  258. package/dist/components/core/molecules/Menu.d.ts +0 -44
  259. package/dist/components/core/molecules/Meter.d.ts +0 -52
  260. package/dist/components/core/molecules/Modal.d.ts +0 -36
  261. package/dist/components/core/molecules/Navigation.d.ts +0 -67
  262. package/dist/components/core/molecules/NodeSlotEditor.d.ts +0 -17
  263. package/dist/components/core/molecules/NumberStepper.d.ts +0 -28
  264. package/dist/components/core/molecules/OnboardingSpotlight.d.ts +0 -27
  265. package/dist/components/core/molecules/OptionConstraintGroup.d.ts +0 -44
  266. package/dist/components/core/molecules/OrbitalVisualization.d.ts +0 -48
  267. package/dist/components/core/molecules/PageHeader.d.ts +0 -60
  268. package/dist/components/core/molecules/Pagination.d.ts +0 -71
  269. package/dist/components/core/molecules/Popover.d.ts +0 -39
  270. package/dist/components/core/molecules/PositionedCanvas.d.ts +0 -40
  271. package/dist/components/core/molecules/ProgressDots.d.ts +0 -24
  272. package/dist/components/core/molecules/PropertyInspector.d.ts +0 -38
  273. package/dist/components/core/molecules/PullToRefresh.d.ts +0 -22
  274. package/dist/components/core/molecules/QrScanner.d.ts +0 -24
  275. package/dist/components/core/molecules/QuizBlock.d.ts +0 -20
  276. package/dist/components/core/molecules/ReflectionBlock.d.ts +0 -23
  277. package/dist/components/core/molecules/RelationSelect.d.ts +0 -48
  278. package/dist/components/core/molecules/RepeatableFormSection.d.ts +0 -60
  279. package/dist/components/core/molecules/ReplyTree.d.ts +0 -46
  280. package/dist/components/core/molecules/RichBlockEditor.d.ts +0 -43
  281. package/dist/components/core/molecules/ScaledDiagram.d.ts +0 -20
  282. package/dist/components/core/molecules/SearchInput.d.ts +0 -60
  283. package/dist/components/core/molecules/Section.d.ts +0 -43
  284. package/dist/components/core/molecules/SidePanel.d.ts +0 -53
  285. package/dist/components/core/molecules/Sidebar.d.ts +0 -72
  286. package/dist/components/core/molecules/SignaturePad.d.ts +0 -46
  287. package/dist/components/core/molecules/SimpleGrid.d.ts +0 -27
  288. package/dist/components/core/molecules/Skeleton.d.ts +0 -35
  289. package/dist/components/core/molecules/SocialProof.d.ts +0 -25
  290. package/dist/components/core/molecules/SortableList.d.ts +0 -19
  291. package/dist/components/core/molecules/Split.d.ts +0 -41
  292. package/dist/components/core/molecules/StarRating.d.ts +0 -27
  293. package/dist/components/core/molecules/StatDisplay.d.ts +0 -58
  294. package/dist/components/core/molecules/SwipeableRow.d.ts +0 -26
  295. package/dist/components/core/molecules/TableView.d.ts +0 -111
  296. package/dist/components/core/molecules/Tabs.d.ts +0 -60
  297. package/dist/components/core/molecules/TagInput.d.ts +0 -52
  298. package/dist/components/core/molecules/Toast.d.ts +0 -36
  299. package/dist/components/core/molecules/Tooltip.d.ts +0 -25
  300. package/dist/components/core/molecules/UploadDropZone.d.ts +0 -28
  301. package/dist/components/core/molecules/VersionDiff.d.ts +0 -62
  302. package/dist/components/core/molecules/ViolationAlert.d.ts +0 -46
  303. package/dist/components/core/molecules/VoteStack.d.ts +0 -35
  304. package/dist/components/core/molecules/WizardContainer.d.ts +0 -166
  305. package/dist/components/core/molecules/WizardNavigation.d.ts +0 -61
  306. package/dist/components/core/molecules/WizardProgress.d.ts +0 -45
  307. package/dist/components/core/molecules/index.d.ts +0 -138
  308. package/dist/components/core/molecules/lessonSegmentUtils.d.ts +0 -18
  309. package/dist/components/core/molecules/markdown/CodeBlock.d.ts +0 -108
  310. package/dist/components/core/molecules/markdown/MarkdownContent.d.ts +0 -26
  311. package/dist/components/core/molecules/markdown/index.d.ts +0 -2
  312. package/dist/components/core/molecules/parseLessonSegments.d.ts +0 -44
  313. package/dist/components/core/molecules/useDataDnd.d.ts +0 -63
  314. package/dist/components/core/organisms/CardGrid.d.ts +0 -84
  315. package/dist/components/core/organisms/ChatBar.d.ts +0 -31
  316. package/dist/components/core/organisms/CodeRunnerPanel.d.ts +0 -42
  317. package/dist/components/core/organisms/ComponentPatterns.d.ts +0 -185
  318. package/dist/components/core/organisms/CustomPattern.d.ts +0 -105
  319. package/dist/components/core/organisms/DataTable.d.ts +0 -79
  320. package/dist/components/core/organisms/DetailPanel.d.ts +0 -80
  321. package/dist/components/core/organisms/DrawerSlot.d.ts +0 -42
  322. package/dist/components/core/organisms/Form.d.ts +0 -214
  323. package/dist/components/core/organisms/LayoutPatterns.d.ts +0 -108
  324. package/dist/components/core/organisms/List.d.ts +0 -81
  325. package/dist/components/core/organisms/MasterDetail.d.ts +0 -35
  326. package/dist/components/core/organisms/MediaGallery.d.ts +0 -63
  327. package/dist/components/core/organisms/ModalSlot.d.ts +0 -38
  328. package/dist/components/core/organisms/NotifyListener.d.ts +0 -15
  329. package/dist/components/core/organisms/SegmentRenderer.d.ts +0 -38
  330. package/dist/components/core/organisms/StatCard.d.ts +0 -65
  331. package/dist/components/core/organisms/StateMachineView.d.ts +0 -45
  332. package/dist/components/core/organisms/SubagentTracePanel.d.ts +0 -50
  333. package/dist/components/core/organisms/Timeline.d.ts +0 -71
  334. package/dist/components/core/organisms/ToastSlot.d.ts +0 -41
  335. package/dist/components/core/organisms/UISlotRenderer.d.ts +0 -116
  336. package/dist/components/core/organisms/book/index.d.ts +0 -7
  337. package/dist/components/core/organisms/book/types.d.ts +0 -62
  338. package/dist/components/core/organisms/component-registry.generated.d.ts +0 -9
  339. package/dist/components/core/organisms/debug/RuntimeDebugger.d.ts +0 -29
  340. package/dist/components/core/organisms/debug/WalkMinimap.d.ts +0 -17
  341. package/dist/components/core/organisms/debug/hooks/useDebugData.d.ts +0 -25
  342. package/dist/components/core/organisms/debug/index.d.ts +0 -13
  343. package/dist/components/core/organisms/debug/tabs/EntitiesTab.d.ts +0 -14
  344. package/dist/components/core/organisms/debug/tabs/EventDispatcherTab.d.ts +0 -18
  345. package/dist/components/core/organisms/debug/tabs/EventFlowTab.d.ts +0 -14
  346. package/dist/components/core/organisms/debug/tabs/GuardsPanel.d.ts +0 -14
  347. package/dist/components/core/organisms/debug/tabs/ServerBridgeTab.d.ts +0 -20
  348. package/dist/components/core/organisms/debug/tabs/TicksTab.d.ts +0 -14
  349. package/dist/components/core/organisms/debug/tabs/TraitsTab.d.ts +0 -14
  350. package/dist/components/core/organisms/debug/tabs/TransitionTimeline.d.ts +0 -19
  351. package/dist/components/core/organisms/debug/tabs/VerificationTab.d.ts +0 -17
  352. package/dist/components/core/organisms/index.d.ts +0 -33
  353. package/dist/components/core/organisms/layout/DashboardGrid.d.ts +0 -33
  354. package/dist/components/core/organisms/layout/MasterDetailLayout.d.ts +0 -32
  355. package/dist/components/core/organisms/layout/SplitPane.d.ts +0 -34
  356. package/dist/components/core/organisms/layout/TabbedContainer.d.ts +0 -42
  357. package/dist/components/core/organisms/layout/index.d.ts +0 -9
  358. package/dist/components/core/organisms/marketing-types.d.ts +0 -8
  359. package/dist/components/core/organisms/trace-edit-focus.d.ts +0 -14
  360. package/dist/components/core/organisms/types.d.ts +0 -72
  361. package/dist/components/core/templates/CounterTemplate.d.ts +0 -51
  362. package/dist/components/core/templates/DashboardLayout.d.ts +0 -110
  363. package/dist/components/core/templates/GenericAppTemplate.d.ts +0 -24
  364. package/dist/components/core/templates/index.d.ts +0 -10
  365. package/dist/components/core/templates/types.d.ts +0 -35
  366. package/dist/components/game/atoms/ChoiceButton.d.ts +0 -29
  367. package/dist/components/game/atoms/ControlButton.d.ts +0 -35
  368. package/dist/components/game/atoms/DialogueBubble.d.ts +0 -26
  369. package/dist/components/game/atoms/DrawShape.d.ts +0 -50
  370. package/dist/components/game/atoms/DrawSprite.d.ts +0 -47
  371. package/dist/components/game/atoms/DrawText.d.ts +0 -31
  372. package/dist/components/game/atoms/GameAudioToggle.d.ts +0 -34
  373. package/dist/components/game/atoms/HealthBar.d.ts +0 -32
  374. package/dist/components/game/atoms/MiniMap.d.ts +0 -40
  375. package/dist/components/game/atoms/ScoreDisplay.d.ts +0 -25
  376. package/dist/components/game/atoms/StateIndicator.d.ts +0 -29
  377. package/dist/components/game/atoms/TimerDisplay.d.ts +0 -22
  378. package/dist/components/game/molecules/ActionPalette.d.ts +0 -34
  379. package/dist/components/game/molecules/ActionTile.d.ts +0 -30
  380. package/dist/components/game/molecules/Canvas.d.ts +0 -96
  381. package/dist/components/game/molecules/Canvas2D.d.ts +0 -120
  382. package/dist/components/game/molecules/ControlGrid.d.ts +0 -49
  383. package/dist/components/game/molecules/DrawShapeLayer.d.ts +0 -19
  384. package/dist/components/game/molecules/DrawSpriteLayer.d.ts +0 -21
  385. package/dist/components/game/molecules/DrawTextLayer.d.ts +0 -22
  386. package/dist/components/game/molecules/GameHud.d.ts +0 -52
  387. package/dist/components/game/molecules/GameMenu.d.ts +0 -42
  388. package/dist/components/game/molecules/SequenceBar.d.ts +0 -51
  389. package/dist/components/game/molecules/StatBadge.d.ts +0 -39
  390. package/dist/components/game/molecules/StateGraph.d.ts +0 -38
  391. package/dist/components/game/molecules/StateJsonView.d.ts +0 -37
  392. package/dist/components/game/molecules/StateNode.d.ts +0 -31
  393. package/dist/components/game/molecules/TraitSlot.d.ts +0 -99
  394. package/dist/components/game/molecules/TraitStateViewer.d.ts +0 -52
  395. package/dist/components/game/molecules/TransitionArrow.d.ts +0 -31
  396. package/dist/components/game/molecules/index.d.ts +0 -39
  397. package/dist/components/game/patterns.d.ts +0 -20
  398. package/dist/components/game/templates/GameShell.d.ts +0 -35
  399. package/dist/components/learning/atoms/LearningCanvas.d.ts +0 -80
  400. package/dist/components/learning/molecules/AlgorithmCanvas.d.ts +0 -58
  401. package/dist/components/learning/molecules/BiologyCanvas.d.ts +0 -47
  402. package/dist/components/learning/molecules/ChemistryCanvas.d.ts +0 -55
  403. package/dist/components/learning/molecules/MathCanvas.d.ts +0 -61
  404. package/dist/components/learning/molecules/PhysicsCanvas.d.ts +0 -54
  405. package/dist/components/marketing/atoms/AnimatedCounter.d.ts +0 -20
  406. package/dist/components/marketing/atoms/AnimatedGraphic.d.ts +0 -32
  407. package/dist/components/marketing/atoms/AnimatedReveal.d.ts +0 -26
  408. package/dist/components/marketing/atoms/ContentSection.d.ts +0 -16
  409. package/dist/components/marketing/atoms/MarketingStatCard.d.ts +0 -13
  410. package/dist/components/marketing/atoms/PatternTile.d.ts +0 -41
  411. package/dist/components/marketing/molecules/ArticleSection.d.ts +0 -18
  412. package/dist/components/marketing/molecules/CTABanner.d.ts +0 -26
  413. package/dist/components/marketing/molecules/CaseStudyCard.d.ts +0 -24
  414. package/dist/components/marketing/molecules/CommunityLinks.d.ts +0 -28
  415. package/dist/components/marketing/molecules/FeatureCard.d.ts +0 -26
  416. package/dist/components/marketing/molecules/GeometricPattern.d.ts +0 -33
  417. package/dist/components/marketing/molecules/HeroSection.d.ts +0 -28
  418. package/dist/components/marketing/molecules/InstallBox.d.ts +0 -16
  419. package/dist/components/marketing/molecules/MarketingFooter.d.ts +0 -29
  420. package/dist/components/marketing/molecules/PricingCard.d.ts +0 -19
  421. package/dist/components/marketing/molecules/PricingGrid.d.ts +0 -13
  422. package/dist/components/marketing/molecules/PullQuote.d.ts +0 -14
  423. package/dist/components/marketing/molecules/ServiceCatalog.d.ts +0 -19
  424. package/dist/components/marketing/molecules/ShowcaseCard.d.ts +0 -18
  425. package/dist/components/marketing/molecules/SplitSection.d.ts +0 -19
  426. package/dist/components/marketing/molecules/StatsGrid.d.ts +0 -18
  427. package/dist/components/marketing/molecules/StepFlow.d.ts +0 -21
  428. package/dist/components/marketing/molecules/TagCloud.d.ts +0 -18
  429. package/dist/components/marketing/molecules/TeamCard.d.ts +0 -19
  430. package/dist/components/marketing/organisms/CaseStudyOrganism.d.ts +0 -29
  431. package/dist/components/marketing/organisms/FeatureGridOrganism.d.ts +0 -30
  432. package/dist/components/marketing/organisms/HeroOrganism.d.ts +0 -42
  433. package/dist/components/marketing/organisms/PricingOrganism.d.ts +0 -33
  434. package/dist/components/marketing/organisms/ShowcaseOrganism.d.ts +0 -34
  435. package/dist/components/marketing/organisms/StatsOrganism.d.ts +0 -23
  436. package/dist/components/marketing/organisms/StepFlowOrganism.d.ts +0 -29
  437. package/dist/components/marketing/organisms/TeamOrganism.d.ts +0 -28
  438. package/dist/components/marketing/organisms/book/BookChapterView.d.ts +0 -21
  439. package/dist/components/marketing/organisms/book/BookCoverPage.d.ts +0 -21
  440. package/dist/components/marketing/organisms/book/BookNavBar.d.ts +0 -19
  441. package/dist/components/marketing/organisms/book/BookTableOfContents.d.ts +0 -20
  442. package/dist/components/marketing/organisms/book/BookViewer.d.ts +0 -31
  443. package/dist/components/marketing/templates/AboutPageTemplate.d.ts +0 -53
  444. package/dist/components/marketing/templates/AuthLayout.d.ts +0 -15
  445. package/dist/components/marketing/templates/FeatureDetailPageTemplate.d.ts +0 -37
  446. package/dist/components/marketing/templates/LandingPageTemplate.d.ts +0 -70
  447. package/dist/components/marketing/templates/PricingPageTemplate.d.ts +0 -44
  448. package/dist/hooks/useAgentChat.d.ts +0 -105
  449. package/dist/hooks/useAlmadarDndCollision.d.ts +0 -34
  450. package/dist/hooks/useAuthContext.d.ts +0 -25
  451. package/dist/hooks/useCamera.d.ts +0 -57
  452. package/dist/hooks/useCanvasGestures.d.ts +0 -44
  453. package/dist/hooks/useClientEffects.d.ts +0 -88
  454. package/dist/hooks/useCompile.d.ts +0 -18
  455. package/dist/hooks/useDeepAgentGeneration.d.ts +0 -46
  456. package/dist/hooks/useDragReorder.d.ts +0 -26
  457. package/dist/hooks/useDraggable.d.ts +0 -25
  458. package/dist/hooks/useDropZone.d.ts +0 -23
  459. package/dist/hooks/useEventBus.d.ts +0 -99
  460. package/dist/hooks/useExtensions.d.ts +0 -32
  461. package/dist/hooks/useFileEditor.d.ts +0 -32
  462. package/dist/hooks/useFileSystem.d.ts +0 -50
  463. package/dist/hooks/useGameAudio.d.ts +0 -47
  464. package/dist/hooks/useGitHub.d.ts +0 -58
  465. package/dist/hooks/useImageCache.d.ts +0 -16
  466. package/dist/hooks/useInfiniteScroll.d.ts +0 -13
  467. package/dist/hooks/useLongPress.d.ts +0 -16
  468. package/dist/hooks/useOrbitalHistory.d.ts +0 -39
  469. package/dist/hooks/usePreview.d.ts +0 -57
  470. package/dist/hooks/usePullToRefresh.d.ts +0 -25
  471. package/dist/hooks/useQuerySingleton.d.ts +0 -79
  472. package/dist/hooks/useRenderInterpolation.d.ts +0 -33
  473. package/dist/hooks/useResolvedSchema.d.ts +0 -45
  474. package/dist/hooks/useSharedEntityStore.d.ts +0 -53
  475. package/dist/hooks/useSwipeGesture.d.ts +0 -26
  476. package/dist/hooks/useTapReveal.d.ts +0 -32
  477. package/dist/hooks/useTraitStateMachine.d.ts +0 -136
  478. package/dist/hooks/useTranslate.d.ts +0 -35
  479. package/dist/hooks/useUIEvents.d.ts +0 -41
  480. package/dist/hooks/useUnitSpriteAtlas.d.ts +0 -24
  481. package/dist/hooks/useValidation.d.ts +0 -46
  482. package/dist/lib/api-client.d.ts +0 -43
  483. package/dist/lib/atlasSlice.d.ts +0 -58
  484. package/dist/lib/boardEntity.d.ts +0 -44
  485. package/dist/lib/client-effect-executor.d.ts +0 -57
  486. package/dist/lib/cn.d.ts +0 -6
  487. package/dist/lib/createClientEffectHandlers.d.ts +0 -42
  488. package/dist/lib/data-resolver.d.ts +0 -55
  489. package/dist/lib/debug.d.ts +0 -36
  490. package/dist/lib/debugRegistry.d.ts +0 -30
  491. package/dist/lib/debugUtils.d.ts +0 -27
  492. package/dist/lib/drawable/contract.d.ts +0 -68
  493. package/dist/lib/drawable/hitTest.d.ts +0 -23
  494. package/dist/lib/drawable/paintDispatch.d.ts +0 -22
  495. package/dist/lib/drawable/projector.d.ts +0 -14
  496. package/dist/lib/drawable/projector3d.d.ts +0 -20
  497. package/dist/lib/drawable/three/Camera3D.d.ts +0 -60
  498. package/dist/lib/drawable/three/Canvas3DErrorBoundary.d.ts +0 -51
  499. package/dist/lib/drawable/three/Canvas3DHost.d.ts +0 -178
  500. package/dist/lib/drawable/three/Canvas3DLoadingState.d.ts +0 -44
  501. package/dist/lib/drawable/three/Drawable3D.d.ts +0 -20
  502. package/dist/lib/drawable/three/GameCamera3D.d.ts +0 -16
  503. package/dist/lib/drawable/three/Lighting3D.d.ts +0 -55
  504. package/dist/lib/drawable/three/ModelLoader.d.ts +0 -52
  505. package/dist/lib/drawable/three/Scene3D.d.ts +0 -37
  506. package/dist/lib/drawable/three/game3dTheme.d.ts +0 -14
  507. package/dist/lib/drawable/three/hooks/useAssetLoader.d.ts +0 -58
  508. package/dist/lib/drawable/three/hooks/useGameCanvas3DEvents.d.ts +0 -124
  509. package/dist/lib/drawable/three/hooks/useRaycaster.d.ts +0 -86
  510. package/dist/lib/drawable/three/hooks/useSceneGraph.d.ts +0 -67
  511. package/dist/lib/drawable/three/hooks/useThree.d.ts +0 -58
  512. package/dist/lib/drawable/three/lib/AssetLoader.d.ts +0 -80
  513. package/dist/lib/drawable/three/lib/culling.d.ts +0 -134
  514. package/dist/lib/drawable/three/lib/grid3D.d.ts +0 -154
  515. package/dist/lib/drawable/three/mesh3d.d.ts +0 -28
  516. package/dist/lib/editorUtils.d.ts +0 -114
  517. package/dist/lib/embedded-traits.d.ts +0 -39
  518. package/dist/lib/entityDebug.d.ts +0 -39
  519. package/dist/lib/fn-form-lambda.d.ts +0 -27
  520. package/dist/lib/game.d.ts +0 -92
  521. package/dist/lib/gameShared.d.ts +0 -18
  522. package/dist/lib/getNestedValue.d.ts +0 -34
  523. package/dist/lib/guardRegistry.d.ts +0 -33
  524. package/dist/lib/iconFamily.d.ts +0 -41
  525. package/dist/lib/imageCache.d.ts +0 -9
  526. package/dist/lib/init.d.ts +0 -14
  527. package/dist/lib/isometric.d.ts +0 -121
  528. package/dist/lib/isometricTypes.d.ts +0 -141
  529. package/dist/lib/jazari/index.d.ts +0 -5
  530. package/dist/lib/jazari/layout.d.ts +0 -31
  531. package/dist/lib/jazari/svg-paths.d.ts +0 -61
  532. package/dist/lib/jazari/types.d.ts +0 -91
  533. package/dist/lib/makeAsset.d.ts +0 -5
  534. package/dist/lib/mechanics.d.ts +0 -4
  535. package/dist/lib/offline-executor.d.ts +0 -239
  536. package/dist/lib/orbitalsByTrait.d.ts +0 -34
  537. package/dist/lib/painter2d.d.ts +0 -81
  538. package/dist/lib/parseContentSegments.d.ts +0 -42
  539. package/dist/lib/pattern-resolver.d.ts +0 -88
  540. package/dist/lib/perf.d.ts +0 -32
  541. package/dist/lib/physicsPresets.d.ts +0 -4
  542. package/dist/lib/physicsTypes.d.ts +0 -43
  543. package/dist/lib/prepareSchemaForPreview.d.ts +0 -71
  544. package/dist/lib/puzzleObject.d.ts +0 -41
  545. package/dist/lib/slot-definitions.d.ts +0 -33
  546. package/dist/lib/spriteAnimation.d.ts +0 -85
  547. package/dist/lib/spriteAnimationTypes.d.ts +0 -72
  548. package/dist/lib/spriteSheetConstants.d.ts +0 -16
  549. package/dist/lib/tickRegistry.d.ts +0 -40
  550. package/dist/lib/trait-binding-resolver.d.ts +0 -57
  551. package/dist/lib/traitRegistry.d.ts +0 -34
  552. package/dist/lib/verificationRegistry.d.ts +0 -97
  553. package/dist/lib/visualizer/browser.d.ts +0 -48
  554. package/dist/lib/visualizer/index.d.ts +0 -144
  555. package/dist/lib/webPainter2d.d.ts +0 -7
  556. package/dist/lib/wrapCallbackForEvent.d.ts +0 -16
  557. package/dist/marketing/index.d.cts +0 -1067
  558. package/dist/marketing/index.d.ts +0 -72
  559. package/dist/providers/CurrentPagePathContext.d.ts +0 -9
  560. package/dist/providers/DesignThemeContext.d.ts +0 -21
  561. package/dist/providers/EntitySchemaContext.d.ts +0 -81
  562. package/dist/providers/EventBusProvider.d.ts +0 -47
  563. package/dist/providers/GameAudioProvider.d.ts +0 -53
  564. package/dist/providers/OfflineModeProvider.d.ts +0 -79
  565. package/dist/providers/OrbitalProvider.d.ts +0 -110
  566. package/dist/providers/OrbitalThemeProvider.d.ts +0 -37
  567. package/dist/providers/SelectionProvider.d.ts +0 -82
  568. package/dist/providers/ServerBridge.d.ts +0 -102
  569. package/dist/providers/ThemeContext.d.ts +0 -104
  570. package/dist/providers/TraitProvider.d.ts +0 -53
  571. package/dist/providers/TraitScopeProvider.d.ts +0 -43
  572. package/dist/providers/UserContext.d.ts +0 -112
  573. package/dist/providers/VerificationProvider.d.ts +0 -64
  574. package/dist/providers/navigation.d.ts +0 -142
  575. package/dist/runtime/BrowserPlayground.d.ts +0 -34
  576. package/dist/runtime/OrbPreview.d.ts +0 -84
  577. package/dist/scripts/audit-tailwind-safelist.d.ts +0 -27
  578. package/dist/scripts/generate-design-system.d.ts +0 -29
  579. package/dist/scripts/generate-theme-from-schema.d.ts +0 -10
  580. package/dist/scripts/generate.d.ts +0 -12
  581. package/dist/scripts/suggest-components.d.ts +0 -31
  582. package/dist/scripts/types.d.ts +0 -129
  583. package/dist/tsup.config.d.ts +0 -3
  584. package/dist/types/renderer-types.d.ts +0 -146
  585. package/dist/types/runtime-types.d.ts +0 -21
  586. package/dist/types/slot-types.d.ts +0 -49
  587. package/dist/vitest.config.d.ts +0 -2
@@ -0,0 +1,294 @@
1
+ import { OrbitalSchema, SExpr, Effect, OrbitalVerificationAPI, TraitStateSnapshot, EventPayload, BusEvent, VerificationCheck, BridgeHealth, VerificationSnapshot, VerificationSummary, TransitionTrace, ServerResponseTrace, CheckStatus, AssetLoadStatus } from '@almadar/core';
2
+ import { ClassValue } from 'clsx';
3
+
4
+ /**
5
+ * Content Segment Parsing Utilities
6
+ *
7
+ * Parses rich content with code blocks and quiz tags into structured
8
+ * segments for rendering. Detects orbital schemas in JSON code blocks
9
+ * and marks them for JazariStateMachine rendering.
10
+ */
11
+
12
+ /** Segment types for content rendering */
13
+ type ContentSegment = {
14
+ type: 'markdown';
15
+ content: string;
16
+ } | {
17
+ type: 'code';
18
+ language: string;
19
+ content: string;
20
+ } | {
21
+ type: 'orbital';
22
+ language: string;
23
+ content: string;
24
+ schema: OrbitalSchema;
25
+ } | {
26
+ type: 'quiz';
27
+ question: string;
28
+ answer: string;
29
+ };
30
+ /**
31
+ * Parse markdown content to extract code blocks.
32
+ *
33
+ * Splits markdown into segments of plain markdown and fenced code blocks.
34
+ * JSON/orb code blocks containing orbital schemas are tagged as 'orbital'.
35
+ */
36
+ declare function parseMarkdownWithCodeBlocks(content: string | undefined | null): ContentSegment[];
37
+ /**
38
+ * Parse content to extract all segments including quiz tags and code blocks.
39
+ *
40
+ * Supported tags:
41
+ * - <question>q</question><answer>a</answer> — Quiz Q&A
42
+ *
43
+ * Also handles fenced code blocks (```language...```) with orbital detection.
44
+ */
45
+ declare function parseContentSegments(content: string | undefined | null): ContentSegment[];
46
+
47
+ /**
48
+ * Orbital State Machine Visualizer
49
+ *
50
+ * Renders SVG diagrams from Orbital schemas and Trait definitions.
51
+ * Can be used in documentation, IDE previews, and other tools.
52
+ */
53
+
54
+ interface VisualizerConfig {
55
+ nodeRadius: number;
56
+ nodeSpacing: number;
57
+ initialIndicatorOffset: number;
58
+ arrowSize: number;
59
+ colors: {
60
+ background: string;
61
+ node: string;
62
+ nodeBorder: string;
63
+ nodeText: string;
64
+ initialNode: string;
65
+ finalNode: string;
66
+ arrow: string;
67
+ arrowText: string;
68
+ effectText: string;
69
+ guardText: string;
70
+ initial: string;
71
+ };
72
+ fonts: {
73
+ node: string;
74
+ event: string;
75
+ effect: string;
76
+ };
77
+ }
78
+ interface StateDefinition {
79
+ name: string;
80
+ isInitial?: boolean;
81
+ isFinal?: boolean;
82
+ description?: string;
83
+ }
84
+ interface TransitionDefinition {
85
+ from: string;
86
+ to: string;
87
+ event: string;
88
+ guard?: SExpr | null;
89
+ effects?: Effect[];
90
+ }
91
+ interface StateMachineDefinition {
92
+ states: StateDefinition[];
93
+ transitions: TransitionDefinition[];
94
+ }
95
+ interface EntityDefinition {
96
+ name: string;
97
+ fields?: (string | {
98
+ name: string;
99
+ })[];
100
+ }
101
+ interface RenderOptions {
102
+ title?: string;
103
+ entity?: EntityDefinition;
104
+ }
105
+ /** Position data for a state node in DOM layout */
106
+ interface DomStateNode {
107
+ id: string;
108
+ name: string;
109
+ x: number;
110
+ y: number;
111
+ radius: number;
112
+ isInitial: boolean;
113
+ isFinal: boolean;
114
+ description?: string;
115
+ }
116
+ /** Position data for a transition arrow */
117
+ interface DomTransitionPath {
118
+ id: string;
119
+ from: string;
120
+ to: string;
121
+ /** SVG path data for the curved arrow */
122
+ pathData: string;
123
+ /** Midpoint for label positioning */
124
+ labelX: number;
125
+ labelY: number;
126
+ }
127
+ /** Position data for a transition label with guard/effect details */
128
+ interface DomTransitionLabel {
129
+ id: string;
130
+ from: string;
131
+ to: string;
132
+ event: string;
133
+ x: number;
134
+ y: number;
135
+ /** Human-readable guard text (e.g., "if amount > 100") */
136
+ guardText?: string;
137
+ /** Human-readable effect texts */
138
+ effectTexts: string[];
139
+ /** Whether this transition has details to show in tooltip */
140
+ hasDetails: boolean;
141
+ }
142
+ /** Entity input box data */
143
+ interface DomEntityBox {
144
+ name: string;
145
+ fields: string[];
146
+ x: number;
147
+ y: number;
148
+ width: number;
149
+ height: number;
150
+ }
151
+ /** Output effects box data */
152
+ interface DomOutputsBox {
153
+ outputs: string[];
154
+ x: number;
155
+ y: number;
156
+ width: number;
157
+ height: number;
158
+ }
159
+ /** Complete DOM layout data for rendering */
160
+ interface DomLayoutData {
161
+ width: number;
162
+ height: number;
163
+ title?: string;
164
+ states: DomStateNode[];
165
+ paths: DomTransitionPath[];
166
+ labels: DomTransitionLabel[];
167
+ entity?: DomEntityBox;
168
+ outputs?: DomOutputsBox;
169
+ config: VisualizerConfig;
170
+ }
171
+ declare const DEFAULT_CONFIG: VisualizerConfig;
172
+ declare function formatGuard(guard: SExpr | null | undefined): string;
173
+ declare function getEffectSummary(effects: Effect[]): string;
174
+ declare function extractOutputsFromTransitions(transitions: TransitionDefinition[]): string[];
175
+ /**
176
+ * Render a state machine to an SVG string.
177
+ * Works in both browser and Node.js environments.
178
+ */
179
+ declare function renderStateMachineToSvg(stateMachine: StateMachineDefinition, options?: RenderOptions, config?: VisualizerConfig): string;
180
+ /**
181
+ * Extract state machine from various data formats (Trait, Orbital, or raw)
182
+ */
183
+ declare function extractStateMachine(data: OrbitalSchema | object): StateMachineDefinition | null;
184
+ /**
185
+ * Render a state machine to DOM layout data.
186
+ * This is used by the DOM-based visualizer component for hybrid SVG/DOM rendering.
187
+ * Unlike renderStateMachineToSvg, this returns structured data instead of an SVG string.
188
+ */
189
+ declare function renderStateMachineToDomData(stateMachine: StateMachineDefinition, options?: RenderOptions, config?: VisualizerConfig): DomLayoutData;
190
+
191
+ /**
192
+ * Verification Registry - Tracks runtime verification checks and transition traces
193
+ *
194
+ * Provides:
195
+ * 1. A checklist of pass/fail checks (INIT has fetch, bridge connected, etc.)
196
+ * 2. A full transition timeline with effect execution results
197
+ * 3. ServerBridge health snapshot
198
+ * 4. window.__orbitalVerification for Playwright/automation
199
+ *
200
+ * @packageDocumentation
201
+ */
202
+
203
+ type ChangeListener = () => void;
204
+ /**
205
+ * Per-trait snapshot getter. Each generated trait logic hook (or
206
+ * `useTraitStateMachine` trait binding) registers one on mount so the
207
+ * verifier can read the live reducer state for that trait.
208
+ */
209
+ type TraitSnapshotGetter = () => TraitStateSnapshot;
210
+ declare function registerCheck(id: string, label: string, status?: CheckStatus, details?: string): void;
211
+ declare function updateCheck(id: string, status: CheckStatus, details?: string): void;
212
+ declare function getAllChecks(): VerificationCheck[];
213
+ declare function recordTransition(trace: Omit<TransitionTrace, "id">): void;
214
+ declare function getTransitions(): TransitionTrace[];
215
+ declare function getTransitionsForTrait(traitName: string): TransitionTrace[];
216
+ /**
217
+ * Record a server response as a timeline entry.
218
+ * Creates a synthetic transition entry with type "server-response" to show
219
+ * what the server returned (clientEffects, data counts, emitted events).
220
+ */
221
+ declare function recordServerResponse(orbitalName: string, event: string, response: Omit<ServerResponseTrace, "orbitalName" | "timestamp">): void;
222
+ declare function updateBridgeHealth(health: BridgeHealth): void;
223
+ declare function getBridgeHealth(): BridgeHealth | null;
224
+ declare function getSummary(): VerificationSummary;
225
+ declare function getSnapshot(): VerificationSnapshot;
226
+ /**
227
+ * Per-trait snapshot for the verifier.
228
+ *
229
+ * Iterates every registered trait getter and collects the live reducer
230
+ * state. Empty until at least one trait hook calls `registerTraitSnapshot`.
231
+ * A getter that throws is logged and skipped — one broken trait must not
232
+ * poison the rest of the snapshot.
233
+ */
234
+ declare function getTraitSnapshots(): TraitStateSnapshot[];
235
+ declare function subscribeToVerification(listener: ChangeListener): () => void;
236
+ declare global {
237
+ interface Window {
238
+ __orbitalVerification?: OrbitalVerificationAPI;
239
+ }
240
+ }
241
+ /**
242
+ * Wait for a transition matching the given event to appear.
243
+ * Returns the trace or null on timeout.
244
+ */
245
+ declare function waitForTransition(event: string, timeoutMs?: number): Promise<TransitionTrace | null>;
246
+ /**
247
+ * Bind the EventBus so automation can send events and log emissions.
248
+ * Call this during app initialization.
249
+ */
250
+ declare function bindEventBus(eventBus: {
251
+ emit: (type: string, payload?: EventPayload) => void;
252
+ onAny?: (listener: (event: BusEvent) => void) => () => void;
253
+ }): void;
254
+ /**
255
+ * Bind a trait state getter so automation can query current states.
256
+ */
257
+ declare function bindTraitStateGetter(getter: (traitName: string) => string | undefined): void;
258
+ /**
259
+ * Register a per-trait snapshot provider. The generated trait logic hook
260
+ * (or `useTraitStateMachine`) calls this once on mount, passing a getter
261
+ * that reads the current reducer state via a ref. Returns an unregister
262
+ * function for cleanup on unmount.
263
+ *
264
+ * Calling this twice for the same `traitName` replaces the previous
265
+ * getter (e.g. page navigation remounts the trait; the new registration
266
+ * wins).
267
+ */
268
+ declare function registerTraitSnapshot(traitName: string, getter: TraitSnapshotGetter): () => void;
269
+ /**
270
+ * Register a canvas frame capture function.
271
+ * Called by game organisms (IsometricCanvas, PlatformerCanvas)
272
+ * so the verifier can snapshot canvas content at checkpoints.
273
+ */
274
+ declare function bindCanvasCapture(captureFn: () => string | null): void;
275
+ /**
276
+ * Bind a reader for the last drawables list received by a canvas host.
277
+ * Lets verification scripts inspect exactly which neutral descriptors reached
278
+ * the painter without re-deriving them from state.
279
+ */
280
+ declare function bindLastDrawables(getDrawables: () => unknown[] | null): void;
281
+ /**
282
+ * Update asset load status for canvas verification.
283
+ * Game organisms call this when images load or fail.
284
+ */
285
+ declare function updateAssetStatus(url: string, status: AssetLoadStatus): void;
286
+ declare function clearVerification(): void;
287
+
288
+ /**
289
+ * Utility function to merge Tailwind CSS classes
290
+ * Combines clsx for conditional classes with tailwind-merge to handle conflicts
291
+ */
292
+ declare function cn(...inputs: ClassValue[]): string;
293
+
294
+ export { parseMarkdownWithCodeBlocks as A, recordServerResponse as B, type ContentSegment as C, DEFAULT_CONFIG as D, type EntityDefinition as E, recordTransition as F, registerCheck as G, registerTraitSnapshot as H, renderStateMachineToDomData as I, renderStateMachineToSvg as J, subscribeToVerification as K, updateAssetStatus as L, updateBridgeHealth as M, updateCheck as N, waitForTransition as O, type RenderOptions as R, type StateDefinition as S, type TraitSnapshotGetter as T, type VisualizerConfig as V, type DomEntityBox as a, type DomLayoutData as b, type DomOutputsBox as c, type DomStateNode as d, type DomTransitionLabel as e, type DomTransitionPath as f, type StateMachineDefinition as g, type TransitionDefinition as h, bindCanvasCapture as i, bindEventBus as j, bindLastDrawables as k, bindTraitStateGetter as l, clearVerification as m, cn as n, extractOutputsFromTransitions as o, extractStateMachine as p, formatGuard as q, getAllChecks as r, getBridgeHealth as s, getEffectSummary as t, getSnapshot as u, getSummary as v, getTraitSnapshots as w, getTransitions as x, getTransitionsForTrait as y, parseContentSegments as z };
@@ -0,0 +1,294 @@
1
+ import { OrbitalSchema, SExpr, Effect, OrbitalVerificationAPI, TraitStateSnapshot, EventPayload, BusEvent, VerificationCheck, BridgeHealth, VerificationSnapshot, VerificationSummary, TransitionTrace, ServerResponseTrace, CheckStatus, AssetLoadStatus } from '@almadar/core';
2
+ import { ClassValue } from 'clsx';
3
+
4
+ /**
5
+ * Content Segment Parsing Utilities
6
+ *
7
+ * Parses rich content with code blocks and quiz tags into structured
8
+ * segments for rendering. Detects orbital schemas in JSON code blocks
9
+ * and marks them for JazariStateMachine rendering.
10
+ */
11
+
12
+ /** Segment types for content rendering */
13
+ type ContentSegment = {
14
+ type: 'markdown';
15
+ content: string;
16
+ } | {
17
+ type: 'code';
18
+ language: string;
19
+ content: string;
20
+ } | {
21
+ type: 'orbital';
22
+ language: string;
23
+ content: string;
24
+ schema: OrbitalSchema;
25
+ } | {
26
+ type: 'quiz';
27
+ question: string;
28
+ answer: string;
29
+ };
30
+ /**
31
+ * Parse markdown content to extract code blocks.
32
+ *
33
+ * Splits markdown into segments of plain markdown and fenced code blocks.
34
+ * JSON/orb code blocks containing orbital schemas are tagged as 'orbital'.
35
+ */
36
+ declare function parseMarkdownWithCodeBlocks(content: string | undefined | null): ContentSegment[];
37
+ /**
38
+ * Parse content to extract all segments including quiz tags and code blocks.
39
+ *
40
+ * Supported tags:
41
+ * - <question>q</question><answer>a</answer> — Quiz Q&A
42
+ *
43
+ * Also handles fenced code blocks (```language...```) with orbital detection.
44
+ */
45
+ declare function parseContentSegments(content: string | undefined | null): ContentSegment[];
46
+
47
+ /**
48
+ * Orbital State Machine Visualizer
49
+ *
50
+ * Renders SVG diagrams from Orbital schemas and Trait definitions.
51
+ * Can be used in documentation, IDE previews, and other tools.
52
+ */
53
+
54
+ interface VisualizerConfig {
55
+ nodeRadius: number;
56
+ nodeSpacing: number;
57
+ initialIndicatorOffset: number;
58
+ arrowSize: number;
59
+ colors: {
60
+ background: string;
61
+ node: string;
62
+ nodeBorder: string;
63
+ nodeText: string;
64
+ initialNode: string;
65
+ finalNode: string;
66
+ arrow: string;
67
+ arrowText: string;
68
+ effectText: string;
69
+ guardText: string;
70
+ initial: string;
71
+ };
72
+ fonts: {
73
+ node: string;
74
+ event: string;
75
+ effect: string;
76
+ };
77
+ }
78
+ interface StateDefinition {
79
+ name: string;
80
+ isInitial?: boolean;
81
+ isFinal?: boolean;
82
+ description?: string;
83
+ }
84
+ interface TransitionDefinition {
85
+ from: string;
86
+ to: string;
87
+ event: string;
88
+ guard?: SExpr | null;
89
+ effects?: Effect[];
90
+ }
91
+ interface StateMachineDefinition {
92
+ states: StateDefinition[];
93
+ transitions: TransitionDefinition[];
94
+ }
95
+ interface EntityDefinition {
96
+ name: string;
97
+ fields?: (string | {
98
+ name: string;
99
+ })[];
100
+ }
101
+ interface RenderOptions {
102
+ title?: string;
103
+ entity?: EntityDefinition;
104
+ }
105
+ /** Position data for a state node in DOM layout */
106
+ interface DomStateNode {
107
+ id: string;
108
+ name: string;
109
+ x: number;
110
+ y: number;
111
+ radius: number;
112
+ isInitial: boolean;
113
+ isFinal: boolean;
114
+ description?: string;
115
+ }
116
+ /** Position data for a transition arrow */
117
+ interface DomTransitionPath {
118
+ id: string;
119
+ from: string;
120
+ to: string;
121
+ /** SVG path data for the curved arrow */
122
+ pathData: string;
123
+ /** Midpoint for label positioning */
124
+ labelX: number;
125
+ labelY: number;
126
+ }
127
+ /** Position data for a transition label with guard/effect details */
128
+ interface DomTransitionLabel {
129
+ id: string;
130
+ from: string;
131
+ to: string;
132
+ event: string;
133
+ x: number;
134
+ y: number;
135
+ /** Human-readable guard text (e.g., "if amount > 100") */
136
+ guardText?: string;
137
+ /** Human-readable effect texts */
138
+ effectTexts: string[];
139
+ /** Whether this transition has details to show in tooltip */
140
+ hasDetails: boolean;
141
+ }
142
+ /** Entity input box data */
143
+ interface DomEntityBox {
144
+ name: string;
145
+ fields: string[];
146
+ x: number;
147
+ y: number;
148
+ width: number;
149
+ height: number;
150
+ }
151
+ /** Output effects box data */
152
+ interface DomOutputsBox {
153
+ outputs: string[];
154
+ x: number;
155
+ y: number;
156
+ width: number;
157
+ height: number;
158
+ }
159
+ /** Complete DOM layout data for rendering */
160
+ interface DomLayoutData {
161
+ width: number;
162
+ height: number;
163
+ title?: string;
164
+ states: DomStateNode[];
165
+ paths: DomTransitionPath[];
166
+ labels: DomTransitionLabel[];
167
+ entity?: DomEntityBox;
168
+ outputs?: DomOutputsBox;
169
+ config: VisualizerConfig;
170
+ }
171
+ declare const DEFAULT_CONFIG: VisualizerConfig;
172
+ declare function formatGuard(guard: SExpr | null | undefined): string;
173
+ declare function getEffectSummary(effects: Effect[]): string;
174
+ declare function extractOutputsFromTransitions(transitions: TransitionDefinition[]): string[];
175
+ /**
176
+ * Render a state machine to an SVG string.
177
+ * Works in both browser and Node.js environments.
178
+ */
179
+ declare function renderStateMachineToSvg(stateMachine: StateMachineDefinition, options?: RenderOptions, config?: VisualizerConfig): string;
180
+ /**
181
+ * Extract state machine from various data formats (Trait, Orbital, or raw)
182
+ */
183
+ declare function extractStateMachine(data: OrbitalSchema | object): StateMachineDefinition | null;
184
+ /**
185
+ * Render a state machine to DOM layout data.
186
+ * This is used by the DOM-based visualizer component for hybrid SVG/DOM rendering.
187
+ * Unlike renderStateMachineToSvg, this returns structured data instead of an SVG string.
188
+ */
189
+ declare function renderStateMachineToDomData(stateMachine: StateMachineDefinition, options?: RenderOptions, config?: VisualizerConfig): DomLayoutData;
190
+
191
+ /**
192
+ * Verification Registry - Tracks runtime verification checks and transition traces
193
+ *
194
+ * Provides:
195
+ * 1. A checklist of pass/fail checks (INIT has fetch, bridge connected, etc.)
196
+ * 2. A full transition timeline with effect execution results
197
+ * 3. ServerBridge health snapshot
198
+ * 4. window.__orbitalVerification for Playwright/automation
199
+ *
200
+ * @packageDocumentation
201
+ */
202
+
203
+ type ChangeListener = () => void;
204
+ /**
205
+ * Per-trait snapshot getter. Each generated trait logic hook (or
206
+ * `useTraitStateMachine` trait binding) registers one on mount so the
207
+ * verifier can read the live reducer state for that trait.
208
+ */
209
+ type TraitSnapshotGetter = () => TraitStateSnapshot;
210
+ declare function registerCheck(id: string, label: string, status?: CheckStatus, details?: string): void;
211
+ declare function updateCheck(id: string, status: CheckStatus, details?: string): void;
212
+ declare function getAllChecks(): VerificationCheck[];
213
+ declare function recordTransition(trace: Omit<TransitionTrace, "id">): void;
214
+ declare function getTransitions(): TransitionTrace[];
215
+ declare function getTransitionsForTrait(traitName: string): TransitionTrace[];
216
+ /**
217
+ * Record a server response as a timeline entry.
218
+ * Creates a synthetic transition entry with type "server-response" to show
219
+ * what the server returned (clientEffects, data counts, emitted events).
220
+ */
221
+ declare function recordServerResponse(orbitalName: string, event: string, response: Omit<ServerResponseTrace, "orbitalName" | "timestamp">): void;
222
+ declare function updateBridgeHealth(health: BridgeHealth): void;
223
+ declare function getBridgeHealth(): BridgeHealth | null;
224
+ declare function getSummary(): VerificationSummary;
225
+ declare function getSnapshot(): VerificationSnapshot;
226
+ /**
227
+ * Per-trait snapshot for the verifier.
228
+ *
229
+ * Iterates every registered trait getter and collects the live reducer
230
+ * state. Empty until at least one trait hook calls `registerTraitSnapshot`.
231
+ * A getter that throws is logged and skipped — one broken trait must not
232
+ * poison the rest of the snapshot.
233
+ */
234
+ declare function getTraitSnapshots(): TraitStateSnapshot[];
235
+ declare function subscribeToVerification(listener: ChangeListener): () => void;
236
+ declare global {
237
+ interface Window {
238
+ __orbitalVerification?: OrbitalVerificationAPI;
239
+ }
240
+ }
241
+ /**
242
+ * Wait for a transition matching the given event to appear.
243
+ * Returns the trace or null on timeout.
244
+ */
245
+ declare function waitForTransition(event: string, timeoutMs?: number): Promise<TransitionTrace | null>;
246
+ /**
247
+ * Bind the EventBus so automation can send events and log emissions.
248
+ * Call this during app initialization.
249
+ */
250
+ declare function bindEventBus(eventBus: {
251
+ emit: (type: string, payload?: EventPayload) => void;
252
+ onAny?: (listener: (event: BusEvent) => void) => () => void;
253
+ }): void;
254
+ /**
255
+ * Bind a trait state getter so automation can query current states.
256
+ */
257
+ declare function bindTraitStateGetter(getter: (traitName: string) => string | undefined): void;
258
+ /**
259
+ * Register a per-trait snapshot provider. The generated trait logic hook
260
+ * (or `useTraitStateMachine`) calls this once on mount, passing a getter
261
+ * that reads the current reducer state via a ref. Returns an unregister
262
+ * function for cleanup on unmount.
263
+ *
264
+ * Calling this twice for the same `traitName` replaces the previous
265
+ * getter (e.g. page navigation remounts the trait; the new registration
266
+ * wins).
267
+ */
268
+ declare function registerTraitSnapshot(traitName: string, getter: TraitSnapshotGetter): () => void;
269
+ /**
270
+ * Register a canvas frame capture function.
271
+ * Called by game organisms (IsometricCanvas, PlatformerCanvas)
272
+ * so the verifier can snapshot canvas content at checkpoints.
273
+ */
274
+ declare function bindCanvasCapture(captureFn: () => string | null): void;
275
+ /**
276
+ * Bind a reader for the last drawables list received by a canvas host.
277
+ * Lets verification scripts inspect exactly which neutral descriptors reached
278
+ * the painter without re-deriving them from state.
279
+ */
280
+ declare function bindLastDrawables(getDrawables: () => unknown[] | null): void;
281
+ /**
282
+ * Update asset load status for canvas verification.
283
+ * Game organisms call this when images load or fail.
284
+ */
285
+ declare function updateAssetStatus(url: string, status: AssetLoadStatus): void;
286
+ declare function clearVerification(): void;
287
+
288
+ /**
289
+ * Utility function to merge Tailwind CSS classes
290
+ * Combines clsx for conditional classes with tailwind-merge to handle conflicts
291
+ */
292
+ declare function cn(...inputs: ClassValue[]): string;
293
+
294
+ export { parseMarkdownWithCodeBlocks as A, recordServerResponse as B, type ContentSegment as C, DEFAULT_CONFIG as D, type EntityDefinition as E, recordTransition as F, registerCheck as G, registerTraitSnapshot as H, renderStateMachineToDomData as I, renderStateMachineToSvg as J, subscribeToVerification as K, updateAssetStatus as L, updateBridgeHealth as M, updateCheck as N, waitForTransition as O, type RenderOptions as R, type StateDefinition as S, type TraitSnapshotGetter as T, type VisualizerConfig as V, type DomEntityBox as a, type DomLayoutData as b, type DomOutputsBox as c, type DomStateNode as d, type DomTransitionLabel as e, type DomTransitionPath as f, type StateMachineDefinition as g, type TransitionDefinition as h, bindCanvasCapture as i, bindEventBus as j, bindLastDrawables as k, bindTraitStateGetter as l, clearVerification as m, cn as n, extractOutputsFromTransitions as o, extractStateMachine as p, formatGuard as q, getAllChecks as r, getBridgeHealth as s, getEffectSummary as t, getSnapshot as u, getSummary as v, getTraitSnapshots as w, getTransitions as x, getTransitionsForTrait as y, parseContentSegments as z };
@@ -41,7 +41,7 @@ var core$1 = require('@dnd-kit/core');
41
41
  var sortable = require('@dnd-kit/sortable');
42
42
  var utilities = require('@dnd-kit/utilities');
43
43
  var react = require('@xyflow/react');
44
- var patterns = require('@almadar/patterns');
44
+ var patterns = require('@almadar/core/patterns');
45
45
  var reactQuery = require('@tanstack/react-query');
46
46
 
47
47
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -15371,8 +15371,12 @@ var init_useImageCache = __esm({
15371
15371
  init_verificationRegistry();
15372
15372
  }
15373
15373
  });
15374
- function useCamera() {
15375
- const cameraRef = React73.useRef({ x: 0, y: 0, zoom: 1 });
15374
+ function useCamera(initial) {
15375
+ const cameraRef = React73.useRef({
15376
+ x: initial?.x ?? 0,
15377
+ y: initial?.y ?? 0,
15378
+ zoom: initial?.zoom ?? 1
15379
+ });
15376
15380
  const targetCameraRef = React73.useRef(null);
15377
15381
  const isDraggingRef = React73.useRef(false);
15378
15382
  const dragDistanceRef = React73.useRef(0);
@@ -16110,9 +16114,17 @@ function Canvas2D({
16110
16114
  scale = 0.4,
16111
16115
  showMinimap = true,
16112
16116
  followTarget,
16117
+ cameraPos,
16113
16118
  bgColor
16114
16119
  }) {
16120
+ const layerSummaries = drawables?.map((d) => {
16121
+ if (!d || typeof d !== "object") return d;
16122
+ const rec = d;
16123
+ return { type: rec.type, itemsLen: Array.isArray(rec.items) ? rec.items.length : void 0, firstItem: Array.isArray(rec.items) ? rec.items[0] : void 0 };
16124
+ });
16125
+ console.error("[debug:Canvas2D] " + JSON.stringify({ projection, scale, cameraMode: camera, cameraPos, drawablesCount: drawables?.length, layerSummaries }));
16115
16126
  const backgroundImage = normalizeBackdrop(backgroundImageRaw);
16127
+ const instanceId = React73.useMemo(() => Math.random().toString(36).slice(2, 8), []);
16116
16128
  const isFree = projection === "free";
16117
16129
  const squareGrid = projection === "flat" || isFree || projection === "side";
16118
16130
  const layout = projection === "side" ? "free" : projection;
@@ -16194,7 +16206,7 @@ function Canvas2D({
16194
16206
  zoomAtPoint,
16195
16207
  screenToWorld,
16196
16208
  lerpToTarget
16197
- } = useCamera();
16209
+ } = useCamera({ zoom: scale });
16198
16210
  const [atlasVersion, setAtlasVersion] = React73.useState(0);
16199
16211
  const bumpAtlas = React73.useCallback(() => setAtlasVersion((v) => v + 1), []);
16200
16212
  const miniMapTiles = React73.useMemo(() => {
@@ -16240,6 +16252,14 @@ function Canvas2D({
16240
16252
  }
16241
16253
  if (!drawables || drawables.length === 0) return;
16242
16254
  const cam = cameraRef.current;
16255
+ if (cameraPos && dragDistance() === 0) {
16256
+ const p = projector.anchorPoint(cameraPos, "center");
16257
+ cam.x = p.x - viewportSize.width / 2;
16258
+ cam.y = p.y - viewportSize.height / 2;
16259
+ }
16260
+ const containerRect = containerRef.current?.getBoundingClientRect();
16261
+ const canvasRect = canvas.getBoundingClientRect();
16262
+ console.error("[debug:Canvas2D:draw:" + instanceId + "] " + JSON.stringify({ viewportSize, baseOffsetX, cam: { x: cam.x, y: cam.y, zoom: cam.zoom }, cameraPos, containerRect: containerRect ? { width: containerRect.width, height: containerRect.height } : null, canvasRect: canvasRect ? { width: canvasRect.width, height: canvasRect.height } : null }));
16243
16263
  const painter = createWebPainter(ctx, bumpAtlas);
16244
16264
  painter.save();
16245
16265
  painter.translate(viewportSize.width / 2, viewportSize.height / 2);
@@ -16510,6 +16530,7 @@ function Canvas({
16510
16530
  keyMap,
16511
16531
  keyUpMap
16512
16532
  }) {
16533
+ console.error("[debug:Canvas] " + JSON.stringify({ mode, drawablesCount: drawables?.length, projection, camera }));
16513
16534
  const zoom = camera?.zoom;
16514
16535
  if (mode === "3d") {
16515
16536
  const props3d = {
@@ -16549,6 +16570,7 @@ function Canvas({
16549
16570
  camera: to2DCamera(camera?.mode),
16550
16571
  ...zoom !== void 0 ? { scale: zoom } : {},
16551
16572
  ...camera?.target !== void 0 ? { followTarget: camera.target } : {},
16573
+ ...camera?.pos !== void 0 ? { cameraPos: camera.pos } : {},
16552
16574
  showMinimap,
16553
16575
  backgroundImage,
16554
16576
  ...backgroundColor !== void 0 ? { bgColor: backgroundColor } : {},
@@ -45789,7 +45811,7 @@ function SlotContentRenderer({
45789
45811
  const childrenConfig = content.props.children;
45790
45812
  const isSingleChild = typeof childrenConfig === "string" || typeof childrenConfig === "object" && childrenConfig !== null && !Array.isArray(childrenConfig) && "type" in childrenConfig;
45791
45813
  const hasChildren = PATTERNS_WITH_CHILDREN.has(content.pattern) || Array.isArray(childrenConfig) && childrenConfig.length > 0 || isSingleChild;
45792
- const isDrawHost = patterns.getPatternDefinition(content.pattern)?.drawHost === true;
45814
+ const isDrawHost = patterns.isDrawHostPattern(content.pattern);
45793
45815
  const myPath = patternPath ?? "root";
45794
45816
  const renderedChildren = hasChildren && !isDrawHost ? renderPatternChildren(childrenConfig, onDismiss, content.id, myPath, content.sourceTrait, {
45795
45817
  slot: content.slot,