@aussieljk/forkbook 0.0.1-14 → 0.0.1-15
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-SRJLV635.js → Color-OSKHEBLS.js} +1 -1
- package/dist/_browser-chunks/{WithTooltip-66AWY4VQ.js → WithTooltip-IPJFQHVQ.js} +1 -1
- package/dist/_browser-chunks/chunk-4ZGQ4YQ2.js +20 -0
- package/dist/_browser-chunks/{chunk-TISSQK65.js → chunk-74S4GA34.js} +1 -1
- package/dist/_browser-chunks/{chunk-S7N7Z5TY.js → chunk-TRXLBGLS.js} +21 -2
- package/dist/_browser-chunks/{chunk-J4UZWNQC.js → chunk-XRILAR4S.js} +11 -11
- package/dist/_node-chunks/{attached-runtime-6PIRX7CQ.js → attached-runtime-5ABH72AY.js} +28 -28
- package/dist/_node-chunks/{builder-manager-V5HY2EIW.js → builder-manager-4T5FVGUR.js} +18 -15
- package/dist/_node-chunks/{chunk-USLPZFTU.js → chunk-2FWG2MQN.js} +6 -6
- package/dist/_node-chunks/chunk-2YVNFDPN.js +18 -0
- package/dist/_node-chunks/{chunk-IWNGZZOH.js → chunk-33IC7FUB.js} +9 -9
- package/dist/_node-chunks/{chunk-HIUJFVVI.js → chunk-46E6YIPW.js} +7 -7
- package/dist/_node-chunks/{chunk-NRYRRB6R.js → chunk-4BWBFTBZ.js} +7 -7
- package/dist/_node-chunks/{chunk-475RIYQK.js → chunk-4ELXERU6.js} +6 -6
- package/dist/_node-chunks/{chunk-YAASP4OM.js → chunk-4GGXQOD4.js} +8 -8
- package/dist/_node-chunks/{chunk-DBZ3MV24.js → chunk-4ISTQSCO.js} +19 -7
- package/dist/_node-chunks/{chunk-ZDMZKYDQ.js → chunk-4XKLH4I3.js} +6 -6
- package/dist/_node-chunks/{chunk-DMIUL52J.js → chunk-56L6SVSQ.js} +6 -6
- package/dist/_node-chunks/{chunk-4IMBYVSQ.js → chunk-5NWCUFPU.js} +6 -6
- package/dist/_node-chunks/{chunk-6BYFV3Q7.js → chunk-5Y53QRNN.js} +6 -6
- package/dist/_node-chunks/{chunk-UZRRWBTM.js → chunk-6DHYHTHM.js} +8 -8
- package/dist/_node-chunks/{chunk-XOHD6XOU.js → chunk-6H3FQSQV.js} +52 -22
- package/dist/_node-chunks/{chunk-H7BW4AVF.js → chunk-6WHTGFDB.js} +6 -6
- package/dist/_node-chunks/{chunk-ESF43LCU.js → chunk-767UK7PX.js} +9 -9
- package/dist/_node-chunks/{chunk-K3M6GTPC.js → chunk-7IYNKFXW.js} +10 -10
- package/dist/_node-chunks/{chunk-DDKUSQFU.js → chunk-7LYHZMJO.js} +6 -6
- package/dist/_node-chunks/{chunk-KE27G2SG.js → chunk-7RE5WNOM.js} +7 -7
- package/dist/_node-chunks/{chunk-AYCHV6XS.js → chunk-A3EPCOVV.js} +7 -7
- package/dist/_node-chunks/chunk-AK4RPNTY.js +137 -0
- package/dist/_node-chunks/{chunk-H7OP7USW.js → chunk-AUUVNECB.js} +7 -7
- package/dist/_node-chunks/{chunk-AWQ6IMN5.js → chunk-B6JJQARD.js} +9 -9
- package/dist/_node-chunks/chunk-BVF25DJF.js +20 -0
- package/dist/_node-chunks/{chunk-CM4ALPXN.js → chunk-DASUWWHV.js} +6 -6
- package/dist/_node-chunks/{chunk-G7CEHU7W.js → chunk-DJPS7LWH.js} +7 -7
- package/dist/_node-chunks/{chunk-7F55FT5N.js → chunk-DTFPS5QE.js} +7 -7
- package/dist/_node-chunks/{chunk-TR5RJPQV.js → chunk-EHPAFXPB.js} +8 -8
- package/dist/_node-chunks/{chunk-XXQUU56M.js → chunk-FFE4YDDE.js} +9 -9
- package/dist/_node-chunks/{chunk-DLQVZMTD.js → chunk-FJE2XPLI.js} +6 -6
- package/dist/_node-chunks/{chunk-6C6EDUW3.js → chunk-FSSOM72N.js} +14 -14
- package/dist/_node-chunks/{chunk-PU4TVXCV.js → chunk-FVHSCRCK.js} +7 -7
- package/dist/_node-chunks/{chunk-2WWD7IJS.js → chunk-G6M5USWY.js} +8 -8
- package/dist/_node-chunks/{chunk-WWGYV7QI.js → chunk-G7NZ27DS.js} +7 -7
- package/dist/_node-chunks/{chunk-XAK4JWKF.js → chunk-GRJPH3NW.js} +8 -8
- package/dist/_node-chunks/{chunk-56Y4ZIQS.js → chunk-H4IDYTC4.js} +7 -7
- package/dist/_node-chunks/{chunk-PB5OW47R.js → chunk-H5AAYJZE.js} +8 -8
- package/dist/_node-chunks/{chunk-KO7CKNTP.js → chunk-HK47D3O3.js} +7 -7
- package/dist/_node-chunks/{chunk-5VLJNYCG.js → chunk-J2ZTT2OP.js} +33 -23
- package/dist/_node-chunks/{chunk-2DGZADP4.js → chunk-JAPFAHXG.js} +6 -6
- package/dist/_node-chunks/{chunk-OZM2N3ZY.js → chunk-JC4I7ZVM.js} +7 -7
- package/dist/_node-chunks/{chunk-YUZDQTG3.js → chunk-JCQU3LND.js} +7 -7
- package/dist/_node-chunks/{chunk-OGF5O46G.js → chunk-JQKD337A.js} +6 -6
- package/dist/_node-chunks/{chunk-QP5A3OYV.js → chunk-JYQSJLIK.js} +8 -8
- package/dist/_node-chunks/{chunk-4IRW4KVR.js → chunk-KFZRX33G.js} +8 -8
- package/dist/_node-chunks/{chunk-QVEPLFS4.js → chunk-KIAQML4H.js} +8 -8
- package/dist/_node-chunks/{chunk-YHXP7DMA.js → chunk-LHRQTTE7.js} +8 -8
- package/dist/_node-chunks/{chunk-JBQXQVOG.js → chunk-LNMVMXBN.js} +7 -7
- package/dist/_node-chunks/chunk-M6LN66WA.js +20 -0
- package/dist/_node-chunks/{chunk-DQHAJZYL.js → chunk-M75NG64K.js} +7 -7
- package/dist/_node-chunks/{chunk-4MFP6QG3.js → chunk-MBTS4OBP.js} +6 -6
- package/dist/_node-chunks/chunk-MBTTUFUX.js +11 -0
- package/dist/_node-chunks/{chunk-5A53X2WP.js → chunk-MLJPAH4O.js} +6 -6
- package/dist/_node-chunks/{chunk-T3SCXAMA.js → chunk-NGFVR7UO.js} +6 -6
- package/dist/_node-chunks/{chunk-IXZUAPGY.js → chunk-ONKMPF4O.js} +6 -6
- package/dist/_node-chunks/{chunk-CCJIZTUJ.js → chunk-OS6P62RS.js} +6 -6
- package/dist/_node-chunks/{chunk-PXN2IFPG.js → chunk-QAQWINPN.js} +7 -7
- package/dist/_node-chunks/{chunk-4RBPVBKC.js → chunk-QF4WUMRT.js} +10 -10
- package/dist/_node-chunks/{chunk-3MBZZMYZ.js → chunk-QF5RQWCH.js} +6 -6
- package/dist/_node-chunks/{chunk-TH6GIF3K.js → chunk-QZR6HJVD.js} +7 -7
- package/dist/_node-chunks/chunk-R5H4DAON.js +19 -0
- package/dist/_node-chunks/{chunk-LXLNUUFW.js → chunk-RENIT4CI.js} +6 -6
- package/dist/_node-chunks/{chunk-QTB7G4LF.js → chunk-SJVTZ4IO.js} +23 -23
- package/dist/_node-chunks/{chunk-5OVUKRFB.js → chunk-SL53Q3H4.js} +6 -6
- package/dist/_node-chunks/{chunk-CXSBVV4J.js → chunk-T34DVPWM.js} +6 -6
- package/dist/_node-chunks/{chunk-S2IX32KL.js → chunk-TVDV6YAE.js} +8 -8
- package/dist/_node-chunks/{chunk-CEBBAWIT.js → chunk-U6T34IDM.js} +6 -6
- package/dist/_node-chunks/{chunk-LGMNVTJZ.js → chunk-UAU6RMOS.js} +19 -19
- package/dist/_node-chunks/{chunk-3MBTHKMD.js → chunk-UMWJISED.js} +6 -6
- package/dist/_node-chunks/{chunk-Q7ADULRW.js → chunk-UO3EXKJC.js} +6 -6
- package/dist/_node-chunks/{chunk-ST7CLK7N.js → chunk-VCKRLODV.js} +8 -8
- package/dist/_node-chunks/{chunk-DYHMJVLZ.js → chunk-VS4AUXP2.js} +6 -6
- package/dist/_node-chunks/{chunk-MACS5P6Q.js → chunk-VUHK6VXL.js} +12 -12
- package/dist/_node-chunks/{chunk-EYZMI5JO.js → chunk-VUP4EHUR.js} +8 -8
- package/dist/_node-chunks/{chunk-IY3BJJVM.js → chunk-VXDKI65K.js} +26 -26
- package/dist/_node-chunks/{chunk-QGJV32VT.js → chunk-W32FBKF3.js} +10 -10
- package/dist/_node-chunks/{chunk-RH4PXLHE.js → chunk-W6AOA2O5.js} +7 -7
- package/dist/_node-chunks/{chunk-FMXUZSLI.js → chunk-W7352H3Q.js} +6 -6
- package/dist/_node-chunks/{chunk-VHSRKW3N.js → chunk-WMUNVUVG.js} +6 -6
- package/dist/_node-chunks/{chunk-UWM37IXC.js → chunk-WTZ24FWN.js} +8 -8
- package/dist/_node-chunks/{chunk-YMF2ZP77.js → chunk-X3BAGYZJ.js} +8 -8
- package/dist/_node-chunks/{chunk-FDWORQWO.js → chunk-XERNMHVC.js} +6 -6
- package/dist/_node-chunks/chunk-XU6HITGZ.js +25 -0
- package/dist/_node-chunks/chunk-XV76A4CX.js +47 -0
- package/dist/_node-chunks/{chunk-HXFN2M2F.js → chunk-XWHHBYMV.js} +6 -6
- package/dist/_node-chunks/{chunk-WDSTXRQP.js → chunk-Y3FJT543.js} +7 -7
- package/dist/_node-chunks/{chunk-LBAKDZV6.js → chunk-YHYL4HYS.js} +6 -6
- package/dist/_node-chunks/{chunk-CH5FN27Z.js → chunk-ZNT3JZI2.js} +7 -7
- package/dist/_node-chunks/{chunk-NZ2SSNU7.js → chunk-ZPWEQZYR.js} +7 -7
- package/dist/_node-chunks/{chunk-PTMZZHGA.js → chunk-ZSTCVYOA.js} +6 -6
- package/dist/_node-chunks/dist-2H6YEUMD.js +16 -0
- package/dist/_node-chunks/dist-HL4THRGZ.js +27 -0
- package/dist/_node-chunks/{local-runtime-2DFMXO2N.js → local-runtime-W3N7O65Q.js} +19 -19
- package/dist/_node-chunks/{mdx-plugin-FEC4UKBF.js → mdx-plugin-NVSAW2N3.js} +13 -13
- package/dist/_node-chunks/{monorepo-TRTFPD3M.js → monorepo-JDWM46J3.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-D3VPQGCI.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-56HEREMG.js} +11 -11
- package/dist/_node-chunks/optimized-tests-VZGTWCG4.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-ZUQ2ZQ7T.js → pattern-copy-play-ZWHYXQK5.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-5TRUTJXJ.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-MEOVNWZI.js → rehype-external-links-ME2XNDXH.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-RRLOM7B4.js → rehype-slug-2UJLYPC6.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-RGYTFJP3.js → relaxed-limits-XWE3S456.js} +11 -11
- package/dist/_node-chunks/{run-FRTM74WS.js → run-5YG73LXV.js} +17 -17
- package/dist/_node-chunks/{run-YVMIX6AJ.js → run-DNDPGCFE.js} +15 -15
- package/dist/_node-chunks/{setup-4TBDLNSA.js → setup-MDNSLQIJ.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-GCYBLHAD.js → vitest.config.4.template-TXAUMPSS.js} +7 -7
- package/dist/addon-a11y/manager.js +4 -4
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-comments/manager.js +346 -0
- package/dist/addon-comments/preset.js +52 -0
- package/dist/addon-comments/preview.js +101 -0
- package/dist/addon-docs/blocks.js +10 -10
- 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 +138 -38
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +13 -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 +12 -12
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +56 -56
- package/dist/bin/dispatcher.js +10 -10
- 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/channels/index.d.ts +2 -2
- package/dist/channels/index.js +68 -17
- package/dist/{chunk-BCG2ui5q.d.ts → chunk-BRMwIGWt.d.ts} +14 -3
- package/dist/{chunk-LWwxlbee.d.ts → chunk-C4-cnJ1R.d.ts} +1 -1
- package/dist/{chunk-u_gGuTrz.d.ts → chunk-QtkUsZCs.d.ts} +27 -2
- package/dist/{chunk-BV_hETtB.d.ts → chunk-s5Ka0eSs.d.ts} +1 -1
- package/dist/cli/index.d.ts +1 -1
- 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 +3 -3
- package/dist/common/index.js +34 -34
- package/dist/components/index.js +29 -29
- package/dist/core-events/index.d.ts +3 -2
- package/dist/core-events/index.js +3 -1
- package/dist/core-server/index.d.ts +23 -3
- package/dist/core-server/index.js +206 -103
- package/dist/core-server/presets/common-manager.js +17 -9
- package/dist/core-server/presets/common-override-preset.js +10 -10
- package/dist/core-server/presets/common-preset.js +38 -38
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/index.js +1 -1
- package/dist/csf-tools/index.js +12 -12
- package/dist/manager/_manager-chunks/{globals-runtime-BIrCHXzl.js → globals-runtime-BUEqXras.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-CHSN7ayG.js → globals-runtime-BsHjh8rR.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-tTC_6sNF.js → globals-runtime-CQ0Et7dZ.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-Cw7lbjdT.js → globals-runtime-DChrMWvh.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-LBSQHYdZ.js → globals-runtime-DiIxNujJ.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-BypvnYKb.js → globals-runtime-DjkYleFR.js} +174 -104
- package/dist/manager/_manager-chunks/{runtime-Db8fJ2MP.js → runtime-BMoEpoix.js} +24 -21
- package/dist/manager/_manager-chunks/{runtime-DNudxxRZ.js → runtime-BWASr_zc.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-BjFN_NTg.js → runtime-B_e-Zdqt.js} +12 -8
- package/dist/manager/_manager-chunks/{runtime-CmF_ONjM.js → runtime-CEi1oIg2.js} +420 -326
- package/dist/manager/_manager-chunks/{runtime-DAe0yHIe.js → runtime-CLIeRJL-.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-Bm0yxY5O.js → runtime-CWZ9qCi4.js} +51 -24
- package/dist/manager/_manager-chunks/{runtime-DE1NZ9Fx.js → runtime-CXOuNYw-.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-BUwzOVia.js → runtime-C_H6vGzi.js} +6 -5
- package/dist/manager/_manager-chunks/{runtime-X3QUx4F_.js → runtime-Dn2myy1z.js} +8 -8
- package/dist/manager/_manager-chunks/{runtime-CZtDJIYj.js → runtime-TSEq5lJd.js} +1 -1
- 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/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +15 -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.js +9 -9
- package/dist/oxc-parser/index.js +10 -10
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-tyJLgv6h.js → runtime-COMyPEkR.js} +97 -27
- package/dist/preview/_chunks/{runtime-CdZ1yk7m.js → runtime-CqTqsVg2.js} +2 -2
- package/dist/preview/_chunks/{runtime-U1Ycy25F.js → runtime-CrKf1OM4.js} +2 -2
- package/dist/preview/_chunks/{runtime-CsO4apr9.js → runtime-YJlypwja.js} +30 -5
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +2 -2
- package/dist/preview-api/index.js +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/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.d.ts +3 -1
- package/dist/react-vite/preset.js +16 -9
- 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 +2 -2
- package/package.json +13 -1
- package/dist/_node-chunks/chunk-DGXCQ24N.js +0 -20
- package/dist/_node-chunks/chunk-HLVUFCKZ.js +0 -18
- package/dist/_node-chunks/chunk-K5OUTGSQ.js +0 -25
- package/dist/_node-chunks/chunk-RG3VKQXD.js +0 -11
- package/dist/_node-chunks/chunk-SAVT2SUC.js +0 -20
- package/dist/_node-chunks/chunk-UOIQLKIA.js +0 -19
- package/dist/_node-chunks/dist-474BX4RE.js +0 -27
- package/dist/_node-chunks/dist-U25X3BJ2.js +0 -16
- package/dist/_node-chunks/optimized-tests-4LM55CRN.js +0 -22
- package/dist/_node-chunks/postinstallAddon-OUVXGSJV.js +0 -20
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// ../../node_modules/es-toolkit/dist/string/escapeRegExp.mjs
|
|
14
|
+
function escapeRegExp(str) {
|
|
15
|
+
return str.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&");
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
escapeRegExp
|
|
20
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
kebabCase
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-T34DVPWM.js";
|
|
15
15
|
|
|
16
16
|
// src/shared/open-service/toolset-names.ts
|
|
17
17
|
function parseToolsetMethodId(methodId) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
invariant
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XWHHBYMV.js";
|
|
15
15
|
|
|
16
16
|
// src/cli/detectLanguage.ts
|
|
17
17
|
import { existsSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,12 +12,12 @@ var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
toCliMethodName,
|
|
14
14
|
toMcpToolName
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DJPS7LWH.js";
|
|
16
16
|
import {
|
|
17
17
|
OpenServiceDuplicateToolNameError,
|
|
18
18
|
OpenServiceDuplicateToolsetError,
|
|
19
19
|
OpenServiceInvalidToolsetMethodIdError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-G6M5USWY.js";
|
|
21
21
|
|
|
22
22
|
// src/shared/open-service/toolset-registry.ts
|
|
23
23
|
var TOOLSET_REGISTRY_SYMBOL = /* @__PURE__ */ Symbol.for("storybook.open-service.toolset-registry");
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
ADDON_ID2 as ADDON_ID
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VS4AUXP2.js";
|
|
15
15
|
import {
|
|
16
16
|
require_picocolors
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-M75NG64K.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7LYHZMJO.js";
|
|
21
21
|
|
|
22
22
|
// src/addon-vitest/logger.ts
|
|
23
23
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
formatAttachFallback
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UMWJISED.js";
|
|
15
15
|
import {
|
|
16
16
|
AttachUnavailableError,
|
|
17
17
|
EnvironmentMismatchError,
|
|
@@ -20,22 +20,22 @@ import {
|
|
|
20
20
|
attachGateReasonFromError,
|
|
21
21
|
isAttachGateError,
|
|
22
22
|
projectPathsEqual
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-46E6YIPW.js";
|
|
24
24
|
import {
|
|
25
25
|
invokeToolsetMethod,
|
|
26
26
|
resolveToolsetDescription
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QZR6HJVD.js";
|
|
28
28
|
import {
|
|
29
29
|
parseToolsetMethodId,
|
|
30
30
|
toCliMethodName
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-DJPS7LWH.js";
|
|
32
32
|
import {
|
|
33
33
|
deserializeError
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-5NWCUFPU.js";
|
|
35
35
|
import {
|
|
36
36
|
StorybookDevServerDisconnectedError,
|
|
37
37
|
formatIssues
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-G6M5USWY.js";
|
|
39
39
|
|
|
40
40
|
// src/cli/tools/sdk/child-protocol.ts
|
|
41
41
|
function isChildMessage(value) {
|
|
@@ -959,7 +959,7 @@ async function createTools(options = {}, deps = {}) {
|
|
|
959
959
|
}
|
|
960
960
|
async function createAttachedTools(options, deps, clientInfo, requestedMode) {
|
|
961
961
|
process.env.FORKBOOK_ATTACHED_TOOLS = "true";
|
|
962
|
-
let { bootstrapAttachedRuntime } = await import("./attached-runtime-
|
|
962
|
+
let { bootstrapAttachedRuntime } = await import("./attached-runtime-5ABH72AY.js"), autoSpawn = process.env.FORKBOOK_TOOLS_CHILD_HOST === "true" ? !1 : options.autoSpawn ?? !0, attached = await (deps.attach ?? ((target) => bootstrapAttachedRuntime({ ...target, autoSpawn })))({
|
|
963
963
|
cwd: options.cwd,
|
|
964
964
|
configDir: options.configDir,
|
|
965
965
|
port: options.port
|
|
@@ -1024,7 +1024,7 @@ async function createLocalTools(options, deps, clientInfo, requestedMode, fallba
|
|
|
1024
1024
|
});
|
|
1025
1025
|
return fallback ? { ...child, ...fallback } : child;
|
|
1026
1026
|
}
|
|
1027
|
-
let { bootstrapToolsRuntime } = await import("./local-runtime-
|
|
1027
|
+
let { bootstrapToolsRuntime } = await import("./local-runtime-W3N7O65Q.js"), runtime;
|
|
1028
1028
|
try {
|
|
1029
1029
|
runtime = await (deps.bootstrap ?? bootstrapToolsRuntime)({
|
|
1030
1030
|
cwd,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.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
|
up2 as up
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4XKLH4I3.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/empathic/package.mjs
|
|
17
17
|
import { env } from "node:process";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
require_picocolors
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-M75NG64K.js";
|
|
15
15
|
import {
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7LYHZMJO.js";
|
|
18
18
|
|
|
19
19
|
// src/storybook-error.ts
|
|
20
20
|
function parseErrorCode({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.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
|
importModule
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Y3FJT543.js";
|
|
15
15
|
|
|
16
16
|
// src/cli-commands/postinstallAddon.ts
|
|
17
17
|
import { spawnSync } from "node:child_process";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.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 "./chunk-
|
|
14
|
+
} from "./chunk-Y3FJT543.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__require,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7LYHZMJO.js";
|
|
20
20
|
|
|
21
21
|
// ../../node_modules/ejs/lib/utils.js
|
|
22
22
|
var require_utils = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
__esm,
|
|
15
15
|
__export,
|
|
16
16
|
__toCommonJS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7LYHZMJO.js";
|
|
18
18
|
|
|
19
19
|
// ../../node_modules/acorn/dist/acorn.mjs
|
|
20
20
|
var acorn_exports = {};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.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
|
StatusTypeIdMismatchError as StatusTypeIdMismatchError2
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LNMVMXBN.js";
|
|
15
15
|
import {
|
|
16
16
|
StatusTypeIdMismatchError,
|
|
17
17
|
StorybookError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-G6M5USWY.js";
|
|
19
19
|
|
|
20
20
|
// src/preview-errors.ts
|
|
21
21
|
import { dedent } from "ts-dedent";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7LYHZMJO.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/yaml/dist/nodes/identity.js
|
|
18
18
|
var require_identity = __commonJS({
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
cache
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FVHSCRCK.js";
|
|
15
15
|
import {
|
|
16
16
|
importMetaResolve
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-Y3FJT543.js";
|
|
18
18
|
import {
|
|
19
19
|
slash
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-M6LN66WA.js";
|
|
21
21
|
|
|
22
22
|
// src/builder-vite/preset.ts
|
|
23
23
|
import { findConfigFile } from "@aussieljk/forkbook/internal/common";
|
|
@@ -56,7 +56,7 @@ function storybookConfigPlugin(options) {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// src/builder-vite/plugins/storybook-optimize-deps-plugin.ts
|
|
59
|
-
import { loadPreviewOrConfigFile } from "@aussieljk/forkbook/internal/common";
|
|
59
|
+
import { loadPreviewOrConfigFile, normalizeStories } from "@aussieljk/forkbook/internal/common";
|
|
60
60
|
import {
|
|
61
61
|
babelParser,
|
|
62
62
|
extractMockCalls,
|
|
@@ -70,11 +70,6 @@ function processPreviewAnnotation(path, projectRoot) {
|
|
|
70
70
|
return typeof path == "object" ? normalize(path.absolute) : isAbsolute(path) ? normalize(path) : normalize(resolve(projectRoot, path));
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
// src/builder-vite/utils/unique-import-paths.ts
|
|
74
|
-
function getUniqueImportPaths(index) {
|
|
75
|
-
return [...new Set(Object.values(index.entries).map((entry) => entry.importPath))];
|
|
76
|
-
}
|
|
77
|
-
|
|
78
73
|
// src/builder-vite/plugins/storybook-optimize-deps-plugin.ts
|
|
79
74
|
function escapeGlobPath(filePath) {
|
|
80
75
|
return filePath.replace(/[()[\]{}!*?|+@]/g, "\\$&");
|
|
@@ -86,17 +81,25 @@ function getMockRedirectIncludeEntries(mockCalls) {
|
|
|
86
81
|
)
|
|
87
82
|
);
|
|
88
83
|
}
|
|
84
|
+
function getStoryGlobEntries(specifiers, workingDir) {
|
|
85
|
+
return specifiers.map(
|
|
86
|
+
({ directory, files }) => `${escapeGlobPath(resolve2(workingDir, directory))}/${files}`
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
89
|
function storybookOptimizeDepsPlugin(options) {
|
|
90
90
|
return {
|
|
91
91
|
name: "forkbook:optimize-deps-plugin",
|
|
92
92
|
async config(config, { command }) {
|
|
93
93
|
if (command !== "serve")
|
|
94
94
|
return;
|
|
95
|
-
let projectRoot = resolve2(options.configDir, ".."), [extraOptimizeDeps,
|
|
95
|
+
let projectRoot = resolve2(options.configDir, ".."), [extraOptimizeDeps, stories, previewAnnotations] = await Promise.all([
|
|
96
96
|
options.presets.apply("optimizeViteDeps", []),
|
|
97
|
-
options.presets.apply("
|
|
97
|
+
options.presets.apply("stories", []),
|
|
98
98
|
options.presets.apply("previewAnnotations", [], options)
|
|
99
|
-
]),
|
|
99
|
+
]), workingDir = process.cwd(), storyGlobEntries = stories.length ? getStoryGlobEntries(
|
|
100
|
+
normalizeStories(stories, { configDir: options.configDir, workingDir }),
|
|
101
|
+
workingDir
|
|
102
|
+
) : [], previewOrConfigFile = loadPreviewOrConfigFile({ configDir: options.configDir }), mockRedirectIncludeEntries = previewOrConfigFile ? getMockRedirectIncludeEntries(
|
|
100
103
|
extractMockCalls(
|
|
101
104
|
{
|
|
102
105
|
previewConfigPath: previewOrConfigFile,
|
|
@@ -118,7 +121,7 @@ function storybookOptimizeDepsPlugin(options) {
|
|
|
118
121
|
entries: [
|
|
119
122
|
...typeof config.optimizeDeps?.entries == "string" ? [config.optimizeDeps.entries] : config.optimizeDeps?.entries ?? [],
|
|
120
123
|
...mockRedirectIncludeEntries,
|
|
121
|
-
...
|
|
124
|
+
...storyGlobEntries,
|
|
122
125
|
...previewAnnotationEntries.map(escapeGlobPath)
|
|
123
126
|
],
|
|
124
127
|
// Extra deps explicitly included by Forkbook presets (e.g. framework-specific packages).
|
|
@@ -580,6 +583,13 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
|
580
583
|
// src/builder-vite/codegen-importfn-script.ts
|
|
581
584
|
import { join as join2, normalize as normalize3, relative } from "pathe";
|
|
582
585
|
import { dedent as dedent2 } from "ts-dedent";
|
|
586
|
+
|
|
587
|
+
// src/builder-vite/utils/unique-import-paths.ts
|
|
588
|
+
function getUniqueImportPaths(index) {
|
|
589
|
+
return [...new Set(Object.values(index.entries).map((entry) => entry.importPath))];
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
// src/builder-vite/codegen-importfn-script.ts
|
|
583
593
|
function generateImportFnScriptCode(index) {
|
|
584
594
|
let objectEntries = getUniqueImportPaths(index).map(
|
|
585
595
|
(importPath) => {
|
|
@@ -649,9 +659,9 @@ async function generateAddonSetupCode() {
|
|
|
649
659
|
}
|
|
650
660
|
|
|
651
661
|
// src/builder-vite/transform-iframe-html.ts
|
|
652
|
-
import { normalizeStories } from "@aussieljk/forkbook/internal/common";
|
|
662
|
+
import { normalizeStories as normalizeStories2 } from "@aussieljk/forkbook/internal/common";
|
|
653
663
|
async function transformIframeHtml(html, options) {
|
|
654
|
-
let { configType, features, presets } = options, build = await presets.apply("build"), frameworkOptions = await presets.apply("frameworkOptions"), headHtmlSnippet = await presets.apply("previewHead"), bodyHtmlSnippet = await presets.apply("previewBody"), logLevel = await presets.apply("logLevel", void 0), docsOptions = await presets.apply("docs"), tagsOptions = await presets.apply("tags"), security = await presets.apply("security"), coreOptions = await presets.apply("core"), stories =
|
|
664
|
+
let { configType, features, presets } = options, build = await presets.apply("build"), frameworkOptions = await presets.apply("frameworkOptions"), headHtmlSnippet = await presets.apply("previewHead"), bodyHtmlSnippet = await presets.apply("previewBody"), logLevel = await presets.apply("logLevel", void 0), docsOptions = await presets.apply("docs"), tagsOptions = await presets.apply("tags"), security = await presets.apply("security"), coreOptions = await presets.apply("core"), stories = normalizeStories2(await options.presets.apply("stories", [], options), {
|
|
655
665
|
configDir: options.configDir,
|
|
656
666
|
workingDir: process.cwd()
|
|
657
667
|
}).map((specifier) => ({
|
|
@@ -707,8 +717,8 @@ function codeGeneratorPlugin(options) {
|
|
|
707
717
|
name: "forkbook:code-generator-plugin",
|
|
708
718
|
enforce: "pre",
|
|
709
719
|
async configureServer(server) {
|
|
710
|
-
(await storyIndexGeneratorPromise).onInvalidated(() => {
|
|
711
|
-
server.watcher.emit(
|
|
720
|
+
(await storyIndexGeneratorPromise).onInvalidated((event) => {
|
|
721
|
+
event && !event.added && !event.removed || server.watcher.emit(
|
|
712
722
|
"change",
|
|
713
723
|
getResolvedVirtualModuleId(FB_VIRTUAL_FILES.VIRTUAL_STORIES_FILE)
|
|
714
724
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7LYHZMJO.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/has-flag/index.js
|
|
18
18
|
var require_has_flag = __commonJS({
|