@aussieljk/forkbook 0.0.1-6 → 0.0.1-7
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/dist/_browser-chunks/{Color-2BMQTRYG.js → Color-2YRIFQLC.js} +1 -1
- package/dist/_browser-chunks/{WithTooltip-GJACFWKM.js → WithTooltip-4R5JMWZ7.js} +3 -3
- package/dist/_browser-chunks/{chunk-6IKB2UHQ.js → chunk-4EFKUJG2.js} +12 -12
- package/dist/_browser-chunks/{chunk-X7D777E6.js → chunk-DAUHYZUB.js} +4 -0
- package/dist/_browser-chunks/{chunk-6EJEEII7.js → chunk-E47B5255.js} +2 -2
- package/dist/_browser-chunks/{chunk-QAHDGPZ7.js → chunk-HTL5ODCB.js} +1 -1
- package/dist/_browser-chunks/{chunk-DPRGR3QP.js → chunk-WVF42CP2.js} +38 -6
- package/dist/_node-chunks/{attached-runtime-EBWIOQZN.js → attached-runtime-WFZCCGUB.js} +29 -29
- package/dist/_node-chunks/{builder-manager-ETBLZ2RH.js → builder-manager-DHKHRZK4.js} +69 -46
- package/dist/_node-chunks/{chunk-TPSJW4CQ.js → chunk-3ZCGT6VF.js} +6 -6
- package/dist/_node-chunks/{chunk-GQ3HJNIH.js → chunk-4HGC3G6B.js} +44 -10
- package/dist/_node-chunks/{chunk-3UWWRDA5.js → chunk-5PYQ573S.js} +7 -7
- package/dist/_node-chunks/{chunk-DCNZ6SFN.js → chunk-64JPAW3T.js} +6 -6
- package/dist/_node-chunks/{chunk-2DBJWMYE.js → chunk-6CB3XSQ2.js} +8 -8
- package/dist/_node-chunks/{chunk-LFIFBDMS.js → chunk-6K3ZE4HN.js} +6 -6
- package/dist/_node-chunks/{chunk-LWKLJYYQ.js → chunk-6QZ3PX5R.js} +6 -6
- package/dist/_node-chunks/{chunk-DDGW2EBW.js → chunk-7HVDL6M3.js} +9 -9
- package/dist/_node-chunks/{chunk-XOGU5PWI.js → chunk-7PMQPS5E.js} +10 -10
- package/dist/_node-chunks/{chunk-FIFCNBTL.js → chunk-7V5AOV2J.js} +7 -7
- package/dist/_node-chunks/{chunk-P65JVLO3.js → chunk-7VHCAGBJ.js} +8 -8
- package/dist/_node-chunks/{chunk-ALHPFKVB.js → chunk-ATX7SHS7.js} +8 -8
- package/dist/_node-chunks/{chunk-FQWTUSYB.js → chunk-BQC6WCUS.js} +6 -6
- package/dist/_node-chunks/{chunk-SLZV7PTQ.js → chunk-BR4WDRY6.js} +8 -8
- package/dist/_node-chunks/{chunk-BLUMKQQB.js → chunk-BRHJ4P3A.js} +6 -6
- package/dist/_node-chunks/{chunk-X3RTVNRN.js → chunk-CBBFNVFZ.js} +7 -7
- package/dist/_node-chunks/{chunk-ZCITDAV4.js → chunk-CDFQORVD.js} +7 -7
- package/dist/_node-chunks/{chunk-Q4BEWGMK.js → chunk-CENNLCU7.js} +6 -6
- package/dist/_node-chunks/{chunk-MZ2GSR3G.js → chunk-CNMMDQC3.js} +12 -7
- package/dist/_node-chunks/{chunk-WRG3CFGS.js → chunk-DMDZPUHM.js} +6 -6
- package/dist/_node-chunks/{chunk-JPXJI6QR.js → chunk-DT45EUDD.js} +23 -23
- package/dist/_node-chunks/{chunk-4MJIPOJ5.js → chunk-EAL4RVEF.js} +6 -6
- package/dist/_node-chunks/chunk-EFFWFE6W.js +11 -0
- package/dist/_node-chunks/{chunk-GOFK4EKU.js → chunk-ESCZ2NSB.js} +6 -6
- package/dist/_node-chunks/{chunk-HUPRQZ3I.js → chunk-ESZIQTUH.js} +7 -7
- package/dist/_node-chunks/{chunk-TN3ULFFZ.js → chunk-F3SAYS4R.js} +6 -6
- package/dist/_node-chunks/{chunk-VPU4E7DI.js → chunk-FTUQ7T3V.js} +8 -8
- package/dist/_node-chunks/{chunk-E3O7VAPG.js → chunk-FVFSSIGA.js} +10 -10
- package/dist/_node-chunks/{chunk-IFPMZ247.js → chunk-G2AANC4A.js} +6 -6
- package/dist/_node-chunks/{chunk-GGTXOH3W.js → chunk-HUMAXGH2.js} +6 -6
- package/dist/_node-chunks/{chunk-644CUCK5.js → chunk-I535GEPH.js} +7 -7
- package/dist/_node-chunks/{chunk-ZSH6BUCW.js → chunk-J3Q56GX3.js} +23 -23
- package/dist/_node-chunks/{chunk-I7HRDCNY.js → chunk-JDKYP7FW.js} +10 -10
- package/dist/_node-chunks/{chunk-PLWLCVP2.js → chunk-JED5F3H2.js} +6 -6
- package/dist/_node-chunks/{chunk-Z4NZLBOX.js → chunk-JMS4H7QB.js} +7 -7
- package/dist/_node-chunks/{chunk-7E27CGRU.js → chunk-JOSJ64KD.js} +7 -7
- package/dist/_node-chunks/{chunk-LXVSVTQ3.js → chunk-JPHSU5OI.js} +6 -6
- package/dist/_node-chunks/{chunk-JS2J2SKX.js → chunk-JQICISDD.js} +6 -6
- package/dist/_node-chunks/{chunk-NZ7EQWYA.js → chunk-JTLOSDYL.js} +9 -9
- package/dist/_node-chunks/{chunk-MQFB44YS.js → chunk-K5RUOW42.js} +7 -7
- package/dist/_node-chunks/{chunk-OLGIDCVD.js → chunk-KHWCZDIW.js} +7 -7
- package/dist/_node-chunks/chunk-KWER36VB.js +20 -0
- package/dist/_node-chunks/{chunk-TMXWDY2O.js → chunk-LJTP5PAJ.js} +6 -6
- package/dist/_node-chunks/chunk-LZYYZ62Y.js +19 -0
- package/dist/_node-chunks/{chunk-WIQ6Y3NX.js → chunk-M7ZVSBNU.js} +6 -6
- package/dist/_node-chunks/{chunk-TIRP5JQM.js → chunk-MBIIJTGQ.js} +7 -7
- package/dist/_node-chunks/{chunk-L4JGWK4K.js → chunk-MF3AT3JQ.js} +6 -6
- package/dist/_node-chunks/{chunk-N7HEOGTM.js → chunk-MF5BYASO.js} +6 -6
- package/dist/_node-chunks/{chunk-YHH57LHY.js → chunk-MJFMB4WD.js} +9 -9
- package/dist/_node-chunks/{chunk-ZC3ZZKMS.js → chunk-MRWBN46D.js} +8 -8
- package/dist/_node-chunks/{chunk-KF3FT3NI.js → chunk-MZQXEAI6.js} +9 -9
- package/dist/_node-chunks/{chunk-A35J7YYA.js → chunk-NLPC2DDQ.js} +6 -6
- package/dist/_node-chunks/{chunk-5Z6MT4RI.js → chunk-NQAFLS5U.js} +7 -7
- package/dist/_node-chunks/{chunk-C5JG7EKF.js → chunk-NSZGBFPR.js} +6 -6
- package/dist/_node-chunks/{chunk-MFN2XBPL.js → chunk-NUYBFTOU.js} +7 -7
- package/dist/_node-chunks/{chunk-GRTI5653.js → chunk-O7VJA7SM.js} +7 -7
- package/dist/_node-chunks/{chunk-PAN35AYX.js → chunk-OGJ7LDX3.js} +7 -7
- package/dist/_node-chunks/{chunk-NX6CSWF3.js → chunk-OWT6AVWK.js} +8 -8
- package/dist/_node-chunks/{chunk-G6YNW4FK.js → chunk-P3GOMPP3.js} +7 -7
- package/dist/_node-chunks/{chunk-ZTFNOXZF.js → chunk-PQLXHVWK.js} +6 -6
- package/dist/_node-chunks/{chunk-CGVPHZVD.js → chunk-Q6QRFKHB.js} +8 -8
- package/dist/_node-chunks/{chunk-HWRHYM7Z.js → chunk-QSP42ZBM.js} +6 -6
- package/dist/_node-chunks/{chunk-25PXULSJ.js → chunk-QWDR5OWQ.js} +14 -14
- package/dist/_node-chunks/{chunk-4WLIN3VZ.js → chunk-QWRQXG2V.js} +8 -8
- package/dist/_node-chunks/{chunk-YPGVYNJB.js → chunk-R6AKCXPH.js} +6 -6
- package/dist/_node-chunks/{chunk-ANDQVXYX.js → chunk-RCY7TLET.js} +8 -8
- package/dist/_node-chunks/{chunk-YCXTTQ7K.js → chunk-RKKMQA6N.js} +8 -8
- package/dist/_node-chunks/{chunk-JZWF3XLN.js → chunk-RZ7UEP4N.js} +6 -6
- package/dist/_node-chunks/{chunk-GDFQQO5U.js → chunk-S3HB4EWT.js} +6 -6
- package/dist/_node-chunks/{chunk-XWGMQW2H.js → chunk-SHH7JROR.js} +6 -6
- package/dist/_node-chunks/{chunk-DRLBJM6X.js → chunk-SWHTDOB4.js} +7 -7
- package/dist/_node-chunks/{chunk-YMZ2SGFK.js → chunk-SZYMLCHF.js} +6 -6
- package/dist/_node-chunks/{chunk-HKL3VOYX.js → chunk-TOGDRW2W.js} +6 -6
- package/dist/_node-chunks/{chunk-5T635FTI.js → chunk-U3E7E4Q2.js} +10 -10
- package/dist/_node-chunks/{chunk-YQDBSAXW.js → chunk-U6DHF3RM.js} +7 -7
- package/dist/_node-chunks/{chunk-R5DWO2S2.js → chunk-UAG3XK32.js} +27 -27
- package/dist/_node-chunks/{chunk-CF7KLGUW.js → chunk-UF6Q6L5C.js} +19 -19
- package/dist/_node-chunks/chunk-UGXN7JTT.js +18 -0
- package/dist/_node-chunks/{chunk-J6M5CRYZ.js → chunk-UNCBLHIP.js} +8 -8
- package/dist/_node-chunks/chunk-UPJMGWMZ.js +25 -0
- package/dist/_node-chunks/{chunk-MDW3GSU3.js → chunk-UVV24PG4.js} +7 -7
- package/dist/_node-chunks/{chunk-4XNPO23I.js → chunk-WBB4NQ6H.js} +6 -6
- package/dist/_node-chunks/{chunk-YNENOZRY.js → chunk-WHOF2BJB.js} +7 -7
- package/dist/_node-chunks/{chunk-QNUXGVZZ.js → chunk-WME5NEJA.js} +6 -6
- package/dist/_node-chunks/{chunk-4KCQYJT6.js → chunk-X63YMAHP.js} +7 -7
- package/dist/_node-chunks/{chunk-ZNSGFYAT.js → chunk-Y2GHAOKI.js} +6 -6
- package/dist/_node-chunks/{chunk-CBUQY454.js → chunk-Y6G64J5S.js} +6 -6
- package/dist/_node-chunks/{chunk-KWPWQA7G.js → chunk-YVIPYJ53.js} +8 -8
- package/dist/_node-chunks/{chunk-NUAQC3XP.js → chunk-YZWUD7I5.js} +12 -12
- package/dist/_node-chunks/{chunk-252Y5WHZ.js → chunk-ZIDIYSJQ.js} +7 -7
- package/dist/_node-chunks/chunk-ZSGOW4WQ.js +20 -0
- package/dist/_node-chunks/dist-5EG56KTF.js +16 -0
- package/dist/_node-chunks/dist-UEXSNGGQ.js +27 -0
- package/dist/_node-chunks/{local-runtime-BUTEKJYV.js → local-runtime-UN5QK2SE.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-7WXQIHPV.js → mdx-plugin-6M6CMNL3.js} +13 -13
- package/dist/_node-chunks/{monorepo-NCD3X2BR.js → monorepo-253VKW4B.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-SD3B272K.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-3ZOE54OQ.js} +11 -11
- package/dist/_node-chunks/optimized-tests-JSWLRMEI.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-3QJANDJD.js → pattern-copy-play-CCCJRMSL.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-VMANBHPR.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-4LR5BDR2.js → rehype-external-links-LJTPLCGD.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-PWFRGOEV.js → rehype-slug-KQI7ULEZ.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-VNNWUW7X.js → relaxed-limits-MUE2NI7S.js} +11 -11
- package/dist/_node-chunks/{run-RUAAWEQT.js → run-PGZMPNMS.js} +246 -13
- package/dist/_node-chunks/{run-YK6ARCWS.js → run-SYLR25HA.js} +17 -17
- package/dist/_node-chunks/session-id-J4A25UQ6.js +23 -0
- package/dist/_node-chunks/{setup-4QKCICV6.js → setup-XZWSUYPG.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-WVFLIXN7.js → vitest.config.4.template-T25YYRGV.js} +7 -7
- package/dist/addon-a11y/manager.js +6 -6
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-docs/blocks.js +9 -9
- package/dist/addon-docs/manager.js +1 -1
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-mcp/preset.js +8 -8
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +6 -1
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +3 -3
- package/dist/addon-vitest/node/coverage-reporter.js +8 -8
- package/dist/addon-vitest/node/vitest.js +16 -16
- 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 +7 -7
- package/dist/addon-vitest/vitest-plugin/index.js +13 -13
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +59 -59
- package/dist/bin/dispatcher.js +16 -11
- package/dist/bin/loader.js +8 -8
- package/dist/builder-vite/index.js +15 -15
- package/dist/builder-vite/preset.js +13 -13
- package/dist/{chunk-CVY28Ngy.d.ts → chunk-B_ZhEPlo.d.ts} +1 -1
- package/dist/{chunk-ClI-HEh5.d.ts → chunk-CMaYrou5.d.ts} +1 -1
- package/dist/{chunk-CzmZhVrn.d.ts → chunk-LrH1y9J2.d.ts} +5 -0
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +22 -22
- 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 +35 -35
- package/dist/components/index.js +27 -27
- package/dist/core-server/index.d.ts +2 -2
- package/dist/core-server/index.js +68 -68
- package/dist/core-server/presets/common-manager.js +8 -8
- package/dist/core-server/presets/common-override-preset.js +10 -10
- package/dist/core-server/presets/common-preset.js +39 -39
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf-tools/index.d.ts +12 -0
- package/dist/csf-tools/index.js +12 -12
- package/dist/manager/_manager-chunks/{globals-runtime-BUP5e_t9.js → globals-runtime-4fCHtNC6.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CdgVeAbk.js → globals-runtime-BKPOYSwp.js} +7 -7
- package/dist/manager/_manager-chunks/{globals-runtime-B5-0Ccbv.js → globals-runtime-BMIT8BJb.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DedfO-DP.js → globals-runtime-BO0pfoqL.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-C7mqoHpE.js → globals-runtime-BZKYJxYC.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CrIF09P8.js → globals-runtime-Bpc_ftuT.js} +8 -2
- package/dist/manager/_manager-chunks/{globals-runtime-Cqn8KdSZ.js → globals-runtime-CI-C7ncS.js} +10 -10
- package/dist/manager/_manager-chunks/{globals-runtime-B-IeQLQu.js → globals-runtime-CI_p54Ha.js} +12 -12
- package/dist/manager/_manager-chunks/{globals-runtime-XSxCU7PR.js → globals-runtime-CTyYXvUm.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-B71TiXST.js → globals-runtime-CoCzM1V_.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DUK6bGcb.js → globals-runtime-CzEhVGVp.js} +99 -39
- package/dist/manager/_manager-chunks/{globals-runtime-DMBjo1QS.js → globals-runtime-D82vqOGq.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-CYNosEiD.js → globals-runtime-DB8fVA5g.js} +2 -144
- package/dist/manager/_manager-chunks/{globals-runtime-DqhIYwLp.js → globals-runtime-DMq1Phbl.js} +72 -72
- package/dist/manager/_manager-chunks/{globals-runtime-CvyFEPIY.js → globals-runtime-DOPUchia.js} +3 -3
- package/dist/manager/_manager-chunks/{globals-runtime-C_evJrEn.js → globals-runtime-Dbt08xWQ.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-Ct1kY4wb.js → globals-runtime-kmPSyf3j.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-CqItbdKW.js → runtime-5o_11Jae.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-CHI-LHF1.js → runtime-B4U0u9p4.js} +5 -147
- package/dist/manager/_manager-chunks/{runtime-MAf7Wpk5.js → runtime-BM30BmeT.js} +501 -43
- package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
- package/dist/manager/_manager-chunks/{runtime-D4ZOOIV0.js → runtime-Cf0p9DUx.js} +4 -4
- package/dist/manager/_manager-chunks/{runtime-DrTLBe7a.js → runtime-D-nYLsdk.js} +43 -19
- package/dist/manager/_manager-chunks/runtime-D09XMY6V.js +294 -0
- package/dist/manager/_manager-chunks/{runtime-BgYvp1WN.js → runtime-DvrwKw7z.js} +84 -303
- package/dist/manager/_manager-chunks/{runtime-DER98nV0.js → runtime-DzxaTqVN.js} +9 -12
- package/dist/manager/_manager-chunks/{runtime-CaU1DSEZ.js → runtime-P663lpsR.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-CUymj6EY.js → runtime-ecY5qnmo.js} +126 -134
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +2 -2
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.js +9 -9
- 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 +92 -13
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.js +8 -8
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- 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-api/index.d.ts +1 -1
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -11
- package/dist/react/preset.js +13 -13
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/metro/node.js +10 -10
- package/dist/react-native/metro/withStorybook.js +11 -11
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- 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/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/telemetry/index.js +43 -43
- package/dist/types/index.d.ts +1 -1
- package/package.json +6 -1
- package/dist/_node-chunks/chunk-AS4SFRCZ.js +0 -20
- package/dist/_node-chunks/chunk-DABFUVLR.js +0 -20
- package/dist/_node-chunks/chunk-GIOREKIG.js +0 -25
- package/dist/_node-chunks/chunk-TYBPAV3X.js +0 -19
- package/dist/_node-chunks/chunk-UUE3PSJB.js +0 -11
- package/dist/_node-chunks/chunk-VKNRNBTB.js +0 -18
- package/dist/_node-chunks/dist-GGTGKXZA.js +0 -27
- package/dist/_node-chunks/dist-NS676VJR.js +0 -16
- package/dist/_node-chunks/optimized-tests-ITVOHEOA.js +0 -22
- package/dist/_node-chunks/postinstallAddon-LEUHOKX6.js +0 -20
- package/dist/_node-chunks/session-id-JJYVZAKO.js +0 -23
- package/dist/manager/_manager-chunks/runtime-BR5z0WoJ.js +0 -456
- package/dist/manager/_manager-chunks/runtime-cVFIMcca.js +0 -22
package/dist/mcp/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.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
|
package_default
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
15
|
-
import "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-CNMMDQC3.js";
|
|
15
|
+
import "../_node-chunks/chunk-NLPC2DDQ.js";
|
|
16
16
|
|
|
17
17
|
// src/mcp/index.ts
|
|
18
18
|
import { McpServer } from "tmcp";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.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
|
walk
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-PQLXHVWK.js";
|
|
15
15
|
import {
|
|
16
16
|
userModuleExtensions
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
18
|
-
import "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-3ZCGT6VF.js";
|
|
18
|
+
import "../_node-chunks/chunk-NLPC2DDQ.js";
|
|
19
19
|
|
|
20
20
|
// src/mocking-utils/automock.ts
|
|
21
21
|
import MagicString from "magic-string";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.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-NLPC2DDQ.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_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.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-SWHTDOB4.js";
|
|
15
|
+
import "../_node-chunks/chunk-3ZCGT6VF.js";
|
|
16
16
|
import {
|
|
17
17
|
__commonJS,
|
|
18
18
|
__require,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-NLPC2DDQ.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/lilconfig/src/index.js
|
|
23
23
|
var require_src = __commonJS({
|
|
@@ -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-5EG56KTF.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
|
+
"storybook-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_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.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-NLPC2DDQ.js";
|
|
13
13
|
|
|
14
14
|
// src/nextjs-vite/vite-plugin/index.ts
|
|
15
15
|
import vitePluginStorybookNextjs from "@aussieljk/forkbook/internal/nextjs-vite-plugin";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
getNextjsMajorVersion,
|
|
17
17
|
isVitestEnv,
|
|
18
18
|
vitePluginNextMocks
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
20
|
-
import "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-Y6G64J5S.js";
|
|
20
|
+
import "../_node-chunks/chunk-NLPC2DDQ.js";
|
|
21
21
|
|
|
22
22
|
// src/nextjs-vite-plugin/index.ts
|
|
23
23
|
import { dirname, resolve as resolve3 } from "pathe";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.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_7qov04rgzsv.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-Y6G64J5S.js";
|
|
16
|
+
import "../../_node-chunks/chunk-NLPC2DDQ.js";
|
|
17
17
|
|
|
18
18
|
// src/nextjs-vite-plugin/mocks/storybook.global.ts
|
|
19
19
|
import { createRequire } from "node:module";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
prettyTime,
|
|
23
23
|
prompt,
|
|
24
24
|
protectUrls
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-YVIPYJ53.js";
|
|
26
|
+
import "../_node-chunks/chunk-K5RUOW42.js";
|
|
27
|
+
import "../_node-chunks/chunk-NLPC2DDQ.js";
|
|
28
28
|
export {
|
|
29
29
|
CLI_COLORS,
|
|
30
30
|
ConsoleLogger,
|
package/dist/oxc-parser/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,10 +12,10 @@ var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
OxcParseError,
|
|
14
14
|
oxcParse
|
|
15
|
-
} from "../_node-chunks/chunk-
|
|
16
|
-
import "../_node-chunks/chunk-
|
|
17
|
-
import "../_node-chunks/chunk-
|
|
18
|
-
import "../_node-chunks/chunk-
|
|
15
|
+
} from "../_node-chunks/chunk-NQAFLS5U.js";
|
|
16
|
+
import "../_node-chunks/chunk-OWT6AVWK.js";
|
|
17
|
+
import "../_node-chunks/chunk-K5RUOW42.js";
|
|
18
|
+
import "../_node-chunks/chunk-NLPC2DDQ.js";
|
|
19
19
|
|
|
20
20
|
// src/oxc-parser/index.ts
|
|
21
21
|
import { parseSync as oxcRawParseSync } from "rolldown/utils";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.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
|
oxcParse
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
15
|
-
import "../_node-chunks/chunk-
|
|
16
|
-
import "../_node-chunks/chunk-
|
|
17
|
-
import "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-NQAFLS5U.js";
|
|
15
|
+
import "../_node-chunks/chunk-OWT6AVWK.js";
|
|
16
|
+
import "../_node-chunks/chunk-K5RUOW42.js";
|
|
17
|
+
import "../_node-chunks/chunk-NLPC2DDQ.js";
|
|
18
18
|
|
|
19
19
|
// src/oxc-parser/worker.ts
|
|
20
20
|
import { parentPort } from "node:worker_threads";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as combineArgs, Bt as simulateDOMContentLoaded, Ec as Tag, Ft as getService, Gt as PreviewWithSelection, Ht as WebView, It as registerService, Jt as Preview, Kt as View, Lt as pauseAnimations, Qt as userOrAutoTitleFromSpecifier, Rt as waitForAnimations, Ut as UrlStore, Vt as simulatePageLoad, Wt as PreviewWeb, Xt as sortStoriesV7, Yt as DocsContext, Zt as userOrAutoTitle, _n as makeDecorator, an as filterArgTypes, cn as composeStories, dn as setProjectAnnotations, en as decorateStory, fn as composeStepRunners, gn as normalizeStory, hn as normalizeProjectAnnotations, in as PropDescriptor, ln as composeStory, mn as normalizeArrays, nn as sanitizeStoryContextUpdate, on as combineParameters, pn as composeConfigs, qt as SelectionStore, rn as inferControls, sn as getCsfFactoryAnnotations, tn as defaultDecorateStory, un as setDefaultProjectAnnotations, vn as addons, zt as emitTransformCode } from "../chunk-
|
|
1
|
+
import { $t as combineArgs, Bt as simulateDOMContentLoaded, Ec as Tag, Ft as getService, Gt as PreviewWithSelection, Ht as WebView, It as registerService, Jt as Preview, Kt as View, Lt as pauseAnimations, Qt as userOrAutoTitleFromSpecifier, Rt as waitForAnimations, Ut as UrlStore, Vt as simulatePageLoad, Wt as PreviewWeb, Xt as sortStoriesV7, Yt as DocsContext, Zt as userOrAutoTitle, _n as makeDecorator, an as filterArgTypes, cn as composeStories, dn as setProjectAnnotations, en as decorateStory, fn as composeStepRunners, gn as normalizeStory, hn as normalizeProjectAnnotations, in as PropDescriptor, ln as composeStory, mn as normalizeArrays, nn as sanitizeStoryContextUpdate, on as combineParameters, pn as composeConfigs, qt as SelectionStore, rn as inferControls, sn as getCsfFactoryAnnotations, tn as defaultDecorateStory, un as setDefaultProjectAnnotations, vn as addons, zt as emitTransformCode } from "../chunk-LrH1y9J2.js";
|
|
2
2
|
import { c as ensureChannel, f as setChannel, l as getChannel, s as clearChannel, u as installNoopChannel } from "../chunk-BXLImeLy.js";
|
|
3
3
|
import { C as useStoryContext, S as useState, _ as useGlobals, a as StoryStore, b as useReducer, c as prepareMeta, d as HooksContext, f as applyHooks, g as useEffect, h as useChannel, l as prepareStory, m as useCallback, o as Report, p as useArgs, s as ReporterAPI, v as useMemo, x as useRef, y as useParameter } from "../chunk-Bpi2tz-6.js";
|
|
4
4
|
export { DocsContext, HooksContext, Preview, PreviewWeb, PreviewWithSelection, type PropDescriptor, type Report, ReporterAPI, type SelectionStore, StoryStore, Tag, UrlStore, type View, WebView, addons, applyHooks, clearChannel, combineArgs, combineParameters, composeConfigs, composeStepRunners, composeStories, composeStory, decorateStory, defaultDecorateStory, emitTransformCode, ensureChannel, filterArgTypes, getChannel, getCsfFactoryAnnotations, getService, inferControls, installNoopChannel, makeDecorator, normalizeArrays, normalizeProjectAnnotations, normalizeStory, pauseAnimations, prepareMeta, prepareStory, registerService, sanitizeStoryContextUpdate, setChannel, setDefaultProjectAnnotations, setProjectAnnotations, simulateDOMContentLoaded, simulatePageLoad, sortStoriesV7, useArgs, useCallback, useChannel, useEffect, useGlobals, useMemo, useParameter, useReducer, useRef, useState, useStoryContext, userOrAutoTitle, userOrAutoTitleFromSpecifier, waitForAnimations };
|
package/dist/preview-errors.d.ts
CHANGED