@noy-db/hub 0.2.0-pre.5 → 0.2.0-pre.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/dist/aggregate/index.cjs.map +1 -1
  2. package/dist/aggregate/index.js +4 -4
  3. package/dist/attestation/index.cjs.map +1 -1
  4. package/dist/attestation/index.d.cts +4 -4
  5. package/dist/attestation/index.d.ts +4 -4
  6. package/dist/attestation/index.js +6 -6
  7. package/dist/blobs/index.cjs.map +1 -1
  8. package/dist/blobs/index.d.cts +5 -5
  9. package/dist/blobs/index.d.ts +5 -5
  10. package/dist/blobs/index.js +5 -5
  11. package/dist/bundle/index.cjs +379 -21
  12. package/dist/bundle/index.cjs.map +1 -1
  13. package/dist/bundle/index.d.cts +6 -6
  14. package/dist/bundle/index.d.ts +6 -6
  15. package/dist/bundle/index.js +12 -12
  16. package/dist/{chunk-E225X5CQ.js → chunk-22ESLVUM.js} +3 -3
  17. package/dist/{chunk-5QPF2MJ5.js → chunk-2TXMTYWZ.js} +3 -3
  18. package/dist/{chunk-BT7544RM.js → chunk-3O5FNO5O.js} +116 -54
  19. package/dist/chunk-3O5FNO5O.js.map +1 -0
  20. package/dist/{chunk-34XGYMQT.js → chunk-3XCXUJTM.js} +2 -2
  21. package/dist/{chunk-XDW37COG.js → chunk-4EOVWJL6.js} +212 -7
  22. package/dist/chunk-4EOVWJL6.js.map +1 -0
  23. package/dist/{chunk-KGFV72WK.js → chunk-4YVVF6JN.js} +5 -5
  24. package/dist/{chunk-UGVDIOY7.js → chunk-6ILPGZXZ.js} +2 -2
  25. package/dist/{chunk-DFCINPB5.js → chunk-6MXGU2PW.js} +2 -2
  26. package/dist/{chunk-Y3P5DEMZ.js → chunk-7IH5FDXD.js} +6 -6
  27. package/dist/{chunk-2GMRNNI3.js → chunk-ASFE2X62.js} +2 -2
  28. package/dist/{chunk-YZ6JETII.js → chunk-AYRTGXF3.js} +180 -5
  29. package/dist/chunk-AYRTGXF3.js.map +1 -0
  30. package/dist/{chunk-CCC25PA7.js → chunk-BE5ZALMB.js} +5 -5
  31. package/dist/{chunk-WEA4TDTJ.js → chunk-BNUCCUES.js} +3 -3
  32. package/dist/{chunk-PS5G6A3Y.js → chunk-BRZFN354.js} +4 -4
  33. package/dist/{chunk-RIHZBSWJ.js → chunk-CBHPW77B.js} +3 -3
  34. package/dist/{chunk-LWFQYT4N.js → chunk-CSHY53CZ.js} +2 -2
  35. package/dist/{chunk-MDIC4FAU.js → chunk-DCP4L4SH.js} +2 -2
  36. package/dist/{chunk-TNBIWSQ7.js → chunk-GI6S5ZF2.js} +2 -2
  37. package/dist/{chunk-G26QAQNI.js → chunk-GZIDTXC4.js} +2 -2
  38. package/dist/{chunk-ARZAHCCF.js → chunk-HNC55FLJ.js} +3 -3
  39. package/dist/{chunk-SGSHQ4PH.js → chunk-HNFXKQD7.js} +5 -5
  40. package/dist/{chunk-YEHUEUNP.js → chunk-JZDA2SRB.js} +4 -4
  41. package/dist/{chunk-PX3MJ6RB.js → chunk-KK44CQ5B.js} +3 -3
  42. package/dist/{chunk-OPD3PZOG.js → chunk-LSY46G55.js} +4 -4
  43. package/dist/{chunk-T6MTNGBM.js → chunk-N4CDTRDH.js} +4 -4
  44. package/dist/{chunk-ZQMYB56Z.js → chunk-O3JCRQT3.js} +3 -3
  45. package/dist/{chunk-LJO6Q3X6.js → chunk-OA6HE2RW.js} +3 -3
  46. package/dist/{chunk-HIELMTUK.js → chunk-OIF6LZUR.js} +2 -2
  47. package/dist/{chunk-YJ46RFCD.js → chunk-OXCFFRF3.js} +2 -2
  48. package/dist/{chunk-ED3E3OLO.js → chunk-PJKGXUMG.js} +2 -2
  49. package/dist/{chunk-6A4AMQ2H.js → chunk-QYO6I7KK.js} +4 -4
  50. package/dist/{chunk-6HJ2ZALB.js → chunk-REQJJIPP.js} +44 -2
  51. package/dist/chunk-REQJJIPP.js.map +1 -0
  52. package/dist/{chunk-7TX7HN42.js → chunk-SLJQIBT7.js} +20 -3
  53. package/dist/chunk-SLJQIBT7.js.map +1 -0
  54. package/dist/{chunk-A4JNVBPF.js → chunk-SYOSRZN4.js} +5 -5
  55. package/dist/{chunk-R4LTCI6O.js → chunk-TS4FQPDD.js} +2 -2
  56. package/dist/{chunk-ICH4AIGL.js → chunk-TV3YZ35S.js} +5 -1
  57. package/dist/chunk-TV3YZ35S.js.map +1 -0
  58. package/dist/{chunk-CKH247ZR.js → chunk-UPBZ7NVY.js} +4 -4
  59. package/dist/{chunk-XVJFFGTG.js → chunk-VZOZ3DBN.js} +3 -3
  60. package/dist/{chunk-5VMTAX4Y.js → chunk-W6EQLGMB.js} +2 -2
  61. package/dist/{chunk-JSYTGEX4.js → chunk-WBUG3324.js} +3 -3
  62. package/dist/{chunk-5OVIFUQE.js → chunk-WIRRPTFH.js} +1 -1
  63. package/dist/chunk-WIRRPTFH.js.map +1 -0
  64. package/dist/{chunk-25WFLKOH.js → chunk-WM5GFORS.js} +2 -2
  65. package/dist/{chunk-CGJFCT3X.js → chunk-WMKCAN4H.js} +2 -2
  66. package/dist/{chunk-R7JTYCRX.js → chunk-XZCBBZLS.js} +2 -2
  67. package/dist/{chunk-EKTOYEZ3.js → chunk-YAMTXW77.js} +2 -2
  68. package/dist/consent/index.cjs.map +1 -1
  69. package/dist/consent/index.d.cts +5 -5
  70. package/dist/consent/index.d.ts +5 -5
  71. package/dist/consent/index.js +3 -3
  72. package/dist/{crypto-5UDZZL26.js → crypto-TRZ5BJMY.js} +3 -3
  73. package/dist/{delegation-42LO4WFO.js → delegation-TLZTK2XW.js} +5 -5
  74. package/dist/derivations/index.cjs.map +1 -1
  75. package/dist/derivations/index.d.cts +6 -6
  76. package/dist/derivations/index.d.ts +6 -6
  77. package/dist/derivations/index.js +4 -4
  78. package/dist/{dev-unlock--ahUTrhc.d.ts → dev-unlock-ClAEZQC4.d.ts} +1 -1
  79. package/dist/{dev-unlock-BIwt2V3p.d.cts → dev-unlock-L3z34v0J.d.cts} +1 -1
  80. package/dist/executor-HAVRTQN4.js +11 -0
  81. package/dist/executor-V3DKOADS.js +8 -0
  82. package/dist/executor-XO4M4243.js +8 -0
  83. package/dist/{fanout-sidecar-EVICRM46.js → fanout-sidecar-OKPMMPLG.js} +2 -2
  84. package/dist/guards/index.cjs.map +1 -1
  85. package/dist/guards/index.d.cts +6 -6
  86. package/dist/guards/index.d.ts +6 -6
  87. package/dist/guards/index.js +3 -3
  88. package/dist/{hash-CJEFQxSD.d.ts → hash-B3lV6lw3.d.ts} +1 -1
  89. package/dist/{hash-BQVrGV-t.d.cts → hash-M6-JI3Yu.d.cts} +1 -1
  90. package/dist/history/index.cjs.map +1 -1
  91. package/dist/history/index.d.cts +6 -6
  92. package/dist/history/index.d.ts +6 -6
  93. package/dist/history/index.js +5 -5
  94. package/dist/i18n/index.cjs +75 -10
  95. package/dist/i18n/index.cjs.map +1 -1
  96. package/dist/i18n/index.d.cts +5 -5
  97. package/dist/i18n/index.d.ts +5 -5
  98. package/dist/i18n/index.js +15 -13
  99. package/dist/{index-fIPPh5dg.d.ts → index-CmWQyC4e.d.ts} +84 -7
  100. package/dist/{index-5I0MZ0jQ.d.cts → index-vB43MAt4.d.cts} +84 -7
  101. package/dist/index.cjs +516 -123
  102. package/dist/index.cjs.map +1 -1
  103. package/dist/index.d.cts +13 -13
  104. package/dist/index.d.ts +13 -13
  105. package/dist/index.js +66 -60
  106. package/dist/index.js.map +1 -1
  107. package/dist/indexing/index.cjs +4 -0
  108. package/dist/indexing/index.cjs.map +1 -1
  109. package/dist/indexing/index.d.cts +3 -3
  110. package/dist/indexing/index.d.ts +3 -3
  111. package/dist/indexing/index.js +4 -4
  112. package/dist/issue-EJKUQ6FA.js +12 -0
  113. package/dist/{lazy-builder-D1MyR1qH.d.ts → lazy-builder-7tIpFyWN.d.ts} +1 -1
  114. package/dist/{lazy-builder-DXlSCNCJ.d.cts → lazy-builder-wY4pMCEe.d.cts} +1 -1
  115. package/dist/{ledger-UX4QIHWI.js → ledger-SQVVE2DR.js} +5 -5
  116. package/dist/materialized-views/index.cjs +18 -1
  117. package/dist/materialized-views/index.cjs.map +1 -1
  118. package/dist/materialized-views/index.d.cts +10 -8
  119. package/dist/materialized-views/index.d.ts +10 -8
  120. package/dist/materialized-views/index.js +12 -12
  121. package/dist/noydb-MK4UQ626.js +34 -0
  122. package/dist/overlay-views/index.cjs.map +1 -1
  123. package/dist/overlay-views/index.d.cts +6 -6
  124. package/dist/overlay-views/index.d.ts +6 -6
  125. package/dist/overlay-views/index.js +6 -6
  126. package/dist/periods/index.cjs.map +1 -1
  127. package/dist/periods/index.d.cts +5 -5
  128. package/dist/periods/index.d.ts +5 -5
  129. package/dist/periods/index.js +5 -5
  130. package/dist/{predicate-B0IKeBXx.d.cts → predicate-BSAGEyu5.d.cts} +26 -2
  131. package/dist/{predicate-B0IKeBXx.d.ts → predicate-BSAGEyu5.d.ts} +26 -2
  132. package/dist/{public-envelope-YKHKP74C.js → public-envelope-BXPXMN3U.js} +4 -4
  133. package/dist/query/index.cjs +244 -4
  134. package/dist/query/index.cjs.map +1 -1
  135. package/dist/query/index.d.cts +2 -2
  136. package/dist/query/index.d.ts +2 -2
  137. package/dist/query/index.js +12 -6
  138. package/dist/{registry-4NEW7LQY.js → registry-4R4IURUM.js} +3 -3
  139. package/dist/registry-GPBLCHG7.js +8 -0
  140. package/dist/registry-ZON5HNIV.js +8 -0
  141. package/dist/{revoke-R5NIQ74J.js → revoke-Y7UDOXGH.js} +6 -6
  142. package/dist/session/index.cjs.map +1 -1
  143. package/dist/session/index.d.cts +6 -6
  144. package/dist/session/index.d.ts +6 -6
  145. package/dist/session/index.js +3 -3
  146. package/dist/shadow/index.cjs.map +1 -1
  147. package/dist/shadow/index.d.cts +5 -5
  148. package/dist/shadow/index.d.ts +5 -5
  149. package/dist/shadow/index.js +2 -2
  150. package/dist/{signer-WGDJNWSU.js → signer-UD2ZSVDJ.js} +5 -5
  151. package/dist/snapshots/index.cjs +903 -0
  152. package/dist/snapshots/index.cjs.map +1 -0
  153. package/dist/snapshots/index.d.cts +21 -0
  154. package/dist/snapshots/index.d.ts +21 -0
  155. package/dist/snapshots/index.js +118 -0
  156. package/dist/snapshots/index.js.map +1 -0
  157. package/dist/{stale-74WGLVZ2.js → stale-F4V5E7ZK.js} +2 -2
  158. package/dist/store/index.cjs.map +1 -1
  159. package/dist/store/index.d.cts +5 -5
  160. package/dist/store/index.d.ts +5 -5
  161. package/dist/store/index.js +2 -2
  162. package/dist/sync/index.cjs.map +1 -1
  163. package/dist/sync/index.d.cts +4 -4
  164. package/dist/sync/index.d.ts +4 -4
  165. package/dist/sync/index.js +4 -4
  166. package/dist/team/index.cjs.map +1 -1
  167. package/dist/team/index.d.cts +5 -5
  168. package/dist/team/index.d.ts +5 -5
  169. package/dist/team/index.js +8 -8
  170. package/dist/tx/index.cjs.map +1 -1
  171. package/dist/tx/index.d.cts +5 -5
  172. package/dist/tx/index.d.ts +5 -5
  173. package/dist/tx/index.js +3 -3
  174. package/dist/{types-BV4AZKmx.d.ts → types-DT7cXRHq.d.ts} +84 -8
  175. package/dist/{types-BeKi0hCx.d.cts → types-r-y7TIqj.d.cts} +84 -8
  176. package/dist/{ulid-Cvljl7ZZ.d.cts → ulid-BkW3mLlz.d.cts} +1 -1
  177. package/dist/{ulid-CQc0eBxE.d.ts → ulid-Dt55yn4s.d.ts} +1 -1
  178. package/dist/util/index.cjs.map +1 -1
  179. package/dist/util/index.js +1 -1
  180. package/dist/{with-derivation-BkOBDhsu.d.cts → with-derivation-DB63Po2m.d.cts} +1 -1
  181. package/dist/{with-derivation-BWcwmevt.d.ts → with-derivation-D_Ids_H6.d.ts} +1 -1
  182. package/dist/{with-guard-BD4Hyu8s.d.cts → with-guard-BHThLppa.d.cts} +1 -1
  183. package/dist/{with-guard-Du54s3Ti.d.ts → with-guard-BJwdc0s6.d.ts} +1 -1
  184. package/dist/{with-materialized-view-BCPPZdjC.d.cts → with-materialized-view-BJmJ-FrO.d.cts} +1 -1
  185. package/dist/{with-materialized-view-B5W4wFAC.d.ts → with-materialized-view-D-CRVSDX.d.ts} +1 -1
  186. package/dist/{with-overlayed-view-Cw-h9p9N.d.ts → with-overlayed-view-CNf6GbDG.d.ts} +1 -1
  187. package/dist/{with-overlayed-view-B8RrlLsG.d.cts → with-overlayed-view-zePNtUSq.d.cts} +1 -1
  188. package/package.json +13 -3
  189. package/dist/chunk-5OVIFUQE.js.map +0 -1
  190. package/dist/chunk-6HJ2ZALB.js.map +0 -1
  191. package/dist/chunk-7TX7HN42.js.map +0 -1
  192. package/dist/chunk-BT7544RM.js.map +0 -1
  193. package/dist/chunk-ICH4AIGL.js.map +0 -1
  194. package/dist/chunk-NONMIU6C.js +0 -118
  195. package/dist/chunk-NONMIU6C.js.map +0 -1
  196. package/dist/chunk-XDW37COG.js.map +0 -1
  197. package/dist/chunk-YZ6JETII.js.map +0 -1
  198. package/dist/executor-AWCHQ2KN.js +0 -8
  199. package/dist/executor-RWICJI7J.js +0 -11
  200. package/dist/executor-SOLEQVUB.js +0 -8
  201. package/dist/issue-IODMTPME.js +0 -12
  202. package/dist/noydb-6TADQIYH.js +0 -34
  203. package/dist/registry-446I2NMN.js +0 -8
  204. package/dist/registry-524KJZG4.js +0 -8
  205. /package/dist/{chunk-E225X5CQ.js.map → chunk-22ESLVUM.js.map} +0 -0
  206. /package/dist/{chunk-5QPF2MJ5.js.map → chunk-2TXMTYWZ.js.map} +0 -0
  207. /package/dist/{chunk-34XGYMQT.js.map → chunk-3XCXUJTM.js.map} +0 -0
  208. /package/dist/{chunk-KGFV72WK.js.map → chunk-4YVVF6JN.js.map} +0 -0
  209. /package/dist/{chunk-UGVDIOY7.js.map → chunk-6ILPGZXZ.js.map} +0 -0
  210. /package/dist/{chunk-DFCINPB5.js.map → chunk-6MXGU2PW.js.map} +0 -0
  211. /package/dist/{chunk-Y3P5DEMZ.js.map → chunk-7IH5FDXD.js.map} +0 -0
  212. /package/dist/{chunk-2GMRNNI3.js.map → chunk-ASFE2X62.js.map} +0 -0
  213. /package/dist/{chunk-CCC25PA7.js.map → chunk-BE5ZALMB.js.map} +0 -0
  214. /package/dist/{chunk-WEA4TDTJ.js.map → chunk-BNUCCUES.js.map} +0 -0
  215. /package/dist/{chunk-PS5G6A3Y.js.map → chunk-BRZFN354.js.map} +0 -0
  216. /package/dist/{chunk-RIHZBSWJ.js.map → chunk-CBHPW77B.js.map} +0 -0
  217. /package/dist/{chunk-LWFQYT4N.js.map → chunk-CSHY53CZ.js.map} +0 -0
  218. /package/dist/{chunk-MDIC4FAU.js.map → chunk-DCP4L4SH.js.map} +0 -0
  219. /package/dist/{chunk-TNBIWSQ7.js.map → chunk-GI6S5ZF2.js.map} +0 -0
  220. /package/dist/{chunk-G26QAQNI.js.map → chunk-GZIDTXC4.js.map} +0 -0
  221. /package/dist/{chunk-ARZAHCCF.js.map → chunk-HNC55FLJ.js.map} +0 -0
  222. /package/dist/{chunk-SGSHQ4PH.js.map → chunk-HNFXKQD7.js.map} +0 -0
  223. /package/dist/{chunk-YEHUEUNP.js.map → chunk-JZDA2SRB.js.map} +0 -0
  224. /package/dist/{chunk-PX3MJ6RB.js.map → chunk-KK44CQ5B.js.map} +0 -0
  225. /package/dist/{chunk-OPD3PZOG.js.map → chunk-LSY46G55.js.map} +0 -0
  226. /package/dist/{chunk-T6MTNGBM.js.map → chunk-N4CDTRDH.js.map} +0 -0
  227. /package/dist/{chunk-ZQMYB56Z.js.map → chunk-O3JCRQT3.js.map} +0 -0
  228. /package/dist/{chunk-LJO6Q3X6.js.map → chunk-OA6HE2RW.js.map} +0 -0
  229. /package/dist/{chunk-HIELMTUK.js.map → chunk-OIF6LZUR.js.map} +0 -0
  230. /package/dist/{chunk-YJ46RFCD.js.map → chunk-OXCFFRF3.js.map} +0 -0
  231. /package/dist/{chunk-ED3E3OLO.js.map → chunk-PJKGXUMG.js.map} +0 -0
  232. /package/dist/{chunk-6A4AMQ2H.js.map → chunk-QYO6I7KK.js.map} +0 -0
  233. /package/dist/{chunk-A4JNVBPF.js.map → chunk-SYOSRZN4.js.map} +0 -0
  234. /package/dist/{chunk-R4LTCI6O.js.map → chunk-TS4FQPDD.js.map} +0 -0
  235. /package/dist/{chunk-CKH247ZR.js.map → chunk-UPBZ7NVY.js.map} +0 -0
  236. /package/dist/{chunk-XVJFFGTG.js.map → chunk-VZOZ3DBN.js.map} +0 -0
  237. /package/dist/{chunk-5VMTAX4Y.js.map → chunk-W6EQLGMB.js.map} +0 -0
  238. /package/dist/{chunk-JSYTGEX4.js.map → chunk-WBUG3324.js.map} +0 -0
  239. /package/dist/{chunk-25WFLKOH.js.map → chunk-WM5GFORS.js.map} +0 -0
  240. /package/dist/{chunk-CGJFCT3X.js.map → chunk-WMKCAN4H.js.map} +0 -0
  241. /package/dist/{chunk-R7JTYCRX.js.map → chunk-XZCBBZLS.js.map} +0 -0
  242. /package/dist/{chunk-EKTOYEZ3.js.map → chunk-YAMTXW77.js.map} +0 -0
  243. /package/dist/{crypto-5UDZZL26.js.map → crypto-TRZ5BJMY.js.map} +0 -0
  244. /package/dist/{delegation-42LO4WFO.js.map → delegation-TLZTK2XW.js.map} +0 -0
  245. /package/dist/{executor-AWCHQ2KN.js.map → executor-HAVRTQN4.js.map} +0 -0
  246. /package/dist/{executor-RWICJI7J.js.map → executor-V3DKOADS.js.map} +0 -0
  247. /package/dist/{executor-SOLEQVUB.js.map → executor-XO4M4243.js.map} +0 -0
  248. /package/dist/{fanout-sidecar-EVICRM46.js.map → fanout-sidecar-OKPMMPLG.js.map} +0 -0
  249. /package/dist/{issue-IODMTPME.js.map → issue-EJKUQ6FA.js.map} +0 -0
  250. /package/dist/{ledger-UX4QIHWI.js.map → ledger-SQVVE2DR.js.map} +0 -0
  251. /package/dist/{noydb-6TADQIYH.js.map → noydb-MK4UQ626.js.map} +0 -0
  252. /package/dist/{public-envelope-YKHKP74C.js.map → public-envelope-BXPXMN3U.js.map} +0 -0
  253. /package/dist/{registry-446I2NMN.js.map → registry-4R4IURUM.js.map} +0 -0
  254. /package/dist/{registry-4NEW7LQY.js.map → registry-GPBLCHG7.js.map} +0 -0
  255. /package/dist/{registry-524KJZG4.js.map → registry-ZON5HNIV.js.map} +0 -0
  256. /package/dist/{revoke-R5NIQ74J.js.map → revoke-Y7UDOXGH.js.map} +0 -0
  257. /package/dist/{signer-WGDJNWSU.js.map → signer-UD2ZSVDJ.js.map} +0 -0
  258. /package/dist/{stale-74WGLVZ2.js.map → stale-F4V5E7ZK.js.map} +0 -0
@@ -1,11 +1,11 @@
1
- import { aN as HistoryStrategy, aO as NoydbStore, aP as HistoryOptions, aQ as EncryptedEnvelope, aR as PruneOptions } from '../types-BeKi0hCx.cjs';
2
- export { aS as AppendInput, aT as ChangeType, aU as CollectionInstant, aV as DiffEntry, aW as JsonPatch, aX as JsonPatchOp, aY as LedgerEntry, aZ as LedgerStore, a_ as VaultEngine, a$ as VaultInstant, b0 as VerifyResult, b1 as applyPatch, b2 as canonicalJson, b3 as computePatch, b4 as diff, b5 as formatDiff, b6 as hashEntry, b7 as paddedIndex, b8 as parseIndex, b9 as sha256Hex } from '../types-BeKi0hCx.cjs';
3
- export { L as LEDGER_COLLECTION, a as LEDGER_DELTAS_COLLECTION, e as envelopePayloadHash } from '../hash-BQVrGV-t.cjs';
4
- import '../lazy-builder-DXlSCNCJ.cjs';
5
- import '../predicate-B0IKeBXx.cjs';
1
+ import { aT as HistoryStrategy, aU as NoydbStore, aV as HistoryOptions, aW as EncryptedEnvelope, aX as PruneOptions } from '../types-r-y7TIqj.cjs';
2
+ export { aY as AppendInput, aZ as ChangeType, a_ as CollectionInstant, a$ as DiffEntry, b0 as JsonPatch, b1 as JsonPatchOp, b2 as LedgerEntry, b3 as LedgerStore, b4 as VaultEngine, b5 as VaultInstant, b6 as VerifyResult, b7 as applyPatch, b8 as canonicalJson, b9 as computePatch, ba as diff, bb as formatDiff, bc as hashEntry, bd as paddedIndex, be as parseIndex, bf as sha256Hex } from '../types-r-y7TIqj.cjs';
3
+ export { L as LEDGER_COLLECTION, a as LEDGER_DELTAS_COLLECTION, e as envelopePayloadHash } from '../hash-M6-JI3Yu.cjs';
4
+ import '../lazy-builder-wY4pMCEe.cjs';
5
+ import '../predicate-BSAGEyu5.cjs';
6
6
  import '../strategy-DSTrsZ8t.cjs';
7
7
  import '../strategy-BSxFXGzb.cjs';
8
- import '../index-5I0MZ0jQ.cjs';
8
+ import '../index-vB43MAt4.cjs';
9
9
  import '@noy-db/attestation';
10
10
 
11
11
  /**
@@ -1,11 +1,11 @@
1
- import { aN as HistoryStrategy, aO as NoydbStore, aP as HistoryOptions, aQ as EncryptedEnvelope, aR as PruneOptions } from '../types-BV4AZKmx.js';
2
- export { aS as AppendInput, aT as ChangeType, aU as CollectionInstant, aV as DiffEntry, aW as JsonPatch, aX as JsonPatchOp, aY as LedgerEntry, aZ as LedgerStore, a_ as VaultEngine, a$ as VaultInstant, b0 as VerifyResult, b1 as applyPatch, b2 as canonicalJson, b3 as computePatch, b4 as diff, b5 as formatDiff, b6 as hashEntry, b7 as paddedIndex, b8 as parseIndex, b9 as sha256Hex } from '../types-BV4AZKmx.js';
3
- export { L as LEDGER_COLLECTION, a as LEDGER_DELTAS_COLLECTION, e as envelopePayloadHash } from '../hash-CJEFQxSD.js';
4
- import '../lazy-builder-D1MyR1qH.js';
5
- import '../predicate-B0IKeBXx.js';
1
+ import { aT as HistoryStrategy, aU as NoydbStore, aV as HistoryOptions, aW as EncryptedEnvelope, aX as PruneOptions } from '../types-DT7cXRHq.js';
2
+ export { aY as AppendInput, aZ as ChangeType, a_ as CollectionInstant, a$ as DiffEntry, b0 as JsonPatch, b1 as JsonPatchOp, b2 as LedgerEntry, b3 as LedgerStore, b4 as VaultEngine, b5 as VaultInstant, b6 as VerifyResult, b7 as applyPatch, b8 as canonicalJson, b9 as computePatch, ba as diff, bb as formatDiff, bc as hashEntry, bd as paddedIndex, be as parseIndex, bf as sha256Hex } from '../types-DT7cXRHq.js';
3
+ export { L as LEDGER_COLLECTION, a as LEDGER_DELTAS_COLLECTION, e as envelopePayloadHash } from '../hash-B3lV6lw3.js';
4
+ import '../lazy-builder-7tIpFyWN.js';
5
+ import '../predicate-BSAGEyu5.js';
6
6
  import '../strategy-DSTrsZ8t.js';
7
7
  import '../strategy-BSxFXGzb.js';
8
- import '../index-fIPPh5dg.js';
8
+ import '../index-CmWQyC4e.js';
9
9
  import '@noy-db/attestation';
10
10
 
11
11
  /**
@@ -8,14 +8,14 @@ import {
8
8
  getVersionEnvelope,
9
9
  pruneHistory,
10
10
  saveHistory
11
- } from "../chunk-ARZAHCCF.js";
11
+ } from "../chunk-HNC55FLJ.js";
12
12
  import {
13
13
  LEDGER_COLLECTION,
14
14
  LEDGER_DELTAS_COLLECTION,
15
15
  LedgerStore,
16
16
  applyPatch,
17
17
  computePatch
18
- } from "../chunk-6A4AMQ2H.js";
18
+ } from "../chunk-QYO6I7KK.js";
19
19
  import {
20
20
  canonicalJson,
21
21
  envelopePayloadHash,
@@ -24,9 +24,9 @@ import {
24
24
  parseIndex,
25
25
  sha256Hex
26
26
  } from "../chunk-Z6FNBOTC.js";
27
- import "../chunk-5OVIFUQE.js";
28
- import "../chunk-EKTOYEZ3.js";
29
- import "../chunk-6HJ2ZALB.js";
27
+ import "../chunk-WIRRPTFH.js";
28
+ import "../chunk-YAMTXW77.js";
29
+ import "../chunk-REQJJIPP.js";
30
30
 
31
31
  // src/history/active.ts
32
32
  function withHistory() {
@@ -31,11 +31,13 @@ __export(i18n_exports, {
31
31
  applyI18nLocale: () => applyI18nLocale,
32
32
  dictCollectionName: () => dictCollectionName,
33
33
  dictKey: () => dictKey,
34
+ getAtPath: () => getAtPath,
34
35
  i18nText: () => i18nText,
35
36
  isDictCollectionName: () => isDictCollectionName,
36
37
  isDictKeyDescriptor: () => isDictKeyDescriptor,
37
38
  isI18nTextDescriptor: () => isI18nTextDescriptor,
38
39
  resolveI18nText: () => resolveI18nText,
40
+ setAtPathInPlace: () => setAtPathInPlace,
39
41
  validateI18nTextValue: () => validateI18nTextValue,
40
42
  withI18n: () => withI18n
41
43
  });
@@ -253,20 +255,81 @@ function resolveI18nText(value, locale, fallback, field) {
253
255
  `No translation available for locale "${locale}"` + (chain.length > 0 ? ` or fallback chain [${chain.join(", ")}]` : "") + "."
254
256
  );
255
257
  }
258
+ function getAtPath(obj, path) {
259
+ const arrayIdx = path.indexOf("[].");
260
+ if (arrayIdx !== -1) {
261
+ const arrayKey = path.slice(0, arrayIdx);
262
+ const restPath = path.slice(arrayIdx + 3);
263
+ const arr = obj[arrayKey];
264
+ if (!Array.isArray(arr)) return [];
265
+ return arr.flatMap((item) => {
266
+ if (!item || typeof item !== "object" || Array.isArray(item)) return [];
267
+ return getAtPath(item, restPath);
268
+ });
269
+ }
270
+ const dotIdx = path.indexOf(".");
271
+ if (dotIdx !== -1) {
272
+ const head = path.slice(0, dotIdx);
273
+ const rest = path.slice(dotIdx + 1);
274
+ const nested = obj[head];
275
+ if (!nested || typeof nested !== "object" || Array.isArray(nested)) return [];
276
+ return getAtPath(nested, rest);
277
+ }
278
+ const val = obj[path];
279
+ return val !== void 0 ? [val] : [];
280
+ }
281
+ function setAtPathInPlace(obj, path, value) {
282
+ const dotIdx = path.indexOf(".");
283
+ if (dotIdx !== -1) {
284
+ const head = path.slice(0, dotIdx);
285
+ const rest = path.slice(dotIdx + 1);
286
+ const nested = obj[head];
287
+ if (!nested || typeof nested !== "object" || Array.isArray(nested)) return;
288
+ setAtPathInPlace(nested, rest, value);
289
+ return;
290
+ }
291
+ obj[path] = value;
292
+ }
293
+ function applyAtPath(obj, path, locale, fallback) {
294
+ const arrayIdx = path.indexOf("[].");
295
+ if (arrayIdx !== -1) {
296
+ const arrayKey = path.slice(0, arrayIdx);
297
+ const restPath = path.slice(arrayIdx + 3);
298
+ const arr = obj[arrayKey];
299
+ if (!Array.isArray(arr)) return obj;
300
+ return {
301
+ ...obj,
302
+ [arrayKey]: arr.map((item) => {
303
+ if (!item || typeof item !== "object" || Array.isArray(item)) return item;
304
+ return applyAtPath(item, restPath, locale, fallback);
305
+ })
306
+ };
307
+ }
308
+ const dotIdx = path.indexOf(".");
309
+ if (dotIdx !== -1) {
310
+ const head = path.slice(0, dotIdx);
311
+ const rest = path.slice(dotIdx + 1);
312
+ const nested = obj[head];
313
+ if (!nested || typeof nested !== "object" || Array.isArray(nested)) return obj;
314
+ return {
315
+ ...obj,
316
+ [head]: applyAtPath(nested, rest, locale, fallback)
317
+ };
318
+ }
319
+ const raw = obj[path];
320
+ if (raw === void 0 || raw === null) return obj;
321
+ if (typeof raw !== "object" || Array.isArray(raw)) return obj;
322
+ return {
323
+ ...obj,
324
+ [path]: resolveI18nText(raw, locale, fallback, path)
325
+ };
326
+ }
256
327
  function applyI18nLocale(record, i18nFields, locale, fallback) {
257
328
  const fieldNames = Object.keys(i18nFields);
258
329
  if (fieldNames.length === 0) return record;
259
- const result = { ...record };
330
+ let result = record;
260
331
  for (const field of fieldNames) {
261
- const raw = result[field];
262
- if (raw === void 0 || raw === null) continue;
263
- if (typeof raw !== "object" || Array.isArray(raw)) continue;
264
- result[field] = resolveI18nText(
265
- raw,
266
- locale,
267
- fallback,
268
- field
269
- );
332
+ result = applyAtPath(result, field, locale, fallback);
270
333
  }
271
334
  return result;
272
335
  }
@@ -829,11 +892,13 @@ function withI18n() {
829
892
  applyI18nLocale,
830
893
  dictCollectionName,
831
894
  dictKey,
895
+ getAtPath,
832
896
  i18nText,
833
897
  isDictCollectionName,
834
898
  isDictKeyDescriptor,
835
899
  isI18nTextDescriptor,
836
900
  resolveI18nText,
901
+ setAtPathInPlace,
837
902
  validateI18nTextValue,
838
903
  withI18n
839
904
  });