@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
|
@@ -0,0 +1,347 @@
|
|
|
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
|
+
|
|
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
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
createServiceRuntime,
|
|
14
|
+
getRegisteredServices,
|
|
15
|
+
getService,
|
|
16
|
+
registerService,
|
|
17
|
+
resolveStaticPath,
|
|
18
|
+
serviceRegistryApi,
|
|
19
|
+
validateSchema
|
|
20
|
+
} from "./chunk-5T635FTI.js";
|
|
21
|
+
import {
|
|
22
|
+
argumentsTag,
|
|
23
|
+
arrayBufferTag,
|
|
24
|
+
arrayTag,
|
|
25
|
+
booleanTag,
|
|
26
|
+
dataViewTag,
|
|
27
|
+
dateTag,
|
|
28
|
+
float32ArrayTag,
|
|
29
|
+
float64ArrayTag,
|
|
30
|
+
getSymbols,
|
|
31
|
+
getTag,
|
|
32
|
+
int16ArrayTag,
|
|
33
|
+
int32ArrayTag,
|
|
34
|
+
int8ArrayTag,
|
|
35
|
+
isBuffer,
|
|
36
|
+
isPlainObject,
|
|
37
|
+
isPrimitive,
|
|
38
|
+
isTypedArray,
|
|
39
|
+
mapTag,
|
|
40
|
+
numberTag,
|
|
41
|
+
objectTag,
|
|
42
|
+
regexpTag,
|
|
43
|
+
setTag,
|
|
44
|
+
stringTag,
|
|
45
|
+
symbolTag,
|
|
46
|
+
uint16ArrayTag,
|
|
47
|
+
uint32ArrayTag,
|
|
48
|
+
uint8ArrayTag,
|
|
49
|
+
uint8ClampedArrayTag
|
|
50
|
+
} from "./chunk-X3RTVNRN.js";
|
|
51
|
+
import {
|
|
52
|
+
any,
|
|
53
|
+
up,
|
|
54
|
+
up2
|
|
55
|
+
} from "./chunk-BLUMKQQB.js";
|
|
56
|
+
import {
|
|
57
|
+
globSync
|
|
58
|
+
} from "./chunk-YCXTTQ7K.js";
|
|
59
|
+
|
|
60
|
+
// src/shared/open-service/server.ts
|
|
61
|
+
import { mkdir, writeFile } from "node:fs/promises";
|
|
62
|
+
import { dirname, join } from "pathe";
|
|
63
|
+
|
|
64
|
+
// ../../node_modules/es-toolkit/dist/object/clone.mjs
|
|
65
|
+
function clone(obj) {
|
|
66
|
+
if (isPrimitive(obj)) return obj;
|
|
67
|
+
if (Array.isArray(obj) || isTypedArray(obj) || obj instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && obj instanceof SharedArrayBuffer) return obj.slice(0);
|
|
68
|
+
let prototype = Object.getPrototypeOf(obj);
|
|
69
|
+
if (prototype == null) return Object.assign(Object.create(prototype), obj);
|
|
70
|
+
let Constructor = prototype.constructor;
|
|
71
|
+
if (obj instanceof Date || obj instanceof Map || obj instanceof Set) return new Constructor(obj);
|
|
72
|
+
if (obj instanceof RegExp) {
|
|
73
|
+
let newRegExp = new Constructor(obj);
|
|
74
|
+
return newRegExp.lastIndex = obj.lastIndex, newRegExp;
|
|
75
|
+
}
|
|
76
|
+
if (obj instanceof DataView) return new Constructor(obj.buffer.slice(0));
|
|
77
|
+
if (obj instanceof Error) {
|
|
78
|
+
let newError;
|
|
79
|
+
return obj instanceof AggregateError ? newError = new Constructor(obj.errors, obj.message, { cause: obj.cause }) : newError = new Constructor(obj.message, { cause: obj.cause }), newError.stack = obj.stack, Object.assign(newError, obj), newError;
|
|
80
|
+
}
|
|
81
|
+
return typeof File < "u" && obj instanceof File ? new Constructor([obj], obj.name, {
|
|
82
|
+
type: obj.type,
|
|
83
|
+
lastModified: obj.lastModified
|
|
84
|
+
}) : typeof obj == "object" ? Object.assign(Object.create(prototype), obj) : obj;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// ../../node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
|
|
88
|
+
function cloneDeepWithImpl(valueToClone, keyToClone, objectToClone, stack = /* @__PURE__ */ new Map(), cloneValue = void 0) {
|
|
89
|
+
let cloned = cloneValue?.(valueToClone, keyToClone, objectToClone, stack);
|
|
90
|
+
if (cloned !== void 0) return cloned;
|
|
91
|
+
if (isPrimitive(valueToClone)) return valueToClone;
|
|
92
|
+
if (stack.has(valueToClone)) return stack.get(valueToClone);
|
|
93
|
+
if (Array.isArray(valueToClone)) {
|
|
94
|
+
let result = new Array(valueToClone.length);
|
|
95
|
+
stack.set(valueToClone, result);
|
|
96
|
+
for (let i = 0; i < valueToClone.length; i++) result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);
|
|
97
|
+
return Object.hasOwn(valueToClone, "index") && (result.index = valueToClone.index), Object.hasOwn(valueToClone, "input") && (result.input = valueToClone.input), result;
|
|
98
|
+
}
|
|
99
|
+
if (valueToClone instanceof Date) return new Date(valueToClone.getTime());
|
|
100
|
+
if (valueToClone instanceof RegExp) {
|
|
101
|
+
let result = new RegExp(valueToClone.source, valueToClone.flags);
|
|
102
|
+
return result.lastIndex = valueToClone.lastIndex, result;
|
|
103
|
+
}
|
|
104
|
+
if (valueToClone instanceof Map) {
|
|
105
|
+
let result = /* @__PURE__ */ new Map();
|
|
106
|
+
stack.set(valueToClone, result);
|
|
107
|
+
for (let [key, value] of valueToClone) result.set(key, cloneDeepWithImpl(value, key, objectToClone, stack, cloneValue));
|
|
108
|
+
return result;
|
|
109
|
+
}
|
|
110
|
+
if (valueToClone instanceof Set) {
|
|
111
|
+
let result = /* @__PURE__ */ new Set();
|
|
112
|
+
stack.set(valueToClone, result);
|
|
113
|
+
for (let value of valueToClone) result.add(cloneDeepWithImpl(value, void 0, objectToClone, stack, cloneValue));
|
|
114
|
+
return result;
|
|
115
|
+
}
|
|
116
|
+
if (isBuffer(valueToClone)) return valueToClone.subarray();
|
|
117
|
+
if (isTypedArray(valueToClone)) {
|
|
118
|
+
let result = new (Object.getPrototypeOf(valueToClone)).constructor(valueToClone.length);
|
|
119
|
+
stack.set(valueToClone, result);
|
|
120
|
+
for (let i = 0; i < valueToClone.length; i++) result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);
|
|
121
|
+
return result;
|
|
122
|
+
}
|
|
123
|
+
if (valueToClone instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && valueToClone instanceof SharedArrayBuffer) return valueToClone.slice(0);
|
|
124
|
+
if (valueToClone instanceof DataView) {
|
|
125
|
+
let result = new DataView(valueToClone.buffer.slice(0), valueToClone.byteOffset, valueToClone.byteLength);
|
|
126
|
+
return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
|
|
127
|
+
}
|
|
128
|
+
if (typeof File < "u" && valueToClone instanceof File) {
|
|
129
|
+
let result = new File([valueToClone], valueToClone.name, { type: valueToClone.type });
|
|
130
|
+
return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
|
|
131
|
+
}
|
|
132
|
+
if (typeof Blob < "u" && valueToClone instanceof Blob) {
|
|
133
|
+
let result = new Blob([valueToClone], { type: valueToClone.type });
|
|
134
|
+
return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
|
|
135
|
+
}
|
|
136
|
+
if (valueToClone instanceof Error) {
|
|
137
|
+
let result = structuredClone(valueToClone);
|
|
138
|
+
return stack.set(valueToClone, result), result.message = valueToClone.message, result.name = valueToClone.name, result.stack = valueToClone.stack, result.cause = valueToClone.cause, result.constructor = valueToClone.constructor, copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
|
|
139
|
+
}
|
|
140
|
+
if (valueToClone instanceof Boolean) {
|
|
141
|
+
let result = new Boolean(valueToClone.valueOf());
|
|
142
|
+
return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
|
|
143
|
+
}
|
|
144
|
+
if (valueToClone instanceof Number) {
|
|
145
|
+
let result = new Number(valueToClone.valueOf());
|
|
146
|
+
return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
|
|
147
|
+
}
|
|
148
|
+
if (valueToClone instanceof String) {
|
|
149
|
+
let result = new String(valueToClone.valueOf());
|
|
150
|
+
return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
|
|
151
|
+
}
|
|
152
|
+
if (typeof valueToClone == "object" && isCloneableObject(valueToClone)) {
|
|
153
|
+
let result = Object.create(Object.getPrototypeOf(valueToClone));
|
|
154
|
+
return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
|
|
155
|
+
}
|
|
156
|
+
return valueToClone;
|
|
157
|
+
}
|
|
158
|
+
function copyProperties(target, source, objectToClone = target, stack, cloneValue) {
|
|
159
|
+
let keys = [...Object.keys(source), ...getSymbols(source)];
|
|
160
|
+
for (let i = 0; i < keys.length; i++) {
|
|
161
|
+
let key = keys[i], descriptor = Object.getOwnPropertyDescriptor(target, key);
|
|
162
|
+
(descriptor == null || descriptor.writable) && (target[key] = cloneDeepWithImpl(source[key], key, objectToClone, stack, cloneValue));
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
function isCloneableObject(object) {
|
|
166
|
+
switch (getTag(object)) {
|
|
167
|
+
case argumentsTag:
|
|
168
|
+
case arrayTag:
|
|
169
|
+
case arrayBufferTag:
|
|
170
|
+
case dataViewTag:
|
|
171
|
+
case booleanTag:
|
|
172
|
+
case dateTag:
|
|
173
|
+
case float32ArrayTag:
|
|
174
|
+
case float64ArrayTag:
|
|
175
|
+
case int8ArrayTag:
|
|
176
|
+
case int16ArrayTag:
|
|
177
|
+
case int32ArrayTag:
|
|
178
|
+
case mapTag:
|
|
179
|
+
case numberTag:
|
|
180
|
+
case objectTag:
|
|
181
|
+
case regexpTag:
|
|
182
|
+
case setTag:
|
|
183
|
+
case stringTag:
|
|
184
|
+
case symbolTag:
|
|
185
|
+
case uint8ArrayTag:
|
|
186
|
+
case uint8ClampedArrayTag:
|
|
187
|
+
case uint16ArrayTag:
|
|
188
|
+
case uint32ArrayTag:
|
|
189
|
+
return !0;
|
|
190
|
+
default:
|
|
191
|
+
return !1;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// ../../node_modules/es-toolkit/dist/object/cloneDeep.mjs
|
|
196
|
+
function cloneDeep(obj) {
|
|
197
|
+
return cloneDeepWithImpl(obj, void 0, obj, /* @__PURE__ */ new Map(), void 0);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// ../../node_modules/es-toolkit/dist/_internal/isMergeableValue.mjs
|
|
201
|
+
function isMergeableValue(value) {
|
|
202
|
+
return isPlainObject(value) || Array.isArray(value);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// ../../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
|
|
206
|
+
function isUnsafeProperty(key) {
|
|
207
|
+
return key === "__proto__";
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
// ../../node_modules/es-toolkit/dist/object/mergeWith.mjs
|
|
211
|
+
function mergeWith(target, source, merge2) {
|
|
212
|
+
let sourceKeys = Object.keys(source);
|
|
213
|
+
for (let i = 0; i < sourceKeys.length; i++) {
|
|
214
|
+
let key = sourceKeys[i];
|
|
215
|
+
if (isUnsafeProperty(key)) continue;
|
|
216
|
+
let sourceValue = source[key], targetValue = target[key], merged = merge2(targetValue, sourceValue, key, target, source);
|
|
217
|
+
merged !== void 0 ? target[key] = merged : isMergeableValue(sourceValue) && isMergeableValue(targetValue) ? target[key] = mergeWith(targetValue, sourceValue, merge2) : Array.isArray(sourceValue) ? target[key] = mergeWith([], sourceValue, merge2) : isPlainObject(sourceValue) ? target[key] = mergeWith({}, sourceValue, merge2) : (targetValue === void 0 || sourceValue !== void 0) && (target[key] = sourceValue);
|
|
218
|
+
}
|
|
219
|
+
return target;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// ../../node_modules/es-toolkit/dist/object/toMerged.mjs
|
|
223
|
+
function toMerged(target, source) {
|
|
224
|
+
return mergeWith(cloneDeep(target), source, function mergeRecursively(targetValue, sourceValue) {
|
|
225
|
+
if (isMergeableValue(sourceValue) && isMergeableValue(targetValue)) return mergeWith(clone(targetValue), sourceValue, mergeRecursively);
|
|
226
|
+
if (Array.isArray(sourceValue)) return mergeWith([], sourceValue, mergeRecursively);
|
|
227
|
+
if (isPlainObject(sourceValue)) return mergeWith({}, sourceValue, mergeRecursively);
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// src/shared/open-service/server.ts
|
|
232
|
+
var getService2 = getService;
|
|
233
|
+
function registerService2(definition, registration) {
|
|
234
|
+
return registerService(definition, registration, { relay: !0 });
|
|
235
|
+
}
|
|
236
|
+
async function buildStaticFiles() {
|
|
237
|
+
let store = {}, buildTasks = [];
|
|
238
|
+
for (let service of getRegisteredServices())
|
|
239
|
+
for (let [queryName, query] of Object.entries(service.queries)) {
|
|
240
|
+
let { load, staticPath, staticInputs } = query;
|
|
241
|
+
!staticPath || !load || !staticInputs || buildTasks.push(
|
|
242
|
+
(async () => {
|
|
243
|
+
let inputsRuntime = createServiceRuntime(service, { registryApi: serviceRegistryApi }), inputs = await staticInputs(inputsRuntime.loadCtxForStatic);
|
|
244
|
+
return Promise.all(
|
|
245
|
+
inputs.map(async (input) => {
|
|
246
|
+
let buildRuntime = createServiceRuntime(service, {
|
|
247
|
+
registryApi: serviceRegistryApi
|
|
248
|
+
}), validatedInput = await validateSchema(query.input, input, {
|
|
249
|
+
kind: "query",
|
|
250
|
+
serviceId: service.id,
|
|
251
|
+
name: queryName,
|
|
252
|
+
phase: "input"
|
|
253
|
+
}), path = resolveStaticPath(service.id, queryName, { staticPath }, validatedInput);
|
|
254
|
+
return await buildRuntime.runLoadOnce(queryName, validatedInput), { path, state: buildRuntime.getStateSnapshot() };
|
|
255
|
+
})
|
|
256
|
+
);
|
|
257
|
+
})()
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
let builtStates = (await Promise.all(buildTasks)).flat();
|
|
261
|
+
for (let { path, state } of builtStates)
|
|
262
|
+
store[path] = path in store ? toMerged(store[path], state) : state;
|
|
263
|
+
return store;
|
|
264
|
+
}
|
|
265
|
+
async function writeOpenServiceStaticFiles(outputDir) {
|
|
266
|
+
let staticStore = await buildStaticFiles();
|
|
267
|
+
await Promise.all(
|
|
268
|
+
Object.entries(staticStore).map(async ([relativePath, state]) => {
|
|
269
|
+
let outputPath = join(outputDir, "services", ...relativePath.split("/"));
|
|
270
|
+
await mkdir(dirname(outputPath), { recursive: !0 }), await writeFile(outputPath, JSON.stringify(state, null, 2));
|
|
271
|
+
})
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
// src/common/utils/paths.ts
|
|
276
|
+
import { join as join2, relative, resolve, sep } from "node:path";
|
|
277
|
+
|
|
278
|
+
// src/common/js-package-manager/constants.ts
|
|
279
|
+
var NPM_LOCKFILE = "package-lock.json", PNPM_LOCKFILE = "pnpm-lock.yaml", YARN_LOCKFILE = "yarn.lock", BUN_LOCKFILE = "bun.lock", BUN_LOCKFILE_BINARY = "bun.lockb", LOCK_FILES = [
|
|
280
|
+
NPM_LOCKFILE,
|
|
281
|
+
PNPM_LOCKFILE,
|
|
282
|
+
YARN_LOCKFILE,
|
|
283
|
+
BUN_LOCKFILE,
|
|
284
|
+
BUN_LOCKFILE_BINARY
|
|
285
|
+
];
|
|
286
|
+
|
|
287
|
+
// src/common/utils/paths.ts
|
|
288
|
+
var projectRoot, getProjectRoot = () => {
|
|
289
|
+
if (projectRoot)
|
|
290
|
+
return projectRoot;
|
|
291
|
+
if (process.env.FORKBOOK_PROJECT_ROOT)
|
|
292
|
+
return process.env.FORKBOOK_PROJECT_ROOT;
|
|
293
|
+
try {
|
|
294
|
+
let found = up2(".git") || up2(".svn") || up2(".hg");
|
|
295
|
+
if (found)
|
|
296
|
+
return projectRoot = join2(found, ".."), projectRoot;
|
|
297
|
+
} catch (e) {
|
|
298
|
+
process.stdout.write(`
|
|
299
|
+
error searching for repository root: ${e}
|
|
300
|
+
`);
|
|
301
|
+
}
|
|
302
|
+
try {
|
|
303
|
+
let found = any(LOCK_FILES);
|
|
304
|
+
if (found)
|
|
305
|
+
return projectRoot = join2(found, ".."), projectRoot;
|
|
306
|
+
} catch (e) {
|
|
307
|
+
process.stdout.write(`
|
|
308
|
+
error searching for lock file: ${e}
|
|
309
|
+
`);
|
|
310
|
+
}
|
|
311
|
+
try {
|
|
312
|
+
let [basePath, rest] = __dirname.split(`${sep}node_modules${sep}`, 2);
|
|
313
|
+
if (rest && !basePath.includes(`${sep}npm-cache${sep}`) && !relative(basePath, process.cwd()).startsWith(".."))
|
|
314
|
+
return projectRoot = basePath, projectRoot;
|
|
315
|
+
} catch (e) {
|
|
316
|
+
process.stdout.write(`
|
|
317
|
+
error searching for splitDirname: ${e}
|
|
318
|
+
`);
|
|
319
|
+
}
|
|
320
|
+
return projectRoot = process.cwd(), projectRoot;
|
|
321
|
+
}, invalidateProjectRootCache = () => {
|
|
322
|
+
projectRoot = void 0;
|
|
323
|
+
}, findFilesUp = (matchers, baseDir = process.cwd()) => {
|
|
324
|
+
let matchingFiles = [];
|
|
325
|
+
for (let directory of up(baseDir, { last: getProjectRoot() }))
|
|
326
|
+
matchingFiles.push(...globSync(matchers, { cwd: directory, absolute: !0 }));
|
|
327
|
+
return matchingFiles;
|
|
328
|
+
}, nodePathsToArray = (nodePath) => nodePath.split(process.platform === "win32" ? ";" : ":").filter(Boolean).map((p) => resolve("./", p)), relativePattern = /^\.{1,2}([/\\]|$)/;
|
|
329
|
+
function normalizeStoryPath(filename) {
|
|
330
|
+
return relativePattern.test(filename) ? filename : `.${sep}${filename}`;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export {
|
|
334
|
+
getService2 as getService,
|
|
335
|
+
registerService2 as registerService,
|
|
336
|
+
writeOpenServiceStaticFiles,
|
|
337
|
+
NPM_LOCKFILE,
|
|
338
|
+
PNPM_LOCKFILE,
|
|
339
|
+
YARN_LOCKFILE,
|
|
340
|
+
BUN_LOCKFILE,
|
|
341
|
+
BUN_LOCKFILE_BINARY,
|
|
342
|
+
getProjectRoot,
|
|
343
|
+
invalidateProjectRootCache,
|
|
344
|
+
findFilesUp,
|
|
345
|
+
nodePathsToArray,
|
|
346
|
+
normalizeStoryPath
|
|
347
|
+
};
|
|
@@ -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
|