@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
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { a as Theme$1, i as StyledComponent } from "../chunk-BxWufQms.js";
|
|
2
1
|
import { Args, StoryContext } from "@aussieljk/forkbook/internal/csf";
|
|
3
2
|
import { DependencyList, Dispatch, FC, PropsWithChildren, ReactElement, ReactNode, SetStateAction, SyntheticEvent } from "react";
|
|
4
3
|
import { API_IndexHash, API_PreparedStoryIndex, API_Provider, DocsOptions, StatusValue, StatusesByStoryIdAndTypeId, StoryIndexV2, StoryIndexV3 } from "@aussieljk/forkbook/internal/types";
|
|
@@ -22,10 +21,10 @@ interface ButtonProps extends TouchableOpacityProps {
|
|
|
22
21
|
}) => ReactElement;
|
|
23
22
|
}
|
|
24
23
|
declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<any>>;
|
|
25
|
-
declare const ButtonText: StyledComponent<Omit<import("react-native").TextProps, "ref"> & {
|
|
24
|
+
declare const ButtonText: import("@emotion/native").StyledComponent<Omit<import("react-native").TextProps, "ref"> & {
|
|
26
25
|
ref?: React.Ref<import("react-native").TextInstance> | undefined;
|
|
27
26
|
} & {
|
|
28
|
-
theme?: Theme
|
|
27
|
+
theme?: import("@emotion/react").Theme;
|
|
29
28
|
as?: React.ElementType;
|
|
30
29
|
} & {
|
|
31
30
|
variant: ButtonProps['variant'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as
|
|
1
|
+
import { n as FrameworkOptions, t as ForkbookConfig } from "../chunk-Dw_4ad2Y.js";
|
|
2
2
|
import { __definePreview as definePreview } from "@aussieljk/forkbook/react";
|
|
3
3
|
export * from "@aussieljk/forkbook/react";
|
|
4
|
-
export {
|
|
4
|
+
export { ForkbookConfig, FrameworkOptions, definePreview };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as ForkbookConfig } from "../../chunk-Dw_4ad2Y.js";
|
|
2
2
|
|
|
3
3
|
//#region .dts-emit/code/core/src/react-vite/node/index.d.ts
|
|
4
|
-
declare function defineMain(config:
|
|
4
|
+
declare function defineMain(config: ForkbookConfig): ForkbookConfig;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { type
|
|
6
|
+
export { type ForkbookConfig, defineMain };
|
|
@@ -1,15 +1,15 @@
|
|
|
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
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "../../_node-chunks/chunk-
|
|
12
|
+
import "../../_node-chunks/chunk-WBCKO5LP.js";
|
|
13
13
|
|
|
14
14
|
// src/react-vite/node/index.ts
|
|
15
15
|
function defineMain(config) {
|
|
@@ -1,15 +1,15 @@
|
|
|
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
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "../_node-chunks/chunk-
|
|
12
|
+
import "../_node-chunks/chunk-WBCKO5LP.js";
|
|
13
13
|
|
|
14
14
|
// src/react-vite/preset.ts
|
|
15
15
|
var core = {
|
package/dist/router/index.d.ts
CHANGED
|
@@ -100,6 +100,16 @@ interface RoutePropsDefault {
|
|
|
100
100
|
startsWith?: false;
|
|
101
101
|
children: ReactNode;
|
|
102
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* The path where Forkbook is hosted, without a trailing slash (`''` at the root). The page sets a
|
|
105
|
+
* `<base>` element when it is opened at a deep path, so `document.baseURI` is the Forkbook root.
|
|
106
|
+
*/
|
|
107
|
+
declare const getBasename: () => string;
|
|
108
|
+
/**
|
|
109
|
+
* Changes an internal navigation target (`/story/<id>&args=a:1#hash`) to a URL relative to the
|
|
110
|
+
* Forkbook root (`/example/button/primary?args=a:1#hash`).
|
|
111
|
+
*/
|
|
112
|
+
declare const toRouterUrl: (target: string) => string;
|
|
103
113
|
declare const useNavigate: () => (to: To | number, {
|
|
104
114
|
plain,
|
|
105
115
|
...options
|
|
@@ -138,4 +148,62 @@ declare const LocationProvider: typeof BrowserRouter;
|
|
|
138
148
|
declare const BaseLocationProvider: typeof Router;
|
|
139
149
|
declare const MemoryRouter: typeof MemoryRouter$1;
|
|
140
150
|
//#endregion
|
|
141
|
-
|
|
151
|
+
//#region .dts-emit/code/core/src/router/story-paths.d.ts
|
|
152
|
+
interface StoryPathEntry {
|
|
153
|
+
id: string;
|
|
154
|
+
title: string;
|
|
155
|
+
name: string;
|
|
156
|
+
type: string;
|
|
157
|
+
}
|
|
158
|
+
type ViewMode = 'story' | 'docs';
|
|
159
|
+
/** The internal path of the start page. */
|
|
160
|
+
declare const HOME_PATH = "/home/";
|
|
161
|
+
/** The internal path of the page that shows all stories. */
|
|
162
|
+
declare const ALL_STORIES_PATH = "/all/";
|
|
163
|
+
/** URL paths that no story can have. */
|
|
164
|
+
declare const RESERVED_URL_PATHS: string[];
|
|
165
|
+
/** True when no story can use this URL path. */
|
|
166
|
+
declare const isReservedUrlPath: (urlPath: string) => boolean;
|
|
167
|
+
/**
|
|
168
|
+
* The tree URL path of an index entry, or `undefined` when the entry cannot have one (the path is
|
|
169
|
+
* reserved, or it has fewer than two segments).
|
|
170
|
+
*/
|
|
171
|
+
declare const entryUrlPath: (entry: Pick<StoryPathEntry, 'title' | 'name'>) => string | undefined;
|
|
172
|
+
interface StoryPathMap {
|
|
173
|
+
byId: Map<string, string>;
|
|
174
|
+
byUrl: Map<string, {
|
|
175
|
+
id: string;
|
|
176
|
+
viewMode: ViewMode;
|
|
177
|
+
}>;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Makes the URL paths for all entries. When two entries get the same URL path, the first entry
|
|
181
|
+
* keeps it and the second entry uses `/_story/<id>`.
|
|
182
|
+
*/
|
|
183
|
+
declare const buildStoryPathMap: (entries: Iterable<StoryPathEntry>) => StoryPathMap;
|
|
184
|
+
/** Sets the index entries that the URL helpers use. The manager calls this when the index loads. */
|
|
185
|
+
declare const setStoryPathEntries: (entries: Iterable<StoryPathEntry>) => void;
|
|
186
|
+
/**
|
|
187
|
+
* Changes an internal manager path to a URL path.
|
|
188
|
+
*
|
|
189
|
+
* - `/story/example-button--primary` gives `/example/button/primary`.
|
|
190
|
+
* - `/docs/example-button--docs` gives `/example/button/docs`.
|
|
191
|
+
* - `/settings/about` gives `/settings/about`.
|
|
192
|
+
*/
|
|
193
|
+
declare const toUrlPath: (internalPath: string | undefined, map?: StoryPathMap) => string;
|
|
194
|
+
/**
|
|
195
|
+
* Changes a URL path to an internal manager path. This is the opposite of {@link toUrlPath}.
|
|
196
|
+
*
|
|
197
|
+
* When the index has not loaded, the path segments give the story ID: `/example/button/primary`
|
|
198
|
+
* gives `example-button--primary`. A last segment of `docs` gives the docs view.
|
|
199
|
+
*/
|
|
200
|
+
declare const fromUrlPath: (urlPath: string | undefined, map?: StoryPathMap) => string;
|
|
201
|
+
/**
|
|
202
|
+
* Builds a manager href from a base (for example `/` or `https://host/sb/`), an internal path and a
|
|
203
|
+
* query string without the leading `?`.
|
|
204
|
+
*/
|
|
205
|
+
declare const buildManagerHref: (base: string, internalPath: string, query?: string) => string;
|
|
206
|
+
/** Number of path segments in a URL path. A page at this path uses it to find its base path. */
|
|
207
|
+
declare const urlPathDepth: (urlPath: string) => number;
|
|
208
|
+
//#endregion
|
|
209
|
+
export { ALL_STORIES_PATH, BaseLocationProvider, DEEPLY_EQUAL, HOME_PATH, Link, LinkProps, Location, LocationProvider, Match, MemoryRouter, NavigateFunction, NavigateOptions, Other, RESERVED_URL_PATHS, RenderData, Route, RouterData, StoryData, StoryPathEntry, buildArgsParam, buildManagerHref, buildStoryPathMap, deepDiff, entryUrlPath, fromUrlPath, getBasename, getMatch, isReservedUrlPath, parsePath, queryFromLocation, setStoryPathEntries, stringifyQuery, toRouterUrl, toUrlPath, urlPathDepth, useNavigate };
|
package/dist/router/index.js
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ALL_STORIES_PATH,
|
|
3
|
+
HOME_PATH,
|
|
4
|
+
RESERVED_URL_PATHS,
|
|
5
|
+
buildManagerHref,
|
|
6
|
+
buildStoryPathMap,
|
|
7
|
+
entryUrlPath,
|
|
8
|
+
fromUrlPath,
|
|
9
|
+
isReservedUrlPath,
|
|
10
|
+
setStoryPathEntries,
|
|
11
|
+
toUrlPath,
|
|
12
|
+
urlPathDepth
|
|
13
|
+
} from "../_browser-chunks/chunk-C5TKXHTM.js";
|
|
1
14
|
import {
|
|
2
15
|
isReviewSummaryPath
|
|
3
16
|
} from "../_browser-chunks/chunk-YI2IBIQS.js";
|
|
17
|
+
import "../_browser-chunks/chunk-NULBREPZ.js";
|
|
4
18
|
import {
|
|
5
19
|
parse,
|
|
6
20
|
stringify
|
|
@@ -16,6 +30,9 @@ import {
|
|
|
16
30
|
isPlainObject
|
|
17
31
|
} from "../_browser-chunks/chunk-JWSKPMPC.js";
|
|
18
32
|
import "../_browser-chunks/chunk-JPUOQJUI.js";
|
|
33
|
+
import {
|
|
34
|
+
global
|
|
35
|
+
} from "../_browser-chunks/chunk-6AKCRYVX.js";
|
|
19
36
|
import {
|
|
20
37
|
__toESM
|
|
21
38
|
} from "../_browser-chunks/chunk-IMSF75WX.js";
|
|
@@ -79,7 +96,7 @@ var splitPathRegex = /\/([^/]+)\/(?:(.*)_)?([^/]+)?/, parsePath = (0, import_mem
|
|
|
79
96
|
let object = Object.entries(update).reduce((acc, [key, value]) => validateArgs(key, value) ? Object.assign(acc, { [key]: value }) : (once.warn(dedent`
|
|
80
97
|
Omitted potentially unsafe URL args.
|
|
81
98
|
|
|
82
|
-
More info: https://
|
|
99
|
+
More info: https://forkbook.ljk.dev/docs/writing-stories/args#setting-args-through-the-url
|
|
83
100
|
`), acc), {});
|
|
84
101
|
return stringify(encodeSpecialValues(object), {
|
|
85
102
|
delimiter: ";",
|
|
@@ -102,8 +119,7 @@ var splitPathRegex = /\/([^/]+)\/(?:(.*)_)?([^/]+)?/, parsePath = (0, import_mem
|
|
|
102
119
|
});
|
|
103
120
|
|
|
104
121
|
// src/router/router.tsx
|
|
105
|
-
import { useCallback as useCallback3 } from "react";
|
|
106
|
-
import { global } from "@storybook/global";
|
|
122
|
+
import { useCallback as useCallback3, useEffect as useEffect3 } from "react";
|
|
107
123
|
|
|
108
124
|
// ../../node_modules/react-router-dom/dist/index.js
|
|
109
125
|
import * as React2 from "react";
|
|
@@ -1151,14 +1167,23 @@ function usePageHide(callback, options) {
|
|
|
1151
1167
|
import { NAVIGATE_URL } from "@aussieljk/forkbook/internal/core-events";
|
|
1152
1168
|
import { addons } from "@aussieljk/forkbook/manager-api";
|
|
1153
1169
|
import { Fragment as Fragment2, jsx } from "react/jsx-runtime";
|
|
1154
|
-
var { document: document2 } = global,
|
|
1170
|
+
var { document: document2 } = global, getBasename = () => {
|
|
1171
|
+
try {
|
|
1172
|
+
return new URL(".", document2.baseURI).pathname.replace(/\/+$/, "");
|
|
1173
|
+
} catch {
|
|
1174
|
+
return "";
|
|
1175
|
+
}
|
|
1176
|
+
}, toRouterUrl = (target) => {
|
|
1177
|
+
let [beforeHash, afterHash] = target.split(/#(.*)/s), [path, ...queryParts] = beforeHash.split("&"), [hash, ...hashQueryParts] = afterHash === void 0 ? [] : afterHash.split("&"), query = [...queryParts, ...hashQueryParts].join("&");
|
|
1178
|
+
return `${toUrlPath(path || "/")}${query ? `?${query}` : ""}${hash ? `#${hash}` : ""}`;
|
|
1179
|
+
}, useNavigate2 = () => {
|
|
1155
1180
|
let navigate = useNavigate();
|
|
1156
1181
|
return useCallback3((to, { plain, ...options } = {}) => {
|
|
1157
1182
|
if (typeof to == "string" && to.startsWith("#"))
|
|
1158
1183
|
return navigate(`${document2.location.search}${to === "#" ? "" : to}`, options);
|
|
1159
1184
|
if (typeof to == "string") {
|
|
1160
|
-
let target = plain ? to :
|
|
1161
|
-
if (
|
|
1185
|
+
let target = plain ? to : toRouterUrl(to), [url, hash] = target.split("#"), current = `${document2.location.pathname}${document2.location.search}`;
|
|
1186
|
+
if ((plain ? url === document2.location.search : `${getBasename()}${url}` === current) && hash) {
|
|
1162
1187
|
addons.getChannel().emit(NAVIGATE_URL, `#${hash}`);
|
|
1163
1188
|
return;
|
|
1164
1189
|
}
|
|
@@ -1167,11 +1192,15 @@ var { document: document2 } = global, getBase = () => `${document2.location.path
|
|
|
1167
1192
|
if (typeof to == "number")
|
|
1168
1193
|
return navigate(to);
|
|
1169
1194
|
}, []);
|
|
1170
|
-
}, Link2 = ({ to, children, ...rest }) => jsx(Link, { to:
|
|
1195
|
+
}, Link2 = ({ to, children, ...rest }) => jsx(Link, { to: toRouterUrl(to), ...rest, children });
|
|
1171
1196
|
Link2.displayName = "QueryLink";
|
|
1172
1197
|
var Location = ({ children }) => {
|
|
1173
|
-
let location = useLocation(), { path
|
|
1174
|
-
return
|
|
1198
|
+
let location = useLocation(), navigate = useNavigate(), { path: legacyPath, singleStory, ...otherQuery } = queryFromLocation(location), path = legacyPath || fromUrlPath(location.pathname), { viewMode, storyId, refId } = parsePath(path);
|
|
1199
|
+
return useEffect3(() => {
|
|
1200
|
+
legacyPath && navigate(`${toUrlPath(legacyPath)}${stringifyQuery(otherQuery)}${location.hash}`, {
|
|
1201
|
+
replace: !0
|
|
1202
|
+
});
|
|
1203
|
+
}, [legacyPath]), jsx(Fragment2, { children: children({
|
|
1175
1204
|
path: path || "/",
|
|
1176
1205
|
location,
|
|
1177
1206
|
viewMode,
|
|
@@ -1197,21 +1226,34 @@ function Route2(input) {
|
|
|
1197
1226
|
return rest.startsWith === void 0 && (rest.startsWith = !1), jsx(Match, { ...rest, children: ({ match }) => match ? children : null });
|
|
1198
1227
|
}
|
|
1199
1228
|
Route2.displayName = "Route";
|
|
1200
|
-
var LocationProvider = (
|
|
1229
|
+
var LocationProvider = (props) => BrowserRouter({ basename: getBasename() || void 0, ...props }), BaseLocationProvider = (...args) => Router(...args), MemoryRouter2 = (...args) => MemoryRouter(...args);
|
|
1201
1230
|
export {
|
|
1231
|
+
ALL_STORIES_PATH,
|
|
1202
1232
|
BaseLocationProvider,
|
|
1203
1233
|
DEEPLY_EQUAL,
|
|
1234
|
+
HOME_PATH,
|
|
1204
1235
|
Link2 as Link,
|
|
1205
1236
|
Location,
|
|
1206
1237
|
LocationProvider,
|
|
1207
1238
|
Match,
|
|
1208
1239
|
MemoryRouter2 as MemoryRouter,
|
|
1240
|
+
RESERVED_URL_PATHS,
|
|
1209
1241
|
Route2 as Route,
|
|
1210
1242
|
buildArgsParam,
|
|
1243
|
+
buildManagerHref,
|
|
1244
|
+
buildStoryPathMap,
|
|
1211
1245
|
deepDiff,
|
|
1246
|
+
entryUrlPath,
|
|
1247
|
+
fromUrlPath,
|
|
1248
|
+
getBasename,
|
|
1212
1249
|
getMatch,
|
|
1250
|
+
isReservedUrlPath,
|
|
1213
1251
|
parsePath,
|
|
1214
1252
|
queryFromLocation,
|
|
1253
|
+
setStoryPathEntries,
|
|
1215
1254
|
stringifyQuery,
|
|
1255
|
+
toRouterUrl,
|
|
1256
|
+
toUrlPath,
|
|
1257
|
+
urlPathDepth,
|
|
1216
1258
|
useNavigate2 as useNavigate
|
|
1217
1259
|
};
|
package/dist/server-errors.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as PackageInstallDependencyConflictError, A as OpenServiceDocgenMissingComponentError, B as OpenServiceMissingServiceError, C as NoFreePortError, D as OpenServiceAsyncRecipeError, E as NxProjectDetectedError, F as OpenServiceInvalidStaticPathError, G as OpenServiceRemoteCommandDisconnectedError, H as OpenServiceModuleGraphUnavailableError, I as OpenServiceInvalidToolsetMethodIdError, J as OpenServiceTestRunTimeoutError, K as OpenServiceRemoteCommandUnhandledError, L as OpenServiceLoadedDrainExceededError, M as OpenServiceDuplicateToolNameError, N as OpenServiceDuplicateToolsetError, O as OpenServiceAsyncSchemaError, P as OpenServiceInternalServiceError, Q as OpenServiceValidationError, R as OpenServiceMissingChannelError, S as MissingFrameworkFieldError, T as NoStatsForViteDevError, U as OpenServiceOperationNameCollisionError, V as OpenServiceMissingToolsetError, W as OpenServiceRemoteCommandConfigDriftError, X as OpenServiceUnimplementedOperationError, Y as OpenServiceToolsetOutputMismatchError, Z as OpenServiceUnknownStoryIdsError, _ as InvalidStoriesEntryError, a as Category, at as PnpmNoTtyModulesDirError, b as MinimumReleaseAgeHandledError, c as CriticalPresetLoadError, ct as StorybookDevServerDisconnectedError, d as FindPackageVersionsError, dt as formatExecaCommand, et as PackageInstallFailedError, f as GenerateNewProjectOnInitError, ft as formatExecaFailureDetails, g as InvalidFrameworkNameError, h as IncompatiblePostCssConfigError, i as AddonVitestPostinstallWorkspaceUpdateError, it as PnpmIgnoredBuildsError, j as OpenServiceDuplicateRegistrationError, k as OpenServiceCyclicStateError, l as ExecaCommandErrorData, lt as ViteModuleGraphSubscriptionError, m as GoogleFontsLoadingError, n as AddonVitestPostinstallError, nt as PackageManagerBinaryNotFoundError, o as ConflictingStaticDirConfigError, ot as SavingGlobalSettingsFileError, p as GoogleFontsDownloadError, pt as StorybookError, q as OpenServiceServicesAppliedTwiceError, r as AddonVitestPostinstallPrerequisiteCheckError, rt as PlaywrightInstallFailedError, s as CouldNotEvaluateFrameworkError, st as StatusTypeIdMismatchError, t as AddonVitestPostinstallConfigUpdateError, tt as PackageInstallMissingManifestError, u as ExecaCommandFailedError, ut as describeUnknownStoryIds, v as MainFileEvaluationError, w as NoMatchingExportError, x as MissingBuilderError, y as MainFileMissingError, z as OpenServiceMissingOriginError } from "./chunk-
|
|
1
|
+
import { $ as PackageInstallDependencyConflictError, A as OpenServiceDocgenMissingComponentError, B as OpenServiceMissingServiceError, C as NoFreePortError, D as OpenServiceAsyncRecipeError, E as NxProjectDetectedError, F as OpenServiceInvalidStaticPathError, G as OpenServiceRemoteCommandDisconnectedError, H as OpenServiceModuleGraphUnavailableError, I as OpenServiceInvalidToolsetMethodIdError, J as OpenServiceTestRunTimeoutError, K as OpenServiceRemoteCommandUnhandledError, L as OpenServiceLoadedDrainExceededError, M as OpenServiceDuplicateToolNameError, N as OpenServiceDuplicateToolsetError, O as OpenServiceAsyncSchemaError, P as OpenServiceInternalServiceError, Q as OpenServiceValidationError, R as OpenServiceMissingChannelError, S as MissingFrameworkFieldError, T as NoStatsForViteDevError, U as OpenServiceOperationNameCollisionError, V as OpenServiceMissingToolsetError, W as OpenServiceRemoteCommandConfigDriftError, X as OpenServiceUnimplementedOperationError, Y as OpenServiceToolsetOutputMismatchError, Z as OpenServiceUnknownStoryIdsError, _ as InvalidStoriesEntryError, a as Category, at as PnpmNoTtyModulesDirError, b as MinimumReleaseAgeHandledError, c as CriticalPresetLoadError, ct as StorybookDevServerDisconnectedError, d as FindPackageVersionsError, dt as formatExecaCommand, et as PackageInstallFailedError, f as GenerateNewProjectOnInitError, ft as formatExecaFailureDetails, g as InvalidFrameworkNameError, h as IncompatiblePostCssConfigError, i as AddonVitestPostinstallWorkspaceUpdateError, it as PnpmIgnoredBuildsError, j as OpenServiceDuplicateRegistrationError, k as OpenServiceCyclicStateError, l as ExecaCommandErrorData, lt as ViteModuleGraphSubscriptionError, m as GoogleFontsLoadingError, n as AddonVitestPostinstallError, nt as PackageManagerBinaryNotFoundError, o as ConflictingStaticDirConfigError, ot as SavingGlobalSettingsFileError, p as GoogleFontsDownloadError, pt as StorybookError, q as OpenServiceServicesAppliedTwiceError, r as AddonVitestPostinstallPrerequisiteCheckError, rt as PlaywrightInstallFailedError, s as CouldNotEvaluateFrameworkError, st as StatusTypeIdMismatchError, t as AddonVitestPostinstallConfigUpdateError, tt as PackageInstallMissingManifestError, u as ExecaCommandFailedError, ut as describeUnknownStoryIds, v as MainFileEvaluationError, w as NoMatchingExportError, x as MissingBuilderError, y as MainFileMissingError, z as OpenServiceMissingOriginError } from "./chunk-Fg1Fm__9.js";
|
|
2
2
|
export { AddonVitestPostinstallConfigUpdateError, AddonVitestPostinstallError, AddonVitestPostinstallPrerequisiteCheckError, AddonVitestPostinstallWorkspaceUpdateError, Category, ConflictingStaticDirConfigError, CouldNotEvaluateFrameworkError, CriticalPresetLoadError, ExecaCommandErrorData, ExecaCommandFailedError, FindPackageVersionsError, GenerateNewProjectOnInitError, GoogleFontsDownloadError, GoogleFontsLoadingError, IncompatiblePostCssConfigError, InvalidFrameworkNameError, InvalidStoriesEntryError, MainFileEvaluationError, MainFileMissingError, MinimumReleaseAgeHandledError, MissingBuilderError, MissingFrameworkFieldError, NoFreePortError, NoMatchingExportError, NoStatsForViteDevError, NxProjectDetectedError, OpenServiceAsyncRecipeError, OpenServiceAsyncSchemaError, OpenServiceCyclicStateError, OpenServiceDocgenMissingComponentError, OpenServiceDuplicateRegistrationError, OpenServiceDuplicateToolNameError, OpenServiceDuplicateToolsetError, OpenServiceInternalServiceError, OpenServiceInvalidStaticPathError, OpenServiceInvalidToolsetMethodIdError, OpenServiceLoadedDrainExceededError, OpenServiceMissingChannelError, OpenServiceMissingOriginError, OpenServiceMissingServiceError, OpenServiceMissingToolsetError, OpenServiceModuleGraphUnavailableError, OpenServiceOperationNameCollisionError, OpenServiceRemoteCommandConfigDriftError, OpenServiceRemoteCommandDisconnectedError, OpenServiceRemoteCommandUnhandledError, OpenServiceServicesAppliedTwiceError, OpenServiceTestRunTimeoutError, OpenServiceToolsetOutputMismatchError, OpenServiceUnimplementedOperationError, OpenServiceUnknownStoryIdsError, OpenServiceValidationError, PackageInstallDependencyConflictError, PackageInstallFailedError, PackageInstallMissingManifestError, PackageManagerBinaryNotFoundError, PlaywrightInstallFailedError, PnpmIgnoredBuildsError, PnpmNoTtyModulesDirError, SavingGlobalSettingsFileError, StatusTypeIdMismatchError, StorybookDevServerDisconnectedError, StorybookError, ViteModuleGraphSubscriptionError, describeUnknownStoryIds, formatExecaCommand, formatExecaFailureDetails };
|
package/dist/server-errors.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
|
|
@@ -76,9 +76,9 @@ import {
|
|
|
76
76
|
describeUnknownStoryIds,
|
|
77
77
|
formatExecaCommand,
|
|
78
78
|
formatExecaFailureDetails
|
|
79
|
-
} from "./_node-chunks/chunk-
|
|
80
|
-
import "./_node-chunks/chunk-
|
|
81
|
-
import "./_node-chunks/chunk-
|
|
79
|
+
} from "./_node-chunks/chunk-32FLWHUC.js";
|
|
80
|
+
import "./_node-chunks/chunk-FEC5PGJO.js";
|
|
81
|
+
import "./_node-chunks/chunk-WBCKO5LP.js";
|
|
82
82
|
export {
|
|
83
83
|
AddonVitestPostinstallConfigUpdateError,
|
|
84
84
|
AddonVitestPostinstallError,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { B as ServerServiceRegistration, E as LoadStatus, F as QuerySelf, G as ServiceInstanceOf, H as ServiceDescriptor, I as QueryState, J as ServiceState, K as ServiceRegistrationOptions, L as QueryStatus, M as QueryCtx, N as QueryDefinition, O as OperationDescriptor, P as QueryFunctions, R as RuntimeService, T as LoadSelf, U as ServiceId, V as ServiceDefinition, W as ServiceInstance, X as StaticStore, Y as ServiceSummary, _ as AnyServiceDefinition, a as ToolsetDefinition, b as CommandDefinition, c as ToolsetMethodDescription, d as ToolsetOutcome, f as ToolsetTelemetryReport, g as resolveToolsetDescription, h as invokeToolsetMethod, i as ToolsetCtx, j as Query, l as ToolsetMethodReport, m as defineToolset, n as AnyToolsetOutcome, o as ToolsetGetService, p as ToolsetTransport, q as ServiceRegistryApi, r as InvokedToolsetOutcome, s as ToolsetMethod, t as AnyToolsetDefinition, u as ToolsetObjectOutputSchema, v as Command, w as LoadCtx, x as CommandSelf, y as CommandCtx, z as SchemaDescriptor } from "../../chunk-BCoJQE-f.js";
|
|
2
|
-
import { Cc as
|
|
2
|
+
import { As as DocgenService, Cc as parseToolsetMethodId, Ec as defineService, I as OpenServiceInvalidToolsetMethodIdError, M as OpenServiceDuplicateToolNameError, N as OpenServiceDuplicateToolsetError, Ps as DocgenPayload, Sc as getToolName, Tc as seedQueryState, V as OpenServiceMissingToolsetError, cc as getRegisteredToolsets, dc as KnownToolsets, fo as prependImportToSnippet, go as StoryDocsService, ho as selectWarningForStory, lc as getToolset, mo as selectStoryDoc, po as selectSnippetForStory, sc as clearToolsetRegistry, uc as registerToolset, wc as toMcpToolName, xc as ToolsetMethodId } from "../../chunk-Fg1Fm__9.js";
|
|
3
3
|
export { type AnyServiceDefinition, type AnyToolsetDefinition, type AnyToolsetOutcome, type Command, type CommandCtx, type CommandDefinition, type CommandSelf, type DocgenPayload, type DocgenService, type InvokedToolsetOutcome, type KnownToolsets, type LoadCtx, type LoadSelf, type LoadStatus, OpenServiceDuplicateToolNameError, OpenServiceDuplicateToolsetError, OpenServiceInvalidToolsetMethodIdError, OpenServiceMissingToolsetError, type OperationDescriptor, type Query, type QueryCtx, type QueryDefinition, type QueryFunctions, type QuerySelf, type QueryState, type QueryStatus, type RuntimeService, type SchemaDescriptor, type ServerServiceRegistration, type ServiceDefinition, type ServiceDescriptor, type ServiceId, type ServiceInstance, type ServiceInstanceOf, type ServiceRegistrationOptions, type ServiceRegistryApi, type ServiceState, type ServiceSummary, type StaticStore, type StoryDocsService, type ToolsetCtx, type ToolsetDefinition, type ToolsetGetService, type ToolsetMethod, type ToolsetMethodDescription, type ToolsetMethodId, type ToolsetMethodReport, type ToolsetObjectOutputSchema, type ToolsetOutcome, type ToolsetTelemetryReport, type ToolsetTransport, clearToolsetRegistry, defineService, defineToolset, getRegisteredToolsets, getToolName, getToolset, invokeToolsetMethod, parseToolsetMethodId, prependImportToSnippet, registerToolset, resolveToolsetDescription, seedQueryState, selectSnippetForStory, selectStoryDoc, selectWarningForStory, toMcpToolName };
|
|
@@ -26,9 +26,9 @@ import {
|
|
|
26
26
|
OpenServiceDuplicateToolsetError,
|
|
27
27
|
OpenServiceInvalidToolsetMethodIdError,
|
|
28
28
|
OpenServiceMissingToolsetError
|
|
29
|
-
} from "../../_browser-chunks/chunk-
|
|
29
|
+
} from "../../_browser-chunks/chunk-76222HQR.js";
|
|
30
30
|
import "../../_browser-chunks/chunk-IE4ULIOQ.js";
|
|
31
|
-
import "../../_browser-chunks/chunk-
|
|
31
|
+
import "../../_browser-chunks/chunk-MJIDTL3X.js";
|
|
32
32
|
import "../../_browser-chunks/chunk-SC67XZST.js";
|
|
33
33
|
import "../../_browser-chunks/chunk-IMSF75WX.js";
|
|
34
34
|
|
|
@@ -1,19 +1,19 @@
|
|
|
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
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
errorToErrorLike
|
|
14
|
-
} from "../../../../../_node-chunks/chunk-
|
|
15
|
-
import "../../../../../_node-chunks/chunk-
|
|
16
|
-
import "../../../../../_node-chunks/chunk-
|
|
14
|
+
} from "../../../../../_node-chunks/chunk-ER3X3AQ7.js";
|
|
15
|
+
import "../../../../../_node-chunks/chunk-ALGQMFMN.js";
|
|
16
|
+
import "../../../../../_node-chunks/chunk-WBCKO5LP.js";
|
|
17
17
|
|
|
18
18
|
// src/shared/open-service/services/docgen/worker/docgen-worker.ts
|
|
19
19
|
import { parentPort } from "node:worker_threads";
|
|
@@ -204,7 +204,7 @@ declare function toMcpToolName(method: ToolsetMethodId): string;
|
|
|
204
204
|
/**
|
|
205
205
|
* Renders how a toolset method is spelled for the active transport.
|
|
206
206
|
*
|
|
207
|
-
* Not a composed-
|
|
207
|
+
* Not a composed-Forkbook "ref" (`refs` in `main.js`) — the name is the invokable tool/command
|
|
208
208
|
* string agents see. Descriptions that tell an agent to call another tool must use this rather
|
|
209
209
|
* than hardcoding either spelling.
|
|
210
210
|
*/
|
|
@@ -1028,58 +1028,58 @@ type ConditionalValue = {
|
|
|
1028
1028
|
type Conditional = ConditionalValue & ConditionalTest;
|
|
1029
1029
|
interface ControlBase {
|
|
1030
1030
|
[key: string]: any;
|
|
1031
|
-
/** @see https://
|
|
1031
|
+
/** @see https://forkbook.ljk.dev/docs/api/arg-types#controltype */
|
|
1032
1032
|
type?: ControlType;
|
|
1033
1033
|
disable?: boolean;
|
|
1034
1034
|
}
|
|
1035
1035
|
type Control = ControlType | false | (ControlBase & (ControlBase | {
|
|
1036
|
-
type: 'color'; /** @see https://
|
|
1036
|
+
type: 'color'; /** @see https://forkbook.ljk.dev/docs/api/arg-types#controlpresetcolors */
|
|
1037
1037
|
presetColors?: string[];
|
|
1038
1038
|
} | {
|
|
1039
|
-
type: 'file'; /** @see https://
|
|
1039
|
+
type: 'file'; /** @see https://forkbook.ljk.dev/docs/api/arg-types#controlaccept */
|
|
1040
1040
|
accept?: string;
|
|
1041
1041
|
} | {
|
|
1042
|
-
type: 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select'; /** @see https://
|
|
1042
|
+
type: 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select'; /** @see https://forkbook.ljk.dev/docs/api/arg-types#controllabels */
|
|
1043
1043
|
labels?: {
|
|
1044
1044
|
[options: string]: string;
|
|
1045
1045
|
};
|
|
1046
1046
|
} | {
|
|
1047
|
-
type: 'number' | 'range'; /** @see https://
|
|
1048
|
-
max?: number; /** @see https://
|
|
1049
|
-
min?: number; /** @see https://
|
|
1047
|
+
type: 'number' | 'range'; /** @see https://forkbook.ljk.dev/docs/api/arg-types#controlmax */
|
|
1048
|
+
max?: number; /** @see https://forkbook.ljk.dev/docs/api/arg-types#controlmin */
|
|
1049
|
+
min?: number; /** @see https://forkbook.ljk.dev/docs/api/arg-types#controlstep */
|
|
1050
1050
|
step?: number;
|
|
1051
1051
|
}));
|
|
1052
1052
|
interface InputType {
|
|
1053
|
-
/** @see https://
|
|
1053
|
+
/** @see https://forkbook.ljk.dev/docs/api/arg-types#control */
|
|
1054
1054
|
control?: Control;
|
|
1055
|
-
/** @see https://
|
|
1055
|
+
/** @see https://forkbook.ljk.dev/docs/api/arg-types#description */
|
|
1056
1056
|
description?: string;
|
|
1057
|
-
/** @see https://
|
|
1057
|
+
/** @see https://forkbook.ljk.dev/docs/api/arg-types#if */
|
|
1058
1058
|
if?: Conditional;
|
|
1059
|
-
/** @see https://
|
|
1059
|
+
/** @see https://forkbook.ljk.dev/docs/api/arg-types#mapping */
|
|
1060
1060
|
mapping?: {
|
|
1061
1061
|
[key: string]: any;
|
|
1062
1062
|
};
|
|
1063
|
-
/** @see https://
|
|
1063
|
+
/** @see https://forkbook.ljk.dev/docs/api/arg-types#name */
|
|
1064
1064
|
name?: string;
|
|
1065
|
-
/** @see https://
|
|
1065
|
+
/** @see https://forkbook.ljk.dev/docs/api/arg-types#options */
|
|
1066
1066
|
options?: readonly any[];
|
|
1067
|
-
/** @see https://
|
|
1067
|
+
/** @see https://forkbook.ljk.dev/docs/api/arg-types#table */
|
|
1068
1068
|
table?: {
|
|
1069
|
-
[key: string]: unknown; /** @see https://
|
|
1070
|
-
category?: string; /** @see https://
|
|
1069
|
+
[key: string]: unknown; /** @see https://forkbook.ljk.dev/docs/api/arg-types#tablecategory */
|
|
1070
|
+
category?: string; /** @see https://forkbook.ljk.dev/docs/api/arg-types#tabledefaultvalue */
|
|
1071
1071
|
defaultValue?: {
|
|
1072
1072
|
summary?: string | undefined;
|
|
1073
1073
|
detail?: string | undefined;
|
|
1074
|
-
}; /** @see https://
|
|
1075
|
-
disable?: boolean; /** @see https://
|
|
1076
|
-
subcategory?: string; /** @see https://
|
|
1074
|
+
}; /** @see https://forkbook.ljk.dev/docs/api/arg-types#tabledisable */
|
|
1075
|
+
disable?: boolean; /** @see https://forkbook.ljk.dev/docs/api/arg-types#tablesubcategory */
|
|
1076
|
+
subcategory?: string; /** @see https://forkbook.ljk.dev/docs/api/arg-types#tabletype */
|
|
1077
1077
|
type?: {
|
|
1078
1078
|
summary?: string | undefined;
|
|
1079
1079
|
detail?: string | undefined;
|
|
1080
1080
|
};
|
|
1081
1081
|
};
|
|
1082
|
-
/** @see https://
|
|
1082
|
+
/** @see https://forkbook.ljk.dev/docs/api/arg-types#type */
|
|
1083
1083
|
type?: SBType | SBScalarType['name'];
|
|
1084
1084
|
/**
|
|
1085
1085
|
* Removed. Set the story value with `args`, or the docs-table text with `table.defaultValue`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IndexEntry, PackageJson,
|
|
1
|
+
import { ForkbookConfig, IndexEntry, PackageJson, TypescriptOptions } from "@aussieljk/forkbook/internal/types";
|
|
2
2
|
import { BinaryLike } from "crypto";
|
|
3
3
|
import { Attributes } from "@opentelemetry/api";
|
|
4
4
|
|
|
@@ -126,7 +126,7 @@ type StorybookMetadata = {
|
|
|
126
126
|
* built-in `ModuleFederationPlugin` directly without one of these packages.
|
|
127
127
|
*/
|
|
128
128
|
hasModuleFederation?: boolean;
|
|
129
|
-
features?:
|
|
129
|
+
features?: ForkbookConfig['features'];
|
|
130
130
|
refCount?: number;
|
|
131
131
|
preview?: {
|
|
132
132
|
usesGlobals?: boolean;
|
|
@@ -193,7 +193,7 @@ declare const computeStorybookMetadata: ({
|
|
|
193
193
|
}: {
|
|
194
194
|
packageJsonPath: string;
|
|
195
195
|
packageJson: PackageJson;
|
|
196
|
-
mainConfig?:
|
|
196
|
+
mainConfig?: ForkbookConfig & Record<string, any>;
|
|
197
197
|
configDir: string;
|
|
198
198
|
}) => Promise<StorybookMetadata>;
|
|
199
199
|
declare const getStorybookMetadata: (_configDir?: string) => Promise<StorybookMetadata>;
|
package/dist/telemetry/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
|
|
@@ -31,50 +31,48 @@ import {
|
|
|
31
31
|
setTelemetryEnabled,
|
|
32
32
|
telemetry,
|
|
33
33
|
withSpan
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-4D325SMT.js";
|
|
35
35
|
import {
|
|
36
36
|
SESSION_TIMEOUT,
|
|
37
37
|
getSessionId
|
|
38
|
-
} from "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
40
|
-
import "../_node-chunks/chunk-
|
|
38
|
+
} from "../_node-chunks/chunk-V5IMPC3J.js";
|
|
39
|
+
import "../_node-chunks/chunk-2YNXKY72.js";
|
|
40
|
+
import "../_node-chunks/chunk-SMBAR4G6.js";
|
|
41
41
|
import {
|
|
42
42
|
detectAgent
|
|
43
|
-
} from "../_node-chunks/chunk-
|
|
44
|
-
import "../_node-chunks/chunk-
|
|
45
|
-
import "../_node-chunks/chunk-
|
|
46
|
-
import "../_node-chunks/chunk-
|
|
47
|
-
import "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
50
|
-
import "../_node-chunks/chunk-
|
|
51
|
-
import "../_node-chunks/chunk-
|
|
52
|
-
import "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
54
|
-
import "../_node-chunks/chunk-
|
|
55
|
-
import "../_node-chunks/chunk-
|
|
56
|
-
import "../_node-chunks/chunk-
|
|
57
|
-
import "../_node-chunks/chunk-
|
|
58
|
-
import "../_node-chunks/chunk-
|
|
59
|
-
import "../_node-chunks/chunk-
|
|
60
|
-
import "../_node-chunks/chunk-
|
|
61
|
-
import "../_node-chunks/chunk-
|
|
62
|
-
import "../_node-chunks/chunk-
|
|
63
|
-
import "../_node-chunks/chunk-
|
|
64
|
-
import "../_node-chunks/chunk-
|
|
65
|
-
import "../_node-chunks/chunk-
|
|
66
|
-
import "../_node-chunks/chunk-
|
|
67
|
-
import "../_node-chunks/chunk-
|
|
68
|
-
import "../_node-chunks/chunk-
|
|
69
|
-
import "../_node-chunks/chunk-
|
|
70
|
-
import "../_node-chunks/chunk-
|
|
71
|
-
import "../_node-chunks/chunk-
|
|
72
|
-
import "../_node-chunks/chunk-
|
|
73
|
-
import "../_node-chunks/chunk-
|
|
74
|
-
import "../_node-chunks/chunk-
|
|
75
|
-
import "../_node-chunks/chunk-
|
|
76
|
-
import "../_node-chunks/chunk-VQEQ7ZLS.js";
|
|
77
|
-
import "../_node-chunks/chunk-NKAUZU4C.js";
|
|
43
|
+
} from "../_node-chunks/chunk-IVAOJWPF.js";
|
|
44
|
+
import "../_node-chunks/chunk-D5ADPGA4.js";
|
|
45
|
+
import "../_node-chunks/chunk-3IIQSDCO.js";
|
|
46
|
+
import "../_node-chunks/chunk-APPFF22V.js";
|
|
47
|
+
import "../_node-chunks/chunk-TAMTPVYZ.js";
|
|
48
|
+
import "../_node-chunks/chunk-CEYSYQLV.js";
|
|
49
|
+
import "../_node-chunks/chunk-PXOD36TR.js";
|
|
50
|
+
import "../_node-chunks/chunk-2U5J7YTA.js";
|
|
51
|
+
import "../_node-chunks/chunk-NFDQT7UW.js";
|
|
52
|
+
import "../_node-chunks/chunk-YIAUHGY2.js";
|
|
53
|
+
import "../_node-chunks/chunk-5JLVSH44.js";
|
|
54
|
+
import "../_node-chunks/chunk-REIDJUVJ.js";
|
|
55
|
+
import "../_node-chunks/chunk-QHBQRPDP.js";
|
|
56
|
+
import "../_node-chunks/chunk-BBU2FUPC.js";
|
|
57
|
+
import "../_node-chunks/chunk-GTXZNA2L.js";
|
|
58
|
+
import "../_node-chunks/chunk-46Y5H6X5.js";
|
|
59
|
+
import "../_node-chunks/chunk-3NST2GUZ.js";
|
|
60
|
+
import "../_node-chunks/chunk-XCJ2ZIQ4.js";
|
|
61
|
+
import "../_node-chunks/chunk-36LPBTLF.js";
|
|
62
|
+
import "../_node-chunks/chunk-MXLHIEXC.js";
|
|
63
|
+
import "../_node-chunks/chunk-BSQB5B57.js";
|
|
64
|
+
import "../_node-chunks/chunk-RNRGXAFV.js";
|
|
65
|
+
import "../_node-chunks/chunk-FTYDKQCO.js";
|
|
66
|
+
import "../_node-chunks/chunk-LAIED5XU.js";
|
|
67
|
+
import "../_node-chunks/chunk-TKMXEHM4.js";
|
|
68
|
+
import "../_node-chunks/chunk-VZG3OKFO.js";
|
|
69
|
+
import "../_node-chunks/chunk-32FLWHUC.js";
|
|
70
|
+
import "../_node-chunks/chunk-FEC5PGJO.js";
|
|
71
|
+
import "../_node-chunks/chunk-ALGQMFMN.js";
|
|
72
|
+
import "../_node-chunks/chunk-LHNHFYK3.js";
|
|
73
|
+
import "../_node-chunks/chunk-6UASHVMR.js";
|
|
74
|
+
import "../_node-chunks/chunk-C5OFHB3N.js";
|
|
75
|
+
import "../_node-chunks/chunk-WBCKO5LP.js";
|
|
78
76
|
export {
|
|
79
77
|
ErrorCollector,
|
|
80
78
|
SESSION_TIMEOUT,
|