@blac/core 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. package/README.md +19 -29
  2. package/dist/StateContainer-BUyuxKb3.cjs +667 -0
  3. package/dist/StateContainer-BUyuxKb3.cjs.map +1 -0
  4. package/dist/StateContainer-B_7UHc3I.js +632 -0
  5. package/dist/StateContainer-B_7UHc3I.js.map +1 -0
  6. package/dist/StateContainer-Bh2ipNYj.js +632 -0
  7. package/dist/StateContainer-Bh2ipNYj.js.map +1 -0
  8. package/dist/StateContainer-ClzwKnQZ.cjs +667 -0
  9. package/dist/StateContainer-ClzwKnQZ.cjs.map +1 -0
  10. package/dist/StateContainer-DiQATvZh.js +632 -0
  11. package/dist/StateContainer-DiQATvZh.js.map +1 -0
  12. package/dist/StateContainer-j16zciex.cjs +667 -0
  13. package/dist/StateContainer-j16zciex.cjs.map +1 -0
  14. package/dist/{StateContainerRegistry-CSNm2Ws5.cjs → StateContainerRegistry-141uHhtF.cjs} +300 -397
  15. package/dist/StateContainerRegistry-141uHhtF.cjs.map +1 -0
  16. package/dist/{StateContainerRegistry-DVIBTxGZ.js → StateContainerRegistry-BH7aOMWV.js} +299 -406
  17. package/dist/StateContainerRegistry-BH7aOMWV.js.map +1 -0
  18. package/dist/StateContainerRegistry-BX-DlHXO.js +747 -0
  19. package/dist/StateContainerRegistry-BX-DlHXO.js.map +1 -0
  20. package/dist/StateContainerRegistry-Bf5VuVjm.js +747 -0
  21. package/dist/StateContainerRegistry-Bf5VuVjm.js.map +1 -0
  22. package/dist/{StateContainerRegistry-Dj77cok9.js → StateContainerRegistry-BsH_s0pJ.js} +303 -413
  23. package/dist/StateContainerRegistry-BsH_s0pJ.js.map +1 -0
  24. package/dist/StateContainerRegistry-BvSRfhKv.cjs +866 -0
  25. package/dist/StateContainerRegistry-BvSRfhKv.cjs.map +1 -0
  26. package/dist/StateContainerRegistry-C8jxrcqk.cjs +866 -0
  27. package/dist/StateContainerRegistry-C8jxrcqk.cjs.map +1 -0
  28. package/dist/{StateContainerRegistry-lIwo-0m3.cjs → StateContainerRegistry-CBLeHObO.cjs} +326 -418
  29. package/dist/StateContainerRegistry-CBLeHObO.cjs.map +1 -0
  30. package/dist/StateContainerRegistry-DjQQtlCW.cjs +870 -0
  31. package/dist/StateContainerRegistry-DjQQtlCW.cjs.map +1 -0
  32. package/dist/{StateContainerRegistry-D9BIRjwv.cjs → StateContainerRegistry-MkT0W4C2.cjs} +322 -411
  33. package/dist/StateContainerRegistry-MkT0W4C2.cjs.map +1 -0
  34. package/dist/StateContainerRegistry-gQbEutkN.js +751 -0
  35. package/dist/StateContainerRegistry-gQbEutkN.js.map +1 -0
  36. package/dist/{StateContainerRegistry-CvBOhAT2.js → StateContainerRegistry-vWgsD-RP.js} +277 -392
  37. package/dist/StateContainerRegistry-vWgsD-RP.js.map +1 -0
  38. package/dist/config.d.cts +8 -8
  39. package/dist/config.d.ts +8 -8
  40. package/dist/constants.d.cts +18 -28
  41. package/dist/constants.d.ts +18 -28
  42. package/dist/core/Cubit.d.ts +14 -10
  43. package/dist/core/StateContainer.d.ts +83 -62
  44. package/dist/core/StateContainerRegistry.d.ts +87 -166
  45. package/dist/core/meta.d.ts +34 -47
  46. package/dist/core/symbols.d.ts +21 -1
  47. package/dist/decorators/blac.d.ts +31 -28
  48. package/dist/{acquire-B1LYXSGj.js → ensure-Bi_yXk6f.js} +16 -5
  49. package/dist/ensure-Bi_yXk6f.js.map +1 -0
  50. package/dist/{ensure-r1C_7K6_.cjs → ensure-BjhbDW8Z.cjs} +203 -160
  51. package/dist/ensure-BjhbDW8Z.cjs.map +1 -0
  52. package/dist/{ensure-BSJHkUNX.js → ensure-BnVyd6s4.js} +297 -122
  53. package/dist/ensure-BnVyd6s4.js.map +1 -0
  54. package/dist/{acquire-BZIs6tpN.cjs → ensure-Bx41d-il.cjs} +23 -6
  55. package/dist/ensure-Bx41d-il.cjs.map +1 -0
  56. package/dist/{acquire-BRIJVJaA.js → ensure-C7UQ_mKM.js} +16 -5
  57. package/dist/ensure-C7UQ_mKM.js.map +1 -0
  58. package/dist/{ensure-B59ri8oo.js → ensure-CneMkpbI.js} +298 -122
  59. package/dist/ensure-CneMkpbI.js.map +1 -0
  60. package/dist/{ensure-B2DYCbbI.cjs → ensure-D15vGnk5.cjs} +328 -123
  61. package/dist/ensure-D15vGnk5.cjs.map +1 -0
  62. package/dist/{acquire-B1Wuqla6.cjs → ensure-D1D4WjYf.cjs} +23 -6
  63. package/dist/ensure-D1D4WjYf.cjs.map +1 -0
  64. package/dist/{ensure-BKdq5xsY.cjs → ensure-D3w6YGp9.cjs} +329 -123
  65. package/dist/ensure-D3w6YGp9.cjs.map +1 -0
  66. package/dist/{acquire-BJ3xUEmh.cjs → ensure-DBnuRJ0R.cjs} +23 -6
  67. package/dist/ensure-DBnuRJ0R.cjs.map +1 -0
  68. package/dist/{acquire-BdsVZBSe.js → ensure-NTB9nnnj.js} +16 -5
  69. package/dist/ensure-NTB9nnnj.js.map +1 -0
  70. package/dist/{ensure-D3WWWwMo.cjs → ensure-ORVw-WRE.cjs} +194 -155
  71. package/dist/ensure-ORVw-WRE.cjs.map +1 -0
  72. package/dist/{ensure-BEeY5Ab7.js → ensure-dsqWhIuO.js} +182 -147
  73. package/dist/ensure-dsqWhIuO.js.map +1 -0
  74. package/dist/{ensure-11-asM1e.js → ensure-k-6q7O25.js} +173 -150
  75. package/dist/ensure-k-6q7O25.js.map +1 -0
  76. package/dist/index.cjs +234 -87
  77. package/dist/index.cjs.map +1 -1
  78. package/dist/index.d.cts +5 -13
  79. package/dist/index.d.ts +5 -13
  80. package/dist/index.js +211 -52
  81. package/dist/index.js.map +1 -1
  82. package/dist/internal.cjs +10 -0
  83. package/dist/internal.d.cts +8 -0
  84. package/dist/internal.d.ts +8 -0
  85. package/dist/internal.js +3 -0
  86. package/dist/plugin/BlacPlugin.d.ts +22 -24
  87. package/dist/plugin/PluginManager.d.ts +47 -60
  88. package/dist/plugins.cjs +383 -3
  89. package/dist/plugins.cjs.map +1 -0
  90. package/dist/plugins.d.cts +10 -5
  91. package/dist/plugins.d.ts +10 -5
  92. package/dist/plugins.js +381 -1
  93. package/dist/plugins.js.map +1 -0
  94. package/dist/registry/acquire.d.ts +2 -2
  95. package/dist/registry/config.d.ts +12 -0
  96. package/dist/registry/index.d.ts +1 -1
  97. package/dist/registry/management.d.ts +3 -0
  98. package/dist/registry/queries.d.ts +15 -0
  99. package/dist/registry/release.d.ts +4 -20
  100. package/dist/testing.cjs +38 -38
  101. package/dist/testing.cjs.map +1 -1
  102. package/dist/testing.d.cts +5 -11
  103. package/dist/testing.d.ts +5 -11
  104. package/dist/testing.js +28 -28
  105. package/dist/testing.js.map +1 -1
  106. package/dist/types/branded.d.ts +6 -13
  107. package/dist/types/utilities.d.ts +40 -31
  108. package/dist/utils/idGenerator.d.ts +6 -13
  109. package/dist/utils/static-props.d.ts +22 -29
  110. package/dist/utils/structural-key.d.ts +0 -22
  111. package/dist/watch/index.d.ts +1 -2
  112. package/dist/watch/watch.d.ts +17 -3
  113. package/package.json +28 -54
  114. package/dist/StateContainerRegistry-4Ljd9EJx.js +0 -1018
  115. package/dist/StateContainerRegistry-4Ljd9EJx.js.map +0 -1
  116. package/dist/StateContainerRegistry-8zNFMAf7.js +0 -1067
  117. package/dist/StateContainerRegistry-8zNFMAf7.js.map +0 -1
  118. package/dist/StateContainerRegistry-B1GYx9Xo.js +0 -975
  119. package/dist/StateContainerRegistry-B1GYx9Xo.js.map +0 -1
  120. package/dist/StateContainerRegistry-B_ViBLvJ.js +0 -975
  121. package/dist/StateContainerRegistry-B_ViBLvJ.js.map +0 -1
  122. package/dist/StateContainerRegistry-Bx2ly-ba.cjs +0 -1162
  123. package/dist/StateContainerRegistry-Bx2ly-ba.cjs.map +0 -1
  124. package/dist/StateContainerRegistry-C0dCNlTF.js +0 -1005
  125. package/dist/StateContainerRegistry-C0dCNlTF.js.map +0 -1
  126. package/dist/StateContainerRegistry-C75QpeaO.cjs +0 -1260
  127. package/dist/StateContainerRegistry-C75QpeaO.cjs.map +0 -1
  128. package/dist/StateContainerRegistry-CEWpc1bj.cjs +0 -1113
  129. package/dist/StateContainerRegistry-CEWpc1bj.cjs.map +0 -1
  130. package/dist/StateContainerRegistry-CS18y4au.cjs +0 -1163
  131. package/dist/StateContainerRegistry-CS18y4au.cjs.map +0 -1
  132. package/dist/StateContainerRegistry-CSNm2Ws5.cjs.map +0 -1
  133. package/dist/StateContainerRegistry-CchRjnjX.cjs +0 -1094
  134. package/dist/StateContainerRegistry-CchRjnjX.cjs.map +0 -1
  135. package/dist/StateContainerRegistry-CvBOhAT2.js.map +0 -1
  136. package/dist/StateContainerRegistry-D8nu7Z0T.js +0 -1068
  137. package/dist/StateContainerRegistry-D8nu7Z0T.js.map +0 -1
  138. package/dist/StateContainerRegistry-D9BIRjwv.cjs.map +0 -1
  139. package/dist/StateContainerRegistry-DJQqLrli.cjs +0 -1046
  140. package/dist/StateContainerRegistry-DJQqLrli.cjs.map +0 -1
  141. package/dist/StateContainerRegistry-DL5Ai7wh.js +0 -1153
  142. package/dist/StateContainerRegistry-DL5Ai7wh.js.map +0 -1
  143. package/dist/StateContainerRegistry-DVIBTxGZ.js.map +0 -1
  144. package/dist/StateContainerRegistry-DWOzx7Gd.js +0 -1154
  145. package/dist/StateContainerRegistry-DWOzx7Gd.js.map +0 -1
  146. package/dist/StateContainerRegistry-Dj77cok9.js.map +0 -1
  147. package/dist/StateContainerRegistry-FWKzPfS-.cjs +0 -1046
  148. package/dist/StateContainerRegistry-FWKzPfS-.cjs.map +0 -1
  149. package/dist/StateContainerRegistry-G81GcCRm.cjs +0 -1261
  150. package/dist/StateContainerRegistry-G81GcCRm.cjs.map +0 -1
  151. package/dist/StateContainerRegistry-lIwo-0m3.cjs.map +0 -1
  152. package/dist/acquire-B1LYXSGj.js.map +0 -1
  153. package/dist/acquire-B1Wuqla6.cjs.map +0 -1
  154. package/dist/acquire-BJ3xUEmh.cjs.map +0 -1
  155. package/dist/acquire-BP-ZfUH2.js +0 -35
  156. package/dist/acquire-BP-ZfUH2.js.map +0 -1
  157. package/dist/acquire-BRIJVJaA.js.map +0 -1
  158. package/dist/acquire-BZIs6tpN.cjs.map +0 -1
  159. package/dist/acquire-B_p1fNEh.cjs +0 -46
  160. package/dist/acquire-B_p1fNEh.cjs.map +0 -1
  161. package/dist/acquire-BdsVZBSe.js.map +0 -1
  162. package/dist/acquire-C3nOb3XR.cjs +0 -46
  163. package/dist/acquire-C3nOb3XR.cjs.map +0 -1
  164. package/dist/acquire-C4WAS13G.cjs +0 -46
  165. package/dist/acquire-C4WAS13G.cjs.map +0 -1
  166. package/dist/acquire-C7beGI55.cjs +0 -46
  167. package/dist/acquire-C7beGI55.cjs.map +0 -1
  168. package/dist/acquire-CE0uq0Dx.cjs +0 -46
  169. package/dist/acquire-CE0uq0Dx.cjs.map +0 -1
  170. package/dist/acquire-CU0u8BMn.js +0 -35
  171. package/dist/acquire-CU0u8BMn.js.map +0 -1
  172. package/dist/acquire-CbMz7gWs.cjs +0 -46
  173. package/dist/acquire-CbMz7gWs.cjs.map +0 -1
  174. package/dist/acquire-CkgLJ8WL.cjs +0 -46
  175. package/dist/acquire-CkgLJ8WL.cjs.map +0 -1
  176. package/dist/acquire-CwB083au.js +0 -35
  177. package/dist/acquire-CwB083au.js.map +0 -1
  178. package/dist/acquire-DHEOEVcj.cjs +0 -46
  179. package/dist/acquire-DHEOEVcj.cjs.map +0 -1
  180. package/dist/acquire-DTvfYJ0y.js +0 -35
  181. package/dist/acquire-DTvfYJ0y.js.map +0 -1
  182. package/dist/acquire-DXEQDZGr.js +0 -35
  183. package/dist/acquire-DXEQDZGr.js.map +0 -1
  184. package/dist/acquire-Dg-uXwjF.js +0 -35
  185. package/dist/acquire-Dg-uXwjF.js.map +0 -1
  186. package/dist/acquire-Don7499S.js +0 -35
  187. package/dist/acquire-Don7499S.js.map +0 -1
  188. package/dist/acquire-G8aB3GAx.js +0 -35
  189. package/dist/acquire-G8aB3GAx.js.map +0 -1
  190. package/dist/branded-BybA0_xw.cjs +0 -18
  191. package/dist/branded-BybA0_xw.cjs.map +0 -1
  192. package/dist/branded-DkbUzncc.js +0 -13
  193. package/dist/branded-DkbUzncc.js.map +0 -1
  194. package/dist/config-8pyOC5gv.js +0 -16
  195. package/dist/config-8pyOC5gv.js.map +0 -1
  196. package/dist/config-B1l8ZGlU.cjs +0 -32
  197. package/dist/config-B1l8ZGlU.cjs.map +0 -1
  198. package/dist/config-C1T6Jw7n.cjs +0 -32
  199. package/dist/config-C1T6Jw7n.cjs.map +0 -1
  200. package/dist/config-C7Ktkjh2.cjs +0 -32
  201. package/dist/config-C7Ktkjh2.cjs.map +0 -1
  202. package/dist/config-COT4Xkbc.js +0 -16
  203. package/dist/config-COT4Xkbc.js.map +0 -1
  204. package/dist/config-CzcoAvBo.js +0 -16
  205. package/dist/config-CzcoAvBo.js.map +0 -1
  206. package/dist/config-D2A8ZYRM.js +0 -16
  207. package/dist/config-D2A8ZYRM.js.map +0 -1
  208. package/dist/config-D34BkraU.cjs +0 -32
  209. package/dist/config-D34BkraU.cjs.map +0 -1
  210. package/dist/config-D6BoWWPv.js +0 -16
  211. package/dist/config-D6BoWWPv.js.map +0 -1
  212. package/dist/config-DOO82lbZ.js +0 -16
  213. package/dist/config-DOO82lbZ.js.map +0 -1
  214. package/dist/config-DVM_ESQt.js +0 -16
  215. package/dist/config-DVM_ESQt.js.map +0 -1
  216. package/dist/config-DVMnlHLv.cjs +0 -32
  217. package/dist/config-DVMnlHLv.cjs.map +0 -1
  218. package/dist/config-DWUq7zEQ.cjs +0 -32
  219. package/dist/config-DWUq7zEQ.cjs.map +0 -1
  220. package/dist/config-DXI3kzmA.js +0 -16
  221. package/dist/config-DXI3kzmA.js.map +0 -1
  222. package/dist/config-Dk1FxfXj.js +0 -16
  223. package/dist/config-Dk1FxfXj.js.map +0 -1
  224. package/dist/config-ZVy_yFZ3.js +0 -16
  225. package/dist/config-ZVy_yFZ3.js.map +0 -1
  226. package/dist/config-b2z51Y_C.cjs +0 -32
  227. package/dist/config-b2z51Y_C.cjs.map +0 -1
  228. package/dist/config-buwpT7l3.js +0 -16
  229. package/dist/config-buwpT7l3.js.map +0 -1
  230. package/dist/config-cwaTn5oy.cjs +0 -32
  231. package/dist/config-cwaTn5oy.cjs.map +0 -1
  232. package/dist/config-d9_U58ef.cjs +0 -32
  233. package/dist/config-d9_U58ef.cjs.map +0 -1
  234. package/dist/config-hWTayX76.cjs +0 -32
  235. package/dist/config-hWTayX76.cjs.map +0 -1
  236. package/dist/config-sCPKPYxZ.cjs +0 -32
  237. package/dist/config-sCPKPYxZ.cjs.map +0 -1
  238. package/dist/debug.cjs +0 -14
  239. package/dist/debug.d.cts +0 -34
  240. package/dist/debug.d.ts +0 -34
  241. package/dist/debug.js +0 -4
  242. package/dist/ensure-11-asM1e.js.map +0 -1
  243. package/dist/ensure-B1dEDsZV.cjs +0 -559
  244. package/dist/ensure-B1dEDsZV.cjs.map +0 -1
  245. package/dist/ensure-B2DYCbbI.cjs.map +0 -1
  246. package/dist/ensure-B59ri8oo.js.map +0 -1
  247. package/dist/ensure-B9oOqpOB.cjs +0 -558
  248. package/dist/ensure-B9oOqpOB.cjs.map +0 -1
  249. package/dist/ensure-BEeY5Ab7.js.map +0 -1
  250. package/dist/ensure-BKdq5xsY.cjs.map +0 -1
  251. package/dist/ensure-BSJHkUNX.js.map +0 -1
  252. package/dist/ensure-BfYnvAsI.js +0 -709
  253. package/dist/ensure-BfYnvAsI.js.map +0 -1
  254. package/dist/ensure-Bm91o37h.js +0 -536
  255. package/dist/ensure-Bm91o37h.js.map +0 -1
  256. package/dist/ensure-C1a8IFWy.js +0 -535
  257. package/dist/ensure-C1a8IFWy.js.map +0 -1
  258. package/dist/ensure-CLQEx0Nn.cjs +0 -528
  259. package/dist/ensure-CLQEx0Nn.cjs.map +0 -1
  260. package/dist/ensure-CPMiGvov.js +0 -493
  261. package/dist/ensure-CPMiGvov.js.map +0 -1
  262. package/dist/ensure-CQimeD0I.cjs +0 -559
  263. package/dist/ensure-CQimeD0I.cjs.map +0 -1
  264. package/dist/ensure-D3WWWwMo.cjs.map +0 -1
  265. package/dist/ensure-DEXSmA-N.js +0 -526
  266. package/dist/ensure-DEXSmA-N.js.map +0 -1
  267. package/dist/ensure-DTTTd2h8.js +0 -536
  268. package/dist/ensure-DTTTd2h8.js.map +0 -1
  269. package/dist/ensure-Dx86f80B.cjs +0 -567
  270. package/dist/ensure-Dx86f80B.cjs.map +0 -1
  271. package/dist/ensure-DzqGej43.js +0 -526
  272. package/dist/ensure-DzqGej43.js.map +0 -1
  273. package/dist/ensure-VuiNPccZ.cjs +0 -559
  274. package/dist/ensure-VuiNPccZ.cjs.map +0 -1
  275. package/dist/ensure-_Oh8XPm4.cjs +0 -732
  276. package/dist/ensure-_Oh8XPm4.cjs.map +0 -1
  277. package/dist/ensure-fsQMjaQL.cjs +0 -567
  278. package/dist/ensure-fsQMjaQL.cjs.map +0 -1
  279. package/dist/ensure-r1C_7K6_.cjs.map +0 -1
  280. package/dist/ensure-vxAGa2v3.js +0 -536
  281. package/dist/ensure-vxAGa2v3.js.map +0 -1
  282. package/dist/events.d.cts +0 -42
  283. package/dist/events.d.ts +0 -42
  284. package/dist/management-14vsHr4t.cjs +0 -85
  285. package/dist/management-14vsHr4t.cjs.map +0 -1
  286. package/dist/management-444tdCBG.js +0 -38
  287. package/dist/management-444tdCBG.js.map +0 -1
  288. package/dist/management-7jLjVHJd.js +0 -38
  289. package/dist/management-7jLjVHJd.js.map +0 -1
  290. package/dist/management-8x1OVMi6.js +0 -38
  291. package/dist/management-8x1OVMi6.js.map +0 -1
  292. package/dist/management-AFuqQEwz.js +0 -38
  293. package/dist/management-AFuqQEwz.js.map +0 -1
  294. package/dist/management-BZgsi29F.js +0 -38
  295. package/dist/management-BZgsi29F.js.map +0 -1
  296. package/dist/management-BodVLAfJ.cjs +0 -85
  297. package/dist/management-BodVLAfJ.cjs.map +0 -1
  298. package/dist/management-BqGBdL01.js +0 -38
  299. package/dist/management-BqGBdL01.js.map +0 -1
  300. package/dist/management-BvUAjril.js +0 -38
  301. package/dist/management-BvUAjril.js.map +0 -1
  302. package/dist/management-C-WGcwPD.js +0 -38
  303. package/dist/management-C-WGcwPD.js.map +0 -1
  304. package/dist/management-C2wv4vGS.cjs +0 -85
  305. package/dist/management-C2wv4vGS.cjs.map +0 -1
  306. package/dist/management-D2pjr38g.js +0 -38
  307. package/dist/management-D2pjr38g.js.map +0 -1
  308. package/dist/management-D5WsZoTV.js +0 -38
  309. package/dist/management-D5WsZoTV.js.map +0 -1
  310. package/dist/management-DAV9sN-k.cjs +0 -85
  311. package/dist/management-DAV9sN-k.cjs.map +0 -1
  312. package/dist/management-Df7Y2sF1.cjs +0 -85
  313. package/dist/management-Df7Y2sF1.cjs.map +0 -1
  314. package/dist/management-Dg2SxUb6.cjs +0 -85
  315. package/dist/management-Dg2SxUb6.cjs.map +0 -1
  316. package/dist/management-DwO0nBzL.cjs +0 -85
  317. package/dist/management-DwO0nBzL.cjs.map +0 -1
  318. package/dist/management-GcnNJjnm.cjs +0 -85
  319. package/dist/management-GcnNJjnm.cjs.map +0 -1
  320. package/dist/management-P_Vi_cvw.js +0 -38
  321. package/dist/management-P_Vi_cvw.js.map +0 -1
  322. package/dist/management-QWLpbXlW.cjs +0 -85
  323. package/dist/management-QWLpbXlW.cjs.map +0 -1
  324. package/dist/management-hkY13log.cjs +0 -85
  325. package/dist/management-hkY13log.cjs.map +0 -1
  326. package/dist/management-iE4x6IQY.cjs +0 -85
  327. package/dist/management-iE4x6IQY.cjs.map +0 -1
  328. package/dist/types.cjs +0 -3
  329. package/dist/types.d.cts +0 -8
  330. package/dist/types.d.ts +0 -8
  331. package/dist/types.js +0 -2
  332. package/dist/watch/observe.d.ts +0 -13
  333. package/dist/watch-B0pUfh-v.cjs +0 -119
  334. package/dist/watch-B0pUfh-v.cjs.map +0 -1
  335. package/dist/watch-B91opmva.cjs +0 -70
  336. package/dist/watch-B91opmva.cjs.map +0 -1
  337. package/dist/watch-BDiwCPmb.js +0 -108
  338. package/dist/watch-BDiwCPmb.js.map +0 -1
  339. package/dist/watch-BHfCtbn1.cjs +0 -119
  340. package/dist/watch-BHfCtbn1.cjs.map +0 -1
  341. package/dist/watch-BW7gYiDf.js +0 -108
  342. package/dist/watch-BW7gYiDf.js.map +0 -1
  343. package/dist/watch-BmC-Tyqg.js +0 -59
  344. package/dist/watch-BmC-Tyqg.js.map +0 -1
  345. package/dist/watch-Bx0y-Kcc.js +0 -108
  346. package/dist/watch-Bx0y-Kcc.js.map +0 -1
  347. package/dist/watch-CKWt788i.cjs +0 -70
  348. package/dist/watch-CKWt788i.cjs.map +0 -1
  349. package/dist/watch-CfrSSrRY.js +0 -59
  350. package/dist/watch-CfrSSrRY.js.map +0 -1
  351. package/dist/watch-Cnh3PtQA.cjs +0 -70
  352. package/dist/watch-Cnh3PtQA.cjs.map +0 -1
  353. package/dist/watch-D01MdwKy.js +0 -108
  354. package/dist/watch-D01MdwKy.js.map +0 -1
  355. package/dist/watch-D8hwbFU1.js +0 -59
  356. package/dist/watch-D8hwbFU1.js.map +0 -1
  357. package/dist/watch-DPVUwPUY.js +0 -59
  358. package/dist/watch-DPVUwPUY.js.map +0 -1
  359. package/dist/watch-DVmvZBMD.cjs +0 -70
  360. package/dist/watch-DVmvZBMD.cjs.map +0 -1
  361. package/dist/watch-DkDGmGAx.cjs +0 -119
  362. package/dist/watch-DkDGmGAx.cjs.map +0 -1
  363. package/dist/watch-DttHqefn.js +0 -108
  364. package/dist/watch-DttHqefn.js.map +0 -1
  365. package/dist/watch-DxdIZjpt.cjs +0 -119
  366. package/dist/watch-DxdIZjpt.cjs.map +0 -1
  367. package/dist/watch-DztcJuUy.cjs +0 -119
  368. package/dist/watch-DztcJuUy.cjs.map +0 -1
  369. package/dist/watch-IrR8G28N.js +0 -108
  370. package/dist/watch-IrR8G28N.js.map +0 -1
  371. package/dist/watch-aoNLQAXp.cjs +0 -119
  372. package/dist/watch-aoNLQAXp.cjs.map +0 -1
  373. package/dist/watch-entry.cjs +0 -4
  374. package/dist/watch-entry.d.cts +0 -24
  375. package/dist/watch-entry.d.ts +0 -24
  376. package/dist/watch-entry.js +0 -2
  377. package/dist/watch-hx0r92Zc.js +0 -108
  378. package/dist/watch-hx0r92Zc.js.map +0 -1
  379. package/dist/watch-lEco5Tbl.cjs +0 -119
  380. package/dist/watch-lEco5Tbl.cjs.map +0 -1
@@ -1,1163 +0,0 @@
1
- let _dirtytalk_structural = require("@dirtytalk/structural");
2
- //#region src/config.ts
3
- /**
4
- * Default equality: shallow per-key `Object.is` comparison.
5
- * Falls through to `false` for primitives/null so reference-only state still
6
- * behaves correctly.
7
- */
8
- const shallowEqualState = (prev, next) => {
9
- if (Object.is(prev, next)) return true;
10
- if (typeof prev !== "object" || prev === null) return false;
11
- if (typeof next !== "object" || next === null) return false;
12
- const prevKeys = Object.keys(prev);
13
- if (prevKeys.length !== Object.keys(next).length) return false;
14
- for (let i = 0; i < prevKeys.length; i++) {
15
- const key = prevKeys[i];
16
- if (!Object.is(prev[key], next[key])) return false;
17
- }
18
- return true;
19
- };
20
- const defaultConfig = {
21
- equality: shallowEqualState,
22
- maxInstancesPerType: 1e5,
23
- maxRefsPerInstance: 1e5,
24
- maxEmitsPerSecond: 1e3
25
- };
26
- let globalConfig = { ...defaultConfig };
27
- /**
28
- * Configure global defaults for @blac/core.
29
- *
30
- * @example
31
- * ```ts
32
- * import { configureBlac, shallowEqualState } from '@blac/core';
33
- *
34
- * // Swap in a deep-equality check for all blocs
35
- * configureBlac({ equality: myDeepEqual });
36
- * ```
37
- */
38
- function configureBlac(config) {
39
- globalConfig = {
40
- ...globalConfig,
41
- ...config
42
- };
43
- }
44
- /**
45
- * Get the current global configuration.
46
- * @internal
47
- */
48
- function getBlacConfig() {
49
- return globalConfig;
50
- }
51
- /**
52
- * Reset configuration to defaults (useful for testing).
53
- * @internal
54
- */
55
- function resetBlacConfig() {
56
- globalConfig = { ...defaultConfig };
57
- }
58
- //#endregion
59
- //#region src/plugin/PluginManager.ts
60
- /**
61
- * Manages plugin lifecycle for the BlaC state management system.
62
- *
63
- * The manager hooks into two surfaces:
64
- *
65
- * 1. **Registry lifecycle events** (`created`, `disposed`, `refAcquired`,
66
- * `refReleased`, `depsChanged`) — synchronous, fired by the registry.
67
- *
68
- * 2. **Per-container channel flushes** — microtask-coalesced. For each
69
- * container, the manager subscribes once at create-time with
70
- * `ALL_PATHS` interest and stashes `prevState`. On every flush it
71
- * captures the new state + the changed `PathSet` and dispatches
72
- * `onStateChange(ctx, prev, next, paths)` to every enabled plugin.
73
- *
74
- * The `ALL_PATHS` subscription cost: plugins counted as a consumer with
75
- * `ALL_PATHS` interest will defeat the single-consumer-skip optimization
76
- * in `StructuralContainer`. This is the intended trade-off — devtools /
77
- * persist plugins genuinely want every change, and stateful plugins
78
- * (logging) can decode `paths` via `container.interner.lookup(id)` to log
79
- * only relevant fields. Plugins that want low overhead should remain
80
- * uninstalled or environment-gated.
81
- *
82
- * @example
83
- * ```ts
84
- * const manager = createPluginManager(registry);
85
- * manager.install(myPlugin, { environment: 'development' });
86
- * ```
87
- */
88
- var PluginManager = class {
89
- /**
90
- * Create a new PluginManager
91
- * @param registry - The StateContainerRegistry to monitor for lifecycle events
92
- */
93
- constructor(registry) {
94
- this.plugins = /* @__PURE__ */ new Map();
95
- this.lifecycleUnsubscribers = [];
96
- this.containerBridges = /* @__PURE__ */ new WeakMap();
97
- this.registry = registry;
98
- this.setupLifecycleHooks();
99
- }
100
- /**
101
- * Install a plugin with optional configuration
102
- * @param plugin - The plugin to install
103
- * @param config - Optional plugin configuration
104
- * @throws Error if plugin is already installed
105
- */
106
- install(plugin, config = {}) {
107
- const effectiveConfig = {
108
- enabled: true,
109
- environment: "all",
110
- ...config
111
- };
112
- if (!this.shouldEnablePlugin(effectiveConfig)) {
113
- console.log(`[BlaC] Plugin "${plugin.name}" skipped (environment mismatch)`);
114
- return;
115
- }
116
- if (this.plugins.has(plugin.name)) throw new Error(`Plugin "${plugin.name}" is already installed`);
117
- const installContext = this.buildContext(void 0);
118
- this.plugins.set(plugin.name, {
119
- plugin,
120
- config: effectiveConfig,
121
- installContext
122
- });
123
- this.backfillPlugin(this.plugins.get(plugin.name));
124
- if (plugin.onInstall) try {
125
- plugin.onInstall(installContext);
126
- } catch (error) {
127
- console.error(`[BlaC] Error installing plugin "${plugin.name}":`, error);
128
- this.plugins.delete(plugin.name);
129
- throw error;
130
- }
131
- console.log(`[BlaC] Plugin "${plugin.name}" v${plugin.version} installed`);
132
- }
133
- /**
134
- * Uninstall a plugin by name
135
- * @param pluginName - The name of the plugin to uninstall
136
- * @throws Error if plugin is not installed
137
- */
138
- uninstall(pluginName) {
139
- const installed = this.plugins.get(pluginName);
140
- if (!installed) throw new Error(`Plugin "${pluginName}" is not installed`);
141
- if (installed.plugin.onUninstall) try {
142
- installed.plugin.onUninstall();
143
- } catch (error) {
144
- console.error(`[BlaC] Error uninstalling plugin "${pluginName}":`, error);
145
- }
146
- this.plugins.delete(pluginName);
147
- console.log(`[BlaC] Plugin "${pluginName}" uninstalled`);
148
- }
149
- /**
150
- * Get an installed plugin by name
151
- * @param pluginName - The name of the plugin to retrieve
152
- * @returns The plugin instance or undefined if not found
153
- */
154
- getPlugin(pluginName) {
155
- return this.plugins.get(pluginName)?.plugin;
156
- }
157
- /**
158
- * Get all installed plugins
159
- * @returns Array of all installed plugins
160
- */
161
- getAllPlugins() {
162
- return Array.from(this.plugins.values()).map((p) => p.plugin);
163
- }
164
- /**
165
- * Check if a plugin is installed
166
- * @param pluginName - The name of the plugin to check
167
- * @returns true if the plugin is installed
168
- */
169
- hasPlugin(pluginName) {
170
- return this.plugins.has(pluginName);
171
- }
172
- /**
173
- * Uninstall all plugins
174
- */
175
- clear() {
176
- for (const name of this.plugins.keys()) this.uninstall(name);
177
- }
178
- destroy() {
179
- this.clear();
180
- for (const unsub of this.lifecycleUnsubscribers) unsub();
181
- this.lifecycleUnsubscribers = [];
182
- }
183
- /**
184
- * Wire registry lifecycle events into plugin dispatch.
185
- *
186
- * `onStateChange` is NOT wired through `registry.on('stateChanged', …)` —
187
- * that event lacks the `PathSet` payload. Instead, on each `created` we
188
- * subscribe to the container's channel directly so we get
189
- * `(paths)` and capture `(prev, next)` via the per-container snapshot.
190
- */
191
- setupLifecycleHooks() {
192
- this.lifecycleUnsubscribers = [
193
- this.registry.on("created", (instance) => {
194
- this.attachStateBridge(instance);
195
- this.notifyPlugins("onCreated", instance);
196
- }),
197
- this.registry.on("disposed", (instance) => {
198
- this.notifyPlugins("onDestroyed", instance);
199
- this.detachStateBridge(instance);
200
- }),
201
- this.registry.on("refAcquired", (instance, refId) => {
202
- this.notifyPlugins("onRefAcquired", instance, refId);
203
- }),
204
- this.registry.on("refReleased", (instance, refId) => {
205
- this.notifyPlugins("onRefReleased", instance, refId);
206
- }),
207
- this.registry.on("depsChanged", (instance, previousDeps, currentDeps) => {
208
- this.notifyPlugins("onDepsChanged", instance, previousDeps, currentDeps);
209
- }),
210
- this.registry.on("hydrationChanged", (instance, status, previousStatus) => {
211
- this.notifyPlugins("onHydrationChange", instance, status, previousStatus);
212
- })
213
- ];
214
- }
215
- /**
216
- * Subscribe to the container's channel with `ALL_PATHS` interest, so we
217
- * fire on every flush. Capture `prev` from the snapshot taken on the
218
- * previous flush (or at create-time for the first flush) and pass the
219
- * channel's `paths` argument straight through to plugins.
220
- *
221
- * Per-container bookkeeping is stored in a `WeakMap` keyed by the
222
- * container itself, so a disposed/GC'd container drops cleanly.
223
- */
224
- attachStateBridge(container) {
225
- if (this.containerBridges.has(container)) return;
226
- const bridge = {
227
- unsub: () => {},
228
- prevState: container.state
229
- };
230
- this.containerBridges.set(container, bridge);
231
- bridge.unsub = container.channel.subscribe(() => _dirtytalk_structural.ALL_PATHS, (paths) => this.dispatchStateChange(container, paths));
232
- }
233
- detachStateBridge(container) {
234
- const bridge = this.containerBridges.get(container);
235
- if (!bridge) return;
236
- bridge.unsub();
237
- this.containerBridges.delete(container);
238
- }
239
- /**
240
- * Backfill a newly-installed plugin with the app's existing instances.
241
- *
242
- * Iterates every registered `Type` and its live instances (`getAll`
243
- * already skips disposed), attaching the state bridge (idempotent — see
244
- * `attachStateBridge`) and, if the plugin implements `onCreated`, invoking
245
- * it directly for each instance. Scoped to this single plugin only — the
246
- * broadcast `notifyPlugins` would re-notify *every* plugin of *every*
247
- * instance, which is wrong here.
248
- */
249
- backfillPlugin(installed) {
250
- const { plugin } = installed;
251
- for (const Type of this.registry.getTypes()) for (const instance of this.registry.getAll(Type)) {
252
- const container = instance;
253
- this.attachStateBridge(container);
254
- if (!plugin.onCreated) continue;
255
- try {
256
- plugin.onCreated(this.buildContext(container));
257
- } catch (error) {
258
- console.error(`[BlaC] Error in plugin "${plugin.name}" onCreated (backfill):`, error);
259
- }
260
- }
261
- }
262
- /**
263
- * Channel-flush callback. Snapshots `next`, hands `(prev, next, paths)`
264
- * to every enabled plugin's `onStateChange`, then updates `prevState`
265
- * for the next flush.
266
- *
267
- * Note: `prev` is captured once and reused across plugins — every
268
- * plugin sees the same `prev`/`next`/`paths` regardless of dispatch
269
- * order, matching the "snapshot prev once per flush" invariant.
270
- */
271
- dispatchStateChange(container, paths) {
272
- const bridge = this.containerBridges.get(container);
273
- if (!bridge) return;
274
- const prev = bridge.prevState;
275
- const next = container.state;
276
- bridge.prevState = next;
277
- let ctx;
278
- for (const { plugin, config } of this.plugins.values()) {
279
- if (!config.enabled) continue;
280
- const hook = plugin.onStateChange;
281
- if (typeof hook !== "function") continue;
282
- try {
283
- ctx ??= this.buildContext(container);
284
- hook.call(plugin, ctx, prev, next, paths);
285
- } catch (error) {
286
- console.error(`[BlaC] Error in plugin "${plugin.name}" onStateChange:`, error);
287
- }
288
- }
289
- }
290
- /**
291
- * Notify all plugins of a lifecycle event.
292
- *
293
- * Builds a fresh `PluginContext` per dispatch (instance becomes
294
- * `ctx.container`), so plugins can reach the focal bloc through
295
- * `ctx.container`. The context is built lazily on the first matching
296
- * hook and reused for every other plugin in this dispatch — zero
297
- * builds if no enabled plugin implements `hookName`.
298
- */
299
- notifyPlugins(hookName, instance, ...extraArgs) {
300
- let ctx;
301
- for (const { plugin, config } of this.plugins.values()) {
302
- if (!config.enabled) continue;
303
- const hook = plugin[hookName];
304
- if (typeof hook !== "function") continue;
305
- try {
306
- ctx ??= this.buildContext(instance);
307
- hook.call(plugin, ctx, ...extraArgs);
308
- } catch (error) {
309
- console.error(`[BlaC] Error in plugin "${plugin.name}" ${hookName}:`, error);
310
- }
311
- }
312
- }
313
- /**
314
- * Build a `PluginContext` for a given focal container. The context is
315
- * cheap to build — its methods close over `this.registry` directly —
316
- * so we create one per dispatch rather than caching per container.
317
- * This sidesteps the lifetime question of "when do we evict a cached
318
- * context?" and keeps `paths`-vs-`container` lifetimes cleanly
319
- * separated.
320
- */
321
- buildContext(container) {
322
- const registry = this.registry;
323
- return {
324
- container,
325
- getInstanceMetadata: (instance) => {
326
- return {
327
- id: instance.$blac.id,
328
- className: instance.constructor.name,
329
- isDisposed: instance.$blac.disposed,
330
- name: instance.$blac.name,
331
- createdAt: instance.$blac.createdAt,
332
- state: instance.state,
333
- hydrationStatus: instance.$blac.hydration.status,
334
- isHydrated: instance.$blac.hydration.isHydrated,
335
- hydrationError: instance.$blac.hydration.error,
336
- changedWhileHydrating: instance.$blac.hydration.changedWhileHydrating,
337
- args: instance.args
338
- };
339
- },
340
- getState: (instance) => {
341
- return instance.state;
342
- },
343
- getHydrationStatus: (instance) => {
344
- return instance.$blac.hydration.status;
345
- },
346
- startHydration: (instance) => {
347
- instance.$blac.hydration.begin();
348
- },
349
- applyHydratedState: (instance, state) => {
350
- return instance.$blac.hydration.apply(state);
351
- },
352
- finishHydration: (instance) => {
353
- instance.$blac.hydration.finish();
354
- },
355
- failHydration: (instance, error) => {
356
- instance.$blac.hydration.fail(error);
357
- },
358
- waitForHydration: (instance) => {
359
- return instance.$blac.hydration.wait();
360
- },
361
- queryInstances: (typeClass) => {
362
- return registry.getAll(typeClass);
363
- },
364
- getAllTypes: () => {
365
- return registry.getTypes();
366
- },
367
- getStats: () => {
368
- return registry.getStats();
369
- },
370
- getRefIds: (instanceId) => {
371
- for (const Type of registry.getTypes()) {
372
- const map = registry.getInstancesMap(Type);
373
- for (const [, entry] of map) if (entry.instance.$blac.id === instanceId) return Array.from(entry.refs.keys());
374
- }
375
- return [];
376
- }
377
- };
378
- }
379
- /**
380
- * Check if plugin should be enabled based on environment
381
- */
382
- shouldEnablePlugin(config) {
383
- if (!config.enabled) return false;
384
- if (config.environment === "all") return true;
385
- return this.getCurrentEnvironment() === config.environment;
386
- }
387
- /**
388
- * Get current environment
389
- */
390
- getCurrentEnvironment() {
391
- if (typeof process !== "undefined") {
392
- if (process.env.NODE_ENV === "test") return "test";
393
- if (process.env.NODE_ENV === "production") return "production";
394
- return "development";
395
- }
396
- return "development";
397
- }
398
- };
399
- /**
400
- * Create a plugin manager instance
401
- * @param registry - The StateContainerRegistry to monitor for lifecycle events
402
- * @returns A new PluginManager instance
403
- */
404
- function createPluginManager(registry) {
405
- return new PluginManager(registry);
406
- }
407
- //#endregion
408
- //#region src/constants.ts
409
- /**
410
- * Default configuration constants for BlaC
411
- *
412
- * Centralized location for all magic numbers and default values.
413
- */
414
- /**
415
- * Default configuration constants for BlaC
416
- */
417
- const BLAC_DEFAULTS = {
418
- /**
419
- * Default instance key for shared instances
420
- */
421
- DEFAULT_INSTANCE_KEY: "default",
422
- /**
423
- * Maximum getter nesting depth (prevents infinite recursion)
424
- */
425
- MAX_GETTER_DEPTH: 10
426
- };
427
- /**
428
- * Static property names for StateContainer classes
429
- * Used for feature flags and configuration on bloc classes
430
- */
431
- const BLAC_STATIC_PROPS = {
432
- /**
433
- * Mark a bloc to never be auto-disposed (kept alive permanently)
434
- */
435
- KEEP_ALIVE: "keepAlive",
436
- /**
437
- * Exclude a bloc from DevTools reporting (prevents infinite loops)
438
- */
439
- EXCLUDE_FROM_DEVTOOLS: "__excludeFromDevTools",
440
- /**
441
- * Per-class equality function used to short-circuit `emit`/`patch` when the
442
- * new state is structurally equal to the previous state. Falls back to the
443
- * global `configureBlac({ equality })` value when unset.
444
- */
445
- EQUALITY: "__equality",
446
- /**
447
- * Per-class key function: `static key = (args) => string`.
448
- * When set, the registry calls `Type.key(args)` to derive the instance key
449
- * instead of using a structural hash of `args`. Allows blocs to ignore
450
- * non-identity fields (e.g., `readonly` flags) while still keying by id.
451
- */
452
- KEY: "key"
453
- };
454
- /**
455
- * Standard error message prefix
456
- */
457
- const BLAC_ERROR_PREFIX = "[BlaC]";
458
- //#endregion
459
- //#region src/utils/static-props.ts
460
- /**
461
- * Utility functions for accessing static properties on StateContainer classes
462
- */
463
- /**
464
- * Get a static property from a class constructor
465
- * Type-safe helper that avoids (Type as any) casts
466
- *
467
- * @param Type - The class constructor
468
- * @param propName - The property name to access
469
- * @param defaultValue - Optional default value if property is undefined
470
- * @returns The property value or default
471
- */
472
- function getStaticProp(Type, propName, defaultValue) {
473
- return Type[propName] ?? defaultValue;
474
- }
475
- /**
476
- * Check if a class is marked as keepAlive.
477
- * KeepAlive classes are never auto-disposed when ref count reaches 0.
478
- * @param Type - The class constructor to check
479
- * @returns true if the class has `static keepAlive = true`
480
- */
481
- function isKeepAliveClass(Type) {
482
- return getStaticProp(Type, BLAC_STATIC_PROPS.KEEP_ALIVE) === true;
483
- }
484
- /**
485
- * Check if a class should be excluded from DevTools.
486
- * Used to prevent infinite loops when DevTools tracks itself.
487
- * @param Type - The class constructor to check
488
- * @returns true if the class has `static __excludeFromDevTools = true`
489
- */
490
- function isExcludedFromDevTools(Type) {
491
- return getStaticProp(Type, BLAC_STATIC_PROPS.EXCLUDE_FROM_DEVTOOLS) === true;
492
- }
493
- /**
494
- * Get the per-class equality function set via `@blac({ equality })`, if any.
495
- * @param Type - The class constructor to check
496
- * @returns the equality function or `undefined`
497
- */
498
- function getClassEquality(Type) {
499
- const fn = getStaticProp(Type, BLAC_STATIC_PROPS.EQUALITY);
500
- return typeof fn === "function" ? fn : void 0;
501
- }
502
- /**
503
- * Get the per-class key function set via `@blac({ key })` or `static key = …`, if any.
504
- * Used by the registry to derive a stable instance key from `args`.
505
- * @param Type - The class constructor to check
506
- * @returns the key function or `undefined`
507
- */
508
- function getClassKey(Type) {
509
- const fn = getStaticProp(Type, BLAC_STATIC_PROPS.KEY, void 0);
510
- return typeof fn === "function" ? fn : void 0;
511
- }
512
- //#endregion
513
- //#region src/utils/structural-key.ts
514
- /**
515
- * Deterministic, order-independent hash of serializable args.
516
- * Sorts object keys so {a,b} === {b,a}.
517
- * Throws (dev) if it encounters a function or non-plain object — those belong in `deps`.
518
- */
519
- const DEFAULT_STRUCTURAL_KEY = "default";
520
- /**
521
- * Produce a stable string key for serializable args.
522
- * - `undefined` / `void` args → `'default'` sentinel (no-args blocs stay on the default key).
523
- * - Object keys are sorted for order-independence.
524
- * - Arrays keep their insertion order.
525
- * - Functions throw — they must be passed via `deps`, not `args`.
526
- */
527
- function structuralKey(args) {
528
- if (args === void 0 || args === null) return DEFAULT_STRUCTURAL_KEY;
529
- return JSON.stringify(args, function(_k, v) {
530
- if (typeof v === "function") throw new Error("[blac] args must be serializable; put refs/callbacks in `deps`");
531
- if (v && typeof v === "object" && !Array.isArray(v)) return Object.keys(v).sort().reduce((o, k) => {
532
- o[k] = v[k];
533
- return o;
534
- }, {});
535
- return v;
536
- });
537
- }
538
- //#endregion
539
- //#region src/core/symbols.ts
540
- /**
541
- * @internal Apply one owner's (consumer's) deps slice to an instance.
542
- * Called by framework adapters (e.g. @blac/react useBloc) — not public API.
543
- */
544
- const APPLY_DEPS = Symbol("blac.applyDeps");
545
- /**
546
- * @internal Withdraw one owner's entire deps slice (consumer unmounted).
547
- * Called by framework adapters — not public API.
548
- */
549
- const REMOVE_DEPS_OWNER = Symbol("blac.removeDepsOwner");
550
- /**
551
- * @internal Subscribe to this specific instance's own disposal, bypassing
552
- * the global registry `'disposed'` event. Called by `watch()` — not public
553
- * API.
554
- */
555
- const ON_DISPOSE = Symbol("blac.onDispose");
556
- /**
557
- * @internal Symbol-keyed configuration entry point on `StateContainer`.
558
- * Writes the instance's identity fields (`_name`/`_debug`/`_instanceId`),
559
- * resolves per-class equality, emits the registry `created` event, and runs
560
- * `init()` once.
561
- *
562
- * Framework-only — the registry (`StateContainerRegistry.ensure`) and testing
563
- * helpers are the sole callers, mirroring the `APPLY_DEPS` precedent.
564
- */
565
- const INIT_CONFIG = Symbol("blac.initConfig");
566
- //#endregion
567
- //#region src/core/StateContainerRegistry.ts
568
- /**
569
- * Central registry for managing StateContainer instances.
570
- * Handles instance lifecycle, named ref tracking, and lifecycle event emission.
571
- *
572
- * @example
573
- * ```ts
574
- * const registry = new StateContainerRegistry();
575
- * const instance = registry.acquire(MyBloc); // ownership, must release
576
- * const other = registry.ensure(OtherBloc); // no ownership, bloc-to-bloc
577
- * registry.on('stateChanged', (container, prev, next) => {
578
- * console.log('State changed:', prev, '->', next);
579
- * });
580
- * ```
581
- */
582
- var StateContainerRegistry = class {
583
- get hasStateChangedListeners() {
584
- return this._stateChangedListenerCount > 0;
585
- }
586
- constructor() {
587
- this.instancesByConstructor = /* @__PURE__ */ new WeakMap();
588
- this.types = /* @__PURE__ */ new Set();
589
- this.registeredTypeNames = /* @__PURE__ */ new Set();
590
- this.listeners = /* @__PURE__ */ new Map();
591
- this._stateChangedListenerCount = 0;
592
- this._pendingStateChanges = null;
593
- this._autoRefIdCounter = 0;
594
- this.on("disposed", (container) => this._handleDisposed(container));
595
- }
596
- /**
597
- * Registry-internal reaction to any instance's `disposed` lifecycle event.
598
- * If the disposing container is itself tracked in this registry (i.e. it
599
- * was `acquire()`/`ensure()`'d, not a bare `new`), prune its Map entry and
600
- * release its dependent edges on whatever it `depend()`'d on.
601
- */
602
- _handleDisposed(container) {
603
- const Type = container.constructor;
604
- if (!this._pruneEntry(Type, container)) return;
605
- for (const [DepType, depKey] of container.$blac.dependencies) this._releaseDependent(DepType, depKey, container);
606
- }
607
- /**
608
- * Remove the Map entry for `container`, if this registry is tracking it.
609
- * @returns true if an entry was found and removed
610
- */
611
- _pruneEntry(Type, container) {
612
- const instances = this.instancesByConstructor.get(Type);
613
- if (!instances) return false;
614
- for (const [key, entry] of instances) if (entry.instance === container) {
615
- instances.delete(key);
616
- return true;
617
- }
618
- return false;
619
- }
620
- /**
621
- * Drop `dependent`'s edge on the `Type`/`key` entry (a `depend()`-resolved
622
- * instance). When that leaves the entry with no dependents AND no public
623
- * refs AND it isn't keepAlive, dispose it — this recurses into the same
624
- * `disposed` listener, so dep-of-dep chains unwind naturally.
625
- */
626
- _releaseDependent(Type, key, dependent) {
627
- const entry = this.instancesByConstructor.get(Type)?.get(key);
628
- if (!entry) return;
629
- entry.dependents?.delete(dependent);
630
- if ((!entry.dependents || entry.dependents.size === 0) && entry.refs.size === 0 && !isKeepAliveClass(Type) && !entry.instance.$blac.disposed) entry.instance.dispose();
631
- }
632
- /**
633
- * Register a type for lifecycle event tracking
634
- * @param constructor - The StateContainer class constructor
635
- */
636
- registerType(constructor) {
637
- this.types.add(constructor);
638
- }
639
- /**
640
- * Register a StateContainer class with configuration
641
- * @param constructor - The StateContainer class constructor
642
- * @throws Error if type is already registered
643
- */
644
- register(constructor) {
645
- const className = constructor.name;
646
- if (this.registeredTypeNames.has(className)) throw new Error(`${BLAC_ERROR_PREFIX} Type "${className}" is already registered`);
647
- this.registeredTypeNames.add(className);
648
- this.registerType(constructor);
649
- }
650
- ensureInstancesMap(Type) {
651
- let instances = this.instancesByConstructor.get(Type);
652
- if (!instances) {
653
- instances = /* @__PURE__ */ new Map();
654
- this.instancesByConstructor.set(Type, instances);
655
- }
656
- return instances;
657
- }
658
- /**
659
- * Get the instances Map for a specific class (public API for stats/debugging)
660
- */
661
- getInstancesMap(Type) {
662
- return this.instancesByConstructor.get(Type) || /* @__PURE__ */ new Map();
663
- }
664
- /**
665
- * Directly insert an instance entry into the registry without going through
666
- * acquire/release. Creates the internal WeakMap bucket for the constructor if
667
- * it does not exist yet. Replaces any existing entry for the same key.
668
- *
669
- * The provided instance is NOT configured or disposed here — callers are
670
- * responsible for any initConfig / dispose calls. Intended for testing
671
- * helpers that create stubs outside the normal acquisition path.
672
- *
673
- * @internal Used by testing helpers only.
674
- */
675
- insertInstance(Type, instanceKey, instance, refs = /* @__PURE__ */ new Map()) {
676
- const instances = this.ensureInstancesMap(Type);
677
- const existingEntry = instances.get(instanceKey);
678
- if (existingEntry && existingEntry.instance !== instance && !existingEntry.instance.$blac.disposed) existingEntry.instance.dispose();
679
- instances.set(instanceKey, {
680
- instance,
681
- refs
682
- });
683
- }
684
- /**
685
- * Resolve the storage key for an instance. This is the single source of truth
686
- * for keying — `acquire` and `release` MUST agree, otherwise a ref taken under
687
- * an args-derived key is never dropped (instance leaks).
688
- *
689
- * Resolution order (explicit beats derived):
690
- * explicit key > `static key(args)` > structural hash of args > default sentinel.
691
- *
692
- * @param Type - The StateContainer class constructor
693
- * @param instanceKey - Explicit key, or undefined to derive from args
694
- * @param args - Construction args used for structural/`static key` derivation
695
- */
696
- resolveKey(Type, instanceKey, args) {
697
- if (instanceKey !== void 0) return instanceKey;
698
- const keyFn = getClassKey(Type);
699
- if (keyFn) return keyFn(args);
700
- if (args !== void 0) return structuralKey(args);
701
- return DEFAULT_STRUCTURAL_KEY;
702
- }
703
- /**
704
- * Circuit breaker for runaway instance creation. Throws when a single
705
- * constructor would exceed `maxInstancesPerType` live instances — almost
706
- * always an unstable instance key (e.g. a new object/array passed as `args`
707
- * every render, or a missing `static key`) leaking an instance per render.
708
- */
709
- assertInstanceLimit(Type, currentCount) {
710
- const limit = getBlacConfig().maxInstancesPerType;
711
- if (limit > 0 && currentCount >= limit) throw new Error(`${BLAC_ERROR_PREFIX} ${Type.name} exceeded the maximum of ${limit} live instances. This usually means the instance key is unstable — e.g. \`args\` that change identity every render, or a missing \`static key\` — so a new instance is created and never disposed (memory leak). Stabilize the key, add a \`static key(args)\`, or raise \`configureBlac({ maxInstancesPerType })\`.`);
712
- }
713
- /**
714
- * Circuit breaker for runaway reference growth. Throws when one instance
715
- * accumulates more than `maxRefsPerInstance` distinct live refs — almost
716
- * always consumer cleanup (e.g. `useBloc`'s unmount `release`) never firing.
717
- */
718
- assertRefLimit(Type, resolvedKey, refCount) {
719
- const limit = getBlacConfig().maxRefsPerInstance;
720
- if (limit > 0 && refCount > limit) throw new Error(`${BLAC_ERROR_PREFIX} ${Type.name} instance "${resolvedKey}" exceeded the maximum of ${limit} live references. This usually means references are acquired without a matching release (e.g. a consumer that never unmounts/cleans up), leaking refs that keep the instance alive forever. Ensure every acquire is paired with a release, or raise \`configureBlac({ maxRefsPerInstance })\`.`);
721
- }
722
- /**
723
- * Acquire an instance with ref tracking (ownership semantics).
724
- * Creates a new instance if one doesn't exist, or returns existing and adds a ref.
725
- * You must call `release()` with the same refId when done.
726
- *
727
- * @internal Internal key tier. Public callers use the args-based `acquire`
728
- * wrapper; `useBloc` and `watch` address a pre-resolved key here.
729
- * @param Type - The StateContainer class constructor
730
- * @param instanceKey - Pre-resolved instance key (defaults to 'default')
731
- * @param options - Acquisition options
732
- * @param options.canCreate - Whether to create new instance if not found (default: true)
733
- * @param options.countRef - Whether to add a reference (default: true)
734
- * @param options.refId - Named reference ID for debugging; auto-generated if omitted
735
- * @param options.dependent - The `depend()`-owner resolving this instance, if any;
736
- * recorded so its dependent edge can be released on the owner's disposal.
737
- * @returns The state container instance
738
- */
739
- acquire(Type, instanceKey, options = {}) {
740
- const { canCreate = true, countRef = true } = options;
741
- const args = options.args;
742
- const resolvedKey = this.resolveKey(Type, instanceKey, args);
743
- const config = {
744
- instanceId: resolvedKey,
745
- args
746
- };
747
- const instances = this.ensureInstancesMap(Type);
748
- let entry = instances.get(resolvedKey);
749
- if (entry?.instance.$blac.disposed) {
750
- instances.delete(resolvedKey);
751
- entry = void 0;
752
- }
753
- if (entry) {
754
- if (process.env.NODE_ENV !== "production" && args !== void 0 && entry.args !== void 0) {
755
- const incomingKey = structuralKey(args);
756
- const storedKey = entry.argsKey ??= structuralKey(entry.args);
757
- if (incomingKey !== storedKey) console.warn(`${BLAC_ERROR_PREFIX} ${Type.name} instance key "${resolvedKey}" was acquired with different args. Existing args: ${storedKey}, new args: ${incomingKey}. The existing instance will be reused. If distinct args should produce distinct instances, either remove the explicit instanceKey or provide a \`static key\` function that reflects the difference.`);
758
- }
759
- if (countRef) {
760
- const refId = options.refId ?? `_auto_${this._autoRefIdCounter++}`;
761
- entry.refs.set(refId, (entry.refs.get(refId) ?? 0) + 1);
762
- this.assertRefLimit(Type, resolvedKey, entry.refs.size);
763
- this.emit("refAcquired", entry.instance, refId);
764
- }
765
- if (options.dependent) (entry.dependents ??= /* @__PURE__ */ new Set()).add(options.dependent);
766
- return entry.instance;
767
- }
768
- if (!canCreate) throw new Error(`${BLAC_ERROR_PREFIX} ${Type.name} instance "${resolvedKey}" not found and creation is disabled.`);
769
- this.assertInstanceLimit(Type, instances.size);
770
- const instance = new Type();
771
- instance[INIT_CONFIG](config);
772
- const initialRefs = /* @__PURE__ */ new Map();
773
- let initialRefId;
774
- if (countRef) {
775
- initialRefId = options.refId ?? `_auto_${this._autoRefIdCounter++}`;
776
- initialRefs.set(initialRefId, 1);
777
- }
778
- const newEntry = {
779
- instance,
780
- refs: initialRefs,
781
- args
782
- };
783
- if (options.dependent) (newEntry.dependents ??= /* @__PURE__ */ new Set()).add(options.dependent);
784
- instances.set(resolvedKey, newEntry);
785
- this.registerType(Type);
786
- if (initialRefId) this.emit("refAcquired", instance, initialRefId);
787
- return instance;
788
- }
789
- /**
790
- * Borrow an existing instance without adding a ref (borrowing semantics).
791
- * Tracks cross-bloc dependency for reactive updates.
792
- *
793
- * @internal Internal key tier; public callers use the args-based `borrow`.
794
- * @param Type - The StateContainer class constructor
795
- * @param instanceKey - Pre-resolved instance key (defaults to 'default')
796
- * @returns The state container instance
797
- * @throws Error if instance doesn't exist
798
- */
799
- borrow(Type, instanceKey = BLAC_DEFAULTS.DEFAULT_INSTANCE_KEY) {
800
- return this.acquire(Type, instanceKey, {
801
- canCreate: false,
802
- countRef: false
803
- });
804
- }
805
- /**
806
- * Safely borrow an existing instance (borrowing semantics with error handling).
807
- * Returns discriminated union for type-safe conditional access.
808
- *
809
- * @internal Internal key tier; public callers use the args-based `borrowSafe`.
810
- * @param Type - The StateContainer class constructor
811
- * @param instanceKey - Pre-resolved instance key (defaults to 'default')
812
- * @returns Discriminated union with either the instance or an error
813
- */
814
- borrowSafe(Type, instanceKey = BLAC_DEFAULTS.DEFAULT_INSTANCE_KEY) {
815
- try {
816
- return {
817
- error: null,
818
- instance: this.borrow(Type, instanceKey)
819
- };
820
- } catch (error) {
821
- return {
822
- error,
823
- instance: null
824
- };
825
- }
826
- }
827
- /**
828
- * Ensure an instance exists without taking ownership (for bloc-to-bloc communication).
829
- * Gets existing instance OR creates it if it doesn't exist, without adding a ref.
830
- * Tracks cross-bloc dependency for reactive updates.
831
- *
832
- * Use this in bloc-to-bloc communication when you need to ensure an instance exists
833
- * but don't want to claim ownership (no ref added).
834
- *
835
- * @internal Internal key tier; public callers use the args-based `ensure`.
836
- * @param Type - The StateContainer class constructor
837
- * @param instanceKey - Pre-resolved instance key, or undefined to derive from `args`
838
- * (`static key(args)` / structural hash), matching `acquire`.
839
- * @param args - Construction args; used for keying when no explicit key is given
840
- * @returns The state container instance
841
- */
842
- ensure(Type, instanceKey, args) {
843
- return this.acquire(Type, instanceKey, {
844
- canCreate: true,
845
- countRef: false,
846
- args
847
- });
848
- }
849
- /**
850
- * Release a reference to an instance.
851
- * Removes the ref and disposes when refs is empty (unless keepAlive).
852
- * Releasing an already-removed refId is a no-op (idempotent).
853
- *
854
- * @internal Internal key tier; public callers use the args-based `release`.
855
- * @param Type - The StateContainer class constructor
856
- * @param instanceKey - Pre-resolved instance key (defaults to 'default')
857
- * @param forceDispose - Force immediate disposal regardless of refs
858
- * @param refId - The specific ref to remove; removes one arbitrary ref if omitted
859
- */
860
- release(Type, instanceKey = BLAC_DEFAULTS.DEFAULT_INSTANCE_KEY, forceDispose = false, refId) {
861
- const instances = this.ensureInstancesMap(Type);
862
- const entry = instances.get(instanceKey);
863
- if (!entry) return;
864
- if (forceDispose) {
865
- if (!entry.instance.$blac.disposed) entry.instance.dispose();
866
- instances.delete(instanceKey);
867
- return;
868
- }
869
- let releasedRefId;
870
- if (refId !== void 0) {
871
- const count = entry.refs.get(refId) ?? 0;
872
- if (count <= 1) entry.refs.delete(refId);
873
- else entry.refs.set(refId, count - 1);
874
- releasedRefId = refId;
875
- } else {
876
- const firstKey = entry.refs.keys().next().value;
877
- if (firstKey !== void 0) {
878
- const count = entry.refs.get(firstKey) ?? 0;
879
- if (count <= 1) entry.refs.delete(firstKey);
880
- else entry.refs.set(firstKey, count - 1);
881
- releasedRefId = firstKey;
882
- }
883
- }
884
- if (releasedRefId) this.emit("refReleased", entry.instance, releasedRefId);
885
- const keepAlive = isKeepAliveClass(Type);
886
- if (entry.refs.size === 0 && !keepAlive) {
887
- if (!entry.instance.$blac.disposed) entry.instance.dispose();
888
- instances.delete(instanceKey);
889
- }
890
- }
891
- /**
892
- * Get all instances of a specific type.
893
- * @param Type - The StateContainer class constructor
894
- * @returns Array of all instances
895
- */
896
- getAll(Type) {
897
- const instances = this.ensureInstancesMap(Type);
898
- const result = [];
899
- for (const entry of instances.values()) if (!entry.instance.$blac.disposed) result.push(entry.instance);
900
- return result;
901
- }
902
- /**
903
- * Safely iterate over all instances of a type.
904
- * Skips disposed instances and catches callback errors.
905
- * @param Type - The StateContainer class constructor
906
- * @param callback - Function to call for each instance
907
- */
908
- forEach(Type, callback) {
909
- const instances = this.ensureInstancesMap(Type);
910
- for (const entry of instances.values()) {
911
- const instance = entry.instance;
912
- if (!instance.$blac.disposed) try {
913
- callback(instance);
914
- } catch (error) {
915
- console.error(`${BLAC_ERROR_PREFIX} forEach callback error for ${Type.name}:`, error);
916
- }
917
- }
918
- }
919
- /**
920
- * Clear all instances of a specific type (disposes them).
921
- * @param Type - The StateContainer class constructor
922
- */
923
- clear(Type) {
924
- const instances = this.ensureInstancesMap(Type);
925
- for (const entry of instances.values()) if (!entry.instance.$blac.disposed) entry.instance.dispose();
926
- instances.clear();
927
- }
928
- /**
929
- * Get reference count for an instance (number of active refs).
930
- *
931
- * @internal Internal key tier; public callers use the args-based `getRefCount`.
932
- * @param Type - The StateContainer class constructor
933
- * @param instanceKey - Pre-resolved instance key (defaults to 'default')
934
- * @returns Current ref count (0 if instance doesn't exist)
935
- */
936
- getRefCount(Type, instanceKey = BLAC_DEFAULTS.DEFAULT_INSTANCE_KEY) {
937
- return this.ensureInstancesMap(Type).get(instanceKey)?.refs.size ?? 0;
938
- }
939
- /**
940
- * Get all active reference IDs for an instance.
941
- *
942
- * @internal Internal key tier; public callers use the args-based `getRefIds`.
943
- * @param Type - The StateContainer class constructor
944
- * @param instanceKey - Pre-resolved instance key (defaults to 'default')
945
- * @returns Array of ref ID strings (empty if instance doesn't exist)
946
- */
947
- getRefIds(Type, instanceKey = BLAC_DEFAULTS.DEFAULT_INSTANCE_KEY) {
948
- const instances = this.instancesByConstructor.get(Type);
949
- if (!instances) return [];
950
- const entry = instances.get(instanceKey);
951
- return entry ? Array.from(entry.refs.keys()) : [];
952
- }
953
- /**
954
- * Check if an instance exists.
955
- *
956
- * @internal Internal key tier; public callers use the args-based `hasInstance`.
957
- * @param Type - The StateContainer class constructor
958
- * @param instanceKey - Pre-resolved instance key (defaults to 'default')
959
- * @returns true if instance exists
960
- */
961
- hasInstance(Type, instanceKey = BLAC_DEFAULTS.DEFAULT_INSTANCE_KEY) {
962
- return this.ensureInstancesMap(Type).has(instanceKey);
963
- }
964
- /**
965
- * Clear all instances from all types (for testing)
966
- *
967
- * Iterates all registered types and clears their instances.
968
- * Also clears type tracking to reset the registry state.
969
- */
970
- clearAll() {
971
- for (const Type of this.types) this.clear(Type);
972
- this.types.clear();
973
- this.registeredTypeNames.clear();
974
- }
975
- /**
976
- * Get registry statistics for debugging.
977
- * @returns Object with registeredTypes, totalInstances, and typeBreakdown
978
- */
979
- getStats() {
980
- const typeBreakdown = {};
981
- let totalInstances = 0;
982
- for (const Type of this.types) {
983
- const typeName = Type.name;
984
- const count = this.getInstancesMap(Type).size;
985
- typeBreakdown[typeName] = count;
986
- totalInstances += count;
987
- }
988
- return {
989
- registeredTypes: this.types.size,
990
- totalInstances,
991
- typeBreakdown
992
- };
993
- }
994
- /**
995
- * Get all registered types (for plugin system).
996
- * @returns Array of all registered StateContainer class constructors
997
- */
998
- getTypes() {
999
- return Array.from(this.types);
1000
- }
1001
- /**
1002
- * Subscribe to lifecycle events
1003
- * @param event - The lifecycle event to listen for
1004
- * @param listener - The listener function to call when the event occurs
1005
- * @returns Unsubscribe function
1006
- */
1007
- on(event, listener) {
1008
- if (!this.listeners.has(event)) this.listeners.set(event, /* @__PURE__ */ new Set());
1009
- const instance = this.listeners.get(event);
1010
- if (!instance) throw new Error(`${BLAC_ERROR_PREFIX} Failed to register listener for event '${event}'`);
1011
- instance.add(listener);
1012
- if (event === "stateChanged") this._stateChangedListenerCount++;
1013
- return () => {
1014
- if (this.listeners.get(event)?.delete(listener) && event === "stateChanged") this._stateChangedListenerCount--;
1015
- };
1016
- }
1017
- emit(event, ...args) {
1018
- const listeners = this.listeners.get(event);
1019
- if (!listeners || listeners.size === 0) return;
1020
- for (const listener of listeners) try {
1021
- listener(...args);
1022
- } catch (error) {
1023
- console.error(`${BLAC_ERROR_PREFIX} Listener error for '${event}':`, error);
1024
- }
1025
- }
1026
- /**
1027
- * Schedule a deferred stateChanged notification via microtask.
1028
- * Skips entirely when no stateChanged listeners are registered.
1029
- * @internal - Called by StateContainer.applyState
1030
- */
1031
- notifyStateChanged(container, previousState, newState) {
1032
- if (this._stateChangedListenerCount === 0) return;
1033
- if (!this._pendingStateChanges) {
1034
- this._pendingStateChanges = [];
1035
- queueMicrotask(() => this.flushStateChanged());
1036
- }
1037
- this._pendingStateChanges.push([
1038
- container,
1039
- previousState,
1040
- newState
1041
- ]);
1042
- }
1043
- flushStateChanged() {
1044
- const pending = this._pendingStateChanges;
1045
- this._pendingStateChanges = null;
1046
- if (!pending) return;
1047
- for (const [container, prev, next] of pending) this.emit("stateChanged", container, prev, next);
1048
- }
1049
- };
1050
- /**
1051
- * Global default registry instance
1052
- */
1053
- const globalRegistry = new StateContainerRegistry();
1054
- /**
1055
- * Global plugin manager (initialized lazily)
1056
- */
1057
- let _globalPluginManager = null;
1058
- /**
1059
- * Get the global plugin manager
1060
- */
1061
- function getPluginManager() {
1062
- if (!_globalPluginManager) _globalPluginManager = createPluginManager(globalRegistry);
1063
- return _globalPluginManager;
1064
- }
1065
- //#endregion
1066
- Object.defineProperty(exports, "APPLY_DEPS", {
1067
- enumerable: true,
1068
- get: function() {
1069
- return APPLY_DEPS;
1070
- }
1071
- });
1072
- Object.defineProperty(exports, "BLAC_STATIC_PROPS", {
1073
- enumerable: true,
1074
- get: function() {
1075
- return BLAC_STATIC_PROPS;
1076
- }
1077
- });
1078
- Object.defineProperty(exports, "INIT_CONFIG", {
1079
- enumerable: true,
1080
- get: function() {
1081
- return INIT_CONFIG;
1082
- }
1083
- });
1084
- Object.defineProperty(exports, "ON_DISPOSE", {
1085
- enumerable: true,
1086
- get: function() {
1087
- return ON_DISPOSE;
1088
- }
1089
- });
1090
- Object.defineProperty(exports, "PluginManager", {
1091
- enumerable: true,
1092
- get: function() {
1093
- return PluginManager;
1094
- }
1095
- });
1096
- Object.defineProperty(exports, "REMOVE_DEPS_OWNER", {
1097
- enumerable: true,
1098
- get: function() {
1099
- return REMOVE_DEPS_OWNER;
1100
- }
1101
- });
1102
- Object.defineProperty(exports, "StateContainerRegistry", {
1103
- enumerable: true,
1104
- get: function() {
1105
- return StateContainerRegistry;
1106
- }
1107
- });
1108
- Object.defineProperty(exports, "configureBlac", {
1109
- enumerable: true,
1110
- get: function() {
1111
- return configureBlac;
1112
- }
1113
- });
1114
- Object.defineProperty(exports, "getBlacConfig", {
1115
- enumerable: true,
1116
- get: function() {
1117
- return getBlacConfig;
1118
- }
1119
- });
1120
- Object.defineProperty(exports, "getClassEquality", {
1121
- enumerable: true,
1122
- get: function() {
1123
- return getClassEquality;
1124
- }
1125
- });
1126
- Object.defineProperty(exports, "getPluginManager", {
1127
- enumerable: true,
1128
- get: function() {
1129
- return getPluginManager;
1130
- }
1131
- });
1132
- Object.defineProperty(exports, "globalRegistry", {
1133
- enumerable: true,
1134
- get: function() {
1135
- return globalRegistry;
1136
- }
1137
- });
1138
- Object.defineProperty(exports, "isExcludedFromDevTools", {
1139
- enumerable: true,
1140
- get: function() {
1141
- return isExcludedFromDevTools;
1142
- }
1143
- });
1144
- Object.defineProperty(exports, "isKeepAliveClass", {
1145
- enumerable: true,
1146
- get: function() {
1147
- return isKeepAliveClass;
1148
- }
1149
- });
1150
- Object.defineProperty(exports, "resetBlacConfig", {
1151
- enumerable: true,
1152
- get: function() {
1153
- return resetBlacConfig;
1154
- }
1155
- });
1156
- Object.defineProperty(exports, "shallowEqualState", {
1157
- enumerable: true,
1158
- get: function() {
1159
- return shallowEqualState;
1160
- }
1161
- });
1162
-
1163
- //# sourceMappingURL=StateContainerRegistry-CS18y4au.cjs.map