@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,294 @@
|
|
|
1
|
+
import { n as __esmMin } from "./runtime-BdGkqNEt.js";
|
|
2
|
+
import { $t as useStorybookApi, Cr as init__storybook_global_react, Er as useCallback, Fr as useRef, Nr as useMemo, Vt as init_manager_api, Xt as useGlobals, Zt as useParameter, kr as useEffect } from "./runtime-DG61zYUm.js";
|
|
3
|
+
//#region src/viewport/constants.ts
|
|
4
|
+
var ADDON_ID, PARAM_KEY, RESPONSIVE_VIEWPORT_VALUE;
|
|
5
|
+
function init_constants() {
|
|
6
|
+
return (init_constants = __esmMin((() => {
|
|
7
|
+
ADDON_ID = "@aussieljk/forkbook/viewport";
|
|
8
|
+
PARAM_KEY = "viewport";
|
|
9
|
+
RESPONSIVE_VIEWPORT_VALUE = "100pct-100pct";
|
|
10
|
+
})))();
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/viewport/defaults.ts
|
|
14
|
+
var MINIMAL_VIEWPORTS;
|
|
15
|
+
function init_defaults() {
|
|
16
|
+
return (init_defaults = __esmMin((() => {
|
|
17
|
+
MINIMAL_VIEWPORTS = {
|
|
18
|
+
mobile1: {
|
|
19
|
+
name: "Small mobile",
|
|
20
|
+
styles: {
|
|
21
|
+
height: "568px",
|
|
22
|
+
width: "320px"
|
|
23
|
+
},
|
|
24
|
+
type: "mobile"
|
|
25
|
+
},
|
|
26
|
+
mobile2: {
|
|
27
|
+
name: "Large mobile",
|
|
28
|
+
styles: {
|
|
29
|
+
height: "896px",
|
|
30
|
+
width: "414px"
|
|
31
|
+
},
|
|
32
|
+
type: "mobile"
|
|
33
|
+
},
|
|
34
|
+
tablet: {
|
|
35
|
+
name: "Tablet",
|
|
36
|
+
styles: {
|
|
37
|
+
height: "1112px",
|
|
38
|
+
width: "834px"
|
|
39
|
+
},
|
|
40
|
+
type: "tablet"
|
|
41
|
+
},
|
|
42
|
+
desktop: {
|
|
43
|
+
name: "Desktop",
|
|
44
|
+
styles: {
|
|
45
|
+
height: "1024px",
|
|
46
|
+
width: "1280px"
|
|
47
|
+
},
|
|
48
|
+
type: "desktop"
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
})))();
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/viewport/resolveViewport.ts
|
|
55
|
+
var URL_VALUE_PATTERN, normalizeGlobal$1, resolveViewport;
|
|
56
|
+
function init_resolveViewport() {
|
|
57
|
+
return (init_resolveViewport = __esmMin((() => {
|
|
58
|
+
init_constants();
|
|
59
|
+
URL_VALUE_PATTERN = /^([0-9]{1,4})([a-z]{0,4})-([0-9]{1,4})([a-z]{0,4})$/;
|
|
60
|
+
normalizeGlobal$1 = (value, defaultIsRotated) => typeof value === "string" ? {
|
|
61
|
+
value,
|
|
62
|
+
isRotated: defaultIsRotated
|
|
63
|
+
} : {
|
|
64
|
+
value: value?.value,
|
|
65
|
+
isRotated: value?.isRotated ?? defaultIsRotated
|
|
66
|
+
};
|
|
67
|
+
resolveViewport = ({ globals, storyGlobals, userGlobals, options, lastSelectedOption, disable = false, viewMode }) => {
|
|
68
|
+
if (viewMode !== "story") return {
|
|
69
|
+
name: "Responsive",
|
|
70
|
+
type: "desktop",
|
|
71
|
+
width: "100%",
|
|
72
|
+
height: "100%",
|
|
73
|
+
value: RESPONSIVE_VIEWPORT_VALUE,
|
|
74
|
+
option: void 0,
|
|
75
|
+
isCustom: false,
|
|
76
|
+
isDefault: true,
|
|
77
|
+
isLocked: true,
|
|
78
|
+
isRotated: false
|
|
79
|
+
};
|
|
80
|
+
const global = normalizeGlobal$1(globals?.[PARAM_KEY]);
|
|
81
|
+
const userGlobal = normalizeGlobal$1(userGlobals?.[PARAM_KEY]);
|
|
82
|
+
const storyGlobal = normalizeGlobal$1(storyGlobals?.[PARAM_KEY]);
|
|
83
|
+
const storyHasViewport = PARAM_KEY in storyGlobals;
|
|
84
|
+
const primaryGlobal = storyHasViewport ? storyGlobal : userGlobal;
|
|
85
|
+
const secondaryGlobal = storyHasViewport ? userGlobal : storyGlobal;
|
|
86
|
+
const value = primaryGlobal?.value ?? secondaryGlobal?.value ?? global?.value;
|
|
87
|
+
const isRotated = primaryGlobal?.isRotated ?? secondaryGlobal?.isRotated ?? global?.isRotated ?? false;
|
|
88
|
+
const keys = Object.keys(options);
|
|
89
|
+
const isLocked = disable || "viewport" in storyGlobals || !keys.length;
|
|
90
|
+
const [match, vx, ux, vy, uy] = value?.match(URL_VALUE_PATTERN) || [];
|
|
91
|
+
if (match) {
|
|
92
|
+
const x = ux && ux !== "px" ? vx : Math.max(Number(vx), 40);
|
|
93
|
+
const y = uy && uy !== "px" ? vy : Math.max(Number(vy), 40);
|
|
94
|
+
const width = `${x}${ux === "pct" ? "%" : ux || "px"}`;
|
|
95
|
+
const height = `${y}${uy === "pct" ? "%" : uy || "px"}`;
|
|
96
|
+
const selection = lastSelectedOption ? options[lastSelectedOption] : void 0;
|
|
97
|
+
return {
|
|
98
|
+
name: selection?.name ?? "Custom",
|
|
99
|
+
type: selection?.type ?? "other",
|
|
100
|
+
width: isRotated ? height : width,
|
|
101
|
+
height: isRotated ? width : height,
|
|
102
|
+
value: match,
|
|
103
|
+
option: void 0,
|
|
104
|
+
isCustom: true,
|
|
105
|
+
isDefault: false,
|
|
106
|
+
isLocked,
|
|
107
|
+
isRotated
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
if (value && keys.length) {
|
|
111
|
+
const { name, styles, type = "other" } = options[value] ?? options[keys[0]];
|
|
112
|
+
return {
|
|
113
|
+
name,
|
|
114
|
+
type,
|
|
115
|
+
width: isRotated ? styles.height : styles.width,
|
|
116
|
+
height: isRotated ? styles.width : styles.height,
|
|
117
|
+
value,
|
|
118
|
+
option: value,
|
|
119
|
+
isCustom: false,
|
|
120
|
+
isDefault: false,
|
|
121
|
+
isLocked,
|
|
122
|
+
isRotated
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
name: "Responsive",
|
|
127
|
+
type: "desktop",
|
|
128
|
+
width: "100%",
|
|
129
|
+
height: "100%",
|
|
130
|
+
value: RESPONSIVE_VIEWPORT_VALUE,
|
|
131
|
+
option: void 0,
|
|
132
|
+
isCustom: false,
|
|
133
|
+
isDefault: true,
|
|
134
|
+
isLocked,
|
|
135
|
+
isRotated: false
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
})))();
|
|
139
|
+
}
|
|
140
|
+
//#endregion
|
|
141
|
+
//#region src/viewport/useViewport.ts
|
|
142
|
+
var cycle, normalizeGlobal, useViewport;
|
|
143
|
+
function init_useViewport() {
|
|
144
|
+
return (init_useViewport = __esmMin((() => {
|
|
145
|
+
init__storybook_global_react();
|
|
146
|
+
init_manager_api();
|
|
147
|
+
init_constants();
|
|
148
|
+
init_defaults();
|
|
149
|
+
init_resolveViewport();
|
|
150
|
+
cycle = (viewports, current, direction = 1) => {
|
|
151
|
+
const keys = Object.keys(viewports);
|
|
152
|
+
const nextIndex = (current ? keys.indexOf(current) : -1) + direction;
|
|
153
|
+
return nextIndex < 0 ? keys[keys.length - 1] : nextIndex >= keys.length ? keys[0] : keys[nextIndex];
|
|
154
|
+
};
|
|
155
|
+
normalizeGlobal = (value, defaultIsRotated) => typeof value === "string" ? {
|
|
156
|
+
value,
|
|
157
|
+
isRotated: defaultIsRotated
|
|
158
|
+
} : {
|
|
159
|
+
value: value?.value,
|
|
160
|
+
isRotated: value?.isRotated ?? defaultIsRotated
|
|
161
|
+
};
|
|
162
|
+
useViewport = () => {
|
|
163
|
+
const api = useStorybookApi();
|
|
164
|
+
const { viewMode } = api.getUrlState();
|
|
165
|
+
const lastSelectedOption = useRef();
|
|
166
|
+
const parameter = useParameter(PARAM_KEY);
|
|
167
|
+
const [globals, updateGlobals, storyGlobals, userGlobals] = useGlobals();
|
|
168
|
+
const { options = MINIMAL_VIEWPORTS, disable = false } = parameter || {};
|
|
169
|
+
const { name, type, width, height, value, option, isCustom, isDefault, isLocked, isRotated } = resolveViewport({
|
|
170
|
+
globals,
|
|
171
|
+
storyGlobals,
|
|
172
|
+
userGlobals,
|
|
173
|
+
options,
|
|
174
|
+
lastSelectedOption: lastSelectedOption.current,
|
|
175
|
+
disable,
|
|
176
|
+
viewMode
|
|
177
|
+
});
|
|
178
|
+
const update = useCallback((input) => updateGlobals({ [PARAM_KEY]: normalizeGlobal(input, false) }), [updateGlobals]);
|
|
179
|
+
const resize = useCallback((width, height) => {
|
|
180
|
+
const w = width.replace(/px$/, "").replace(/%$/, "pct");
|
|
181
|
+
const h = height.replace(/px$/, "").replace(/%$/, "pct");
|
|
182
|
+
const value = isRotated ? `${h}-${w}` : `${w}-${h}`;
|
|
183
|
+
update({
|
|
184
|
+
value,
|
|
185
|
+
isRotated
|
|
186
|
+
});
|
|
187
|
+
}, [update, isRotated]);
|
|
188
|
+
useEffect(() => {
|
|
189
|
+
if (!parameter) return;
|
|
190
|
+
if (option) {
|
|
191
|
+
if (Object.hasOwn(options, option)) lastSelectedOption.current = option;
|
|
192
|
+
else {
|
|
193
|
+
lastSelectedOption.current = void 0;
|
|
194
|
+
if (!("viewport" in storyGlobals)) update({
|
|
195
|
+
value: void 0,
|
|
196
|
+
isRotated: false
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}, [
|
|
201
|
+
parameter,
|
|
202
|
+
storyGlobals,
|
|
203
|
+
options,
|
|
204
|
+
option,
|
|
205
|
+
update
|
|
206
|
+
]);
|
|
207
|
+
useEffect(() => {
|
|
208
|
+
api.setAddonShortcut(ADDON_ID, {
|
|
209
|
+
label: "Next viewport",
|
|
210
|
+
defaultShortcut: ["alt", "V"],
|
|
211
|
+
actionName: "next",
|
|
212
|
+
action: () => update({
|
|
213
|
+
value: cycle(options, lastSelectedOption.current),
|
|
214
|
+
isRotated
|
|
215
|
+
})
|
|
216
|
+
});
|
|
217
|
+
api.setAddonShortcut(ADDON_ID, {
|
|
218
|
+
label: "Previous viewport",
|
|
219
|
+
defaultShortcut: [
|
|
220
|
+
"alt",
|
|
221
|
+
"shift",
|
|
222
|
+
"V"
|
|
223
|
+
],
|
|
224
|
+
actionName: "previous",
|
|
225
|
+
action: () => update({
|
|
226
|
+
value: cycle(options, lastSelectedOption.current, -1),
|
|
227
|
+
isRotated
|
|
228
|
+
})
|
|
229
|
+
});
|
|
230
|
+
api.setAddonShortcut(ADDON_ID, {
|
|
231
|
+
label: "Reset viewport",
|
|
232
|
+
defaultShortcut: [
|
|
233
|
+
"alt",
|
|
234
|
+
"control",
|
|
235
|
+
"V"
|
|
236
|
+
],
|
|
237
|
+
actionName: "reset",
|
|
238
|
+
action: () => update({
|
|
239
|
+
value: void 0,
|
|
240
|
+
isRotated: false
|
|
241
|
+
})
|
|
242
|
+
});
|
|
243
|
+
}, [
|
|
244
|
+
api,
|
|
245
|
+
update,
|
|
246
|
+
options,
|
|
247
|
+
isRotated
|
|
248
|
+
]);
|
|
249
|
+
return useMemo(() => ({
|
|
250
|
+
name,
|
|
251
|
+
type,
|
|
252
|
+
width,
|
|
253
|
+
height,
|
|
254
|
+
value,
|
|
255
|
+
option,
|
|
256
|
+
isCustom,
|
|
257
|
+
isDefault,
|
|
258
|
+
isLocked,
|
|
259
|
+
isRotated,
|
|
260
|
+
options,
|
|
261
|
+
lastSelectedOption: lastSelectedOption.current,
|
|
262
|
+
resize,
|
|
263
|
+
reset: () => update({
|
|
264
|
+
value: void 0,
|
|
265
|
+
isRotated: false
|
|
266
|
+
}),
|
|
267
|
+
rotate: () => update({
|
|
268
|
+
value,
|
|
269
|
+
isRotated: !isRotated
|
|
270
|
+
}),
|
|
271
|
+
select: (value) => update({
|
|
272
|
+
value,
|
|
273
|
+
isRotated
|
|
274
|
+
})
|
|
275
|
+
}), [
|
|
276
|
+
name,
|
|
277
|
+
type,
|
|
278
|
+
width,
|
|
279
|
+
height,
|
|
280
|
+
value,
|
|
281
|
+
option,
|
|
282
|
+
isCustom,
|
|
283
|
+
isDefault,
|
|
284
|
+
isRotated,
|
|
285
|
+
isLocked,
|
|
286
|
+
options,
|
|
287
|
+
resize,
|
|
288
|
+
update
|
|
289
|
+
]);
|
|
290
|
+
};
|
|
291
|
+
})))();
|
|
292
|
+
}
|
|
293
|
+
//#endregion
|
|
294
|
+
export { init_constants as a, RESPONSIVE_VIEWPORT_VALUE as i, useViewport as n, init_resolveViewport as r, init_useViewport as t };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { n as __esmMin } from "./runtime-BdGkqNEt.js";
|
|
2
|
+
//#region src/core-events/index.ts
|
|
3
|
+
var events, CHANNEL_WS_DISCONNECT, CHANNEL_CREATED, CONFIG_ERROR, CURRENT_STORY_WAS_SET, DOCS_PREPARED, DOCS_RENDERED, DOCS_PAGE_IN_VIEW, FORCE_RE_RENDER, FORCE_REMOUNT, GLOBALS_UPDATED, NAVIGATE_URL, PLAY_FUNCTION_THREW_EXCEPTION, UNHANDLED_ERRORS_WHILE_PLAYING, PRELOAD_ENTRIES, PREVIEW_INITIALIZED, PREVIEW_BUILDER_PROGRESS, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, RESET_STORY_ARGS, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDER_PHASE_CHANGED, STORY_RENDERED, STORY_FINISHED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, STORY_HOT_UPDATED, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS, REQUEST_WHATS_NEW_DATA, RESULT_WHATS_NEW_DATA, SET_WHATS_NEW_CACHE, TOGGLE_WHATS_NEW_NOTIFICATIONS, TELEMETRY_ERROR, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, GHOST_STORIES_REQUEST, GHOST_STORIES_RESPONSE, AI_SETUP_ANALYTICS_RESPONSE, AI_SETUP_ANALYTICS_REQUEST, OPEN_IN_EDITOR_REQUEST, OPEN_IN_EDITOR_RESPONSE, MANAGER_INERT_ATTRIBUTE_CHANGED, SHARE_ISOLATE_MODE, AI_PROMPT_NUDGE, SIDEBAR_FILTER_CHANGED;
|
|
4
|
+
function init_core_events() {
|
|
5
|
+
return (init_core_events = __esmMin((() => {
|
|
6
|
+
events = /* @__PURE__ */ function(events) {
|
|
7
|
+
events["CHANNEL_WS_DISCONNECT"] = "channelWSDisconnect";
|
|
8
|
+
events["CHANNEL_CREATED"] = "channelCreated";
|
|
9
|
+
events["CONFIG_ERROR"] = "configError";
|
|
10
|
+
events["STORY_INDEX_INVALIDATED"] = "storyIndexInvalidated";
|
|
11
|
+
events["STORY_SPECIFIED"] = "storySpecified";
|
|
12
|
+
events["SET_CONFIG"] = "setConfig";
|
|
13
|
+
events["SET_STORIES"] = "setStories";
|
|
14
|
+
events["SET_INDEX"] = "setIndex";
|
|
15
|
+
events["SET_CURRENT_STORY"] = "setCurrentStory";
|
|
16
|
+
events["CURRENT_STORY_WAS_SET"] = "currentStoryWasSet";
|
|
17
|
+
events["FORCE_RE_RENDER"] = "forceReRender";
|
|
18
|
+
events["FORCE_REMOUNT"] = "forceRemount";
|
|
19
|
+
events["PRELOAD_ENTRIES"] = "preloadStories";
|
|
20
|
+
events["STORY_PREPARED"] = "storyPrepared";
|
|
21
|
+
events["DOCS_PREPARED"] = "docsPrepared";
|
|
22
|
+
events["STORY_CHANGED"] = "storyChanged";
|
|
23
|
+
events["STORY_UNCHANGED"] = "storyUnchanged";
|
|
24
|
+
events["STORY_RENDERED"] = "storyRendered";
|
|
25
|
+
events["STORY_FINISHED"] = "storyFinished";
|
|
26
|
+
events["STORY_MISSING"] = "storyMissing";
|
|
27
|
+
events["STORY_ERRORED"] = "storyErrored";
|
|
28
|
+
events["STORY_THREW_EXCEPTION"] = "storyThrewException";
|
|
29
|
+
events["STORY_RENDER_PHASE_CHANGED"] = "storyRenderPhaseChanged";
|
|
30
|
+
events["STORY_HOT_UPDATED"] = "storyHotUpdated";
|
|
31
|
+
events["PLAY_FUNCTION_THREW_EXCEPTION"] = "playFunctionThrewException";
|
|
32
|
+
events["UNHANDLED_ERRORS_WHILE_PLAYING"] = "unhandledErrorsWhilePlaying";
|
|
33
|
+
events["UPDATE_STORY_ARGS"] = "updateStoryArgs";
|
|
34
|
+
events["STORY_ARGS_UPDATED"] = "storyArgsUpdated";
|
|
35
|
+
events["RESET_STORY_ARGS"] = "resetStoryArgs";
|
|
36
|
+
events["SET_FILTER"] = "setFilter";
|
|
37
|
+
events["SET_GLOBALS"] = "setGlobals";
|
|
38
|
+
events["UPDATE_GLOBALS"] = "updateGlobals";
|
|
39
|
+
events["GLOBALS_UPDATED"] = "globalsUpdated";
|
|
40
|
+
events["REGISTER_SUBSCRIPTION"] = "registerSubscription";
|
|
41
|
+
events["PREVIEW_INITIALIZED"] = "previewInitialized";
|
|
42
|
+
events["PREVIEW_KEYDOWN"] = "previewKeydown";
|
|
43
|
+
events["PREVIEW_BUILDER_PROGRESS"] = "preview_builder_progress";
|
|
44
|
+
events["SELECT_STORY"] = "selectStory";
|
|
45
|
+
events["STORIES_COLLAPSE_ALL"] = "storiesCollapseAll";
|
|
46
|
+
events["STORIES_EXPAND_ALL"] = "storiesExpandAll";
|
|
47
|
+
events["DOCS_RENDERED"] = "docsRendered";
|
|
48
|
+
events["DOCS_PAGE_IN_VIEW"] = "docsPageInView";
|
|
49
|
+
events["SHARED_STATE_CHANGED"] = "sharedStateChanged";
|
|
50
|
+
events["SHARED_STATE_SET"] = "sharedStateSet";
|
|
51
|
+
events["NAVIGATE_URL"] = "navigateUrl";
|
|
52
|
+
events["UPDATE_QUERY_PARAMS"] = "updateQueryParams";
|
|
53
|
+
events["REQUEST_WHATS_NEW_DATA"] = "requestWhatsNewData";
|
|
54
|
+
events["RESULT_WHATS_NEW_DATA"] = "resultWhatsNewData";
|
|
55
|
+
events["SET_WHATS_NEW_CACHE"] = "setWhatsNewCache";
|
|
56
|
+
events["TOGGLE_WHATS_NEW_NOTIFICATIONS"] = "toggleWhatsNewNotifications";
|
|
57
|
+
events["TELEMETRY_ERROR"] = "telemetryError";
|
|
58
|
+
events["SAVE_STORY_REQUEST"] = "saveStoryRequest";
|
|
59
|
+
events["SAVE_STORY_RESPONSE"] = "saveStoryResponse";
|
|
60
|
+
events["ARGTYPES_INFO_REQUEST"] = "argtypesInfoRequest";
|
|
61
|
+
events["ARGTYPES_INFO_RESPONSE"] = "argtypesInfoResponse";
|
|
62
|
+
events["GHOST_STORIES_REQUEST"] = "ghostStoriesRequest";
|
|
63
|
+
events["GHOST_STORIES_RESPONSE"] = "ghostStoriesResponse";
|
|
64
|
+
events["AI_SETUP_ANALYTICS_RESPONSE"] = "aiSetupAnalyticsResponse";
|
|
65
|
+
events["AI_SETUP_ANALYTICS_REQUEST"] = "aiSetupAnalyticsRequest";
|
|
66
|
+
events["OPEN_IN_EDITOR_REQUEST"] = "openInEditorRequest";
|
|
67
|
+
events["OPEN_IN_EDITOR_RESPONSE"] = "openInEditorResponse";
|
|
68
|
+
events["MANAGER_INERT_ATTRIBUTE_CHANGED"] = "managerInertAttributeChanged";
|
|
69
|
+
events["SHARE_ISOLATE_MODE"] = "shareIsolateMode";
|
|
70
|
+
events["AI_PROMPT_NUDGE"] = "aiPromptNudge";
|
|
71
|
+
events["SIDEBAR_FILTER_CHANGED"] = "sidebarFilterChanged";
|
|
72
|
+
return events;
|
|
73
|
+
}(events || {});
|
|
74
|
+
({CHANNEL_WS_DISCONNECT, CHANNEL_CREATED, CONFIG_ERROR, CURRENT_STORY_WAS_SET, DOCS_PREPARED, DOCS_RENDERED, DOCS_PAGE_IN_VIEW, FORCE_RE_RENDER, FORCE_REMOUNT, GLOBALS_UPDATED, NAVIGATE_URL, PLAY_FUNCTION_THREW_EXCEPTION, UNHANDLED_ERRORS_WHILE_PLAYING, PRELOAD_ENTRIES, PREVIEW_INITIALIZED, PREVIEW_BUILDER_PROGRESS, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, RESET_STORY_ARGS, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDER_PHASE_CHANGED, STORY_RENDERED, STORY_FINISHED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, STORY_HOT_UPDATED, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS, REQUEST_WHATS_NEW_DATA, RESULT_WHATS_NEW_DATA, SET_WHATS_NEW_CACHE, TOGGLE_WHATS_NEW_NOTIFICATIONS, TELEMETRY_ERROR, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, GHOST_STORIES_REQUEST, GHOST_STORIES_RESPONSE, AI_SETUP_ANALYTICS_RESPONSE, AI_SETUP_ANALYTICS_REQUEST, OPEN_IN_EDITOR_REQUEST, OPEN_IN_EDITOR_RESPONSE, MANAGER_INERT_ATTRIBUTE_CHANGED, SHARE_ISOLATE_MODE, AI_PROMPT_NUDGE, SIDEBAR_FILTER_CHANGED} = events);
|
|
75
|
+
})))();
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
export { init_core_events as n, STORY_PREPARED as t };
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { a as __toESM, n as __esmMin } from "./runtime-BdGkqNEt.js";
|
|
2
|
+
import { At as init_theming, Cr as init__storybook_global_react, Dt as cssVarsToString, Ft as addons, Mt as useTheme, Nr as useMemo, Vt as init_manager_api, gr as _storybook_global_react_default, jt as themeToCssVars, kr as useEffect, kt as globalCss, lr as core_events_default, ur as init_core_events, y as init_create } from "./runtime-DG61zYUm.js";
|
|
3
|
+
import { H as global, U as init_global, _ as init_tags$1, a as UNIVERSAL_STATUS_STORE_OPTIONS, c as init_status_store, d as StorybookError, f as init_storybook_error, g as USER_TAG_FILTER, h as BUILT_IN_FILTERS, i as init_universal_store, n as useUniversalStore, r as UniversalStore, s as createStatusStore, t as init_use_universal_store_manager } from "./runtime-Bs3bEhuy.js";
|
|
4
|
+
import { D as ManagerErrorBoundary, E as useLayout, O as init_ManagerErrorBoundary, S as init_Layout, T as init_LayoutProvider, _ as ReviewPersistentLayer, b as useReviewContext, g as init_ReviewProvider, h as ReviewProvider, i as init_Sidebar, l as PreviewConnected, m as init_Panel, p as Panel, r as Sidebar, u as init_Preview, v as init_ReviewPersistentLayer, x as Layout, y as init_review_context } from "./runtime-eBAgOym6.js";
|
|
5
|
+
import { s as require_memoizerific } from "./runtime-CBQsKmch.js";
|
|
6
|
+
//#region src/manager-api/modules/layout.ts
|
|
7
|
+
var document$1, isPagesViewMode, focusableUIElements;
|
|
8
|
+
function init_layout() {
|
|
9
|
+
return (init_layout = __esmMin((() => {
|
|
10
|
+
init_core_events();
|
|
11
|
+
init_global();
|
|
12
|
+
init_create();
|
|
13
|
+
({document: document$1} = global);
|
|
14
|
+
isPagesViewMode = (viewMode) => viewMode !== void 0 && viewMode !== "story" && viewMode !== "docs" && viewMode !== "review";
|
|
15
|
+
focusableUIElements = {
|
|
16
|
+
addonPanel: "storybook-panel-region",
|
|
17
|
+
storySearchField: "storybook-explorer-searchfield",
|
|
18
|
+
storyListMenu: "storybook-explorer-menu",
|
|
19
|
+
storyPanelRoot: "storybook-panel-root",
|
|
20
|
+
showAddonPanel: "storybook-show-addon-panel",
|
|
21
|
+
sidebarRegion: "storybook-sidebar-region",
|
|
22
|
+
showSidebar: "storybook-show-sidebar"
|
|
23
|
+
};
|
|
24
|
+
})))();
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/manager-errors.ts
|
|
28
|
+
var StatusTypeIdMismatchError, UniversalStoreFollowerTimeoutError;
|
|
29
|
+
function init_manager_errors() {
|
|
30
|
+
return (init_manager_errors = __esmMin((() => {
|
|
31
|
+
init_storybook_error();
|
|
32
|
+
StatusTypeIdMismatchError = class extends StorybookError {
|
|
33
|
+
constructor(data) {
|
|
34
|
+
super({
|
|
35
|
+
name: "StatusTypeIdMismatchError",
|
|
36
|
+
category: "MANAGER_API",
|
|
37
|
+
code: 1,
|
|
38
|
+
message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify(data.status, null, 2)}`
|
|
39
|
+
});
|
|
40
|
+
this.data = data;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
UniversalStoreFollowerTimeoutError = class extends StorybookError {
|
|
44
|
+
constructor(followerId) {
|
|
45
|
+
super({
|
|
46
|
+
name: "UniversalStoreFollowerTimeoutError",
|
|
47
|
+
category: "MANAGER_UNIVERSAL-STORE",
|
|
48
|
+
code: 1,
|
|
49
|
+
message: `Timed out waiting for leader state for UniversalStore follower with id: '${followerId}'. Ensure a leader with the same id exists and is reachable before creating a follower.`
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
})))();
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/manager-api/stores/status.ts
|
|
57
|
+
var statusStore, fullStatusStore, getStatusStoreByTypeId, useStatusStore, universalStatusStore;
|
|
58
|
+
function init_status() {
|
|
59
|
+
return (init_status = __esmMin((() => {
|
|
60
|
+
init_status_store();
|
|
61
|
+
init_universal_store();
|
|
62
|
+
init_use_universal_store_manager();
|
|
63
|
+
statusStore = createStatusStore({
|
|
64
|
+
universalStatusStore: UniversalStore.create({
|
|
65
|
+
...UNIVERSAL_STATUS_STORE_OPTIONS,
|
|
66
|
+
leader: globalThis.CONFIG_TYPE === "PRODUCTION"
|
|
67
|
+
}),
|
|
68
|
+
useUniversalStore,
|
|
69
|
+
environment: "manager"
|
|
70
|
+
});
|
|
71
|
+
({fullStatusStore, getStatusStoreByTypeId, useStatusStore, universalStatusStore} = statusStore);
|
|
72
|
+
})))();
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/manager-api/modules/statuses.ts
|
|
76
|
+
var computeStatusFilterFn;
|
|
77
|
+
function init_statuses() {
|
|
78
|
+
return (init_statuses = __esmMin((() => {
|
|
79
|
+
init_status();
|
|
80
|
+
computeStatusFilterFn = (includedStatusFilters, excludedStatusFilters) => {
|
|
81
|
+
return (entry) => {
|
|
82
|
+
if (!includedStatusFilters.length && !excludedStatusFilters.length) return true;
|
|
83
|
+
const storyStatuses = (fullStatusStore.getAll() ?? {})[entry.id];
|
|
84
|
+
const storyStatusValues = storyStatuses ? Object.values(storyStatuses).map((s) => s.value) : [];
|
|
85
|
+
const passesInclude = !includedStatusFilters.length || includedStatusFilters.some((v) => storyStatusValues.includes(v));
|
|
86
|
+
const passesExclude = !excludedStatusFilters.length || excludedStatusFilters.every((v) => !storyStatusValues.includes(v));
|
|
87
|
+
return passesInclude && passesExclude;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
})))();
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/manager-api/modules/tags.ts
|
|
94
|
+
var import_memoizerific, computeTagsFilterFn;
|
|
95
|
+
function init_tags() {
|
|
96
|
+
return (init_tags = __esmMin((() => {
|
|
97
|
+
import_memoizerific = /* @__PURE__ */ __toESM(require_memoizerific(), 1);
|
|
98
|
+
init_tags$1();
|
|
99
|
+
(0, import_memoizerific.default)(1)((presets) => {
|
|
100
|
+
const presetEntries = Object.entries(presets);
|
|
101
|
+
return {
|
|
102
|
+
included: presetEntries.filter(([, option]) => option.defaultFilterSelection === "include").map(([tag]) => tag),
|
|
103
|
+
excluded: presetEntries.filter(([, option]) => option.defaultFilterSelection === "exclude").map(([tag]) => tag)
|
|
104
|
+
};
|
|
105
|
+
});
|
|
106
|
+
computeTagsFilterFn = (includedTagFilters, excludedTagFilters) => {
|
|
107
|
+
const computeFilterFunctions = (set) => {
|
|
108
|
+
return Object.values(set.reduce((acc, tag) => {
|
|
109
|
+
if (Object.hasOwn(BUILT_IN_FILTERS, tag)) acc["built-in"].push(BUILT_IN_FILTERS[tag]);
|
|
110
|
+
else acc.user.push(USER_TAG_FILTER(tag));
|
|
111
|
+
return acc;
|
|
112
|
+
}, {
|
|
113
|
+
"built-in": [],
|
|
114
|
+
user: []
|
|
115
|
+
})).filter((group) => group.length > 0);
|
|
116
|
+
};
|
|
117
|
+
return (item) => {
|
|
118
|
+
const included = computeFilterFunctions(includedTagFilters);
|
|
119
|
+
const excluded = computeFilterFunctions(excludedTagFilters);
|
|
120
|
+
return (!included.length || included.every((group) => group.some((filterFn) => filterFn(item, false)))) && (!excluded.length || excluded.every((group) => group.every((filterFn) => filterFn(item, true))));
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
})))();
|
|
124
|
+
}
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/manager/App.tsx
|
|
127
|
+
var MainPreview, App;
|
|
128
|
+
function init_App() {
|
|
129
|
+
return (init_App = __esmMin((() => {
|
|
130
|
+
init__storybook_global_react();
|
|
131
|
+
init_core_events();
|
|
132
|
+
init_manager_api();
|
|
133
|
+
init_theming();
|
|
134
|
+
init_ManagerErrorBoundary();
|
|
135
|
+
init_Layout();
|
|
136
|
+
init_LayoutProvider();
|
|
137
|
+
init_ReviewPersistentLayer();
|
|
138
|
+
init_ReviewProvider();
|
|
139
|
+
init_review_context();
|
|
140
|
+
init_Panel();
|
|
141
|
+
init_Preview();
|
|
142
|
+
init_Sidebar();
|
|
143
|
+
MainPreview = () => {
|
|
144
|
+
const { isSummaryVisible } = useReviewContext();
|
|
145
|
+
return isSummaryVisible ? null : /* @__PURE__ */ _storybook_global_react_default.createElement(PreviewConnected, {
|
|
146
|
+
id: "main",
|
|
147
|
+
withLoader: true
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
App = ({ managerLayoutState, setManagerLayoutState, pages }) => {
|
|
151
|
+
const { setMobileAboutOpen } = useLayout();
|
|
152
|
+
const theme = useTheme();
|
|
153
|
+
const pageCss = useMemo(() => `:root {\n${cssVarsToString(themeToCssVars(theme))}\n}\n${globalCss}`, [theme]);
|
|
154
|
+
/**
|
|
155
|
+
* Lets us tell the UI whether or not keyboard shortcuts are enabled, in places where it's not
|
|
156
|
+
* convenient to load the addons singleton to figure it out.
|
|
157
|
+
*/
|
|
158
|
+
const { enableShortcuts = true } = addons.getConfig();
|
|
159
|
+
useEffect(() => {
|
|
160
|
+
document.body.setAttribute("data-shortcuts-enabled", enableShortcuts ? "true" : "false");
|
|
161
|
+
}, [enableShortcuts]);
|
|
162
|
+
/**
|
|
163
|
+
* Detects when our component library has enabled a focus trap. A modal Base UI dialog sets
|
|
164
|
+
* `aria-hidden` on the document root when it traps focus. We observe that attribute and inform the
|
|
165
|
+
* preview iframe when to respect the focus trap, via a channel event. This is necessary because
|
|
166
|
+
* inert is no longer propagated into iframes as per https://github.com/whatwg/html/issues/7605,
|
|
167
|
+
* and the replacement permission policy is not yet widely available
|
|
168
|
+
* (https://github.com/w3c/webappsec-permissions-policy/issues/273).
|
|
169
|
+
*/
|
|
170
|
+
useEffect(() => {
|
|
171
|
+
const rootElement = document.getElementById("root");
|
|
172
|
+
if (!rootElement) return;
|
|
173
|
+
const observer = new MutationObserver(() => {
|
|
174
|
+
const hasInert = rootElement.getAttribute("aria-hidden") === "true";
|
|
175
|
+
addons.getChannel().emit(core_events_default.MANAGER_INERT_ATTRIBUTE_CHANGED, hasInert);
|
|
176
|
+
});
|
|
177
|
+
observer.observe(rootElement, {
|
|
178
|
+
attributes: true,
|
|
179
|
+
attributeFilter: ["aria-hidden"]
|
|
180
|
+
});
|
|
181
|
+
return () => observer.disconnect();
|
|
182
|
+
}, []);
|
|
183
|
+
const layout = /* @__PURE__ */ _storybook_global_react_default.createElement(Layout, {
|
|
184
|
+
managerLayoutState,
|
|
185
|
+
setManagerLayoutState,
|
|
186
|
+
slotOverlay: /* @__PURE__ */ _storybook_global_react_default.createElement(ReviewPersistentLayer, null),
|
|
187
|
+
slotMain: /* @__PURE__ */ _storybook_global_react_default.createElement(MainPreview, null),
|
|
188
|
+
slotSidebar: /* @__PURE__ */ _storybook_global_react_default.createElement(Sidebar, { onMenuClick: () => setMobileAboutOpen((state) => !state) }),
|
|
189
|
+
slotPanel: /* @__PURE__ */ _storybook_global_react_default.createElement(Panel, null),
|
|
190
|
+
slotPages: pages.map(({ id, render: Content }) => /* @__PURE__ */ _storybook_global_react_default.createElement(Content, { key: id }))
|
|
191
|
+
});
|
|
192
|
+
return /* @__PURE__ */ _storybook_global_react_default.createElement(_storybook_global_react_default.Fragment, null, /* @__PURE__ */ _storybook_global_react_default.createElement("style", null, pageCss), /* @__PURE__ */ _storybook_global_react_default.createElement(ManagerErrorBoundary, null, /* @__PURE__ */ _storybook_global_react_default.createElement(ReviewProvider, null, layout)));
|
|
193
|
+
};
|
|
194
|
+
})))();
|
|
195
|
+
}
|
|
196
|
+
//#endregion
|
|
197
|
+
export { computeStatusFilterFn as a, UniversalStoreFollowerTimeoutError as c, init_layout as d, isPagesViewMode as f, init_tags as i, init_manager_errors as l, init_App as n, init_statuses as o, computeTagsFilterFn as r, StatusTypeIdMismatchError as s, App as t, focusableUIElements as u };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __esmMin = (fn, res, err) => () => {
|
|
9
|
+
if (err) throw err[0];
|
|
10
|
+
try {
|
|
11
|
+
return fn && (res = fn(fn = 0)), res;
|
|
12
|
+
} catch (e) {
|
|
13
|
+
throw err = [e], e;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
17
|
+
var __exportAll = (all, no_symbols) => {
|
|
18
|
+
let target = {};
|
|
19
|
+
for (var name in all) __defProp(target, name, {
|
|
20
|
+
get: all[name],
|
|
21
|
+
enumerable: true
|
|
22
|
+
});
|
|
23
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
24
|
+
return target;
|
|
25
|
+
};
|
|
26
|
+
var __copyProps = (to, from, except, desc) => {
|
|
27
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
28
|
+
key = keys[i];
|
|
29
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
30
|
+
get: ((k) => from[k]).bind(null, key),
|
|
31
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return to;
|
|
35
|
+
};
|
|
36
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
37
|
+
value: mod,
|
|
38
|
+
enumerable: true
|
|
39
|
+
}) : target, mod));
|
|
40
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
41
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
42
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
export { __toESM as a, __require as i, __esmMin as n, __exportAll as r, __commonJSMin as t };
|