@aussieljk/forkbook 0.0.1-4 → 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/LICENSE +22 -0
- package/README.md +35 -53
- package/dist/_browser-chunks/{Color-KRDPNBZS.js → Color-2BMQTRYG.js} +3 -3
- 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-LXQPPHMD.js → chunk-6IKB2UHQ.js} +27 -27
- 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-BZGX2THJ.js → chunk-QAHDGPZ7.js} +3 -3
- 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-CYMSKF3A.js → attached-runtime-EBWIOQZN.js} +29 -29
- package/dist/_node-chunks/{builder-manager-RMLSIO45.js → builder-manager-ETBLZ2RH.js} +288 -349
- package/dist/_node-chunks/{chunk-IR34HUSL.js → chunk-252Y5WHZ.js} +7 -7
- package/dist/_node-chunks/{chunk-VPOJCHKM.js → chunk-25PXULSJ.js} +14 -14
- package/dist/_node-chunks/chunk-2DBJWMYE.js +495 -0
- package/dist/_node-chunks/{chunk-KXDJ77EW.js → chunk-3UWWRDA5.js} +7 -7
- package/dist/_node-chunks/{chunk-DVLFCSDG.js → chunk-4KCQYJT6.js} +7 -7
- package/dist/_node-chunks/{chunk-X3E55W5S.js → chunk-4MJIPOJ5.js} +6 -6
- package/dist/_node-chunks/{chunk-5TPSYG4L.js → chunk-4WLIN3VZ.js} +8 -8
- package/dist/_node-chunks/{chunk-WBTLBIED.js → chunk-4XNPO23I.js} +6 -6
- package/dist/_node-chunks/{chunk-NHIRHARE.js → chunk-5T635FTI.js} +10 -10
- package/dist/_node-chunks/{chunk-YU2WFBFL.js → chunk-5Z6MT4RI.js} +8 -8
- package/dist/_node-chunks/{chunk-2QWFS23O.js → chunk-644CUCK5.js} +7 -7
- package/dist/_node-chunks/{chunk-7XCJ7RAJ.js → chunk-7E27CGRU.js} +7 -7
- package/dist/_node-chunks/{chunk-WS367FSJ.js → chunk-A35J7YYA.js} +6 -6
- package/dist/_node-chunks/{chunk-ILFIERUB.js → chunk-ALHPFKVB.js} +8 -8
- package/dist/_node-chunks/{chunk-SQMCVWOR.js → chunk-ANDQVXYX.js} +8 -8
- package/dist/_node-chunks/{chunk-HUFAUSEX.js → chunk-AS4SFRCZ.js} +6 -6
- package/dist/_node-chunks/{chunk-XBXGLD3K.js → chunk-BLUMKQQB.js} +6 -6
- package/dist/_node-chunks/{chunk-QU5ANYM7.js → chunk-C5JG7EKF.js} +6 -6
- package/dist/_node-chunks/{chunk-P6QAFJ5M.js → chunk-CBUQY454.js} +7 -15
- package/dist/_node-chunks/{chunk-4LPAWP5S.js → chunk-CF7KLGUW.js} +22 -20
- package/dist/_node-chunks/{chunk-MOITZTEA.js → chunk-CGVPHZVD.js} +8 -8
- package/dist/_node-chunks/{chunk-2NWHHNNI.js → chunk-DABFUVLR.js} +6 -6
- package/dist/_node-chunks/{chunk-XH6TDVML.js → chunk-DCNZ6SFN.js} +6 -6
- package/dist/_node-chunks/{chunk-F2N6BJRH.js → chunk-DDGW2EBW.js} +29843 -51588
- package/dist/_node-chunks/{chunk-OS5LQEC6.js → chunk-DRLBJM6X.js} +7 -7
- package/dist/_node-chunks/{chunk-GEMKJCEE.js → chunk-E3O7VAPG.js} +10 -10
- package/dist/_node-chunks/{chunk-4GD7MMLJ.js → chunk-FIFCNBTL.js} +7 -7
- package/dist/_node-chunks/{chunk-UMZSNFWM.js → chunk-FQWTUSYB.js} +6 -6
- package/dist/_node-chunks/{chunk-JEEXR245.js → chunk-G6YNW4FK.js} +7 -7
- package/dist/_node-chunks/{chunk-HP5UY6OY.js → chunk-GDFQQO5U.js} +6 -6
- package/dist/_node-chunks/{chunk-653BSJIX.js → chunk-GGTXOH3W.js} +6 -6
- package/dist/_node-chunks/{chunk-PDCSUZ4L.js → chunk-GIOREKIG.js} +7 -7
- package/dist/_node-chunks/{chunk-V2JDVM46.js → chunk-GOFK4EKU.js} +6 -6
- package/dist/_node-chunks/{chunk-INEYTOWF.js → chunk-GQ3HJNIH.js} +10 -13
- package/dist/_node-chunks/{chunk-2APY2YSW.js → chunk-GRTI5653.js} +7 -7
- package/dist/_node-chunks/{chunk-KN2S7JF2.js → chunk-HKL3VOYX.js} +6 -6
- package/dist/_node-chunks/{chunk-A2UMIN5B.js → chunk-HUPRQZ3I.js} +7 -7
- package/dist/_node-chunks/{chunk-7JA2DMCJ.js → chunk-HWRHYM7Z.js} +6 -6
- package/dist/_node-chunks/{chunk-SBQT3LMM.js → chunk-I7HRDCNY.js} +10 -10
- package/dist/_node-chunks/{chunk-2IJCISIB.js → chunk-IFPMZ247.js} +6 -6
- package/dist/_node-chunks/{chunk-DIUBMAMV.js → chunk-J6M5CRYZ.js} +8 -8
- package/dist/_node-chunks/{chunk-IBO346NQ.js → chunk-JPXJI6QR.js} +60 -134
- package/dist/_node-chunks/{chunk-STRSG3GT.js → chunk-JS2J2SKX.js} +6 -6
- package/dist/_node-chunks/{chunk-FNGLVURC.js → chunk-JZWF3XLN.js} +6 -6
- package/dist/_node-chunks/{chunk-KINEBDMM.js → chunk-KF3FT3NI.js} +9 -9
- package/dist/_node-chunks/chunk-KWPWQA7G.js +2609 -0
- package/dist/_node-chunks/{chunk-OIIORQX5.js → chunk-L4JGWK4K.js} +6 -6
- package/dist/_node-chunks/{chunk-MRZD5SBV.js → chunk-LFIFBDMS.js} +6 -6
- package/dist/_node-chunks/{chunk-UAALLQAQ.js → chunk-LWKLJYYQ.js} +6 -6
- package/dist/_node-chunks/{chunk-AFKKN27O.js → chunk-LXVSVTQ3.js} +6 -6
- package/dist/_node-chunks/chunk-MDW3GSU3.js +69 -0
- package/dist/_node-chunks/{chunk-UXW4I2CN.js → chunk-MFN2XBPL.js} +7 -7
- package/dist/_node-chunks/{chunk-ESZVID7Q.js → chunk-MQFB44YS.js} +7 -7
- package/dist/_node-chunks/{chunk-3XDIBUGD.js → chunk-MZ2GSR3G.js} +23 -51
- package/dist/_node-chunks/{chunk-POXTROIX.js → chunk-N7HEOGTM.js} +9 -6
- package/dist/_node-chunks/{chunk-UIFLXDUL.js → chunk-NUAQC3XP.js} +16 -13
- package/dist/_node-chunks/{chunk-BOUA7OB7.js → chunk-NX6CSWF3.js} +8 -8
- package/dist/_node-chunks/{chunk-B3LK7C7B.js → chunk-NZ7EQWYA.js} +9 -9
- package/dist/_node-chunks/{chunk-U5QMVW3H.js → chunk-OLGIDCVD.js} +650 -9
- package/dist/_node-chunks/{chunk-NAYTBC72.js → chunk-P65JVLO3.js} +8 -8
- package/dist/_node-chunks/{chunk-M2UZP5GC.js → chunk-PAN35AYX.js} +7 -7
- package/dist/_node-chunks/{chunk-GZBUCUF7.js → chunk-PLWLCVP2.js} +6 -6
- package/dist/_node-chunks/{chunk-A4YELYR3.js → chunk-Q4BEWGMK.js} +6 -6
- package/dist/_node-chunks/{chunk-YYIZ2PC4.js → chunk-QNUXGVZZ.js} +6 -6
- package/dist/_node-chunks/{chunk-WHZWLJGO.js → chunk-R5DWO2S2.js} +31 -30
- package/dist/_node-chunks/{chunk-RMLENEZC.js → chunk-SLZV7PTQ.js} +8 -8
- package/dist/_node-chunks/{chunk-B5VFV3ZW.js → chunk-TIRP5JQM.js} +11 -10
- package/dist/_node-chunks/{chunk-TLVEPWBN.js → chunk-TMXWDY2O.js} +6 -6
- package/dist/_node-chunks/{chunk-LGUMVMBA.js → chunk-TN3ULFFZ.js} +6 -6
- package/dist/_node-chunks/{chunk-5ZLOPVTG.js → chunk-TPSJW4CQ.js} +6 -6
- package/dist/_node-chunks/{chunk-RNF3Z4ZJ.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-6Y6RBJD7.js → chunk-VPU4E7DI.js} +25 -8
- package/dist/_node-chunks/{chunk-FJDJE7XC.js → chunk-WIQ6Y3NX.js} +6 -6
- package/dist/_node-chunks/{chunk-DD2S4BFV.js → chunk-WRG3CFGS.js} +6 -6
- package/dist/_node-chunks/{chunk-FAZ3MUOI.js → chunk-X3RTVNRN.js} +7 -7
- package/dist/_node-chunks/chunk-XOGU5PWI.js +347 -0
- package/dist/_node-chunks/{chunk-AU3SF2WM.js → chunk-XWGMQW2H.js} +6 -6
- package/dist/_node-chunks/chunk-YCXTTQ7K.js +620 -0
- package/dist/_node-chunks/{chunk-KZBZYQTZ.js → chunk-YHH57LHY.js} +9 -9
- package/dist/_node-chunks/{chunk-J3M3X7GO.js → chunk-YMZ2SGFK.js} +6 -6
- package/dist/_node-chunks/{chunk-AY6B2C46.js → chunk-YNENOZRY.js} +7 -7
- package/dist/_node-chunks/{chunk-CGWACHNW.js → chunk-YPGVYNJB.js} +6 -6
- package/dist/_node-chunks/{chunk-OQ4NCWE4.js → chunk-YQDBSAXW.js} +7 -7
- package/dist/_node-chunks/{chunk-YGXJOSRU.js → chunk-Z4NZLBOX.js} +7 -7
- package/dist/_node-chunks/{chunk-74IEHSIR.js → chunk-ZC3ZZKMS.js} +8 -8
- package/dist/_node-chunks/{chunk-QDLR4JF5.js → chunk-ZCITDAV4.js} +34 -949
- package/dist/_node-chunks/chunk-ZNSGFYAT.js +25 -0
- package/dist/_node-chunks/{chunk-XD5SYXAU.js → chunk-ZSH6BUCW.js} +25 -25
- package/dist/_node-chunks/{chunk-X2KWNNFB.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-KTI3DH6X.js → local-runtime-BUTEKJYV.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-2E3SW5TL.js → mdx-plugin-7WXQIHPV.js} +2263 -130
- package/dist/_node-chunks/{monorepo-MWAMFHKY.js → monorepo-NCD3X2BR.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-MGORG6W7.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-QTQOY7E7.js → pattern-copy-play-3QJANDJD.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-LEUHOKX6.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-T7DZNKMB.js → rehype-external-links-4LR5BDR2.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-CSHI5WYI.js → rehype-slug-PWFRGOEV.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-RAZD36YR.js → relaxed-limits-VNNWUW7X.js} +11 -11
- package/dist/_node-chunks/{run-S6XSLPEB.js → run-RUAAWEQT.js} +13 -13
- package/dist/_node-chunks/{run-KJ3Z2TTY.js → run-YK6ARCWS.js} +17 -17
- package/dist/_node-chunks/session-id-JJYVZAKO.js +23 -0
- package/dist/_node-chunks/{setup-35J66GFB.js → setup-4QKCICV6.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-Z7OCRDKD.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 +24 -17
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +2 -1
- package/dist/addon-docs/blocks.js +46 -25
- 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 +17 -45
- package/dist/addon-ondevice-actions/index.js +5 -1
- package/dist/addon-ondevice-actions/register.js +5 -1
- package/dist/addon-pseudo-states/manager.js +2 -2
- package/dist/addon-pseudo-states/preview.d.ts +1 -1
- package/dist/addon-themes/manager.js +1 -1
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +8 -8
- 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-DF6btpT3.d.ts → chunk-BGhyFTJO.d.ts} +2 -2
- package/dist/chunk-CV4-Z2pn.d.ts +30 -0
- package/dist/{chunk-DvufcbCc.d.ts → chunk-CVY28Ngy.d.ts} +1 -1
- package/dist/{chunk-B2t1tGRh.d.ts → chunk-CYuvV2sR.d.ts} +11 -13
- package/dist/{chunk-BYnH2sbb.d.ts → chunk-ClI-HEh5.d.ts} +1 -1
- package/dist/{chunk-DIz17UEJ.d.ts → chunk-CzmZhVrn.d.ts} +35 -1
- package/dist/{chunk-B2xylxt5.d.ts → chunk-DROZ9oel.d.ts} +7 -271
- 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 +2518 -8365
- package/dist/core-events/index.d.ts +4 -3
- 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 +96 -894
- 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 +2 -2
- 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-dKGpUUSb.js → globals-runtime-B-IeQLQu.js} +285 -61
- package/dist/manager/_manager-chunks/{globals-runtime-DuLFjsF4.js → globals-runtime-B5-0Ccbv.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-8HkdnU2F.js → globals-runtime-B71TiXST.js} +93 -2146
- package/dist/manager/_manager-chunks/globals-runtime-BMCaBukU.js +413 -0
- package/dist/manager/_manager-chunks/globals-runtime-BUP5e_t9.js +1396 -0
- package/dist/manager/_manager-chunks/globals-runtime-C7mqoHpE.js +2093 -0
- package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
- package/dist/manager/_manager-chunks/{globals-runtime-eLPTIfX-.js → globals-runtime-CYNosEiD.js} +1 -2
- package/dist/manager/_manager-chunks/globals-runtime-C_evJrEn.js +1960 -0
- package/dist/manager/_manager-chunks/{globals-runtime-C02fvgcd.js → globals-runtime-CdgVeAbk.js} +408 -377
- package/dist/manager/_manager-chunks/{globals-runtime-BmphMP6z.js → globals-runtime-Cqn8KdSZ.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-ZHrQFa3-.js → globals-runtime-CrIF09P8.js} +1246 -539
- package/dist/manager/_manager-chunks/{globals-runtime-BvM-NY2g.js → globals-runtime-Ct1kY4wb.js} +638 -1731
- package/dist/manager/_manager-chunks/globals-runtime-CvyFEPIY.js +5282 -0
- package/dist/manager/_manager-chunks/{globals-runtime-FC201B7s.js → globals-runtime-DMBjo1QS.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-C9P2ZbMM.js → globals-runtime-DUK6bGcb.js} +52 -25
- package/dist/manager/_manager-chunks/globals-runtime-DedfO-DP.js +3414 -0
- package/dist/manager/_manager-chunks/{globals-runtime-q5R9dawi.js → globals-runtime-DqhIYwLp.js} +165 -152
- package/dist/manager/_manager-chunks/globals-runtime-XSxCU7PR.js +41 -0
- package/dist/manager/_manager-chunks/runtime-BR5z0WoJ.js +456 -0
- package/dist/manager/_manager-chunks/{runtime-DdCaBowH.js → runtime-BgYvp1WN.js} +15 -7
- package/dist/manager/_manager-chunks/{runtime-BGvLm94o.js → runtime-CHI-LHF1.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-BdLdsHca.js → runtime-CUymj6EY.js} +280 -288
- 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-B9QzcYO3.js → runtime-D4ZOOIV0.js} +5 -531
- package/dist/manager/_manager-chunks/{runtime-50_aob4S.js → runtime-DER98nV0.js} +3 -19
- package/dist/manager/_manager-chunks/{runtime-CE2sHVqs.js → runtime-DrTLBe7a.js} +39 -40
- package/dist/manager/_manager-chunks/runtime-MAf7Wpk5.js +692 -0
- package/dist/manager/_manager-chunks/{runtime-CKP1i0--.js → runtime-cVFIMcca.js} +1 -1
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/globals.d.ts +1 -1
- package/dist/manager/globals.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/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 +17 -45
- package/dist/_browser-chunks/WithTooltip-523JD6VH.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-7XCEKQGV.js +0 -18
- package/dist/_node-chunks/chunk-EGS2SAD2.js +0 -5414
- package/dist/_node-chunks/chunk-GKTCJPLL.js +0 -36
- package/dist/_node-chunks/chunk-HENM5ZK3.js +0 -1877
- package/dist/_node-chunks/chunk-HQM4ISVU.js +0 -11
- package/dist/_node-chunks/chunk-K3I3G4VL.js +0 -4731
- package/dist/_node-chunks/chunk-MZMPFII2.js +0 -29
- package/dist/_node-chunks/chunk-NYAWUR6L.js +0 -3823
- package/dist/_node-chunks/chunk-NYRUWAL3.js +0 -23
- package/dist/_node-chunks/chunk-SSZ5REKS.js +0 -3008
- package/dist/_node-chunks/chunk-WEW23EEE.js +0 -662
- package/dist/_node-chunks/chunk-XWQEWRFD.js +0 -51
- package/dist/_node-chunks/dist-CNA633FI.js +0 -16
- package/dist/_node-chunks/globby-HRQV5N3V.js +0 -2884
- package/dist/_node-chunks/jiti-WE7NHS2Y.js +0 -3848
- package/dist/_node-chunks/lib-7MVA6CTW.js +0 -366
- package/dist/_node-chunks/optimized-tests-IAX6YURR.js +0 -22
- package/dist/_node-chunks/postinstallAddon-ROH2TBJX.js +0 -20
- package/dist/_node-chunks/session-id-GM226DGP.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-BIKBO23x.js +0 -3389
- package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +0 -9766
- package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +0 -5357
- package/dist/manager/_manager-chunks/runtime-89Cb0A8U.js +0 -998
- package/dist/manager/_manager-chunks/runtime-wL4UO7YO.js +0 -452
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
- package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
|
@@ -1,21 +1,21 @@
|
|
|
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
|
require_dist
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FIFCNBTL.js";
|
|
15
15
|
import {
|
|
16
16
|
cache,
|
|
17
17
|
up as up3
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GRTI5653.js";
|
|
19
19
|
import {
|
|
20
20
|
FORKBOOK_PACKAGE_PATTERNS,
|
|
21
21
|
FORKBOOK_RERUN_INSTRUCTION,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
validateConfigurationFiles,
|
|
42
42
|
versions_default,
|
|
43
43
|
withForkbookFramework
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-CF7KLGUW.js";
|
|
45
45
|
import {
|
|
46
46
|
createModuleResolver,
|
|
47
47
|
isSelfContained,
|
|
@@ -49,20 +49,17 @@ import {
|
|
|
49
49
|
resolveReferencedValue,
|
|
50
50
|
sourceOf,
|
|
51
51
|
unwrapExpression
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import {
|
|
54
|
-
stripJsonComments
|
|
55
|
-
} from "./chunk-XWQEWRFD.js";
|
|
52
|
+
} from "./chunk-GQ3HJNIH.js";
|
|
56
53
|
import {
|
|
57
54
|
logger
|
|
58
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-KWPWQA7G.js";
|
|
59
56
|
import {
|
|
60
57
|
STORY_FILE_TEST_REGEXP,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
exec,
|
|
59
|
+
execNode,
|
|
60
|
+
execSync,
|
|
64
61
|
getStoryImportPathFromEntry
|
|
65
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-2DBJWMYE.js";
|
|
66
63
|
import {
|
|
67
64
|
BUN_LOCKFILE,
|
|
68
65
|
BUN_LOCKFILE_BINARY,
|
|
@@ -70,25 +67,24 @@ import {
|
|
|
70
67
|
PNPM_LOCKFILE,
|
|
71
68
|
YARN_LOCKFILE,
|
|
72
69
|
getProjectRoot,
|
|
73
|
-
normalizeStoryPath
|
|
74
|
-
|
|
75
|
-
} from "./chunk-QDLR4JF5.js";
|
|
70
|
+
normalizeStoryPath
|
|
71
|
+
} from "./chunk-XOGU5PWI.js";
|
|
76
72
|
import {
|
|
77
73
|
any,
|
|
78
74
|
from,
|
|
79
75
|
up,
|
|
80
76
|
up2
|
|
81
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-BLUMKQQB.js";
|
|
82
78
|
import {
|
|
83
79
|
importModule,
|
|
84
80
|
resolveModulePath,
|
|
85
81
|
resolvePackageDir,
|
|
86
82
|
safeResolveModule
|
|
87
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-DRLBJM6X.js";
|
|
88
84
|
import {
|
|
89
85
|
jsModuleExtensions,
|
|
90
86
|
jsTsSourceExtensions
|
|
91
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-TPSJW4CQ.js";
|
|
92
88
|
import {
|
|
93
89
|
ExecaCommandFailedError,
|
|
94
90
|
PackageInstallDependencyConflictError,
|
|
@@ -99,19 +95,22 @@ import {
|
|
|
99
95
|
PnpmIgnoredBuildsError,
|
|
100
96
|
PnpmNoTtyModulesDirError,
|
|
101
97
|
StorybookError
|
|
102
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-NX6CSWF3.js";
|
|
103
99
|
import {
|
|
104
100
|
require_picocolors
|
|
105
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-MQFB44YS.js";
|
|
106
102
|
import {
|
|
107
103
|
slash
|
|
108
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-AS4SFRCZ.js";
|
|
109
105
|
import {
|
|
110
106
|
globSync
|
|
111
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-YCXTTQ7K.js";
|
|
108
|
+
import {
|
|
109
|
+
require_picomatch
|
|
110
|
+
} from "./chunk-ZCITDAV4.js";
|
|
112
111
|
import {
|
|
113
112
|
__toESM
|
|
114
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-A35J7YYA.js";
|
|
115
114
|
|
|
116
115
|
// src/common/presets.ts
|
|
117
116
|
import { logger as logger2 } from "@aussieljk/forkbook/internal/node-logger";
|
|
@@ -432,77 +431,9 @@ var cache2 = createFileSystemCache({
|
|
|
432
431
|
import { createWriteStream, mkdirSync as mkdirSync2 } from "node:fs";
|
|
433
432
|
import { copyFile, readFile as readFile2, realpath, rm as rm2, writeFile as writeFile2 } from "node:fs/promises";
|
|
434
433
|
import os from "node:os";
|
|
434
|
+
import { randomUUID } from "node:crypto";
|
|
435
435
|
import { join as join4 } from "node:path";
|
|
436
436
|
|
|
437
|
-
// ../../node_modules/crypto-random-string/index.js
|
|
438
|
-
import { promisify } from "util";
|
|
439
|
-
import crypto from "crypto";
|
|
440
|
-
var randomBytesAsync = promisify(crypto.randomBytes), urlSafeCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~".split(""), numericCharacters = "0123456789".split(""), distinguishableCharacters = "CDEHKMPRTUWXY012458".split(""), asciiPrintableCharacters = "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~".split(""), alphanumericCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""), generateForCustomCharacters = (length, characters) => {
|
|
441
|
-
let characterCount = characters.length, maxValidSelector = Math.floor(65536 / characterCount) * characterCount - 1, entropyLength = 2 * Math.ceil(1.1 * length), string = "", stringLength = 0;
|
|
442
|
-
for (; stringLength < length; ) {
|
|
443
|
-
let entropy = crypto.randomBytes(entropyLength), entropyPosition = 0;
|
|
444
|
-
for (; entropyPosition < entropyLength && stringLength < length; ) {
|
|
445
|
-
let entropyValue = entropy.readUInt16LE(entropyPosition);
|
|
446
|
-
entropyPosition += 2, !(entropyValue > maxValidSelector) && (string += characters[entropyValue % characterCount], stringLength++);
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
return string;
|
|
450
|
-
}, generateForCustomCharactersAsync = async (length, characters) => {
|
|
451
|
-
let characterCount = characters.length, maxValidSelector = Math.floor(65536 / characterCount) * characterCount - 1, entropyLength = 2 * Math.ceil(1.1 * length), string = "", stringLength = 0;
|
|
452
|
-
for (; stringLength < length; ) {
|
|
453
|
-
let entropy = await randomBytesAsync(entropyLength), entropyPosition = 0;
|
|
454
|
-
for (; entropyPosition < entropyLength && stringLength < length; ) {
|
|
455
|
-
let entropyValue = entropy.readUInt16LE(entropyPosition);
|
|
456
|
-
entropyPosition += 2, !(entropyValue > maxValidSelector) && (string += characters[entropyValue % characterCount], stringLength++);
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
return string;
|
|
460
|
-
}, generateRandomBytes = (byteLength, type, length) => crypto.randomBytes(byteLength).toString(type).slice(0, length), generateRandomBytesAsync = async (byteLength, type, length) => (await randomBytesAsync(byteLength)).toString(type).slice(0, length), allowedTypes = /* @__PURE__ */ new Set([
|
|
461
|
-
void 0,
|
|
462
|
-
"hex",
|
|
463
|
-
"base64",
|
|
464
|
-
"url-safe",
|
|
465
|
-
"numeric",
|
|
466
|
-
"distinguishable",
|
|
467
|
-
"ascii-printable",
|
|
468
|
-
"alphanumeric"
|
|
469
|
-
]), createGenerator = (generateForCustomCharacters2, generateRandomBytes2) => ({ length, type, characters }) => {
|
|
470
|
-
if (!(length >= 0 && Number.isFinite(length)))
|
|
471
|
-
throw new TypeError("Expected a `length` to be a non-negative finite number");
|
|
472
|
-
if (type !== void 0 && characters !== void 0)
|
|
473
|
-
throw new TypeError("Expected either `type` or `characters`");
|
|
474
|
-
if (characters !== void 0 && typeof characters != "string")
|
|
475
|
-
throw new TypeError("Expected `characters` to be string");
|
|
476
|
-
if (!allowedTypes.has(type))
|
|
477
|
-
throw new TypeError(`Unknown type: ${type}`);
|
|
478
|
-
if (type === void 0 && characters === void 0 && (type = "hex"), type === "hex" || type === void 0 && characters === void 0)
|
|
479
|
-
return generateRandomBytes2(Math.ceil(length * 0.5), "hex", length);
|
|
480
|
-
if (type === "base64")
|
|
481
|
-
return generateRandomBytes2(Math.ceil(length * 0.75), "base64", length);
|
|
482
|
-
if (type === "url-safe")
|
|
483
|
-
return generateForCustomCharacters2(length, urlSafeCharacters);
|
|
484
|
-
if (type === "numeric")
|
|
485
|
-
return generateForCustomCharacters2(length, numericCharacters);
|
|
486
|
-
if (type === "distinguishable")
|
|
487
|
-
return generateForCustomCharacters2(length, distinguishableCharacters);
|
|
488
|
-
if (type === "ascii-printable")
|
|
489
|
-
return generateForCustomCharacters2(length, asciiPrintableCharacters);
|
|
490
|
-
if (type === "alphanumeric")
|
|
491
|
-
return generateForCustomCharacters2(length, alphanumericCharacters);
|
|
492
|
-
if (characters.length === 0)
|
|
493
|
-
throw new TypeError("Expected `characters` string length to be greater than or equal to 1");
|
|
494
|
-
if (characters.length > 65536)
|
|
495
|
-
throw new TypeError("Expected `characters` string length to be less or equal to 65536");
|
|
496
|
-
return generateForCustomCharacters2(length, characters.split(""));
|
|
497
|
-
}, cryptoRandomString = createGenerator(generateForCustomCharacters, generateRandomBytes);
|
|
498
|
-
cryptoRandomString.async = createGenerator(generateForCustomCharactersAsync, generateRandomBytesAsync);
|
|
499
|
-
var crypto_random_string_default = cryptoRandomString;
|
|
500
|
-
|
|
501
|
-
// ../../node_modules/unique-string/index.js
|
|
502
|
-
function uniqueString() {
|
|
503
|
-
return crypto_random_string_default({ length: 32 });
|
|
504
|
-
}
|
|
505
|
-
|
|
506
437
|
// src/common/satellite-addons.ts
|
|
507
438
|
var satellite_addons_default = [
|
|
508
439
|
"@storybook/addon-coverage",
|
|
@@ -515,7 +446,7 @@ var satellite_addons_default = [
|
|
|
515
446
|
];
|
|
516
447
|
|
|
517
448
|
// src/common/utils/cli.ts
|
|
518
|
-
var tempDir = () => realpath(os.tmpdir()), getPath = async (prefix = "") => join4(await tempDir(), prefix +
|
|
449
|
+
var tempDir = () => realpath(os.tmpdir()), getPath = async (prefix = "") => join4(await tempDir(), prefix + randomUUID());
|
|
519
450
|
async function temporaryDirectory({ prefix = "" } = {}) {
|
|
520
451
|
let directory = await getPath(prefix);
|
|
521
452
|
return mkdirSync2(directory), directory;
|
|
@@ -1066,6 +997,7 @@ function getPreviewHeadTemplate(configDirPath, interpolations) {
|
|
|
1066
997
|
import { existsSync as existsSync2, readFileSync as readFileSync5, statSync } from "node:fs";
|
|
1067
998
|
import { basename as basename2, dirname as dirname5, extname, relative as relative2, resolve as resolve6 } from "node:path";
|
|
1068
999
|
var import_picomatch = __toESM(require_picomatch(), 1);
|
|
1000
|
+
import { parse as parseJsonc } from "jsonc-parser";
|
|
1069
1001
|
var TSCONFIG_CANDIDATES = ["tsconfig.json", "tsconfig.base.json", "tsconfig.app.json"], DEFAULT_EXCLUDE_PATTERNS = ["node_modules", "bower_components", "jspm_packages"], findTsconfigPath = (cwd) => {
|
|
1070
1002
|
let projectRoot = getProjectRoot();
|
|
1071
1003
|
for (let candidate of TSCONFIG_CANDIDATES) {
|
|
@@ -1225,8 +1157,8 @@ function compareTsconfigEntries(filePath, left, right) {
|
|
|
1225
1157
|
}
|
|
1226
1158
|
function readTsconfigConfig(configPath) {
|
|
1227
1159
|
try {
|
|
1228
|
-
let content = readFileSync5(configPath, "utf-8");
|
|
1229
|
-
return
|
|
1160
|
+
let content = readFileSync5(configPath, "utf-8"), errors = [], config = parseJsonc(content, errors, { allowTrailingComma: !0 });
|
|
1161
|
+
return errors.length ? void 0 : config;
|
|
1230
1162
|
} catch {
|
|
1231
1163
|
return;
|
|
1232
1164
|
}
|
|
@@ -1695,31 +1627,30 @@ function attachCategorizedExecaFailureHandler(execaProcess, context) {
|
|
|
1695
1627
|
throw categorize(error);
|
|
1696
1628
|
}).catch(typeof onRejected == "function" ? onRejected : void 0));
|
|
1697
1629
|
}
|
|
1698
|
-
function
|
|
1630
|
+
function getExecOptions({
|
|
1699
1631
|
stdio,
|
|
1700
1632
|
cwd,
|
|
1701
1633
|
env,
|
|
1702
1634
|
signal,
|
|
1703
|
-
|
|
1635
|
+
timeout,
|
|
1636
|
+
shell
|
|
1704
1637
|
}) {
|
|
1705
1638
|
return {
|
|
1706
1639
|
cwd,
|
|
1640
|
+
timeout,
|
|
1641
|
+
shell,
|
|
1707
1642
|
stdio: stdio ?? prompt.getPreferredStdio(),
|
|
1708
|
-
encoding: "utf8",
|
|
1709
|
-
cleanup: !0,
|
|
1710
1643
|
env: {
|
|
1711
1644
|
...COMMON_ENV_VARS,
|
|
1712
1645
|
...env
|
|
1713
1646
|
},
|
|
1714
|
-
|
|
1715
|
-
// Map signal to cancelSignal for execa v9
|
|
1716
|
-
...execaOptions
|
|
1647
|
+
signal
|
|
1717
1648
|
};
|
|
1718
1649
|
}
|
|
1719
1650
|
function executeCommand(options) {
|
|
1720
1651
|
let { command, args = [], ignoreError = !1 } = options;
|
|
1721
1652
|
logger9.debug(`Executing command: ${command} ${args.join(" ")}`);
|
|
1722
|
-
let commandVariations = resolveCommand(command), execaProcess = tryCommandVariations(commandVariations, args,
|
|
1653
|
+
let commandVariations = resolveCommand(command), execaProcess = tryCommandVariations(commandVariations, args, getExecOptions(options));
|
|
1723
1654
|
return ignoreError ? execaProcess.catch(() => {
|
|
1724
1655
|
}) : attachCategorizedExecaFailureHandler(execaProcess, { command, args }), execaProcess;
|
|
1725
1656
|
}
|
|
@@ -1727,11 +1658,7 @@ function executeCommandSync(options) {
|
|
|
1727
1658
|
let { command, args = [], ignoreError = !1 } = options;
|
|
1728
1659
|
try {
|
|
1729
1660
|
let commandVariations = resolveCommand(command);
|
|
1730
|
-
return tryCommandVariationsSync(
|
|
1731
|
-
commandVariations,
|
|
1732
|
-
args,
|
|
1733
|
-
getExecaOptions(options)
|
|
1734
|
-
);
|
|
1661
|
+
return tryCommandVariationsSync(commandVariations, args, getExecOptions(options));
|
|
1735
1662
|
} catch (err) {
|
|
1736
1663
|
if (!ignoreError)
|
|
1737
1664
|
throw categorizeExecaError(err, { command, args });
|
|
@@ -1743,9 +1670,7 @@ function executeNodeCommand({
|
|
|
1743
1670
|
args,
|
|
1744
1671
|
options
|
|
1745
1672
|
}) {
|
|
1746
|
-
return
|
|
1747
|
-
...options
|
|
1748
|
-
});
|
|
1673
|
+
return execNode(scriptPath, args, options);
|
|
1749
1674
|
}
|
|
1750
1675
|
function isCommandNotFoundError(error) {
|
|
1751
1676
|
return error ? (error.stderr || "").includes("is not recognized as an internal or external command") : !1;
|
|
@@ -1758,19 +1683,18 @@ function isExecutableInPath(command) {
|
|
|
1758
1683
|
}
|
|
1759
1684
|
function tryCommandVariations(commandVariations, args, options) {
|
|
1760
1685
|
if (commandVariations.length <= 1)
|
|
1761
|
-
return
|
|
1686
|
+
return exec(commandVariations[0], args, options);
|
|
1762
1687
|
for (let cmd of commandVariations.slice(0, -1))
|
|
1763
1688
|
if (isExecutableInPath(cmd))
|
|
1764
|
-
return logger9.debug(`Resolved command variation: ${cmd}`),
|
|
1765
|
-
return
|
|
1689
|
+
return logger9.debug(`Resolved command variation: ${cmd}`), exec(cmd, args, options);
|
|
1690
|
+
return exec(commandVariations[commandVariations.length - 1], args, options);
|
|
1766
1691
|
}
|
|
1767
1692
|
function tryCommandVariationsSync(commandVariations, args, options) {
|
|
1768
1693
|
let lastError;
|
|
1769
1694
|
for (let i = 0; i < commandVariations.length; i++) {
|
|
1770
1695
|
let cmd = commandVariations[i];
|
|
1771
1696
|
try {
|
|
1772
|
-
|
|
1773
|
-
return typeof commandResult.stdout == "string" ? commandResult.stdout : "";
|
|
1697
|
+
return execSync(cmd, args, options).stdout ?? "";
|
|
1774
1698
|
} catch (error) {
|
|
1775
1699
|
if (lastError = error, !shouldRetry(error, i === commandVariations.length - 1))
|
|
1776
1700
|
throw error;
|
|
@@ -1853,7 +1777,7 @@ var BUNProxy = class extends JsPackageManager {
|
|
|
1853
1777
|
});
|
|
1854
1778
|
}
|
|
1855
1779
|
async findInstallations(pattern, { depth = 99 } = {}) {
|
|
1856
|
-
let
|
|
1780
|
+
let exec2 = async ({ packageDepth }) => executeCommand({
|
|
1857
1781
|
command: "npm",
|
|
1858
1782
|
args: ["ls", "--json", `--depth=${packageDepth}`],
|
|
1859
1783
|
cwd: this.cwd,
|
|
@@ -1863,11 +1787,11 @@ var BUNProxy = class extends JsPackageManager {
|
|
|
1863
1787
|
}
|
|
1864
1788
|
});
|
|
1865
1789
|
try {
|
|
1866
|
-
let result = await await
|
|
1790
|
+
let result = await await exec2({ packageDepth: depth }), commandResult = typeof result.stdout == "string" ? result.stdout : "", parsedOutput = JSON.parse(commandResult);
|
|
1867
1791
|
return this.mapDependencies(parsedOutput, pattern);
|
|
1868
1792
|
} catch {
|
|
1869
1793
|
try {
|
|
1870
|
-
let result = await await
|
|
1794
|
+
let result = await await exec2({ packageDepth: 0 }), commandResult = typeof result.stdout == "string" ? result.stdout : "", parsedOutput = JSON.parse(commandResult);
|
|
1871
1795
|
return this.mapDependencies(parsedOutput, pattern);
|
|
1872
1796
|
} catch (err) {
|
|
1873
1797
|
logger10.debug(
|
|
@@ -2207,7 +2131,7 @@ var NPMProxy = class extends JsPackageManager {
|
|
|
2207
2131
|
});
|
|
2208
2132
|
}
|
|
2209
2133
|
async findInstallations(pattern, { depth = 99 } = {}) {
|
|
2210
|
-
let
|
|
2134
|
+
let exec2 = ({ packageDepth }) => executeCommand({
|
|
2211
2135
|
command: "npm",
|
|
2212
2136
|
args: ["ls", "--json", `--depth=${packageDepth}`],
|
|
2213
2137
|
env: {
|
|
@@ -2217,11 +2141,11 @@ var NPMProxy = class extends JsPackageManager {
|
|
|
2217
2141
|
stdio: ["pipe", "pipe", "ignore"]
|
|
2218
2142
|
});
|
|
2219
2143
|
try {
|
|
2220
|
-
let childProcess = await
|
|
2144
|
+
let childProcess = await exec2({ packageDepth: depth }), commandResult = typeof childProcess.stdout == "string" ? childProcess.stdout : "", parsedOutput = JSON.parse(commandResult);
|
|
2221
2145
|
return this.mapDependencies(parsedOutput, pattern);
|
|
2222
2146
|
} catch {
|
|
2223
2147
|
try {
|
|
2224
|
-
let childProcess = await
|
|
2148
|
+
let childProcess = await exec2({ packageDepth: 0 }), commandResult = typeof childProcess.stdout == "string" ? childProcess.stdout : "", parsedOutput = JSON.parse(commandResult);
|
|
2225
2149
|
return this.mapDependencies(parsedOutput, pattern);
|
|
2226
2150
|
} catch (e) {
|
|
2227
2151
|
logger11.debug(`Error finding installations for ${pattern.join(", ")}: ${String(e)}`);
|
|
@@ -2245,6 +2169,7 @@ var NPMProxy = class extends JsPackageManager {
|
|
|
2245
2169
|
{
|
|
2246
2170
|
cwd: dirname7(ancestorPath),
|
|
2247
2171
|
absolute: !0,
|
|
2172
|
+
expandDirectories: !1,
|
|
2248
2173
|
ignore: patterns.filter((pattern) => pattern.startsWith("!")).map((pattern) => `${pattern.slice(1)}/package.json`)
|
|
2249
2174
|
}
|
|
2250
2175
|
).includes(packageJsonPath);
|
|
@@ -3535,7 +3460,8 @@ async function scanAndTransformFiles({
|
|
|
3535
3460
|
initialValue: defaultGlob
|
|
3536
3461
|
});
|
|
3537
3462
|
logger14.log("Scanning for affected files...");
|
|
3538
|
-
let
|
|
3463
|
+
let { glob: globFiles } = await import("./dist-GGTGKXZA.js"), sourceFiles = await globFiles([glob], {
|
|
3464
|
+
expandDirectories: !1,
|
|
3539
3465
|
...commonGlobOptions(""),
|
|
3540
3466
|
ignore: ["**/node_modules/**"],
|
|
3541
3467
|
dot: !0,
|
|
@@ -3557,7 +3483,7 @@ function transformImports(source, renamedImports) {
|
|
|
3557
3483
|
|
|
3558
3484
|
// src/common/utils/file-lock.ts
|
|
3559
3485
|
import { logger as logger15 } from "@aussieljk/forkbook/internal/node-logger";
|
|
3560
|
-
import { randomUUID } from "node:crypto";
|
|
3486
|
+
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
3561
3487
|
import { readFileSync as readFileSync14, rmSync as rmSync2 } from "node:fs";
|
|
3562
3488
|
import { mkdir as mkdir2, open, readFile as readFile6, rm as rm3, stat, utimes } from "node:fs/promises";
|
|
3563
3489
|
import { dirname as dirname8 } from "node:path";
|
|
@@ -3583,7 +3509,7 @@ var POLL_INTERVAL_MS = 50, DEFAULT_STALE_AFTER_MS = 3e4, DEFAULT_WAIT_BUDGET_MS
|
|
|
3583
3509
|
return;
|
|
3584
3510
|
throw error;
|
|
3585
3511
|
}
|
|
3586
|
-
let payload = { token:
|
|
3512
|
+
let payload = { token: randomUUID2(), pid: process.pid };
|
|
3587
3513
|
try {
|
|
3588
3514
|
await handle.writeFile(JSON.stringify(payload));
|
|
3589
3515
|
} catch (error) {
|
|
@@ -3642,12 +3568,12 @@ var POLL_INTERVAL_MS = 50, DEFAULT_STALE_AFTER_MS = 3e4, DEFAULT_WAIT_BUDGET_MS
|
|
|
3642
3568
|
};
|
|
3643
3569
|
|
|
3644
3570
|
// src/common/utils/process-ancestry.ts
|
|
3645
|
-
import { execSync } from "node:child_process";
|
|
3571
|
+
import { execSync as execSync2 } from "node:child_process";
|
|
3646
3572
|
import os2 from "node:os";
|
|
3647
3573
|
var UNIX_TIMEOUT = 5e3, WINDOWS_TIMEOUT = 1e4, MAX_DEPTH = 1e3, EXEC_STDIO = ["ignore", "pipe", "ignore"];
|
|
3648
3574
|
function getProcessInfoUnix(pid) {
|
|
3649
3575
|
try {
|
|
3650
|
-
let output =
|
|
3576
|
+
let output = execSync2(`ps -p ${pid} -o pid=,ppid=,command=`, {
|
|
3651
3577
|
encoding: "utf8",
|
|
3652
3578
|
timeout: UNIX_TIMEOUT,
|
|
3653
3579
|
stdio: EXEC_STDIO
|
|
@@ -3666,7 +3592,7 @@ function getProcessInfoUnix(pid) {
|
|
|
3666
3592
|
}
|
|
3667
3593
|
function getProcessInfoWindows(pid) {
|
|
3668
3594
|
try {
|
|
3669
|
-
let output =
|
|
3595
|
+
let output = execSync2(
|
|
3670
3596
|
`wmic process where (ProcessId=${pid}) get ProcessId,ParentProcessId,CommandLine /format:csv`,
|
|
3671
3597
|
{
|
|
3672
3598
|
encoding: "utf8",
|
|
@@ -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
|
|
@@ -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
|
|
@@ -1,23 +1,23 @@
|
|
|
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
|
cache
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GRTI5653.js";
|
|
15
15
|
import {
|
|
16
16
|
importMetaResolve
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DRLBJM6X.js";
|
|
18
18
|
import {
|
|
19
19
|
slash
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AS4SFRCZ.js";
|
|
21
21
|
|
|
22
22
|
// src/builder-vite/preset.ts
|
|
23
23
|
import { findConfigFile } from "@aussieljk/forkbook/internal/common";
|