@saolabs/client 1.0.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 (383) hide show
  1. package/README.md +221 -0
  2. package/dist/index.d.ts +46 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +38 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/plugins.d.ts +38 -0
  7. package/dist/plugins.d.ts.map +1 -0
  8. package/dist/plugins.js +61 -0
  9. package/dist/plugins.js.map +1 -0
  10. package/dist/src/core/app/Application.d.ts +159 -0
  11. package/dist/src/core/app/Application.d.ts.map +1 -0
  12. package/dist/src/core/app/Application.js +338 -0
  13. package/dist/src/core/app/Application.js.map +1 -0
  14. package/dist/src/core/bootstrap/app.d.ts +4 -0
  15. package/dist/src/core/bootstrap/app.d.ts.map +1 -0
  16. package/dist/src/core/bootstrap/app.js +49 -0
  17. package/dist/src/core/bootstrap/app.js.map +1 -0
  18. package/dist/src/core/bootstrap/providers/ApiServiceProvider.d.ts +9 -0
  19. package/dist/src/core/bootstrap/providers/ApiServiceProvider.d.ts.map +1 -0
  20. package/dist/src/core/bootstrap/providers/ApiServiceProvider.js +18 -0
  21. package/dist/src/core/bootstrap/providers/ApiServiceProvider.js.map +1 -0
  22. package/dist/src/core/bootstrap/providers/CoreServiceProvider.d.ts +6 -0
  23. package/dist/src/core/bootstrap/providers/CoreServiceProvider.d.ts.map +1 -0
  24. package/dist/src/core/bootstrap/providers/CoreServiceProvider.js +21 -0
  25. package/dist/src/core/bootstrap/providers/CoreServiceProvider.js.map +1 -0
  26. package/dist/src/core/bootstrap/providers/HelperServiceProvider.d.ts +7 -0
  27. package/dist/src/core/bootstrap/providers/HelperServiceProvider.d.ts.map +1 -0
  28. package/dist/src/core/bootstrap/providers/HelperServiceProvider.js +14 -0
  29. package/dist/src/core/bootstrap/providers/HelperServiceProvider.js.map +1 -0
  30. package/dist/src/core/bootstrap/providers/RouteServiceProvider.d.ts +9 -0
  31. package/dist/src/core/bootstrap/providers/RouteServiceProvider.d.ts.map +1 -0
  32. package/dist/src/core/bootstrap/providers/RouteServiceProvider.js +18 -0
  33. package/dist/src/core/bootstrap/providers/RouteServiceProvider.js.map +1 -0
  34. package/dist/src/core/bootstrap/providers/ServiceProvider.d.ts +38 -0
  35. package/dist/src/core/bootstrap/providers/ServiceProvider.d.ts.map +1 -0
  36. package/dist/src/core/bootstrap/providers/ServiceProvider.js +41 -0
  37. package/dist/src/core/bootstrap/providers/ServiceProvider.js.map +1 -0
  38. package/dist/src/core/bootstrap/providers/ViewServiceProvider.d.ts +9 -0
  39. package/dist/src/core/bootstrap/providers/ViewServiceProvider.d.ts.map +1 -0
  40. package/dist/src/core/bootstrap/providers/ViewServiceProvider.js +18 -0
  41. package/dist/src/core/bootstrap/providers/ViewServiceProvider.js.map +1 -0
  42. package/dist/src/core/bootstrap/providers/default-providers.d.ts +14 -0
  43. package/dist/src/core/bootstrap/providers/default-providers.d.ts.map +1 -0
  44. package/dist/src/core/bootstrap/providers/default-providers.js +79 -0
  45. package/dist/src/core/bootstrap/providers/default-providers.js.map +1 -0
  46. package/dist/src/core/bootstrap/providers/index.d.ts +10 -0
  47. package/dist/src/core/bootstrap/providers/index.d.ts.map +1 -0
  48. package/dist/src/core/bootstrap/providers/index.js +9 -0
  49. package/dist/src/core/bootstrap/providers/index.js.map +1 -0
  50. package/dist/src/core/bootstrap/providers/provider-order.d.ts +19 -0
  51. package/dist/src/core/bootstrap/providers/provider-order.d.ts.map +1 -0
  52. package/dist/src/core/bootstrap/providers/provider-order.js +51 -0
  53. package/dist/src/core/bootstrap/providers/provider-order.js.map +1 -0
  54. package/dist/src/core/cache/ViewCache.d.ts +46 -0
  55. package/dist/src/core/cache/ViewCache.d.ts.map +1 -0
  56. package/dist/src/core/cache/ViewCache.js +85 -0
  57. package/dist/src/core/cache/ViewCache.js.map +1 -0
  58. package/dist/src/core/cache/index.d.ts +2 -0
  59. package/dist/src/core/cache/index.d.ts.map +1 -0
  60. package/dist/src/core/cache/index.js +2 -0
  61. package/dist/src/core/cache/index.js.map +1 -0
  62. package/dist/src/core/contracts/ApiInterface.d.ts +11 -0
  63. package/dist/src/core/contracts/ApiInterface.d.ts.map +1 -0
  64. package/dist/src/core/contracts/ApiInterface.js +2 -0
  65. package/dist/src/core/contracts/ApiInterface.js.map +1 -0
  66. package/dist/src/core/contracts/ApplicationInterface.d.ts +66 -0
  67. package/dist/src/core/contracts/ApplicationInterface.d.ts.map +1 -0
  68. package/dist/src/core/contracts/ApplicationInterface.js +3 -0
  69. package/dist/src/core/contracts/ApplicationInterface.js.map +1 -0
  70. package/dist/src/core/contracts/BlockInterface.d.ts +67 -0
  71. package/dist/src/core/contracts/BlockInterface.d.ts.map +1 -0
  72. package/dist/src/core/contracts/BlockInterface.js +2 -0
  73. package/dist/src/core/contracts/BlockInterface.js.map +1 -0
  74. package/dist/src/core/contracts/ComponentInterface.d.ts +24 -0
  75. package/dist/src/core/contracts/ComponentInterface.d.ts.map +1 -0
  76. package/dist/src/core/contracts/ComponentInterface.js +2 -0
  77. package/dist/src/core/contracts/ComponentInterface.js.map +1 -0
  78. package/dist/src/core/contracts/ElementInterface.d.ts +117 -0
  79. package/dist/src/core/contracts/ElementInterface.d.ts.map +1 -0
  80. package/dist/src/core/contracts/ElementInterface.js +2 -0
  81. package/dist/src/core/contracts/ElementInterface.js.map +1 -0
  82. package/dist/src/core/contracts/EventServiceInterface.d.ts +37 -0
  83. package/dist/src/core/contracts/EventServiceInterface.d.ts.map +1 -0
  84. package/dist/src/core/contracts/EventServiceInterface.js +3 -0
  85. package/dist/src/core/contracts/EventServiceInterface.js.map +1 -0
  86. package/dist/src/core/contracts/HelperInterface.d.ts +231 -0
  87. package/dist/src/core/contracts/HelperInterface.d.ts.map +1 -0
  88. package/dist/src/core/contracts/HelperInterface.js +3 -0
  89. package/dist/src/core/contracts/HelperInterface.js.map +1 -0
  90. package/dist/src/core/contracts/HttpServiceInterface.d.ts +38 -0
  91. package/dist/src/core/contracts/HttpServiceInterface.d.ts.map +1 -0
  92. package/dist/src/core/contracts/HttpServiceInterface.js +3 -0
  93. package/dist/src/core/contracts/HttpServiceInterface.js.map +1 -0
  94. package/dist/src/core/contracts/LoggerServiceInterface.d.ts +37 -0
  95. package/dist/src/core/contracts/LoggerServiceInterface.d.ts.map +1 -0
  96. package/dist/src/core/contracts/LoggerServiceInterface.js +3 -0
  97. package/dist/src/core/contracts/LoggerServiceInterface.js.map +1 -0
  98. package/dist/src/core/contracts/LoopContextInterface.d.ts +14 -0
  99. package/dist/src/core/contracts/LoopContextInterface.d.ts.map +1 -0
  100. package/dist/src/core/contracts/LoopContextInterface.js +3 -0
  101. package/dist/src/core/contracts/LoopContextInterface.js.map +1 -0
  102. package/dist/src/core/contracts/MarkerInterface.d.ts +55 -0
  103. package/dist/src/core/contracts/MarkerInterface.d.ts.map +1 -0
  104. package/dist/src/core/contracts/MarkerInterface.js +2 -0
  105. package/dist/src/core/contracts/MarkerInterface.js.map +1 -0
  106. package/dist/src/core/contracts/ReactiveInterface.d.ts +38 -0
  107. package/dist/src/core/contracts/ReactiveInterface.d.ts.map +1 -0
  108. package/dist/src/core/contracts/ReactiveInterface.js +2 -0
  109. package/dist/src/core/contracts/ReactiveInterface.js.map +1 -0
  110. package/dist/src/core/contracts/RouterInterface.d.ts +58 -0
  111. package/dist/src/core/contracts/RouterInterface.d.ts.map +1 -0
  112. package/dist/src/core/contracts/RouterInterface.js +2 -0
  113. package/dist/src/core/contracts/RouterInterface.js.map +1 -0
  114. package/dist/src/core/contracts/ServiceProviderInterface.d.ts +12 -0
  115. package/dist/src/core/contracts/ServiceProviderInterface.d.ts.map +1 -0
  116. package/dist/src/core/contracts/ServiceProviderInterface.js +2 -0
  117. package/dist/src/core/contracts/ServiceProviderInterface.js.map +1 -0
  118. package/dist/src/core/contracts/StorageServiceInterface.d.ts +43 -0
  119. package/dist/src/core/contracts/StorageServiceInterface.d.ts.map +1 -0
  120. package/dist/src/core/contracts/StorageServiceInterface.js +3 -0
  121. package/dist/src/core/contracts/StorageServiceInterface.js.map +1 -0
  122. package/dist/src/core/contracts/StoreServiceInterface.d.ts +45 -0
  123. package/dist/src/core/contracts/StoreServiceInterface.d.ts.map +1 -0
  124. package/dist/src/core/contracts/StoreServiceInterface.js +3 -0
  125. package/dist/src/core/contracts/StoreServiceInterface.js.map +1 -0
  126. package/dist/src/core/contracts/ViewCacheInterface.d.ts +13 -0
  127. package/dist/src/core/contracts/ViewCacheInterface.d.ts.map +1 -0
  128. package/dist/src/core/contracts/ViewCacheInterface.js +3 -0
  129. package/dist/src/core/contracts/ViewCacheInterface.js.map +1 -0
  130. package/dist/src/core/contracts/ViewControllerInterface.d.ts +115 -0
  131. package/dist/src/core/contracts/ViewControllerInterface.d.ts.map +1 -0
  132. package/dist/src/core/contracts/ViewControllerInterface.js +2 -0
  133. package/dist/src/core/contracts/ViewControllerInterface.js.map +1 -0
  134. package/dist/src/core/contracts/ViewInterface.d.ts +24 -0
  135. package/dist/src/core/contracts/ViewInterface.d.ts.map +1 -0
  136. package/dist/src/core/contracts/ViewInterface.js +2 -0
  137. package/dist/src/core/contracts/ViewInterface.js.map +1 -0
  138. package/dist/src/core/contracts/ViewManagerInterface.d.ts +44 -0
  139. package/dist/src/core/contracts/ViewManagerInterface.d.ts.map +1 -0
  140. package/dist/src/core/contracts/ViewManagerInterface.js +2 -0
  141. package/dist/src/core/contracts/ViewManagerInterface.js.map +1 -0
  142. package/dist/src/core/contracts/ViewStateInterface.d.ts +40 -0
  143. package/dist/src/core/contracts/ViewStateInterface.d.ts.map +1 -0
  144. package/dist/src/core/contracts/ViewStateInterface.js +3 -0
  145. package/dist/src/core/contracts/ViewStateInterface.js.map +1 -0
  146. package/dist/src/core/contracts/common.d.ts +28 -0
  147. package/dist/src/core/contracts/common.d.ts.map +1 -0
  148. package/dist/src/core/contracts/common.js +29 -0
  149. package/dist/src/core/contracts/common.js.map +1 -0
  150. package/dist/src/core/contracts/utils.d.ts +20 -0
  151. package/dist/src/core/contracts/utils.d.ts.map +1 -0
  152. package/dist/src/core/contracts/utils.js +4 -0
  153. package/dist/src/core/contracts/utils.js.map +1 -0
  154. package/dist/src/core/contracts/views.d.ts +23 -0
  155. package/dist/src/core/contracts/views.d.ts.map +1 -0
  156. package/dist/src/core/contracts/views.js +2 -0
  157. package/dist/src/core/contracts/views.js.map +1 -0
  158. package/dist/src/core/elements/Block.d.ts +58 -0
  159. package/dist/src/core/elements/Block.d.ts.map +1 -0
  160. package/dist/src/core/elements/Block.js +77 -0
  161. package/dist/src/core/elements/Block.js.map +1 -0
  162. package/dist/src/core/elements/BlockOutlet.d.ts +34 -0
  163. package/dist/src/core/elements/BlockOutlet.d.ts.map +1 -0
  164. package/dist/src/core/elements/BlockOutlet.js +59 -0
  165. package/dist/src/core/elements/BlockOutlet.js.map +1 -0
  166. package/dist/src/core/elements/Component.d.ts +62 -0
  167. package/dist/src/core/elements/Component.d.ts.map +1 -0
  168. package/dist/src/core/elements/Component.js +72 -0
  169. package/dist/src/core/elements/Component.js.map +1 -0
  170. package/dist/src/core/elements/ElementManager.d.ts +23 -0
  171. package/dist/src/core/elements/ElementManager.d.ts.map +1 -0
  172. package/dist/src/core/elements/ElementManager.js +33 -0
  173. package/dist/src/core/elements/ElementManager.js.map +1 -0
  174. package/dist/src/core/elements/Fragment.d.ts +51 -0
  175. package/dist/src/core/elements/Fragment.d.ts.map +1 -0
  176. package/dist/src/core/elements/Fragment.js +133 -0
  177. package/dist/src/core/elements/Fragment.js.map +1 -0
  178. package/dist/src/core/elements/Html.d.ts +52 -0
  179. package/dist/src/core/elements/Html.d.ts.map +1 -0
  180. package/dist/src/core/elements/Html.js +299 -0
  181. package/dist/src/core/elements/Html.js.map +1 -0
  182. package/dist/src/core/elements/Output.d.ts +69 -0
  183. package/dist/src/core/elements/Output.d.ts.map +1 -0
  184. package/dist/src/core/elements/Output.js +121 -0
  185. package/dist/src/core/elements/Output.js.map +1 -0
  186. package/dist/src/core/elements/Reactive.d.ts +77 -0
  187. package/dist/src/core/elements/Reactive.d.ts.map +1 -0
  188. package/dist/src/core/elements/Reactive.js +199 -0
  189. package/dist/src/core/elements/Reactive.js.map +1 -0
  190. package/dist/src/core/elements/TextElement.d.ts +46 -0
  191. package/dist/src/core/elements/TextElement.d.ts.map +1 -0
  192. package/dist/src/core/elements/TextElement.js +94 -0
  193. package/dist/src/core/elements/TextElement.js.map +1 -0
  194. package/dist/src/core/elements/Wrapper.d.ts +50 -0
  195. package/dist/src/core/elements/Wrapper.d.ts.map +1 -0
  196. package/dist/src/core/elements/Wrapper.js +96 -0
  197. package/dist/src/core/elements/Wrapper.js.map +1 -0
  198. package/dist/src/core/elements/Yield.d.ts +34 -0
  199. package/dist/src/core/elements/Yield.d.ts.map +1 -0
  200. package/dist/src/core/elements/Yield.js +56 -0
  201. package/dist/src/core/elements/Yield.js.map +1 -0
  202. package/dist/src/core/elements/helpers.d.ts +8 -0
  203. package/dist/src/core/elements/helpers.d.ts.map +1 -0
  204. package/dist/src/core/elements/helpers.js +40 -0
  205. package/dist/src/core/elements/helpers.js.map +1 -0
  206. package/dist/src/core/elements/index.d.ts +12 -0
  207. package/dist/src/core/elements/index.d.ts.map +1 -0
  208. package/dist/src/core/elements/index.js +12 -0
  209. package/dist/src/core/elements/index.js.map +1 -0
  210. package/dist/src/core/hellpers/ApiClient.d.ts +58 -0
  211. package/dist/src/core/hellpers/ApiClient.d.ts.map +1 -0
  212. package/dist/src/core/hellpers/ApiClient.js +122 -0
  213. package/dist/src/core/hellpers/ApiClient.js.map +1 -0
  214. package/dist/src/core/hellpers/app.d.ts +3 -0
  215. package/dist/src/core/hellpers/app.d.ts.map +1 -0
  216. package/dist/src/core/hellpers/app.js +53 -0
  217. package/dist/src/core/hellpers/app.js.map +1 -0
  218. package/dist/src/core/hellpers/utils.d.ts +26 -0
  219. package/dist/src/core/hellpers/utils.d.ts.map +1 -0
  220. package/dist/src/core/hellpers/utils.js +96 -0
  221. package/dist/src/core/hellpers/utils.js.map +1 -0
  222. package/dist/src/core/routers/Router.d.ts +212 -0
  223. package/dist/src/core/routers/Router.d.ts.map +1 -0
  224. package/dist/src/core/routers/Router.js +623 -0
  225. package/dist/src/core/routers/Router.js.map +1 -0
  226. package/dist/src/core/routers/index.d.ts +3 -0
  227. package/dist/src/core/routers/index.d.ts.map +1 -0
  228. package/dist/src/core/routers/index.js +2 -0
  229. package/dist/src/core/routers/index.js.map +1 -0
  230. package/dist/src/core/services/BlockManager.d.ts +63 -0
  231. package/dist/src/core/services/BlockManager.d.ts.map +1 -0
  232. package/dist/src/core/services/BlockManager.js +191 -0
  233. package/dist/src/core/services/BlockManager.js.map +1 -0
  234. package/dist/src/core/services/DomService.d.ts +9 -0
  235. package/dist/src/core/services/DomService.d.ts.map +1 -0
  236. package/dist/src/core/services/DomService.js +18 -0
  237. package/dist/src/core/services/DomService.js.map +1 -0
  238. package/dist/src/core/services/EventService.d.ts +58 -0
  239. package/dist/src/core/services/EventService.d.ts.map +1 -0
  240. package/dist/src/core/services/EventService.js +212 -0
  241. package/dist/src/core/services/EventService.js.map +1 -0
  242. package/dist/src/core/services/HelperService.d.ts +443 -0
  243. package/dist/src/core/services/HelperService.d.ts.map +1 -0
  244. package/dist/src/core/services/HelperService.js +1650 -0
  245. package/dist/src/core/services/HelperService.js.map +1 -0
  246. package/dist/src/core/services/HttpService.d.ts +63 -0
  247. package/dist/src/core/services/HttpService.d.ts.map +1 -0
  248. package/dist/src/core/services/HttpService.js +182 -0
  249. package/dist/src/core/services/HttpService.js.map +1 -0
  250. package/dist/src/core/services/LoggerService.d.ts +56 -0
  251. package/dist/src/core/services/LoggerService.d.ts.map +1 -0
  252. package/dist/src/core/services/LoggerService.js +94 -0
  253. package/dist/src/core/services/LoggerService.js.map +1 -0
  254. package/dist/src/core/services/MarkerRegistry.d.ts +94 -0
  255. package/dist/src/core/services/MarkerRegistry.d.ts.map +1 -0
  256. package/dist/src/core/services/MarkerRegistry.js +199 -0
  257. package/dist/src/core/services/MarkerRegistry.js.map +1 -0
  258. package/dist/src/core/services/MarkerService.d.ts +299 -0
  259. package/dist/src/core/services/MarkerService.d.ts.map +1 -0
  260. package/dist/src/core/services/MarkerService.js +723 -0
  261. package/dist/src/core/services/MarkerService.js.map +1 -0
  262. package/dist/src/core/services/StorageService.d.ts +69 -0
  263. package/dist/src/core/services/StorageService.d.ts.map +1 -0
  264. package/dist/src/core/services/StorageService.js +243 -0
  265. package/dist/src/core/services/StorageService.js.map +1 -0
  266. package/dist/src/core/services/StoreService.d.ts +80 -0
  267. package/dist/src/core/services/StoreService.d.ts.map +1 -0
  268. package/dist/src/core/services/StoreService.js +301 -0
  269. package/dist/src/core/services/StoreService.js.map +1 -0
  270. package/dist/src/core/services/index.d.ts +9 -0
  271. package/dist/src/core/services/index.d.ts.map +1 -0
  272. package/dist/src/core/services/index.js +9 -0
  273. package/dist/src/core/services/index.js.map +1 -0
  274. package/dist/src/core/types/utils.d.ts +29 -0
  275. package/dist/src/core/types/utils.d.ts.map +1 -0
  276. package/dist/src/core/types/utils.js +22 -0
  277. package/dist/src/core/types/utils.js.map +1 -0
  278. package/dist/src/core/view/LoopContext.d.ts +38 -0
  279. package/dist/src/core/view/LoopContext.d.ts.map +1 -0
  280. package/dist/src/core/view/LoopContext.js +100 -0
  281. package/dist/src/core/view/LoopContext.js.map +1 -0
  282. package/dist/src/core/view/Section.d.ts +41 -0
  283. package/dist/src/core/view/Section.d.ts.map +1 -0
  284. package/dist/src/core/view/Section.js +67 -0
  285. package/dist/src/core/view/Section.js.map +1 -0
  286. package/dist/src/core/view/View.d.ts +63 -0
  287. package/dist/src/core/view/View.d.ts.map +1 -0
  288. package/dist/src/core/view/View.js +85 -0
  289. package/dist/src/core/view/View.js.map +1 -0
  290. package/dist/src/core/view/ViewController.d.ts +277 -0
  291. package/dist/src/core/view/ViewController.d.ts.map +1 -0
  292. package/dist/src/core/view/ViewController.js +862 -0
  293. package/dist/src/core/view/ViewController.js.map +1 -0
  294. package/dist/src/core/view/ViewManager.d.ts +141 -0
  295. package/dist/src/core/view/ViewManager.d.ts.map +1 -0
  296. package/dist/src/core/view/ViewManager.js +565 -0
  297. package/dist/src/core/view/ViewManager.js.map +1 -0
  298. package/dist/src/core/view/ViewState.d.ts +117 -0
  299. package/dist/src/core/view/ViewState.d.ts.map +1 -0
  300. package/dist/src/core/view/ViewState.js +410 -0
  301. package/dist/src/core/view/ViewState.js.map +1 -0
  302. package/dist/src/core/view/index.d.ts +6 -0
  303. package/dist/src/core/view/index.d.ts.map +1 -0
  304. package/dist/src/core/view/index.js +6 -0
  305. package/dist/src/core/view/index.js.map +1 -0
  306. package/index.ts +62 -0
  307. package/package.json +70 -0
  308. package/plugins.ts +77 -0
  309. package/src/core/app/Application.ts +410 -0
  310. package/src/core/bootstrap/app.ts +58 -0
  311. package/src/core/bootstrap/providers/ApiServiceProvider.ts +18 -0
  312. package/src/core/bootstrap/providers/CoreServiceProvider.ts +19 -0
  313. package/src/core/bootstrap/providers/HelperServiceProvider.ts +12 -0
  314. package/src/core/bootstrap/providers/RouteServiceProvider.ts +17 -0
  315. package/src/core/bootstrap/providers/ServiceProvider.ts +51 -0
  316. package/src/core/bootstrap/providers/ViewServiceProvider.ts +17 -0
  317. package/src/core/bootstrap/providers/default-providers.ts +94 -0
  318. package/src/core/bootstrap/providers/index.ts +9 -0
  319. package/src/core/bootstrap/providers/provider-order.test.ts +67 -0
  320. package/src/core/bootstrap/providers/provider-order.ts +66 -0
  321. package/src/core/cache/ViewCache.ts +102 -0
  322. package/src/core/cache/index.ts +1 -0
  323. package/src/core/contracts/ApiInterface.ts +11 -0
  324. package/src/core/contracts/ApplicationInterface.ts +79 -0
  325. package/src/core/contracts/BlockInterface.ts +76 -0
  326. package/src/core/contracts/ComponentInterface.ts +26 -0
  327. package/src/core/contracts/ElementInterface.ts +140 -0
  328. package/src/core/contracts/EventServiceInterface.ts +47 -0
  329. package/src/core/contracts/HelperInterface.ts +256 -0
  330. package/src/core/contracts/HttpServiceInterface.ts +51 -0
  331. package/src/core/contracts/LoggerServiceInterface.ts +48 -0
  332. package/src/core/contracts/LoopContextInterface.ts +15 -0
  333. package/src/core/contracts/MarkerInterface.ts +77 -0
  334. package/src/core/contracts/ReactiveInterface.ts +45 -0
  335. package/src/core/contracts/RouterInterface.ts +65 -0
  336. package/src/core/contracts/ServiceProviderInterface.ts +12 -0
  337. package/src/core/contracts/StorageServiceInterface.ts +48 -0
  338. package/src/core/contracts/StoreServiceInterface.ts +50 -0
  339. package/src/core/contracts/ViewCacheInterface.ts +14 -0
  340. package/src/core/contracts/ViewControllerInterface.ts +135 -0
  341. package/src/core/contracts/ViewInterface.ts +31 -0
  342. package/src/core/contracts/ViewManagerInterface.ts +45 -0
  343. package/src/core/contracts/ViewStateInterface.ts +47 -0
  344. package/src/core/contracts/common.ts +27 -0
  345. package/src/core/contracts/utils.ts +23 -0
  346. package/src/core/contracts/views.ts +23 -0
  347. package/src/core/elements/Block.ts +113 -0
  348. package/src/core/elements/BlockOutlet.ts +83 -0
  349. package/src/core/elements/Component.ts +114 -0
  350. package/src/core/elements/ElementManager.ts +48 -0
  351. package/src/core/elements/Fragment.ts +168 -0
  352. package/src/core/elements/Html.ts +364 -0
  353. package/src/core/elements/Output.ts +167 -0
  354. package/src/core/elements/Reactive.ts +253 -0
  355. package/src/core/elements/TextElement.ts +110 -0
  356. package/src/core/elements/Wrapper.ts +131 -0
  357. package/src/core/elements/Yield.ts +70 -0
  358. package/src/core/elements/helpers.ts +56 -0
  359. package/src/core/elements/index.ts +26 -0
  360. package/src/core/hellpers/ApiClient.ts +145 -0
  361. package/src/core/hellpers/app.ts +57 -0
  362. package/src/core/hellpers/utils.ts +109 -0
  363. package/src/core/routers/Router.ts +765 -0
  364. package/src/core/routers/index.ts +2 -0
  365. package/src/core/services/BlockManager.ts +210 -0
  366. package/src/core/services/DomService.ts +26 -0
  367. package/src/core/services/EventService.ts +266 -0
  368. package/src/core/services/HelperService.ts +1653 -0
  369. package/src/core/services/HttpService.ts +235 -0
  370. package/src/core/services/LoggerService.ts +139 -0
  371. package/src/core/services/MarkerRegistry.ts +239 -0
  372. package/src/core/services/MarkerService.ts +923 -0
  373. package/src/core/services/StorageService.ts +268 -0
  374. package/src/core/services/StoreService.ts +338 -0
  375. package/src/core/services/index.ts +8 -0
  376. package/src/core/types/utils.ts +30 -0
  377. package/src/core/view/LoopContext.ts +109 -0
  378. package/src/core/view/Section.ts +86 -0
  379. package/src/core/view/View.ts +109 -0
  380. package/src/core/view/ViewController.ts +1002 -0
  381. package/src/core/view/ViewManager.ts +700 -0
  382. package/src/core/view/ViewState.ts +453 -0
  383. package/src/core/view/index.ts +5 -0
@@ -0,0 +1,55 @@
1
+ export interface MarkerRegistryRecord {
2
+ /** Full tag name: 'reactive', 'block', 'foreach', etc. */
3
+ tag: string;
4
+ /** Unique ID for this marker (e.g. 'r:m0') */
5
+ registryID: string;
6
+ /** Arbitrary metadata */
7
+ attributes: Record<string, any>;
8
+ }
9
+ export type MarkerTagName = 'view' | 'component' | 'layout' | 'template' | 'block' | 'blockoutlet' | 'reactive' | 'section' | 'fragment' | 'for' | 'forin' | 'foreach' | 'while' | 'if' | 'switch' | 'include' | 'yield' | 'slot' | 'echo' | 'echoescaped' | 'useblock' | 'extend' | 'style' | 'script' | (string & {});
10
+ export type MarkerFilter = string | Record<string, any>;
11
+ export interface MarkerRecord {
12
+ name: string;
13
+ tagName: string;
14
+ registryID?: string | null;
15
+ attributes: Record<string, any>;
16
+ openTag: Comment;
17
+ closeTag: Comment;
18
+ children: Array<Node>;
19
+ [key: string]: any;
20
+ }
21
+ export interface MarkupAttributes {
22
+ [key: string]: string;
23
+ }
24
+ export interface MarkupQueryOptions {
25
+ multiple?: boolean;
26
+ recursive?: boolean;
27
+ }
28
+ export interface MarkupQuery {
29
+ pattern: string;
30
+ attributes?: MarkupAttributes;
31
+ options?: MarkupQueryOptions;
32
+ index?: number;
33
+ }
34
+ /**
35
+ * RegistryTag Query Options
36
+ */
37
+ export interface RegistryTagQueryOptions {
38
+ tag?: string;
39
+ id?: string;
40
+ attributes?: Record<string, any>;
41
+ multiple?: boolean;
42
+ }
43
+ /**
44
+ * RegistryTagData
45
+ */
46
+ export interface RegistryTagData {
47
+ systemPrefix: string;
48
+ tag: string;
49
+ id: string;
50
+ key: string;
51
+ attributes?: Record<string, any>;
52
+ nodes: Array<Node>;
53
+ }
54
+ export type RegistryIDOrAttributes = string | Record<string, any> | undefined;
55
+ //# sourceMappingURL=MarkerInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkerInterface.d.ts","sourceRoot":"","sources":["../../../../src/core/contracts/MarkerInterface.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,oBAAoB;IACjC,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAC;IACZ,8CAA8C;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC;AAED,MAAM,MAAM,aAAa,GACnB,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,GAC5C,OAAO,GAAG,aAAa,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAC7D,KAAK,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GACrC,IAAI,GAAG,QAAQ,GACf,SAAS,GAAG,OAAO,GAAG,MAAM,GAC5B,MAAM,GAAG,aAAa,GACtB,UAAU,GAAG,QAAQ,GACrB,OAAO,GAAG,QAAQ,GAClB,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAMpB,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACxD,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC,MAAM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":3,"file":"MarkerInterface.js","sourceRoot":"","sources":["../../../../src/core/contracts/MarkerInterface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
1
+ import type { OneObjectType } from "../types/utils";
2
+ import type { ViewControllerInterface } from "./ViewControllerInterface";
3
+ import type { HtmlInterface, OneChildrenFactoryOutput, OneElementChildren, OneNodeInterface } from "./ElementInterface";
4
+ /** Reactive region bounded by comment markers — re-renders when deps change */
5
+ export interface ReactiveInterface extends OneNodeInterface {
6
+ oneType: OneObjectType;
7
+ id: string;
8
+ type: string;
9
+ ctx: ViewControllerInterface;
10
+ stateKeys: string[];
11
+ parentElement: HtmlInterface | null;
12
+ parentReactive: ReactiveInterface | null;
13
+ openTag: Comment;
14
+ closeTag: Comment;
15
+ children: OneElementChildren;
16
+ unsubscribe: () => void;
17
+ childrenFactory: ReactiveChildrenFactory;
18
+ setChildrenFactory(factory: ReactiveChildrenFactory): void;
19
+ setStateKeys(stateKeys: string[]): void;
20
+ render(): void;
21
+ destroy(): void;
22
+ isOneElement: boolean;
23
+ isOneReactive: boolean;
24
+ }
25
+ /** Function called by Reactive to produce DOM content between markers */
26
+ export type ReactiveRenderFn = (ctx: ViewControllerInterface, parentElement: HtmlInterface | null) => OneChildrenFactoryOutput;
27
+ /** Factory function for reactive children rendering */
28
+ export type ReactiveChildrenFactory = (parentReactive: ReactiveInterface, parentElement: HtmlInterface | null) => OneChildrenFactoryOutput;
29
+ /** Reactive configuration */
30
+ export type ReactiveConfig = {
31
+ type?: string;
32
+ id?: string;
33
+ stateKeys?: string[];
34
+ options?: any;
35
+ attributes?: Record<string, any>;
36
+ createdMode?: 'csr' | 'ssr';
37
+ };
38
+ //# sourceMappingURL=ReactiveInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactiveInterface.d.ts","sourceRoot":"","sources":["../../../../src/core/contracts/ReactiveInterface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAA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AC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,WAAW,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;CAC/B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ReactiveInterface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactiveInterface.js","sourceRoot":"","sources":["../../../../src/core/contracts/ReactiveInterface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,58 @@
1
+ import type { ViewManagerInterface } from "./ViewManagerInterface";
2
+ export type RouterNavigationType = 'push' | 'pop';
3
+ export type RouterMode = 'history' | 'hash';
4
+ export interface RouteInterface {
5
+ name: string;
6
+ path: string;
7
+ query?: Record<string, any>;
8
+ params?: Record<string, any>;
9
+ [key: string]: any;
10
+ }
11
+ export interface ActiveRouteInterface {
12
+ route: RouteInterface;
13
+ $query: Record<string, any>;
14
+ $params: Record<string, any>;
15
+ $urlPath: string;
16
+ $fragment: string;
17
+ new (route: RouteInterface, urlPath: string, fragment: string): ActiveRouteInterface;
18
+ setQuery(query: Record<string, any>): void;
19
+ getParam(key: string, defaultValue?: any): any;
20
+ getQuery(key: string, defaultValue?: any): any;
21
+ getParams(): Record<string, any>;
22
+ query(name: string): any;
23
+ param(name: string): any;
24
+ [key: string]: any;
25
+ }
26
+ export interface RouterInterface {
27
+ /** Set DI container */
28
+ setApp(app: any): this;
29
+ /** Set ViewManager for view mounting */
30
+ setViewManager(vm: ViewManagerInterface): this;
31
+ /** Router mode: history or hash */
32
+ setMode(mode: RouterMode): this;
33
+ /** Add a route */
34
+ addRoute(path: string, component: string, options?: any): this;
35
+ /** Add multiple routes */
36
+ addRoutes(routes: any[]): this;
37
+ /** Navigate to a path */
38
+ navigate(path: string): void;
39
+ /** Navigate to a named route */
40
+ navigateTo(routeName: string, params?: Record<string, any>): void;
41
+ /** Replace current route */
42
+ replace(path: string): void;
43
+ /** Generate URL for a named route */
44
+ getURL(name: string, params?: Record<string, any>): string | null;
45
+ /** Get current route */
46
+ getCurrentRoute(): ActiveRouteInterface | null;
47
+ /** Navigation guards */
48
+ beforeEach(guard: (to: ActiveRouteInterface, from: ActiveRouteInterface, urlPath: string) => boolean | Promise<boolean>): this;
49
+ afterEach(hook: (to: ActiveRouteInterface, from: ActiveRouteInterface) => void): this;
50
+ /** Start listening to URL changes */
51
+ start(skipInitial?: boolean): void;
52
+ /** Stop listening */
53
+ stop(): void;
54
+ /** Full destroy */
55
+ destroy(): void;
56
+ getFullUrl(): string;
57
+ }
58
+ //# sourceMappingURL=RouterInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RouterInterface.d.ts","sourceRoot":"","sources":["../../../../src/core/contracts/RouterInterface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAInE,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,KAAK,CAAC;AAClD,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAE5C,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACjC,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAA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GAAG,IAAI,CAAC;IAClE,4BAA4B;IAC5B,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,qCAAqC;IACrC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC;IAClE,wBAAwB;IACxB,eAAe,IAAI,oBAAoB,GAAG,IAAI,CAAC;IAC/C,wBAAwB;IACxB,UAAU,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAC/H,SAAS,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE,oBAAoB,KAAK,IAAI,GAAG,IAAI,CAAC;IACtF,qCAAqC;IACrC,KAAK,CAAC,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACnC,qBAAqB;IACrB,IAAI,IAAI,IAAI,CAAC;IACb,mBAAmB;IACnB,OAAO,IAAI,IAAI,CAAC;IAEhB,UAAU,IAAI,MAAM,CAAC;CACxB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=RouterInterface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RouterInterface.js","sourceRoot":"","sources":["../../../../src/core/contracts/RouterInterface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import { OneObjectType } from "../types/utils";
2
+ import type { ApplicationInterface } from "./ApplicationInterface";
3
+ /** Service Provider — register() đăng ký, boot() khởi động */
4
+ export interface ServiceProviderInterface {
5
+ oneType?: OneObjectType;
6
+ name: string;
7
+ dependsOn?: string[];
8
+ initApplication?(App?: ApplicationInterface): void;
9
+ register(): void;
10
+ boot?(): void;
11
+ }
12
+ //# sourceMappingURL=ServiceProviderInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceProviderInterface.d.ts","sourceRoot":"","sources":["../../../../src/core/contracts/ServiceProviderInterface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,8DAA8D;AAC9D,MAAM,WAAW,wBAAwB;IACrC,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,eAAe,CAAC,CAAC,GAAG,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACnD,QAAQ,IAAI,IAAI,CAAC;IACjB,IAAI,CAAC,IAAI,IAAI,CAAC;CACjB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ServiceProviderInterface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceProviderInterface.js","sourceRoot":"","sources":["../../../../src/core/contracts/ServiceProviderInterface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ export type StorageEventCallback = (data?: any) => void;
2
+ export interface StorageServiceInterface {
3
+ /**
4
+ * Set value with optional TTL (in seconds).
5
+ * Supports bulk set: set({ key1: val1, key2: val2 })
6
+ */
7
+ set(key: string | Record<string, any>, value?: any, ttl?: number | null): boolean;
8
+ /** Get value (null if expired or missing) */
9
+ get<T = any>(key: string, defaultValue?: T | null): T | null;
10
+ /** Check if key exists and not expired */
11
+ has(key: string): boolean;
12
+ /** Remove key */
13
+ remove(key: string): boolean;
14
+ /** Clear all storage data */
15
+ clear(): void;
16
+ /** Get all non-expired values as plain object */
17
+ getAll(): Record<string, any>;
18
+ /** All non-expired keys */
19
+ getAllKeys(): string[];
20
+ /** Number of stored items */
21
+ size(): number;
22
+ isEmpty(): boolean;
23
+ /** Export all data as JSON string */
24
+ export(): string;
25
+ /** Import data from JSON string */
26
+ import(json: string): boolean;
27
+ /** Create backup snapshot */
28
+ backup(): {
29
+ timestamp: number;
30
+ key: string;
31
+ data: Record<string, any>;
32
+ };
33
+ /** Restore from backup */
34
+ restore(backup: {
35
+ data: Record<string, any>;
36
+ }): boolean;
37
+ /** Subscribe to storage events. Returns unsubscribe function. */
38
+ on(event: string, callback: StorageEventCallback): () => void;
39
+ /** Unsubscribe from event */
40
+ off(event: string, callback: StorageEventCallback): void;
41
+ destroy(): void;
42
+ }
43
+ //# sourceMappingURL=StorageServiceInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StorageServiceInterface.d.ts","sourceRoot":"","sources":["../../../../src/core/contracts/StorageServiceInterface.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;AAExD,MAAM,WAAW,uBAAuB;IAEpC;;;OAGG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC;IAClF,6CAA6C;IAC7C,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC;IAC7D,0CAA0C;IAC1C,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAC1B,iBAAiB;IACjB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,6BAA6B;IAC7B,KAAK,IAAI,IAAI,CAAC;IAGd,iDAAiD;IACjD,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,2BAA2B;IAC3B,UAAU,IAAI,MAAM,EAAE,CAAC;IACvB,6BAA6B;IAC7B,IAAI,IAAI,MAAM,CAAC;IACf,OAAO,IAAI,OAAO,CAAC;IAGnB,qCAAqC;IACrC,MAAM,IAAI,MAAM,CAAC;IACjB,mCAAmC;IACnC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B,6BAA6B;IAC7B,MAAM,IAAI;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAAE,CAAC;IACxE,0BAA0B;IAC1B,OAAO,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAAE,GAAG,OAAO,CAAC;IAGxD,iEAAiE;IACjE,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAAoB,GAAG,MAAM,IAAI,CAAC;IAC9D,6BAA6B;IAC7B,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAGzD,OAAO,IAAI,IAAI,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ // ─── Storage Service Interface ───────────────────────────────────
2
+ export {};
3
+ //# sourceMappingURL=StorageServiceInterface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StorageServiceInterface.js","sourceRoot":"","sources":["../../../../src/core/contracts/StorageServiceInterface.ts"],"names":[],"mappings":"AAAA,oEAAoE"}
@@ -0,0 +1,45 @@
1
+ export interface StoreServiceInterface {
2
+ [key: string]: any;
3
+ /** Set value with optional TTL (in minutes) */
4
+ set<T = any>(key: string, value: T, ttl?: number | null): void;
5
+ /** Get value (returns null if expired or missing) */
6
+ get<T = any>(key: string): T | null;
7
+ /** Check if key exists and is not expired */
8
+ has(key: string): boolean;
9
+ /** Remove key, returns removed value or null */
10
+ remove(key: string): any;
11
+ /** Clear all data, listeners, TTLs */
12
+ clear(): void;
13
+ /**
14
+ * Subscribe to key changes. Returns unsubscribe function.
15
+ *
16
+ * - subscribe('user', (value) => { ... })
17
+ * - subscribe(['user', 'token'], (values) => { ... })
18
+ */
19
+ subscribe(key: string | string[], callback: (value: any) => void): () => void;
20
+ /** Unsubscribe specific callback from key */
21
+ unsubscribe(key: string, callback: (value: any) => void): void;
22
+ /** Subscribe to TTL expiration of a key */
23
+ onExpire(key: string, callback: (value: any) => void): () => void;
24
+ /** Get TTL info for a key */
25
+ getTTL(key: string): {
26
+ ttl: number;
27
+ createdAt: number;
28
+ expiresAt: number;
29
+ remaining: number;
30
+ expired: boolean;
31
+ } | null;
32
+ /** Refresh TTL (reset timer). Pass null to use existing TTL. */
33
+ refreshTTL(key: string, ttl?: number | null): void;
34
+ /** Remove TTL from key (key lives forever) */
35
+ removeTTL(key: string): void;
36
+ /** All non-expired keys */
37
+ keys(): string[];
38
+ /** All non-expired values */
39
+ values<T = any>(): T[];
40
+ /** All non-expired entries */
41
+ entries<T = any>(): Array<[string, T]>;
42
+ /** Destroy — clear all + stop cleanup timer */
43
+ destroy(): void;
44
+ }
45
+ //# sourceMappingURL=StoreServiceInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StoreServiceInterface.d.ts","sourceRoot":"","sources":["../../../../src/core/contracts/StoreServiceInterface.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,qBAAqB;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAGnB,+CAA+C;IAC/C,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAC/D,qDAAqD;IACrD,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC;IACpC,6CAA6C;IAC7C,GAAG,CAAC,GAAG,EAAE,MAAM,G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AI,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ // ─── Store Service Interface ─────────────────────────────────────
2
+ export {};
3
+ //# sourceMappingURL=StoreServiceInterface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StoreServiceInterface.js","sourceRoot":"","sources":["../../../../src/core/contracts/StoreServiceInterface.ts"],"names":[],"mappings":"AAAA,oEAAoE"}
@@ -0,0 +1,13 @@
1
+ export interface ViewCacheInterface {
2
+ /** Store a rendered view's DOM state */
3
+ store(viewId: string, element: HTMLElement | DocumentFragment): void;
4
+ /** Retrieve cached DOM for a view (returns null if not cached) */
5
+ retrieve(viewId: string): HTMLElement | DocumentFragment | null;
6
+ /** Check if a view is cached */
7
+ has(viewId: string): boolean;
8
+ /** Remove a specific view from cache */
9
+ remove(viewId: string): void;
10
+ /** Clear all cached views */
11
+ clear(): void;
12
+ }
13
+ //# sourceMappingURL=ViewCacheInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewCacheInterface.d.ts","sourceRoot":"","sources":["../../../../src/core/contracts/ViewCacheInterface.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IAC/B,wCAAwC;IACxC,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,gBAAgB,GAAG,IAAI,CAAC;IACrE,kEAAkE;IAClE,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,gBAAgB,GAAG,IAAI,CAAC;IAChE,gCAAgC;IAChC,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,wCAAwC;IACxC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,6BAA6B;IAC7B,KAAK,IAAI,IAAI,CAAC;CACjB"}
@@ -0,0 +1,3 @@
1
+ // ─── View Cache Interface ────────────────────────────────────────
2
+ export {};
3
+ //# sourceMappingURL=ViewCacheInterface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewCacheInterface.js","sourceRoot":"","sources":["../../../../src/core/contracts/ViewCacheInterface.ts"],"names":[],"mappings":"AAAA,oEAAoE"}
@@ -0,0 +1,115 @@
1
+ import type { OneObjectType } from "../types/utils";
2
+ import type { ViewInterface, ViewRenderFactory } from "./ViewInterface";
3
+ import type { ViewStateInterface } from "./ViewStateInterface";
4
+ import type { HtmlInterface, FragmentInterface, OneElementEventHandler, OneChildrenFactory, WrapperInterface } from "./ElementInterface";
5
+ import type { ReactiveInterface } from "./ReactiveInterface";
6
+ import type { BlockInterface } from "./BlockInterface";
7
+ import type { LoopContextInterface } from "./LoopContextInterface";
8
+ import { SectionInterface } from "./views";
9
+ export type ViewType = 'view' | 'layout' | 'component' | 'template';
10
+ export interface ViewControllerInterface {
11
+ oneType: OneObjectType;
12
+ view: ViewInterface;
13
+ viewId: string;
14
+ path: string;
15
+ viewType: ViewType;
16
+ states: ViewStateInterface;
17
+ loopContext: LoopContextInterface | null;
18
+ /** Raw input data reference */
19
+ data: Record<string, any>;
20
+ /** Whether this view defines a super view (layout) */
21
+ hasSuperView: boolean;
22
+ /** Path to super view (layout) */
23
+ superViewPath: string | null;
24
+ /** Main element (Wrapper) for this view */
25
+ mainElement: any;
26
+ sections: Map<string, SectionInterface>;
27
+ blocks: Map<string, BlockInterface>;
28
+ urlPath: string | null;
29
+ childrenFactory: OneChildrenFactory | null;
30
+ wrapper: (factory: OneChildrenFactory) => WrapperInterface;
31
+ addEventListener(element: HTMLElement, event: string, handlers: OneElementEventHandler): void;
32
+ /** Called by reactive system to schedule an update */
33
+ scheduleUpdate(reactive: ReactiveInterface): void;
34
+ /** Lifecycle */
35
+ setup(config: Record<string, any>): void;
36
+ /** Commit initial data — set initial state values after render */
37
+ commitData(): void;
38
+ /** Update data from external source */
39
+ updateData(data: Record<string, any>): void;
40
+ /** Update single data item */
41
+ updateDataItem(key: string, value: any): void;
42
+ /** Start reactive subscriptions */
43
+ start(): void;
44
+ /** Stop reactive subscriptions (for caching) */
45
+ stop(): void;
46
+ /** Loop directives */
47
+ __foreach<T>(list: T[] | Record<string, T>, callback: (item: T, key: string, index: number, loop: any) => any): any[];
48
+ __for(loopType?: string, start?: number, end?: number, execute?: (loop: any) => any): any;
49
+ __while(execute: (loop: any) => any, maxIterations?: number): any;
50
+ /** App reference */
51
+ App: any;
52
+ setApp(app: any): void;
53
+ setUserDefinedConfig(config: Record<string, any>): void;
54
+ /** Set root element — the container this view renders into */
55
+ setRootElement(rootElement: HtmlInterface): void;
56
+ /** Render the view's element tree into rootElement */
57
+ render(): ViewInterface | FragmentInterface | null;
58
+ prerender(): ViewInterface | FragmentInterface | null;
59
+ superView: ViewControllerInterface | null;
60
+ /** Whether this controller IS a layout (super view) */
61
+ isSuperView: boolean;
62
+ /** Mark this controller as a super view (layout) */
63
+ setIsSuperView(isSuper: boolean): void;
64
+ /** Set the parent layout's controller */
65
+ setSuperView(superView: ViewControllerInterface): void;
66
+ /** Track the original page view's controller for block mounting */
67
+ originView: ViewControllerInterface | null;
68
+ /** Set the origin (page) controller reference */
69
+ setOriginView(origin: ViewControllerInterface): void;
70
+ setChainFromOrigin(): void;
71
+ ejectOriginChain(): void;
72
+ destroy(): void;
73
+ /** Get config value with optional default */
74
+ getConfig(key?: string, defaultValue?: any): any;
75
+ getConfig(): ViewControllerConfig;
76
+ }
77
+ export type ViewConfig = {
78
+ hasSuperView?: boolean;
79
+ viewType?: 'view' | 'layout' | 'component' | 'template';
80
+ sections?: Record<string, ViewRenderFactory>;
81
+ hasAwaitData?: boolean;
82
+ hasFetchData?: boolean;
83
+ useVars?: boolean;
84
+ hasSections?: boolean;
85
+ hasSectionPreload?: boolean;
86
+ hasPrerender?: boolean;
87
+ renderLongSections?: Record<string, any>;
88
+ renderSections?: Record<string, any>;
89
+ prerenderSections?: Record<string, any>;
90
+ [key: string]: any;
91
+ };
92
+ export type ViewRuntimeConfig = {
93
+ data?: Record<string, any>;
94
+ fetch?: {
95
+ url: string;
96
+ method?: string;
97
+ headers?: Record<string, string>;
98
+ body?: any;
99
+ } | null;
100
+ viewId?: string;
101
+ path?: string;
102
+ superView?: string | null;
103
+ subscribe?: boolean;
104
+ scripts?: any[];
105
+ styles?: any[];
106
+ resources?: any[];
107
+ commitConstructorData?: () => void;
108
+ updateVariableData?: (data: Record<string, any>) => void;
109
+ updateVariableItemData?: (key: string, value: any) => void;
110
+ prerender?: ViewRenderFactory | null;
111
+ render?: ViewRenderFactory | null;
112
+ [key: string]: any;
113
+ };
114
+ export type ViewControllerConfig = ViewConfig & ViewRuntimeConfig;
115
+ //# sourceMappingURL=ViewControllerInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewControllerInterface.d.ts","sourceRoot":"","sources":["../../../../src/core/contracts/ViewControllerInterface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,sBAAsB,EAAsB,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC7J,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAI3C,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,CAAC;AAEpE,MAAM,WAAW,uBAAuB;IACpC,OAAO,EAAE,aAAa,CAAC;IACvB,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IAC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EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,EAAE,GAAG,CAAC;KACd,GAAG,IAAI,CAAC;IAET,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;IAChB,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAClB,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IACzD,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC3D,SAAS,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACrC,MAAM,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB,CAAA;AACD,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ViewControllerInterface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewControllerInterface.js","sourceRoot":"","sources":["../../../../src/core/contracts/ViewControllerInterface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import type { OneObjectType } from "../types/utils";
2
+ import type { ViewControllerInterface, ViewType } from "./ViewControllerInterface";
3
+ import type { FragmentInterface } from "./ElementInterface";
4
+ export interface ViewInterface {
5
+ oneType: OneObjectType;
6
+ __ctrl__: ViewControllerInterface;
7
+ path: string;
8
+ viewType: ViewType;
9
+ [key: string]: any;
10
+ }
11
+ /** Render factory for a View — compiled output calls this to build the DOM tree */
12
+ export type ViewRenderFactory = () => FragmentInterface | ViewInterface | null;
13
+ /** View class constructor signature */
14
+ export type ViewConstructor = new (path: string, viewType: 'view' | 'layout' | 'component', viewControllerClass?: any) => ViewInterface;
15
+ /** View lifecycle hooks — user can implement any of these */
16
+ export interface ViewLifecycleHooks {
17
+ onInit?(): void | Promise<void>;
18
+ onMounted?(): void | Promise<void>;
19
+ onUpdated?(): void | Promise<void>;
20
+ onDestroy?(): void | Promise<void>;
21
+ onActivated?(): void | Promise<void>;
22
+ onDeactivated?(): void | Promise<void>;
23
+ }
24
+ //# sourceMappingURL=ViewInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewInterface.d.ts","sourceRoot":"","sources":["../../../../src/core/contracts/ViewInterface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,uBAAuB,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAI5D,MAAM,WAAW,aAAa;IAC1B,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,uBAAuB,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAID,mFAAmF;AACnF,MAAM,MAAM,iBAAiB,GAAG,MAAM,iBAAiB,GAAG,aAAa,GAAG,IAAI,CAAC;AAE/E,uCAAuC;AACvC,MAAM,MAAM,eAAe,GAAG,KAAK,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,QAAQ,GAAG,WAAW,EAAE,mBAAmB,CAAC,EAAE,GAAG,KAAK,aAAa,CAAC;AAExI,6DAA6D;AAC7D,MAAM,WAAW,kBAAkB;IAC/B,MAAM,CAAC,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,SAAS,CAAC,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,SAAS,CAAC,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,SAAS,CAAC,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,WAAW,CAAC,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,aAAa,CAAC,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ViewInterface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewInterface.js","sourceRoot":"","sources":["../../../../src/core/contracts/ViewInterface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,44 @@
1
+ import type { ViewInterface } from "./ViewInterface";
2
+ import type { ApplicationInterface } from "./ApplicationInterface";
3
+ import { RouterNavigationType } from "./RouterInterface";
4
+ export interface ActiveViewInfo {
5
+ view: ViewInterface;
6
+ path: string;
7
+ isLayout: boolean;
8
+ isActive: boolean;
9
+ }
10
+ export interface ViewManagerInterface {
11
+ [key: string]: any;
12
+ /** Set DI container */
13
+ setApp(app: ApplicationInterface): void;
14
+ /** Set root DOM container */
15
+ setContainer(container: HTMLElement): void;
16
+ /** Get root container */
17
+ getContainer(): HTMLElement | null;
18
+ /** Register view modules by name */
19
+ setViewRegistry(registry: Record<string, ((...args: any[]) => any) | (() => Promise<any>)>): void;
20
+ /** Register a single view module */
21
+ registerView(name: string, loader: ((...args: any[]) => any) | (() => Promise<any>)): void;
22
+ /** Initialize with optional config */
23
+ init(config?: {
24
+ container?: HTMLElement;
25
+ registry?: Record<string, any>;
26
+ }): void;
27
+ /** Mount a view by name — main entry point */
28
+ mountView(name: string, data?: Record<string, any>, route?: any, navigationType?: RouterNavigationType): any;
29
+ /** Unmount all active views */
30
+ unmountAll(): void;
31
+ /** Unmount a specific view by path */
32
+ unmountView(path: string): void;
33
+ /** Get currently active page view */
34
+ getCurrentView(): ViewInterface | null;
35
+ /** Get current layout view */
36
+ getCurrentLayout(): ViewInterface | null;
37
+ /** Get full view stack */
38
+ getViewStack(): ViewInterface[];
39
+ /** Check if a view is mounted */
40
+ isViewMounted(path: string): boolean;
41
+ /** Full destroy */
42
+ destroy(): void;
43
+ }
44
+ //# sourceMappingURL=ViewManagerInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewManagerInterface.d.ts","sourceRoot":"","sources":["../../../../src/core/contracts/ViewManagerInterface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAKzD,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACjC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,uBAAuB;IACvB,MAAM,CAAC,GAAG,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACxC,6BAA6B;IAC7B,YAAY,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3C,yBAAyB;IACzB,YAAY,IAAI,WAAW,GAAG,IAAI,CAAC;IACnC,oCAAoC;IACpC,eAAe,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAClG,oCAAoC;IACpC,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;IAC3F,sCAAsC;IACtC,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,WAAW,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAAE,GAAG,IAAI,CAAC;IACjF,8CAA8C;IAC9C,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,EAAE,GAAG,EAAE,cAAc,CAAC,EAAE,oBAAoB,GAAI,GAAG,CAAC;IAC9G,+BAA+B;IAC/B,UAAU,IAAI,IAAI,CAAC;IACnB,sCAAsC;IACtC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,qCAAqC;IACrC,cAAc,IAAI,aAAa,GAAG,IAAI,CAAC;IACvC,8BAA8B;IAC9B,gBAAgB,IAAI,aAAa,GAAG,IAAI,CAAC;IACzC,0BAA0B;IAC1B,YAAY,IAAI,aAAa,EAAE,CAAC;IAChC,iCAAiC;IACjC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACrC,mBAAmB;IACnB,OAAO,IAAI,IAAI,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ViewManagerInterface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewManagerInterface.js","sourceRoot":"","sources":["../../../../src/core/contracts/ViewManagerInterface.ts"],"names":[],"mappings":""}