mates-devtools 0.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (379) hide show
  1. package/dist/mates-devtools.es.js +3464 -0
  2. package/dist/mates-devtools.umd.js +650 -0
  3. package/dist/types/Mates-DevTools/src/MatesDevTools.d.ts +5 -0
  4. package/dist/types/Mates-DevTools/src/MatesDevTools.d.ts.map +1 -0
  5. package/dist/types/Mates-DevTools/src/MatesDevToolsComponent.d.ts +24 -0
  6. package/dist/types/Mates-DevTools/src/MatesDevToolsComponent.d.ts.map +1 -0
  7. package/dist/types/Mates-DevTools/src/components/AtomsViewer.d.ts +2 -0
  8. package/dist/types/Mates-DevTools/src/components/AtomsViewer.d.ts.map +1 -0
  9. package/dist/types/Mates-DevTools/src/components/ComponentInspector.d.ts +27 -0
  10. package/dist/types/Mates-DevTools/src/components/ComponentInspector.d.ts.map +1 -0
  11. package/dist/types/Mates-DevTools/src/components/ComponentList.d.ts +11 -0
  12. package/dist/types/Mates-DevTools/src/components/ComponentList.d.ts.map +1 -0
  13. package/dist/types/Mates-DevTools/src/components/ComponentTree.d.ts +9 -0
  14. package/dist/types/Mates-DevTools/src/components/ComponentTree.d.ts.map +1 -0
  15. package/dist/types/Mates-DevTools/src/components/Header.d.ts +10 -0
  16. package/dist/types/Mates-DevTools/src/components/Header.d.ts.map +1 -0
  17. package/dist/types/Mates-DevTools/src/components/Highlight.d.ts +6 -0
  18. package/dist/types/Mates-DevTools/src/components/Highlight.d.ts.map +1 -0
  19. package/dist/types/Mates-DevTools/src/components/HooksViewer.d.ts +7 -0
  20. package/dist/types/Mates-DevTools/src/components/HooksViewer.d.ts.map +1 -0
  21. package/dist/types/Mates-DevTools/src/components/LogsViewer.d.ts +6 -0
  22. package/dist/types/Mates-DevTools/src/components/LogsViewer.d.ts.map +1 -0
  23. package/dist/types/Mates-DevTools/src/components/PerfViewer.d.ts +7 -0
  24. package/dist/types/Mates-DevTools/src/components/PerfViewer.d.ts.map +1 -0
  25. package/dist/types/Mates-DevTools/src/components/PropsViewer.d.ts +2 -0
  26. package/dist/types/Mates-DevTools/src/components/PropsViewer.d.ts.map +1 -0
  27. package/dist/types/Mates-DevTools/src/components/ScopesViewer.d.ts +2 -0
  28. package/dist/types/Mates-DevTools/src/components/ScopesViewer.d.ts.map +1 -0
  29. package/dist/types/Mates-DevTools/src/components/TimerLogger.d.ts +5 -0
  30. package/dist/types/Mates-DevTools/src/components/TimerLogger.d.ts.map +1 -0
  31. package/dist/types/Mates-DevTools/src/components/UseStateViewer.d.ts +12 -0
  32. package/dist/types/Mates-DevTools/src/components/UseStateViewer.d.ts.map +1 -0
  33. package/dist/types/Mates-DevTools/src/components/ValueTree.d.ts +19 -0
  34. package/dist/types/Mates-DevTools/src/components/ValueTree.d.ts.map +1 -0
  35. package/dist/types/Mates-DevTools/src/index.d.ts +23 -0
  36. package/dist/types/Mates-DevTools/src/index.d.ts.map +1 -0
  37. package/dist/types/Mates-DevTools/src/interceptTimers.d.ts +11 -0
  38. package/dist/types/Mates-DevTools/src/interceptTimers.d.ts.map +1 -0
  39. package/dist/types/Mates-DevTools/src/logStore.d.ts +38 -0
  40. package/dist/types/Mates-DevTools/src/logStore.d.ts.map +1 -0
  41. package/dist/types/Mates-DevTools/src/perfStore.d.ts +36 -0
  42. package/dist/types/Mates-DevTools/src/perfStore.d.ts.map +1 -0
  43. package/dist/types/Mates-DevTools/src/registry.d.ts +68 -0
  44. package/dist/types/Mates-DevTools/src/registry.d.ts.map +1 -0
  45. package/dist/types/Mates-DevTools/src/styles.d.ts +833 -0
  46. package/dist/types/Mates-DevTools/src/styles.d.ts.map +1 -0
  47. package/dist/types/Mates-DevTools/src/types.d.ts +19 -0
  48. package/dist/types/Mates-DevTools/src/types.d.ts.map +1 -0
  49. package/dist/types/lib/Directives/$.d.ts +371 -0
  50. package/dist/types/lib/Directives/$.d.ts.map +1 -0
  51. package/dist/types/lib/Directives/animatedConditional.d.ts +67 -0
  52. package/dist/types/lib/Directives/animatedConditional.d.ts.map +1 -0
  53. package/dist/types/lib/Directives/animationClasses.d.ts +50 -0
  54. package/dist/types/lib/Directives/animationClasses.d.ts.map +1 -0
  55. package/dist/types/lib/Directives/attrDirective.d.ts +69 -0
  56. package/dist/types/lib/Directives/attrDirective.d.ts.map +1 -0
  57. package/dist/types/lib/Directives/classesDirective.d.ts +79 -0
  58. package/dist/types/lib/Directives/classesDirective.d.ts.map +1 -0
  59. package/dist/types/lib/Directives/eleHook.d.ts +84 -0
  60. package/dist/types/lib/Directives/eleHook.d.ts.map +1 -0
  61. package/dist/types/lib/Directives/eventBinding.d.ts +29 -0
  62. package/dist/types/lib/Directives/eventBinding.d.ts.map +1 -0
  63. package/dist/types/lib/Directives/htmlHook.d.ts +101 -0
  64. package/dist/types/lib/Directives/htmlHook.d.ts.map +1 -0
  65. package/dist/types/lib/Directives/index.d.ts +18 -0
  66. package/dist/types/lib/Directives/index.d.ts.map +1 -0
  67. package/dist/types/lib/Directives/intersectDirective.d.ts +67 -0
  68. package/dist/types/lib/Directives/intersectDirective.d.ts.map +1 -0
  69. package/dist/types/lib/Directives/lazyLoadDirective.d.ts +66 -0
  70. package/dist/types/lib/Directives/lazyLoadDirective.d.ts.map +1 -0
  71. package/dist/types/lib/Directives/lifecycleDirectives.d.ts +56 -0
  72. package/dist/types/lib/Directives/lifecycleDirectives.d.ts.map +1 -0
  73. package/dist/types/lib/Directives/masonryGrid.d.ts +114 -0
  74. package/dist/types/lib/Directives/masonryGrid.d.ts.map +1 -0
  75. package/dist/types/lib/Directives/memoTemplate.d.ts +94 -0
  76. package/dist/types/lib/Directives/memoTemplate.d.ts.map +1 -0
  77. package/dist/types/lib/Directives/onDirective.d.ts +71 -0
  78. package/dist/types/lib/Directives/onDirective.d.ts.map +1 -0
  79. package/dist/types/lib/Directives/onParentDirective.d.ts +34 -0
  80. package/dist/types/lib/Directives/onParentDirective.d.ts.map +1 -0
  81. package/dist/types/lib/Directives/renderSwitch.d.ts +55 -0
  82. package/dist/types/lib/Directives/renderSwitch.d.ts.map +1 -0
  83. package/dist/types/lib/Directives/resolveAttrValue.d.ts +35 -0
  84. package/dist/types/lib/Directives/resolveAttrValue.d.ts.map +1 -0
  85. package/dist/types/lib/Directives/styleDirective.d.ts +81 -0
  86. package/dist/types/lib/Directives/styleDirective.d.ts.map +1 -0
  87. package/dist/types/lib/Directives/timerDirective.d.ts +52 -0
  88. package/dist/types/lib/Directives/timerDirective.d.ts.map +1 -0
  89. package/dist/types/lib/Directives/virtualHelpers.d.ts +10 -0
  90. package/dist/types/lib/Directives/virtualHelpers.d.ts.map +1 -0
  91. package/dist/types/lib/Fetch/ErrorTypes.d.ts +74 -0
  92. package/dist/types/lib/Fetch/ErrorTypes.d.ts.map +1 -0
  93. package/dist/types/lib/Fetch/Fetch.d.ts +168 -0
  94. package/dist/types/lib/Fetch/Fetch.d.ts.map +1 -0
  95. package/dist/types/lib/Fetch/index.d.ts +3 -0
  96. package/dist/types/lib/Fetch/index.d.ts.map +1 -0
  97. package/dist/types/lib/Mutables/Extended Atoms/cacheAtom.d.ts +156 -0
  98. package/dist/types/lib/Mutables/Extended Atoms/cacheAtom.d.ts.map +1 -0
  99. package/dist/types/lib/Mutables/Extended Atoms/index.d.ts +4 -0
  100. package/dist/types/lib/Mutables/Extended Atoms/index.d.ts.map +1 -0
  101. package/dist/types/lib/Mutables/Extended Atoms/paginationAtom.d.ts +32 -0
  102. package/dist/types/lib/Mutables/Extended Atoms/paginationAtom.d.ts.map +1 -0
  103. package/dist/types/lib/Mutables/Extended Atoms/themeAtom.d.ts +59 -0
  104. package/dist/types/lib/Mutables/Extended Atoms/themeAtom.d.ts.map +1 -0
  105. package/dist/types/lib/Mutables/atom/atom.d.ts +148 -0
  106. package/dist/types/lib/Mutables/atom/atom.d.ts.map +1 -0
  107. package/dist/types/lib/Mutables/atom/createTimedAtom.d.ts +43 -0
  108. package/dist/types/lib/Mutables/atom/createTimedAtom.d.ts.map +1 -0
  109. package/dist/types/lib/Mutables/atom/debouncedAtom.d.ts +37 -0
  110. package/dist/types/lib/Mutables/atom/debouncedAtom.d.ts.map +1 -0
  111. package/dist/types/lib/Mutables/atom/index.d.ts +10 -0
  112. package/dist/types/lib/Mutables/atom/index.d.ts.map +1 -0
  113. package/dist/types/lib/Mutables/atom/mapAtom.d.ts +105 -0
  114. package/dist/types/lib/Mutables/atom/mapAtom.d.ts.map +1 -0
  115. package/dist/types/lib/Mutables/atom/setAtom.d.ts +107 -0
  116. package/dist/types/lib/Mutables/atom/setAtom.d.ts.map +1 -0
  117. package/dist/types/lib/Mutables/atom/storageAtom.d.ts +44 -0
  118. package/dist/types/lib/Mutables/atom/storageAtom.d.ts.map +1 -0
  119. package/dist/types/lib/Mutables/atom/throttledAtom.d.ts +37 -0
  120. package/dist/types/lib/Mutables/atom/throttledAtom.d.ts.map +1 -0
  121. package/dist/types/lib/Mutables/atom/titleAtom.d.ts +20 -0
  122. package/dist/types/lib/Mutables/atom/titleAtom.d.ts.map +1 -0
  123. package/dist/types/lib/Mutables/effect/effect.d.ts +31 -0
  124. package/dist/types/lib/Mutables/effect/effect.d.ts.map +1 -0
  125. package/dist/types/lib/Mutables/effect/index.d.ts +2 -0
  126. package/dist/types/lib/Mutables/effect/index.d.ts.map +1 -0
  127. package/dist/types/lib/Mutables/events/events.d.ts +123 -0
  128. package/dist/types/lib/Mutables/events/events.d.ts.map +1 -0
  129. package/dist/types/lib/Mutables/events/index.d.ts +2 -0
  130. package/dist/types/lib/Mutables/events/index.d.ts.map +1 -0
  131. package/dist/types/lib/Mutables/events/xTabEvent.d.ts +61 -0
  132. package/dist/types/lib/Mutables/events/xTabEvent.d.ts.map +1 -0
  133. package/dist/types/lib/Mutables/form/formAtom.d.ts +56 -0
  134. package/dist/types/lib/Mutables/form/formAtom.d.ts.map +1 -0
  135. package/dist/types/lib/Mutables/form/index.d.ts +5 -0
  136. package/dist/types/lib/Mutables/form/index.d.ts.map +1 -0
  137. package/dist/types/lib/Mutables/form/transformers.d.ts +4 -0
  138. package/dist/types/lib/Mutables/form/transformers.d.ts.map +1 -0
  139. package/dist/types/lib/Mutables/form/validateAll.d.ts +40 -0
  140. package/dist/types/lib/Mutables/form/validateAll.d.ts.map +1 -0
  141. package/dist/types/lib/Mutables/form/validators.d.ts +61 -0
  142. package/dist/types/lib/Mutables/form/validators.d.ts.map +1 -0
  143. package/dist/types/lib/Mutables/index.d.ts +13 -0
  144. package/dist/types/lib/Mutables/index.d.ts.map +1 -0
  145. package/dist/types/lib/Mutables/memo/index.d.ts +2 -0
  146. package/dist/types/lib/Mutables/memo/index.d.ts.map +1 -0
  147. package/dist/types/lib/Mutables/memo/memo.d.ts +47 -0
  148. package/dist/types/lib/Mutables/memo/memo.d.ts.map +1 -0
  149. package/dist/types/lib/Mutables/reactiveRunner/index.d.ts +4 -0
  150. package/dist/types/lib/Mutables/reactiveRunner/index.d.ts.map +1 -0
  151. package/dist/types/lib/Mutables/reactiveRunner/reactiveRunner.d.ts +56 -0
  152. package/dist/types/lib/Mutables/reactiveRunner/reactiveRunner.d.ts.map +1 -0
  153. package/dist/types/lib/Mutables/reactiveRunner/trackAndSubscribe.d.ts +6 -0
  154. package/dist/types/lib/Mutables/reactiveRunner/trackAndSubscribe.d.ts.map +1 -0
  155. package/dist/types/lib/Mutables/reactiveRunner/validateReactiveFunction.d.ts +6 -0
  156. package/dist/types/lib/Mutables/reactiveRunner/validateReactiveFunction.d.ts.map +1 -0
  157. package/dist/types/lib/Mutables/ref/index.d.ts +2 -0
  158. package/dist/types/lib/Mutables/ref/index.d.ts.map +1 -0
  159. package/dist/types/lib/Mutables/ref/ref.d.ts +74 -0
  160. package/dist/types/lib/Mutables/ref/ref.d.ts.map +1 -0
  161. package/dist/types/lib/Mutables/scope/index.d.ts +2 -0
  162. package/dist/types/lib/Mutables/scope/index.d.ts.map +1 -0
  163. package/dist/types/lib/Mutables/scope/scope.d.ts +60 -0
  164. package/dist/types/lib/Mutables/scope/scope.d.ts.map +1 -0
  165. package/dist/types/lib/Mutables/store/index.d.ts +2 -0
  166. package/dist/types/lib/Mutables/store/index.d.ts.map +1 -0
  167. package/dist/types/lib/Mutables/store/store.d.ts +73 -0
  168. package/dist/types/lib/Mutables/store/store.d.ts.map +1 -0
  169. package/dist/types/lib/Mutables/useState/index.d.ts +2 -0
  170. package/dist/types/lib/Mutables/useState/index.d.ts.map +1 -0
  171. package/dist/types/lib/Mutables/useState/useState.d.ts +54 -0
  172. package/dist/types/lib/Mutables/useState/useState.d.ts.map +1 -0
  173. package/dist/types/lib/Mutables/useStore/hostContext.d.ts +13 -0
  174. package/dist/types/lib/Mutables/useStore/hostContext.d.ts.map +1 -0
  175. package/dist/types/lib/Mutables/useStore/index.d.ts +9 -0
  176. package/dist/types/lib/Mutables/useStore/index.d.ts.map +1 -0
  177. package/dist/types/lib/Mutables/useStore/lifecycle.d.ts +94 -0
  178. package/dist/types/lib/Mutables/useStore/lifecycle.d.ts.map +1 -0
  179. package/dist/types/lib/Mutables/useStore/onError.d.ts +21 -0
  180. package/dist/types/lib/Mutables/useStore/onError.d.ts.map +1 -0
  181. package/dist/types/lib/Mutables/useStore/onReferenceChange.d.ts +2 -0
  182. package/dist/types/lib/Mutables/useStore/onReferenceChange.d.ts.map +1 -0
  183. package/dist/types/lib/Mutables/useStore/safetyCheck.d.ts +2 -0
  184. package/dist/types/lib/Mutables/useStore/safetyCheck.d.ts.map +1 -0
  185. package/dist/types/lib/Mutables/useStore/setter.d.ts +52 -0
  186. package/dist/types/lib/Mutables/useStore/setter.d.ts.map +1 -0
  187. package/dist/types/lib/Mutables/useStore/subscription.d.ts +50 -0
  188. package/dist/types/lib/Mutables/useStore/subscription.d.ts.map +1 -0
  189. package/dist/types/lib/Mutables/useStore/useContext.d.ts +3 -0
  190. package/dist/types/lib/Mutables/useStore/useContext.d.ts.map +1 -0
  191. package/dist/types/lib/Mutables/useStore/useStore.d.ts +7 -0
  192. package/dist/types/lib/Mutables/useStore/useStore.d.ts.map +1 -0
  193. package/dist/types/lib/Router/Router.d.ts +54 -0
  194. package/dist/types/lib/Router/Router.d.ts.map +1 -0
  195. package/dist/types/lib/Router/animatedRouter.d.ts +48 -0
  196. package/dist/types/lib/Router/animatedRouter.d.ts.map +1 -0
  197. package/dist/types/lib/Router/buildPath.d.ts +20 -0
  198. package/dist/types/lib/Router/buildPath.d.ts.map +1 -0
  199. package/dist/types/lib/Router/hashAtom.d.ts +12 -0
  200. package/dist/types/lib/Router/hashAtom.d.ts.map +1 -0
  201. package/dist/types/lib/Router/index.d.ts +11 -0
  202. package/dist/types/lib/Router/index.d.ts.map +1 -0
  203. package/dist/types/lib/Router/isPathMatching.d.ts +12 -0
  204. package/dist/types/lib/Router/isPathMatching.d.ts.map +1 -0
  205. package/dist/types/lib/Router/location.d.ts +74 -0
  206. package/dist/types/lib/Router/location.d.ts.map +1 -0
  207. package/dist/types/lib/Router/navigateTo.d.ts +31 -0
  208. package/dist/types/lib/Router/navigateTo.d.ts.map +1 -0
  209. package/dist/types/lib/Router/navigationLock.d.ts +50 -0
  210. package/dist/types/lib/Router/navigationLock.d.ts.map +1 -0
  211. package/dist/types/lib/Router/pathAtom.d.ts +42 -0
  212. package/dist/types/lib/Router/pathAtom.d.ts.map +1 -0
  213. package/dist/types/lib/Router/pathResolver.d.ts +9 -0
  214. package/dist/types/lib/Router/pathResolver.d.ts.map +1 -0
  215. package/dist/types/lib/Router/qsAtom.d.ts +12 -0
  216. package/dist/types/lib/Router/qsAtom.d.ts.map +1 -0
  217. package/dist/types/lib/Template/index.d.ts +6 -0
  218. package/dist/types/lib/Template/index.d.ts.map +1 -0
  219. package/dist/types/lib/Template/scheduler.d.ts +59 -0
  220. package/dist/types/lib/Template/scheduler.d.ts.map +1 -0
  221. package/dist/types/lib/Template/x-x.d.ts +60 -0
  222. package/dist/types/lib/Template/x-x.d.ts.map +1 -0
  223. package/dist/types/lib/Template/x-x.types.d.ts +91 -0
  224. package/dist/types/lib/Template/x-x.types.d.ts.map +1 -0
  225. package/dist/types/lib/Template/x-x.utils.d.ts +15 -0
  226. package/dist/types/lib/Template/x-x.utils.d.ts.map +1 -0
  227. package/dist/types/lib/Template/x.d.ts +5 -0
  228. package/dist/types/lib/Template/x.d.ts.map +1 -0
  229. package/dist/types/lib/Template/xProvider.d.ts +2 -0
  230. package/dist/types/lib/Template/xProvider.d.ts.map +1 -0
  231. package/dist/types/lib/Timers/createManagedTimer.d.ts +12 -0
  232. package/dist/types/lib/Timers/createManagedTimer.d.ts.map +1 -0
  233. package/dist/types/lib/Timers/index.d.ts +4 -0
  234. package/dist/types/lib/Timers/index.d.ts.map +1 -0
  235. package/dist/types/lib/Timers/interval.d.ts +2 -0
  236. package/dist/types/lib/Timers/interval.d.ts.map +1 -0
  237. package/dist/types/lib/Timers/timeout.d.ts +2 -0
  238. package/dist/types/lib/Timers/timeout.d.ts.map +1 -0
  239. package/dist/types/lib/TrackState/componentStatus.d.ts +105 -0
  240. package/dist/types/lib/TrackState/componentStatus.d.ts.map +1 -0
  241. package/dist/types/lib/TrackState/readTracking.d.ts +20 -0
  242. package/dist/types/lib/TrackState/readTracking.d.ts.map +1 -0
  243. package/dist/types/lib/Utils/Context.d.ts +6 -0
  244. package/dist/types/lib/Utils/Context.d.ts.map +1 -0
  245. package/dist/types/lib/Utils/Date/calendar.d.ts +30 -0
  246. package/dist/types/lib/Utils/Date/calendar.d.ts.map +1 -0
  247. package/dist/types/lib/Utils/Date/core.d.ts +29 -0
  248. package/dist/types/lib/Utils/Date/core.d.ts.map +1 -0
  249. package/dist/types/lib/Utils/Date/date.d.ts +60 -0
  250. package/dist/types/lib/Utils/Date/date.d.ts.map +1 -0
  251. package/dist/types/lib/Utils/Date/index.d.ts +3 -0
  252. package/dist/types/lib/Utils/Date/index.d.ts.map +1 -0
  253. package/dist/types/lib/Utils/deepClone.d.ts +7 -0
  254. package/dist/types/lib/Utils/deepClone.d.ts.map +1 -0
  255. package/dist/types/lib/Utils/deepFreeze.d.ts +2 -0
  256. package/dist/types/lib/Utils/deepFreeze.d.ts.map +1 -0
  257. package/dist/types/lib/Utils/getAllProps.d.ts +2 -0
  258. package/dist/types/lib/Utils/getAllProps.d.ts.map +1 -0
  259. package/dist/types/lib/Utils/helpers.d.ts +13 -0
  260. package/dist/types/lib/Utils/helpers.d.ts.map +1 -0
  261. package/dist/types/lib/Utils/index.d.ts +13 -0
  262. package/dist/types/lib/Utils/index.d.ts.map +1 -0
  263. package/dist/types/lib/Utils/is.d.ts +12 -0
  264. package/dist/types/lib/Utils/is.d.ts.map +1 -0
  265. package/dist/types/lib/Utils/isDefinedAsGetter.d.ts +2 -0
  266. package/dist/types/lib/Utils/isDefinedAsGetter.d.ts.map +1 -0
  267. package/dist/types/lib/Utils/logger.d.ts +22 -0
  268. package/dist/types/lib/Utils/logger.d.ts.map +1 -0
  269. package/dist/types/lib/Utils/notificationManager.d.ts +67 -0
  270. package/dist/types/lib/Utils/notificationManager.d.ts.map +1 -0
  271. package/dist/types/lib/Utils/registerCleanup.d.ts +7 -0
  272. package/dist/types/lib/Utils/registerCleanup.d.ts.map +1 -0
  273. package/dist/types/lib/Utils/svgIcon.d.ts +95 -0
  274. package/dist/types/lib/Utils/svgIcon.d.ts.map +1 -0
  275. package/dist/types/lib/Utils/uuid.d.ts +7 -0
  276. package/dist/types/lib/Utils/uuid.d.ts.map +1 -0
  277. package/dist/types/lib/ZeroPromise/index.d.ts +2 -0
  278. package/dist/types/lib/ZeroPromise/index.d.ts.map +1 -0
  279. package/dist/types/lib/ZeroPromise/zero.d.ts +23 -0
  280. package/dist/types/lib/ZeroPromise/zero.d.ts.map +1 -0
  281. package/dist/types/lib/actions/action.d.ts +14 -0
  282. package/dist/types/lib/actions/action.d.ts.map +1 -0
  283. package/dist/types/lib/actions/animatePresets.d.ts +38 -0
  284. package/dist/types/lib/actions/animatePresets.d.ts.map +1 -0
  285. package/dist/types/lib/actions/animateSwap.d.ts +79 -0
  286. package/dist/types/lib/actions/animateSwap.d.ts.map +1 -0
  287. package/dist/types/lib/actions/animateTypes.d.ts +103 -0
  288. package/dist/types/lib/actions/animateTypes.d.ts.map +1 -0
  289. package/dist/types/lib/actions/asyncAction.d.ts +4 -0
  290. package/dist/types/lib/actions/asyncAction.d.ts.map +1 -0
  291. package/dist/types/lib/actions/asyncActionCache.d.ts +16 -0
  292. package/dist/types/lib/actions/asyncActionCache.d.ts.map +1 -0
  293. package/dist/types/lib/actions/asyncActionPolling.d.ts +14 -0
  294. package/dist/types/lib/actions/asyncActionPolling.d.ts.map +1 -0
  295. package/dist/types/lib/actions/asyncActionTypes.d.ts +74 -0
  296. package/dist/types/lib/actions/asyncActionTypes.d.ts.map +1 -0
  297. package/dist/types/lib/actions/createTimingFunction.d.ts +23 -0
  298. package/dist/types/lib/actions/createTimingFunction.d.ts.map +1 -0
  299. package/dist/types/lib/actions/debounce.d.ts +10 -0
  300. package/dist/types/lib/actions/debounce.d.ts.map +1 -0
  301. package/dist/types/lib/actions/index.d.ts +12 -0
  302. package/dist/types/lib/actions/index.d.ts.map +1 -0
  303. package/dist/types/lib/actions/paginatedAsyncAction.d.ts +121 -0
  304. package/dist/types/lib/actions/paginatedAsyncAction.d.ts.map +1 -0
  305. package/dist/types/lib/actions/taskAction.d.ts +105 -0
  306. package/dist/types/lib/actions/taskAction.d.ts.map +1 -0
  307. package/dist/types/lib/actions/throttle.d.ts +9 -0
  308. package/dist/types/lib/actions/throttle.d.ts.map +1 -0
  309. package/dist/types/lib/css-in-js/cl.d.ts +37 -0
  310. package/dist/types/lib/css-in-js/cl.d.ts.map +1 -0
  311. package/dist/types/lib/css-in-js/index.d.ts +7 -0
  312. package/dist/types/lib/css-in-js/index.d.ts.map +1 -0
  313. package/dist/types/lib/css-in-js/sanitize.d.ts +31 -0
  314. package/dist/types/lib/css-in-js/sanitize.d.ts.map +1 -0
  315. package/dist/types/lib/css-in-js/serialize.d.ts +98 -0
  316. package/dist/types/lib/css-in-js/serialize.d.ts.map +1 -0
  317. package/dist/types/lib/css-in-js/stylesheet.d.ts +188 -0
  318. package/dist/types/lib/css-in-js/stylesheet.d.ts.map +1 -0
  319. package/dist/types/lib/css-in-js/theme.d.ts +110 -0
  320. package/dist/types/lib/css-in-js/theme.d.ts.map +1 -0
  321. package/dist/types/lib/devtools/devtoolsHooks.d.ts +101 -0
  322. package/dist/types/lib/devtools/devtoolsHooks.d.ts.map +1 -0
  323. package/dist/types/lib/devtools/index.d.ts +2 -0
  324. package/dist/types/lib/devtools/index.d.ts.map +1 -0
  325. package/dist/types/lib/index.d.ts +46 -0
  326. package/dist/types/lib/index.d.ts.map +1 -0
  327. package/dist/types/lib/on/hooks.d.ts +319 -0
  328. package/dist/types/lib/on/hooks.d.ts.map +1 -0
  329. package/dist/types/lib/on/index.d.ts +3 -0
  330. package/dist/types/lib/on/index.d.ts.map +1 -0
  331. package/dist/types/lib/on/on.d.ts +16 -0
  332. package/dist/types/lib/on/on.d.ts.map +1 -0
  333. package/dist/types/lib/portals/dialog.d.ts +56 -0
  334. package/dist/types/lib/portals/dialog.d.ts.map +1 -0
  335. package/dist/types/lib/portals/index.d.ts +9 -0
  336. package/dist/types/lib/portals/index.d.ts.map +1 -0
  337. package/dist/types/lib/portals/popup.d.ts +37 -0
  338. package/dist/types/lib/portals/popup.d.ts.map +1 -0
  339. package/dist/types/lib/portals/portal.d.ts +57 -0
  340. package/dist/types/lib/portals/portal.d.ts.map +1 -0
  341. package/dist/types/lib/portals/tip.d.ts +38 -0
  342. package/dist/types/lib/portals/tip.d.ts.map +1 -0
  343. package/dist/types/lib/socket/index.d.ts +2 -0
  344. package/dist/types/lib/socket/index.d.ts.map +1 -0
  345. package/dist/types/lib/socket/ws.d.ts +83 -0
  346. package/dist/types/lib/socket/ws.d.ts.map +1 -0
  347. package/dist/types/lib/ssr/index.d.ts +3 -0
  348. package/dist/types/lib/ssr/index.d.ts.map +1 -0
  349. package/dist/types/lib/ssr/ssr-bridge.d.ts +89 -0
  350. package/dist/types/lib/ssr/ssr-bridge.d.ts.map +1 -0
  351. package/dist/types/lib/ssr/ssrFlag.d.ts +38 -0
  352. package/dist/types/lib/ssr/ssrFlag.d.ts.map +1 -0
  353. package/dist/types/lib/virtualizer/ScrollerController.d.ts +54 -0
  354. package/dist/types/lib/virtualizer/ScrollerController.d.ts.map +1 -0
  355. package/dist/types/lib/virtualizer/Virtualizer.d.ts +214 -0
  356. package/dist/types/lib/virtualizer/Virtualizer.d.ts.map +1 -0
  357. package/dist/types/lib/virtualizer/events.d.ts +27 -0
  358. package/dist/types/lib/virtualizer/events.d.ts.map +1 -0
  359. package/dist/types/lib/virtualizer/layouts/flow.d.ts +123 -0
  360. package/dist/types/lib/virtualizer/layouts/flow.d.ts.map +1 -0
  361. package/dist/types/lib/virtualizer/layouts/grid.d.ts +25 -0
  362. package/dist/types/lib/virtualizer/layouts/grid.d.ts.map +1 -0
  363. package/dist/types/lib/virtualizer/layouts/masonry.d.ts +37 -0
  364. package/dist/types/lib/virtualizer/layouts/masonry.d.ts.map +1 -0
  365. package/dist/types/lib/virtualizer/layouts/shared/BaseLayout.d.ts +204 -0
  366. package/dist/types/lib/virtualizer/layouts/shared/BaseLayout.d.ts.map +1 -0
  367. package/dist/types/lib/virtualizer/layouts/shared/GridBaseLayout.d.ts +41 -0
  368. package/dist/types/lib/virtualizer/layouts/shared/GridBaseLayout.d.ts.map +1 -0
  369. package/dist/types/lib/virtualizer/layouts/shared/Layout.d.ts +138 -0
  370. package/dist/types/lib/virtualizer/layouts/shared/Layout.d.ts.map +1 -0
  371. package/dist/types/lib/virtualizer/layouts/shared/SizeCache.d.ts +19 -0
  372. package/dist/types/lib/virtualizer/layouts/shared/SizeCache.d.ts.map +1 -0
  373. package/dist/types/lib/virtualizer/layouts/shared/SizeGapPaddingBaseLayout.d.ts +57 -0
  374. package/dist/types/lib/virtualizer/layouts/shared/SizeGapPaddingBaseLayout.d.ts.map +1 -0
  375. package/dist/types/lib/virtualizer/mates-adapter.d.ts +201 -0
  376. package/dist/types/lib/virtualizer/mates-adapter.d.ts.map +1 -0
  377. package/dist/types/lib/virtualizer/virtualize.d.ts +52 -0
  378. package/dist/types/lib/virtualizer/virtualize.d.ts.map +1 -0
  379. package/package.json +45 -0
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Navigates to `path` by updating both `window.history` and `pathAtom` in
3
+ * sync, so the Router re-renders reactively.
4
+ *
5
+ * - By default uses `pushState`, creating a new browser history entry.
6
+ * - Pass `replace = true` to use `replaceState` instead — the current entry
7
+ * is overwritten, so the user cannot navigate back to the previous URL.
8
+ * - Silently no-ops if navigation is currently locked (`navigationLocked()`
9
+ * returns `true`). Nothing is pushed/replaced and `pathAtom` is not updated.
10
+ * - `data` is forwarded as the state argument to the history API and can be
11
+ * retrieved later via `history.state`.
12
+ *
13
+ * Scroll-to-top is intentionally **not** handled here. It belongs in the
14
+ * router layer (`animatedRouter`'s `scrollToTop` option) so that:
15
+ * 1. The scroll fires at the right moment (after exit animation, before
16
+ * enter animation) rather than prematurely before the old page exits.
17
+ * 2. Nested / child routers can opt out with `scrollToTop: false` without
18
+ * affecting the parent.
19
+ *
20
+ * @param path - The pathname to navigate to (e.g. `"/about"`).
21
+ * @param replace - When `true`, calls `replaceState` instead of `pushState`.
22
+ * Defaults to `false`.
23
+ * @param data - Optional state object passed to the history API.
24
+ *
25
+ * @example
26
+ * navigateTo("/about"); // pushState
27
+ * navigateTo("/login", true); // replaceState (no new history entry)
28
+ * navigateTo("/profile", false, { userId: 42 }); // pushState with state data
29
+ */
30
+ export declare function navigateTo(path: string, replace?: boolean, data?: any): void;
31
+ //# sourceMappingURL=navigateTo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigateTo.d.ts","sourceRoot":"","sources":["../../../../../lib/Router/navigateTo.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,CAU5E"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Reactive atom holding the current navigation lock state.
3
+ *
4
+ * When `true`, all navigation is suspended:
5
+ * - `navigateTo()` becomes a no-op.
6
+ * - `pathAtom` is hard-locked via `superAtom.lock()`, so `.set()` calls are
7
+ * silently ignored.
8
+ * - The `qsAtom → URL` effect and the `popstate` handler both bail out early.
9
+ * - The `hashAtom → URL` effect and the `hashchange` handler both bail out early.
10
+ *
11
+ * When `false` (the default), all navigation works normally.
12
+ *
13
+ * Prefer using the `lockNavigation()` / `unlockNavigation()` helpers over
14
+ * calling `navigationLocked.set()` directly.
15
+ *
16
+ * @example
17
+ * import { navigationLocked } from "mates";
18
+ *
19
+ * navigationLocked(); // false — unlocked by default
20
+ */
21
+ export declare const navigationLocked: import("..").AtomType<boolean>;
22
+ /**
23
+ * Locks navigation across the entire Router module.
24
+ *
25
+ * After calling this, the following all become no-ops until
26
+ * `unlockNavigation()` is called:
27
+ * - `navigateTo()`
28
+ * - `pathAtom.set()` (hard-locked via `superAtom`)
29
+ * - `qsAtom` → URL writes
30
+ * - `hashAtom` → URL writes
31
+ * - `popstate` / `hashchange` → atom updates
32
+ *
33
+ * @example
34
+ * lockNavigation();
35
+ * navigateTo("/somewhere"); // no-op
36
+ */
37
+ export declare const lockNavigation: () => void;
38
+ /**
39
+ * Unlocks navigation, re-enabling all navigation operations that were
40
+ * suppressed by `lockNavigation()`.
41
+ *
42
+ * @example
43
+ * lockNavigation();
44
+ * navigateTo("/somewhere"); // no-op
45
+ *
46
+ * unlockNavigation();
47
+ * navigateTo("/somewhere"); // works — pushState + pathAtom.set()
48
+ */
49
+ export declare const unlockNavigation: () => void;
50
+ //# sourceMappingURL=navigationLock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigationLock.d.ts","sourceRoot":"","sources":["../../../../../lib/Router/navigationLock.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,gBAAgB,gCAAc,CAAC;AAE5C;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,YAAmC,CAAC;AAE/D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,YAAoC,CAAC"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @file pathAtom.ts
3
+ *
4
+ * Provides `pathAtom` — the single source of truth for the current URL
5
+ * pathname inside the Router module.
6
+ *
7
+ * `pathAtom` is a `superAtom` (a lockable reactive atom) initialised with
8
+ * `window.location.pathname` at module load time. Because it is a
9
+ * `superAtom`, it can be hard-locked and hard-unlocked in response to the
10
+ * navigation lock state, which causes every subscriber (including the Router
11
+ * itself) to ignore updates while navigation is locked.
12
+ *
13
+ * Three browser events keep `pathAtom` in sync with navigation that happens
14
+ * outside of `navigateTo`:
15
+ * - `popstate` — browser back / forward buttons
16
+ * - `hashchange` — hash-only navigations that also change the pathname
17
+ * - `navigate` — Navigation API (supported in modern browsers)
18
+ *
19
+ * Any component or effect that reads `pathAtom()` will automatically re-run
20
+ * whenever the path changes.
21
+ *
22
+ * **Do NOT set `pathAtom` directly.** Use `navigateTo()` instead so that
23
+ * `window.history` and the atom are always updated together.
24
+ *
25
+ * @example
26
+ * pathAtom.get(); // "/current/path"
27
+ * pathAtom(); // same — tracked read (registers a reactive dependency)
28
+ *
29
+ * // Do NOT do this:
30
+ * // pathAtom.set("/somewhere"); // bypasses history API
31
+ * // Use instead:
32
+ * // navigateTo("/somewhere");
33
+ */
34
+ /**
35
+ * Reactive atom holding the current `window.location.pathname`.
36
+ *
37
+ * Implemented as a `superAtom` so it can be locked/unlocked in step with
38
+ * `navigationLocked()`. Prefer reading via the call syntax (`pathAtom()`)
39
+ * inside reactive contexts so that the caller re-renders on path changes.
40
+ */
41
+ export declare const pathAtom: import("..").SuperAtomType<string>;
42
+ //# sourceMappingURL=pathAtom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pathAtom.d.ts","sourceRoot":"","sources":["../../../../../lib/Router/pathAtom.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,oCAEpB,CAAC"}
@@ -0,0 +1,9 @@
1
+ export { buildPath } from "./buildPath";
2
+ export { hashAtom } from "./hashAtom";
3
+ export { isPathMatching } from "./isPathMatching";
4
+ export { location } from "./location";
5
+ export { navigateTo } from "./navigateTo";
6
+ export { lockNavigation, navigationLocked, unlockNavigation, } from "./navigationLock";
7
+ export { pathAtom } from "./pathAtom";
8
+ export { qsAtom } from "./qsAtom";
9
+ //# sourceMappingURL=pathResolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pathResolver.d.ts","sourceRoot":"","sources":["../../../../../lib/Router/pathResolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Singleton atom holding the current URL query string as a parsed object.
3
+ *
4
+ * Hydrated from `window.location.search` at module load time. All reads are
5
+ * reactive — any effect or component that calls `qsAtom()` will re-run
6
+ * whenever the query string state changes.
7
+ *
8
+ * Setting the atom via `qsAtom.set(obj)` automatically serialises the new
9
+ * value back to the URL query string using `history.replaceState`.
10
+ */
11
+ export declare const qsAtom: import("..").AtomType<Record<string, any>>;
12
+ //# sourceMappingURL=qsAtom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qsAtom.d.ts","sourceRoot":"","sources":["../../../../../lib/Router/qsAtom.ts"],"names":[],"mappings":"AAmFA;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM,4CAAqC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from "./scheduler";
2
+ export * from "./x";
3
+ export * from "./x-x.types";
4
+ export * from "./x-x.utils";
5
+ export * from "./xProvider";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/Template/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,KAAK,CAAC;AACpB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,59 @@
1
+ import type { HostElement } from "./x-x.types";
2
+ declare class CleanupScheduler {
3
+ private pending;
4
+ private isScheduled;
5
+ /**
6
+ * Schedule a deferred cleanup for a disconnected component.
7
+ * The actual teardown runs in a microtask so that DOM moves
8
+ * (disconnect → reconnect in the same tick) can cancel it.
9
+ */
10
+ scheduleDisconnect(component: HostElement): void;
11
+ /** Cancel a pending disconnect (called from connectedCallback on move). */
12
+ cancelDisconnect(component: HostElement): void;
13
+ /** Run full teardown for components that are truly gone. */
14
+ private flush;
15
+ reset(): void;
16
+ }
17
+ /**
18
+ * Immediate, synchronous teardown of all component reactive state.
19
+ * Runs cleanups, clears subscriptions, resets mount flag.
20
+ * Does NOT clear _view, _props, or oldView — the caller decides those.
21
+ */
22
+ export declare function resetComponentState(comp: HostElement): void;
23
+ declare class EffectScheduler {
24
+ private pendingEffects;
25
+ isScheduled: boolean;
26
+ private _isFlushing;
27
+ get isFlushing(): boolean;
28
+ reset(): void;
29
+ schedule(effectFn: () => void): void;
30
+ flush(): void;
31
+ }
32
+ declare class RenderScheduler {
33
+ private pendingComponents;
34
+ private nextPendingComponents;
35
+ /** Components in the current sorted wave, used to dedup mid-flush schedules. */
36
+ private _currentWave;
37
+ isScheduled: boolean;
38
+ private _isFlushing;
39
+ private _flushVersion;
40
+ /** Callbacks to run once after all pending renders (including deferred children) complete. */
41
+ private _onIdleCallbacks;
42
+ /** Monotonically increasing counter stamped on each flush cycle. */
43
+ get flushVersion(): number;
44
+ /**
45
+ * Register a one-shot callback that fires after the render scheduler
46
+ * has fully settled (no more pending or next-pending components).
47
+ * Used by onAllMount to wait for all descendants to mount.
48
+ */
49
+ onceIdle(fn: () => void): void;
50
+ private _drainIdleCallbacks;
51
+ reset(): void;
52
+ schedule(component: HostElement): void;
53
+ flush(): void;
54
+ }
55
+ export declare const cleanupScheduler: CleanupScheduler;
56
+ export declare const effectScheduler: EffectScheduler;
57
+ export declare const globalScheduler: RenderScheduler;
58
+ export {};
59
+ //# sourceMappingURL=scheduler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["../../../../../lib/Template/scheduler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAQ/C,cAAM,gBAAgB;IACpB,OAAO,CAAC,OAAO,CAA0B;IACzC,OAAO,CAAC,WAAW,CAAS;IAE5B;;;;OAIG;IACH,kBAAkB,CAAC,SAAS,EAAE,WAAW;IAQzC,2EAA2E;IAC3E,gBAAgB,CAAC,SAAS,EAAE,WAAW;IAIvC,4DAA4D;IAC5D,OAAO,CAAC,KAAK;IAgBb,KAAK;CAIN;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,WAAW,QAoBpD;AAED,cAAM,eAAe;IACnB,OAAO,CAAC,cAAc,CAAyB;IACxC,WAAW,UAAS;IAC3B,OAAO,CAAC,WAAW,CAAS;IAE5B,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,KAAK;IAML,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI;IAQ7B,KAAK;CA8BN;AAED,cAAM,eAAe;IACnB,OAAO,CAAC,iBAAiB,CAA0B;IACnD,OAAO,CAAC,qBAAqB,CAA0B;IACvD,gFAAgF;IAChF,OAAO,CAAC,YAAY,CAA0B;IACvC,WAAW,UAAS;IAC3B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,aAAa,CAAK;IAC1B,8FAA8F;IAC9F,OAAO,CAAC,gBAAgB,CAAsB;IAE9C,oEAAoE;IACpE,IAAI,YAAY,WAEf;IAED;;;;OAIG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,IAAI;IASvB,OAAO,CAAC,mBAAmB;IAc3B,KAAK;IASL,QAAQ,CAAC,SAAS,EAAE,WAAW;IA0B/B,KAAK;CA+CN;AAED,eAAO,MAAM,gBAAgB,kBAAyB,CAAC;AACvD,eAAO,MAAM,eAAe,iBAAwB,CAAC;AACrD,eAAO,MAAM,eAAe,iBAAwB,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { type CleanupEventType } from "../Mutables/events/events";
2
+ export declare class Component extends HTMLElement {
3
+ private _props;
4
+ _propsFn: () => Record<string, any>;
5
+ name: string;
6
+ private _view;
7
+ private _templateFn;
8
+ private _hasMounted;
9
+ private _renderScheduled;
10
+ _xviewRender: () => void;
11
+ componentId: number;
12
+ cleanups: Map<any, Function[]>;
13
+ scopes: Map<new () => any, () => any>;
14
+ /** useState instances registered on this component (for devtools inspection) */
15
+ _useStates: {
16
+ state: any;
17
+ atom: any;
18
+ }[];
19
+ addScope(scopeClass: new () => any, scope: any): void;
20
+ lastVersion: number;
21
+ /** DOM nesting depth (number of x-x ancestors). Used by RenderScheduler to sort parent-first. */
22
+ _depth: number;
23
+ /** Nearest x-x ancestor (set during connectedCallback depth walk). */
24
+ _parentComponent: Component | null;
25
+ /** Flush-cycle stamp set by _render(). Used by RenderScheduler to deduplicate. */
26
+ _renderVersion: number;
27
+ /** Error handlers registered via onError(). */
28
+ _errorHandlers: ((error: unknown) => void)[];
29
+ /** When non-null, the component is in error state and skips re-renders. */
30
+ _errorState: unknown;
31
+ onEachUpdateCallbacks: Set<() => void>;
32
+ onEachUpdate(callback: () => void): void;
33
+ DOMReadyEvent: null | CleanupEventType;
34
+ PaintEvent: null | CleanupEventType;
35
+ constructor();
36
+ set props(val: Record<string, any>);
37
+ get props(): Record<string, any>;
38
+ oldView: any;
39
+ private _isViewLoading;
40
+ /**
41
+ * When the view reference changes, store it, update the backing field, and
42
+ * reset mount state so the next render re-initialises.
43
+ *
44
+ * Scenario 2: element stays in DOM but internal component changes.
45
+ * We run a synchronous teardown of reactive state so the outer function
46
+ * re-runs on the next render.
47
+ */
48
+ private _applyViewChange;
49
+ set view(val: any);
50
+ get view(): any;
51
+ callOnEachUpdate(): void;
52
+ connectedCallback(): void;
53
+ disconnectedCallback(): void;
54
+ private _onRequestParentScope;
55
+ addToCleanUps(key: any, cleanup: Function): void;
56
+ _render(): void;
57
+ private _mountComponent;
58
+ private _handleRenderError;
59
+ }
60
+ //# sourceMappingURL=x-x.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-x.d.ts","sourceRoot":"","sources":["../../../../../lib/Template/x-x.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,gBAAgB,EAAgB,MAAM,2BAA2B,CAAC;AAwBhF,qBAAa,SAAU,SAAQ,WAAW;IACxC,OAAO,CAAC,MAAM,CAAsB;IAE7B,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,IAAI,SAAe;IAC1B,OAAO,CAAC,KAAK,CAAM;IACnB,OAAO,CAAC,WAAW,CAEV;IACT,OAAO,CAAC,WAAW,CAAU;IAC7B,OAAO,CAAC,gBAAgB,CAAU;IAE3B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC/B,MAAM,EAAE,GAAG,CAAC,UAAU,GAAG,EAAE,MAAM,GAAG,CAAC,CAAa;IAEzD,gFAAgF;IACzE,UAAU,EAAE;QAAE,KAAK,EAAE,GAAG,CAAC;QAAC,IAAI,EAAE,GAAG,CAAA;KAAE,EAAE,CAAM;IAEpD,QAAQ,CAAC,UAAU,EAAE,UAAU,GAAG,EAAE,KAAK,EAAE,GAAG;IAIvC,WAAW,SAAM;IAExB,iGAAiG;IAC1F,MAAM,SAAK;IAClB,sEAAsE;IAC/D,gBAAgB,EAAE,SAAS,GAAG,IAAI,CAAQ;IACjD,kFAAkF;IAC3E,cAAc,SAAK;IAE1B,+CAA+C;IACxC,cAAc,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC,EAAE,CAAM;IACzD,2EAA2E;IACpE,WAAW,EAAE,OAAO,CAAQ;IAG5B,qBAAqB,EAAE,GAAG,CAAC,MAAM,IAAI,CAAC,CAAa;IACnD,YAAY,CAAC,QAAQ,EAAE,MAAM,IAAI;IAKjC,aAAa,EAAE,IAAI,GAAG,gBAAgB,CAAQ;IAC9C,UAAU,EAAE,IAAI,GAAG,gBAAgB,CAAQ;;IAwBlD,IAAI,KAAK,CAAC,GAAG,qBAAA,EAGZ;IAED,IAAI,KAAK,wBAER;IAEM,OAAO,EAAE,GAAG,CAAC;IAEpB,OAAO,CAAC,cAAc,CAAS;IAM/B;;;;;;;OAOG;IACH,OAAO,CAAC,gBAAgB;IAmBxB,IAAI,IAAI,CAAC,GAAG,KAAA,EAyBX;IAED,IAAI,IAAI,QAEP;IAMD,gBAAgB;IAIhB,iBAAiB;IAgCjB,oBAAoB;IAqBpB,OAAO,CAAC,qBAAqB,CAa3B;IAEF,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ;IAazC,OAAO;IA6CP,OAAO,CAAC,eAAe;IAqFvB,OAAO,CAAC,kBAAkB;CA0E3B"}
@@ -0,0 +1,91 @@
1
+ import type { nothing, TemplateResult } from "lit-html";
2
+ import type { Component as ComponentElement } from "./x-x";
3
+ export type { Component as ComponentElement } from "./x-x";
4
+ /**
5
+ * HostElement — the x-x custom element instance, augmented with
6
+ * runtime-added properties from hooks (useSetup, useState, etc.)
7
+ */
8
+ export interface HostElement extends ComponentElement {
9
+ _setupStack?: any[];
10
+ _setupIndex?: number;
11
+ state?: any;
12
+ [key: string]: any;
13
+ }
14
+ /**
15
+ * TemplateFn — the inner function returned by a Component.
16
+ * Called on every render. Returns a lit-html TemplateResult.
17
+ */
18
+ export type TemplateFn = () => TemplateResult | null | typeof nothing;
19
+ /**
20
+ * Props<T> — a function that returns the props object of type T.
21
+ * This is what the Component receives as its argument.
22
+ *
23
+ * @example
24
+ * const props: Props<{ name: string }> = () => ({ name: "Alice" });
25
+ */
26
+ export type Props<T = Record<string, any>> = () => T;
27
+ /**
28
+ * Component<T> — a closure function that receives a Props<T> function
29
+ * and returns a TemplateFn. The outer function runs once on mount;
30
+ * the returned TemplateFn runs on every render.
31
+ *
32
+ * @example
33
+ * const MyComponent: Component<{ name: string }> = (props) => {
34
+ * const count = atom(0);
35
+ * return () => html`<div>${props().name}: ${count()}</div>`;
36
+ * };
37
+ */
38
+ export type Component<T extends Record<string, any> = Record<string, any>> = (propsFn: Props<T>) => TemplateFn;
39
+ /**
40
+ * LazyComponent<T> — an async function that returns a module (or a module
41
+ * with a `default` export) containing a `Component<T>`. Pass one of these
42
+ * to `x()` or a `Router` config entry to enable code-splitting / lazy loading.
43
+ *
44
+ * The runtime detects `isAsyncValue(val) === true`, calls `resolveAsyncValue`,
45
+ * and then forwards the unwrapped `Component` to the normal render path once
46
+ * the promise settles.
47
+ *
48
+ * @example
49
+ * // inline with x():
50
+ * x(async () => import("./HeavyPage"));
51
+ *
52
+ * // inside Router config:
53
+ * Router([{ path: "/heavy", component: async () => import("./HeavyPage") }]);
54
+ */
55
+ export type LazyComponent<T extends Record<string, any> = Record<string, any>> = () => Promise<Component<T> | {
56
+ default: Component<T>;
57
+ }>;
58
+ /**
59
+ * ComponentType<T> — the full union of everything that can be passed as a
60
+ * view / component reference. Use this when you need to accept both eager
61
+ * and lazy forms in a single parameter type.
62
+ */
63
+ export type ComponentType<T extends Record<string, any> = Record<string, any>> = Component<T> | LazyComponent<T>;
64
+ /**
65
+ * Setter — wraps an event handler so it runs in the context of the
66
+ * current host component.
67
+ */
68
+ export type Setter = <T extends (...args: any[]) => any>(fn: T) => T;
69
+ /** @deprecated Use Component instead */
70
+ export type ComponentFn<T extends Record<string, any> = Record<string, any>> = Component<T>;
71
+ /** @deprecated Use Component instead */
72
+ export type View<T extends Record<string, any> = Record<string, any>> = Component<T>;
73
+ /** @deprecated Use Component instead */
74
+ export type ClosureComponent<T extends Record<string, any> = Record<string, any>> = Component<T>;
75
+ /** @deprecated Use Component instead */
76
+ export type ViewComponent<T extends Record<string, any> = Record<string, any>> = Component<T>;
77
+ /** @deprecated Use Component instead */
78
+ export type C<T extends Record<string, any> = Record<string, any>> = Component<T>;
79
+ /** @deprecated Use Component instead */
80
+ export type OuterFn<T extends Record<string, any> = Record<string, any>> = Component<T>;
81
+ /** @deprecated Use Props instead */
82
+ export type PropsType<T extends Record<string, any> = Record<string, any>> = Props<T>;
83
+ /** @deprecated Use TemplateFn instead */
84
+ export type RenderFn = TemplateFn;
85
+ /** @deprecated Use TemplateFn instead */
86
+ export type InnerFn = TemplateFn;
87
+ /** @deprecated Use TemplateFn instead */
88
+ export type TemplateComponent = TemplateFn;
89
+ /** @deprecated Use TemplateFn instead */
90
+ export type X = TemplateFn;
91
+ //# sourceMappingURL=x-x.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-x.types.d.ts","sourceRoot":"","sources":["../../../../../lib/Template/x-x.types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Checks whether a value is async — an AsyncFunction, a Promise, or a thenable.
3
+ */
4
+ export declare function isAsyncValue(val: any): boolean;
5
+ /**
6
+ * Normalises an async value (AsyncFunction | Promise | thenable) into a plain
7
+ * Promise so callers can simply `.then(...)` on the result.
8
+ */
9
+ export declare function resolveAsyncValue(val: any): Promise<any>;
10
+ /**
11
+ * Extracts the resolved module's default export (if present) or the module
12
+ * itself. Used after awaiting a lazy / async component import.
13
+ */
14
+ export declare function unwrapModule(module: any): any;
15
+ //# sourceMappingURL=x-x.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-x.utils.d.ts","sourceRoot":"","sources":["../../../../../lib/Template/x-x.utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAQ9C;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAGxD;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,CAE7C"}
@@ -0,0 +1,5 @@
1
+ import type { ComponentType } from "./x-x.types";
2
+ export declare const x: <T extends Record<string, any>>(viewFn: ComponentType<T>, props?: T) => import("lit-html").TemplateResult<1>;
3
+ export declare const view: <T extends Record<string, any>>(viewFn: ComponentType<T>, props?: T) => import("lit-html").TemplateResult<1>;
4
+ export declare const renderX: <T extends Record<string, any>>(viewFn: ComponentType<T>, element: HTMLElement, props?: T) => import("lit-html").RootPart;
5
+ //# sourceMappingURL=x.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x.d.ts","sourceRoot":"","sources":["../../../../../lib/Template/x.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,eAAO,MAAM,CAAC,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7C,QAAQ,aAAa,CAAC,CAAC,CAAC,EACxB,QAAO,CAAW,yCAGnB,CAAC;AAGF,eAAO,MAAM,IAAI,GARC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,UACrC,aAAa,CAAC,CAAC,CAAC,UACjB,CAAC,yCAMW,CAAC;AAEtB,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnD,QAAQ,aAAa,CAAC,CAAC,CAAC,EACxB,SAAS,WAAW,EACpB,QAAO,CAAW,gCAGnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=xProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xProvider.d.ts","sourceRoot":"","sources":["../../../../../lib/Template/xProvider.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ type TimerType = "timeout" | "interval";
2
+ type TimerId = ReturnType<typeof setTimeout> | ReturnType<typeof setInterval>;
3
+ /**
4
+ * Internal helper to create managed timers with automatic cleanup
5
+ * @param fn - Function to execute
6
+ * @param delay - Delay/interval in milliseconds
7
+ * @param type - Timer type (timeout or interval)
8
+ * @returns Timer ID
9
+ */
10
+ export declare const createManagedTimer: (fn: () => void, delay: number, type: TimerType) => TimerId;
11
+ export {};
12
+ //# sourceMappingURL=createManagedTimer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createManagedTimer.d.ts","sourceRoot":"","sources":["../../../../../lib/Timers/createManagedTimer.ts"],"names":[],"mappings":"AAEA,KAAK,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AACxC,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAE9E;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,IAAI,MAAM,IAAI,EACd,OAAO,MAAM,EACb,MAAM,SAAS,KACd,OAcF,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./createManagedTimer";
2
+ export * from "./interval";
3
+ export * from "./timeout";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/Timers/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const onInterval: (fn: () => void, interval: number) => number;
2
+ //# sourceMappingURL=interval.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interval.d.ts","sourceRoot":"","sources":["../../../../../lib/Timers/interval.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,GAAI,IAAI,MAAM,IAAI,EAAE,UAAU,MAAM,WAE1D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const onTimeout: (fn: () => void, delay: number) => number;
2
+ //# sourceMappingURL=timeout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeout.d.ts","sourceRoot":"","sources":["../../../../../lib/Timers/timeout.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,GAAI,IAAI,MAAM,IAAI,EAAE,OAAO,MAAM,WAEtD,CAAC"}
@@ -0,0 +1,105 @@
1
+ /**
2
+ * Global component running status tracker.
3
+ * Used to enforce safety checks and prevent certain operations during specific
4
+ * execution contexts.
5
+ */
6
+ export declare const componentRunningStatus: {
7
+ /**
8
+ * Set to true while a scope's setup() method is running.
9
+ *
10
+ * NOTE: setup() is called during scope creation, which can only happen inside
11
+ * a component's outer function. The outer function is an unrestricted context,
12
+ * so setup() inherits the same permissions — reactive primitives (atoms, events,
13
+ * channels, actions, setters, on(), effect(), …) CAN be created freely here,
14
+ * exactly as they can be in the outer function itself.
15
+ *
16
+ * This flag is kept for informational / tooling purposes (e.g. CSS-in-JS
17
+ * assertModuleLevel checks) and is NOT used by assertNotInRestrictedContext.
18
+ */
19
+ setupInProgress: boolean;
20
+ /**
21
+ * Set to true while the template function (inner render function) is running.
22
+ *
23
+ * During template execution reactive primitives CANNOT be created because the
24
+ * template reruns on every update — creating atoms/events/etc. here would
25
+ * produce a new instance on every render, causing memory leaks and broken
26
+ * reactivity. Only `scope()` / `useScope()` lookups are permitted.
27
+ */
28
+ templateInProgress: boolean;
29
+ /**
30
+ * Set to true while a component's outer function is running.
31
+ * Tracked for debugging / devtools purposes only — does NOT restrict anything.
32
+ * Reactive primitives CAN be created freely in the outer function.
33
+ */
34
+ viewOuterInProgress: boolean;
35
+ /**
36
+ * Set to true while an `eleHook()` or `htmlHook()` mount or lifecycle
37
+ * callback is executing. Indicates that a hook is in progress and allows
38
+ * certain operations that would otherwise be restricted.
39
+ */
40
+ isHookRunning: boolean;
41
+ };
42
+ /**
43
+ * Returns true when the current execution context forbids the creation of new
44
+ * reactive primitives.
45
+ *
46
+ * Restricted contexts
47
+ * ───────────────────
48
+ * • Template function — reruns every render; primitives created here leak
49
+ * • effect() / memo() — should only read state, never create new primitives
50
+ *
51
+ * Unrestricted contexts
52
+ * ─────────────────────
53
+ * • ES module scope — top of file, safe to create global primitives
54
+ * • Component outer fn — runs once on mount; the canonical place for locals
55
+ * • Scope setup() — called from the outer fn, inherits its permissions
56
+ * • Hook callbacks — eleHook / htmlHook mount and lifecycle methods run
57
+ * with isHookRunning = true. Subscriptions and atom
58
+ * creation are permitted because the hook author owns
59
+ * teardown via the onCleanup return value.
60
+ */
61
+ export declare function isInRestrictedContext(): boolean;
62
+ /**
63
+ * Throws a descriptive error when called from a restricted execution context.
64
+ *
65
+ * Allowed
66
+ * ───────
67
+ * ✅ ES module scope (top-level, outside any component)
68
+ * ✅ Component outer function (runs once on mount)
69
+ * ✅ Scope setup() (runs inside the outer function — same rules)
70
+ * ✅ Hook callbacks (isHookRunning === true)
71
+ * eleHook / htmlHook mount and lifecycle methods
72
+ * may freely subscribe and create atoms. The hook
73
+ * author is responsible for unsubscribing inside
74
+ * the onCleanup return — this is NOT automatic.
75
+ *
76
+ * Forbidden
77
+ * ─────────
78
+ * ❌ Template / render function (templateInProgress === true)
79
+ * ❌ effect() or memo() callback (isEffectRunning() === true)
80
+ */
81
+ export declare function assertNotInRestrictedContext(operationName: string): void;
82
+ /**
83
+ * Throws unless the current execution context is a component's outer function
84
+ * (i.e. `viewOuterInProgress === true`).
85
+ *
86
+ * Use this for APIs — such as `ws()` — that register cleanup handlers via
87
+ * `registerCleanup` and therefore require an active component host. Calling
88
+ * them at module level or inside inner functions (event handlers, timers, etc.)
89
+ * would silently skip cleanup, leaving timers and sockets running after the
90
+ * component unmounts.
91
+ *
92
+ * Allowed
93
+ * ───────
94
+ * ✅ Component outer function (viewOuterInProgress === true)
95
+ * ✅ Scope setup() (sets viewOuterInProgress = true, same rules)
96
+ *
97
+ * Forbidden
98
+ * ─────────
99
+ * ❌ Module / file scope (no active host, no cleanup)
100
+ * ❌ Inner functions / event handlers (outer fn has already returned)
101
+ * ❌ Template / render function (templateInProgress === true)
102
+ * ❌ effect() or memo() callback (isEffectRunning() === true)
103
+ */
104
+ export declare function assertComponentOuterContext(operationName: string): void;
105
+ //# sourceMappingURL=componentStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"componentStatus.d.ts","sourceRoot":"","sources":["../../../../../lib/TrackState/componentStatus.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;IACjC;;;;;;;;;;;OAWG;;IAGH;;;;;;;OAOG;;IAGH;;;;OAIG;;IAGH;;;;OAIG;;CAEJ,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAG/C;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,4BAA4B,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAiBxE;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAsBvE"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Read tracking state for dependency collection.
3
+ * Used by atoms, units, getters, and effects to track which stores are read
4
+ * during reactive computations.
5
+ */
6
+ export declare function isReadTrackingEnabled(): boolean;
7
+ export declare function getStoresBeingRead(): Set<any>;
8
+ export declare function isEffectRunning(): boolean;
9
+ export declare function addStoreBeingRead(store: any): void;
10
+ export declare function pushEffect(): void;
11
+ export declare function popEffect(): void;
12
+ export interface TrackingSnapshot {
13
+ prevEnabled: boolean;
14
+ prevStores: Set<any>;
15
+ }
16
+ export declare function saveAndEnableTracking(): TrackingSnapshot;
17
+ export declare function restoreTracking(prev: TrackingSnapshot): Set<any>;
18
+ export declare const startTracking: typeof saveAndEnableTracking;
19
+ export declare const stopTracking: typeof restoreTracking;
20
+ //# sourceMappingURL=readTracking.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readTracking.d.ts","sourceRoot":"","sources":["../../../../../lib/TrackState/readTracking.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,wBAAgB,qBAAqB,IAAI,OAAO,CAE/C;AAED,wBAAgB,kBAAkB,IAAI,GAAG,CAAC,GAAG,CAAC,CAE7C;AAED,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAID,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,QAE3C;AAED,wBAAgB,UAAU,SAEzB;AAED,wBAAgB,SAAS,SAExB;AAID,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;CACtB;AAED,wBAAgB,qBAAqB,IAAI,gBAAgB,CAQxD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,gBAAgB,GAAG,GAAG,CAAC,GAAG,CAAC,CAKhE;AAID,eAAO,MAAM,aAAa,8BAAwB,CAAC;AACnD,eAAO,MAAM,YAAY,wBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare class Context<T> {
2
+ id: string;
3
+ context: T;
4
+ }
5
+ export default Context;
6
+ //# sourceMappingURL=Context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../../lib/Utils/Context.ts"],"names":[],"mappings":"AAAA,qBAAa,OAAO,CAAC,CAAC;IACpB,EAAE,SAA+C;IACjD,OAAO,EAAE,CAAC,CAAwB;CACnC;AAED,eAAe,OAAO,CAAC"}