@aussieljk/forkbook 0.0.1-5 → 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 (306) hide show
  1. package/dist/_browser-chunks/{Color-GTF4GM7L.js → Color-2BMQTRYG.js} +1 -1
  2. package/dist/_browser-chunks/WithTooltip-GJACFWKM.js +196 -0
  3. package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
  4. package/dist/_browser-chunks/chunk-6EJEEII7.js +1149 -0
  5. package/dist/_browser-chunks/{chunk-MJY6ITYT.js → chunk-6IKB2UHQ.js} +10 -10
  6. package/dist/_browser-chunks/chunk-DPRGR3QP.js +5995 -0
  7. package/dist/_browser-chunks/{chunk-K6GRZSXS.js → chunk-EQKMUQF3.js} +4 -3
  8. package/dist/_browser-chunks/{chunk-GU3X2J4S.js → chunk-FRAOQJDI.js} +3 -1
  9. package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-H4ZHAXN3.js} +1 -1
  10. package/dist/_browser-chunks/{chunk-ZLWA5RIE.js → chunk-I4ATZPNZ.js} +1 -1
  11. package/dist/_browser-chunks/{chunk-6SHRDXGF.js → chunk-IJYLSHY7.js} +173 -87
  12. package/dist/_browser-chunks/{chunk-SZCSXISG.js → chunk-NA4ITZTK.js} +7 -5
  13. package/dist/_browser-chunks/chunk-NGMQJMCY.js +53 -0
  14. package/dist/_browser-chunks/{chunk-K2B36HKM.js → chunk-O24AZJZ7.js} +1 -1
  15. package/dist/_browser-chunks/{chunk-HOSBMS2F.js → chunk-QAHDGPZ7.js} +1 -1
  16. package/dist/_browser-chunks/{chunk-NMRSYACM.js → chunk-SFMQDIN2.js} +4 -3
  17. package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
  18. package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-X7D777E6.js} +547 -1622
  19. package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-YYWKZ7O3.js} +3 -1
  20. package/dist/_node-chunks/{attached-runtime-IOE3BXIY.js → attached-runtime-EBWIOQZN.js} +29 -29
  21. package/dist/_node-chunks/{builder-manager-GDFEGD72.js → builder-manager-ETBLZ2RH.js} +130 -146
  22. package/dist/_node-chunks/{chunk-VN3A5CEH.js → chunk-252Y5WHZ.js} +7 -7
  23. package/dist/_node-chunks/{chunk-7XUQM6SR.js → chunk-25PXULSJ.js} +14 -14
  24. package/dist/_node-chunks/chunk-2DBJWMYE.js +495 -0
  25. package/dist/_node-chunks/{chunk-WMQ2VCTF.js → chunk-3UWWRDA5.js} +7 -7
  26. package/dist/_node-chunks/{chunk-BFZG4UTW.js → chunk-4KCQYJT6.js} +7 -7
  27. package/dist/_node-chunks/{chunk-KQFHT7SW.js → chunk-4MJIPOJ5.js} +6 -6
  28. package/dist/_node-chunks/{chunk-YLKS7U3M.js → chunk-4WLIN3VZ.js} +8 -8
  29. package/dist/_node-chunks/{chunk-E6KXSYWR.js → chunk-4XNPO23I.js} +6 -6
  30. package/dist/_node-chunks/{chunk-J64XMUPF.js → chunk-5T635FTI.js} +10 -10
  31. package/dist/_node-chunks/{chunk-HCX5R46Q.js → chunk-5Z6MT4RI.js} +8 -8
  32. package/dist/_node-chunks/{chunk-A4XRNDN4.js → chunk-644CUCK5.js} +7 -7
  33. package/dist/_node-chunks/{chunk-GR65OLAH.js → chunk-7E27CGRU.js} +7 -7
  34. package/dist/_node-chunks/{chunk-TZ2TZW2K.js → chunk-A35J7YYA.js} +6 -6
  35. package/dist/_node-chunks/{chunk-3DX6THMV.js → chunk-ALHPFKVB.js} +8 -8
  36. package/dist/_node-chunks/{chunk-AXQ6LLSE.js → chunk-ANDQVXYX.js} +8 -8
  37. package/dist/_node-chunks/{chunk-UW35FCXF.js → chunk-AS4SFRCZ.js} +6 -6
  38. package/dist/_node-chunks/{chunk-SJZQ44OR.js → chunk-BLUMKQQB.js} +6 -6
  39. package/dist/_node-chunks/{chunk-5LE7GXEC.js → chunk-C5JG7EKF.js} +6 -6
  40. package/dist/_node-chunks/{chunk-AXG3EMKS.js → chunk-CBUQY454.js} +7 -15
  41. package/dist/_node-chunks/{chunk-BBD2KUV4.js → chunk-CF7KLGUW.js} +22 -20
  42. package/dist/_node-chunks/{chunk-V45RRBTK.js → chunk-CGVPHZVD.js} +8 -8
  43. package/dist/_node-chunks/{chunk-MCZZMBPA.js → chunk-DABFUVLR.js} +6 -6
  44. package/dist/_node-chunks/{chunk-TYCDPVIH.js → chunk-DCNZ6SFN.js} +6 -6
  45. package/dist/_node-chunks/{chunk-6DOJKR3V.js → chunk-DDGW2EBW.js} +29843 -51588
  46. package/dist/_node-chunks/{chunk-Q33BYVLY.js → chunk-DRLBJM6X.js} +7 -7
  47. package/dist/_node-chunks/{chunk-AAAUVDWT.js → chunk-E3O7VAPG.js} +10 -10
  48. package/dist/_node-chunks/{chunk-L5CY6HKG.js → chunk-FIFCNBTL.js} +7 -7
  49. package/dist/_node-chunks/{chunk-SDXU22OH.js → chunk-FQWTUSYB.js} +6 -6
  50. package/dist/_node-chunks/{chunk-LCXIUTOU.js → chunk-G6YNW4FK.js} +7 -7
  51. package/dist/_node-chunks/{chunk-OSJFTZ5N.js → chunk-GDFQQO5U.js} +6 -6
  52. package/dist/_node-chunks/{chunk-SAAQFJL4.js → chunk-GGTXOH3W.js} +6 -6
  53. package/dist/_node-chunks/{chunk-ZZNBVMBU.js → chunk-GIOREKIG.js} +7 -7
  54. package/dist/_node-chunks/{chunk-MDGNN3FJ.js → chunk-GOFK4EKU.js} +6 -6
  55. package/dist/_node-chunks/{chunk-SUJXQU74.js → chunk-GQ3HJNIH.js} +10 -13
  56. package/dist/_node-chunks/{chunk-RCPKLP3X.js → chunk-GRTI5653.js} +7 -7
  57. package/dist/_node-chunks/{chunk-ES5QZBSB.js → chunk-HKL3VOYX.js} +6 -6
  58. package/dist/_node-chunks/{chunk-T2I453AJ.js → chunk-HUPRQZ3I.js} +7 -7
  59. package/dist/_node-chunks/{chunk-VJSOHPVD.js → chunk-HWRHYM7Z.js} +6 -6
  60. package/dist/_node-chunks/{chunk-U47PBQZ3.js → chunk-I7HRDCNY.js} +10 -10
  61. package/dist/_node-chunks/{chunk-GS4VNNSS.js → chunk-IFPMZ247.js} +6 -6
  62. package/dist/_node-chunks/{chunk-EWAGCBER.js → chunk-J6M5CRYZ.js} +8 -8
  63. package/dist/_node-chunks/{chunk-45LRLOYO.js → chunk-JPXJI6QR.js} +60 -134
  64. package/dist/_node-chunks/{chunk-NYWD5LYM.js → chunk-JS2J2SKX.js} +6 -6
  65. package/dist/_node-chunks/{chunk-BV3QRFE6.js → chunk-JZWF3XLN.js} +6 -6
  66. package/dist/_node-chunks/{chunk-QQXFB4YA.js → chunk-KF3FT3NI.js} +9 -9
  67. package/dist/_node-chunks/chunk-KWPWQA7G.js +2609 -0
  68. package/dist/_node-chunks/{chunk-VBSVLIXU.js → chunk-L4JGWK4K.js} +6 -6
  69. package/dist/_node-chunks/{chunk-MHDKWHOA.js → chunk-LFIFBDMS.js} +6 -6
  70. package/dist/_node-chunks/{chunk-3DCJB2D4.js → chunk-LWKLJYYQ.js} +6 -6
  71. package/dist/_node-chunks/{chunk-XUHEL63G.js → chunk-LXVSVTQ3.js} +6 -6
  72. package/dist/_node-chunks/chunk-MDW3GSU3.js +69 -0
  73. package/dist/_node-chunks/{chunk-WHDCECIV.js → chunk-MFN2XBPL.js} +7 -7
  74. package/dist/_node-chunks/{chunk-5KAJVK4E.js → chunk-MQFB44YS.js} +7 -7
  75. package/dist/_node-chunks/{chunk-OTFIQXHR.js → chunk-MZ2GSR3G.js} +22 -50
  76. package/dist/_node-chunks/{chunk-AX2ALHBK.js → chunk-N7HEOGTM.js} +9 -6
  77. package/dist/_node-chunks/{chunk-NDGTNFUN.js → chunk-NUAQC3XP.js} +16 -13
  78. package/dist/_node-chunks/{chunk-F4Q7OCCN.js → chunk-NX6CSWF3.js} +8 -8
  79. package/dist/_node-chunks/{chunk-I3DKGHVD.js → chunk-NZ7EQWYA.js} +9 -9
  80. package/dist/_node-chunks/{chunk-UKEJISQU.js → chunk-OLGIDCVD.js} +650 -9
  81. package/dist/_node-chunks/{chunk-AXJJB2K6.js → chunk-P65JVLO3.js} +8 -8
  82. package/dist/_node-chunks/{chunk-2GY2FKLH.js → chunk-PAN35AYX.js} +7 -7
  83. package/dist/_node-chunks/{chunk-7TUSIVWS.js → chunk-PLWLCVP2.js} +6 -6
  84. package/dist/_node-chunks/{chunk-SR3BCYEH.js → chunk-Q4BEWGMK.js} +6 -6
  85. package/dist/_node-chunks/{chunk-FA36CEN4.js → chunk-QNUXGVZZ.js} +6 -6
  86. package/dist/_node-chunks/{chunk-OB2XHL53.js → chunk-R5DWO2S2.js} +31 -30
  87. package/dist/_node-chunks/{chunk-D6B2DRQZ.js → chunk-SLZV7PTQ.js} +8 -8
  88. package/dist/_node-chunks/{chunk-BTFSFATC.js → chunk-TIRP5JQM.js} +11 -10
  89. package/dist/_node-chunks/{chunk-YTBTCM22.js → chunk-TMXWDY2O.js} +6 -6
  90. package/dist/_node-chunks/{chunk-HWY2CAUH.js → chunk-TN3ULFFZ.js} +6 -6
  91. package/dist/_node-chunks/{chunk-M2QB5ALN.js → chunk-TPSJW4CQ.js} +6 -6
  92. package/dist/_node-chunks/{chunk-6QQTZT3Z.js → chunk-TYBPAV3X.js} +6 -6
  93. package/dist/_node-chunks/chunk-UUE3PSJB.js +11 -0
  94. package/dist/_node-chunks/chunk-VKNRNBTB.js +18 -0
  95. package/dist/_node-chunks/{chunk-LSP54OYM.js → chunk-VPU4E7DI.js} +25 -8
  96. package/dist/_node-chunks/{chunk-CGXW2HFE.js → chunk-WIQ6Y3NX.js} +6 -6
  97. package/dist/_node-chunks/{chunk-E4C2H45J.js → chunk-WRG3CFGS.js} +6 -6
  98. package/dist/_node-chunks/{chunk-N4FLP7AO.js → chunk-X3RTVNRN.js} +7 -7
  99. package/dist/_node-chunks/chunk-XOGU5PWI.js +347 -0
  100. package/dist/_node-chunks/{chunk-QZVFIEOM.js → chunk-XWGMQW2H.js} +6 -6
  101. package/dist/_node-chunks/chunk-YCXTTQ7K.js +620 -0
  102. package/dist/_node-chunks/{chunk-JJNO3SFI.js → chunk-YHH57LHY.js} +9 -9
  103. package/dist/_node-chunks/{chunk-ZPPVG262.js → chunk-YMZ2SGFK.js} +6 -6
  104. package/dist/_node-chunks/{chunk-B2IOB2V3.js → chunk-YNENOZRY.js} +7 -7
  105. package/dist/_node-chunks/{chunk-4WO3GNZQ.js → chunk-YPGVYNJB.js} +6 -6
  106. package/dist/_node-chunks/{chunk-RECGEABN.js → chunk-YQDBSAXW.js} +7 -7
  107. package/dist/_node-chunks/{chunk-UM5G27IC.js → chunk-Z4NZLBOX.js} +7 -7
  108. package/dist/_node-chunks/{chunk-E4TBS4MV.js → chunk-ZC3ZZKMS.js} +8 -8
  109. package/dist/_node-chunks/{chunk-PHXCOTMO.js → chunk-ZCITDAV4.js} +34 -949
  110. package/dist/_node-chunks/chunk-ZNSGFYAT.js +25 -0
  111. package/dist/_node-chunks/{chunk-CK4EHW3K.js → chunk-ZSH6BUCW.js} +25 -25
  112. package/dist/_node-chunks/{chunk-KCAPE7OJ.js → chunk-ZTFNOXZF.js} +6 -6
  113. package/dist/_node-chunks/dist-GGTGKXZA.js +27 -0
  114. package/dist/_node-chunks/dist-NS676VJR.js +16 -0
  115. package/dist/_node-chunks/{local-runtime-RW6AAWSX.js → local-runtime-BUTEKJYV.js} +20 -20
  116. package/dist/_node-chunks/{mdx-plugin-BKWCT6CB.js → mdx-plugin-7WXQIHPV.js} +2263 -130
  117. package/dist/_node-chunks/{monorepo-ZFJ6HM34.js → monorepo-NCD3X2BR.js} +11 -11
  118. package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-C3EW4VJW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-SD3B272K.js} +11 -11
  119. package/dist/_node-chunks/optimized-tests-ITVOHEOA.js +22 -0
  120. package/dist/_node-chunks/{pattern-copy-play-2ZMJNCBS.js → pattern-copy-play-3QJANDJD.js} +9 -9
  121. package/dist/_node-chunks/postinstallAddon-LEUHOKX6.js +20 -0
  122. package/dist/_node-chunks/{rehype-external-links-RT5Z62RV.js → rehype-external-links-4LR5BDR2.js} +9 -9
  123. package/dist/_node-chunks/{rehype-slug-H5TWHJ6G.js → rehype-slug-PWFRGOEV.js} +9 -9
  124. package/dist/_node-chunks/{relaxed-limits-DYLWZGE4.js → relaxed-limits-VNNWUW7X.js} +11 -11
  125. package/dist/_node-chunks/{run-65LLGSVR.js → run-RUAAWEQT.js} +13 -13
  126. package/dist/_node-chunks/{run-BQQLK454.js → run-YK6ARCWS.js} +17 -17
  127. package/dist/_node-chunks/session-id-JJYVZAKO.js +23 -0
  128. package/dist/_node-chunks/{setup-NEO7XX66.js → setup-4QKCICV6.js} +8 -8
  129. package/dist/_node-chunks/{vitest.config.4.template-6P3FZQTY.js → vitest.config.4.template-WVFLIXN7.js} +7 -7
  130. package/dist/actions/decorator.js +2 -1
  131. package/dist/actions/index.js +2 -1
  132. package/dist/addon-a11y/index.js +2 -1
  133. package/dist/addon-a11y/manager.js +7 -6
  134. package/dist/addon-a11y/preset.js +7 -7
  135. package/dist/addon-a11y/preview.js +2 -1
  136. package/dist/addon-docs/blocks.js +29 -15
  137. package/dist/addon-docs/manager.js +2 -2
  138. package/dist/addon-docs/preset.js +10 -10
  139. package/dist/addon-links/index.js +3 -2
  140. package/dist/addon-links/preview.d.ts +1 -1
  141. package/dist/addon-links/preview.js +3 -2
  142. package/dist/addon-links/react/index.js +2 -1
  143. package/dist/addon-mcp/preset.js +8 -8
  144. package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +16 -44
  145. package/dist/addon-ondevice-actions/index.js +5 -1
  146. package/dist/addon-ondevice-actions/register.js +5 -1
  147. package/dist/addon-themes/postinstall.js +7 -7
  148. package/dist/addon-vitest/constants.js +8 -8
  149. package/dist/addon-vitest/manager.js +3 -3
  150. package/dist/addon-vitest/node/coverage-reporter.js +8 -8
  151. package/dist/addon-vitest/node/vitest.js +16 -16
  152. package/dist/addon-vitest/postinstall.js +10 -10
  153. package/dist/addon-vitest/preset.js +15 -16
  154. package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
  155. package/dist/addon-vitest/vitest-plugin/index.js +17 -17
  156. package/dist/babel/index.d.ts +91 -842
  157. package/dist/babel/index.js +13 -19
  158. package/dist/bin/core.js +61 -60
  159. package/dist/bin/dispatcher.js +10 -10
  160. package/dist/bin/loader.js +16 -15
  161. package/dist/builder-vite/index.js +15 -15
  162. package/dist/builder-vite/preset.js +13 -13
  163. package/dist/{chunk-Jf7j2Ot0.d.ts → chunk-BGhyFTJO.d.ts} +1 -1
  164. package/dist/chunk-CV4-Z2pn.d.ts +30 -0
  165. package/dist/{chunk-Ce6uhJuR.d.ts → chunk-CVY28Ngy.d.ts} +1 -1
  166. package/dist/{chunk-B2t1tGRh.d.ts → chunk-CYuvV2sR.d.ts} +11 -13
  167. package/dist/{chunk-CZHsX9Zo.d.ts → chunk-ClI-HEh5.d.ts} +1 -1
  168. package/dist/{chunk-DpljNJTz.d.ts → chunk-CzmZhVrn.d.ts} +34 -0
  169. package/dist/cli/index.d.ts +13 -866
  170. package/dist/cli/index.js +42 -4952
  171. package/dist/cli/tools/sdk/child-host.d.ts +1 -1
  172. package/dist/cli/tools/sdk/child-host.js +17 -17
  173. package/dist/cli/tools/sdk/index.d.ts +1 -1
  174. package/dist/cli/tools/sdk/index.js +18 -18
  175. package/dist/cli-commands/bin/index.js +7 -7
  176. package/dist/client-logger/index.js +3 -1
  177. package/dist/common/index.d.ts +5 -4
  178. package/dist/common/index.js +35 -37
  179. package/dist/components/index.d.ts +14 -231
  180. package/dist/components/index.js +2514 -8361
  181. package/dist/core-events/index.d.ts +3 -2
  182. package/dist/core-events/index.js +3 -1
  183. package/dist/core-server/index.d.ts +2 -2
  184. package/dist/core-server/index.js +450 -147
  185. package/dist/core-server/presets/common-manager.js +60 -864
  186. package/dist/core-server/presets/common-override-preset.js +12 -10
  187. package/dist/core-server/presets/common-preset.js +39 -40
  188. package/dist/create/bin/index.js +7 -7
  189. package/dist/create/index.js +15 -15
  190. package/dist/csf/index.d.ts +1 -1
  191. package/dist/csf/index.js +27 -93
  192. package/dist/csf-tools/index.d.ts +2 -12
  193. package/dist/csf-tools/index.js +14 -14
  194. package/dist/instrumenter/index.js +3 -1
  195. package/dist/manager/_manager-chunks/{globals-runtime-Cr3nYYcT.js → globals-runtime-B-IeQLQu.js} +57 -58
  196. package/dist/manager/_manager-chunks/{globals-runtime-zVfMhZAt.js → globals-runtime-B5-0Ccbv.js} +1 -1
  197. package/dist/manager/_manager-chunks/{globals-runtime-DqNrRmOM.js → globals-runtime-B71TiXST.js} +93 -2146
  198. package/dist/manager/_manager-chunks/{globals-runtime-BgVwdR45.js → globals-runtime-BUP5e_t9.js} +1 -1
  199. package/dist/manager/_manager-chunks/{globals-runtime-Bke4A4DG.js → globals-runtime-C7mqoHpE.js} +1 -1
  200. package/dist/manager/_manager-chunks/{globals-runtime-DCOX9nD5.js → globals-runtime-CBviMKtt.js} +1 -17
  201. package/dist/manager/_manager-chunks/{globals-runtime-ALpzCL93.js → globals-runtime-CYNosEiD.js} +1 -2
  202. package/dist/manager/_manager-chunks/{globals-runtime-BcNHymiF.js → globals-runtime-C_evJrEn.js} +1 -1
  203. package/dist/manager/_manager-chunks/{globals-runtime-DW1HVuLt.js → globals-runtime-CdgVeAbk.js} +408 -377
  204. package/dist/manager/_manager-chunks/{globals-runtime-CTB3rhS1.js → globals-runtime-Cqn8KdSZ.js} +4 -4
  205. package/dist/manager/_manager-chunks/{globals-runtime-D_YKR9nf.js → globals-runtime-CrIF09P8.js} +1246 -539
  206. package/dist/manager/_manager-chunks/{globals-runtime-m07udJ_K.js → globals-runtime-Ct1kY4wb.js} +637 -1730
  207. package/dist/manager/_manager-chunks/globals-runtime-CvyFEPIY.js +5282 -0
  208. package/dist/manager/_manager-chunks/{globals-runtime-CF4o9_wT.js → globals-runtime-DMBjo1QS.js} +2 -1
  209. package/dist/manager/_manager-chunks/{globals-runtime-CXKb33hg.js → globals-runtime-DUK6bGcb.js} +51 -24
  210. package/dist/manager/_manager-chunks/{globals-runtime-CUBVmgcG.js → globals-runtime-DedfO-DP.js} +4 -4
  211. package/dist/manager/_manager-chunks/{globals-runtime-DMvB3-IM.js → globals-runtime-DqhIYwLp.js} +148 -136
  212. package/dist/manager/_manager-chunks/{globals-runtime-CiLcg4q9.js → globals-runtime-XSxCU7PR.js} +1 -1
  213. package/dist/manager/_manager-chunks/{runtime-DFhLVh8q.js → runtime-BR5z0WoJ.js} +2 -2
  214. package/dist/manager/_manager-chunks/{runtime-Bldwclun.js → runtime-BgYvp1WN.js} +15 -7
  215. package/dist/manager/_manager-chunks/{runtime-DrjpEyLM.js → runtime-CHI-LHF1.js} +3 -3
  216. package/dist/manager/_manager-chunks/{runtime-Cmu7D8A0.js → runtime-CUymj6EY.js} +176 -159
  217. package/dist/manager/_manager-chunks/runtime-CaU1DSEZ.js +528 -0
  218. package/dist/manager/_manager-chunks/{runtime-DMig8mT7.js → runtime-CqItbdKW.js} +3 -2
  219. package/dist/manager/_manager-chunks/{runtime-a5zd7km2.js → runtime-D4ZOOIV0.js} +5 -531
  220. package/dist/manager/_manager-chunks/{runtime-DGHNKNQl.js → runtime-DER98nV0.js} +3 -19
  221. package/dist/manager/_manager-chunks/{runtime-Cdz2BHhM.js → runtime-DrTLBe7a.js} +29 -30
  222. package/dist/manager/_manager-chunks/{runtime-B-eSQdxk.js → runtime-MAf7Wpk5.js} +3 -2
  223. package/dist/manager/_manager-chunks/{runtime-CuJiHYCp.js → runtime-cVFIMcca.js} +1 -1
  224. package/dist/manager/globals-runtime.js +1 -1
  225. package/dist/manager/runtime.js +1 -1
  226. package/dist/manager-api/index.d.ts +1 -1
  227. package/dist/manager-api/index.js +20 -26
  228. package/dist/manager-errors.d.ts +1 -1
  229. package/dist/mcp/index.js +8 -8
  230. package/dist/mocking-utils/index.js +16 -11
  231. package/dist/nextjs-vite/index.js +3 -2
  232. package/dist/nextjs-vite/node/index.js +7 -7
  233. package/dist/nextjs-vite/preset.js +11 -11
  234. package/dist/nextjs-vite/vite-plugin/index.js +7 -7
  235. package/dist/nextjs-vite-plugin/index.d.ts +1 -2
  236. package/dist/nextjs-vite-plugin/index.js +12 -27
  237. package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
  238. package/dist/node-logger/index.d.ts +65 -72
  239. package/dist/node-logger/index.js +11 -12
  240. package/dist/oxc-parser/index.js +11 -13
  241. package/dist/oxc-parser/worker.js +10 -10
  242. package/dist/preview/_chunks/{runtime-DVM_AHbR.js → runtime-6P-h06Te.js} +51 -50
  243. package/dist/preview/_chunks/{runtime-BoxmlDdB.js → runtime-B9KKIDGa.js} +202 -81
  244. package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-BPwAnlRx.js} +482 -334
  245. package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-BUnOhg9h.js} +2 -2
  246. package/dist/preview/_chunks/runtime-Bcv1hJky.js +6305 -0
  247. package/dist/preview/_chunks/{runtime-CqHxptiK.js → runtime-C1jgT6tJ.js} +93 -2145
  248. package/dist/preview/_chunks/{runtime-D7B4bVe_.js → runtime-C8QFpkFV.js} +6 -6
  249. package/dist/preview/_chunks/{runtime-CijtAN7R.js → runtime-DdqR8Fd0.js} +15 -6
  250. package/dist/preview/_chunks/{runtime-B3y8ocOg.js → runtime-DvBfMhis.js} +2 -2
  251. package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-WapFVPAh.js} +29 -29
  252. package/dist/preview/runtime.js +1 -1
  253. package/dist/preview-api/index.d.ts +1 -1
  254. package/dist/preview-api/index.js +2 -1
  255. package/dist/preview-errors.d.ts +1 -1
  256. package/dist/react/docgen/docgen-worker.js +11 -12
  257. package/dist/react/entry-preview.js +2 -1
  258. package/dist/react/index.js +6 -4
  259. package/dist/react/preset.js +13 -14
  260. package/dist/react/preview.js +3 -2
  261. package/dist/react-native/bin/get-stories.js +8 -8
  262. package/dist/react-native/index.js +25 -211
  263. package/dist/react-native/metro/node.js +10 -9
  264. package/dist/react-native/metro/withStorybook.js +11 -10
  265. package/dist/react-native/scripts/generate.js +8 -8
  266. package/dist/react-vite/node/index.js +7 -7
  267. package/dist/react-vite/preset.js +7 -7
  268. package/dist/router/index.js +3 -1
  269. package/dist/server-errors.d.ts +1 -1
  270. package/dist/server-errors.js +9 -9
  271. package/dist/shared/open-service/index.d.ts +1 -1
  272. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
  273. package/dist/telemetry/index.js +43 -45
  274. package/dist/test/index.js +808 -573
  275. package/dist/theming/create.js +2 -1
  276. package/dist/theming/index.js +22 -1
  277. package/dist/types/index.d.ts +1 -1
  278. package/package.json +16 -44
  279. package/dist/_browser-chunks/WithTooltip-V55S6YCY.js +0 -1619
  280. package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
  281. package/dist/_browser-chunks/chunk-UDQ3XQFC.js +0 -108
  282. package/dist/_node-chunks/chunk-BRD332PB.js +0 -3008
  283. package/dist/_node-chunks/chunk-E2XKJLXK.js +0 -4731
  284. package/dist/_node-chunks/chunk-F2LQJXAB.js +0 -29
  285. package/dist/_node-chunks/chunk-MMFUHYSU.js +0 -23
  286. package/dist/_node-chunks/chunk-UGFY5LEG.js +0 -18
  287. package/dist/_node-chunks/chunk-UO5ZOCSQ.js +0 -662
  288. package/dist/_node-chunks/chunk-VMUXW2E2.js +0 -5414
  289. package/dist/_node-chunks/chunk-VNXE7UJL.js +0 -51
  290. package/dist/_node-chunks/chunk-VRJJ43P2.js +0 -11
  291. package/dist/_node-chunks/chunk-WCJUS7OC.js +0 -1877
  292. package/dist/_node-chunks/chunk-WMBMSNB7.js +0 -36
  293. package/dist/_node-chunks/chunk-YV2QBXU6.js +0 -3823
  294. package/dist/_node-chunks/dist-VFUGPNLK.js +0 -16
  295. package/dist/_node-chunks/globby-N7LO32D3.js +0 -2884
  296. package/dist/_node-chunks/jiti-SJDZ7LQB.js +0 -3848
  297. package/dist/_node-chunks/lib-4HD6QL5R.js +0 -366
  298. package/dist/_node-chunks/optimized-tests-LVKXZ3HQ.js +0 -22
  299. package/dist/_node-chunks/postinstallAddon-I6MAL6PW.js +0 -20
  300. package/dist/_node-chunks/session-id-6Z2RXBTG.js +0 -23
  301. package/dist/chunk-BfBzpgct.d.ts +0 -916
  302. package/dist/core-server/presets/common-manager.css +0 -170
  303. package/dist/manager/_manager-chunks/globals-runtime-Bon7UvQk.js +0 -9766
  304. package/dist/manager/_manager-chunks/globals-runtime-DDOIxI_l.js +0 -1584
  305. package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
  306. package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
@@ -1,17 +1,263 @@
1
- import CJS_COMPAT_NODE_URL_1qqypd7gt14 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1qqypd7gt14 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1qqypd7gt14 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_7qov04rgzsv from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_7qov04rgzsv from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_7qov04rgzsv from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1qqypd7gt14.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1qqypd7gt14.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1qqypd7gt14.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_7qov04rgzsv.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_7qov04rgzsv.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
- __commonJS
14
- } from "./chunk-TZ2TZW2K.js";
13
+ __commonJS,
14
+ __require
15
+ } from "./chunk-A35J7YYA.js";
16
+
17
+ // ../../node_modules/tsconfig-paths/lib/filesystem.js
18
+ var require_filesystem = __commonJS({
19
+ "../../node_modules/tsconfig-paths/lib/filesystem.js"(exports) {
20
+ "use strict";
21
+ Object.defineProperty(exports, "__esModule", { value: !0 });
22
+ exports.removeExtension = exports.fileExistsAsync = exports.readJsonFromDiskAsync = exports.readJsonFromDiskSync = exports.fileExistsSync = void 0;
23
+ var fs = __require("fs");
24
+ function fileExistsSync(path) {
25
+ if (!fs.existsSync(path))
26
+ return !1;
27
+ try {
28
+ var stats = fs.statSync(path);
29
+ return stats.isFile();
30
+ } catch {
31
+ return !1;
32
+ }
33
+ }
34
+ exports.fileExistsSync = fileExistsSync;
35
+ function readJsonFromDiskSync(packageJsonPath) {
36
+ if (fs.existsSync(packageJsonPath))
37
+ return __require(packageJsonPath);
38
+ }
39
+ exports.readJsonFromDiskSync = readJsonFromDiskSync;
40
+ function readJsonFromDiskAsync(path, callback) {
41
+ fs.readFile(path, "utf8", function(err, result) {
42
+ if (err || !result)
43
+ return callback();
44
+ var json = JSON.parse(result);
45
+ return callback(void 0, json);
46
+ });
47
+ }
48
+ exports.readJsonFromDiskAsync = readJsonFromDiskAsync;
49
+ function fileExistsAsync(path2, callback2) {
50
+ fs.stat(path2, function(err, stats) {
51
+ if (err)
52
+ return callback2(void 0, !1);
53
+ callback2(void 0, stats ? stats.isFile() : !1);
54
+ });
55
+ }
56
+ exports.fileExistsAsync = fileExistsAsync;
57
+ function removeExtension(path) {
58
+ return path.substring(0, path.lastIndexOf(".")) || path;
59
+ }
60
+ exports.removeExtension = removeExtension;
61
+ }
62
+ });
63
+
64
+ // ../../node_modules/tsconfig-paths/lib/mapping-entry.js
65
+ var require_mapping_entry = __commonJS({
66
+ "../../node_modules/tsconfig-paths/lib/mapping-entry.js"(exports) {
67
+ "use strict";
68
+ Object.defineProperty(exports, "__esModule", { value: !0 });
69
+ exports.getAbsoluteMappingEntries = void 0;
70
+ var path = __require("path");
71
+ function getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll) {
72
+ for (var sortedKeys = sortByLongestPrefix(Object.keys(paths)), absolutePaths = [], _i = 0, sortedKeys_1 = sortedKeys; _i < sortedKeys_1.length; _i++) {
73
+ var key = sortedKeys_1[_i];
74
+ absolutePaths.push({
75
+ pattern: key,
76
+ paths: paths[key].map(function(pathToResolve) {
77
+ return path.resolve(absoluteBaseUrl, pathToResolve);
78
+ })
79
+ });
80
+ }
81
+ return !paths["*"] && addMatchAll && absolutePaths.push({
82
+ pattern: "*",
83
+ paths: ["".concat(absoluteBaseUrl.replace(/\/$/, ""), "/*")]
84
+ }), absolutePaths;
85
+ }
86
+ exports.getAbsoluteMappingEntries = getAbsoluteMappingEntries;
87
+ function sortByLongestPrefix(arr) {
88
+ return arr.concat().sort(function(a, b) {
89
+ return getPrefixLength(b) - getPrefixLength(a);
90
+ });
91
+ }
92
+ function getPrefixLength(pattern) {
93
+ var prefixLength = pattern.indexOf("*");
94
+ return pattern.substr(0, prefixLength).length;
95
+ }
96
+ }
97
+ });
98
+
99
+ // ../../node_modules/tsconfig-paths/lib/try-path.js
100
+ var require_try_path = __commonJS({
101
+ "../../node_modules/tsconfig-paths/lib/try-path.js"(exports) {
102
+ "use strict";
103
+ Object.defineProperty(exports, "__esModule", { value: !0 });
104
+ exports.exhaustiveTypeException = exports.getStrippedPath = exports.getPathsToTry = void 0;
105
+ var path = __require("path"), path_1 = __require("path"), filesystem_1 = require_filesystem();
106
+ function getPathsToTry(extensions, absolutePathMappings, requestedModule) {
107
+ if (!(!absolutePathMappings || !requestedModule || requestedModule[0] === ".")) {
108
+ for (var pathsToTry = [], _i = 0, absolutePathMappings_1 = absolutePathMappings; _i < absolutePathMappings_1.length; _i++) {
109
+ var entry = absolutePathMappings_1[_i], starMatch = entry.pattern === requestedModule ? "" : matchStar(entry.pattern, requestedModule);
110
+ if (starMatch !== void 0)
111
+ for (var _loop_1 = function(physicalPathPattern2) {
112
+ var physicalPath = physicalPathPattern2.replace("*", starMatch);
113
+ pathsToTry.push({ type: "file", path: physicalPath }), pathsToTry.push.apply(pathsToTry, extensions.map(function(e) {
114
+ return { type: "extension", path: physicalPath + e };
115
+ })), pathsToTry.push({
116
+ type: "package",
117
+ path: path.join(physicalPath, "/package.json")
118
+ });
119
+ var indexPath = path.join(physicalPath, "/index");
120
+ pathsToTry.push.apply(pathsToTry, extensions.map(function(e) {
121
+ return { type: "index", path: indexPath + e };
122
+ }));
123
+ }, _a = 0, _b = entry.paths; _a < _b.length; _a++) {
124
+ var physicalPathPattern = _b[_a];
125
+ _loop_1(physicalPathPattern);
126
+ }
127
+ }
128
+ return pathsToTry.length === 0 ? void 0 : pathsToTry;
129
+ }
130
+ }
131
+ exports.getPathsToTry = getPathsToTry;
132
+ function getStrippedPath(tryPath) {
133
+ return tryPath.type === "index" ? (0, path_1.dirname)(tryPath.path) : tryPath.type === "file" ? tryPath.path : tryPath.type === "extension" ? (0, filesystem_1.removeExtension)(tryPath.path) : tryPath.type === "package" ? tryPath.path : exhaustiveTypeException(tryPath.type);
134
+ }
135
+ exports.getStrippedPath = getStrippedPath;
136
+ function exhaustiveTypeException(check) {
137
+ throw new Error("Unknown type ".concat(check));
138
+ }
139
+ exports.exhaustiveTypeException = exhaustiveTypeException;
140
+ function matchStar(pattern, search) {
141
+ if (!(search.length < pattern.length)) {
142
+ if (pattern === "*")
143
+ return search;
144
+ var star = pattern.indexOf("*");
145
+ if (star !== -1) {
146
+ var part1 = pattern.substring(0, star), part2 = pattern.substring(star + 1);
147
+ if (search.substr(0, star) === part1 && search.substr(search.length - part2.length) === part2)
148
+ return search.substr(star, search.length - part2.length);
149
+ }
150
+ }
151
+ }
152
+ }
153
+ });
154
+
155
+ // ../../node_modules/tsconfig-paths/lib/match-path-sync.js
156
+ var require_match_path_sync = __commonJS({
157
+ "../../node_modules/tsconfig-paths/lib/match-path-sync.js"(exports) {
158
+ "use strict";
159
+ Object.defineProperty(exports, "__esModule", { value: !0 });
160
+ exports.matchFromAbsolutePaths = exports.createMatchPath = void 0;
161
+ var path = __require("path"), Filesystem = require_filesystem(), MappingEntry = require_mapping_entry(), TryPath = require_try_path();
162
+ function createMatchPath(absoluteBaseUrl, paths, mainFields, addMatchAll) {
163
+ mainFields === void 0 && (mainFields = ["main"]), addMatchAll === void 0 && (addMatchAll = !0);
164
+ var absolutePaths = MappingEntry.getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll);
165
+ return function(requestedModule, readJson, fileExists, extensions) {
166
+ return matchFromAbsolutePaths(absolutePaths, requestedModule, readJson, fileExists, extensions, mainFields);
167
+ };
168
+ }
169
+ exports.createMatchPath = createMatchPath;
170
+ function matchFromAbsolutePaths(absolutePathMappings, requestedModule, readJson, fileExists, extensions, mainFields) {
171
+ readJson === void 0 && (readJson = Filesystem.readJsonFromDiskSync), fileExists === void 0 && (fileExists = Filesystem.fileExistsSync), extensions === void 0 && (extensions = Object.keys(__require.extensions)), mainFields === void 0 && (mainFields = ["main"]);
172
+ var tryPaths = TryPath.getPathsToTry(extensions, absolutePathMappings, requestedModule);
173
+ if (tryPaths)
174
+ return findFirstExistingPath(tryPaths, readJson, fileExists, mainFields);
175
+ }
176
+ exports.matchFromAbsolutePaths = matchFromAbsolutePaths;
177
+ function findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExists) {
178
+ for (var index = 0; index < mainFields.length; index++) {
179
+ var mainFieldSelector = mainFields[index], candidateMapping = typeof mainFieldSelector == "string" ? packageJson[mainFieldSelector] : mainFieldSelector.reduce(function(obj, key) {
180
+ return obj[key];
181
+ }, packageJson);
182
+ if (candidateMapping && typeof candidateMapping == "string") {
183
+ var candidateFilePath = path.join(path.dirname(packageJsonPath), candidateMapping);
184
+ if (fileExists(candidateFilePath))
185
+ return candidateFilePath;
186
+ }
187
+ }
188
+ }
189
+ function findFirstExistingPath(tryPaths, readJson, fileExists, mainFields) {
190
+ readJson === void 0 && (readJson = Filesystem.readJsonFromDiskSync), mainFields === void 0 && (mainFields = ["main"]);
191
+ for (var _i = 0, tryPaths_1 = tryPaths; _i < tryPaths_1.length; _i++) {
192
+ var tryPath = tryPaths_1[_i];
193
+ if (tryPath.type === "file" || tryPath.type === "extension" || tryPath.type === "index") {
194
+ if (fileExists(tryPath.path))
195
+ return TryPath.getStrippedPath(tryPath);
196
+ } else if (tryPath.type === "package") {
197
+ var packageJson = readJson(tryPath.path);
198
+ if (packageJson) {
199
+ var mainFieldMappedFile = findFirstExistingMainFieldMappedFile(packageJson, mainFields, tryPath.path, fileExists);
200
+ if (mainFieldMappedFile)
201
+ return mainFieldMappedFile;
202
+ }
203
+ } else
204
+ TryPath.exhaustiveTypeException(tryPath.type);
205
+ }
206
+ }
207
+ }
208
+ });
209
+
210
+ // ../../node_modules/tsconfig-paths/lib/match-path-async.js
211
+ var require_match_path_async = __commonJS({
212
+ "../../node_modules/tsconfig-paths/lib/match-path-async.js"(exports) {
213
+ "use strict";
214
+ Object.defineProperty(exports, "__esModule", { value: !0 });
215
+ exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = void 0;
216
+ var path = __require("path"), TryPath = require_try_path(), MappingEntry = require_mapping_entry(), Filesystem = require_filesystem();
217
+ function createMatchPathAsync(absoluteBaseUrl, paths, mainFields, addMatchAll) {
218
+ mainFields === void 0 && (mainFields = ["main"]), addMatchAll === void 0 && (addMatchAll = !0);
219
+ var absolutePaths = MappingEntry.getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll);
220
+ return function(requestedModule, readJson, fileExists, extensions, callback) {
221
+ return matchFromAbsolutePathsAsync(absolutePaths, requestedModule, readJson, fileExists, extensions, callback, mainFields);
222
+ };
223
+ }
224
+ exports.createMatchPathAsync = createMatchPathAsync;
225
+ function matchFromAbsolutePathsAsync(absolutePathMappings, requestedModule, readJson, fileExists, extensions, callback, mainFields) {
226
+ readJson === void 0 && (readJson = Filesystem.readJsonFromDiskAsync), fileExists === void 0 && (fileExists = Filesystem.fileExistsAsync), extensions === void 0 && (extensions = Object.keys(__require.extensions)), mainFields === void 0 && (mainFields = ["main"]);
227
+ var tryPaths = TryPath.getPathsToTry(extensions, absolutePathMappings, requestedModule);
228
+ if (!tryPaths)
229
+ return callback();
230
+ findFirstExistingPath(tryPaths, readJson, fileExists, callback, 0, mainFields);
231
+ }
232
+ exports.matchFromAbsolutePathsAsync = matchFromAbsolutePathsAsync;
233
+ function findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExistsAsync, doneCallback, index) {
234
+ if (index === void 0 && (index = 0), index >= mainFields.length)
235
+ return doneCallback(void 0, void 0);
236
+ var tryNext = function() {
237
+ return findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExistsAsync, doneCallback, index + 1);
238
+ }, mainFieldSelector = mainFields[index], mainFieldMapping = typeof mainFieldSelector == "string" ? packageJson[mainFieldSelector] : mainFieldSelector.reduce(function(obj, key) {
239
+ return obj[key];
240
+ }, packageJson);
241
+ if (typeof mainFieldMapping != "string")
242
+ return tryNext();
243
+ var mappedFilePath = path.join(path.dirname(packageJsonPath), mainFieldMapping);
244
+ fileExistsAsync(mappedFilePath, function(err, exists) {
245
+ return err ? doneCallback(err) : exists ? doneCallback(void 0, mappedFilePath) : tryNext();
246
+ });
247
+ }
248
+ function findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index, mainFields) {
249
+ index === void 0 && (index = 0), mainFields === void 0 && (mainFields = ["main"]);
250
+ var tryPath = tryPaths[index];
251
+ tryPath.type === "file" || tryPath.type === "extension" || tryPath.type === "index" ? fileExists(tryPath.path, function(err, exists) {
252
+ return err ? doneCallback(err) : exists ? doneCallback(void 0, TryPath.getStrippedPath(tryPath)) : index === tryPaths.length - 1 ? doneCallback() : findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields);
253
+ }) : tryPath.type === "package" ? readJson(tryPath.path, function(err, packageJson) {
254
+ return err ? doneCallback(err) : packageJson ? findFirstExistingMainFieldMappedFile(packageJson, mainFields, tryPath.path, fileExists, function(mainFieldErr, mainFieldMappedFile) {
255
+ return mainFieldErr ? doneCallback(mainFieldErr) : mainFieldMappedFile ? doneCallback(void 0, mainFieldMappedFile) : findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields);
256
+ }) : findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields);
257
+ }) : TryPath.exhaustiveTypeException(tryPath.type);
258
+ }
259
+ }
260
+ });
15
261
 
16
262
  // ../../node_modules/json5/lib/unicode.js
17
263
  var require_unicode = __commonJS({
@@ -879,6 +1125,401 @@ var require_lib = __commonJS({
879
1125
  }
880
1126
  });
881
1127
 
1128
+ // ../../node_modules/strip-bom/index.js
1129
+ var require_strip_bom = __commonJS({
1130
+ "../../node_modules/strip-bom/index.js"(exports, module) {
1131
+ "use strict";
1132
+ module.exports = (x) => {
1133
+ if (typeof x != "string")
1134
+ throw new TypeError("Expected a string, got " + typeof x);
1135
+ return x.charCodeAt(0) === 65279 ? x.slice(1) : x;
1136
+ };
1137
+ }
1138
+ });
1139
+
1140
+ // ../../node_modules/tsconfig-paths/lib/tsconfig-loader.js
1141
+ var require_tsconfig_loader = __commonJS({
1142
+ "../../node_modules/tsconfig-paths/lib/tsconfig-loader.js"(exports) {
1143
+ "use strict";
1144
+ var __assign = exports && exports.__assign || function() {
1145
+ return __assign = Object.assign || function(t) {
1146
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
1147
+ s = arguments[i];
1148
+ for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && (t[p] = s[p]);
1149
+ }
1150
+ return t;
1151
+ }, __assign.apply(this, arguments);
1152
+ };
1153
+ Object.defineProperty(exports, "__esModule", { value: !0 });
1154
+ exports.loadTsconfig = exports.walkForTsConfig = exports.tsConfigLoader = void 0;
1155
+ var path = __require("path"), fs = __require("fs"), JSON5 = require_lib(), StripBom = require_strip_bom();
1156
+ function tsConfigLoader(_a) {
1157
+ var getEnv = _a.getEnv, cwd = _a.cwd, _b = _a.loadSync, loadSync = _b === void 0 ? loadSyncDefault : _b, TS_NODE_PROJECT = getEnv("TS_NODE_PROJECT"), TS_NODE_BASEURL = getEnv("TS_NODE_BASEURL"), loadResult = loadSync(cwd, TS_NODE_PROJECT, TS_NODE_BASEURL);
1158
+ return loadResult;
1159
+ }
1160
+ exports.tsConfigLoader = tsConfigLoader;
1161
+ function loadSyncDefault(cwd, filename, baseUrl) {
1162
+ var configPath = resolveConfigPath(cwd, filename);
1163
+ if (!configPath)
1164
+ return {
1165
+ tsConfigPath: void 0,
1166
+ baseUrl: void 0,
1167
+ paths: void 0
1168
+ };
1169
+ var config = loadTsconfig(configPath);
1170
+ return {
1171
+ tsConfigPath: configPath,
1172
+ baseUrl: baseUrl || config && config.compilerOptions && config.compilerOptions.baseUrl,
1173
+ paths: config && config.compilerOptions && config.compilerOptions.paths
1174
+ };
1175
+ }
1176
+ function resolveConfigPath(cwd, filename) {
1177
+ if (filename) {
1178
+ var absolutePath = fs.lstatSync(filename).isDirectory() ? path.resolve(filename, "./tsconfig.json") : path.resolve(cwd, filename);
1179
+ return absolutePath;
1180
+ }
1181
+ if (fs.statSync(cwd).isFile())
1182
+ return path.resolve(cwd);
1183
+ var configAbsolutePath = walkForTsConfig(cwd);
1184
+ return configAbsolutePath ? path.resolve(configAbsolutePath) : void 0;
1185
+ }
1186
+ function walkForTsConfig(directory, readdirSync) {
1187
+ readdirSync === void 0 && (readdirSync = fs.readdirSync);
1188
+ for (var files = readdirSync(directory), filesToCheck = ["tsconfig.json", "jsconfig.json"], _i = 0, filesToCheck_1 = filesToCheck; _i < filesToCheck_1.length; _i++) {
1189
+ var fileToCheck = filesToCheck_1[_i];
1190
+ if (files.indexOf(fileToCheck) !== -1)
1191
+ return path.join(directory, fileToCheck);
1192
+ }
1193
+ var parentDirectory = path.dirname(directory);
1194
+ if (directory !== parentDirectory)
1195
+ return walkForTsConfig(parentDirectory, readdirSync);
1196
+ }
1197
+ exports.walkForTsConfig = walkForTsConfig;
1198
+ function loadTsconfig(configFilePath, existsSync, readFileSync) {
1199
+ if (existsSync === void 0 && (existsSync = fs.existsSync), readFileSync === void 0 && (readFileSync = function(filename) {
1200
+ return fs.readFileSync(filename, "utf8");
1201
+ }), !!existsSync(configFilePath)) {
1202
+ var configString = readFileSync(configFilePath), cleanedJson = StripBom(configString), config;
1203
+ try {
1204
+ config = JSON5.parse(cleanedJson);
1205
+ } catch (e) {
1206
+ throw new Error("".concat(configFilePath, " is malformed ").concat(e.message));
1207
+ }
1208
+ var extendedConfig = config.extends;
1209
+ if (extendedConfig) {
1210
+ var base = void 0;
1211
+ return Array.isArray(extendedConfig) ? base = extendedConfig.reduce(function(currBase, extendedConfigElement) {
1212
+ return mergeTsconfigs(currBase, loadTsconfigFromExtends(configFilePath, extendedConfigElement, existsSync, readFileSync));
1213
+ }, {}) : base = loadTsconfigFromExtends(configFilePath, extendedConfig, existsSync, readFileSync), mergeTsconfigs(base, config);
1214
+ }
1215
+ return config;
1216
+ }
1217
+ }
1218
+ exports.loadTsconfig = loadTsconfig;
1219
+ function loadTsconfigFromExtends(configFilePath, extendedConfigValue, existsSync, readFileSync) {
1220
+ var _a;
1221
+ typeof extendedConfigValue == "string" && extendedConfigValue.indexOf(".json") === -1 && (extendedConfigValue += ".json");
1222
+ var currentDir = path.dirname(configFilePath), extendedConfigPath = path.join(currentDir, extendedConfigValue);
1223
+ extendedConfigValue.indexOf("/") !== -1 && extendedConfigValue.indexOf(".") !== -1 && !existsSync(extendedConfigPath) && (extendedConfigPath = path.join(currentDir, "node_modules", extendedConfigValue));
1224
+ var config = loadTsconfig(extendedConfigPath, existsSync, readFileSync) || {};
1225
+ if (!((_a = config.compilerOptions) === null || _a === void 0) && _a.baseUrl) {
1226
+ var extendsDir = path.dirname(extendedConfigValue);
1227
+ config.compilerOptions.baseUrl = path.join(extendsDir, config.compilerOptions.baseUrl);
1228
+ }
1229
+ return config;
1230
+ }
1231
+ function mergeTsconfigs(base, config) {
1232
+ return base = base || {}, config = config || {}, __assign(__assign(__assign({}, base), config), { compilerOptions: __assign(__assign({}, base.compilerOptions), config.compilerOptions) });
1233
+ }
1234
+ }
1235
+ });
1236
+
1237
+ // ../../node_modules/tsconfig-paths/lib/config-loader.js
1238
+ var require_config_loader = __commonJS({
1239
+ "../../node_modules/tsconfig-paths/lib/config-loader.js"(exports) {
1240
+ "use strict";
1241
+ Object.defineProperty(exports, "__esModule", { value: !0 });
1242
+ exports.configLoader = exports.loadConfig = void 0;
1243
+ var TsConfigLoader2 = require_tsconfig_loader(), path = __require("path");
1244
+ function loadConfig(cwd) {
1245
+ return cwd === void 0 && (cwd = process.cwd()), configLoader({ cwd });
1246
+ }
1247
+ exports.loadConfig = loadConfig;
1248
+ function configLoader(_a) {
1249
+ var cwd = _a.cwd, explicitParams = _a.explicitParams, _b = _a.tsConfigLoader, tsConfigLoader = _b === void 0 ? TsConfigLoader2.tsConfigLoader : _b;
1250
+ if (explicitParams) {
1251
+ var absoluteBaseUrl = path.isAbsolute(explicitParams.baseUrl) ? explicitParams.baseUrl : path.join(cwd, explicitParams.baseUrl);
1252
+ return {
1253
+ resultType: "success",
1254
+ configFileAbsolutePath: "",
1255
+ baseUrl: explicitParams.baseUrl,
1256
+ absoluteBaseUrl,
1257
+ paths: explicitParams.paths,
1258
+ mainFields: explicitParams.mainFields,
1259
+ addMatchAll: explicitParams.addMatchAll
1260
+ };
1261
+ }
1262
+ var loadResult = tsConfigLoader({
1263
+ cwd,
1264
+ getEnv: function(key) {
1265
+ return process.env[key];
1266
+ }
1267
+ });
1268
+ return loadResult.tsConfigPath ? {
1269
+ resultType: "success",
1270
+ configFileAbsolutePath: loadResult.tsConfigPath,
1271
+ baseUrl: loadResult.baseUrl,
1272
+ absoluteBaseUrl: path.resolve(path.dirname(loadResult.tsConfigPath), loadResult.baseUrl || ""),
1273
+ paths: loadResult.paths || {},
1274
+ addMatchAll: loadResult.baseUrl !== void 0
1275
+ } : {
1276
+ resultType: "failed",
1277
+ message: "Couldn't find tsconfig.json"
1278
+ };
1279
+ }
1280
+ exports.configLoader = configLoader;
1281
+ }
1282
+ });
1283
+
1284
+ // ../../node_modules/minimist/index.js
1285
+ var require_minimist = __commonJS({
1286
+ "../../node_modules/minimist/index.js"(exports, module) {
1287
+ "use strict";
1288
+ function hasKey(obj, keys) {
1289
+ var o = obj;
1290
+ keys.slice(0, -1).forEach(function(key2) {
1291
+ o = o[key2] || {};
1292
+ });
1293
+ var key = keys[keys.length - 1];
1294
+ return key in o;
1295
+ }
1296
+ function isNumber(x) {
1297
+ return typeof x == "number" || /^0x[0-9a-f]+$/i.test(x) ? !0 : /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
1298
+ }
1299
+ function isConstructorOrProto(obj, key) {
1300
+ return key === "constructor" && typeof obj[key] == "function" || key === "__proto__";
1301
+ }
1302
+ module.exports = function(args, opts) {
1303
+ opts || (opts = {});
1304
+ var flags = {
1305
+ bools: {},
1306
+ strings: {},
1307
+ unknownFn: null
1308
+ };
1309
+ typeof opts.unknown == "function" && (flags.unknownFn = opts.unknown), typeof opts.boolean == "boolean" && opts.boolean ? flags.allBools = !0 : [].concat(opts.boolean).filter(Boolean).forEach(function(key2) {
1310
+ flags.bools[key2] = !0;
1311
+ });
1312
+ var aliases = {};
1313
+ function aliasIsBoolean(key2) {
1314
+ return aliases[key2].some(function(x) {
1315
+ return flags.bools[x];
1316
+ });
1317
+ }
1318
+ Object.keys(opts.alias || {}).forEach(function(key2) {
1319
+ aliases[key2] = [].concat(opts.alias[key2]), aliases[key2].forEach(function(x) {
1320
+ aliases[x] = [key2].concat(aliases[key2].filter(function(y) {
1321
+ return x !== y;
1322
+ }));
1323
+ });
1324
+ }), [].concat(opts.string).filter(Boolean).forEach(function(key2) {
1325
+ flags.strings[key2] = !0, aliases[key2] && [].concat(aliases[key2]).forEach(function(k) {
1326
+ flags.strings[k] = !0;
1327
+ });
1328
+ });
1329
+ var defaults = opts.default || {}, argv = { _: [] };
1330
+ function argDefined(key2, arg2) {
1331
+ return flags.allBools && /^--[^=]+$/.test(arg2) || flags.strings[key2] || flags.bools[key2] || aliases[key2];
1332
+ }
1333
+ function setKey(obj, keys, value2) {
1334
+ for (var o = obj, i2 = 0; i2 < keys.length - 1; i2++) {
1335
+ var key2 = keys[i2];
1336
+ if (isConstructorOrProto(o, key2))
1337
+ return;
1338
+ o[key2] === void 0 && (o[key2] = {}), (o[key2] === Object.prototype || o[key2] === Number.prototype || o[key2] === String.prototype) && (o[key2] = {}), o[key2] === Array.prototype && (o[key2] = []), o = o[key2];
1339
+ }
1340
+ var lastKey = keys[keys.length - 1];
1341
+ isConstructorOrProto(o, lastKey) || ((o === Object.prototype || o === Number.prototype || o === String.prototype) && (o = {}), o === Array.prototype && (o = []), o[lastKey] === void 0 || flags.bools[lastKey] || typeof o[lastKey] == "boolean" ? o[lastKey] = value2 : Array.isArray(o[lastKey]) ? o[lastKey].push(value2) : o[lastKey] = [o[lastKey], value2]);
1342
+ }
1343
+ function setArg(key2, val, arg2) {
1344
+ if (!(arg2 && flags.unknownFn && !argDefined(key2, arg2) && flags.unknownFn(arg2) === !1)) {
1345
+ var value2 = !flags.strings[key2] && isNumber(val) ? Number(val) : val;
1346
+ setKey(argv, key2.split("."), value2), (aliases[key2] || []).forEach(function(x) {
1347
+ setKey(argv, x.split("."), value2);
1348
+ });
1349
+ }
1350
+ }
1351
+ Object.keys(flags.bools).forEach(function(key2) {
1352
+ setArg(key2, defaults[key2] === void 0 ? !1 : defaults[key2]);
1353
+ });
1354
+ var notFlags = [];
1355
+ args.indexOf("--") !== -1 && (notFlags = args.slice(args.indexOf("--") + 1), args = args.slice(0, args.indexOf("--")));
1356
+ for (var i = 0; i < args.length; i++) {
1357
+ var arg = args[i], key, next;
1358
+ if (/^--.+=/.test(arg)) {
1359
+ var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
1360
+ key = m[1];
1361
+ var value = m[2];
1362
+ flags.bools[key] && (value = value !== "false"), setArg(key, value, arg);
1363
+ } else if (/^--no-.+/.test(arg))
1364
+ key = arg.match(/^--no-(.+)/)[1], setArg(key, !1, arg);
1365
+ else if (/^--.+/.test(arg))
1366
+ key = arg.match(/^--(.+)/)[1], next = args[i + 1], next !== void 0 && !/^(-|--)[^-]/.test(next) && !flags.bools[key] && !flags.allBools && (!aliases[key] || !aliasIsBoolean(key)) ? (setArg(key, next, arg), i += 1) : /^(true|false)$/.test(next) ? (setArg(key, next === "true", arg), i += 1) : setArg(key, flags.strings[key] ? "" : !0, arg);
1367
+ else if (/^-[^-]+/.test(arg)) {
1368
+ for (var letters = arg.slice(1, -1).split(""), broken = !1, j = 0; j < letters.length; j++) {
1369
+ if (next = arg.slice(j + 2), next === "-") {
1370
+ setArg(letters[j], next, arg);
1371
+ continue;
1372
+ }
1373
+ if (/[A-Za-z]/.test(letters[j]) && next[0] === "=") {
1374
+ setArg(letters[j], next.slice(1), arg), broken = !0;
1375
+ break;
1376
+ }
1377
+ if (/[A-Za-z]/.test(letters[j]) && /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) {
1378
+ setArg(letters[j], next, arg), broken = !0;
1379
+ break;
1380
+ }
1381
+ if (letters[j + 1] && letters[j + 1].match(/\W/)) {
1382
+ setArg(letters[j], arg.slice(j + 2), arg), broken = !0;
1383
+ break;
1384
+ } else
1385
+ setArg(letters[j], flags.strings[letters[j]] ? "" : !0, arg);
1386
+ }
1387
+ key = arg.slice(-1)[0], !broken && key !== "-" && (args[i + 1] && !/^(-|--)[^-]/.test(args[i + 1]) && !flags.bools[key] && (!aliases[key] || !aliasIsBoolean(key)) ? (setArg(key, args[i + 1], arg), i += 1) : args[i + 1] && /^(true|false)$/.test(args[i + 1]) ? (setArg(key, args[i + 1] === "true", arg), i += 1) : setArg(key, flags.strings[key] ? "" : !0, arg));
1388
+ } else if ((!flags.unknownFn || flags.unknownFn(arg) !== !1) && argv._.push(flags.strings._ || !isNumber(arg) ? arg : Number(arg)), opts.stopEarly) {
1389
+ argv._.push.apply(argv._, args.slice(i + 1));
1390
+ break;
1391
+ }
1392
+ }
1393
+ return Object.keys(defaults).forEach(function(k) {
1394
+ hasKey(argv, k.split(".")) || (setKey(argv, k.split("."), defaults[k]), (aliases[k] || []).forEach(function(x) {
1395
+ setKey(argv, x.split("."), defaults[k]);
1396
+ }));
1397
+ }), opts["--"] ? argv["--"] = notFlags.slice() : notFlags.forEach(function(k) {
1398
+ argv._.push(k);
1399
+ }), argv;
1400
+ };
1401
+ }
1402
+ });
1403
+
1404
+ // ../../node_modules/tsconfig-paths/lib/register.js
1405
+ var require_register = __commonJS({
1406
+ "../../node_modules/tsconfig-paths/lib/register.js"(exports) {
1407
+ "use strict";
1408
+ var __spreadArray = exports && exports.__spreadArray || function(to, from, pack) {
1409
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++)
1410
+ (ar || !(i in from)) && (ar || (ar = Array.prototype.slice.call(from, 0, i)), ar[i] = from[i]);
1411
+ return to.concat(ar || Array.prototype.slice.call(from));
1412
+ };
1413
+ Object.defineProperty(exports, "__esModule", { value: !0 });
1414
+ exports.register = void 0;
1415
+ var match_path_sync_1 = require_match_path_sync(), config_loader_1 = require_config_loader(), noOp = function() {
1416
+ };
1417
+ function getCoreModules(builtinModules) {
1418
+ builtinModules = builtinModules || [
1419
+ "assert",
1420
+ "buffer",
1421
+ "child_process",
1422
+ "cluster",
1423
+ "crypto",
1424
+ "dgram",
1425
+ "dns",
1426
+ "domain",
1427
+ "events",
1428
+ "fs",
1429
+ "http",
1430
+ "https",
1431
+ "net",
1432
+ "os",
1433
+ "path",
1434
+ "punycode",
1435
+ "querystring",
1436
+ "readline",
1437
+ "stream",
1438
+ "string_decoder",
1439
+ "tls",
1440
+ "tty",
1441
+ "url",
1442
+ "util",
1443
+ "v8",
1444
+ "vm",
1445
+ "zlib"
1446
+ ];
1447
+ for (var coreModules = {}, _i = 0, builtinModules_1 = builtinModules; _i < builtinModules_1.length; _i++) {
1448
+ var module_1 = builtinModules_1[_i];
1449
+ coreModules[module_1] = !0;
1450
+ }
1451
+ return coreModules;
1452
+ }
1453
+ function register(params) {
1454
+ var cwd, explicitParams;
1455
+ if (params)
1456
+ cwd = params.cwd, (params.baseUrl || params.paths) && (explicitParams = params);
1457
+ else {
1458
+ var minimist = require_minimist(), argv = minimist(process.argv.slice(2), {
1459
+ // eslint-disable-next-line id-denylist
1460
+ string: ["project"],
1461
+ alias: {
1462
+ project: ["P"]
1463
+ }
1464
+ });
1465
+ cwd = argv.project;
1466
+ }
1467
+ var configLoaderResult = (0, config_loader_1.configLoader)({
1468
+ cwd: cwd ?? process.cwd(),
1469
+ explicitParams
1470
+ });
1471
+ if (configLoaderResult.resultType === "failed")
1472
+ return console.warn("".concat(configLoaderResult.message, ". tsconfig-paths will be skipped")), noOp;
1473
+ var matchPath = (0, match_path_sync_1.createMatchPath)(configLoaderResult.absoluteBaseUrl, configLoaderResult.paths, configLoaderResult.mainFields, configLoaderResult.addMatchAll), Module = __require("module"), originalResolveFilename = Module._resolveFilename, coreModules = getCoreModules(Module.builtinModules);
1474
+ return Module._resolveFilename = function(request, _parent) {
1475
+ var isCoreModule = coreModules.hasOwnProperty(request);
1476
+ if (!isCoreModule) {
1477
+ var found = matchPath(request);
1478
+ if (found) {
1479
+ var modifiedArguments = __spreadArray([found], [].slice.call(arguments, 1), !0);
1480
+ return originalResolveFilename.apply(this, modifiedArguments);
1481
+ }
1482
+ }
1483
+ return originalResolveFilename.apply(this, arguments);
1484
+ }, function() {
1485
+ Module._resolveFilename = originalResolveFilename;
1486
+ };
1487
+ }
1488
+ exports.register = register;
1489
+ }
1490
+ });
1491
+
1492
+ // ../../node_modules/tsconfig-paths/lib/index.js
1493
+ var require_lib2 = __commonJS({
1494
+ "../../node_modules/tsconfig-paths/lib/index.js"(exports) {
1495
+ "use strict";
1496
+ Object.defineProperty(exports, "__esModule", { value: !0 });
1497
+ exports.loadConfig = exports.register = exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = exports.matchFromAbsolutePaths = exports.createMatchPath = void 0;
1498
+ var match_path_sync_1 = require_match_path_sync();
1499
+ Object.defineProperty(exports, "createMatchPath", { enumerable: !0, get: function() {
1500
+ return match_path_sync_1.createMatchPath;
1501
+ } });
1502
+ Object.defineProperty(exports, "matchFromAbsolutePaths", { enumerable: !0, get: function() {
1503
+ return match_path_sync_1.matchFromAbsolutePaths;
1504
+ } });
1505
+ var match_path_async_1 = require_match_path_async();
1506
+ Object.defineProperty(exports, "createMatchPathAsync", { enumerable: !0, get: function() {
1507
+ return match_path_async_1.createMatchPathAsync;
1508
+ } });
1509
+ Object.defineProperty(exports, "matchFromAbsolutePathsAsync", { enumerable: !0, get: function() {
1510
+ return match_path_async_1.matchFromAbsolutePathsAsync;
1511
+ } });
1512
+ var register_1 = require_register();
1513
+ Object.defineProperty(exports, "register", { enumerable: !0, get: function() {
1514
+ return register_1.register;
1515
+ } });
1516
+ var config_loader_1 = require_config_loader();
1517
+ Object.defineProperty(exports, "loadConfig", { enumerable: !0, get: function() {
1518
+ return config_loader_1.loadConfig;
1519
+ } });
1520
+ }
1521
+ });
1522
+
882
1523
  export {
883
- require_lib
1524
+ require_lib2 as require_lib
884
1525
  };