@akashjs/runtime 0.2.2 → 0.2.7

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 (552) hide show
  1. package/dist/a11y.cjs +2 -0
  2. package/dist/a11y.cjs.map +1 -0
  3. package/dist/a11y.d.cts +99 -0
  4. package/dist/a11y.d.ts +99 -0
  5. package/dist/a11y.js +2 -0
  6. package/dist/a11y.js.map +1 -0
  7. package/dist/async-component.cjs +2 -0
  8. package/dist/async-component.cjs.map +1 -0
  9. package/dist/async-component.d.cts +44 -0
  10. package/dist/async-component.d.ts +44 -0
  11. package/dist/async-component.js +2 -0
  12. package/dist/async-component.js.map +1 -0
  13. package/dist/await-block.cjs +2 -0
  14. package/dist/await-block.cjs.map +1 -0
  15. package/dist/await-block.d.cts +37 -0
  16. package/dist/await-block.d.ts +37 -0
  17. package/dist/await-block.js +2 -0
  18. package/dist/await-block.js.map +1 -0
  19. package/dist/browser.cjs +2 -0
  20. package/dist/browser.cjs.map +1 -0
  21. package/dist/browser.d.cts +125 -0
  22. package/dist/browser.d.ts +125 -0
  23. package/dist/browser.js +2 -0
  24. package/dist/browser.js.map +1 -0
  25. package/dist/chunk-2HLDEWRT.cjs +2 -0
  26. package/dist/chunk-2HLDEWRT.cjs.map +1 -0
  27. package/dist/chunk-2LKFIID7.cjs +2 -0
  28. package/dist/chunk-2LKFIID7.cjs.map +1 -0
  29. package/dist/chunk-34PQECMN.cjs +2 -0
  30. package/dist/chunk-34PQECMN.cjs.map +1 -0
  31. package/dist/chunk-36VM3RJW.cjs +2 -0
  32. package/dist/chunk-36VM3RJW.cjs.map +1 -0
  33. package/dist/chunk-3PGU24B5.cjs +3 -0
  34. package/dist/chunk-3PGU24B5.cjs.map +1 -0
  35. package/dist/chunk-3XREYIJH.cjs +2 -0
  36. package/dist/chunk-3XREYIJH.cjs.map +1 -0
  37. package/dist/chunk-45DPEU7T.cjs +2 -0
  38. package/dist/chunk-45DPEU7T.cjs.map +1 -0
  39. package/dist/chunk-4J3QBQVW.js +4 -0
  40. package/dist/chunk-4J3QBQVW.js.map +1 -0
  41. package/dist/{chunk-NVZLEJXB.cjs → chunk-4NQEIKH5.cjs} +2 -2
  42. package/dist/{chunk-NVZLEJXB.cjs.map → chunk-4NQEIKH5.cjs.map} +1 -1
  43. package/dist/chunk-5QCWH6QA.cjs +4 -0
  44. package/dist/chunk-5QCWH6QA.cjs.map +1 -0
  45. package/dist/chunk-6O46EMQS.cjs +2 -0
  46. package/dist/chunk-6O46EMQS.cjs.map +1 -0
  47. package/dist/chunk-7IJUJUXE.cjs +2 -0
  48. package/dist/chunk-7IJUJUXE.cjs.map +1 -0
  49. package/dist/chunk-7UX5CSGZ.cjs +2 -0
  50. package/dist/chunk-7UX5CSGZ.cjs.map +1 -0
  51. package/dist/chunk-7VBH4F3P.js +2 -0
  52. package/dist/chunk-7VBH4F3P.js.map +1 -0
  53. package/dist/chunk-7ZPSYZHD.cjs +2 -0
  54. package/dist/chunk-7ZPSYZHD.cjs.map +1 -0
  55. package/dist/chunk-AOFLE33X.js +5 -0
  56. package/dist/chunk-AOFLE33X.js.map +1 -0
  57. package/dist/chunk-AQQQVDBQ.cjs +2 -0
  58. package/dist/chunk-AQQQVDBQ.cjs.map +1 -0
  59. package/dist/chunk-AXB5GHGO.js +2 -0
  60. package/dist/chunk-AXB5GHGO.js.map +1 -0
  61. package/dist/chunk-AZCELE44.cjs +2 -0
  62. package/dist/chunk-AZCELE44.cjs.map +1 -0
  63. package/dist/chunk-BB7P6HTR.js +2 -0
  64. package/dist/chunk-BB7P6HTR.js.map +1 -0
  65. package/dist/chunk-BGSF77LF.js +2 -0
  66. package/dist/chunk-BGSF77LF.js.map +1 -0
  67. package/dist/chunk-BHP3UTTQ.cjs +3 -0
  68. package/dist/chunk-BHP3UTTQ.cjs.map +1 -0
  69. package/dist/chunk-CP6SK2B4.js +2 -0
  70. package/dist/chunk-CP6SK2B4.js.map +1 -0
  71. package/dist/chunk-DFYXFKCH.cjs +2 -0
  72. package/dist/chunk-DFYXFKCH.cjs.map +1 -0
  73. package/dist/chunk-DHFVVFZF.cjs +2 -0
  74. package/dist/chunk-DHFVVFZF.cjs.map +1 -0
  75. package/dist/chunk-DP7G45QM.cjs +13 -0
  76. package/dist/chunk-DP7G45QM.cjs.map +1 -0
  77. package/dist/chunk-E6RB7PRO.js +2 -0
  78. package/dist/chunk-E6RB7PRO.js.map +1 -0
  79. package/dist/chunk-F4FXIPR3.js +2 -0
  80. package/dist/chunk-F4FXIPR3.js.map +1 -0
  81. package/dist/chunk-F6VSSM2P.js +2 -0
  82. package/dist/chunk-F6VSSM2P.js.map +1 -0
  83. package/dist/chunk-FUVSCPU4.cjs +2 -0
  84. package/dist/chunk-FUVSCPU4.cjs.map +1 -0
  85. package/dist/chunk-FVF3T4JJ.js +2 -0
  86. package/dist/chunk-FVF3T4JJ.js.map +1 -0
  87. package/dist/chunk-FVWHMFX6.cjs +5 -0
  88. package/dist/chunk-FVWHMFX6.cjs.map +1 -0
  89. package/dist/chunk-IHEW6F2H.js +2 -0
  90. package/dist/chunk-IHEW6F2H.js.map +1 -0
  91. package/dist/chunk-IJS2EMSE.js +2 -0
  92. package/dist/chunk-IJS2EMSE.js.map +1 -0
  93. package/dist/chunk-IKVHLORY.cjs +11 -0
  94. package/dist/chunk-IKVHLORY.cjs.map +1 -0
  95. package/dist/chunk-IQGSDFBI.cjs +2 -0
  96. package/dist/chunk-IQGSDFBI.cjs.map +1 -0
  97. package/dist/chunk-J6KDUWX6.cjs +2 -0
  98. package/dist/chunk-J6KDUWX6.cjs.map +1 -0
  99. package/dist/chunk-JD3LDHUI.cjs +2 -0
  100. package/dist/chunk-JD3LDHUI.cjs.map +1 -0
  101. package/dist/chunk-JEYTB4AG.js +2 -0
  102. package/dist/chunk-JEYTB4AG.js.map +1 -0
  103. package/dist/chunk-JFLZJPVN.js +2 -0
  104. package/dist/chunk-JFLZJPVN.js.map +1 -0
  105. package/dist/chunk-JLPJ22CE.js +2 -0
  106. package/dist/chunk-JLPJ22CE.js.map +1 -0
  107. package/dist/chunk-JQCN42XX.js +2 -0
  108. package/dist/chunk-JQCN42XX.js.map +1 -0
  109. package/dist/chunk-K2HB5VFA.cjs +2 -0
  110. package/dist/chunk-K2HB5VFA.cjs.map +1 -0
  111. package/dist/chunk-K7TMUF3F.cjs +2 -0
  112. package/dist/chunk-K7TMUF3F.cjs.map +1 -0
  113. package/dist/chunk-KE7BJTCD.js +2 -0
  114. package/dist/chunk-KE7BJTCD.js.map +1 -0
  115. package/dist/chunk-KMEGUPH2.js +3 -0
  116. package/dist/chunk-KMEGUPH2.js.map +1 -0
  117. package/dist/chunk-KUPL3ZVD.js +2 -0
  118. package/dist/chunk-KUPL3ZVD.js.map +1 -0
  119. package/dist/chunk-L3ZZX36S.js +2 -0
  120. package/dist/chunk-L3ZZX36S.js.map +1 -0
  121. package/dist/chunk-LD4C62JY.cjs +2 -0
  122. package/dist/chunk-LD4C62JY.cjs.map +1 -0
  123. package/dist/chunk-LWQPLKL6.cjs +20 -0
  124. package/dist/chunk-LWQPLKL6.cjs.map +1 -0
  125. package/dist/chunk-M5IACTFC.cjs +17 -0
  126. package/dist/chunk-M5IACTFC.cjs.map +1 -0
  127. package/dist/chunk-MADMPRT2.js +20 -0
  128. package/dist/chunk-MADMPRT2.js.map +1 -0
  129. package/dist/chunk-MDHWM3C2.js +2 -0
  130. package/dist/chunk-MDHWM3C2.js.map +1 -0
  131. package/dist/chunk-N3ITIHHM.js +5 -0
  132. package/dist/chunk-N3ITIHHM.js.map +1 -0
  133. package/dist/chunk-N5APNCPB.js +2 -0
  134. package/dist/chunk-N5APNCPB.js.map +1 -0
  135. package/dist/chunk-NBYFHJWB.js +36 -0
  136. package/dist/chunk-NBYFHJWB.js.map +1 -0
  137. package/dist/chunk-NCXMNJUN.js +2 -0
  138. package/dist/chunk-NCXMNJUN.js.map +1 -0
  139. package/dist/chunk-NEQ5TENE.cjs +2 -0
  140. package/dist/chunk-NEQ5TENE.cjs.map +1 -0
  141. package/dist/chunk-NGU2W4PD.cjs +2 -0
  142. package/dist/chunk-NGU2W4PD.cjs.map +1 -0
  143. package/dist/chunk-NHDYQTC5.cjs +36 -0
  144. package/dist/chunk-NHDYQTC5.cjs.map +1 -0
  145. package/dist/chunk-NJXXC5JB.js +2 -0
  146. package/dist/chunk-NJXXC5JB.js.map +1 -0
  147. package/dist/chunk-NQEY7DR5.cjs +2 -0
  148. package/dist/chunk-NQEY7DR5.cjs.map +1 -0
  149. package/dist/chunk-OQV3NYDH.js +3 -0
  150. package/dist/chunk-OQV3NYDH.js.map +1 -0
  151. package/dist/chunk-OZ4GNBKA.js +2 -0
  152. package/dist/chunk-OZ4GNBKA.js.map +1 -0
  153. package/dist/chunk-PPNEAFKE.cjs +5 -0
  154. package/dist/chunk-PPNEAFKE.cjs.map +1 -0
  155. package/dist/chunk-PYASLKWF.js +2 -0
  156. package/dist/chunk-PYASLKWF.js.map +1 -0
  157. package/dist/chunk-Q6S7SUOM.js +2 -0
  158. package/dist/chunk-Q6S7SUOM.js.map +1 -0
  159. package/dist/chunk-QE2TJ6P5.cjs +2 -0
  160. package/dist/chunk-QE2TJ6P5.cjs.map +1 -0
  161. package/dist/chunk-QNVMBXVH.js +2 -0
  162. package/dist/chunk-QNVMBXVH.js.map +1 -0
  163. package/dist/chunk-QQ725EZL.js +2 -0
  164. package/dist/chunk-QQ725EZL.js.map +1 -0
  165. package/dist/chunk-QQTZQ6UX.cjs +2 -0
  166. package/dist/chunk-QQTZQ6UX.cjs.map +1 -0
  167. package/dist/chunk-QSPRVXFV.cjs +2 -0
  168. package/dist/chunk-QSPRVXFV.cjs.map +1 -0
  169. package/dist/chunk-QTQ6RUX4.cjs +5 -0
  170. package/dist/chunk-QTQ6RUX4.cjs.map +1 -0
  171. package/dist/chunk-R65RPMQX.cjs +2 -0
  172. package/dist/chunk-R65RPMQX.cjs.map +1 -0
  173. package/dist/chunk-R7NUVVHP.js +2 -0
  174. package/dist/{chunk-Z5LQV5ND.js.map → chunk-R7NUVVHP.js.map} +1 -1
  175. package/dist/chunk-SXYPAP4B.js +2 -0
  176. package/dist/chunk-SXYPAP4B.js.map +1 -0
  177. package/dist/chunk-T2RVAQEU.js +2 -0
  178. package/dist/chunk-T2RVAQEU.js.map +1 -0
  179. package/dist/chunk-T7A5YOEG.cjs +2 -0
  180. package/dist/chunk-T7A5YOEG.cjs.map +1 -0
  181. package/dist/chunk-TDKDZ3QJ.cjs +2 -0
  182. package/dist/chunk-TDKDZ3QJ.cjs.map +1 -0
  183. package/dist/chunk-TFEHO7SF.cjs +2 -0
  184. package/dist/chunk-TFEHO7SF.cjs.map +1 -0
  185. package/dist/chunk-TSFY5HKB.js +17 -0
  186. package/dist/chunk-TSFY5HKB.js.map +1 -0
  187. package/dist/chunk-TYTEJYUQ.cjs +2 -0
  188. package/dist/chunk-TYTEJYUQ.cjs.map +1 -0
  189. package/dist/chunk-TZHEZW6R.js +11 -0
  190. package/dist/chunk-TZHEZW6R.js.map +1 -0
  191. package/dist/chunk-U65WRXZC.js +13 -0
  192. package/dist/chunk-U65WRXZC.js.map +1 -0
  193. package/dist/chunk-UT4MWGJ3.js +2 -0
  194. package/dist/chunk-UT4MWGJ3.js.map +1 -0
  195. package/dist/chunk-V2JDKH3W.cjs +2 -0
  196. package/dist/chunk-V2JDKH3W.cjs.map +1 -0
  197. package/dist/chunk-VNDSKBXQ.cjs +2 -0
  198. package/dist/chunk-VNDSKBXQ.cjs.map +1 -0
  199. package/dist/chunk-VO4FCKHM.js +2 -0
  200. package/dist/chunk-VO4FCKHM.js.map +1 -0
  201. package/dist/chunk-VUMMC2P5.js +2 -0
  202. package/dist/chunk-VUMMC2P5.js.map +1 -0
  203. package/dist/chunk-VUSNUBNI.js +2 -0
  204. package/dist/chunk-VUSNUBNI.js.map +1 -0
  205. package/dist/chunk-VWTULWXF.js +2 -0
  206. package/dist/chunk-VWTULWXF.js.map +1 -0
  207. package/dist/chunk-VX7PSSOU.js +5 -0
  208. package/dist/chunk-VX7PSSOU.js.map +1 -0
  209. package/dist/chunk-WLSXJU2N.js +13 -0
  210. package/dist/chunk-WLSXJU2N.js.map +1 -0
  211. package/dist/chunk-WOZWFMOK.cjs +2 -0
  212. package/dist/chunk-WOZWFMOK.cjs.map +1 -0
  213. package/dist/chunk-WTDTVWCQ.cjs +2 -0
  214. package/dist/chunk-WTDTVWCQ.cjs.map +1 -0
  215. package/dist/chunk-WZ5ULION.js +2 -0
  216. package/dist/chunk-WZ5ULION.js.map +1 -0
  217. package/dist/chunk-XPLIEN2G.cjs +13 -0
  218. package/dist/chunk-XPLIEN2G.cjs.map +1 -0
  219. package/dist/chunk-XWVNLE2W.cjs +2 -0
  220. package/dist/chunk-XWVNLE2W.cjs.map +1 -0
  221. package/dist/chunk-XZR3J626.cjs +2 -0
  222. package/dist/chunk-XZR3J626.cjs.map +1 -0
  223. package/dist/chunk-YDO5KARN.js +2 -0
  224. package/dist/chunk-YDO5KARN.js.map +1 -0
  225. package/dist/chunk-YURIYBTN.cjs +2 -0
  226. package/dist/chunk-YURIYBTN.cjs.map +1 -0
  227. package/dist/chunk-YXKQTEPR.js +2 -0
  228. package/dist/chunk-YXKQTEPR.js.map +1 -0
  229. package/dist/chunk-Z6K4FYG6.js +2 -0
  230. package/dist/chunk-Z6K4FYG6.js.map +1 -0
  231. package/dist/chunk-ZJULEDLY.js +2 -0
  232. package/dist/chunk-ZJULEDLY.js.map +1 -0
  233. package/dist/{component-C1WnFcRp.d.ts → component-CPVtkASo.d.ts} +2 -3
  234. package/dist/{component-C1WnFcRp.d.cts → component-CxlupKuc.d.cts} +2 -3
  235. package/dist/composables.cjs +2 -0
  236. package/dist/composables.cjs.map +1 -0
  237. package/dist/composables.d.cts +103 -0
  238. package/dist/composables.d.ts +103 -0
  239. package/dist/composables.js +2 -0
  240. package/dist/composables.js.map +1 -0
  241. package/dist/{context-2uQ6fuxu.d.ts → context-Cwt7QCpk.d.cts} +1 -9
  242. package/dist/{context-2uQ6fuxu.d.cts → context-Cwt7QCpk.d.ts} +1 -9
  243. package/dist/core.cjs +1 -1
  244. package/dist/core.d.cts +5 -4
  245. package/dist/core.d.ts +5 -4
  246. package/dist/core.js +1 -1
  247. package/dist/css.cjs +2 -0
  248. package/dist/css.cjs.map +1 -0
  249. package/dist/css.d.cts +42 -0
  250. package/dist/css.d.ts +42 -0
  251. package/dist/css.js +2 -0
  252. package/dist/css.js.map +1 -0
  253. package/dist/data-table.cjs +2 -0
  254. package/dist/data-table.cjs.map +1 -0
  255. package/dist/data-table.d.cts +97 -0
  256. package/dist/data-table.d.ts +97 -0
  257. package/dist/data-table.js +2 -0
  258. package/dist/data-table.js.map +1 -0
  259. package/dist/deep-signal.cjs +2 -0
  260. package/dist/deep-signal.cjs.map +1 -0
  261. package/dist/deep-signal.d.cts +48 -0
  262. package/dist/deep-signal.d.ts +48 -0
  263. package/dist/deep-signal.js +2 -0
  264. package/dist/deep-signal.js.map +1 -0
  265. package/dist/defer.cjs +2 -0
  266. package/dist/defer.cjs.map +1 -0
  267. package/dist/defer.d.cts +55 -0
  268. package/dist/defer.d.ts +55 -0
  269. package/dist/defer.js +2 -0
  270. package/dist/defer.js.map +1 -0
  271. package/dist/deprecation.cjs +2 -0
  272. package/dist/deprecation.cjs.map +1 -0
  273. package/dist/deprecation.d.cts +119 -0
  274. package/dist/deprecation.d.ts +119 -0
  275. package/dist/deprecation.js +2 -0
  276. package/dist/deprecation.js.map +1 -0
  277. package/dist/devtools-overlay-3WRM6GKM.js +57 -0
  278. package/dist/devtools-overlay-3WRM6GKM.js.map +1 -0
  279. package/dist/devtools-overlay-WJGSIB4N.cjs +57 -0
  280. package/dist/devtools-overlay-WJGSIB4N.cjs.map +1 -0
  281. package/dist/devtools.cjs +2 -0
  282. package/dist/devtools.cjs.map +1 -0
  283. package/dist/devtools.d.cts +78 -0
  284. package/dist/devtools.d.ts +78 -0
  285. package/dist/devtools.js +2 -0
  286. package/dist/devtools.js.map +1 -0
  287. package/dist/di.cjs +2 -0
  288. package/dist/di.cjs.map +1 -0
  289. package/dist/di.d.cts +93 -0
  290. package/dist/di.d.ts +93 -0
  291. package/dist/di.js +2 -0
  292. package/dist/di.js.map +1 -0
  293. package/dist/directive.cjs +2 -0
  294. package/dist/directive.cjs.map +1 -0
  295. package/dist/directive.d.cts +102 -0
  296. package/dist/directive.d.ts +102 -0
  297. package/dist/directive.js +2 -0
  298. package/dist/directive.js.map +1 -0
  299. package/dist/error-boundary.cjs +2 -0
  300. package/dist/error-boundary.cjs.map +1 -0
  301. package/dist/error-boundary.d.cts +17 -0
  302. package/dist/error-boundary.d.ts +17 -0
  303. package/dist/error-boundary.js +2 -0
  304. package/dist/error-boundary.js.map +1 -0
  305. package/dist/error-hints.cjs +2 -0
  306. package/dist/error-hints.cjs.map +1 -0
  307. package/dist/error-hints.d.cts +17 -0
  308. package/dist/error-hints.d.ts +17 -0
  309. package/dist/error-hints.js +2 -0
  310. package/dist/error-hints.js.map +1 -0
  311. package/dist/errors.cjs +2 -0
  312. package/dist/errors.cjs.map +1 -0
  313. package/dist/errors.d.cts +35 -0
  314. package/dist/errors.d.ts +35 -0
  315. package/dist/errors.js +2 -0
  316. package/dist/errors.js.map +1 -0
  317. package/dist/event-bus.cjs +2 -0
  318. package/dist/event-bus.cjs.map +1 -0
  319. package/dist/event-bus.d.cts +68 -0
  320. package/dist/event-bus.d.ts +68 -0
  321. package/dist/event-bus.js +2 -0
  322. package/dist/event-bus.js.map +1 -0
  323. package/dist/event-modifiers.cjs +2 -0
  324. package/dist/event-modifiers.cjs.map +1 -0
  325. package/dist/event-modifiers.d.cts +130 -0
  326. package/dist/event-modifiers.d.ts +130 -0
  327. package/dist/event-modifiers.js +2 -0
  328. package/dist/event-modifiers.js.map +1 -0
  329. package/dist/flip.cjs +2 -0
  330. package/dist/flip.cjs.map +1 -0
  331. package/dist/flip.d.cts +66 -0
  332. package/dist/flip.d.ts +66 -0
  333. package/dist/flip.js +2 -0
  334. package/dist/flip.js.map +1 -0
  335. package/dist/head.cjs +2 -0
  336. package/dist/head.cjs.map +1 -0
  337. package/dist/head.d.cts +70 -0
  338. package/dist/head.d.ts +70 -0
  339. package/dist/head.js +2 -0
  340. package/dist/head.js.map +1 -0
  341. package/dist/hydration.cjs +2 -0
  342. package/dist/hydration.cjs.map +1 -0
  343. package/dist/hydration.d.cts +84 -0
  344. package/dist/hydration.d.ts +84 -0
  345. package/dist/hydration.js +2 -0
  346. package/dist/hydration.js.map +1 -0
  347. package/dist/image.cjs +2 -0
  348. package/dist/image.cjs.map +1 -0
  349. package/dist/image.d.cts +54 -0
  350. package/dist/image.d.ts +54 -0
  351. package/dist/image.js +2 -0
  352. package/dist/image.js.map +1 -0
  353. package/dist/index.cjs +1 -63
  354. package/dist/index.cjs.map +1 -1
  355. package/dist/index.d.cts +51 -3152
  356. package/dist/index.d.ts +51 -3152
  357. package/dist/index.js +1 -63
  358. package/dist/index.js.map +1 -1
  359. package/dist/infinite-scroll.cjs +2 -0
  360. package/dist/infinite-scroll.cjs.map +1 -0
  361. package/dist/infinite-scroll.d.cts +49 -0
  362. package/dist/infinite-scroll.d.ts +49 -0
  363. package/dist/infinite-scroll.js +2 -0
  364. package/dist/infinite-scroll.js.map +1 -0
  365. package/dist/leak-detector.cjs +2 -0
  366. package/dist/leak-detector.cjs.map +1 -0
  367. package/dist/leak-detector.d.cts +71 -0
  368. package/dist/leak-detector.d.ts +71 -0
  369. package/dist/leak-detector.js +2 -0
  370. package/dist/leak-detector.js.map +1 -0
  371. package/dist/machine.cjs +1 -1
  372. package/dist/machine.d.cts +1 -1
  373. package/dist/machine.d.ts +1 -1
  374. package/dist/machine.js +1 -1
  375. package/dist/offline.cjs +1 -1
  376. package/dist/offline.d.cts +3 -1
  377. package/dist/offline.d.ts +3 -1
  378. package/dist/offline.js +1 -1
  379. package/dist/perf.cjs +2 -0
  380. package/dist/perf.cjs.map +1 -0
  381. package/dist/perf.d.cts +97 -0
  382. package/dist/perf.d.ts +97 -0
  383. package/dist/perf.js +2 -0
  384. package/dist/perf.js.map +1 -0
  385. package/dist/pipes.cjs +2 -0
  386. package/dist/pipes.cjs.map +1 -0
  387. package/dist/pipes.d.cts +130 -0
  388. package/dist/pipes.d.ts +130 -0
  389. package/dist/pipes.js +2 -0
  390. package/dist/pipes.js.map +1 -0
  391. package/dist/plugin.cjs +2 -0
  392. package/dist/plugin.cjs.map +1 -0
  393. package/dist/plugin.d.cts +70 -0
  394. package/dist/plugin.d.ts +70 -0
  395. package/dist/plugin.js +2 -0
  396. package/dist/plugin.js.map +1 -0
  397. package/dist/portal.cjs +2 -0
  398. package/dist/portal.cjs.map +1 -0
  399. package/dist/portal.d.cts +30 -0
  400. package/dist/portal.d.ts +30 -0
  401. package/dist/portal.js +2 -0
  402. package/dist/portal.js.map +1 -0
  403. package/dist/pwa.cjs +1 -1
  404. package/dist/pwa.d.cts +6 -2
  405. package/dist/pwa.d.ts +6 -2
  406. package/dist/pwa.js +1 -1
  407. package/dist/query-state.cjs +2 -0
  408. package/dist/query-state.cjs.map +1 -0
  409. package/dist/query-state.d.cts +82 -0
  410. package/dist/query-state.d.ts +82 -0
  411. package/dist/query-state.js +2 -0
  412. package/dist/query-state.js.map +1 -0
  413. package/dist/reconcile.cjs +2 -0
  414. package/dist/reconcile.cjs.map +1 -0
  415. package/dist/reconcile.d.cts +42 -0
  416. package/dist/reconcile.d.ts +42 -0
  417. package/dist/reconcile.js +2 -0
  418. package/dist/reconcile.js.map +1 -0
  419. package/dist/scheduler-CKi1esN-.d.cts +9 -0
  420. package/dist/scheduler-CKi1esN-.d.ts +9 -0
  421. package/dist/security.cjs +2 -0
  422. package/dist/security.cjs.map +1 -0
  423. package/dist/security.d.cts +193 -0
  424. package/dist/security.d.ts +193 -0
  425. package/dist/security.js +2 -0
  426. package/dist/security.js.map +1 -0
  427. package/dist/seo.cjs +2 -0
  428. package/dist/seo.cjs.map +1 -0
  429. package/dist/seo.d.cts +118 -0
  430. package/dist/seo.d.ts +118 -0
  431. package/dist/seo.js +2 -0
  432. package/dist/seo.js.map +1 -0
  433. package/dist/{signals-C7XfOHHR.d.cts → signals-DionyGGY.d.cts} +7 -0
  434. package/dist/{signals-C7XfOHHR.d.ts → signals-DionyGGY.d.ts} +7 -0
  435. package/dist/snippets.cjs +2 -0
  436. package/dist/snippets.cjs.map +1 -0
  437. package/dist/snippets.d.cts +109 -0
  438. package/dist/snippets.d.ts +109 -0
  439. package/dist/snippets.js +2 -0
  440. package/dist/snippets.js.map +1 -0
  441. package/dist/ssg.cjs +2 -0
  442. package/dist/ssg.cjs.map +1 -0
  443. package/dist/ssg.d.cts +82 -0
  444. package/dist/ssg.d.ts +82 -0
  445. package/dist/ssg.js +2 -0
  446. package/dist/ssg.js.map +1 -0
  447. package/dist/ssr.cjs +1 -1
  448. package/dist/ssr.d.cts +2 -1
  449. package/dist/ssr.d.ts +2 -1
  450. package/dist/ssr.js +1 -1
  451. package/dist/store.cjs +1 -1
  452. package/dist/store.d.cts +33 -30
  453. package/dist/store.d.ts +33 -30
  454. package/dist/store.js +1 -1
  455. package/dist/suspense.cjs +2 -0
  456. package/dist/suspense.cjs.map +1 -0
  457. package/dist/suspense.d.cts +36 -0
  458. package/dist/suspense.d.ts +36 -0
  459. package/dist/suspense.js +2 -0
  460. package/dist/suspense.js.map +1 -0
  461. package/dist/switch.cjs +2 -0
  462. package/dist/switch.cjs.map +1 -0
  463. package/dist/switch.d.cts +48 -0
  464. package/dist/switch.d.ts +48 -0
  465. package/dist/switch.js +2 -0
  466. package/dist/switch.js.map +1 -0
  467. package/dist/sync.cjs +1 -1
  468. package/dist/sync.d.cts +60 -5
  469. package/dist/sync.d.ts +60 -5
  470. package/dist/sync.js +1 -1
  471. package/dist/test.cjs +4 -4
  472. package/dist/test.cjs.map +1 -1
  473. package/dist/test.d.cts +74 -5
  474. package/dist/test.d.ts +74 -5
  475. package/dist/test.js +4 -4
  476. package/dist/test.js.map +1 -1
  477. package/dist/theme.cjs +2 -0
  478. package/dist/theme.cjs.map +1 -0
  479. package/dist/theme.d.cts +56 -0
  480. package/dist/theme.d.ts +56 -0
  481. package/dist/theme.js +2 -0
  482. package/dist/theme.js.map +1 -0
  483. package/dist/toast.cjs +2 -0
  484. package/dist/toast.cjs.map +1 -0
  485. package/dist/toast.d.cts +66 -0
  486. package/dist/toast.d.ts +66 -0
  487. package/dist/toast.js +2 -0
  488. package/dist/toast.js.map +1 -0
  489. package/dist/transition.cjs +2 -0
  490. package/dist/transition.cjs.map +1 -0
  491. package/dist/transition.d.cts +90 -0
  492. package/dist/transition.d.ts +90 -0
  493. package/dist/transition.js +2 -0
  494. package/dist/transition.js.map +1 -0
  495. package/dist/tweened.cjs +2 -0
  496. package/dist/tweened.cjs.map +1 -0
  497. package/dist/tweened.d.cts +59 -0
  498. package/dist/tweened.d.ts +59 -0
  499. package/dist/tweened.js +2 -0
  500. package/dist/tweened.js.map +1 -0
  501. package/dist/types-DjZCk1xT.d.cts +4 -0
  502. package/dist/types-DjZCk1xT.d.ts +4 -0
  503. package/dist/view-transition.cjs +2 -0
  504. package/dist/view-transition.cjs.map +1 -0
  505. package/dist/view-transition.d.cts +80 -0
  506. package/dist/view-transition.d.ts +80 -0
  507. package/dist/view-transition.js +2 -0
  508. package/dist/view-transition.js.map +1 -0
  509. package/dist/virtual-list.cjs +2 -0
  510. package/dist/virtual-list.cjs.map +1 -0
  511. package/dist/virtual-list.d.cts +67 -0
  512. package/dist/virtual-list.d.ts +67 -0
  513. package/dist/virtual-list.js +2 -0
  514. package/dist/virtual-list.js.map +1 -0
  515. package/dist/watch.cjs +2 -0
  516. package/dist/watch.cjs.map +1 -0
  517. package/dist/watch.d.cts +70 -0
  518. package/dist/watch.d.ts +70 -0
  519. package/dist/watch.js +2 -0
  520. package/dist/watch.js.map +1 -0
  521. package/dist/web-component.cjs +2 -0
  522. package/dist/web-component.cjs.map +1 -0
  523. package/dist/web-component.d.cts +51 -0
  524. package/dist/web-component.d.ts +51 -0
  525. package/dist/web-component.js +2 -0
  526. package/dist/web-component.js.map +1 -0
  527. package/package.json +249 -11
  528. package/dist/chunk-3AL2DVPZ.cjs +0 -13
  529. package/dist/chunk-3AL2DVPZ.cjs.map +0 -1
  530. package/dist/chunk-6NX6JRSV.cjs +0 -32
  531. package/dist/chunk-6NX6JRSV.cjs.map +0 -1
  532. package/dist/chunk-BT6HNBE7.js +0 -5
  533. package/dist/chunk-BT6HNBE7.js.map +0 -1
  534. package/dist/chunk-D6QQYZIC.js +0 -2
  535. package/dist/chunk-D6QQYZIC.js.map +0 -1
  536. package/dist/chunk-H4SAK7A5.cjs +0 -2
  537. package/dist/chunk-H4SAK7A5.cjs.map +0 -1
  538. package/dist/chunk-IKZMC3T6.js +0 -2
  539. package/dist/chunk-IKZMC3T6.js.map +0 -1
  540. package/dist/chunk-IM2VW4TK.js +0 -32
  541. package/dist/chunk-IM2VW4TK.js.map +0 -1
  542. package/dist/chunk-NQVWTQ2I.cjs +0 -5
  543. package/dist/chunk-NQVWTQ2I.cjs.map +0 -1
  544. package/dist/chunk-ODDXU5DO.js +0 -2
  545. package/dist/chunk-ODDXU5DO.js.map +0 -1
  546. package/dist/chunk-POLTPHUA.js +0 -13
  547. package/dist/chunk-POLTPHUA.js.map +0 -1
  548. package/dist/chunk-YIB4EKVI.cjs +0 -2
  549. package/dist/chunk-YIB4EKVI.cjs.map +0 -1
  550. package/dist/chunk-YJQLXUTN.cjs +0 -2
  551. package/dist/chunk-YJQLXUTN.cjs.map +0 -1
  552. package/dist/chunk-Z5LQV5ND.js +0 -2
package/dist/ssr.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkUOD4PYAN_cjs=require('./chunk-UOD4PYAN.cjs');require('./chunk-3AL2DVPZ.cjs');Object.defineProperty(exports,"escapeHtml",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.a}});Object.defineProperty(exports,"isServerRendering",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.b}});Object.defineProperty(exports,"nodeToHtml",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.i}});Object.defineProperty(exports,"renderNodes",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.j}});Object.defineProperty(exports,"renderToStream",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.e}});Object.defineProperty(exports,"renderToString",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.c}});Object.defineProperty(exports,"renderToStringSync",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.d}});Object.defineProperty(exports,"ssrElement",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.f}});Object.defineProperty(exports,"ssrRaw",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.h}});Object.defineProperty(exports,"ssrText",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.g}});//# sourceMappingURL=ssr.cjs.map
1
+ 'use strict';var chunkUOD4PYAN_cjs=require('./chunk-UOD4PYAN.cjs');require('./chunk-WOZWFMOK.cjs'),require('./chunk-XPLIEN2G.cjs');Object.defineProperty(exports,"escapeHtml",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.a}});Object.defineProperty(exports,"isServerRendering",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.b}});Object.defineProperty(exports,"nodeToHtml",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.i}});Object.defineProperty(exports,"renderNodes",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.j}});Object.defineProperty(exports,"renderToStream",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.e}});Object.defineProperty(exports,"renderToString",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.c}});Object.defineProperty(exports,"renderToStringSync",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.d}});Object.defineProperty(exports,"ssrElement",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.f}});Object.defineProperty(exports,"ssrRaw",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.h}});Object.defineProperty(exports,"ssrText",{enumerable:true,get:function(){return chunkUOD4PYAN_cjs.g}});//# sourceMappingURL=ssr.cjs.map
2
2
  //# sourceMappingURL=ssr.cjs.map
package/dist/ssr.d.cts CHANGED
@@ -1,4 +1,5 @@
1
- import { C as Component } from './component-C1WnFcRp.cjs';
1
+ import { C as Component } from './component-CxlupKuc.cjs';
2
+ import './types-DjZCk1xT.cjs';
2
3
 
3
4
  /**
4
5
  * Server-Side Rendering.
package/dist/ssr.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { C as Component } from './component-C1WnFcRp.js';
1
+ import { C as Component } from './component-CPVtkASo.js';
2
+ import './types-DjZCk1xT.js';
2
3
 
3
4
  /**
4
5
  * Server-Side Rendering.
package/dist/ssr.js CHANGED
@@ -1,2 +1,2 @@
1
- export{a as escapeHtml,b as isServerRendering,i as nodeToHtml,j as renderNodes,e as renderToStream,c as renderToString,d as renderToStringSync,f as ssrElement,h as ssrRaw,g as ssrText}from'./chunk-QTPP343X.js';import'./chunk-POLTPHUA.js';//# sourceMappingURL=ssr.js.map
1
+ export{a as escapeHtml,b as isServerRendering,i as nodeToHtml,j as renderNodes,e as renderToStream,c as renderToString,d as renderToStringSync,f as ssrElement,h as ssrRaw,g as ssrText}from'./chunk-QTPP343X.js';import'./chunk-YXKQTEPR.js';import'./chunk-U65WRXZC.js';//# sourceMappingURL=ssr.js.map
2
2
  //# sourceMappingURL=ssr.js.map
package/dist/store.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkYJQLXUTN_cjs=require('./chunk-YJQLXUTN.cjs');require('./chunk-3AL2DVPZ.cjs');Object.defineProperty(exports,"__getStoreInstances",{enumerable:true,get:function(){return chunkYJQLXUTN_cjs.d}});Object.defineProperty(exports,"clearStores",{enumerable:true,get:function(){return chunkYJQLXUTN_cjs.c}});Object.defineProperty(exports,"configureStores",{enumerable:true,get:function(){return chunkYJQLXUTN_cjs.a}});Object.defineProperty(exports,"defineStore",{enumerable:true,get:function(){return chunkYJQLXUTN_cjs.b}});//# sourceMappingURL=store.cjs.map
1
+ 'use strict';var chunkQSPRVXFV_cjs=require('./chunk-QSPRVXFV.cjs');require('./chunk-NEQ5TENE.cjs'),require('./chunk-WOZWFMOK.cjs'),require('./chunk-XPLIEN2G.cjs');Object.defineProperty(exports,"__getStoreInstances",{enumerable:true,get:function(){return chunkQSPRVXFV_cjs.d}});Object.defineProperty(exports,"clearStores",{enumerable:true,get:function(){return chunkQSPRVXFV_cjs.c}});Object.defineProperty(exports,"configureStores",{enumerable:true,get:function(){return chunkQSPRVXFV_cjs.a}});Object.defineProperty(exports,"defineStore",{enumerable:true,get:function(){return chunkQSPRVXFV_cjs.b}});//# sourceMappingURL=store.cjs.map
2
2
  //# sourceMappingURL=store.cjs.map
package/dist/store.d.cts CHANGED
@@ -1,32 +1,5 @@
1
- import { S as Signal, R as ReadonlySignal } from './signals-C7XfOHHR.cjs';
2
-
3
- /**
4
- * Global state management via defineStore().
5
- *
6
- * Stores are singleton signal containers that persist across
7
- * components. They provide shared state, computed getters,
8
- * and actions — no external library needed.
9
- *
10
- * ```ts
11
- * const useCounterStore = defineStore('counter', {
12
- * state: () => ({ count: 0, name: 'Counter' }),
13
- * getters: {
14
- * doubled: (state) => state.count() * 2,
15
- * },
16
- * actions: {
17
- * increment() { this.count.update(c => c + 1); },
18
- * reset() { this.count.set(0); },
19
- * },
20
- * });
21
- *
22
- * // In any component:
23
- * const store = useCounterStore();
24
- * store.count(); // 0
25
- * store.doubled(); // 0
26
- * store.increment();
27
- * store.count(); // 1
28
- * ```
29
- */
1
+ import { SyncTransport } from './sync.cjs';
2
+ import { S as Signal, R as ReadonlySignal } from './signals-DionyGGY.cjs';
30
3
 
31
4
  type StateFactory<S> = () => S;
32
5
  type Getters<S, G> = {
@@ -53,6 +26,32 @@ type Store<S, G, A> = SignalifiedState<S> & {
53
26
  /** Store ID */
54
27
  $id: string;
55
28
  };
29
+ interface PersistOptions<S> {
30
+ /** Only persist these state keys (default: all) */
31
+ pick?: (keyof S)[];
32
+ /** Storage backend (default: 'localStorage') */
33
+ storage?: 'localStorage' | 'sessionStorage';
34
+ /** Custom storage key (default: 'akash-store:{storeId}') */
35
+ key?: string;
36
+ /** Custom serializer (default: JSON.stringify) */
37
+ serialize?: (value: unknown) => string;
38
+ /** Custom deserializer (default: JSON.parse) */
39
+ deserialize?: (value: string) => unknown;
40
+ }
41
+ interface StoreSyncOptions {
42
+ /** Sync transport (WebSocket, local, etc.) */
43
+ transport?: SyncTransport;
44
+ /** Enable sync — uses provided or default transport */
45
+ enabled?: boolean;
46
+ /** Sync room/channel name (default: store ID) */
47
+ room?: string;
48
+ /** Unique peer ID */
49
+ peerId?: string;
50
+ /** Enable presence tracking */
51
+ presence?: boolean;
52
+ /** Only sync these state keys (default: all) */
53
+ pick?: string[];
54
+ }
56
55
  interface StoreDefinition<S, G, A> {
57
56
  state: StateFactory<S>;
58
57
  getters?: Getters<S, G>;
@@ -60,6 +59,10 @@ interface StoreDefinition<S, G, A> {
60
59
  [K in keyof G]: ReadonlySignal<G[K]>;
61
60
  } & A>;
62
61
  plugins?: StorePlugin[];
62
+ /** Auto-persist state to storage. true = persist all to localStorage. */
63
+ persist?: boolean | PersistOptions<S> | PersistOptions<S>[];
64
+ /** Sync state across peers via CRDT. Adds real-time collaboration to any store. */
65
+ sync?: StoreSyncOptions;
63
66
  }
64
67
  interface StorePlugin {
65
68
  init?(store: Store<any, any, any>): void;
@@ -81,4 +84,4 @@ declare function clearStores(): void;
81
84
  /** @internal — exposes store registry for devtools */
82
85
  declare function __getStoreInstances(): Record<string, Store<any, any, any>>;
83
86
 
84
- export { type Store, type StoreDefinition, type StorePlugin, __getStoreInstances, clearStores, configureStores, defineStore };
87
+ export { type PersistOptions, type Store, type StoreDefinition, type StorePlugin, type StoreSyncOptions, __getStoreInstances, clearStores, configureStores, defineStore };
package/dist/store.d.ts CHANGED
@@ -1,32 +1,5 @@
1
- import { S as Signal, R as ReadonlySignal } from './signals-C7XfOHHR.js';
2
-
3
- /**
4
- * Global state management via defineStore().
5
- *
6
- * Stores are singleton signal containers that persist across
7
- * components. They provide shared state, computed getters,
8
- * and actions — no external library needed.
9
- *
10
- * ```ts
11
- * const useCounterStore = defineStore('counter', {
12
- * state: () => ({ count: 0, name: 'Counter' }),
13
- * getters: {
14
- * doubled: (state) => state.count() * 2,
15
- * },
16
- * actions: {
17
- * increment() { this.count.update(c => c + 1); },
18
- * reset() { this.count.set(0); },
19
- * },
20
- * });
21
- *
22
- * // In any component:
23
- * const store = useCounterStore();
24
- * store.count(); // 0
25
- * store.doubled(); // 0
26
- * store.increment();
27
- * store.count(); // 1
28
- * ```
29
- */
1
+ import { SyncTransport } from './sync.js';
2
+ import { S as Signal, R as ReadonlySignal } from './signals-DionyGGY.js';
30
3
 
31
4
  type StateFactory<S> = () => S;
32
5
  type Getters<S, G> = {
@@ -53,6 +26,32 @@ type Store<S, G, A> = SignalifiedState<S> & {
53
26
  /** Store ID */
54
27
  $id: string;
55
28
  };
29
+ interface PersistOptions<S> {
30
+ /** Only persist these state keys (default: all) */
31
+ pick?: (keyof S)[];
32
+ /** Storage backend (default: 'localStorage') */
33
+ storage?: 'localStorage' | 'sessionStorage';
34
+ /** Custom storage key (default: 'akash-store:{storeId}') */
35
+ key?: string;
36
+ /** Custom serializer (default: JSON.stringify) */
37
+ serialize?: (value: unknown) => string;
38
+ /** Custom deserializer (default: JSON.parse) */
39
+ deserialize?: (value: string) => unknown;
40
+ }
41
+ interface StoreSyncOptions {
42
+ /** Sync transport (WebSocket, local, etc.) */
43
+ transport?: SyncTransport;
44
+ /** Enable sync — uses provided or default transport */
45
+ enabled?: boolean;
46
+ /** Sync room/channel name (default: store ID) */
47
+ room?: string;
48
+ /** Unique peer ID */
49
+ peerId?: string;
50
+ /** Enable presence tracking */
51
+ presence?: boolean;
52
+ /** Only sync these state keys (default: all) */
53
+ pick?: string[];
54
+ }
56
55
  interface StoreDefinition<S, G, A> {
57
56
  state: StateFactory<S>;
58
57
  getters?: Getters<S, G>;
@@ -60,6 +59,10 @@ interface StoreDefinition<S, G, A> {
60
59
  [K in keyof G]: ReadonlySignal<G[K]>;
61
60
  } & A>;
62
61
  plugins?: StorePlugin[];
62
+ /** Auto-persist state to storage. true = persist all to localStorage. */
63
+ persist?: boolean | PersistOptions<S> | PersistOptions<S>[];
64
+ /** Sync state across peers via CRDT. Adds real-time collaboration to any store. */
65
+ sync?: StoreSyncOptions;
63
66
  }
64
67
  interface StorePlugin {
65
68
  init?(store: Store<any, any, any>): void;
@@ -81,4 +84,4 @@ declare function clearStores(): void;
81
84
  /** @internal — exposes store registry for devtools */
82
85
  declare function __getStoreInstances(): Record<string, Store<any, any, any>>;
83
86
 
84
- export { type Store, type StoreDefinition, type StorePlugin, __getStoreInstances, clearStores, configureStores, defineStore };
87
+ export { type PersistOptions, type Store, type StoreDefinition, type StorePlugin, type StoreSyncOptions, __getStoreInstances, clearStores, configureStores, defineStore };
package/dist/store.js CHANGED
@@ -1,2 +1,2 @@
1
- export{d as __getStoreInstances,c as clearStores,a as configureStores,b as defineStore}from'./chunk-IKZMC3T6.js';import'./chunk-POLTPHUA.js';//# sourceMappingURL=store.js.map
1
+ export{d as __getStoreInstances,c as clearStores,a as configureStores,b as defineStore}from'./chunk-VWTULWXF.js';import'./chunk-BB7P6HTR.js';import'./chunk-YXKQTEPR.js';import'./chunk-U65WRXZC.js';//# sourceMappingURL=store.js.map
2
2
  //# sourceMappingURL=store.js.map
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunk7ZPSYZHD_cjs=require('./chunk-7ZPSYZHD.cjs');require('./chunk-XWVNLE2W.cjs'),require('./chunk-IQGSDFBI.cjs'),require('./chunk-PPNEAFKE.cjs'),require('./chunk-WOZWFMOK.cjs'),require('./chunk-XPLIEN2G.cjs');Object.defineProperty(exports,"Suspense",{enumerable:true,get:function(){return chunk7ZPSYZHD_cjs.c}});Object.defineProperty(exports,"getSuspenseContext",{enumerable:true,get:function(){return chunk7ZPSYZHD_cjs.a}});Object.defineProperty(exports,"registerPending",{enumerable:true,get:function(){return chunk7ZPSYZHD_cjs.b}});//# sourceMappingURL=suspense.cjs.map
2
+ //# sourceMappingURL=suspense.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"suspense.cjs"}
@@ -0,0 +1,36 @@
1
+ import { C as Component } from './component-CxlupKuc.cjs';
2
+ import { A as AkashNode } from './types-DjZCk1xT.cjs';
3
+
4
+ interface SuspenseContext {
5
+ /** Register a pending promise */
6
+ addPending(promise: Promise<unknown>): void;
7
+ /** Check if all pending work is resolved */
8
+ isResolved: () => boolean;
9
+ }
10
+ /**
11
+ * Get the current Suspense context (if inside a <Suspense> boundary).
12
+ * Used by async components and createResource to register pending work.
13
+ */
14
+ declare function getSuspenseContext(): SuspenseContext | null;
15
+ /**
16
+ * Register a promise with the nearest Suspense boundary.
17
+ * If there is no Suspense boundary, the promise is ignored
18
+ * (component renders without waiting).
19
+ */
20
+ declare function registerPending(promise: Promise<unknown>): void;
21
+ interface SuspenseProps {
22
+ /** Fallback UI shown while children are loading */
23
+ fallback: () => AkashNode;
24
+ }
25
+ /**
26
+ * <Suspense> component.
27
+ *
28
+ * ```html
29
+ * <Suspense fallback={() => <Spinner />}>
30
+ * <AsyncComponent />
31
+ * </Suspense>
32
+ * ```
33
+ */
34
+ declare const Suspense: Component<SuspenseProps>;
35
+
36
+ export { Suspense, type SuspenseProps, getSuspenseContext, registerPending };
@@ -0,0 +1,36 @@
1
+ import { C as Component } from './component-CPVtkASo.js';
2
+ import { A as AkashNode } from './types-DjZCk1xT.js';
3
+
4
+ interface SuspenseContext {
5
+ /** Register a pending promise */
6
+ addPending(promise: Promise<unknown>): void;
7
+ /** Check if all pending work is resolved */
8
+ isResolved: () => boolean;
9
+ }
10
+ /**
11
+ * Get the current Suspense context (if inside a <Suspense> boundary).
12
+ * Used by async components and createResource to register pending work.
13
+ */
14
+ declare function getSuspenseContext(): SuspenseContext | null;
15
+ /**
16
+ * Register a promise with the nearest Suspense boundary.
17
+ * If there is no Suspense boundary, the promise is ignored
18
+ * (component renders without waiting).
19
+ */
20
+ declare function registerPending(promise: Promise<unknown>): void;
21
+ interface SuspenseProps {
22
+ /** Fallback UI shown while children are loading */
23
+ fallback: () => AkashNode;
24
+ }
25
+ /**
26
+ * <Suspense> component.
27
+ *
28
+ * ```html
29
+ * <Suspense fallback={() => <Spinner />}>
30
+ * <AsyncComponent />
31
+ * </Suspense>
32
+ * ```
33
+ */
34
+ declare const Suspense: Component<SuspenseProps>;
35
+
36
+ export { Suspense, type SuspenseProps, getSuspenseContext, registerPending };
@@ -0,0 +1,2 @@
1
+ export{c as Suspense,a as getSuspenseContext,b as registerPending}from'./chunk-VO4FCKHM.js';import'./chunk-KE7BJTCD.js';import'./chunk-VUMMC2P5.js';import'./chunk-AOFLE33X.js';import'./chunk-YXKQTEPR.js';import'./chunk-U65WRXZC.js';//# sourceMappingURL=suspense.js.map
2
+ //# sourceMappingURL=suspense.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"suspense.js"}
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunkTYTEJYUQ_cjs=require('./chunk-TYTEJYUQ.cjs');require('./chunk-XWVNLE2W.cjs'),require('./chunk-IQGSDFBI.cjs'),require('./chunk-PPNEAFKE.cjs'),require('./chunk-WOZWFMOK.cjs'),require('./chunk-XPLIEN2G.cjs');Object.defineProperty(exports,"Switch",{enumerable:true,get:function(){return chunkTYTEJYUQ_cjs.b}});Object.defineProperty(exports,"match",{enumerable:true,get:function(){return chunkTYTEJYUQ_cjs.c}});Object.defineProperty(exports,"renderSwitch",{enumerable:true,get:function(){return chunkTYTEJYUQ_cjs.a}});//# sourceMappingURL=switch.cjs.map
2
+ //# sourceMappingURL=switch.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"switch.cjs"}
@@ -0,0 +1,48 @@
1
+ import { C as Component } from './component-CxlupKuc.cjs';
2
+ import { A as AkashNode } from './types-DjZCk1xT.cjs';
3
+
4
+ /**
5
+ * Render a switch block. Swaps DOM based on reactive expression value.
6
+ */
7
+ declare function renderSwitch(parent: Node, anchor: Node, expression: () => unknown, cases: Record<string, () => Node>): () => void;
8
+ interface SwitchProps {
9
+ /** The value to switch on */
10
+ on: unknown;
11
+ /** Cases map: value → render function */
12
+ cases: Record<string, () => AkashNode>;
13
+ /** Default case */
14
+ fallback?: () => AkashNode;
15
+ }
16
+ /**
17
+ * <Switch> component — declarative switch/case.
18
+ *
19
+ * ```ts
20
+ * Switch({
21
+ * on: status(),
22
+ * cases: {
23
+ * loading: () => Spinner({}),
24
+ * error: () => ErrorView({}),
25
+ * success: () => Content({}),
26
+ * },
27
+ * fallback: () => 'Unknown status',
28
+ * });
29
+ * ```
30
+ */
31
+ declare const Switch: Component<SwitchProps>;
32
+ /**
33
+ * Pattern match on a signal value. Returns the result of the matching branch.
34
+ *
35
+ * ```ts
36
+ * const message = match(status(), {
37
+ * loading: () => 'Loading...',
38
+ * error: () => 'Something went wrong',
39
+ * success: () => 'Done!',
40
+ * _: () => 'Unknown',
41
+ * });
42
+ * ```
43
+ */
44
+ declare function match<T, R>(value: T, cases: Record<string, (value: T) => R> & {
45
+ _?: (value: T) => R;
46
+ }): R | undefined;
47
+
48
+ export { Switch, type SwitchProps, match, renderSwitch };
@@ -0,0 +1,48 @@
1
+ import { C as Component } from './component-CPVtkASo.js';
2
+ import { A as AkashNode } from './types-DjZCk1xT.js';
3
+
4
+ /**
5
+ * Render a switch block. Swaps DOM based on reactive expression value.
6
+ */
7
+ declare function renderSwitch(parent: Node, anchor: Node, expression: () => unknown, cases: Record<string, () => Node>): () => void;
8
+ interface SwitchProps {
9
+ /** The value to switch on */
10
+ on: unknown;
11
+ /** Cases map: value → render function */
12
+ cases: Record<string, () => AkashNode>;
13
+ /** Default case */
14
+ fallback?: () => AkashNode;
15
+ }
16
+ /**
17
+ * <Switch> component — declarative switch/case.
18
+ *
19
+ * ```ts
20
+ * Switch({
21
+ * on: status(),
22
+ * cases: {
23
+ * loading: () => Spinner({}),
24
+ * error: () => ErrorView({}),
25
+ * success: () => Content({}),
26
+ * },
27
+ * fallback: () => 'Unknown status',
28
+ * });
29
+ * ```
30
+ */
31
+ declare const Switch: Component<SwitchProps>;
32
+ /**
33
+ * Pattern match on a signal value. Returns the result of the matching branch.
34
+ *
35
+ * ```ts
36
+ * const message = match(status(), {
37
+ * loading: () => 'Loading...',
38
+ * error: () => 'Something went wrong',
39
+ * success: () => 'Done!',
40
+ * _: () => 'Unknown',
41
+ * });
42
+ * ```
43
+ */
44
+ declare function match<T, R>(value: T, cases: Record<string, (value: T) => R> & {
45
+ _?: (value: T) => R;
46
+ }): R | undefined;
47
+
48
+ export { Switch, type SwitchProps, match, renderSwitch };
package/dist/switch.js ADDED
@@ -0,0 +1,2 @@
1
+ export{b as Switch,c as match,a as renderSwitch}from'./chunk-YDO5KARN.js';import'./chunk-KE7BJTCD.js';import'./chunk-VUMMC2P5.js';import'./chunk-AOFLE33X.js';import'./chunk-YXKQTEPR.js';import'./chunk-U65WRXZC.js';//# sourceMappingURL=switch.js.map
2
+ //# sourceMappingURL=switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"switch.js"}
package/dist/sync.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkYIB4EKVI_cjs=require('./chunk-YIB4EKVI.cjs');require('./chunk-3AL2DVPZ.cjs');Object.defineProperty(exports,"LWWRegister",{enumerable:true,get:function(){return chunkYIB4EKVI_cjs.a}});Object.defineProperty(exports,"createLocalTransport",{enumerable:true,get:function(){return chunkYIB4EKVI_cjs.c}});Object.defineProperty(exports,"createSync",{enumerable:true,get:function(){return chunkYIB4EKVI_cjs.d}});Object.defineProperty(exports,"createWebSocketTransport",{enumerable:true,get:function(){return chunkYIB4EKVI_cjs.b}});//# sourceMappingURL=sync.cjs.map
1
+ 'use strict';var chunkNEQ5TENE_cjs=require('./chunk-NEQ5TENE.cjs');require('./chunk-WOZWFMOK.cjs'),require('./chunk-XPLIEN2G.cjs');Object.defineProperty(exports,"LWWRegister",{enumerable:true,get:function(){return chunkNEQ5TENE_cjs.a}});Object.defineProperty(exports,"createLocalTransport",{enumerable:true,get:function(){return chunkNEQ5TENE_cjs.c}});Object.defineProperty(exports,"createSync",{enumerable:true,get:function(){return chunkNEQ5TENE_cjs.d}});Object.defineProperty(exports,"createWebSocketTransport",{enumerable:true,get:function(){return chunkNEQ5TENE_cjs.b}});Object.defineProperty(exports,"useCursor",{enumerable:true,get:function(){return chunkNEQ5TENE_cjs.e}});Object.defineProperty(exports,"useTypingIndicator",{enumerable:true,get:function(){return chunkNEQ5TENE_cjs.f}});//# sourceMappingURL=sync.cjs.map
2
2
  //# sourceMappingURL=sync.cjs.map
package/dist/sync.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as Signal, R as ReadonlySignal } from './signals-C7XfOHHR.cjs';
1
+ import { S as Signal, R as ReadonlySignal } from './signals-DionyGGY.cjs';
2
2
 
3
3
  /**
4
4
  * Collaborative signals with CRDT.
@@ -65,8 +65,8 @@ interface SyncTransport {
65
65
  onReceive(handler: (op: SyncOp) => void): () => void;
66
66
  /** Listen for peer presence updates */
67
67
  onPresence?(handler: (peerId: string, data: unknown) => void): () => void;
68
- /** Send presence data */
69
- sendPresence?(data: unknown): void;
68
+ /** Send presence data (peerId passed by createSync internals) */
69
+ sendPresence?(data: unknown, peerId?: string): void;
70
70
  /** Connect to the sync channel */
71
71
  connect(): void;
72
72
  /** Disconnect */
@@ -79,11 +79,23 @@ interface WebSocketTransportOptions {
79
79
  }
80
80
  declare function createWebSocketTransport(options: WebSocketTransportOptions): SyncTransport;
81
81
  declare function createLocalTransport(): SyncTransport;
82
+ interface SyncConflict {
83
+ key: string;
84
+ localValue: unknown;
85
+ remoteValue: unknown;
86
+ localTimestamp: number;
87
+ remoteTimestamp: number;
88
+ remotePeerId: string;
89
+ }
82
90
  interface SyncOptions {
83
91
  /** Transport for sending/receiving operations */
84
92
  transport?: SyncTransport;
85
93
  /** Unique peer ID (default: random) */
86
94
  peerId?: string;
95
+ /** Initial presence data — broadcast on connect */
96
+ presence?: Record<string, unknown>;
97
+ /** Custom conflict resolver. Return the winning value, or undefined to queue for manual resolution. */
98
+ onConflict?: (conflict: SyncConflict) => unknown | undefined;
87
99
  }
88
100
  interface SyncDoc<T extends Record<string, unknown>> {
89
101
  /** Reactive synced state — each key is a Signal */
@@ -96,6 +108,10 @@ interface SyncDoc<T extends Record<string, unknown>> {
96
108
  presence: Signal<Record<string, unknown>>;
97
109
  /** Peer presence map (reactive) */
98
110
  peerPresence: ReadonlySignal<Map<string, unknown>>;
111
+ /** Unresolved conflicts (reactive) */
112
+ conflicts: ReadonlySignal<SyncConflict[]>;
113
+ /** Resolve a conflict by choosing a value for a key */
114
+ resolveConflict: (key: string, value: unknown) => void;
99
115
  /** This peer's ID */
100
116
  peerId: string;
101
117
  /** Whether connected */
@@ -123,6 +139,45 @@ interface PeerInfo {
123
139
  * doc.peers(); // connected users
124
140
  * ```
125
141
  */
126
- declare function createSync<T extends Record<string, unknown>>(roomId: string, initialState: T, options?: SyncOptions): SyncDoc<T>;
142
+ declare function createSync<T extends Record<string, unknown>>(initialState: T, options?: SyncOptions): SyncDoc<T>;
143
+ /**
144
+ * Track cursor position and broadcast via sync presence.
145
+ * Throttles updates to avoid flooding the transport.
146
+ *
147
+ * ```ts
148
+ * const cursor = useCursor(doc, { throttle: 50 });
149
+ * // Automatically tracks mousemove and broadcasts { cursor: { x, y } }
150
+ * // Other peers: doc.peerPresence().get(peerId).cursor
151
+ * ```
152
+ */
153
+ declare function useCursor(doc: SyncDoc<any>, options?: {
154
+ throttle?: number;
155
+ target?: HTMLElement;
156
+ }): {
157
+ x: ReadonlySignal<number>;
158
+ y: ReadonlySignal<number>;
159
+ dispose: () => void;
160
+ };
161
+ /**
162
+ * Typing indicator — broadcasts typing state with auto-timeout.
163
+ *
164
+ * ```ts
165
+ * const typing = useTypingIndicator(doc, { timeout: 2000 });
166
+ * typing.start(); // broadcasts { typing: true }
167
+ * // Auto-stops after 2s of inactivity
168
+ * typing.stop(); // manual stop
169
+ *
170
+ * // Other peers typing:
171
+ * typing.othersTyping(); // string[] of peer IDs currently typing
172
+ * ```
173
+ */
174
+ declare function useTypingIndicator(doc: SyncDoc<any>, options?: {
175
+ timeout?: number;
176
+ }): {
177
+ isTyping: ReadonlySignal<boolean>;
178
+ othersTyping: ReadonlySignal<string[]>;
179
+ start: () => void;
180
+ stop: () => void;
181
+ };
127
182
 
128
- export { type LWWEntry, LWWRegister, type PeerInfo, type SyncDoc, type SyncOp, type SyncOptions, type SyncTransport, type WebSocketTransportOptions, createLocalTransport, createSync, createWebSocketTransport };
183
+ export { type LWWEntry, LWWRegister, type PeerInfo, type SyncConflict, type SyncDoc, type SyncOp, type SyncOptions, type SyncTransport, type WebSocketTransportOptions, createLocalTransport, createSync, createWebSocketTransport, useCursor, useTypingIndicator };
package/dist/sync.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as Signal, R as ReadonlySignal } from './signals-C7XfOHHR.js';
1
+ import { S as Signal, R as ReadonlySignal } from './signals-DionyGGY.js';
2
2
 
3
3
  /**
4
4
  * Collaborative signals with CRDT.
@@ -65,8 +65,8 @@ interface SyncTransport {
65
65
  onReceive(handler: (op: SyncOp) => void): () => void;
66
66
  /** Listen for peer presence updates */
67
67
  onPresence?(handler: (peerId: string, data: unknown) => void): () => void;
68
- /** Send presence data */
69
- sendPresence?(data: unknown): void;
68
+ /** Send presence data (peerId passed by createSync internals) */
69
+ sendPresence?(data: unknown, peerId?: string): void;
70
70
  /** Connect to the sync channel */
71
71
  connect(): void;
72
72
  /** Disconnect */
@@ -79,11 +79,23 @@ interface WebSocketTransportOptions {
79
79
  }
80
80
  declare function createWebSocketTransport(options: WebSocketTransportOptions): SyncTransport;
81
81
  declare function createLocalTransport(): SyncTransport;
82
+ interface SyncConflict {
83
+ key: string;
84
+ localValue: unknown;
85
+ remoteValue: unknown;
86
+ localTimestamp: number;
87
+ remoteTimestamp: number;
88
+ remotePeerId: string;
89
+ }
82
90
  interface SyncOptions {
83
91
  /** Transport for sending/receiving operations */
84
92
  transport?: SyncTransport;
85
93
  /** Unique peer ID (default: random) */
86
94
  peerId?: string;
95
+ /** Initial presence data — broadcast on connect */
96
+ presence?: Record<string, unknown>;
97
+ /** Custom conflict resolver. Return the winning value, or undefined to queue for manual resolution. */
98
+ onConflict?: (conflict: SyncConflict) => unknown | undefined;
87
99
  }
88
100
  interface SyncDoc<T extends Record<string, unknown>> {
89
101
  /** Reactive synced state — each key is a Signal */
@@ -96,6 +108,10 @@ interface SyncDoc<T extends Record<string, unknown>> {
96
108
  presence: Signal<Record<string, unknown>>;
97
109
  /** Peer presence map (reactive) */
98
110
  peerPresence: ReadonlySignal<Map<string, unknown>>;
111
+ /** Unresolved conflicts (reactive) */
112
+ conflicts: ReadonlySignal<SyncConflict[]>;
113
+ /** Resolve a conflict by choosing a value for a key */
114
+ resolveConflict: (key: string, value: unknown) => void;
99
115
  /** This peer's ID */
100
116
  peerId: string;
101
117
  /** Whether connected */
@@ -123,6 +139,45 @@ interface PeerInfo {
123
139
  * doc.peers(); // connected users
124
140
  * ```
125
141
  */
126
- declare function createSync<T extends Record<string, unknown>>(roomId: string, initialState: T, options?: SyncOptions): SyncDoc<T>;
142
+ declare function createSync<T extends Record<string, unknown>>(initialState: T, options?: SyncOptions): SyncDoc<T>;
143
+ /**
144
+ * Track cursor position and broadcast via sync presence.
145
+ * Throttles updates to avoid flooding the transport.
146
+ *
147
+ * ```ts
148
+ * const cursor = useCursor(doc, { throttle: 50 });
149
+ * // Automatically tracks mousemove and broadcasts { cursor: { x, y } }
150
+ * // Other peers: doc.peerPresence().get(peerId).cursor
151
+ * ```
152
+ */
153
+ declare function useCursor(doc: SyncDoc<any>, options?: {
154
+ throttle?: number;
155
+ target?: HTMLElement;
156
+ }): {
157
+ x: ReadonlySignal<number>;
158
+ y: ReadonlySignal<number>;
159
+ dispose: () => void;
160
+ };
161
+ /**
162
+ * Typing indicator — broadcasts typing state with auto-timeout.
163
+ *
164
+ * ```ts
165
+ * const typing = useTypingIndicator(doc, { timeout: 2000 });
166
+ * typing.start(); // broadcasts { typing: true }
167
+ * // Auto-stops after 2s of inactivity
168
+ * typing.stop(); // manual stop
169
+ *
170
+ * // Other peers typing:
171
+ * typing.othersTyping(); // string[] of peer IDs currently typing
172
+ * ```
173
+ */
174
+ declare function useTypingIndicator(doc: SyncDoc<any>, options?: {
175
+ timeout?: number;
176
+ }): {
177
+ isTyping: ReadonlySignal<boolean>;
178
+ othersTyping: ReadonlySignal<string[]>;
179
+ start: () => void;
180
+ stop: () => void;
181
+ };
127
182
 
128
- export { type LWWEntry, LWWRegister, type PeerInfo, type SyncDoc, type SyncOp, type SyncOptions, type SyncTransport, type WebSocketTransportOptions, createLocalTransport, createSync, createWebSocketTransport };
183
+ export { type LWWEntry, LWWRegister, type PeerInfo, type SyncConflict, type SyncDoc, type SyncOp, type SyncOptions, type SyncTransport, type WebSocketTransportOptions, createLocalTransport, createSync, createWebSocketTransport, useCursor, useTypingIndicator };
package/dist/sync.js CHANGED
@@ -1,2 +1,2 @@
1
- export{a as LWWRegister,c as createLocalTransport,d as createSync,b as createWebSocketTransport}from'./chunk-ODDXU5DO.js';import'./chunk-POLTPHUA.js';//# sourceMappingURL=sync.js.map
1
+ export{a as LWWRegister,c as createLocalTransport,d as createSync,b as createWebSocketTransport,e as useCursor,f as useTypingIndicator}from'./chunk-BB7P6HTR.js';import'./chunk-YXKQTEPR.js';import'./chunk-U65WRXZC.js';//# sourceMappingURL=sync.js.map
2
2
  //# sourceMappingURL=sync.js.map