@aussieljk/forkbook 0.0.1-5 → 0.0.1-7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. package/dist/_browser-chunks/{Color-GTF4GM7L.js → Color-2YRIFQLC.js} +1 -1
  2. package/dist/_browser-chunks/WithTooltip-4R5JMWZ7.js +196 -0
  3. package/dist/_browser-chunks/{chunk-MJY6ITYT.js → chunk-4EFKUJG2.js} +10 -10
  4. package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
  5. package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-DAUHYZUB.js} +550 -1621
  6. package/dist/_browser-chunks/chunk-E47B5255.js +1149 -0
  7. package/dist/_browser-chunks/{chunk-K6GRZSXS.js → chunk-EQKMUQF3.js} +4 -3
  8. package/dist/_browser-chunks/{chunk-GU3X2J4S.js → chunk-FRAOQJDI.js} +3 -1
  9. package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-H4ZHAXN3.js} +1 -1
  10. package/dist/_browser-chunks/{chunk-HOSBMS2F.js → chunk-HTL5ODCB.js} +1 -1
  11. package/dist/_browser-chunks/{chunk-ZLWA5RIE.js → chunk-I4ATZPNZ.js} +1 -1
  12. package/dist/_browser-chunks/{chunk-6SHRDXGF.js → chunk-IJYLSHY7.js} +173 -87
  13. package/dist/_browser-chunks/{chunk-SZCSXISG.js → chunk-NA4ITZTK.js} +7 -5
  14. package/dist/_browser-chunks/chunk-NGMQJMCY.js +53 -0
  15. package/dist/_browser-chunks/{chunk-K2B36HKM.js → chunk-O24AZJZ7.js} +1 -1
  16. package/dist/_browser-chunks/{chunk-NMRSYACM.js → chunk-SFMQDIN2.js} +4 -3
  17. package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
  18. package/dist/_browser-chunks/chunk-WVF42CP2.js +6027 -0
  19. package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-YYWKZ7O3.js} +3 -1
  20. package/dist/_node-chunks/{attached-runtime-IOE3BXIY.js → attached-runtime-WFZCCGUB.js} +29 -29
  21. package/dist/_node-chunks/{builder-manager-GDFEGD72.js → builder-manager-DHKHRZK4.js} +155 -148
  22. package/dist/_node-chunks/{chunk-M2QB5ALN.js → chunk-3ZCGT6VF.js} +6 -6
  23. package/dist/_node-chunks/{chunk-SUJXQU74.js → chunk-4HGC3G6B.js} +46 -15
  24. package/dist/_node-chunks/{chunk-WMQ2VCTF.js → chunk-5PYQ573S.js} +7 -7
  25. package/dist/_node-chunks/{chunk-TYCDPVIH.js → chunk-64JPAW3T.js} +6 -6
  26. package/dist/_node-chunks/chunk-6CB3XSQ2.js +495 -0
  27. package/dist/_node-chunks/{chunk-MHDKWHOA.js → chunk-6K3ZE4HN.js} +6 -6
  28. package/dist/_node-chunks/{chunk-3DCJB2D4.js → chunk-6QZ3PX5R.js} +6 -6
  29. package/dist/_node-chunks/{chunk-6DOJKR3V.js → chunk-7HVDL6M3.js} +29843 -51588
  30. package/dist/_node-chunks/chunk-7PMQPS5E.js +347 -0
  31. package/dist/_node-chunks/{chunk-L5CY6HKG.js → chunk-7V5AOV2J.js} +7 -7
  32. package/dist/_node-chunks/{chunk-AXJJB2K6.js → chunk-7VHCAGBJ.js} +8 -8
  33. package/dist/_node-chunks/{chunk-3DX6THMV.js → chunk-ATX7SHS7.js} +8 -8
  34. package/dist/_node-chunks/{chunk-SDXU22OH.js → chunk-BQC6WCUS.js} +6 -6
  35. package/dist/_node-chunks/{chunk-D6B2DRQZ.js → chunk-BR4WDRY6.js} +8 -8
  36. package/dist/_node-chunks/{chunk-SJZQ44OR.js → chunk-BRHJ4P3A.js} +6 -6
  37. package/dist/_node-chunks/{chunk-N4FLP7AO.js → chunk-CBBFNVFZ.js} +7 -7
  38. package/dist/_node-chunks/{chunk-PHXCOTMO.js → chunk-CDFQORVD.js} +34 -949
  39. package/dist/_node-chunks/{chunk-SR3BCYEH.js → chunk-CENNLCU7.js} +6 -6
  40. package/dist/_node-chunks/{chunk-OTFIQXHR.js → chunk-CNMMDQC3.js} +27 -50
  41. package/dist/_node-chunks/{chunk-E4C2H45J.js → chunk-DMDZPUHM.js} +6 -6
  42. package/dist/_node-chunks/{chunk-45LRLOYO.js → chunk-DT45EUDD.js} +60 -134
  43. package/dist/_node-chunks/{chunk-KQFHT7SW.js → chunk-EAL4RVEF.js} +6 -6
  44. package/dist/_node-chunks/chunk-EFFWFE6W.js +11 -0
  45. package/dist/_node-chunks/{chunk-MDGNN3FJ.js → chunk-ESCZ2NSB.js} +6 -6
  46. package/dist/_node-chunks/{chunk-T2I453AJ.js → chunk-ESZIQTUH.js} +7 -7
  47. package/dist/_node-chunks/{chunk-HWY2CAUH.js → chunk-F3SAYS4R.js} +6 -6
  48. package/dist/_node-chunks/{chunk-LSP54OYM.js → chunk-FTUQ7T3V.js} +25 -8
  49. package/dist/_node-chunks/{chunk-AAAUVDWT.js → chunk-FVFSSIGA.js} +10 -10
  50. package/dist/_node-chunks/{chunk-GS4VNNSS.js → chunk-G2AANC4A.js} +6 -6
  51. package/dist/_node-chunks/{chunk-SAAQFJL4.js → chunk-HUMAXGH2.js} +6 -6
  52. package/dist/_node-chunks/{chunk-A4XRNDN4.js → chunk-I535GEPH.js} +7 -7
  53. package/dist/_node-chunks/{chunk-CK4EHW3K.js → chunk-J3Q56GX3.js} +25 -25
  54. package/dist/_node-chunks/{chunk-U47PBQZ3.js → chunk-JDKYP7FW.js} +10 -10
  55. package/dist/_node-chunks/{chunk-7TUSIVWS.js → chunk-JED5F3H2.js} +6 -6
  56. package/dist/_node-chunks/{chunk-UM5G27IC.js → chunk-JMS4H7QB.js} +7 -7
  57. package/dist/_node-chunks/{chunk-GR65OLAH.js → chunk-JOSJ64KD.js} +7 -7
  58. package/dist/_node-chunks/{chunk-XUHEL63G.js → chunk-JPHSU5OI.js} +6 -6
  59. package/dist/_node-chunks/{chunk-NYWD5LYM.js → chunk-JQICISDD.js} +6 -6
  60. package/dist/_node-chunks/{chunk-I3DKGHVD.js → chunk-JTLOSDYL.js} +9 -9
  61. package/dist/_node-chunks/{chunk-5KAJVK4E.js → chunk-K5RUOW42.js} +7 -7
  62. package/dist/_node-chunks/{chunk-UKEJISQU.js → chunk-KHWCZDIW.js} +650 -9
  63. package/dist/_node-chunks/chunk-KWER36VB.js +20 -0
  64. package/dist/_node-chunks/{chunk-YTBTCM22.js → chunk-LJTP5PAJ.js} +6 -6
  65. package/dist/_node-chunks/chunk-LZYYZ62Y.js +19 -0
  66. package/dist/_node-chunks/{chunk-CGXW2HFE.js → chunk-M7ZVSBNU.js} +6 -6
  67. package/dist/_node-chunks/{chunk-BTFSFATC.js → chunk-MBIIJTGQ.js} +11 -10
  68. package/dist/_node-chunks/{chunk-VBSVLIXU.js → chunk-MF3AT3JQ.js} +6 -6
  69. package/dist/_node-chunks/{chunk-AX2ALHBK.js → chunk-MF5BYASO.js} +9 -6
  70. package/dist/_node-chunks/{chunk-JJNO3SFI.js → chunk-MJFMB4WD.js} +9 -9
  71. package/dist/_node-chunks/{chunk-E4TBS4MV.js → chunk-MRWBN46D.js} +8 -8
  72. package/dist/_node-chunks/{chunk-QQXFB4YA.js → chunk-MZQXEAI6.js} +9 -9
  73. package/dist/_node-chunks/{chunk-TZ2TZW2K.js → chunk-NLPC2DDQ.js} +6 -6
  74. package/dist/_node-chunks/{chunk-HCX5R46Q.js → chunk-NQAFLS5U.js} +8 -8
  75. package/dist/_node-chunks/{chunk-5LE7GXEC.js → chunk-NSZGBFPR.js} +6 -6
  76. package/dist/_node-chunks/{chunk-WHDCECIV.js → chunk-NUYBFTOU.js} +7 -7
  77. package/dist/_node-chunks/{chunk-RCPKLP3X.js → chunk-O7VJA7SM.js} +7 -7
  78. package/dist/_node-chunks/{chunk-2GY2FKLH.js → chunk-OGJ7LDX3.js} +7 -7
  79. package/dist/_node-chunks/{chunk-F4Q7OCCN.js → chunk-OWT6AVWK.js} +8 -8
  80. package/dist/_node-chunks/{chunk-LCXIUTOU.js → chunk-P3GOMPP3.js} +7 -7
  81. package/dist/_node-chunks/{chunk-KCAPE7OJ.js → chunk-PQLXHVWK.js} +6 -6
  82. package/dist/_node-chunks/{chunk-V45RRBTK.js → chunk-Q6QRFKHB.js} +8 -8
  83. package/dist/_node-chunks/{chunk-VJSOHPVD.js → chunk-QSP42ZBM.js} +6 -6
  84. package/dist/_node-chunks/{chunk-7XUQM6SR.js → chunk-QWDR5OWQ.js} +14 -14
  85. package/dist/_node-chunks/{chunk-YLKS7U3M.js → chunk-QWRQXG2V.js} +8 -8
  86. package/dist/_node-chunks/{chunk-4WO3GNZQ.js → chunk-R6AKCXPH.js} +6 -6
  87. package/dist/_node-chunks/{chunk-AXQ6LLSE.js → chunk-RCY7TLET.js} +8 -8
  88. package/dist/_node-chunks/chunk-RKKMQA6N.js +620 -0
  89. package/dist/_node-chunks/{chunk-BV3QRFE6.js → chunk-RZ7UEP4N.js} +6 -6
  90. package/dist/_node-chunks/{chunk-OSJFTZ5N.js → chunk-S3HB4EWT.js} +6 -6
  91. package/dist/_node-chunks/{chunk-QZVFIEOM.js → chunk-SHH7JROR.js} +6 -6
  92. package/dist/_node-chunks/{chunk-Q33BYVLY.js → chunk-SWHTDOB4.js} +7 -7
  93. package/dist/_node-chunks/{chunk-ZPPVG262.js → chunk-SZYMLCHF.js} +6 -6
  94. package/dist/_node-chunks/{chunk-ES5QZBSB.js → chunk-TOGDRW2W.js} +6 -6
  95. package/dist/_node-chunks/{chunk-J64XMUPF.js → chunk-U3E7E4Q2.js} +10 -10
  96. package/dist/_node-chunks/{chunk-RECGEABN.js → chunk-U6DHF3RM.js} +7 -7
  97. package/dist/_node-chunks/{chunk-OB2XHL53.js → chunk-UAG3XK32.js} +31 -30
  98. package/dist/_node-chunks/{chunk-BBD2KUV4.js → chunk-UF6Q6L5C.js} +22 -20
  99. package/dist/_node-chunks/chunk-UGXN7JTT.js +18 -0
  100. package/dist/_node-chunks/{chunk-EWAGCBER.js → chunk-UNCBLHIP.js} +8 -8
  101. package/dist/_node-chunks/chunk-UPJMGWMZ.js +25 -0
  102. package/dist/_node-chunks/chunk-UVV24PG4.js +69 -0
  103. package/dist/_node-chunks/{chunk-E6KXSYWR.js → chunk-WBB4NQ6H.js} +6 -6
  104. package/dist/_node-chunks/{chunk-B2IOB2V3.js → chunk-WHOF2BJB.js} +7 -7
  105. package/dist/_node-chunks/{chunk-FA36CEN4.js → chunk-WME5NEJA.js} +6 -6
  106. package/dist/_node-chunks/{chunk-BFZG4UTW.js → chunk-X63YMAHP.js} +7 -7
  107. package/dist/_node-chunks/chunk-Y2GHAOKI.js +25 -0
  108. package/dist/_node-chunks/{chunk-AXG3EMKS.js → chunk-Y6G64J5S.js} +7 -15
  109. package/dist/_node-chunks/chunk-YVIPYJ53.js +2609 -0
  110. package/dist/_node-chunks/{chunk-NDGTNFUN.js → chunk-YZWUD7I5.js} +16 -13
  111. package/dist/_node-chunks/{chunk-VN3A5CEH.js → chunk-ZIDIYSJQ.js} +7 -7
  112. package/dist/_node-chunks/chunk-ZSGOW4WQ.js +20 -0
  113. package/dist/_node-chunks/dist-5EG56KTF.js +16 -0
  114. package/dist/_node-chunks/dist-UEXSNGGQ.js +27 -0
  115. package/dist/_node-chunks/{local-runtime-RW6AAWSX.js → local-runtime-UN5QK2SE.js} +20 -20
  116. package/dist/_node-chunks/{mdx-plugin-BKWCT6CB.js → mdx-plugin-6M6CMNL3.js} +2263 -130
  117. package/dist/_node-chunks/{monorepo-ZFJ6HM34.js → monorepo-253VKW4B.js} +11 -11
  118. package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-C3EW4VJW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-3ZOE54OQ.js} +11 -11
  119. package/dist/_node-chunks/optimized-tests-JSWLRMEI.js +22 -0
  120. package/dist/_node-chunks/{pattern-copy-play-2ZMJNCBS.js → pattern-copy-play-CCCJRMSL.js} +9 -9
  121. package/dist/_node-chunks/postinstallAddon-VMANBHPR.js +20 -0
  122. package/dist/_node-chunks/{rehype-external-links-RT5Z62RV.js → rehype-external-links-LJTPLCGD.js} +9 -9
  123. package/dist/_node-chunks/{rehype-slug-H5TWHJ6G.js → rehype-slug-KQI7ULEZ.js} +9 -9
  124. package/dist/_node-chunks/{relaxed-limits-DYLWZGE4.js → relaxed-limits-MUE2NI7S.js} +11 -11
  125. package/dist/_node-chunks/{run-65LLGSVR.js → run-PGZMPNMS.js} +246 -13
  126. package/dist/_node-chunks/{run-BQQLK454.js → run-SYLR25HA.js} +17 -17
  127. package/dist/_node-chunks/session-id-J4A25UQ6.js +23 -0
  128. package/dist/_node-chunks/{setup-NEO7XX66.js → setup-XZWSUYPG.js} +8 -8
  129. package/dist/_node-chunks/{vitest.config.4.template-6P3FZQTY.js → vitest.config.4.template-T25YYRGV.js} +7 -7
  130. package/dist/actions/decorator.js +2 -1
  131. package/dist/actions/index.js +2 -1
  132. package/dist/addon-a11y/index.js +2 -1
  133. package/dist/addon-a11y/manager.js +6 -5
  134. package/dist/addon-a11y/preset.js +7 -7
  135. package/dist/addon-a11y/preview.js +2 -1
  136. package/dist/addon-docs/blocks.js +28 -14
  137. package/dist/addon-docs/manager.js +2 -2
  138. package/dist/addon-docs/preset.js +10 -10
  139. package/dist/addon-links/index.js +3 -2
  140. package/dist/addon-links/preview.d.ts +1 -1
  141. package/dist/addon-links/preview.js +3 -2
  142. package/dist/addon-links/react/index.js +2 -1
  143. package/dist/addon-mcp/preset.js +8 -8
  144. package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +21 -44
  145. package/dist/addon-ondevice-actions/index.js +5 -1
  146. package/dist/addon-ondevice-actions/register.js +5 -1
  147. package/dist/addon-themes/postinstall.js +7 -7
  148. package/dist/addon-vitest/constants.js +8 -8
  149. package/dist/addon-vitest/manager.js +2 -2
  150. package/dist/addon-vitest/node/coverage-reporter.js +8 -8
  151. package/dist/addon-vitest/node/vitest.js +16 -16
  152. package/dist/addon-vitest/postinstall.js +10 -10
  153. package/dist/addon-vitest/preset.js +15 -16
  154. package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
  155. package/dist/addon-vitest/vitest-plugin/index.js +17 -17
  156. package/dist/babel/index.d.ts +91 -842
  157. package/dist/babel/index.js +13 -19
  158. package/dist/bin/core.js +61 -60
  159. package/dist/bin/dispatcher.js +16 -11
  160. package/dist/bin/loader.js +16 -15
  161. package/dist/builder-vite/index.js +15 -15
  162. package/dist/builder-vite/preset.js +13 -13
  163. package/dist/{chunk-Jf7j2Ot0.d.ts → chunk-BGhyFTJO.d.ts} +1 -1
  164. package/dist/{chunk-Ce6uhJuR.d.ts → chunk-B_ZhEPlo.d.ts} +1 -1
  165. package/dist/{chunk-CZHsX9Zo.d.ts → chunk-CMaYrou5.d.ts} +1 -1
  166. package/dist/chunk-CV4-Z2pn.d.ts +30 -0
  167. package/dist/{chunk-B2t1tGRh.d.ts → chunk-CYuvV2sR.d.ts} +11 -13
  168. package/dist/{chunk-DpljNJTz.d.ts → chunk-LrH1y9J2.d.ts} +39 -0
  169. package/dist/cli/index.d.ts +13 -866
  170. package/dist/cli/index.js +42 -4952
  171. package/dist/cli/tools/sdk/child-host.d.ts +1 -1
  172. package/dist/cli/tools/sdk/child-host.js +17 -17
  173. package/dist/cli/tools/sdk/index.d.ts +1 -1
  174. package/dist/cli/tools/sdk/index.js +18 -18
  175. package/dist/cli-commands/bin/index.js +7 -7
  176. package/dist/client-logger/index.js +3 -1
  177. package/dist/common/index.d.ts +5 -4
  178. package/dist/common/index.js +35 -37
  179. package/dist/components/index.d.ts +14 -231
  180. package/dist/components/index.js +2512 -8359
  181. package/dist/core-events/index.d.ts +3 -2
  182. package/dist/core-events/index.js +3 -1
  183. package/dist/core-server/index.d.ts +2 -2
  184. package/dist/core-server/index.js +450 -147
  185. package/dist/core-server/presets/common-manager.js +62 -866
  186. package/dist/core-server/presets/common-override-preset.js +12 -10
  187. package/dist/core-server/presets/common-preset.js +39 -40
  188. package/dist/create/bin/index.js +7 -7
  189. package/dist/create/index.js +15 -15
  190. package/dist/csf/index.d.ts +1 -1
  191. package/dist/csf/index.js +27 -93
  192. package/dist/csf-tools/index.d.ts +14 -12
  193. package/dist/csf-tools/index.js +14 -14
  194. package/dist/instrumenter/index.js +3 -1
  195. package/dist/manager/_manager-chunks/{globals-runtime-BgVwdR45.js → globals-runtime-4fCHtNC6.js} +1 -1
  196. package/dist/manager/_manager-chunks/{globals-runtime-DW1HVuLt.js → globals-runtime-BKPOYSwp.js} +410 -379
  197. package/dist/manager/_manager-chunks/{globals-runtime-zVfMhZAt.js → globals-runtime-BMIT8BJb.js} +1 -1
  198. package/dist/manager/_manager-chunks/{globals-runtime-CUBVmgcG.js → globals-runtime-BO0pfoqL.js} +4 -4
  199. package/dist/manager/_manager-chunks/{globals-runtime-Bke4A4DG.js → globals-runtime-BZKYJxYC.js} +1 -1
  200. package/dist/manager/_manager-chunks/{globals-runtime-D_YKR9nf.js → globals-runtime-Bpc_ftuT.js} +1252 -539
  201. package/dist/manager/_manager-chunks/{globals-runtime-DCOX9nD5.js → globals-runtime-CBviMKtt.js} +1 -17
  202. package/dist/manager/_manager-chunks/{globals-runtime-CTB3rhS1.js → globals-runtime-CI-C7ncS.js} +10 -10
  203. package/dist/manager/_manager-chunks/{globals-runtime-Cr3nYYcT.js → globals-runtime-CI_p54Ha.js} +59 -60
  204. package/dist/manager/_manager-chunks/{globals-runtime-CiLcg4q9.js → globals-runtime-CTyYXvUm.js} +1 -1
  205. package/dist/manager/_manager-chunks/{globals-runtime-DqNrRmOM.js → globals-runtime-CoCzM1V_.js} +93 -2146
  206. package/dist/manager/_manager-chunks/{globals-runtime-CXKb33hg.js → globals-runtime-CzEhVGVp.js} +141 -54
  207. package/dist/manager/_manager-chunks/{globals-runtime-CF4o9_wT.js → globals-runtime-D82vqOGq.js} +2 -1
  208. package/dist/manager/_manager-chunks/{globals-runtime-ALpzCL93.js → globals-runtime-DB8fVA5g.js} +2 -145
  209. package/dist/manager/_manager-chunks/{globals-runtime-DMvB3-IM.js → globals-runtime-DMq1Phbl.js} +153 -141
  210. package/dist/manager/_manager-chunks/globals-runtime-DOPUchia.js +5282 -0
  211. package/dist/manager/_manager-chunks/{globals-runtime-BcNHymiF.js → globals-runtime-Dbt08xWQ.js} +1 -1
  212. package/dist/manager/_manager-chunks/{globals-runtime-m07udJ_K.js → globals-runtime-kmPSyf3j.js} +637 -1730
  213. package/dist/manager/_manager-chunks/{runtime-DMig8mT7.js → runtime-5o_11Jae.js} +4 -3
  214. package/dist/manager/_manager-chunks/{runtime-DrjpEyLM.js → runtime-B4U0u9p4.js} +5 -147
  215. package/dist/manager/_manager-chunks/{runtime-B-eSQdxk.js → runtime-BM30BmeT.js} +503 -44
  216. package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
  217. package/dist/manager/_manager-chunks/{runtime-a5zd7km2.js → runtime-Cf0p9DUx.js} +5 -531
  218. package/dist/manager/_manager-chunks/{runtime-Cdz2BHhM.js → runtime-D-nYLsdk.js} +57 -34
  219. package/dist/manager/_manager-chunks/runtime-D09XMY6V.js +294 -0
  220. package/dist/manager/_manager-chunks/{runtime-Bldwclun.js → runtime-DvrwKw7z.js} +92 -303
  221. package/dist/manager/_manager-chunks/{runtime-DGHNKNQl.js → runtime-DzxaTqVN.js} +10 -29
  222. package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
  223. package/dist/manager/_manager-chunks/{runtime-Cmu7D8A0.js → runtime-ecY5qnmo.js} +193 -184
  224. package/dist/manager/globals-runtime.js +1 -1
  225. package/dist/manager/runtime.js +1 -1
  226. package/dist/manager-api/index.d.ts +1 -1
  227. package/dist/manager-api/index.js +22 -28
  228. package/dist/manager-errors.d.ts +1 -1
  229. package/dist/mcp/index.js +8 -8
  230. package/dist/mocking-utils/index.js +16 -11
  231. package/dist/nextjs-vite/index.js +3 -2
  232. package/dist/nextjs-vite/node/index.js +7 -7
  233. package/dist/nextjs-vite/node-stand-ins/index.d.ts +68 -0
  234. package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
  235. package/dist/nextjs-vite/preset.js +93 -14
  236. package/dist/nextjs-vite/vite-plugin/index.js +7 -7
  237. package/dist/nextjs-vite-plugin/index.d.ts +1 -2
  238. package/dist/nextjs-vite-plugin/index.js +12 -27
  239. package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
  240. package/dist/node-logger/index.d.ts +65 -72
  241. package/dist/node-logger/index.js +11 -12
  242. package/dist/oxc-parser/index.js +11 -13
  243. package/dist/oxc-parser/worker.js +10 -10
  244. package/dist/preview/_chunks/{runtime-DVM_AHbR.js → runtime-6P-h06Te.js} +51 -50
  245. package/dist/preview/_chunks/{runtime-BoxmlDdB.js → runtime-B9KKIDGa.js} +202 -81
  246. package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-BPwAnlRx.js} +482 -334
  247. package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-BUnOhg9h.js} +2 -2
  248. package/dist/preview/_chunks/runtime-Bcv1hJky.js +6305 -0
  249. package/dist/preview/_chunks/{runtime-CqHxptiK.js → runtime-C1jgT6tJ.js} +93 -2145
  250. package/dist/preview/_chunks/{runtime-D7B4bVe_.js → runtime-C8QFpkFV.js} +6 -6
  251. package/dist/preview/_chunks/{runtime-CijtAN7R.js → runtime-DdqR8Fd0.js} +15 -6
  252. package/dist/preview/_chunks/{runtime-B3y8ocOg.js → runtime-DvBfMhis.js} +2 -2
  253. package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-WapFVPAh.js} +29 -29
  254. package/dist/preview/runtime.js +1 -1
  255. package/dist/preview-api/index.d.ts +1 -1
  256. package/dist/preview-api/index.js +2 -1
  257. package/dist/preview-errors.d.ts +1 -1
  258. package/dist/react/docgen/docgen-worker.js +11 -12
  259. package/dist/react/entry-preview.js +2 -1
  260. package/dist/react/index.js +6 -4
  261. package/dist/react/preset.js +13 -14
  262. package/dist/react/preview.js +3 -2
  263. package/dist/react-native/bin/get-stories.js +8 -8
  264. package/dist/react-native/index.js +25 -211
  265. package/dist/react-native/metro/node.js +10 -9
  266. package/dist/react-native/metro/withStorybook.js +11 -10
  267. package/dist/react-native/scripts/generate.js +8 -8
  268. package/dist/react-vite/node/index.js +7 -7
  269. package/dist/react-vite/preset.js +7 -7
  270. package/dist/router/index.js +3 -1
  271. package/dist/server-errors.d.ts +1 -1
  272. package/dist/server-errors.js +9 -9
  273. package/dist/shared/open-service/index.d.ts +1 -1
  274. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
  275. package/dist/telemetry/index.js +43 -45
  276. package/dist/test/index.js +808 -573
  277. package/dist/theming/create.js +2 -1
  278. package/dist/theming/index.js +22 -1
  279. package/dist/types/index.d.ts +1 -1
  280. package/package.json +21 -44
  281. package/dist/_browser-chunks/WithTooltip-V55S6YCY.js +0 -1619
  282. package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
  283. package/dist/_browser-chunks/chunk-UDQ3XQFC.js +0 -108
  284. package/dist/_node-chunks/chunk-6QQTZT3Z.js +0 -19
  285. package/dist/_node-chunks/chunk-BRD332PB.js +0 -3008
  286. package/dist/_node-chunks/chunk-E2XKJLXK.js +0 -4731
  287. package/dist/_node-chunks/chunk-F2LQJXAB.js +0 -29
  288. package/dist/_node-chunks/chunk-MCZZMBPA.js +0 -20
  289. package/dist/_node-chunks/chunk-MMFUHYSU.js +0 -23
  290. package/dist/_node-chunks/chunk-UGFY5LEG.js +0 -18
  291. package/dist/_node-chunks/chunk-UO5ZOCSQ.js +0 -662
  292. package/dist/_node-chunks/chunk-UW35FCXF.js +0 -20
  293. package/dist/_node-chunks/chunk-VMUXW2E2.js +0 -5414
  294. package/dist/_node-chunks/chunk-VNXE7UJL.js +0 -51
  295. package/dist/_node-chunks/chunk-VRJJ43P2.js +0 -11
  296. package/dist/_node-chunks/chunk-WCJUS7OC.js +0 -1877
  297. package/dist/_node-chunks/chunk-WMBMSNB7.js +0 -36
  298. package/dist/_node-chunks/chunk-YV2QBXU6.js +0 -3823
  299. package/dist/_node-chunks/chunk-ZZNBVMBU.js +0 -25
  300. package/dist/_node-chunks/dist-VFUGPNLK.js +0 -16
  301. package/dist/_node-chunks/globby-N7LO32D3.js +0 -2884
  302. package/dist/_node-chunks/jiti-SJDZ7LQB.js +0 -3848
  303. package/dist/_node-chunks/lib-4HD6QL5R.js +0 -366
  304. package/dist/_node-chunks/optimized-tests-LVKXZ3HQ.js +0 -22
  305. package/dist/_node-chunks/postinstallAddon-I6MAL6PW.js +0 -20
  306. package/dist/_node-chunks/session-id-6Z2RXBTG.js +0 -23
  307. package/dist/chunk-BfBzpgct.d.ts +0 -916
  308. package/dist/core-server/presets/common-manager.css +0 -170
  309. package/dist/manager/_manager-chunks/globals-runtime-Bon7UvQk.js +0 -9766
  310. package/dist/manager/_manager-chunks/globals-runtime-DDOIxI_l.js +0 -1584
  311. package/dist/manager/_manager-chunks/runtime-CuJiHYCp.js +0 -22
  312. package/dist/manager/_manager-chunks/runtime-DFhLVh8q.js +0 -456
  313. package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
  314. package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  applyDecorators
3
3
  } from "./chunk-WHQRNHXD.js";
4
+ import {
5
+ global
6
+ } from "./chunk-6AKCRYVX.js";
4
7
  import {
5
8
  __export
6
9
  } from "./chunk-IMSF75WX.js";
@@ -18,7 +21,6 @@ __export(entry_preview_exports, {
18
21
  });
19
22
  import * as React3 from "react";
20
23
  import { Tag } from "@aussieljk/forkbook/internal/preview-api";
21
- import { global as global2 } from "@storybook/global";
22
24
  import { configure } from "@aussieljk/forkbook/test";
23
25
 
24
26
  // src/react/act-compat.ts
@@ -86,7 +88,6 @@ var render = (args, context) => {
86
88
 
87
89
  // src/react/renderToCanvas.tsx
88
90
  import { Fragment, Component as ReactComponent, StrictMode } from "react";
89
- import { global } from "@storybook/global";
90
91
  import { jsx as jsx2 } from "react/jsx-runtime";
91
92
  var { FRAMEWORK_OPTIONS } = global, ErrorBoundary = class extends ReactComponent {
92
93
  constructor() {
@@ -167,7 +168,7 @@ var decorators = [
167
168
  return jsx3(React3.Suspense, { children: story() });
168
169
  },
169
170
  (story, context) => {
170
- if (context.tags?.includes(Tag.TEST_FN) && !global2.FEATURES?.experimentalTestSyntax)
171
+ if (context.tags?.includes(Tag.TEST_FN) && !global.FEATURES?.experimentalTestSyntax)
171
172
  throw new Error(
172
173
  "To use the experimental test function, you must enable the experimentalTestSyntax feature flag. See https://forkbook.ljk.dev/docs/api/main-config/main-config-features#experimentaltestsyntax"
173
174
  );
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  EVENT_ID
3
3
  } from "./chunk-N5WQGLI7.js";
4
+ import {
5
+ global
6
+ } from "./chunk-6AKCRYVX.js";
4
7
 
5
8
  // src/actions/runtime/configureActions.ts
6
9
  var config = {
@@ -13,7 +16,6 @@ var config = {
13
16
 
14
17
  // src/actions/runtime/action.ts
15
18
  import { ImplicitActionsDuringRendering } from "@aussieljk/forkbook/internal/preview-errors";
16
- import { global } from "@storybook/global";
17
19
  import { addons } from "@aussieljk/forkbook/preview-api";
18
20
  var findProto = (obj, callback) => {
19
21
  let proto = Object.getPrototypeOf(obj);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withLinks
3
- } from "./chunk-52CW7FF7.js";
3
+ } from "./chunk-YYWKZ7O3.js";
4
4
  import {
5
5
  __export
6
6
  } from "./chunk-IMSF75WX.js";
@@ -42,7 +42,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id2}"
42
42
  let style = document.createElement("style");
43
43
  style.setAttribute("data-fb-css", id2), style.textContent = ".fb-I61SDG-syntaxHighlighter{font-size:calc(var(--fb-size-s2) - 1px);border-radius:var(--fb-app-border-radius);margin:25px 0 40px;line-height:19px;box-shadow:0 1px 3px #0000001a;& pre.fb-I61SDG-prismjs{background:inherit;padding:20px}}.fb-I61SDG-snippetWarning{z-index:1;position:absolute;top:4px;right:4px}.fb-I61SDG-sourceWrapper{position:relative}.fb-I61SDG-skeletonWrapper{background:var(--fb-background-content);border-radius:var(--fb-app-border-radius);border:1px solid var(--fb-app-border-color);margin:25px 0 40px;padding:20px 20px 20px 22px;box-shadow:0 1px 3px #0000001a}:where([data-fb-theme=dark]){& .fb-I61SDG-syntaxHighlighter,& .fb-I61SDG-skeletonWrapper{box-shadow:0 2px 5px #0003}}.fb-I61SDG-skeletonPlaceholder{background:var(--fb-app-border-color);width:60%;height:17px;margin-top:1px;animation:1.5s ease-in-out infinite fb-I61SDG-glow;&:first-child{margin:0}}@keyframes fb-I61SDG-glow{0%,to{opacity:1}50%{opacity:.4}}", document.head.appendChild(style);
44
44
  }
45
- var Source_default = { skeletonPlaceholder: "fb-I61SDG-skeletonPlaceholder", snippetWarning: "fb-I61SDG-snippetWarning", sourceWrapper: "fb-I61SDG-sourceWrapper", skeletonWrapper: "fb-I61SDG-skeletonWrapper", prismjs: "fb-I61SDG-prismjs", glow: "fb-I61SDG-glow", syntaxHighlighter: "fb-I61SDG-syntaxHighlighter" };
45
+ var Source_default = { sourceWrapper: "fb-I61SDG-sourceWrapper", skeletonWrapper: "fb-I61SDG-skeletonWrapper", prismjs: "fb-I61SDG-prismjs", skeletonPlaceholder: "fb-I61SDG-skeletonPlaceholder", snippetWarning: "fb-I61SDG-snippetWarning", glow: "fb-I61SDG-glow", syntaxHighlighter: "fb-I61SDG-syntaxHighlighter" };
46
46
 
47
47
  // src/addon-docs/blocks/components/Source.tsx
48
48
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-GNZY6LOW.js";
7
7
  import {
8
8
  entry_preview_exports
9
- } from "./chunk-K6GRZSXS.js";
9
+ } from "./chunk-EQKMUQF3.js";
10
10
 
11
11
  // src/react/preview.tsx
12
12
  import { definePreview as definePreviewBase } from "@aussieljk/forkbook/internal/csf";
@@ -48,6 +48,9 @@ import {
48
48
  MINIMAL_VIEWPORTS,
49
49
  PARAM_KEY
50
50
  } from "./chunk-QDXFODK4.js";
51
+ import {
52
+ global
53
+ } from "./chunk-6AKCRYVX.js";
51
54
  import {
52
55
  __toESM
53
56
  } from "./chunk-IMSF75WX.js";
@@ -89,7 +92,6 @@ import {
89
92
  UPDATE_GLOBALS,
90
93
  UPDATE_STORY_ARGS
91
94
  } from "@aussieljk/forkbook/internal/core-events";
92
- import { global } from "@storybook/global";
93
95
  var HooksContext = class {
94
96
  constructor() {
95
97
  this.hookListsMap = void 0;
@@ -324,9 +326,6 @@ import {
324
326
  } from "@aussieljk/forkbook/internal/preview-errors";
325
327
  var import_memoizerific2 = __toESM(require_memoizerific(), 1);
326
328
 
327
- // src/preview-api/modules/store/ArgsStore.ts
328
- import { global as global2 } from "@storybook/global";
329
-
330
329
  // src/preview-api/modules/store/args.ts
331
330
  import { once } from "@aussieljk/forkbook/internal/client-logger";
332
331
  import { dedent } from "ts-dedent";
@@ -428,7 +427,7 @@ function groupArgsByTarget({
428
427
  function deleteUndefined(obj) {
429
428
  return Object.keys(obj).forEach((key) => obj[key] === void 0 && delete obj[key]), obj;
430
429
  }
431
- var argTypesForValidation = (story) => global2.FEATURES?.docgenServer ? inferArgTypes({
430
+ var argTypesForValidation = (story) => global.FEATURES?.docgenServer ? inferArgTypes({
432
431
  id: story.id,
433
432
  argTypes: story.argTypes,
434
433
  initialArgs: story.initialArgs
@@ -644,8 +643,6 @@ import {
644
643
  includeConditionalArg
645
644
  } from "@aussieljk/forkbook/internal/csf";
646
645
  import { NoRenderFunctionError } from "@aussieljk/forkbook/internal/preview-errors";
647
- import { global as global3 } from "@storybook/global";
648
- import { global as globalThis2 } from "@storybook/global";
649
646
 
650
647
  // src/preview-api/modules/preview-web/render/mount-utils.ts
651
648
  function mountDestructured(playFunction) {
@@ -801,7 +798,7 @@ function prepareMeta(componentAnnotations, projectAnnotations, moduleExport) {
801
798
  };
802
799
  }
803
800
  function preparePartialAnnotations(storyAnnotations, componentAnnotations, projectAnnotations) {
804
- let defaultTags = [Tag.DEV, Tag.TEST], extraTags = globalThis2.DOCS_OPTIONS?.autodocs === !0 ? [Tag.AUTODOCS] : [], overrideTags = storyAnnotations?.tags?.includes(Tag.TEST_FN) ? [`!${Tag.AUTODOCS}`] : [], tags = combineTags(
801
+ let defaultTags = [Tag.DEV, Tag.TEST], extraTags = global.DOCS_OPTIONS?.autodocs === !0 ? [Tag.AUTODOCS] : [], overrideTags = storyAnnotations?.tags?.includes(Tag.TEST_FN) ? [`!${Tag.AUTODOCS}`] : [], tags = combineTags(
805
802
  ...defaultTags,
806
803
  ...extraTags,
807
804
  ...projectAnnotations.tags ?? [],
@@ -846,7 +843,7 @@ function preparePartialAnnotations(storyAnnotations, componentAnnotations, proje
846
843
  argTypes: passedArgTypes,
847
844
  storyGlobals
848
845
  };
849
- contextForEnhancers.argTypes = argTypesEnhancers.filter((enhancer) => !(global3.FEATURES?.docgenServer && enhancer.secondPass)).reduce(
846
+ contextForEnhancers.argTypes = argTypesEnhancers.filter((enhancer) => !(global.FEATURES?.docgenServer && enhancer.secondPass)).reduce(
850
847
  (accumulatedArgTypes, enhancer) => enhancer({ ...contextForEnhancers, argTypes: accumulatedArgTypes }),
851
848
  contextForEnhancers.argTypes
852
849
  );
@@ -870,7 +867,7 @@ function prepareContext(context) {
870
867
  allArgs: void 0,
871
868
  argsByTarget: void 0
872
869
  };
873
- if (global3.FEATURES?.argTypeTargetsV7) {
870
+ if (global.FEATURES?.argTypeTargetsV7) {
874
871
  let argsByTarget = groupArgsByTarget(context);
875
872
  targetedContext = {
876
873
  ...context,
@@ -1495,7 +1492,6 @@ import {
1495
1492
  StoryIndexFetchError,
1496
1493
  StoryStoreAccessedBeforeInitializationError
1497
1494
  } from "@aussieljk/forkbook/internal/preview-errors";
1498
- import { global as global4 } from "@storybook/global";
1499
1495
 
1500
1496
  // src/preview-api/modules/preview-web/render/StoryRender.ts
1501
1497
  import {
@@ -1762,7 +1758,7 @@ var StoryRender = class {
1762
1758
  };
1763
1759
 
1764
1760
  // src/preview-api/modules/preview-web/Preview.tsx
1765
- var { fetch } = global4, STORY_INDEX_PATH = "./index.json", Preview = class {
1761
+ var { fetch } = global, STORY_INDEX_PATH = "./index.json", Preview = class {
1766
1762
  constructor(importFn, getProjectAnnotations, channel = addons.getChannel(), shouldInitialize = !0) {
1767
1763
  this.importFn = importFn;
1768
1764
  this.getProjectAnnotations = getProjectAnnotations;
@@ -2031,9 +2027,6 @@ var { fetch } = global4, STORY_INDEX_PATH = "./index.json", Preview = class {
2031
2027
  }
2032
2028
  };
2033
2029
 
2034
- // src/preview-api/modules/preview-web/PreviewWeb.tsx
2035
- import { global as global9 } from "@storybook/global";
2036
-
2037
2030
  // src/preview-api/modules/preview-web/PreviewWithSelection.tsx
2038
2031
  import { logger as logger5 } from "@aussieljk/forkbook/internal/client-logger";
2039
2032
  import {
@@ -2066,28 +2059,8 @@ function isMdxEntry({ tags }) {
2066
2059
  return tags?.includes(Tag.UNATTACHED_MDX) || tags?.includes(Tag.ATTACHED_MDX);
2067
2060
  }
2068
2061
 
2069
- // src/preview-api/modules/preview-web/embedMode.ts
2070
- var shouldEmbed = ({ search }) => new URLSearchParams(search).get("embed") === "true", shouldAutoplay = ({ search }) => !shouldEmbed({ search });
2071
-
2072
- // src/preview-api/modules/preview-web/getEmbedResizeViewport.ts
2073
- var getEmbedResizeViewport = (storyStore, render, reference) => {
2074
- if (!storyStore || !render?.story)
2075
- return;
2076
- let { globals, storyGlobals, userGlobals, parameters } = storyStore.getStoryContext(
2077
- render.story
2078
- ), viewportParameters = parameters[PARAM_KEY];
2079
- return toResolvedViewportDimensions(
2080
- resolveViewport({
2081
- globals,
2082
- storyGlobals,
2083
- userGlobals,
2084
- options: viewportParameters?.options ?? MINIMAL_VIEWPORTS,
2085
- disable: viewportParameters?.disable ?? !1,
2086
- viewMode: "story"
2087
- }),
2088
- reference
2089
- );
2090
- };
2062
+ // src/preview-api/modules/preview-web/InfiniteDocs.ts
2063
+ import { DOCS_PAGE_IN_VIEW } from "@aussieljk/forkbook/internal/core-events";
2091
2064
 
2092
2065
  // src/preview-api/modules/preview-web/render/CsfDocsRender.ts
2093
2066
  import { DOCS_RENDERED } from "@aussieljk/forkbook/internal/core-events";
@@ -2390,8 +2363,105 @@ var MdxDocsRender = class {
2390
2363
  }
2391
2364
  };
2392
2365
 
2393
- // src/preview-api/modules/preview-web/setupContentResizeBroadcast.ts
2394
- import { global as global6 } from "@storybook/global";
2366
+ // src/preview-api/modules/preview-web/InfiniteDocs.ts
2367
+ var { document: document2, IntersectionObserver } = globalThis, docsEntriesInOrder = (entries) => {
2368
+ let docs = Object.values(entries).filter((entry) => entry.type === "docs"), isTopLevel = (entry) => !entry.title.includes("/");
2369
+ return [...docs.filter(isTopLevel), ...docs.filter((entry) => !isTopLevel(entry))];
2370
+ }, nextDocsEntry = (entries, id) => {
2371
+ let docs = docsEntriesInOrder(entries), index = docs.findIndex((entry) => entry.id === id);
2372
+ return index === -1 ? void 0 : docs[index + 1];
2373
+ }, InfiniteDocs = class {
2374
+ constructor(channel, store, renderStoryToElement, callbacks) {
2375
+ this.channel = channel;
2376
+ this.store = store;
2377
+ this.renderStoryToElement = renderStoryToElement;
2378
+ this.callbacks = callbacks;
2379
+ this.renders = [];
2380
+ this.loading = !1;
2381
+ }
2382
+ /** Starts after the main docs page `entry` rendered into `docsRoot`. */
2383
+ start(entry, docsRoot) {
2384
+ if (this.stop(), typeof IntersectionObserver > "u" || typeof document2 > "u" || !docsRoot?.dataset || this.store.projectAnnotations?.parameters?.docs?.infiniteScroll === !1)
2385
+ return;
2386
+ this.lastId = entry.id, this.inViewId = entry.id, docsRoot.dataset.docsId = entry.id;
2387
+ let container = document2.createElement("div");
2388
+ container.className = "fb-infinite-docs";
2389
+ let sentinel = document2.createElement("div");
2390
+ sentinel.className = "fb-infinite-docs-sentinel", sentinel.style.height = "1px", container.appendChild(sentinel), docsRoot.after(container), this.container = container, this.pageObserver = new IntersectionObserver(
2391
+ (records) => {
2392
+ for (let record of records) {
2393
+ let id = record.target.dataset.docsId;
2394
+ record.isIntersecting && id && id !== this.inViewId && (this.inViewId = id, this.channel.emit(DOCS_PAGE_IN_VIEW, { storyId: id }));
2395
+ }
2396
+ },
2397
+ { rootMargin: "-10% 0px -60% 0px" }
2398
+ ), this.pageObserver.observe(docsRoot), this.sentinelObserver = new IntersectionObserver(
2399
+ (records) => {
2400
+ records.some((record) => record.isIntersecting) && this.loadNext();
2401
+ },
2402
+ { rootMargin: "0px 0px 600px 0px" }
2403
+ ), this.sentinelObserver.observe(sentinel);
2404
+ }
2405
+ async loadNext() {
2406
+ let { container, lastId } = this;
2407
+ if (this.loading || !container || !lastId)
2408
+ return;
2409
+ let entry = nextDocsEntry(this.store.storyIndex.entries, lastId);
2410
+ if (!entry) {
2411
+ this.sentinelObserver?.disconnect();
2412
+ return;
2413
+ }
2414
+ this.loading = !0, this.lastId = entry.id;
2415
+ let element = document2.createElement("div");
2416
+ element.className = "fb-infinite-docs-page", element.dataset.docsId = entry.id, container.insertBefore(element, container.lastChild);
2417
+ let render = isMdxEntry(entry) ? new MdxDocsRender(this.channel, this.store, entry, this.callbacks(entry.id)) : new CsfDocsRender(this.channel, this.store, entry, this.callbacks(entry.id));
2418
+ this.renders.push(render);
2419
+ try {
2420
+ if (await render.prepare(), this.container !== container)
2421
+ return;
2422
+ await render.renderToElement(
2423
+ element,
2424
+ this.renderStoryToElement
2425
+ ), this.pageObserver?.observe(element);
2426
+ } catch {
2427
+ this.sentinelObserver?.disconnect();
2428
+ } finally {
2429
+ this.loading = !1;
2430
+ }
2431
+ let sentinel = container.lastElementChild;
2432
+ sentinel && sentinel.getBoundingClientRect().top < globalThis.innerHeight + 600 && this.loadNext();
2433
+ }
2434
+ /** Removes the pages below the main page. */
2435
+ stop() {
2436
+ this.sentinelObserver?.disconnect(), this.pageObserver?.disconnect(), this.sentinelObserver = void 0, this.pageObserver = void 0;
2437
+ for (let render of this.renders)
2438
+ render.teardown({ viewModeChanged: !0 });
2439
+ this.renders = [], this.container?.remove(), this.container = void 0, this.lastId = void 0, this.inViewId = void 0, this.loading = !1;
2440
+ }
2441
+ };
2442
+
2443
+ // src/preview-api/modules/preview-web/embedMode.ts
2444
+ var shouldEmbed = ({ search }) => new URLSearchParams(search).get("embed") === "true", shouldAutoplay = ({ search }) => !shouldEmbed({ search });
2445
+
2446
+ // src/preview-api/modules/preview-web/getEmbedResizeViewport.ts
2447
+ var getEmbedResizeViewport = (storyStore, render, reference) => {
2448
+ if (!storyStore || !render?.story)
2449
+ return;
2450
+ let { globals, storyGlobals, userGlobals, parameters } = storyStore.getStoryContext(
2451
+ render.story
2452
+ ), viewportParameters = parameters[PARAM_KEY];
2453
+ return toResolvedViewportDimensions(
2454
+ resolveViewport({
2455
+ globals,
2456
+ storyGlobals,
2457
+ userGlobals,
2458
+ options: viewportParameters?.options ?? MINIMAL_VIEWPORTS,
2459
+ disable: viewportParameters?.disable ?? !1,
2460
+ viewMode: "story"
2461
+ }),
2462
+ reference
2463
+ );
2464
+ };
2395
2465
 
2396
2466
  // src/shared/constants/iframe-resize.ts
2397
2467
  var IFRAME_RESIZE_CONTEXT = "iframe.resize", IFRAME_RESIZE_REQUEST_CONTEXT = "iframe.resize.request";
@@ -2402,7 +2472,6 @@ import {
2402
2472
  STORY_HOT_UPDATED as STORY_HOT_UPDATED2,
2403
2473
  STORY_RENDER_PHASE_CHANGED as STORY_RENDER_PHASE_CHANGED2
2404
2474
  } from "@aussieljk/forkbook/internal/core-events";
2405
- import { global as global5 } from "@storybook/global";
2406
2475
  var FREEZE_STYLE_ID = "storybook-freeze-after-finished", PRE_FREEZE_STYLE_ID = "storybook-freeze-end-frame-preload", tryReplaceProperty = (target, key, value) => {
2407
2476
  try {
2408
2477
  let descriptor = Object.getOwnPropertyDescriptor(target, key);
@@ -2523,7 +2592,7 @@ var FREEZE_STYLE_ID = "storybook-freeze-after-finished", PRE_FREEZE_STYLE_ID = "
2523
2592
  }
2524
2593
  } };
2525
2594
  }, setupStoryFreezer = (channel, options = {}) => {
2526
- let windowRef = global5.window, documentRef = global5.document;
2595
+ let windowRef = global.window, documentRef = global.document;
2527
2596
  if (!windowRef || !documentRef || !shouldFreeze({ search: documentRef.location.search }))
2528
2597
  return !1;
2529
2598
  addPreFreezeStyles(documentRef);
@@ -2729,7 +2798,7 @@ var EMBED_STYLE_ID = "storybook-embed-sizing", EMBED_UI_STYLE_ID = "storybook-em
2729
2798
  rafId !== null && (cancelAnimationFrame(rafId), rafId = null);
2730
2799
  }, debounced;
2731
2800
  }, setupContentResizeBroadcast = (options = {}) => {
2732
- let { getViewport } = options, windowRef = global6.window, documentRef = global6.document;
2801
+ let { getViewport } = options, windowRef = global.window, documentRef = global.document;
2733
2802
  if (!windowRef || !documentRef)
2734
2803
  return {};
2735
2804
  if (!shouldEmbed({ search: documentRef.location.search }))
@@ -2914,7 +2983,9 @@ var PreviewWithSelection = class extends Preview {
2914
2983
  let { selection } = this.selectionStore;
2915
2984
  if (!selection)
2916
2985
  throw new Error("Cannot call renderSelection as no selection was made");
2917
- let { storyId } = selection, entry;
2986
+ let { storyId } = selection;
2987
+ this.infiniteDocs?.stop();
2988
+ let entry;
2918
2989
  try {
2919
2990
  entry = await this.storyStoreValue.storyIdToEntry(storyId);
2920
2991
  } catch (err) {
@@ -3001,15 +3072,35 @@ var PreviewWithSelection = class extends Preview {
3001
3072
  parameters
3002
3073
  });
3003
3074
  }
3004
- isStoryRender(render) ? (invariant(!!render.story), this.storyRenders.push(render), this.currentRender.renderToElement(
3005
- this.view.prepareForStory(render.story, {
3006
- scrollReset: storyIdChanged || viewModeChanged
3007
- })
3008
- )) : this.currentRender.renderToElement(
3009
- this.view.prepareForDocs({ scrollReset: storyIdChanged || viewModeChanged }),
3010
- // This argument is used for docs, which is currently only compatible with HTMLElements
3011
- this.renderStoryToElement.bind(this)
3012
- );
3075
+ if (isStoryRender(render))
3076
+ invariant(!!render.story), this.storyRenders.push(render), this.currentRender.renderToElement(
3077
+ this.view.prepareForStory(render.story, {
3078
+ scrollReset: storyIdChanged || viewModeChanged
3079
+ })
3080
+ );
3081
+ else {
3082
+ let docsRoot = this.view.prepareForDocs({ scrollReset: storyIdChanged || viewModeChanged }), docsRender = this.currentRender;
3083
+ docsRender.renderToElement(
3084
+ docsRoot,
3085
+ // This argument is used for docs, which is currently only compatible with HTMLElements
3086
+ this.renderStoryToElement.bind(this)
3087
+ ).then(() => {
3088
+ this.currentRender === docsRender && this.storyStoreValue && (this.infiniteDocs ??= new InfiniteDocs(
3089
+ this.channel,
3090
+ this.storyStoreValue,
3091
+ this.renderStoryToElement.bind(this),
3092
+ () => ({
3093
+ showStoryDuringRender: () => {
3094
+ },
3095
+ showMain: () => {
3096
+ },
3097
+ showError: () => {
3098
+ },
3099
+ showException: (err) => logger5.error(err)
3100
+ })
3101
+ ), this.infiniteDocs.start(entry, docsRoot));
3102
+ });
3103
+ }
3013
3104
  }
3014
3105
  async teardownRender(render, {
3015
3106
  viewModeChanged = !1,
@@ -3048,9 +3139,6 @@ var PreviewWithSelection = class extends Preview {
3048
3139
  }
3049
3140
  };
3050
3141
 
3051
- // src/preview-api/modules/preview-web/UrlStore.ts
3052
- import { global as global7 } from "@storybook/global";
3053
-
3054
3142
  // src/preview-api/modules/preview-web/parseArgsParam.ts
3055
3143
  import { once as once2 } from "@aussieljk/forkbook/internal/client-logger";
3056
3144
  import { dedent as dedent4 } from "ts-dedent";
@@ -3092,7 +3180,7 @@ var VALIDATION_REGEXP = /^[a-zA-Z0-9 _-]*$/, NUMBER_REGEXP = /^-?[0-9]+(\.[0-9]+
3092
3180
  };
3093
3181
 
3094
3182
  // src/preview-api/modules/preview-web/UrlStore.ts
3095
- var { history, document: document2 } = global7, PATH_REGEX = /^\/(story|docs)\/(.+)/;
3183
+ var { history, document: document3 } = global, PATH_REGEX = /^\/(story|docs)\/(.+)/;
3096
3184
  function pathToId(path) {
3097
3185
  let match = (path || "").match(PATH_REGEX);
3098
3186
  if (!match)
@@ -3106,7 +3194,7 @@ var getQueryString = ({
3106
3194
  selection,
3107
3195
  extraParams
3108
3196
  }) => {
3109
- let search = document2?.location.search.slice(1), { path, selectedKind, selectedStory, ...rest } = parse(search);
3197
+ let search = document3?.location.search.slice(1), { path, selectedKind, selectedStory, ...rest } = parse(search);
3110
3198
  return `?${stringify({
3111
3199
  ...rest,
3112
3200
  ...extraParams,
@@ -3115,8 +3203,8 @@ var getQueryString = ({
3115
3203
  }, setPath = (selection) => {
3116
3204
  if (!selection)
3117
3205
  return;
3118
- let query = getQueryString({ selection }), { hash = "" } = document2.location;
3119
- document2.title = selection.storyId, history.replaceState({}, "", `${document2.location.pathname}${query}${hash}`);
3206
+ let query = getQueryString({ selection }), { hash = "" } = document3.location;
3207
+ document3.title = selection.storyId, history.replaceState({}, "", `${document3.location.pathname}${query}${hash}`);
3120
3208
  }, isObject = (val) => val != null && typeof val == "object" && Array.isArray(val) === !1, getFirstString = (v) => {
3121
3209
  if (v !== void 0) {
3122
3210
  if (typeof v == "string")
@@ -3129,8 +3217,8 @@ var getQueryString = ({
3129
3217
  );
3130
3218
  }
3131
3219
  }, getSelectionSpecifierFromPath = () => {
3132
- if (typeof document2 < "u") {
3133
- let queryStr = document2.location.search.slice(1), query = parse(queryStr), args = typeof query.args == "string" ? parseArgsParam(query.args) : void 0, globals = typeof query.globals == "string" ? parseArgsParam(query.globals) : void 0, path = getFirstString(query.path), viewMode = getFirstString(query.viewMode);
3220
+ if (typeof document3 < "u") {
3221
+ let queryStr = document3.location.search.slice(1), query = parse(queryStr), args = typeof query.args == "string" ? parseArgsParam(query.args) : void 0, globals = typeof query.globals == "string" ? parseArgsParam(query.globals) : void 0, path = getFirstString(query.path), viewMode = getFirstString(query.viewMode);
3134
3222
  if (typeof viewMode != "string" || !viewMode)
3135
3223
  viewMode = path && pathToViewMode(path) || "story";
3136
3224
  else if (!viewMode.match(/docs|story/))
@@ -3148,17 +3236,16 @@ var getQueryString = ({
3148
3236
  this.selection = selection, setPath(this.selection);
3149
3237
  }
3150
3238
  setQueryParams(queryParams) {
3151
- let query = getQueryString({ extraParams: queryParams }), { hash = "" } = document2.location;
3152
- history.replaceState({}, "", `${document2.location.pathname}${query}${hash}`);
3239
+ let query = getQueryString({ extraParams: queryParams }), { hash = "" } = document3.location;
3240
+ history.replaceState({}, "", `${document3.location.pathname}${query}${hash}`);
3153
3241
  }
3154
3242
  };
3155
3243
 
3156
3244
  // src/preview-api/modules/preview-web/WebView.ts
3157
- var import_ansi_to_html = __toESM(require_ansi_to_html(), 1);
3158
3245
  import { logger as logger6 } from "@aussieljk/forkbook/internal/client-logger";
3159
- import { global as global8 } from "@storybook/global";
3246
+ var import_ansi_to_html = __toESM(require_ansi_to_html(), 1);
3160
3247
  import { dedent as dedent5 } from "ts-dedent";
3161
- var { document: document3 } = global8, PREPARING_DELAY = 100, Mode = /* @__PURE__ */ ((Mode2) => (Mode2.MAIN = "MAIN", Mode2.NOPREVIEW = "NOPREVIEW", Mode2.PREPARING_STORY = "PREPARING_STORY", Mode2.PREPARING_DOCS = "PREPARING_DOCS", Mode2.ERROR = "ERROR", Mode2))(Mode || {}), classes = {
3248
+ var { document: document4 } = global, PREPARING_DELAY = 100, Mode = /* @__PURE__ */ ((Mode2) => (Mode2.MAIN = "MAIN", Mode2.NOPREVIEW = "NOPREVIEW", Mode2.PREPARING_STORY = "PREPARING_STORY", Mode2.PREPARING_DOCS = "PREPARING_DOCS", Mode2.ERROR = "ERROR", Mode2))(Mode || {}), classes = {
3162
3249
  PREPARING_STORY: "fb-show-preparing-story",
3163
3250
  PREPARING_DOCS: "fb-show-preparing-docs",
3164
3251
  MAIN: "fb-show-main",
@@ -3173,8 +3260,8 @@ var { document: document3 } = global8, PREPARING_DELAY = 100, Mode = /* @__PURE_
3173
3260
  }), WebView = class {
3174
3261
  constructor() {
3175
3262
  this.testing = !1;
3176
- if (typeof document3 < "u") {
3177
- let { __SPECIAL_TEST_PARAMETER__ } = parse(document3.location.search.slice(1));
3263
+ if (typeof document4 < "u") {
3264
+ let { __SPECIAL_TEST_PARAMETER__ } = parse(document4.location.search.slice(1));
3178
3265
  switch (__SPECIAL_TEST_PARAMETER__) {
3179
3266
  case "preparing-story": {
3180
3267
  this.showPreparingStory(), this.testing = !0;
@@ -3190,30 +3277,30 @@ var { document: document3 } = global8, PREPARING_DELAY = 100, Mode = /* @__PURE_
3190
3277
  }
3191
3278
  // Get ready to render a story, returning the element to render to
3192
3279
  prepareForStory(story, { scrollReset = !0 } = {}) {
3193
- this.showStory(), this.applyLayout(story.parameters.layout), scrollReset && (document3.documentElement.scrollTop = 0, document3.documentElement.scrollLeft = 0);
3280
+ this.showStory(), this.applyLayout(story.parameters.layout), scrollReset && (document4.documentElement.scrollTop = 0, document4.documentElement.scrollLeft = 0);
3194
3281
  let storyRoot = this.storyRoot();
3195
3282
  return this.applyHtmlLang(storyRoot, story.parameters.htmlLang), storyRoot;
3196
3283
  }
3197
3284
  storyRoot() {
3198
- return document3.getElementById("storybook-root");
3285
+ return document4.getElementById("storybook-root");
3199
3286
  }
3200
3287
  prepareForDocs({ scrollReset = !0 } = {}) {
3201
- return this.showMain(), this.showDocs(), this.applyLayout("fullscreen"), scrollReset && (document3.documentElement.scrollTop = 0, document3.documentElement.scrollLeft = 0), this.docsRoot();
3288
+ return this.showMain(), this.showDocs(), this.applyLayout("fullscreen"), scrollReset && (document4.documentElement.scrollTop = 0, document4.documentElement.scrollLeft = 0), this.docsRoot();
3202
3289
  }
3203
3290
  docsRoot() {
3204
- return document3.getElementById("storybook-docs");
3291
+ return document4.getElementById("storybook-docs");
3205
3292
  }
3206
3293
  scrollToAnchor(hash) {
3207
- document3.getElementById(decodeURIComponent(hash.substring(1)))?.scrollIntoView({ behavior: "smooth" });
3294
+ document4.getElementById(decodeURIComponent(hash.substring(1)))?.scrollIntoView({ behavior: "smooth" });
3208
3295
  }
3209
3296
  applyLayout(layout = "padded") {
3210
3297
  if (layout === "none") {
3211
- document3.body.classList.remove(this.currentLayoutClass), this.currentLayoutClass = null;
3298
+ document4.body.classList.remove(this.currentLayoutClass), this.currentLayoutClass = null;
3212
3299
  return;
3213
3300
  }
3214
3301
  this.checkIfLayoutExists(layout);
3215
3302
  let layoutClass = layoutClassMap[layout];
3216
- document3.body.classList.remove(this.currentLayoutClass), document3.body.classList.add(layoutClass), this.currentLayoutClass = layoutClass;
3303
+ document4.body.classList.remove(this.currentLayoutClass), document4.body.classList.add(layoutClass), this.currentLayoutClass = layoutClass;
3217
3304
  }
3218
3305
  /**
3219
3306
  * Injects a BCP-47 lang attribute to the story root, or removes it if `lang` is null.
@@ -3231,14 +3318,14 @@ var { document: document3 } = global8, PREPARING_DELAY = 100, Mode = /* @__PURE_
3231
3318
  }
3232
3319
  showMode(mode) {
3233
3320
  clearTimeout(this.preparingTimeout), Object.keys(Mode).forEach((otherMode) => {
3234
- otherMode === mode ? document3.body.classList.add(classes[otherMode]) : document3.body.classList.remove(classes[otherMode]);
3321
+ otherMode === mode ? document4.body.classList.add(classes[otherMode]) : document4.body.classList.remove(classes[otherMode]);
3235
3322
  });
3236
3323
  }
3237
3324
  showErrorDisplay({ message = "", stack = "" }) {
3238
3325
  let header = message, detail = stack, parts = message.split(`
3239
3326
  `);
3240
3327
  parts.length > 1 && ([header] = parts, detail = parts.slice(1).join(`
3241
- `).replace(/^\n/, "")), document3.getElementById("error-message").innerHTML = ansiConverter.toHtml(header), document3.getElementById("error-stack").innerHTML = ansiConverter.toHtml(detail), this.showMode("ERROR" /* ERROR */);
3328
+ `).replace(/^\n/, "")), document4.getElementById("error-message").innerHTML = ansiConverter.toHtml(header), document4.getElementById("error-stack").innerHTML = ansiConverter.toHtml(detail), this.showMode("ERROR" /* ERROR */);
3242
3329
  }
3243
3330
  showNoPreview() {
3244
3331
  this.testing || (this.showMode("NOPREVIEW" /* NOPREVIEW */), this.storyRoot()?.setAttribute("hidden", "true"), this.docsRoot()?.setAttribute("hidden", "true"));
@@ -3262,7 +3349,7 @@ var { document: document3 } = global8, PREPARING_DELAY = 100, Mode = /* @__PURE_
3262
3349
  this.docsRoot().setAttribute("hidden", "true"), this.storyRoot().removeAttribute("hidden");
3263
3350
  }
3264
3351
  showStoryDuringRender() {
3265
- document3.body.classList.add(classes.MAIN);
3352
+ document4.body.classList.add(classes.MAIN);
3266
3353
  }
3267
3354
  };
3268
3355
 
@@ -3272,13 +3359,12 @@ var PreviewWeb = class extends PreviewWithSelection {
3272
3359
  super(importFn, getProjectAnnotations, new UrlStore(), new WebView());
3273
3360
  this.importFn = importFn;
3274
3361
  this.getProjectAnnotations = getProjectAnnotations;
3275
- global9.__FORKBOOK_PREVIEW__ = this;
3362
+ global.__FORKBOOK_PREVIEW__ = this;
3276
3363
  }
3277
3364
  };
3278
3365
 
3279
3366
  // src/preview-api/modules/preview-web/simulate-pageload.ts
3280
- import { global as global10 } from "@storybook/global";
3281
- var { document: document4 } = global10, runScriptTypes = [
3367
+ var { document: document5 } = global, runScriptTypes = [
3282
3368
  "application/javascript",
3283
3369
  "application/ecmascript",
3284
3370
  "application/x-ecmascript",
@@ -3299,12 +3385,12 @@ var { document: document4 } = global10, runScriptTypes = [
3299
3385
  "module"
3300
3386
  ], SCRIPT = "script", SCRIPTS_ROOT_ID = "scripts-root";
3301
3387
  function simulateDOMContentLoaded() {
3302
- let DOMContentLoadedEvent = document4.createEvent("Event");
3303
- DOMContentLoadedEvent.initEvent("DOMContentLoaded", !0, !0), document4.dispatchEvent(DOMContentLoadedEvent);
3388
+ let DOMContentLoadedEvent = document5.createEvent("Event");
3389
+ DOMContentLoadedEvent.initEvent("DOMContentLoaded", !0, !0), document5.dispatchEvent(DOMContentLoadedEvent);
3304
3390
  }
3305
3391
  function insertScript($script, callback, $scriptRoot) {
3306
- let scriptEl = document4.createElement("script");
3307
- scriptEl.type = $script.type === "module" ? "module" : "text/javascript", $script.src ? (scriptEl.onload = callback, scriptEl.onerror = callback, scriptEl.src = $script.src) : scriptEl.textContent = $script.innerText, $scriptRoot ? $scriptRoot.appendChild(scriptEl) : document4.head.appendChild(scriptEl), $script.parentNode.removeChild($script), $script.src || callback();
3392
+ let scriptEl = document5.createElement("script");
3393
+ scriptEl.type = $script.type === "module" ? "module" : "text/javascript", $script.src ? (scriptEl.onload = callback, scriptEl.onerror = callback, scriptEl.src = $script.src) : scriptEl.textContent = $script.innerText, $scriptRoot ? $scriptRoot.appendChild(scriptEl) : document5.head.appendChild(scriptEl), $script.parentNode.removeChild($script), $script.src || callback();
3308
3394
  }
3309
3395
  function insertScriptsSequentially(scriptsToExecute, callback, index = 0) {
3310
3396
  scriptsToExecute[index](() => {
@@ -3312,8 +3398,8 @@ function insertScriptsSequentially(scriptsToExecute, callback, index = 0) {
3312
3398
  });
3313
3399
  }
3314
3400
  function simulatePageLoad($container) {
3315
- let $scriptsRoot = document4.getElementById(SCRIPTS_ROOT_ID);
3316
- $scriptsRoot ? $scriptsRoot.innerHTML = "" : ($scriptsRoot = document4.createElement("div"), $scriptsRoot.id = SCRIPTS_ROOT_ID, document4.body.appendChild($scriptsRoot));
3401
+ let $scriptsRoot = document5.getElementById(SCRIPTS_ROOT_ID);
3402
+ $scriptsRoot ? $scriptsRoot.innerHTML = "" : ($scriptsRoot = document5.createElement("div"), $scriptsRoot.id = SCRIPTS_ROOT_ID, document5.body.appendChild($scriptsRoot));
3317
3403
  let $scripts = Array.from($container.querySelectorAll(SCRIPT));
3318
3404
  if ($scripts.length) {
3319
3405
  let scriptsToExecute = [];
@@ -3,6 +3,9 @@ import {
3
3
  curriedLighten$1,
4
4
  rgba
5
5
  } from "./chunk-S6TK43XQ.js";
6
+ import {
7
+ global
8
+ } from "./chunk-6AKCRYVX.js";
6
9
 
7
10
  // src/theming/base.ts
8
11
  var easing = {
@@ -67,7 +70,7 @@ var easing = {
67
70
  content: color.lightest,
68
71
  preview: color.lightest,
69
72
  gridCellSize: 10,
70
- hoverable: "#E5F1FF",
73
+ hoverable: "#E5E5EA",
71
74
  // Notification, error, and warning backgrounds
72
75
  positive: "#EAF9EE",
73
76
  warning: "#FFF4E5",
@@ -199,7 +202,7 @@ var border = "rgba(84, 84, 88, 0.6)", theme = {
199
202
  appBg: "#000000",
200
203
  appContentBg: "#1C1C1E",
201
204
  // systemGray6
202
- appHoverBg: "#0B2D52",
205
+ appHoverBg: "#2C2C2E",
203
206
  appPreviewBg: color.lightest,
204
207
  appBorderColor: border,
205
208
  appBorderRadius: 4,
@@ -212,7 +215,7 @@ var border = "rgba(84, 84, 88, 0.6)", theme = {
212
215
  textMutedColor: "#98989F",
213
216
  // Toolbar default and active colors
214
217
  barTextColor: "#98989F",
215
- barHoverColor: "#409CFF",
218
+ barHoverColor: "#F2F2F7",
216
219
  barSelectedColor: "#0A84FF",
217
220
  barBg: "#1C1C1E",
218
221
  // Form colors
@@ -250,7 +253,7 @@ var theme2 = {
250
253
  textMutedColor: color.dark,
251
254
  // Toolbar default and active colors
252
255
  barTextColor: color.dark,
253
- barHoverColor: "#0062CC",
256
+ barHoverColor: color.darkest,
254
257
  barSelectedColor: color.secondary,
255
258
  barBg: color.lightest,
256
259
  // Form colors
@@ -266,7 +269,6 @@ var theme2 = {
266
269
 
267
270
  // src/theming/utils.ts
268
271
  import { logger } from "@aussieljk/forkbook/internal/client-logger";
269
- import { global } from "@storybook/global";
270
272
  var { window: globalWindow } = global;
271
273
  var isColorString = (color2) => typeof color2 != "string" ? (logger.warn(
272
274
  `Color passed to theme object should be a string. Instead ${color2}(${typeof color2}) was passed.`