@aussieljk/forkbook 0.0.1-10 → 0.0.1-12

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 (346) hide show
  1. package/README.md +1 -1
  2. package/assets/create/rendererAssets/common/button.css +6 -6
  3. package/assets/create/rendererAssets/common/header.css +5 -5
  4. package/assets/create/rendererAssets/common/page.css +10 -10
  5. package/assets/server/template.ejs +6 -3
  6. package/dist/_browser-chunks/{Color-X63I7FHI.js → Color-TA43572R.js} +2 -2
  7. package/dist/_browser-chunks/{DocsRenderer-JXND3PVQ.js → DocsRenderer-DKXSW2OY.js} +2 -2
  8. package/dist/_browser-chunks/{WithTooltip-5S6F2P7L.js → WithTooltip-66AWY4VQ.js} +5 -4
  9. package/dist/_browser-chunks/{chunk-RBCHTR7C.js → chunk-2ELGJRFZ.js} +1 -1
  10. package/dist/_browser-chunks/{chunk-DYNTDJ3O.js → chunk-2UKY4NXZ.js} +1 -1
  11. package/dist/_browser-chunks/{chunk-I4ATZPNZ.js → chunk-2WMECYEY.js} +3 -3
  12. package/dist/_browser-chunks/{chunk-6ELMKWKX.js → chunk-2WZWS7GJ.js} +1 -1
  13. package/dist/_browser-chunks/{chunk-N3NRW5XX.js → chunk-2YWS25WY.js} +1 -1
  14. package/dist/_browser-chunks/{chunk-NGMQJMCY.js → chunk-3O4QUF3D.js} +1 -1
  15. package/dist/_browser-chunks/{chunk-GNZY6LOW.js → chunk-5MRMYSUN.js} +4 -4
  16. package/dist/_browser-chunks/{chunk-RMYQ3QN3.js → chunk-5XGERZHU.js} +15 -12
  17. package/dist/_browser-chunks/{chunk-5WMXI5GW.js → chunk-AQVUHXWY.js} +6 -4
  18. package/dist/_browser-chunks/{chunk-ZHKZKFY4.js → chunk-ARZTIHZK.js} +6 -10
  19. package/dist/_browser-chunks/{chunk-DS2WQZGO.js → chunk-D2Z5KXPS.js} +12 -41
  20. package/dist/_browser-chunks/{chunk-EQKMUQF3.js → chunk-DT7BB545.js} +3 -2
  21. package/dist/_browser-chunks/{chunk-76222HQR.js → chunk-E6QKKKLO.js} +20 -5
  22. package/dist/_browser-chunks/{chunk-5Z65SURM.js → chunk-F22A5EGD.js} +4 -4
  23. package/dist/_browser-chunks/{chunk-3M5T7BW4.js → chunk-GGALYEQS.js} +1 -1
  24. package/dist/_browser-chunks/{chunk-TTBPZQ24.js → chunk-HGIW4I4J.js} +11 -18
  25. package/dist/_browser-chunks/{chunk-46Z7NGAS.js → chunk-HX443LKV.js} +1 -1
  26. package/dist/_browser-chunks/{chunk-KYSD26D6.js → chunk-IGD46SQI.js} +90 -83
  27. package/dist/_browser-chunks/{chunk-LTCXWKZO.js → chunk-QSYOMLRG.js} +667 -624
  28. package/dist/_browser-chunks/{chunk-2JT76G3E.js → chunk-SBOQ4QPY.js} +15 -15
  29. package/dist/_browser-chunks/{chunk-O24AZJZ7.js → chunk-UDR26TXA.js} +2 -2
  30. package/dist/_browser-chunks/{chunk-5I7E4GMO.js → chunk-WY2LUGOH.js} +1 -1
  31. package/dist/_browser-chunks/{chunk-7DQREF4S.js → chunk-XV3AEPJW.js} +1 -1
  32. package/dist/_browser-chunks/{matchers-YLBYSYAF.js → matchers-2HVLNCVO.js} +4 -4
  33. package/dist/_browser-chunks/{react-dom-client-4OHE3QDV.js → react-dom-client-SLBUX3U3.js} +1 -1
  34. package/dist/_node-chunks/{attached-runtime-PDBJ2EGV.js → attached-runtime-AU2RZM4Y.js} +28 -29
  35. package/dist/_node-chunks/{builder-manager-VLL26RPG.js → builder-manager-UPXA2KKT.js} +39 -28
  36. package/dist/_node-chunks/{chunk-FR2ZDWKJ.js → chunk-22A63J7O.js} +7 -7
  37. package/dist/_node-chunks/{chunk-ZBWAA2EY.js → chunk-22TWJGGQ.js} +28 -43
  38. package/dist/_node-chunks/{chunk-M4QNXI37.js → chunk-2GJBHF56.js} +6 -6
  39. package/dist/_node-chunks/{chunk-TNFH4Y4G.js → chunk-2MGPZNKV.js} +280 -306
  40. package/dist/_node-chunks/{chunk-KRWR44KT.js → chunk-2Q3YWQSK.js} +6 -6
  41. package/dist/_node-chunks/{chunk-6DRVJCYP.js → chunk-2W525A4I.js} +7 -7
  42. package/dist/_node-chunks/{chunk-ZFLK7MY5.js → chunk-2X3WAH7V.js} +7 -7
  43. package/dist/_node-chunks/{chunk-FERXOKZY.js → chunk-34DNGOCZ.js} +8 -8
  44. package/dist/_node-chunks/{chunk-ID3WA6WR.js → chunk-3MJZ5GI2.js} +6 -6
  45. package/dist/_node-chunks/{chunk-AAL6X7YG.js → chunk-3X67K6EI.js} +136 -114
  46. package/dist/_node-chunks/{chunk-QGC3UWR5.js → chunk-5KMW5XXM.js} +6 -6
  47. package/dist/_node-chunks/{chunk-FXBZWUW3.js → chunk-5MYXWAKD.js} +512 -1033
  48. package/dist/_node-chunks/chunk-5N7YRHXJ.js +20 -0
  49. package/dist/_node-chunks/{chunk-QGVU7IFS.js → chunk-6772LYNF.js} +7 -7
  50. package/dist/_node-chunks/{chunk-IGOX6TUG.js → chunk-76M6JG5T.js} +7 -7
  51. package/dist/_node-chunks/{chunk-MKUA4ZCG.js → chunk-7F6TIY4T.js} +8 -8
  52. package/dist/_node-chunks/{chunk-KWNBN3DV.js → chunk-7SBWGNA7.js} +10 -10
  53. package/dist/_node-chunks/chunk-ABCEMTIP.js +20 -0
  54. package/dist/_node-chunks/{chunk-JVWXCB3L.js → chunk-AHNN3TQH.js} +8 -8
  55. package/dist/_node-chunks/{chunk-CEDR5CNM.js → chunk-BDATIKVV.js} +7 -7
  56. package/dist/_node-chunks/{chunk-K4O2ZAMU.js → chunk-BMM74ZQW.js} +6 -6
  57. package/dist/_node-chunks/{chunk-DR7NW2MI.js → chunk-BOWRRVJM.js} +6 -6
  58. package/dist/_node-chunks/{chunk-FRBE7ES4.js → chunk-BTDLJXAT.js} +6 -6
  59. package/dist/_node-chunks/{chunk-GKHLTHYM.js → chunk-C2HVGXLD.js} +224 -181
  60. package/dist/_node-chunks/chunk-CWIJ2D5F.js +18 -0
  61. package/dist/_node-chunks/{chunk-QOFBJXPH.js → chunk-DNX4BLMS.js} +7 -7
  62. package/dist/_node-chunks/{chunk-G2ZUFOHU.js → chunk-DXR3YGRT.js} +6 -6
  63. package/dist/_node-chunks/{chunk-GBVWRZHP.js → chunk-EFZAYIPN.js} +6 -6
  64. package/dist/_node-chunks/{chunk-MY7UVHPL.js → chunk-FAR3NIPG.js} +8 -8
  65. package/dist/_node-chunks/{chunk-MBPHOLXB.js → chunk-FFUIQJRI.js} +32 -40
  66. package/dist/_node-chunks/{chunk-TZIT6SZP.js → chunk-FKI7K3GE.js} +6 -6
  67. package/dist/_node-chunks/{chunk-VSHYJR23.js → chunk-FR67COFW.js} +7 -7
  68. package/dist/_node-chunks/chunk-FUDG3QKB.js +25 -0
  69. package/dist/_node-chunks/chunk-G6GOV7H7.js +19 -0
  70. package/dist/_node-chunks/{chunk-DRCP3DQF.js → chunk-H7UVQBCQ.js} +8 -8
  71. package/dist/_node-chunks/{chunk-CSFNS7HA.js → chunk-HMQUTLMS.js} +6 -6
  72. package/dist/_node-chunks/{chunk-VG2KFIOW.js → chunk-HPXM4SGT.js} +9 -9
  73. package/dist/_node-chunks/{chunk-MQC7ZY6L.js → chunk-HW4T3OXA.js} +7 -7
  74. package/dist/_node-chunks/{chunk-QVLHVO4X.js → chunk-HW7RCOV4.js} +8 -8
  75. package/dist/_node-chunks/{chunk-NGFFEW2B.js → chunk-IFHNMS7I.js} +19 -19
  76. package/dist/_node-chunks/{chunk-IL7YA7QJ.js → chunk-IKUSSZJ3.js} +10 -10
  77. package/dist/_node-chunks/{chunk-OPG46TLN.js → chunk-IOXDHKFF.js} +7 -7
  78. package/dist/_node-chunks/chunk-J3CNNXKQ.js +11 -0
  79. package/dist/_node-chunks/{chunk-ACSO4HQP.js → chunk-JB4457FJ.js} +6 -6
  80. package/dist/_node-chunks/{chunk-T5VZYRL2.js → chunk-JHX35YKT.js} +6 -6
  81. package/dist/_node-chunks/{chunk-CKE4R4NL.js → chunk-JKPKEYSH.js} +6 -6
  82. package/dist/_node-chunks/{chunk-RC4HPD5Q.js → chunk-JMFTALJW.js} +6 -6
  83. package/dist/_node-chunks/{chunk-BDU3ZUMK.js → chunk-JXS4P2RM.js} +7 -7
  84. package/dist/_node-chunks/{chunk-7CV4VEA2.js → chunk-K2K6KTBC.js} +8 -8
  85. package/dist/_node-chunks/{chunk-THDTJJMO.js → chunk-KMC5WWQS.js} +7 -7
  86. package/dist/_node-chunks/{chunk-FJFB7TWU.js → chunk-KQTFSKC6.js} +8 -8
  87. package/dist/_node-chunks/{chunk-GQYATLH6.js → chunk-KZPWZM2E.js} +37 -34
  88. package/dist/_node-chunks/{chunk-FZ453CHY.js → chunk-LTJ4AYDM.js} +6 -6
  89. package/dist/_node-chunks/{chunk-LH5QBX2U.js → chunk-MNNESU33.js} +497 -475
  90. package/dist/_node-chunks/{chunk-FQGQ5KHN.js → chunk-MNQVVJZN.js} +6 -6
  91. package/dist/_node-chunks/{chunk-CZ3V3HHK.js → chunk-NO7MF6VR.js} +6 -6
  92. package/dist/_node-chunks/{chunk-MIWBXEUH.js → chunk-NPSIAK46.js} +6 -6
  93. package/dist/_node-chunks/{chunk-GGE7TBVX.js → chunk-NUSHY22I.js} +62 -7
  94. package/dist/_node-chunks/{chunk-YU5TVYPS.js → chunk-NXRZL2PR.js} +6 -6
  95. package/dist/_node-chunks/{chunk-7O2UIVID.js → chunk-O2CCUB5T.js} +7 -7
  96. package/dist/_node-chunks/{chunk-BNEC3EBC.js → chunk-ORSH2FXG.js} +6 -6
  97. package/dist/_node-chunks/{chunk-LX2XSPPL.js → chunk-OSNOV4EH.js} +7 -7
  98. package/dist/_node-chunks/{chunk-BPL3ERBH.js → chunk-PHB6QBHM.js} +10 -10
  99. package/dist/_node-chunks/{chunk-63LPGIV4.js → chunk-POA32M7F.js} +21 -21
  100. package/dist/_node-chunks/{chunk-QFXAGOIO.js → chunk-Q64ESHBN.js} +8 -8
  101. package/dist/_node-chunks/{chunk-SYUOBOB5.js → chunk-QBWGJYHY.js} +6 -6
  102. package/dist/_node-chunks/{chunk-7OY4VMAT.js → chunk-QSKVNZCF.js} +7 -7
  103. package/dist/_node-chunks/{chunk-MRCPS4S3.js → chunk-QX6RXAEU.js} +6 -6
  104. package/dist/_node-chunks/{chunk-RJXAXHDJ.js → chunk-R73PEGQU.js} +9 -9
  105. package/dist/_node-chunks/{chunk-3CSGIJKG.js → chunk-RHH7VDIY.js} +8 -8
  106. package/dist/_node-chunks/{chunk-BXDMSX3D.js → chunk-RMJNWFPV.js} +9 -9
  107. package/dist/_node-chunks/{chunk-GJSYGBI5.js → chunk-RT2LVWTC.js} +7 -7
  108. package/dist/_node-chunks/{chunk-5NRWU7S2.js → chunk-SPCPGRYF.js} +7 -7
  109. package/dist/_node-chunks/{chunk-FWAF5NBL.js → chunk-SUHBBHKR.js} +6 -6
  110. package/dist/_node-chunks/{chunk-SGEPJMTU.js → chunk-TXZTC6LA.js} +22 -22
  111. package/dist/_node-chunks/{chunk-5SMIGUYF.js → chunk-U5HVQTHI.js} +6 -6
  112. package/dist/_node-chunks/{chunk-LG3NMXCM.js → chunk-UFZUSE3Y.js} +6 -6
  113. package/dist/_node-chunks/{chunk-DQ44ZAEM.js → chunk-UGQFYYBC.js} +6 -6
  114. package/dist/_node-chunks/{chunk-R2ZCFA7I.js → chunk-UKLCYEZU.js} +7 -7
  115. package/dist/_node-chunks/{chunk-IUPE4SU2.js → chunk-VJEN2JM3.js} +8 -8
  116. package/dist/_node-chunks/{chunk-WVRM6DQU.js → chunk-W5ZAUN5R.js} +7 -7
  117. package/dist/_node-chunks/{chunk-7KD5DKGZ.js → chunk-WNEWL2PL.js} +6 -6
  118. package/dist/_node-chunks/{chunk-6DHTL5G2.js → chunk-WUVQ465T.js} +6 -6
  119. package/dist/_node-chunks/{chunk-3W4KR5GX.js → chunk-XCNYQV2M.js} +19 -15
  120. package/dist/_node-chunks/{chunk-VUMGWJ6Y.js → chunk-XOAWAXUH.js} +7 -7
  121. package/dist/_node-chunks/chunk-Y472MP5U.js +281 -0
  122. package/dist/_node-chunks/{chunk-HCP5DG52.js → chunk-ZCKTYMZT.js} +320 -316
  123. package/dist/_node-chunks/{chunk-ECOW63CV.js → chunk-ZUK5ZLPP.js} +8 -8
  124. package/dist/_node-chunks/dist-2DPC664Y.js +27 -0
  125. package/dist/_node-chunks/dist-XBFUDMFQ.js +16 -0
  126. package/dist/_node-chunks/{local-runtime-V5YTRN24.js → local-runtime-Z667YPXR.js} +19 -20
  127. package/dist/_node-chunks/{mdx-plugin-CBOD52VP.js → mdx-plugin-BPRPTZNP.js} +13 -13
  128. package/dist/_node-chunks/{monorepo-GF6H53U4.js → monorepo-GO54BY34.js} +11 -11
  129. package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-K4TTV2DQ.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-PEHFNJQ5.js} +11 -11
  130. package/dist/_node-chunks/optimized-tests-W7U4ZRWX.js +22 -0
  131. package/dist/_node-chunks/{pattern-copy-play-M2QNC4IZ.js → pattern-copy-play-64HQIVWK.js} +9 -9
  132. package/dist/_node-chunks/postinstallAddon-XM2BHKDN.js +20 -0
  133. package/dist/_node-chunks/{rehype-external-links-3IDE4CYH.js → rehype-external-links-2BSEZ7AC.js} +9 -9
  134. package/dist/_node-chunks/{rehype-slug-GKB3WS3U.js → rehype-slug-6253EA36.js} +9 -9
  135. package/dist/_node-chunks/{relaxed-limits-C6QU365N.js → relaxed-limits-4PAAPG3J.js} +11 -11
  136. package/dist/_node-chunks/{run-XWBUPXLN.js → run-3SQW3FRF.js} +18 -18
  137. package/dist/_node-chunks/{run-TMVS3KKA.js → run-XJT3YVMZ.js} +16 -16
  138. package/dist/_node-chunks/{setup-KEEJK4WI.js → setup-JIYCTADZ.js} +8 -8
  139. package/dist/_node-chunks/{vitest.config.4.template-74HEE4WJ.js → vitest.config.4.template-W74SGWHT.js} +7 -7
  140. package/dist/actions/decorator.js +12 -20
  141. package/dist/addon-a11y/index.js +2 -2
  142. package/dist/addon-a11y/manager.js +12 -12
  143. package/dist/addon-a11y/preset.js +7 -7
  144. package/dist/addon-a11y/preview.js +2 -2
  145. package/dist/addon-docs/blocks.d.ts +10 -6
  146. package/dist/addon-docs/blocks.js +28 -30
  147. package/dist/addon-docs/index.js +3 -3
  148. package/dist/addon-docs/manager.js +3 -3
  149. package/dist/addon-docs/preset.js +10 -10
  150. package/dist/addon-docs/preview.js +1 -1
  151. package/dist/addon-links/preview.d.ts +1 -1
  152. package/dist/addon-mcp/preset.js +9 -9
  153. package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +15 -15
  154. package/dist/addon-ondevice-controls/index.js +1 -1
  155. package/dist/addon-ondevice-controls/register.js +1 -1
  156. package/dist/addon-pseudo-states/index.js +1 -1
  157. package/dist/addon-pseudo-states/preview.js +1 -1
  158. package/dist/addon-themes/postinstall.js +7 -7
  159. package/dist/addon-vitest/constants.js +8 -8
  160. package/dist/addon-vitest/manager.js +18 -9
  161. package/dist/addon-vitest/node/coverage-reporter.js +11 -11
  162. package/dist/addon-vitest/node/vitest.js +28 -28
  163. package/dist/addon-vitest/postinstall.js +10 -10
  164. package/dist/addon-vitest/preset.js +15 -15
  165. package/dist/addon-vitest/vitest-plugin/global-setup.js +21 -21
  166. package/dist/addon-vitest/vitest-plugin/index.js +68 -58
  167. package/dist/babel/index.js +11 -11
  168. package/dist/bin/core.js +106 -88
  169. package/dist/bin/dispatcher.js +10 -10
  170. package/dist/bin/loader.js +8 -8
  171. package/dist/builder-vite/index.js +18 -18
  172. package/dist/builder-vite/preset.js +13 -13
  173. package/dist/channels/index.d.ts +1 -1
  174. package/dist/channels/index.js +1 -1
  175. package/dist/{chunk-Dr3R0DXk.d.ts → chunk-B-NVyPqN.d.ts} +2 -2
  176. package/dist/{chunk-Fg1Fm__9.d.ts → chunk-BmCH-L7_.d.ts} +393 -383
  177. package/dist/{chunk-CNqjcOmK.d.ts → chunk-Bn1RoGAP.d.ts} +1 -1
  178. package/dist/{chunk-BXLImeLy.d.ts → chunk-CfEntHiI.d.ts} +18 -3
  179. package/dist/{chunk-D0NUmzXp.d.ts → chunk-IMedIHPn.d.ts} +3 -3
  180. package/dist/{chunk-CYuvV2sR.d.ts → chunk-evfhuBNU.d.ts} +1 -1
  181. package/dist/cli/index.d.ts +2 -2
  182. package/dist/cli/index.js +25 -30
  183. package/dist/cli/tools/sdk/child-host.d.ts +1 -1
  184. package/dist/cli/tools/sdk/child-host.js +17 -17
  185. package/dist/cli/tools/sdk/index.d.ts +2 -2
  186. package/dist/cli/tools/sdk/index.js +18 -18
  187. package/dist/cli-commands/bin/index.js +7 -7
  188. package/dist/client-logger/index.js +2 -1
  189. package/dist/common/index.d.ts +5 -5
  190. package/dist/common/index.js +34 -35
  191. package/dist/components/index.d.ts +6 -6
  192. package/dist/components/index.js +152 -162
  193. package/dist/core-server/index.d.ts +6 -5
  194. package/dist/core-server/index.js +688 -152
  195. package/dist/core-server/presets/common-manager.js +227 -316
  196. package/dist/core-server/presets/common-override-preset.js +10 -10
  197. package/dist/core-server/presets/common-preset.js +73 -268
  198. package/dist/create/bin/index.js +7 -7
  199. package/dist/create/index.js +15 -15
  200. package/dist/csf/csf-utils.d.ts +1 -1
  201. package/dist/csf/index.d.ts +1 -1
  202. package/dist/csf/index.js +10 -10
  203. package/dist/csf-tools/index.d.ts +41 -37
  204. package/dist/csf-tools/index.js +13 -13
  205. package/dist/instrumenter/index.d.ts +1 -1
  206. package/dist/instrumenter/index.js +1 -1
  207. package/dist/manager/_manager-chunks/{globals-runtime-CJL1dQtn.js → globals-runtime--RDllwDw.js} +629 -436
  208. package/dist/manager/_manager-chunks/{globals-runtime-DvV_TF3-.js → globals-runtime-B4NRbNSS.js} +2 -2
  209. package/dist/manager/_manager-chunks/{globals-runtime-wjkxyMn0.js → globals-runtime-BC43T1rL.js} +4150 -50
  210. package/dist/manager/_manager-chunks/{globals-runtime-CfurFwS_.js → globals-runtime-BFVFUcji.js} +2 -2
  211. package/dist/manager/_manager-chunks/{globals-runtime-BKQscPdC.js → globals-runtime-BWciJpaD.js} +103 -101
  212. package/dist/manager/_manager-chunks/{globals-runtime-CA8AuIRT.js → globals-runtime-BnQ7i5wq.js} +232 -228
  213. package/dist/manager/_manager-chunks/globals-runtime-BtduS2C2.js +10601 -0
  214. package/dist/manager/_manager-chunks/globals-runtime-BzuYs3dZ.js +1971 -0
  215. package/dist/manager/_manager-chunks/{globals-runtime-BY3epqww.js → globals-runtime-CS41oTca.js} +2 -1
  216. package/dist/manager/_manager-chunks/{globals-runtime-DBba3I9c.js → globals-runtime-CdLHkSK1.js} +260 -401
  217. package/dist/manager/_manager-chunks/globals-runtime-CoTrrHG3.js +1163 -0
  218. package/dist/manager/_manager-chunks/{globals-runtime-BweHuXkK.js → globals-runtime-DCmvKMN5.js} +2 -2
  219. package/dist/manager/_manager-chunks/globals-runtime-DgO0hT2p.js +32 -0
  220. package/dist/manager/_manager-chunks/{globals-runtime-CvIgTRVu.js → globals-runtime-DhygDQ09.js} +5 -5
  221. package/dist/manager/_manager-chunks/{globals-runtime-NwJK8t0T.js → globals-runtime-DweLlyBa.js} +5 -4
  222. package/dist/manager/_manager-chunks/globals-runtime-Me9Bl-sx.js +156 -0
  223. package/dist/manager/_manager-chunks/globals-runtime-nQMRiA0J.js +19 -0
  224. package/dist/manager/_manager-chunks/{globals-runtime-Bj5KDUJi.js → globals-runtime-oRjPg2jY.js} +1 -1
  225. package/dist/manager/_manager-chunks/{runtime-Bs3bEhuy.js → runtime-1BcYUf7-.js} +24 -42
  226. package/dist/manager/_manager-chunks/{runtime-CBQsKmch.js → runtime-B2VQIT0n.js} +739 -554
  227. package/dist/manager/_manager-chunks/runtime-BBaBlpAS.js +552 -0
  228. package/dist/manager/_manager-chunks/{runtime-B_nqedQW.js → runtime-BFgSyEE6.js} +13 -13
  229. package/dist/manager/_manager-chunks/{runtime-jj8qYc2n.js → runtime-CE_oqcpl.js} +6 -6
  230. package/dist/manager/_manager-chunks/{runtime-DtCVCy4G.js → runtime-CRqm7NXD.js} +49 -49
  231. package/dist/manager/_manager-chunks/{runtime-5B2mWjEm.js → runtime-CZtDJIYj.js} +3 -3
  232. package/dist/manager/_manager-chunks/{runtime-eBAgOym6.js → runtime-D3Gk2bTl.js} +846 -835
  233. package/dist/manager/_manager-chunks/{runtime-DG61zYUm.js → runtime-Db8fJ2MP.js} +67 -500
  234. package/dist/manager/_manager-chunks/{runtime-j9yqh0tr.js → runtime-Dj8tizGo.js} +101 -101
  235. package/dist/manager/globals-runtime.js +1 -1
  236. package/dist/manager/runtime.js +1 -1
  237. package/dist/manager-api/index.d.ts +1 -1
  238. package/dist/manager-api/index.js +444 -428
  239. package/dist/manager-errors.d.ts +1 -1
  240. package/dist/mcp/index.js +9 -9
  241. package/dist/mocking-utils/index.js +15 -19
  242. package/dist/nextjs-vite/export-mocks/router/index.js +1 -1
  243. package/dist/nextjs-vite/index.d.ts +1 -1
  244. package/dist/nextjs-vite/index.js +4 -4
  245. package/dist/nextjs-vite/node/index.js +7 -7
  246. package/dist/nextjs-vite/preset.js +12 -12
  247. package/dist/nextjs-vite/preview.js +1 -1
  248. package/dist/nextjs-vite/vite-plugin/index.d.ts +2 -2
  249. package/dist/nextjs-vite/vite-plugin/index.js +9 -9
  250. package/dist/nextjs-vite-plugin/index.js +15 -15
  251. package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
  252. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +1 -1
  253. package/dist/node-logger/index.d.ts +16 -16
  254. package/dist/node-logger/index.js +9 -9
  255. package/dist/oxc-parser/index.js +14 -11
  256. package/dist/oxc-parser/worker.js +10 -10
  257. package/dist/preview/_chunks/{runtime-BJwGQok8.js → runtime-4BNaFIif.js} +180 -21
  258. package/dist/preview/_chunks/{runtime-BUnOhg9h.js → runtime-BSJ0Ov_b.js} +2 -2
  259. package/dist/preview/_chunks/{runtime-BhSZ1Mwt.js → runtime-Bjm1gBLN.js} +6 -19
  260. package/dist/preview/_chunks/{runtime-Bcv1hJky.js → runtime-CBKlMZg2.js} +4148 -48
  261. package/dist/preview/_chunks/{runtime-BPwAnlRx.js → runtime-CElbz0uN.js} +1 -1
  262. package/dist/preview/_chunks/{runtime-BZ4pNS3g.js → runtime-C_nyb8QT.js} +3 -3
  263. package/dist/preview/_chunks/{runtime-BgPhfM5P.js → runtime-CzTPeFXg.js} +676 -376
  264. package/dist/preview/_chunks/{runtime-WapFVPAh.js → runtime-DZ7fvh0y.js} +1 -1
  265. package/dist/preview/runtime.js +1 -1
  266. package/dist/preview-api/index.d.ts +2 -2
  267. package/dist/preview-api/index.js +5 -5
  268. package/dist/preview-errors.d.ts +1 -1
  269. package/dist/react/docgen/docgen-worker.js +11 -11
  270. package/dist/react/entry-preview-argtypes.js +1 -1
  271. package/dist/react/entry-preview-docs.js +1 -1
  272. package/dist/react/entry-preview.js +1 -1
  273. package/dist/react/index.d.ts +1 -1
  274. package/dist/react/index.js +5 -5
  275. package/dist/react/preset.js +13 -13
  276. package/dist/react/preview.js +4 -4
  277. package/dist/react-native/bin/get-stories.js +8 -8
  278. package/dist/react-native/index.d.ts +37 -36
  279. package/dist/react-native/index.js +30 -34
  280. package/dist/react-native/metro/node.d.ts +1 -1
  281. package/dist/react-native/metro/node.js +10 -10
  282. package/dist/react-native/metro/withForkbook.d.ts +7 -7
  283. package/dist/react-native/metro/withForkbook.js +14 -14
  284. package/dist/react-native/preview.js +4 -1
  285. package/dist/react-native/scripts/generate.js +8 -8
  286. package/dist/react-native/stub.js +1 -1
  287. package/dist/react-native-ui/index.d.ts +4 -3
  288. package/dist/react-native-ui/index.js +1 -8
  289. package/dist/react-native-ui-common/index.d.ts +7 -6
  290. package/dist/react-native-ui-common/index.js +6 -6
  291. package/dist/react-vite/node/index.js +7 -7
  292. package/dist/react-vite/preset.js +7 -7
  293. package/dist/server-errors.d.ts +1 -1
  294. package/dist/server-errors.js +9 -9
  295. package/dist/shared/open-service/index.d.ts +1 -1
  296. package/dist/shared/open-service/index.js +1 -1
  297. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
  298. package/dist/shared/open-service/toolsets/docs/public.d.ts +2 -2
  299. package/dist/telemetry/index.d.ts +38 -274
  300. package/dist/telemetry/index.js +11 -66
  301. package/dist/test/index.js +125 -112
  302. package/dist/types/index.d.ts +1 -1
  303. package/dist/types/index.js +2 -2
  304. package/package.json +15 -15
  305. package/template/nextjs-vite/cli/js/Button.jsx +2 -2
  306. package/template/nextjs-vite/cli/js/Header.jsx +1 -1
  307. package/template/nextjs-vite/cli/js/Page.jsx +1 -1
  308. package/template/nextjs-vite/cli/ts/Button.tsx +2 -2
  309. package/template/nextjs-vite/cli/ts/Header.tsx +1 -1
  310. package/template/nextjs-vite/cli/ts/Page.tsx +1 -1
  311. package/template/react/cli/js/Button.jsx +2 -2
  312. package/template/react/cli/js/Header.jsx +1 -1
  313. package/template/react/cli/js/Page.jsx +1 -1
  314. package/template/react/cli/ts/Button.tsx +2 -2
  315. package/template/react/cli/ts/Header.tsx +1 -1
  316. package/template/react/cli/ts/Page.tsx +1 -1
  317. package/template/react-vite/cli/js/Button.jsx +2 -2
  318. package/template/react-vite/cli/js/Header.jsx +1 -1
  319. package/template/react-vite/cli/js/Page.jsx +1 -1
  320. package/template/react-vite/cli/ts/Button.tsx +2 -2
  321. package/template/react-vite/cli/ts/Header.tsx +1 -1
  322. package/template/react-vite/cli/ts/Page.tsx +1 -1
  323. package/dist/_node-chunks/chunk-BMJPOQ2S.js +0 -11
  324. package/dist/_node-chunks/chunk-C3PLG47Q.js +0 -25
  325. package/dist/_node-chunks/chunk-DNV3LPV3.js +0 -33
  326. package/dist/_node-chunks/chunk-DPILYJH4.js +0 -33
  327. package/dist/_node-chunks/chunk-EBWZKN2I.js +0 -1297
  328. package/dist/_node-chunks/chunk-ENBDAHOV.js +0 -18
  329. package/dist/_node-chunks/chunk-FAEOR2AW.js +0 -40
  330. package/dist/_node-chunks/chunk-HVOSLI2K.js +0 -20
  331. package/dist/_node-chunks/chunk-ND323XCC.js +0 -33
  332. package/dist/_node-chunks/chunk-PEL4YXU6.js +0 -19
  333. package/dist/_node-chunks/chunk-T6IU66AM.js +0 -69
  334. package/dist/_node-chunks/chunk-TY2ZY7AO.js +0 -155
  335. package/dist/_node-chunks/chunk-ZD5TUA6I.js +0 -20
  336. package/dist/_node-chunks/dist-7OJKTBKL.js +0 -27
  337. package/dist/_node-chunks/dist-MWP6WLW4.js +0 -16
  338. package/dist/_node-chunks/optimized-tests-KOTSVWTN.js +0 -22
  339. package/dist/_node-chunks/postinstallAddon-WXKJL6DP.js +0 -20
  340. package/dist/_node-chunks/session-id-VMH57SKN.js +0 -23
  341. package/dist/manager/_manager-chunks/globals-runtime-Bs75QQ_I.js +0 -9987
  342. package/dist/manager/_manager-chunks/globals-runtime-WZKaeKm9.js +0 -4091
  343. package/dist/manager/_manager-chunks/runtime-5o_11Jae.js +0 -78
  344. package/dist/preview/_chunks/runtime-BsMjBzuq.js +0 -53
  345. package/dist/preview/_chunks/runtime-C1jgT6tJ.js +0 -4091
  346. package/dist/preview/_chunks/runtime-CkOhMcXf.js +0 -387
@@ -1,9 +1,61 @@
1
1
  import { n as __esmMin, r as __exportAll } from "./runtime-BdGkqNEt.js";
2
- import { A as variant, C as pipe, D as string, E as safeParse, J as isEqual, M as init_index_browser, N as nanoid, O as undefined_, S as optional, T as safeInteger, _ as looseObject, b as number, c as slash, d as l, f as array, g as literal, h as init_dist, j as void_, k as unknown, l as g, lt as dedent, m as custom, p as check, q as init_isEqual, u as init_deepsignal_core_module, ut as init_esm, v as minLength, w as record, x as object, y as minValue } from "./runtime-WapFVPAh.js";
3
- import { n as init_storybook_error, t as StorybookError } from "./runtime-BsMjBzuq.js";
4
- import { At as UniversalStoreFollowerTimeoutError, Et as logger, F as init_channel_slot, Ot as OpenServiceStaticSnapshotInvalidError, P as getChannel, Tt as init_client_logger, f as init_storyDocsCodePanel, jt as init_manager_errors, kt as OpenServiceStaticSnapshotLoadError, p as shouldSkipStoryDocsEmit, r as definePreviewAddon } from "./runtime-BJwGQok8.js";
5
- import { i as emitTransformCode, r as init_preview_api } from "./runtime-BhSZ1Mwt.js";
6
- import { i as j, n as g$1, o as n, r as init_signals_core_module, s as y, t as f } from "./runtime-Bcv1hJky.js";
2
+ import { A as variant, B as T, C as pipe, D as string, E as safeParse, J as isEqual, M as init_index_browser, N as nanoid, O as undefined_, S as optional, T as safeInteger, V as init_dist, _ as looseObject, b as number, c as slash, d as l, f as array, g as literal, h as init_dist$1, j as void_, k as unknown, l as g, lt as dedent, m as custom, p as check, q as init_isEqual, u as init_deepsignal_core_module, ut as init_esm, v as minLength, w as record, x as object, y as minValue } from "./runtime-DZ7fvh0y.js";
3
+ import { A as OpenServiceAsyncRecipeError, B as OpenServiceRemoteCommandDisconnectedError, Bt as init_client_logger, F as OpenServiceLoadedDrainExceededError, Gt as UniversalStoreFollowerTimeoutError, H as OpenServiceUnimplementedOperationError, Ht as once, I as OpenServiceMissingChannelError, Kt as init_manager_errors, L as OpenServiceMissingServiceError, M as OpenServiceCyclicStateError, N as OpenServiceInternalServiceError, P as OpenServiceInvalidStaticPathError, R as OpenServiceOperationNameCollisionError, U as OpenServiceValidationError, Ut as OpenServiceStaticSnapshotInvalidError, V as OpenServiceRemoteCommandUnhandledError, Vt as logger, W as init_open_service, Wt as OpenServiceStaticSnapshotLoadError, X as init_channel_slot, Y as getChannel, _ as instrument, f as init_storyDocsCodePanel, g as init_instrumenter, j as OpenServiceAsyncSchemaError, p as shouldSkipStoryDocsEmit, r as definePreviewAddon, z as OpenServiceRemoteCommandConfigDriftError } from "./runtime-4BNaFIif.js";
4
+ import { i as emitTransformCode, r as init_preview_api } from "./runtime-Bjm1gBLN.js";
5
+ import { a as customMatchers, c as setState, d as isMockFunction, f as mocks, i as JestExtend, l as fn$1, n as JestAsymmetricMatchers, o as getState, p as spyOn$1, r as JestChaiExpect, s as init_dist$2, t as GLOBAL_EXPECT, u as init_dist$3 } from "./runtime-BSJ0Ov_b.js";
6
+ import { a as Assertion, c as init_chai, l as use, o as assert, s as expect$2, u as utils_exports } from "./runtime-CElbz0uN.js";
7
+ import { c as init_esm$1, d as dom_esm_exports, f as init_dom_esm, i as j, m as matchers_exports, n as g$1, o as n, p as init_matchers, r as init_signals_core_module, s as y, t as f, u as userEvent$1 } from "./runtime-CBKlMZg2.js";
8
+ //#region src/storybook-error.ts
9
+ function parseErrorCode({ code, category }) {
10
+ return `FB_${category}_${String(code).padStart(4, "0")}`;
11
+ }
12
+ var StorybookError;
13
+ function init_storybook_error() {
14
+ return (init_storybook_error = __esmMin((() => {
15
+ StorybookError = class StorybookError extends Error {
16
+ get fullErrorCode() {
17
+ return parseErrorCode({
18
+ code: this.code,
19
+ category: this.category
20
+ });
21
+ }
22
+ /** Overrides the default `Error.name` property in the format: FB_<CATEGORY>_<CODE>. */
23
+ get name() {
24
+ const errorName = this._name || this.constructor.name;
25
+ return `${this.fullErrorCode} (${errorName})`;
26
+ }
27
+ set name(name) {
28
+ this._name = name;
29
+ }
30
+ constructor(props) {
31
+ super(StorybookError.getFullMessage(props), props.cause === void 0 ? void 0 : { cause: props.cause });
32
+ this.data = {};
33
+ this.fromStorybook = true;
34
+ this.isHandledError = false;
35
+ this.subErrors = [];
36
+ this.category = props.category;
37
+ this.documentation = props.documentation ?? false;
38
+ this.code = props.code;
39
+ this.isHandledError = props.isHandledError ?? false;
40
+ this.agentFacing = props.agentFacing ?? false;
41
+ this.name = props.name;
42
+ this.subErrors = props.subErrors ?? [];
43
+ }
44
+ /** Generates the error message along with additional documentation link (if applicable). */
45
+ static getFullMessage({ documentation, code, category, message }) {
46
+ let page;
47
+ if (documentation === true) page = `https://forkbook.ljk.dev/error/${parseErrorCode({
48
+ code,
49
+ category
50
+ })}`;
51
+ else if (typeof documentation === "string") page = documentation;
52
+ else if (Array.isArray(documentation)) page = `\n${documentation.map((doc) => `\t- ${doc}`).join("\n")}`;
53
+ return `${message}${page != null ? `\n\nMore info: ${page}\n` : ""}`;
54
+ }
55
+ };
56
+ })))();
57
+ }
58
+ //#endregion
7
59
  //#region src/shared/universal-store/first-party-store-ids.ts
8
60
  var FIRST_PARTY_STORE_IDS, isFirstPartyStoreId;
9
61
  function init_first_party_store_ids() {
@@ -480,165 +532,8 @@ function formatIssues(issues) {
480
532
  return path === "" ? issue.message : `${path}: ${issue.message}`;
481
533
  }).join("\n");
482
534
  }
483
- //#endregion
484
- //#region src/server-errors.ts
485
- var OpenServiceValidationError, OpenServiceMissingServiceError, OpenServiceInternalServiceError, OpenServiceUnimplementedOperationError, OpenServiceInvalidStaticPathError, OpenServiceAsyncSchemaError, OpenServiceLoadedDrainExceededError, OpenServiceMissingChannelError, OpenServiceRemoteCommandDisconnectedError, OpenServiceRemoteCommandUnhandledError, OpenServiceRemoteCommandConfigDriftError, OpenServiceAsyncRecipeError, OpenServiceCyclicStateError, OpenServiceOperationNameCollisionError;
486
- function init_server_errors() {
487
- return (init_server_errors = __esmMin((() => {
488
- init_storybook_error();
489
- OpenServiceValidationError = class extends StorybookError {
490
- constructor(data) {
491
- super({
492
- name: "OpenServiceValidationError",
493
- category: "CORE-COMMON",
494
- code: 5,
495
- message: `Invalid ${data.phase} for ${data.kind} "${data.serviceId}.${data.name}":\n${formatIssues(data.issues)}`
496
- });
497
- this.data = data;
498
- }
499
- };
500
- OpenServiceMissingServiceError = class extends StorybookError {
501
- constructor(data) {
502
- super({
503
- name: "OpenServiceMissingServiceError",
504
- category: "CORE-COMMON",
505
- code: 7,
506
- message: `No registered service with id "${data.serviceId}" exists in this environment.`
507
- });
508
- this.data = data;
509
- }
510
- };
511
- OpenServiceInternalServiceError = class extends StorybookError {
512
- constructor(data) {
513
- super({
514
- name: "OpenServiceInternalServiceError",
515
- category: "CORE-COMMON",
516
- code: 19,
517
- message: `Service "${data.serviceId}" is internal. Pass { internal: true } to getService() only if you intentionally depend on an unstable OSA surface. Internal services may change without notice.`
518
- });
519
- this.data = data;
520
- }
521
- };
522
- OpenServiceUnimplementedOperationError = class extends StorybookError {
523
- constructor(data) {
524
- super({
525
- name: "OpenServiceUnimplementedOperationError",
526
- category: "CORE-COMMON",
527
- code: 8,
528
- message: `${data.kind[0].toUpperCase()}${data.kind.slice(1)} "${data.serviceId}.${data.name}" is not implemented for this environment.`
529
- });
530
- this.data = data;
531
- }
532
- };
533
- OpenServiceInvalidStaticPathError = class extends StorybookError {
534
- constructor(data) {
535
- super({
536
- name: "OpenServiceInvalidStaticPathError",
537
- category: "CORE-COMMON",
538
- code: 10,
539
- message: `Invalid static path "${data.path}" for query "${data.serviceId}.${data.name}": use a relative path with forward slashes and no ".." segments.`
540
- });
541
- this.data = data;
542
- }
543
- };
544
- OpenServiceAsyncSchemaError = class extends StorybookError {
545
- constructor(data) {
546
- super({
547
- name: "OpenServiceAsyncSchemaError",
548
- category: "CORE-COMMON",
549
- code: 9,
550
- message: `Async schema for ${data.kind} "${data.serviceId}.${data.name}" (${data.phase}): query input and output schemas must validate synchronously.`
551
- });
552
- this.data = data;
553
- }
554
- };
555
- OpenServiceLoadedDrainExceededError = class extends StorybookError {
556
- constructor(data) {
557
- super({
558
- name: "OpenServiceLoadedDrainExceededError",
559
- category: "CORE-COMMON",
560
- code: 11,
561
- message: `Query "${data.serviceId}.${data.name}".loaded(...) did not settle after ${data.iterations} drain iterations. Check for handlers that keep discovering new dependencies after every state change.`
562
- });
563
- this.data = data;
564
- }
565
- };
566
- OpenServiceMissingChannelError = class extends StorybookError {
567
- constructor(data = {}) {
568
- super({
569
- name: "OpenServiceMissingChannelError",
570
- category: "CORE-COMMON",
571
- code: 13,
572
- message: data.serviceId ? `Cannot register service "${data.serviceId}": the Forkbook addons channel is not installed in this runtime.` : "The Forkbook addons channel is not installed in this runtime."
573
- });
574
- this.data = data;
575
- }
576
- };
577
- OpenServiceRemoteCommandDisconnectedError = class extends StorybookError {
578
- constructor(data) {
579
- super({
580
- name: "OpenServiceRemoteCommandDisconnectedError",
581
- category: "CORE-COMMON",
582
- code: 14,
583
- message: `Service "${data.serviceId}" was unregistered before a remote command resolved.`
584
- });
585
- this.data = data;
586
- }
587
- };
588
- OpenServiceRemoteCommandUnhandledError = class extends StorybookError {
589
- constructor(data) {
590
- super({
591
- name: "OpenServiceRemoteCommandUnhandledError",
592
- category: "CORE-COMMON",
593
- code: 15,
594
- message: data.delegated ? `The Forkbook this runtime is attached to did not acknowledge remote command "${data.serviceId}.${data.commandName}" in time — it may be busy or unreachable. Retry; note the command may still have executed on that instance.` : `No runtime acknowledged remote command "${data.serviceId}.${data.commandName}"; its handler is not implemented in any connected runtime.`
595
- });
596
- this.data = data;
597
- }
598
- };
599
- OpenServiceRemoteCommandConfigDriftError = class extends StorybookError {
600
- constructor(data) {
601
- super({
602
- name: "OpenServiceRemoteCommandConfigDriftError",
603
- category: "CORE-COMMON",
604
- code: 30,
605
- message: `The Forkbook this runtime is attached to reported it has no handler for remote command "${data.serviceId}.${data.commandName}". The two processes are running different configurations (for example a feature flag enabled in one but not the other). Restart the attached Forkbook with a configuration matching this process.`
606
- });
607
- this.data = data;
608
- }
609
- };
610
- OpenServiceAsyncRecipeError = class extends StorybookError {
611
- constructor() {
612
- super({
613
- name: "OpenServiceAsyncRecipeError",
614
- category: "CORE-COMMON",
615
- code: 31,
616
- message: "setState recipes must be synchronous. A write after an await would change state without authoring a sync entry. Split the command into one setState per synchronous step."
617
- });
618
- }
619
- };
620
- OpenServiceCyclicStateError = class extends StorybookError {
621
- constructor() {
622
- super({
623
- name: "OpenServiceCyclicStateError",
624
- category: "CORE-COMMON",
625
- code: 32,
626
- message: "Service state must be JSON-serializable, but the value is cyclic or nested more than 256 levels deep. Store an id and look the value up in a query instead of a reference."
627
- });
628
- }
629
- };
630
- OpenServiceOperationNameCollisionError = class extends StorybookError {
631
- constructor(data) {
632
- super({
633
- name: "OpenServiceOperationNameCollisionError",
634
- category: "CORE-COMMON",
635
- code: 16,
636
- message: `Service "${data.serviceId}" cannot register "${data.operationName}" as both a query and a command.`
637
- });
638
- this.data = data;
639
- }
640
- };
641
- })))();
535
+ function init_errors() {
536
+ return (init_errors = __esmMin((() => {})))();
642
537
  }
643
538
  //#endregion
644
539
  //#region src/shared/status-store/index.ts
@@ -685,6 +580,295 @@ function init_tags() {
685
580
  })))();
686
581
  }
687
582
  //#endregion
583
+ //#region src/test/expect.ts
584
+ function createExpect() {
585
+ use(JestExtend);
586
+ use(JestChaiExpect);
587
+ use(JestAsymmetricMatchers);
588
+ const expect = ((value, message) => {
589
+ const { assertionCalls } = getState(expect);
590
+ setState({
591
+ assertionCalls: assertionCalls + 1,
592
+ soft: false
593
+ }, expect);
594
+ return expect$2(value, message);
595
+ });
596
+ Object.assign(expect, expect$2);
597
+ expect.getState = () => getState(expect);
598
+ expect.setState = (state) => setState(state, expect);
599
+ expect.extend = (expects) => expect$2.extend(expect, expects);
600
+ expect.soft = (...args) => {
601
+ const assert = expect(...args);
602
+ expect.setState({ soft: true });
603
+ return assert;
604
+ };
605
+ expect.extend(customMatchers);
606
+ expect.unreachable = (message) => {
607
+ assert.fail(`expected${message ? ` "${message}" ` : " "}not to be reached`);
608
+ };
609
+ function assertions(expected) {
610
+ const errorGen = () => /* @__PURE__ */ new Error(`expected number of assertions to be ${expected}, but got ${expect.getState().assertionCalls}`);
611
+ if ("captureStackTrace" in Error && typeof Error.captureStackTrace === "function") Error.captureStackTrace(errorGen(), assertions);
612
+ expect.setState({
613
+ expectedAssertionsNumber: expected,
614
+ expectedAssertionsNumberErrorGen: errorGen
615
+ });
616
+ }
617
+ function hasAssertions() {
618
+ const error = /* @__PURE__ */ new Error("expected any number of assertion, but got none");
619
+ if ("captureStackTrace" in Error && typeof Error.captureStackTrace === "function") Error.captureStackTrace(error, hasAssertions);
620
+ expect.setState({
621
+ isExpectingAssertions: true,
622
+ isExpectingAssertionsError: error
623
+ });
624
+ }
625
+ setState({
626
+ assertionCalls: 0,
627
+ isExpectingAssertions: false,
628
+ isExpectingAssertionsError: null,
629
+ expectedAssertionsNumber: null,
630
+ expectedAssertionsNumberErrorGen: null
631
+ }, expect);
632
+ utils_exports.addMethod(expect, "assertions", assertions);
633
+ utils_exports.addMethod(expect, "hasAssertions", hasAssertions);
634
+ expect.extend(matchers_exports);
635
+ return expect;
636
+ }
637
+ var expect$1;
638
+ function init_expect() {
639
+ return (init_expect = __esmMin((() => {
640
+ init_matchers();
641
+ init_dist$2();
642
+ init_chai();
643
+ expect$1 = createExpect();
644
+ // @vitest/expect expects this to be set
645
+ Object.defineProperty(globalThis, GLOBAL_EXPECT, {
646
+ value: expect$1,
647
+ writable: true,
648
+ configurable: true
649
+ });
650
+ })))();
651
+ }
652
+ //#endregion
653
+ //#region src/test/spy.ts
654
+ function onMockCall(callback) {
655
+ listeners.add(callback);
656
+ return () => void listeners.delete(callback);
657
+ }
658
+ function fn(implementation) {
659
+ return reactiveMock(implementation ? fn$1(implementation) : fn$1());
660
+ }
661
+ function reactiveMock(mock) {
662
+ const reactive = listenWhenCalled(mock);
663
+ const originalMockImplementation = reactive.mockImplementation.bind(null);
664
+ reactive.mockImplementation = (fn) => listenWhenCalled(originalMockImplementation(fn));
665
+ return reactive;
666
+ }
667
+ function listenWhenCalled(mock) {
668
+ const state = T(mock);
669
+ const impl = state.impl;
670
+ state.willCall(function(...args) {
671
+ listeners.forEach((listener) => listener(mock, args));
672
+ return impl?.apply(this, args);
673
+ });
674
+ return mock;
675
+ }
676
+ /**
677
+ * Calls [`.mockClear()`](https://vitest.dev/api/mock#mockclear) on every mocked function. This will
678
+ * only empty `.mock` state, it will not reset implementation.
679
+ *
680
+ * It is useful if you need to clean up mock between different assertions.
681
+ */
682
+ function clearAllMocks() {
683
+ mocks.forEach((spy) => spy.mockClear());
684
+ moduleMockSpies.forEach((spy) => spy.mockClear());
685
+ }
686
+ /**
687
+ * Calls [`.mockReset()`](https://vitest.dev/api/mock#mockreset) on every mocked function. This will
688
+ * empty `.mock` state, reset "once" implementations and force the base implementation to return
689
+ * `undefined` when invoked.
690
+ *
691
+ * This is useful when you want to completely reset a mock to the default state.
692
+ */
693
+ function resetAllMocks() {
694
+ mocks.forEach((spy) => spy.mockReset());
695
+ moduleMockSpies.forEach((spy) => spy.mockReset());
696
+ }
697
+ /**
698
+ * Calls [`.mockRestore()`](https://vitest.dev/api/mock#mockrestore) on every mocked function. This
699
+ * will restore all original implementations.
700
+ */
701
+ function restoreAllMocks() {
702
+ mocks.forEach((spy) => spy.mockRestore());
703
+ moduleMockSpies.forEach((spy) => spy.mockClear());
704
+ }
705
+ function mocked(item, _options = {}) {
706
+ return item;
707
+ }
708
+ var moduleMockSpies, listeners, spyOn;
709
+ function init_spy() {
710
+ return (init_spy = __esmMin((() => {
711
+ init_dist$3();
712
+ init_dist();
713
+ moduleMockSpies = globalThis.__FORKBOOK_MODULE_MOCK_SPIES__ ??= /* @__PURE__ */ new Set();
714
+ listeners = /* @__PURE__ */ new Set();
715
+ spyOn = ((...args) => {
716
+ return reactiveMock(spyOn$1(...args));
717
+ });
718
+ })))();
719
+ }
720
+ //#endregion
721
+ //#region src/test/testing-library.ts
722
+ var testingLibrary, buildQueries$1, configure, createEvent, fireEvent, findAllByAltText, findAllByDisplayValue, findAllByLabelText, findAllByPlaceholderText, findAllByRole, findAllByTestId, findAllByText, findAllByTitle, findByAltText, findByDisplayValue, findByLabelText, findByPlaceholderText, findByRole, findByTestId, findByText, findByTitle, getAllByAltText, getAllByDisplayValue, getAllByLabelText, getAllByPlaceholderText, getAllByRole, getAllByTestId, getAllByText, getAllByTitle, getByAltText, getByDisplayValue, getByLabelText, getByPlaceholderText, getByRole, getByTestId, getByText, getByTitle, getConfig, getDefaultNormalizer, getElementError, getNodeText, getQueriesForElement, getRoles, getSuggestedQuery, isInaccessible, logDOM, logRoles, prettyDOM, queries, queryAllByAltText, queryAllByAttribute, queryAllByDisplayValue, queryAllByLabelText, queryAllByPlaceholderText, queryAllByRole, queryAllByTestId, queryAllByText, queryAllByTitle, queryByAltText, queryByAttribute, queryByDisplayValue, queryByLabelText, queryByPlaceholderText, queryByRole, queryByTestId, queryByText, queryByTitle, queryHelpers, screen, waitFor, waitForElementToBeRemoved, within, prettyFormat, uninstrumentedUserEvent, userEvent;
723
+ function init_testing_library() {
724
+ return (init_testing_library = __esmMin((() => {
725
+ init_dom_esm();
726
+ init_esm$1();
727
+ init_client_logger();
728
+ init_instrumenter();
729
+ init_esm();
730
+ testingLibrary = instrument({ ...dom_esm_exports }, {
731
+ getKeys: (obj) => Object.keys(obj).filter((key) => key !== "eventWrapper"),
732
+ intercept: (method, path) => path[0] === "fireEvent" || method.startsWith("find") || method.startsWith("waitFor")
733
+ });
734
+ testingLibrary.screen = new Proxy(testingLibrary.screen, { get(target, prop, receiver) {
735
+ if (typeof window !== "undefined" && globalThis.location?.href?.includes("viewMode=docs")) once.warn(dedent`
736
+ You are using Testing Library's \`screen\` object while the story is rendered in docs mode. This will likely lead to issues, as multiple stories are rendered in the same page and therefore screen will potentially find multiple elements. Use the \`canvas\` utility from the story context instead, which will scope the queries to each story's canvas.
737
+
738
+ More info: https://forkbook.ljk.dev/docs/writing-tests/interaction-testing#querying-the-canvas
739
+ `);
740
+ return Reflect.get(target, prop, receiver);
741
+ } });
742
+ ({buildQueries: buildQueries$1, configure, createEvent, fireEvent, findAllByAltText, findAllByDisplayValue, findAllByLabelText, findAllByPlaceholderText, findAllByRole, findAllByTestId, findAllByText, findAllByTitle, findByAltText, findByDisplayValue, findByLabelText, findByPlaceholderText, findByRole, findByTestId, findByText, findByTitle, getAllByAltText, getAllByDisplayValue, getAllByLabelText, getAllByPlaceholderText, getAllByRole, getAllByTestId, getAllByText, getAllByTitle, getByAltText, getByDisplayValue, getByLabelText, getByPlaceholderText, getByRole, getByTestId, getByText, getByTitle, getConfig, getDefaultNormalizer, getElementError, getNodeText, getQueriesForElement, getRoles, getSuggestedQuery, isInaccessible, logDOM, logRoles, prettyDOM, queries, queryAllByAltText, queryAllByAttribute, queryAllByDisplayValue, queryAllByLabelText, queryAllByPlaceholderText, queryAllByRole, queryAllByTestId, queryAllByText, queryAllByTitle, queryByAltText, queryByAttribute, queryByDisplayValue, queryByLabelText, queryByPlaceholderText, queryByRole, queryByTestId, queryByText, queryByTitle, queryHelpers, screen, waitFor, waitForElementToBeRemoved, within, prettyFormat} = testingLibrary);
743
+ uninstrumentedUserEvent = userEvent$1;
744
+ ({userEvent} = instrument({ userEvent: userEvent$1 }, {
745
+ intercept: true,
746
+ getKeys: (obj) => Object.keys(obj).filter((key) => key !== "eventWrapper")
747
+ }));
748
+ })))();
749
+ }
750
+ //#endregion
751
+ //#region src/test/index.ts
752
+ var test_exports = /* @__PURE__ */ __exportAll({
753
+ buildQueries: () => buildQueries$1,
754
+ clearAllMocks: () => clearAllMocks,
755
+ configure: () => configure,
756
+ createEvent: () => createEvent,
757
+ expect: () => expect,
758
+ findAllByAltText: () => findAllByAltText,
759
+ findAllByDisplayValue: () => findAllByDisplayValue,
760
+ findAllByLabelText: () => findAllByLabelText,
761
+ findAllByPlaceholderText: () => findAllByPlaceholderText,
762
+ findAllByRole: () => findAllByRole,
763
+ findAllByTestId: () => findAllByTestId,
764
+ findAllByText: () => findAllByText,
765
+ findAllByTitle: () => findAllByTitle,
766
+ findByAltText: () => findByAltText,
767
+ findByDisplayValue: () => findByDisplayValue,
768
+ findByLabelText: () => findByLabelText,
769
+ findByPlaceholderText: () => findByPlaceholderText,
770
+ findByRole: () => findByRole,
771
+ findByTestId: () => findByTestId,
772
+ findByText: () => findByText,
773
+ findByTitle: () => findByTitle,
774
+ fireEvent: () => fireEvent,
775
+ fn: () => fn,
776
+ getAllByAltText: () => getAllByAltText,
777
+ getAllByDisplayValue: () => getAllByDisplayValue,
778
+ getAllByLabelText: () => getAllByLabelText,
779
+ getAllByPlaceholderText: () => getAllByPlaceholderText,
780
+ getAllByRole: () => getAllByRole,
781
+ getAllByTestId: () => getAllByTestId,
782
+ getAllByText: () => getAllByText,
783
+ getAllByTitle: () => getAllByTitle,
784
+ getByAltText: () => getByAltText,
785
+ getByDisplayValue: () => getByDisplayValue,
786
+ getByLabelText: () => getByLabelText,
787
+ getByPlaceholderText: () => getByPlaceholderText,
788
+ getByRole: () => getByRole,
789
+ getByTestId: () => getByTestId,
790
+ getByText: () => getByText,
791
+ getByTitle: () => getByTitle,
792
+ getConfig: () => getConfig,
793
+ getDefaultNormalizer: () => getDefaultNormalizer,
794
+ getElementError: () => getElementError,
795
+ getNodeText: () => getNodeText,
796
+ getQueriesForElement: () => getQueriesForElement,
797
+ getRoles: () => getRoles,
798
+ getSuggestedQuery: () => getSuggestedQuery,
799
+ isInaccessible: () => isInaccessible,
800
+ isMockFunction: () => isMockFunction,
801
+ logDOM: () => logDOM,
802
+ logRoles: () => logRoles,
803
+ mocked: () => mocked,
804
+ mocks: () => mocks,
805
+ onMockCall: () => onMockCall,
806
+ prettyDOM: () => prettyDOM,
807
+ prettyFormat: () => prettyFormat,
808
+ queries: () => queries,
809
+ queryAllByAltText: () => queryAllByAltText,
810
+ queryAllByAttribute: () => queryAllByAttribute,
811
+ queryAllByDisplayValue: () => queryAllByDisplayValue,
812
+ queryAllByLabelText: () => queryAllByLabelText,
813
+ queryAllByPlaceholderText: () => queryAllByPlaceholderText,
814
+ queryAllByRole: () => queryAllByRole,
815
+ queryAllByTestId: () => queryAllByTestId,
816
+ queryAllByText: () => queryAllByText,
817
+ queryAllByTitle: () => queryAllByTitle,
818
+ queryByAltText: () => queryByAltText,
819
+ queryByAttribute: () => queryByAttribute,
820
+ queryByDisplayValue: () => queryByDisplayValue,
821
+ queryByLabelText: () => queryByLabelText,
822
+ queryByPlaceholderText: () => queryByPlaceholderText,
823
+ queryByRole: () => queryByRole,
824
+ queryByTestId: () => queryByTestId,
825
+ queryByText: () => queryByText,
826
+ queryByTitle: () => queryByTitle,
827
+ queryHelpers: () => queryHelpers,
828
+ resetAllMocks: () => resetAllMocks,
829
+ restoreAllMocks: () => restoreAllMocks,
830
+ sb: () => sb,
831
+ screen: () => screen,
832
+ spyOn: () => spyOn,
833
+ uninstrumentedUserEvent: () => uninstrumentedUserEvent,
834
+ userEvent: () => userEvent,
835
+ waitFor: () => waitFor,
836
+ waitForElementToBeRemoved: () => waitForElementToBeRemoved,
837
+ within: () => within
838
+ });
839
+ function getChaiAssertionKeys(obj, depth) {
840
+ return [...Object.keys(Object.getPrototypeOf(obj)).filter((key) => !chaiAssertionPrivateApi.includes(key)), ...["not"].slice(depth / 3)];
841
+ }
842
+ function getObjectKeys(obj) {
843
+ return Object.keys(obj).filter((key) => key !== "any");
844
+ }
845
+ function getKeys(obj, depth) {
846
+ if ("constructor" in obj && obj.constructor === Assertion) return getChaiAssertionKeys(obj, depth);
847
+ return getObjectKeys(obj);
848
+ }
849
+ var chaiAssertionPrivateApi, expect, sb;
850
+ function init_test() {
851
+ return (init_test = __esmMin((() => {
852
+ init_instrumenter();
853
+ init_chai();
854
+ init_expect();
855
+ init_spy();
856
+ init_testing_library();
857
+ chaiAssertionPrivateApi = [
858
+ "assert",
859
+ "__methods",
860
+ "__flags",
861
+ "_obj"
862
+ ];
863
+ ({expect} = instrument({ expect: expect$1 }, {
864
+ getKeys,
865
+ mutate: true,
866
+ intercept: (method) => method !== "expect"
867
+ }));
868
+ sb = { mock: () => {} };
869
+ })))();
870
+ }
871
+ //#endregion
688
872
  //#region src/shared/open-service/plain-object.ts
689
873
  function isReservedKey(key) {
690
874
  return FORBIDDEN_KEYS.has(key) || key.startsWith("$");
@@ -728,7 +912,7 @@ function clonePlain(value, depth = 0) {
728
912
  var FORBIDDEN_KEYS, MAX_DEPTH;
729
913
  function init_plain_object() {
730
914
  return (init_plain_object = __esmMin((() => {
731
- init_server_errors();
915
+ init_open_service();
732
916
  FORBIDDEN_KEYS = /* @__PURE__ */ new Set([
733
917
  "__proto__",
734
918
  "constructor",
@@ -778,7 +962,7 @@ var SERVICE_SYNC_REQUEST, SERVICE_SYNC_REPLY, SERVICE_ENTRY, SERVICE_COMMAND_INV
778
962
  function init_service_channel() {
779
963
  return (init_service_channel = __esmMin((() => {
780
964
  init_index_browser();
781
- init_dist();
965
+ init_dist$1();
782
966
  init_plain_object();
783
967
  SERVICE_SYNC_REQUEST = "services:sync-request";
784
968
  SERVICE_SYNC_REPLY = "services:sync-reply";
@@ -1109,49 +1293,13 @@ function init_patch_recorder() {
1109
1293
  return (init_patch_recorder = __esmMin((() => {
1110
1294
  init_signals_core_module();
1111
1295
  init_deepsignal_core_module();
1112
- init_server_errors();
1296
+ init_open_service();
1113
1297
  init_plain_object();
1114
1298
  init_service_channel();
1115
1299
  activeDrafts = /* @__PURE__ */ new WeakMap();
1116
1300
  })))();
1117
1301
  }
1118
1302
  //#endregion
1119
- //#region src/shared/open-service/query-state.ts
1120
- /**
1121
- * Expands a `(data, lifecycle)` pair into the full {@link QueryState} surfaced to subscribers.
1122
- *
1123
- * The single source of truth for the derived booleans, shared by the runtime's subscription
1124
- * emissions and `useServiceQuery`'s first-render seed so they can never drift apart. The booleans
1125
- * intentionally follow our `load` vocabulary: `isLoading` is "any load in flight" (TanStack's
1126
- * `isFetching`) and `isInitialLoading` is "the first load with nothing to show yet".
1127
- *
1128
- * Unlike TanStack Query, a subscription here can attach to a query whose `data` is already cached in
1129
- * service state (e.g. revisiting an already-extracted component): its per-subscription lifecycle
1130
- * still starts `pending`/`loading`, but `data` is present from the first emission. `isInitialLoading`
1131
- * therefore also requires `data === undefined`, so consumers gate a "nothing yet" skeleton on it
1132
- * without flashing it over already-available data while a background (re)load runs.
1133
- */
1134
- function buildQueryState(data, lifecycle) {
1135
- const isPending = lifecycle.status === "pending";
1136
- const isLoading = lifecycle.loadStatus === "loading";
1137
- return {
1138
- data,
1139
- error: lifecycle.error,
1140
- status: lifecycle.status,
1141
- loadStatus: lifecycle.loadStatus,
1142
- isPending,
1143
- isSuccess: lifecycle.status === "success",
1144
- isError: lifecycle.status === "error",
1145
- isLoading,
1146
- isInitialLoading: isPending && isLoading && data === void 0,
1147
- isRefreshing: isLoading && !isPending
1148
- };
1149
- }
1150
- /** Coerces an unknown thrown value into an `Error` for the `error` field of a {@link QueryState}. */
1151
- function toError(value) {
1152
- return value instanceof Error ? value : new Error(String(value));
1153
- }
1154
- //#endregion
1155
1303
  //#region src/shared/open-service/service-validation.ts
1156
1304
  /**
1157
1305
  * Re-throws asynchronous subscription failures on the microtask queue so they are not silently
@@ -1199,11 +1347,11 @@ function validateSchemaSync(schema, value, meta) {
1199
1347
  }
1200
1348
  function init_service_validation() {
1201
1349
  return (init_service_validation = __esmMin((() => {
1202
- init_server_errors();
1350
+ init_open_service();
1203
1351
  })))();
1204
1352
  }
1205
1353
  //#endregion
1206
- //#region src/shared/open-service/query-runtime.ts
1354
+ //#region src/shared/open-service/query-load-registry.ts
1207
1355
  /**
1208
1356
  * Returns a deterministic JSON encoding so the same logical input always produces the same key.
1209
1357
  *
@@ -1267,10 +1415,10 @@ function surfaceRejections(settlements) {
1267
1415
  async function drainCollector(collector, settledKeys, serviceId, queryName) {
1268
1416
  let iterations = 0;
1269
1417
  while (collector.size > 0) {
1270
- if (iterations++ > MAX_DRAIN_ITERATIONS) throw new OpenServiceLoadedDrainExceededError({
1418
+ if (iterations++ > 32) throw new OpenServiceLoadedDrainExceededError({
1271
1419
  serviceId,
1272
1420
  name: queryName,
1273
- iterations: MAX_DRAIN_ITERATIONS
1421
+ iterations: 32
1274
1422
  });
1275
1423
  const pending = [...collector];
1276
1424
  collector.clear();
@@ -1295,6 +1443,18 @@ function detachSnapshot(value) {
1295
1443
  if (value === null || typeof value !== "object") return value;
1296
1444
  return JSON.parse(JSON.stringify(value));
1297
1445
  }
1446
+ var inFlightLoads, nextLoadScopeSequence, nextLoadScopeId, EMPTY_SET;
1447
+ function init_query_load_registry() {
1448
+ return (init_query_load_registry = __esmMin((() => {
1449
+ init_open_service();
1450
+ inFlightLoads = /* @__PURE__ */ new Map();
1451
+ nextLoadScopeSequence = 0;
1452
+ nextLoadScopeId = () => String(nextLoadScopeSequence += 1);
1453
+ EMPTY_SET = /* @__PURE__ */ new Set();
1454
+ })))();
1455
+ }
1456
+ //#endregion
1457
+ //#region src/shared/open-service/query-handler.ts
1298
1458
  /**
1299
1459
  * Validates query input synchronously, falling through to the dedicated async-schema error if a
1300
1460
  * schema returns a Promise.
@@ -1360,6 +1520,207 @@ function createQueryGet(refs, queryName, queryDef, selfQueries, fireLoad) {
1360
1520
  return validateQueryOutput(refs, queryName, queryDef, runHandlerSync(refs, queryName, queryDef, validatedInput, selfQueries, refs.registryApi.getService));
1361
1521
  };
1362
1522
  }
1523
+ function init_query_handler() {
1524
+ return (init_query_handler = __esmMin((() => {
1525
+ init_open_service();
1526
+ init_service_validation();
1527
+ })))();
1528
+ }
1529
+ //#endregion
1530
+ //#region src/shared/open-service/query-state.ts
1531
+ /**
1532
+ * Expands a `(data, lifecycle)` pair into the full {@link QueryState} surfaced to subscribers.
1533
+ *
1534
+ * The single source of truth for the derived booleans, shared by the runtime's subscription
1535
+ * emissions and `useServiceQuery`'s first-render seed so they can never drift apart. The booleans
1536
+ * intentionally follow our `load` vocabulary: `isLoading` is "any load in flight" (TanStack's
1537
+ * `isFetching`) and `isInitialLoading` is "the first load with nothing to show yet".
1538
+ *
1539
+ * Unlike TanStack Query, a subscription here can attach to a query whose `data` is already cached in
1540
+ * service state (e.g. revisiting an already-extracted component): its per-subscription lifecycle
1541
+ * still starts `pending`/`loading`, but `data` is present from the first emission. `isInitialLoading`
1542
+ * therefore also requires `data === undefined`, so consumers gate a "nothing yet" skeleton on it
1543
+ * without flashing it over already-available data while a background (re)load runs.
1544
+ */
1545
+ function buildQueryState(data, lifecycle) {
1546
+ const isPending = lifecycle.status === "pending";
1547
+ const isLoading = lifecycle.loadStatus === "loading";
1548
+ return {
1549
+ data,
1550
+ error: lifecycle.error,
1551
+ status: lifecycle.status,
1552
+ loadStatus: lifecycle.loadStatus,
1553
+ isPending,
1554
+ isSuccess: lifecycle.status === "success",
1555
+ isError: lifecycle.status === "error",
1556
+ isLoading,
1557
+ isInitialLoading: isPending && isLoading && data === void 0,
1558
+ isRefreshing: isLoading && !isPending
1559
+ };
1560
+ }
1561
+ /** Coerces an unknown thrown value into an `Error` for the `error` field of a {@link QueryState}. */
1562
+ function toError(value) {
1563
+ return value instanceof Error ? value : new Error(String(value));
1564
+ }
1565
+ //#endregion
1566
+ //#region src/shared/open-service/query-subscribe.ts
1567
+ /**
1568
+ * Runs a query's `load` as the body of a subscription's reactive effect.
1569
+ *
1570
+ * Unlike {@link runLoadBody}, this is invoked synchronously inside an `effect()`, so the external
1571
+ * signals the load reads in its synchronous prefix are tracked — when they later change, the effect
1572
+ * re-runs and the load re-fires, turning it into a reactive async resource. Loads are therefore an
1573
+ * idempotent warming step (the documented guideline, now a hard contract); one-shot side effects
1574
+ * belong in a command.
1575
+ *
1576
+ * Writes go through gated commands: if `isCurrent()` flips to false because a newer run started
1577
+ * (deps changed again), this run's later writes are dropped, so a slow stale load cannot clobber the
1578
+ * newer result. Sibling reads use the default queries — their loads fire-and-forget — so transitive
1579
+ * dependencies stay warm without the `.loaded()` drain, which is only meaningful for awaited pulls.
1580
+ */
1581
+ async function runReactiveLoad(refs, queryName, queryDef, validatedInput, isCurrent) {
1582
+ if (!queryDef.load) return;
1583
+ const loadCtx = {
1584
+ self: {
1585
+ get state() {
1586
+ return refs.state;
1587
+ },
1588
+ queries: refs.reactiveLoadQueries,
1589
+ commands: refs.buildGatedCommands(isCurrent)
1590
+ },
1591
+ getService: refs.registryApi.getService
1592
+ };
1593
+ await Promise.resolve(queryDef.load(validatedInput, loadCtx));
1594
+ }
1595
+ /**
1596
+ * Subscribes to a query by running its handler inside a deep-signal-aware `computed()` and
1597
+ * notifying through an `effect()`. The callback receives a {@link QueryState} combining the current
1598
+ * `data` (the synchronous handler result, or the selected slice) with the per-subscription `load`
1599
+ * lifecycle (`status` / `loadStatus` / `error`).
1600
+ *
1601
+ * The first emission is **synchronous**: `subscribe()` invokes the callback once with the current
1602
+ * {@link QueryState} before it returns the unsubscribe handle. The runtime kicks `load` off in the
1603
+ * background but does not wait for it — subscribers see the current state immediately (a load-backed
1604
+ * query already reads `loading`, since the reactive-load effect runs synchronously here) and
1605
+ * follow-up emissions as the load settles (or re-fires) and tracked state changes.
1606
+ *
1607
+ * Three layers keep emissions precise:
1608
+ *
1609
+ * 1. **Fine-grained reads** — the handler (and the optional `selector`) read through the deep-signal
1610
+ * proxy, so the computed only re-runs when the exact fields it touched change. A write to an
1611
+ * unrelated key or field never re-runs the handler.
1612
+ * 2. **Lifecycle signal** — a separate per-subscription signal carries `status`/`loadStatus`/`error`,
1613
+ * updated by the reactive-load effect. The emit effect reads both it and the data computed, so a
1614
+ * status change (e.g. a background re-load) fires the callback even when the selected slice is
1615
+ * unchanged.
1616
+ * 3. **Object dedup** — the whole emitted `QueryState` is compared with the previously emitted one via
1617
+ * `isEqual`; a re-run that produces a deeply-equal state (e.g. a load rewriting an equal payload
1618
+ * with no status change) does not fire the callback.
1619
+ *
1620
+ * Error sources all surface as `status: 'error'` (keeping the last successful `data`): input
1621
+ * validation failure, a synchronous handler / output-validation throw, and a `load` rejection.
1622
+ */
1623
+ function subscribeToQuery(refs, queryName, queryDef, rawInput, selector, callback) {
1624
+ let active = true;
1625
+ let validatedInput;
1626
+ try {
1627
+ validatedInput = validateQueryInput(refs, queryName, queryDef, rawInput);
1628
+ } catch (error) {
1629
+ callback(buildQueryState(void 0, {
1630
+ status: "error",
1631
+ error: toError(error),
1632
+ loadStatus: "idle"
1633
+ }));
1634
+ return () => {
1635
+ active = false;
1636
+ };
1637
+ }
1638
+ const lifecycle = y({
1639
+ status: queryDef.load ? "pending" : "success",
1640
+ error: void 0,
1641
+ loadStatus: "idle"
1642
+ });
1643
+ let loadTeardown;
1644
+ if (queryDef.load) {
1645
+ let epoch = 0;
1646
+ loadTeardown = j(() => {
1647
+ const myEpoch = ++epoch;
1648
+ const isCurrent = () => myEpoch === epoch;
1649
+ const previous = f(() => lifecycle.value);
1650
+ lifecycle.value = {
1651
+ status: previous.status,
1652
+ error: previous.error,
1653
+ loadStatus: "loading"
1654
+ };
1655
+ runReactiveLoad(refs, queryName, queryDef, validatedInput, isCurrent).then(() => {
1656
+ if (!isCurrent()) return;
1657
+ lifecycle.value = {
1658
+ status: "success",
1659
+ error: void 0,
1660
+ loadStatus: "idle"
1661
+ };
1662
+ }, (error) => {
1663
+ if (!isCurrent()) return;
1664
+ lifecycle.value = {
1665
+ status: "error",
1666
+ error: toError(error),
1667
+ loadStatus: "idle"
1668
+ };
1669
+ });
1670
+ });
1671
+ }
1672
+ const comp = g$1(() => {
1673
+ const output = runHandlerSync(refs, queryName, queryDef, validatedInput, refs.defaultQueries, refs.registryApi.getService);
1674
+ if (selector) {
1675
+ const validated = f(() => validateQueryOutput(refs, queryName, queryDef, output));
1676
+ selector(output);
1677
+ return detachSnapshot(selector(validated));
1678
+ }
1679
+ return detachSnapshot(validateQueryOutput(refs, queryName, queryDef, output));
1680
+ });
1681
+ let hasEmitted = false;
1682
+ let lastEmitted;
1683
+ let lastData;
1684
+ const teardown = j(() => {
1685
+ const life = lifecycle.value;
1686
+ let data;
1687
+ let status = life.status;
1688
+ let error = life.error;
1689
+ try {
1690
+ data = comp.value;
1691
+ lastData = data;
1692
+ } catch (handlerError) {
1693
+ data = lastData;
1694
+ status = "error";
1695
+ error = toError(handlerError);
1696
+ }
1697
+ if (!active) return;
1698
+ const state = buildQueryState(data, {
1699
+ status,
1700
+ error,
1701
+ loadStatus: life.loadStatus
1702
+ });
1703
+ if (hasEmitted && isEqual(state, lastEmitted)) return;
1704
+ hasEmitted = true;
1705
+ lastEmitted = state;
1706
+ callback(state);
1707
+ });
1708
+ return () => {
1709
+ active = false;
1710
+ teardown();
1711
+ loadTeardown?.();
1712
+ };
1713
+ }
1714
+ function init_query_subscribe() {
1715
+ return (init_query_subscribe = __esmMin((() => {
1716
+ init_signals_core_module();
1717
+ init_isEqual();
1718
+ init_query_load_registry();
1719
+ init_query_handler();
1720
+ })))();
1721
+ }
1722
+ //#endregion
1723
+ //#region src/shared/open-service/query-runtime.ts
1363
1724
  /**
1364
1725
  * Triggers a `load` if one is not already in flight for the same key, or returns the existing
1365
1726
  * promise so concurrent callers share the work.
@@ -1438,34 +1799,6 @@ async function runLoadBody(refs, queryName, queryDef, validatedInput, ancestorCh
1438
1799
  await drainCollector(collector, void 0, refs.serviceId, queryName);
1439
1800
  }
1440
1801
  /**
1441
- * Runs a query's `load` as the body of a subscription's reactive effect.
1442
- *
1443
- * Unlike {@link runLoadBody}, this is invoked synchronously inside an `effect()`, so the external
1444
- * signals the load reads in its synchronous prefix are tracked — when they later change, the effect
1445
- * re-runs and the load re-fires, turning it into a reactive async resource. Loads are therefore an
1446
- * idempotent warming step (the documented guideline, now a hard contract); one-shot side effects
1447
- * belong in a command.
1448
- *
1449
- * Writes go through gated commands: if `isCurrent()` flips to false because a newer run started
1450
- * (deps changed again), this run's later writes are dropped, so a slow stale load cannot clobber the
1451
- * newer result. Sibling reads use the default queries — their loads fire-and-forget — so transitive
1452
- * dependencies stay warm without the `.loaded()` drain, which is only meaningful for awaited pulls.
1453
- */
1454
- async function runReactiveLoad(refs, queryName, queryDef, validatedInput, isCurrent) {
1455
- if (!queryDef.load) return;
1456
- const loadCtx = {
1457
- self: {
1458
- get state() {
1459
- return refs.state;
1460
- },
1461
- queries: refs.reactiveLoadQueries,
1462
- commands: refs.buildGatedCommands(isCurrent)
1463
- },
1464
- getService: refs.registryApi.getService
1465
- };
1466
- await Promise.resolve(queryDef.load(validatedInput, loadCtx));
1467
- }
1468
- /**
1469
1802
  * Builds the `ctx.self.queries` map used inside a *reactive subscription load* body.
1470
1803
  *
1471
1804
  * `.get()` here fires the dependency's `load` fire-and-forget (deduped via {@link inFlightLoads}),
@@ -1617,10 +1950,10 @@ async function runLoaded(refs, queryName, queryDef, rawInput, parentAncestorChai
1617
1950
  let iterations = 0;
1618
1951
  let hasMoreWork = true;
1619
1952
  while (hasMoreWork) {
1620
- if (iterations++ > MAX_DRAIN_ITERATIONS) throw new OpenServiceLoadedDrainExceededError({
1953
+ if (iterations++ > 32) throw new OpenServiceLoadedDrainExceededError({
1621
1954
  serviceId: refs.serviceId,
1622
1955
  name: queryName,
1623
- iterations: MAX_DRAIN_ITERATIONS
1956
+ iterations: 32
1624
1957
  });
1625
1958
  while (session.collector.size > 0) {
1626
1959
  const pending = [...session.collector];
@@ -1690,143 +2023,20 @@ function createDefaultQuery(refs, queryName, queryDef) {
1690
2023
  subscribe
1691
2024
  };
1692
2025
  }
1693
- /**
1694
- * Subscribes to a query by running its handler inside a deep-signal-aware `computed()` and
1695
- * notifying through an `effect()`. The callback receives a {@link QueryState} combining the current
1696
- * `data` (the synchronous handler result, or the selected slice) with the per-subscription `load`
1697
- * lifecycle (`status` / `loadStatus` / `error`).
1698
- *
1699
- * The first emission is **synchronous**: `subscribe()` invokes the callback once with the current
1700
- * {@link QueryState} before it returns the unsubscribe handle. The runtime kicks `load` off in the
1701
- * background but does not wait for it — subscribers see the current state immediately (a load-backed
1702
- * query already reads `loading`, since the reactive-load effect runs synchronously here) and
1703
- * follow-up emissions as the load settles (or re-fires) and tracked state changes.
1704
- *
1705
- * Three layers keep emissions precise:
1706
- *
1707
- * 1. **Fine-grained reads** — the handler (and the optional `selector`) read through the deep-signal
1708
- * proxy, so the computed only re-runs when the exact fields it touched change. A write to an
1709
- * unrelated key or field never re-runs the handler.
1710
- * 2. **Lifecycle signal** — a separate per-subscription signal carries `status`/`loadStatus`/`error`,
1711
- * updated by the reactive-load effect. The emit effect reads both it and the data computed, so a
1712
- * status change (e.g. a background re-load) fires the callback even when the selected slice is
1713
- * unchanged.
1714
- * 3. **Object dedup** — the whole emitted `QueryState` is compared with the previously emitted one via
1715
- * `isEqual`; a re-run that produces a deeply-equal state (e.g. a load rewriting an equal payload
1716
- * with no status change) does not fire the callback.
1717
- *
1718
- * Error sources all surface as `status: 'error'` (keeping the last successful `data`): input
1719
- * validation failure, a synchronous handler / output-validation throw, and a `load` rejection.
1720
- */
1721
- function subscribeToQuery(refs, queryName, queryDef, rawInput, selector, callback) {
1722
- let active = true;
1723
- let validatedInput;
1724
- try {
1725
- validatedInput = validateQueryInput(refs, queryName, queryDef, rawInput);
1726
- } catch (error) {
1727
- callback(buildQueryState(void 0, {
1728
- status: "error",
1729
- error: toError(error),
1730
- loadStatus: "idle"
1731
- }));
1732
- return () => {
1733
- active = false;
1734
- };
1735
- }
1736
- const lifecycle = y({
1737
- status: queryDef.load ? "pending" : "success",
1738
- error: void 0,
1739
- loadStatus: "idle"
1740
- });
1741
- let loadTeardown;
1742
- if (queryDef.load) {
1743
- let epoch = 0;
1744
- loadTeardown = j(() => {
1745
- const myEpoch = ++epoch;
1746
- const isCurrent = () => myEpoch === epoch;
1747
- const previous = f(() => lifecycle.value);
1748
- lifecycle.value = {
1749
- status: previous.status,
1750
- error: previous.error,
1751
- loadStatus: "loading"
1752
- };
1753
- runReactiveLoad(refs, queryName, queryDef, validatedInput, isCurrent).then(() => {
1754
- if (!isCurrent()) return;
1755
- lifecycle.value = {
1756
- status: "success",
1757
- error: void 0,
1758
- loadStatus: "idle"
1759
- };
1760
- }, (error) => {
1761
- if (!isCurrent()) return;
1762
- lifecycle.value = {
1763
- status: "error",
1764
- error: toError(error),
1765
- loadStatus: "idle"
1766
- };
1767
- });
1768
- });
1769
- }
1770
- const comp = g$1(() => {
1771
- const output = runHandlerSync(refs, queryName, queryDef, validatedInput, refs.defaultQueries, refs.registryApi.getService);
1772
- if (selector) {
1773
- const validated = f(() => validateQueryOutput(refs, queryName, queryDef, output));
1774
- selector(output);
1775
- return detachSnapshot(selector(validated));
1776
- }
1777
- return detachSnapshot(validateQueryOutput(refs, queryName, queryDef, output));
1778
- });
1779
- let hasEmitted = false;
1780
- let lastEmitted;
1781
- let lastData;
1782
- const teardown = j(() => {
1783
- const life = lifecycle.value;
1784
- let data;
1785
- let status = life.status;
1786
- let error = life.error;
1787
- try {
1788
- data = comp.value;
1789
- lastData = data;
1790
- } catch (handlerError) {
1791
- data = lastData;
1792
- status = "error";
1793
- error = toError(handlerError);
1794
- }
1795
- if (!active) return;
1796
- const state = buildQueryState(data, {
1797
- status,
1798
- error,
1799
- loadStatus: life.loadStatus
1800
- });
1801
- if (hasEmitted && isEqual(state, lastEmitted)) return;
1802
- hasEmitted = true;
1803
- lastEmitted = state;
1804
- callback(state);
1805
- });
1806
- return () => {
1807
- active = false;
1808
- teardown();
1809
- loadTeardown?.();
1810
- };
1811
- }
1812
2026
  /** Builds the runtime query map for one service runtime. */
1813
2027
  function buildQueries(refs) {
1814
2028
  const result = {};
1815
2029
  for (const [name, queryDef] of refs.queryDefinitions) result[name] = createDefaultQuery(refs, name, queryDef);
1816
2030
  return result;
1817
2031
  }
1818
- var MAX_DRAIN_ITERATIONS, inFlightLoads, nextLoadScopeSequence, nextLoadScopeId, activeHandlerLoadSession, EMPTY_SET;
2032
+ var activeHandlerLoadSession;
1819
2033
  function init_query_runtime() {
1820
2034
  return (init_query_runtime = __esmMin((() => {
1821
- init_signals_core_module();
1822
- init_isEqual();
1823
- init_server_errors();
2035
+ init_open_service();
1824
2036
  init_service_validation();
1825
- MAX_DRAIN_ITERATIONS = 32;
1826
- inFlightLoads = /* @__PURE__ */ new Map();
1827
- nextLoadScopeSequence = 0;
1828
- nextLoadScopeId = () => String(nextLoadScopeSequence += 1);
1829
- EMPTY_SET = /* @__PURE__ */ new Set();
2037
+ init_query_load_registry();
2038
+ init_query_handler();
2039
+ init_query_subscribe();
1830
2040
  })))();
1831
2041
  }
1832
2042
  //#endregion
@@ -2429,7 +2639,7 @@ function init_service_runtime() {
2429
2639
  return (init_service_runtime = __esmMin((() => {
2430
2640
  init_signals_core_module();
2431
2641
  init_deepsignal_core_module();
2432
- init_server_errors();
2642
+ init_open_service();
2433
2643
  init_patch_recorder();
2434
2644
  init_plain_object();
2435
2645
  init_query_runtime();
@@ -2908,9 +3118,9 @@ function connectServiceToChannel(context) {
2908
3118
  var SYNC_REQUEST_SILENCE_MS;
2909
3119
  function init_service_transport() {
2910
3120
  return (init_service_transport = __esmMin((() => {
2911
- init_dist();
3121
+ init_dist$1();
2912
3122
  init_client_logger();
2913
- init_server_errors();
3123
+ init_open_service();
2914
3124
  init_service_channel();
2915
3125
  init_service_error_serialization();
2916
3126
  init_service_sync();
@@ -3114,7 +3324,7 @@ var REGISTRY_SYMBOL, serviceRegistryApi;
3114
3324
  function init_service_registry() {
3115
3325
  return (init_service_registry = __esmMin((() => {
3116
3326
  init_channel_slot();
3117
- init_server_errors();
3327
+ init_open_service();
3118
3328
  init_service_channel();
3119
3329
  init_service_runtime();
3120
3330
  init_service_sync();
@@ -3257,7 +3467,7 @@ function init_paths() {
3257
3467
  var docgenInputSchema, argTypesSchema, docgenErrorSchema, docgenJsDocTagsSchema, docgenComponentFields, docgenSubcomponentFields, docgenSubcomponentSchema, docgenPayloadSchema, docgenOutputSchema, docgenServiceDef;
3258
3468
  function init_definition() {
3259
3469
  return (init_definition = __esmMin((() => {
3260
- init_dist();
3470
+ init_dist$1();
3261
3471
  init_service_definition();
3262
3472
  init_paths();
3263
3473
  docgenInputSchema = object({ id: string() });
@@ -3330,12 +3540,12 @@ function init_definition() {
3330
3540
  }
3331
3541
  //#endregion
3332
3542
  //#region src/shared/open-service/services/docgen/preview.ts
3333
- var preview_default$1;
3543
+ var preview_default$2;
3334
3544
  function init_preview$1() {
3335
3545
  return (init_preview$1 = __esmMin((() => {
3336
3546
  init_preview();
3337
3547
  init_definition();
3338
- preview_default$1 = () => definePreviewAddon({ beforeAll: () => {
3548
+ preview_default$2 = () => definePreviewAddon({ beforeAll: () => {
3339
3549
  if (globalThis.FEATURES?.docgenServer) registerService(docgenServiceDef);
3340
3550
  } });
3341
3551
  })))();
@@ -3357,7 +3567,7 @@ function init_paths$1() {
3357
3567
  var storyDocsInputSchema, storyDocsErrorSchema, storyDocSchema, storyDocsPayloadSchema, storyDocsOutputSchema, storyDocsServiceDef;
3358
3568
  function init_definition$1() {
3359
3569
  return (init_definition$1 = __esmMin((() => {
3360
- init_dist();
3570
+ init_dist$1();
3361
3571
  init_service_definition();
3362
3572
  init_paths$1();
3363
3573
  storyDocsInputSchema = object({ id: string() });
@@ -3468,13 +3678,13 @@ function init_story_docs_source_before_each() {
3468
3678
  }
3469
3679
  //#endregion
3470
3680
  //#region src/shared/open-service/services/story-docs/preview.ts
3471
- var preview_default;
3681
+ var preview_default$1;
3472
3682
  function init_preview$2() {
3473
3683
  return (init_preview$2 = __esmMin((() => {
3474
3684
  init_preview();
3475
3685
  init_definition$1();
3476
3686
  init_story_docs_source_before_each();
3477
- preview_default = () => {
3687
+ preview_default$1 = () => {
3478
3688
  if (!("FEATURES" in globalThis && globalThis.FEATURES?.docgenServer)) return definePreviewAddon({});
3479
3689
  return definePreviewAddon({
3480
3690
  beforeAll: () => {
@@ -3486,6 +3696,96 @@ function init_preview$2() {
3486
3696
  })))();
3487
3697
  }
3488
3698
  //#endregion
3699
+ //#region src/test/preview.ts
3700
+ var resetAllMocksLoader, traverseArgs, nameSpiesAndWrapActionsInSpies, patchedFocus, enhanceContext, preview_default;
3701
+ function init_preview$3() {
3702
+ return (init_preview$3 = __esmMin((() => {
3703
+ init_instrumenter();
3704
+ init_test();
3705
+ resetAllMocksLoader = ({ parameters }) => {
3706
+ if (parameters?.test?.mockReset === true) resetAllMocks();
3707
+ else if (parameters?.test?.clearMocks === true) clearAllMocks();
3708
+ else if (parameters?.test?.restoreMocks !== false) restoreAllMocks();
3709
+ };
3710
+ traverseArgs = (value, depth = 0, key) => {
3711
+ if (depth > 5) return value;
3712
+ if (value == null) return value;
3713
+ if (isMockFunction(value)) {
3714
+ if (key) value.mockName(key);
3715
+ return value;
3716
+ }
3717
+ if (typeof value === "function" && "isAction" in value && value.isAction && !("implicit" in value && value.implicit)) {
3718
+ const mock = fn(value);
3719
+ if (key) mock.mockName(key);
3720
+ return mock;
3721
+ }
3722
+ if (Array.isArray(value)) {
3723
+ depth++;
3724
+ for (let i = 0; i < value.length; i++) if (Object.getOwnPropertyDescriptor(value, i)?.writable) value[i] = traverseArgs(value[i], depth);
3725
+ return value;
3726
+ }
3727
+ if (typeof value === "object" && value.constructor === Object) {
3728
+ depth++;
3729
+ for (const [k, v] of Object.entries(value)) if (Object.getOwnPropertyDescriptor(value, k)?.writable) value[k] = traverseArgs(v, depth, k);
3730
+ return value;
3731
+ }
3732
+ return value;
3733
+ };
3734
+ nameSpiesAndWrapActionsInSpies = ({ initialArgs }) => {
3735
+ traverseArgs(initialArgs);
3736
+ };
3737
+ patchedFocus = false;
3738
+ enhanceContext = async (context) => {
3739
+ if (globalThis.HTMLElement && context.canvasElement instanceof globalThis.HTMLElement) context.canvas = within(context.canvasElement);
3740
+ try {
3741
+ const clipboard = globalThis.window?.navigator?.clipboard;
3742
+ if (clipboard) {
3743
+ context.userEvent = instrument({ userEvent: uninstrumentedUserEvent.setup() }, {
3744
+ intercept: true,
3745
+ getKeys: (obj) => Object.keys(obj).filter((key) => key !== "eventWrapper")
3746
+ }).userEvent;
3747
+ Object.defineProperty(globalThis.window.navigator, "clipboard", {
3748
+ get: () => clipboard,
3749
+ configurable: true
3750
+ });
3751
+ if (!patchedFocus) {
3752
+ const originalFocus = HTMLElement.prototype.focus;
3753
+ let currentFocus = HTMLElement.prototype.focus;
3754
+ const noopFocus = () => {};
3755
+ const focusingElements = /* @__PURE__ */ new Set();
3756
+ Object.defineProperties(HTMLElement.prototype, { focus: {
3757
+ configurable: true,
3758
+ set: (newFocus) => {
3759
+ currentFocus = newFocus;
3760
+ },
3761
+ get() {
3762
+ if (this === HTMLElement.prototype) return currentFocus;
3763
+ let browsingContext;
3764
+ try {
3765
+ browsingContext = this.ownerDocument?.defaultView;
3766
+ } catch {
3767
+ return currentFocus;
3768
+ }
3769
+ if (!browsingContext) return noopFocus;
3770
+ if (focusingElements.has(this)) return originalFocus;
3771
+ focusingElements.add(this);
3772
+ setTimeout(() => focusingElements.delete(this), 0);
3773
+ return currentFocus;
3774
+ }
3775
+ } });
3776
+ patchedFocus = true;
3777
+ }
3778
+ }
3779
+ } catch {}
3780
+ };
3781
+ preview_default = () => definePreviewAddon({ loaders: [
3782
+ resetAllMocksLoader,
3783
+ nameSpiesAndWrapActionsInSpies,
3784
+ enhanceContext
3785
+ ] });
3786
+ })))();
3787
+ }
3788
+ //#endregion
3489
3789
  //#region src/shared/story-index/autoTitle.ts
3490
3790
  /**
3491
3791
  * Combines path parts together, without duplicating separators (slashes). Used instead of
@@ -3678,4 +3978,4 @@ function init_iframe_resize() {
3678
3978
  })))();
3679
3979
  }
3680
3980
  //#endregion
3681
- export { LOOPBACK_HOSTNAMES as A, REVIEW_EVENTS as C, NON_AGGREGATED_STATUS_TYPE_IDS as D, CHANGE_DETECTION_STATUS_TYPE_ID as E, init_global as F, UniversalStore as I, init_universal_store as L, matchesHostname as M, global as N, REVIEW_STATUS_TYPE_ID as O, global_exports as P, init_tags as S, init_events as T, preview_default$1 as _, groupEntriesByComponent as a, registerService as b, isMdxEntry as c, init_autoTitle as d, userOrAutoTitle as f, init_preview$1 as g, preview_default as h, init_iframe_resize as i, init_local_hosts as j, init_status_store as k, init_sortStories as l, init_preview$2 as m, IFRAME_RESIZE_REQUEST_CONTEXT as n, init_story_grid as o, userOrAutoTitleFromSpecifier as p, iframeResizeViewportsEqual as r, init_story_index_filters as s, IFRAME_RESIZE_CONTEXT as t, sortStoriesV7 as u, getService as v, REVIEW_NAMESPACE as w, Tag as x, init_preview as y };
3981
+ export { REVIEW_NAMESPACE as A, matchesHostname as B, init_test as C, Tag as D, onMockCall as E, init_status_store as F, init_universal_store as G, global_exports as H, formatIssues as I, StorybookError as K, init_errors as L, CHANGE_DETECTION_STATUS_TYPE_ID as M, NON_AGGREGATED_STATUS_TYPE_IDS as N, init_tags as O, REVIEW_STATUS_TYPE_ID as P, LOOPBACK_HOSTNAMES as R, registerService as S, init_spy as T, init_global as U, global as V, UniversalStore as W, preview_default$1 as _, groupEntriesByComponent as a, getService as b, isMdxEntry as c, init_autoTitle as d, userOrAutoTitle as f, init_preview$2 as g, preview_default as h, init_iframe_resize as i, init_events as j, REVIEW_EVENTS as k, init_sortStories as l, init_preview$3 as m, IFRAME_RESIZE_REQUEST_CONTEXT as n, init_story_grid as o, userOrAutoTitleFromSpecifier as p, init_storybook_error as q, iframeResizeViewportsEqual as r, init_story_index_filters as s, IFRAME_RESIZE_CONTEXT as t, sortStoriesV7 as u, init_preview$1 as v, test_exports as w, init_preview as x, preview_default$2 as y, init_local_hosts as z };