@aussieljk/forkbook 0.0.1-1 → 0.0.1-11
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/LICENSE +1 -1
- package/README.md +35 -53
- 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/create/templates/react-native/index.expo.js +4 -4
- package/assets/create/templates/react-native/index.js +5 -5
- package/assets/server/base-preview-body.html +32 -32
- package/assets/server/base-preview-head.html +86 -86
- package/assets/server/template.ejs +27 -26
- package/dist/_browser-chunks/{Color-OEKZ7XSW.js → Color-QLZNXLSV.js} +8 -8
- package/dist/_browser-chunks/WithTooltip-GNLRTZDF.js +198 -0
- 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-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/{chunk-PFRNG3UC.js → chunk-6ELMKWKX.js} +5 -5
- 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-C5TKXHTM.js +82 -0
- package/dist/_browser-chunks/chunk-DNJ3OSLB.js +6021 -0
- 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-CFWWCCZV.js → chunk-EQKMUQF3.js} +5 -4
- package/dist/_browser-chunks/{chunk-LV5PIKV4.js → chunk-FRAOQJDI.js} +5 -3
- package/dist/_browser-chunks/{chunk-ODVJ3XZJ.js → chunk-GRO2ZYEJ.js} +2 -2
- package/dist/_browser-chunks/{chunk-MFMDGWP6.js → chunk-I4ATZPNZ.js} +1 -1
- package/dist/_browser-chunks/chunk-IFADVEQE.js +669 -0
- 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-EIYAKDGP.js → chunk-NA4ITZTK.js} +127 -105
- package/dist/_browser-chunks/chunk-NGMQJMCY.js +53 -0
- package/dist/_browser-chunks/chunk-NPNIBOPF.js +18 -0
- package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-NTUHL5NS.js} +8 -3
- package/dist/_browser-chunks/{chunk-MDOL7KML.js → chunk-O24AZJZ7.js} +1 -1
- package/dist/_browser-chunks/{chunk-YEKO6BHJ.js → chunk-ONTSNQON.js} +1 -1
- package/dist/_browser-chunks/chunk-OOETBSA7.js +502 -0
- package/dist/_browser-chunks/chunk-PZQRXPVR.js +21 -0
- package/dist/_browser-chunks/{chunk-VVWPND3J.js → chunk-QU4RB2WU.js} +12 -12
- package/dist/_browser-chunks/{chunk-C3D4HEFY.js → chunk-TTBPZQ24.js} +282 -127
- package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
- package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-V5U45XXZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-73OX2G56.js → chunk-WBLVFDJT.js} +100 -108
- package/dist/_browser-chunks/chunk-XKTORVEQ.js +255 -0
- package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-XTQCLWVH.js} +325 -1635
- package/dist/_browser-chunks/{chunk-W5M6NPS3.js → chunk-ZHKZKFY4.js} +7 -6
- package/dist/_node-chunks/{attached-runtime-O4YTVUKE.js → attached-runtime-J2AKT5WI.js} +30 -30
- package/dist/_node-chunks/builder-manager-Z4RWF4ZH.js +1139 -0
- package/dist/_node-chunks/{chunk-XURIZ7IC.js → chunk-2U5J7YTA.js} +8 -8
- package/dist/_node-chunks/{chunk-PBMWZVLD.js → chunk-2WVLC5M2.js} +6 -6
- package/dist/_node-chunks/{chunk-SVZ6Q3CS.js → chunk-2YNXKY72.js} +6 -6
- package/dist/_node-chunks/{chunk-CYPPELO4.js → chunk-32FLWHUC.js} +22 -32
- package/dist/_node-chunks/{chunk-XTTAS346.js → chunk-36LPBTLF.js} +6 -6
- package/dist/_node-chunks/{chunk-ILWHW4HU.js → chunk-3EBGFRAH.js} +15 -15
- package/dist/_node-chunks/{chunk-I2ANCID7.js → chunk-3IIQSDCO.js} +66 -145
- package/dist/_node-chunks/{chunk-G6PUNHCI.js → chunk-3NST2GUZ.js} +6 -6
- package/dist/_node-chunks/{chunk-YWMICX2T.js → chunk-46Y5H6X5.js} +12 -12
- package/dist/_node-chunks/{chunk-5WHA37KG.js → chunk-4D325SMT.js} +102 -40
- package/dist/_node-chunks/{chunk-2XDUXZGI.js → chunk-54EHKXV7.js} +8 -8
- package/dist/_node-chunks/{chunk-AWJOXJAZ.js → chunk-55S3GGGC.js} +8 -8
- package/dist/_node-chunks/{chunk-QMU5ODXZ.js → chunk-5GOXN5M4.js} +7 -7
- package/dist/_node-chunks/{chunk-AWXGCPW6.js → chunk-5JLVSH44.js} +6 -6
- package/dist/_node-chunks/{chunk-BENYUF74.js → chunk-5P4N734V.js} +77 -78
- package/dist/_node-chunks/{chunk-PEIAGMSR.js → chunk-6E34W4UX.js} +6 -6
- package/dist/_node-chunks/chunk-6UAJLEIO.js +28 -0
- package/dist/_node-chunks/chunk-6UASHVMR.js +620 -0
- package/dist/_node-chunks/{chunk-R5FYRP6X.js → chunk-76KKKLEE.js} +7 -7
- package/dist/_node-chunks/{chunk-DWE36J35.js → chunk-7IOSIYW2.js} +7 -7
- package/dist/_node-chunks/chunk-7YQTID2W.js +25 -0
- package/dist/_node-chunks/{chunk-A724RK5H.js → chunk-A7GEBS3Q.js} +9 -6
- package/dist/_node-chunks/{chunk-6EJ5NPEM.js → chunk-AKMPPLT5.js} +7 -7
- package/dist/_node-chunks/{chunk-2BJIHWOK.js → chunk-ALGQMFMN.js} +6 -6
- package/dist/_node-chunks/{chunk-JEC2OK5B.js → chunk-APPFF22V.js} +7 -7
- package/dist/_node-chunks/chunk-APXRPW7A.js +11 -0
- package/dist/_node-chunks/{chunk-IZISFDKM.js → chunk-AVL7GUOZ.js} +161 -145
- package/dist/_node-chunks/chunk-BBU2FUPC.js +495 -0
- package/dist/_node-chunks/{chunk-Y2GH4XO7.js → chunk-BKND5XP2.js} +650 -9
- package/dist/_node-chunks/{chunk-2UG3IYCC.js → chunk-BSQB5B57.js} +6 -6
- package/dist/_node-chunks/{chunk-ULW4SLMN.js → chunk-C5OFHB3N.js} +34 -949
- package/dist/_node-chunks/{chunk-5RNOGGO6.js → chunk-CEYSYQLV.js} +6 -6
- package/dist/_node-chunks/{chunk-NIHZECYO.js → chunk-D5ADPGA4.js} +6 -6
- package/dist/_node-chunks/{chunk-3CLITGI2.js → chunk-DGWKJQ6G.js} +6 -6
- package/dist/_node-chunks/{chunk-EWXASIWR.js → chunk-ER3X3AQ7.js} +7 -7
- package/dist/_node-chunks/{chunk-JBCKN6P4.js → chunk-FB2BOL6I.js} +6 -6
- package/dist/_node-chunks/{chunk-4PK3LUHM.js → chunk-FEC5PGJO.js} +7 -7
- package/dist/_node-chunks/{chunk-NZ3GOT7V.js → chunk-FTYDKQCO.js} +6 -6
- package/dist/_node-chunks/chunk-FUG5LYKS.js +532 -0
- package/dist/_node-chunks/{chunk-ASJFOW6O.js → chunk-GGCOG7OV.js} +8 -8
- package/dist/_node-chunks/{chunk-GVSFRNWZ.js → chunk-GMKLTDKN.js} +6 -6
- package/dist/_node-chunks/{chunk-JE6JEGXA.js → chunk-GO3YSBPE.js} +9 -9
- package/dist/_node-chunks/chunk-GTXZNA2L.js +347 -0
- package/dist/_node-chunks/{chunk-XJSYJTBD.js → chunk-GYFR2JLS.js} +7 -7
- package/dist/_node-chunks/{chunk-HKUNJELN.js → chunk-IFAV3CER.js} +8 -8
- package/dist/_node-chunks/{chunk-IJL5JOLL.js → chunk-IRPQQARO.js} +7 -7
- package/dist/_node-chunks/{chunk-M2BRIUUP.js → chunk-IVAOJWPF.js} +7 -7
- package/dist/_node-chunks/{chunk-RHG33T7C.js → chunk-J3SM62J3.js} +10 -10
- package/dist/_node-chunks/{chunk-7TSL7D5D.js → chunk-LAIED5XU.js} +6 -6
- package/dist/_node-chunks/{chunk-RJUHZH32.js → chunk-LHNHFYK3.js} +6 -6
- package/dist/_node-chunks/{chunk-B6SKX4JF.js → chunk-LKITAODU.js} +7 -7
- package/dist/_node-chunks/{chunk-7LLQDMVS.js → chunk-MBIVTOJK.js} +6 -6
- package/dist/_node-chunks/{chunk-X6OWHTYE.js → chunk-MI7WBXWX.js} +6 -6
- package/dist/_node-chunks/{chunk-CDRLLNRQ.js → chunk-MW4OAPPD.js} +11 -11
- package/dist/_node-chunks/{chunk-ZMEGPR47.js → chunk-MXLHIEXC.js} +6 -6
- package/dist/_node-chunks/{chunk-RJXEPYEN.js → chunk-NFDQT7UW.js} +64 -21
- package/dist/_node-chunks/{chunk-CWD5A6NI.js → chunk-NIQSBBT2.js} +7 -7
- package/dist/_node-chunks/{chunk-MJ2UD7FU.js → chunk-NLLM4MDK.js} +7 -7
- package/dist/_node-chunks/{chunk-US7L4S72.js → chunk-NLNAIU4I.js} +9 -9
- package/dist/_node-chunks/{chunk-AANHLH5M.js → chunk-OJWUUSA4.js} +6 -6
- package/dist/_node-chunks/{chunk-CXLL2F6O.js → chunk-OPT5A55S.js} +25 -8
- package/dist/_node-chunks/{chunk-RQVK2TOI.js → chunk-OXT6T4AS.js} +14 -13
- package/dist/_node-chunks/{chunk-7DCDBICW.js → chunk-PQTEFQIJ.js} +13 -13
- package/dist/_node-chunks/{chunk-5GN5N22E.js → chunk-PXOD36TR.js} +131 -148
- package/dist/_node-chunks/{chunk-5J3O7EDY.js → chunk-PYVGF5F2.js} +6 -6
- package/dist/_node-chunks/{chunk-ICADUNQM.js → chunk-QHBQRPDP.js} +6 -6
- package/dist/_node-chunks/{chunk-VXDWOVWD.js → chunk-R7VDUSKY.js} +29843 -51588
- package/dist/_node-chunks/chunk-REIDJUVJ.js +2609 -0
- package/dist/_node-chunks/{chunk-KGOAOPKR.js → chunk-RNRGXAFV.js} +6 -6
- package/dist/_node-chunks/{chunk-6APBQVEX.js → chunk-S3NDLFYL.js} +7 -7
- package/dist/_node-chunks/chunk-SJXLINHV.js +57 -0
- package/dist/_node-chunks/chunk-SMBAR4G6.js +18 -0
- package/dist/_node-chunks/{chunk-R7CY5LX6.js → chunk-SRDKK3SG.js} +6 -6
- package/dist/_node-chunks/{chunk-G5OYQQDY.js → chunk-T6P2EJD2.js} +6 -6
- package/dist/_node-chunks/{chunk-7BVUZZIY.js → chunk-TAMTPVYZ.js} +7 -7
- package/dist/_node-chunks/{chunk-ILVD64RB.js → chunk-TKMXEHM4.js} +8 -8
- package/dist/_node-chunks/{chunk-XCGMRAV5.js → chunk-V5IMPC3J.js} +7 -7
- package/dist/_node-chunks/{chunk-2QTI45JU.js → chunk-VKRGTLQJ.js} +35 -35
- package/dist/_node-chunks/{chunk-QVMUIU7S.js → chunk-VZG3OKFO.js} +6 -6
- package/dist/_node-chunks/{chunk-2JSABFAM.js → chunk-W3KFVTWV.js} +10 -10
- package/dist/_node-chunks/{chunk-U4GKV7GZ.js → chunk-W7HY3ELZ.js} +10 -10
- package/dist/_node-chunks/{chunk-NKAUZU4C.js → chunk-WBCKO5LP.js} +6 -6
- package/dist/_node-chunks/{chunk-JVQYQTTM.js → chunk-WO4UEQI6.js} +42 -87
- package/dist/_node-chunks/{chunk-SRXCCL2O.js → chunk-XCJ2ZIQ4.js} +7 -7
- package/dist/_node-chunks/{chunk-MDKFZRYG.js → chunk-XH5CXH53.js} +8 -8
- package/dist/_node-chunks/{chunk-4TV3Z3S3.js → chunk-XICRXTTE.js} +6 -6
- package/dist/_node-chunks/{chunk-GSWBRZLU.js → chunk-XO54HM4P.js} +9 -17
- package/dist/_node-chunks/{chunk-URRTQ2QM.js → chunk-XSVOMORJ.js} +8 -8
- package/dist/_node-chunks/{chunk-WQ7PSP6H.js → chunk-XVOIYGTJ.js} +6 -6
- package/dist/_node-chunks/chunk-Y4W4B3E7.js +20 -0
- package/dist/_node-chunks/{chunk-HKQEE62W.js → chunk-YBG7HVP7.js} +8 -8
- package/dist/_node-chunks/chunk-YIAUHGY2.js +69 -0
- package/dist/_node-chunks/{chunk-GP5YLBNS.js → chunk-Z2ZTDQDY.js} +8 -8
- package/dist/_node-chunks/{chunk-GT5EHMNM.js → chunk-ZEYODVQT.js} +7 -7
- package/dist/_node-chunks/dist-C5QIQD3G.js +27 -0
- package/dist/_node-chunks/dist-NBRPZCHX.js +16 -0
- package/dist/_node-chunks/{local-runtime-4UNT5EZJ.js → local-runtime-YDAW5RJV.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-ZY6XLLA4.js → mdx-plugin-XLDET5LV.js} +2263 -130
- package/dist/_node-chunks/{monorepo-B65J4UFS.js → monorepo-NWMAHGOM.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-4B6IZ7JD.js} +12 -12
- package/dist/_node-chunks/optimized-tests-EIPJR7HA.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-LOHSM7ID.js → pattern-copy-play-PJC4PO6A.js} +12 -12
- package/dist/_node-chunks/postinstallAddon-EOAAURMG.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-22ZBI6K4.js → rehype-external-links-4CWXZ35U.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-ROZVEEFZ.js → rehype-slug-QZ2PWSJH.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-EDE2B34G.js → relaxed-limits-ZQR4ER7L.js} +12 -12
- package/dist/_node-chunks/{run-IR3BRDJV.js → run-BMXB2BW2.js} +17 -17
- package/dist/_node-chunks/{run-372BSBV5.js → run-U63AXEKZ.js} +273 -13
- package/dist/_node-chunks/session-id-HEW5JUNB.js +23 -0
- package/dist/_node-chunks/{setup-6TMCKUTA.js → setup-NCUTUBNN.js} +9 -9
- package/dist/_node-chunks/{vitest.config.4.template-QJBEVCKG.js → vitest.config.4.template-4XHF7XPS.js} +9 -9
- package/dist/actions/decorator.js +3 -2
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.js +3 -2
- package/dist/addon-a11y/index.d.ts +3 -3
- package/dist/addon-a11y/index.js +2 -1
- package/dist/addon-a11y/manager.js +40 -37
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +2 -1
- package/dist/addon-docs/blocks.d.ts +20 -1
- package/dist/addon-docs/blocks.js +150 -74
- package/dist/addon-docs/index.d.ts +19 -19
- package/dist/addon-docs/manager.js +6 -6
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/index.js +5 -2
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-links/preview.js +5 -2
- package/dist/addon-links/react/index.js +4 -1
- package/dist/addon-mcp/preset.js +29 -21
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +37 -82
- package/dist/addon-ondevice-actions/index.js +5 -1
- package/dist/addon-ondevice-actions/register.js +5 -1
- 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/manager.js +2 -2
- 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 +4 -4
- 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 +21 -21
- 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 +15 -16
- package/dist/addon-vitest/vitest-plugin/global-setup.js +8 -8
- package/dist/addon-vitest/vitest-plugin/index.js +23 -23
- 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.d.ts +91 -842
- package/dist/babel/index.js +13 -19
- package/dist/backgrounds/index.d.ts +1 -1
- package/dist/bin/core.js +65 -64
- package/dist/bin/dispatcher.js +18 -16
- package/dist/bin/loader.js +17 -16
- 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-BTVrWliM.d.ts → chunk-BGhyFTJO.d.ts} +2 -2
- package/dist/{chunk-DtHByo32.d.ts → chunk-CFk6djyM.d.ts} +5 -5
- package/dist/{chunk-CwQKNaYL.d.ts → chunk-CNqjcOmK.d.ts} +1 -1
- package/dist/{chunk-CMeX4WRe.d.ts → chunk-CT2iXaHz.d.ts} +1 -1
- package/dist/chunk-CV4-Z2pn.d.ts +30 -0
- package/dist/{chunk-B2t1tGRh.d.ts → chunk-CYuvV2sR.d.ts} +11 -13
- package/dist/{chunk-DEVFdzxR.d.ts → chunk-D0NUmzXp.d.ts} +1 -1
- package/dist/{chunk-DzuY9DXg.d.ts → chunk-DDd8BhTY.d.ts} +2 -2
- package/dist/{chunk-Dw1z1Pki.d.ts → chunk-DROZ9oel.d.ts} +50 -314
- 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-C-bavsOH.d.ts → chunk-Dw_4ad2Y.d.ts} +6 -6
- package/dist/{chunk-C2p5r3Vt.d.ts → chunk-Fg1Fm__9.d.ts} +119 -29
- package/dist/chunk-Susgfkap.d.ts +20 -0
- package/dist/cli/index.d.ts +13 -866
- package/dist/cli/index.js +44 -4954
- package/dist/cli/skills/content/index.d.ts +1 -1
- package/dist/cli/skills/content/index.js +2 -2
- 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/client-logger/index.js +3 -1
- package/dist/common/index.d.ts +17 -29
- package/dist/common/index.js +36 -42
- package/dist/components/index.d.ts +41 -238
- package/dist/components/index.js +2738 -8515
- package/dist/core-events/index.d.ts +4 -3
- package/dist/core-events/index.js +3 -1
- package/dist/core-server/index.d.ts +7 -6
- package/dist/core-server/index.js +665 -250
- package/dist/core-server/presets/common-manager.js +603 -1027
- package/dist/core-server/presets/common-override-preset.js +12 -10
- package/dist/core-server/presets/common-preset.js +55 -48
- 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 +55 -120
- package/dist/csf-tools/index.d.ts +17 -13
- package/dist/csf-tools/index.js +17 -15
- package/dist/docs-tools/index.js +2 -2
- package/dist/highlight/index.d.ts +1 -1
- package/dist/instrumenter/index.js +8 -6
- package/dist/manager/_manager-chunks/{globals-runtime-B0I9dSVs.js → globals-runtime-BSj0mCjE.js} +824 -727
- package/dist/manager/_manager-chunks/globals-runtime-BY3epqww.js +1807 -0
- package/dist/manager/_manager-chunks/globals-runtime-Bj5KDUJi.js +8935 -0
- package/dist/manager/_manager-chunks/{globals-runtime-ZHrQFa3-.js → globals-runtime-Bs75QQ_I.js} +77 -553
- package/dist/manager/_manager-chunks/{globals-runtime-f5oIrim0.js → globals-runtime-Bu9eGDTe.js} +394 -189
- package/dist/manager/_manager-chunks/{globals-runtime-FC201B7s.js → globals-runtime-BweHuXkK.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-BQCkfH1B.js → globals-runtime-C5gK7HhH.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-BmphMP6z.js → globals-runtime-C92M_Vnq.js} +10 -10
- package/dist/manager/_manager-chunks/{globals-runtime-eLPTIfX-.js → globals-runtime-CA8AuIRT.js} +3 -145
- package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
- package/dist/manager/_manager-chunks/{globals-runtime-C02fvgcd.js → globals-runtime-CCTA-XPa.js} +410 -379
- package/dist/manager/_manager-chunks/{globals-runtime-CXoVXiJA.js → globals-runtime-CHjExYMv.js} +324 -118
- package/dist/manager/_manager-chunks/{globals-runtime-BvM-NY2g.js → globals-runtime-DvV_TF3-.js} +638 -1731
- package/dist/manager/_manager-chunks/{globals-runtime-8HkdnU2F.js → globals-runtime-WZKaeKm9.js} +93 -2146
- package/dist/manager/_manager-chunks/globals-runtime-wjkxyMn0.js +5283 -0
- package/dist/manager/_manager-chunks/{runtime-DtyerpFe.js → runtime--hR2NZFd.js} +124 -80
- package/dist/manager/_manager-chunks/{runtime-DMig8mT7.js → runtime-5o_11Jae.js} +4 -3
- package/dist/manager/_manager-chunks/{runtime-D94Vq3oR.js → runtime-B6NL14pz.js} +5 -531
- package/dist/manager/_manager-chunks/{runtime-eDVAYF7N.js → runtime-BAsOe1C_.js} +10 -29
- package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
- package/dist/manager/_manager-chunks/{runtime-DcJBhKG9.js → runtime-CJQZFUUj.js} +200 -376
- package/dist/manager/_manager-chunks/{runtime-Bry1Biu7.js → runtime-CgRqs_SK.js} +989 -915
- package/dist/manager/_manager-chunks/{runtime-i-PDAHLR.js → runtime-Dem2xJbS.js} +5 -147
- package/dist/manager/_manager-chunks/runtime-Dtbhxq5m.js +1158 -0
- package/dist/manager/_manager-chunks/runtime-DvB1axgp.js +197 -0
- package/dist/manager/_manager-chunks/runtime-EPerAEAs.js +294 -0
- package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
- 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 +72 -82
- 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 +22 -17
- package/dist/mocking-utils/mocker-runtime.js +2 -2
- package/dist/nextjs-vite/index.d.ts +2 -2
- package/dist/nextjs-vite/index.js +4 -3
- package/dist/nextjs-vite/node/index.d.ts +2 -2
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/node-stand-ins/index.d.ts +68 -0
- package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
- package/dist/nextjs-vite/preset.js +93 -14
- 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 +2 -3
- package/dist/nextjs-vite-plugin/index.js +15 -30
- 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.d.ts +65 -72
- package/dist/node-logger/index.js +11 -12
- package/dist/oxc-parser/index.js +11 -13
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-DrTjJkPY.js → runtime-BJwGQok8.js} +77 -76
- package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-BPwAnlRx.js} +482 -334
- package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-BUnOhg9h.js} +2 -2
- package/dist/preview/_chunks/{runtime-CxZK_Ln3.js → runtime-BZ4pNS3g.js} +2 -2
- package/dist/preview/_chunks/runtime-Bcv1hJky.js +6305 -0
- package/dist/preview/_chunks/{runtime-iXdo8CR8.js → runtime-BgPhfM5P.js} +54 -8
- package/dist/preview/_chunks/{runtime-CsV4HZPV.js → runtime-BhSZ1Mwt.js} +335 -137
- package/dist/preview/_chunks/{runtime-BwSxqk3t.js → runtime-BsMjBzuq.js} +6 -16
- package/dist/preview/_chunks/{runtime-CqHxptiK.js → runtime-C1jgT6tJ.js} +93 -2145
- package/dist/preview/_chunks/{runtime-DuHdxMFA.js → runtime-CkOhMcXf.js} +8 -8
- package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-WapFVPAh.js} +29 -29
- 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 +11 -9
- package/dist/preview-errors.d.ts +1 -1
- package/dist/preview-errors.js +2 -2
- package/dist/react/docgen/docgen-worker.js +11 -12
- package/dist/react/entry-preview.js +2 -1
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +6 -4
- package/dist/react/preset.js +13 -14
- package/dist/react/preview.d.ts +1 -1
- package/dist/react/preview.js +3 -2
- package/dist/react-native/bin/get-stories.js +12 -12
- package/dist/react-native/index.d.ts +11 -11
- package/dist/react-native/index.js +46 -231
- package/dist/react-native/metro/node.d.ts +2 -2
- package/dist/react-native/metro/node.js +10 -9
- package/dist/react-native/metro/{withStorybook.d.ts → withForkbook.d.ts} +11 -11
- package/dist/react-native/metro/{withStorybook.js → withForkbook.js} +22 -21
- package/dist/react-native/scripts/generate.d.ts +1 -1
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-native/stub.js +1 -1
- package/dist/react-native-theming/index.d.ts +2 -58
- package/dist/react-native-theming/index.js +63 -2338
- package/dist/react-native-ui/index.d.ts +6 -7
- package/dist/react-native-ui/index.js +207 -624
- package/dist/react-native-ui-common/index.d.ts +2 -3
- package/dist/react-vite/index.d.ts +2 -2
- package/dist/react-vite/node/index.d.ts +3 -3
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.d.ts +69 -1
- package/dist/router/index.js +52 -10
- 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.d.ts +3 -3
- package/dist/telemetry/index.js +43 -45
- package/dist/test/index.js +810 -575
- package/dist/theming/create.js +2 -1
- package/dist/theming/index.d.ts +5 -5
- package/dist/theming/index.js +41 -16
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +5 -5
- package/dist/viewport/index.d.ts +1 -1
- package/package.json +36 -81
- 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/_browser-chunks/WithTooltip-GZSSFOG3.js +0 -1619
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
- package/dist/_browser-chunks/chunk-JMC7AIKT.js +0 -108
- package/dist/_node-chunks/builder-manager-FPV2L36T.js +0 -1661
- package/dist/_node-chunks/chunk-356LV3NX.js +0 -36
- package/dist/_node-chunks/chunk-5BTU7UZ5.js +0 -1877
- package/dist/_node-chunks/chunk-5J3BMBMY.js +0 -51
- package/dist/_node-chunks/chunk-BCRWDMAU.js +0 -11
- package/dist/_node-chunks/chunk-BE6ULVPN.js +0 -662
- package/dist/_node-chunks/chunk-CSXS6LVI.js +0 -29
- package/dist/_node-chunks/chunk-DUOXRUVQ.js +0 -18
- package/dist/_node-chunks/chunk-FUYZNTIS.js +0 -23
- package/dist/_node-chunks/chunk-TB6Y6NSL.js +0 -3837
- package/dist/_node-chunks/chunk-VQEQ7ZLS.js +0 -4731
- package/dist/_node-chunks/chunk-WVCU34IS.js +0 -23
- package/dist/_node-chunks/chunk-Y2DEKWVE.js +0 -3008
- package/dist/_node-chunks/chunk-ZBAIFZNB.js +0 -5414
- package/dist/_node-chunks/dist-ZGSN23B7.js +0 -16
- package/dist/_node-chunks/globby-HWZL7XSQ.js +0 -2884
- package/dist/_node-chunks/jiti-GNDCTFYU.js +0 -3848
- package/dist/_node-chunks/lib-DI662U2R.js +0 -366
- 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/chunk-BfBzpgct.d.ts +0 -916
- package/dist/chunk-BxWufQms.d.ts +0 -142
- package/dist/core-server/presets/common-manager.css +0 -170
- package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +0 -3389
- package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +0 -9766
- package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +0 -5357
- package/dist/manager/_manager-chunks/runtime-B1L9TH89.js +0 -452
- package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +0 -998
- package/dist/manager/_manager-chunks/runtime-DpgBAFGf.js +0 -22
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
- package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
package/dist/csf/index.js
CHANGED
|
@@ -23,7 +23,8 @@ import {
|
|
|
23
23
|
normalizeArrays,
|
|
24
24
|
normalizeProjectAnnotations,
|
|
25
25
|
registerService
|
|
26
|
-
} from "../_browser-chunks/chunk-
|
|
26
|
+
} from "../_browser-chunks/chunk-TTBPZQ24.js";
|
|
27
|
+
import "../_browser-chunks/chunk-PZQRXPVR.js";
|
|
27
28
|
import {
|
|
28
29
|
invariant
|
|
29
30
|
} from "../_browser-chunks/chunk-IWQGIXJS.js";
|
|
@@ -31,30 +32,32 @@ import "../_browser-chunks/chunk-FENFYI4X.js";
|
|
|
31
32
|
import "../_browser-chunks/chunk-WZ7KR7SH.js";
|
|
32
33
|
import {
|
|
33
34
|
Tag
|
|
34
|
-
} from "../_browser-chunks/chunk-
|
|
35
|
-
import "../_browser-chunks/chunk-
|
|
36
|
-
import "../_browser-chunks/chunk-
|
|
35
|
+
} from "../_browser-chunks/chunk-3M5T7BW4.js";
|
|
36
|
+
import "../_browser-chunks/chunk-KYSD26D6.js";
|
|
37
|
+
import "../_browser-chunks/chunk-N3NRW5XX.js";
|
|
37
38
|
import "../_browser-chunks/chunk-QC4HFS6K.js";
|
|
38
|
-
import "../_browser-chunks/chunk-
|
|
39
|
+
import "../_browser-chunks/chunk-76222HQR.js";
|
|
39
40
|
import "../_browser-chunks/chunk-SFVA4SBT.js";
|
|
40
41
|
import "../_browser-chunks/chunk-DRQKCCAG.js";
|
|
41
42
|
import {
|
|
42
43
|
shouldSkipStoryDocsEmit
|
|
43
|
-
} from "../_browser-chunks/chunk-
|
|
44
|
+
} from "../_browser-chunks/chunk-3HM3VWJS.js";
|
|
44
45
|
import {
|
|
45
46
|
combineParameters
|
|
46
|
-
} from "../_browser-chunks/chunk-
|
|
47
|
+
} from "../_browser-chunks/chunk-GRO2ZYEJ.js";
|
|
47
48
|
import "../_browser-chunks/chunk-2JDQ35OA.js";
|
|
48
49
|
import "../_browser-chunks/chunk-IE4ULIOQ.js";
|
|
49
|
-
import
|
|
50
|
+
import {
|
|
51
|
+
isEqual
|
|
52
|
+
} from "../_browser-chunks/chunk-B4AUNNU4.js";
|
|
50
53
|
import "../_browser-chunks/chunk-NZMVUW5T.js";
|
|
51
54
|
import "../_browser-chunks/chunk-JWSKPMPC.js";
|
|
52
55
|
import "../_browser-chunks/chunk-JPUOQJUI.js";
|
|
53
56
|
import {
|
|
54
57
|
PARAM_KEY
|
|
55
58
|
} from "../_browser-chunks/chunk-QDXFODK4.js";
|
|
56
|
-
import "../_browser-chunks/chunk-
|
|
57
|
-
import "../_browser-chunks/chunk-
|
|
59
|
+
import "../_browser-chunks/chunk-BNP234B4.js";
|
|
60
|
+
import "../_browser-chunks/chunk-MJIDTL3X.js";
|
|
58
61
|
import "../_browser-chunks/chunk-SC67XZST.js";
|
|
59
62
|
import {
|
|
60
63
|
HIGHLIGHT,
|
|
@@ -68,90 +71,28 @@ import {
|
|
|
68
71
|
import "../_browser-chunks/chunk-ECQ75MKQ.js";
|
|
69
72
|
import {
|
|
70
73
|
action
|
|
71
|
-
} from "../_browser-chunks/chunk-
|
|
72
|
-
import "../_browser-chunks/chunk-
|
|
74
|
+
} from "../_browser-chunks/chunk-FRAOQJDI.js";
|
|
75
|
+
import "../_browser-chunks/chunk-N5WQGLI7.js";
|
|
76
|
+
import {
|
|
77
|
+
global
|
|
78
|
+
} from "../_browser-chunks/chunk-6AKCRYVX.js";
|
|
73
79
|
import {
|
|
74
80
|
DEFAULT_BACKGROUNDS,
|
|
75
81
|
PARAM_KEY as PARAM_KEY2
|
|
76
82
|
} from "../_browser-chunks/chunk-LAWXTSXK.js";
|
|
77
83
|
import {
|
|
78
|
-
|
|
79
|
-
__export,
|
|
80
|
-
__toESM
|
|
84
|
+
__export
|
|
81
85
|
} from "../_browser-chunks/chunk-IMSF75WX.js";
|
|
82
86
|
|
|
83
|
-
// ../../node_modules/@ngard/tiny-isequal/index.js
|
|
84
|
-
var require_tiny_isequal = __commonJS({
|
|
85
|
-
"../../node_modules/@ngard/tiny-isequal/index.js"(exports) {
|
|
86
|
-
Object.defineProperty(exports, "__esModule", { value: !0 }), exports.isEqual = /* @__PURE__ */ (function() {
|
|
87
|
-
var e = Object.prototype.toString, r = Object.getPrototypeOf, t = Object.getOwnPropertySymbols ? function(e2) {
|
|
88
|
-
return Object.keys(e2).concat(Object.getOwnPropertySymbols(e2));
|
|
89
|
-
} : Object.keys;
|
|
90
|
-
return function(n, a) {
|
|
91
|
-
return (function n2(a2, c, u) {
|
|
92
|
-
var i, s, l, o = e.call(a2), f = e.call(c);
|
|
93
|
-
if (a2 === c) return !0;
|
|
94
|
-
if (a2 == null || c == null) return !1;
|
|
95
|
-
if (u.indexOf(a2) > -1 && u.indexOf(c) > -1) return !0;
|
|
96
|
-
if (u.push(a2, c), o != f || (i = t(a2), s = t(c), i.length != s.length || i.some(function(e2) {
|
|
97
|
-
return !n2(a2[e2], c[e2], u);
|
|
98
|
-
}))) return !1;
|
|
99
|
-
switch (o.slice(8, -1)) {
|
|
100
|
-
case "Symbol":
|
|
101
|
-
return a2.valueOf() == c.valueOf();
|
|
102
|
-
case "Date":
|
|
103
|
-
case "Number":
|
|
104
|
-
return +a2 == +c || +a2 != +a2 && +c != +c;
|
|
105
|
-
case "RegExp":
|
|
106
|
-
case "Function":
|
|
107
|
-
case "String":
|
|
108
|
-
case "Boolean":
|
|
109
|
-
return "" + a2 == "" + c;
|
|
110
|
-
case "Set":
|
|
111
|
-
case "Map":
|
|
112
|
-
i = a2.entries(), s = c.entries();
|
|
113
|
-
do
|
|
114
|
-
if (!n2((l = i.next()).value, s.next().value, u)) return !1;
|
|
115
|
-
while (!l.done);
|
|
116
|
-
return !0;
|
|
117
|
-
case "ArrayBuffer":
|
|
118
|
-
a2 = new Uint8Array(a2), c = new Uint8Array(c);
|
|
119
|
-
case "DataView":
|
|
120
|
-
a2 = new Uint8Array(a2.buffer), c = new Uint8Array(c.buffer);
|
|
121
|
-
case "Float32Array":
|
|
122
|
-
case "Float64Array":
|
|
123
|
-
case "Int8Array":
|
|
124
|
-
case "Int16Array":
|
|
125
|
-
case "Int32Array":
|
|
126
|
-
case "Uint8Array":
|
|
127
|
-
case "Uint16Array":
|
|
128
|
-
case "Uint32Array":
|
|
129
|
-
case "Uint8ClampedArray":
|
|
130
|
-
case "Arguments":
|
|
131
|
-
case "Array":
|
|
132
|
-
if (a2.length != c.length) return !1;
|
|
133
|
-
for (l = 0; l < a2.length; l++) if ((l in a2 || l in c) && (l in a2 != l in c || !n2(a2[l], c[l], u))) return !1;
|
|
134
|
-
return !0;
|
|
135
|
-
case "Object":
|
|
136
|
-
return n2(r(a2), r(c), u);
|
|
137
|
-
default:
|
|
138
|
-
return !1;
|
|
139
|
-
}
|
|
140
|
-
})(n, a, []);
|
|
141
|
-
};
|
|
142
|
-
})();
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
|
|
146
87
|
// src/csf/includeConditionalArg.ts
|
|
147
|
-
var
|
|
88
|
+
var count = (vals) => vals.map((v2) => typeof v2 < "u").filter(Boolean).length, testValue = (cond, value) => {
|
|
148
89
|
let { exists, eq, neq, truthy } = cond;
|
|
149
90
|
if (count([exists, eq, neq, truthy]) > 1)
|
|
150
91
|
throw new Error(`Invalid conditional test ${JSON.stringify({ exists, eq, neq })}`);
|
|
151
92
|
if (typeof eq < "u")
|
|
152
|
-
return
|
|
93
|
+
return isEqual(value, eq);
|
|
153
94
|
if (typeof neq < "u")
|
|
154
|
-
return !
|
|
95
|
+
return !isEqual(value, neq);
|
|
155
96
|
if (typeof exists < "u") {
|
|
156
97
|
let valueExists = typeof value < "u";
|
|
157
98
|
return exists ? valueExists : !valueExists;
|
|
@@ -160,10 +101,10 @@ var import_tiny_isequal = __toESM(require_tiny_isequal(), 1), count = (vals) =>
|
|
|
160
101
|
}, includeConditionalArg = (argType, args, globals) => {
|
|
161
102
|
if (!argType.if)
|
|
162
103
|
return !0;
|
|
163
|
-
let { arg, global:
|
|
164
|
-
if (count([arg,
|
|
165
|
-
throw new Error(`Invalid conditional value ${JSON.stringify({ arg, global:
|
|
166
|
-
let value = arg ? args[arg] : globals[
|
|
104
|
+
let { arg, global: global2 } = argType.if;
|
|
105
|
+
if (count([arg, global2]) !== 1)
|
|
106
|
+
throw new Error(`Invalid conditional value ${JSON.stringify({ arg, global: global2 })}`);
|
|
107
|
+
let value = arg ? args[arg] : globals[global2];
|
|
167
108
|
return testValue(argType.if, value);
|
|
168
109
|
};
|
|
169
110
|
|
|
@@ -286,7 +227,7 @@ var defaultGrid = {
|
|
|
286
227
|
options = DEFAULT_BACKGROUNDS,
|
|
287
228
|
disable,
|
|
288
229
|
grid = defaultGrid
|
|
289
|
-
} = parameters2[PARAM_KEY2] || {}, data = globals[PARAM_KEY2] || {}, backgroundName = typeof data == "string" ? data : data?.value, item = backgroundName ? options[backgroundName] : void 0, value = typeof item == "string" ? item : item?.value || "transparent", showGrid = typeof data == "string" ? !1 : data.grid || !1, shownBackground = !!item && !disable, backgroundSelector = viewMode === "docs" ? `#anchor--${id} .docs-story, #anchor--primary--${id} .docs-story` : ".
|
|
230
|
+
} = parameters2[PARAM_KEY2] || {}, data = globals[PARAM_KEY2] || {}, backgroundName = typeof data == "string" ? data : data?.value, item = backgroundName ? options[backgroundName] : void 0, value = typeof item == "string" ? item : item?.value || "transparent", showGrid = typeof data == "string" ? !1 : data.grid || !1, shownBackground = !!item && !disable, backgroundSelector = viewMode === "docs" ? `#anchor--${id} .docs-story, #anchor--primary--${id} .docs-story` : ".fb-show-main", gridSelector = viewMode === "docs" ? `#anchor--${id} .docs-story, #anchor--primary--${id} .docs-story` : ".fb-show-main", isLayoutPadded = parameters2.layout === void 0 || parameters2.layout === "padded", defaultOffset = viewMode === "docs" ? 20 : isLayoutPadded ? 16 : 0, { cellAmount, cellSize, opacity, offsetX = defaultOffset, offsetY = defaultOffset } = grid, backgroundSelectorId = viewMode === "docs" ? `${BG_SELECTOR_BASE}-docs-${id}` : `${BG_SELECTOR_BASE}-color`, backgroundTarget = viewMode === "docs" ? id : null;
|
|
290
231
|
useEffect(() => {
|
|
291
232
|
let backgroundStyles = `
|
|
292
233
|
${backgroundSelector} {
|
|
@@ -442,7 +383,7 @@ var svgElements = "svg,path,rect,circle,line,polyline,polygon,ellipse,text".spli
|
|
|
442
383
|
return {
|
|
443
384
|
priority: 0,
|
|
444
385
|
styles: {
|
|
445
|
-
outline: "2px dashed #
|
|
386
|
+
outline: "2px dashed #007aff"
|
|
446
387
|
},
|
|
447
388
|
...rest,
|
|
448
389
|
menu: Array.isArray(menu) ? menu.every(Array.isArray) ? menu : [menu] : void 0
|
|
@@ -474,7 +415,7 @@ var svgElements = "svg,path,rect,circle,line,polyline,polygon,ellipse,text".spli
|
|
|
474
415
|
...document.querySelectorAll(
|
|
475
416
|
// Elements matching the selector, excluding storybook elements and their descendants.
|
|
476
417
|
// Necessary to find portaled elements (e.g. children of `body`).
|
|
477
|
-
`:is(${selector}):not([id^="storybook-"], [id^="storybook-"] *, [class^="
|
|
418
|
+
`:is(${selector}):not([id^="storybook-"], [id^="storybook-"] *, [class^="fb-"], [class^="fb-"] *)`
|
|
478
419
|
),
|
|
479
420
|
// Elements matching the selector inside the storybook root, as these were excluded above.
|
|
480
421
|
...root?.querySelectorAll(selector) || []
|
|
@@ -545,9 +486,9 @@ var svgElements = "svg,path,rect,circle,line,polyline,polygon,ellipse,text".spli
|
|
|
545
486
|
|
|
546
487
|
// src/highlight/useHighlights.ts
|
|
547
488
|
var menuId = "storybook-highlights-menu", rootId = "storybook-highlights-root", storybookRootId = "storybook-root", useHighlights = (channel) => {
|
|
548
|
-
if (globalThis.
|
|
489
|
+
if (globalThis.__FORKBOOK_HIGHLIGHT_INITIALIZED)
|
|
549
490
|
return;
|
|
550
|
-
globalThis.
|
|
491
|
+
globalThis.__FORKBOOK_HIGHLIGHT_INITIALIZED = !0;
|
|
551
492
|
let { document: document3 } = globalThis, highlights = useStore([]), elements = useStore(/* @__PURE__ */ new Map()), boxes = useStore([]), clickCoords = useStore(), hoverCoords = useStore(), targets = useStore([]), hovered = useStore([]), focused = useStore(), selected = useStore(), root = document3.getElementById(rootId);
|
|
552
493
|
highlights.subscribe(() => {
|
|
553
494
|
root || (root = createElement("div", { id: rootId }), document3.body.appendChild(root));
|
|
@@ -705,7 +646,7 @@ var menuId = "storybook-highlights-menu", rootId = "storybook-highlights-root",
|
|
|
705
646
|
padding: 0px;
|
|
706
647
|
margin: 15px 0 0 0;
|
|
707
648
|
transform: translateX(-50%);
|
|
708
|
-
font-family: "
|
|
649
|
+
font-family: "Inter Variable", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
709
650
|
font-size: 12px;
|
|
710
651
|
background: white;
|
|
711
652
|
border: none;
|
|
@@ -745,11 +686,11 @@ var menuId = "storybook-highlights-menu", rootId = "storybook-highlights-root",
|
|
|
745
686
|
font-size: inherit;
|
|
746
687
|
}
|
|
747
688
|
#${menuId} button:focus-visible {
|
|
748
|
-
outline-color: #
|
|
689
|
+
outline-color: #007AFF;
|
|
749
690
|
}
|
|
750
691
|
#${menuId} button:hover {
|
|
751
|
-
background: rgba(
|
|
752
|
-
color: #
|
|
692
|
+
background: rgba(0, 122, 255, 0.07);
|
|
693
|
+
color: #007AFF;
|
|
753
694
|
cursor: pointer;
|
|
754
695
|
}
|
|
755
696
|
#${menuId} li code {
|
|
@@ -765,7 +706,7 @@ var menuId = "storybook-highlights-menu", rootId = "storybook-highlights-root",
|
|
|
765
706
|
color: #73828C;
|
|
766
707
|
}
|
|
767
708
|
#${menuId} li > button:hover svg, #${menuId} li > button:focus-visible svg {
|
|
768
|
-
color: #
|
|
709
|
+
color: #007AFF;
|
|
769
710
|
}
|
|
770
711
|
#${menuId} .element-list li svg {
|
|
771
712
|
display: none;
|
|
@@ -898,17 +839,17 @@ var menuId = "storybook-highlights-menu", rootId = "storybook-highlights-root",
|
|
|
898
839
|
priority: 1e3,
|
|
899
840
|
selectors: [target],
|
|
900
841
|
styles: {
|
|
901
|
-
outline: "2px solid #
|
|
842
|
+
outline: "2px solid #007AFF",
|
|
902
843
|
outlineOffset: "-1px",
|
|
903
844
|
animation: `${keyframeName} 3s linear forwards`
|
|
904
845
|
},
|
|
905
846
|
keyframes: `@keyframes ${keyframeName} {
|
|
906
|
-
0% { outline: 2px solid #
|
|
907
|
-
20% { outline: 2px solid #
|
|
908
|
-
40% { outline: 2px solid #
|
|
909
|
-
60% { outline: 2px solid #
|
|
910
|
-
80% { outline: 2px solid #
|
|
911
|
-
100% { outline: 2px solid #
|
|
847
|
+
0% { outline: 2px solid #007AFF; }
|
|
848
|
+
20% { outline: 2px solid #007AFF00; }
|
|
849
|
+
40% { outline: 2px solid #007AFF; }
|
|
850
|
+
60% { outline: 2px solid #007AFF00; }
|
|
851
|
+
80% { outline: 2px solid #007AFF; }
|
|
852
|
+
100% { outline: 2px solid #007AFF00; }
|
|
912
853
|
}`
|
|
913
854
|
}
|
|
914
855
|
]), removeTimeout = setTimeout(() => removeHighlight(id), 3500);
|
|
@@ -931,7 +872,6 @@ import { definePreviewAddon as definePreviewAddon6 } from "@aussieljk/forkbook/i
|
|
|
931
872
|
import { useEffect as useEffect2 } from "@aussieljk/forkbook/preview-api";
|
|
932
873
|
|
|
933
874
|
// src/measure/box-model/canvas.ts
|
|
934
|
-
import { global } from "@storybook/global";
|
|
935
875
|
function getDocumentWidthAndHeight() {
|
|
936
876
|
let container = global.document.documentElement, height = Math.max(container.scrollHeight, container.offsetHeight);
|
|
937
877
|
return { width: Math.max(container.scrollWidth, container.offsetWidth), height };
|
|
@@ -968,9 +908,6 @@ function destroy() {
|
|
|
968
908
|
state2.canvas && (clear(), state2.canvas.parentNode?.removeChild(state2.canvas), state2 = {});
|
|
969
909
|
}
|
|
970
910
|
|
|
971
|
-
// src/measure/box-model/visualizer.ts
|
|
972
|
-
import { global as global2 } from "@storybook/global";
|
|
973
|
-
|
|
974
911
|
// src/measure/box-model/labels.ts
|
|
975
912
|
var colors = {
|
|
976
913
|
margin: "#f6b26b",
|
|
@@ -1058,10 +995,10 @@ function filterZeroValues(labels) {
|
|
|
1058
995
|
}
|
|
1059
996
|
function floatingAlignment(extremities) {
|
|
1060
997
|
let windowExtremities = {
|
|
1061
|
-
top:
|
|
1062
|
-
bottom:
|
|
1063
|
-
left:
|
|
1064
|
-
right:
|
|
998
|
+
top: global.window.scrollY,
|
|
999
|
+
bottom: global.window.scrollY + global.window.innerHeight,
|
|
1000
|
+
left: global.window.scrollX,
|
|
1001
|
+
right: global.window.scrollX + global.window.innerWidth
|
|
1065
1002
|
}, distances = {
|
|
1066
1003
|
top: Math.abs(windowExtremities.top - extremities.top),
|
|
1067
1004
|
bottom: Math.abs(windowExtremities.bottom - extremities.bottom),
|
|
@@ -1074,7 +1011,7 @@ function floatingAlignment(extremities) {
|
|
|
1074
1011
|
};
|
|
1075
1012
|
}
|
|
1076
1013
|
function measureElement(element) {
|
|
1077
|
-
let style =
|
|
1014
|
+
let style = global.getComputedStyle(element), { top, left, right, bottom, width, height } = element.getBoundingClientRect(), {
|
|
1078
1015
|
marginTop,
|
|
1079
1016
|
marginBottom,
|
|
1080
1017
|
marginLeft,
|
|
@@ -1088,7 +1025,7 @@ function measureElement(element) {
|
|
|
1088
1025
|
borderLeftWidth,
|
|
1089
1026
|
borderRightWidth
|
|
1090
1027
|
} = style;
|
|
1091
|
-
top = top +
|
|
1028
|
+
top = top + global.window.scrollY, left = left + global.window.scrollX, bottom = bottom + global.window.scrollY, right = right + global.window.scrollX;
|
|
1092
1029
|
let margin = {
|
|
1093
1030
|
top: pxToNumber(marginTop),
|
|
1094
1031
|
bottom: pxToNumber(marginBottom),
|
|
@@ -1248,9 +1185,8 @@ function drawSelectedElement(element) {
|
|
|
1248
1185
|
}
|
|
1249
1186
|
|
|
1250
1187
|
// src/measure/util.ts
|
|
1251
|
-
import { global as global3 } from "@storybook/global";
|
|
1252
1188
|
var deepElementFromPoint = (x, y) => {
|
|
1253
|
-
let element =
|
|
1189
|
+
let element = global.document.elementFromPoint(x, y), crawlShadows = (node) => {
|
|
1254
1190
|
if (node && node.shadowRoot) {
|
|
1255
1191
|
let nestedElement = node.shadowRoot.elementFromPoint(x, y);
|
|
1256
1192
|
return node.isEqualNode(nestedElement) ? node : nestedElement.shadowRoot ? crawlShadows(nestedElement) : nestedElement;
|
|
@@ -1309,19 +1245,18 @@ import { definePreviewAddon as definePreviewAddon7 } from "@aussieljk/forkbook/i
|
|
|
1309
1245
|
import { useEffect as useEffect3, useMemo } from "@aussieljk/forkbook/preview-api";
|
|
1310
1246
|
|
|
1311
1247
|
// src/outline/helpers.ts
|
|
1312
|
-
import { global as global4 } from "@storybook/global";
|
|
1313
1248
|
var clearStyles2 = (selector) => {
|
|
1314
1249
|
(Array.isArray(selector) ? selector : [selector]).forEach(clearStyle2);
|
|
1315
1250
|
}, clearStyle2 = (input) => {
|
|
1316
|
-
let selector = typeof input == "string" ? input : input.join(""), element =
|
|
1251
|
+
let selector = typeof input == "string" ? input : input.join(""), element = global.document.getElementById(selector);
|
|
1317
1252
|
element && element.parentElement && element.parentElement.removeChild(element);
|
|
1318
1253
|
}, addOutlineStyles = (selector, css) => {
|
|
1319
|
-
let existingStyle =
|
|
1254
|
+
let existingStyle = global.document.getElementById(selector);
|
|
1320
1255
|
if (existingStyle)
|
|
1321
1256
|
existingStyle.innerHTML !== css && (existingStyle.innerHTML = css);
|
|
1322
1257
|
else {
|
|
1323
|
-
let style =
|
|
1324
|
-
style.setAttribute("id", selector), style.innerHTML = css,
|
|
1258
|
+
let style = global.document.createElement("style");
|
|
1259
|
+
style.setAttribute("id", selector), style.innerHTML = css, global.document.head.appendChild(style);
|
|
1325
1260
|
}
|
|
1326
1261
|
};
|
|
1327
1262
|
|
|
@@ -1728,7 +1663,7 @@ function outlineCSS(selector) {
|
|
|
1728
1663
|
|
|
1729
1664
|
// src/outline/withOutline.ts
|
|
1730
1665
|
var withOutline = (StoryFn, context) => {
|
|
1731
|
-
let globals = context.globals || {}, isActive = !context.parameters?.[PARAM_KEY4]?.disable && [!0, "true"].includes(globals[PARAM_KEY4]), isInDocs = context.viewMode === "docs", outlineStyles = useMemo(() => outlineCSS(isInDocs ? '[data-story-block="true"]' : ".
|
|
1666
|
+
let globals = context.globals || {}, isActive = !context.parameters?.[PARAM_KEY4]?.disable && [!0, "true"].includes(globals[PARAM_KEY4]), isInDocs = context.viewMode === "docs", outlineStyles = useMemo(() => outlineCSS(isInDocs ? '[data-story-block="true"]' : ".fb-show-main"), [context]);
|
|
1732
1667
|
return useEffect3(() => {
|
|
1733
1668
|
let selectorId = isInDocs ? `addon-outline-docs-${context.id}` : "addon-outline";
|
|
1734
1669
|
return isActive ? addOutlineStyles(selectorId, outlineStyles) : clearStyles2(selectorId), () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ArgTypes } from "@aussieljk/forkbook/internal/csf";
|
|
2
2
|
import { ComponentAnnotations, CsfEnricher, IndexInput, IndexInputStats, IndexedCSFFile, StoriesEntry, StoryAnnotations, Tag as Tag$1 } from "@aussieljk/forkbook/internal/types";
|
|
3
|
-
import { GeneratorOptions, NodePath, RecastOptions, babelParse, generate, types } from "@aussieljk/forkbook/internal/babel";
|
|
3
|
+
import { BabelFile, GeneratorOptions, NodePath, RecastOptions, babelParse, generate, types } from "@aussieljk/forkbook/internal/babel";
|
|
4
4
|
|
|
5
5
|
//#region .dts-emit/code/core/src/csf-tools/PrintResultType.d.ts
|
|
6
6
|
interface PrintResultType {
|
|
@@ -181,16 +181,6 @@ interface CsfObjectOptions {
|
|
|
181
181
|
}
|
|
182
182
|
//#endregion
|
|
183
183
|
//#region .dts-emit/code/core/src/csf-tools/CsfFile.d.ts
|
|
184
|
-
interface BabelFile {
|
|
185
|
-
ast: types.File;
|
|
186
|
-
opts: any;
|
|
187
|
-
hub: any;
|
|
188
|
-
metadata: object;
|
|
189
|
-
path: NodePath<types.Program>;
|
|
190
|
-
scope: any;
|
|
191
|
-
inputMap: object | null;
|
|
192
|
-
code: string;
|
|
193
|
-
}
|
|
194
184
|
declare const isValidPreviewPath: (filepath: string) => boolean;
|
|
195
185
|
declare const isModuleMock: (importPath: string) => boolean;
|
|
196
186
|
interface CsfOptions {
|
|
@@ -232,6 +222,8 @@ interface StoryTest {
|
|
|
232
222
|
node: types.Node;
|
|
233
223
|
};
|
|
234
224
|
}
|
|
225
|
+
/** Reads `parameters.thumbnail` when it is a string literal in the object. */
|
|
226
|
+
declare const staticThumbnail: (parameters: types.Node | undefined) => string | undefined;
|
|
235
227
|
declare class CsfFile {
|
|
236
228
|
_ast: types.File;
|
|
237
229
|
_file: BabelFile;
|
|
@@ -306,6 +298,18 @@ declare class CsfFile {
|
|
|
306
298
|
*/
|
|
307
299
|
objects(options?: CsfObjectOptions): readonly CsfObject[];
|
|
308
300
|
_parseTitle(value: types.Node): string;
|
|
301
|
+
/**
|
|
302
|
+
* Gets the properties of the meta object. Spreads of object literals, or of identifiers that
|
|
303
|
+
* refer to object literals, are expanded. Other spreads are returned in `unresolved`, with the
|
|
304
|
+
* number of properties that come before them.
|
|
305
|
+
*/
|
|
306
|
+
_flattenMetaProperties(declaration: types.ObjectExpression, program: types.Program, seen?: Set<string>): {
|
|
307
|
+
properties: types.ObjectProperty[];
|
|
308
|
+
unresolved: {
|
|
309
|
+
index: number;
|
|
310
|
+
node: types.Node;
|
|
311
|
+
}[];
|
|
312
|
+
};
|
|
309
313
|
_parseMeta(declaration: types.ObjectExpression, program: types.Program): void;
|
|
310
314
|
getStoryExport(key: string): types.Node;
|
|
311
315
|
parse(): CsfFile & IndexedCSFFile;
|
|
@@ -314,7 +318,7 @@ declare class CsfFile {
|
|
|
314
318
|
getStoryTests(story: string | types.Node): StoryTest[];
|
|
315
319
|
get indexInputs(): IndexInput[];
|
|
316
320
|
}
|
|
317
|
-
/**
|
|
321
|
+
/** A parsed file with its Program path, so paths have scopes and `buildCodeFrameError`. */
|
|
318
322
|
declare const babelParseFile: ({
|
|
319
323
|
code,
|
|
320
324
|
filename,
|
|
@@ -1154,4 +1158,4 @@ declare const componentTransform: ({
|
|
|
1154
1158
|
map: null;
|
|
1155
1159
|
}>;
|
|
1156
1160
|
//#endregion
|
|
1157
|
-
export { type AuthoredSource, BadMetaError, CallArgumentsOptions, type ComponentImportRef, ConfigFile, CsfFile, type CsfMutationDiagnostic, type CsfMutationDiagnosticCode, type CsfMutationResult, type CsfObject, type CsfObjectOptions, type CsfObjectTarget, CsfOptions, type CsfValue, EnrichCsfOptions, type ImportBinding, type ImportRef, JsDocTagMap, MixedFactoryError, MultipleMetaError, NoMetaError, type NormalizedStoryDeclaration, type ReferenceContext, type ReferenceModule, type RenderFunctionPath, type RenderResolution, type ResolvedArgValue, type ResolvedMembers, type ResolvedStoryArgs, StaticMeta, StaticStory, type StoryArgsResolver, type StoryReferenceResolver, type StoryReferenceResolverOptions, type StoryReferences, StoryTest, type TemplateParts, authoredSource, babelParse, babelParseFile, buildImportStatements, collectImportBindings, componentTransform, createStoryArgsResolver, createStoryReferenceResolver, csfFactoryReceiver, enrichCsf, enrichCsfMeta, enrichCsfStory, extractComponentDescription, extractDescription, extractJSDocInfo, extractSource, extractStoryJSDocInfo, formatConfig, formatCsf, getHeaderComments, importedName$1 as importedName, isCanonicalCsf2BindCall, isCsfFactoryCall, isCsfFactoryPreview, isModuleMock, isSelfContained, isTypeSpecifier, isValidPreviewPath, jsDocTagsForPath, keyOf, loadConfig, loadCsf, metaObjectPath, noSnippetWarning, normalizeStoryDeclaration, parseReferenceModule, pathForNode, printConfig, printCsf, propertyValue, readConfig, readCsf, resolveArgValue, resolveArgsRecord, resolveBindingMembers, resolveComponentImport, resolveEffectiveRender, resolveIdentifierInit, resolveObjectMembers, resolveReferencedValue, resolveRenderFunction, resolveReturnedObjectExpression, returnedExpression, returnedExpressionPath, sourceOf, templateParts, unresolvedWarning, unwrapExpression, vitestTransform, withoutTypeCalls, writeConfig, writeCsf };
|
|
1161
|
+
export { type AuthoredSource, BadMetaError, CallArgumentsOptions, type ComponentImportRef, ConfigFile, CsfFile, type CsfMutationDiagnostic, type CsfMutationDiagnosticCode, type CsfMutationResult, type CsfObject, type CsfObjectOptions, type CsfObjectTarget, CsfOptions, type CsfValue, EnrichCsfOptions, type ImportBinding, type ImportRef, JsDocTagMap, MixedFactoryError, MultipleMetaError, NoMetaError, type NormalizedStoryDeclaration, type ReferenceContext, type ReferenceModule, type RenderFunctionPath, type RenderResolution, type ResolvedArgValue, type ResolvedMembers, type ResolvedStoryArgs, StaticMeta, StaticStory, type StoryArgsResolver, type StoryReferenceResolver, type StoryReferenceResolverOptions, type StoryReferences, StoryTest, type TemplateParts, authoredSource, babelParse, babelParseFile, buildImportStatements, collectImportBindings, componentTransform, createStoryArgsResolver, createStoryReferenceResolver, csfFactoryReceiver, enrichCsf, enrichCsfMeta, enrichCsfStory, extractComponentDescription, extractDescription, extractJSDocInfo, extractSource, extractStoryJSDocInfo, formatConfig, formatCsf, getHeaderComments, importedName$1 as importedName, isCanonicalCsf2BindCall, isCsfFactoryCall, isCsfFactoryPreview, isModuleMock, isSelfContained, isTypeSpecifier, isValidPreviewPath, jsDocTagsForPath, keyOf, loadConfig, loadCsf, metaObjectPath, noSnippetWarning, normalizeStoryDeclaration, parseReferenceModule, pathForNode, printConfig, printCsf, propertyValue, readConfig, readCsf, resolveArgValue, resolveArgsRecord, resolveBindingMembers, resolveComponentImport, resolveEffectiveRender, resolveIdentifierInit, resolveObjectMembers, resolveReferencedValue, resolveRenderFunction, resolveReturnedObjectExpression, returnedExpression, returnedExpressionPath, sourceOf, staticThumbnail, templateParts, unresolvedWarning, unwrapExpression, vitestTransform, withoutTypeCalls, writeConfig, writeCsf };
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_i135z88drol from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_i135z88drol from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_i135z88drol from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_i135z88drol.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_i135z88drol.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_i135z88drol.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
printConfig,
|
|
19
19
|
readConfig,
|
|
20
20
|
writeConfig
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-GGCOG7OV.js";
|
|
22
22
|
import {
|
|
23
23
|
BadMetaError,
|
|
24
24
|
CsfFile,
|
|
@@ -72,16 +72,17 @@ import {
|
|
|
72
72
|
returnedExpression,
|
|
73
73
|
returnedExpressionPath,
|
|
74
74
|
sourceOf,
|
|
75
|
+
staticThumbnail,
|
|
75
76
|
templateParts,
|
|
76
77
|
unresolvedWarning,
|
|
77
78
|
unwrapExpression,
|
|
78
79
|
withoutTypeCalls,
|
|
79
80
|
writeCsf
|
|
80
|
-
} from "../_node-chunks/chunk-
|
|
81
|
-
import "../_node-chunks/chunk-
|
|
82
|
-
import "../_node-chunks/chunk-
|
|
83
|
-
import "../_node-chunks/chunk-
|
|
84
|
-
import "../_node-chunks/chunk-
|
|
81
|
+
} from "../_node-chunks/chunk-NFDQT7UW.js";
|
|
82
|
+
import "../_node-chunks/chunk-RNRGXAFV.js";
|
|
83
|
+
import "../_node-chunks/chunk-LAIED5XU.js";
|
|
84
|
+
import "../_node-chunks/chunk-VZG3OKFO.js";
|
|
85
|
+
import "../_node-chunks/chunk-WBCKO5LP.js";
|
|
85
86
|
|
|
86
87
|
// src/csf-tools/index.ts
|
|
87
88
|
import { babelParse as babelParse2 } from "@aussieljk/forkbook/internal/babel";
|
|
@@ -313,8 +314,8 @@ Please make sure you have a default export with the meta object. If you are usin
|
|
|
313
314
|
// src/csf-tools/vitest-plugin/component-transformer.ts
|
|
314
315
|
import path from "node:path";
|
|
315
316
|
import {
|
|
316
|
-
BabelFileClass,
|
|
317
317
|
babelParse,
|
|
318
|
+
createBabelFile,
|
|
318
319
|
generate,
|
|
319
320
|
types as t2,
|
|
320
321
|
traverse
|
|
@@ -374,7 +375,7 @@ function generateDummyValueFromSBType(sbType, propName, options) {
|
|
|
374
375
|
case "string": {
|
|
375
376
|
let name = propName ?? "", tokens = tokenize(name);
|
|
376
377
|
if (hasAny(tokens, COLOR_TOKENS))
|
|
377
|
-
return "#
|
|
378
|
+
return "#007aff";
|
|
378
379
|
if (hasAny(tokens, DATE_TOKENS))
|
|
379
380
|
return (/* @__PURE__ */ new Date()).toLocaleDateString();
|
|
380
381
|
let mostLikelyType = getMostLikelyTypeFromTokens(tokens);
|
|
@@ -579,7 +580,7 @@ var VITEST_IMPORT_SOURCE = "vitest", TEST_UTILS_IMPORT_SOURCE = "@aussieljk/fork
|
|
|
579
580
|
fileName,
|
|
580
581
|
getComponentArgTypes
|
|
581
582
|
}) => {
|
|
582
|
-
let ast = babelParse(code), file =
|
|
583
|
+
let ast = babelParse(code), file = createBabelFile({ code, ast, filename: fileName }), components = collectComponentExports(ast.program, fileName);
|
|
583
584
|
if (!components.length)
|
|
584
585
|
return { code, map: null };
|
|
585
586
|
let vitestTestId = file.path.scope.generateUidIdentifier("test"), vitestExpectId = file.path.scope.generateUidIdentifier("expect"), testStoryId = file.path.scope.generateUidIdentifier("testStory"), convertToFilePathId = t2.identifier("convertToFilePath"), fnId = file.path.scope.generateUidIdentifier("fn");
|
|
@@ -726,6 +727,7 @@ export {
|
|
|
726
727
|
returnedExpression,
|
|
727
728
|
returnedExpressionPath,
|
|
728
729
|
sourceOf,
|
|
730
|
+
staticThumbnail,
|
|
729
731
|
templateParts,
|
|
730
732
|
unresolvedWarning,
|
|
731
733
|
unwrapExpression,
|
package/dist/docs-tools/index.js
CHANGED
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
shouldSkipStoryDocsEmit,
|
|
22
22
|
shouldWaitForServiceSnippet,
|
|
23
23
|
str
|
|
24
|
-
} from "../_browser-chunks/chunk-
|
|
24
|
+
} from "../_browser-chunks/chunk-3HM3VWJS.js";
|
|
25
25
|
import {
|
|
26
26
|
getServiceSubcomponentArgTypes,
|
|
27
27
|
mergeServiceArgTypes
|
|
28
|
-
} from "../_browser-chunks/chunk-
|
|
28
|
+
} from "../_browser-chunks/chunk-GRO2ZYEJ.js";
|
|
29
29
|
import "../_browser-chunks/chunk-2JDQ35OA.js";
|
|
30
30
|
import "../_browser-chunks/chunk-IE4ULIOQ.js";
|
|
31
31
|
import "../_browser-chunks/chunk-B4AUNNU4.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as HighlightMenuItem, r as HighlightOptions, t as ClickEventDetails } from "../chunk-
|
|
1
|
+
import { n as HighlightMenuItem, r as HighlightOptions, t as ClickEventDetails } from "../chunk-DDd8BhTY.js";
|
|
2
2
|
|
|
3
3
|
//#region .dts-emit/code/core/src/highlight/constants.d.ts
|
|
4
4
|
declare const HIGHLIGHT = "@aussieljk/forkbook/highlight/add";
|
|
@@ -5,6 +5,9 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
inspect
|
|
7
7
|
} from "../_browser-chunks/chunk-BCP2FFXF.js";
|
|
8
|
+
import {
|
|
9
|
+
global
|
|
10
|
+
} from "../_browser-chunks/chunk-6AKCRYVX.js";
|
|
8
11
|
import "../_browser-chunks/chunk-IMSF75WX.js";
|
|
9
12
|
|
|
10
13
|
// src/instrumenter/instrumenter.ts
|
|
@@ -14,7 +17,6 @@ import {
|
|
|
14
17
|
SET_CURRENT_STORY,
|
|
15
18
|
STORY_RENDER_PHASE_CHANGED
|
|
16
19
|
} from "@aussieljk/forkbook/internal/core-events";
|
|
17
|
-
import { global } from "@storybook/global";
|
|
18
20
|
|
|
19
21
|
// ../../node_modules/@vitest/pretty-format/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
|
|
20
22
|
var f = {
|
|
@@ -2205,7 +2207,7 @@ Inner error message: ${err?.message}`));
|
|
|
2205
2207
|
}
|
|
2206
2208
|
|
|
2207
2209
|
// src/instrumenter/preview-api.ts
|
|
2208
|
-
var addons = globalThis.
|
|
2210
|
+
var addons = globalThis.__FORKBOOK_ADDONS_PREVIEW;
|
|
2209
2211
|
|
|
2210
2212
|
// src/instrumenter/instrumenter.ts
|
|
2211
2213
|
var alreadyCompletedException = new Error(
|
|
@@ -2253,14 +2255,14 @@ var alreadyCompletedException = new Error(
|
|
|
2253
2255
|
this.state = {};
|
|
2254
2256
|
this.loadParentWindowState = () => {
|
|
2255
2257
|
try {
|
|
2256
|
-
this.state = global.window?.parent?.
|
|
2258
|
+
this.state = global.window?.parent?.__FORKBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {};
|
|
2257
2259
|
} catch {
|
|
2258
2260
|
this.detached = !0;
|
|
2259
2261
|
}
|
|
2260
2262
|
};
|
|
2261
2263
|
this.updateParentWindowState = () => {
|
|
2262
2264
|
try {
|
|
2263
|
-
global.window.parent.
|
|
2265
|
+
global.window.parent.__FORKBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ = this.state;
|
|
2264
2266
|
} catch {
|
|
2265
2267
|
this.detached = !0;
|
|
2266
2268
|
}
|
|
@@ -2421,7 +2423,7 @@ var alreadyCompletedException = new Error(
|
|
|
2421
2423
|
// Returns a function that invokes the original function, records the invocation ("call") and
|
|
2422
2424
|
// returns the original result.
|
|
2423
2425
|
track(method, fn, object, args, options) {
|
|
2424
|
-
let storyId = args?.[0]?.__storyId__ || global.
|
|
2426
|
+
let storyId = args?.[0]?.__storyId__ || global.__FORKBOOK_PREVIEW__?.selectionStore?.selection?.storyId, { cursor, ancestors } = this.getState(storyId);
|
|
2425
2427
|
this.setState(storyId, { cursor: cursor + 1 });
|
|
2426
2428
|
let id = `${ancestors.slice(-1)[0] || storyId} [${cursor}] ${method}`, { path = [], intercept = !1, retain = !1 } = options, interceptable = typeof intercept == "function" ? intercept(method, path) : intercept, call = { id, cursor, storyId, ancestors, path, method, args, interceptable, retain }, result = (interceptable && !ancestors.length ? this.intercept : this.invoke).call(this, fn, object, call, options);
|
|
2427
2429
|
return this.instrument(result, { ...options, mutate: !0, path: [{ __callId__: call.id }] });
|
|
@@ -2568,7 +2570,7 @@ var alreadyCompletedException = new Error(
|
|
|
2568
2570
|
function instrument(obj, options = {}) {
|
|
2569
2571
|
try {
|
|
2570
2572
|
let forceInstrument = !1, skipInstrument = !1;
|
|
2571
|
-
return global.window?.location?.search?.includes("instrument=true") ? forceInstrument = !0 : global.window?.location?.search?.includes("instrument=false") && (skipInstrument = !0), global.window?.parent === global.window && !forceInstrument || skipInstrument ? obj : (global.window && !global.window.
|
|
2573
|
+
return global.window?.location?.search?.includes("instrument=true") ? forceInstrument = !0 : global.window?.location?.search?.includes("instrument=false") && (skipInstrument = !0), global.window?.parent === global.window && !forceInstrument || skipInstrument ? obj : (global.window && !global.window.__FORKBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ && (global.window.__FORKBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ = new Instrumenter()), (global.window?.__FORKBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(obj, options));
|
|
2572
2574
|
} catch (e) {
|
|
2573
2575
|
return once.warn(e), obj;
|
|
2574
2576
|
}
|