@aussieljk/forkbook 0.0.1-1 → 0.0.1-10
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/LICENSE +1 -1
- package/README.md +35 -53
- 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/create/templates/react-native/index.expo.js +4 -4
- package/assets/create/templates/react-native/index.js +5 -5
- package/assets/server/base-preview-body.html +32 -32
- package/assets/server/base-preview-head.html +86 -86
- package/assets/server/template.ejs +24 -26
- package/dist/_browser-chunks/{Color-OEKZ7XSW.js → Color-X63I7FHI.js} +8 -8
- package/dist/_browser-chunks/WithTooltip-5S6F2P7L.js +198 -0
- 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-VVWPND3J.js → chunk-5Z65SURM.js} +12 -12
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/{chunk-PFRNG3UC.js → chunk-6ELMKWKX.js} +5 -5
- 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-C5TKXHTM.js +82 -0
- package/dist/_browser-chunks/chunk-DNJ3OSLB.js +6021 -0
- 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-CFWWCCZV.js → chunk-EQKMUQF3.js} +5 -4
- package/dist/_browser-chunks/{chunk-LV5PIKV4.js → chunk-FRAOQJDI.js} +5 -3
- package/dist/_browser-chunks/{chunk-ODVJ3XZJ.js → chunk-GRO2ZYEJ.js} +2 -2
- package/dist/_browser-chunks/{chunk-MFMDGWP6.js → chunk-I4ATZPNZ.js} +1 -1
- package/dist/_browser-chunks/chunk-IFADVEQE.js +669 -0
- package/dist/_browser-chunks/{chunk-YTIT5NA5.js → chunk-KYSD26D6.js} +3 -3
- package/dist/_browser-chunks/{chunk-73OX2G56.js → chunk-LTCXWKZO.js} +100 -108
- 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-EIYAKDGP.js → chunk-NA4ITZTK.js} +127 -105
- package/dist/_browser-chunks/chunk-NGMQJMCY.js +53 -0
- package/dist/_browser-chunks/chunk-NPNIBOPF.js +18 -0
- package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-NTUHL5NS.js} +8 -3
- package/dist/_browser-chunks/{chunk-MDOL7KML.js → chunk-O24AZJZ7.js} +1 -1
- package/dist/_browser-chunks/{chunk-YEKO6BHJ.js → chunk-ONTSNQON.js} +1 -1
- package/dist/_browser-chunks/chunk-OOETBSA7.js +502 -0
- package/dist/_browser-chunks/chunk-PZQRXPVR.js +21 -0
- package/dist/_browser-chunks/{chunk-C3D4HEFY.js → chunk-TTBPZQ24.js} +282 -127
- package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
- package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-V5U45XXZ.js} +1 -1
- package/dist/_browser-chunks/chunk-XKTORVEQ.js +255 -0
- package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-XTQCLWVH.js} +325 -1635
- package/dist/_browser-chunks/{chunk-W5M6NPS3.js → chunk-ZHKZKFY4.js} +7 -6
- package/dist/_node-chunks/{attached-runtime-O4YTVUKE.js → attached-runtime-PDBJ2EGV.js} +30 -30
- package/dist/_node-chunks/builder-manager-VLL26RPG.js +1139 -0
- package/dist/_node-chunks/{chunk-GP5YLBNS.js → chunk-3CSGIJKG.js} +8 -8
- package/dist/_node-chunks/chunk-3W4KR5GX.js +2609 -0
- package/dist/_node-chunks/{chunk-SRXCCL2O.js → chunk-5NRWU7S2.js} +7 -7
- package/dist/_node-chunks/{chunk-GSWBRZLU.js → chunk-5SMIGUYF.js} +9 -17
- package/dist/_node-chunks/{chunk-JVQYQTTM.js → chunk-63LPGIV4.js} +42 -87
- package/dist/_node-chunks/{chunk-5RNOGGO6.js → chunk-6DHTL5G2.js} +6 -6
- package/dist/_node-chunks/{chunk-RQVK2TOI.js → chunk-6DRVJCYP.js} +14 -13
- package/dist/_node-chunks/chunk-7CV4VEA2.js +620 -0
- package/dist/_node-chunks/{chunk-ZMEGPR47.js → chunk-7KD5DKGZ.js} +6 -6
- package/dist/_node-chunks/{chunk-4PK3LUHM.js → chunk-7O2UIVID.js} +7 -7
- package/dist/_node-chunks/{chunk-GT5EHMNM.js → chunk-7OY4VMAT.js} +7 -7
- package/dist/_node-chunks/{chunk-YWMICX2T.js → chunk-AAL6X7YG.js} +12 -12
- package/dist/_node-chunks/{chunk-XURIZ7IC.js → chunk-ACSO4HQP.js} +8 -8
- package/dist/_node-chunks/{chunk-6EJ5NPEM.js → chunk-BDU3ZUMK.js} +7 -7
- package/dist/_node-chunks/chunk-BMJPOQ2S.js +11 -0
- package/dist/_node-chunks/chunk-BNEC3EBC.js +28 -0
- package/dist/_node-chunks/chunk-BPL3ERBH.js +347 -0
- package/dist/_node-chunks/{chunk-VXDWOVWD.js → chunk-BXDMSX3D.js} +29843 -51588
- package/dist/_node-chunks/chunk-C3PLG47Q.js +25 -0
- package/dist/_node-chunks/{chunk-R5FYRP6X.js → chunk-CEDR5CNM.js} +7 -7
- package/dist/_node-chunks/{chunk-7TSL7D5D.js → chunk-CKE4R4NL.js} +6 -6
- package/dist/_node-chunks/{chunk-5J3O7EDY.js → chunk-CSFNS7HA.js} +6 -6
- package/dist/_node-chunks/{chunk-7LLQDMVS.js → chunk-CZ3V3HHK.js} +6 -6
- package/dist/_node-chunks/{chunk-G6PUNHCI.js → chunk-DNV3LPV3.js} +6 -6
- package/dist/_node-chunks/{chunk-XCGMRAV5.js → chunk-DPILYJH4.js} +7 -7
- package/dist/_node-chunks/{chunk-2BJIHWOK.js → chunk-DQ44ZAEM.js} +6 -6
- package/dist/_node-chunks/{chunk-URRTQ2QM.js → chunk-DR7NW2MI.js} +8 -8
- package/dist/_node-chunks/{chunk-CDRLLNRQ.js → chunk-DRCP3DQF.js} +11 -11
- package/dist/_node-chunks/{chunk-5WHA37KG.js → chunk-EBWZKN2I.js} +39 -39
- package/dist/_node-chunks/{chunk-AWXGCPW6.js → chunk-ECOW63CV.js} +6 -6
- package/dist/_node-chunks/chunk-ENBDAHOV.js +18 -0
- package/dist/_node-chunks/{chunk-SVZ6Q3CS.js → chunk-FAEOR2AW.js} +6 -6
- package/dist/_node-chunks/{chunk-MDKFZRYG.js → chunk-FERXOKZY.js} +8 -8
- package/dist/_node-chunks/chunk-FJFB7TWU.js +495 -0
- package/dist/_node-chunks/{chunk-NKAUZU4C.js → chunk-FQGQ5KHN.js} +6 -6
- package/dist/_node-chunks/{chunk-CWD5A6NI.js → chunk-FR2ZDWKJ.js} +7 -7
- package/dist/_node-chunks/{chunk-JBCKN6P4.js → chunk-FRBE7ES4.js} +6 -6
- package/dist/_node-chunks/chunk-FWAF5NBL.js +20 -0
- package/dist/_node-chunks/{chunk-IZISFDKM.js → chunk-FXBZWUW3.js} +54 -42
- package/dist/_node-chunks/chunk-FZ453CHY.js +25 -0
- package/dist/_node-chunks/{chunk-NZ3GOT7V.js → chunk-G2ZUFOHU.js} +6 -6
- package/dist/_node-chunks/{chunk-PEIAGMSR.js → chunk-GBVWRZHP.js} +6 -6
- package/dist/_node-chunks/{chunk-3CLITGI2.js → chunk-GGE7TBVX.js} +6 -6
- package/dist/_node-chunks/{chunk-QMU5ODXZ.js → chunk-GJSYGBI5.js} +7 -7
- package/dist/_node-chunks/{chunk-U4GKV7GZ.js → chunk-GKHLTHYM.js} +10 -10
- package/dist/_node-chunks/{chunk-I2ANCID7.js → chunk-GQYATLH6.js} +66 -145
- package/dist/_node-chunks/{chunk-RJXEPYEN.js → chunk-HCP5DG52.js} +64 -21
- package/dist/_node-chunks/chunk-HVOSLI2K.js +20 -0
- package/dist/_node-chunks/{chunk-A724RK5H.js → chunk-ID3WA6WR.js} +9 -6
- package/dist/_node-chunks/{chunk-IJL5JOLL.js → chunk-IGOX6TUG.js} +7 -7
- package/dist/_node-chunks/{chunk-2JSABFAM.js → chunk-IL7YA7QJ.js} +10 -10
- package/dist/_node-chunks/{chunk-RHG33T7C.js → chunk-IUPE4SU2.js} +10 -10
- package/dist/_node-chunks/{chunk-CXLL2F6O.js → chunk-JVWXCB3L.js} +25 -8
- package/dist/_node-chunks/chunk-K4O2ZAMU.js +57 -0
- package/dist/_node-chunks/{chunk-XTTAS346.js → chunk-KRWR44KT.js} +6 -6
- package/dist/_node-chunks/{chunk-HKUNJELN.js → chunk-KWNBN3DV.js} +8 -8
- package/dist/_node-chunks/{chunk-4TV3Z3S3.js → chunk-LG3NMXCM.js} +6 -6
- package/dist/_node-chunks/{chunk-CYPPELO4.js → chunk-LH5QBX2U.js} +22 -32
- package/dist/_node-chunks/{chunk-XJSYJTBD.js → chunk-LX2XSPPL.js} +7 -7
- package/dist/_node-chunks/{chunk-G5OYQQDY.js → chunk-M4QNXI37.js} +6 -6
- package/dist/_node-chunks/{chunk-ILWHW4HU.js → chunk-MBPHOLXB.js} +15 -15
- package/dist/_node-chunks/{chunk-2UG3IYCC.js → chunk-MIWBXEUH.js} +6 -6
- package/dist/_node-chunks/{chunk-HKQEE62W.js → chunk-MKUA4ZCG.js} +8 -8
- package/dist/_node-chunks/{chunk-JEC2OK5B.js → chunk-MQC7ZY6L.js} +7 -7
- package/dist/_node-chunks/{chunk-NIHZECYO.js → chunk-MRCPS4S3.js} +6 -6
- package/dist/_node-chunks/{chunk-2XDUXZGI.js → chunk-MY7UVHPL.js} +8 -8
- package/dist/_node-chunks/{chunk-R7CY5LX6.js → chunk-ND323XCC.js} +6 -6
- package/dist/_node-chunks/{chunk-5GN5N22E.js → chunk-NGFFEW2B.js} +131 -148
- package/dist/_node-chunks/{chunk-ULW4SLMN.js → chunk-OPG46TLN.js} +34 -949
- package/dist/_node-chunks/chunk-PEL4YXU6.js +19 -0
- package/dist/_node-chunks/{chunk-JE6JEGXA.js → chunk-QFXAGOIO.js} +9 -9
- package/dist/_node-chunks/{chunk-GVSFRNWZ.js → chunk-QGC3UWR5.js} +6 -6
- package/dist/_node-chunks/{chunk-B6SKX4JF.js → chunk-QGVU7IFS.js} +7 -7
- package/dist/_node-chunks/{chunk-Y2GH4XO7.js → chunk-QOFBJXPH.js} +650 -9
- package/dist/_node-chunks/chunk-QVLHVO4X.js +532 -0
- package/dist/_node-chunks/{chunk-EWXASIWR.js → chunk-R2ZCFA7I.js} +7 -7
- package/dist/_node-chunks/{chunk-MJ2UD7FU.js → chunk-RC4HPD5Q.js} +7 -7
- package/dist/_node-chunks/{chunk-7DCDBICW.js → chunk-RJXAXHDJ.js} +13 -13
- package/dist/_node-chunks/{chunk-2QTI45JU.js → chunk-SGEPJMTU.js} +35 -35
- package/dist/_node-chunks/{chunk-KGOAOPKR.js → chunk-SYUOBOB5.js} +6 -6
- package/dist/_node-chunks/{chunk-QVMUIU7S.js → chunk-T5VZYRL2.js} +6 -6
- package/dist/_node-chunks/chunk-T6IU66AM.js +69 -0
- package/dist/_node-chunks/{chunk-6APBQVEX.js → chunk-THDTJJMO.js} +7 -7
- package/dist/_node-chunks/{chunk-ASJFOW6O.js → chunk-TNFH4Y4G.js} +8 -8
- package/dist/_node-chunks/{chunk-ICADUNQM.js → chunk-TY2ZY7AO.js} +6 -6
- package/dist/_node-chunks/{chunk-PBMWZVLD.js → chunk-TZIT6SZP.js} +6 -6
- package/dist/_node-chunks/{chunk-US7L4S72.js → chunk-VG2KFIOW.js} +9 -9
- package/dist/_node-chunks/{chunk-7BVUZZIY.js → chunk-VSHYJR23.js} +7 -7
- package/dist/_node-chunks/{chunk-ILVD64RB.js → chunk-VUMGWJ6Y.js} +8 -8
- package/dist/_node-chunks/{chunk-DWE36J35.js → chunk-WVRM6DQU.js} +7 -7
- package/dist/_node-chunks/{chunk-AANHLH5M.js → chunk-YU5TVYPS.js} +6 -6
- package/dist/_node-chunks/{chunk-BENYUF74.js → chunk-ZBWAA2EY.js} +77 -78
- package/dist/_node-chunks/chunk-ZD5TUA6I.js +20 -0
- package/dist/_node-chunks/{chunk-AWJOXJAZ.js → chunk-ZFLK7MY5.js} +8 -8
- package/dist/_node-chunks/dist-7OJKTBKL.js +27 -0
- package/dist/_node-chunks/dist-MWP6WLW4.js +16 -0
- package/dist/_node-chunks/{local-runtime-4UNT5EZJ.js → local-runtime-V5YTRN24.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-ZY6XLLA4.js → mdx-plugin-CBOD52VP.js} +2263 -130
- package/dist/_node-chunks/{monorepo-B65J4UFS.js → monorepo-GF6H53U4.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-K4TTV2DQ.js} +12 -12
- package/dist/_node-chunks/optimized-tests-KOTSVWTN.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-LOHSM7ID.js → pattern-copy-play-M2QNC4IZ.js} +12 -12
- package/dist/_node-chunks/postinstallAddon-WXKJL6DP.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-22ZBI6K4.js → rehype-external-links-3IDE4CYH.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-ROZVEEFZ.js → rehype-slug-GKB3WS3U.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-EDE2B34G.js → relaxed-limits-C6QU365N.js} +12 -12
- package/dist/_node-chunks/{run-372BSBV5.js → run-TMVS3KKA.js} +273 -13
- package/dist/_node-chunks/{run-IR3BRDJV.js → run-XWBUPXLN.js} +17 -17
- package/dist/_node-chunks/session-id-VMH57SKN.js +23 -0
- package/dist/_node-chunks/{setup-6TMCKUTA.js → setup-KEEJK4WI.js} +9 -9
- package/dist/_node-chunks/{vitest.config.4.template-QJBEVCKG.js → vitest.config.4.template-74HEE4WJ.js} +9 -9
- package/dist/actions/decorator.js +3 -2
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.js +3 -2
- package/dist/addon-a11y/index.d.ts +3 -3
- package/dist/addon-a11y/index.js +2 -1
- package/dist/addon-a11y/manager.js +40 -37
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +2 -1
- package/dist/addon-docs/blocks.d.ts +20 -1
- package/dist/addon-docs/blocks.js +150 -74
- 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/index.js +5 -2
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-links/preview.js +5 -2
- package/dist/addon-links/react/index.js +4 -1
- package/dist/addon-mcp/preset.js +29 -21
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +37 -82
- package/dist/addon-ondevice-actions/index.js +5 -1
- package/dist/addon-ondevice-actions/register.js +5 -1
- 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/manager.js +2 -2
- 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 +4 -4
- 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 +21 -21
- 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 +15 -16
- package/dist/addon-vitest/vitest-plugin/global-setup.js +8 -8
- package/dist/addon-vitest/vitest-plugin/index.js +23 -23
- 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.d.ts +91 -842
- package/dist/babel/index.js +13 -19
- package/dist/backgrounds/index.d.ts +1 -1
- package/dist/bin/core.js +65 -64
- package/dist/bin/dispatcher.js +18 -16
- package/dist/bin/loader.js +17 -16
- 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-BTVrWliM.d.ts → chunk-BGhyFTJO.d.ts} +2 -2
- package/dist/{chunk-DtHByo32.d.ts → chunk-CFk6djyM.d.ts} +5 -5
- package/dist/{chunk-CwQKNaYL.d.ts → chunk-CNqjcOmK.d.ts} +1 -1
- package/dist/{chunk-CMeX4WRe.d.ts → chunk-CT2iXaHz.d.ts} +1 -1
- package/dist/chunk-CV4-Z2pn.d.ts +30 -0
- package/dist/{chunk-B2t1tGRh.d.ts → chunk-CYuvV2sR.d.ts} +11 -13
- package/dist/{chunk-DEVFdzxR.d.ts → chunk-D0NUmzXp.d.ts} +1 -1
- package/dist/{chunk-DzuY9DXg.d.ts → chunk-DDd8BhTY.d.ts} +2 -2
- package/dist/{chunk-Dw1z1Pki.d.ts → chunk-DROZ9oel.d.ts} +50 -314
- 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-C-bavsOH.d.ts → chunk-Dw_4ad2Y.d.ts} +6 -6
- package/dist/{chunk-C2p5r3Vt.d.ts → chunk-Fg1Fm__9.d.ts} +119 -29
- package/dist/chunk-Susgfkap.d.ts +20 -0
- package/dist/cli/index.d.ts +13 -866
- package/dist/cli/index.js +44 -4954
- package/dist/cli/skills/content/index.d.ts +1 -1
- package/dist/cli/skills/content/index.js +2 -2
- package/dist/cli/tools/sdk/child-host.d.ts +1 -1
- package/dist/cli/tools/sdk/child-host.js +17 -17
- package/dist/cli/tools/sdk/index.d.ts +1 -1
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.js +3 -1
- package/dist/common/index.d.ts +17 -29
- package/dist/common/index.js +36 -42
- package/dist/components/index.d.ts +41 -238
- package/dist/components/index.js +2738 -8515
- package/dist/core-events/index.d.ts +4 -3
- package/dist/core-events/index.js +3 -1
- package/dist/core-server/index.d.ts +6 -6
- package/dist/core-server/index.js +661 -249
- package/dist/core-server/presets/common-manager.js +603 -1027
- package/dist/core-server/presets/common-override-preset.js +12 -10
- package/dist/core-server/presets/common-preset.js +55 -48
- 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 +55 -120
- package/dist/csf-tools/index.d.ts +17 -13
- package/dist/csf-tools/index.js +17 -15
- package/dist/docs-tools/index.js +2 -2
- package/dist/highlight/index.d.ts +1 -1
- package/dist/instrumenter/index.js +8 -6
- package/dist/manager/_manager-chunks/{globals-runtime-B0I9dSVs.js → globals-runtime-BKQscPdC.js} +824 -727
- package/dist/manager/_manager-chunks/globals-runtime-BY3epqww.js +1807 -0
- package/dist/manager/_manager-chunks/globals-runtime-Bj5KDUJi.js +8935 -0
- package/dist/manager/_manager-chunks/{globals-runtime-ZHrQFa3-.js → globals-runtime-Bs75QQ_I.js} +77 -553
- package/dist/manager/_manager-chunks/{globals-runtime-FC201B7s.js → globals-runtime-BweHuXkK.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-eLPTIfX-.js → globals-runtime-CA8AuIRT.js} +3 -145
- package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
- package/dist/manager/_manager-chunks/{globals-runtime-CXoVXiJA.js → globals-runtime-CJL1dQtn.js} +324 -118
- package/dist/manager/_manager-chunks/{globals-runtime-BQCkfH1B.js → globals-runtime-CfurFwS_.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-BmphMP6z.js → globals-runtime-CvIgTRVu.js} +10 -10
- package/dist/manager/_manager-chunks/{globals-runtime-f5oIrim0.js → globals-runtime-DBba3I9c.js} +394 -189
- package/dist/manager/_manager-chunks/{globals-runtime-BvM-NY2g.js → globals-runtime-DvV_TF3-.js} +638 -1731
- package/dist/manager/_manager-chunks/{globals-runtime-C02fvgcd.js → globals-runtime-NwJK8t0T.js} +410 -379
- package/dist/manager/_manager-chunks/{globals-runtime-8HkdnU2F.js → globals-runtime-WZKaeKm9.js} +93 -2146
- package/dist/manager/_manager-chunks/globals-runtime-wjkxyMn0.js +5283 -0
- package/dist/manager/_manager-chunks/runtime-5B2mWjEm.js +294 -0
- package/dist/manager/_manager-chunks/{runtime-DMig8mT7.js → runtime-5o_11Jae.js} +4 -3
- package/dist/manager/_manager-chunks/runtime-B_nqedQW.js +197 -0
- package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
- package/dist/manager/_manager-chunks/{runtime-DcJBhKG9.js → runtime-Bs3bEhuy.js} +200 -376
- package/dist/manager/_manager-chunks/{runtime-i-PDAHLR.js → runtime-CBQsKmch.js} +5 -147
- package/dist/manager/_manager-chunks/runtime-DG61zYUm.js +1158 -0
- package/dist/manager/_manager-chunks/{runtime-eDVAYF7N.js → runtime-DtCVCy4G.js} +10 -29
- package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
- package/dist/manager/_manager-chunks/{runtime-Bry1Biu7.js → runtime-eBAgOym6.js} +989 -915
- package/dist/manager/_manager-chunks/{runtime-DtyerpFe.js → runtime-j9yqh0tr.js} +124 -80
- package/dist/manager/_manager-chunks/{runtime-D94Vq3oR.js → runtime-jj8qYc2n.js} +5 -531
- 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 +72 -82
- 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 +22 -17
- package/dist/mocking-utils/mocker-runtime.js +2 -2
- package/dist/nextjs-vite/index.d.ts +2 -2
- package/dist/nextjs-vite/index.js +4 -3
- package/dist/nextjs-vite/node/index.d.ts +2 -2
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/node-stand-ins/index.d.ts +68 -0
- package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
- package/dist/nextjs-vite/preset.js +93 -14
- package/dist/nextjs-vite/preview.js +1 -1
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.d.ts +2 -3
- package/dist/nextjs-vite-plugin/index.js +15 -30
- 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.d.ts +65 -72
- package/dist/node-logger/index.js +11 -12
- package/dist/oxc-parser/index.js +11 -13
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-DrTjJkPY.js → runtime-BJwGQok8.js} +77 -76
- package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-BPwAnlRx.js} +482 -334
- package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-BUnOhg9h.js} +2 -2
- package/dist/preview/_chunks/{runtime-CxZK_Ln3.js → runtime-BZ4pNS3g.js} +2 -2
- package/dist/preview/_chunks/runtime-Bcv1hJky.js +6305 -0
- package/dist/preview/_chunks/{runtime-iXdo8CR8.js → runtime-BgPhfM5P.js} +54 -8
- package/dist/preview/_chunks/{runtime-CsV4HZPV.js → runtime-BhSZ1Mwt.js} +335 -137
- package/dist/preview/_chunks/{runtime-BwSxqk3t.js → runtime-BsMjBzuq.js} +6 -16
- package/dist/preview/_chunks/{runtime-CqHxptiK.js → runtime-C1jgT6tJ.js} +93 -2145
- package/dist/preview/_chunks/{runtime-DuHdxMFA.js → runtime-CkOhMcXf.js} +8 -8
- package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-WapFVPAh.js} +29 -29
- 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 +11 -9
- package/dist/preview-errors.d.ts +1 -1
- package/dist/preview-errors.js +2 -2
- package/dist/react/docgen/docgen-worker.js +11 -12
- package/dist/react/entry-preview.js +2 -1
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +6 -4
- package/dist/react/preset.js +13 -14
- package/dist/react/preview.d.ts +1 -1
- package/dist/react/preview.js +3 -2
- package/dist/react-native/bin/get-stories.js +12 -12
- package/dist/react-native/index.d.ts +11 -11
- package/dist/react-native/index.js +46 -231
- package/dist/react-native/metro/node.d.ts +2 -2
- package/dist/react-native/metro/node.js +10 -9
- package/dist/react-native/metro/{withStorybook.d.ts → withForkbook.d.ts} +11 -11
- package/dist/react-native/metro/{withStorybook.js → withForkbook.js} +22 -21
- package/dist/react-native/scripts/generate.d.ts +1 -1
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-native/stub.js +1 -1
- 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 +207 -624
- package/dist/react-native-ui-common/index.d.ts +2 -3
- package/dist/react-vite/index.d.ts +2 -2
- package/dist/react-vite/node/index.d.ts +3 -3
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.d.ts +69 -1
- package/dist/router/index.js +52 -10
- 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.d.ts +3 -3
- package/dist/telemetry/index.js +43 -45
- package/dist/test/index.js +810 -575
- package/dist/theming/create.js +2 -1
- package/dist/theming/index.d.ts +5 -5
- package/dist/theming/index.js +41 -16
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +5 -5
- package/dist/viewport/index.d.ts +1 -1
- package/package.json +36 -81
- 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/_browser-chunks/WithTooltip-GZSSFOG3.js +0 -1619
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
- package/dist/_browser-chunks/chunk-JMC7AIKT.js +0 -108
- package/dist/_node-chunks/builder-manager-FPV2L36T.js +0 -1661
- package/dist/_node-chunks/chunk-356LV3NX.js +0 -36
- package/dist/_node-chunks/chunk-5BTU7UZ5.js +0 -1877
- package/dist/_node-chunks/chunk-5J3BMBMY.js +0 -51
- package/dist/_node-chunks/chunk-BCRWDMAU.js +0 -11
- package/dist/_node-chunks/chunk-BE6ULVPN.js +0 -662
- package/dist/_node-chunks/chunk-CSXS6LVI.js +0 -29
- package/dist/_node-chunks/chunk-DUOXRUVQ.js +0 -18
- package/dist/_node-chunks/chunk-FUYZNTIS.js +0 -23
- package/dist/_node-chunks/chunk-M2BRIUUP.js +0 -25
- package/dist/_node-chunks/chunk-RJUHZH32.js +0 -20
- package/dist/_node-chunks/chunk-TB6Y6NSL.js +0 -3837
- package/dist/_node-chunks/chunk-VQEQ7ZLS.js +0 -4731
- package/dist/_node-chunks/chunk-WQ7PSP6H.js +0 -19
- package/dist/_node-chunks/chunk-WVCU34IS.js +0 -23
- package/dist/_node-chunks/chunk-X6OWHTYE.js +0 -20
- package/dist/_node-chunks/chunk-Y2DEKWVE.js +0 -3008
- package/dist/_node-chunks/chunk-ZBAIFZNB.js +0 -5414
- package/dist/_node-chunks/dist-ZGSN23B7.js +0 -16
- package/dist/_node-chunks/globby-HWZL7XSQ.js +0 -2884
- package/dist/_node-chunks/jiti-GNDCTFYU.js +0 -3848
- package/dist/_node-chunks/lib-DI662U2R.js +0 -366
- 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/chunk-BfBzpgct.d.ts +0 -916
- package/dist/chunk-BxWufQms.d.ts +0 -142
- package/dist/core-server/presets/common-manager.css +0 -170
- package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +0 -3389
- package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +0 -9766
- package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +0 -5357
- package/dist/manager/_manager-chunks/runtime-B1L9TH89.js +0 -452
- package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +0 -998
- package/dist/manager/_manager-chunks/runtime-DpgBAFGf.js +0 -22
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
- package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
preview_exports
|
|
3
|
-
} from "../_browser-chunks/chunk-
|
|
3
|
+
} from "../_browser-chunks/chunk-7DQREF4S.js";
|
|
4
4
|
import {
|
|
5
5
|
INTERNAL_DEFAULT_PROJECT_ANNOTATIONS
|
|
6
|
-
} from "../_browser-chunks/chunk-
|
|
6
|
+
} from "../_browser-chunks/chunk-O24AZJZ7.js";
|
|
7
7
|
import "../_browser-chunks/chunk-GNZY6LOW.js";
|
|
8
|
-
import "../_browser-chunks/chunk-
|
|
8
|
+
import "../_browser-chunks/chunk-EQKMUQF3.js";
|
|
9
9
|
import "../_browser-chunks/chunk-WHQRNHXD.js";
|
|
10
|
+
import "../_browser-chunks/chunk-6AKCRYVX.js";
|
|
10
11
|
import "../_browser-chunks/chunk-IMSF75WX.js";
|
|
11
12
|
|
|
12
13
|
// src/nextjs-vite/index.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as ForkbookConfig } from "../../chunk-CFk6djyM.js";
|
|
2
2
|
|
|
3
3
|
//#region .dts-emit/code/core/src/nextjs-vite/node/index.d.ts
|
|
4
|
-
declare function defineMain(config:
|
|
4
|
+
declare function defineMain(config: ForkbookConfig): ForkbookConfig;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { defineMain };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_upaeg5sjpn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_upaeg5sjpn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_upaeg5sjpn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_upaeg5sjpn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_upaeg5sjpn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_upaeg5sjpn.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "../../_node-chunks/chunk-
|
|
12
|
+
import "../../_node-chunks/chunk-FQGQ5KHN.js";
|
|
13
13
|
|
|
14
14
|
// src/nextjs-vite/node/index.ts
|
|
15
15
|
function defineMain(config) {
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
//#region .dts-emit/code/core/src/nextjs-vite/node-stand-ins/index.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Browser stand-ins for the small part of `node:fs` and `node:path` that async server pages use
|
|
4
|
+
* to read project files at build time. The nextjs-vite preset aliases the Node modules to virtual
|
|
5
|
+
* modules that call these functions (see `plugin.ts`).
|
|
6
|
+
*/
|
|
7
|
+
/** Sets the project root. `process.cwd()` and `path.resolve()` use it. */
|
|
8
|
+
declare function setProjectRoot(root: string): void;
|
|
9
|
+
declare function getProjectRoot(): string;
|
|
10
|
+
declare const sep = "/";
|
|
11
|
+
declare const delimiter = ":";
|
|
12
|
+
declare function isAbsolute(p: string): boolean;
|
|
13
|
+
declare function normalize(p: string): string;
|
|
14
|
+
declare function join(...parts: string[]): string;
|
|
15
|
+
declare function resolve(...parts: string[]): string;
|
|
16
|
+
declare function dirname(p: string): string;
|
|
17
|
+
declare function basename(p: string, ext?: string): string;
|
|
18
|
+
declare function extname(p: string): string;
|
|
19
|
+
declare function relative(from: string, to: string): string;
|
|
20
|
+
declare function parse(p: string): {
|
|
21
|
+
root: string;
|
|
22
|
+
dir: string;
|
|
23
|
+
base: string;
|
|
24
|
+
ext: string;
|
|
25
|
+
name: string;
|
|
26
|
+
};
|
|
27
|
+
declare function format(p: {
|
|
28
|
+
dir?: string;
|
|
29
|
+
root?: string;
|
|
30
|
+
base?: string;
|
|
31
|
+
name?: string;
|
|
32
|
+
ext?: string;
|
|
33
|
+
}): string;
|
|
34
|
+
declare const pathFunctions: {
|
|
35
|
+
sep: string;
|
|
36
|
+
delimiter: string;
|
|
37
|
+
isAbsolute: typeof isAbsolute;
|
|
38
|
+
normalize: typeof normalize;
|
|
39
|
+
join: typeof join;
|
|
40
|
+
resolve: typeof resolve;
|
|
41
|
+
dirname: typeof dirname;
|
|
42
|
+
basename: typeof basename;
|
|
43
|
+
extname: typeof extname;
|
|
44
|
+
relative: typeof relative;
|
|
45
|
+
parse: typeof parse;
|
|
46
|
+
format: typeof format;
|
|
47
|
+
};
|
|
48
|
+
declare const path: typeof pathFunctions & {
|
|
49
|
+
posix: typeof pathFunctions;
|
|
50
|
+
};
|
|
51
|
+
type Callback = (error: Error | null, data?: string | Uint8Array) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Makes the fs stand-in.
|
|
54
|
+
*
|
|
55
|
+
* @param files File contents. Each key is a path from the project root, as `import.meta.glob`
|
|
56
|
+
* gives it (`./content/x.md` or `/content/x.md`).
|
|
57
|
+
*/
|
|
58
|
+
declare function createFs(files: Record<string, string>): {
|
|
59
|
+
readFileSync: (p: unknown, options?: unknown) => string | Uint8Array;
|
|
60
|
+
existsSync: (p: unknown) => boolean;
|
|
61
|
+
readFile: (p: unknown, options?: unknown, callback?: Callback) => void;
|
|
62
|
+
promises: {
|
|
63
|
+
readFile: (p: unknown, options?: unknown) => Promise<string | Uint8Array<ArrayBufferLike>>;
|
|
64
|
+
access: (p: unknown) => Promise<void>;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
//#endregion
|
|
68
|
+
export { basename, createFs, delimiter, dirname, extname, format, getProjectRoot, isAbsolute, join, normalize, parse, path, relative, resolve, sep, setProjectRoot };
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import "../../_browser-chunks/chunk-IMSF75WX.js";
|
|
2
|
+
|
|
3
|
+
// src/nextjs-vite/node-stand-ins/index.ts
|
|
4
|
+
var projectRoot = "/";
|
|
5
|
+
function setProjectRoot(root) {
|
|
6
|
+
projectRoot = normalize(root.replace(/\\/g, "/")).replace(/(.)\/$/, "$1");
|
|
7
|
+
let g = globalThis;
|
|
8
|
+
g.process ??= { env: {} }, g.process.cwd = () => projectRoot;
|
|
9
|
+
}
|
|
10
|
+
function getProjectRoot() {
|
|
11
|
+
return projectRoot;
|
|
12
|
+
}
|
|
13
|
+
var sep = "/", delimiter = ":";
|
|
14
|
+
function isAbsolute(p) {
|
|
15
|
+
return p.startsWith("/");
|
|
16
|
+
}
|
|
17
|
+
function normalize(p) {
|
|
18
|
+
if (p === "") return ".";
|
|
19
|
+
let absolute = isAbsolute(p), trailing = p.endsWith("/"), parts = [];
|
|
20
|
+
for (let part of p.split("/"))
|
|
21
|
+
part === "" || part === "." || (part === ".." ? parts.length && parts[parts.length - 1] !== ".." ? parts.pop() : absolute || parts.push("..") : parts.push(part));
|
|
22
|
+
let out = parts.join("/");
|
|
23
|
+
return absolute ? "/" + out + (trailing && out ? "/" : "") : out === "" ? trailing ? "./" : "." : trailing ? out + "/" : out;
|
|
24
|
+
}
|
|
25
|
+
function join(...parts) {
|
|
26
|
+
return normalize(parts.filter((p) => p !== "").join("/"));
|
|
27
|
+
}
|
|
28
|
+
function resolve(...parts) {
|
|
29
|
+
let out = "";
|
|
30
|
+
for (let i = parts.length - 1; i >= 0 && !isAbsolute(out); i--)
|
|
31
|
+
parts[i] && (out = out ? `${parts[i]}/${out}` : parts[i]);
|
|
32
|
+
return isAbsolute(out) || (out = out ? `${projectRoot}/${out}` : projectRoot), normalize(out).replace(/(.)\/$/, "$1");
|
|
33
|
+
}
|
|
34
|
+
function dirname(p) {
|
|
35
|
+
let trimmed = p.length > 1 ? p.replace(/\/+$/, "") : p, index = trimmed.lastIndexOf("/");
|
|
36
|
+
return index === -1 ? "." : index === 0 ? "/" : trimmed.slice(0, index);
|
|
37
|
+
}
|
|
38
|
+
function basename(p, ext) {
|
|
39
|
+
let trimmed = p.length > 1 ? p.replace(/\/+$/, "") : p, base = trimmed.slice(trimmed.lastIndexOf("/") + 1);
|
|
40
|
+
return ext && base.endsWith(ext) && base !== ext ? base.slice(0, -ext.length) : base;
|
|
41
|
+
}
|
|
42
|
+
function extname(p) {
|
|
43
|
+
let base = basename(p), index = base.lastIndexOf(".");
|
|
44
|
+
return index <= 0 ? "" : base.slice(index);
|
|
45
|
+
}
|
|
46
|
+
function relative(from, to) {
|
|
47
|
+
let a = resolve(from).split("/").filter(Boolean), b = resolve(to).split("/").filter(Boolean), i = 0;
|
|
48
|
+
for (; i < a.length && i < b.length && a[i] === b[i]; ) i++;
|
|
49
|
+
return [...Array(a.length - i).fill(".."), ...b.slice(i)].join("/");
|
|
50
|
+
}
|
|
51
|
+
function parse(p) {
|
|
52
|
+
let base = basename(p), ext = extname(p);
|
|
53
|
+
return {
|
|
54
|
+
root: isAbsolute(p) ? "/" : "",
|
|
55
|
+
dir: dirname(p),
|
|
56
|
+
base,
|
|
57
|
+
ext,
|
|
58
|
+
name: ext ? base.slice(0, -ext.length) : base
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function format(p) {
|
|
62
|
+
let base = p.base ?? `${p.name ?? ""}${p.ext ?? ""}`, dir = p.dir ?? p.root ?? "";
|
|
63
|
+
return dir ? dir.endsWith("/") ? dir + base : `${dir}/${base}` : base;
|
|
64
|
+
}
|
|
65
|
+
var pathFunctions = {
|
|
66
|
+
sep,
|
|
67
|
+
delimiter,
|
|
68
|
+
isAbsolute,
|
|
69
|
+
normalize,
|
|
70
|
+
join,
|
|
71
|
+
resolve,
|
|
72
|
+
dirname,
|
|
73
|
+
basename,
|
|
74
|
+
extname,
|
|
75
|
+
relative,
|
|
76
|
+
parse,
|
|
77
|
+
format
|
|
78
|
+
}, path = {
|
|
79
|
+
...pathFunctions,
|
|
80
|
+
posix: pathFunctions
|
|
81
|
+
};
|
|
82
|
+
function notFound(p, syscall) {
|
|
83
|
+
let error = new Error(
|
|
84
|
+
`ENOENT: no such file or directory, ${syscall} '${p}'. In the browser, Forkbook can only read the text files of the project.`
|
|
85
|
+
);
|
|
86
|
+
return error.code = "ENOENT", error.path = p, error.syscall = syscall, error;
|
|
87
|
+
}
|
|
88
|
+
function toPath(p) {
|
|
89
|
+
return p instanceof URL ? decodeURIComponent(p.pathname) : String(p);
|
|
90
|
+
}
|
|
91
|
+
function encodingOf(options) {
|
|
92
|
+
return typeof options == "string" ? options : options?.encoding;
|
|
93
|
+
}
|
|
94
|
+
function createFs(files) {
|
|
95
|
+
let byPath = /* @__PURE__ */ new Map();
|
|
96
|
+
for (let [key, value] of Object.entries(files))
|
|
97
|
+
byPath.set(normalize(key.replace(/^\.?\//, "")), value);
|
|
98
|
+
let relativeKey = (p) => relative(projectRoot, resolve(toPath(p)));
|
|
99
|
+
function readFileSync(p, options) {
|
|
100
|
+
let content = byPath.get(relativeKey(p));
|
|
101
|
+
if (content === void 0) throw notFound(toPath(p), "open");
|
|
102
|
+
return encodingOf(options) ? content : new TextEncoder().encode(content);
|
|
103
|
+
}
|
|
104
|
+
function existsSync(p) {
|
|
105
|
+
let key = relativeKey(p);
|
|
106
|
+
if (key === "" || byPath.has(key)) return !0;
|
|
107
|
+
let prefix = key + "/";
|
|
108
|
+
for (let file of byPath.keys()) if (file.startsWith(prefix)) return !0;
|
|
109
|
+
return !1;
|
|
110
|
+
}
|
|
111
|
+
function readFile(p, options, callback) {
|
|
112
|
+
let cb = typeof options == "function" ? options : callback, opts = typeof options == "function" ? void 0 : options;
|
|
113
|
+
queueMicrotask(() => {
|
|
114
|
+
try {
|
|
115
|
+
cb?.(null, readFileSync(p, opts));
|
|
116
|
+
} catch (error) {
|
|
117
|
+
cb?.(error);
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
return { readFileSync, existsSync, readFile, promises: {
|
|
122
|
+
readFile: async (p, options) => readFileSync(p, options),
|
|
123
|
+
access: async (p) => {
|
|
124
|
+
if (!existsSync(p)) throw notFound(toPath(p), "access");
|
|
125
|
+
}
|
|
126
|
+
} };
|
|
127
|
+
}
|
|
128
|
+
export {
|
|
129
|
+
basename,
|
|
130
|
+
createFs,
|
|
131
|
+
delimiter,
|
|
132
|
+
dirname,
|
|
133
|
+
extname,
|
|
134
|
+
format,
|
|
135
|
+
getProjectRoot,
|
|
136
|
+
isAbsolute,
|
|
137
|
+
join,
|
|
138
|
+
normalize,
|
|
139
|
+
parse,
|
|
140
|
+
path,
|
|
141
|
+
relative,
|
|
142
|
+
resolve,
|
|
143
|
+
sep,
|
|
144
|
+
setProjectRoot
|
|
145
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_upaeg5sjpn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_upaeg5sjpn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_upaeg5sjpn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_upaeg5sjpn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_upaeg5sjpn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_upaeg5sjpn.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
|
resolvePackageDir
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
15
|
-
import "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-VUMGWJ6Y.js";
|
|
15
|
+
import "../_node-chunks/chunk-T5VZYRL2.js";
|
|
16
16
|
import {
|
|
17
17
|
__commonJS,
|
|
18
18
|
__require,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-FQGQ5KHN.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/lilconfig/src/index.js
|
|
23
23
|
var require_src = __commonJS({
|
|
@@ -341,7 +341,7 @@ var require_req = __commonJS({
|
|
|
341
341
|
}
|
|
342
342
|
if (jiti === void 0)
|
|
343
343
|
try {
|
|
344
|
-
jiti = (await import("
|
|
344
|
+
jiti = (await import("jiti")).default;
|
|
345
345
|
} catch (error) {
|
|
346
346
|
importError.push(error);
|
|
347
347
|
}
|
|
@@ -458,7 +458,7 @@ var require_src2 = __commonJS({
|
|
|
458
458
|
async function yamlLoader(_, content) {
|
|
459
459
|
if (!yaml)
|
|
460
460
|
try {
|
|
461
|
-
yaml = await import("../_node-chunks/dist-
|
|
461
|
+
yaml = await import("../_node-chunks/dist-MWP6WLW4.js");
|
|
462
462
|
} catch (e) {
|
|
463
463
|
throw new Error(
|
|
464
464
|
`'yaml' is required for the YAML configuration files. Make sure it is installed
|
|
@@ -521,6 +521,81 @@ import { fileURLToPath } from "node:url";
|
|
|
521
521
|
import semver from "semver";
|
|
522
522
|
import vitePluginStorybookNextjs from "@aussieljk/forkbook/internal/nextjs-vite-plugin";
|
|
523
523
|
|
|
524
|
+
// src/nextjs-vite/node-stand-ins/plugin.ts
|
|
525
|
+
import { join } from "node:path";
|
|
526
|
+
var STAND_INS = "@aussieljk/forkbook/nextjs-vite/node-stand-ins", TEXT_EXTENSIONS = [
|
|
527
|
+
"md",
|
|
528
|
+
"markdown",
|
|
529
|
+
"txt",
|
|
530
|
+
"json",
|
|
531
|
+
"yml",
|
|
532
|
+
"yaml",
|
|
533
|
+
"toml",
|
|
534
|
+
"csv",
|
|
535
|
+
"tsv",
|
|
536
|
+
"html",
|
|
537
|
+
"xml"
|
|
538
|
+
], IGNORED_FOLDERS = [
|
|
539
|
+
"node_modules",
|
|
540
|
+
".next",
|
|
541
|
+
"dist",
|
|
542
|
+
".git",
|
|
543
|
+
"forkbook-static",
|
|
544
|
+
"coverage"
|
|
545
|
+
], FS_IDS = /* @__PURE__ */ new Set(["fs", "node:fs", "fs/promises", "node:fs/promises"]), PATH_IDS = /* @__PURE__ */ new Set(["path", "node:path", "path/posix", "node:path/posix"]), PATH_EXPORTS = [
|
|
546
|
+
"sep",
|
|
547
|
+
"delimiter",
|
|
548
|
+
"isAbsolute",
|
|
549
|
+
"normalize",
|
|
550
|
+
"join",
|
|
551
|
+
"resolve",
|
|
552
|
+
"dirname",
|
|
553
|
+
"basename",
|
|
554
|
+
"extname",
|
|
555
|
+
"relative",
|
|
556
|
+
"parse",
|
|
557
|
+
"format"
|
|
558
|
+
];
|
|
559
|
+
function fsModuleCode(root, promisesOnly) {
|
|
560
|
+
let patterns = [
|
|
561
|
+
`./**/*.{${TEXT_EXTENSIONS.join(",")}}`,
|
|
562
|
+
...IGNORED_FOLDERS.map((folder) => `!**/${folder}/**`)
|
|
563
|
+
], fsExports = promisesOnly ? `export const readFile = fs.promises.readFile;
|
|
564
|
+
export const access = fs.promises.access;
|
|
565
|
+
export default fs.promises;` : `export const { readFileSync, existsSync, readFile, promises } = fs;
|
|
566
|
+
export default fs;`;
|
|
567
|
+
return [
|
|
568
|
+
`import { createFs, setProjectRoot } from ${JSON.stringify(STAND_INS)};`,
|
|
569
|
+
`setProjectRoot(${JSON.stringify(root)});`,
|
|
570
|
+
`const files = import.meta.glob(${JSON.stringify(patterns)}, { query: '?raw', import: 'default', eager: true });`,
|
|
571
|
+
"const fs = createFs(files);",
|
|
572
|
+
fsExports
|
|
573
|
+
].join(`
|
|
574
|
+
`);
|
|
575
|
+
}
|
|
576
|
+
function pathModuleCode(root) {
|
|
577
|
+
return [
|
|
578
|
+
`import { path, setProjectRoot } from ${JSON.stringify(STAND_INS)};`,
|
|
579
|
+
`setProjectRoot(${JSON.stringify(root)});`,
|
|
580
|
+
`export const { ${[...PATH_EXPORTS, "posix"].join(", ")} } = path;`,
|
|
581
|
+
"export default path;"
|
|
582
|
+
].join(`
|
|
583
|
+
`);
|
|
584
|
+
}
|
|
585
|
+
function nodeStandInsPlugin(projectRoot) {
|
|
586
|
+
let root = projectRoot.replace(/\\/g, "/"), fsId = join(projectRoot, "__forkbook_node_fs__.js").replace(/\\/g, "/"), fsPromisesId = join(projectRoot, "__forkbook_node_fs_promises__.js").replace(/\\/g, "/"), pathId = "\0forkbook-node-path.js";
|
|
587
|
+
return {
|
|
588
|
+
name: "forkbook:nextjs-node-stand-ins",
|
|
589
|
+
enforce: "pre",
|
|
590
|
+
resolveId(id, _importer, options) {
|
|
591
|
+
return options?.ssr ? null : id === "fs/promises" || id === "node:fs/promises" ? fsPromisesId : FS_IDS.has(id) ? fsId : PATH_IDS.has(id) ? pathId : null;
|
|
592
|
+
},
|
|
593
|
+
load(id) {
|
|
594
|
+
return id === fsId ? fsModuleCode(root, !1) : id === fsPromisesId ? fsModuleCode(root, !0) : id === pathId ? pathModuleCode(root) : null;
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
|
|
524
599
|
// src/nextjs-vite/find-postcss-config.ts
|
|
525
600
|
var import_lilconfig = __toESM(require_src(), 1), import_postcss_load_config = __toESM(require_src2(), 1);
|
|
526
601
|
import { readFile, writeFile } from "node:fs/promises";
|
|
@@ -597,8 +672,8 @@ var normalizePostCssConfig = async (searchPath) => {
|
|
|
597
672
|
|
|
598
673
|
// src/nextjs-vite/utils.ts
|
|
599
674
|
import { readFileSync } from "node:fs";
|
|
600
|
-
import { join } from "node:path";
|
|
601
|
-
var getNextjsVersion = () => JSON.parse(readFileSync(
|
|
675
|
+
import { join as join2 } from "node:path";
|
|
676
|
+
var getNextjsVersion = () => JSON.parse(readFileSync(join2(resolvePackageDir("next"), "package.json"), "utf8")).version;
|
|
602
677
|
|
|
603
678
|
// src/nextjs-vite/preset.ts
|
|
604
679
|
var core = {
|
|
@@ -637,7 +712,11 @@ var core = {
|
|
|
637
712
|
"styled-jsx/style.js": fileURLToPath(import.meta.resolve("styled-jsx/style"))
|
|
638
713
|
}
|
|
639
714
|
},
|
|
640
|
-
plugins: [
|
|
715
|
+
plugins: [
|
|
716
|
+
...config2.plugins ?? [],
|
|
717
|
+
vitePluginStorybookNextjs(vitePluginOptions),
|
|
718
|
+
nodeStandInsPlugin(nextDir ?? config2.root ?? process.cwd())
|
|
719
|
+
]
|
|
641
720
|
};
|
|
642
721
|
};
|
|
643
722
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_upaeg5sjpn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_upaeg5sjpn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_upaeg5sjpn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_upaeg5sjpn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_upaeg5sjpn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_upaeg5sjpn.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "../../_node-chunks/chunk-
|
|
12
|
+
import "../../_node-chunks/chunk-FQGQ5KHN.js";
|
|
13
13
|
|
|
14
14
|
// src/nextjs-vite/vite-plugin/index.ts
|
|
15
15
|
import vitePluginStorybookNextjs from "@aussieljk/forkbook/internal/nextjs-vite-plugin";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { PluginOption } from "vite";
|
|
2
|
-
import { FilterPattern } from "@rollup/pluginutils";
|
|
1
|
+
import { FilterPattern, PluginOption } from "vite";
|
|
3
2
|
|
|
4
3
|
//#region .dts-emit/code/core/src/nextjs-vite-plugin/plugins/next-image/plugin.d.ts
|
|
5
4
|
type NextImagePluginOptions = {
|
|
@@ -16,7 +15,7 @@ type PluginOptions = {
|
|
|
16
15
|
dir?: string;
|
|
17
16
|
/**
|
|
18
17
|
* Control which image files are handled by the next-image plugin.
|
|
19
|
-
* @see https://
|
|
18
|
+
* @see https://forkbook.ljk.dev/docs/get-started/frameworks/nextjs-vite#faq-includingexcluding-images
|
|
20
19
|
*/
|
|
21
20
|
image?: NextImagePluginOptions;
|
|
22
21
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_upaeg5sjpn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_upaeg5sjpn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_upaeg5sjpn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_upaeg5sjpn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_upaeg5sjpn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_upaeg5sjpn.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -14,16 +14,14 @@ import {
|
|
|
14
14
|
getAlias,
|
|
15
15
|
getExecutionEnvironment,
|
|
16
16
|
getNextjsMajorVersion,
|
|
17
|
-
getViteMajorVersion,
|
|
18
17
|
isVitestEnv,
|
|
19
18
|
vitePluginNextMocks
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
21
|
-
import "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-5SMIGUYF.js";
|
|
20
|
+
import "../_node-chunks/chunk-FQGQ5KHN.js";
|
|
22
21
|
|
|
23
22
|
// src/nextjs-vite-plugin/index.ts
|
|
24
23
|
import { dirname, resolve as resolve3 } from "pathe";
|
|
25
24
|
import { createRequire as createRequire3 } from "node:module";
|
|
26
|
-
import tsconfigPaths from "vite-tsconfig-paths";
|
|
27
25
|
|
|
28
26
|
// src/nextjs-vite-plugin/plugins/next-env/plugin.ts
|
|
29
27
|
import { resolve } from "pathe";
|
|
@@ -596,7 +594,6 @@ typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
|
596
594
|
});
|
|
597
595
|
|
|
598
596
|
// src/nextjs-vite-plugin/index.ts
|
|
599
|
-
import nextLoadJsConfig2 from "next/dist/build/load-jsconfig.js";
|
|
600
597
|
import {
|
|
601
598
|
PHASE_DEVELOPMENT_SERVER,
|
|
602
599
|
PHASE_PRODUCTION_BUILD,
|
|
@@ -630,7 +627,7 @@ var vitePluginNextDynamic = () => ({
|
|
|
630
627
|
import { createHash } from "node:crypto";
|
|
631
628
|
import fs2 from "node:fs";
|
|
632
629
|
import { createRequire as createRequire2 } from "node:module";
|
|
633
|
-
import { createFilter as createFilter2 } from "
|
|
630
|
+
import { createFilter as createFilter2 } from "vite";
|
|
634
631
|
import path4 from "pathe";
|
|
635
632
|
import probeSync from "probe-image-size/sync.js";
|
|
636
633
|
import { dedent as dedent3 } from "ts-dedent";
|
|
@@ -676,7 +673,7 @@ function vitePluginNextImage(nextConfigResolver, options = {}) {
|
|
|
676
673
|
if (isSvg && hasVitePluginSvgr && !options.includeFiles && !options.excludeFiles && queryA !== void 0 && warnOnce(
|
|
677
674
|
dedent3`Detected vite-plugin-svgr but you are not passing image include or exclude patterns to the nextjs-vite plugin. This may cause a conflict between the two plugins and issues with SVG files.
|
|
678
675
|
|
|
679
|
-
For more info and recommended configuration, see: https://
|
|
676
|
+
For more info and recommended configuration, see: https://forkbook.ljk.dev/docs/get-started/frameworks/nextjs-vite#faq-includingexcluding-images`
|
|
680
677
|
), includePattern2.test(source) && !excludeImporterPattern.test(importer ?? "") && !importer?.startsWith(virtualImagePrefix)) {
|
|
681
678
|
let isAbsolute = path4.isAbsolute(source), importerPath = importer?.split("?")[0], imagePath = source;
|
|
682
679
|
if (importerPath && !isAbsolute)
|
|
@@ -784,28 +781,16 @@ function interopDefault(module) {
|
|
|
784
781
|
}
|
|
785
782
|
|
|
786
783
|
// src/nextjs-vite-plugin/index.ts
|
|
787
|
-
var require4 = createRequire3(import.meta.url), compiledReactDir = dirname(require4.resolve("next/dist/compiled/react")), compiledReactDomDir = dirname(require4.resolve("next/dist/compiled/react-dom"))
|
|
788
|
-
// biome-ignore lint/suspicious/noExplicitAny: CJS support
|
|
789
|
-
nextLoadJsConfig2.default || nextLoadJsConfig2
|
|
790
|
-
);
|
|
784
|
+
var require4 = createRequire3(import.meta.url), compiledReactDir = dirname(require4.resolve("next/dist/compiled/react")), compiledReactDomDir = dirname(require4.resolve("next/dist/compiled/react-dom"));
|
|
791
785
|
function VitePlugin({ dir = process.cwd(), image } = {}) {
|
|
792
|
-
let resolvedDir = resolve3(dir),
|
|
786
|
+
let resolvedDir = resolve3(dir), nextConfigResolver = Promise.withResolvers(), nodeEnv = process.env.NODE_ENV;
|
|
793
787
|
return loadNextConfig(nodeEnv === "development" ? PHASE_DEVELOPMENT_SERVER : nodeEnv === "test" ? PHASE_TEST : PHASE_PRODUCTION_BUILD, resolvedDir).then(nextConfigResolver.resolve, nextConfigResolver.reject), [
|
|
794
|
-
isVite8orNewer ? null : nextConfigResolver.promise.then(async (nextConfig) => {
|
|
795
|
-
let loadedJSConfig = await loadJsConfig2(resolvedDir, nextConfig), { enforce, ...tsconfigPathConfig } = tsconfigPaths({
|
|
796
|
-
root: resolvedDir,
|
|
797
|
-
...loadedJSConfig.jsConfigPath ? { projects: [loadedJSConfig.jsConfigPath] } : {}
|
|
798
|
-
});
|
|
799
|
-
return {
|
|
800
|
-
...tsconfigPathConfig
|
|
801
|
-
};
|
|
802
|
-
}),
|
|
803
788
|
{
|
|
804
789
|
name: "@aussieljk/forkbook/internal/nextjs-vite-plugin",
|
|
805
790
|
enforce: "pre",
|
|
806
791
|
async config(config) {
|
|
807
792
|
let isNext16orNewer = getNextjsMajorVersion() >= 16, nextConfig = await nextConfigResolver.promise, executionEnvironment = getExecutionEnvironment(config), resolveConfig = {
|
|
808
|
-
|
|
793
|
+
tsconfigPaths: !0,
|
|
809
794
|
...!isVitestEnv && {
|
|
810
795
|
alias: [
|
|
811
796
|
{
|
|
@@ -865,8 +850,8 @@ function VitePlugin({ dir = process.cwd(), image } = {}) {
|
|
|
865
850
|
"next/dist/shared/lib/segment.js",
|
|
866
851
|
"styled-jsx",
|
|
867
852
|
"styled-jsx/style",
|
|
868
|
-
"
|
|
869
|
-
"
|
|
853
|
+
"fb-original/image-context",
|
|
854
|
+
"fb-original/default-loader",
|
|
870
855
|
"next/dist/compiled/react",
|
|
871
856
|
"next/image",
|
|
872
857
|
"next/legacy/image",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_upaeg5sjpn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_upaeg5sjpn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_upaeg5sjpn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_upaeg5sjpn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_upaeg5sjpn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_upaeg5sjpn.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,8 +12,8 @@ var require = CJS_COMPAT_NODE_MODULE_5ewvyy4zw6m.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
getAlias,
|
|
14
14
|
getAlias2
|
|
15
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
-
import "../../_node-chunks/chunk-
|
|
15
|
+
} from "../../_node-chunks/chunk-5SMIGUYF.js";
|
|
16
|
+
import "../../_node-chunks/chunk-FQGQ5KHN.js";
|
|
17
17
|
|
|
18
18
|
// src/nextjs-vite-plugin/mocks/storybook.global.ts
|
|
19
19
|
import { createRequire } from "node:module";
|
|
@@ -2,8 +2,8 @@ import "../../../../_browser-chunks/chunk-IMSF75WX.js";
|
|
|
2
2
|
|
|
3
3
|
// src/nextjs-vite-plugin/plugins/next-image/alias/next-image.tsx
|
|
4
4
|
import * as NextImageNamespace from "next/image";
|
|
5
|
-
import { defaultLoader } from "
|
|
6
|
-
import { ImageContext } from "
|
|
5
|
+
import { defaultLoader } from "fb-original/default-loader";
|
|
6
|
+
import { ImageContext } from "fb-original/image-context";
|
|
7
7
|
import React from "next/dist/compiled/react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
var _raw = NextImageNamespace.default, OriginalNextImage = typeof _raw == "object" && _raw !== null && "__esModule" in _raw ? _raw.default : _raw, originalGetImageProps = NextImageNamespace.getImageProps ?? (typeof _raw == "object" && _raw !== null && "getImageProps" in _raw ? _raw.getImageProps : void 0), MockedNextImage = React.forwardRef(
|
|
@@ -2,8 +2,8 @@ import "../../../../_browser-chunks/chunk-IMSF75WX.js";
|
|
|
2
2
|
|
|
3
3
|
// src/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.tsx
|
|
4
4
|
import * as _NextLegacyImageNamespace from "next/legacy/image";
|
|
5
|
-
import { defaultLoader } from "
|
|
6
|
-
import { ImageContext } from "
|
|
5
|
+
import { defaultLoader } from "fb-original/default-loader";
|
|
6
|
+
import { ImageContext } from "fb-original/image-context";
|
|
7
7
|
import React from "next/dist/compiled/react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
var _rawLegacy = _NextLegacyImageNamespace.default, OriginalNextLegacyImage = typeof _rawLegacy == "object" && _rawLegacy !== null && "__esModule" in _rawLegacy ? _rawLegacy.default : _rawLegacy;
|