@aussieljk/forkbook 0.0.1-5 → 0.0.1-6
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-GTF4GM7L.js → Color-2BMQTRYG.js} +1 -1
- package/dist/_browser-chunks/WithTooltip-GJACFWKM.js +196 -0
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/chunk-6EJEEII7.js +1149 -0
- package/dist/_browser-chunks/{chunk-MJY6ITYT.js → chunk-6IKB2UHQ.js} +10 -10
- package/dist/_browser-chunks/chunk-DPRGR3QP.js +5995 -0
- package/dist/_browser-chunks/{chunk-K6GRZSXS.js → chunk-EQKMUQF3.js} +4 -3
- package/dist/_browser-chunks/{chunk-GU3X2J4S.js → chunk-FRAOQJDI.js} +3 -1
- package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-H4ZHAXN3.js} +1 -1
- package/dist/_browser-chunks/{chunk-ZLWA5RIE.js → chunk-I4ATZPNZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-6SHRDXGF.js → chunk-IJYLSHY7.js} +173 -87
- package/dist/_browser-chunks/{chunk-SZCSXISG.js → chunk-NA4ITZTK.js} +7 -5
- package/dist/_browser-chunks/chunk-NGMQJMCY.js +53 -0
- package/dist/_browser-chunks/{chunk-K2B36HKM.js → chunk-O24AZJZ7.js} +1 -1
- package/dist/_browser-chunks/{chunk-HOSBMS2F.js → chunk-QAHDGPZ7.js} +1 -1
- package/dist/_browser-chunks/{chunk-NMRSYACM.js → chunk-SFMQDIN2.js} +4 -3
- package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
- package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-X7D777E6.js} +547 -1622
- package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-YYWKZ7O3.js} +3 -1
- package/dist/_node-chunks/{attached-runtime-IOE3BXIY.js → attached-runtime-EBWIOQZN.js} +29 -29
- package/dist/_node-chunks/{builder-manager-GDFEGD72.js → builder-manager-ETBLZ2RH.js} +130 -146
- package/dist/_node-chunks/{chunk-VN3A5CEH.js → chunk-252Y5WHZ.js} +7 -7
- package/dist/_node-chunks/{chunk-7XUQM6SR.js → chunk-25PXULSJ.js} +14 -14
- package/dist/_node-chunks/chunk-2DBJWMYE.js +495 -0
- package/dist/_node-chunks/{chunk-WMQ2VCTF.js → chunk-3UWWRDA5.js} +7 -7
- package/dist/_node-chunks/{chunk-BFZG4UTW.js → chunk-4KCQYJT6.js} +7 -7
- package/dist/_node-chunks/{chunk-KQFHT7SW.js → chunk-4MJIPOJ5.js} +6 -6
- package/dist/_node-chunks/{chunk-YLKS7U3M.js → chunk-4WLIN3VZ.js} +8 -8
- package/dist/_node-chunks/{chunk-E6KXSYWR.js → chunk-4XNPO23I.js} +6 -6
- package/dist/_node-chunks/{chunk-J64XMUPF.js → chunk-5T635FTI.js} +10 -10
- package/dist/_node-chunks/{chunk-HCX5R46Q.js → chunk-5Z6MT4RI.js} +8 -8
- package/dist/_node-chunks/{chunk-A4XRNDN4.js → chunk-644CUCK5.js} +7 -7
- package/dist/_node-chunks/{chunk-GR65OLAH.js → chunk-7E27CGRU.js} +7 -7
- package/dist/_node-chunks/{chunk-TZ2TZW2K.js → chunk-A35J7YYA.js} +6 -6
- package/dist/_node-chunks/{chunk-3DX6THMV.js → chunk-ALHPFKVB.js} +8 -8
- package/dist/_node-chunks/{chunk-AXQ6LLSE.js → chunk-ANDQVXYX.js} +8 -8
- package/dist/_node-chunks/{chunk-UW35FCXF.js → chunk-AS4SFRCZ.js} +6 -6
- package/dist/_node-chunks/{chunk-SJZQ44OR.js → chunk-BLUMKQQB.js} +6 -6
- package/dist/_node-chunks/{chunk-5LE7GXEC.js → chunk-C5JG7EKF.js} +6 -6
- package/dist/_node-chunks/{chunk-AXG3EMKS.js → chunk-CBUQY454.js} +7 -15
- package/dist/_node-chunks/{chunk-BBD2KUV4.js → chunk-CF7KLGUW.js} +22 -20
- package/dist/_node-chunks/{chunk-V45RRBTK.js → chunk-CGVPHZVD.js} +8 -8
- package/dist/_node-chunks/{chunk-MCZZMBPA.js → chunk-DABFUVLR.js} +6 -6
- package/dist/_node-chunks/{chunk-TYCDPVIH.js → chunk-DCNZ6SFN.js} +6 -6
- package/dist/_node-chunks/{chunk-6DOJKR3V.js → chunk-DDGW2EBW.js} +29843 -51588
- package/dist/_node-chunks/{chunk-Q33BYVLY.js → chunk-DRLBJM6X.js} +7 -7
- package/dist/_node-chunks/{chunk-AAAUVDWT.js → chunk-E3O7VAPG.js} +10 -10
- package/dist/_node-chunks/{chunk-L5CY6HKG.js → chunk-FIFCNBTL.js} +7 -7
- package/dist/_node-chunks/{chunk-SDXU22OH.js → chunk-FQWTUSYB.js} +6 -6
- package/dist/_node-chunks/{chunk-LCXIUTOU.js → chunk-G6YNW4FK.js} +7 -7
- package/dist/_node-chunks/{chunk-OSJFTZ5N.js → chunk-GDFQQO5U.js} +6 -6
- package/dist/_node-chunks/{chunk-SAAQFJL4.js → chunk-GGTXOH3W.js} +6 -6
- package/dist/_node-chunks/{chunk-ZZNBVMBU.js → chunk-GIOREKIG.js} +7 -7
- package/dist/_node-chunks/{chunk-MDGNN3FJ.js → chunk-GOFK4EKU.js} +6 -6
- package/dist/_node-chunks/{chunk-SUJXQU74.js → chunk-GQ3HJNIH.js} +10 -13
- package/dist/_node-chunks/{chunk-RCPKLP3X.js → chunk-GRTI5653.js} +7 -7
- package/dist/_node-chunks/{chunk-ES5QZBSB.js → chunk-HKL3VOYX.js} +6 -6
- package/dist/_node-chunks/{chunk-T2I453AJ.js → chunk-HUPRQZ3I.js} +7 -7
- package/dist/_node-chunks/{chunk-VJSOHPVD.js → chunk-HWRHYM7Z.js} +6 -6
- package/dist/_node-chunks/{chunk-U47PBQZ3.js → chunk-I7HRDCNY.js} +10 -10
- package/dist/_node-chunks/{chunk-GS4VNNSS.js → chunk-IFPMZ247.js} +6 -6
- package/dist/_node-chunks/{chunk-EWAGCBER.js → chunk-J6M5CRYZ.js} +8 -8
- package/dist/_node-chunks/{chunk-45LRLOYO.js → chunk-JPXJI6QR.js} +60 -134
- package/dist/_node-chunks/{chunk-NYWD5LYM.js → chunk-JS2J2SKX.js} +6 -6
- package/dist/_node-chunks/{chunk-BV3QRFE6.js → chunk-JZWF3XLN.js} +6 -6
- package/dist/_node-chunks/{chunk-QQXFB4YA.js → chunk-KF3FT3NI.js} +9 -9
- package/dist/_node-chunks/chunk-KWPWQA7G.js +2609 -0
- package/dist/_node-chunks/{chunk-VBSVLIXU.js → chunk-L4JGWK4K.js} +6 -6
- package/dist/_node-chunks/{chunk-MHDKWHOA.js → chunk-LFIFBDMS.js} +6 -6
- package/dist/_node-chunks/{chunk-3DCJB2D4.js → chunk-LWKLJYYQ.js} +6 -6
- package/dist/_node-chunks/{chunk-XUHEL63G.js → chunk-LXVSVTQ3.js} +6 -6
- package/dist/_node-chunks/chunk-MDW3GSU3.js +69 -0
- package/dist/_node-chunks/{chunk-WHDCECIV.js → chunk-MFN2XBPL.js} +7 -7
- package/dist/_node-chunks/{chunk-5KAJVK4E.js → chunk-MQFB44YS.js} +7 -7
- package/dist/_node-chunks/{chunk-OTFIQXHR.js → chunk-MZ2GSR3G.js} +22 -50
- package/dist/_node-chunks/{chunk-AX2ALHBK.js → chunk-N7HEOGTM.js} +9 -6
- package/dist/_node-chunks/{chunk-NDGTNFUN.js → chunk-NUAQC3XP.js} +16 -13
- package/dist/_node-chunks/{chunk-F4Q7OCCN.js → chunk-NX6CSWF3.js} +8 -8
- package/dist/_node-chunks/{chunk-I3DKGHVD.js → chunk-NZ7EQWYA.js} +9 -9
- package/dist/_node-chunks/{chunk-UKEJISQU.js → chunk-OLGIDCVD.js} +650 -9
- package/dist/_node-chunks/{chunk-AXJJB2K6.js → chunk-P65JVLO3.js} +8 -8
- package/dist/_node-chunks/{chunk-2GY2FKLH.js → chunk-PAN35AYX.js} +7 -7
- package/dist/_node-chunks/{chunk-7TUSIVWS.js → chunk-PLWLCVP2.js} +6 -6
- package/dist/_node-chunks/{chunk-SR3BCYEH.js → chunk-Q4BEWGMK.js} +6 -6
- package/dist/_node-chunks/{chunk-FA36CEN4.js → chunk-QNUXGVZZ.js} +6 -6
- package/dist/_node-chunks/{chunk-OB2XHL53.js → chunk-R5DWO2S2.js} +31 -30
- package/dist/_node-chunks/{chunk-D6B2DRQZ.js → chunk-SLZV7PTQ.js} +8 -8
- package/dist/_node-chunks/{chunk-BTFSFATC.js → chunk-TIRP5JQM.js} +11 -10
- package/dist/_node-chunks/{chunk-YTBTCM22.js → chunk-TMXWDY2O.js} +6 -6
- package/dist/_node-chunks/{chunk-HWY2CAUH.js → chunk-TN3ULFFZ.js} +6 -6
- package/dist/_node-chunks/{chunk-M2QB5ALN.js → chunk-TPSJW4CQ.js} +6 -6
- package/dist/_node-chunks/{chunk-6QQTZT3Z.js → chunk-TYBPAV3X.js} +6 -6
- package/dist/_node-chunks/chunk-UUE3PSJB.js +11 -0
- package/dist/_node-chunks/chunk-VKNRNBTB.js +18 -0
- package/dist/_node-chunks/{chunk-LSP54OYM.js → chunk-VPU4E7DI.js} +25 -8
- package/dist/_node-chunks/{chunk-CGXW2HFE.js → chunk-WIQ6Y3NX.js} +6 -6
- package/dist/_node-chunks/{chunk-E4C2H45J.js → chunk-WRG3CFGS.js} +6 -6
- package/dist/_node-chunks/{chunk-N4FLP7AO.js → chunk-X3RTVNRN.js} +7 -7
- package/dist/_node-chunks/chunk-XOGU5PWI.js +347 -0
- package/dist/_node-chunks/{chunk-QZVFIEOM.js → chunk-XWGMQW2H.js} +6 -6
- package/dist/_node-chunks/chunk-YCXTTQ7K.js +620 -0
- package/dist/_node-chunks/{chunk-JJNO3SFI.js → chunk-YHH57LHY.js} +9 -9
- package/dist/_node-chunks/{chunk-ZPPVG262.js → chunk-YMZ2SGFK.js} +6 -6
- package/dist/_node-chunks/{chunk-B2IOB2V3.js → chunk-YNENOZRY.js} +7 -7
- package/dist/_node-chunks/{chunk-4WO3GNZQ.js → chunk-YPGVYNJB.js} +6 -6
- package/dist/_node-chunks/{chunk-RECGEABN.js → chunk-YQDBSAXW.js} +7 -7
- package/dist/_node-chunks/{chunk-UM5G27IC.js → chunk-Z4NZLBOX.js} +7 -7
- package/dist/_node-chunks/{chunk-E4TBS4MV.js → chunk-ZC3ZZKMS.js} +8 -8
- package/dist/_node-chunks/{chunk-PHXCOTMO.js → chunk-ZCITDAV4.js} +34 -949
- package/dist/_node-chunks/chunk-ZNSGFYAT.js +25 -0
- package/dist/_node-chunks/{chunk-CK4EHW3K.js → chunk-ZSH6BUCW.js} +25 -25
- package/dist/_node-chunks/{chunk-KCAPE7OJ.js → chunk-ZTFNOXZF.js} +6 -6
- package/dist/_node-chunks/dist-GGTGKXZA.js +27 -0
- package/dist/_node-chunks/dist-NS676VJR.js +16 -0
- package/dist/_node-chunks/{local-runtime-RW6AAWSX.js → local-runtime-BUTEKJYV.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-BKWCT6CB.js → mdx-plugin-7WXQIHPV.js} +2263 -130
- package/dist/_node-chunks/{monorepo-ZFJ6HM34.js → monorepo-NCD3X2BR.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-C3EW4VJW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-SD3B272K.js} +11 -11
- package/dist/_node-chunks/optimized-tests-ITVOHEOA.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-2ZMJNCBS.js → pattern-copy-play-3QJANDJD.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-LEUHOKX6.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-RT5Z62RV.js → rehype-external-links-4LR5BDR2.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-H5TWHJ6G.js → rehype-slug-PWFRGOEV.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-DYLWZGE4.js → relaxed-limits-VNNWUW7X.js} +11 -11
- package/dist/_node-chunks/{run-65LLGSVR.js → run-RUAAWEQT.js} +13 -13
- package/dist/_node-chunks/{run-BQQLK454.js → run-YK6ARCWS.js} +17 -17
- package/dist/_node-chunks/session-id-JJYVZAKO.js +23 -0
- package/dist/_node-chunks/{setup-NEO7XX66.js → setup-4QKCICV6.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-6P3FZQTY.js → vitest.config.4.template-WVFLIXN7.js} +7 -7
- package/dist/actions/decorator.js +2 -1
- package/dist/actions/index.js +2 -1
- package/dist/addon-a11y/index.js +2 -1
- package/dist/addon-a11y/manager.js +7 -6
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +2 -1
- package/dist/addon-docs/blocks.js +29 -15
- package/dist/addon-docs/manager.js +2 -2
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/index.js +3 -2
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-links/preview.js +3 -2
- package/dist/addon-links/react/index.js +2 -1
- package/dist/addon-mcp/preset.js +8 -8
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +16 -44
- package/dist/addon-ondevice-actions/index.js +5 -1
- package/dist/addon-ondevice-actions/register.js +5 -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 +15 -16
- package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
- package/dist/addon-vitest/vitest-plugin/index.js +17 -17
- package/dist/babel/index.d.ts +91 -842
- package/dist/babel/index.js +13 -19
- package/dist/bin/core.js +61 -60
- package/dist/bin/dispatcher.js +10 -10
- package/dist/bin/loader.js +16 -15
- package/dist/builder-vite/index.js +15 -15
- package/dist/builder-vite/preset.js +13 -13
- package/dist/{chunk-Jf7j2Ot0.d.ts → chunk-BGhyFTJO.d.ts} +1 -1
- package/dist/chunk-CV4-Z2pn.d.ts +30 -0
- package/dist/{chunk-Ce6uhJuR.d.ts → chunk-CVY28Ngy.d.ts} +1 -1
- package/dist/{chunk-B2t1tGRh.d.ts → chunk-CYuvV2sR.d.ts} +11 -13
- package/dist/{chunk-CZHsX9Zo.d.ts → chunk-ClI-HEh5.d.ts} +1 -1
- package/dist/{chunk-DpljNJTz.d.ts → chunk-CzmZhVrn.d.ts} +34 -0
- package/dist/cli/index.d.ts +13 -866
- package/dist/cli/index.js +42 -4952
- package/dist/cli/tools/sdk/child-host.d.ts +1 -1
- package/dist/cli/tools/sdk/child-host.js +17 -17
- package/dist/cli/tools/sdk/index.d.ts +1 -1
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.js +3 -1
- package/dist/common/index.d.ts +5 -4
- package/dist/common/index.js +35 -37
- package/dist/components/index.d.ts +14 -231
- package/dist/components/index.js +2514 -8361
- package/dist/core-events/index.d.ts +3 -2
- package/dist/core-events/index.js +3 -1
- package/dist/core-server/index.d.ts +2 -2
- package/dist/core-server/index.js +450 -147
- package/dist/core-server/presets/common-manager.js +60 -864
- package/dist/core-server/presets/common-override-preset.js +12 -10
- package/dist/core-server/presets/common-preset.js +39 -40
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/index.d.ts +1 -1
- package/dist/csf/index.js +27 -93
- package/dist/csf-tools/index.d.ts +2 -12
- package/dist/csf-tools/index.js +14 -14
- package/dist/instrumenter/index.js +3 -1
- package/dist/manager/_manager-chunks/{globals-runtime-Cr3nYYcT.js → globals-runtime-B-IeQLQu.js} +57 -58
- package/dist/manager/_manager-chunks/{globals-runtime-zVfMhZAt.js → globals-runtime-B5-0Ccbv.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DqNrRmOM.js → globals-runtime-B71TiXST.js} +93 -2146
- package/dist/manager/_manager-chunks/{globals-runtime-BgVwdR45.js → globals-runtime-BUP5e_t9.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-Bke4A4DG.js → globals-runtime-C7mqoHpE.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DCOX9nD5.js → globals-runtime-CBviMKtt.js} +1 -17
- package/dist/manager/_manager-chunks/{globals-runtime-ALpzCL93.js → globals-runtime-CYNosEiD.js} +1 -2
- package/dist/manager/_manager-chunks/{globals-runtime-BcNHymiF.js → globals-runtime-C_evJrEn.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DW1HVuLt.js → globals-runtime-CdgVeAbk.js} +408 -377
- package/dist/manager/_manager-chunks/{globals-runtime-CTB3rhS1.js → globals-runtime-Cqn8KdSZ.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-D_YKR9nf.js → globals-runtime-CrIF09P8.js} +1246 -539
- package/dist/manager/_manager-chunks/{globals-runtime-m07udJ_K.js → globals-runtime-Ct1kY4wb.js} +637 -1730
- package/dist/manager/_manager-chunks/globals-runtime-CvyFEPIY.js +5282 -0
- package/dist/manager/_manager-chunks/{globals-runtime-CF4o9_wT.js → globals-runtime-DMBjo1QS.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CXKb33hg.js → globals-runtime-DUK6bGcb.js} +51 -24
- package/dist/manager/_manager-chunks/{globals-runtime-CUBVmgcG.js → globals-runtime-DedfO-DP.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-DMvB3-IM.js → globals-runtime-DqhIYwLp.js} +148 -136
- package/dist/manager/_manager-chunks/{globals-runtime-CiLcg4q9.js → globals-runtime-XSxCU7PR.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-DFhLVh8q.js → runtime-BR5z0WoJ.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-Bldwclun.js → runtime-BgYvp1WN.js} +15 -7
- package/dist/manager/_manager-chunks/{runtime-DrjpEyLM.js → runtime-CHI-LHF1.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-Cmu7D8A0.js → runtime-CUymj6EY.js} +176 -159
- package/dist/manager/_manager-chunks/runtime-CaU1DSEZ.js +528 -0
- package/dist/manager/_manager-chunks/{runtime-DMig8mT7.js → runtime-CqItbdKW.js} +3 -2
- package/dist/manager/_manager-chunks/{runtime-a5zd7km2.js → runtime-D4ZOOIV0.js} +5 -531
- package/dist/manager/_manager-chunks/{runtime-DGHNKNQl.js → runtime-DER98nV0.js} +3 -19
- package/dist/manager/_manager-chunks/{runtime-Cdz2BHhM.js → runtime-DrTLBe7a.js} +29 -30
- package/dist/manager/_manager-chunks/{runtime-B-eSQdxk.js → runtime-MAf7Wpk5.js} +3 -2
- package/dist/manager/_manager-chunks/{runtime-CuJiHYCp.js → runtime-cVFIMcca.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-api/index.js +20 -26
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.js +16 -11
- package/dist/nextjs-vite/index.js +3 -2
- 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.d.ts +1 -2
- package/dist/nextjs-vite-plugin/index.js +12 -27
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/node-logger/index.d.ts +65 -72
- package/dist/node-logger/index.js +11 -12
- package/dist/oxc-parser/index.js +11 -13
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-DVM_AHbR.js → runtime-6P-h06Te.js} +51 -50
- package/dist/preview/_chunks/{runtime-BoxmlDdB.js → runtime-B9KKIDGa.js} +202 -81
- package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-BPwAnlRx.js} +482 -334
- package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-BUnOhg9h.js} +2 -2
- package/dist/preview/_chunks/runtime-Bcv1hJky.js +6305 -0
- package/dist/preview/_chunks/{runtime-CqHxptiK.js → runtime-C1jgT6tJ.js} +93 -2145
- package/dist/preview/_chunks/{runtime-D7B4bVe_.js → runtime-C8QFpkFV.js} +6 -6
- package/dist/preview/_chunks/{runtime-CijtAN7R.js → runtime-DdqR8Fd0.js} +15 -6
- package/dist/preview/_chunks/{runtime-B3y8ocOg.js → runtime-DvBfMhis.js} +2 -2
- package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-WapFVPAh.js} +29 -29
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +1 -1
- package/dist/preview-api/index.js +2 -1
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -12
- package/dist/react/entry-preview.js +2 -1
- package/dist/react/index.js +6 -4
- package/dist/react/preset.js +13 -14
- package/dist/react/preview.js +3 -2
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/index.js +25 -211
- package/dist/react-native/metro/node.js +10 -9
- package/dist/react-native/metro/withStorybook.js +11 -10
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.js +3 -1
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +1 -1
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/telemetry/index.js +43 -45
- package/dist/test/index.js +808 -573
- package/dist/theming/create.js +2 -1
- package/dist/theming/index.js +22 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +16 -44
- package/dist/_browser-chunks/WithTooltip-V55S6YCY.js +0 -1619
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
- package/dist/_browser-chunks/chunk-UDQ3XQFC.js +0 -108
- package/dist/_node-chunks/chunk-BRD332PB.js +0 -3008
- package/dist/_node-chunks/chunk-E2XKJLXK.js +0 -4731
- package/dist/_node-chunks/chunk-F2LQJXAB.js +0 -29
- package/dist/_node-chunks/chunk-MMFUHYSU.js +0 -23
- package/dist/_node-chunks/chunk-UGFY5LEG.js +0 -18
- package/dist/_node-chunks/chunk-UO5ZOCSQ.js +0 -662
- package/dist/_node-chunks/chunk-VMUXW2E2.js +0 -5414
- package/dist/_node-chunks/chunk-VNXE7UJL.js +0 -51
- package/dist/_node-chunks/chunk-VRJJ43P2.js +0 -11
- package/dist/_node-chunks/chunk-WCJUS7OC.js +0 -1877
- package/dist/_node-chunks/chunk-WMBMSNB7.js +0 -36
- package/dist/_node-chunks/chunk-YV2QBXU6.js +0 -3823
- package/dist/_node-chunks/dist-VFUGPNLK.js +0 -16
- package/dist/_node-chunks/globby-N7LO32D3.js +0 -2884
- package/dist/_node-chunks/jiti-SJDZ7LQB.js +0 -3848
- package/dist/_node-chunks/lib-4HD6QL5R.js +0 -366
- package/dist/_node-chunks/optimized-tests-LVKXZ3HQ.js +0 -22
- package/dist/_node-chunks/postinstallAddon-I6MAL6PW.js +0 -20
- package/dist/_node-chunks/session-id-6Z2RXBTG.js +0 -23
- package/dist/chunk-BfBzpgct.d.ts +0 -916
- package/dist/core-server/presets/common-manager.css +0 -170
- package/dist/manager/_manager-chunks/globals-runtime-Bon7UvQk.js +0 -9766
- package/dist/manager/_manager-chunks/globals-runtime-DDOIxI_l.js +0 -1584
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
- package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PARAM_KEY
|
|
3
3
|
} from "./chunk-ENKK74N4.js";
|
|
4
|
+
import {
|
|
5
|
+
global
|
|
6
|
+
} from "./chunk-6AKCRYVX.js";
|
|
4
7
|
|
|
5
8
|
// src/addon-links/utils.ts
|
|
6
9
|
import { SELECT_STORY, STORY_CHANGED } from "@aussieljk/forkbook/internal/core-events";
|
|
7
10
|
import { toId } from "@aussieljk/forkbook/internal/csf";
|
|
8
|
-
import { global } from "@storybook/global";
|
|
9
11
|
import { addons, makeDecorator } from "@aussieljk/forkbook/preview-api";
|
|
10
12
|
var { document, HTMLElement } = global;
|
|
11
13
|
function parseQuery(queryString) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7qov04rgzsv from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7qov04rgzsv from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7qov04rgzsv from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7qov04rgzsv.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7qov04rgzsv.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,10 +12,10 @@ var require = CJS_COMPAT_NODE_MODULE_1qqypd7gt14.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
readRegistry,
|
|
14
14
|
selectInstances
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4WLIN3VZ.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveStorybookConfigDir
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YPGVYNJB.js";
|
|
19
19
|
import {
|
|
20
20
|
formatConnectionFailed,
|
|
21
21
|
formatInstallationMismatch,
|
|
@@ -23,48 +23,48 @@ import {
|
|
|
23
23
|
formatOldServer,
|
|
24
24
|
formatPortMismatch,
|
|
25
25
|
formatUnknownInstallation
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GDFQQO5U.js";
|
|
27
27
|
import {
|
|
28
28
|
AttachUnavailableError,
|
|
29
29
|
EnvironmentMismatchError,
|
|
30
30
|
ToolsRuntimeError,
|
|
31
31
|
projectPathsEqual
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-HUPRQZ3I.js";
|
|
33
33
|
import {
|
|
34
34
|
SERVER_CHANNEL_PATH,
|
|
35
35
|
WebsocketTransport
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-ALHPFKVB.js";
|
|
37
|
+
import "./chunk-TYBPAV3X.js";
|
|
38
38
|
import {
|
|
39
39
|
detectAgent
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-GIOREKIG.js";
|
|
41
|
+
import "./chunk-4MJIPOJ5.js";
|
|
42
42
|
import {
|
|
43
43
|
UniversalStore
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-3UWWRDA5.js";
|
|
45
45
|
import {
|
|
46
46
|
getRegisteredToolsets
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-CGVPHZVD.js";
|
|
48
|
+
import "./chunk-MFN2XBPL.js";
|
|
49
|
+
import "./chunk-DABFUVLR.js";
|
|
50
50
|
import {
|
|
51
51
|
Channel,
|
|
52
52
|
getChannel,
|
|
53
53
|
setChannel,
|
|
54
54
|
setDelegatedMode
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-5T635FTI.js";
|
|
56
|
+
import "./chunk-L4JGWK4K.js";
|
|
57
|
+
import "./chunk-X3RTVNRN.js";
|
|
58
|
+
import "./chunk-LFIFBDMS.js";
|
|
59
|
+
import "./chunk-FQWTUSYB.js";
|
|
60
|
+
import "./chunk-TMXWDY2O.js";
|
|
61
|
+
import "./chunk-PAN35AYX.js";
|
|
62
|
+
import "./chunk-WIQ6Y3NX.js";
|
|
63
63
|
import {
|
|
64
64
|
StorybookDevServerDisconnectedError
|
|
65
|
-
} from "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
65
|
+
} from "./chunk-NX6CSWF3.js";
|
|
66
|
+
import "./chunk-MQFB44YS.js";
|
|
67
|
+
import "./chunk-A35J7YYA.js";
|
|
68
68
|
|
|
69
69
|
// src/cli/tools/sdk/attached-runtime.ts
|
|
70
70
|
import { resolve } from "node:path";
|
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7qov04rgzsv from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7qov04rgzsv from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7qov04rgzsv from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7qov04rgzsv.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7qov04rgzsv.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.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
|
BROWSER_TARGETS,
|
|
14
|
-
NODE_TARGET
|
|
15
|
-
|
|
16
|
-
} from "./chunk-F2LQJXAB.js";
|
|
14
|
+
NODE_TARGET
|
|
15
|
+
} from "./chunk-ZNSGFYAT.js";
|
|
17
16
|
import {
|
|
18
17
|
require_build
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-644CUCK5.js";
|
|
20
19
|
import {
|
|
21
20
|
resolveModulePath,
|
|
22
21
|
resolvePackageDir
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-DRLBJM6X.js";
|
|
23
|
+
import "./chunk-TPSJW4CQ.js";
|
|
25
24
|
import {
|
|
26
25
|
slash
|
|
27
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-AS4SFRCZ.js";
|
|
28
27
|
import {
|
|
29
28
|
__commonJS,
|
|
30
29
|
__require,
|
|
31
30
|
__toESM
|
|
32
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-A35J7YYA.js";
|
|
33
32
|
|
|
34
33
|
// ../../node_modules/ejs/lib/utils.js
|
|
35
34
|
var require_utils = __commonJS({
|
|
@@ -201,7 +200,7 @@ var require_ejs = __commonJS({
|
|
|
201
200
|
exports.localsName = _DEFAULT_LOCALS_NAME;
|
|
202
201
|
exports.promiseImpl = new Function("return this;")().Promise;
|
|
203
202
|
exports.resolveInclude = function(name, filename, isDir) {
|
|
204
|
-
var
|
|
203
|
+
var dirname4 = path.dirname, extname = path.extname, resolve = path.resolve, includePath = resolve(isDir ? filename : dirname4(filename), name), ext = extname(name);
|
|
205
204
|
return ext || (includePath += ".ejs"), includePath;
|
|
206
205
|
};
|
|
207
206
|
function resolvePaths(name, paths) {
|
|
@@ -503,67 +502,11 @@ try {
|
|
|
503
502
|
import { cp, rm, writeFile as writeFile3 } from "node:fs/promises";
|
|
504
503
|
import { stringifyProcessEnvs } from "@aussieljk/forkbook/internal/common";
|
|
505
504
|
import { logger } from "@aussieljk/forkbook/internal/node-logger";
|
|
506
|
-
|
|
507
|
-
// ../../node_modules/@fal-works/esbuild-plugin-global-externals/lib/module-info.js
|
|
508
|
-
var normalizeModuleInfo = (value) => {
|
|
509
|
-
let {
|
|
510
|
-
type = "esm",
|
|
511
|
-
varName,
|
|
512
|
-
namedExports = null,
|
|
513
|
-
defaultExport = !0
|
|
514
|
-
} = typeof value == "string" ? { varName: value } : value;
|
|
515
|
-
return { type, varName, namedExports, defaultExport };
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
// ../../node_modules/@fal-works/esbuild-plugin-global-externals/lib/on-load.js
|
|
519
|
-
var createCjsContents = (variableName) => `module.exports = ${variableName};`;
|
|
520
|
-
var createEsmContents = (variableName, namedExports, defaultExport) => {
|
|
521
|
-
let codeElements = defaultExport ? [`export default ${variableName};`] : [];
|
|
522
|
-
if (namedExports && namedExports.length) {
|
|
523
|
-
let exportNames = [...new Set(namedExports)].join(", ");
|
|
524
|
-
codeElements.push(`const { ${exportNames} } = ${variableName};`), codeElements.push(`export { ${exportNames} };`);
|
|
525
|
-
}
|
|
526
|
-
return codeElements.join(`
|
|
527
|
-
`);
|
|
528
|
-
}, createContents = (moduleInfo) => {
|
|
529
|
-
let { type, varName, namedExports, defaultExport } = moduleInfo;
|
|
530
|
-
switch (type) {
|
|
531
|
-
case "esm":
|
|
532
|
-
return createEsmContents(varName, namedExports, defaultExport);
|
|
533
|
-
case "cjs":
|
|
534
|
-
return createCjsContents(varName);
|
|
535
|
-
}
|
|
536
|
-
};
|
|
537
|
-
|
|
538
|
-
// ../../node_modules/@fal-works/esbuild-plugin-global-externals/lib/with-reg-exp.js
|
|
539
|
-
var PLUGIN_NAME = "global-externals", globalExternalsWithRegExp = (globals) => {
|
|
540
|
-
let { modulePathFilter, getModuleInfo } = globals;
|
|
541
|
-
return {
|
|
542
|
-
name: PLUGIN_NAME,
|
|
543
|
-
setup(build2) {
|
|
544
|
-
build2.onResolve({ filter: modulePathFilter }, (args) => ({
|
|
545
|
-
path: args.path,
|
|
546
|
-
namespace: PLUGIN_NAME
|
|
547
|
-
})), build2.onLoad({ filter: /.*/, namespace: PLUGIN_NAME }, (args) => {
|
|
548
|
-
let modulePath = args.path, moduleInfo = normalizeModuleInfo(getModuleInfo(modulePath));
|
|
549
|
-
return { contents: createContents(moduleInfo) };
|
|
550
|
-
});
|
|
551
|
-
}
|
|
552
|
-
};
|
|
553
|
-
};
|
|
554
|
-
|
|
555
|
-
// ../../node_modules/@fal-works/esbuild-plugin-global-externals/lib/with-object.js
|
|
556
|
-
var globalExternals = (globals) => {
|
|
557
|
-
let normalizedGlobals = {
|
|
558
|
-
modulePathFilter: new RegExp(`^(?:${Object.keys(globals).join("|")})$`),
|
|
559
|
-
getModuleInfo: (modulePath) => globals[modulePath]
|
|
560
|
-
};
|
|
561
|
-
return globalExternalsWithRegExp(normalizedGlobals);
|
|
562
|
-
};
|
|
563
|
-
|
|
564
|
-
// src/builder-manager/index.ts
|
|
565
505
|
var import_sirv = __toESM(require_build(), 1);
|
|
566
|
-
import { join as
|
|
506
|
+
import { join as join5, parse as parse2 } from "pathe";
|
|
507
|
+
|
|
508
|
+
// src/builder-manager/bundle.ts
|
|
509
|
+
import { dirname, join, relative } from "pathe";
|
|
567
510
|
|
|
568
511
|
// src/manager/globals/exports.ts
|
|
569
512
|
var exports_default = {
|
|
@@ -1113,6 +1056,7 @@ var exports_default = {
|
|
|
1113
1056
|
"CHANNEL_WS_DISCONNECT",
|
|
1114
1057
|
"CONFIG_ERROR",
|
|
1115
1058
|
"CURRENT_STORY_WAS_SET",
|
|
1059
|
+
"DOCS_PAGE_IN_VIEW",
|
|
1116
1060
|
"DOCS_PREPARED",
|
|
1117
1061
|
"DOCS_RENDERED",
|
|
1118
1062
|
"FORCE_REMOUNT",
|
|
@@ -1255,6 +1199,101 @@ var duplicatedKeys = [
|
|
|
1255
1199
|
{}
|
|
1256
1200
|
);
|
|
1257
1201
|
|
|
1202
|
+
// src/builder-manager/bundle.ts
|
|
1203
|
+
var MEDIA_EXTENSIONS = [
|
|
1204
|
+
".png",
|
|
1205
|
+
".gif",
|
|
1206
|
+
".jpg",
|
|
1207
|
+
".jpeg",
|
|
1208
|
+
".svg",
|
|
1209
|
+
".webp",
|
|
1210
|
+
".webm",
|
|
1211
|
+
".mp3",
|
|
1212
|
+
".woff2",
|
|
1213
|
+
".woff",
|
|
1214
|
+
".eot",
|
|
1215
|
+
".ttf"
|
|
1216
|
+
], GLOBAL_PREFIX = "\0forkbook-global:";
|
|
1217
|
+
function globalExternals() {
|
|
1218
|
+
return {
|
|
1219
|
+
name: "forkbook-global-externals",
|
|
1220
|
+
resolveId(id) {
|
|
1221
|
+
return id in globalsModuleInfoMap ? `${GLOBAL_PREFIX}${id}` : null;
|
|
1222
|
+
},
|
|
1223
|
+
load(id) {
|
|
1224
|
+
if (!id.startsWith(GLOBAL_PREFIX))
|
|
1225
|
+
return null;
|
|
1226
|
+
let name = id.slice(GLOBAL_PREFIX.length), { namedExports, varName } = globalsModuleInfoMap[name];
|
|
1227
|
+
return [
|
|
1228
|
+
...namedExports.map((key) => `export const ${key} = ${varName}[${JSON.stringify(key)}];`),
|
|
1229
|
+
`export default ${varName};`
|
|
1230
|
+
].join(`
|
|
1231
|
+
`);
|
|
1232
|
+
}
|
|
1233
|
+
};
|
|
1234
|
+
}
|
|
1235
|
+
function injectCss() {
|
|
1236
|
+
return {
|
|
1237
|
+
name: "forkbook-manager-css",
|
|
1238
|
+
transform: {
|
|
1239
|
+
filter: { id: /\.css$/ },
|
|
1240
|
+
handler(code) {
|
|
1241
|
+
return {
|
|
1242
|
+
code: `const style = document.createElement('style');
|
|
1243
|
+
style.textContent = ${JSON.stringify(code)};
|
|
1244
|
+
document.head.appendChild(style);`,
|
|
1245
|
+
moduleType: "js"
|
|
1246
|
+
};
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
};
|
|
1250
|
+
}
|
|
1251
|
+
function commonDirectory(files) {
|
|
1252
|
+
return files.map(dirname).reduce((common, directory) => {
|
|
1253
|
+
for (; !`${directory}/`.startsWith(`${common}/`); )
|
|
1254
|
+
common = dirname(common);
|
|
1255
|
+
return common;
|
|
1256
|
+
});
|
|
1257
|
+
}
|
|
1258
|
+
async function bundleManagerEntries(config) {
|
|
1259
|
+
let { rolldown } = await import("rolldown"), base = config.entryPoints.length ? commonDirectory(config.entryPoints) : config.outdir;
|
|
1260
|
+
return { outputFiles: await Promise.all(
|
|
1261
|
+
config.entryPoints.map(async (entry) => {
|
|
1262
|
+
let bundle = await rolldown({
|
|
1263
|
+
input: entry,
|
|
1264
|
+
platform: "browser",
|
|
1265
|
+
tsconfig: config.tsconfig,
|
|
1266
|
+
logLevel: "warn",
|
|
1267
|
+
resolve: {
|
|
1268
|
+
conditionNames: ["browser", "module", "default"],
|
|
1269
|
+
extensions: [".ts", ".tsx", ".mjs", ".js", ".jsx"]
|
|
1270
|
+
},
|
|
1271
|
+
moduleTypes: {
|
|
1272
|
+
".js": "jsx",
|
|
1273
|
+
...Object.fromEntries(MEDIA_EXTENSIONS.map((extension) => [extension, "dataurl"]))
|
|
1274
|
+
},
|
|
1275
|
+
transform: { target: BROWSER_TARGETS, jsx: "react", define: config.define },
|
|
1276
|
+
plugins: [globalExternals(), injectCss()],
|
|
1277
|
+
// A manager entry runs for its side effects. Keep every module, even in a package that
|
|
1278
|
+
// says it has no side effects.
|
|
1279
|
+
treeshake: { moduleSideEffects: () => !0, annotations: !1 }
|
|
1280
|
+
});
|
|
1281
|
+
try {
|
|
1282
|
+
let { output } = await bundle.generate({
|
|
1283
|
+
format: "esm",
|
|
1284
|
+
codeSplitting: !1,
|
|
1285
|
+
minify: config.minify ? !0 : "dce-only",
|
|
1286
|
+
banner: "try{",
|
|
1287
|
+
footer: '}catch(e){ console.error("[Forkbook] One of your manager-entries failed: " + import.meta.url, e); }'
|
|
1288
|
+
});
|
|
1289
|
+
return { path: join(config.outdir, relative(base, entry)), contents: output[0].code };
|
|
1290
|
+
} finally {
|
|
1291
|
+
await bundle.close();
|
|
1292
|
+
}
|
|
1293
|
+
})
|
|
1294
|
+
) };
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1258
1297
|
// src/builder-manager/utils/data.ts
|
|
1259
1298
|
import { basename } from "node:path";
|
|
1260
1299
|
import { getRefs } from "@aussieljk/forkbook/internal/common";
|
|
@@ -1262,8 +1301,8 @@ import { getRefs } from "@aussieljk/forkbook/internal/common";
|
|
|
1262
1301
|
// src/builder-manager/utils/template.ts
|
|
1263
1302
|
var import_ejs = __toESM(require_ejs(), 1);
|
|
1264
1303
|
import { readFile } from "node:fs/promises";
|
|
1265
|
-
import { join } from "pathe";
|
|
1266
|
-
var getTemplatePath = (template) =>
|
|
1304
|
+
import { join as join2 } from "pathe";
|
|
1305
|
+
var getTemplatePath = (template) => join2(resolvePackageDir("@aussieljk/forkbook"), "assets/server", template), readTemplate = async (template) => {
|
|
1267
1306
|
let path = getTemplatePath(template);
|
|
1268
1307
|
return readFile(path, { encoding: "utf8" });
|
|
1269
1308
|
};
|
|
@@ -1322,13 +1361,13 @@ var getData = async (options) => {
|
|
|
1322
1361
|
// src/builder-manager/utils/files.ts
|
|
1323
1362
|
import { existsSync } from "node:fs";
|
|
1324
1363
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
1325
|
-
import { dirname, join as
|
|
1364
|
+
import { dirname as dirname2, join as join3, normalize, relative as relative2 } from "node:path";
|
|
1326
1365
|
async function readOrderedFiles(addonsDir, outputFiles) {
|
|
1327
1366
|
let files = await Promise.all(
|
|
1328
1367
|
outputFiles?.map(async (file) => {
|
|
1329
1368
|
let { location, url } = sanitizePath(file, addonsDir);
|
|
1330
1369
|
if (!existsSync(location)) {
|
|
1331
|
-
let directory =
|
|
1370
|
+
let directory = dirname2(location);
|
|
1332
1371
|
await mkdir(directory, { recursive: !0 });
|
|
1333
1372
|
}
|
|
1334
1373
|
return await writeFile(location, file.contents), url;
|
|
@@ -1337,7 +1376,7 @@ async function readOrderedFiles(addonsDir, outputFiles) {
|
|
|
1337
1376
|
return { cssFiles: files.filter((file) => file.endsWith(".css")), jsFiles };
|
|
1338
1377
|
}
|
|
1339
1378
|
function sanitizePath(file, addonsDir) {
|
|
1340
|
-
let filePath =
|
|
1379
|
+
let filePath = relative2(addonsDir, file.path), location = normalize(join3(addonsDir, filePath)), url = `./fb-addons/${slash(filePath).split("/").map(encodeURIComponent).join("/")}`;
|
|
1341
1380
|
return { location, url };
|
|
1342
1381
|
}
|
|
1343
1382
|
|
|
@@ -1359,7 +1398,7 @@ var buildFrameworkGlobalsFromOptions = async (options) => {
|
|
|
1359
1398
|
// src/builder-manager/utils/managerEntries.ts
|
|
1360
1399
|
import { existsSync as existsSync2 } from "node:fs";
|
|
1361
1400
|
import { mkdir as mkdir2, writeFile as writeFile2 } from "node:fs/promises";
|
|
1362
|
-
import { dirname as
|
|
1401
|
+
import { dirname as dirname3, join as join4, parse, relative as relative3, sep } from "node:path";
|
|
1363
1402
|
import { resolvePathInStorybookCache } from "@aussieljk/forkbook/internal/common";
|
|
1364
1403
|
var sanitizeBase = (path) => path.replaceAll(".", "").replaceAll("@", "").replaceAll(sep, "-").replaceAll("/", "-").replaceAll(new RegExp(/^(-)+/g), ""), sanitizeFinal = (path) => {
|
|
1365
1404
|
let sections = path.split(/-?node_modules-?/);
|
|
@@ -1371,12 +1410,12 @@ async function wrapManagerEntries(entrypoints, uniqueId) {
|
|
|
1371
1410
|
let { name, dir } = parse(entry), cacheLocation = resolvePathInStorybookCache("fb-manager", uniqueId);
|
|
1372
1411
|
if (!cacheLocation)
|
|
1373
1412
|
throw new Error("Could not create/find cache directory");
|
|
1374
|
-
let base =
|
|
1413
|
+
let base = relative3(process.cwd(), dir), location = join4(
|
|
1375
1414
|
cacheLocation,
|
|
1376
|
-
sanitizeFinal(
|
|
1415
|
+
sanitizeFinal(join4(`${sanitizeBase(base)}-${i}`, `${sanitizeBase(name)}-bundle.js`))
|
|
1377
1416
|
);
|
|
1378
1417
|
if (!existsSync2(location)) {
|
|
1379
|
-
let directory =
|
|
1418
|
+
let directory = dirname3(location);
|
|
1380
1419
|
await mkdir2(directory, { recursive: !0 });
|
|
1381
1420
|
}
|
|
1382
1421
|
return await writeFile2(location, `import '${slash(entry).replaceAll(/'/g, "\\'")}';`), location;
|
|
@@ -1385,7 +1424,7 @@ async function wrapManagerEntries(entrypoints, uniqueId) {
|
|
|
1385
1424
|
}
|
|
1386
1425
|
|
|
1387
1426
|
// src/builder-manager/index.ts
|
|
1388
|
-
var CORE_DIR_ORIGIN =
|
|
1427
|
+
var CORE_DIR_ORIGIN = join5(resolvePackageDir("@aussieljk/forkbook"), "dist/manager"), isRootPath = /^\/($|\?)/, compilation, asyncIterator, getConfig = async (options) => {
|
|
1389
1428
|
let [managerEntriesFromPresets, envs] = await Promise.all([
|
|
1390
1429
|
options.presets.apply("managerEntries", []),
|
|
1391
1430
|
options.presets.apply("env")
|
|
@@ -1400,56 +1439,9 @@ var CORE_DIR_ORIGIN = join4(resolvePackageDir("@aussieljk/forkbook"), "dist/mana
|
|
|
1400
1439
|
let entryPoints = configDirManagerEntry ? [...managerEntriesFromPresets, configDirManagerEntry] : managerEntriesFromPresets;
|
|
1401
1440
|
return {
|
|
1402
1441
|
entryPoints: await wrapManagerEntries(entryPoints, options.cacheKey),
|
|
1403
|
-
outdir:
|
|
1404
|
-
format: "iife",
|
|
1405
|
-
write: !1,
|
|
1406
|
-
ignoreAnnotations: !0,
|
|
1407
|
-
resolveExtensions: [".ts", ".tsx", ".mjs", ".js", ".jsx"],
|
|
1408
|
-
outExtension: { ".js": ".js" },
|
|
1409
|
-
loader: {
|
|
1410
|
-
".js": "jsx",
|
|
1411
|
-
// media
|
|
1412
|
-
".png": "dataurl",
|
|
1413
|
-
".gif": "dataurl",
|
|
1414
|
-
".jpg": "dataurl",
|
|
1415
|
-
".jpeg": "dataurl",
|
|
1416
|
-
".svg": "dataurl",
|
|
1417
|
-
".webp": "dataurl",
|
|
1418
|
-
".webm": "dataurl",
|
|
1419
|
-
".mp3": "dataurl",
|
|
1420
|
-
// modern fonts
|
|
1421
|
-
".woff2": "dataurl",
|
|
1422
|
-
// legacy font formats
|
|
1423
|
-
".woff": "dataurl",
|
|
1424
|
-
".eot": "dataurl",
|
|
1425
|
-
".ttf": "dataurl"
|
|
1426
|
-
},
|
|
1427
|
-
target: BROWSER_TARGETS,
|
|
1428
|
-
supported: SUPPORTED_FEATURES,
|
|
1429
|
-
platform: "browser",
|
|
1430
|
-
bundle: !0,
|
|
1431
|
-
minify: !1,
|
|
1432
|
-
minifyWhitespace: !1,
|
|
1433
|
-
minifyIdentifiers: !1,
|
|
1434
|
-
minifySyntax: !0,
|
|
1435
|
-
metafile: !1,
|
|
1436
|
-
// turn this on to assist with debugging the bundling of managerEntries
|
|
1437
|
-
// treeShaking: true,
|
|
1438
|
-
sourcemap: !1,
|
|
1439
|
-
conditions: ["browser", "module", "default"],
|
|
1440
|
-
jsxFactory: "React.createElement",
|
|
1441
|
-
jsxFragment: "React.Fragment",
|
|
1442
|
-
jsx: "transform",
|
|
1443
|
-
jsxImportSource: "react",
|
|
1442
|
+
outdir: join5(options.outputDir || "./", "fb-addons"),
|
|
1444
1443
|
tsconfig: tsconfigPath,
|
|
1445
|
-
|
|
1446
|
-
plugins: [globalExternals(globalsModuleInfoMap)],
|
|
1447
|
-
banner: {
|
|
1448
|
-
js: "try{"
|
|
1449
|
-
},
|
|
1450
|
-
footer: {
|
|
1451
|
-
js: '}catch(e){ console.error("[Forkbook] One of your manager-entries failed: " + import.meta.url, e); }'
|
|
1452
|
-
},
|
|
1444
|
+
minify: !1,
|
|
1453
1445
|
define: {
|
|
1454
1446
|
"process.env": JSON.stringify(envs),
|
|
1455
1447
|
...stringifyProcessEnvs(envs),
|
|
@@ -1458,10 +1450,7 @@ var CORE_DIR_ORIGIN = join4(resolvePackageDir("@aussieljk/forkbook"), "dist/mana
|
|
|
1458
1450
|
}
|
|
1459
1451
|
};
|
|
1460
1452
|
}, executor = {
|
|
1461
|
-
get: async () =>
|
|
1462
|
-
let { build: build2 } = await import("esbuild");
|
|
1463
|
-
return build2;
|
|
1464
|
-
}
|
|
1453
|
+
get: async () => bundleManagerEntries
|
|
1465
1454
|
}, starter = async function* ({
|
|
1466
1455
|
startTime,
|
|
1467
1456
|
options,
|
|
@@ -1500,12 +1489,7 @@ var CORE_DIR_ORIGIN = join4(resolvePackageDir("@aussieljk/forkbook"), "dist/mana
|
|
|
1500
1489
|
immutable: !0
|
|
1501
1490
|
})
|
|
1502
1491
|
);
|
|
1503
|
-
let { cssFiles, jsFiles } = await readOrderedFiles(addonsDir, compilation?.outputFiles);
|
|
1504
|
-
compilation.metafile && options.outputDir && await writeFile3(
|
|
1505
|
-
join4(options.outputDir, "metafile.json"),
|
|
1506
|
-
JSON.stringify(compilation.metafile, null, 2)
|
|
1507
|
-
);
|
|
1508
|
-
let globals = await buildFrameworkGlobalsFromOptions(options);
|
|
1492
|
+
let { cssFiles, jsFiles } = await readOrderedFiles(addonsDir, compilation?.outputFiles), globals = await buildFrameworkGlobalsFromOptions(options);
|
|
1509
1493
|
yield;
|
|
1510
1494
|
let html = await renderHTML(
|
|
1511
1495
|
template,
|
|
@@ -1551,7 +1535,7 @@ var CORE_DIR_ORIGIN = join4(resolvePackageDir("@aussieljk/forkbook"), "dist/mana
|
|
|
1551
1535
|
tagsOptions
|
|
1552
1536
|
} = await getData(options);
|
|
1553
1537
|
yield;
|
|
1554
|
-
let addonsDir = config.outdir, coreDirTarget =
|
|
1538
|
+
let addonsDir = config.outdir, coreDirTarget = join5(options.outputDir, "fb-manager");
|
|
1555
1539
|
compilation = await instance({
|
|
1556
1540
|
...config,
|
|
1557
1541
|
minify: !0
|
|
@@ -1579,7 +1563,7 @@ var CORE_DIR_ORIGIN = join4(resolvePackageDir("@aussieljk/forkbook"), "dist/mana
|
|
|
1579
1563
|
options,
|
|
1580
1564
|
globals
|
|
1581
1565
|
);
|
|
1582
|
-
return await Promise.all([writeFile3(
|
|
1566
|
+
return await Promise.all([writeFile3(join5(options.outputDir, "index.html"), html), managerFiles]), logger.trace({ message: "Manager built", time: process.hrtime(startTime) }), {
|
|
1583
1567
|
toJson: () => ({})
|
|
1584
1568
|
};
|
|
1585
1569
|
}, bail = async () => {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7qov04rgzsv from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7qov04rgzsv from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7qov04rgzsv from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7qov04rgzsv.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7qov04rgzsv.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.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
|
nanoid
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-L4JGWK4K.js";
|
|
15
15
|
|
|
16
16
|
// src/telemetry/session-id.ts
|
|
17
17
|
import { cache } from "@aussieljk/forkbook/internal/common";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7qov04rgzsv from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7qov04rgzsv from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7qov04rgzsv from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7qov04rgzsv.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7qov04rgzsv.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.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-GDFQQO5U.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-HUPRQZ3I.js";
|
|
24
24
|
import {
|
|
25
25
|
invokeToolsetMethod,
|
|
26
26
|
resolveToolsetDescription
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-Z4NZLBOX.js";
|
|
28
28
|
import {
|
|
29
29
|
parseToolsetMethodId,
|
|
30
30
|
toCliMethodName
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MFN2XBPL.js";
|
|
32
32
|
import {
|
|
33
33
|
deserializeError
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FQWTUSYB.js";
|
|
35
35
|
import {
|
|
36
36
|
StorybookDevServerDisconnectedError,
|
|
37
37
|
formatIssues
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-NX6CSWF3.js";
|
|
39
39
|
|
|
40
40
|
// src/cli/tools/sdk/child-protocol.ts
|
|
41
41
|
function isChildMessage(value) {
|
|
@@ -965,7 +965,7 @@ async function createTools(options = {}, deps = {}) {
|
|
|
965
965
|
}
|
|
966
966
|
async function createAttachedTools(options, deps, clientInfo, requestedMode) {
|
|
967
967
|
process.env.FORKBOOK_ATTACHED_TOOLS = "true";
|
|
968
|
-
let { bootstrapAttachedRuntime } = await import("./attached-runtime-
|
|
968
|
+
let { bootstrapAttachedRuntime } = await import("./attached-runtime-EBWIOQZN.js"), autoSpawn = process.env.FORKBOOK_TOOLS_CHILD_HOST === "true" ? !1 : options.autoSpawn ?? !0, attached = await (deps.attach ?? ((target) => bootstrapAttachedRuntime({ ...target, autoSpawn })))({
|
|
969
969
|
cwd: options.cwd,
|
|
970
970
|
configDir: options.configDir,
|
|
971
971
|
port: options.port
|
|
@@ -1030,7 +1030,7 @@ async function createLocalTools(options, deps, clientInfo, requestedMode, fallba
|
|
|
1030
1030
|
});
|
|
1031
1031
|
return fallback ? { ...child, ...fallback } : child;
|
|
1032
1032
|
}
|
|
1033
|
-
let { bootstrapToolsRuntime } = await import("./local-runtime-
|
|
1033
|
+
let { bootstrapToolsRuntime } = await import("./local-runtime-BUTEKJYV.js"), runtime;
|
|
1034
1034
|
try {
|
|
1035
1035
|
runtime = await (deps.bootstrap ?? bootstrapToolsRuntime)({
|
|
1036
1036
|
cwd,
|