@aussieljk/forkbook 0.0.1-1 → 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 +1 -1
- package/README.md +35 -53
- package/assets/addon-vitest/templates/vitest.config.4.template.ts +2 -2
- package/assets/browser/favicon-wrapper.svg +4 -4
- package/assets/browser/favicon.svg +1 -1
- package/assets/browser/inter-LICENSE.txt +92 -0
- package/assets/browser/inter-variable-italic.woff2 +0 -0
- package/assets/browser/inter-variable.woff2 +0 -0
- package/assets/browser/mirror-ball.png +0 -0
- package/assets/builder-vite/iframe.html +8 -24
- package/assets/create/rendererAssets/common/Configure.mdx +100 -100
- package/assets/create/rendererAssets/common/button.css +1 -1
- package/assets/create/rendererAssets/common/header.css +1 -1
- package/assets/create/rendererAssets/common/page.css +2 -2
- package/assets/create/templates/react-native/index.expo.js +4 -4
- package/assets/create/templates/react-native/index.js +5 -5
- package/assets/server/base-preview-body.html +32 -32
- package/assets/server/base-preview-head.html +86 -86
- package/assets/server/template.ejs +24 -26
- package/dist/_browser-chunks/{Color-OEKZ7XSW.js → Color-X63I7FHI.js} +8 -8
- package/dist/_browser-chunks/WithTooltip-5S6F2P7L.js +198 -0
- package/dist/_browser-chunks/{chunk-66OCZ54D.js → chunk-3HM3VWJS.js} +1 -1
- package/dist/_browser-chunks/{chunk-CFAOWGL7.js → chunk-3M5T7BW4.js} +1 -1
- package/dist/_browser-chunks/{chunk-2MEPHP35.js → chunk-4KIQBRD2.js} +1 -1
- package/dist/_browser-chunks/{chunk-OQWFVDIN.js → chunk-5H4KFI44.js} +1 -1
- package/dist/_browser-chunks/{chunk-VVWPND3J.js → chunk-5Z65SURM.js} +12 -12
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/{chunk-PFRNG3UC.js → chunk-6ELMKWKX.js} +5 -5
- package/dist/_browser-chunks/{chunk-6SXYJQST.js → chunk-76222HQR.js} +1 -1
- package/dist/_browser-chunks/{chunk-JSBKXXXF.js → chunk-7DQREF4S.js} +1 -1
- package/dist/_browser-chunks/{chunk-RSPAQWVJ.js → chunk-BNP234B4.js} +1 -1
- package/dist/_browser-chunks/chunk-C5TKXHTM.js +82 -0
- package/dist/_browser-chunks/chunk-DNJ3OSLB.js +6021 -0
- package/dist/_browser-chunks/{chunk-PP4R7USA.js → chunk-DS2WQZGO.js} +222 -433
- package/dist/_browser-chunks/{chunk-FJGWSWL5.js → chunk-DYNTDJ3O.js} +3 -3
- package/dist/_browser-chunks/{chunk-CFWWCCZV.js → chunk-EQKMUQF3.js} +5 -4
- package/dist/_browser-chunks/{chunk-LV5PIKV4.js → chunk-FRAOQJDI.js} +5 -3
- package/dist/_browser-chunks/{chunk-ODVJ3XZJ.js → chunk-GRO2ZYEJ.js} +2 -2
- package/dist/_browser-chunks/{chunk-MFMDGWP6.js → chunk-I4ATZPNZ.js} +1 -1
- package/dist/_browser-chunks/chunk-IFADVEQE.js +669 -0
- package/dist/_browser-chunks/{chunk-YTIT5NA5.js → chunk-KYSD26D6.js} +3 -3
- package/dist/_browser-chunks/{chunk-73OX2G56.js → chunk-LTCXWKZO.js} +100 -108
- package/dist/_browser-chunks/{chunk-RNTIV5CE.js → chunk-LYYXDWR2.js} +9 -9
- package/dist/_browser-chunks/{chunk-V5M7Q4HT.js → chunk-MJIDTL3X.js} +4 -14
- package/dist/_browser-chunks/{chunk-OD6IBQCC.js → chunk-N3NRW5XX.js} +2 -2
- package/dist/_browser-chunks/{chunk-V2G23FV7.js → chunk-N5WQGLI7.js} +1 -1
- package/dist/_browser-chunks/{chunk-EIYAKDGP.js → chunk-NA4ITZTK.js} +127 -105
- package/dist/_browser-chunks/chunk-NGMQJMCY.js +53 -0
- package/dist/_browser-chunks/chunk-NPNIBOPF.js +18 -0
- package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-NTUHL5NS.js} +8 -3
- package/dist/_browser-chunks/{chunk-MDOL7KML.js → chunk-O24AZJZ7.js} +1 -1
- package/dist/_browser-chunks/{chunk-YEKO6BHJ.js → chunk-ONTSNQON.js} +1 -1
- package/dist/_browser-chunks/chunk-OOETBSA7.js +502 -0
- package/dist/_browser-chunks/chunk-PZQRXPVR.js +21 -0
- package/dist/_browser-chunks/{chunk-C3D4HEFY.js → chunk-TTBPZQ24.js} +282 -127
- package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
- package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-V5U45XXZ.js} +1 -1
- package/dist/_browser-chunks/chunk-XKTORVEQ.js +255 -0
- package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-XTQCLWVH.js} +325 -1635
- package/dist/_browser-chunks/{chunk-W5M6NPS3.js → chunk-ZHKZKFY4.js} +7 -6
- package/dist/_node-chunks/{attached-runtime-O4YTVUKE.js → attached-runtime-PDBJ2EGV.js} +30 -30
- package/dist/_node-chunks/builder-manager-VLL26RPG.js +1139 -0
- package/dist/_node-chunks/{chunk-GP5YLBNS.js → chunk-3CSGIJKG.js} +8 -8
- package/dist/_node-chunks/chunk-3W4KR5GX.js +2609 -0
- package/dist/_node-chunks/{chunk-SRXCCL2O.js → chunk-5NRWU7S2.js} +7 -7
- package/dist/_node-chunks/{chunk-GSWBRZLU.js → chunk-5SMIGUYF.js} +9 -17
- package/dist/_node-chunks/{chunk-JVQYQTTM.js → chunk-63LPGIV4.js} +42 -87
- package/dist/_node-chunks/{chunk-5RNOGGO6.js → chunk-6DHTL5G2.js} +6 -6
- package/dist/_node-chunks/{chunk-RQVK2TOI.js → chunk-6DRVJCYP.js} +14 -13
- package/dist/_node-chunks/chunk-7CV4VEA2.js +620 -0
- package/dist/_node-chunks/{chunk-ZMEGPR47.js → chunk-7KD5DKGZ.js} +6 -6
- package/dist/_node-chunks/{chunk-4PK3LUHM.js → chunk-7O2UIVID.js} +7 -7
- package/dist/_node-chunks/{chunk-GT5EHMNM.js → chunk-7OY4VMAT.js} +7 -7
- package/dist/_node-chunks/{chunk-YWMICX2T.js → chunk-AAL6X7YG.js} +12 -12
- package/dist/_node-chunks/{chunk-XURIZ7IC.js → chunk-ACSO4HQP.js} +8 -8
- package/dist/_node-chunks/{chunk-6EJ5NPEM.js → chunk-BDU3ZUMK.js} +7 -7
- 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-VXDWOVWD.js → chunk-BXDMSX3D.js} +29843 -51588
- package/dist/_node-chunks/chunk-C3PLG47Q.js +25 -0
- package/dist/_node-chunks/{chunk-R5FYRP6X.js → chunk-CEDR5CNM.js} +7 -7
- package/dist/_node-chunks/{chunk-7TSL7D5D.js → chunk-CKE4R4NL.js} +6 -6
- package/dist/_node-chunks/{chunk-5J3O7EDY.js → chunk-CSFNS7HA.js} +6 -6
- package/dist/_node-chunks/{chunk-7LLQDMVS.js → chunk-CZ3V3HHK.js} +6 -6
- package/dist/_node-chunks/{chunk-G6PUNHCI.js → chunk-DNV3LPV3.js} +6 -6
- package/dist/_node-chunks/{chunk-XCGMRAV5.js → chunk-DPILYJH4.js} +7 -7
- package/dist/_node-chunks/{chunk-2BJIHWOK.js → chunk-DQ44ZAEM.js} +6 -6
- package/dist/_node-chunks/{chunk-URRTQ2QM.js → chunk-DR7NW2MI.js} +8 -8
- package/dist/_node-chunks/{chunk-CDRLLNRQ.js → chunk-DRCP3DQF.js} +11 -11
- package/dist/_node-chunks/{chunk-5WHA37KG.js → chunk-EBWZKN2I.js} +39 -39
- package/dist/_node-chunks/{chunk-AWXGCPW6.js → chunk-ECOW63CV.js} +6 -6
- package/dist/_node-chunks/chunk-ENBDAHOV.js +18 -0
- package/dist/_node-chunks/{chunk-SVZ6Q3CS.js → chunk-FAEOR2AW.js} +6 -6
- package/dist/_node-chunks/{chunk-MDKFZRYG.js → chunk-FERXOKZY.js} +8 -8
- package/dist/_node-chunks/chunk-FJFB7TWU.js +495 -0
- package/dist/_node-chunks/{chunk-NKAUZU4C.js → chunk-FQGQ5KHN.js} +6 -6
- package/dist/_node-chunks/{chunk-CWD5A6NI.js → chunk-FR2ZDWKJ.js} +7 -7
- package/dist/_node-chunks/{chunk-JBCKN6P4.js → chunk-FRBE7ES4.js} +6 -6
- package/dist/_node-chunks/chunk-FWAF5NBL.js +20 -0
- package/dist/_node-chunks/{chunk-IZISFDKM.js → chunk-FXBZWUW3.js} +54 -42
- package/dist/_node-chunks/chunk-FZ453CHY.js +25 -0
- package/dist/_node-chunks/{chunk-NZ3GOT7V.js → chunk-G2ZUFOHU.js} +6 -6
- package/dist/_node-chunks/{chunk-PEIAGMSR.js → chunk-GBVWRZHP.js} +6 -6
- package/dist/_node-chunks/{chunk-3CLITGI2.js → chunk-GGE7TBVX.js} +6 -6
- package/dist/_node-chunks/{chunk-QMU5ODXZ.js → chunk-GJSYGBI5.js} +7 -7
- package/dist/_node-chunks/{chunk-U4GKV7GZ.js → chunk-GKHLTHYM.js} +10 -10
- package/dist/_node-chunks/{chunk-I2ANCID7.js → chunk-GQYATLH6.js} +66 -145
- package/dist/_node-chunks/{chunk-RJXEPYEN.js → chunk-HCP5DG52.js} +64 -21
- package/dist/_node-chunks/chunk-HVOSLI2K.js +20 -0
- package/dist/_node-chunks/{chunk-A724RK5H.js → chunk-ID3WA6WR.js} +9 -6
- package/dist/_node-chunks/{chunk-IJL5JOLL.js → chunk-IGOX6TUG.js} +7 -7
- package/dist/_node-chunks/{chunk-2JSABFAM.js → chunk-IL7YA7QJ.js} +10 -10
- package/dist/_node-chunks/{chunk-RHG33T7C.js → chunk-IUPE4SU2.js} +10 -10
- package/dist/_node-chunks/{chunk-CXLL2F6O.js → chunk-JVWXCB3L.js} +25 -8
- package/dist/_node-chunks/chunk-K4O2ZAMU.js +57 -0
- package/dist/_node-chunks/{chunk-XTTAS346.js → chunk-KRWR44KT.js} +6 -6
- package/dist/_node-chunks/{chunk-HKUNJELN.js → chunk-KWNBN3DV.js} +8 -8
- package/dist/_node-chunks/{chunk-4TV3Z3S3.js → chunk-LG3NMXCM.js} +6 -6
- package/dist/_node-chunks/{chunk-CYPPELO4.js → chunk-LH5QBX2U.js} +22 -32
- package/dist/_node-chunks/{chunk-XJSYJTBD.js → chunk-LX2XSPPL.js} +7 -7
- package/dist/_node-chunks/{chunk-G5OYQQDY.js → chunk-M4QNXI37.js} +6 -6
- package/dist/_node-chunks/{chunk-ILWHW4HU.js → chunk-MBPHOLXB.js} +15 -15
- package/dist/_node-chunks/{chunk-2UG3IYCC.js → chunk-MIWBXEUH.js} +6 -6
- package/dist/_node-chunks/{chunk-HKQEE62W.js → chunk-MKUA4ZCG.js} +8 -8
- package/dist/_node-chunks/{chunk-JEC2OK5B.js → chunk-MQC7ZY6L.js} +7 -7
- package/dist/_node-chunks/{chunk-NIHZECYO.js → chunk-MRCPS4S3.js} +6 -6
- package/dist/_node-chunks/{chunk-2XDUXZGI.js → chunk-MY7UVHPL.js} +8 -8
- package/dist/_node-chunks/{chunk-R7CY5LX6.js → chunk-ND323XCC.js} +6 -6
- package/dist/_node-chunks/{chunk-5GN5N22E.js → chunk-NGFFEW2B.js} +131 -148
- package/dist/_node-chunks/{chunk-ULW4SLMN.js → chunk-OPG46TLN.js} +34 -949
- package/dist/_node-chunks/chunk-PEL4YXU6.js +19 -0
- package/dist/_node-chunks/{chunk-JE6JEGXA.js → chunk-QFXAGOIO.js} +9 -9
- package/dist/_node-chunks/{chunk-GVSFRNWZ.js → chunk-QGC3UWR5.js} +6 -6
- package/dist/_node-chunks/{chunk-B6SKX4JF.js → chunk-QGVU7IFS.js} +7 -7
- package/dist/_node-chunks/{chunk-Y2GH4XO7.js → chunk-QOFBJXPH.js} +650 -9
- package/dist/_node-chunks/chunk-QVLHVO4X.js +532 -0
- package/dist/_node-chunks/{chunk-EWXASIWR.js → chunk-R2ZCFA7I.js} +7 -7
- package/dist/_node-chunks/{chunk-MJ2UD7FU.js → chunk-RC4HPD5Q.js} +7 -7
- package/dist/_node-chunks/{chunk-7DCDBICW.js → chunk-RJXAXHDJ.js} +13 -13
- package/dist/_node-chunks/{chunk-2QTI45JU.js → chunk-SGEPJMTU.js} +35 -35
- package/dist/_node-chunks/{chunk-KGOAOPKR.js → chunk-SYUOBOB5.js} +6 -6
- package/dist/_node-chunks/{chunk-QVMUIU7S.js → chunk-T5VZYRL2.js} +6 -6
- package/dist/_node-chunks/chunk-T6IU66AM.js +69 -0
- package/dist/_node-chunks/{chunk-6APBQVEX.js → chunk-THDTJJMO.js} +7 -7
- package/dist/_node-chunks/{chunk-ASJFOW6O.js → chunk-TNFH4Y4G.js} +8 -8
- package/dist/_node-chunks/{chunk-ICADUNQM.js → chunk-TY2ZY7AO.js} +6 -6
- package/dist/_node-chunks/{chunk-PBMWZVLD.js → chunk-TZIT6SZP.js} +6 -6
- package/dist/_node-chunks/{chunk-US7L4S72.js → chunk-VG2KFIOW.js} +9 -9
- package/dist/_node-chunks/{chunk-7BVUZZIY.js → chunk-VSHYJR23.js} +7 -7
- package/dist/_node-chunks/{chunk-ILVD64RB.js → chunk-VUMGWJ6Y.js} +8 -8
- package/dist/_node-chunks/{chunk-DWE36J35.js → chunk-WVRM6DQU.js} +7 -7
- package/dist/_node-chunks/{chunk-AANHLH5M.js → chunk-YU5TVYPS.js} +6 -6
- package/dist/_node-chunks/{chunk-BENYUF74.js → chunk-ZBWAA2EY.js} +77 -78
- package/dist/_node-chunks/chunk-ZD5TUA6I.js +20 -0
- package/dist/_node-chunks/{chunk-AWJOXJAZ.js → chunk-ZFLK7MY5.js} +8 -8
- package/dist/_node-chunks/dist-7OJKTBKL.js +27 -0
- package/dist/_node-chunks/dist-MWP6WLW4.js +16 -0
- package/dist/_node-chunks/{local-runtime-4UNT5EZJ.js → local-runtime-V5YTRN24.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-ZY6XLLA4.js → mdx-plugin-CBOD52VP.js} +2263 -130
- package/dist/_node-chunks/{monorepo-B65J4UFS.js → monorepo-GF6H53U4.js} +12 -12
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-45ZTNWJS.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-K4TTV2DQ.js} +12 -12
- package/dist/_node-chunks/optimized-tests-KOTSVWTN.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-LOHSM7ID.js → pattern-copy-play-M2QNC4IZ.js} +12 -12
- package/dist/_node-chunks/postinstallAddon-WXKJL6DP.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-22ZBI6K4.js → rehype-external-links-3IDE4CYH.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-ROZVEEFZ.js → rehype-slug-GKB3WS3U.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-EDE2B34G.js → relaxed-limits-C6QU365N.js} +12 -12
- package/dist/_node-chunks/{run-372BSBV5.js → run-TMVS3KKA.js} +273 -13
- package/dist/_node-chunks/{run-IR3BRDJV.js → run-XWBUPXLN.js} +17 -17
- package/dist/_node-chunks/session-id-VMH57SKN.js +23 -0
- package/dist/_node-chunks/{setup-6TMCKUTA.js → setup-KEEJK4WI.js} +9 -9
- package/dist/_node-chunks/{vitest.config.4.template-QJBEVCKG.js → vitest.config.4.template-74HEE4WJ.js} +9 -9
- package/dist/actions/decorator.js +3 -2
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.js +3 -2
- package/dist/addon-a11y/index.d.ts +3 -3
- package/dist/addon-a11y/index.js +2 -1
- package/dist/addon-a11y/manager.js +40 -37
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +2 -1
- package/dist/addon-docs/blocks.d.ts +20 -1
- package/dist/addon-docs/blocks.js +150 -74
- package/dist/addon-docs/index.d.ts +19 -19
- package/dist/addon-docs/manager.js +6 -6
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/index.js +5 -2
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-links/preview.js +5 -2
- package/dist/addon-links/react/index.js +4 -1
- package/dist/addon-mcp/preset.js +29 -21
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +37 -82
- package/dist/addon-ondevice-actions/index.js +5 -1
- package/dist/addon-ondevice-actions/register.js +5 -1
- package/dist/addon-ondevice-controls/index.js +1 -1
- package/dist/addon-ondevice-controls/register.js +1 -1
- package/dist/addon-pseudo-states/index.d.ts +1 -1
- package/dist/addon-pseudo-states/manager.js +2 -2
- package/dist/addon-pseudo-states/preview.d.ts +1 -1
- package/dist/addon-themes/index.d.ts +1 -1
- package/dist/addon-themes/index.js +2 -2
- package/dist/addon-themes/manager.js +4 -4
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-themes/preview.js +2 -2
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +21 -21
- package/dist/addon-vitest/node/coverage-reporter.js +8 -8
- package/dist/addon-vitest/node/vitest.js +17 -17
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +15 -16
- package/dist/addon-vitest/vitest-plugin/global-setup.js +8 -8
- package/dist/addon-vitest/vitest-plugin/index.js +23 -23
- package/dist/addon-vitest/vitest-plugin/setup-file-with-project-annotations.js +3 -3
- package/dist/addon-vitest/vitest-plugin/setup-file.js +1 -1
- package/dist/babel/index.d.ts +91 -842
- package/dist/babel/index.js +13 -19
- package/dist/backgrounds/index.d.ts +1 -1
- package/dist/bin/core.js +65 -64
- package/dist/bin/dispatcher.js +18 -16
- package/dist/bin/loader.js +17 -16
- package/dist/builder-vite/index.js +17 -17
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.js +6 -6
- package/dist/{chunk-BTVrWliM.d.ts → chunk-BGhyFTJO.d.ts} +2 -2
- package/dist/{chunk-DtHByo32.d.ts → chunk-CFk6djyM.d.ts} +5 -5
- package/dist/{chunk-CwQKNaYL.d.ts → chunk-CNqjcOmK.d.ts} +1 -1
- package/dist/{chunk-CMeX4WRe.d.ts → chunk-CT2iXaHz.d.ts} +1 -1
- package/dist/chunk-CV4-Z2pn.d.ts +30 -0
- package/dist/{chunk-B2t1tGRh.d.ts → chunk-CYuvV2sR.d.ts} +11 -13
- package/dist/{chunk-DEVFdzxR.d.ts → chunk-D0NUmzXp.d.ts} +1 -1
- package/dist/{chunk-DzuY9DXg.d.ts → chunk-DDd8BhTY.d.ts} +2 -2
- package/dist/{chunk-Dw1z1Pki.d.ts → chunk-DROZ9oel.d.ts} +50 -314
- package/dist/{chunk-gCX81nOr.d.ts → chunk-DgzPaTw9.d.ts} +3 -3
- package/dist/{chunk-Kt1tW-D1.d.ts → chunk-Dm-iHJ-s.d.ts} +3 -3
- package/dist/{chunk-C-bavsOH.d.ts → chunk-Dw_4ad2Y.d.ts} +6 -6
- package/dist/{chunk-C2p5r3Vt.d.ts → chunk-Fg1Fm__9.d.ts} +119 -29
- package/dist/chunk-Susgfkap.d.ts +20 -0
- package/dist/cli/index.d.ts +13 -866
- package/dist/cli/index.js +44 -4954
- package/dist/cli/skills/content/index.d.ts +1 -1
- package/dist/cli/skills/content/index.js +2 -2
- package/dist/cli/tools/sdk/child-host.d.ts +1 -1
- package/dist/cli/tools/sdk/child-host.js +17 -17
- package/dist/cli/tools/sdk/index.d.ts +1 -1
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.js +3 -1
- package/dist/common/index.d.ts +17 -29
- package/dist/common/index.js +36 -42
- package/dist/components/index.d.ts +41 -238
- package/dist/components/index.js +2738 -8515
- package/dist/core-events/index.d.ts +4 -3
- package/dist/core-events/index.js +3 -1
- package/dist/core-server/index.d.ts +6 -6
- package/dist/core-server/index.js +661 -249
- package/dist/core-server/presets/common-manager.js +603 -1027
- package/dist/core-server/presets/common-override-preset.js +12 -10
- package/dist/core-server/presets/common-preset.js +55 -48
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/index.d.ts +5 -5
- package/dist/csf/index.js +55 -120
- package/dist/csf-tools/index.d.ts +17 -13
- package/dist/csf-tools/index.js +17 -15
- package/dist/docs-tools/index.js +2 -2
- package/dist/highlight/index.d.ts +1 -1
- package/dist/instrumenter/index.js +8 -6
- package/dist/manager/_manager-chunks/{globals-runtime-B0I9dSVs.js → globals-runtime-BKQscPdC.js} +824 -727
- package/dist/manager/_manager-chunks/globals-runtime-BY3epqww.js +1807 -0
- package/dist/manager/_manager-chunks/globals-runtime-Bj5KDUJi.js +8935 -0
- package/dist/manager/_manager-chunks/{globals-runtime-ZHrQFa3-.js → globals-runtime-Bs75QQ_I.js} +77 -553
- package/dist/manager/_manager-chunks/{globals-runtime-FC201B7s.js → globals-runtime-BweHuXkK.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-eLPTIfX-.js → globals-runtime-CA8AuIRT.js} +3 -145
- package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
- package/dist/manager/_manager-chunks/{globals-runtime-CXoVXiJA.js → globals-runtime-CJL1dQtn.js} +324 -118
- package/dist/manager/_manager-chunks/{globals-runtime-BQCkfH1B.js → globals-runtime-CfurFwS_.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-BmphMP6z.js → globals-runtime-CvIgTRVu.js} +10 -10
- package/dist/manager/_manager-chunks/{globals-runtime-f5oIrim0.js → globals-runtime-DBba3I9c.js} +394 -189
- package/dist/manager/_manager-chunks/{globals-runtime-BvM-NY2g.js → globals-runtime-DvV_TF3-.js} +638 -1731
- package/dist/manager/_manager-chunks/{globals-runtime-C02fvgcd.js → globals-runtime-NwJK8t0T.js} +410 -379
- package/dist/manager/_manager-chunks/{globals-runtime-8HkdnU2F.js → globals-runtime-WZKaeKm9.js} +93 -2146
- package/dist/manager/_manager-chunks/globals-runtime-wjkxyMn0.js +5283 -0
- package/dist/manager/_manager-chunks/runtime-5B2mWjEm.js +294 -0
- package/dist/manager/_manager-chunks/{runtime-DMig8mT7.js → runtime-5o_11Jae.js} +4 -3
- package/dist/manager/_manager-chunks/runtime-B_nqedQW.js +197 -0
- package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
- package/dist/manager/_manager-chunks/{runtime-DcJBhKG9.js → runtime-Bs3bEhuy.js} +200 -376
- package/dist/manager/_manager-chunks/{runtime-i-PDAHLR.js → runtime-CBQsKmch.js} +5 -147
- package/dist/manager/_manager-chunks/runtime-DG61zYUm.js +1158 -0
- package/dist/manager/_manager-chunks/{runtime-eDVAYF7N.js → runtime-DtCVCy4G.js} +10 -29
- package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
- package/dist/manager/_manager-chunks/{runtime-Bry1Biu7.js → runtime-eBAgOym6.js} +989 -915
- package/dist/manager/_manager-chunks/{runtime-DtyerpFe.js → runtime-j9yqh0tr.js} +124 -80
- package/dist/manager/_manager-chunks/{runtime-D94Vq3oR.js → runtime-jj8qYc2n.js} +5 -531
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/globals.d.ts +12 -12
- package/dist/manager/globals.js +12 -12
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +72 -82
- package/dist/manager-errors.d.ts +1 -1
- package/dist/manager-errors.js +2 -2
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.d.ts +2 -2
- package/dist/mocking-utils/index.js +22 -17
- package/dist/mocking-utils/mocker-runtime.js +2 -2
- package/dist/nextjs-vite/index.d.ts +2 -2
- package/dist/nextjs-vite/index.js +4 -3
- package/dist/nextjs-vite/node/index.d.ts +2 -2
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/node-stand-ins/index.d.ts +68 -0
- package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
- package/dist/nextjs-vite/preset.js +93 -14
- package/dist/nextjs-vite/preview.js +1 -1
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.d.ts +2 -3
- package/dist/nextjs-vite-plugin/index.js +15 -30
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-image.js +2 -2
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.js +2 -2
- package/dist/node-logger/index.d.ts +65 -72
- package/dist/node-logger/index.js +11 -12
- package/dist/oxc-parser/index.js +11 -13
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-DrTjJkPY.js → runtime-BJwGQok8.js} +77 -76
- package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-BPwAnlRx.js} +482 -334
- package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-BUnOhg9h.js} +2 -2
- package/dist/preview/_chunks/{runtime-CxZK_Ln3.js → runtime-BZ4pNS3g.js} +2 -2
- package/dist/preview/_chunks/runtime-Bcv1hJky.js +6305 -0
- package/dist/preview/_chunks/{runtime-iXdo8CR8.js → runtime-BgPhfM5P.js} +54 -8
- package/dist/preview/_chunks/{runtime-CsV4HZPV.js → runtime-BhSZ1Mwt.js} +335 -137
- package/dist/preview/_chunks/{runtime-BwSxqk3t.js → runtime-BsMjBzuq.js} +6 -16
- package/dist/preview/_chunks/{runtime-CqHxptiK.js → runtime-C1jgT6tJ.js} +93 -2145
- package/dist/preview/_chunks/{runtime-DuHdxMFA.js → runtime-CkOhMcXf.js} +8 -8
- package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-WapFVPAh.js} +29 -29
- package/dist/preview/globals.d.ts +10 -10
- package/dist/preview/globals.js +10 -10
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +1 -1
- package/dist/preview-api/index.js +11 -9
- package/dist/preview-errors.d.ts +1 -1
- package/dist/preview-errors.js +2 -2
- package/dist/react/docgen/docgen-worker.js +11 -12
- package/dist/react/entry-preview.js +2 -1
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +6 -4
- package/dist/react/preset.js +13 -14
- package/dist/react/preview.d.ts +1 -1
- package/dist/react/preview.js +3 -2
- package/dist/react-native/bin/get-stories.js +12 -12
- package/dist/react-native/index.d.ts +11 -11
- package/dist/react-native/index.js +46 -231
- package/dist/react-native/metro/node.d.ts +2 -2
- package/dist/react-native/metro/node.js +10 -9
- package/dist/react-native/metro/{withStorybook.d.ts → withForkbook.d.ts} +11 -11
- package/dist/react-native/metro/{withStorybook.js → withForkbook.js} +22 -21
- package/dist/react-native/scripts/generate.d.ts +1 -1
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-native/stub.js +1 -1
- package/dist/react-native-theming/index.d.ts +2 -58
- package/dist/react-native-theming/index.js +63 -2338
- package/dist/react-native-ui/index.d.ts +6 -7
- package/dist/react-native-ui/index.js +207 -624
- package/dist/react-native-ui-common/index.d.ts +2 -3
- package/dist/react-vite/index.d.ts +2 -2
- package/dist/react-vite/node/index.d.ts +3 -3
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.d.ts +69 -1
- package/dist/router/index.js +52 -10
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +1 -1
- package/dist/shared/open-service/index.js +2 -2
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/shared/open-service/toolsets/docs/public.d.ts +21 -21
- package/dist/telemetry/index.d.ts +3 -3
- package/dist/telemetry/index.js +43 -45
- package/dist/test/index.js +810 -575
- package/dist/theming/create.js +2 -1
- package/dist/theming/index.d.ts +5 -5
- package/dist/theming/index.js +41 -16
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +5 -5
- package/dist/viewport/index.d.ts +1 -1
- package/package.json +36 -81
- package/template/nextjs-vite/cli/js/Button.stories.js +6 -6
- package/template/nextjs-vite/cli/js/Configure.mdx +100 -100
- package/template/nextjs-vite/cli/js/Header.stories.js +2 -2
- package/template/nextjs-vite/cli/js/Page.jsx +2 -2
- package/template/nextjs-vite/cli/js/Page.stories.js +2 -2
- package/template/nextjs-vite/cli/ts/Button.stories.ts +6 -6
- package/template/nextjs-vite/cli/ts/Configure.mdx +84 -84
- package/template/nextjs-vite/cli/ts/Header.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Page.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Page.tsx +2 -2
- package/template/react/cli/js/Button.stories.js +6 -6
- package/template/react/cli/js/Header.stories.js +2 -2
- package/template/react/cli/js/Page.jsx +2 -2
- package/template/react/cli/js/Page.stories.js +2 -2
- package/template/react/cli/ts/Button.stories.ts +6 -6
- package/template/react/cli/ts/Header.stories.ts +2 -2
- package/template/react/cli/ts/Page.stories.ts +2 -2
- package/template/react/cli/ts/Page.tsx +2 -2
- package/template/react-vite/cli/js/Button.stories.js +6 -6
- package/template/react-vite/cli/js/Header.stories.js +2 -2
- package/template/react-vite/cli/js/Page.jsx +2 -2
- package/template/react-vite/cli/js/Page.stories.js +2 -2
- package/template/react-vite/cli/ts/Button.stories.ts +6 -6
- package/template/react-vite/cli/ts/Header.stories.ts +2 -2
- package/template/react-vite/cli/ts/Page.stories.ts +2 -2
- package/template/react-vite/cli/ts/Page.tsx +2 -2
- package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-bold.woff2 +0 -0
- package/assets/browser/nunito-sans-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-regular.woff2 +0 -0
- package/dist/_browser-chunks/WithTooltip-GZSSFOG3.js +0 -1619
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
- package/dist/_browser-chunks/chunk-JMC7AIKT.js +0 -108
- package/dist/_node-chunks/builder-manager-FPV2L36T.js +0 -1661
- package/dist/_node-chunks/chunk-356LV3NX.js +0 -36
- package/dist/_node-chunks/chunk-5BTU7UZ5.js +0 -1877
- package/dist/_node-chunks/chunk-5J3BMBMY.js +0 -51
- package/dist/_node-chunks/chunk-BCRWDMAU.js +0 -11
- package/dist/_node-chunks/chunk-BE6ULVPN.js +0 -662
- package/dist/_node-chunks/chunk-CSXS6LVI.js +0 -29
- package/dist/_node-chunks/chunk-DUOXRUVQ.js +0 -18
- package/dist/_node-chunks/chunk-FUYZNTIS.js +0 -23
- package/dist/_node-chunks/chunk-M2BRIUUP.js +0 -25
- package/dist/_node-chunks/chunk-RJUHZH32.js +0 -20
- package/dist/_node-chunks/chunk-TB6Y6NSL.js +0 -3837
- package/dist/_node-chunks/chunk-VQEQ7ZLS.js +0 -4731
- package/dist/_node-chunks/chunk-WQ7PSP6H.js +0 -19
- package/dist/_node-chunks/chunk-WVCU34IS.js +0 -23
- package/dist/_node-chunks/chunk-X6OWHTYE.js +0 -20
- package/dist/_node-chunks/chunk-Y2DEKWVE.js +0 -3008
- package/dist/_node-chunks/chunk-ZBAIFZNB.js +0 -5414
- package/dist/_node-chunks/dist-ZGSN23B7.js +0 -16
- package/dist/_node-chunks/globby-HWZL7XSQ.js +0 -2884
- package/dist/_node-chunks/jiti-GNDCTFYU.js +0 -3848
- package/dist/_node-chunks/lib-DI662U2R.js +0 -366
- package/dist/_node-chunks/optimized-tests-ZMNICF4R.js +0 -22
- package/dist/_node-chunks/postinstallAddon-NT5XE7IT.js +0 -20
- package/dist/_node-chunks/session-id-OO2WQF5N.js +0 -23
- package/dist/chunk-BfBzpgct.d.ts +0 -916
- package/dist/chunk-BxWufQms.d.ts +0 -142
- package/dist/core-server/presets/common-manager.css +0 -170
- package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +0 -3389
- package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +0 -9766
- package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +0 -5357
- package/dist/manager/_manager-chunks/runtime-B1L9TH89.js +0 -452
- package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +0 -998
- package/dist/manager/_manager-chunks/runtime-DpgBAFGf.js +0 -22
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
- package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
|
@@ -2,8 +2,21 @@
|
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
|
+
<script>
|
|
6
|
+
// The manager URL follows the story tree (for example /example/button/primary). Relative
|
|
7
|
+
// URLs on this page must start from the Forkbook root, so add a <base> element. The server
|
|
8
|
+
// or the static build sets the depth of the page path.
|
|
9
|
+
(function () {
|
|
10
|
+
var depth = /*FORKBOOK_ROUTE_DEPTH*/ 0;
|
|
11
|
+
if (!depth) return;
|
|
12
|
+
var parts = location.pathname.replace(/\/+$/, '').split('/');
|
|
13
|
+
var base = document.createElement('base');
|
|
14
|
+
base.href = parts.slice(0, Math.max(1, parts.length - depth)).join('/') + '/';
|
|
15
|
+
document.head.appendChild(base);
|
|
16
|
+
})();
|
|
17
|
+
</script>
|
|
5
18
|
|
|
6
|
-
<title><%= typeof title !== 'undefined'? title : '
|
|
19
|
+
<title><%= typeof title !== 'undefined'? title : 'Forkbook'%></title>
|
|
7
20
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
21
|
|
|
9
22
|
<% if (favicon.endsWith('.svg')) {%>
|
|
@@ -11,41 +24,26 @@
|
|
|
11
24
|
<% } else if (favicon.endsWith('.ico')) { %>
|
|
12
25
|
<link rel="icon" type="image/x-icon" href="./<%= favicon %>" />
|
|
13
26
|
<% } %>
|
|
27
|
+
<link rel="apple-touch-icon" href="./fb-common-assets/mirror-ball.png" />
|
|
14
28
|
<style>
|
|
15
29
|
@font-face {
|
|
16
|
-
font-family: '
|
|
17
|
-
font-style: normal;
|
|
18
|
-
font-weight: 400;
|
|
19
|
-
font-display: swap;
|
|
20
|
-
src: url('./sb-common-assets/nunito-sans-regular.woff2') format('woff2');
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@font-face {
|
|
24
|
-
font-family: 'Nunito Sans';
|
|
25
|
-
font-style: italic;
|
|
26
|
-
font-weight: 400;
|
|
27
|
-
font-display: swap;
|
|
28
|
-
src: url('./sb-common-assets/nunito-sans-italic.woff2') format('woff2');
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@font-face {
|
|
32
|
-
font-family: 'Nunito Sans';
|
|
30
|
+
font-family: 'Inter Variable';
|
|
33
31
|
font-style: normal;
|
|
34
|
-
font-weight:
|
|
32
|
+
font-weight: 100 900;
|
|
35
33
|
font-display: swap;
|
|
36
|
-
src: url('./
|
|
34
|
+
src: url('./fb-common-assets/inter-variable.woff2') format('woff2');
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
@font-face {
|
|
40
|
-
font-family: '
|
|
38
|
+
font-family: 'Inter Variable';
|
|
41
39
|
font-style: italic;
|
|
42
|
-
font-weight:
|
|
40
|
+
font-weight: 100 900;
|
|
43
41
|
font-display: swap;
|
|
44
|
-
src: url('./
|
|
42
|
+
src: url('./fb-common-assets/inter-variable-italic.woff2') format('woff2');
|
|
45
43
|
}
|
|
46
44
|
</style>
|
|
47
45
|
|
|
48
|
-
<link href="./
|
|
46
|
+
<link href="./fb-manager/runtime.js" rel="modulepreload" />
|
|
49
47
|
|
|
50
48
|
<% files.js.forEach(file => { %>
|
|
51
49
|
<link href="<%= file %>" rel="modulepreload" />
|
|
@@ -75,13 +73,13 @@
|
|
|
75
73
|
<% } %>
|
|
76
74
|
|
|
77
75
|
<script type="module">
|
|
78
|
-
import './
|
|
76
|
+
import './fb-manager/globals-runtime.js';
|
|
79
77
|
|
|
80
78
|
<% files.js.forEach(file => { %>
|
|
81
79
|
import '<%= file %>';
|
|
82
80
|
<% }); %>
|
|
83
81
|
|
|
84
|
-
import './
|
|
82
|
+
import './fb-manager/runtime.js';
|
|
85
83
|
</script>
|
|
86
84
|
</body>
|
|
87
85
|
</html>
|
|
@@ -578,7 +578,7 @@ var require_color_convert = __commonJS({
|
|
|
578
578
|
// src/addon-docs/blocks/controls/Color.tsx
|
|
579
579
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
580
580
|
import { Button, Form, PopoverProvider } from "@aussieljk/forkbook/internal/components";
|
|
581
|
-
import {
|
|
581
|
+
import { CodeIcon } from "lucide-react";
|
|
582
582
|
var import_color_convert = __toESM(require_color_convert(), 1);
|
|
583
583
|
|
|
584
584
|
// ../../node_modules/react-colorful/dist/index.mjs
|
|
@@ -796,17 +796,17 @@ var xe = { defaultColor: "rgba(0, 0, 0, 1)", toHsva: j, fromHsva: function(e2) {
|
|
|
796
796
|
return e.createElement(re, l({}, r2, { colorModel: xe }));
|
|
797
797
|
};
|
|
798
798
|
|
|
799
|
-
// storybook-css:/
|
|
799
|
+
// storybook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/controls/Color.module.css
|
|
800
800
|
var id = "core/src/addon-docs/blocks/controls/Color.module.css";
|
|
801
|
-
if (typeof document < "u" && !document.querySelector(`style[data-
|
|
801
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]`)) {
|
|
802
802
|
let style = document.createElement("style");
|
|
803
|
-
style.setAttribute("data-
|
|
803
|
+
style.setAttribute("data-fb-css", id), style.textContent = '.fb-jgXPQa-wrapper{max-width:250px;position:relative}.fb-jgXPQa-tooltipContent{width:200px;margin:5px;& .react-colorful__saturation{border-radius:4px 4px 0 0}& .react-colorful__hue{box-shadow:inset 0 0 0 1px #0000000d}& .react-colorful__last-control{border-radius:0 0 4px 4px}}.fb-jgXPQa-swatches{grid-template-columns:repeat(9,16px);gap:6px;width:200px;margin-top:5px;padding:3px;display:grid}.fb-jgXPQa-swatch{--checkers:url("data:image/svg+xml;charset=utf-8,<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"16\\" height=\\"16\\" fill-opacity=\\"0.05\\" fill=\\"black\\"><path d=\\"M8 0h8v8H8zM0 8h8v8H0z\\"/></svg>");width:16px;height:16px;box-shadow:var(--fb-app-border-color) 0 0 0 1px inset;border-radius:var(--fb-app-border-radius);border:none;&,&:hover{background:unset;background-color:unset;background-image:linear-gradient(var(--fb-swatch-color), var(--fb-swatch-color)), var(--checkers)}&[data-selected]{box-shadow:var(--fb-app-border-color) 0 0 0 1px inset, rgb(from var(--fb-text-muted-color) r g b / .31) 0 0 0 4px}}:where([data-fb-theme=dark]) .fb-jgXPQa-swatch{--checkers:url("data:image/svg+xml;charset=utf-8,<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"16\\" height=\\"16\\" fill-opacity=\\"0.05\\" fill=\\"white\\"><path d=\\"M8 0h8v8H8zM0 8h8v8H0z\\"/></svg>")}.fb-jgXPQa-input{box-sizing:border-box;width:100%;font-family:var(--fb-font-base);padding-left:30px;padding-right:30px;[aria-readonly=true]>&{background:var(--fb-color-lighter)}}:where([data-fb-theme=dark]) [aria-readonly=true]>.fb-jgXPQa-input{background:0 0}.fb-jgXPQa-popoverTrigger{z-index:1;cursor:pointer;position:absolute;top:4px;left:4px;&:disabled,&[aria-disabled=true]{cursor:not-allowed}}.fb-jgXPQa-cycleColorSpaceButton{z-index:1;box-sizing:border-box;cursor:pointer;width:20px;height:20px;color:var(--fb-input-color);padding:4px;position:absolute;top:6px;right:7px}', document.head.appendChild(style);
|
|
804
804
|
}
|
|
805
|
-
var Color_default = {
|
|
805
|
+
var Color_default = { swatch: "fb-jgXPQa-swatch", input: "fb-jgXPQa-input", popoverTrigger: "fb-jgXPQa-popoverTrigger", cycleColorSpaceButton: "fb-jgXPQa-cycleColorSpaceButton", tooltipContent: "fb-jgXPQa-tooltipContent", swatches: "fb-jgXPQa-swatches", wrapper: "fb-jgXPQa-wrapper" };
|
|
806
806
|
|
|
807
807
|
// src/addon-docs/blocks/controls/Color.tsx
|
|
808
808
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
809
|
-
var swatchStyle = (color) => ({ "--
|
|
809
|
+
var swatchStyle = (color) => ({ "--fb-swatch-color": color }), ColorSpace = /* @__PURE__ */ ((ColorSpace2) => (ColorSpace2.RGB = "rgb", ColorSpace2.HSL = "hsl", ColorSpace2.HEX = "hex", ColorSpace2))(ColorSpace || {}), COLOR_SPACES = Object.values(ColorSpace), COLOR_REGEXP = /\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/, RGB_REGEXP = /^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i, HSL_REGEXP = /^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i, HEX_REGEXP = /^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i, SHORTHEX_REGEXP = /^\s*#?([0-9a-f]{3})\s*$/i, ColorPicker = {
|
|
810
810
|
hex: Z,
|
|
811
811
|
rgb: He,
|
|
812
812
|
hsl: le
|
|
@@ -943,7 +943,7 @@ var swatchStyle = (color) => ({ "--sb-swatch-color": color }), ColorSpace = /* @
|
|
|
943
943
|
debouncedOnChange
|
|
944
944
|
), { presets, addPreset } = usePresets(presetColors ?? [], color, colorSpace, maxPresetColors), Picker = ColorPicker[colorSpace], readOnly = !!argType?.table?.readonly, controlId = getControlId(name, storyId, controlsId);
|
|
945
945
|
return jsxs("div", { className: Color_default.wrapper, children: [
|
|
946
|
-
jsx("label", { htmlFor: controlId, className: "
|
|
946
|
+
jsx("label", { htmlFor: controlId, className: "fb-sr-only", children: name }),
|
|
947
947
|
jsx(
|
|
948
948
|
Form.Input,
|
|
949
949
|
{
|
|
@@ -1014,7 +1014,7 @@ var swatchStyle = (color) => ({ "--sb-swatch-color": color }), ColorSpace = /* @
|
|
|
1014
1014
|
ariaLabel: "Cycle through color spaces",
|
|
1015
1015
|
disabled: readOnly,
|
|
1016
1016
|
onClick: readOnly ? void 0 : cycleColorSpace,
|
|
1017
|
-
children: jsx(
|
|
1017
|
+
children: jsx(CodeIcon, {})
|
|
1018
1018
|
}
|
|
1019
1019
|
) : null
|
|
1020
1020
|
] });
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PortalContainerContext,
|
|
3
|
+
PortalTheme,
|
|
4
|
+
index_parts_exports
|
|
5
|
+
} from "./chunk-DNJ3OSLB.js";
|
|
6
|
+
import "./chunk-XKTORVEQ.js";
|
|
7
|
+
import "./chunk-NPNIBOPF.js";
|
|
8
|
+
import "./chunk-XTQCLWVH.js";
|
|
9
|
+
import {
|
|
10
|
+
global
|
|
11
|
+
} from "./chunk-6AKCRYVX.js";
|
|
12
|
+
import "./chunk-IMSF75WX.js";
|
|
13
|
+
|
|
14
|
+
// src/components/components/tooltip/WithTooltip.tsx
|
|
15
|
+
import React, { useCallback, useContext, useEffect, useId, useState } from "react";
|
|
16
|
+
import { deprecate } from "@aussieljk/forkbook/internal/client-logger";
|
|
17
|
+
|
|
18
|
+
// storybook-css:/home/runner/work/forkbook/forkbook/code/core/src/components/components/tooltip/WithTooltip.module.css
|
|
19
|
+
var id = "core/src/components/components/tooltip/WithTooltip.module.css";
|
|
20
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]`)) {
|
|
21
|
+
let style = document.createElement("style");
|
|
22
|
+
style.setAttribute("data-fb-css", id), style.textContent = ".fb-QoytUq-wrapper{--tooltip-bg:#fffffff2;z-index:2147483647;color-scheme:light dark;display:inline-block;&[data-chrome]{background:var(--tooltip-bg);filter:drop-shadow(0 5px 5px #0000000d)drop-shadow(0 1px 3px #0000001a);border-radius:calc(var(--fb-app-border-radius) + 2px);font-family:var(--fb-font-base);font-size:var(--fb-size-s1)}}:where([data-fb-theme=dark]) .fb-QoytUq-wrapper:not([data-color]){--tooltip-bg:var(--fb-background-app)}.fb-QoytUq-arrow{border:8px solid #0000;position:absolute;inset:auto;&[data-side=top]{border-bottom-width:0;border-top-color:var(--tooltip-bg);bottom:-8px;transform:translate(8px)}&[data-side=bottom]{border-top-width:0;border-bottom-color:var(--tooltip-bg);top:-8px;transform:translate(8px)}&[data-side=left]{border-right-width:0;border-left-color:var(--tooltip-bg);right:-8px;transform:translateY(8px)}&[data-side=right]{border-left-width:0;border-right-color:var(--tooltip-bg);left:-8px;transform:translateY(8px)}}.fb-QoytUq-target{cursor:pointer;display:inline-block;&[data-hover]{cursor:default}}.fb-QoytUq-targetSvg{cursor:pointer;&[data-hover]{cursor:default}}", document.head.appendChild(style);
|
|
23
|
+
}
|
|
24
|
+
var WithTooltip_default = { targetSvg: "fb-QoytUq-targetSvg", arrow: "fb-QoytUq-arrow", target: "fb-QoytUq-target", wrapper: "fb-QoytUq-wrapper" };
|
|
25
|
+
|
|
26
|
+
// src/components/components/tooltip/WithTooltip.tsx
|
|
27
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
28
|
+
var { document: document2 } = global, Tooltip = React.forwardRef(
|
|
29
|
+
({
|
|
30
|
+
placement = "top",
|
|
31
|
+
hasChrome = !0,
|
|
32
|
+
children,
|
|
33
|
+
arrowProps = {},
|
|
34
|
+
tooltipRef,
|
|
35
|
+
color,
|
|
36
|
+
withArrows,
|
|
37
|
+
hidden,
|
|
38
|
+
className,
|
|
39
|
+
style,
|
|
40
|
+
...props
|
|
41
|
+
}, ref) => jsxs(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
"data-testid": "tooltip",
|
|
45
|
+
ref,
|
|
46
|
+
hidden,
|
|
47
|
+
...props,
|
|
48
|
+
className: [WithTooltip_default.wrapper, className].filter(Boolean).join(" "),
|
|
49
|
+
style: { display: hidden ? "none" : void 0, ...style },
|
|
50
|
+
"data-chrome": hasChrome || void 0,
|
|
51
|
+
"data-color": color,
|
|
52
|
+
children: [
|
|
53
|
+
hasChrome && withArrows && jsx(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
className: WithTooltip_default.arrow,
|
|
57
|
+
"data-side": placement.split("-")[0],
|
|
58
|
+
...arrowProps,
|
|
59
|
+
"data-color": color
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
children
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
);
|
|
67
|
+
Tooltip.displayName = "Tooltip";
|
|
68
|
+
var toSideAndAlign = (placement) => {
|
|
69
|
+
let [side, align = "center"] = placement.split("-");
|
|
70
|
+
return {
|
|
71
|
+
side: side === "auto" ? "top" : side,
|
|
72
|
+
align
|
|
73
|
+
};
|
|
74
|
+
}, WithTooltipPure = ({
|
|
75
|
+
svg = !1,
|
|
76
|
+
trigger = "click",
|
|
77
|
+
closeOnOutsideClick = !1,
|
|
78
|
+
placement = "top",
|
|
79
|
+
hasChrome = !0,
|
|
80
|
+
defaultVisible = !1,
|
|
81
|
+
withArrows,
|
|
82
|
+
offset = [0, 8],
|
|
83
|
+
tooltip,
|
|
84
|
+
children,
|
|
85
|
+
delayHide = trigger === "hover" ? 200 : 0,
|
|
86
|
+
visible,
|
|
87
|
+
interactive: _interactive,
|
|
88
|
+
delayShow = 0,
|
|
89
|
+
strategy,
|
|
90
|
+
onVisibleChange,
|
|
91
|
+
portalContainer,
|
|
92
|
+
...props
|
|
93
|
+
}) => {
|
|
94
|
+
let Container = svg ? "g" : "div", triggers = trigger === null ? [] : Array.isArray(trigger) ? trigger : [trigger], isHover = triggers.includes("hover"), isClick = triggers.includes("click"), isFocus = triggers.includes("focus"), triggerId = useId(), [shown, setShown] = useState(defaultVisible), isVisible = visible ?? shown, setVisible = useCallback(
|
|
95
|
+
(next) => {
|
|
96
|
+
setShown(next), onVisibleChange?.(next);
|
|
97
|
+
},
|
|
98
|
+
[onVisibleChange]
|
|
99
|
+
), onOpenChange = useCallback(
|
|
100
|
+
(open, { reason }) => {
|
|
101
|
+
reason === "trigger-press" && !isClick || reason === "trigger-hover" && !isHover || reason === "trigger-focus" && !isFocus || reason === "outside-press" && !closeOnOutsideClick || setVisible(open);
|
|
102
|
+
},
|
|
103
|
+
[isClick, isHover, isFocus, closeOnOutsideClick, setVisible]
|
|
104
|
+
), contextContainer = useContext(PortalContainerContext), portalTarget = (typeof portalContainer == "string" ? document2.querySelector(portalContainer) : portalContainer) || contextContainer || document2.body;
|
|
105
|
+
return jsxs(index_parts_exports.Root, { open: isVisible, onOpenChange, triggerId, children: [
|
|
106
|
+
jsx(
|
|
107
|
+
index_parts_exports.Trigger,
|
|
108
|
+
{
|
|
109
|
+
id: triggerId,
|
|
110
|
+
nativeButton: !1,
|
|
111
|
+
openOnHover: isHover,
|
|
112
|
+
delay: delayShow,
|
|
113
|
+
closeDelay: delayHide,
|
|
114
|
+
render: jsx(
|
|
115
|
+
Container,
|
|
116
|
+
{
|
|
117
|
+
className: svg ? WithTooltip_default.targetSvg : WithTooltip_default.target,
|
|
118
|
+
"data-hover": isHover || void 0,
|
|
119
|
+
...props
|
|
120
|
+
}
|
|
121
|
+
),
|
|
122
|
+
children
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
jsx(index_parts_exports.Portal, { container: portalTarget, children: jsx(PortalTheme, { children: jsx(
|
|
126
|
+
index_parts_exports.Positioner,
|
|
127
|
+
{
|
|
128
|
+
...toSideAndAlign(placement),
|
|
129
|
+
sideOffset: offset[1],
|
|
130
|
+
alignOffset: offset[0],
|
|
131
|
+
collisionPadding: 8,
|
|
132
|
+
arrowPadding: 8,
|
|
133
|
+
positionMethod: strategy,
|
|
134
|
+
style: { zIndex: 2147483647 },
|
|
135
|
+
children: jsxs(
|
|
136
|
+
index_parts_exports.Popup,
|
|
137
|
+
{
|
|
138
|
+
initialFocus: !1,
|
|
139
|
+
finalFocus: !1,
|
|
140
|
+
render: jsx(Tooltip, { hasChrome }),
|
|
141
|
+
children: [
|
|
142
|
+
hasChrome && withArrows && jsx(index_parts_exports.Arrow, { render: jsx("div", { className: WithTooltip_default.arrow }) }),
|
|
143
|
+
typeof tooltip == "function" ? tooltip({ onHide: () => setVisible(!1) }) : tooltip
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
)
|
|
147
|
+
}
|
|
148
|
+
) }) })
|
|
149
|
+
] });
|
|
150
|
+
}, WithToolTipState = ({
|
|
151
|
+
startOpen = !1,
|
|
152
|
+
onVisibleChange: onChange,
|
|
153
|
+
...rest
|
|
154
|
+
}) => {
|
|
155
|
+
let [tooltipShown, setTooltipShown] = useState(startOpen), onVisibilityChange = useCallback(
|
|
156
|
+
(visibility) => {
|
|
157
|
+
onChange && onChange(visibility) === !1 || setTooltipShown(visibility);
|
|
158
|
+
},
|
|
159
|
+
[onChange]
|
|
160
|
+
);
|
|
161
|
+
return useEffect(() => {
|
|
162
|
+
let hide = () => onVisibilityChange(!1), handleKeyDown = (e) => {
|
|
163
|
+
e.key === "Escape" && hide();
|
|
164
|
+
};
|
|
165
|
+
document2.addEventListener("keydown", handleKeyDown, !1);
|
|
166
|
+
let iframes = Array.from(document2.getElementsByTagName("iframe")), unbinders = [];
|
|
167
|
+
return iframes.forEach((iframe) => {
|
|
168
|
+
let bind = () => {
|
|
169
|
+
try {
|
|
170
|
+
iframe.contentWindow.document && (iframe.contentWindow.document.addEventListener("click", hide), unbinders.push(() => {
|
|
171
|
+
try {
|
|
172
|
+
iframe.contentWindow.document.removeEventListener("click", hide);
|
|
173
|
+
} catch {
|
|
174
|
+
}
|
|
175
|
+
}));
|
|
176
|
+
} catch {
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
bind(), iframe.addEventListener("load", bind), unbinders.push(() => {
|
|
180
|
+
iframe.removeEventListener("load", bind);
|
|
181
|
+
});
|
|
182
|
+
}), () => {
|
|
183
|
+
document2.removeEventListener("keydown", handleKeyDown), unbinders.forEach((unbind) => {
|
|
184
|
+
unbind();
|
|
185
|
+
});
|
|
186
|
+
};
|
|
187
|
+
}), jsx(WithTooltipPure, { ...rest, visible: tooltipShown, onVisibleChange: onVisibilityChange });
|
|
188
|
+
}, DeprecatedPure = (props) => (deprecate(
|
|
189
|
+
"WithTooltipPure is deprecated and will be removed in Forkbook 11. Please use WithTooltip instead."
|
|
190
|
+
), jsx(WithTooltipPure, { "data-deprecated": "WithTooltipPure", ...props })), DeprecatedState = (props) => (deprecate(
|
|
191
|
+
"WithToolTipState is deprecated and will be removed in Forkbook 11. Please use WithTooltip instead."
|
|
192
|
+
), jsx(WithToolTipState, { "data-deprecated": "WithToolTipState", ...props }));
|
|
193
|
+
export {
|
|
194
|
+
Tooltip,
|
|
195
|
+
DeprecatedState as WithToolTipState,
|
|
196
|
+
WithToolTipState as WithTooltip,
|
|
197
|
+
DeprecatedPure as WithTooltipPure
|
|
198
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/addon-themes/constants.ts
|
|
2
|
-
var PARAM_KEY = "themes", ADDON_ID =
|
|
2
|
+
var PARAM_KEY = "themes", ADDON_ID = `@aussieljk/forkbook/${PARAM_KEY}`, GLOBAL_KEY = "theme", THEME_SWITCHER_ID = `${ADDON_ID}/theme-switcher`, DEFAULT_ADDON_STATE = {
|
|
3
3
|
themesList: [],
|
|
4
4
|
themeDefault: void 0
|
|
5
5
|
}, DEFAULT_THEME_PARAMETERS = {}, THEMING_EVENTS = {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EmptyBlock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6ELMKWKX.js";
|
|
4
4
|
import {
|
|
5
5
|
clsx
|
|
6
6
|
} from "./chunk-CNED6RYH.js";
|
|
7
7
|
|
|
8
8
|
// src/addon-docs/blocks/components/SnippetWarning.tsx
|
|
9
9
|
import { Button } from "@aussieljk/forkbook/internal/components";
|
|
10
|
-
import {
|
|
10
|
+
import { TriangleAlertIcon } from "lucide-react";
|
|
11
11
|
|
|
12
|
-
// storybook-css:/
|
|
12
|
+
// storybook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/components/SnippetWarning.module.css
|
|
13
13
|
var id = "core/src/addon-docs/blocks/components/SnippetWarning.module.css";
|
|
14
|
-
if (typeof document < "u" && !document.querySelector(`style[data-
|
|
14
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]`)) {
|
|
15
15
|
let style = document.createElement("style");
|
|
16
|
-
style.setAttribute("data-
|
|
16
|
+
style.setAttribute("data-fb-css", id), style.textContent = ".fb-nSm15W-warningButton{color:var(--fb-fg-color-warning);&:hover,&:focus-visible{color:var(--fb-fg-color-warning);background:var(--fb-bg-color-warning)}}", document.head.appendChild(style);
|
|
17
17
|
}
|
|
18
|
-
var SnippetWarning_default = { warningButton: "
|
|
18
|
+
var SnippetWarning_default = { warningButton: "fb-nSm15W-warningButton" };
|
|
19
19
|
|
|
20
20
|
// src/addon-docs/blocks/components/SnippetWarning.tsx
|
|
21
21
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -28,7 +28,7 @@ var SNIPPET_WARNING_LABEL = "Incomplete code snippet", SnippetWarning = ({ warni
|
|
|
28
28
|
variant: "ghost",
|
|
29
29
|
size: "small",
|
|
30
30
|
padding: "small",
|
|
31
|
-
children: jsx(
|
|
31
|
+
children: jsx(TriangleAlertIcon, {})
|
|
32
32
|
}
|
|
33
33
|
) : null;
|
|
34
34
|
|
|
@@ -36,13 +36,13 @@ var SNIPPET_WARNING_LABEL = "Incomplete code snippet", SnippetWarning = ({ warni
|
|
|
36
36
|
import { SyntaxHighlighter } from "@aussieljk/forkbook/internal/components";
|
|
37
37
|
import { ThemeProvider, convert, themes, useTheme } from "@aussieljk/forkbook/theming";
|
|
38
38
|
|
|
39
|
-
// storybook-css:/
|
|
39
|
+
// storybook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/components/Source.module.css
|
|
40
40
|
var id2 = "core/src/addon-docs/blocks/components/Source.module.css";
|
|
41
|
-
if (typeof document < "u" && !document.querySelector(`style[data-
|
|
41
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id2}"]`)) {
|
|
42
42
|
let style = document.createElement("style");
|
|
43
|
-
style.setAttribute("data-
|
|
43
|
+
style.setAttribute("data-fb-css", id2), style.textContent = ".fb-I61SDG-syntaxHighlighter{font-size:calc(var(--fb-size-s2) - 1px);border-radius:var(--fb-app-border-radius);margin:25px 0 40px;line-height:19px;box-shadow:0 1px 3px #0000001a;& pre.fb-I61SDG-prismjs{background:inherit;padding:20px}}.fb-I61SDG-snippetWarning{z-index:1;position:absolute;top:4px;right:4px}.fb-I61SDG-sourceWrapper{position:relative}.fb-I61SDG-skeletonWrapper{background:var(--fb-background-content);border-radius:var(--fb-app-border-radius);border:1px solid var(--fb-app-border-color);margin:25px 0 40px;padding:20px 20px 20px 22px;box-shadow:0 1px 3px #0000001a}:where([data-fb-theme=dark]){& .fb-I61SDG-syntaxHighlighter,& .fb-I61SDG-skeletonWrapper{box-shadow:0 2px 5px #0003}}.fb-I61SDG-skeletonPlaceholder{background:var(--fb-app-border-color);width:60%;height:17px;margin-top:1px;animation:1.5s ease-in-out infinite fb-I61SDG-glow;&:first-child{margin:0}}@keyframes fb-I61SDG-glow{0%,to{opacity:1}50%{opacity:.4}}", document.head.appendChild(style);
|
|
44
44
|
}
|
|
45
|
-
var Source_default = {
|
|
45
|
+
var Source_default = { skeletonPlaceholder: "fb-I61SDG-skeletonPlaceholder", snippetWarning: "fb-I61SDG-snippetWarning", prismjs: "fb-I61SDG-prismjs", sourceWrapper: "fb-I61SDG-sourceWrapper", glow: "fb-I61SDG-glow", skeletonWrapper: "fb-I61SDG-skeletonWrapper", syntaxHighlighter: "fb-I61SDG-syntaxHighlighter" };
|
|
46
46
|
|
|
47
47
|
// src/addon-docs/blocks/components/Source.tsx
|
|
48
48
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
@@ -78,7 +78,7 @@ var SourceSkeleton = () => jsxs("div", { className: Source_default.skeletonWrapp
|
|
|
78
78
|
copyable,
|
|
79
79
|
format,
|
|
80
80
|
language: language ?? "jsx",
|
|
81
|
-
className: "docblock-source
|
|
81
|
+
className: "docblock-source fb-unstyled",
|
|
82
82
|
...rest,
|
|
83
83
|
children: code
|
|
84
84
|
}
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
// src/addon-docs/blocks/components/EmptyBlock.tsx
|
|
6
6
|
import { withReset } from "@aussieljk/forkbook/internal/components";
|
|
7
7
|
|
|
8
|
-
// storybook-css:/
|
|
8
|
+
// storybook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/components/EmptyBlock.module.css
|
|
9
9
|
var id = "core/src/addon-docs/blocks/components/EmptyBlock.module.css";
|
|
10
|
-
if (typeof document < "u" && !document.querySelector(`style[data-
|
|
10
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]`)) {
|
|
11
11
|
let style = document.createElement("style");
|
|
12
|
-
style.setAttribute("data-
|
|
12
|
+
style.setAttribute("data-fb-css", id), style.textContent = ".fb-he578q-wrapper{border-radius:var(--fb-app-border-radius);border:1px dashed var(--fb-app-border-color);color:rgb(from var(--fb-color-default-text) r g b / calc(alpha - .3));font-size:var(--fb-size-s2);background-color:#00000003;justify-content:center;align-items:center;margin:25px 0 40px;padding:20px;display:flex}:where([data-fb-theme=dark]) .fb-he578q-wrapper{background-color:#ffffff03}", document.head.appendChild(style);
|
|
13
13
|
}
|
|
14
|
-
var EmptyBlock_default = { wrapper: "
|
|
14
|
+
var EmptyBlock_default = { wrapper: "fb-he578q-wrapper" };
|
|
15
15
|
|
|
16
16
|
// src/addon-docs/blocks/components/EmptyBlock.tsx
|
|
17
17
|
import { jsx } from "react/jsx-runtime";
|
|
18
|
-
var EmptyBlock = (props) => jsx("div", { ...props, className: clsx(withReset, EmptyBlock_default.wrapper, "docblock-emptyblock
|
|
18
|
+
var EmptyBlock = (props) => jsx("div", { ...props, className: clsx(withReset, EmptyBlock_default.wrapper, "docblock-emptyblock fb-unstyled") });
|
|
19
19
|
|
|
20
20
|
export {
|
|
21
21
|
EmptyBlock
|
|
@@ -28,7 +28,7 @@ import { jsx as jsx2 } from "react/jsx-runtime";
|
|
|
28
28
|
var HeadManagerDecorator = (Story) => jsx2(head_manager_provider_default, { children: jsx2(Story, {}) });
|
|
29
29
|
|
|
30
30
|
// src/nextjs-vite/images/decorator.tsx
|
|
31
|
-
import { ImageContext } from "
|
|
31
|
+
import { ImageContext } from "fb-original/image-context";
|
|
32
32
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
33
33
|
var ImageDecorator = (Story, { parameters: parameters2 }) => parameters2.nextjs?.image ? jsx3(ImageContext.Provider, { value: parameters2.nextjs.image, children: jsx3(Story, {}) }) : jsx3(Story, {});
|
|
34
34
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorybookError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MJIDTL3X.js";
|
|
4
4
|
|
|
5
5
|
// src/manager-errors.ts
|
|
6
6
|
var Category = /* @__PURE__ */ ((Category2) => (Category2.MANAGER_UNCAUGHT = "MANAGER_UNCAUGHT", Category2.MANAGER_UI = "MANAGER_UI", Category2.MANAGER_API = "MANAGER_API", Category2.MANAGER_CLIENT_LOGGER = "MANAGER_CLIENT-LOGGER", Category2.MANAGER_CHANNELS = "MANAGER_CHANNELS", Category2.MANAGER_CORE_EVENTS = "MANAGER_CORE-EVENTS", Category2.MANAGER_ROUTER = "MANAGER_ROUTER", Category2.MANAGER_THEMING = "MANAGER_THEMING", Category2.MANAGER_UNIVERSAL_STORE = "MANAGER_UNIVERSAL-STORE", Category2.MANAGER_OPEN_SERVICE = "MANAGER_OPEN-SERVICE", Category2))(Category || {}), ProviderDoesNotExtendBaseProviderError = class extends StorybookError {
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import {
|
|
2
|
+
sanitize
|
|
3
|
+
} from "./chunk-NULBREPZ.js";
|
|
4
|
+
|
|
5
|
+
// src/router/story-paths.ts
|
|
6
|
+
var APP_ROUTE_SEGMENTS = /* @__PURE__ */ new Set(["settings", "review"]), HOME_PATH = "/home/", ALL_STORIES_PATH = "/all/", isRootPageEnabled = () => globalThis.FORKBOOK_ROOT?.enabled === !0, RESERVED_URL_PATHS = ["/", "/all"], firstSegment = (path) => path.split("/").filter(Boolean)[0] ?? "", isReservedUrlPath = (urlPath) => {
|
|
7
|
+
let path = trimTrailingSlash(urlPath.toLowerCase());
|
|
8
|
+
if (RESERVED_URL_PATHS.includes(path))
|
|
9
|
+
return !0;
|
|
10
|
+
let first = firstSegment(path);
|
|
11
|
+
return APP_ROUTE_SEGMENTS.has(first) || first.startsWith("_");
|
|
12
|
+
}, trimTrailingSlash = (path) => path.length > 1 ? path.replace(/\/+$/, "") : path, entryUrlPath = (entry) => {
|
|
13
|
+
let segments = [...entry.title.split("/"), entry.name].map(sanitize).filter(Boolean);
|
|
14
|
+
if (segments.length < 2)
|
|
15
|
+
return;
|
|
16
|
+
let path = `/${segments.join("/")}`;
|
|
17
|
+
return isReservedUrlPath(path) ? void 0 : path;
|
|
18
|
+
}, buildStoryPathMap = (entries) => {
|
|
19
|
+
let map = { byId: /* @__PURE__ */ new Map(), byUrl: /* @__PURE__ */ new Map() };
|
|
20
|
+
for (let entry of entries) {
|
|
21
|
+
if (entry.type !== "story" && entry.type !== "docs")
|
|
22
|
+
continue;
|
|
23
|
+
let urlPath = entryUrlPath(entry);
|
|
24
|
+
!urlPath || map.byUrl.has(urlPath) || (map.byId.set(entry.id, urlPath), map.byUrl.set(urlPath, { id: entry.id, viewMode: entry.type === "docs" ? "docs" : "story" }));
|
|
25
|
+
}
|
|
26
|
+
return map;
|
|
27
|
+
}, currentMap = buildStoryPathMap([]), setStoryPathEntries = (entries) => {
|
|
28
|
+
currentMap = buildStoryPathMap(entries);
|
|
29
|
+
}, storyRouteRegex = /^\/(story|docs)\/(.+)$/, toUrlPath = (internalPath, map = currentMap) => {
|
|
30
|
+
if (!internalPath || internalPath === "/" || internalPath === HOME_PATH)
|
|
31
|
+
return "/";
|
|
32
|
+
if (internalPath === ALL_STORIES_PATH)
|
|
33
|
+
return "/all";
|
|
34
|
+
let match = internalPath.match(storyRouteRegex);
|
|
35
|
+
if (!match)
|
|
36
|
+
return internalPath;
|
|
37
|
+
let [, viewMode, id] = match, urlPath = map.byId.get(id);
|
|
38
|
+
return urlPath && map.byUrl.get(urlPath)?.viewMode === viewMode ? urlPath : `/_${viewMode}/${id}`;
|
|
39
|
+
}, fromUrlPath = (urlPath, map = currentMap) => {
|
|
40
|
+
let path = urlPath || "/";
|
|
41
|
+
try {
|
|
42
|
+
path = decodeURI(path);
|
|
43
|
+
} catch {
|
|
44
|
+
}
|
|
45
|
+
path = path.toLowerCase(), path === "/index.html" && (path = "/");
|
|
46
|
+
let first = firstSegment(path);
|
|
47
|
+
if (APP_ROUTE_SEGMENTS.has(first))
|
|
48
|
+
return path;
|
|
49
|
+
let trimmed = trimTrailingSlash(path);
|
|
50
|
+
if (trimmed === "/all")
|
|
51
|
+
return ALL_STORIES_PATH;
|
|
52
|
+
if (trimmed === "/")
|
|
53
|
+
return isRootPageEnabled() ? HOME_PATH : "/";
|
|
54
|
+
let escaped = trimmed.match(/^\/_(story|docs)\/(.+)$/);
|
|
55
|
+
if (escaped)
|
|
56
|
+
return `/${escaped[1]}/${escaped[2]}`;
|
|
57
|
+
let known = map.byUrl.get(trimmed);
|
|
58
|
+
if (known)
|
|
59
|
+
return `/${known.viewMode}/${known.id}`;
|
|
60
|
+
let segments = trimmed.split("/").filter(Boolean);
|
|
61
|
+
if (segments.length < 2)
|
|
62
|
+
return "/";
|
|
63
|
+
let name = segments[segments.length - 1];
|
|
64
|
+
return `/${name === "docs" ? "docs" : "story"}/${segments.slice(0, -1).join("-")}--${name}`;
|
|
65
|
+
}, buildManagerHref = (base, internalPath, query = "") => {
|
|
66
|
+
let root = base.endsWith("/") ? base : `${base}/`, urlPath = toUrlPath(internalPath).slice(1);
|
|
67
|
+
return `${root}${urlPath}${query ? `?${query}` : ""}`;
|
|
68
|
+
}, urlPathDepth = (urlPath) => urlPath.split("/").filter(Boolean).length;
|
|
69
|
+
|
|
70
|
+
export {
|
|
71
|
+
HOME_PATH,
|
|
72
|
+
ALL_STORIES_PATH,
|
|
73
|
+
RESERVED_URL_PATHS,
|
|
74
|
+
isReservedUrlPath,
|
|
75
|
+
entryUrlPath,
|
|
76
|
+
buildStoryPathMap,
|
|
77
|
+
setStoryPathEntries,
|
|
78
|
+
toUrlPath,
|
|
79
|
+
fromUrlPath,
|
|
80
|
+
buildManagerHref,
|
|
81
|
+
urlPathDepth
|
|
82
|
+
};
|