@aussieljk/forkbook 0.0.1-1 → 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-OEKZ7XSW.js → Color-PSH7RHPM.js} +5 -5
- package/dist/_browser-chunks/{WithTooltip-GZSSFOG3.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-73OX2G56.js → chunk-DCZTO4JJ.js} +68 -76
- package/dist/_browser-chunks/{chunk-PP4R7USA.js → chunk-DS2WQZGO.js} +222 -433
- package/dist/_browser-chunks/{chunk-FJGWSWL5.js → chunk-DYNTDJ3O.js} +3 -3
- package/dist/_browser-chunks/{chunk-VVWPND3J.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-O4YTVUKE.js → attached-runtime-KZYKMMDD.js} +29 -29
- package/dist/_node-chunks/{builder-manager-FPV2L36T.js → builder-manager-337QQEZ6.js} +32 -32
- package/dist/_node-chunks/{chunk-BE6ULVPN.js → chunk-224FM5GP.js} +8 -8
- package/dist/_node-chunks/chunk-22OJYYPD.js +18 -0
- package/dist/_node-chunks/{chunk-JEC2OK5B.js → chunk-26MVQWHR.js} +7 -7
- package/dist/_node-chunks/{chunk-NIHZECYO.js → chunk-27HJO5MV.js} +6 -6
- package/dist/_node-chunks/{chunk-I2ANCID7.js → chunk-27KGUS37.js} +25 -25
- package/dist/_node-chunks/{chunk-IZISFDKM.js → chunk-2D7P5VUJ.js} +30 -30
- package/dist/_node-chunks/{chunk-KGOAOPKR.js → chunk-2OI3EZE2.js} +6 -6
- package/dist/_node-chunks/{chunk-7LLQDMVS.js → chunk-34YSGPI4.js} +6 -6
- package/dist/_node-chunks/{chunk-4TV3Z3S3.js → chunk-4RSOZZZV.js} +6 -6
- package/dist/_node-chunks/{chunk-VQEQ7ZLS.js → chunk-4ZGNL77M.js} +7 -7
- package/dist/_node-chunks/{chunk-7TSL7D5D.js → chunk-4ZHC3GG3.js} +6 -6
- package/dist/_node-chunks/{chunk-CDRLLNRQ.js → chunk-6RQIIUDQ.js} +9 -9
- package/dist/_node-chunks/{chunk-6APBQVEX.js → chunk-7QGX7Z6B.js} +7 -7
- package/dist/_node-chunks/{chunk-IJL5JOLL.js → chunk-7VZYI3NI.js} +7 -7
- package/dist/_node-chunks/{chunk-2XDUXZGI.js → chunk-A6EXJJZU.js} +8 -8
- package/dist/_node-chunks/{chunk-HKQEE62W.js → chunk-AJ3YH5VH.js} +8 -8
- package/dist/_node-chunks/{chunk-RHG33T7C.js → chunk-AKBNFQKK.js} +8 -8
- package/dist/_node-chunks/{chunk-CWD5A6NI.js → chunk-AKF2FB7S.js} +7 -7
- package/dist/_node-chunks/{chunk-RJXEPYEN.js → chunk-ANOZDFMW.js} +13 -13
- package/dist/_node-chunks/{chunk-YWMICX2T.js → chunk-APM5SEWT.js} +12 -12
- package/dist/_node-chunks/{chunk-R7CY5LX6.js → chunk-AQSROIPB.js} +6 -6
- package/dist/_node-chunks/{chunk-MDKFZRYG.js → chunk-CC4WWASR.js} +8 -8
- package/dist/_node-chunks/{chunk-JE6JEGXA.js → chunk-CE66ARL5.js} +9 -9
- package/dist/_node-chunks/{chunk-GP5YLBNS.js → chunk-CHOJKLHP.js} +8 -8
- package/dist/_node-chunks/{chunk-5BTU7UZ5.js → chunk-COJPWKDE.js} +7 -7
- package/dist/_node-chunks/{chunk-GT5EHMNM.js → chunk-CVQGQ2MI.js} +7 -7
- package/dist/_node-chunks/{chunk-NKAUZU4C.js → chunk-CYPEPQSM.js} +6 -6
- package/dist/_node-chunks/{chunk-Y2GH4XO7.js → chunk-D44WSSIU.js} +7 -7
- package/dist/_node-chunks/{chunk-RQVK2TOI.js → chunk-DG3DK4ZH.js} +10 -10
- package/dist/_node-chunks/{chunk-QVMUIU7S.js → chunk-DI76R3EI.js} +6 -6
- package/dist/_node-chunks/{chunk-ILWHW4HU.js → chunk-DSHYY7ZB.js} +14 -14
- package/dist/_node-chunks/{chunk-JVQYQTTM.js → chunk-EJ6XL2KN.js} +19 -40
- package/dist/_node-chunks/{chunk-AWJOXJAZ.js → chunk-EM3MZKXS.js} +7 -7
- package/dist/_node-chunks/{chunk-U4GKV7GZ.js → chunk-EYKTEH7V.js} +10 -10
- package/dist/_node-chunks/{chunk-5J3O7EDY.js → chunk-GTM64XRQ.js} +6 -6
- package/dist/_node-chunks/{chunk-4PK3LUHM.js → chunk-GURMTBQH.js} +7 -7
- package/dist/_node-chunks/{chunk-MJ2UD7FU.js → chunk-HC2QE2VI.js} +6 -6
- package/dist/_node-chunks/{chunk-TB6Y6NSL.js → chunk-HG3U5FMZ.js} +8 -8
- package/dist/_node-chunks/{chunk-FUYZNTIS.js → chunk-HLT3PHJN.js} +6 -6
- package/dist/_node-chunks/{chunk-PBMWZVLD.js → chunk-HNCTPOQK.js} +6 -6
- package/dist/_node-chunks/{chunk-ICADUNQM.js → chunk-HOROZKYE.js} +6 -6
- package/dist/_node-chunks/{chunk-ULW4SLMN.js → chunk-HS3YKDIQ.js} +10 -10
- package/dist/_node-chunks/{chunk-RJUHZH32.js → chunk-I7BJLOF5.js} +6 -6
- package/dist/_node-chunks/{chunk-VXDWOVWD.js → chunk-IGAYUOMN.js} +10 -10
- package/dist/_node-chunks/{chunk-ILVD64RB.js → chunk-J4WM6PLB.js} +8 -8
- package/dist/_node-chunks/{chunk-G6PUNHCI.js → chunk-JD5NDU6F.js} +6 -6
- package/dist/_node-chunks/{chunk-356LV3NX.js → chunk-JQDKICKC.js} +6 -6
- package/dist/_node-chunks/{chunk-AWXGCPW6.js → chunk-KGJPHNM7.js} +6 -6
- package/dist/_node-chunks/{chunk-A724RK5H.js → chunk-KSOJ65P3.js} +6 -6
- package/dist/_node-chunks/{chunk-3CLITGI2.js → chunk-LEUTSNSA.js} +6 -6
- package/dist/_node-chunks/{chunk-R5FYRP6X.js → chunk-LJ5HNC36.js} +7 -7
- package/dist/_node-chunks/{chunk-ASJFOW6O.js → chunk-LMMUUQFW.js} +8 -8
- package/dist/_node-chunks/{chunk-SVZ6Q3CS.js → chunk-LNOZLCJT.js} +6 -6
- package/dist/_node-chunks/{chunk-ZMEGPR47.js → chunk-MCPP73WS.js} +6 -6
- package/dist/_node-chunks/{chunk-5WHA37KG.js → chunk-MMMIVLRV.js} +37 -37
- package/dist/_node-chunks/{chunk-CSXS6LVI.js → chunk-MY7DHPSK.js} +6 -6
- package/dist/_node-chunks/chunk-MZ4CONV4.js +20 -0
- package/dist/_node-chunks/{chunk-HKUNJELN.js → chunk-N4DKR3HN.js} +8 -8
- package/dist/_node-chunks/{chunk-XURIZ7IC.js → chunk-NF3GSBMC.js} +8 -8
- package/dist/_node-chunks/{chunk-QMU5ODXZ.js → chunk-OA6BPTG5.js} +7 -7
- package/dist/_node-chunks/{chunk-2BJIHWOK.js → chunk-OGQBLJGR.js} +6 -6
- package/dist/_node-chunks/{chunk-DWE36J35.js → chunk-OMFATFOJ.js} +7 -7
- package/dist/_node-chunks/{chunk-AANHLH5M.js → chunk-OSE2FYQP.js} +6 -6
- package/dist/_node-chunks/{chunk-X6OWHTYE.js → chunk-PRXD2EYH.js} +6 -6
- package/dist/_node-chunks/{chunk-5J3BMBMY.js → chunk-PT7NX73C.js} +6 -6
- package/dist/_node-chunks/{chunk-URRTQ2QM.js → chunk-QDZFSC26.js} +6 -6
- package/dist/_node-chunks/{chunk-GVSFRNWZ.js → chunk-QTRP6K2A.js} +6 -6
- package/dist/_node-chunks/{chunk-PEIAGMSR.js → chunk-R2ZIMVYL.js} +6 -6
- package/dist/_node-chunks/{chunk-2UG3IYCC.js → chunk-RGAJGDCU.js} +6 -6
- package/dist/_node-chunks/{chunk-JBCKN6P4.js → chunk-RKUAUXH6.js} +6 -6
- package/dist/_node-chunks/{chunk-ZBAIFZNB.js → chunk-RNZL535Q.js} +13 -13
- package/dist/_node-chunks/{chunk-5GN5N22E.js → chunk-S73KB2DE.js} +24 -24
- package/dist/_node-chunks/{chunk-CYPPELO4.js → chunk-SFPEJYWG.js} +22 -32
- package/dist/_node-chunks/{chunk-Y2DEKWVE.js → chunk-SPN2VCN7.js} +8 -8
- package/dist/_node-chunks/{chunk-2QTI45JU.js → chunk-SVRE646L.js} +35 -35
- package/dist/_node-chunks/{chunk-US7L4S72.js → chunk-T5D7JJMY.js} +9 -9
- package/dist/_node-chunks/{chunk-M2BRIUUP.js → chunk-TM4SF5U2.js} +7 -7
- package/dist/_node-chunks/{chunk-XJSYJTBD.js → chunk-TVYJB2XE.js} +7 -7
- package/dist/_node-chunks/{chunk-5RNOGGO6.js → chunk-TY2RQWQ7.js} +6 -6
- package/dist/_node-chunks/{chunk-NZ3GOT7V.js → chunk-TZKXP2KS.js} +6 -6
- package/dist/_node-chunks/{chunk-WQ7PSP6H.js → chunk-U2C4SK3A.js} +6 -6
- package/dist/_node-chunks/{chunk-XCGMRAV5.js → chunk-U3ZISTY3.js} +7 -7
- package/dist/_node-chunks/{chunk-7DCDBICW.js → chunk-U736OTI6.js} +13 -13
- package/dist/_node-chunks/chunk-U7MSJ3A6.js +11 -0
- package/dist/_node-chunks/{chunk-G5OYQQDY.js → chunk-URBTH3SB.js} +6 -6
- package/dist/_node-chunks/{chunk-SRXCCL2O.js → chunk-US5P4ZWN.js} +7 -7
- package/dist/_node-chunks/{chunk-CXLL2F6O.js → chunk-UWLMMCBV.js} +8 -8
- package/dist/_node-chunks/{chunk-B6SKX4JF.js → chunk-V3WMH7C4.js} +7 -7
- package/dist/_node-chunks/{chunk-EWXASIWR.js → chunk-W6ZSSLD7.js} +7 -7
- package/dist/_node-chunks/{chunk-2JSABFAM.js → chunk-WALLDPES.js} +10 -10
- package/dist/_node-chunks/{chunk-7BVUZZIY.js → chunk-WEQUS77K.js} +7 -7
- package/dist/_node-chunks/{chunk-GSWBRZLU.js → chunk-WK5562IZ.js} +8 -8
- package/dist/_node-chunks/{chunk-BENYUF74.js → chunk-XPSQ3CGZ.js} +38 -42
- package/dist/_node-chunks/{chunk-XTTAS346.js → chunk-YM5GSNOW.js} +6 -6
- package/dist/_node-chunks/{chunk-6EJ5NPEM.js → chunk-ZZJRM4VQ.js} +7 -7
- package/dist/_node-chunks/dist-PLKLDZ2U.js +16 -0
- package/dist/_node-chunks/{globby-HWZL7XSQ.js → globby-7JAOKACZ.js} +10 -10
- package/dist/_node-chunks/{jiti-GNDCTFYU.js → jiti-NTDVBCL3.js} +7 -7
- package/dist/_node-chunks/{lib-DI662U2R.js → lib-GO6OUNCW.js} +7 -7
- package/dist/_node-chunks/{local-runtime-4UNT5EZJ.js → local-runtime-75CNASLU.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-ZY6XLLA4.js → mdx-plugin-CC54EOSI.js} +14 -14
- package/dist/_node-chunks/{monorepo-B65J4UFS.js → monorepo-YQLAQDZJ.js} +12 -12
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-45ZTNWJS.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-LOHSM7ID.js → pattern-copy-play-IMDJHSAD.js} +10 -10
- package/dist/_node-chunks/postinstallAddon-PSVXEIZJ.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-22ZBI6K4.js → rehype-external-links-EZO7JZTZ.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-ROZVEEFZ.js → rehype-slug-MECGIEGM.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-EDE2B34G.js → relaxed-limits-4UOQIT3N.js} +12 -12
- package/dist/_node-chunks/{run-IR3BRDJV.js → run-3YFS3YCP.js} +17 -17
- package/dist/_node-chunks/{run-372BSBV5.js → run-LTXOQNKP.js} +13 -13
- package/dist/_node-chunks/session-id-PEDFG544.js +23 -0
- package/dist/_node-chunks/{setup-6TMCKUTA.js → setup-2CNFOQBB.js} +9 -9
- package/dist/_node-chunks/{vitest.config.4.template-QJBEVCKG.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 +13 -34
- 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-B0I9dSVs.js → globals-runtime-C9lYPobZ.js} +408 -429
- package/dist/manager/_manager-chunks/{globals-runtime-f5oIrim0.js → globals-runtime-CejY7Ueo.js} +125 -133
- package/dist/manager/_manager-chunks/{globals-runtime-CXoVXiJA.js → globals-runtime-DGHmnlvz.js} +38 -62
- package/dist/manager/_manager-chunks/{globals-runtime-BQCkfH1B.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-DtyerpFe.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-Bry1Biu7.js → runtime-BzYARKgi.js} +427 -425
- package/dist/manager/_manager-chunks/{runtime-DpgBAFGf.js → runtime-CaVSkVCV.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-DcJBhKG9.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 +2 -2
- 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 +207 -624
- 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 +10 -31
- 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-BCRWDMAU.js +0 -11
- package/dist/_node-chunks/chunk-DUOXRUVQ.js +0 -18
- package/dist/_node-chunks/chunk-WVCU34IS.js +0 -23
- package/dist/_node-chunks/dist-ZGSN23B7.js +0 -16
- package/dist/_node-chunks/optimized-tests-ZMNICF4R.js +0 -22
- package/dist/_node-chunks/postinstallAddon-NT5XE7IT.js +0 -20
- package/dist/_node-chunks/session-id-OO2WQF5N.js +0 -23
- package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +0 -998
|
@@ -1,55 +1,55 @@
|
|
|
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
|
-
|
|
14
|
-
} from "./chunk-
|
|
13
|
+
RN_FORKBOOK_DIR
|
|
14
|
+
} from "./chunk-NF3GSBMC.js";
|
|
15
15
|
import {
|
|
16
16
|
createModuleResolver
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ANOZDFMW.js";
|
|
18
18
|
import {
|
|
19
19
|
detectIndent
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KGJPHNM7.js";
|
|
21
21
|
import {
|
|
22
22
|
findFilesUp,
|
|
23
23
|
getProjectRoot
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HS3YKDIQ.js";
|
|
25
25
|
import {
|
|
26
26
|
up2 as up
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-TZKXP2KS.js";
|
|
28
28
|
import {
|
|
29
29
|
invariant
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4ZHC3GG3.js";
|
|
31
31
|
import {
|
|
32
32
|
importModule
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-J4WM6PLB.js";
|
|
34
34
|
import {
|
|
35
35
|
storybookConfigExtensions
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-DI76R3EI.js";
|
|
37
37
|
import {
|
|
38
38
|
require_picocolors
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-GURMTBQH.js";
|
|
40
40
|
import {
|
|
41
41
|
slash
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-I7BJLOF5.js";
|
|
43
43
|
import {
|
|
44
44
|
glob,
|
|
45
45
|
globSync
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-4ZGNL77M.js";
|
|
47
47
|
import {
|
|
48
48
|
__toESM
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-CYPEPQSM.js";
|
|
50
50
|
|
|
51
51
|
// src/common/versions.ts
|
|
52
|
-
var versions_default = { "@aussieljk/forkbook": "0.0.1-
|
|
52
|
+
var versions_default = { "@aussieljk/forkbook": "0.0.1-3" };
|
|
53
53
|
|
|
54
54
|
// src/common/utils/HandledError.ts
|
|
55
55
|
var HandledError = class extends Error {
|
|
@@ -61,10 +61,10 @@ var HandledError = class extends Error {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
// src/common/utils/get-pkg-pr-new-package-specifier.ts
|
|
64
|
-
var
|
|
64
|
+
var PKG_PR_NEW_FORKBOOK_SPECIFIER_RE = /^(https?:\/\/[^/\s]*pkg\.pr\.new\/(?:[^@\s/]+\/[^@\s/]+\/)?)(?:create-storybook|storybook|@storybook\/[^@\s]+)(@[^\s]+)$/, isPkgPrNewVersionSpecifier = (storybookVersionSpecifier) => !!storybookVersionSpecifier?.match(PKG_PR_NEW_FORKBOOK_SPECIFIER_RE), getPkgPrNewPackageSpecifier = (packageName, storybookVersionSpecifier) => {
|
|
65
65
|
if (!storybookVersionSpecifier)
|
|
66
66
|
return;
|
|
67
|
-
let match = storybookVersionSpecifier.match(
|
|
67
|
+
let match = storybookVersionSpecifier.match(PKG_PR_NEW_FORKBOOK_SPECIFIER_RE);
|
|
68
68
|
if (!match)
|
|
69
69
|
return;
|
|
70
70
|
let [, prefix, suffix] = match;
|
|
@@ -857,7 +857,7 @@ var rendererPackages = {
|
|
|
857
857
|
invariant(mainConfig, `Unable to find or evaluate ${configInfo.mainConfigPath}`);
|
|
858
858
|
let frameworkValue = mainConfig.framework, frameworkField = typeof frameworkValue == "string" ? frameworkValue : frameworkValue?.name, addons = getAddonNames(mainConfig), versionSpecifier = getStorybookVersionSpecifier(configDir);
|
|
859
859
|
if (!frameworkField)
|
|
860
|
-
return basename(configInfo.configDir) ===
|
|
860
|
+
return basename(configInfo.configDir) === RN_FORKBOOK_DIR ? {
|
|
861
861
|
...configInfo,
|
|
862
862
|
versionSpecifier,
|
|
863
863
|
addons,
|
|
@@ -906,7 +906,7 @@ async function getFrameworkName(options) {
|
|
|
906
906
|
throw new Error(dedent3`
|
|
907
907
|
You must specify a framework in '.forkbook/main.js' config.
|
|
908
908
|
|
|
909
|
-
https://
|
|
909
|
+
https://forkbook.ljk.dev/docs/migration#framework-field-mandatory
|
|
910
910
|
`);
|
|
911
911
|
return typeof framework == "object" ? framework.name : framework;
|
|
912
912
|
}
|
|
@@ -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
|
require_picocolors
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GURMTBQH.js";
|
|
15
15
|
import {
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CYPEPQSM.js";
|
|
18
18
|
|
|
19
19
|
// src/server-errors.ts
|
|
20
20
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -41,17 +41,7 @@ function parseErrorCode({
|
|
|
41
41
|
category
|
|
42
42
|
}) {
|
|
43
43
|
let paddedCode = String(code).padStart(4, "0");
|
|
44
|
-
return `
|
|
45
|
-
}
|
|
46
|
-
function appendErrorRef(url) {
|
|
47
|
-
if (/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(url))
|
|
48
|
-
return url;
|
|
49
|
-
try {
|
|
50
|
-
let urlObj = new URL(url);
|
|
51
|
-
return urlObj.searchParams.set("ref", "error"), urlObj.toString();
|
|
52
|
-
} catch {
|
|
53
|
-
return url;
|
|
54
|
-
}
|
|
44
|
+
return `FB_${category}_${paddedCode}`;
|
|
55
45
|
}
|
|
56
46
|
var StorybookError = class _StorybookError extends Error {
|
|
57
47
|
constructor(props) {
|
|
@@ -95,7 +85,7 @@ var StorybookError = class _StorybookError extends Error {
|
|
|
95
85
|
get fullErrorCode() {
|
|
96
86
|
return parseErrorCode({ code: this.code, category: this.category });
|
|
97
87
|
}
|
|
98
|
-
/** Overrides the default `Error.name` property in the format:
|
|
88
|
+
/** Overrides the default `Error.name` property in the format: FB_<CATEGORY>_<CODE>. */
|
|
99
89
|
get name() {
|
|
100
90
|
let errorName = this._name || this.constructor.name;
|
|
101
91
|
return `${this.fullErrorCode} (${errorName})`;
|
|
@@ -111,8 +101,8 @@ var StorybookError = class _StorybookError extends Error {
|
|
|
111
101
|
message
|
|
112
102
|
}) {
|
|
113
103
|
let page;
|
|
114
|
-
return documentation === !0 ? page = `https://
|
|
115
|
-
${documentation.map((doc) => ` - ${
|
|
104
|
+
return documentation === !0 ? page = `https://forkbook.ljk.dev/error/${parseErrorCode({ code, category })}` : typeof documentation == "string" ? page = documentation : Array.isArray(documentation) && (page = `
|
|
105
|
+
${documentation.map((doc) => ` - ${doc}`).join(`
|
|
116
106
|
`)}`), `${message}${page != null ? `
|
|
117
107
|
|
|
118
108
|
More info: ${page}
|
|
@@ -139,7 +129,7 @@ var Category = /* @__PURE__ */ ((Category2) => (Category2.CLI = "CLI", Category2
|
|
|
139
129
|
name: "MissingFrameworkFieldError",
|
|
140
130
|
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
141
131
|
code: 1,
|
|
142
|
-
documentation: "https://
|
|
132
|
+
documentation: "https://forkbook.ljk.dev/docs/migration#new-framework-api",
|
|
143
133
|
message: dedent`
|
|
144
134
|
Could not find a 'framework' field in Forkbook config.
|
|
145
135
|
|
|
@@ -152,7 +142,7 @@ var Category = /* @__PURE__ */ ((Category2) => (Category2.CLI = "CLI", Category2
|
|
|
152
142
|
name: "InvalidFrameworkNameError",
|
|
153
143
|
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
154
144
|
code: 2,
|
|
155
|
-
documentation: "https://
|
|
145
|
+
documentation: "https://forkbook.ljk.dev/docs/migration#new-framework-api",
|
|
156
146
|
message: dedent`
|
|
157
147
|
Invalid value of '${data.frameworkName}' in the 'framework' field of Forkbook config.
|
|
158
148
|
|
|
@@ -181,7 +171,7 @@ var Category = /* @__PURE__ */ ((Category2) => (Category2.CLI = "CLI", Category2
|
|
|
181
171
|
name: "ConflictingStaticDirConfigError",
|
|
182
172
|
category: "CORE-SERVER" /* CORE_SERVER */,
|
|
183
173
|
code: 1,
|
|
184
|
-
documentation: "https://
|
|
174
|
+
documentation: "https://forkbook.ljk.dev/docs/configure/integration/images-and-assets#serving-static-files-via-storybook-configuration",
|
|
185
175
|
message: dedent`
|
|
186
176
|
Forkbook encountered a conflict when trying to serve statics. You have configured both:
|
|
187
177
|
* Forkbook's option in the config file: 'staticDirs'
|
|
@@ -196,7 +186,7 @@ var Category = /* @__PURE__ */ ((Category2) => (Category2.CLI = "CLI", Category2
|
|
|
196
186
|
name: "InvalidStoriesEntryError",
|
|
197
187
|
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
198
188
|
code: 4,
|
|
199
|
-
documentation: "https://
|
|
189
|
+
documentation: "https://forkbook.ljk.dev/docs/faq#can-i-have-a-storybook-with-no-local-stories",
|
|
200
190
|
message: dedent`
|
|
201
191
|
Forkbook could not index your stories.
|
|
202
192
|
Your main configuration does not contain a 'stories' field, or it resolved to an empty array.
|
|
@@ -524,7 +514,7 @@ var CriticalPresetLoadError = class extends StorybookError {
|
|
|
524
514
|
name: "GoogleFontsDownloadError",
|
|
525
515
|
category: "FRAMEWORK_NEXTJS" /* FRAMEWORK_NEXTJS */,
|
|
526
516
|
code: 1,
|
|
527
|
-
documentation: "https://
|
|
517
|
+
documentation: "https://forkbook.ljk.dev/docs/get-started/frameworks/nextjs#nextjs-font-optimization",
|
|
528
518
|
message: dedent`
|
|
529
519
|
Failed to fetch \`${data.fontFamily}\` from Google Fonts with URL: \`${data.url}\``
|
|
530
520
|
});
|
|
@@ -536,7 +526,7 @@ var CriticalPresetLoadError = class extends StorybookError {
|
|
|
536
526
|
name: "GoogleFontsLoadingError",
|
|
537
527
|
category: "FRAMEWORK_NEXTJS" /* FRAMEWORK_NEXTJS */,
|
|
538
528
|
code: 2,
|
|
539
|
-
documentation: "https://
|
|
529
|
+
documentation: "https://forkbook.ljk.dev/docs/get-started/frameworks/nextjs#nextjs-font-optimization",
|
|
540
530
|
message: dedent`
|
|
541
531
|
An error occurred when trying to load Google Fonts with URL \`${data.url}\`.
|
|
542
532
|
|
|
@@ -568,12 +558,12 @@ var CriticalPresetLoadError = class extends StorybookError {
|
|
|
568
558
|
let map = {
|
|
569
559
|
storybook: {
|
|
570
560
|
helperMessage: "You can pass a --config-dir flag to tell Forkbook, where your main.js|ts file is located at.",
|
|
571
|
-
documentation: "https://
|
|
561
|
+
documentation: "https://forkbook.ljk.dev/docs/configure"
|
|
572
562
|
},
|
|
573
563
|
vitest: {
|
|
574
564
|
helperMessage: "You can pass a configDir plugin option to tell where your main.js|ts file is located at.",
|
|
575
565
|
// TODO: add proper docs once available
|
|
576
|
-
documentation: "https://
|
|
566
|
+
documentation: "https://forkbook.ljk.dev/docs/configure"
|
|
577
567
|
}
|
|
578
568
|
}, { documentation, helperMessage } = map[data.source || "storybook"];
|
|
579
569
|
super({
|
|
@@ -705,7 +695,7 @@ var MinimumReleaseAgeHandledError = class extends StorybookError {
|
|
|
705
695
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
706
696
|
isHandledError: !0,
|
|
707
697
|
code: 8,
|
|
708
|
-
documentation: "https://
|
|
698
|
+
documentation: "https://forkbook.ljk.dev/docs/writing-tests/integrations/vitest-addon#manual-setup-advanced",
|
|
709
699
|
message: dedent`
|
|
710
700
|
Could not update existing Vitest workspace file: ${data.filePath}
|
|
711
701
|
Please refer to the documentation to complete the setup manually.
|
|
@@ -720,7 +710,7 @@ var MinimumReleaseAgeHandledError = class extends StorybookError {
|
|
|
720
710
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
721
711
|
isHandledError: !0,
|
|
722
712
|
code: 9,
|
|
723
|
-
documentation: "https://
|
|
713
|
+
documentation: "https://forkbook.ljk.dev/docs/writing-tests/integrations/vitest-addon#manual-setup-advanced",
|
|
724
714
|
message: dedent`
|
|
725
715
|
Unable to update existing Vitest config file: ${data.filePath}
|
|
726
716
|
Please refer to the documentation to complete the setup manually.
|
|
@@ -1,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
|
invariant
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KGJPHNM7.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CYPEPQSM.js";
|
|
18
18
|
|
|
19
19
|
// src/cli/globalSettings.ts
|
|
20
20
|
import fs from "node:fs/promises";
|
|
@@ -1,23 +1,23 @@
|
|
|
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
|
cache
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WEQUS77K.js";
|
|
15
15
|
import {
|
|
16
16
|
importMetaResolve
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-J4WM6PLB.js";
|
|
18
18
|
import {
|
|
19
19
|
slash
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-I7BJLOF5.js";
|
|
21
21
|
|
|
22
22
|
// src/builder-vite/preset.ts
|
|
23
23
|
import { findConfigFile } from "@aussieljk/forkbook/internal/common";
|
|
@@ -299,7 +299,7 @@ function generateProjectAnnotationsCodeFromPreviews(options) {
|
|
|
299
299
|
if (import.meta.hot) {
|
|
300
300
|
import.meta.hot.accept([${JSON.stringify(previewFileURL)}], (previewAnnotationModules) => {
|
|
301
301
|
// getProjectAnnotations has changed so we need to patch the new one in
|
|
302
|
-
window?.
|
|
302
|
+
window?.__FORKBOOK_PREVIEW__?.onGetProjectAnnotationsChanged({
|
|
303
303
|
getProjectAnnotations: () => getProjectAnnotations(previewAnnotationModules),
|
|
304
304
|
});
|
|
305
305
|
});
|
|
@@ -326,7 +326,7 @@ function generateProjectAnnotationsCodeFromPreviews(options) {
|
|
|
326
326
|
if (import.meta.hot) {
|
|
327
327
|
import.meta.hot.accept(${JSON.stringify(previewAnnotationURLs)}, (previewAnnotationModules) => {
|
|
328
328
|
// getProjectAnnotations has changed so we need to patch the new one in
|
|
329
|
-
window?.
|
|
329
|
+
window?.__FORKBOOK_PREVIEW__?.onGetProjectAnnotationsChanged({
|
|
330
330
|
getProjectAnnotations: () => getProjectAnnotations(previewAnnotationModules),
|
|
331
331
|
});
|
|
332
332
|
});
|
|
@@ -341,11 +341,11 @@ function hash(value) {
|
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
// src/builder-vite/virtual-file-names.ts
|
|
344
|
-
var
|
|
344
|
+
var FB_VIRTUAL_FILES = {
|
|
345
345
|
VIRTUAL_APP_FILE: "virtual:/@storybook/builder-vite/vite-app.js",
|
|
346
346
|
VIRTUAL_STORIES_FILE: "virtual:/@storybook/builder-vite/storybook-stories.js",
|
|
347
347
|
VIRTUAL_ADDON_SETUP_FILE: "virtual:/@storybook/builder-vite/setup-addons.js"
|
|
348
|
-
},
|
|
348
|
+
}, FB_VIRTUAL_FILE_IDS = Object.values(FB_VIRTUAL_FILES);
|
|
349
349
|
function getResolvedVirtualModuleId(virtualModuleId) {
|
|
350
350
|
return `\0${virtualModuleId}`;
|
|
351
351
|
}
|
|
@@ -601,28 +601,28 @@ async function generateModernIframeScriptCode() {
|
|
|
601
601
|
let hmrHandler = dedent3`
|
|
602
602
|
if (import.meta.hot) {
|
|
603
603
|
import.meta.hot.on('vite:afterUpdate', () => {
|
|
604
|
-
window.
|
|
604
|
+
window.__FORKBOOK_PREVIEW__.channel.emit('${STORY_HOT_UPDATED}');
|
|
605
605
|
});
|
|
606
606
|
|
|
607
|
-
import.meta.hot.accept('${
|
|
607
|
+
import.meta.hot.accept('${FB_VIRTUAL_FILES.VIRTUAL_STORIES_FILE}', (newModule) => {
|
|
608
608
|
// importFn has changed so we need to patch the new one in
|
|
609
|
-
window.
|
|
609
|
+
window.__FORKBOOK_PREVIEW__.onStoriesChanged({ importFn: newModule.importFn });
|
|
610
610
|
});
|
|
611
611
|
}`.trim();
|
|
612
612
|
return dedent3`
|
|
613
613
|
import { setup } from '${previewRuntimePath}';
|
|
614
614
|
|
|
615
|
-
import '${
|
|
615
|
+
import '${FB_VIRTUAL_FILES.VIRTUAL_ADDON_SETUP_FILE}';
|
|
616
616
|
|
|
617
617
|
setup();
|
|
618
618
|
|
|
619
619
|
import { PreviewWeb } from '@aussieljk/forkbook/preview-api';
|
|
620
|
-
import { importFn } from '${
|
|
620
|
+
import { importFn } from '${FB_VIRTUAL_FILES.VIRTUAL_STORIES_FILE}';
|
|
621
621
|
import { getProjectAnnotations } from '${VIRTUAL_ID}';
|
|
622
622
|
|
|
623
|
-
window.
|
|
623
|
+
window.__FORKBOOK_PREVIEW__ = window.__FORKBOOK_PREVIEW__ || new PreviewWeb(importFn, getProjectAnnotations);
|
|
624
624
|
|
|
625
|
-
window.
|
|
625
|
+
window.__FORKBOOK_STORY_STORE__ = window.__FORKBOOK_STORY_STORE__ || window.__FORKBOOK_PREVIEW__.storyStore;
|
|
626
626
|
|
|
627
627
|
${hmrHandler};
|
|
628
628
|
|
|
@@ -639,7 +639,7 @@ async function generateAddonSetupCode() {
|
|
|
639
639
|
addons.setChannel(channel);
|
|
640
640
|
|
|
641
641
|
if (window.CONFIG_TYPE === 'DEVELOPMENT'){
|
|
642
|
-
window.
|
|
642
|
+
window.__FORKBOOK_SERVER_CHANNEL__ = channel;
|
|
643
643
|
}
|
|
644
644
|
`.trim();
|
|
645
645
|
}
|
|
@@ -654,7 +654,7 @@ async function transformIframeHtml(html, options) {
|
|
|
654
654
|
...specifier,
|
|
655
655
|
importPathMatcher: specifier.importPathMatcher.source
|
|
656
656
|
})), otherGlobals = {
|
|
657
|
-
...build?.test?.disableBlocks ? {
|
|
657
|
+
...build?.test?.disableBlocks ? { __FORKBOOK_BLOCKS_EMPTY_MODULE__: {} } : {},
|
|
658
658
|
...security?.insecureIframeMessaging ? { INSECURE_IFRAME_MESSAGING: !0 } : {}
|
|
659
659
|
}, transformedHtml = html.replace("[CONFIG_TYPE HERE]", configType || "").replace("[LOGLEVEL HERE]", logLevel || "").replace("'[FRAMEWORK_OPTIONS HERE]'", JSON.stringify(frameworkOptions)).replace(
|
|
660
660
|
"('OTHER_GLOBALS HERE');",
|
|
@@ -665,7 +665,7 @@ async function transformIframeHtml(html, options) {
|
|
|
665
665
|
).replace("'[FEATURES HERE]'", JSON.stringify(features || {})).replace("'[STORIES HERE]'", JSON.stringify(stories || {})).replace("'[DOCS_OPTIONS HERE]'", JSON.stringify(docsOptions || {})).replace("'[TAGS_OPTIONS HERE]'", JSON.stringify(tagsOptions || {})).replace("<!-- [HEAD HTML SNIPPET HERE] -->", headHtmlSnippet || "").replace("<!-- [BODY HTML SNIPPET HERE] -->", bodyHtmlSnippet || "");
|
|
666
666
|
return configType === "DEVELOPMENT" ? transformedHtml.replace(
|
|
667
667
|
"virtual:/@storybook/builder-vite/vite-app.js",
|
|
668
|
-
`/@id/__x00__${
|
|
668
|
+
`/@id/__x00__${FB_VIRTUAL_FILES.VIRTUAL_APP_FILE}`
|
|
669
669
|
) : transformedHtml;
|
|
670
670
|
}
|
|
671
671
|
|
|
@@ -706,7 +706,7 @@ function codeGeneratorPlugin(options) {
|
|
|
706
706
|
(await storyIndexGeneratorPromise).onInvalidated(() => {
|
|
707
707
|
server.watcher.emit(
|
|
708
708
|
"change",
|
|
709
|
-
getResolvedVirtualModuleId(
|
|
709
|
+
getResolvedVirtualModuleId(FB_VIRTUAL_FILES.VIRTUAL_STORIES_FILE)
|
|
710
710
|
);
|
|
711
711
|
});
|
|
712
712
|
},
|
|
@@ -717,20 +717,20 @@ function codeGeneratorPlugin(options) {
|
|
|
717
717
|
iframeId = `${config.root}/iframe.html`;
|
|
718
718
|
},
|
|
719
719
|
resolveId(source) {
|
|
720
|
-
if (
|
|
720
|
+
if (FB_VIRTUAL_FILE_IDS.includes(source))
|
|
721
721
|
return getResolvedVirtualModuleId(source);
|
|
722
722
|
if (source === iframePath)
|
|
723
723
|
return iframeId;
|
|
724
724
|
},
|
|
725
725
|
async load(id) {
|
|
726
726
|
switch (id) {
|
|
727
|
-
case getResolvedVirtualModuleId(
|
|
727
|
+
case getResolvedVirtualModuleId(FB_VIRTUAL_FILES.VIRTUAL_STORIES_FILE): {
|
|
728
728
|
let index = await (await storyIndexGeneratorPromise)?.getIndex();
|
|
729
729
|
return generateImportFnScriptCode(index);
|
|
730
730
|
}
|
|
731
|
-
case getResolvedVirtualModuleId(
|
|
731
|
+
case getResolvedVirtualModuleId(FB_VIRTUAL_FILES.VIRTUAL_ADDON_SETUP_FILE):
|
|
732
732
|
return generateAddonSetupCode();
|
|
733
|
-
case getResolvedVirtualModuleId(
|
|
733
|
+
case getResolvedVirtualModuleId(FB_VIRTUAL_FILES.VIRTUAL_APP_FILE):
|
|
734
734
|
return generateModernIframeScriptCode();
|
|
735
735
|
case iframeId:
|
|
736
736
|
return readFileSync2(
|
|
@@ -861,13 +861,13 @@ function stripQueryParams(filePath) {
|
|
|
861
861
|
return filePath.split("?")[0];
|
|
862
862
|
}
|
|
863
863
|
function isUserCode(moduleName) {
|
|
864
|
-
return moduleName ? Object.values(
|
|
864
|
+
return moduleName ? Object.values(FB_VIRTUAL_FILES).includes(getOriginalVirtualModuleId(moduleName)) ? !0 : !moduleName.startsWith("vite/") && !moduleName.startsWith("\0") && moduleName !== "react/jsx-runtime" : !1;
|
|
865
865
|
}
|
|
866
866
|
function pluginWebpackStats({ workingDir }) {
|
|
867
867
|
function normalize4(filename2) {
|
|
868
868
|
if (filename2.startsWith("virtual:"))
|
|
869
869
|
return `/${filename2}`;
|
|
870
|
-
if (Object.values(
|
|
870
|
+
if (Object.values(FB_VIRTUAL_FILES).includes(getOriginalVirtualModuleId(filename2)))
|
|
871
871
|
return `/${getOriginalVirtualModuleId(filename2)}`;
|
|
872
872
|
{
|
|
873
873
|
let relativePath = relative2(workingDir, stripQueryParams(filename2));
|
|
@@ -923,7 +923,7 @@ var escapeKeys = (key) => key.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), defau
|
|
|
923
923
|
]);
|
|
924
924
|
async function storybookExternalGlobalsPlugin(options) {
|
|
925
925
|
let build = await options.presets.apply("build"), externals = globalsNameReferenceMap;
|
|
926
|
-
build?.test?.disableBlocks && (externals["@aussieljk/forkbook/addon-docs/blocks"] = "
|
|
926
|
+
build?.test?.disableBlocks && (externals["@aussieljk/forkbook/addon-docs/blocks"] = "__FORKBOOK_BLOCKS_EMPTY_MODULE__"), await init;
|
|
927
927
|
let { mergeAlias } = await import("vite"), globalsList = Object.keys(externals), globalsCodeFilter = new RegExp(globalsList.map(escapeKeys).join("|"));
|
|
928
928
|
return {
|
|
929
929
|
name: "storybook:external-globals-plugin",
|
|
@@ -932,7 +932,7 @@ async function storybookExternalGlobalsPlugin(options) {
|
|
|
932
932
|
async config(config, { command }) {
|
|
933
933
|
if (command !== "serve")
|
|
934
934
|
return;
|
|
935
|
-
let newAlias = mergeAlias([], config.resolve?.alias), cachePath = cache("
|
|
935
|
+
let newAlias = mergeAlias([], config.resolve?.alias), cachePath = cache("fb-vite-plugin-externals", { create: !0 }) ?? join3(process.cwd(), "node_modules", ".cache", "fb-vite-plugin-externals");
|
|
936
936
|
return await Promise.all(
|
|
937
937
|
Object.keys(externals).map(async (externalKey) => {
|
|
938
938
|
let externalCachePath = join3(cachePath, `${externalKey}.js`);
|
|
@@ -973,8 +973,8 @@ async function storybookExternalGlobalsPlugin(options) {
|
|
|
973
973
|
}
|
|
974
974
|
var bundledPreviewRuntimePattern = /[/\\]dist[/\\]preview[/\\]/;
|
|
975
975
|
function ensurePreviewRuntimePrecedesGlobals(code, id) {
|
|
976
|
-
return bundledPreviewRuntimePattern.test(id.split("?")[0]) ? code : `import { setup as
|
|
977
|
-
|
|
976
|
+
return bundledPreviewRuntimePattern.test(id.split("?")[0]) ? code : `import { setup as __fbInitializePreviewGlobals } from ${JSON.stringify(previewRuntimePath)};
|
|
977
|
+
__fbInitializePreviewGlobals();
|
|
978
978
|
${code}`;
|
|
979
979
|
}
|
|
980
980
|
function getDefaultImportReplacement(match) {
|
|
@@ -1040,7 +1040,7 @@ async function commonConfig(options, _type) {
|
|
|
1040
1040
|
root: projectRoot,
|
|
1041
1041
|
// Allow storybook deployed as subfolder. See https://github.com/storybookjs/builder-vite/issues/238
|
|
1042
1042
|
base: "./",
|
|
1043
|
-
...options.cacheKey ? { cacheDir: resolvePathInStorybookCache("
|
|
1043
|
+
...options.cacheKey ? { cacheDir: resolvePathInStorybookCache("fb-vite", options.cacheKey) } : {},
|
|
1044
1044
|
// Pass build.target option from user's vite config
|
|
1045
1045
|
build: {
|
|
1046
1046
|
target: buildProperty?.target
|
|
@@ -1,23 +1,23 @@
|
|
|
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
|
ADDON_ID2 as ADDON_ID
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OSE2FYQP.js";
|
|
15
15
|
import {
|
|
16
16
|
require_picocolors
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GURMTBQH.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CYPEPQSM.js";
|
|
21
21
|
|
|
22
22
|
// src/addon-vitest/logger.ts
|
|
23
23
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -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
|
e
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-27HJO5MV.js";
|
|
15
15
|
|
|
16
16
|
// src/telemetry/detect-agent.ts
|
|
17
17
|
var detectAgent = () => {
|
|
@@ -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
|