@aussieljk/forkbook 0.0.1-5 → 0.0.1-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_browser-chunks/{Color-GTF4GM7L.js → Color-2YRIFQLC.js} +1 -1
- package/dist/_browser-chunks/WithTooltip-4R5JMWZ7.js +196 -0
- package/dist/_browser-chunks/{chunk-MJY6ITYT.js → chunk-4EFKUJG2.js} +10 -10
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-DAUHYZUB.js} +550 -1621
- package/dist/_browser-chunks/chunk-E47B5255.js +1149 -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-HOSBMS2F.js → chunk-HTL5ODCB.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-NMRSYACM.js → chunk-SFMQDIN2.js} +4 -3
- package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
- package/dist/_browser-chunks/chunk-WVF42CP2.js +6027 -0
- package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-YYWKZ7O3.js} +3 -1
- package/dist/_node-chunks/{attached-runtime-IOE3BXIY.js → attached-runtime-WFZCCGUB.js} +29 -29
- package/dist/_node-chunks/{builder-manager-GDFEGD72.js → builder-manager-DHKHRZK4.js} +155 -148
- package/dist/_node-chunks/{chunk-M2QB5ALN.js → chunk-3ZCGT6VF.js} +6 -6
- package/dist/_node-chunks/{chunk-SUJXQU74.js → chunk-4HGC3G6B.js} +46 -15
- package/dist/_node-chunks/{chunk-WMQ2VCTF.js → chunk-5PYQ573S.js} +7 -7
- package/dist/_node-chunks/{chunk-TYCDPVIH.js → chunk-64JPAW3T.js} +6 -6
- package/dist/_node-chunks/chunk-6CB3XSQ2.js +495 -0
- package/dist/_node-chunks/{chunk-MHDKWHOA.js → chunk-6K3ZE4HN.js} +6 -6
- package/dist/_node-chunks/{chunk-3DCJB2D4.js → chunk-6QZ3PX5R.js} +6 -6
- package/dist/_node-chunks/{chunk-6DOJKR3V.js → chunk-7HVDL6M3.js} +29843 -51588
- package/dist/_node-chunks/chunk-7PMQPS5E.js +347 -0
- package/dist/_node-chunks/{chunk-L5CY6HKG.js → chunk-7V5AOV2J.js} +7 -7
- package/dist/_node-chunks/{chunk-AXJJB2K6.js → chunk-7VHCAGBJ.js} +8 -8
- package/dist/_node-chunks/{chunk-3DX6THMV.js → chunk-ATX7SHS7.js} +8 -8
- package/dist/_node-chunks/{chunk-SDXU22OH.js → chunk-BQC6WCUS.js} +6 -6
- package/dist/_node-chunks/{chunk-D6B2DRQZ.js → chunk-BR4WDRY6.js} +8 -8
- package/dist/_node-chunks/{chunk-SJZQ44OR.js → chunk-BRHJ4P3A.js} +6 -6
- package/dist/_node-chunks/{chunk-N4FLP7AO.js → chunk-CBBFNVFZ.js} +7 -7
- package/dist/_node-chunks/{chunk-PHXCOTMO.js → chunk-CDFQORVD.js} +34 -949
- package/dist/_node-chunks/{chunk-SR3BCYEH.js → chunk-CENNLCU7.js} +6 -6
- package/dist/_node-chunks/{chunk-OTFIQXHR.js → chunk-CNMMDQC3.js} +27 -50
- package/dist/_node-chunks/{chunk-E4C2H45J.js → chunk-DMDZPUHM.js} +6 -6
- package/dist/_node-chunks/{chunk-45LRLOYO.js → chunk-DT45EUDD.js} +60 -134
- package/dist/_node-chunks/{chunk-KQFHT7SW.js → chunk-EAL4RVEF.js} +6 -6
- package/dist/_node-chunks/chunk-EFFWFE6W.js +11 -0
- package/dist/_node-chunks/{chunk-MDGNN3FJ.js → chunk-ESCZ2NSB.js} +6 -6
- package/dist/_node-chunks/{chunk-T2I453AJ.js → chunk-ESZIQTUH.js} +7 -7
- package/dist/_node-chunks/{chunk-HWY2CAUH.js → chunk-F3SAYS4R.js} +6 -6
- package/dist/_node-chunks/{chunk-LSP54OYM.js → chunk-FTUQ7T3V.js} +25 -8
- package/dist/_node-chunks/{chunk-AAAUVDWT.js → chunk-FVFSSIGA.js} +10 -10
- package/dist/_node-chunks/{chunk-GS4VNNSS.js → chunk-G2AANC4A.js} +6 -6
- package/dist/_node-chunks/{chunk-SAAQFJL4.js → chunk-HUMAXGH2.js} +6 -6
- package/dist/_node-chunks/{chunk-A4XRNDN4.js → chunk-I535GEPH.js} +7 -7
- package/dist/_node-chunks/{chunk-CK4EHW3K.js → chunk-J3Q56GX3.js} +25 -25
- package/dist/_node-chunks/{chunk-U47PBQZ3.js → chunk-JDKYP7FW.js} +10 -10
- package/dist/_node-chunks/{chunk-7TUSIVWS.js → chunk-JED5F3H2.js} +6 -6
- package/dist/_node-chunks/{chunk-UM5G27IC.js → chunk-JMS4H7QB.js} +7 -7
- package/dist/_node-chunks/{chunk-GR65OLAH.js → chunk-JOSJ64KD.js} +7 -7
- package/dist/_node-chunks/{chunk-XUHEL63G.js → chunk-JPHSU5OI.js} +6 -6
- package/dist/_node-chunks/{chunk-NYWD5LYM.js → chunk-JQICISDD.js} +6 -6
- package/dist/_node-chunks/{chunk-I3DKGHVD.js → chunk-JTLOSDYL.js} +9 -9
- package/dist/_node-chunks/{chunk-5KAJVK4E.js → chunk-K5RUOW42.js} +7 -7
- package/dist/_node-chunks/{chunk-UKEJISQU.js → chunk-KHWCZDIW.js} +650 -9
- package/dist/_node-chunks/chunk-KWER36VB.js +20 -0
- package/dist/_node-chunks/{chunk-YTBTCM22.js → chunk-LJTP5PAJ.js} +6 -6
- package/dist/_node-chunks/chunk-LZYYZ62Y.js +19 -0
- package/dist/_node-chunks/{chunk-CGXW2HFE.js → chunk-M7ZVSBNU.js} +6 -6
- package/dist/_node-chunks/{chunk-BTFSFATC.js → chunk-MBIIJTGQ.js} +11 -10
- package/dist/_node-chunks/{chunk-VBSVLIXU.js → chunk-MF3AT3JQ.js} +6 -6
- package/dist/_node-chunks/{chunk-AX2ALHBK.js → chunk-MF5BYASO.js} +9 -6
- package/dist/_node-chunks/{chunk-JJNO3SFI.js → chunk-MJFMB4WD.js} +9 -9
- package/dist/_node-chunks/{chunk-E4TBS4MV.js → chunk-MRWBN46D.js} +8 -8
- package/dist/_node-chunks/{chunk-QQXFB4YA.js → chunk-MZQXEAI6.js} +9 -9
- package/dist/_node-chunks/{chunk-TZ2TZW2K.js → chunk-NLPC2DDQ.js} +6 -6
- package/dist/_node-chunks/{chunk-HCX5R46Q.js → chunk-NQAFLS5U.js} +8 -8
- package/dist/_node-chunks/{chunk-5LE7GXEC.js → chunk-NSZGBFPR.js} +6 -6
- package/dist/_node-chunks/{chunk-WHDCECIV.js → chunk-NUYBFTOU.js} +7 -7
- package/dist/_node-chunks/{chunk-RCPKLP3X.js → chunk-O7VJA7SM.js} +7 -7
- package/dist/_node-chunks/{chunk-2GY2FKLH.js → chunk-OGJ7LDX3.js} +7 -7
- package/dist/_node-chunks/{chunk-F4Q7OCCN.js → chunk-OWT6AVWK.js} +8 -8
- package/dist/_node-chunks/{chunk-LCXIUTOU.js → chunk-P3GOMPP3.js} +7 -7
- package/dist/_node-chunks/{chunk-KCAPE7OJ.js → chunk-PQLXHVWK.js} +6 -6
- package/dist/_node-chunks/{chunk-V45RRBTK.js → chunk-Q6QRFKHB.js} +8 -8
- package/dist/_node-chunks/{chunk-VJSOHPVD.js → chunk-QSP42ZBM.js} +6 -6
- package/dist/_node-chunks/{chunk-7XUQM6SR.js → chunk-QWDR5OWQ.js} +14 -14
- package/dist/_node-chunks/{chunk-YLKS7U3M.js → chunk-QWRQXG2V.js} +8 -8
- package/dist/_node-chunks/{chunk-4WO3GNZQ.js → chunk-R6AKCXPH.js} +6 -6
- package/dist/_node-chunks/{chunk-AXQ6LLSE.js → chunk-RCY7TLET.js} +8 -8
- package/dist/_node-chunks/chunk-RKKMQA6N.js +620 -0
- package/dist/_node-chunks/{chunk-BV3QRFE6.js → chunk-RZ7UEP4N.js} +6 -6
- package/dist/_node-chunks/{chunk-OSJFTZ5N.js → chunk-S3HB4EWT.js} +6 -6
- package/dist/_node-chunks/{chunk-QZVFIEOM.js → chunk-SHH7JROR.js} +6 -6
- package/dist/_node-chunks/{chunk-Q33BYVLY.js → chunk-SWHTDOB4.js} +7 -7
- package/dist/_node-chunks/{chunk-ZPPVG262.js → chunk-SZYMLCHF.js} +6 -6
- package/dist/_node-chunks/{chunk-ES5QZBSB.js → chunk-TOGDRW2W.js} +6 -6
- package/dist/_node-chunks/{chunk-J64XMUPF.js → chunk-U3E7E4Q2.js} +10 -10
- package/dist/_node-chunks/{chunk-RECGEABN.js → chunk-U6DHF3RM.js} +7 -7
- package/dist/_node-chunks/{chunk-OB2XHL53.js → chunk-UAG3XK32.js} +31 -30
- package/dist/_node-chunks/{chunk-BBD2KUV4.js → chunk-UF6Q6L5C.js} +22 -20
- package/dist/_node-chunks/chunk-UGXN7JTT.js +18 -0
- package/dist/_node-chunks/{chunk-EWAGCBER.js → chunk-UNCBLHIP.js} +8 -8
- package/dist/_node-chunks/chunk-UPJMGWMZ.js +25 -0
- package/dist/_node-chunks/chunk-UVV24PG4.js +69 -0
- package/dist/_node-chunks/{chunk-E6KXSYWR.js → chunk-WBB4NQ6H.js} +6 -6
- package/dist/_node-chunks/{chunk-B2IOB2V3.js → chunk-WHOF2BJB.js} +7 -7
- package/dist/_node-chunks/{chunk-FA36CEN4.js → chunk-WME5NEJA.js} +6 -6
- package/dist/_node-chunks/{chunk-BFZG4UTW.js → chunk-X63YMAHP.js} +7 -7
- package/dist/_node-chunks/chunk-Y2GHAOKI.js +25 -0
- package/dist/_node-chunks/{chunk-AXG3EMKS.js → chunk-Y6G64J5S.js} +7 -15
- package/dist/_node-chunks/chunk-YVIPYJ53.js +2609 -0
- package/dist/_node-chunks/{chunk-NDGTNFUN.js → chunk-YZWUD7I5.js} +16 -13
- package/dist/_node-chunks/{chunk-VN3A5CEH.js → chunk-ZIDIYSJQ.js} +7 -7
- package/dist/_node-chunks/chunk-ZSGOW4WQ.js +20 -0
- package/dist/_node-chunks/dist-5EG56KTF.js +16 -0
- package/dist/_node-chunks/dist-UEXSNGGQ.js +27 -0
- package/dist/_node-chunks/{local-runtime-RW6AAWSX.js → local-runtime-UN5QK2SE.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-BKWCT6CB.js → mdx-plugin-6M6CMNL3.js} +2263 -130
- package/dist/_node-chunks/{monorepo-ZFJ6HM34.js → monorepo-253VKW4B.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-3ZOE54OQ.js} +11 -11
- package/dist/_node-chunks/optimized-tests-JSWLRMEI.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-2ZMJNCBS.js → pattern-copy-play-CCCJRMSL.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-VMANBHPR.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-RT5Z62RV.js → rehype-external-links-LJTPLCGD.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-H5TWHJ6G.js → rehype-slug-KQI7ULEZ.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-DYLWZGE4.js → relaxed-limits-MUE2NI7S.js} +11 -11
- package/dist/_node-chunks/{run-65LLGSVR.js → run-PGZMPNMS.js} +246 -13
- package/dist/_node-chunks/{run-BQQLK454.js → run-SYLR25HA.js} +17 -17
- package/dist/_node-chunks/session-id-J4A25UQ6.js +23 -0
- package/dist/_node-chunks/{setup-NEO7XX66.js → setup-XZWSUYPG.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-6P3FZQTY.js → vitest.config.4.template-T25YYRGV.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 +6 -5
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +2 -1
- package/dist/addon-docs/blocks.js +28 -14
- 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 +21 -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 +2 -2
- 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 +16 -11
- 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-Ce6uhJuR.d.ts → chunk-B_ZhEPlo.d.ts} +1 -1
- package/dist/{chunk-CZHsX9Zo.d.ts → chunk-CMaYrou5.d.ts} +1 -1
- package/dist/chunk-CV4-Z2pn.d.ts +30 -0
- package/dist/{chunk-B2t1tGRh.d.ts → chunk-CYuvV2sR.d.ts} +11 -13
- package/dist/{chunk-DpljNJTz.d.ts → chunk-LrH1y9J2.d.ts} +39 -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 +2512 -8359
- 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 +62 -866
- 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 +14 -12
- package/dist/csf-tools/index.js +14 -14
- package/dist/instrumenter/index.js +3 -1
- package/dist/manager/_manager-chunks/{globals-runtime-BgVwdR45.js → globals-runtime-4fCHtNC6.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DW1HVuLt.js → globals-runtime-BKPOYSwp.js} +410 -379
- package/dist/manager/_manager-chunks/{globals-runtime-zVfMhZAt.js → globals-runtime-BMIT8BJb.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CUBVmgcG.js → globals-runtime-BO0pfoqL.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-Bke4A4DG.js → globals-runtime-BZKYJxYC.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-D_YKR9nf.js → globals-runtime-Bpc_ftuT.js} +1252 -539
- package/dist/manager/_manager-chunks/{globals-runtime-DCOX9nD5.js → globals-runtime-CBviMKtt.js} +1 -17
- package/dist/manager/_manager-chunks/{globals-runtime-CTB3rhS1.js → globals-runtime-CI-C7ncS.js} +10 -10
- package/dist/manager/_manager-chunks/{globals-runtime-Cr3nYYcT.js → globals-runtime-CI_p54Ha.js} +59 -60
- package/dist/manager/_manager-chunks/{globals-runtime-CiLcg4q9.js → globals-runtime-CTyYXvUm.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DqNrRmOM.js → globals-runtime-CoCzM1V_.js} +93 -2146
- package/dist/manager/_manager-chunks/{globals-runtime-CXKb33hg.js → globals-runtime-CzEhVGVp.js} +141 -54
- package/dist/manager/_manager-chunks/{globals-runtime-CF4o9_wT.js → globals-runtime-D82vqOGq.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-ALpzCL93.js → globals-runtime-DB8fVA5g.js} +2 -145
- package/dist/manager/_manager-chunks/{globals-runtime-DMvB3-IM.js → globals-runtime-DMq1Phbl.js} +153 -141
- package/dist/manager/_manager-chunks/globals-runtime-DOPUchia.js +5282 -0
- package/dist/manager/_manager-chunks/{globals-runtime-BcNHymiF.js → globals-runtime-Dbt08xWQ.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-m07udJ_K.js → globals-runtime-kmPSyf3j.js} +637 -1730
- package/dist/manager/_manager-chunks/{runtime-DMig8mT7.js → runtime-5o_11Jae.js} +4 -3
- package/dist/manager/_manager-chunks/{runtime-DrjpEyLM.js → runtime-B4U0u9p4.js} +5 -147
- package/dist/manager/_manager-chunks/{runtime-B-eSQdxk.js → runtime-BM30BmeT.js} +503 -44
- package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
- package/dist/manager/_manager-chunks/{runtime-a5zd7km2.js → runtime-Cf0p9DUx.js} +5 -531
- package/dist/manager/_manager-chunks/{runtime-Cdz2BHhM.js → runtime-D-nYLsdk.js} +57 -34
- package/dist/manager/_manager-chunks/runtime-D09XMY6V.js +294 -0
- package/dist/manager/_manager-chunks/{runtime-Bldwclun.js → runtime-DvrwKw7z.js} +92 -303
- package/dist/manager/_manager-chunks/{runtime-DGHNKNQl.js → runtime-DzxaTqVN.js} +10 -29
- package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
- package/dist/manager/_manager-chunks/{runtime-Cmu7D8A0.js → runtime-ecY5qnmo.js} +193 -184
- 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 +22 -28
- 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/node-stand-ins/index.d.ts +68 -0
- package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
- package/dist/nextjs-vite/preset.js +93 -14
- package/dist/nextjs-vite/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 +21 -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-6QQTZT3Z.js +0 -19
- 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-MCZZMBPA.js +0 -20
- 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-UW35FCXF.js +0 -20
- 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/chunk-ZZNBVMBU.js +0 -25
- 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/manager/_manager-chunks/runtime-CuJiHYCp.js +0 -22
- package/dist/manager/_manager-chunks/runtime-DFhLVh8q.js +0 -456
- 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_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,10 +12,10 @@ var require = CJS_COMPAT_NODE_MODULE_1qqypd7gt14.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
readRegistry,
|
|
14
14
|
selectInstances
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QWRQXG2V.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveStorybookConfigDir
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-R6AKCXPH.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-S3HB4EWT.js";
|
|
27
27
|
import {
|
|
28
28
|
AttachUnavailableError,
|
|
29
29
|
EnvironmentMismatchError,
|
|
30
30
|
ToolsRuntimeError,
|
|
31
31
|
projectPathsEqual
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-ESZIQTUH.js";
|
|
33
33
|
import {
|
|
34
34
|
SERVER_CHANNEL_PATH,
|
|
35
35
|
WebsocketTransport
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-ATX7SHS7.js";
|
|
37
|
+
import "./chunk-LZYYZ62Y.js";
|
|
38
38
|
import {
|
|
39
39
|
detectAgent
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-UPJMGWMZ.js";
|
|
41
|
+
import "./chunk-EAL4RVEF.js";
|
|
42
42
|
import {
|
|
43
43
|
UniversalStore
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-5PYQ573S.js";
|
|
45
45
|
import {
|
|
46
46
|
getRegisteredToolsets
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-Q6QRFKHB.js";
|
|
48
|
+
import "./chunk-NUYBFTOU.js";
|
|
49
|
+
import "./chunk-KWER36VB.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-U3E7E4Q2.js";
|
|
56
|
+
import "./chunk-MF3AT3JQ.js";
|
|
57
|
+
import "./chunk-CBBFNVFZ.js";
|
|
58
|
+
import "./chunk-6K3ZE4HN.js";
|
|
59
|
+
import "./chunk-BQC6WCUS.js";
|
|
60
|
+
import "./chunk-LJTP5PAJ.js";
|
|
61
|
+
import "./chunk-OGJ7LDX3.js";
|
|
62
|
+
import "./chunk-M7ZVSBNU.js";
|
|
63
63
|
import {
|
|
64
64
|
StorybookDevServerDisconnectedError
|
|
65
|
-
} from "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
65
|
+
} from "./chunk-OWT6AVWK.js";
|
|
66
|
+
import "./chunk-K5RUOW42.js";
|
|
67
|
+
import "./chunk-NLPC2DDQ.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_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
BROWSER_TARGETS,
|
|
14
|
-
NODE_TARGET
|
|
15
|
-
|
|
16
|
-
} from "./chunk-F2LQJXAB.js";
|
|
14
|
+
NODE_TARGET
|
|
15
|
+
} from "./chunk-Y2GHAOKI.js";
|
|
17
16
|
import {
|
|
18
17
|
require_build
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-I535GEPH.js";
|
|
20
19
|
import {
|
|
21
20
|
resolveModulePath,
|
|
22
21
|
resolvePackageDir
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-SWHTDOB4.js";
|
|
23
|
+
import "./chunk-3ZCGT6VF.js";
|
|
25
24
|
import {
|
|
26
25
|
slash
|
|
27
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZSGOW4WQ.js";
|
|
28
27
|
import {
|
|
29
28
|
__commonJS,
|
|
30
29
|
__require,
|
|
31
30
|
__toESM
|
|
32
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-NLPC2DDQ.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,12 @@ 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 { readFile } from "node:fs/promises";
|
|
510
|
+
import { dirname, join, relative } from "pathe";
|
|
567
511
|
|
|
568
512
|
// src/manager/globals/exports.ts
|
|
569
513
|
var exports_default = {
|
|
@@ -1113,6 +1057,7 @@ var exports_default = {
|
|
|
1113
1057
|
"CHANNEL_WS_DISCONNECT",
|
|
1114
1058
|
"CONFIG_ERROR",
|
|
1115
1059
|
"CURRENT_STORY_WAS_SET",
|
|
1060
|
+
"DOCS_PAGE_IN_VIEW",
|
|
1116
1061
|
"DOCS_PREPARED",
|
|
1117
1062
|
"DOCS_RENDERED",
|
|
1118
1063
|
"FORCE_REMOUNT",
|
|
@@ -1255,17 +1200,134 @@ var duplicatedKeys = [
|
|
|
1255
1200
|
{}
|
|
1256
1201
|
);
|
|
1257
1202
|
|
|
1203
|
+
// src/builder-manager/bundle.ts
|
|
1204
|
+
var MEDIA_EXTENSIONS = [
|
|
1205
|
+
".png",
|
|
1206
|
+
".gif",
|
|
1207
|
+
".jpg",
|
|
1208
|
+
".jpeg",
|
|
1209
|
+
".svg",
|
|
1210
|
+
".webp",
|
|
1211
|
+
".webm",
|
|
1212
|
+
".mp3",
|
|
1213
|
+
".woff2",
|
|
1214
|
+
".woff",
|
|
1215
|
+
".eot",
|
|
1216
|
+
".ttf"
|
|
1217
|
+
], GLOBAL_PREFIX = "\0forkbook-global:";
|
|
1218
|
+
function globalExternals() {
|
|
1219
|
+
return {
|
|
1220
|
+
name: "forkbook-global-externals",
|
|
1221
|
+
resolveId(id) {
|
|
1222
|
+
return id in globalsModuleInfoMap ? `${GLOBAL_PREFIX}${id}` : null;
|
|
1223
|
+
},
|
|
1224
|
+
load(id) {
|
|
1225
|
+
if (!id.startsWith(GLOBAL_PREFIX))
|
|
1226
|
+
return null;
|
|
1227
|
+
let name = id.slice(GLOBAL_PREFIX.length), { namedExports, varName } = globalsModuleInfoMap[name];
|
|
1228
|
+
return [
|
|
1229
|
+
...namedExports.map((key) => `export const ${key} = ${varName}[${JSON.stringify(key)}];`),
|
|
1230
|
+
`export default ${varName};`
|
|
1231
|
+
].join(`
|
|
1232
|
+
`);
|
|
1233
|
+
}
|
|
1234
|
+
};
|
|
1235
|
+
}
|
|
1236
|
+
function injectCss() {
|
|
1237
|
+
return {
|
|
1238
|
+
name: "forkbook-manager-css",
|
|
1239
|
+
transform: {
|
|
1240
|
+
filter: { id: /\.css$/ },
|
|
1241
|
+
handler(code) {
|
|
1242
|
+
return {
|
|
1243
|
+
code: `const style = document.createElement('style');
|
|
1244
|
+
style.textContent = ${JSON.stringify(code)};
|
|
1245
|
+
document.head.appendChild(style);`,
|
|
1246
|
+
moduleType: "js"
|
|
1247
|
+
};
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
};
|
|
1251
|
+
}
|
|
1252
|
+
function commonDirectory(files) {
|
|
1253
|
+
return files.map(dirname).reduce((common, directory) => {
|
|
1254
|
+
for (; !`${directory}/`.startsWith(`${common}/`); )
|
|
1255
|
+
common = dirname(common);
|
|
1256
|
+
return common;
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
async function describeManagerEntry(entry) {
|
|
1260
|
+
let wrapper = await readFile(entry, "utf8").catch(() => ""), file = /^import '(.*)';$/.exec(wrapper.trim())?.[1]?.replaceAll("\\'", "'") ?? entry, normalized = file.replaceAll("\\", "/"), packagePath = normalized.split("/node_modules/").slice(1).at(-1), owner;
|
|
1261
|
+
if (packagePath) {
|
|
1262
|
+
let parts = packagePath.split("/");
|
|
1263
|
+
owner = parts[0].startsWith("@") ? `${parts[0]}/${parts[1]}` : parts[0];
|
|
1264
|
+
let area = /\/dist\/(addon-[^/]+)\//.exec(normalized)?.[1];
|
|
1265
|
+
area && (owner = `${owner}/${area}`);
|
|
1266
|
+
}
|
|
1267
|
+
return { file, owner };
|
|
1268
|
+
}
|
|
1269
|
+
async function bundleManagerEntries(config) {
|
|
1270
|
+
let { rolldown } = await import("rolldown"), base = config.entryPoints.length ? commonDirectory(config.entryPoints) : config.outdir, outputFiles = await Promise.all(
|
|
1271
|
+
config.entryPoints.map(async (entry) => {
|
|
1272
|
+
try {
|
|
1273
|
+
return await bundleManagerEntry(entry);
|
|
1274
|
+
} catch (error) {
|
|
1275
|
+
let { file, owner } = await describeManagerEntry(entry);
|
|
1276
|
+
throw new Error(
|
|
1277
|
+
`Could not build the manager entry ${file}${owner ? ` (from ${owner})` : ""}.
|
|
1278
|
+
${error instanceof Error ? error.message : String(error)}`,
|
|
1279
|
+
{ cause: error }
|
|
1280
|
+
);
|
|
1281
|
+
}
|
|
1282
|
+
})
|
|
1283
|
+
);
|
|
1284
|
+
async function bundleManagerEntry(entry) {
|
|
1285
|
+
let bundle = await rolldown({
|
|
1286
|
+
input: entry,
|
|
1287
|
+
platform: "browser",
|
|
1288
|
+
tsconfig: config.tsconfig,
|
|
1289
|
+
logLevel: "warn",
|
|
1290
|
+
resolve: {
|
|
1291
|
+
conditionNames: ["browser", "module", "default"],
|
|
1292
|
+
extensions: [".ts", ".tsx", ".mjs", ".js", ".jsx"]
|
|
1293
|
+
},
|
|
1294
|
+
moduleTypes: {
|
|
1295
|
+
".js": "jsx",
|
|
1296
|
+
...Object.fromEntries(MEDIA_EXTENSIONS.map((extension) => [extension, "dataurl"]))
|
|
1297
|
+
},
|
|
1298
|
+
transform: { target: BROWSER_TARGETS, jsx: "react", define: config.define },
|
|
1299
|
+
plugins: [globalExternals(), injectCss()],
|
|
1300
|
+
// A manager entry runs for its side effects. Keep every module, even in a package that
|
|
1301
|
+
// says it has no side effects.
|
|
1302
|
+
treeshake: { moduleSideEffects: () => !0, annotations: !1 }
|
|
1303
|
+
});
|
|
1304
|
+
try {
|
|
1305
|
+
let { output } = await bundle.generate({
|
|
1306
|
+
format: "esm",
|
|
1307
|
+
codeSplitting: !1,
|
|
1308
|
+
minify: config.minify ? !0 : "dce-only",
|
|
1309
|
+
banner: "try{",
|
|
1310
|
+
footer: '}catch(e){ console.error("[Forkbook] One of your manager-entries failed: " + import.meta.url, e); }'
|
|
1311
|
+
});
|
|
1312
|
+
return { path: join(config.outdir, relative(base, entry)), contents: output[0].code };
|
|
1313
|
+
} finally {
|
|
1314
|
+
await bundle.close();
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
return { outputFiles };
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1258
1320
|
// src/builder-manager/utils/data.ts
|
|
1259
1321
|
import { basename } from "node:path";
|
|
1260
1322
|
import { getRefs } from "@aussieljk/forkbook/internal/common";
|
|
1261
1323
|
|
|
1262
1324
|
// src/builder-manager/utils/template.ts
|
|
1263
1325
|
var import_ejs = __toESM(require_ejs(), 1);
|
|
1264
|
-
import { readFile } from "node:fs/promises";
|
|
1265
|
-
import { join } from "pathe";
|
|
1266
|
-
var getTemplatePath = (template) =>
|
|
1326
|
+
import { readFile as readFile2 } from "node:fs/promises";
|
|
1327
|
+
import { join as join2 } from "pathe";
|
|
1328
|
+
var getTemplatePath = (template) => join2(resolvePackageDir("@aussieljk/forkbook"), "assets/server", template), readTemplate = async (template) => {
|
|
1267
1329
|
let path = getTemplatePath(template);
|
|
1268
|
-
return
|
|
1330
|
+
return readFile2(path, { encoding: "utf8" });
|
|
1269
1331
|
};
|
|
1270
1332
|
var customHeadHasFavicon = (head) => (head.match(/<link\b[^>]*>/gi) || []).some((tag) => {
|
|
1271
1333
|
let rel = tag.match(/\brel\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i);
|
|
@@ -1322,13 +1384,13 @@ var getData = async (options) => {
|
|
|
1322
1384
|
// src/builder-manager/utils/files.ts
|
|
1323
1385
|
import { existsSync } from "node:fs";
|
|
1324
1386
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
1325
|
-
import { dirname, join as
|
|
1387
|
+
import { dirname as dirname2, join as join3, normalize, relative as relative2 } from "node:path";
|
|
1326
1388
|
async function readOrderedFiles(addonsDir, outputFiles) {
|
|
1327
1389
|
let files = await Promise.all(
|
|
1328
1390
|
outputFiles?.map(async (file) => {
|
|
1329
1391
|
let { location, url } = sanitizePath(file, addonsDir);
|
|
1330
1392
|
if (!existsSync(location)) {
|
|
1331
|
-
let directory =
|
|
1393
|
+
let directory = dirname2(location);
|
|
1332
1394
|
await mkdir(directory, { recursive: !0 });
|
|
1333
1395
|
}
|
|
1334
1396
|
return await writeFile(location, file.contents), url;
|
|
@@ -1337,7 +1399,7 @@ async function readOrderedFiles(addonsDir, outputFiles) {
|
|
|
1337
1399
|
return { cssFiles: files.filter((file) => file.endsWith(".css")), jsFiles };
|
|
1338
1400
|
}
|
|
1339
1401
|
function sanitizePath(file, addonsDir) {
|
|
1340
|
-
let filePath =
|
|
1402
|
+
let filePath = relative2(addonsDir, file.path), location = normalize(join3(addonsDir, filePath)), url = `./fb-addons/${slash(filePath).split("/").map(encodeURIComponent).join("/")}`;
|
|
1341
1403
|
return { location, url };
|
|
1342
1404
|
}
|
|
1343
1405
|
|
|
@@ -1359,7 +1421,7 @@ var buildFrameworkGlobalsFromOptions = async (options) => {
|
|
|
1359
1421
|
// src/builder-manager/utils/managerEntries.ts
|
|
1360
1422
|
import { existsSync as existsSync2 } from "node:fs";
|
|
1361
1423
|
import { mkdir as mkdir2, writeFile as writeFile2 } from "node:fs/promises";
|
|
1362
|
-
import { dirname as
|
|
1424
|
+
import { dirname as dirname3, join as join4, parse, relative as relative3, sep } from "node:path";
|
|
1363
1425
|
import { resolvePathInStorybookCache } from "@aussieljk/forkbook/internal/common";
|
|
1364
1426
|
var sanitizeBase = (path) => path.replaceAll(".", "").replaceAll("@", "").replaceAll(sep, "-").replaceAll("/", "-").replaceAll(new RegExp(/^(-)+/g), ""), sanitizeFinal = (path) => {
|
|
1365
1427
|
let sections = path.split(/-?node_modules-?/);
|
|
@@ -1371,12 +1433,12 @@ async function wrapManagerEntries(entrypoints, uniqueId) {
|
|
|
1371
1433
|
let { name, dir } = parse(entry), cacheLocation = resolvePathInStorybookCache("fb-manager", uniqueId);
|
|
1372
1434
|
if (!cacheLocation)
|
|
1373
1435
|
throw new Error("Could not create/find cache directory");
|
|
1374
|
-
let base =
|
|
1436
|
+
let base = relative3(process.cwd(), dir), location = join4(
|
|
1375
1437
|
cacheLocation,
|
|
1376
|
-
sanitizeFinal(
|
|
1438
|
+
sanitizeFinal(join4(`${sanitizeBase(base)}-${i}`, `${sanitizeBase(name)}-bundle.js`))
|
|
1377
1439
|
);
|
|
1378
1440
|
if (!existsSync2(location)) {
|
|
1379
|
-
let directory =
|
|
1441
|
+
let directory = dirname3(location);
|
|
1380
1442
|
await mkdir2(directory, { recursive: !0 });
|
|
1381
1443
|
}
|
|
1382
1444
|
return await writeFile2(location, `import '${slash(entry).replaceAll(/'/g, "\\'")}';`), location;
|
|
@@ -1385,7 +1447,7 @@ async function wrapManagerEntries(entrypoints, uniqueId) {
|
|
|
1385
1447
|
}
|
|
1386
1448
|
|
|
1387
1449
|
// src/builder-manager/index.ts
|
|
1388
|
-
var CORE_DIR_ORIGIN =
|
|
1450
|
+
var CORE_DIR_ORIGIN = join5(resolvePackageDir("@aussieljk/forkbook"), "dist/manager"), isRootPath = /^\/($|\?)/, compilation, asyncIterator, getConfig = async (options) => {
|
|
1389
1451
|
let [managerEntriesFromPresets, envs] = await Promise.all([
|
|
1390
1452
|
options.presets.apply("managerEntries", []),
|
|
1391
1453
|
options.presets.apply("env")
|
|
@@ -1400,56 +1462,9 @@ var CORE_DIR_ORIGIN = join4(resolvePackageDir("@aussieljk/forkbook"), "dist/mana
|
|
|
1400
1462
|
let entryPoints = configDirManagerEntry ? [...managerEntriesFromPresets, configDirManagerEntry] : managerEntriesFromPresets;
|
|
1401
1463
|
return {
|
|
1402
1464
|
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",
|
|
1465
|
+
outdir: join5(options.outputDir || "./", "fb-addons"),
|
|
1444
1466
|
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
|
-
},
|
|
1467
|
+
minify: !1,
|
|
1453
1468
|
define: {
|
|
1454
1469
|
"process.env": JSON.stringify(envs),
|
|
1455
1470
|
...stringifyProcessEnvs(envs),
|
|
@@ -1458,10 +1473,7 @@ var CORE_DIR_ORIGIN = join4(resolvePackageDir("@aussieljk/forkbook"), "dist/mana
|
|
|
1458
1473
|
}
|
|
1459
1474
|
};
|
|
1460
1475
|
}, executor = {
|
|
1461
|
-
get: async () =>
|
|
1462
|
-
let { build: build2 } = await import("esbuild");
|
|
1463
|
-
return build2;
|
|
1464
|
-
}
|
|
1476
|
+
get: async () => bundleManagerEntries
|
|
1465
1477
|
}, starter = async function* ({
|
|
1466
1478
|
startTime,
|
|
1467
1479
|
options,
|
|
@@ -1500,12 +1512,7 @@ var CORE_DIR_ORIGIN = join4(resolvePackageDir("@aussieljk/forkbook"), "dist/mana
|
|
|
1500
1512
|
immutable: !0
|
|
1501
1513
|
})
|
|
1502
1514
|
);
|
|
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);
|
|
1515
|
+
let { cssFiles, jsFiles } = await readOrderedFiles(addonsDir, compilation?.outputFiles), globals = await buildFrameworkGlobalsFromOptions(options);
|
|
1509
1516
|
yield;
|
|
1510
1517
|
let html = await renderHTML(
|
|
1511
1518
|
template,
|
|
@@ -1551,7 +1558,7 @@ var CORE_DIR_ORIGIN = join4(resolvePackageDir("@aussieljk/forkbook"), "dist/mana
|
|
|
1551
1558
|
tagsOptions
|
|
1552
1559
|
} = await getData(options);
|
|
1553
1560
|
yield;
|
|
1554
|
-
let addonsDir = config.outdir, coreDirTarget =
|
|
1561
|
+
let addonsDir = config.outdir, coreDirTarget = join5(options.outputDir, "fb-manager");
|
|
1555
1562
|
compilation = await instance({
|
|
1556
1563
|
...config,
|
|
1557
1564
|
minify: !0
|
|
@@ -1579,7 +1586,7 @@ var CORE_DIR_ORIGIN = join4(resolvePackageDir("@aussieljk/forkbook"), "dist/mana
|
|
|
1579
1586
|
options,
|
|
1580
1587
|
globals
|
|
1581
1588
|
);
|
|
1582
|
-
return await Promise.all([writeFile3(
|
|
1589
|
+
return await Promise.all([writeFile3(join5(options.outputDir, "index.html"), html), managerFiles]), logger.trace({ message: "Manager built", time: process.hrtime(startTime) }), {
|
|
1583
1590
|
toJson: () => ({})
|
|
1584
1591
|
};
|
|
1585
1592
|
}, bail = async () => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
Tag
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JQICISDD.js";
|
|
15
15
|
import {
|
|
16
16
|
jsTsSourceExtensions
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3ZCGT6VF.js";
|
|
18
18
|
|
|
19
19
|
// src/common/utils/module-resolver.ts
|
|
20
20
|
import { ResolverFactory } from "oxc-resolver";
|
|
@@ -1342,8 +1342,8 @@ import { readFileSync } from "node:fs";
|
|
|
1342
1342
|
// src/csf-tools/CsfFile.ts
|
|
1343
1343
|
import { readFile, writeFile } from "node:fs/promises";
|
|
1344
1344
|
import {
|
|
1345
|
-
BabelFileClass,
|
|
1346
1345
|
babelParse as babelParse2,
|
|
1346
|
+
createBabelFile,
|
|
1347
1347
|
generate as generate3,
|
|
1348
1348
|
recast,
|
|
1349
1349
|
types as t12,
|
|
@@ -2238,12 +2238,46 @@ var formatLocation = (node, fileName) => {
|
|
|
2238
2238
|
More info: https://forkbook.ljk.dev/docs/migration#string-literal-titles
|
|
2239
2239
|
`);
|
|
2240
2240
|
}
|
|
2241
|
+
/**
|
|
2242
|
+
* Gets the properties of the meta object. Spreads of object literals, or of identifiers that
|
|
2243
|
+
* refer to object literals, are expanded. Other spreads are returned in `unresolved`, with the
|
|
2244
|
+
* number of properties that come before them.
|
|
2245
|
+
*/
|
|
2246
|
+
_flattenMetaProperties(declaration, program, seen = /* @__PURE__ */ new Set()) {
|
|
2247
|
+
let properties = [], unresolved = [];
|
|
2248
|
+
for (let p of declaration.properties) {
|
|
2249
|
+
if (!t12.isSpreadElement(p)) {
|
|
2250
|
+
properties.push(p);
|
|
2251
|
+
continue;
|
|
2252
|
+
}
|
|
2253
|
+
let arg = unwrapExpression(p.argument);
|
|
2254
|
+
if (t12.isIdentifier(arg) && !seen.has(arg.name)) {
|
|
2255
|
+
seen.add(arg.name);
|
|
2256
|
+
let init = findVarInitialization(arg.name, program);
|
|
2257
|
+
arg = init ? unwrapExpression(init) : void 0;
|
|
2258
|
+
}
|
|
2259
|
+
if (t12.isObjectExpression(arg)) {
|
|
2260
|
+
let inner = this._flattenMetaProperties(arg, program, seen);
|
|
2261
|
+
inner.unresolved.forEach(
|
|
2262
|
+
(u) => unresolved.push({ index: properties.length + u.index, node: u.node })
|
|
2263
|
+
), properties.push(...inner.properties);
|
|
2264
|
+
} else
|
|
2265
|
+
unresolved.push({ index: properties.length, node: p });
|
|
2266
|
+
}
|
|
2267
|
+
return { properties, unresolved };
|
|
2268
|
+
}
|
|
2241
2269
|
_parseMeta(declaration, program) {
|
|
2242
2270
|
if (this._metaNode)
|
|
2243
2271
|
throw new MultipleMetaError("multiple meta objects", declaration, this._options.fileName);
|
|
2244
2272
|
this._metaNode = declaration;
|
|
2245
|
-
let meta = {};
|
|
2246
|
-
|
|
2273
|
+
let meta = {}, { properties, unresolved } = this._flattenMetaProperties(declaration, program);
|
|
2274
|
+
for (let { index, node } of unresolved)
|
|
2275
|
+
for (let field of ["title", "tags"])
|
|
2276
|
+
properties.slice(index).some((p) => t12.isIdentifier(p.key) && p.key.name === field) || logger.warn(dedent`
|
|
2277
|
+
CSF: cannot read the "${field}" of the default export statically, because it can come from a dynamic value ${formatLocation(node, this._options.fileName)}.
|
|
2278
|
+
The indexer ignores a "${field}" that comes from this value. Set "${field}" directly in the meta object.
|
|
2279
|
+
`);
|
|
2280
|
+
properties.forEach((p) => {
|
|
2247
2281
|
if (t12.isIdentifier(p.key)) {
|
|
2248
2282
|
let value = t12.isObjectMethod(p) ? p : p.value;
|
|
2249
2283
|
if (this._metaAnnotations[p.key.name] = value, p.key.name === "title")
|
|
@@ -2581,10 +2615,7 @@ var formatLocation = (node, fileName) => {
|
|
|
2581
2615
|
code,
|
|
2582
2616
|
filename = "",
|
|
2583
2617
|
ast
|
|
2584
|
-
}) =>
|
|
2585
|
-
{ filename, highlightCode: !1 },
|
|
2586
|
-
{ code, ast: ast ?? babelParse2(code) }
|
|
2587
|
-
), loadCsf = (code, options) => {
|
|
2618
|
+
}) => createBabelFile({ code, ast: ast ?? babelParse2(code), filename }), loadCsf = (code, options) => {
|
|
2588
2619
|
let ast = babelParse2(code), file = babelParseFile({ code, filename: options.fileName, ast });
|
|
2589
2620
|
return new CsfFile(ast, options, file);
|
|
2590
2621
|
}, formatCsf = (csf, options = { sourceMaps: !1 }, code) => {
|