@aussieljk/forkbook 0.0.1-1 → 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-OEKZ7XSW.js → Color-PSH7RHPM.js} +5 -5
- package/dist/_browser-chunks/{WithTooltip-GZSSFOG3.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-73OX2G56.js → chunk-DCZTO4JJ.js} +68 -76
- package/dist/_browser-chunks/{chunk-PP4R7USA.js → chunk-DS2WQZGO.js} +222 -433
- package/dist/_browser-chunks/{chunk-FJGWSWL5.js → chunk-DYNTDJ3O.js} +3 -3
- package/dist/_browser-chunks/{chunk-VVWPND3J.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-O4YTVUKE.js → attached-runtime-KZYKMMDD.js} +29 -29
- package/dist/_node-chunks/{builder-manager-FPV2L36T.js → builder-manager-337QQEZ6.js} +32 -32
- package/dist/_node-chunks/{chunk-BE6ULVPN.js → chunk-224FM5GP.js} +8 -8
- package/dist/_node-chunks/chunk-22OJYYPD.js +18 -0
- package/dist/_node-chunks/{chunk-JEC2OK5B.js → chunk-26MVQWHR.js} +7 -7
- package/dist/_node-chunks/{chunk-NIHZECYO.js → chunk-27HJO5MV.js} +6 -6
- package/dist/_node-chunks/{chunk-I2ANCID7.js → chunk-27KGUS37.js} +25 -25
- package/dist/_node-chunks/{chunk-IZISFDKM.js → chunk-2D7P5VUJ.js} +30 -30
- package/dist/_node-chunks/{chunk-KGOAOPKR.js → chunk-2OI3EZE2.js} +6 -6
- package/dist/_node-chunks/{chunk-7LLQDMVS.js → chunk-34YSGPI4.js} +6 -6
- package/dist/_node-chunks/{chunk-4TV3Z3S3.js → chunk-4RSOZZZV.js} +6 -6
- package/dist/_node-chunks/{chunk-VQEQ7ZLS.js → chunk-4ZGNL77M.js} +7 -7
- package/dist/_node-chunks/{chunk-7TSL7D5D.js → chunk-4ZHC3GG3.js} +6 -6
- package/dist/_node-chunks/{chunk-CDRLLNRQ.js → chunk-6RQIIUDQ.js} +9 -9
- package/dist/_node-chunks/{chunk-6APBQVEX.js → chunk-7QGX7Z6B.js} +7 -7
- package/dist/_node-chunks/{chunk-IJL5JOLL.js → chunk-7VZYI3NI.js} +7 -7
- package/dist/_node-chunks/{chunk-2XDUXZGI.js → chunk-A6EXJJZU.js} +8 -8
- package/dist/_node-chunks/{chunk-HKQEE62W.js → chunk-AJ3YH5VH.js} +8 -8
- package/dist/_node-chunks/{chunk-RHG33T7C.js → chunk-AKBNFQKK.js} +8 -8
- package/dist/_node-chunks/{chunk-CWD5A6NI.js → chunk-AKF2FB7S.js} +7 -7
- package/dist/_node-chunks/{chunk-RJXEPYEN.js → chunk-ANOZDFMW.js} +13 -13
- package/dist/_node-chunks/{chunk-YWMICX2T.js → chunk-APM5SEWT.js} +12 -12
- package/dist/_node-chunks/{chunk-R7CY5LX6.js → chunk-AQSROIPB.js} +6 -6
- package/dist/_node-chunks/{chunk-MDKFZRYG.js → chunk-CC4WWASR.js} +8 -8
- package/dist/_node-chunks/{chunk-JE6JEGXA.js → chunk-CE66ARL5.js} +9 -9
- package/dist/_node-chunks/{chunk-GP5YLBNS.js → chunk-CHOJKLHP.js} +8 -8
- package/dist/_node-chunks/{chunk-5BTU7UZ5.js → chunk-COJPWKDE.js} +7 -7
- package/dist/_node-chunks/{chunk-GT5EHMNM.js → chunk-CVQGQ2MI.js} +7 -7
- package/dist/_node-chunks/{chunk-NKAUZU4C.js → chunk-CYPEPQSM.js} +6 -6
- package/dist/_node-chunks/{chunk-Y2GH4XO7.js → chunk-D44WSSIU.js} +7 -7
- package/dist/_node-chunks/{chunk-RQVK2TOI.js → chunk-DG3DK4ZH.js} +10 -10
- package/dist/_node-chunks/{chunk-QVMUIU7S.js → chunk-DI76R3EI.js} +6 -6
- package/dist/_node-chunks/{chunk-ILWHW4HU.js → chunk-DSHYY7ZB.js} +14 -14
- package/dist/_node-chunks/{chunk-JVQYQTTM.js → chunk-EJ6XL2KN.js} +19 -40
- package/dist/_node-chunks/{chunk-AWJOXJAZ.js → chunk-EM3MZKXS.js} +7 -7
- package/dist/_node-chunks/{chunk-U4GKV7GZ.js → chunk-EYKTEH7V.js} +10 -10
- package/dist/_node-chunks/{chunk-5J3O7EDY.js → chunk-GTM64XRQ.js} +6 -6
- package/dist/_node-chunks/{chunk-4PK3LUHM.js → chunk-GURMTBQH.js} +7 -7
- package/dist/_node-chunks/{chunk-MJ2UD7FU.js → chunk-HC2QE2VI.js} +6 -6
- package/dist/_node-chunks/{chunk-TB6Y6NSL.js → chunk-HG3U5FMZ.js} +8 -8
- package/dist/_node-chunks/{chunk-FUYZNTIS.js → chunk-HLT3PHJN.js} +6 -6
- package/dist/_node-chunks/{chunk-PBMWZVLD.js → chunk-HNCTPOQK.js} +6 -6
- package/dist/_node-chunks/{chunk-ICADUNQM.js → chunk-HOROZKYE.js} +6 -6
- package/dist/_node-chunks/{chunk-ULW4SLMN.js → chunk-HS3YKDIQ.js} +10 -10
- package/dist/_node-chunks/{chunk-RJUHZH32.js → chunk-I7BJLOF5.js} +6 -6
- package/dist/_node-chunks/{chunk-VXDWOVWD.js → chunk-IGAYUOMN.js} +10 -10
- package/dist/_node-chunks/{chunk-ILVD64RB.js → chunk-J4WM6PLB.js} +8 -8
- package/dist/_node-chunks/{chunk-G6PUNHCI.js → chunk-JD5NDU6F.js} +6 -6
- package/dist/_node-chunks/{chunk-356LV3NX.js → chunk-JQDKICKC.js} +6 -6
- package/dist/_node-chunks/{chunk-AWXGCPW6.js → chunk-KGJPHNM7.js} +6 -6
- package/dist/_node-chunks/{chunk-A724RK5H.js → chunk-KSOJ65P3.js} +6 -6
- package/dist/_node-chunks/{chunk-3CLITGI2.js → chunk-LEUTSNSA.js} +6 -6
- package/dist/_node-chunks/{chunk-R5FYRP6X.js → chunk-LJ5HNC36.js} +7 -7
- package/dist/_node-chunks/{chunk-ASJFOW6O.js → chunk-LMMUUQFW.js} +8 -8
- package/dist/_node-chunks/{chunk-SVZ6Q3CS.js → chunk-LNOZLCJT.js} +6 -6
- package/dist/_node-chunks/{chunk-ZMEGPR47.js → chunk-MCPP73WS.js} +6 -6
- package/dist/_node-chunks/{chunk-5WHA37KG.js → chunk-MMMIVLRV.js} +37 -37
- package/dist/_node-chunks/{chunk-CSXS6LVI.js → chunk-MY7DHPSK.js} +6 -6
- package/dist/_node-chunks/chunk-MZ4CONV4.js +20 -0
- package/dist/_node-chunks/{chunk-HKUNJELN.js → chunk-N4DKR3HN.js} +8 -8
- package/dist/_node-chunks/{chunk-XURIZ7IC.js → chunk-NF3GSBMC.js} +8 -8
- package/dist/_node-chunks/{chunk-QMU5ODXZ.js → chunk-OA6BPTG5.js} +7 -7
- package/dist/_node-chunks/{chunk-2BJIHWOK.js → chunk-OGQBLJGR.js} +6 -6
- package/dist/_node-chunks/{chunk-DWE36J35.js → chunk-OMFATFOJ.js} +7 -7
- package/dist/_node-chunks/{chunk-AANHLH5M.js → chunk-OSE2FYQP.js} +6 -6
- package/dist/_node-chunks/{chunk-X6OWHTYE.js → chunk-PRXD2EYH.js} +6 -6
- package/dist/_node-chunks/{chunk-5J3BMBMY.js → chunk-PT7NX73C.js} +6 -6
- package/dist/_node-chunks/{chunk-URRTQ2QM.js → chunk-QDZFSC26.js} +6 -6
- package/dist/_node-chunks/{chunk-GVSFRNWZ.js → chunk-QTRP6K2A.js} +6 -6
- package/dist/_node-chunks/{chunk-PEIAGMSR.js → chunk-R2ZIMVYL.js} +6 -6
- package/dist/_node-chunks/{chunk-2UG3IYCC.js → chunk-RGAJGDCU.js} +6 -6
- package/dist/_node-chunks/{chunk-JBCKN6P4.js → chunk-RKUAUXH6.js} +6 -6
- package/dist/_node-chunks/{chunk-ZBAIFZNB.js → chunk-RNZL535Q.js} +13 -13
- package/dist/_node-chunks/{chunk-5GN5N22E.js → chunk-S73KB2DE.js} +24 -24
- package/dist/_node-chunks/{chunk-CYPPELO4.js → chunk-SFPEJYWG.js} +22 -32
- package/dist/_node-chunks/{chunk-Y2DEKWVE.js → chunk-SPN2VCN7.js} +8 -8
- package/dist/_node-chunks/{chunk-2QTI45JU.js → chunk-SVRE646L.js} +35 -35
- package/dist/_node-chunks/{chunk-US7L4S72.js → chunk-T5D7JJMY.js} +9 -9
- package/dist/_node-chunks/{chunk-M2BRIUUP.js → chunk-TM4SF5U2.js} +7 -7
- package/dist/_node-chunks/{chunk-XJSYJTBD.js → chunk-TVYJB2XE.js} +7 -7
- package/dist/_node-chunks/{chunk-5RNOGGO6.js → chunk-TY2RQWQ7.js} +6 -6
- package/dist/_node-chunks/{chunk-NZ3GOT7V.js → chunk-TZKXP2KS.js} +6 -6
- package/dist/_node-chunks/{chunk-WQ7PSP6H.js → chunk-U2C4SK3A.js} +6 -6
- package/dist/_node-chunks/{chunk-XCGMRAV5.js → chunk-U3ZISTY3.js} +7 -7
- package/dist/_node-chunks/{chunk-7DCDBICW.js → chunk-U736OTI6.js} +13 -13
- package/dist/_node-chunks/chunk-U7MSJ3A6.js +11 -0
- package/dist/_node-chunks/{chunk-G5OYQQDY.js → chunk-URBTH3SB.js} +6 -6
- package/dist/_node-chunks/{chunk-SRXCCL2O.js → chunk-US5P4ZWN.js} +7 -7
- package/dist/_node-chunks/{chunk-CXLL2F6O.js → chunk-UWLMMCBV.js} +8 -8
- package/dist/_node-chunks/{chunk-B6SKX4JF.js → chunk-V3WMH7C4.js} +7 -7
- package/dist/_node-chunks/{chunk-EWXASIWR.js → chunk-W6ZSSLD7.js} +7 -7
- package/dist/_node-chunks/{chunk-2JSABFAM.js → chunk-WALLDPES.js} +10 -10
- package/dist/_node-chunks/{chunk-7BVUZZIY.js → chunk-WEQUS77K.js} +7 -7
- package/dist/_node-chunks/{chunk-GSWBRZLU.js → chunk-WK5562IZ.js} +8 -8
- package/dist/_node-chunks/{chunk-BENYUF74.js → chunk-XPSQ3CGZ.js} +38 -42
- package/dist/_node-chunks/{chunk-XTTAS346.js → chunk-YM5GSNOW.js} +6 -6
- package/dist/_node-chunks/{chunk-6EJ5NPEM.js → chunk-ZZJRM4VQ.js} +7 -7
- package/dist/_node-chunks/dist-PLKLDZ2U.js +16 -0
- package/dist/_node-chunks/{globby-HWZL7XSQ.js → globby-7JAOKACZ.js} +10 -10
- package/dist/_node-chunks/{jiti-GNDCTFYU.js → jiti-NTDVBCL3.js} +7 -7
- package/dist/_node-chunks/{lib-DI662U2R.js → lib-GO6OUNCW.js} +7 -7
- package/dist/_node-chunks/{local-runtime-4UNT5EZJ.js → local-runtime-75CNASLU.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-ZY6XLLA4.js → mdx-plugin-CC54EOSI.js} +14 -14
- package/dist/_node-chunks/{monorepo-B65J4UFS.js → monorepo-YQLAQDZJ.js} +12 -12
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-45ZTNWJS.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-LOHSM7ID.js → pattern-copy-play-IMDJHSAD.js} +10 -10
- package/dist/_node-chunks/postinstallAddon-PSVXEIZJ.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-22ZBI6K4.js → rehype-external-links-EZO7JZTZ.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-ROZVEEFZ.js → rehype-slug-MECGIEGM.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-EDE2B34G.js → relaxed-limits-4UOQIT3N.js} +12 -12
- package/dist/_node-chunks/{run-IR3BRDJV.js → run-3YFS3YCP.js} +17 -17
- package/dist/_node-chunks/{run-372BSBV5.js → run-LTXOQNKP.js} +13 -13
- package/dist/_node-chunks/session-id-PEDFG544.js +23 -0
- package/dist/_node-chunks/{setup-6TMCKUTA.js → setup-2CNFOQBB.js} +9 -9
- package/dist/_node-chunks/{vitest.config.4.template-QJBEVCKG.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 +13 -34
- 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-B0I9dSVs.js → globals-runtime-C9lYPobZ.js} +408 -429
- package/dist/manager/_manager-chunks/{globals-runtime-f5oIrim0.js → globals-runtime-CejY7Ueo.js} +125 -133
- package/dist/manager/_manager-chunks/{globals-runtime-CXoVXiJA.js → globals-runtime-DGHmnlvz.js} +38 -62
- package/dist/manager/_manager-chunks/{globals-runtime-BQCkfH1B.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-DtyerpFe.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-Bry1Biu7.js → runtime-BzYARKgi.js} +427 -425
- package/dist/manager/_manager-chunks/{runtime-DpgBAFGf.js → runtime-CaVSkVCV.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-DcJBhKG9.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 +2 -2
- 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 +207 -624
- 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 +10 -31
- 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-BCRWDMAU.js +0 -11
- package/dist/_node-chunks/chunk-DUOXRUVQ.js +0 -18
- package/dist/_node-chunks/chunk-WVCU34IS.js +0 -23
- package/dist/_node-chunks/dist-ZGSN23B7.js +0 -16
- package/dist/_node-chunks/optimized-tests-ZMNICF4R.js +0 -22
- package/dist/_node-chunks/postinstallAddon-NT5XE7IT.js +0 -20
- package/dist/_node-chunks/session-id-OO2WQF5N.js +0 -23
- package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +0 -998
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StatusTypeIdMismatchError as StatusTypeIdMismatchError3
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LYYXDWR2.js";
|
|
4
4
|
import {
|
|
5
5
|
StatusTypeIdMismatchError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-76222HQR.js";
|
|
7
7
|
import {
|
|
8
8
|
StatusTypeIdMismatchError as StatusTypeIdMismatchError2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BNP234B4.js";
|
|
10
10
|
|
|
11
11
|
// src/shared/status-store/index.ts
|
|
12
12
|
var STATUS_VALUE_PREFIX = "status-value:", STATUS_VALUES = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EmptyBlock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PPZ2HCWJ.js";
|
|
4
4
|
import {
|
|
5
5
|
clsx
|
|
6
6
|
} from "./chunk-CNED6RYH.js";
|
|
@@ -11,11 +11,11 @@ import { AlertIcon } from "@storybook/icons";
|
|
|
11
11
|
|
|
12
12
|
// storybook-css:/Users/ljk/p/repos/storybook/code/core/src/addon-docs/blocks/components/SnippetWarning.module.css
|
|
13
13
|
var id = "core/src/addon-docs/blocks/components/SnippetWarning.module.css";
|
|
14
|
-
if (typeof document < "u" && !document.querySelector(`style[data-
|
|
14
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]`)) {
|
|
15
15
|
let style = document.createElement("style");
|
|
16
|
-
style.setAttribute("data-
|
|
16
|
+
style.setAttribute("data-fb-css", id), style.textContent = ".fb-nSm15W-warningButton{color:var(--fb-fg-color-warning);&:hover,&:focus-visible{color:var(--fb-fg-color-warning);background:var(--fb-bg-color-warning)}}", document.head.appendChild(style);
|
|
17
17
|
}
|
|
18
|
-
var SnippetWarning_default = { warningButton: "
|
|
18
|
+
var SnippetWarning_default = { warningButton: "fb-nSm15W-warningButton" };
|
|
19
19
|
|
|
20
20
|
// src/addon-docs/blocks/components/SnippetWarning.tsx
|
|
21
21
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -38,11 +38,11 @@ import { ThemeProvider, convert, themes, useTheme } from "@aussieljk/forkbook/th
|
|
|
38
38
|
|
|
39
39
|
// storybook-css:/Users/ljk/p/repos/storybook/code/core/src/addon-docs/blocks/components/Source.module.css
|
|
40
40
|
var id2 = "core/src/addon-docs/blocks/components/Source.module.css";
|
|
41
|
-
if (typeof document < "u" && !document.querySelector(`style[data-
|
|
41
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id2}"]`)) {
|
|
42
42
|
let style = document.createElement("style");
|
|
43
|
-
style.setAttribute("data-
|
|
43
|
+
style.setAttribute("data-fb-css", id2), style.textContent = ".fb-I61SDG-syntaxHighlighter{font-size:calc(var(--fb-size-s2) - 1px);border-radius:var(--fb-app-border-radius);margin:25px 0 40px;line-height:19px;box-shadow:0 1px 3px #0000001a;& pre.fb-I61SDG-prismjs{background:inherit;padding:20px}}.fb-I61SDG-snippetWarning{z-index:1;position:absolute;top:4px;right:4px}.fb-I61SDG-sourceWrapper{position:relative}.fb-I61SDG-skeletonWrapper{background:var(--fb-background-content);border-radius:var(--fb-app-border-radius);border:1px solid var(--fb-app-border-color);margin:25px 0 40px;padding:20px 20px 20px 22px;box-shadow:0 1px 3px #0000001a}:where([data-fb-theme=dark]){& .fb-I61SDG-syntaxHighlighter,& .fb-I61SDG-skeletonWrapper{box-shadow:0 2px 5px #0003}}.fb-I61SDG-skeletonPlaceholder{background:var(--fb-app-border-color);width:60%;height:17px;margin-top:1px;animation:1.5s ease-in-out infinite fb-I61SDG-glow;&:first-child{margin:0}}@keyframes fb-I61SDG-glow{0%,to{opacity:1}50%{opacity:.4}}", document.head.appendChild(style);
|
|
44
44
|
}
|
|
45
|
-
var Source_default = { sourceWrapper: "
|
|
45
|
+
var Source_default = { sourceWrapper: "fb-I61SDG-sourceWrapper", glow: "fb-I61SDG-glow", syntaxHighlighter: "fb-I61SDG-syntaxHighlighter", skeletonPlaceholder: "fb-I61SDG-skeletonPlaceholder", prismjs: "fb-I61SDG-prismjs", snippetWarning: "fb-I61SDG-snippetWarning", skeletonWrapper: "fb-I61SDG-skeletonWrapper" };
|
|
46
46
|
|
|
47
47
|
// src/addon-docs/blocks/components/Source.tsx
|
|
48
48
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
@@ -78,7 +78,7 @@ var SourceSkeleton = () => jsxs("div", { className: Source_default.skeletonWrapp
|
|
|
78
78
|
copyable,
|
|
79
79
|
format,
|
|
80
80
|
language: language ?? "jsx",
|
|
81
|
-
className: "docblock-source
|
|
81
|
+
className: "docblock-source fb-unstyled",
|
|
82
82
|
...rest,
|
|
83
83
|
children: code
|
|
84
84
|
}
|
|
@@ -94,8 +94,8 @@ var inferType = (value, name, visited, cache) => {
|
|
|
94
94
|
We've detected a cycle in arg '${name}'. Args should be JSON-serializable.
|
|
95
95
|
|
|
96
96
|
Consider using the mapping feature or fully custom args:
|
|
97
|
-
- Mapping: https://
|
|
98
|
-
- Custom args: https://
|
|
97
|
+
- Mapping: https://forkbook.ljk.dev/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
98
|
+
- Custom args: https://forkbook.ljk.dev/docs/essentials/controls#fully-custom-args
|
|
99
99
|
`), { name: "other", value: "cyclic object" };
|
|
100
100
|
visited.add(value);
|
|
101
101
|
let result;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EVENT_ID
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-N5WQGLI7.js";
|
|
4
4
|
|
|
5
5
|
// src/actions/runtime/configureActions.ts
|
|
6
6
|
var config = {
|
|
@@ -39,7 +39,7 @@ function action(name, options = {}) {
|
|
|
39
39
|
...options
|
|
40
40
|
}, handler = function(...args) {
|
|
41
41
|
if (options.implicit) {
|
|
42
|
-
let storyRenderer = ("
|
|
42
|
+
let storyRenderer = ("__FORKBOOK_PREVIEW__" in global ? global.__FORKBOOK_PREVIEW__ : void 0)?.storyRenders.find(
|
|
43
43
|
(render) => render.phase === "playing" || render.phase === "rendering"
|
|
44
44
|
);
|
|
45
45
|
if (storyRenderer) {
|
|
@@ -169,7 +169,7 @@ var decorators = [
|
|
|
169
169
|
(story, context) => {
|
|
170
170
|
if (context.tags?.includes(Tag.TEST_FN) && !global2.FEATURES?.experimentalTestSyntax)
|
|
171
171
|
throw new Error(
|
|
172
|
-
"To use the experimental test function, you must enable the experimentalTestSyntax feature flag. See https://
|
|
172
|
+
"To use the experimental test function, you must enable the experimentalTestSyntax feature flag. See https://forkbook.ljk.dev/docs/api/main-config/main-config-features#experimentaltestsyntax"
|
|
173
173
|
);
|
|
174
174
|
return story();
|
|
175
175
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getChannel
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-N3NRW5XX.js";
|
|
4
4
|
import {
|
|
5
5
|
buildQueryState,
|
|
6
6
|
toError
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
OpenServiceRemoteCommandUnhandledError,
|
|
21
21
|
OpenServiceUnimplementedOperationError,
|
|
22
22
|
OpenServiceValidationError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-76222HQR.js";
|
|
24
24
|
import {
|
|
25
25
|
isEqual
|
|
26
26
|
} from "./chunk-B4AUNNU4.js";
|
|
27
27
|
import {
|
|
28
28
|
OpenServiceStaticSnapshotInvalidError,
|
|
29
29
|
OpenServiceStaticSnapshotLoadError
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-BNP234B4.js";
|
|
31
31
|
|
|
32
32
|
// ../../node_modules/nanoid/index.browser.js
|
|
33
33
|
var nanoid = (size = 21) => crypto.getRandomValues(new Uint8Array(size)).reduce((id, byte) => (byte &= 63, byte < 36 ? id += byte.toString(36) : byte < 62 ? id += (byte - 26).toString(36).toUpperCase() : byte > 62 ? id += "-" : id += "_", id), "");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorybookError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MJIDTL3X.js";
|
|
4
4
|
|
|
5
5
|
// src/preview-errors.ts
|
|
6
6
|
import { dedent } from "ts-dedent";
|
|
@@ -36,7 +36,7 @@ var Category = /* @__PURE__ */ ((Category2) => (Category2.BLOCKS = "BLOCKS", Cat
|
|
|
36
36
|
name: "ImplicitActionsDuringRendering",
|
|
37
37
|
category: "PREVIEW_API" /* PREVIEW_API */,
|
|
38
38
|
code: 2,
|
|
39
|
-
documentation: "https://
|
|
39
|
+
documentation: "https://forkbook.ljk.dev/docs/migration#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",
|
|
40
40
|
message: dedent`
|
|
41
41
|
We detected that you use an implicit action arg while ${data.phase} of your story.
|
|
42
42
|
${data.deprecated ? `
|
|
@@ -73,7 +73,7 @@ This is deprecated and won't work in Forkbook 8 anymore.
|
|
|
73
73
|
Expected your framework's preset to export a \`renderToCanvas\` field.
|
|
74
74
|
|
|
75
75
|
Perhaps it needs to be upgraded for Forkbook 7.0?`,
|
|
76
|
-
documentation: "https://
|
|
76
|
+
documentation: "https://forkbook.ljk.dev/docs/migration#mainjs-framework-field"
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
}, CalledPreviewMethodBeforeInitializationError = class extends StorybookError {
|
|
@@ -205,7 +205,7 @@ This is deprecated and won't work in Forkbook 8 anymore.
|
|
|
205
205
|
This is because destructuring statements and async/await usages are otherwise transpiled away,
|
|
206
206
|
which prevents Forkbook from recognizing your usage of \`mount\`.
|
|
207
207
|
|
|
208
|
-
More info: https://
|
|
208
|
+
More info: https://forkbook.ljk.dev/docs/writing-tests/interaction-testing#run-code-before-the-component-gets-rendered
|
|
209
209
|
|
|
210
210
|
Received the following play function:
|
|
211
211
|
${data.playFunction}`
|
|
@@ -268,7 +268,7 @@ This is deprecated and won't work in Forkbook 8 anymore.
|
|
|
268
268
|
name: "ArgTypesRemovedFromStoryContextError",
|
|
269
269
|
category: "PREVIEW_API" /* PREVIEW_API */,
|
|
270
270
|
code: 17,
|
|
271
|
-
documentation: "https://
|
|
271
|
+
documentation: "https://forkbook.ljk.dev/docs/migration#argtypes-removed-from-loaders-beforeeach-play-and-aftereach",
|
|
272
272
|
message: dedent`
|
|
273
273
|
\`argTypes\` is no longer part of the story context passed to loaders, beforeEach, play and afterEach.
|
|
274
274
|
|
|
@@ -286,7 +286,7 @@ This is deprecated and won't work in Forkbook 8 anymore.
|
|
|
286
286
|
name: "NextJsSharpError",
|
|
287
287
|
category: "FRAMEWORK_NEXTJS" /* FRAMEWORK_NEXTJS */,
|
|
288
288
|
code: 1,
|
|
289
|
-
documentation: "https://
|
|
289
|
+
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",
|
|
290
290
|
message: dedent`
|
|
291
291
|
You are importing avif images, but you don't have sharp installed.
|
|
292
292
|
|
|
@@ -348,7 +348,7 @@ This is deprecated and won't work in Forkbook 8 anymore.
|
|
|
348
348
|
The Forkbook plugin only supports values in the following units:
|
|
349
349
|
- px, vh, vw, em, rem and %.
|
|
350
350
|
|
|
351
|
-
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://
|
|
351
|
+
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
|
|
352
352
|
`
|
|
353
353
|
});
|
|
354
354
|
this.data = data;
|
|
@@ -359,7 +359,7 @@ This is deprecated and won't work in Forkbook 8 anymore.
|
|
|
359
359
|
name: "ProjectAnnotationsAlreadyAppliedError",
|
|
360
360
|
category: "ADDON_VITEST" /* ADDON_VITEST */,
|
|
361
361
|
code: 2,
|
|
362
|
-
documentation: "https://
|
|
362
|
+
documentation: "https://forkbook.ljk.dev/docs/migration#vitest-addon-setprojectannotations-must-not-be-called-in-setup-files",
|
|
363
363
|
message: dedent`
|
|
364
364
|
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:
|
|
365
365
|
|
|
@@ -376,7 +376,7 @@ This is deprecated and won't work in Forkbook 8 anymore.
|
|
|
376
376
|
name: "ElementA11yParameterError",
|
|
377
377
|
category: "ADDON_A11Y" /* ADDON_A11Y */,
|
|
378
378
|
code: 1,
|
|
379
|
-
documentation: "https://
|
|
379
|
+
documentation: "https://forkbook.ljk.dev/docs/migration#a11y-addon-replace-element-parameter-with-context-parameter",
|
|
380
380
|
message: 'The "element" parameter in parameters.a11y has been removed. Use "context" instead.'
|
|
381
381
|
});
|
|
382
382
|
}
|
|
@@ -4,17 +4,7 @@ function parseErrorCode({
|
|
|
4
4
|
category
|
|
5
5
|
}) {
|
|
6
6
|
let paddedCode = String(code).padStart(4, "0");
|
|
7
|
-
return `
|
|
8
|
-
}
|
|
9
|
-
function appendErrorRef(url) {
|
|
10
|
-
if (/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(url))
|
|
11
|
-
return url;
|
|
12
|
-
try {
|
|
13
|
-
let urlObj = new URL(url);
|
|
14
|
-
return urlObj.searchParams.set("ref", "error"), urlObj.toString();
|
|
15
|
-
} catch {
|
|
16
|
-
return url;
|
|
17
|
-
}
|
|
7
|
+
return `FB_${category}_${paddedCode}`;
|
|
18
8
|
}
|
|
19
9
|
var StorybookError = class _StorybookError extends Error {
|
|
20
10
|
constructor(props) {
|
|
@@ -58,7 +48,7 @@ var StorybookError = class _StorybookError extends Error {
|
|
|
58
48
|
get fullErrorCode() {
|
|
59
49
|
return parseErrorCode({ code: this.code, category: this.category });
|
|
60
50
|
}
|
|
61
|
-
/** Overrides the default `Error.name` property in the format:
|
|
51
|
+
/** Overrides the default `Error.name` property in the format: FB_<CATEGORY>_<CODE>. */
|
|
62
52
|
get name() {
|
|
63
53
|
let errorName = this._name || this.constructor.name;
|
|
64
54
|
return `${this.fullErrorCode} (${errorName})`;
|
|
@@ -74,8 +64,8 @@ var StorybookError = class _StorybookError extends Error {
|
|
|
74
64
|
message
|
|
75
65
|
}) {
|
|
76
66
|
let page;
|
|
77
|
-
return documentation === !0 ? page = `https://
|
|
78
|
-
${documentation.map((doc) => ` - ${
|
|
67
|
+
return documentation === !0 ? page = `https://forkbook.ljk.dev/error/${parseErrorCode({ code, category })}` : typeof documentation == "string" ? page = documentation : Array.isArray(documentation) && (page = `
|
|
68
|
+
${documentation.map((doc) => ` - ${doc}`).join(`
|
|
79
69
|
`)}`), `${message}${page != null ? `
|
|
80
70
|
|
|
81
71
|
More info: ${page}
|
|
@@ -78,10 +78,10 @@ var isMulti = (args) => args.transports !== void 0, generateRandomId = () => Mat
|
|
|
78
78
|
// src/channels/channel-slot.ts
|
|
79
79
|
var channel;
|
|
80
80
|
function syncGlobalSlot(next) {
|
|
81
|
-
globalThis.
|
|
81
|
+
globalThis.__FORKBOOK_ADDONS_CHANNEL__ = next;
|
|
82
82
|
}
|
|
83
83
|
function getChannel() {
|
|
84
|
-
let fromGlobal = globalThis.
|
|
84
|
+
let fromGlobal = globalThis.__FORKBOOK_ADDONS_CHANNEL__;
|
|
85
85
|
return fromGlobal && (channel = fromGlobal), channel ?? null;
|
|
86
86
|
}
|
|
87
87
|
function requireChannel() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/actions/constants.ts
|
|
2
|
-
var PARAM_KEY = "actions", ADDON_ID = "@aussieljk/forkbook/actions", PANEL_ID = `${ADDON_ID}/panel`, EVENT_ID = `${ADDON_ID}/action-event`, CLEAR_ID = `${ADDON_ID}/action-clear`, CYCLIC_KEY = "$
|
|
2
|
+
var PARAM_KEY = "actions", ADDON_ID = "@aussieljk/forkbook/actions", PANEL_ID = `${ADDON_ID}/panel`, EVENT_ID = `${ADDON_ID}/action-event`, CLEAR_ID = `${ADDON_ID}/action-clear`, CYCLIC_KEY = "$___forkbook.isCyclic";
|
|
3
3
|
|
|
4
4
|
export {
|
|
5
5
|
PARAM_KEY,
|
|
@@ -75,7 +75,7 @@ var { document: document3 } = global2, channel = addons.getChannel(), DEFAULT_PA
|
|
|
75
75
|
throw new ElementA11yParameterError();
|
|
76
76
|
let context = {
|
|
77
77
|
include: document3?.body,
|
|
78
|
-
exclude: [".
|
|
78
|
+
exclude: [".fb-wrapper", "#storybook-docs", "#storybook-highlights-root"]
|
|
79
79
|
// Internal Forkbook elements that are always in the document
|
|
80
80
|
};
|
|
81
81
|
if (input.context) {
|
|
@@ -127,7 +127,7 @@ import { useCallback, useEffect } from "@aussieljk/forkbook/preview-api";
|
|
|
127
127
|
var knownFilters = Object.values(filters).map((f) => f.filter), knownFiltersRegExp = new RegExp(`\\b(${knownFilters.join("|")})\\b`, "g"), withVisionSimulator = (StoryFn, { globals }) => {
|
|
128
128
|
let { vision } = globals, applyVisionFilter = useCallback(() => {
|
|
129
129
|
let existingFilters = document.body.style.filter.replaceAll(knownFiltersRegExp, "").trim(), visionFilter = filters[vision]?.filter;
|
|
130
|
-
return visionFilter && document.body.classList.contains("
|
|
130
|
+
return visionFilter && document.body.classList.contains("fb-show-main") ? !existingFilters || existingFilters === "none" ? document.body.style.filter = visionFilter : document.body.style.filter = `${existingFilters} ${visionFilter}` : document.body.style.filter = existingFilters || "none", () => document.body.style.filter = existingFilters || "none";
|
|
131
131
|
}, [vision]);
|
|
132
132
|
return useEffect(() => {
|
|
133
133
|
let cleanup = applyVisionFilter(), observer = new MutationObserver(() => applyVisionFilter());
|
|
@@ -7,15 +7,15 @@ import { withReset } from "@aussieljk/forkbook/internal/components";
|
|
|
7
7
|
|
|
8
8
|
// storybook-css:/Users/ljk/p/repos/storybook/code/core/src/addon-docs/blocks/components/EmptyBlock.module.css
|
|
9
9
|
var id = "core/src/addon-docs/blocks/components/EmptyBlock.module.css";
|
|
10
|
-
if (typeof document < "u" && !document.querySelector(`style[data-
|
|
10
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]`)) {
|
|
11
11
|
let style = document.createElement("style");
|
|
12
|
-
style.setAttribute("data-
|
|
12
|
+
style.setAttribute("data-fb-css", id), style.textContent = ".fb-he578q-wrapper{border-radius:var(--fb-app-border-radius);border:1px dashed var(--fb-app-border-color);color:rgb(from var(--fb-color-default-text) r g b / calc(alpha - .3));font-size:var(--fb-size-s2);background-color:#00000003;justify-content:center;align-items:center;margin:25px 0 40px;padding:20px;display:flex}:where([data-fb-theme=dark]) .fb-he578q-wrapper{background-color:#ffffff03}", document.head.appendChild(style);
|
|
13
13
|
}
|
|
14
|
-
var EmptyBlock_default = { wrapper: "
|
|
14
|
+
var EmptyBlock_default = { wrapper: "fb-he578q-wrapper" };
|
|
15
15
|
|
|
16
16
|
// src/addon-docs/blocks/components/EmptyBlock.tsx
|
|
17
17
|
import { jsx } from "react/jsx-runtime";
|
|
18
|
-
var EmptyBlock = (props) => jsx("div", { ...props, className: clsx(withReset, EmptyBlock_default.wrapper, "docblock-emptyblock
|
|
18
|
+
var EmptyBlock = (props) => jsx("div", { ...props, className: clsx(withReset, EmptyBlock_default.wrapper, "docblock-emptyblock fb-unstyled") });
|
|
19
19
|
|
|
20
20
|
export {
|
|
21
21
|
EmptyBlock
|