@aussieljk/forkbook 0.0.1-2 → 0.0.1-21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +35 -53
- package/assets/addon-vitest/templates/vitest.config.4.template.ts +2 -2
- package/assets/browser/favicon-wrapper.svg +4 -4
- package/assets/browser/favicon.svg +1 -1
- package/assets/browser/inter-LICENSE.txt +92 -0
- package/assets/browser/inter-variable-italic.woff2 +0 -0
- package/assets/browser/inter-variable.woff2 +0 -0
- package/assets/browser/mirror-ball.png +0 -0
- package/assets/builder-vite/iframe.html +8 -24
- package/assets/create/rendererAssets/common/Configure.mdx +100 -100
- package/assets/create/rendererAssets/common/button.css +7 -7
- package/assets/create/rendererAssets/common/header.css +6 -6
- package/assets/create/rendererAssets/common/page.css +12 -12
- package/assets/create/templates/react-native/index.expo.js +4 -4
- package/assets/create/templates/react-native/index.js +5 -5
- package/assets/server/base-preview-body.html +32 -32
- package/assets/server/base-preview-head.html +86 -86
- package/assets/server/template.ejs +31 -26
- package/dist/_browser-chunks/{Color-PCLE2J36.js → Color-7FO5YFB5.js} +8 -8
- package/dist/_browser-chunks/{DocsRenderer-JXND3PVQ.js → DocsRenderer-DKXSW2OY.js} +2 -2
- package/dist/_browser-chunks/WithTooltip-QWFSUQZP.js +199 -0
- package/dist/_browser-chunks/{chunk-RBCHTR7C.js → chunk-2ELGJRFZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-PFRNG3UC.js → chunk-2WZWS7GJ.js} +5 -5
- package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-3QNZOMD7.js} +8 -3
- package/dist/_browser-chunks/{chunk-LV5PIKV4.js → chunk-3QPZOXB7.js} +6 -8
- package/dist/_browser-chunks/{chunk-ODVJ3XZJ.js → chunk-4BOJAE7P.js} +14 -10
- package/dist/_browser-chunks/{chunk-2MEPHP35.js → chunk-4KIQBRD2.js} +1 -1
- package/dist/_browser-chunks/{chunk-KQ7CRO2B.js → chunk-5Z3MWCFR.js} +12 -12
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/{chunk-W5M6NPS3.js → chunk-6SL45YM3.js} +15 -18
- package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-AN2LJG5I.js} +1 -1
- package/dist/_browser-chunks/{chunk-P6PK47TQ.js → chunk-BLCZ3C5M.js} +48 -83
- package/dist/_browser-chunks/{chunk-RSPAQWVJ.js → chunk-BNP234B4.js} +1 -1
- package/dist/_browser-chunks/{chunk-JYVGARBG.js → chunk-BSYOFSF6.js} +770 -720
- package/dist/_browser-chunks/{chunk-JSBKXXXF.js → chunk-DHTLVXAL.js} +38 -45
- package/dist/_browser-chunks/{chunk-GNZY6LOW.js → chunk-DISGPOF4.js} +54 -51
- package/dist/_browser-chunks/chunk-DNJ3OSLB.js +6021 -0
- package/dist/_browser-chunks/{chunk-6SXYJQST.js → chunk-E6QKKKLO.js} +21 -6
- package/dist/_browser-chunks/{chunk-FJGWSWL5.js → chunk-EBSOKHFG.js} +10 -4
- package/dist/_browser-chunks/{chunk-CFAOWGL7.js → chunk-ECMVTOVD.js} +1 -1
- package/dist/_browser-chunks/{chunk-CFWWCCZV.js → chunk-ENHFQXYS.js} +9 -7
- package/dist/_browser-chunks/{chunk-YTIT5NA5.js → chunk-EW2M3URL.js} +91 -84
- package/dist/_browser-chunks/chunk-FAOLWWRN.js +20 -0
- package/dist/_browser-chunks/{chunk-MFMDGWP6.js → chunk-FCULT3AE.js} +3 -3
- package/dist/_browser-chunks/{chunk-46Z7NGAS.js → chunk-HX443LKV.js} +1 -1
- package/dist/_browser-chunks/chunk-HZFHNYRC.js +53 -0
- package/dist/_browser-chunks/chunk-IFADVEQE.js +669 -0
- package/dist/_browser-chunks/{chunk-OQWFVDIN.js → chunk-KQJ4T6JL.js} +31 -25
- package/dist/_browser-chunks/{chunk-RNTIV5CE.js → chunk-LYYXDWR2.js} +9 -9
- package/dist/_browser-chunks/{chunk-V5M7Q4HT.js → chunk-MJIDTL3X.js} +4 -14
- package/dist/_browser-chunks/{chunk-V2G23FV7.js → chunk-N5WQGLI7.js} +1 -1
- package/dist/_browser-chunks/{chunk-EIYAKDGP.js → chunk-NA4ITZTK.js} +127 -105
- package/dist/_browser-chunks/{chunk-RMYQ3QN3.js → chunk-NK5SGJNG.js} +22 -17
- package/dist/_browser-chunks/chunk-NPNIBOPF.js +18 -0
- package/dist/_browser-chunks/{chunk-YEKO6BHJ.js → chunk-ONTSNQON.js} +1 -1
- package/dist/_browser-chunks/chunk-OOETBSA7.js +502 -0
- package/dist/_browser-chunks/chunk-PFYL47RM.js +45 -0
- package/dist/_browser-chunks/{chunk-OD6IBQCC.js → chunk-PQRPDA4U.js} +5 -5
- package/dist/_browser-chunks/{chunk-2JDQ35OA.js → chunk-PU7D2WDP.js} +0 -11
- package/dist/_browser-chunks/chunk-PZQRXPVR.js +21 -0
- package/dist/_browser-chunks/{chunk-5WMXI5GW.js → chunk-QFO2B4X2.js} +31 -28
- package/dist/_browser-chunks/{chunk-2JT76G3E.js → chunk-SBOQ4QPY.js} +15 -15
- package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
- package/dist/_browser-chunks/{chunk-5I7E4GMO.js → chunk-WY2LUGOH.js} +1 -1
- package/dist/_browser-chunks/chunk-XKTORVEQ.js +255 -0
- package/dist/_browser-chunks/chunk-XSVERCGB.js +91 -0
- package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-XTQCLWVH.js} +325 -1635
- package/dist/_browser-chunks/{chunk-MDOL7KML.js → chunk-YJO5BK52.js} +7 -3
- package/dist/_browser-chunks/{chunk-66OCZ54D.js → chunk-ZF37BMDS.js} +6 -2
- package/dist/_browser-chunks/{chunk-C3D4HEFY.js → chunk-ZIZCGWCG.js} +348 -170
- package/dist/_browser-chunks/{matchers-YLBYSYAF.js → matchers-2HVLNCVO.js} +4 -4
- package/dist/_browser-chunks/{react-dom-client-4OHE3QDV.js → react-dom-client-SLBUX3U3.js} +1 -1
- package/dist/_node-chunks/{attached-runtime-I2G4WLJI.js → attached-runtime-UC2CB4GH.js} +37 -35
- package/dist/_node-chunks/builder-manager-S5UUKVOR.js +1174 -0
- package/dist/_node-chunks/{chunk-OUW6R7C3.js → chunk-3335ZZIO.js} +6 -6
- package/dist/_node-chunks/{chunk-V2DY426G.js → chunk-3D6N6P2R.js} +283 -306
- package/dist/_node-chunks/{chunk-3Y6AAY5H.js → chunk-3ER54PQM.js} +8 -8
- package/dist/_node-chunks/{chunk-DC7DKR5K.js → chunk-3H5C52QU.js} +6 -6
- package/dist/_node-chunks/chunk-3UI3TQ7R.js +28 -0
- package/dist/_node-chunks/{chunk-Q7QNUM5H.js → chunk-4C3ACAHV.js} +6 -6
- package/dist/_node-chunks/{chunk-XGIUVY52.js → chunk-4UTCKJEQ.js} +7 -7
- package/dist/_node-chunks/chunk-53A5CYDK.js +572 -0
- package/dist/_node-chunks/{chunk-4FEANXWU.js → chunk-53PSBDRK.js} +140 -118
- package/dist/_node-chunks/{chunk-3W7F2B7P.js → chunk-54MO4QLB.js} +6 -6
- package/dist/_node-chunks/{chunk-7GUDZVRQ.js → chunk-5CJMRQZ6.js} +6 -6
- package/dist/_node-chunks/chunk-5HOM7B4V.js +20 -0
- package/dist/_node-chunks/{chunk-BSKFCWQD.js → chunk-5QG6AXK4.js} +7 -7
- package/dist/_node-chunks/chunk-67XVZZUO.js +405 -0
- package/dist/_node-chunks/{chunk-EWOX7HPJ.js → chunk-6HQJJDLH.js} +6 -6
- package/dist/_node-chunks/chunk-6IPHWCFI.js +29 -0
- package/dist/_node-chunks/{chunk-NDWKJ4CL.js → chunk-6XYOFBRD.js} +98 -129
- package/dist/_node-chunks/{chunk-TNJIXE37.js → chunk-7IAYDGYH.js} +6 -6
- package/dist/_node-chunks/{chunk-ICPBH3E7.js → chunk-7P67PUU2.js} +7 -7
- package/dist/_node-chunks/{chunk-XLP2ZKXV.js → chunk-AAK5BBF2.js} +7 -7
- package/dist/_node-chunks/{chunk-CCOTJ4FC.js → chunk-BGUVBOOU.js} +10 -10
- package/dist/_node-chunks/chunk-BNGBOASQ.js +25 -0
- package/dist/_node-chunks/{chunk-VLOXOXXE.js → chunk-BWZWCVVH.js} +9 -9
- package/dist/_node-chunks/{chunk-SWO5CDYU.js → chunk-C6HQ6WLU.js} +8 -8
- package/dist/_node-chunks/chunk-CJHRH777.js +20 -0
- package/dist/_node-chunks/{chunk-IK4FGZLR.js → chunk-COEW4ORP.js} +6 -6
- package/dist/_node-chunks/{chunk-JGGFYIG5.js → chunk-CVHDAEDZ.js} +7 -7
- package/dist/_node-chunks/{chunk-YCMRA6RX.js → chunk-CXGOQNGI.js} +7 -7
- package/dist/_node-chunks/chunk-D4XTQWRM.js +11 -0
- package/dist/_node-chunks/{chunk-BS2WMZMR.js → chunk-D5V6CZ6U.js} +7 -7
- package/dist/_node-chunks/{chunk-XHL2LVBM.js → chunk-DCTXJ4TT.js} +14 -16
- package/dist/_node-chunks/{chunk-WCULS5TP.js → chunk-DP6WFY3D.js} +7 -7
- package/dist/_node-chunks/chunk-E23GDXG6.js +271 -0
- package/dist/_node-chunks/{chunk-GEFQN7K3.js → chunk-E3ZFMURC.js} +8 -8
- package/dist/_node-chunks/{chunk-WZJF2OUH.js → chunk-E6O3NA44.js} +7 -7
- package/dist/_node-chunks/{chunk-RWFIFGO5.js → chunk-ECS3WDOU.js} +8 -8
- package/dist/_node-chunks/{chunk-XI6B6P47.js → chunk-FB5YJWOH.js} +6 -6
- package/dist/_node-chunks/{chunk-3SDUYDXH.js → chunk-FCK5FM6D.js} +7 -7
- package/dist/_node-chunks/{chunk-6YKBRP72.js → chunk-FJUGPEJK.js} +6 -6
- package/dist/_node-chunks/{chunk-TFEWM4E3.js → chunk-FPYXI76E.js} +75 -75
- package/dist/_node-chunks/chunk-GEWVOY3F.js +62 -0
- package/dist/_node-chunks/{chunk-ET7PWEO7.js → chunk-GHZ44BFB.js} +14 -13
- package/dist/_node-chunks/{chunk-LXBD4UL4.js → chunk-GJMFISS3.js} +8 -8
- package/dist/_node-chunks/{chunk-FK7KGTV7.js → chunk-GK2Y2RFX.js} +7 -7
- package/dist/_node-chunks/{chunk-FPZB5OI7.js → chunk-GP6YBA2R.js} +6 -6
- package/dist/_node-chunks/{chunk-34EO2PUT.js → chunk-GQUFGJ4D.js} +6 -6
- package/dist/_node-chunks/{chunk-HMP2G23X.js → chunk-H4CRQDTK.js} +6 -6
- package/dist/_node-chunks/{chunk-2BUPBPFB.js → chunk-HCDG54OG.js} +7 -7
- package/dist/_node-chunks/{chunk-U5W53R2J.js → chunk-HGJMP4EI.js} +506 -494
- package/dist/_node-chunks/chunk-HSX6BDBA.js +18 -0
- package/dist/_node-chunks/{chunk-UMUBKI6E.js → chunk-IPFPWMT5.js} +1320 -437
- package/dist/_node-chunks/chunk-KRIOC4WF.js +281 -0
- package/dist/_node-chunks/{chunk-TINO74G5.js → chunk-KUL2MJ6N.js} +6 -6
- package/dist/_node-chunks/{chunk-LO56I6E2.js → chunk-LUR6QTYB.js} +10 -10
- package/dist/_node-chunks/{chunk-YZFWBA5L.js → chunk-LYS7TI35.js} +368 -321
- package/dist/_node-chunks/chunk-MDTXL6SN.js +2613 -0
- package/dist/_node-chunks/{chunk-LCK4ZQKG.js → chunk-MIIPXT4S.js} +9 -9
- package/dist/_node-chunks/chunk-MLWGAA2I.js +138 -0
- package/dist/_node-chunks/{chunk-42UWAGPW.js → chunk-MWUGCUB5.js} +52 -22
- package/dist/_node-chunks/{chunk-JDXXX6LB.js → chunk-MX5MVLEK.js} +6 -6
- package/dist/_node-chunks/chunk-N44UIGCO.js +47 -0
- package/dist/_node-chunks/{chunk-OISX4AGQ.js → chunk-NP2JHOFY.js} +37 -31
- package/dist/_node-chunks/chunk-OMNGOPNG.js +52 -0
- package/dist/_node-chunks/{chunk-ZWBCQ4MJ.js → chunk-OO2GTHUF.js} +9 -17
- package/dist/_node-chunks/{chunk-F3ZFKBHY.js → chunk-PC57BIYZ.js} +8 -8
- package/dist/_node-chunks/chunk-PHWMAF5C.js +49 -0
- package/dist/_node-chunks/{chunk-B5J7Q7J4.js → chunk-PLIQQETC.js} +7 -7
- package/dist/_node-chunks/{chunk-H32DYT6P.js → chunk-QMYCIS2U.js} +6 -6
- package/dist/_node-chunks/{chunk-DUR55DJJ.js → chunk-QZIDK3GX.js} +89 -71
- package/dist/_node-chunks/{chunk-UVINFLGY.js → chunk-ROJ6RSIJ.js} +7 -7
- package/dist/_node-chunks/{chunk-E6YESGLX.js → chunk-S2NB6QEG.js} +542 -1049
- package/dist/_node-chunks/{chunk-TWI4GVH7.js → chunk-S6VCOSQS.js} +6 -6
- package/dist/_node-chunks/{chunk-KISMCCP5.js → chunk-SEVOOOB2.js} +474 -479
- package/dist/_node-chunks/{chunk-JZOO7GGC.js → chunk-SFT6ZAVN.js} +6 -6
- package/dist/_node-chunks/{chunk-RRN2V55B.js → chunk-SXBUK4F6.js} +7 -7
- package/dist/_node-chunks/{chunk-WNZ2UMFM.js → chunk-TGF6Q66I.js} +15 -9
- package/dist/_node-chunks/{chunk-NIBT7XDZ.js → chunk-TGFHWGGT.js} +9 -6
- package/dist/_node-chunks/chunk-TTLSBLPQ.js +620 -0
- package/dist/_node-chunks/{chunk-SVTBJ7Q3.js → chunk-UUAEW2AR.js} +6 -6
- package/dist/_node-chunks/chunk-VQHM66NL.js +534 -0
- package/dist/_node-chunks/{chunk-H4PPVMP5.js → chunk-VSTTY3TM.js} +6 -6
- package/dist/_node-chunks/{chunk-2DSIDINN.js → chunk-XDBSAFUB.js} +650 -9
- package/dist/_node-chunks/{chunk-OWNFOGTA.js → chunk-XTQQGAUZ.js} +7 -7
- package/dist/_node-chunks/{chunk-CXRU72ET.js → chunk-YMJVSFJT.js} +6 -6
- package/dist/_node-chunks/{chunk-DHJFTB4K.js → chunk-YXEKWVJQ.js} +7 -7
- package/dist/_node-chunks/{chunk-SLWQNBGO.js → chunk-Z6CUUWJO.js} +34 -949
- package/dist/_node-chunks/{chunk-TD5PLLQG.js → chunk-ZAIGR7EV.js} +64 -17
- package/dist/_node-chunks/{chunk-6KEHV53S.js → chunk-ZCFXEFR6.js} +33 -41
- package/dist/_node-chunks/{chunk-FW2HQUBQ.js → chunk-ZHUBOYOD.js} +6 -6
- package/dist/_node-chunks/{chunk-MA24JW6C.js → chunk-ZHUBTBP2.js} +25 -8
- package/dist/_node-chunks/{chunk-RXNJDRGO.js → chunk-ZSTIFZHY.js} +21 -25
- package/dist/_node-chunks/dist-TRTHRODT.js +16 -0
- package/dist/_node-chunks/dist-XPLJ5T4W.js +27 -0
- package/dist/_node-chunks/{local-runtime-NTKIN2QT.js → local-runtime-AC7MOWYK.js} +21 -22
- package/dist/_node-chunks/{mdx-plugin-MWISDWDQ.js → mdx-plugin-ZW26VGEP.js} +2263 -130
- package/dist/_node-chunks/{monorepo-LIRFMQXE.js → monorepo-T2KZK62Q.js} +12 -12
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-CPDW4XTW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-2CWUUF6H.js} +12 -12
- package/dist/_node-chunks/optimized-tests-4AK3PFSX.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-EKHIUAU2.js → pattern-copy-play-CMRGEXHM.js} +12 -12
- package/dist/_node-chunks/postinstallAddon-OUQENFYO.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-BUN3HUCO.js → rehype-external-links-LHOAIJ2E.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-PLADX223.js → rehype-slug-K54MMYY6.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-GBHW6KIQ.js → relaxed-limits-TTL4PWH7.js} +12 -12
- package/dist/_node-chunks/{run-NL66VTNR.js → run-6DXBB5F7.js} +294 -30
- package/dist/_node-chunks/{run-KDTIZNSY.js → run-BMTV5ZAO.js} +18 -18
- package/dist/_node-chunks/{setup-MGC7BQO6.js → setup-FDPYW25Y.js} +9 -9
- package/dist/_node-chunks/{vitest.config.4.template-JH2THZFG.js → vitest.config.4.template-2TCFWAAI.js} +9 -9
- package/dist/actions/decorator.js +18 -22
- package/dist/actions/index.d.ts +4 -4
- package/dist/actions/index.js +3 -2
- package/dist/addon-a11y/index.d.ts +3 -3
- package/dist/addon-a11y/index.js +3 -2
- package/dist/addon-a11y/manager.js +41 -38
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.d.ts +8 -2
- package/dist/addon-a11y/preview.js +3 -2
- package/dist/addon-comments/manager.js +353 -0
- package/dist/addon-comments/preset.js +80 -0
- package/dist/addon-comments/preview.js +101 -0
- package/dist/addon-docs/blocks.d.ts +123 -85
- package/dist/addon-docs/blocks.js +159 -85
- package/dist/addon-docs/index.d.ts +21 -21
- package/dist/addon-docs/index.js +3 -3
- package/dist/addon-docs/manager.js +6 -6
- package/dist/addon-docs/preset.js +12 -12
- package/dist/addon-docs/preview.d.ts +3 -1
- package/dist/addon-docs/preview.js +1 -1
- package/dist/addon-links/index.d.ts +2 -1
- package/dist/addon-links/index.js +5 -2
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-links/preview.js +5 -2
- package/dist/addon-links/react/index.js +4 -1
- package/dist/addon-mcp/preset.js +203 -84
- package/dist/addon-mcp/preview.js +1 -1
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +71 -71
- package/dist/addon-ondevice-actions/index.js +5 -1
- package/dist/addon-ondevice-actions/register.js +5 -1
- package/dist/addon-ondevice-controls/index.js +1 -1
- package/dist/addon-ondevice-controls/register.js +1 -1
- package/dist/addon-pseudo-states/index.d.ts +1 -1
- package/dist/addon-pseudo-states/index.js +1 -1
- package/dist/addon-pseudo-states/manager.js +2 -2
- package/dist/addon-pseudo-states/preview.d.ts +1 -1
- package/dist/addon-pseudo-states/preview.js +1 -1
- package/dist/addon-themes/index.d.ts +7 -6
- package/dist/addon-themes/index.js +2 -2
- package/dist/addon-themes/manager.js +4 -4
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-themes/preview.js +2 -2
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +32 -23
- package/dist/addon-vitest/node/coverage-reporter.js +11 -11
- package/dist/addon-vitest/node/vitest.js +37 -37
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +26 -26
- package/dist/addon-vitest/vitest-plugin/global-setup.js +23 -23
- package/dist/addon-vitest/vitest-plugin/index.js +83 -73
- package/dist/addon-vitest/vitest-plugin/setup-file-with-project-annotations.js +3 -3
- package/dist/addon-vitest/vitest-plugin/setup-file.js +1 -1
- package/dist/babel/index.d.ts +241 -995
- package/dist/babel/index.js +30583 -38
- package/dist/backgrounds/index.d.ts +1 -1
- package/dist/bin/core.js +122 -110
- package/dist/bin/dispatcher.js +18 -16
- package/dist/bin/loader.js +17 -16
- package/dist/builder-next/index.d.ts +59 -0
- package/dist/builder-next/index.js +201 -0
- package/dist/builder-vite/index.d.ts +8 -3
- package/dist/builder-vite/index.js +80 -25
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.d.ts +3 -2
- package/dist/channels/index.js +97 -24
- package/dist/{chunk-Dr3R0DXk.d.ts → chunk-B-NVyPqN.d.ts} +2 -2
- package/dist/{chunk-C2p5r3Vt.d.ts → chunk-B53gRJBs.d.ts} +838 -703
- package/dist/{chunk-DoIGKY33.d.ts → chunk-BLZXEm1K.d.ts} +6 -8
- package/dist/chunk-BcYKnZln.d.ts +10 -0
- package/dist/{chunk-Bpi2tz-6.d.ts → chunk-BspNQvZn.d.ts} +21 -23
- package/dist/{chunk-BCoJQE-f.d.ts → chunk-BtKww7r1.d.ts} +6 -4
- package/dist/chunk-CFhJCPSB.d.ts +48 -0
- package/dist/{chunk-DtHByo32.d.ts → chunk-CFk6djyM.d.ts} +5 -5
- package/dist/{chunk-CwQKNaYL.d.ts → chunk-CMx6bGAU.d.ts} +2 -2
- package/dist/{chunk-DEVFdzxR.d.ts → chunk-CRmUwbkb.d.ts} +4 -4
- package/dist/{chunk-CMeX4WRe.d.ts → chunk-CT2iXaHz.d.ts} +1 -1
- package/dist/{chunk-pcFXCimE.d.ts → chunk-CmV7WZzR.d.ts} +124 -2
- package/dist/{chunk-BGkgZp-H.d.ts → chunk-D3uSIa6H.d.ts} +9 -1
- package/dist/{chunk-DzuY9DXg.d.ts → chunk-DDd8BhTY.d.ts} +2 -2
- package/dist/{chunk-Dw1z1Pki.d.ts → chunk-DNCU78oW.d.ts} +160 -323
- package/dist/chunk-DVIvUVkS.d.ts +195 -0
- package/dist/{chunk-gCX81nOr.d.ts → chunk-DgzPaTw9.d.ts} +3 -3
- package/dist/{chunk-Kt1tW-D1.d.ts → chunk-Dm-iHJ-s.d.ts} +3 -3
- package/dist/{chunk-C-bavsOH.d.ts → chunk-Dw_4ad2Y.d.ts} +6 -6
- package/dist/chunk-Susgfkap.d.ts +20 -0
- package/dist/{chunk-B2t1tGRh.d.ts → chunk-bhl-7rRD.d.ts} +40 -15
- package/dist/{chunk-BXLImeLy.d.ts → chunk-r-Vjut9o.d.ts} +52 -11
- package/dist/cli/index.d.ts +15 -904
- package/dist/cli/index.js +49 -5209
- package/dist/cli/skills/content/index.d.ts +3 -3
- package/dist/cli/skills/content/index.js +3 -3
- package/dist/cli/tools/sdk/child-host.d.ts +1 -1
- package/dist/cli/tools/sdk/child-host.js +17 -17
- package/dist/cli/tools/sdk/index.d.ts +4 -4
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.d.ts +20 -21
- package/dist/client-logger/index.js +5 -2
- package/dist/common/index.d.ts +32 -44
- package/dist/common/index.js +89 -98
- package/dist/components/index.d.ts +86 -272
- package/dist/components/index.js +2759 -8547
- package/dist/core-events/index.d.ts +16 -7
- package/dist/core-events/index.js +5 -5
- package/dist/core-server/index.d.ts +95 -26
- package/dist/core-server/index.js +1675 -408
- package/dist/core-server/presets/common-manager.js +837 -1335
- package/dist/core-server/presets/common-override-preset.js +12 -10
- package/dist/core-server/presets/common-preset.js +100 -282
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/csf-utils.d.ts +1 -1
- package/dist/csf/index.d.ts +6 -6
- package/dist/csf/index.js +90 -159
- package/dist/csf-tools/index.d.ts +66 -54
- package/dist/csf-tools/index.js +19 -17
- package/dist/docs-tools/index.d.ts +332 -16
- package/dist/docs-tools/index.js +3 -3
- package/dist/highlight/index.d.ts +1 -1
- package/dist/instrumenter/index.d.ts +5 -5
- package/dist/instrumenter/index.js +31 -19
- package/dist/manager/_manager-chunks/{globals-runtime-BvM-NY2g.js → globals-runtime-B4NRbNSS.js} +638 -1731
- package/dist/{preview/_chunks/runtime-CqHxptiK.js → manager/_manager-chunks/globals-runtime-BC43T1rL.js} +3413 -173
- package/dist/manager/_manager-chunks/{globals-runtime-qKvCZHFY.js → globals-runtime-BJ6EZqH7.js} +1035 -623
- package/dist/manager/_manager-chunks/{globals-runtime-Rp_zjGnh.js → globals-runtime-BfXaq_CP.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-C02fvgcd.js → globals-runtime-BkSn_Jpe.js} +411 -379
- package/dist/manager/_manager-chunks/{globals-runtime-eLPTIfX-.js → globals-runtime-BnQ7i5wq.js} +232 -370
- package/dist/manager/_manager-chunks/globals-runtime-BtduS2C2.js +10601 -0
- package/dist/manager/_manager-chunks/globals-runtime-BzuYs3dZ.js +1971 -0
- package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
- package/dist/manager/_manager-chunks/globals-runtime-CS41oTca.js +1808 -0
- package/dist/manager/_manager-chunks/{globals-runtime-BmphMP6z.js → globals-runtime-Cisw9IIE.js} +11 -11
- package/dist/manager/_manager-chunks/globals-runtime-CoTrrHG3.js +1163 -0
- package/dist/manager/_manager-chunks/{globals-runtime-FC201B7s.js → globals-runtime-DCmvKMN5.js} +2 -1
- package/dist/manager/_manager-chunks/globals-runtime-DgO0hT2p.js +32 -0
- package/dist/manager/_manager-chunks/{globals-runtime-DpNYC-qi.js → globals-runtime-DpvE_zRs.js} +1013 -782
- package/dist/manager/_manager-chunks/globals-runtime-Me9Bl-sx.js +156 -0
- package/dist/manager/_manager-chunks/globals-runtime-nQMRiA0J.js +19 -0
- package/dist/manager/_manager-chunks/globals-runtime-oRjPg2jY.js +8935 -0
- package/dist/manager/_manager-chunks/{globals-runtime-sGpNlIJ1.js → globals-runtime-wV08sCKl.js} +715 -620
- package/dist/manager/_manager-chunks/{runtime-cp5pazY2.js → runtime-4OQZWibO.js} +1717 -1536
- package/dist/manager/_manager-chunks/runtime-BYxbyNm0.js +201 -0
- package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
- package/dist/manager/_manager-chunks/runtime-CM4Z8aKR.js +735 -0
- package/dist/manager/_manager-chunks/{runtime-eDVAYF7N.js → runtime-Cjo1UL1u.js} +57 -76
- package/dist/manager/_manager-chunks/runtime-Cx1-wr6J.js +294 -0
- package/dist/manager/_manager-chunks/{runtime-BhkT2CXl.js → runtime-Cxe_uJRb.js} +220 -406
- package/dist/manager/_manager-chunks/runtime-D702FFTO.js +551 -0
- package/dist/manager/_manager-chunks/{runtime-D94Vq3oR.js → runtime-DnWFp6Zw.js} +8 -534
- package/dist/manager/_manager-chunks/{runtime-D0UOWx0U.js → runtime-DoYPE6g6.js} +232 -158
- package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
- package/dist/manager/_manager-chunks/{runtime-i-PDAHLR.js → runtime-sppa-0ll.js} +741 -698
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/globals.d.ts +12 -12
- package/dist/manager/globals.js +12 -12
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +538 -528
- package/dist/manager-errors.d.ts +1 -1
- package/dist/manager-errors.js +2 -2
- package/dist/mcp/index.d.ts +10 -10
- package/dist/mcp/index.js +11 -11
- package/dist/mocking-utils/index.d.ts +7 -5
- package/dist/mocking-utils/index.js +34 -34
- package/dist/mocking-utils/mocker-runtime.js +2 -2
- package/dist/next/index.d.ts +231 -0
- package/dist/next/index.js +398 -0
- package/dist/nextjs-vite/export-mocks/headers/index.js +3 -1
- package/dist/nextjs-vite/export-mocks/link/index.d.ts +4 -1
- package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +9 -1
- package/dist/nextjs-vite/export-mocks/router/index.js +13 -7
- package/dist/nextjs-vite/index.d.ts +4 -4
- package/dist/nextjs-vite/index.js +10 -5
- package/dist/nextjs-vite/node/index.d.ts +2 -2
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/node-stand-ins/index.d.ts +68 -0
- package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
- package/dist/nextjs-vite/preset.js +117 -15
- package/dist/nextjs-vite/preview.d.ts +2 -1
- package/dist/nextjs-vite/preview.js +1 -1
- package/dist/nextjs-vite/vite-plugin/index.d.ts +2 -2
- package/dist/nextjs-vite/vite-plugin/index.js +9 -9
- package/dist/nextjs-vite-plugin/index.d.ts +2 -3
- package/dist/nextjs-vite-plugin/index.js +24 -49
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-image.js +2 -2
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.js +2 -2
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +10 -6
- package/dist/node-logger/index.d.ts +89 -90
- package/dist/node-logger/index.js +11 -12
- package/dist/oxc-parser/index.js +15 -14
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/{manager/_manager-chunks/globals-runtime-8HkdnU2F.js → preview/_chunks/runtime-BYRCSYBN.js} +4440 -179
- package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-Bvh_rfnQ.js} +29 -64
- package/dist/preview/_chunks/{runtime-iXdo8CR8.js → runtime-Cbq5WjbL.js} +772 -418
- package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-D2MPrqbU.js} +2 -2
- package/dist/preview/_chunks/{runtime-DrTjJkPY.js → runtime-DDEUZops.js} +453 -161
- package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-DS0s7U3c.js} +482 -334
- package/dist/preview/_chunks/{runtime-CsV4HZPV.js → runtime-DsjyhLpG.js} +397 -176
- package/dist/preview/_chunks/{runtime-CxZK_Ln3.js → runtime-Dwi6NFcX.js} +3 -3
- package/dist/preview/globals.d.ts +10 -10
- package/dist/preview/globals.js +10 -10
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +3 -3
- package/dist/preview-api/index.js +12 -10
- package/dist/preview-errors.d.ts +1 -1
- package/dist/preview-errors.js +2 -2
- package/dist/react/docgen/docgen-worker.js +11 -12
- package/dist/react/entry-preview-argtypes.js +1 -1
- package/dist/react/entry-preview-docs.js +1 -1
- package/dist/react/entry-preview.js +2 -1
- package/dist/react/index.d.ts +9 -11
- package/dist/react/index.js +8 -6
- package/dist/react/preset.js +13 -14
- package/dist/react/preview.d.ts +1 -1
- package/dist/react/preview.js +5 -4
- package/dist/react-native/bin/get-stories.js +12 -12
- package/dist/react-native/index.d.ts +48 -47
- package/dist/react-native/index.js +64 -249
- package/dist/react-native/metro/node.d.ts +3 -3
- package/dist/react-native/metro/node.js +10 -9
- package/dist/react-native/metro/{withStorybook.d.ts → withForkbook.d.ts} +18 -18
- package/dist/react-native/metro/{withStorybook.js → withForkbook.js} +27 -26
- package/dist/react-native/preview.js +4 -1
- package/dist/react-native/scripts/generate.d.ts +1 -1
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-native/stub.js +1 -1
- package/dist/react-native-theming/index.d.ts +2 -58
- package/dist/react-native-theming/index.js +63 -2338
- package/dist/react-native-ui/index.d.ts +14 -14
- package/dist/react-native-ui/index.js +8 -15
- package/dist/react-native-ui-common/index.d.ts +32 -12
- package/dist/react-native-ui-common/index.js +26 -31
- package/dist/react-vite/index.d.ts +2 -2
- package/dist/react-vite/node/index.d.ts +3 -3
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.d.ts +3 -1
- package/dist/react-vite/preset.js +16 -9
- package/dist/router/index.d.ts +80 -3
- package/dist/router/index.js +66 -12
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +3 -3
- package/dist/shared/open-service/index.js +2 -2
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/shared/open-service/toolsets/docs/public.d.ts +28 -28
- package/dist/telemetry/index.d.ts +38 -274
- package/dist/telemetry/index.js +11 -68
- package/dist/test/index.d.ts +2 -2
- package/dist/test/index.js +765 -511
- package/dist/theming/create.d.ts +1 -1
- package/dist/theming/create.js +2 -1
- package/dist/theming/index.d.ts +6 -6
- package/dist/theming/index.js +41 -16
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +5 -5
- package/dist/viewport/index.d.ts +1 -1
- package/package.json +69 -69
- package/skills/setup/SKILL.md +14 -0
- package/skills/stories/SKILL.md +21 -0
- package/skills/write-story/SKILL.md +14 -0
- package/template/nextjs-vite/cli/js/Button.jsx +2 -2
- package/template/nextjs-vite/cli/js/Button.stories.js +6 -6
- package/template/nextjs-vite/cli/js/Configure.mdx +100 -100
- package/template/nextjs-vite/cli/js/Header.jsx +1 -1
- package/template/nextjs-vite/cli/js/Header.stories.js +2 -2
- package/template/nextjs-vite/cli/js/Page.jsx +3 -3
- package/template/nextjs-vite/cli/js/Page.stories.js +2 -2
- package/template/nextjs-vite/cli/ts/Button.stories.ts +6 -6
- package/template/nextjs-vite/cli/ts/Button.tsx +2 -2
- package/template/nextjs-vite/cli/ts/Configure.mdx +84 -84
- package/template/nextjs-vite/cli/ts/Header.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Header.tsx +1 -1
- package/template/nextjs-vite/cli/ts/Page.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Page.tsx +3 -3
- package/template/react/cli/js/Button.jsx +2 -2
- package/template/react/cli/js/Button.stories.js +6 -6
- package/template/react/cli/js/Header.jsx +1 -1
- package/template/react/cli/js/Header.stories.js +2 -2
- package/template/react/cli/js/Page.jsx +3 -3
- package/template/react/cli/js/Page.stories.js +2 -2
- package/template/react/cli/ts/Button.stories.ts +6 -6
- package/template/react/cli/ts/Button.tsx +2 -2
- package/template/react/cli/ts/Header.stories.ts +2 -2
- package/template/react/cli/ts/Header.tsx +1 -1
- package/template/react/cli/ts/Page.stories.ts +2 -2
- package/template/react/cli/ts/Page.tsx +3 -3
- package/template/react-vite/cli/js/Button.jsx +2 -2
- package/template/react-vite/cli/js/Button.stories.js +6 -6
- package/template/react-vite/cli/js/Header.jsx +1 -1
- package/template/react-vite/cli/js/Header.stories.js +2 -2
- package/template/react-vite/cli/js/Page.jsx +3 -3
- package/template/react-vite/cli/js/Page.stories.js +2 -2
- package/template/react-vite/cli/ts/Button.stories.ts +6 -6
- package/template/react-vite/cli/ts/Button.tsx +2 -2
- package/template/react-vite/cli/ts/Header.stories.ts +2 -2
- package/template/react-vite/cli/ts/Header.tsx +1 -1
- package/template/react-vite/cli/ts/Page.stories.ts +2 -2
- package/template/react-vite/cli/ts/Page.tsx +3 -3
- package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-bold.woff2 +0 -0
- package/assets/browser/nunito-sans-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-regular.woff2 +0 -0
- package/dist/_browser-chunks/WithTooltip-XSQFTBMB.js +0 -1619
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
- package/dist/_browser-chunks/chunk-JMC7AIKT.js +0 -108
- package/dist/_node-chunks/builder-manager-VVHYQXCH.js +0 -1661
- package/dist/_node-chunks/chunk-2RU7BKEW.js +0 -23
- package/dist/_node-chunks/chunk-3BKIBF5S.js +0 -3008
- package/dist/_node-chunks/chunk-3T4ZSNPH.js +0 -662
- package/dist/_node-chunks/chunk-5DQFEZEA.js +0 -40
- package/dist/_node-chunks/chunk-6LMWA44H.js +0 -3837
- package/dist/_node-chunks/chunk-BXVYT7SB.js +0 -36
- package/dist/_node-chunks/chunk-CQKMLL5J.js +0 -33
- package/dist/_node-chunks/chunk-EHUNOMDD.js +0 -52345
- package/dist/_node-chunks/chunk-FY6UXW6G.js +0 -11
- package/dist/_node-chunks/chunk-GRBLDJCR.js +0 -989
- package/dist/_node-chunks/chunk-IDEL2J23.js +0 -23
- package/dist/_node-chunks/chunk-JPAZLYJ3.js +0 -29
- package/dist/_node-chunks/chunk-MK2KYAI6.js +0 -5414
- package/dist/_node-chunks/chunk-NPO45IMH.js +0 -33
- package/dist/_node-chunks/chunk-QEQLR22M.js +0 -1877
- package/dist/_node-chunks/chunk-RZMQ7S3L.js +0 -92
- package/dist/_node-chunks/chunk-SIEXZVCR.js +0 -51
- package/dist/_node-chunks/chunk-TEQGGSP7.js +0 -33
- package/dist/_node-chunks/chunk-TFCEV2XX.js +0 -155
- package/dist/_node-chunks/chunk-UBOGWBEA.js +0 -148
- package/dist/_node-chunks/chunk-W4OMYLSP.js +0 -1297
- package/dist/_node-chunks/chunk-WAXVSN3O.js +0 -18
- package/dist/_node-chunks/chunk-ZMAMXQKP.js +0 -4731
- package/dist/_node-chunks/dist-VTSTZKUB.js +0 -16
- package/dist/_node-chunks/globby-OEMHPBFY.js +0 -2884
- package/dist/_node-chunks/jiti-NFX6UU74.js +0 -3848
- package/dist/_node-chunks/lib-MDVARD7W.js +0 -366
- package/dist/_node-chunks/optimized-tests-HDOLR3EY.js +0 -22
- package/dist/_node-chunks/postinstallAddon-GYGMWDL6.js +0 -20
- package/dist/_node-chunks/session-id-KIIVOQLR.js +0 -23
- package/dist/chunk-BTVrWliM.d.ts +0 -115
- package/dist/chunk-BfBzpgct.d.ts +0 -916
- package/dist/chunk-BxWufQms.d.ts +0 -142
- package/dist/chunk-DaVb55-_.d.ts +0 -124
- package/dist/core-server/presets/common-manager.css +0 -170
- package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +0 -3389
- package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +0 -9766
- package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +0 -5357
- package/dist/manager/_manager-chunks/globals-runtime-ZHrQFa3-.js +0 -10463
- package/dist/manager/_manager-chunks/runtime-B1L9TH89.js +0 -452
- package/dist/manager/_manager-chunks/runtime-BK0zF7FN.js +0 -22
- package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +0 -998
- package/dist/manager/_manager-chunks/runtime-DMig8mT7.js +0 -77
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
- package/dist/preview/_chunks/runtime-BwSxqk3t.js +0 -63
- package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
- package/dist/preview/_chunks/runtime-DuHdxMFA.js +0 -387
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SnippetWarning,
|
|
3
3
|
Source
|
|
4
|
-
} from "../_browser-chunks/chunk-
|
|
4
|
+
} from "../_browser-chunks/chunk-5Z3MWCFR.js";
|
|
5
5
|
import {
|
|
6
6
|
ArgsTable,
|
|
7
7
|
BooleanControl,
|
|
@@ -21,9 +21,9 @@ import {
|
|
|
21
21
|
parse,
|
|
22
22
|
parseDate,
|
|
23
23
|
parseTime
|
|
24
|
-
} from "../_browser-chunks/chunk-
|
|
24
|
+
} from "../_browser-chunks/chunk-BSYOFSF6.js";
|
|
25
25
|
import "../_browser-chunks/chunk-PJSMZ27A.js";
|
|
26
|
-
import "../_browser-chunks/chunk-
|
|
26
|
+
import "../_browser-chunks/chunk-2WZWS7GJ.js";
|
|
27
27
|
import {
|
|
28
28
|
clsx
|
|
29
29
|
} from "../_browser-chunks/chunk-CNED6RYH.js";
|
|
@@ -31,7 +31,15 @@ import {
|
|
|
31
31
|
stringify
|
|
32
32
|
} from "../_browser-chunks/chunk-WGVAAM43.js";
|
|
33
33
|
import "../_browser-chunks/chunk-4ATQOMJB.js";
|
|
34
|
-
import
|
|
34
|
+
import {
|
|
35
|
+
buildStoryPathMap,
|
|
36
|
+
toUrlPath
|
|
37
|
+
} from "../_browser-chunks/chunk-XSVERCGB.js";
|
|
38
|
+
import "../_browser-chunks/chunk-NULBREPZ.js";
|
|
39
|
+
import {
|
|
40
|
+
groupEntriesByComponent
|
|
41
|
+
} from "../_browser-chunks/chunk-PZQRXPVR.js";
|
|
42
|
+
import "../_browser-chunks/chunk-PU7D2WDP.js";
|
|
35
43
|
import "../_browser-chunks/chunk-IE4ULIOQ.js";
|
|
36
44
|
import "../_browser-chunks/chunk-JWSKPMPC.js";
|
|
37
45
|
import "../_browser-chunks/chunk-JPUOQJUI.js";
|
|
@@ -40,32 +48,32 @@ import "../_browser-chunks/chunk-IMSF75WX.js";
|
|
|
40
48
|
// src/addon-docs/blocks/components/DocsPage.tsx
|
|
41
49
|
import { withReset as withReset2 } from "@aussieljk/forkbook/internal/components";
|
|
42
50
|
|
|
43
|
-
//
|
|
51
|
+
// forkbook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/components/DocsPage.module.css
|
|
44
52
|
var id = "core/src/addon-docs/blocks/components/DocsPage.module.css";
|
|
45
|
-
if (typeof document < "u" && !document.querySelector(`style[data-
|
|
53
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]`)) {
|
|
46
54
|
let style = document.createElement("style");
|
|
47
|
-
style.setAttribute("data-
|
|
55
|
+
style.setAttribute("data-fb-css", id), style.textContent = ".fb-JTDUUW-subtitle{font-weight:var(--fb-weight-regular);font-size:var(--fb-size-s3);color:rgb(from var(--fb-color-default-text) r g b / calc(alpha - .25));border-bottom:none;margin-bottom:15px;line-height:20px;@media (width>=600px){font-size:var(--fb-size-m1);margin-bottom:24px;line-height:28px}}.fb-JTDUUW-docsWrapper{background:var(--fb-background-content);box-sizing:border-box;flex-direction:row-reverse;justify-content:center;gap:3rem;min-height:100vh;padding:4rem 40px;display:flex}.fb-JTDUUW-docsContent{--docs-code-border:var(--fb-color-mediumlight);--docs-code-color:rgb(from var(--fb-color-default-text) r g b / calc(alpha - .1));--docs-code-background:var(--fb-color-lighter);--docs-table-header-background:var(--fb-color-lighter);flex:1;width:100%;min-width:0;max-width:1000px;& :where(a:not(.fb-anchor,.fb-unstyled,.fb-unstyled a)),& :where(blockquote:not(.fb-anchor,.fb-unstyled,.fb-unstyled blockquote)),& :where(div:not(.fb-anchor,.fb-unstyled,.fb-unstyled div)),& :where(dl:not(.fb-anchor,.fb-unstyled,.fb-unstyled dl)),& :where(h1:not(.fb-anchor,.fb-unstyled,.fb-unstyled h1)),& :where(h2:not(.fb-anchor,.fb-unstyled,.fb-unstyled h2)),& :where(h3:not(.fb-anchor,.fb-unstyled,.fb-unstyled h3)),& :where(h4:not(.fb-anchor,.fb-unstyled,.fb-unstyled h4)),& :where(h5:not(.fb-anchor,.fb-unstyled,.fb-unstyled h5)),& :where(h6:not(.fb-anchor,.fb-unstyled,.fb-unstyled h6)),& :where(li:not(.fb-anchor,.fb-unstyled,.fb-unstyled li)),& :where(ol:not(.fb-anchor,.fb-unstyled,.fb-unstyled ol)),& :where(p:not(.fb-anchor,.fb-unstyled,.fb-unstyled p)),& :where(pre:not(.fb-anchor,.fb-unstyled,.fb-unstyled pre)),& :where(span:not(.fb-anchor,.fb-unstyled,.fb-unstyled span)),& :where(table:not(.fb-anchor,.fb-unstyled,.fb-unstyled table)),& :where(ul:not(.fb-anchor,.fb-unstyled,.fb-unstyled ul)){font-family:var(--fb-font-base);font-size:var(--fb-size-s3);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:#0000;-webkit-overflow-scrolling:touch;margin:0}& :where(h1:not(.fb-anchor,.fb-unstyled,.fb-unstyled h1)),& :where(h2:not(.fb-anchor,.fb-unstyled,.fb-unstyled h2)),& :where(h3:not(.fb-anchor,.fb-unstyled,.fb-unstyled h3)),& :where(h4:not(.fb-anchor,.fb-unstyled,.fb-unstyled h4)),& :where(h5:not(.fb-anchor,.fb-unstyled,.fb-unstyled h5)),& :where(h6:not(.fb-anchor,.fb-unstyled,.fb-unstyled h6)){cursor:text;color:var(--fb-color-default-text);margin:20px 0 8px;padding:0;position:relative;&:first-of-type{margin-top:0;padding-top:0}&:hover a.anchor{text-decoration:none}& code{font-size:inherit}}& :where(li:not(.fb-anchor,.fb-unstyled,.fb-unstyled li)) code,& :where(p:not(.fb-anchor,.fb-unstyled,.fb-unstyled p)) code{white-space:nowrap;line-height:1;font-size:calc(var(--fb-size-s2) - 1px);border:1px solid var(--docs-code-border);color:var(--docs-code-color);background-color:var(--docs-code-background);border-radius:3px;margin:0 2px;padding:3px 5px}& :where(a:not(.fb-anchor,.fb-unstyled,.fb-unstyled a)){font-size:inherit;color:var(--fb-color-secondary);text-underline-offset:.11em;line-height:24px;text-decoration:underline .03125rem;&.absent{color:#c00}&.anchor{cursor:pointer;margin-left:-30px;padding-left:30px;text-decoration:none;display:block;position:absolute;top:0;bottom:0;left:0}&.anchor:hover,&.anchor:focus{text-decoration:underline}}& :where(blockquote:not(.fb-anchor,.fb-unstyled,.fb-unstyled blockquote)){border-left:4px solid var(--fb-color-medium);color:var(--fb-color-dark);margin:16px 0;padding:0 15px;&>:first-of-type{margin-top:0}&>:last-child{margin-bottom:0}}& :where(dl:not(.fb-anchor,.fb-unstyled,.fb-unstyled dl)){margin:16px 0;padding:0;& dt{margin:16px 0 4px;padding:0;font-size:14px;font-style:italic;font-weight:700}& dt:first-of-type{padding:0}& dt>:first-of-type{margin-top:0}& dt>:last-child{margin-bottom:0}& dd{margin:0 0 16px;padding:0 15px}& dd>:first-of-type{margin-top:0}& dd>:last-child{margin-bottom:0}}& :where(h1:not(.fb-anchor,.fb-unstyled,.fb-unstyled h1)){font-size:var(--fb-size-l1);font-weight:var(--fb-weight-bold)}& :where(h2:not(.fb-anchor,.fb-unstyled,.fb-unstyled h2)){font-size:var(--fb-size-m2);border-bottom:1px solid var(--fb-app-border-color);padding-bottom:4px}& :where(h3:not(.fb-anchor,.fb-unstyled,.fb-unstyled h3)){font-size:var(--fb-size-m1);font-weight:var(--fb-weight-bold)}& :where(h4:not(.fb-anchor,.fb-unstyled,.fb-unstyled h4)){font-size:var(--fb-size-s3)}& :where(h5:not(.fb-anchor,.fb-unstyled,.fb-unstyled h5)){font-size:var(--fb-size-s2)}& :where(h6:not(.fb-anchor,.fb-unstyled,.fb-unstyled h6)){font-size:var(--fb-size-s2);color:var(--fb-color-dark)}& :where(hr:not(.fb-anchor,.fb-unstyled,.fb-unstyled hr)){border:0;border-top:1px solid var(--fb-app-border-color);height:4px;padding:0}& :where(img:not(.fb-anchor,.fb-unstyled,.fb-unstyled img)){max-width:100%}& :where(li:not(.fb-anchor,.fb-unstyled,.fb-unstyled li)){font-size:var(--fb-size-s2);color:var(--fb-color-default-text);line-height:24px;&+li{margin-top:.25em}& ul,& ol{margin-top:.25em;margin-bottom:0}}& :where(ol:not(.fb-anchor,.fb-unstyled,.fb-unstyled ol)),& :where(ul:not(.fb-anchor,.fb-unstyled,.fb-unstyled ul)){margin:16px 0;padding-left:30px;& :first-of-type{margin-top:0}& :last-child{margin-bottom:0}}& :where(ul:not(.fb-anchor,.fb-unstyled,.fb-unstyled ul)){list-style:outside}& :where(p:not(.fb-anchor,.fb-unstyled,.fb-unstyled p)){font-size:var(--fb-size-s2);color:var(--fb-color-default-text);margin:16px 0;line-height:24px}& :where(pre:not(.fb-anchor,.fb-unstyled,.fb-unstyled pre)){font-family:var(--fb-font-mono);white-space:pre-wrap;color:inherit;border-radius:3px;margin:1rem 0;padding:11px 1rem;line-height:18px;&:not(.prismjs){background:0 0;border:none;border-radius:0;margin:0;padding:0}& pre,&.prismjs{white-space:pre-wrap;color:inherit;margin:0;padding:15px;font-size:13px;line-height:19px;& code{color:inherit;font-size:inherit}}& code{white-space:pre}& code,& tt{border:none}}& :where(span:not(.fb-anchor,.fb-unstyled,.fb-unstyled span)){&.frame{display:block;overflow:hidden;&>span{border:1px solid var(--fb-color-medium);float:left;width:auto;margin:13px 0 0;padding:7px;display:block;overflow:hidden}& span img{float:left;display:block}& span span{clear:both;color:var(--fb-color-darkest);padding:5px 0 0;display:block}}&.align-center{clear:both;display:block;overflow:hidden;&>span{text-align:center;margin:13px auto 0;display:block;overflow:hidden}& span img{text-align:center;margin:0 auto}}&.align-right{clear:both;display:block;overflow:hidden;&>span{text-align:right;margin:13px 0 0;display:block;overflow:hidden}& span img{text-align:right;margin:0}}&.float-left{float:left;margin-right:13px;display:block;overflow:hidden;& span{margin:13px 0 0}}&.float-right{float:right;margin-left:13px;display:block;overflow:hidden;&>span{text-align:right;margin:13px auto 0;display:block;overflow:hidden}}}& :where(table:not(.fb-anchor,.fb-unstyled,.fb-unstyled table)){max-width:100%;font-size:var(--fb-size-s2);border-collapse:collapse;border-spacing:0;margin:16px 0;padding:0;line-height:22px;display:block;overflow-x:auto;& tr{margin:0;padding:0}& tr th{font-weight:var(--fb-weight-bold);text-align:left;color:var(--fb-color-default-text);background:var(--docs-table-header-background);border:1px solid var(--fb-app-border-color);vertical-align:bottom;margin:0;padding:8px 12px}& tr td{border:1px solid var(--fb-app-border-color);color:var(--fb-color-default-text);vertical-align:top;margin:0;padding:8px 12px}& tr th :first-of-type,& tr td :first-of-type{margin-top:0}& tr th :last-child,& tr td :last-child{margin-bottom:0}}}:where([data-fb-theme=dark]) .fb-JTDUUW-docsContent{--docs-code-border:var(--fb-color-darker);--docs-code-color:rgb(from var(--fb-color-default-text) r g b / calc(alpha - .3));--docs-code-background:var(--fb-color-border);--docs-table-header-background:var(--fb-color-darker)}", document.head.appendChild(style);
|
|
48
56
|
}
|
|
49
|
-
var DocsPage_default = { docsWrapper: "
|
|
57
|
+
var DocsPage_default = { docsWrapper: "fb-JTDUUW-docsWrapper", subtitle: "fb-JTDUUW-subtitle", docsContent: "fb-JTDUUW-docsContent" };
|
|
50
58
|
|
|
51
59
|
// src/addon-docs/blocks/components/Title.tsx
|
|
52
60
|
import { withReset } from "@aussieljk/forkbook/internal/components";
|
|
53
61
|
|
|
54
|
-
//
|
|
62
|
+
// forkbook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/components/Title.module.css
|
|
55
63
|
var id2 = "core/src/addon-docs/blocks/components/Title.module.css";
|
|
56
|
-
if (typeof document < "u" && !document.querySelector(`style[data-
|
|
64
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id2}"]`)) {
|
|
57
65
|
let style = document.createElement("style");
|
|
58
|
-
style.setAttribute("data-
|
|
66
|
+
style.setAttribute("data-fb-css", id2), style.textContent = ".fb-sjHF1G-title{color:var(--fb-color-default-text);font-size:var(--fb-size-m3);font-weight:var(--fb-weight-bold);line-height:32px;@media (width>=600px){font-size:var(--fb-size-l1);margin-bottom:16px;line-height:36px}}", document.head.appendChild(style);
|
|
59
67
|
}
|
|
60
|
-
var Title_default = { title: "
|
|
68
|
+
var Title_default = { title: "fb-sjHF1G-title" };
|
|
61
69
|
|
|
62
70
|
// src/addon-docs/blocks/components/Title.tsx
|
|
63
71
|
import { jsx } from "react/jsx-runtime";
|
|
64
|
-
var Title = ({ className, ...props }) => jsx("h1", { className: clsx(withReset, Title_default.title, className), ...props });
|
|
72
|
+
var Title = ({ className, children, ...props }) => jsx("h1", { className: clsx(withReset, Title_default.title, className), ...props, children });
|
|
65
73
|
|
|
66
74
|
// src/addon-docs/blocks/components/DocsPage.tsx
|
|
67
75
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
68
|
-
var Subtitle = ({ className, ...props }) => jsx2("h2", { className: clsx(withReset2, DocsPage_default.subtitle, className), ...props }), DocsContent = ({ className, ...props }) => jsx2("div", { className: clsx(DocsPage_default.docsContent, className), ...props }), DocsWrapper = ({ className, ...props }) => jsx2("div", { className: clsx(DocsPage_default.docsWrapper, className), ...props }), DocsPageWrapper = ({ children, toc, lang = "en" }) => jsxs(DocsWrapper, { className: "sbdocs sbdocs-wrapper", children: [
|
|
76
|
+
var Subtitle = ({ className, children, ...props }) => jsx2("h2", { className: clsx(withReset2, DocsPage_default.subtitle, className), ...props, children }), DocsContent = ({ className, ...props }) => jsx2("div", { className: clsx(DocsPage_default.docsContent, className), ...props }), DocsWrapper = ({ className, ...props }) => jsx2("div", { className: clsx(DocsPage_default.docsWrapper, className), ...props }), DocsPageWrapper = ({ children, toc, lang = "en" }) => jsxs(DocsWrapper, { className: "sbdocs sbdocs-wrapper", children: [
|
|
69
77
|
toc,
|
|
70
78
|
jsx2(DocsContent, { className: "sbdocs sbdocs-content", lang, children })
|
|
71
79
|
] });
|
|
@@ -74,7 +82,7 @@ var Subtitle = ({ className, ...props }) => jsx2("h2", { className: clsx(withRes
|
|
|
74
82
|
import { Children, useCallback, useContext as useContext2, useId, useMemo, useState as useState3 } from "react";
|
|
75
83
|
import { logger } from "@aussieljk/forkbook/internal/client-logger";
|
|
76
84
|
import { Bar, Button as Button2, ToggleButton, Zoom } from "@aussieljk/forkbook/internal/components";
|
|
77
|
-
import {
|
|
85
|
+
import { CodeIcon, CopyIcon } from "lucide-react";
|
|
78
86
|
|
|
79
87
|
// src/addon-docs/blocks/blocks/DocsContext.ts
|
|
80
88
|
import { createContext } from "react";
|
|
@@ -169,13 +177,13 @@ var getStoryId = (props, context) => {
|
|
|
169
177
|
return storyProps ? jsx4(Story, { ...storyProps }) : null;
|
|
170
178
|
}, Story2 = withMdxComponentOverride("Story", StoryImpl);
|
|
171
179
|
|
|
172
|
-
//
|
|
180
|
+
// forkbook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/components/BlockBackground.module.css
|
|
173
181
|
var id3 = "core/src/addon-docs/blocks/components/BlockBackground.module.css";
|
|
174
|
-
if (typeof document < "u" && !document.querySelector(`style[data-
|
|
182
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id3}"]`)) {
|
|
175
183
|
let style = document.createElement("style");
|
|
176
|
-
style.setAttribute("data-
|
|
184
|
+
style.setAttribute("data-fb-css", id3), style.textContent = ".fb-x3oNsa-blockBackground{border-radius:var(--fb-app-border-radius);background:var(--fb-background-content);border:1px solid var(--fb-app-border-color);box-shadow:0 1px 3px #0000001a}:where([data-fb-theme=dark]) .fb-x3oNsa-blockBackground{box-shadow:0 2px 5px #0003}", document.head.appendChild(style);
|
|
177
185
|
}
|
|
178
|
-
var BlockBackground_default = { blockBackground: "
|
|
186
|
+
var BlockBackground_default = { blockBackground: "fb-x3oNsa-blockBackground" };
|
|
179
187
|
|
|
180
188
|
// src/addon-docs/blocks/components/BlockBackgroundStyles.tsx
|
|
181
189
|
var blockBackground = BlockBackground_default.blockBackground;
|
|
@@ -241,7 +249,7 @@ var ZoomContext = createContext2({
|
|
|
241
249
|
// src/addon-docs/blocks/components/Story.tsx
|
|
242
250
|
import { Fragment, jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
243
251
|
var storyBlockIdFromId = ({ story, primary }) => `story--${story.id}${primary ? "--primary" : ""}`, InlineStory = (props) => {
|
|
244
|
-
let storyRef = useRef(), [showLoader, setShowLoader] = useState2(!0), [error, setError] = useState2(), { story, height, autoplay, forceInitialArgs, renderStoryToElement } = props;
|
|
252
|
+
let storyRef = useRef(null), [showLoader, setShowLoader] = useState2(!0), [error, setError] = useState2(), { story, height, autoplay, forceInitialArgs, renderStoryToElement } = props;
|
|
245
253
|
return useEffect2(() => {
|
|
246
254
|
if (!(story && storyRef.current))
|
|
247
255
|
return () => {
|
|
@@ -292,26 +300,26 @@ var storyBlockIdFromId = ({ story, primary }) => `story--${story.id}${primary ?
|
|
|
292
300
|
"iframe"
|
|
293
301
|
) }) }), Story = (props) => {
|
|
294
302
|
let { inline, story } = props;
|
|
295
|
-
return inline && !props.autoplay && story.usesMount ? jsxs2("strong", { style: { color: "var(--
|
|
303
|
+
return inline && !props.autoplay && story.usesMount ? jsxs2("strong", { style: { color: "var(--fb-color-orange)" }, children: [
|
|
296
304
|
"This story mounts inside of play. Set",
|
|
297
305
|
" ",
|
|
298
|
-
jsx6("a", { href: "https://
|
|
306
|
+
jsx6("a", { href: "https://forkbook.ljk.dev/docs/api/doc-blocks/doc-block-story#autoplay", children: "autoplay" }),
|
|
299
307
|
" ",
|
|
300
308
|
"to true to view this story."
|
|
301
|
-
] }) : jsx6("div", { id: storyBlockIdFromId(props), className: "
|
|
309
|
+
] }) : jsx6("div", { id: storyBlockIdFromId(props), className: "fb-story fb-unstyled", "data-story-block": "true", children: inline ? jsx6(InlineStory, { ...props }) : jsx6(IFrameStory, { ...props }) });
|
|
302
310
|
}, StorySkeleton = () => jsx6(Loader, {});
|
|
303
311
|
|
|
304
312
|
// src/addon-docs/blocks/components/Toolbar.tsx
|
|
305
313
|
import { Button, Toolbar as SharedToolbar } from "@aussieljk/forkbook/internal/components";
|
|
306
|
-
import {
|
|
314
|
+
import { RotateCcwIcon, RefreshCwIcon, ZoomOutIcon, ZoomInIcon, Share2Icon } from "lucide-react";
|
|
307
315
|
|
|
308
|
-
//
|
|
316
|
+
// forkbook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/components/Toolbar.module.css
|
|
309
317
|
var id4 = "core/src/addon-docs/blocks/components/Toolbar.module.css";
|
|
310
|
-
if (typeof document < "u" && !document.querySelector(`style[data-
|
|
318
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id4}"]`)) {
|
|
311
319
|
let style = document.createElement("style");
|
|
312
|
-
style.setAttribute("data-
|
|
320
|
+
style.setAttribute("data-fb-css", id4), style.textContent = ".fb-zhwxuG-absoluteBar{align-items:center;transition:transform .2s linear;display:flex;position:absolute;top:0;left:0;right:0}.fb-zhwxuG-wrapper{align-items:center;gap:4px;display:flex}.fb-zhwxuG-iconPlaceholder{background-color:var(--fb-app-border-color);border-radius:2px;width:14px;height:14px;margin:0 7px;animation:1.5s ease-in-out infinite fb-zhwxuG-glow}@keyframes fb-zhwxuG-glow{0%,to{opacity:1}50%{opacity:.4}}", document.head.appendChild(style);
|
|
313
321
|
}
|
|
314
|
-
var Toolbar_default = { wrapper: "
|
|
322
|
+
var Toolbar_default = { wrapper: "fb-zhwxuG-wrapper", glow: "fb-zhwxuG-glow", absoluteBar: "fb-zhwxuG-absoluteBar", iconPlaceholder: "fb-zhwxuG-iconPlaceholder" };
|
|
315
323
|
|
|
316
324
|
// src/addon-docs/blocks/components/Toolbar.tsx
|
|
317
325
|
import { Fragment as Fragment2, jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
@@ -344,7 +352,7 @@ var TRAILING_INSET = 10, Toolbar = ({
|
|
|
344
352
|
variant: "ghost",
|
|
345
353
|
onClick: onReloadStory,
|
|
346
354
|
ariaLabel: "Reload story",
|
|
347
|
-
children: jsx7(
|
|
355
|
+
children: jsx7(RefreshCwIcon, {})
|
|
348
356
|
},
|
|
349
357
|
"reload"
|
|
350
358
|
),
|
|
@@ -357,7 +365,7 @@ var TRAILING_INSET = 10, Toolbar = ({
|
|
|
357
365
|
e.preventDefault(), zoom(0.8);
|
|
358
366
|
},
|
|
359
367
|
ariaLabel: "Zoom in",
|
|
360
|
-
children: jsx7(
|
|
368
|
+
children: jsx7(ZoomInIcon, {})
|
|
361
369
|
},
|
|
362
370
|
"zoomin"
|
|
363
371
|
),
|
|
@@ -383,7 +391,7 @@ var TRAILING_INSET = 10, Toolbar = ({
|
|
|
383
391
|
e.preventDefault(), resetZoom();
|
|
384
392
|
},
|
|
385
393
|
ariaLabel: "Reset zoom",
|
|
386
|
-
children: jsx7(
|
|
394
|
+
children: jsx7(RotateCcwIcon, {})
|
|
387
395
|
},
|
|
388
396
|
"zoomreset"
|
|
389
397
|
)
|
|
@@ -395,7 +403,7 @@ var TRAILING_INSET = 10, Toolbar = ({
|
|
|
395
403
|
padding: "small",
|
|
396
404
|
variant: "ghost",
|
|
397
405
|
ariaLabel: "Open canvas in new tab",
|
|
398
|
-
children: jsx7("a", { href: getStoryHref(storyId), target: "_blank", rel: "noopener noreferrer", children: jsx7(
|
|
406
|
+
children: jsx7("a", { href: getStoryHref(storyId), target: "_blank", rel: "noopener noreferrer", children: jsx7(Share2Icon, {}) })
|
|
399
407
|
},
|
|
400
408
|
"opener"
|
|
401
409
|
) }, "right")
|
|
@@ -403,13 +411,13 @@ var TRAILING_INSET = 10, Toolbar = ({
|
|
|
403
411
|
}
|
|
404
412
|
);
|
|
405
413
|
|
|
406
|
-
//
|
|
414
|
+
// forkbook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/components/Preview.module.css
|
|
407
415
|
var id5 = "core/src/addon-docs/blocks/components/Preview.module.css";
|
|
408
|
-
if (typeof document < "u" && !document.querySelector(`style[data-
|
|
416
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id5}"]`)) {
|
|
409
417
|
let style = document.createElement("style");
|
|
410
|
-
style.setAttribute("data-
|
|
418
|
+
style.setAttribute("data-fb-css", id5), style.textContent = ".fb-3lk6NG-childrenContainer{flex-flow:wrap;display:block;position:relative;overflow:auto;& .innerZoomElementWrapper>*{max-width:calc(100% - 20px);display:inline-block}}.fb-3lk6NG-childrenContainer:where([data-flex]){display:flex}.fb-3lk6NG-childrenContainer:where([data-column]){flex-direction:column;& .innerZoomElementWrapper>*{width:calc(100% - 20px);max-width:none;display:block}}.fb-3lk6NG-childrenContainer:where([data-layout=fullscreen]) .innerZoomElementWrapper>*{max-width:100%}.fb-3lk6NG-childrenContainer:where([data-layout=fullscreen][data-column]) .innerZoomElementWrapper>*{width:100%;max-width:none}.fb-3lk6NG-childrenContainer:where([data-layout=padded],[data-layout=centered]){padding:0;& .innerZoomElementWrapper>*{width:auto;border:8px solid #0000!important}}.fb-3lk6NG-childrenContainer:where([data-layout=padded][data-inline],[data-layout=centered][data-inline]){padding:32px 22px}.fb-3lk6NG-childrenContainer:where([data-layout=centered][data-inline]){place-content:center;place-items:center;display:flex}.fb-3lk6NG-childrenContainer:where([data-columns]) .innerZoomElementWrapper>*{min-width:calc(100% / var(--preview-columns) - 20px)}.fb-3lk6NG-actionBar{margin-top:-40px;margin-bottom:40px}.fb-3lk6NG-trailingSnippetWarning{margin-inline:auto 10px}.fb-3lk6NG-previewContainer{--preview-source-background:#000000d9;margin:25px 0 40px;position:relative;overflow:hidden;h3+&{margin-top:16px}}:where([data-fb-theme=dark]) .fb-3lk6NG-previewContainer{--preview-source-background:hsl(from var(--fb-background-content) h s calc(l - 5))}.fb-3lk6NG-previewContainer:where([data-with-toolbar]){padding-top:40px}.fb-3lk6NG-source{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--fb-app-border-radius);border-bottom-right-radius:var(--fb-app-border-radius);background:var(--preview-source-background);color:var(--fb-color-lightest);border:none;margin:0;& button{background:var(--preview-source-background)}}.fb-3lk6NG-positionedToolbar{height:40px;position:absolute;top:0;left:0;right:0}.fb-3lk6NG-skeleton .docs-story{padding-top:32px;padding-bottom:40px}", document.head.appendChild(style);
|
|
411
419
|
}
|
|
412
|
-
var Preview_default = {
|
|
420
|
+
var Preview_default = { childrenContainer: "fb-3lk6NG-childrenContainer", actionBar: "fb-3lk6NG-actionBar", trailingSnippetWarning: "fb-3lk6NG-trailingSnippetWarning", previewContainer: "fb-3lk6NG-previewContainer", source: "fb-3lk6NG-source", positionedToolbar: "fb-3lk6NG-positionedToolbar", skeleton: "fb-3lk6NG-skeleton" };
|
|
413
421
|
|
|
414
422
|
// src/addon-docs/blocks/components/Preview.tsx
|
|
415
423
|
import { Fragment as Fragment3, jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
@@ -460,7 +468,7 @@ var COPIED_LABEL_ANIMATION_DURATION = 2e3, Preview = ({
|
|
|
460
468
|
blockBackground,
|
|
461
469
|
Preview_default.previewContainer,
|
|
462
470
|
className,
|
|
463
|
-
"sbdocs sbdocs-preview
|
|
471
|
+
"sbdocs sbdocs-preview fb-unstyled"
|
|
464
472
|
),
|
|
465
473
|
children: [
|
|
466
474
|
withToolbar && jsx8(
|
|
@@ -507,7 +515,7 @@ var COPIED_LABEL_ANIMATION_DURATION = 2e3, Preview = ({
|
|
|
507
515
|
variant: "ghost",
|
|
508
516
|
className: "docblock-code-toggle docblock-code-toggle--disabled",
|
|
509
517
|
children: [
|
|
510
|
-
jsx8(
|
|
518
|
+
jsx8(CodeIcon, {}),
|
|
511
519
|
" No code available"
|
|
512
520
|
]
|
|
513
521
|
}
|
|
@@ -525,7 +533,7 @@ var COPIED_LABEL_ANIMATION_DURATION = 2e3, Preview = ({
|
|
|
525
533
|
variant: "ghost",
|
|
526
534
|
className: `docblock-code-toggle${expanded ? " docblock-code-toggle--expanded" : ""}`,
|
|
527
535
|
children: [
|
|
528
|
-
jsx8(
|
|
536
|
+
jsx8(CodeIcon, {}),
|
|
529
537
|
" ",
|
|
530
538
|
expanded ? "Hide code" : "Show code"
|
|
531
539
|
]
|
|
@@ -579,13 +587,13 @@ var TabbedArgsTable = ({ tabs, ...props }) => {
|
|
|
579
587
|
// src/addon-docs/blocks/components/Typeset.tsx
|
|
580
588
|
import { withReset as withReset3 } from "@aussieljk/forkbook/internal/components";
|
|
581
589
|
|
|
582
|
-
//
|
|
590
|
+
// forkbook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/components/Typeset.module.css
|
|
583
591
|
var id6 = "core/src/addon-docs/blocks/components/Typeset.module.css";
|
|
584
|
-
if (typeof document < "u" && !document.querySelector(`style[data-
|
|
592
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id6}"]`)) {
|
|
585
593
|
let style = document.createElement("style");
|
|
586
|
-
style.setAttribute("data-
|
|
594
|
+
style.setAttribute("data-fb-css", id6), style.textContent = ".fb-JrHkka-label{font-size:var(--fb-size-s1);color:rgb(from var(--fb-color-default-text) r g b / calc(alpha - .4));margin-right:30px}:where([data-fb-theme=dark]) .fb-JrHkka-label{color:rgb(from var(--fb-color-default-text) r g b / calc(alpha - .6))}.fb-JrHkka-sample{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.fb-JrHkka-typeSpecimen{flex-direction:row;align-items:baseline;display:flex;&:not(:last-child){margin-bottom:1rem}}.fb-JrHkka-wrapper{margin:25px 0 40px;padding:30px 20px}", document.head.appendChild(style);
|
|
587
595
|
}
|
|
588
|
-
var Typeset_default = {
|
|
596
|
+
var Typeset_default = { typeSpecimen: "fb-JrHkka-typeSpecimen", label: "fb-JrHkka-label", sample: "fb-JrHkka-sample", wrapper: "fb-JrHkka-wrapper" };
|
|
589
597
|
|
|
590
598
|
// src/addon-docs/blocks/components/Typeset.tsx
|
|
591
599
|
import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
@@ -599,7 +607,7 @@ var Typeset = ({
|
|
|
599
607
|
"div",
|
|
600
608
|
{
|
|
601
609
|
...props,
|
|
602
|
-
className: clsx(withReset3, blockBackground, Typeset_default.wrapper, "docblock-typeset
|
|
610
|
+
className: clsx(withReset3, blockBackground, Typeset_default.wrapper, "docblock-typeset fb-unstyled"),
|
|
603
611
|
children: fontSizes.map((size) => jsxs5("div", { className: Typeset_default.typeSpecimen, children: [
|
|
604
612
|
jsx10("div", { className: Typeset_default.label, children: size }),
|
|
605
613
|
jsx10(
|
|
@@ -622,13 +630,13 @@ var Typeset = ({
|
|
|
622
630
|
// src/addon-docs/blocks/components/ColorPalette.tsx
|
|
623
631
|
import { ResetWrapper } from "@aussieljk/forkbook/internal/components";
|
|
624
632
|
|
|
625
|
-
//
|
|
633
|
+
// forkbook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/components/ColorPalette.module.css
|
|
626
634
|
var id7 = "core/src/addon-docs/blocks/components/ColorPalette.module.css";
|
|
627
|
-
if (typeof document < "u" && !document.querySelector(`style[data-
|
|
635
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id7}"]`)) {
|
|
628
636
|
let style = document.createElement("style");
|
|
629
|
-
style.setAttribute("data-
|
|
637
|
+
style.setAttribute("data-fb-css", id7), style.textContent = '.fb-yLo5nG-itemTitle{font-weight:var(--fb-weight-bold);color:var(--fb-color-default-text)}.fb-yLo5nG-itemSubtitle{color:rgb(from var(--fb-color-default-text) r g b / calc(alpha - .3))}.fb-yLo5nG-itemDescription{flex:0 0 30%;margin-top:5px;line-height:20px}.fb-yLo5nG-swatchLabel{text-align:center;font-family:var(--fb-font-mono);font-size:var(--fb-size-s1);color:rgb(from var(--fb-color-default-text) r g b / calc(alpha - .3));flex:1;line-height:1;overflow:hidden;&>div{text-overflow:ellipsis;max-width:100%;display:inline-block;overflow:hidden}& span{margin-top:2px;display:block}}.fb-yLo5nG-swatchLabels{flex-direction:row;display:flex}.fb-yLo5nG-swatch{flex:1;position:relative;&:before{background:var(--swatch-background);content:"";width:100%;height:100%;position:absolute;top:0;left:0}}.fb-yLo5nG-swatchColors{background-color:#fff;background-image:repeating-linear-gradient(-45deg,#ccc,#ccc 1px,#fff 1px 16px);background-clip:padding-box;flex-direction:row;height:50px;margin-bottom:5px;display:flex;overflow:hidden}.fb-yLo5nG-swatchSpecimen{flex-direction:column;flex:1;margin-bottom:30px;display:flex;position:relative}.fb-yLo5nG-swatches{flex-direction:row;flex:1;display:flex}.fb-yLo5nG-item{align-items:flex-start;display:flex}.fb-yLo5nG-listName{flex:0 0 30%}.fb-yLo5nG-listSwatches{flex:1}.fb-yLo5nG-listHeading{font-weight:var(--fb-weight-bold);color:rgb(from var(--fb-color-default-text) r g b / calc(alpha - .3));flex-direction:row;align-items:center;padding-bottom:20px;display:flex}.fb-yLo5nG-list{font-size:var(--fb-size-s2);flex-direction:column;line-height:20px;display:flex}', document.head.appendChild(style);
|
|
630
638
|
}
|
|
631
|
-
var ColorPalette_default = { swatchColors: "
|
|
639
|
+
var ColorPalette_default = { swatchColors: "fb-yLo5nG-swatchColors", swatches: "fb-yLo5nG-swatches", itemTitle: "fb-yLo5nG-itemTitle", itemSubtitle: "fb-yLo5nG-itemSubtitle", listSwatches: "fb-yLo5nG-listSwatches", itemDescription: "fb-yLo5nG-itemDescription", item: "fb-yLo5nG-item", listName: "fb-yLo5nG-listName", listHeading: "fb-yLo5nG-listHeading", swatch: "fb-yLo5nG-swatch", list: "fb-yLo5nG-list", swatchSpecimen: "fb-yLo5nG-swatchSpecimen", swatchLabels: "fb-yLo5nG-swatchLabels", swatchLabel: "fb-yLo5nG-swatchLabel" };
|
|
632
640
|
|
|
633
641
|
// src/addon-docs/blocks/components/ColorPalette.tsx
|
|
634
642
|
import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
@@ -671,7 +679,7 @@ var ColorItem = ({ title, subtitle, colors }) => jsxs6("div", { className: Color
|
|
|
671
679
|
jsx11("div", { className: ColorPalette_default.itemSubtitle, children: subtitle })
|
|
672
680
|
] }),
|
|
673
681
|
jsx11("div", { className: ColorPalette_default.swatches, children: renderSwatchSpecimen(colors) })
|
|
674
|
-
] }), ColorPalette = ({ children, ...props }) => jsx11(ResetWrapper, { children: jsxs6("div", { ...props, className: clsx(ColorPalette_default.list, "docblock-colorpalette
|
|
682
|
+
] }), ColorPalette = ({ children, ...props }) => jsx11(ResetWrapper, { children: jsxs6("div", { ...props, className: clsx(ColorPalette_default.list, "docblock-colorpalette fb-unstyled"), children: [
|
|
675
683
|
jsxs6("div", { className: ColorPalette_default.listHeading, children: [
|
|
676
684
|
jsx11("div", { className: ColorPalette_default.listName, children: "Name" }),
|
|
677
685
|
jsx11("div", { className: ColorPalette_default.listSwatches, children: "Swatches" })
|
|
@@ -682,20 +690,20 @@ var ColorItem = ({ title, subtitle, colors }) => jsxs6("div", { className: Color
|
|
|
682
690
|
// src/addon-docs/blocks/components/IconGallery.tsx
|
|
683
691
|
import { ResetWrapper as ResetWrapper2 } from "@aussieljk/forkbook/internal/components";
|
|
684
692
|
|
|
685
|
-
//
|
|
693
|
+
// forkbook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/components/IconGallery.module.css
|
|
686
694
|
var id8 = "core/src/addon-docs/blocks/components/IconGallery.module.css";
|
|
687
|
-
if (typeof document < "u" && !document.querySelector(`style[data-
|
|
695
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id8}"]`)) {
|
|
688
696
|
let style = document.createElement("style");
|
|
689
|
-
style.setAttribute("data-
|
|
697
|
+
style.setAttribute("data-fb-css", id8), style.textContent = ".fb-P_cJ1a-itemLabel{font-family:var(--fb-font-base);font-size:var(--fb-size-s1);color:var(--fb-color-default-text);word-break:break-word;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-left:10px;line-height:1.2;display:-webkit-box;overflow:hidden}.fb-P_cJ1a-itemSpecimen{flex:none;justify-content:center;align-items:center;width:40px;height:40px;display:flex;overflow:hidden;&>img,&>svg{width:20px;height:20px}}.fb-P_cJ1a-item{flex-direction:row;align-items:center;width:100%;display:inline-flex}.fb-P_cJ1a-list{grid-gap:8px 16px;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));grid-auto-rows:50px;grid-auto-flow:dense;display:grid}", document.head.appendChild(style);
|
|
690
698
|
}
|
|
691
|
-
var IconGallery_default = { itemLabel: "
|
|
699
|
+
var IconGallery_default = { itemLabel: "fb-P_cJ1a-itemLabel", item: "fb-P_cJ1a-item", itemSpecimen: "fb-P_cJ1a-itemSpecimen", list: "fb-P_cJ1a-list" };
|
|
692
700
|
|
|
693
701
|
// src/addon-docs/blocks/components/IconGallery.tsx
|
|
694
702
|
import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
695
703
|
var IconItem = ({ name, children }) => jsxs7("div", { className: IconGallery_default.item, children: [
|
|
696
704
|
jsx12("div", { className: clsx(blockBackground, IconGallery_default.itemSpecimen), children }),
|
|
697
705
|
jsx12("div", { className: IconGallery_default.itemLabel, children: name })
|
|
698
|
-
] }), IconGallery = ({ children, ...props }) => jsx12(ResetWrapper2, { children: jsx12("div", { ...props, className: clsx(IconGallery_default.list, "docblock-icongallery
|
|
706
|
+
] }), IconGallery = ({ children, ...props }) => jsx12(ResetWrapper2, { children: jsx12("div", { ...props, className: clsx(IconGallery_default.list, "docblock-icongallery fb-unstyled"), children }) });
|
|
699
707
|
|
|
700
708
|
// src/addon-docs/blocks/components/TableOfContents.tsx
|
|
701
709
|
import { useEffect as useEffect3 } from "react";
|
|
@@ -1214,13 +1222,13 @@ function getTocElement(options) {
|
|
|
1214
1222
|
var tocbot = { destroy, init, refresh };
|
|
1215
1223
|
var tocbot_default = tocbot;
|
|
1216
1224
|
|
|
1217
|
-
//
|
|
1225
|
+
// forkbook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/components/TableOfContents.module.css
|
|
1218
1226
|
var id9 = "core/src/addon-docs/blocks/components/TableOfContents.module.css";
|
|
1219
|
-
if (typeof document < "u" && !document.querySelector(`style[data-
|
|
1227
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id9}"]`)) {
|
|
1220
1228
|
let style = document.createElement("style");
|
|
1221
|
-
style.setAttribute("data-
|
|
1229
|
+
style.setAttribute("data-fb-css", id9), style.textContent = '.fb-7qSlVa-aside{width:10rem;@media (width<=768px){display:none}}.fb-7qSlVa-nav{width:10rem;font-family:var(--fb-font-base);font-size:var(--fb-size-s2);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:#0000;-webkit-overflow-scrolling:touch;padding-top:4rem;padding-bottom:2rem;position:fixed;top:0;bottom:0;overflow-y:auto;& *{box-sizing:border-box}&>.toc-wrapper>.toc-list,&>.toc-wrapper>.toc-list .toc-list{border-left:solid 2px var(--fb-color-mediumlight);padding-left:0}& .toc-list-item{margin-left:20px;padding-top:3px;padding-bottom:3px;list-style-type:none;position:relative}& .toc-list-item:before{content:"";border-left:solid 2px var(--fb-color-mediumdark);opacity:0;height:100%;transition:opacity .2s;position:absolute;top:0;left:0;transform:translate(-22px)}& .toc-list-item.is-active-li:before{opacity:1}& .toc-list-item>a{color:var(--fb-color-default-text);text-decoration:none}& .toc-list-item.is-active-li>a{color:var(--fb-color-secondary);font-weight:600;text-decoration:none}}.fb-7qSlVa-heading{color:var(--fb-color-default-text);text-transform:uppercase;margin-bottom:10px;font-size:.875em;font-weight:600}', document.head.appendChild(style);
|
|
1222
1230
|
}
|
|
1223
|
-
var TableOfContents_default = { nav: "
|
|
1231
|
+
var TableOfContents_default = { nav: "fb-7qSlVa-nav", aside: "fb-7qSlVa-aside", heading: "fb-7qSlVa-heading" };
|
|
1224
1232
|
|
|
1225
1233
|
// src/addon-docs/blocks/components/TableOfContents.tsx
|
|
1226
1234
|
import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
@@ -1228,7 +1236,7 @@ var Title2 = ({ headingId, title }) => typeof title == "string" || !title ? jsx1
|
|
|
1228
1236
|
"h2",
|
|
1229
1237
|
{
|
|
1230
1238
|
id: headingId,
|
|
1231
|
-
className: clsx(TableOfContents_default.heading, !title && "
|
|
1239
|
+
className: clsx(TableOfContents_default.heading, !title && "fb-sr-only"),
|
|
1232
1240
|
lang: title ? void 0 : "en",
|
|
1233
1241
|
children: title || "Table of contents"
|
|
1234
1242
|
}
|
|
@@ -1278,7 +1286,7 @@ var Title2 = ({ headingId, title }) => typeof title == "string" || !title ? jsx1
|
|
|
1278
1286
|
// src/addon-docs/blocks/blocks/Anchor.tsx
|
|
1279
1287
|
import { anchorBlockIdFromId } from "@aussieljk/forkbook/internal/docs-tools";
|
|
1280
1288
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1281
|
-
var Anchor = ({ storyId, children }) => jsx14("div", { id: anchorBlockIdFromId(storyId), className: "
|
|
1289
|
+
var Anchor = ({ storyId, children }) => jsx14("div", { id: anchorBlockIdFromId(storyId), className: "fb-anchor", children });
|
|
1282
1290
|
|
|
1283
1291
|
// src/addon-docs/blocks/blocks/ArgTypes.tsx
|
|
1284
1292
|
import { useContext as useContext4 } from "react";
|
|
@@ -1901,15 +1909,15 @@ import {
|
|
|
1901
1909
|
nameSpaceClassNames
|
|
1902
1910
|
} from "@aussieljk/forkbook/internal/components";
|
|
1903
1911
|
import { NAVIGATE_URL as NAVIGATE_URL2 } from "@aussieljk/forkbook/internal/core-events";
|
|
1904
|
-
import { LinkIcon } from "
|
|
1912
|
+
import { LinkIcon } from "lucide-react";
|
|
1905
1913
|
|
|
1906
|
-
//
|
|
1914
|
+
// forkbook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/blocks/mdx.module.css
|
|
1907
1915
|
var id10 = "core/src/addon-docs/blocks/blocks/mdx.module.css";
|
|
1908
|
-
if (typeof document < "u" && !document.querySelector(`style[data-
|
|
1916
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id10}"]`)) {
|
|
1909
1917
|
let style = document.createElement("style");
|
|
1910
|
-
style.setAttribute("data-
|
|
1918
|
+
style.setAttribute("data-fb-css", id10), style.textContent = ".fb-HnuX0q-alignmentWrapper{display:block;position:relative;& svg{visibility:hidden}&:hover svg,&:focus-within svg{visibility:visible}}.fb-HnuX0q-anchorWrapper{line-height:inherit;color:inherit;padding-right:8px;position:absolute;top:50%;right:100%;& a{color:inherit;text-decoration:none}}.fb-HnuX0q-anchorWrapper.fb-HnuX0q-anchorWrapper{margin-top:-14px}", document.head.appendChild(style);
|
|
1911
1919
|
}
|
|
1912
|
-
var mdx_default = { alignmentWrapper: "
|
|
1920
|
+
var mdx_default = { alignmentWrapper: "fb-HnuX0q-alignmentWrapper", anchorWrapper: "fb-HnuX0q-anchorWrapper" };
|
|
1913
1921
|
|
|
1914
1922
|
// src/addon-docs/blocks/blocks/mdx.tsx
|
|
1915
1923
|
import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
@@ -1976,7 +1984,7 @@ var A = components.a, AnchorInPage = ({ hash, children }) => {
|
|
|
1976
1984
|
...rest
|
|
1977
1985
|
}) => {
|
|
1978
1986
|
let context = useContext9(DocsContext), OcticonHeader = as, hash = `#${id11}`;
|
|
1979
|
-
return jsx20(OcticonHeader, { id: id11, ...rest, children: jsxs9("span", { className: `${mdx_default.alignmentWrapper}
|
|
1987
|
+
return jsx20(OcticonHeader, { id: id11, ...rest, children: jsxs9("span", { className: `${mdx_default.alignmentWrapper} fb-unstyled`, children: [
|
|
1980
1988
|
jsx20("span", { className: mdx_default.anchorWrapper, children: jsx20(
|
|
1981
1989
|
Button3,
|
|
1982
1990
|
{
|
|
@@ -2006,13 +2014,11 @@ var A = components.a, AnchorInPage = ({ hash, children }) => {
|
|
|
2006
2014
|
return jsx20(HeaderWithOcticonAnchor, { as, id: id11, ...rest, children });
|
|
2007
2015
|
let Component2 = as, { as: omittedAs, ...withoutAs } = props;
|
|
2008
2016
|
return jsx20(Component2, { ...nameSpaceClassNames(withoutAs, as) });
|
|
2009
|
-
}, HeadersMdx =
|
|
2010
|
-
(
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
}),
|
|
2015
|
-
{}
|
|
2017
|
+
}, HeadersMdx = Object.fromEntries(
|
|
2018
|
+
SUPPORTED_MDX_HEADERS.map((headerType) => [
|
|
2019
|
+
headerType,
|
|
2020
|
+
(props) => jsx20(HeaderMdx, { as: headerType, ...props })
|
|
2021
|
+
])
|
|
2016
2022
|
);
|
|
2017
2023
|
|
|
2018
2024
|
// src/addon-docs/blocks/blocks/Markdown.tsx
|
|
@@ -2132,8 +2138,14 @@ var DescriptionType = /* @__PURE__ */ ((DescriptionType2) => (DescriptionType2.I
|
|
|
2132
2138
|
}, Description = withMdxComponentOverride("Description", DescriptionImpl);
|
|
2133
2139
|
|
|
2134
2140
|
// src/addon-docs/blocks/blocks/DocsContainer.tsx
|
|
2135
|
-
import { useEffect as useEffect9, useMemo as useMemo3 } from "react";
|
|
2136
|
-
import {
|
|
2141
|
+
import { useEffect as useEffect9, useMemo as useMemo3, useState as useState9 } from "react";
|
|
2142
|
+
import { LucideProvider } from "lucide-react";
|
|
2143
|
+
import {
|
|
2144
|
+
ensure as ensureTheme,
|
|
2145
|
+
getPreferredColorScheme,
|
|
2146
|
+
ThemeProvider,
|
|
2147
|
+
themes
|
|
2148
|
+
} from "@aussieljk/forkbook/theming";
|
|
2137
2149
|
|
|
2138
2150
|
// src/addon-docs/blocks/blocks/DocsSluggerContext.ts
|
|
2139
2151
|
import { createContext as createContext4 } from "react";
|
|
@@ -2189,12 +2201,21 @@ var createDocsSlugger = () => new BananaSlug(), DocsSluggerContext = createConte
|
|
|
2189
2201
|
|
|
2190
2202
|
// src/addon-docs/blocks/blocks/DocsContainer.tsx
|
|
2191
2203
|
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
2192
|
-
var { document: document3, window: globalWindow2 } = globalThis,
|
|
2204
|
+
var { document: document3, window: globalWindow2 } = globalThis, usePreferredTheme = () => {
|
|
2205
|
+
let [scheme, setScheme] = useState9(getPreferredColorScheme);
|
|
2206
|
+
return useEffect9(() => {
|
|
2207
|
+
let query = globalWindow2.matchMedia?.("(prefers-color-scheme: dark)");
|
|
2208
|
+
if (!query)
|
|
2209
|
+
return;
|
|
2210
|
+
let onChange = () => setScheme(query.matches ? "dark" : "light");
|
|
2211
|
+
return query.addEventListener("change", onChange), () => query.removeEventListener("change", onChange);
|
|
2212
|
+
}, []), themes[scheme];
|
|
2213
|
+
}, DocsContainer = ({
|
|
2193
2214
|
context,
|
|
2194
2215
|
theme,
|
|
2195
2216
|
children
|
|
2196
2217
|
}) => {
|
|
2197
|
-
let slugger = useMemo3(() => createDocsSlugger(), []), toc, lang;
|
|
2218
|
+
let slugger = useMemo3(() => createDocsSlugger(), []), preferredTheme = usePreferredTheme(), toc, lang;
|
|
2198
2219
|
try {
|
|
2199
2220
|
let metaParameters = context.resolveOf("meta", ["meta"]).preparedMeta.parameters;
|
|
2200
2221
|
toc = metaParameters?.docs?.toc, lang = metaParameters?.docs?.lang || "en";
|
|
@@ -2212,7 +2233,7 @@ var { document: document3, window: globalWindow2 } = globalThis, DocsContainer =
|
|
|
2212
2233
|
}
|
|
2213
2234
|
} catch {
|
|
2214
2235
|
}
|
|
2215
|
-
}), jsx23(DocsSluggerContext.Provider, { value: slugger, children: jsx23(DocsContext.Provider, { value: context, children: jsx23(SourceContainer, { channel: context.channel, children: jsx23(ThemeProvider, { theme: ensureTheme(theme), children: jsx23(
|
|
2236
|
+
}), jsx23(DocsSluggerContext.Provider, { value: slugger, children: jsx23(DocsContext.Provider, { value: context, children: jsx23(SourceContainer, { channel: context.channel, children: jsx23(ThemeProvider, { theme: ensureTheme(theme ?? preferredTheme), children: jsx23(LucideProvider, { size: 14, children: jsx23(
|
|
2216
2237
|
DocsPageWrapper,
|
|
2217
2238
|
{
|
|
2218
2239
|
lang,
|
|
@@ -2226,7 +2247,7 @@ var { document: document3, window: globalWindow2 } = globalThis, DocsContainer =
|
|
|
2226
2247
|
) : null,
|
|
2227
2248
|
children
|
|
2228
2249
|
}
|
|
2229
|
-
) }) }) }) });
|
|
2250
|
+
) }) }) }) }) });
|
|
2230
2251
|
};
|
|
2231
2252
|
|
|
2232
2253
|
// src/addon-docs/blocks/blocks/Subheading.tsx
|
|
@@ -2320,7 +2341,7 @@ var SubtitleImpl = (props) => {
|
|
|
2320
2341
|
throw error;
|
|
2321
2342
|
}
|
|
2322
2343
|
let content = children || preparedMeta?.parameters?.docs?.subtitle;
|
|
2323
|
-
return content ? jsx29(Subtitle, { className: "sbdocs-subtitle
|
|
2344
|
+
return content ? jsx29(Subtitle, { className: "sbdocs-subtitle fb-unstyled", children: content }) : null;
|
|
2324
2345
|
}, Subtitle2 = withMdxComponentOverride("Subtitle", SubtitleImpl);
|
|
2325
2346
|
|
|
2326
2347
|
// src/addon-docs/blocks/blocks/Title.tsx
|
|
@@ -2341,7 +2362,7 @@ var STORY_KIND_PATH_SEPARATOR = /\s*\/\s*/, extractTitle = (title) => {
|
|
|
2341
2362
|
throw error;
|
|
2342
2363
|
}
|
|
2343
2364
|
let content = children || extractTitle(preparedMeta?.title || "");
|
|
2344
|
-
return content ? jsx30(Title, { className: "sbdocs-title
|
|
2365
|
+
return content ? jsx30(Title, { className: "sbdocs-title fb-unstyled", children: content }) : null;
|
|
2345
2366
|
}, Title3 = withMdxComponentOverride("Title", TitleImpl);
|
|
2346
2367
|
|
|
2347
2368
|
// src/addon-docs/blocks/blocks/DocsPage.tsx
|
|
@@ -2383,13 +2404,64 @@ var Meta = ({ of }) => {
|
|
|
2383
2404
|
}
|
|
2384
2405
|
};
|
|
2385
2406
|
|
|
2386
|
-
// src/addon-docs/blocks/blocks/
|
|
2407
|
+
// src/addon-docs/blocks/blocks/StoryGrid.tsx
|
|
2408
|
+
import { useContext as useContext13, useMemo as useMemo4 } from "react";
|
|
2409
|
+
import { StoryGrid as StoryGridView } from "@aussieljk/forkbook/internal/components";
|
|
2410
|
+
import { SELECT_STORY } from "@aussieljk/forkbook/internal/core-events";
|
|
2387
2411
|
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2388
|
-
var
|
|
2412
|
+
var indexEntries = (context) => {
|
|
2413
|
+
let store = context.store;
|
|
2414
|
+
return Object.values(store?.storyIndex?.entries ?? {});
|
|
2415
|
+
}, rootPage = () => {
|
|
2416
|
+
let own2 = globalThis.FORKBOOK_ROOT;
|
|
2417
|
+
if (own2)
|
|
2418
|
+
return own2;
|
|
2419
|
+
try {
|
|
2420
|
+
return window.top?.FORKBOOK_ROOT;
|
|
2421
|
+
} catch {
|
|
2422
|
+
return;
|
|
2423
|
+
}
|
|
2424
|
+
}, matchesPrefix = (title, prefixes) => prefixes.some((prefix) => title === prefix || title.startsWith(prefix.replace(/\/?$/, "/"))), filterComponents = (components2, { include, exclude }) => components2.filter(
|
|
2425
|
+
(component) => (!include?.length || matchesPrefix(component.title, include)) && !(exclude?.length && matchesPrefix(component.title, exclude))
|
|
2426
|
+
), StoryGrid = ({ include, exclude }) => {
|
|
2427
|
+
let context = useContext13(DocsContext), entries = indexEntries(context), components2 = useMemo4(
|
|
2428
|
+
() => filterComponents(
|
|
2429
|
+
groupEntriesByComponent(entries, { hiddenImportPath: rootPage()?.mdxImportPath }),
|
|
2430
|
+
{ include, exclude }
|
|
2431
|
+
),
|
|
2432
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2433
|
+
[entries.length, include?.join(`
|
|
2434
|
+
`), exclude?.join(`
|
|
2435
|
+
`)]
|
|
2436
|
+
), pathMap = useMemo4(
|
|
2437
|
+
() => buildStoryPathMap(entries),
|
|
2438
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2439
|
+
[entries.length]
|
|
2440
|
+
);
|
|
2441
|
+
return jsx34("div", { className: "sb-unstyled", children: jsx34(
|
|
2442
|
+
StoryGridView,
|
|
2443
|
+
{
|
|
2444
|
+
components: components2,
|
|
2445
|
+
getHref: (component) => (
|
|
2446
|
+
// The preview iframe is in the manager root folder, so a relative tree URL works.
|
|
2447
|
+
`./${toUrlPath(`/${component.viewMode}/${component.entryId}`, pathMap).slice(1)}`
|
|
2448
|
+
),
|
|
2449
|
+
onSelect: (component) => context.channel.emit(SELECT_STORY, {
|
|
2450
|
+
storyId: component.entryId,
|
|
2451
|
+
viewMode: component.viewMode
|
|
2452
|
+
}),
|
|
2453
|
+
getPreviewSrc: (storyId) => getStoryHref(storyId, { viewMode: "story", embed: "true" })
|
|
2454
|
+
}
|
|
2455
|
+
) });
|
|
2456
|
+
};
|
|
2389
2457
|
|
|
2390
|
-
// src/addon-docs/blocks/blocks/
|
|
2458
|
+
// src/addon-docs/blocks/blocks/Unstyled.tsx
|
|
2391
2459
|
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2392
|
-
var
|
|
2460
|
+
var UnstyledImpl = (props) => jsx35("div", { ...props, className: "fb-unstyled" }), Unstyled = withMdxComponentOverride("Unstyled", UnstyledImpl);
|
|
2461
|
+
|
|
2462
|
+
// src/addon-docs/blocks/blocks/Wrapper.tsx
|
|
2463
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2464
|
+
var WrapperImpl = ({ children }) => jsx36("div", { style: { fontFamily: "sans-serif" }, children }), Wrapper = withMdxComponentOverride("Wrapper", WrapperImpl);
|
|
2393
2465
|
|
|
2394
2466
|
// src/addon-docs/blocks/blocks/types.ts
|
|
2395
2467
|
var PRIMARY_STORY = "^";
|
|
@@ -2433,6 +2505,7 @@ export {
|
|
|
2433
2505
|
SourceContext,
|
|
2434
2506
|
Stories,
|
|
2435
2507
|
Story2 as Story,
|
|
2508
|
+
StoryGrid,
|
|
2436
2509
|
Subheading,
|
|
2437
2510
|
Subtitle2 as Subtitle,
|
|
2438
2511
|
TableOfContents,
|
|
@@ -2446,6 +2519,7 @@ export {
|
|
|
2446
2519
|
argsHash,
|
|
2447
2520
|
assertIsFn,
|
|
2448
2521
|
extractTitle,
|
|
2522
|
+
filterComponents,
|
|
2449
2523
|
format,
|
|
2450
2524
|
formatDate,
|
|
2451
2525
|
formatTime,
|