@aussieljk/forkbook 0.0.1-2 → 0.0.1-21
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 +1 -1
- package/README.md +35 -53
- package/assets/addon-vitest/templates/vitest.config.4.template.ts +2 -2
- package/assets/browser/favicon-wrapper.svg +4 -4
- package/assets/browser/favicon.svg +1 -1
- 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 +8 -24
- package/assets/create/rendererAssets/common/Configure.mdx +100 -100
- package/assets/create/rendererAssets/common/button.css +7 -7
- package/assets/create/rendererAssets/common/header.css +6 -6
- package/assets/create/rendererAssets/common/page.css +12 -12
- package/assets/create/templates/react-native/index.expo.js +4 -4
- package/assets/create/templates/react-native/index.js +5 -5
- package/assets/server/base-preview-body.html +32 -32
- package/assets/server/base-preview-head.html +86 -86
- package/assets/server/template.ejs +31 -26
- package/dist/_browser-chunks/{Color-PCLE2J36.js → Color-7FO5YFB5.js} +8 -8
- package/dist/_browser-chunks/{DocsRenderer-JXND3PVQ.js → DocsRenderer-DKXSW2OY.js} +2 -2
- package/dist/_browser-chunks/WithTooltip-QWFSUQZP.js +199 -0
- package/dist/_browser-chunks/{chunk-RBCHTR7C.js → chunk-2ELGJRFZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-PFRNG3UC.js → chunk-2WZWS7GJ.js} +5 -5
- package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-3QNZOMD7.js} +8 -3
- package/dist/_browser-chunks/{chunk-LV5PIKV4.js → chunk-3QPZOXB7.js} +6 -8
- package/dist/_browser-chunks/{chunk-ODVJ3XZJ.js → chunk-4BOJAE7P.js} +14 -10
- package/dist/_browser-chunks/{chunk-2MEPHP35.js → chunk-4KIQBRD2.js} +1 -1
- package/dist/_browser-chunks/{chunk-KQ7CRO2B.js → chunk-5Z3MWCFR.js} +12 -12
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/{chunk-W5M6NPS3.js → chunk-6SL45YM3.js} +15 -18
- package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-AN2LJG5I.js} +1 -1
- package/dist/_browser-chunks/{chunk-P6PK47TQ.js → chunk-BLCZ3C5M.js} +48 -83
- package/dist/_browser-chunks/{chunk-RSPAQWVJ.js → chunk-BNP234B4.js} +1 -1
- package/dist/_browser-chunks/{chunk-JYVGARBG.js → chunk-BSYOFSF6.js} +770 -720
- package/dist/_browser-chunks/{chunk-JSBKXXXF.js → chunk-DHTLVXAL.js} +38 -45
- package/dist/_browser-chunks/{chunk-GNZY6LOW.js → chunk-DISGPOF4.js} +54 -51
- package/dist/_browser-chunks/chunk-DNJ3OSLB.js +6021 -0
- package/dist/_browser-chunks/{chunk-6SXYJQST.js → chunk-E6QKKKLO.js} +21 -6
- package/dist/_browser-chunks/{chunk-FJGWSWL5.js → chunk-EBSOKHFG.js} +10 -4
- package/dist/_browser-chunks/{chunk-CFAOWGL7.js → chunk-ECMVTOVD.js} +1 -1
- package/dist/_browser-chunks/{chunk-CFWWCCZV.js → chunk-ENHFQXYS.js} +9 -7
- package/dist/_browser-chunks/{chunk-YTIT5NA5.js → chunk-EW2M3URL.js} +91 -84
- package/dist/_browser-chunks/chunk-FAOLWWRN.js +20 -0
- package/dist/_browser-chunks/{chunk-MFMDGWP6.js → chunk-FCULT3AE.js} +3 -3
- package/dist/_browser-chunks/{chunk-46Z7NGAS.js → chunk-HX443LKV.js} +1 -1
- package/dist/_browser-chunks/chunk-HZFHNYRC.js +53 -0
- package/dist/_browser-chunks/chunk-IFADVEQE.js +669 -0
- package/dist/_browser-chunks/{chunk-OQWFVDIN.js → chunk-KQJ4T6JL.js} +31 -25
- package/dist/_browser-chunks/{chunk-RNTIV5CE.js → chunk-LYYXDWR2.js} +9 -9
- package/dist/_browser-chunks/{chunk-V5M7Q4HT.js → chunk-MJIDTL3X.js} +4 -14
- package/dist/_browser-chunks/{chunk-V2G23FV7.js → chunk-N5WQGLI7.js} +1 -1
- package/dist/_browser-chunks/{chunk-EIYAKDGP.js → chunk-NA4ITZTK.js} +127 -105
- package/dist/_browser-chunks/{chunk-RMYQ3QN3.js → chunk-NK5SGJNG.js} +22 -17
- package/dist/_browser-chunks/chunk-NPNIBOPF.js +18 -0
- package/dist/_browser-chunks/{chunk-YEKO6BHJ.js → chunk-ONTSNQON.js} +1 -1
- package/dist/_browser-chunks/chunk-OOETBSA7.js +502 -0
- package/dist/_browser-chunks/chunk-PFYL47RM.js +45 -0
- package/dist/_browser-chunks/{chunk-OD6IBQCC.js → chunk-PQRPDA4U.js} +5 -5
- package/dist/_browser-chunks/{chunk-2JDQ35OA.js → chunk-PU7D2WDP.js} +0 -11
- package/dist/_browser-chunks/chunk-PZQRXPVR.js +21 -0
- package/dist/_browser-chunks/{chunk-5WMXI5GW.js → chunk-QFO2B4X2.js} +31 -28
- package/dist/_browser-chunks/{chunk-2JT76G3E.js → chunk-SBOQ4QPY.js} +15 -15
- package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
- package/dist/_browser-chunks/{chunk-5I7E4GMO.js → chunk-WY2LUGOH.js} +1 -1
- package/dist/_browser-chunks/chunk-XKTORVEQ.js +255 -0
- package/dist/_browser-chunks/chunk-XSVERCGB.js +91 -0
- package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-XTQCLWVH.js} +325 -1635
- package/dist/_browser-chunks/{chunk-MDOL7KML.js → chunk-YJO5BK52.js} +7 -3
- package/dist/_browser-chunks/{chunk-66OCZ54D.js → chunk-ZF37BMDS.js} +6 -2
- package/dist/_browser-chunks/{chunk-C3D4HEFY.js → chunk-ZIZCGWCG.js} +348 -170
- package/dist/_browser-chunks/{matchers-YLBYSYAF.js → matchers-2HVLNCVO.js} +4 -4
- package/dist/_browser-chunks/{react-dom-client-4OHE3QDV.js → react-dom-client-SLBUX3U3.js} +1 -1
- package/dist/_node-chunks/{attached-runtime-I2G4WLJI.js → attached-runtime-UC2CB4GH.js} +37 -35
- package/dist/_node-chunks/builder-manager-S5UUKVOR.js +1174 -0
- package/dist/_node-chunks/{chunk-OUW6R7C3.js → chunk-3335ZZIO.js} +6 -6
- package/dist/_node-chunks/{chunk-V2DY426G.js → chunk-3D6N6P2R.js} +283 -306
- package/dist/_node-chunks/{chunk-3Y6AAY5H.js → chunk-3ER54PQM.js} +8 -8
- package/dist/_node-chunks/{chunk-DC7DKR5K.js → chunk-3H5C52QU.js} +6 -6
- package/dist/_node-chunks/chunk-3UI3TQ7R.js +28 -0
- package/dist/_node-chunks/{chunk-Q7QNUM5H.js → chunk-4C3ACAHV.js} +6 -6
- package/dist/_node-chunks/{chunk-XGIUVY52.js → chunk-4UTCKJEQ.js} +7 -7
- package/dist/_node-chunks/chunk-53A5CYDK.js +572 -0
- package/dist/_node-chunks/{chunk-4FEANXWU.js → chunk-53PSBDRK.js} +140 -118
- package/dist/_node-chunks/{chunk-3W7F2B7P.js → chunk-54MO4QLB.js} +6 -6
- package/dist/_node-chunks/{chunk-7GUDZVRQ.js → chunk-5CJMRQZ6.js} +6 -6
- package/dist/_node-chunks/chunk-5HOM7B4V.js +20 -0
- package/dist/_node-chunks/{chunk-BSKFCWQD.js → chunk-5QG6AXK4.js} +7 -7
- package/dist/_node-chunks/chunk-67XVZZUO.js +405 -0
- package/dist/_node-chunks/{chunk-EWOX7HPJ.js → chunk-6HQJJDLH.js} +6 -6
- package/dist/_node-chunks/chunk-6IPHWCFI.js +29 -0
- package/dist/_node-chunks/{chunk-NDWKJ4CL.js → chunk-6XYOFBRD.js} +98 -129
- package/dist/_node-chunks/{chunk-TNJIXE37.js → chunk-7IAYDGYH.js} +6 -6
- package/dist/_node-chunks/{chunk-ICPBH3E7.js → chunk-7P67PUU2.js} +7 -7
- package/dist/_node-chunks/{chunk-XLP2ZKXV.js → chunk-AAK5BBF2.js} +7 -7
- package/dist/_node-chunks/{chunk-CCOTJ4FC.js → chunk-BGUVBOOU.js} +10 -10
- package/dist/_node-chunks/chunk-BNGBOASQ.js +25 -0
- package/dist/_node-chunks/{chunk-VLOXOXXE.js → chunk-BWZWCVVH.js} +9 -9
- package/dist/_node-chunks/{chunk-SWO5CDYU.js → chunk-C6HQ6WLU.js} +8 -8
- package/dist/_node-chunks/chunk-CJHRH777.js +20 -0
- package/dist/_node-chunks/{chunk-IK4FGZLR.js → chunk-COEW4ORP.js} +6 -6
- package/dist/_node-chunks/{chunk-JGGFYIG5.js → chunk-CVHDAEDZ.js} +7 -7
- package/dist/_node-chunks/{chunk-YCMRA6RX.js → chunk-CXGOQNGI.js} +7 -7
- package/dist/_node-chunks/chunk-D4XTQWRM.js +11 -0
- package/dist/_node-chunks/{chunk-BS2WMZMR.js → chunk-D5V6CZ6U.js} +7 -7
- package/dist/_node-chunks/{chunk-XHL2LVBM.js → chunk-DCTXJ4TT.js} +14 -16
- package/dist/_node-chunks/{chunk-WCULS5TP.js → chunk-DP6WFY3D.js} +7 -7
- package/dist/_node-chunks/chunk-E23GDXG6.js +271 -0
- package/dist/_node-chunks/{chunk-GEFQN7K3.js → chunk-E3ZFMURC.js} +8 -8
- package/dist/_node-chunks/{chunk-WZJF2OUH.js → chunk-E6O3NA44.js} +7 -7
- package/dist/_node-chunks/{chunk-RWFIFGO5.js → chunk-ECS3WDOU.js} +8 -8
- package/dist/_node-chunks/{chunk-XI6B6P47.js → chunk-FB5YJWOH.js} +6 -6
- package/dist/_node-chunks/{chunk-3SDUYDXH.js → chunk-FCK5FM6D.js} +7 -7
- package/dist/_node-chunks/{chunk-6YKBRP72.js → chunk-FJUGPEJK.js} +6 -6
- package/dist/_node-chunks/{chunk-TFEWM4E3.js → chunk-FPYXI76E.js} +75 -75
- package/dist/_node-chunks/chunk-GEWVOY3F.js +62 -0
- package/dist/_node-chunks/{chunk-ET7PWEO7.js → chunk-GHZ44BFB.js} +14 -13
- package/dist/_node-chunks/{chunk-LXBD4UL4.js → chunk-GJMFISS3.js} +8 -8
- package/dist/_node-chunks/{chunk-FK7KGTV7.js → chunk-GK2Y2RFX.js} +7 -7
- package/dist/_node-chunks/{chunk-FPZB5OI7.js → chunk-GP6YBA2R.js} +6 -6
- package/dist/_node-chunks/{chunk-34EO2PUT.js → chunk-GQUFGJ4D.js} +6 -6
- package/dist/_node-chunks/{chunk-HMP2G23X.js → chunk-H4CRQDTK.js} +6 -6
- package/dist/_node-chunks/{chunk-2BUPBPFB.js → chunk-HCDG54OG.js} +7 -7
- package/dist/_node-chunks/{chunk-U5W53R2J.js → chunk-HGJMP4EI.js} +506 -494
- package/dist/_node-chunks/chunk-HSX6BDBA.js +18 -0
- package/dist/_node-chunks/{chunk-UMUBKI6E.js → chunk-IPFPWMT5.js} +1320 -437
- package/dist/_node-chunks/chunk-KRIOC4WF.js +281 -0
- package/dist/_node-chunks/{chunk-TINO74G5.js → chunk-KUL2MJ6N.js} +6 -6
- package/dist/_node-chunks/{chunk-LO56I6E2.js → chunk-LUR6QTYB.js} +10 -10
- package/dist/_node-chunks/{chunk-YZFWBA5L.js → chunk-LYS7TI35.js} +368 -321
- package/dist/_node-chunks/chunk-MDTXL6SN.js +2613 -0
- package/dist/_node-chunks/{chunk-LCK4ZQKG.js → chunk-MIIPXT4S.js} +9 -9
- package/dist/_node-chunks/chunk-MLWGAA2I.js +138 -0
- package/dist/_node-chunks/{chunk-42UWAGPW.js → chunk-MWUGCUB5.js} +52 -22
- package/dist/_node-chunks/{chunk-JDXXX6LB.js → chunk-MX5MVLEK.js} +6 -6
- package/dist/_node-chunks/chunk-N44UIGCO.js +47 -0
- package/dist/_node-chunks/{chunk-OISX4AGQ.js → chunk-NP2JHOFY.js} +37 -31
- package/dist/_node-chunks/chunk-OMNGOPNG.js +52 -0
- package/dist/_node-chunks/{chunk-ZWBCQ4MJ.js → chunk-OO2GTHUF.js} +9 -17
- package/dist/_node-chunks/{chunk-F3ZFKBHY.js → chunk-PC57BIYZ.js} +8 -8
- package/dist/_node-chunks/chunk-PHWMAF5C.js +49 -0
- package/dist/_node-chunks/{chunk-B5J7Q7J4.js → chunk-PLIQQETC.js} +7 -7
- package/dist/_node-chunks/{chunk-H32DYT6P.js → chunk-QMYCIS2U.js} +6 -6
- package/dist/_node-chunks/{chunk-DUR55DJJ.js → chunk-QZIDK3GX.js} +89 -71
- package/dist/_node-chunks/{chunk-UVINFLGY.js → chunk-ROJ6RSIJ.js} +7 -7
- package/dist/_node-chunks/{chunk-E6YESGLX.js → chunk-S2NB6QEG.js} +542 -1049
- package/dist/_node-chunks/{chunk-TWI4GVH7.js → chunk-S6VCOSQS.js} +6 -6
- package/dist/_node-chunks/{chunk-KISMCCP5.js → chunk-SEVOOOB2.js} +474 -479
- package/dist/_node-chunks/{chunk-JZOO7GGC.js → chunk-SFT6ZAVN.js} +6 -6
- package/dist/_node-chunks/{chunk-RRN2V55B.js → chunk-SXBUK4F6.js} +7 -7
- package/dist/_node-chunks/{chunk-WNZ2UMFM.js → chunk-TGF6Q66I.js} +15 -9
- package/dist/_node-chunks/{chunk-NIBT7XDZ.js → chunk-TGFHWGGT.js} +9 -6
- package/dist/_node-chunks/chunk-TTLSBLPQ.js +620 -0
- package/dist/_node-chunks/{chunk-SVTBJ7Q3.js → chunk-UUAEW2AR.js} +6 -6
- package/dist/_node-chunks/chunk-VQHM66NL.js +534 -0
- package/dist/_node-chunks/{chunk-H4PPVMP5.js → chunk-VSTTY3TM.js} +6 -6
- package/dist/_node-chunks/{chunk-2DSIDINN.js → chunk-XDBSAFUB.js} +650 -9
- package/dist/_node-chunks/{chunk-OWNFOGTA.js → chunk-XTQQGAUZ.js} +7 -7
- package/dist/_node-chunks/{chunk-CXRU72ET.js → chunk-YMJVSFJT.js} +6 -6
- package/dist/_node-chunks/{chunk-DHJFTB4K.js → chunk-YXEKWVJQ.js} +7 -7
- package/dist/_node-chunks/{chunk-SLWQNBGO.js → chunk-Z6CUUWJO.js} +34 -949
- package/dist/_node-chunks/{chunk-TD5PLLQG.js → chunk-ZAIGR7EV.js} +64 -17
- package/dist/_node-chunks/{chunk-6KEHV53S.js → chunk-ZCFXEFR6.js} +33 -41
- package/dist/_node-chunks/{chunk-FW2HQUBQ.js → chunk-ZHUBOYOD.js} +6 -6
- package/dist/_node-chunks/{chunk-MA24JW6C.js → chunk-ZHUBTBP2.js} +25 -8
- package/dist/_node-chunks/{chunk-RXNJDRGO.js → chunk-ZSTIFZHY.js} +21 -25
- package/dist/_node-chunks/dist-TRTHRODT.js +16 -0
- package/dist/_node-chunks/dist-XPLJ5T4W.js +27 -0
- package/dist/_node-chunks/{local-runtime-NTKIN2QT.js → local-runtime-AC7MOWYK.js} +21 -22
- package/dist/_node-chunks/{mdx-plugin-MWISDWDQ.js → mdx-plugin-ZW26VGEP.js} +2263 -130
- package/dist/_node-chunks/{monorepo-LIRFMQXE.js → monorepo-T2KZK62Q.js} +12 -12
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-CPDW4XTW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-2CWUUF6H.js} +12 -12
- package/dist/_node-chunks/optimized-tests-4AK3PFSX.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-EKHIUAU2.js → pattern-copy-play-CMRGEXHM.js} +12 -12
- package/dist/_node-chunks/postinstallAddon-OUQENFYO.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-BUN3HUCO.js → rehype-external-links-LHOAIJ2E.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-PLADX223.js → rehype-slug-K54MMYY6.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-GBHW6KIQ.js → relaxed-limits-TTL4PWH7.js} +12 -12
- package/dist/_node-chunks/{run-NL66VTNR.js → run-6DXBB5F7.js} +294 -30
- package/dist/_node-chunks/{run-KDTIZNSY.js → run-BMTV5ZAO.js} +18 -18
- package/dist/_node-chunks/{setup-MGC7BQO6.js → setup-FDPYW25Y.js} +9 -9
- package/dist/_node-chunks/{vitest.config.4.template-JH2THZFG.js → vitest.config.4.template-2TCFWAAI.js} +9 -9
- package/dist/actions/decorator.js +18 -22
- package/dist/actions/index.d.ts +4 -4
- package/dist/actions/index.js +3 -2
- package/dist/addon-a11y/index.d.ts +3 -3
- package/dist/addon-a11y/index.js +3 -2
- package/dist/addon-a11y/manager.js +41 -38
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.d.ts +8 -2
- package/dist/addon-a11y/preview.js +3 -2
- package/dist/addon-comments/manager.js +353 -0
- package/dist/addon-comments/preset.js +80 -0
- package/dist/addon-comments/preview.js +101 -0
- package/dist/addon-docs/blocks.d.ts +123 -85
- package/dist/addon-docs/blocks.js +159 -85
- package/dist/addon-docs/index.d.ts +21 -21
- package/dist/addon-docs/index.js +3 -3
- package/dist/addon-docs/manager.js +6 -6
- package/dist/addon-docs/preset.js +12 -12
- package/dist/addon-docs/preview.d.ts +3 -1
- package/dist/addon-docs/preview.js +1 -1
- package/dist/addon-links/index.d.ts +2 -1
- package/dist/addon-links/index.js +5 -2
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-links/preview.js +5 -2
- package/dist/addon-links/react/index.js +4 -1
- package/dist/addon-mcp/preset.js +203 -84
- package/dist/addon-mcp/preview.js +1 -1
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +71 -71
- package/dist/addon-ondevice-actions/index.js +5 -1
- package/dist/addon-ondevice-actions/register.js +5 -1
- package/dist/addon-ondevice-controls/index.js +1 -1
- package/dist/addon-ondevice-controls/register.js +1 -1
- package/dist/addon-pseudo-states/index.d.ts +1 -1
- package/dist/addon-pseudo-states/index.js +1 -1
- package/dist/addon-pseudo-states/manager.js +2 -2
- package/dist/addon-pseudo-states/preview.d.ts +1 -1
- package/dist/addon-pseudo-states/preview.js +1 -1
- package/dist/addon-themes/index.d.ts +7 -6
- package/dist/addon-themes/index.js +2 -2
- package/dist/addon-themes/manager.js +4 -4
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-themes/preview.js +2 -2
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +32 -23
- package/dist/addon-vitest/node/coverage-reporter.js +11 -11
- package/dist/addon-vitest/node/vitest.js +37 -37
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +26 -26
- package/dist/addon-vitest/vitest-plugin/global-setup.js +23 -23
- package/dist/addon-vitest/vitest-plugin/index.js +83 -73
- package/dist/addon-vitest/vitest-plugin/setup-file-with-project-annotations.js +3 -3
- package/dist/addon-vitest/vitest-plugin/setup-file.js +1 -1
- package/dist/babel/index.d.ts +241 -995
- package/dist/babel/index.js +30583 -38
- package/dist/backgrounds/index.d.ts +1 -1
- package/dist/bin/core.js +122 -110
- package/dist/bin/dispatcher.js +18 -16
- package/dist/bin/loader.js +17 -16
- package/dist/builder-next/index.d.ts +59 -0
- package/dist/builder-next/index.js +201 -0
- package/dist/builder-vite/index.d.ts +8 -3
- package/dist/builder-vite/index.js +80 -25
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.d.ts +3 -2
- package/dist/channels/index.js +97 -24
- package/dist/{chunk-Dr3R0DXk.d.ts → chunk-B-NVyPqN.d.ts} +2 -2
- package/dist/{chunk-C2p5r3Vt.d.ts → chunk-B53gRJBs.d.ts} +838 -703
- package/dist/{chunk-DoIGKY33.d.ts → chunk-BLZXEm1K.d.ts} +6 -8
- package/dist/chunk-BcYKnZln.d.ts +10 -0
- package/dist/{chunk-Bpi2tz-6.d.ts → chunk-BspNQvZn.d.ts} +21 -23
- package/dist/{chunk-BCoJQE-f.d.ts → chunk-BtKww7r1.d.ts} +6 -4
- package/dist/chunk-CFhJCPSB.d.ts +48 -0
- package/dist/{chunk-DtHByo32.d.ts → chunk-CFk6djyM.d.ts} +5 -5
- package/dist/{chunk-CwQKNaYL.d.ts → chunk-CMx6bGAU.d.ts} +2 -2
- package/dist/{chunk-DEVFdzxR.d.ts → chunk-CRmUwbkb.d.ts} +4 -4
- package/dist/{chunk-CMeX4WRe.d.ts → chunk-CT2iXaHz.d.ts} +1 -1
- package/dist/{chunk-pcFXCimE.d.ts → chunk-CmV7WZzR.d.ts} +124 -2
- package/dist/{chunk-BGkgZp-H.d.ts → chunk-D3uSIa6H.d.ts} +9 -1
- package/dist/{chunk-DzuY9DXg.d.ts → chunk-DDd8BhTY.d.ts} +2 -2
- package/dist/{chunk-Dw1z1Pki.d.ts → chunk-DNCU78oW.d.ts} +160 -323
- package/dist/chunk-DVIvUVkS.d.ts +195 -0
- package/dist/{chunk-gCX81nOr.d.ts → chunk-DgzPaTw9.d.ts} +3 -3
- package/dist/{chunk-Kt1tW-D1.d.ts → chunk-Dm-iHJ-s.d.ts} +3 -3
- package/dist/{chunk-C-bavsOH.d.ts → chunk-Dw_4ad2Y.d.ts} +6 -6
- package/dist/chunk-Susgfkap.d.ts +20 -0
- package/dist/{chunk-B2t1tGRh.d.ts → chunk-bhl-7rRD.d.ts} +40 -15
- package/dist/{chunk-BXLImeLy.d.ts → chunk-r-Vjut9o.d.ts} +52 -11
- package/dist/cli/index.d.ts +15 -904
- package/dist/cli/index.js +49 -5209
- package/dist/cli/skills/content/index.d.ts +3 -3
- package/dist/cli/skills/content/index.js +3 -3
- package/dist/cli/tools/sdk/child-host.d.ts +1 -1
- package/dist/cli/tools/sdk/child-host.js +17 -17
- package/dist/cli/tools/sdk/index.d.ts +4 -4
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.d.ts +20 -21
- package/dist/client-logger/index.js +5 -2
- package/dist/common/index.d.ts +32 -44
- package/dist/common/index.js +89 -98
- package/dist/components/index.d.ts +86 -272
- package/dist/components/index.js +2759 -8547
- package/dist/core-events/index.d.ts +16 -7
- package/dist/core-events/index.js +5 -5
- package/dist/core-server/index.d.ts +95 -26
- package/dist/core-server/index.js +1675 -408
- package/dist/core-server/presets/common-manager.js +837 -1335
- package/dist/core-server/presets/common-override-preset.js +12 -10
- package/dist/core-server/presets/common-preset.js +100 -282
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/csf-utils.d.ts +1 -1
- package/dist/csf/index.d.ts +6 -6
- package/dist/csf/index.js +90 -159
- package/dist/csf-tools/index.d.ts +66 -54
- package/dist/csf-tools/index.js +19 -17
- package/dist/docs-tools/index.d.ts +332 -16
- package/dist/docs-tools/index.js +3 -3
- package/dist/highlight/index.d.ts +1 -1
- package/dist/instrumenter/index.d.ts +5 -5
- package/dist/instrumenter/index.js +31 -19
- package/dist/manager/_manager-chunks/{globals-runtime-BvM-NY2g.js → globals-runtime-B4NRbNSS.js} +638 -1731
- package/dist/{preview/_chunks/runtime-CqHxptiK.js → manager/_manager-chunks/globals-runtime-BC43T1rL.js} +3413 -173
- package/dist/manager/_manager-chunks/{globals-runtime-qKvCZHFY.js → globals-runtime-BJ6EZqH7.js} +1035 -623
- package/dist/manager/_manager-chunks/{globals-runtime-Rp_zjGnh.js → globals-runtime-BfXaq_CP.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-C02fvgcd.js → globals-runtime-BkSn_Jpe.js} +411 -379
- package/dist/manager/_manager-chunks/{globals-runtime-eLPTIfX-.js → globals-runtime-BnQ7i5wq.js} +232 -370
- package/dist/manager/_manager-chunks/globals-runtime-BtduS2C2.js +10601 -0
- package/dist/manager/_manager-chunks/globals-runtime-BzuYs3dZ.js +1971 -0
- package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
- package/dist/manager/_manager-chunks/globals-runtime-CS41oTca.js +1808 -0
- package/dist/manager/_manager-chunks/{globals-runtime-BmphMP6z.js → globals-runtime-Cisw9IIE.js} +11 -11
- package/dist/manager/_manager-chunks/globals-runtime-CoTrrHG3.js +1163 -0
- package/dist/manager/_manager-chunks/{globals-runtime-FC201B7s.js → globals-runtime-DCmvKMN5.js} +2 -1
- package/dist/manager/_manager-chunks/globals-runtime-DgO0hT2p.js +32 -0
- package/dist/manager/_manager-chunks/{globals-runtime-DpNYC-qi.js → globals-runtime-DpvE_zRs.js} +1013 -782
- package/dist/manager/_manager-chunks/globals-runtime-Me9Bl-sx.js +156 -0
- package/dist/manager/_manager-chunks/globals-runtime-nQMRiA0J.js +19 -0
- package/dist/manager/_manager-chunks/globals-runtime-oRjPg2jY.js +8935 -0
- package/dist/manager/_manager-chunks/{globals-runtime-sGpNlIJ1.js → globals-runtime-wV08sCKl.js} +715 -620
- package/dist/manager/_manager-chunks/{runtime-cp5pazY2.js → runtime-4OQZWibO.js} +1717 -1536
- package/dist/manager/_manager-chunks/runtime-BYxbyNm0.js +201 -0
- package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
- package/dist/manager/_manager-chunks/runtime-CM4Z8aKR.js +735 -0
- package/dist/manager/_manager-chunks/{runtime-eDVAYF7N.js → runtime-Cjo1UL1u.js} +57 -76
- package/dist/manager/_manager-chunks/runtime-Cx1-wr6J.js +294 -0
- package/dist/manager/_manager-chunks/{runtime-BhkT2CXl.js → runtime-Cxe_uJRb.js} +220 -406
- package/dist/manager/_manager-chunks/runtime-D702FFTO.js +551 -0
- package/dist/manager/_manager-chunks/{runtime-D94Vq3oR.js → runtime-DnWFp6Zw.js} +8 -534
- package/dist/manager/_manager-chunks/{runtime-D0UOWx0U.js → runtime-DoYPE6g6.js} +232 -158
- package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
- package/dist/manager/_manager-chunks/{runtime-i-PDAHLR.js → runtime-sppa-0ll.js} +741 -698
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/globals.d.ts +12 -12
- package/dist/manager/globals.js +12 -12
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +538 -528
- package/dist/manager-errors.d.ts +1 -1
- package/dist/manager-errors.js +2 -2
- package/dist/mcp/index.d.ts +10 -10
- package/dist/mcp/index.js +11 -11
- package/dist/mocking-utils/index.d.ts +7 -5
- package/dist/mocking-utils/index.js +34 -34
- package/dist/mocking-utils/mocker-runtime.js +2 -2
- package/dist/next/index.d.ts +231 -0
- package/dist/next/index.js +398 -0
- package/dist/nextjs-vite/export-mocks/headers/index.js +3 -1
- package/dist/nextjs-vite/export-mocks/link/index.d.ts +4 -1
- package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +9 -1
- package/dist/nextjs-vite/export-mocks/router/index.js +13 -7
- package/dist/nextjs-vite/index.d.ts +4 -4
- package/dist/nextjs-vite/index.js +10 -5
- package/dist/nextjs-vite/node/index.d.ts +2 -2
- package/dist/nextjs-vite/node/index.js +7 -7
- 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 +117 -15
- package/dist/nextjs-vite/preview.d.ts +2 -1
- package/dist/nextjs-vite/preview.js +1 -1
- package/dist/nextjs-vite/vite-plugin/index.d.ts +2 -2
- package/dist/nextjs-vite/vite-plugin/index.js +9 -9
- package/dist/nextjs-vite-plugin/index.d.ts +2 -3
- package/dist/nextjs-vite-plugin/index.js +24 -49
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-image.js +2 -2
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.js +2 -2
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +10 -6
- package/dist/node-logger/index.d.ts +89 -90
- package/dist/node-logger/index.js +11 -12
- package/dist/oxc-parser/index.js +15 -14
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/{manager/_manager-chunks/globals-runtime-8HkdnU2F.js → preview/_chunks/runtime-BYRCSYBN.js} +4440 -179
- package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-Bvh_rfnQ.js} +29 -64
- package/dist/preview/_chunks/{runtime-iXdo8CR8.js → runtime-Cbq5WjbL.js} +772 -418
- package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-D2MPrqbU.js} +2 -2
- package/dist/preview/_chunks/{runtime-DrTjJkPY.js → runtime-DDEUZops.js} +453 -161
- package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-DS0s7U3c.js} +482 -334
- package/dist/preview/_chunks/{runtime-CsV4HZPV.js → runtime-DsjyhLpG.js} +397 -176
- package/dist/preview/_chunks/{runtime-CxZK_Ln3.js → runtime-Dwi6NFcX.js} +3 -3
- package/dist/preview/globals.d.ts +10 -10
- package/dist/preview/globals.js +10 -10
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +3 -3
- package/dist/preview-api/index.js +12 -10
- package/dist/preview-errors.d.ts +1 -1
- package/dist/preview-errors.js +2 -2
- package/dist/react/docgen/docgen-worker.js +11 -12
- package/dist/react/entry-preview-argtypes.js +1 -1
- package/dist/react/entry-preview-docs.js +1 -1
- package/dist/react/entry-preview.js +2 -1
- package/dist/react/index.d.ts +9 -11
- package/dist/react/index.js +8 -6
- package/dist/react/preset.js +13 -14
- package/dist/react/preview.d.ts +1 -1
- package/dist/react/preview.js +5 -4
- package/dist/react-native/bin/get-stories.js +12 -12
- package/dist/react-native/index.d.ts +48 -47
- package/dist/react-native/index.js +64 -249
- package/dist/react-native/metro/node.d.ts +3 -3
- package/dist/react-native/metro/node.js +10 -9
- package/dist/react-native/metro/{withStorybook.d.ts → withForkbook.d.ts} +18 -18
- package/dist/react-native/metro/{withStorybook.js → withForkbook.js} +27 -26
- package/dist/react-native/preview.js +4 -1
- package/dist/react-native/scripts/generate.d.ts +1 -1
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-native/stub.js +1 -1
- package/dist/react-native-theming/index.d.ts +2 -58
- package/dist/react-native-theming/index.js +63 -2338
- package/dist/react-native-ui/index.d.ts +14 -14
- package/dist/react-native-ui/index.js +8 -15
- package/dist/react-native-ui-common/index.d.ts +32 -12
- package/dist/react-native-ui-common/index.js +26 -31
- package/dist/react-vite/index.d.ts +2 -2
- package/dist/react-vite/node/index.d.ts +3 -3
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.d.ts +3 -1
- package/dist/react-vite/preset.js +16 -9
- package/dist/router/index.d.ts +80 -3
- package/dist/router/index.js +66 -12
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +3 -3
- package/dist/shared/open-service/index.js +2 -2
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/shared/open-service/toolsets/docs/public.d.ts +28 -28
- package/dist/telemetry/index.d.ts +38 -274
- package/dist/telemetry/index.js +11 -68
- package/dist/test/index.d.ts +2 -2
- package/dist/test/index.js +765 -511
- package/dist/theming/create.d.ts +1 -1
- package/dist/theming/create.js +2 -1
- package/dist/theming/index.d.ts +6 -6
- package/dist/theming/index.js +41 -16
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +5 -5
- package/dist/viewport/index.d.ts +1 -1
- package/package.json +69 -69
- package/skills/setup/SKILL.md +14 -0
- package/skills/stories/SKILL.md +21 -0
- package/skills/write-story/SKILL.md +14 -0
- package/template/nextjs-vite/cli/js/Button.jsx +2 -2
- package/template/nextjs-vite/cli/js/Button.stories.js +6 -6
- package/template/nextjs-vite/cli/js/Configure.mdx +100 -100
- package/template/nextjs-vite/cli/js/Header.jsx +1 -1
- package/template/nextjs-vite/cli/js/Header.stories.js +2 -2
- package/template/nextjs-vite/cli/js/Page.jsx +3 -3
- package/template/nextjs-vite/cli/js/Page.stories.js +2 -2
- package/template/nextjs-vite/cli/ts/Button.stories.ts +6 -6
- package/template/nextjs-vite/cli/ts/Button.tsx +2 -2
- package/template/nextjs-vite/cli/ts/Configure.mdx +84 -84
- package/template/nextjs-vite/cli/ts/Header.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Header.tsx +1 -1
- package/template/nextjs-vite/cli/ts/Page.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Page.tsx +3 -3
- package/template/react/cli/js/Button.jsx +2 -2
- package/template/react/cli/js/Button.stories.js +6 -6
- package/template/react/cli/js/Header.jsx +1 -1
- package/template/react/cli/js/Header.stories.js +2 -2
- package/template/react/cli/js/Page.jsx +3 -3
- package/template/react/cli/js/Page.stories.js +2 -2
- package/template/react/cli/ts/Button.stories.ts +6 -6
- package/template/react/cli/ts/Button.tsx +2 -2
- package/template/react/cli/ts/Header.stories.ts +2 -2
- package/template/react/cli/ts/Header.tsx +1 -1
- package/template/react/cli/ts/Page.stories.ts +2 -2
- package/template/react/cli/ts/Page.tsx +3 -3
- package/template/react-vite/cli/js/Button.jsx +2 -2
- package/template/react-vite/cli/js/Button.stories.js +6 -6
- package/template/react-vite/cli/js/Header.jsx +1 -1
- package/template/react-vite/cli/js/Header.stories.js +2 -2
- package/template/react-vite/cli/js/Page.jsx +3 -3
- package/template/react-vite/cli/js/Page.stories.js +2 -2
- package/template/react-vite/cli/ts/Button.stories.ts +6 -6
- package/template/react-vite/cli/ts/Button.tsx +2 -2
- package/template/react-vite/cli/ts/Header.stories.ts +2 -2
- package/template/react-vite/cli/ts/Header.tsx +1 -1
- package/template/react-vite/cli/ts/Page.stories.ts +2 -2
- package/template/react-vite/cli/ts/Page.tsx +3 -3
- 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/dist/_browser-chunks/WithTooltip-XSQFTBMB.js +0 -1619
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
- package/dist/_browser-chunks/chunk-JMC7AIKT.js +0 -108
- package/dist/_node-chunks/builder-manager-VVHYQXCH.js +0 -1661
- package/dist/_node-chunks/chunk-2RU7BKEW.js +0 -23
- package/dist/_node-chunks/chunk-3BKIBF5S.js +0 -3008
- package/dist/_node-chunks/chunk-3T4ZSNPH.js +0 -662
- package/dist/_node-chunks/chunk-5DQFEZEA.js +0 -40
- package/dist/_node-chunks/chunk-6LMWA44H.js +0 -3837
- package/dist/_node-chunks/chunk-BXVYT7SB.js +0 -36
- package/dist/_node-chunks/chunk-CQKMLL5J.js +0 -33
- package/dist/_node-chunks/chunk-EHUNOMDD.js +0 -52345
- package/dist/_node-chunks/chunk-FY6UXW6G.js +0 -11
- package/dist/_node-chunks/chunk-GRBLDJCR.js +0 -989
- package/dist/_node-chunks/chunk-IDEL2J23.js +0 -23
- package/dist/_node-chunks/chunk-JPAZLYJ3.js +0 -29
- package/dist/_node-chunks/chunk-MK2KYAI6.js +0 -5414
- package/dist/_node-chunks/chunk-NPO45IMH.js +0 -33
- package/dist/_node-chunks/chunk-QEQLR22M.js +0 -1877
- package/dist/_node-chunks/chunk-RZMQ7S3L.js +0 -92
- package/dist/_node-chunks/chunk-SIEXZVCR.js +0 -51
- package/dist/_node-chunks/chunk-TEQGGSP7.js +0 -33
- package/dist/_node-chunks/chunk-TFCEV2XX.js +0 -155
- package/dist/_node-chunks/chunk-UBOGWBEA.js +0 -148
- package/dist/_node-chunks/chunk-W4OMYLSP.js +0 -1297
- package/dist/_node-chunks/chunk-WAXVSN3O.js +0 -18
- package/dist/_node-chunks/chunk-ZMAMXQKP.js +0 -4731
- package/dist/_node-chunks/dist-VTSTZKUB.js +0 -16
- package/dist/_node-chunks/globby-OEMHPBFY.js +0 -2884
- package/dist/_node-chunks/jiti-NFX6UU74.js +0 -3848
- package/dist/_node-chunks/lib-MDVARD7W.js +0 -366
- package/dist/_node-chunks/optimized-tests-HDOLR3EY.js +0 -22
- package/dist/_node-chunks/postinstallAddon-GYGMWDL6.js +0 -20
- package/dist/_node-chunks/session-id-KIIVOQLR.js +0 -23
- package/dist/chunk-BTVrWliM.d.ts +0 -115
- package/dist/chunk-BfBzpgct.d.ts +0 -916
- package/dist/chunk-BxWufQms.d.ts +0 -142
- package/dist/chunk-DaVb55-_.d.ts +0 -124
- package/dist/core-server/presets/common-manager.css +0 -170
- package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +0 -3389
- package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +0 -9766
- package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +0 -5357
- package/dist/manager/_manager-chunks/globals-runtime-ZHrQFa3-.js +0 -10463
- package/dist/manager/_manager-chunks/runtime-B1L9TH89.js +0 -452
- package/dist/manager/_manager-chunks/runtime-BK0zF7FN.js +0 -22
- package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +0 -998
- package/dist/manager/_manager-chunks/runtime-DMig8mT7.js +0 -77
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
- package/dist/preview/_chunks/runtime-BwSxqk3t.js +0 -63
- package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
- package/dist/preview/_chunks/runtime-DuHdxMFA.js +0 -387
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as ToolsetCtx } from "../../../chunk-BtKww7r1.js";
|
|
2
2
|
|
|
3
3
|
//#region .dts-emit/code/core/src/cli/skills/content/skills.d.ts
|
|
4
4
|
/**
|
|
@@ -33,7 +33,7 @@ type ServerInstructionsInputs = {
|
|
|
33
33
|
/**
|
|
34
34
|
* The full rule for how the agent should present links in its final
|
|
35
35
|
* user-facing response, delivered through the
|
|
36
|
-
* `get-
|
|
36
|
+
* `get-forkbook-story-instructions` output. The server instructions only
|
|
37
37
|
* carry a terse pointer to the same rule: MCP clients truncate server
|
|
38
38
|
* instructions (Claude Code cuts them at 2,048 chars), so anything beyond
|
|
39
39
|
* the workflow trigger must live in tool descriptions and tool results.
|
|
@@ -66,7 +66,7 @@ declare function buildStoryInstructions({
|
|
|
66
66
|
docsEnabled
|
|
67
67
|
}: StoryInstructionsInputs): string;
|
|
68
68
|
//#endregion
|
|
69
|
-
//#region .dts-emit/code/core/src/
|
|
69
|
+
//#region .dts-emit/code/core/src/shared/utils/framework-renderer.d.ts
|
|
70
70
|
declare const frameworkToRendererMap: Record<string, string>;
|
|
71
71
|
//#endregion
|
|
72
72
|
export { SKILLS, SKILL_IDS, type ServerInstructionsInputs, type SkillId, type SkillTransport, type StoryInstructionsInputs, buildServerInstructions, buildStoryInstructions, frameworkToRendererMap, getFinalLinksGuidance, getSkillRef, isSkillId };
|
|
@@ -22,7 +22,7 @@ function isSkillId(value) {
|
|
|
22
22
|
|
|
23
23
|
// src/cli/skills/content/skill-refs.ts
|
|
24
24
|
var MCP_SKILL_TOOL_NAMES = {
|
|
25
|
-
"write-story": "get-
|
|
25
|
+
"write-story": "get-forkbook-story-instructions"
|
|
26
26
|
};
|
|
27
27
|
function getSkillRef(transport) {
|
|
28
28
|
return (id) => transport === "mcp" && MCP_SKILL_TOOL_NAMES[id] || `npx forkbook skills ${id}`;
|
|
@@ -90,7 +90,7 @@ function buildServerInstructions({
|
|
|
90
90
|
`);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
// src/
|
|
93
|
+
// src/shared/utils/framework-renderer.ts
|
|
94
94
|
var frameworkToRendererMap = {
|
|
95
95
|
"@aussieljk/forkbook/react-vite": "@aussieljk/forkbook/react",
|
|
96
96
|
"@aussieljk/forkbook/nextjs-vite": "@aussieljk/forkbook/react"
|
|
@@ -311,7 +311,7 @@ function buildStoryInstructions({
|
|
|
311
311
|
|
|
312
312
|
This Forkbook exposes component documentation tools. Before creating or changing any UI, call **${ref("docs.list")}** once to see what the design system already provides \u2014 build on existing components instead of hand-rolling duplicates \u2014 then call **${ref("docs.show")}** with the \`id\` of each component you build on or get asked about, for its real props and usage examples. When multiple Forkbook sources are configured, pass the \`storybookId\` from **${ref("docs.list")}** on follow-up calls. Do this instead of reading the library's source or type definitions out of \`node_modules\` \u2014 stories show intended usage, raw types don't \u2014 and answer props/usage questions from these tools too. Never assume or invent props.`, uiInstructions = storybook_story_instructions_default.replaceAll("{{FRAMEWORK}}", framework).replaceAll("{{RENDERER}}", resolvedRenderer).replace(
|
|
313
313
|
"{{RENDERER_REQUIREMENTS}}",
|
|
314
|
-
resolvedRenderer === "@storybook/react-native" ? "- React Native uses `.
|
|
314
|
+
resolvedRenderer === "@storybook/react-native" ? "- React Native uses `.rnforkbook` directory" : ""
|
|
315
315
|
).replace(`
|
|
316
316
|
{{DOCS_WORKFLOW_GUIDANCE}}`, docsEnabled ? docsWorkflowGuidance : "").replace("{{STORY_LINKING_WORKFLOW}}", storyLinkingWorkflow).replace("{{FINAL_LINKS_GUIDANCE}}", getFinalLinksGuidance(transport)).replace("{{PREVIEW_STORIES}}", ref("stories.preview")).replace("{{CHANGED_STORY_FALLBACK_LINK_GUIDANCE}}", changedStoryFallbackLinkGuidance);
|
|
317
317
|
if (testSupported) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as ToolsStorybookInfo, o as ToolsClientInfo } from "../../../chunk-
|
|
1
|
+
import { d as ToolsStorybookInfo, o as ToolsClientInfo } from "../../../chunk-CRmUwbkb.js";
|
|
2
2
|
|
|
3
3
|
//#region .dts-emit/code/core/src/shared/open-service/service-error-serialization.d.ts
|
|
4
4
|
/**
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wrk1cj8d1xj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wrk1cj8d1xj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wrk1cj8d1xj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wrk1cj8d1xj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
createTools
|
|
14
|
-
} from "../../../_node-chunks/chunk-
|
|
15
|
-
import "../../../_node-chunks/chunk-
|
|
14
|
+
} from "../../../_node-chunks/chunk-ZCFXEFR6.js";
|
|
15
|
+
import "../../../_node-chunks/chunk-GJMFISS3.js";
|
|
16
16
|
import {
|
|
17
17
|
ToolsRuntimeError
|
|
18
|
-
} from "../../../_node-chunks/chunk-
|
|
19
|
-
import "../../../_node-chunks/chunk-
|
|
20
|
-
import "../../../_node-chunks/chunk-
|
|
21
|
-
import "../../../_node-chunks/chunk-
|
|
18
|
+
} from "../../../_node-chunks/chunk-FCK5FM6D.js";
|
|
19
|
+
import "../../../_node-chunks/chunk-5QG6AXK4.js";
|
|
20
|
+
import "../../../_node-chunks/chunk-7P67PUU2.js";
|
|
21
|
+
import "../../../_node-chunks/chunk-6HQJJDLH.js";
|
|
22
22
|
import {
|
|
23
23
|
serializeError
|
|
24
|
-
} from "../../../_node-chunks/chunk-
|
|
25
|
-
import "../../../_node-chunks/chunk-
|
|
26
|
-
import "../../../_node-chunks/chunk-
|
|
27
|
-
import "../../../_node-chunks/chunk-
|
|
28
|
-
import "../../../_node-chunks/chunk-
|
|
24
|
+
} from "../../../_node-chunks/chunk-54MO4QLB.js";
|
|
25
|
+
import "../../../_node-chunks/chunk-3335ZZIO.js";
|
|
26
|
+
import "../../../_node-chunks/chunk-HGJMP4EI.js";
|
|
27
|
+
import "../../../_node-chunks/chunk-HCDG54OG.js";
|
|
28
|
+
import "../../../_node-chunks/chunk-YMJVSFJT.js";
|
|
29
29
|
|
|
30
30
|
// src/cli/tools/sdk/child-host.ts
|
|
31
31
|
import { pathToFileURL } from "node:url";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { C as attachGateReasonFromError, E as StorybookInstanceRecord, S as ToolsRuntimeErrorReason, T as ToolsRuntime, _ as AttachUnavailableReason, a as ToolsCallOptions, b as ToolsAttachGateReason, c as ToolsHostKind, d as ToolsStorybookInfo, f as ToolsetCatalog, g as AttachUnavailableError, h as ToolsetJsonSchema, i as Tools, l as ToolsMode, m as ToolsetCatalogMethod, n as CreateToolsOptions, o as ToolsClientInfo, p as ToolsetCatalogEntry, r as LocalTools, s as ToolsDescribeOptions, t as AttachedTools, u as ToolsSiblingInstance, v as EnvironmentMismatchError, w as isAttachGateError, x as ToolsRuntimeError, y as SpawnFailedError } from "../../../chunk-
|
|
4
|
-
import { fork } from "node:child_process";
|
|
1
|
+
import { h as Channel } from "../../../chunk-r-Vjut9o.js";
|
|
2
|
+
import { f as ToolsetOutcome } from "../../../chunk-BtKww7r1.js";
|
|
3
|
+
import { C as attachGateReasonFromError, E as StorybookInstanceRecord, S as ToolsRuntimeErrorReason, T as ToolsRuntime, _ as AttachUnavailableReason, a as ToolsCallOptions, b as ToolsAttachGateReason, c as ToolsHostKind, d as ToolsStorybookInfo, f as ToolsetCatalog, g as AttachUnavailableError, h as ToolsetJsonSchema, i as Tools, l as ToolsMode, m as ToolsetCatalogMethod, n as CreateToolsOptions, o as ToolsClientInfo, p as ToolsetCatalogEntry, r as LocalTools, s as ToolsDescribeOptions, t as AttachedTools, u as ToolsSiblingInstance, v as EnvironmentMismatchError, w as isAttachGateError, x as ToolsRuntimeError, y as SpawnFailedError } from "../../../chunk-CRmUwbkb.js";
|
|
5
4
|
import { logger } from "@aussieljk/forkbook/internal/node-logger";
|
|
5
|
+
import { fork } from "node:child_process";
|
|
6
6
|
|
|
7
7
|
//#region .dts-emit/code/core/src/cli/tools/sdk/node-channel.d.ts
|
|
8
8
|
interface NodeChannelConnection {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wrk1cj8d1xj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wrk1cj8d1xj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wrk1cj8d1xj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wrk1cj8d1xj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "../../../_node-chunks/chunk-
|
|
12
|
+
import "../../../_node-chunks/chunk-D4XTQWRM.js";
|
|
13
13
|
import {
|
|
14
14
|
createTools
|
|
15
|
-
} from "../../../_node-chunks/chunk-
|
|
15
|
+
} from "../../../_node-chunks/chunk-ZCFXEFR6.js";
|
|
16
16
|
import {
|
|
17
17
|
formatMultiInstanceNotice
|
|
18
|
-
} from "../../../_node-chunks/chunk-
|
|
18
|
+
} from "../../../_node-chunks/chunk-GJMFISS3.js";
|
|
19
19
|
import {
|
|
20
20
|
AttachUnavailableError,
|
|
21
21
|
EnvironmentMismatchError,
|
|
@@ -23,15 +23,15 @@ import {
|
|
|
23
23
|
ToolsRuntimeError,
|
|
24
24
|
attachGateReasonFromError,
|
|
25
25
|
isAttachGateError
|
|
26
|
-
} from "../../../_node-chunks/chunk-
|
|
27
|
-
import "../../../_node-chunks/chunk-
|
|
28
|
-
import "../../../_node-chunks/chunk-
|
|
29
|
-
import "../../../_node-chunks/chunk-
|
|
30
|
-
import "../../../_node-chunks/chunk-
|
|
31
|
-
import "../../../_node-chunks/chunk-
|
|
32
|
-
import "../../../_node-chunks/chunk-
|
|
33
|
-
import "../../../_node-chunks/chunk-
|
|
34
|
-
import "../../../_node-chunks/chunk-
|
|
26
|
+
} from "../../../_node-chunks/chunk-FCK5FM6D.js";
|
|
27
|
+
import "../../../_node-chunks/chunk-5QG6AXK4.js";
|
|
28
|
+
import "../../../_node-chunks/chunk-7P67PUU2.js";
|
|
29
|
+
import "../../../_node-chunks/chunk-6HQJJDLH.js";
|
|
30
|
+
import "../../../_node-chunks/chunk-54MO4QLB.js";
|
|
31
|
+
import "../../../_node-chunks/chunk-3335ZZIO.js";
|
|
32
|
+
import "../../../_node-chunks/chunk-HGJMP4EI.js";
|
|
33
|
+
import "../../../_node-chunks/chunk-HCDG54OG.js";
|
|
34
|
+
import "../../../_node-chunks/chunk-YMJVSFJT.js";
|
|
35
35
|
export {
|
|
36
36
|
AttachUnavailableError,
|
|
37
37
|
EnvironmentMismatchError,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import CJS_COMPAT_NODE_URL_wrk1cj8d1xj from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_wrk1cj8d1xj from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_wrk1cj8d1xj.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wrk1cj8d1xj.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -22,4 +22,4 @@ isNodeVersionSupported(process.versions.node) || (logger.error(
|
|
|
22
22
|
dedent`To run Forkbook, you need Node.js version ${MIN_SUPPORTED_NODE_DESCRIPTION}.
|
|
23
23
|
You are currently running Node.js ${process.version}. Please upgrade your Node.js installation.`
|
|
24
24
|
), process.exit(1));
|
|
25
|
-
import("../../_node-chunks/run-
|
|
25
|
+
import("../../_node-chunks/run-6DXBB5F7.js");
|
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
//#region .dts-emit/code/core/src/client-logger/index.d.ts
|
|
2
|
-
type LoggingFn = (message: any, ...args: any[]) => void;
|
|
3
2
|
declare const logger: {
|
|
4
|
-
readonly trace: (message:
|
|
5
|
-
readonly debug: (message:
|
|
6
|
-
readonly info: (message:
|
|
7
|
-
readonly warn: (message:
|
|
8
|
-
readonly error: (message:
|
|
9
|
-
readonly log: (message:
|
|
3
|
+
readonly trace: (message: unknown, ...rest: unknown[]) => void;
|
|
4
|
+
readonly debug: (message: unknown, ...rest: unknown[]) => void;
|
|
5
|
+
readonly info: (message: unknown, ...rest: unknown[]) => void;
|
|
6
|
+
readonly warn: (message: unknown, ...rest: unknown[]) => void;
|
|
7
|
+
readonly error: (message: unknown, ...rest: unknown[]) => void;
|
|
8
|
+
readonly log: (message: unknown, ...rest: unknown[]) => void;
|
|
10
9
|
};
|
|
11
|
-
declare function once(type: keyof typeof logger): (message:
|
|
10
|
+
declare function once(type: keyof typeof logger): (message: unknown, ...rest: unknown[]) => void;
|
|
12
11
|
declare namespace once {
|
|
13
12
|
var clear: () => void;
|
|
14
|
-
var trace: (message:
|
|
15
|
-
var debug: (message:
|
|
16
|
-
var info: (message:
|
|
17
|
-
var warn: (message:
|
|
18
|
-
var error: (message:
|
|
19
|
-
var log: (message:
|
|
13
|
+
var trace: (message: unknown, ...rest: unknown[]) => void;
|
|
14
|
+
var debug: (message: unknown, ...rest: unknown[]) => void;
|
|
15
|
+
var info: (message: unknown, ...rest: unknown[]) => void;
|
|
16
|
+
var warn: (message: unknown, ...rest: unknown[]) => void;
|
|
17
|
+
var error: (message: unknown, ...rest: unknown[]) => void;
|
|
18
|
+
var log: (message: unknown, ...rest: unknown[]) => void;
|
|
20
19
|
}
|
|
21
|
-
declare const deprecate: (message:
|
|
22
|
-
declare function pretty(type: keyof typeof logger): (...args:
|
|
20
|
+
declare const deprecate: (message: unknown, ...rest: unknown[]) => void;
|
|
21
|
+
declare function pretty(type: keyof typeof logger): (...args: [message: string, ...rest: unknown[]]) => void;
|
|
23
22
|
declare namespace pretty {
|
|
24
|
-
var trace: (message:
|
|
25
|
-
var debug: (message:
|
|
26
|
-
var info: (message:
|
|
27
|
-
var warn: (message:
|
|
28
|
-
var error: (message:
|
|
23
|
+
var trace: (message: string, ...rest: unknown[]) => void;
|
|
24
|
+
var debug: (message: string, ...rest: unknown[]) => void;
|
|
25
|
+
var info: (message: string, ...rest: unknown[]) => void;
|
|
26
|
+
var warn: (message: string, ...rest: unknown[]) => void;
|
|
27
|
+
var error: (message: string, ...rest: unknown[]) => void;
|
|
29
28
|
}
|
|
30
29
|
//#endregion
|
|
31
30
|
export { deprecate, logger, once, pretty };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
global
|
|
3
|
+
} from "../_browser-chunks/chunk-6AKCRYVX.js";
|
|
1
4
|
import "../_browser-chunks/chunk-IMSF75WX.js";
|
|
2
5
|
|
|
3
6
|
// src/client-logger/index.ts
|
|
4
|
-
import { global } from "@storybook/global";
|
|
5
7
|
var { LOGLEVEL } = global, levels = {
|
|
6
8
|
trace: 1,
|
|
7
9
|
debug: 2,
|
|
@@ -48,7 +50,8 @@ var deprecate = once("warn"), pretty = (type) => (...args) => {
|
|
|
48
50
|
for (let j = 1; j < args.length; j++)
|
|
49
51
|
argArray.push(args[j]);
|
|
50
52
|
}
|
|
51
|
-
|
|
53
|
+
let [message, ...rest] = argArray;
|
|
54
|
+
logger[type](message, ...rest);
|
|
52
55
|
};
|
|
53
56
|
pretty.trace = pretty("trace");
|
|
54
57
|
pretty.debug = pretty("debug");
|
package/dist/common/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as registerService } from "../chunk-
|
|
4
|
-
import { a as getPrettyPackageManagerName, c as PackageJson, d as ExecuteCommandOptions, f as executeCommand, i as getPackageDetails, l as PackageJsonWithDepsAndDevDeps, m as executeNodeCommand, n as PackageJsonInfo, o as InstallationMetadata, p as executeCommandSync, r as PackageManagerName, s as PackageMetadata, t as JsPackageManager, u as PackageJsonWithMaybeDeps } from "../chunk-
|
|
5
|
-
import { BuilderOptions, CLIOptions, CoreCommon_AddonInfo, CoreCommon_ResolvedAddonPreset, CoreCommon_ResolvedAddonVirtual, CoreCommon_StorybookInfo, IndexEntry, LoadOptions, LoadedPreset, NormalizedStoriesSpecifier, Options, PackageJson as PackageJson$1, PresetConfig, Presets, Ref, StoriesEntry,
|
|
1
|
+
import { os as DocgenMiddleware, ss as DocgenPayload$1, us as DocgenProviderInput, vs as IndexEntry$1 } from "../chunk-B53gRJBs.js";
|
|
2
|
+
import { v as ChannelLike } from "../chunk-r-Vjut9o.js";
|
|
3
|
+
import { n as registerService } from "../chunk-CMx6bGAU.js";
|
|
4
|
+
import { a as getPrettyPackageManagerName, c as PackageJson, d as ExecuteCommandOptions, f as executeCommand, i as getPackageDetails, l as PackageJsonWithDepsAndDevDeps, m as executeNodeCommand, n as PackageJsonInfo, o as InstallationMetadata, p as executeCommandSync, r as PackageManagerName, s as PackageMetadata, t as JsPackageManager, u as PackageJsonWithMaybeDeps } from "../chunk-bhl-7rRD.js";
|
|
5
|
+
import { BuilderOptions, CLIOptions, CoreCommon_AddonInfo, CoreCommon_ResolvedAddonPreset, CoreCommon_ResolvedAddonVirtual, CoreCommon_StorybookInfo, ForkbookConfig, IndexEntry, LoadOptions, LoadedPreset, NormalizedStoriesSpecifier, Options, PackageJson as PackageJson$1, PresetConfig, Presets, Ref, StoriesEntry, StorybookConfigRaw, SupportedBuilder, SupportedFramework, SupportedRenderer } from "@aussieljk/forkbook/internal/types";
|
|
6
6
|
import { ConfigFile, CsfFile } from "@aussieljk/forkbook/internal/csf-tools";
|
|
7
7
|
import { WriteStream } from "node:fs";
|
|
8
8
|
import { types } from "@aussieljk/forkbook/internal/babel";
|
|
9
|
-
import { isWebContainer } from "@webcontainer/env";
|
|
10
9
|
import { FormatConfig } from "oxfmt";
|
|
11
10
|
|
|
12
11
|
//#region ../../node_modules/type-fest/source/merge-exclusive.d.ts
|
|
@@ -77,7 +76,7 @@ type InterPresetOptions = Omit<CLIOptions & LoadOptions & BuilderOptions & {
|
|
|
77
76
|
* - `{ name: '@aussieljk/forkbook/addon-docs(/preset)?', options: { } } => { type: 'presets', item: { name:
|
|
78
77
|
* '@aussieljk/forkbook/addon-docs/preset', options } }`
|
|
79
78
|
*/
|
|
80
|
-
declare const resolveAddonName: (configDir: string, name: string, options:
|
|
79
|
+
declare const resolveAddonName: (configDir: string, name: string, options: unknown) => CoreCommon_ResolvedAddonPreset | CoreCommon_ResolvedAddonVirtual | undefined;
|
|
81
80
|
declare function loadPreset(input: PresetConfig, level: number, storybookOptions: InterPresetOptions): Promise<LoadedPreset[]>;
|
|
82
81
|
declare function getPresets(presets: PresetConfig[], storybookOptions: InterPresetOptions): Promise<Presets>;
|
|
83
82
|
declare function loadAllPresets(options: CLIOptions & LoadOptions & BuilderOptions & {
|
|
@@ -98,8 +97,8 @@ interface FileSystemCacheOptions {
|
|
|
98
97
|
}
|
|
99
98
|
interface CacheItem {
|
|
100
99
|
key: string;
|
|
101
|
-
content?:
|
|
102
|
-
value?:
|
|
100
|
+
content?: unknown;
|
|
101
|
+
value?: unknown;
|
|
103
102
|
}
|
|
104
103
|
interface CacheSetOptions {
|
|
105
104
|
ttl?: number;
|
|
@@ -115,7 +114,7 @@ declare class FileSystemCache {
|
|
|
115
114
|
private isExpired;
|
|
116
115
|
private parseCacheData;
|
|
117
116
|
private parseSetData;
|
|
118
|
-
get<T =
|
|
117
|
+
get<T = unknown>(name: string, fallback?: T): Promise<T>;
|
|
119
118
|
getSync<T>(name: string, fallback?: T): T;
|
|
120
119
|
set<T>(name: string, data: T, orgOpts?: CacheSetOptions | number): Promise<void>;
|
|
121
120
|
setSync<T>(name: string, data: T, orgOpts?: CacheSetOptions | number): void;
|
|
@@ -165,7 +164,7 @@ declare function temporaryFile({
|
|
|
165
164
|
extension
|
|
166
165
|
}?: FileOptions): Promise<string>;
|
|
167
166
|
declare function parseList(str: string): string[];
|
|
168
|
-
declare function getEnvConfig(program: Record<string,
|
|
167
|
+
declare function getEnvConfig(program: Record<string, unknown>, configEnv: Record<string, string>): void;
|
|
169
168
|
/**
|
|
170
169
|
* Given a file name, creates an object with utilities to manage a log file. It creates a temporary
|
|
171
170
|
* log file which you can manage with the returned functions. You can then decide whether to move
|
|
@@ -217,7 +216,7 @@ interface Options$1 {
|
|
|
217
216
|
before: CoreCommon_AddonInfo;
|
|
218
217
|
after: CoreCommon_AddonInfo;
|
|
219
218
|
configFile: string;
|
|
220
|
-
getConfig: (path: string) =>
|
|
219
|
+
getConfig: (path: string) => unknown;
|
|
221
220
|
}
|
|
222
221
|
declare const checkAddonOrder: ({
|
|
223
222
|
before,
|
|
@@ -227,11 +226,13 @@ declare const checkAddonOrder: ({
|
|
|
227
226
|
}: Options$1) => Promise<void>;
|
|
228
227
|
//#endregion
|
|
229
228
|
//#region .dts-emit/code/core/src/common/utils/envs.d.ts
|
|
229
|
+
/** StackBlitz WebContainers set `process.versions.webcontainer`. */
|
|
230
|
+
declare const isWebContainer: () => boolean;
|
|
230
231
|
declare function loadEnvs(options?: {
|
|
231
232
|
production?: boolean;
|
|
232
233
|
}): Promise<{
|
|
233
|
-
stringified: Record<string, string>;
|
|
234
|
-
raw: Record<string, string>;
|
|
234
|
+
stringified: Record<string, string>; /** Every value is a string, except `NODE_PATH`, which is the list of paths. */
|
|
235
|
+
raw: Record<string, string | string[]>;
|
|
235
236
|
}>;
|
|
236
237
|
declare const stringifyEnvs: (raw: Record<string, string>) => Record<string, string>;
|
|
237
238
|
declare const stringifyProcessEnvs: (raw: Record<string, string>) => Record<string, string>;
|
|
@@ -272,11 +273,8 @@ type MergeableObject = Record<string, unknown>;
|
|
|
272
273
|
declare function deepMerge<T extends MergeableObject>(target: T, source: MergeableObject): T;
|
|
273
274
|
//#endregion
|
|
274
275
|
//#region .dts-emit/code/core/src/common/utils/default-config-dir.d.ts
|
|
275
|
-
/**
|
|
276
|
-
|
|
277
|
-
* when the project has only that one (a project that moved from Storybook).
|
|
278
|
-
*/
|
|
279
|
-
declare function defaultConfigDir(cwd?: string): string;
|
|
276
|
+
/** The config folder of a project when no `--config-dir` is given. */
|
|
277
|
+
declare function defaultConfigDir(): string;
|
|
280
278
|
//#endregion
|
|
281
279
|
//#region .dts-emit/code/core/src/common/utils/framework.d.ts
|
|
282
280
|
declare const frameworkToRenderer: Record<SupportedFramework | SupportedRenderer, SupportedRenderer>;
|
|
@@ -287,7 +285,7 @@ declare const frameworkToBuilder: Record<SupportedFramework, SupportedBuilder>;
|
|
|
287
285
|
* Builder options can be specified in `core.builder.options` or `framework.options.builder`.
|
|
288
286
|
* Preference is given here to `framework.options.builder` if both are specified.
|
|
289
287
|
*/
|
|
290
|
-
declare function getBuilderOptions<T extends Record<string,
|
|
288
|
+
declare function getBuilderOptions<T extends Record<string, unknown>>(options: Options): Promise<T | Record<string, never>>;
|
|
291
289
|
//#endregion
|
|
292
290
|
//#region .dts-emit/code/core/src/common/utils/get-pkg-pr-new-package-specifier.d.ts
|
|
293
291
|
declare const isPkgPrNewVersionSpecifier: (storybookVersionSpecifier?: string) => boolean;
|
|
@@ -301,8 +299,8 @@ type ProcessAncestryEntry = {
|
|
|
301
299
|
* Read a Forkbook version specifier from process ancestry.
|
|
302
300
|
*
|
|
303
301
|
* Prefers a pkg.pr.new CLI URL in the command so `npx --yes https://pkg.pr.new/.../storybook@sha`
|
|
304
|
-
* and `npx
|
|
305
|
-
*
|
|
302
|
+
* and `npx @aussieljk/forkbook@https://pkg.pr.new/...` resolve to the same source. Falls back to
|
|
303
|
+
* `@aussieljk/forkbook@<spec>` for npm tags and semver.
|
|
306
304
|
*/
|
|
307
305
|
declare const getStorybookVersionSpecifierFromAncestry: (ancestry: readonly ProcessAncestryEntry[]) => string | undefined;
|
|
308
306
|
//#endregion
|
|
@@ -314,16 +312,6 @@ declare const resolveStorybookVersionSpecifier: (ancestry?: readonly ProcessAnce
|
|
|
314
312
|
//#region .dts-emit/code/core/src/common/utils/get-framework-name.d.ts
|
|
315
313
|
/** Framework can be a string or an object. This utility always returns the string name. */
|
|
316
314
|
declare function getFrameworkName(options: Options): Promise<string>;
|
|
317
|
-
type FrameworkField = string | {
|
|
318
|
-
name: string;
|
|
319
|
-
options?: any;
|
|
320
|
-
} | undefined;
|
|
321
|
-
/** The `framework` field of a main config, with a Storybook name changed to its Forkbook name. */
|
|
322
|
-
declare function forkbookFramework<T extends FrameworkField>(framework: T): T;
|
|
323
|
-
/** A main config (or preset) with a Storybook framework name changed to its Forkbook name. */
|
|
324
|
-
declare function withForkbookFramework<T extends {
|
|
325
|
-
framework?: FrameworkField;
|
|
326
|
-
}>(config: T): T;
|
|
327
315
|
/**
|
|
328
316
|
* Extracts the proper framework name from the given framework field. The framework field can be the
|
|
329
317
|
* framework package name or a path to the framework package.
|
|
@@ -331,7 +319,7 @@ declare function withForkbookFramework<T extends {
|
|
|
331
319
|
* @example
|
|
332
320
|
*
|
|
333
321
|
* ```ts
|
|
334
|
-
* extractFrameworkPackageName('/path/to/@
|
|
322
|
+
* extractFrameworkPackageName('/path/to/@aussieljk/forkbook/react-vite'); // => '@aussieljk/forkbook/react-vite'
|
|
335
323
|
* extractFrameworkPackageName('@third-party/framework'); // => '@third-party/framework'
|
|
336
324
|
* ```
|
|
337
325
|
*/
|
|
@@ -422,7 +410,7 @@ declare function loadMainConfig({
|
|
|
422
410
|
configDir: string;
|
|
423
411
|
cwd?: string;
|
|
424
412
|
skipCache?: boolean;
|
|
425
|
-
}): Promise<
|
|
413
|
+
}): Promise<ForkbookConfig>;
|
|
426
414
|
//#endregion
|
|
427
415
|
//#region .dts-emit/code/core/src/common/utils/load-manager-or-addons-file.d.ts
|
|
428
416
|
declare function loadManagerOrAddonsFile({
|
|
@@ -607,7 +595,7 @@ declare class JsPackageManagerFactory {
|
|
|
607
595
|
}
|
|
608
596
|
//#endregion
|
|
609
597
|
//#region .dts-emit/code/core/src/common/js-package-manager/util.d.ts
|
|
610
|
-
declare const FORKBOOK_PACKAGE_PATTERNS: readonly ['@aussieljk/forkbook', '@storybook/*'
|
|
598
|
+
declare const FORKBOOK_PACKAGE_PATTERNS: readonly ['@aussieljk/forkbook', '@storybook/*'];
|
|
611
599
|
declare const hasStorybookMinimumAgeExclusions: (configuredPatterns: string[]) => boolean;
|
|
612
600
|
declare const parsePackageData: (packageName?: string) => {
|
|
613
601
|
name: string;
|
|
@@ -673,12 +661,12 @@ type RemoveAddonOptions = {
|
|
|
673
661
|
*/
|
|
674
662
|
declare function removeAddon(addon: string, options: RemoveAddonOptions): Promise<void>;
|
|
675
663
|
//#endregion
|
|
676
|
-
//#region .dts-emit/code/core/src/common/utils/resolve-path-in-
|
|
664
|
+
//#region .dts-emit/code/core/src/common/utils/resolve-path-in-cache.d.ts
|
|
677
665
|
/**
|
|
678
666
|
* Get the path of the file or directory with input name inside the Forkbook cache directory:
|
|
679
667
|
*
|
|
680
|
-
* - `node_modules/.cache/
|
|
681
|
-
* - `.cache/
|
|
668
|
+
* - `node_modules/.cache/forkbook/{version}/{directoryName}` in a Node.js project or npm package
|
|
669
|
+
* - `.cache/forkbook/{version}/{directoryName}` otherwise
|
|
682
670
|
*
|
|
683
671
|
* The cache directory includes the Forkbook version to ensure that upgrading Forkbook
|
|
684
672
|
* automatically invalidates the cache, preventing stale cache issues.
|
|
@@ -687,7 +675,7 @@ declare function removeAddon(addon: string, options: RemoveAddonOptions): Promis
|
|
|
687
675
|
* @param sub {string} Optional subdirectory name (defaults to 'default')
|
|
688
676
|
* @returns {string} Absolute path to the file or directory
|
|
689
677
|
*/
|
|
690
|
-
declare function
|
|
678
|
+
declare function resolvePathInForkbookCache(fileOrDirectoryName: string, sub?: string): string;
|
|
691
679
|
//#endregion
|
|
692
680
|
//#region .dts-emit/code/core/src/common/utils/symlinks.d.ts
|
|
693
681
|
declare function isPreservingSymlinks(): boolean | undefined;
|
|
@@ -838,8 +826,8 @@ declare function createLazyDocgenMiddleware<TManager>({
|
|
|
838
826
|
declare const posix: (localPath: string, seperator?: string) => string;
|
|
839
827
|
//#endregion
|
|
840
828
|
//#region .dts-emit/code/core/src/common/utils/sync-main-preview-addons.d.ts
|
|
841
|
-
declare function syncStorybookAddons(mainConfig:
|
|
842
|
-
declare function syncPreviewAddonsWithMainConfig(mainConfig:
|
|
829
|
+
declare function syncStorybookAddons(mainConfig: ForkbookConfig, previewConfigPath: string, configDir: string): Promise<void>;
|
|
830
|
+
declare function syncPreviewAddonsWithMainConfig(mainConfig: ForkbookConfig, previewConfig: ConfigFile, configDir: string): Promise<ConfigFile>;
|
|
843
831
|
//#endregion
|
|
844
832
|
//#region .dts-emit/code/core/src/common/utils/setup-addon-in-config.d.ts
|
|
845
833
|
interface SetupAddonInConfigOptions {
|
|
@@ -1023,13 +1011,13 @@ declare function slash(path: string): string;
|
|
|
1023
1011
|
declare function isInNodeModules(path: string): boolean;
|
|
1024
1012
|
//#endregion
|
|
1025
1013
|
//#region .dts-emit/code/core/src/common/utils/get-addon-names.d.ts
|
|
1026
|
-
type AddonEntry = NonNullable<
|
|
1014
|
+
type AddonEntry = NonNullable<ForkbookConfig['addons']>[number];
|
|
1027
1015
|
/**
|
|
1028
1016
|
* Resolve an addon config entry (string, object, or absolute path) to its bare package name.
|
|
1029
1017
|
* Returns `undefined` for relative-path local addons.
|
|
1030
1018
|
*/
|
|
1031
1019
|
declare const normalizeAddonName: (addon: AddonEntry) => string | undefined;
|
|
1032
|
-
declare const getAddonNames: (mainConfig:
|
|
1020
|
+
declare const getAddonNames: (mainConfig: ForkbookConfig) => string[];
|
|
1033
1021
|
//#endregion
|
|
1034
1022
|
//#region .dts-emit/code/core/src/common/utils/utils.d.ts
|
|
1035
1023
|
declare const groupBy: <K extends PropertyKey, T>(items: T[], keySelector: (item: T, index: number) => K) => Record<K, T[]>;
|
|
@@ -1100,4 +1088,4 @@ declare const MIN_SUPPORTED_NODE_DESCRIPTION: string;
|
|
|
1100
1088
|
*/
|
|
1101
1089
|
declare function isNodeVersionSupported(version: string): boolean;
|
|
1102
1090
|
//#endregion
|
|
1103
|
-
export { DEFAULT_FILES_PATTERN, DeclaredSubcomponent, ExecuteCommandOptions, FORKBOOK_PACKAGE_PATTERNS, FORKBOOK_RERUN_INSTRUCTION, FORKBOOK_VERSION_SPECIFIER_ENV, FileLockOptions, FileOptions, FileSystemCache, HandledError, INSTALL_ERROR_TAIL_LINES, InstallationMetadata, InterPresetOptions, JsPackageManager, JsPackageManagerFactory, LazyDocgenMiddlewareOptions, MIN_SUPPORTED_NODE_DESCRIPTION, MIN_SUPPORTED_NODE_VERSIONS, MetaComponentResolution, MetaComponentResolverOptions, MinNodeVersion, ModuleResolver, ModuleResolverOptions, type PackageJson, PackageJsonInfo, PackageJsonWithDepsAndDevDeps, PackageJsonWithMaybeDeps, PackageManagerName, PackageMetadata, ProcessAncestryEntry, ProcessInfo, RemoveAddonOptions, ResolveImportOptions, ResolvedMetaComponent, STORY_FILE_TEST_REGEXP, SetupAddonInConfigOptions, builderPackages, cache, checkAddonOrder, checkRef, clearVitePlusCache, commonGlobOptions, createFileSystemCache, createLazyDocgenMiddleware, createLogStream, createMetaComponentResolver, createModuleResolver, deepMerge, defaultConfigDir, defaultResolveConditionNames, doesVariableOrFunctionDeclarationExist, ensureNamedImport, executeCommand, executeCommandSync, executeNodeCommand, extractDeclaredSubcomponents, extractFrameworkPackageName, extractRenderer, findConfigFile, findFilesUp, findStorybookPackageRoot, findTsconfigPath, findTsconfigPathForFile, findTsconfigPathForPath,
|
|
1091
|
+
export { DEFAULT_FILES_PATTERN, DeclaredSubcomponent, ExecuteCommandOptions, FORKBOOK_PACKAGE_PATTERNS, FORKBOOK_RERUN_INSTRUCTION, FORKBOOK_VERSION_SPECIFIER_ENV, FileLockOptions, FileOptions, FileSystemCache, HandledError, INSTALL_ERROR_TAIL_LINES, InstallationMetadata, InterPresetOptions, JsPackageManager, JsPackageManagerFactory, LazyDocgenMiddlewareOptions, MIN_SUPPORTED_NODE_DESCRIPTION, MIN_SUPPORTED_NODE_VERSIONS, MetaComponentResolution, MetaComponentResolverOptions, MinNodeVersion, ModuleResolver, ModuleResolverOptions, type PackageJson, PackageJsonInfo, PackageJsonWithDepsAndDevDeps, PackageJsonWithMaybeDeps, PackageManagerName, PackageMetadata, ProcessAncestryEntry, ProcessInfo, RemoveAddonOptions, ResolveImportOptions, ResolvedMetaComponent, STORY_FILE_TEST_REGEXP, SetupAddonInConfigOptions, builderPackages, cache, checkAddonOrder, checkRef, clearVitePlusCache, commonGlobOptions, createFileSystemCache, createLazyDocgenMiddleware, createLogStream, createMetaComponentResolver, createModuleResolver, deepMerge, defaultConfigDir, defaultResolveConditionNames, doesVariableOrFunctionDeclarationExist, ensureNamedImport, executeCommand, executeCommandSync, executeNodeCommand, extractDeclaredSubcomponents, extractFrameworkPackageName, extractRenderer, findConfigFile, findFilesUp, findStorybookPackageRoot, findTsconfigPath, findTsconfigPathForFile, findTsconfigPathForPath, formatCode, formatFileContent, formatMinVersion, frameworkPackages, frameworkToBuilder, frameworkToRenderer, getAbsolutePathWrapperAsCallExpression, getAbsolutePathWrapperName, getAddonNames, getAgeInMinutes, getAutoRefs, getBabelPresetEnvMajor, getBuilderOptions, getComponentIdFromEntry, getConfigInfo, getDirectoryFromWorkingDir, getEnvConfig, getErrorLogs, getFieldsForGetAbsolutePathWrapper, getFrameworkName, getInstallErrorTail, getInterpretedFile, getLatestStableVersionAdheringToMinimumAgeGate, getMswInitCommand, getPackageDetails, getPkgPrNewPackageSpecifier, getPresets, getPrettyPackageManagerName, getPreviewBodyTemplate, getPreviewHeadTemplate, getProcessAncestry, getProjectRoot, getRefs, getRendererName, getStoryId, getStoryImportPathFromEntry, getStoryTitle, getStorybookConfiguration, getStorybookInfo, getStorybookRerunCommand, getStorybookVersionSpecifierFromAncestry, getTsconfigPathsBaseDir, getVitePlusVersions, getVitestStorybookRunCommand, globToRegexp, groupBy, hasStorybookMinimumAgeExclusions, importMetaResolve, importModule, interpolate, invalidateProjectRootCache, invariant, isCI, isCorePackage, isEligibleStoryEntry, isGetAbsolutePathWrapperNecessary, isInNodeModules, isNodeVersionSupported, isPkgPrNewVersionSpecifier, isPreservingSymlinks, isSatelliteAddon, isWebContainer, jsTsSourceExtensions, loadAllPresets, loadEnvs, loadMainConfig, loadManagerOrAddonsFile, loadPreset, loadPreviewOrConfigFile, logConfig, nodePathsToArray, normalizeAddonName, normalizeStories, normalizeStoriesEntry, normalizeStoryPath, optionalEnvToBoolean, parseList, parsePackageData, parsePackageTimeMap, parsePositiveIntegerConfigValue, parseReleaseTime, posix, readDependencyManifest, readTemplate, registerService, removeAddon, rendererPackages, resolveAddonName, resolveImport, resolvePackageDir, resolvePathInForkbookCache, resolveStorybookVersionSpecifier, safeResolveModule, scanAndTransformFiles, selectComponentEntriesByComponentId, setupAddonInConfig, slash, stringifyEnvs, stringifyProcessEnvs, supportedExtensions, syncPreviewAddonsWithMainConfig, syncStorybookAddons, temporaryDirectory, temporaryFile, toTitle, transformImports, validateConfigurationFiles, validateFrameworkName, _default as versions, warnOnYarn1, withFileLock, wrapValueWithGetAbsolutePathWrapper };
|