@graphrefly/graphrefly 0.26.0 → 0.28.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 (396) hide show
  1. package/dist/backoff-HPZMEZNF.js +1 -0
  2. package/dist/cascading-B-5zmAUv.d.cts +180 -0
  3. package/dist/cascading-D9WG1-9L.d.ts +180 -0
  4. package/dist/chunk-2FOAM3OR.js +1 -0
  5. package/dist/chunk-2PMCKKRK.js +1 -0
  6. package/dist/chunk-3JXNEPCD.js +2 -0
  7. package/dist/chunk-3R5HFPX7.js +78 -0
  8. package/dist/chunk-4GKB4OUJ.js +1 -0
  9. package/dist/chunk-4VVTGLXJ.js +1 -0
  10. package/dist/chunk-5QDBSZBV.js +1 -0
  11. package/dist/chunk-6QZNQS5B.js +1 -0
  12. package/dist/chunk-6V3SEX2I.js +1 -0
  13. package/dist/chunk-76A3HVQE.js +9 -0
  14. package/dist/chunk-7H6LGFUG.js +64 -0
  15. package/dist/chunk-CK2E7BTU.js +1 -0
  16. package/dist/chunk-CKCSDI7T.js +6 -0
  17. package/dist/chunk-CRXTH3SH.js +1 -0
  18. package/dist/chunk-CWLN3X3N.js +1 -0
  19. package/dist/chunk-D7A7DBE4.js +1 -0
  20. package/dist/chunk-DBGGMN3D.js +1 -0
  21. package/dist/chunk-DQA3UIQ2.js +1 -0
  22. package/dist/chunk-ERLIRFPA.js +1 -0
  23. package/dist/chunk-ESMPEKEV.js +1 -0
  24. package/dist/chunk-ETWTCCJI.js +1 -0
  25. package/dist/chunk-FNYWM6JC.js +1 -0
  26. package/dist/chunk-GHJJR5P4.js +1 -0
  27. package/dist/chunk-GPW2V3RE.js +1 -0
  28. package/dist/chunk-I6VIH3VA.js +1 -0
  29. package/dist/chunk-K2GNMCQT.js +1 -0
  30. package/dist/chunk-LBTDSCCO.js +3 -0
  31. package/dist/chunk-LQ3Y5NJS.js +1 -0
  32. package/dist/chunk-MIQTDPY4.js +5 -0
  33. package/dist/chunk-MTTAAPCK.js +1 -0
  34. package/dist/chunk-OAWLCNJJ.js +1 -0
  35. package/dist/chunk-OBKQQA5I.js +1 -0
  36. package/dist/chunk-OYHGKYQM.js +1 -0
  37. package/dist/chunk-PIOGHC63.js +1 -0
  38. package/dist/chunk-QWAPKG3O.js +2 -0
  39. package/dist/chunk-QYADASLV.js +1 -0
  40. package/dist/chunk-RHESUC3V.js +43 -0
  41. package/dist/chunk-S35VARIR.js +1 -0
  42. package/dist/chunk-SC3U7ETD.js +1 -0
  43. package/dist/chunk-U3AICJKU.js +1 -0
  44. package/dist/chunk-UMBIDLJ4.js +1 -0
  45. package/dist/chunk-UPHHLMHE.js +1 -0
  46. package/dist/chunk-UPXUCFMX.js +1 -0
  47. package/dist/chunk-UWJE5FQA.js +18 -0
  48. package/dist/chunk-V6YQICXZ.js +1 -0
  49. package/dist/chunk-VIMF6LGM.js +1 -0
  50. package/dist/chunk-VJLMUKOI.js +1 -0
  51. package/dist/chunk-VPYBOXVT.js +1 -0
  52. package/dist/chunk-VTPVOGHH.js +1 -0
  53. package/dist/chunk-WQ2BN6X6.js +1 -0
  54. package/dist/chunk-XAUNPIMX.js +1 -0
  55. package/dist/chunk-Y2EMPB3I.js +1 -0
  56. package/dist/chunk-Z4HDAS2Q.js +1 -0
  57. package/dist/chunk-ZB5EHBIO.js +1 -0
  58. package/dist/chunk-ZV2DXV5A.js +23 -0
  59. package/dist/compat/index.cjs +14 -7656
  60. package/dist/compat/index.d.cts +15 -14
  61. package/dist/compat/index.d.ts +15 -14
  62. package/dist/compat/index.js +1 -49
  63. package/dist/compat/jotai/index.cjs +1 -2048
  64. package/dist/compat/jotai/index.d.cts +2 -2
  65. package/dist/compat/jotai/index.d.ts +2 -2
  66. package/dist/compat/jotai/index.js +1 -9
  67. package/dist/compat/nanostores/index.cjs +1 -2175
  68. package/dist/compat/nanostores/index.d.cts +2 -2
  69. package/dist/compat/nanostores/index.d.ts +2 -2
  70. package/dist/compat/nanostores/index.js +1 -23
  71. package/dist/compat/nestjs/index.cjs +14 -6782
  72. package/dist/compat/nestjs/index.d.cts +7 -6
  73. package/dist/compat/nestjs/index.d.ts +7 -6
  74. package/dist/compat/nestjs/index.js +1 -82
  75. package/dist/compat/react/index.cjs +1 -141
  76. package/dist/compat/react/index.d.cts +2 -2
  77. package/dist/compat/react/index.d.ts +2 -2
  78. package/dist/compat/react/index.js +1 -12
  79. package/dist/compat/solid/index.cjs +1 -128
  80. package/dist/compat/solid/index.d.cts +2 -2
  81. package/dist/compat/solid/index.d.ts +2 -2
  82. package/dist/compat/solid/index.js +1 -12
  83. package/dist/compat/svelte/index.cjs +1 -131
  84. package/dist/compat/svelte/index.d.cts +2 -2
  85. package/dist/compat/svelte/index.d.ts +2 -2
  86. package/dist/compat/svelte/index.js +1 -12
  87. package/dist/compat/vue/index.cjs +1 -146
  88. package/dist/compat/vue/index.d.cts +2 -2
  89. package/dist/compat/vue/index.d.ts +2 -2
  90. package/dist/compat/vue/index.js +1 -12
  91. package/dist/compat/zustand/index.cjs +6 -4931
  92. package/dist/compat/zustand/index.d.cts +5 -5
  93. package/dist/compat/zustand/index.d.ts +5 -5
  94. package/dist/compat/zustand/index.js +1 -12
  95. package/dist/composite-B-xqw4Kk.d.cts +69 -0
  96. package/dist/composite-BhbKHbOS.d.ts +69 -0
  97. package/dist/core/index.cjs +1 -2271
  98. package/dist/core/index.d.cts +4 -3
  99. package/dist/core/index.d.ts +4 -3
  100. package/dist/core/index.js +1 -110
  101. package/dist/extra/browser.cjs +1 -0
  102. package/dist/extra/browser.d.cts +3 -0
  103. package/dist/extra/browser.d.ts +3 -0
  104. package/dist/extra/browser.js +1 -0
  105. package/dist/extra/index.cjs +23 -9971
  106. package/dist/extra/index.d.cts +13 -5
  107. package/dist/extra/index.d.ts +13 -5
  108. package/dist/extra/index.js +1 -375
  109. package/dist/extra/node.cjs +3 -0
  110. package/dist/extra/node.d.cts +81 -0
  111. package/dist/extra/node.d.ts +81 -0
  112. package/dist/extra/node.js +2 -0
  113. package/dist/extra/operators.cjs +1 -0
  114. package/dist/extra/operators.d.cts +910 -0
  115. package/dist/extra/operators.d.ts +910 -0
  116. package/dist/extra/operators.js +1 -0
  117. package/dist/extra/reactive.cjs +1 -0
  118. package/dist/extra/reactive.d.cts +352 -0
  119. package/dist/extra/reactive.d.ts +352 -0
  120. package/dist/extra/reactive.js +1 -0
  121. package/dist/extra/sources.cjs +1 -2486
  122. package/dist/extra/sources.d.cts +6 -2
  123. package/dist/extra/sources.d.ts +6 -2
  124. package/dist/extra/sources.js +1 -57
  125. package/dist/extra/storage-browser.cjs +1 -0
  126. package/dist/extra/storage-browser.d.cts +71 -0
  127. package/dist/extra/storage-browser.d.ts +71 -0
  128. package/dist/extra/storage-browser.js +1 -0
  129. package/dist/extra/storage-core.cjs +1 -0
  130. package/dist/extra/storage-core.d.cts +98 -0
  131. package/dist/extra/storage-core.d.ts +98 -0
  132. package/dist/extra/storage-core.js +1 -0
  133. package/dist/extra/storage-node.cjs +2 -0
  134. package/dist/extra/storage-node.d.cts +60 -0
  135. package/dist/extra/storage-node.d.ts +60 -0
  136. package/dist/extra/storage-node.js +1 -0
  137. package/dist/fallback-BaTS7vVY.d.cts +258 -0
  138. package/dist/fallback-eOm3LNxP.d.ts +258 -0
  139. package/dist/graph/index.cjs +6 -5030
  140. package/dist/graph/index.d.cts +6 -5
  141. package/dist/graph/index.d.ts +6 -5
  142. package/dist/graph/index.js +1 -50
  143. package/dist/{graph-6tZ5jEzr.d.cts → graph-BZGRXwOm.d.ts} +134 -31
  144. package/dist/{graph-DQ69XU0g.d.ts → graph-D48Qw9Cg.d.cts} +134 -31
  145. package/dist/index-8FSVk4Uf.d.ts +135 -0
  146. package/dist/index-9oDeHH2u.d.cts +291 -0
  147. package/dist/index-B0c4cmIO.d.ts +207 -0
  148. package/dist/{index-CDAjUFIv.d.ts → index-B1AmmSlb.d.ts} +1 -1
  149. package/dist/{index-Bd_fwmLf.d.cts → index-B2pwesl9.d.cts} +1 -1
  150. package/dist/index-BHvIquRZ.d.ts +1957 -0
  151. package/dist/{index-CPgZ5wRl.d.ts → index-BVHOrDwO.d.ts} +1 -1
  152. package/dist/{index-DrISNAOm.d.ts → index-BWJV63ti.d.ts} +1 -1
  153. package/dist/{index-B_IP40nB.d.cts → index-B_agccPe.d.cts} +1 -1
  154. package/dist/index-BgyGlizc.d.ts +163 -0
  155. package/dist/index-BpA5c4G9.d.ts +357 -0
  156. package/dist/index-BpIFjILY.d.cts +357 -0
  157. package/dist/{index-qldRdbQw.d.ts → index-Bqachn9_.d.ts} +1 -1
  158. package/dist/index-Btib9rsU.d.ts +607 -0
  159. package/dist/{index-BYOHF0zP.d.ts → index-BwM9BEkt.d.ts} +1 -1
  160. package/dist/index-BxJ86YZZ.d.cts +105 -0
  161. package/dist/index-C73n7lo-.d.cts +251 -0
  162. package/dist/index-CEXXwWVH.d.cts +192 -0
  163. package/dist/index-CHEswufn.d.cts +163 -0
  164. package/dist/{index-xdGjv0nO.d.ts → index-CMn8S8Hw.d.ts} +1 -1
  165. package/dist/{index-QBpffFW-.d.cts → index-CRO83MmV.d.cts} +1 -1
  166. package/dist/{index-BjI6ty9z.d.ts → index-CloUk1kY.d.ts} +9 -9
  167. package/dist/index-CpgYhnrG.d.ts +291 -0
  168. package/dist/{index-CUyrtuOf.d.cts → index-Cyojz0AE.d.cts} +1 -1
  169. package/dist/{demo-shell-DEp-nMTl.d.ts → index-CzobVSMr.d.ts} +14 -14
  170. package/dist/index-Czq6ynh8.d.ts +143 -0
  171. package/dist/index-D-YB-Vl3.d.ts +195 -0
  172. package/dist/index-DAlweici.d.ts +231 -0
  173. package/dist/index-DEwTb_fm.d.cts +1957 -0
  174. package/dist/{index-DFhjO4Gg.d.cts → index-DL-rYJrx.d.cts} +1 -1
  175. package/dist/index-DP4ZTkdw.d.ts +139 -0
  176. package/dist/{index-BeIdBfcb.d.cts → index-DUqMOlKZ.d.cts} +200 -2366
  177. package/dist/{index-Bxb5ZYc9.d.cts → index-D_NwnRYS.d.cts} +1 -1
  178. package/dist/index-DaLJvH8Z.d.ts +105 -0
  179. package/dist/index-DcXZBF5a.d.cts +135 -0
  180. package/dist/index-DfyOkTvs.d.ts +321 -0
  181. package/dist/{index-CmnuOibw.d.ts → index-DiOXyAwt.d.ts} +1 -1
  182. package/dist/index-DpHe5e0Q.d.ts +186 -0
  183. package/dist/index-DraikLjn.d.ts +86 -0
  184. package/dist/{index-BEfE8H_G.d.cts → index-DxsnAMWD.d.cts} +9 -9
  185. package/dist/index-DyxjtScX.d.cts +207 -0
  186. package/dist/index-HDpJe9hX.d.ts +251 -0
  187. package/dist/index-O6TgGUBV.d.cts +195 -0
  188. package/dist/{index-B4MP_8V_.d.cts → index-Oi8d8w4R.d.cts} +1 -1
  189. package/dist/{index-BW1z3BN9.d.ts → index-ROpQmGjE.d.ts} +30 -6
  190. package/dist/index-RukJ4DLS.d.cts +607 -0
  191. package/dist/{index-DdD5MVDL.d.ts → index-ZftwfxJM.d.ts} +200 -2366
  192. package/dist/{index-CuYwdKO-.d.ts → index-cByzxQIC.d.cts} +10 -195
  193. package/dist/index-dtN7YA2x.d.cts +143 -0
  194. package/dist/{index-C8mdwMXc.d.cts → index-fM6y00vT.d.cts} +30 -6
  195. package/dist/{index-_oMEWlDq.d.cts → index-m-yHof5p.d.ts} +10 -195
  196. package/dist/index-pXrDMpRO.d.cts +231 -0
  197. package/dist/index-rHJSKsU8.d.cts +186 -0
  198. package/dist/index-rX8HBM5h.d.cts +321 -0
  199. package/dist/{index-CUwyr1Kk.d.cts → index-rnwQly8X.d.cts} +147 -20
  200. package/dist/index-sm373fsH.d.ts +192 -0
  201. package/dist/index-tbf2gKHd.d.cts +139 -0
  202. package/dist/{demo-shell-26p5fVxn.d.cts → index-u15meRxL.d.cts} +14 -14
  203. package/dist/{index-eJ6T_qGM.d.ts → index-umtoWT8K.d.ts} +147 -20
  204. package/dist/index-vscRDkjW.d.cts +86 -0
  205. package/dist/index.cjs +150 -24142
  206. package/dist/index.d.cts +69 -3756
  207. package/dist/index.d.ts +69 -3756
  208. package/dist/index.js +1 -7292
  209. package/dist/{meta-C0-8XW6Q.d.cts → meta-Cgj6zeji.d.cts} +5 -5
  210. package/dist/{meta-BGqSZ7mt.d.ts → meta-CwesDrMD.d.ts} +5 -5
  211. package/dist/{node-C_IBuvX2.d.cts → node-Cc1TniY8.d.cts} +36 -9
  212. package/dist/{node-C_IBuvX2.d.ts → node-Cc1TniY8.d.ts} +36 -9
  213. package/dist/{observable-DCk45RH5.d.ts → observable-Ct-gJ9jI.d.ts} +1 -1
  214. package/dist/{observable-Crr1jgzx.d.cts → observable-glXQoGj2.d.cts} +1 -1
  215. package/dist/patterns/ai/browser.cjs +25 -0
  216. package/dist/patterns/ai/browser.d.cts +127 -0
  217. package/dist/patterns/ai/browser.d.ts +127 -0
  218. package/dist/patterns/ai/browser.js +3 -0
  219. package/dist/patterns/ai/index.cjs +91 -0
  220. package/dist/patterns/ai/index.d.cts +17 -0
  221. package/dist/patterns/ai/index.d.ts +17 -0
  222. package/dist/patterns/ai/index.js +1 -0
  223. package/dist/patterns/ai/node.cjs +2 -0
  224. package/dist/patterns/ai/node.d.cts +58 -0
  225. package/dist/patterns/ai/node.d.ts +58 -0
  226. package/dist/patterns/ai/node.js +1 -0
  227. package/dist/patterns/audit/index.cjs +6 -0
  228. package/dist/patterns/audit/index.d.cts +6 -0
  229. package/dist/patterns/audit/index.d.ts +6 -0
  230. package/dist/patterns/audit/index.js +1 -0
  231. package/dist/patterns/cqrs/index.cjs +6 -0
  232. package/dist/patterns/cqrs/index.d.cts +5 -0
  233. package/dist/patterns/cqrs/index.d.ts +5 -0
  234. package/dist/patterns/cqrs/index.js +1 -0
  235. package/dist/patterns/demo-shell/index.cjs +7 -0
  236. package/dist/patterns/demo-shell/index.d.cts +6 -0
  237. package/dist/patterns/demo-shell/index.d.ts +6 -0
  238. package/dist/patterns/demo-shell/index.js +1 -0
  239. package/dist/patterns/domain-templates/index.cjs +6 -0
  240. package/dist/patterns/domain-templates/index.d.cts +5 -0
  241. package/dist/patterns/domain-templates/index.d.ts +5 -0
  242. package/dist/patterns/domain-templates/index.js +1 -0
  243. package/dist/patterns/graphspec/index.cjs +83 -0
  244. package/dist/patterns/graphspec/index.d.cts +7 -0
  245. package/dist/patterns/graphspec/index.d.ts +7 -0
  246. package/dist/patterns/graphspec/index.js +1 -0
  247. package/dist/patterns/guarded-execution/index.cjs +6 -0
  248. package/dist/patterns/guarded-execution/index.d.cts +7 -0
  249. package/dist/patterns/guarded-execution/index.d.ts +7 -0
  250. package/dist/patterns/guarded-execution/index.js +1 -0
  251. package/dist/patterns/harness/index.cjs +48 -0
  252. package/dist/patterns/harness/index.d.cts +8 -0
  253. package/dist/patterns/harness/index.d.ts +8 -0
  254. package/dist/patterns/harness/index.js +1 -0
  255. package/dist/patterns/job-queue/index.cjs +6 -0
  256. package/dist/patterns/job-queue/index.d.cts +5 -0
  257. package/dist/patterns/job-queue/index.d.ts +5 -0
  258. package/dist/patterns/job-queue/index.js +1 -0
  259. package/dist/patterns/lens/index.cjs +6 -0
  260. package/dist/patterns/lens/index.d.cts +7 -0
  261. package/dist/patterns/lens/index.d.ts +7 -0
  262. package/dist/patterns/lens/index.js +1 -0
  263. package/dist/patterns/memory/index.cjs +6 -0
  264. package/dist/patterns/memory/index.d.cts +5 -0
  265. package/dist/patterns/memory/index.d.ts +5 -0
  266. package/dist/patterns/memory/index.js +1 -0
  267. package/dist/patterns/messaging/index.cjs +6 -0
  268. package/dist/patterns/messaging/index.d.cts +5 -0
  269. package/dist/patterns/messaging/index.d.ts +5 -0
  270. package/dist/patterns/messaging/index.js +1 -0
  271. package/dist/patterns/orchestration/index.cjs +6 -0
  272. package/dist/patterns/orchestration/index.d.cts +6 -0
  273. package/dist/patterns/orchestration/index.d.ts +6 -0
  274. package/dist/patterns/orchestration/index.js +1 -0
  275. package/dist/patterns/reactive-layout/index.cjs +7 -6444
  276. package/dist/patterns/reactive-layout/index.d.cts +6 -6
  277. package/dist/patterns/reactive-layout/index.d.ts +6 -6
  278. package/dist/patterns/reactive-layout/index.js +1 -56
  279. package/dist/patterns/reduction/index.cjs +6 -0
  280. package/dist/patterns/reduction/index.d.cts +5 -0
  281. package/dist/patterns/reduction/index.d.ts +5 -0
  282. package/dist/patterns/reduction/index.js +1 -0
  283. package/dist/patterns/refine-loop/index.cjs +8 -0
  284. package/dist/patterns/refine-loop/index.d.cts +7 -0
  285. package/dist/patterns/refine-loop/index.d.ts +7 -0
  286. package/dist/patterns/refine-loop/index.js +1 -0
  287. package/dist/patterns/resilient-pipeline/index.cjs +1 -0
  288. package/dist/patterns/resilient-pipeline/index.d.cts +7 -0
  289. package/dist/patterns/resilient-pipeline/index.d.ts +7 -0
  290. package/dist/patterns/resilient-pipeline/index.js +1 -0
  291. package/dist/patterns/surface/index.cjs +14 -0
  292. package/dist/patterns/surface/index.d.cts +8 -0
  293. package/dist/patterns/surface/index.d.ts +8 -0
  294. package/dist/patterns/surface/index.js +1 -0
  295. package/dist/{reactive-layout-BaOQefHu.d.cts → reactive-layout-CpYb5qLP.d.cts} +2 -2
  296. package/dist/{reactive-layout-D9gejYXE.d.ts → reactive-layout-D8u4wuUR.d.ts} +2 -2
  297. package/dist/reactive-log-DPzuUDj5.d.cts +190 -0
  298. package/dist/reactive-log-YuH9VYN8.d.ts +190 -0
  299. package/dist/reactive-map-CdbNoSgP.d.ts +238 -0
  300. package/dist/reactive-map-DUeRmb9d.d.cts +238 -0
  301. package/dist/resilience-Ba5-b4WD.d.cts +493 -0
  302. package/dist/resilience-CGRzhnD3.d.ts +493 -0
  303. package/dist/resilience-QAHKANT5.js +1 -0
  304. package/dist/sugar-BV0htudb.d.cts +205 -0
  305. package/dist/sugar-Dtyrq2_q.d.ts +205 -0
  306. package/dist/topology-tree-CYHOwQZ_.d.ts +25 -0
  307. package/dist/topology-tree-DROUdq5B.d.cts +25 -0
  308. package/dist/types-O3GzJY2U.d.cts +401 -0
  309. package/dist/types-u64Ose53.d.ts +401 -0
  310. package/package.json +267 -7
  311. package/dist/chunk-3ZWCKRHX.js +0 -117
  312. package/dist/chunk-3ZWCKRHX.js.map +0 -1
  313. package/dist/chunk-6LDQFTYS.js +0 -102
  314. package/dist/chunk-6LDQFTYS.js.map +0 -1
  315. package/dist/chunk-7TAQJHQV.js +0 -103
  316. package/dist/chunk-7TAQJHQV.js.map +0 -1
  317. package/dist/chunk-AMCG74RZ.js +0 -7000
  318. package/dist/chunk-AMCG74RZ.js.map +0 -1
  319. package/dist/chunk-BVZYTZ5H.js +0 -599
  320. package/dist/chunk-BVZYTZ5H.js.map +0 -1
  321. package/dist/chunk-FQMKGR6L.js +0 -330
  322. package/dist/chunk-FQMKGR6L.js.map +0 -1
  323. package/dist/chunk-HXZEYDUR.js +0 -94
  324. package/dist/chunk-HXZEYDUR.js.map +0 -1
  325. package/dist/chunk-IZYUSJC7.js +0 -1369
  326. package/dist/chunk-IZYUSJC7.js.map +0 -1
  327. package/dist/chunk-J22W6HV3.js +0 -107
  328. package/dist/chunk-J22W6HV3.js.map +0 -1
  329. package/dist/chunk-JSCT3CR4.js +0 -38
  330. package/dist/chunk-JSCT3CR4.js.map +0 -1
  331. package/dist/chunk-JYXEWPH4.js +0 -62
  332. package/dist/chunk-JYXEWPH4.js.map +0 -1
  333. package/dist/chunk-LCE3GF5P.js +0 -866
  334. package/dist/chunk-LCE3GF5P.js.map +0 -1
  335. package/dist/chunk-MJ2NKQQL.js +0 -119
  336. package/dist/chunk-MJ2NKQQL.js.map +0 -1
  337. package/dist/chunk-N6UR7YVY.js +0 -198
  338. package/dist/chunk-N6UR7YVY.js.map +0 -1
  339. package/dist/chunk-OHISZPOJ.js +0 -97
  340. package/dist/chunk-OHISZPOJ.js.map +0 -1
  341. package/dist/chunk-PHOUUNK7.js +0 -2291
  342. package/dist/chunk-PHOUUNK7.js.map +0 -1
  343. package/dist/chunk-RB6QPHJ7.js +0 -393
  344. package/dist/chunk-RB6QPHJ7.js.map +0 -1
  345. package/dist/chunk-SN4YWWYO.js +0 -171
  346. package/dist/chunk-SN4YWWYO.js.map +0 -1
  347. package/dist/chunk-SX52TAR4.js +0 -110
  348. package/dist/chunk-SX52TAR4.js.map +0 -1
  349. package/dist/chunk-THTWHNU4.js +0 -2712
  350. package/dist/chunk-THTWHNU4.js.map +0 -1
  351. package/dist/chunk-VYPWMZ6H.js +0 -98
  352. package/dist/chunk-VYPWMZ6H.js.map +0 -1
  353. package/dist/chunk-XGPU467M.js +0 -136
  354. package/dist/chunk-XGPU467M.js.map +0 -1
  355. package/dist/chunk-ZQMEI34O.js +0 -713
  356. package/dist/chunk-ZQMEI34O.js.map +0 -1
  357. package/dist/compat/index.cjs.map +0 -1
  358. package/dist/compat/index.js.map +0 -1
  359. package/dist/compat/jotai/index.cjs.map +0 -1
  360. package/dist/compat/jotai/index.js.map +0 -1
  361. package/dist/compat/nanostores/index.cjs.map +0 -1
  362. package/dist/compat/nanostores/index.js.map +0 -1
  363. package/dist/compat/nestjs/index.cjs.map +0 -1
  364. package/dist/compat/nestjs/index.js.map +0 -1
  365. package/dist/compat/react/index.cjs.map +0 -1
  366. package/dist/compat/react/index.js.map +0 -1
  367. package/dist/compat/solid/index.cjs.map +0 -1
  368. package/dist/compat/solid/index.js.map +0 -1
  369. package/dist/compat/svelte/index.cjs.map +0 -1
  370. package/dist/compat/svelte/index.js.map +0 -1
  371. package/dist/compat/vue/index.cjs.map +0 -1
  372. package/dist/compat/vue/index.js.map +0 -1
  373. package/dist/compat/zustand/index.cjs.map +0 -1
  374. package/dist/compat/zustand/index.js.map +0 -1
  375. package/dist/core/index.cjs.map +0 -1
  376. package/dist/core/index.js.map +0 -1
  377. package/dist/extra/index.cjs.map +0 -1
  378. package/dist/extra/index.js.map +0 -1
  379. package/dist/extra/sources.cjs.map +0 -1
  380. package/dist/extra/sources.js.map +0 -1
  381. package/dist/graph/index.cjs.map +0 -1
  382. package/dist/graph/index.js.map +0 -1
  383. package/dist/index-C0ZXMaXO.d.cts +0 -392
  384. package/dist/index-CY2TljO4.d.ts +0 -392
  385. package/dist/index.cjs.map +0 -1
  386. package/dist/index.js.map +0 -1
  387. package/dist/patterns/demo-shell.cjs +0 -5604
  388. package/dist/patterns/demo-shell.cjs.map +0 -1
  389. package/dist/patterns/demo-shell.d.cts +0 -6
  390. package/dist/patterns/demo-shell.d.ts +0 -6
  391. package/dist/patterns/demo-shell.js +0 -15
  392. package/dist/patterns/demo-shell.js.map +0 -1
  393. package/dist/patterns/reactive-layout/index.cjs.map +0 -1
  394. package/dist/patterns/reactive-layout/index.js.map +0 -1
  395. package/dist/storage-BMycWEh2.d.ts +0 -190
  396. package/dist/storage-DiqWHzVI.d.cts +0 -190
@@ -1,599 +0,0 @@
1
- import {
2
- node,
3
- producer,
4
- state,
5
- wallClockNs
6
- } from "./chunk-PHOUUNK7.js";
7
- import {
8
- COMPLETE,
9
- DATA,
10
- DIRTY,
11
- ERROR,
12
- RESOLVED
13
- } from "./chunk-SX52TAR4.js";
14
-
15
- // src/extra/cron.ts
16
- function parseField(field, min, max) {
17
- const result = /* @__PURE__ */ new Set();
18
- for (const part of field.split(",")) {
19
- const [range, stepStr] = part.split("/");
20
- const step = stepStr ? Number.parseInt(stepStr, 10) : 1;
21
- if (Number.isNaN(step) || step < 1) throw new Error(`Invalid cron step: ${part}`);
22
- let start;
23
- let end;
24
- if (range === "*") {
25
- start = min;
26
- end = max;
27
- } else if (range.includes("-")) {
28
- const [a, b] = range.split("-");
29
- start = Number.parseInt(a, 10);
30
- end = Number.parseInt(b, 10);
31
- } else {
32
- start = Number.parseInt(range, 10);
33
- end = start;
34
- }
35
- if (Number.isNaN(start) || Number.isNaN(end)) throw new Error(`Invalid cron field: ${field}`);
36
- if (start < min || end > max)
37
- throw new Error(`Cron field out of range: ${field} (${min}-${max})`);
38
- if (start > end) throw new Error(`Invalid cron range: ${start}-${end} in ${field}`);
39
- for (let i = start; i <= end; i += step) result.add(i);
40
- }
41
- return result;
42
- }
43
- function parseCron(expr) {
44
- const parts = expr.trim().split(/\s+/);
45
- if (parts.length !== 5) throw new Error(`Invalid cron: expected 5 fields, got ${parts.length}`);
46
- return {
47
- minutes: parseField(parts[0], 0, 59),
48
- hours: parseField(parts[1], 0, 23),
49
- daysOfMonth: parseField(parts[2], 1, 31),
50
- months: parseField(parts[3], 1, 12),
51
- daysOfWeek: parseField(parts[4], 0, 6)
52
- };
53
- }
54
- function matchesCron(schedule, date) {
55
- return schedule.minutes.has(date.getMinutes()) && schedule.hours.has(date.getHours()) && schedule.daysOfMonth.has(date.getDate()) && schedule.months.has(date.getMonth() + 1) && schedule.daysOfWeek.has(date.getDay());
56
- }
57
-
58
- // src/extra/sources.ts
59
- function sourceOpts(opts) {
60
- return { describeKind: "producer", ...opts };
61
- }
62
- function escapeRegexChar(ch) {
63
- return /[\\^$+?.()|[\]{}]/.test(ch) ? `\\${ch}` : ch;
64
- }
65
- function globToRegExp(glob) {
66
- let out = "^";
67
- for (let i = 0; i < glob.length; i += 1) {
68
- const ch = glob[i];
69
- if (ch === "*") {
70
- const next = glob[i + 1];
71
- if (next === "*") {
72
- out += ".*";
73
- i += 1;
74
- } else {
75
- out += "[^/]*";
76
- }
77
- continue;
78
- }
79
- out += escapeRegexChar(ch);
80
- }
81
- out += "$";
82
- return new RegExp(out);
83
- }
84
- function matchesAnyPattern(path, patterns) {
85
- for (const pattern of patterns) {
86
- if (pattern.test(path)) return true;
87
- }
88
- return false;
89
- }
90
- function wrapSubscribeHook(inner, before) {
91
- const wrapper = node(
92
- [inner],
93
- (data, a) => {
94
- const batch0 = data[0];
95
- if (batch0 == null || batch0.length === 0) {
96
- a.down([[RESOLVED]]);
97
- return;
98
- }
99
- for (const v of batch0) a.emit(v);
100
- },
101
- { describeKind: "derived", initial: inner.cache }
102
- );
103
- const origSubscribe = wrapper.subscribe.bind(wrapper);
104
- wrapper.subscribe = (sink, actor) => {
105
- before(sink);
106
- return origSubscribe(sink, actor);
107
- };
108
- return wrapper;
109
- }
110
- function fromTimer(ms, opts) {
111
- const { signal, period, ...rest } = opts ?? {};
112
- return producer((a) => {
113
- let done = false;
114
- let count = 0;
115
- let t;
116
- let iv;
117
- const cleanup = () => {
118
- done = true;
119
- if (t !== void 0) clearTimeout(t);
120
- if (iv !== void 0) clearInterval(iv);
121
- signal?.removeEventListener("abort", onAbort);
122
- };
123
- const finish = () => {
124
- if (done) return;
125
- if (period != null) {
126
- a.emit(count++);
127
- iv = setInterval(() => {
128
- if (done) return;
129
- a.emit(count++);
130
- }, period);
131
- } else {
132
- done = true;
133
- signal?.removeEventListener("abort", onAbort);
134
- a.emit(count++);
135
- a.down([[COMPLETE]]);
136
- }
137
- };
138
- const onAbort = () => {
139
- if (done) return;
140
- cleanup();
141
- a.down([[ERROR, signal.reason]]);
142
- };
143
- if (signal?.aborted) {
144
- onAbort();
145
- return;
146
- }
147
- t = setTimeout(finish, ms);
148
- signal?.addEventListener("abort", onAbort, { once: true });
149
- return cleanup;
150
- }, sourceOpts(rest));
151
- }
152
- function fromRaf(opts) {
153
- const { signal, ...rest } = opts ?? {};
154
- return producer((a) => {
155
- let done = false;
156
- let rafId;
157
- let fallbackTimer;
158
- let abortListenerAdded = false;
159
- let visibilityListenerAdded = false;
160
- const raf = typeof requestAnimationFrame === "function" ? requestAnimationFrame : void 0;
161
- const caf = typeof cancelAnimationFrame === "function" ? cancelAnimationFrame : void 0;
162
- const doc = typeof document !== "undefined" ? document : void 0;
163
- const clearPending = () => {
164
- if (rafId !== void 0 && caf) caf(rafId);
165
- if (fallbackTimer !== void 0) clearTimeout(fallbackTimer);
166
- rafId = void 0;
167
- fallbackTimer = void 0;
168
- };
169
- const cleanup = () => {
170
- done = true;
171
- clearPending();
172
- if (abortListenerAdded) {
173
- signal?.removeEventListener("abort", onAbort);
174
- abortListenerAdded = false;
175
- }
176
- if (visibilityListenerAdded && doc) {
177
- doc.removeEventListener("visibilitychange", onVisibilityChange);
178
- visibilityListenerAdded = false;
179
- }
180
- };
181
- const onAbort = () => {
182
- if (done) return;
183
- cleanup();
184
- a.down([[ERROR, signal.reason]]);
185
- };
186
- const tick = (now) => {
187
- if (done) return;
188
- a.emit(now);
189
- scheduleNext();
190
- };
191
- const scheduleNext = () => {
192
- if (done) return;
193
- if (raf && (!doc || doc.visibilityState !== "hidden")) {
194
- rafId = raf(tick);
195
- } else {
196
- fallbackTimer = setTimeout(() => tick(performance.now()), 16);
197
- }
198
- };
199
- const onVisibilityChange = () => {
200
- if (done) return;
201
- clearPending();
202
- scheduleNext();
203
- };
204
- if (signal?.aborted) {
205
- onAbort();
206
- return cleanup;
207
- }
208
- signal?.addEventListener("abort", onAbort, { once: true });
209
- abortListenerAdded = signal !== void 0;
210
- if (doc && raf) {
211
- doc.addEventListener("visibilitychange", onVisibilityChange);
212
- visibilityListenerAdded = true;
213
- }
214
- scheduleNext();
215
- return cleanup;
216
- }, sourceOpts(rest));
217
- }
218
- function fromCron(expr, opts) {
219
- const schedule = parseCron(expr);
220
- const { tickMs: tickOpt, output, ...rest } = opts ?? {};
221
- const tickMs = tickOpt ?? 6e4;
222
- const emitDate = output === "date";
223
- return producer(
224
- (a) => {
225
- let lastFiredKey = -1;
226
- const check = () => {
227
- const now = /* @__PURE__ */ new Date();
228
- const key = now.getFullYear() * 1e8 + (now.getMonth() + 1) * 1e6 + now.getDate() * 1e4 + now.getHours() * 100 + now.getMinutes();
229
- if (key !== lastFiredKey && matchesCron(schedule, now)) {
230
- lastFiredKey = key;
231
- a.emit(emitDate ? now : wallClockNs());
232
- }
233
- };
234
- check();
235
- const id = setInterval(check, tickMs);
236
- return () => clearInterval(id);
237
- },
238
- { ...sourceOpts(rest), name: rest.name ?? `cron:${expr}` }
239
- );
240
- }
241
- function fromEvent(target, type, opts) {
242
- const { capture, passive, once, ...rest } = opts ?? {};
243
- return producer((a) => {
244
- const handler = (e) => {
245
- a.emit(e);
246
- };
247
- const options = { capture, passive, once };
248
- target.addEventListener(type, handler, options);
249
- return () => target.removeEventListener(type, handler, options);
250
- }, sourceOpts(rest));
251
- }
252
- function fromIter(iterable, opts) {
253
- return producer((a) => {
254
- let cancelled = false;
255
- try {
256
- for (const x of iterable) {
257
- if (cancelled) return;
258
- a.emit(x);
259
- }
260
- if (!cancelled) a.down([[COMPLETE]]);
261
- } catch (e) {
262
- if (!cancelled) a.down([[ERROR, e]]);
263
- }
264
- return () => {
265
- cancelled = true;
266
- };
267
- }, sourceOpts(opts));
268
- }
269
- function isThenable(x) {
270
- return x != null && typeof x.then === "function";
271
- }
272
- function fromPromise(p, opts) {
273
- const { signal, ...rest } = opts ?? {};
274
- return producer((a) => {
275
- let settled = false;
276
- const onAbort = () => {
277
- if (settled) return;
278
- settled = true;
279
- a.down([[ERROR, signal.reason]]);
280
- };
281
- if (signal?.aborted) {
282
- onAbort();
283
- return;
284
- }
285
- signal?.addEventListener("abort", onAbort, { once: true });
286
- void Promise.resolve(p).then(
287
- (v) => {
288
- if (settled) return;
289
- settled = true;
290
- signal?.removeEventListener("abort", onAbort);
291
- a.emit(v);
292
- a.down([[COMPLETE]]);
293
- },
294
- (e) => {
295
- if (settled) return;
296
- settled = true;
297
- signal?.removeEventListener("abort", onAbort);
298
- a.down([[ERROR, e]]);
299
- }
300
- );
301
- return () => {
302
- settled = true;
303
- signal?.removeEventListener("abort", onAbort);
304
- };
305
- }, sourceOpts(rest));
306
- }
307
- function fromAsyncIter(iterable, opts) {
308
- const { signal: outerSignal, ...rest } = opts ?? {};
309
- return producer((a) => {
310
- const ac = new AbortController();
311
- const onOuterAbort = () => ac.abort(outerSignal?.reason);
312
- if (outerSignal?.aborted) {
313
- ac.abort(outerSignal.reason);
314
- } else {
315
- outerSignal?.addEventListener("abort", onOuterAbort, { once: true });
316
- }
317
- const signal = outerSignal ?? ac.signal;
318
- let cancelled = false;
319
- const it = iterable[Symbol.asyncIterator]();
320
- const pump = () => {
321
- if (cancelled || signal.aborted) return;
322
- void Promise.resolve(it.next()).then(
323
- (step) => {
324
- if (cancelled || signal.aborted) return;
325
- if (step.done) {
326
- a.down([[COMPLETE]]);
327
- return;
328
- }
329
- a.emit(step.value);
330
- pump();
331
- },
332
- (e) => {
333
- if (!cancelled && !signal.aborted) a.down([[ERROR, e]]);
334
- }
335
- );
336
- };
337
- pump();
338
- return () => {
339
- cancelled = true;
340
- outerSignal?.removeEventListener("abort", onOuterAbort);
341
- ac.abort();
342
- void Promise.resolve(it.return?.()).catch(() => void 0);
343
- };
344
- }, sourceOpts(rest));
345
- }
346
- function isNode(x) {
347
- return x != null && typeof x === "object" && "cache" in x && typeof x.subscribe === "function";
348
- }
349
- function fromAny(input, opts) {
350
- if (isNode(input)) {
351
- return input;
352
- }
353
- if (isThenable(input)) {
354
- return fromPromise(input, opts);
355
- }
356
- if (input !== null && input !== void 0) {
357
- const candidate = input;
358
- if (typeof candidate[Symbol.asyncIterator] === "function") {
359
- return fromAsyncIter(input, opts);
360
- }
361
- if (typeof candidate[Symbol.iterator] === "function") {
362
- return fromIter(input, opts);
363
- }
364
- }
365
- return of(input);
366
- }
367
- function of(...values) {
368
- return fromIter(values, void 0);
369
- }
370
- function empty(opts) {
371
- return producer((a) => {
372
- a.down([[COMPLETE]]);
373
- return void 0;
374
- }, sourceOpts(opts));
375
- }
376
- function never(opts) {
377
- return producer(() => void 0, sourceOpts(opts));
378
- }
379
- function throwError(err, opts) {
380
- return producer((a) => {
381
- a.down([[ERROR, err]]);
382
- return void 0;
383
- }, sourceOpts(opts));
384
- }
385
- function forEach(source, fn, opts) {
386
- const inner = node(
387
- [source],
388
- (data, _actions) => {
389
- const batch0 = data[0];
390
- if (batch0 != null && batch0.length > 0) {
391
- for (const v of batch0) fn(v);
392
- }
393
- },
394
- { describeKind: "effect", ...opts }
395
- );
396
- return inner.subscribe(() => {
397
- });
398
- }
399
- function toArray(source, opts) {
400
- return node(
401
- [source],
402
- (data, actions, ctx) => {
403
- if (!ctx.store.buf) ctx.store.buf = [];
404
- const buf = ctx.store.buf;
405
- const batch0 = data[0];
406
- if (batch0 != null && batch0.length > 0) {
407
- for (const v of batch0) buf.push(v);
408
- }
409
- if (ctx.terminalDeps[0] === true) {
410
- actions.emit([...buf]);
411
- actions.down([[COMPLETE]]);
412
- return;
413
- }
414
- if (batch0 == null || batch0.length === 0) {
415
- actions.down([[RESOLVED]]);
416
- }
417
- },
418
- {
419
- describeKind: "derived",
420
- completeWhenDepsComplete: false,
421
- ...opts
422
- }
423
- );
424
- }
425
- function share(source, opts) {
426
- return producer(
427
- (a) => source.subscribe((msgs) => {
428
- a.down(msgs);
429
- }),
430
- { ...sourceOpts(opts), initial: source.cache }
431
- );
432
- }
433
- function replay(source, bufferSize, opts) {
434
- if (bufferSize < 1) throw new RangeError("replay expects bufferSize >= 1");
435
- const buf = [];
436
- const inner = producer(
437
- (a) => source.subscribe((msgs) => {
438
- for (const m of msgs) {
439
- if (m[0] === DATA) {
440
- buf.push(m[1]);
441
- if (buf.length > bufferSize) buf.shift();
442
- }
443
- }
444
- a.down(msgs);
445
- }),
446
- { ...sourceOpts(opts), initial: source.cache }
447
- );
448
- return wrapSubscribeHook(inner, (sink) => {
449
- for (const v of buf) {
450
- sink([[DATA, v]]);
451
- }
452
- });
453
- }
454
- function cached(source, opts) {
455
- return replay(source, 1, opts);
456
- }
457
- function firstValueFrom(source) {
458
- return new Promise((resolve, reject) => {
459
- let settled = false;
460
- let shouldUnsub = false;
461
- let unsub;
462
- unsub = source.subscribe((msgs) => {
463
- for (const m of msgs) {
464
- if (settled) return;
465
- if (m[0] === DATA) {
466
- settled = true;
467
- resolve(m[1]);
468
- if (unsub) {
469
- unsub();
470
- unsub = void 0;
471
- } else shouldUnsub = true;
472
- return;
473
- }
474
- if (m[0] === ERROR) {
475
- settled = true;
476
- reject(m[1]);
477
- if (unsub) {
478
- unsub();
479
- unsub = void 0;
480
- } else shouldUnsub = true;
481
- return;
482
- }
483
- if (m[0] === COMPLETE) {
484
- settled = true;
485
- reject(new Error("completed without DATA"));
486
- if (unsub) {
487
- unsub();
488
- unsub = void 0;
489
- } else shouldUnsub = true;
490
- return;
491
- }
492
- }
493
- });
494
- if (shouldUnsub) {
495
- unsub?.();
496
- unsub = void 0;
497
- }
498
- });
499
- }
500
- function firstWhere(source, predicate) {
501
- return new Promise((resolve, reject) => {
502
- let settled = false;
503
- let shouldUnsub = false;
504
- let unsub;
505
- unsub = source.subscribe((msgs) => {
506
- for (const m of msgs) {
507
- if (settled) return;
508
- if (m[0] === DATA) {
509
- const v = m[1];
510
- if (predicate(v)) {
511
- settled = true;
512
- resolve(v);
513
- if (unsub) {
514
- unsub();
515
- unsub = void 0;
516
- } else shouldUnsub = true;
517
- return;
518
- }
519
- }
520
- if (m[0] === ERROR) {
521
- settled = true;
522
- reject(m[1]);
523
- if (unsub) {
524
- unsub();
525
- unsub = void 0;
526
- } else shouldUnsub = true;
527
- return;
528
- }
529
- if (m[0] === COMPLETE) {
530
- settled = true;
531
- reject(new Error("completed without matching value"));
532
- if (unsub) {
533
- unsub();
534
- unsub = void 0;
535
- } else shouldUnsub = true;
536
- return;
537
- }
538
- }
539
- });
540
- if (shouldUnsub) {
541
- unsub?.();
542
- unsub = void 0;
543
- }
544
- });
545
- }
546
- var shareReplay = replay;
547
- function keepalive(n) {
548
- return n.subscribe(() => {
549
- });
550
- }
551
- function reactiveCounter(cap) {
552
- const counter = state(0);
553
- return {
554
- node: counter,
555
- increment() {
556
- const current = counter.cache ?? 0;
557
- if (current >= cap) return false;
558
- counter.down([[DIRTY], [DATA, current + 1]]);
559
- return true;
560
- },
561
- get() {
562
- return counter.cache ?? 0;
563
- },
564
- atCap() {
565
- return (counter.cache ?? 0) >= cap;
566
- }
567
- };
568
- }
569
-
570
- export {
571
- parseCron,
572
- matchesCron,
573
- escapeRegexChar,
574
- globToRegExp,
575
- matchesAnyPattern,
576
- fromTimer,
577
- fromRaf,
578
- fromCron,
579
- fromEvent,
580
- fromIter,
581
- fromPromise,
582
- fromAsyncIter,
583
- fromAny,
584
- of,
585
- empty,
586
- never,
587
- throwError,
588
- forEach,
589
- toArray,
590
- share,
591
- replay,
592
- cached,
593
- firstValueFrom,
594
- firstWhere,
595
- shareReplay,
596
- keepalive,
597
- reactiveCounter
598
- };
599
- //# sourceMappingURL=chunk-BVZYTZ5H.js.map