@aussieljk/forkbook 0.0.1-5 → 0.0.1-7
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/dist/_browser-chunks/{Color-GTF4GM7L.js → Color-2YRIFQLC.js} +1 -1
- package/dist/_browser-chunks/WithTooltip-4R5JMWZ7.js +196 -0
- package/dist/_browser-chunks/{chunk-MJY6ITYT.js → chunk-4EFKUJG2.js} +10 -10
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-DAUHYZUB.js} +550 -1621
- package/dist/_browser-chunks/chunk-E47B5255.js +1149 -0
- package/dist/_browser-chunks/{chunk-K6GRZSXS.js → chunk-EQKMUQF3.js} +4 -3
- package/dist/_browser-chunks/{chunk-GU3X2J4S.js → chunk-FRAOQJDI.js} +3 -1
- package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-H4ZHAXN3.js} +1 -1
- package/dist/_browser-chunks/{chunk-HOSBMS2F.js → chunk-HTL5ODCB.js} +1 -1
- package/dist/_browser-chunks/{chunk-ZLWA5RIE.js → chunk-I4ATZPNZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-6SHRDXGF.js → chunk-IJYLSHY7.js} +173 -87
- package/dist/_browser-chunks/{chunk-SZCSXISG.js → chunk-NA4ITZTK.js} +7 -5
- package/dist/_browser-chunks/chunk-NGMQJMCY.js +53 -0
- package/dist/_browser-chunks/{chunk-K2B36HKM.js → chunk-O24AZJZ7.js} +1 -1
- package/dist/_browser-chunks/{chunk-NMRSYACM.js → chunk-SFMQDIN2.js} +4 -3
- package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
- package/dist/_browser-chunks/chunk-WVF42CP2.js +6027 -0
- package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-YYWKZ7O3.js} +3 -1
- package/dist/_node-chunks/{attached-runtime-IOE3BXIY.js → attached-runtime-WFZCCGUB.js} +29 -29
- package/dist/_node-chunks/{builder-manager-GDFEGD72.js → builder-manager-DHKHRZK4.js} +155 -148
- package/dist/_node-chunks/{chunk-M2QB5ALN.js → chunk-3ZCGT6VF.js} +6 -6
- package/dist/_node-chunks/{chunk-SUJXQU74.js → chunk-4HGC3G6B.js} +46 -15
- package/dist/_node-chunks/{chunk-WMQ2VCTF.js → chunk-5PYQ573S.js} +7 -7
- package/dist/_node-chunks/{chunk-TYCDPVIH.js → chunk-64JPAW3T.js} +6 -6
- package/dist/_node-chunks/chunk-6CB3XSQ2.js +495 -0
- package/dist/_node-chunks/{chunk-MHDKWHOA.js → chunk-6K3ZE4HN.js} +6 -6
- package/dist/_node-chunks/{chunk-3DCJB2D4.js → chunk-6QZ3PX5R.js} +6 -6
- package/dist/_node-chunks/{chunk-6DOJKR3V.js → chunk-7HVDL6M3.js} +29843 -51588
- package/dist/_node-chunks/chunk-7PMQPS5E.js +347 -0
- package/dist/_node-chunks/{chunk-L5CY6HKG.js → chunk-7V5AOV2J.js} +7 -7
- package/dist/_node-chunks/{chunk-AXJJB2K6.js → chunk-7VHCAGBJ.js} +8 -8
- package/dist/_node-chunks/{chunk-3DX6THMV.js → chunk-ATX7SHS7.js} +8 -8
- package/dist/_node-chunks/{chunk-SDXU22OH.js → chunk-BQC6WCUS.js} +6 -6
- package/dist/_node-chunks/{chunk-D6B2DRQZ.js → chunk-BR4WDRY6.js} +8 -8
- package/dist/_node-chunks/{chunk-SJZQ44OR.js → chunk-BRHJ4P3A.js} +6 -6
- package/dist/_node-chunks/{chunk-N4FLP7AO.js → chunk-CBBFNVFZ.js} +7 -7
- package/dist/_node-chunks/{chunk-PHXCOTMO.js → chunk-CDFQORVD.js} +34 -949
- package/dist/_node-chunks/{chunk-SR3BCYEH.js → chunk-CENNLCU7.js} +6 -6
- package/dist/_node-chunks/{chunk-OTFIQXHR.js → chunk-CNMMDQC3.js} +27 -50
- package/dist/_node-chunks/{chunk-E4C2H45J.js → chunk-DMDZPUHM.js} +6 -6
- package/dist/_node-chunks/{chunk-45LRLOYO.js → chunk-DT45EUDD.js} +60 -134
- package/dist/_node-chunks/{chunk-KQFHT7SW.js → chunk-EAL4RVEF.js} +6 -6
- package/dist/_node-chunks/chunk-EFFWFE6W.js +11 -0
- package/dist/_node-chunks/{chunk-MDGNN3FJ.js → chunk-ESCZ2NSB.js} +6 -6
- package/dist/_node-chunks/{chunk-T2I453AJ.js → chunk-ESZIQTUH.js} +7 -7
- package/dist/_node-chunks/{chunk-HWY2CAUH.js → chunk-F3SAYS4R.js} +6 -6
- package/dist/_node-chunks/{chunk-LSP54OYM.js → chunk-FTUQ7T3V.js} +25 -8
- package/dist/_node-chunks/{chunk-AAAUVDWT.js → chunk-FVFSSIGA.js} +10 -10
- package/dist/_node-chunks/{chunk-GS4VNNSS.js → chunk-G2AANC4A.js} +6 -6
- package/dist/_node-chunks/{chunk-SAAQFJL4.js → chunk-HUMAXGH2.js} +6 -6
- package/dist/_node-chunks/{chunk-A4XRNDN4.js → chunk-I535GEPH.js} +7 -7
- package/dist/_node-chunks/{chunk-CK4EHW3K.js → chunk-J3Q56GX3.js} +25 -25
- package/dist/_node-chunks/{chunk-U47PBQZ3.js → chunk-JDKYP7FW.js} +10 -10
- package/dist/_node-chunks/{chunk-7TUSIVWS.js → chunk-JED5F3H2.js} +6 -6
- package/dist/_node-chunks/{chunk-UM5G27IC.js → chunk-JMS4H7QB.js} +7 -7
- package/dist/_node-chunks/{chunk-GR65OLAH.js → chunk-JOSJ64KD.js} +7 -7
- package/dist/_node-chunks/{chunk-XUHEL63G.js → chunk-JPHSU5OI.js} +6 -6
- package/dist/_node-chunks/{chunk-NYWD5LYM.js → chunk-JQICISDD.js} +6 -6
- package/dist/_node-chunks/{chunk-I3DKGHVD.js → chunk-JTLOSDYL.js} +9 -9
- package/dist/_node-chunks/{chunk-5KAJVK4E.js → chunk-K5RUOW42.js} +7 -7
- package/dist/_node-chunks/{chunk-UKEJISQU.js → chunk-KHWCZDIW.js} +650 -9
- package/dist/_node-chunks/chunk-KWER36VB.js +20 -0
- package/dist/_node-chunks/{chunk-YTBTCM22.js → chunk-LJTP5PAJ.js} +6 -6
- package/dist/_node-chunks/chunk-LZYYZ62Y.js +19 -0
- package/dist/_node-chunks/{chunk-CGXW2HFE.js → chunk-M7ZVSBNU.js} +6 -6
- package/dist/_node-chunks/{chunk-BTFSFATC.js → chunk-MBIIJTGQ.js} +11 -10
- package/dist/_node-chunks/{chunk-VBSVLIXU.js → chunk-MF3AT3JQ.js} +6 -6
- package/dist/_node-chunks/{chunk-AX2ALHBK.js → chunk-MF5BYASO.js} +9 -6
- package/dist/_node-chunks/{chunk-JJNO3SFI.js → chunk-MJFMB4WD.js} +9 -9
- package/dist/_node-chunks/{chunk-E4TBS4MV.js → chunk-MRWBN46D.js} +8 -8
- package/dist/_node-chunks/{chunk-QQXFB4YA.js → chunk-MZQXEAI6.js} +9 -9
- package/dist/_node-chunks/{chunk-TZ2TZW2K.js → chunk-NLPC2DDQ.js} +6 -6
- package/dist/_node-chunks/{chunk-HCX5R46Q.js → chunk-NQAFLS5U.js} +8 -8
- package/dist/_node-chunks/{chunk-5LE7GXEC.js → chunk-NSZGBFPR.js} +6 -6
- package/dist/_node-chunks/{chunk-WHDCECIV.js → chunk-NUYBFTOU.js} +7 -7
- package/dist/_node-chunks/{chunk-RCPKLP3X.js → chunk-O7VJA7SM.js} +7 -7
- package/dist/_node-chunks/{chunk-2GY2FKLH.js → chunk-OGJ7LDX3.js} +7 -7
- package/dist/_node-chunks/{chunk-F4Q7OCCN.js → chunk-OWT6AVWK.js} +8 -8
- package/dist/_node-chunks/{chunk-LCXIUTOU.js → chunk-P3GOMPP3.js} +7 -7
- package/dist/_node-chunks/{chunk-KCAPE7OJ.js → chunk-PQLXHVWK.js} +6 -6
- package/dist/_node-chunks/{chunk-V45RRBTK.js → chunk-Q6QRFKHB.js} +8 -8
- package/dist/_node-chunks/{chunk-VJSOHPVD.js → chunk-QSP42ZBM.js} +6 -6
- package/dist/_node-chunks/{chunk-7XUQM6SR.js → chunk-QWDR5OWQ.js} +14 -14
- package/dist/_node-chunks/{chunk-YLKS7U3M.js → chunk-QWRQXG2V.js} +8 -8
- package/dist/_node-chunks/{chunk-4WO3GNZQ.js → chunk-R6AKCXPH.js} +6 -6
- package/dist/_node-chunks/{chunk-AXQ6LLSE.js → chunk-RCY7TLET.js} +8 -8
- package/dist/_node-chunks/chunk-RKKMQA6N.js +620 -0
- package/dist/_node-chunks/{chunk-BV3QRFE6.js → chunk-RZ7UEP4N.js} +6 -6
- package/dist/_node-chunks/{chunk-OSJFTZ5N.js → chunk-S3HB4EWT.js} +6 -6
- package/dist/_node-chunks/{chunk-QZVFIEOM.js → chunk-SHH7JROR.js} +6 -6
- package/dist/_node-chunks/{chunk-Q33BYVLY.js → chunk-SWHTDOB4.js} +7 -7
- package/dist/_node-chunks/{chunk-ZPPVG262.js → chunk-SZYMLCHF.js} +6 -6
- package/dist/_node-chunks/{chunk-ES5QZBSB.js → chunk-TOGDRW2W.js} +6 -6
- package/dist/_node-chunks/{chunk-J64XMUPF.js → chunk-U3E7E4Q2.js} +10 -10
- package/dist/_node-chunks/{chunk-RECGEABN.js → chunk-U6DHF3RM.js} +7 -7
- package/dist/_node-chunks/{chunk-OB2XHL53.js → chunk-UAG3XK32.js} +31 -30
- package/dist/_node-chunks/{chunk-BBD2KUV4.js → chunk-UF6Q6L5C.js} +22 -20
- package/dist/_node-chunks/chunk-UGXN7JTT.js +18 -0
- package/dist/_node-chunks/{chunk-EWAGCBER.js → chunk-UNCBLHIP.js} +8 -8
- package/dist/_node-chunks/chunk-UPJMGWMZ.js +25 -0
- package/dist/_node-chunks/chunk-UVV24PG4.js +69 -0
- package/dist/_node-chunks/{chunk-E6KXSYWR.js → chunk-WBB4NQ6H.js} +6 -6
- package/dist/_node-chunks/{chunk-B2IOB2V3.js → chunk-WHOF2BJB.js} +7 -7
- package/dist/_node-chunks/{chunk-FA36CEN4.js → chunk-WME5NEJA.js} +6 -6
- package/dist/_node-chunks/{chunk-BFZG4UTW.js → chunk-X63YMAHP.js} +7 -7
- package/dist/_node-chunks/chunk-Y2GHAOKI.js +25 -0
- package/dist/_node-chunks/{chunk-AXG3EMKS.js → chunk-Y6G64J5S.js} +7 -15
- package/dist/_node-chunks/chunk-YVIPYJ53.js +2609 -0
- package/dist/_node-chunks/{chunk-NDGTNFUN.js → chunk-YZWUD7I5.js} +16 -13
- package/dist/_node-chunks/{chunk-VN3A5CEH.js → chunk-ZIDIYSJQ.js} +7 -7
- package/dist/_node-chunks/chunk-ZSGOW4WQ.js +20 -0
- package/dist/_node-chunks/dist-5EG56KTF.js +16 -0
- package/dist/_node-chunks/dist-UEXSNGGQ.js +27 -0
- package/dist/_node-chunks/{local-runtime-RW6AAWSX.js → local-runtime-UN5QK2SE.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-BKWCT6CB.js → mdx-plugin-6M6CMNL3.js} +2263 -130
- package/dist/_node-chunks/{monorepo-ZFJ6HM34.js → monorepo-253VKW4B.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-C3EW4VJW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-3ZOE54OQ.js} +11 -11
- package/dist/_node-chunks/optimized-tests-JSWLRMEI.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-2ZMJNCBS.js → pattern-copy-play-CCCJRMSL.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-VMANBHPR.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-RT5Z62RV.js → rehype-external-links-LJTPLCGD.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-H5TWHJ6G.js → rehype-slug-KQI7ULEZ.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-DYLWZGE4.js → relaxed-limits-MUE2NI7S.js} +11 -11
- package/dist/_node-chunks/{run-65LLGSVR.js → run-PGZMPNMS.js} +246 -13
- package/dist/_node-chunks/{run-BQQLK454.js → run-SYLR25HA.js} +17 -17
- package/dist/_node-chunks/session-id-J4A25UQ6.js +23 -0
- package/dist/_node-chunks/{setup-NEO7XX66.js → setup-XZWSUYPG.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-6P3FZQTY.js → vitest.config.4.template-T25YYRGV.js} +7 -7
- package/dist/actions/decorator.js +2 -1
- package/dist/actions/index.js +2 -1
- package/dist/addon-a11y/index.js +2 -1
- package/dist/addon-a11y/manager.js +6 -5
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +2 -1
- package/dist/addon-docs/blocks.js +28 -14
- package/dist/addon-docs/manager.js +2 -2
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/index.js +3 -2
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-links/preview.js +3 -2
- package/dist/addon-links/react/index.js +2 -1
- package/dist/addon-mcp/preset.js +8 -8
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +21 -44
- package/dist/addon-ondevice-actions/index.js +5 -1
- package/dist/addon-ondevice-actions/register.js +5 -1
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +2 -2
- package/dist/addon-vitest/node/coverage-reporter.js +8 -8
- package/dist/addon-vitest/node/vitest.js +16 -16
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +15 -16
- package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
- package/dist/addon-vitest/vitest-plugin/index.js +17 -17
- package/dist/babel/index.d.ts +91 -842
- package/dist/babel/index.js +13 -19
- package/dist/bin/core.js +61 -60
- package/dist/bin/dispatcher.js +16 -11
- package/dist/bin/loader.js +16 -15
- package/dist/builder-vite/index.js +15 -15
- package/dist/builder-vite/preset.js +13 -13
- package/dist/{chunk-Jf7j2Ot0.d.ts → chunk-BGhyFTJO.d.ts} +1 -1
- package/dist/{chunk-Ce6uhJuR.d.ts → chunk-B_ZhEPlo.d.ts} +1 -1
- package/dist/{chunk-CZHsX9Zo.d.ts → chunk-CMaYrou5.d.ts} +1 -1
- package/dist/chunk-CV4-Z2pn.d.ts +30 -0
- package/dist/{chunk-B2t1tGRh.d.ts → chunk-CYuvV2sR.d.ts} +11 -13
- package/dist/{chunk-DpljNJTz.d.ts → chunk-LrH1y9J2.d.ts} +39 -0
- package/dist/cli/index.d.ts +13 -866
- package/dist/cli/index.js +42 -4952
- 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 +1 -1
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.js +3 -1
- package/dist/common/index.d.ts +5 -4
- package/dist/common/index.js +35 -37
- package/dist/components/index.d.ts +14 -231
- package/dist/components/index.js +2512 -8359
- package/dist/core-events/index.d.ts +3 -2
- package/dist/core-events/index.js +3 -1
- package/dist/core-server/index.d.ts +2 -2
- package/dist/core-server/index.js +450 -147
- package/dist/core-server/presets/common-manager.js +62 -866
- package/dist/core-server/presets/common-override-preset.js +12 -10
- package/dist/core-server/presets/common-preset.js +39 -40
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/index.d.ts +1 -1
- package/dist/csf/index.js +27 -93
- package/dist/csf-tools/index.d.ts +14 -12
- package/dist/csf-tools/index.js +14 -14
- package/dist/instrumenter/index.js +3 -1
- package/dist/manager/_manager-chunks/{globals-runtime-BgVwdR45.js → globals-runtime-4fCHtNC6.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DW1HVuLt.js → globals-runtime-BKPOYSwp.js} +410 -379
- package/dist/manager/_manager-chunks/{globals-runtime-zVfMhZAt.js → globals-runtime-BMIT8BJb.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CUBVmgcG.js → globals-runtime-BO0pfoqL.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-Bke4A4DG.js → globals-runtime-BZKYJxYC.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-D_YKR9nf.js → globals-runtime-Bpc_ftuT.js} +1252 -539
- package/dist/manager/_manager-chunks/{globals-runtime-DCOX9nD5.js → globals-runtime-CBviMKtt.js} +1 -17
- package/dist/manager/_manager-chunks/{globals-runtime-CTB3rhS1.js → globals-runtime-CI-C7ncS.js} +10 -10
- package/dist/manager/_manager-chunks/{globals-runtime-Cr3nYYcT.js → globals-runtime-CI_p54Ha.js} +59 -60
- package/dist/manager/_manager-chunks/{globals-runtime-CiLcg4q9.js → globals-runtime-CTyYXvUm.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DqNrRmOM.js → globals-runtime-CoCzM1V_.js} +93 -2146
- package/dist/manager/_manager-chunks/{globals-runtime-CXKb33hg.js → globals-runtime-CzEhVGVp.js} +141 -54
- package/dist/manager/_manager-chunks/{globals-runtime-CF4o9_wT.js → globals-runtime-D82vqOGq.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-ALpzCL93.js → globals-runtime-DB8fVA5g.js} +2 -145
- package/dist/manager/_manager-chunks/{globals-runtime-DMvB3-IM.js → globals-runtime-DMq1Phbl.js} +153 -141
- package/dist/manager/_manager-chunks/globals-runtime-DOPUchia.js +5282 -0
- package/dist/manager/_manager-chunks/{globals-runtime-BcNHymiF.js → globals-runtime-Dbt08xWQ.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-m07udJ_K.js → globals-runtime-kmPSyf3j.js} +637 -1730
- package/dist/manager/_manager-chunks/{runtime-DMig8mT7.js → runtime-5o_11Jae.js} +4 -3
- package/dist/manager/_manager-chunks/{runtime-DrjpEyLM.js → runtime-B4U0u9p4.js} +5 -147
- package/dist/manager/_manager-chunks/{runtime-B-eSQdxk.js → runtime-BM30BmeT.js} +503 -44
- package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
- package/dist/manager/_manager-chunks/{runtime-a5zd7km2.js → runtime-Cf0p9DUx.js} +5 -531
- package/dist/manager/_manager-chunks/{runtime-Cdz2BHhM.js → runtime-D-nYLsdk.js} +57 -34
- package/dist/manager/_manager-chunks/runtime-D09XMY6V.js +294 -0
- package/dist/manager/_manager-chunks/{runtime-Bldwclun.js → runtime-DvrwKw7z.js} +92 -303
- package/dist/manager/_manager-chunks/{runtime-DGHNKNQl.js → runtime-DzxaTqVN.js} +10 -29
- package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
- package/dist/manager/_manager-chunks/{runtime-Cmu7D8A0.js → runtime-ecY5qnmo.js} +193 -184
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +22 -28
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.js +16 -11
- package/dist/nextjs-vite/index.js +3 -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 +93 -14
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.d.ts +1 -2
- package/dist/nextjs-vite-plugin/index.js +12 -27
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/node-logger/index.d.ts +65 -72
- package/dist/node-logger/index.js +11 -12
- package/dist/oxc-parser/index.js +11 -13
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-DVM_AHbR.js → runtime-6P-h06Te.js} +51 -50
- package/dist/preview/_chunks/{runtime-BoxmlDdB.js → runtime-B9KKIDGa.js} +202 -81
- package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-BPwAnlRx.js} +482 -334
- package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-BUnOhg9h.js} +2 -2
- package/dist/preview/_chunks/runtime-Bcv1hJky.js +6305 -0
- package/dist/preview/_chunks/{runtime-CqHxptiK.js → runtime-C1jgT6tJ.js} +93 -2145
- package/dist/preview/_chunks/{runtime-D7B4bVe_.js → runtime-C8QFpkFV.js} +6 -6
- package/dist/preview/_chunks/{runtime-CijtAN7R.js → runtime-DdqR8Fd0.js} +15 -6
- package/dist/preview/_chunks/{runtime-B3y8ocOg.js → runtime-DvBfMhis.js} +2 -2
- package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-WapFVPAh.js} +29 -29
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +1 -1
- package/dist/preview-api/index.js +2 -1
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -12
- package/dist/react/entry-preview.js +2 -1
- package/dist/react/index.js +6 -4
- package/dist/react/preset.js +13 -14
- package/dist/react/preview.js +3 -2
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/index.js +25 -211
- package/dist/react-native/metro/node.js +10 -9
- package/dist/react-native/metro/withStorybook.js +11 -10
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.js +3 -1
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +1 -1
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/telemetry/index.js +43 -45
- package/dist/test/index.js +808 -573
- package/dist/theming/create.js +2 -1
- package/dist/theming/index.js +22 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +21 -44
- package/dist/_browser-chunks/WithTooltip-V55S6YCY.js +0 -1619
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
- package/dist/_browser-chunks/chunk-UDQ3XQFC.js +0 -108
- package/dist/_node-chunks/chunk-6QQTZT3Z.js +0 -19
- package/dist/_node-chunks/chunk-BRD332PB.js +0 -3008
- package/dist/_node-chunks/chunk-E2XKJLXK.js +0 -4731
- package/dist/_node-chunks/chunk-F2LQJXAB.js +0 -29
- package/dist/_node-chunks/chunk-MCZZMBPA.js +0 -20
- package/dist/_node-chunks/chunk-MMFUHYSU.js +0 -23
- package/dist/_node-chunks/chunk-UGFY5LEG.js +0 -18
- package/dist/_node-chunks/chunk-UO5ZOCSQ.js +0 -662
- package/dist/_node-chunks/chunk-UW35FCXF.js +0 -20
- package/dist/_node-chunks/chunk-VMUXW2E2.js +0 -5414
- package/dist/_node-chunks/chunk-VNXE7UJL.js +0 -51
- package/dist/_node-chunks/chunk-VRJJ43P2.js +0 -11
- package/dist/_node-chunks/chunk-WCJUS7OC.js +0 -1877
- package/dist/_node-chunks/chunk-WMBMSNB7.js +0 -36
- package/dist/_node-chunks/chunk-YV2QBXU6.js +0 -3823
- package/dist/_node-chunks/chunk-ZZNBVMBU.js +0 -25
- package/dist/_node-chunks/dist-VFUGPNLK.js +0 -16
- package/dist/_node-chunks/globby-N7LO32D3.js +0 -2884
- package/dist/_node-chunks/jiti-SJDZ7LQB.js +0 -3848
- package/dist/_node-chunks/lib-4HD6QL5R.js +0 -366
- package/dist/_node-chunks/optimized-tests-LVKXZ3HQ.js +0 -22
- package/dist/_node-chunks/postinstallAddon-I6MAL6PW.js +0 -20
- package/dist/_node-chunks/session-id-6Z2RXBTG.js +0 -23
- package/dist/chunk-BfBzpgct.d.ts +0 -916
- package/dist/core-server/presets/common-manager.css +0 -170
- package/dist/manager/_manager-chunks/globals-runtime-Bon7UvQk.js +0 -9766
- package/dist/manager/_manager-chunks/globals-runtime-DDOIxI_l.js +0 -1584
- package/dist/manager/_manager-chunks/runtime-CuJiHYCp.js +0 -22
- package/dist/manager/_manager-chunks/runtime-DFhLVh8q.js +0 -456
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
- package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -39,13 +39,13 @@ import {
|
|
|
39
39
|
verifyStep,
|
|
40
40
|
vitestPassesStrictDOD,
|
|
41
41
|
writeStoriesStep
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-UNCBLHIP.js";
|
|
43
43
|
import {
|
|
44
44
|
getDocsMarkdownUrl
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
45
|
+
} from "./chunk-WME5NEJA.js";
|
|
46
|
+
import "./chunk-SHH7JROR.js";
|
|
47
|
+
import "./chunk-HUMAXGH2.js";
|
|
48
|
+
import "./chunk-NLPC2DDQ.js";
|
|
49
49
|
|
|
50
50
|
// src/cli/skills/content/setup-prompts/monorepo.ts
|
|
51
51
|
import { dedent } from "ts-dedent";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -39,13 +39,13 @@ import {
|
|
|
39
39
|
verifyWithAllowedFailureStep,
|
|
40
40
|
vitestPassesWhenExpectedDOD,
|
|
41
41
|
writeStoriesWithAllowedFailuresStep
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-UNCBLHIP.js";
|
|
43
43
|
import {
|
|
44
44
|
getDocsMarkdownUrl
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
45
|
+
} from "./chunk-WME5NEJA.js";
|
|
46
|
+
import "./chunk-SHH7JROR.js";
|
|
47
|
+
import "./chunk-HUMAXGH2.js";
|
|
48
|
+
import "./chunk-NLPC2DDQ.js";
|
|
49
49
|
|
|
50
50
|
// src/cli/skills/content/setup-prompts/monorepo-optimized-tests-relaxed-limits-no-story-deletion.ts
|
|
51
51
|
import { dedent } from "ts-dedent";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
instructions
|
|
14
|
+
} from "./chunk-BR4WDRY6.js";
|
|
15
|
+
import "./chunk-UNCBLHIP.js";
|
|
16
|
+
import "./chunk-WME5NEJA.js";
|
|
17
|
+
import "./chunk-SHH7JROR.js";
|
|
18
|
+
import "./chunk-HUMAXGH2.js";
|
|
19
|
+
import "./chunk-NLPC2DDQ.js";
|
|
20
|
+
export {
|
|
21
|
+
instructions
|
|
22
|
+
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.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
|
getDocsMarkdownUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WME5NEJA.js";
|
|
15
15
|
import {
|
|
16
16
|
getTypeImportSource
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-SHH7JROR.js";
|
|
18
|
+
import "./chunk-NLPC2DDQ.js";
|
|
19
19
|
|
|
20
20
|
// src/cli/skills/content/setup-prompts/pattern-copy-play.ts
|
|
21
21
|
import {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
postinstallAddon
|
|
14
|
+
} from "./chunk-WHOF2BJB.js";
|
|
15
|
+
import "./chunk-SWHTDOB4.js";
|
|
16
|
+
import "./chunk-3ZCGT6VF.js";
|
|
17
|
+
import "./chunk-NLPC2DDQ.js";
|
|
18
|
+
export {
|
|
19
|
+
postinstallAddon
|
|
20
|
+
};
|
package/dist/_node-chunks/{rehype-external-links-RT5Z62RV.js → rehype-external-links-LJTPLCGD.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,11 +12,11 @@ var require = CJS_COMPAT_NODE_MODULE_1qqypd7gt14.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
esm_default,
|
|
14
14
|
parse
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SZYMLCHF.js";
|
|
16
16
|
import {
|
|
17
17
|
visit
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-MF5BYASO.js";
|
|
19
|
+
import "./chunk-NLPC2DDQ.js";
|
|
20
20
|
|
|
21
21
|
// ../../node_modules/hast-util-is-element/lib/index.js
|
|
22
22
|
var convertElement = (
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.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
|
visit
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MF5BYASO.js";
|
|
15
15
|
import {
|
|
16
16
|
BananaSlug
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-TOGDRW2W.js";
|
|
18
|
+
import "./chunk-NLPC2DDQ.js";
|
|
19
19
|
|
|
20
20
|
// ../../node_modules/hast-util-heading-rank/lib/index.js
|
|
21
21
|
function headingRank(node) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -37,13 +37,13 @@ import {
|
|
|
37
37
|
verifyStep,
|
|
38
38
|
vitestPassesStrictDOD,
|
|
39
39
|
writeStoriesStep
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-UNCBLHIP.js";
|
|
41
41
|
import {
|
|
42
42
|
getDocsMarkdownUrl
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-WME5NEJA.js";
|
|
44
|
+
import "./chunk-SHH7JROR.js";
|
|
45
|
+
import "./chunk-HUMAXGH2.js";
|
|
46
|
+
import "./chunk-NLPC2DDQ.js";
|
|
47
47
|
|
|
48
48
|
// src/cli/skills/content/setup-prompts/relaxed-limits.ts
|
|
49
49
|
import { dedent } from "ts-dedent";
|
|
@@ -1,33 +1,37 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.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
|
postinstallAddon
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WHOF2BJB.js";
|
|
15
15
|
import {
|
|
16
16
|
version
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UGXN7JTT.js";
|
|
18
18
|
import {
|
|
19
19
|
leven
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-QSP42ZBM.js";
|
|
21
|
+
import "./chunk-SWHTDOB4.js";
|
|
22
|
+
import "./chunk-3ZCGT6VF.js";
|
|
23
23
|
import {
|
|
24
24
|
require_picocolors
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-K5RUOW42.js";
|
|
26
|
+
import {
|
|
27
|
+
glob
|
|
28
|
+
} from "./chunk-RKKMQA6N.js";
|
|
29
|
+
import "./chunk-CDFQORVD.js";
|
|
26
30
|
import {
|
|
27
31
|
__commonJS,
|
|
28
32
|
__require,
|
|
29
33
|
__toESM
|
|
30
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-NLPC2DDQ.js";
|
|
31
35
|
|
|
32
36
|
// ../../node_modules/envinfo/dist/envinfo.js
|
|
33
37
|
var require_envinfo = __commonJS({
|
|
@@ -4435,6 +4439,221 @@ function isValidVersion(version2) {
|
|
|
4435
4439
|
return SemVer.valid(version2) || version2.match(/^\d+$/);
|
|
4436
4440
|
}
|
|
4437
4441
|
|
|
4442
|
+
// src/cli-commands/migrate.ts
|
|
4443
|
+
import { existsSync } from "node:fs";
|
|
4444
|
+
import { readFile, writeFile } from "node:fs/promises";
|
|
4445
|
+
import { join, relative as relative2 } from "node:path";
|
|
4446
|
+
var IMPORT_RULES = [
|
|
4447
|
+
[/(['"])@storybook\/([a-z-]+)/g, "$1@aussieljk/forkbook/$2"],
|
|
4448
|
+
[/(['"])storybook\//g, "$1@aussieljk/forkbook/"]
|
|
4449
|
+
], ENV_RULE = [/(?<![A-Za-z0-9])(_*)STORYBOOK_/g, "$1FORKBOOK_"], CSS_RULE = [/(?<![\w-])(--)?sb-(?=[a-z])/g, "$1fb-"], SOURCE_GLOBS = ["**/*.{js,jsx,ts,tsx,mjs,cjs,mts,cts,mdx,css,scss,sass,less,html}", ".env*"], IGNORE = [
|
|
4450
|
+
"**/node_modules/**",
|
|
4451
|
+
"**/dist/**",
|
|
4452
|
+
"**/build/**",
|
|
4453
|
+
"**/.next/**",
|
|
4454
|
+
"**/storybook-static/**"
|
|
4455
|
+
], isStorybookPackage = (name) => name === "storybook" || name.startsWith("@storybook/");
|
|
4456
|
+
function apply(text, rules) {
|
|
4457
|
+
return rules.reduce((out, [pattern, replacement]) => out.replace(pattern, replacement), text);
|
|
4458
|
+
}
|
|
4459
|
+
function migrateSource(text) {
|
|
4460
|
+
return apply(text, [...IMPORT_RULES, ENV_RULE, CSS_RULE]);
|
|
4461
|
+
}
|
|
4462
|
+
function installCommand(cwd) {
|
|
4463
|
+
return existsSync(join(cwd, "pnpm-lock.yaml")) ? "pnpm install" : existsSync(join(cwd, "yarn.lock")) ? "yarn install" : existsSync(join(cwd, "package-lock.json")) ? "npm install" : "bun install";
|
|
4464
|
+
}
|
|
4465
|
+
async function migrate({
|
|
4466
|
+
cwd = process.cwd(),
|
|
4467
|
+
dryRun = !1,
|
|
4468
|
+
version: version2
|
|
4469
|
+
}) {
|
|
4470
|
+
let changedFiles = [], removedPackages = [], packageJsonPath = join(cwd, "package.json"), packageJson = JSON.parse(await readFile(packageJsonPath, "utf8"));
|
|
4471
|
+
for (let field of [
|
|
4472
|
+
"dependencies",
|
|
4473
|
+
"devDependencies",
|
|
4474
|
+
"peerDependencies",
|
|
4475
|
+
"optionalDependencies"
|
|
4476
|
+
]) {
|
|
4477
|
+
let deps = packageJson[field];
|
|
4478
|
+
for (let name of Object.keys(deps ?? {}))
|
|
4479
|
+
deps && isStorybookPackage(name) && (delete deps[name], removedPackages.push(name));
|
|
4480
|
+
}
|
|
4481
|
+
packageJson.devDependencies = {
|
|
4482
|
+
...packageJson.devDependencies,
|
|
4483
|
+
"@aussieljk/forkbook": `^${version2}`
|
|
4484
|
+
};
|
|
4485
|
+
for (let [name, script] of Object.entries(packageJson.scripts ?? {}))
|
|
4486
|
+
packageJson.scripts[name] = apply(script, [ENV_RULE]);
|
|
4487
|
+
let before = await readFile(packageJsonPath, "utf8"), after = `${JSON.stringify(packageJson, null, 2)}
|
|
4488
|
+
`;
|
|
4489
|
+
after !== before && (changedFiles.push("package.json"), dryRun || await writeFile(packageJsonPath, after));
|
|
4490
|
+
let files = await glob(SOURCE_GLOBS, { cwd, dot: !0, ignore: IGNORE, absolute: !0 });
|
|
4491
|
+
for (let file of files.sort()) {
|
|
4492
|
+
let text = await readFile(file, "utf8"), next = migrateSource(text);
|
|
4493
|
+
next !== text && (changedFiles.push(relative2(cwd, file)), dryRun || await writeFile(file, next));
|
|
4494
|
+
}
|
|
4495
|
+
return {
|
|
4496
|
+
removedPackages,
|
|
4497
|
+
addedPackage: `@aussieljk/forkbook@^${version2}`,
|
|
4498
|
+
changedFiles,
|
|
4499
|
+
installCommand: installCommand(cwd)
|
|
4500
|
+
};
|
|
4501
|
+
}
|
|
4502
|
+
|
|
4503
|
+
// src/cli-commands/pages.ts
|
|
4504
|
+
import { existsSync as existsSync2 } from "node:fs";
|
|
4505
|
+
import { mkdir, readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
|
|
4506
|
+
import { dirname, join as join2, relative as relative3 } from "node:path";
|
|
4507
|
+
var HELPER_FILE = "page.tsx";
|
|
4508
|
+
function routeFromPage(pagePath) {
|
|
4509
|
+
return `/${dirname(pagePath).split("/").filter((segment) => segment !== "." && !/^\(.*\)$/.test(segment) && !segment.startsWith("@")).join("/")}`;
|
|
4510
|
+
}
|
|
4511
|
+
function isRedirectOnly(source) {
|
|
4512
|
+
return /\b(redirect|permanentRedirect)\s*\(/.test(source) && !/<[A-Za-z]/.test(source);
|
|
4513
|
+
}
|
|
4514
|
+
var hasStaticParams = (source) => /export\s+(async\s+)?function\s+generateStaticParams\b|export\s+(const|let)\s+generateStaticParams\b/.test(
|
|
4515
|
+
source
|
|
4516
|
+
), importPath = (from, to) => {
|
|
4517
|
+
let path = relative3(dirname(from), to).replace(/\.tsx?$/, "");
|
|
4518
|
+
return path.startsWith(".") ? path : `./${path}`;
|
|
4519
|
+
};
|
|
4520
|
+
function pageStory({
|
|
4521
|
+
storyPath,
|
|
4522
|
+
helperPath,
|
|
4523
|
+
route,
|
|
4524
|
+
withStaticParams
|
|
4525
|
+
}) {
|
|
4526
|
+
let title = route === "/" ? "index" : route.slice(1), name = title.split("/").at(-1), pageImport = withStaticParams ? "Page, { generateStaticParams }" : "Page", options = withStaticParams ? ", { generateStaticParams }" : "";
|
|
4527
|
+
return `import type { Meta, StoryObj } from '@aussieljk/forkbook/nextjs-vite';
|
|
4528
|
+
|
|
4529
|
+
import { page } from '${importPath(storyPath, helperPath)}';
|
|
4530
|
+
import ${pageImport} from './page';
|
|
4531
|
+
|
|
4532
|
+
const meta = {
|
|
4533
|
+
title: ${JSON.stringify(title)},
|
|
4534
|
+
tags: ['!autodocs'],
|
|
4535
|
+
...page(${JSON.stringify(route)}, Page${options}),
|
|
4536
|
+
} satisfies Meta;
|
|
4537
|
+
|
|
4538
|
+
export default meta;
|
|
4539
|
+
|
|
4540
|
+
export const Default: StoryObj = { name: ${JSON.stringify(name)} };
|
|
4541
|
+
`;
|
|
4542
|
+
}
|
|
4543
|
+
function pageHelper({
|
|
4544
|
+
helperPath,
|
|
4545
|
+
layoutPath
|
|
4546
|
+
}) {
|
|
4547
|
+
return `import { Children, Fragment, cloneElement, isValidElement } from 'react';
|
|
4548
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
4549
|
+
|
|
4550
|
+
${layoutPath ? `import RootLayout from '${importPath(helperPath, layoutPath)}';
|
|
4551
|
+
` : ""}
|
|
4552
|
+
type Params = Record<string, string | string[]>;
|
|
4553
|
+
|
|
4554
|
+
interface PageOptions {
|
|
4555
|
+
generateStaticParams?: () => Params[] | Promise<Params[]>;
|
|
4556
|
+
}
|
|
4557
|
+
|
|
4558
|
+
const SLOT = '__forkbook_page_slot__';
|
|
4559
|
+
|
|
4560
|
+
const isAsync = (component: unknown) =>
|
|
4561
|
+
Object.prototype.toString.call(component) === '[object AsyncFunction]';
|
|
4562
|
+
|
|
4563
|
+
/** Puts \`params\` into the dynamic segments of a route: \`/blog/[slug]\` to \`/blog/hello\`. */
|
|
4564
|
+
function fillRoute(route: string, params: Params) {
|
|
4565
|
+
return route.replace(/\\[{1,2}(?:\\.\\.\\.)?([^\\]]+)\\]{1,2}/g, (_, key: string) => {
|
|
4566
|
+
const value = params[key];
|
|
4567
|
+
return Array.isArray(value) ? value.join('/') : (value ?? key);
|
|
4568
|
+
});
|
|
4569
|
+
}
|
|
4570
|
+
|
|
4571
|
+
/** Keeps the layout chrome (header, footer) and removes \`<html>\` and \`<body>\`. */
|
|
4572
|
+
function chrome(node: ReactNode, page: ReactNode): ReactNode {
|
|
4573
|
+
return Children.map(node, (child) => {
|
|
4574
|
+
if (!isValidElement<{ children?: ReactNode }>(child)) {
|
|
4575
|
+
return child;
|
|
4576
|
+
}
|
|
4577
|
+
if (child.type === SLOT) {
|
|
4578
|
+
return page;
|
|
4579
|
+
}
|
|
4580
|
+
const children = chrome(child.props.children, page);
|
|
4581
|
+
if (child.type === 'html' || child.type === 'body') {
|
|
4582
|
+
return <Fragment key={child.key}>{children}</Fragment>;
|
|
4583
|
+
}
|
|
4584
|
+
return child.props.children === undefined ? child : cloneElement(child, undefined, children);
|
|
4585
|
+
});
|
|
4586
|
+
}
|
|
4587
|
+
|
|
4588
|
+
/** Makes the meta for a story of a Next.js App Router page. Written by \`forkbook init --pages\`. */
|
|
4589
|
+
export function page(route: string, Page: ComponentType<any>, options: PageOptions = {}) {
|
|
4590
|
+
const Layout: ComponentType<any> | undefined = ${layoutPath ? "RootLayout" : "undefined"};
|
|
4591
|
+
return {
|
|
4592
|
+
component: Page,
|
|
4593
|
+
parameters: {
|
|
4594
|
+
layout: 'fullscreen',
|
|
4595
|
+
nextjs: { appDirectory: true, navigation: { pathname: route, segments: [] } },
|
|
4596
|
+
},
|
|
4597
|
+
loaders: [
|
|
4598
|
+
async (context: any) => {
|
|
4599
|
+
const params = (await options.generateStaticParams?.())?.[0] ?? {};
|
|
4600
|
+
// The Next.js decorator reads the navigation parameters when it renders, after the loaders.
|
|
4601
|
+
context.parameters.nextjs.navigation = {
|
|
4602
|
+
pathname: fillRoute(route, params),
|
|
4603
|
+
segments: Object.entries(params),
|
|
4604
|
+
};
|
|
4605
|
+
const props = { params: Promise.resolve(params), searchParams: Promise.resolve({}) };
|
|
4606
|
+
const pageNode = isAsync(Page) ? await Page(props) : <Page {...props} />;
|
|
4607
|
+
const slot = <SLOT />;
|
|
4608
|
+
const layoutNode = Layout
|
|
4609
|
+
? isAsync(Layout)
|
|
4610
|
+
? await (Layout as any)({ children: slot, params: props.params })
|
|
4611
|
+
: (Layout as any)({ children: slot, params: props.params })
|
|
4612
|
+
: slot;
|
|
4613
|
+
return { pageNode, layoutNode };
|
|
4614
|
+
},
|
|
4615
|
+
],
|
|
4616
|
+
render: (_args: unknown, { loaded }: any) => chrome(loaded.layoutNode, loaded.pageNode),
|
|
4617
|
+
};
|
|
4618
|
+
}
|
|
4619
|
+
`;
|
|
4620
|
+
}
|
|
4621
|
+
async function pages({
|
|
4622
|
+
cwd = process.cwd(),
|
|
4623
|
+
dryRun = !1
|
|
4624
|
+
} = {}) {
|
|
4625
|
+
let appDir = ["app", "src/app"].find((dir) => existsSync2(join2(cwd, dir)));
|
|
4626
|
+
if (!appDir)
|
|
4627
|
+
throw new Error(
|
|
4628
|
+
"No `app` or `src/app` folder found. This command is for the Next.js App Router."
|
|
4629
|
+
);
|
|
4630
|
+
let result = { written: [], skipped: [] }, helperFile = join2(
|
|
4631
|
+
existsSync2(join2(cwd, ".forkbook")) ? ".forkbook" : ".storybook",
|
|
4632
|
+
HELPER_FILE
|
|
4633
|
+
), helperPath = join2(cwd, helperFile), layoutPath = (await glob(`${appDir}/layout.{tsx,jsx,ts,js}`, { cwd, absolute: !0 }))[0], pageFiles = await glob(`${appDir}/**/page.{tsx,jsx}`, {
|
|
4634
|
+
cwd,
|
|
4635
|
+
ignore: ["**/node_modules/**"]
|
|
4636
|
+
});
|
|
4637
|
+
for (let pageFile of pageFiles.sort()) {
|
|
4638
|
+
let storyFile = join2(cwd, dirname(pageFile), "page.stories.tsx");
|
|
4639
|
+
if ((await glob("page.stories.*", { cwd: join2(cwd, dirname(pageFile)) })).length > 0)
|
|
4640
|
+
continue;
|
|
4641
|
+
let source = await readFile2(join2(cwd, pageFile), "utf8");
|
|
4642
|
+
if (isRedirectOnly(source)) {
|
|
4643
|
+
result.skipped.push(pageFile);
|
|
4644
|
+
continue;
|
|
4645
|
+
}
|
|
4646
|
+
let story = pageStory({
|
|
4647
|
+
storyPath: storyFile,
|
|
4648
|
+
helperPath,
|
|
4649
|
+
route: routeFromPage(relative3(appDir, pageFile)),
|
|
4650
|
+
withStaticParams: hasStaticParams(source)
|
|
4651
|
+
});
|
|
4652
|
+
result.written.push(relative3(cwd, storyFile)), dryRun || await writeFile2(storyFile, story);
|
|
4653
|
+
}
|
|
4654
|
+
return result.written.length > 0 && !existsSync2(helperPath) && (result.helper = helperFile, dryRun || (await mkdir(dirname(helperPath), { recursive: !0 }), await writeFile2(helperPath, pageHelper({ helperPath, layoutPath })))), result;
|
|
4655
|
+
}
|
|
4656
|
+
|
|
4438
4657
|
// src/cli-commands/bin/run.ts
|
|
4439
4658
|
addToGlobalContext("cliVersion", versions["@aussieljk/forkbook"]);
|
|
4440
4659
|
var handleCommandFailure = (logFilePath) => async (error) => {
|
|
@@ -4506,6 +4725,20 @@ command("remove <addon>").description("Remove an addon from your Forkbook").addO
|
|
|
4506
4725
|
}), await telemetry("remove", { addon: addonName, source: "cli" }), logger.outro("Done!");
|
|
4507
4726
|
}).catch(handleCommandFailure(options.logfile))
|
|
4508
4727
|
);
|
|
4728
|
+
command("migrate").description("Move a Storybook project to Forkbook").option("--dry-run", "Print the changes, but do not write them").action(async (options) => {
|
|
4729
|
+
let result = await migrate({ dryRun: options.dryRun, version: String(version) }), verb = options.dryRun ? "Would change" : "Changed";
|
|
4730
|
+
logger.log(`Removed packages: ${result.removedPackages.join(", ") || "none"}`), logger.log(`Added package: ${result.addedPackage}`), logger.log(`${verb} ${result.changedFiles.length} files:`);
|
|
4731
|
+
for (let file of result.changedFiles)
|
|
4732
|
+
logger.log(` ${file}`);
|
|
4733
|
+
logger.log(`Now run ${import_picocolors.default.bold(result.installCommand)}, then read the diff.`);
|
|
4734
|
+
});
|
|
4735
|
+
command("pages").description("Write a story for each Next.js App Router page (also `init --pages`)").option("--dry-run", "Print the files, but do not write them").action(async (options) => {
|
|
4736
|
+
let result = await pages({ dryRun: options.dryRun });
|
|
4737
|
+
for (let file of [result.helper, ...result.written].filter(Boolean))
|
|
4738
|
+
logger.log(`${options.dryRun ? "Would write" : "Wrote"} ${file}`);
|
|
4739
|
+
for (let file of result.skipped)
|
|
4740
|
+
logger.log(`Skipped ${file} (redirect only)`);
|
|
4741
|
+
});
|
|
4509
4742
|
command("info").description("Prints debugging information about the local environment").action(async () => {
|
|
4510
4743
|
logger.log(import_picocolors.default.bold(`
|
|
4511
4744
|
Storybook Environment Info:`));
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.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
|
initiate
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-YZWUD7I5.js";
|
|
15
|
+
import "./chunk-JTLOSDYL.js";
|
|
16
|
+
import "./chunk-F3SAYS4R.js";
|
|
17
17
|
import {
|
|
18
18
|
version
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UGXN7JTT.js";
|
|
20
20
|
import {
|
|
21
21
|
e,
|
|
22
22
|
i
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-EAL4RVEF.js";
|
|
24
|
+
import "./chunk-CENNLCU7.js";
|
|
25
|
+
import "./chunk-BRHJ4P3A.js";
|
|
26
|
+
import "./chunk-M7ZVSBNU.js";
|
|
27
|
+
import "./chunk-SWHTDOB4.js";
|
|
28
|
+
import "./chunk-3ZCGT6VF.js";
|
|
29
|
+
import "./chunk-NLPC2DDQ.js";
|
|
30
30
|
|
|
31
31
|
// src/create/bin/run.ts
|
|
32
32
|
import { ProjectType } from "@aussieljk/forkbook/internal/cli";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
SESSION_TIMEOUT,
|
|
14
|
+
getSessionId,
|
|
15
|
+
resetSessionIdForTest
|
|
16
|
+
} from "./chunk-ZIDIYSJQ.js";
|
|
17
|
+
import "./chunk-MF3AT3JQ.js";
|
|
18
|
+
import "./chunk-NLPC2DDQ.js";
|
|
19
|
+
export {
|
|
20
|
+
SESSION_TIMEOUT,
|
|
21
|
+
getSessionId,
|
|
22
|
+
resetSessionIdForTest
|
|
23
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.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
|
getTypeImportSource
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-SHH7JROR.js";
|
|
15
|
+
import "./chunk-NLPC2DDQ.js";
|
|
16
16
|
|
|
17
17
|
// src/cli/skills/content/setup-prompts/setup.ts
|
|
18
18
|
import { getVitestStorybookRunCommand } from "@aussieljk/forkbook/internal/common";
|