@aussieljk/forkbook 0.0.0-stage → 0.0.1-10
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 +22 -0
- package/README.md +59 -2
- package/assets/addon-vitest/templates/vitest.config.4.template.ts +36 -0
- package/assets/browser/favicon-wrapper.svg +46 -0
- package/assets/browser/favicon.svg +1 -0
- 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 +83 -0
- package/assets/create/rendererAssets/.eslintrc.json +16 -0
- package/assets/create/rendererAssets/common/Configure.mdx +388 -0
- package/assets/create/rendererAssets/common/assets/accessibility.png +0 -0
- package/assets/create/rendererAssets/common/assets/accessibility.svg +1 -0
- package/assets/create/rendererAssets/common/assets/addon-library.png +0 -0
- package/assets/create/rendererAssets/common/assets/assets.png +0 -0
- package/assets/create/rendererAssets/common/assets/avif-test-image.avif +0 -0
- package/assets/create/rendererAssets/common/assets/context.png +0 -0
- package/assets/create/rendererAssets/common/assets/discord.svg +1 -0
- package/assets/create/rendererAssets/common/assets/docs.png +0 -0
- package/assets/create/rendererAssets/common/assets/figma-plugin.png +0 -0
- package/assets/create/rendererAssets/common/assets/github.svg +1 -0
- package/assets/create/rendererAssets/common/assets/share.png +0 -0
- package/assets/create/rendererAssets/common/assets/styling.png +0 -0
- package/assets/create/rendererAssets/common/assets/testing.png +0 -0
- package/assets/create/rendererAssets/common/assets/theming.png +0 -0
- package/assets/create/rendererAssets/common/assets/tutorials.svg +1 -0
- package/assets/create/rendererAssets/common/assets/youtube.svg +1 -0
- package/assets/create/rendererAssets/common/button.css +30 -0
- package/assets/create/rendererAssets/common/header.css +32 -0
- package/assets/create/rendererAssets/common/page.css +68 -0
- package/assets/create/templates/react-native/index.expo.js +20 -0
- package/assets/create/templates/react-native/index.js +25 -0
- package/assets/docs/addon-backgrounds.gif +0 -0
- package/assets/docs/addon-controls-args-annotated.png +0 -0
- package/assets/docs/addon-controls-args-background-color.png +0 -0
- package/assets/docs/addon-controls-args-background-string.png +0 -0
- package/assets/docs/addon-controls-args-docs.png +0 -0
- package/assets/docs/addon-controls-args-logging.png +0 -0
- package/assets/docs/addon-controls-args-no-annotation.png +0 -0
- package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
- package/assets/docs/addon-controls-args-reflow.png +0 -0
- package/assets/docs/addon-controls-args-template.png +0 -0
- package/assets/docs/addon-controls-expanded.png +0 -0
- package/assets/docs/addon-controls-hero.gif +0 -0
- package/assets/docs/addon-controls-install.png +0 -0
- package/assets/docs/hero.gif +0 -0
- package/assets/docs/highlight.png +0 -0
- package/assets/docs/message-reference.png +0 -0
- package/assets/docs/viewport.png +0 -0
- package/assets/react-native/metro-env.d.ts +69 -0
- package/assets/server/addon.tsconfig.json +6 -0
- package/assets/server/base-preview-body.html +116 -0
- package/assets/server/base-preview-head.html +494 -0
- package/assets/server/openBrowser.applescript +94 -0
- package/assets/server/template.ejs +85 -0
- package/dist/.build-stamp +0 -0
- package/dist/_browser-chunks/Color-X63I7FHI.js +1025 -0
- package/dist/_browser-chunks/DocsRenderer-JXND3PVQ.js +10 -0
- package/dist/_browser-chunks/WithTooltip-5S6F2P7L.js +198 -0
- package/dist/_browser-chunks/chunk-2JDQ35OA.js +247 -0
- package/dist/_browser-chunks/chunk-2JT76G3E.js +104 -0
- package/dist/_browser-chunks/chunk-3HM3VWJS.js +2604 -0
- package/dist/_browser-chunks/chunk-3M5T7BW4.js +43 -0
- package/dist/_browser-chunks/chunk-46Z7NGAS.js +41 -0
- package/dist/_browser-chunks/chunk-4ATQOMJB.js +30 -0
- package/dist/_browser-chunks/chunk-4KIQBRD2.js +17 -0
- package/dist/_browser-chunks/chunk-5H4KFI44.js +386 -0
- package/dist/_browser-chunks/chunk-5I7E4GMO.js +62 -0
- package/dist/_browser-chunks/chunk-5WMXI5GW.js +816 -0
- package/dist/_browser-chunks/chunk-5Z65SURM.js +108 -0
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/chunk-6ELMKWKX.js +22 -0
- package/dist/_browser-chunks/chunk-76222HQR.js +253 -0
- package/dist/_browser-chunks/chunk-7DQREF4S.js +218 -0
- package/dist/_browser-chunks/chunk-AYRF6EJB.js +36 -0
- package/dist/_browser-chunks/chunk-B4AUNNU4.js +156 -0
- package/dist/_browser-chunks/chunk-BCP2FFXF.js +369 -0
- package/dist/_browser-chunks/chunk-BNP234B4.js +80 -0
- package/dist/_browser-chunks/chunk-C5TKXHTM.js +82 -0
- package/dist/_browser-chunks/chunk-CNED6RYH.js +18 -0
- package/dist/_browser-chunks/chunk-DNJ3OSLB.js +6021 -0
- package/dist/_browser-chunks/chunk-DRQKCCAG.js +136 -0
- package/dist/_browser-chunks/chunk-DS2WQZGO.js +1956 -0
- package/dist/_browser-chunks/chunk-DYNTDJ3O.js +155 -0
- package/dist/_browser-chunks/chunk-ECQ75MKQ.js +0 -0
- package/dist/_browser-chunks/chunk-ENKK74N4.js +12 -0
- package/dist/_browser-chunks/chunk-EQKMUQF3.js +224 -0
- package/dist/_browser-chunks/chunk-FENFYI4X.js +698 -0
- package/dist/_browser-chunks/chunk-FRAOQJDI.js +95 -0
- package/dist/_browser-chunks/chunk-GNZY6LOW.js +10116 -0
- package/dist/_browser-chunks/chunk-GRO2ZYEJ.js +157 -0
- package/dist/_browser-chunks/chunk-I4ATZPNZ.js +34 -0
- package/dist/_browser-chunks/chunk-IE4ULIOQ.js +14 -0
- package/dist/_browser-chunks/chunk-IFADVEQE.js +669 -0
- package/dist/_browser-chunks/chunk-IMSF75WX.js +42 -0
- package/dist/_browser-chunks/chunk-IWQGIXJS.js +14 -0
- package/dist/_browser-chunks/chunk-JPUOQJUI.js +8 -0
- package/dist/_browser-chunks/chunk-JWSKPMPC.js +73 -0
- package/dist/_browser-chunks/chunk-KBK7GKBN.js +35 -0
- package/dist/_browser-chunks/chunk-KYSD26D6.js +1966 -0
- package/dist/_browser-chunks/chunk-LAWXTSXK.js +18 -0
- package/dist/_browser-chunks/chunk-LE2LTDW3.js +14 -0
- package/dist/_browser-chunks/chunk-LEVSOOLQ.js +48 -0
- package/dist/_browser-chunks/chunk-LTCXWKZO.js +2935 -0
- package/dist/_browser-chunks/chunk-LYYXDWR2.js +411 -0
- package/dist/_browser-chunks/chunk-MJIDTL3X.js +78 -0
- package/dist/_browser-chunks/chunk-MLBOOZL4.js +67 -0
- package/dist/_browser-chunks/chunk-N3NRW5XX.js +117 -0
- package/dist/_browser-chunks/chunk-N5WQGLI7.js +11 -0
- package/dist/_browser-chunks/chunk-NA4ITZTK.js +324 -0
- package/dist/_browser-chunks/chunk-NGMQJMCY.js +53 -0
- package/dist/_browser-chunks/chunk-NPNIBOPF.js +18 -0
- package/dist/_browser-chunks/chunk-NQUD4B7H.js +91 -0
- package/dist/_browser-chunks/chunk-NTUHL5NS.js +54 -0
- package/dist/_browser-chunks/chunk-NULBREPZ.js +43 -0
- package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
- package/dist/_browser-chunks/chunk-O24AZJZ7.js +56 -0
- package/dist/_browser-chunks/chunk-ONTSNQON.js +20 -0
- package/dist/_browser-chunks/chunk-OOETBSA7.js +502 -0
- package/dist/_browser-chunks/chunk-OVH3USFB.js +20 -0
- package/dist/_browser-chunks/chunk-OZZPSYQR.js +14 -0
- package/dist/_browser-chunks/chunk-PJSMZ27A.js +13 -0
- package/dist/_browser-chunks/chunk-PZQRXPVR.js +21 -0
- package/dist/_browser-chunks/chunk-QC4HFS6K.js +41 -0
- package/dist/_browser-chunks/chunk-QDXFODK4.js +274 -0
- package/dist/_browser-chunks/chunk-RBCHTR7C.js +28 -0
- package/dist/_browser-chunks/chunk-RMYQ3QN3.js +294 -0
- package/dist/_browser-chunks/chunk-S6TK43XQ.js +836 -0
- package/dist/_browser-chunks/chunk-SC67XZST.js +18 -0
- package/dist/_browser-chunks/chunk-SFVA4SBT.js +683 -0
- package/dist/_browser-chunks/chunk-SZYFOQMT.js +25 -0
- package/dist/_browser-chunks/chunk-TBJCJXK4.js +18 -0
- package/dist/_browser-chunks/chunk-TTBPZQ24.js +3551 -0
- package/dist/_browser-chunks/chunk-UMDO3KB7.js +205 -0
- package/dist/_browser-chunks/chunk-UMGDO2ZM.js +169 -0
- package/dist/_browser-chunks/chunk-V5U45XXZ.js +24 -0
- package/dist/_browser-chunks/chunk-W7NE2JXW.js +84 -0
- package/dist/_browser-chunks/chunk-WGVAAM43.js +1110 -0
- package/dist/_browser-chunks/chunk-WHQRNHXD.js +8 -0
- package/dist/_browser-chunks/chunk-WOSOWBCA.js +12 -0
- package/dist/_browser-chunks/chunk-WZ7KR7SH.js +85 -0
- package/dist/_browser-chunks/chunk-XKTORVEQ.js +255 -0
- package/dist/_browser-chunks/chunk-XTQCLWVH.js +1500 -0
- package/dist/_browser-chunks/chunk-YI2IBIQS.js +7 -0
- package/dist/_browser-chunks/chunk-ZEHRUHTA.js +6 -0
- package/dist/_browser-chunks/chunk-ZHKZKFY4.js +199 -0
- package/dist/_browser-chunks/matchers-YLBYSYAF.js +1263 -0
- package/dist/_browser-chunks/react-dom-client-4OHE3QDV.js +9 -0
- package/dist/_node-chunks/attached-runtime-PDBJ2EGV.js +282 -0
- package/dist/_node-chunks/builder-manager-VLL26RPG.js +1139 -0
- package/dist/_node-chunks/chunk-3CSGIJKG.js +499 -0
- package/dist/_node-chunks/chunk-3W4KR5GX.js +2609 -0
- package/dist/_node-chunks/chunk-5NRWU7S2.js +194 -0
- package/dist/_node-chunks/chunk-5SMIGUYF.js +102 -0
- package/dist/_node-chunks/chunk-63LPGIV4.js +1049 -0
- package/dist/_node-chunks/chunk-6DHTL5G2.js +35 -0
- package/dist/_node-chunks/chunk-6DRVJCYP.js +299 -0
- package/dist/_node-chunks/chunk-7CV4VEA2.js +620 -0
- package/dist/_node-chunks/chunk-7KD5DKGZ.js +79 -0
- package/dist/_node-chunks/chunk-7O2UIVID.js +82 -0
- package/dist/_node-chunks/chunk-7OY4VMAT.js +90 -0
- package/dist/_node-chunks/chunk-AAL6X7YG.js +1986 -0
- package/dist/_node-chunks/chunk-ACSO4HQP.js +32 -0
- package/dist/_node-chunks/chunk-BDU3ZUMK.js +98 -0
- package/dist/_node-chunks/chunk-BMJPOQ2S.js +11 -0
- package/dist/_node-chunks/chunk-BNEC3EBC.js +28 -0
- package/dist/_node-chunks/chunk-BPL3ERBH.js +347 -0
- package/dist/_node-chunks/chunk-BXDMSX3D.js +30600 -0
- package/dist/_node-chunks/chunk-C3PLG47Q.js +25 -0
- package/dist/_node-chunks/chunk-CEDR5CNM.js +74 -0
- package/dist/_node-chunks/chunk-CKE4R4NL.js +26 -0
- package/dist/_node-chunks/chunk-CSFNS7HA.js +21 -0
- package/dist/_node-chunks/chunk-CZ3V3HHK.js +223 -0
- package/dist/_node-chunks/chunk-DNV3LPV3.js +33 -0
- package/dist/_node-chunks/chunk-DPILYJH4.js +33 -0
- package/dist/_node-chunks/chunk-DQ44ZAEM.js +25 -0
- package/dist/_node-chunks/chunk-DR7NW2MI.js +104 -0
- package/dist/_node-chunks/chunk-DRCP3DQF.js +209 -0
- package/dist/_node-chunks/chunk-EBWZKN2I.js +1297 -0
- package/dist/_node-chunks/chunk-ECOW63CV.js +92 -0
- package/dist/_node-chunks/chunk-ENBDAHOV.js +18 -0
- package/dist/_node-chunks/chunk-FAEOR2AW.js +40 -0
- package/dist/_node-chunks/chunk-FERXOKZY.js +80 -0
- package/dist/_node-chunks/chunk-FJFB7TWU.js +495 -0
- package/dist/_node-chunks/chunk-FQGQ5KHN.js +63 -0
- package/dist/_node-chunks/chunk-FR2ZDWKJ.js +45 -0
- package/dist/_node-chunks/chunk-FRBE7ES4.js +59 -0
- package/dist/_node-chunks/chunk-FWAF5NBL.js +20 -0
- package/dist/_node-chunks/chunk-FXBZWUW3.js +7044 -0
- package/dist/_node-chunks/chunk-FZ453CHY.js +25 -0
- package/dist/_node-chunks/chunk-G2ZUFOHU.js +68 -0
- package/dist/_node-chunks/chunk-GBVWRZHP.js +23 -0
- package/dist/_node-chunks/chunk-GGE7TBVX.js +121 -0
- package/dist/_node-chunks/chunk-GJSYGBI5.js +47 -0
- package/dist/_node-chunks/chunk-GKHLTHYM.js +4744 -0
- package/dist/_node-chunks/chunk-GQYATLH6.js +3708 -0
- package/dist/_node-chunks/chunk-HCP5DG52.js +2743 -0
- package/dist/_node-chunks/chunk-HVOSLI2K.js +20 -0
- package/dist/_node-chunks/chunk-ID3WA6WR.js +171 -0
- package/dist/_node-chunks/chunk-IGOX6TUG.js +95 -0
- package/dist/_node-chunks/chunk-IL7YA7QJ.js +148 -0
- package/dist/_node-chunks/chunk-IUPE4SU2.js +688 -0
- package/dist/_node-chunks/chunk-JVWXCB3L.js +7179 -0
- package/dist/_node-chunks/chunk-K4O2ZAMU.js +57 -0
- package/dist/_node-chunks/chunk-KRWR44KT.js +25 -0
- package/dist/_node-chunks/chunk-KWNBN3DV.js +132 -0
- package/dist/_node-chunks/chunk-LG3NMXCM.js +20 -0
- package/dist/_node-chunks/chunk-LH5QBX2U.js +1001 -0
- package/dist/_node-chunks/chunk-LX2XSPPL.js +59 -0
- package/dist/_node-chunks/chunk-M4QNXI37.js +21 -0
- package/dist/_node-chunks/chunk-MBPHOLXB.js +1218 -0
- package/dist/_node-chunks/chunk-MIWBXEUH.js +26 -0
- package/dist/_node-chunks/chunk-MKUA4ZCG.js +1193 -0
- package/dist/_node-chunks/chunk-MQC7ZY6L.js +5468 -0
- package/dist/_node-chunks/chunk-MRCPS4S3.js +48 -0
- package/dist/_node-chunks/chunk-MY7UVHPL.js +153 -0
- package/dist/_node-chunks/chunk-ND323XCC.js +33 -0
- package/dist/_node-chunks/chunk-NGFFEW2B.js +972 -0
- package/dist/_node-chunks/chunk-OPG46TLN.js +1119 -0
- package/dist/_node-chunks/chunk-PEL4YXU6.js +19 -0
- package/dist/_node-chunks/chunk-QFXAGOIO.js +115 -0
- package/dist/_node-chunks/chunk-QGC3UWR5.js +110 -0
- package/dist/_node-chunks/chunk-QGVU7IFS.js +414 -0
- package/dist/_node-chunks/chunk-QOFBJXPH.js +1525 -0
- package/dist/_node-chunks/chunk-QVLHVO4X.js +532 -0
- package/dist/_node-chunks/chunk-R2ZCFA7I.js +60 -0
- package/dist/_node-chunks/chunk-RC4HPD5Q.js +26 -0
- package/dist/_node-chunks/chunk-RJXAXHDJ.js +415 -0
- package/dist/_node-chunks/chunk-SGEPJMTU.js +1094 -0
- package/dist/_node-chunks/chunk-SYUOBOB5.js +35 -0
- package/dist/_node-chunks/chunk-T5VZYRL2.js +40 -0
- package/dist/_node-chunks/chunk-T6IU66AM.js +69 -0
- package/dist/_node-chunks/chunk-THDTJJMO.js +611 -0
- package/dist/_node-chunks/chunk-TNFH4Y4G.js +1133 -0
- package/dist/_node-chunks/chunk-TY2ZY7AO.js +155 -0
- package/dist/_node-chunks/chunk-TZIT6SZP.js +49 -0
- package/dist/_node-chunks/chunk-VG2KFIOW.js +45 -0
- package/dist/_node-chunks/chunk-VSHYJR23.js +56 -0
- package/dist/_node-chunks/chunk-VUMGWJ6Y.js +844 -0
- package/dist/_node-chunks/chunk-WVRM6DQU.js +3767 -0
- package/dist/_node-chunks/chunk-YU5TVYPS.js +87 -0
- package/dist/_node-chunks/chunk-ZBWAA2EY.js +2106 -0
- package/dist/_node-chunks/chunk-ZD5TUA6I.js +20 -0
- package/dist/_node-chunks/chunk-ZFLK7MY5.js +144 -0
- package/dist/_node-chunks/dist-7OJKTBKL.js +27 -0
- package/dist/_node-chunks/dist-MWP6WLW4.js +16 -0
- package/dist/_node-chunks/local-runtime-V5YTRN24.js +78 -0
- package/dist/_node-chunks/mdx-plugin-CBOD52VP.js +7813 -0
- package/dist/_node-chunks/monorepo-GF6H53U4.js +121 -0
- package/dist/_node-chunks/monorepo-optimized-tests-relaxed-limits-no-story-deletion-K4TTV2DQ.js +121 -0
- package/dist/_node-chunks/optimized-tests-KOTSVWTN.js +22 -0
- package/dist/_node-chunks/pattern-copy-play-M2QNC4IZ.js +807 -0
- package/dist/_node-chunks/postinstallAddon-WXKJL6DP.js +20 -0
- package/dist/_node-chunks/rehype-external-links-3IDE4CYH.js +121 -0
- package/dist/_node-chunks/rehype-slug-GKB3WS3U.js +52 -0
- package/dist/_node-chunks/relaxed-limits-C6QU365N.js +117 -0
- package/dist/_node-chunks/run-TMVS3KKA.js +4792 -0
- package/dist/_node-chunks/run-XWBUPXLN.js +103 -0
- package/dist/_node-chunks/session-id-VMH57SKN.js +23 -0
- package/dist/_node-chunks/setup-KEEJK4WI.js +278 -0
- package/dist/_node-chunks/vitest.config.4.template-74HEE4WJ.js +54 -0
- package/dist/actions/decorator.d.ts +7 -0
- package/dist/actions/decorator.js +44 -0
- package/dist/actions/index.d.ts +67 -0
- package/dist/actions/index.js +29 -0
- package/dist/addon-a11y/index.d.ts +52 -0
- package/dist/addon-a11y/index.js +17 -0
- package/dist/addon-a11y/manager.js +1432 -0
- package/dist/addon-a11y/preset.js +18 -0
- package/dist/addon-a11y/preview.d.ts +17 -0
- package/dist/addon-a11y/preview.js +16 -0
- package/dist/addon-docs/blocks.d.ts +1080 -0
- package/dist/addon-docs/blocks.js +2537 -0
- package/dist/addon-docs/index.d.ts +236 -0
- package/dist/addon-docs/index.js +16 -0
- package/dist/addon-docs/manager.js +90 -0
- package/dist/addon-docs/mdx-react-shim.d.ts +1 -0
- package/dist/addon-docs/mdx-react-shim.js +2 -0
- package/dist/addon-docs/preset.js +378 -0
- package/dist/addon-docs/preview.d.ts +4 -0
- package/dist/addon-docs/preview.js +7 -0
- package/dist/addon-links/index.d.ts +22 -0
- package/dist/addon-links/index.js +23 -0
- package/dist/addon-links/manager.js +14 -0
- package/dist/addon-links/preview.d.ts +6 -0
- package/dist/addon-links/preview.js +12 -0
- package/dist/addon-links/react/index.d.ts +25 -0
- package/dist/addon-links/react/index.js +55 -0
- package/dist/addon-mcp/preset.js +1353 -0
- package/dist/addon-mcp/preview.js +29 -0
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +1129 -0
- package/dist/addon-ondevice-actions/index.d.ts +4 -0
- package/dist/addon-ondevice-actions/index.js +11 -0
- package/dist/addon-ondevice-actions/register.js +11 -0
- package/dist/addon-ondevice-controls/index.d.ts +6 -0
- package/dist/addon-ondevice-controls/index.js +14 -0
- package/dist/addon-ondevice-controls/register.js +10 -0
- package/dist/addon-pseudo-states/index.d.ts +35 -0
- package/dist/addon-pseudo-states/index.js +15 -0
- package/dist/addon-pseudo-states/manager.js +53 -0
- package/dist/addon-pseudo-states/preview.d.ts +9 -0
- package/dist/addon-pseudo-states/preview.js +10 -0
- package/dist/addon-themes/index.d.ts +80 -0
- package/dist/addon-themes/index.js +104 -0
- package/dist/addon-themes/manager.js +97 -0
- package/dist/addon-themes/postinstall.js +33 -0
- package/dist/addon-themes/preview.d.ts +6 -0
- package/dist/addon-themes/preview.js +8 -0
- package/dist/addon-vitest/constants.d.ts +132 -0
- package/dist/addon-vitest/constants.js +66 -0
- package/dist/addon-vitest/index.d.ts +4 -0
- package/dist/addon-vitest/index.js +8 -0
- package/dist/addon-vitest/manager.js +665 -0
- package/dist/addon-vitest/node/coverage-reporter.js +1284 -0
- package/dist/addon-vitest/node/vitest.js +674 -0
- package/dist/addon-vitest/postinstall.js +24 -0
- package/dist/addon-vitest/preset.js +942 -0
- package/dist/addon-vitest/vitest-plugin/global-setup.js +162 -0
- package/dist/addon-vitest/vitest-plugin/index.d.ts +56 -0
- package/dist/addon-vitest/vitest-plugin/index.js +463 -0
- package/dist/addon-vitest/vitest-plugin/setup-file-with-project-annotations.js +9 -0
- package/dist/addon-vitest/vitest-plugin/setup-file.browser.4.js +20 -0
- package/dist/addon-vitest/vitest-plugin/setup-file.js +50 -0
- package/dist/addon-vitest/vitest-plugin/test-utils.js +128 -0
- package/dist/babel/index.d.ts +1550 -0
- package/dist/babel/index.js +55 -0
- package/dist/backgrounds/index.d.ts +6 -0
- package/dist/backgrounds/index.js +15 -0
- package/dist/bin/core.js +1706 -0
- package/dist/bin/dispatcher.js +45 -0
- package/dist/bin/loader.js +116 -0
- package/dist/builder-vite/index.d.ts +50 -0
- package/dist/builder-vite/index.js +245 -0
- package/dist/builder-vite/preset.js +27 -0
- package/dist/channels/index.d.ts +2 -0
- package/dist/channels/index.js +352 -0
- package/dist/chunk-BCoJQE-f.d.ts +602 -0
- package/dist/chunk-BGhyFTJO.d.ts +115 -0
- package/dist/chunk-BGkgZp-H.d.ts +214 -0
- package/dist/chunk-BXLImeLy.d.ts +197 -0
- package/dist/chunk-Bpi2tz-6.d.ts +511 -0
- package/dist/chunk-C6PAgHLT.d.ts +12 -0
- package/dist/chunk-CFk6djyM.d.ts +55 -0
- package/dist/chunk-CNqjcOmK.d.ts +15 -0
- package/dist/chunk-CT2iXaHz.d.ts +179 -0
- package/dist/chunk-CV4-Z2pn.d.ts +30 -0
- package/dist/chunk-CYuvV2sR.d.ts +282 -0
- package/dist/chunk-Ct9xd6IM.d.ts +65 -0
- package/dist/chunk-D0NUmzXp.d.ts +253 -0
- package/dist/chunk-D7DwV41f.d.ts +3622 -0
- package/dist/chunk-DDd8BhTY.d.ts +79 -0
- package/dist/chunk-DROZ9oel.d.ts +669 -0
- package/dist/chunk-DaVb55-_.d.ts +124 -0
- package/dist/chunk-DgRNfmj_.d.ts +40 -0
- package/dist/chunk-DgzPaTw9.d.ts +61 -0
- package/dist/chunk-Dm-iHJ-s.d.ts +59 -0
- package/dist/chunk-DoIGKY33.d.ts +666 -0
- package/dist/chunk-Dr3R0DXk.d.ts +40 -0
- package/dist/chunk-Dw_4ad2Y.d.ts +34 -0
- package/dist/chunk-Fg1Fm__9.d.ts +13091 -0
- package/dist/chunk-FjDVzZTj.d.ts +62 -0
- package/dist/chunk-Susgfkap.d.ts +20 -0
- package/dist/chunk-XP8oHzpE.d.ts +6 -0
- package/dist/chunk-pcFXCimE.d.ts +741 -0
- package/dist/cli/index.d.ts +321 -0
- package/dist/cli/index.js +703 -0
- package/dist/cli/skills/content/index.d.ts +72 -0
- package/dist/cli/skills/content/index.js +335 -0
- package/dist/cli/tools/sdk/child-host.d.ts +61 -0
- package/dist/cli/tools/sdk/child-host.js +131 -0
- package/dist/cli/tools/sdk/index.d.ts +137 -0
- package/dist/cli/tools/sdk/index.js +44 -0
- package/dist/cli-commands/bin/index.js +25 -0
- package/dist/client-logger/index.d.ts +31 -0
- package/dist/client-logger/index.js +65 -0
- package/dist/common/index.d.ts +1091 -0
- package/dist/common/index.js +358 -0
- package/dist/components/index.d.ts +1727 -0
- package/dist/components/index.js +7982 -0
- package/dist/core-events/index.d.ts +156 -0
- package/dist/core-events/index.js +138 -0
- package/dist/core-server/index.d.ts +2200 -0
- package/dist/core-server/index.js +4577 -0
- package/dist/core-server/presets/common-manager.js +3744 -0
- package/dist/core-server/presets/common-override-preset.js +83 -0
- package/dist/core-server/presets/common-preset.js +2194 -0
- package/dist/create/bin/index.js +23 -0
- package/dist/create/index.js +25 -0
- package/dist/csf/csf-utils.d.ts +2 -0
- package/dist/csf/csf-utils.js +19 -0
- package/dist/csf/index.d.ts +7 -0
- package/dist/csf/index.js +2077 -0
- package/dist/csf-tools/index.d.ts +1161 -0
- package/dist/csf-tools/index.js +738 -0
- package/dist/docs-tools/index.d.ts +197 -0
- package/dist/docs-tools/index.js +61 -0
- package/dist/highlight/index.d.ts +10 -0
- package/dist/highlight/index.js +15 -0
- package/dist/instrumenter/index.d.ts +113 -0
- package/dist/instrumenter/index.js +2597 -0
- package/dist/manager/_manager-chunks/globals-runtime-BKQscPdC.js +5661 -0
- package/dist/manager/_manager-chunks/globals-runtime-BY3epqww.js +1807 -0
- package/dist/manager/_manager-chunks/globals-runtime-BdGkqNEt.js +45 -0
- package/dist/manager/_manager-chunks/globals-runtime-Bj5KDUJi.js +8935 -0
- package/dist/manager/_manager-chunks/globals-runtime-Bs75QQ_I.js +9987 -0
- package/dist/manager/_manager-chunks/globals-runtime-BweHuXkK.js +6838 -0
- package/dist/manager/_manager-chunks/globals-runtime-CA8AuIRT.js +7617 -0
- package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
- package/dist/manager/_manager-chunks/globals-runtime-CJL1dQtn.js +4674 -0
- package/dist/manager/_manager-chunks/globals-runtime-CfurFwS_.js +121 -0
- package/dist/manager/_manager-chunks/globals-runtime-CvIgTRVu.js +1190 -0
- package/dist/manager/_manager-chunks/globals-runtime-DBba3I9c.js +5307 -0
- package/dist/manager/_manager-chunks/globals-runtime-DvV_TF3-.js +12214 -0
- package/dist/manager/_manager-chunks/globals-runtime-DwFqpqya.js +722 -0
- package/dist/manager/_manager-chunks/globals-runtime-NwJK8t0T.js +9274 -0
- package/dist/manager/_manager-chunks/globals-runtime-WZKaeKm9.js +4091 -0
- package/dist/manager/_manager-chunks/globals-runtime-wjkxyMn0.js +5283 -0
- package/dist/manager/_manager-chunks/runtime-5B2mWjEm.js +294 -0
- package/dist/manager/_manager-chunks/runtime-5o_11Jae.js +78 -0
- package/dist/manager/_manager-chunks/runtime-B_nqedQW.js +197 -0
- package/dist/manager/_manager-chunks/runtime-BdGkqNEt.js +45 -0
- package/dist/manager/_manager-chunks/runtime-Bs3bEhuy.js +1232 -0
- package/dist/manager/_manager-chunks/runtime-CBQsKmch.js +2351 -0
- package/dist/manager/_manager-chunks/runtime-DG61zYUm.js +1158 -0
- package/dist/manager/_manager-chunks/runtime-DtCVCy4G.js +6841 -0
- package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
- package/dist/manager/_manager-chunks/runtime-eBAgOym6.js +9010 -0
- package/dist/manager/_manager-chunks/runtime-j9yqh0tr.js +1023 -0
- package/dist/manager/_manager-chunks/runtime-jj8qYc2n.js +3488 -0
- package/dist/manager/globals-runtime.js +2 -0
- package/dist/manager/globals.d.ts +23 -0
- package/dist/manager/globals.js +26 -0
- package/dist/manager/manager-stores.d.ts +2 -0
- package/dist/manager/manager-stores.js +19 -0
- package/dist/manager/runtime.js +2 -0
- package/dist/manager-api/index.d.ts +2 -0
- package/dist/manager-api/index.js +3247 -0
- package/dist/manager-errors.d.ts +89 -0
- package/dist/manager-errors.js +20 -0
- package/dist/mcp/index.d.ts +270 -0
- package/dist/mcp/index.js +305 -0
- package/dist/mocking-utils/index.d.ts +689 -0
- package/dist/mocking-utils/index.js +526 -0
- package/dist/mocking-utils/mocker-runtime.js +1254 -0
- package/dist/nextjs-vite/config/preview.js +3 -0
- package/dist/nextjs-vite/export-mocks/cache/index.d.ts +25 -0
- package/dist/nextjs-vite/export-mocks/cache/index.js +29 -0
- package/dist/nextjs-vite/export-mocks/headers/index.d.ts +37 -0
- package/dist/nextjs-vite/export-mocks/headers/index.js +54 -0
- package/dist/nextjs-vite/export-mocks/link/index.d.ts +9 -0
- package/dist/nextjs-vite/export-mocks/link/index.js +59 -0
- package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +28 -0
- package/dist/nextjs-vite/export-mocks/navigation/index.js +58 -0
- package/dist/nextjs-vite/export-mocks/router/index.d.ts +34 -0
- package/dist/nextjs-vite/export-mocks/router/index.js +63 -0
- package/dist/nextjs-vite/index.d.ts +92 -0
- package/dist/nextjs-vite/index.js +59 -0
- package/dist/nextjs-vite/node/index.d.ts +6 -0
- package/dist/nextjs-vite/node/index.js +20 -0
- 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 +727 -0
- package/dist/nextjs-vite/preview.d.ts +20 -0
- package/dist/nextjs-vite/preview.js +11 -0
- package/dist/nextjs-vite/vite-plugin/index.d.ts +6 -0
- package/dist/nextjs-vite/vite-plugin/index.js +19 -0
- package/dist/nextjs-vite-plugin/index.d.ts +27 -0
- package/dist/nextjs-vite-plugin/index.js +908 -0
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +29 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/image-context.js +8 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/image-default-loader.js +23 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-image.js +28 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.js +17 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/cache/index.js +29 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/dynamic/index.js +40 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/headers/index.js +55 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/link/index.js +63 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/navigation/index.js +71 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +74 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/rsc/server-only.js +7 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/safe-stable-stringify/index.js +13 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/compatibility/draft-mode.compat.js +7 -0
- package/dist/node-logger/index.d.ts +488 -0
- package/dist/node-logger/index.js +41 -0
- package/dist/oxc-parser/index.d.ts +99 -0
- package/dist/oxc-parser/index.js +273 -0
- package/dist/oxc-parser/worker.js +37 -0
- package/dist/preview/_chunks/runtime-BJwGQok8.js +3873 -0
- package/dist/preview/_chunks/runtime-BPwAnlRx.js +10411 -0
- package/dist/preview/_chunks/runtime-BUnOhg9h.js +6838 -0
- package/dist/preview/_chunks/runtime-BZ4pNS3g.js +284 -0
- package/dist/preview/_chunks/runtime-Bcv1hJky.js +6305 -0
- package/dist/preview/_chunks/runtime-BdGkqNEt.js +45 -0
- package/dist/preview/_chunks/runtime-BgPhfM5P.js +3681 -0
- package/dist/preview/_chunks/runtime-BhSZ1Mwt.js +5262 -0
- package/dist/preview/_chunks/runtime-BsMjBzuq.js +53 -0
- package/dist/preview/_chunks/runtime-C1jgT6tJ.js +4091 -0
- package/dist/preview/_chunks/runtime-CkOhMcXf.js +387 -0
- package/dist/preview/_chunks/runtime-WapFVPAh.js +8484 -0
- package/dist/preview/globals.d.ts +16 -0
- package/dist/preview/globals.js +20 -0
- package/dist/preview/runtime.js +6 -0
- package/dist/preview-api/index.d.ts +4 -0
- package/dist/preview-api/index.js +149 -0
- package/dist/preview-errors.d.ts +186 -0
- package/dist/preview-errors.js +56 -0
- package/dist/react/docgen/docgen-worker.js +37 -0
- package/dist/react/entry-preview-argtypes.js +9 -0
- package/dist/react/entry-preview-docs.js +12 -0
- package/dist/react/entry-preview-rsc.js +11 -0
- package/dist/react/entry-preview.js +22 -0
- package/dist/react/index.d.ts +119 -0
- package/dist/react/index.js +28 -0
- package/dist/react/preset.js +300 -0
- package/dist/react/preview.d.ts +2 -0
- package/dist/react/preview.js +12 -0
- package/dist/react-native/bin/get-stories.js +34 -0
- package/dist/react-native/index.d.ts +160 -0
- package/dist/react-native/index.js +1362 -0
- package/dist/react-native/metro/node.d.ts +83 -0
- package/dist/react-native/metro/node.js +22 -0
- package/dist/react-native/metro/withForkbook.d.ts +2269 -0
- package/dist/react-native/metro/withForkbook.js +139 -0
- package/dist/react-native/preview.d.ts +6 -0
- package/dist/react-native/preview.js +20 -0
- package/dist/react-native/scripts/generate.d.ts +22 -0
- package/dist/react-native/scripts/generate.js +18 -0
- package/dist/react-native/stub.js +20 -0
- package/dist/react-native-theming/index.d.ts +119 -0
- package/dist/react-native-theming/index.js +316 -0
- package/dist/react-native-ui/index.d.ts +129 -0
- package/dist/react-native-ui/index.js +1448 -0
- package/dist/react-native-ui-common/index.d.ts +229 -0
- package/dist/react-native-ui-common/index.js +514 -0
- package/dist/react-vite/index.d.ts +4 -0
- package/dist/react-vite/index.js +8 -0
- package/dist/react-vite/node/index.d.ts +6 -0
- package/dist/react-vite/node/index.js +20 -0
- package/dist/react-vite/preset.d.ts +6 -0
- package/dist/react-vite/preset.js +21 -0
- package/dist/router/index.d.ts +209 -0
- package/dist/router/index.js +1259 -0
- package/dist/server-errors.d.ts +2 -0
- package/dist/server-errors.js +149 -0
- package/dist/shared/open-service/index.d.ts +3 -0
- package/dist/shared/open-service/index.js +115 -0
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +75 -0
- package/dist/shared/open-service/toolsets/docs/public.d.ts +1296 -0
- package/dist/shared/open-service/toolsets/docs/public.js +991 -0
- package/dist/telemetry/index.d.ts +314 -0
- package/dist/telemetry/index.js +101 -0
- package/dist/test/index.d.ts +158 -0
- package/dist/test/index.js +19656 -0
- package/dist/theming/create.d.ts +15 -0
- package/dist/theming/create.js +12 -0
- package/dist/theming/index.d.ts +54 -0
- package/dist/theming/index.js +536 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +48 -0
- package/dist/viewport/index.d.ts +275 -0
- package/dist/viewport/index.js +21 -0
- package/package.json +1030 -4
- package/template/nextjs-vite/cli/.eslintrc.json +6 -0
- package/template/nextjs-vite/cli/js/Button.jsx +42 -0
- package/template/nextjs-vite/cli/js/Button.stories.js +49 -0
- package/template/nextjs-vite/cli/js/Configure.mdx +470 -0
- package/template/nextjs-vite/cli/js/Header.jsx +58 -0
- package/template/nextjs-vite/cli/js/Header.stories.js +30 -0
- package/template/nextjs-vite/cli/js/Page.jsx +68 -0
- package/template/nextjs-vite/cli/js/Page.stories.js +28 -0
- package/template/nextjs-vite/cli/ts/Button.stories.ts +54 -0
- package/template/nextjs-vite/cli/ts/Button.tsx +39 -0
- package/template/nextjs-vite/cli/ts/Configure.mdx +446 -0
- package/template/nextjs-vite/cli/ts/Header.stories.ts +34 -0
- package/template/nextjs-vite/cli/ts/Header.tsx +54 -0
- package/template/nextjs-vite/cli/ts/Page.stories.ts +33 -0
- package/template/nextjs-vite/cli/ts/Page.tsx +73 -0
- package/template/react/cli/.eslintrc.json +5 -0
- package/template/react/cli/js/Button.jsx +39 -0
- package/template/react/cli/js/Button.stories.js +49 -0
- package/template/react/cli/js/Header.jsx +56 -0
- package/template/react/cli/js/Header.stories.js +29 -0
- package/template/react/cli/js/Page.jsx +69 -0
- package/template/react/cli/js/Page.stories.js +28 -0
- package/template/react/cli/ts/Button.stories.ts +54 -0
- package/template/react/cli/ts/Button.tsx +37 -0
- package/template/react/cli/ts/Header.stories.ts +34 -0
- package/template/react/cli/ts/Header.tsx +56 -0
- package/template/react/cli/ts/Page.stories.ts +33 -0
- package/template/react/cli/ts/Page.tsx +73 -0
- package/template/react-vite/cli/.eslintrc.json +5 -0
- package/template/react-vite/cli/js/Button.jsx +39 -0
- package/template/react-vite/cli/js/Button.stories.js +49 -0
- package/template/react-vite/cli/js/Header.jsx +56 -0
- package/template/react-vite/cli/js/Header.stories.js +29 -0
- package/template/react-vite/cli/js/Page.jsx +69 -0
- package/template/react-vite/cli/js/Page.stories.js +28 -0
- package/template/react-vite/cli/ts/Button.stories.ts +54 -0
- package/template/react-vite/cli/ts/Button.tsx +37 -0
- package/template/react-vite/cli/ts/Header.stories.ts +34 -0
- package/template/react-vite/cli/ts/Header.tsx +56 -0
- package/template/react-vite/cli/ts/Page.stories.ts +33 -0
- package/template/react-vite/cli/ts/Page.tsx +73 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EmptyBlock
|
|
3
|
+
} from "./chunk-6ELMKWKX.js";
|
|
4
|
+
import {
|
|
5
|
+
clsx
|
|
6
|
+
} from "./chunk-CNED6RYH.js";
|
|
7
|
+
|
|
8
|
+
// src/addon-docs/blocks/components/SnippetWarning.tsx
|
|
9
|
+
import { Button } from "@aussieljk/forkbook/internal/components";
|
|
10
|
+
import { TriangleAlertIcon } from "lucide-react";
|
|
11
|
+
|
|
12
|
+
// storybook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/components/SnippetWarning.module.css
|
|
13
|
+
var id = "core/src/addon-docs/blocks/components/SnippetWarning.module.css";
|
|
14
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]`)) {
|
|
15
|
+
let style = document.createElement("style");
|
|
16
|
+
style.setAttribute("data-fb-css", id), style.textContent = ".fb-nSm15W-warningButton{color:var(--fb-fg-color-warning);&:hover,&:focus-visible{color:var(--fb-fg-color-warning);background:var(--fb-bg-color-warning)}}", document.head.appendChild(style);
|
|
17
|
+
}
|
|
18
|
+
var SnippetWarning_default = { warningButton: "fb-nSm15W-warningButton" };
|
|
19
|
+
|
|
20
|
+
// src/addon-docs/blocks/components/SnippetWarning.tsx
|
|
21
|
+
import { jsx } from "react/jsx-runtime";
|
|
22
|
+
var SNIPPET_WARNING_LABEL = "Incomplete code snippet", SnippetWarning = ({ warning, className }) => warning?.trim() ? jsx(
|
|
23
|
+
Button,
|
|
24
|
+
{
|
|
25
|
+
className: clsx(SnippetWarning_default.warningButton, className),
|
|
26
|
+
ariaLabel: SNIPPET_WARNING_LABEL,
|
|
27
|
+
tooltip: warning,
|
|
28
|
+
variant: "ghost",
|
|
29
|
+
size: "small",
|
|
30
|
+
padding: "small",
|
|
31
|
+
children: jsx(TriangleAlertIcon, {})
|
|
32
|
+
}
|
|
33
|
+
) : null;
|
|
34
|
+
|
|
35
|
+
// src/addon-docs/blocks/components/Source.tsx
|
|
36
|
+
import { SyntaxHighlighter } from "@aussieljk/forkbook/internal/components";
|
|
37
|
+
import { ThemeProvider, convert, themes, useTheme } from "@aussieljk/forkbook/theming";
|
|
38
|
+
|
|
39
|
+
// storybook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/components/Source.module.css
|
|
40
|
+
var id2 = "core/src/addon-docs/blocks/components/Source.module.css";
|
|
41
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id2}"]`)) {
|
|
42
|
+
let style = document.createElement("style");
|
|
43
|
+
style.setAttribute("data-fb-css", id2), style.textContent = ".fb-I61SDG-syntaxHighlighter{font-size:calc(var(--fb-size-s2) - 1px);border-radius:var(--fb-app-border-radius);margin:25px 0 40px;line-height:19px;box-shadow:0 1px 3px #0000001a;& pre.fb-I61SDG-prismjs{background:inherit;padding:20px}}.fb-I61SDG-snippetWarning{z-index:1;position:absolute;top:4px;right:4px}.fb-I61SDG-sourceWrapper{position:relative}.fb-I61SDG-skeletonWrapper{background:var(--fb-background-content);border-radius:var(--fb-app-border-radius);border:1px solid var(--fb-app-border-color);margin:25px 0 40px;padding:20px 20px 20px 22px;box-shadow:0 1px 3px #0000001a}:where([data-fb-theme=dark]){& .fb-I61SDG-syntaxHighlighter,& .fb-I61SDG-skeletonWrapper{box-shadow:0 2px 5px #0003}}.fb-I61SDG-skeletonPlaceholder{background:var(--fb-app-border-color);width:60%;height:17px;margin-top:1px;animation:1.5s ease-in-out infinite fb-I61SDG-glow;&:first-child{margin:0}}@keyframes fb-I61SDG-glow{0%,to{opacity:1}50%{opacity:.4}}", document.head.appendChild(style);
|
|
44
|
+
}
|
|
45
|
+
var Source_default = { skeletonPlaceholder: "fb-I61SDG-skeletonPlaceholder", snippetWarning: "fb-I61SDG-snippetWarning", prismjs: "fb-I61SDG-prismjs", sourceWrapper: "fb-I61SDG-sourceWrapper", glow: "fb-I61SDG-glow", skeletonWrapper: "fb-I61SDG-skeletonWrapper", syntaxHighlighter: "fb-I61SDG-syntaxHighlighter" };
|
|
46
|
+
|
|
47
|
+
// src/addon-docs/blocks/components/Source.tsx
|
|
48
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
49
|
+
var StyledSyntaxHighlighter = ({
|
|
50
|
+
className,
|
|
51
|
+
...props
|
|
52
|
+
}) => jsx2(SyntaxHighlighter, { className: clsx(Source_default.syntaxHighlighter, className), ...props });
|
|
53
|
+
var SourceSkeleton = () => jsxs("div", { className: Source_default.skeletonWrapper, children: [
|
|
54
|
+
jsx2("div", { className: Source_default.skeletonPlaceholder }),
|
|
55
|
+
jsx2("div", { className: Source_default.skeletonPlaceholder, style: { width: "80%" } }),
|
|
56
|
+
jsx2("div", { className: Source_default.skeletonPlaceholder, style: { width: "30%" } }),
|
|
57
|
+
jsx2("div", { className: Source_default.skeletonPlaceholder, style: { width: "80%" } })
|
|
58
|
+
] }), Source = ({
|
|
59
|
+
isLoading,
|
|
60
|
+
error,
|
|
61
|
+
language,
|
|
62
|
+
code,
|
|
63
|
+
dark,
|
|
64
|
+
format = !0,
|
|
65
|
+
copyable = !0,
|
|
66
|
+
warning,
|
|
67
|
+
...rest
|
|
68
|
+
}) => {
|
|
69
|
+
let { typography } = useTheme();
|
|
70
|
+
if (isLoading)
|
|
71
|
+
return jsx2(SourceSkeleton, {});
|
|
72
|
+
if (error)
|
|
73
|
+
return jsx2(EmptyBlock, { children: error });
|
|
74
|
+
let highlighter = jsx2(
|
|
75
|
+
StyledSyntaxHighlighter,
|
|
76
|
+
{
|
|
77
|
+
bordered: !0,
|
|
78
|
+
copyable,
|
|
79
|
+
format,
|
|
80
|
+
language: language ?? "jsx",
|
|
81
|
+
className: "docblock-source fb-unstyled",
|
|
82
|
+
...rest,
|
|
83
|
+
children: code
|
|
84
|
+
}
|
|
85
|
+
), syntaxHighlighter = warning ? jsxs("div", { className: Source_default.sourceWrapper, children: [
|
|
86
|
+
highlighter,
|
|
87
|
+
jsx2(SnippetWarning, { className: Source_default.snippetWarning, warning })
|
|
88
|
+
] }) : highlighter;
|
|
89
|
+
if (typeof dark > "u")
|
|
90
|
+
return syntaxHighlighter;
|
|
91
|
+
let overrideTheme = dark ? themes.dark : themes.light;
|
|
92
|
+
return jsx2(
|
|
93
|
+
ThemeProvider,
|
|
94
|
+
{
|
|
95
|
+
theme: convert({
|
|
96
|
+
...overrideTheme,
|
|
97
|
+
fontCode: typography.fonts.mono,
|
|
98
|
+
fontBase: typography.fonts.base
|
|
99
|
+
}),
|
|
100
|
+
children: syntaxHighlighter
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export {
|
|
106
|
+
SnippetWarning,
|
|
107
|
+
Source
|
|
108
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clsx
|
|
3
|
+
} from "./chunk-CNED6RYH.js";
|
|
4
|
+
|
|
5
|
+
// src/addon-docs/blocks/components/EmptyBlock.tsx
|
|
6
|
+
import { withReset } from "@aussieljk/forkbook/internal/components";
|
|
7
|
+
|
|
8
|
+
// storybook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/components/EmptyBlock.module.css
|
|
9
|
+
var id = "core/src/addon-docs/blocks/components/EmptyBlock.module.css";
|
|
10
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]`)) {
|
|
11
|
+
let style = document.createElement("style");
|
|
12
|
+
style.setAttribute("data-fb-css", id), style.textContent = ".fb-he578q-wrapper{border-radius:var(--fb-app-border-radius);border:1px dashed var(--fb-app-border-color);color:rgb(from var(--fb-color-default-text) r g b / calc(alpha - .3));font-size:var(--fb-size-s2);background-color:#00000003;justify-content:center;align-items:center;margin:25px 0 40px;padding:20px;display:flex}:where([data-fb-theme=dark]) .fb-he578q-wrapper{background-color:#ffffff03}", document.head.appendChild(style);
|
|
13
|
+
}
|
|
14
|
+
var EmptyBlock_default = { wrapper: "fb-he578q-wrapper" };
|
|
15
|
+
|
|
16
|
+
// src/addon-docs/blocks/components/EmptyBlock.tsx
|
|
17
|
+
import { jsx } from "react/jsx-runtime";
|
|
18
|
+
var EmptyBlock = (props) => jsx("div", { ...props, className: clsx(withReset, EmptyBlock_default.wrapper, "docblock-emptyblock fb-unstyled") });
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
EmptyBlock
|
|
22
|
+
};
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StorybookError
|
|
3
|
+
} from "./chunk-MJIDTL3X.js";
|
|
4
|
+
import {
|
|
5
|
+
require_picocolors_browser
|
|
6
|
+
} from "./chunk-SC67XZST.js";
|
|
7
|
+
import {
|
|
8
|
+
__toESM
|
|
9
|
+
} from "./chunk-IMSF75WX.js";
|
|
10
|
+
|
|
11
|
+
// src/server-errors.ts
|
|
12
|
+
var import_picocolors = __toESM(require_picocolors_browser(), 1);
|
|
13
|
+
import { dedent } from "ts-dedent";
|
|
14
|
+
|
|
15
|
+
// src/shared/open-service/errors.ts
|
|
16
|
+
function formatIssuePath(path) {
|
|
17
|
+
return path?.length ? path.map((segment) => {
|
|
18
|
+
let key = typeof segment == "object" && segment !== null && "key" in segment ? segment.key : segment;
|
|
19
|
+
return typeof key == "number" ? `[${key}]` : `.${String(key)}`;
|
|
20
|
+
}).join("").replace(/^\./, "") : "";
|
|
21
|
+
}
|
|
22
|
+
function formatIssues(issues) {
|
|
23
|
+
return issues.map((issue) => {
|
|
24
|
+
let path = formatIssuePath(issue.path);
|
|
25
|
+
return path === "" ? issue.message : `${path}: ${issue.message}`;
|
|
26
|
+
}).join(`
|
|
27
|
+
`);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// src/server-errors.ts
|
|
31
|
+
var OpenServiceValidationError = class extends StorybookError {
|
|
32
|
+
constructor(data) {
|
|
33
|
+
super({
|
|
34
|
+
name: "OpenServiceValidationError",
|
|
35
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
36
|
+
code: 5,
|
|
37
|
+
message: `Invalid ${data.phase} for ${data.kind} "${data.serviceId}.${data.name}":
|
|
38
|
+
${formatIssues(
|
|
39
|
+
data.issues
|
|
40
|
+
)}`
|
|
41
|
+
});
|
|
42
|
+
this.data = data;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var OpenServiceMissingServiceError = class extends StorybookError {
|
|
46
|
+
constructor(data) {
|
|
47
|
+
super({
|
|
48
|
+
name: "OpenServiceMissingServiceError",
|
|
49
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
50
|
+
code: 7,
|
|
51
|
+
message: `No registered service with id "${data.serviceId}" exists in this environment.`
|
|
52
|
+
});
|
|
53
|
+
this.data = data;
|
|
54
|
+
}
|
|
55
|
+
}, OpenServiceInternalServiceError = class extends StorybookError {
|
|
56
|
+
constructor(data) {
|
|
57
|
+
super({
|
|
58
|
+
name: "OpenServiceInternalServiceError",
|
|
59
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
60
|
+
code: 19,
|
|
61
|
+
message: `Service "${data.serviceId}" is internal. Pass { internal: true } to getService() only if you intentionally depend on an unstable OSA surface. Internal services may change without notice.`
|
|
62
|
+
});
|
|
63
|
+
this.data = data;
|
|
64
|
+
}
|
|
65
|
+
}, OpenServiceUnimplementedOperationError = class extends StorybookError {
|
|
66
|
+
constructor(data) {
|
|
67
|
+
super({
|
|
68
|
+
name: "OpenServiceUnimplementedOperationError",
|
|
69
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
70
|
+
code: 8,
|
|
71
|
+
message: `${data.kind[0].toUpperCase()}${data.kind.slice(1)} "${data.serviceId}.${data.name}" is not implemented for this environment.`
|
|
72
|
+
});
|
|
73
|
+
this.data = data;
|
|
74
|
+
}
|
|
75
|
+
}, OpenServiceInvalidStaticPathError = class extends StorybookError {
|
|
76
|
+
constructor(data) {
|
|
77
|
+
super({
|
|
78
|
+
name: "OpenServiceInvalidStaticPathError",
|
|
79
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
80
|
+
code: 10,
|
|
81
|
+
message: `Invalid static path "${data.path}" for query "${data.serviceId}.${data.name}": use a relative path with forward slashes and no ".." segments.`
|
|
82
|
+
});
|
|
83
|
+
this.data = data;
|
|
84
|
+
}
|
|
85
|
+
}, OpenServiceAsyncSchemaError = class extends StorybookError {
|
|
86
|
+
constructor(data) {
|
|
87
|
+
super({
|
|
88
|
+
name: "OpenServiceAsyncSchemaError",
|
|
89
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
90
|
+
code: 9,
|
|
91
|
+
message: `Async schema for ${data.kind} "${data.serviceId}.${data.name}" (${data.phase}): query input and output schemas must validate synchronously.`
|
|
92
|
+
});
|
|
93
|
+
this.data = data;
|
|
94
|
+
}
|
|
95
|
+
}, OpenServiceLoadedDrainExceededError = class extends StorybookError {
|
|
96
|
+
constructor(data) {
|
|
97
|
+
super({
|
|
98
|
+
name: "OpenServiceLoadedDrainExceededError",
|
|
99
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
100
|
+
code: 11,
|
|
101
|
+
message: `Query "${data.serviceId}.${data.name}".loaded(...) did not settle after ${data.iterations} drain iterations. Check for handlers that keep discovering new dependencies after every state change.`
|
|
102
|
+
});
|
|
103
|
+
this.data = data;
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
var OpenServiceMissingChannelError = class extends StorybookError {
|
|
107
|
+
constructor(data = {}) {
|
|
108
|
+
super({
|
|
109
|
+
name: "OpenServiceMissingChannelError",
|
|
110
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
111
|
+
code: 13,
|
|
112
|
+
message: data.serviceId ? `Cannot register service "${data.serviceId}": the Forkbook addons channel is not installed in this runtime.` : "The Forkbook addons channel is not installed in this runtime."
|
|
113
|
+
});
|
|
114
|
+
this.data = data;
|
|
115
|
+
}
|
|
116
|
+
}, OpenServiceRemoteCommandDisconnectedError = class extends StorybookError {
|
|
117
|
+
constructor(data) {
|
|
118
|
+
super({
|
|
119
|
+
name: "OpenServiceRemoteCommandDisconnectedError",
|
|
120
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
121
|
+
code: 14,
|
|
122
|
+
message: `Service "${data.serviceId}" was unregistered before a remote command resolved.`
|
|
123
|
+
});
|
|
124
|
+
this.data = data;
|
|
125
|
+
}
|
|
126
|
+
}, OpenServiceRemoteCommandUnhandledError = class extends StorybookError {
|
|
127
|
+
constructor(data) {
|
|
128
|
+
super({
|
|
129
|
+
name: "OpenServiceRemoteCommandUnhandledError",
|
|
130
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
131
|
+
code: 15,
|
|
132
|
+
message: data.delegated ? `The Forkbook this runtime is attached to did not acknowledge remote command "${data.serviceId}.${data.commandName}" in time \u2014 it may be busy or unreachable. Retry; note the command may still have executed on that instance.` : `No runtime acknowledged remote command "${data.serviceId}.${data.commandName}"; its handler is not implemented in any connected runtime.`
|
|
133
|
+
});
|
|
134
|
+
this.data = data;
|
|
135
|
+
}
|
|
136
|
+
}, OpenServiceRemoteCommandConfigDriftError = class extends StorybookError {
|
|
137
|
+
constructor(data) {
|
|
138
|
+
super({
|
|
139
|
+
name: "OpenServiceRemoteCommandConfigDriftError",
|
|
140
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
141
|
+
code: 30,
|
|
142
|
+
message: `The Forkbook this runtime is attached to reported it has no handler for remote command "${data.serviceId}.${data.commandName}". The two processes are running different configurations (for example a feature flag enabled in one but not the other). Restart the attached Forkbook with a configuration matching this process.`
|
|
143
|
+
});
|
|
144
|
+
this.data = data;
|
|
145
|
+
}
|
|
146
|
+
}, OpenServiceAsyncRecipeError = class extends StorybookError {
|
|
147
|
+
constructor() {
|
|
148
|
+
super({
|
|
149
|
+
name: "OpenServiceAsyncRecipeError",
|
|
150
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
151
|
+
code: 31,
|
|
152
|
+
message: "setState recipes must be synchronous. A write after an await would change state without authoring a sync entry. Split the command into one setState per synchronous step."
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}, OpenServiceCyclicStateError = class extends StorybookError {
|
|
156
|
+
constructor() {
|
|
157
|
+
super({
|
|
158
|
+
name: "OpenServiceCyclicStateError",
|
|
159
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
160
|
+
code: 32,
|
|
161
|
+
message: "Service state must be JSON-serializable, but the value is cyclic or nested more than 256 levels deep. Store an id and look the value up in a query instead of a reference."
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
}, OpenServiceOperationNameCollisionError = class extends StorybookError {
|
|
165
|
+
constructor(data) {
|
|
166
|
+
super({
|
|
167
|
+
name: "OpenServiceOperationNameCollisionError",
|
|
168
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
169
|
+
code: 16,
|
|
170
|
+
message: `Service "${data.serviceId}" cannot register "${data.operationName}" as both a query and a command.`
|
|
171
|
+
});
|
|
172
|
+
this.data = data;
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
var OpenServiceMissingToolsetError = class extends StorybookError {
|
|
176
|
+
constructor(data) {
|
|
177
|
+
super({
|
|
178
|
+
name: "OpenServiceMissingToolsetError",
|
|
179
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
180
|
+
code: 23,
|
|
181
|
+
message: `No registered toolset with id "${data.toolsetId}" exists in this environment.`
|
|
182
|
+
});
|
|
183
|
+
this.data = data;
|
|
184
|
+
}
|
|
185
|
+
}, OpenServiceDuplicateToolsetError = class extends StorybookError {
|
|
186
|
+
constructor(data) {
|
|
187
|
+
super({
|
|
188
|
+
name: "OpenServiceDuplicateToolsetError",
|
|
189
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
190
|
+
code: 24,
|
|
191
|
+
message: `A toolset with id "${data.toolsetId}" is already registered. Each public toolset must be registered exactly once.`
|
|
192
|
+
});
|
|
193
|
+
this.data = data;
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
var OpenServiceInvalidToolsetMethodIdError = class extends StorybookError {
|
|
197
|
+
constructor(data) {
|
|
198
|
+
super({
|
|
199
|
+
name: "OpenServiceInvalidToolsetMethodIdError",
|
|
200
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
201
|
+
code: 28,
|
|
202
|
+
message: `Invalid toolset method id "${data.methodId}". Expected exactly one separator: toolsetId.methodName.`
|
|
203
|
+
});
|
|
204
|
+
this.data = data;
|
|
205
|
+
}
|
|
206
|
+
}, OpenServiceDuplicateToolNameError = class extends StorybookError {
|
|
207
|
+
constructor(data) {
|
|
208
|
+
super({
|
|
209
|
+
name: "OpenServiceDuplicateToolNameError",
|
|
210
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
211
|
+
code: 29,
|
|
212
|
+
message: data.transport === "mcp" ? `Derived MCP tool name "${data.derivedName}" collides between "${data.first}" and "${data.second}". Rename one toolset id or method key.` : `Derived CLI method name "${data.derivedName}" collides between "${data.first}" and "${data.second}" in the same toolset. Rename one method key.`
|
|
213
|
+
});
|
|
214
|
+
this.data = data;
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
var StatusTypeIdMismatchError = class extends StorybookError {
|
|
218
|
+
constructor(data) {
|
|
219
|
+
super({
|
|
220
|
+
name: "StatusTypeIdMismatchError",
|
|
221
|
+
category: "CORE-SERVER" /* CORE_SERVER */,
|
|
222
|
+
code: 16,
|
|
223
|
+
message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify(
|
|
224
|
+
data.status,
|
|
225
|
+
null,
|
|
226
|
+
2
|
|
227
|
+
)}`
|
|
228
|
+
});
|
|
229
|
+
this.data = data;
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
export {
|
|
234
|
+
OpenServiceValidationError,
|
|
235
|
+
OpenServiceMissingServiceError,
|
|
236
|
+
OpenServiceInternalServiceError,
|
|
237
|
+
OpenServiceUnimplementedOperationError,
|
|
238
|
+
OpenServiceInvalidStaticPathError,
|
|
239
|
+
OpenServiceAsyncSchemaError,
|
|
240
|
+
OpenServiceLoadedDrainExceededError,
|
|
241
|
+
OpenServiceMissingChannelError,
|
|
242
|
+
OpenServiceRemoteCommandDisconnectedError,
|
|
243
|
+
OpenServiceRemoteCommandUnhandledError,
|
|
244
|
+
OpenServiceRemoteCommandConfigDriftError,
|
|
245
|
+
OpenServiceAsyncRecipeError,
|
|
246
|
+
OpenServiceCyclicStateError,
|
|
247
|
+
OpenServiceOperationNameCollisionError,
|
|
248
|
+
OpenServiceMissingToolsetError,
|
|
249
|
+
OpenServiceDuplicateToolsetError,
|
|
250
|
+
OpenServiceInvalidToolsetMethodIdError,
|
|
251
|
+
OpenServiceDuplicateToolNameError,
|
|
252
|
+
StatusTypeIdMismatchError
|
|
253
|
+
};
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-IMSF75WX.js";
|
|
4
|
+
|
|
5
|
+
// src/nextjs-vite/preview.tsx
|
|
6
|
+
var preview_exports = {};
|
|
7
|
+
__export(preview_exports, {
|
|
8
|
+
decorators: () => decorators,
|
|
9
|
+
loaders: () => loaders,
|
|
10
|
+
parameters: () => parameters
|
|
11
|
+
});
|
|
12
|
+
import { createNavigation } from "@aussieljk/forkbook/nextjs-vite/navigation.mock";
|
|
13
|
+
import { createRouter } from "@aussieljk/forkbook/nextjs-vite/router.mock";
|
|
14
|
+
import { isNextRouterError } from "next/dist/client/components/is-next-router-error.js";
|
|
15
|
+
|
|
16
|
+
// src/nextjs-vite/head-manager/head-manager-provider.tsx
|
|
17
|
+
import { useMemo } from "react";
|
|
18
|
+
import initHeadManager from "next/dist/client/head-manager.js";
|
|
19
|
+
import { HeadManagerContext } from "next/dist/shared/lib/head-manager-context.shared-runtime.js";
|
|
20
|
+
import { jsx } from "react/jsx-runtime";
|
|
21
|
+
var HeadManagerProvider = ({ children }) => {
|
|
22
|
+
let headManager = useMemo(initHeadManager, []);
|
|
23
|
+
return headManager.getIsSsr = () => !1, jsx(HeadManagerContext.Provider, { value: headManager, children });
|
|
24
|
+
}, head_manager_provider_default = HeadManagerProvider;
|
|
25
|
+
|
|
26
|
+
// src/nextjs-vite/head-manager/decorator.tsx
|
|
27
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
28
|
+
var HeadManagerDecorator = (Story) => jsx2(head_manager_provider_default, { children: jsx2(Story, {}) });
|
|
29
|
+
|
|
30
|
+
// src/nextjs-vite/images/decorator.tsx
|
|
31
|
+
import { ImageContext } from "fb-original/image-context";
|
|
32
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
33
|
+
var ImageDecorator = (Story, { parameters: parameters2 }) => parameters2.nextjs?.image ? jsx3(ImageContext.Provider, { value: parameters2.nextjs.image, children: jsx3(Story, {}) }) : jsx3(Story, {});
|
|
34
|
+
|
|
35
|
+
// src/nextjs-vite/routing/decorator.tsx
|
|
36
|
+
import { RedirectBoundary } from "next/dist/client/components/redirect-boundary.js";
|
|
37
|
+
|
|
38
|
+
// src/nextjs-vite/routing/app-router-provider.tsx
|
|
39
|
+
import { useMemo as useMemo2 } from "react";
|
|
40
|
+
import { getRouter } from "@aussieljk/forkbook/nextjs-vite/navigation.mock";
|
|
41
|
+
import {
|
|
42
|
+
AppRouterContext,
|
|
43
|
+
GlobalLayoutRouterContext,
|
|
44
|
+
LayoutRouterContext
|
|
45
|
+
} from "next/dist/shared/lib/app-router-context.shared-runtime.js";
|
|
46
|
+
import {
|
|
47
|
+
PathParamsContext,
|
|
48
|
+
PathnameContext,
|
|
49
|
+
SearchParamsContext
|
|
50
|
+
} from "next/dist/shared/lib/hooks-client-context.shared-runtime.js";
|
|
51
|
+
import { PAGE_SEGMENT_KEY } from "next/dist/shared/lib/segment.js";
|
|
52
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
53
|
+
var getParallelRoutes = (segmentsList) => {
|
|
54
|
+
let segment = segmentsList.shift();
|
|
55
|
+
return segment ? [segment, { children: getParallelRoutes(segmentsList) }] : [];
|
|
56
|
+
}, AppRouterProvider = ({
|
|
57
|
+
children,
|
|
58
|
+
routeParams
|
|
59
|
+
}) => {
|
|
60
|
+
let { pathname, query, segments = [] } = routeParams, tree = [pathname, { children: getParallelRoutes([...segments]) }], pathParams = useMemo2(() => {
|
|
61
|
+
let params = {}, currentSegments = routeParams.segments;
|
|
62
|
+
if (currentSegments) {
|
|
63
|
+
if (Array.isArray(currentSegments)) {
|
|
64
|
+
for (let segmentEntry of currentSegments)
|
|
65
|
+
if (Array.isArray(segmentEntry) && segmentEntry.length === 2 && typeof segmentEntry[0] == "string") {
|
|
66
|
+
let key = segmentEntry[0], value = segmentEntry[1];
|
|
67
|
+
params[key] = value;
|
|
68
|
+
}
|
|
69
|
+
} else if (typeof currentSegments == "object" && !Array.isArray(currentSegments)) {
|
|
70
|
+
let segmentObject = currentSegments;
|
|
71
|
+
for (let key in segmentObject)
|
|
72
|
+
Object.prototype.hasOwnProperty.call(segmentObject, key) && (params[key] = segmentObject[key]);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return params;
|
|
76
|
+
}, [routeParams.segments]), newLazyCacheNode = {
|
|
77
|
+
lazyData: null,
|
|
78
|
+
rsc: null,
|
|
79
|
+
prefetchRsc: null,
|
|
80
|
+
head: null,
|
|
81
|
+
prefetchHead: null,
|
|
82
|
+
parallelRoutes: /* @__PURE__ */ new Map(),
|
|
83
|
+
loading: null
|
|
84
|
+
};
|
|
85
|
+
return jsx4(PathParamsContext.Provider, { value: pathParams, children: jsx4(PathnameContext.Provider, { value: pathname, children: jsx4(SearchParamsContext.Provider, { value: new URLSearchParams(query), children: jsx4(
|
|
86
|
+
GlobalLayoutRouterContext.Provider,
|
|
87
|
+
{
|
|
88
|
+
value: {
|
|
89
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
90
|
+
// @ts-ignore (Only available in Next.js >= v15.1.1)
|
|
91
|
+
changeByServerResponse() {
|
|
92
|
+
},
|
|
93
|
+
buildId: "storybook",
|
|
94
|
+
tree,
|
|
95
|
+
focusAndScrollRef: {
|
|
96
|
+
apply: !1,
|
|
97
|
+
hashFragment: null,
|
|
98
|
+
segmentPaths: [tree],
|
|
99
|
+
onlyHashChange: !1
|
|
100
|
+
},
|
|
101
|
+
nextUrl: pathname
|
|
102
|
+
},
|
|
103
|
+
children: jsx4(AppRouterContext.Provider, { value: getRouter(), children: jsx4(
|
|
104
|
+
LayoutRouterContext.Provider,
|
|
105
|
+
{
|
|
106
|
+
value: {
|
|
107
|
+
// TODO Remove when dropping Next.js < v15.1.1
|
|
108
|
+
childNodes: /* @__PURE__ */ new Map(),
|
|
109
|
+
tree,
|
|
110
|
+
// TODO END
|
|
111
|
+
// START Next.js v15.2 support
|
|
112
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
113
|
+
// @ts-ignore Only available in Next.js >= v15.1.1
|
|
114
|
+
parentTree: tree,
|
|
115
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
116
|
+
// @ts-ignore Only available in Next.js >= v15.1.1
|
|
117
|
+
parentCacheNode: newLazyCacheNode,
|
|
118
|
+
// END
|
|
119
|
+
// START Next.js v16.4 support
|
|
120
|
+
// The route tree of the root segment. `useRouter` reads `data.bfcacheId`, and
|
|
121
|
+
// a layout router reads `slots` (null: a story has no child segments).
|
|
122
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
123
|
+
// @ts-ignore Only available in Next.js >= v16.4.0
|
|
124
|
+
parentRenderTree: {
|
|
125
|
+
segment: "",
|
|
126
|
+
data: { ...newLazyCacheNode, bfcacheId: 0 },
|
|
127
|
+
slots: null
|
|
128
|
+
},
|
|
129
|
+
// END
|
|
130
|
+
url: pathname,
|
|
131
|
+
loading: null
|
|
132
|
+
},
|
|
133
|
+
children
|
|
134
|
+
}
|
|
135
|
+
) })
|
|
136
|
+
}
|
|
137
|
+
) }) }) });
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
// src/nextjs-vite/routing/page-router-provider.tsx
|
|
141
|
+
import { getRouter as getRouter2 } from "@aussieljk/forkbook/nextjs-vite/router.mock";
|
|
142
|
+
import { RouterContext } from "next/dist/shared/lib/router-context.shared-runtime.js";
|
|
143
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
144
|
+
var PageRouterProvider = ({ children }) => jsx5(RouterContext.Provider, { value: getRouter2(), children });
|
|
145
|
+
|
|
146
|
+
// src/nextjs-vite/routing/decorator.tsx
|
|
147
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
148
|
+
var defaultRouterParams = {
|
|
149
|
+
pathname: "/",
|
|
150
|
+
query: {}
|
|
151
|
+
}, RouterDecorator = (Story, { parameters: parameters2 }) => parameters2.nextjs?.appDirectory ?? !1 ? AppRouterProvider ? jsx6(
|
|
152
|
+
AppRouterProvider,
|
|
153
|
+
{
|
|
154
|
+
routeParams: {
|
|
155
|
+
...defaultRouterParams,
|
|
156
|
+
...parameters2.nextjs?.navigation
|
|
157
|
+
},
|
|
158
|
+
children: jsx6(RedirectBoundary, { children: jsx6(Story, {}) })
|
|
159
|
+
}
|
|
160
|
+
) : null : jsx6(PageRouterProvider, { children: jsx6(Story, {}) });
|
|
161
|
+
|
|
162
|
+
// src/nextjs-vite/styledJsx/decorator.tsx
|
|
163
|
+
import { StyleRegistry } from "styled-jsx";
|
|
164
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
165
|
+
var StyledJsxDecorator = (Story) => jsx7(StyleRegistry, { children: jsx7(Story, {}) });
|
|
166
|
+
|
|
167
|
+
// src/nextjs-vite/preview.tsx
|
|
168
|
+
function addNextHeadCount() {
|
|
169
|
+
let meta = document.createElement("meta");
|
|
170
|
+
meta.name = "next-head-count", meta.content = "0", document.head.appendChild(meta);
|
|
171
|
+
}
|
|
172
|
+
function isAsyncClientComponentError(error) {
|
|
173
|
+
return typeof error == "string" && (error.includes("Only Server Components can be async at the moment.") || error.includes("A component was suspended by an uncached promise.") || error.includes("async/await is not yet supported in Client Components"));
|
|
174
|
+
}
|
|
175
|
+
addNextHeadCount();
|
|
176
|
+
var origConsoleError = globalThis.console.error;
|
|
177
|
+
globalThis.console.error = (...args) => {
|
|
178
|
+
let error = args[0];
|
|
179
|
+
isNextRouterError(error) || isAsyncClientComponentError(error) || origConsoleError.apply(globalThis.console, args);
|
|
180
|
+
};
|
|
181
|
+
globalThis.addEventListener("error", (ev) => {
|
|
182
|
+
if (isNextRouterError(ev.error) || isAsyncClientComponentError(ev.error)) {
|
|
183
|
+
ev.preventDefault();
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
var asDecorator = (decorator) => decorator, decorators = [
|
|
188
|
+
asDecorator(StyledJsxDecorator),
|
|
189
|
+
asDecorator(ImageDecorator),
|
|
190
|
+
asDecorator(RouterDecorator),
|
|
191
|
+
asDecorator(HeadManagerDecorator)
|
|
192
|
+
], loaders = async ({ globals, parameters: parameters2 }) => {
|
|
193
|
+
let { router, appDirectory } = parameters2.nextjs ?? {};
|
|
194
|
+
appDirectory ? createNavigation(router) : createRouter({
|
|
195
|
+
locale: globals.locale,
|
|
196
|
+
...router
|
|
197
|
+
});
|
|
198
|
+
}, parameters = {
|
|
199
|
+
docs: {
|
|
200
|
+
source: {
|
|
201
|
+
excludeDecorators: !0
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
react: {
|
|
205
|
+
rootOptions: {
|
|
206
|
+
onCaughtError(error) {
|
|
207
|
+
isNextRouterError(error) || console.error(error);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
export {
|
|
214
|
+
decorators,
|
|
215
|
+
loaders,
|
|
216
|
+
parameters,
|
|
217
|
+
preview_exports
|
|
218
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
toCliMethodName
|
|
3
|
+
} from "./chunk-LEVSOOLQ.js";
|
|
4
|
+
|
|
5
|
+
// src/shared/open-service/toolset-definition.ts
|
|
6
|
+
function defineToolset(definition) {
|
|
7
|
+
for (let [methodName, method] of Object.entries(definition.methods)) {
|
|
8
|
+
let input = method.input;
|
|
9
|
+
if (input["~standard"].vendor === "valibot" && input.type !== "strict_object")
|
|
10
|
+
throw new Error(
|
|
11
|
+
`Toolset method "${definition.id}.${methodName}" must declare its input with v.strictObject, got a valibot "${String(input.type)}" schema. Undeclared arguments would otherwise be silently dropped or passed through instead of rejected.`
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
return definition;
|
|
15
|
+
}
|
|
16
|
+
function resolveToolsetDescription(description, context) {
|
|
17
|
+
return typeof description == "function" ? description(context) : description;
|
|
18
|
+
}
|
|
19
|
+
async function invokeToolsetMethod(toolset, methodName, input, context) {
|
|
20
|
+
let { telemetry, ...outcome } = await toolset.methods[methodName].handler(input, context);
|
|
21
|
+
return telemetry ? {
|
|
22
|
+
...outcome,
|
|
23
|
+
telemetry: {
|
|
24
|
+
...telemetry,
|
|
25
|
+
toolset: toolset.id,
|
|
26
|
+
tool: toCliMethodName(methodName),
|
|
27
|
+
event: `tool:${toolset.id}_${methodName}`
|
|
28
|
+
}
|
|
29
|
+
} : outcome;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
defineToolset,
|
|
34
|
+
resolveToolsetDescription,
|
|
35
|
+
invokeToolsetMethod
|
|
36
|
+
};
|