@aussieljk/forkbook 0.0.1-4 → 0.0.1-6

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 (318) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +35 -53
  3. package/dist/_browser-chunks/{Color-KRDPNBZS.js → Color-2BMQTRYG.js} +3 -3
  4. package/dist/_browser-chunks/WithTooltip-GJACFWKM.js +196 -0
  5. package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
  6. package/dist/_browser-chunks/chunk-6EJEEII7.js +1149 -0
  7. package/dist/_browser-chunks/{chunk-LXQPPHMD.js → chunk-6IKB2UHQ.js} +27 -27
  8. package/dist/_browser-chunks/chunk-DPRGR3QP.js +5995 -0
  9. package/dist/_browser-chunks/{chunk-K6GRZSXS.js → chunk-EQKMUQF3.js} +4 -3
  10. package/dist/_browser-chunks/{chunk-GU3X2J4S.js → chunk-FRAOQJDI.js} +3 -1
  11. package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-H4ZHAXN3.js} +1 -1
  12. package/dist/_browser-chunks/{chunk-ZLWA5RIE.js → chunk-I4ATZPNZ.js} +1 -1
  13. package/dist/_browser-chunks/{chunk-6SHRDXGF.js → chunk-IJYLSHY7.js} +173 -87
  14. package/dist/_browser-chunks/{chunk-SZCSXISG.js → chunk-NA4ITZTK.js} +7 -5
  15. package/dist/_browser-chunks/chunk-NGMQJMCY.js +53 -0
  16. package/dist/_browser-chunks/{chunk-K2B36HKM.js → chunk-O24AZJZ7.js} +1 -1
  17. package/dist/_browser-chunks/{chunk-BZGX2THJ.js → chunk-QAHDGPZ7.js} +3 -3
  18. package/dist/_browser-chunks/{chunk-NMRSYACM.js → chunk-SFMQDIN2.js} +4 -3
  19. package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
  20. package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-X7D777E6.js} +547 -1622
  21. package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-YYWKZ7O3.js} +3 -1
  22. package/dist/_node-chunks/{attached-runtime-CYMSKF3A.js → attached-runtime-EBWIOQZN.js} +29 -29
  23. package/dist/_node-chunks/{builder-manager-RMLSIO45.js → builder-manager-ETBLZ2RH.js} +288 -349
  24. package/dist/_node-chunks/{chunk-IR34HUSL.js → chunk-252Y5WHZ.js} +7 -7
  25. package/dist/_node-chunks/{chunk-VPOJCHKM.js → chunk-25PXULSJ.js} +14 -14
  26. package/dist/_node-chunks/chunk-2DBJWMYE.js +495 -0
  27. package/dist/_node-chunks/{chunk-KXDJ77EW.js → chunk-3UWWRDA5.js} +7 -7
  28. package/dist/_node-chunks/{chunk-DVLFCSDG.js → chunk-4KCQYJT6.js} +7 -7
  29. package/dist/_node-chunks/{chunk-X3E55W5S.js → chunk-4MJIPOJ5.js} +6 -6
  30. package/dist/_node-chunks/{chunk-5TPSYG4L.js → chunk-4WLIN3VZ.js} +8 -8
  31. package/dist/_node-chunks/{chunk-WBTLBIED.js → chunk-4XNPO23I.js} +6 -6
  32. package/dist/_node-chunks/{chunk-NHIRHARE.js → chunk-5T635FTI.js} +10 -10
  33. package/dist/_node-chunks/{chunk-YU2WFBFL.js → chunk-5Z6MT4RI.js} +8 -8
  34. package/dist/_node-chunks/{chunk-2QWFS23O.js → chunk-644CUCK5.js} +7 -7
  35. package/dist/_node-chunks/{chunk-7XCJ7RAJ.js → chunk-7E27CGRU.js} +7 -7
  36. package/dist/_node-chunks/{chunk-WS367FSJ.js → chunk-A35J7YYA.js} +6 -6
  37. package/dist/_node-chunks/{chunk-ILFIERUB.js → chunk-ALHPFKVB.js} +8 -8
  38. package/dist/_node-chunks/{chunk-SQMCVWOR.js → chunk-ANDQVXYX.js} +8 -8
  39. package/dist/_node-chunks/{chunk-HUFAUSEX.js → chunk-AS4SFRCZ.js} +6 -6
  40. package/dist/_node-chunks/{chunk-XBXGLD3K.js → chunk-BLUMKQQB.js} +6 -6
  41. package/dist/_node-chunks/{chunk-QU5ANYM7.js → chunk-C5JG7EKF.js} +6 -6
  42. package/dist/_node-chunks/{chunk-P6QAFJ5M.js → chunk-CBUQY454.js} +7 -15
  43. package/dist/_node-chunks/{chunk-4LPAWP5S.js → chunk-CF7KLGUW.js} +22 -20
  44. package/dist/_node-chunks/{chunk-MOITZTEA.js → chunk-CGVPHZVD.js} +8 -8
  45. package/dist/_node-chunks/{chunk-2NWHHNNI.js → chunk-DABFUVLR.js} +6 -6
  46. package/dist/_node-chunks/{chunk-XH6TDVML.js → chunk-DCNZ6SFN.js} +6 -6
  47. package/dist/_node-chunks/{chunk-F2N6BJRH.js → chunk-DDGW2EBW.js} +29843 -51588
  48. package/dist/_node-chunks/{chunk-OS5LQEC6.js → chunk-DRLBJM6X.js} +7 -7
  49. package/dist/_node-chunks/{chunk-GEMKJCEE.js → chunk-E3O7VAPG.js} +10 -10
  50. package/dist/_node-chunks/{chunk-4GD7MMLJ.js → chunk-FIFCNBTL.js} +7 -7
  51. package/dist/_node-chunks/{chunk-UMZSNFWM.js → chunk-FQWTUSYB.js} +6 -6
  52. package/dist/_node-chunks/{chunk-JEEXR245.js → chunk-G6YNW4FK.js} +7 -7
  53. package/dist/_node-chunks/{chunk-HP5UY6OY.js → chunk-GDFQQO5U.js} +6 -6
  54. package/dist/_node-chunks/{chunk-653BSJIX.js → chunk-GGTXOH3W.js} +6 -6
  55. package/dist/_node-chunks/{chunk-PDCSUZ4L.js → chunk-GIOREKIG.js} +7 -7
  56. package/dist/_node-chunks/{chunk-V2JDVM46.js → chunk-GOFK4EKU.js} +6 -6
  57. package/dist/_node-chunks/{chunk-INEYTOWF.js → chunk-GQ3HJNIH.js} +10 -13
  58. package/dist/_node-chunks/{chunk-2APY2YSW.js → chunk-GRTI5653.js} +7 -7
  59. package/dist/_node-chunks/{chunk-KN2S7JF2.js → chunk-HKL3VOYX.js} +6 -6
  60. package/dist/_node-chunks/{chunk-A2UMIN5B.js → chunk-HUPRQZ3I.js} +7 -7
  61. package/dist/_node-chunks/{chunk-7JA2DMCJ.js → chunk-HWRHYM7Z.js} +6 -6
  62. package/dist/_node-chunks/{chunk-SBQT3LMM.js → chunk-I7HRDCNY.js} +10 -10
  63. package/dist/_node-chunks/{chunk-2IJCISIB.js → chunk-IFPMZ247.js} +6 -6
  64. package/dist/_node-chunks/{chunk-DIUBMAMV.js → chunk-J6M5CRYZ.js} +8 -8
  65. package/dist/_node-chunks/{chunk-IBO346NQ.js → chunk-JPXJI6QR.js} +60 -134
  66. package/dist/_node-chunks/{chunk-STRSG3GT.js → chunk-JS2J2SKX.js} +6 -6
  67. package/dist/_node-chunks/{chunk-FNGLVURC.js → chunk-JZWF3XLN.js} +6 -6
  68. package/dist/_node-chunks/{chunk-KINEBDMM.js → chunk-KF3FT3NI.js} +9 -9
  69. package/dist/_node-chunks/chunk-KWPWQA7G.js +2609 -0
  70. package/dist/_node-chunks/{chunk-OIIORQX5.js → chunk-L4JGWK4K.js} +6 -6
  71. package/dist/_node-chunks/{chunk-MRZD5SBV.js → chunk-LFIFBDMS.js} +6 -6
  72. package/dist/_node-chunks/{chunk-UAALLQAQ.js → chunk-LWKLJYYQ.js} +6 -6
  73. package/dist/_node-chunks/{chunk-AFKKN27O.js → chunk-LXVSVTQ3.js} +6 -6
  74. package/dist/_node-chunks/chunk-MDW3GSU3.js +69 -0
  75. package/dist/_node-chunks/{chunk-UXW4I2CN.js → chunk-MFN2XBPL.js} +7 -7
  76. package/dist/_node-chunks/{chunk-ESZVID7Q.js → chunk-MQFB44YS.js} +7 -7
  77. package/dist/_node-chunks/{chunk-3XDIBUGD.js → chunk-MZ2GSR3G.js} +23 -51
  78. package/dist/_node-chunks/{chunk-POXTROIX.js → chunk-N7HEOGTM.js} +9 -6
  79. package/dist/_node-chunks/{chunk-UIFLXDUL.js → chunk-NUAQC3XP.js} +16 -13
  80. package/dist/_node-chunks/{chunk-BOUA7OB7.js → chunk-NX6CSWF3.js} +8 -8
  81. package/dist/_node-chunks/{chunk-B3LK7C7B.js → chunk-NZ7EQWYA.js} +9 -9
  82. package/dist/_node-chunks/{chunk-U5QMVW3H.js → chunk-OLGIDCVD.js} +650 -9
  83. package/dist/_node-chunks/{chunk-NAYTBC72.js → chunk-P65JVLO3.js} +8 -8
  84. package/dist/_node-chunks/{chunk-M2UZP5GC.js → chunk-PAN35AYX.js} +7 -7
  85. package/dist/_node-chunks/{chunk-GZBUCUF7.js → chunk-PLWLCVP2.js} +6 -6
  86. package/dist/_node-chunks/{chunk-A4YELYR3.js → chunk-Q4BEWGMK.js} +6 -6
  87. package/dist/_node-chunks/{chunk-YYIZ2PC4.js → chunk-QNUXGVZZ.js} +6 -6
  88. package/dist/_node-chunks/{chunk-WHZWLJGO.js → chunk-R5DWO2S2.js} +31 -30
  89. package/dist/_node-chunks/{chunk-RMLENEZC.js → chunk-SLZV7PTQ.js} +8 -8
  90. package/dist/_node-chunks/{chunk-B5VFV3ZW.js → chunk-TIRP5JQM.js} +11 -10
  91. package/dist/_node-chunks/{chunk-TLVEPWBN.js → chunk-TMXWDY2O.js} +6 -6
  92. package/dist/_node-chunks/{chunk-LGUMVMBA.js → chunk-TN3ULFFZ.js} +6 -6
  93. package/dist/_node-chunks/{chunk-5ZLOPVTG.js → chunk-TPSJW4CQ.js} +6 -6
  94. package/dist/_node-chunks/{chunk-RNF3Z4ZJ.js → chunk-TYBPAV3X.js} +6 -6
  95. package/dist/_node-chunks/chunk-UUE3PSJB.js +11 -0
  96. package/dist/_node-chunks/chunk-VKNRNBTB.js +18 -0
  97. package/dist/_node-chunks/{chunk-6Y6RBJD7.js → chunk-VPU4E7DI.js} +25 -8
  98. package/dist/_node-chunks/{chunk-FJDJE7XC.js → chunk-WIQ6Y3NX.js} +6 -6
  99. package/dist/_node-chunks/{chunk-DD2S4BFV.js → chunk-WRG3CFGS.js} +6 -6
  100. package/dist/_node-chunks/{chunk-FAZ3MUOI.js → chunk-X3RTVNRN.js} +7 -7
  101. package/dist/_node-chunks/chunk-XOGU5PWI.js +347 -0
  102. package/dist/_node-chunks/{chunk-AU3SF2WM.js → chunk-XWGMQW2H.js} +6 -6
  103. package/dist/_node-chunks/chunk-YCXTTQ7K.js +620 -0
  104. package/dist/_node-chunks/{chunk-KZBZYQTZ.js → chunk-YHH57LHY.js} +9 -9
  105. package/dist/_node-chunks/{chunk-J3M3X7GO.js → chunk-YMZ2SGFK.js} +6 -6
  106. package/dist/_node-chunks/{chunk-AY6B2C46.js → chunk-YNENOZRY.js} +7 -7
  107. package/dist/_node-chunks/{chunk-CGWACHNW.js → chunk-YPGVYNJB.js} +6 -6
  108. package/dist/_node-chunks/{chunk-OQ4NCWE4.js → chunk-YQDBSAXW.js} +7 -7
  109. package/dist/_node-chunks/{chunk-YGXJOSRU.js → chunk-Z4NZLBOX.js} +7 -7
  110. package/dist/_node-chunks/{chunk-74IEHSIR.js → chunk-ZC3ZZKMS.js} +8 -8
  111. package/dist/_node-chunks/{chunk-QDLR4JF5.js → chunk-ZCITDAV4.js} +34 -949
  112. package/dist/_node-chunks/chunk-ZNSGFYAT.js +25 -0
  113. package/dist/_node-chunks/{chunk-XD5SYXAU.js → chunk-ZSH6BUCW.js} +25 -25
  114. package/dist/_node-chunks/{chunk-X2KWNNFB.js → chunk-ZTFNOXZF.js} +6 -6
  115. package/dist/_node-chunks/dist-GGTGKXZA.js +27 -0
  116. package/dist/_node-chunks/dist-NS676VJR.js +16 -0
  117. package/dist/_node-chunks/{local-runtime-KTI3DH6X.js → local-runtime-BUTEKJYV.js} +20 -20
  118. package/dist/_node-chunks/{mdx-plugin-2E3SW5TL.js → mdx-plugin-7WXQIHPV.js} +2263 -130
  119. package/dist/_node-chunks/{monorepo-MWAMFHKY.js → monorepo-NCD3X2BR.js} +11 -11
  120. package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-MGORG6W7.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-SD3B272K.js} +11 -11
  121. package/dist/_node-chunks/optimized-tests-ITVOHEOA.js +22 -0
  122. package/dist/_node-chunks/{pattern-copy-play-QTQOY7E7.js → pattern-copy-play-3QJANDJD.js} +9 -9
  123. package/dist/_node-chunks/postinstallAddon-LEUHOKX6.js +20 -0
  124. package/dist/_node-chunks/{rehype-external-links-T7DZNKMB.js → rehype-external-links-4LR5BDR2.js} +9 -9
  125. package/dist/_node-chunks/{rehype-slug-CSHI5WYI.js → rehype-slug-PWFRGOEV.js} +9 -9
  126. package/dist/_node-chunks/{relaxed-limits-RAZD36YR.js → relaxed-limits-VNNWUW7X.js} +11 -11
  127. package/dist/_node-chunks/{run-S6XSLPEB.js → run-RUAAWEQT.js} +13 -13
  128. package/dist/_node-chunks/{run-KJ3Z2TTY.js → run-YK6ARCWS.js} +17 -17
  129. package/dist/_node-chunks/session-id-JJYVZAKO.js +23 -0
  130. package/dist/_node-chunks/{setup-35J66GFB.js → setup-4QKCICV6.js} +8 -8
  131. package/dist/_node-chunks/{vitest.config.4.template-Z7OCRDKD.js → vitest.config.4.template-WVFLIXN7.js} +7 -7
  132. package/dist/actions/decorator.js +2 -1
  133. package/dist/actions/index.js +2 -1
  134. package/dist/addon-a11y/index.js +2 -1
  135. package/dist/addon-a11y/manager.js +24 -17
  136. package/dist/addon-a11y/preset.js +7 -7
  137. package/dist/addon-a11y/preview.js +2 -1
  138. package/dist/addon-docs/blocks.js +46 -25
  139. package/dist/addon-docs/manager.js +2 -2
  140. package/dist/addon-docs/preset.js +10 -10
  141. package/dist/addon-links/index.js +3 -2
  142. package/dist/addon-links/preview.d.ts +1 -1
  143. package/dist/addon-links/preview.js +3 -2
  144. package/dist/addon-links/react/index.js +2 -1
  145. package/dist/addon-mcp/preset.js +8 -8
  146. package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +17 -45
  147. package/dist/addon-ondevice-actions/index.js +5 -1
  148. package/dist/addon-ondevice-actions/register.js +5 -1
  149. package/dist/addon-pseudo-states/manager.js +2 -2
  150. package/dist/addon-pseudo-states/preview.d.ts +1 -1
  151. package/dist/addon-themes/manager.js +1 -1
  152. package/dist/addon-themes/postinstall.js +7 -7
  153. package/dist/addon-vitest/constants.js +8 -8
  154. package/dist/addon-vitest/manager.js +8 -8
  155. package/dist/addon-vitest/node/coverage-reporter.js +8 -8
  156. package/dist/addon-vitest/node/vitest.js +16 -16
  157. package/dist/addon-vitest/postinstall.js +10 -10
  158. package/dist/addon-vitest/preset.js +15 -16
  159. package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
  160. package/dist/addon-vitest/vitest-plugin/index.js +17 -17
  161. package/dist/babel/index.d.ts +91 -842
  162. package/dist/babel/index.js +13 -19
  163. package/dist/bin/core.js +61 -60
  164. package/dist/bin/dispatcher.js +10 -10
  165. package/dist/bin/loader.js +16 -15
  166. package/dist/builder-vite/index.js +15 -15
  167. package/dist/builder-vite/preset.js +13 -13
  168. package/dist/{chunk-DF6btpT3.d.ts → chunk-BGhyFTJO.d.ts} +2 -2
  169. package/dist/chunk-CV4-Z2pn.d.ts +30 -0
  170. package/dist/{chunk-DvufcbCc.d.ts → chunk-CVY28Ngy.d.ts} +1 -1
  171. package/dist/{chunk-B2t1tGRh.d.ts → chunk-CYuvV2sR.d.ts} +11 -13
  172. package/dist/{chunk-BYnH2sbb.d.ts → chunk-ClI-HEh5.d.ts} +1 -1
  173. package/dist/{chunk-DIz17UEJ.d.ts → chunk-CzmZhVrn.d.ts} +35 -1
  174. package/dist/{chunk-B2xylxt5.d.ts → chunk-DROZ9oel.d.ts} +7 -271
  175. package/dist/cli/index.d.ts +13 -866
  176. package/dist/cli/index.js +42 -4952
  177. package/dist/cli/tools/sdk/child-host.d.ts +1 -1
  178. package/dist/cli/tools/sdk/child-host.js +17 -17
  179. package/dist/cli/tools/sdk/index.d.ts +1 -1
  180. package/dist/cli/tools/sdk/index.js +18 -18
  181. package/dist/cli-commands/bin/index.js +7 -7
  182. package/dist/client-logger/index.js +3 -1
  183. package/dist/common/index.d.ts +5 -4
  184. package/dist/common/index.js +35 -37
  185. package/dist/components/index.d.ts +14 -231
  186. package/dist/components/index.js +2518 -8365
  187. package/dist/core-events/index.d.ts +4 -3
  188. package/dist/core-events/index.js +3 -1
  189. package/dist/core-server/index.d.ts +2 -2
  190. package/dist/core-server/index.js +450 -147
  191. package/dist/core-server/presets/common-manager.js +96 -894
  192. package/dist/core-server/presets/common-override-preset.js +12 -10
  193. package/dist/core-server/presets/common-preset.js +39 -40
  194. package/dist/create/bin/index.js +7 -7
  195. package/dist/create/index.js +15 -15
  196. package/dist/csf/index.d.ts +2 -2
  197. package/dist/csf/index.js +27 -93
  198. package/dist/csf-tools/index.d.ts +2 -12
  199. package/dist/csf-tools/index.js +14 -14
  200. package/dist/instrumenter/index.js +3 -1
  201. package/dist/manager/_manager-chunks/{globals-runtime-dKGpUUSb.js → globals-runtime-B-IeQLQu.js} +285 -61
  202. package/dist/manager/_manager-chunks/{globals-runtime-DuLFjsF4.js → globals-runtime-B5-0Ccbv.js} +1 -1
  203. package/dist/manager/_manager-chunks/{globals-runtime-8HkdnU2F.js → globals-runtime-B71TiXST.js} +93 -2146
  204. package/dist/manager/_manager-chunks/globals-runtime-BMCaBukU.js +413 -0
  205. package/dist/manager/_manager-chunks/globals-runtime-BUP5e_t9.js +1396 -0
  206. package/dist/manager/_manager-chunks/globals-runtime-C7mqoHpE.js +2093 -0
  207. package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
  208. package/dist/manager/_manager-chunks/{globals-runtime-eLPTIfX-.js → globals-runtime-CYNosEiD.js} +1 -2
  209. package/dist/manager/_manager-chunks/globals-runtime-C_evJrEn.js +1960 -0
  210. package/dist/manager/_manager-chunks/{globals-runtime-C02fvgcd.js → globals-runtime-CdgVeAbk.js} +408 -377
  211. package/dist/manager/_manager-chunks/{globals-runtime-BmphMP6z.js → globals-runtime-Cqn8KdSZ.js} +4 -4
  212. package/dist/manager/_manager-chunks/{globals-runtime-ZHrQFa3-.js → globals-runtime-CrIF09P8.js} +1246 -539
  213. package/dist/manager/_manager-chunks/{globals-runtime-BvM-NY2g.js → globals-runtime-Ct1kY4wb.js} +638 -1731
  214. package/dist/manager/_manager-chunks/globals-runtime-CvyFEPIY.js +5282 -0
  215. package/dist/manager/_manager-chunks/{globals-runtime-FC201B7s.js → globals-runtime-DMBjo1QS.js} +2 -1
  216. package/dist/manager/_manager-chunks/{globals-runtime-C9P2ZbMM.js → globals-runtime-DUK6bGcb.js} +52 -25
  217. package/dist/manager/_manager-chunks/globals-runtime-DedfO-DP.js +3414 -0
  218. package/dist/manager/_manager-chunks/{globals-runtime-q5R9dawi.js → globals-runtime-DqhIYwLp.js} +165 -152
  219. package/dist/manager/_manager-chunks/globals-runtime-XSxCU7PR.js +41 -0
  220. package/dist/manager/_manager-chunks/runtime-BR5z0WoJ.js +456 -0
  221. package/dist/manager/_manager-chunks/{runtime-DdCaBowH.js → runtime-BgYvp1WN.js} +15 -7
  222. package/dist/manager/_manager-chunks/{runtime-BGvLm94o.js → runtime-CHI-LHF1.js} +3 -3
  223. package/dist/manager/_manager-chunks/{runtime-BdLdsHca.js → runtime-CUymj6EY.js} +280 -288
  224. package/dist/manager/_manager-chunks/runtime-CaU1DSEZ.js +528 -0
  225. package/dist/manager/_manager-chunks/{runtime-DMig8mT7.js → runtime-CqItbdKW.js} +3 -2
  226. package/dist/manager/_manager-chunks/{runtime-B9QzcYO3.js → runtime-D4ZOOIV0.js} +5 -531
  227. package/dist/manager/_manager-chunks/{runtime-50_aob4S.js → runtime-DER98nV0.js} +3 -19
  228. package/dist/manager/_manager-chunks/{runtime-CE2sHVqs.js → runtime-DrTLBe7a.js} +39 -40
  229. package/dist/manager/_manager-chunks/runtime-MAf7Wpk5.js +692 -0
  230. package/dist/manager/_manager-chunks/{runtime-CKP1i0--.js → runtime-cVFIMcca.js} +1 -1
  231. package/dist/manager/globals-runtime.js +1 -1
  232. package/dist/manager/globals.d.ts +1 -1
  233. package/dist/manager/globals.js +1 -1
  234. package/dist/manager/runtime.js +1 -1
  235. package/dist/manager-api/index.d.ts +1 -1
  236. package/dist/manager-api/index.js +22 -28
  237. package/dist/manager-errors.d.ts +1 -1
  238. package/dist/mcp/index.js +8 -8
  239. package/dist/mocking-utils/index.js +16 -11
  240. package/dist/nextjs-vite/index.js +3 -2
  241. package/dist/nextjs-vite/node/index.js +7 -7
  242. package/dist/nextjs-vite/preset.js +11 -11
  243. package/dist/nextjs-vite/vite-plugin/index.js +7 -7
  244. package/dist/nextjs-vite-plugin/index.d.ts +1 -2
  245. package/dist/nextjs-vite-plugin/index.js +12 -27
  246. package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
  247. package/dist/node-logger/index.d.ts +65 -72
  248. package/dist/node-logger/index.js +11 -12
  249. package/dist/oxc-parser/index.js +11 -13
  250. package/dist/oxc-parser/worker.js +10 -10
  251. package/dist/preview/_chunks/{runtime-DVM_AHbR.js → runtime-6P-h06Te.js} +51 -50
  252. package/dist/preview/_chunks/{runtime-BoxmlDdB.js → runtime-B9KKIDGa.js} +202 -81
  253. package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-BPwAnlRx.js} +482 -334
  254. package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-BUnOhg9h.js} +2 -2
  255. package/dist/preview/_chunks/runtime-Bcv1hJky.js +6305 -0
  256. package/dist/preview/_chunks/{runtime-CqHxptiK.js → runtime-C1jgT6tJ.js} +93 -2145
  257. package/dist/preview/_chunks/{runtime-D7B4bVe_.js → runtime-C8QFpkFV.js} +6 -6
  258. package/dist/preview/_chunks/{runtime-CijtAN7R.js → runtime-DdqR8Fd0.js} +15 -6
  259. package/dist/preview/_chunks/{runtime-B3y8ocOg.js → runtime-DvBfMhis.js} +2 -2
  260. package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-WapFVPAh.js} +29 -29
  261. package/dist/preview/runtime.js +1 -1
  262. package/dist/preview-api/index.d.ts +1 -1
  263. package/dist/preview-api/index.js +2 -1
  264. package/dist/preview-errors.d.ts +1 -1
  265. package/dist/react/docgen/docgen-worker.js +11 -12
  266. package/dist/react/entry-preview.js +2 -1
  267. package/dist/react/index.js +6 -4
  268. package/dist/react/preset.js +13 -14
  269. package/dist/react/preview.js +3 -2
  270. package/dist/react-native/bin/get-stories.js +8 -8
  271. package/dist/react-native/index.js +25 -211
  272. package/dist/react-native/metro/node.js +10 -9
  273. package/dist/react-native/metro/withStorybook.js +11 -10
  274. package/dist/react-native/scripts/generate.js +8 -8
  275. package/dist/react-vite/node/index.js +7 -7
  276. package/dist/react-vite/preset.js +7 -7
  277. package/dist/router/index.js +3 -1
  278. package/dist/server-errors.d.ts +1 -1
  279. package/dist/server-errors.js +9 -9
  280. package/dist/shared/open-service/index.d.ts +1 -1
  281. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
  282. package/dist/telemetry/index.js +43 -45
  283. package/dist/test/index.js +808 -573
  284. package/dist/theming/create.js +2 -1
  285. package/dist/theming/index.js +22 -1
  286. package/dist/types/index.d.ts +1 -1
  287. package/package.json +17 -45
  288. package/dist/_browser-chunks/WithTooltip-523JD6VH.js +0 -1619
  289. package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
  290. package/dist/_browser-chunks/chunk-UDQ3XQFC.js +0 -108
  291. package/dist/_node-chunks/chunk-7XCEKQGV.js +0 -18
  292. package/dist/_node-chunks/chunk-EGS2SAD2.js +0 -5414
  293. package/dist/_node-chunks/chunk-GKTCJPLL.js +0 -36
  294. package/dist/_node-chunks/chunk-HENM5ZK3.js +0 -1877
  295. package/dist/_node-chunks/chunk-HQM4ISVU.js +0 -11
  296. package/dist/_node-chunks/chunk-K3I3G4VL.js +0 -4731
  297. package/dist/_node-chunks/chunk-MZMPFII2.js +0 -29
  298. package/dist/_node-chunks/chunk-NYAWUR6L.js +0 -3823
  299. package/dist/_node-chunks/chunk-NYRUWAL3.js +0 -23
  300. package/dist/_node-chunks/chunk-SSZ5REKS.js +0 -3008
  301. package/dist/_node-chunks/chunk-WEW23EEE.js +0 -662
  302. package/dist/_node-chunks/chunk-XWQEWRFD.js +0 -51
  303. package/dist/_node-chunks/dist-CNA633FI.js +0 -16
  304. package/dist/_node-chunks/globby-HRQV5N3V.js +0 -2884
  305. package/dist/_node-chunks/jiti-WE7NHS2Y.js +0 -3848
  306. package/dist/_node-chunks/lib-7MVA6CTW.js +0 -366
  307. package/dist/_node-chunks/optimized-tests-IAX6YURR.js +0 -22
  308. package/dist/_node-chunks/postinstallAddon-ROH2TBJX.js +0 -20
  309. package/dist/_node-chunks/session-id-GM226DGP.js +0 -23
  310. package/dist/chunk-BfBzpgct.d.ts +0 -916
  311. package/dist/core-server/presets/common-manager.css +0 -170
  312. package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +0 -3389
  313. package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +0 -9766
  314. package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +0 -5357
  315. package/dist/manager/_manager-chunks/runtime-89Cb0A8U.js +0 -998
  316. package/dist/manager/_manager-chunks/runtime-wL4UO7YO.js +0 -452
  317. package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
  318. package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
@@ -1,10 +1,10 @@
1
- import { $ as DeclareModuleExports, $i as TSTypeAnnotation, $n as NumberLiteralTypeAnnotation, $r as TSAsExpression, $t as Identifier, A as ClassBody, Aa as TypeParameterInstantiation, Ai as TSModuleBlock, An as JSXSpreadAttribute, Ar as QualifiedTypeIdentifier, At as ExportSpecifier, B as CompletionStatement, Ba as VariableDeclarator, Bi as TSParameterProperty, Bn as Method, Br as SpreadProperty$1, Bt as For, C as BooleanLiteralTypeAnnotation, Ca as TupleExpression, Ci as TSInterfaceBody, Cn as JSXExpressionContainer, Cr as PipelineTopicExpression, Ct as ExistsTypeAnnotation, D as CatchClause, Da as TypeCastExpression, Di as TSLiteralType, Dn as JSXNamespacedName, Dr as Program, Dt as ExportDefaultSpecifier, E as CallExpression, Ea as TypeAnnotation, Ei as TSIntrinsicKeyword, En as JSXMemberExpression, Er as PrivateName, Et as ExportDefaultDeclaration, F as ClassPrivateMethod, Fa as UnionTypeAnnotation, Fi as TSNonNullExpression, Fn as Literal, Fr as RestProperty$1, Ft as Flow, G as DecimalLiteral, Ga as WhileStatement, Gi as TSSatisfiesExpression, Gn as ModuleSpecifier, Gr as StringLiteralTypeAnnotation, Gt as Function, H as ConditionalExpression, Ha as VoidPattern, Hi as TSPropertySignature, Hn as MixedTypeAnnotation, Hr as Statement, Ht as ForOfStatement, I as ClassPrivateProperty, Ia as UpdateExpression, Ii as TSNullKeyword, In as LogicalExpression, Ir as ReturnStatement, It as FlowBaseAnnotation, J as DeclareExportAllDeclaration, Ja as index_d_exports$1, Ji as TSTemplateLiteralType, Jn as Noop, Jr as SwitchCase, Jt as FunctionParameter, K as Declaration, Ka as WithStatement, Ki as TSStringKeyword, Kn as NewExpression, Kr as StringTypeAnnotation, Kt as FunctionDeclaration, L as ClassProperty, La as UserWhitespacable, Li as TSNumberKeyword, Ln as Loop, Lr as Scopable, Lt as FlowDeclaration, M as ClassExpression, Ma as TypeofTypeAnnotation, Mi as TSNamedTupleMember, Mn as JSXText, Mr as RegExpLiteral, Mt as ExpressionStatement, N as ClassImplements, Na as UnaryExpression, Ni as TSNamespaceExportDeclaration, Nn as LVal, Nr as RegexLiteral$1, Nt as ExpressionWrapper, O as Class, Oa as TypeParameter, Oi as TSMappedType, On as JSXOpeningElement, Or as Property, Ot as ExportNamedDeclaration, P as ClassMethod, Pa as UnaryLike, Pi as TSNeverKeyword, Pn as LabeledStatement, Pr as RestElement, Pt as File, Q as DeclareModule, Qi as TSTypeAliasDeclaration, Qn as NumberLiteral$1, Qr as TSArrayType, Qt as GenericTypeAnnotation, R as Comment, Ra as V8IntrinsicIdentifier, Ri as TSObjectKeyword, Rn as MemberExpression, Rr as SequenceExpression, Rt as FlowPredicate, S as BooleanLiteral, Sa as TryStatement, Si as TSInstantiationExpression, Sn as JSXEmptyExpression, Sr as PipelinePrimaryTopicReference, St as EnumSymbolBody, T as BreakStatement, Ta as TypeAlias, Ti as TSIntersectionType, Tn as JSXIdentifier, Tr as Private, Tt as ExportDeclaration, U as ContinueStatement, Ua as VoidTypeAnnotation, Ui as TSQualifiedName, Un as ModuleDeclaration, Ur as StaticBlock, Ut as ForStatement, V as Conditional, Va as Variance, Vi as TSParenthesizedType, Vn as Miscellaneous, Vr as Standardized, Vt as ForInStatement, W as DebuggerStatement, Wa as While, Wi as TSRestType, Wn as ModuleExpression, Wr as StringLiteral, Wt as ForXStatement, X as DeclareFunction, Xi as TSTupleType, Xn as NullLiteralTypeAnnotation, Xr as SymbolTypeAnnotation, Xt as FunctionTypeAnnotation, Y as DeclareExportDeclaration, Yi as TSThisType, Yn as NullLiteral, Yr as SwitchStatement, Yt as FunctionParent, Z as DeclareInterface, Zi as TSType, Zn as NullableTypeAnnotation, Zr as TSAnyKeyword, Zt as FunctionTypeParam, _ as BinaryExpression, _a as Terminatorless, _i as TSImportEqualsDeclaration, _n as JSX, _r as Options$1, _t as EnumMember, a as Aliases, aa as TSTypeParameterDeclaration, ai as TSConstructSignatureDeclaration, an as ImportDefaultSpecifier, ar as ObjectPattern, at as DeprecatedAliases, b as BlockParent, ba as ThrowStatement, bi as TSIndexedAccessType, bn as JSXClosingFragment, br as PatternLike, bt as EnumStringBody, c as ArrayExpression, ca as TSTypeQuery, ci as TSDeclareMethod, cn as ImportOrExportDeclaration, cr as ObjectTypeCallProperty, ct as DoExpression, d as ArrowFunctionExpression, da as TSUnionType, di as TSEnumDeclaration, dn as InferredPredicate, dr as ObjectTypeProperty, dt as EmptyTypeAnnotation, ea as TSTypeAssertion, ei as TSBaseType, en as IfStatement, er as NumberTypeAnnotation, et as DeclareOpaqueType, f as AssignmentExpression, fa as TSUnknownKeyword, fi as TSEnumMember, fn as InterfaceDeclaration, fr as ObjectTypeSpreadProperty, ft as EnumBody, g as Binary, ga as TemplateLiteral, gi as TSFunctionType, gn as IntersectionTypeAnnotation, gr as OptionalMemberExpression, gt as EnumDefaultedMember, h as BigIntLiteral, ha as TemplateElement, hi as TSExternalModuleReference, hn as InterpreterDirective, hr as OptionalIndexedAccessType, ht as EnumDeclaration, i as Accessor, ia as TSTypeParameter, ii as TSConditionalType, in as ImportDeclaration, ir as ObjectMethod, it as Decorator, j as ClassDeclaration, ja as TypeScript, ji as TSModuleDeclaration, jn as JSXSpreadChild, jr as RecordExpression, jt as Expression, k as ClassAccessorProperty, ka as TypeParameterDeclaration, ki as TSMethodSignature, kn as JSXOpeningFragment, kr as Pureish, kt as ExportNamespaceSpecifier, l as ArrayPattern, la as TSTypeReference, li as TSEntityName, ln as ImportSpecifier, lr as ObjectTypeIndexer, lt as DoWhileStatement, m as AwaitExpression, ma as TaggedTemplateExpression, mi as TSExpressionWithTypeArguments, mn as InterfaceTypeAnnotation, mr as OptionalCallExpression, mt as EnumBooleanMember, na as TSTypeLiteral, ni as TSBooleanKeyword, nn as Import, nr as ObjectExpression, nt as DeclareVariable, o as AnyTypeAnnotation, oa as TSTypeParameterInstantiation, oi as TSConstructorType, on as ImportExpression, or as ObjectProperty, ot as Directive, p as AssignmentPattern, pa as TSVoidKeyword, pi as TSExportAssignment, pn as InterfaceExtends, pr as OpaqueType, pt as EnumBooleanBody, q as DeclareClass, qa as YieldExpression, qi as TSSymbolKeyword, qn as Node$1, qr as Super, qt as FunctionExpression, r as generate$1, ra as TSTypeOperator, ri as TSCallSignatureDeclaration, rn as ImportAttribute, rr as ObjectMember, rt as DeclaredPredicate, s as ArgumentPlaceholder, sa as TSTypePredicate, si as TSDeclareFunction, sn as ImportNamespaceSpecifier, sr as ObjectTypeAnnotation, st as DirectiveLiteral, t as GeneratorOptions, ta as TSTypeElement, ti as TSBigIntKeyword, tn as Immutable, tr as NumericLiteral, tt as DeclareTypeAlias, u as ArrayTypeAnnotation, ua as TSUndefinedKeyword, ui as TSEnumBody, un as IndexedAccessType, ur as ObjectTypeInternalSlot, ut as EmptyStatement, v as BindExpression, va as ThisExpression, vi as TSImportType, vn as JSXAttribute, vr as ParenthesizedExpression, vt as EnumNumberBody, w as BooleanTypeAnnotation, wa as TupleTypeAnnotation, wi as TSInterfaceDeclaration, wn as JSXFragment, wr as Placeholder, wt as ExportAllDeclaration, x as BlockStatement, xa as TopicReference, xi as TSInferType, xn as JSXElement, xr as PipelineBareFunction, xt as EnumStringMember, y as Block, ya as ThisTypeAnnotation, yi as TSIndexSignature, yn as JSXClosingElement, yr as Pattern, yt as EnumNumberMember, z as CommentTypeShorthand, za as VariableDeclaration, zi as TSOptionalType, zn as MetaProperty, zr as SpreadElement, zt as FlowType } from "../chunk-D7DwV41f.js";
1
+ import { $ as DeclareModuleExports, $i as TSTypeAnnotation, $n as NumberLiteralTypeAnnotation, $r as TSAsExpression, $t as Identifier, A as ClassBody, Aa as TypeParameterInstantiation, Ai as TSModuleBlock, An as JSXSpreadAttribute, Ar as QualifiedTypeIdentifier, At as ExportSpecifier, B as CompletionStatement, Ba as VariableDeclarator, Bi as TSParameterProperty, Bn as Method, Br as SpreadProperty$1, Bt as For, C as BooleanLiteralTypeAnnotation, Ca as TupleExpression, Ci as TSInterfaceBody, Cn as JSXExpressionContainer, Cr as PipelineTopicExpression, Ct as ExistsTypeAnnotation, D as CatchClause, Da as TypeCastExpression, Di as TSLiteralType, Dn as JSXNamespacedName, Dr as Program, Dt as ExportDefaultSpecifier, E as CallExpression, Ea as TypeAnnotation, Ei as TSIntrinsicKeyword, En as JSXMemberExpression, Er as PrivateName, Et as ExportDefaultDeclaration, F as ClassPrivateMethod, Fa as UnionTypeAnnotation, Fi as TSNonNullExpression, Fn as Literal, Fr as RestProperty$1, Ft as Flow, G as DecimalLiteral, Ga as WhileStatement, Gi as TSSatisfiesExpression, Gn as ModuleSpecifier, Gr as StringLiteralTypeAnnotation, Gt as Function, H as ConditionalExpression, Ha as VoidPattern, Hi as TSPropertySignature, Hn as MixedTypeAnnotation, Hr as Statement, Ht as ForOfStatement, I as ClassPrivateProperty, Ia as UpdateExpression, Ii as TSNullKeyword, In as LogicalExpression, Ir as ReturnStatement, It as FlowBaseAnnotation, J as DeclareExportAllDeclaration, Ja as index_d_exports, Ji as TSTemplateLiteralType, Jn as Noop, Jr as SwitchCase, Jt as FunctionParameter, K as Declaration, Ka as WithStatement, Ki as TSStringKeyword, Kn as NewExpression, Kr as StringTypeAnnotation, Kt as FunctionDeclaration, L as ClassProperty, La as UserWhitespacable, Li as TSNumberKeyword, Ln as Loop, Lr as Scopable, Lt as FlowDeclaration, M as ClassExpression, Ma as TypeofTypeAnnotation, Mi as TSNamedTupleMember, Mn as JSXText, Mr as RegExpLiteral, Mt as ExpressionStatement, N as ClassImplements, Na as UnaryExpression, Ni as TSNamespaceExportDeclaration, Nn as LVal, Nr as RegexLiteral$1, Nt as ExpressionWrapper, O as Class, Oa as TypeParameter, Oi as TSMappedType, On as JSXOpeningElement, Or as Property, Ot as ExportNamedDeclaration, P as ClassMethod, Pa as UnaryLike, Pi as TSNeverKeyword, Pn as LabeledStatement, Pr as RestElement, Pt as File, Q as DeclareModule, Qi as TSTypeAliasDeclaration, Qn as NumberLiteral$1, Qr as TSArrayType, Qt as GenericTypeAnnotation, R as Comment, Ra as V8IntrinsicIdentifier, Ri as TSObjectKeyword, Rn as MemberExpression, Rr as SequenceExpression, Rt as FlowPredicate, S as BooleanLiteral, Sa as TryStatement, Si as TSInstantiationExpression, Sn as JSXEmptyExpression, Sr as PipelinePrimaryTopicReference, St as EnumSymbolBody, T as BreakStatement, Ta as TypeAlias, Ti as TSIntersectionType, Tn as JSXIdentifier, Tr as Private, Tt as ExportDeclaration, U as ContinueStatement, Ua as VoidTypeAnnotation, Ui as TSQualifiedName, Un as ModuleDeclaration, Ur as StaticBlock, Ut as ForStatement, V as Conditional, Va as Variance, Vi as TSParenthesizedType, Vn as Miscellaneous, Vr as Standardized, Vt as ForInStatement, W as DebuggerStatement, Wa as While, Wi as TSRestType, Wn as ModuleExpression, Wr as StringLiteral, Wt as ForXStatement, X as DeclareFunction, Xi as TSTupleType, Xn as NullLiteralTypeAnnotation, Xr as SymbolTypeAnnotation, Xt as FunctionTypeAnnotation, Y as DeclareExportDeclaration, Yi as TSThisType, Yn as NullLiteral, Yr as SwitchStatement, Yt as FunctionParent, Z as DeclareInterface, Zi as TSType, Zn as NullableTypeAnnotation, Zr as TSAnyKeyword, Zt as FunctionTypeParam, _ as BinaryExpression, _a as Terminatorless, _i as TSImportEqualsDeclaration, _n as JSX, _r as Options$1, _t as EnumMember, a as Aliases, aa as TSTypeParameterDeclaration, ai as TSConstructSignatureDeclaration, an as ImportDefaultSpecifier, ar as ObjectPattern, at as DeprecatedAliases, b as BlockParent, ba as ThrowStatement, bi as TSIndexedAccessType, bn as JSXClosingFragment, br as PatternLike, bt as EnumStringBody, c as ArrayExpression, ca as TSTypeQuery, ci as TSDeclareMethod, cn as ImportOrExportDeclaration, cr as ObjectTypeCallProperty, ct as DoExpression, d as ArrowFunctionExpression, da as TSUnionType, di as TSEnumDeclaration, dn as InferredPredicate, dr as ObjectTypeProperty, dt as EmptyTypeAnnotation, ea as TSTypeAssertion, ei as TSBaseType, en as IfStatement, er as NumberTypeAnnotation, et as DeclareOpaqueType, f as AssignmentExpression, fa as TSUnknownKeyword, fi as TSEnumMember, fn as InterfaceDeclaration, fr as ObjectTypeSpreadProperty, ft as EnumBody, g as Binary, ga as TemplateLiteral, gi as TSFunctionType, gn as IntersectionTypeAnnotation, gr as OptionalMemberExpression, gt as EnumDefaultedMember, h as BigIntLiteral, ha as TemplateElement, hi as TSExternalModuleReference, hn as InterpreterDirective, hr as OptionalIndexedAccessType, ht as EnumDeclaration, i as Accessor, ia as TSTypeParameter, ii as TSConditionalType, in as ImportDeclaration, ir as ObjectMethod, it as Decorator, j as ClassDeclaration, ja as TypeScript, ji as TSModuleDeclaration, jn as JSXSpreadChild, jr as RecordExpression, jt as Expression, k as ClassAccessorProperty, ka as TypeParameterDeclaration, ki as TSMethodSignature, kn as JSXOpeningFragment, kr as Pureish, kt as ExportNamespaceSpecifier, l as ArrayPattern, la as TSTypeReference, li as TSEntityName, ln as ImportSpecifier, lr as ObjectTypeIndexer, lt as DoWhileStatement, m as AwaitExpression, ma as TaggedTemplateExpression, mi as TSExpressionWithTypeArguments, mn as InterfaceTypeAnnotation, mr as OptionalCallExpression, mt as EnumBooleanMember, na as TSTypeLiteral, ni as TSBooleanKeyword, nn as Import, nr as ObjectExpression, nt as DeclareVariable, o as AnyTypeAnnotation, oa as TSTypeParameterInstantiation, oi as TSConstructorType, on as ImportExpression, or as ObjectProperty, ot as Directive, p as AssignmentPattern, pa as TSVoidKeyword, pi as TSExportAssignment, pn as InterfaceExtends, pr as OpaqueType, pt as EnumBooleanBody, q as DeclareClass, qa as YieldExpression, qi as TSSymbolKeyword, qn as Node, qr as Super, qt as FunctionExpression, r as generate$1, ra as TSTypeOperator, ri as TSCallSignatureDeclaration, rn as ImportAttribute, rr as ObjectMember, rt as DeclaredPredicate, s as ArgumentPlaceholder, sa as TSTypePredicate, si as TSDeclareFunction, sn as ImportNamespaceSpecifier, sr as ObjectTypeAnnotation, st as DirectiveLiteral, t as GeneratorOptions, ta as TSTypeElement, ti as TSBigIntKeyword, tn as Immutable, tr as NumericLiteral, tt as DeclareTypeAlias, u as ArrayTypeAnnotation, ua as TSUndefinedKeyword, ui as TSEnumBody, un as IndexedAccessType, ur as ObjectTypeInternalSlot, ut as EmptyStatement, v as BindExpression, va as ThisExpression, vi as TSImportType, vn as JSXAttribute, vr as ParenthesizedExpression, vt as EnumNumberBody, w as BooleanTypeAnnotation, wa as TupleTypeAnnotation, wi as TSInterfaceDeclaration, wn as JSXFragment, wr as Placeholder, wt as ExportAllDeclaration, x as BlockStatement, xa as TopicReference, xi as TSInferType, xn as JSXElement, xr as PipelineBareFunction, xt as EnumStringMember, y as Block, ya as ThisTypeAnnotation, yi as TSIndexSignature, yn as JSXClosingElement, yr as Pattern, yt as EnumNumberMember, z as CommentTypeShorthand, za as VariableDeclaration, zi as TSOptionalType, zn as MetaProperty, zr as SpreadElement, zt as FlowType } from "../chunk-D7DwV41f.js";
2
2
  import * as recast from "recast";
3
3
  import { Options as RecastOptions } from "recast";
4
4
 
5
5
  //#region ../../node_modules/@babel/parser/typings/babel-parser.d.ts
6
6
  declare namespace babel_parser_d_exports {
7
- export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParseResult$1 as ParseResult, ParserOptions, PluginConfig as ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, parse$1 as parse, parseExpression, tokTypes };
7
+ export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParseResult, ParserOptions, PluginConfig as ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, parse, parseExpression, tokTypes };
8
8
  }
9
9
  declare class Position {
10
10
  line: number;
@@ -185,7 +185,7 @@ interface Options {
185
185
  }
186
186
  type ParserOptions = Partial<Options>;
187
187
  type ParseError = ParseError$1<object>;
188
- type ParseResult$1<Result extends File | Expression = File> = Result & {
188
+ type ParseResult<Result extends File | Expression = File> = Result & {
189
189
  comments: File["comments"];
190
190
  errors: null | ParseError[];
191
191
  tokens?: File["tokens"];
@@ -193,105 +193,25 @@ type ParseResult$1<Result extends File | Expression = File> = Result & {
193
193
  /**
194
194
  * Parse the provided code as an entire ECMAScript program.
195
195
  */
196
- declare function parse$1(input: string, options?: ParserOptions): ParseResult$1<File>;
197
- declare function parseExpression(input: string, options?: ParserOptions): ParseResult$1<Expression>;
196
+ declare function parse(input: string, options?: ParserOptions): ParseResult<File>;
197
+ declare function parseExpression(input: string, options?: ParserOptions): ParseResult<Expression>;
198
198
  declare const tokTypes: {
199
199
  // todo(flow->ts) real token type
200
200
  [name: string]: any;
201
201
  };
202
202
  //#endregion
203
- //#region ../../node_modules/@types/babel__template/index.d.ts
204
- interface TemplateBuilderOptions extends ParserOptions {
205
- /**
206
- * A set of placeholder names to automatically accept.
207
- * Items in this list do not need to match `placeholderPattern`.
208
- *
209
- * This option cannot be used when using `%%foo%%` style placeholders.
210
- */
211
- placeholderWhitelist?: Set<string> | null | undefined;
212
- /**
213
- * A pattern to search for when looking for `Identifier` and `StringLiteral`
214
- * nodes that should be considered as placeholders.
215
- *
216
- * `false` will disable placeholder searching placeholders, leaving only
217
- * the `placeholderWhitelist` value to find replacements.
218
- *
219
- * This option cannot be used when using `%%foo%%` style placeholders.
220
- *
221
- * @default /^[_$A-Z0-9]+$/
222
- */
223
- placeholderPattern?: RegExp | false | null | undefined;
224
- /**
225
- * Set this to `true` to preserve comments from the template string
226
- * into the resulting AST, or `false` to automatically discard comments.
227
- *
228
- * @default false
229
- */
230
- preserveComments?: boolean | null | undefined;
231
- /**
232
- * Set to `true` to use `%%foo%%` style placeholders, `false` to use legacy placeholders
233
- * described by `placeholderPattern` or `placeholderWhitelist`.
234
- *
235
- * When it is not set, it behaves as `true` if there are syntactic placeholders, otherwise as `false`.
236
- *
237
- * @since 7.4.0
238
- */
239
- syntacticPlaceholders?: boolean | null | undefined;
240
- }
241
- interface TemplateBuilder<T> {
242
- /**
243
- * Build a new builder, merging the given options with the previous ones.
244
- */
245
- (opts: TemplateBuilderOptions): TemplateBuilder<T>;
246
- /**
247
- * Building from a string produces an AST builder function by default.
248
- */
249
- (code: string, opts?: TemplateBuilderOptions): (arg?: PublicReplacements) => T;
250
- /**
251
- * Building from a template literal produces an AST builder function by default.
252
- */
253
- (tpl: TemplateStringsArray, ...args: unknown[]): (arg?: PublicReplacements) => T;
254
- /**
255
- * Allow users to explicitly create templates that produce ASTs,
256
- * skipping the need for an intermediate function.
257
- *
258
- * Does not allow `%%foo%%` style placeholders.
259
- */
260
- ast: {
261
- (tpl: string, opts?: TemplateBuilderOptions): T;
262
- (tpl: TemplateStringsArray, ...args: unknown[]): T;
263
- };
264
- }
265
- type PublicReplacements = {
266
- [index: string]: unknown;
267
- } | unknown[];
268
- declare const smart: TemplateBuilder<Statement | Statement[]>;
269
- declare const statement: TemplateBuilder<Statement>;
270
- declare const statements: TemplateBuilder<Statement[]>;
271
- declare const expression: TemplateBuilder<Expression>;
272
- declare const program: TemplateBuilder<Program>;
273
- type DefaultTemplateBuilder = typeof smart & {
274
- smart: typeof smart;
275
- statement: typeof statement;
276
- statements: typeof statements;
277
- expression: typeof expression;
278
- program: typeof program;
279
- ast: typeof smart.ast;
280
- };
281
- declare const templateBuilder: DefaultTemplateBuilder;
282
- //#endregion
283
203
  //#region ../../node_modules/@types/babel__traverse/index.d.ts
284
204
  declare const traverse$1: {
285
- <S>(parent: Node$1, opts: TraverseOptions<S>, scope: Scope | undefined, state: S, parentPath?: NodePath): void;
286
- (parent: Node$1, opts?: TraverseOptions, scope?: Scope, state?: any, parentPath?: NodePath): void;
205
+ <S>(parent: Node, opts: TraverseOptions<S>, scope: Scope | undefined, state: S, parentPath?: NodePath): void;
206
+ (parent: Node, opts?: TraverseOptions, scope?: Scope, state?: any, parentPath?: NodePath): void;
287
207
  visitors: typeof visitors;
288
208
  verify: typeof visitors.verify;
289
209
  explode: typeof visitors.explode;
290
- cheap: (node: Node$1, enter: (node: Node$1) => void) => void;
291
- node: (node: Node$1, opts: TraverseOptions, scope?: Scope, state?: any, path?: NodePath, skipKeys?: Record<string, boolean>) => void;
292
- clearNode: (node: Node$1, opts?: Options$1) => void;
293
- removeProperties: (tree: Node$1, opts?: Options$1) => Node$1;
294
- hasType: (tree: Node$1, type: Node$1["type"], denylistTypes?: string[]) => boolean;
210
+ cheap: (node: Node, enter: (node: Node) => void) => void;
211
+ node: (node: Node, opts: TraverseOptions, scope?: Scope, state?: any, path?: NodePath, skipKeys?: Record<string, boolean>) => void;
212
+ clearNode: (node: Node, opts?: Options$1) => void;
213
+ removeProperties: (tree: Node, opts?: Options$1) => Node;
214
+ hasType: (tree: Node, type: Node["type"], denylistTypes?: string[]) => boolean;
295
215
  cache: typeof cache;
296
216
  };
297
217
  declare namespace visitors {
@@ -309,21 +229,21 @@ declare namespace visitors {
309
229
  * - Visitors of virtual types are wrapped, so that they are only visited when their dynamic check passes
310
230
  * - `enter` and `exit` functions are wrapped in arrays, to ease merging of visitors
311
231
  */
312
- function explode<S = unknown>(visitor: Visitor<S>): { [Type in Exclude<Node$1, DeprecatedAliases>["type"]]?: VisitNodeObject<S, Extract<Node$1, {
232
+ function explode<S = unknown>(visitor: Visitor<S>): { [Type in Exclude<Node, DeprecatedAliases>["type"]]?: VisitNodeObject<S, Extract<Node, {
313
233
  type: Type;
314
234
  }>> };
315
235
  function verify(visitor: Visitor): void;
316
236
  function merge<State>(visitors: Array<Visitor<State>>): Visitor<State>;
317
- function merge(visitors: Visitor[], states?: any[], wrapper?: (stateKey: any, visitorKey: keyof Visitor, func: VisitNodeFunction<unknown, Node$1>) => VisitNodeFunction<unknown, Node$1> | null): Visitor;
237
+ function merge(visitors: Visitor[], states?: any[], wrapper?: (stateKey: any, visitorKey: keyof Visitor, func: VisitNodeFunction<unknown, Node>) => VisitNodeFunction<unknown, Node> | null): Visitor;
318
238
  }
319
239
  declare namespace cache {
320
- let path: WeakMap<Node$1, Map<Node$1, NodePath>>;
321
- let scope: WeakMap<Node$1, Scope>;
240
+ let path: WeakMap<Node, Map<Node, NodePath>>;
241
+ let scope: WeakMap<Node, Scope>;
322
242
  function clear(): void;
323
243
  function clearPath(): void;
324
244
  function clearScope(): void;
325
245
  }
326
- type TraverseOptions<S = Node$1> = {
246
+ type TraverseOptions<S = Node> = {
327
247
  scope?: Scope;
328
248
  noScope?: boolean;
329
249
  denylist?: NodeType[]; /** @deprecated will be removed in Babel 8 */
@@ -338,9 +258,9 @@ declare class Scope {
338
258
  constructor(path: NodePath, parentScope?: Scope);
339
259
  uid: number;
340
260
  path: NodePath;
341
- block: Node$1;
261
+ block: Node;
342
262
  labels: Map<string, NodePath<LabeledStatement>>;
343
- parentBlock: Node$1;
263
+ parentBlock: Node;
344
264
  parent: Scope;
345
265
  hub: HubInterface;
346
266
  bindings: {
@@ -361,8 +281,8 @@ declare class Scope {
361
281
  /** Variables available in current context. */
362
282
  static contextVariables: string[];
363
283
  /** Traverse node with current scope and path. */
364
- traverse<S>(node: Node$1 | Node$1[], opts: TraverseOptions<S>, state: S): void;
365
- traverse(node: Node$1 | Node$1[], opts?: TraverseOptions, state?: any): void;
284
+ traverse<S>(node: Node | Node[], opts: TraverseOptions<S>, state: S): void;
285
+ traverse(node: Node | Node[], opts?: TraverseOptions, state?: any): void;
366
286
  /** Generate a unique identifier and add it to the current scope. */
367
287
  generateDeclaredUidIdentifier(name?: string): Identifier;
368
288
  /** Generate a unique identifier. */
@@ -370,7 +290,7 @@ declare class Scope {
370
290
  /** Generate a unique `_id1` binding. */
371
291
  generateUid(name?: string): string;
372
292
  /** Generate a unique identifier based on a node. */
373
- generateUidIdentifierBasedOnNode(parent: Node$1, defaultName?: string): Identifier;
293
+ generateUidIdentifierBasedOnNode(parent: Node, defaultName?: string): Identifier;
374
294
  /**
375
295
  * Determine whether evaluating the specific input `node` is a consequenceless reference. ie.
376
296
  * evaluating it wont result in potentially arbitrary code from being ran. The following are
@@ -380,13 +300,13 @@ declare class Scope {
380
300
  * - `super` expressions
381
301
  * - Bound identifiers
382
302
  */
383
- isStatic(node: Node$1): boolean;
303
+ isStatic(node: Node): boolean;
384
304
  /** Possibly generate a memoised identifier if it is not static and has consequences. */
385
- maybeGenerateMemoised(node: Node$1, dontPush?: boolean): Identifier;
305
+ maybeGenerateMemoised(node: Node, dontPush?: boolean): Identifier;
386
306
  checkBlockScopedCollisions(local: Binding, kind: BindingKind, name: string, id: object): void;
387
- rename(oldName: string, newName?: string, block?: Node$1): void;
307
+ rename(oldName: string, newName?: string, block?: Node): void;
388
308
  dump(): void;
389
- toArray(node: Node$1, i?: number | boolean, arrayLikeIsIterable?: boolean): ArrayExpression | CallExpression | Identifier;
309
+ toArray(node: Node, i?: number | boolean, arrayLikeIsIterable?: boolean): ArrayExpression | CallExpression | Identifier;
390
310
  hasLabel(name: string): boolean;
391
311
  getLabel(name: string): NodePath<LabeledStatement> | undefined;
392
312
  registerLabel(path: NodePath<LabeledStatement>): void;
@@ -398,7 +318,7 @@ declare class Scope {
398
318
  hasUid(name: string): boolean;
399
319
  hasGlobal(name: string): boolean;
400
320
  hasReference(name: string): boolean;
401
- isPure(node: Node$1, constantsOnly?: boolean): boolean;
321
+ isPure(node: Node, constantsOnly?: boolean): boolean;
402
322
  /**
403
323
  * Set some arbitrary data on the current scope.
404
324
  */
@@ -439,7 +359,7 @@ declare class Scope {
439
359
  getAllBindings(): Record<string, Binding>;
440
360
  /** Walks the scope tree and gathers all declarations of `kind`. */
441
361
  getAllBindingsOfKind(...kinds: string[]): Record<string, Binding>;
442
- bindingIdentifierEquals(name: string, node: Node$1): boolean;
362
+ bindingIdentifierEquals(name: string, node: Node): boolean;
443
363
  getBinding(name: string): Binding | undefined;
444
364
  getOwnBinding(name: string): Binding | undefined;
445
365
  getBindingIdentifier(name: string): Identifier;
@@ -498,28 +418,28 @@ declare class Binding {
498
418
  /** Decrement the amount of references to this binding. */
499
419
  dereference(): void;
500
420
  }
501
- type Visitor<S = unknown> = VisitNodeObject<S, Node$1> & { [N in Node$1 as N["type"]]?: VisitNode<S, N extends {
421
+ type Visitor<S = unknown> = VisitNodeObject<S, Node> & { [N in Node as N["type"]]?: VisitNode<S, N extends {
502
422
  type: N["type"];
503
423
  } ? N : never> } & { [K in keyof Aliases]?: VisitNode<S, Aliases[K]> } & { [K in keyof VirtualTypeAliases]?: VisitNode<S, VirtualTypeAliases[K]> } & {
504
424
  // Babel supports `NodeTypesWithoutComment | NodeTypesWithoutComment | ... ` but it is
505
425
  // too complex for TS. So we type it as a general visitor only if the key contains `|`
506
426
  // this is good enough for non-visitor traverse options e.g. `noScope`
507
- [k: `${string}|${string}`]: VisitNode<S, Node$1>;
427
+ [k: `${string}|${string}`]: VisitNode<S, Node>;
508
428
  };
509
- type VisitNode<S, P extends Node$1> = VisitNodeFunction<S, P> | VisitNodeObject<S, P>;
510
- type VisitNodeFunction<S, P extends Node$1> = (this: S, path: NodePath<P>, state: S) => void;
511
- type NodeType = Node$1["type"] | keyof Aliases;
512
- interface VisitNodeObject<S, P extends Node$1> {
429
+ type VisitNode<S, P extends Node> = VisitNodeFunction<S, P> | VisitNodeObject<S, P>;
430
+ type VisitNodeFunction<S, P extends Node> = (this: S, path: NodePath<P>, state: S) => void;
431
+ type NodeType = Node["type"] | keyof Aliases;
432
+ interface VisitNodeObject<S, P extends Node> {
513
433
  enter?: VisitNodeFunction<S, P>;
514
434
  exit?: VisitNodeFunction<S, P>;
515
435
  }
516
- type NodeKeyOfArrays<T extends Node$1> = { [P in keyof T]-?: T[P] extends Array<Node$1 | null | undefined> ? P : never }[keyof T];
517
- type NodePaths<T extends Node$1 | readonly Node$1[]> = T extends readonly Node$1[] ? { -readonly [K in keyof T]: NodePath<Extract<T[K], Node$1>> } : T extends Node$1 ? [NodePath<T>] : never;
518
- type NodeListType<N, K extends keyof N> = N[K] extends Array<infer P> ? (P extends Node$1 ? P : never) : never;
519
- type NodesInsertionParam<T extends Node$1> = T | readonly T[] | [T, ...T[]];
520
- declare class NodePath<T = Node$1> {
521
- constructor(hub: HubInterface, parent: Node$1);
522
- parent: Node$1;
436
+ type NodeKeyOfArrays<T extends Node> = { [P in keyof T]-?: T[P] extends Array<Node | null | undefined> ? P : never }[keyof T];
437
+ type NodePaths<T extends Node | readonly Node[]> = T extends readonly Node[] ? { -readonly [K in keyof T]: NodePath<Extract<T[K], Node>> } : T extends Node ? [NodePath<T>] : never;
438
+ type NodeListType<N, K extends keyof N> = N[K] extends Array<infer P> ? (P extends Node ? P : never) : never;
439
+ type NodesInsertionParam<T extends Node> = T | readonly T[] | [T, ...T[]];
440
+ declare class NodePath<T = Node> {
441
+ constructor(hub: HubInterface, parent: Node);
442
+ parent: Node;
523
443
  hub: Hub;
524
444
  data: Record<string | symbol, unknown>;
525
445
  context: TraversalContext;
@@ -529,32 +449,32 @@ declare class NodePath<T = Node$1> {
529
449
  opts: any; // exploded TraverseOptions
530
450
  skipKeys: Record<string, boolean> | null;
531
451
  parentPath: T extends Program ? null : NodePath;
532
- container: Node$1 | Node$1[] | null;
452
+ container: Node | Node[] | null;
533
453
  listKey: string | null;
534
454
  key: string | number | null;
535
455
  node: T;
536
- type: T extends Node$1 ? T["type"] : T extends null | undefined ? undefined : Node$1["type"] | undefined;
456
+ type: T extends Node ? T["type"] : T extends null | undefined ? undefined : Node["type"] | undefined;
537
457
  shouldSkip: boolean;
538
458
  shouldStop: boolean;
539
459
  removed: boolean;
540
460
  inList: boolean;
541
461
  parentKey: string;
542
462
  typeAnnotation: object;
543
- static get<C extends Node$1, K extends keyof C>(opts: {
463
+ static get<C extends Node, K extends keyof C>(opts: {
544
464
  hub?: HubInterface;
545
465
  parentPath: NodePath | null;
546
- parent: Node$1;
466
+ parent: Node;
547
467
  container: C;
548
468
  key: K;
549
469
  }): NodePath<C[K]>;
550
- static get<C extends Node$1, L extends NodeKeyOfArrays<C>>(opts: {
470
+ static get<C extends Node, L extends NodeKeyOfArrays<C>>(opts: {
551
471
  hub?: HubInterface;
552
472
  parentPath: NodePath | null;
553
- parent: Node$1;
473
+ parent: Node;
554
474
  container: C;
555
475
  listKey: L;
556
476
  key: number;
557
- }): C[L] extends Array<Node$1 | null | undefined> ? NodePath<C[L][number]> : never;
477
+ }): C[L] extends Array<Node | null | undefined> ? NodePath<C[L][number]> : never;
558
478
  getScope(scope: Scope): Scope;
559
479
  setData(key: string | symbol, val: any): any;
560
480
  getData(key: string | symbol, def?: any): any;
@@ -591,7 +511,7 @@ declare class NodePath<T = Node$1> {
591
511
  */
592
512
  getEarliestCommonAncestorFrom(paths: NodePath[]): NodePath;
593
513
  /** Get the earliest path in the tree where the provided `paths` intersect. */
594
- getDeepestCommonAncestorFrom(paths: NodePath[], filter?: (deepest: Node$1, i: number, ancestries: NodePath[][]) => NodePath): NodePath;
514
+ getDeepestCommonAncestorFrom(paths: NodePath[], filter?: (deepest: Node, i: number, ancestries: NodePath[][]) => NodePath): NodePath;
595
515
  /**
596
516
  * Build an array of node paths containing the entire ancestry of the current node path.
597
517
  *
@@ -622,7 +542,7 @@ declare class NodePath<T = Node$1> {
622
542
  * - Insert the provided nodes after the current node.
623
543
  * - Remove the current node.
624
544
  */
625
- replaceWithMultiple<Nodes extends Node$1 | readonly Node$1[] | [Node$1, ...Node$1[]]>(nodes: Nodes): NodePaths<Nodes>;
545
+ replaceWithMultiple<Nodes extends Node | readonly Node[] | [Node, ...Node[]]>(nodes: Nodes): NodePaths<Nodes>;
626
546
  /**
627
547
  * Parse a string as an expression and replace the current node with the result.
628
548
  *
@@ -632,7 +552,7 @@ declare class NodePath<T = Node$1> {
632
552
  */
633
553
  replaceWithSourceString(replacement: string): [NodePath];
634
554
  /** Replace the current node with another. */
635
- replaceWith<R extends Node$1>(replacementPath: R | NodePath<R>): [NodePath<R>];
555
+ replaceWith<R extends Node>(replacementPath: R | NodePath<R>): [NodePath<R>];
636
556
  replaceWith<R extends NodePath>(replacementPath: R): [R];
637
557
  /**
638
558
  * This method takes an array of statements nodes and then explodes it
@@ -640,7 +560,7 @@ declare class NodePath<T = Node$1> {
640
560
  * extremely important to retain original semantics.
641
561
  */
642
562
  replaceExpressionWithStatements(nodes: Statement[]): NodePaths<Expression | Statement>;
643
- replaceInline<Nodes extends Node$1 | readonly Node$1[] | [Node$1, ...Node$1[]]>(nodes: Nodes): NodePaths<Nodes>; // #endregion
563
+ replaceInline<Nodes extends Node | readonly Node[] | [Node, ...Node[]]>(nodes: Nodes): NodePaths<Nodes>; // #endregion
644
564
  // #region ------------------------- evaluation -------------------------
645
565
  /**
646
566
  * Walk the input `node` and statically evaluate if it's truthy.
@@ -712,7 +632,7 @@ declare class NodePath<T = Node$1> {
712
632
  * This is because arrow functions may implicitly return an expression, which
713
633
  * is the same as containing a block statement.
714
634
  */
715
- canSwapBetweenExpressionAndStatement(replacement: Node$1): boolean;
635
+ canSwapBetweenExpressionAndStatement(replacement: Node): boolean;
716
636
  /** Check whether the current path references a completion record */
717
637
  isCompletionRecord(allowInsideFunction?: boolean): boolean;
718
638
  /**
@@ -781,12 +701,12 @@ declare class NodePath<T = Node$1> {
781
701
  }>; // #endregion
782
702
  // #region ------------------------- modification -------------------------
783
703
  /** Insert the provided nodes before the current one. */
784
- insertBefore<Nodes extends NodesInsertionParam<Node$1>>(nodes: Nodes): NodePaths<Nodes>;
704
+ insertBefore<Nodes extends NodesInsertionParam<Node>>(nodes: Nodes): NodePaths<Nodes>;
785
705
  /**
786
706
  * Insert the provided nodes after the current one. When inserting nodes after an
787
707
  * expression, ensure that the completion record is correct by pushing the current node.
788
708
  */
789
- insertAfter<Nodes extends NodesInsertionParam<Node$1>>(nodes: Nodes): NodePaths<Nodes>;
709
+ insertAfter<Nodes extends NodesInsertionParam<Node>>(nodes: Nodes): NodePaths<Nodes>;
790
710
  /** Update all sibling node paths after `fromIndex` by `incrementBy`. */
791
711
  updateSiblingKeys(fromIndex: number, incrementBy: number): void;
792
712
  /**
@@ -794,13 +714,13 @@ declare class NodePath<T = Node$1> {
794
714
  * @param listKey - The key at which the child nodes are stored (usually body).
795
715
  * @param nodes - the nodes to insert.
796
716
  */
797
- unshiftContainer<T extends Node$1, K extends NodeKeyOfArrays<T>, Nodes extends NodesInsertionParam<NodeListType<T, K>>>(this: NodePath<T>, listKey: K, nodes: Nodes): NodePaths<Nodes>;
717
+ unshiftContainer<T extends Node, K extends NodeKeyOfArrays<T>, Nodes extends NodesInsertionParam<NodeListType<T, K>>>(this: NodePath<T>, listKey: K, nodes: Nodes): NodePaths<Nodes>;
798
718
  /**
799
719
  * Insert child nodes at the end of the current node.
800
720
  * @param listKey - The key at which the child nodes are stored (usually body).
801
721
  * @param nodes - the nodes to insert.
802
722
  */
803
- pushContainer<T extends Node$1, K extends NodeKeyOfArrays<T>, Nodes extends NodesInsertionParam<NodeListType<T, K>>>(this: NodePath<T>, listKey: K, nodes: Nodes): NodePaths<Nodes>;
723
+ pushContainer<T extends Node, K extends NodeKeyOfArrays<T>, Nodes extends NodesInsertionParam<NodeListType<T, K>>>(this: NodePath<T>, listKey: K, nodes: Nodes): NodePaths<Nodes>;
804
724
  /** Hoist the current node to the highest scope possible and return a UID referencing it. */
805
725
  hoist(scope: Scope): void; // #endregion
806
726
  // #region ------------------------- family -------------------------
@@ -1478,14 +1398,14 @@ interface HubInterface {
1478
1398
  getCode(): string | undefined;
1479
1399
  getScope(): Scope | undefined;
1480
1400
  addHelper(name: string): any;
1481
- buildError(node: Node$1, msg: string, Error: ErrorConstructor): Error;
1401
+ buildError(node: Node, msg: string, Error: ErrorConstructor): Error;
1482
1402
  }
1483
1403
  declare class Hub implements HubInterface {
1484
1404
  constructor();
1485
1405
  getCode(): string | undefined;
1486
1406
  getScope(): Scope | undefined;
1487
1407
  addHelper(name: string): any;
1488
- buildError(node: Node$1, msg: string, Error?: ErrorConstructor): Error;
1408
+ buildError(node: Node, msg: string, Error?: ErrorConstructor): Error;
1489
1409
  }
1490
1410
  interface TraversalContext<S = unknown> {
1491
1411
  parentPath: NodePath;
@@ -1498,719 +1418,25 @@ interface TraversalContext<S = unknown> {
1498
1418
  type ImplGetOfArray<T extends readonly unknown[], K extends string> = K extends `${infer N extends number}` ? T[N] : K extends keyof T ? T[K] : never; // dprint-ignore
1499
1419
  type ImplGetByKey<T, K extends string> = T extends readonly unknown[] ? ImplGetOfArray<T, K> : K extends keyof T ? T[K] : K extends `${infer N extends number}` ? N extends keyof T ? T[N] : never : never; // dprint-ignore
1500
1420
  type ImplGetRecursive<T, K extends string> = K extends `${infer L}.${infer R}` ? ImplGetRecursive<ImplGetByKey<T, L>, R> : ImplGetByKey<T, K>;
1501
- type NodePathResult<T> = (Extract<T, Node$1 | null | undefined> extends never ? never : NodePath<Extract<T, Node$1 | null | undefined>>) | (T extends Array<Node$1 | null | undefined> ? Array<NodePath<T[number]>> : never);
1421
+ type NodePathResult<T> = (Extract<T, Node | null | undefined> extends never ? never : NodePath<Extract<T, Node | null | undefined>>) | (T extends Array<Node | null | undefined> ? Array<NodePath<T[number]>> : never);
1502
1422
  interface VirtualTypeAliases {
1503
1423
  BindingIdentifier: Identifier;
1504
- BlockScoped: Node$1;
1424
+ BlockScoped: Node;
1505
1425
  ExistentialTypeParam: ExistsTypeAnnotation;
1506
1426
  Flow: Flow | ImportDeclaration | ExportDeclaration | ImportSpecifier;
1507
1427
  ForAwaitStatement: ForOfStatement;
1508
- Generated: Node$1;
1428
+ Generated: Node;
1509
1429
  NumericLiteralTypeAnnotation: NumberLiteralTypeAnnotation;
1510
- Pure: Node$1;
1511
- Referenced: Node$1;
1430
+ Pure: Node;
1431
+ Referenced: Node;
1512
1432
  ReferencedIdentifier: Identifier | JSXIdentifier;
1513
1433
  ReferencedMemberExpression: MemberExpression;
1514
1434
  RestProperty: RestElement;
1515
1435
  Scope: Scopable | Pattern;
1516
1436
  SpreadProperty: RestElement;
1517
- User: Node$1;
1437
+ User: Node;
1518
1438
  Var: VariableDeclaration;
1519
1439
  }
1520
- declare namespace index_d_exports {
1521
- export { BabelFile, BabelFileMetadata, BabelFileModulesMetadata, BabelFileResult, ConfigAPI, ConfigFunction, ConfigItem, CreateConfigItemOptions, DEFAULT_EXTENSIONS, EnvFunction, FileParseCallback, FileResultCallback, GeneratorOptions, MatchPattern, MatchPatternContext, Node, NodePath, ParseResult, ParserOptions, PartialConfig, PluginItem, PluginObj, PluginOptions, PluginPass, PluginTarget, SimpleCacheCallback, SimpleCacheConfigurator, SimpleCacheKey, TransformCaller, TransformOptions, Visitor, createConfigItem, loadOptions, loadPartialConfig, loadPartialConfigAsync, parse, parseAsync, parseSync, resolvePlugin, resolvePreset, templateBuilder as template, transform, transformAsync, transformFile, transformFileAsync, transformFileSync, transformFromAst, transformFromAstAsync, transformFromAstSync, transformSync, traverse$1 as traverse, index_d_exports$1 as types, version };
1522
- }
1523
- type Node = Node$1;
1524
- type ParseResult = ReturnType<typeof parse$1>;
1525
- declare const version: string;
1526
- declare const DEFAULT_EXTENSIONS: [".js", ".jsx", ".es6", ".es", ".mjs"];
1527
- /**
1528
- * Source map standard format as to revision 3
1529
- * @see {@link https://sourcemaps.info/spec.html}
1530
- * @see {@link https://github.com/mozilla/source-map/blob/HEAD/source-map.d.ts}
1531
- */
1532
- interface InputSourceMap {
1533
- version: number;
1534
- sources: string[];
1535
- names: string[];
1536
- sourceRoot?: string | undefined;
1537
- sourcesContent?: string[] | undefined;
1538
- mappings: string;
1539
- file: string;
1540
- }
1541
- interface TransformOptions {
1542
- /**
1543
- * Specify which assumptions it can make about your code, to better optimize the compilation result. **NOTE**: This replaces the various `loose` options in plugins in favor of
1544
- * top-level options that can apply to multiple plugins
1545
- *
1546
- * @see https://babeljs.io/docs/en/assumptions
1547
- */
1548
- assumptions?: {
1549
- [name: string]: boolean;
1550
- } | null | undefined;
1551
- /**
1552
- * Include the AST in the returned object
1553
- *
1554
- * Default: `false`
1555
- */
1556
- ast?: boolean | null | undefined;
1557
- /**
1558
- * Attach a comment after all non-user injected code
1559
- *
1560
- * Default: `null`
1561
- */
1562
- auxiliaryCommentAfter?: string | null | undefined;
1563
- /**
1564
- * Attach a comment before all non-user injected code
1565
- *
1566
- * Default: `null`
1567
- */
1568
- auxiliaryCommentBefore?: string | null | undefined;
1569
- /**
1570
- * Specify the "root" folder that defines the location to search for "babel.config.js", and the default folder to allow `.babelrc` files inside of.
1571
- *
1572
- * Default: `"."`
1573
- */
1574
- root?: string | null | undefined;
1575
- /**
1576
- * This option, combined with the "root" value, defines how Babel chooses its project root.
1577
- * The different modes define different ways that Babel can process the "root" value to get
1578
- * the final project root.
1579
- *
1580
- * @see https://babeljs.io/docs/en/next/options#rootmode
1581
- */
1582
- rootMode?: "root" | "upward" | "upward-optional" | undefined;
1583
- /**
1584
- * The config file to load Babel's config from. Defaults to searching for "babel.config.js" inside the "root" folder. `false` will disable searching for config files.
1585
- *
1586
- * Default: `undefined`
1587
- */
1588
- configFile?: string | boolean | null | undefined;
1589
- /**
1590
- * Specify whether or not to use .babelrc and
1591
- * .babelignore files.
1592
- *
1593
- * Default: `true`
1594
- */
1595
- babelrc?: boolean | null | undefined;
1596
- /**
1597
- * Specify which packages should be search for .babelrc files when they are being compiled. `true` to always search, or a path string or an array of paths to packages to search
1598
- * inside of. Defaults to only searching the "root" package.
1599
- *
1600
- * Default: `(root)`
1601
- */
1602
- babelrcRoots?: boolean | MatchPattern | MatchPattern[] | null | undefined;
1603
- /**
1604
- * Toggles whether or not browserslist config sources are used, which includes searching for any browserslist files or referencing the browserslist key inside package.json.
1605
- * This is useful for projects that use a browserslist config for files that won't be compiled with Babel.
1606
- *
1607
- * If a string is specified, it must represent the path of a browserslist configuration file. Relative paths are resolved relative to the configuration file which specifies
1608
- * this option, or to `cwd` when it's passed as part of the programmatic options.
1609
- *
1610
- * Default: `true`
1611
- */
1612
- browserslistConfigFile?: boolean | null | undefined;
1613
- /**
1614
- * The Browserslist environment to use.
1615
- *
1616
- * Default: `undefined`
1617
- */
1618
- browserslistEnv?: string | null | undefined;
1619
- /**
1620
- * By default `babel.transformFromAst` will clone the input AST to avoid mutations.
1621
- * Specifying `cloneInputAst: false` can improve parsing performance if the input AST is not used elsewhere.
1622
- *
1623
- * Default: `true`
1624
- */
1625
- cloneInputAst?: boolean | null | undefined;
1626
- /**
1627
- * Defaults to environment variable `BABEL_ENV` if set, or else `NODE_ENV` if set, or else it defaults to `"development"`
1628
- *
1629
- * Default: env vars
1630
- */
1631
- envName?: string | undefined;
1632
- /**
1633
- * If any of patterns match, the current configuration object is considered inactive and is ignored during config processing.
1634
- */
1635
- exclude?: MatchPattern | MatchPattern[] | undefined;
1636
- /**
1637
- * Enable code generation
1638
- *
1639
- * Default: `true`
1640
- */
1641
- code?: boolean | null | undefined;
1642
- /**
1643
- * Output comments in generated output
1644
- *
1645
- * Default: `true`
1646
- */
1647
- comments?: boolean | null | undefined;
1648
- /**
1649
- * Do not include superfluous whitespace characters and line terminators. When set to `"auto"` compact is set to `true` on input sizes of >500KB
1650
- *
1651
- * Default: `"auto"`
1652
- */
1653
- compact?: boolean | "auto" | null | undefined;
1654
- /**
1655
- * The working directory that Babel's programmatic options are loaded relative to.
1656
- *
1657
- * Default: `"."`
1658
- */
1659
- cwd?: string | null | undefined;
1660
- /**
1661
- * Utilities may pass a caller object to identify themselves to Babel and
1662
- * pass capability-related flags for use by configs, presets and plugins.
1663
- *
1664
- * @see https://babeljs.io/docs/en/next/options#caller
1665
- */
1666
- caller?: TransformCaller | undefined;
1667
- /**
1668
- * This is an object of keys that represent different environments. For example, you may have: `{ env: { production: { \/* specific options *\/ } } }`
1669
- * which will use those options when the `envName` is `production`
1670
- *
1671
- * Default: `{}`
1672
- */
1673
- env?: {
1674
- [index: string]: TransformOptions | null | undefined;
1675
- } | null | undefined;
1676
- /**
1677
- * A path to a `.babelrc` file to extend
1678
- *
1679
- * Default: `null`
1680
- */
1681
- extends?: string | null | undefined;
1682
- /**
1683
- * Filename for use in errors etc
1684
- *
1685
- * Default: `"unknown"`
1686
- */
1687
- filename?: string | null | undefined;
1688
- /**
1689
- * Filename relative to `sourceRoot`
1690
- *
1691
- * Default: `(filename)`
1692
- */
1693
- filenameRelative?: string | null | undefined;
1694
- /**
1695
- * An object containing the options to be passed down to the babel code generator, @babel/generator
1696
- *
1697
- * Default: `{}`
1698
- */
1699
- generatorOpts?: GeneratorOptions | null | undefined;
1700
- /**
1701
- * Specify a custom callback to generate a module id with. Called as `getModuleId(moduleName)`. If falsy value is returned then the generated module id is used
1702
- *
1703
- * Default: `null`
1704
- */
1705
- getModuleId?: ((moduleName: string) => string | null | undefined) | null | undefined;
1706
- /**
1707
- * ANSI highlight syntax error code frames
1708
- *
1709
- * Default: `true`
1710
- */
1711
- highlightCode?: boolean | null | undefined;
1712
- /**
1713
- * Opposite to the `only` option. `ignore` is disregarded if `only` is specified
1714
- *
1715
- * Default: `null`
1716
- */
1717
- ignore?: MatchPattern[] | null | undefined;
1718
- /**
1719
- * This option is a synonym for "test"
1720
- */
1721
- include?: MatchPattern | MatchPattern[] | undefined;
1722
- /**
1723
- * A source map object that the output source map will be based on
1724
- *
1725
- * Default: `null`
1726
- */
1727
- inputSourceMap?: InputSourceMap | null | undefined;
1728
- /**
1729
- * Should the output be minified (not printing last semicolons in blocks, printing literal string values instead of escaped ones, stripping `()` from `new` when safe)
1730
- *
1731
- * Default: `false`
1732
- */
1733
- minified?: boolean | null | undefined;
1734
- /**
1735
- * Specify a custom name for module ids
1736
- *
1737
- * Default: `null`
1738
- */
1739
- moduleId?: string | null | undefined;
1740
- /**
1741
- * If truthy, insert an explicit id for modules. By default, all modules are anonymous. (Not available for `common` modules)
1742
- *
1743
- * Default: `false`
1744
- */
1745
- moduleIds?: boolean | null | undefined;
1746
- /**
1747
- * Optional prefix for the AMD module formatter that will be prepend to the filename on module definitions
1748
- *
1749
- * Default: `(sourceRoot)`
1750
- */
1751
- moduleRoot?: string | null | undefined;
1752
- /**
1753
- * A glob, regex, or mixed array of both, matching paths to **only** compile. Can also be an array of arrays containing paths to explicitly match. When attempting to compile
1754
- * a non-matching file it's returned verbatim
1755
- *
1756
- * Default: `null`
1757
- */
1758
- only?: MatchPattern[] | null | undefined;
1759
- /**
1760
- * Allows users to provide an array of options that will be merged into the current configuration one at a time.
1761
- * This feature is best used alongside the "test"/"include"/"exclude" options to provide conditions for which an override should apply
1762
- */
1763
- overrides?: TransformOptions[] | undefined;
1764
- /**
1765
- * An object containing the options to be passed down to the babel parser, @babel/parser
1766
- *
1767
- * Default: `{}`
1768
- */
1769
- parserOpts?: ParserOptions | null | undefined;
1770
- /**
1771
- * List of plugins to load and use
1772
- *
1773
- * Default: `[]`
1774
- */
1775
- plugins?: PluginItem[] | null | undefined;
1776
- /**
1777
- * List of presets (a set of plugins) to load and use
1778
- *
1779
- * Default: `[]`
1780
- */
1781
- presets?: PluginItem[] | null | undefined;
1782
- /**
1783
- * Retain line numbers. This will lead to wacky code but is handy for scenarios where you can't use source maps. (**NOTE**: This will not retain the columns)
1784
- *
1785
- * Default: `false`
1786
- */
1787
- retainLines?: boolean | null | undefined;
1788
- /**
1789
- * An optional callback that controls whether a comment should be output or not. Called as `shouldPrintComment(commentContents)`. **NOTE**: This overrides the `comment` option when used
1790
- *
1791
- * Default: `null`
1792
- */
1793
- shouldPrintComment?: ((commentContents: string) => boolean) | null | undefined;
1794
- /**
1795
- * Set `sources[0]` on returned source map
1796
- *
1797
- * Default: `(filenameRelative)`
1798
- */
1799
- sourceFileName?: string | null | undefined;
1800
- /**
1801
- * If truthy, adds a `map` property to returned output. If set to `"inline"`, a comment with a sourceMappingURL directive is added to the bottom of the returned code. If set to `"both"`
1802
- * then a `map` property is returned as well as a source map comment appended. **This does not emit sourcemap files by itself!**
1803
- *
1804
- * Default: `false`
1805
- */
1806
- sourceMaps?: boolean | "inline" | "both" | null | undefined;
1807
- /**
1808
- * The root from which all sources are relative
1809
- *
1810
- * Default: `(moduleRoot)`
1811
- */
1812
- sourceRoot?: string | null | undefined;
1813
- /**
1814
- * Indicate the mode the code should be parsed in. Can be one of "script", "module", or "unambiguous". `"unambiguous"` will make Babel attempt to guess, based on the presence of ES6
1815
- * `import` or `export` statements. Files with ES6 `import`s and `export`s are considered `"module"` and are otherwise `"script"`.
1816
- *
1817
- * Default: `("module")`
1818
- */
1819
- sourceType?: "script" | "module" | "unambiguous" | null | undefined;
1820
- /**
1821
- * If all patterns fail to match, the current configuration object is considered inactive and is ignored during config processing.
1822
- */
1823
- test?: MatchPattern | MatchPattern[] | undefined;
1824
- /**
1825
- * Describes the environments you support/target for your project.
1826
- * This can either be a [browserslist-compatible](https://github.com/ai/browserslist) query (with [caveats](https://babeljs.io/docs/en/babel-preset-env#ineffective-browserslist-queries))
1827
- *
1828
- * Default: `{}`
1829
- */
1830
- targets?: string | string[] | {
1831
- esmodules?: boolean;
1832
- node?: Omit<string, "current"> | "current" | true;
1833
- safari?: Omit<string, "tp"> | "tp";
1834
- browsers?: string | string[];
1835
- android?: string;
1836
- chrome?: string;
1837
- deno?: string;
1838
- edge?: string;
1839
- electron?: string;
1840
- firefox?: string;
1841
- ie?: string;
1842
- ios?: string;
1843
- opera?: string;
1844
- rhino?: string;
1845
- samsung?: string;
1846
- };
1847
- /**
1848
- * An optional callback that can be used to wrap visitor methods. **NOTE**: This is useful for things like introspection, and not really needed for implementing anything. Called as
1849
- * `wrapPluginVisitorMethod(pluginAlias, visitorType, callback)`.
1850
- */
1851
- wrapPluginVisitorMethod?: ((pluginAlias: string, visitorType: "enter" | "exit", callback: (path: NodePath, state: any) => void) => (path: NodePath, state: any) => void) | null | undefined;
1852
- }
1853
- interface TransformCaller {
1854
- // the only required property
1855
- name: string; // e.g. set to true by `babel-loader` and false by `babel-jest`
1856
- supportsStaticESM?: boolean | undefined;
1857
- supportsDynamicImport?: boolean | undefined;
1858
- supportsExportNamespaceFrom?: boolean | undefined;
1859
- supportsTopLevelAwait?: boolean | undefined; // augment this with a "declare module '@babel/core' { ... }" if you need more keys
1860
- }
1861
- type FileResultCallback = (err: Error | null, result: BabelFileResult | null) => any;
1862
- interface MatchPatternContext {
1863
- envName: string;
1864
- dirname: string;
1865
- caller: TransformCaller | undefined;
1866
- }
1867
- type MatchPattern = string | RegExp | ((filename: string | undefined, context: MatchPatternContext) => boolean);
1868
- /**
1869
- * Transforms the passed in code. Calling a callback with an object with the generated code, source map, and AST.
1870
- */
1871
- declare function transform(code: string, callback: FileResultCallback): void;
1872
- /**
1873
- * Transforms the passed in code. Calling a callback with an object with the generated code, source map, and AST.
1874
- */
1875
- declare function transform(code: string, opts: TransformOptions | undefined, callback: FileResultCallback): void;
1876
- /**
1877
- * Here for backward-compatibility. Ideally use `transformSync` if you want a synchronous API.
1878
- */
1879
- declare function transform(code: string, opts?: TransformOptions): BabelFileResult | null;
1880
- /**
1881
- * Transforms the passed in code. Returning an object with the generated code, source map, and AST.
1882
- */
1883
- declare function transformSync(code: string, opts?: TransformOptions): BabelFileResult | null;
1884
- /**
1885
- * Transforms the passed in code. Calling a callback with an object with the generated code, source map, and AST.
1886
- */
1887
- declare function transformAsync(code: string, opts?: TransformOptions): Promise<BabelFileResult | null>;
1888
- /**
1889
- * Asynchronously transforms the entire contents of a file.
1890
- */
1891
- declare function transformFile(filename: string, callback: FileResultCallback): void;
1892
- /**
1893
- * Asynchronously transforms the entire contents of a file.
1894
- */
1895
- declare function transformFile(filename: string, opts: TransformOptions | undefined, callback: FileResultCallback): void;
1896
- /**
1897
- * Synchronous version of `babel.transformFile`. Returns the transformed contents of the `filename`.
1898
- */
1899
- declare function transformFileSync(filename: string, opts?: TransformOptions): BabelFileResult | null;
1900
- /**
1901
- * Asynchronously transforms the entire contents of a file.
1902
- */
1903
- declare function transformFileAsync(filename: string, opts?: TransformOptions): Promise<BabelFileResult | null>;
1904
- /**
1905
- * Given an AST, transform it.
1906
- */
1907
- declare function transformFromAst(ast: Node, code: string | undefined, callback: FileResultCallback): void;
1908
- /**
1909
- * Given an AST, transform it.
1910
- */
1911
- declare function transformFromAst(ast: Node, code: string | undefined, opts: TransformOptions | undefined, callback: FileResultCallback): void;
1912
- /**
1913
- * Here for backward-compatibility. Ideally use ".transformSync" if you want a synchronous API.
1914
- */
1915
- declare function transformFromAstSync(ast: Node, code?: string, opts?: TransformOptions): BabelFileResult | null;
1916
- /**
1917
- * Given an AST, transform it.
1918
- */
1919
- declare function transformFromAstAsync(ast: Node, code?: string, opts?: TransformOptions): Promise<BabelFileResult | null>;
1920
- // A babel plugin is a simple function which must return an object matching
1921
- // the following interface. Babel will throw if it finds unknown properties.
1922
- // The list of allowed plugin keys is here:
1923
- // https://github.com/babel/babel/blob/4e50b2d9d9c376cee7a2cbf56553fe5b982ea53c/packages/babel-core/src/config/option-manager.js#L71
1924
- interface PluginObj<S = PluginPass> {
1925
- name?: string | undefined;
1926
- manipulateOptions?(opts: any, parserOpts: any): void;
1927
- pre?(this: S, file: BabelFile): void;
1928
- visitor: Visitor<S>;
1929
- post?(this: S, file: BabelFile): void;
1930
- inherits?: any;
1931
- }
1932
- interface BabelFile {
1933
- ast: File;
1934
- opts: TransformOptions;
1935
- hub: Hub;
1936
- metadata: object;
1937
- path: NodePath<Program>;
1938
- scope: Scope;
1939
- inputMap: object | null;
1940
- code: string;
1941
- }
1942
- interface PluginPass {
1943
- file: BabelFile;
1944
- key: string;
1945
- opts: object;
1946
- cwd: string;
1947
- filename: string | undefined;
1948
- get(key: unknown): any;
1949
- set(key: unknown, value: unknown): void;
1950
- [key: string]: unknown;
1951
- }
1952
- interface BabelFileResult {
1953
- ast?: File | null | undefined;
1954
- code?: string | null | undefined;
1955
- ignored?: boolean | undefined;
1956
- map?: {
1957
- version: number;
1958
- sources: string[];
1959
- names: string[];
1960
- sourceRoot?: string | undefined;
1961
- sourcesContent?: string[] | undefined;
1962
- mappings: string;
1963
- file: string;
1964
- } | null | undefined;
1965
- metadata?: BabelFileMetadata | undefined;
1966
- }
1967
- interface BabelFileMetadata {
1968
- usedHelpers: string[];
1969
- marked: Array<{
1970
- type: string;
1971
- message: string;
1972
- loc: object;
1973
- }>;
1974
- modules: BabelFileModulesMetadata;
1975
- }
1976
- interface BabelFileModulesMetadata {
1977
- imports: object[];
1978
- exports: {
1979
- exported: object[];
1980
- specifiers: object[];
1981
- };
1982
- }
1983
- type FileParseCallback = (err: Error | null, result: ParseResult | null) => any;
1984
- /**
1985
- * Given some code, parse it using Babel's standard behavior.
1986
- * Referenced presets and plugins will be loaded such that optional syntax plugins are automatically enabled.
1987
- */
1988
- declare function parse(code: string, callback: FileParseCallback): void;
1989
- /**
1990
- * Given some code, parse it using Babel's standard behavior.
1991
- * Referenced presets and plugins will be loaded such that optional syntax plugins are automatically enabled.
1992
- */
1993
- declare function parse(code: string, options: TransformOptions | undefined, callback: FileParseCallback): void;
1994
- /**
1995
- * Given some code, parse it using Babel's standard behavior.
1996
- * Referenced presets and plugins will be loaded such that optional syntax plugins are automatically enabled.
1997
- */
1998
- declare function parse(code: string, options?: TransformOptions): ParseResult | null;
1999
- /**
2000
- * Given some code, parse it using Babel's standard behavior.
2001
- * Referenced presets and plugins will be loaded such that optional syntax plugins are automatically enabled.
2002
- */
2003
- declare function parseSync(code: string, options?: TransformOptions): ParseResult | null;
2004
- /**
2005
- * Given some code, parse it using Babel's standard behavior.
2006
- * Referenced presets and plugins will be loaded such that optional syntax plugins are automatically enabled.
2007
- */
2008
- declare function parseAsync(code: string, options?: TransformOptions): Promise<ParseResult | null>;
2009
- /**
2010
- * Resolve Babel's options fully, resulting in an options object where:
2011
- *
2012
- * * opts.plugins is a full list of Plugin instances.
2013
- * * opts.presets is empty and all presets are flattened into opts.
2014
- * * It can be safely passed back to Babel. Fields like babelrc have been set to false so that later calls to Babel
2015
- * will not make a second attempt to load config files.
2016
- *
2017
- * Plugin instances aren't meant to be manipulated directly, but often callers will serialize this opts to JSON to
2018
- * use it as a cache key representing the options Babel has received. Caching on this isn't 100% guaranteed to
2019
- * invalidate properly, but it is the best we have at the moment.
2020
- */
2021
- declare function loadOptions(options?: TransformOptions): object | null;
2022
- /**
2023
- * To allow systems to easily manipulate and validate a user's config, this function resolves the plugins and
2024
- * presets and proceeds no further. The expectation is that callers will take the config's .options, manipulate it
2025
- * as then see fit and pass it back to Babel again.
2026
- *
2027
- * * `babelrc: string | void` - The path of the `.babelrc` file, if there was one.
2028
- * * `babelignore: string | void` - The path of the `.babelignore` file, if there was one.
2029
- * * `options: ValidatedOptions` - The partially resolved options, which can be manipulated and passed back
2030
- * to Babel again.
2031
- * * `plugins: Array<ConfigItem>` - See below.
2032
- * * `presets: Array<ConfigItem>` - See below.
2033
- * * It can be safely passed back to Babel. Fields like `babelrc` have been set to false so that later calls to
2034
- * Babel will not make a second attempt to load config files.
2035
- *
2036
- * `ConfigItem` instances expose properties to introspect the values, but each item should be treated as
2037
- * immutable. If changes are desired, the item should be removed from the list and replaced with either a normal
2038
- * Babel config value, or with a replacement item created by `babel.createConfigItem`. See that function for
2039
- * information about `ConfigItem` fields.
2040
- */
2041
- declare function loadPartialConfig(options?: TransformOptions): Readonly<PartialConfig> | null;
2042
- declare function loadPartialConfigAsync(options?: TransformOptions): Promise<Readonly<PartialConfig> | null>;
2043
- interface PartialConfig {
2044
- options: TransformOptions;
2045
- babelrc?: string | undefined;
2046
- babelignore?: string | undefined;
2047
- config?: string | undefined;
2048
- hasFilesystemConfig: () => boolean;
2049
- }
2050
- interface ConfigItem {
2051
- /**
2052
- * The name that the user gave the plugin instance, e.g. `plugins: [ ['env', {}, 'my-env'] ]`
2053
- */
2054
- name?: string | undefined;
2055
- /**
2056
- * The resolved value of the plugin.
2057
- */
2058
- value: object | ((...args: any[]) => any);
2059
- /**
2060
- * The options object passed to the plugin.
2061
- */
2062
- options?: object | false | undefined;
2063
- /**
2064
- * The path that the options are relative to.
2065
- */
2066
- dirname: string;
2067
- /**
2068
- * Information about the plugin's file, if Babel knows it.
2069
- * *
2070
- */
2071
- file?: {
2072
- /**
2073
- * The file that the user requested, e.g. `"@babel/env"`
2074
- */
2075
- request: string;
2076
- /**
2077
- * The full path of the resolved file, e.g. `"/tmp/node_modules/@babel/preset-env/lib/index.js"`
2078
- */
2079
- resolved: string;
2080
- } | null | undefined;
2081
- }
2082
- type PluginOptions = object | undefined | false;
2083
- type PluginTarget = string | object | ((...args: any[]) => any);
2084
- type PluginItem = ConfigItem | PluginObj<any> | PluginTarget | [PluginTarget, PluginOptions] | [PluginTarget, PluginOptions, string | undefined];
2085
- declare function resolvePlugin(name: string, dirname: string): string | null;
2086
- declare function resolvePreset(name: string, dirname: string): string | null;
2087
- interface CreateConfigItemOptions {
2088
- dirname?: string | undefined;
2089
- type?: "preset" | "plugin" | undefined;
2090
- }
2091
- /**
2092
- * Allows build tooling to create and cache config items up front. If this function is called multiple times for a
2093
- * given plugin, Babel will call the plugin's function itself multiple times. If you have a clear set of expected
2094
- * plugins and presets to inject, pre-constructing the config items would be recommended.
2095
- */
2096
- declare function createConfigItem(value: PluginTarget | [PluginTarget, PluginOptions] | [PluginTarget, PluginOptions, string | undefined], options?: CreateConfigItemOptions): ConfigItem;
2097
- // NOTE: the documentation says the ConfigAPI also exposes @babel/core's exports, but it actually doesn't
2098
- /**
2099
- * @see https://babeljs.io/docs/en/next/config-files#config-function-api
2100
- */
2101
- interface ConfigAPI {
2102
- /**
2103
- * The version string for the Babel version that is loading the config file.
2104
- *
2105
- * @see https://babeljs.io/docs/en/next/config-files#apiversion
2106
- */
2107
- version: string;
2108
- /**
2109
- * @see https://babeljs.io/docs/en/next/config-files#apicache
2110
- */
2111
- cache: SimpleCacheConfigurator;
2112
- /**
2113
- * @see https://babeljs.io/docs/en/next/config-files#apienv
2114
- */
2115
- env: EnvFunction; // undocumented; currently hardcoded to return 'false'
2116
- // async(): boolean
2117
- /**
2118
- * This API is used as a way to access the `caller` data that has been passed to Babel.
2119
- * Since many instances of Babel may be running in the same process with different `caller` values,
2120
- * this API is designed to automatically configure `api.cache`, the same way `api.env()` does.
2121
- *
2122
- * The `caller` value is available as the first parameter of the callback function.
2123
- * It is best used with something like this to toggle configuration behavior
2124
- * based on a specific environment:
2125
- *
2126
- * @example
2127
- * function isBabelRegister(caller?: { name: string }) {
2128
- * return !!(caller && caller.name === "@babel/register")
2129
- * }
2130
- * api.caller(isBabelRegister)
2131
- *
2132
- * @see https://babeljs.io/docs/en/next/config-files#apicallercb
2133
- */
2134
- caller<T extends SimpleCacheKey>(callerCallback: (caller: TransformOptions["caller"]) => T): T;
2135
- /**
2136
- * While `api.version` can be useful in general, it's sometimes nice to just declare your version.
2137
- * This API exposes a simple way to do that with:
2138
- *
2139
- * @example
2140
- * api.assertVersion(7) // major version only
2141
- * api.assertVersion("^7.2")
2142
- *
2143
- * @see https://babeljs.io/docs/en/next/config-files#apiassertversionrange
2144
- */
2145
- assertVersion(versionRange: number | string): boolean; // NOTE: this is an undocumented reexport from "@babel/parser" but it's missing from its types
2146
- // tokTypes: typeof tokTypes
2147
- }
2148
- /**
2149
- * JS configs are great because they can compute a config on the fly,
2150
- * but the downside there is that it makes caching harder.
2151
- * Babel wants to avoid re-executing the config function every time a file is compiled,
2152
- * because then it would also need to re-execute any plugin and preset functions
2153
- * referenced in that config.
2154
- *
2155
- * To avoid this, Babel expects users of config functions to tell it how to manage caching
2156
- * within a config file.
2157
- *
2158
- * @see https://babeljs.io/docs/en/next/config-files#apicache
2159
- */
2160
- interface SimpleCacheConfigurator {
2161
- // there is an undocumented call signature that is a shorthand for forever()/never()/using().
2162
- // (ever: boolean): void
2163
- // <T extends SimpleCacheKey>(callback: CacheCallback<T>): T
2164
- /**
2165
- * Permacache the computed config and never call the function again.
2166
- */
2167
- forever(): void;
2168
- /**
2169
- * Do not cache this config, and re-execute the function every time.
2170
- */
2171
- never(): void;
2172
- /**
2173
- * Any time the using callback returns a value other than the one that was expected,
2174
- * the overall config function will be called again and a new entry will be added to the cache.
2175
- *
2176
- * @example
2177
- * api.cache.using(() => process.env.NODE_ENV)
2178
- */
2179
- using<T extends SimpleCacheKey>(callback: SimpleCacheCallback<T>): T;
2180
- /**
2181
- * Any time the using callback returns a value other than the one that was expected,
2182
- * the overall config function will be called again and all entries in the cache will
2183
- * be replaced with the result.
2184
- *
2185
- * @example
2186
- * api.cache.invalidate(() => process.env.NODE_ENV)
2187
- */
2188
- invalidate<T extends SimpleCacheKey>(callback: SimpleCacheCallback<T>): T;
2189
- }
2190
- // https://github.com/babel/babel/blob/v7.3.3/packages/babel-core/src/config/caching.js#L231
2191
- type SimpleCacheKey = string | boolean | number | null | undefined;
2192
- type SimpleCacheCallback<T extends SimpleCacheKey> = () => T;
2193
- /**
2194
- * Since `NODE_ENV` is a fairly common way to toggle behavior, Babel also includes an API function
2195
- * meant specifically for that. This API is used as a quick way to check the `"envName"` that Babel
2196
- * was loaded with, which takes `NODE_ENV` into account if no other overriding environment is set.
2197
- *
2198
- * @see https://babeljs.io/docs/en/next/config-files#apienv
2199
- */
2200
- interface EnvFunction {
2201
- /**
2202
- * @returns the current `envName` string
2203
- */
2204
- (): string;
2205
- /**
2206
- * @returns `true` if the `envName` is `===` any of the given strings
2207
- */
2208
- (envName: string | readonly string[]): boolean; // the official documentation is misleading for this one...
2209
- // this just passes the callback to `cache.using` but with an additional argument.
2210
- // it returns its result instead of necessarily returning a boolean.
2211
- <T extends SimpleCacheKey>(envCallback: (envName: NonNullable<TransformOptions["envName"]>) => T): T;
2212
- }
2213
- type ConfigFunction = (api: ConfigAPI) => TransformOptions;
2214
1440
  //#endregion
2215
1441
  //#region .dts-emit/code/core/src/babel/babelParse.d.ts
2216
1442
  declare const parserOptions: ParserOptions;
@@ -2219,7 +1445,31 @@ interface ASTNode {
2219
1445
  type: string;
2220
1446
  }
2221
1447
  declare const babelPrint: (ast: ASTNode) => string;
2222
- declare const babelParseExpression: (code: string) => ParseResult$1<Expression>;
1448
+ declare const babelParseExpression: (code: string) => ParseResult<Expression>;
1449
+ //#endregion
1450
+ //#region .dts-emit/code/core/src/babel/babel-file.d.ts
1451
+ /** A parsed file with its Program path, like the `File` of @babel/core. */
1452
+ interface BabelFile {
1453
+ ast: File;
1454
+ code: string;
1455
+ opts: {
1456
+ filename?: string;
1457
+ };
1458
+ path: NodePath<Program>;
1459
+ }
1460
+ /**
1461
+ * Makes the Program path of `ast` the same way the `File` class of @babel/core does, without
1462
+ * @babel/core. The hub gives `path.buildCodeFrameError` a code frame from `code`.
1463
+ */
1464
+ declare function createBabelFile({
1465
+ code,
1466
+ ast,
1467
+ filename
1468
+ }: {
1469
+ code: string;
1470
+ ast: File;
1471
+ filename?: string;
1472
+ }): BabelFile;
2223
1473
  //#endregion
2224
1474
  //#region .dts-emit/code/core/src/babel/expression-resolver.d.ts
2225
1475
  /** Recursively unwraps TypeScript type annotation expressions (as X, satisfies X, <X>expr). */
@@ -2296,6 +1546,5 @@ declare const canUpdateVitestConfigFile: (fileContent: string) => boolean;
2296
1546
  //#region .dts-emit/code/core/src/babel/index.d.ts
2297
1547
  declare const traverse: typeof traverse$1;
2298
1548
  declare const generate: typeof generate$1;
2299
- declare const BabelFileClass: any;
2300
1549
  //#endregion
2301
- export { type BabelFile, BabelFileClass, type GeneratorOptions, type NodePath, type RecastOptions, babelParse, babelParseExpression, babelPrint, canUpdateVitestConfigFile, index_d_exports as core, generate, getConfigObjectFromMergeArg, getEffectiveMergeConfigCall, getTargetConfigObject, isDefineConfigLike, isImportedDefineConfigLikeIdentifier, babel_parser_d_exports as parser, parserOptions, recast, resolveExpression, transformSync, traverse, index_d_exports$1 as types, unwrapTSExpression };
1550
+ export { type BabelFile, type GeneratorOptions, type NodePath, type RecastOptions, babelParse, babelParseExpression, babelPrint, canUpdateVitestConfigFile, createBabelFile, generate, getConfigObjectFromMergeArg, getEffectiveMergeConfigCall, getTargetConfigObject, isDefineConfigLike, isImportedDefineConfigLikeIdentifier, babel_parser_d_exports as parser, parserOptions, recast, resolveExpression, traverse, index_d_exports as types, unwrapTSExpression };