@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,31 +1,31 @@
|
|
|
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
|
postInstall
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-B3LK7C7B.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
RN_FORKBOOK_DIR,
|
|
17
17
|
applyPreviewImportsMap
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-A4YELYR3.js";
|
|
19
19
|
import {
|
|
20
20
|
any,
|
|
21
21
|
up2 as up
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XBXGLD3K.js";
|
|
23
23
|
import {
|
|
24
24
|
invariant
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-FJDJE7XC.js";
|
|
26
26
|
import {
|
|
27
27
|
resolvePackageDir
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-OS5LQEC6.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-ROH2TBJX.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
|
|
|
@@ -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
|
kebabCase
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TLVEPWBN.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_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
|
formatAttachFallback
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HP5UY6OY.js";
|
|
15
15
|
import {
|
|
16
16
|
AttachUnavailableError,
|
|
17
17
|
EnvironmentMismatchError,
|
|
@@ -20,22 +20,22 @@ import {
|
|
|
20
20
|
attachGateReasonFromError,
|
|
21
21
|
isAttachGateError,
|
|
22
22
|
projectPathsEqual
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-A2UMIN5B.js";
|
|
24
24
|
import {
|
|
25
25
|
invokeToolsetMethod,
|
|
26
26
|
resolveToolsetDescription
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-YGXJOSRU.js";
|
|
28
28
|
import {
|
|
29
29
|
parseToolsetMethodId,
|
|
30
30
|
toCliMethodName
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-UXW4I2CN.js";
|
|
32
32
|
import {
|
|
33
33
|
deserializeError
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UMZSNFWM.js";
|
|
35
35
|
import {
|
|
36
36
|
StorybookDevServerDisconnectedError,
|
|
37
37
|
formatIssues
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-BOUA7OB7.js";
|
|
39
39
|
|
|
40
40
|
// src/cli/tools/sdk/child-protocol.ts
|
|
41
41
|
function isChildMessage(value) {
|
|
@@ -965,7 +965,7 @@ async function createTools(options = {}, deps = {}) {
|
|
|
965
965
|
}
|
|
966
966
|
async function createAttachedTools(options, deps, clientInfo, requestedMode) {
|
|
967
967
|
process.env.FORKBOOK_ATTACHED_TOOLS = "true";
|
|
968
|
-
let { bootstrapAttachedRuntime } = await import("./attached-runtime-
|
|
968
|
+
let { bootstrapAttachedRuntime } = await import("./attached-runtime-CYMSKF3A.js"), autoSpawn = process.env.FORKBOOK_TOOLS_CHILD_HOST === "true" ? !1 : options.autoSpawn ?? !0, attached = await (deps.attach ?? ((target) => bootstrapAttachedRuntime({ ...target, autoSpawn })))({
|
|
969
969
|
cwd: options.cwd,
|
|
970
970
|
configDir: options.configDir,
|
|
971
971
|
port: options.port
|
|
@@ -1030,7 +1030,7 @@ async function createLocalTools(options, deps, clientInfo, requestedMode, fallba
|
|
|
1030
1030
|
});
|
|
1031
1031
|
return fallback ? { ...child, ...fallback } : child;
|
|
1032
1032
|
}
|
|
1033
|
-
let { bootstrapToolsRuntime } = await import("./local-runtime-
|
|
1033
|
+
let { bootstrapToolsRuntime } = await import("./local-runtime-KTI3DH6X.js"), runtime;
|
|
1034
1034
|
try {
|
|
1035
1035
|
runtime = await (deps.bootstrap ?? bootstrapToolsRuntime)({
|
|
1036
1036
|
cwd,
|
|
@@ -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,21 +1,21 @@
|
|
|
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_lib
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-U5QMVW3H.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__require
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WS367FSJ.js";
|
|
19
19
|
|
|
20
20
|
// ../../node_modules/tsconfig-paths/lib/filesystem.js
|
|
21
21
|
var require_filesystem = __commonJS({
|
|
@@ -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,63 +12,63 @@ var require = CJS_COMPAT_NODE_MODULE_ro17f80mg6k.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
UniversalStore,
|
|
14
14
|
instances
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KXDJ77EW.js";
|
|
16
16
|
import {
|
|
17
17
|
require_build
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2QWFS23O.js";
|
|
19
19
|
import {
|
|
20
20
|
isI18nPackage,
|
|
21
21
|
isRouterPackage,
|
|
22
22
|
isStateManagementPackage,
|
|
23
23
|
isStylingPackage
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QU5ANYM7.js";
|
|
25
25
|
import {
|
|
26
26
|
leven
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-7JA2DMCJ.js";
|
|
28
28
|
import {
|
|
29
29
|
defineToolset
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-YGXJOSRU.js";
|
|
31
31
|
import {
|
|
32
32
|
getToolName,
|
|
33
33
|
toMcpToolName
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UXW4I2CN.js";
|
|
35
35
|
import {
|
|
36
36
|
execa,
|
|
37
37
|
getComponentIdFromEntry,
|
|
38
38
|
optionalEnvToBoolean,
|
|
39
39
|
selectComponentEntriesByComponentId
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-EGS2SAD2.js";
|
|
41
41
|
import {
|
|
42
42
|
getService as getService2,
|
|
43
43
|
registerService
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-QDLR4JF5.js";
|
|
45
45
|
import {
|
|
46
46
|
getRegisteredServices,
|
|
47
47
|
getService
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-NHIRHARE.js";
|
|
49
49
|
import {
|
|
50
50
|
isEqual,
|
|
51
51
|
isPlainObject
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-FAZ3MUOI.js";
|
|
53
53
|
import {
|
|
54
54
|
Tag
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-STRSG3GT.js";
|
|
56
56
|
import {
|
|
57
57
|
CHANGE_DETECTION_STATUS_TYPE_ID,
|
|
58
58
|
UNIVERSAL_STATUS_STORE_OPTIONS,
|
|
59
59
|
createStatusStore
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-74IEHSIR.js";
|
|
61
61
|
import {
|
|
62
62
|
invariant
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-FJDJE7XC.js";
|
|
64
64
|
import {
|
|
65
65
|
importModule,
|
|
66
66
|
resolveModulePath,
|
|
67
67
|
resolvePackageDir
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-OS5LQEC6.js";
|
|
69
69
|
import {
|
|
70
70
|
jsTsSourceExtensions
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-5ZLOPVTG.js";
|
|
72
72
|
import {
|
|
73
73
|
OpenServiceDocgenMissingComponentError,
|
|
74
74
|
OpenServiceMissingOriginError,
|
|
@@ -77,22 +77,22 @@ import {
|
|
|
77
77
|
OpenServiceUnknownStoryIdsError,
|
|
78
78
|
StorybookError,
|
|
79
79
|
describeUnknownStoryIds
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-BOUA7OB7.js";
|
|
81
81
|
import {
|
|
82
82
|
require_picocolors
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-ESZVID7Q.js";
|
|
84
84
|
import {
|
|
85
85
|
errorToErrorLike,
|
|
86
86
|
reverseIndexToStoriesByFile,
|
|
87
87
|
toStoryIndexPath
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-JEEXR245.js";
|
|
89
89
|
import {
|
|
90
90
|
glob
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-K3I3G4VL.js";
|
|
92
92
|
import {
|
|
93
93
|
__commonJS,
|
|
94
94
|
__toESM
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-WS367FSJ.js";
|
|
96
96
|
|
|
97
97
|
// ../../node_modules/map-or-similar/src/similar.js
|
|
98
98
|
var require_similar = __commonJS({
|
|
@@ -263,7 +263,7 @@ async function useStatics(app, options) {
|
|
|
263
263
|
}), staticDirs.map((dir) => {
|
|
264
264
|
try {
|
|
265
265
|
let { staticDir, staticPath, targetEndpoint } = mapStaticDir(dir, options.configDir);
|
|
266
|
-
if (!targetEndpoint.startsWith("/
|
|
266
|
+
if (!targetEndpoint.startsWith("/fb-") && !staticDir.startsWith(cacheDir)) {
|
|
267
267
|
let relativeStaticDir = relative(getProjectRoot(), staticDir);
|
|
268
268
|
logger.debug(
|
|
269
269
|
`Serving static files from ${CLI_COLORS.info(relativeStaticDir)} at ${CLI_COLORS.info(targetEndpoint)}`
|
|
@@ -308,7 +308,7 @@ import { isAbsolute as isAbsolute2, join as join2 } from "node:path";
|
|
|
308
308
|
import { pathToFileURL } from "node:url";
|
|
309
309
|
import { MissingBuilderError } from "@aussieljk/forkbook/internal/server-errors";
|
|
310
310
|
async function getManagerBuilder() {
|
|
311
|
-
return await import("./builder-manager-
|
|
311
|
+
return await import("./builder-manager-RMLSIO45.js");
|
|
312
312
|
}
|
|
313
313
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
314
314
|
let packageJson = join2(resolvedPreviewBuilder, "package.json");
|
|
@@ -2664,7 +2664,7 @@ var DEFAULT_EXTENSIONS = [".tsx", ".ts", ".d.ts", ".jsx", ".js", ".mjs", ".cjs",
|
|
|
2664
2664
|
alias,
|
|
2665
2665
|
conditionNames,
|
|
2666
2666
|
extensions: DEFAULT_EXTENSIONS
|
|
2667
|
-
}), this.projectRootEntry = join7(config.projectRoot, "
|
|
2667
|
+
}), this.projectRootEntry = join7(config.projectRoot, "__fb_resolver_root__.ts");
|
|
2668
2668
|
}
|
|
2669
2669
|
/**
|
|
2670
2670
|
* Resolves `specifier` from the file at `from` (must be an absolute path).
|
|
@@ -5955,7 +5955,7 @@ var splitPathRegex = /\/([^/]+)\/(?:(.*)_)?([^/]+)?/, parsePath = (0, import_mem
|
|
|
5955
5955
|
let object8 = Object.entries(update).reduce((acc, [key, value]) => validateArgs(key, value) ? Object.assign(acc, { [key]: value }) : (once2.warn(dedent3`
|
|
5956
5956
|
Omitted potentially unsafe URL args.
|
|
5957
5957
|
|
|
5958
|
-
More info: https://
|
|
5958
|
+
More info: https://forkbook.ljk.dev/docs/writing-stories/args#setting-args-through-the-url
|
|
5959
5959
|
`), acc), {});
|
|
5960
5960
|
return stringify(encodeSpecialValues(object8), {
|
|
5961
5961
|
delimiter: ";",
|
|
@@ -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,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
|