@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
|
@@ -802,7 +802,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]
|
|
|
802
802
|
let style = document.createElement("style");
|
|
803
803
|
style.setAttribute("data-fb-css", id), style.textContent = '.fb-jgXPQa-wrapper{max-width:250px;position:relative}.fb-jgXPQa-tooltipContent{width:200px;margin:5px;& .react-colorful__saturation{border-radius:4px 4px 0 0}& .react-colorful__hue{box-shadow:inset 0 0 0 1px #0000000d}& .react-colorful__last-control{border-radius:0 0 4px 4px}}.fb-jgXPQa-swatches{grid-template-columns:repeat(9,16px);gap:6px;width:200px;margin-top:5px;padding:3px;display:grid}.fb-jgXPQa-swatch{--checkers:url("data:image/svg+xml;charset=utf-8,<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"16\\" height=\\"16\\" fill-opacity=\\"0.05\\" fill=\\"black\\"><path d=\\"M8 0h8v8H8zM0 8h8v8H0z\\"/></svg>");width:16px;height:16px;box-shadow:var(--fb-app-border-color) 0 0 0 1px inset;border-radius:var(--fb-app-border-radius);border:none;&,&:hover{background:unset;background-color:unset;background-image:linear-gradient(var(--fb-swatch-color), var(--fb-swatch-color)), var(--checkers)}&[data-selected]{box-shadow:var(--fb-app-border-color) 0 0 0 1px inset, rgb(from var(--fb-text-muted-color) r g b / .31) 0 0 0 4px}}:where([data-fb-theme=dark]) .fb-jgXPQa-swatch{--checkers:url("data:image/svg+xml;charset=utf-8,<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"16\\" height=\\"16\\" fill-opacity=\\"0.05\\" fill=\\"white\\"><path d=\\"M8 0h8v8H8zM0 8h8v8H0z\\"/></svg>")}.fb-jgXPQa-input{box-sizing:border-box;width:100%;font-family:var(--fb-font-base);padding-left:30px;padding-right:30px;[aria-readonly=true]>&{background:var(--fb-color-lighter)}}:where([data-fb-theme=dark]) [aria-readonly=true]>.fb-jgXPQa-input{background:0 0}.fb-jgXPQa-popoverTrigger{z-index:1;cursor:pointer;position:absolute;top:4px;left:4px;&:disabled,&[aria-disabled=true]{cursor:not-allowed}}.fb-jgXPQa-cycleColorSpaceButton{z-index:1;box-sizing:border-box;cursor:pointer;width:20px;height:20px;color:var(--fb-input-color);padding:4px;position:absolute;top:6px;right:7px}', document.head.appendChild(style);
|
|
804
804
|
}
|
|
805
|
-
var Color_default = {
|
|
805
|
+
var Color_default = { wrapper: "fb-jgXPQa-wrapper", swatches: "fb-jgXPQa-swatches", input: "fb-jgXPQa-input", tooltipContent: "fb-jgXPQa-tooltipContent", swatch: "fb-jgXPQa-swatch", popoverTrigger: "fb-jgXPQa-popoverTrigger", cycleColorSpaceButton: "fb-jgXPQa-cycleColorSpaceButton" };
|
|
806
806
|
|
|
807
807
|
// src/addon-docs/blocks/controls/Color.tsx
|
|
808
808
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -77,11 +77,7 @@ var actions = (...args) => {
|
|
|
77
77
|
...config,
|
|
78
78
|
...names.pop()
|
|
79
79
|
});
|
|
80
|
-
let namesObject = names[0];
|
|
81
|
-
(names.length !== 1 || typeof namesObject == "string") && (namesObject = {}, names.forEach((name) => {
|
|
82
|
-
namesObject[name] = name;
|
|
83
|
-
}));
|
|
84
|
-
let actionsObject = {};
|
|
80
|
+
let namesObject = names.length !== 1 || typeof names[0] == "string" ? Object.fromEntries(names.map((name) => [name, name])) : names[0], actionsObject = {};
|
|
85
81
|
return Object.keys(namesObject).forEach((name) => {
|
|
86
82
|
actionsObject[name] = action(namesObject[name], options);
|
|
87
83
|
}), actionsObject;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
mapValues
|
|
3
|
-
|
|
4
|
-
} from "./chunk-2JDQ35OA.js";
|
|
2
|
+
mapValues
|
|
3
|
+
} from "./chunk-PU7D2WDP.js";
|
|
5
4
|
import {
|
|
6
5
|
isPlainObject
|
|
7
6
|
} from "./chunk-JWSKPMPC.js";
|
|
@@ -19,10 +18,12 @@ var combineParameters = (...parameterSets) => {
|
|
|
19
18
|
};
|
|
20
19
|
|
|
21
20
|
// src/preview-api/modules/store/filterArgTypes.ts
|
|
22
|
-
var matches = (name, descriptor) => Array.isArray(descriptor) ? descriptor.includes(name) : name.match(descriptor), filterArgTypes = (argTypes, include, exclude) => !include && !exclude ? argTypes : argTypes &&
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
var matches = (name, descriptor) => Array.isArray(descriptor) ? descriptor.includes(name) : name.match(descriptor), filterArgTypes = (argTypes, include, exclude) => !include && !exclude ? argTypes : argTypes && Object.fromEntries(
|
|
22
|
+
Object.entries(argTypes).filter(([key, argType]) => {
|
|
23
|
+
let name = argType.name || key;
|
|
24
|
+
return !!(!include || matches(name, include)) && (!exclude || !matches(name, exclude));
|
|
25
|
+
})
|
|
26
|
+
);
|
|
26
27
|
|
|
27
28
|
// src/preview-api/modules/store/inferControls.ts
|
|
28
29
|
import { logger } from "@aussieljk/forkbook/internal/client-logger";
|
|
@@ -99,7 +100,10 @@ var inferType = (value, name, visited, cache) => {
|
|
|
99
100
|
`), { name: "other", value: "cyclic object" };
|
|
100
101
|
visited.add(value);
|
|
101
102
|
let result;
|
|
102
|
-
return Array.isArray(value) ? result = { name: "array", value: value.length > 0 ? inferType(value[0], name, visited, cache) : { name: "other", value: "unknown" } } : result = { name: "object", value: mapValues(
|
|
103
|
+
return Array.isArray(value) ? result = { name: "array", value: value.length > 0 ? inferType(value[0], name, visited, cache) : { name: "other", value: "unknown" } } : result = { name: "object", value: mapValues(
|
|
104
|
+
value,
|
|
105
|
+
(field) => inferType(field, name, visited, cache)
|
|
106
|
+
) }, visited.delete(value), cache.set(value, result), result;
|
|
103
107
|
}
|
|
104
108
|
return { name: "object", value: {} };
|
|
105
109
|
}, inferArgTypes = (context) => {
|
|
@@ -72,7 +72,7 @@ var { document: document3 } = global, channel = addons.getChannel(), DEFAULT_PAR
|
|
|
72
72
|
next && await next(), runNext();
|
|
73
73
|
}, run = async (input = DEFAULT_PARAMETERS, storyId) => {
|
|
74
74
|
let axe = (await import("axe-core"))?.default || globalThis.axe, { config = {}, options = {} } = input;
|
|
75
|
-
if (input.element)
|
|
75
|
+
if ("element" in input && input.element)
|
|
76
76
|
throw new ElementA11yParameterError();
|
|
77
77
|
let context = {
|
|
78
78
|
include: document3?.body,
|
|
@@ -80,8 +80,8 @@ var { document: document3 } = global, channel = addons.getChannel(), DEFAULT_PAR
|
|
|
80
80
|
// Internal Forkbook elements that are always in the document
|
|
81
81
|
};
|
|
82
82
|
if (input.context) {
|
|
83
|
-
let
|
|
84
|
-
|
|
83
|
+
let inputContext = input.context, include = typeof inputContext == "object" && "include" in inputContext ? inputContext.include : void 0, exclude = typeof inputContext == "object" && "exclude" in inputContext ? inputContext.exclude : void 0;
|
|
84
|
+
include !== void 0 ? context.include = include : exclude === void 0 && (context.include = inputContext), exclude !== void 0 && (context.exclude = context.exclude.concat(exclude));
|
|
85
85
|
}
|
|
86
86
|
axe.reset();
|
|
87
87
|
let configWithDefault = {
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
import { addons, types } from "@aussieljk/forkbook/manager-api";
|
|
10
10
|
|
|
11
11
|
// src/addon-ondevice-controls/ControlsPanel.tsx
|
|
12
|
+
import { getOnDeviceStore } from "@aussieljk/forkbook/internal/react-native-ui-common";
|
|
12
13
|
import React2, { useCallback as useCallback6, useState as useState10 } from "react";
|
|
13
14
|
|
|
14
15
|
// src/addon-ondevice-controls/NoControlsWarning.tsx
|
|
@@ -1553,23 +1554,27 @@ var getOptions = (options, labels) => Array.isArray(options) ? options.map((val)
|
|
|
1553
1554
|
() => getOptions(arg.options, arg.control.labels),
|
|
1554
1555
|
[arg.control.labels, arg.options]
|
|
1555
1556
|
), theme = useTheme2(), selected = options.find(({ key }) => value === key)?.label ?? "";
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1557
|
+
if (Platform4.OS === "web") {
|
|
1558
|
+
let handleChange = (event) => {
|
|
1559
|
+
let target = event.currentTarget;
|
|
1560
|
+
if (arg.type === "multi-select") {
|
|
1561
|
+
let selectedValues = Array.from(target.selectedOptions).map((option) => option.value);
|
|
1562
|
+
onChange(selectedValues);
|
|
1563
|
+
} else
|
|
1564
|
+
onChange(target.value);
|
|
1565
|
+
};
|
|
1566
|
+
return jsx11(
|
|
1567
|
+
"select",
|
|
1568
|
+
{
|
|
1569
|
+
value: Array.isArray(value) ? value.map(String) : value,
|
|
1570
|
+
onChange: handleChange,
|
|
1571
|
+
multiple: arg.type === "multi-select",
|
|
1572
|
+
style: inputStyle({ theme }),
|
|
1573
|
+
children: options.map(({ label, key }) => jsx11("option", { value: key, children: label }, `${label}-${key}`))
|
|
1574
|
+
}
|
|
1575
|
+
);
|
|
1576
|
+
}
|
|
1577
|
+
return jsx11(View7, { children: arg.type === "multi-select" ? jsx11(SelectModal, { options, value, multiple: !0, onChange, children: jsx11(
|
|
1573
1578
|
Input,
|
|
1574
1579
|
{
|
|
1575
1580
|
editable: !1,
|
|
@@ -1697,7 +1702,10 @@ import { jsx as jsx15 } from "react/jsx-runtime";
|
|
|
1697
1702
|
var getOptions2 = (arg) => arg.options ? arg.options : arg.control?.options ? arg.control.options : [], RadioType = ({ onChange, arg }) => {
|
|
1698
1703
|
let data = React.useMemo(() => {
|
|
1699
1704
|
let options = getOptions2(arg);
|
|
1700
|
-
return Array.isArray(options) ? arg.control?.labels && Array.isArray(arg.control.labels) ? options.map((val, i) => ({
|
|
1705
|
+
return Array.isArray(options) ? arg.control?.labels && Array.isArray(arg.control.labels) ? options.map((val, i) => ({
|
|
1706
|
+
key: val,
|
|
1707
|
+
label: String(arg.control?.labels?.at(i) ?? val)
|
|
1708
|
+
})) : options.map((val) => ({ key: val, label: String(val) })) : Object.keys(options).map((key) => ({
|
|
1701
1709
|
label: key,
|
|
1702
1710
|
key: options[key]
|
|
1703
1711
|
}));
|
|
@@ -1821,7 +1829,7 @@ function hasEnabledControl(argType) {
|
|
|
1821
1829
|
}
|
|
1822
1830
|
function shouldIncludeArg(argType, args) {
|
|
1823
1831
|
try {
|
|
1824
|
-
return includeConditionalArg(argType, args, {});
|
|
1832
|
+
return includeConditionalArg({ if: argType.if }, args, {});
|
|
1825
1833
|
} catch {
|
|
1826
1834
|
return !0;
|
|
1827
1835
|
}
|
|
@@ -1832,7 +1840,7 @@ function getControlArgTypes(argTypes, args) {
|
|
|
1832
1840
|
[key]: {
|
|
1833
1841
|
...argType,
|
|
1834
1842
|
name: key,
|
|
1835
|
-
type: argType.control
|
|
1843
|
+
type: argType.control?.type,
|
|
1836
1844
|
value: args[key]
|
|
1837
1845
|
}
|
|
1838
1846
|
}, {});
|
|
@@ -1876,7 +1884,7 @@ var getControlArgs = (story) => story.unmappedArgs ?? story.args, useArgs = (sto
|
|
|
1876
1884
|
// src/addon-ondevice-controls/ControlsPanel.tsx
|
|
1877
1885
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1878
1886
|
var ControlsPanel = ({ api }) => {
|
|
1879
|
-
let store = api
|
|
1887
|
+
let store = getOnDeviceStore(api), storyId = store.getSelection()?.storyId, [isPristine, setIsPristine] = useState10(!0), [argsFromHook, updateArgs, resetArgs] = useArgs(storyId, store), { argsObject, parameters } = React2.useMemo(() => {
|
|
1880
1888
|
let { argTypes, parameters: storyParameters } = store.fromId(storyId);
|
|
1881
1889
|
return {
|
|
1882
1890
|
parameters: storyParameters,
|
|
@@ -80,17 +80,42 @@ var getParallelRoutes = (segmentsList) => {
|
|
|
80
80
|
head: null,
|
|
81
81
|
prefetchHead: null,
|
|
82
82
|
parallelRoutes: /* @__PURE__ */ new Map(),
|
|
83
|
-
loading: null
|
|
83
|
+
loading: null,
|
|
84
|
+
// A lazy cache node has no navigation yet, as in Next.js.
|
|
85
|
+
navigatedAt: -1
|
|
86
|
+
}, otherVersionsGlobalLayoutFields = {
|
|
87
|
+
changeByServerResponse() {
|
|
88
|
+
},
|
|
89
|
+
buildId: "forkbook"
|
|
90
|
+
}, layoutRouterValue = {
|
|
91
|
+
...{
|
|
92
|
+
// TODO Remove when dropping Next.js < v15.1.1
|
|
93
|
+
childNodes: /* @__PURE__ */ new Map(),
|
|
94
|
+
tree,
|
|
95
|
+
// TODO END
|
|
96
|
+
// START Next.js v16.4 support
|
|
97
|
+
// The route tree of the root segment. `useRouter` reads `data.bfcacheId`, and
|
|
98
|
+
// a layout router reads `slots` (null: a story has no child segments).
|
|
99
|
+
parentRenderTree: {
|
|
100
|
+
segment: "",
|
|
101
|
+
data: { ...newLazyCacheNode, bfcacheId: 0 },
|
|
102
|
+
slots: null
|
|
103
|
+
},
|
|
104
|
+
// END
|
|
105
|
+
loading: null
|
|
106
|
+
},
|
|
107
|
+
parentTree: tree,
|
|
108
|
+
parentCacheNode: newLazyCacheNode,
|
|
109
|
+
// The story is the root of the layout routers. Next.js's own root also gives `null`, and a
|
|
110
|
+
// `LayoutRouter` adds its segment to this path.
|
|
111
|
+
parentSegmentPath: null,
|
|
112
|
+
url: pathname
|
|
84
113
|
};
|
|
85
114
|
return jsx4(PathParamsContext.Provider, { value: pathParams, children: jsx4(PathnameContext.Provider, { value: pathname, children: jsx4(SearchParamsContext.Provider, { value: new URLSearchParams(query), children: jsx4(
|
|
86
115
|
GlobalLayoutRouterContext.Provider,
|
|
87
116
|
{
|
|
88
117
|
value: {
|
|
89
|
-
|
|
90
|
-
// @ts-ignore (Only available in Next.js >= v15.1.1)
|
|
91
|
-
changeByServerResponse() {
|
|
92
|
-
},
|
|
93
|
-
buildId: "forkbook",
|
|
118
|
+
...otherVersionsGlobalLayoutFields,
|
|
94
119
|
tree,
|
|
95
120
|
focusAndScrollRef: {
|
|
96
121
|
apply: !1,
|
|
@@ -100,39 +125,7 @@ var getParallelRoutes = (segmentsList) => {
|
|
|
100
125
|
},
|
|
101
126
|
nextUrl: pathname
|
|
102
127
|
},
|
|
103
|
-
children: jsx4(AppRouterContext.Provider, { value: getRouter(), children: jsx4(
|
|
104
|
-
LayoutRouterContext.Provider,
|
|
105
|
-
{
|
|
106
|
-
value: {
|
|
107
|
-
// TODO Remove when dropping Next.js < v15.1.1
|
|
108
|
-
childNodes: /* @__PURE__ */ new Map(),
|
|
109
|
-
tree,
|
|
110
|
-
// TODO END
|
|
111
|
-
// START Next.js v15.2 support
|
|
112
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
113
|
-
// @ts-ignore Only available in Next.js >= v15.1.1
|
|
114
|
-
parentTree: tree,
|
|
115
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
116
|
-
// @ts-ignore Only available in Next.js >= v15.1.1
|
|
117
|
-
parentCacheNode: newLazyCacheNode,
|
|
118
|
-
// END
|
|
119
|
-
// START Next.js v16.4 support
|
|
120
|
-
// The route tree of the root segment. `useRouter` reads `data.bfcacheId`, and
|
|
121
|
-
// a layout router reads `slots` (null: a story has no child segments).
|
|
122
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
123
|
-
// @ts-ignore Only available in Next.js >= v16.4.0
|
|
124
|
-
parentRenderTree: {
|
|
125
|
-
segment: "",
|
|
126
|
-
data: { ...newLazyCacheNode, bfcacheId: 0 },
|
|
127
|
-
slots: null
|
|
128
|
-
},
|
|
129
|
-
// END
|
|
130
|
-
url: pathname,
|
|
131
|
-
loading: null
|
|
132
|
-
},
|
|
133
|
-
children
|
|
134
|
-
}
|
|
135
|
-
) })
|
|
128
|
+
children: jsx4(AppRouterContext.Provider, { value: getRouter(), children: jsx4(LayoutRouterContext.Provider, { value: layoutRouterValue, children }) })
|
|
136
129
|
}
|
|
137
130
|
) }) }) });
|
|
138
131
|
};
|
|
@@ -184,11 +177,11 @@ globalThis.addEventListener("error", (ev) => {
|
|
|
184
177
|
return;
|
|
185
178
|
}
|
|
186
179
|
});
|
|
187
|
-
var
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
180
|
+
var decorators = [
|
|
181
|
+
StyledJsxDecorator,
|
|
182
|
+
ImageDecorator,
|
|
183
|
+
RouterDecorator,
|
|
184
|
+
HeadManagerDecorator
|
|
192
185
|
], loaders = async ({ globals, parameters: parameters2 }) => {
|
|
193
186
|
let { router, appDirectory } = parameters2.nextjs ?? {};
|
|
194
187
|
appDirectory ? createNavigation(router) : createRouter({
|
|
@@ -9608,15 +9608,15 @@ var import_acorn_jsx = __toESM(require_acorn_jsx(), 1);
|
|
|
9608
9608
|
// ../../node_modules/acorn-walk/dist/walk.mjs
|
|
9609
9609
|
function simple(node, visitors, baseVisitor, state, override) {
|
|
9610
9610
|
baseVisitor || (baseVisitor = base), (function c(node2, st, override2) {
|
|
9611
|
-
var type = override2 || node2.type
|
|
9612
|
-
baseVisitor
|
|
9611
|
+
var type = override2 || node2.type;
|
|
9612
|
+
visitNode(baseVisitor, type, node2, st, c), visitors[type] && visitors[type](node2, st);
|
|
9613
9613
|
})(node, state, override);
|
|
9614
9614
|
}
|
|
9615
9615
|
function ancestor(node, visitors, baseVisitor, state, override) {
|
|
9616
9616
|
var ancestors = [];
|
|
9617
9617
|
baseVisitor || (baseVisitor = base), (function c(node2, st, override2) {
|
|
9618
|
-
var type = override2 || node2.type,
|
|
9619
|
-
isNew && ancestors.push(node2), baseVisitor
|
|
9618
|
+
var type = override2 || node2.type, isNew = node2 !== ancestors[ancestors.length - 1];
|
|
9619
|
+
isNew && ancestors.push(node2), visitNode(baseVisitor, type, node2, st, c), visitors[type] && visitors[type](node2, st || ancestors, ancestors), isNew && ancestors.pop();
|
|
9620
9620
|
})(node, state, override);
|
|
9621
9621
|
}
|
|
9622
9622
|
function skipThrough(node, st, c) {
|
|
@@ -9624,8 +9624,13 @@ function skipThrough(node, st, c) {
|
|
|
9624
9624
|
}
|
|
9625
9625
|
function ignore(_node, _st, _c) {
|
|
9626
9626
|
}
|
|
9627
|
+
function visitNode(baseVisitor, type, node, st, c) {
|
|
9628
|
+
if (baseVisitor[type] == null)
|
|
9629
|
+
throw new Error("No walker function defined for node type " + type);
|
|
9630
|
+
baseVisitor[type](node, st, c);
|
|
9631
|
+
}
|
|
9627
9632
|
var base = {};
|
|
9628
|
-
base.Program = base.BlockStatement = function(node, st, c) {
|
|
9633
|
+
base.Program = base.BlockStatement = base.StaticBlock = function(node, st, c) {
|
|
9629
9634
|
for (var i2 = 0, list2 = node.body; i2 < list2.length; i2 += 1) {
|
|
9630
9635
|
var stmt = list2[i2];
|
|
9631
9636
|
c(stmt, st, "Statement");
|
|
@@ -9648,13 +9653,9 @@ base.WithStatement = function(node, st, c) {
|
|
|
9648
9653
|
};
|
|
9649
9654
|
base.SwitchStatement = function(node, st, c) {
|
|
9650
9655
|
c(node.discriminant, st, "Expression");
|
|
9651
|
-
for (var
|
|
9652
|
-
var cs =
|
|
9653
|
-
|
|
9654
|
-
for (var i2 = 0, list2 = cs.consequent; i2 < list2.length; i2 += 1) {
|
|
9655
|
-
var cons = list2[i2];
|
|
9656
|
-
c(cons, st, "Statement");
|
|
9657
|
-
}
|
|
9656
|
+
for (var i2 = 0, list2 = node.cases; i2 < list2.length; i2 += 1) {
|
|
9657
|
+
var cs = list2[i2];
|
|
9658
|
+
c(cs, st);
|
|
9658
9659
|
}
|
|
9659
9660
|
};
|
|
9660
9661
|
base.SwitchCase = function(node, st, c) {
|
|
@@ -9784,22 +9785,37 @@ base.MemberExpression = function(node, st, c) {
|
|
|
9784
9785
|
c(node.object, st, "Expression"), node.computed && c(node.property, st, "Expression");
|
|
9785
9786
|
};
|
|
9786
9787
|
base.ExportNamedDeclaration = base.ExportDefaultDeclaration = function(node, st, c) {
|
|
9787
|
-
node.declaration && c(node.declaration, st, node.type === "ExportNamedDeclaration" || node.declaration.id ? "Statement" : "Expression"), node.source && c(node.source, st, "Expression")
|
|
9788
|
+
if (node.declaration && c(node.declaration, st, node.type === "ExportNamedDeclaration" || node.declaration.id ? "Statement" : "Expression"), node.source && c(node.source, st, "Expression"), node.attributes)
|
|
9789
|
+
for (var i2 = 0, list2 = node.attributes; i2 < list2.length; i2 += 1) {
|
|
9790
|
+
var attr = list2[i2];
|
|
9791
|
+
c(attr, st);
|
|
9792
|
+
}
|
|
9788
9793
|
};
|
|
9789
9794
|
base.ExportAllDeclaration = function(node, st, c) {
|
|
9790
|
-
node.exported && c(node.exported, st), c(node.source, st, "Expression")
|
|
9795
|
+
if (node.exported && c(node.exported, st), c(node.source, st, "Expression"), node.attributes)
|
|
9796
|
+
for (var i2 = 0, list2 = node.attributes; i2 < list2.length; i2 += 1) {
|
|
9797
|
+
var attr = list2[i2];
|
|
9798
|
+
c(attr, st);
|
|
9799
|
+
}
|
|
9800
|
+
};
|
|
9801
|
+
base.ImportAttribute = function(node, st, c) {
|
|
9802
|
+
c(node.value, st, "Expression");
|
|
9791
9803
|
};
|
|
9792
9804
|
base.ImportDeclaration = function(node, st, c) {
|
|
9793
9805
|
for (var i2 = 0, list2 = node.specifiers; i2 < list2.length; i2 += 1) {
|
|
9794
9806
|
var spec = list2[i2];
|
|
9795
9807
|
c(spec, st);
|
|
9796
9808
|
}
|
|
9797
|
-
c(node.source, st, "Expression")
|
|
9809
|
+
if (c(node.source, st, "Expression"), node.attributes)
|
|
9810
|
+
for (var i$1 = 0, list$1 = node.attributes; i$1 < list$1.length; i$1 += 1) {
|
|
9811
|
+
var attr = list$1[i$1];
|
|
9812
|
+
c(attr, st);
|
|
9813
|
+
}
|
|
9798
9814
|
};
|
|
9799
9815
|
base.ImportExpression = function(node, st, c) {
|
|
9800
|
-
c(node.source, st, "Expression");
|
|
9816
|
+
c(node.source, st, "Expression"), node.options && c(node.options, st, "Expression");
|
|
9801
9817
|
};
|
|
9802
|
-
base.ImportSpecifier = base.ImportDefaultSpecifier = base.ImportNamespaceSpecifier = base.Identifier = base.Literal = ignore;
|
|
9818
|
+
base.ImportSpecifier = base.ImportDefaultSpecifier = base.ImportNamespaceSpecifier = base.Identifier = base.PrivateIdentifier = base.Literal = ignore;
|
|
9803
9819
|
base.TaggedTemplateExpression = function(node, st, c) {
|
|
9804
9820
|
c(node.tag, st, "Expression"), c(node.quasi, st, "Expression");
|
|
9805
9821
|
};
|
|
@@ -9815,19 +9831,27 @@ base.ClassBody = function(node, st, c) {
|
|
|
9815
9831
|
c(elt, st);
|
|
9816
9832
|
}
|
|
9817
9833
|
};
|
|
9818
|
-
base.MethodDefinition = base.Property = function(node, st, c) {
|
|
9819
|
-
node.computed && c(node.key, st, "Expression"), c(node.value, st, "Expression");
|
|
9834
|
+
base.MethodDefinition = base.PropertyDefinition = base.Property = function(node, st, c) {
|
|
9835
|
+
node.computed && c(node.key, st, "Expression"), node.value && c(node.value, st, "Expression");
|
|
9820
9836
|
};
|
|
9821
9837
|
|
|
9822
9838
|
// src/react/docs/lib/inspection/acornParser.ts
|
|
9823
9839
|
var ACORN_WALK_VISITORS = {
|
|
9824
|
-
// @ts-expect-error `base` exists at runtime, but the acorn-walk types do not export it.
|
|
9825
9840
|
...base,
|
|
9826
9841
|
JSXElement: () => {
|
|
9827
9842
|
}
|
|
9828
|
-
}
|
|
9843
|
+
};
|
|
9844
|
+
var acornParser = Parser.extend((0, import_acorn_jsx.default)());
|
|
9845
|
+
function hasJsxElement(node) {
|
|
9846
|
+
let found = !1, visitors = {
|
|
9847
|
+
JSXElement() {
|
|
9848
|
+
found = !0;
|
|
9849
|
+
}
|
|
9850
|
+
};
|
|
9851
|
+
return simple(node, visitors, ACORN_WALK_VISITORS), found;
|
|
9852
|
+
}
|
|
9829
9853
|
function extractIdentifierName(identifierNode) {
|
|
9830
|
-
return identifierNode != null ? identifierNode.name : null;
|
|
9854
|
+
return identifierNode != null && "name" in identifierNode ? identifierNode.name : null;
|
|
9831
9855
|
}
|
|
9832
9856
|
function filterAncestors(ancestors) {
|
|
9833
9857
|
return ancestors.filter((x) => x.type === "ObjectExpression" || x.type === "ArrayExpression");
|
|
@@ -9835,13 +9859,12 @@ function filterAncestors(ancestors) {
|
|
|
9835
9859
|
function calculateNodeDepth(node) {
|
|
9836
9860
|
let depths = [];
|
|
9837
9861
|
return ancestor(
|
|
9838
|
-
// @ts-expect-error acorn-walk wants acorn nodes, and these are ESTree nodes.
|
|
9839
9862
|
node,
|
|
9840
9863
|
{
|
|
9841
|
-
ObjectExpression(_, ancestors) {
|
|
9864
|
+
ObjectExpression(_, __, ancestors) {
|
|
9842
9865
|
depths.push(filterAncestors(ancestors).length);
|
|
9843
9866
|
},
|
|
9844
|
-
ArrayExpression(_, ancestors) {
|
|
9867
|
+
ArrayExpression(_, __, ancestors) {
|
|
9845
9868
|
depths.push(filterAncestors(ancestors).length);
|
|
9846
9869
|
}
|
|
9847
9870
|
},
|
|
@@ -9852,7 +9875,7 @@ function parseIdentifier(identifierNode) {
|
|
|
9852
9875
|
return {
|
|
9853
9876
|
inferredType: {
|
|
9854
9877
|
type: "Identifier" /* IDENTIFIER */,
|
|
9855
|
-
identifier:
|
|
9878
|
+
identifier: identifierNode.name
|
|
9856
9879
|
},
|
|
9857
9880
|
ast: identifierNode
|
|
9858
9881
|
};
|
|
@@ -9864,19 +9887,8 @@ function parseLiteral(literalNode) {
|
|
|
9864
9887
|
};
|
|
9865
9888
|
}
|
|
9866
9889
|
function parseFunction(funcNode) {
|
|
9867
|
-
let innerJsxElementNode;
|
|
9868
|
-
simple(
|
|
9869
|
-
// @ts-expect-error acorn-walk wants acorn nodes, and these are ESTree nodes.
|
|
9870
|
-
funcNode.body,
|
|
9871
|
-
{
|
|
9872
|
-
JSXElement(node) {
|
|
9873
|
-
innerJsxElementNode = node;
|
|
9874
|
-
}
|
|
9875
|
-
},
|
|
9876
|
-
ACORN_WALK_VISITORS
|
|
9877
|
-
);
|
|
9878
9890
|
let inferredType = {
|
|
9879
|
-
type:
|
|
9891
|
+
type: hasJsxElement(funcNode.body) ? "Element" /* ELEMENT */ : "Function" /* FUNCTION */,
|
|
9880
9892
|
params: funcNode.params,
|
|
9881
9893
|
hasParams: funcNode.params.length !== 0
|
|
9882
9894
|
}, identifierName = extractIdentifierName(funcNode.id);
|
|
@@ -9886,19 +9898,10 @@ function parseFunction(funcNode) {
|
|
|
9886
9898
|
};
|
|
9887
9899
|
}
|
|
9888
9900
|
function parseClass(classNode) {
|
|
9889
|
-
|
|
9890
|
-
return simple(
|
|
9891
|
-
// @ts-expect-error acorn-walk wants acorn nodes, and these are ESTree nodes.
|
|
9892
|
-
classNode.body,
|
|
9893
|
-
{
|
|
9894
|
-
JSXElement(node) {
|
|
9895
|
-
innerJsxElementNode = node;
|
|
9896
|
-
}
|
|
9897
|
-
},
|
|
9898
|
-
ACORN_WALK_VISITORS
|
|
9899
|
-
), {
|
|
9901
|
+
return {
|
|
9900
9902
|
inferredType: {
|
|
9901
|
-
type:
|
|
9903
|
+
type: hasJsxElement(classNode.body) ? "Element" /* ELEMENT */ : "Class" /* CLASS */,
|
|
9904
|
+
// An anonymous class gives null. Callers check the identifier for null before they use it.
|
|
9902
9905
|
identifier: extractIdentifierName(classNode.id)
|
|
9903
9906
|
},
|
|
9904
9907
|
ast: classNode
|
|
@@ -10090,7 +10093,7 @@ var extractArgTypes = (component) => {
|
|
|
10090
10093
|
{
|
|
10091
10094
|
name,
|
|
10092
10095
|
description,
|
|
10093
|
-
type: { required, ...sbType },
|
|
10096
|
+
type: sbType && { required, ...sbType },
|
|
10094
10097
|
table: {
|
|
10095
10098
|
type: type ?? void 0,
|
|
10096
10099
|
jsDocTags,
|
|
@@ -139,7 +139,13 @@ function createStatusStore({
|
|
|
139
139
|
getStatusStoreByTypeId,
|
|
140
140
|
fullStatusStore,
|
|
141
141
|
universalStatusStore,
|
|
142
|
-
useStatusStore: (selector) =>
|
|
142
|
+
useStatusStore: (selector) => (
|
|
143
|
+
// The hook also runs without a selector and then returns the whole state.
|
|
144
|
+
useUniversalStore(
|
|
145
|
+
universalStatusStore,
|
|
146
|
+
selector
|
|
147
|
+
)[0]
|
|
148
|
+
)
|
|
143
149
|
} : { getStatusStoreByTypeId, fullStatusStore, universalStatusStore };
|
|
144
150
|
}
|
|
145
151
|
|
|
@@ -39,7 +39,7 @@ function withGlobalActEnvironment(actImplementation) {
|
|
|
39
39
|
try {
|
|
40
40
|
let callbackNeedsToBeAwaited = !1, actResult = actImplementation(() => {
|
|
41
41
|
let result = callback();
|
|
42
|
-
return result !== null && typeof result == "object" && typeof result.then == "function" && (callbackNeedsToBeAwaited = !0), result;
|
|
42
|
+
return result !== null && typeof result == "object" && "then" in result && typeof result.then == "function" && (callbackNeedsToBeAwaited = !0), result;
|
|
43
43
|
});
|
|
44
44
|
if (callbackNeedsToBeAwaited) {
|
|
45
45
|
let thenable = actResult;
|
|
@@ -210,7 +210,7 @@ var decorators = [
|
|
|
210
210
|
};
|
|
211
211
|
function getActiveJestFakeTimers(g) {
|
|
212
212
|
let jest = Reflect.get(g, "jest");
|
|
213
|
-
return jest == null ? void 0 : /* legacy timers */ setTimeout
|
|
213
|
+
return jest == null ? void 0 : /* legacy timers */ Reflect.get(setTimeout, "_isMockFunction") === !0 || // modern timers
|
|
214
214
|
Object.prototype.hasOwnProperty.call(setTimeout, "clock") ? jest : void 0;
|
|
215
215
|
}
|
|
216
216
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
entry_preview_docs_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QFO2B4X2.js";
|
|
4
4
|
import {
|
|
5
5
|
entry_preview_argtypes_exports
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DISGPOF4.js";
|
|
7
7
|
import {
|
|
8
8
|
entry_preview_exports
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ENHFQXYS.js";
|
|
10
10
|
|
|
11
11
|
// src/react/preview.tsx
|
|
12
12
|
import { definePreview as definePreviewBase } from "@aussieljk/forkbook/internal/csf";
|