@aussieljk/forkbook 0.0.0-stage → 0.0.1-2
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.
- package/LICENSE +22 -0
- package/README.md +77 -2
- package/assets/addon-vitest/templates/vitest.config.4.template.ts +36 -0
- package/assets/browser/favicon-wrapper.svg +46 -0
- package/assets/browser/favicon.svg +1 -0
- package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-bold.woff2 +0 -0
- package/assets/browser/nunito-sans-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-regular.woff2 +0 -0
- package/assets/builder-vite/iframe.html +99 -0
- package/assets/create/rendererAssets/.eslintrc.json +16 -0
- package/assets/create/rendererAssets/common/Configure.mdx +388 -0
- package/assets/create/rendererAssets/common/assets/accessibility.png +0 -0
- package/assets/create/rendererAssets/common/assets/accessibility.svg +1 -0
- package/assets/create/rendererAssets/common/assets/addon-library.png +0 -0
- package/assets/create/rendererAssets/common/assets/assets.png +0 -0
- package/assets/create/rendererAssets/common/assets/avif-test-image.avif +0 -0
- package/assets/create/rendererAssets/common/assets/context.png +0 -0
- package/assets/create/rendererAssets/common/assets/discord.svg +1 -0
- package/assets/create/rendererAssets/common/assets/docs.png +0 -0
- package/assets/create/rendererAssets/common/assets/figma-plugin.png +0 -0
- package/assets/create/rendererAssets/common/assets/github.svg +1 -0
- package/assets/create/rendererAssets/common/assets/share.png +0 -0
- package/assets/create/rendererAssets/common/assets/styling.png +0 -0
- package/assets/create/rendererAssets/common/assets/testing.png +0 -0
- package/assets/create/rendererAssets/common/assets/theming.png +0 -0
- package/assets/create/rendererAssets/common/assets/tutorials.svg +1 -0
- package/assets/create/rendererAssets/common/assets/youtube.svg +1 -0
- package/assets/create/rendererAssets/common/button.css +30 -0
- package/assets/create/rendererAssets/common/header.css +32 -0
- package/assets/create/rendererAssets/common/page.css +68 -0
- package/assets/create/templates/react-native/index.expo.js +20 -0
- package/assets/create/templates/react-native/index.js +25 -0
- package/assets/docs/addon-backgrounds.gif +0 -0
- package/assets/docs/addon-controls-args-annotated.png +0 -0
- package/assets/docs/addon-controls-args-background-color.png +0 -0
- package/assets/docs/addon-controls-args-background-string.png +0 -0
- package/assets/docs/addon-controls-args-docs.png +0 -0
- package/assets/docs/addon-controls-args-logging.png +0 -0
- package/assets/docs/addon-controls-args-no-annotation.png +0 -0
- package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
- package/assets/docs/addon-controls-args-reflow.png +0 -0
- package/assets/docs/addon-controls-args-template.png +0 -0
- package/assets/docs/addon-controls-expanded.png +0 -0
- package/assets/docs/addon-controls-hero.gif +0 -0
- package/assets/docs/addon-controls-install.png +0 -0
- package/assets/docs/hero.gif +0 -0
- package/assets/docs/highlight.png +0 -0
- package/assets/docs/message-reference.png +0 -0
- package/assets/docs/viewport.png +0 -0
- package/assets/react-native/metro-env.d.ts +69 -0
- package/assets/server/addon.tsconfig.json +6 -0
- package/assets/server/base-preview-body.html +116 -0
- package/assets/server/base-preview-head.html +494 -0
- package/assets/server/openBrowser.applescript +94 -0
- package/assets/server/template.ejs +87 -0
- package/dist/.build-stamp +0 -0
- package/dist/_browser-chunks/Color-PCLE2J36.js +1025 -0
- package/dist/_browser-chunks/DocsRenderer-JXND3PVQ.js +10 -0
- package/dist/_browser-chunks/WithTooltip-XSQFTBMB.js +1619 -0
- package/dist/_browser-chunks/chunk-2JDQ35OA.js +247 -0
- package/dist/_browser-chunks/chunk-2JT76G3E.js +104 -0
- package/dist/_browser-chunks/chunk-2MEPHP35.js +17 -0
- package/dist/_browser-chunks/chunk-2SCZVUKW.js +24 -0
- package/dist/_browser-chunks/chunk-46Z7NGAS.js +41 -0
- package/dist/_browser-chunks/chunk-4ATQOMJB.js +30 -0
- package/dist/_browser-chunks/chunk-52CW7FF7.js +49 -0
- package/dist/_browser-chunks/chunk-5I7E4GMO.js +62 -0
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +20 -0
- package/dist/_browser-chunks/chunk-5WMXI5GW.js +816 -0
- package/dist/_browser-chunks/chunk-66OCZ54D.js +2604 -0
- package/dist/_browser-chunks/chunk-6SXYJQST.js +253 -0
- package/dist/_browser-chunks/chunk-AYRF6EJB.js +36 -0
- package/dist/_browser-chunks/chunk-B4AUNNU4.js +156 -0
- package/dist/_browser-chunks/chunk-BCP2FFXF.js +369 -0
- package/dist/_browser-chunks/chunk-C3D4HEFY.js +3396 -0
- package/dist/_browser-chunks/chunk-CFAOWGL7.js +43 -0
- package/dist/_browser-chunks/chunk-CFWWCCZV.js +223 -0
- package/dist/_browser-chunks/chunk-CNED6RYH.js +18 -0
- package/dist/_browser-chunks/chunk-DRQKCCAG.js +136 -0
- package/dist/_browser-chunks/chunk-ECQ75MKQ.js +0 -0
- package/dist/_browser-chunks/chunk-EIYAKDGP.js +302 -0
- package/dist/_browser-chunks/chunk-ENKK74N4.js +12 -0
- package/dist/_browser-chunks/chunk-FENFYI4X.js +698 -0
- package/dist/_browser-chunks/chunk-FJGWSWL5.js +155 -0
- package/dist/_browser-chunks/chunk-FVSEPWWX.js +2810 -0
- package/dist/_browser-chunks/chunk-GNZY6LOW.js +10116 -0
- package/dist/_browser-chunks/chunk-IE4ULIOQ.js +14 -0
- package/dist/_browser-chunks/chunk-IMSF75WX.js +42 -0
- package/dist/_browser-chunks/chunk-IWQGIXJS.js +14 -0
- package/dist/_browser-chunks/chunk-JMC7AIKT.js +108 -0
- package/dist/_browser-chunks/chunk-JPUOQJUI.js +8 -0
- package/dist/_browser-chunks/chunk-JSBKXXXF.js +218 -0
- package/dist/_browser-chunks/chunk-JWSKPMPC.js +73 -0
- package/dist/_browser-chunks/chunk-JYVGARBG.js +2943 -0
- package/dist/_browser-chunks/chunk-KBK7GKBN.js +35 -0
- package/dist/_browser-chunks/chunk-KQ7CRO2B.js +108 -0
- package/dist/_browser-chunks/chunk-LAWXTSXK.js +18 -0
- package/dist/_browser-chunks/chunk-LE2LTDW3.js +14 -0
- package/dist/_browser-chunks/chunk-LEVSOOLQ.js +48 -0
- package/dist/_browser-chunks/chunk-LV5PIKV4.js +93 -0
- package/dist/_browser-chunks/chunk-MDOL7KML.js +56 -0
- package/dist/_browser-chunks/chunk-MFMDGWP6.js +34 -0
- package/dist/_browser-chunks/chunk-MLBOOZL4.js +67 -0
- package/dist/_browser-chunks/chunk-NQUD4B7H.js +91 -0
- package/dist/_browser-chunks/chunk-NULBREPZ.js +43 -0
- package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
- package/dist/_browser-chunks/chunk-OD6IBQCC.js +117 -0
- package/dist/_browser-chunks/chunk-ODVJ3XZJ.js +157 -0
- package/dist/_browser-chunks/chunk-OQWFVDIN.js +386 -0
- package/dist/_browser-chunks/chunk-OVH3USFB.js +20 -0
- package/dist/_browser-chunks/chunk-OZZPSYQR.js +14 -0
- package/dist/_browser-chunks/chunk-P6PK47TQ.js +1970 -0
- package/dist/_browser-chunks/chunk-PFRNG3UC.js +22 -0
- package/dist/_browser-chunks/chunk-PJSMZ27A.js +13 -0
- package/dist/_browser-chunks/chunk-QC4HFS6K.js +41 -0
- package/dist/_browser-chunks/chunk-QDXFODK4.js +274 -0
- package/dist/_browser-chunks/chunk-RBCHTR7C.js +28 -0
- package/dist/_browser-chunks/chunk-RMYQ3QN3.js +294 -0
- package/dist/_browser-chunks/chunk-RNTIV5CE.js +411 -0
- package/dist/_browser-chunks/chunk-RSPAQWVJ.js +80 -0
- package/dist/_browser-chunks/chunk-S6TK43XQ.js +836 -0
- package/dist/_browser-chunks/chunk-SC67XZST.js +18 -0
- package/dist/_browser-chunks/chunk-SFVA4SBT.js +683 -0
- package/dist/_browser-chunks/chunk-SZYFOQMT.js +25 -0
- package/dist/_browser-chunks/chunk-TBJCJXK4.js +18 -0
- package/dist/_browser-chunks/chunk-UMDO3KB7.js +205 -0
- package/dist/_browser-chunks/chunk-V2G23FV7.js +11 -0
- package/dist/_browser-chunks/chunk-V5M7Q4HT.js +88 -0
- package/dist/_browser-chunks/chunk-W5M6NPS3.js +198 -0
- package/dist/_browser-chunks/chunk-W7NE2JXW.js +84 -0
- package/dist/_browser-chunks/chunk-WGVAAM43.js +1110 -0
- package/dist/_browser-chunks/chunk-WHQRNHXD.js +8 -0
- package/dist/_browser-chunks/chunk-WOSOWBCA.js +12 -0
- package/dist/_browser-chunks/chunk-WZ7KR7SH.js +85 -0
- package/dist/_browser-chunks/chunk-YEKO6BHJ.js +20 -0
- package/dist/_browser-chunks/chunk-YI2IBIQS.js +7 -0
- package/dist/_browser-chunks/chunk-YTIT5NA5.js +1966 -0
- package/dist/_browser-chunks/chunk-ZEHRUHTA.js +6 -0
- package/dist/_browser-chunks/chunk-ZTQ5MEJ5.js +203 -0
- package/dist/_browser-chunks/matchers-YLBYSYAF.js +1263 -0
- package/dist/_browser-chunks/react-dom-client-4OHE3QDV.js +9 -0
- package/dist/_node-chunks/attached-runtime-I2G4WLJI.js +282 -0
- package/dist/_node-chunks/builder-manager-VVHYQXCH.js +1661 -0
- package/dist/_node-chunks/chunk-2BUPBPFB.js +82 -0
- package/dist/_node-chunks/chunk-2DSIDINN.js +884 -0
- package/dist/_node-chunks/chunk-2RU7BKEW.js +23 -0
- package/dist/_node-chunks/chunk-34EO2PUT.js +26 -0
- package/dist/_node-chunks/chunk-3BKIBF5S.js +3008 -0
- package/dist/_node-chunks/chunk-3SDUYDXH.js +98 -0
- package/dist/_node-chunks/chunk-3T4ZSNPH.js +662 -0
- package/dist/_node-chunks/chunk-3W7F2B7P.js +79 -0
- package/dist/_node-chunks/chunk-3Y6AAY5H.js +80 -0
- package/dist/_node-chunks/chunk-42UWAGPW.js +1193 -0
- package/dist/_node-chunks/chunk-4FEANXWU.js +1986 -0
- package/dist/_node-chunks/chunk-5DQFEZEA.js +40 -0
- package/dist/_node-chunks/chunk-6KEHV53S.js +1218 -0
- package/dist/_node-chunks/chunk-6LMWA44H.js +3837 -0
- package/dist/_node-chunks/chunk-6YKBRP72.js +20 -0
- package/dist/_node-chunks/chunk-7GUDZVRQ.js +110 -0
- package/dist/_node-chunks/chunk-B5J7Q7J4.js +21 -0
- package/dist/_node-chunks/chunk-BS2WMZMR.js +90 -0
- package/dist/_node-chunks/chunk-BSKFCWQD.js +47 -0
- package/dist/_node-chunks/chunk-BXVYT7SB.js +36 -0
- package/dist/_node-chunks/chunk-CCOTJ4FC.js +688 -0
- package/dist/_node-chunks/chunk-CQKMLL5J.js +33 -0
- package/dist/_node-chunks/chunk-CXRU72ET.js +63 -0
- package/dist/_node-chunks/chunk-DC7DKR5K.js +20 -0
- package/dist/_node-chunks/chunk-DHJFTB4K.js +25 -0
- package/dist/_node-chunks/chunk-DUR55DJJ.js +1094 -0
- package/dist/_node-chunks/chunk-E6YESGLX.js +7032 -0
- package/dist/_node-chunks/chunk-EHUNOMDD.js +52345 -0
- package/dist/_node-chunks/chunk-ET7PWEO7.js +298 -0
- package/dist/_node-chunks/chunk-EWOX7HPJ.js +20 -0
- package/dist/_node-chunks/chunk-F3ZFKBHY.js +844 -0
- package/dist/_node-chunks/chunk-FK7KGTV7.js +26 -0
- package/dist/_node-chunks/chunk-FPZB5OI7.js +35 -0
- package/dist/_node-chunks/chunk-FW2HQUBQ.js +25 -0
- package/dist/_node-chunks/chunk-FY6UXW6G.js +11 -0
- package/dist/_node-chunks/chunk-GEFQN7K3.js +499 -0
- package/dist/_node-chunks/chunk-GRBLDJCR.js +989 -0
- package/dist/_node-chunks/chunk-H32DYT6P.js +87 -0
- package/dist/_node-chunks/chunk-H4PPVMP5.js +23 -0
- package/dist/_node-chunks/chunk-HMP2G23X.js +25 -0
- package/dist/_node-chunks/chunk-ICPBH3E7.js +59 -0
- package/dist/_node-chunks/chunk-IDEL2J23.js +23 -0
- package/dist/_node-chunks/chunk-IK4FGZLR.js +223 -0
- package/dist/_node-chunks/chunk-JDXXX6LB.js +68 -0
- package/dist/_node-chunks/chunk-JGGFYIG5.js +5468 -0
- package/dist/_node-chunks/chunk-JPAZLYJ3.js +29 -0
- package/dist/_node-chunks/chunk-JZOO7GGC.js +48 -0
- package/dist/_node-chunks/chunk-KISMCCP5.js +4744 -0
- package/dist/_node-chunks/chunk-LCK4ZQKG.js +115 -0
- package/dist/_node-chunks/chunk-LO56I6E2.js +132 -0
- package/dist/_node-chunks/chunk-LXBD4UL4.js +104 -0
- package/dist/_node-chunks/chunk-MA24JW6C.js +7162 -0
- package/dist/_node-chunks/chunk-MK2KYAI6.js +5414 -0
- package/dist/_node-chunks/chunk-NDWKJ4CL.js +2102 -0
- package/dist/_node-chunks/chunk-NIBT7XDZ.js +168 -0
- package/dist/_node-chunks/chunk-NPO45IMH.js +33 -0
- package/dist/_node-chunks/chunk-OISX4AGQ.js +414 -0
- package/dist/_node-chunks/chunk-OUW6R7C3.js +26 -0
- package/dist/_node-chunks/chunk-OWNFOGTA.js +194 -0
- package/dist/_node-chunks/chunk-Q7QNUM5H.js +49 -0
- package/dist/_node-chunks/chunk-QEQLR22M.js +1877 -0
- package/dist/_node-chunks/chunk-RRN2V55B.js +45 -0
- package/dist/_node-chunks/chunk-RWFIFGO5.js +144 -0
- package/dist/_node-chunks/chunk-RXNJDRGO.js +209 -0
- package/dist/_node-chunks/chunk-RZMQ7S3L.js +92 -0
- package/dist/_node-chunks/chunk-SIEXZVCR.js +51 -0
- package/dist/_node-chunks/chunk-SLWQNBGO.js +2034 -0
- package/dist/_node-chunks/chunk-SVTBJ7Q3.js +35 -0
- package/dist/_node-chunks/chunk-SWO5CDYU.js +32 -0
- package/dist/_node-chunks/chunk-TD5PLLQG.js +121 -0
- package/dist/_node-chunks/chunk-TEQGGSP7.js +33 -0
- package/dist/_node-chunks/chunk-TFCEV2XX.js +155 -0
- package/dist/_node-chunks/chunk-TFEWM4E3.js +1073 -0
- package/dist/_node-chunks/chunk-TINO74G5.js +21 -0
- package/dist/_node-chunks/chunk-TNJIXE37.js +40 -0
- package/dist/_node-chunks/chunk-TWI4GVH7.js +19 -0
- package/dist/_node-chunks/chunk-U5W53R2J.js +1011 -0
- package/dist/_node-chunks/chunk-UBOGWBEA.js +148 -0
- package/dist/_node-chunks/chunk-UMUBKI6E.js +3787 -0
- package/dist/_node-chunks/chunk-UVINFLGY.js +56 -0
- package/dist/_node-chunks/chunk-V2DY426G.js +1133 -0
- package/dist/_node-chunks/chunk-VLOXOXXE.js +45 -0
- package/dist/_node-chunks/chunk-W4OMYLSP.js +1297 -0
- package/dist/_node-chunks/chunk-WAXVSN3O.js +18 -0
- package/dist/_node-chunks/chunk-WCULS5TP.js +3767 -0
- package/dist/_node-chunks/chunk-WNZ2UMFM.js +153 -0
- package/dist/_node-chunks/chunk-WZJF2OUH.js +74 -0
- package/dist/_node-chunks/chunk-XGIUVY52.js +611 -0
- package/dist/_node-chunks/chunk-XHL2LVBM.js +415 -0
- package/dist/_node-chunks/chunk-XI6B6P47.js +59 -0
- package/dist/_node-chunks/chunk-XLP2ZKXV.js +60 -0
- package/dist/_node-chunks/chunk-YCMRA6RX.js +95 -0
- package/dist/_node-chunks/chunk-YZFWBA5L.js +2700 -0
- package/dist/_node-chunks/chunk-ZMAMXQKP.js +4731 -0
- package/dist/_node-chunks/chunk-ZWBCQ4MJ.js +110 -0
- package/dist/_node-chunks/dist-VTSTZKUB.js +16 -0
- package/dist/_node-chunks/globby-OEMHPBFY.js +2884 -0
- package/dist/_node-chunks/jiti-NFX6UU74.js +3848 -0
- package/dist/_node-chunks/lib-MDVARD7W.js +366 -0
- package/dist/_node-chunks/local-runtime-NTKIN2QT.js +78 -0
- package/dist/_node-chunks/mdx-plugin-MWISDWDQ.js +5680 -0
- package/dist/_node-chunks/monorepo-LIRFMQXE.js +121 -0
- package/dist/_node-chunks/monorepo-optimized-tests-relaxed-limits-no-story-deletion-CPDW4XTW.js +121 -0
- package/dist/_node-chunks/optimized-tests-HDOLR3EY.js +22 -0
- package/dist/_node-chunks/pattern-copy-play-EKHIUAU2.js +807 -0
- package/dist/_node-chunks/postinstallAddon-GYGMWDL6.js +20 -0
- package/dist/_node-chunks/rehype-external-links-BUN3HUCO.js +121 -0
- package/dist/_node-chunks/rehype-slug-PLADX223.js +52 -0
- package/dist/_node-chunks/relaxed-limits-GBHW6KIQ.js +117 -0
- package/dist/_node-chunks/run-KDTIZNSY.js +103 -0
- package/dist/_node-chunks/run-NL66VTNR.js +4532 -0
- package/dist/_node-chunks/session-id-KIIVOQLR.js +23 -0
- package/dist/_node-chunks/setup-MGC7BQO6.js +278 -0
- package/dist/_node-chunks/vitest.config.4.template-JH2THZFG.js +54 -0
- package/dist/actions/decorator.d.ts +7 -0
- package/dist/actions/decorator.js +43 -0
- package/dist/actions/index.d.ts +67 -0
- package/dist/actions/index.js +28 -0
- package/dist/addon-a11y/index.d.ts +52 -0
- package/dist/addon-a11y/index.js +16 -0
- package/dist/addon-a11y/manager.js +1429 -0
- package/dist/addon-a11y/preset.js +18 -0
- package/dist/addon-a11y/preview.d.ts +17 -0
- package/dist/addon-a11y/preview.js +15 -0
- package/dist/addon-docs/blocks.d.ts +1061 -0
- package/dist/addon-docs/blocks.js +2461 -0
- package/dist/addon-docs/index.d.ts +236 -0
- package/dist/addon-docs/index.js +16 -0
- package/dist/addon-docs/manager.js +90 -0
- package/dist/addon-docs/mdx-react-shim.d.ts +1 -0
- package/dist/addon-docs/mdx-react-shim.js +2 -0
- package/dist/addon-docs/preset.js +378 -0
- package/dist/addon-docs/preview.d.ts +4 -0
- package/dist/addon-docs/preview.js +7 -0
- package/dist/addon-links/index.d.ts +22 -0
- package/dist/addon-links/index.js +20 -0
- package/dist/addon-links/manager.js +14 -0
- package/dist/addon-links/preview.d.ts +6 -0
- package/dist/addon-links/preview.js +9 -0
- package/dist/addon-links/react/index.d.ts +25 -0
- package/dist/addon-links/react/index.js +52 -0
- package/dist/addon-mcp/preset.js +1345 -0
- package/dist/addon-mcp/preview.js +29 -0
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +1153 -0
- package/dist/addon-ondevice-actions/index.d.ts +4 -0
- package/dist/addon-ondevice-actions/index.js +7 -0
- package/dist/addon-ondevice-actions/register.js +7 -0
- package/dist/addon-ondevice-controls/index.d.ts +6 -0
- package/dist/addon-ondevice-controls/index.js +14 -0
- package/dist/addon-ondevice-controls/register.js +10 -0
- package/dist/addon-pseudo-states/index.d.ts +35 -0
- package/dist/addon-pseudo-states/index.js +15 -0
- package/dist/addon-pseudo-states/manager.js +53 -0
- package/dist/addon-pseudo-states/preview.d.ts +9 -0
- package/dist/addon-pseudo-states/preview.js +10 -0
- package/dist/addon-themes/index.d.ts +80 -0
- package/dist/addon-themes/index.js +104 -0
- package/dist/addon-themes/manager.js +97 -0
- package/dist/addon-themes/postinstall.js +33 -0
- package/dist/addon-themes/preview.d.ts +6 -0
- package/dist/addon-themes/preview.js +8 -0
- package/dist/addon-vitest/constants.d.ts +132 -0
- package/dist/addon-vitest/constants.js +66 -0
- package/dist/addon-vitest/index.d.ts +4 -0
- package/dist/addon-vitest/index.js +8 -0
- package/dist/addon-vitest/manager.js +665 -0
- package/dist/addon-vitest/node/coverage-reporter.js +1284 -0
- package/dist/addon-vitest/node/vitest.js +674 -0
- package/dist/addon-vitest/postinstall.js +24 -0
- package/dist/addon-vitest/preset.js +943 -0
- package/dist/addon-vitest/vitest-plugin/global-setup.js +162 -0
- package/dist/addon-vitest/vitest-plugin/index.d.ts +56 -0
- package/dist/addon-vitest/vitest-plugin/index.js +463 -0
- package/dist/addon-vitest/vitest-plugin/setup-file-with-project-annotations.js +9 -0
- package/dist/addon-vitest/vitest-plugin/setup-file.browser.4.js +20 -0
- package/dist/addon-vitest/vitest-plugin/setup-file.js +50 -0
- package/dist/addon-vitest/vitest-plugin/test-utils.js +128 -0
- package/dist/babel/index.d.ts +2301 -0
- package/dist/babel/index.js +61 -0
- package/dist/backgrounds/index.d.ts +6 -0
- package/dist/backgrounds/index.js +15 -0
- package/dist/bin/core.js +1705 -0
- package/dist/bin/dispatcher.js +43 -0
- package/dist/bin/loader.js +115 -0
- package/dist/builder-vite/index.d.ts +50 -0
- package/dist/builder-vite/index.js +245 -0
- package/dist/builder-vite/preset.js +27 -0
- package/dist/channels/index.d.ts +2 -0
- package/dist/channels/index.js +352 -0
- package/dist/chunk-B2t1tGRh.d.ts +284 -0
- package/dist/chunk-BCoJQE-f.d.ts +602 -0
- package/dist/chunk-BGkgZp-H.d.ts +214 -0
- package/dist/chunk-BTVrWliM.d.ts +115 -0
- package/dist/chunk-BXLImeLy.d.ts +197 -0
- package/dist/chunk-BfBzpgct.d.ts +916 -0
- package/dist/chunk-Bpi2tz-6.d.ts +511 -0
- package/dist/chunk-BxWufQms.d.ts +142 -0
- package/dist/chunk-C-bavsOH.d.ts +34 -0
- package/dist/chunk-C2p5r3Vt.d.ts +13001 -0
- package/dist/chunk-C6PAgHLT.d.ts +12 -0
- package/dist/chunk-CMeX4WRe.d.ts +179 -0
- package/dist/chunk-Ct9xd6IM.d.ts +65 -0
- package/dist/chunk-CwQKNaYL.d.ts +15 -0
- package/dist/chunk-D7DwV41f.d.ts +3622 -0
- package/dist/chunk-DEVFdzxR.d.ts +253 -0
- package/dist/chunk-DaVb55-_.d.ts +124 -0
- package/dist/chunk-DgRNfmj_.d.ts +40 -0
- package/dist/chunk-DoIGKY33.d.ts +666 -0
- package/dist/chunk-Dr3R0DXk.d.ts +40 -0
- package/dist/chunk-DtHByo32.d.ts +55 -0
- package/dist/chunk-Dw1z1Pki.d.ts +933 -0
- package/dist/chunk-DzuY9DXg.d.ts +79 -0
- package/dist/chunk-FjDVzZTj.d.ts +62 -0
- package/dist/chunk-Kt1tW-D1.d.ts +59 -0
- package/dist/chunk-XP8oHzpE.d.ts +6 -0
- package/dist/chunk-gCX81nOr.d.ts +61 -0
- package/dist/chunk-pcFXCimE.d.ts +741 -0
- package/dist/cli/index.d.ts +1174 -0
- package/dist/cli/index.js +5613 -0
- package/dist/cli/skills/content/index.d.ts +72 -0
- package/dist/cli/skills/content/index.js +335 -0
- package/dist/cli/tools/sdk/child-host.d.ts +61 -0
- package/dist/cli/tools/sdk/child-host.js +131 -0
- package/dist/cli/tools/sdk/index.d.ts +137 -0
- package/dist/cli/tools/sdk/index.js +44 -0
- package/dist/cli-commands/bin/index.js +25 -0
- package/dist/client-logger/index.d.ts +31 -0
- package/dist/client-logger/index.js +63 -0
- package/dist/common/index.d.ts +1103 -0
- package/dist/common/index.js +364 -0
- package/dist/components/index.d.ts +1924 -0
- package/dist/components/index.js +13759 -0
- package/dist/core-events/index.d.ts +155 -0
- package/dist/core-events/index.js +136 -0
- package/dist/core-server/index.d.ts +2200 -0
- package/dist/core-server/index.js +4165 -0
- package/dist/core-server/presets/common-manager.css +170 -0
- package/dist/core-server/presets/common-manager.js +4168 -0
- package/dist/core-server/presets/common-override-preset.js +81 -0
- package/dist/core-server/presets/common-preset.js +2187 -0
- package/dist/create/bin/index.js +23 -0
- package/dist/create/index.js +25 -0
- package/dist/csf/csf-utils.d.ts +2 -0
- package/dist/csf/csf-utils.js +19 -0
- package/dist/csf/index.d.ts +7 -0
- package/dist/csf/index.js +2142 -0
- package/dist/csf-tools/index.d.ts +1157 -0
- package/dist/csf-tools/index.js +736 -0
- package/dist/docs-tools/index.d.ts +197 -0
- package/dist/docs-tools/index.js +61 -0
- package/dist/highlight/index.d.ts +10 -0
- package/dist/highlight/index.js +15 -0
- package/dist/instrumenter/index.d.ts +113 -0
- package/dist/instrumenter/index.js +2595 -0
- package/dist/manager/_manager-chunks/globals-runtime-8HkdnU2F.js +6144 -0
- package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +3389 -0
- package/dist/manager/_manager-chunks/globals-runtime-BdGkqNEt.js +45 -0
- package/dist/manager/_manager-chunks/globals-runtime-BmphMP6z.js +1190 -0
- package/dist/manager/_manager-chunks/globals-runtime-BvM-NY2g.js +13307 -0
- package/dist/manager/_manager-chunks/globals-runtime-C02fvgcd.js +9243 -0
- package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +9766 -0
- package/dist/manager/_manager-chunks/globals-runtime-DpNYC-qi.js +5564 -0
- package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +5357 -0
- package/dist/manager/_manager-chunks/globals-runtime-DwFqpqya.js +722 -0
- package/dist/manager/_manager-chunks/globals-runtime-FC201B7s.js +6837 -0
- package/dist/manager/_manager-chunks/globals-runtime-Rp_zjGnh.js +121 -0
- package/dist/manager/_manager-chunks/globals-runtime-ZHrQFa3-.js +10463 -0
- package/dist/manager/_manager-chunks/globals-runtime-eLPTIfX-.js +7759 -0
- package/dist/manager/_manager-chunks/globals-runtime-qKvCZHFY.js +4468 -0
- package/dist/manager/_manager-chunks/globals-runtime-sGpNlIJ1.js +5102 -0
- package/dist/manager/_manager-chunks/runtime-B1L9TH89.js +452 -0
- package/dist/manager/_manager-chunks/runtime-BK0zF7FN.js +22 -0
- package/dist/manager/_manager-chunks/runtime-BhkT2CXl.js +1408 -0
- package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +998 -0
- package/dist/manager/_manager-chunks/runtime-D0UOWx0U.js +979 -0
- package/dist/manager/_manager-chunks/runtime-D94Vq3oR.js +4014 -0
- package/dist/manager/_manager-chunks/runtime-DMig8mT7.js +77 -0
- package/dist/manager/_manager-chunks/runtime-EITvVbkG.js +46 -0
- package/dist/manager/_manager-chunks/runtime-cp5pazY2.js +8936 -0
- package/dist/manager/_manager-chunks/runtime-eDVAYF7N.js +6860 -0
- package/dist/manager/_manager-chunks/runtime-i-PDAHLR.js +2493 -0
- package/dist/manager/globals-runtime.js +2 -0
- package/dist/manager/globals.d.ts +23 -0
- package/dist/manager/globals.js +26 -0
- package/dist/manager/manager-stores.d.ts +2 -0
- package/dist/manager/manager-stores.js +19 -0
- package/dist/manager/runtime.js +2 -0
- package/dist/manager-api/index.d.ts +2 -0
- package/dist/manager-api/index.js +3257 -0
- package/dist/manager-errors.d.ts +89 -0
- package/dist/manager-errors.js +20 -0
- package/dist/mcp/index.d.ts +270 -0
- package/dist/mcp/index.js +305 -0
- package/dist/mocking-utils/index.d.ts +689 -0
- package/dist/mocking-utils/index.js +521 -0
- package/dist/mocking-utils/mocker-runtime.js +1254 -0
- package/dist/nextjs-vite/config/preview.js +3 -0
- package/dist/nextjs-vite/export-mocks/cache/index.d.ts +25 -0
- package/dist/nextjs-vite/export-mocks/cache/index.js +29 -0
- package/dist/nextjs-vite/export-mocks/headers/index.d.ts +37 -0
- package/dist/nextjs-vite/export-mocks/headers/index.js +54 -0
- package/dist/nextjs-vite/export-mocks/link/index.d.ts +9 -0
- package/dist/nextjs-vite/export-mocks/link/index.js +59 -0
- package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +28 -0
- package/dist/nextjs-vite/export-mocks/navigation/index.js +58 -0
- package/dist/nextjs-vite/export-mocks/router/index.d.ts +34 -0
- package/dist/nextjs-vite/export-mocks/router/index.js +63 -0
- package/dist/nextjs-vite/index.d.ts +92 -0
- package/dist/nextjs-vite/index.js +58 -0
- package/dist/nextjs-vite/node/index.d.ts +6 -0
- package/dist/nextjs-vite/node/index.js +20 -0
- package/dist/nextjs-vite/preset.js +648 -0
- package/dist/nextjs-vite/preview.d.ts +20 -0
- package/dist/nextjs-vite/preview.js +11 -0
- package/dist/nextjs-vite/vite-plugin/index.d.ts +6 -0
- package/dist/nextjs-vite/vite-plugin/index.js +19 -0
- package/dist/nextjs-vite-plugin/index.d.ts +28 -0
- package/dist/nextjs-vite-plugin/index.js +923 -0
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +29 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/image-context.js +8 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/image-default-loader.js +23 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-image.js +28 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.js +17 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/cache/index.js +29 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/dynamic/index.js +40 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/headers/index.js +55 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/link/index.js +63 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/navigation/index.js +71 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +74 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/rsc/server-only.js +7 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/safe-stable-stringify/index.js +13 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/compatibility/draft-mode.compat.js +7 -0
- package/dist/node-logger/index.d.ts +495 -0
- package/dist/node-logger/index.js +42 -0
- package/dist/oxc-parser/index.d.ts +99 -0
- package/dist/oxc-parser/index.js +275 -0
- package/dist/oxc-parser/worker.js +37 -0
- package/dist/preview/_chunks/runtime-BIzIdDbb.js +10263 -0
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +1102 -0
- package/dist/preview/_chunks/runtime-BZSnICCg.js +8484 -0
- package/dist/preview/_chunks/runtime-BdGkqNEt.js +45 -0
- package/dist/preview/_chunks/runtime-BwSxqk3t.js +63 -0
- package/dist/preview/_chunks/runtime-CqHxptiK.js +6143 -0
- package/dist/preview/_chunks/runtime-CsV4HZPV.js +5064 -0
- package/dist/preview/_chunks/runtime-CxZK_Ln3.js +284 -0
- package/dist/preview/_chunks/runtime-DZToXfvO.js +9767 -0
- package/dist/preview/_chunks/runtime-DrTjJkPY.js +3872 -0
- package/dist/preview/_chunks/runtime-DuHdxMFA.js +387 -0
- package/dist/preview/_chunks/runtime-iXdo8CR8.js +3635 -0
- package/dist/preview/_chunks/runtime-q3wt0e_N.js +6838 -0
- package/dist/preview/globals.d.ts +16 -0
- package/dist/preview/globals.js +20 -0
- package/dist/preview/runtime.js +6 -0
- package/dist/preview-api/index.d.ts +4 -0
- package/dist/preview-api/index.js +147 -0
- package/dist/preview-errors.d.ts +186 -0
- package/dist/preview-errors.js +56 -0
- package/dist/react/docgen/docgen-worker.js +38 -0
- package/dist/react/entry-preview-argtypes.js +9 -0
- package/dist/react/entry-preview-docs.js +12 -0
- package/dist/react/entry-preview-rsc.js +11 -0
- package/dist/react/entry-preview.js +21 -0
- package/dist/react/index.d.ts +119 -0
- package/dist/react/index.js +26 -0
- package/dist/react/preset.js +301 -0
- package/dist/react/preview.d.ts +2 -0
- package/dist/react/preview.js +11 -0
- package/dist/react-native/bin/get-stories.js +34 -0
- package/dist/react-native/index.d.ts +160 -0
- package/dist/react-native/index.js +1547 -0
- package/dist/react-native/metro/node.d.ts +83 -0
- package/dist/react-native/metro/node.js +21 -0
- package/dist/react-native/metro/withStorybook.d.ts +2269 -0
- package/dist/react-native/metro/withStorybook.js +138 -0
- package/dist/react-native/preview.d.ts +6 -0
- package/dist/react-native/preview.js +20 -0
- package/dist/react-native/scripts/generate.d.ts +22 -0
- package/dist/react-native/scripts/generate.js +18 -0
- package/dist/react-native/stub.js +20 -0
- package/dist/react-native-theming/index.d.ts +175 -0
- package/dist/react-native-theming/index.js +2591 -0
- package/dist/react-native-ui/index.d.ts +130 -0
- package/dist/react-native-ui/index.js +1448 -0
- package/dist/react-native-ui-common/index.d.ts +230 -0
- package/dist/react-native-ui-common/index.js +514 -0
- package/dist/react-vite/index.d.ts +4 -0
- package/dist/react-vite/index.js +8 -0
- package/dist/react-vite/node/index.d.ts +6 -0
- package/dist/react-vite/node/index.js +20 -0
- package/dist/react-vite/preset.d.ts +6 -0
- package/dist/react-vite/preset.js +21 -0
- package/dist/router/index.d.ts +141 -0
- package/dist/router/index.js +1217 -0
- package/dist/server-errors.d.ts +2 -0
- package/dist/server-errors.js +149 -0
- package/dist/shared/open-service/index.d.ts +3 -0
- package/dist/shared/open-service/index.js +115 -0
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +75 -0
- package/dist/shared/open-service/toolsets/docs/public.d.ts +1296 -0
- package/dist/shared/open-service/toolsets/docs/public.js +991 -0
- package/dist/telemetry/index.d.ts +314 -0
- package/dist/telemetry/index.js +103 -0
- package/dist/test/index.d.ts +158 -0
- package/dist/test/index.js +19421 -0
- package/dist/theming/create.d.ts +15 -0
- package/dist/theming/create.js +11 -0
- package/dist/theming/index.d.ts +54 -0
- package/dist/theming/index.js +511 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +48 -0
- package/dist/viewport/index.d.ts +275 -0
- package/dist/viewport/index.js +21 -0
- package/package.json +1054 -4
- package/template/nextjs-vite/cli/.eslintrc.json +6 -0
- package/template/nextjs-vite/cli/js/Button.jsx +42 -0
- package/template/nextjs-vite/cli/js/Button.stories.js +49 -0
- package/template/nextjs-vite/cli/js/Configure.mdx +470 -0
- package/template/nextjs-vite/cli/js/Header.jsx +58 -0
- package/template/nextjs-vite/cli/js/Header.stories.js +30 -0
- package/template/nextjs-vite/cli/js/Page.jsx +68 -0
- package/template/nextjs-vite/cli/js/Page.stories.js +28 -0
- package/template/nextjs-vite/cli/ts/Button.stories.ts +54 -0
- package/template/nextjs-vite/cli/ts/Button.tsx +39 -0
- package/template/nextjs-vite/cli/ts/Configure.mdx +446 -0
- package/template/nextjs-vite/cli/ts/Header.stories.ts +34 -0
- package/template/nextjs-vite/cli/ts/Header.tsx +54 -0
- package/template/nextjs-vite/cli/ts/Page.stories.ts +33 -0
- package/template/nextjs-vite/cli/ts/Page.tsx +73 -0
- package/template/react/cli/.eslintrc.json +5 -0
- package/template/react/cli/js/Button.jsx +39 -0
- package/template/react/cli/js/Button.stories.js +49 -0
- package/template/react/cli/js/Header.jsx +56 -0
- package/template/react/cli/js/Header.stories.js +29 -0
- package/template/react/cli/js/Page.jsx +69 -0
- package/template/react/cli/js/Page.stories.js +28 -0
- package/template/react/cli/ts/Button.stories.ts +54 -0
- package/template/react/cli/ts/Button.tsx +37 -0
- package/template/react/cli/ts/Header.stories.ts +34 -0
- package/template/react/cli/ts/Header.tsx +56 -0
- package/template/react/cli/ts/Page.stories.ts +33 -0
- package/template/react/cli/ts/Page.tsx +73 -0
- package/template/react-vite/cli/.eslintrc.json +5 -0
- package/template/react-vite/cli/js/Button.jsx +39 -0
- package/template/react-vite/cli/js/Button.stories.js +49 -0
- package/template/react-vite/cli/js/Header.jsx +56 -0
- package/template/react-vite/cli/js/Header.stories.js +29 -0
- package/template/react-vite/cli/js/Page.jsx +69 -0
- package/template/react-vite/cli/js/Page.stories.js +28 -0
- package/template/react-vite/cli/ts/Button.stories.ts +54 -0
- package/template/react-vite/cli/ts/Button.tsx +37 -0
- package/template/react-vite/cli/ts/Header.stories.ts +34 -0
- package/template/react-vite/cli/ts/Header.tsx +56 -0
- package/template/react-vite/cli/ts/Page.stories.ts +33 -0
- package/template/react-vite/cli/ts/Page.tsx +73 -0
|
@@ -0,0 +1,1174 @@
|
|
|
1
|
+
import { bs as SupportedFramework$1, ds as StorybookConfigRaw$1, xs as SupportedBuilder$1, ys as SupportedRenderer$1 } from "../chunk-C2p5r3Vt.js";
|
|
2
|
+
import { t as JsPackageManager$1 } from "../chunk-B2t1tGRh.js";
|
|
3
|
+
import { Feature, SupportedBuilder, SupportedFramework, SupportedLanguage, SupportedRenderer } from "@aussieljk/forkbook/internal/types";
|
|
4
|
+
import { JsPackageManager, PackageJson as PackageJson$1, PackageManagerName } from "@aussieljk/forkbook/internal/common";
|
|
5
|
+
import { CsfValue } from "@aussieljk/forkbook/internal/csf-tools";
|
|
6
|
+
|
|
7
|
+
//#region .dts-emit/code/core/src/cli/helpers.d.ts
|
|
8
|
+
declare function readFileAsJson(jsonPath: string, allowComments?: boolean): any;
|
|
9
|
+
declare const writeFileAsJson: (jsonPath: string, content: unknown) => boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Detect if any babel dependencies need to be added to the project This is currently used by
|
|
12
|
+
* react-native generator
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
*
|
|
16
|
+
* ```ts
|
|
17
|
+
* const babelDependencies = await getBabelDependencies(
|
|
18
|
+
* packageManager,
|
|
19
|
+
* npmOptions,
|
|
20
|
+
* packageJson
|
|
21
|
+
* ); // you can then spread the result when using installDependencies
|
|
22
|
+
* installDependencies(npmOptions, [
|
|
23
|
+
* `@aussieljk/forkbook/react@${storybookVersion}`,
|
|
24
|
+
* ...babelDependencies,
|
|
25
|
+
* ]);
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @param packageJson The current package.json so we can inspect its contents
|
|
29
|
+
* @returns Contains the packages and versions that need to be installed
|
|
30
|
+
*/
|
|
31
|
+
declare function getBabelDependencies(packageManager: JsPackageManager): Promise<string[]>;
|
|
32
|
+
declare function addToDevDependenciesIfNotPresent(packageJson: PackageJson$1, name: string, packageVersion: string): void;
|
|
33
|
+
declare function copyTemplate(templateRoot: string, destination?: string): void;
|
|
34
|
+
type CopyTemplateFilesOptions = {
|
|
35
|
+
packageManager: JsPackageManager;
|
|
36
|
+
templateLocation: SupportedFramework | SupportedRenderer;
|
|
37
|
+
language: SupportedLanguage;
|
|
38
|
+
commonAssetsDir?: string;
|
|
39
|
+
destination?: string;
|
|
40
|
+
features: Set<Feature>;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Return the installed version of a package, or the coerced version specifier from package.json if
|
|
44
|
+
* it's a dependency but not installed (e.g. in a fresh project)
|
|
45
|
+
*/
|
|
46
|
+
declare function getVersionSafe(packageManager: JsPackageManager, packageName: string): Promise<string | undefined>;
|
|
47
|
+
declare const cliStoriesTargetPath: () => Promise<"./src/stories" | "./stories">;
|
|
48
|
+
declare function copyTemplateFiles({
|
|
49
|
+
packageManager,
|
|
50
|
+
templateLocation,
|
|
51
|
+
language,
|
|
52
|
+
destination,
|
|
53
|
+
commonAssetsDir,
|
|
54
|
+
features
|
|
55
|
+
}: CopyTemplateFilesOptions): Promise<void>;
|
|
56
|
+
declare function adjustTemplate(templatePath: string, templateData: Record<string, any>): Promise<void>;
|
|
57
|
+
declare function coerceSemver(version: string): import("semver").SemVer;
|
|
58
|
+
declare function hasStorybookDependencies(packageManager: JsPackageManager): boolean;
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region .dts-emit/code/core/src/cli/dirs.d.ts
|
|
61
|
+
/** The folder with the CLI templates (example stories) of a framework or renderer, if it has one. */
|
|
62
|
+
declare function getRendererDir(renderer: SupportedFramework | SupportedRenderer): string | null;
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region .dts-emit/code/core/src/cli/projectTypes.d.ts
|
|
65
|
+
declare enum ProjectType {
|
|
66
|
+
NEXTJS = "nextjs",
|
|
67
|
+
NX = "nx",
|
|
68
|
+
REACT = "react",
|
|
69
|
+
REACT_NATIVE = "react_native",
|
|
70
|
+
UNDETECTED = "undetected",
|
|
71
|
+
UNSUPPORTED = "unsupported"
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region .dts-emit/code/core/src/cli/NpmOptions.d.ts
|
|
75
|
+
type NpmOptions = Parameters<JsPackageManager$1['addDependencies']>[0];
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region .dts-emit/code/core/src/cli/eslintPlugin.d.ts
|
|
78
|
+
declare const SUPPORTED_ESLINT_EXTENSIONS: string[];
|
|
79
|
+
declare const findEslintFile: (instanceDir: string) => string | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Add the recommended Forkbook config to an ESLint flat config, written as `export default` or
|
|
82
|
+
* `module.exports =`. Supported config shapes:
|
|
83
|
+
*
|
|
84
|
+
* 1. `[...]`
|
|
85
|
+
* 2. `defineConfig([...])` from `eslint/config`
|
|
86
|
+
* 3. `tseslint.config(...)` from `typescript-eslint`
|
|
87
|
+
* 4. A top-level variable holding one of the above
|
|
88
|
+
*
|
|
89
|
+
* For any other ES module config, only the import is added. Any other CommonJS config is left
|
|
90
|
+
* unchanged, with a warning to add the Forkbook config manually.
|
|
91
|
+
*/
|
|
92
|
+
declare const configureFlatConfig: (code: string, configFile: string) => Promise<string>;
|
|
93
|
+
declare function extractEslintInfo(packageManager: JsPackageManager): Promise<{
|
|
94
|
+
hasEslint: boolean;
|
|
95
|
+
isStorybookPluginInstalled: boolean;
|
|
96
|
+
eslintConfigFile: string | undefined;
|
|
97
|
+
unsupportedExtension?: string;
|
|
98
|
+
isFlatConfig: boolean;
|
|
99
|
+
}>;
|
|
100
|
+
declare const normalizeExtends: (existingExtends: CsfValue) => string[];
|
|
101
|
+
declare function configureEslintPlugin({
|
|
102
|
+
eslintConfigFile,
|
|
103
|
+
packageManager,
|
|
104
|
+
isFlatConfig
|
|
105
|
+
}: {
|
|
106
|
+
eslintConfigFile: string | undefined;
|
|
107
|
+
packageManager: JsPackageManager;
|
|
108
|
+
isFlatConfig: boolean;
|
|
109
|
+
}): Promise<void>;
|
|
110
|
+
declare const suggestESLintPlugin: () => Promise<boolean>;
|
|
111
|
+
//#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
|
+
//#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
|
+
}>;
|
|
971
|
+
declare function globalSettings(filePath?: string): Promise<Settings>;
|
|
972
|
+
declare function _clearGlobalSettings(): void;
|
|
973
|
+
/**
|
|
974
|
+
* A class for reading and writing settings from a JSON file. Supports nested settings with dot
|
|
975
|
+
* notation.
|
|
976
|
+
*/
|
|
977
|
+
declare class Settings {
|
|
978
|
+
private filePath;
|
|
979
|
+
value: TypeOf<typeof userSettingSchema>;
|
|
980
|
+
/**
|
|
981
|
+
* Create a new Settings instance
|
|
982
|
+
*
|
|
983
|
+
* @param filePath Path to the JSON settings file
|
|
984
|
+
* @param value Loaded value of settings
|
|
985
|
+
*/
|
|
986
|
+
constructor(filePath: string, value: TypeOf<typeof userSettingSchema>);
|
|
987
|
+
/** Save settings to the file */
|
|
988
|
+
save(): Promise<void>;
|
|
989
|
+
}
|
|
990
|
+
//#endregion
|
|
991
|
+
//#region .dts-emit/code/core/src/cli/AddonVitestService.d.ts
|
|
992
|
+
type Result$1 = {
|
|
993
|
+
compatible: boolean;
|
|
994
|
+
reasons?: string[];
|
|
995
|
+
};
|
|
996
|
+
interface AddonVitestCompatibilityOptions {
|
|
997
|
+
builder?: SupportedBuilder$1;
|
|
998
|
+
framework?: SupportedFramework$1 | null;
|
|
999
|
+
projectRoot?: string;
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* Whether an unpinned `latest` Vitest install can resolve for this project. The latest Vitest
|
|
1003
|
+
* major declares LATEST_VITEST_TYPES_NODE_PEER as an optional `@types/node` peer; a project whose
|
|
1004
|
+
* own `@types/node` range never intersects that range (e.g. create-next-app scaffolds pinning
|
|
1005
|
+
* `@types/node@^20`) hard-fails npm's peer resolution, so `latest` must be skipped in favor of
|
|
1006
|
+
* VITEST_FALLBACK_SPECIFIER. No declared `@types/node` at all means nothing to conflict with.
|
|
1007
|
+
* Unparseable specifiers (pnpm `catalog:` references) cannot be checked for peer compatibility,
|
|
1008
|
+
* so they also fall back rather than risk an ERESOLVE — or throw on an invalid comparator.
|
|
1009
|
+
*/
|
|
1010
|
+
declare const canInstallLatestVitest: (allDependencies: Record<string, string>) => boolean;
|
|
1011
|
+
/**
|
|
1012
|
+
* Centralized service for @aussieljk/forkbook/addon-vitest dependency collection and compatibility
|
|
1013
|
+
* validation
|
|
1014
|
+
*
|
|
1015
|
+
* This service consolidates logic from:
|
|
1016
|
+
*
|
|
1017
|
+
* - Code/addons/vitest/src/postinstall.ts
|
|
1018
|
+
* - Code/lib/create-storybook/src/addon-dependencies/addon-vitest.ts
|
|
1019
|
+
* - Code/lib/create-storybook/src/services/FeatureCompatibilityService.ts
|
|
1020
|
+
*/
|
|
1021
|
+
declare class AddonVitestService {
|
|
1022
|
+
private readonly packageManager;
|
|
1023
|
+
constructor(packageManager: JsPackageManager);
|
|
1024
|
+
/**
|
|
1025
|
+
* Reduce a Vitest version specifier (exact or range) to a single concrete version for
|
|
1026
|
+
* `semver.satisfies` comparisons, so dependency collection and postinstall template selection make
|
|
1027
|
+
* the same major/minor decision. Uses the lower bound of a valid range, then coerces so a
|
|
1028
|
+
* prerelease like `4.0.0-beta.1` is treated as `4.0.0` rather than failing `>=4.0.0`.
|
|
1029
|
+
*/
|
|
1030
|
+
static getComparableVersion(specifier: string | null | undefined): string | undefined;
|
|
1031
|
+
/**
|
|
1032
|
+
* Collect all dependencies needed for @aussieljk/forkbook/addon-vitest
|
|
1033
|
+
*
|
|
1034
|
+
* Returns versioned package strings ready for installation:
|
|
1035
|
+
*
|
|
1036
|
+
* - Base packages: vitest, @vitest/browser-playwright, playwright
|
|
1037
|
+
* - Next.js specific: @aussieljk/forkbook/nextjs-vite
|
|
1038
|
+
* - Coverage reporter: @vitest/coverage-v8
|
|
1039
|
+
*/
|
|
1040
|
+
collectDependencies(): Promise<string[]>;
|
|
1041
|
+
/**
|
|
1042
|
+
* Install Playwright browser binaries for @aussieljk/forkbook/addon-vitest
|
|
1043
|
+
*
|
|
1044
|
+
* Installs Chromium via `npx playwright install chromium`. In CI environments and on
|
|
1045
|
+
* macOS/Windows (officially supported platforms), also installs system-level browser dependencies
|
|
1046
|
+
* via `--with-deps`. On other platforms (e.g. Linux), `--with-deps` is omitted to avoid requiring
|
|
1047
|
+
* `sudo` — system packages are typically managed by the distro package manager.
|
|
1048
|
+
*
|
|
1049
|
+
* @param packageManager - The package manager to use for installation
|
|
1050
|
+
* @param prompt - The prompt instance for displaying progress
|
|
1051
|
+
* @param logger - The logger instance for displaying messages
|
|
1052
|
+
* @param options - Installation options
|
|
1053
|
+
* @returns Array of error messages if installation fails
|
|
1054
|
+
*/
|
|
1055
|
+
installPlaywright(options?: {
|
|
1056
|
+
yes?: boolean; /** Is set to true if Forkbook didn't install the dependencies yet */
|
|
1057
|
+
useRemotePkg?: boolean;
|
|
1058
|
+
}): Promise<{
|
|
1059
|
+
errors: string[];
|
|
1060
|
+
result: 'installed' | 'skipped' | 'aborted' | 'failed';
|
|
1061
|
+
}>;
|
|
1062
|
+
/**
|
|
1063
|
+
* Validate full compatibility for @aussieljk/forkbook/addon-vitest
|
|
1064
|
+
*
|
|
1065
|
+
* Checks:
|
|
1066
|
+
*
|
|
1067
|
+
* - Webpack configuration compatibility
|
|
1068
|
+
* - Builder compatibility (Vite or Next.js)
|
|
1069
|
+
* - Renderer/framework support
|
|
1070
|
+
* - Vitest version (>=4.0.0)
|
|
1071
|
+
* - MSW version (>=2.0.0 if installed)
|
|
1072
|
+
* - Next.js installation (if using @storybook/nextjs)
|
|
1073
|
+
* - Vitest config files (if configDir provided)
|
|
1074
|
+
*/
|
|
1075
|
+
validateCompatibility(options: AddonVitestCompatibilityOptions): Promise<Result$1>;
|
|
1076
|
+
/**
|
|
1077
|
+
* Validate package versions for addon-vitest compatibility Public method to allow early
|
|
1078
|
+
* validation before framework detection
|
|
1079
|
+
*/
|
|
1080
|
+
validatePackageVersions(): Promise<Result$1>;
|
|
1081
|
+
/**
|
|
1082
|
+
* Validate vitest config files for addon compatibility
|
|
1083
|
+
*
|
|
1084
|
+
* Public method that can be used by both postinstall and @aussieljk/forkbook/internal/create flows
|
|
1085
|
+
*/
|
|
1086
|
+
validateConfigFiles(directory: string): Promise<Result$1>;
|
|
1087
|
+
}
|
|
1088
|
+
//#endregion
|
|
1089
|
+
//#region .dts-emit/code/core/src/cli/installSkills.d.ts
|
|
1090
|
+
type SkillsSource = 'ai-feature' | 'refresh';
|
|
1091
|
+
type SkillsInstallResult = {
|
|
1092
|
+
result: 'installed' | 'skipped' | 'failed';
|
|
1093
|
+
source: SkillsSource | 'ci';
|
|
1094
|
+
exitCode?: number;
|
|
1095
|
+
};
|
|
1096
|
+
/**
|
|
1097
|
+
* Whether init and upgrade offer the skills for this project: the frameworks that have, or are
|
|
1098
|
+
* getting, a docgen server for the docs workflow of the skills.
|
|
1099
|
+
*/
|
|
1100
|
+
declare function supportsSkills(renderer: SupportedRenderer | undefined, framework: SupportedFramework | null | undefined): boolean;
|
|
1101
|
+
/** Whether `forkbook skills setup` supports this project, so init can print its prompt. */
|
|
1102
|
+
declare function supportsAiSetup(renderer: SupportedRenderer | undefined, builder: SupportedBuilder | undefined, framework: SupportedFramework | null | undefined): boolean;
|
|
1103
|
+
/** Whether the project has skills from the official Forkbook skills repository installed. */
|
|
1104
|
+
declare function hasStorybookSkills(): Promise<boolean>;
|
|
1105
|
+
/**
|
|
1106
|
+
* Install the official Forkbook skills into the project root through Vercel's `skills` CLI.
|
|
1107
|
+
*
|
|
1108
|
+
* Never runs in CI, and a failed install is reported in the result instead of thrown.
|
|
1109
|
+
*/
|
|
1110
|
+
declare function installSkills({
|
|
1111
|
+
packageManager,
|
|
1112
|
+
source,
|
|
1113
|
+
stdio
|
|
1114
|
+
}: {
|
|
1115
|
+
packageManager: JsPackageManager;
|
|
1116
|
+
source: SkillsSource; /** `pipe` keeps the `skills` CLI output out of a running task log. */
|
|
1117
|
+
stdio?: 'inherit' | 'pipe';
|
|
1118
|
+
}): Promise<SkillsInstallResult>;
|
|
1119
|
+
//#endregion
|
|
1120
|
+
//#region .dts-emit/code/core/src/cli/detectLanguage.d.ts
|
|
1121
|
+
/**
|
|
1122
|
+
* Detect whether the project should be treated as TypeScript or JavaScript. The js/tsconfig lookup
|
|
1123
|
+
* happens in `workingDir`, which defaults to the process cwd for callers (like `forkbook init`)
|
|
1124
|
+
* that already run from the project root.
|
|
1125
|
+
*/
|
|
1126
|
+
declare function detectLanguage(packageManager: JsPackageManager, workingDir?: string): Promise<SupportedLanguage>;
|
|
1127
|
+
/** Check installed tooling versions for TypeScript compatibility constraints */
|
|
1128
|
+
declare function detectIncompatiblePackageVersions(packageManager: JsPackageManager): Promise<string[]>;
|
|
1129
|
+
//#endregion
|
|
1130
|
+
//#region .dts-emit/code/core/src/cli/getStorybookData.d.ts
|
|
1131
|
+
/**
|
|
1132
|
+
* The project directory the config dir lives in, used to resolve story globs and to locate
|
|
1133
|
+
* `tsconfig.json`/`jsconfig.json` for language detection. Taking `dirname` before resolving (not
|
|
1134
|
+
* after) keeps `--config-dir .` anchored to the project root instead of its parent.
|
|
1135
|
+
*/
|
|
1136
|
+
declare function getWorkingDir(configDir: string): string;
|
|
1137
|
+
/**
|
|
1138
|
+
* Gathers the project metadata CLI commands need from the target Forkbook: config, framework,
|
|
1139
|
+
* package manager, installed version, and story paths. The canonical collector — `add` and
|
|
1140
|
+
* `skills setup` consume it.
|
|
1141
|
+
*/
|
|
1142
|
+
declare const getStorybookData: ({
|
|
1143
|
+
configDir: userDefinedConfigDir,
|
|
1144
|
+
packageManagerName,
|
|
1145
|
+
skipCache
|
|
1146
|
+
}: {
|
|
1147
|
+
configDir?: string;
|
|
1148
|
+
packageManagerName?: PackageManagerName;
|
|
1149
|
+
/**
|
|
1150
|
+
* Skip the module cache when reading the main config. Pass `true` when a prior step in the same
|
|
1151
|
+
* process (e.g. `forkbook add`) may have rewritten the main config on disk, otherwise this
|
|
1152
|
+
* would read back the module system's cached evaluation from before that rewrite.
|
|
1153
|
+
*/
|
|
1154
|
+
skipCache?: boolean;
|
|
1155
|
+
}) => Promise<{
|
|
1156
|
+
configDir: string;
|
|
1157
|
+
workingDir: string;
|
|
1158
|
+
mainConfig: StorybookConfigRaw$1; /** The version specifier of Forkbook from the user's package.json */
|
|
1159
|
+
versionSpecifier: string | undefined; /** The version of Forkbook installed in the user's project */
|
|
1160
|
+
versionInstalled: string | undefined;
|
|
1161
|
+
mainConfigPath: string | undefined;
|
|
1162
|
+
previewConfigPath: string | undefined;
|
|
1163
|
+
packageManager: import("@aussieljk/forkbook/internal/common").JsPackageManager;
|
|
1164
|
+
storiesPaths: string[];
|
|
1165
|
+
hasCsfFactoryPreview: boolean;
|
|
1166
|
+
frameworkPackage: string | undefined;
|
|
1167
|
+
rendererPackage: string | undefined;
|
|
1168
|
+
renderer: SupportedRenderer$1 | undefined;
|
|
1169
|
+
builderPackage: string | undefined;
|
|
1170
|
+
addons: string[];
|
|
1171
|
+
}>;
|
|
1172
|
+
type GetStorybookData = typeof getStorybookData;
|
|
1173
|
+
//#endregion
|
|
1174
|
+
export { AddonVitestCompatibilityOptions, AddonVitestService, GetStorybookData, NpmOptions, ProjectType, SUPPORTED_ESLINT_EXTENSIONS, Settings, SkillsInstallResult, SkillsSource, _clearGlobalSettings, addToDevDependenciesIfNotPresent, adjustTemplate, canInstallLatestVitest, cliStoriesTargetPath, coerceSemver, configureEslintPlugin, configureFlatConfig, copyTemplate, copyTemplateFiles, detectIncompatiblePackageVersions, detectLanguage, extractEslintInfo, findEslintFile, getBabelDependencies, getRendererDir, getStorybookData, getVersionSafe, getWorkingDir, globalSettings, hasStorybookDependencies, hasStorybookSkills, installSkills, normalizeExtends, readFileAsJson, suggestESLintPlugin, supportsAiSetup, supportsSkills, writeFileAsJson };
|