@aussieljk/forkbook 0.0.1-12 → 0.0.1-14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_browser-chunks/{Color-TA43572R.js → Color-SRJLV635.js} +1 -1
- package/dist/_browser-chunks/{chunk-FRAOQJDI.js → chunk-3QPZOXB7.js} +1 -5
- package/dist/_browser-chunks/{chunk-GRO2ZYEJ.js → chunk-4BOJAE7P.js} +12 -8
- package/dist/_browser-chunks/{chunk-ARZTIHZK.js → chunk-6SL45YM3.js} +3 -3
- package/dist/_browser-chunks/{chunk-D2Z5KXPS.js → chunk-BLCZ3C5M.js} +29 -21
- package/dist/_browser-chunks/{chunk-XV3AEPJW.js → chunk-DHTLVXAL.js} +37 -44
- package/dist/_browser-chunks/{chunk-5MRMYSUN.js → chunk-DISGPOF4.js} +54 -51
- package/dist/_browser-chunks/{chunk-2UKY4NXZ.js → chunk-EBSOKHFG.js} +7 -1
- package/dist/_browser-chunks/{chunk-GGALYEQS.js → chunk-ECMVTOVD.js} +1 -1
- package/dist/_browser-chunks/{chunk-DT7BB545.js → chunk-ENHFQXYS.js} +2 -2
- package/dist/_browser-chunks/{chunk-IGD46SQI.js → chunk-EW2M3URL.js} +1 -1
- package/dist/_browser-chunks/{chunk-2WMECYEY.js → chunk-FCULT3AE.js} +3 -3
- package/dist/_browser-chunks/{chunk-3O4QUF3D.js → chunk-HZFHNYRC.js} +1 -1
- package/dist/_browser-chunks/{chunk-QSYOMLRG.js → chunk-J4UZWNQC.js} +71 -56
- package/dist/_browser-chunks/{chunk-5H4KFI44.js → chunk-KQJ4T6JL.js} +30 -24
- package/dist/_browser-chunks/{chunk-5XGERZHU.js → chunk-NK5SGJNG.js} +7 -5
- package/dist/_browser-chunks/{chunk-2YWS25WY.js → chunk-PQRPDA4U.js} +2 -2
- package/dist/_browser-chunks/{chunk-2JDQ35OA.js → chunk-PU7D2WDP.js} +0 -11
- package/dist/_browser-chunks/{chunk-AQVUHXWY.js → chunk-QFO2B4X2.js} +26 -25
- package/dist/_browser-chunks/{chunk-HGIW4I4J.js → chunk-S7N7Z5TY.js} +38 -27
- package/dist/_browser-chunks/{chunk-F22A5EGD.js → chunk-TISSQK65.js} +1 -1
- package/dist/_browser-chunks/{chunk-UDR26TXA.js → chunk-YJO5BK52.js} +7 -3
- package/dist/_browser-chunks/{chunk-3HM3VWJS.js → chunk-ZF37BMDS.js} +6 -2
- package/dist/_node-chunks/{attached-runtime-AU2RZM4Y.js → attached-runtime-6PIRX7CQ.js} +28 -28
- package/dist/_node-chunks/{builder-manager-UPXA2KKT.js → builder-manager-V5HY2EIW.js} +15 -15
- package/dist/_node-chunks/{chunk-QX6RXAEU.js → chunk-2DGZADP4.js} +6 -6
- package/dist/_node-chunks/{chunk-MNNESU33.js → chunk-2WWD7IJS.js} +8 -8
- package/dist/_node-chunks/{chunk-BOWRRVJM.js → chunk-3MBTHKMD.js} +6 -6
- package/dist/_node-chunks/{chunk-JKPKEYSH.js → chunk-3MBZZMYZ.js} +6 -6
- package/dist/_node-chunks/{chunk-HMQUTLMS.js → chunk-475RIYQK.js} +6 -6
- package/dist/_node-chunks/{chunk-WNEWL2PL.js → chunk-4IMBYVSQ.js} +6 -6
- package/dist/_node-chunks/{chunk-K2K6KTBC.js → chunk-4IRW4KVR.js} +8 -8
- package/dist/_node-chunks/{chunk-2GJBHF56.js → chunk-4MFP6QG3.js} +6 -6
- package/dist/_node-chunks/{chunk-C2HVGXLD.js → chunk-4RBPVBKC.js} +264 -312
- package/dist/_node-chunks/{chunk-W5ZAUN5R.js → chunk-56Y4ZIQS.js} +7 -7
- package/dist/_node-chunks/{chunk-2Q3YWQSK.js → chunk-5A53X2WP.js} +6 -6
- package/dist/_node-chunks/{chunk-LTJ4AYDM.js → chunk-5OVUKRFB.js} +6 -6
- package/dist/_node-chunks/{chunk-TXZTC6LA.js → chunk-5VLJNYCG.js} +14 -10
- package/dist/_node-chunks/{chunk-BTDLJXAT.js → chunk-6BYFV3Q7.js} +6 -6
- package/dist/_node-chunks/{chunk-FFUIQJRI.js → chunk-6C6EDUW3.js} +14 -14
- package/dist/_node-chunks/{chunk-NUSHY22I.js → chunk-7F55FT5N.js} +7 -7
- package/dist/_node-chunks/{chunk-R73PEGQU.js → chunk-AWQ6IMN5.js} +10 -12
- package/dist/_node-chunks/{chunk-UKLCYEZU.js → chunk-AYCHV6XS.js} +7 -7
- package/dist/_node-chunks/{chunk-H7UVQBCQ.js → chunk-CCJIZTUJ.js} +16 -20
- package/dist/_node-chunks/{chunk-FKI7K3GE.js → chunk-CEBBAWIT.js} +6 -6
- package/dist/_node-chunks/{chunk-6772LYNF.js → chunk-CH5FN27Z.js} +37 -31
- package/dist/_node-chunks/{chunk-3MJZ5GI2.js → chunk-CM4ALPXN.js} +6 -6
- package/dist/_node-chunks/{chunk-NPSIAK46.js → chunk-CXSBVV4J.js} +6 -6
- package/dist/_node-chunks/{chunk-POA32M7F.js → chunk-DBZ3MV24.js} +8 -8
- package/dist/_node-chunks/{chunk-MNQVVJZN.js → chunk-DDKUSQFU.js} +6 -6
- package/dist/_node-chunks/{chunk-5N7YRHXJ.js → chunk-DGXCQ24N.js} +6 -6
- package/dist/_node-chunks/{chunk-JB4457FJ.js → chunk-DLQVZMTD.js} +6 -6
- package/dist/_node-chunks/{chunk-ORSH2FXG.js → chunk-DMIUL52J.js} +6 -6
- package/dist/_node-chunks/{chunk-O2CCUB5T.js → chunk-DQHAJZYL.js} +7 -7
- package/dist/_node-chunks/{chunk-NXRZL2PR.js → chunk-DYHMJVLZ.js} +6 -6
- package/dist/_node-chunks/{chunk-3X67K6EI.js → chunk-ESF43LCU.js} +11 -11
- package/dist/_node-chunks/{chunk-VJEN2JM3.js → chunk-EYZMI5JO.js} +8 -8
- package/dist/_node-chunks/{chunk-5KMW5XXM.js → chunk-FDWORQWO.js} +6 -6
- package/dist/_node-chunks/{chunk-UGQFYYBC.js → chunk-FMXUZSLI.js} +6 -6
- package/dist/_node-chunks/{chunk-OSNOV4EH.js → chunk-G7CEHU7W.js} +7 -7
- package/dist/_node-chunks/{chunk-NO7MF6VR.js → chunk-H7BW4AVF.js} +6 -6
- package/dist/_node-chunks/{chunk-SPCPGRYF.js → chunk-H7OP7USW.js} +7 -7
- package/dist/_node-chunks/{chunk-JXS4P2RM.js → chunk-HIUJFVVI.js} +7 -7
- package/dist/_node-chunks/chunk-HLVUFCKZ.js +18 -0
- package/dist/_node-chunks/{chunk-ZUK5ZLPP.js → chunk-HXFN2M2F.js} +6 -6
- package/dist/_node-chunks/{chunk-RMJNWFPV.js → chunk-IWNGZZOH.js} +16 -10
- package/dist/_node-chunks/{chunk-SUHBBHKR.js → chunk-IXZUAPGY.js} +6 -6
- package/dist/_node-chunks/{chunk-5MYXWAKD.js → chunk-IY3BJJVM.js} +33 -31
- package/dist/_node-chunks/{chunk-22A63J7O.js → chunk-JBQXQVOG.js} +7 -7
- package/dist/_node-chunks/{chunk-PHB6QBHM.js → chunk-K3M6GTPC.js} +10 -10
- package/dist/_node-chunks/{chunk-FUDG3QKB.js → chunk-K5OUTGSQ.js} +7 -7
- package/dist/_node-chunks/{chunk-DNX4BLMS.js → chunk-KE27G2SG.js} +7 -7
- package/dist/_node-chunks/{chunk-HW4T3OXA.js → chunk-KO7CKNTP.js} +7 -7
- package/dist/_node-chunks/{chunk-WUVQ465T.js → chunk-LBAKDZV6.js} +6 -6
- package/dist/_node-chunks/{chunk-IFHNMS7I.js → chunk-LGMNVTJZ.js} +20 -20
- package/dist/_node-chunks/{chunk-QBWGJYHY.js → chunk-LXLNUUFW.js} +6 -6
- package/dist/_node-chunks/{chunk-22TWJGGQ.js → chunk-MACS5P6Q.js} +18 -21
- package/dist/_node-chunks/{chunk-KMC5WWQS.js → chunk-NRYRRB6R.js} +7 -7
- package/dist/_node-chunks/{chunk-2X3WAH7V.js → chunk-NZ2SSNU7.js} +7 -7
- package/dist/_node-chunks/{chunk-JHX35YKT.js → chunk-OGF5O46G.js} +6 -6
- package/dist/_node-chunks/{chunk-QSKVNZCF.js → chunk-OZM2N3ZY.js} +7 -7
- package/dist/_node-chunks/{chunk-FAR3NIPG.js → chunk-PB5OW47R.js} +15 -9
- package/dist/_node-chunks/{chunk-U5HVQTHI.js → chunk-PTMZZHGA.js} +6 -6
- package/dist/_node-chunks/{chunk-FR67COFW.js → chunk-PU4TVXCV.js} +7 -7
- package/dist/_node-chunks/{chunk-2W525A4I.js → chunk-PXN2IFPG.js} +7 -7
- package/dist/_node-chunks/{chunk-EFZAYIPN.js → chunk-Q7ADULRW.js} +6 -6
- package/dist/_node-chunks/{chunk-IKUSSZJ3.js → chunk-QGJV32VT.js} +10 -10
- package/dist/_node-chunks/{chunk-KQTFSKC6.js → chunk-QP5A3OYV.js} +13 -11
- package/dist/_node-chunks/{chunk-KZPWZM2E.js → chunk-QTB7G4LF.js} +39 -44
- package/dist/_node-chunks/{chunk-AHNN3TQH.js → chunk-QVEPLFS4.js} +8 -8
- package/dist/_node-chunks/chunk-RG3VKQXD.js +11 -0
- package/dist/_node-chunks/{chunk-IOXDHKFF.js → chunk-RH4PXLHE.js} +7 -7
- package/dist/_node-chunks/{chunk-7SBWGNA7.js → chunk-S2IX32KL.js} +8 -8
- package/dist/_node-chunks/{chunk-ABCEMTIP.js → chunk-SAVT2SUC.js} +6 -6
- package/dist/_node-chunks/{chunk-RHH7VDIY.js → chunk-ST7CLK7N.js} +8 -8
- package/dist/_node-chunks/{chunk-JMFTALJW.js → chunk-T3SCXAMA.js} +6 -6
- package/dist/_node-chunks/{chunk-RT2LVWTC.js → chunk-TH6GIF3K.js} +7 -7
- package/dist/_node-chunks/{chunk-34DNGOCZ.js → chunk-TR5RJPQV.js} +8 -8
- package/dist/_node-chunks/{chunk-G6GOV7H7.js → chunk-UOIQLKIA.js} +6 -6
- package/dist/_node-chunks/{chunk-UFZUSE3Y.js → chunk-USLPZFTU.js} +6 -6
- package/dist/_node-chunks/{chunk-XCNYQV2M.js → chunk-UWM37IXC.js} +9 -9
- package/dist/_node-chunks/{chunk-2MGPZNKV.js → chunk-UZRRWBTM.js} +11 -8
- package/dist/_node-chunks/{chunk-BMM74ZQW.js → chunk-VHSRKW3N.js} +6 -6
- package/dist/_node-chunks/{chunk-XOAWAXUH.js → chunk-WDSTXRQP.js} +7 -7
- package/dist/_node-chunks/{chunk-BDATIKVV.js → chunk-WWGYV7QI.js} +7 -7
- package/dist/_node-chunks/{chunk-HW7RCOV4.js → chunk-XAK4JWKF.js} +8 -8
- package/dist/_node-chunks/{chunk-7F6TIY4T.js → chunk-XOHD6XOU.js} +8 -8
- package/dist/_node-chunks/{chunk-HPXM4SGT.js → chunk-XXQUU56M.js} +9 -9
- package/dist/_node-chunks/{chunk-Y472MP5U.js → chunk-YAASP4OM.js} +8 -8
- package/dist/_node-chunks/{chunk-Q64ESHBN.js → chunk-YHXP7DMA.js} +8 -8
- package/dist/_node-chunks/{chunk-ZCKTYMZT.js → chunk-YMF2ZP77.js} +8 -8
- package/dist/_node-chunks/{chunk-76M6JG5T.js → chunk-YUZDQTG3.js} +7 -7
- package/dist/_node-chunks/{chunk-DXR3YGRT.js → chunk-ZDMZKYDQ.js} +6 -6
- package/dist/_node-chunks/dist-474BX4RE.js +27 -0
- package/dist/_node-chunks/dist-U25X3BJ2.js +16 -0
- package/dist/_node-chunks/{local-runtime-Z667YPXR.js → local-runtime-2DFMXO2N.js} +19 -19
- package/dist/_node-chunks/{mdx-plugin-BPRPTZNP.js → mdx-plugin-FEC4UKBF.js} +13 -13
- package/dist/_node-chunks/{monorepo-GO54BY34.js → monorepo-TRTFPD3M.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-PEHFNJQ5.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-D3VPQGCI.js} +11 -11
- package/dist/_node-chunks/optimized-tests-4LM55CRN.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-64HQIVWK.js → pattern-copy-play-ZUQ2ZQ7T.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-OUVXGSJV.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-2BSEZ7AC.js → rehype-external-links-MEOVNWZI.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-6253EA36.js → rehype-slug-RRLOM7B4.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-4PAAPG3J.js → relaxed-limits-RGYTFJP3.js} +11 -11
- package/dist/_node-chunks/{run-3SQW3FRF.js → run-FRTM74WS.js} +17 -17
- package/dist/_node-chunks/{run-XJT3YVMZ.js → run-YVMIX6AJ.js} +22 -20
- package/dist/_node-chunks/{setup-JIYCTADZ.js → setup-4TBDLNSA.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-W74SGWHT.js → vitest.config.4.template-GCYBLHAD.js} +7 -7
- package/dist/actions/decorator.js +5 -2
- package/dist/actions/index.d.ts +3 -3
- package/dist/actions/index.js +1 -1
- package/dist/addon-a11y/index.js +1 -1
- package/dist/addon-a11y/manager.js +5 -5
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.d.ts +8 -2
- package/dist/addon-a11y/preview.js +1 -1
- package/dist/addon-docs/blocks.d.ts +98 -83
- package/dist/addon-docs/blocks.js +10 -10
- package/dist/addon-docs/index.d.ts +2 -2
- package/dist/addon-docs/manager.js +1 -1
- package/dist/addon-docs/preset.js +12 -12
- package/dist/addon-docs/preview.d.ts +3 -1
- package/dist/addon-links/index.d.ts +2 -1
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-mcp/preset.js +10 -10
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +2 -2
- package/dist/addon-ondevice-controls/index.js +1 -1
- package/dist/addon-ondevice-controls/register.js +1 -1
- package/dist/addon-pseudo-states/index.js +1 -1
- package/dist/addon-pseudo-states/preview.d.ts +1 -1
- package/dist/addon-pseudo-states/preview.js +1 -1
- package/dist/addon-themes/index.d.ts +6 -5
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +4 -4
- package/dist/addon-vitest/node/coverage-reporter.js +8 -8
- package/dist/addon-vitest/node/vitest.js +22 -22
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +20 -19
- package/dist/addon-vitest/vitest-plugin/global-setup.js +8 -8
- package/dist/addon-vitest/vitest-plugin/index.js +13 -13
- package/dist/babel/index.d.ts +209 -212
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +60 -57
- package/dist/bin/dispatcher.js +10 -10
- package/dist/bin/loader.js +8 -8
- package/dist/builder-vite/index.d.ts +1 -1
- package/dist/builder-vite/index.js +15 -15
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.d.ts +1 -1
- package/dist/channels/index.js +2 -2
- package/dist/{chunk-BmCH-L7_.d.ts → chunk-BCG2ui5q.d.ts} +236 -249
- package/dist/{chunk-DoIGKY33.d.ts → chunk-BLZXEm1K.d.ts} +6 -8
- package/dist/{chunk-evfhuBNU.d.ts → chunk-BNRZY6Jq.d.ts} +2 -2
- package/dist/{chunk-Bn1RoGAP.d.ts → chunk-BV_hETtB.d.ts} +2 -2
- package/dist/chunk-BcYKnZln.d.ts +10 -0
- package/dist/{chunk-BCoJQE-f.d.ts → chunk-BtKww7r1.d.ts} +6 -4
- package/dist/{chunk-Bpi2tz-6.d.ts → chunk-Bubi-WAs.d.ts} +20 -17
- package/dist/{chunk-pcFXCimE.d.ts → chunk-CmV7WZzR.d.ts} +124 -2
- package/dist/{chunk-BGkgZp-H.d.ts → chunk-D3uSIa6H.d.ts} +9 -1
- package/dist/{chunk-DROZ9oel.d.ts → chunk-DNCU78oW.d.ts} +110 -9
- package/dist/{chunk-IMedIHPn.d.ts → chunk-LWwxlbee.d.ts} +2 -2
- package/dist/{chunk-CfEntHiI.d.ts → chunk-u_gGuTrz.d.ts} +5 -5
- package/dist/cli/index.d.ts +3 -3
- package/dist/cli/index.js +21 -21
- package/dist/cli/skills/content/index.d.ts +1 -1
- 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 +3 -3
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.d.ts +20 -21
- package/dist/common/index.d.ts +12 -12
- package/dist/common/index.js +34 -34
- package/dist/components/index.d.ts +40 -29
- package/dist/components/index.js +60 -61
- package/dist/core-events/index.d.ts +2 -2
- package/dist/core-server/index.d.ts +12 -7
- package/dist/core-server/index.js +87 -79
- package/dist/core-server/presets/common-manager.js +35 -28
- package/dist/core-server/presets/common-override-preset.js +10 -10
- package/dist/core-server/presets/common-preset.js +50 -47
- 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 +34 -37
- package/dist/csf-tools/index.d.ts +11 -7
- package/dist/csf-tools/index.js +12 -12
- package/dist/docs-tools/index.d.ts +332 -16
- package/dist/docs-tools/index.js +3 -3
- package/dist/instrumenter/index.d.ts +4 -4
- package/dist/instrumenter/index.js +24 -14
- package/dist/manager/_manager-chunks/{globals-runtime--RDllwDw.js → globals-runtime-BIrCHXzl.js} +49 -41
- package/dist/manager/_manager-chunks/{globals-runtime-BWciJpaD.js → globals-runtime-BypvnYKb.js} +72 -70
- package/dist/manager/_manager-chunks/{globals-runtime-DhygDQ09.js → globals-runtime-CHSN7ayG.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-BFVFUcji.js → globals-runtime-Cw7lbjdT.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CdLHkSK1.js → globals-runtime-LBSQHYdZ.js} +30 -21
- package/dist/manager/_manager-chunks/{globals-runtime-DweLlyBa.js → globals-runtime-tTC_6sNF.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-BBaBlpAS.js → runtime-BUwzOVia.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-BFgSyEE6.js → runtime-BjFN_NTg.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-Dj8tizGo.js → runtime-Bm0yxY5O.js} +31 -28
- package/dist/manager/_manager-chunks/{runtime-D3Gk2bTl.js → runtime-CmF_ONjM.js} +173 -171
- package/dist/manager/_manager-chunks/{runtime-B2VQIT0n.js → runtime-DAe0yHIe.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-CE_oqcpl.js → runtime-DE1NZ9Fx.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-CRqm7NXD.js → runtime-DNudxxRZ.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-1BcYUf7-.js → runtime-X3QUx4F_.js} +24 -16
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +55 -56
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.d.ts +5 -3
- package/dist/mocking-utils/index.js +16 -17
- package/dist/nextjs-vite/export-mocks/headers/index.js +3 -1
- package/dist/nextjs-vite/export-mocks/link/index.d.ts +4 -1
- package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +9 -1
- package/dist/nextjs-vite/export-mocks/router/index.js +13 -7
- package/dist/nextjs-vite/index.d.ts +1 -1
- package/dist/nextjs-vite/index.js +9 -5
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +10 -10
- package/dist/nextjs-vite/preview.d.ts +2 -1
- package/dist/nextjs-vite/preview.js +1 -1
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.js +12 -22
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +10 -6
- package/dist/node-logger/index.d.ts +2 -2
- package/dist/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +10 -10
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-CBKlMZg2.js → runtime-BYRCSYBN.js} +2 -2
- package/dist/preview/_chunks/{runtime-DZ7fvh0y.js → runtime-Bvh_rfnQ.js} +2 -37
- package/dist/preview/_chunks/{runtime-C_nyb8QT.js → runtime-CdZ1yk7m.js} +2 -2
- package/dist/preview/_chunks/{runtime-Bjm1gBLN.js → runtime-CsO4apr9.js} +37 -28
- package/dist/preview/_chunks/{runtime-BSJ0Ov_b.js → runtime-D2MPrqbU.js} +2 -2
- package/dist/preview/_chunks/{runtime-CElbz0uN.js → runtime-DS0s7U3c.js} +1 -1
- package/dist/preview/_chunks/{runtime-CzTPeFXg.js → runtime-U1Ycy25F.js} +32 -24
- package/dist/preview/_chunks/{runtime-4BNaFIif.js → runtime-tyJLgv6h.js} +50 -48
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +3 -3
- package/dist/preview-api/index.js +7 -7
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -11
- package/dist/react/entry-preview-argtypes.js +1 -1
- package/dist/react/entry-preview-docs.js +1 -1
- package/dist/react/entry-preview.js +1 -1
- package/dist/react/index.d.ts +4 -6
- package/dist/react/index.js +5 -5
- package/dist/react/preset.js +13 -13
- package/dist/react/preview.js +4 -4
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/index.js +11 -7
- package/dist/react-native/metro/node.js +10 -10
- package/dist/react-native/metro/withForkbook.js +13 -13
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-native-ui/index.d.ts +4 -4
- package/dist/react-native-ui-common/index.d.ts +24 -4
- package/dist/react-native-ui-common/index.js +20 -25
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.d.ts +2 -2
- package/dist/router/index.js +4 -2
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +3 -3
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/shared/open-service/toolsets/docs/public.d.ts +5 -5
- package/dist/telemetry/index.js +11 -11
- package/dist/test/index.d.ts +2 -2
- package/dist/test/index.js +14 -8
- package/dist/theming/create.d.ts +1 -1
- package/dist/theming/index.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +1 -1
- package/package.json +2 -2
- package/dist/_node-chunks/chunk-CWIJ2D5F.js +0 -18
- package/dist/_node-chunks/chunk-J3CNNXKQ.js +0 -11
- package/dist/_node-chunks/dist-2DPC664Y.js +0 -27
- package/dist/_node-chunks/dist-XBFUDMFQ.js +0 -16
- package/dist/_node-chunks/optimized-tests-W7U4ZRWX.js +0 -22
- package/dist/_node-chunks/postinstallAddon-XM2BHKDN.js +0 -20
- package/dist/chunk-BGhyFTJO.d.ts +0 -115
- package/dist/chunk-DaVb55-_.d.ts +0 -124
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
cache
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PU4TVXCV.js";
|
|
15
15
|
import {
|
|
16
16
|
importMetaResolve
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WDSTXRQP.js";
|
|
18
18
|
import {
|
|
19
19
|
slash
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SAVT2SUC.js";
|
|
21
21
|
|
|
22
22
|
// src/builder-vite/preset.ts
|
|
23
23
|
import { findConfigFile } from "@aussieljk/forkbook/internal/common";
|
|
@@ -524,7 +524,11 @@ function viteMockPlugin(options) {
|
|
|
524
524
|
}
|
|
525
525
|
try {
|
|
526
526
|
if (!call.redirectPath) {
|
|
527
|
-
let automockedCode = getAutomockCode(
|
|
527
|
+
let automockedCode = getAutomockCode(
|
|
528
|
+
code,
|
|
529
|
+
call.spy,
|
|
530
|
+
(source) => babelParser2(source)
|
|
531
|
+
);
|
|
528
532
|
return {
|
|
529
533
|
code: automockedCode.toString(),
|
|
530
534
|
map: automockedCode.generateMap().toString()
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
formatAttachFallback
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3MBTHKMD.js";
|
|
15
15
|
import {
|
|
16
16
|
AttachUnavailableError,
|
|
17
17
|
EnvironmentMismatchError,
|
|
@@ -20,22 +20,22 @@ import {
|
|
|
20
20
|
attachGateReasonFromError,
|
|
21
21
|
isAttachGateError,
|
|
22
22
|
projectPathsEqual
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HIUJFVVI.js";
|
|
24
24
|
import {
|
|
25
25
|
invokeToolsetMethod,
|
|
26
26
|
resolveToolsetDescription
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-TH6GIF3K.js";
|
|
28
28
|
import {
|
|
29
29
|
parseToolsetMethodId,
|
|
30
30
|
toCliMethodName
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-G7CEHU7W.js";
|
|
32
32
|
import {
|
|
33
33
|
deserializeError
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-4IMBYVSQ.js";
|
|
35
35
|
import {
|
|
36
36
|
StorybookDevServerDisconnectedError,
|
|
37
37
|
formatIssues
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-2WWD7IJS.js";
|
|
39
39
|
|
|
40
40
|
// src/cli/tools/sdk/child-protocol.ts
|
|
41
41
|
function isChildMessage(value) {
|
|
@@ -959,7 +959,7 @@ async function createTools(options = {}, deps = {}) {
|
|
|
959
959
|
}
|
|
960
960
|
async function createAttachedTools(options, deps, clientInfo, requestedMode) {
|
|
961
961
|
process.env.FORKBOOK_ATTACHED_TOOLS = "true";
|
|
962
|
-
let { bootstrapAttachedRuntime } = await import("./attached-runtime-
|
|
962
|
+
let { bootstrapAttachedRuntime } = await import("./attached-runtime-6PIRX7CQ.js"), autoSpawn = process.env.FORKBOOK_TOOLS_CHILD_HOST === "true" ? !1 : options.autoSpawn ?? !0, attached = await (deps.attach ?? ((target) => bootstrapAttachedRuntime({ ...target, autoSpawn })))({
|
|
963
963
|
cwd: options.cwd,
|
|
964
964
|
configDir: options.configDir,
|
|
965
965
|
port: options.port
|
|
@@ -1024,7 +1024,7 @@ async function createLocalTools(options, deps, clientInfo, requestedMode, fallba
|
|
|
1024
1024
|
});
|
|
1025
1025
|
return fallback ? { ...child, ...fallback } : child;
|
|
1026
1026
|
}
|
|
1027
|
-
let { bootstrapToolsRuntime } = await import("./local-runtime-
|
|
1027
|
+
let { bootstrapToolsRuntime } = await import("./local-runtime-2DFMXO2N.js"), runtime;
|
|
1028
1028
|
try {
|
|
1029
1029
|
runtime = await (deps.bootstrap ?? bootstrapToolsRuntime)({
|
|
1030
1030
|
cwd,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.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
|
invariant
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HXFN2M2F.js";
|
|
15
15
|
|
|
16
16
|
// src/cli/detectLanguage.ts
|
|
17
17
|
import { existsSync } from "node:fs";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.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
|
DOCUMENTATION_LINK
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DYHMJVLZ.js";
|
|
15
15
|
import {
|
|
16
16
|
any
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZDMZKYDQ.js";
|
|
18
18
|
|
|
19
19
|
// src/addon-vitest/postinstall.ts
|
|
20
20
|
import * as fs from "node:fs/promises";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "@aussieljk/forkbook/internal/babel";
|
|
48
48
|
import { normalize } from "pathe";
|
|
49
49
|
async function getTemplatePath() {
|
|
50
|
-
return import("./vitest.config.4.template-
|
|
50
|
+
return import("./vitest.config.4.template-GCYBLHAD.js");
|
|
51
51
|
}
|
|
52
52
|
var loadTemplate = async (name, replacements) => {
|
|
53
53
|
let template = (await getTemplatePath()).default;
|
|
@@ -123,9 +123,7 @@ var loadTemplate = async (name, replacements) => {
|
|
|
123
123
|
"watchTriggerPatterns"
|
|
124
124
|
].map(
|
|
125
125
|
(name) => findNamedProp(resolvedTestValue.properties, name)
|
|
126
|
-
).filter(Boolean), topLevelPropSet = new Set(topLevelProps), projectTestProps = resolvedTestValue.properties.filter(
|
|
127
|
-
(p) => !topLevelPropSet.has(p)
|
|
128
|
-
), existingTestProject = {
|
|
126
|
+
).filter(Boolean), topLevelPropSet = new Set(topLevelProps), projectTestProps = resolvedTestValue.properties.filter((p) => !topLevelPropSet.has(p)), existingTestProject = {
|
|
129
127
|
type: "ObjectExpression",
|
|
130
128
|
properties: [
|
|
131
129
|
{
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.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
|
slash
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FMXUZSLI.js";
|
|
15
15
|
|
|
16
16
|
// src/shared/open-service/services/module-graph/types.ts
|
|
17
17
|
import { posix, win32 } from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -52,7 +52,7 @@ var RENAMED_ADDONS = {
|
|
|
52
52
|
function resolveAddonFile(addon, file, extensions = ["js", "mjs", "ts"], configPath) {
|
|
53
53
|
if (!addon || typeof addon != "string") return null;
|
|
54
54
|
addon = RENAMED_ADDONS[addon] ?? addon;
|
|
55
|
-
let resolvePaths = { paths: [cwd] };
|
|
55
|
+
let resolvePaths = { paths: [path.dirname(path.resolve(cwd, configPath))] };
|
|
56
56
|
try {
|
|
57
57
|
let basePath = `${addon}/${file}`;
|
|
58
58
|
return require2.resolve(basePath, resolvePaths), basePath;
|
|
@@ -101,20 +101,16 @@ async function generate({
|
|
|
101
101
|
secured = !1,
|
|
102
102
|
disableUI = !1
|
|
103
103
|
}) {
|
|
104
|
-
let channelHost = host === "auto" ? getLocalIPAddress() : host,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
`forkbook.requires.${useJs ? "js" : "ts"}`
|
|
108
|
-
), main = await loadMainConfig({
|
|
109
|
-
configDir: path2.resolve(cwd2, configPath),
|
|
110
|
-
cwd: cwd2
|
|
104
|
+
let channelHost = host === "auto" ? getLocalIPAddress() : host, configDir = path2.resolve(cwd2, configPath), projectRoot = path2.dirname(configDir), configFromRoot = ensureRelativePathHasDot(path2.relative(projectRoot, configDir)), forkbookRequiresLocation = path2.join(configDir, `forkbook.requires.${useJs ? "js" : "ts"}`), main = await loadMainConfig({
|
|
105
|
+
configDir,
|
|
106
|
+
cwd: projectRoot
|
|
111
107
|
});
|
|
112
108
|
warnDeprecatedMainAddonsField(main, configPath);
|
|
113
109
|
let normalizedStories = normalizeStories(main.stories, {
|
|
114
|
-
configDir
|
|
115
|
-
workingDir:
|
|
110
|
+
configDir,
|
|
111
|
+
workingDir: projectRoot
|
|
116
112
|
}).map((specifier) => {
|
|
117
|
-
let reg = globToRegexp2(`./${specifier.files}`), { path: p, recursive: r, match: m } = toRequireContext(specifier), pathToStory = ensureRelativePathHasDot(path2.posix.relative(
|
|
113
|
+
let reg = globToRegexp2(`./${specifier.files}`), { path: p, recursive: r, match: m } = toRequireContext(specifier), pathToStory = ensureRelativePathHasDot(path2.posix.relative(configFromRoot, p));
|
|
118
114
|
return `{
|
|
119
115
|
titlePrefix: "${specifier.titlePrefix}",
|
|
120
116
|
directory: "${specifier.directory}",
|
|
@@ -132,20 +128,20 @@ async function generate({
|
|
|
132
128
|
...main.deviceAddons ?? []
|
|
133
129
|
], extensions = ["js", "mjs", "jsx", "ts", "tsx"], registeredAddons = [];
|
|
134
130
|
for (let addon of allAddons) {
|
|
135
|
-
let registerPath = resolveAddonFile(getAddonName(addon), "register", extensions,
|
|
131
|
+
let registerPath = resolveAddonFile(getAddonName(addon), "register", extensions, configDir);
|
|
136
132
|
registerPath && registeredAddons.push(`import "${registerPath}";`);
|
|
137
133
|
}
|
|
138
134
|
let enhancers = [];
|
|
139
135
|
docTools && enhancers.push(`require("${RN}/preview")`);
|
|
140
136
|
for (let addon of allAddons) {
|
|
141
|
-
let previewPath = resolveAddonFile(getAddonName(addon), "preview", extensions,
|
|
137
|
+
let previewPath = resolveAddonFile(getAddonName(addon), "preview", extensions, configDir);
|
|
142
138
|
previewPath && enhancers.push(`require('${previewPath}')`);
|
|
143
139
|
}
|
|
144
140
|
let options = "", optionsVar = "", reactNativeOptions = { ...main.reactNative };
|
|
145
141
|
disableUI && (reactNativeOptions.disableUI = !0), reactNativeOptions && typeof reactNativeOptions == "object" && (optionsVar = `const options = ${JSON.stringify(reactNativeOptions, null, 2)}`, options = "options");
|
|
146
142
|
let featuresAssignment = Object.entries(main.features ?? {}).filter(([, value]) => typeof value == "boolean").map(([key, value]) => `globalThis.FEATURES.${key} = ${value};`).join(`
|
|
147
143
|
`);
|
|
148
|
-
getPreviewExists({ configPath }) && enhancers.unshift("require('./preview')");
|
|
144
|
+
getPreviewExists({ configPath: configDir }) && enhancers.unshift("require('./preview')");
|
|
149
145
|
let annotations = `[
|
|
150
146
|
${enhancers.join(`,
|
|
151
147
|
`)}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.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
|
UniversalStoreFollowerTimeoutError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JBQXQVOG.js";
|
|
15
15
|
|
|
16
16
|
// src/shared/universal-store/index.ts
|
|
17
17
|
import { dedent } from "ts-dedent";
|
|
@@ -27,7 +27,11 @@ var FIRST_PARTY_STORE_IDS = /* @__PURE__ */ new Set([
|
|
|
27
27
|
var instances = /* @__PURE__ */ new Map();
|
|
28
28
|
|
|
29
29
|
// src/shared/universal-store/index.ts
|
|
30
|
-
var CHANNEL_EVENT_PREFIX = "UNIVERSAL_STORE:"
|
|
30
|
+
var CHANNEL_EVENT_PREFIX = "UNIVERSAL_STORE:";
|
|
31
|
+
function hasType(event, type) {
|
|
32
|
+
return event.type === type;
|
|
33
|
+
}
|
|
34
|
+
var ProgressState = {
|
|
31
35
|
PENDING: "PENDING",
|
|
32
36
|
RESOLVED: "RESOLVED",
|
|
33
37
|
REJECTED: "REJECTED"
|
|
@@ -35,8 +39,10 @@ var CHANNEL_EVENT_PREFIX = "UNIVERSAL_STORE:", ProgressState = {
|
|
|
35
39
|
constructor(options, environmentOverrides) {
|
|
36
40
|
/** Enable debug logs for this store */
|
|
37
41
|
this.debugging = !1;
|
|
38
|
-
//
|
|
39
|
-
this.listeners = /* @__PURE__ */ new Map([
|
|
42
|
+
// Each set holds the listeners of the event type it is keyed by ('*' for every event).
|
|
43
|
+
this.listeners = /* @__PURE__ */ new Map([
|
|
44
|
+
["*", /* @__PURE__ */ new Set()]
|
|
45
|
+
]);
|
|
40
46
|
/** Gets the current state */
|
|
41
47
|
this.getState = () => (this.debug("getState", { state: this.state }), this.state);
|
|
42
48
|
/**
|
|
@@ -218,6 +224,7 @@ var CHANNEL_EVENT_PREFIX = "UNIVERSAL_STORE:", ProgressState = {
|
|
|
218
224
|
return Promise.all([preparation, this.syncing?.promise]);
|
|
219
225
|
}
|
|
220
226
|
/** Creates a new instance of UniversalStore */
|
|
227
|
+
// `State = any`: a store made without a state type takes any state (see index.test-d.ts).
|
|
221
228
|
static create(options) {
|
|
222
229
|
if (!options || typeof options?.id != "string")
|
|
223
230
|
throw new TypeError("id is required and must be a string, when creating a UniversalStore");
|
|
@@ -286,9 +293,10 @@ var CHANNEL_EVENT_PREFIX = "UNIVERSAL_STORE:", ProgressState = {
|
|
|
286
293
|
*/
|
|
287
294
|
onStateChange(listener) {
|
|
288
295
|
return this.debug("onStateChange", { listener }), this.subscribe(
|
|
296
|
+
// `any`: inside the class, the checker resolves the generic event-type constraint to `never`.
|
|
289
297
|
_UniversalStore.InternalEventType.SET_STATE,
|
|
290
|
-
(
|
|
291
|
-
listener(payload.state, payload.previousState, eventInfo);
|
|
298
|
+
(event, eventInfo) => {
|
|
299
|
+
hasType(event, _UniversalStore.InternalEventType.SET_STATE) && listener(event.payload.state, event.payload.previousState, eventInfo);
|
|
292
300
|
}
|
|
293
301
|
);
|
|
294
302
|
}
|
|
@@ -362,25 +370,23 @@ var CHANNEL_EVENT_PREFIX = "UNIVERSAL_STORE:", ProgressState = {
|
|
|
362
370
|
}
|
|
363
371
|
shouldForwardEvent && (this.debug("handleChannelEvents: forwarding event", { channelEvent }), this.emitToChannel(event, { actor: eventInfo.actor, forwardingActor: this.actor }));
|
|
364
372
|
}
|
|
365
|
-
if (this.actor.type === _UniversalStore.ActorType.FOLLOWER
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
}
|
|
383
|
-
event.type === _UniversalStore.InternalEventType.SET_STATE && (this.debug("handleChannelEvents: Setting state", { event }), this.state = event.payload.state), this.emitToListeners(event, { actor: eventInfo.actor });
|
|
373
|
+
if (this.actor.type === _UniversalStore.ActorType.FOLLOWER && hasType(
|
|
374
|
+
event,
|
|
375
|
+
_UniversalStore.InternalEventType.EXISTING_STATE_RESPONSE
|
|
376
|
+
) && (this.debug("handleChannelEvents: Setting state from leader's existing state response", {
|
|
377
|
+
event
|
|
378
|
+
}), this.syncing?.state === ProgressState.PENDING)) {
|
|
379
|
+
this.syncing.resolve?.();
|
|
380
|
+
let setStateEvent = {
|
|
381
|
+
type: _UniversalStore.InternalEventType.SET_STATE,
|
|
382
|
+
payload: {
|
|
383
|
+
state: event.payload,
|
|
384
|
+
previousState: this.state
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
this.state = event.payload, this.emitToListeners(setStateEvent, eventInfo);
|
|
388
|
+
}
|
|
389
|
+
hasType(event, _UniversalStore.InternalEventType.SET_STATE) && (this.debug("handleChannelEvents: Setting state", { event }), this.state = event.payload.state), this.emitToListeners(event, { actor: eventInfo.actor });
|
|
384
390
|
}
|
|
385
391
|
debug(message, data) {
|
|
386
392
|
this.debugging && console.debug(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ var require = CJS_COMPAT_NODE_MODULE_enqaafxxjgh.createRequire(import.meta.url);
|
|
|
13
13
|
// package.json with { type: 'json' }
|
|
14
14
|
var package_default = {
|
|
15
15
|
name: "@aussieljk/forkbook",
|
|
16
|
-
version: "0.0.1-
|
|
16
|
+
version: "0.0.1-14",
|
|
17
17
|
description: "Forkbook: a small, fast fork of Storybook for React with Vite, Next.js with Vite and React Native",
|
|
18
18
|
keywords: [
|
|
19
19
|
"forkbook",
|
|
@@ -852,7 +852,7 @@ var package_default = {
|
|
|
852
852
|
"@vitest/utils": "^3.2.4",
|
|
853
853
|
acorn: "^8.15.0",
|
|
854
854
|
"acorn-jsx": "^5.3.2",
|
|
855
|
-
"acorn-walk": "^
|
|
855
|
+
"acorn-walk": "^8.3.5",
|
|
856
856
|
"ansi-to-html": "^0.7.2",
|
|
857
857
|
"browser-dtector": "^3.4.0",
|
|
858
858
|
chai: "^5.1.1",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8s9wmxw3hps from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8s9wmxw3hps from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8s9wmxw3hps from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8s9wmxw3hps.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8s9wmxw3hps.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8s9wmxw3hps.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|