@aussieljk/forkbook 0.0.1-2 → 0.0.1-3
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/assets/addon-vitest/templates/vitest.config.4.template.ts +2 -2
- package/assets/browser/favicon-wrapper.svg +4 -4
- package/assets/browser/favicon.svg +1 -1
- package/assets/browser/inter-LICENSE.txt +92 -0
- package/assets/browser/inter-variable-italic.woff2 +0 -0
- package/assets/browser/inter-variable.woff2 +0 -0
- package/assets/browser/mirror-ball.png +0 -0
- package/assets/builder-vite/iframe.html +8 -24
- package/assets/create/rendererAssets/common/Configure.mdx +100 -100
- package/assets/create/rendererAssets/common/button.css +1 -1
- package/assets/create/rendererAssets/common/header.css +1 -1
- package/assets/create/rendererAssets/common/page.css +2 -2
- package/assets/server/base-preview-body.html +32 -32
- package/assets/server/base-preview-head.html +86 -86
- package/assets/server/template.ejs +11 -26
- package/dist/_browser-chunks/{Color-PCLE2J36.js → Color-PSH7RHPM.js} +5 -5
- package/dist/_browser-chunks/{WithTooltip-XSQFTBMB.js → WithTooltip-JLXUJSYD.js} +3 -3
- package/dist/_browser-chunks/{chunk-66OCZ54D.js → chunk-3HM3VWJS.js} +1 -1
- package/dist/_browser-chunks/{chunk-CFAOWGL7.js → chunk-3M5T7BW4.js} +1 -1
- package/dist/_browser-chunks/{chunk-2MEPHP35.js → chunk-4KIQBRD2.js} +1 -1
- package/dist/_browser-chunks/{chunk-OQWFVDIN.js → chunk-5H4KFI44.js} +1 -1
- package/dist/_browser-chunks/{chunk-C3D4HEFY.js → chunk-6SHRDXGF.js} +24 -24
- package/dist/_browser-chunks/{chunk-6SXYJQST.js → chunk-76222HQR.js} +1 -1
- package/dist/_browser-chunks/{chunk-JSBKXXXF.js → chunk-7DQREF4S.js} +1 -1
- package/dist/_browser-chunks/{chunk-RSPAQWVJ.js → chunk-BNP234B4.js} +1 -1
- package/dist/_browser-chunks/{chunk-JYVGARBG.js → chunk-DCZTO4JJ.js} +68 -76
- package/dist/_browser-chunks/{chunk-P6PK47TQ.js → chunk-DS2WQZGO.js} +7 -21
- package/dist/_browser-chunks/{chunk-FJGWSWL5.js → chunk-DYNTDJ3O.js} +3 -3
- package/dist/_browser-chunks/{chunk-KQ7CRO2B.js → chunk-EE42XVSP.js} +8 -8
- package/dist/_browser-chunks/{chunk-ODVJ3XZJ.js → chunk-GRO2ZYEJ.js} +2 -2
- package/dist/_browser-chunks/{chunk-LV5PIKV4.js → chunk-GU3X2J4S.js} +2 -2
- package/dist/_browser-chunks/{chunk-MDOL7KML.js → chunk-K2B36HKM.js} +1 -1
- package/dist/_browser-chunks/{chunk-CFWWCCZV.js → chunk-K6GRZSXS.js} +1 -1
- package/dist/_browser-chunks/{chunk-YTIT5NA5.js → chunk-KYSD26D6.js} +3 -3
- package/dist/_browser-chunks/{chunk-RNTIV5CE.js → chunk-LYYXDWR2.js} +9 -9
- package/dist/_browser-chunks/{chunk-V5M7Q4HT.js → chunk-MJIDTL3X.js} +4 -14
- package/dist/_browser-chunks/{chunk-OD6IBQCC.js → chunk-N3NRW5XX.js} +2 -2
- package/dist/_browser-chunks/{chunk-V2G23FV7.js → chunk-N5WQGLI7.js} +1 -1
- package/dist/_browser-chunks/{chunk-W5M6NPS3.js → chunk-NMRSYACM.js} +2 -2
- package/dist/_browser-chunks/{chunk-YEKO6BHJ.js → chunk-ONTSNQON.js} +1 -1
- package/dist/_browser-chunks/{chunk-PFRNG3UC.js → chunk-PPZ2HCWJ.js} +4 -4
- package/dist/_browser-chunks/{chunk-EIYAKDGP.js → chunk-SZCSXISG.js} +124 -104
- package/dist/_browser-chunks/{chunk-JMC7AIKT.js → chunk-UDQ3XQFC.js} +1 -1
- package/dist/_browser-chunks/{chunk-MFMDGWP6.js → chunk-ZLWA5RIE.js} +1 -1
- package/dist/_node-chunks/{attached-runtime-I2G4WLJI.js → attached-runtime-KZYKMMDD.js} +29 -29
- package/dist/_node-chunks/{builder-manager-VVHYQXCH.js → builder-manager-337QQEZ6.js} +32 -32
- package/dist/_node-chunks/{chunk-3T4ZSNPH.js → chunk-224FM5GP.js} +8 -8
- package/dist/_node-chunks/chunk-22OJYYPD.js +18 -0
- package/dist/_node-chunks/{chunk-JGGFYIG5.js → chunk-26MVQWHR.js} +7 -7
- package/dist/_node-chunks/{chunk-JZOO7GGC.js → chunk-27HJO5MV.js} +6 -6
- package/dist/_node-chunks/{chunk-UMUBKI6E.js → chunk-27KGUS37.js} +25 -25
- package/dist/_node-chunks/{chunk-E6YESGLX.js → chunk-2D7P5VUJ.js} +30 -30
- package/dist/_node-chunks/{chunk-SVTBJ7Q3.js → chunk-2OI3EZE2.js} +6 -6
- package/dist/_node-chunks/{chunk-IK4FGZLR.js → chunk-34YSGPI4.js} +6 -6
- package/dist/_node-chunks/{chunk-6YKBRP72.js → chunk-4RSOZZZV.js} +6 -6
- package/dist/_node-chunks/{chunk-ZMAMXQKP.js → chunk-4ZGNL77M.js} +7 -7
- package/dist/_node-chunks/{chunk-34EO2PUT.js → chunk-4ZHC3GG3.js} +6 -6
- package/dist/_node-chunks/{chunk-RXNJDRGO.js → chunk-6RQIIUDQ.js} +9 -9
- package/dist/_node-chunks/{chunk-XGIUVY52.js → chunk-7QGX7Z6B.js} +7 -7
- package/dist/_node-chunks/{chunk-YCMRA6RX.js → chunk-7VZYI3NI.js} +7 -7
- package/dist/_node-chunks/{chunk-WNZ2UMFM.js → chunk-A6EXJJZU.js} +8 -8
- package/dist/_node-chunks/{chunk-42UWAGPW.js → chunk-AJ3YH5VH.js} +8 -8
- package/dist/_node-chunks/{chunk-CCOTJ4FC.js → chunk-AKBNFQKK.js} +8 -8
- package/dist/_node-chunks/{chunk-RRN2V55B.js → chunk-AKF2FB7S.js} +7 -7
- package/dist/_node-chunks/{chunk-YZFWBA5L.js → chunk-ANOZDFMW.js} +13 -13
- package/dist/_node-chunks/{chunk-4FEANXWU.js → chunk-APM5SEWT.js} +12 -12
- package/dist/_node-chunks/{chunk-NPO45IMH.js → chunk-AQSROIPB.js} +6 -6
- package/dist/_node-chunks/{chunk-3Y6AAY5H.js → chunk-CC4WWASR.js} +8 -8
- package/dist/_node-chunks/{chunk-LCK4ZQKG.js → chunk-CE66ARL5.js} +9 -9
- package/dist/_node-chunks/{chunk-GEFQN7K3.js → chunk-CHOJKLHP.js} +8 -8
- package/dist/_node-chunks/{chunk-QEQLR22M.js → chunk-COJPWKDE.js} +7 -7
- package/dist/_node-chunks/{chunk-BS2WMZMR.js → chunk-CVQGQ2MI.js} +7 -7
- package/dist/_node-chunks/{chunk-CXRU72ET.js → chunk-CYPEPQSM.js} +6 -6
- package/dist/_node-chunks/{chunk-2DSIDINN.js → chunk-D44WSSIU.js} +7 -7
- package/dist/_node-chunks/{chunk-ET7PWEO7.js → chunk-DG3DK4ZH.js} +10 -10
- package/dist/_node-chunks/{chunk-TNJIXE37.js → chunk-DI76R3EI.js} +6 -6
- package/dist/_node-chunks/{chunk-6KEHV53S.js → chunk-DSHYY7ZB.js} +14 -14
- package/dist/_node-chunks/{chunk-TFEWM4E3.js → chunk-EJ6XL2KN.js} +8 -8
- package/dist/_node-chunks/{chunk-RWFIFGO5.js → chunk-EM3MZKXS.js} +7 -7
- package/dist/_node-chunks/{chunk-KISMCCP5.js → chunk-EYKTEH7V.js} +10 -10
- package/dist/_node-chunks/{chunk-B5J7Q7J4.js → chunk-GTM64XRQ.js} +6 -6
- package/dist/_node-chunks/{chunk-2BUPBPFB.js → chunk-GURMTBQH.js} +7 -7
- package/dist/_node-chunks/{chunk-FK7KGTV7.js → chunk-HC2QE2VI.js} +6 -6
- package/dist/_node-chunks/{chunk-6LMWA44H.js → chunk-HG3U5FMZ.js} +8 -8
- package/dist/_node-chunks/{chunk-IDEL2J23.js → chunk-HLT3PHJN.js} +6 -6
- package/dist/_node-chunks/{chunk-Q7QNUM5H.js → chunk-HNCTPOQK.js} +6 -6
- package/dist/_node-chunks/{chunk-TFCEV2XX.js → chunk-HOROZKYE.js} +6 -6
- package/dist/_node-chunks/{chunk-SLWQNBGO.js → chunk-HS3YKDIQ.js} +10 -10
- package/dist/_node-chunks/{chunk-DC7DKR5K.js → chunk-I7BJLOF5.js} +6 -6
- package/dist/_node-chunks/{chunk-EHUNOMDD.js → chunk-IGAYUOMN.js} +10 -10
- package/dist/_node-chunks/{chunk-F3ZFKBHY.js → chunk-J4WM6PLB.js} +8 -8
- package/dist/_node-chunks/{chunk-TEQGGSP7.js → chunk-JD5NDU6F.js} +6 -6
- package/dist/_node-chunks/{chunk-BXVYT7SB.js → chunk-JQDKICKC.js} +6 -6
- package/dist/_node-chunks/{chunk-RZMQ7S3L.js → chunk-KGJPHNM7.js} +6 -6
- package/dist/_node-chunks/{chunk-NIBT7XDZ.js → chunk-KSOJ65P3.js} +6 -6
- package/dist/_node-chunks/{chunk-TD5PLLQG.js → chunk-LEUTSNSA.js} +6 -6
- package/dist/_node-chunks/{chunk-WZJF2OUH.js → chunk-LJ5HNC36.js} +7 -7
- package/dist/_node-chunks/{chunk-V2DY426G.js → chunk-LMMUUQFW.js} +8 -8
- package/dist/_node-chunks/{chunk-5DQFEZEA.js → chunk-LNOZLCJT.js} +6 -6
- package/dist/_node-chunks/{chunk-3W7F2B7P.js → chunk-MCPP73WS.js} +6 -6
- package/dist/_node-chunks/{chunk-W4OMYLSP.js → chunk-MMMIVLRV.js} +37 -37
- package/dist/_node-chunks/{chunk-JPAZLYJ3.js → chunk-MY7DHPSK.js} +6 -6
- package/dist/_node-chunks/chunk-MZ4CONV4.js +20 -0
- package/dist/_node-chunks/{chunk-LO56I6E2.js → chunk-N4DKR3HN.js} +8 -8
- package/dist/_node-chunks/{chunk-SWO5CDYU.js → chunk-NF3GSBMC.js} +8 -8
- package/dist/_node-chunks/{chunk-BSKFCWQD.js → chunk-OA6BPTG5.js} +7 -7
- package/dist/_node-chunks/{chunk-FW2HQUBQ.js → chunk-OGQBLJGR.js} +6 -6
- package/dist/_node-chunks/{chunk-WCULS5TP.js → chunk-OMFATFOJ.js} +7 -7
- package/dist/_node-chunks/{chunk-H32DYT6P.js → chunk-OSE2FYQP.js} +6 -6
- package/dist/_node-chunks/{chunk-EWOX7HPJ.js → chunk-PRXD2EYH.js} +6 -6
- package/dist/_node-chunks/{chunk-SIEXZVCR.js → chunk-PT7NX73C.js} +6 -6
- package/dist/_node-chunks/{chunk-LXBD4UL4.js → chunk-QDZFSC26.js} +6 -6
- package/dist/_node-chunks/{chunk-7GUDZVRQ.js → chunk-QTRP6K2A.js} +6 -6
- package/dist/_node-chunks/{chunk-H4PPVMP5.js → chunk-R2ZIMVYL.js} +6 -6
- package/dist/_node-chunks/{chunk-OUW6R7C3.js → chunk-RGAJGDCU.js} +6 -6
- package/dist/_node-chunks/{chunk-XI6B6P47.js → chunk-RKUAUXH6.js} +6 -6
- package/dist/_node-chunks/{chunk-MK2KYAI6.js → chunk-RNZL535Q.js} +13 -13
- package/dist/_node-chunks/{chunk-GRBLDJCR.js → chunk-S73KB2DE.js} +24 -24
- package/dist/_node-chunks/{chunk-U5W53R2J.js → chunk-SFPEJYWG.js} +22 -32
- package/dist/_node-chunks/{chunk-3BKIBF5S.js → chunk-SPN2VCN7.js} +8 -8
- package/dist/_node-chunks/{chunk-DUR55DJJ.js → chunk-SVRE646L.js} +35 -35
- package/dist/_node-chunks/{chunk-VLOXOXXE.js → chunk-T5D7JJMY.js} +9 -9
- package/dist/_node-chunks/{chunk-DHJFTB4K.js → chunk-TM4SF5U2.js} +7 -7
- package/dist/_node-chunks/{chunk-ICPBH3E7.js → chunk-TVYJB2XE.js} +7 -7
- package/dist/_node-chunks/{chunk-FPZB5OI7.js → chunk-TY2RQWQ7.js} +6 -6
- package/dist/_node-chunks/{chunk-JDXXX6LB.js → chunk-TZKXP2KS.js} +6 -6
- package/dist/_node-chunks/{chunk-TWI4GVH7.js → chunk-U2C4SK3A.js} +6 -6
- package/dist/_node-chunks/{chunk-CQKMLL5J.js → chunk-U3ZISTY3.js} +7 -7
- package/dist/_node-chunks/{chunk-XHL2LVBM.js → chunk-U736OTI6.js} +13 -13
- package/dist/_node-chunks/chunk-U7MSJ3A6.js +11 -0
- package/dist/_node-chunks/{chunk-TINO74G5.js → chunk-URBTH3SB.js} +6 -6
- package/dist/_node-chunks/{chunk-OWNFOGTA.js → chunk-US5P4ZWN.js} +7 -7
- package/dist/_node-chunks/{chunk-MA24JW6C.js → chunk-UWLMMCBV.js} +8 -8
- package/dist/_node-chunks/{chunk-OISX4AGQ.js → chunk-V3WMH7C4.js} +7 -7
- package/dist/_node-chunks/{chunk-XLP2ZKXV.js → chunk-W6ZSSLD7.js} +7 -7
- package/dist/_node-chunks/{chunk-UBOGWBEA.js → chunk-WALLDPES.js} +10 -10
- package/dist/_node-chunks/{chunk-UVINFLGY.js → chunk-WEQUS77K.js} +7 -7
- package/dist/_node-chunks/{chunk-ZWBCQ4MJ.js → chunk-WK5562IZ.js} +8 -8
- package/dist/_node-chunks/{chunk-NDWKJ4CL.js → chunk-XPSQ3CGZ.js} +36 -35
- package/dist/_node-chunks/{chunk-HMP2G23X.js → chunk-YM5GSNOW.js} +6 -6
- package/dist/_node-chunks/{chunk-3SDUYDXH.js → chunk-ZZJRM4VQ.js} +7 -7
- package/dist/_node-chunks/dist-PLKLDZ2U.js +16 -0
- package/dist/_node-chunks/{globby-OEMHPBFY.js → globby-7JAOKACZ.js} +10 -10
- package/dist/_node-chunks/{jiti-NFX6UU74.js → jiti-NTDVBCL3.js} +7 -7
- package/dist/_node-chunks/{lib-MDVARD7W.js → lib-GO6OUNCW.js} +7 -7
- package/dist/_node-chunks/{local-runtime-NTKIN2QT.js → local-runtime-75CNASLU.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-MWISDWDQ.js → mdx-plugin-CC54EOSI.js} +14 -14
- package/dist/_node-chunks/{monorepo-LIRFMQXE.js → monorepo-YQLAQDZJ.js} +12 -12
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-CPDW4XTW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-SNHO4JTH.js} +12 -12
- package/dist/_node-chunks/optimized-tests-L75JY37J.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-EKHIUAU2.js → pattern-copy-play-IMDJHSAD.js} +10 -10
- package/dist/_node-chunks/postinstallAddon-PSVXEIZJ.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-BUN3HUCO.js → rehype-external-links-EZO7JZTZ.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-PLADX223.js → rehype-slug-MECGIEGM.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-GBHW6KIQ.js → relaxed-limits-4UOQIT3N.js} +12 -12
- package/dist/_node-chunks/{run-KDTIZNSY.js → run-3YFS3YCP.js} +17 -17
- package/dist/_node-chunks/{run-NL66VTNR.js → run-LTXOQNKP.js} +13 -13
- package/dist/_node-chunks/session-id-PEDFG544.js +23 -0
- package/dist/_node-chunks/{setup-MGC7BQO6.js → setup-2CNFOQBB.js} +9 -9
- package/dist/_node-chunks/{vitest.config.4.template-JH2THZFG.js → vitest.config.4.template-MAPM7IJT.js} +9 -9
- package/dist/actions/decorator.js +2 -2
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.js +2 -2
- package/dist/addon-a11y/index.d.ts +3 -3
- package/dist/addon-a11y/index.js +1 -1
- package/dist/addon-a11y/manager.js +18 -18
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +1 -1
- package/dist/addon-docs/blocks.js +46 -46
- package/dist/addon-docs/index.d.ts +19 -19
- package/dist/addon-docs/manager.js +5 -5
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-mcp/preset.js +27 -19
- 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.d.ts +1 -1
- package/dist/addon-pseudo-states/preview.d.ts +1 -1
- package/dist/addon-themes/index.d.ts +1 -1
- package/dist/addon-themes/index.js +2 -2
- package/dist/addon-themes/manager.js +1 -1
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-themes/preview.js +2 -2
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +12 -12
- package/dist/addon-vitest/node/coverage-reporter.js +8 -8
- package/dist/addon-vitest/node/vitest.js +17 -17
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +14 -14
- package/dist/addon-vitest/vitest-plugin/global-setup.js +8 -8
- package/dist/addon-vitest/vitest-plugin/index.js +17 -17
- package/dist/addon-vitest/vitest-plugin/setup-file-with-project-annotations.js +3 -3
- package/dist/addon-vitest/vitest-plugin/setup-file.js +1 -1
- package/dist/babel/index.js +12 -12
- package/dist/backgrounds/index.d.ts +1 -1
- package/dist/bin/core.js +59 -59
- package/dist/bin/dispatcher.js +10 -10
- package/dist/bin/loader.js +9 -9
- package/dist/builder-vite/index.js +17 -17
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.js +6 -6
- package/dist/{chunk-Dw1z1Pki.d.ts → chunk-B2xylxt5.d.ts} +43 -43
- package/dist/{chunk-C-bavsOH.d.ts → chunk-BWzbIWPz.d.ts} +1 -1
- package/dist/{chunk-CwQKNaYL.d.ts → chunk-BYnH2sbb.d.ts} +1 -1
- package/dist/{chunk-CMeX4WRe.d.ts → chunk-CT2iXaHz.d.ts} +1 -1
- package/dist/{chunk-DzuY9DXg.d.ts → chunk-DDd8BhTY.d.ts} +2 -2
- package/dist/{chunk-BTVrWliM.d.ts → chunk-DF6btpT3.d.ts} +1 -1
- package/dist/{chunk-C2p5r3Vt.d.ts → chunk-DIz17UEJ.d.ts} +20 -20
- package/dist/{chunk-gCX81nOr.d.ts → chunk-DgzPaTw9.d.ts} +3 -3
- package/dist/{chunk-Kt1tW-D1.d.ts → chunk-Dm-iHJ-s.d.ts} +3 -3
- package/dist/{chunk-DtHByo32.d.ts → chunk-DuDsmeM7.d.ts} +1 -1
- package/dist/{chunk-DEVFdzxR.d.ts → chunk-DvufcbCc.d.ts} +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +26 -26
- package/dist/cli/tools/sdk/child-host.d.ts +1 -1
- package/dist/cli/tools/sdk/child-host.js +17 -17
- package/dist/cli/tools/sdk/index.d.ts +1 -1
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/common/index.d.ts +2 -2
- package/dist/common/index.js +37 -37
- package/dist/components/index.d.ts +8 -7
- package/dist/components/index.js +223 -228
- package/dist/core-events/index.d.ts +1 -1
- package/dist/core-server/index.d.ts +2 -2
- package/dist/core-server/index.js +77 -77
- package/dist/core-server/presets/common-manager.js +49 -49
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +44 -44
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/index.d.ts +5 -5
- package/dist/csf/index.js +29 -29
- package/dist/csf-tools/index.js +13 -13
- package/dist/docs-tools/index.js +2 -2
- package/dist/highlight/index.d.ts +1 -1
- package/dist/instrumenter/index.js +5 -5
- package/dist/manager/_manager-chunks/{globals-runtime-DpNYC-qi.js → globals-runtime-C9lYPobZ.js} +408 -429
- package/dist/manager/_manager-chunks/{globals-runtime-sGpNlIJ1.js → globals-runtime-CejY7Ueo.js} +125 -133
- package/dist/manager/_manager-chunks/{globals-runtime-qKvCZHFY.js → globals-runtime-DGHmnlvz.js} +38 -62
- package/dist/manager/_manager-chunks/{globals-runtime-Rp_zjGnh.js → globals-runtime-DH1Y5Kk_.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-eDVAYF7N.js → runtime-50_aob4S.js} +2 -2
- package/dist/manager/_manager-chunks/runtime-89Cb0A8U.js +998 -0
- package/dist/manager/_manager-chunks/{runtime-D0UOWx0U.js → runtime-B6gJfDvO.js} +58 -58
- package/dist/manager/_manager-chunks/{runtime-D94Vq3oR.js → runtime-B9QzcYO3.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-i-PDAHLR.js → runtime-BGvLm94o.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-cp5pazY2.js → runtime-BzYARKgi.js} +427 -425
- package/dist/manager/_manager-chunks/{runtime-BK0zF7FN.js → runtime-CaVSkVCV.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-BhkT2CXl.js → runtime-CcCplmkX.js} +17 -27
- package/dist/manager/_manager-chunks/{runtime-B1L9TH89.js → runtime-wL4UO7YO.js} +12 -12
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/globals.d.ts +12 -12
- package/dist/manager/globals.js +12 -12
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +18 -47
- package/dist/manager-errors.d.ts +1 -1
- package/dist/manager-errors.js +2 -2
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.d.ts +2 -2
- package/dist/mocking-utils/index.js +15 -15
- package/dist/mocking-utils/mocker-runtime.js +2 -2
- package/dist/nextjs-vite/index.d.ts +1 -1
- package/dist/nextjs-vite/index.js +3 -3
- package/dist/nextjs-vite/node/index.d.ts +1 -1
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +11 -11
- package/dist/nextjs-vite/preview.js +1 -1
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.d.ts +1 -1
- package/dist/nextjs-vite-plugin/index.js +11 -11
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-image.js +2 -2
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.js +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-CxZK_Ln3.js → runtime-B3y8ocOg.js} +2 -2
- package/dist/preview/_chunks/{runtime-CsV4HZPV.js → runtime-BoxmlDdB.js} +66 -66
- package/dist/preview/_chunks/{runtime-BwSxqk3t.js → runtime-BsMjBzuq.js} +6 -16
- package/dist/preview/_chunks/{runtime-iXdo8CR8.js → runtime-CijtAN7R.js} +4 -4
- package/dist/preview/_chunks/{runtime-DuHdxMFA.js → runtime-D7B4bVe_.js} +3 -3
- package/dist/preview/_chunks/{runtime-DrTjJkPY.js → runtime-DVM_AHbR.js} +36 -36
- package/dist/preview/globals.d.ts +10 -10
- package/dist/preview/globals.js +10 -10
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +1 -1
- package/dist/preview-api/index.js +9 -9
- package/dist/preview-errors.d.ts +1 -1
- package/dist/preview-errors.js +2 -2
- package/dist/react/docgen/docgen-worker.js +12 -12
- package/dist/react/entry-preview.js +1 -1
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +3 -3
- package/dist/react/preset.js +14 -14
- package/dist/react/preview.d.ts +1 -1
- package/dist/react/preview.js +2 -2
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/index.d.ts +6 -6
- package/dist/react-native/index.js +21 -20
- package/dist/react-native/metro/node.d.ts +2 -2
- package/dist/react-native/metro/node.js +9 -9
- package/dist/react-native/metro/withStorybook.d.ts +1 -1
- package/dist/react-native/metro/withStorybook.js +16 -16
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-native-theming/index.js +57 -62
- package/dist/react-native-ui/index.js +7 -7
- package/dist/react-vite/index.d.ts +1 -1
- package/dist/react-vite/node/index.d.ts +1 -1
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.js +1 -1
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +1 -1
- package/dist/shared/open-service/index.js +2 -2
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/shared/open-service/toolsets/docs/public.d.ts +21 -21
- package/dist/telemetry/index.js +45 -45
- package/dist/test/index.js +2 -2
- package/dist/theming/create.js +1 -1
- package/dist/theming/index.d.ts +5 -5
- package/dist/theming/index.js +16 -16
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +5 -5
- package/dist/viewport/index.d.ts +1 -1
- package/package.json +2 -2
- package/template/nextjs-vite/cli/js/Button.stories.js +6 -6
- package/template/nextjs-vite/cli/js/Configure.mdx +100 -100
- package/template/nextjs-vite/cli/js/Header.stories.js +2 -2
- package/template/nextjs-vite/cli/js/Page.jsx +2 -2
- package/template/nextjs-vite/cli/js/Page.stories.js +2 -2
- package/template/nextjs-vite/cli/ts/Button.stories.ts +6 -6
- package/template/nextjs-vite/cli/ts/Configure.mdx +84 -84
- package/template/nextjs-vite/cli/ts/Header.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Page.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Page.tsx +2 -2
- package/template/react/cli/js/Button.stories.js +6 -6
- package/template/react/cli/js/Header.stories.js +2 -2
- package/template/react/cli/js/Page.jsx +2 -2
- package/template/react/cli/js/Page.stories.js +2 -2
- package/template/react/cli/ts/Button.stories.ts +6 -6
- package/template/react/cli/ts/Header.stories.ts +2 -2
- package/template/react/cli/ts/Page.stories.ts +2 -2
- package/template/react/cli/ts/Page.tsx +2 -2
- package/template/react-vite/cli/js/Button.stories.js +6 -6
- package/template/react-vite/cli/js/Header.stories.js +2 -2
- package/template/react-vite/cli/js/Page.jsx +2 -2
- package/template/react-vite/cli/js/Page.stories.js +2 -2
- package/template/react-vite/cli/ts/Button.stories.ts +6 -6
- package/template/react-vite/cli/ts/Header.stories.ts +2 -2
- package/template/react-vite/cli/ts/Page.stories.ts +2 -2
- package/template/react-vite/cli/ts/Page.tsx +2 -2
- package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-bold.woff2 +0 -0
- package/assets/browser/nunito-sans-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-regular.woff2 +0 -0
- package/dist/_node-chunks/chunk-2RU7BKEW.js +0 -23
- package/dist/_node-chunks/chunk-FY6UXW6G.js +0 -11
- package/dist/_node-chunks/chunk-WAXVSN3O.js +0 -18
- package/dist/_node-chunks/dist-VTSTZKUB.js +0 -16
- package/dist/_node-chunks/optimized-tests-HDOLR3EY.js +0 -22
- package/dist/_node-chunks/postinstallAddon-GYGMWDL6.js +0 -20
- package/dist/_node-chunks/session-id-KIIVOQLR.js +0 -23
- package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +0 -998
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as __toESM, n as __esmMin, r as __exportAll } from "./runtime-BdGkqNEt.js";
|
|
2
2
|
import { $ as mapValues, J as isEqual, Y as require_memoizerific, Z as pickBy, i as stringify, it as invariant, lt as dedent, n as init_main$1, o as parse, q as init_isEqual, rt as init_tiny_invariant, tt as isPlainObject, ut as init_esm } from "./runtime-BZSnICCg.js";
|
|
3
|
-
import { n as init_storybook_error, t as StorybookError } from "./runtime-
|
|
4
|
-
import { $ as RESET_STORY_ARGS, A as channels_exports, B as CONFIG_ERROR, C as toId, Ct as deprecate, D as storyNameFromExport, E as isExportStory, Et as once, F as init_channel_slot, G as FORCE_RE_RENDER, H as DOCS_PREPARED, I as installNoopChannel, J as NAVIGATE_URL, K as GLOBALS_UPDATED, L as setChannel, M as clearChannel, N as ensureChannel, O as init_mock_channel, P as getChannel, Q as PREVIEW_KEYDOWN, R as ARGTYPES_INFO_REQUEST, S as sanitize, St as client_logger_exports, T as init_export_story, Tt as logger, U as DOCS_RENDERED, V as CURRENT_STORY_WAS_SET, W as FORCE_REMOUNT, X as PRELOAD_ENTRIES, Y as PLAY_FUNCTION_THREW_EXCEPTION, Z as PREVIEW_INITIALIZED, _t as UPDATE_GLOBALS, at as STORY_FINISHED, b as combineTags, bt as core_events_exports, c as getCoreAnnotations, ct as STORY_MISSING, d as markAsComposedWithCoreAnnotations, dt as STORY_RENDER_PHASE_CHANGED, et as SET_CURRENT_STORY, ft as STORY_SPECIFIED, gt as UNHANDLED_ERRORS_WHILE_PLAYING, h as init_shared, ht as TELEMETRY_ERROR, i as getStoryChildren, it as STORY_ERRORED, j as init_channels, k as mockChannel, l as hasCoreAnnotations, lt as STORY_PREPARED, m as SNIPPET_RENDERED, mt as STORY_UNCHANGED, n as init_actions, nt as STORY_ARGS_UPDATED, o as isMeta, ot as STORY_HOT_UPDATED, pt as STORY_THREW_EXCEPTION, q as MANAGER_INERT_ATTRIBUTE_CHANGED, rt as STORY_CHANGED, s as isStory, st as STORY_INDEX_INVALIDATED, t as actions_exports, tt as SET_GLOBALS, u as init_core_annotations, ut as STORY_RENDERED, v as includeConditionalArg, vt as UPDATE_QUERY_PARAMS, w as toTestId, wt as init_client_logger, x as init_csf_utils, xt as init_core_events, y as init_includeConditionalArg, yt as UPDATE_STORY_ARGS, z as ARGTYPES_INFO_RESPONSE } from "./runtime-
|
|
5
|
-
import { _ as init_preview, a as init_story_index_filters, b as init_tags, c as sortStoriesV7, d as userOrAutoTitleFromSpecifier, g as getService, i as init_iframe_resize, l as init_autoTitle, o as isMdxEntry, r as iframeResizeViewportsEqual, s as init_sortStories, t as IFRAME_RESIZE_CONTEXT, u as userOrAutoTitle, v as registerService, y as Tag } from "./runtime-
|
|
3
|
+
import { n as init_storybook_error, t as StorybookError } from "./runtime-BsMjBzuq.js";
|
|
4
|
+
import { $ as RESET_STORY_ARGS, A as channels_exports, B as CONFIG_ERROR, C as toId, Ct as deprecate, D as storyNameFromExport, E as isExportStory, Et as once, F as init_channel_slot, G as FORCE_RE_RENDER, H as DOCS_PREPARED, I as installNoopChannel, J as NAVIGATE_URL, K as GLOBALS_UPDATED, L as setChannel, M as clearChannel, N as ensureChannel, O as init_mock_channel, P as getChannel, Q as PREVIEW_KEYDOWN, R as ARGTYPES_INFO_REQUEST, S as sanitize, St as client_logger_exports, T as init_export_story, Tt as logger, U as DOCS_RENDERED, V as CURRENT_STORY_WAS_SET, W as FORCE_REMOUNT, X as PRELOAD_ENTRIES, Y as PLAY_FUNCTION_THREW_EXCEPTION, Z as PREVIEW_INITIALIZED, _t as UPDATE_GLOBALS, at as STORY_FINISHED, b as combineTags, bt as core_events_exports, c as getCoreAnnotations, ct as STORY_MISSING, d as markAsComposedWithCoreAnnotations, dt as STORY_RENDER_PHASE_CHANGED, et as SET_CURRENT_STORY, ft as STORY_SPECIFIED, gt as UNHANDLED_ERRORS_WHILE_PLAYING, h as init_shared, ht as TELEMETRY_ERROR, i as getStoryChildren, it as STORY_ERRORED, j as init_channels, k as mockChannel, l as hasCoreAnnotations, lt as STORY_PREPARED, m as SNIPPET_RENDERED, mt as STORY_UNCHANGED, n as init_actions, nt as STORY_ARGS_UPDATED, o as isMeta, ot as STORY_HOT_UPDATED, pt as STORY_THREW_EXCEPTION, q as MANAGER_INERT_ATTRIBUTE_CHANGED, rt as STORY_CHANGED, s as isStory, st as STORY_INDEX_INVALIDATED, t as actions_exports, tt as SET_GLOBALS, u as init_core_annotations, ut as STORY_RENDERED, v as includeConditionalArg, vt as UPDATE_QUERY_PARAMS, w as toTestId, wt as init_client_logger, x as init_csf_utils, xt as init_core_events, y as init_includeConditionalArg, yt as UPDATE_STORY_ARGS, z as ARGTYPES_INFO_RESPONSE } from "./runtime-DVM_AHbR.js";
|
|
5
|
+
import { _ as init_preview, a as init_story_index_filters, b as init_tags, c as sortStoriesV7, d as userOrAutoTitleFromSpecifier, g as getService, i as init_iframe_resize, l as init_autoTitle, o as isMdxEntry, r as iframeResizeViewportsEqual, s as init_sortStories, t as IFRAME_RESIZE_CONTEXT, u as userOrAutoTitle, v as registerService, y as Tag } from "./runtime-CijtAN7R.js";
|
|
6
6
|
import { h as scope, m as init_dist, p as dist_exports } from "./runtime-BTPtVY1p.js";
|
|
7
|
-
import { a as init_defaults, c as PARAM_KEY, d as types_exports, i as MINIMAL_VIEWPORTS, l as init_constants, n as resolveViewport, r as toResolvedViewportDimensions, t as init_resolveViewport, u as init_types } from "./runtime-
|
|
7
|
+
import { a as init_defaults, c as PARAM_KEY, d as types_exports, i as MINIMAL_VIEWPORTS, l as init_constants, n as resolveViewport, r as toResolvedViewportDimensions, t as init_resolveViewport, u as init_types } from "./runtime-B3y8ocOg.js";
|
|
8
8
|
import { n as require_ansi_to_html, t as require_browser_dtector_umd_min } from "./runtime-BIzIdDbb.js";
|
|
9
|
-
import { i as test_exports, r as init_test } from "./runtime-
|
|
9
|
+
import { i as test_exports, r as init_test } from "./runtime-D7B4bVe_.js";
|
|
10
10
|
//#region src/preview-errors.ts
|
|
11
11
|
var preview_errors_exports = /* @__PURE__ */ __exportAll({
|
|
12
12
|
ArgTypesRemovedFromStoryContextError: () => ArgTypesRemovedFromStoryContextError,
|
|
@@ -91,7 +91,7 @@ function init_preview_errors() {
|
|
|
91
91
|
name: "ImplicitActionsDuringRendering",
|
|
92
92
|
category: "PREVIEW_API",
|
|
93
93
|
code: 2,
|
|
94
|
-
documentation: "https://
|
|
94
|
+
documentation: "https://forkbook.ljk.dev/docs/migration#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",
|
|
95
95
|
message: dedent`
|
|
96
96
|
We detected that you use an implicit action arg while ${data.phase} of your story.
|
|
97
97
|
${data.deprecated ? `\nThis is deprecated and won't work in Forkbook 8 anymore.\n` : ``}
|
|
@@ -128,7 +128,7 @@ function init_preview_errors() {
|
|
|
128
128
|
Expected your framework's preset to export a \`renderToCanvas\` field.
|
|
129
129
|
|
|
130
130
|
Perhaps it needs to be upgraded for Forkbook 7.0?`,
|
|
131
|
-
documentation: "https://
|
|
131
|
+
documentation: "https://forkbook.ljk.dev/docs/migration#mainjs-framework-field"
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
};
|
|
@@ -267,7 +267,7 @@ function init_preview_errors() {
|
|
|
267
267
|
This is because destructuring statements and async/await usages are otherwise transpiled away,
|
|
268
268
|
which prevents Forkbook from recognizing your usage of \`mount\`.
|
|
269
269
|
|
|
270
|
-
More info: https://
|
|
270
|
+
More info: https://forkbook.ljk.dev/docs/writing-tests/interaction-testing#run-code-before-the-component-gets-rendered
|
|
271
271
|
|
|
272
272
|
Received the following play function:
|
|
273
273
|
${data.playFunction}`
|
|
@@ -330,7 +330,7 @@ function init_preview_errors() {
|
|
|
330
330
|
name: "ArgTypesRemovedFromStoryContextError",
|
|
331
331
|
category: "PREVIEW_API",
|
|
332
332
|
code: 17,
|
|
333
|
-
documentation: "https://
|
|
333
|
+
documentation: "https://forkbook.ljk.dev/docs/migration#argtypes-removed-from-loaders-beforeeach-play-and-aftereach",
|
|
334
334
|
message: dedent`
|
|
335
335
|
\`argTypes\` is no longer part of the story context passed to loaders, beforeEach, play and afterEach.
|
|
336
336
|
|
|
@@ -349,7 +349,7 @@ function init_preview_errors() {
|
|
|
349
349
|
name: "NextJsSharpError",
|
|
350
350
|
category: "FRAMEWORK_NEXTJS",
|
|
351
351
|
code: 1,
|
|
352
|
-
documentation: "https://
|
|
352
|
+
documentation: "https://forkbook.ljk.dev/docs/get-started/frameworks/nextjs#error-you-are-importing-avif-images-but-you-dont-have-sharp-installed-you-have-to-install-sharp-in-order-to-use-image-optimization-features-in-nextjs",
|
|
353
353
|
message: dedent`
|
|
354
354
|
You are importing avif images, but you don't have sharp installed.
|
|
355
355
|
|
|
@@ -413,7 +413,7 @@ function init_preview_errors() {
|
|
|
413
413
|
The Forkbook plugin only supports values in the following units:
|
|
414
414
|
- px, vh, vw, em, rem and %.
|
|
415
415
|
|
|
416
|
-
You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://
|
|
416
|
+
You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://forkbook.ljk.dev/docs/writing-stories/tags
|
|
417
417
|
`
|
|
418
418
|
});
|
|
419
419
|
this.data = data;
|
|
@@ -425,7 +425,7 @@ function init_preview_errors() {
|
|
|
425
425
|
name: "ProjectAnnotationsAlreadyAppliedError",
|
|
426
426
|
category: "ADDON_VITEST",
|
|
427
427
|
code: 2,
|
|
428
|
-
documentation: "https://
|
|
428
|
+
documentation: "https://forkbook.ljk.dev/docs/migration#vitest-addon-setprojectannotations-must-not-be-called-in-setup-files",
|
|
429
429
|
message: dedent`
|
|
430
430
|
setProjectAnnotations() was called from a Vitest setup file, but @aussieljk/forkbook/addon-vitest applies your project annotations itself: your .forkbook/preview file and the previews of the addons registered in .forkbook/main. Calling it again replaces those annotations, so the call has to go:
|
|
431
431
|
|
|
@@ -443,7 +443,7 @@ function init_preview_errors() {
|
|
|
443
443
|
name: "ElementA11yParameterError",
|
|
444
444
|
category: "ADDON_A11Y",
|
|
445
445
|
code: 1,
|
|
446
|
-
documentation: "https://
|
|
446
|
+
documentation: "https://forkbook.ljk.dev/docs/migration#a11y-addon-replace-element-parameter-with-context-parameter",
|
|
447
447
|
message: "The \"element\" parameter in parameters.a11y has been removed. Use \"context\" instead."
|
|
448
448
|
});
|
|
449
449
|
}
|
|
@@ -456,16 +456,16 @@ var globalsNameReferenceMap, globalPackages;
|
|
|
456
456
|
function init_globals() {
|
|
457
457
|
return (init_globals = __esmMin((() => {
|
|
458
458
|
globalsNameReferenceMap = {
|
|
459
|
-
"@storybook/global": "
|
|
460
|
-
"@aussieljk/forkbook/test": "
|
|
461
|
-
"@aussieljk/forkbook/actions": "
|
|
462
|
-
"@aussieljk/forkbook/preview-api": "
|
|
463
|
-
"@aussieljk/forkbook/internal/channels": "
|
|
464
|
-
"@aussieljk/forkbook/internal/client-logger": "
|
|
465
|
-
"@aussieljk/forkbook/internal/core-events": "
|
|
466
|
-
"@aussieljk/forkbook/internal/preview-errors": "
|
|
467
|
-
"@aussieljk/forkbook/internal/types": "
|
|
468
|
-
"@aussieljk/forkbook/internal/preview-api": "
|
|
459
|
+
"@storybook/global": "__FORKBOOK_MODULE_GLOBAL__",
|
|
460
|
+
"@aussieljk/forkbook/test": "__FORKBOOK_MODULE_TEST__",
|
|
461
|
+
"@aussieljk/forkbook/actions": "__FORKBOOK_MODULE_ACTIONS__",
|
|
462
|
+
"@aussieljk/forkbook/preview-api": "__FORKBOOK_MODULE_PREVIEW_API__",
|
|
463
|
+
"@aussieljk/forkbook/internal/channels": "__FORKBOOK_MODULE_CHANNELS__",
|
|
464
|
+
"@aussieljk/forkbook/internal/client-logger": "__FORKBOOK_MODULE_CLIENT_LOGGER__",
|
|
465
|
+
"@aussieljk/forkbook/internal/core-events": "__FORKBOOK_MODULE_CORE_EVENTS__",
|
|
466
|
+
"@aussieljk/forkbook/internal/preview-errors": "__FORKBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__",
|
|
467
|
+
"@aussieljk/forkbook/internal/types": "__FORKBOOK_MODULE_TYPES__",
|
|
468
|
+
"@aussieljk/forkbook/internal/preview-api": "__FORKBOOK_MODULE_PREVIEW_API__"
|
|
469
469
|
};
|
|
470
470
|
globalPackages = Object.keys(globalsNameReferenceMap);
|
|
471
471
|
})))();
|
|
@@ -505,7 +505,7 @@ function init_main() {
|
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
507
|
};
|
|
508
|
-
KEY = "
|
|
508
|
+
KEY = "__FORKBOOK_ADDONS_PREVIEW";
|
|
509
509
|
addons = getAddonsStore();
|
|
510
510
|
})))();
|
|
511
511
|
}
|
|
@@ -1039,7 +1039,7 @@ function init_args() {
|
|
|
1039
1039
|
once.error(dedent`
|
|
1040
1040
|
Invalid argType: '${key}.options' should be an array.
|
|
1041
1041
|
|
|
1042
|
-
More info: https://
|
|
1042
|
+
More info: https://forkbook.ljk.dev/docs/api/arg-types
|
|
1043
1043
|
`);
|
|
1044
1044
|
return allowArg();
|
|
1045
1045
|
}
|
|
@@ -1047,7 +1047,7 @@ function init_args() {
|
|
|
1047
1047
|
once.error(dedent`
|
|
1048
1048
|
Invalid argType: '${key}.options' should only contain primitives. Use a 'mapping' for complex values.
|
|
1049
1049
|
|
|
1050
|
-
More info: https://
|
|
1050
|
+
More info: https://forkbook.ljk.dev/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
1051
1051
|
`);
|
|
1052
1052
|
return allowArg();
|
|
1053
1053
|
}
|
|
@@ -1136,8 +1136,8 @@ function init_inferArgTypes() {
|
|
|
1136
1136
|
We've detected a cycle in arg '${name}'. Args should be JSON-serializable.
|
|
1137
1137
|
|
|
1138
1138
|
Consider using the mapping feature or fully custom args:
|
|
1139
|
-
- Mapping: https://
|
|
1140
|
-
- Custom args: https://
|
|
1139
|
+
- Mapping: https://forkbook.ljk.dev/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
1140
|
+
- Custom args: https://forkbook.ljk.dev/docs/essentials/controls#fully-custom-args
|
|
1141
1141
|
`);
|
|
1142
1142
|
return {
|
|
1143
1143
|
name: "other",
|
|
@@ -2167,8 +2167,8 @@ function setDefaultProjectAnnotations(_defaultProjectAnnotations) {
|
|
|
2167
2167
|
globalThis.defaultProjectAnnotations = _defaultProjectAnnotations;
|
|
2168
2168
|
}
|
|
2169
2169
|
function setProjectAnnotations(projectAnnotations) {
|
|
2170
|
-
if (globalThis.
|
|
2171
|
-
globalThis.
|
|
2170
|
+
if (globalThis.__FORKBOOK_ADDON_VITEST_PROJECT_ANNOTATIONS_APPLIED__) throw new ProjectAnnotationsAlreadyAppliedError();
|
|
2171
|
+
globalThis.__FORKBOOK_SET_PROJECT_ANNOTATIONS_CALLED__ = true;
|
|
2172
2172
|
const annotations = Array.isArray(projectAnnotations) ? projectAnnotations : [projectAnnotations];
|
|
2173
2173
|
globalThis.globalProjectAnnotations = composeProjectAnnotationsWithCore([globalThis.defaultProjectAnnotations ?? {}, ...annotations]);
|
|
2174
2174
|
return globalThis.globalProjectAnnotations ?? {};
|
|
@@ -3877,8 +3877,8 @@ function init_setupContentResizeBroadcast() {
|
|
|
3877
3877
|
const style = documentRef.createElement("style");
|
|
3878
3878
|
style.id = EMBED_UI_STYLE_ID;
|
|
3879
3879
|
style.textContent = `
|
|
3880
|
-
.
|
|
3881
|
-
.
|
|
3880
|
+
.fb-preparing-story,
|
|
3881
|
+
.fb-preparing-docs {
|
|
3882
3882
|
display: none !important;
|
|
3883
3883
|
}
|
|
3884
3884
|
`;
|
|
@@ -4364,7 +4364,7 @@ function init_parseArgsParam() {
|
|
|
4364
4364
|
once.warn(dedent`
|
|
4365
4365
|
Omitted potentially unsafe URL args.
|
|
4366
4366
|
|
|
4367
|
-
More info: https://
|
|
4367
|
+
More info: https://forkbook.ljk.dev/docs/writing-stories/args#setting-args-through-the-url
|
|
4368
4368
|
`);
|
|
4369
4369
|
return acc;
|
|
4370
4370
|
}, {});
|
|
@@ -4472,16 +4472,16 @@ function init_WebView() {
|
|
|
4472
4472
|
return Mode;
|
|
4473
4473
|
}(Mode || {});
|
|
4474
4474
|
classes = {
|
|
4475
|
-
PREPARING_STORY: "
|
|
4476
|
-
PREPARING_DOCS: "
|
|
4477
|
-
MAIN: "
|
|
4478
|
-
NOPREVIEW: "
|
|
4479
|
-
ERROR: "
|
|
4475
|
+
PREPARING_STORY: "fb-show-preparing-story",
|
|
4476
|
+
PREPARING_DOCS: "fb-show-preparing-docs",
|
|
4477
|
+
MAIN: "fb-show-main",
|
|
4478
|
+
NOPREVIEW: "fb-show-nopreview",
|
|
4479
|
+
ERROR: "fb-show-errordisplay"
|
|
4480
4480
|
};
|
|
4481
4481
|
layoutClassMap = {
|
|
4482
|
-
centered: "
|
|
4483
|
-
fullscreen: "
|
|
4484
|
-
padded: "
|
|
4482
|
+
centered: "fb-main-centered",
|
|
4483
|
+
fullscreen: "fb-main-fullscreen",
|
|
4484
|
+
padded: "fb-main-padded"
|
|
4485
4485
|
};
|
|
4486
4486
|
ansiConverter = new import_ansi_to_html.default({ escapeXML: true });
|
|
4487
4487
|
WebView = class {
|
|
@@ -4621,7 +4621,7 @@ function init_PreviewWeb() {
|
|
|
4621
4621
|
super(importFn, getProjectAnnotations, new UrlStore(), new WebView());
|
|
4622
4622
|
this.importFn = importFn;
|
|
4623
4623
|
this.getProjectAnnotations = getProjectAnnotations;
|
|
4624
|
-
scope.
|
|
4624
|
+
scope.__FORKBOOK_PREVIEW__ = this;
|
|
4625
4625
|
}
|
|
4626
4626
|
};
|
|
4627
4627
|
})))();
|
|
@@ -4828,8 +4828,8 @@ function init_runtime() {
|
|
|
4828
4828
|
//#region src/preview/preview-navigator.ts
|
|
4829
4829
|
async function maybeSetupPreviewNavigator() {
|
|
4830
4830
|
const url = new URL(window.location.href);
|
|
4831
|
-
if (url.searchParams.get("navigator") !== "true" || globalThis.
|
|
4832
|
-
globalThis.
|
|
4831
|
+
if (url.searchParams.get("navigator") !== "true" || globalThis.__FORKBOOK_PREVIEW_NAVIGATOR__) return;
|
|
4832
|
+
globalThis.__FORKBOOK_PREVIEW_NAVIGATOR__ = true;
|
|
4833
4833
|
const index = await (await fetch("./index.json")).json();
|
|
4834
4834
|
const currentEntryId = url.searchParams.get("id");
|
|
4835
4835
|
if (!currentEntryId) {
|
|
@@ -4850,14 +4850,14 @@ function init_preview_navigator() {
|
|
|
4850
4850
|
const li = document.createElement("li");
|
|
4851
4851
|
if ("entries" in node && "title" in node) {
|
|
4852
4852
|
const branchNode = node;
|
|
4853
|
-
li.className = "
|
|
4853
|
+
li.className = "fb-navigator-branch";
|
|
4854
4854
|
const details = document.createElement("details");
|
|
4855
4855
|
if (branchNode.isActive) details.open = true;
|
|
4856
4856
|
const summary = document.createElement("summary");
|
|
4857
|
-
summary.className = "
|
|
4857
|
+
summary.className = "fb-navigator-title";
|
|
4858
4858
|
summary.textContent = branchNode.title;
|
|
4859
4859
|
const ul = document.createElement("ul");
|
|
4860
|
-
ul.className = "
|
|
4860
|
+
ul.className = "fb-navigator-entries";
|
|
4861
4861
|
ul.setAttribute("aria-label", branchNode.title);
|
|
4862
4862
|
for (const child of Object.values(branchNode.entries)) ul.appendChild(createElementForNode(child));
|
|
4863
4863
|
details.appendChild(summary);
|
|
@@ -4865,10 +4865,10 @@ function init_preview_navigator() {
|
|
|
4865
4865
|
li.appendChild(details);
|
|
4866
4866
|
} else {
|
|
4867
4867
|
const leafNode = node;
|
|
4868
|
-
li.className = "
|
|
4868
|
+
li.className = "fb-navigator-story-item";
|
|
4869
4869
|
const a = document.createElement("a");
|
|
4870
4870
|
a.href = leafNode.href;
|
|
4871
|
-
a.className = `
|
|
4871
|
+
a.className = `fb-navigator-story-link${leafNode.isActive ? " active" : ""}`;
|
|
4872
4872
|
if (leafNode.isActive) a.setAttribute("aria-current", "location");
|
|
4873
4873
|
a.textContent = leafNode.name;
|
|
4874
4874
|
li.appendChild(a);
|
|
@@ -4903,21 +4903,21 @@ function init_preview_navigator() {
|
|
|
4903
4903
|
};
|
|
4904
4904
|
}
|
|
4905
4905
|
const navList = document.createElement("ul");
|
|
4906
|
-
navList.className = "
|
|
4906
|
+
navList.className = "fb-navigator-list";
|
|
4907
4907
|
for (const entry of Object.values(tree.entries)) navList.appendChild(createElementForNode(entry));
|
|
4908
4908
|
const nav = document.createElement("nav");
|
|
4909
|
-
nav.id = "
|
|
4909
|
+
nav.id = "fb-navigator-container";
|
|
4910
4910
|
nav.setAttribute("role", "navigation");
|
|
4911
4911
|
nav.setAttribute("aria-label", "Story navigation");
|
|
4912
4912
|
nav.appendChild(navList);
|
|
4913
4913
|
document.body.insertBefore(nav, document.body.firstChild);
|
|
4914
4914
|
const style = document.createElement("style");
|
|
4915
|
-
style.id = "
|
|
4915
|
+
style.id = "fb-navigator-style";
|
|
4916
4916
|
style.textContent = `
|
|
4917
4917
|
body {
|
|
4918
4918
|
display: grid !important;
|
|
4919
4919
|
grid-template-columns: 300px 1fr;
|
|
4920
|
-
font-family: '
|
|
4920
|
+
font-family: 'Inter Variable', sans-serif;
|
|
4921
4921
|
height: 100vh;
|
|
4922
4922
|
margin: 0;
|
|
4923
4923
|
|
|
@@ -4934,10 +4934,10 @@ function init_preview_navigator() {
|
|
|
4934
4934
|
max-height: 100vh;
|
|
4935
4935
|
max-width: 100%;
|
|
4936
4936
|
}
|
|
4937
|
-
#
|
|
4937
|
+
#fb-navigator-container, #fb-navigator-container * {
|
|
4938
4938
|
box-sizing: border-box;
|
|
4939
4939
|
}
|
|
4940
|
-
#
|
|
4940
|
+
#fb-navigator-container {
|
|
4941
4941
|
height: 100vh;
|
|
4942
4942
|
overflow-y: auto;
|
|
4943
4943
|
border-right: 1px solid #eee;
|
|
@@ -4948,43 +4948,43 @@ function init_preview_navigator() {
|
|
|
4948
4948
|
align-self: start;
|
|
4949
4949
|
z-index: 1000;
|
|
4950
4950
|
}
|
|
4951
|
-
.
|
|
4951
|
+
.fb-main-padded #fb-navigator-container {
|
|
4952
4952
|
margin: -1rem 1rem -1rem -1rem;
|
|
4953
4953
|
}
|
|
4954
|
-
.
|
|
4954
|
+
.fb-navigator-list {
|
|
4955
4955
|
list-style-type: none;
|
|
4956
4956
|
padding: 0;
|
|
4957
4957
|
margin: 0;
|
|
4958
4958
|
}
|
|
4959
|
-
.
|
|
4959
|
+
.fb-navigator-branch {
|
|
4960
4960
|
list-style-type: none;
|
|
4961
4961
|
}
|
|
4962
|
-
.
|
|
4962
|
+
.fb-navigator-item {
|
|
4963
4963
|
margin-bottom: 15px;
|
|
4964
4964
|
}
|
|
4965
|
-
.
|
|
4965
|
+
.fb-navigator-title {
|
|
4966
4966
|
color: var(--text-color);
|
|
4967
4967
|
text-decoration: none;
|
|
4968
4968
|
padding-block: 5px;
|
|
4969
4969
|
cursor: pointer;
|
|
4970
4970
|
}
|
|
4971
|
-
.
|
|
4971
|
+
.fb-navigator-entries {
|
|
4972
4972
|
padding-left: 15px;
|
|
4973
4973
|
}
|
|
4974
|
-
.
|
|
4974
|
+
.fb-navigator-story-item {
|
|
4975
4975
|
margin-bottom: 8px;
|
|
4976
4976
|
margin-left: 8px;
|
|
4977
4977
|
}
|
|
4978
|
-
.
|
|
4978
|
+
.fb-navigator-story-link {
|
|
4979
4979
|
color: var(--text-color);
|
|
4980
4980
|
}
|
|
4981
|
-
.
|
|
4981
|
+
.fb-navigator-story-link.active {
|
|
4982
4982
|
font-weight: bold;
|
|
4983
|
-
color:
|
|
4983
|
+
color: #007aff;
|
|
4984
4984
|
}
|
|
4985
4985
|
`;
|
|
4986
4986
|
document.head.appendChild(style);
|
|
4987
|
-
nav.querySelector(".
|
|
4987
|
+
nav.querySelector(".fb-navigator-story-link.active")?.closest("details")?.scrollIntoView({ block: "center" });
|
|
4988
4988
|
};
|
|
4989
4989
|
})))();
|
|
4990
4990
|
}
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import { n as __esmMin } from "./runtime-BdGkqNEt.js";
|
|
2
2
|
//#region src/storybook-error.ts
|
|
3
3
|
function parseErrorCode({ code, category }) {
|
|
4
|
-
return `
|
|
5
|
-
}
|
|
6
|
-
function appendErrorRef(url) {
|
|
7
|
-
if (/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(url)) return url;
|
|
8
|
-
try {
|
|
9
|
-
const urlObj = new URL(url);
|
|
10
|
-
urlObj.searchParams.set("ref", "error");
|
|
11
|
-
return urlObj.toString();
|
|
12
|
-
} catch {
|
|
13
|
-
return url;
|
|
14
|
-
}
|
|
4
|
+
return `FB_${category}_${String(code).padStart(4, "0")}`;
|
|
15
5
|
}
|
|
16
6
|
var StorybookError;
|
|
17
7
|
function init_storybook_error() {
|
|
@@ -23,7 +13,7 @@ function init_storybook_error() {
|
|
|
23
13
|
category: this.category
|
|
24
14
|
});
|
|
25
15
|
}
|
|
26
|
-
/** Overrides the default `Error.name` property in the format:
|
|
16
|
+
/** Overrides the default `Error.name` property in the format: FB_<CATEGORY>_<CODE>. */
|
|
27
17
|
get name() {
|
|
28
18
|
const errorName = this._name || this.constructor.name;
|
|
29
19
|
return `${this.fullErrorCode} (${errorName})`;
|
|
@@ -48,12 +38,12 @@ function init_storybook_error() {
|
|
|
48
38
|
/** Generates the error message along with additional documentation link (if applicable). */
|
|
49
39
|
static getFullMessage({ documentation, code, category, message }) {
|
|
50
40
|
let page;
|
|
51
|
-
if (documentation === true) page = `https://
|
|
41
|
+
if (documentation === true) page = `https://forkbook.ljk.dev/error/${parseErrorCode({
|
|
52
42
|
code,
|
|
53
43
|
category
|
|
54
|
-
})}
|
|
55
|
-
else if (typeof documentation === "string") page =
|
|
56
|
-
else if (Array.isArray(documentation)) page = `\n${documentation.map((doc) => `\t- ${
|
|
44
|
+
})}`;
|
|
45
|
+
else if (typeof documentation === "string") page = documentation;
|
|
46
|
+
else if (Array.isArray(documentation)) page = `\n${documentation.map((doc) => `\t- ${doc}`).join("\n")}`;
|
|
57
47
|
return `${message}${page != null ? `\n\nMore info: ${page}\n` : ""}`;
|
|
58
48
|
}
|
|
59
49
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __esmMin } from "./runtime-BdGkqNEt.js";
|
|
2
2
|
import { A as variant, C as pipe, D as string, E as safeParse, J as isEqual, M as init_index_browser, N as nanoid, O as undefined_, S as optional, T as safeInteger, _ as looseObject, b as number, c as slash, d as l, f as array, g as literal, h as init_dist, j as void_, k as unknown, l as g, lt as dedent, m as custom, p as check, q as init_isEqual, u as init_deepsignal_core_module, ut as init_esm, v as minLength, w as record, x as object, y as minValue } from "./runtime-BZSnICCg.js";
|
|
3
|
-
import { n as init_storybook_error, t as StorybookError } from "./runtime-
|
|
4
|
-
import { At as init_manager_errors, Dt as OpenServiceStaticSnapshotInvalidError, F as init_channel_slot, Ot as OpenServiceStaticSnapshotLoadError, P as getChannel, Tt as logger, f as init_storyDocsCodePanel, kt as UniversalStoreFollowerTimeoutError, p as shouldSkipStoryDocsEmit, r as definePreviewAddon, wt as init_client_logger } from "./runtime-
|
|
3
|
+
import { n as init_storybook_error, t as StorybookError } from "./runtime-BsMjBzuq.js";
|
|
4
|
+
import { At as init_manager_errors, Dt as OpenServiceStaticSnapshotInvalidError, F as init_channel_slot, Ot as OpenServiceStaticSnapshotLoadError, P as getChannel, Tt as logger, f as init_storyDocsCodePanel, kt as UniversalStoreFollowerTimeoutError, p as shouldSkipStoryDocsEmit, r as definePreviewAddon, wt as init_client_logger } from "./runtime-DVM_AHbR.js";
|
|
5
5
|
import { i as j, n as g$1, o as n, r as init_signals_core_module, s as y, t as f } from "./runtime-BTPtVY1p.js";
|
|
6
|
-
import { i as emitTransformCode, r as init_preview_api } from "./runtime-
|
|
6
|
+
import { i as emitTransformCode, r as init_preview_api } from "./runtime-BoxmlDdB.js";
|
|
7
7
|
//#region src/shared/universal-store/first-party-store-ids.ts
|
|
8
8
|
var FIRST_PARTY_STORE_IDS, isFirstPartyStoreId;
|
|
9
9
|
function init_first_party_store_ids() {
|
|
@@ -3600,7 +3600,7 @@ function init_sortStories() {
|
|
|
3600
3600
|
|
|
3601
3601
|
Are you using a V6-style sort function in V7 mode?
|
|
3602
3602
|
|
|
3603
|
-
More info: https://
|
|
3603
|
+
More info: https://forkbook.ljk.dev/docs/migration#v7-style-story-sort
|
|
3604
3604
|
`);
|
|
3605
3605
|
}
|
|
3606
3606
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __esmMin, r as __exportAll } from "./runtime-BdGkqNEt.js";
|
|
2
2
|
import { H as init_dist, V as T, lt as dedent, ut as init_esm } from "./runtime-BZSnICCg.js";
|
|
3
|
-
import { Et as once, _ as instrument, g as init_instrumenter, r as definePreviewAddon, wt as init_client_logger } from "./runtime-
|
|
3
|
+
import { Et as once, _ as instrument, g as init_instrumenter, r as definePreviewAddon, wt as init_client_logger } from "./runtime-DVM_AHbR.js";
|
|
4
4
|
import { a as customMatchers, c as setState, d as isMockFunction, f as mocks, i as JestExtend, l as fn$1, n as JestAsymmetricMatchers, o as getState, p as spyOn$1, r as JestChaiExpect, s as init_dist$1, t as GLOBAL_EXPECT, u as init_dist$2 } from "./runtime-q3wt0e_N.js";
|
|
5
5
|
import { a as Assertion, c as init_chai, l as use, o as assert, s as expect$2, u as utils_exports } from "./runtime-BIzIdDbb.js";
|
|
6
6
|
import { a as matchers_exports, i as init_matchers, r as userEvent$1, t as init_esm$1 } from "./runtime-CqHxptiK.js";
|
|
@@ -135,7 +135,7 @@ function init_spy() {
|
|
|
135
135
|
return (init_spy = __esmMin((() => {
|
|
136
136
|
init_dist$2();
|
|
137
137
|
init_dist();
|
|
138
|
-
moduleMockSpies = globalThis.
|
|
138
|
+
moduleMockSpies = globalThis.__FORKBOOK_MODULE_MOCK_SPIES__ ??= /* @__PURE__ */ new Set();
|
|
139
139
|
listeners = /* @__PURE__ */ new Set();
|
|
140
140
|
spyOn = ((...args) => {
|
|
141
141
|
return reactiveMock(spyOn$1(...args));
|
|
@@ -160,7 +160,7 @@ function init_testing_library() {
|
|
|
160
160
|
if (typeof window !== "undefined" && globalThis.location?.href?.includes("viewMode=docs")) once.warn(dedent`
|
|
161
161
|
You are using Testing Library's \`screen\` object while the story is rendered in docs mode. This will likely lead to issues, as multiple stories are rendered in the same page and therefore screen will potentially find multiple elements. Use the \`canvas\` utility from the story context instead, which will scope the queries to each story's canvas.
|
|
162
162
|
|
|
163
|
-
More info: https://
|
|
163
|
+
More info: https://forkbook.ljk.dev/docs/writing-tests/interaction-testing#querying-the-canvas
|
|
164
164
|
`);
|
|
165
165
|
return Reflect.get(target, prop, receiver);
|
|
166
166
|
} });
|