@blac/core 2.0.20 → 2.0.21

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 (283) hide show
  1. package/README.md +19 -29
  2. package/dist/{StateContainerRegistry-CSNm2Ws5.cjs → StateContainerRegistry-141uHhtF.cjs} +300 -397
  3. package/dist/StateContainerRegistry-141uHhtF.cjs.map +1 -0
  4. package/dist/{StateContainerRegistry-CvBOhAT2.js → StateContainerRegistry-vWgsD-RP.js} +277 -392
  5. package/dist/StateContainerRegistry-vWgsD-RP.js.map +1 -0
  6. package/dist/config.d.cts +2 -2
  7. package/dist/config.d.ts +2 -2
  8. package/dist/constants.d.cts +11 -20
  9. package/dist/constants.d.ts +11 -20
  10. package/dist/core/Cubit.d.ts +14 -10
  11. package/dist/core/StateContainer.d.ts +55 -4
  12. package/dist/core/StateContainerRegistry.d.ts +94 -18
  13. package/dist/core/meta.d.ts +5 -11
  14. package/dist/core/symbols.d.ts +18 -1
  15. package/dist/decorators/blac.d.ts +28 -26
  16. package/dist/{ensure-B2DYCbbI.cjs → ensure-ORVw-WRE.cjs} +214 -39
  17. package/dist/ensure-ORVw-WRE.cjs.map +1 -0
  18. package/dist/{ensure-BSJHkUNX.js → ensure-k-6q7O25.js} +183 -38
  19. package/dist/ensure-k-6q7O25.js.map +1 -0
  20. package/dist/index.cjs +212 -32
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +4 -6
  23. package/dist/index.d.ts +4 -6
  24. package/dist/index.js +192 -12
  25. package/dist/index.js.map +1 -1
  26. package/dist/plugin/BlacPlugin.d.ts +14 -0
  27. package/dist/plugin/PluginManager.d.ts +12 -7
  28. package/dist/plugins.cjs +400 -3
  29. package/dist/plugins.cjs.map +1 -0
  30. package/dist/plugins.d.cts +6 -2
  31. package/dist/plugins.d.ts +6 -2
  32. package/dist/plugins.js +398 -1
  33. package/dist/plugins.js.map +1 -0
  34. package/dist/registry/acquire.d.ts +2 -2
  35. package/dist/registry/config.d.ts +9 -0
  36. package/dist/registry/management.d.ts +3 -0
  37. package/dist/registry/queries.d.ts +15 -0
  38. package/dist/registry/release.d.ts +3 -3
  39. package/dist/testing.cjs +13 -15
  40. package/dist/testing.cjs.map +1 -1
  41. package/dist/testing.d.cts +1 -1
  42. package/dist/testing.d.ts +1 -1
  43. package/dist/testing.js +2 -4
  44. package/dist/testing.js.map +1 -1
  45. package/dist/types/branded.d.ts +3 -3
  46. package/dist/types/utilities.d.ts +45 -18
  47. package/dist/utils/static-props.d.ts +25 -1
  48. package/dist/utils/structural-key.d.ts +0 -7
  49. package/dist/watch/index.d.ts +1 -1
  50. package/dist/watch/watch.d.ts +22 -3
  51. package/package.json +17 -55
  52. package/dist/StateContainerRegistry-4Ljd9EJx.js +0 -1018
  53. package/dist/StateContainerRegistry-4Ljd9EJx.js.map +0 -1
  54. package/dist/StateContainerRegistry-8zNFMAf7.js +0 -1067
  55. package/dist/StateContainerRegistry-8zNFMAf7.js.map +0 -1
  56. package/dist/StateContainerRegistry-B1GYx9Xo.js +0 -975
  57. package/dist/StateContainerRegistry-B1GYx9Xo.js.map +0 -1
  58. package/dist/StateContainerRegistry-B_ViBLvJ.js +0 -975
  59. package/dist/StateContainerRegistry-B_ViBLvJ.js.map +0 -1
  60. package/dist/StateContainerRegistry-Bx2ly-ba.cjs +0 -1162
  61. package/dist/StateContainerRegistry-Bx2ly-ba.cjs.map +0 -1
  62. package/dist/StateContainerRegistry-C0dCNlTF.js +0 -1005
  63. package/dist/StateContainerRegistry-C0dCNlTF.js.map +0 -1
  64. package/dist/StateContainerRegistry-CEWpc1bj.cjs +0 -1113
  65. package/dist/StateContainerRegistry-CEWpc1bj.cjs.map +0 -1
  66. package/dist/StateContainerRegistry-CS18y4au.cjs +0 -1163
  67. package/dist/StateContainerRegistry-CS18y4au.cjs.map +0 -1
  68. package/dist/StateContainerRegistry-CSNm2Ws5.cjs.map +0 -1
  69. package/dist/StateContainerRegistry-CchRjnjX.cjs +0 -1094
  70. package/dist/StateContainerRegistry-CchRjnjX.cjs.map +0 -1
  71. package/dist/StateContainerRegistry-CvBOhAT2.js.map +0 -1
  72. package/dist/StateContainerRegistry-D8nu7Z0T.js +0 -1068
  73. package/dist/StateContainerRegistry-D8nu7Z0T.js.map +0 -1
  74. package/dist/StateContainerRegistry-D9BIRjwv.cjs +0 -1088
  75. package/dist/StateContainerRegistry-D9BIRjwv.cjs.map +0 -1
  76. package/dist/StateContainerRegistry-DJQqLrli.cjs +0 -1046
  77. package/dist/StateContainerRegistry-DJQqLrli.cjs.map +0 -1
  78. package/dist/StateContainerRegistry-DVIBTxGZ.js +0 -999
  79. package/dist/StateContainerRegistry-DVIBTxGZ.js.map +0 -1
  80. package/dist/StateContainerRegistry-Dj77cok9.js +0 -1005
  81. package/dist/StateContainerRegistry-Dj77cok9.js.map +0 -1
  82. package/dist/StateContainerRegistry-FWKzPfS-.cjs +0 -1046
  83. package/dist/StateContainerRegistry-FWKzPfS-.cjs.map +0 -1
  84. package/dist/StateContainerRegistry-lIwo-0m3.cjs +0 -1094
  85. package/dist/StateContainerRegistry-lIwo-0m3.cjs.map +0 -1
  86. package/dist/acquire-B1LYXSGj.js +0 -35
  87. package/dist/acquire-B1LYXSGj.js.map +0 -1
  88. package/dist/acquire-B1Wuqla6.cjs +0 -46
  89. package/dist/acquire-B1Wuqla6.cjs.map +0 -1
  90. package/dist/acquire-BJ3xUEmh.cjs +0 -46
  91. package/dist/acquire-BJ3xUEmh.cjs.map +0 -1
  92. package/dist/acquire-BP-ZfUH2.js +0 -35
  93. package/dist/acquire-BP-ZfUH2.js.map +0 -1
  94. package/dist/acquire-BRIJVJaA.js +0 -35
  95. package/dist/acquire-BRIJVJaA.js.map +0 -1
  96. package/dist/acquire-BZIs6tpN.cjs +0 -46
  97. package/dist/acquire-BZIs6tpN.cjs.map +0 -1
  98. package/dist/acquire-B_p1fNEh.cjs +0 -46
  99. package/dist/acquire-B_p1fNEh.cjs.map +0 -1
  100. package/dist/acquire-BdsVZBSe.js +0 -35
  101. package/dist/acquire-BdsVZBSe.js.map +0 -1
  102. package/dist/acquire-C3nOb3XR.cjs +0 -46
  103. package/dist/acquire-C3nOb3XR.cjs.map +0 -1
  104. package/dist/acquire-C4WAS13G.cjs +0 -46
  105. package/dist/acquire-C4WAS13G.cjs.map +0 -1
  106. package/dist/acquire-C7beGI55.cjs +0 -46
  107. package/dist/acquire-C7beGI55.cjs.map +0 -1
  108. package/dist/acquire-CbMz7gWs.cjs +0 -46
  109. package/dist/acquire-CbMz7gWs.cjs.map +0 -1
  110. package/dist/acquire-CwB083au.js +0 -35
  111. package/dist/acquire-CwB083au.js.map +0 -1
  112. package/dist/acquire-DHEOEVcj.cjs +0 -46
  113. package/dist/acquire-DHEOEVcj.cjs.map +0 -1
  114. package/dist/acquire-DXEQDZGr.js +0 -35
  115. package/dist/acquire-DXEQDZGr.js.map +0 -1
  116. package/dist/acquire-Dg-uXwjF.js +0 -35
  117. package/dist/acquire-Dg-uXwjF.js.map +0 -1
  118. package/dist/acquire-Don7499S.js +0 -35
  119. package/dist/acquire-Don7499S.js.map +0 -1
  120. package/dist/acquire-G8aB3GAx.js +0 -35
  121. package/dist/acquire-G8aB3GAx.js.map +0 -1
  122. package/dist/branded-BybA0_xw.cjs +0 -18
  123. package/dist/branded-BybA0_xw.cjs.map +0 -1
  124. package/dist/branded-DkbUzncc.js +0 -13
  125. package/dist/branded-DkbUzncc.js.map +0 -1
  126. package/dist/config-8pyOC5gv.js +0 -16
  127. package/dist/config-8pyOC5gv.js.map +0 -1
  128. package/dist/config-B1l8ZGlU.cjs +0 -32
  129. package/dist/config-B1l8ZGlU.cjs.map +0 -1
  130. package/dist/config-C7Ktkjh2.cjs +0 -32
  131. package/dist/config-C7Ktkjh2.cjs.map +0 -1
  132. package/dist/config-COT4Xkbc.js +0 -16
  133. package/dist/config-COT4Xkbc.js.map +0 -1
  134. package/dist/config-CzcoAvBo.js +0 -16
  135. package/dist/config-CzcoAvBo.js.map +0 -1
  136. package/dist/config-D6BoWWPv.js +0 -16
  137. package/dist/config-D6BoWWPv.js.map +0 -1
  138. package/dist/config-DOO82lbZ.js +0 -16
  139. package/dist/config-DOO82lbZ.js.map +0 -1
  140. package/dist/config-DVM_ESQt.js +0 -16
  141. package/dist/config-DVM_ESQt.js.map +0 -1
  142. package/dist/config-DVMnlHLv.cjs +0 -32
  143. package/dist/config-DVMnlHLv.cjs.map +0 -1
  144. package/dist/config-DWUq7zEQ.cjs +0 -32
  145. package/dist/config-DWUq7zEQ.cjs.map +0 -1
  146. package/dist/config-DXI3kzmA.js +0 -16
  147. package/dist/config-DXI3kzmA.js.map +0 -1
  148. package/dist/config-Dk1FxfXj.js +0 -16
  149. package/dist/config-Dk1FxfXj.js.map +0 -1
  150. package/dist/config-b2z51Y_C.cjs +0 -32
  151. package/dist/config-b2z51Y_C.cjs.map +0 -1
  152. package/dist/config-buwpT7l3.js +0 -16
  153. package/dist/config-buwpT7l3.js.map +0 -1
  154. package/dist/config-cwaTn5oy.cjs +0 -32
  155. package/dist/config-cwaTn5oy.cjs.map +0 -1
  156. package/dist/config-d9_U58ef.cjs +0 -32
  157. package/dist/config-d9_U58ef.cjs.map +0 -1
  158. package/dist/config-hWTayX76.cjs +0 -32
  159. package/dist/config-hWTayX76.cjs.map +0 -1
  160. package/dist/config-sCPKPYxZ.cjs +0 -32
  161. package/dist/config-sCPKPYxZ.cjs.map +0 -1
  162. package/dist/debug.cjs +0 -14
  163. package/dist/debug.d.cts +0 -34
  164. package/dist/debug.d.ts +0 -34
  165. package/dist/debug.js +0 -4
  166. package/dist/ensure-B1dEDsZV.cjs +0 -559
  167. package/dist/ensure-B1dEDsZV.cjs.map +0 -1
  168. package/dist/ensure-B2DYCbbI.cjs.map +0 -1
  169. package/dist/ensure-B59ri8oo.js +0 -555
  170. package/dist/ensure-B59ri8oo.js.map +0 -1
  171. package/dist/ensure-B9oOqpOB.cjs +0 -558
  172. package/dist/ensure-B9oOqpOB.cjs.map +0 -1
  173. package/dist/ensure-BKdq5xsY.cjs +0 -578
  174. package/dist/ensure-BKdq5xsY.cjs.map +0 -1
  175. package/dist/ensure-BSJHkUNX.js.map +0 -1
  176. package/dist/ensure-BfYnvAsI.js +0 -709
  177. package/dist/ensure-BfYnvAsI.js.map +0 -1
  178. package/dist/ensure-Bm91o37h.js +0 -536
  179. package/dist/ensure-Bm91o37h.js.map +0 -1
  180. package/dist/ensure-C1a8IFWy.js +0 -535
  181. package/dist/ensure-C1a8IFWy.js.map +0 -1
  182. package/dist/ensure-CLQEx0Nn.cjs +0 -528
  183. package/dist/ensure-CLQEx0Nn.cjs.map +0 -1
  184. package/dist/ensure-CPMiGvov.js +0 -493
  185. package/dist/ensure-CPMiGvov.js.map +0 -1
  186. package/dist/ensure-CQimeD0I.cjs +0 -559
  187. package/dist/ensure-CQimeD0I.cjs.map +0 -1
  188. package/dist/ensure-DEXSmA-N.js +0 -526
  189. package/dist/ensure-DEXSmA-N.js.map +0 -1
  190. package/dist/ensure-DTTTd2h8.js +0 -536
  191. package/dist/ensure-DTTTd2h8.js.map +0 -1
  192. package/dist/ensure-Dx86f80B.cjs +0 -567
  193. package/dist/ensure-Dx86f80B.cjs.map +0 -1
  194. package/dist/ensure-DzqGej43.js +0 -526
  195. package/dist/ensure-DzqGej43.js.map +0 -1
  196. package/dist/ensure-VuiNPccZ.cjs +0 -559
  197. package/dist/ensure-VuiNPccZ.cjs.map +0 -1
  198. package/dist/ensure-_Oh8XPm4.cjs +0 -732
  199. package/dist/ensure-_Oh8XPm4.cjs.map +0 -1
  200. package/dist/ensure-fsQMjaQL.cjs +0 -567
  201. package/dist/ensure-fsQMjaQL.cjs.map +0 -1
  202. package/dist/ensure-vxAGa2v3.js +0 -536
  203. package/dist/ensure-vxAGa2v3.js.map +0 -1
  204. package/dist/management-14vsHr4t.cjs +0 -85
  205. package/dist/management-14vsHr4t.cjs.map +0 -1
  206. package/dist/management-444tdCBG.js +0 -38
  207. package/dist/management-444tdCBG.js.map +0 -1
  208. package/dist/management-7jLjVHJd.js +0 -38
  209. package/dist/management-7jLjVHJd.js.map +0 -1
  210. package/dist/management-AFuqQEwz.js +0 -38
  211. package/dist/management-AFuqQEwz.js.map +0 -1
  212. package/dist/management-BodVLAfJ.cjs +0 -85
  213. package/dist/management-BodVLAfJ.cjs.map +0 -1
  214. package/dist/management-BqGBdL01.js +0 -38
  215. package/dist/management-BqGBdL01.js.map +0 -1
  216. package/dist/management-BvUAjril.js +0 -38
  217. package/dist/management-BvUAjril.js.map +0 -1
  218. package/dist/management-C-WGcwPD.js +0 -38
  219. package/dist/management-C-WGcwPD.js.map +0 -1
  220. package/dist/management-C2wv4vGS.cjs +0 -85
  221. package/dist/management-C2wv4vGS.cjs.map +0 -1
  222. package/dist/management-D2pjr38g.js +0 -38
  223. package/dist/management-D2pjr38g.js.map +0 -1
  224. package/dist/management-D5WsZoTV.js +0 -38
  225. package/dist/management-D5WsZoTV.js.map +0 -1
  226. package/dist/management-DAV9sN-k.cjs +0 -85
  227. package/dist/management-DAV9sN-k.cjs.map +0 -1
  228. package/dist/management-Df7Y2sF1.cjs +0 -85
  229. package/dist/management-Df7Y2sF1.cjs.map +0 -1
  230. package/dist/management-DwO0nBzL.cjs +0 -85
  231. package/dist/management-DwO0nBzL.cjs.map +0 -1
  232. package/dist/management-GcnNJjnm.cjs +0 -85
  233. package/dist/management-GcnNJjnm.cjs.map +0 -1
  234. package/dist/management-P_Vi_cvw.js +0 -38
  235. package/dist/management-P_Vi_cvw.js.map +0 -1
  236. package/dist/management-QWLpbXlW.cjs +0 -85
  237. package/dist/management-QWLpbXlW.cjs.map +0 -1
  238. package/dist/management-iE4x6IQY.cjs +0 -85
  239. package/dist/management-iE4x6IQY.cjs.map +0 -1
  240. package/dist/types.cjs +0 -3
  241. package/dist/types.d.cts +0 -8
  242. package/dist/types.d.ts +0 -8
  243. package/dist/types.js +0 -2
  244. package/dist/watch-B0pUfh-v.cjs +0 -119
  245. package/dist/watch-B0pUfh-v.cjs.map +0 -1
  246. package/dist/watch-B91opmva.cjs +0 -70
  247. package/dist/watch-B91opmva.cjs.map +0 -1
  248. package/dist/watch-BHfCtbn1.cjs +0 -119
  249. package/dist/watch-BHfCtbn1.cjs.map +0 -1
  250. package/dist/watch-BmC-Tyqg.js +0 -59
  251. package/dist/watch-BmC-Tyqg.js.map +0 -1
  252. package/dist/watch-Bx0y-Kcc.js +0 -108
  253. package/dist/watch-Bx0y-Kcc.js.map +0 -1
  254. package/dist/watch-CKWt788i.cjs +0 -70
  255. package/dist/watch-CKWt788i.cjs.map +0 -1
  256. package/dist/watch-CfrSSrRY.js +0 -59
  257. package/dist/watch-CfrSSrRY.js.map +0 -1
  258. package/dist/watch-Cnh3PtQA.cjs +0 -70
  259. package/dist/watch-Cnh3PtQA.cjs.map +0 -1
  260. package/dist/watch-D01MdwKy.js +0 -108
  261. package/dist/watch-D01MdwKy.js.map +0 -1
  262. package/dist/watch-D8hwbFU1.js +0 -59
  263. package/dist/watch-D8hwbFU1.js.map +0 -1
  264. package/dist/watch-DPVUwPUY.js +0 -59
  265. package/dist/watch-DPVUwPUY.js.map +0 -1
  266. package/dist/watch-DVmvZBMD.cjs +0 -70
  267. package/dist/watch-DVmvZBMD.cjs.map +0 -1
  268. package/dist/watch-DkDGmGAx.cjs +0 -119
  269. package/dist/watch-DkDGmGAx.cjs.map +0 -1
  270. package/dist/watch-DttHqefn.js +0 -108
  271. package/dist/watch-DttHqefn.js.map +0 -1
  272. package/dist/watch-DxdIZjpt.cjs +0 -119
  273. package/dist/watch-DxdIZjpt.cjs.map +0 -1
  274. package/dist/watch-DztcJuUy.cjs +0 -119
  275. package/dist/watch-DztcJuUy.cjs.map +0 -1
  276. package/dist/watch-IrR8G28N.js +0 -108
  277. package/dist/watch-IrR8G28N.js.map +0 -1
  278. package/dist/watch-entry.cjs +0 -4
  279. package/dist/watch-entry.d.cts +0 -24
  280. package/dist/watch-entry.d.ts +0 -24
  281. package/dist/watch-entry.js +0 -2
  282. package/dist/watch-hx0r92Zc.js +0 -108
  283. package/dist/watch-hx0r92Zc.js.map +0 -1
@@ -1,46 +0,0 @@
1
- const require_config = require("./config-B1l8ZGlU.cjs");
2
- //#region src/registry/acquire.ts
3
- /**
4
- * Acquire an instance with ref tracking (ownership semantics). Instance
5
- * identity is derived purely from `args` (via the class's `static key(args)`,
6
- * a structural hash of `args`, or the default sentinel when there are none).
7
- *
8
- * @param BlocClass - The StateContainer class constructor
9
- * @param opts.args - Construction/identity args; derives the instance key
10
- * @param opts.refId - Named reference ID for debugging; auto-generated if omitted
11
- */
12
- function acquire(BlocClass, opts) {
13
- const registry = require_config.getRegistry();
14
- const key = registry.resolveKey(BlocClass, void 0, opts?.args);
15
- return registry.acquire(BlocClass, key, {
16
- canCreate: true,
17
- countRef: true,
18
- refId: opts?.refId,
19
- args: opts?.args
20
- });
21
- }
22
- /**
23
- * Resolve the storage key an instance would be acquired under, given its
24
- * construction `args`. This is the canonical key-computation path. Callers that
25
- * both acquire and release against the `@internal` registry tier (e.g.
26
- * `@blac/react` `useBloc`) must use this once and pass the same resolved key to
27
- * both, so the ref is dropped under the key it was taken.
28
- */
29
- function resolveInstanceKey(BlocClass, args) {
30
- return require_config.getRegistry().resolveKey(BlocClass, void 0, args);
31
- }
32
- //#endregion
33
- Object.defineProperty(exports, "acquire", {
34
- enumerable: true,
35
- get: function() {
36
- return acquire;
37
- }
38
- });
39
- Object.defineProperty(exports, "resolveInstanceKey", {
40
- enumerable: true,
41
- get: function() {
42
- return resolveInstanceKey;
43
- }
44
- });
45
-
46
- //# sourceMappingURL=acquire-C4WAS13G.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acquire-C4WAS13G.cjs","names":["getRegistry"],"sources":["../src/registry/acquire.ts"],"sourcesContent":["import { getRegistry } from './config';\nimport type {\n ExtractArgs,\n StateContainerConstructor,\n} from '../types/utilities';\n\n/**\n * Acquire an instance with ref tracking (ownership semantics). Instance\n * identity is derived purely from `args` (via the class's `static key(args)`,\n * a structural hash of `args`, or the default sentinel when there are none).\n *\n * @param BlocClass - The StateContainer class constructor\n * @param opts.args - Construction/identity args; derives the instance key\n * @param opts.refId - Named reference ID for debugging; auto-generated if omitted\n */\nexport function acquire<T extends StateContainerConstructor>(\n BlocClass: T,\n opts?: { args?: ExtractArgs<T>; refId?: string },\n): InstanceType<T> {\n const registry = getRegistry();\n const key = registry.resolveKey(BlocClass, undefined, opts?.args);\n return registry.acquire(BlocClass, key, {\n canCreate: true,\n countRef: true,\n refId: opts?.refId,\n args: opts?.args,\n });\n}\n\n/**\n * Resolve the storage key an instance would be acquired under, given its\n * construction `args`. This is the canonical key-computation path. Callers that\n * both acquire and release against the `@internal` registry tier (e.g.\n * `@blac/react` `useBloc`) must use this once and pass the same resolved key to\n * both, so the ref is dropped under the key it was taken.\n */\nexport function resolveInstanceKey<T extends StateContainerConstructor>(\n BlocClass: T,\n args?: ExtractArgs<T>,\n): string {\n return getRegistry().resolveKey(BlocClass, undefined, args);\n}\n"],"mappings":";;;;;;;;;;;AAeA,SAAgB,QACd,WACA,MACiB;CACjB,MAAM,WAAWA,eAAAA,YAAY;CAC7B,MAAM,MAAM,SAAS,WAAW,WAAW,KAAA,GAAW,MAAM,IAAI;CAChE,OAAO,SAAS,QAAQ,WAAW,KAAK;EACtC,WAAW;EACX,UAAU;EACV,OAAO,MAAM;EACb,MAAM,MAAM;CACd,CAAC;AACH;;;;;;;;AASA,SAAgB,mBACd,WACA,MACQ;CACR,OAAOA,eAAAA,YAAY,EAAE,WAAW,WAAW,KAAA,GAAW,IAAI;AAC5D"}
@@ -1,46 +0,0 @@
1
- const require_config = require("./config-hWTayX76.cjs");
2
- //#region src/registry/acquire.ts
3
- /**
4
- * Acquire an instance with ref tracking (ownership semantics). Instance
5
- * identity is derived purely from `args` (via the class's `static key(args)`,
6
- * a structural hash of `args`, or the default sentinel when there are none).
7
- *
8
- * @param BlocClass - The StateContainer class constructor
9
- * @param opts.args - Construction/identity args; derives the instance key
10
- * @param opts.refId - Named reference ID for debugging; auto-generated if omitted
11
- */
12
- function acquire(BlocClass, opts) {
13
- const registry = require_config.getRegistry();
14
- const key = registry.resolveKey(BlocClass, void 0, opts?.args);
15
- return registry.acquire(BlocClass, key, {
16
- canCreate: true,
17
- countRef: true,
18
- refId: opts?.refId,
19
- args: opts?.args
20
- });
21
- }
22
- /**
23
- * Resolve the storage key an instance would be acquired under, given its
24
- * construction `args`. This is the canonical key-computation path. Callers that
25
- * both acquire and release against the `@internal` registry tier (e.g.
26
- * `@blac/react` `useBloc`) must use this once and pass the same resolved key to
27
- * both, so the ref is dropped under the key it was taken.
28
- */
29
- function resolveInstanceKey(BlocClass, args) {
30
- return require_config.getRegistry().resolveKey(BlocClass, void 0, args);
31
- }
32
- //#endregion
33
- Object.defineProperty(exports, "acquire", {
34
- enumerable: true,
35
- get: function() {
36
- return acquire;
37
- }
38
- });
39
- Object.defineProperty(exports, "resolveInstanceKey", {
40
- enumerable: true,
41
- get: function() {
42
- return resolveInstanceKey;
43
- }
44
- });
45
-
46
- //# sourceMappingURL=acquire-C7beGI55.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acquire-C7beGI55.cjs","names":["getRegistry"],"sources":["../src/registry/acquire.ts"],"sourcesContent":["import { getRegistry } from './config';\nimport type {\n ExtractArgs,\n StateContainerConstructor,\n} from '../types/utilities';\n\n/**\n * Acquire an instance with ref tracking (ownership semantics). Instance\n * identity is derived purely from `args` (via the class's `static key(args)`,\n * a structural hash of `args`, or the default sentinel when there are none).\n *\n * @param BlocClass - The StateContainer class constructor\n * @param opts.args - Construction/identity args; derives the instance key\n * @param opts.refId - Named reference ID for debugging; auto-generated if omitted\n */\nexport function acquire<T extends StateContainerConstructor>(\n BlocClass: T,\n opts?: { args?: ExtractArgs<T>; refId?: string },\n): InstanceType<T> {\n const registry = getRegistry();\n const key = registry.resolveKey(BlocClass, undefined, opts?.args);\n return registry.acquire(BlocClass, key, {\n canCreate: true,\n countRef: true,\n refId: opts?.refId,\n args: opts?.args,\n });\n}\n\n/**\n * Resolve the storage key an instance would be acquired under, given its\n * construction `args`. This is the canonical key-computation path. Callers that\n * both acquire and release against the `@internal` registry tier (e.g.\n * `@blac/react` `useBloc`) must use this once and pass the same resolved key to\n * both, so the ref is dropped under the key it was taken.\n */\nexport function resolveInstanceKey<T extends StateContainerConstructor>(\n BlocClass: T,\n args?: ExtractArgs<T>,\n): string {\n return getRegistry().resolveKey(BlocClass, undefined, args);\n}\n"],"mappings":";;;;;;;;;;;AAeA,SAAgB,QACd,WACA,MACiB;CACjB,MAAM,WAAWA,eAAAA,YAAY;CAC7B,MAAM,MAAM,SAAS,WAAW,WAAW,KAAA,GAAW,MAAM,IAAI;CAChE,OAAO,SAAS,QAAQ,WAAW,KAAK;EACtC,WAAW;EACX,UAAU;EACV,OAAO,MAAM;EACb,MAAM,MAAM;CACd,CAAC;AACH;;;;;;;;AASA,SAAgB,mBACd,WACA,MACQ;CACR,OAAOA,eAAAA,YAAY,EAAE,WAAW,WAAW,KAAA,GAAW,IAAI;AAC5D"}
@@ -1,46 +0,0 @@
1
- const require_config = require("./config-sCPKPYxZ.cjs");
2
- //#region src/registry/acquire.ts
3
- /**
4
- * Acquire an instance with ref tracking (ownership semantics). Instance
5
- * identity is derived purely from `args` (via the class's `static key(args)`,
6
- * a structural hash of `args`, or the default sentinel when there are none).
7
- *
8
- * @param BlocClass - The StateContainer class constructor
9
- * @param opts.args - Construction/identity args; derives the instance key
10
- * @param opts.refId - Named reference ID for debugging; auto-generated if omitted
11
- */
12
- function acquire(BlocClass, opts) {
13
- const registry = require_config.getRegistry();
14
- const key = registry.resolveKey(BlocClass, void 0, opts?.args);
15
- return registry.acquire(BlocClass, key, {
16
- canCreate: true,
17
- countRef: true,
18
- refId: opts?.refId,
19
- args: opts?.args
20
- });
21
- }
22
- /**
23
- * Resolve the storage key an instance would be acquired under, given its
24
- * construction `args`. This is the canonical key-computation path. Callers that
25
- * both acquire and release against the `@internal` registry tier (e.g.
26
- * `@blac/react` `useBloc`) must use this once and pass the same resolved key to
27
- * both, so the ref is dropped under the key it was taken.
28
- */
29
- function resolveInstanceKey(BlocClass, args) {
30
- return require_config.getRegistry().resolveKey(BlocClass, void 0, args);
31
- }
32
- //#endregion
33
- Object.defineProperty(exports, "acquire", {
34
- enumerable: true,
35
- get: function() {
36
- return acquire;
37
- }
38
- });
39
- Object.defineProperty(exports, "resolveInstanceKey", {
40
- enumerable: true,
41
- get: function() {
42
- return resolveInstanceKey;
43
- }
44
- });
45
-
46
- //# sourceMappingURL=acquire-CbMz7gWs.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acquire-CbMz7gWs.cjs","names":["getRegistry"],"sources":["../src/registry/acquire.ts"],"sourcesContent":["import { getRegistry } from './config';\nimport type {\n ExtractArgs,\n StateContainerConstructor,\n} from '../types/utilities';\n\n/**\n * Acquire an instance with ref tracking (ownership semantics). Instance\n * identity is derived purely from `args` (via the class's `static key(args)`,\n * a structural hash of `args`, or the default sentinel when there are none).\n *\n * @param BlocClass - The StateContainer class constructor\n * @param opts.args - Construction/identity args; derives the instance key\n * @param opts.refId - Named reference ID for debugging; auto-generated if omitted\n */\nexport function acquire<T extends StateContainerConstructor>(\n BlocClass: T,\n opts?: { args?: ExtractArgs<T>; refId?: string },\n): InstanceType<T> {\n const registry = getRegistry();\n const key = registry.resolveKey(BlocClass, undefined, opts?.args);\n return registry.acquire(BlocClass, key, {\n canCreate: true,\n countRef: true,\n refId: opts?.refId,\n args: opts?.args,\n });\n}\n\n/**\n * Resolve the storage key an instance would be acquired under, given its\n * construction `args`. This is the canonical key-computation path. Callers that\n * both acquire and release against the `@internal` registry tier (e.g.\n * `@blac/react` `useBloc`) must use this once and pass the same resolved key to\n * both, so the ref is dropped under the key it was taken.\n */\nexport function resolveInstanceKey<T extends StateContainerConstructor>(\n BlocClass: T,\n args?: ExtractArgs<T>,\n): string {\n return getRegistry().resolveKey(BlocClass, undefined, args);\n}\n"],"mappings":";;;;;;;;;;;AAeA,SAAgB,QACd,WACA,MACiB;CACjB,MAAM,WAAWA,eAAAA,YAAY;CAC7B,MAAM,MAAM,SAAS,WAAW,WAAW,KAAA,GAAW,MAAM,IAAI;CAChE,OAAO,SAAS,QAAQ,WAAW,KAAK;EACtC,WAAW;EACX,UAAU;EACV,OAAO,MAAM;EACb,MAAM,MAAM;CACd,CAAC;AACH;;;;;;;;AASA,SAAgB,mBACd,WACA,MACQ;CACR,OAAOA,eAAAA,YAAY,EAAE,WAAW,WAAW,KAAA,GAAW,IAAI;AAC5D"}
@@ -1,35 +0,0 @@
1
- import { t as getRegistry } from "./config-COT4Xkbc.js";
2
- //#region src/registry/acquire.ts
3
- /**
4
- * Acquire an instance with ref tracking (ownership semantics). Instance
5
- * identity is derived purely from `args` (via the class's `static key(args)`,
6
- * a structural hash of `args`, or the default sentinel when there are none).
7
- *
8
- * @param BlocClass - The StateContainer class constructor
9
- * @param opts.args - Construction/identity args; derives the instance key
10
- * @param opts.refId - Named reference ID for debugging; auto-generated if omitted
11
- */
12
- function acquire(BlocClass, opts) {
13
- const registry = getRegistry();
14
- const key = registry.resolveKey(BlocClass, void 0, opts?.args);
15
- return registry.acquire(BlocClass, key, {
16
- canCreate: true,
17
- countRef: true,
18
- refId: opts?.refId,
19
- args: opts?.args
20
- });
21
- }
22
- /**
23
- * Resolve the storage key an instance would be acquired under, given its
24
- * construction `args`. This is the canonical key-computation path. Callers that
25
- * both acquire and release against the `@internal` registry tier (e.g.
26
- * `@blac/react` `useBloc`) must use this once and pass the same resolved key to
27
- * both, so the ref is dropped under the key it was taken.
28
- */
29
- function resolveInstanceKey(BlocClass, args) {
30
- return getRegistry().resolveKey(BlocClass, void 0, args);
31
- }
32
- //#endregion
33
- export { resolveInstanceKey as n, acquire as t };
34
-
35
- //# sourceMappingURL=acquire-CwB083au.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acquire-CwB083au.js","names":[],"sources":["../src/registry/acquire.ts"],"sourcesContent":["import { getRegistry } from './config';\nimport type {\n ExtractArgs,\n StateContainerConstructor,\n} from '../types/utilities';\n\n/**\n * Acquire an instance with ref tracking (ownership semantics). Instance\n * identity is derived purely from `args` (via the class's `static key(args)`,\n * a structural hash of `args`, or the default sentinel when there are none).\n *\n * @param BlocClass - The StateContainer class constructor\n * @param opts.args - Construction/identity args; derives the instance key\n * @param opts.refId - Named reference ID for debugging; auto-generated if omitted\n */\nexport function acquire<T extends StateContainerConstructor>(\n BlocClass: T,\n opts?: { args?: ExtractArgs<T>; refId?: string },\n): InstanceType<T> {\n const registry = getRegistry();\n const key = registry.resolveKey(BlocClass, undefined, opts?.args);\n return registry.acquire(BlocClass, key, {\n canCreate: true,\n countRef: true,\n refId: opts?.refId,\n args: opts?.args,\n });\n}\n\n/**\n * Resolve the storage key an instance would be acquired under, given its\n * construction `args`. This is the canonical key-computation path. Callers that\n * both acquire and release against the `@internal` registry tier (e.g.\n * `@blac/react` `useBloc`) must use this once and pass the same resolved key to\n * both, so the ref is dropped under the key it was taken.\n */\nexport function resolveInstanceKey<T extends StateContainerConstructor>(\n BlocClass: T,\n args?: ExtractArgs<T>,\n): string {\n return getRegistry().resolveKey(BlocClass, undefined, args);\n}\n"],"mappings":";;;;;;;;;;;AAeA,SAAgB,QACd,WACA,MACiB;CACjB,MAAM,WAAW,YAAY;CAC7B,MAAM,MAAM,SAAS,WAAW,WAAW,KAAA,GAAW,MAAM,IAAI;CAChE,OAAO,SAAS,QAAQ,WAAW,KAAK;EACtC,WAAW;EACX,UAAU;EACV,OAAO,MAAM;EACb,MAAM,MAAM;CACd,CAAC;AACH;;;;;;;;AASA,SAAgB,mBACd,WACA,MACQ;CACR,OAAO,YAAY,EAAE,WAAW,WAAW,KAAA,GAAW,IAAI;AAC5D"}
@@ -1,46 +0,0 @@
1
- const require_config = require("./config-DVMnlHLv.cjs");
2
- //#region src/registry/acquire.ts
3
- /**
4
- * Acquire an instance with ref tracking (ownership semantics). Instance
5
- * identity is derived purely from `args` (via the class's `static key(args)`,
6
- * a structural hash of `args`, or the default sentinel when there are none).
7
- *
8
- * @param BlocClass - The StateContainer class constructor
9
- * @param opts.args - Construction/identity args; derives the instance key
10
- * @param opts.refId - Named reference ID for debugging; auto-generated if omitted
11
- */
12
- function acquire(BlocClass, opts) {
13
- const registry = require_config.getRegistry();
14
- const key = registry.resolveKey(BlocClass, void 0, opts?.args);
15
- return registry.acquire(BlocClass, key, {
16
- canCreate: true,
17
- countRef: true,
18
- refId: opts?.refId,
19
- args: opts?.args
20
- });
21
- }
22
- /**
23
- * Resolve the storage key an instance would be acquired under, given its
24
- * construction `args`. This is the canonical key-computation path. Callers that
25
- * both acquire and release against the `@internal` registry tier (e.g.
26
- * `@blac/react` `useBloc`) must use this once and pass the same resolved key to
27
- * both, so the ref is dropped under the key it was taken.
28
- */
29
- function resolveInstanceKey(BlocClass, args) {
30
- return require_config.getRegistry().resolveKey(BlocClass, void 0, args);
31
- }
32
- //#endregion
33
- Object.defineProperty(exports, "acquire", {
34
- enumerable: true,
35
- get: function() {
36
- return acquire;
37
- }
38
- });
39
- Object.defineProperty(exports, "resolveInstanceKey", {
40
- enumerable: true,
41
- get: function() {
42
- return resolveInstanceKey;
43
- }
44
- });
45
-
46
- //# sourceMappingURL=acquire-DHEOEVcj.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acquire-DHEOEVcj.cjs","names":["getRegistry"],"sources":["../src/registry/acquire.ts"],"sourcesContent":["import { getRegistry } from './config';\nimport type {\n ExtractArgs,\n StateContainerConstructor,\n} from '../types/utilities';\n\n/**\n * Acquire an instance with ref tracking (ownership semantics). Instance\n * identity is derived purely from `args` (via the class's `static key(args)`,\n * a structural hash of `args`, or the default sentinel when there are none).\n *\n * @param BlocClass - The StateContainer class constructor\n * @param opts.args - Construction/identity args; derives the instance key\n * @param opts.refId - Named reference ID for debugging; auto-generated if omitted\n */\nexport function acquire<T extends StateContainerConstructor>(\n BlocClass: T,\n opts?: { args?: ExtractArgs<T>; refId?: string },\n): InstanceType<T> {\n const registry = getRegistry();\n const key = registry.resolveKey(BlocClass, undefined, opts?.args);\n return registry.acquire(BlocClass, key, {\n canCreate: true,\n countRef: true,\n refId: opts?.refId,\n args: opts?.args,\n });\n}\n\n/**\n * Resolve the storage key an instance would be acquired under, given its\n * construction `args`. This is the canonical key-computation path. Callers that\n * both acquire and release against the `@internal` registry tier (e.g.\n * `@blac/react` `useBloc`) must use this once and pass the same resolved key to\n * both, so the ref is dropped under the key it was taken.\n */\nexport function resolveInstanceKey<T extends StateContainerConstructor>(\n BlocClass: T,\n args?: ExtractArgs<T>,\n): string {\n return getRegistry().resolveKey(BlocClass, undefined, args);\n}\n"],"mappings":";;;;;;;;;;;AAeA,SAAgB,QACd,WACA,MACiB;CACjB,MAAM,WAAWA,eAAAA,YAAY;CAC7B,MAAM,MAAM,SAAS,WAAW,WAAW,KAAA,GAAW,MAAM,IAAI;CAChE,OAAO,SAAS,QAAQ,WAAW,KAAK;EACtC,WAAW;EACX,UAAU;EACV,OAAO,MAAM;EACb,MAAM,MAAM;CACd,CAAC;AACH;;;;;;;;AASA,SAAgB,mBACd,WACA,MACQ;CACR,OAAOA,eAAAA,YAAY,EAAE,WAAW,WAAW,KAAA,GAAW,IAAI;AAC5D"}
@@ -1,35 +0,0 @@
1
- import { t as getRegistry } from "./config-D6BoWWPv.js";
2
- //#region src/registry/acquire.ts
3
- /**
4
- * Acquire an instance with ref tracking (ownership semantics). Instance
5
- * identity is derived purely from `args` (via the class's `static key(args)`,
6
- * a structural hash of `args`, or the default sentinel when there are none).
7
- *
8
- * @param BlocClass - The StateContainer class constructor
9
- * @param opts.args - Construction/identity args; derives the instance key
10
- * @param opts.refId - Named reference ID for debugging; auto-generated if omitted
11
- */
12
- function acquire(BlocClass, opts) {
13
- const registry = getRegistry();
14
- const key = registry.resolveKey(BlocClass, void 0, opts?.args);
15
- return registry.acquire(BlocClass, key, {
16
- canCreate: true,
17
- countRef: true,
18
- refId: opts?.refId,
19
- args: opts?.args
20
- });
21
- }
22
- /**
23
- * Resolve the storage key an instance would be acquired under, given its
24
- * construction `args`. This is the canonical key-computation path. Callers that
25
- * both acquire and release against the `@internal` registry tier (e.g.
26
- * `@blac/react` `useBloc`) must use this once and pass the same resolved key to
27
- * both, so the ref is dropped under the key it was taken.
28
- */
29
- function resolveInstanceKey(BlocClass, args) {
30
- return getRegistry().resolveKey(BlocClass, void 0, args);
31
- }
32
- //#endregion
33
- export { resolveInstanceKey as n, acquire as t };
34
-
35
- //# sourceMappingURL=acquire-DXEQDZGr.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acquire-DXEQDZGr.js","names":[],"sources":["../src/registry/acquire.ts"],"sourcesContent":["import { getRegistry } from './config';\nimport type {\n ExtractArgs,\n StateContainerConstructor,\n} from '../types/utilities';\n\n/**\n * Acquire an instance with ref tracking (ownership semantics). Instance\n * identity is derived purely from `args` (via the class's `static key(args)`,\n * a structural hash of `args`, or the default sentinel when there are none).\n *\n * @param BlocClass - The StateContainer class constructor\n * @param opts.args - Construction/identity args; derives the instance key\n * @param opts.refId - Named reference ID for debugging; auto-generated if omitted\n */\nexport function acquire<T extends StateContainerConstructor>(\n BlocClass: T,\n opts?: { args?: ExtractArgs<T>; refId?: string },\n): InstanceType<T> {\n const registry = getRegistry();\n const key = registry.resolveKey(BlocClass, undefined, opts?.args);\n return registry.acquire(BlocClass, key, {\n canCreate: true,\n countRef: true,\n refId: opts?.refId,\n args: opts?.args,\n });\n}\n\n/**\n * Resolve the storage key an instance would be acquired under, given its\n * construction `args`. This is the canonical key-computation path. Callers that\n * both acquire and release against the `@internal` registry tier (e.g.\n * `@blac/react` `useBloc`) must use this once and pass the same resolved key to\n * both, so the ref is dropped under the key it was taken.\n */\nexport function resolveInstanceKey<T extends StateContainerConstructor>(\n BlocClass: T,\n args?: ExtractArgs<T>,\n): string {\n return getRegistry().resolveKey(BlocClass, undefined, args);\n}\n"],"mappings":";;;;;;;;;;;AAeA,SAAgB,QACd,WACA,MACiB;CACjB,MAAM,WAAW,YAAY;CAC7B,MAAM,MAAM,SAAS,WAAW,WAAW,KAAA,GAAW,MAAM,IAAI;CAChE,OAAO,SAAS,QAAQ,WAAW,KAAK;EACtC,WAAW;EACX,UAAU;EACV,OAAO,MAAM;EACb,MAAM,MAAM;CACd,CAAC;AACH;;;;;;;;AASA,SAAgB,mBACd,WACA,MACQ;CACR,OAAO,YAAY,EAAE,WAAW,WAAW,KAAA,GAAW,IAAI;AAC5D"}
@@ -1,35 +0,0 @@
1
- import { t as getRegistry } from "./config-DVM_ESQt.js";
2
- //#region src/registry/acquire.ts
3
- /**
4
- * Acquire an instance with ref tracking (ownership semantics). Instance
5
- * identity is derived purely from `args` (via the class's `static key(args)`,
6
- * a structural hash of `args`, or the default sentinel when there are none).
7
- *
8
- * @param BlocClass - The StateContainer class constructor
9
- * @param opts.args - Construction/identity args; derives the instance key
10
- * @param opts.refId - Named reference ID for debugging; auto-generated if omitted
11
- */
12
- function acquire(BlocClass, opts) {
13
- const registry = getRegistry();
14
- const key = registry.resolveKey(BlocClass, void 0, opts?.args);
15
- return registry.acquire(BlocClass, key, {
16
- canCreate: true,
17
- countRef: true,
18
- refId: opts?.refId,
19
- args: opts?.args
20
- });
21
- }
22
- /**
23
- * Resolve the storage key an instance would be acquired under, given its
24
- * construction `args`. This is the canonical key-computation path. Callers that
25
- * both acquire and release against the `@internal` registry tier (e.g.
26
- * `@blac/react` `useBloc`) must use this once and pass the same resolved key to
27
- * both, so the ref is dropped under the key it was taken.
28
- */
29
- function resolveInstanceKey(BlocClass, args) {
30
- return getRegistry().resolveKey(BlocClass, void 0, args);
31
- }
32
- //#endregion
33
- export { resolveInstanceKey as n, acquire as t };
34
-
35
- //# sourceMappingURL=acquire-Dg-uXwjF.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acquire-Dg-uXwjF.js","names":[],"sources":["../src/registry/acquire.ts"],"sourcesContent":["import { getRegistry } from './config';\nimport type {\n ExtractArgs,\n StateContainerConstructor,\n} from '../types/utilities';\n\n/**\n * Acquire an instance with ref tracking (ownership semantics). Instance\n * identity is derived purely from `args` (via the class's `static key(args)`,\n * a structural hash of `args`, or the default sentinel when there are none).\n *\n * @param BlocClass - The StateContainer class constructor\n * @param opts.args - Construction/identity args; derives the instance key\n * @param opts.refId - Named reference ID for debugging; auto-generated if omitted\n */\nexport function acquire<T extends StateContainerConstructor>(\n BlocClass: T,\n opts?: { args?: ExtractArgs<T>; refId?: string },\n): InstanceType<T> {\n const registry = getRegistry();\n const key = registry.resolveKey(BlocClass, undefined, opts?.args);\n return registry.acquire(BlocClass, key, {\n canCreate: true,\n countRef: true,\n refId: opts?.refId,\n args: opts?.args,\n });\n}\n\n/**\n * Resolve the storage key an instance would be acquired under, given its\n * construction `args`. This is the canonical key-computation path. Callers that\n * both acquire and release against the `@internal` registry tier (e.g.\n * `@blac/react` `useBloc`) must use this once and pass the same resolved key to\n * both, so the ref is dropped under the key it was taken.\n */\nexport function resolveInstanceKey<T extends StateContainerConstructor>(\n BlocClass: T,\n args?: ExtractArgs<T>,\n): string {\n return getRegistry().resolveKey(BlocClass, undefined, args);\n}\n"],"mappings":";;;;;;;;;;;AAeA,SAAgB,QACd,WACA,MACiB;CACjB,MAAM,WAAW,YAAY;CAC7B,MAAM,MAAM,SAAS,WAAW,WAAW,KAAA,GAAW,MAAM,IAAI;CAChE,OAAO,SAAS,QAAQ,WAAW,KAAK;EACtC,WAAW;EACX,UAAU;EACV,OAAO,MAAM;EACb,MAAM,MAAM;CACd,CAAC;AACH;;;;;;;;AASA,SAAgB,mBACd,WACA,MACQ;CACR,OAAO,YAAY,EAAE,WAAW,WAAW,KAAA,GAAW,IAAI;AAC5D"}
@@ -1,35 +0,0 @@
1
- import { t as getRegistry } from "./config-8pyOC5gv.js";
2
- //#region src/registry/acquire.ts
3
- /**
4
- * Acquire an instance with ref tracking (ownership semantics). Instance
5
- * identity is derived purely from `args` (via the class's `static key(args)`,
6
- * a structural hash of `args`, or the default sentinel when there are none).
7
- *
8
- * @param BlocClass - The StateContainer class constructor
9
- * @param opts.args - Construction/identity args; derives the instance key
10
- * @param opts.refId - Named reference ID for debugging; auto-generated if omitted
11
- */
12
- function acquire(BlocClass, opts) {
13
- const registry = getRegistry();
14
- const key = registry.resolveKey(BlocClass, void 0, opts?.args);
15
- return registry.acquire(BlocClass, key, {
16
- canCreate: true,
17
- countRef: true,
18
- refId: opts?.refId,
19
- args: opts?.args
20
- });
21
- }
22
- /**
23
- * Resolve the storage key an instance would be acquired under, given its
24
- * construction `args`. This is the canonical key-computation path. Callers that
25
- * both acquire and release against the `@internal` registry tier (e.g.
26
- * `@blac/react` `useBloc`) must use this once and pass the same resolved key to
27
- * both, so the ref is dropped under the key it was taken.
28
- */
29
- function resolveInstanceKey(BlocClass, args) {
30
- return getRegistry().resolveKey(BlocClass, void 0, args);
31
- }
32
- //#endregion
33
- export { resolveInstanceKey as n, acquire as t };
34
-
35
- //# sourceMappingURL=acquire-Don7499S.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acquire-Don7499S.js","names":[],"sources":["../src/registry/acquire.ts"],"sourcesContent":["import { getRegistry } from './config';\nimport type {\n ExtractArgs,\n StateContainerConstructor,\n} from '../types/utilities';\n\n/**\n * Acquire an instance with ref tracking (ownership semantics). Instance\n * identity is derived purely from `args` (via the class's `static key(args)`,\n * a structural hash of `args`, or the default sentinel when there are none).\n *\n * @param BlocClass - The StateContainer class constructor\n * @param opts.args - Construction/identity args; derives the instance key\n * @param opts.refId - Named reference ID for debugging; auto-generated if omitted\n */\nexport function acquire<T extends StateContainerConstructor>(\n BlocClass: T,\n opts?: { args?: ExtractArgs<T>; refId?: string },\n): InstanceType<T> {\n const registry = getRegistry();\n const key = registry.resolveKey(BlocClass, undefined, opts?.args);\n return registry.acquire(BlocClass, key, {\n canCreate: true,\n countRef: true,\n refId: opts?.refId,\n args: opts?.args,\n });\n}\n\n/**\n * Resolve the storage key an instance would be acquired under, given its\n * construction `args`. This is the canonical key-computation path. Callers that\n * both acquire and release against the `@internal` registry tier (e.g.\n * `@blac/react` `useBloc`) must use this once and pass the same resolved key to\n * both, so the ref is dropped under the key it was taken.\n */\nexport function resolveInstanceKey<T extends StateContainerConstructor>(\n BlocClass: T,\n args?: ExtractArgs<T>,\n): string {\n return getRegistry().resolveKey(BlocClass, undefined, args);\n}\n"],"mappings":";;;;;;;;;;;AAeA,SAAgB,QACd,WACA,MACiB;CACjB,MAAM,WAAW,YAAY;CAC7B,MAAM,MAAM,SAAS,WAAW,WAAW,KAAA,GAAW,MAAM,IAAI;CAChE,OAAO,SAAS,QAAQ,WAAW,KAAK;EACtC,WAAW;EACX,UAAU;EACV,OAAO,MAAM;EACb,MAAM,MAAM;CACd,CAAC;AACH;;;;;;;;AASA,SAAgB,mBACd,WACA,MACQ;CACR,OAAO,YAAY,EAAE,WAAW,WAAW,KAAA,GAAW,IAAI;AAC5D"}
@@ -1,35 +0,0 @@
1
- import { t as getRegistry } from "./config-Dk1FxfXj.js";
2
- //#region src/registry/acquire.ts
3
- /**
4
- * Acquire an instance with ref tracking (ownership semantics). Instance
5
- * identity is derived purely from `args` (via the class's `static key(args)`,
6
- * a structural hash of `args`, or the default sentinel when there are none).
7
- *
8
- * @param BlocClass - The StateContainer class constructor
9
- * @param opts.args - Construction/identity args; derives the instance key
10
- * @param opts.refId - Named reference ID for debugging; auto-generated if omitted
11
- */
12
- function acquire(BlocClass, opts) {
13
- const registry = getRegistry();
14
- const key = registry.resolveKey(BlocClass, void 0, opts?.args);
15
- return registry.acquire(BlocClass, key, {
16
- canCreate: true,
17
- countRef: true,
18
- refId: opts?.refId,
19
- args: opts?.args
20
- });
21
- }
22
- /**
23
- * Resolve the storage key an instance would be acquired under, given its
24
- * construction `args`. This is the canonical key-computation path. Callers that
25
- * both acquire and release against the `@internal` registry tier (e.g.
26
- * `@blac/react` `useBloc`) must use this once and pass the same resolved key to
27
- * both, so the ref is dropped under the key it was taken.
28
- */
29
- function resolveInstanceKey(BlocClass, args) {
30
- return getRegistry().resolveKey(BlocClass, void 0, args);
31
- }
32
- //#endregion
33
- export { resolveInstanceKey as n, acquire as t };
34
-
35
- //# sourceMappingURL=acquire-G8aB3GAx.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acquire-G8aB3GAx.js","names":[],"sources":["../src/registry/acquire.ts"],"sourcesContent":["import { getRegistry } from './config';\nimport type {\n ExtractArgs,\n StateContainerConstructor,\n} from '../types/utilities';\n\n/**\n * Acquire an instance with ref tracking (ownership semantics). Instance\n * identity is derived purely from `args` (via the class's `static key(args)`,\n * a structural hash of `args`, or the default sentinel when there are none).\n *\n * @param BlocClass - The StateContainer class constructor\n * @param opts.args - Construction/identity args; derives the instance key\n * @param opts.refId - Named reference ID for debugging; auto-generated if omitted\n */\nexport function acquire<T extends StateContainerConstructor>(\n BlocClass: T,\n opts?: { args?: ExtractArgs<T>; refId?: string },\n): InstanceType<T> {\n const registry = getRegistry();\n const key = registry.resolveKey(BlocClass, undefined, opts?.args);\n return registry.acquire(BlocClass, key, {\n canCreate: true,\n countRef: true,\n refId: opts?.refId,\n args: opts?.args,\n });\n}\n\n/**\n * Resolve the storage key an instance would be acquired under, given its\n * construction `args`. This is the canonical key-computation path. Callers that\n * both acquire and release against the `@internal` registry tier (e.g.\n * `@blac/react` `useBloc`) must use this once and pass the same resolved key to\n * both, so the ref is dropped under the key it was taken.\n */\nexport function resolveInstanceKey<T extends StateContainerConstructor>(\n BlocClass: T,\n args?: ExtractArgs<T>,\n): string {\n return getRegistry().resolveKey(BlocClass, undefined, args);\n}\n"],"mappings":";;;;;;;;;;;AAeA,SAAgB,QACd,WACA,MACiB;CACjB,MAAM,WAAW,YAAY;CAC7B,MAAM,MAAM,SAAS,WAAW,WAAW,KAAA,GAAW,MAAM,IAAI;CAChE,OAAO,SAAS,QAAQ,WAAW,KAAK;EACtC,WAAW;EACX,UAAU;EACV,OAAO,MAAM;EACb,MAAM,MAAM;CACd,CAAC;AACH;;;;;;;;AASA,SAAgB,mBACd,WACA,MACQ;CACR,OAAO,YAAY,EAAE,WAAW,WAAW,KAAA,GAAW,IAAI;AAC5D"}
@@ -1,18 +0,0 @@
1
- //#region src/types/branded.ts
2
- /**
3
- * Create a branded InstanceId from a string
4
- * @param id - The string ID to brand
5
- * @returns Branded InstanceId
6
- */
7
- function instanceId(id) {
8
- return id;
9
- }
10
- //#endregion
11
- Object.defineProperty(exports, "instanceId", {
12
- enumerable: true,
13
- get: function() {
14
- return instanceId;
15
- }
16
- });
17
-
18
- //# sourceMappingURL=branded-BybA0_xw.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"branded-BybA0_xw.cjs","names":[],"sources":["../src/types/branded.ts"],"sourcesContent":["declare const brand: unique symbol;\n\n/**\n * Utility type for creating branded/nominal types.\n * Prevents accidental type confusion between similar primitive types.\n * @template T - The base type\n * @template B - The brand identifier\n */\nexport type Brand<T, B> = T & { [brand]: B };\n\n/**\n * Branded string type for type-safe IDs.\n * @template B - The brand identifier\n */\nexport type BrandedId<B> = Brand<string, B>;\n\n/**\n * Branded string type for state container instance IDs\n */\nexport type InstanceId = Brand<string, 'InstanceId'>;\n\n/**\n * Create a branded InstanceId from a string\n * @param id - The string ID to brand\n * @returns Branded InstanceId\n */\nexport function instanceId(id: string): InstanceId {\n return id as InstanceId;\n}\n"],"mappings":";;;;;;AA0BA,SAAgB,WAAW,IAAwB;CACjD,OAAO;AACT"}
@@ -1,13 +0,0 @@
1
- //#region src/types/branded.ts
2
- /**
3
- * Create a branded InstanceId from a string
4
- * @param id - The string ID to brand
5
- * @returns Branded InstanceId
6
- */
7
- function instanceId(id) {
8
- return id;
9
- }
10
- //#endregion
11
- export { instanceId as t };
12
-
13
- //# sourceMappingURL=branded-DkbUzncc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"branded-DkbUzncc.js","names":[],"sources":["../src/types/branded.ts"],"sourcesContent":["declare const brand: unique symbol;\n\n/**\n * Utility type for creating branded/nominal types.\n * Prevents accidental type confusion between similar primitive types.\n * @template T - The base type\n * @template B - The brand identifier\n */\nexport type Brand<T, B> = T & { [brand]: B };\n\n/**\n * Branded string type for type-safe IDs.\n * @template B - The brand identifier\n */\nexport type BrandedId<B> = Brand<string, B>;\n\n/**\n * Branded string type for state container instance IDs\n */\nexport type InstanceId = Brand<string, 'InstanceId'>;\n\n/**\n * Create a branded InstanceId from a string\n * @param id - The string ID to brand\n * @returns Branded InstanceId\n */\nexport function instanceId(id: string): InstanceId {\n return id as InstanceId;\n}\n"],"mappings":";;;;;;AA0BA,SAAgB,WAAW,IAAwB;CACjD,OAAO;AACT"}
@@ -1,16 +0,0 @@
1
- import { r as globalRegistry } from "./StateContainerRegistry-B_ViBLvJ.js";
2
- //#region src/registry/config.ts
3
- let _registry = globalRegistry;
4
- function getRegistry() {
5
- return _registry;
6
- }
7
- function setRegistry(registry) {
8
- _registry = registry;
9
- }
10
- function getStats() {
11
- return _registry.getStats();
12
- }
13
- //#endregion
14
- export { getStats as n, setRegistry as r, getRegistry as t };
15
-
16
- //# sourceMappingURL=config-8pyOC5gv.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-8pyOC5gv.js","names":[],"sources":["../src/registry/config.ts"],"sourcesContent":["import {\n globalRegistry,\n StateContainerRegistry,\n} from '../core/StateContainerRegistry';\n\nlet _registry = globalRegistry;\n\nexport function getRegistry(): StateContainerRegistry {\n return _registry;\n}\n\nexport function setRegistry(registry: StateContainerRegistry): void {\n _registry = registry;\n}\n\nexport function getStats(): {\n registeredTypes: number;\n totalInstances: number;\n typeBreakdown: Record<string, number>;\n} {\n return _registry.getStats();\n}\n"],"mappings":";;AAKA,IAAI,YAAY;AAEhB,SAAgB,cAAsC;CACpD,OAAO;AACT;AAEA,SAAgB,YAAY,UAAwC;CAClE,YAAY;AACd;AAEA,SAAgB,WAId;CACA,OAAO,UAAU,SAAS;AAC5B"}
@@ -1,32 +0,0 @@
1
- //#region src/registry/config.ts
2
- let _registry = require("./StateContainerRegistry-lIwo-0m3.cjs").globalRegistry;
3
- function getRegistry() {
4
- return _registry;
5
- }
6
- function setRegistry(registry) {
7
- _registry = registry;
8
- }
9
- function getStats() {
10
- return _registry.getStats();
11
- }
12
- //#endregion
13
- Object.defineProperty(exports, "getRegistry", {
14
- enumerable: true,
15
- get: function() {
16
- return getRegistry;
17
- }
18
- });
19
- Object.defineProperty(exports, "getStats", {
20
- enumerable: true,
21
- get: function() {
22
- return getStats;
23
- }
24
- });
25
- Object.defineProperty(exports, "setRegistry", {
26
- enumerable: true,
27
- get: function() {
28
- return setRegistry;
29
- }
30
- });
31
-
32
- //# sourceMappingURL=config-B1l8ZGlU.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-B1l8ZGlU.cjs","names":["globalRegistry"],"sources":["../src/registry/config.ts"],"sourcesContent":["import {\n globalRegistry,\n StateContainerRegistry,\n} from '../core/StateContainerRegistry';\n\nlet _registry = globalRegistry;\n\nexport function getRegistry(): StateContainerRegistry {\n return _registry;\n}\n\nexport function setRegistry(registry: StateContainerRegistry): void {\n _registry = registry;\n}\n\nexport function getStats(): {\n registeredTypes: number;\n totalInstances: number;\n typeBreakdown: Record<string, number>;\n} {\n return _registry.getStats();\n}\n"],"mappings":";AAKA,IAAI,2DAAYA,EAAAA;AAEhB,SAAgB,cAAsC;CACpD,OAAO;AACT;AAEA,SAAgB,YAAY,UAAwC;CAClE,YAAY;AACd;AAEA,SAAgB,WAId;CACA,OAAO,UAAU,SAAS;AAC5B"}
@@ -1,32 +0,0 @@
1
- //#region src/registry/config.ts
2
- let _registry = require("./StateContainerRegistry-CSNm2Ws5.cjs").globalRegistry;
3
- function getRegistry() {
4
- return _registry;
5
- }
6
- function setRegistry(registry) {
7
- _registry = registry;
8
- }
9
- function getStats() {
10
- return _registry.getStats();
11
- }
12
- //#endregion
13
- Object.defineProperty(exports, "getRegistry", {
14
- enumerable: true,
15
- get: function() {
16
- return getRegistry;
17
- }
18
- });
19
- Object.defineProperty(exports, "getStats", {
20
- enumerable: true,
21
- get: function() {
22
- return getStats;
23
- }
24
- });
25
- Object.defineProperty(exports, "setRegistry", {
26
- enumerable: true,
27
- get: function() {
28
- return setRegistry;
29
- }
30
- });
31
-
32
- //# sourceMappingURL=config-C7Ktkjh2.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-C7Ktkjh2.cjs","names":["globalRegistry"],"sources":["../src/registry/config.ts"],"sourcesContent":["import {\n globalRegistry,\n StateContainerRegistry,\n} from '../core/StateContainerRegistry';\n\nlet _registry = globalRegistry;\n\nexport function getRegistry(): StateContainerRegistry {\n return _registry;\n}\n\nexport function setRegistry(registry: StateContainerRegistry): void {\n _registry = registry;\n}\n\nexport function getStats(): {\n registeredTypes: number;\n totalInstances: number;\n typeBreakdown: Record<string, number>;\n} {\n return _registry.getStats();\n}\n"],"mappings":";AAKA,IAAI,2DAAYA,EAAAA;AAEhB,SAAgB,cAAsC;CACpD,OAAO;AACT;AAEA,SAAgB,YAAY,UAAwC;CAClE,YAAY;AACd;AAEA,SAAgB,WAId;CACA,OAAO,UAAU,SAAS;AAC5B"}
@@ -1,16 +0,0 @@
1
- import { r as globalRegistry } from "./StateContainerRegistry-4Ljd9EJx.js";
2
- //#region src/registry/config.ts
3
- let _registry = globalRegistry;
4
- function getRegistry() {
5
- return _registry;
6
- }
7
- function setRegistry(registry) {
8
- _registry = registry;
9
- }
10
- function getStats() {
11
- return _registry.getStats();
12
- }
13
- //#endregion
14
- export { getStats as n, setRegistry as r, getRegistry as t };
15
-
16
- //# sourceMappingURL=config-COT4Xkbc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-COT4Xkbc.js","names":[],"sources":["../src/registry/config.ts"],"sourcesContent":["import {\n globalRegistry,\n StateContainerRegistry,\n} from '../core/StateContainerRegistry';\n\nlet _registry = globalRegistry;\n\nexport function getRegistry(): StateContainerRegistry {\n return _registry;\n}\n\nexport function setRegistry(registry: StateContainerRegistry): void {\n _registry = registry;\n}\n\nexport function getStats(): {\n registeredTypes: number;\n totalInstances: number;\n typeBreakdown: Record<string, number>;\n} {\n return _registry.getStats();\n}\n"],"mappings":";;AAKA,IAAI,YAAY;AAEhB,SAAgB,cAAsC;CACpD,OAAO;AACT;AAEA,SAAgB,YAAY,UAAwC;CAClE,YAAY;AACd;AAEA,SAAgB,WAId;CACA,OAAO,UAAU,SAAS;AAC5B"}
@@ -1,16 +0,0 @@
1
- import { r as globalRegistry } from "./StateContainerRegistry-Dj77cok9.js";
2
- //#region src/registry/config.ts
3
- let _registry = globalRegistry;
4
- function getRegistry() {
5
- return _registry;
6
- }
7
- function setRegistry(registry) {
8
- _registry = registry;
9
- }
10
- function getStats() {
11
- return _registry.getStats();
12
- }
13
- //#endregion
14
- export { getStats as n, setRegistry as r, getRegistry as t };
15
-
16
- //# sourceMappingURL=config-CzcoAvBo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-CzcoAvBo.js","names":[],"sources":["../src/registry/config.ts"],"sourcesContent":["import {\n globalRegistry,\n StateContainerRegistry,\n} from '../core/StateContainerRegistry';\n\nlet _registry = globalRegistry;\n\nexport function getRegistry(): StateContainerRegistry {\n return _registry;\n}\n\nexport function setRegistry(registry: StateContainerRegistry): void {\n _registry = registry;\n}\n\nexport function getStats(): {\n registeredTypes: number;\n totalInstances: number;\n typeBreakdown: Record<string, number>;\n} {\n return _registry.getStats();\n}\n"],"mappings":";;AAKA,IAAI,YAAY;AAEhB,SAAgB,cAAsC;CACpD,OAAO;AACT;AAEA,SAAgB,YAAY,UAAwC;CAClE,YAAY;AACd;AAEA,SAAgB,WAId;CACA,OAAO,UAAU,SAAS;AAC5B"}
@@ -1,16 +0,0 @@
1
- import { r as globalRegistry } from "./StateContainerRegistry-C0dCNlTF.js";
2
- //#region src/registry/config.ts
3
- let _registry = globalRegistry;
4
- function getRegistry() {
5
- return _registry;
6
- }
7
- function setRegistry(registry) {
8
- _registry = registry;
9
- }
10
- function getStats() {
11
- return _registry.getStats();
12
- }
13
- //#endregion
14
- export { getStats as n, setRegistry as r, getRegistry as t };
15
-
16
- //# sourceMappingURL=config-D6BoWWPv.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-D6BoWWPv.js","names":[],"sources":["../src/registry/config.ts"],"sourcesContent":["import {\n globalRegistry,\n StateContainerRegistry,\n} from '../core/StateContainerRegistry';\n\nlet _registry = globalRegistry;\n\nexport function getRegistry(): StateContainerRegistry {\n return _registry;\n}\n\nexport function setRegistry(registry: StateContainerRegistry): void {\n _registry = registry;\n}\n\nexport function getStats(): {\n registeredTypes: number;\n totalInstances: number;\n typeBreakdown: Record<string, number>;\n} {\n return _registry.getStats();\n}\n"],"mappings":";;AAKA,IAAI,YAAY;AAEhB,SAAgB,cAAsC;CACpD,OAAO;AACT;AAEA,SAAgB,YAAY,UAAwC;CAClE,YAAY;AACd;AAEA,SAAgB,WAId;CACA,OAAO,UAAU,SAAS;AAC5B"}