@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,6 +1,7 @@
1
- import { bs as SupportedFramework$1, ds as StorybookConfigRaw$1, xs as SupportedBuilder$1, ys as SupportedRenderer$1 } from "../chunk-DIz17UEJ.js";
2
- import { t as JsPackageManager$1 } from "../chunk-B2t1tGRh.js";
1
+ import { bs as SupportedFramework$1, ds as StorybookConfigRaw$1, xs as SupportedBuilder$1, ys as SupportedRenderer$1 } from "../chunk-CzmZhVrn.js";
2
+ import { t as JsPackageManager$1 } from "../chunk-CYuvV2sR.js";
3
3
  import { Feature, SupportedBuilder, SupportedFramework, SupportedLanguage, SupportedRenderer } from "@aussieljk/forkbook/internal/types";
4
+ import * as v from "valibot";
4
5
  import { JsPackageManager, PackageJson as PackageJson$1, PackageManagerName } from "@aussieljk/forkbook/internal/common";
5
6
  import { CsfValue } from "@aussieljk/forkbook/internal/csf-tools";
6
7
 
@@ -109,865 +110,11 @@ declare function configureEslintPlugin({
109
110
  }): Promise<void>;
110
111
  declare const suggestESLintPlugin: () => Promise<boolean>;
111
112
  //#endregion
112
- //#region ../../node_modules/zod/v3/helpers/typeAliases.d.cts
113
- type Primitive = string | number | symbol | bigint | boolean | null | undefined;
114
- //#endregion
115
- //#region ../../node_modules/zod/v3/helpers/util.d.cts
116
- declare namespace util {
117
- type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends (<V>() => V extends U ? 1 : 2) ? true : false;
118
- export type isAny<T> = 0 extends 1 & T ? true : false;
119
- export const assertEqual: <A, B>(_: AssertEqual<A, B>) => void;
120
- export function assertIs<T>(_arg: T): void;
121
- export function assertNever(_x: never): never;
122
- export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
123
- export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;
124
- export type MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
125
- export type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;
126
- export type InexactPartial<T> = { [k in keyof T]?: T[k] | undefined };
127
- export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k };
128
- export const getValidEnumValues: (obj: any) => any[];
129
- export const objectValues: (obj: any) => any[];
130
- export const objectKeys: ObjectConstructor["keys"];
131
- export const find: <T>(arr: T[], checker: (arg: T) => any) => T | undefined;
132
- export type identity<T> = objectUtil.identity<T>;
133
- export type flatten<T> = objectUtil.flatten<T>;
134
- export type noUndefined<T> = T extends undefined ? never : T;
135
- export const isInteger: NumberConstructor["isInteger"];
136
- export function joinValues<T extends any[]>(array: T, separator?: string): string;
137
- export const jsonStringifyReplacer: (_: string, value: any) => any;
138
- export {};
139
- }
140
- declare namespace objectUtil {
141
- export type MergeShapes<U, V> = keyof U & keyof V extends never ? U & V : { [k in Exclude<keyof U, keyof V>]: U[k] } & V;
142
- type optionalKeys<T extends object> = { [k in keyof T]: undefined extends T[k] ? k : never }[keyof T];
143
- type requiredKeys<T extends object> = { [k in keyof T]: undefined extends T[k] ? never : k }[keyof T];
144
- export type addQuestionMarks<T extends object, _O = any> = { [K in requiredKeys<T>]: T[K] } & { [K in optionalKeys<T>]?: T[K] } & { [k in keyof T]?: unknown };
145
- export type identity<T> = T;
146
- export type flatten<T> = identity<{ [k in keyof T]: T[k] }>;
147
- export type noNeverKeys<T> = { [k in keyof T]: [T[k]] extends [never] ? never : k }[keyof T];
148
- export type noNever<T> = identity<{ [k in noNeverKeys<T>]: k extends keyof T ? T[k] : never }>;
149
- export const mergeShapes: <U, T>(first: U, second: T) => T & U;
150
- export type extendShape<A extends object, B extends object> = keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K] } & { [K in keyof B]: B[K] };
151
- export {};
152
- }
153
- declare const ZodParsedType: {
154
- string: "string";
155
- nan: "nan";
156
- number: "number";
157
- integer: "integer";
158
- float: "float";
159
- boolean: "boolean";
160
- date: "date";
161
- bigint: "bigint";
162
- symbol: "symbol";
163
- function: "function";
164
- undefined: "undefined";
165
- null: "null";
166
- array: "array";
167
- object: "object";
168
- unknown: "unknown";
169
- promise: "promise";
170
- void: "void";
171
- never: "never";
172
- map: "map";
173
- set: "set";
174
- };
175
- type ZodParsedType = keyof typeof ZodParsedType;
176
- //#endregion
177
- //#region ../../node_modules/zod/v3/ZodError.d.cts
178
- type allKeys<T> = T extends any ? keyof T : never;
179
- type typeToFlattenedError<T, U = string> = {
180
- formErrors: U[];
181
- fieldErrors: { [P in allKeys<T>]?: U[] };
182
- };
183
- declare const ZodIssueCode: {
184
- invalid_type: "invalid_type";
185
- invalid_literal: "invalid_literal";
186
- custom: "custom";
187
- invalid_union: "invalid_union";
188
- invalid_union_discriminator: "invalid_union_discriminator";
189
- invalid_enum_value: "invalid_enum_value";
190
- unrecognized_keys: "unrecognized_keys";
191
- invalid_arguments: "invalid_arguments";
192
- invalid_return_type: "invalid_return_type";
193
- invalid_date: "invalid_date";
194
- invalid_string: "invalid_string";
195
- too_small: "too_small";
196
- too_big: "too_big";
197
- invalid_intersection_types: "invalid_intersection_types";
198
- not_multiple_of: "not_multiple_of";
199
- not_finite: "not_finite";
200
- };
201
- type ZodIssueCode = keyof typeof ZodIssueCode;
202
- type ZodIssueBase = {
203
- path: (string | number)[];
204
- message?: string | undefined;
205
- };
206
- interface ZodInvalidTypeIssue extends ZodIssueBase {
207
- code: typeof ZodIssueCode.invalid_type;
208
- expected: ZodParsedType;
209
- received: ZodParsedType;
210
- }
211
- interface ZodInvalidLiteralIssue extends ZodIssueBase {
212
- code: typeof ZodIssueCode.invalid_literal;
213
- expected: unknown;
214
- received: unknown;
215
- }
216
- interface ZodUnrecognizedKeysIssue extends ZodIssueBase {
217
- code: typeof ZodIssueCode.unrecognized_keys;
218
- keys: string[];
219
- }
220
- interface ZodInvalidUnionIssue extends ZodIssueBase {
221
- code: typeof ZodIssueCode.invalid_union;
222
- unionErrors: ZodError[];
223
- }
224
- interface ZodInvalidUnionDiscriminatorIssue extends ZodIssueBase {
225
- code: typeof ZodIssueCode.invalid_union_discriminator;
226
- options: Primitive[];
227
- }
228
- interface ZodInvalidEnumValueIssue extends ZodIssueBase {
229
- received: string | number;
230
- code: typeof ZodIssueCode.invalid_enum_value;
231
- options: (string | number)[];
232
- }
233
- interface ZodInvalidArgumentsIssue extends ZodIssueBase {
234
- code: typeof ZodIssueCode.invalid_arguments;
235
- argumentsError: ZodError;
236
- }
237
- interface ZodInvalidReturnTypeIssue extends ZodIssueBase {
238
- code: typeof ZodIssueCode.invalid_return_type;
239
- returnTypeError: ZodError;
240
- }
241
- interface ZodInvalidDateIssue extends ZodIssueBase {
242
- code: typeof ZodIssueCode.invalid_date;
243
- }
244
- type StringValidation = "email" | "url" | "emoji" | "uuid" | "nanoid" | "regex" | "cuid" | "cuid2" | "ulid" | "datetime" | "date" | "time" | "duration" | "ip" | "cidr" | "base64" | "jwt" | "base64url" | {
245
- includes: string;
246
- position?: number | undefined;
247
- } | {
248
- startsWith: string;
249
- } | {
250
- endsWith: string;
251
- };
252
- interface ZodInvalidStringIssue extends ZodIssueBase {
253
- code: typeof ZodIssueCode.invalid_string;
254
- validation: StringValidation;
255
- }
256
- interface ZodTooSmallIssue extends ZodIssueBase {
257
- code: typeof ZodIssueCode.too_small;
258
- minimum: number | bigint;
259
- inclusive: boolean;
260
- exact?: boolean;
261
- type: "array" | "string" | "number" | "set" | "date" | "bigint";
262
- }
263
- interface ZodTooBigIssue extends ZodIssueBase {
264
- code: typeof ZodIssueCode.too_big;
265
- maximum: number | bigint;
266
- inclusive: boolean;
267
- exact?: boolean;
268
- type: "array" | "string" | "number" | "set" | "date" | "bigint";
269
- }
270
- interface ZodInvalidIntersectionTypesIssue extends ZodIssueBase {
271
- code: typeof ZodIssueCode.invalid_intersection_types;
272
- }
273
- interface ZodNotMultipleOfIssue extends ZodIssueBase {
274
- code: typeof ZodIssueCode.not_multiple_of;
275
- multipleOf: number | bigint;
276
- }
277
- interface ZodNotFiniteIssue extends ZodIssueBase {
278
- code: typeof ZodIssueCode.not_finite;
279
- }
280
- interface ZodCustomIssue extends ZodIssueBase {
281
- code: typeof ZodIssueCode.custom;
282
- params?: {
283
- [k: string]: any;
284
- };
285
- }
286
- type ZodIssueOptionalMessage = ZodInvalidTypeIssue | ZodInvalidLiteralIssue | ZodUnrecognizedKeysIssue | ZodInvalidUnionIssue | ZodInvalidUnionDiscriminatorIssue | ZodInvalidEnumValueIssue | ZodInvalidArgumentsIssue | ZodInvalidReturnTypeIssue | ZodInvalidDateIssue | ZodInvalidStringIssue | ZodTooSmallIssue | ZodTooBigIssue | ZodInvalidIntersectionTypesIssue | ZodNotMultipleOfIssue | ZodNotFiniteIssue | ZodCustomIssue;
287
- type ZodIssue = ZodIssueOptionalMessage & {
288
- fatal?: boolean | undefined;
289
- message: string;
290
- };
291
- type recursiveZodFormattedError<T> = T extends [any, ...any[]] ? { [K in keyof T]?: ZodFormattedError<T[K]> } : T extends any[] ? {
292
- [k: number]: ZodFormattedError<T[number]>;
293
- } : T extends object ? { [K in keyof T]?: ZodFormattedError<T[K]> } : unknown;
294
- type ZodFormattedError<T, U = string> = {
295
- _errors: U[];
296
- } & recursiveZodFormattedError<NonNullable<T>>;
297
- declare class ZodError<T = any> extends Error {
298
- issues: ZodIssue[];
299
- get errors(): ZodIssue[];
300
- constructor(issues: ZodIssue[]);
301
- format(): ZodFormattedError<T>;
302
- format<U>(mapper: (issue: ZodIssue) => U): ZodFormattedError<T, U>;
303
- static create: (issues: ZodIssue[]) => ZodError<any>;
304
- static assert(value: unknown): asserts value is ZodError;
305
- toString(): string;
306
- get message(): string;
307
- get isEmpty(): boolean;
308
- addIssue: (sub: ZodIssue) => void;
309
- addIssues: (subs?: ZodIssue[]) => void;
310
- flatten(): typeToFlattenedError<T>;
311
- flatten<U>(mapper?: (issue: ZodIssue) => U): typeToFlattenedError<T, U>;
312
- get formErrors(): typeToFlattenedError<T, string>;
313
- }
314
- type stripPath<T extends object> = T extends any ? util.OmitKeys<T, "path"> : never;
315
- type IssueData = stripPath<ZodIssueOptionalMessage> & {
316
- path?: (string | number)[];
317
- fatal?: boolean | undefined;
318
- };
319
- type ErrorMapCtx = {
320
- defaultError: string;
321
- data: any;
322
- };
323
- type ZodErrorMap = (issue: ZodIssueOptionalMessage, _ctx: ErrorMapCtx) => {
324
- message: string;
325
- };
326
- //#endregion
327
- //#region ../../node_modules/zod/v3/helpers/parseUtil.d.cts
328
- type ParseParams = {
329
- path: (string | number)[];
330
- errorMap: ZodErrorMap;
331
- async: boolean;
332
- };
333
- type ParsePathComponent = string | number;
334
- type ParsePath = ParsePathComponent[];
335
- interface ParseContext {
336
- readonly common: {
337
- readonly issues: ZodIssue[];
338
- readonly contextualErrorMap?: ZodErrorMap | undefined;
339
- readonly async: boolean;
340
- };
341
- readonly path: ParsePath;
342
- readonly schemaErrorMap?: ZodErrorMap | undefined;
343
- readonly parent: ParseContext | null;
344
- readonly data: any;
345
- readonly parsedType: ZodParsedType;
346
- }
347
- type ParseInput = {
348
- data: any;
349
- path: (string | number)[];
350
- parent: ParseContext;
351
- };
352
- declare class ParseStatus {
353
- value: "aborted" | "dirty" | "valid";
354
- dirty(): void;
355
- abort(): void;
356
- static mergeArray(status: ParseStatus, results: SyncParseReturnType<any>[]): SyncParseReturnType;
357
- static mergeObjectAsync(status: ParseStatus, pairs: {
358
- key: ParseReturnType<any>;
359
- value: ParseReturnType<any>;
360
- }[]): Promise<SyncParseReturnType<any>>;
361
- static mergeObjectSync(status: ParseStatus, pairs: {
362
- key: SyncParseReturnType<any>;
363
- value: SyncParseReturnType<any>;
364
- alwaysSet?: boolean;
365
- }[]): SyncParseReturnType;
366
- }
367
- type INVALID = {
368
- status: "aborted";
369
- };
370
- declare const INVALID: INVALID;
371
- type DIRTY<T> = {
372
- status: "dirty";
373
- value: T;
374
- };
375
- declare const DIRTY: <T>(value: T) => DIRTY<T>;
376
- type OK<T> = {
377
- status: "valid";
378
- value: T;
379
- };
380
- declare const OK: <T>(value: T) => OK<T>;
381
- type SyncParseReturnType<T = any> = OK<T> | DIRTY<T> | INVALID;
382
- type AsyncParseReturnType<T> = Promise<SyncParseReturnType<T>>;
383
- type ParseReturnType<T> = SyncParseReturnType<T> | AsyncParseReturnType<T>;
384
- //#endregion
385
- //#region ../../node_modules/zod/v3/helpers/enumUtil.d.cts
386
- declare namespace enumUtil {
387
- type UnionToIntersectionFn<T> = (T extends unknown ? (k: () => T) => void : never) extends ((k: infer Intersection) => void) ? Intersection : never;
388
- type GetUnionLast<T> = UnionToIntersectionFn<T> extends (() => infer Last) ? Last : never;
389
- type UnionToTuple<T, Tuple extends unknown[] = []> = [T] extends [never] ? Tuple : UnionToTuple<Exclude<T, GetUnionLast<T>>, [GetUnionLast<T>, ...Tuple]>;
390
- type CastToStringTuple<T> = T extends [string, ...string[]] ? T : never;
391
- export type UnionToTupleString<T> = CastToStringTuple<UnionToTuple<T>>;
392
- export {};
393
- }
394
- //#endregion
395
- //#region ../../node_modules/zod/v3/helpers/errorUtil.d.cts
396
- declare namespace errorUtil {
397
- type ErrMessage = string | {
398
- message?: string | undefined;
399
- };
400
- const errToObj: (message?: ErrMessage) => {
401
- message?: string | undefined;
402
- };
403
- const toString: (message?: ErrMessage) => string | undefined;
404
- }
405
- //#endregion
406
- //#region ../../node_modules/zod/v3/helpers/partialUtil.d.cts
407
- declare namespace partialUtil {
408
- type DeepPartial<T extends ZodTypeAny> = T extends ZodObject<ZodRawShape> ? ZodObject<{ [k in keyof T["shape"]]: ZodOptional<DeepPartial<T["shape"][k]>> }, T["_def"]["unknownKeys"], T["_def"]["catchall"]> : T extends ZodArray<infer Type, infer Card> ? ZodArray<DeepPartial<Type>, Card> : T extends ZodOptional<infer Type> ? ZodOptional<DeepPartial<Type>> : T extends ZodNullable<infer Type> ? ZodNullable<DeepPartial<Type>> : T extends ZodTuple<infer Items> ? { [k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial<Items[k]> : never } extends infer PI ? PI extends ZodTupleItems ? ZodTuple<PI> : never : never : T;
409
- }
410
- //#endregion
411
- //#region ../../node_modules/zod/v3/standard-schema.d.cts
412
- /**
413
- * The Standard Schema interface.
414
- */
415
- type StandardSchemaV1<Input = unknown, Output = Input> = {
416
- /**
417
- * The Standard Schema properties.
418
- */
419
- readonly "~standard": StandardSchemaV1.Props<Input, Output>;
420
- };
421
- declare namespace StandardSchemaV1 {
422
- /**
423
- * The Standard Schema properties interface.
424
- */
425
- export interface Props<Input = unknown, Output = Input> {
426
- /**
427
- * The version number of the standard.
428
- */
429
- readonly version: 1;
430
- /**
431
- * The vendor name of the schema library.
432
- */
433
- readonly vendor: string;
434
- /**
435
- * Validates unknown input values.
436
- */
437
- readonly validate: (value: unknown) => Result<Output> | Promise<Result<Output>>;
438
- /**
439
- * Inferred types associated with the schema.
440
- */
441
- readonly types?: Types<Input, Output> | undefined;
442
- }
443
- /**
444
- * The result interface of the validate function.
445
- */
446
- export type Result<Output> = SuccessResult<Output> | FailureResult;
447
- /**
448
- * The result interface if validation succeeds.
449
- */
450
- export interface SuccessResult<Output> {
451
- /**
452
- * The typed output value.
453
- */
454
- readonly value: Output;
455
- /**
456
- * The non-existent issues.
457
- */
458
- readonly issues?: undefined;
459
- }
460
- /**
461
- * The result interface if validation fails.
462
- */
463
- export interface FailureResult {
464
- /**
465
- * The issues of failed validation.
466
- */
467
- readonly issues: ReadonlyArray<Issue>;
468
- }
469
- /**
470
- * The issue interface of the failure output.
471
- */
472
- export interface Issue {
473
- /**
474
- * The error message of the issue.
475
- */
476
- readonly message: string;
477
- /**
478
- * The path of the issue, if any.
479
- */
480
- readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
481
- }
482
- /**
483
- * The path segment interface of the issue.
484
- */
485
- export interface PathSegment {
486
- /**
487
- * The key representing a path segment.
488
- */
489
- readonly key: PropertyKey;
490
- }
491
- /**
492
- * The Standard Schema types interface.
493
- */
494
- export interface Types<Input = unknown, Output = Input> {
495
- /**
496
- * The input type of the schema.
497
- */
498
- readonly input: Input;
499
- /**
500
- * The output type of the schema.
501
- */
502
- readonly output: Output;
503
- }
504
- /**
505
- * Infers the input type of a Standard Schema.
506
- */
507
- export type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
508
- /**
509
- * Infers the output type of a Standard Schema.
510
- */
511
- export type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
512
- export {};
513
- }
514
- //#endregion
515
- //#region ../../node_modules/zod/v3/types.d.cts
516
- interface RefinementCtx {
517
- addIssue: (arg: IssueData) => void;
518
- path: (string | number)[];
519
- }
520
- type ZodRawShape = {
521
- [k: string]: ZodTypeAny;
522
- };
523
- type ZodTypeAny = ZodType<any, any, any>;
524
- type TypeOf<T extends ZodType<any, any, any>> = T["_output"];
525
- type input<T extends ZodType<any, any, any>> = T["_input"];
526
- type output<T extends ZodType<any, any, any>> = T["_output"];
527
- type CustomErrorParams = Partial<util.Omit<ZodCustomIssue, "code">>;
528
- interface ZodTypeDef {
529
- errorMap?: ZodErrorMap | undefined;
530
- description?: string | undefined;
531
- }
532
- type RawCreateParams = {
533
- errorMap?: ZodErrorMap | undefined;
534
- invalid_type_error?: string | undefined;
535
- required_error?: string | undefined;
536
- message?: string | undefined;
537
- description?: string | undefined;
538
- } | undefined;
539
- type SafeParseSuccess<Output> = {
540
- success: true;
541
- data: Output;
542
- error?: never;
543
- };
544
- type SafeParseError<Input> = {
545
- success: false;
546
- error: ZodError<Input>;
547
- data?: never;
548
- };
549
- type SafeParseReturnType<Input, Output> = SafeParseSuccess<Output> | SafeParseError<Input>;
550
- declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> {
551
- readonly _type: Output;
552
- readonly _output: Output;
553
- readonly _input: Input;
554
- readonly _def: Def;
555
- get description(): string | undefined;
556
- "~standard": StandardSchemaV1.Props<Input, Output>;
557
- abstract _parse(input: ParseInput): ParseReturnType<Output>;
558
- _getType(input: ParseInput): string;
559
- _getOrReturnCtx(input: ParseInput, ctx?: ParseContext | undefined): ParseContext;
560
- _processInputParams(input: ParseInput): {
561
- status: ParseStatus;
562
- ctx: ParseContext;
563
- };
564
- _parseSync(input: ParseInput): SyncParseReturnType<Output>;
565
- _parseAsync(input: ParseInput): AsyncParseReturnType<Output>;
566
- parse(data: unknown, params?: util.InexactPartial<ParseParams>): Output;
567
- safeParse(data: unknown, params?: util.InexactPartial<ParseParams>): SafeParseReturnType<Input, Output>;
568
- "~validate"(data: unknown): StandardSchemaV1.Result<Output> | Promise<StandardSchemaV1.Result<Output>>;
569
- parseAsync(data: unknown, params?: util.InexactPartial<ParseParams>): Promise<Output>;
570
- safeParseAsync(data: unknown, params?: util.InexactPartial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;
571
- /** Alias of safeParseAsync */
572
- spa: (data: unknown, params?: util.InexactPartial<ParseParams>) => Promise<SafeParseReturnType<Input, Output>>;
573
- refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, Input>;
574
- refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input>;
575
- refinement<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, RefinedOutput, Input>;
576
- refinement(check: (arg: Output) => boolean, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, Output, Input>;
577
- _refinement(refinement: RefinementEffect<Output>["refinement"]): ZodEffects<this, Output, Input>;
578
- superRefine<RefinedOutput extends Output>(refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput): ZodEffects<this, RefinedOutput, Input>;
579
- superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): ZodEffects<this, Output, Input>;
580
- superRefine(refinement: (arg: Output, ctx: RefinementCtx) => Promise<void>): ZodEffects<this, Output, Input>;
581
- constructor(def: Def);
582
- optional(): ZodOptional<this>;
583
- nullable(): ZodNullable<this>;
584
- nullish(): ZodOptional<ZodNullable<this>>;
585
- array(): ZodArray<this>;
586
- promise(): ZodPromise<this>;
587
- or<T extends ZodTypeAny>(option: T): ZodUnion<[this, T]>;
588
- and<T extends ZodTypeAny>(incoming: T): ZodIntersection<this, T>;
589
- transform<NewOut>(transform: (arg: Output, ctx: RefinementCtx) => NewOut | Promise<NewOut>): ZodEffects<this, NewOut>;
590
- default(def: util.noUndefined<Input>): ZodDefault<this>;
591
- default(def: () => util.noUndefined<Input>): ZodDefault<this>;
592
- brand<B extends string | number | symbol>(brand?: B): ZodBranded<this, B>;
593
- catch(def: Output): ZodCatch<this>;
594
- catch(def: (ctx: {
595
- error: ZodError;
596
- input: Input;
597
- }) => Output): ZodCatch<this>;
598
- describe(description: string): this;
599
- pipe<T extends ZodTypeAny>(target: T): ZodPipeline<this, T>;
600
- readonly(): ZodReadonly<this>;
601
- isOptional(): boolean;
602
- isNullable(): boolean;
603
- }
604
- type ZodNumberCheck = {
605
- kind: "min";
606
- value: number;
607
- inclusive: boolean;
608
- message?: string | undefined;
609
- } | {
610
- kind: "max";
611
- value: number;
612
- inclusive: boolean;
613
- message?: string | undefined;
614
- } | {
615
- kind: "int";
616
- message?: string | undefined;
617
- } | {
618
- kind: "multipleOf";
619
- value: number;
620
- message?: string | undefined;
621
- } | {
622
- kind: "finite";
623
- message?: string | undefined;
624
- };
625
- interface ZodNumberDef extends ZodTypeDef {
626
- checks: ZodNumberCheck[];
627
- typeName: ZodFirstPartyTypeKind.ZodNumber;
628
- coerce: boolean;
629
- }
630
- declare class ZodNumber extends ZodType<number, ZodNumberDef, number> {
631
- _parse(input: ParseInput): ParseReturnType<number>;
632
- static create: (params?: RawCreateParams & {
633
- coerce?: boolean;
634
- }) => ZodNumber;
635
- gte(value: number, message?: errorUtil.ErrMessage): ZodNumber;
636
- min: (value: number, message?: errorUtil.ErrMessage) => ZodNumber;
637
- gt(value: number, message?: errorUtil.ErrMessage): ZodNumber;
638
- lte(value: number, message?: errorUtil.ErrMessage): ZodNumber;
639
- max: (value: number, message?: errorUtil.ErrMessage) => ZodNumber;
640
- lt(value: number, message?: errorUtil.ErrMessage): ZodNumber;
641
- protected setLimit(kind: "min" | "max", value: number, inclusive: boolean, message?: string): ZodNumber;
642
- _addCheck(check: ZodNumberCheck): ZodNumber;
643
- int(message?: errorUtil.ErrMessage): ZodNumber;
644
- positive(message?: errorUtil.ErrMessage): ZodNumber;
645
- negative(message?: errorUtil.ErrMessage): ZodNumber;
646
- nonpositive(message?: errorUtil.ErrMessage): ZodNumber;
647
- nonnegative(message?: errorUtil.ErrMessage): ZodNumber;
648
- multipleOf(value: number, message?: errorUtil.ErrMessage): ZodNumber;
649
- step: (value: number, message?: errorUtil.ErrMessage) => ZodNumber;
650
- finite(message?: errorUtil.ErrMessage): ZodNumber;
651
- safe(message?: errorUtil.ErrMessage): ZodNumber;
652
- get minValue(): number | null;
653
- get maxValue(): number | null;
654
- get isInt(): boolean;
655
- get isFinite(): boolean;
656
- }
657
- interface ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
658
- type: T;
659
- typeName: ZodFirstPartyTypeKind.ZodArray;
660
- exactLength: {
661
- value: number;
662
- message?: string | undefined;
663
- } | null;
664
- minLength: {
665
- value: number;
666
- message?: string | undefined;
667
- } | null;
668
- maxLength: {
669
- value: number;
670
- message?: string | undefined;
671
- } | null;
672
- }
673
- type ArrayCardinality = "many" | "atleastone";
674
- type arrayOutputType<T extends ZodTypeAny, Cardinality extends ArrayCardinality = "many"> = Cardinality extends "atleastone" ? [T["_output"], ...T["_output"][]] : T["_output"][];
675
- declare class ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinality = "many"> extends ZodType<arrayOutputType<T, Cardinality>, ZodArrayDef<T>, Cardinality extends "atleastone" ? [T["_input"], ...T["_input"][]] : T["_input"][]> {
676
- _parse(input: ParseInput): ParseReturnType<this["_output"]>;
677
- get element(): T;
678
- min(minLength: number, message?: errorUtil.ErrMessage): this;
679
- max(maxLength: number, message?: errorUtil.ErrMessage): this;
680
- length(len: number, message?: errorUtil.ErrMessage): this;
681
- nonempty(message?: errorUtil.ErrMessage): ZodArray<T, "atleastone">;
682
- static create: <El extends ZodTypeAny>(schema: El, params?: RawCreateParams) => ZodArray<El>;
683
- }
684
- type UnknownKeysParam = "passthrough" | "strict" | "strip";
685
- interface ZodObjectDef<T extends ZodRawShape = ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
686
- typeName: ZodFirstPartyTypeKind.ZodObject;
687
- shape: () => T;
688
- catchall: Catchall;
689
- unknownKeys: UnknownKeys;
690
- }
691
- type objectOutputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny, UnknownKeys extends UnknownKeysParam = UnknownKeysParam> = objectUtil.flatten<objectUtil.addQuestionMarks<baseObjectOutputType<Shape>>> & CatchallOutput<Catchall> & PassthroughType<UnknownKeys>;
692
- type baseObjectOutputType<Shape extends ZodRawShape> = { [k in keyof Shape]: Shape[k]["_output"] };
693
- type objectInputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny, UnknownKeys extends UnknownKeysParam = UnknownKeysParam> = objectUtil.flatten<baseObjectInputType<Shape>> & CatchallInput<Catchall> & PassthroughType<UnknownKeys>;
694
- type baseObjectInputType<Shape extends ZodRawShape> = objectUtil.addQuestionMarks<{ [k in keyof Shape]: Shape[k]["_input"] }>;
695
- type CatchallOutput<T extends ZodType> = ZodType extends T ? unknown : {
696
- [k: string]: T["_output"];
697
- };
698
- type CatchallInput<T extends ZodType> = ZodType extends T ? unknown : {
699
- [k: string]: T["_input"];
700
- };
701
- type PassthroughType<T extends UnknownKeysParam> = T extends "passthrough" ? {
702
- [k: string]: unknown;
703
- } : unknown;
704
- type deoptional<T extends ZodTypeAny> = T extends ZodOptional<infer U> ? deoptional<U> : T extends ZodNullable<infer U> ? ZodNullable<deoptional<U>> : T;
705
- declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny, Output = objectOutputType<T, Catchall, UnknownKeys>, Input = objectInputType<T, Catchall, UnknownKeys>> extends ZodType<Output, ZodObjectDef<T, UnknownKeys, Catchall>, Input> {
706
- private _cached;
707
- _getCached(): {
708
- shape: T;
709
- keys: string[];
710
- };
711
- _parse(input: ParseInput): ParseReturnType<this["_output"]>;
712
- get shape(): T;
713
- strict(message?: errorUtil.ErrMessage): ZodObject<T, "strict", Catchall>;
714
- strip(): ZodObject<T, "strip", Catchall>;
715
- passthrough(): ZodObject<T, "passthrough", Catchall>;
716
- /**
717
- * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
718
- * If you want to pass through unknown properties, use `.passthrough()` instead.
719
- */
720
- nonstrict: () => ZodObject<T, "passthrough", Catchall>;
721
- extend<Augmentation extends ZodRawShape>(augmentation: Augmentation): ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall>;
722
- /**
723
- * @deprecated Use `.extend` instead
724
- * */
725
- augment: <Augmentation extends ZodRawShape>(augmentation: Augmentation) => ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall>;
726
- /**
727
- * Prior to zod@1.0.12 there was a bug in the
728
- * inferred type of merged objects. Please
729
- * upgrade if you are experiencing issues.
730
- */
731
- merge<Incoming extends AnyZodObject, Augmentation extends Incoming["shape"]>(merging: Incoming): ZodObject<objectUtil.extendShape<T, Augmentation>, Incoming["_def"]["unknownKeys"], Incoming["_def"]["catchall"]>;
732
- setKey<Key extends string, Schema extends ZodTypeAny>(key: Key, schema: Schema): ZodObject<T & { [k in Key]: Schema }, UnknownKeys, Catchall>;
733
- catchall<Index extends ZodTypeAny>(index: Index): ZodObject<T, UnknownKeys, Index>;
734
- pick<Mask extends util.Exactly<{ [k in keyof T]?: true }, Mask>>(mask: Mask): ZodObject<Pick<T, Extract<keyof T, keyof Mask>>, UnknownKeys, Catchall>;
735
- omit<Mask extends util.Exactly<{ [k in keyof T]?: true }, Mask>>(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;
736
- /**
737
- * @deprecated
738
- */
739
- deepPartial(): partialUtil.DeepPartial<this>;
740
- partial(): ZodObject<{ [k in keyof T]: ZodOptional<T[k]> }, UnknownKeys, Catchall>;
741
- partial<Mask extends util.Exactly<{ [k in keyof T]?: true }, Mask>>(mask: Mask): ZodObject<objectUtil.noNever<{ [k in keyof T]: k extends keyof Mask ? ZodOptional<T[k]> : T[k] }>, UnknownKeys, Catchall>;
742
- required(): ZodObject<{ [k in keyof T]: deoptional<T[k]> }, UnknownKeys, Catchall>;
743
- required<Mask extends util.Exactly<{ [k in keyof T]?: true }, Mask>>(mask: Mask): ZodObject<objectUtil.noNever<{ [k in keyof T]: k extends keyof Mask ? deoptional<T[k]> : T[k] }>, UnknownKeys, Catchall>;
744
- keyof(): ZodEnum<enumUtil.UnionToTupleString<keyof T>>;
745
- static create: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strip", ZodTypeAny, objectOutputType<Shape, ZodTypeAny, "strip">, objectInputType<Shape, ZodTypeAny, "strip">>;
746
- static strictCreate: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strict">;
747
- static lazycreate: <Shape extends ZodRawShape>(shape: () => Shape, params?: RawCreateParams) => ZodObject<Shape, "strip">;
748
- }
749
- type AnyZodObject = ZodObject<any, any, any>;
750
- type ZodUnionOptions = Readonly<[ZodTypeAny, ...ZodTypeAny[]]>;
751
- interface ZodUnionDef<T extends ZodUnionOptions = Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>> extends ZodTypeDef {
752
- options: T;
753
- typeName: ZodFirstPartyTypeKind.ZodUnion;
754
- }
755
- declare class ZodUnion<T extends ZodUnionOptions> extends ZodType<T[number]["_output"], ZodUnionDef<T>, T[number]["_input"]> {
756
- _parse(input: ParseInput): ParseReturnType<this["_output"]>;
757
- get options(): T;
758
- static create: <Options extends Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>>(types: Options, params?: RawCreateParams) => ZodUnion<Options>;
759
- }
760
- interface ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
761
- left: T;
762
- right: U;
763
- typeName: ZodFirstPartyTypeKind.ZodIntersection;
764
- }
765
- declare class ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> extends ZodType<T["_output"] & U["_output"], ZodIntersectionDef<T, U>, T["_input"] & U["_input"]> {
766
- _parse(input: ParseInput): ParseReturnType<this["_output"]>;
767
- static create: <TSchema extends ZodTypeAny, USchema extends ZodTypeAny>(left: TSchema, right: USchema, params?: RawCreateParams) => ZodIntersection<TSchema, USchema>;
768
- }
769
- type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
770
- type AssertArray<T> = T extends any[] ? T : never;
771
- type OutputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{ [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]["_output"] : never }>;
772
- type OutputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = Rest extends ZodTypeAny ? [...OutputTypeOfTuple<T>, ...Rest["_output"][]] : OutputTypeOfTuple<T>;
773
- type InputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{ [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]["_input"] : never }>;
774
- type InputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = Rest extends ZodTypeAny ? [...InputTypeOfTuple<T>, ...Rest["_input"][]] : InputTypeOfTuple<T>;
775
- interface ZodTupleDef<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> extends ZodTypeDef {
776
- items: T;
777
- rest: Rest;
778
- typeName: ZodFirstPartyTypeKind.ZodTuple;
779
- }
780
- declare class ZodTuple<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> extends ZodType<OutputTypeOfTupleWithRest<T, Rest>, ZodTupleDef<T, Rest>, InputTypeOfTupleWithRest<T, Rest>> {
781
- _parse(input: ParseInput): ParseReturnType<this["_output"]>;
782
- get items(): T;
783
- rest<RestSchema extends ZodTypeAny>(rest: RestSchema): ZodTuple<T, RestSchema>;
784
- static create: <Items extends [ZodTypeAny, ...ZodTypeAny[]] | []>(schemas: Items, params?: RawCreateParams) => ZodTuple<Items, null>;
785
- }
786
- type EnumValues<T extends string = string> = readonly [T, ...T[]];
787
- type Values<T extends EnumValues> = { [k in T[number]]: k };
788
- interface ZodEnumDef<T extends EnumValues = EnumValues> extends ZodTypeDef {
789
- values: T;
790
- typeName: ZodFirstPartyTypeKind.ZodEnum;
791
- }
792
- type Writeable<T> = { -readonly [P in keyof T]: T[P] };
793
- type FilterEnum<Values, ToExclude> = Values extends [] ? [] : Values extends [infer Head, ...infer Rest] ? Head extends ToExclude ? FilterEnum<Rest, ToExclude> : [Head, ...FilterEnum<Rest, ToExclude>] : never;
794
- type typecast<A, T> = A extends T ? A : never;
795
- declare function createZodEnum<U extends string, T extends Readonly<[U, ...U[]]>>(values: T, params?: RawCreateParams): ZodEnum<Writeable<T>>;
796
- declare function createZodEnum<U extends string, T extends [U, ...U[]]>(values: T, params?: RawCreateParams): ZodEnum<T>;
797
- declare class ZodEnum<T extends [string, ...string[]]> extends ZodType<T[number], ZodEnumDef<T>, T[number]> {
798
- _cache: Set<T[number]> | undefined;
799
- _parse(input: ParseInput): ParseReturnType<this["_output"]>;
800
- get options(): T;
801
- get enum(): Values<T>;
802
- get Values(): Values<T>;
803
- get Enum(): Values<T>;
804
- extract<ToExtract extends readonly [T[number], ...T[number][]]>(values: ToExtract, newDef?: RawCreateParams): ZodEnum<Writeable<ToExtract>>;
805
- exclude<ToExclude extends readonly [T[number], ...T[number][]]>(values: ToExclude, newDef?: RawCreateParams): ZodEnum<typecast<Writeable<FilterEnum<T, ToExclude[number]>>, [string, ...string[]]>>;
806
- static create: typeof createZodEnum;
807
- }
808
- interface ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
809
- type: T;
810
- typeName: ZodFirstPartyTypeKind.ZodPromise;
811
- }
812
- declare class ZodPromise<T extends ZodTypeAny> extends ZodType<Promise<T["_output"]>, ZodPromiseDef<T>, Promise<T["_input"]>> {
813
- unwrap(): T;
814
- _parse(input: ParseInput): ParseReturnType<this["_output"]>;
815
- static create: <Inner extends ZodTypeAny>(schema: Inner, params?: RawCreateParams) => ZodPromise<Inner>;
816
- }
817
- type RefinementEffect<T> = {
818
- type: "refinement";
819
- refinement: (arg: T, ctx: RefinementCtx) => any;
820
- };
821
- type TransformEffect<T> = {
822
- type: "transform";
823
- transform: (arg: T, ctx: RefinementCtx) => any;
824
- };
825
- type PreprocessEffect<T> = {
826
- type: "preprocess";
827
- transform: (arg: T, ctx: RefinementCtx) => any;
828
- };
829
- type Effect<T> = RefinementEffect<T> | TransformEffect<T> | PreprocessEffect<T>;
830
- interface ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
831
- schema: T;
832
- typeName: ZodFirstPartyTypeKind.ZodEffects;
833
- effect: Effect<any>;
834
- }
835
- declare class ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input<T>> extends ZodType<Output, ZodEffectsDef<T>, Input> {
836
- innerType(): T;
837
- sourceType(): T;
838
- _parse(input: ParseInput): ParseReturnType<this["_output"]>;
839
- static create: <I extends ZodTypeAny>(schema: I, effect: Effect<I["_output"]>, params?: RawCreateParams) => ZodEffects<I, I["_output"]>;
840
- static createWithPreprocess: <I extends ZodTypeAny>(preprocess: (arg: unknown, ctx: RefinementCtx) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>;
841
- }
842
- interface ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
843
- innerType: T;
844
- typeName: ZodFirstPartyTypeKind.ZodOptional;
845
- }
846
- declare class ZodOptional<T extends ZodTypeAny> extends ZodType<T["_output"] | undefined, ZodOptionalDef<T>, T["_input"] | undefined> {
847
- _parse(input: ParseInput): ParseReturnType<this["_output"]>;
848
- unwrap(): T;
849
- static create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodOptional<Inner>;
850
- }
851
- interface ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
852
- innerType: T;
853
- typeName: ZodFirstPartyTypeKind.ZodNullable;
854
- }
855
- declare class ZodNullable<T extends ZodTypeAny> extends ZodType<T["_output"] | null, ZodNullableDef<T>, T["_input"] | null> {
856
- _parse(input: ParseInput): ParseReturnType<this["_output"]>;
857
- unwrap(): T;
858
- static create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodNullable<Inner>;
859
- }
860
- interface ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
861
- innerType: T;
862
- defaultValue: () => util.noUndefined<T["_input"]>;
863
- typeName: ZodFirstPartyTypeKind.ZodDefault;
864
- }
865
- declare class ZodDefault<T extends ZodTypeAny> extends ZodType<util.noUndefined<T["_output"]>, ZodDefaultDef<T>, T["_input"] | undefined> {
866
- _parse(input: ParseInput): ParseReturnType<this["_output"]>;
867
- removeDefault(): T;
868
- static create: <Inner extends ZodTypeAny>(type: Inner, params: RawCreateParams & {
869
- default: Inner["_input"] | (() => util.noUndefined<Inner["_input"]>);
870
- }) => ZodDefault<Inner>;
871
- }
872
- interface ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
873
- innerType: T;
874
- catchValue: (ctx: {
875
- error: ZodError;
876
- input: unknown;
877
- }) => T["_input"];
878
- typeName: ZodFirstPartyTypeKind.ZodCatch;
879
- }
880
- declare class ZodCatch<T extends ZodTypeAny> extends ZodType<T["_output"], ZodCatchDef<T>, unknown> {
881
- _parse(input: ParseInput): ParseReturnType<this["_output"]>;
882
- removeCatch(): T;
883
- static create: <Inner extends ZodTypeAny>(type: Inner, params: RawCreateParams & {
884
- catch: Inner["_output"] | (() => Inner["_output"]);
885
- }) => ZodCatch<Inner>;
886
- }
887
- interface ZodBrandedDef<T extends ZodTypeAny> extends ZodTypeDef {
888
- type: T;
889
- typeName: ZodFirstPartyTypeKind.ZodBranded;
890
- }
891
- declare const BRAND: unique symbol;
892
- type BRAND<T extends string | number | symbol> = {
893
- [BRAND]: { [k in T]: true };
894
- };
895
- declare class ZodBranded<T extends ZodTypeAny, B extends string | number | symbol> extends ZodType<T["_output"] & BRAND<B>, ZodBrandedDef<T>, T["_input"]> {
896
- _parse(input: ParseInput): ParseReturnType<any>;
897
- unwrap(): T;
898
- }
899
- interface ZodPipelineDef<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodTypeDef {
900
- in: A;
901
- out: B;
902
- typeName: ZodFirstPartyTypeKind.ZodPipeline;
903
- }
904
- declare class ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodType<B["_output"], ZodPipelineDef<A, B>, A["_input"]> {
905
- _parse(input: ParseInput): ParseReturnType<any>;
906
- static create<ASchema extends ZodTypeAny, BSchema extends ZodTypeAny>(a: ASchema, b: BSchema): ZodPipeline<ASchema, BSchema>;
907
- }
908
- type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
909
- readonly [Symbol.toStringTag]: string;
910
- } | Date | Error | Generator | Promise<unknown> | RegExp;
911
- type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;
912
- interface ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
913
- innerType: T;
914
- typeName: ZodFirstPartyTypeKind.ZodReadonly;
915
- }
916
- declare class ZodReadonly<T extends ZodTypeAny> extends ZodType<MakeReadonly<T["_output"]>, ZodReadonlyDef<T>, MakeReadonly<T["_input"]>> {
917
- _parse(input: ParseInput): ParseReturnType<this["_output"]>;
918
- static create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodReadonly<Inner>;
919
- unwrap(): T;
920
- }
921
- declare enum ZodFirstPartyTypeKind {
922
- ZodString = "ZodString",
923
- ZodNumber = "ZodNumber",
924
- ZodNaN = "ZodNaN",
925
- ZodBigInt = "ZodBigInt",
926
- ZodBoolean = "ZodBoolean",
927
- ZodDate = "ZodDate",
928
- ZodSymbol = "ZodSymbol",
929
- ZodUndefined = "ZodUndefined",
930
- ZodNull = "ZodNull",
931
- ZodAny = "ZodAny",
932
- ZodUnknown = "ZodUnknown",
933
- ZodNever = "ZodNever",
934
- ZodVoid = "ZodVoid",
935
- ZodArray = "ZodArray",
936
- ZodObject = "ZodObject",
937
- ZodUnion = "ZodUnion",
938
- ZodDiscriminatedUnion = "ZodDiscriminatedUnion",
939
- ZodIntersection = "ZodIntersection",
940
- ZodTuple = "ZodTuple",
941
- ZodRecord = "ZodRecord",
942
- ZodMap = "ZodMap",
943
- ZodSet = "ZodSet",
944
- ZodFunction = "ZodFunction",
945
- ZodLazy = "ZodLazy",
946
- ZodLiteral = "ZodLiteral",
947
- ZodEnum = "ZodEnum",
948
- ZodEffects = "ZodEffects",
949
- ZodNativeEnum = "ZodNativeEnum",
950
- ZodOptional = "ZodOptional",
951
- ZodNullable = "ZodNullable",
952
- ZodDefault = "ZodDefault",
953
- ZodCatch = "ZodCatch",
954
- ZodPromise = "ZodPromise",
955
- ZodBranded = "ZodBranded",
956
- ZodPipeline = "ZodPipeline",
957
- ZodReadonly = "ZodReadonly"
958
- }
959
- //#endregion
960
113
  //#region .dts-emit/code/core/src/cli/globalSettings.d.ts
961
- declare const userSettingSchema: ZodObject<{
962
- version: ZodNumber;
963
- userSince: ZodOptional<ZodNumber>;
964
- }, "strip", ZodTypeAny, {
965
- version: number;
966
- userSince?: number | undefined;
967
- }, {
968
- version: number;
969
- userSince?: number | undefined;
970
- }>;
114
+ declare const userSettingSchema: v.ObjectSchema<{
115
+ readonly version: v.NumberSchema<undefined>;
116
+ readonly userSince: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
117
+ }, undefined>;
971
118
  declare function globalSettings(filePath?: string): Promise<Settings>;
972
119
  declare function _clearGlobalSettings(): void;
973
120
  /**
@@ -976,20 +123,20 @@ declare function _clearGlobalSettings(): void;
976
123
  */
977
124
  declare class Settings {
978
125
  private filePath;
979
- value: TypeOf<typeof userSettingSchema>;
126
+ value: v.InferOutput<typeof userSettingSchema>;
980
127
  /**
981
128
  * Create a new Settings instance
982
129
  *
983
130
  * @param filePath Path to the JSON settings file
984
131
  * @param value Loaded value of settings
985
132
  */
986
- constructor(filePath: string, value: TypeOf<typeof userSettingSchema>);
133
+ constructor(filePath: string, value: v.InferOutput<typeof userSettingSchema>);
987
134
  /** Save settings to the file */
988
135
  save(): Promise<void>;
989
136
  }
990
137
  //#endregion
991
138
  //#region .dts-emit/code/core/src/cli/AddonVitestService.d.ts
992
- type Result$1 = {
139
+ type Result = {
993
140
  compatible: boolean;
994
141
  reasons?: string[];
995
142
  };
@@ -1072,18 +219,18 @@ declare class AddonVitestService {
1072
219
  * - Next.js installation (if using @storybook/nextjs)
1073
220
  * - Vitest config files (if configDir provided)
1074
221
  */
1075
- validateCompatibility(options: AddonVitestCompatibilityOptions): Promise<Result$1>;
222
+ validateCompatibility(options: AddonVitestCompatibilityOptions): Promise<Result>;
1076
223
  /**
1077
224
  * Validate package versions for addon-vitest compatibility Public method to allow early
1078
225
  * validation before framework detection
1079
226
  */
1080
- validatePackageVersions(): Promise<Result$1>;
227
+ validatePackageVersions(): Promise<Result>;
1081
228
  /**
1082
229
  * Validate vitest config files for addon compatibility
1083
230
  *
1084
231
  * Public method that can be used by both postinstall and @aussieljk/forkbook/internal/create flows
1085
232
  */
1086
- validateConfigFiles(directory: string): Promise<Result$1>;
233
+ validateConfigFiles(directory: string): Promise<Result>;
1087
234
  }
1088
235
  //#endregion
1089
236
  //#region .dts-emit/code/core/src/cli/installSkills.d.ts