@aussieljk/forkbook 0.0.1-2 → 0.0.1-4
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/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 +1 -1
- package/assets/create/rendererAssets/common/header.css +1 -1
- package/assets/create/rendererAssets/common/page.css +2 -2
- package/assets/server/base-preview-body.html +32 -32
- package/assets/server/base-preview-head.html +86 -86
- package/assets/server/template.ejs +11 -26
- package/dist/_browser-chunks/{Color-PCLE2J36.js → Color-KRDPNBZS.js} +6 -6
- package/dist/_browser-chunks/{WithTooltip-XSQFTBMB.js → WithTooltip-523JD6VH.js} +4 -4
- package/dist/_browser-chunks/{chunk-66OCZ54D.js → chunk-3HM3VWJS.js} +1 -1
- package/dist/_browser-chunks/{chunk-CFAOWGL7.js → chunk-3M5T7BW4.js} +1 -1
- package/dist/_browser-chunks/{chunk-2MEPHP35.js → chunk-4KIQBRD2.js} +1 -1
- package/dist/_browser-chunks/{chunk-OQWFVDIN.js → chunk-5H4KFI44.js} +1 -1
- package/dist/_browser-chunks/{chunk-PFRNG3UC.js → chunk-6ELMKWKX.js} +5 -5
- package/dist/_browser-chunks/{chunk-C3D4HEFY.js → chunk-6SHRDXGF.js} +24 -24
- package/dist/_browser-chunks/{chunk-6SXYJQST.js → chunk-76222HQR.js} +1 -1
- package/dist/_browser-chunks/{chunk-JSBKXXXF.js → chunk-7DQREF4S.js} +1 -1
- package/dist/_browser-chunks/{chunk-RSPAQWVJ.js → chunk-BNP234B4.js} +1 -1
- package/dist/_browser-chunks/{chunk-KQ7CRO2B.js → chunk-BZGX2THJ.js} +10 -10
- package/dist/_browser-chunks/{chunk-P6PK47TQ.js → chunk-DS2WQZGO.js} +7 -21
- package/dist/_browser-chunks/{chunk-FJGWSWL5.js → chunk-DYNTDJ3O.js} +3 -3
- package/dist/_browser-chunks/{chunk-ODVJ3XZJ.js → chunk-GRO2ZYEJ.js} +2 -2
- package/dist/_browser-chunks/{chunk-LV5PIKV4.js → chunk-GU3X2J4S.js} +2 -2
- package/dist/_browser-chunks/{chunk-MDOL7KML.js → chunk-K2B36HKM.js} +1 -1
- package/dist/_browser-chunks/{chunk-CFWWCCZV.js → chunk-K6GRZSXS.js} +1 -1
- package/dist/_browser-chunks/{chunk-YTIT5NA5.js → chunk-KYSD26D6.js} +3 -3
- package/dist/_browser-chunks/{chunk-JYVGARBG.js → chunk-LXQPPHMD.js} +85 -93
- 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-OD6IBQCC.js → chunk-N3NRW5XX.js} +2 -2
- package/dist/_browser-chunks/{chunk-V2G23FV7.js → chunk-N5WQGLI7.js} +1 -1
- package/dist/_browser-chunks/{chunk-W5M6NPS3.js → chunk-NMRSYACM.js} +2 -2
- package/dist/_browser-chunks/{chunk-YEKO6BHJ.js → chunk-ONTSNQON.js} +1 -1
- package/dist/_browser-chunks/{chunk-EIYAKDGP.js → chunk-SZCSXISG.js} +124 -104
- package/dist/_browser-chunks/{chunk-JMC7AIKT.js → chunk-UDQ3XQFC.js} +1 -1
- package/dist/_browser-chunks/{chunk-MFMDGWP6.js → chunk-ZLWA5RIE.js} +1 -1
- package/dist/_node-chunks/{attached-runtime-I2G4WLJI.js → attached-runtime-CYMSKF3A.js} +29 -29
- package/dist/_node-chunks/{builder-manager-VVHYQXCH.js → builder-manager-RMLSIO45.js} +32 -32
- package/dist/_node-chunks/{chunk-UVINFLGY.js → chunk-2APY2YSW.js} +7 -7
- package/dist/_node-chunks/{chunk-NPO45IMH.js → chunk-2IJCISIB.js} +6 -6
- package/dist/_node-chunks/{chunk-EWOX7HPJ.js → chunk-2NWHHNNI.js} +6 -6
- package/dist/_node-chunks/{chunk-XGIUVY52.js → chunk-2QWFS23O.js} +7 -7
- package/dist/_node-chunks/{chunk-TFEWM4E3.js → chunk-3XDIBUGD.js} +12 -11
- package/dist/_node-chunks/{chunk-JGGFYIG5.js → chunk-4GD7MMLJ.js} +7 -7
- package/dist/_node-chunks/{chunk-GRBLDJCR.js → chunk-4LPAWP5S.js} +24 -24
- package/dist/_node-chunks/{chunk-LO56I6E2.js → chunk-5TPSYG4L.js} +8 -8
- package/dist/_node-chunks/{chunk-TNJIXE37.js → chunk-5ZLOPVTG.js} +6 -6
- package/dist/_node-chunks/{chunk-B5J7Q7J4.js → chunk-653BSJIX.js} +6 -6
- package/dist/_node-chunks/{chunk-MA24JW6C.js → chunk-6Y6RBJD7.js} +8 -8
- package/dist/_node-chunks/{chunk-WNZ2UMFM.js → chunk-74IEHSIR.js} +8 -8
- package/dist/_node-chunks/{chunk-Q7QNUM5H.js → chunk-7JA2DMCJ.js} +6 -6
- package/dist/_node-chunks/chunk-7XCEKQGV.js +18 -0
- package/dist/_node-chunks/{chunk-YCMRA6RX.js → chunk-7XCJ7RAJ.js} +7 -7
- package/dist/_node-chunks/{chunk-3SDUYDXH.js → chunk-A2UMIN5B.js} +7 -7
- package/dist/_node-chunks/{chunk-SWO5CDYU.js → chunk-A4YELYR3.js} +8 -8
- package/dist/_node-chunks/{chunk-RZMQ7S3L.js → chunk-AFKKN27O.js} +6 -6
- package/dist/_node-chunks/{chunk-6YKBRP72.js → chunk-AU3SF2WM.js} +6 -6
- package/dist/_node-chunks/{chunk-WZJF2OUH.js → chunk-AY6B2C46.js} +7 -7
- package/dist/_node-chunks/{chunk-XHL2LVBM.js → chunk-B3LK7C7B.js} +13 -13
- package/dist/_node-chunks/{chunk-ET7PWEO7.js → chunk-B5VFV3ZW.js} +10 -10
- package/dist/_node-chunks/{chunk-U5W53R2J.js → chunk-BOUA7OB7.js} +22 -32
- package/dist/_node-chunks/{chunk-FK7KGTV7.js → chunk-CGWACHNW.js} +6 -6
- package/dist/_node-chunks/{chunk-5DQFEZEA.js → chunk-DD2S4BFV.js} +6 -6
- package/dist/_node-chunks/{chunk-CCOTJ4FC.js → chunk-DIUBMAMV.js} +8 -8
- package/dist/_node-chunks/{chunk-BS2WMZMR.js → chunk-DVLFCSDG.js} +7 -7
- package/dist/_node-chunks/{chunk-MK2KYAI6.js → chunk-EGS2SAD2.js} +13 -13
- package/dist/_node-chunks/{chunk-2BUPBPFB.js → chunk-ESZVID7Q.js} +7 -7
- package/dist/_node-chunks/{chunk-EHUNOMDD.js → chunk-F2N6BJRH.js} +10 -10
- package/dist/_node-chunks/{chunk-OWNFOGTA.js → chunk-FAZ3MUOI.js} +7 -7
- package/dist/_node-chunks/{chunk-34EO2PUT.js → chunk-FJDJE7XC.js} +6 -6
- package/dist/_node-chunks/{chunk-H4PPVMP5.js → chunk-FNGLVURC.js} +6 -6
- package/dist/_node-chunks/{chunk-UBOGWBEA.js → chunk-GEMKJCEE.js} +10 -10
- package/dist/_node-chunks/{chunk-BXVYT7SB.js → chunk-GKTCJPLL.js} +6 -6
- package/dist/_node-chunks/{chunk-FW2HQUBQ.js → chunk-GZBUCUF7.js} +6 -6
- package/dist/_node-chunks/{chunk-QEQLR22M.js → chunk-HENM5ZK3.js} +7 -7
- package/dist/_node-chunks/{chunk-LXBD4UL4.js → chunk-HP5UY6OY.js} +6 -6
- package/dist/_node-chunks/chunk-HQM4ISVU.js +11 -0
- package/dist/_node-chunks/{chunk-DC7DKR5K.js → chunk-HUFAUSEX.js} +6 -6
- package/dist/_node-chunks/{chunk-UMUBKI6E.js → chunk-IBO346NQ.js} +25 -25
- package/dist/_node-chunks/{chunk-42UWAGPW.js → chunk-ILFIERUB.js} +8 -8
- package/dist/_node-chunks/{chunk-YZFWBA5L.js → chunk-INEYTOWF.js} +13 -13
- package/dist/_node-chunks/{chunk-CQKMLL5J.js → chunk-IR34HUSL.js} +7 -7
- package/dist/_node-chunks/{chunk-IK4FGZLR.js → chunk-J3M3X7GO.js} +6 -6
- package/dist/_node-chunks/{chunk-XLP2ZKXV.js → chunk-JEEXR245.js} +7 -7
- package/dist/_node-chunks/{chunk-ZMAMXQKP.js → chunk-K3I3G4VL.js} +7 -7
- package/dist/_node-chunks/{chunk-DUR55DJJ.js → chunk-KINEBDMM.js} +35 -35
- package/dist/_node-chunks/{chunk-XI6B6P47.js → chunk-KN2S7JF2.js} +6 -6
- package/dist/_node-chunks/{chunk-OISX4AGQ.js → chunk-KXDJ77EW.js} +7 -7
- package/dist/_node-chunks/{chunk-VLOXOXXE.js → chunk-KZBZYQTZ.js} +9 -9
- package/dist/_node-chunks/{chunk-H32DYT6P.js → chunk-LGUMVMBA.js} +6 -6
- package/dist/_node-chunks/{chunk-RRN2V55B.js → chunk-M2UZP5GC.js} +7 -7
- package/dist/_node-chunks/{chunk-3Y6AAY5H.js → chunk-MOITZTEA.js} +8 -8
- package/dist/_node-chunks/{chunk-HMP2G23X.js → chunk-MRZD5SBV.js} +6 -6
- package/dist/_node-chunks/{chunk-JPAZLYJ3.js → chunk-MZMPFII2.js} +6 -6
- package/dist/_node-chunks/{chunk-V2DY426G.js → chunk-NAYTBC72.js} +8 -8
- package/dist/_node-chunks/{chunk-4FEANXWU.js → chunk-NHIRHARE.js} +12 -12
- package/dist/_node-chunks/{chunk-6LMWA44H.js → chunk-NYAWUR6L.js} +11 -25
- package/dist/_node-chunks/{chunk-IDEL2J23.js → chunk-NYRUWAL3.js} +6 -6
- package/dist/_node-chunks/{chunk-TEQGGSP7.js → chunk-OIIORQX5.js} +6 -6
- package/dist/_node-chunks/{chunk-WCULS5TP.js → chunk-OQ4NCWE4.js} +7 -7
- package/dist/_node-chunks/{chunk-F3ZFKBHY.js → chunk-OS5LQEC6.js} +8 -8
- package/dist/_node-chunks/{chunk-ZWBCQ4MJ.js → chunk-P6QAFJ5M.js} +8 -8
- package/dist/_node-chunks/{chunk-DHJFTB4K.js → chunk-PDCSUZ4L.js} +7 -7
- package/dist/_node-chunks/{chunk-NIBT7XDZ.js → chunk-POXTROIX.js} +6 -6
- package/dist/_node-chunks/{chunk-SLWQNBGO.js → chunk-QDLR4JF5.js} +10 -10
- package/dist/_node-chunks/{chunk-TFCEV2XX.js → chunk-QU5ANYM7.js} +6 -6
- package/dist/_node-chunks/{chunk-LCK4ZQKG.js → chunk-RMLENEZC.js} +9 -9
- package/dist/_node-chunks/{chunk-TWI4GVH7.js → chunk-RNF3Z4ZJ.js} +6 -6
- package/dist/_node-chunks/{chunk-KISMCCP5.js → chunk-SBQT3LMM.js} +10 -10
- package/dist/_node-chunks/{chunk-GEFQN7K3.js → chunk-SQMCVWOR.js} +8 -8
- package/dist/_node-chunks/{chunk-3BKIBF5S.js → chunk-SSZ5REKS.js} +8 -8
- package/dist/_node-chunks/{chunk-SVTBJ7Q3.js → chunk-STRSG3GT.js} +6 -6
- package/dist/_node-chunks/{chunk-OUW6R7C3.js → chunk-TLVEPWBN.js} +6 -6
- package/dist/_node-chunks/{chunk-2DSIDINN.js → chunk-U5QMVW3H.js} +7 -7
- package/dist/_node-chunks/{chunk-RXNJDRGO.js → chunk-UAALLQAQ.js} +9 -9
- package/dist/_node-chunks/{chunk-NDWKJ4CL.js → chunk-UIFLXDUL.js} +36 -35
- package/dist/_node-chunks/{chunk-3W7F2B7P.js → chunk-UMZSNFWM.js} +6 -6
- package/dist/_node-chunks/{chunk-ICPBH3E7.js → chunk-UXW4I2CN.js} +7 -7
- package/dist/_node-chunks/{chunk-FPZB5OI7.js → chunk-V2JDVM46.js} +6 -6
- package/dist/_node-chunks/{chunk-6KEHV53S.js → chunk-VPOJCHKM.js} +14 -14
- package/dist/_node-chunks/{chunk-TD5PLLQG.js → chunk-WBTLBIED.js} +6 -6
- package/dist/_node-chunks/{chunk-3T4ZSNPH.js → chunk-WEW23EEE.js} +8 -8
- package/dist/_node-chunks/{chunk-E6YESGLX.js → chunk-WHZWLJGO.js} +30 -30
- package/dist/_node-chunks/{chunk-CXRU72ET.js → chunk-WS367FSJ.js} +6 -6
- package/dist/_node-chunks/{chunk-7GUDZVRQ.js → chunk-X2KWNNFB.js} +6 -6
- package/dist/_node-chunks/{chunk-JZOO7GGC.js → chunk-X3E55W5S.js} +6 -6
- package/dist/_node-chunks/{chunk-JDXXX6LB.js → chunk-XBXGLD3K.js} +6 -6
- package/dist/_node-chunks/{chunk-W4OMYLSP.js → chunk-XD5SYXAU.js} +37 -37
- package/dist/_node-chunks/{chunk-TINO74G5.js → chunk-XH6TDVML.js} +6 -6
- package/dist/_node-chunks/{chunk-SIEXZVCR.js → chunk-XWQEWRFD.js} +6 -6
- package/dist/_node-chunks/{chunk-BSKFCWQD.js → chunk-YGXJOSRU.js} +7 -7
- package/dist/_node-chunks/{chunk-RWFIFGO5.js → chunk-YU2WFBFL.js} +7 -7
- package/dist/_node-chunks/chunk-YYIZ2PC4.js +20 -0
- package/dist/_node-chunks/dist-CNA633FI.js +16 -0
- package/dist/_node-chunks/{globby-OEMHPBFY.js → globby-HRQV5N3V.js} +10 -10
- package/dist/_node-chunks/{jiti-NFX6UU74.js → jiti-WE7NHS2Y.js} +7 -7
- package/dist/_node-chunks/{lib-MDVARD7W.js → lib-7MVA6CTW.js} +7 -7
- package/dist/_node-chunks/{local-runtime-NTKIN2QT.js → local-runtime-KTI3DH6X.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-MWISDWDQ.js → mdx-plugin-2E3SW5TL.js} +14 -14
- package/dist/_node-chunks/{monorepo-LIRFMQXE.js → monorepo-MWAMFHKY.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-MGORG6W7.js} +12 -12
- package/dist/_node-chunks/optimized-tests-IAX6YURR.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-EKHIUAU2.js → pattern-copy-play-QTQOY7E7.js} +10 -10
- package/dist/_node-chunks/postinstallAddon-ROH2TBJX.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-BUN3HUCO.js → rehype-external-links-T7DZNKMB.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-PLADX223.js → rehype-slug-CSHI5WYI.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-GBHW6KIQ.js → relaxed-limits-RAZD36YR.js} +12 -12
- package/dist/_node-chunks/{run-KDTIZNSY.js → run-KJ3Z2TTY.js} +17 -17
- package/dist/_node-chunks/{run-NL66VTNR.js → run-S6XSLPEB.js} +13 -13
- package/dist/_node-chunks/session-id-GM226DGP.js +23 -0
- package/dist/_node-chunks/{setup-MGC7BQO6.js → setup-35J66GFB.js} +9 -9
- package/dist/_node-chunks/{vitest.config.4.template-JH2THZFG.js → vitest.config.4.template-Z7OCRDKD.js} +9 -9
- package/dist/actions/decorator.js +2 -2
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.js +2 -2
- package/dist/addon-a11y/index.d.ts +3 -3
- package/dist/addon-a11y/index.js +1 -1
- package/dist/addon-a11y/manager.js +24 -24
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +1 -1
- package/dist/addon-docs/blocks.js +56 -56
- package/dist/addon-docs/index.d.ts +19 -19
- package/dist/addon-docs/manager.js +6 -6
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-mcp/preset.js +27 -19
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +6 -5
- 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/preview.d.ts +1 -1
- package/dist/addon-themes/index.d.ts +1 -1
- package/dist/addon-themes/index.js +2 -2
- package/dist/addon-themes/manager.js +1 -1
- 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 +16 -16
- package/dist/addon-vitest/node/coverage-reporter.js +8 -8
- package/dist/addon-vitest/node/vitest.js +17 -17
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +14 -14
- package/dist/addon-vitest/vitest-plugin/global-setup.js +8 -8
- package/dist/addon-vitest/vitest-plugin/index.js +17 -17
- 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.js +12 -12
- package/dist/backgrounds/index.d.ts +1 -1
- package/dist/bin/core.js +59 -59
- package/dist/bin/dispatcher.js +10 -10
- package/dist/bin/loader.js +9 -9
- package/dist/builder-vite/index.js +17 -17
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.js +6 -6
- package/dist/{chunk-Dw1z1Pki.d.ts → chunk-B2xylxt5.d.ts} +43 -43
- package/dist/{chunk-C-bavsOH.d.ts → chunk-BWzbIWPz.d.ts} +1 -1
- package/dist/{chunk-CwQKNaYL.d.ts → chunk-BYnH2sbb.d.ts} +1 -1
- package/dist/{chunk-CMeX4WRe.d.ts → chunk-CT2iXaHz.d.ts} +1 -1
- package/dist/{chunk-DzuY9DXg.d.ts → chunk-DDd8BhTY.d.ts} +2 -2
- package/dist/{chunk-BTVrWliM.d.ts → chunk-DF6btpT3.d.ts} +1 -1
- package/dist/{chunk-C2p5r3Vt.d.ts → chunk-DIz17UEJ.d.ts} +20 -20
- 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-DtHByo32.d.ts → chunk-DuDsmeM7.d.ts} +1 -1
- package/dist/{chunk-DEVFdzxR.d.ts → chunk-DvufcbCc.d.ts} +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +26 -26
- 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/common/index.d.ts +2 -2
- package/dist/common/index.js +37 -37
- package/dist/components/index.d.ts +8 -7
- package/dist/components/index.js +287 -292
- package/dist/core-events/index.d.ts +1 -1
- package/dist/core-server/index.d.ts +2 -2
- package/dist/core-server/index.js +77 -77
- package/dist/core-server/presets/common-manager.js +61 -61
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +44 -44
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/index.d.ts +5 -5
- package/dist/csf/index.js +29 -29
- package/dist/csf-tools/index.js +13 -13
- package/dist/docs-tools/index.js +2 -2
- package/dist/highlight/index.d.ts +1 -1
- package/dist/instrumenter/index.js +5 -5
- package/dist/manager/_manager-chunks/{globals-runtime-sGpNlIJ1.js → globals-runtime-C9P2ZbMM.js} +125 -133
- package/dist/manager/_manager-chunks/{globals-runtime-Rp_zjGnh.js → globals-runtime-DuLFjsF4.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-qKvCZHFY.js → globals-runtime-dKGpUUSb.js} +38 -62
- package/dist/manager/_manager-chunks/{globals-runtime-DpNYC-qi.js → globals-runtime-q5R9dawi.js} +408 -429
- package/dist/manager/_manager-chunks/{runtime-eDVAYF7N.js → runtime-50_aob4S.js} +2 -2
- package/dist/manager/_manager-chunks/runtime-89Cb0A8U.js +998 -0
- package/dist/manager/_manager-chunks/{runtime-D94Vq3oR.js → runtime-B9QzcYO3.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-i-PDAHLR.js → runtime-BGvLm94o.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-cp5pazY2.js → runtime-BdLdsHca.js} +427 -425
- package/dist/manager/_manager-chunks/{runtime-D0UOWx0U.js → runtime-CE2sHVqs.js} +58 -58
- package/dist/manager/_manager-chunks/{runtime-BK0zF7FN.js → runtime-CKP1i0--.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-BhkT2CXl.js → runtime-DdCaBowH.js} +17 -27
- package/dist/manager/_manager-chunks/{runtime-B1L9TH89.js → runtime-wL4UO7YO.js} +12 -12
- 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 +18 -47
- package/dist/manager-errors.d.ts +1 -1
- package/dist/manager-errors.js +2 -2
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.d.ts +2 -2
- package/dist/mocking-utils/index.js +15 -15
- package/dist/mocking-utils/mocker-runtime.js +2 -2
- package/dist/nextjs-vite/index.d.ts +1 -1
- package/dist/nextjs-vite/index.js +3 -3
- package/dist/nextjs-vite/node/index.d.ts +1 -1
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +11 -11
- package/dist/nextjs-vite/preview.js +1 -1
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.d.ts +1 -1
- package/dist/nextjs-vite-plugin/index.js +11 -11
- 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/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +10 -10
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-CxZK_Ln3.js → runtime-B3y8ocOg.js} +2 -2
- package/dist/preview/_chunks/{runtime-CsV4HZPV.js → runtime-BoxmlDdB.js} +66 -66
- package/dist/preview/_chunks/{runtime-BwSxqk3t.js → runtime-BsMjBzuq.js} +6 -16
- package/dist/preview/_chunks/{runtime-iXdo8CR8.js → runtime-CijtAN7R.js} +4 -4
- package/dist/preview/_chunks/{runtime-DuHdxMFA.js → runtime-D7B4bVe_.js} +3 -3
- package/dist/preview/_chunks/{runtime-DrTjJkPY.js → runtime-DVM_AHbR.js} +36 -36
- 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 +1 -1
- package/dist/preview-api/index.js +9 -9
- package/dist/preview-errors.d.ts +1 -1
- package/dist/preview-errors.js +2 -2
- package/dist/react/docgen/docgen-worker.js +12 -12
- package/dist/react/entry-preview.js +1 -1
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +3 -3
- package/dist/react/preset.js +14 -14
- package/dist/react/preview.d.ts +1 -1
- package/dist/react/preview.js +2 -2
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/index.d.ts +6 -6
- package/dist/react-native/index.js +21 -20
- package/dist/react-native/metro/node.d.ts +2 -2
- package/dist/react-native/metro/node.js +9 -9
- package/dist/react-native/metro/withStorybook.d.ts +1 -1
- package/dist/react-native/metro/withStorybook.js +16 -16
- package/dist/react-native/scripts/generate.js +8 -8
- 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 +6 -7
- package/dist/react-native-ui/index.js +7 -7
- package/dist/react-native-ui-common/index.d.ts +2 -3
- package/dist/react-vite/index.d.ts +1 -1
- package/dist/react-vite/node/index.d.ts +1 -1
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.js +1 -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/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 +21 -21
- package/dist/telemetry/index.js +45 -45
- package/dist/test/index.js +2 -2
- package/dist/theming/create.js +1 -1
- package/dist/theming/index.d.ts +5 -5
- package/dist/theming/index.js +16 -16
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +5 -5
- package/dist/viewport/index.d.ts +1 -1
- package/package.json +6 -5
- 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.stories.js +2 -2
- package/template/nextjs-vite/cli/js/Page.jsx +2 -2
- 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/Configure.mdx +84 -84
- package/template/nextjs-vite/cli/ts/Header.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Page.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Page.tsx +2 -2
- package/template/react/cli/js/Button.stories.js +6 -6
- package/template/react/cli/js/Header.stories.js +2 -2
- package/template/react/cli/js/Page.jsx +2 -2
- 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/Header.stories.ts +2 -2
- package/template/react/cli/ts/Page.stories.ts +2 -2
- package/template/react/cli/ts/Page.tsx +2 -2
- package/template/react-vite/cli/js/Button.stories.js +6 -6
- package/template/react-vite/cli/js/Header.stories.js +2 -2
- package/template/react-vite/cli/js/Page.jsx +2 -2
- 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/Header.stories.ts +2 -2
- package/template/react-vite/cli/ts/Page.stories.ts +2 -2
- package/template/react-vite/cli/ts/Page.tsx +2 -2
- package/LICENSE +0 -22
- 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/_node-chunks/chunk-2RU7BKEW.js +0 -23
- package/dist/_node-chunks/chunk-FY6UXW6G.js +0 -11
- package/dist/_node-chunks/chunk-WAXVSN3O.js +0 -18
- package/dist/_node-chunks/dist-VTSTZKUB.js +0 -16
- 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-BxWufQms.d.ts +0 -142
- package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +0 -998
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ubhjlnocuxr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ubhjlnocuxr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ubhjlnocuxr from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ubhjlnocuxr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ubhjlnocuxr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ubhjlnocuxr.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
|
StorybookError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BOUA7OB7.js";
|
|
15
15
|
|
|
16
16
|
// src/cli/tools/instances/project-path.ts
|
|
17
17
|
import * as path from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ubhjlnocuxr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ubhjlnocuxr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ubhjlnocuxr from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ubhjlnocuxr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ubhjlnocuxr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ubhjlnocuxr.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_ro17f80mg6k.createRequire(import.meta.url);
|
|
|
12
12
|
|
|
13
13
|
// src/shared/constants/config-folder.ts
|
|
14
14
|
import { dirname, join, normalize, relative, resolve } from "pathe";
|
|
15
|
-
var
|
|
15
|
+
var RN_FORKBOOK_DIR = ".rnstorybook", DOCUMENTED_PREVIEW_IMPORT = "#.storybook/preview";
|
|
16
16
|
function previewImportTarget(previewFile, fromDirectory) {
|
|
17
17
|
let relativePath = relative(resolve(fromDirectory), resolve(previewFile));
|
|
18
18
|
if (!(relativePath === ".." || relativePath.startsWith("../")))
|
|
@@ -27,6 +27,6 @@ function applyPreviewImportsMap(packageJson, previewFile, fromDirectory) {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
RN_FORKBOOK_DIR,
|
|
31
31
|
applyPreviewImportsMap
|
|
32
32
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ubhjlnocuxr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ubhjlnocuxr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ubhjlnocuxr from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ubhjlnocuxr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ubhjlnocuxr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ubhjlnocuxr.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ubhjlnocuxr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ubhjlnocuxr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ubhjlnocuxr from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ubhjlnocuxr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ubhjlnocuxr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ubhjlnocuxr.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ubhjlnocuxr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ubhjlnocuxr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ubhjlnocuxr from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ubhjlnocuxr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ubhjlnocuxr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ubhjlnocuxr.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
|
importModule
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OS5LQEC6.js";
|
|
15
15
|
|
|
16
16
|
// src/cli-commands/postinstallAddon.ts
|
|
17
17
|
import { spawnSync } from "node:child_process";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ubhjlnocuxr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ubhjlnocuxr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ubhjlnocuxr from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ubhjlnocuxr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ubhjlnocuxr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ubhjlnocuxr.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
|
DOCUMENTATION_LINK
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LGUMVMBA.js";
|
|
15
15
|
import {
|
|
16
16
|
any
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XBXGLD3K.js";
|
|
18
18
|
|
|
19
19
|
// src/addon-vitest/postinstall.ts
|
|
20
20
|
import * as fs from "node:fs/promises";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "@aussieljk/forkbook/internal/babel";
|
|
48
48
|
import { normalize } from "pathe";
|
|
49
49
|
async function getTemplatePath() {
|
|
50
|
-
return import("./vitest.config.4.template-
|
|
50
|
+
return import("./vitest.config.4.template-Z7OCRDKD.js");
|
|
51
51
|
}
|
|
52
52
|
var loadTemplate = async (name, replacements) => {
|
|
53
53
|
let template = (await getTemplatePath()).default;
|
|
@@ -277,7 +277,7 @@ async function postInstall(options) {
|
|
|
277
277
|
in your main Forkbook config file and remove the dependency from your package.json file.
|
|
278
278
|
|
|
279
279
|
Please check the documentation for more information about its requirements and installation:
|
|
280
|
-
https://
|
|
280
|
+
https://forkbook.ljk.dev/docs/${DOCUMENTATION_LINK}
|
|
281
281
|
`
|
|
282
282
|
), result = reasons.map((r) => r.trim()).join(`
|
|
283
283
|
|
|
@@ -343,7 +343,7 @@ async function postInstall(options) {
|
|
|
343
343
|
We were unable to update your existing ${vitestConfigFile ? "Vitest" : "Vite"} config file.
|
|
344
344
|
|
|
345
345
|
Please refer to the documentation to complete the setup manually:
|
|
346
|
-
https://
|
|
346
|
+
https://forkbook.ljk.dev/docs/writing-tests/integrations/vitest-addon#manual-setup-advanced
|
|
347
347
|
`), errors.push(new AddonVitestPostinstallConfigUpdateError({ filePath: rootConfig }));
|
|
348
348
|
} else {
|
|
349
349
|
let parentDir = dirname(options.configDir), newConfigFile = resolve(parentDir, `vitest.config.${fileExtension}`), configTemplate = await loadTemplate("vitest.config.4.template", {
|
|
@@ -365,14 +365,14 @@ async function postInstall(options) {
|
|
|
365
365
|
• Vitest IDE extension shows all stories as tests in your editor!
|
|
366
366
|
|
|
367
367
|
Check the documentation for more information about its features and options at:
|
|
368
|
-
https://
|
|
368
|
+
https://forkbook.ljk.dev/docs/${DOCUMENTATION_LINK}
|
|
369
369
|
`);
|
|
370
370
|
else
|
|
371
371
|
throw logger.warn(
|
|
372
372
|
dedent`
|
|
373
373
|
Done, but with errors!
|
|
374
374
|
@aussieljk/forkbook/addon-vitest was installed successfully, but there were some errors during the setup process. Please refer to the documentation to complete the setup manually and check the errors above:
|
|
375
|
-
https://
|
|
375
|
+
https://forkbook.ljk.dev/docs/${DOCUMENTATION_LINK}#manual-setup-advanced
|
|
376
376
|
`
|
|
377
377
|
), new AddonVitestPostinstallError({ errors });
|
|
378
378
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ubhjlnocuxr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ubhjlnocuxr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ubhjlnocuxr from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ubhjlnocuxr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ubhjlnocuxr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ubhjlnocuxr.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
|
sync
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-K3I3G4VL.js";
|
|
15
15
|
|
|
16
16
|
// src/react-native/metro/buildIndex.ts
|
|
17
17
|
import { normalizeStories, loadMainConfig } from "@aussieljk/forkbook/internal/common";
|
|
@@ -219,7 +219,7 @@ function createChannelServer({
|
|
|
219
219
|
keepNodeProcessAlive = !1
|
|
220
220
|
}) {
|
|
221
221
|
if (secured && (!ssl?.key || !ssl?.cert))
|
|
222
|
-
throw new Error("[
|
|
222
|
+
throw new Error("[Forkbook] Secure channel server requires both `ssl.key` and `ssl.cert`.");
|
|
223
223
|
let httpServer = secured ? createHttpsServer(ssl) : createHttpServer(), wss = websockets ? new WebSocketServer({ server: httpServer }) : null, selectStorySyncEndpoint = wss ? createSelectStorySyncEndpoint(wss) : null;
|
|
224
224
|
return httpServer.on("request", async (req, res) => {
|
|
225
225
|
let protocol = "encrypted" in req.socket && req.socket.encrypted ? "https" : "http", requestUrl = new URL(req.url ?? "/", `${protocol}://${req.headers.host ?? "localhost"}`);
|
|
@@ -285,8 +285,8 @@ function createChannelServer({
|
|
|
285
285
|
});
|
|
286
286
|
})), httpServer.on("error", (error) => {
|
|
287
287
|
error.code === "EADDRINUSE" ? console.warn(
|
|
288
|
-
`[
|
|
289
|
-
) : console.error("[
|
|
288
|
+
`[Forkbook] Port ${port} is already in use. The channel server will not start. Another instance may already be running.`
|
|
289
|
+
) : console.error("[Forkbook] Channel server error:", error);
|
|
290
290
|
}), httpServer.listen(port, host, () => {
|
|
291
291
|
console.log(`${wss ? secured ? "WSS" : "WebSocket" : secured ? "HTTPS" : "HTTP"} server listening on ${host ?? "localhost"}:${port}`);
|
|
292
292
|
}), keepNodeProcessAlive || httpServer.unref(), process.once("beforeExit", () => httpServer.close()), wss;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ubhjlnocuxr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ubhjlnocuxr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ubhjlnocuxr from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ubhjlnocuxr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ubhjlnocuxr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ubhjlnocuxr.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
|
require_picocolors
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ESZVID7Q.js";
|
|
15
15
|
import {
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WS367FSJ.js";
|
|
18
18
|
|
|
19
19
|
// src/server-errors.ts
|
|
20
20
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -41,17 +41,7 @@ function parseErrorCode({
|
|
|
41
41
|
category
|
|
42
42
|
}) {
|
|
43
43
|
let paddedCode = String(code).padStart(4, "0");
|
|
44
|
-
return `
|
|
45
|
-
}
|
|
46
|
-
function appendErrorRef(url) {
|
|
47
|
-
if (/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(url))
|
|
48
|
-
return url;
|
|
49
|
-
try {
|
|
50
|
-
let urlObj = new URL(url);
|
|
51
|
-
return urlObj.searchParams.set("ref", "error"), urlObj.toString();
|
|
52
|
-
} catch {
|
|
53
|
-
return url;
|
|
54
|
-
}
|
|
44
|
+
return `FB_${category}_${paddedCode}`;
|
|
55
45
|
}
|
|
56
46
|
var StorybookError = class _StorybookError extends Error {
|
|
57
47
|
constructor(props) {
|
|
@@ -95,7 +85,7 @@ var StorybookError = class _StorybookError extends Error {
|
|
|
95
85
|
get fullErrorCode() {
|
|
96
86
|
return parseErrorCode({ code: this.code, category: this.category });
|
|
97
87
|
}
|
|
98
|
-
/** Overrides the default `Error.name` property in the format:
|
|
88
|
+
/** Overrides the default `Error.name` property in the format: FB_<CATEGORY>_<CODE>. */
|
|
99
89
|
get name() {
|
|
100
90
|
let errorName = this._name || this.constructor.name;
|
|
101
91
|
return `${this.fullErrorCode} (${errorName})`;
|
|
@@ -111,8 +101,8 @@ var StorybookError = class _StorybookError extends Error {
|
|
|
111
101
|
message
|
|
112
102
|
}) {
|
|
113
103
|
let page;
|
|
114
|
-
return documentation === !0 ? page = `https://
|
|
115
|
-
${documentation.map((doc) => ` - ${
|
|
104
|
+
return documentation === !0 ? page = `https://forkbook.ljk.dev/error/${parseErrorCode({ code, category })}` : typeof documentation == "string" ? page = documentation : Array.isArray(documentation) && (page = `
|
|
105
|
+
${documentation.map((doc) => ` - ${doc}`).join(`
|
|
116
106
|
`)}`), `${message}${page != null ? `
|
|
117
107
|
|
|
118
108
|
More info: ${page}
|
|
@@ -139,7 +129,7 @@ var Category = /* @__PURE__ */ ((Category2) => (Category2.CLI = "CLI", Category2
|
|
|
139
129
|
name: "MissingFrameworkFieldError",
|
|
140
130
|
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
141
131
|
code: 1,
|
|
142
|
-
documentation: "https://
|
|
132
|
+
documentation: "https://forkbook.ljk.dev/docs/migration#new-framework-api",
|
|
143
133
|
message: dedent`
|
|
144
134
|
Could not find a 'framework' field in Forkbook config.
|
|
145
135
|
|
|
@@ -152,7 +142,7 @@ var Category = /* @__PURE__ */ ((Category2) => (Category2.CLI = "CLI", Category2
|
|
|
152
142
|
name: "InvalidFrameworkNameError",
|
|
153
143
|
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
154
144
|
code: 2,
|
|
155
|
-
documentation: "https://
|
|
145
|
+
documentation: "https://forkbook.ljk.dev/docs/migration#new-framework-api",
|
|
156
146
|
message: dedent`
|
|
157
147
|
Invalid value of '${data.frameworkName}' in the 'framework' field of Forkbook config.
|
|
158
148
|
|
|
@@ -181,7 +171,7 @@ var Category = /* @__PURE__ */ ((Category2) => (Category2.CLI = "CLI", Category2
|
|
|
181
171
|
name: "ConflictingStaticDirConfigError",
|
|
182
172
|
category: "CORE-SERVER" /* CORE_SERVER */,
|
|
183
173
|
code: 1,
|
|
184
|
-
documentation: "https://
|
|
174
|
+
documentation: "https://forkbook.ljk.dev/docs/configure/integration/images-and-assets#serving-static-files-via-storybook-configuration",
|
|
185
175
|
message: dedent`
|
|
186
176
|
Forkbook encountered a conflict when trying to serve statics. You have configured both:
|
|
187
177
|
* Forkbook's option in the config file: 'staticDirs'
|
|
@@ -196,7 +186,7 @@ var Category = /* @__PURE__ */ ((Category2) => (Category2.CLI = "CLI", Category2
|
|
|
196
186
|
name: "InvalidStoriesEntryError",
|
|
197
187
|
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
198
188
|
code: 4,
|
|
199
|
-
documentation: "https://
|
|
189
|
+
documentation: "https://forkbook.ljk.dev/docs/faq#can-i-have-a-storybook-with-no-local-stories",
|
|
200
190
|
message: dedent`
|
|
201
191
|
Forkbook could not index your stories.
|
|
202
192
|
Your main configuration does not contain a 'stories' field, or it resolved to an empty array.
|
|
@@ -524,7 +514,7 @@ var CriticalPresetLoadError = class extends StorybookError {
|
|
|
524
514
|
name: "GoogleFontsDownloadError",
|
|
525
515
|
category: "FRAMEWORK_NEXTJS" /* FRAMEWORK_NEXTJS */,
|
|
526
516
|
code: 1,
|
|
527
|
-
documentation: "https://
|
|
517
|
+
documentation: "https://forkbook.ljk.dev/docs/get-started/frameworks/nextjs#nextjs-font-optimization",
|
|
528
518
|
message: dedent`
|
|
529
519
|
Failed to fetch \`${data.fontFamily}\` from Google Fonts with URL: \`${data.url}\``
|
|
530
520
|
});
|
|
@@ -536,7 +526,7 @@ var CriticalPresetLoadError = class extends StorybookError {
|
|
|
536
526
|
name: "GoogleFontsLoadingError",
|
|
537
527
|
category: "FRAMEWORK_NEXTJS" /* FRAMEWORK_NEXTJS */,
|
|
538
528
|
code: 2,
|
|
539
|
-
documentation: "https://
|
|
529
|
+
documentation: "https://forkbook.ljk.dev/docs/get-started/frameworks/nextjs#nextjs-font-optimization",
|
|
540
530
|
message: dedent`
|
|
541
531
|
An error occurred when trying to load Google Fonts with URL \`${data.url}\`.
|
|
542
532
|
|
|
@@ -568,12 +558,12 @@ var CriticalPresetLoadError = class extends StorybookError {
|
|
|
568
558
|
let map = {
|
|
569
559
|
storybook: {
|
|
570
560
|
helperMessage: "You can pass a --config-dir flag to tell Forkbook, where your main.js|ts file is located at.",
|
|
571
|
-
documentation: "https://
|
|
561
|
+
documentation: "https://forkbook.ljk.dev/docs/configure"
|
|
572
562
|
},
|
|
573
563
|
vitest: {
|
|
574
564
|
helperMessage: "You can pass a configDir plugin option to tell where your main.js|ts file is located at.",
|
|
575
565
|
// TODO: add proper docs once available
|
|
576
|
-
documentation: "https://
|
|
566
|
+
documentation: "https://forkbook.ljk.dev/docs/configure"
|
|
577
567
|
}
|
|
578
568
|
}, { documentation, helperMessage } = map[data.source || "storybook"];
|
|
579
569
|
super({
|
|
@@ -705,7 +695,7 @@ var MinimumReleaseAgeHandledError = class extends StorybookError {
|
|
|
705
695
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
706
696
|
isHandledError: !0,
|
|
707
697
|
code: 8,
|
|
708
|
-
documentation: "https://
|
|
698
|
+
documentation: "https://forkbook.ljk.dev/docs/writing-tests/integrations/vitest-addon#manual-setup-advanced",
|
|
709
699
|
message: dedent`
|
|
710
700
|
Could not update existing Vitest workspace file: ${data.filePath}
|
|
711
701
|
Please refer to the documentation to complete the setup manually.
|
|
@@ -720,7 +710,7 @@ var MinimumReleaseAgeHandledError = class extends StorybookError {
|
|
|
720
710
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
721
711
|
isHandledError: !0,
|
|
722
712
|
code: 9,
|
|
723
|
-
documentation: "https://
|
|
713
|
+
documentation: "https://forkbook.ljk.dev/docs/writing-tests/integrations/vitest-addon#manual-setup-advanced",
|
|
724
714
|
message: dedent`
|
|
725
715
|
Unable to update existing Vitest config file: ${data.filePath}
|
|
726
716
|
Please refer to the documentation to complete the setup manually.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ubhjlnocuxr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ubhjlnocuxr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ubhjlnocuxr from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ubhjlnocuxr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ubhjlnocuxr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ubhjlnocuxr.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ubhjlnocuxr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ubhjlnocuxr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ubhjlnocuxr from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ubhjlnocuxr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ubhjlnocuxr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ubhjlnocuxr.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ubhjlnocuxr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ubhjlnocuxr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ubhjlnocuxr from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ubhjlnocuxr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ubhjlnocuxr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ubhjlnocuxr.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-
|
|
14
|
+
} from "./chunk-AU3SF2WM.js";
|
|
15
15
|
import {
|
|
16
16
|
frameworkToRendererMap
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-653BSJIX.js";
|
|
18
18
|
|
|
19
19
|
// src/cli/skills/content/setup-utils/is-react-project.ts
|
|
20
20
|
function isReactProject(projectInfo) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ubhjlnocuxr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ubhjlnocuxr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ubhjlnocuxr from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ubhjlnocuxr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ubhjlnocuxr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ubhjlnocuxr.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_ro17f80mg6k.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WS367FSJ.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/has-flag/index.js
|
|
18
18
|
var require_has_flag = __commonJS({
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ubhjlnocuxr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ubhjlnocuxr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ubhjlnocuxr from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ubhjlnocuxr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ubhjlnocuxr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ubhjlnocuxr.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
|
isPlainObject
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NYRUWAL3.js";
|
|
15
15
|
import {
|
|
16
16
|
toPath,
|
|
17
17
|
traversePathUp
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GKTCJPLL.js";
|
|
19
19
|
import {
|
|
20
20
|
nodePathsToArray
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QDLR4JF5.js";
|
|
22
22
|
import {
|
|
23
23
|
Tag
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-STRSG3GT.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__require,
|
|
28
28
|
__toESM
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-WS367FSJ.js";
|
|
30
30
|
|
|
31
31
|
// ../../node_modules/isexe/windows.js
|
|
32
32
|
var require_windows = __commonJS({
|
|
@@ -386,7 +386,7 @@ var require_cross_spawn = __commonJS({
|
|
|
386
386
|
// src/common/utils/envs.ts
|
|
387
387
|
import { isWebContainer } from "@webcontainer/env";
|
|
388
388
|
async function loadEnvs(options = {}) {
|
|
389
|
-
let { getEnvironment } = await import("./lib-
|
|
389
|
+
let { getEnvironment } = await import("./lib-7MVA6CTW.js"), defaultNodeEnv = options.production ? "production" : "development", baseEnv = {
|
|
390
390
|
NODE_ENV: process.env.NODE_ENV || defaultNodeEnv,
|
|
391
391
|
NODE_PATH: process.env.NODE_PATH || "",
|
|
392
392
|
STORYBOOK: process.env.STORYBOOK || "true",
|
|
@@ -400,7 +400,7 @@ async function loadEnvs(options = {}) {
|
|
|
400
400
|
// TODO: it seems wrong that dotenv overrides process.env, but that's how it has always worked
|
|
401
401
|
...process.env,
|
|
402
402
|
...dotenv.raw
|
|
403
|
-
}).filter(([name]) => /^
|
|
403
|
+
}).filter(([name]) => /^FORKBOOK_/.test(name))
|
|
404
404
|
), raw = { ...baseEnv, ...envEntries };
|
|
405
405
|
raw.NODE_PATH = nodePathsToArray(raw.NODE_PATH || "");
|
|
406
406
|
let stringified = Object.fromEntries(
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ubhjlnocuxr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ubhjlnocuxr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ubhjlnocuxr from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ubhjlnocuxr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ubhjlnocuxr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ubhjlnocuxr.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
|
__commonJS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WS367FSJ.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/picocolors/picocolors.js
|
|
17
17
|
var require_picocolors = __commonJS({
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ubhjlnocuxr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ubhjlnocuxr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ubhjlnocuxr from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ubhjlnocuxr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ubhjlnocuxr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ubhjlnocuxr.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
|
require_src
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SQMCVWOR.js";
|
|
15
15
|
import {
|
|
16
16
|
require_lib
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-U5QMVW3H.js";
|
|
18
18
|
import {
|
|
19
19
|
require_picocolors
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ESZVID7Q.js";
|
|
21
21
|
import {
|
|
22
22
|
__commonJS,
|
|
23
23
|
__require,
|
|
24
24
|
__toESM
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WS367FSJ.js";
|
|
26
26
|
|
|
27
27
|
// ../../node_modules/@babel/types/lib/utils/shallowEqual.js
|
|
28
28
|
var require_shallowEqual = __commonJS({
|