@aussieljk/forkbook 0.0.0-stage → 0.0.1-10
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 +59 -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/inter-LICENSE.txt +92 -0
- package/assets/browser/inter-variable-italic.woff2 +0 -0
- package/assets/browser/inter-variable.woff2 +0 -0
- package/assets/browser/mirror-ball.png +0 -0
- package/assets/builder-vite/iframe.html +83 -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 +85 -0
- package/dist/.build-stamp +0 -0
- package/dist/_browser-chunks/Color-X63I7FHI.js +1025 -0
- package/dist/_browser-chunks/DocsRenderer-JXND3PVQ.js +10 -0
- package/dist/_browser-chunks/WithTooltip-5S6F2P7L.js +198 -0
- package/dist/_browser-chunks/chunk-2JDQ35OA.js +247 -0
- package/dist/_browser-chunks/chunk-2JT76G3E.js +104 -0
- package/dist/_browser-chunks/chunk-3HM3VWJS.js +2604 -0
- package/dist/_browser-chunks/chunk-3M5T7BW4.js +43 -0
- package/dist/_browser-chunks/chunk-46Z7NGAS.js +41 -0
- package/dist/_browser-chunks/chunk-4ATQOMJB.js +30 -0
- package/dist/_browser-chunks/chunk-4KIQBRD2.js +17 -0
- package/dist/_browser-chunks/chunk-5H4KFI44.js +386 -0
- package/dist/_browser-chunks/chunk-5I7E4GMO.js +62 -0
- package/dist/_browser-chunks/chunk-5WMXI5GW.js +816 -0
- package/dist/_browser-chunks/chunk-5Z65SURM.js +108 -0
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/chunk-6ELMKWKX.js +22 -0
- package/dist/_browser-chunks/chunk-76222HQR.js +253 -0
- package/dist/_browser-chunks/chunk-7DQREF4S.js +218 -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-BNP234B4.js +80 -0
- package/dist/_browser-chunks/chunk-C5TKXHTM.js +82 -0
- package/dist/_browser-chunks/chunk-CNED6RYH.js +18 -0
- package/dist/_browser-chunks/chunk-DNJ3OSLB.js +6021 -0
- package/dist/_browser-chunks/chunk-DRQKCCAG.js +136 -0
- package/dist/_browser-chunks/chunk-DS2WQZGO.js +1956 -0
- package/dist/_browser-chunks/chunk-DYNTDJ3O.js +155 -0
- package/dist/_browser-chunks/chunk-ECQ75MKQ.js +0 -0
- package/dist/_browser-chunks/chunk-ENKK74N4.js +12 -0
- package/dist/_browser-chunks/chunk-EQKMUQF3.js +224 -0
- package/dist/_browser-chunks/chunk-FENFYI4X.js +698 -0
- package/dist/_browser-chunks/chunk-FRAOQJDI.js +95 -0
- package/dist/_browser-chunks/chunk-GNZY6LOW.js +10116 -0
- package/dist/_browser-chunks/chunk-GRO2ZYEJ.js +157 -0
- package/dist/_browser-chunks/chunk-I4ATZPNZ.js +34 -0
- package/dist/_browser-chunks/chunk-IE4ULIOQ.js +14 -0
- package/dist/_browser-chunks/chunk-IFADVEQE.js +669 -0
- package/dist/_browser-chunks/chunk-IMSF75WX.js +42 -0
- package/dist/_browser-chunks/chunk-IWQGIXJS.js +14 -0
- package/dist/_browser-chunks/chunk-JPUOQJUI.js +8 -0
- package/dist/_browser-chunks/chunk-JWSKPMPC.js +73 -0
- package/dist/_browser-chunks/chunk-KBK7GKBN.js +35 -0
- package/dist/_browser-chunks/chunk-KYSD26D6.js +1966 -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-LTCXWKZO.js +2935 -0
- package/dist/_browser-chunks/chunk-LYYXDWR2.js +411 -0
- package/dist/_browser-chunks/chunk-MJIDTL3X.js +78 -0
- package/dist/_browser-chunks/chunk-MLBOOZL4.js +67 -0
- package/dist/_browser-chunks/chunk-N3NRW5XX.js +117 -0
- package/dist/_browser-chunks/chunk-N5WQGLI7.js +11 -0
- package/dist/_browser-chunks/chunk-NA4ITZTK.js +324 -0
- package/dist/_browser-chunks/chunk-NGMQJMCY.js +53 -0
- package/dist/_browser-chunks/chunk-NPNIBOPF.js +18 -0
- package/dist/_browser-chunks/chunk-NQUD4B7H.js +91 -0
- package/dist/_browser-chunks/chunk-NTUHL5NS.js +54 -0
- package/dist/_browser-chunks/chunk-NULBREPZ.js +43 -0
- package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
- package/dist/_browser-chunks/chunk-O24AZJZ7.js +56 -0
- package/dist/_browser-chunks/chunk-ONTSNQON.js +20 -0
- package/dist/_browser-chunks/chunk-OOETBSA7.js +502 -0
- package/dist/_browser-chunks/chunk-OVH3USFB.js +20 -0
- package/dist/_browser-chunks/chunk-OZZPSYQR.js +14 -0
- package/dist/_browser-chunks/chunk-PJSMZ27A.js +13 -0
- package/dist/_browser-chunks/chunk-PZQRXPVR.js +21 -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-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-TTBPZQ24.js +3551 -0
- package/dist/_browser-chunks/chunk-UMDO3KB7.js +205 -0
- package/dist/_browser-chunks/chunk-UMGDO2ZM.js +169 -0
- package/dist/_browser-chunks/chunk-V5U45XXZ.js +24 -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-XKTORVEQ.js +255 -0
- package/dist/_browser-chunks/chunk-XTQCLWVH.js +1500 -0
- package/dist/_browser-chunks/chunk-YI2IBIQS.js +7 -0
- package/dist/_browser-chunks/chunk-ZEHRUHTA.js +6 -0
- package/dist/_browser-chunks/chunk-ZHKZKFY4.js +199 -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-PDBJ2EGV.js +282 -0
- package/dist/_node-chunks/builder-manager-VLL26RPG.js +1139 -0
- package/dist/_node-chunks/chunk-3CSGIJKG.js +499 -0
- package/dist/_node-chunks/chunk-3W4KR5GX.js +2609 -0
- package/dist/_node-chunks/chunk-5NRWU7S2.js +194 -0
- package/dist/_node-chunks/chunk-5SMIGUYF.js +102 -0
- package/dist/_node-chunks/chunk-63LPGIV4.js +1049 -0
- package/dist/_node-chunks/chunk-6DHTL5G2.js +35 -0
- package/dist/_node-chunks/chunk-6DRVJCYP.js +299 -0
- package/dist/_node-chunks/chunk-7CV4VEA2.js +620 -0
- package/dist/_node-chunks/chunk-7KD5DKGZ.js +79 -0
- package/dist/_node-chunks/chunk-7O2UIVID.js +82 -0
- package/dist/_node-chunks/chunk-7OY4VMAT.js +90 -0
- package/dist/_node-chunks/chunk-AAL6X7YG.js +1986 -0
- package/dist/_node-chunks/chunk-ACSO4HQP.js +32 -0
- package/dist/_node-chunks/chunk-BDU3ZUMK.js +98 -0
- package/dist/_node-chunks/chunk-BMJPOQ2S.js +11 -0
- package/dist/_node-chunks/chunk-BNEC3EBC.js +28 -0
- package/dist/_node-chunks/chunk-BPL3ERBH.js +347 -0
- package/dist/_node-chunks/chunk-BXDMSX3D.js +30600 -0
- package/dist/_node-chunks/chunk-C3PLG47Q.js +25 -0
- package/dist/_node-chunks/chunk-CEDR5CNM.js +74 -0
- package/dist/_node-chunks/chunk-CKE4R4NL.js +26 -0
- package/dist/_node-chunks/chunk-CSFNS7HA.js +21 -0
- package/dist/_node-chunks/chunk-CZ3V3HHK.js +223 -0
- package/dist/_node-chunks/chunk-DNV3LPV3.js +33 -0
- package/dist/_node-chunks/chunk-DPILYJH4.js +33 -0
- package/dist/_node-chunks/chunk-DQ44ZAEM.js +25 -0
- package/dist/_node-chunks/chunk-DR7NW2MI.js +104 -0
- package/dist/_node-chunks/chunk-DRCP3DQF.js +209 -0
- package/dist/_node-chunks/chunk-EBWZKN2I.js +1297 -0
- package/dist/_node-chunks/chunk-ECOW63CV.js +92 -0
- package/dist/_node-chunks/chunk-ENBDAHOV.js +18 -0
- package/dist/_node-chunks/chunk-FAEOR2AW.js +40 -0
- package/dist/_node-chunks/chunk-FERXOKZY.js +80 -0
- package/dist/_node-chunks/chunk-FJFB7TWU.js +495 -0
- package/dist/_node-chunks/chunk-FQGQ5KHN.js +63 -0
- package/dist/_node-chunks/chunk-FR2ZDWKJ.js +45 -0
- package/dist/_node-chunks/chunk-FRBE7ES4.js +59 -0
- package/dist/_node-chunks/chunk-FWAF5NBL.js +20 -0
- package/dist/_node-chunks/chunk-FXBZWUW3.js +7044 -0
- package/dist/_node-chunks/chunk-FZ453CHY.js +25 -0
- package/dist/_node-chunks/chunk-G2ZUFOHU.js +68 -0
- package/dist/_node-chunks/chunk-GBVWRZHP.js +23 -0
- package/dist/_node-chunks/chunk-GGE7TBVX.js +121 -0
- package/dist/_node-chunks/chunk-GJSYGBI5.js +47 -0
- package/dist/_node-chunks/chunk-GKHLTHYM.js +4744 -0
- package/dist/_node-chunks/chunk-GQYATLH6.js +3708 -0
- package/dist/_node-chunks/chunk-HCP5DG52.js +2743 -0
- package/dist/_node-chunks/chunk-HVOSLI2K.js +20 -0
- package/dist/_node-chunks/chunk-ID3WA6WR.js +171 -0
- package/dist/_node-chunks/chunk-IGOX6TUG.js +95 -0
- package/dist/_node-chunks/chunk-IL7YA7QJ.js +148 -0
- package/dist/_node-chunks/chunk-IUPE4SU2.js +688 -0
- package/dist/_node-chunks/chunk-JVWXCB3L.js +7179 -0
- package/dist/_node-chunks/chunk-K4O2ZAMU.js +57 -0
- package/dist/_node-chunks/chunk-KRWR44KT.js +25 -0
- package/dist/_node-chunks/chunk-KWNBN3DV.js +132 -0
- package/dist/_node-chunks/chunk-LG3NMXCM.js +20 -0
- package/dist/_node-chunks/chunk-LH5QBX2U.js +1001 -0
- package/dist/_node-chunks/chunk-LX2XSPPL.js +59 -0
- package/dist/_node-chunks/chunk-M4QNXI37.js +21 -0
- package/dist/_node-chunks/chunk-MBPHOLXB.js +1218 -0
- package/dist/_node-chunks/chunk-MIWBXEUH.js +26 -0
- package/dist/_node-chunks/chunk-MKUA4ZCG.js +1193 -0
- package/dist/_node-chunks/chunk-MQC7ZY6L.js +5468 -0
- package/dist/_node-chunks/chunk-MRCPS4S3.js +48 -0
- package/dist/_node-chunks/chunk-MY7UVHPL.js +153 -0
- package/dist/_node-chunks/chunk-ND323XCC.js +33 -0
- package/dist/_node-chunks/chunk-NGFFEW2B.js +972 -0
- package/dist/_node-chunks/chunk-OPG46TLN.js +1119 -0
- package/dist/_node-chunks/chunk-PEL4YXU6.js +19 -0
- package/dist/_node-chunks/chunk-QFXAGOIO.js +115 -0
- package/dist/_node-chunks/chunk-QGC3UWR5.js +110 -0
- package/dist/_node-chunks/chunk-QGVU7IFS.js +414 -0
- package/dist/_node-chunks/chunk-QOFBJXPH.js +1525 -0
- package/dist/_node-chunks/chunk-QVLHVO4X.js +532 -0
- package/dist/_node-chunks/chunk-R2ZCFA7I.js +60 -0
- package/dist/_node-chunks/chunk-RC4HPD5Q.js +26 -0
- package/dist/_node-chunks/chunk-RJXAXHDJ.js +415 -0
- package/dist/_node-chunks/chunk-SGEPJMTU.js +1094 -0
- package/dist/_node-chunks/chunk-SYUOBOB5.js +35 -0
- package/dist/_node-chunks/chunk-T5VZYRL2.js +40 -0
- package/dist/_node-chunks/chunk-T6IU66AM.js +69 -0
- package/dist/_node-chunks/chunk-THDTJJMO.js +611 -0
- package/dist/_node-chunks/chunk-TNFH4Y4G.js +1133 -0
- package/dist/_node-chunks/chunk-TY2ZY7AO.js +155 -0
- package/dist/_node-chunks/chunk-TZIT6SZP.js +49 -0
- package/dist/_node-chunks/chunk-VG2KFIOW.js +45 -0
- package/dist/_node-chunks/chunk-VSHYJR23.js +56 -0
- package/dist/_node-chunks/chunk-VUMGWJ6Y.js +844 -0
- package/dist/_node-chunks/chunk-WVRM6DQU.js +3767 -0
- package/dist/_node-chunks/chunk-YU5TVYPS.js +87 -0
- package/dist/_node-chunks/chunk-ZBWAA2EY.js +2106 -0
- package/dist/_node-chunks/chunk-ZD5TUA6I.js +20 -0
- package/dist/_node-chunks/chunk-ZFLK7MY5.js +144 -0
- package/dist/_node-chunks/dist-7OJKTBKL.js +27 -0
- package/dist/_node-chunks/dist-MWP6WLW4.js +16 -0
- package/dist/_node-chunks/local-runtime-V5YTRN24.js +78 -0
- package/dist/_node-chunks/mdx-plugin-CBOD52VP.js +7813 -0
- package/dist/_node-chunks/monorepo-GF6H53U4.js +121 -0
- package/dist/_node-chunks/monorepo-optimized-tests-relaxed-limits-no-story-deletion-K4TTV2DQ.js +121 -0
- package/dist/_node-chunks/optimized-tests-KOTSVWTN.js +22 -0
- package/dist/_node-chunks/pattern-copy-play-M2QNC4IZ.js +807 -0
- package/dist/_node-chunks/postinstallAddon-WXKJL6DP.js +20 -0
- package/dist/_node-chunks/rehype-external-links-3IDE4CYH.js +121 -0
- package/dist/_node-chunks/rehype-slug-GKB3WS3U.js +52 -0
- package/dist/_node-chunks/relaxed-limits-C6QU365N.js +117 -0
- package/dist/_node-chunks/run-TMVS3KKA.js +4792 -0
- package/dist/_node-chunks/run-XWBUPXLN.js +103 -0
- package/dist/_node-chunks/session-id-VMH57SKN.js +23 -0
- package/dist/_node-chunks/setup-KEEJK4WI.js +278 -0
- package/dist/_node-chunks/vitest.config.4.template-74HEE4WJ.js +54 -0
- package/dist/actions/decorator.d.ts +7 -0
- package/dist/actions/decorator.js +44 -0
- package/dist/actions/index.d.ts +67 -0
- package/dist/actions/index.js +29 -0
- package/dist/addon-a11y/index.d.ts +52 -0
- package/dist/addon-a11y/index.js +17 -0
- package/dist/addon-a11y/manager.js +1432 -0
- package/dist/addon-a11y/preset.js +18 -0
- package/dist/addon-a11y/preview.d.ts +17 -0
- package/dist/addon-a11y/preview.js +16 -0
- package/dist/addon-docs/blocks.d.ts +1080 -0
- package/dist/addon-docs/blocks.js +2537 -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 +23 -0
- package/dist/addon-links/manager.js +14 -0
- package/dist/addon-links/preview.d.ts +6 -0
- package/dist/addon-links/preview.js +12 -0
- package/dist/addon-links/react/index.d.ts +25 -0
- package/dist/addon-links/react/index.js +55 -0
- package/dist/addon-mcp/preset.js +1353 -0
- package/dist/addon-mcp/preview.js +29 -0
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +1129 -0
- package/dist/addon-ondevice-actions/index.d.ts +4 -0
- package/dist/addon-ondevice-actions/index.js +11 -0
- package/dist/addon-ondevice-actions/register.js +11 -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 +942 -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 +1550 -0
- package/dist/babel/index.js +55 -0
- package/dist/backgrounds/index.d.ts +6 -0
- package/dist/backgrounds/index.js +15 -0
- package/dist/bin/core.js +1706 -0
- package/dist/bin/dispatcher.js +45 -0
- package/dist/bin/loader.js +116 -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-BCoJQE-f.d.ts +602 -0
- package/dist/chunk-BGhyFTJO.d.ts +115 -0
- package/dist/chunk-BGkgZp-H.d.ts +214 -0
- package/dist/chunk-BXLImeLy.d.ts +197 -0
- package/dist/chunk-Bpi2tz-6.d.ts +511 -0
- package/dist/chunk-C6PAgHLT.d.ts +12 -0
- package/dist/chunk-CFk6djyM.d.ts +55 -0
- package/dist/chunk-CNqjcOmK.d.ts +15 -0
- package/dist/chunk-CT2iXaHz.d.ts +179 -0
- package/dist/chunk-CV4-Z2pn.d.ts +30 -0
- package/dist/chunk-CYuvV2sR.d.ts +282 -0
- package/dist/chunk-Ct9xd6IM.d.ts +65 -0
- package/dist/chunk-D0NUmzXp.d.ts +253 -0
- package/dist/chunk-D7DwV41f.d.ts +3622 -0
- package/dist/chunk-DDd8BhTY.d.ts +79 -0
- package/dist/chunk-DROZ9oel.d.ts +669 -0
- package/dist/chunk-DaVb55-_.d.ts +124 -0
- package/dist/chunk-DgRNfmj_.d.ts +40 -0
- package/dist/chunk-DgzPaTw9.d.ts +61 -0
- package/dist/chunk-Dm-iHJ-s.d.ts +59 -0
- package/dist/chunk-DoIGKY33.d.ts +666 -0
- package/dist/chunk-Dr3R0DXk.d.ts +40 -0
- package/dist/chunk-Dw_4ad2Y.d.ts +34 -0
- package/dist/chunk-Fg1Fm__9.d.ts +13091 -0
- package/dist/chunk-FjDVzZTj.d.ts +62 -0
- package/dist/chunk-Susgfkap.d.ts +20 -0
- package/dist/chunk-XP8oHzpE.d.ts +6 -0
- package/dist/chunk-pcFXCimE.d.ts +741 -0
- package/dist/cli/index.d.ts +321 -0
- package/dist/cli/index.js +703 -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 +65 -0
- package/dist/common/index.d.ts +1091 -0
- package/dist/common/index.js +358 -0
- package/dist/components/index.d.ts +1727 -0
- package/dist/components/index.js +7982 -0
- package/dist/core-events/index.d.ts +156 -0
- package/dist/core-events/index.js +138 -0
- package/dist/core-server/index.d.ts +2200 -0
- package/dist/core-server/index.js +4577 -0
- package/dist/core-server/presets/common-manager.js +3744 -0
- package/dist/core-server/presets/common-override-preset.js +83 -0
- package/dist/core-server/presets/common-preset.js +2194 -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 +2077 -0
- package/dist/csf-tools/index.d.ts +1161 -0
- package/dist/csf-tools/index.js +738 -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 +2597 -0
- package/dist/manager/_manager-chunks/globals-runtime-BKQscPdC.js +5661 -0
- package/dist/manager/_manager-chunks/globals-runtime-BY3epqww.js +1807 -0
- package/dist/manager/_manager-chunks/globals-runtime-BdGkqNEt.js +45 -0
- package/dist/manager/_manager-chunks/globals-runtime-Bj5KDUJi.js +8935 -0
- package/dist/manager/_manager-chunks/globals-runtime-Bs75QQ_I.js +9987 -0
- package/dist/manager/_manager-chunks/globals-runtime-BweHuXkK.js +6838 -0
- package/dist/manager/_manager-chunks/globals-runtime-CA8AuIRT.js +7617 -0
- package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
- package/dist/manager/_manager-chunks/globals-runtime-CJL1dQtn.js +4674 -0
- package/dist/manager/_manager-chunks/globals-runtime-CfurFwS_.js +121 -0
- package/dist/manager/_manager-chunks/globals-runtime-CvIgTRVu.js +1190 -0
- package/dist/manager/_manager-chunks/globals-runtime-DBba3I9c.js +5307 -0
- package/dist/manager/_manager-chunks/globals-runtime-DvV_TF3-.js +12214 -0
- package/dist/manager/_manager-chunks/globals-runtime-DwFqpqya.js +722 -0
- package/dist/manager/_manager-chunks/globals-runtime-NwJK8t0T.js +9274 -0
- package/dist/manager/_manager-chunks/globals-runtime-WZKaeKm9.js +4091 -0
- package/dist/manager/_manager-chunks/globals-runtime-wjkxyMn0.js +5283 -0
- package/dist/manager/_manager-chunks/runtime-5B2mWjEm.js +294 -0
- package/dist/manager/_manager-chunks/runtime-5o_11Jae.js +78 -0
- package/dist/manager/_manager-chunks/runtime-B_nqedQW.js +197 -0
- package/dist/manager/_manager-chunks/runtime-BdGkqNEt.js +45 -0
- package/dist/manager/_manager-chunks/runtime-Bs3bEhuy.js +1232 -0
- package/dist/manager/_manager-chunks/runtime-CBQsKmch.js +2351 -0
- package/dist/manager/_manager-chunks/runtime-DG61zYUm.js +1158 -0
- package/dist/manager/_manager-chunks/runtime-DtCVCy4G.js +6841 -0
- package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
- package/dist/manager/_manager-chunks/runtime-eBAgOym6.js +9010 -0
- package/dist/manager/_manager-chunks/runtime-j9yqh0tr.js +1023 -0
- package/dist/manager/_manager-chunks/runtime-jj8qYc2n.js +3488 -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 +3247 -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 +526 -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 +59 -0
- package/dist/nextjs-vite/node/index.d.ts +6 -0
- package/dist/nextjs-vite/node/index.js +20 -0
- package/dist/nextjs-vite/node-stand-ins/index.d.ts +68 -0
- package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
- package/dist/nextjs-vite/preset.js +727 -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 +27 -0
- package/dist/nextjs-vite-plugin/index.js +908 -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 +488 -0
- package/dist/node-logger/index.js +41 -0
- package/dist/oxc-parser/index.d.ts +99 -0
- package/dist/oxc-parser/index.js +273 -0
- package/dist/oxc-parser/worker.js +37 -0
- package/dist/preview/_chunks/runtime-BJwGQok8.js +3873 -0
- package/dist/preview/_chunks/runtime-BPwAnlRx.js +10411 -0
- package/dist/preview/_chunks/runtime-BUnOhg9h.js +6838 -0
- package/dist/preview/_chunks/runtime-BZ4pNS3g.js +284 -0
- package/dist/preview/_chunks/runtime-Bcv1hJky.js +6305 -0
- package/dist/preview/_chunks/runtime-BdGkqNEt.js +45 -0
- package/dist/preview/_chunks/runtime-BgPhfM5P.js +3681 -0
- package/dist/preview/_chunks/runtime-BhSZ1Mwt.js +5262 -0
- package/dist/preview/_chunks/runtime-BsMjBzuq.js +53 -0
- package/dist/preview/_chunks/runtime-C1jgT6tJ.js +4091 -0
- package/dist/preview/_chunks/runtime-CkOhMcXf.js +387 -0
- package/dist/preview/_chunks/runtime-WapFVPAh.js +8484 -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 +149 -0
- package/dist/preview-errors.d.ts +186 -0
- package/dist/preview-errors.js +56 -0
- package/dist/react/docgen/docgen-worker.js +37 -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 +22 -0
- package/dist/react/index.d.ts +119 -0
- package/dist/react/index.js +28 -0
- package/dist/react/preset.js +300 -0
- package/dist/react/preview.d.ts +2 -0
- package/dist/react/preview.js +12 -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 +1362 -0
- package/dist/react-native/metro/node.d.ts +83 -0
- package/dist/react-native/metro/node.js +22 -0
- package/dist/react-native/metro/withForkbook.d.ts +2269 -0
- package/dist/react-native/metro/withForkbook.js +139 -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 +119 -0
- package/dist/react-native-theming/index.js +316 -0
- package/dist/react-native-ui/index.d.ts +129 -0
- package/dist/react-native-ui/index.js +1448 -0
- package/dist/react-native-ui-common/index.d.ts +229 -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 +209 -0
- package/dist/router/index.js +1259 -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 +101 -0
- package/dist/test/index.d.ts +158 -0
- package/dist/test/index.js +19656 -0
- package/dist/theming/create.d.ts +15 -0
- package/dist/theming/create.js +12 -0
- package/dist/theming/index.d.ts +54 -0
- package/dist/theming/index.js +536 -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 +1030 -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
|
+
import CJS_COMPAT_NODE_URL_upaeg5sjpn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_upaeg5sjpn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_upaeg5sjpn from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_upaeg5sjpn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_upaeg5sjpn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_upaeg5sjpn.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
nodePathsToArray
|
|
14
|
+
} from "./chunk-BPL3ERBH.js";
|
|
15
|
+
import {
|
|
16
|
+
Tag
|
|
17
|
+
} from "./chunk-SYUOBOB5.js";
|
|
18
|
+
|
|
19
|
+
// src/common/utils/envs.ts
|
|
20
|
+
var isWebContainer = () => process.versions.webcontainer != null;
|
|
21
|
+
async function loadEnvs(options = {}) {
|
|
22
|
+
let { loadEnv } = await import("vite"), defaultNodeEnv = options.production ? "production" : "development", baseEnv = {
|
|
23
|
+
NODE_ENV: process.env.NODE_ENV || defaultNodeEnv,
|
|
24
|
+
NODE_PATH: process.env.NODE_PATH || "",
|
|
25
|
+
STORYBOOK: process.env.STORYBOOK || "true",
|
|
26
|
+
// This is to support CRA's public folder feature.
|
|
27
|
+
// In production we set this to dot(.) to allow the browser to access these assets
|
|
28
|
+
// even when deployed inside a subpath. (like in GitHub pages)
|
|
29
|
+
// In development this is just empty as we always serves from the root.
|
|
30
|
+
PUBLIC_URL: options.production ? "." : ""
|
|
31
|
+
}, envEntries = loadEnv(baseEnv.NODE_ENV, process.cwd(), "FORKBOOK_"), raw = { ...baseEnv, ...envEntries };
|
|
32
|
+
raw.NODE_PATH = nodePathsToArray(raw.NODE_PATH || "");
|
|
33
|
+
let stringified = Object.fromEntries(
|
|
34
|
+
Object.entries(raw).map(([key, value]) => [key, JSON.stringify(value)])
|
|
35
|
+
);
|
|
36
|
+
return { raw, stringified };
|
|
37
|
+
}
|
|
38
|
+
var stringifyEnvs = (raw) => Object.entries(raw).reduce((acc, [key, value]) => (acc[key] = JSON.stringify(value), acc), {}), stringifyProcessEnvs = (raw) => Object.entries(raw).reduce((acc, [key, value]) => (acc[`process.env.${key}`] = JSON.stringify(value), acc), {}), optionalEnvToBoolean = (input) => {
|
|
39
|
+
if (input !== void 0)
|
|
40
|
+
return input.toUpperCase() === "FALSE" || input === "0" ? !1 : input.toUpperCase() === "TRUE" || input === "1" ? !0 : !!input;
|
|
41
|
+
};
|
|
42
|
+
function isCI() {
|
|
43
|
+
return optionalEnvToBoolean(process.env.CI);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// src/common/utils/component-id.ts
|
|
47
|
+
function getComponentIdFromEntry(entry) {
|
|
48
|
+
return entry.id.split("--")[0];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// src/common/utils/select-component-entry.ts
|
|
52
|
+
import { dedent } from "ts-dedent";
|
|
53
|
+
import { once } from "@aussieljk/forkbook/internal/node-logger";
|
|
54
|
+
var STORY_FILE_TEST_REGEXP = /(stories|story)\.(m?js|ts)x?$/;
|
|
55
|
+
function isAttachedDocsEntry(entry) {
|
|
56
|
+
return entry.type === "docs" && entry.tags?.includes(Tag.ATTACHED_MDX) === !0 && entry.storiesImports.length > 0;
|
|
57
|
+
}
|
|
58
|
+
function isEligibleStoryEntry(entry) {
|
|
59
|
+
return entry.type === "story" && entry.subtype === "story";
|
|
60
|
+
}
|
|
61
|
+
function getStoryImportPathFromEntry(entry) {
|
|
62
|
+
if (entry.type === "story")
|
|
63
|
+
return entry.importPath;
|
|
64
|
+
if (isAttachedDocsEntry(entry))
|
|
65
|
+
return entry.storiesImports[0];
|
|
66
|
+
}
|
|
67
|
+
function buildCollisionWarning(componentId, importPaths, winner) {
|
|
68
|
+
let sortedPaths = Array.from(importPaths).sort();
|
|
69
|
+
return dedent`
|
|
70
|
+
Multiple story files share the component id '${componentId}':
|
|
71
|
+
${sortedPaths.map((path) => ` - ${path}`).join(`
|
|
72
|
+
`)}
|
|
73
|
+
The props table and description for this id are generated from '${winner.importPath}' only. If these files document different components, give each file a unique title so every component keeps its docs.
|
|
74
|
+
`;
|
|
75
|
+
}
|
|
76
|
+
function selectComponentEntriesByComponentId(indexEntries) {
|
|
77
|
+
let entriesByComponentId = /* @__PURE__ */ new Map(), storyImportPathsByComponentId = /* @__PURE__ */ new Map();
|
|
78
|
+
for (let entry of indexEntries) {
|
|
79
|
+
if (!isEligibleStoryEntry(entry))
|
|
80
|
+
continue;
|
|
81
|
+
let componentId = getComponentIdFromEntry(entry);
|
|
82
|
+
entriesByComponentId.set(componentId, entry);
|
|
83
|
+
let importPaths = storyImportPathsByComponentId.get(componentId) ?? /* @__PURE__ */ new Set();
|
|
84
|
+
importPaths.add(entry.importPath), storyImportPathsByComponentId.set(componentId, importPaths);
|
|
85
|
+
}
|
|
86
|
+
for (let [componentId, importPaths] of storyImportPathsByComponentId) {
|
|
87
|
+
let winner = entriesByComponentId.get(componentId);
|
|
88
|
+
importPaths.size > 1 && winner && once.warn(buildCollisionWarning(componentId, importPaths, winner));
|
|
89
|
+
}
|
|
90
|
+
for (let entry of indexEntries) {
|
|
91
|
+
if (!isAttachedDocsEntry(entry))
|
|
92
|
+
continue;
|
|
93
|
+
let componentId = getComponentIdFromEntry(entry);
|
|
94
|
+
entriesByComponentId.has(componentId) || entriesByComponentId.set(componentId, entry);
|
|
95
|
+
}
|
|
96
|
+
return entriesByComponentId;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// src/common/utils/exec.ts
|
|
100
|
+
import { fork } from "node:child_process";
|
|
101
|
+
|
|
102
|
+
// ../../node_modules/tinyexec/dist/main.mjs
|
|
103
|
+
import { spawn, spawnSync } from "node:child_process";
|
|
104
|
+
import { cwd } from "node:process";
|
|
105
|
+
import { basename, delimiter, dirname, normalize, resolve } from "node:path";
|
|
106
|
+
import { fileURLToPath } from "node:url";
|
|
107
|
+
import { pipeline } from "node:stream/promises";
|
|
108
|
+
import { PassThrough } from "node:stream";
|
|
109
|
+
import readline from "node:readline";
|
|
110
|
+
import { closeSync, openSync, readSync, statSync } from "node:fs";
|
|
111
|
+
var isPathLikePattern = /^path$/i, defaultEnvPathInfo = {
|
|
112
|
+
key: "PATH",
|
|
113
|
+
value: ""
|
|
114
|
+
};
|
|
115
|
+
function getPathFromEnv(env) {
|
|
116
|
+
for (let key in env) {
|
|
117
|
+
if (!Object.prototype.hasOwnProperty.call(env, key) || !isPathLikePattern.test(key)) continue;
|
|
118
|
+
let value = env[key];
|
|
119
|
+
return value ? {
|
|
120
|
+
key,
|
|
121
|
+
value
|
|
122
|
+
} : defaultEnvPathInfo;
|
|
123
|
+
}
|
|
124
|
+
return defaultEnvPathInfo;
|
|
125
|
+
}
|
|
126
|
+
function addNodeBinToPath(cwd2, path) {
|
|
127
|
+
let parts = path.value.split(delimiter), nodeBinPaths = [], currentPath = typeof cwd2 == "string" ? cwd2 : fileURLToPath(cwd2, { windows: !1 }), lastPath;
|
|
128
|
+
do
|
|
129
|
+
nodeBinPaths.push(resolve(currentPath, "node_modules", ".bin")), lastPath = currentPath, currentPath = dirname(currentPath);
|
|
130
|
+
while (currentPath !== lastPath);
|
|
131
|
+
nodeBinPaths.push(dirname(process.execPath));
|
|
132
|
+
let newPath = nodeBinPaths.concat(parts).join(delimiter);
|
|
133
|
+
return {
|
|
134
|
+
key: path.key,
|
|
135
|
+
value: newPath
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function computeEnv(cwd2, env, nodePath = !0) {
|
|
139
|
+
let envWithDefault = {
|
|
140
|
+
...process.env,
|
|
141
|
+
...env
|
|
142
|
+
};
|
|
143
|
+
if (!nodePath) return envWithDefault;
|
|
144
|
+
let envPathInfo = addNodeBinToPath(cwd2, getPathFromEnv(envWithDefault));
|
|
145
|
+
return envWithDefault[envPathInfo.key] = envPathInfo.value, envWithDefault;
|
|
146
|
+
}
|
|
147
|
+
var combineStreams = (streams) => {
|
|
148
|
+
let streamCount = streams.length, combined = new PassThrough(), maybeEmitEnd = () => {
|
|
149
|
+
--streamCount === 0 && combined.end();
|
|
150
|
+
};
|
|
151
|
+
for (let stream of streams) pipeline(stream, combined, { end: !1 }).then(maybeEmitEnd).catch(maybeEmitEnd);
|
|
152
|
+
return combined;
|
|
153
|
+
}, metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g, shebangRegExp = /^#!\s*(.+)/, isWindowsExecutableRegExp = /\.(?:com|exe)$/i, isNodeModulesCmdRegExp = /node_modules[\\/]\.bin[\\/][^\\/]+\.cmd$/i, isWindows = process.platform === "win32", defaultPathExt = [
|
|
154
|
+
".EXE",
|
|
155
|
+
".CMD",
|
|
156
|
+
".BAT",
|
|
157
|
+
".COM"
|
|
158
|
+
], noPathExt = [""];
|
|
159
|
+
function normalizeSpawnCommand(command, args = [], options = {}) {
|
|
160
|
+
if (options.shell === !0 || !isWindows) return {
|
|
161
|
+
command,
|
|
162
|
+
args,
|
|
163
|
+
options
|
|
164
|
+
};
|
|
165
|
+
let file = resolveCommand(command, options), shebang = null;
|
|
166
|
+
if (file !== null) {
|
|
167
|
+
let buffer = Buffer.alloc(150), fd = null;
|
|
168
|
+
try {
|
|
169
|
+
fd = openSync(file, "r"), readSync(fd, buffer, 0, 150, 0);
|
|
170
|
+
} catch {
|
|
171
|
+
} finally {
|
|
172
|
+
fd !== null && closeSync(fd);
|
|
173
|
+
}
|
|
174
|
+
let match = buffer.toString().match(shebangRegExp);
|
|
175
|
+
if (match !== null) {
|
|
176
|
+
let line = match[1].trim(), separatorIndex = line.indexOf(" "), path = separatorIndex !== -1 ? line.slice(0, separatorIndex) : line, argument = separatorIndex !== -1 ? line.slice(separatorIndex + 1) : "", binary = basename(path);
|
|
177
|
+
shebang = binary === "env" ? argument || null : binary;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
if (shebang !== null && file !== null && (args = [file, ...args], command = shebang, file = resolveCommand(command, options)), file === null || !isWindowsExecutableRegExp.test(file)) {
|
|
181
|
+
let needsDoubleEscapeMetaChars = file !== null && isNodeModulesCmdRegExp.test(file);
|
|
182
|
+
command = normalize(command), command = command.replace(metaCharsRegExp, "^$1"), args = args.map((arg) => (arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"'), arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1"), arg = `"${arg}"`, arg = arg.replace(metaCharsRegExp, "^$1"), needsDoubleEscapeMetaChars && (arg = arg.replace(metaCharsRegExp, "^$1")), arg)), args = [
|
|
183
|
+
"/d",
|
|
184
|
+
"/s",
|
|
185
|
+
"/c",
|
|
186
|
+
`"${[command, ...args].join(" ")}"`
|
|
187
|
+
], command = options.env?.comspec ?? "cmd.exe", options = {
|
|
188
|
+
...options,
|
|
189
|
+
windowsVerbatimArguments: !0
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
return {
|
|
193
|
+
command,
|
|
194
|
+
args,
|
|
195
|
+
options
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
function resolveCommand(command, options) {
|
|
199
|
+
let cwd$3 = (options.cwd ?? cwd()).toString(), env = options.env ?? process.env, PATH = getPathFromEnv(env).value, pathEnv = command.includes("/") || command.includes("\\") ? [""] : [cwd$3, ...PATH.split(delimiter)], pathExt = env.PATHEXT ? env.PATHEXT.split(delimiter) : defaultPathExt;
|
|
200
|
+
command.includes(".") && pathExt[0] !== "" && (pathExt = ["", ...pathExt]);
|
|
201
|
+
for (let extensions of [pathExt, noPathExt]) for (let path of pathEnv) {
|
|
202
|
+
let unquoted = path.startsWith('"') && path.endsWith('"') && path.length > 1 ? path.slice(1, -1) : path, dest = resolve(cwd$3, unquoted, command);
|
|
203
|
+
for (let ext of extensions) {
|
|
204
|
+
let destWithExt = dest + ext;
|
|
205
|
+
try {
|
|
206
|
+
if (statSync(destWithExt).isFile()) return destWithExt;
|
|
207
|
+
} catch {
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return null;
|
|
212
|
+
}
|
|
213
|
+
var NonZeroExitError = class extends Error {
|
|
214
|
+
result;
|
|
215
|
+
output;
|
|
216
|
+
exitCode;
|
|
217
|
+
get signalCode() {
|
|
218
|
+
return this.result.signalCode;
|
|
219
|
+
}
|
|
220
|
+
constructor(result, output, command, args) {
|
|
221
|
+
let target = "The process";
|
|
222
|
+
command && (target = `The command \`${args?.length ? `${command} ${args.map((a) => /[ "'`()]/.test(a) ? JSON.stringify(a) : a).join(" ")}` : command}\``);
|
|
223
|
+
let exitCode = result.exitCode ?? 1;
|
|
224
|
+
super(result.signalCode !== null ? `${target} was killed by the signal ${result.signalCode}` : `${target} exited with a non-zero status (${exitCode})`), this.result = result, this.output = output, this.exitCode = exitCode, Object.defineProperty(this, "result", {
|
|
225
|
+
enumerable: !1,
|
|
226
|
+
writable: !1,
|
|
227
|
+
configurable: !1
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
}, LINE_SEPARATOR_REGEX = /\r?\n/, defaultOptions = {
|
|
231
|
+
timeout: void 0,
|
|
232
|
+
persist: !1
|
|
233
|
+
}, defaultSyncOptions = { timeout: void 0 }, defaultNodeOptions = { windowsHide: !0 };
|
|
234
|
+
function combineSignals(signals) {
|
|
235
|
+
let controller = new AbortController();
|
|
236
|
+
for (let signal of signals) {
|
|
237
|
+
if (signal.aborted)
|
|
238
|
+
return controller.abort(), signal;
|
|
239
|
+
let onAbort = () => {
|
|
240
|
+
controller.abort(signal.reason);
|
|
241
|
+
};
|
|
242
|
+
signal.addEventListener("abort", onAbort, { signal: controller.signal });
|
|
243
|
+
}
|
|
244
|
+
return controller.signal;
|
|
245
|
+
}
|
|
246
|
+
async function readStream(stream) {
|
|
247
|
+
let output = "";
|
|
248
|
+
try {
|
|
249
|
+
for await (let chunk of stream) output += chunk.toString();
|
|
250
|
+
} catch {
|
|
251
|
+
}
|
|
252
|
+
return output;
|
|
253
|
+
}
|
|
254
|
+
var ExecProcess = class {
|
|
255
|
+
_process;
|
|
256
|
+
_aborted = !1;
|
|
257
|
+
_options;
|
|
258
|
+
_command;
|
|
259
|
+
_args;
|
|
260
|
+
_resolveClose;
|
|
261
|
+
_processClosed;
|
|
262
|
+
_thrownError;
|
|
263
|
+
get process() {
|
|
264
|
+
return this._process;
|
|
265
|
+
}
|
|
266
|
+
get pid() {
|
|
267
|
+
return this._process?.pid;
|
|
268
|
+
}
|
|
269
|
+
get exitCode() {
|
|
270
|
+
if (this._process && this._process.exitCode !== null) return this._process.exitCode;
|
|
271
|
+
}
|
|
272
|
+
get signalCode() {
|
|
273
|
+
return this._process?.signalCode ?? null;
|
|
274
|
+
}
|
|
275
|
+
constructor(command, args, options) {
|
|
276
|
+
this._options = {
|
|
277
|
+
...defaultOptions,
|
|
278
|
+
...options
|
|
279
|
+
}, this._command = command, this._args = args ?? [], this._processClosed = new Promise((resolve2) => {
|
|
280
|
+
this._resolveClose = resolve2;
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
kill(signal) {
|
|
284
|
+
return this._process?.kill(signal) === !0;
|
|
285
|
+
}
|
|
286
|
+
get aborted() {
|
|
287
|
+
return this._aborted;
|
|
288
|
+
}
|
|
289
|
+
get killed() {
|
|
290
|
+
return this._process?.killed === !0;
|
|
291
|
+
}
|
|
292
|
+
pipe(command, args, options) {
|
|
293
|
+
return exec(command, args, {
|
|
294
|
+
...options,
|
|
295
|
+
stdin: this
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
async *[Symbol.asyncIterator]() {
|
|
299
|
+
let proc = this._process;
|
|
300
|
+
if (!proc) return;
|
|
301
|
+
let streams = [];
|
|
302
|
+
this._streamErr && streams.push(this._streamErr), this._streamOut && streams.push(this._streamOut);
|
|
303
|
+
let streamCombined = combineStreams(streams), rl = readline.createInterface({ input: streamCombined });
|
|
304
|
+
for await (let chunk of rl) yield chunk.toString();
|
|
305
|
+
if (await this._processClosed, proc.removeAllListeners(), this._thrownError) throw this._thrownError;
|
|
306
|
+
if (this._options?.throwOnError && (this.exitCode !== 0 && this.exitCode !== void 0 || this.signalCode !== null)) throw new NonZeroExitError(this, void 0, this._command, this._args);
|
|
307
|
+
}
|
|
308
|
+
async _waitForOutput() {
|
|
309
|
+
let proc = this._process;
|
|
310
|
+
if (!proc) throw new Error("No process was started");
|
|
311
|
+
let [stdout, stderr] = await Promise.all([this._streamOut ? readStream(this._streamOut) : "", this._streamErr ? readStream(this._streamErr) : ""]);
|
|
312
|
+
await this._processClosed;
|
|
313
|
+
let { stdin } = this._options;
|
|
314
|
+
if (stdin && typeof stdin != "string" && await stdin, proc.removeAllListeners(), this._thrownError) throw this._thrownError;
|
|
315
|
+
let result = {
|
|
316
|
+
stderr,
|
|
317
|
+
stdout,
|
|
318
|
+
exitCode: this.exitCode
|
|
319
|
+
};
|
|
320
|
+
if (this._options.throwOnError && (this.exitCode !== 0 && this.exitCode !== void 0 || this.signalCode !== null)) throw new NonZeroExitError(this, result, this._command, this._args);
|
|
321
|
+
return result;
|
|
322
|
+
}
|
|
323
|
+
then(onfulfilled, onrejected) {
|
|
324
|
+
return this._waitForOutput().then(onfulfilled, onrejected);
|
|
325
|
+
}
|
|
326
|
+
_streamOut;
|
|
327
|
+
_streamErr;
|
|
328
|
+
spawn() {
|
|
329
|
+
let options = this._options, nodeOptions = {
|
|
330
|
+
...defaultNodeOptions,
|
|
331
|
+
...options.nodeOptions
|
|
332
|
+
}, cwd$1 = nodeOptions?.cwd ?? cwd(), signals = [];
|
|
333
|
+
this._resetState(), options.timeout !== void 0 && signals.push(AbortSignal.timeout(options.timeout)), options.signal !== void 0 && signals.push(options.signal), options.persist === !0 && (nodeOptions.detached = !0), signals.length > 0 && (nodeOptions.signal = combineSignals(signals)), nodeOptions.env = computeEnv(cwd$1, nodeOptions.env, options.nodePath);
|
|
334
|
+
let crossResult = normalizeSpawnCommand(this._command, this._args, nodeOptions), handle = spawn(crossResult.command, crossResult.args, crossResult.options);
|
|
335
|
+
if (handle.stderr && (this._streamErr = handle.stderr), handle.stdout && (this._streamOut = handle.stdout), this._process = handle, handle.once("error", this._onError), handle.once("close", this._onClose), handle.stdin) {
|
|
336
|
+
let { stdin } = options;
|
|
337
|
+
typeof stdin == "string" ? handle.stdin.end(stdin) : stdin?.process?.stdout?.pipe(handle.stdin);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
_resetState() {
|
|
341
|
+
this._aborted = !1, this._processClosed = new Promise((resolve2) => {
|
|
342
|
+
this._resolveClose = resolve2;
|
|
343
|
+
}), this._thrownError = void 0;
|
|
344
|
+
}
|
|
345
|
+
_onError = (err) => {
|
|
346
|
+
if (err.name === "AbortError" && (!(err.cause instanceof Error) || err.cause.name !== "TimeoutError")) {
|
|
347
|
+
this._aborted = !0;
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
this._thrownError = err;
|
|
351
|
+
};
|
|
352
|
+
_onClose = () => {
|
|
353
|
+
this._resolveClose && this._resolveClose();
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
function xSync(command, args, options) {
|
|
357
|
+
let opts = {
|
|
358
|
+
...defaultSyncOptions,
|
|
359
|
+
...options
|
|
360
|
+
}, nodeOptions = {
|
|
361
|
+
...defaultNodeOptions,
|
|
362
|
+
...opts.nodeOptions
|
|
363
|
+
}, cwd$2 = nodeOptions?.cwd ?? cwd();
|
|
364
|
+
opts.timeout !== void 0 && (nodeOptions.timeout = opts.timeout), nodeOptions.env = computeEnv(cwd$2, nodeOptions.env, opts.nodePath);
|
|
365
|
+
let crossResult = normalizeSpawnCommand(command, args ?? [], nodeOptions), spawnResult = spawnSync(crossResult.command, crossResult.args, crossResult.options);
|
|
366
|
+
if (spawnResult.error) throw spawnResult.error;
|
|
367
|
+
let stdout = spawnResult.stdout?.toString() ?? "", stderr = spawnResult.stderr?.toString() ?? "", exitCode = spawnResult.status ?? void 0, signalCode = spawnResult.signal ?? null, killed = signalCode !== null, result = {
|
|
368
|
+
stdout,
|
|
369
|
+
stderr,
|
|
370
|
+
get exitCode() {
|
|
371
|
+
return exitCode;
|
|
372
|
+
},
|
|
373
|
+
get signalCode() {
|
|
374
|
+
return signalCode;
|
|
375
|
+
},
|
|
376
|
+
get pid() {
|
|
377
|
+
return spawnResult.pid;
|
|
378
|
+
},
|
|
379
|
+
get killed() {
|
|
380
|
+
return killed;
|
|
381
|
+
},
|
|
382
|
+
*[Symbol.iterator]() {
|
|
383
|
+
for (let text of [stdout, stderr]) {
|
|
384
|
+
if (!text) continue;
|
|
385
|
+
let lines = text.split(LINE_SEPARATOR_REGEX);
|
|
386
|
+
lines[lines.length - 1] === "" && lines.pop(), yield* lines;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
if (opts.throwOnError && (exitCode !== 0 && exitCode !== void 0 || signalCode !== null)) throw new NonZeroExitError(result, {
|
|
391
|
+
stdout: result.stdout,
|
|
392
|
+
stderr: result.stderr,
|
|
393
|
+
exitCode: result.exitCode
|
|
394
|
+
}, command, args);
|
|
395
|
+
return result;
|
|
396
|
+
}
|
|
397
|
+
var x = (command, args, userOptions) => {
|
|
398
|
+
let proc = new ExecProcess(command, args, userOptions);
|
|
399
|
+
return proc.spawn(), proc;
|
|
400
|
+
}, exec = x;
|
|
401
|
+
|
|
402
|
+
// src/common/utils/exec.ts
|
|
403
|
+
var ExecError = class extends Error {
|
|
404
|
+
constructor(command, {
|
|
405
|
+
exitCode,
|
|
406
|
+
signal,
|
|
407
|
+
code,
|
|
408
|
+
stdout = "",
|
|
409
|
+
stderr = "",
|
|
410
|
+
cause
|
|
411
|
+
}) {
|
|
412
|
+
let shortMessage = `Command ${signal ? `was killed with ${signal}` : code ? `failed with ${code}` : `failed with exit code ${exitCode}`}: ${command}`;
|
|
413
|
+
super([shortMessage, stderr, stdout].filter(Boolean).join(`
|
|
414
|
+
|
|
415
|
+
`), { cause }), this.name = "ExecError", this.command = command, this.shortMessage = shortMessage, this.exitCode = exitCode, this.signal = signal, this.code = code, this.stdout = stdout, this.stderr = stderr;
|
|
416
|
+
}
|
|
417
|
+
}, withProcessEnv = (env) => ({ ...process.env, ...env });
|
|
418
|
+
function exec2(command, args = [], options = {}) {
|
|
419
|
+
let commandLine = [command, ...args].join(" "), result = x(command, args, {
|
|
420
|
+
throwOnError: !1,
|
|
421
|
+
timeout: options.timeout,
|
|
422
|
+
nodeOptions: {
|
|
423
|
+
cwd: options.cwd,
|
|
424
|
+
env: withProcessEnv(options.env),
|
|
425
|
+
stdio: options.stdio ?? "pipe",
|
|
426
|
+
signal: options.signal,
|
|
427
|
+
shell: options.shell
|
|
428
|
+
}
|
|
429
|
+
}), promise = Promise.resolve(result).then(
|
|
430
|
+
(output) => {
|
|
431
|
+
let signal = result.signalCode ?? void 0;
|
|
432
|
+
if (output.exitCode !== 0 || signal)
|
|
433
|
+
throw new ExecError(commandLine, { ...output, signal });
|
|
434
|
+
return output;
|
|
435
|
+
},
|
|
436
|
+
(error) => {
|
|
437
|
+
throw error?.name === "AbortError" ? error : new ExecError(commandLine, { code: error?.code, cause: error });
|
|
438
|
+
}
|
|
439
|
+
);
|
|
440
|
+
return Object.assign(promise, {
|
|
441
|
+
stdout: result.process?.stdout ?? null,
|
|
442
|
+
stderr: result.process?.stderr ?? null,
|
|
443
|
+
kill: () => result.kill()
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
function execSync(command, args = [], options = {}) {
|
|
447
|
+
let commandLine = [command, ...args].join(" "), output;
|
|
448
|
+
try {
|
|
449
|
+
output = xSync(command, args, {
|
|
450
|
+
throwOnError: !1,
|
|
451
|
+
timeout: options.timeout,
|
|
452
|
+
nodeOptions: {
|
|
453
|
+
cwd: options.cwd,
|
|
454
|
+
env: withProcessEnv(options.env),
|
|
455
|
+
stdio: options.stdio ?? "pipe",
|
|
456
|
+
encoding: "utf8",
|
|
457
|
+
shell: options.shell
|
|
458
|
+
}
|
|
459
|
+
});
|
|
460
|
+
} catch (error) {
|
|
461
|
+
throw new ExecError(commandLine, {
|
|
462
|
+
code: error?.code,
|
|
463
|
+
cause: error
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
let signal = output.signalCode ?? void 0;
|
|
467
|
+
if (output.exitCode !== 0 || signal)
|
|
468
|
+
throw new ExecError(commandLine, { ...output, signal });
|
|
469
|
+
return output;
|
|
470
|
+
}
|
|
471
|
+
function execNode(scriptPath, args = [], options = {}) {
|
|
472
|
+
return fork(scriptPath, args, {
|
|
473
|
+
cwd: options.cwd,
|
|
474
|
+
env: withProcessEnv(options.env),
|
|
475
|
+
signal: options.signal,
|
|
476
|
+
stdio: ["pipe", "pipe", "pipe", "ipc"]
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
export {
|
|
481
|
+
exec2 as exec,
|
|
482
|
+
execSync,
|
|
483
|
+
execNode,
|
|
484
|
+
isWebContainer,
|
|
485
|
+
loadEnvs,
|
|
486
|
+
stringifyEnvs,
|
|
487
|
+
stringifyProcessEnvs,
|
|
488
|
+
optionalEnvToBoolean,
|
|
489
|
+
isCI,
|
|
490
|
+
getComponentIdFromEntry,
|
|
491
|
+
STORY_FILE_TEST_REGEXP,
|
|
492
|
+
isEligibleStoryEntry,
|
|
493
|
+
getStoryImportPathFromEntry,
|
|
494
|
+
selectComponentEntriesByComponentId
|
|
495
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_upaeg5sjpn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_upaeg5sjpn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_upaeg5sjpn from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_upaeg5sjpn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_upaeg5sjpn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_upaeg5sjpn.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
var __create = Object.create;
|
|
13
|
+
var __defProp = Object.defineProperty;
|
|
14
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
15
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
16
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
17
|
+
var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(x, {
|
|
18
|
+
get: (a, b) => (typeof require < "u" ? require : a)[b]
|
|
19
|
+
}) : x)(function(x) {
|
|
20
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
21
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
22
|
+
});
|
|
23
|
+
var __esm = (fn, res, err) => function() {
|
|
24
|
+
if (err) throw err[0];
|
|
25
|
+
try {
|
|
26
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
27
|
+
} catch (e) {
|
|
28
|
+
throw err = [e], e;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
var __commonJS = (cb, mod) => function() {
|
|
32
|
+
try {
|
|
33
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
34
|
+
} catch (e) {
|
|
35
|
+
throw mod = 0, e;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __export = (target, all) => {
|
|
39
|
+
for (var name in all)
|
|
40
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
41
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
42
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
43
|
+
for (let key of __getOwnPropNames(from))
|
|
44
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
45
|
+
return to;
|
|
46
|
+
};
|
|
47
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
48
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
49
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
50
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
51
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
52
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
53
|
+
mod
|
|
54
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
55
|
+
|
|
56
|
+
export {
|
|
57
|
+
__require,
|
|
58
|
+
__esm,
|
|
59
|
+
__commonJS,
|
|
60
|
+
__export,
|
|
61
|
+
__toESM,
|
|
62
|
+
__toCommonJS
|
|
63
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_upaeg5sjpn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_upaeg5sjpn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_upaeg5sjpn from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_upaeg5sjpn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_upaeg5sjpn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_upaeg5sjpn.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
StorybookError
|
|
14
|
+
} from "./chunk-LH5QBX2U.js";
|
|
15
|
+
|
|
16
|
+
// src/manager-errors.ts
|
|
17
|
+
var StatusTypeIdMismatchError = class extends StorybookError {
|
|
18
|
+
constructor(data) {
|
|
19
|
+
super({
|
|
20
|
+
name: "StatusTypeIdMismatchError",
|
|
21
|
+
category: "MANAGER_API" /* MANAGER_API */,
|
|
22
|
+
code: 1,
|
|
23
|
+
message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify(
|
|
24
|
+
data.status,
|
|
25
|
+
null,
|
|
26
|
+
2
|
|
27
|
+
)}`
|
|
28
|
+
});
|
|
29
|
+
this.data = data;
|
|
30
|
+
}
|
|
31
|
+
}, UniversalStoreFollowerTimeoutError = class extends StorybookError {
|
|
32
|
+
constructor(followerId) {
|
|
33
|
+
super({
|
|
34
|
+
name: "UniversalStoreFollowerTimeoutError",
|
|
35
|
+
category: "MANAGER_UNIVERSAL-STORE" /* MANAGER_UNIVERSAL_STORE */,
|
|
36
|
+
code: 1,
|
|
37
|
+
message: `Timed out waiting for leader state for UniversalStore follower with id: '${followerId}'. Ensure a leader with the same id exists and is reachable before creating a follower.`
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export {
|
|
43
|
+
StatusTypeIdMismatchError,
|
|
44
|
+
UniversalStoreFollowerTimeoutError
|
|
45
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_upaeg5sjpn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_upaeg5sjpn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_upaeg5sjpn from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_upaeg5sjpn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_upaeg5sjpn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_upaeg5sjpn.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// ../../node_modules/github-slugger/regex.js
|
|
14
|
+
var regex = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;
|
|
15
|
+
|
|
16
|
+
// ../../node_modules/github-slugger/index.js
|
|
17
|
+
var own = Object.hasOwnProperty, BananaSlug = class {
|
|
18
|
+
/**
|
|
19
|
+
* Create a new slug class.
|
|
20
|
+
*/
|
|
21
|
+
constructor() {
|
|
22
|
+
this.occurrences, this.reset();
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Generate a unique slug.
|
|
26
|
+
*
|
|
27
|
+
* Tracks previously generated slugs: repeated calls with the same value
|
|
28
|
+
* will result in different slugs.
|
|
29
|
+
* Use the `slug` function to get same slugs.
|
|
30
|
+
*
|
|
31
|
+
* @param {string} value
|
|
32
|
+
* String of text to slugify
|
|
33
|
+
* @param {boolean} [maintainCase=false]
|
|
34
|
+
* Keep the current case, otherwise make all lowercase
|
|
35
|
+
* @return {string}
|
|
36
|
+
* A unique slug string
|
|
37
|
+
*/
|
|
38
|
+
slug(value, maintainCase) {
|
|
39
|
+
let self = this, result = slug(value, maintainCase === !0), originalSlug = result;
|
|
40
|
+
for (; own.call(self.occurrences, result); )
|
|
41
|
+
self.occurrences[originalSlug]++, result = originalSlug + "-" + self.occurrences[originalSlug];
|
|
42
|
+
return self.occurrences[result] = 0, result;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Reset - Forget all previous slugs
|
|
46
|
+
*
|
|
47
|
+
* @return void
|
|
48
|
+
*/
|
|
49
|
+
reset() {
|
|
50
|
+
this.occurrences = /* @__PURE__ */ Object.create(null);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
function slug(value, maintainCase) {
|
|
54
|
+
return typeof value != "string" ? "" : (maintainCase || (value = value.toLowerCase()), value.replace(regex, "").replace(/ /g, "-"));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export {
|
|
58
|
+
BananaSlug
|
|
59
|
+
};
|