@aussieljk/forkbook 0.0.1-2 → 0.0.1-20

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 (534) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +35 -53
  3. package/assets/addon-vitest/templates/vitest.config.4.template.ts +2 -2
  4. package/assets/browser/favicon-wrapper.svg +4 -4
  5. package/assets/browser/favicon.svg +1 -1
  6. package/assets/browser/inter-LICENSE.txt +92 -0
  7. package/assets/browser/inter-variable-italic.woff2 +0 -0
  8. package/assets/browser/inter-variable.woff2 +0 -0
  9. package/assets/browser/mirror-ball.png +0 -0
  10. package/assets/builder-vite/iframe.html +8 -24
  11. package/assets/create/rendererAssets/common/Configure.mdx +100 -100
  12. package/assets/create/rendererAssets/common/button.css +7 -7
  13. package/assets/create/rendererAssets/common/header.css +6 -6
  14. package/assets/create/rendererAssets/common/page.css +12 -12
  15. package/assets/create/templates/react-native/index.expo.js +4 -4
  16. package/assets/create/templates/react-native/index.js +5 -5
  17. package/assets/server/base-preview-body.html +32 -32
  18. package/assets/server/base-preview-head.html +86 -86
  19. package/assets/server/template.ejs +31 -26
  20. package/dist/_browser-chunks/{Color-PCLE2J36.js → Color-KALNKPOV.js} +8 -8
  21. package/dist/_browser-chunks/{DocsRenderer-JXND3PVQ.js → DocsRenderer-DKXSW2OY.js} +2 -2
  22. package/dist/_browser-chunks/WithTooltip-66AWY4VQ.js +199 -0
  23. package/dist/_browser-chunks/{chunk-RBCHTR7C.js → chunk-2ELGJRFZ.js} +1 -1
  24. package/dist/_browser-chunks/{chunk-PFRNG3UC.js → chunk-2WZWS7GJ.js} +5 -5
  25. package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-3QNZOMD7.js} +8 -3
  26. package/dist/_browser-chunks/{chunk-LV5PIKV4.js → chunk-3QPZOXB7.js} +6 -8
  27. package/dist/_browser-chunks/{chunk-ODVJ3XZJ.js → chunk-4BOJAE7P.js} +14 -10
  28. package/dist/_browser-chunks/{chunk-2MEPHP35.js → chunk-4KIQBRD2.js} +1 -1
  29. package/dist/_browser-chunks/chunk-4ZGQ4YQ2.js +20 -0
  30. package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
  31. package/dist/_browser-chunks/{chunk-W5M6NPS3.js → chunk-6SL45YM3.js} +15 -18
  32. package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-AN2LJG5I.js} +1 -1
  33. package/dist/_browser-chunks/{chunk-P6PK47TQ.js → chunk-BLCZ3C5M.js} +48 -83
  34. package/dist/_browser-chunks/{chunk-RSPAQWVJ.js → chunk-BNP234B4.js} +1 -1
  35. package/dist/_browser-chunks/{chunk-JYVGARBG.js → chunk-CX37N6FG.js} +770 -720
  36. package/dist/_browser-chunks/{chunk-JSBKXXXF.js → chunk-DHTLVXAL.js} +38 -45
  37. package/dist/_browser-chunks/{chunk-GNZY6LOW.js → chunk-DISGPOF4.js} +54 -51
  38. package/dist/_browser-chunks/chunk-DNJ3OSLB.js +6021 -0
  39. package/dist/_browser-chunks/{chunk-6SXYJQST.js → chunk-E6QKKKLO.js} +21 -6
  40. package/dist/_browser-chunks/{chunk-FJGWSWL5.js → chunk-EBSOKHFG.js} +10 -4
  41. package/dist/_browser-chunks/{chunk-CFAOWGL7.js → chunk-ECMVTOVD.js} +1 -1
  42. package/dist/_browser-chunks/{chunk-CFWWCCZV.js → chunk-ENHFQXYS.js} +9 -7
  43. package/dist/_browser-chunks/{chunk-YTIT5NA5.js → chunk-EW2M3URL.js} +91 -84
  44. package/dist/_browser-chunks/{chunk-MFMDGWP6.js → chunk-FCULT3AE.js} +3 -3
  45. package/dist/_browser-chunks/{chunk-46Z7NGAS.js → chunk-HX443LKV.js} +1 -1
  46. package/dist/_browser-chunks/chunk-HZFHNYRC.js +53 -0
  47. package/dist/_browser-chunks/chunk-IFADVEQE.js +669 -0
  48. package/dist/_browser-chunks/{chunk-OQWFVDIN.js → chunk-KQJ4T6JL.js} +31 -25
  49. package/dist/_browser-chunks/{chunk-RNTIV5CE.js → chunk-LYYXDWR2.js} +9 -9
  50. package/dist/_browser-chunks/{chunk-V5M7Q4HT.js → chunk-MJIDTL3X.js} +4 -14
  51. package/dist/_browser-chunks/{chunk-V2G23FV7.js → chunk-N5WQGLI7.js} +1 -1
  52. package/dist/_browser-chunks/{chunk-EIYAKDGP.js → chunk-NA4ITZTK.js} +127 -105
  53. package/dist/_browser-chunks/{chunk-RMYQ3QN3.js → chunk-NK5SGJNG.js} +22 -17
  54. package/dist/_browser-chunks/chunk-NPNIBOPF.js +18 -0
  55. package/dist/_browser-chunks/{chunk-YEKO6BHJ.js → chunk-ONTSNQON.js} +1 -1
  56. package/dist/_browser-chunks/chunk-OOETBSA7.js +502 -0
  57. package/dist/_browser-chunks/{chunk-KQ7CRO2B.js → chunk-OWWV6YG7.js} +12 -12
  58. package/dist/_browser-chunks/chunk-PFYL47RM.js +45 -0
  59. package/dist/_browser-chunks/{chunk-OD6IBQCC.js → chunk-PQRPDA4U.js} +5 -5
  60. package/dist/_browser-chunks/{chunk-2JDQ35OA.js → chunk-PU7D2WDP.js} +0 -11
  61. package/dist/_browser-chunks/chunk-PZQRXPVR.js +21 -0
  62. package/dist/_browser-chunks/{chunk-5WMXI5GW.js → chunk-QFO2B4X2.js} +31 -28
  63. package/dist/_browser-chunks/{chunk-2JT76G3E.js → chunk-SBOQ4QPY.js} +15 -15
  64. package/dist/_browser-chunks/{chunk-C3D4HEFY.js → chunk-TRXLBGLS.js} +344 -166
  65. package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
  66. package/dist/_browser-chunks/{chunk-5I7E4GMO.js → chunk-WY2LUGOH.js} +1 -1
  67. package/dist/_browser-chunks/chunk-XKTORVEQ.js +255 -0
  68. package/dist/_browser-chunks/chunk-XSVERCGB.js +91 -0
  69. package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-XTQCLWVH.js} +325 -1635
  70. package/dist/_browser-chunks/{chunk-MDOL7KML.js → chunk-YJO5BK52.js} +7 -3
  71. package/dist/_browser-chunks/{chunk-66OCZ54D.js → chunk-ZF37BMDS.js} +6 -2
  72. package/dist/_browser-chunks/{matchers-YLBYSYAF.js → matchers-2HVLNCVO.js} +4 -4
  73. package/dist/_browser-chunks/{react-dom-client-4OHE3QDV.js → react-dom-client-SLBUX3U3.js} +1 -1
  74. package/dist/_node-chunks/{attached-runtime-I2G4WLJI.js → attached-runtime-YD6HKC4B.js} +33 -31
  75. package/dist/_node-chunks/builder-manager-UNJGYVTD.js +1176 -0
  76. package/dist/_node-chunks/chunk-25A7444H.js +47 -0
  77. package/dist/_node-chunks/{chunk-U5W53R2J.js → chunk-2CNN3CRI.js} +506 -494
  78. package/dist/_node-chunks/{chunk-VLOXOXXE.js → chunk-2GA4VQCS.js} +9 -9
  79. package/dist/_node-chunks/{chunk-YZFWBA5L.js → chunk-2VJHCGAK.js} +368 -321
  80. package/dist/_node-chunks/{chunk-FK7KGTV7.js → chunk-33I6AQU7.js} +7 -7
  81. package/dist/_node-chunks/{chunk-6YKBRP72.js → chunk-3CQI3JH5.js} +6 -6
  82. package/dist/_node-chunks/{chunk-IK4FGZLR.js → chunk-3ZOSFS7G.js} +6 -6
  83. package/dist/_node-chunks/{chunk-DUR55DJJ.js → chunk-4BE3LRIQ.js} +86 -67
  84. package/dist/_node-chunks/{chunk-Q7QNUM5H.js → chunk-5LFJQCYN.js} +6 -6
  85. package/dist/_node-chunks/{chunk-3Y6AAY5H.js → chunk-65X3MXFT.js} +8 -8
  86. package/dist/_node-chunks/chunk-6FWJWEAG.js +52 -0
  87. package/dist/_node-chunks/{chunk-UVINFLGY.js → chunk-6NLQCV6A.js} +7 -7
  88. package/dist/_node-chunks/{chunk-KISMCCP5.js → chunk-6OQKMJJA.js} +474 -479
  89. package/dist/_node-chunks/{chunk-XLP2ZKXV.js → chunk-6RYD6ENB.js} +7 -7
  90. package/dist/_node-chunks/{chunk-V2DY426G.js → chunk-75TTPKEA.js} +283 -306
  91. package/dist/_node-chunks/{chunk-3W7F2B7P.js → chunk-7CWDZLIZ.js} +6 -6
  92. package/dist/_node-chunks/{chunk-FPZB5OI7.js → chunk-7M3TOE4F.js} +6 -6
  93. package/dist/_node-chunks/{chunk-DC7DKR5K.js → chunk-AGLGQNTY.js} +6 -6
  94. package/dist/_node-chunks/{chunk-NIBT7XDZ.js → chunk-AOYLA323.js} +9 -6
  95. package/dist/_node-chunks/{chunk-RRN2V55B.js → chunk-AP4HJ3I3.js} +7 -7
  96. package/dist/_node-chunks/chunk-AVHJZUTH.js +2613 -0
  97. package/dist/_node-chunks/{chunk-H32DYT6P.js → chunk-B2EEX2SZ.js} +6 -6
  98. package/dist/_node-chunks/chunk-CGVVOUBC.js +18 -0
  99. package/dist/_node-chunks/{chunk-B5J7Q7J4.js → chunk-CJDYU653.js} +6 -6
  100. package/dist/_node-chunks/{chunk-XHL2LVBM.js → chunk-CPDP5SQS.js} +14 -16
  101. package/dist/_node-chunks/{chunk-LO56I6E2.js → chunk-DAYTIH6Z.js} +10 -10
  102. package/dist/_node-chunks/{chunk-FW2HQUBQ.js → chunk-DO3CPQAZ.js} +6 -6
  103. package/dist/_node-chunks/chunk-DQEUNKLX.js +347 -0
  104. package/dist/_node-chunks/{chunk-BS2WMZMR.js → chunk-EFCBUWOB.js} +7 -7
  105. package/dist/_node-chunks/{chunk-OWNFOGTA.js → chunk-EG2WLN5V.js} +7 -7
  106. package/dist/_node-chunks/{chunk-LCK4ZQKG.js → chunk-EKYNX5NX.js} +9 -9
  107. package/dist/_node-chunks/{chunk-TNJIXE37.js → chunk-F762PHMI.js} +6 -6
  108. package/dist/_node-chunks/{chunk-ET7PWEO7.js → chunk-FC3V4KZO.js} +14 -13
  109. package/dist/_node-chunks/chunk-FXW52X4U.js +281 -0
  110. package/dist/_node-chunks/{chunk-TD5PLLQG.js → chunk-GEJBTN76.js} +62 -7
  111. package/dist/_node-chunks/chunk-GFEH7IBP.js +620 -0
  112. package/dist/_node-chunks/{chunk-TWI4GVH7.js → chunk-GWT4HQZU.js} +6 -6
  113. package/dist/_node-chunks/{chunk-4FEANXWU.js → chunk-HHM5X5RQ.js} +140 -118
  114. package/dist/_node-chunks/{chunk-MA24JW6C.js → chunk-IBLUURAJ.js} +25 -8
  115. package/dist/_node-chunks/{chunk-2BUPBPFB.js → chunk-IENHXJVB.js} +7 -7
  116. package/dist/_node-chunks/{chunk-EWOX7HPJ.js → chunk-IIGBIVK3.js} +6 -6
  117. package/dist/_node-chunks/{chunk-XGIUVY52.js → chunk-J6FGP2VM.js} +7 -7
  118. package/dist/_node-chunks/chunk-JOX7OETB.js +534 -0
  119. package/dist/_node-chunks/{chunk-RXNJDRGO.js → chunk-JR7ZCQ77.js} +21 -25
  120. package/dist/_node-chunks/{chunk-OISX4AGQ.js → chunk-JXZONVHW.js} +37 -31
  121. package/dist/_node-chunks/{chunk-34EO2PUT.js → chunk-KAALBGRE.js} +6 -6
  122. package/dist/_node-chunks/{chunk-SLWQNBGO.js → chunk-L52VGA36.js} +34 -949
  123. package/dist/_node-chunks/chunk-LAJIVWUF.js +497 -0
  124. package/dist/_node-chunks/{chunk-JGGFYIG5.js → chunk-LCNF6BLP.js} +7 -7
  125. package/dist/_node-chunks/chunk-LGHTKFSF.js +405 -0
  126. package/dist/_node-chunks/{chunk-WCULS5TP.js → chunk-LNGSV5UI.js} +7 -7
  127. package/dist/_node-chunks/{chunk-HMP2G23X.js → chunk-MC4BFUVH.js} +6 -6
  128. package/dist/_node-chunks/{chunk-SWO5CDYU.js → chunk-MWKSSYPG.js} +8 -8
  129. package/dist/_node-chunks/{chunk-2DSIDINN.js → chunk-N25CZ3RC.js} +650 -9
  130. package/dist/_node-chunks/{chunk-WZJF2OUH.js → chunk-N4LNGTYL.js} +7 -7
  131. package/dist/_node-chunks/{chunk-XI6B6P47.js → chunk-N5WU4BEY.js} +6 -6
  132. package/dist/_node-chunks/{chunk-TINO74G5.js → chunk-NRXCMSAI.js} +6 -6
  133. package/dist/_node-chunks/{chunk-E6YESGLX.js → chunk-NZWK62R5.js} +542 -1049
  134. package/dist/_node-chunks/{chunk-DHJFTB4K.js → chunk-OBPVOYJA.js} +7 -7
  135. package/dist/_node-chunks/{chunk-6KEHV53S.js → chunk-OMMQME7G.js} +33 -41
  136. package/dist/_node-chunks/chunk-PJRPETSU.js +62 -0
  137. package/dist/_node-chunks/{chunk-7GUDZVRQ.js → chunk-QDVIQG3B.js} +6 -6
  138. package/dist/_node-chunks/{chunk-OUW6R7C3.js → chunk-QEYWG5C7.js} +6 -6
  139. package/dist/_node-chunks/{chunk-GRBLDJCR.js → chunk-QQNRWEHL.js} +132 -149
  140. package/dist/_node-chunks/{chunk-EHUNOMDD.js → chunk-RAIWLNFA.js} +29849 -51588
  141. package/dist/_node-chunks/{chunk-JZOO7GGC.js → chunk-S7RGKBGT.js} +6 -6
  142. package/dist/_node-chunks/{chunk-GEFQN7K3.js → chunk-SFXFL4TP.js} +8 -8
  143. package/dist/_node-chunks/{chunk-JDXXX6LB.js → chunk-SPAHK37C.js} +6 -6
  144. package/dist/_node-chunks/chunk-SUQ4OM7Y.js +49 -0
  145. package/dist/_node-chunks/chunk-U54Q3F7E.js +20 -0
  146. package/dist/_node-chunks/{chunk-RWFIFGO5.js → chunk-UZH2V3WY.js} +8 -8
  147. package/dist/_node-chunks/{chunk-SVTBJ7Q3.js → chunk-VIMGLCNZ.js} +6 -6
  148. package/dist/_node-chunks/{chunk-BSKFCWQD.js → chunk-VNZF62KE.js} +7 -7
  149. package/dist/_node-chunks/{chunk-CCOTJ4FC.js → chunk-VPFU5CEP.js} +10 -10
  150. package/dist/_node-chunks/{chunk-RZMQ7S3L.js → chunk-VYCVBW5Q.js} +8 -8
  151. package/dist/_node-chunks/{chunk-ICPBH3E7.js → chunk-WDANLGYN.js} +7 -7
  152. package/dist/_node-chunks/{chunk-UMUBKI6E.js → chunk-WMZJ2WK4.js} +96 -177
  153. package/dist/_node-chunks/{chunk-LXBD4UL4.js → chunk-WTPHQ2NG.js} +8 -8
  154. package/dist/_node-chunks/chunk-WYCITRIE.js +11 -0
  155. package/dist/_node-chunks/chunk-WYRBOMQF.js +137 -0
  156. package/dist/_node-chunks/{chunk-ZWBCQ4MJ.js → chunk-WZBMPROH.js} +9 -17
  157. package/dist/_node-chunks/{chunk-CXRU72ET.js → chunk-X2GGQZIN.js} +6 -6
  158. package/dist/_node-chunks/chunk-X6OGIC2G.js +28 -0
  159. package/dist/_node-chunks/{chunk-42UWAGPW.js → chunk-XF7H5GZM.js} +52 -22
  160. package/dist/_node-chunks/{chunk-WNZ2UMFM.js → chunk-XUZB4FIX.js} +15 -9
  161. package/dist/_node-chunks/{chunk-3SDUYDXH.js → chunk-XVSUIOZA.js} +7 -7
  162. package/dist/_node-chunks/{chunk-TFEWM4E3.js → chunk-Z665R6AF.js} +75 -75
  163. package/dist/_node-chunks/{chunk-H4PPVMP5.js → chunk-ZEYZWDOS.js} +6 -6
  164. package/dist/_node-chunks/{chunk-UBOGWBEA.js → chunk-ZHRCL7PG.js} +10 -10
  165. package/dist/_node-chunks/chunk-ZLC4JSBV.js +25 -0
  166. package/dist/_node-chunks/{chunk-F3ZFKBHY.js → chunk-ZN6YOIB2.js} +8 -8
  167. package/dist/_node-chunks/{chunk-YCMRA6RX.js → chunk-ZX32M4O7.js} +7 -7
  168. package/dist/_node-chunks/{chunk-NDWKJ4CL.js → chunk-ZZ5XMIGW.js} +97 -111
  169. package/dist/_node-chunks/dist-HBFOS25E.js +16 -0
  170. package/dist/_node-chunks/dist-Q2XNFC24.js +27 -0
  171. package/dist/_node-chunks/{local-runtime-NTKIN2QT.js → local-runtime-4ETW6QTI.js} +19 -20
  172. package/dist/_node-chunks/{mdx-plugin-MWISDWDQ.js → mdx-plugin-OOYTYMVU.js} +2263 -130
  173. package/dist/_node-chunks/{monorepo-LIRFMQXE.js → monorepo-3AWUYNFD.js} +12 -12
  174. package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-CPDW4XTW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-ORY3BAP5.js} +12 -12
  175. package/dist/_node-chunks/optimized-tests-DOKSUJAM.js +22 -0
  176. package/dist/_node-chunks/{pattern-copy-play-EKHIUAU2.js → pattern-copy-play-AY4DE7ME.js} +12 -12
  177. package/dist/_node-chunks/postinstallAddon-L46G75CD.js +20 -0
  178. package/dist/_node-chunks/{rehype-external-links-BUN3HUCO.js → rehype-external-links-FGVC633L.js} +9 -9
  179. package/dist/_node-chunks/{rehype-slug-PLADX223.js → rehype-slug-2AZLMC5G.js} +9 -9
  180. package/dist/_node-chunks/{relaxed-limits-GBHW6KIQ.js → relaxed-limits-QI3YR6CU.js} +12 -12
  181. package/dist/_node-chunks/{run-NL66VTNR.js → run-QJJ4FOF3.js} +281 -19
  182. package/dist/_node-chunks/{run-KDTIZNSY.js → run-WFJZYNZN.js} +18 -18
  183. package/dist/_node-chunks/{setup-MGC7BQO6.js → setup-V5CRAJMV.js} +9 -9
  184. package/dist/_node-chunks/{vitest.config.4.template-JH2THZFG.js → vitest.config.4.template-LECBBF3L.js} +9 -9
  185. package/dist/actions/decorator.js +18 -22
  186. package/dist/actions/index.d.ts +4 -4
  187. package/dist/actions/index.js +3 -2
  188. package/dist/addon-a11y/index.d.ts +3 -3
  189. package/dist/addon-a11y/index.js +3 -2
  190. package/dist/addon-a11y/manager.js +41 -38
  191. package/dist/addon-a11y/preset.js +7 -7
  192. package/dist/addon-a11y/preview.d.ts +8 -2
  193. package/dist/addon-a11y/preview.js +3 -2
  194. package/dist/addon-comments/manager.js +353 -0
  195. package/dist/addon-comments/preset.js +52 -0
  196. package/dist/addon-comments/preview.js +101 -0
  197. package/dist/addon-docs/blocks.d.ts +123 -85
  198. package/dist/addon-docs/blocks.js +159 -85
  199. package/dist/addon-docs/index.d.ts +21 -21
  200. package/dist/addon-docs/index.js +3 -3
  201. package/dist/addon-docs/manager.js +6 -6
  202. package/dist/addon-docs/preset.js +12 -12
  203. package/dist/addon-docs/preview.d.ts +3 -1
  204. package/dist/addon-docs/preview.js +1 -1
  205. package/dist/addon-links/index.d.ts +2 -1
  206. package/dist/addon-links/index.js +5 -2
  207. package/dist/addon-links/preview.d.ts +1 -1
  208. package/dist/addon-links/preview.js +5 -2
  209. package/dist/addon-links/react/index.js +4 -1
  210. package/dist/addon-mcp/preset.js +176 -57
  211. package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +70 -70
  212. package/dist/addon-ondevice-actions/index.js +5 -1
  213. package/dist/addon-ondevice-actions/register.js +5 -1
  214. package/dist/addon-ondevice-controls/index.js +1 -1
  215. package/dist/addon-ondevice-controls/register.js +1 -1
  216. package/dist/addon-pseudo-states/index.d.ts +1 -1
  217. package/dist/addon-pseudo-states/index.js +1 -1
  218. package/dist/addon-pseudo-states/manager.js +2 -2
  219. package/dist/addon-pseudo-states/preview.d.ts +1 -1
  220. package/dist/addon-pseudo-states/preview.js +1 -1
  221. package/dist/addon-themes/index.d.ts +7 -6
  222. package/dist/addon-themes/index.js +2 -2
  223. package/dist/addon-themes/manager.js +4 -4
  224. package/dist/addon-themes/postinstall.js +7 -7
  225. package/dist/addon-themes/preview.js +2 -2
  226. package/dist/addon-vitest/constants.js +8 -8
  227. package/dist/addon-vitest/manager.js +32 -23
  228. package/dist/addon-vitest/node/coverage-reporter.js +11 -11
  229. package/dist/addon-vitest/node/vitest.js +35 -35
  230. package/dist/addon-vitest/postinstall.js +10 -10
  231. package/dist/addon-vitest/preset.js +22 -22
  232. package/dist/addon-vitest/vitest-plugin/global-setup.js +22 -22
  233. package/dist/addon-vitest/vitest-plugin/index.js +78 -68
  234. package/dist/addon-vitest/vitest-plugin/setup-file-with-project-annotations.js +3 -3
  235. package/dist/addon-vitest/vitest-plugin/setup-file.js +1 -1
  236. package/dist/babel/index.d.ts +241 -995
  237. package/dist/babel/index.js +13 -19
  238. package/dist/backgrounds/index.d.ts +1 -1
  239. package/dist/bin/core.js +118 -95
  240. package/dist/bin/dispatcher.js +18 -16
  241. package/dist/bin/loader.js +17 -16
  242. package/dist/builder-next/index.d.ts +59 -0
  243. package/dist/builder-next/index.js +201 -0
  244. package/dist/builder-vite/index.d.ts +8 -3
  245. package/dist/builder-vite/index.js +80 -25
  246. package/dist/builder-vite/preset.js +13 -13
  247. package/dist/channels/index.d.ts +3 -2
  248. package/dist/channels/index.js +97 -24
  249. package/dist/{chunk-Dr3R0DXk.d.ts → chunk-B-NVyPqN.d.ts} +2 -2
  250. package/dist/{chunk-DoIGKY33.d.ts → chunk-BLZXEm1K.d.ts} +6 -8
  251. package/dist/chunk-BcYKnZln.d.ts +10 -0
  252. package/dist/{chunk-DEVFdzxR.d.ts → chunk-BsO65uOb.d.ts} +4 -4
  253. package/dist/{chunk-BCoJQE-f.d.ts → chunk-BtKww7r1.d.ts} +6 -4
  254. package/dist/{chunk-Bpi2tz-6.d.ts → chunk-Bubi-WAs.d.ts} +20 -17
  255. package/dist/chunk-CDMZhRke.d.ts +30 -0
  256. package/dist/chunk-CFhJCPSB.d.ts +48 -0
  257. package/dist/{chunk-DtHByo32.d.ts → chunk-CFk6djyM.d.ts} +5 -5
  258. package/dist/{chunk-CMeX4WRe.d.ts → chunk-CT2iXaHz.d.ts} +1 -1
  259. package/dist/{chunk-pcFXCimE.d.ts → chunk-CmV7WZzR.d.ts} +124 -2
  260. package/dist/{chunk-B2t1tGRh.d.ts → chunk-D2CQlXaR.d.ts} +13 -15
  261. package/dist/{chunk-BGkgZp-H.d.ts → chunk-D3uSIa6H.d.ts} +9 -1
  262. package/dist/{chunk-DzuY9DXg.d.ts → chunk-DDd8BhTY.d.ts} +2 -2
  263. package/dist/{chunk-Dw1z1Pki.d.ts → chunk-DNCU78oW.d.ts} +160 -323
  264. package/dist/chunk-DVIvUVkS.d.ts +195 -0
  265. package/dist/{chunk-gCX81nOr.d.ts → chunk-DgzPaTw9.d.ts} +3 -3
  266. package/dist/{chunk-Kt1tW-D1.d.ts → chunk-Dm-iHJ-s.d.ts} +3 -3
  267. package/dist/{chunk-C-bavsOH.d.ts → chunk-Dw_4ad2Y.d.ts} +6 -6
  268. package/dist/{chunk-CwQKNaYL.d.ts → chunk-OksNJcvJ.d.ts} +2 -2
  269. package/dist/chunk-Susgfkap.d.ts +20 -0
  270. package/dist/{chunk-C2p5r3Vt.d.ts → chunk-ge-rSPy0.d.ts} +818 -701
  271. package/dist/{chunk-BXLImeLy.d.ts → chunk-r-Vjut9o.d.ts} +52 -11
  272. package/dist/cli/index.d.ts +14 -867
  273. package/dist/cli/index.js +47 -4962
  274. package/dist/cli/skills/content/index.d.ts +2 -2
  275. package/dist/cli/skills/content/index.js +2 -2
  276. package/dist/cli/tools/sdk/child-host.d.ts +1 -1
  277. package/dist/cli/tools/sdk/child-host.js +17 -17
  278. package/dist/cli/tools/sdk/index.d.ts +3 -3
  279. package/dist/cli/tools/sdk/index.js +18 -18
  280. package/dist/cli-commands/bin/index.js +7 -7
  281. package/dist/client-logger/index.d.ts +20 -21
  282. package/dist/client-logger/index.js +5 -2
  283. package/dist/common/index.d.ts +27 -39
  284. package/dist/common/index.js +35 -42
  285. package/dist/components/index.d.ts +86 -272
  286. package/dist/components/index.js +2759 -8547
  287. package/dist/core-events/index.d.ts +6 -4
  288. package/dist/core-events/index.js +5 -1
  289. package/dist/core-server/index.d.ts +58 -17
  290. package/dist/core-server/index.js +1500 -382
  291. package/dist/core-server/presets/common-manager.js +836 -1334
  292. package/dist/core-server/presets/common-override-preset.js +12 -10
  293. package/dist/core-server/presets/common-preset.js +100 -282
  294. package/dist/create/bin/index.js +7 -7
  295. package/dist/create/index.js +15 -15
  296. package/dist/csf/csf-utils.d.ts +1 -1
  297. package/dist/csf/index.d.ts +6 -6
  298. package/dist/csf/index.js +86 -154
  299. package/dist/csf-tools/index.d.ts +66 -54
  300. package/dist/csf-tools/index.js +18 -16
  301. package/dist/docs-tools/index.d.ts +332 -16
  302. package/dist/docs-tools/index.js +3 -3
  303. package/dist/highlight/index.d.ts +1 -1
  304. package/dist/instrumenter/index.d.ts +5 -5
  305. package/dist/instrumenter/index.js +31 -19
  306. package/dist/manager/_manager-chunks/{globals-runtime-BvM-NY2g.js → globals-runtime-B4NRbNSS.js} +638 -1731
  307. package/dist/{preview/_chunks/runtime-CqHxptiK.js → manager/_manager-chunks/globals-runtime-BC43T1rL.js} +3413 -173
  308. package/dist/manager/_manager-chunks/{globals-runtime-sGpNlIJ1.js → globals-runtime-BDkYPr00.js} +715 -620
  309. package/dist/manager/_manager-chunks/{globals-runtime-eLPTIfX-.js → globals-runtime-BnQ7i5wq.js} +232 -370
  310. package/dist/manager/_manager-chunks/{globals-runtime-Rp_zjGnh.js → globals-runtime-BnWjPJUH.js} +2 -2
  311. package/dist/manager/_manager-chunks/globals-runtime-BtduS2C2.js +10601 -0
  312. package/dist/manager/_manager-chunks/{globals-runtime-C02fvgcd.js → globals-runtime-Bv2PBsx6.js} +411 -379
  313. package/dist/manager/_manager-chunks/globals-runtime-BzuYs3dZ.js +1971 -0
  314. package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
  315. package/dist/manager/_manager-chunks/globals-runtime-CS41oTca.js +1808 -0
  316. package/dist/manager/_manager-chunks/globals-runtime-CoTrrHG3.js +1163 -0
  317. package/dist/manager/_manager-chunks/{globals-runtime-qKvCZHFY.js → globals-runtime-D6tkG2NO.js} +1033 -621
  318. package/dist/manager/_manager-chunks/{globals-runtime-BmphMP6z.js → globals-runtime-D9zzVzSP.js} +11 -11
  319. package/dist/manager/_manager-chunks/{globals-runtime-FC201B7s.js → globals-runtime-DCmvKMN5.js} +2 -1
  320. package/dist/manager/_manager-chunks/{globals-runtime-DpNYC-qi.js → globals-runtime-DafcXCKU.js} +1013 -778
  321. package/dist/manager/_manager-chunks/globals-runtime-DgO0hT2p.js +32 -0
  322. package/dist/manager/_manager-chunks/globals-runtime-Me9Bl-sx.js +156 -0
  323. package/dist/manager/_manager-chunks/globals-runtime-nQMRiA0J.js +19 -0
  324. package/dist/manager/_manager-chunks/globals-runtime-oRjPg2jY.js +8935 -0
  325. package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
  326. package/dist/manager/_manager-chunks/runtime-BhfRBP4G.js +294 -0
  327. package/dist/manager/_manager-chunks/runtime-BuPcYKCO.js +737 -0
  328. package/dist/manager/_manager-chunks/{runtime-eDVAYF7N.js → runtime-CGaGp83p.js} +57 -76
  329. package/dist/manager/_manager-chunks/{runtime-BhkT2CXl.js → runtime-CXROgt6G.js} +220 -406
  330. package/dist/manager/_manager-chunks/{runtime-i-PDAHLR.js → runtime-Cn5PJT3-.js} +741 -698
  331. package/dist/manager/_manager-chunks/{runtime-cp5pazY2.js → runtime-DJlTd1qE.js} +1717 -1536
  332. package/dist/manager/_manager-chunks/{runtime-D0UOWx0U.js → runtime-DTUm5K9J.js} +232 -158
  333. package/dist/manager/_manager-chunks/{runtime-D94Vq3oR.js → runtime-Dc6lf19c.js} +8 -534
  334. package/dist/manager/_manager-chunks/runtime-DmpQacrn.js +553 -0
  335. package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
  336. package/dist/manager/_manager-chunks/runtime-mjv_40eH.js +201 -0
  337. package/dist/manager/globals-runtime.js +1 -1
  338. package/dist/manager/globals.d.ts +12 -12
  339. package/dist/manager/globals.js +12 -12
  340. package/dist/manager/runtime.js +1 -1
  341. package/dist/manager-api/index.d.ts +1 -1
  342. package/dist/manager-api/index.js +537 -527
  343. package/dist/manager-errors.d.ts +1 -1
  344. package/dist/manager-errors.js +2 -2
  345. package/dist/mcp/index.d.ts +1 -1
  346. package/dist/mcp/index.js +9 -9
  347. package/dist/mocking-utils/index.d.ts +7 -5
  348. package/dist/mocking-utils/index.js +34 -34
  349. package/dist/mocking-utils/mocker-runtime.js +2 -2
  350. package/dist/next/index.d.ts +231 -0
  351. package/dist/next/index.js +398 -0
  352. package/dist/nextjs-vite/export-mocks/headers/index.js +3 -1
  353. package/dist/nextjs-vite/export-mocks/link/index.d.ts +4 -1
  354. package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +9 -1
  355. package/dist/nextjs-vite/export-mocks/router/index.js +13 -7
  356. package/dist/nextjs-vite/index.d.ts +4 -4
  357. package/dist/nextjs-vite/index.js +10 -5
  358. package/dist/nextjs-vite/node/index.d.ts +2 -2
  359. package/dist/nextjs-vite/node/index.js +7 -7
  360. package/dist/nextjs-vite/node-stand-ins/index.d.ts +68 -0
  361. package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
  362. package/dist/nextjs-vite/preset.js +117 -15
  363. package/dist/nextjs-vite/preview.d.ts +2 -1
  364. package/dist/nextjs-vite/preview.js +1 -1
  365. package/dist/nextjs-vite/vite-plugin/index.d.ts +2 -2
  366. package/dist/nextjs-vite/vite-plugin/index.js +9 -9
  367. package/dist/nextjs-vite-plugin/index.d.ts +2 -3
  368. package/dist/nextjs-vite-plugin/index.js +24 -49
  369. package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
  370. package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-image.js +2 -2
  371. package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.js +2 -2
  372. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +10 -6
  373. package/dist/node-logger/index.d.ts +83 -90
  374. package/dist/node-logger/index.js +11 -12
  375. package/dist/oxc-parser/index.js +15 -14
  376. package/dist/oxc-parser/worker.js +10 -10
  377. package/dist/{manager/_manager-chunks/globals-runtime-8HkdnU2F.js → preview/_chunks/runtime-BYRCSYBN.js} +4440 -179
  378. package/dist/preview/_chunks/{runtime-CsV4HZPV.js → runtime-BiYuZt-X.js} +392 -173
  379. package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-Bvh_rfnQ.js} +29 -64
  380. package/dist/preview/_chunks/{runtime-iXdo8CR8.js → runtime-C88AzFBv.js} +772 -418
  381. package/dist/preview/_chunks/{runtime-DrTjJkPY.js → runtime-Cpzxe5eK.js} +447 -151
  382. package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-D2MPrqbU.js} +2 -2
  383. package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-DS0s7U3c.js} +482 -334
  384. package/dist/preview/_chunks/{runtime-CxZK_Ln3.js → runtime-MYVHRAoo.js} +3 -3
  385. package/dist/preview/globals.d.ts +10 -10
  386. package/dist/preview/globals.js +10 -10
  387. package/dist/preview/runtime.js +1 -1
  388. package/dist/preview-api/index.d.ts +3 -3
  389. package/dist/preview-api/index.js +12 -10
  390. package/dist/preview-errors.d.ts +1 -1
  391. package/dist/preview-errors.js +2 -2
  392. package/dist/react/docgen/docgen-worker.js +11 -12
  393. package/dist/react/entry-preview-argtypes.js +1 -1
  394. package/dist/react/entry-preview-docs.js +1 -1
  395. package/dist/react/entry-preview.js +2 -1
  396. package/dist/react/index.d.ts +9 -11
  397. package/dist/react/index.js +8 -6
  398. package/dist/react/preset.js +13 -14
  399. package/dist/react/preview.d.ts +1 -1
  400. package/dist/react/preview.js +5 -4
  401. package/dist/react-native/bin/get-stories.js +12 -12
  402. package/dist/react-native/index.d.ts +48 -47
  403. package/dist/react-native/index.js +64 -249
  404. package/dist/react-native/metro/node.d.ts +3 -3
  405. package/dist/react-native/metro/node.js +10 -9
  406. package/dist/react-native/metro/{withStorybook.d.ts → withForkbook.d.ts} +18 -18
  407. package/dist/react-native/metro/{withStorybook.js → withForkbook.js} +27 -26
  408. package/dist/react-native/preview.js +4 -1
  409. package/dist/react-native/scripts/generate.d.ts +1 -1
  410. package/dist/react-native/scripts/generate.js +8 -8
  411. package/dist/react-native/stub.js +1 -1
  412. package/dist/react-native-theming/index.d.ts +2 -58
  413. package/dist/react-native-theming/index.js +63 -2338
  414. package/dist/react-native-ui/index.d.ts +14 -14
  415. package/dist/react-native-ui/index.js +8 -15
  416. package/dist/react-native-ui-common/index.d.ts +32 -12
  417. package/dist/react-native-ui-common/index.js +26 -31
  418. package/dist/react-vite/index.d.ts +2 -2
  419. package/dist/react-vite/node/index.d.ts +3 -3
  420. package/dist/react-vite/node/index.js +7 -7
  421. package/dist/react-vite/preset.d.ts +3 -1
  422. package/dist/react-vite/preset.js +16 -9
  423. package/dist/router/index.d.ts +80 -3
  424. package/dist/router/index.js +66 -12
  425. package/dist/server-errors.d.ts +1 -1
  426. package/dist/server-errors.js +9 -9
  427. package/dist/shared/open-service/index.d.ts +3 -3
  428. package/dist/shared/open-service/index.js +2 -2
  429. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
  430. package/dist/shared/open-service/toolsets/docs/public.d.ts +28 -28
  431. package/dist/telemetry/index.d.ts +38 -274
  432. package/dist/telemetry/index.js +11 -68
  433. package/dist/test/index.d.ts +2 -2
  434. package/dist/test/index.js +765 -511
  435. package/dist/theming/create.d.ts +1 -1
  436. package/dist/theming/create.js +2 -1
  437. package/dist/theming/index.d.ts +6 -6
  438. package/dist/theming/index.js +41 -16
  439. package/dist/types/index.d.ts +2 -2
  440. package/dist/types/index.js +5 -5
  441. package/dist/viewport/index.d.ts +1 -1
  442. package/package.json +69 -69
  443. package/skills/setup/SKILL.md +14 -0
  444. package/skills/stories/SKILL.md +21 -0
  445. package/skills/write-story/SKILL.md +14 -0
  446. package/template/nextjs-vite/cli/js/Button.jsx +2 -2
  447. package/template/nextjs-vite/cli/js/Button.stories.js +6 -6
  448. package/template/nextjs-vite/cli/js/Configure.mdx +100 -100
  449. package/template/nextjs-vite/cli/js/Header.jsx +1 -1
  450. package/template/nextjs-vite/cli/js/Header.stories.js +2 -2
  451. package/template/nextjs-vite/cli/js/Page.jsx +3 -3
  452. package/template/nextjs-vite/cli/js/Page.stories.js +2 -2
  453. package/template/nextjs-vite/cli/ts/Button.stories.ts +6 -6
  454. package/template/nextjs-vite/cli/ts/Button.tsx +2 -2
  455. package/template/nextjs-vite/cli/ts/Configure.mdx +84 -84
  456. package/template/nextjs-vite/cli/ts/Header.stories.ts +2 -2
  457. package/template/nextjs-vite/cli/ts/Header.tsx +1 -1
  458. package/template/nextjs-vite/cli/ts/Page.stories.ts +2 -2
  459. package/template/nextjs-vite/cli/ts/Page.tsx +3 -3
  460. package/template/react/cli/js/Button.jsx +2 -2
  461. package/template/react/cli/js/Button.stories.js +6 -6
  462. package/template/react/cli/js/Header.jsx +1 -1
  463. package/template/react/cli/js/Header.stories.js +2 -2
  464. package/template/react/cli/js/Page.jsx +3 -3
  465. package/template/react/cli/js/Page.stories.js +2 -2
  466. package/template/react/cli/ts/Button.stories.ts +6 -6
  467. package/template/react/cli/ts/Button.tsx +2 -2
  468. package/template/react/cli/ts/Header.stories.ts +2 -2
  469. package/template/react/cli/ts/Header.tsx +1 -1
  470. package/template/react/cli/ts/Page.stories.ts +2 -2
  471. package/template/react/cli/ts/Page.tsx +3 -3
  472. package/template/react-vite/cli/js/Button.jsx +2 -2
  473. package/template/react-vite/cli/js/Button.stories.js +6 -6
  474. package/template/react-vite/cli/js/Header.jsx +1 -1
  475. package/template/react-vite/cli/js/Header.stories.js +2 -2
  476. package/template/react-vite/cli/js/Page.jsx +3 -3
  477. package/template/react-vite/cli/js/Page.stories.js +2 -2
  478. package/template/react-vite/cli/ts/Button.stories.ts +6 -6
  479. package/template/react-vite/cli/ts/Button.tsx +2 -2
  480. package/template/react-vite/cli/ts/Header.stories.ts +2 -2
  481. package/template/react-vite/cli/ts/Header.tsx +1 -1
  482. package/template/react-vite/cli/ts/Page.stories.ts +2 -2
  483. package/template/react-vite/cli/ts/Page.tsx +3 -3
  484. package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
  485. package/assets/browser/nunito-sans-bold.woff2 +0 -0
  486. package/assets/browser/nunito-sans-italic.woff2 +0 -0
  487. package/assets/browser/nunito-sans-regular.woff2 +0 -0
  488. package/dist/_browser-chunks/WithTooltip-XSQFTBMB.js +0 -1619
  489. package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
  490. package/dist/_browser-chunks/chunk-JMC7AIKT.js +0 -108
  491. package/dist/_node-chunks/builder-manager-VVHYQXCH.js +0 -1661
  492. package/dist/_node-chunks/chunk-2RU7BKEW.js +0 -23
  493. package/dist/_node-chunks/chunk-3BKIBF5S.js +0 -3008
  494. package/dist/_node-chunks/chunk-3T4ZSNPH.js +0 -662
  495. package/dist/_node-chunks/chunk-5DQFEZEA.js +0 -40
  496. package/dist/_node-chunks/chunk-6LMWA44H.js +0 -3837
  497. package/dist/_node-chunks/chunk-BXVYT7SB.js +0 -36
  498. package/dist/_node-chunks/chunk-CQKMLL5J.js +0 -33
  499. package/dist/_node-chunks/chunk-FY6UXW6G.js +0 -11
  500. package/dist/_node-chunks/chunk-IDEL2J23.js +0 -23
  501. package/dist/_node-chunks/chunk-JPAZLYJ3.js +0 -29
  502. package/dist/_node-chunks/chunk-MK2KYAI6.js +0 -5414
  503. package/dist/_node-chunks/chunk-NPO45IMH.js +0 -33
  504. package/dist/_node-chunks/chunk-QEQLR22M.js +0 -1877
  505. package/dist/_node-chunks/chunk-SIEXZVCR.js +0 -51
  506. package/dist/_node-chunks/chunk-TEQGGSP7.js +0 -33
  507. package/dist/_node-chunks/chunk-TFCEV2XX.js +0 -155
  508. package/dist/_node-chunks/chunk-W4OMYLSP.js +0 -1297
  509. package/dist/_node-chunks/chunk-WAXVSN3O.js +0 -18
  510. package/dist/_node-chunks/chunk-ZMAMXQKP.js +0 -4731
  511. package/dist/_node-chunks/dist-VTSTZKUB.js +0 -16
  512. package/dist/_node-chunks/globby-OEMHPBFY.js +0 -2884
  513. package/dist/_node-chunks/jiti-NFX6UU74.js +0 -3848
  514. package/dist/_node-chunks/lib-MDVARD7W.js +0 -366
  515. package/dist/_node-chunks/optimized-tests-HDOLR3EY.js +0 -22
  516. package/dist/_node-chunks/postinstallAddon-GYGMWDL6.js +0 -20
  517. package/dist/_node-chunks/session-id-KIIVOQLR.js +0 -23
  518. package/dist/chunk-BTVrWliM.d.ts +0 -115
  519. package/dist/chunk-BfBzpgct.d.ts +0 -916
  520. package/dist/chunk-BxWufQms.d.ts +0 -142
  521. package/dist/chunk-DaVb55-_.d.ts +0 -124
  522. package/dist/core-server/presets/common-manager.css +0 -170
  523. package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +0 -3389
  524. package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +0 -9766
  525. package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +0 -5357
  526. package/dist/manager/_manager-chunks/globals-runtime-ZHrQFa3-.js +0 -10463
  527. package/dist/manager/_manager-chunks/runtime-B1L9TH89.js +0 -452
  528. package/dist/manager/_manager-chunks/runtime-BK0zF7FN.js +0 -22
  529. package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +0 -998
  530. package/dist/manager/_manager-chunks/runtime-DMig8mT7.js +0 -77
  531. package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
  532. package/dist/preview/_chunks/runtime-BwSxqk3t.js +0 -63
  533. package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
  534. package/dist/preview/_chunks/runtime-DuHdxMFA.js +0 -387
@@ -1,12 +1,12 @@
1
- import { A as Queries, C as GetServiceOptions, D as MatchingOutputSchemas, G as ServiceInstanceOf, I as QueryState, J as ServiceState, K as ServiceRegistrationOptions, N as QueryDefinition, P as QueryFunctions, R as RuntimeService, S as Commands, U as ServiceId, V as ServiceDefinition, W as ServiceInstance, Z as StandardSchemaV1, _ as AnyServiceDefinition, a as ToolsetDefinition, b as CommandDefinition, d as ToolsetOutcome, i as ToolsetCtx, j as Query, k as OperationInputSchemas, q as ServiceRegistryApi, t as AnyToolsetDefinition } from "./chunk-BCoJQE-f.js";
2
- import { a as RenderData } from "./chunk-DoIGKY33.js";
3
- import { s as ThemeVars$1 } from "./chunk-BGkgZp-H.js";
4
- import { p as Channel$1 } from "./chunk-BXLImeLy.js";
5
- import { X as StrictArgTypes$3, s as Args$3 } from "./chunk-Dw1z1Pki.js";
1
+ import { a as RenderData } from "./chunk-BLZXEm1K.js";
2
+ import { s as ThemeVars$1 } from "./chunk-D3uSIa6H.js";
3
+ import { h as Channel$1 } from "./chunk-r-Vjut9o.js";
4
+ import { A as OperationInputSchemas, C as Commands, F as QueryFunctions, G as ServiceInstance, H as ServiceDefinition, J as ServiceRegistryApi, K as ServiceInstanceOf, L as QueryState, M as Query, O as MatchingOutputSchemas, P as QueryDefinition, Q as StandardSchemaV1, W as ServiceId, Y as ServiceState, a as ToolsetCtx, f as ToolsetOutcome, j as Queries, o as ToolsetDefinition, q as ServiceRegistrationOptions, t as AnyToolsetDefinition, v as AnyServiceDefinition, w as GetServiceOptions, x as CommandDefinition, z as RuntimeService } from "./chunk-BtKww7r1.js";
5
+ import { X as StrictArgTypes$3, s as Args$3 } from "./chunk-DNCU78oW.js";
6
6
  import { t as Options$3 } from "./chunk-C6PAgHLT.js";
7
- import { a as StoryStore, i as RenderType, n as StoryRender, r as Render, s as ReporterAPI, u as StorySpecifier } from "./chunk-Bpi2tz-6.js";
7
+ import { a as StoryStore, i as RenderType, n as StoryRender, r as Render, s as ReporterAPI, u as StorySpecifier } from "./chunk-Bubi-WAs.js";
8
8
  import { AfterEach as AfterEach$1, AnnotatedStoryFn as AnnotatedStoryFn$1, ArgTypes as ArgTypes$2, ArgTypesEnhancer, Args, Args as Args$2, ArgsEnhancer, ArgsFromMeta as ArgsFromMeta$1, ArgsStoryFn as ArgsStoryFn$1, BaseAnnotations as BaseAnnotations$1, BeforeAll, BeforeEach, Canvas as Canvas$1, CleanupCallback, CleanupCallback as CleanupCallback$1, ComponentAnnotations as ComponentAnnotations$1, ComponentId, ComponentTitle as ComponentTitle$1, Conditional as Conditional$1, DecoratorApplicator as DecoratorApplicator$1, DecoratorFunction as DecoratorFunction$2, GlobalTypes as GlobalTypes$1, Globals, Globals as Globals$2, IncludeExcludeOptions, InputType, LegacyAnnotatedStoryFn, LegacyStoryAnnotationsOrFn as LegacyStoryAnnotationsOrFn$1, LegacyStoryFn as LegacyStoryFn$1, LoaderFunction as LoaderFunction$1, Meta, Parameters as Parameters$2, PartialStoryFn as PartialStoryFn$1, PlayFunction, PlayFunctionContext, ProjectAnnotations, ProjectAnnotations as BaseProjectAnnotations, Renderer, Renderer as Renderer$2, SBArrayType, SBEnumType, SBIntersectionType, SBObjectType, SBOtherType, SBScalarType, SBType as SBType$1, SBUnionType, SeparatorOptions, StepFunction, StepLabel, StepRunner as StepRunner$1, Story, StoryAnnotations as StoryAnnotations$1, StoryAnnotationsOrFn as StoryAnnotationsOrFn$1, StoryContext, StoryContext as StoryContext$2, StoryContextForEnhancers as StoryContextForEnhancers$1, StoryContextForLoaders, StoryContextForRender, StoryContextUpdate as StoryContextUpdate$1, StoryFn, StoryId, StoryId as StoryId$2, StoryIdentifier, StoryKind as StoryKind$1, StoryName as StoryName$1, StrictArgTypes, StrictArgTypes as StrictArgTypes$2, StrictArgs as StrictArgs$1, StrictInputType, Tag, Tag as Tag$2, TestFunction as TestFunction$1, ViewMode, toId } from "@aussieljk/forkbook/internal/csf";
9
- import React$1, { Component, FC, PropsWithChildren, ReactElement, ReactNode } from "react";
9
+ import React$1, { Component, DependencyList, FC, PropsWithChildren, ReactElement, ReactNode } from "react";
10
10
  import { Channel, ChannelLike, Listener, Listener as Listener$2 } from "@aussieljk/forkbook/internal/channels";
11
11
  import { NavigateOptions, RouterData } from "@aussieljk/forkbook/internal/router";
12
12
  import { API_ComponentEntry as API_ComponentEntry$1, API_ComposedRef, API_ComposedRef as API_ComposedRef$2, API_ComposedRefUpdate, API_DocsEntry, API_DocsEntry as API_DocsEntry$2, API_FilterFunction, API_GroupEntry as API_GroupEntry$1, API_HashEntry, API_HashEntry as API_HashEntry$2, API_IframeRenderer, API_IndexHash, API_IndexHash as API_IndexHash$2, API_Layout, API_LayoutCustomisations, API_LeafEntry, API_LeafEntry as API_LeafEntry$2, API_LoadedRefData, API_Notification, API_OptionsData, API_PanelPositions, API_PreparedStoryIndex, API_Provider, API_ProviderData, API_Refs, API_Refs as API_Refs$2, API_RootEntry as API_RootEntry$1, API_SetRefData, API_Settings, API_SidebarOptions, API_StateMerger, API_StoryEntry, API_StoryEntry as API_StoryEntry$2, API_TestEntry, API_UI, API_UnknownEntries, API_Version, API_Versions, API_ViewMode, Addon_BaseType, Addon_Collection, Addon_Config, Addon_PageType, Addon_StorySortParameterV7, Addon_StoryWrapper, Addon_TestProviderType, Addon_Type as Addon_Type$1, Addon_Types, Addon_TypesEnum, Addon_TypesEnum as Addon_TypesEnum$2, Addon_TypesMapping, Addon_WrapperType, ArgTypes as ArgTypes$1, Args as Args$1, CSFFile, ComponentAnnotations, ComposeStoryFn, ComposedStoryFn, DecoratorFunction as DecoratorFunction$1, DocsContextProps as DocsContextProps$1, GlobalTypes, Globals as Globals$1, IndexEntry, LegacyStoryAnnotationsOrFn, LegacyStoryFn, ModuleExport, ModuleExports, ModuleImportFn, ModuleResolveConfig as ModuleResolveConfig$1, NamedOrDefaultProjectAnnotations, NormalizedComponentAnnotations, NormalizedProjectAnnotations, NormalizedStoriesSpecifier, NormalizedStoryAnnotations, Parameters as Parameters$1, PartialStoryFn, Path, PreparedStory, ProjectAnnotations as ProjectAnnotations$1, RenderContextCallbacks, RenderToCanvas, Renderer as Renderer$1, ResolvedModuleExportFromType, ResolvedModuleExportType, StatusByTypeId, StatusValue, StepRunner, Store_CSFExports, StoryAnnotationsOrFn, StoryContext as StoryContext$1, StoryContextForEnhancers, StoryContextUpdate, StoryId as StoryId$1, StoryIndex, StoryName, StoryRenderOptions, StrictArgTypes as StrictArgTypes$1, Tag as Tag$1, TagsOptions, ViewMode as ViewMode$1 } from "@aussieljk/forkbook/internal/types";
@@ -21,19 +21,283 @@ import { LogLevel } from "@aussieljk/forkbook/internal/node-logger";
21
21
  import { IncomingMessage, Server, ServerResponse } from "http";
22
22
  import { Server as Server$1 } from "net";
23
23
 
24
- //#region .dts-emit/code/core/src/shared/open-service/errors.d.ts
25
- /** Identifies which operation surface produced a validation failure. */
26
- type OperationKind = 'query' | 'command';
24
+ //#region .dts-emit/code/core/src/storybook-error.d.ts
25
+ declare abstract class StorybookError extends Error {
26
+ private _name;
27
+ /** Category of the error. Used to classify the type of error, e.g., 'PREVIEW_API'. */
28
+ readonly category: string;
29
+ /** Code representing the error. Used to uniquely identify the error, e.g., 1. */
30
+ readonly code: number;
31
+ /**
32
+ * Data associated with the error. Used to provide additional information in the error message or
33
+ * to be passed to telemetry.
34
+ */
35
+ readonly data: {};
36
+ /**
37
+ * Specifies the documentation for the error.
38
+ *
39
+ * - If `true`, links to a documentation page on the Forkbook website (make sure it exists before
40
+ * enabling) – This is not implemented yet.
41
+ * - If a string, uses the provided URL for documentation (external or FAQ links).
42
+ * - If `false` (default), no documentation link is added.
43
+ */
44
+ readonly documentation: boolean | string | string[];
45
+ /** Flag used to easily determine if the error originates from Forkbook. */
46
+ readonly fromStorybook: true;
47
+ /**
48
+ * Marks an error whose message is written for the agent that triggered the call and names its
49
+ * own recovery. Adapters surface such errors verbatim instead of wrapping them as unexpected
50
+ * failures. A property rather than a class list, so the trait travels with the instance across
51
+ * bundle copies where `instanceof` would misclassify.
52
+ */
53
+ readonly agentFacing: boolean;
54
+ /**
55
+ * Flag used to determine if the error is handled by us and should therefore not be shown to the
56
+ * user.
57
+ */
58
+ isHandledError: boolean;
59
+ get fullErrorCode(): `FB_${string}_${string}`;
60
+ /** Overrides the default `Error.name` property in the format: FB_<CATEGORY>_<CODE>. */
61
+ get name(): string;
62
+ set name(name: string);
63
+ /**
64
+ * A collection of sub errors which relate to a parent error.
65
+ *
66
+ * Sub-errors are used to represent multiple related errors that occurred together. When a
67
+ * StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
68
+ * are sent as separate telemetry events. This allows for better error tracking and debugging.
69
+ *
70
+ * @example
71
+ *
72
+ * ```ts
73
+ * const error1 = new SomeError();
74
+ * const error2 = new AnotherError();
75
+ * const parentError = new ParentError({
76
+ * // ... other props
77
+ * subErrors: [error1, error2],
78
+ * });
79
+ * ```
80
+ */
81
+ subErrors: StorybookError[];
82
+ constructor(props: {
83
+ category: string;
84
+ code: number;
85
+ message: string;
86
+ cause?: unknown;
87
+ documentation?: boolean | string | string[];
88
+ isHandledError?: boolean; /** See {@link StorybookError.agentFacing}. Defaults to false. */
89
+ agentFacing?: boolean;
90
+ name: string;
91
+ /**
92
+ * Optional array of sub-errors that are related to this error. When this error is sent to
93
+ * telemetry, each sub-error will be sent as a separate event.
94
+ */
95
+ subErrors?: StorybookError[];
96
+ });
97
+ /** Generates the error message along with additional documentation link (if applicable). */
98
+ static getFullMessage({
99
+ documentation,
100
+ code,
101
+ category,
102
+ message
103
+ }: ConstructorParameters<typeof StorybookError>[0]): string;
104
+ }
105
+ //#endregion
106
+ //#region .dts-emit/code/core/src/errors/server/category.d.ts
27
107
  /**
28
- * Describes the operation and validation phase associated with a schema failure.
108
+ * If you can't find a suitable category for your error, create one based on the package name/file
109
+ * path of which the error is thrown. For instance: If it's from `@storybook/node-logger`, then
110
+ * NODE-LOGGER If it's from a package that is too broad, e.g. @aussieljk/forkbook/internal/cli-commands in the init command,
111
+ * then use a combination like CLI_INIT
29
112
  */
30
- type ValidationMeta = {
31
- kind: OperationKind;
32
- serviceId: ServiceId;
33
- name: string;
34
- phase: 'input' | 'output';
35
- issues: ReadonlyArray<StandardSchemaV1.Issue>;
113
+ declare enum Category {
114
+ CLI = "CLI",
115
+ CLI_INIT = "CLI_INIT",
116
+ CLI_ADD = "CLI_ADD",
117
+ CODEMOD = "CODEMOD",
118
+ CORE_SERVER = "CORE-SERVER",
119
+ CSF_PLUGIN = "CSF-PLUGIN",
120
+ CSF_TOOLS = "CSF-TOOLS",
121
+ CORE_COMMON = "CORE-COMMON",
122
+ NODE_LOGGER = "NODE-LOGGER",
123
+ TELEMETRY = "TELEMETRY",
124
+ BUILDER_MANAGER = "BUILDER-MANAGER",
125
+ BUILDER_VITE = "BUILDER-VITE",
126
+ SOURCE_LOADER = "SOURCE-LOADER",
127
+ POSTINSTALL = "POSTINSTALL",
128
+ DOCS_TOOLS = "DOCS-TOOLS",
129
+ FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS",
130
+ FRAMEWORK_REACT_VITE = "FRAMEWORK_REACT-VITE"
131
+ }
132
+ //#endregion
133
+ //#region .dts-emit/code/core/src/errors/server/cli.d.ts
134
+ declare class GenerateNewProjectOnInitError extends StorybookError {
135
+ data: {
136
+ error: unknown | Error;
137
+ packageManager: string;
138
+ projectType: string;
139
+ };
140
+ constructor(data: {
141
+ error: unknown | Error;
142
+ packageManager: string;
143
+ projectType: string;
144
+ });
145
+ }
146
+ type MinimumReleaseAgeHandledErrorData = {
147
+ message: string;
148
+ cause?: unknown;
149
+ } | {
150
+ packageManagerName: string;
151
+ minimumReleaseAgeConfigName: string;
152
+ minimumReleaseAgeConfigDocs: string;
153
+ minimumReleaseAgeExclusionsConfigName?: string;
154
+ minimumReleaseAgeExclusionsConfigDocs?: string;
155
+ failedPackage?: string | null;
156
+ cause?: unknown;
36
157
  };
158
+ declare class MinimumReleaseAgeHandledError extends StorybookError {
159
+ data: MinimumReleaseAgeHandledErrorData;
160
+ constructor(data: MinimumReleaseAgeHandledErrorData);
161
+ }
162
+ declare class AddonVitestPostinstallPrerequisiteCheckError extends StorybookError {
163
+ data: {
164
+ reasons: string[];
165
+ };
166
+ constructor(data: {
167
+ reasons: string[];
168
+ });
169
+ }
170
+ declare class AddonVitestPostinstallWorkspaceUpdateError extends StorybookError {
171
+ data: {
172
+ filePath: string;
173
+ };
174
+ constructor(data: {
175
+ filePath: string;
176
+ });
177
+ }
178
+ declare class AddonVitestPostinstallConfigUpdateError extends StorybookError {
179
+ data: {
180
+ filePath: string;
181
+ };
182
+ constructor(data: {
183
+ filePath: string;
184
+ });
185
+ }
186
+ declare class AddonVitestPostinstallError extends StorybookError {
187
+ data: {
188
+ errors: StorybookError[];
189
+ };
190
+ constructor(data: {
191
+ errors: StorybookError[];
192
+ });
193
+ }
194
+ //#endregion
195
+ //#region .dts-emit/code/core/src/errors/server/config.d.ts
196
+ declare class NxProjectDetectedError extends StorybookError {
197
+ constructor();
198
+ }
199
+ declare class MissingFrameworkFieldError extends StorybookError {
200
+ constructor();
201
+ }
202
+ declare class InvalidFrameworkNameError extends StorybookError {
203
+ data: {
204
+ frameworkName: string;
205
+ };
206
+ constructor(data: {
207
+ frameworkName: string;
208
+ });
209
+ }
210
+ declare class CouldNotEvaluateFrameworkError extends StorybookError {
211
+ data: {
212
+ frameworkName: string;
213
+ };
214
+ constructor(data: {
215
+ frameworkName: string;
216
+ });
217
+ }
218
+ declare class ConflictingStaticDirConfigError extends StorybookError {
219
+ constructor();
220
+ }
221
+ declare class InvalidStoriesEntryError extends StorybookError {
222
+ constructor();
223
+ }
224
+ declare class CriticalPresetLoadError extends StorybookError {
225
+ data: {
226
+ error: Error;
227
+ presetName: string;
228
+ };
229
+ constructor(data: {
230
+ error: Error;
231
+ presetName: string;
232
+ });
233
+ }
234
+ declare class MissingBuilderError extends StorybookError {
235
+ constructor();
236
+ }
237
+ declare class NoMatchingExportError extends StorybookError {
238
+ data: {
239
+ error: unknown | Error;
240
+ };
241
+ constructor(data: {
242
+ error: unknown | Error;
243
+ });
244
+ }
245
+ declare class MainFileMissingError extends StorybookError {
246
+ data: {
247
+ location: string;
248
+ source?: 'storybook' | 'vitest';
249
+ };
250
+ constructor(data: {
251
+ location: string;
252
+ source?: 'storybook' | 'vitest';
253
+ });
254
+ }
255
+ declare class MainFileEvaluationError extends StorybookError {
256
+ data: {
257
+ location: string;
258
+ error: Error;
259
+ };
260
+ constructor(data: {
261
+ location: string;
262
+ error: Error;
263
+ });
264
+ }
265
+ //#endregion
266
+ //#region .dts-emit/code/core/src/errors/server/builder.d.ts
267
+ declare class GoogleFontsDownloadError extends StorybookError {
268
+ data: {
269
+ fontFamily: string;
270
+ url: string;
271
+ };
272
+ constructor(data: {
273
+ fontFamily: string;
274
+ url: string;
275
+ });
276
+ }
277
+ declare class GoogleFontsLoadingError extends StorybookError {
278
+ data: {
279
+ error: unknown | Error;
280
+ url: string;
281
+ };
282
+ constructor(data: {
283
+ error: unknown | Error;
284
+ url: string;
285
+ });
286
+ }
287
+ declare class NoStatsForViteDevError extends StorybookError {
288
+ constructor();
289
+ }
290
+ declare class ViteModuleGraphSubscriptionError extends StorybookError {
291
+ constructor();
292
+ }
293
+ declare class IncompatiblePostCssConfigError extends StorybookError {
294
+ data: {
295
+ error: Error;
296
+ };
297
+ constructor(data: {
298
+ error: Error;
299
+ });
300
+ }
37
301
  //#endregion
38
302
  //#region .dts-emit/code/core/src/manager-api/lib/addons.d.ts
39
303
  declare class AddonStore$1 {
@@ -48,7 +312,7 @@ declare class AddonStore$1 {
48
312
  ready: () => Promise<Channel>;
49
313
  hasChannel: () => boolean;
50
314
  setChannel: (channel: Channel) => void;
51
- getElements<T extends Addon_Types | Addon_TypesEnum$2.experimental_PAGE | Addon_TypesEnum$2.experimental_TEST_PROVIDER>(type: T): Addon_Collection<Addon_TypesMapping[T]> | any;
315
+ getElements<T extends Addon_Types | Addon_TypesEnum$2.experimental_PAGE | Addon_TypesEnum$2.experimental_TEST_PROVIDER>(type: T): Addon_Collection<Addon_TypesMapping[T]>;
52
316
  /**
53
317
  * Adds an addon to the addon store.
54
318
  *
@@ -67,14 +331,14 @@ declare class AddonStore$1 {
67
331
  * @returns {void}
68
332
  */
69
333
  register: (id: string, callback: (api: API) => void) => void;
70
- loadAddons: (api: any) => void;
334
+ loadAddons: (api: API) => void;
71
335
  experimental_getRegisteredAddons<T extends Addon_Types | Addon_TypesEnum$2.experimental_PAGE | Addon_TypesEnum$2.experimental_TEST_PROVIDER>(type?: T): string[];
72
336
  }
73
337
  declare const addons$1: AddonStore$1;
74
338
  //#endregion
75
339
  //#region .dts-emit/code/core/src/manager-api/store.d.ts
76
340
  type GetState = () => State;
77
- type SetState = (a: any, b: any) => any;
341
+ type SetState = (patch: Partial<State> | ((state: State) => Partial<State>), callback: (state: State) => void) => void;
78
342
  interface Upstream {
79
343
  /**
80
344
  * Whether to allow persistence of state to local/sessionStorage. This is used to disable
@@ -111,7 +375,8 @@ declare class Store {
111
375
  }
112
376
  //#endregion
113
377
  //#region .dts-emit/code/core/src/manager-api/lib/types.d.ts
114
- type ModuleFn<APIType = unknown, StateType = unknown> = (m: ModuleArgs, options?: any) => {
378
+ /** `Options` are extra init options that only tests pass, for example `runCheck` for refs. */
379
+ type ModuleFn<APIType = unknown, StateType = unknown, Options = object> = (m: ModuleArgs, options?: Options) => {
115
380
  init?: () => void | Promise<void>;
116
381
  api: APIType;
117
382
  state: StateType;
@@ -124,6 +389,11 @@ type ModuleArgs = RouterData & API_ProviderData<API> & {
124
389
  };
125
390
  //#endregion
126
391
  //#region .dts-emit/code/core/src/manager-api/modules/addons.d.ts
392
+ interface SubState$10 {
393
+ selectedPanel: string | undefined;
394
+ /** The state of each addon, by addon ID. */
395
+ addons: Record<string, unknown>;
396
+ }
127
397
  interface SubAPI$13 {
128
398
  /**
129
399
  * Returns a collection of elements of a specific type.
@@ -132,7 +402,7 @@ interface SubAPI$13 {
132
402
  * @param {Addon_Types | Addon_TypesEnum.experimental_PAGE} type - The type of the elements to
133
403
  * retrieve.
134
404
  * @returns {Addon_Collection<T>} - A collection of elements of the specified type.
135
- * @protected This is used internally in storybook's manager.
405
+ * @protected This is used internally in the Forkbook manager.
136
406
  */
137
407
  getElements: <T extends Addon_Types | Addon_TypesEnum.experimental_PAGE | Addon_TypesEnum.experimental_TEST_PROVIDER>(type: T) => Addon_Collection<Addon_TypesMapping[T]>;
138
408
  /**
@@ -144,7 +414,7 @@ interface SubAPI$13 {
144
414
  *
145
415
  * @returns {string} - The ID of the currently selected panel.
146
416
  */
147
- getSelectedPanel: () => string;
417
+ getSelectedPanel: () => string | undefined;
148
418
  /**
149
419
  * Sets the currently selected panel via it's ID.
150
420
  *
@@ -208,7 +478,7 @@ interface SubAPI$12 {
208
478
  * `@aussieljk/forkbook/internal/core-events`.
209
479
  * @param args - The arguments to pass to the event listener.
210
480
  */
211
- emit: (type: string, ...args: any[]) => void;
481
+ emit: (type: string, ...args: unknown[]) => void;
212
482
  /**
213
483
  * Adds a one-time listener to the channel for the given event type.
214
484
  *
@@ -275,6 +545,14 @@ interface SubState$8 {
275
545
  * entirely (review routes), otherwise it is 'shown' or 'hidden' based on the layout state.
276
546
  */
277
547
  type NavAvailability = 'shown' | 'hidden' | 'unavailable';
548
+ /** The UI options that `setOptions` applies: the `options` parameter or the initial options. */
549
+ interface LayoutOptions {
550
+ layout?: Partial<API_Layout>;
551
+ ui?: Partial<API_UI>;
552
+ selectedPanel?: string;
553
+ theme?: Partial<ThemeVars>;
554
+ [key: string]: unknown;
555
+ }
278
556
  interface SubAPI$10 {
279
557
  /**
280
558
  * Toggles the fullscreen mode of the Forkbook UI.
@@ -325,7 +603,7 @@ interface SubAPI$10 {
325
603
  *
326
604
  * @param options - An object containing the options to set.
327
605
  */
328
- setOptions: (options: any) => void;
606
+ setOptions: (options: LayoutOptions | undefined) => void;
329
607
  /** Sets the sizes of the resizable elements in the layout. */
330
608
  setSizes: (options: Partial<Pick<API_Layout, 'navSize' | 'bottomPanelHeight' | 'rightPanelWidth'>>) => void;
331
609
  /** GetIsFullscreen - Returns the current fullscreen mode of the Forkbook UI. */
@@ -423,7 +701,7 @@ interface SubAPI$6 {
423
701
  * @param {string} source - The source/URL of the composed ref.
424
702
  * @returns {API_ComposedRef} - The composed ref object.
425
703
  */
426
- findRef: (source: string) => API_ComposedRef;
704
+ findRef: (source: string) => API_ComposedRef | undefined;
427
705
  /**
428
706
  * Sets a composed ref by its ID and data.
429
707
  *
@@ -471,7 +749,7 @@ interface SubAPI$6 {
471
749
  //#region .dts-emit/code/core/src/manager-api/modules/settings.d.ts
472
750
  interface SubAPI$5 {
473
751
  storeSelection: () => void;
474
- retrieveSelection: () => StoryId$1;
752
+ retrieveSelection: () => StoryId$1 | null;
475
753
  /**
476
754
  * Changes the active settings tab.
477
755
  *
@@ -620,13 +898,13 @@ interface API_AddonShortcut {
620
898
  defaultShortcut: API_KeyCollection;
621
899
  actionName: string;
622
900
  showInMenu?: boolean;
623
- action: (...args: any[]) => any;
901
+ action: (...args: never[]) => unknown;
624
902
  }
625
903
  type API_AddonShortcuts = Record<string, API_AddonShortcut>;
626
904
  type API_AddonShortcutLabels = Record<string, string>;
627
905
  type API_AddonShortcutDefaults = Record<string, API_KeyCollection>;
628
906
  //#endregion
629
- //#region .dts-emit/code/core/src/manager-api/modules/stories.d.ts
907
+ //#region .dts-emit/code/core/src/manager-api/modules/stories-types.d.ts
630
908
  type Direction = -1 | 1;
631
909
  type ParameterName = string;
632
910
  type StoryUpdate = Partial<Pick<API_StoryEntry, 'prepared' | 'parameters' | 'initialArgs' | 'argTypes' | 'args'>>;
@@ -643,6 +921,8 @@ interface SubState$3 extends API_LoadedRefData {
643
921
  excludedTagFilters: Tag$1[];
644
922
  includedStatusFilters: StatusValue[];
645
923
  excludedStatusFilters: StatusValue[];
924
+ /** Whether the manager has applied the options of the first prepared story. */
925
+ hasCalledSetOptions: boolean;
646
926
  }
647
927
  interface SubAPI$3 {
648
928
  /**
@@ -744,13 +1024,13 @@ interface SubAPI$3 {
744
1024
  * retrieve parameters for, or an object containing the story ID and ref ID.
745
1025
  * @param {ParameterName} [parameterName] - The name of the parameter to retrieve. If not
746
1026
  * provided, returns all parameters.
747
- * @returns {API_StoryEntry['parameters'] | any} The parameters for the given story ID and
1027
+ * @returns {unknown} The parameters, or the named parameter, for the given story ID and
748
1028
  * optional ref ID.
749
1029
  */
750
1030
  getParameters: (storyId: StoryId$1 | {
751
1031
  storyId: StoryId$1;
752
1032
  refId: string;
753
- }, parameterName?: ParameterName) => API_StoryEntry['parameters'] | any;
1033
+ }, parameterName?: ParameterName) => unknown;
754
1034
  /**
755
1035
  * Returns the current value of the specified parameter for the currently selected story.
756
1036
  *
@@ -811,9 +1091,9 @@ interface SubAPI$3 {
811
1091
  * @param {API_IndexHash} index - The story index to search for the sibling in.
812
1092
  * @param {Direction} direction - The direction to search for the sibling in.
813
1093
  * @param {boolean} toSiblingGroup - When true, skips over leafs within the same group.
814
- * @returns {StoryId} The ID of the sibling story, or null if no sibling was found.
1094
+ * @returns {StoryId | undefined} The ID of the sibling story, or undefined if there is none.
815
1095
  */
816
- findSiblingStoryId(storyId: StoryId$1, index: API_IndexHash, direction: Direction, toSiblingGroup: boolean): StoryId$1;
1096
+ findSiblingStoryId(storyId: StoryId$1, index: API_IndexHash, direction: Direction, toSiblingGroup: boolean): StoryId$1 | undefined;
817
1097
  /**
818
1098
  * Fetches the story index from the server.
819
1099
  *
@@ -933,7 +1213,7 @@ interface SubAPI$2 {
933
1213
  * @param {boolean} [options.inheritGlobals] - Inherit globals from the current URL. Defaults to
934
1214
  * true.
935
1215
  * @param {QueryParams} [options.queryParams] - Query params to add to the URL.
936
- * @param {string} [options.refId] - ID of the ref to get the URL for (for composed Storybooks)
1216
+ * @param {string} [options.refId] - ID of the ref to get the URL for (for composed Forkbooks)
937
1217
  * @param {string} [options.viewMode] - The view mode to use, defaults to 'story'.
938
1218
  * @param {boolean} [options.embed] - Append `embed=true` so the preview broadcasts
939
1219
  * content dimensions to an embedding parent via `iframe.resize` postMessage. Affects
@@ -971,7 +1251,6 @@ interface SubAPI$2 {
971
1251
  * path: string;
972
1252
  * viewMode?: string;
973
1253
  * storyId?: string;
974
- * url: string;
975
1254
  * }}
976
1255
  * An object containing the current state of the URL.
977
1256
  */
@@ -981,7 +1260,6 @@ interface SubAPI$2 {
981
1260
  hash: string;
982
1261
  viewMode?: string;
983
1262
  storyId?: string;
984
- url: string;
985
1263
  };
986
1264
  /**
987
1265
  * Set the query parameters for the current URL.
@@ -1056,17 +1334,17 @@ type SubAPI = {
1056
1334
  };
1057
1335
  //#endregion
1058
1336
  //#region .dts-emit/code/core/src/manager-api/lib/request-response.d.ts
1059
- declare class RequestResponseError<Payload extends Record<string, any> | void> extends Error {
1337
+ declare class RequestResponseError<Payload extends Record<string, unknown> | void> extends Error {
1060
1338
  payload: Payload | undefined;
1061
1339
  constructor(message: string, payload?: Payload);
1062
1340
  }
1063
- declare const experimental_requestResponse: <RequestPayload, ResponsePayload = void, ErrorPayload extends Record<string, any> | void = void>(channel: Channel, requestEvent: string, responseEvent: string, payload: RequestPayload, timeout?: number) => Promise<ResponsePayload>;
1341
+ declare const experimental_requestResponse: <RequestPayload, ResponsePayload = void, ErrorPayload extends Record<string, unknown> | void = void>(channel: Channel, requestEvent: string, responseEvent: string, payload: RequestPayload, timeout?: number) => Promise<ResponsePayload>;
1064
1342
  //#endregion
1065
1343
  //#region .dts-emit/code/core/src/manager-api/lib/platform.d.ts
1066
1344
  declare const isMacLike: () => boolean;
1067
1345
  //#endregion
1068
1346
  //#region .dts-emit/code/core/src/manager-api/lib/merge.d.ts
1069
- declare function _default<TObj = any>(a: TObj, ...b: Partial<TObj>[]): TObj;
1347
+ declare function _default<TObj extends object>(a: TObj, ...b: Partial<TObj>[]): TObj;
1070
1348
  //#endregion
1071
1349
  //#region .dts-emit/code/core/src/manager-api/root.d.ts
1072
1350
  declare const ActiveTabs: {
@@ -1078,11 +1356,8 @@ declare const ManagerContext: React$1.Context<{
1078
1356
  api: API;
1079
1357
  state: State;
1080
1358
  }>;
1081
- type State = SubState$8 & SubState$3 & SubState$6 & SubState$7 & SubState$1 & SubState$2 & SubState$4 & SubState$5 & SubState$9 & SubState & RouterData & API_OptionsData & Other;
1082
- type API = SubAPI$13 & SubAPI$12 & SubAPI$7 & SubAPI$3 & SubAPI$6 & SubAPI$11 & SubAPI$10 & SubAPI$9 & SubAPI$4 & SubAPI$5 & SubAPI$1 & SubAPI$2 & SubAPI & SubAPI$8 & Other;
1083
- interface Other {
1084
- [key: string]: any;
1085
- }
1359
+ type State = SubState$10 & SubState$8 & SubState$3 & SubState$6 & SubState$7 & SubState$1 & SubState$2 & SubState$4 & SubState$5 & SubState$9 & SubState & RouterData & API_OptionsData;
1360
+ type API = SubAPI$13 & SubAPI$12 & SubAPI$7 & SubAPI$3 & SubAPI$6 & SubAPI$11 & SubAPI$10 & SubAPI$9 & SubAPI$4 & SubAPI$5 & SubAPI$1 & SubAPI$2 & SubAPI & SubAPI$8 & Pick<RouterData, 'navigate'>;
1086
1361
  interface Combo {
1087
1362
  api: API;
1088
1363
  state: State;
@@ -1116,7 +1391,7 @@ declare function useStorybookApi(): API;
1116
1391
  interface API_EventMap {
1117
1392
  [eventId: string]: Listener$2;
1118
1393
  }
1119
- declare const useChannel: (eventMap: API_EventMap, deps?: any[]) => (type: string, ...args: any[]) => void;
1394
+ declare const useChannel: (eventMap: API_EventMap, deps?: DependencyList) => (type: string, ...args: unknown[]) => void;
1120
1395
  declare function useStoryPrepared(storyId?: StoryId$1): boolean;
1121
1396
  declare function useParameter<S>(parameterKey: string, defaultValue?: S): S;
1122
1397
  declare function useSharedState<S>(stateId: string, defaultState?: S): [S, (newStateOrMerger: S | API_StateMerger<S>, options?: Options$2) => void];
@@ -1143,7 +1418,7 @@ type EventInfo = {
1143
1418
  type Listener$1<TEvent> = (event: TEvent, eventInfo: EventInfo) => void;
1144
1419
  type BaseEvent = {
1145
1420
  type: string;
1146
- payload?: any;
1421
+ payload?: unknown;
1147
1422
  };
1148
1423
  interface SetStateEvent<TState> extends BaseEvent {
1149
1424
  type: typeof UniversalStore.InternalEventType.SET_STATE;
@@ -1237,13 +1512,7 @@ type EnvironmentOverrides = {
1237
1512
  * @throws {Error} If a follower is created with initial state
1238
1513
  * @throws {Error} If a follower cannot find its leader within 1 second
1239
1514
  */
1240
- declare class UniversalStore<State, CustomEvent extends {
1241
- type: string;
1242
- payload?: any;
1243
- } = {
1244
- type: string;
1245
- payload?: any;
1246
- }> {
1515
+ declare class UniversalStore<State, CustomEvent extends BaseEvent = BaseEvent> {
1247
1516
  /**
1248
1517
  * Defines the possible actor types in the store system
1249
1518
  *
@@ -1330,13 +1599,7 @@ declare class UniversalStore<State, CustomEvent extends {
1330
1599
  private actorType;
1331
1600
  protected constructor(options: StoreOptions<State>, environmentOverrides?: EnvironmentOverrides);
1332
1601
  /** Creates a new instance of UniversalStore */
1333
- static create<State = any, CustomEvent extends {
1334
- type: string;
1335
- payload?: any;
1336
- } = {
1337
- type: string;
1338
- payload?: any;
1339
- }>(options: StoreOptions<State>): UniversalStore<State, CustomEvent>;
1602
+ static create<State = any, CustomEvent extends BaseEvent = BaseEvent>(options: StoreOptions<State>): UniversalStore<State, CustomEvent>;
1340
1603
  /** Gets the current state */
1341
1604
  getState: () => State;
1342
1605
  /**
@@ -1382,11 +1645,15 @@ declare class UniversalStore<State, CustomEvent extends {
1382
1645
  * `@aussieljk/forkbook/preview-api` instead.
1383
1646
  */
1384
1647
  declare const useUniversalStore: {
1385
- <TUniversalStore extends UniversalStore<TState, any>, TState = (TUniversalStore extends UniversalStore<infer S, any> ? S : never)>(universalStore: TUniversalStore): [TState, TUniversalStore['setState']];
1386
- <TUniversalStore extends UniversalStore<any, any>, TSelectedState, TState = (TUniversalStore extends UniversalStore<infer S, any> ? S : never)>(universalStore: TUniversalStore, selector: (state: TState) => TSelectedState): [TSelectedState, TUniversalStore['setState']];
1648
+ <TUniversalStore extends UniversalStore<TState, any>, TState = (TUniversalStore extends UniversalStore<infer S, infer _CustomEvent> ? S : never)>(universalStore: TUniversalStore): [TState, TUniversalStore['setState']];
1649
+ <TUniversalStore extends UniversalStore<any, any>, TSelectedState, TState = (TUniversalStore extends UniversalStore<infer S, infer _CustomEvent> ? S : never)>(universalStore: TUniversalStore, selector: (state: TState) => TSelectedState): [TSelectedState, TUniversalStore['setState']];
1387
1650
  };
1388
1651
  //#endregion
1389
1652
  //#region .dts-emit/code/core/src/shared/universal-store/mock.d.ts
1653
+ /** The spy factory of a test library, such as `vi` from Vitest or `@aussieljk/forkbook/test`. */
1654
+ type TestUtils = {
1655
+ fn: (implementation: (...args: never[]) => unknown) => unknown;
1656
+ };
1390
1657
  /**
1391
1658
  * A mock universal store that can be used when testing code that relies on a universal store. It
1392
1659
  * functions exactly like a normal universal store, with a few exceptions:
@@ -1419,23 +1686,11 @@ declare const useUniversalStore: {
1419
1686
  * }
1420
1687
  * ```
1421
1688
  */
1422
- declare class MockUniversalStore<State, CustomEvent extends {
1423
- type: string;
1424
- payload?: any;
1425
- } = {
1426
- type: string;
1427
- payload?: any;
1428
- }> extends UniversalStore<State, CustomEvent> {
1429
- private testUtils;
1430
- constructor(options: StoreOptions<State>, testUtils?: any);
1689
+ declare class MockUniversalStore<State, CustomEvent extends BaseEvent = BaseEvent> extends UniversalStore<State, CustomEvent> {
1690
+ private testUtils?;
1691
+ constructor(options: StoreOptions<State>, testUtils?: TestUtils);
1431
1692
  /** Create a mock universal store. This is just an alias for the constructor */
1432
- static create<State = any, CustomEvent extends {
1433
- type: string;
1434
- payload?: any;
1435
- } = {
1436
- type: string;
1437
- payload?: any;
1438
- }>(options: StoreOptions<State>, testUtils?: any): MockUniversalStore<State, CustomEvent>;
1693
+ static create<State = any, CustomEvent extends BaseEvent = BaseEvent>(options: StoreOptions<State>, testUtils?: TestUtils): MockUniversalStore<State, CustomEvent>;
1439
1694
  unsubscribeAll(): void;
1440
1695
  }
1441
1696
  //#endregion
@@ -1828,7 +2083,7 @@ declare function toMcpToolName(method: ToolsetMethodId): string;
1828
2083
  /**
1829
2084
  * Renders how a toolset method is spelled for the active transport.
1830
2085
  *
1831
- * Not a composed-Storybook "ref" (`refs` in `main.js`) — the name is the invokable tool/command
2086
+ * Not a composed-Forkbook "ref" (`refs` in `main.js`) — the name is the invokable tool/command
1832
2087
  * string agents see. Descriptions that tell an agent to call another tool must use this rather
1833
2088
  * than hardcoding either spelling.
1834
2089
  */
@@ -2108,7 +2363,7 @@ type DocsSource = {
2108
2363
  //#endregion
2109
2364
  //#region .dts-emit/code/core/src/shared/open-service/toolsets/docs/definition.d.ts
2110
2365
  /**
2111
- * Which Storybooks these tools serve — exactly one of the two.
2366
+ * Which Forkbooks these tools serve — exactly one of the two.
2112
2367
  *
2113
2368
  * Modelled as an exclusive union so neither "no access at all" nor "both, one silently winning" can
2114
2369
  * be constructed: a composition takes a `storybookId` on every lookup and a single Forkbook must
@@ -2118,7 +2373,7 @@ type CreateDocsToolsetOptions = {
2118
2373
  /** Reads the one Forkbook these tools serve. */docsAccess: DocsAccess;
2119
2374
  sources?: never;
2120
2375
  } | {
2121
- /** The composed Storybooks these tools serve; ids are only unique within a source. */sources: DocsSource[];
2376
+ /** The composed Forkbooks these tools serve; ids are only unique within a source. */sources: DocsSource[];
2122
2377
  docsAccess?: never;
2123
2378
  };
2124
2379
  type DocsListOutput = {
@@ -2246,11 +2501,12 @@ declare const previewOutputSchema: v.ObjectSchema<{
2246
2501
  readonly title: v.StringSchema<undefined>;
2247
2502
  readonly name: v.StringSchema<undefined>;
2248
2503
  readonly previewUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Direct URL to open the story preview.">]>;
2504
+ readonly iframeUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "URL of the story preview frame without the manager.">]>;
2249
2505
  }, undefined>, v.ObjectSchema<{
2250
2506
  readonly input: v.UnionSchema<[v.ObjectSchema<{
2251
2507
  readonly props: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
2252
2508
  [x: string]: any;
2253
- } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-storybook-story-instructions tool to see what props are available.">]>;
2509
+ } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-forkbook-story-instructions tool to see what props are available.">]>;
2254
2510
  readonly globals: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
2255
2511
  [x: string]: any;
2256
2512
  } | undefined, "Optional Forkbook globals to set for the story preview. Globals are used for things like theme, locale, viewport, and other cross-cutting concerns.\nCommon globals include 'theme' (e.g., 'dark', 'light'), 'locale' (e.g., 'en', 'fr'), and 'backgrounds' (e.g., { value: '#000' }).">]>;
@@ -2260,7 +2516,7 @@ declare const previewOutputSchema: v.ObjectSchema<{
2260
2516
  }, undefined>, v.ObjectSchema<{
2261
2517
  readonly props: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
2262
2518
  [x: string]: any;
2263
- } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-storybook-story-instructions tool to see what props are available.">]>;
2519
+ } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-forkbook-story-instructions tool to see what props are available.">]>;
2264
2520
  readonly globals: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
2265
2521
  [x: string]: any;
2266
2522
  } | undefined, "Optional Forkbook globals to set for the story preview. Globals are used for things like theme, locale, viewport, and other cross-cutting concerns.\nCommon globals include 'theme' (e.g., 'dark', 'light'), 'locale' (e.g., 'en', 'fr'), and 'backgrounds' (e.g., { value: '#000' }).">]>;
@@ -2351,7 +2607,7 @@ declare function createStoriesToolset({
2351
2607
  readonly stories: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
2352
2608
  readonly props: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
2353
2609
  [x: string]: any;
2354
- } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-storybook-story-instructions tool to see what props are available.">]>;
2610
+ } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-forkbook-story-instructions tool to see what props are available.">]>;
2355
2611
  readonly globals: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
2356
2612
  [x: string]: any;
2357
2613
  } | undefined, "Optional Forkbook globals to set for the story preview. Globals are used for things like theme, locale, viewport, and other cross-cutting concerns.\nCommon globals include 'theme' (e.g., 'dark', 'light'), 'locale' (e.g., 'en', 'fr'), and 'backgrounds' (e.g., { value: '#000' }).">]>;
@@ -2361,7 +2617,7 @@ declare function createStoriesToolset({
2361
2617
  }, undefined>, v.ObjectSchema<{
2362
2618
  readonly props: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
2363
2619
  [x: string]: any;
2364
- } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-storybook-story-instructions tool to see what props are available.">]>;
2620
+ } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-forkbook-story-instructions tool to see what props are available.">]>;
2365
2621
  readonly globals: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
2366
2622
  [x: string]: any;
2367
2623
  } | undefined, "Optional Forkbook globals to set for the story preview. Globals are used for things like theme, locale, viewport, and other cross-cutting concerns.\nCommon globals include 'theme' (e.g., 'dark', 'light'), 'locale' (e.g., 'en', 'fr'), and 'backgrounds' (e.g., { value: '#000' }).">]>;
@@ -2393,11 +2649,12 @@ Use IDs discovered from ${string} (withStoryIds=true) or ${string}.`>]>;
2393
2649
  readonly title: v.StringSchema<undefined>;
2394
2650
  readonly name: v.StringSchema<undefined>;
2395
2651
  readonly previewUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Direct URL to open the story preview.">]>;
2652
+ readonly iframeUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "URL of the story preview frame without the manager.">]>;
2396
2653
  }, undefined>, v.ObjectSchema<{
2397
2654
  readonly input: v.UnionSchema<[v.ObjectSchema<{
2398
2655
  readonly props: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
2399
2656
  [x: string]: any;
2400
- } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-storybook-story-instructions tool to see what props are available.">]>;
2657
+ } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-forkbook-story-instructions tool to see what props are available.">]>;
2401
2658
  readonly globals: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
2402
2659
  [x: string]: any;
2403
2660
  } | undefined, "Optional Forkbook globals to set for the story preview. Globals are used for things like theme, locale, viewport, and other cross-cutting concerns.\nCommon globals include 'theme' (e.g., 'dark', 'light'), 'locale' (e.g., 'en', 'fr'), and 'backgrounds' (e.g., { value: '#000' }).">]>;
@@ -2407,7 +2664,7 @@ Use IDs discovered from ${string} (withStoryIds=true) or ${string}.`>]>;
2407
2664
  }, undefined>, v.ObjectSchema<{
2408
2665
  readonly props: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
2409
2666
  [x: string]: any;
2410
- } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-storybook-story-instructions tool to see what props are available.">]>;
2667
+ } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-forkbook-story-instructions tool to see what props are available.">]>;
2411
2668
  readonly globals: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
2412
2669
  [x: string]: any;
2413
2670
  } | undefined, "Optional Forkbook globals to set for the story preview. Globals are used for things like theme, locale, viewport, and other cross-cutting concerns.\nCommon globals include 'theme' (e.g., 'dark', 'light'), 'locale' (e.g., 'en', 'fr'), and 'backgrounds' (e.g., { value: '#000' }).">]>;
@@ -3147,6 +3404,11 @@ interface BaseIndexEntry {
3147
3404
  title: ComponentTitle$1;
3148
3405
  tags?: Tag$2[];
3149
3406
  importPath: Path$1;
3407
+ /**
3408
+ * The `parameters.thumbnail` of the story, or of its meta. A URL, or a path from the Forkbook
3409
+ * root (`thumbnails/...`) for a local file.
3410
+ */
3411
+ thumbnail?: string;
3150
3412
  }
3151
3413
  type StoryIndexEntry$1 = BaseIndexEntry & {
3152
3414
  type: 'story';
@@ -3196,7 +3458,8 @@ type BaseIndexInput = {
3196
3458
  * matched.
3197
3459
  */
3198
3460
  metaId?: MetaId; /** Tags for filtering entries in Forkbook and its tools. */
3199
- tags?: Tag$2[];
3461
+ tags?: Tag$2[]; /** The `parameters.thumbnail` of the story or meta, as written in the file. */
3462
+ thumbnail?: string;
3200
3463
  /**
3201
3464
  * The id of the entry, auto-generated from {@link title}/{@link metaId} and {@link exportName} if
3202
3465
  * unspecified. If specified, the story in the CSF file _must_ have a matching id set at
@@ -3234,9 +3497,18 @@ interface StoryIndexV3$1 {
3234
3497
  v: number;
3235
3498
  stories: Record<StoryId$2, V3CompatIndexEntry>;
3236
3499
  }
3500
+ /** A story file that failed to index. The dev server lists these next to the entries it could index. */
3501
+ interface StoryIndexFileError {
3502
+ /** The first import path of the error, the file to show to the user. */
3503
+ importPath: Path$1;
3504
+ importPaths: Path$1[];
3505
+ message: string;
3506
+ }
3237
3507
  interface StoryIndex$1 {
3238
3508
  v: number;
3239
3509
  entries: Record<StoryId$2, IndexEntry$1>;
3510
+ /** Story files that failed to index. Only the dev server sets this. */
3511
+ errors?: StoryIndexFileError[];
3240
3512
  }
3241
3513
  //#endregion
3242
3514
  //#region .dts-emit/code/core/src/shared/open-service/services/docgen/types.d.ts
@@ -4006,6 +4278,122 @@ declare enum SupportedRenderer$1 {
4006
4278
  REACT_NATIVE = "react-native"
4007
4279
  }
4008
4280
  //#endregion
4281
+ //#region .dts-emit/code/core/src/types/modules/api-stories.d.ts
4282
+ interface API_BaseEntry {
4283
+ id: StoryId$2;
4284
+ depth: number;
4285
+ name: string;
4286
+ tags: Tag$2[];
4287
+ refId?: string;
4288
+ renderAriaLabel?: API_SidebarOptions['renderAriaLabel'];
4289
+ renderLabel?: API_SidebarOptions['renderLabel'];
4290
+ }
4291
+ interface API_RootEntry extends API_BaseEntry {
4292
+ type: 'root';
4293
+ startCollapsed?: boolean;
4294
+ children: StoryId$2[];
4295
+ }
4296
+ interface API_GroupEntry extends API_BaseEntry {
4297
+ type: 'group';
4298
+ parent?: StoryId$2;
4299
+ children: StoryId$2[];
4300
+ }
4301
+ interface API_ComponentEntry extends API_BaseEntry {
4302
+ type: 'component';
4303
+ parent?: StoryId$2;
4304
+ children: StoryId$2[];
4305
+ importPath?: Path$1;
4306
+ }
4307
+ interface API_DocsEntry$1 extends API_BaseEntry {
4308
+ type: 'docs';
4309
+ parent: StoryId$2;
4310
+ title: ComponentTitle$1;
4311
+ importPath: Path$1;
4312
+ prepared: boolean;
4313
+ parameters?: {
4314
+ [parameterName: string]: unknown;
4315
+ };
4316
+ anchors?: DocsAnchor$1[];
4317
+ }
4318
+ interface API_StoryEntry$1 extends API_BaseEntry {
4319
+ type: 'story';
4320
+ subtype: 'story';
4321
+ parent: StoryId$2;
4322
+ title: ComponentTitle$1;
4323
+ importPath: Path$1;
4324
+ exportName: string;
4325
+ prepared: boolean;
4326
+ parameters?: {
4327
+ [parameterName: string]: unknown;
4328
+ };
4329
+ args?: Args$2;
4330
+ argTypes?: ArgTypes$2;
4331
+ initialArgs?: Args$2;
4332
+ children?: StoryId$2[];
4333
+ }
4334
+ interface API_TestEntry$1 extends Omit<API_StoryEntry$1, 'subtype' | 'children' | 'parent'> {
4335
+ parent: StoryId$2;
4336
+ subtype: 'test';
4337
+ }
4338
+ type API_LeafEntry$1 = API_DocsEntry$1 | API_StoryEntry$1 | API_TestEntry$1;
4339
+ /**
4340
+ * Runtime enrichment for a composed ref's stories/docs, keyed by entry id. These fields come from
4341
+ * the ref preview's STORY_PREPARED / DOCS_PREPARED events and are not part of the ref's static story
4342
+ * index, so they are cached per ref and re-applied whenever the ref index is (re)built.
4343
+ */
4344
+ type API_RefStoryRuntimeData = Record<StoryId$2, Partial<Pick<API_StoryEntry$1, 'prepared' | 'parameters' | 'args' | 'argTypes' | 'initialArgs'>>>;
4345
+ type API_HashEntry$1 = API_RootEntry | API_GroupEntry | API_ComponentEntry | API_DocsEntry$1 | API_StoryEntry$1 | API_TestEntry$1;
4346
+ /**
4347
+ * The `IndexHash` is our manager-side representation of the `StoryIndex`. We create entries in the
4348
+ * hash not only for each story or docs entry, but also for each "group" of the component (split on
4349
+ * '/'), as that's how things are manipulated in parts of the manager (i.e. in search).
4350
+ */
4351
+ interface API_IndexHash$1 {
4352
+ [id: string]: API_HashEntry$1;
4353
+ }
4354
+ type API_PreparedIndexEntry = IndexEntry$1 & {
4355
+ parameters?: Parameters$2;
4356
+ argTypes?: ArgTypes$2;
4357
+ args?: Args$2;
4358
+ initialArgs?: Args$2;
4359
+ };
4360
+ interface API_PreparedStoryIndex$1 {
4361
+ v: number;
4362
+ entries: Record<StoryId$2, API_PreparedIndexEntry>;
4363
+ }
4364
+ type API_OptionsData$1 = {
4365
+ docsOptions: DocsOptions$1;
4366
+ };
4367
+ interface API_ReleaseNotes {
4368
+ success?: boolean;
4369
+ currentVersion?: string;
4370
+ showOnFirstLaunch?: boolean;
4371
+ }
4372
+ interface API_Settings$1 {
4373
+ /** The last story that the manager showed, or `null` before it showed one. */
4374
+ lastTrackedStoryId: string | null;
4375
+ }
4376
+ interface API_Version$1 {
4377
+ version: string;
4378
+ info?: {
4379
+ plain: string;
4380
+ };
4381
+ [key: string]: unknown;
4382
+ }
4383
+ interface API_UnknownEntries$1 {
4384
+ [key: string]: {
4385
+ [key: string]: unknown;
4386
+ };
4387
+ }
4388
+ interface API_Versions$2 {
4389
+ latest?: API_Version$1;
4390
+ next?: API_Version$1;
4391
+ current?: API_Version$1;
4392
+ }
4393
+ type API_FilterFunction$1 = (item: API_PreparedIndexEntry & {
4394
+ statuses: StatusByTypeId;
4395
+ }) => boolean;
4396
+ //#endregion
4009
4397
  //#region .dts-emit/code/core/src/types/modules/core-common.d.ts
4010
4398
  /** ⚠️ This file contains internal WIP types they MUST NOT be exported outside this package for now! */
4011
4399
  type BuilderName = string;
@@ -4013,18 +4401,31 @@ type RendererName = string;
4013
4401
  interface CoreConfig$1 {
4014
4402
  builder?: BuilderName | {
4015
4403
  name: BuilderName;
4016
- options?: Record<string, any>;
4404
+ options?: Record<string, unknown>;
4017
4405
  };
4018
4406
  renderer?: RendererName;
4019
4407
  channelOptions?: Partial<Options$3> & {
4020
4408
  wsToken?: string;
4409
+ basePath?: string;
4021
4410
  };
4022
- /** Disables the generation of project.json, a file containing Forkbook metadata */
4023
- disableProjectJson?: boolean;
4411
+ /**
4412
+ * The URL path that Forkbook mounts everything under (manager, index.json, manifests, statics and
4413
+ * the channel at `<basePath>/fb-channel`). The `--base-path` CLI flag has priority.
4414
+ *
4415
+ * @default '/_forkbook'
4416
+ */
4417
+ basePath?: string;
4418
+ /**
4419
+ * When true, `forkbook build` writes the static build to `public<basePath>` (for example
4420
+ * `public/_forkbook`), so the host app serves it at the base path. An `--output-dir` has priority.
4421
+ *
4422
+ * @default false
4423
+ */
4424
+ buildToPublic?: boolean;
4024
4425
  /**
4025
4426
  * Disables Forkbook telemetry
4026
4427
  *
4027
- * @see https://storybook.js.org/telemetry
4428
+ * @see https://forkbook.ljk.dev/telemetry
4028
4429
  */
4029
4430
  disableTelemetry?: boolean;
4030
4431
  /** Disables notifications for Forkbook updates. */
@@ -4032,7 +4433,7 @@ interface CoreConfig$1 {
4032
4433
  /**
4033
4434
  * Enable crash reports to be sent to Forkbook telemetry
4034
4435
  *
4035
- * @see https://storybook.js.org/telemetry
4436
+ * @see https://forkbook.ljk.dev/telemetry
4036
4437
  */
4037
4438
  enableCrashReports?: boolean;
4038
4439
  /**
@@ -4058,32 +4459,33 @@ interface DirectoryMapping {
4058
4459
  to: string;
4059
4460
  }
4060
4461
  interface Presets$1 {
4061
- apply(extension: 'typescript', config: TypescriptOptions$1, args?: Options$1): Promise<TypescriptOptions$1>;
4062
- apply(extension: 'framework', config?: {}, args?: any): Promise<Preset>;
4063
- apply(extension: 'babel', config?: {}, args?: any): Promise<any>;
4064
- apply(extension: 'swc', config?: {}, args?: any): Promise<any>;
4065
- apply(extension: 'entries', config?: [], args?: any): Promise<unknown>;
4066
- apply(extension: 'env', config?: {}, args?: any): Promise<any>;
4067
- apply(extension: 'stories', config?: [], args?: any): Promise<StoriesEntry$1[]>;
4068
- apply(extension: 'managerEntries', config: [], args?: any): Promise<string[]>;
4069
- apply(extension: 'refs', config?: [], args?: any): Promise<StorybookConfigRaw$1['refs']>;
4070
- apply(extension: 'core', config?: StorybookConfigRaw$1['core'], args?: any): Promise<NonNullable<StorybookConfigRaw$1['core']>>;
4071
- apply(extension: 'docs', config?: StorybookConfigRaw$1['docs'], args?: any): Promise<NonNullable<StorybookConfigRaw$1['docs']>>;
4072
- apply(extension: 'features', config?: StorybookConfigRaw$1['features'], args?: any): Promise<NonNullable<StorybookConfigRaw$1['features']>>;
4073
- apply(extension: 'typescript', config?: StorybookConfigRaw$1['typescript'], args?: any): Promise<NonNullable<StorybookConfigRaw$1['typescript']>>;
4074
- apply(extension: 'build', config?: StorybookConfigRaw$1['build'], args?: any): Promise<NonNullable<StorybookConfigRaw$1['build']>>;
4075
- apply(extension: 'staticDirs', config?: StorybookConfigRaw$1['staticDirs'], args?: any): Promise<StorybookConfigRaw$1['staticDirs']>;
4076
- apply(extension: 'services', config?: StorybookConfigRaw$1['services'], args?: any): Promise<void>;
4077
- apply(extension: 'experimental_docgenProvider', config: DocgenProviderDescriptor[], args?: any): Promise<DocgenProviderDescriptor[]>;
4078
- apply(extension: 'experimental_storyDocsProvider', config: StoryDocsProvider, args?: any): Promise<StoryDocsProvider>;
4462
+ apply(extension: 'typescript', config: TypescriptOptions, args?: Options$1): Promise<TypescriptOptions>;
4463
+ apply(extension: 'framework', config?: {}, args?: unknown): Promise<Preset>;
4464
+ apply(extension: 'babel', config?: {}, args?: unknown): Promise<unknown>;
4465
+ apply(extension: 'swc', config?: {}, args?: unknown): Promise<unknown>;
4466
+ apply(extension: 'entries', config?: [], args?: unknown): Promise<unknown>;
4467
+ apply(extension: 'env', config?: {}, args?: unknown): Promise<Record<string, string>>;
4468
+ apply(extension: 'stories', config?: [], args?: unknown): Promise<StoriesEntry$1[]>;
4469
+ apply(extension: 'managerEntries', config: [], args?: unknown): Promise<string[]>;
4470
+ apply(extension: 'refs', config?: [], args?: unknown): Promise<StorybookConfigRaw$1['refs']>;
4471
+ apply(extension: 'core', config?: StorybookConfigRaw$1['core'], args?: unknown): Promise<NonNullable<StorybookConfigRaw$1['core']>>;
4472
+ apply(extension: 'docs', config?: StorybookConfigRaw$1['docs'], args?: unknown): Promise<NonNullable<StorybookConfigRaw$1['docs']>>;
4473
+ apply(extension: 'features', config?: StorybookConfigRaw$1['features'], args?: unknown): Promise<NonNullable<StorybookConfigRaw$1['features']>>;
4474
+ apply(extension: 'typescript', config?: StorybookConfigRaw$1['typescript'], args?: unknown): Promise<NonNullable<StorybookConfigRaw$1['typescript']>>;
4475
+ apply(extension: 'build', config?: StorybookConfigRaw$1['build'], args?: unknown): Promise<NonNullable<StorybookConfigRaw$1['build']>>;
4476
+ apply(extension: 'staticDirs', config?: StorybookConfigRaw$1['staticDirs'], args?: unknown): Promise<StorybookConfigRaw$1['staticDirs']>;
4477
+ apply(extension: 'services', config?: StorybookConfigRaw$1['services'], args?: unknown): Promise<void>;
4478
+ apply(extension: 'experimental_docgenProvider', config: DocgenProviderDescriptor[], args?: unknown): Promise<DocgenProviderDescriptor[]>;
4479
+ apply(extension: 'experimental_storyDocsProvider', config: StoryDocsProvider, args?: unknown): Promise<StoryDocsProvider>;
4079
4480
  /** The second and third parameter are not needed. And make type inference easier. */
4080
4481
  apply<T extends keyof StorybookConfigRaw$1>(extension: T): Promise<StorybookConfigRaw$1[T]>;
4081
4482
  apply<T>(extension: string, config?: T, args?: unknown): Promise<T>;
4082
4483
  }
4083
4484
  interface LoadedPreset$1 {
4084
4485
  name: string;
4085
- preset: any;
4086
- options: any;
4486
+ /** The preset's exports, other than `addons` and `presets`. */
4487
+ preset: Record<string, unknown>;
4488
+ options: Record<string, unknown>;
4087
4489
  }
4088
4490
  type PresetConfig$1 = string | {
4089
4491
  name: string;
@@ -4092,16 +4494,16 @@ type PresetConfig$1 = string | {
4092
4494
  interface Ref$2 {
4093
4495
  id: string;
4094
4496
  url: string;
4095
- title: string;
4096
- version: string;
4497
+ title?: string;
4498
+ version?: string;
4097
4499
  type?: string;
4098
4500
  disable?: boolean;
4099
4501
  }
4100
4502
  interface VersionCheck {
4101
4503
  success: boolean;
4102
4504
  cached: boolean;
4103
- data?: any;
4104
- error?: any;
4505
+ data?: API_Versions$2;
4506
+ error?: unknown;
4105
4507
  time: number;
4106
4508
  }
4107
4509
  interface Stats {
@@ -4135,7 +4537,21 @@ interface ModuleResolveConfig {
4135
4537
  /** Conditions for package `exports` resolution. */
4136
4538
  conditions?: string[];
4137
4539
  }
4138
- type PackageJson$2 = PackageJson$3 & Record<string, any>;
4540
+ /**
4541
+ * A `package.json`. It has the known fields of type-fest's `PackageJson` and the fields Forkbook
4542
+ * reads, but not type-fest's `JsonObject` index signature, because type-fest's own `overrides`
4543
+ * type does not fit that signature.
4544
+ */
4545
+ type PackageJson$2 = PackageJson$3.NodeJsStandard & PackageJson$3.PackageJsonStandard & PackageJson$3.NonStandardEntryPoints & PackageJson$3.TypeScriptConfiguration & PackageJson$3.YarnConfiguration & PackageJson$3.JSPMConfiguration & {
4546
+ /** The legacy ESLint config. */eslintConfig?: {
4547
+ extends?: string | string[];
4548
+ [key: string]: unknown;
4549
+ }; /** The Forkbook that the package ships for composition. */
4550
+ storybook?: {
4551
+ url?: string;
4552
+ title?: string;
4553
+ };
4554
+ } & Record<string, unknown>;
4139
4555
  interface LoadOptions$1 {
4140
4556
  packageJson?: PackageJson$2;
4141
4557
  outputDir?: string;
@@ -4171,6 +4587,10 @@ interface CLIOptions$1 extends CLIBaseOptions {
4171
4587
  statsJson?: string | boolean;
4172
4588
  outputDir?: string;
4173
4589
  previewOnly?: boolean;
4590
+ /** See `CoreConfig.basePath`. After the config loads, this is the normalised base path. */
4591
+ basePath?: string;
4592
+ /** See `CoreConfig.buildToPublic`. */
4593
+ buildToPublic?: boolean;
4174
4594
  }
4175
4595
  interface BuilderOptions$1 {
4176
4596
  configType?: 'DEVELOPMENT' | 'PRODUCTION';
@@ -4191,20 +4611,20 @@ interface StorybookConfigOptions {
4191
4611
  type Options$1 = LoadOptions$1 & StorybookConfigOptions & CLIOptions$1 & BuilderOptions$1 & {
4192
4612
  build?: TestBuildConfig;
4193
4613
  };
4194
- type Middleware<T extends IncomingMessage = IncomingMessage> = (req: T & IncomingMessage, res: ServerResponse, next: (err?: string | Error) => Promise<void> | void) => Promise<void> | void;
4614
+ type Middleware$1<T extends IncomingMessage = IncomingMessage> = (req: T & IncomingMessage, res: ServerResponse, next: (err?: string | Error) => Promise<void> | void) => Promise<void> | void;
4195
4615
  interface ServerApp<T extends IncomingMessage = IncomingMessage> {
4196
4616
  server: Server$1;
4197
- use(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
4198
- use(...handlers: Middleware<T>[]): this;
4199
- get(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
4200
- post(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
4201
- put(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
4202
- patch(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
4203
- delete(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
4204
- head(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
4205
- options(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
4206
- connect(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
4207
- trace(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
4617
+ use(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
4618
+ use(...handlers: Middleware$1<T>[]): this;
4619
+ get(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
4620
+ post(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
4621
+ put(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
4622
+ patch(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
4623
+ delete(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
4624
+ head(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
4625
+ options(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
4626
+ connect(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
4627
+ trace(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
4208
4628
  }
4209
4629
  interface Builder$1<Config, BuilderStats extends Stats = Stats> {
4210
4630
  getConfig: (options: Options$1) => Promise<Config>;
@@ -4238,7 +4658,7 @@ interface Builder$1<Config, BuilderStats extends Stats = Stats> {
4238
4658
  changeDetectionAdapter?(options?: Options$1): ChangeDetectionAdapter;
4239
4659
  }
4240
4660
  /** Options for TypeScript usage within Forkbook. */
4241
- interface TypescriptOptions$1 {
4661
+ interface TypescriptOptions {
4242
4662
  /**
4243
4663
  * Enables type checking within Forkbook.
4244
4664
  *
@@ -4254,7 +4674,7 @@ interface TypescriptOptions$1 {
4254
4674
  }
4255
4675
  type Preset = string | {
4256
4676
  name: string;
4257
- options?: any;
4677
+ options?: Record<string, unknown>;
4258
4678
  };
4259
4679
  /** An additional script that gets injected into the preview or the manager, */
4260
4680
  type Entry = string;
@@ -4446,7 +4866,7 @@ interface StorybookFeatures {
4446
4866
  /**
4447
4867
  * @temporary This feature flag is a migration assistant, and is scheduled to be removed.
4448
4868
  *
4449
- * Set NODE_ENV to development in built Storybooks for better testability and debuggability
4869
+ * Set NODE_ENV to development in built Forkbooks for better testability and debuggability
4450
4870
  */
4451
4871
  developmentModeForBuild?: boolean;
4452
4872
  /**
@@ -4483,7 +4903,7 @@ interface StorybookFeatures {
4483
4903
  /**
4484
4904
  * Keep Vite from merging the pre-split preview runtime back into one output chunk.
4485
4905
  *
4486
- * Webpack always serves the chunked `dist/preview` at `/sb-preview`. This flag only
4906
+ * Webpack always serves the chunked `dist/preview` at `/fb-preview`. This flag only
4487
4907
  * affects the Vite production build: Rolldown `maxSize` on Vite 8, and on Vite 5–7
4488
4908
  * Rollup pins each pre-split preview module to its own chunk.
4489
4909
  *
@@ -4497,10 +4917,10 @@ interface SecurityConfig {
4497
4917
  * In dev mode, the manager and preview can only be embedded by a website running on localhost.
4498
4918
  * This prevents attacks that hijack a local Forkbook embedded in an iframe from a malicious domain.
4499
4919
  *
4500
- * If you need remote Storybooks to compose this Forkbook while it is running in dev mode,
4920
+ * If you need remote Forkbooks to compose this Forkbook while it is running in dev mode,
4501
4921
  * you may set `insecureRemoteIframeEmbed` to `true`.
4502
4922
  *
4503
- * Built Storybooks can still be embedded and composed without restrictions, and don't need
4923
+ * Built Forkbooks can still be embedded and composed without restrictions, and don't need
4504
4924
  * this flag.
4505
4925
  *
4506
4926
  * @default false
@@ -4511,7 +4931,7 @@ interface SecurityConfig {
4511
4931
  * only accepts messages from its own preview iframes. In dev mode, a preview only accepts
4512
4932
  * messages from a manager on localhost, and both send messages only to the expected origin.
4513
4933
  *
4514
- * If you need remote Storybooks to compose this Forkbook while it is running in dev mode,
4934
+ * If you need remote Forkbooks to compose this Forkbook while it is running in dev mode,
4515
4935
  * you may set `insecureIframeMessaging` to `true`.
4516
4936
  *
4517
4937
  * Built previews accept messages from any origin, so composing a built Forkbook doesn't need
@@ -4521,6 +4941,15 @@ interface SecurityConfig {
4521
4941
  */
4522
4942
  insecureIframeMessaging?: boolean;
4523
4943
  }
4944
+ /** The options for the start page at `/`. See `root` in the main config. */
4945
+ type RootPageOptions = false | {
4946
+ /** An MDX file for the start page, relative to the config folder. */mdx?: string;
4947
+ /**
4948
+ * `above` (default): the MDX shows above the grid of components. `replace`: only the MDX
4949
+ * shows.
4950
+ */
4951
+ mode?: 'above' | 'replace';
4952
+ };
4524
4953
  interface StorybookConfigRaw$1 {
4525
4954
  /**
4526
4955
  * Sets the addons you want to use with Forkbook.
@@ -4546,12 +4975,12 @@ interface StorybookConfigRaw$1 {
4546
4975
  build?: TestBuildConfig;
4547
4976
  stories: StoriesEntry$1[];
4548
4977
  framework?: Preset;
4549
- typescript?: Partial<TypescriptOptions$1>;
4978
+ typescript?: Partial<TypescriptOptions>;
4550
4979
  refs?: CoreCommon_StorybookRefs;
4551
- babel?: any;
4552
- swc?: any;
4980
+ babel?: unknown;
4981
+ swc?: unknown;
4553
4982
  env?: Record<string, string>;
4554
- babelDefault?: any;
4983
+ babelDefault?: unknown;
4555
4984
  previewAnnotations?: Entry[];
4556
4985
  experimental_indexers?: Indexer$1[];
4557
4986
  /**
@@ -4574,13 +5003,14 @@ interface StorybookConfigRaw$1 {
4574
5003
  previewMainTemplate?: string;
4575
5004
  managerHead?: string;
4576
5005
  tags?: TagsOptions$1;
5006
+ root?: RootPageOptions;
4577
5007
  services?: void;
4578
5008
  }
4579
5009
  /**
4580
5010
  * The interface for Forkbook configuration in `main.ts` files. This interface is public All values
4581
5011
  * should be wrapped with `PresetValue<>`, though there are a few exceptions: `addons`, `framework`
4582
5012
  */
4583
- interface StorybookConfig$1 {
5013
+ interface ForkbookConfig$1 {
4584
5014
  /**
4585
5015
  * Sets the addons you want to use with Forkbook.
4586
5016
  *
@@ -4669,6 +5099,21 @@ interface StorybookConfig$1 {
4669
5099
  managerHead?: PresetValue<StorybookConfigRaw$1['managerHead']>;
4670
5100
  /** Configure non-standard tag behaviors */
4671
5101
  tags?: PresetValue<StorybookConfigRaw$1['tags']>;
5102
+ /**
5103
+ * The start page at `/`. By default it shows a grid of cards, one for each component.
5104
+ *
5105
+ * - `false`: no start page. `/` opens the first story.
5106
+ * - `{ mdx }`: an MDX file (relative to the config folder) that shows above the grid.
5107
+ * - `{ mdx, mode: 'replace' }`: the MDX file is the full page. Put `<StoryGrid />` from
5108
+ * `@aussieljk/forkbook/addon-docs/blocks` in the MDX to show the grid.
5109
+ *
5110
+ * @example
5111
+ *
5112
+ * ```ts
5113
+ * root: { mdx: './Home.mdx', mode: 'above' };
5114
+ * ```
5115
+ */
5116
+ root?: PresetValue<StorybookConfigRaw$1['root']>;
4672
5117
  /** Run open-service registration side effects for the server environment. */
4673
5118
  services?: PresetValue<StorybookConfigRaw$1['services']>;
4674
5119
  /**
@@ -4702,7 +5147,7 @@ interface CoreCommon_ResolvedAddonVirtual$1 {
4702
5147
  previewAnnotations?: PreviewAnnotation[];
4703
5148
  presets?: (string | {
4704
5149
  name: string;
4705
- options?: any;
5150
+ options?: unknown;
4706
5151
  })[];
4707
5152
  }
4708
5153
  type CoreCommon_OptionsEntry = {
@@ -10596,7 +11041,7 @@ interface TypedGetService<TMap> {
10596
11041
  * The reference is stable as long as `service` and `commandName` do not change, so it is
10597
11042
  * safe to pass to child components or include in effect dependency arrays.
10598
11043
  */
10599
- type CommandFn<TCommands, TKey extends keyof TCommands> = TCommands[TKey] extends ((...args: any[]) => any) ? TCommands[TKey] : never;
11044
+ type CommandFn<TCommands, TKey extends keyof TCommands> = TCommands[TKey] extends ((...args: never[]) => unknown) ? TCommands[TKey] : never;
10600
11045
  /**
10601
11046
  * Returns a stable reference to the named service command.
10602
11047
  *
@@ -10608,164 +11053,49 @@ type CommandFn<TCommands, TKey extends keyof TCommands> = TCommands[TKey] extend
10608
11053
  * const assignField = useServiceCommand(service, 'assignRecordField');
10609
11054
  *
10610
11055
  * return (
10611
- * <button onClick={() => assignField({ entryId: 'a', fieldKey: 'x', fieldValue: 'y' })}>
10612
- * Update
10613
- * </button>
10614
- * );
10615
- * ```
10616
- */
10617
- declare function useServiceCommand<TInstance extends {
10618
- commands: Record<string, (input: any) => Promise<any>>;
10619
- }, TKey extends keyof TInstance['commands'] & string>(service: TInstance, commandName: TKey): CommandFn<TInstance['commands'], TKey>;
10620
- //#endregion
10621
- //#region .dts-emit/code/core/src/shared/open-service/use-service-query.d.ts
10622
- /**
10623
- * Subscribe to a service query and receive reactive {@link QueryState} updates in a React component.
10624
- *
10625
- * Pass the query directly (e.g. `myService.queries.thing`) so its input/output types infer per
10626
- * query. The service must exist: if it may be absent (e.g. behind a feature flag), guard at a parent
10627
- * and conditionally render the component that calls this hook.
10628
- *
10629
- * A void-input query needs no input argument. As soon as a selector is involved the input is
10630
- * positional, so a void-input query passes `undefined` explicitly:
10631
- * `useServiceQuery(query, undefined, selector)`.
10632
- *
10633
- * @example
10634
- * ```tsx
10635
- * const { data, isInitialLoading, isError } = useServiceQuery(recordService.queries.recordFields, {
10636
- * entryId: 'a',
10637
- * });
10638
- * ```
10639
- */
10640
- declare function useServiceQuery<TOutput>(query: Query<void, TOutput>): QueryState<TOutput>;
10641
- declare function useServiceQuery<TInput, TOutput>(query: Query<TInput, TOutput>, input: TInput): QueryState<TOutput>;
10642
- declare function useServiceQuery<TInput, TOutput, TSelected>(query: Query<TInput, TOutput>, input: TInput, selector: (value: TOutput) => TSelected): QueryState<TSelected>;
10643
- //#endregion
10644
- //#region .dts-emit/code/core/src/shared/open-service/manager.d.ts
10645
- declare const getService$1: TypedGetService<ManagerCoreServices>;
10646
- /**
10647
- * Registers a service in the manager and returns its runtime surface.
10648
- *
10649
- * The manager is a relay hub: it bridges the dev server and the preview iframes. The channel is read
10650
- * via `getChannel()` from `@aussieljk/forkbook/internal/channels`, which the manager runtime installs before any
10651
- * `addons.register` callback runs, so no manual channel setup is needed.
10652
- */
10653
- declare function registerService$1<TState, TQueries extends Queries<TState>, TCommands extends Commands<TState>>(definition: ServiceDefinition<TState, TQueries, TCommands>, registration?: ServiceRegistrationOptions<TState, TQueries, TCommands>): ServiceInstance<TState, TQueries, TCommands> & ServiceRegistryApi;
10654
- //#endregion
10655
- //#region .dts-emit/code/core/src/types/modules/api-stories.d.ts
10656
- interface API_BaseEntry {
10657
- id: StoryId$2;
10658
- depth: number;
10659
- name: string;
10660
- tags: Tag$2[];
10661
- refId?: string;
10662
- renderAriaLabel?: API_SidebarOptions['renderAriaLabel'];
10663
- renderLabel?: API_SidebarOptions['renderLabel'];
10664
- }
10665
- interface API_RootEntry extends API_BaseEntry {
10666
- type: 'root';
10667
- startCollapsed?: boolean;
10668
- children: StoryId$2[];
10669
- }
10670
- interface API_GroupEntry extends API_BaseEntry {
10671
- type: 'group';
10672
- parent?: StoryId$2;
10673
- children: StoryId$2[];
10674
- }
10675
- interface API_ComponentEntry extends API_BaseEntry {
10676
- type: 'component';
10677
- parent?: StoryId$2;
10678
- children: StoryId$2[];
10679
- importPath?: Path$1;
10680
- }
10681
- interface API_DocsEntry$1 extends API_BaseEntry {
10682
- type: 'docs';
10683
- parent: StoryId$2;
10684
- title: ComponentTitle$1;
10685
- importPath: Path$1;
10686
- prepared: boolean;
10687
- parameters?: {
10688
- [parameterName: string]: any;
10689
- };
10690
- anchors?: DocsAnchor$1[];
10691
- }
10692
- interface API_StoryEntry$1 extends API_BaseEntry {
10693
- type: 'story';
10694
- subtype: 'story';
10695
- parent: StoryId$2;
10696
- title: ComponentTitle$1;
10697
- importPath: Path$1;
10698
- exportName: string;
10699
- prepared: boolean;
10700
- parameters?: {
10701
- [parameterName: string]: any;
10702
- };
10703
- args?: Args$2;
10704
- argTypes?: ArgTypes$2;
10705
- initialArgs?: Args$2;
10706
- children?: StoryId$2[];
10707
- }
10708
- interface API_TestEntry$1 extends Omit<API_StoryEntry$1, 'subtype' | 'children' | 'parent'> {
10709
- parent: StoryId$2;
10710
- subtype: 'test';
10711
- }
10712
- type API_LeafEntry$1 = API_DocsEntry$1 | API_StoryEntry$1 | API_TestEntry$1;
11056
+ * <button onClick={() => assignField({ entryId: 'a', fieldKey: 'x', fieldValue: 'y' })}>
11057
+ * Update
11058
+ * </button>
11059
+ * );
11060
+ * ```
11061
+ */
11062
+ declare function useServiceCommand<TInstance extends {
11063
+ commands: Record<string, (input: never) => Promise<unknown>>;
11064
+ }, TKey extends keyof TInstance['commands'] & string>(service: TInstance, commandName: TKey): CommandFn<TInstance['commands'], TKey>;
11065
+ //#endregion
11066
+ //#region .dts-emit/code/core/src/shared/open-service/use-service-query.d.ts
10713
11067
  /**
10714
- * Runtime enrichment for a composed ref's stories/docs, keyed by entry id. These fields come from
10715
- * the ref preview's STORY_PREPARED / DOCS_PREPARED events and are not part of the ref's static story
10716
- * index, so they are cached per ref and re-applied whenever the ref index is (re)built.
11068
+ * Subscribe to a service query and receive reactive {@link QueryState} updates in a React component.
11069
+ *
11070
+ * Pass the query directly (e.g. `myService.queries.thing`) so its input/output types infer per
11071
+ * query. The service must exist: if it may be absent (e.g. behind a feature flag), guard at a parent
11072
+ * and conditionally render the component that calls this hook.
11073
+ *
11074
+ * A void-input query needs no input argument. As soon as a selector is involved the input is
11075
+ * positional, so a void-input query passes `undefined` explicitly:
11076
+ * `useServiceQuery(query, undefined, selector)`.
11077
+ *
11078
+ * @example
11079
+ * ```tsx
11080
+ * const { data, isInitialLoading, isError } = useServiceQuery(recordService.queries.recordFields, {
11081
+ * entryId: 'a',
11082
+ * });
11083
+ * ```
10717
11084
  */
10718
- type API_RefStoryRuntimeData = Record<StoryId$2, Partial<Pick<API_StoryEntry$1, 'prepared' | 'parameters' | 'args' | 'argTypes' | 'initialArgs'>>>;
10719
- type API_HashEntry$1 = API_RootEntry | API_GroupEntry | API_ComponentEntry | API_DocsEntry$1 | API_StoryEntry$1 | API_TestEntry$1;
11085
+ declare function useServiceQuery<TOutput>(query: Query<void, TOutput>): QueryState<TOutput>;
11086
+ declare function useServiceQuery<TInput, TOutput>(query: Query<TInput, TOutput>, input: TInput): QueryState<TOutput>;
11087
+ declare function useServiceQuery<TInput, TOutput, TSelected>(query: Query<TInput, TOutput>, input: TInput, selector: (value: TOutput) => TSelected): QueryState<TSelected>;
11088
+ //#endregion
11089
+ //#region .dts-emit/code/core/src/shared/open-service/manager.d.ts
11090
+ declare const getService$1: TypedGetService<ManagerCoreServices>;
10720
11091
  /**
10721
- * The `IndexHash` is our manager-side representation of the `StoryIndex`. We create entries in the
10722
- * hash not only for each story or docs entry, but also for each "group" of the component (split on
10723
- * '/'), as that's how things are manipulated in parts of the manager (i.e. in search).
11092
+ * Registers a service in the manager and returns its runtime surface.
11093
+ *
11094
+ * The manager is a relay hub: it bridges the dev server and the preview iframes. The channel is read
11095
+ * via `getChannel()` from `@aussieljk/forkbook/internal/channels`, which the manager runtime installs before any
11096
+ * `addons.register` callback runs, so no manual channel setup is needed.
10724
11097
  */
10725
- interface API_IndexHash$1 {
10726
- [id: string]: API_HashEntry$1;
10727
- }
10728
- type API_PreparedIndexEntry = IndexEntry$1 & {
10729
- parameters?: Parameters$2;
10730
- argTypes?: ArgTypes$2;
10731
- args?: Args$2;
10732
- initialArgs?: Args$2;
10733
- };
10734
- interface API_PreparedStoryIndex$1 {
10735
- v: number;
10736
- entries: Record<StoryId$2, API_PreparedIndexEntry>;
10737
- }
10738
- type API_OptionsData$1 = {
10739
- docsOptions: DocsOptions$1;
10740
- };
10741
- interface API_ReleaseNotes {
10742
- success?: boolean;
10743
- currentVersion?: string;
10744
- showOnFirstLaunch?: boolean;
10745
- }
10746
- interface API_Settings$1 {
10747
- lastTrackedStoryId: string;
10748
- }
10749
- interface API_Version$1 {
10750
- version: string;
10751
- info?: {
10752
- plain: string;
10753
- };
10754
- [key: string]: any;
10755
- }
10756
- interface API_UnknownEntries$1 {
10757
- [key: string]: {
10758
- [key: string]: any;
10759
- };
10760
- }
10761
- interface API_Versions$2 {
10762
- latest?: API_Version$1;
10763
- next?: API_Version$1;
10764
- current?: API_Version$1;
10765
- }
10766
- type API_FilterFunction$1 = (item: API_PreparedIndexEntry & {
10767
- statuses: StatusByTypeId;
10768
- }) => boolean;
11098
+ declare function registerService$1<TState, TQueries extends Queries<TState>, TCommands extends Commands<TState>>(definition: ServiceDefinition<TState, TQueries, TCommands>, registration?: ServiceRegistrationOptions<TState, TQueries, TCommands>): ServiceInstance<TState, TQueries, TCommands> & ServiceRegistryApi;
10769
11099
  //#endregion
10770
11100
  //#region .dts-emit/code/core/src/types/modules/channelApi.d.ts
10771
11101
  interface SetStoriesStory {
@@ -10777,11 +11107,11 @@ interface SetStoriesStory {
10777
11107
  parameters: {
10778
11108
  fileName: string;
10779
11109
  options: {
10780
- [optionName: string]: any;
11110
+ [optionName: string]: unknown;
10781
11111
  };
10782
11112
  docsOnly?: boolean;
10783
11113
  viewMode?: API_ViewMode$1;
10784
- [parameterName: string]: any;
11114
+ [parameterName: string]: unknown;
10785
11115
  };
10786
11116
  argTypes?: ArgTypes$2;
10787
11117
  args?: Args$2;
@@ -10850,16 +11180,14 @@ interface API_Provider$1<API> {
10850
11180
  channel?: Channel$1;
10851
11181
  renderPreview?: API_IframeRenderer$1;
10852
11182
  handleAPI(api: API): void;
10853
- getConfig(): {
11183
+ getElements<T extends Addon_Types$1 | Addon_TypesEnum$1.experimental_PAGE | Addon_TypesEnum$1.experimental_TEST_PROVIDER>(type: T): Addon_Collection$1<Addon_TypesMapping$1[T]>;
11184
+ getConfig(): Addon_Config$1 & {
10854
11185
  sidebar?: API_SidebarOptions$1<API>;
10855
- theme?: ThemeVars$1;
10856
11186
  selectedPanel?: string;
10857
- StoryMapper?: API_StoryMapper;
10858
- [k: string]: any;
11187
+ storyMapper?: API_StoryMapper;
10859
11188
  };
10860
- [key: string]: any;
10861
11189
  }
10862
- type API_IframeRenderer$1 = (storyId: string, viewMode: API_ViewMode$1, id: string, baseUrl: string, scale: number, queryParams: Record<string, any>) => ReactElement<any, any> | null;
11190
+ type API_IframeRenderer$1 = (storyId: string, viewMode: API_ViewMode$1, id: string, baseUrl: string, scale: number, queryParams: Record<string, unknown>) => ReactElement | null;
10863
11191
  type FilterFunction = (entry: API_PreparedIndexEntry, excluded?: boolean) => boolean;
10864
11192
  interface API_Layout$1 {
10865
11193
  initialActive: API_ActiveTabsType;
@@ -10898,18 +11226,27 @@ interface API_UI$1 {
10898
11226
  }
10899
11227
  type API_PanelPositions$1 = 'bottom' | 'right';
10900
11228
  type API_ActiveTabsType = 'sidebar' | 'canvas' | 'addons';
10901
- interface API_SidebarOptions$1<API = any> {
11229
+ interface API_SidebarOptions$1<API$1 = API> {
10902
11230
  showRoots?: boolean;
11231
+ /**
11232
+ * Do not make folders from the `/` in a title. Each component is a top level item, named by its
11233
+ * full title. Default: false.
11234
+ */
11235
+ flat?: boolean;
11236
+ /** Show the type icon (group, component, docs, story) before each sidebar item. Default: false. */
11237
+ showIcons?: boolean;
11238
+ /** Expand every group and component in the sidebar when Forkbook opens. Default: true. */
11239
+ expandAll?: boolean;
10903
11240
  filters?: Record<string, API_FilterFunction$1>;
10904
11241
  collapsedRoots?: string[];
10905
- renderAriaLabel?: (item: API_HashEntry$1, api: API, context?: {
11242
+ renderAriaLabel?: (item: API_HashEntry$1, api: API$1, context?: {
10906
11243
  isMobile: boolean;
10907
11244
  location: 'sidebar' | 'bottom-bar';
10908
11245
  }) => string;
10909
- renderLabel?: (item: API_HashEntry$1, api: API, context?: {
11246
+ renderLabel?: (item: API_HashEntry$1, api: API$1, context?: {
10910
11247
  isMobile: boolean;
10911
11248
  location: 'sidebar' | 'bottom-bar';
10912
- }) => any;
11249
+ }) => unknown;
10913
11250
  }
10914
11251
  interface OnClearOptions {
10915
11252
  /** `true` when the user manually dismissed the notification. */
@@ -10925,7 +11262,7 @@ interface API_Notification$1 {
10925
11262
  id: string;
10926
11263
  content: {
10927
11264
  headline: string;
10928
- subHeadline?: string | any;
11265
+ subHeadline?: React.ReactNode;
10929
11266
  };
10930
11267
  duration?: number;
10931
11268
  link?: string;
@@ -10984,7 +11321,7 @@ interface Addon_StorySortObjectParameter {
10984
11321
  locales?: string;
10985
11322
  includeNames?: boolean;
10986
11323
  }
10987
- type IndexEntryLegacy = [StoryId$2, any, Parameters$2, Parameters$2];
11324
+ type IndexEntryLegacy = [StoryId$2, unknown, Parameters$2, Parameters$2];
10988
11325
  type Addon_StorySortComparator = Addon_Comparator<IndexEntryLegacy>;
10989
11326
  type Addon_StorySortParameter = Addon_StorySortComparator | Addon_StorySortObjectParameter;
10990
11327
  type Addon_StorySortComparatorV7 = Addon_Comparator<IndexEntry$1>;
@@ -10994,21 +11331,21 @@ interface Addon_OptionsParameter extends Object {
10994
11331
  base: string;
10995
11332
  brandTitle?: string;
10996
11333
  };
10997
- [key: string]: any;
11334
+ [key: string]: unknown;
10998
11335
  }
10999
11336
  interface Addon_OptionsParameterV7 extends Object {
11000
11337
  theme?: {
11001
11338
  base: string;
11002
11339
  brandTitle?: string;
11003
11340
  };
11004
- [key: string]: any;
11341
+ [key: string]: unknown;
11005
11342
  }
11006
11343
  type Addon_StoryContext<TRenderer extends Renderer$2 = Renderer$2> = StoryContextForRender<TRenderer>;
11007
11344
  type Addon_StoryContextUpdate = Partial<Addon_StoryContext>;
11008
11345
  interface Addon_ReturnTypeFramework<ReturnType> extends Renderer$2 {
11009
- component: any;
11346
+ component: unknown;
11010
11347
  storyResult: ReturnType;
11011
- canvasElement: any;
11348
+ canvasElement: unknown;
11012
11349
  }
11013
11350
  type Addon_PartialStoryFn<ReturnType = unknown> = PartialStoryFn$1<Addon_ReturnTypeFramework<ReturnType>>;
11014
11351
  type Addon_LegacyStoryFn<ReturnType = unknown> = LegacyStoryFn$1<Addon_ReturnTypeFramework<ReturnType>>;
@@ -11019,56 +11356,33 @@ type Addon_LoaderFunction = LoaderFunction$1<Addon_ReturnTypeFramework<unknown>>
11019
11356
  interface Addon_WrapperSettings {
11020
11357
  options: object;
11021
11358
  parameters: {
11022
- [key: string]: any;
11359
+ [key: string]: unknown;
11023
11360
  };
11024
11361
  }
11025
- type Addon_StoryWrapper$1 = (storyFn: Addon_LegacyStoryFn, context: Addon_StoryContext, settings: Addon_WrapperSettings) => any;
11362
+ type Addon_StoryWrapper$1 = (storyFn: Addon_LegacyStoryFn, context: Addon_StoryContext, settings: Addon_WrapperSettings) => unknown;
11026
11363
  type Addon_MakeDecoratorResult$1 = (...args: any) => any;
11027
- interface Addon_AddStoryArgs<StoryFnReturnType = unknown> {
11028
- id: StoryId$2;
11029
- kind: StoryKind$1;
11030
- name: StoryName$1;
11031
- storyFn: Addon_StoryFn<StoryFnReturnType>;
11032
- parameters: Parameters$2;
11033
- }
11034
- type Addon_ClientApiAddon<StoryFnReturnType = unknown> = Addon_Type & {
11035
- apply: (a: Addon_StoryApi<StoryFnReturnType>, b: any[]) => any;
11036
- };
11037
- interface Addon_ClientApiAddons<StoryFnReturnType> {
11038
- [key: string]: Addon_ClientApiAddon<StoryFnReturnType>;
11039
- }
11040
- type Addon_ClientApiReturnFn<StoryFnReturnType = unknown> = (...args: any[]) => Addon_StoryApi<StoryFnReturnType>;
11041
- interface Addon_StoryApi<StoryFnReturnType = unknown> {
11042
- kind: StoryKind$1;
11043
- add: (storyName: StoryName$1, storyFn: Addon_StoryFn<StoryFnReturnType>, parameters?: Parameters$2) => Addon_StoryApi<StoryFnReturnType>;
11044
- addDecorator: (decorator: Addon_DecoratorFunction$1<StoryFnReturnType>) => Addon_StoryApi<StoryFnReturnType>;
11045
- addLoader: (decorator: Addon_LoaderFunction) => Addon_StoryApi<StoryFnReturnType>;
11046
- addParameters: (parameters: Parameters$2) => Addon_StoryApi<StoryFnReturnType>;
11047
- [k: string]: string | Addon_ClientApiReturnFn<StoryFnReturnType>;
11048
- }
11049
- interface Addon_ClientStoryApi<StoryFnReturnType = unknown> {}
11050
- type Addon_LoadFn = () => any;
11051
- type Addon_RequireContext = any;
11364
+ type Addon_LoadFn = () => unknown;
11365
+ type Addon_RequireContext = unknown;
11052
11366
  type Addon_Loadable = Addon_RequireContext | [Addon_RequireContext] | Addon_LoadFn;
11053
11367
  type Addon_BaseDecorators<StoryFnReturnType> = Array<(story: () => StoryFnReturnType, context: Addon_StoryContext) => StoryFnReturnType>;
11054
11368
  interface Addon_BaseAnnotations<TArgs, StoryFnReturnType, TRenderer extends Renderer$2 = Renderer$2> {
11055
11369
  /**
11056
11370
  * Dynamic data that are provided (and possibly updated by) Forkbook and its addons.
11057
11371
  *
11058
- * @see [Arg story inputs](https://storybook.js.org/docs/api/csf#args-story-inputs)
11372
+ * @see [Arg story inputs](https://forkbook.ljk.dev/docs/api/csf#args-story-inputs)
11059
11373
  */
11060
11374
  args?: Partial<TArgs>;
11061
11375
  /**
11062
11376
  * ArgTypes encode basic metadata for args, such as `name` and `description`. These get
11063
11377
  * automatically filled in by Forkbook Docs.
11064
11378
  *
11065
- * @see [Arg types](https://storybook.js.org/docs/api/arg-types)
11379
+ * @see [Arg types](https://forkbook.ljk.dev/docs/api/arg-types)
11066
11380
  */
11067
11381
  argTypes?: Addons_ArgTypes<TArgs>;
11068
11382
  /**
11069
11383
  * Custom metadata for a story.
11070
11384
  *
11071
- * @see [Parameters](https://storybook.js.org/docs/writing-stories/parameters)
11385
+ * @see [Parameters](https://forkbook.ljk.dev/docs/writing-stories/parameters)
11072
11386
  */
11073
11387
  parameters?: Parameters$2;
11074
11388
  /**
@@ -11076,7 +11390,7 @@ interface Addon_BaseAnnotations<TArgs, StoryFnReturnType, TRenderer extends Rend
11076
11390
  *
11077
11391
  * Decorators defined in Meta will be applied to every story variation.
11078
11392
  *
11079
- * @see [Decorators](https://storybook.js.org/docs/writing-stories/decorators)
11393
+ * @see [Decorators](https://forkbook.ljk.dev/docs/writing-stories/decorators)
11080
11394
  */
11081
11395
  decorators?: Addon_BaseDecorators<StoryFnReturnType>;
11082
11396
  /**
@@ -11099,7 +11413,7 @@ interface Addon_Annotations<TArgs, StoryFnReturnType> extends Addon_BaseAnnotati
11099
11413
  * includeStories: /.*Story$/;
11100
11414
  * ```
11101
11415
  *
11102
- * @see [Non-story exports](https://storybook.js.org/docs/api/csf#non-story-exports)
11416
+ * @see [Non-story exports](https://forkbook.ljk.dev/docs/api/csf#non-story-exports)
11103
11417
  */
11104
11418
  includeStories?: string[] | RegExp;
11105
11419
  /**
@@ -11113,7 +11427,7 @@ interface Addon_Annotations<TArgs, StoryFnReturnType> extends Addon_BaseAnnotati
11113
11427
  * excludeStories: /.*Data$/;
11114
11428
  * ```
11115
11429
  *
11116
- * @see [Non-story exports](https://storybook.js.org/docs/api/csf#non-story-exports)
11430
+ * @see [Non-story exports](https://forkbook.ljk.dev/docs/api/csf#non-story-exports)
11117
11431
  */
11118
11432
  excludeStories?: string[] | RegExp;
11119
11433
  }
@@ -11131,7 +11445,7 @@ interface Addon_BaseMeta<ComponentType> {
11131
11445
  * export default { title: 'Design System/Atoms/Button' };
11132
11446
  * ```
11133
11447
  *
11134
- * @see [Story Hierarchy](https://storybook.js.org/docs/writing-stories/naming-components-and-hierarchy)
11448
+ * @see [Story Hierarchy](https://forkbook.ljk.dev/docs/writing-stories/naming-components-and-hierarchy)
11135
11449
  */
11136
11450
  title?: string;
11137
11451
  /**
@@ -11141,7 +11455,7 @@ interface Addon_BaseMeta<ComponentType> {
11141
11455
  * Forkbook will prioritize the id over the title for ID generation, if provided, and will
11142
11456
  * prioritize the story.storyName over the export key for display.
11143
11457
  *
11144
- * @see [Sidebar and URLs](https://storybook.js.org/docs/configure/user-interface/sidebar-and-urls#permalink-to-stories)
11458
+ * @see [Sidebar and URLs](https://forkbook.ljk.dev/docs/configure/user-interface/sidebar-and-urls#permalink-to-stories)
11145
11459
  */
11146
11460
  id?: string;
11147
11461
  /**
@@ -11220,7 +11534,7 @@ interface Addon_BaseType$1 {
11220
11534
  /** @unstable */
11221
11535
  paramKey?: string;
11222
11536
  /** @unstable */
11223
- disabled?: boolean | ((parameters: API_StoryEntry$1['parameters']) => boolean);
11537
+ disabled?: boolean | ((parameters: API_StoryEntry$1['parameters'], story?: API_StoryEntry$1) => boolean);
11224
11538
  }
11225
11539
  interface Addon_PageType$1 {
11226
11540
  type: Addon_TypesEnum$1.experimental_PAGE;
@@ -11308,7 +11622,7 @@ interface Addon_Config$1 {
11308
11622
  };
11309
11623
  sidebar?: API_SidebarOptions$1;
11310
11624
  ui?: Partial<API_UI$1>;
11311
- [key: string]: any;
11625
+ [key: string]: unknown;
11312
11626
  }
11313
11627
  declare enum Addon_TypesEnum$1 {
11314
11628
  /** This adds panels to the addons side panel. */
@@ -11318,7 +11632,7 @@ declare enum Addon_TypesEnum$1 {
11318
11632
  /** This adds items in the toolbar above the canvas - on the right side. */
11319
11633
  TOOLEXTRA = "toolextra",
11320
11634
  /**
11321
- * This adds wrapper components around the canvas/iframe component storybook renders.
11635
+ * This adds wrapper components around the canvas/iframe component Forkbook renders.
11322
11636
  *
11323
11637
  * @unstable this API is not stable yet, and is likely to change in 8.0.
11324
11638
  */
@@ -11448,10 +11762,10 @@ declare type RenderContext<TRenderer extends Renderer$2 = Renderer$2> = StoryIde
11448
11762
  //#endregion
11449
11763
  //#region .dts-emit/code/core/src/types/modules/builder.d.ts
11450
11764
  interface BuilderStats {
11451
- toJson: () => any;
11765
+ toJson: () => unknown;
11452
11766
  }
11453
11767
  type Builder_WithRequiredProperty<Type, Key extends keyof Type> = Type & { [Property in Key]-?: Type[Property] };
11454
- type Builder_Unpromise<T extends Promise<any>> = T extends Promise<infer U> ? U : never;
11768
+ type Builder_Unpromise<T extends Promise<unknown>> = T extends Promise<infer U> ? U : never;
11455
11769
  type Builder_EnvsRaw = Record<string, string>;
11456
11770
  //#endregion
11457
11771
  //#region .dts-emit/code/core/src/types/modules/docs.d.ts
@@ -11644,8 +11958,8 @@ declare function composeStepRunners<TRenderer extends Renderer$1>(stepRunners: S
11644
11958
  declare global {
11645
11959
  var globalProjectAnnotations: NormalizedProjectAnnotations<any>;
11646
11960
  var defaultProjectAnnotations: ProjectAnnotations$1<any>;
11647
- var __STORYBOOK_ADDON_VITEST_PROJECT_ANNOTATIONS_APPLIED__: boolean | undefined;
11648
- var __STORYBOOK_SET_PROJECT_ANNOTATIONS_CALLED__: boolean | undefined;
11961
+ var __FORKBOOK_ADDON_VITEST_PROJECT_ANNOTATIONS_APPLIED__: boolean | undefined;
11962
+ var __FORKBOOK_SET_PROJECT_ANNOTATIONS_CALLED__: boolean | undefined;
11649
11963
  }
11650
11964
  declare function setDefaultProjectAnnotations<TRenderer extends Renderer$1 = Renderer$1>(_defaultProjectAnnotations: ProjectAnnotations$1<TRenderer>): void;
11651
11965
  declare function setProjectAnnotations<TRenderer extends Renderer$1 = Renderer$1>(projectAnnotations: NamedOrDefaultProjectAnnotations<TRenderer> | NamedOrDefaultProjectAnnotations<TRenderer>[]): NormalizedProjectAnnotations<TRenderer>;
@@ -11677,7 +11991,7 @@ declare const combineParameters: (...parameterSets: (Parameters$1 | undefined)[]
11677
11991
  //#endregion
11678
11992
  //#region .dts-emit/code/core/src/preview-api/modules/store/filterArgTypes.d.ts
11679
11993
  type PropDescriptor = string[] | RegExp;
11680
- declare const filterArgTypes: (argTypes: StrictArgTypes$1, include?: PropDescriptor, exclude?: PropDescriptor) => Partial<StrictArgTypes$1<import("@aussieljk/forkbook/internal/types").Args>>;
11994
+ declare const filterArgTypes: (argTypes: StrictArgTypes$1, include?: PropDescriptor, exclude?: PropDescriptor) => StrictArgTypes$1<import("@aussieljk/forkbook/internal/types").Args>;
11681
11995
  //#endregion
11682
11996
  //#region .dts-emit/code/core/src/preview-api/modules/store/inferControls.d.ts
11683
11997
  /** The fields {@link inferControls} reads; the full enhancer context is structurally assignable. */
@@ -11710,7 +12024,7 @@ declare function sanitizeStoryContextUpdate({
11710
12024
  declare function defaultDecorateStory<TRenderer extends Renderer$1>(storyFn: LegacyStoryFn<TRenderer>, decorators: DecoratorFunction$1<TRenderer>[]): LegacyStoryFn<TRenderer>;
11711
12025
  //#endregion
11712
12026
  //#region .dts-emit/code/core/src/preview-api/modules/store/args.d.ts
11713
- declare const combineArgs: (value: any, update: any) => Args$1;
12027
+ declare const combineArgs: (value: Args$1, update: Args$1) => Args$1;
11714
12028
  //#endregion
11715
12029
  //#region .dts-emit/code/core/src/shared/story-index/autoTitle.d.ts
11716
12030
  declare const userOrAutoTitleFromSpecifier: (fileName: string | number, entry: NormalizedStoriesSpecifier, userTitle?: string) => string | undefined;
@@ -11902,6 +12216,11 @@ declare class Preview$1<TRenderer extends Renderer$1> {
11902
12216
  get storyStore(): StoryStore<TRenderer>;
11903
12217
  protected initialize(): Promise<void>;
11904
12218
  ready(): Promise<void>;
12219
+ /**
12220
+ * Uses another channel, for example the WebSocket channel of a React Native view. Call
12221
+ * `setupListeners()` after it, so that the preview listens on the new channel.
12222
+ */
12223
+ setChannel(channel: Channel): void;
11905
12224
  setupListeners(): void;
11906
12225
  getProjectAnnotationsOrRenderError(): Promise<ProjectAnnotations$1<TRenderer>>;
11907
12226
  initializeWithProjectAnnotations(projectAnnotations: ProjectAnnotations$1<TRenderer>): Promise<void>;
@@ -12035,14 +12354,57 @@ interface SelectionStore {
12035
12354
  setQueryParams(queryParams: Record<PropertyKey, unknown>): void;
12036
12355
  }
12037
12356
  //#endregion
12357
+ //#region .dts-emit/code/core/src/preview-api/modules/preview-web/AllStories.d.ts
12358
+ type RenderStoryToElement<TRenderer extends Renderer$1> = (story: PreparedStory<TRenderer>, element: TRenderer['canvasElement'], callbacks: RenderContextCallbacks<TRenderer>, options: StoryRenderOptions) => () => Promise<void>;
12359
+ /**
12360
+ * Renders every story of the index into one element, grouped by component. The manager shows this
12361
+ * page on `/all` in "one frame" mode, so it needs one preview, not one preview for each story.
12362
+ */
12363
+ declare class AllStories<TRenderer extends Renderer$1> {
12364
+ private store;
12365
+ private renderStoryToElement;
12366
+ private teardowns;
12367
+ constructor(store: StoryStore<TRenderer>, renderStoryToElement: RenderStoryToElement<TRenderer>);
12368
+ render(root: HTMLElement): Promise<void>;
12369
+ stop(): Promise<void>;
12370
+ }
12371
+ //#endregion
12372
+ //#region .dts-emit/code/core/src/preview-api/modules/preview-web/InfiniteDocs.d.ts
12373
+ /**
12374
+ * Infinite scroll for docs pages. When the reader gets near the end of a docs page, the next docs
12375
+ * entry (in sidebar order) renders below it. The page at the top of the view is sent to the
12376
+ * manager with `DOCS_PAGE_IN_VIEW`, so the sidebar and the URL follow it without a new render.
12377
+ *
12378
+ * On by default. The `docs.infiniteScroll: false` parameter turns it off.
12379
+ */
12380
+ declare class InfiniteDocs<TRenderer extends Renderer$1> {
12381
+ private channel;
12382
+ private store;
12383
+ private renderStoryToElement;
12384
+ private callbacks;
12385
+ private renders;
12386
+ private container?;
12387
+ private sentinelObserver?;
12388
+ private pageObserver?;
12389
+ private lastId?;
12390
+ private inViewId?;
12391
+ private loading;
12392
+ constructor(channel: Channel, store: StoryStore<TRenderer>, renderStoryToElement: DocsContextProps$1<TRenderer>['renderStoryToElement'], callbacks: (id: StoryId$1) => RenderContextCallbacks<TRenderer>);
12393
+ /** Starts after the main docs page `entry` rendered into `docsRoot`. */
12394
+ start(entry: IndexEntry, docsRoot: HTMLElement): void;
12395
+ private loadNext;
12396
+ /** Removes the pages below the main page. */
12397
+ stop(): void;
12398
+ }
12399
+ //#endregion
12038
12400
  //#region .dts-emit/code/core/src/preview-api/modules/preview-web/View.d.ts
12039
- interface View<TStorybookRoot> {
12040
- prepareForStory(story: PreparedStory<any>, options?: {
12401
+ interface View<TRoot> {
12402
+ prepareForStory(story: Pick<PreparedStory, 'parameters'>, options?: {
12041
12403
  scrollReset?: boolean;
12042
- }): TStorybookRoot;
12404
+ }): TRoot;
12043
12405
  prepareForDocs(options?: {
12044
12406
  scrollReset?: boolean;
12045
- }): TStorybookRoot;
12407
+ }): TRoot;
12046
12408
  showErrorDisplay(err: {
12047
12409
  message?: string;
12048
12410
  stack?: string;
@@ -12070,12 +12432,17 @@ declare class PreviewWithSelection<TRenderer extends Renderer$1> extends Preview
12070
12432
  view: View<TRenderer['canvasElement']>;
12071
12433
  currentSelection?: Selection;
12072
12434
  currentRender?: PossibleRender<TRenderer>;
12435
+ /** The docs pages below the selected docs page (`docs.infiniteScroll`). */
12436
+ infiniteDocs?: InfiniteDocs<TRenderer>;
12437
+ allStories?: AllStories<TRenderer>;
12073
12438
  constructor(importFn: ModuleImportFn, getProjectAnnotations: () => MaybePromise<ProjectAnnotations$1<TRenderer>>, selectionStore: SelectionStore, view: View<TRenderer['canvasElement']>);
12074
12439
  setupListeners(): void;
12075
12440
  onNavigateUrl(url: string): void;
12076
12441
  setInitialGlobals(): Promise<void>;
12077
12442
  initializeWithStoryIndex(storyIndex: StoryIndex): Promise<void>;
12078
12443
  selectSpecifiedStory(): Promise<void>;
12444
+ /** Renders all stories in one page (`iframe.html?allStories=true`). */
12445
+ renderAllStories(): Promise<void>;
12079
12446
  onGetProjectAnnotationsChanged({
12080
12447
  getProjectAnnotations
12081
12448
  }: {
@@ -12093,7 +12460,7 @@ declare class PreviewWithSelection<TRenderer extends Renderer$1> extends Preview
12093
12460
  storyId: StoryId$1;
12094
12461
  viewMode?: ViewMode$1;
12095
12462
  }): Promise<void>;
12096
- onUpdateQueryParams(queryParams: any): void;
12463
+ onUpdateQueryParams(queryParams: Record<PropertyKey, unknown>): void;
12097
12464
  onUpdateGlobals({
12098
12465
  globals
12099
12466
  }: {
@@ -12134,6 +12501,8 @@ declare class PreviewWithSelection<TRenderer extends Renderer$1> extends Preview
12134
12501
  };
12135
12502
  renderPreviewEntryError(reason: string, err: Error): void;
12136
12503
  renderMissingStory(): void;
12504
+ /** The story file of a story, so an error can say which file to fix. */
12505
+ importPathOf(storySpecifier: StorySpecifier): string | undefined;
12137
12506
  renderStoryLoadingException(storySpecifier: StorySpecifier, err: Error): void;
12138
12507
  renderException(storyId: StoryId$1, error: Error): void;
12139
12508
  renderError(storyId: StoryId$1, {
@@ -12170,9 +12539,9 @@ declare enum Mode {
12170
12539
  ERROR = "ERROR"
12171
12540
  }
12172
12541
  declare const layoutClassMap: {
12173
- readonly centered: 'sb-main-centered';
12174
- readonly fullscreen: 'sb-main-fullscreen';
12175
- readonly padded: 'sb-main-padded';
12542
+ readonly centered: 'fb-main-centered';
12543
+ readonly fullscreen: 'fb-main-fullscreen';
12544
+ readonly padded: 'fb-main-padded';
12176
12545
  };
12177
12546
  type Layout = keyof typeof layoutClassMap | 'none';
12178
12547
  declare class WebView implements View<HTMLElement> {
@@ -12180,7 +12549,7 @@ declare class WebView implements View<HTMLElement> {
12180
12549
  private testing;
12181
12550
  private preparingTimeout?;
12182
12551
  constructor();
12183
- prepareForStory(story: PreparedStory<any>, {
12552
+ prepareForStory(story: Pick<PreparedStory, 'parameters'>, {
12184
12553
  scrollReset
12185
12554
  }?: {
12186
12555
  scrollReset?: boolean;
@@ -12226,10 +12595,10 @@ declare class WebView implements View<HTMLElement> {
12226
12595
  //#endregion
12227
12596
  //#region .dts-emit/code/core/src/preview-api/modules/preview-web/simulate-pageload.d.ts
12228
12597
  declare function simulateDOMContentLoaded(): void;
12229
- declare function simulatePageLoad($container: any): void;
12598
+ declare function simulatePageLoad($container: ParentNode): void;
12230
12599
  //#endregion
12231
12600
  //#region .dts-emit/code/core/src/preview-api/modules/preview-web/emitTransformCode.d.ts
12232
- type ReducedStoryContext = Omit<StoryContext<any, Args>, 'abortSignal' | 'canvasElement' | 'step' | 'context'>;
12601
+ type ReducedStoryContext = Omit<StoryContext<Renderer, Args>, 'abortSignal' | 'canvasElement' | 'step' | 'context'>;
12233
12602
  declare function emitTransformCode(source: string | undefined, context: ReducedStoryContext, warning?: string): Promise<void>;
12234
12603
  //#endregion
12235
12604
  //#region .dts-emit/code/core/src/preview-api/modules/preview-web/render/animation-utils.d.ts
@@ -12320,175 +12689,94 @@ type StatusesByStoryIdAndTypeId$1 = Record<StoryId$2, StatusByTypeId$1>;
12320
12689
  interface Status$1 {
12321
12690
  value: StatusValue$1;
12322
12691
  typeId: StatusTypeId;
12323
- storyId: StoryId$2;
12324
- title: string;
12325
- description: string;
12326
- data?: any;
12327
- sidebarContextMenu?: boolean;
12328
- }
12329
- declare const CHANGE_DETECTION_STATUS_TYPE_ID = "@aussieljk/forkbook/change-detection";
12330
- declare const REVIEW_STATUS_TYPE_ID = "@aussieljk/forkbook/review";
12331
- /**
12332
- * Status types that are quality/meta signals rather than test results, so they're excluded from the
12333
- * aggregated test status that surfaces a story's most critical result. Both are excluded by the same
12334
- * mechanism wherever that aggregate is computed.
12335
- */
12336
- declare const NON_AGGREGATED_STATUS_TYPE_IDS: string[];
12337
- declare const StatusStoreEventType: {
12338
- readonly SELECT: 'select';
12339
- };
12340
- type StatusStoreEvent = {
12341
- type: typeof StatusStoreEventType.SELECT;
12342
- payload: Status$1[];
12343
- };
12344
- type StatusStore = {
12345
- getAll: () => StatusesByStoryIdAndTypeId$1;
12346
- set: (statuses: Status$1[]) => void;
12347
- onAllStatusChange: (listener: (statuses: StatusesByStoryIdAndTypeId$1, previousStatuses: StatusesByStoryIdAndTypeId$1) => void) => () => void;
12348
- onSelect: (listener: (selectedStatuses: Status$1[]) => void) => () => void;
12349
- unset: (storyIds?: StoryId$2[]) => void;
12350
- };
12351
- type StatusStoreByTypeId$1 = StatusStore & {
12352
- typeId: StatusTypeId;
12353
- };
12354
- type UseStatusStore = <T = StatusesByStoryIdAndTypeId$1>(selector?: (statuses: StatusesByStoryIdAndTypeId$1) => T) => T;
12355
- //#endregion
12356
- //#region .dts-emit/code/core/src/storybook-error.d.ts
12357
- declare abstract class StorybookError extends Error {
12358
- private _name;
12359
- /** Category of the error. Used to classify the type of error, e.g., 'PREVIEW_API'. */
12360
- readonly category: string;
12361
- /** Code representing the error. Used to uniquely identify the error, e.g., 1. */
12362
- readonly code: number;
12363
- /**
12364
- * Data associated with the error. Used to provide additional information in the error message or
12365
- * to be passed to telemetry.
12366
- */
12367
- readonly data: {};
12368
- /**
12369
- * Specifies the documentation for the error.
12370
- *
12371
- * - If `true`, links to a documentation page on the Forkbook website (make sure it exists before
12372
- * enabling) – This is not implemented yet.
12373
- * - If a string, uses the provided URL for documentation (external or FAQ links).
12374
- * - If `false` (default), no documentation link is added.
12375
- */
12376
- readonly documentation: boolean | string | string[];
12377
- /** Flag used to easily determine if the error originates from Forkbook. */
12378
- readonly fromStorybook: true;
12379
- /**
12380
- * Marks an error whose message is written for the agent that triggered the call and names its
12381
- * own recovery. Adapters surface such errors verbatim instead of wrapping them as unexpected
12382
- * failures. A property rather than a class list, so the trait travels with the instance across
12383
- * bundle copies where `instanceof` would misclassify.
12384
- */
12385
- readonly agentFacing: boolean;
12386
- /**
12387
- * Flag used to determine if the error is handled by us and should therefore not be shown to the
12388
- * user.
12389
- */
12390
- isHandledError: boolean;
12391
- get fullErrorCode(): `SB_${string}_${string}`;
12392
- /** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
12393
- get name(): string;
12394
- set name(name: string);
12395
- /**
12396
- * A collection of sub errors which relate to a parent error.
12397
- *
12398
- * Sub-errors are used to represent multiple related errors that occurred together. When a
12399
- * StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
12400
- * are sent as separate telemetry events. This allows for better error tracking and debugging.
12401
- *
12402
- * @example
12403
- *
12404
- * ```ts
12405
- * const error1 = new SomeError();
12406
- * const error2 = new AnotherError();
12407
- * const parentError = new ParentError({
12408
- * // ... other props
12409
- * subErrors: [error1, error2],
12410
- * });
12411
- * ```
12412
- */
12413
- subErrors: StorybookError[];
12414
- constructor(props: {
12415
- category: string;
12416
- code: number;
12417
- message: string;
12418
- cause?: unknown;
12419
- documentation?: boolean | string | string[];
12420
- isHandledError?: boolean; /** See {@link StorybookError.agentFacing}. Defaults to false. */
12421
- agentFacing?: boolean;
12422
- name: string;
12423
- /**
12424
- * Optional array of sub-errors that are related to this error. When this error is sent to
12425
- * telemetry, each sub-error will be sent as a separate event.
12426
- */
12427
- subErrors?: StorybookError[];
12428
- });
12429
- /** Generates the error message along with additional documentation link (if applicable). */
12430
- static getFullMessage({
12431
- documentation,
12432
- code,
12433
- category,
12434
- message
12435
- }: ConstructorParameters<typeof StorybookError>[0]): string;
12436
- }
12437
- //#endregion
12438
- //#region .dts-emit/code/core/src/server-errors.d.ts
12439
- /**
12440
- * If you can't find a suitable category for your error, create one based on the package name/file
12441
- * path of which the error is thrown. For instance: If it's from `@storybook/node-logger`, then
12442
- * NODE-LOGGER If it's from a package that is too broad, e.g. @aussieljk/forkbook/internal/cli-commands in the init command,
12443
- * then use a combination like CLI_INIT
12444
- */
12445
- declare enum Category {
12446
- CLI = "CLI",
12447
- CLI_INIT = "CLI_INIT",
12448
- CLI_ADD = "CLI_ADD",
12449
- CODEMOD = "CODEMOD",
12450
- CORE_SERVER = "CORE-SERVER",
12451
- CSF_PLUGIN = "CSF-PLUGIN",
12452
- CSF_TOOLS = "CSF-TOOLS",
12453
- CORE_COMMON = "CORE-COMMON",
12454
- NODE_LOGGER = "NODE-LOGGER",
12455
- TELEMETRY = "TELEMETRY",
12456
- BUILDER_MANAGER = "BUILDER-MANAGER",
12457
- BUILDER_VITE = "BUILDER-VITE",
12458
- SOURCE_LOADER = "SOURCE-LOADER",
12459
- POSTINSTALL = "POSTINSTALL",
12460
- DOCS_TOOLS = "DOCS-TOOLS",
12461
- FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS",
12462
- FRAMEWORK_REACT_VITE = "FRAMEWORK_REACT-VITE"
12463
- }
12464
- declare class NxProjectDetectedError extends StorybookError {
12465
- constructor();
12466
- }
12467
- declare class MissingFrameworkFieldError extends StorybookError {
12468
- constructor();
12692
+ storyId: StoryId$2;
12693
+ title: string;
12694
+ description: string;
12695
+ data?: unknown;
12696
+ sidebarContextMenu?: boolean;
12469
12697
  }
12470
- declare class InvalidFrameworkNameError extends StorybookError {
12698
+ declare const CHANGE_DETECTION_STATUS_TYPE_ID = "@aussieljk/forkbook/change-detection";
12699
+ declare const REVIEW_STATUS_TYPE_ID = "@aussieljk/forkbook/review";
12700
+ /**
12701
+ * Status types that are quality/meta signals rather than test results, so they're excluded from the
12702
+ * aggregated test status that surfaces a story's most critical result. Both are excluded by the same
12703
+ * mechanism wherever that aggregate is computed.
12704
+ */
12705
+ declare const NON_AGGREGATED_STATUS_TYPE_IDS: string[];
12706
+ declare const StatusStoreEventType: {
12707
+ readonly SELECT: 'select';
12708
+ };
12709
+ type StatusStoreEvent = {
12710
+ type: typeof StatusStoreEventType.SELECT;
12711
+ payload: Status$1[];
12712
+ };
12713
+ type StatusStore = {
12714
+ getAll: () => StatusesByStoryIdAndTypeId$1;
12715
+ set: (statuses: Status$1[]) => void;
12716
+ onAllStatusChange: (listener: (statuses: StatusesByStoryIdAndTypeId$1, previousStatuses: StatusesByStoryIdAndTypeId$1) => void) => () => void;
12717
+ onSelect: (listener: (selectedStatuses: Status$1[]) => void) => () => void;
12718
+ unset: (storyIds?: StoryId$2[]) => void;
12719
+ };
12720
+ type StatusStoreByTypeId$1 = StatusStore & {
12721
+ typeId: StatusTypeId;
12722
+ };
12723
+ type UseStatusStore = <T = StatusesByStoryIdAndTypeId$1>(selector?: (statuses: StatusesByStoryIdAndTypeId$1) => T) => T;
12724
+ //#endregion
12725
+ //#region .dts-emit/code/core/src/errors/server/dev-server.d.ts
12726
+ declare class StatusTypeIdMismatchError extends StorybookError {
12471
12727
  data: {
12472
- frameworkName: string;
12728
+ status: Status$1;
12729
+ typeId: StatusTypeId;
12473
12730
  };
12474
12731
  constructor(data: {
12475
- frameworkName: string;
12732
+ status: Status$1;
12733
+ typeId: StatusTypeId;
12476
12734
  });
12477
12735
  }
12478
- declare class CouldNotEvaluateFrameworkError extends StorybookError {
12736
+ declare class NoFreePortError extends StorybookError {
12479
12737
  data: {
12480
- frameworkName: string;
12738
+ requestedPort?: number;
12481
12739
  };
12482
12740
  constructor(data: {
12483
- frameworkName: string;
12741
+ requestedPort?: number;
12484
12742
  });
12485
12743
  }
12486
- declare class ConflictingStaticDirConfigError extends StorybookError {
12487
- constructor();
12744
+ declare class StorybookDevServerDisconnectedError extends StorybookError {
12745
+ data: {
12746
+ code?: number;
12747
+ reason?: string;
12748
+ };
12749
+ constructor(data?: {
12750
+ code?: number;
12751
+ reason?: string;
12752
+ });
12488
12753
  }
12489
- declare class InvalidStoriesEntryError extends StorybookError {
12490
- constructor();
12754
+ declare class SavingGlobalSettingsFileError extends StorybookError {
12755
+ data: {
12756
+ filePath: string;
12757
+ error: Error | unknown;
12758
+ };
12759
+ constructor(data: {
12760
+ filePath: string;
12761
+ error: Error | unknown;
12762
+ });
12491
12763
  }
12764
+ //#endregion
12765
+ //#region .dts-emit/code/core/src/shared/open-service/errors.d.ts
12766
+ /** Identifies which operation surface produced a validation failure. */
12767
+ type OperationKind = 'query' | 'command';
12768
+ /**
12769
+ * Describes the operation and validation phase associated with a schema failure.
12770
+ */
12771
+ type ValidationMeta = {
12772
+ kind: OperationKind;
12773
+ serviceId: ServiceId;
12774
+ name: string;
12775
+ phase: 'input' | 'output';
12776
+ issues: ReadonlyArray<StandardSchemaV1.Issue>;
12777
+ };
12778
+ //#endregion
12779
+ //#region .dts-emit/code/core/src/errors/server/open-service.d.ts
12492
12780
  declare class OpenServiceValidationError extends StorybookError {
12493
12781
  data: ValidationMeta;
12494
12782
  constructor(data: ValidationMeta);
@@ -12738,161 +13026,8 @@ declare class OpenServiceDuplicateToolNameError extends StorybookError {
12738
13026
  transport: 'mcp' | 'cli';
12739
13027
  });
12740
13028
  }
12741
- declare class CriticalPresetLoadError extends StorybookError {
12742
- data: {
12743
- error: Error;
12744
- presetName: string;
12745
- };
12746
- constructor(data: {
12747
- error: Error;
12748
- presetName: string;
12749
- });
12750
- }
12751
- declare class MissingBuilderError extends StorybookError {
12752
- constructor();
12753
- }
12754
- declare class GoogleFontsDownloadError extends StorybookError {
12755
- data: {
12756
- fontFamily: string;
12757
- url: string;
12758
- };
12759
- constructor(data: {
12760
- fontFamily: string;
12761
- url: string;
12762
- });
12763
- }
12764
- declare class GoogleFontsLoadingError extends StorybookError {
12765
- data: {
12766
- error: unknown | Error;
12767
- url: string;
12768
- };
12769
- constructor(data: {
12770
- error: unknown | Error;
12771
- url: string;
12772
- });
12773
- }
12774
- declare class NoMatchingExportError extends StorybookError {
12775
- data: {
12776
- error: unknown | Error;
12777
- };
12778
- constructor(data: {
12779
- error: unknown | Error;
12780
- });
12781
- }
12782
- declare class MainFileMissingError extends StorybookError {
12783
- data: {
12784
- location: string;
12785
- source?: 'storybook' | 'vitest';
12786
- };
12787
- constructor(data: {
12788
- location: string;
12789
- source?: 'storybook' | 'vitest';
12790
- });
12791
- }
12792
- declare class MainFileEvaluationError extends StorybookError {
12793
- data: {
12794
- location: string;
12795
- error: Error;
12796
- };
12797
- constructor(data: {
12798
- location: string;
12799
- error: Error;
12800
- });
12801
- }
12802
- declare class StatusTypeIdMismatchError extends StorybookError {
12803
- data: {
12804
- status: Status$1;
12805
- typeId: StatusTypeId;
12806
- };
12807
- constructor(data: {
12808
- status: Status$1;
12809
- typeId: StatusTypeId;
12810
- });
12811
- }
12812
- declare class NoFreePortError extends StorybookError {
12813
- data: {
12814
- requestedPort?: number;
12815
- };
12816
- constructor(data: {
12817
- requestedPort?: number;
12818
- });
12819
- }
12820
- declare class StorybookDevServerDisconnectedError extends StorybookError {
12821
- data: {
12822
- code?: number;
12823
- reason?: string;
12824
- };
12825
- constructor(data?: {
12826
- code?: number;
12827
- reason?: string;
12828
- });
12829
- }
12830
- declare class GenerateNewProjectOnInitError extends StorybookError {
12831
- data: {
12832
- error: unknown | Error;
12833
- packageManager: string;
12834
- projectType: string;
12835
- };
12836
- constructor(data: {
12837
- error: unknown | Error;
12838
- packageManager: string;
12839
- projectType: string;
12840
- });
12841
- }
12842
- type MinimumReleaseAgeHandledErrorData = {
12843
- message: string;
12844
- cause?: unknown;
12845
- } | {
12846
- packageManagerName: string;
12847
- minimumReleaseAgeConfigName: string;
12848
- minimumReleaseAgeConfigDocs: string;
12849
- minimumReleaseAgeExclusionsConfigName?: string;
12850
- minimumReleaseAgeExclusionsConfigDocs?: string;
12851
- failedPackage?: string | null;
12852
- cause?: unknown;
12853
- };
12854
- declare class MinimumReleaseAgeHandledError extends StorybookError {
12855
- data: MinimumReleaseAgeHandledErrorData;
12856
- constructor(data: MinimumReleaseAgeHandledErrorData);
12857
- }
12858
- declare class AddonVitestPostinstallPrerequisiteCheckError extends StorybookError {
12859
- data: {
12860
- reasons: string[];
12861
- };
12862
- constructor(data: {
12863
- reasons: string[];
12864
- });
12865
- }
12866
- declare class AddonVitestPostinstallWorkspaceUpdateError extends StorybookError {
12867
- data: {
12868
- filePath: string;
12869
- };
12870
- constructor(data: {
12871
- filePath: string;
12872
- });
12873
- }
12874
- declare class AddonVitestPostinstallConfigUpdateError extends StorybookError {
12875
- data: {
12876
- filePath: string;
12877
- };
12878
- constructor(data: {
12879
- filePath: string;
12880
- });
12881
- }
12882
- declare class AddonVitestPostinstallError extends StorybookError {
12883
- data: {
12884
- errors: StorybookError[];
12885
- };
12886
- constructor(data: {
12887
- errors: StorybookError[];
12888
- });
12889
- }
12890
- declare class NoStatsForViteDevError extends StorybookError {
12891
- constructor();
12892
- }
12893
- declare class ViteModuleGraphSubscriptionError extends StorybookError {
12894
- constructor();
12895
- }
13029
+ //#endregion
13030
+ //#region .dts-emit/code/core/src/errors/server/package-manager.d.ts
12896
13031
  declare class FindPackageVersionsError extends StorybookError {
12897
13032
  data: {
12898
13033
  error: Error | unknown;
@@ -12905,24 +13040,6 @@ declare class FindPackageVersionsError extends StorybookError {
12905
13040
  packageManager: string;
12906
13041
  });
12907
13042
  }
12908
- declare class IncompatiblePostCssConfigError extends StorybookError {
12909
- data: {
12910
- error: Error;
12911
- };
12912
- constructor(data: {
12913
- error: Error;
12914
- });
12915
- }
12916
- declare class SavingGlobalSettingsFileError extends StorybookError {
12917
- data: {
12918
- filePath: string;
12919
- error: Error | unknown;
12920
- };
12921
- constructor(data: {
12922
- filePath: string;
12923
- error: Error | unknown;
12924
- });
12925
- }
12926
13043
  type ExecaCommandErrorData = {
12927
13044
  command: string;
12928
13045
  args: string[];
@@ -12998,4 +13115,4 @@ declare class PlaywrightInstallFailedError extends StorybookError {
12998
13115
  });
12999
13116
  }
13000
13117
  //#endregion
13001
- export { PackageInstallDependencyConflictError as $, API_TestEntry$1 as $a, API_GroupEntry$1 as $c, Addon_TypesEnum$1 as $i, ArgsStoryFn$1 as $n, PresetProperty$1 as $o, StrictArgTypes$2 as $r, StoriesSpecifier as $s, combineArgs as $t, OpenServiceDocgenMissingComponentError as A, DocsPreparedPayload as Aa, useTestProviderStore as Ac, Addon_MakeDecoratorResult$1 as Ai, experimental_requestResponse as Al, BoundStory as An, CompatibleString$1 as Ao, SBOtherType as Ar, DocgenError as As, ComposeStoryFn$1 as At, OpenServiceMissingServiceError as B, API_FilterFunction$1 as Ba, useStatusStore as Bc, Addon_StoryFn as Bi, shortcutMatchesShortcut as Bl, PreparedStory$1 as Bn, CoreConfig$1 as Bo, StoryContext$2 as Br, BaseIndexInput as Bs, simulateDOMContentLoaded as Bt, NoFreePortError as C, API_SetRefData$1 as Ca, toMcpToolName as Cc, Addon_Elements as Ci, useSharedState as Cl, ResolvedModuleExportFromType$1 as Cn, StoryDocsProviderPreset as Co, PlayFunction as Cr, ImportParser as Cs, StatusValue$1 as Ct, OpenServiceAsyncRecipeError as D, API_UI$1 as Da, fullTestProviderStore as Dc, Addon_Loader as Di, _default as Dl, Builder_EnvsRaw as Dn, BuilderResult as Do, SBEnumType as Dr, FileChangeEvent as Ds, Feature$1 as Dt, NxProjectDetectedError as E, API_StoryMapper as Ea, Tag$4 as Ec, Addon_Loadable as Ei, useStorybookState as El, BuilderStats as En, BuilderOptions$1 as Eo, SBArrayType as Er, ChangeDetectionAdapter as Es, SupportedLanguage$1 as Et, OpenServiceInvalidStaticPathError as F, SetStoriesStoryData as Fa, TestProviderStoreEvent as Fc, Addon_RenderOptions$1 as Fi, eventMatchesShortcut as Fl, NamedOrDefaultProjectAnnotations$1 as Fn, CoreCommon_AddonInfo$1 as Fo, StepFunction as Fr, DocgenProviderDescriptor as Fs, getService as Ft, OpenServiceRemoteCommandDisconnectedError as G, API_OptionsData$1 as Ga, Event as Gc, Addon_StorySortOrder as Gi, Addon_Type$1 as Gl, WebRenderer$1 as Gn, LoadedPreset$1 as Go, StoryFn as Gr, IndexInput$1 as Gs, PreviewWithSelection as Gt, OpenServiceModuleGraphUnavailableError as H, API_HashEntry$1 as Ha, useUniversalStore as Hc, Addon_StorySortComparatorV7 as Hi, shortcutToHumanString as Hl, RenderContext as Hn, DocsOptions$1 as Ho, StoryContextForLoaders as Hr, DocsIndexEntry$1 as Hs, WebView as Ht, OpenServiceInvalidToolsetMethodIdError as I, StoryPreparedPayload as Ia, UseTestProviderStore as Ic, Addon_RequireContext as Ii, eventToShortcut as Il, NormalizedComponentAnnotations$1 as In, CoreCommon_OptionsEntry as Io, StepLabel as Ir, DocgenProviderInput as Is, registerService as It, OpenServiceTestRunTimeoutError as J, API_RefStoryRuntimeData as Ja, API as Jc, Addon_StoryWrapper$1 as Ji, ArgTypes$2 as Jn, ModuleResolveConfig as Jo, StoryKind$1 as Jr, IndexedStory as Js, Preview$1 as Jt, OpenServiceRemoteCommandUnhandledError as K, API_PreparedIndexEntry as Ka, EventInfo as Kc, Addon_StorySortParameter as Ki, addons$1 as Kl, AfterEach$1 as Kn, Manifests$1 as Ko, StoryId$2 as Kr, IndexInputStats$1 as Ks, View as Kt, OpenServiceLoadedDrainExceededError as L, API_BaseEntry as La, fullStatusStore as Lc, Addon_StoryApi as Li, isShortcutTaken as Ll, NormalizedProjectAnnotations$1 as Ln, CoreCommon_ResolvedAddonPreset$1 as Lo, StepRunner$1 as Lr, DocgenSubcomponent as Ls, pauseAnimations as Lt, OpenServiceDuplicateToolNameError as M, SetGlobalsPayload as Ma, TestProviderState as Mc, Addon_OptionsParameterV7 as Mi, KeyboardEventLike as Ml, ModuleExport$1 as Mn, ComponentSubcomponentManifest as Mo, SBType$1 as Mr, DocgenMiddleware as Ms, PartialArgsStoryFn as Mt, OpenServiceDuplicateToolsetError as N, SetStoriesPayload as Na, TestProviderStateByProviderId as Nc, Addon_PageType$1 as Ni, controlOrMetaKey as Nl, ModuleExports$1 as Nn, ComponentsManifest as No, SBUnionType as Nr, DocgenPayload$1 as Ns, Store_CSFExports$1 as Nt, OpenServiceAsyncSchemaError as O, API_ViewMode$1 as Oa, getTestProviderStoreById as Oc, Addon_LoaderFunction as Oi, isMacLike as Ol, Builder_Unpromise as On, CLIBaseOptions as Oo, SBIntersectionType as Or, ModuleResolveConfig$1 as Os, REVIEW_EVENTS as Ot, OpenServiceInternalServiceError as P, SetStoriesStory as Pa, TestProviderStoreById as Pc, Addon_PartialStoryFn as Pi, controlOrMetaSymbol as Pl, ModuleImportFn$1 as Pn, CoreCommon_AddonEntry as Po, SeparatorOptions as Pr, DocgenProvider as Ps, StoriesWithPartialProps$1 as Pt, OpenServiceValidationError as Q, API_StoryEntry$1 as Qa, API_EventMap as Qc, Addon_Types$1 as Qi, ArgsFromMeta$1 as Qn, PresetConfig$1 as Qo, StorybookTypes$1 as Qr, StoriesEntry$1 as Qs, userOrAutoTitleFromSpecifier as Qt, OpenServiceMissingChannelError as R, API_ComponentEntry as Ra, getStatusStoreByTypeId as Rc, Addon_StoryContext as Ri, keyToSymbol as Rl, NormalizedStoryAnnotations$1 as Rn, CoreCommon_ResolvedAddonVirtual$1 as Ro, StoryAnnotations$1 as Rr, DocgenWorkerModule as Rs, waitForAnimations as Rt, MissingFrameworkFieldError as S, API_RouteOptions as Sa, parseToolsetMethodId as Sc, Addon_DecoratorFunction$1 as Si, useParameter as Sl, ResolvedModuleExport as Sn, StoryDocsProviderInput as So, Path$1 as Sr, ImportEdge as Ss, StatusTypeId as St, NoStatsForViteDevError as T, API_StateMerger$1 as Ta, defineService as Tc, Addon_LoadFn as Ti, useStorybookApi as Tl, StoryRenderOptions$1 as Tn, BuilderName as To, Renderer$2 as Tr, ParseFileArgs as Ts, UseStatusStore as Tt, OpenServiceOperationNameCollisionError as U, API_IndexHash$1 as Ua, UniversalStore as Uc, Addon_StorySortMethod as Ui, Options$2 as Ul, RenderToCanvas$1 as Un, Entry as Uo, StoryContextForRender as Ur, DocsIndexInput as Us, UrlStore as Ut, OpenServiceMissingToolsetError as V, API_GroupEntry as Va, MockUniversalStore as Vc, Addon_StorySortComparator as Vi, shortcutToAriaKeyshortcuts as Vl, ProjectAnnotations$2 as Vn, CsfEnricher$1 as Vo, StoryContextForEnhancers$1 as Vr, DocsAnchor$1 as Vs, simulatePageLoad as Vt, OpenServiceRemoteCommandConfigDriftError as W, API_LeafEntry$1 as Wa, Actor as Wc, Addon_StorySortObjectParameter as Wi, AddonStore$1 as Wl, TeardownRenderToCanvas as Wn, LoadOptions$1 as Wo, StoryContextUpdate$1 as Wr, IndexEntry$1 as Ws, PreviewWeb as Wt, OpenServiceUnimplementedOperationError as X, API_RootEntry as Xa, API_ComposedRef$2 as Xc, Addon_ToolbarConfig as Xi, Args$2 as Xn, PackageJson$2 as Xo, StorybookInternalParameters as Xr, IndexerOptions as Xs, sortStoriesV7 as Xt, OpenServiceToolsetOutputMismatchError as Y, API_ReleaseNotes as Ya, API_ComponentEntry$1 as Yc, Addon_TestProviderType$1 as Yi, ArgTypesEnhancer as Yn, Options$1 as Yo, StoryName$1 as Yr, Indexer$1 as Ys, DocsContext as Yt, OpenServiceUnknownStoryIdsError as Z, API_Settings$1 as Za, API_DocsEntry$2 as Zc, Addon_Type as Zi, ArgsEnhancer as Zn, Preset as Zo, StorybookParameters as Zr, NormalizedStoriesSpecifier$1 as Zs, userOrAutoTitle as Zt, InvalidStoriesEntryError as _, API_ProviderData$1 as _a, DocsAccess as _c, Addon_ClientApiReturnFn as _i, useArgTypes as _l, makeDecorator as _n, StoryDoc as _o, LegacyStoryAnnotationsOrFn$1 as _r, TypescriptOptions$1 as _s, Status$1 as _t, Category as a, IndexEntryLegacy as aa, V3CompatIndexEntry as ac, Addon_AddStoryArgs as ai, API_StoryEntry$2 as al, filterArgTypes as an, useServiceQuery as ao, CleanupCallback$1 as ar, RendererName as as, PnpmNoTtyModulesDirError as at, MinimumReleaseAgeHandledError as b, API_Refs$1 as ba, ToolsetMethodId as bc, Addon_Comparator as bi, useGlobalTypes as bl, DocsRenderFunction$1 as bn, StoryDocsPayload as bo, Parameters$2 as br, SupportedFramework$1 as bs, StatusStoreByTypeId$1 as bt, CriticalPresetLoadError as c, API_ComposedRefUpdate$1 as ca, getToolset as cc, Addon_ArgsStoryFn as ci, Listener$2 as cl, composeStories as cn, TypedGetService as co, ComponentTitle$1 as cr, Stats as cs, StorybookDevServerDisconnectedError as ct, FindPackageVersionsError as d, API_LayoutCustomisations$1 as da, PreviewStoriesOutput as dc, Addon_BaseMeta as di, ManagerProvider as dl, setProjectAnnotations as dn, ReviewState as do, DecoratorFunction$2 as dr, StorybookConfigRaw$1 as ds, formatExecaCommand as dt, Addon_TypesMapping$1 as ea, StoryIndex$1 as ec, StrictArgs$1 as ei, API_HashEntry$2 as el, decorateStory as en, API_UnknownEntries$1 as eo, BaseAnnotations$1 as er, PresetPropertyFn as es, PackageInstallFailedError as et, GenerateNewProjectOnInitError as f, API_LoadedRefData$1 as fa, StoryIndexAccess as fc, Addon_BaseStoryFn as fi, ManagerProviderProps as fl, composeStepRunners as fn, prependImportToSnippet as fo, GlobalTypes$1 as fr, StorybookFeatures as fs, formatExecaFailureDetails as ft, InvalidFrameworkNameError as g, API_Provider$1 as ga, SourceWithUrl as gc, Addon_ClientApiAddons as gi, useAddonState as gl, normalizeStory as gn, StoryDocsService as go, LegacyAnnotatedStoryFn as gr, TestBuildFlags as gs, REVIEW_STATUS_TYPE_ID as gt, IncompatiblePostCssConfigError as h, API_PanelPositions$1 as ha, createDocsToolset as hc, Addon_ClientApiAddon as hi, typesX as hl, normalizeProjectAnnotations as hn, selectWarningForStory as ho, InputType as hr, TestBuildConfig as hs, NON_AGGREGATED_STATUS_TYPE_IDS as ht, AddonVitestPostinstallWorkspaceUpdateError as i, BaseStory as ia, StoryIndexV3$1 as ic, ViewMode$2 as ii, API_RootEntry$1 as il, PropDescriptor as in, registerService$1 as io, Canvas$1 as ir, Ref$2 as is, PnpmIgnoredBuildsError as it, OpenServiceDuplicateRegistrationError as j, GlobalsUpdatedPayload as ja, TestProviderId as jc, Addon_OptionsParameter as ji, API_KeyCollection as jl, CSFFile$1 as jn, ComponentManifest as jo, SBScalarType as jr, DocgenJsDocTags as js, ComposedStoryFn$1 as jt, OpenServiceCyclicStateError as k, FilterFunction as ka, universalTestProviderStore as kc, Addon_Loaders as ki, RequestResponseError as kl, Builder_WithRequiredProperty as kn, CLIOptions$1 as ko, SBObjectType as kr, DocgenService as ks, REVIEW_NAMESPACE as kt, ExecaCommandErrorData as l, API_IframeRenderer$1 as la, registerToolset as lc, Addon_BaseAnnotations as li, ManagerConsumer as ll, composeStory as ln, ModuleGraphServiceState as lo, Conditional$1 as lr, StorybookConfig$1 as ls, ViteModuleGraphSubscriptionError as lt, GoogleFontsLoadingError as m, API_Notification$1 as ma, reviewToolset as mc, Addon_BaseType$1 as mi, combineParameters$1 as ml, normalizeArrays as mn, selectStoryDoc as mo, IncludeExcludeOptions as mr, TagsOptions$1 as ms, CHANGE_DETECTION_STATUS_TYPE_ID as mt, AddonVitestPostinstallError as n, Addon_WrapperType$1 as na, StoryIndexInput as nc, Tag$2 as ni, API_LeafEntry$2 as nl, sanitizeStoryContextUpdate as nn, API_Versions$2 as no, BeforeAll as nr, Presets$1 as ns, PackageManagerBinaryNotFoundError as nt, ConflictingStaticDirConfigError as o, API_ActiveTabsType as oa, clearToolsetRegistry as oc, Addon_Annotations as oi, ActiveTabs as ol, combineParameters as on, useServiceCommand as oo, ComponentAnnotations$1 as or, SecurityConfig as os, SavingGlobalSettingsFileError as ot, GoogleFontsDownloadError as p, API_MatchOptions as pa, createStoriesToolset as pc, Addon_BaseStoryObject as pi, State as pl, composeConfigs as pn, selectSnippetForStory as po, Globals$2 as pr, TagOptions as ps, StorybookError as pt, OpenServiceServicesAppliedTwiceError as q, API_PreparedStoryIndex$1 as qa, StoreOptions as qc, Addon_StorySortParameterV7$1 as qi, AnnotatedStoryFn$1 as qn, Middleware as qo, StoryIdentifier as qr, IndexedCSFFile$1 as qs, SelectionStore as qt, AddonVitestPostinstallPrerequisiteCheckError as r, Addons_ArgTypes as ra, StoryIndexV2$1 as rc, TestFunction$1 as ri, API_Refs$2 as rl, inferControls as rn, getService$1 as ro, BeforeEach as rr, PreviewAnnotation as rs, PlaywrightInstallFailedError as rt, CouldNotEvaluateFrameworkError as s, API_ComposedRef$1 as sa, getRegisteredToolsets as sc, Addon_ArgType as si, Combo as sl, getCsfFactoryAnnotations as sn, ServerCoreServices as so, ComponentId as sr, ServerApp as ss, StatusTypeIdMismatchError as st, AddonVitestPostinstallConfigUpdateError as t, Addon_WrapperSettings as ta, StoryIndexEntry$1 as tc, StrictInputType as ti, API_IndexHash$2 as tl, defaultDecorateStory as tn, API_Version$1 as to, BaseProjectAnnotations as tr, PresetValue as ts, PackageInstallMissingManifestError as tt, ExecaCommandFailedError as u, API_Layout$1 as ua, KnownToolsets as uc, Addon_BaseDecorators as ui, ManagerContext as ul, setDefaultProjectAnnotations as un, ReviewCollection as uo, DecoratorApplicator$1 as ur, StorybookConfigOptions as us, describeUnknownStoryIds as ut, MainFileEvaluationError as v, API_RefId as va, ResolvedDocsEntry as vc, Addon_ClientStoryApi as vi, useArgs as vl, addons as vn, StoryDocsById as vo, LegacyStoryFn$1 as vr, VersionCheck as vs, StatusByTypeId$1 as vt, NoMatchingExportError as w, API_SidebarOptions$1 as wa, seedQueryState as wc, Addon_LegacyStoryFn as wi, useStoryPrepared as wl, ResolvedModuleExportType$1 as wn, Builder$1 as wo, PlayFunctionContext as wr, ImportParserContext as ws, StatusesByStoryIdAndTypeId$1 as wt, MissingBuilderError as x, API_RenderOptions as xa, getToolName as xc, Addon_Config$1 as xi, useGlobals as xl, RenderContextCallbacks$1 as xn, StoryDocsProvider as xo, PartialStoryFn$1 as xr, SupportedBuilder$1 as xs, StatusStoreEvent as xt, MainFileMissingError as y, API_RefUrl as ya, emptyManifests as yc, Addon_Collection$1 as yi, useChannel as yl, DocsContextProps$2 as yn, StoryDocsError as yo, LoaderFunction$1 as yr, SupportedRenderer$1 as ys, StatusStore as yt, OpenServiceMissingOriginError as z, API_DocsEntry$1 as za, universalStatusStore as zc, Addon_StoryContextUpdate as zi, optionOrAltSymbol as zl, PreparedMeta$1 as zn, CoreCommon_StorybookInfo$1 as zo, StoryAnnotationsOrFn$1 as zr, BaseIndexEntry as zs, emitTransformCode as zt };
13118
+ export { StatusValue$1 as $, ModuleResolveConfig as $a, _default as $c, FilterFunction as $i, PlayFunction as $n, ModuleResolveConfig$1 as $o, Addon_LoaderFunction as $r, fullTestProviderStore as $s, ResolvedModuleExportFromType$1 as $t, OpenServiceRemoteCommandConfigDriftError as A, BuilderOptions$1 as Aa, API_RootEntry$1 as Ac, API_ActiveTabsType as Ai, MainFileMissingError as Al, BaseAnnotations$1 as An, API_IndexHash$1 as Ao, StrictArgs$1 as Ar, StoryIndexV3$1 as As, decorateStory as At, NoFreePortError as B, CoreCommon_OptionsEntry as Ba, combineParameters$1 as Bc, API_Provider$1 as Bi, MinimumReleaseAgeHandledError as Bl, DecoratorApplicator$1 as Bn, API_TestEntry$1 as Bo, Addon_BaseMeta as Br, reviewToolset as Bs, setDefaultProjectAnnotations as Bt, OpenServiceLoadedDrainExceededError as C, StoryDocsError as Ca, API_DocsEntry$2 as Cc, Addon_TypesEnum$1 as Ci, ViteModuleGraphSubscriptionError as Cl, AnnotatedStoryFn$1 as Cn, VersionCheck as Co, StoryIdentifier as Cr, StoriesEntry$1 as Cs, SelectionStore as Ct, OpenServiceMissingToolsetError as D, StoryDocsProviderPreset as Da, API_IndexHash$2 as Dc, Addons_ArgTypes as Di, InvalidFrameworkNameError as Dl, ArgsEnhancer as Dn, API_FilterFunction$1 as Do, StorybookParameters as Dr, StoryIndexFileError as Ds, userOrAutoTitle as Dt, OpenServiceMissingServiceError as E, StoryDocsProviderInput as Ea, API_HashEntry$2 as Ec, Addon_WrapperType$1 as Ei, CriticalPresetLoadError as El, Args$2 as En, API_DocsEntry$1 as Eo, StorybookInternalParameters as Er, StoryIndexEntry$1 as Es, sortStoriesV7 as Et, OpenServiceToolsetOutputMismatchError as F, ComponentManifest as Fa, ManagerConsumer as Fc, API_LayoutCustomisations$1 as Fi, AddonVitestPostinstallConfigUpdateError as Fl, CleanupCallback$1 as Fn, API_RefStoryRuntimeData as Fo, Addon_Annotations as Fr, registerToolset as Fs, filterArgTypes as Ft, NON_AGGREGATED_STATUS_TYPE_IDS as G, CsfEnricher$1 as Ga, useChannel as Gc, API_RenderOptions as Gi, InputType as Gn, SupportedFramework$1 as Go, Addon_Comparator as Gr, emptyManifests as Gs, normalizeProjectAnnotations as Gt, StatusTypeIdMismatchError as H, CoreCommon_ResolvedAddonVirtual$1 as Ha, useAddonState as Hc, API_RefId as Hi, StorybookError as Hl, GlobalTypes$1 as Hn, API_Version$1 as Ho, Addon_BaseStoryObject as Hr, SourceWithUrl as Hs, composeStepRunners as Ht, OpenServiceUnimplementedOperationError as I, ComponentSubcomponentManifest as Ia, ManagerContext as Ic, API_LoadedRefData$1 as Ii, AddonVitestPostinstallError as Il, ComponentAnnotations$1 as In, API_ReleaseNotes as Io, Addon_ArgType as Ir, KnownToolsets as Is, combineParameters as It, StatusByTypeId$1 as J, ForkbookConfig$1 as Ja, useParameter as Jc, API_SidebarOptions$1 as Ji, LegacyStoryFn$1 as Jn, ImportParser as Jo, Addon_Elements as Jr, parseToolsetMethodId as Js, addons as Jt, REVIEW_STATUS_TYPE_ID as K, DocsOptions$1 as Ka, useGlobalTypes as Kc, API_RouteOptions as Ki, LegacyAnnotatedStoryFn as Kn, SupportedBuilder$1 as Ko, Addon_Config$1 as Kr, ToolsetMethodId as Ks, normalizeStory as Kt, OpenServiceUnknownStoryIdsError as L, ComponentsManifest as La, ManagerProvider as Lc, API_MatchOptions as Li, AddonVitestPostinstallPrerequisiteCheckError as Ll, ComponentId as Ln, API_RootEntry as Lo, Addon_ArgsStoryFn as Lr, PreviewStoriesOutput as Ls, getCsfFactoryAnnotations as Lt, OpenServiceRemoteCommandUnhandledError as M, CLIBaseOptions as Ma, ActiveTabs as Mc, API_ComposedRefUpdate$1 as Mi, MissingFrameworkFieldError as Ml, BeforeAll as Mn, API_OptionsData$1 as Mo, Tag$2 as Mr, clearToolsetRegistry as Ms, sanitizeStoryContextUpdate as Mt, OpenServiceServicesAppliedTwiceError as N, CLIOptions$1 as Na, Combo as Nc, API_IframeRenderer$1 as Ni, NoMatchingExportError as Nl, BeforeEach as Nn, API_PreparedIndexEntry as No, TestFunction$1 as Nr, getRegisteredToolsets as Ns, inferControls as Nt, OpenServiceModuleGraphUnavailableError as O, Builder$1 as Oa, API_LeafEntry$2 as Oc, BaseStory as Oi, InvalidStoriesEntryError as Ol, ArgsFromMeta$1 as On, API_GroupEntry as Oo, StorybookTypes$1 as Or, StoryIndexInput as Os, userOrAutoTitleFromSpecifier as Ot, OpenServiceTestRunTimeoutError as P, CompatibleString$1 as Pa, Listener$2 as Pc, API_Layout$1 as Pi, NxProjectDetectedError as Pl, Canvas$1 as Pn, API_PreparedStoryIndex$1 as Po, ViewMode$2 as Pr, getToolset as Ps, PropDescriptor as Pt, StatusTypeId as Q, Middleware$1 as Qa, useStorybookState as Qc, API_ViewMode$1 as Qi, Path$1 as Qn, FileChangeEvent as Qo, Addon_Loader as Qr, Tag$4 as Qs, ResolvedModuleExport as Qt, OpenServiceValidationError as R, CoreCommon_AddonEntry as Ra, ManagerProviderProps as Rc, API_Notification$1 as Ri, AddonVitestPostinstallWorkspaceUpdateError as Rl, ComponentTitle$1 as Rn, API_Settings$1 as Ro, Addon_BaseAnnotations as Rr, StoryIndexAccess as Rs, composeStories as Rt, OpenServiceInvalidToolsetMethodIdError as S, StoryDocsById as Sa, API_ComposedRef$2 as Sc, Addon_Types$1 as Si, NoStatsForViteDevError as Sl, AfterEach$1 as Sn, TypescriptOptions as So, StoryId$2 as Sr, NormalizedStoriesSpecifier$1 as Ss, View as St, OpenServiceMissingOriginError as T, StoryDocsProvider as Ta, API_GroupEntry$1 as Tc, Addon_WrapperSettings as Ti, CouldNotEvaluateFrameworkError as Tl, ArgTypesEnhancer as Tn, API_ComponentEntry as To, StoryName$1 as Tr, StoryIndex$1 as Ts, DocsContext as Tt, StorybookDevServerDisconnectedError as U, CoreCommon_StorybookInfo$1 as Ua, useArgTypes as Uc, API_RefUrl as Ui, Globals$2 as Un, API_Versions$2 as Uo, Addon_BaseType$1 as Ur, DocsAccess as Us, composeConfigs as Ut, SavingGlobalSettingsFileError as V, CoreCommon_ResolvedAddonPreset$1 as Va, typesX as Vc, API_ProviderData$1 as Vi, Category as Vl, DecoratorFunction$2 as Vn, API_UnknownEntries$1 as Vo, Addon_BaseStoryFn as Vr, createDocsToolset as Vs, setProjectAnnotations as Vt, CHANGE_DETECTION_STATUS_TYPE_ID as W, CoreConfig$1 as Wa, useArgs as Wc, API_Refs$1 as Wi, IncludeExcludeOptions as Wn, SupportedRenderer$1 as Wo, Addon_Collection$1 as Wr, ResolvedDocsEntry as Ws, normalizeArrays as Wt, StatusStoreByTypeId$1 as X, LoadedPreset$1 as Xa, useStoryPrepared as Xc, API_StoryMapper as Xi, Parameters$2 as Xn, ParseFileArgs as Xo, Addon_LoadFn as Xr, seedQueryState as Xs, DocsRenderFunction$1 as Xt, StatusStore as Y, LoadOptions$1 as Ya, useSharedState as Yc, API_StateMerger$1 as Yi, LoaderFunction$1 as Yn, ImportParserContext as Yo, Addon_LegacyStoryFn as Yr, toMcpToolName as Ys, DocsContextProps$2 as Yt, StatusStoreEvent as Z, Manifests$1 as Za, useStorybookApi as Zc, API_UI$1 as Zi, PartialStoryFn$1 as Zn, ChangeDetectionAdapter as Zo, Addon_Loadable as Zr, defineService as Zs, RenderContextCallbacks$1 as Zt, OpenServiceDuplicateRegistrationError as _, selectSnippetForStory as _a, Event as _c, Addon_StorySortParameterV7$1 as _i, Addon_Type$1 as _l, ProjectAnnotations$2 as _n, StorybookFeatures as _o, StoryContextForEnhancers$1 as _r, IndexInputStats$1 as _s, simulatePageLoad as _t, PackageInstallFailedError as a, SetStoriesStoryData as aa, TestProviderStateByProviderId as ac, Addon_PartialStoryFn as ai, controlOrMetaKey as al, Builder_WithRequiredProperty as an, PresetPropertyFn as ao, SBObjectType as ar, DocgenProvider as as, REVIEW_NAMESPACE as at, OpenServiceInternalServiceError as b, StoryDocsService as ba, API as bc, Addon_ToolbarConfig as bi, GoogleFontsLoadingError as bl, TeardownRenderToCanvas as bn, TestBuildConfig as bo, StoryContextUpdate$1 as br, Indexer$1 as bs, PreviewWeb as bt, PlaywrightInstallFailedError as c, registerService$1 as ca, UseTestProviderStore as cc, Addon_StoryContext as ci, eventToShortcut as cl, ModuleExport$1 as cn, PreviewAnnotation as co, SBType$1 as cr, DocgenSubcomponent as cs, PartialArgsStoryFn as ct, formatExecaCommand as d, ServerCoreServices as da, universalStatusStore as dc, Addon_StorySortComparator as di, optionOrAltSymbol as dl, NamedOrDefaultProjectAnnotations$1 as dn, RootPageOptions as do, StepFunction as dr, BaseIndexInput as ds, getService as dt, DocsPreparedPayload as ea, getTestProviderStoreById as ec, Addon_Loaders as ei, isMacLike as el, ResolvedModuleExportType$1 as en, Options$1 as eo, PlayFunctionContext as er, DocgenService as es, StatusesByStoryIdAndTypeId$1 as et, formatExecaFailureDetails as f, TypedGetService as fa, useStatusStore as fc, Addon_StorySortComparatorV7 as fi, shortcutMatchesShortcut as fl, NormalizedComponentAnnotations$1 as fn, SecurityConfig as fo, StepLabel as fr, DocsAnchor$1 as fs, registerService as ft, OpenServiceDocgenMissingComponentError as g, prependImportToSnippet as ga, Actor as gc, Addon_StorySortParameter as gi, AddonStore$1 as gl, PreparedStory$1 as gn, StorybookConfigRaw$1 as go, StoryContext$2 as gr, IndexInput$1 as gs, simulateDOMContentLoaded as gt, OpenServiceCyclicStateError as h, ReviewState as ha, UniversalStore as hc, Addon_StorySortOrder as hi, Options$2 as hl, PreparedMeta$1 as hn, StorybookConfigOptions as ho, StoryAnnotationsOrFn$1 as hr, IndexEntry$1 as hs, emitTransformCode as ht, PackageInstallDependencyConflictError as i, SetStoriesStory as ia, TestProviderState as ic, Addon_PageType$1 as ii, KeyboardEventLike as il, Builder_Unpromise as in, PresetProperty$1 as io, SBIntersectionType as ir, DocgenPayload$1 as is, REVIEW_EVENTS as it, OpenServiceRemoteCommandDisconnectedError as j, BuilderResult as ja, API_StoryEntry$2 as jc, API_ComposedRef$1 as ji, MissingBuilderError as jl, BaseProjectAnnotations as jn, API_LeafEntry$1 as jo, StrictInputType as jr, V3CompatIndexEntry as js, defaultDecorateStory as jt, OpenServiceOperationNameCollisionError as k, BuilderName as ka, API_Refs$2 as kc, IndexEntryLegacy as ki, MainFileEvaluationError as kl, ArgsStoryFn$1 as kn, API_HashEntry$1 as ko, StrictArgTypes$2 as kr, StoryIndexV2$1 as ks, combineArgs as kt, PnpmIgnoredBuildsError as l, useServiceQuery as la, fullStatusStore as lc, Addon_StoryContextUpdate as li, isShortcutTaken as ll, ModuleExports$1 as ln, Ref$2 as lo, SBUnionType as lr, DocgenWorkerModule as ls, Store_CSFExports$1 as lt, OpenServiceAsyncSchemaError as m, ReviewCollection as ma, useUniversalStore as mc, Addon_StorySortObjectParameter as mi, shortcutToHumanString as ml, NormalizedStoryAnnotations$1 as mn, Stats as mo, StoryAnnotations$1 as mr, DocsIndexInput as ms, waitForAnimations as mt, ExecaCommandFailedError as n, SetGlobalsPayload as na, useTestProviderStore as nc, Addon_OptionsParameter as ni, experimental_requestResponse as nl, BuilderStats as nn, Preset as no, SBArrayType as nr, DocgenJsDocTags as ns, SupportedLanguage$1 as nt, PackageInstallMissingManifestError as o, StoryPreparedPayload as oa, TestProviderStoreById as oc, Addon_RenderOptions$1 as oi, controlOrMetaSymbol as ol, BoundStory as on, PresetValue as oo, SBOtherType as or, DocgenProviderDescriptor as os, ComposeStoryFn$1 as ot, OpenServiceAsyncRecipeError as p, ModuleGraphServiceState as pa, MockUniversalStore as pc, Addon_StorySortMethod as pi, shortcutToAriaKeyshortcuts as pl, NormalizedProjectAnnotations$1 as pn, ServerApp as po, StepRunner$1 as pr, DocsIndexEntry$1 as ps, pauseAnimations as pt, Status$1 as q, Entry as qa, useGlobals as qc, API_SetRefData$1 as qi, LegacyStoryAnnotationsOrFn$1 as qn, ImportEdge as qo, Addon_DecoratorFunction$1 as qr, getToolName as qs, makeDecorator as qt, FindPackageVersionsError as r, SetStoriesPayload as ra, TestProviderId as rc, Addon_OptionsParameterV7 as ri, API_KeyCollection as rl, Builder_EnvsRaw as rn, PresetConfig$1 as ro, SBEnumType as rr, DocgenMiddleware as rs, Feature$1 as rt, PackageManagerBinaryNotFoundError as s, getService$1 as sa, TestProviderStoreEvent as sc, Addon_RequireContext as si, eventMatchesShortcut as sl, CSFFile$1 as sn, Presets$1 as so, SBScalarType as sr, DocgenProviderInput as ss, ComposedStoryFn$1 as st, ExecaCommandErrorData as t, GlobalsUpdatedPayload as ta, universalTestProviderStore as tc, Addon_MakeDecoratorResult$1 as ti, RequestResponseError as tl, StoryRenderOptions$1 as tn, PackageJson$2 as to, Renderer$2 as tr, DocgenError as ts, UseStatusStore as tt, PnpmNoTtyModulesDirError as u, useServiceCommand as ua, getStatusStoreByTypeId as uc, Addon_StoryFn as ui, keyToSymbol as ul, ModuleImportFn$1 as un, RendererName as uo, SeparatorOptions as ur, BaseIndexEntry as us, StoriesWithPartialProps$1 as ut, OpenServiceDuplicateToolNameError as v, selectStoryDoc as va, EventInfo as vc, Addon_StoryWrapper$1 as vi, addons$1 as vl, RenderContext as vn, TagOptions as vo, StoryContextForLoaders as vr, IndexedCSFFile$1 as vs, WebView as vt, OpenServiceMissingChannelError as w, StoryDocsPayload as wa, API_EventMap as wc, Addon_TypesMapping$1 as wi, ConflictingStaticDirConfigError as wl, ArgTypes$2 as wn, API_BaseEntry as wo, StoryKind$1 as wr, StoriesSpecifier as ws, Preview$1 as wt, OpenServiceInvalidStaticPathError as x, StoryDoc as xa, API_ComponentEntry$1 as xc, Addon_Type as xi, IncompatiblePostCssConfigError as xl, WebRenderer$1 as xn, TestBuildFlags as xo, StoryFn as xr, IndexerOptions as xs, PreviewWithSelection as xt, OpenServiceDuplicateToolsetError as y, selectWarningForStory as ya, StoreOptions as yc, Addon_TestProviderType$1 as yi, GoogleFontsDownloadError as yl, RenderToCanvas$1 as yn, TagsOptions$1 as yo, StoryContextForRender as yr, IndexedStory as ys, UrlStore as yt, describeUnknownStoryIds as z, CoreCommon_AddonInfo$1 as za, State as zc, API_PanelPositions$1 as zi, GenerateNewProjectOnInitError as zl, Conditional$1 as zn, API_StoryEntry$1 as zo, Addon_BaseDecorators as zr, createStoriesToolset as zs, composeStory as zt };