@aussieljk/forkbook 0.0.1-6 → 0.0.1-8

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 (249) hide show
  1. package/assets/create/templates/react-native/index.expo.js +4 -4
  2. package/assets/create/templates/react-native/index.js +5 -5
  3. package/dist/_browser-chunks/{Color-2BMQTRYG.js → Color-ZG7LKYDZ.js} +1 -1
  4. package/dist/_browser-chunks/{WithTooltip-GJACFWKM.js → WithTooltip-YZ36EZ4X.js} +3 -3
  5. package/dist/_browser-chunks/{chunk-X7D777E6.js → chunk-DAUHYZUB.js} +4 -0
  6. package/dist/_browser-chunks/{chunk-6EJEEII7.js → chunk-E47B5255.js} +2 -2
  7. package/dist/_browser-chunks/{chunk-6IKB2UHQ.js → chunk-MZVQEZOB.js} +12 -12
  8. package/dist/_browser-chunks/{chunk-QAHDGPZ7.js → chunk-SK6S7ZXD.js} +1 -1
  9. package/dist/_browser-chunks/{chunk-DPRGR3QP.js → chunk-WVF42CP2.js} +38 -6
  10. package/dist/_node-chunks/{attached-runtime-EBWIOQZN.js → attached-runtime-SRP2RPCT.js} +30 -30
  11. package/dist/_node-chunks/{builder-manager-ETBLZ2RH.js → builder-manager-V7M6SFEM.js} +69 -46
  12. package/dist/_node-chunks/{chunk-GIOREKIG.js → chunk-27KT3BJI.js} +7 -7
  13. package/dist/_node-chunks/{chunk-MQFB44YS.js → chunk-27R37QFW.js} +7 -7
  14. package/dist/_node-chunks/{chunk-4KCQYJT6.js → chunk-2WPUJ7UM.js} +7 -7
  15. package/dist/_node-chunks/{chunk-KWPWQA7G.js → chunk-2ZB3ZVDY.js} +8 -8
  16. package/dist/_node-chunks/{chunk-TPSJW4CQ.js → chunk-3KKSPEAE.js} +6 -6
  17. package/dist/_node-chunks/{chunk-644CUCK5.js → chunk-3KY2GA5X.js} +7 -7
  18. package/dist/_node-chunks/{chunk-25PXULSJ.js → chunk-3NXJBXBF.js} +15 -15
  19. package/dist/_node-chunks/{chunk-5T635FTI.js → chunk-4CPTSXU6.js} +10 -10
  20. package/dist/_node-chunks/{chunk-YQDBSAXW.js → chunk-4QYNOSOA.js} +7 -7
  21. package/dist/_node-chunks/{chunk-WIQ6Y3NX.js → chunk-4T3WPVSQ.js} +6 -6
  22. package/dist/_node-chunks/{chunk-BLUMKQQB.js → chunk-4U5ZQZJ4.js} +6 -6
  23. package/dist/_node-chunks/chunk-4XNKH2BY.js +18 -0
  24. package/dist/_node-chunks/{chunk-4MJIPOJ5.js → chunk-526SOV2Y.js} +6 -6
  25. package/dist/_node-chunks/{chunk-J6M5CRYZ.js → chunk-54WGE5OK.js} +10 -10
  26. package/dist/_node-chunks/{chunk-JPXJI6QR.js → chunk-5BQKMZYJ.js} +27 -32
  27. package/dist/_node-chunks/{chunk-P65JVLO3.js → chunk-62PEOH4P.js} +8 -8
  28. package/dist/_node-chunks/{chunk-R5DWO2S2.js → chunk-6DCYMQX2.js} +29 -29
  29. package/dist/_node-chunks/{chunk-NZ7EQWYA.js → chunk-6DZY675E.js} +9 -9
  30. package/dist/_node-chunks/{chunk-ZC3ZZKMS.js → chunk-6GBMB2E4.js} +8 -8
  31. package/dist/_node-chunks/{chunk-FQWTUSYB.js → chunk-6YDXCU32.js} +6 -6
  32. package/dist/_node-chunks/{chunk-HUPRQZ3I.js → chunk-77YIWZPS.js} +7 -7
  33. package/dist/_node-chunks/{chunk-L4JGWK4K.js → chunk-7GLNBVQO.js} +6 -6
  34. package/dist/_node-chunks/{chunk-CGVPHZVD.js → chunk-7YBOQWWR.js} +8 -8
  35. package/dist/_node-chunks/{chunk-YPGVYNJB.js → chunk-A73YRJPA.js} +7 -7
  36. package/dist/_node-chunks/{chunk-C5JG7EKF.js → chunk-BLAPFOIX.js} +6 -6
  37. package/dist/_node-chunks/{chunk-CBUQY454.js → chunk-BPMXWGDX.js} +6 -6
  38. package/dist/_node-chunks/{chunk-SLZV7PTQ.js → chunk-BY65FGKD.js} +8 -8
  39. package/dist/_node-chunks/{chunk-3UWWRDA5.js → chunk-CHPKBTH7.js} +7 -7
  40. package/dist/_node-chunks/{chunk-GRTI5653.js → chunk-CL4T6DGA.js} +7 -7
  41. package/dist/_node-chunks/{chunk-AS4SFRCZ.js → chunk-CT3L2NXZ.js} +6 -6
  42. package/dist/_node-chunks/{chunk-YHH57LHY.js → chunk-CZDEJ7DD.js} +9 -9
  43. package/dist/_node-chunks/{chunk-TN3ULFFZ.js → chunk-D4IL5V6A.js} +6 -6
  44. package/dist/_node-chunks/{chunk-YNENOZRY.js → chunk-DADJTKJT.js} +7 -7
  45. package/dist/_node-chunks/{chunk-N7HEOGTM.js → chunk-DGA2Q7TE.js} +6 -6
  46. package/dist/_node-chunks/{chunk-I7HRDCNY.js → chunk-DSWCMXKR.js} +10 -10
  47. package/dist/_node-chunks/{chunk-FIFCNBTL.js → chunk-DVSKRIH3.js} +7 -7
  48. package/dist/_node-chunks/{chunk-ANDQVXYX.js → chunk-F2XPZVCK.js} +8 -8
  49. package/dist/_node-chunks/{chunk-E3O7VAPG.js → chunk-G3J2VAY4.js} +10 -10
  50. package/dist/_node-chunks/{chunk-2DBJWMYE.js → chunk-G6UTEYYQ.js} +8 -8
  51. package/dist/_node-chunks/{chunk-ALHPFKVB.js → chunk-GUKZDREX.js} +8 -8
  52. package/dist/_node-chunks/{chunk-TMXWDY2O.js → chunk-GXSB54NU.js} +6 -6
  53. package/dist/_node-chunks/{chunk-CF7KLGUW.js → chunk-HF6FRLS6.js} +125 -144
  54. package/dist/_node-chunks/{chunk-ZSH6BUCW.js → chunk-HNMHTOKI.js} +23 -23
  55. package/dist/_node-chunks/{chunk-IFPMZ247.js → chunk-I26RWAW3.js} +6 -6
  56. package/dist/_node-chunks/{chunk-G6YNW4FK.js → chunk-I5Y7NDAM.js} +7 -7
  57. package/dist/_node-chunks/{chunk-ZNSGFYAT.js → chunk-IAYHJZOR.js} +6 -6
  58. package/dist/_node-chunks/{chunk-MFN2XBPL.js → chunk-ICGRYYV7.js} +7 -7
  59. package/dist/_node-chunks/{chunk-PAN35AYX.js → chunk-IFF53QVX.js} +7 -7
  60. package/dist/_node-chunks/{chunk-Z4NZLBOX.js → chunk-II4SIIJW.js} +7 -7
  61. package/dist/_node-chunks/{chunk-ZCITDAV4.js → chunk-IVU4D6LF.js} +7 -7
  62. package/dist/_node-chunks/{chunk-OLGIDCVD.js → chunk-JB5Q4WGX.js} +7 -7
  63. package/dist/_node-chunks/{chunk-MDW3GSU3.js → chunk-JCLP42A7.js} +7 -7
  64. package/dist/_node-chunks/{chunk-LWKLJYYQ.js → chunk-KQBTXUT5.js} +7 -7
  65. package/dist/_node-chunks/{chunk-4WLIN3VZ.js → chunk-LF7EC235.js} +8 -8
  66. package/dist/_node-chunks/{chunk-DCNZ6SFN.js → chunk-LPLXO4HE.js} +6 -6
  67. package/dist/_node-chunks/{chunk-HKL3VOYX.js → chunk-LSKOVF6F.js} +6 -6
  68. package/dist/_node-chunks/{chunk-YMZ2SGFK.js → chunk-LYMYDMEK.js} +6 -6
  69. package/dist/_node-chunks/{chunk-QNUXGVZZ.js → chunk-M3F5R2JO.js} +6 -6
  70. package/dist/_node-chunks/{chunk-HWRHYM7Z.js → chunk-M74NU6PU.js} +6 -6
  71. package/dist/_node-chunks/{chunk-JZWF3XLN.js → chunk-MGFH4KGP.js} +6 -6
  72. package/dist/_node-chunks/{chunk-TYBPAV3X.js → chunk-NORBEBNM.js} +6 -6
  73. package/dist/_node-chunks/{chunk-4XNPO23I.js → chunk-NV6HM53D.js} +6 -6
  74. package/dist/_node-chunks/{chunk-WRG3CFGS.js → chunk-OFZX45ZR.js} +6 -6
  75. package/dist/_node-chunks/{chunk-A35J7YYA.js → chunk-OZBNKCKM.js} +6 -6
  76. package/dist/_node-chunks/{chunk-Q4BEWGMK.js → chunk-QEDRYWP7.js} +7 -7
  77. package/dist/_node-chunks/{chunk-KF3FT3NI.js → chunk-QQ7GEJNY.js} +9 -9
  78. package/dist/_node-chunks/{chunk-ZTFNOXZF.js → chunk-QQKVXB5Q.js} +6 -6
  79. package/dist/_node-chunks/{chunk-YCXTTQ7K.js → chunk-QVIC3UDL.js} +8 -8
  80. package/dist/_node-chunks/{chunk-252Y5WHZ.js → chunk-RR3WLRNQ.js} +7 -7
  81. package/dist/_node-chunks/chunk-SBNQ6YGM.js +11 -0
  82. package/dist/_node-chunks/{chunk-GGTXOH3W.js → chunk-SNQKCFKN.js} +6 -6
  83. package/dist/_node-chunks/{chunk-PLWLCVP2.js → chunk-T62LXT34.js} +6 -6
  84. package/dist/_node-chunks/{chunk-LXVSVTQ3.js → chunk-TBLZESXE.js} +6 -6
  85. package/dist/_node-chunks/{chunk-MZ2GSR3G.js → chunk-TLB2LNUO.js} +17 -14
  86. package/dist/_node-chunks/{chunk-DRLBJM6X.js → chunk-UBEILYLL.js} +7 -7
  87. package/dist/_node-chunks/{chunk-5Z6MT4RI.js → chunk-UCBUYT7S.js} +7 -7
  88. package/dist/_node-chunks/{chunk-GQ3HJNIH.js → chunk-UEWCGYSE.js} +44 -10
  89. package/dist/_node-chunks/{chunk-GOFK4EKU.js → chunk-VPGX2PAB.js} +6 -6
  90. package/dist/_node-chunks/{chunk-NX6CSWF3.js → chunk-VQ2NW4OR.js} +8 -8
  91. package/dist/_node-chunks/{chunk-XWGMQW2H.js → chunk-VTLGMRU5.js} +6 -6
  92. package/dist/_node-chunks/{chunk-VPU4E7DI.js → chunk-VTVQ5TKB.js} +8 -8
  93. package/dist/_node-chunks/{chunk-LFIFBDMS.js → chunk-VV6CPF3T.js} +6 -6
  94. package/dist/_node-chunks/{chunk-XOGU5PWI.js → chunk-WF7RDUU7.js} +10 -10
  95. package/dist/_node-chunks/{chunk-7E27CGRU.js → chunk-X5IJ42Q2.js} +7 -7
  96. package/dist/_node-chunks/{chunk-GDFQQO5U.js → chunk-XGMO4SW2.js} +8 -8
  97. package/dist/_node-chunks/{chunk-TIRP5JQM.js → chunk-XTCOGCTP.js} +7 -7
  98. package/dist/_node-chunks/{chunk-NUAQC3XP.js → chunk-Y2HWZ262.js} +50 -50
  99. package/dist/_node-chunks/{chunk-X3RTVNRN.js → chunk-YBRV5FIK.js} +7 -7
  100. package/dist/_node-chunks/{chunk-DABFUVLR.js → chunk-YHWOGAFM.js} +6 -6
  101. package/dist/_node-chunks/{chunk-DDGW2EBW.js → chunk-YMVL55QY.js} +9 -9
  102. package/dist/_node-chunks/{chunk-JS2J2SKX.js → chunk-ZKS2H56J.js} +6 -6
  103. package/dist/_node-chunks/dist-GJ53PFWF.js +27 -0
  104. package/dist/_node-chunks/dist-TLMACGH6.js +16 -0
  105. package/dist/_node-chunks/{local-runtime-BUTEKJYV.js → local-runtime-Y6OH2SFM.js} +20 -20
  106. package/dist/_node-chunks/{mdx-plugin-7WXQIHPV.js → mdx-plugin-R6GNGQP2.js} +13 -13
  107. package/dist/_node-chunks/{monorepo-NCD3X2BR.js → monorepo-R2CLQIWG.js} +11 -11
  108. package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-SD3B272K.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-PTWFSPXD.js} +11 -11
  109. package/dist/_node-chunks/optimized-tests-DIPB4OM6.js +22 -0
  110. package/dist/_node-chunks/{pattern-copy-play-3QJANDJD.js → pattern-copy-play-5VCD6ED3.js} +11 -11
  111. package/dist/_node-chunks/postinstallAddon-PSN7XRSV.js +20 -0
  112. package/dist/_node-chunks/{rehype-external-links-4LR5BDR2.js → rehype-external-links-SKSQEDUP.js} +9 -9
  113. package/dist/_node-chunks/{rehype-slug-PWFRGOEV.js → rehype-slug-27WNXM7U.js} +9 -9
  114. package/dist/_node-chunks/{relaxed-limits-VNNWUW7X.js → relaxed-limits-PDGCGDW4.js} +11 -11
  115. package/dist/_node-chunks/{run-YK6ARCWS.js → run-BD52SWQC.js} +17 -17
  116. package/dist/_node-chunks/{run-RUAAWEQT.js → run-IKBDOUY2.js} +273 -13
  117. package/dist/_node-chunks/session-id-K7PM5ZGL.js +23 -0
  118. package/dist/_node-chunks/{setup-4QKCICV6.js → setup-7ECNMG4A.js} +8 -8
  119. package/dist/_node-chunks/{vitest.config.4.template-WVFLIXN7.js → vitest.config.4.template-J4YODMMP.js} +7 -7
  120. package/dist/addon-a11y/manager.js +6 -6
  121. package/dist/addon-a11y/preset.js +7 -7
  122. package/dist/addon-docs/blocks.js +10 -10
  123. package/dist/addon-docs/manager.js +2 -2
  124. package/dist/addon-docs/preset.js +10 -10
  125. package/dist/addon-links/preview.d.ts +1 -1
  126. package/dist/addon-mcp/preset.js +10 -10
  127. package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +11 -8
  128. package/dist/addon-themes/postinstall.js +7 -7
  129. package/dist/addon-vitest/constants.js +8 -8
  130. package/dist/addon-vitest/manager.js +4 -4
  131. package/dist/addon-vitest/node/coverage-reporter.js +8 -8
  132. package/dist/addon-vitest/node/vitest.js +16 -16
  133. package/dist/addon-vitest/postinstall.js +10 -10
  134. package/dist/addon-vitest/preset.js +14 -14
  135. package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
  136. package/dist/addon-vitest/vitest-plugin/index.js +15 -15
  137. package/dist/babel/index.js +11 -11
  138. package/dist/bin/core.js +62 -62
  139. package/dist/bin/dispatcher.js +18 -16
  140. package/dist/bin/loader.js +8 -8
  141. package/dist/builder-vite/index.js +15 -15
  142. package/dist/builder-vite/preset.js +13 -13
  143. package/dist/{chunk-DuDsmeM7.d.ts → chunk-CFk6djyM.d.ts} +4 -4
  144. package/dist/{chunk-CVY28Ngy.d.ts → chunk-CJY2njs4.d.ts} +1 -1
  145. package/dist/{chunk-CzmZhVrn.d.ts → chunk-DktrsDd6.d.ts} +13 -8
  146. package/dist/{chunk-BWzbIWPz.d.ts → chunk-Dw_4ad2Y.d.ts} +5 -5
  147. package/dist/{chunk-ClI-HEh5.d.ts → chunk-pFH9P91a.d.ts} +1 -1
  148. package/dist/cli/index.d.ts +1 -1
  149. package/dist/cli/index.js +22 -22
  150. package/dist/cli/skills/content/index.d.ts +1 -1
  151. package/dist/cli/skills/content/index.js +2 -2
  152. package/dist/cli/tools/sdk/child-host.d.ts +1 -1
  153. package/dist/cli/tools/sdk/child-host.js +17 -17
  154. package/dist/cli/tools/sdk/index.d.ts +1 -1
  155. package/dist/cli/tools/sdk/index.js +18 -18
  156. package/dist/cli-commands/bin/index.js +7 -7
  157. package/dist/common/index.d.ts +14 -27
  158. package/dist/common/index.js +36 -40
  159. package/dist/components/index.js +30 -30
  160. package/dist/core-server/index.d.ts +6 -6
  161. package/dist/core-server/index.js +69 -69
  162. package/dist/core-server/presets/common-manager.js +7 -7
  163. package/dist/core-server/presets/common-override-preset.js +10 -10
  164. package/dist/core-server/presets/common-preset.js +39 -39
  165. package/dist/create/bin/index.js +7 -7
  166. package/dist/create/index.js +15 -15
  167. package/dist/csf-tools/index.d.ts +12 -0
  168. package/dist/csf-tools/index.js +12 -12
  169. package/dist/manager/_manager-chunks/{globals-runtime-BUP5e_t9.js → globals-runtime-4fCHtNC6.js} +1 -1
  170. package/dist/manager/_manager-chunks/{globals-runtime-CdgVeAbk.js → globals-runtime-BKW-4ztO.js} +7 -7
  171. package/dist/manager/_manager-chunks/{globals-runtime-DedfO-DP.js → globals-runtime-BO0pfoqL.js} +4 -4
  172. package/dist/manager/_manager-chunks/{globals-runtime-C7mqoHpE.js → globals-runtime-BZKYJxYC.js} +1 -1
  173. package/dist/manager/_manager-chunks/{globals-runtime-CrIF09P8.js → globals-runtime-Bpc_ftuT.js} +8 -2
  174. package/dist/manager/_manager-chunks/{globals-runtime-B-IeQLQu.js → globals-runtime-CIcNS9TG.js} +12 -12
  175. package/dist/manager/_manager-chunks/{globals-runtime-XSxCU7PR.js → globals-runtime-CTyYXvUm.js} +1 -1
  176. package/dist/manager/_manager-chunks/{globals-runtime-B71TiXST.js → globals-runtime-CoCzM1V_.js} +1 -1
  177. package/dist/manager/_manager-chunks/{globals-runtime-DMBjo1QS.js → globals-runtime-D82vqOGq.js} +2 -2
  178. package/dist/manager/_manager-chunks/{globals-runtime-CYNosEiD.js → globals-runtime-DB8fVA5g.js} +2 -144
  179. package/dist/manager/_manager-chunks/{globals-runtime-CvyFEPIY.js → globals-runtime-DOPUchia.js} +3 -3
  180. package/dist/manager/_manager-chunks/{globals-runtime-DUK6bGcb.js → globals-runtime-DZN_3ZLm.js} +99 -39
  181. package/dist/manager/_manager-chunks/{globals-runtime-C_evJrEn.js → globals-runtime-Dbt08xWQ.js} +1 -1
  182. package/dist/manager/_manager-chunks/{globals-runtime-DqhIYwLp.js → globals-runtime-DgUeynuu.js} +75 -75
  183. package/dist/manager/_manager-chunks/{globals-runtime-B5-0Ccbv.js → globals-runtime-WhJXr5R1.js} +1 -1
  184. package/dist/manager/_manager-chunks/{globals-runtime-Ct1kY4wb.js → globals-runtime-kmPSyf3j.js} +1 -1
  185. package/dist/manager/_manager-chunks/{globals-runtime-Cqn8KdSZ.js → globals-runtime-z143vedu.js} +10 -10
  186. package/dist/manager/_manager-chunks/{runtime-CqItbdKW.js → runtime-5o_11Jae.js} +1 -1
  187. package/dist/manager/_manager-chunks/{runtime-CUymj6EY.js → runtime-B_U-7omv.js} +139 -147
  188. package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
  189. package/dist/manager/_manager-chunks/{runtime-BgYvp1WN.js → runtime-BrlctLSK.js} +82 -301
  190. package/dist/manager/_manager-chunks/{runtime-DrTLBe7a.js → runtime-BrwmuSZ1.js} +46 -22
  191. package/dist/manager/_manager-chunks/runtime-C-s1miBr.js +294 -0
  192. package/dist/manager/_manager-chunks/{runtime-DER98nV0.js → runtime-CHQZzIX6.js} +9 -12
  193. package/dist/manager/_manager-chunks/{runtime-D4ZOOIV0.js → runtime-DEHcqyTM.js} +4 -4
  194. package/dist/manager/_manager-chunks/{runtime-MAf7Wpk5.js → runtime-Dtpc5s3G.js} +501 -43
  195. package/dist/manager/_manager-chunks/{runtime-CHI-LHF1.js → runtime-DuptfEhw.js} +5 -147
  196. package/dist/manager/_manager-chunks/{runtime-CaU1DSEZ.js → runtime-P663lpsR.js} +1 -1
  197. package/dist/manager/globals-runtime.js +1 -1
  198. package/dist/manager/runtime.js +1 -1
  199. package/dist/manager-api/index.d.ts +1 -1
  200. package/dist/manager-api/index.js +2 -2
  201. package/dist/manager-errors.d.ts +1 -1
  202. package/dist/mcp/index.js +8 -8
  203. package/dist/mocking-utils/index.js +9 -9
  204. package/dist/nextjs-vite/index.d.ts +2 -2
  205. package/dist/nextjs-vite/node/index.d.ts +2 -2
  206. package/dist/nextjs-vite/node/index.js +7 -7
  207. package/dist/nextjs-vite/node-stand-ins/index.d.ts +68 -0
  208. package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
  209. package/dist/nextjs-vite/preset.js +92 -13
  210. package/dist/nextjs-vite/vite-plugin/index.js +7 -7
  211. package/dist/nextjs-vite-plugin/index.js +8 -8
  212. package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
  213. package/dist/node-logger/index.js +9 -9
  214. package/dist/oxc-parser/index.js +10 -10
  215. package/dist/oxc-parser/worker.js +10 -10
  216. package/dist/preview-api/index.d.ts +1 -1
  217. package/dist/preview-errors.d.ts +1 -1
  218. package/dist/react/docgen/docgen-worker.js +11 -11
  219. package/dist/react/preset.js +13 -13
  220. package/dist/react-native/bin/get-stories.js +12 -12
  221. package/dist/react-native/index.d.ts +8 -8
  222. package/dist/react-native/index.js +3 -3
  223. package/dist/react-native/metro/node.js +10 -10
  224. package/dist/react-native/metro/{withStorybook.d.ts → withForkbook.d.ts} +9 -9
  225. package/dist/react-native/metro/{withStorybook.js → withForkbook.js} +16 -16
  226. package/dist/react-native/scripts/generate.d.ts +1 -1
  227. package/dist/react-native/scripts/generate.js +8 -8
  228. package/dist/react-native/stub.js +1 -1
  229. package/dist/react-vite/index.d.ts +2 -2
  230. package/dist/react-vite/node/index.d.ts +3 -3
  231. package/dist/react-vite/node/index.js +7 -7
  232. package/dist/react-vite/preset.js +7 -7
  233. package/dist/server-errors.d.ts +1 -1
  234. package/dist/server-errors.js +9 -9
  235. package/dist/shared/open-service/index.d.ts +1 -1
  236. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
  237. package/dist/telemetry/index.d.ts +3 -3
  238. package/dist/telemetry/index.js +43 -43
  239. package/dist/types/index.d.ts +2 -2
  240. package/package.json +11 -8
  241. package/dist/_node-chunks/chunk-UUE3PSJB.js +0 -11
  242. package/dist/_node-chunks/chunk-VKNRNBTB.js +0 -18
  243. package/dist/_node-chunks/dist-GGTGKXZA.js +0 -27
  244. package/dist/_node-chunks/dist-NS676VJR.js +0 -16
  245. package/dist/_node-chunks/optimized-tests-ITVOHEOA.js +0 -22
  246. package/dist/_node-chunks/postinstallAddon-LEUHOKX6.js +0 -20
  247. package/dist/_node-chunks/session-id-JJYVZAKO.js +0 -23
  248. package/dist/manager/_manager-chunks/runtime-BR5z0WoJ.js +0 -456
  249. package/dist/manager/_manager-chunks/runtime-cVFIMcca.js +0 -22
@@ -1,7 +1,7 @@
1
- import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, t as __commonJSMin } from "./runtime-EITvVbkG.js";
2
- import { So as useState, eo as Component, fo as useCallback, lo as init__storybook_global_react, no as _storybook_global_react_default, ro as _storybook_global_react_exports } from "./runtime-MAf7Wpk5.js";
3
- import { n as require_browser } from "./runtime-CaU1DSEZ.js";
4
- import { a as _inheritsLoose, i as init_wrapNativeSuper, l as _extends, o as init_inheritsLoose, r as _wrapNativeSuper, s as _assertThisInitialized } from "./runtime-DER98nV0.js";
1
+ import { a as __toESM, i as __require, n as __esmMin, t as __commonJSMin } from "./runtime-BdGkqNEt.js";
2
+ import { Dr as useState, _r as useCallback, ar as Component, mr as init__storybook_global_react, sr as _storybook_global_react_default } from "./runtime-Dtpc5s3G.js";
3
+ import { n as require_browser } from "./runtime-P663lpsR.js";
4
+ import { a as _inheritsLoose, i as init_wrapNativeSuper, l as _extends, o as init_inheritsLoose, r as _wrapNativeSuper, s as _assertThisInitialized } from "./runtime-CHQZzIX6.js";
5
5
  //#region ../../node_modules/prop-types/lib/ReactPropTypesSecret.js
6
6
  /**
7
7
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -819,148 +819,6 @@ function init_useTransitionState() {
819
819
  })))();
820
820
  }
821
821
  //#endregion
822
- //#region ../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
823
- /**
824
- * @license React
825
- * use-sync-external-store-shim.production.js
826
- *
827
- * Copyright (c) Meta Platforms, Inc. and affiliates.
828
- *
829
- * This source code is licensed under the MIT license found in the
830
- * LICENSE file in the root directory of this source tree.
831
- */
832
- var require_use_sync_external_store_shim_production = /* @__PURE__ */ __commonJSMin(((exports) => {
833
- var React = (init__storybook_global_react(), __toCommonJS(_storybook_global_react_exports));
834
- function is(x, y) {
835
- return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
836
- }
837
- var objectIs = "function" === typeof Object.is ? Object.is : is;
838
- var useState = React.useState;
839
- var useEffect = React.useEffect;
840
- var useLayoutEffect = React.useLayoutEffect;
841
- var useDebugValue = React.useDebugValue;
842
- function useSyncExternalStore$2(subscribe, getSnapshot) {
843
- var value = getSnapshot(), _useState = useState({ inst: {
844
- value,
845
- getSnapshot
846
- } }), inst = _useState[0].inst, forceUpdate = _useState[1];
847
- useLayoutEffect(function() {
848
- inst.value = value;
849
- inst.getSnapshot = getSnapshot;
850
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
851
- }, [
852
- subscribe,
853
- value,
854
- getSnapshot
855
- ]);
856
- useEffect(function() {
857
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
858
- return subscribe(function() {
859
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
860
- });
861
- }, [subscribe]);
862
- useDebugValue(value);
863
- return value;
864
- }
865
- function checkIfSnapshotChanged(inst) {
866
- var latestGetSnapshot = inst.getSnapshot;
867
- inst = inst.value;
868
- try {
869
- var nextValue = latestGetSnapshot();
870
- return !objectIs(inst, nextValue);
871
- } catch (error) {
872
- return !0;
873
- }
874
- }
875
- function useSyncExternalStore$1(subscribe, getSnapshot) {
876
- return getSnapshot();
877
- }
878
- var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
879
- exports.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
880
- }));
881
- //#endregion
882
- //#region ../../node_modules/use-sync-external-store/shim/index.js
883
- var require_shim = /* @__PURE__ */ __commonJSMin(((exports, module) => {
884
- module.exports = require_use_sync_external_store_shim_production();
885
- }));
886
- //#endregion
887
- //#region ../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
888
- /**
889
- * @license React
890
- * use-sync-external-store-shim/with-selector.production.js
891
- *
892
- * Copyright (c) Meta Platforms, Inc. and affiliates.
893
- *
894
- * This source code is licensed under the MIT license found in the
895
- * LICENSE file in the root directory of this source tree.
896
- */
897
- var require_with_selector_production = /* @__PURE__ */ __commonJSMin(((exports) => {
898
- var React = (init__storybook_global_react(), __toCommonJS(_storybook_global_react_exports));
899
- var shim = require_shim();
900
- function is(x, y) {
901
- return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
902
- }
903
- var objectIs = "function" === typeof Object.is ? Object.is : is;
904
- var useSyncExternalStore = shim.useSyncExternalStore;
905
- var useRef = React.useRef;
906
- var useEffect = React.useEffect;
907
- var useMemo = React.useMemo;
908
- var useDebugValue = React.useDebugValue;
909
- exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
910
- var instRef = useRef(null);
911
- if (null === instRef.current) {
912
- var inst = {
913
- hasValue: !1,
914
- value: null
915
- };
916
- instRef.current = inst;
917
- } else inst = instRef.current;
918
- instRef = useMemo(function() {
919
- function memoizedSelector(nextSnapshot) {
920
- if (!hasMemo) {
921
- hasMemo = !0;
922
- memoizedSnapshot = nextSnapshot;
923
- nextSnapshot = selector(nextSnapshot);
924
- if (void 0 !== isEqual && inst.hasValue) {
925
- var currentSelection = inst.value;
926
- if (isEqual(currentSelection, nextSnapshot)) return memoizedSelection = currentSelection;
927
- }
928
- return memoizedSelection = nextSnapshot;
929
- }
930
- currentSelection = memoizedSelection;
931
- if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
932
- var nextSelection = selector(nextSnapshot);
933
- if (void 0 !== isEqual && isEqual(currentSelection, nextSelection)) return memoizedSnapshot = nextSnapshot, currentSelection;
934
- memoizedSnapshot = nextSnapshot;
935
- return memoizedSelection = nextSelection;
936
- }
937
- var hasMemo = !1, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
938
- return [function() {
939
- return memoizedSelector(getSnapshot());
940
- }, null === maybeGetServerSnapshot ? void 0 : function() {
941
- return memoizedSelector(maybeGetServerSnapshot());
942
- }];
943
- }, [
944
- getSnapshot,
945
- getServerSnapshot,
946
- selector,
947
- isEqual
948
- ]);
949
- var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
950
- useEffect(function() {
951
- inst.hasValue = !0;
952
- inst.value = value;
953
- }, [value]);
954
- useDebugValue(value);
955
- return value;
956
- };
957
- }));
958
- //#endregion
959
- //#region ../../node_modules/use-sync-external-store/shim/with-selector.js
960
- var require_with_selector = /* @__PURE__ */ __commonJSMin(((exports, module) => {
961
- module.exports = require_with_selector_production();
962
- }));
963
- //#endregion
964
822
  //#region ../../node_modules/memoizerific/memoizerific.js
965
823
  var require_memoizerific = /* @__PURE__ */ __commonJSMin(((exports, module) => {
966
824
  (function(f) {
@@ -2490,4 +2348,4 @@ var require_store2 = /* @__PURE__ */ __commonJSMin(((exports, module, this$1) =>
2490
2348
  })(this$1, this$1 && this$1.define);
2491
2349
  }));
2492
2350
  //#endregion
2493
- export { curriedTransparentize$1 as a, require_with_selector as c, useTransitionState as d, W as f, require_prop_types as h, init_esm as i, require_shim as l, q as m, require_react_is as n, init_polished_esm as o, init_index_module as p, dedent as r, require_memoizerific as s, require_store2 as t, init_useTransitionState as u };
2351
+ export { curriedTransparentize$1 as a, init_useTransitionState as c, init_index_module as d, q as f, init_esm as i, useTransitionState as l, require_react_is as n, init_polished_esm as o, require_prop_types as p, dedent as r, require_memoizerific as s, require_store2 as t, W as u };
@@ -1,4 +1,4 @@
1
- import { t as __commonJSMin } from "./runtime-EITvVbkG.js";
1
+ import { t as __commonJSMin } from "./runtime-BdGkqNEt.js";
2
2
  //#region ../../node_modules/invariant/browser.js
3
3
  /**
4
4
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -1,2 +1,2 @@
1
- import { t as init_globals_runtime } from "./_manager-chunks/globals-runtime-B-IeQLQu.js";
1
+ import { t as init_globals_runtime } from "./_manager-chunks/globals-runtime-CIcNS9TG.js";
2
2
  init_globals_runtime();
@@ -1,2 +1,2 @@
1
- import { t as init_runtime } from "./_manager-chunks/runtime-DrTLBe7a.js";
1
+ import { t as init_runtime } from "./_manager-chunks/runtime-BrwmuSZ1.js";
2
2
  init_runtime();
@@ -1,2 +1,2 @@
1
- import { $c as API_GroupEntry, Ac as useTestProviderStore, Al as experimental_requestResponse, Bc as useStatusStore, Bl as shortcutMatchesShortcut, Cl as useSharedState, Dc as fullTestProviderStore, Dl as _default, Ec as Tag, El as useStorybookState, Fl as eventMatchesShortcut, Gl as Addon_Type, Hc as useUniversalStore, Hl as shortcutToHumanString, Il as eventToShortcut, Jc as API, Kl as addons, Lc as fullStatusStore, Ll as isShortcutTaken, Ml as KeyboardEventLike, Nl as controlOrMetaKey, Oc as getTestProviderStoreById, Ol as isMacLike, Pl as controlOrMetaSymbol, Qc as API_EventMap, Rc as getStatusStoreByTypeId, Rl as keyToSymbol, Sl as useParameter, Tl as useStorybookApi, Uc as UniversalStore, Ul as Options, Vc as MockUniversalStore, Vl as shortcutToAriaKeyshortcuts, Wl as AddonStore, Xc as API_ComposedRef, Yc as API_ComponentEntry, Zc as API_DocsEntry, _l as useArgTypes, al as API_StoryEntry, ao as useServiceQuery, bl as useGlobalTypes, cl as Listener, dl as ManagerProvider, el as API_HashEntry, fl as ManagerProviderProps, gl as useAddonState, hl as typesX, il as API_RootEntry, io as registerService, jl as API_KeyCollection, kc as universalTestProviderStore, kl as RequestResponseError, ll as ManagerConsumer, ml as combineParameters, nl as API_LeafEntry, ol as ActiveTabs, oo as useServiceCommand, pl as State, rl as API_Refs, ro as getService, sl as Combo, tl as API_IndexHash, ul as ManagerContext, vl as useArgs, wl as useStoryPrepared, xl as useGlobals, yl as useChannel, zc as universalStatusStore, zl as optionOrAltSymbol } from "../chunk-CzmZhVrn.js";
1
+ import { $c as API_GroupEntry, Ac as useTestProviderStore, Al as experimental_requestResponse, Bc as useStatusStore, Bl as shortcutMatchesShortcut, Cl as useSharedState, Dc as fullTestProviderStore, Dl as _default, Ec as Tag, El as useStorybookState, Fl as eventMatchesShortcut, Gl as Addon_Type, Hc as useUniversalStore, Hl as shortcutToHumanString, Il as eventToShortcut, Jc as API, Kl as addons, Lc as fullStatusStore, Ll as isShortcutTaken, Ml as KeyboardEventLike, Nl as controlOrMetaKey, Oc as getTestProviderStoreById, Ol as isMacLike, Pl as controlOrMetaSymbol, Qc as API_EventMap, Rc as getStatusStoreByTypeId, Rl as keyToSymbol, Sl as useParameter, Tl as useStorybookApi, Uc as UniversalStore, Ul as Options, Vc as MockUniversalStore, Vl as shortcutToAriaKeyshortcuts, Wl as AddonStore, Xc as API_ComposedRef, Yc as API_ComponentEntry, Zc as API_DocsEntry, _l as useArgTypes, al as API_StoryEntry, ao as useServiceQuery, bl as useGlobalTypes, cl as Listener, dl as ManagerProvider, el as API_HashEntry, fl as ManagerProviderProps, gl as useAddonState, hl as typesX, il as API_RootEntry, io as registerService, jl as API_KeyCollection, kc as universalTestProviderStore, kl as RequestResponseError, ll as ManagerConsumer, ml as combineParameters, nl as API_LeafEntry, ol as ActiveTabs, oo as useServiceCommand, pl as State, rl as API_Refs, ro as getService, sl as Combo, tl as API_IndexHash, ul as ManagerContext, vl as useArgs, wl as useStoryPrepared, xl as useGlobals, yl as useChannel, zc as universalStatusStore, zl as optionOrAltSymbol } from "../chunk-DktrsDd6.js";
2
2
  export { API, API_EventMap, type API_KeyCollection, ActiveTabs, type Addon_Type as Addon, type AddonStore, type Listener as ChannelListener, Combo, type API_ComponentEntry as ComponentEntry, type API_ComposedRef as ComposedRef, ManagerConsumer as Consumer, type API_DocsEntry as DocsEntry, type API_GroupEntry as GroupEntry, type API_HashEntry as HashEntry, type API_IndexHash as IndexHash, type API_IndexHash as StoriesHash, KeyboardEventLike, type API_LeafEntry as LeafEntry, ManagerContext, ManagerProviderProps, ManagerProvider as Provider, type API_Refs as Refs, RequestResponseError, type API_RootEntry as RootEntry, State, type Options as StoreOptions, type API_StoryEntry as StoryEntry, Tag, addons, combineParameters, controlOrMetaKey, controlOrMetaSymbol, eventMatchesShortcut, eventToShortcut, MockUniversalStore as experimental_MockUniversalStore, getStatusStoreByTypeId as experimental_getStatusStore, getTestProviderStoreById as experimental_getTestProviderStore, experimental_requestResponse, useStatusStore as experimental_useStatusStore, useTestProviderStore as experimental_useTestProviderStore, getService, UniversalStore as internal_UniversalStore, fullStatusStore as internal_fullStatusStore, fullTestProviderStore as internal_fullTestProviderStore, universalStatusStore as internal_universalStatusStore, universalTestProviderStore as internal_universalTestProviderStore, useUniversalStore as internal_useUniversalStore, isMacLike, isShortcutTaken, keyToSymbol, _default as merge, optionOrAltSymbol, registerService, shortcutMatchesShortcut, shortcutToAriaKeyshortcuts, shortcutToHumanString, typesX as types, useAddonState, useArgTypes, useArgs, useChannel, useGlobalTypes, useGlobals, useParameter, useServiceCommand, useServiceQuery, useSharedState, useStoryPrepared, useStorybookApi, useStorybookState };
@@ -700,10 +700,10 @@ var TITLE_PATH_SEPARATOR = /\s*\/\s*/, denormalizeStoryParameters = ({
700
700
  return statusFilterFn && !statusFilterFn({ ...entry, statuses }) && !indexEntries.filter((item) => "parent" in item && item.parent === entry.id).some(
701
701
  (child) => statusFilterFn({ ...child, statuses: allStatuses[child.id] ?? {} })
702
702
  ) ? !1 : Object.values(statuses).some(({ value }) => value === "status-value:error") || filterFunctions.every((fn) => fn({ ...entry, statuses })) ? !0 : indexEntries.filter((item) => "parent" in item && item.parent === entry.id).some((child) => filterFunctions.every((fn) => fn({ ...child, statuses })));
703
- }), { sidebar = {} } = provider.getConfig(), { showRoots, collapsedRoots = [], renderAriaLabel, renderLabel } = sidebar, setShowRoots = typeof showRoots < "u", storiesHashOutOfOrder = entryValues.reduce((acc, item) => {
703
+ }), { sidebar = {} } = provider.getConfig(), { showRoots, flat, collapsedRoots = [], renderAriaLabel, renderLabel } = sidebar, setShowRoots = typeof showRoots < "u", storiesHashOutOfOrder = entryValues.reduce((acc, item) => {
704
704
  if (docsOptions.docsMode && item.type !== "docs")
705
705
  return acc;
706
- let { title } = item, groups = title.trim().split(TITLE_PATH_SEPARATOR), root = (!setShowRoots || showRoots) && groups.length > 1 ? [groups.shift()] : [], names = [...root, ...groups], paths = names.reduce((list, name, idx) => {
706
+ let { title } = item, groups = flat ? [title.trim()] : title.trim().split(TITLE_PATH_SEPARATOR), root = (!setShowRoots || showRoots) && groups.length > 1 ? [groups.shift()] : [], names = [...root, ...groups], paths = names.reduce((list, name, idx) => {
707
707
  let parent = idx > 0 && list[idx - 1], id = sanitize(parent ? `${parent}-${name}` : name);
708
708
  if (name.trim() === "")
709
709
  throw new Error(dedent`Invalid title ${title} ending in slash.`);
@@ -1,4 +1,4 @@
1
- import { St as StatusTypeId, _t as Status, pt as StorybookError } from "./chunk-CzmZhVrn.js";
1
+ import { St as StatusTypeId, _t as Status, pt as StorybookError } from "./chunk-DktrsDd6.js";
2
2
 
3
3
  //#region .dts-emit/code/core/src/manager-errors.d.ts
4
4
  /**
package/dist/mcp/index.js CHANGED
@@ -1,18 +1,18 @@
1
- import CJS_COMPAT_NODE_URL_7qov04rgzsv from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_7qov04rgzsv from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_7qov04rgzsv from "node:module";
1
+ import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_7qov04rgzsv.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_7qov04rgzsv.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.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
  package_default
14
- } from "../_node-chunks/chunk-MZ2GSR3G.js";
15
- import "../_node-chunks/chunk-A35J7YYA.js";
14
+ } from "../_node-chunks/chunk-TLB2LNUO.js";
15
+ import "../_node-chunks/chunk-OZBNKCKM.js";
16
16
 
17
17
  // src/mcp/index.ts
18
18
  import { McpServer } from "tmcp";
@@ -1,21 +1,21 @@
1
- import CJS_COMPAT_NODE_URL_7qov04rgzsv from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_7qov04rgzsv from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_7qov04rgzsv from "node:module";
1
+ import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_7qov04rgzsv.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_7qov04rgzsv.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.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
  walk
14
- } from "../_node-chunks/chunk-ZTFNOXZF.js";
14
+ } from "../_node-chunks/chunk-QQKVXB5Q.js";
15
15
  import {
16
16
  userModuleExtensions
17
- } from "../_node-chunks/chunk-TPSJW4CQ.js";
18
- import "../_node-chunks/chunk-A35J7YYA.js";
17
+ } from "../_node-chunks/chunk-3KKSPEAE.js";
18
+ import "../_node-chunks/chunk-OZBNKCKM.js";
19
19
 
20
20
  // src/mocking-utils/automock.ts
21
21
  import MagicString from "magic-string";
@@ -1,4 +1,4 @@
1
- import { i as StorybookConfig, n as NextJsParameters, r as NextJsTypes, t as FrameworkOptions } from "../chunk-DuDsmeM7.js";
1
+ import { i as NextJsTypes, n as FrameworkOptions, r as NextJsParameters, t as ForkbookConfig } from "../chunk-CFk6djyM.js";
2
2
  import { AddonTypes, InferTypes, PreviewAddonEntry } from "@aussieljk/forkbook/internal/csf";
3
3
  import { Args as Args$1, ComposedStoryFn, NamedOrDefaultProjectAnnotations, NormalizedProjectAnnotations, ProjectAnnotations as ProjectAnnotations$1, Store_CSFExports, StoriesWithPartialProps, StoryAnnotationsOrFn } from "@aussieljk/forkbook/internal/types";
4
4
  import { Meta as Meta$1, ReactPreview, ReactRenderer, ReactTypes } from "@aussieljk/forkbook/react";
@@ -89,4 +89,4 @@ declare function definePreview<Addons extends PreviewAddonEntry[]>(preview: {
89
89
  } & ProjectAnnotations$1<ReactTypes & NextJsTypes & InferTypes<Addons>>): NextPreview<InferTypes<Addons>>;
90
90
  interface NextPreview<T extends AddonTypes> extends ReactPreview<NextJsTypes & T> {}
91
91
  //#endregion
92
- export { FrameworkOptions, NextJsParameters, NextJsTypes, NextPreview, StorybookConfig, composeStories, composeStory, definePreview, setProjectAnnotations };
92
+ export { ForkbookConfig, FrameworkOptions, NextJsParameters, NextJsTypes, NextPreview, composeStories, composeStory, definePreview, setProjectAnnotations };
@@ -1,6 +1,6 @@
1
- import { i as StorybookConfig } from "../../chunk-DuDsmeM7.js";
1
+ import { t as ForkbookConfig } from "../../chunk-CFk6djyM.js";
2
2
 
3
3
  //#region .dts-emit/code/core/src/nextjs-vite/node/index.d.ts
4
- declare function defineMain(config: StorybookConfig): StorybookConfig;
4
+ declare function defineMain(config: ForkbookConfig): ForkbookConfig;
5
5
  //#endregion
6
6
  export { defineMain };
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_7qov04rgzsv from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_7qov04rgzsv from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_7qov04rgzsv from "node:module";
1
+ import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_7qov04rgzsv.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_7qov04rgzsv.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
- import "../../_node-chunks/chunk-A35J7YYA.js";
12
+ import "../../_node-chunks/chunk-OZBNKCKM.js";
13
13
 
14
14
  // src/nextjs-vite/node/index.ts
15
15
  function defineMain(config) {
@@ -0,0 +1,68 @@
1
+ //#region .dts-emit/code/core/src/nextjs-vite/node-stand-ins/index.d.ts
2
+ /**
3
+ * Browser stand-ins for the small part of `node:fs` and `node:path` that async server pages use
4
+ * to read project files at build time. The nextjs-vite preset aliases the Node modules to virtual
5
+ * modules that call these functions (see `plugin.ts`).
6
+ */
7
+ /** Sets the project root. `process.cwd()` and `path.resolve()` use it. */
8
+ declare function setProjectRoot(root: string): void;
9
+ declare function getProjectRoot(): string;
10
+ declare const sep = "/";
11
+ declare const delimiter = ":";
12
+ declare function isAbsolute(p: string): boolean;
13
+ declare function normalize(p: string): string;
14
+ declare function join(...parts: string[]): string;
15
+ declare function resolve(...parts: string[]): string;
16
+ declare function dirname(p: string): string;
17
+ declare function basename(p: string, ext?: string): string;
18
+ declare function extname(p: string): string;
19
+ declare function relative(from: string, to: string): string;
20
+ declare function parse(p: string): {
21
+ root: string;
22
+ dir: string;
23
+ base: string;
24
+ ext: string;
25
+ name: string;
26
+ };
27
+ declare function format(p: {
28
+ dir?: string;
29
+ root?: string;
30
+ base?: string;
31
+ name?: string;
32
+ ext?: string;
33
+ }): string;
34
+ declare const pathFunctions: {
35
+ sep: string;
36
+ delimiter: string;
37
+ isAbsolute: typeof isAbsolute;
38
+ normalize: typeof normalize;
39
+ join: typeof join;
40
+ resolve: typeof resolve;
41
+ dirname: typeof dirname;
42
+ basename: typeof basename;
43
+ extname: typeof extname;
44
+ relative: typeof relative;
45
+ parse: typeof parse;
46
+ format: typeof format;
47
+ };
48
+ declare const path: typeof pathFunctions & {
49
+ posix: typeof pathFunctions;
50
+ };
51
+ type Callback = (error: Error | null, data?: string | Uint8Array) => void;
52
+ /**
53
+ * Makes the fs stand-in.
54
+ *
55
+ * @param files File contents. Each key is a path from the project root, as `import.meta.glob`
56
+ * gives it (`./content/x.md` or `/content/x.md`).
57
+ */
58
+ declare function createFs(files: Record<string, string>): {
59
+ readFileSync: (p: unknown, options?: unknown) => string | Uint8Array;
60
+ existsSync: (p: unknown) => boolean;
61
+ readFile: (p: unknown, options?: unknown, callback?: Callback) => void;
62
+ promises: {
63
+ readFile: (p: unknown, options?: unknown) => Promise<string | Uint8Array<ArrayBufferLike>>;
64
+ access: (p: unknown) => Promise<void>;
65
+ };
66
+ };
67
+ //#endregion
68
+ export { basename, createFs, delimiter, dirname, extname, format, getProjectRoot, isAbsolute, join, normalize, parse, path, relative, resolve, sep, setProjectRoot };
@@ -0,0 +1,145 @@
1
+ import "../../_browser-chunks/chunk-IMSF75WX.js";
2
+
3
+ // src/nextjs-vite/node-stand-ins/index.ts
4
+ var projectRoot = "/";
5
+ function setProjectRoot(root) {
6
+ projectRoot = normalize(root.replace(/\\/g, "/")).replace(/(.)\/$/, "$1");
7
+ let g = globalThis;
8
+ g.process ??= { env: {} }, g.process.cwd = () => projectRoot;
9
+ }
10
+ function getProjectRoot() {
11
+ return projectRoot;
12
+ }
13
+ var sep = "/", delimiter = ":";
14
+ function isAbsolute(p) {
15
+ return p.startsWith("/");
16
+ }
17
+ function normalize(p) {
18
+ if (p === "") return ".";
19
+ let absolute = isAbsolute(p), trailing = p.endsWith("/"), parts = [];
20
+ for (let part of p.split("/"))
21
+ part === "" || part === "." || (part === ".." ? parts.length && parts[parts.length - 1] !== ".." ? parts.pop() : absolute || parts.push("..") : parts.push(part));
22
+ let out = parts.join("/");
23
+ return absolute ? "/" + out + (trailing && out ? "/" : "") : out === "" ? trailing ? "./" : "." : trailing ? out + "/" : out;
24
+ }
25
+ function join(...parts) {
26
+ return normalize(parts.filter((p) => p !== "").join("/"));
27
+ }
28
+ function resolve(...parts) {
29
+ let out = "";
30
+ for (let i = parts.length - 1; i >= 0 && !isAbsolute(out); i--)
31
+ parts[i] && (out = out ? `${parts[i]}/${out}` : parts[i]);
32
+ return isAbsolute(out) || (out = out ? `${projectRoot}/${out}` : projectRoot), normalize(out).replace(/(.)\/$/, "$1");
33
+ }
34
+ function dirname(p) {
35
+ let trimmed = p.length > 1 ? p.replace(/\/+$/, "") : p, index = trimmed.lastIndexOf("/");
36
+ return index === -1 ? "." : index === 0 ? "/" : trimmed.slice(0, index);
37
+ }
38
+ function basename(p, ext) {
39
+ let trimmed = p.length > 1 ? p.replace(/\/+$/, "") : p, base = trimmed.slice(trimmed.lastIndexOf("/") + 1);
40
+ return ext && base.endsWith(ext) && base !== ext ? base.slice(0, -ext.length) : base;
41
+ }
42
+ function extname(p) {
43
+ let base = basename(p), index = base.lastIndexOf(".");
44
+ return index <= 0 ? "" : base.slice(index);
45
+ }
46
+ function relative(from, to) {
47
+ let a = resolve(from).split("/").filter(Boolean), b = resolve(to).split("/").filter(Boolean), i = 0;
48
+ for (; i < a.length && i < b.length && a[i] === b[i]; ) i++;
49
+ return [...Array(a.length - i).fill(".."), ...b.slice(i)].join("/");
50
+ }
51
+ function parse(p) {
52
+ let base = basename(p), ext = extname(p);
53
+ return {
54
+ root: isAbsolute(p) ? "/" : "",
55
+ dir: dirname(p),
56
+ base,
57
+ ext,
58
+ name: ext ? base.slice(0, -ext.length) : base
59
+ };
60
+ }
61
+ function format(p) {
62
+ let base = p.base ?? `${p.name ?? ""}${p.ext ?? ""}`, dir = p.dir ?? p.root ?? "";
63
+ return dir ? dir.endsWith("/") ? dir + base : `${dir}/${base}` : base;
64
+ }
65
+ var pathFunctions = {
66
+ sep,
67
+ delimiter,
68
+ isAbsolute,
69
+ normalize,
70
+ join,
71
+ resolve,
72
+ dirname,
73
+ basename,
74
+ extname,
75
+ relative,
76
+ parse,
77
+ format
78
+ }, path = {
79
+ ...pathFunctions,
80
+ posix: pathFunctions
81
+ };
82
+ function notFound(p, syscall) {
83
+ let error = new Error(
84
+ `ENOENT: no such file or directory, ${syscall} '${p}'. In the browser, Forkbook can only read the text files of the project.`
85
+ );
86
+ return error.code = "ENOENT", error.path = p, error.syscall = syscall, error;
87
+ }
88
+ function toPath(p) {
89
+ return p instanceof URL ? decodeURIComponent(p.pathname) : String(p);
90
+ }
91
+ function encodingOf(options) {
92
+ return typeof options == "string" ? options : options?.encoding;
93
+ }
94
+ function createFs(files) {
95
+ let byPath = /* @__PURE__ */ new Map();
96
+ for (let [key, value] of Object.entries(files))
97
+ byPath.set(normalize(key.replace(/^\.?\//, "")), value);
98
+ let relativeKey = (p) => relative(projectRoot, resolve(toPath(p)));
99
+ function readFileSync(p, options) {
100
+ let content = byPath.get(relativeKey(p));
101
+ if (content === void 0) throw notFound(toPath(p), "open");
102
+ return encodingOf(options) ? content : new TextEncoder().encode(content);
103
+ }
104
+ function existsSync(p) {
105
+ let key = relativeKey(p);
106
+ if (key === "" || byPath.has(key)) return !0;
107
+ let prefix = key + "/";
108
+ for (let file of byPath.keys()) if (file.startsWith(prefix)) return !0;
109
+ return !1;
110
+ }
111
+ function readFile(p, options, callback) {
112
+ let cb = typeof options == "function" ? options : callback, opts = typeof options == "function" ? void 0 : options;
113
+ queueMicrotask(() => {
114
+ try {
115
+ cb?.(null, readFileSync(p, opts));
116
+ } catch (error) {
117
+ cb?.(error);
118
+ }
119
+ });
120
+ }
121
+ return { readFileSync, existsSync, readFile, promises: {
122
+ readFile: async (p, options) => readFileSync(p, options),
123
+ access: async (p) => {
124
+ if (!existsSync(p)) throw notFound(toPath(p), "access");
125
+ }
126
+ } };
127
+ }
128
+ export {
129
+ basename,
130
+ createFs,
131
+ delimiter,
132
+ dirname,
133
+ extname,
134
+ format,
135
+ getProjectRoot,
136
+ isAbsolute,
137
+ join,
138
+ normalize,
139
+ parse,
140
+ path,
141
+ relative,
142
+ resolve,
143
+ sep,
144
+ setProjectRoot
145
+ };