@aussieljk/forkbook 0.0.1-2 → 0.0.1-3
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-PSH7RHPM.js} +5 -5
- package/dist/_browser-chunks/{WithTooltip-XSQFTBMB.js → WithTooltip-JLXUJSYD.js} +3 -3
- 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-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-JYVGARBG.js → chunk-DCZTO4JJ.js} +68 -76
- 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-KQ7CRO2B.js → chunk-EE42XVSP.js} +8 -8
- 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-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-PFRNG3UC.js → chunk-PPZ2HCWJ.js} +4 -4
- 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-KZYKMMDD.js} +29 -29
- package/dist/_node-chunks/{builder-manager-VVHYQXCH.js → builder-manager-337QQEZ6.js} +32 -32
- package/dist/_node-chunks/{chunk-3T4ZSNPH.js → chunk-224FM5GP.js} +8 -8
- package/dist/_node-chunks/chunk-22OJYYPD.js +18 -0
- package/dist/_node-chunks/{chunk-JGGFYIG5.js → chunk-26MVQWHR.js} +7 -7
- package/dist/_node-chunks/{chunk-JZOO7GGC.js → chunk-27HJO5MV.js} +6 -6
- package/dist/_node-chunks/{chunk-UMUBKI6E.js → chunk-27KGUS37.js} +25 -25
- package/dist/_node-chunks/{chunk-E6YESGLX.js → chunk-2D7P5VUJ.js} +30 -30
- package/dist/_node-chunks/{chunk-SVTBJ7Q3.js → chunk-2OI3EZE2.js} +6 -6
- package/dist/_node-chunks/{chunk-IK4FGZLR.js → chunk-34YSGPI4.js} +6 -6
- package/dist/_node-chunks/{chunk-6YKBRP72.js → chunk-4RSOZZZV.js} +6 -6
- package/dist/_node-chunks/{chunk-ZMAMXQKP.js → chunk-4ZGNL77M.js} +7 -7
- package/dist/_node-chunks/{chunk-34EO2PUT.js → chunk-4ZHC3GG3.js} +6 -6
- package/dist/_node-chunks/{chunk-RXNJDRGO.js → chunk-6RQIIUDQ.js} +9 -9
- package/dist/_node-chunks/{chunk-XGIUVY52.js → chunk-7QGX7Z6B.js} +7 -7
- package/dist/_node-chunks/{chunk-YCMRA6RX.js → chunk-7VZYI3NI.js} +7 -7
- package/dist/_node-chunks/{chunk-WNZ2UMFM.js → chunk-A6EXJJZU.js} +8 -8
- package/dist/_node-chunks/{chunk-42UWAGPW.js → chunk-AJ3YH5VH.js} +8 -8
- package/dist/_node-chunks/{chunk-CCOTJ4FC.js → chunk-AKBNFQKK.js} +8 -8
- package/dist/_node-chunks/{chunk-RRN2V55B.js → chunk-AKF2FB7S.js} +7 -7
- package/dist/_node-chunks/{chunk-YZFWBA5L.js → chunk-ANOZDFMW.js} +13 -13
- package/dist/_node-chunks/{chunk-4FEANXWU.js → chunk-APM5SEWT.js} +12 -12
- package/dist/_node-chunks/{chunk-NPO45IMH.js → chunk-AQSROIPB.js} +6 -6
- package/dist/_node-chunks/{chunk-3Y6AAY5H.js → chunk-CC4WWASR.js} +8 -8
- package/dist/_node-chunks/{chunk-LCK4ZQKG.js → chunk-CE66ARL5.js} +9 -9
- package/dist/_node-chunks/{chunk-GEFQN7K3.js → chunk-CHOJKLHP.js} +8 -8
- package/dist/_node-chunks/{chunk-QEQLR22M.js → chunk-COJPWKDE.js} +7 -7
- package/dist/_node-chunks/{chunk-BS2WMZMR.js → chunk-CVQGQ2MI.js} +7 -7
- package/dist/_node-chunks/{chunk-CXRU72ET.js → chunk-CYPEPQSM.js} +6 -6
- package/dist/_node-chunks/{chunk-2DSIDINN.js → chunk-D44WSSIU.js} +7 -7
- package/dist/_node-chunks/{chunk-ET7PWEO7.js → chunk-DG3DK4ZH.js} +10 -10
- package/dist/_node-chunks/{chunk-TNJIXE37.js → chunk-DI76R3EI.js} +6 -6
- package/dist/_node-chunks/{chunk-6KEHV53S.js → chunk-DSHYY7ZB.js} +14 -14
- package/dist/_node-chunks/{chunk-TFEWM4E3.js → chunk-EJ6XL2KN.js} +8 -8
- package/dist/_node-chunks/{chunk-RWFIFGO5.js → chunk-EM3MZKXS.js} +7 -7
- package/dist/_node-chunks/{chunk-KISMCCP5.js → chunk-EYKTEH7V.js} +10 -10
- package/dist/_node-chunks/{chunk-B5J7Q7J4.js → chunk-GTM64XRQ.js} +6 -6
- package/dist/_node-chunks/{chunk-2BUPBPFB.js → chunk-GURMTBQH.js} +7 -7
- package/dist/_node-chunks/{chunk-FK7KGTV7.js → chunk-HC2QE2VI.js} +6 -6
- package/dist/_node-chunks/{chunk-6LMWA44H.js → chunk-HG3U5FMZ.js} +8 -8
- package/dist/_node-chunks/{chunk-IDEL2J23.js → chunk-HLT3PHJN.js} +6 -6
- package/dist/_node-chunks/{chunk-Q7QNUM5H.js → chunk-HNCTPOQK.js} +6 -6
- package/dist/_node-chunks/{chunk-TFCEV2XX.js → chunk-HOROZKYE.js} +6 -6
- package/dist/_node-chunks/{chunk-SLWQNBGO.js → chunk-HS3YKDIQ.js} +10 -10
- package/dist/_node-chunks/{chunk-DC7DKR5K.js → chunk-I7BJLOF5.js} +6 -6
- package/dist/_node-chunks/{chunk-EHUNOMDD.js → chunk-IGAYUOMN.js} +10 -10
- package/dist/_node-chunks/{chunk-F3ZFKBHY.js → chunk-J4WM6PLB.js} +8 -8
- package/dist/_node-chunks/{chunk-TEQGGSP7.js → chunk-JD5NDU6F.js} +6 -6
- package/dist/_node-chunks/{chunk-BXVYT7SB.js → chunk-JQDKICKC.js} +6 -6
- package/dist/_node-chunks/{chunk-RZMQ7S3L.js → chunk-KGJPHNM7.js} +6 -6
- package/dist/_node-chunks/{chunk-NIBT7XDZ.js → chunk-KSOJ65P3.js} +6 -6
- package/dist/_node-chunks/{chunk-TD5PLLQG.js → chunk-LEUTSNSA.js} +6 -6
- package/dist/_node-chunks/{chunk-WZJF2OUH.js → chunk-LJ5HNC36.js} +7 -7
- package/dist/_node-chunks/{chunk-V2DY426G.js → chunk-LMMUUQFW.js} +8 -8
- package/dist/_node-chunks/{chunk-5DQFEZEA.js → chunk-LNOZLCJT.js} +6 -6
- package/dist/_node-chunks/{chunk-3W7F2B7P.js → chunk-MCPP73WS.js} +6 -6
- package/dist/_node-chunks/{chunk-W4OMYLSP.js → chunk-MMMIVLRV.js} +37 -37
- package/dist/_node-chunks/{chunk-JPAZLYJ3.js → chunk-MY7DHPSK.js} +6 -6
- package/dist/_node-chunks/chunk-MZ4CONV4.js +20 -0
- package/dist/_node-chunks/{chunk-LO56I6E2.js → chunk-N4DKR3HN.js} +8 -8
- package/dist/_node-chunks/{chunk-SWO5CDYU.js → chunk-NF3GSBMC.js} +8 -8
- package/dist/_node-chunks/{chunk-BSKFCWQD.js → chunk-OA6BPTG5.js} +7 -7
- package/dist/_node-chunks/{chunk-FW2HQUBQ.js → chunk-OGQBLJGR.js} +6 -6
- package/dist/_node-chunks/{chunk-WCULS5TP.js → chunk-OMFATFOJ.js} +7 -7
- package/dist/_node-chunks/{chunk-H32DYT6P.js → chunk-OSE2FYQP.js} +6 -6
- package/dist/_node-chunks/{chunk-EWOX7HPJ.js → chunk-PRXD2EYH.js} +6 -6
- package/dist/_node-chunks/{chunk-SIEXZVCR.js → chunk-PT7NX73C.js} +6 -6
- package/dist/_node-chunks/{chunk-LXBD4UL4.js → chunk-QDZFSC26.js} +6 -6
- package/dist/_node-chunks/{chunk-7GUDZVRQ.js → chunk-QTRP6K2A.js} +6 -6
- package/dist/_node-chunks/{chunk-H4PPVMP5.js → chunk-R2ZIMVYL.js} +6 -6
- package/dist/_node-chunks/{chunk-OUW6R7C3.js → chunk-RGAJGDCU.js} +6 -6
- package/dist/_node-chunks/{chunk-XI6B6P47.js → chunk-RKUAUXH6.js} +6 -6
- package/dist/_node-chunks/{chunk-MK2KYAI6.js → chunk-RNZL535Q.js} +13 -13
- package/dist/_node-chunks/{chunk-GRBLDJCR.js → chunk-S73KB2DE.js} +24 -24
- package/dist/_node-chunks/{chunk-U5W53R2J.js → chunk-SFPEJYWG.js} +22 -32
- package/dist/_node-chunks/{chunk-3BKIBF5S.js → chunk-SPN2VCN7.js} +8 -8
- package/dist/_node-chunks/{chunk-DUR55DJJ.js → chunk-SVRE646L.js} +35 -35
- package/dist/_node-chunks/{chunk-VLOXOXXE.js → chunk-T5D7JJMY.js} +9 -9
- package/dist/_node-chunks/{chunk-DHJFTB4K.js → chunk-TM4SF5U2.js} +7 -7
- package/dist/_node-chunks/{chunk-ICPBH3E7.js → chunk-TVYJB2XE.js} +7 -7
- package/dist/_node-chunks/{chunk-FPZB5OI7.js → chunk-TY2RQWQ7.js} +6 -6
- package/dist/_node-chunks/{chunk-JDXXX6LB.js → chunk-TZKXP2KS.js} +6 -6
- package/dist/_node-chunks/{chunk-TWI4GVH7.js → chunk-U2C4SK3A.js} +6 -6
- package/dist/_node-chunks/{chunk-CQKMLL5J.js → chunk-U3ZISTY3.js} +7 -7
- package/dist/_node-chunks/{chunk-XHL2LVBM.js → chunk-U736OTI6.js} +13 -13
- package/dist/_node-chunks/chunk-U7MSJ3A6.js +11 -0
- package/dist/_node-chunks/{chunk-TINO74G5.js → chunk-URBTH3SB.js} +6 -6
- package/dist/_node-chunks/{chunk-OWNFOGTA.js → chunk-US5P4ZWN.js} +7 -7
- package/dist/_node-chunks/{chunk-MA24JW6C.js → chunk-UWLMMCBV.js} +8 -8
- package/dist/_node-chunks/{chunk-OISX4AGQ.js → chunk-V3WMH7C4.js} +7 -7
- package/dist/_node-chunks/{chunk-XLP2ZKXV.js → chunk-W6ZSSLD7.js} +7 -7
- package/dist/_node-chunks/{chunk-UBOGWBEA.js → chunk-WALLDPES.js} +10 -10
- package/dist/_node-chunks/{chunk-UVINFLGY.js → chunk-WEQUS77K.js} +7 -7
- package/dist/_node-chunks/{chunk-ZWBCQ4MJ.js → chunk-WK5562IZ.js} +8 -8
- package/dist/_node-chunks/{chunk-NDWKJ4CL.js → chunk-XPSQ3CGZ.js} +36 -35
- package/dist/_node-chunks/{chunk-HMP2G23X.js → chunk-YM5GSNOW.js} +6 -6
- package/dist/_node-chunks/{chunk-3SDUYDXH.js → chunk-ZZJRM4VQ.js} +7 -7
- package/dist/_node-chunks/dist-PLKLDZ2U.js +16 -0
- package/dist/_node-chunks/{globby-OEMHPBFY.js → globby-7JAOKACZ.js} +10 -10
- package/dist/_node-chunks/{jiti-NFX6UU74.js → jiti-NTDVBCL3.js} +7 -7
- package/dist/_node-chunks/{lib-MDVARD7W.js → lib-GO6OUNCW.js} +7 -7
- package/dist/_node-chunks/{local-runtime-NTKIN2QT.js → local-runtime-75CNASLU.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-MWISDWDQ.js → mdx-plugin-CC54EOSI.js} +14 -14
- package/dist/_node-chunks/{monorepo-LIRFMQXE.js → monorepo-YQLAQDZJ.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-SNHO4JTH.js} +12 -12
- package/dist/_node-chunks/optimized-tests-L75JY37J.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-EKHIUAU2.js → pattern-copy-play-IMDJHSAD.js} +10 -10
- package/dist/_node-chunks/postinstallAddon-PSVXEIZJ.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-BUN3HUCO.js → rehype-external-links-EZO7JZTZ.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-PLADX223.js → rehype-slug-MECGIEGM.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-GBHW6KIQ.js → relaxed-limits-4UOQIT3N.js} +12 -12
- package/dist/_node-chunks/{run-KDTIZNSY.js → run-3YFS3YCP.js} +17 -17
- package/dist/_node-chunks/{run-NL66VTNR.js → run-LTXOQNKP.js} +13 -13
- package/dist/_node-chunks/session-id-PEDFG544.js +23 -0
- package/dist/_node-chunks/{setup-MGC7BQO6.js → setup-2CNFOQBB.js} +9 -9
- package/dist/_node-chunks/{vitest.config.4.template-JH2THZFG.js → vitest.config.4.template-MAPM7IJT.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 +18 -18
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +1 -1
- package/dist/addon-docs/blocks.js +46 -46
- package/dist/addon-docs/index.d.ts +19 -19
- package/dist/addon-docs/manager.js +5 -5
- 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 +2 -2
- 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 +12 -12
- 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 +223 -228
- 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 +49 -49
- 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-DpNYC-qi.js → globals-runtime-C9lYPobZ.js} +408 -429
- package/dist/manager/_manager-chunks/{globals-runtime-sGpNlIJ1.js → globals-runtime-CejY7Ueo.js} +125 -133
- package/dist/manager/_manager-chunks/{globals-runtime-qKvCZHFY.js → globals-runtime-DGHmnlvz.js} +38 -62
- package/dist/manager/_manager-chunks/{globals-runtime-Rp_zjGnh.js → globals-runtime-DH1Y5Kk_.js} +1 -1
- 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-D0UOWx0U.js → runtime-B6gJfDvO.js} +58 -58
- 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-BzYARKgi.js} +427 -425
- package/dist/manager/_manager-chunks/{runtime-BK0zF7FN.js → runtime-CaVSkVCV.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-BhkT2CXl.js → runtime-CcCplmkX.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.js +57 -62
- package/dist/react-native-ui/index.js +7 -7
- 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 +2 -2
- package/template/nextjs-vite/cli/js/Button.stories.js +6 -6
- package/template/nextjs-vite/cli/js/Configure.mdx +100 -100
- package/template/nextjs-vite/cli/js/Header.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/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/manager/_manager-chunks/runtime-Bly6WJLN.js +0 -998
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jhsfl9egb6l from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jhsfl9egb6l from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jhsfl9egb6l from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jhsfl9egb6l.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jhsfl9egb6l.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jhsfl9egb6l.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
|
kebabCase
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RGAJGDCU.js";
|
|
15
15
|
|
|
16
16
|
// src/shared/open-service/toolset-names.ts
|
|
17
17
|
function parseToolsetMethodId(methodId) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jhsfl9egb6l from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jhsfl9egb6l from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jhsfl9egb6l from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jhsfl9egb6l.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jhsfl9egb6l.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jhsfl9egb6l.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_jhsfl9egb6l from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jhsfl9egb6l from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jhsfl9egb6l from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jhsfl9egb6l.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jhsfl9egb6l.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jhsfl9egb6l.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_jhsfl9egb6l from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jhsfl9egb6l from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jhsfl9egb6l from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jhsfl9egb6l.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jhsfl9egb6l.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jhsfl9egb6l.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_jhsfl9egb6l from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jhsfl9egb6l from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jhsfl9egb6l from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jhsfl9egb6l.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jhsfl9egb6l.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jhsfl9egb6l.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
|
nanoid
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JD5NDU6F.js";
|
|
15
15
|
|
|
16
16
|
// src/telemetry/session-id.ts
|
|
17
17
|
import { cache } from "@aussieljk/forkbook/internal/common";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jhsfl9egb6l from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jhsfl9egb6l from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jhsfl9egb6l from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jhsfl9egb6l.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jhsfl9egb6l.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jhsfl9egb6l.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-OSE2FYQP.js";
|
|
15
15
|
import {
|
|
16
16
|
any
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TZKXP2KS.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-MAPM7IJT.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
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jhsfl9egb6l from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jhsfl9egb6l from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jhsfl9egb6l from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jhsfl9egb6l.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jhsfl9egb6l.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jhsfl9egb6l.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jhsfl9egb6l from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jhsfl9egb6l from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jhsfl9egb6l from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jhsfl9egb6l.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jhsfl9egb6l.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jhsfl9egb6l.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_jhsfl9egb6l from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jhsfl9egb6l from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jhsfl9egb6l from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jhsfl9egb6l.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jhsfl9egb6l.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jhsfl9egb6l.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
|
globalThis_,
|
|
14
14
|
noop
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YM5GSNOW.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
|
|
18
18
|
function getSymbols(object) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jhsfl9egb6l from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jhsfl9egb6l from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jhsfl9egb6l from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jhsfl9egb6l.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jhsfl9egb6l.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jhsfl9egb6l.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
Parser,
|
|
14
14
|
init_acorn,
|
|
15
15
|
require_acorn_jsx
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OMFATFOJ.js";
|
|
17
17
|
import {
|
|
18
18
|
__export,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CYPEPQSM.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/mdast-util-to-string/lib/index.js
|
|
23
23
|
var emptyOptions = {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jhsfl9egb6l from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jhsfl9egb6l from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jhsfl9egb6l from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jhsfl9egb6l.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jhsfl9egb6l.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jhsfl9egb6l.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
|
UniversalStoreFollowerTimeoutError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AKF2FB7S.js";
|
|
15
15
|
|
|
16
16
|
// src/shared/universal-store/index.ts
|
|
17
17
|
import { dedent } from "ts-dedent";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jhsfl9egb6l from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jhsfl9egb6l from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jhsfl9egb6l from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jhsfl9egb6l.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jhsfl9egb6l.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jhsfl9egb6l.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
|
slash
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OGQBLJGR.js";
|
|
15
15
|
|
|
16
16
|
// src/shared/open-service/services/module-graph/types.ts
|
|
17
17
|
import { posix, win32 } from "node:path";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jhsfl9egb6l from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jhsfl9egb6l from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jhsfl9egb6l from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jhsfl9egb6l.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jhsfl9egb6l.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jhsfl9egb6l.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
|
frameworkToRendererMap
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GTM64XRQ.js";
|
|
15
15
|
import {
|
|
16
16
|
isCsfFactoryPreview,
|
|
17
17
|
readConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LMMUUQFW.js";
|
|
19
19
|
import {
|
|
20
20
|
defaultConfigDir,
|
|
21
21
|
extractFrameworkPackageName,
|
|
22
22
|
findConfigFile
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-S73KB2DE.js";
|
|
24
24
|
import {
|
|
25
25
|
getService
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-HS3YKDIQ.js";
|
|
27
27
|
|
|
28
28
|
// src/cli/skills/addon-a11y.ts
|
|
29
29
|
async function isAddonA11yEnabled(options) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jhsfl9egb6l from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jhsfl9egb6l from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jhsfl9egb6l from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jhsfl9egb6l.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jhsfl9egb6l.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jhsfl9egb6l.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
|
up2 as up
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TZKXP2KS.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/empathic/package.mjs
|
|
17
17
|
import { env } from "node:process";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jhsfl9egb6l from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jhsfl9egb6l from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jhsfl9egb6l from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jhsfl9egb6l.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jhsfl9egb6l.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jhsfl9egb6l.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -35,8 +35,8 @@ var getNextjsVersion = () => require2("next/package.json").version, getViteVersi
|
|
|
35
35
|
// src/nextjs-vite-plugin/plugins/next-image/alias/index.tsx
|
|
36
36
|
import { createRequire as createRequire2 } from "node:module";
|
|
37
37
|
var require3 = createRequire2(import.meta.url), getEntryPoint = (subPath, env) => require3.resolve(`${VITEST_PLUGIN_NAME}/${env}/mocks/${subPath}`), getAlias = (env) => ({
|
|
38
|
-
"
|
|
39
|
-
"
|
|
38
|
+
"fb-original/default-loader": getEntryPoint("image-default-loader", env),
|
|
39
|
+
"fb-original/image-context": getEntryPoint("image-context", env)
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
// src/nextjs-vite-plugin/plugins/next-mocks/plugin.ts
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jhsfl9egb6l from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jhsfl9egb6l from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jhsfl9egb6l from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jhsfl9egb6l.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jhsfl9egb6l.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jhsfl9egb6l.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
|
postInstall
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-U736OTI6.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
RN_FORKBOOK_DIR,
|
|
17
17
|
applyPreviewImportsMap
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NF3GSBMC.js";
|
|
19
19
|
import {
|
|
20
20
|
any,
|
|
21
21
|
up2 as up
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TZKXP2KS.js";
|
|
23
23
|
import {
|
|
24
24
|
invariant
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4ZHC3GG3.js";
|
|
26
26
|
import {
|
|
27
27
|
resolvePackageDir
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-J4WM6PLB.js";
|
|
29
29
|
|
|
30
30
|
// src/create/initiate.ts
|
|
31
31
|
import { resolve as resolve3 } from "node:path";
|
|
@@ -1103,7 +1103,7 @@ import { CLI_COLORS as CLI_COLORS2, logger as logger9, prompt as prompt6 } from
|
|
|
1103
1103
|
import { ErrorCollector } from "@aussieljk/forkbook/internal/telemetry";
|
|
1104
1104
|
import { dedent as dedent7 } from "ts-dedent";
|
|
1105
1105
|
var ADDON_INSTALLATION_INSTRUCTIONS = {
|
|
1106
|
-
"@aussieljk/forkbook/addon-vitest": "https://
|
|
1106
|
+
"@aussieljk/forkbook/addon-vitest": "https://forkbook.ljk.dev/docs/writing-tests/integrations/vitest-addon#manual-setup-advanced"
|
|
1107
1107
|
}, AddonConfigurationCommand = class {
|
|
1108
1108
|
constructor(packageManager, commandOptions, addonVitestService = new AddonVitestService2(packageManager), telemetryService = new TelemetryService()) {
|
|
1109
1109
|
this.packageManager = packageManager;
|
|
@@ -1153,7 +1153,7 @@ var ADDON_INSTALLATION_INSTRUCTIONS = {
|
|
|
1153
1153
|
}
|
|
1154
1154
|
/** Configure test addons */
|
|
1155
1155
|
async configureAddons(configDir, addons) {
|
|
1156
|
-
let { postinstallAddon } = await import("./postinstallAddon-
|
|
1156
|
+
let { postinstallAddon } = await import("./postinstallAddon-PSVXEIZJ.js"), task = prompt6.taskLog({
|
|
1157
1157
|
id: "configure-addons",
|
|
1158
1158
|
title: "Configuring addons..."
|
|
1159
1159
|
}), addonResults = /* @__PURE__ */ new Map();
|
|
@@ -1309,9 +1309,9 @@ ${linesToAdd}
|
|
|
1309
1309
|
}
|
|
1310
1310
|
printNextSteps(storybookCommand) {
|
|
1311
1311
|
storybookCommand && logger11.log(`To run Forkbook, run ${CLI_COLORS3.cta(storybookCommand)}. CTRL+C to stop.`), this.options.showAiInstructions ? logger11.log(dedent8`
|
|
1312
|
-
Official documentation reference: ${CLI_COLORS3.cta("https://
|
|
1312
|
+
Official documentation reference: ${CLI_COLORS3.cta("https://forkbook.ljk.dev/llms.txt")}
|
|
1313
1313
|
`) : logger11.log(dedent8`
|
|
1314
|
-
Want to learn more about Forkbook? ${CLI_COLORS3.cta("https://
|
|
1314
|
+
Want to learn more about Forkbook? ${CLI_COLORS3.cta("https://forkbook.ljk.dev")}
|
|
1315
1315
|
Having trouble or want to chat? ${CLI_COLORS3.cta("https://discord.gg/storybook/")}
|
|
1316
1316
|
`), this.options.showAiInstructions && logger11.step(dedent8`To finalize setting up with AI, paste this prompt to your AI agent:
|
|
1317
1317
|
|
|
@@ -1509,7 +1509,7 @@ var ENTRYPOINT_TEMPLATE_DIR = join3(
|
|
|
1509
1509
|
templateVariant = "default",
|
|
1510
1510
|
cwd = process.cwd()
|
|
1511
1511
|
}) => {
|
|
1512
|
-
let extension = getEntrypointExtension(language), templatePath = getEntrypointTemplatePath(templateVariant), targetDir = path.join(cwd,
|
|
1512
|
+
let extension = getEntrypointExtension(language), templatePath = getEntrypointTemplatePath(templateVariant), targetDir = path.join(cwd, RN_FORKBOOK_DIR), targetPath = path.join(targetDir, `index.${extension}`), templateContents = await readFile(templatePath, "utf-8");
|
|
1513
1513
|
return await mkdir2(targetDir, { recursive: !0 }), await writeFile2(targetPath, templateContents, "utf-8"), {
|
|
1514
1514
|
targetPath,
|
|
1515
1515
|
extension
|
|
@@ -1517,12 +1517,9 @@ var ENTRYPOINT_TEMPLATE_DIR = join3(
|
|
|
1517
1517
|
};
|
|
1518
1518
|
|
|
1519
1519
|
// src/create/generators/REACT_NATIVE/generateScripts.ts
|
|
1520
|
-
var
|
|
1520
|
+
var FORKBOOK_ENV_ASSIGNMENT = "FORKBOOK_ENABLED=true", FORKBOOK_ENV_PREFIX = `cross-env ${FORKBOOK_ENV_ASSIGNMENT}`, FORKBOOK_ENV_PATTERN = /(?:^|\s)FORKBOOK_ENABLED=/, CROSS_ENV_PREFIX_PATTERN = /^(cross-env(?:-shell)?\s+)/, withStorybookEnv = (scriptValue) => {
|
|
1521
1521
|
let normalizedScriptValue = scriptValue.trim();
|
|
1522
|
-
return
|
|
1523
|
-
CROSS_ENV_PREFIX_PATTERN,
|
|
1524
|
-
`$1${STORYBOOK_ENV_ASSIGNMENT} `
|
|
1525
|
-
) : `${STORYBOOK_ENV_PREFIX} ${normalizedScriptValue}`.trim();
|
|
1522
|
+
return FORKBOOK_ENV_PATTERN.test(normalizedScriptValue) ? normalizedScriptValue : CROSS_ENV_PREFIX_PATTERN.test(normalizedScriptValue) ? normalizedScriptValue.replace(CROSS_ENV_PREFIX_PATTERN, `$1${FORKBOOK_ENV_ASSIGNMENT} `) : `${FORKBOOK_ENV_PREFIX} ${normalizedScriptValue}`.trim();
|
|
1526
1523
|
}, deriveStorybookPlatformScripts = (scripts) => {
|
|
1527
1524
|
let scriptsToAdd = {}, missingBaseScripts = [], iosScript = typeof scripts?.ios == "string" ? scripts.ios.trim() : "";
|
|
1528
1525
|
iosScript ? scriptsToAdd["storybook:ios"] = withStorybookEnv(iosScript) : missingBaseScripts.push("ios");
|
|
@@ -1538,7 +1535,11 @@ import { logger as logger12, prompt as prompt8 } from "@aussieljk/forkbook/inter
|
|
|
1538
1535
|
var METRO_CONFIG_CANDIDATES = ["metro.config.ts", "metro.config.js", "metro.config.cjs"], METRO_SETUP_DOCS_LINK = "https://storybookjs.github.io/react-native/docs/intro/configuration/metro-configuration", METRO_FALLBACK_COMMENT_MARKER = "storybook-react-native-metro-codemod-fallback", EXPO_CREATE_METRO_COMMAND = {
|
|
1539
1536
|
command: "expo",
|
|
1540
1537
|
args: ["customize", "metro.config.js"]
|
|
1541
|
-
},
|
|
1538
|
+
}, FORKBOOK_PACKAGE_PATTERNS = [
|
|
1539
|
+
"'@aussieljk/forkbook",
|
|
1540
|
+
// Forkbook and its sub-paths (single-quoted)
|
|
1541
|
+
'"@aussieljk/forkbook',
|
|
1542
|
+
// Forkbook and its sub-paths (double-quoted)
|
|
1542
1543
|
"'@storybook/",
|
|
1543
1544
|
// @storybook/* scoped packages (single-quoted)
|
|
1544
1545
|
'"@storybook/',
|
|
@@ -1551,7 +1552,7 @@ var METRO_CONFIG_CANDIDATES = ["metro.config.ts", "metro.config.js", "metro.conf
|
|
|
1551
1552
|
// storybook/* sub-path (single-quoted)
|
|
1552
1553
|
'"storybook/'
|
|
1553
1554
|
// storybook/* sub-path (double-quoted)
|
|
1554
|
-
], hasStorybookPackage = (value) => value === "storybook" || value.startsWith("@storybook/") || value.startsWith("storybook/"), isAstNode = (value) => !!value && typeof value == "object" && "type" in value, getRequirePackageFromCallExpression = (callExpression) => {
|
|
1555
|
+
], hasStorybookPackage = (value) => value === "@aussieljk/forkbook" || value.startsWith("@aussieljk/forkbook/") || value === "storybook" || value.startsWith("@storybook/") || value.startsWith("storybook/"), isAstNode = (value) => !!value && typeof value == "object" && "type" in value, getRequirePackageFromCallExpression = (callExpression) => {
|
|
1555
1556
|
if (t.isIdentifier(callExpression.callee, { name: "require" })) {
|
|
1556
1557
|
let [firstArgument] = callExpression.arguments;
|
|
1557
1558
|
return t.isStringLiteral(firstArgument) ? firstArgument.value : null;
|
|
@@ -1601,7 +1602,7 @@ var METRO_CONFIG_CANDIDATES = ["metro.config.ts", "metro.config.js", "metro.conf
|
|
|
1601
1602
|
if (t.isImportDeclaration(statement) && hasStorybookPackage(statement.source.value) || t.isExportNamedDeclaration(statement) && statement.source && hasStorybookPackage(statement.source.value) || statementContainsStorybookCall(statement))
|
|
1602
1603
|
return !0;
|
|
1603
1604
|
} catch {
|
|
1604
|
-
return
|
|
1605
|
+
return FORKBOOK_PACKAGE_PATTERNS.some((pattern) => source.includes(pattern));
|
|
1605
1606
|
}
|
|
1606
1607
|
return !1;
|
|
1607
1608
|
}, hasWithStorybookBinding = (program) => {
|
|
@@ -1670,7 +1671,7 @@ var METRO_CONFIG_CANDIDATES = ["metro.config.ts", "metro.config.js", "metro.conf
|
|
|
1670
1671
|
nodeAtInsert && shiftFileLeadingComments(nodeAtInsert, requireDeclaration), program.body.splice(insertAt, 0, requireDeclaration);
|
|
1671
1672
|
}, prependMetroFallbackComment = (source) => source.includes(METRO_FALLBACK_COMMENT_MARKER) ? source : `/**
|
|
1672
1673
|
* ${METRO_FALLBACK_COMMENT_MARKER}
|
|
1673
|
-
*
|
|
1674
|
+
* Forkbook could not automatically update this Metro config file.
|
|
1674
1675
|
* Please follow the manual setup instructions:
|
|
1675
1676
|
* ${METRO_SETUP_DOCS_LINK}
|
|
1676
1677
|
*/
|
|
@@ -1765,7 +1766,7 @@ ${source}`, transformMetroConfigSource = (source, filePath) => {
|
|
|
1765
1766
|
)}.`
|
|
1766
1767
|
), candidates[0];
|
|
1767
1768
|
let selected = await prompt8.select({
|
|
1768
|
-
message: "Multiple Metro config files found. Which one should
|
|
1769
|
+
message: "Multiple Metro config files found. Which one should Forkbook update?",
|
|
1769
1770
|
options: candidates.map((candidate) => ({
|
|
1770
1771
|
label: path2.relative(process.cwd(), candidate),
|
|
1771
1772
|
value: candidate
|
|
@@ -1797,7 +1798,7 @@ ${source}`, transformMetroConfigSource = (source, filePath) => {
|
|
|
1797
1798
|
return {
|
|
1798
1799
|
status: "skipped-existing-storybook-import",
|
|
1799
1800
|
filePath,
|
|
1800
|
-
notes: ["
|
|
1801
|
+
notes: ["Forkbook import detected in Metro config; leaving file unchanged."]
|
|
1801
1802
|
};
|
|
1802
1803
|
try {
|
|
1803
1804
|
let transformResult = transformMetroConfigSource(source, filePath);
|
|
@@ -1893,13 +1894,13 @@ var lastMetroCodemodResult, lastScriptDerivationResult, detectReactNativeEntrypo
|
|
|
1893
1894
|
...scriptDerivationResult.scriptsToAdd
|
|
1894
1895
|
}), context.framework == null) {
|
|
1895
1896
|
let { packageJson, operationDir } = packageManager.primaryPackageJson;
|
|
1896
|
-
applyPreviewImportsMap(packageJson, join4(
|
|
1897
|
+
applyPreviewImportsMap(packageJson, join4(RN_FORKBOOK_DIR, "preview.tsx"), operationDir) && packageManager.writePackageJson(packageJson, operationDir);
|
|
1897
1898
|
}
|
|
1898
1899
|
await copyTemplateFiles2({
|
|
1899
1900
|
packageManager,
|
|
1900
1901
|
templateLocation: SupportedRenderer4.REACT_NATIVE,
|
|
1901
1902
|
language: SupportedLanguage6.TYPESCRIPT,
|
|
1902
|
-
destination:
|
|
1903
|
+
destination: RN_FORKBOOK_DIR,
|
|
1903
1904
|
features: context.features
|
|
1904
1905
|
}), await generateReactNativeEntrypoint({ language: context.language }), lastMetroCodemodResult = await runMetroCodemodOrFallback({
|
|
1905
1906
|
packageManager,
|
|
@@ -1911,7 +1912,7 @@ var lastMetroCodemodResult, lastScriptDerivationResult, detectReactNativeEntrypo
|
|
|
1911
1912
|
templateVariant
|
|
1912
1913
|
}), {
|
|
1913
1914
|
// Signal to skip baseGenerator by returning minimal config
|
|
1914
|
-
storybookConfigFolder:
|
|
1915
|
+
storybookConfigFolder: RN_FORKBOOK_DIR,
|
|
1915
1916
|
skipGenerator: !0,
|
|
1916
1917
|
storybookCommand: null,
|
|
1917
1918
|
shouldRunDev: !1
|
|
@@ -1928,14 +1929,14 @@ var lastMetroCodemodResult, lastScriptDerivationResult, detectReactNativeEntrypo
|
|
|
1928
1929
|
`);
|
|
1929
1930
|
})(), scriptWarningSummary = (() => {
|
|
1930
1931
|
let missing = lastScriptDerivationResult?.missingBaseScripts ?? [];
|
|
1931
|
-
return missing.length === 0 ? null : `Could not infer ${missing.join(", ")} app scripts from package.json. To launch
|
|
1932
|
-
})(), metroCodemodSummary = lastMetroCodemodResult ? lastMetroCodemodResult.status === "updated" ? "Metro config was updated automatically with withStorybook(...)." : lastMetroCodemodResult.status === "already-configured" ? "Metro config already appears to be configured for
|
|
1932
|
+
return missing.length === 0 ? null : `Could not infer ${missing.join(", ")} app scripts from package.json. To launch Forkbook manually, set FORKBOOK_ENABLED=true when running your app scripts.`;
|
|
1933
|
+
})(), metroCodemodSummary = lastMetroCodemodResult ? lastMetroCodemodResult.status === "updated" ? "Metro config was updated automatically with withStorybook(...)." : lastMetroCodemodResult.status === "already-configured" ? "Metro config already appears to be configured for Forkbook." : lastMetroCodemodResult.status === "skipped-existing-storybook-import" ? "Metro config already contains Forkbook imports, so auto-modification was skipped." : lastMetroCodemodResult.status === "fallback-commented" ? "Metro config could not be transformed automatically; guidance was added to your Metro config file." : "No Metro config file was selected; please update Metro manually." : "Metro config could not be evaluated automatically.", metroStatus = lastMetroCodemodResult?.status, showWithStorybookManualSnippet = !lastMetroCodemodResult || metroStatus === "fallback-commented" || metroStatus === "skipped-missing-file", mayNeedFollowUp = !!scriptWarningSummary || showWithStorybookManualSnippet;
|
|
1933
1934
|
logger13.log(dedent9`
|
|
1934
|
-
${CLI_COLORS4.success("
|
|
1935
|
+
${CLI_COLORS4.success("Forkbook for React Native is set up.")}
|
|
1935
1936
|
|
|
1936
1937
|
${mayNeedFollowUp ? `${CLI_COLORS4.info("If anything below could not be applied automatically, follow the guidance or the docs link.")}
|
|
1937
1938
|
` : ""}
|
|
1938
|
-
|
|
1939
|
+
Forkbook run scripts:
|
|
1939
1940
|
|
|
1940
1941
|
${CLI_COLORS4.cta(" " + platformRunGuidance + " ")}
|
|
1941
1942
|
|