@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,495 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { t as ResultPromise } from "../chunk-BfBzpgct.js";
|
|
3
|
+
import { Readable, Writable } from "node:stream";
|
|
4
|
+
import { EventEmitter } from "events";
|
|
5
|
+
|
|
6
|
+
//#region ../../node_modules/@clack/prompts/dist/index.d.mts
|
|
7
|
+
interface CommonOptions {
|
|
8
|
+
input?: Readable;
|
|
9
|
+
output?: Writable;
|
|
10
|
+
signal?: AbortSignal;
|
|
11
|
+
withGuide?: boolean;
|
|
12
|
+
}
|
|
13
|
+
type BoxAlignment = 'left' | 'center' | 'right';
|
|
14
|
+
interface BoxOptions$1 extends CommonOptions {
|
|
15
|
+
contentAlign?: BoxAlignment;
|
|
16
|
+
titleAlign?: BoxAlignment;
|
|
17
|
+
width?: number | 'auto';
|
|
18
|
+
titlePadding?: number;
|
|
19
|
+
contentPadding?: number;
|
|
20
|
+
rounded?: boolean;
|
|
21
|
+
formatBorder?: (text: string) => string;
|
|
22
|
+
}
|
|
23
|
+
interface LogMessageOptions extends CommonOptions {
|
|
24
|
+
symbol?: string;
|
|
25
|
+
spacing?: number;
|
|
26
|
+
secondarySymbol?: string;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region ../../node_modules/@types/npmlog/index.d.ts
|
|
30
|
+
declare namespace npmlog {
|
|
31
|
+
// TODO: newStream, newGroup, setGaugeTemplate and setGaugeTemplateSet need to be added
|
|
32
|
+
interface Logger extends EventEmitter {
|
|
33
|
+
(): any;
|
|
34
|
+
level: string;
|
|
35
|
+
record: MessageObject[];
|
|
36
|
+
maxRecordSize: number;
|
|
37
|
+
prefixStyle: StyleObject;
|
|
38
|
+
headingStyle: StyleObject;
|
|
39
|
+
heading: string;
|
|
40
|
+
stream: any; // Defaults to process.stderr
|
|
41
|
+
/**
|
|
42
|
+
* Creates a log message
|
|
43
|
+
* @param level
|
|
44
|
+
* @param prefix
|
|
45
|
+
* @param message message of the log which will be formatted using utils.format()
|
|
46
|
+
* @param args additional arguments appended to the log message also formatted using utils.format()
|
|
47
|
+
*/
|
|
48
|
+
log(level: LogLevels | string, prefix: string, message: any, ...args: any[]): void;
|
|
49
|
+
/**
|
|
50
|
+
* @param prefix
|
|
51
|
+
* @param message message of the log which will be formatted using utils.format()
|
|
52
|
+
* @param args additional arguments appended to the log message also formatted using utils.format()
|
|
53
|
+
*/
|
|
54
|
+
silly(prefix: string, message: any, ...args: any[]): void;
|
|
55
|
+
verbose(prefix: string, message: any, ...args: any[]): void;
|
|
56
|
+
info(prefix: string, message: any, ...args: any[]): void;
|
|
57
|
+
timing(prefix: string, message: any, ...args: any[]): void;
|
|
58
|
+
http(prefix: string, message: any, ...args: any[]): void;
|
|
59
|
+
notice(prefix: string, message: any, ...args: any[]): void;
|
|
60
|
+
warn(prefix: string, message: any, ...args: any[]): void;
|
|
61
|
+
error(prefix: string, message: any, ...args: any[]): void;
|
|
62
|
+
silent(prefix: string, message: any, ...args: any[]): void;
|
|
63
|
+
enableColor(): void;
|
|
64
|
+
disableColor(): void;
|
|
65
|
+
enableProgress(): void;
|
|
66
|
+
disableProgress(): void;
|
|
67
|
+
progressEnabled(): boolean;
|
|
68
|
+
enableUnicode(): void;
|
|
69
|
+
disableUnicode(): void;
|
|
70
|
+
pause(): void;
|
|
71
|
+
resume(): void;
|
|
72
|
+
addLevel(level: string, n: number, style?: StyleObject, disp?: string): void; // Allows for custom log levels
|
|
73
|
+
// npmlog.addLevel("custom", level)
|
|
74
|
+
// npmlog.custom(prefix, message)
|
|
75
|
+
[key: string]: any;
|
|
76
|
+
}
|
|
77
|
+
type LogLevels = "silly" | "verbose" | "info" | "timing" | "http" | "notice" | "warn" | "error" | "silent";
|
|
78
|
+
interface StyleObject {
|
|
79
|
+
fg?: string | undefined;
|
|
80
|
+
bg?: string | undefined;
|
|
81
|
+
bold?: boolean | undefined;
|
|
82
|
+
inverse?: boolean | undefined;
|
|
83
|
+
underline?: boolean | undefined;
|
|
84
|
+
bell?: boolean | undefined;
|
|
85
|
+
}
|
|
86
|
+
interface MessageObject {
|
|
87
|
+
id: number;
|
|
88
|
+
level: string;
|
|
89
|
+
prefix: string;
|
|
90
|
+
message: string;
|
|
91
|
+
messageRaw: string;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
declare var npmlog: npmlog.Logger;
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region .dts-emit/code/core/src/node-logger/wrap-utils.d.ts
|
|
97
|
+
/** Detects URLs in text and prevents them from being broken across lines */
|
|
98
|
+
declare function protectUrls(text: string, options?: {
|
|
99
|
+
maxUrlLength?: number;
|
|
100
|
+
maxLineWidth?: number;
|
|
101
|
+
}): string;
|
|
102
|
+
/**
|
|
103
|
+
* Creates a hyperlink with custom title text if supported, otherwise falls back to "title: url"
|
|
104
|
+
* format
|
|
105
|
+
*/
|
|
106
|
+
declare function createHyperlink(title: string, url: string): string;
|
|
107
|
+
declare function wrapTextForClack(text: string, width?: number): string;
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region .dts-emit/code/core/src/node-logger/logger/logger.d.ts
|
|
110
|
+
type LogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'silent';
|
|
111
|
+
type BoxOptions = {
|
|
112
|
+
title?: string;
|
|
113
|
+
} & BoxOptions$1;
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region .dts-emit/code/core/src/node-logger/prompts/prompt-provider-base.d.ts
|
|
116
|
+
type Primitive = Readonly<string | boolean | number>;
|
|
117
|
+
type Option<T> = T extends Primitive ? {
|
|
118
|
+
value: T;
|
|
119
|
+
label?: string;
|
|
120
|
+
hint?: string;
|
|
121
|
+
} : {
|
|
122
|
+
value: T;
|
|
123
|
+
label: string;
|
|
124
|
+
hint?: string;
|
|
125
|
+
};
|
|
126
|
+
interface BasePromptOptions {
|
|
127
|
+
message: string;
|
|
128
|
+
}
|
|
129
|
+
interface TextPromptOptions extends BasePromptOptions {
|
|
130
|
+
placeholder?: string;
|
|
131
|
+
initialValue?: string;
|
|
132
|
+
validate?: (value: string | undefined) => string | Error | undefined;
|
|
133
|
+
}
|
|
134
|
+
interface ConfirmPromptOptions extends BasePromptOptions {
|
|
135
|
+
initialValue?: boolean;
|
|
136
|
+
active?: string;
|
|
137
|
+
inactive?: string;
|
|
138
|
+
}
|
|
139
|
+
interface SelectPromptOptions<T> extends BasePromptOptions {
|
|
140
|
+
options: Option<T>[];
|
|
141
|
+
initialValue?: T;
|
|
142
|
+
}
|
|
143
|
+
interface MultiSelectPromptOptions<T> extends BasePromptOptions {
|
|
144
|
+
options: Option<T>[];
|
|
145
|
+
initialValues?: T[];
|
|
146
|
+
required?: boolean;
|
|
147
|
+
}
|
|
148
|
+
interface PromptOptions {
|
|
149
|
+
onCancel?: () => void | Promise<void>;
|
|
150
|
+
}
|
|
151
|
+
interface SpinnerInstance {
|
|
152
|
+
start: (message?: string) => void;
|
|
153
|
+
stop: (message?: string) => void;
|
|
154
|
+
cancel: (message?: string) => void;
|
|
155
|
+
error: (message?: string) => void;
|
|
156
|
+
message: (text: string) => void;
|
|
157
|
+
}
|
|
158
|
+
interface TaskLogInstance {
|
|
159
|
+
message: (text: string) => void;
|
|
160
|
+
success: (message: string, options?: {
|
|
161
|
+
showLog?: boolean;
|
|
162
|
+
}) => void;
|
|
163
|
+
error: (message: string) => void;
|
|
164
|
+
group: (title: string) => {
|
|
165
|
+
message: (text: string, options?: any) => void;
|
|
166
|
+
success: (message: string) => void;
|
|
167
|
+
error: (message: string) => void;
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
interface SpinnerOptions {
|
|
171
|
+
/** The id of the task, to be used by the log tracker. */
|
|
172
|
+
id: string;
|
|
173
|
+
}
|
|
174
|
+
interface TaskLogOptions {
|
|
175
|
+
/** The id of the task, to be used by the log tracker. */
|
|
176
|
+
id: string;
|
|
177
|
+
title: string;
|
|
178
|
+
retainLog?: boolean;
|
|
179
|
+
limit?: number;
|
|
180
|
+
}
|
|
181
|
+
declare abstract class PromptProvider {
|
|
182
|
+
abstract text(options: TextPromptOptions, promptOptions?: PromptOptions): Promise<string>;
|
|
183
|
+
abstract confirm(options: ConfirmPromptOptions, promptOptions?: PromptOptions): Promise<boolean>;
|
|
184
|
+
abstract select<T>(options: SelectPromptOptions<T>, promptOptions?: PromptOptions): Promise<T>;
|
|
185
|
+
abstract multiselect<T>(options: MultiSelectPromptOptions<T>, promptOptions?: PromptOptions): Promise<T[]>;
|
|
186
|
+
abstract spinner(options: SpinnerOptions): SpinnerInstance;
|
|
187
|
+
abstract taskLog(options: TaskLogOptions): TaskLogInstance;
|
|
188
|
+
}
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region .dts-emit/code/core/src/node-logger/tasks.d.ts
|
|
191
|
+
type ChildProcessFactory = (signal?: AbortSignal) => ResultPromise;
|
|
192
|
+
/**
|
|
193
|
+
* Given a function that returns a child process or array of functions that return child processes,
|
|
194
|
+
* this function will execute them sequentially and display the output in a task log.
|
|
195
|
+
*/
|
|
196
|
+
declare const executeTask: (childProcessFactories: ChildProcessFactory | ChildProcessFactory[], {
|
|
197
|
+
intro,
|
|
198
|
+
error,
|
|
199
|
+
success,
|
|
200
|
+
abortable
|
|
201
|
+
}: {
|
|
202
|
+
intro: string;
|
|
203
|
+
error: string;
|
|
204
|
+
success: string;
|
|
205
|
+
abortable?: boolean;
|
|
206
|
+
}) => Promise<'aborted' | void>;
|
|
207
|
+
declare const executeTaskWithSpinner: (childProcessFactories: ChildProcessFactory | ChildProcessFactory[], {
|
|
208
|
+
id,
|
|
209
|
+
intro,
|
|
210
|
+
error,
|
|
211
|
+
success,
|
|
212
|
+
abortable
|
|
213
|
+
}: {
|
|
214
|
+
id: string;
|
|
215
|
+
intro: string;
|
|
216
|
+
error: string;
|
|
217
|
+
success: string;
|
|
218
|
+
abortable?: boolean;
|
|
219
|
+
}) => Promise<'aborted' | void>;
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region .dts-emit/code/core/src/node-logger/prompts/index.d.ts
|
|
222
|
+
declare const prompt: {
|
|
223
|
+
setPromptLibrary: (library: "clack") => void;
|
|
224
|
+
getPromptLibrary: () => "clack";
|
|
225
|
+
getPromptProvider: () => PromptProvider;
|
|
226
|
+
isClackEnabled: () => boolean;
|
|
227
|
+
getPreferredStdio: () => 'inherit' | 'pipe';
|
|
228
|
+
text: (options: TextPromptOptions, promptOptions?: PromptOptions) => Promise<string>;
|
|
229
|
+
confirm: (options: ConfirmPromptOptions, promptOptions?: PromptOptions) => Promise<boolean>;
|
|
230
|
+
select: <T>(options: SelectPromptOptions<T>, promptOptions?: PromptOptions) => Promise<T>;
|
|
231
|
+
multiselect: <T>(options: MultiSelectPromptOptions<T>, promptOptions?: PromptOptions) => Promise<T[]>;
|
|
232
|
+
spinner: (options: SpinnerOptions) => SpinnerInstance;
|
|
233
|
+
taskLog: (options: TaskLogOptions) => TaskLogInstance;
|
|
234
|
+
executeTask: typeof executeTask;
|
|
235
|
+
executeTaskWithSpinner: typeof executeTaskWithSpinner;
|
|
236
|
+
};
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region .dts-emit/code/core/src/node-logger/logger/log-tracker.d.ts
|
|
239
|
+
type Metadata = Record<string, any>;
|
|
240
|
+
interface LogEntry {
|
|
241
|
+
timestamp: Date;
|
|
242
|
+
level: LogLevel | 'prompt';
|
|
243
|
+
message: string;
|
|
244
|
+
metadata?: Metadata;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Tracks and manages logs for Forkbook CLI operations. Provides functionality to collect, store
|
|
248
|
+
* and write logs to a file.
|
|
249
|
+
*/
|
|
250
|
+
declare class LogTracker {
|
|
251
|
+
#private;
|
|
252
|
+
/** Enables writing logs to file. */
|
|
253
|
+
enableLogWriting(): void;
|
|
254
|
+
/** Returns whether logs should be written to file. */
|
|
255
|
+
get shouldWriteLogsToFile(): boolean;
|
|
256
|
+
/** Returns a copy of all stored logs. */
|
|
257
|
+
get logs(): LogEntry[];
|
|
258
|
+
/**
|
|
259
|
+
* Adds a new log entry.
|
|
260
|
+
*
|
|
261
|
+
* @param level - The log level
|
|
262
|
+
* @param message - The log message
|
|
263
|
+
* @param metadata - Optional metadata to attach to the log, can be any JSON serializable value
|
|
264
|
+
*/
|
|
265
|
+
addLog(level: LogEntry['level'], message: string, metadata?: Metadata): void;
|
|
266
|
+
/** Clears all stored logs. */
|
|
267
|
+
clear(): void;
|
|
268
|
+
/**
|
|
269
|
+
* Writes all stored logs to a file and clears the log store.
|
|
270
|
+
*
|
|
271
|
+
* @param filePath - Optional custom file path to write logs to
|
|
272
|
+
* @returns The path where logs were written, by default is debug-storybook.log in current working
|
|
273
|
+
* directory
|
|
274
|
+
*/
|
|
275
|
+
writeToFile(filePath: string | boolean | undefined): Promise<string>;
|
|
276
|
+
}
|
|
277
|
+
declare const logTracker: LogTracker;
|
|
278
|
+
//#endregion
|
|
279
|
+
//#region ../../node_modules/picocolors/types.d.ts
|
|
280
|
+
type Formatter = (input: string | number | null | undefined) => string;
|
|
281
|
+
//#endregion
|
|
282
|
+
//#region .dts-emit/code/core/src/node-logger/logger/colors.d.ts
|
|
283
|
+
declare const CLI_COLORS: {
|
|
284
|
+
success: Formatter;
|
|
285
|
+
error: Formatter;
|
|
286
|
+
warning: Formatter;
|
|
287
|
+
info: Formatter;
|
|
288
|
+
debug: Formatter;
|
|
289
|
+
cta: Formatter;
|
|
290
|
+
muted: Formatter;
|
|
291
|
+
storybook: (text: string) => string;
|
|
292
|
+
};
|
|
293
|
+
//#endregion
|
|
294
|
+
//#region .dts-emit/code/core/src/node-logger/logger/console.d.ts
|
|
295
|
+
interface ConsoleLoggerOptions {
|
|
296
|
+
prefix: string;
|
|
297
|
+
color: 'bgBlack' | 'bgRed' | 'bgGreen' | 'bgYellow' | 'bgBlue' | 'bgMagenta' | 'bgCyan' | 'bgWhite' | 'bgBlackBright' | 'bgRedBright' | 'bgGreenBright' | 'bgYellowBright' | 'bgBlueBright' | 'bgMagentaBright' | 'bgCyanBright' | 'bgWhiteBright';
|
|
298
|
+
}
|
|
299
|
+
declare class ConsoleLogger implements Console {
|
|
300
|
+
Console: typeof ConsoleLogger;
|
|
301
|
+
protected timers: Map<string, number>;
|
|
302
|
+
protected counters: Map<string, number>;
|
|
303
|
+
protected lastStatusLine: string | null;
|
|
304
|
+
protected statusLineCount: number;
|
|
305
|
+
protected get prefix(): string;
|
|
306
|
+
protected get color(): (text: string) => string;
|
|
307
|
+
protected formatMessage(...data: any[]): string;
|
|
308
|
+
assert(condition?: boolean, ...data: any[]): void;
|
|
309
|
+
/**
|
|
310
|
+
* The **`console.clear()`** static method clears the console if possible.
|
|
311
|
+
*
|
|
312
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static)
|
|
313
|
+
*/
|
|
314
|
+
clear(): void;
|
|
315
|
+
/**
|
|
316
|
+
* The **`console.count()`** static method logs the number of times that this particular call to
|
|
317
|
+
* `count()` has been called.
|
|
318
|
+
*
|
|
319
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static)
|
|
320
|
+
*/
|
|
321
|
+
count(label?: string): void;
|
|
322
|
+
/**
|
|
323
|
+
* The **`console.countReset()`** static method resets counter used with console/count_static.
|
|
324
|
+
*
|
|
325
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static)
|
|
326
|
+
*/
|
|
327
|
+
countReset(label?: string): void;
|
|
328
|
+
/**
|
|
329
|
+
* The **`console.debug()`** static method outputs a message to the console at the 'debug' log
|
|
330
|
+
* level.
|
|
331
|
+
*
|
|
332
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static)
|
|
333
|
+
*/
|
|
334
|
+
debug(...data: any[]): void;
|
|
335
|
+
/**
|
|
336
|
+
* The **`console.dir()`** static method displays a list of the properties of the specified
|
|
337
|
+
* JavaScript object.
|
|
338
|
+
*
|
|
339
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static)
|
|
340
|
+
*/
|
|
341
|
+
dir(item?: any, options?: any): void;
|
|
342
|
+
/**
|
|
343
|
+
* The **`console.dirxml()`** static method displays an interactive tree of the descendant
|
|
344
|
+
* elements of the specified XML/HTML element.
|
|
345
|
+
*
|
|
346
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static)
|
|
347
|
+
*/
|
|
348
|
+
dirxml(...data: any[]): void;
|
|
349
|
+
/**
|
|
350
|
+
* The **`console.error()`** static method outputs a message to the console at the 'error' log
|
|
351
|
+
* level.
|
|
352
|
+
*
|
|
353
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static)
|
|
354
|
+
*/
|
|
355
|
+
error(...data: any[]): void;
|
|
356
|
+
/**
|
|
357
|
+
* The **`console.group()`** static method creates a new inline group in the Web console log,
|
|
358
|
+
* causing any subsequent console messages to be indented by an additional level, until
|
|
359
|
+
* console/groupEnd_static is called.
|
|
360
|
+
*
|
|
361
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static)
|
|
362
|
+
*/
|
|
363
|
+
group(...data: any[]): void;
|
|
364
|
+
/**
|
|
365
|
+
* The **`console.groupCollapsed()`** static method creates a new inline group in the console.
|
|
366
|
+
*
|
|
367
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static)
|
|
368
|
+
*/
|
|
369
|
+
groupCollapsed(...data: any[]): void;
|
|
370
|
+
/**
|
|
371
|
+
* The **`console.groupEnd()`** static method exits the current inline group in the console.
|
|
372
|
+
*
|
|
373
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static)
|
|
374
|
+
*/
|
|
375
|
+
groupEnd(): void;
|
|
376
|
+
/**
|
|
377
|
+
* The **`console.info()`** static method outputs a message to the console at the 'info' log
|
|
378
|
+
* level.
|
|
379
|
+
*
|
|
380
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static)
|
|
381
|
+
*/
|
|
382
|
+
info(...data: any[]): void;
|
|
383
|
+
/**
|
|
384
|
+
* The **`console.log()`** static method outputs a message to the console.
|
|
385
|
+
*
|
|
386
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static)
|
|
387
|
+
*/
|
|
388
|
+
log(...data: any[]): void;
|
|
389
|
+
/**
|
|
390
|
+
* The **`console.table()`** static method displays tabular data as a table.
|
|
391
|
+
*
|
|
392
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static)
|
|
393
|
+
*/
|
|
394
|
+
table(tabularData?: any, properties?: string[]): void;
|
|
395
|
+
/**
|
|
396
|
+
* The **`console.time()`** static method starts a timer you can use to track how long an
|
|
397
|
+
* operation takes.
|
|
398
|
+
*
|
|
399
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static)
|
|
400
|
+
*/
|
|
401
|
+
time(label?: string): void;
|
|
402
|
+
/**
|
|
403
|
+
* The **`console.timeEnd()`** static method stops a timer that was previously started by calling
|
|
404
|
+
* console/time_static.
|
|
405
|
+
*
|
|
406
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static)
|
|
407
|
+
*/
|
|
408
|
+
timeEnd(label?: string): void;
|
|
409
|
+
/**
|
|
410
|
+
* The **`console.timeLog()`** static method logs the current value of a timer that was previously
|
|
411
|
+
* started by calling console/time_static.
|
|
412
|
+
*
|
|
413
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
|
|
414
|
+
*/
|
|
415
|
+
timeLog(label?: string, ...data: any[]): void;
|
|
416
|
+
timeStamp(label?: string): void;
|
|
417
|
+
/**
|
|
418
|
+
* The **`console.trace()`** static method outputs a stack trace to the console.
|
|
419
|
+
*
|
|
420
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static)
|
|
421
|
+
*/
|
|
422
|
+
trace(...data: any[]): void;
|
|
423
|
+
/**
|
|
424
|
+
* The **`console.warn()`** static method outputs a warning message to the console at the
|
|
425
|
+
* 'warning' log level.
|
|
426
|
+
*
|
|
427
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static)
|
|
428
|
+
*/
|
|
429
|
+
warn(...data: any[]): void;
|
|
430
|
+
profile(label?: string): void;
|
|
431
|
+
profileEnd(label?: string): void;
|
|
432
|
+
}
|
|
433
|
+
declare class StyledConsoleLogger extends ConsoleLogger {
|
|
434
|
+
private _prefix;
|
|
435
|
+
private _color;
|
|
436
|
+
constructor(options: ConsoleLoggerOptions);
|
|
437
|
+
protected get prefix(): string;
|
|
438
|
+
protected get color(): Formatter;
|
|
439
|
+
}
|
|
440
|
+
//#endregion
|
|
441
|
+
//#region .dts-emit/code/core/src/node-logger/index.d.ts
|
|
442
|
+
declare const setLoggerLevel: (level?: LogLevel) => void;
|
|
443
|
+
/** @deprecated Use CLI_COLORS instead */
|
|
444
|
+
declare const colors: {
|
|
445
|
+
pink: (text: string) => string;
|
|
446
|
+
purple: (text: string) => string;
|
|
447
|
+
orange: (text: string) => string;
|
|
448
|
+
green: (text: string) => string;
|
|
449
|
+
blue: (text: string) => string;
|
|
450
|
+
red: (text: string) => string;
|
|
451
|
+
gray: (text: string) => string;
|
|
452
|
+
};
|
|
453
|
+
declare const logger: {
|
|
454
|
+
getLogLevel: () => LogLevel;
|
|
455
|
+
shouldLog: (level: LogLevel) => boolean;
|
|
456
|
+
debug: (message: any) => void;
|
|
457
|
+
log: (message?: string | string[] | undefined, args_1?: LogMessageOptions | undefined) => void;
|
|
458
|
+
info: (message: string, opts?: LogMessageOptions | undefined) => void;
|
|
459
|
+
logBox: (message: string, {
|
|
460
|
+
title,
|
|
461
|
+
...options
|
|
462
|
+
}?: BoxOptions) => void;
|
|
463
|
+
intro: (message: string) => void;
|
|
464
|
+
outro: (message: string) => void;
|
|
465
|
+
step: (message: string) => void;
|
|
466
|
+
SYMBOLS: {
|
|
467
|
+
success: string;
|
|
468
|
+
error: string;
|
|
469
|
+
};
|
|
470
|
+
wrapTextForClack: typeof wrapTextForClack;
|
|
471
|
+
verbose: (message: string) => void;
|
|
472
|
+
line: (count?: number) => void; /** For non-critical issues or warnings */
|
|
473
|
+
warn: (message: string) => void;
|
|
474
|
+
trace: ({
|
|
475
|
+
message,
|
|
476
|
+
time
|
|
477
|
+
}: {
|
|
478
|
+
message: string;
|
|
479
|
+
time: [number, number];
|
|
480
|
+
}) => void;
|
|
481
|
+
setLevel: typeof setLoggerLevel;
|
|
482
|
+
setLogLevel: typeof setLoggerLevel;
|
|
483
|
+
error: (message: unknown) => void;
|
|
484
|
+
};
|
|
485
|
+
declare function once(type: 'verbose' | 'info' | 'warn' | 'error'): (message: string) => void;
|
|
486
|
+
declare namespace once {
|
|
487
|
+
var clear: () => void;
|
|
488
|
+
var verbose: (message: string) => void;
|
|
489
|
+
var info: (message: string) => void;
|
|
490
|
+
var warn: (message: string) => void;
|
|
491
|
+
var error: (message: string) => void;
|
|
492
|
+
}
|
|
493
|
+
declare const deprecate: (message: string) => void;
|
|
494
|
+
//#endregion
|
|
495
|
+
export { type BoxOptions, CLI_COLORS, ConsoleLogger, type LogLevel, type LogMessageOptions, type SpinnerInstance, StyledConsoleLogger, type TaskLogInstance, colors, createHyperlink, deprecate, npmlog as instance, logTracker, logger, once, prompt, protectUrls };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ro17f80mg6k from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ro17f80mg6k from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ro17f80mg6k from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ro17f80mg6k.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ro17f80mg6k.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ro17f80mg6k.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
CLI_COLORS,
|
|
14
|
+
ConsoleLogger,
|
|
15
|
+
StyledConsoleLogger,
|
|
16
|
+
colors,
|
|
17
|
+
createHyperlink,
|
|
18
|
+
deprecate,
|
|
19
|
+
import_npmlog,
|
|
20
|
+
logTracker,
|
|
21
|
+
logger,
|
|
22
|
+
once,
|
|
23
|
+
prompt,
|
|
24
|
+
protectUrls
|
|
25
|
+
} from "../_node-chunks/chunk-6LMWA44H.js";
|
|
26
|
+
import "../_node-chunks/chunk-2BUPBPFB.js";
|
|
27
|
+
import "../_node-chunks/chunk-CXRU72ET.js";
|
|
28
|
+
var export_instance = import_npmlog.default;
|
|
29
|
+
export {
|
|
30
|
+
CLI_COLORS,
|
|
31
|
+
ConsoleLogger,
|
|
32
|
+
StyledConsoleLogger,
|
|
33
|
+
colors,
|
|
34
|
+
createHyperlink,
|
|
35
|
+
deprecate,
|
|
36
|
+
export_instance as instance,
|
|
37
|
+
logTracker,
|
|
38
|
+
logger,
|
|
39
|
+
once,
|
|
40
|
+
prompt,
|
|
41
|
+
protectUrls
|
|
42
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
//#region .dts-emit/code/core/src/oxc-parser/types.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* A single import edge extracted from a source file. `specifier` is the literal token the
|
|
4
|
+
* source used (e.g. `./foo`, `lodash`, `@scope/pkg`). `kind` distinguishes the three edge
|
|
5
|
+
* flavours the oxc-parser surfaces: static `import`/`export`, dynamic `import()`, and
|
|
6
|
+
* CommonJS `require()`.
|
|
7
|
+
*/
|
|
8
|
+
interface ImportEdge {
|
|
9
|
+
specifier: string;
|
|
10
|
+
kind: 'static' | 'dynamic' | 'require';
|
|
11
|
+
/**
|
|
12
|
+
* For static named imports (`import { Foo, Bar } from 'mod'`) the set of names as they
|
|
13
|
+
* appear in the source module (i.e. before any `as` rename). `'default'` is included for
|
|
14
|
+
* default imports (`import X from 'mod'`). `null` for side-effect imports, namespace
|
|
15
|
+
* imports (`import * as ns`), dynamic imports, and `require()` calls.
|
|
16
|
+
*
|
|
17
|
+
* A Set rather than an array because duplicate names carry no extra information and the
|
|
18
|
+
* downstream barrel-follower only ever iterates the unique names.
|
|
19
|
+
*
|
|
20
|
+
* Used by the change-detection barrel-follower to short-circuit through re-export barrels
|
|
21
|
+
* and connect a story directly to the source files of the specific symbols it needs,
|
|
22
|
+
* preventing unrelated stories from being marked as related when a single component in a
|
|
23
|
+
* large barrel changes.
|
|
24
|
+
*/
|
|
25
|
+
importedNames: Set<string> | null;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A single re-export entry extracted from a module.
|
|
29
|
+
* Maps the name visible to consumers to its origin inside the barrel.
|
|
30
|
+
*/
|
|
31
|
+
interface ReExportEntry {
|
|
32
|
+
/** The specifier of the module that provides the binding. */
|
|
33
|
+
specifier: string;
|
|
34
|
+
/** The name of the binding in the source module (`'default'` for default imports). */
|
|
35
|
+
importedName: string;
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region .dts-emit/code/core/src/oxc-parser/worker-pool.d.ts
|
|
39
|
+
/**
|
|
40
|
+
* Disposes the shared pool if one is running.
|
|
41
|
+
*/
|
|
42
|
+
declare function disposeOxcParsePool(): Promise<void>;
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region .dts-emit/code/core/src/oxc-parser/index.d.ts
|
|
45
|
+
/**
|
|
46
|
+
* Re-export map plus wildcard specifiers for a barrel file.
|
|
47
|
+
* Named re-exports are keyed by their exported name.
|
|
48
|
+
* Wildcard specifiers come from `export * from '...'` statements.
|
|
49
|
+
*/
|
|
50
|
+
interface BarrelInfo {
|
|
51
|
+
named: Map<string, ReExportEntry>;
|
|
52
|
+
wildcards: string[];
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Parses a file with oxc-parser, using the worker pool when available and falling back to
|
|
56
|
+
* inline {@link oxcParse} otherwise. Plugin parsers (e.g. MDX) that use
|
|
57
|
+
* `ctx.parseScriptWithOxc` also route through here, so SFC script blocks get the same
|
|
58
|
+
* off-thread treatment as plain JS/TS files.
|
|
59
|
+
*/
|
|
60
|
+
declare function parseWithOxc(filePath: string, source: string): Promise<ImportEdge[]>;
|
|
61
|
+
/**
|
|
62
|
+
* Parses both named re-exports and wildcard re-export specifiers from a module.
|
|
63
|
+
* Named re-exports are keyed by exported name; wildcard specifiers come from
|
|
64
|
+
* `export * from '...'` and `export type * from '...'` statements. Used by the
|
|
65
|
+
* barrel chain-follower so it can recurse through `export *` hops when a requested
|
|
66
|
+
* name is not found as a direct named re-export.
|
|
67
|
+
*
|
|
68
|
+
* Type re-exports (`export type { Foo } from '...'`) are intentionally included:
|
|
69
|
+
* consumers may import type-shaped names without the `type` keyword, and those
|
|
70
|
+
* names still need to be chain-followed to their source files so the barrel itself
|
|
71
|
+
* is not added as a fallback dep (which would cause false-positive change signals).
|
|
72
|
+
*/
|
|
73
|
+
declare function parseBarrelInfo(filePath: string, source: string): Promise<BarrelInfo>;
|
|
74
|
+
/**
|
|
75
|
+
* Names declared locally in this module — top-level `var`/`let`/`const`, function and class
|
|
76
|
+
* declarations, including those introduced via `export <declaration>`. Imports and re-exports
|
|
77
|
+
* (`export { X } from '...'`, `export * from '...'`) are excluded because their bindings live in
|
|
78
|
+
* another module and are not referenceable identifiers here.
|
|
79
|
+
*
|
|
80
|
+
* Used by the Vue docgen plugin to decide whether a generated `.__docgenInfo` assignment can
|
|
81
|
+
* safely target a name without producing a reference to an undefined binding.
|
|
82
|
+
*/
|
|
83
|
+
declare function parseLocalBindings(filePath: string, source: string): Promise<Set<string>>;
|
|
84
|
+
/**
|
|
85
|
+
* Local names bound by static default imports, mapped to their module specifier. Type-only
|
|
86
|
+
* imports are excluded because they introduce no runtime binding.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
*
|
|
90
|
+
* ```ts
|
|
91
|
+
* // import _sfc_main from './Tab.vue?vue&type=script&lang.ts';
|
|
92
|
+
* await parseDefaultImports(id, src);
|
|
93
|
+
* // Map { '_sfc_main' => './Tab.vue?vue&type=script&lang.ts' }
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
declare function parseDefaultImports(filePath: string, source: string): Promise<Map<string, string>>;
|
|
97
|
+
declare function parseReExports(filePath: string, source: string): Promise<Map<string, ReExportEntry>>;
|
|
98
|
+
//#endregion
|
|
99
|
+
export { BarrelInfo, type ImportEdge, type ReExportEntry, disposeOxcParsePool, parseBarrelInfo, parseDefaultImports, parseLocalBindings, parseReExports, parseWithOxc };
|