@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,21 +1,21 @@
1
- import CJS_COMPAT_NODE_URL_ro17f80mg6k from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ro17f80mg6k from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ro17f80mg6k from "node:module";
1
+ import CJS_COMPAT_NODE_URL_darlhdhnaq7 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_darlhdhnaq7 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_darlhdhnaq7 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_ro17f80mg6k.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ro17f80mg6k.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ro17f80mg6k.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_darlhdhnaq7.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_darlhdhnaq7.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_darlhdhnaq7.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  require_dist
14
- } from "./chunk-JGGFYIG5.js";
14
+ } from "./chunk-LCNF6BLP.js";
15
15
  import {
16
16
  cache,
17
17
  up as up3
18
- } from "./chunk-UVINFLGY.js";
18
+ } from "./chunk-6NLQCV6A.js";
19
19
  import {
20
20
  FORKBOOK_PACKAGE_PATTERNS,
21
21
  FORKBOOK_RERUN_INSTRUCTION,
@@ -39,9 +39,8 @@ import {
39
39
  parsePositiveIntegerConfigValue,
40
40
  parseReleaseTime,
41
41
  validateConfigurationFiles,
42
- versions_default,
43
- withForkbookFramework
44
- } from "./chunk-GRBLDJCR.js";
42
+ versions_default
43
+ } from "./chunk-QQNRWEHL.js";
45
44
  import {
46
45
  createModuleResolver,
47
46
  isSelfContained,
@@ -49,20 +48,17 @@ import {
49
48
  resolveReferencedValue,
50
49
  sourceOf,
51
50
  unwrapExpression
52
- } from "./chunk-YZFWBA5L.js";
53
- import {
54
- stripJsonComments
55
- } from "./chunk-SIEXZVCR.js";
51
+ } from "./chunk-2VJHCGAK.js";
56
52
  import {
57
53
  logger
58
- } from "./chunk-6LMWA44H.js";
54
+ } from "./chunk-AVHJZUTH.js";
59
55
  import {
60
56
  STORY_FILE_TEST_REGEXP,
61
- execa,
62
- execaCommandSync,
63
- execaNode,
57
+ exec,
58
+ execNode,
59
+ execSync,
64
60
  getStoryImportPathFromEntry
65
- } from "./chunk-MK2KYAI6.js";
61
+ } from "./chunk-LAJIVWUF.js";
66
62
  import {
67
63
  BUN_LOCKFILE,
68
64
  BUN_LOCKFILE_BINARY,
@@ -70,25 +66,24 @@ import {
70
66
  PNPM_LOCKFILE,
71
67
  YARN_LOCKFILE,
72
68
  getProjectRoot,
73
- normalizeStoryPath,
74
- require_picomatch
75
- } from "./chunk-SLWQNBGO.js";
69
+ normalizeStoryPath
70
+ } from "./chunk-DQEUNKLX.js";
76
71
  import {
77
72
  any,
78
73
  from,
79
74
  up,
80
75
  up2
81
- } from "./chunk-JDXXX6LB.js";
76
+ } from "./chunk-SPAHK37C.js";
82
77
  import {
83
78
  importModule,
84
79
  resolveModulePath,
85
80
  resolvePackageDir,
86
81
  safeResolveModule
87
- } from "./chunk-F3ZFKBHY.js";
82
+ } from "./chunk-ZN6YOIB2.js";
88
83
  import {
89
84
  jsModuleExtensions,
90
85
  jsTsSourceExtensions
91
- } from "./chunk-TNJIXE37.js";
86
+ } from "./chunk-F762PHMI.js";
92
87
  import {
93
88
  ExecaCommandFailedError,
94
89
  PackageInstallDependencyConflictError,
@@ -99,19 +94,22 @@ import {
99
94
  PnpmIgnoredBuildsError,
100
95
  PnpmNoTtyModulesDirError,
101
96
  StorybookError
102
- } from "./chunk-U5W53R2J.js";
97
+ } from "./chunk-2CNN3CRI.js";
103
98
  import {
104
99
  require_picocolors
105
- } from "./chunk-2BUPBPFB.js";
100
+ } from "./chunk-IENHXJVB.js";
106
101
  import {
107
102
  slash
108
- } from "./chunk-DC7DKR5K.js";
103
+ } from "./chunk-AGLGQNTY.js";
109
104
  import {
110
105
  globSync
111
- } from "./chunk-ZMAMXQKP.js";
106
+ } from "./chunk-GFEH7IBP.js";
107
+ import {
108
+ require_picomatch
109
+ } from "./chunk-L52VGA36.js";
112
110
  import {
113
111
  __toESM
114
- } from "./chunk-CXRU72ET.js";
112
+ } from "./chunk-X2GGQZIN.js";
115
113
 
116
114
  // src/common/presets.ts
117
115
  import { logger as logger2 } from "@aussieljk/forkbook/internal/node-logger";
@@ -135,6 +133,7 @@ var isObject = (val) => val != null && typeof val == "object" && Array.isArray(v
135
133
  function resolvePresetFunction(input, presetOptions, storybookOptions) {
136
134
  return isFunction(input) ? [...input({ ...storybookOptions, ...presetOptions })] : Array.isArray(input) ? [...input] : [];
137
135
  }
136
+ var presetNameOf = (preset) => typeof preset == "string" ? preset : preset.name;
138
137
  function readAddonManifest(dir) {
139
138
  try {
140
139
  let { name, exports } = JSON.parse(readFileSync(join(dir, "package.json"), "utf8"));
@@ -174,12 +173,12 @@ var resolveAddonName = (configDir, name, options) => {
174
173
  name: resolved
175
174
  };
176
175
  }, map = ({ configDir }) => (item) => {
177
- let options = isObject(item) && item.options || void 0, name = isObject(item) ? item.name : item, resolved;
176
+ let options = typeof item == "string" ? void 0 : item.options || void 0, name = presetNameOf(item), resolved;
178
177
  try {
179
178
  resolved = resolveAddonName(configDir, name, options);
180
179
  } catch {
181
180
  logger2.error(
182
- `Addon value should end in /manager or /preview or /register OR it should be a valid preset https://storybook.js.org/docs/addons/writing-presets/
181
+ `Addon value should end in /manager or /preview or /register OR it should be a valid preset https://forkbook.ljk.dev/docs/addons/writing-presets
183
182
  ${item}`
184
183
  );
185
184
  return;
@@ -201,27 +200,23 @@ ${item}`
201
200
  };
202
201
  };
203
202
  async function getContent(input, configDir) {
204
- if (input.type === "virtual") {
203
+ if (typeof input == "object" && "type" in input && input.type === "virtual") {
205
204
  let { type, name: name2, ...rest } = input;
206
205
  return rest;
207
206
  }
208
- let name = input.name ? input.name : input;
207
+ let name = presetNameOf(input);
209
208
  return importModule(safeResolveModule({ specifier: name, parent: configDir }) ?? name);
210
209
  }
211
210
  async function loadPreset(input, level, storybookOptions) {
212
- let presetName = input.name ? input.name : input;
211
+ let presetName = presetNameOf(input);
213
212
  try {
214
- let presetOptions = input.options ? input.options : {}, contents = await getContent(input, storybookOptions.configDir);
213
+ let presetOptions = (typeof input == "string" ? void 0 : input.options) ?? {}, contents = await getContent(input, storybookOptions.configDir);
215
214
  if (typeof contents == "function" && (contents = contents(storybookOptions, presetOptions)), Array.isArray(contents))
216
215
  return await loadPresets(contents, level + 1, storybookOptions);
217
216
  if (isObject(contents)) {
218
- let {
219
- addons: addonsInput = [],
220
- presets: presetsInput = [],
221
- ...rest
222
- } = withForkbookFramework(contents), filter = (i) => !0;
217
+ let { addons: addonsInput = [], presets: presetsInput = [], ...rest } = contents, filter = (i) => !0;
223
218
  storybookOptions.isCritical !== !0 && (storybookOptions.build?.test?.disabledAddons?.length || 0) > 0 && (filter = (i) => {
224
- let name = i.name ? i.name : i;
219
+ let name = presetNameOf(i);
225
220
  return !storybookOptions.build?.test?.disabledAddons?.find((n) => name.includes(n));
226
221
  });
227
222
  let subPresets = resolvePresetFunction(
@@ -291,9 +286,7 @@ function applyPresets(presets, extension, config, args, storybookOptions) {
291
286
  }
292
287
  async function getPresets(presets, storybookOptions) {
293
288
  let loadedPresets = await loadPresets(presets, 0, storybookOptions);
294
- return {
295
- apply: async (extension, config, args = {}) => applyPresets(loadedPresets, extension, config, args, storybookOptions)
296
- };
289
+ return { apply: async (extension, config, args = {}) => applyPresets(loadedPresets, extension, config, args, storybookOptions) };
297
290
  }
298
291
  async function loadAllPresets(options) {
299
292
  let { corePresets = [], overridePresets = [], ...restOptions } = options;
@@ -424,85 +417,17 @@ function resolvePathInStorybookCache(fileOrDirectoryName, sub = "default") {
424
417
  // src/common/utils/cache.ts
425
418
  var cache2 = createFileSystemCache({
426
419
  basePath: resolvePathInStorybookCache("dev-server"),
427
- ns: "storybook"
428
- // Optional. A grouping namespace for items.
420
+ ns: "forkbook"
421
+ // A grouping namespace for items.
429
422
  });
430
423
 
431
424
  // src/common/utils/cli.ts
432
425
  import { createWriteStream, mkdirSync as mkdirSync2 } from "node:fs";
433
426
  import { copyFile, readFile as readFile2, realpath, rm as rm2, writeFile as writeFile2 } from "node:fs/promises";
434
427
  import os from "node:os";
428
+ import { randomUUID } from "node:crypto";
435
429
  import { join as join4 } from "node:path";
436
430
 
437
- // ../../node_modules/crypto-random-string/index.js
438
- import { promisify } from "util";
439
- import crypto from "crypto";
440
- var randomBytesAsync = promisify(crypto.randomBytes), urlSafeCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~".split(""), numericCharacters = "0123456789".split(""), distinguishableCharacters = "CDEHKMPRTUWXY012458".split(""), asciiPrintableCharacters = "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~".split(""), alphanumericCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""), generateForCustomCharacters = (length, characters) => {
441
- let characterCount = characters.length, maxValidSelector = Math.floor(65536 / characterCount) * characterCount - 1, entropyLength = 2 * Math.ceil(1.1 * length), string = "", stringLength = 0;
442
- for (; stringLength < length; ) {
443
- let entropy = crypto.randomBytes(entropyLength), entropyPosition = 0;
444
- for (; entropyPosition < entropyLength && stringLength < length; ) {
445
- let entropyValue = entropy.readUInt16LE(entropyPosition);
446
- entropyPosition += 2, !(entropyValue > maxValidSelector) && (string += characters[entropyValue % characterCount], stringLength++);
447
- }
448
- }
449
- return string;
450
- }, generateForCustomCharactersAsync = async (length, characters) => {
451
- let characterCount = characters.length, maxValidSelector = Math.floor(65536 / characterCount) * characterCount - 1, entropyLength = 2 * Math.ceil(1.1 * length), string = "", stringLength = 0;
452
- for (; stringLength < length; ) {
453
- let entropy = await randomBytesAsync(entropyLength), entropyPosition = 0;
454
- for (; entropyPosition < entropyLength && stringLength < length; ) {
455
- let entropyValue = entropy.readUInt16LE(entropyPosition);
456
- entropyPosition += 2, !(entropyValue > maxValidSelector) && (string += characters[entropyValue % characterCount], stringLength++);
457
- }
458
- }
459
- return string;
460
- }, generateRandomBytes = (byteLength, type, length) => crypto.randomBytes(byteLength).toString(type).slice(0, length), generateRandomBytesAsync = async (byteLength, type, length) => (await randomBytesAsync(byteLength)).toString(type).slice(0, length), allowedTypes = /* @__PURE__ */ new Set([
461
- void 0,
462
- "hex",
463
- "base64",
464
- "url-safe",
465
- "numeric",
466
- "distinguishable",
467
- "ascii-printable",
468
- "alphanumeric"
469
- ]), createGenerator = (generateForCustomCharacters2, generateRandomBytes2) => ({ length, type, characters }) => {
470
- if (!(length >= 0 && Number.isFinite(length)))
471
- throw new TypeError("Expected a `length` to be a non-negative finite number");
472
- if (type !== void 0 && characters !== void 0)
473
- throw new TypeError("Expected either `type` or `characters`");
474
- if (characters !== void 0 && typeof characters != "string")
475
- throw new TypeError("Expected `characters` to be string");
476
- if (!allowedTypes.has(type))
477
- throw new TypeError(`Unknown type: ${type}`);
478
- if (type === void 0 && characters === void 0 && (type = "hex"), type === "hex" || type === void 0 && characters === void 0)
479
- return generateRandomBytes2(Math.ceil(length * 0.5), "hex", length);
480
- if (type === "base64")
481
- return generateRandomBytes2(Math.ceil(length * 0.75), "base64", length);
482
- if (type === "url-safe")
483
- return generateForCustomCharacters2(length, urlSafeCharacters);
484
- if (type === "numeric")
485
- return generateForCustomCharacters2(length, numericCharacters);
486
- if (type === "distinguishable")
487
- return generateForCustomCharacters2(length, distinguishableCharacters);
488
- if (type === "ascii-printable")
489
- return generateForCustomCharacters2(length, asciiPrintableCharacters);
490
- if (type === "alphanumeric")
491
- return generateForCustomCharacters2(length, alphanumericCharacters);
492
- if (characters.length === 0)
493
- throw new TypeError("Expected `characters` string length to be greater than or equal to 1");
494
- if (characters.length > 65536)
495
- throw new TypeError("Expected `characters` string length to be less or equal to 65536");
496
- return generateForCustomCharacters2(length, characters.split(""));
497
- }, cryptoRandomString = createGenerator(generateForCustomCharacters, generateRandomBytes);
498
- cryptoRandomString.async = createGenerator(generateForCustomCharactersAsync, generateRandomBytesAsync);
499
- var crypto_random_string_default = cryptoRandomString;
500
-
501
- // ../../node_modules/unique-string/index.js
502
- function uniqueString() {
503
- return crypto_random_string_default({ length: 32 });
504
- }
505
-
506
431
  // src/common/satellite-addons.ts
507
432
  var satellite_addons_default = [
508
433
  "@storybook/addon-coverage",
@@ -515,7 +440,7 @@ var satellite_addons_default = [
515
440
  ];
516
441
 
517
442
  // src/common/utils/cli.ts
518
- var tempDir = () => realpath(os.tmpdir()), getPath = async (prefix = "") => join4(await tempDir(), prefix + uniqueString());
443
+ var tempDir = () => realpath(os.tmpdir()), getPath = async (prefix = "") => join4(await tempDir(), prefix + randomUUID());
519
444
  async function temporaryDirectory({ prefix = "" } = {}) {
520
445
  let directory = await getPath(prefix);
521
446
  return mkdirSync2(directory), directory;
@@ -537,7 +462,7 @@ function getEnvConfig(program, configEnv) {
537
462
  envVarValue && (program[fieldName] = envVarValue);
538
463
  });
539
464
  }
540
- var createLogStream = async (logFileName = "storybook.log") => {
465
+ var createLogStream = async (logFileName = "forkbook.log") => {
541
466
  let finalLogPath = join4(process.cwd(), logFileName), temporaryLogPath = await temporaryFile({ name: logFileName }), logStream = createWriteStream(temporaryLogPath, { encoding: "utf8" });
542
467
  return new Promise((resolve7, reject) => {
543
468
  logStream.once("open", () => {
@@ -623,7 +548,7 @@ async function getBuilderOptions(options) {
623
548
  }
624
549
 
625
550
  // src/common/utils/get-storybook-version-specifier-from-ancestry.ts
626
- var PKG_PR_NEW_CLI_SPECIFIER_IN_TEXT_RE = /https?:\/\/[^/\s'"]*pkg\.pr\.new\/(?:[^@\s/]+\/[^@\s/]+\/)?(?:create-storybook|storybook)@[^\s'"]+/, PACKAGE_AT_SPECIFIER_RE = /\s(?:create-storybook|storybook)@([^\s'"]+)/, stripQuotedUrls = (command) => command.replace(/['"](https?:\/\/[^'"]+)['"]/g, "$1"), getStorybookVersionSpecifierFromAncestry = (ancestry) => {
551
+ var PKG_PR_NEW_CLI_SPECIFIER_IN_TEXT_RE = /https?:\/\/[^/\s'"]*pkg\.pr\.new\/(?:[^@\s/]+\/[^@\s/]+\/)?(?:create-storybook|storybook)@[^\s'"]+/, PACKAGE_AT_SPECIFIER_RE = /\s@aussieljk\/forkbook@([^\s'"]+)/, stripQuotedUrls = (command) => command.replace(/['"](https?:\/\/[^'"]+)['"]/g, "$1"), getStorybookVersionSpecifierFromAncestry = (ancestry) => {
627
552
  for (let ancestor of ancestry.toReversed()) {
628
553
  let command = ancestor.command;
629
554
  if (!command)
@@ -685,24 +610,23 @@ var getAutoRefs = async (options) => {
685
610
  let location = up3({ cwd: options.configDir, last: getProjectRoot() });
686
611
  if (!location)
687
612
  return {};
688
- let directory = dirname3(location), { dependencies = [], devDependencies = [] } = JSON.parse(await readFile4(location, { encoding: "utf8" })) || {}, deps = Object.keys({ ...dependencies, ...devDependencies });
689
- return (await Promise.all(
613
+ let directory = dirname3(location), { dependencies = [], devDependencies = [] } = JSON.parse(await readFile4(location, { encoding: "utf8" })) || {}, deps = Object.keys({ ...dependencies, ...devDependencies }), list = await Promise.all(
690
614
  deps.map(async (d) => {
691
- let manifest = await readDependencyManifest(directory, d);
692
- if (manifest?.storybook?.url)
693
- return { id: manifest.name, ...manifest.storybook, version: manifest.version };
615
+ let manifest = await readDependencyManifest(directory, d), ref = manifest?.storybook;
616
+ if (manifest?.name && ref?.url)
617
+ return { id: manifest.name, url: ref.url, title: ref.title, version: manifest.version };
694
618
  })
695
- )).filter(Boolean).reduce(
696
- (acc, cur) => ({
697
- ...acc,
698
- [cur.id]: {
699
- id: cur.id.toLowerCase(),
700
- url: stripTrailingSlash(cur.url),
701
- title: cur.title,
702
- version: cur.version
619
+ );
620
+ return Object.fromEntries(
621
+ list.filter((ref) => ref !== void 0).map((ref) => [
622
+ ref.id,
623
+ {
624
+ id: ref.id.toLowerCase(),
625
+ url: stripTrailingSlash(ref.url),
626
+ title: ref.title,
627
+ version: ref.version
703
628
  }
704
- }),
705
- {}
629
+ ])
706
630
  );
707
631
  }, checkRef = async (url) => {
708
632
  try {
@@ -1022,7 +946,7 @@ async function removeAddon(addon, options) {
1022
946
  Unable to find storybook config directory
1023
947
  `);
1024
948
  if (!mainConfigPath) {
1025
- logger6.error("Unable to find storybook main.js config");
949
+ logger6.error("Unable to find the Forkbook main config");
1026
950
  return;
1027
951
  }
1028
952
  let main = await readConfig(mainConfigPath);
@@ -1066,6 +990,7 @@ function getPreviewHeadTemplate(configDirPath, interpolations) {
1066
990
  import { existsSync as existsSync2, readFileSync as readFileSync5, statSync } from "node:fs";
1067
991
  import { basename as basename2, dirname as dirname5, extname, relative as relative2, resolve as resolve6 } from "node:path";
1068
992
  var import_picomatch = __toESM(require_picomatch(), 1);
993
+ import { parse as parseJsonc } from "jsonc-parser";
1069
994
  var TSCONFIG_CANDIDATES = ["tsconfig.json", "tsconfig.base.json", "tsconfig.app.json"], DEFAULT_EXCLUDE_PATTERNS = ["node_modules", "bower_components", "jspm_packages"], findTsconfigPath = (cwd) => {
1070
995
  let projectRoot = getProjectRoot();
1071
996
  for (let candidate of TSCONFIG_CANDIDATES) {
@@ -1225,8 +1150,8 @@ function compareTsconfigEntries(filePath, left, right) {
1225
1150
  }
1226
1151
  function readTsconfigConfig(configPath) {
1227
1152
  try {
1228
- let content = readFileSync5(configPath, "utf-8");
1229
- return JSON.parse(stripJsonComments(content, { trailingCommas: !0 }));
1153
+ let content = readFileSync5(configPath, "utf-8"), errors = [], config = parseJsonc(content, errors, { allowTrailingComma: !0 });
1154
+ return errors.length ? void 0 : config;
1230
1155
  } catch {
1231
1156
  return;
1232
1157
  }
@@ -1559,9 +1484,7 @@ function wrapValueWithGetAbsolutePathWrapper(config, node) {
1559
1484
  let wrapperNode = getReferenceToGetAbsolutePathWrapper(config, n.value);
1560
1485
  Object.keys(n).forEach((k) => {
1561
1486
  delete n[k];
1562
- }), Object.keys(wrapperNode).forEach((k) => {
1563
- n[k] = wrapperNode[k];
1564
- });
1487
+ }), Object.assign(n, wrapperNode);
1565
1488
  }
1566
1489
  t4.isObjectProperty(n) && t4.isStringLiteral(n.value) && (n.value = getReferenceToGetAbsolutePathWrapper(config, n.value.value)), t4.isArrayExpression(n) && n.elements.forEach((element) => {
1567
1490
  element && isGetAbsolutePathWrapperNecessary(element) && wrapValueWithGetAbsolutePathWrapper(config, element);
@@ -1695,31 +1618,30 @@ function attachCategorizedExecaFailureHandler(execaProcess, context) {
1695
1618
  throw categorize(error);
1696
1619
  }).catch(typeof onRejected == "function" ? onRejected : void 0));
1697
1620
  }
1698
- function getExecaOptions({
1621
+ function getExecOptions({
1699
1622
  stdio,
1700
1623
  cwd,
1701
1624
  env,
1702
1625
  signal,
1703
- ...execaOptions
1626
+ timeout,
1627
+ shell
1704
1628
  }) {
1705
1629
  return {
1706
1630
  cwd,
1631
+ timeout,
1632
+ shell,
1707
1633
  stdio: stdio ?? prompt.getPreferredStdio(),
1708
- encoding: "utf8",
1709
- cleanup: !0,
1710
1634
  env: {
1711
1635
  ...COMMON_ENV_VARS,
1712
1636
  ...env
1713
1637
  },
1714
- ...signal && { cancelSignal: signal },
1715
- // Map signal to cancelSignal for execa v9
1716
- ...execaOptions
1638
+ signal
1717
1639
  };
1718
1640
  }
1719
1641
  function executeCommand(options) {
1720
1642
  let { command, args = [], ignoreError = !1 } = options;
1721
1643
  logger9.debug(`Executing command: ${command} ${args.join(" ")}`);
1722
- let commandVariations = resolveCommand(command), execaProcess = tryCommandVariations(commandVariations, args, getExecaOptions(options));
1644
+ let commandVariations = resolveCommand(command), execaProcess = tryCommandVariations(commandVariations, args, getExecOptions(options));
1723
1645
  return ignoreError ? execaProcess.catch(() => {
1724
1646
  }) : attachCategorizedExecaFailureHandler(execaProcess, { command, args }), execaProcess;
1725
1647
  }
@@ -1727,11 +1649,7 @@ function executeCommandSync(options) {
1727
1649
  let { command, args = [], ignoreError = !1 } = options;
1728
1650
  try {
1729
1651
  let commandVariations = resolveCommand(command);
1730
- return tryCommandVariationsSync(
1731
- commandVariations,
1732
- args,
1733
- getExecaOptions(options)
1734
- );
1652
+ return tryCommandVariationsSync(commandVariations, args, getExecOptions(options));
1735
1653
  } catch (err) {
1736
1654
  if (!ignoreError)
1737
1655
  throw categorizeExecaError(err, { command, args });
@@ -1743,12 +1661,12 @@ function executeNodeCommand({
1743
1661
  args,
1744
1662
  options
1745
1663
  }) {
1746
- return execaNode(scriptPath, args, {
1747
- ...options
1748
- });
1664
+ return execNode(scriptPath, args, options);
1749
1665
  }
1750
1666
  function isCommandNotFoundError(error) {
1751
- return error ? (error.stderr || "").includes("is not recognized as an internal or external command") : !1;
1667
+ return typeof error != "object" || error === null || !("stderr" in error) ? !1 : String(error.stderr ?? "").includes(
1668
+ "is not recognized as an internal or external command"
1669
+ );
1752
1670
  }
1753
1671
  function shouldRetry(error, isLastVariation) {
1754
1672
  return isCommandNotFoundError(error) && !isLastVariation;
@@ -1758,19 +1676,18 @@ function isExecutableInPath(command) {
1758
1676
  }
1759
1677
  function tryCommandVariations(commandVariations, args, options) {
1760
1678
  if (commandVariations.length <= 1)
1761
- return execa(commandVariations[0], args, options);
1679
+ return exec(commandVariations[0], args, options);
1762
1680
  for (let cmd of commandVariations.slice(0, -1))
1763
1681
  if (isExecutableInPath(cmd))
1764
- return logger9.debug(`Resolved command variation: ${cmd}`), execa(cmd, args, options);
1765
- return execa(commandVariations[commandVariations.length - 1], args, options);
1682
+ return logger9.debug(`Resolved command variation: ${cmd}`), exec(cmd, args, options);
1683
+ return exec(commandVariations[commandVariations.length - 1], args, options);
1766
1684
  }
1767
1685
  function tryCommandVariationsSync(commandVariations, args, options) {
1768
1686
  let lastError;
1769
1687
  for (let i = 0; i < commandVariations.length; i++) {
1770
1688
  let cmd = commandVariations[i];
1771
1689
  try {
1772
- let commandResult = execaCommandSync([cmd, ...args].join(" "), options);
1773
- return typeof commandResult.stdout == "string" ? commandResult.stdout : "";
1690
+ return execSync(cmd, args, options).stdout ?? "";
1774
1691
  } catch (error) {
1775
1692
  if (lastError = error, !shouldRetry(error, i === commandVariations.length - 1))
1776
1693
  throw error;
@@ -1817,7 +1734,7 @@ var BUNProxy = class extends JsPackageManager {
1817
1734
  return `bun add ${dev ? "-D " : ""}${deps.join(" ")}`;
1818
1735
  }
1819
1736
  getRunStorybookCommand() {
1820
- return "bun run storybook";
1737
+ return "bun run forkbook";
1821
1738
  }
1822
1739
  getRunCommand(command) {
1823
1740
  return `bun run ${command}`;
@@ -1853,7 +1770,7 @@ var BUNProxy = class extends JsPackageManager {
1853
1770
  });
1854
1771
  }
1855
1772
  async findInstallations(pattern, { depth = 99 } = {}) {
1856
- let exec = async ({ packageDepth }) => executeCommand({
1773
+ let exec2 = async ({ packageDepth }) => executeCommand({
1857
1774
  command: "npm",
1858
1775
  args: ["ls", "--json", `--depth=${packageDepth}`],
1859
1776
  cwd: this.cwd,
@@ -1863,11 +1780,11 @@ var BUNProxy = class extends JsPackageManager {
1863
1780
  }
1864
1781
  });
1865
1782
  try {
1866
- let result = await await exec({ packageDepth: depth }), commandResult = typeof result.stdout == "string" ? result.stdout : "", parsedOutput = JSON.parse(commandResult);
1783
+ let result = await await exec2({ packageDepth: depth }), commandResult = typeof result.stdout == "string" ? result.stdout : "", parsedOutput = JSON.parse(commandResult);
1867
1784
  return this.mapDependencies(parsedOutput, pattern);
1868
1785
  } catch {
1869
1786
  try {
1870
- let result = await await exec({ packageDepth: 0 }), commandResult = typeof result.stdout == "string" ? result.stdout : "", parsedOutput = JSON.parse(commandResult);
1787
+ let result = await await exec2({ packageDepth: 0 }), commandResult = typeof result.stdout == "string" ? result.stdout : "", parsedOutput = JSON.parse(commandResult);
1871
1788
  return this.mapDependencies(parsedOutput, pattern);
1872
1789
  } catch (err) {
1873
1790
  logger10.debug(
@@ -2207,7 +2124,7 @@ var NPMProxy = class extends JsPackageManager {
2207
2124
  });
2208
2125
  }
2209
2126
  async findInstallations(pattern, { depth = 99 } = {}) {
2210
- let exec = ({ packageDepth }) => executeCommand({
2127
+ let exec2 = ({ packageDepth }) => executeCommand({
2211
2128
  command: "npm",
2212
2129
  args: ["ls", "--json", `--depth=${packageDepth}`],
2213
2130
  env: {
@@ -2217,11 +2134,11 @@ var NPMProxy = class extends JsPackageManager {
2217
2134
  stdio: ["pipe", "pipe", "ignore"]
2218
2135
  });
2219
2136
  try {
2220
- let childProcess = await exec({ packageDepth: depth }), commandResult = typeof childProcess.stdout == "string" ? childProcess.stdout : "", parsedOutput = JSON.parse(commandResult);
2137
+ let childProcess = await exec2({ packageDepth: depth }), commandResult = typeof childProcess.stdout == "string" ? childProcess.stdout : "", parsedOutput = JSON.parse(commandResult);
2221
2138
  return this.mapDependencies(parsedOutput, pattern);
2222
2139
  } catch {
2223
2140
  try {
2224
- let childProcess = await exec({ packageDepth: 0 }), commandResult = typeof childProcess.stdout == "string" ? childProcess.stdout : "", parsedOutput = JSON.parse(commandResult);
2141
+ let childProcess = await exec2({ packageDepth: 0 }), commandResult = typeof childProcess.stdout == "string" ? childProcess.stdout : "", parsedOutput = JSON.parse(commandResult);
2225
2142
  return this.mapDependencies(parsedOutput, pattern);
2226
2143
  } catch (e) {
2227
2144
  logger11.debug(`Error finding installations for ${pattern.join(", ")}: ${String(e)}`);
@@ -2245,6 +2162,7 @@ var NPMProxy = class extends JsPackageManager {
2245
2162
  {
2246
2163
  cwd: dirname7(ancestorPath),
2247
2164
  absolute: !0,
2165
+ expandDirectories: !1,
2248
2166
  ignore: patterns.filter((pattern) => pattern.startsWith("!")).map((pattern) => `${pattern.slice(1)}/package.json`)
2249
2167
  }
2250
2168
  ).includes(packageJsonPath);
@@ -3509,7 +3427,7 @@ function getYarnVersion(cwd) {
3509
3427
 
3510
3428
  // src/common/js-package-manager/warnOnYarn1.ts
3511
3429
  import { once } from "@aussieljk/forkbook/internal/node-logger";
3512
- var PACKAGE_MANAGER_INSTALL_DOCS_URL = "https://storybook.js.org/docs/get-started/install";
3430
+ var PACKAGE_MANAGER_INSTALL_DOCS_URL = "https://forkbook.ljk.dev/docs/get-started/install";
3513
3431
  function warnOnYarn1(packageManagerType) {
3514
3432
  if (packageManagerType === "yarn1" /* YARN1 */)
3515
3433
  try {
@@ -3535,7 +3453,8 @@ async function scanAndTransformFiles({
3535
3453
  initialValue: defaultGlob
3536
3454
  });
3537
3455
  logger14.log("Scanning for affected files...");
3538
- let globby = (await import("./globby-OEMHPBFY.js")).globby, sourceFiles = await globby([glob], {
3456
+ let { glob: globFiles } = await import("./dist-Q2XNFC24.js"), sourceFiles = await globFiles([glob], {
3457
+ expandDirectories: !1,
3539
3458
  ...commonGlobOptions(""),
3540
3459
  ignore: ["**/node_modules/**"],
3541
3460
  dot: !0,
@@ -3557,7 +3476,7 @@ function transformImports(source, renamedImports) {
3557
3476
 
3558
3477
  // src/common/utils/file-lock.ts
3559
3478
  import { logger as logger15 } from "@aussieljk/forkbook/internal/node-logger";
3560
- import { randomUUID } from "node:crypto";
3479
+ import { randomUUID as randomUUID2 } from "node:crypto";
3561
3480
  import { readFileSync as readFileSync14, rmSync as rmSync2 } from "node:fs";
3562
3481
  import { mkdir as mkdir2, open, readFile as readFile6, rm as rm3, stat, utimes } from "node:fs/promises";
3563
3482
  import { dirname as dirname8 } from "node:path";
@@ -3583,7 +3502,7 @@ var POLL_INTERVAL_MS = 50, DEFAULT_STALE_AFTER_MS = 3e4, DEFAULT_WAIT_BUDGET_MS
3583
3502
  return;
3584
3503
  throw error;
3585
3504
  }
3586
- let payload = { token: randomUUID(), pid: process.pid };
3505
+ let payload = { token: randomUUID2(), pid: process.pid };
3587
3506
  try {
3588
3507
  await handle.writeFile(JSON.stringify(payload));
3589
3508
  } catch (error) {
@@ -3642,12 +3561,12 @@ var POLL_INTERVAL_MS = 50, DEFAULT_STALE_AFTER_MS = 3e4, DEFAULT_WAIT_BUDGET_MS
3642
3561
  };
3643
3562
 
3644
3563
  // src/common/utils/process-ancestry.ts
3645
- import { execSync } from "node:child_process";
3564
+ import { execSync as execSync2 } from "node:child_process";
3646
3565
  import os2 from "node:os";
3647
3566
  var UNIX_TIMEOUT = 5e3, WINDOWS_TIMEOUT = 1e4, MAX_DEPTH = 1e3, EXEC_STDIO = ["ignore", "pipe", "ignore"];
3648
3567
  function getProcessInfoUnix(pid) {
3649
3568
  try {
3650
- let output = execSync(`ps -p ${pid} -o pid=,ppid=,command=`, {
3569
+ let output = execSync2(`ps -p ${pid} -o pid=,ppid=,command=`, {
3651
3570
  encoding: "utf8",
3652
3571
  timeout: UNIX_TIMEOUT,
3653
3572
  stdio: EXEC_STDIO
@@ -3666,7 +3585,7 @@ function getProcessInfoUnix(pid) {
3666
3585
  }
3667
3586
  function getProcessInfoWindows(pid) {
3668
3587
  try {
3669
- let output = execSync(
3588
+ let output = execSync2(
3670
3589
  `wmic process where (ProcessId=${pid}) get ProcessId,ParentProcessId,CommandLine /format:csv`,
3671
3590
  {
3672
3591
  encoding: "utf8",
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_ro17f80mg6k from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ro17f80mg6k from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ro17f80mg6k from "node:module";
1
+ import CJS_COMPAT_NODE_URL_darlhdhnaq7 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_darlhdhnaq7 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_darlhdhnaq7 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_ro17f80mg6k.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ro17f80mg6k.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ro17f80mg6k.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_darlhdhnaq7.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_darlhdhnaq7.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_darlhdhnaq7.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
@@ -14,7 +14,7 @@ var require = CJS_COMPAT_NODE_MODULE_ro17f80mg6k.createRequire(import.meta.url);
14
14
  var RESTART_GUIDANCE = "From your project directory, restart Forkbook (for example `npx forkbook dev`) and re-run this command from there.";
15
15
  function formatNoInstance(records) {
16
16
  let lines = [
17
- "No running Forkbook was found for this project. Start it first (for example `npm run storybook`), then retry with `--attach`."
17
+ "No running Forkbook was found for this project. Start it first (for example `npm run forkbook`), then retry with `--attach`."
18
18
  ];
19
19
  if (records.length > 0) {
20
20
  lines.push(
@@ -42,7 +42,7 @@ function formatOldServer(version) {
42
42
  return `Restart Forkbook (v${version}+) to enable attach. The running instance was started with an older Forkbook that does not publish a channel token.`;
43
43
  }
44
44
  function formatConnectionFailed(record) {
45
- return `Could not connect to the Forkbook at ${record.url}. The instance registry may be stale \u2014 if that Forkbook is no longer running, start it again (for example \`npm run storybook\`) and retry.`;
45
+ return `Could not connect to the Forkbook at ${record.url}. The instance registry may be stale \u2014 if that Forkbook is no longer running, start it again (for example \`npm run forkbook\`) and retry.`;
46
46
  }
47
47
  function formatInstallationMismatch({
48
48
  callerPath,
@@ -0,0 +1,11 @@
1
+ import CJS_COMPAT_NODE_URL_darlhdhnaq7 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_darlhdhnaq7 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_darlhdhnaq7 from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_darlhdhnaq7.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_darlhdhnaq7.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_darlhdhnaq7.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
11
+ // ------------------------------------------------------------