@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,5 +1,5 @@
|
|
|
1
1
|
import { n as __esmMin } from "./runtime-EITvVbkG.js";
|
|
2
|
-
import { d as StorybookError, f as init_storybook_error } from "./runtime-
|
|
2
|
+
import { d as StorybookError, f as init_storybook_error } from "./runtime-BgYvp1WN.js";
|
|
3
3
|
//#region src/preview-errors.ts
|
|
4
4
|
var StatusTypeIdMismatchError;
|
|
5
5
|
function init_preview_errors() {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as init_globals_runtime } from "./_manager-chunks/globals-runtime-
|
|
1
|
+
import { t as init_globals_runtime } from "./_manager-chunks/globals-runtime-B-IeQLQu.js";
|
|
2
2
|
init_globals_runtime();
|
|
@@ -5,7 +5,7 @@ declare const globalsNameReferenceMap: {
|
|
|
5
5
|
readonly 'react/jsx-dev-runtime': '__REACT_JSX_DEV_RUNTIME__';
|
|
6
6
|
readonly 'react-dom': '__REACT_DOM__';
|
|
7
7
|
readonly 'react-dom/client': '__REACT_DOM_CLIENT__';
|
|
8
|
-
readonly '@
|
|
8
|
+
readonly '@phosphor-icons/react': '__FORKBOOK_ICONS__';
|
|
9
9
|
readonly '@aussieljk/forkbook/manager-api': '__FORKBOOK_API__';
|
|
10
10
|
readonly '@aussieljk/forkbook/theming': '__FORKBOOK_THEMING__';
|
|
11
11
|
readonly '@aussieljk/forkbook/theming/create': '__FORKBOOK_THEMING_CREATE__';
|
package/dist/manager/globals.js
CHANGED
|
@@ -7,7 +7,7 @@ var globalsNameReferenceMap = {
|
|
|
7
7
|
"react/jsx-dev-runtime": "__REACT_JSX_DEV_RUNTIME__",
|
|
8
8
|
"react-dom": "__REACT_DOM__",
|
|
9
9
|
"react-dom/client": "__REACT_DOM_CLIENT__",
|
|
10
|
-
"@
|
|
10
|
+
"@phosphor-icons/react": "__FORKBOOK_ICONS__",
|
|
11
11
|
"@aussieljk/forkbook/manager-api": "__FORKBOOK_API__",
|
|
12
12
|
"@aussieljk/forkbook/theming": "__FORKBOOK_THEMING__",
|
|
13
13
|
"@aussieljk/forkbook/theming/create": "__FORKBOOK_THEMING_CREATE__",
|
package/dist/manager/runtime.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as init_runtime } from "./_manager-chunks/runtime-
|
|
1
|
+
import { t as init_runtime } from "./_manager-chunks/runtime-DrTLBe7a.js";
|
|
2
2
|
init_runtime();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $c as API_GroupEntry, Ac as useTestProviderStore, Al as experimental_requestResponse, Bc as useStatusStore, Bl as shortcutMatchesShortcut, Cl as useSharedState, Dc as fullTestProviderStore, Dl as _default, Ec as Tag, El as useStorybookState, Fl as eventMatchesShortcut, Gl as Addon_Type, Hc as useUniversalStore, Hl as shortcutToHumanString, Il as eventToShortcut, Jc as API, Kl as addons, Lc as fullStatusStore, Ll as isShortcutTaken, Ml as KeyboardEventLike, Nl as controlOrMetaKey, Oc as getTestProviderStoreById, Ol as isMacLike, Pl as controlOrMetaSymbol, Qc as API_EventMap, Rc as getStatusStoreByTypeId, Rl as keyToSymbol, Sl as useParameter, Tl as useStorybookApi, Uc as UniversalStore, Ul as Options, Vc as MockUniversalStore, Vl as shortcutToAriaKeyshortcuts, Wl as AddonStore, Xc as API_ComposedRef, Yc as API_ComponentEntry, Zc as API_DocsEntry, _l as useArgTypes, al as API_StoryEntry, ao as useServiceQuery, bl as useGlobalTypes, cl as Listener, dl as ManagerProvider, el as API_HashEntry, fl as ManagerProviderProps, gl as useAddonState, hl as typesX, il as API_RootEntry, io as registerService, jl as API_KeyCollection, kc as universalTestProviderStore, kl as RequestResponseError, ll as ManagerConsumer, ml as combineParameters, nl as API_LeafEntry, ol as ActiveTabs, oo as useServiceCommand, pl as State, rl as API_Refs, ro as getService, sl as Combo, tl as API_IndexHash, ul as ManagerContext, vl as useArgs, wl as useStoryPrepared, xl as useGlobals, yl as useChannel, zc as universalStatusStore, zl as optionOrAltSymbol } from "../chunk-
|
|
1
|
+
import { $c as API_GroupEntry, Ac as useTestProviderStore, Al as experimental_requestResponse, Bc as useStatusStore, Bl as shortcutMatchesShortcut, Cl as useSharedState, Dc as fullTestProviderStore, Dl as _default, Ec as Tag, El as useStorybookState, Fl as eventMatchesShortcut, Gl as Addon_Type, Hc as useUniversalStore, Hl as shortcutToHumanString, Il as eventToShortcut, Jc as API, Kl as addons, Lc as fullStatusStore, Ll as isShortcutTaken, Ml as KeyboardEventLike, Nl as controlOrMetaKey, Oc as getTestProviderStoreById, Ol as isMacLike, Pl as controlOrMetaSymbol, Qc as API_EventMap, Rc as getStatusStoreByTypeId, Rl as keyToSymbol, Sl as useParameter, Tl as useStorybookApi, Uc as UniversalStore, Ul as Options, Vc as MockUniversalStore, Vl as shortcutToAriaKeyshortcuts, Wl as AddonStore, Xc as API_ComposedRef, Yc as API_ComponentEntry, Zc as API_DocsEntry, _l as useArgTypes, al as API_StoryEntry, ao as useServiceQuery, bl as useGlobalTypes, cl as Listener, dl as ManagerProvider, el as API_HashEntry, fl as ManagerProviderProps, gl as useAddonState, hl as typesX, il as API_RootEntry, io as registerService, jl as API_KeyCollection, kc as universalTestProviderStore, kl as RequestResponseError, ll as ManagerConsumer, ml as combineParameters, nl as API_LeafEntry, ol as ActiveTabs, oo as useServiceCommand, pl as State, rl as API_Refs, ro as getService, sl as Combo, tl as API_IndexHash, ul as ManagerContext, vl as useArgs, wl as useStoryPrepared, xl as useGlobals, yl as useChannel, zc as universalStatusStore, zl as optionOrAltSymbol } from "../chunk-CzmZhVrn.js";
|
|
2
2
|
export { API, API_EventMap, type API_KeyCollection, ActiveTabs, type Addon_Type as Addon, type AddonStore, type Listener as ChannelListener, Combo, type API_ComponentEntry as ComponentEntry, type API_ComposedRef as ComposedRef, ManagerConsumer as Consumer, type API_DocsEntry as DocsEntry, type API_GroupEntry as GroupEntry, type API_HashEntry as HashEntry, type API_IndexHash as IndexHash, type API_IndexHash as StoriesHash, KeyboardEventLike, type API_LeafEntry as LeafEntry, ManagerContext, ManagerProviderProps, ManagerProvider as Provider, type API_Refs as Refs, RequestResponseError, type API_RootEntry as RootEntry, State, type Options as StoreOptions, type API_StoryEntry as StoryEntry, Tag, addons, combineParameters, controlOrMetaKey, controlOrMetaSymbol, eventMatchesShortcut, eventToShortcut, MockUniversalStore as experimental_MockUniversalStore, getStatusStoreByTypeId as experimental_getStatusStore, getTestProviderStoreById as experimental_getTestProviderStore, experimental_requestResponse, useStatusStore as experimental_useStatusStore, useTestProviderStore as experimental_useTestProviderStore, getService, UniversalStore as internal_UniversalStore, fullStatusStore as internal_fullStatusStore, fullTestProviderStore as internal_fullTestProviderStore, universalStatusStore as internal_universalStatusStore, universalTestProviderStore as internal_universalTestProviderStore, useUniversalStore as internal_useUniversalStore, isMacLike, isShortcutTaken, keyToSymbol, _default as merge, optionOrAltSymbol, registerService, shortcutMatchesShortcut, shortcutToAriaKeyshortcuts, shortcutToHumanString, typesX as types, useAddonState, useArgTypes, useArgs, useChannel, useGlobalTypes, useGlobals, useParameter, useServiceCommand, useServiceQuery, useSharedState, useStoryPrepared, useStorybookApi, useStorybookState };
|
|
@@ -16,12 +16,11 @@ import {
|
|
|
16
16
|
toStatusValue
|
|
17
17
|
} from "../_browser-chunks/chunk-DYNTDJ3O.js";
|
|
18
18
|
import {
|
|
19
|
-
dequal,
|
|
20
19
|
getService,
|
|
21
20
|
registerService,
|
|
22
21
|
useServiceCommand,
|
|
23
22
|
useServiceQuery
|
|
24
|
-
} from "../_browser-chunks/chunk-
|
|
23
|
+
} from "../_browser-chunks/chunk-NGMQJMCY.js";
|
|
25
24
|
import {
|
|
26
25
|
countBy,
|
|
27
26
|
partition
|
|
@@ -66,6 +65,9 @@ import "../_browser-chunks/chunk-JPUOQJUI.js";
|
|
|
66
65
|
import "../_browser-chunks/chunk-BNP234B4.js";
|
|
67
66
|
import "../_browser-chunks/chunk-MJIDTL3X.js";
|
|
68
67
|
import "../_browser-chunks/chunk-SC67XZST.js";
|
|
68
|
+
import {
|
|
69
|
+
global
|
|
70
|
+
} from "../_browser-chunks/chunk-6AKCRYVX.js";
|
|
69
71
|
import {
|
|
70
72
|
__commonJS,
|
|
71
73
|
__export,
|
|
@@ -598,7 +600,6 @@ __export(refs_exports, {
|
|
|
598
600
|
getSourceType: () => getSourceType,
|
|
599
601
|
init: () => init3
|
|
600
602
|
});
|
|
601
|
-
import { global } from "@storybook/global";
|
|
602
603
|
import { dedent as dedent2 } from "ts-dedent";
|
|
603
604
|
|
|
604
605
|
// src/manager-api/lib/stories.ts
|
|
@@ -1024,7 +1025,7 @@ var init4 = ({ store: store2, fullAPI, provider }) => {
|
|
|
1024
1025
|
userGlobals: currentUserGlobals,
|
|
1025
1026
|
storyGlobals: currentStoryGlobals
|
|
1026
1027
|
} = store2.getState();
|
|
1027
|
-
|
|
1028
|
+
isEqual(globals, currentGlobals) || store2.setState({ globals }), isEqual(userGlobals, currentUserGlobals) || store2.setState({ userGlobals }), isEqual(storyGlobals, currentStoryGlobals) || store2.setState({ storyGlobals });
|
|
1028
1029
|
};
|
|
1029
1030
|
return provider.channel?.on(
|
|
1030
1031
|
GLOBALS_UPDATED,
|
|
@@ -1038,7 +1039,7 @@ var init4 = ({ store: store2, fullAPI, provider }) => {
|
|
|
1038
1039
|
SET_GLOBALS,
|
|
1039
1040
|
function({ globals, globalTypes }) {
|
|
1040
1041
|
let { ref } = getEventMetadata(this, fullAPI), currentUserGlobals = store2.getState()?.userGlobals;
|
|
1041
|
-
ref ? Object.keys(globals).length > 0 && logger5.warn("received globals from a non-local ref. This is not currently supported.") : store2.setState({ globals, userGlobals: globals, globalTypes }), currentUserGlobals && Object.keys(currentUserGlobals).length !== 0 && !
|
|
1042
|
+
ref ? Object.keys(globals).length > 0 && logger5.warn("received globals from a non-local ref. This is not currently supported.") : store2.setState({ globals, userGlobals: globals, globalTypes }), currentUserGlobals && Object.keys(currentUserGlobals).length !== 0 && !isEqual(globals, currentUserGlobals) && api.updateGlobals(currentUserGlobals);
|
|
1042
1043
|
}
|
|
1043
1044
|
), {
|
|
1044
1045
|
api,
|
|
@@ -1060,9 +1061,8 @@ __export(layout_exports, {
|
|
|
1060
1061
|
isPagesViewMode: () => isPagesViewMode
|
|
1061
1062
|
});
|
|
1062
1063
|
import { SET_CONFIG as SET_CONFIG2 } from "@aussieljk/forkbook/internal/core-events";
|
|
1063
|
-
import { global as global2 } from "@storybook/global";
|
|
1064
1064
|
import { create } from "@aussieljk/forkbook/theming/create";
|
|
1065
|
-
var { document: document2 } =
|
|
1065
|
+
var { document: document2 } = global, isFunction = (val) => typeof val == "function", ActiveTabs = {
|
|
1066
1066
|
SIDEBAR: "sidebar",
|
|
1067
1067
|
CANVAS: "canvas",
|
|
1068
1068
|
ADDONS: "addons"
|
|
@@ -1114,7 +1114,7 @@ var { document: document2 } = global2, isFunction = (val) => typeof val == "func
|
|
|
1114
1114
|
}, applyUiOptions = (uiState, options) => {
|
|
1115
1115
|
let uiKeys = Object.keys(uiState);
|
|
1116
1116
|
return toMerged(uiState, pick(options ?? {}, uiKeys));
|
|
1117
|
-
}, isDesktopViewport = () =>
|
|
1117
|
+
}, isDesktopViewport = () => global.matchMedia?.("(min-width: 600px)")?.matches ?? !0, init5 = ({ store: store2, provider, singleStory }) => {
|
|
1118
1118
|
let api = {
|
|
1119
1119
|
toggleFullscreen(nextState) {
|
|
1120
1120
|
return store2.setState(
|
|
@@ -1383,7 +1383,7 @@ import {
|
|
|
1383
1383
|
OPEN_IN_EDITOR_REQUEST,
|
|
1384
1384
|
OPEN_IN_EDITOR_RESPONSE
|
|
1385
1385
|
} from "@aussieljk/forkbook/internal/core-events";
|
|
1386
|
-
import {
|
|
1386
|
+
import { XCircleIcon } from "@phosphor-icons/react";
|
|
1387
1387
|
import { jsx } from "react/jsx-runtime";
|
|
1388
1388
|
var init7 = ({ provider, fullAPI }) => ({
|
|
1389
1389
|
api: {
|
|
@@ -1406,7 +1406,7 @@ var init7 = ({ provider, fullAPI }) => ({
|
|
|
1406
1406
|
headline: "Failed to open in editor",
|
|
1407
1407
|
subHeadline: payload.error || "Check the Forkbook process on the command line for more details."
|
|
1408
1408
|
},
|
|
1409
|
-
icon: jsx(
|
|
1409
|
+
icon: jsx(XCircleIcon, { color: color.negative }),
|
|
1410
1410
|
duration: 8e3
|
|
1411
1411
|
});
|
|
1412
1412
|
});
|
|
@@ -1466,19 +1466,17 @@ __export(shortcuts_exports, {
|
|
|
1466
1466
|
isMacLike: () => isMacLike2,
|
|
1467
1467
|
keys: () => keys
|
|
1468
1468
|
});
|
|
1469
|
-
var import_copy_to_clipboard = __toESM(require_copy_to_clipboard(), 1);
|
|
1470
1469
|
import {
|
|
1471
1470
|
FORCE_REMOUNT,
|
|
1472
1471
|
PREVIEW_KEYDOWN,
|
|
1473
1472
|
STORIES_COLLAPSE_ALL,
|
|
1474
1473
|
STORIES_EXPAND_ALL
|
|
1475
1474
|
} from "@aussieljk/forkbook/internal/core-events";
|
|
1476
|
-
|
|
1475
|
+
var import_copy_to_clipboard = __toESM(require_copy_to_clipboard(), 1);
|
|
1477
1476
|
import { logger as logger6 } from "@aussieljk/forkbook/internal/client-logger";
|
|
1478
1477
|
|
|
1479
1478
|
// src/manager-api/lib/platform.ts
|
|
1480
|
-
|
|
1481
|
-
var { navigator: navigator2 } = global3, isMacLike = () => navigator2 && navigator2.platform ? !!navigator2.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1;
|
|
1479
|
+
var { navigator: navigator2 } = global, isMacLike = () => navigator2 && navigator2.platform ? !!navigator2.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1;
|
|
1482
1480
|
|
|
1483
1481
|
// src/manager-api/lib/shortcut.ts
|
|
1484
1482
|
var controlOrMetaSymbol = () => isMacLike() ? "\u2318" : "ctrl", controlOrMetaKey = () => isMacLike() ? "meta" : "control", optionOrAltSymbol = () => isMacLike() ? "\u2325" : "alt", isShortcutTaken = (arr1, arr2) => JSON.stringify(arr1) === JSON.stringify(arr2), eventToShortcut = (e) => {
|
|
@@ -1509,7 +1507,7 @@ var controlOrMetaSymbol = () => isMacLike() ? "\u2318" : "ctrl", controlOrMetaKe
|
|
|
1509
1507
|
), eventMatchesShortcut = (e, shortcut) => shortcutMatchesShortcut(eventToShortcut(e), shortcut), keyToSymbol = (key) => key === "alt" ? optionOrAltSymbol() : key === "control" ? "\u2303" : key === "meta" ? "\u2318" : key === "shift" ? "\u21E7\u200B" : key === "Enter" || key === "Backspace" || key === "Esc" ? "" : key === " " ? "SPACE" : key === "ArrowUp" ? "\u2191" : key === "ArrowDown" ? "\u2193" : key === "ArrowLeft" ? "\u2190" : key === "ArrowRight" ? "\u2192" : key?.toUpperCase(), shortcutToHumanString = (shortcut) => shortcut.map(keyToSymbol).join(" "), shortcutToAriaKeyshortcuts = (shortcut) => shortcut.map((shortcut2) => shortcut2 === "+" ? "plus" : shortcut2 === " " ? "space" : shortcut2).join("+");
|
|
1510
1508
|
|
|
1511
1509
|
// src/manager-api/modules/shortcuts.ts
|
|
1512
|
-
var { navigator: navigator3, document: document3 } =
|
|
1510
|
+
var { navigator: navigator3, document: document3 } = global;
|
|
1513
1511
|
function wasFocusInElement(element) {
|
|
1514
1512
|
return document3.activeElement && element?.contains(document3.activeElement);
|
|
1515
1513
|
}
|
|
@@ -1720,7 +1718,7 @@ var init10 = ({ store: store2, fullAPI, provider }) => {
|
|
|
1720
1718
|
break;
|
|
1721
1719
|
}
|
|
1722
1720
|
case "openInEditor": {
|
|
1723
|
-
|
|
1721
|
+
global.CONFIG_TYPE === "DEVELOPMENT" && fullAPI.openInEditor({
|
|
1724
1722
|
file: fullAPI.getCurrentStoryData().importPath
|
|
1725
1723
|
});
|
|
1726
1724
|
break;
|
|
@@ -1806,7 +1804,6 @@ import {
|
|
|
1806
1804
|
} from "@aussieljk/forkbook/internal/core-events";
|
|
1807
1805
|
import { sanitize as sanitize2, toId } from "@aussieljk/forkbook/internal/csf";
|
|
1808
1806
|
import { queryFromLocation } from "@aussieljk/forkbook/internal/router";
|
|
1809
|
-
import { global as global5 } from "@storybook/global";
|
|
1810
1807
|
|
|
1811
1808
|
// src/manager-api/lib/url.ts
|
|
1812
1809
|
var buildNavigationUrl = (path, queryParams = {}) => {
|
|
@@ -1914,7 +1911,7 @@ var BUILT_IN_URL_TAG_MAP = {
|
|
|
1914
1911
|
};
|
|
1915
1912
|
|
|
1916
1913
|
// src/manager-api/modules/stories.ts
|
|
1917
|
-
var { fetch: fetch2 } =
|
|
1914
|
+
var { fetch: fetch2 } = global, STORY_INDEX_PATH = "./index.json", TAGS_FILTER = "tags-filter", STATIC_FILTER = "static-filter", STATUS_FILTER = "status-filter", STATUS_CHANGE_REBUILD_THROTTLE = 500, BUILT_IN_TAG_IDS = new Set(Object.keys(BUILT_IN_FILTERS)), removedOptions = ["enableShortcuts", "theme", "showRoots"];
|
|
1918
1915
|
function removeRemovedOptions(options) {
|
|
1919
1916
|
if (!options || typeof options == "string")
|
|
1920
1917
|
return options;
|
|
@@ -2455,7 +2452,7 @@ var FILTER_KEYS = {
|
|
|
2455
2452
|
edges: ["leading", "trailing"]
|
|
2456
2453
|
})
|
|
2457
2454
|
);
|
|
2458
|
-
let tagPresets =
|
|
2455
|
+
let tagPresets = global.TAGS_OPTIONS || {}, defaultTags = getDefaultTagsFromPreset(tagPresets), { tags, statuses } = queryFromLocation(location2 ?? { search: "" }), parsedTags = parseTagsParam(tags), hasTagsParam = tags !== void 0, initialIncluded = hasTagsParam ? parsedTags.included : defaultTags.included, initialExcluded = hasTagsParam ? parsedTags.excluded : defaultTags.excluded, parsedStatuses = parseStatusesParam(statuses), initialIncludedStatuses = parsedStatuses.included, initialExcludedStatuses = parsedStatuses.excluded, initialFilters = {
|
|
2459
2456
|
[STATIC_FILTER]: computeStaticFilterFn(tagPresets),
|
|
2460
2457
|
[TAGS_FILTER]: computeTagsFilterFn(initialIncluded, initialExcluded),
|
|
2461
2458
|
[STATUS_FILTER]: computeStatusFilterFn(initialIncludedStatuses, initialExcludedStatuses)
|
|
@@ -2500,7 +2497,6 @@ import {
|
|
|
2500
2497
|
UPDATE_QUERY_PARAMS
|
|
2501
2498
|
} from "@aussieljk/forkbook/internal/core-events";
|
|
2502
2499
|
import { buildArgsParam, queryFromLocation as queryFromLocation2 } from "@aussieljk/forkbook/internal/router";
|
|
2503
|
-
import { global as global6 } from "@storybook/global";
|
|
2504
2500
|
var parseBoolean = (value) => {
|
|
2505
2501
|
if (value === "true" || value === "1")
|
|
2506
2502
|
return !0;
|
|
@@ -2527,7 +2523,7 @@ var parseBoolean = (value) => {
|
|
|
2527
2523
|
panelPosition: ["right", "bottom"].includes(panel) ? panel : void 0
|
|
2528
2524
|
}, ui = {
|
|
2529
2525
|
enableShortcuts: parseBoolean(shortcuts)
|
|
2530
|
-
}, selectedPanel = addonPanel || void 0, storyId = storyIdFromUrl, otherParams = getCustomQueryParams(location2), customQueryParams =
|
|
2526
|
+
}, selectedPanel = addonPanel || void 0, storyId = storyIdFromUrl, otherParams = getCustomQueryParams(location2), customQueryParams = isEqual(prevParams, otherParams) ? prevParams : otherParams;
|
|
2531
2527
|
return prevParams = customQueryParams, { viewMode, layout, ui, selectedPanel, location: location2, path, customQueryParams, storyId };
|
|
2532
2528
|
}, init12 = (moduleArgs) => {
|
|
2533
2529
|
let { store: store2, navigate, provider, fullAPI } = moduleArgs, navigateTo = (path, queryParams = {}, options = {}) => navigate(buildNavigationUrl(path, queryParams), options), api = {
|
|
@@ -2544,7 +2540,7 @@ var parseBoolean = (value) => {
|
|
|
2544
2540
|
} = options;
|
|
2545
2541
|
if (refId && !refs[refId])
|
|
2546
2542
|
throw new Error(`Invalid refId: ${refId}`);
|
|
2547
|
-
let pathname = location2.pathname || "/", originAddress =
|
|
2543
|
+
let pathname = location2.pathname || "/", originAddress = global.window.location.origin + pathname, networkAddress = global.FORKBOOK_NETWORK_ADDRESS ?? originAddress, managerBase = base === "origin" ? originAddress : base === "network" ? networkAddress : pathname, previewBaseUrl = base ? managerBase : global.document?.baseURI || originAddress, previewBase = refId ? refs[refId].url + "/iframe.html" : resolveIframeUrl(previewBaseUrl, { absolute: !!base }), refParam = refId ? `&refId=${encodeURIComponent(refId)}` : "", { args = "", globals = "", ...otherParams } = queryParams, argsParam = inheritArgs ? mergeSerializedParams(customQueryParams?.args ?? "", args) : args, globalsParam = inheritGlobals ? mergeSerializedParams(customQueryParams?.globals ?? "", globals) : globals, managerQueryParams = omit(otherParams, ["embed", "freeze"]), previewQueryParams = omit(otherParams, ["id", "viewMode", "embed", "freeze"]), customManagerParams = stringify(managerQueryParams, {
|
|
2548
2544
|
nesting: !0,
|
|
2549
2545
|
nestingSyntax: "js"
|
|
2550
2546
|
}), customPreviewParams = stringify(previewQueryParams, {
|
|
@@ -2577,7 +2573,7 @@ var parseBoolean = (value) => {
|
|
|
2577
2573
|
let { customQueryParams } = store2.getState(), update2 = { ...customQueryParams };
|
|
2578
2574
|
for (let [key, value] of Object.entries(input))
|
|
2579
2575
|
value == null ? delete update2[key] : update2[key] = value;
|
|
2580
|
-
|
|
2576
|
+
isEqual(customQueryParams, update2) || (store2.setState({ customQueryParams: update2 }), provider.channel?.emit(UPDATE_QUERY_PARAMS, update2));
|
|
2581
2577
|
},
|
|
2582
2578
|
applyQueryParams(input, options) {
|
|
2583
2579
|
let { path, hash = "", queryParams } = api.getUrlState();
|
|
@@ -2599,7 +2595,7 @@ var parseBoolean = (value) => {
|
|
|
2599
2595
|
provider.channel?.on(SET_CURRENT_STORY2, () => updateArgsParam());
|
|
2600
2596
|
let handleOrId;
|
|
2601
2597
|
return provider.channel?.on(STORY_ARGS_UPDATED2, () => {
|
|
2602
|
-
"requestIdleCallback" in
|
|
2598
|
+
"requestIdleCallback" in global.window ? (handleOrId && global.window.cancelIdleCallback(handleOrId), handleOrId = global.window.requestIdleCallback(updateArgsParam, { timeout: 1e3 })) : (handleOrId && clearTimeout(handleOrId), setTimeout(updateArgsParam, 100));
|
|
2603
2599
|
}), provider.channel?.on(GLOBALS_UPDATED2, ({ userGlobals, initialGlobals }) => {
|
|
2604
2600
|
let { path, hash = "", queryParams } = api.getUrlState(), globalsString = buildArgsParam(initialGlobals, merge_default(initialGlobals, userGlobals));
|
|
2605
2601
|
navigateTo(
|
|
@@ -2629,14 +2625,13 @@ __export(versions_exports, {
|
|
|
2629
2625
|
init: () => init13
|
|
2630
2626
|
});
|
|
2631
2627
|
var import_memoizerific3 = __toESM(require_memoizerific(), 1);
|
|
2632
|
-
import { global as global7 } from "@storybook/global";
|
|
2633
2628
|
import semver from "semver";
|
|
2634
2629
|
|
|
2635
2630
|
// src/manager-api/version.ts
|
|
2636
2631
|
var version = "11.0.0-alpha.6";
|
|
2637
2632
|
|
|
2638
2633
|
// src/manager-api/modules/versions.ts
|
|
2639
|
-
var { VERSIONCHECK } =
|
|
2634
|
+
var { VERSIONCHECK } = global, getVersionCheckData = (0, import_memoizerific3.default)(1)(() => {
|
|
2640
2635
|
try {
|
|
2641
2636
|
return { ...JSON.parse(VERSIONCHECK).data || {} };
|
|
2642
2637
|
} catch {
|
|
@@ -2701,7 +2696,6 @@ import {
|
|
|
2701
2696
|
SET_WHATS_NEW_CACHE,
|
|
2702
2697
|
TOGGLE_WHATS_NEW_NOTIFICATIONS
|
|
2703
2698
|
} from "@aussieljk/forkbook/internal/core-events";
|
|
2704
|
-
import { global as global8 } from "@storybook/global";
|
|
2705
2699
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
2706
2700
|
var WHATS_NEW_NOTIFICATION_ID = "whats-new", ForkbookIcon = ({ size = 14 }) => jsx2("span", { role: "img", "aria-label": "Forkbook", style: { fontSize: size, lineHeight: 1 }, children: "\u{1FAA9}" }), init14 = ({ fullAPI, store: store2, provider }) => {
|
|
2707
2701
|
let state = {
|
|
@@ -2738,7 +2732,7 @@ var WHATS_NEW_NOTIFICATION_ID = "whats-new", ForkbookIcon = ({ size = 14 }) => j
|
|
|
2738
2732
|
provider.channel?.emit(SET_WHATS_NEW_CACHE, cache);
|
|
2739
2733
|
}
|
|
2740
2734
|
return { init: async () => {
|
|
2741
|
-
if (
|
|
2735
|
+
if (global.CONFIG_TYPE !== "DEVELOPMENT")
|
|
2742
2736
|
return;
|
|
2743
2737
|
let whatsNewData = await getLatestWhatsNewPost();
|
|
2744
2738
|
setWhatsNewState(whatsNewData);
|
package/dist/manager-errors.d.ts
CHANGED
package/dist/mcp/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
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
|
package_default
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
15
|
-
import "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-MZ2GSR3G.js";
|
|
15
|
+
import "../_node-chunks/chunk-A35J7YYA.js";
|
|
16
16
|
|
|
17
17
|
// src/mcp/index.ts
|
|
18
18
|
import { McpServer } from "tmcp";
|
|
@@ -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
|
walk
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-ZTFNOXZF.js";
|
|
15
15
|
import {
|
|
16
16
|
userModuleExtensions
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
18
|
-
import "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-TPSJW4CQ.js";
|
|
18
|
+
import "../_node-chunks/chunk-A35J7YYA.js";
|
|
19
19
|
|
|
20
20
|
// src/mocking-utils/automock.ts
|
|
21
21
|
import MagicString from "magic-string";
|
|
@@ -215,7 +215,7 @@ import { readFileSync } from "node:fs";
|
|
|
215
215
|
import { generate, parser, types as t } from "@aussieljk/forkbook/internal/babel";
|
|
216
216
|
import { logger } from "@aussieljk/forkbook/internal/node-logger";
|
|
217
217
|
import { telemetry } from "@aussieljk/forkbook/internal/telemetry";
|
|
218
|
-
import { transformSync } from "
|
|
218
|
+
import { transformSync } from "rolldown/utils";
|
|
219
219
|
import { basename, normalize } from "pathe";
|
|
220
220
|
|
|
221
221
|
// src/mocking-utils/resolve.ts
|
|
@@ -303,7 +303,12 @@ function extractMockCalls(options, parse, root, findMockRedirect2) {
|
|
|
303
303
|
return !1;
|
|
304
304
|
};
|
|
305
305
|
var hasSpyTrue = hasSpyTrue2;
|
|
306
|
-
let previewConfigCode = readFileSync(options.previewConfigPath, "utf-8"), { code: jsCode } = transformSync(previewConfigCode, {
|
|
306
|
+
let previewConfigCode = readFileSync(options.previewConfigPath, "utf-8"), { code: jsCode, errors } = transformSync(options.previewConfigPath, previewConfigCode, {
|
|
307
|
+
lang: "tsx"
|
|
308
|
+
});
|
|
309
|
+
if (errors.length)
|
|
310
|
+
throw new Error(errors[0].message);
|
|
311
|
+
let ast = parse(jsCode), mocks = [];
|
|
307
312
|
return walk(ast, {
|
|
308
313
|
// @ts-expect-error - Node comes from babel
|
|
309
314
|
async enter(node) {
|
|
@@ -3,10 +3,11 @@ import {
|
|
|
3
3
|
} from "../_browser-chunks/chunk-7DQREF4S.js";
|
|
4
4
|
import {
|
|
5
5
|
INTERNAL_DEFAULT_PROJECT_ANNOTATIONS
|
|
6
|
-
} from "../_browser-chunks/chunk-
|
|
6
|
+
} from "../_browser-chunks/chunk-O24AZJZ7.js";
|
|
7
7
|
import "../_browser-chunks/chunk-GNZY6LOW.js";
|
|
8
|
-
import "../_browser-chunks/chunk-
|
|
8
|
+
import "../_browser-chunks/chunk-EQKMUQF3.js";
|
|
9
9
|
import "../_browser-chunks/chunk-WHQRNHXD.js";
|
|
10
|
+
import "../_browser-chunks/chunk-6AKCRYVX.js";
|
|
10
11
|
import "../_browser-chunks/chunk-IMSF75WX.js";
|
|
11
12
|
|
|
12
13
|
// src/nextjs-vite/index.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
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
|
-
import "../../_node-chunks/chunk-
|
|
12
|
+
import "../../_node-chunks/chunk-A35J7YYA.js";
|
|
13
13
|
|
|
14
14
|
// src/nextjs-vite/node/index.ts
|
|
15
15
|
function defineMain(config) {
|
|
@@ -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
|
resolvePackageDir
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
15
|
-
import "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-DRLBJM6X.js";
|
|
15
|
+
import "../_node-chunks/chunk-TPSJW4CQ.js";
|
|
16
16
|
import {
|
|
17
17
|
__commonJS,
|
|
18
18
|
__require,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-A35J7YYA.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/lilconfig/src/index.js
|
|
23
23
|
var require_src = __commonJS({
|
|
@@ -341,7 +341,7 @@ var require_req = __commonJS({
|
|
|
341
341
|
}
|
|
342
342
|
if (jiti === void 0)
|
|
343
343
|
try {
|
|
344
|
-
jiti = (await import("
|
|
344
|
+
jiti = (await import("jiti")).default;
|
|
345
345
|
} catch (error) {
|
|
346
346
|
importError.push(error);
|
|
347
347
|
}
|
|
@@ -458,7 +458,7 @@ var require_src2 = __commonJS({
|
|
|
458
458
|
async function yamlLoader(_, content) {
|
|
459
459
|
if (!yaml)
|
|
460
460
|
try {
|
|
461
|
-
yaml = await import("../_node-chunks/dist-
|
|
461
|
+
yaml = await import("../_node-chunks/dist-NS676VJR.js");
|
|
462
462
|
} catch (e) {
|
|
463
463
|
throw new Error(
|
|
464
464
|
`'yaml' is required for the YAML configuration files. Make sure it is installed
|
|
@@ -1,15 +1,15 @@
|
|
|
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
|
-
import "../../_node-chunks/chunk-
|
|
12
|
+
import "../../_node-chunks/chunk-A35J7YYA.js";
|
|
13
13
|
|
|
14
14
|
// src/nextjs-vite/vite-plugin/index.ts
|
|
15
15
|
import vitePluginStorybookNextjs from "@aussieljk/forkbook/internal/nextjs-vite-plugin";
|
|
@@ -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
|
|
@@ -14,16 +14,14 @@ import {
|
|
|
14
14
|
getAlias,
|
|
15
15
|
getExecutionEnvironment,
|
|
16
16
|
getNextjsMajorVersion,
|
|
17
|
-
getViteMajorVersion,
|
|
18
17
|
isVitestEnv,
|
|
19
18
|
vitePluginNextMocks
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
21
|
-
import "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-CBUQY454.js";
|
|
20
|
+
import "../_node-chunks/chunk-A35J7YYA.js";
|
|
22
21
|
|
|
23
22
|
// src/nextjs-vite-plugin/index.ts
|
|
24
23
|
import { dirname, resolve as resolve3 } from "pathe";
|
|
25
24
|
import { createRequire as createRequire3 } from "node:module";
|
|
26
|
-
import tsconfigPaths from "vite-tsconfig-paths";
|
|
27
25
|
|
|
28
26
|
// src/nextjs-vite-plugin/plugins/next-env/plugin.ts
|
|
29
27
|
import { resolve } from "pathe";
|
|
@@ -596,7 +594,6 @@ typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
|
596
594
|
});
|
|
597
595
|
|
|
598
596
|
// src/nextjs-vite-plugin/index.ts
|
|
599
|
-
import nextLoadJsConfig2 from "next/dist/build/load-jsconfig.js";
|
|
600
597
|
import {
|
|
601
598
|
PHASE_DEVELOPMENT_SERVER,
|
|
602
599
|
PHASE_PRODUCTION_BUILD,
|
|
@@ -630,7 +627,7 @@ var vitePluginNextDynamic = () => ({
|
|
|
630
627
|
import { createHash } from "node:crypto";
|
|
631
628
|
import fs2 from "node:fs";
|
|
632
629
|
import { createRequire as createRequire2 } from "node:module";
|
|
633
|
-
import { createFilter as createFilter2 } from "
|
|
630
|
+
import { createFilter as createFilter2 } from "vite";
|
|
634
631
|
import path4 from "pathe";
|
|
635
632
|
import probeSync from "probe-image-size/sync.js";
|
|
636
633
|
import { dedent as dedent3 } from "ts-dedent";
|
|
@@ -784,28 +781,16 @@ function interopDefault(module) {
|
|
|
784
781
|
}
|
|
785
782
|
|
|
786
783
|
// src/nextjs-vite-plugin/index.ts
|
|
787
|
-
var require4 = createRequire3(import.meta.url), compiledReactDir = dirname(require4.resolve("next/dist/compiled/react")), compiledReactDomDir = dirname(require4.resolve("next/dist/compiled/react-dom"))
|
|
788
|
-
// biome-ignore lint/suspicious/noExplicitAny: CJS support
|
|
789
|
-
nextLoadJsConfig2.default || nextLoadJsConfig2
|
|
790
|
-
);
|
|
784
|
+
var require4 = createRequire3(import.meta.url), compiledReactDir = dirname(require4.resolve("next/dist/compiled/react")), compiledReactDomDir = dirname(require4.resolve("next/dist/compiled/react-dom"));
|
|
791
785
|
function VitePlugin({ dir = process.cwd(), image } = {}) {
|
|
792
|
-
let resolvedDir = resolve3(dir),
|
|
786
|
+
let resolvedDir = resolve3(dir), nextConfigResolver = Promise.withResolvers(), nodeEnv = process.env.NODE_ENV;
|
|
793
787
|
return loadNextConfig(nodeEnv === "development" ? PHASE_DEVELOPMENT_SERVER : nodeEnv === "test" ? PHASE_TEST : PHASE_PRODUCTION_BUILD, resolvedDir).then(nextConfigResolver.resolve, nextConfigResolver.reject), [
|
|
794
|
-
isVite8orNewer ? null : nextConfigResolver.promise.then(async (nextConfig) => {
|
|
795
|
-
let loadedJSConfig = await loadJsConfig2(resolvedDir, nextConfig), { enforce, ...tsconfigPathConfig } = tsconfigPaths({
|
|
796
|
-
root: resolvedDir,
|
|
797
|
-
...loadedJSConfig.jsConfigPath ? { projects: [loadedJSConfig.jsConfigPath] } : {}
|
|
798
|
-
});
|
|
799
|
-
return {
|
|
800
|
-
...tsconfigPathConfig
|
|
801
|
-
};
|
|
802
|
-
}),
|
|
803
788
|
{
|
|
804
789
|
name: "@aussieljk/forkbook/internal/nextjs-vite-plugin",
|
|
805
790
|
enforce: "pre",
|
|
806
791
|
async config(config) {
|
|
807
792
|
let isNext16orNewer = getNextjsMajorVersion() >= 16, nextConfig = await nextConfigResolver.promise, executionEnvironment = getExecutionEnvironment(config), resolveConfig = {
|
|
808
|
-
|
|
793
|
+
tsconfigPaths: !0,
|
|
809
794
|
...!isVitestEnv && {
|
|
810
795
|
alias: [
|
|
811
796
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7qov04rgzsv from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7qov04rgzsv from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7qov04rgzsv from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7qov04rgzsv.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7qov04rgzsv.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,8 +12,8 @@ var require = CJS_COMPAT_NODE_MODULE_ubhjlnocuxr.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
getAlias,
|
|
14
14
|
getAlias2
|
|
15
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
-
import "../../_node-chunks/chunk-
|
|
15
|
+
} from "../../_node-chunks/chunk-CBUQY454.js";
|
|
16
|
+
import "../../_node-chunks/chunk-A35J7YYA.js";
|
|
17
17
|
|
|
18
18
|
// src/nextjs-vite-plugin/mocks/storybook.global.ts
|
|
19
19
|
import { createRequire } from "node:module";
|