@aussieljk/forkbook 0.0.1-12 → 0.0.1-13

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 (308) hide show
  1. package/dist/_browser-chunks/{Color-TA43572R.js → Color-2EUQ6NXV.js} +1 -1
  2. package/dist/_browser-chunks/{WithTooltip-66AWY4VQ.js → WithTooltip-QCFTNB6P.js} +1 -1
  3. package/dist/_browser-chunks/{chunk-FRAOQJDI.js → chunk-3QPZOXB7.js} +1 -5
  4. package/dist/_browser-chunks/{chunk-GRO2ZYEJ.js → chunk-4BOJAE7P.js} +12 -8
  5. package/dist/_browser-chunks/{chunk-ARZTIHZK.js → chunk-6SL45YM3.js} +3 -3
  6. package/dist/_browser-chunks/{chunk-D2Z5KXPS.js → chunk-BLCZ3C5M.js} +29 -21
  7. package/dist/_browser-chunks/{chunk-XV3AEPJW.js → chunk-DHTLVXAL.js} +37 -44
  8. package/dist/_browser-chunks/{chunk-5MRMYSUN.js → chunk-DISGPOF4.js} +54 -51
  9. package/dist/_browser-chunks/{chunk-2UKY4NXZ.js → chunk-EBSOKHFG.js} +7 -1
  10. package/dist/_browser-chunks/{chunk-GGALYEQS.js → chunk-ECMVTOVD.js} +1 -1
  11. package/dist/_browser-chunks/{chunk-DT7BB545.js → chunk-ENHFQXYS.js} +2 -2
  12. package/dist/_browser-chunks/{chunk-IGD46SQI.js → chunk-EW2M3URL.js} +1 -1
  13. package/dist/_browser-chunks/{chunk-2WMECYEY.js → chunk-FCULT3AE.js} +3 -3
  14. package/dist/_browser-chunks/{chunk-3O4QUF3D.js → chunk-HZFHNYRC.js} +1 -1
  15. package/dist/_browser-chunks/{chunk-5H4KFI44.js → chunk-KQJ4T6JL.js} +30 -24
  16. package/dist/_browser-chunks/{chunk-5XGERZHU.js → chunk-NK5SGJNG.js} +7 -5
  17. package/dist/_browser-chunks/{chunk-2YWS25WY.js → chunk-PQRPDA4U.js} +2 -2
  18. package/dist/_browser-chunks/{chunk-2JDQ35OA.js → chunk-PU7D2WDP.js} +0 -11
  19. package/dist/_browser-chunks/{chunk-AQVUHXWY.js → chunk-QFO2B4X2.js} +26 -25
  20. package/dist/_browser-chunks/{chunk-HGIW4I4J.js → chunk-S7N7Z5TY.js} +38 -27
  21. package/dist/_browser-chunks/{chunk-QSYOMLRG.js → chunk-UH3XTEOQ.js} +71 -56
  22. package/dist/_browser-chunks/{chunk-UDR26TXA.js → chunk-YJO5BK52.js} +7 -3
  23. package/dist/_browser-chunks/{chunk-3HM3VWJS.js → chunk-ZF37BMDS.js} +6 -2
  24. package/dist/_browser-chunks/{chunk-F22A5EGD.js → chunk-ZF5SPY56.js} +1 -1
  25. package/dist/_node-chunks/{attached-runtime-AU2RZM4Y.js → attached-runtime-7IRDQUTZ.js} +28 -28
  26. package/dist/_node-chunks/{builder-manager-UPXA2KKT.js → builder-manager-YTALSWKQ.js} +15 -15
  27. package/dist/_node-chunks/{chunk-FKI7K3GE.js → chunk-26ERGIQH.js} +6 -6
  28. package/dist/_node-chunks/{chunk-JHX35YKT.js → chunk-33T4HNF2.js} +6 -6
  29. package/dist/_node-chunks/{chunk-QSKVNZCF.js → chunk-3F3673RQ.js} +7 -7
  30. package/dist/_node-chunks/{chunk-SUHBBHKR.js → chunk-3FLRYZLJ.js} +6 -6
  31. package/dist/_node-chunks/{chunk-5MYXWAKD.js → chunk-3L2QRDKH.js} +33 -31
  32. package/dist/_node-chunks/{chunk-U5HVQTHI.js → chunk-3NH7IHUS.js} +6 -6
  33. package/dist/_node-chunks/{chunk-5KMW5XXM.js → chunk-3ZAENV5A.js} +6 -6
  34. package/dist/_node-chunks/{chunk-KZPWZM2E.js → chunk-4B52HLKK.js} +39 -44
  35. package/dist/_node-chunks/{chunk-Y472MP5U.js → chunk-4CZJ4SFH.js} +8 -8
  36. package/dist/_node-chunks/{chunk-KQTFSKC6.js → chunk-4IIWFG7O.js} +13 -11
  37. package/dist/_node-chunks/{chunk-JB4457FJ.js → chunk-4YWZLOAF.js} +6 -6
  38. package/dist/_node-chunks/{chunk-G6GOV7H7.js → chunk-5A5XOSRM.js} +6 -6
  39. package/dist/_node-chunks/chunk-5T6Q7HT3.js +11 -0
  40. package/dist/_node-chunks/{chunk-5N7YRHXJ.js → chunk-6DRDJF2Q.js} +6 -6
  41. package/dist/_node-chunks/{chunk-MNQVVJZN.js → chunk-6JSZY5TJ.js} +6 -6
  42. package/dist/_node-chunks/{chunk-FFUIQJRI.js → chunk-7SPDKMDQ.js} +14 -14
  43. package/dist/_node-chunks/{chunk-76M6JG5T.js → chunk-7YLKDHLZ.js} +7 -7
  44. package/dist/_node-chunks/{chunk-NPSIAK46.js → chunk-7YQIVUEK.js} +6 -6
  45. package/dist/_node-chunks/{chunk-HMQUTLMS.js → chunk-ADCQYK3Z.js} +6 -6
  46. package/dist/_node-chunks/{chunk-LTJ4AYDM.js → chunk-ALHQVE5R.js} +6 -6
  47. package/dist/_node-chunks/{chunk-H7UVQBCQ.js → chunk-B4XAZ2OC.js} +6 -6
  48. package/dist/_node-chunks/{chunk-2MGPZNKV.js → chunk-BFQJF3ID.js} +11 -8
  49. package/dist/_node-chunks/{chunk-RT2LVWTC.js → chunk-BSXI35KM.js} +7 -7
  50. package/dist/_node-chunks/{chunk-FR67COFW.js → chunk-BZQF5KUE.js} +7 -7
  51. package/dist/_node-chunks/{chunk-ZUK5ZLPP.js → chunk-CEIESR4U.js} +6 -6
  52. package/dist/_node-chunks/{chunk-NXRZL2PR.js → chunk-CESXIP3N.js} +6 -6
  53. package/dist/_node-chunks/{chunk-WUVQ465T.js → chunk-DAEUTT3I.js} +6 -6
  54. package/dist/_node-chunks/{chunk-BTDLJXAT.js → chunk-DIC4T2UO.js} +6 -6
  55. package/dist/_node-chunks/{chunk-6772LYNF.js → chunk-DPOWAA4P.js} +37 -31
  56. package/dist/_node-chunks/{chunk-IKUSSZJ3.js → chunk-DTNEHO4J.js} +10 -10
  57. package/dist/_node-chunks/{chunk-IOXDHKFF.js → chunk-DY7F7B6V.js} +7 -7
  58. package/dist/_node-chunks/{chunk-HW7RCOV4.js → chunk-E56UKDJR.js} +8 -8
  59. package/dist/_node-chunks/{chunk-3MJZ5GI2.js → chunk-EFX2VA4Q.js} +6 -6
  60. package/dist/_node-chunks/{chunk-R73PEGQU.js → chunk-EM6AYELK.js} +10 -12
  61. package/dist/_node-chunks/{chunk-MNNESU33.js → chunk-F2AFT3P7.js} +8 -8
  62. package/dist/_node-chunks/{chunk-2W525A4I.js → chunk-GC7NA2Y7.js} +7 -7
  63. package/dist/_node-chunks/{chunk-2X3WAH7V.js → chunk-GIKCT5KG.js} +7 -7
  64. package/dist/_node-chunks/{chunk-IFHNMS7I.js → chunk-GLNHSUKT.js} +20 -20
  65. package/dist/_node-chunks/{chunk-DNX4BLMS.js → chunk-GQZZQB4K.js} +7 -7
  66. package/dist/_node-chunks/{chunk-PHB6QBHM.js → chunk-GRN6WQC3.js} +10 -10
  67. package/dist/_node-chunks/{chunk-K2K6KTBC.js → chunk-HCMHVV7N.js} +8 -8
  68. package/dist/_node-chunks/{chunk-FUDG3QKB.js → chunk-HJVZQS65.js} +7 -7
  69. package/dist/_node-chunks/{chunk-UKLCYEZU.js → chunk-I26RGEVQ.js} +7 -7
  70. package/dist/_node-chunks/{chunk-JKPKEYSH.js → chunk-I36FPWMO.js} +6 -6
  71. package/dist/_node-chunks/{chunk-C2HVGXLD.js → chunk-IDPQ3CVN.js} +264 -312
  72. package/dist/_node-chunks/{chunk-2Q3YWQSK.js → chunk-JUVUVVHI.js} +6 -6
  73. package/dist/_node-chunks/{chunk-NUSHY22I.js → chunk-K6TEIAKH.js} +7 -7
  74. package/dist/_node-chunks/{chunk-W5ZAUN5R.js → chunk-KEXQ3BON.js} +7 -7
  75. package/dist/_node-chunks/{chunk-HPXM4SGT.js → chunk-KUZSE7ZD.js} +9 -9
  76. package/dist/_node-chunks/chunk-LJ5JRR5Q.js +18 -0
  77. package/dist/_node-chunks/{chunk-7F6TIY4T.js → chunk-LMGI47HP.js} +8 -8
  78. package/dist/_node-chunks/{chunk-EFZAYIPN.js → chunk-LPIPPSMS.js} +6 -6
  79. package/dist/_node-chunks/{chunk-UFZUSE3Y.js → chunk-LR4W5G37.js} +6 -6
  80. package/dist/_node-chunks/{chunk-TXZTC6LA.js → chunk-M4MRBEJI.js} +14 -10
  81. package/dist/_node-chunks/{chunk-XCNYQV2M.js → chunk-M7BVABR2.js} +9 -9
  82. package/dist/_node-chunks/{chunk-SPCPGRYF.js → chunk-MK2RPLWT.js} +7 -7
  83. package/dist/_node-chunks/{chunk-ABCEMTIP.js → chunk-MKSEM5C2.js} +6 -6
  84. package/dist/_node-chunks/{chunk-QBWGJYHY.js → chunk-MWQIBOUB.js} +6 -6
  85. package/dist/_node-chunks/{chunk-ZCKTYMZT.js → chunk-NAXIA2JI.js} +8 -8
  86. package/dist/_node-chunks/{chunk-OSNOV4EH.js → chunk-NDVIMCIX.js} +7 -7
  87. package/dist/_node-chunks/{chunk-QX6RXAEU.js → chunk-NIOVXWQZ.js} +6 -6
  88. package/dist/_node-chunks/{chunk-FAR3NIPG.js → chunk-NRP4FGRT.js} +15 -9
  89. package/dist/_node-chunks/{chunk-22A63J7O.js → chunk-NSNBFXVB.js} +7 -7
  90. package/dist/_node-chunks/{chunk-RHH7VDIY.js → chunk-NTUTJAD4.js} +8 -8
  91. package/dist/_node-chunks/{chunk-34DNGOCZ.js → chunk-O46DZ2KC.js} +8 -8
  92. package/dist/_node-chunks/{chunk-KMC5WWQS.js → chunk-OH5M2YER.js} +7 -7
  93. package/dist/_node-chunks/{chunk-DXR3YGRT.js → chunk-OSIENBU6.js} +6 -6
  94. package/dist/_node-chunks/{chunk-BDATIKVV.js → chunk-OVJZBW54.js} +7 -7
  95. package/dist/_node-chunks/{chunk-POA32M7F.js → chunk-PGIDRLZ5.js} +8 -8
  96. package/dist/_node-chunks/{chunk-VJEN2JM3.js → chunk-PJCSZR4T.js} +8 -8
  97. package/dist/_node-chunks/{chunk-AHNN3TQH.js → chunk-PQXP5FZ2.js} +8 -8
  98. package/dist/_node-chunks/{chunk-22TWJGGQ.js → chunk-PU33WSBW.js} +18 -21
  99. package/dist/_node-chunks/{chunk-HW4T3OXA.js → chunk-PUBZLLNL.js} +7 -7
  100. package/dist/_node-chunks/{chunk-UGQFYYBC.js → chunk-QWZZX2HN.js} +6 -6
  101. package/dist/_node-chunks/{chunk-JMFTALJW.js → chunk-RMUBUNBY.js} +6 -6
  102. package/dist/_node-chunks/{chunk-BMM74ZQW.js → chunk-S33FEPQ3.js} +6 -6
  103. package/dist/_node-chunks/{chunk-O2CCUB5T.js → chunk-SHP6447T.js} +7 -7
  104. package/dist/_node-chunks/{chunk-NO7MF6VR.js → chunk-ST3KB36E.js} +6 -6
  105. package/dist/_node-chunks/{chunk-JXS4P2RM.js → chunk-SXX75O2D.js} +7 -7
  106. package/dist/_node-chunks/{chunk-ORSH2FXG.js → chunk-TQ5YAQ4Y.js} +6 -6
  107. package/dist/_node-chunks/{chunk-RMJNWFPV.js → chunk-TSJ3JCNN.js} +16 -10
  108. package/dist/_node-chunks/{chunk-XOAWAXUH.js → chunk-UYEX6LW6.js} +7 -7
  109. package/dist/_node-chunks/{chunk-3X67K6EI.js → chunk-VJLLEKWR.js} +11 -11
  110. package/dist/_node-chunks/{chunk-7SBWGNA7.js → chunk-WWJKLYU5.js} +8 -8
  111. package/dist/_node-chunks/{chunk-WNEWL2PL.js → chunk-XC7K4QEX.js} +6 -6
  112. package/dist/_node-chunks/{chunk-Q64ESHBN.js → chunk-Y64FM6U7.js} +8 -8
  113. package/dist/_node-chunks/{chunk-2GJBHF56.js → chunk-YDM7NH4T.js} +6 -6
  114. package/dist/_node-chunks/{chunk-BOWRRVJM.js → chunk-ZHVOUP6D.js} +6 -6
  115. package/dist/_node-chunks/dist-CFCU4PZG.js +27 -0
  116. package/dist/_node-chunks/dist-PFMT5YJK.js +16 -0
  117. package/dist/_node-chunks/{local-runtime-Z667YPXR.js → local-runtime-BKID5MBG.js} +19 -19
  118. package/dist/_node-chunks/{mdx-plugin-BPRPTZNP.js → mdx-plugin-7BOUDCZB.js} +13 -13
  119. package/dist/_node-chunks/{monorepo-GO54BY34.js → monorepo-FRHSAJB7.js} +11 -11
  120. package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-PEHFNJQ5.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-7BHSAJP4.js} +11 -11
  121. package/dist/_node-chunks/optimized-tests-F5LCOTXH.js +22 -0
  122. package/dist/_node-chunks/{pattern-copy-play-64HQIVWK.js → pattern-copy-play-6TGV6WS4.js} +9 -9
  123. package/dist/_node-chunks/postinstallAddon-4RININ5C.js +20 -0
  124. package/dist/_node-chunks/{rehype-external-links-2BSEZ7AC.js → rehype-external-links-EE2HT4QP.js} +9 -9
  125. package/dist/_node-chunks/{rehype-slug-6253EA36.js → rehype-slug-ZKRW2V6Z.js} +9 -9
  126. package/dist/_node-chunks/{relaxed-limits-4PAAPG3J.js → relaxed-limits-6Q7VRQC5.js} +11 -11
  127. package/dist/_node-chunks/{run-XJT3YVMZ.js → run-6Y3ZTASZ.js} +22 -20
  128. package/dist/_node-chunks/{run-3SQW3FRF.js → run-EBHIAT35.js} +17 -17
  129. package/dist/_node-chunks/{setup-JIYCTADZ.js → setup-6XIF77JT.js} +8 -8
  130. package/dist/_node-chunks/{vitest.config.4.template-W74SGWHT.js → vitest.config.4.template-GMQNQ4UW.js} +7 -7
  131. package/dist/actions/decorator.js +5 -2
  132. package/dist/actions/index.d.ts +3 -3
  133. package/dist/actions/index.js +1 -1
  134. package/dist/addon-a11y/index.js +1 -1
  135. package/dist/addon-a11y/manager.js +5 -5
  136. package/dist/addon-a11y/preset.js +7 -7
  137. package/dist/addon-a11y/preview.d.ts +8 -2
  138. package/dist/addon-a11y/preview.js +1 -1
  139. package/dist/addon-docs/blocks.d.ts +98 -83
  140. package/dist/addon-docs/blocks.js +10 -10
  141. package/dist/addon-docs/index.d.ts +2 -2
  142. package/dist/addon-docs/manager.js +2 -2
  143. package/dist/addon-docs/preset.js +12 -12
  144. package/dist/addon-docs/preview.d.ts +3 -1
  145. package/dist/addon-links/index.d.ts +2 -1
  146. package/dist/addon-links/preview.d.ts +1 -1
  147. package/dist/addon-mcp/preset.js +10 -10
  148. package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +2 -2
  149. package/dist/addon-ondevice-controls/index.js +1 -1
  150. package/dist/addon-ondevice-controls/register.js +1 -1
  151. package/dist/addon-pseudo-states/index.js +1 -1
  152. package/dist/addon-pseudo-states/preview.d.ts +1 -1
  153. package/dist/addon-pseudo-states/preview.js +1 -1
  154. package/dist/addon-themes/index.d.ts +6 -5
  155. package/dist/addon-themes/postinstall.js +7 -7
  156. package/dist/addon-vitest/constants.js +8 -8
  157. package/dist/addon-vitest/manager.js +2 -2
  158. package/dist/addon-vitest/node/coverage-reporter.js +8 -8
  159. package/dist/addon-vitest/node/vitest.js +22 -22
  160. package/dist/addon-vitest/postinstall.js +10 -10
  161. package/dist/addon-vitest/preset.js +20 -19
  162. package/dist/addon-vitest/vitest-plugin/global-setup.js +8 -8
  163. package/dist/addon-vitest/vitest-plugin/index.js +13 -13
  164. package/dist/babel/index.d.ts +209 -212
  165. package/dist/babel/index.js +11 -11
  166. package/dist/bin/core.js +60 -57
  167. package/dist/bin/dispatcher.js +10 -10
  168. package/dist/bin/loader.js +8 -8
  169. package/dist/builder-vite/index.d.ts +1 -1
  170. package/dist/builder-vite/index.js +15 -15
  171. package/dist/builder-vite/preset.js +13 -13
  172. package/dist/channels/index.d.ts +1 -1
  173. package/dist/channels/index.js +2 -2
  174. package/dist/{chunk-BmCH-L7_.d.ts → chunk-BCG2ui5q.d.ts} +236 -249
  175. package/dist/{chunk-DoIGKY33.d.ts → chunk-BLZXEm1K.d.ts} +6 -8
  176. package/dist/{chunk-evfhuBNU.d.ts → chunk-BNRZY6Jq.d.ts} +2 -2
  177. package/dist/{chunk-Bn1RoGAP.d.ts → chunk-BV_hETtB.d.ts} +2 -2
  178. package/dist/chunk-BcYKnZln.d.ts +10 -0
  179. package/dist/{chunk-BCoJQE-f.d.ts → chunk-BtKww7r1.d.ts} +6 -4
  180. package/dist/{chunk-Bpi2tz-6.d.ts → chunk-Bubi-WAs.d.ts} +20 -17
  181. package/dist/{chunk-pcFXCimE.d.ts → chunk-CmV7WZzR.d.ts} +124 -2
  182. package/dist/{chunk-BGkgZp-H.d.ts → chunk-D3uSIa6H.d.ts} +9 -1
  183. package/dist/{chunk-DROZ9oel.d.ts → chunk-DNCU78oW.d.ts} +110 -9
  184. package/dist/{chunk-IMedIHPn.d.ts → chunk-LWwxlbee.d.ts} +2 -2
  185. package/dist/{chunk-CfEntHiI.d.ts → chunk-u_gGuTrz.d.ts} +5 -5
  186. package/dist/cli/index.d.ts +3 -3
  187. package/dist/cli/index.js +21 -21
  188. package/dist/cli/skills/content/index.d.ts +1 -1
  189. package/dist/cli/tools/sdk/child-host.d.ts +1 -1
  190. package/dist/cli/tools/sdk/child-host.js +17 -17
  191. package/dist/cli/tools/sdk/index.d.ts +3 -3
  192. package/dist/cli/tools/sdk/index.js +18 -18
  193. package/dist/cli-commands/bin/index.js +7 -7
  194. package/dist/client-logger/index.d.ts +20 -21
  195. package/dist/common/index.d.ts +12 -12
  196. package/dist/common/index.js +34 -34
  197. package/dist/components/index.d.ts +40 -29
  198. package/dist/components/index.js +66 -67
  199. package/dist/core-events/index.d.ts +2 -2
  200. package/dist/core-server/index.d.ts +12 -7
  201. package/dist/core-server/index.js +87 -79
  202. package/dist/core-server/presets/common-manager.js +36 -29
  203. package/dist/core-server/presets/common-override-preset.js +10 -10
  204. package/dist/core-server/presets/common-preset.js +50 -47
  205. package/dist/create/bin/index.js +7 -7
  206. package/dist/create/index.js +15 -15
  207. package/dist/csf/index.d.ts +2 -2
  208. package/dist/csf/index.js +34 -37
  209. package/dist/csf-tools/index.d.ts +11 -7
  210. package/dist/csf-tools/index.js +12 -12
  211. package/dist/docs-tools/index.d.ts +332 -16
  212. package/dist/docs-tools/index.js +3 -3
  213. package/dist/instrumenter/index.d.ts +4 -4
  214. package/dist/instrumenter/index.js +24 -14
  215. package/dist/manager/_manager-chunks/{globals-runtime-BWciJpaD.js → globals-runtime-BgWmCsA7.js} +91 -89
  216. package/dist/manager/_manager-chunks/{globals-runtime-BFVFUcji.js → globals-runtime-C59T0h-j.js} +1 -1
  217. package/dist/manager/_manager-chunks/{globals-runtime-DweLlyBa.js → globals-runtime-CCZrdft6.js} +2 -2
  218. package/dist/manager/_manager-chunks/{globals-runtime-CdLHkSK1.js → globals-runtime-Cccwtspx.js} +30 -21
  219. package/dist/manager/_manager-chunks/{globals-runtime-DhygDQ09.js → globals-runtime-Ddp2jFET.js} +2 -2
  220. package/dist/manager/_manager-chunks/{globals-runtime--RDllwDw.js → globals-runtime-UFDJQlo-.js} +49 -41
  221. package/dist/manager/_manager-chunks/{runtime-BBaBlpAS.js → runtime-4wMiTjjZ.js} +2 -2
  222. package/dist/manager/_manager-chunks/{runtime-Dj8tizGo.js → runtime-AvqHE9rM.js} +31 -28
  223. package/dist/manager/_manager-chunks/{runtime-CE_oqcpl.js → runtime-D8QxTQiI.js} +2 -2
  224. package/dist/manager/_manager-chunks/{runtime-CRqm7NXD.js → runtime-DC3oEVlM.js} +1 -1
  225. package/dist/manager/_manager-chunks/{runtime-1BcYUf7-.js → runtime-DCOIOn4T.js} +24 -16
  226. package/dist/manager/_manager-chunks/{runtime-BFgSyEE6.js → runtime-D_FDSHFG.js} +3 -3
  227. package/dist/manager/_manager-chunks/{runtime-D3Gk2bTl.js → runtime-lPbyY_f5.js} +167 -165
  228. package/dist/manager/_manager-chunks/{runtime-B2VQIT0n.js → runtime-td6oYfU6.js} +1 -1
  229. package/dist/manager/globals-runtime.js +1 -1
  230. package/dist/manager/runtime.js +1 -1
  231. package/dist/manager-api/index.d.ts +1 -1
  232. package/dist/manager-api/index.js +55 -56
  233. package/dist/manager-errors.d.ts +1 -1
  234. package/dist/mcp/index.d.ts +1 -1
  235. package/dist/mcp/index.js +8 -8
  236. package/dist/mocking-utils/index.d.ts +5 -3
  237. package/dist/mocking-utils/index.js +16 -17
  238. package/dist/nextjs-vite/export-mocks/headers/index.js +3 -1
  239. package/dist/nextjs-vite/export-mocks/link/index.d.ts +4 -1
  240. package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +9 -1
  241. package/dist/nextjs-vite/export-mocks/router/index.js +13 -7
  242. package/dist/nextjs-vite/index.d.ts +1 -1
  243. package/dist/nextjs-vite/index.js +9 -5
  244. package/dist/nextjs-vite/node/index.js +7 -7
  245. package/dist/nextjs-vite/preset.js +10 -10
  246. package/dist/nextjs-vite/preview.d.ts +2 -1
  247. package/dist/nextjs-vite/preview.js +1 -1
  248. package/dist/nextjs-vite/vite-plugin/index.js +7 -7
  249. package/dist/nextjs-vite-plugin/index.js +12 -22
  250. package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
  251. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +10 -6
  252. package/dist/node-logger/index.d.ts +2 -2
  253. package/dist/node-logger/index.js +9 -9
  254. package/dist/oxc-parser/index.js +10 -10
  255. package/dist/oxc-parser/worker.js +10 -10
  256. package/dist/preview/_chunks/{runtime-CBKlMZg2.js → runtime-BYRCSYBN.js} +2 -2
  257. package/dist/preview/_chunks/{runtime-DZ7fvh0y.js → runtime-Bvh_rfnQ.js} +2 -37
  258. package/dist/preview/_chunks/{runtime-C_nyb8QT.js → runtime-CdZ1yk7m.js} +2 -2
  259. package/dist/preview/_chunks/{runtime-Bjm1gBLN.js → runtime-CsO4apr9.js} +37 -28
  260. package/dist/preview/_chunks/{runtime-BSJ0Ov_b.js → runtime-D2MPrqbU.js} +2 -2
  261. package/dist/preview/_chunks/{runtime-CElbz0uN.js → runtime-DS0s7U3c.js} +1 -1
  262. package/dist/preview/_chunks/{runtime-CzTPeFXg.js → runtime-U1Ycy25F.js} +32 -24
  263. package/dist/preview/_chunks/{runtime-4BNaFIif.js → runtime-tyJLgv6h.js} +50 -48
  264. package/dist/preview/runtime.js +1 -1
  265. package/dist/preview-api/index.d.ts +3 -3
  266. package/dist/preview-api/index.js +7 -7
  267. package/dist/preview-errors.d.ts +1 -1
  268. package/dist/react/docgen/docgen-worker.js +11 -11
  269. package/dist/react/entry-preview-argtypes.js +1 -1
  270. package/dist/react/entry-preview-docs.js +1 -1
  271. package/dist/react/entry-preview.js +1 -1
  272. package/dist/react/index.d.ts +4 -6
  273. package/dist/react/index.js +5 -5
  274. package/dist/react/preset.js +13 -13
  275. package/dist/react/preview.js +4 -4
  276. package/dist/react-native/bin/get-stories.js +8 -8
  277. package/dist/react-native/index.js +11 -7
  278. package/dist/react-native/metro/node.js +10 -10
  279. package/dist/react-native/metro/withForkbook.js +13 -13
  280. package/dist/react-native/scripts/generate.js +8 -8
  281. package/dist/react-native-ui/index.d.ts +4 -4
  282. package/dist/react-native-ui-common/index.d.ts +24 -4
  283. package/dist/react-native-ui-common/index.js +20 -25
  284. package/dist/react-vite/node/index.js +7 -7
  285. package/dist/react-vite/preset.js +7 -7
  286. package/dist/router/index.d.ts +2 -2
  287. package/dist/router/index.js +4 -2
  288. package/dist/server-errors.d.ts +1 -1
  289. package/dist/server-errors.js +9 -9
  290. package/dist/shared/open-service/index.d.ts +3 -3
  291. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
  292. package/dist/shared/open-service/toolsets/docs/public.d.ts +5 -5
  293. package/dist/telemetry/index.js +11 -11
  294. package/dist/test/index.d.ts +2 -2
  295. package/dist/test/index.js +14 -8
  296. package/dist/theming/create.d.ts +1 -1
  297. package/dist/theming/index.d.ts +1 -1
  298. package/dist/types/index.d.ts +2 -2
  299. package/dist/types/index.js +1 -1
  300. package/package.json +2 -2
  301. package/dist/_node-chunks/chunk-CWIJ2D5F.js +0 -18
  302. package/dist/_node-chunks/chunk-J3CNNXKQ.js +0 -11
  303. package/dist/_node-chunks/dist-2DPC664Y.js +0 -27
  304. package/dist/_node-chunks/dist-XBFUDMFQ.js +0 -16
  305. package/dist/_node-chunks/optimized-tests-W7U4ZRWX.js +0 -22
  306. package/dist/_node-chunks/postinstallAddon-XM2BHKDN.js +0 -20
  307. package/dist/chunk-BGhyFTJO.d.ts +0 -115
  308. package/dist/chunk-DaVb55-_.d.ts +0 -124
@@ -1,29 +1,29 @@
1
- import CJS_COMPAT_NODE_URL_enqaafxxjgh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_enqaafxxjgh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_enqaafxxjgh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_sfnpbdazcnb from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_sfnpbdazcnb from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_sfnpbdazcnb from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_enqaafxxjgh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_enqaafxxjgh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_enqaafxxjgh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_sfnpbdazcnb.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_sfnpbdazcnb.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_sfnpbdazcnb.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  require_lib
14
- } from "./chunk-DNX4BLMS.js";
14
+ } from "./chunk-GQZZQB4K.js";
15
15
  import {
16
16
  Parser,
17
17
  init_acorn,
18
18
  require_acorn_jsx
19
- } from "./chunk-W5ZAUN5R.js";
19
+ } from "./chunk-KEXQ3BON.js";
20
20
  import {
21
21
  up2 as up
22
- } from "./chunk-DXR3YGRT.js";
22
+ } from "./chunk-OSIENBU6.js";
23
23
  import {
24
24
  __commonJS,
25
25
  __toESM
26
- } from "./chunk-MNQVVJZN.js";
26
+ } from "./chunk-6JSZY5TJ.js";
27
27
 
28
28
  // ../../node_modules/estraverse/estraverse.js
29
29
  var require_estraverse = __commonJS({
@@ -2778,273 +2778,6 @@ var require_escodegen = __commonJS({
2778
2778
  }
2779
2779
  });
2780
2780
 
2781
- // ../../node_modules/acorn-walk/dist/walk.js
2782
- var require_walk = __commonJS({
2783
- "../../node_modules/acorn-walk/dist/walk.js"(exports, module) {
2784
- (function(global2, factory) {
2785
- typeof exports == "object" && typeof module < "u" ? factory(exports) : typeof define == "function" && define.amd ? define(["exports"], factory) : (global2 = global2 || self, factory((global2.acorn = global2.acorn || {}, global2.acorn.walk = {})));
2786
- })(exports, (function(exports2) {
2787
- "use strict";
2788
- function simple2(node, visitors, baseVisitor, state, override) {
2789
- baseVisitor || (baseVisitor = base2), (function c(node2, st, override2) {
2790
- var type = override2 || node2.type, found = visitors[type];
2791
- baseVisitor[type](node2, st, c), found && found(node2, st);
2792
- })(node, state, override);
2793
- }
2794
- function ancestor2(node, visitors, baseVisitor, state, override) {
2795
- var ancestors = [];
2796
- baseVisitor || (baseVisitor = base2), (function c(node2, st, override2) {
2797
- var type = override2 || node2.type, found = visitors[type], isNew = node2 !== ancestors[ancestors.length - 1];
2798
- isNew && ancestors.push(node2), baseVisitor[type](node2, st, c), found && found(node2, st || ancestors, ancestors), isNew && ancestors.pop();
2799
- })(node, state, override);
2800
- }
2801
- function recursive(node, state, funcs, baseVisitor, override) {
2802
- var visitor = funcs ? make(funcs, baseVisitor || void 0) : baseVisitor;
2803
- (function c(node2, st, override2) {
2804
- visitor[override2 || node2.type](node2, st, c);
2805
- })(node, state, override);
2806
- }
2807
- function makeTest(test) {
2808
- return typeof test == "string" ? function(type) {
2809
- return type === test;
2810
- } : test || function() {
2811
- return !0;
2812
- };
2813
- }
2814
- var Found = function(node, state) {
2815
- this.node = node, this.state = state;
2816
- };
2817
- function full(node, callback, baseVisitor, state, override) {
2818
- baseVisitor || (baseVisitor = base2), (function c(node2, st, override2) {
2819
- var type = override2 || node2.type;
2820
- baseVisitor[type](node2, st, c), override2 || callback(node2, st, type);
2821
- })(node, state, override);
2822
- }
2823
- function fullAncestor(node, callback, baseVisitor, state) {
2824
- baseVisitor || (baseVisitor = base2);
2825
- var ancestors = [];
2826
- (function c(node2, st, override) {
2827
- var type = override || node2.type, isNew = node2 !== ancestors[ancestors.length - 1];
2828
- isNew && ancestors.push(node2), baseVisitor[type](node2, st, c), override || callback(node2, st || ancestors, ancestors, type), isNew && ancestors.pop();
2829
- })(node, state);
2830
- }
2831
- function findNodeAt(node, start, end, test, baseVisitor, state) {
2832
- baseVisitor || (baseVisitor = base2), test = makeTest(test);
2833
- try {
2834
- (function c(node2, st, override) {
2835
- var type = override || node2.type;
2836
- if ((start == null || node2.start <= start) && (end == null || node2.end >= end) && baseVisitor[type](node2, st, c), (start == null || node2.start === start) && (end == null || node2.end === end) && test(type, node2))
2837
- throw new Found(node2, st);
2838
- })(node, state);
2839
- } catch (e) {
2840
- if (e instanceof Found)
2841
- return e;
2842
- throw e;
2843
- }
2844
- }
2845
- function findNodeAround(node, pos, test, baseVisitor, state) {
2846
- test = makeTest(test), baseVisitor || (baseVisitor = base2);
2847
- try {
2848
- (function c(node2, st, override) {
2849
- var type = override || node2.type;
2850
- if (!(node2.start > pos || node2.end < pos) && (baseVisitor[type](node2, st, c), test(type, node2)))
2851
- throw new Found(node2, st);
2852
- })(node, state);
2853
- } catch (e) {
2854
- if (e instanceof Found)
2855
- return e;
2856
- throw e;
2857
- }
2858
- }
2859
- function findNodeAfter(node, pos, test, baseVisitor, state) {
2860
- test = makeTest(test), baseVisitor || (baseVisitor = base2);
2861
- try {
2862
- (function c(node2, st, override) {
2863
- if (!(node2.end < pos)) {
2864
- var type = override || node2.type;
2865
- if (node2.start >= pos && test(type, node2))
2866
- throw new Found(node2, st);
2867
- baseVisitor[type](node2, st, c);
2868
- }
2869
- })(node, state);
2870
- } catch (e) {
2871
- if (e instanceof Found)
2872
- return e;
2873
- throw e;
2874
- }
2875
- }
2876
- function findNodeBefore(node, pos, test, baseVisitor, state) {
2877
- test = makeTest(test), baseVisitor || (baseVisitor = base2);
2878
- var max;
2879
- return (function c(node2, st, override) {
2880
- if (!(node2.start > pos)) {
2881
- var type = override || node2.type;
2882
- node2.end <= pos && (!max || max.node.end < node2.end) && test(type, node2) && (max = new Found(node2, st)), baseVisitor[type](node2, st, c);
2883
- }
2884
- })(node, state), max;
2885
- }
2886
- var create = Object.create || function(proto) {
2887
- function Ctor() {
2888
- }
2889
- return Ctor.prototype = proto, new Ctor();
2890
- };
2891
- function make(funcs, baseVisitor) {
2892
- var visitor = create(baseVisitor || base2);
2893
- for (var type in funcs)
2894
- visitor[type] = funcs[type];
2895
- return visitor;
2896
- }
2897
- function skipThrough(node, st, c) {
2898
- c(node, st);
2899
- }
2900
- function ignore(_node, _st, _c) {
2901
- }
2902
- var base2 = {};
2903
- base2.Program = base2.BlockStatement = function(node, st, c) {
2904
- for (var i = 0, list = node.body; i < list.length; i += 1) {
2905
- var stmt = list[i];
2906
- c(stmt, st, "Statement");
2907
- }
2908
- }, base2.Statement = skipThrough, base2.EmptyStatement = ignore, base2.ExpressionStatement = base2.ParenthesizedExpression = base2.ChainExpression = function(node, st, c) {
2909
- return c(node.expression, st, "Expression");
2910
- }, base2.IfStatement = function(node, st, c) {
2911
- c(node.test, st, "Expression"), c(node.consequent, st, "Statement"), node.alternate && c(node.alternate, st, "Statement");
2912
- }, base2.LabeledStatement = function(node, st, c) {
2913
- return c(node.body, st, "Statement");
2914
- }, base2.BreakStatement = base2.ContinueStatement = ignore, base2.WithStatement = function(node, st, c) {
2915
- c(node.object, st, "Expression"), c(node.body, st, "Statement");
2916
- }, base2.SwitchStatement = function(node, st, c) {
2917
- c(node.discriminant, st, "Expression");
2918
- for (var i$1 = 0, list$1 = node.cases; i$1 < list$1.length; i$1 += 1) {
2919
- var cs = list$1[i$1];
2920
- cs.test && c(cs.test, st, "Expression");
2921
- for (var i = 0, list = cs.consequent; i < list.length; i += 1) {
2922
- var cons = list[i];
2923
- c(cons, st, "Statement");
2924
- }
2925
- }
2926
- }, base2.SwitchCase = function(node, st, c) {
2927
- node.test && c(node.test, st, "Expression");
2928
- for (var i = 0, list = node.consequent; i < list.length; i += 1) {
2929
- var cons = list[i];
2930
- c(cons, st, "Statement");
2931
- }
2932
- }, base2.ReturnStatement = base2.YieldExpression = base2.AwaitExpression = function(node, st, c) {
2933
- node.argument && c(node.argument, st, "Expression");
2934
- }, base2.ThrowStatement = base2.SpreadElement = function(node, st, c) {
2935
- return c(node.argument, st, "Expression");
2936
- }, base2.TryStatement = function(node, st, c) {
2937
- c(node.block, st, "Statement"), node.handler && c(node.handler, st), node.finalizer && c(node.finalizer, st, "Statement");
2938
- }, base2.CatchClause = function(node, st, c) {
2939
- node.param && c(node.param, st, "Pattern"), c(node.body, st, "Statement");
2940
- }, base2.WhileStatement = base2.DoWhileStatement = function(node, st, c) {
2941
- c(node.test, st, "Expression"), c(node.body, st, "Statement");
2942
- }, base2.ForStatement = function(node, st, c) {
2943
- node.init && c(node.init, st, "ForInit"), node.test && c(node.test, st, "Expression"), node.update && c(node.update, st, "Expression"), c(node.body, st, "Statement");
2944
- }, base2.ForInStatement = base2.ForOfStatement = function(node, st, c) {
2945
- c(node.left, st, "ForInit"), c(node.right, st, "Expression"), c(node.body, st, "Statement");
2946
- }, base2.ForInit = function(node, st, c) {
2947
- node.type === "VariableDeclaration" ? c(node, st) : c(node, st, "Expression");
2948
- }, base2.DebuggerStatement = ignore, base2.FunctionDeclaration = function(node, st, c) {
2949
- return c(node, st, "Function");
2950
- }, base2.VariableDeclaration = function(node, st, c) {
2951
- for (var i = 0, list = node.declarations; i < list.length; i += 1) {
2952
- var decl = list[i];
2953
- c(decl, st);
2954
- }
2955
- }, base2.VariableDeclarator = function(node, st, c) {
2956
- c(node.id, st, "Pattern"), node.init && c(node.init, st, "Expression");
2957
- }, base2.Function = function(node, st, c) {
2958
- node.id && c(node.id, st, "Pattern");
2959
- for (var i = 0, list = node.params; i < list.length; i += 1) {
2960
- var param = list[i];
2961
- c(param, st, "Pattern");
2962
- }
2963
- c(node.body, st, node.expression ? "Expression" : "Statement");
2964
- }, base2.Pattern = function(node, st, c) {
2965
- node.type === "Identifier" ? c(node, st, "VariablePattern") : node.type === "MemberExpression" ? c(node, st, "MemberPattern") : c(node, st);
2966
- }, base2.VariablePattern = ignore, base2.MemberPattern = skipThrough, base2.RestElement = function(node, st, c) {
2967
- return c(node.argument, st, "Pattern");
2968
- }, base2.ArrayPattern = function(node, st, c) {
2969
- for (var i = 0, list = node.elements; i < list.length; i += 1) {
2970
- var elt = list[i];
2971
- elt && c(elt, st, "Pattern");
2972
- }
2973
- }, base2.ObjectPattern = function(node, st, c) {
2974
- for (var i = 0, list = node.properties; i < list.length; i += 1) {
2975
- var prop = list[i];
2976
- prop.type === "Property" ? (prop.computed && c(prop.key, st, "Expression"), c(prop.value, st, "Pattern")) : prop.type === "RestElement" && c(prop.argument, st, "Pattern");
2977
- }
2978
- }, base2.Expression = skipThrough, base2.ThisExpression = base2.Super = base2.MetaProperty = ignore, base2.ArrayExpression = function(node, st, c) {
2979
- for (var i = 0, list = node.elements; i < list.length; i += 1) {
2980
- var elt = list[i];
2981
- elt && c(elt, st, "Expression");
2982
- }
2983
- }, base2.ObjectExpression = function(node, st, c) {
2984
- for (var i = 0, list = node.properties; i < list.length; i += 1) {
2985
- var prop = list[i];
2986
- c(prop, st);
2987
- }
2988
- }, base2.FunctionExpression = base2.ArrowFunctionExpression = base2.FunctionDeclaration, base2.SequenceExpression = function(node, st, c) {
2989
- for (var i = 0, list = node.expressions; i < list.length; i += 1) {
2990
- var expr = list[i];
2991
- c(expr, st, "Expression");
2992
- }
2993
- }, base2.TemplateLiteral = function(node, st, c) {
2994
- for (var i = 0, list = node.quasis; i < list.length; i += 1) {
2995
- var quasi = list[i];
2996
- c(quasi, st);
2997
- }
2998
- for (var i$1 = 0, list$1 = node.expressions; i$1 < list$1.length; i$1 += 1) {
2999
- var expr = list$1[i$1];
3000
- c(expr, st, "Expression");
3001
- }
3002
- }, base2.TemplateElement = ignore, base2.UnaryExpression = base2.UpdateExpression = function(node, st, c) {
3003
- c(node.argument, st, "Expression");
3004
- }, base2.BinaryExpression = base2.LogicalExpression = function(node, st, c) {
3005
- c(node.left, st, "Expression"), c(node.right, st, "Expression");
3006
- }, base2.AssignmentExpression = base2.AssignmentPattern = function(node, st, c) {
3007
- c(node.left, st, "Pattern"), c(node.right, st, "Expression");
3008
- }, base2.ConditionalExpression = function(node, st, c) {
3009
- c(node.test, st, "Expression"), c(node.consequent, st, "Expression"), c(node.alternate, st, "Expression");
3010
- }, base2.NewExpression = base2.CallExpression = function(node, st, c) {
3011
- if (c(node.callee, st, "Expression"), node.arguments)
3012
- for (var i = 0, list = node.arguments; i < list.length; i += 1) {
3013
- var arg = list[i];
3014
- c(arg, st, "Expression");
3015
- }
3016
- }, base2.MemberExpression = function(node, st, c) {
3017
- c(node.object, st, "Expression"), node.computed && c(node.property, st, "Expression");
3018
- }, base2.ExportNamedDeclaration = base2.ExportDefaultDeclaration = function(node, st, c) {
3019
- node.declaration && c(node.declaration, st, node.type === "ExportNamedDeclaration" || node.declaration.id ? "Statement" : "Expression"), node.source && c(node.source, st, "Expression");
3020
- }, base2.ExportAllDeclaration = function(node, st, c) {
3021
- node.exported && c(node.exported, st), c(node.source, st, "Expression");
3022
- }, base2.ImportDeclaration = function(node, st, c) {
3023
- for (var i = 0, list = node.specifiers; i < list.length; i += 1) {
3024
- var spec = list[i];
3025
- c(spec, st);
3026
- }
3027
- c(node.source, st, "Expression");
3028
- }, base2.ImportExpression = function(node, st, c) {
3029
- c(node.source, st, "Expression");
3030
- }, base2.ImportSpecifier = base2.ImportDefaultSpecifier = base2.ImportNamespaceSpecifier = base2.Identifier = base2.Literal = ignore, base2.TaggedTemplateExpression = function(node, st, c) {
3031
- c(node.tag, st, "Expression"), c(node.quasi, st, "Expression");
3032
- }, base2.ClassDeclaration = base2.ClassExpression = function(node, st, c) {
3033
- return c(node, st, "Class");
3034
- }, base2.Class = function(node, st, c) {
3035
- node.id && c(node.id, st, "Pattern"), node.superClass && c(node.superClass, st, "Expression"), c(node.body, st);
3036
- }, base2.ClassBody = function(node, st, c) {
3037
- for (var i = 0, list = node.body; i < list.length; i += 1) {
3038
- var elt = list[i];
3039
- c(elt, st);
3040
- }
3041
- }, base2.MethodDefinition = base2.Property = function(node, st, c) {
3042
- node.computed && c(node.key, st, "Expression"), c(node.value, st, "Expression");
3043
- }, exports2.ancestor = ancestor2, exports2.base = base2, exports2.findNodeAfter = findNodeAfter, exports2.findNodeAround = findNodeAround, exports2.findNodeAt = findNodeAt, exports2.findNodeBefore = findNodeBefore, exports2.full = full, exports2.fullAncestor = fullAncestor, exports2.make = make, exports2.recursive = recursive, exports2.simple = simple2, Object.defineProperty(exports2, "__esModule", { value: !0 });
3044
- }));
3045
- }
3046
- });
3047
-
3048
2781
  // ../../node_modules/html-tags/html-tags.json
3049
2782
  var require_html_tags = __commonJS({
3050
2783
  "../../node_modules/html-tags/html-tags.json"(exports, module) {
@@ -4431,29 +4164,268 @@ function generateCompactArrayCode(ast) {
4431
4164
 
4432
4165
  // src/react/docs/lib/inspection/acornParser.ts
4433
4166
  init_acorn();
4434
- var import_acorn_jsx = __toESM(require_acorn_jsx(), 1), acornWalk = __toESM(require_walk(), 1);
4167
+ var import_acorn_jsx = __toESM(require_acorn_jsx(), 1);
4168
+
4169
+ // ../../node_modules/acorn-walk/dist/walk.mjs
4170
+ function simple(node, visitors, baseVisitor, state, override) {
4171
+ baseVisitor || (baseVisitor = base), (function c(node2, st, override2) {
4172
+ var type = override2 || node2.type;
4173
+ visitNode(baseVisitor, type, node2, st, c), visitors[type] && visitors[type](node2, st);
4174
+ })(node, state, override);
4175
+ }
4176
+ function ancestor(node, visitors, baseVisitor, state, override) {
4177
+ var ancestors = [];
4178
+ baseVisitor || (baseVisitor = base), (function c(node2, st, override2) {
4179
+ var type = override2 || node2.type, isNew = node2 !== ancestors[ancestors.length - 1];
4180
+ isNew && ancestors.push(node2), visitNode(baseVisitor, type, node2, st, c), visitors[type] && visitors[type](node2, st || ancestors, ancestors), isNew && ancestors.pop();
4181
+ })(node, state, override);
4182
+ }
4183
+ function skipThrough(node, st, c) {
4184
+ c(node, st);
4185
+ }
4186
+ function ignore(_node, _st, _c) {
4187
+ }
4188
+ function visitNode(baseVisitor, type, node, st, c) {
4189
+ if (baseVisitor[type] == null)
4190
+ throw new Error("No walker function defined for node type " + type);
4191
+ baseVisitor[type](node, st, c);
4192
+ }
4193
+ var base = {};
4194
+ base.Program = base.BlockStatement = base.StaticBlock = function(node, st, c) {
4195
+ for (var i = 0, list = node.body; i < list.length; i += 1) {
4196
+ var stmt = list[i];
4197
+ c(stmt, st, "Statement");
4198
+ }
4199
+ };
4200
+ base.Statement = skipThrough;
4201
+ base.EmptyStatement = ignore;
4202
+ base.ExpressionStatement = base.ParenthesizedExpression = base.ChainExpression = function(node, st, c) {
4203
+ return c(node.expression, st, "Expression");
4204
+ };
4205
+ base.IfStatement = function(node, st, c) {
4206
+ c(node.test, st, "Expression"), c(node.consequent, st, "Statement"), node.alternate && c(node.alternate, st, "Statement");
4207
+ };
4208
+ base.LabeledStatement = function(node, st, c) {
4209
+ return c(node.body, st, "Statement");
4210
+ };
4211
+ base.BreakStatement = base.ContinueStatement = ignore;
4212
+ base.WithStatement = function(node, st, c) {
4213
+ c(node.object, st, "Expression"), c(node.body, st, "Statement");
4214
+ };
4215
+ base.SwitchStatement = function(node, st, c) {
4216
+ c(node.discriminant, st, "Expression");
4217
+ for (var i = 0, list = node.cases; i < list.length; i += 1) {
4218
+ var cs = list[i];
4219
+ c(cs, st);
4220
+ }
4221
+ };
4222
+ base.SwitchCase = function(node, st, c) {
4223
+ node.test && c(node.test, st, "Expression");
4224
+ for (var i = 0, list = node.consequent; i < list.length; i += 1) {
4225
+ var cons = list[i];
4226
+ c(cons, st, "Statement");
4227
+ }
4228
+ };
4229
+ base.ReturnStatement = base.YieldExpression = base.AwaitExpression = function(node, st, c) {
4230
+ node.argument && c(node.argument, st, "Expression");
4231
+ };
4232
+ base.ThrowStatement = base.SpreadElement = function(node, st, c) {
4233
+ return c(node.argument, st, "Expression");
4234
+ };
4235
+ base.TryStatement = function(node, st, c) {
4236
+ c(node.block, st, "Statement"), node.handler && c(node.handler, st), node.finalizer && c(node.finalizer, st, "Statement");
4237
+ };
4238
+ base.CatchClause = function(node, st, c) {
4239
+ node.param && c(node.param, st, "Pattern"), c(node.body, st, "Statement");
4240
+ };
4241
+ base.WhileStatement = base.DoWhileStatement = function(node, st, c) {
4242
+ c(node.test, st, "Expression"), c(node.body, st, "Statement");
4243
+ };
4244
+ base.ForStatement = function(node, st, c) {
4245
+ node.init && c(node.init, st, "ForInit"), node.test && c(node.test, st, "Expression"), node.update && c(node.update, st, "Expression"), c(node.body, st, "Statement");
4246
+ };
4247
+ base.ForInStatement = base.ForOfStatement = function(node, st, c) {
4248
+ c(node.left, st, "ForInit"), c(node.right, st, "Expression"), c(node.body, st, "Statement");
4249
+ };
4250
+ base.ForInit = function(node, st, c) {
4251
+ node.type === "VariableDeclaration" ? c(node, st) : c(node, st, "Expression");
4252
+ };
4253
+ base.DebuggerStatement = ignore;
4254
+ base.FunctionDeclaration = function(node, st, c) {
4255
+ return c(node, st, "Function");
4256
+ };
4257
+ base.VariableDeclaration = function(node, st, c) {
4258
+ for (var i = 0, list = node.declarations; i < list.length; i += 1) {
4259
+ var decl = list[i];
4260
+ c(decl, st);
4261
+ }
4262
+ };
4263
+ base.VariableDeclarator = function(node, st, c) {
4264
+ c(node.id, st, "Pattern"), node.init && c(node.init, st, "Expression");
4265
+ };
4266
+ base.Function = function(node, st, c) {
4267
+ node.id && c(node.id, st, "Pattern");
4268
+ for (var i = 0, list = node.params; i < list.length; i += 1) {
4269
+ var param = list[i];
4270
+ c(param, st, "Pattern");
4271
+ }
4272
+ c(node.body, st, node.expression ? "Expression" : "Statement");
4273
+ };
4274
+ base.Pattern = function(node, st, c) {
4275
+ node.type === "Identifier" ? c(node, st, "VariablePattern") : node.type === "MemberExpression" ? c(node, st, "MemberPattern") : c(node, st);
4276
+ };
4277
+ base.VariablePattern = ignore;
4278
+ base.MemberPattern = skipThrough;
4279
+ base.RestElement = function(node, st, c) {
4280
+ return c(node.argument, st, "Pattern");
4281
+ };
4282
+ base.ArrayPattern = function(node, st, c) {
4283
+ for (var i = 0, list = node.elements; i < list.length; i += 1) {
4284
+ var elt = list[i];
4285
+ elt && c(elt, st, "Pattern");
4286
+ }
4287
+ };
4288
+ base.ObjectPattern = function(node, st, c) {
4289
+ for (var i = 0, list = node.properties; i < list.length; i += 1) {
4290
+ var prop = list[i];
4291
+ prop.type === "Property" ? (prop.computed && c(prop.key, st, "Expression"), c(prop.value, st, "Pattern")) : prop.type === "RestElement" && c(prop.argument, st, "Pattern");
4292
+ }
4293
+ };
4294
+ base.Expression = skipThrough;
4295
+ base.ThisExpression = base.Super = base.MetaProperty = ignore;
4296
+ base.ArrayExpression = function(node, st, c) {
4297
+ for (var i = 0, list = node.elements; i < list.length; i += 1) {
4298
+ var elt = list[i];
4299
+ elt && c(elt, st, "Expression");
4300
+ }
4301
+ };
4302
+ base.ObjectExpression = function(node, st, c) {
4303
+ for (var i = 0, list = node.properties; i < list.length; i += 1) {
4304
+ var prop = list[i];
4305
+ c(prop, st);
4306
+ }
4307
+ };
4308
+ base.FunctionExpression = base.ArrowFunctionExpression = base.FunctionDeclaration;
4309
+ base.SequenceExpression = function(node, st, c) {
4310
+ for (var i = 0, list = node.expressions; i < list.length; i += 1) {
4311
+ var expr = list[i];
4312
+ c(expr, st, "Expression");
4313
+ }
4314
+ };
4315
+ base.TemplateLiteral = function(node, st, c) {
4316
+ for (var i = 0, list = node.quasis; i < list.length; i += 1) {
4317
+ var quasi = list[i];
4318
+ c(quasi, st);
4319
+ }
4320
+ for (var i$1 = 0, list$1 = node.expressions; i$1 < list$1.length; i$1 += 1) {
4321
+ var expr = list$1[i$1];
4322
+ c(expr, st, "Expression");
4323
+ }
4324
+ };
4325
+ base.TemplateElement = ignore;
4326
+ base.UnaryExpression = base.UpdateExpression = function(node, st, c) {
4327
+ c(node.argument, st, "Expression");
4328
+ };
4329
+ base.BinaryExpression = base.LogicalExpression = function(node, st, c) {
4330
+ c(node.left, st, "Expression"), c(node.right, st, "Expression");
4331
+ };
4332
+ base.AssignmentExpression = base.AssignmentPattern = function(node, st, c) {
4333
+ c(node.left, st, "Pattern"), c(node.right, st, "Expression");
4334
+ };
4335
+ base.ConditionalExpression = function(node, st, c) {
4336
+ c(node.test, st, "Expression"), c(node.consequent, st, "Expression"), c(node.alternate, st, "Expression");
4337
+ };
4338
+ base.NewExpression = base.CallExpression = function(node, st, c) {
4339
+ if (c(node.callee, st, "Expression"), node.arguments)
4340
+ for (var i = 0, list = node.arguments; i < list.length; i += 1) {
4341
+ var arg = list[i];
4342
+ c(arg, st, "Expression");
4343
+ }
4344
+ };
4345
+ base.MemberExpression = function(node, st, c) {
4346
+ c(node.object, st, "Expression"), node.computed && c(node.property, st, "Expression");
4347
+ };
4348
+ base.ExportNamedDeclaration = base.ExportDefaultDeclaration = function(node, st, c) {
4349
+ if (node.declaration && c(node.declaration, st, node.type === "ExportNamedDeclaration" || node.declaration.id ? "Statement" : "Expression"), node.source && c(node.source, st, "Expression"), node.attributes)
4350
+ for (var i = 0, list = node.attributes; i < list.length; i += 1) {
4351
+ var attr = list[i];
4352
+ c(attr, st);
4353
+ }
4354
+ };
4355
+ base.ExportAllDeclaration = function(node, st, c) {
4356
+ if (node.exported && c(node.exported, st), c(node.source, st, "Expression"), node.attributes)
4357
+ for (var i = 0, list = node.attributes; i < list.length; i += 1) {
4358
+ var attr = list[i];
4359
+ c(attr, st);
4360
+ }
4361
+ };
4362
+ base.ImportAttribute = function(node, st, c) {
4363
+ c(node.value, st, "Expression");
4364
+ };
4365
+ base.ImportDeclaration = function(node, st, c) {
4366
+ for (var i = 0, list = node.specifiers; i < list.length; i += 1) {
4367
+ var spec = list[i];
4368
+ c(spec, st);
4369
+ }
4370
+ if (c(node.source, st, "Expression"), node.attributes)
4371
+ for (var i$1 = 0, list$1 = node.attributes; i$1 < list$1.length; i$1 += 1) {
4372
+ var attr = list$1[i$1];
4373
+ c(attr, st);
4374
+ }
4375
+ };
4376
+ base.ImportExpression = function(node, st, c) {
4377
+ c(node.source, st, "Expression"), node.options && c(node.options, st, "Expression");
4378
+ };
4379
+ base.ImportSpecifier = base.ImportDefaultSpecifier = base.ImportNamespaceSpecifier = base.Identifier = base.PrivateIdentifier = base.Literal = ignore;
4380
+ base.TaggedTemplateExpression = function(node, st, c) {
4381
+ c(node.tag, st, "Expression"), c(node.quasi, st, "Expression");
4382
+ };
4383
+ base.ClassDeclaration = base.ClassExpression = function(node, st, c) {
4384
+ return c(node, st, "Class");
4385
+ };
4386
+ base.Class = function(node, st, c) {
4387
+ node.id && c(node.id, st, "Pattern"), node.superClass && c(node.superClass, st, "Expression"), c(node.body, st);
4388
+ };
4389
+ base.ClassBody = function(node, st, c) {
4390
+ for (var i = 0, list = node.body; i < list.length; i += 1) {
4391
+ var elt = list[i];
4392
+ c(elt, st);
4393
+ }
4394
+ };
4395
+ base.MethodDefinition = base.PropertyDefinition = base.Property = function(node, st, c) {
4396
+ node.computed && c(node.key, st, "Expression"), node.value && c(node.value, st, "Expression");
4397
+ };
4398
+
4399
+ // src/react/docs/lib/inspection/acornParser.ts
4435
4400
  var ACORN_WALK_VISITORS = {
4436
- // @ts-expect-error `base` exists at runtime, but the acorn-walk types do not export it.
4437
- ...acornWalk.base,
4401
+ ...base,
4438
4402
  JSXElement: () => {
4439
4403
  }
4440
- }, acornParser = Parser.extend((0, import_acorn_jsx.default)());
4404
+ };
4405
+ var acornParser = Parser.extend((0, import_acorn_jsx.default)());
4406
+ function hasJsxElement(node) {
4407
+ let found = !1, visitors = {
4408
+ JSXElement() {
4409
+ found = !0;
4410
+ }
4411
+ };
4412
+ return simple(node, visitors, ACORN_WALK_VISITORS), found;
4413
+ }
4441
4414
  function extractIdentifierName(identifierNode) {
4442
- return identifierNode != null ? identifierNode.name : null;
4415
+ return identifierNode != null && "name" in identifierNode ? identifierNode.name : null;
4443
4416
  }
4444
4417
  function filterAncestors(ancestors) {
4445
4418
  return ancestors.filter((x) => x.type === "ObjectExpression" || x.type === "ArrayExpression");
4446
4419
  }
4447
4420
  function calculateNodeDepth(node) {
4448
4421
  let depths = [];
4449
- return acornWalk.ancestor(
4450
- // @ts-expect-error acorn-walk wants acorn nodes, and these are ESTree nodes.
4422
+ return ancestor(
4451
4423
  node,
4452
4424
  {
4453
- ObjectExpression(_, ancestors) {
4425
+ ObjectExpression(_, __, ancestors) {
4454
4426
  depths.push(filterAncestors(ancestors).length);
4455
4427
  },
4456
- ArrayExpression(_, ancestors) {
4428
+ ArrayExpression(_, __, ancestors) {
4457
4429
  depths.push(filterAncestors(ancestors).length);
4458
4430
  }
4459
4431
  },
@@ -4464,7 +4436,7 @@ function parseIdentifier(identifierNode) {
4464
4436
  return {
4465
4437
  inferredType: {
4466
4438
  type: "Identifier" /* IDENTIFIER */,
4467
- identifier: extractIdentifierName(identifierNode)
4439
+ identifier: identifierNode.name
4468
4440
  },
4469
4441
  ast: identifierNode
4470
4442
  };
@@ -4476,19 +4448,8 @@ function parseLiteral(literalNode) {
4476
4448
  };
4477
4449
  }
4478
4450
  function parseFunction(funcNode) {
4479
- let innerJsxElementNode;
4480
- acornWalk.simple(
4481
- // @ts-expect-error acorn-walk wants acorn nodes, and these are ESTree nodes.
4482
- funcNode.body,
4483
- {
4484
- JSXElement(node) {
4485
- innerJsxElementNode = node;
4486
- }
4487
- },
4488
- ACORN_WALK_VISITORS
4489
- );
4490
4451
  let inferredType = {
4491
- type: innerJsxElementNode != null ? "Element" /* ELEMENT */ : "Function" /* FUNCTION */,
4452
+ type: hasJsxElement(funcNode.body) ? "Element" /* ELEMENT */ : "Function" /* FUNCTION */,
4492
4453
  params: funcNode.params,
4493
4454
  hasParams: funcNode.params.length !== 0
4494
4455
  }, identifierName = extractIdentifierName(funcNode.id);
@@ -4498,19 +4459,10 @@ function parseFunction(funcNode) {
4498
4459
  };
4499
4460
  }
4500
4461
  function parseClass(classNode) {
4501
- let innerJsxElementNode;
4502
- return acornWalk.simple(
4503
- // @ts-expect-error acorn-walk wants acorn nodes, and these are ESTree nodes.
4504
- classNode.body,
4505
- {
4506
- JSXElement(node) {
4507
- innerJsxElementNode = node;
4508
- }
4509
- },
4510
- ACORN_WALK_VISITORS
4511
- ), {
4462
+ return {
4512
4463
  inferredType: {
4513
- type: innerJsxElementNode != null ? "Element" /* ELEMENT */ : "Class" /* CLASS */,
4464
+ type: hasJsxElement(classNode.body) ? "Element" /* ELEMENT */ : "Class" /* CLASS */,
4465
+ // An anonymous class gives null. Callers check the identifier for null before they use it.
4514
4466
  identifier: extractIdentifierName(classNode.id)
4515
4467
  },
4516
4468
  ast: classNode
@@ -4702,7 +4654,7 @@ var extractArgTypes = (component) => {
4702
4654
  {
4703
4655
  name,
4704
4656
  description,
4705
- type: { required, ...sbType },
4657
+ type: sbType && { required, ...sbType },
4706
4658
  table: {
4707
4659
  type: type ?? void 0,
4708
4660
  jsDocTags,
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_enqaafxxjgh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_enqaafxxjgh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_enqaafxxjgh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_sfnpbdazcnb from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_sfnpbdazcnb from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_sfnpbdazcnb from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_enqaafxxjgh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_enqaafxxjgh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_enqaafxxjgh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_sfnpbdazcnb.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_sfnpbdazcnb.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_sfnpbdazcnb.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration