@aussieljk/forkbook 0.0.1-16 → 0.0.1-18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/server/template.ejs +5 -1
- package/dist/_browser-chunks/{Color-CSCUIZNV.js → Color-CHK5SYAK.js} +1 -1
- package/dist/_browser-chunks/{WithTooltip-QCFTNB6P.js → WithTooltip-SLEBZZYA.js} +1 -1
- package/dist/_browser-chunks/{chunk-Z4YTPAKR.js → chunk-5X5VDKPT.js} +10 -10
- package/dist/_browser-chunks/chunk-PFYL47RM.js +45 -0
- package/dist/_browser-chunks/{chunk-RSK2QATC.js → chunk-VCUPEQLQ.js} +1 -1
- package/dist/_node-chunks/{attached-runtime-M3LR7CRL.js → attached-runtime-ZWS3ITCU.js} +32 -29
- package/dist/_node-chunks/{builder-manager-S5R76DLZ.js → builder-manager-MFEAPDDJ.js} +41 -20
- package/dist/_node-chunks/{chunk-PLQUKACJ.js → chunk-3IAEGPC6.js} +6 -6
- package/dist/_node-chunks/{chunk-F6IRDFGE.js → chunk-3UTE6IWX.js} +8 -8
- package/dist/_node-chunks/{chunk-JP6U6V57.js → chunk-43EE7M6B.js} +8 -8
- package/dist/_node-chunks/{chunk-GG57O5WL.js → chunk-4EC6ZCAU.js} +7 -7
- package/dist/_node-chunks/{chunk-S6KVMMG5.js → chunk-4KYM2KSJ.js} +6 -6
- package/dist/_node-chunks/{chunk-PK7PIHFX.js → chunk-4QLNIRBY.js} +6 -6
- package/dist/_node-chunks/{chunk-T5ZUNH6T.js → chunk-4QX2ECVH.js} +6 -6
- package/dist/_node-chunks/{chunk-C7LQKP5N.js → chunk-4XHQ65LH.js} +6 -6
- package/dist/_node-chunks/{chunk-C3NHS7JV.js → chunk-5VKLBV3U.js} +21 -9
- package/dist/_node-chunks/chunk-66MT4R3I.js +20 -0
- package/dist/_node-chunks/{chunk-V5UORMCO.js → chunk-7JXTYBXL.js} +7 -7
- package/dist/_node-chunks/{chunk-EYI7KYY6.js → chunk-7LMKJKAQ.js} +8 -8
- package/dist/_node-chunks/{chunk-PAPQY3TW.js → chunk-7QJLW3RJ.js} +8 -8
- package/dist/_node-chunks/{chunk-3RIDLOKA.js → chunk-AAPO6DVK.js} +9 -9
- package/dist/_node-chunks/{chunk-RCJSAGZJ.js → chunk-AOLMH3XG.js} +15 -11
- package/dist/_node-chunks/{chunk-7SQTDU62.js → chunk-AP4REHEI.js} +7 -7
- package/dist/_node-chunks/{chunk-XLLJO7QN.js → chunk-ATMBZKPG.js} +8 -8
- package/dist/_node-chunks/{chunk-TTT6HKCH.js → chunk-B77YYPPE.js} +6 -6
- package/dist/_node-chunks/{chunk-LZR5V6AC.js → chunk-BUBLGEJK.js} +8 -8
- package/dist/_node-chunks/{chunk-WKOD2VTN.js → chunk-CD4UNHSD.js} +6 -6
- package/dist/_node-chunks/{chunk-7N4FSYG5.js → chunk-CHAPTCXW.js} +26 -26
- package/dist/_node-chunks/{chunk-IA5HRJZF.js → chunk-CSKLM3SG.js} +9 -9
- package/dist/_node-chunks/{chunk-JX2FN4Q3.js → chunk-CSYW7JSG.js} +6 -6
- package/dist/_node-chunks/chunk-CVS5RXU4.js +19 -0
- package/dist/_node-chunks/{chunk-K5XZRTQZ.js → chunk-CZXN5VUN.js} +7 -7
- package/dist/_node-chunks/{chunk-OGBMQXAL.js → chunk-DMQHQOWT.js} +8 -8
- package/dist/_node-chunks/{chunk-XY5DZDIL.js → chunk-DUJAQGDD.js} +10 -10
- package/dist/_node-chunks/{chunk-RY5SXMMS.js → chunk-ETOEMP6K.js} +7 -7
- package/dist/_node-chunks/chunk-F5JV3P2K.js +49 -0
- package/dist/_node-chunks/{chunk-GDBK4HY3.js → chunk-F6LG6ZTH.js} +12 -12
- package/dist/_node-chunks/{chunk-SUWLYB5G.js → chunk-GADZYB7K.js} +6 -6
- package/dist/_node-chunks/{chunk-JT7FTSPB.js → chunk-GC5GNEU6.js} +7 -7
- package/dist/_node-chunks/chunk-GG4A54OB.js +52 -0
- package/dist/_node-chunks/{chunk-76ZAQTUI.js → chunk-GXIROVYL.js} +6 -6
- package/dist/_node-chunks/{chunk-IJYTDXUI.js → chunk-HAQE45NF.js} +8 -8
- package/dist/_node-chunks/{chunk-7HEDXUYY.js → chunk-HKYFHGCD.js} +6 -6
- package/dist/_node-chunks/{chunk-N5DU4RGS.js → chunk-HOZK625X.js} +7 -7
- package/dist/_node-chunks/{chunk-NT2NODZ6.js → chunk-HP4RVLEB.js} +6 -6
- package/dist/_node-chunks/{chunk-KQZVI6MC.js → chunk-HTAHNPU2.js} +6 -6
- package/dist/_node-chunks/{chunk-5OFZSOQT.js → chunk-HZPU25LI.js} +8 -8
- package/dist/_node-chunks/{chunk-72BCEHLN.js → chunk-IHPNFVF3.js} +9 -9
- package/dist/_node-chunks/{chunk-GDWG7F53.js → chunk-IPIEE34R.js} +6 -6
- package/dist/_node-chunks/{chunk-AYBIJKYK.js → chunk-J3LAZZTR.js} +8 -8
- package/dist/_node-chunks/{chunk-4GBTYHEQ.js → chunk-J4FHHY7S.js} +7 -7
- package/dist/_node-chunks/{chunk-Y2FHDZ2F.js → chunk-JV3BLGQU.js} +9 -9
- package/dist/_node-chunks/{chunk-PYLGT7HR.js → chunk-KNYUZVVR.js} +8 -8
- package/dist/_node-chunks/{chunk-IW4JU27L.js → chunk-L6UNXQVV.js} +7 -7
- package/dist/_node-chunks/{chunk-EB7VOG5E.js → chunk-LF6QBPS2.js} +6 -6
- package/dist/_node-chunks/{chunk-PH4DKJCF.js → chunk-M6P773JM.js} +6 -6
- package/dist/_node-chunks/{chunk-BMBHJB46.js → chunk-MBQQZ53T.js} +6 -6
- package/dist/_node-chunks/{chunk-FJWE2TBB.js → chunk-NAQAQ5JU.js} +14 -14
- package/dist/_node-chunks/{chunk-K6GKT7RR.js → chunk-NL2NSBHC.js} +8 -8
- package/dist/_node-chunks/{chunk-UFZDQ6B2.js → chunk-O432EICO.js} +7 -7
- package/dist/_node-chunks/{chunk-PMYTZ2QW.js → chunk-OQF3DZON.js} +6 -6
- package/dist/_node-chunks/{chunk-I5YT3ZVT.js → chunk-OWAPLHBK.js} +6 -6
- package/dist/_node-chunks/{chunk-XXDUSVOM.js → chunk-P5UQQAVT.js} +8 -8
- package/dist/_node-chunks/{chunk-3VMGUWTV.js → chunk-PD2B4CCJ.js} +6 -6
- package/dist/_node-chunks/{chunk-S5AP3365.js → chunk-PLY7VOL7.js} +19 -19
- package/dist/_node-chunks/{chunk-2GKDQBC6.js → chunk-PNKI23DA.js} +11 -10
- package/dist/_node-chunks/{chunk-5U6PJ5YZ.js → chunk-Q5QVDDH2.js} +6 -6
- package/dist/_node-chunks/{chunk-XWNZORKV.js → chunk-QIYPM5FW.js} +7 -7
- package/dist/_node-chunks/{chunk-E5PKDO5S.js → chunk-QQNAFDRV.js} +6 -6
- package/dist/_node-chunks/chunk-QX47Z5FH.js +18 -0
- package/dist/_node-chunks/{chunk-IHOUXOSK.js → chunk-R3ICZFLN.js} +8 -8
- package/dist/_node-chunks/{chunk-ZTZCXWZV.js → chunk-R5L5IULY.js} +6 -6
- package/dist/_node-chunks/{chunk-CNIGCMVT.js → chunk-RBTE26TI.js} +6 -6
- package/dist/_node-chunks/chunk-RTTAFZ52.js +25 -0
- package/dist/_node-chunks/{chunk-YBAT4RJ7.js → chunk-RUEDYIYF.js} +6 -6
- package/dist/_node-chunks/{chunk-54Q363BU.js → chunk-SFXUROK4.js} +10 -10
- package/dist/_node-chunks/{chunk-WB6KEM5Y.js → chunk-SI3EDPTV.js} +7 -7
- package/dist/_node-chunks/{chunk-VXTAQURA.js → chunk-TG4TFBAD.js} +6 -6
- package/dist/_node-chunks/{chunk-JQYFHZ7Z.js → chunk-TMRHGLYF.js} +6 -6
- package/dist/_node-chunks/{chunk-UW6HXL4F.js → chunk-UANUKRU3.js} +7 -7
- package/dist/_node-chunks/{chunk-OKAP7V5Y.js → chunk-UDHDJDLE.js} +7 -7
- package/dist/_node-chunks/{chunk-5H64FI2Q.js → chunk-VCDXUGKB.js} +7 -7
- package/dist/_node-chunks/{chunk-QDBA3OPO.js → chunk-VQSS7OII.js} +6 -6
- package/dist/_node-chunks/{chunk-DNZAIWOF.js → chunk-VQXJE5RG.js} +10 -10
- package/dist/_node-chunks/chunk-WFGTVI33.js +20 -0
- package/dist/_node-chunks/{chunk-RWKRFANH.js → chunk-WPGIUS6F.js} +6 -6
- package/dist/_node-chunks/{chunk-VL5IW2LC.js → chunk-WRHG6PWE.js} +6 -6
- package/dist/_node-chunks/{chunk-BNBWGBBX.js → chunk-X5SV7UIZ.js} +7 -7
- package/dist/_node-chunks/{chunk-A2PJPFXZ.js → chunk-XC2RV6BH.js} +6 -6
- package/dist/_node-chunks/{chunk-BLNJ2DX2.js → chunk-XF4DIPLO.js} +7 -7
- package/dist/_node-chunks/{chunk-LYDJ7XSD.js → chunk-XFUBYI3U.js} +6 -6
- package/dist/_node-chunks/{chunk-47RQBQRS.js → chunk-XG72Q4LL.js} +7 -7
- package/dist/_node-chunks/{chunk-5CTBWF65.js → chunk-XN7EHJVR.js} +7 -7
- package/dist/_node-chunks/chunk-XWO2VFNK.js +298 -0
- package/dist/_node-chunks/chunk-YBFKJXTN.js +11 -0
- package/dist/_node-chunks/{chunk-2J7TLO3T.js → chunk-YCES67AJ.js} +7 -7
- package/dist/_node-chunks/{chunk-NMJ6S2BO.js → chunk-YF6BDZJP.js} +9 -9
- package/dist/_node-chunks/{chunk-4NF4B5VC.js → chunk-YPJFFP22.js} +7 -7
- package/dist/_node-chunks/{chunk-SZC3BDMK.js → chunk-ZCTTWMP3.js} +23 -23
- package/dist/_node-chunks/{chunk-HBGFSTD5.js → chunk-ZGPTFIJY.js} +6 -6
- package/dist/_node-chunks/dist-S4XHG4S5.js +16 -0
- package/dist/_node-chunks/dist-ZLGPDQAK.js +27 -0
- package/dist/_node-chunks/{local-runtime-HTS37XDN.js → local-runtime-VNZEXHPN.js} +19 -19
- package/dist/_node-chunks/{mdx-plugin-IUQIVM3G.js → mdx-plugin-B2RRIE5M.js} +13 -13
- package/dist/_node-chunks/{monorepo-SYIDMETZ.js → monorepo-ZOBVE7R5.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-5OYJKBOA.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-RKE5VH5C.js} +11 -11
- package/dist/_node-chunks/optimized-tests-GUPK5ZYE.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-74TXIEUZ.js → pattern-copy-play-5JYSDTHX.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-KIZYAP3B.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-DWA5SPB5.js → rehype-external-links-V66P44D4.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-KAFPVNH4.js → rehype-slug-YZMIIK27.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-6EIL2N6I.js → relaxed-limits-DI6DQXM7.js} +11 -11
- package/dist/_node-chunks/{run-6W2ISL24.js → run-EIJKYUHM.js} +15 -15
- package/dist/_node-chunks/{run-C7CGXC2E.js → run-MVQQYDMF.js} +17 -17
- package/dist/_node-chunks/{setup-3LVKWS2Y.js → setup-P3E5WIHM.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-EXNOA6EO.js → vitest.config.4.template-JLKIRDI6.js} +7 -7
- package/dist/addon-a11y/manager.js +5 -5
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-comments/manager.js +10 -3
- package/dist/addon-comments/preset.js +8 -8
- package/dist/addon-docs/blocks.js +9 -9
- package/dist/addon-docs/manager.js +2 -2
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-mcp/preset.js +23 -12
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +15 -3
- 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 +12 -12
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +60 -59
- package/dist/bin/dispatcher.js +10 -10
- package/dist/bin/loader.js +8 -8
- package/dist/builder-next/index.d.ts +59 -0
- package/dist/builder-next/index.js +185 -0
- package/dist/builder-vite/index.d.ts +7 -2
- package/dist/builder-vite/index.js +23 -16
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.d.ts +3 -2
- package/dist/channels/index.js +25 -3
- package/dist/{chunk-C4-cnJ1R.d.ts → chunk-BsO65uOb.d.ts} +1 -1
- package/dist/{chunk-CV4-Z2pn.d.ts → chunk-CDMZhRke.d.ts} +1 -1
- package/dist/chunk-CFhJCPSB.d.ts +48 -0
- package/dist/{chunk-BNRZY6Jq.d.ts → chunk-D2CQlXaR.d.ts} +1 -1
- package/dist/chunk-DtFyKAil.d.ts +142 -0
- package/dist/{chunk-s5Ka0eSs.d.ts → chunk-OksNJcvJ.d.ts} +1 -1
- package/dist/{chunk-BRMwIGWt.d.ts → chunk-ge-rSPy0.d.ts} +33 -14
- package/dist/{chunk-QtkUsZCs.d.ts → chunk-r-Vjut9o.d.ts} +2 -1
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +21 -21
- 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 +2 -2
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/common/index.d.ts +4 -4
- package/dist/common/index.js +34 -34
- package/dist/components/index.js +28 -28
- package/dist/core-server/index.d.ts +19 -4
- package/dist/core-server/index.js +166 -107
- package/dist/core-server/presets/common-manager.js +9 -9
- package/dist/core-server/presets/common-override-preset.js +10 -10
- package/dist/core-server/presets/common-preset.js +42 -39
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf-tools/index.js +12 -12
- package/dist/manager/_manager-chunks/{globals-runtime-BWRrfZHd.js → globals-runtime-B4SHGLOz.js} +137 -73
- package/dist/manager/_manager-chunks/{globals-runtime-BshBawD_.js → globals-runtime-Bp8OD5XP.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-BGys8g47.js → globals-runtime-CFubTdpY.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-C-EipbnO.js → globals-runtime-CIwwmsq8.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-Ct6r_VIk.js → globals-runtime-DnBr0uHL.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-BimU8G7b.js → globals-runtime-DrIZ7TV0.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-DJCouYTq.js → runtime-4g05lOCJ.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-BhqfjXNm.js → runtime-B3dYQqb0.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-TSEq5lJd.js → runtime-B3sVeEUb.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-7sf36XMA.js → runtime-CDYOGzex.js} +4 -4
- package/dist/manager/_manager-chunks/{runtime-C6l5GIW9.js → runtime-CIywE7ED.js} +20 -20
- package/dist/manager/_manager-chunks/{runtime-DnHl3vQZ.js → runtime-Cd_gbHrb.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-CBJsfhjk.js → runtime-D7EqJrYN.js} +8 -8
- package/dist/manager/_manager-chunks/{runtime-BMoEpoix.js → runtime-DPTwiG8p.js} +7 -0
- package/dist/manager/_manager-chunks/{runtime-ByNphI7g.js → runtime-FgbxvsLo.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-DJfG4OGP.js → runtime-V4-aY7uL.js} +145 -145
- 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-errors.d.ts +1 -1
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.js +9 -9
- package/dist/next/index.d.ts +189 -0
- package/dist/next/index.js +289 -0
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +11 -11
- 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.d.ts +1 -1
- package/dist/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +10 -10
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-YJlypwja.js → runtime-BiYuZt-X.js} +3 -3
- package/dist/preview/_chunks/{runtime-CrKf1OM4.js → runtime-C88AzFBv.js} +2 -2
- package/dist/preview/_chunks/{runtime-COMyPEkR.js → runtime-Cpzxe5eK.js} +73 -9
- package/dist/preview/_chunks/{runtime-CqTqsVg2.js → runtime-MYVHRAoo.js} +2 -2
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +2 -2
- 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/withForkbook.d.ts +2 -2
- package/dist/react-native/metro/withForkbook.js +13 -13
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +8 -8
- 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 +11 -11
- package/dist/types/index.d.ts +1 -1
- package/package.json +15 -3
- package/skills/setup/SKILL.md +14 -0
- package/skills/stories/SKILL.md +21 -0
- package/skills/write-story/SKILL.md +14 -0
- package/dist/_node-chunks/chunk-CN26V2O6.js +0 -19
- package/dist/_node-chunks/chunk-NHIONGG3.js +0 -11
- package/dist/_node-chunks/chunk-QXQQQC3B.js +0 -20
- package/dist/_node-chunks/chunk-RR6N4UDR.js +0 -25
- package/dist/_node-chunks/chunk-VAU4QOZO.js +0 -20
- package/dist/_node-chunks/chunk-YZ5HE6CE.js +0 -18
- package/dist/_node-chunks/dist-5M4OQEOE.js +0 -16
- package/dist/_node-chunks/dist-DNAZ454H.js +0 -27
- package/dist/_node-chunks/optimized-tests-LAR2SZGJ.js +0 -22
- package/dist/_node-chunks/postinstallAddon-5GFBQQOP.js +0 -20
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_of2djqq8j1 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_of2djqq8j1 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_of2djqq8j1 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_of2djqq8j1.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_of2djqq8j1.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_of2djqq8j1.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
|
withoutVitePlugins
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-Q5QVDDH2.js";
|
|
15
15
|
import {
|
|
16
16
|
commonConfig
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
18
|
-
import "../_node-chunks/chunk-
|
|
19
|
-
import "../_node-chunks/chunk-
|
|
20
|
-
import "../_node-chunks/chunk-
|
|
21
|
-
import "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-AOLMH3XG.js";
|
|
18
|
+
import "../_node-chunks/chunk-ETOEMP6K.js";
|
|
19
|
+
import "../_node-chunks/chunk-WRHG6PWE.js";
|
|
20
|
+
import "../_node-chunks/chunk-SI3EDPTV.js";
|
|
21
|
+
import "../_node-chunks/chunk-TG4TFBAD.js";
|
|
22
22
|
import {
|
|
23
23
|
require_picocolors
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
25
|
-
import "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-VCDXUGKB.js";
|
|
25
|
+
import "../_node-chunks/chunk-66MT4R3I.js";
|
|
26
26
|
import {
|
|
27
27
|
__toESM
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-IPIEE34R.js";
|
|
29
29
|
|
|
30
30
|
// src/builder-vite/index.ts
|
|
31
31
|
import { readFile } from "node:fs/promises";
|
|
@@ -208,6 +208,12 @@ function iframeHandler(options, server2) {
|
|
|
208
208
|
res.setHeader("Content-Type", "text/html"), res.statusCode = 200, res.write(transformed), res.end();
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
+
function withBasePrefix(middlewares) {
|
|
212
|
+
return (req, res, next) => {
|
|
213
|
+
let basePath = req.forkbookBasePath;
|
|
214
|
+
return basePath && req.url && !req.url.startsWith(`${basePath}/`) && (req.url = `${basePath}${req.url}`), middlewares(req, res, next);
|
|
215
|
+
};
|
|
216
|
+
}
|
|
211
217
|
var server;
|
|
212
218
|
async function bail() {
|
|
213
219
|
return server?.close();
|
|
@@ -225,7 +231,7 @@ var changeDetectionAdapter = (options) => {
|
|
|
225
231
|
options,
|
|
226
232
|
router,
|
|
227
233
|
server: devServer
|
|
228
|
-
}) => (server = await createViteServer(options, devServer), router.get("/iframe.html", iframeHandler(options, server)), router.use(server.middlewares), {
|
|
234
|
+
}) => (server = await createViteServer(options, devServer), router.get("/iframe.html", iframeHandler(options, server)), router.use(withBasePrefix(server.middlewares)), {
|
|
229
235
|
bail,
|
|
230
236
|
stats: {
|
|
231
237
|
toJson: () => {
|
|
@@ -241,5 +247,6 @@ export {
|
|
|
241
247
|
corePresets,
|
|
242
248
|
hasVitePlugins,
|
|
243
249
|
start,
|
|
250
|
+
withBasePrefix,
|
|
244
251
|
withoutVitePlugins
|
|
245
252
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_of2djqq8j1 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_of2djqq8j1 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_of2djqq8j1 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_of2djqq8j1.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_of2djqq8j1.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_of2djqq8j1.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
optimizeViteDeps,
|
|
14
14
|
staticDirs,
|
|
15
15
|
viteCorePlugins
|
|
16
|
-
} from "../_node-chunks/chunk-
|
|
17
|
-
import "../_node-chunks/chunk-
|
|
18
|
-
import "../_node-chunks/chunk-
|
|
19
|
-
import "../_node-chunks/chunk-
|
|
20
|
-
import "../_node-chunks/chunk-
|
|
21
|
-
import "../_node-chunks/chunk-
|
|
22
|
-
import "../_node-chunks/chunk-
|
|
16
|
+
} from "../_node-chunks/chunk-AOLMH3XG.js";
|
|
17
|
+
import "../_node-chunks/chunk-ETOEMP6K.js";
|
|
18
|
+
import "../_node-chunks/chunk-WRHG6PWE.js";
|
|
19
|
+
import "../_node-chunks/chunk-SI3EDPTV.js";
|
|
20
|
+
import "../_node-chunks/chunk-TG4TFBAD.js";
|
|
21
|
+
import "../_node-chunks/chunk-66MT4R3I.js";
|
|
22
|
+
import "../_node-chunks/chunk-IPIEE34R.js";
|
|
23
23
|
export {
|
|
24
24
|
optimizeViteDeps,
|
|
25
25
|
staticDirs,
|
package/dist/channels/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { _ as ChannelHandler, a as HEARTBEAT_INTERVAL, b as Listener, c as PostMessageTransport, d as getChannel, f as installNoopChannel, g as ChannelEvent, h as Channel, i as ChannelWebSocket, l as clearChannel, m as setChannel, n as fetchCurrentWsToken, o as SERVER_CHANNEL_PATH, p as requireChannel, r as parseWsToken, s as WebsocketTransport, t as createBrowserChannel, u as ensureChannel, v as ChannelLike, y as ChannelTransport } from "../chunk-
|
|
2
|
-
|
|
1
|
+
import { _ as ChannelHandler, a as HEARTBEAT_INTERVAL, b as Listener, c as PostMessageTransport, d as getChannel, f as installNoopChannel, g as ChannelEvent, h as Channel, i as ChannelWebSocket, l as clearChannel, m as setChannel, n as fetchCurrentWsToken, o as SERVER_CHANNEL_PATH, p as requireChannel, r as parseWsToken, s as WebsocketTransport, t as createBrowserChannel, u as ensureChannel, v as ChannelLike, y as ChannelTransport } from "../chunk-r-Vjut9o.js";
|
|
2
|
+
import { a as getChannelUrl, c as stripBasePath, i as getChannelPath, n as ChannelUrlOptions, o as joinBasePath, r as DEFAULT_BASE_PATH, s as normalizeBasePath, t as CHANNEL_PATH_SEGMENT } from "../chunk-CFhJCPSB.js";
|
|
3
|
+
export { CHANNEL_PATH_SEGMENT, Channel, Channel as default, type ChannelEvent, type ChannelHandler, type ChannelLike, type ChannelTransport, type ChannelUrlOptions, type ChannelWebSocket, DEFAULT_BASE_PATH, HEARTBEAT_INTERVAL, type Listener, PostMessageTransport, SERVER_CHANNEL_PATH, WebsocketTransport, clearChannel, createBrowserChannel, ensureChannel, fetchCurrentWsToken, getChannel, getChannelPath, getChannelUrl, installNoopChannel, joinBasePath, normalizeBasePath, parseWsToken, requireChannel, setChannel, stripBasePath };
|
package/dist/channels/index.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CHANNEL_PATH_SEGMENT,
|
|
3
|
+
DEFAULT_BASE_PATH,
|
|
4
|
+
getChannelPath,
|
|
5
|
+
getChannelUrl,
|
|
6
|
+
joinBasePath,
|
|
7
|
+
normalizeBasePath,
|
|
8
|
+
stripBasePath
|
|
9
|
+
} from "../_browser-chunks/chunk-PFYL47RM.js";
|
|
1
10
|
import {
|
|
2
11
|
UniversalStore
|
|
3
12
|
} from "../_browser-chunks/chunk-KQJ4T6JL.js";
|
|
@@ -274,7 +283,7 @@ var { document: document2, location } = globalThis, KEY = "storybook-channel", C
|
|
|
274
283
|
|
|
275
284
|
// src/channels/websocket/index.ts
|
|
276
285
|
import * as EVENTS2 from "@aussieljk/forkbook/internal/core-events";
|
|
277
|
-
var HEARTBEAT_INTERVAL = 15e3, SERVER_CHANNEL_PATH = "/
|
|
286
|
+
var HEARTBEAT_INTERVAL = 15e3, SERVER_CHANNEL_PATH = "/_forkbook/fb-channel", RECONNECT_INITIAL_DELAY = 500, RECONNECT_MAX_DELAY = 5e3, MAX_BUFFER = 500, CHANNEL_OPTIONS2 = globalThis.CHANNEL_OPTIONS || {}, WebsocketTransport = class {
|
|
278
287
|
constructor({ url, onError, page, createSocket, reconnect }) {
|
|
279
288
|
this.buffer = [];
|
|
280
289
|
this.isReady = !1;
|
|
@@ -355,7 +364,13 @@ var channels_default = Channel;
|
|
|
355
364
|
function createBrowserChannel({ page, extraTransports = [] }) {
|
|
356
365
|
let transports = [new PostMessageTransport({ page }), ...extraTransports];
|
|
357
366
|
if (globalThis.CONFIG_TYPE === "DEVELOPMENT") {
|
|
358
|
-
let
|
|
367
|
+
let { wsToken, basePath } = globalThis.CHANNEL_OPTIONS || {}, urlFor = (token) => getChannelUrl({
|
|
368
|
+
protocol: window.location.protocol,
|
|
369
|
+
host: window.location.host,
|
|
370
|
+
basePath: normalizeBasePath(basePath),
|
|
371
|
+
token: String(token),
|
|
372
|
+
page
|
|
373
|
+
});
|
|
359
374
|
transports.push(
|
|
360
375
|
new WebsocketTransport({
|
|
361
376
|
url: urlFor(wsToken),
|
|
@@ -385,7 +400,9 @@ async function fetchCurrentWsToken() {
|
|
|
385
400
|
}
|
|
386
401
|
var parseWsToken = (html) => /"wsToken"\s*:\s*"([^"]+)"/.exec(html)?.[1];
|
|
387
402
|
export {
|
|
403
|
+
CHANNEL_PATH_SEGMENT,
|
|
388
404
|
Channel,
|
|
405
|
+
DEFAULT_BASE_PATH,
|
|
389
406
|
HEARTBEAT_INTERVAL,
|
|
390
407
|
PostMessageTransport,
|
|
391
408
|
SERVER_CHANNEL_PATH,
|
|
@@ -396,8 +413,13 @@ export {
|
|
|
396
413
|
ensureChannel,
|
|
397
414
|
fetchCurrentWsToken,
|
|
398
415
|
getChannel,
|
|
416
|
+
getChannelPath,
|
|
417
|
+
getChannelUrl,
|
|
399
418
|
installNoopChannel,
|
|
419
|
+
joinBasePath,
|
|
420
|
+
normalizeBasePath,
|
|
400
421
|
parseWsToken,
|
|
401
422
|
requireChannel,
|
|
402
|
-
setChannel
|
|
423
|
+
setChannel,
|
|
424
|
+
stripBasePath
|
|
403
425
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Hl as StorybookError, Ks as ToolsetMethodId } from "./chunk-
|
|
1
|
+
import { Hl as StorybookError, Ks as ToolsetMethodId } from "./chunk-ge-rSPy0.js";
|
|
2
2
|
import { i as InvokedToolsetOutcome, s as ToolsetGetService, t as AnyToolsetDefinition } from "./chunk-BtKww7r1.js";
|
|
3
3
|
import * as v from "valibot";
|
|
4
4
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
//#region .dts-emit/code/core/src/channels/base-path.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Helpers for the Forkbook base path. The Forkbook server mounts everything (manager, index.json,
|
|
4
|
+
* manifests, thumbnails, statics, the channel) under one base path, `/_forkbook` by default. This
|
|
5
|
+
* lets a host app (for example `next dev` through `withForkbook`) rewrite `<base>/*` to Forkbook.
|
|
6
|
+
*
|
|
7
|
+
* A normalised base path starts with `/` and has no trailing slash. The root is the empty string.
|
|
8
|
+
* Next.js rewrites drop trailing slashes, so all paths here have none.
|
|
9
|
+
*
|
|
10
|
+
* This file has no imports, so the browser, the server and `next.config` can all use it.
|
|
11
|
+
*/
|
|
12
|
+
/** The base path that Forkbook uses when none is set. */
|
|
13
|
+
declare const DEFAULT_BASE_PATH = "/_forkbook";
|
|
14
|
+
/** The path of the server channel (WebSocket), relative to the base path. */
|
|
15
|
+
declare const CHANNEL_PATH_SEGMENT = "/fb-channel";
|
|
16
|
+
/**
|
|
17
|
+
* Makes a base path normal: one leading slash, no trailing slash, no duplicate slashes. `'/'` and
|
|
18
|
+
* `''` give `''` (the root). `undefined` gives {@link DEFAULT_BASE_PATH}.
|
|
19
|
+
*/
|
|
20
|
+
declare function normalizeBasePath(basePath: string | undefined | null): string;
|
|
21
|
+
/** Joins a base path and a path. The result has no trailing slash, except for the root `/`. */
|
|
22
|
+
declare function joinBasePath(basePath: string, path?: string): string;
|
|
23
|
+
/**
|
|
24
|
+
* Removes the base path from a request URL (path and query). Gives `undefined` when the URL is not
|
|
25
|
+
* under the base path. `<base>`, `<base>/` and `<base>?q` all give a URL that starts with `/`.
|
|
26
|
+
*/
|
|
27
|
+
declare function stripBasePath(basePath: string, url: string): string | undefined;
|
|
28
|
+
/** The path of the server channel for a base path, for example `/_forkbook/fb-channel`. */
|
|
29
|
+
declare function getChannelPath(basePath: string): string;
|
|
30
|
+
interface ChannelUrlOptions {
|
|
31
|
+
/** `http:`, `https:`, `ws:` or `wss:`. HTTP protocols change to the WebSocket protocols. */
|
|
32
|
+
protocol: string;
|
|
33
|
+
/** Host with the port, for example `localhost:3000`. */
|
|
34
|
+
host: string;
|
|
35
|
+
basePath: string;
|
|
36
|
+
token?: string;
|
|
37
|
+
page?: string;
|
|
38
|
+
}
|
|
39
|
+
/** The full WebSocket URL of the server channel. */
|
|
40
|
+
declare function getChannelUrl({
|
|
41
|
+
protocol,
|
|
42
|
+
host,
|
|
43
|
+
basePath,
|
|
44
|
+
token,
|
|
45
|
+
page
|
|
46
|
+
}: ChannelUrlOptions): string;
|
|
47
|
+
//#endregion
|
|
48
|
+
export { getChannelUrl as a, stripBasePath as c, getChannelPath as i, ChannelUrlOptions as n, joinBasePath as o, DEFAULT_BASE_PATH as r, normalizeBasePath as s, CHANNEL_PATH_SEGMENT as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ExecProcess, t as ExecOptions } from "./chunk-
|
|
1
|
+
import { n as ExecProcess, t as ExecOptions } from "./chunk-CDMZhRke.js";
|
|
2
2
|
import { PackageJson as PackageJson$1 } from "@aussieljk/forkbook/internal/types";
|
|
3
3
|
|
|
4
4
|
//#region .dts-emit/code/core/src/common/utils/command.d.ts
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
//#region .dts-emit/code/core/src/builder-next/route.d.ts
|
|
2
|
+
/** The route group that holds the generated files. The parentheses keep it out of the URL. */
|
|
3
|
+
declare const PREVIEW_ROUTE_GROUP = "(forkbook)";
|
|
4
|
+
/** The last URL segment of the preview route: `<base>/iframe`. */
|
|
5
|
+
declare const PREVIEW_ROUTE_SEGMENT = "iframe";
|
|
6
|
+
/** The path (under the base path) of the preview globals that the Forkbook server serves. */
|
|
7
|
+
declare const PREVIEW_GLOBALS_PATH = "/iframe-globals.json";
|
|
8
|
+
/** The names of the generated files in the route folder. */
|
|
9
|
+
declare const PREVIEW_ROUTE_FILES: {
|
|
10
|
+
readonly page: 'page.tsx';
|
|
11
|
+
readonly client: 'forkbook-client.tsx';
|
|
12
|
+
readonly runtime: 'forkbook-runtime.tsx';
|
|
13
|
+
readonly stories: 'forkbook-stories.js';
|
|
14
|
+
readonly annotations: 'forkbook-annotations.js';
|
|
15
|
+
};
|
|
16
|
+
/** Gives `<project>/app` or `<project>/src/app`, the same order as Next.js. */
|
|
17
|
+
declare function findAppDir(projectDir: string): string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Turns a base path into app router folder names. A folder that starts with `_` is a private
|
|
20
|
+
* folder in the app router, so a leading `_` is written as `%5F`.
|
|
21
|
+
*/
|
|
22
|
+
declare function getRouteSegments(basePath: string): string[];
|
|
23
|
+
/** The route group folder: `<app>/(forkbook)`. */
|
|
24
|
+
declare function getRouteGroupDir(appDir: string): string;
|
|
25
|
+
/** The folder of the preview page: `<app>/(forkbook)/%5Fforkbook/iframe`. */
|
|
26
|
+
declare function getPreviewRouteDir(appDir: string, basePath: string): string;
|
|
27
|
+
/** A module specifier for `target`, relative to `fromDir`, with `/` and a leading `./`. */
|
|
28
|
+
declare function toImportSpecifier(fromDir: string, target: string): string;
|
|
29
|
+
/** The part of a story index entry that the loader needs. */
|
|
30
|
+
interface StoryLoaderEntry {
|
|
31
|
+
importPath: string;
|
|
32
|
+
}
|
|
33
|
+
interface StoryLoaderOptions {
|
|
34
|
+
/** The folder the index import paths are relative to (the Forkbook working folder). */
|
|
35
|
+
workingDir: string;
|
|
36
|
+
/** The folder of the generated module. Imports are relative to it. */
|
|
37
|
+
routeDir: string;
|
|
38
|
+
}
|
|
39
|
+
/** The unique import paths of a story index, sorted, so the module text is stable. */
|
|
40
|
+
declare function getStoryImportPaths(entries: Record<string, StoryLoaderEntry>): string[];
|
|
41
|
+
/**
|
|
42
|
+
* Makes the story loader module. It maps each import path of the index to a lazy `import()`, so
|
|
43
|
+
* Next.js splits each story file into its own chunk and loads it when the story is shown.
|
|
44
|
+
*/
|
|
45
|
+
declare function generateStoryLoaderCode(entries: Record<string, StoryLoaderEntry>, {
|
|
46
|
+
workingDir,
|
|
47
|
+
routeDir
|
|
48
|
+
}: StoryLoaderOptions): string;
|
|
49
|
+
/**
|
|
50
|
+
* Makes the project annotations module from the preview annotation files (addons, renderer,
|
|
51
|
+
* framework, then `.forkbook/preview`). The last file is the project preview. A CSF factory
|
|
52
|
+
* preview (`definePreview`) gives `default.composed`, which is used as it is.
|
|
53
|
+
*/
|
|
54
|
+
declare function generateAnnotationsCode(annotationPaths: string[], routeDir: string): string;
|
|
55
|
+
/** The server component page. It only renders the client component. */
|
|
56
|
+
declare function generatePageCode(): string;
|
|
57
|
+
/**
|
|
58
|
+
* The client component. It loads the preview runtime only in the browser (`ssr: false`), because
|
|
59
|
+
* the preview runtime and many story files read `window` when they load.
|
|
60
|
+
*/
|
|
61
|
+
declare function generateClientCode(): string;
|
|
62
|
+
interface RuntimeCodeOptions {
|
|
63
|
+
basePath: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The browser module that starts the preview, the same as `vite-app.js` of builder-vite. Next.js
|
|
67
|
+
* runs this module again on a hot update of a story file or of the loader module (it is a React
|
|
68
|
+
* Refresh boundary). The second run gives the new `importFn` to the running preview.
|
|
69
|
+
*/
|
|
70
|
+
declare function generateRuntimeCode({
|
|
71
|
+
basePath
|
|
72
|
+
}: RuntimeCodeOptions): string;
|
|
73
|
+
/** Writes a file only when its text changed, so Next.js does not see a change with no effect. */
|
|
74
|
+
declare function writeIfChanged(path: string, content: string): boolean;
|
|
75
|
+
interface PreviewRouteOptions {
|
|
76
|
+
/** The Next.js project folder (where `next.config` is). */
|
|
77
|
+
projectDir: string;
|
|
78
|
+
/** The normalised base path, for example `/_forkbook`. */
|
|
79
|
+
basePath: string;
|
|
80
|
+
/** The app folder. Default: `<projectDir>/app` or `<projectDir>/src/app`. */
|
|
81
|
+
appDir?: string;
|
|
82
|
+
}
|
|
83
|
+
interface PreviewRoute {
|
|
84
|
+
appDir: string;
|
|
85
|
+
/** `<app>/(forkbook)`: remove this folder to remove the route. */
|
|
86
|
+
groupDir: string;
|
|
87
|
+
/** The folder of the page and the generated modules. */
|
|
88
|
+
routeDir: string;
|
|
89
|
+
}
|
|
90
|
+
/** Gives the folders of the preview route. Throws when the project has no `app` folder. */
|
|
91
|
+
declare function resolvePreviewRoute({
|
|
92
|
+
projectDir,
|
|
93
|
+
basePath,
|
|
94
|
+
appDir
|
|
95
|
+
}: PreviewRouteOptions): PreviewRoute;
|
|
96
|
+
/**
|
|
97
|
+
* Writes the static files of the preview route (page, client component, runtime) and empty
|
|
98
|
+
* loader modules when they do not exist yet. The Forkbook server writes the real loader modules
|
|
99
|
+
* when the story index is ready.
|
|
100
|
+
*/
|
|
101
|
+
declare function writePreviewRoute(options: PreviewRouteOptions): PreviewRoute;
|
|
102
|
+
/** Removes `<app>/(forkbook)`. */
|
|
103
|
+
declare function removePreviewRoute(route: Pick<PreviewRoute, 'groupDir'>): void;
|
|
104
|
+
/** Finds the `.git` folder above `dir`. A worktree or submodule `.git` file is followed. */
|
|
105
|
+
declare function findGitDir(dir: string): string | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* Adds the route group to `.git/info/exclude`, so `git status` does not show it. This file is
|
|
108
|
+
* local to the clone and is never committed. Returns false when there is no Git repository.
|
|
109
|
+
*/
|
|
110
|
+
declare function ignoreInGit(groupDir: string): boolean;
|
|
111
|
+
/** The part of a Next.js config that `applyPreviewRouteMocks` changes. */
|
|
112
|
+
interface TurbopackConfigLike {
|
|
113
|
+
turbopack?: {
|
|
114
|
+
resolveAlias?: Record<string, unknown>;
|
|
115
|
+
[key: string]: unknown;
|
|
116
|
+
};
|
|
117
|
+
[key: string]: unknown;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* A `turbopack.resolveAlias` value: a module, or modules for each condition. Use
|
|
121
|
+
* `{ browser: '…' }` to change only the browser graph, so the server code of the app keeps the
|
|
122
|
+
* real module (for example `node:fs`).
|
|
123
|
+
*/
|
|
124
|
+
type PreviewAlias = string | Record<string, string>;
|
|
125
|
+
interface PreviewRouteMocks {
|
|
126
|
+
resolveAlias?: Record<string, PreviewAlias>;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Turbopack did not apply alias targets with an absolute path in the spike (Next.js 16.4.5). A
|
|
130
|
+
* path relative to the Next.js project folder works, so absolute paths are made relative.
|
|
131
|
+
*/
|
|
132
|
+
declare function toProjectRelativeAlias(alias: PreviewAlias, projectDir: string): PreviewAlias;
|
|
133
|
+
/**
|
|
134
|
+
* The seam for `next/*` mocks done with module aliases (phase 3, approach A). It adds the aliases
|
|
135
|
+
* to `turbopack.resolveAlias`. Aliases of the app win over Forkbook aliases. The input is not
|
|
136
|
+
* changed.
|
|
137
|
+
*/
|
|
138
|
+
declare function applyPreviewRouteMocks<T extends TurbopackConfigLike>(config: T, {
|
|
139
|
+
resolveAlias
|
|
140
|
+
}: PreviewRouteMocks, projectDir?: string): T;
|
|
141
|
+
//#endregion
|
|
142
|
+
export { writeIfChanged as A, getRouteSegments as C, resolvePreviewRoute as D, removePreviewRoute as E, toImportSpecifier as O, getRouteGroupDir as S, ignoreInGit as T, generateClientCode as _, PreviewAlias as a, generateStoryLoaderCode as b, PreviewRouteOptions as c, StoryLoaderOptions as d, TurbopackConfigLike as f, generateAnnotationsCode as g, findGitDir as h, PREVIEW_ROUTE_SEGMENT as i, writePreviewRoute as j, toProjectRelativeAlias as k, RuntimeCodeOptions as l, findAppDir as m, PREVIEW_ROUTE_FILES as n, PreviewRoute as o, applyPreviewRouteMocks as p, PREVIEW_ROUTE_GROUP as r, PreviewRouteMocks as s, PREVIEW_GLOBALS_PATH as t, StoryLoaderEntry as u, generatePageCode as v, getStoryImportPaths as w, getPreviewRouteDir as x, generateRuntimeCode as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { da as ServerCoreServices, fa as TypedGetService } from "./chunk-
|
|
1
|
+
import { da as ServerCoreServices, fa as TypedGetService } from "./chunk-ge-rSPy0.js";
|
|
2
2
|
import { C as Commands, G as ServiceInstance, H as ServiceDefinition, J as ServiceRegistryApi, j as Queries, q as ServiceRegistrationOptions } from "./chunk-BtKww7r1.js";
|
|
3
3
|
|
|
4
4
|
//#region .dts-emit/code/core/src/shared/open-service/server.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as RenderData } from "./chunk-BLZXEm1K.js";
|
|
2
2
|
import { s as ThemeVars$1 } from "./chunk-D3uSIa6H.js";
|
|
3
|
-
import { h as Channel$1 } from "./chunk-
|
|
3
|
+
import { h as Channel$1 } from "./chunk-r-Vjut9o.js";
|
|
4
4
|
import { A as OperationInputSchemas, C as Commands, F as QueryFunctions, G as ServiceInstance, H as ServiceDefinition, J as ServiceRegistryApi, K as ServiceInstanceOf, L as QueryState, M as Query, O as MatchingOutputSchemas, P as QueryDefinition, Q as StandardSchemaV1, W as ServiceId, Y as ServiceState, a as ToolsetCtx, f as ToolsetOutcome, j as Queries, o as ToolsetDefinition, q as ServiceRegistrationOptions, t as AnyToolsetDefinition, v as AnyServiceDefinition, w as GetServiceOptions, x as CommandDefinition, z as RuntimeService } from "./chunk-BtKww7r1.js";
|
|
5
5
|
import { X as StrictArgTypes$3, s as Args$3 } from "./chunk-DNCU78oW.js";
|
|
6
6
|
import { t as Options$3 } from "./chunk-C6PAgHLT.js";
|
|
@@ -4406,7 +4406,22 @@ interface CoreConfig$1 {
|
|
|
4406
4406
|
renderer?: RendererName;
|
|
4407
4407
|
channelOptions?: Partial<Options$3> & {
|
|
4408
4408
|
wsToken?: string;
|
|
4409
|
+
basePath?: string;
|
|
4409
4410
|
};
|
|
4411
|
+
/**
|
|
4412
|
+
* The URL path that Forkbook mounts everything under (manager, index.json, manifests, statics and
|
|
4413
|
+
* the channel at `<basePath>/fb-channel`). The `--base-path` CLI flag has priority.
|
|
4414
|
+
*
|
|
4415
|
+
* @default '/_forkbook'
|
|
4416
|
+
*/
|
|
4417
|
+
basePath?: string;
|
|
4418
|
+
/**
|
|
4419
|
+
* When true, `forkbook build` writes the static build to `public<basePath>` (for example
|
|
4420
|
+
* `public/_forkbook`), so the host app serves it at the base path. An `--output-dir` has priority.
|
|
4421
|
+
*
|
|
4422
|
+
* @default false
|
|
4423
|
+
*/
|
|
4424
|
+
buildToPublic?: boolean;
|
|
4410
4425
|
/**
|
|
4411
4426
|
* Disables Forkbook telemetry
|
|
4412
4427
|
*
|
|
@@ -4572,6 +4587,10 @@ interface CLIOptions$1 extends CLIBaseOptions {
|
|
|
4572
4587
|
statsJson?: string | boolean;
|
|
4573
4588
|
outputDir?: string;
|
|
4574
4589
|
previewOnly?: boolean;
|
|
4590
|
+
/** See `CoreConfig.basePath`. After the config loads, this is the normalised base path. */
|
|
4591
|
+
basePath?: string;
|
|
4592
|
+
/** See `CoreConfig.buildToPublic`. */
|
|
4593
|
+
buildToPublic?: boolean;
|
|
4575
4594
|
}
|
|
4576
4595
|
interface BuilderOptions$1 {
|
|
4577
4596
|
configType?: 'DEVELOPMENT' | 'PRODUCTION';
|
|
@@ -4592,20 +4611,20 @@ interface StorybookConfigOptions {
|
|
|
4592
4611
|
type Options$1 = LoadOptions$1 & StorybookConfigOptions & CLIOptions$1 & BuilderOptions$1 & {
|
|
4593
4612
|
build?: TestBuildConfig;
|
|
4594
4613
|
};
|
|
4595
|
-
type Middleware<T extends IncomingMessage = IncomingMessage> = (req: T & IncomingMessage, res: ServerResponse, next: (err?: string | Error) => Promise<void> | void) => Promise<void> | void;
|
|
4614
|
+
type Middleware$1<T extends IncomingMessage = IncomingMessage> = (req: T & IncomingMessage, res: ServerResponse, next: (err?: string | Error) => Promise<void> | void) => Promise<void> | void;
|
|
4596
4615
|
interface ServerApp<T extends IncomingMessage = IncomingMessage> {
|
|
4597
4616
|
server: Server$1;
|
|
4598
|
-
use(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
|
|
4599
|
-
use(...handlers: Middleware<T>[]): this;
|
|
4600
|
-
get(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
|
|
4601
|
-
post(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
|
|
4602
|
-
put(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
|
|
4603
|
-
patch(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
|
|
4604
|
-
delete(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
|
|
4605
|
-
head(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
|
|
4606
|
-
options(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
|
|
4607
|
-
connect(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
|
|
4608
|
-
trace(pattern: RegExp | string, ...handlers: Middleware<T>[]): this;
|
|
4617
|
+
use(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
|
|
4618
|
+
use(...handlers: Middleware$1<T>[]): this;
|
|
4619
|
+
get(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
|
|
4620
|
+
post(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
|
|
4621
|
+
put(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
|
|
4622
|
+
patch(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
|
|
4623
|
+
delete(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
|
|
4624
|
+
head(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
|
|
4625
|
+
options(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
|
|
4626
|
+
connect(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
|
|
4627
|
+
trace(pattern: RegExp | string, ...handlers: Middleware$1<T>[]): this;
|
|
4609
4628
|
}
|
|
4610
4629
|
interface Builder$1<Config, BuilderStats extends Stats = Stats> {
|
|
4611
4630
|
getConfig: (options: Options$1) => Promise<Config>;
|
|
@@ -13096,4 +13115,4 @@ declare class PlaywrightInstallFailedError extends StorybookError {
|
|
|
13096
13115
|
});
|
|
13097
13116
|
}
|
|
13098
13117
|
//#endregion
|
|
13099
|
-
export { StatusValue$1 as $, ModuleResolveConfig as $a, _default as $c, FilterFunction as $i, PlayFunction as $n, ModuleResolveConfig$1 as $o, Addon_LoaderFunction as $r, fullTestProviderStore as $s, ResolvedModuleExportFromType$1 as $t, OpenServiceRemoteCommandConfigDriftError as A, BuilderOptions$1 as Aa, API_RootEntry$1 as Ac, API_ActiveTabsType as Ai, MainFileMissingError as Al, BaseAnnotations$1 as An, API_IndexHash$1 as Ao, StrictArgs$1 as Ar, StoryIndexV3$1 as As, decorateStory as At, NoFreePortError as B, CoreCommon_OptionsEntry as Ba, combineParameters$1 as Bc, API_Provider$1 as Bi, MinimumReleaseAgeHandledError as Bl, DecoratorApplicator$1 as Bn, API_TestEntry$1 as Bo, Addon_BaseMeta as Br, reviewToolset as Bs, setDefaultProjectAnnotations as Bt, OpenServiceLoadedDrainExceededError as C, StoryDocsError as Ca, API_DocsEntry$2 as Cc, Addon_TypesEnum$1 as Ci, ViteModuleGraphSubscriptionError as Cl, AnnotatedStoryFn$1 as Cn, VersionCheck as Co, StoryIdentifier as Cr, StoriesEntry$1 as Cs, SelectionStore as Ct, OpenServiceMissingToolsetError as D, StoryDocsProviderPreset as Da, API_IndexHash$2 as Dc, Addons_ArgTypes as Di, InvalidFrameworkNameError as Dl, ArgsEnhancer as Dn, API_FilterFunction$1 as Do, StorybookParameters as Dr, StoryIndexFileError as Ds, userOrAutoTitle as Dt, OpenServiceMissingServiceError as E, StoryDocsProviderInput as Ea, API_HashEntry$2 as Ec, Addon_WrapperType$1 as Ei, CriticalPresetLoadError as El, Args$2 as En, API_DocsEntry$1 as Eo, StorybookInternalParameters as Er, StoryIndexEntry$1 as Es, sortStoriesV7 as Et, OpenServiceToolsetOutputMismatchError as F, ComponentManifest as Fa, ManagerConsumer as Fc, API_LayoutCustomisations$1 as Fi, AddonVitestPostinstallConfigUpdateError as Fl, CleanupCallback$1 as Fn, API_RefStoryRuntimeData as Fo, Addon_Annotations as Fr, registerToolset as Fs, filterArgTypes as Ft, NON_AGGREGATED_STATUS_TYPE_IDS as G, CsfEnricher$1 as Ga, useChannel as Gc, API_RenderOptions as Gi, InputType as Gn, SupportedFramework$1 as Go, Addon_Comparator as Gr, emptyManifests as Gs, normalizeProjectAnnotations as Gt, StatusTypeIdMismatchError as H, CoreCommon_ResolvedAddonVirtual$1 as Ha, useAddonState as Hc, API_RefId as Hi, StorybookError as Hl, GlobalTypes$1 as Hn, API_Version$1 as Ho, Addon_BaseStoryObject as Hr, SourceWithUrl as Hs, composeStepRunners as Ht, OpenServiceUnimplementedOperationError as I, ComponentSubcomponentManifest as Ia, ManagerContext as Ic, API_LoadedRefData$1 as Ii, AddonVitestPostinstallError as Il, ComponentAnnotations$1 as In, API_ReleaseNotes as Io, Addon_ArgType as Ir, KnownToolsets as Is, combineParameters as It, StatusByTypeId$1 as J, ForkbookConfig$1 as Ja, useParameter as Jc, API_SidebarOptions$1 as Ji, LegacyStoryFn$1 as Jn, ImportParser as Jo, Addon_Elements as Jr, parseToolsetMethodId as Js, addons as Jt, REVIEW_STATUS_TYPE_ID as K, DocsOptions$1 as Ka, useGlobalTypes as Kc, API_RouteOptions as Ki, LegacyAnnotatedStoryFn as Kn, SupportedBuilder$1 as Ko, Addon_Config$1 as Kr, ToolsetMethodId as Ks, normalizeStory as Kt, OpenServiceUnknownStoryIdsError as L, ComponentsManifest as La, ManagerProvider as Lc, API_MatchOptions as Li, AddonVitestPostinstallPrerequisiteCheckError as Ll, ComponentId as Ln, API_RootEntry as Lo, Addon_ArgsStoryFn as Lr, PreviewStoriesOutput as Ls, getCsfFactoryAnnotations as Lt, OpenServiceRemoteCommandUnhandledError as M, CLIBaseOptions as Ma, ActiveTabs as Mc, API_ComposedRefUpdate$1 as Mi, MissingFrameworkFieldError as Ml, BeforeAll as Mn, API_OptionsData$1 as Mo, Tag$2 as Mr, clearToolsetRegistry as Ms, sanitizeStoryContextUpdate as Mt, OpenServiceServicesAppliedTwiceError as N, CLIOptions$1 as Na, Combo as Nc, API_IframeRenderer$1 as Ni, NoMatchingExportError as Nl, BeforeEach as Nn, API_PreparedIndexEntry as No, TestFunction$1 as Nr, getRegisteredToolsets as Ns, inferControls as Nt, OpenServiceModuleGraphUnavailableError as O, Builder$1 as Oa, API_LeafEntry$2 as Oc, BaseStory as Oi, InvalidStoriesEntryError as Ol, ArgsFromMeta$1 as On, API_GroupEntry as Oo, StorybookTypes$1 as Or, StoryIndexInput as Os, userOrAutoTitleFromSpecifier as Ot, OpenServiceTestRunTimeoutError as P, CompatibleString$1 as Pa, Listener$2 as Pc, API_Layout$1 as Pi, NxProjectDetectedError as Pl, Canvas$1 as Pn, API_PreparedStoryIndex$1 as Po, ViewMode$2 as Pr, getToolset as Ps, PropDescriptor as Pt, StatusTypeId as Q, Middleware as Qa, useStorybookState as Qc, API_ViewMode$1 as Qi, Path$1 as Qn, FileChangeEvent as Qo, Addon_Loader as Qr, Tag$4 as Qs, ResolvedModuleExport as Qt, OpenServiceValidationError as R, CoreCommon_AddonEntry as Ra, ManagerProviderProps as Rc, API_Notification$1 as Ri, AddonVitestPostinstallWorkspaceUpdateError as Rl, ComponentTitle$1 as Rn, API_Settings$1 as Ro, Addon_BaseAnnotations as Rr, StoryIndexAccess as Rs, composeStories as Rt, OpenServiceInvalidToolsetMethodIdError as S, StoryDocsById as Sa, API_ComposedRef$2 as Sc, Addon_Types$1 as Si, NoStatsForViteDevError as Sl, AfterEach$1 as Sn, TypescriptOptions as So, StoryId$2 as Sr, NormalizedStoriesSpecifier$1 as Ss, View as St, OpenServiceMissingOriginError as T, StoryDocsProvider as Ta, API_GroupEntry$1 as Tc, Addon_WrapperSettings as Ti, CouldNotEvaluateFrameworkError as Tl, ArgTypesEnhancer as Tn, API_ComponentEntry as To, StoryName$1 as Tr, StoryIndex$1 as Ts, DocsContext as Tt, StorybookDevServerDisconnectedError as U, CoreCommon_StorybookInfo$1 as Ua, useArgTypes as Uc, API_RefUrl as Ui, Globals$2 as Un, API_Versions$2 as Uo, Addon_BaseType$1 as Ur, DocsAccess as Us, composeConfigs as Ut, SavingGlobalSettingsFileError as V, CoreCommon_ResolvedAddonPreset$1 as Va, typesX as Vc, API_ProviderData$1 as Vi, Category as Vl, DecoratorFunction$2 as Vn, API_UnknownEntries$1 as Vo, Addon_BaseStoryFn as Vr, createDocsToolset as Vs, setProjectAnnotations as Vt, CHANGE_DETECTION_STATUS_TYPE_ID as W, CoreConfig$1 as Wa, useArgs as Wc, API_Refs$1 as Wi, IncludeExcludeOptions as Wn, SupportedRenderer$1 as Wo, Addon_Collection$1 as Wr, ResolvedDocsEntry as Ws, normalizeArrays as Wt, StatusStoreByTypeId$1 as X, LoadedPreset$1 as Xa, useStoryPrepared as Xc, API_StoryMapper as Xi, Parameters$2 as Xn, ParseFileArgs as Xo, Addon_LoadFn as Xr, seedQueryState as Xs, DocsRenderFunction$1 as Xt, StatusStore as Y, LoadOptions$1 as Ya, useSharedState as Yc, API_StateMerger$1 as Yi, LoaderFunction$1 as Yn, ImportParserContext as Yo, Addon_LegacyStoryFn as Yr, toMcpToolName as Ys, DocsContextProps$2 as Yt, StatusStoreEvent as Z, Manifests$1 as Za, useStorybookApi as Zc, API_UI$1 as Zi, PartialStoryFn$1 as Zn, ChangeDetectionAdapter as Zo, Addon_Loadable as Zr, defineService as Zs, RenderContextCallbacks$1 as Zt, OpenServiceDuplicateRegistrationError as _, selectSnippetForStory as _a, Event as _c, Addon_StorySortParameterV7$1 as _i, Addon_Type$1 as _l, ProjectAnnotations$2 as _n, StorybookFeatures as _o, StoryContextForEnhancers$1 as _r, IndexInputStats$1 as _s, simulatePageLoad as _t, PackageInstallFailedError as a, SetStoriesStoryData as aa, TestProviderStateByProviderId as ac, Addon_PartialStoryFn as ai, controlOrMetaKey as al, Builder_WithRequiredProperty as an, PresetPropertyFn as ao, SBObjectType as ar, DocgenProvider as as, REVIEW_NAMESPACE as at, OpenServiceInternalServiceError as b, StoryDocsService as ba, API as bc, Addon_ToolbarConfig as bi, GoogleFontsLoadingError as bl, TeardownRenderToCanvas as bn, TestBuildConfig as bo, StoryContextUpdate$1 as br, Indexer$1 as bs, PreviewWeb as bt, PlaywrightInstallFailedError as c, registerService$1 as ca, UseTestProviderStore as cc, Addon_StoryContext as ci, eventToShortcut as cl, ModuleExport$1 as cn, PreviewAnnotation as co, SBType$1 as cr, DocgenSubcomponent as cs, PartialArgsStoryFn as ct, formatExecaCommand as d, ServerCoreServices as da, universalStatusStore as dc, Addon_StorySortComparator as di, optionOrAltSymbol as dl, NamedOrDefaultProjectAnnotations$1 as dn, RootPageOptions as do, StepFunction as dr, BaseIndexInput as ds, getService as dt, DocsPreparedPayload as ea, getTestProviderStoreById as ec, Addon_Loaders as ei, isMacLike as el, ResolvedModuleExportType$1 as en, Options$1 as eo, PlayFunctionContext as er, DocgenService as es, StatusesByStoryIdAndTypeId$1 as et, formatExecaFailureDetails as f, TypedGetService as fa, useStatusStore as fc, Addon_StorySortComparatorV7 as fi, shortcutMatchesShortcut as fl, NormalizedComponentAnnotations$1 as fn, SecurityConfig as fo, StepLabel as fr, DocsAnchor$1 as fs, registerService as ft, OpenServiceDocgenMissingComponentError as g, prependImportToSnippet as ga, Actor as gc, Addon_StorySortParameter as gi, AddonStore$1 as gl, PreparedStory$1 as gn, StorybookConfigRaw$1 as go, StoryContext$2 as gr, IndexInput$1 as gs, simulateDOMContentLoaded as gt, OpenServiceCyclicStateError as h, ReviewState as ha, UniversalStore as hc, Addon_StorySortOrder as hi, Options$2 as hl, PreparedMeta$1 as hn, StorybookConfigOptions as ho, StoryAnnotationsOrFn$1 as hr, IndexEntry$1 as hs, emitTransformCode as ht, PackageInstallDependencyConflictError as i, SetStoriesStory as ia, TestProviderState as ic, Addon_PageType$1 as ii, KeyboardEventLike as il, Builder_Unpromise as in, PresetProperty$1 as io, SBIntersectionType as ir, DocgenPayload$1 as is, REVIEW_EVENTS as it, OpenServiceRemoteCommandDisconnectedError as j, BuilderResult as ja, API_StoryEntry$2 as jc, API_ComposedRef$1 as ji, MissingBuilderError as jl, BaseProjectAnnotations as jn, API_LeafEntry$1 as jo, StrictInputType as jr, V3CompatIndexEntry as js, defaultDecorateStory as jt, OpenServiceOperationNameCollisionError as k, BuilderName as ka, API_Refs$2 as kc, IndexEntryLegacy as ki, MainFileEvaluationError as kl, ArgsStoryFn$1 as kn, API_HashEntry$1 as ko, StrictArgTypes$2 as kr, StoryIndexV2$1 as ks, combineArgs as kt, PnpmIgnoredBuildsError as l, useServiceQuery as la, fullStatusStore as lc, Addon_StoryContextUpdate as li, isShortcutTaken as ll, ModuleExports$1 as ln, Ref$2 as lo, SBUnionType as lr, DocgenWorkerModule as ls, Store_CSFExports$1 as lt, OpenServiceAsyncSchemaError as m, ReviewCollection as ma, useUniversalStore as mc, Addon_StorySortObjectParameter as mi, shortcutToHumanString as ml, NormalizedStoryAnnotations$1 as mn, Stats as mo, StoryAnnotations$1 as mr, DocsIndexInput as ms, waitForAnimations as mt, ExecaCommandFailedError as n, SetGlobalsPayload as na, useTestProviderStore as nc, Addon_OptionsParameter as ni, experimental_requestResponse as nl, BuilderStats as nn, Preset as no, SBArrayType as nr, DocgenJsDocTags as ns, SupportedLanguage$1 as nt, PackageInstallMissingManifestError as o, StoryPreparedPayload as oa, TestProviderStoreById as oc, Addon_RenderOptions$1 as oi, controlOrMetaSymbol as ol, BoundStory as on, PresetValue as oo, SBOtherType as or, DocgenProviderDescriptor as os, ComposeStoryFn$1 as ot, OpenServiceAsyncRecipeError as p, ModuleGraphServiceState as pa, MockUniversalStore as pc, Addon_StorySortMethod as pi, shortcutToAriaKeyshortcuts as pl, NormalizedProjectAnnotations$1 as pn, ServerApp as po, StepRunner$1 as pr, DocsIndexEntry$1 as ps, pauseAnimations as pt, Status$1 as q, Entry as qa, useGlobals as qc, API_SetRefData$1 as qi, LegacyStoryAnnotationsOrFn$1 as qn, ImportEdge as qo, Addon_DecoratorFunction$1 as qr, getToolName as qs, makeDecorator as qt, FindPackageVersionsError as r, SetStoriesPayload as ra, TestProviderId as rc, Addon_OptionsParameterV7 as ri, API_KeyCollection as rl, Builder_EnvsRaw as rn, PresetConfig$1 as ro, SBEnumType as rr, DocgenMiddleware as rs, Feature$1 as rt, PackageManagerBinaryNotFoundError as s, getService$1 as sa, TestProviderStoreEvent as sc, Addon_RequireContext as si, eventMatchesShortcut as sl, CSFFile$1 as sn, Presets$1 as so, SBScalarType as sr, DocgenProviderInput as ss, ComposedStoryFn$1 as st, ExecaCommandErrorData as t, GlobalsUpdatedPayload as ta, universalTestProviderStore as tc, Addon_MakeDecoratorResult$1 as ti, RequestResponseError as tl, StoryRenderOptions$1 as tn, PackageJson$2 as to, Renderer$2 as tr, DocgenError as ts, UseStatusStore as tt, PnpmNoTtyModulesDirError as u, useServiceCommand as ua, getStatusStoreByTypeId as uc, Addon_StoryFn as ui, keyToSymbol as ul, ModuleImportFn$1 as un, RendererName as uo, SeparatorOptions as ur, BaseIndexEntry as us, StoriesWithPartialProps$1 as ut, OpenServiceDuplicateToolNameError as v, selectStoryDoc as va, EventInfo as vc, Addon_StoryWrapper$1 as vi, addons$1 as vl, RenderContext as vn, TagOptions as vo, StoryContextForLoaders as vr, IndexedCSFFile$1 as vs, WebView as vt, OpenServiceMissingChannelError as w, StoryDocsPayload as wa, API_EventMap as wc, Addon_TypesMapping$1 as wi, ConflictingStaticDirConfigError as wl, ArgTypes$2 as wn, API_BaseEntry as wo, StoryKind$1 as wr, StoriesSpecifier as ws, Preview$1 as wt, OpenServiceInvalidStaticPathError as x, StoryDoc as xa, API_ComponentEntry$1 as xc, Addon_Type as xi, IncompatiblePostCssConfigError as xl, WebRenderer$1 as xn, TestBuildFlags as xo, StoryFn as xr, IndexerOptions as xs, PreviewWithSelection as xt, OpenServiceDuplicateToolsetError as y, selectWarningForStory as ya, StoreOptions as yc, Addon_TestProviderType$1 as yi, GoogleFontsDownloadError as yl, RenderToCanvas$1 as yn, TagsOptions$1 as yo, StoryContextForRender as yr, IndexedStory as ys, UrlStore as yt, describeUnknownStoryIds as z, CoreCommon_AddonInfo$1 as za, State as zc, API_PanelPositions$1 as zi, GenerateNewProjectOnInitError as zl, Conditional$1 as zn, API_StoryEntry$1 as zo, Addon_BaseDecorators as zr, createStoriesToolset as zs, composeStory as zt };
|
|
13118
|
+
export { StatusValue$1 as $, ModuleResolveConfig as $a, _default as $c, FilterFunction as $i, PlayFunction as $n, ModuleResolveConfig$1 as $o, Addon_LoaderFunction as $r, fullTestProviderStore as $s, ResolvedModuleExportFromType$1 as $t, OpenServiceRemoteCommandConfigDriftError as A, BuilderOptions$1 as Aa, API_RootEntry$1 as Ac, API_ActiveTabsType as Ai, MainFileMissingError as Al, BaseAnnotations$1 as An, API_IndexHash$1 as Ao, StrictArgs$1 as Ar, StoryIndexV3$1 as As, decorateStory as At, NoFreePortError as B, CoreCommon_OptionsEntry as Ba, combineParameters$1 as Bc, API_Provider$1 as Bi, MinimumReleaseAgeHandledError as Bl, DecoratorApplicator$1 as Bn, API_TestEntry$1 as Bo, Addon_BaseMeta as Br, reviewToolset as Bs, setDefaultProjectAnnotations as Bt, OpenServiceLoadedDrainExceededError as C, StoryDocsError as Ca, API_DocsEntry$2 as Cc, Addon_TypesEnum$1 as Ci, ViteModuleGraphSubscriptionError as Cl, AnnotatedStoryFn$1 as Cn, VersionCheck as Co, StoryIdentifier as Cr, StoriesEntry$1 as Cs, SelectionStore as Ct, OpenServiceMissingToolsetError as D, StoryDocsProviderPreset as Da, API_IndexHash$2 as Dc, Addons_ArgTypes as Di, InvalidFrameworkNameError as Dl, ArgsEnhancer as Dn, API_FilterFunction$1 as Do, StorybookParameters as Dr, StoryIndexFileError as Ds, userOrAutoTitle as Dt, OpenServiceMissingServiceError as E, StoryDocsProviderInput as Ea, API_HashEntry$2 as Ec, Addon_WrapperType$1 as Ei, CriticalPresetLoadError as El, Args$2 as En, API_DocsEntry$1 as Eo, StorybookInternalParameters as Er, StoryIndexEntry$1 as Es, sortStoriesV7 as Et, OpenServiceToolsetOutputMismatchError as F, ComponentManifest as Fa, ManagerConsumer as Fc, API_LayoutCustomisations$1 as Fi, AddonVitestPostinstallConfigUpdateError as Fl, CleanupCallback$1 as Fn, API_RefStoryRuntimeData as Fo, Addon_Annotations as Fr, registerToolset as Fs, filterArgTypes as Ft, NON_AGGREGATED_STATUS_TYPE_IDS as G, CsfEnricher$1 as Ga, useChannel as Gc, API_RenderOptions as Gi, InputType as Gn, SupportedFramework$1 as Go, Addon_Comparator as Gr, emptyManifests as Gs, normalizeProjectAnnotations as Gt, StatusTypeIdMismatchError as H, CoreCommon_ResolvedAddonVirtual$1 as Ha, useAddonState as Hc, API_RefId as Hi, StorybookError as Hl, GlobalTypes$1 as Hn, API_Version$1 as Ho, Addon_BaseStoryObject as Hr, SourceWithUrl as Hs, composeStepRunners as Ht, OpenServiceUnimplementedOperationError as I, ComponentSubcomponentManifest as Ia, ManagerContext as Ic, API_LoadedRefData$1 as Ii, AddonVitestPostinstallError as Il, ComponentAnnotations$1 as In, API_ReleaseNotes as Io, Addon_ArgType as Ir, KnownToolsets as Is, combineParameters as It, StatusByTypeId$1 as J, ForkbookConfig$1 as Ja, useParameter as Jc, API_SidebarOptions$1 as Ji, LegacyStoryFn$1 as Jn, ImportParser as Jo, Addon_Elements as Jr, parseToolsetMethodId as Js, addons as Jt, REVIEW_STATUS_TYPE_ID as K, DocsOptions$1 as Ka, useGlobalTypes as Kc, API_RouteOptions as Ki, LegacyAnnotatedStoryFn as Kn, SupportedBuilder$1 as Ko, Addon_Config$1 as Kr, ToolsetMethodId as Ks, normalizeStory as Kt, OpenServiceUnknownStoryIdsError as L, ComponentsManifest as La, ManagerProvider as Lc, API_MatchOptions as Li, AddonVitestPostinstallPrerequisiteCheckError as Ll, ComponentId as Ln, API_RootEntry as Lo, Addon_ArgsStoryFn as Lr, PreviewStoriesOutput as Ls, getCsfFactoryAnnotations as Lt, OpenServiceRemoteCommandUnhandledError as M, CLIBaseOptions as Ma, ActiveTabs as Mc, API_ComposedRefUpdate$1 as Mi, MissingFrameworkFieldError as Ml, BeforeAll as Mn, API_OptionsData$1 as Mo, Tag$2 as Mr, clearToolsetRegistry as Ms, sanitizeStoryContextUpdate as Mt, OpenServiceServicesAppliedTwiceError as N, CLIOptions$1 as Na, Combo as Nc, API_IframeRenderer$1 as Ni, NoMatchingExportError as Nl, BeforeEach as Nn, API_PreparedIndexEntry as No, TestFunction$1 as Nr, getRegisteredToolsets as Ns, inferControls as Nt, OpenServiceModuleGraphUnavailableError as O, Builder$1 as Oa, API_LeafEntry$2 as Oc, BaseStory as Oi, InvalidStoriesEntryError as Ol, ArgsFromMeta$1 as On, API_GroupEntry as Oo, StorybookTypes$1 as Or, StoryIndexInput as Os, userOrAutoTitleFromSpecifier as Ot, OpenServiceTestRunTimeoutError as P, CompatibleString$1 as Pa, Listener$2 as Pc, API_Layout$1 as Pi, NxProjectDetectedError as Pl, Canvas$1 as Pn, API_PreparedStoryIndex$1 as Po, ViewMode$2 as Pr, getToolset as Ps, PropDescriptor as Pt, StatusTypeId as Q, Middleware$1 as Qa, useStorybookState as Qc, API_ViewMode$1 as Qi, Path$1 as Qn, FileChangeEvent as Qo, Addon_Loader as Qr, Tag$4 as Qs, ResolvedModuleExport as Qt, OpenServiceValidationError as R, CoreCommon_AddonEntry as Ra, ManagerProviderProps as Rc, API_Notification$1 as Ri, AddonVitestPostinstallWorkspaceUpdateError as Rl, ComponentTitle$1 as Rn, API_Settings$1 as Ro, Addon_BaseAnnotations as Rr, StoryIndexAccess as Rs, composeStories as Rt, OpenServiceInvalidToolsetMethodIdError as S, StoryDocsById as Sa, API_ComposedRef$2 as Sc, Addon_Types$1 as Si, NoStatsForViteDevError as Sl, AfterEach$1 as Sn, TypescriptOptions as So, StoryId$2 as Sr, NormalizedStoriesSpecifier$1 as Ss, View as St, OpenServiceMissingOriginError as T, StoryDocsProvider as Ta, API_GroupEntry$1 as Tc, Addon_WrapperSettings as Ti, CouldNotEvaluateFrameworkError as Tl, ArgTypesEnhancer as Tn, API_ComponentEntry as To, StoryName$1 as Tr, StoryIndex$1 as Ts, DocsContext as Tt, StorybookDevServerDisconnectedError as U, CoreCommon_StorybookInfo$1 as Ua, useArgTypes as Uc, API_RefUrl as Ui, Globals$2 as Un, API_Versions$2 as Uo, Addon_BaseType$1 as Ur, DocsAccess as Us, composeConfigs as Ut, SavingGlobalSettingsFileError as V, CoreCommon_ResolvedAddonPreset$1 as Va, typesX as Vc, API_ProviderData$1 as Vi, Category as Vl, DecoratorFunction$2 as Vn, API_UnknownEntries$1 as Vo, Addon_BaseStoryFn as Vr, createDocsToolset as Vs, setProjectAnnotations as Vt, CHANGE_DETECTION_STATUS_TYPE_ID as W, CoreConfig$1 as Wa, useArgs as Wc, API_Refs$1 as Wi, IncludeExcludeOptions as Wn, SupportedRenderer$1 as Wo, Addon_Collection$1 as Wr, ResolvedDocsEntry as Ws, normalizeArrays as Wt, StatusStoreByTypeId$1 as X, LoadedPreset$1 as Xa, useStoryPrepared as Xc, API_StoryMapper as Xi, Parameters$2 as Xn, ParseFileArgs as Xo, Addon_LoadFn as Xr, seedQueryState as Xs, DocsRenderFunction$1 as Xt, StatusStore as Y, LoadOptions$1 as Ya, useSharedState as Yc, API_StateMerger$1 as Yi, LoaderFunction$1 as Yn, ImportParserContext as Yo, Addon_LegacyStoryFn as Yr, toMcpToolName as Ys, DocsContextProps$2 as Yt, StatusStoreEvent as Z, Manifests$1 as Za, useStorybookApi as Zc, API_UI$1 as Zi, PartialStoryFn$1 as Zn, ChangeDetectionAdapter as Zo, Addon_Loadable as Zr, defineService as Zs, RenderContextCallbacks$1 as Zt, OpenServiceDuplicateRegistrationError as _, selectSnippetForStory as _a, Event as _c, Addon_StorySortParameterV7$1 as _i, Addon_Type$1 as _l, ProjectAnnotations$2 as _n, StorybookFeatures as _o, StoryContextForEnhancers$1 as _r, IndexInputStats$1 as _s, simulatePageLoad as _t, PackageInstallFailedError as a, SetStoriesStoryData as aa, TestProviderStateByProviderId as ac, Addon_PartialStoryFn as ai, controlOrMetaKey as al, Builder_WithRequiredProperty as an, PresetPropertyFn as ao, SBObjectType as ar, DocgenProvider as as, REVIEW_NAMESPACE as at, OpenServiceInternalServiceError as b, StoryDocsService as ba, API as bc, Addon_ToolbarConfig as bi, GoogleFontsLoadingError as bl, TeardownRenderToCanvas as bn, TestBuildConfig as bo, StoryContextUpdate$1 as br, Indexer$1 as bs, PreviewWeb as bt, PlaywrightInstallFailedError as c, registerService$1 as ca, UseTestProviderStore as cc, Addon_StoryContext as ci, eventToShortcut as cl, ModuleExport$1 as cn, PreviewAnnotation as co, SBType$1 as cr, DocgenSubcomponent as cs, PartialArgsStoryFn as ct, formatExecaCommand as d, ServerCoreServices as da, universalStatusStore as dc, Addon_StorySortComparator as di, optionOrAltSymbol as dl, NamedOrDefaultProjectAnnotations$1 as dn, RootPageOptions as do, StepFunction as dr, BaseIndexInput as ds, getService as dt, DocsPreparedPayload as ea, getTestProviderStoreById as ec, Addon_Loaders as ei, isMacLike as el, ResolvedModuleExportType$1 as en, Options$1 as eo, PlayFunctionContext as er, DocgenService as es, StatusesByStoryIdAndTypeId$1 as et, formatExecaFailureDetails as f, TypedGetService as fa, useStatusStore as fc, Addon_StorySortComparatorV7 as fi, shortcutMatchesShortcut as fl, NormalizedComponentAnnotations$1 as fn, SecurityConfig as fo, StepLabel as fr, DocsAnchor$1 as fs, registerService as ft, OpenServiceDocgenMissingComponentError as g, prependImportToSnippet as ga, Actor as gc, Addon_StorySortParameter as gi, AddonStore$1 as gl, PreparedStory$1 as gn, StorybookConfigRaw$1 as go, StoryContext$2 as gr, IndexInput$1 as gs, simulateDOMContentLoaded as gt, OpenServiceCyclicStateError as h, ReviewState as ha, UniversalStore as hc, Addon_StorySortOrder as hi, Options$2 as hl, PreparedMeta$1 as hn, StorybookConfigOptions as ho, StoryAnnotationsOrFn$1 as hr, IndexEntry$1 as hs, emitTransformCode as ht, PackageInstallDependencyConflictError as i, SetStoriesStory as ia, TestProviderState as ic, Addon_PageType$1 as ii, KeyboardEventLike as il, Builder_Unpromise as in, PresetProperty$1 as io, SBIntersectionType as ir, DocgenPayload$1 as is, REVIEW_EVENTS as it, OpenServiceRemoteCommandDisconnectedError as j, BuilderResult as ja, API_StoryEntry$2 as jc, API_ComposedRef$1 as ji, MissingBuilderError as jl, BaseProjectAnnotations as jn, API_LeafEntry$1 as jo, StrictInputType as jr, V3CompatIndexEntry as js, defaultDecorateStory as jt, OpenServiceOperationNameCollisionError as k, BuilderName as ka, API_Refs$2 as kc, IndexEntryLegacy as ki, MainFileEvaluationError as kl, ArgsStoryFn$1 as kn, API_HashEntry$1 as ko, StrictArgTypes$2 as kr, StoryIndexV2$1 as ks, combineArgs as kt, PnpmIgnoredBuildsError as l, useServiceQuery as la, fullStatusStore as lc, Addon_StoryContextUpdate as li, isShortcutTaken as ll, ModuleExports$1 as ln, Ref$2 as lo, SBUnionType as lr, DocgenWorkerModule as ls, Store_CSFExports$1 as lt, OpenServiceAsyncSchemaError as m, ReviewCollection as ma, useUniversalStore as mc, Addon_StorySortObjectParameter as mi, shortcutToHumanString as ml, NormalizedStoryAnnotations$1 as mn, Stats as mo, StoryAnnotations$1 as mr, DocsIndexInput as ms, waitForAnimations as mt, ExecaCommandFailedError as n, SetGlobalsPayload as na, useTestProviderStore as nc, Addon_OptionsParameter as ni, experimental_requestResponse as nl, BuilderStats as nn, Preset as no, SBArrayType as nr, DocgenJsDocTags as ns, SupportedLanguage$1 as nt, PackageInstallMissingManifestError as o, StoryPreparedPayload as oa, TestProviderStoreById as oc, Addon_RenderOptions$1 as oi, controlOrMetaSymbol as ol, BoundStory as on, PresetValue as oo, SBOtherType as or, DocgenProviderDescriptor as os, ComposeStoryFn$1 as ot, OpenServiceAsyncRecipeError as p, ModuleGraphServiceState as pa, MockUniversalStore as pc, Addon_StorySortMethod as pi, shortcutToAriaKeyshortcuts as pl, NormalizedProjectAnnotations$1 as pn, ServerApp as po, StepRunner$1 as pr, DocsIndexEntry$1 as ps, pauseAnimations as pt, Status$1 as q, Entry as qa, useGlobals as qc, API_SetRefData$1 as qi, LegacyStoryAnnotationsOrFn$1 as qn, ImportEdge as qo, Addon_DecoratorFunction$1 as qr, getToolName as qs, makeDecorator as qt, FindPackageVersionsError as r, SetStoriesPayload as ra, TestProviderId as rc, Addon_OptionsParameterV7 as ri, API_KeyCollection as rl, Builder_EnvsRaw as rn, PresetConfig$1 as ro, SBEnumType as rr, DocgenMiddleware as rs, Feature$1 as rt, PackageManagerBinaryNotFoundError as s, getService$1 as sa, TestProviderStoreEvent as sc, Addon_RequireContext as si, eventMatchesShortcut as sl, CSFFile$1 as sn, Presets$1 as so, SBScalarType as sr, DocgenProviderInput as ss, ComposedStoryFn$1 as st, ExecaCommandErrorData as t, GlobalsUpdatedPayload as ta, universalTestProviderStore as tc, Addon_MakeDecoratorResult$1 as ti, RequestResponseError as tl, StoryRenderOptions$1 as tn, PackageJson$2 as to, Renderer$2 as tr, DocgenError as ts, UseStatusStore as tt, PnpmNoTtyModulesDirError as u, useServiceCommand as ua, getStatusStoreByTypeId as uc, Addon_StoryFn as ui, keyToSymbol as ul, ModuleImportFn$1 as un, RendererName as uo, SeparatorOptions as ur, BaseIndexEntry as us, StoriesWithPartialProps$1 as ut, OpenServiceDuplicateToolNameError as v, selectStoryDoc as va, EventInfo as vc, Addon_StoryWrapper$1 as vi, addons$1 as vl, RenderContext as vn, TagOptions as vo, StoryContextForLoaders as vr, IndexedCSFFile$1 as vs, WebView as vt, OpenServiceMissingChannelError as w, StoryDocsPayload as wa, API_EventMap as wc, Addon_TypesMapping$1 as wi, ConflictingStaticDirConfigError as wl, ArgTypes$2 as wn, API_BaseEntry as wo, StoryKind$1 as wr, StoriesSpecifier as ws, Preview$1 as wt, OpenServiceInvalidStaticPathError as x, StoryDoc as xa, API_ComponentEntry$1 as xc, Addon_Type as xi, IncompatiblePostCssConfigError as xl, WebRenderer$1 as xn, TestBuildFlags as xo, StoryFn as xr, IndexerOptions as xs, PreviewWithSelection as xt, OpenServiceDuplicateToolsetError as y, selectWarningForStory as ya, StoreOptions as yc, Addon_TestProviderType$1 as yi, GoogleFontsDownloadError as yl, RenderToCanvas$1 as yn, TagsOptions$1 as yo, StoryContextForRender as yr, IndexedStory as ys, UrlStore as yt, describeUnknownStoryIds as z, CoreCommon_AddonInfo$1 as za, State as zc, API_PanelPositions$1 as zi, GenerateNewProjectOnInitError as zl, Conditional$1 as zn, API_StoryEntry$1 as zo, Addon_BaseDecorators as zr, createStoriesToolset as zs, composeStory as zt };
|
|
@@ -183,7 +183,8 @@ interface WebsocketTransportArgs extends Partial<Config> {
|
|
|
183
183
|
reconnect?: WebsocketReconnectOptions | boolean;
|
|
184
184
|
}
|
|
185
185
|
declare const HEARTBEAT_INTERVAL = 15000;
|
|
186
|
-
|
|
186
|
+
/** The channel path for the default base path. Use `getChannelPath(basePath)` for another base. */
|
|
187
|
+
declare const SERVER_CHANNEL_PATH = "/_forkbook/fb-channel";
|
|
187
188
|
declare class WebsocketTransport implements ChannelTransport {
|
|
188
189
|
private buffer;
|
|
189
190
|
private handler?;
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Go as SupportedFramework$1, Ko as SupportedBuilder$1, Wo as SupportedRenderer$1, go as StorybookConfigRaw$1 } from "../chunk-
|
|
2
|
-
import { t as JsPackageManager$1 } from "../chunk-
|
|
1
|
+
import { Go as SupportedFramework$1, Ko as SupportedBuilder$1, Wo as SupportedRenderer$1, go as StorybookConfigRaw$1 } from "../chunk-ge-rSPy0.js";
|
|
2
|
+
import { t as JsPackageManager$1 } from "../chunk-D2CQlXaR.js";
|
|
3
3
|
import { Feature, SupportedBuilder, SupportedFramework, SupportedLanguage, SupportedRenderer } from "@aussieljk/forkbook/internal/types";
|
|
4
4
|
import * as v from "valibot";
|
|
5
5
|
import { JsPackageManager, PackageJson as PackageJson$1, PackageManagerName } from "@aussieljk/forkbook/internal/common";
|