@aussieljk/forkbook 0.0.1-12 → 0.0.1-13
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-2EUQ6NXV.js} +1 -1
- package/dist/_browser-chunks/{WithTooltip-66AWY4VQ.js → WithTooltip-QCFTNB6P.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-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-QSYOMLRG.js → chunk-UH3XTEOQ.js} +71 -56
- 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/_browser-chunks/{chunk-F22A5EGD.js → chunk-ZF5SPY56.js} +1 -1
- package/dist/_node-chunks/{attached-runtime-AU2RZM4Y.js → attached-runtime-7IRDQUTZ.js} +28 -28
- package/dist/_node-chunks/{builder-manager-UPXA2KKT.js → builder-manager-YTALSWKQ.js} +15 -15
- package/dist/_node-chunks/{chunk-FKI7K3GE.js → chunk-26ERGIQH.js} +6 -6
- package/dist/_node-chunks/{chunk-JHX35YKT.js → chunk-33T4HNF2.js} +6 -6
- package/dist/_node-chunks/{chunk-QSKVNZCF.js → chunk-3F3673RQ.js} +7 -7
- package/dist/_node-chunks/{chunk-SUHBBHKR.js → chunk-3FLRYZLJ.js} +6 -6
- package/dist/_node-chunks/{chunk-5MYXWAKD.js → chunk-3L2QRDKH.js} +33 -31
- package/dist/_node-chunks/{chunk-U5HVQTHI.js → chunk-3NH7IHUS.js} +6 -6
- package/dist/_node-chunks/{chunk-5KMW5XXM.js → chunk-3ZAENV5A.js} +6 -6
- package/dist/_node-chunks/{chunk-KZPWZM2E.js → chunk-4B52HLKK.js} +39 -44
- package/dist/_node-chunks/{chunk-Y472MP5U.js → chunk-4CZJ4SFH.js} +8 -8
- package/dist/_node-chunks/{chunk-KQTFSKC6.js → chunk-4IIWFG7O.js} +13 -11
- package/dist/_node-chunks/{chunk-JB4457FJ.js → chunk-4YWZLOAF.js} +6 -6
- package/dist/_node-chunks/{chunk-G6GOV7H7.js → chunk-5A5XOSRM.js} +6 -6
- package/dist/_node-chunks/chunk-5T6Q7HT3.js +11 -0
- package/dist/_node-chunks/{chunk-5N7YRHXJ.js → chunk-6DRDJF2Q.js} +6 -6
- package/dist/_node-chunks/{chunk-MNQVVJZN.js → chunk-6JSZY5TJ.js} +6 -6
- package/dist/_node-chunks/{chunk-FFUIQJRI.js → chunk-7SPDKMDQ.js} +14 -14
- package/dist/_node-chunks/{chunk-76M6JG5T.js → chunk-7YLKDHLZ.js} +7 -7
- package/dist/_node-chunks/{chunk-NPSIAK46.js → chunk-7YQIVUEK.js} +6 -6
- package/dist/_node-chunks/{chunk-HMQUTLMS.js → chunk-ADCQYK3Z.js} +6 -6
- package/dist/_node-chunks/{chunk-LTJ4AYDM.js → chunk-ALHQVE5R.js} +6 -6
- package/dist/_node-chunks/{chunk-H7UVQBCQ.js → chunk-B4XAZ2OC.js} +6 -6
- package/dist/_node-chunks/{chunk-2MGPZNKV.js → chunk-BFQJF3ID.js} +11 -8
- package/dist/_node-chunks/{chunk-RT2LVWTC.js → chunk-BSXI35KM.js} +7 -7
- package/dist/_node-chunks/{chunk-FR67COFW.js → chunk-BZQF5KUE.js} +7 -7
- package/dist/_node-chunks/{chunk-ZUK5ZLPP.js → chunk-CEIESR4U.js} +6 -6
- package/dist/_node-chunks/{chunk-NXRZL2PR.js → chunk-CESXIP3N.js} +6 -6
- package/dist/_node-chunks/{chunk-WUVQ465T.js → chunk-DAEUTT3I.js} +6 -6
- package/dist/_node-chunks/{chunk-BTDLJXAT.js → chunk-DIC4T2UO.js} +6 -6
- package/dist/_node-chunks/{chunk-6772LYNF.js → chunk-DPOWAA4P.js} +37 -31
- package/dist/_node-chunks/{chunk-IKUSSZJ3.js → chunk-DTNEHO4J.js} +10 -10
- package/dist/_node-chunks/{chunk-IOXDHKFF.js → chunk-DY7F7B6V.js} +7 -7
- package/dist/_node-chunks/{chunk-HW7RCOV4.js → chunk-E56UKDJR.js} +8 -8
- package/dist/_node-chunks/{chunk-3MJZ5GI2.js → chunk-EFX2VA4Q.js} +6 -6
- package/dist/_node-chunks/{chunk-R73PEGQU.js → chunk-EM6AYELK.js} +10 -12
- package/dist/_node-chunks/{chunk-MNNESU33.js → chunk-F2AFT3P7.js} +8 -8
- package/dist/_node-chunks/{chunk-2W525A4I.js → chunk-GC7NA2Y7.js} +7 -7
- package/dist/_node-chunks/{chunk-2X3WAH7V.js → chunk-GIKCT5KG.js} +7 -7
- package/dist/_node-chunks/{chunk-IFHNMS7I.js → chunk-GLNHSUKT.js} +20 -20
- package/dist/_node-chunks/{chunk-DNX4BLMS.js → chunk-GQZZQB4K.js} +7 -7
- package/dist/_node-chunks/{chunk-PHB6QBHM.js → chunk-GRN6WQC3.js} +10 -10
- package/dist/_node-chunks/{chunk-K2K6KTBC.js → chunk-HCMHVV7N.js} +8 -8
- package/dist/_node-chunks/{chunk-FUDG3QKB.js → chunk-HJVZQS65.js} +7 -7
- package/dist/_node-chunks/{chunk-UKLCYEZU.js → chunk-I26RGEVQ.js} +7 -7
- package/dist/_node-chunks/{chunk-JKPKEYSH.js → chunk-I36FPWMO.js} +6 -6
- package/dist/_node-chunks/{chunk-C2HVGXLD.js → chunk-IDPQ3CVN.js} +264 -312
- package/dist/_node-chunks/{chunk-2Q3YWQSK.js → chunk-JUVUVVHI.js} +6 -6
- package/dist/_node-chunks/{chunk-NUSHY22I.js → chunk-K6TEIAKH.js} +7 -7
- package/dist/_node-chunks/{chunk-W5ZAUN5R.js → chunk-KEXQ3BON.js} +7 -7
- package/dist/_node-chunks/{chunk-HPXM4SGT.js → chunk-KUZSE7ZD.js} +9 -9
- package/dist/_node-chunks/chunk-LJ5JRR5Q.js +18 -0
- package/dist/_node-chunks/{chunk-7F6TIY4T.js → chunk-LMGI47HP.js} +8 -8
- package/dist/_node-chunks/{chunk-EFZAYIPN.js → chunk-LPIPPSMS.js} +6 -6
- package/dist/_node-chunks/{chunk-UFZUSE3Y.js → chunk-LR4W5G37.js} +6 -6
- package/dist/_node-chunks/{chunk-TXZTC6LA.js → chunk-M4MRBEJI.js} +14 -10
- package/dist/_node-chunks/{chunk-XCNYQV2M.js → chunk-M7BVABR2.js} +9 -9
- package/dist/_node-chunks/{chunk-SPCPGRYF.js → chunk-MK2RPLWT.js} +7 -7
- package/dist/_node-chunks/{chunk-ABCEMTIP.js → chunk-MKSEM5C2.js} +6 -6
- package/dist/_node-chunks/{chunk-QBWGJYHY.js → chunk-MWQIBOUB.js} +6 -6
- package/dist/_node-chunks/{chunk-ZCKTYMZT.js → chunk-NAXIA2JI.js} +8 -8
- package/dist/_node-chunks/{chunk-OSNOV4EH.js → chunk-NDVIMCIX.js} +7 -7
- package/dist/_node-chunks/{chunk-QX6RXAEU.js → chunk-NIOVXWQZ.js} +6 -6
- package/dist/_node-chunks/{chunk-FAR3NIPG.js → chunk-NRP4FGRT.js} +15 -9
- package/dist/_node-chunks/{chunk-22A63J7O.js → chunk-NSNBFXVB.js} +7 -7
- package/dist/_node-chunks/{chunk-RHH7VDIY.js → chunk-NTUTJAD4.js} +8 -8
- package/dist/_node-chunks/{chunk-34DNGOCZ.js → chunk-O46DZ2KC.js} +8 -8
- package/dist/_node-chunks/{chunk-KMC5WWQS.js → chunk-OH5M2YER.js} +7 -7
- package/dist/_node-chunks/{chunk-DXR3YGRT.js → chunk-OSIENBU6.js} +6 -6
- package/dist/_node-chunks/{chunk-BDATIKVV.js → chunk-OVJZBW54.js} +7 -7
- package/dist/_node-chunks/{chunk-POA32M7F.js → chunk-PGIDRLZ5.js} +8 -8
- package/dist/_node-chunks/{chunk-VJEN2JM3.js → chunk-PJCSZR4T.js} +8 -8
- package/dist/_node-chunks/{chunk-AHNN3TQH.js → chunk-PQXP5FZ2.js} +8 -8
- package/dist/_node-chunks/{chunk-22TWJGGQ.js → chunk-PU33WSBW.js} +18 -21
- package/dist/_node-chunks/{chunk-HW4T3OXA.js → chunk-PUBZLLNL.js} +7 -7
- package/dist/_node-chunks/{chunk-UGQFYYBC.js → chunk-QWZZX2HN.js} +6 -6
- package/dist/_node-chunks/{chunk-JMFTALJW.js → chunk-RMUBUNBY.js} +6 -6
- package/dist/_node-chunks/{chunk-BMM74ZQW.js → chunk-S33FEPQ3.js} +6 -6
- package/dist/_node-chunks/{chunk-O2CCUB5T.js → chunk-SHP6447T.js} +7 -7
- package/dist/_node-chunks/{chunk-NO7MF6VR.js → chunk-ST3KB36E.js} +6 -6
- package/dist/_node-chunks/{chunk-JXS4P2RM.js → chunk-SXX75O2D.js} +7 -7
- package/dist/_node-chunks/{chunk-ORSH2FXG.js → chunk-TQ5YAQ4Y.js} +6 -6
- package/dist/_node-chunks/{chunk-RMJNWFPV.js → chunk-TSJ3JCNN.js} +16 -10
- package/dist/_node-chunks/{chunk-XOAWAXUH.js → chunk-UYEX6LW6.js} +7 -7
- package/dist/_node-chunks/{chunk-3X67K6EI.js → chunk-VJLLEKWR.js} +11 -11
- package/dist/_node-chunks/{chunk-7SBWGNA7.js → chunk-WWJKLYU5.js} +8 -8
- package/dist/_node-chunks/{chunk-WNEWL2PL.js → chunk-XC7K4QEX.js} +6 -6
- package/dist/_node-chunks/{chunk-Q64ESHBN.js → chunk-Y64FM6U7.js} +8 -8
- package/dist/_node-chunks/{chunk-2GJBHF56.js → chunk-YDM7NH4T.js} +6 -6
- package/dist/_node-chunks/{chunk-BOWRRVJM.js → chunk-ZHVOUP6D.js} +6 -6
- package/dist/_node-chunks/dist-CFCU4PZG.js +27 -0
- package/dist/_node-chunks/dist-PFMT5YJK.js +16 -0
- package/dist/_node-chunks/{local-runtime-Z667YPXR.js → local-runtime-BKID5MBG.js} +19 -19
- package/dist/_node-chunks/{mdx-plugin-BPRPTZNP.js → mdx-plugin-7BOUDCZB.js} +13 -13
- package/dist/_node-chunks/{monorepo-GO54BY34.js → monorepo-FRHSAJB7.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-7BHSAJP4.js} +11 -11
- package/dist/_node-chunks/optimized-tests-F5LCOTXH.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-64HQIVWK.js → pattern-copy-play-6TGV6WS4.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-4RININ5C.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-2BSEZ7AC.js → rehype-external-links-EE2HT4QP.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-6253EA36.js → rehype-slug-ZKRW2V6Z.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-4PAAPG3J.js → relaxed-limits-6Q7VRQC5.js} +11 -11
- package/dist/_node-chunks/{run-XJT3YVMZ.js → run-6Y3ZTASZ.js} +22 -20
- package/dist/_node-chunks/{run-3SQW3FRF.js → run-EBHIAT35.js} +17 -17
- package/dist/_node-chunks/{setup-JIYCTADZ.js → setup-6XIF77JT.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-W74SGWHT.js → vitest.config.4.template-GMQNQ4UW.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 +2 -2
- 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 +2 -2
- 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 +66 -67
- 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 +36 -29
- 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-BWciJpaD.js → globals-runtime-BgWmCsA7.js} +91 -89
- package/dist/manager/_manager-chunks/{globals-runtime-BFVFUcji.js → globals-runtime-C59T0h-j.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DweLlyBa.js → globals-runtime-CCZrdft6.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-CdLHkSK1.js → globals-runtime-Cccwtspx.js} +30 -21
- package/dist/manager/_manager-chunks/{globals-runtime-DhygDQ09.js → globals-runtime-Ddp2jFET.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime--RDllwDw.js → globals-runtime-UFDJQlo-.js} +49 -41
- package/dist/manager/_manager-chunks/{runtime-BBaBlpAS.js → runtime-4wMiTjjZ.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-Dj8tizGo.js → runtime-AvqHE9rM.js} +31 -28
- package/dist/manager/_manager-chunks/{runtime-CE_oqcpl.js → runtime-D8QxTQiI.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-CRqm7NXD.js → runtime-DC3oEVlM.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-1BcYUf7-.js → runtime-DCOIOn4T.js} +24 -16
- package/dist/manager/_manager-chunks/{runtime-BFgSyEE6.js → runtime-D_FDSHFG.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-D3Gk2bTl.js → runtime-lPbyY_f5.js} +167 -165
- package/dist/manager/_manager-chunks/{runtime-B2VQIT0n.js → runtime-td6oYfU6.js} +1 -1
- 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
package/dist/telemetry/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sfnpbdazcnb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sfnpbdazcnb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sfnpbdazcnb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sfnpbdazcnb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sfnpbdazcnb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sfnpbdazcnb.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -22,13 +22,13 @@ import {
|
|
|
22
22
|
setTelemetryEnabled,
|
|
23
23
|
telemetry,
|
|
24
24
|
withSpan
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-4CZJ4SFH.js";
|
|
26
|
+
import "../_node-chunks/chunk-LJ5JRR5Q.js";
|
|
27
27
|
import {
|
|
28
28
|
detectAgent
|
|
29
|
-
} from "../_node-chunks/chunk-
|
|
30
|
-
import "../_node-chunks/chunk-
|
|
31
|
-
import "../_node-chunks/chunk-
|
|
29
|
+
} from "../_node-chunks/chunk-HJVZQS65.js";
|
|
30
|
+
import "../_node-chunks/chunk-NIOVXWQZ.js";
|
|
31
|
+
import "../_node-chunks/chunk-6JSZY5TJ.js";
|
|
32
32
|
export {
|
|
33
33
|
ErrorCollector,
|
|
34
34
|
addToGlobalContext,
|
package/dist/test/index.d.ts
CHANGED
|
@@ -70,11 +70,11 @@ declare function mocked<T>(item: T): MaybeMocked<T>;
|
|
|
70
70
|
type Promisify<Fn> = Fn extends {
|
|
71
71
|
<T>(...args: infer Args): infer Return;
|
|
72
72
|
} ? {
|
|
73
|
-
<T>(...args: Args): Return extends Promise<
|
|
73
|
+
<T>(...args: Args): Return extends Promise<unknown> ? Return : Promise<Return>;
|
|
74
74
|
} : Fn extends {
|
|
75
75
|
(...args: infer Args): infer Return;
|
|
76
76
|
} ? {
|
|
77
|
-
(...args: Args): Return extends Promise<
|
|
77
|
+
(...args: Args): Return extends Promise<unknown> ? Return : Promise<Return>;
|
|
78
78
|
} : Fn;
|
|
79
79
|
type PromisifyObject<O> = { [K in keyof O]: Promisify<O[K]> };
|
|
80
80
|
//#endregion
|
package/dist/test/index.js
CHANGED
|
@@ -16100,14 +16100,20 @@ function createExpect() {
|
|
|
16100
16100
|
let { assertionCalls } = getState(expect4);
|
|
16101
16101
|
return setState({ assertionCalls: assertionCalls + 1, soft: !1 }, expect4), expect(value, message);
|
|
16102
16102
|
});
|
|
16103
|
-
Object.assign(expect4, expect), expect4.getState = () => getState(expect4), expect4.setState = (state) => setState(state, expect4)
|
|
16104
|
-
|
|
16105
|
-
|
|
16106
|
-
|
|
16107
|
-
|
|
16108
|
-
|
|
16109
|
-
|
|
16110
|
-
|
|
16103
|
+
Object.assign(expect4, expect), expect4.getState = () => getState(expect4), expect4.setState = (state) => setState(state, expect4);
|
|
16104
|
+
let chaiExpect = expect;
|
|
16105
|
+
expect4.extend = (expects) => chaiExpect.extend(expect4, expects), Object.assign(expect4, {
|
|
16106
|
+
soft: (value, message) => {
|
|
16107
|
+
let assert2 = expect4(value, message);
|
|
16108
|
+
return expect4.setState({
|
|
16109
|
+
soft: !0
|
|
16110
|
+
}), assert2;
|
|
16111
|
+
}
|
|
16112
|
+
}), expect4.extend(customMatchers), Object.assign(expect4, {
|
|
16113
|
+
unreachable: (message) => {
|
|
16114
|
+
assert.fail(`expected${message ? ` "${message}" ` : " "}not to be reached`);
|
|
16115
|
+
}
|
|
16116
|
+
});
|
|
16111
16117
|
function assertions(expected) {
|
|
16112
16118
|
let errorGen = () => new Error(
|
|
16113
16119
|
`expected number of assertions to be ${expected}, but got ${expect4.getState().assertionCalls}`
|
package/dist/theming/create.d.ts
CHANGED
package/dist/theming/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as StorybookTheme, c as ThemeVarsColors, d as background, f as color, h as typography, i as Easing, l as ThemeVarsPartial, m as tokens, n as Brand, o as TextSize, p as easing, r as Color, s as ThemeVars, t as Background, u as Typography } from "../chunk-
|
|
1
|
+
import { a as StorybookTheme, c as ThemeVarsColors, d as background, f as color, h as typography, i as Easing, l as ThemeVarsPartial, m as tokens, n as Brand, o as TextSize, p as easing, r as Color, s as ThemeVars, t as Background, u as Typography } from "../chunk-D3uSIa6H.js";
|
|
2
2
|
import { create, themes } from "./create.js";
|
|
3
3
|
import React, { ReactNode } from "react";
|
|
4
4
|
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as StatusValue, $a as
|
|
2
|
-
export { API_ActiveTabsType, API_BaseEntry, API_ComponentEntry, API_ComposedRef, API_ComposedRefUpdate, API_DocsEntry, API_FilterFunction, API_GroupEntry, API_HashEntry, API_IframeRenderer, API_IndexHash, API_Layout, API_LayoutCustomisations, API_LeafEntry, API_LoadedRefData, API_MatchOptions, API_Notification, API_OptionsData, API_PanelPositions, API_PreparedIndexEntry, API_PreparedStoryIndex, API_Provider, API_ProviderData, API_RefId, API_RefStoryRuntimeData, API_RefUrl, API_Refs, API_ReleaseNotes, API_RenderOptions, API_RootEntry, API_RouteOptions, API_SetRefData, API_Settings, API_SidebarOptions, API_StateMerger, API_StoryEntry, API_StoryMapper, API_TestEntry, API_UI, API_UnknownEntries, API_Version, API_Versions, API_ViewMode, type Actor,
|
|
1
|
+
import { $ as StatusValue, $a as ModuleResolveConfig, $i as FilterFunction, $n as PlayFunction, $r as Addon_LoaderFunction, $t as ResolvedModuleExportFromType, Aa as BuilderOptions, Ai as API_ActiveTabsType, An as BaseAnnotations, Ao as API_IndexHash, Ar as StrictArgs, As as V3CompatIndexEntry, Ba as CoreCommon_OptionsEntry, Bi as API_Provider, Bn as DecoratorApplicator, Bo as API_TestEntry, Br as Addon_BaseMeta, Ca as StoryDocsError, Ci as Addon_TypesEnum, Cn as AnnotatedStoryFn, Co as VersionCheck, Cr as StoryIdentifier, Cs as StoriesEntry, Da as StoryDocsProviderPreset, Di as Addons_ArgTypes, Dn as ArgsEnhancer, Do as API_FilterFunction, Dr as StorybookParameters, Ds as StoryIndexInput, Ea as StoryDocsProviderInput, Ei as Addon_WrapperType, En as Args, Eo as API_DocsEntry, Er as StorybookInternalParameters, Es as StoryIndexEntry, Fa as ComponentManifest, Fi as API_LayoutCustomisations, Fn as CleanupCallback, Fo as API_RefStoryRuntimeData, Fr as Addon_Annotations, G as NON_AGGREGATED_STATUS_TYPE_IDS, Ga as CsfEnricher, Gi as API_RenderOptions, Gn as InputType, Go as SupportedFramework, Gr as Addon_Comparator, Ha as CoreCommon_ResolvedAddonVirtual, Hi as API_RefId, Hn as GlobalTypes, Ho as API_Version, Hr as Addon_BaseStoryObject, Ia as ComponentSubcomponentManifest, Ii as API_LoadedRefData, In as ComponentAnnotations, Io as API_ReleaseNotes, Ir as Addon_ArgType, J as StatusByTypeId, Ja as ForkbookConfig, Ji as API_SidebarOptions, Jn as LegacyStoryFn, Jr as Addon_Elements, K as REVIEW_STATUS_TYPE_ID, Ka as DocsOptions, Ki as API_RouteOptions, Kn as LegacyAnnotatedStoryFn, Ko as SupportedBuilder, Kr as Addon_Config, La as ComponentsManifest, Li as API_MatchOptions, Ln as ComponentId, Lo as API_RootEntry, Lr as Addon_ArgsStoryFn, Ma as CLIBaseOptions, Mi as API_ComposedRefUpdate, Mn as BeforeAll, Mo as API_OptionsData, Mr as Tag, Na as CLIOptions, Ni as API_IframeRenderer, Nn as BeforeEach, No as API_PreparedIndexEntry, Nr as TestFunction, Oa as Builder, Oi as BaseStory, On as ArgsFromMeta, Oo as API_GroupEntry, Or as StorybookTypes, Os as StoryIndexV2, Pa as CompatibleString, Pi as API_Layout, Pn as Canvas, Po as API_PreparedStoryIndex, Pr as ViewMode, Q as StatusTypeId, Qa as Middleware, Qi as API_ViewMode, Qn as Path, Qr as Addon_Loader, Qt as ResolvedModuleExport, Ra as CoreCommon_AddonEntry, Ri as API_Notification, Rn as ComponentTitle, Ro as API_Settings, Rr as Addon_BaseAnnotations, Sa as StoryDocsById, Si as Addon_Types, Sn as AfterEach, So as TypescriptOptions, Sr as StoryId, Ss as NormalizedStoriesSpecifier, Ta as StoryDocsProvider, Ti as Addon_WrapperSettings, Tn as ArgTypesEnhancer, To as API_ComponentEntry, Tr as StoryName, Ts as StoryIndex, Ua as CoreCommon_StorybookInfo, Ui as API_RefUrl, Un as Globals, Uo as API_Versions, Ur as Addon_BaseType, Va as CoreCommon_ResolvedAddonPreset, Vi as API_ProviderData, Vn as DecoratorFunction, Vo as API_UnknownEntries, Vr as Addon_BaseStoryFn, W as CHANGE_DETECTION_STATUS_TYPE_ID, Wa as CoreConfig, Wi as API_Refs, Wn as IncludeExcludeOptions, Wo as SupportedRenderer, Wr as Addon_Collection, X as StatusStoreByTypeId, Xa as LoadedPreset, Xi as API_StoryMapper, Xn as Parameters, Xr as Addon_LoadFn, Xt as DocsRenderFunction, Y as StatusStore, Ya as LoadOptions, Yi as API_StateMerger, Yn as LoaderFunction, Yr as Addon_LegacyStoryFn, Yt as DocsContextProps, Za as Manifests, Zi as API_UI, Zn as PartialStoryFn, Zr as Addon_Loadable, Zt as RenderContextCallbacks, _c as EventInfo, _i as Addon_StorySortParameterV7, _n as ProjectAnnotations, _o as StorybookFeatures, _r as StoryContextForEnhancers, _s as IndexInputStats, aa as SetStoriesStoryData, ac as TestProviderStoreById, ai as Addon_PartialStoryFn, an as Builder_WithRequiredProperty, ao as PresetPropertyFn, ar as SBObjectType, as as DocgenProvider, at as REVIEW_NAMESPACE, bi as Addon_ToolbarConfig, bn as TeardownRenderToCanvas, bo as TestBuildConfig, br as StoryContextUpdate, bs as Indexer, ci as Addon_StoryContext, cn as ModuleExport, co as PreviewAnnotation, cr as SBType, cs as DocgenSubcomponent, ct as PartialArgsStoryFn, di as Addon_StorySortComparator, dn as NamedOrDefaultProjectAnnotations, do as RootPageOptions, dr as StepFunction, ds as BaseIndexInput, ea as DocsPreparedPayload, ei as Addon_Loaders, en as ResolvedModuleExportType, eo as Options, er as PlayFunctionContext, et as StatusesByStoryIdAndTypeId, fc as MockUniversalStore, fi as Addon_StorySortComparatorV7, fn as NormalizedComponentAnnotations, fo as SecurityConfig, fr as StepLabel, fs as DocsAnchor, gc as Event, gi as Addon_StorySortParameter, gn as PreparedStory, go as StorybookConfigRaw, gr as StoryContext, gs as IndexInput, ha as ReviewState, hc as Actor, hi as Addon_StorySortOrder, hn as PreparedMeta, ho as StorybookConfigOptions, hr as StoryAnnotationsOrFn, hs as IndexEntry, ia as SetStoriesStory, ic as TestProviderStateByProviderId, ii as Addon_PageType, in as Builder_Unpromise, io as PresetProperty, ir as SBIntersectionType, is as DocgenPayload, it as REVIEW_EVENTS, ja as BuilderResult, ji as API_ComposedRef, jn as BaseProjectAnnotations, jo as API_LeafEntry, jr as StrictInputType, ka as BuilderName, ki as IndexEntryLegacy, kn as ArgsStoryFn, ko as API_HashEntry, kr as StrictArgTypes, ks as StoryIndexV3, li as Addon_StoryContextUpdate, ln as ModuleExports, lo as Ref, lr as SBUnionType, ls as DocgenWorkerModule, lt as Store_CSFExports, ma as ReviewCollection, mc as UniversalStore, mi as Addon_StorySortObjectParameter, mn as NormalizedStoryAnnotations, mo as Stats, mr as StoryAnnotations, ms as DocsIndexInput, na as SetGlobalsPayload, nc as TestProviderId, ni as Addon_OptionsParameter, nn as BuilderStats, no as Preset, nr as SBArrayType, ns as DocgenJsDocTags, nt as SupportedLanguage, oa as StoryPreparedPayload, oi as Addon_RenderOptions, on as BoundStory, oo as PresetValue, or as SBOtherType, os as DocgenProviderDescriptor, ot as ComposeStoryFn, pi as Addon_StorySortMethod, pn as NormalizedProjectAnnotations, po as ServerApp, pr as StepRunner, ps as DocsIndexEntry, q as Status, qa as Entry, qi as API_SetRefData, qn as LegacyStoryAnnotationsOrFn, qr as Addon_DecoratorFunction, ra as SetStoriesPayload, rc as TestProviderState, ri as Addon_OptionsParameterV7, rn as Builder_EnvsRaw, ro as PresetConfig, rr as SBEnumType, rs as DocgenMiddleware, rt as Feature, sc as UseTestProviderStore, si as Addon_RequireContext, sn as CSFFile, so as Presets, sr as SBScalarType, ss as DocgenProviderInput, st as ComposedStoryFn, ta as GlobalsUpdatedPayload, ti as Addon_MakeDecoratorResult, tn as StoryRenderOptions, to as PackageJson, tr as Renderer, ts as DocgenError, tt as UseStatusStore, ui as Addon_StoryFn, un as ModuleImportFn, uo as RendererName, ur as SeparatorOptions, us as BaseIndexEntry, ut as StoriesWithPartialProps, vc as StoreOptions, vi as Addon_StoryWrapper, vn as RenderContext, vo as TagOptions, vr as StoryContextForLoaders, vs as IndexedCSFFile, wa as StoryDocsPayload, wi as Addon_TypesMapping, wn as ArgTypes, wo as API_BaseEntry, wr as StoryKind, ws as StoriesSpecifier, xa as StoryDoc, xi as Addon_Type, xn as WebRenderer, xo as TestBuildFlags, xr as StoryFn, xs as IndexerOptions, yi as Addon_TestProviderType, yn as RenderToCanvas, yo as TagsOptions, yr as StoryContextForRender, ys as IndexedStory, za as CoreCommon_AddonInfo, zi as API_PanelPositions, zn as Conditional, zo as API_StoryEntry, zr as Addon_BaseDecorators } from "../chunk-BCG2ui5q.js";
|
|
2
|
+
export { API_ActiveTabsType, API_BaseEntry, API_ComponentEntry, API_ComposedRef, API_ComposedRefUpdate, API_DocsEntry, API_FilterFunction, API_GroupEntry, API_HashEntry, API_IframeRenderer, API_IndexHash, API_Layout, API_LayoutCustomisations, API_LeafEntry, API_LoadedRefData, API_MatchOptions, API_Notification, API_OptionsData, API_PanelPositions, API_PreparedIndexEntry, API_PreparedStoryIndex, API_Provider, API_ProviderData, API_RefId, API_RefStoryRuntimeData, API_RefUrl, API_Refs, API_ReleaseNotes, API_RenderOptions, API_RootEntry, API_RouteOptions, API_SetRefData, API_Settings, API_SidebarOptions, API_StateMerger, API_StoryEntry, API_StoryMapper, API_TestEntry, API_UI, API_UnknownEntries, API_Version, API_Versions, API_ViewMode, type Actor, Addon_Annotations, Addon_ArgType, Addon_ArgsStoryFn, Addon_BaseAnnotations, Addon_BaseDecorators, Addon_BaseMeta, Addon_BaseStoryFn, Addon_BaseStoryObject, Addon_BaseType, Addon_Collection, Addon_Comparator, Addon_Config, Addon_DecoratorFunction, Addon_Elements, Addon_LegacyStoryFn, Addon_LoadFn, Addon_Loadable, Addon_Loader, Addon_LoaderFunction, Addon_Loaders, Addon_MakeDecoratorResult, Addon_OptionsParameter, Addon_OptionsParameterV7, Addon_PageType, Addon_PartialStoryFn, Addon_RenderOptions, Addon_RequireContext, Addon_StoryContext, Addon_StoryContextUpdate, Addon_StoryFn, Addon_StorySortComparator, Addon_StorySortComparatorV7, Addon_StorySortMethod, Addon_StorySortObjectParameter, Addon_StorySortOrder, Addon_StorySortParameter, Addon_StorySortParameterV7, Addon_StoryWrapper, Addon_TestProviderType, Addon_ToolbarConfig, Addon_Type, Addon_Types, Addon_TypesEnum, Addon_TypesMapping, Addon_WrapperSettings, Addon_WrapperType, Addons_ArgTypes, type AfterEach, type AnnotatedStoryFn, type ArgTypes, type ArgTypesEnhancer, type Args, type ArgsEnhancer, type ArgsFromMeta, type ArgsStoryFn, type BaseAnnotations, BaseIndexEntry, BaseIndexInput, type BaseProjectAnnotations, BaseStory, type BeforeAll, type BeforeEach, BoundStory, Builder, BuilderName, BuilderOptions, BuilderResult, BuilderStats, Builder_EnvsRaw, Builder_Unpromise, Builder_WithRequiredProperty, CHANGE_DETECTION_STATUS_TYPE_ID, CLIBaseOptions, CLIOptions, CSFFile, type Canvas, type CleanupCallback, CompatibleString, type ComponentAnnotations, type ComponentId, ComponentManifest, ComponentSubcomponentManifest, type ComponentTitle, ComponentsManifest, ComposeStoryFn, ComposedStoryFn, type Conditional, CoreCommon_AddonEntry, CoreCommon_AddonInfo, CoreCommon_OptionsEntry, CoreCommon_ResolvedAddonPreset, CoreCommon_ResolvedAddonVirtual, CoreCommon_StorybookInfo, CoreConfig, CsfEnricher, type DecoratorApplicator, type DecoratorFunction, type DocgenError, type DocgenJsDocTags, type DocgenMiddleware, type DocgenPayload, type DocgenProvider, type DocgenProviderDescriptor, type DocgenProviderInput, type DocgenSubcomponent, type DocgenWorkerModule, DocsAnchor, DocsContextProps, DocsIndexEntry, DocsIndexInput, DocsOptions, DocsPreparedPayload, DocsRenderFunction, Entry, type Event, type EventInfo, Feature, FilterFunction, ForkbookConfig, type GlobalTypes, type Globals, GlobalsUpdatedPayload, type IncludeExcludeOptions, IndexEntry, IndexEntryLegacy, IndexInput, IndexInputStats, IndexedCSFFile, IndexedStory, Indexer, IndexerOptions, type InputType, type LegacyAnnotatedStoryFn, type LegacyStoryAnnotationsOrFn, type LegacyStoryFn, LoadOptions, LoadedPreset, type LoaderFunction, Manifests, Middleware, type MockUniversalStore, ModuleExport, ModuleExports, ModuleImportFn, ModuleResolveConfig, NON_AGGREGATED_STATUS_TYPE_IDS, NamedOrDefaultProjectAnnotations, NormalizedComponentAnnotations, NormalizedProjectAnnotations, NormalizedStoriesSpecifier, NormalizedStoryAnnotations, Options, PackageJson, type Parameters, PartialArgsStoryFn, type PartialStoryFn, Path, type PlayFunction, type PlayFunctionContext, PreparedMeta, PreparedStory, Preset, PresetConfig, PresetProperty, PresetPropertyFn, PresetValue, Presets, PreviewAnnotation, ProjectAnnotations, REVIEW_EVENTS, REVIEW_NAMESPACE, REVIEW_STATUS_TYPE_ID, Ref, RenderContext, RenderContextCallbacks, RenderToCanvas, type Renderer, RendererName, ResolvedModuleExport, ResolvedModuleExportFromType, ResolvedModuleExportType, type ReviewCollection, type ReviewState, RootPageOptions, type SBArrayType, type SBEnumType, type SBIntersectionType, type SBObjectType, type SBOtherType, type SBScalarType, type SBType, type SBUnionType, SecurityConfig, type SeparatorOptions, ServerApp, SetGlobalsPayload, SetStoriesPayload, SetStoriesStory, SetStoriesStoryData, Stats, type Status, type StatusByTypeId, type StatusStore, type StatusStoreByTypeId, type StatusTypeId, type StatusValue, type StatusesByStoryIdAndTypeId, type StepFunction, type StepLabel, type StepRunner, type StoreOptions, Store_CSFExports, StoriesEntry, StoriesSpecifier, StoriesWithPartialProps, type StoryAnnotations, type StoryAnnotationsOrFn, type StoryContext, type StoryContextForEnhancers, type StoryContextForLoaders, type StoryContextForRender, type StoryContextUpdate, type StoryDoc, type StoryDocsById, type StoryDocsError, type StoryDocsPayload, type StoryDocsProvider, type StoryDocsProviderInput, type StoryDocsProviderPreset, type StoryFn, type StoryId, type StoryIdentifier, StoryIndex, StoryIndexEntry, StoryIndexInput, StoryIndexV2, StoryIndexV3, type StoryKind, type StoryName, StoryPreparedPayload, StoryRenderOptions, StorybookConfigOptions, StorybookConfigRaw, StorybookFeatures, StorybookInternalParameters, StorybookParameters, StorybookTypes, type StrictArgTypes, type StrictArgs, type StrictInputType, SupportedBuilder, SupportedFramework, SupportedLanguage, SupportedRenderer, type Tag, TagOptions, TagsOptions, TeardownRenderToCanvas, TestBuildConfig, TestBuildFlags, type TestFunction, type TestProviderId, type TestProviderState, type TestProviderStateByProviderId, type TestProviderStoreById, TypescriptOptions, type UniversalStore, type UseStatusStore, type UseTestProviderStore, V3CompatIndexEntry, VersionCheck, ViewMode, WebRenderer };
|
package/dist/types/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
CHANGE_DETECTION_STATUS_TYPE_ID,
|
|
3
3
|
NON_AGGREGATED_STATUS_TYPE_IDS,
|
|
4
4
|
REVIEW_STATUS_TYPE_ID
|
|
5
|
-
} from "../_browser-chunks/chunk-
|
|
5
|
+
} from "../_browser-chunks/chunk-EBSOKHFG.js";
|
|
6
6
|
import "../_browser-chunks/chunk-LYYXDWR2.js";
|
|
7
7
|
import "../_browser-chunks/chunk-E6QKKKLO.js";
|
|
8
8
|
import "../_browser-chunks/chunk-BNP234B4.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aussieljk/forkbook",
|
|
3
|
-
"version": "0.0.1-
|
|
3
|
+
"version": "0.0.1-13",
|
|
4
4
|
"description": "Forkbook: a small, fast fork of Storybook for React with Vite, Next.js with Vite and React Native",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"forkbook",
|
|
@@ -839,7 +839,7 @@
|
|
|
839
839
|
"@vitest/utils": "^3.2.4",
|
|
840
840
|
"acorn": "^8.15.0",
|
|
841
841
|
"acorn-jsx": "^5.3.2",
|
|
842
|
-
"acorn-walk": "^
|
|
842
|
+
"acorn-walk": "^8.3.5",
|
|
843
843
|
"ansi-to-html": "^0.7.2",
|
|
844
844
|
"browser-dtector": "^3.4.0",
|
|
845
845
|
"chai": "^5.1.1",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_enqaafxxjgh from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_enqaafxxjgh from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_enqaafxxjgh from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_enqaafxxjgh.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_enqaafxxjgh.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_enqaafxxjgh.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
|
|
13
|
-
// package.json
|
|
14
|
-
var version = "0.0.1-12";
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
version
|
|
18
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_enqaafxxjgh from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_enqaafxxjgh from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_enqaafxxjgh from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_enqaafxxjgh.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_enqaafxxjgh.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_enqaafxxjgh.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_enqaafxxjgh from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_enqaafxxjgh from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_enqaafxxjgh from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_enqaafxxjgh.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_enqaafxxjgh.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_enqaafxxjgh.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
convertPathToPattern,
|
|
14
|
-
escapePath,
|
|
15
|
-
glob,
|
|
16
|
-
globSync,
|
|
17
|
-
isDynamicPattern
|
|
18
|
-
} from "./chunk-K2K6KTBC.js";
|
|
19
|
-
import "./chunk-IOXDHKFF.js";
|
|
20
|
-
import "./chunk-MNQVVJZN.js";
|
|
21
|
-
export {
|
|
22
|
-
convertPathToPattern,
|
|
23
|
-
escapePath,
|
|
24
|
-
glob,
|
|
25
|
-
globSync,
|
|
26
|
-
isDynamicPattern
|
|
27
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_enqaafxxjgh from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_enqaafxxjgh from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_enqaafxxjgh from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_enqaafxxjgh.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_enqaafxxjgh.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_enqaafxxjgh.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
require_dist
|
|
14
|
-
} from "./chunk-HW4T3OXA.js";
|
|
15
|
-
import "./chunk-MNQVVJZN.js";
|
|
16
|
-
export default require_dist();
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_enqaafxxjgh from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_enqaafxxjgh from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_enqaafxxjgh from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_enqaafxxjgh.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_enqaafxxjgh.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_enqaafxxjgh.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
instructions
|
|
14
|
-
} from "./chunk-Q64ESHBN.js";
|
|
15
|
-
import "./chunk-VJEN2JM3.js";
|
|
16
|
-
import "./chunk-SUHBBHKR.js";
|
|
17
|
-
import "./chunk-UFZUSE3Y.js";
|
|
18
|
-
import "./chunk-HMQUTLMS.js";
|
|
19
|
-
import "./chunk-MNQVVJZN.js";
|
|
20
|
-
export {
|
|
21
|
-
instructions
|
|
22
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_enqaafxxjgh from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_enqaafxxjgh from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_enqaafxxjgh from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_enqaafxxjgh.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_enqaafxxjgh.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_enqaafxxjgh.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
postinstallAddon
|
|
14
|
-
} from "./chunk-BDATIKVV.js";
|
|
15
|
-
import "./chunk-XOAWAXUH.js";
|
|
16
|
-
import "./chunk-JHX35YKT.js";
|
|
17
|
-
import "./chunk-MNQVVJZN.js";
|
|
18
|
-
export {
|
|
19
|
-
postinstallAddon
|
|
20
|
-
};
|
package/dist/chunk-BGhyFTJO.d.ts
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { n as UnionToIntersection, t as OmitIndexSignature } from "./chunk-DaVb55-_.js";
|
|
2
|
-
import { t as SetOptional } from "./chunk-pcFXCimE.js";
|
|
3
|
-
import { t as Simplify } from "./chunk-FjDVzZTj.js";
|
|
4
|
-
import { C as Globals$2, s as Args$2, w as InputType } from "./chunk-DROZ9oel.js";
|
|
5
|
-
import { AddonTypes, StoryContext } from "@aussieljk/forkbook/internal/csf";
|
|
6
|
-
import { Args as Args$1, ComponentAnnotations, ComposedStoryFn, DecoratorFunction as DecoratorFunction$1, NormalizedProjectAnnotations, ProjectAnnotations as ProjectAnnotations$1, Renderer as Renderer$1, StoryAnnotations, TestFunction } from "@aussieljk/forkbook/internal/types";
|
|
7
|
-
|
|
8
|
-
//#region .dts-emit/code/core/src/csf/includeConditionalArg.d.ts
|
|
9
|
-
/**
|
|
10
|
-
* Helper function to include/exclude an arg based on the value of other other args aka "conditional
|
|
11
|
-
* args"
|
|
12
|
-
*/
|
|
13
|
-
declare const includeConditionalArg: (argType: InputType, args: Args$2, globals: Globals$2) => boolean;
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region .dts-emit/code/core/src/csf/csf-factories.d.ts
|
|
16
|
-
interface Preview$1<TRenderer extends Renderer$1 = Renderer$1> {
|
|
17
|
-
readonly _tag: 'Preview';
|
|
18
|
-
input: ProjectAnnotations$1<TRenderer> & {
|
|
19
|
-
addons?: PreviewAddonEntry$1[];
|
|
20
|
-
};
|
|
21
|
-
composed: NormalizedProjectAnnotations<TRenderer>;
|
|
22
|
-
meta<TArgs = Args$1, TMetaArgKeys extends PropertyKey = never>(input: Omit<ComponentAnnotations<TRenderer & {
|
|
23
|
-
args: TArgs;
|
|
24
|
-
}, TArgs & TRenderer['args']>, 'args'> & {
|
|
25
|
-
args?: MetaArgs<TArgs & TRenderer['args'], TMetaArgKeys>;
|
|
26
|
-
}): Meta$1<RequireMetaArgs<TRenderer & {
|
|
27
|
-
args: TArgs;
|
|
28
|
-
}, TMetaArgKeys>, TMetaArgKeys>;
|
|
29
|
-
type<T>(): Preview$1<TRenderer & T>;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* A typed addon created with `definePreviewAddon`, or a legacy preview annotations module namespace
|
|
33
|
-
* (`import * as addon from 'some-addon/preview'`). Legacy namespaces add no types to the preview.
|
|
34
|
-
*/
|
|
35
|
-
type PreviewAddonEntry$1 = PreviewAddon<never> | Record<string, unknown>;
|
|
36
|
-
type InferTypes$1<T extends PreviewAddonEntry$1[]> = Extract<T[number], PreviewAddon<never>>[] extends PreviewAddon<infer C>[] ? C & {
|
|
37
|
-
csf4: true;
|
|
38
|
-
} : never;
|
|
39
|
-
declare function definePreview<TRenderer extends Renderer$1, Addons extends PreviewAddonEntry$1[]>(input: ProjectAnnotations$1<TRenderer> & {
|
|
40
|
-
addons?: Addons;
|
|
41
|
-
}): Preview$1<TRenderer & InferTypes$1<Addons>>;
|
|
42
|
-
interface PreviewAddon<in TExtraContext extends AddonTypes = AddonTypes> extends ProjectAnnotations$1<Renderer$1> {}
|
|
43
|
-
declare function definePreviewAddon<TExtraContext extends AddonTypes = AddonTypes>(preview: ProjectAnnotations$1<Renderer$1>): PreviewAddon<TExtraContext>;
|
|
44
|
-
declare function isPreview(input: unknown): input is Preview$1<Renderer$1>;
|
|
45
|
-
type MetaArgs<TArgs, TKeys extends PropertyKey> = string extends TKeys ? Partial<NoInfer<TArgs>> : { [K in TKeys]?: K extends keyof NoInfer<TArgs> ? NoInfer<TArgs>[K] : never } & Partial<Record<Exclude<keyof NoInfer<TArgs>, TKeys>, unknown>>;
|
|
46
|
-
type MetaArgKeys<TArgs, TKeys extends PropertyKey> = string extends TKeys ? never : TKeys & keyof TArgs;
|
|
47
|
-
type WithMetaArgs<TArgs, TKeys extends PropertyKey> = TArgs & Required<Pick<TArgs, MetaArgKeys<TArgs, TKeys>>>;
|
|
48
|
-
type RequireMetaArgs<TRenderer extends Renderer$1, TKeys extends PropertyKey> = TRenderer & {
|
|
49
|
-
args: WithMetaArgs<TRenderer['args'], TKeys>;
|
|
50
|
-
};
|
|
51
|
-
type DecoratorsArgs<TRenderer extends Renderer$1, Decorators> = UnionToIntersection<Decorators extends DecoratorFunction$1<TRenderer, infer TArgs> ? TArgs : unknown>;
|
|
52
|
-
type InferMetaTypes<TRenderer extends Renderer$1, TArgs, Decorators> = TRenderer & {
|
|
53
|
-
args: Simplify<TArgs & OmitIndexSignature<DecoratorsArgs<TRenderer, Decorators>>>;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* The input of a renderer's `preview.meta()`, apart from `component` and `render`. `args` are
|
|
57
|
-
* typed by the keys provided, and the meta's own hooks see those args as present.
|
|
58
|
-
*/
|
|
59
|
-
type MetaInput$1<TRenderer extends Renderer$1, TArgs, Decorators, TKeys extends PropertyKey> = {
|
|
60
|
-
args?: MetaArgs<InferMetaTypes<TRenderer, TArgs, Decorators>['args'], TKeys>;
|
|
61
|
-
decorators?: Decorators | Decorators[];
|
|
62
|
-
} & Omit<ComponentAnnotations<TRenderer, NoInfer<WithMetaArgs<TArgs & TRenderer['args'], TKeys>>>, 'args' | 'component' | 'decorators' | 'render'>;
|
|
63
|
-
/**
|
|
64
|
-
* The renderer types of the meta returned by `preview.meta()`: `TArgs` plus the args read by
|
|
65
|
-
* `Decorators`, with the args set in meta present.
|
|
66
|
-
*/
|
|
67
|
-
type MetaTypes$1<TRenderer extends Renderer$1, TArgs, Decorators, TKeys extends PropertyKey> = RequireMetaArgs<InferMetaTypes<TRenderer, TArgs, Decorators>, TKeys>;
|
|
68
|
-
/** The args a story must still provide: the ones `preview.meta()` didn't set. */
|
|
69
|
-
type StoryArgs$1<TArgs, TKeys extends PropertyKey> = SetOptional<TArgs, MetaArgKeys<TArgs, TKeys>>;
|
|
70
|
-
/**
|
|
71
|
-
* The meta's arg keys after `meta.type<T>()`. An arg that `T` redeclares is required again, because
|
|
72
|
-
* the meta's value was not checked against its new type.
|
|
73
|
-
*/
|
|
74
|
-
type TypedMetaArgKeys$1<TKeys extends PropertyKey, T> = Exclude<TKeys, T extends {
|
|
75
|
-
args: infer TArgs;
|
|
76
|
-
} ? keyof TArgs : never>;
|
|
77
|
-
/**
|
|
78
|
-
* Adds the args of a typed `render` to those of the meta's `component`. A `render` typed as `any` or
|
|
79
|
-
* `Args` adds none, and it can't change the types of the component's args.
|
|
80
|
-
*/
|
|
81
|
-
type WithRenderArgs<TComponentArgs, TRenderArgs> = TComponentArgs & (string extends keyof TRenderArgs ? unknown : Omit<TRenderArgs, keyof TComponentArgs>);
|
|
82
|
-
interface Meta$1<TRenderer extends Renderer$1, TMetaArgKeys extends PropertyKey = never> {
|
|
83
|
-
readonly _tag: 'Meta';
|
|
84
|
-
input: Omit<ComponentAnnotations<TRenderer, TRenderer['args']>, 'args'> & {
|
|
85
|
-
args: [MetaArgKeys<TRenderer['args'], TMetaArgKeys>] extends [never] ? Partial<TRenderer['args']> | undefined : WithMetaArgs<Partial<TRenderer['args']>, TMetaArgKeys>;
|
|
86
|
-
};
|
|
87
|
-
preview: Preview$1<TRenderer>;
|
|
88
|
-
story(input?: () => TRenderer['storyResult']): Story$1<TRenderer, {
|
|
89
|
-
render: () => TRenderer['storyResult'];
|
|
90
|
-
}>;
|
|
91
|
-
story<TInput extends StoryAnnotations<TRenderer, TRenderer['args'], StoryArgs$1<TRenderer['args'], TMetaArgKeys>>>(input?: TInput): Story$1<TRenderer, TInput>;
|
|
92
|
-
type<T>(): Meta$1<TRenderer & T, TypedMetaArgKeys$1<TMetaArgKeys, T>>;
|
|
93
|
-
}
|
|
94
|
-
declare function isMeta(input: unknown): input is Meta$1<Renderer$1>;
|
|
95
|
-
interface Story$1<TRenderer extends Renderer$1, TInput extends {
|
|
96
|
-
play?: (...args: never[]) => void;
|
|
97
|
-
render?: (...args: never[]) => TRenderer['storyResult'];
|
|
98
|
-
} = StoryAnnotations<TRenderer, TRenderer['args']>> {
|
|
99
|
-
readonly _tag: 'Story';
|
|
100
|
-
input: TInput;
|
|
101
|
-
composed: Pick<ComposedStoryFn<TRenderer>, 'argTypes' | 'parameters' | 'id' | 'tags' | 'globals'> & {
|
|
102
|
-
args: TRenderer['args'];
|
|
103
|
-
name: string;
|
|
104
|
-
};
|
|
105
|
-
meta: Meta$1<TRenderer>;
|
|
106
|
-
play: TInput['play'];
|
|
107
|
-
run: (context?: Partial<StoryContext<TRenderer, Partial<TRenderer['args']>>>, testName?: string) => Promise<void>;
|
|
108
|
-
extend<TInput extends StoryAnnotations<TRenderer, TRenderer['args']>>(input: TInput): Story$1<TRenderer, TInput>;
|
|
109
|
-
test(name: string, fn: TestFunction<TRenderer>): void;
|
|
110
|
-
test(name: string, annotations: StoryAnnotations<TRenderer, TRenderer['args']>, fn: TestFunction<TRenderer>): void;
|
|
111
|
-
}
|
|
112
|
-
declare function isStory<TRenderer extends Renderer$1>(input: unknown): input is Story$1<TRenderer>;
|
|
113
|
-
declare function getStoryChildren<TRenderer extends Renderer$1>(story: Story$1<TRenderer>): Story$1<TRenderer>[];
|
|
114
|
-
//#endregion
|
|
115
|
-
export { isStory as _, Preview$1 as a, Story$1 as c, WithRenderArgs as d, definePreview as f, isPreview as g, isMeta as h, MetaTypes$1 as i, StoryArgs$1 as l, getStoryChildren as m, Meta$1 as n, PreviewAddon as o, definePreviewAddon as p, MetaInput$1 as r, PreviewAddonEntry$1 as s, InferTypes$1 as t, TypedMetaArgKeys$1 as u, includeConditionalArg as v };
|
package/dist/chunk-DaVb55-_.d.ts
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/type-fest/source/union-to-intersection.d.ts
|
|
2
|
-
/**
|
|
3
|
-
Convert a union type to an intersection type.
|
|
4
|
-
|
|
5
|
-
Inspired by [this Stack Overflow answer](https://stackoverflow.com/a/50375286/2172153).
|
|
6
|
-
|
|
7
|
-
@example
|
|
8
|
-
```
|
|
9
|
-
import type {UnionToIntersection} from 'type-fest';
|
|
10
|
-
|
|
11
|
-
type Union = {the(): void} | {great(arg: string): void} | {escape: boolean};
|
|
12
|
-
|
|
13
|
-
type Intersection = UnionToIntersection<Union>;
|
|
14
|
-
//=> {the(): void} & {great(arg: string): void} & {escape: boolean}
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
@category Type
|
|
18
|
-
*/
|
|
19
|
-
type UnionToIntersection<Union> = (// `extends unknown` is always going to be the case and is used to convert the
|
|
20
|
-
// `Union` into a [distributive conditional
|
|
21
|
-
// type](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types).
|
|
22
|
-
Union extends unknown // The union type is used as the only argument to a function since the union
|
|
23
|
-
// of function arguments is an intersection.
|
|
24
|
-
? (distributedUnion: Union) => void // This won't happen.
|
|
25
|
-
: never // Infer the `Intersection` type since TypeScript represents the positional
|
|
26
|
-
// arguments of unions of functions as an intersection of the union.
|
|
27
|
-
) extends ((mergedIntersection: infer Intersection) => void) // The `& Union` is to ensure result of `UnionToIntersection<A | B>` is always assignable to `A | B`
|
|
28
|
-
? Intersection & Union : never;
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region ../../node_modules/type-fest/source/omit-index-signature.d.ts
|
|
31
|
-
/**
|
|
32
|
-
Omit any index signatures from the given object type, leaving only explicitly defined properties.
|
|
33
|
-
|
|
34
|
-
This is the counterpart of `PickIndexSignature`.
|
|
35
|
-
|
|
36
|
-
Use-cases:
|
|
37
|
-
- Remove overly permissive signatures from third-party types.
|
|
38
|
-
|
|
39
|
-
This type was taken from this [StackOverflow answer](https://stackoverflow.com/a/68261113/420747).
|
|
40
|
-
|
|
41
|
-
It relies on the fact that an empty object (`{}`) is assignable to an object with just an index signature, like `Record<string, unknown>`, but not to an object with explicitly defined keys, like `Record<'foo' | 'bar', unknown>`.
|
|
42
|
-
|
|
43
|
-
(The actual value type, `unknown`, is irrelevant and could be any type. Only the key type matters.)
|
|
44
|
-
|
|
45
|
-
```
|
|
46
|
-
const indexed: Record<string, unknown> = {}; // Allowed
|
|
47
|
-
|
|
48
|
-
// @ts-expect-error
|
|
49
|
-
const keyed: Record<'foo', unknown> = {}; // Error
|
|
50
|
-
// TS2739: Type '{}' is missing the following properties from type 'Record<"foo" | "bar", unknown>': foo, bar
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Instead of causing a type error like the above, you can also use a [conditional type](https://www.typescriptlang.org/docs/handbook/2/conditional-types.html) to test whether a type is assignable to another:
|
|
54
|
-
|
|
55
|
-
```
|
|
56
|
-
type Indexed = {} extends Record<string, unknown>
|
|
57
|
-
? '✅ `{}` is assignable to `Record<string, unknown>`'
|
|
58
|
-
: '❌ `{}` is NOT assignable to `Record<string, unknown>`';
|
|
59
|
-
|
|
60
|
-
type IndexedResult = Indexed;
|
|
61
|
-
//=> '✅ `{}` is assignable to `Record<string, unknown>`'
|
|
62
|
-
|
|
63
|
-
type Keyed = {} extends Record<'foo' | 'bar', unknown>
|
|
64
|
-
? '✅ `{}` is assignable to `Record<\'foo\' | \'bar\', unknown>`'
|
|
65
|
-
: '❌ `{}` is NOT assignable to `Record<\'foo\' | \'bar\', unknown>`';
|
|
66
|
-
|
|
67
|
-
type KeyedResult = Keyed;
|
|
68
|
-
//=> '❌ `{}` is NOT assignable to `Record<\'foo\' | \'bar\', unknown>`'
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
Using a [mapped type](https://www.typescriptlang.org/docs/handbook/2/mapped-types.html#further-exploration), you can then check for each `KeyType` of `ObjectType`...
|
|
72
|
-
|
|
73
|
-
```
|
|
74
|
-
type OmitIndexSignature<ObjectType> = {
|
|
75
|
-
[KeyType in keyof ObjectType // Map each key of `ObjectType`...
|
|
76
|
-
]: ObjectType[KeyType]; // ...to its original value, i.e. `OmitIndexSignature<Foo> == Foo`.
|
|
77
|
-
};
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
...whether an empty object (`{}`) would be assignable to an object with that `KeyType` (`Record<KeyType, unknown>`)...
|
|
81
|
-
|
|
82
|
-
```
|
|
83
|
-
type OmitIndexSignature<ObjectType> = {
|
|
84
|
-
[KeyType in keyof ObjectType
|
|
85
|
-
// Is `{}` assignable to `Record<KeyType, unknown>`?
|
|
86
|
-
as {} extends Record<KeyType, unknown>
|
|
87
|
-
? never // ✅ `{}` is assignable to `Record<KeyType, unknown>`
|
|
88
|
-
: KeyType // ❌ `{}` is NOT assignable to `Record<KeyType, unknown>`
|
|
89
|
-
]: ObjectType[KeyType];
|
|
90
|
-
};
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
If `{}` is assignable, it means that `KeyType` is an index signature and we want to remove it. If it is not assignable, `KeyType` is a "real" key and we want to keep it.
|
|
94
|
-
|
|
95
|
-
@example
|
|
96
|
-
```
|
|
97
|
-
import type {OmitIndexSignature} from 'type-fest';
|
|
98
|
-
|
|
99
|
-
type Example = {
|
|
100
|
-
// These index signatures will be removed.
|
|
101
|
-
[x: string]: any;
|
|
102
|
-
[x: number]: any;
|
|
103
|
-
[x: symbol]: any;
|
|
104
|
-
[x: `head-${string}`]: string;
|
|
105
|
-
[x: `${string}-tail`]: string;
|
|
106
|
-
[x: `head-${string}-tail`]: string;
|
|
107
|
-
[x: `${bigint}`]: string;
|
|
108
|
-
[x: `embedded-${number}`]: string;
|
|
109
|
-
|
|
110
|
-
// These explicitly defined keys will remain.
|
|
111
|
-
foo: 'bar';
|
|
112
|
-
qux?: 'baz';
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
type ExampleWithoutIndexSignatures = OmitIndexSignature<Example>;
|
|
116
|
-
//=> {foo: 'bar'; qux?: 'baz'}
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
@see {@link PickIndexSignature}
|
|
120
|
-
@category Object
|
|
121
|
-
*/
|
|
122
|
-
type OmitIndexSignature<ObjectType> = { [KeyType in keyof ObjectType as {} extends Record<KeyType, unknown> ? never : KeyType]: ObjectType[KeyType] };
|
|
123
|
-
//#endregion
|
|
124
|
-
export { UnionToIntersection as n, OmitIndexSignature as t };
|