@aussieljk/forkbook 0.0.1-16 → 0.0.1-18
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/assets/server/template.ejs +5 -1
- package/dist/_browser-chunks/{Color-CSCUIZNV.js → Color-CHK5SYAK.js} +1 -1
- package/dist/_browser-chunks/{WithTooltip-QCFTNB6P.js → WithTooltip-SLEBZZYA.js} +1 -1
- package/dist/_browser-chunks/{chunk-Z4YTPAKR.js → chunk-5X5VDKPT.js} +10 -10
- package/dist/_browser-chunks/chunk-PFYL47RM.js +45 -0
- package/dist/_browser-chunks/{chunk-RSK2QATC.js → chunk-VCUPEQLQ.js} +1 -1
- package/dist/_node-chunks/{attached-runtime-M3LR7CRL.js → attached-runtime-ZWS3ITCU.js} +32 -29
- package/dist/_node-chunks/{builder-manager-S5R76DLZ.js → builder-manager-MFEAPDDJ.js} +41 -20
- package/dist/_node-chunks/{chunk-PLQUKACJ.js → chunk-3IAEGPC6.js} +6 -6
- package/dist/_node-chunks/{chunk-F6IRDFGE.js → chunk-3UTE6IWX.js} +8 -8
- package/dist/_node-chunks/{chunk-JP6U6V57.js → chunk-43EE7M6B.js} +8 -8
- package/dist/_node-chunks/{chunk-GG57O5WL.js → chunk-4EC6ZCAU.js} +7 -7
- package/dist/_node-chunks/{chunk-S6KVMMG5.js → chunk-4KYM2KSJ.js} +6 -6
- package/dist/_node-chunks/{chunk-PK7PIHFX.js → chunk-4QLNIRBY.js} +6 -6
- package/dist/_node-chunks/{chunk-T5ZUNH6T.js → chunk-4QX2ECVH.js} +6 -6
- package/dist/_node-chunks/{chunk-C7LQKP5N.js → chunk-4XHQ65LH.js} +6 -6
- package/dist/_node-chunks/{chunk-C3NHS7JV.js → chunk-5VKLBV3U.js} +21 -9
- package/dist/_node-chunks/chunk-66MT4R3I.js +20 -0
- package/dist/_node-chunks/{chunk-V5UORMCO.js → chunk-7JXTYBXL.js} +7 -7
- package/dist/_node-chunks/{chunk-EYI7KYY6.js → chunk-7LMKJKAQ.js} +8 -8
- package/dist/_node-chunks/{chunk-PAPQY3TW.js → chunk-7QJLW3RJ.js} +8 -8
- package/dist/_node-chunks/{chunk-3RIDLOKA.js → chunk-AAPO6DVK.js} +9 -9
- package/dist/_node-chunks/{chunk-RCJSAGZJ.js → chunk-AOLMH3XG.js} +15 -11
- package/dist/_node-chunks/{chunk-7SQTDU62.js → chunk-AP4REHEI.js} +7 -7
- package/dist/_node-chunks/{chunk-XLLJO7QN.js → chunk-ATMBZKPG.js} +8 -8
- package/dist/_node-chunks/{chunk-TTT6HKCH.js → chunk-B77YYPPE.js} +6 -6
- package/dist/_node-chunks/{chunk-LZR5V6AC.js → chunk-BUBLGEJK.js} +8 -8
- package/dist/_node-chunks/{chunk-WKOD2VTN.js → chunk-CD4UNHSD.js} +6 -6
- package/dist/_node-chunks/{chunk-7N4FSYG5.js → chunk-CHAPTCXW.js} +26 -26
- package/dist/_node-chunks/{chunk-IA5HRJZF.js → chunk-CSKLM3SG.js} +9 -9
- package/dist/_node-chunks/{chunk-JX2FN4Q3.js → chunk-CSYW7JSG.js} +6 -6
- package/dist/_node-chunks/chunk-CVS5RXU4.js +19 -0
- package/dist/_node-chunks/{chunk-K5XZRTQZ.js → chunk-CZXN5VUN.js} +7 -7
- package/dist/_node-chunks/{chunk-OGBMQXAL.js → chunk-DMQHQOWT.js} +8 -8
- package/dist/_node-chunks/{chunk-XY5DZDIL.js → chunk-DUJAQGDD.js} +10 -10
- package/dist/_node-chunks/{chunk-RY5SXMMS.js → chunk-ETOEMP6K.js} +7 -7
- package/dist/_node-chunks/chunk-F5JV3P2K.js +49 -0
- package/dist/_node-chunks/{chunk-GDBK4HY3.js → chunk-F6LG6ZTH.js} +12 -12
- package/dist/_node-chunks/{chunk-SUWLYB5G.js → chunk-GADZYB7K.js} +6 -6
- package/dist/_node-chunks/{chunk-JT7FTSPB.js → chunk-GC5GNEU6.js} +7 -7
- package/dist/_node-chunks/chunk-GG4A54OB.js +52 -0
- package/dist/_node-chunks/{chunk-76ZAQTUI.js → chunk-GXIROVYL.js} +6 -6
- package/dist/_node-chunks/{chunk-IJYTDXUI.js → chunk-HAQE45NF.js} +8 -8
- package/dist/_node-chunks/{chunk-7HEDXUYY.js → chunk-HKYFHGCD.js} +6 -6
- package/dist/_node-chunks/{chunk-N5DU4RGS.js → chunk-HOZK625X.js} +7 -7
- package/dist/_node-chunks/{chunk-NT2NODZ6.js → chunk-HP4RVLEB.js} +6 -6
- package/dist/_node-chunks/{chunk-KQZVI6MC.js → chunk-HTAHNPU2.js} +6 -6
- package/dist/_node-chunks/{chunk-5OFZSOQT.js → chunk-HZPU25LI.js} +8 -8
- package/dist/_node-chunks/{chunk-72BCEHLN.js → chunk-IHPNFVF3.js} +9 -9
- package/dist/_node-chunks/{chunk-GDWG7F53.js → chunk-IPIEE34R.js} +6 -6
- package/dist/_node-chunks/{chunk-AYBIJKYK.js → chunk-J3LAZZTR.js} +8 -8
- package/dist/_node-chunks/{chunk-4GBTYHEQ.js → chunk-J4FHHY7S.js} +7 -7
- package/dist/_node-chunks/{chunk-Y2FHDZ2F.js → chunk-JV3BLGQU.js} +9 -9
- package/dist/_node-chunks/{chunk-PYLGT7HR.js → chunk-KNYUZVVR.js} +8 -8
- package/dist/_node-chunks/{chunk-IW4JU27L.js → chunk-L6UNXQVV.js} +7 -7
- package/dist/_node-chunks/{chunk-EB7VOG5E.js → chunk-LF6QBPS2.js} +6 -6
- package/dist/_node-chunks/{chunk-PH4DKJCF.js → chunk-M6P773JM.js} +6 -6
- package/dist/_node-chunks/{chunk-BMBHJB46.js → chunk-MBQQZ53T.js} +6 -6
- package/dist/_node-chunks/{chunk-FJWE2TBB.js → chunk-NAQAQ5JU.js} +14 -14
- package/dist/_node-chunks/{chunk-K6GKT7RR.js → chunk-NL2NSBHC.js} +8 -8
- package/dist/_node-chunks/{chunk-UFZDQ6B2.js → chunk-O432EICO.js} +7 -7
- package/dist/_node-chunks/{chunk-PMYTZ2QW.js → chunk-OQF3DZON.js} +6 -6
- package/dist/_node-chunks/{chunk-I5YT3ZVT.js → chunk-OWAPLHBK.js} +6 -6
- package/dist/_node-chunks/{chunk-XXDUSVOM.js → chunk-P5UQQAVT.js} +8 -8
- package/dist/_node-chunks/{chunk-3VMGUWTV.js → chunk-PD2B4CCJ.js} +6 -6
- package/dist/_node-chunks/{chunk-S5AP3365.js → chunk-PLY7VOL7.js} +19 -19
- package/dist/_node-chunks/{chunk-2GKDQBC6.js → chunk-PNKI23DA.js} +11 -10
- package/dist/_node-chunks/{chunk-5U6PJ5YZ.js → chunk-Q5QVDDH2.js} +6 -6
- package/dist/_node-chunks/{chunk-XWNZORKV.js → chunk-QIYPM5FW.js} +7 -7
- package/dist/_node-chunks/{chunk-E5PKDO5S.js → chunk-QQNAFDRV.js} +6 -6
- package/dist/_node-chunks/chunk-QX47Z5FH.js +18 -0
- package/dist/_node-chunks/{chunk-IHOUXOSK.js → chunk-R3ICZFLN.js} +8 -8
- package/dist/_node-chunks/{chunk-ZTZCXWZV.js → chunk-R5L5IULY.js} +6 -6
- package/dist/_node-chunks/{chunk-CNIGCMVT.js → chunk-RBTE26TI.js} +6 -6
- package/dist/_node-chunks/chunk-RTTAFZ52.js +25 -0
- package/dist/_node-chunks/{chunk-YBAT4RJ7.js → chunk-RUEDYIYF.js} +6 -6
- package/dist/_node-chunks/{chunk-54Q363BU.js → chunk-SFXUROK4.js} +10 -10
- package/dist/_node-chunks/{chunk-WB6KEM5Y.js → chunk-SI3EDPTV.js} +7 -7
- package/dist/_node-chunks/{chunk-VXTAQURA.js → chunk-TG4TFBAD.js} +6 -6
- package/dist/_node-chunks/{chunk-JQYFHZ7Z.js → chunk-TMRHGLYF.js} +6 -6
- package/dist/_node-chunks/{chunk-UW6HXL4F.js → chunk-UANUKRU3.js} +7 -7
- package/dist/_node-chunks/{chunk-OKAP7V5Y.js → chunk-UDHDJDLE.js} +7 -7
- package/dist/_node-chunks/{chunk-5H64FI2Q.js → chunk-VCDXUGKB.js} +7 -7
- package/dist/_node-chunks/{chunk-QDBA3OPO.js → chunk-VQSS7OII.js} +6 -6
- package/dist/_node-chunks/{chunk-DNZAIWOF.js → chunk-VQXJE5RG.js} +10 -10
- package/dist/_node-chunks/chunk-WFGTVI33.js +20 -0
- package/dist/_node-chunks/{chunk-RWKRFANH.js → chunk-WPGIUS6F.js} +6 -6
- package/dist/_node-chunks/{chunk-VL5IW2LC.js → chunk-WRHG6PWE.js} +6 -6
- package/dist/_node-chunks/{chunk-BNBWGBBX.js → chunk-X5SV7UIZ.js} +7 -7
- package/dist/_node-chunks/{chunk-A2PJPFXZ.js → chunk-XC2RV6BH.js} +6 -6
- package/dist/_node-chunks/{chunk-BLNJ2DX2.js → chunk-XF4DIPLO.js} +7 -7
- package/dist/_node-chunks/{chunk-LYDJ7XSD.js → chunk-XFUBYI3U.js} +6 -6
- package/dist/_node-chunks/{chunk-47RQBQRS.js → chunk-XG72Q4LL.js} +7 -7
- package/dist/_node-chunks/{chunk-5CTBWF65.js → chunk-XN7EHJVR.js} +7 -7
- package/dist/_node-chunks/chunk-XWO2VFNK.js +298 -0
- package/dist/_node-chunks/chunk-YBFKJXTN.js +11 -0
- package/dist/_node-chunks/{chunk-2J7TLO3T.js → chunk-YCES67AJ.js} +7 -7
- package/dist/_node-chunks/{chunk-NMJ6S2BO.js → chunk-YF6BDZJP.js} +9 -9
- package/dist/_node-chunks/{chunk-4NF4B5VC.js → chunk-YPJFFP22.js} +7 -7
- package/dist/_node-chunks/{chunk-SZC3BDMK.js → chunk-ZCTTWMP3.js} +23 -23
- package/dist/_node-chunks/{chunk-HBGFSTD5.js → chunk-ZGPTFIJY.js} +6 -6
- package/dist/_node-chunks/dist-S4XHG4S5.js +16 -0
- package/dist/_node-chunks/dist-ZLGPDQAK.js +27 -0
- package/dist/_node-chunks/{local-runtime-HTS37XDN.js → local-runtime-VNZEXHPN.js} +19 -19
- package/dist/_node-chunks/{mdx-plugin-IUQIVM3G.js → mdx-plugin-B2RRIE5M.js} +13 -13
- package/dist/_node-chunks/{monorepo-SYIDMETZ.js → monorepo-ZOBVE7R5.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-5OYJKBOA.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-RKE5VH5C.js} +11 -11
- package/dist/_node-chunks/optimized-tests-GUPK5ZYE.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-74TXIEUZ.js → pattern-copy-play-5JYSDTHX.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-KIZYAP3B.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-DWA5SPB5.js → rehype-external-links-V66P44D4.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-KAFPVNH4.js → rehype-slug-YZMIIK27.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-6EIL2N6I.js → relaxed-limits-DI6DQXM7.js} +11 -11
- package/dist/_node-chunks/{run-6W2ISL24.js → run-EIJKYUHM.js} +15 -15
- package/dist/_node-chunks/{run-C7CGXC2E.js → run-MVQQYDMF.js} +17 -17
- package/dist/_node-chunks/{setup-3LVKWS2Y.js → setup-P3E5WIHM.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-EXNOA6EO.js → vitest.config.4.template-JLKIRDI6.js} +7 -7
- package/dist/addon-a11y/manager.js +5 -5
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-comments/manager.js +10 -3
- package/dist/addon-comments/preset.js +8 -8
- package/dist/addon-docs/blocks.js +9 -9
- package/dist/addon-docs/manager.js +2 -2
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-mcp/preset.js +23 -12
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +15 -3
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +3 -3
- package/dist/addon-vitest/node/coverage-reporter.js +8 -8
- package/dist/addon-vitest/node/vitest.js +16 -16
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +14 -14
- package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
- package/dist/addon-vitest/vitest-plugin/index.js +12 -12
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +60 -59
- package/dist/bin/dispatcher.js +10 -10
- package/dist/bin/loader.js +8 -8
- package/dist/builder-next/index.d.ts +59 -0
- package/dist/builder-next/index.js +185 -0
- package/dist/builder-vite/index.d.ts +7 -2
- package/dist/builder-vite/index.js +23 -16
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.d.ts +3 -2
- package/dist/channels/index.js +25 -3
- package/dist/{chunk-C4-cnJ1R.d.ts → chunk-BsO65uOb.d.ts} +1 -1
- package/dist/{chunk-CV4-Z2pn.d.ts → chunk-CDMZhRke.d.ts} +1 -1
- package/dist/chunk-CFhJCPSB.d.ts +48 -0
- package/dist/{chunk-BNRZY6Jq.d.ts → chunk-D2CQlXaR.d.ts} +1 -1
- package/dist/chunk-DtFyKAil.d.ts +142 -0
- package/dist/{chunk-s5Ka0eSs.d.ts → chunk-OksNJcvJ.d.ts} +1 -1
- package/dist/{chunk-BRMwIGWt.d.ts → chunk-ge-rSPy0.d.ts} +33 -14
- package/dist/{chunk-QtkUsZCs.d.ts → chunk-r-Vjut9o.d.ts} +2 -1
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +21 -21
- 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 +2 -2
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/common/index.d.ts +4 -4
- package/dist/common/index.js +34 -34
- package/dist/components/index.js +28 -28
- package/dist/core-server/index.d.ts +19 -4
- package/dist/core-server/index.js +166 -107
- package/dist/core-server/presets/common-manager.js +9 -9
- package/dist/core-server/presets/common-override-preset.js +10 -10
- package/dist/core-server/presets/common-preset.js +42 -39
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf-tools/index.js +12 -12
- package/dist/manager/_manager-chunks/{globals-runtime-BWRrfZHd.js → globals-runtime-B4SHGLOz.js} +137 -73
- package/dist/manager/_manager-chunks/{globals-runtime-BshBawD_.js → globals-runtime-Bp8OD5XP.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-BGys8g47.js → globals-runtime-CFubTdpY.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-C-EipbnO.js → globals-runtime-CIwwmsq8.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-Ct6r_VIk.js → globals-runtime-DnBr0uHL.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-BimU8G7b.js → globals-runtime-DrIZ7TV0.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-DJCouYTq.js → runtime-4g05lOCJ.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-BhqfjXNm.js → runtime-B3dYQqb0.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-TSEq5lJd.js → runtime-B3sVeEUb.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-7sf36XMA.js → runtime-CDYOGzex.js} +4 -4
- package/dist/manager/_manager-chunks/{runtime-C6l5GIW9.js → runtime-CIywE7ED.js} +20 -20
- package/dist/manager/_manager-chunks/{runtime-DnHl3vQZ.js → runtime-Cd_gbHrb.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-CBJsfhjk.js → runtime-D7EqJrYN.js} +8 -8
- package/dist/manager/_manager-chunks/{runtime-BMoEpoix.js → runtime-DPTwiG8p.js} +7 -0
- package/dist/manager/_manager-chunks/{runtime-ByNphI7g.js → runtime-FgbxvsLo.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-DJfG4OGP.js → runtime-V4-aY7uL.js} +145 -145
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.js +9 -9
- package/dist/next/index.d.ts +189 -0
- package/dist/next/index.js +289 -0
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +11 -11
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.js +8 -8
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/node-logger/index.d.ts +1 -1
- package/dist/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +10 -10
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-YJlypwja.js → runtime-BiYuZt-X.js} +3 -3
- package/dist/preview/_chunks/{runtime-CrKf1OM4.js → runtime-C88AzFBv.js} +2 -2
- package/dist/preview/_chunks/{runtime-COMyPEkR.js → runtime-Cpzxe5eK.js} +73 -9
- package/dist/preview/_chunks/{runtime-CqTqsVg2.js → runtime-MYVHRAoo.js} +2 -2
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +2 -2
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -11
- package/dist/react/preset.js +13 -13
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/metro/node.js +10 -10
- package/dist/react-native/metro/withForkbook.d.ts +2 -2
- package/dist/react-native/metro/withForkbook.js +13 -13
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +8 -8
- 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/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/telemetry/index.js +11 -11
- package/dist/types/index.d.ts +1 -1
- package/package.json +15 -3
- package/skills/setup/SKILL.md +14 -0
- package/skills/stories/SKILL.md +21 -0
- package/skills/write-story/SKILL.md +14 -0
- package/dist/_node-chunks/chunk-CN26V2O6.js +0 -19
- package/dist/_node-chunks/chunk-NHIONGG3.js +0 -11
- package/dist/_node-chunks/chunk-QXQQQC3B.js +0 -20
- package/dist/_node-chunks/chunk-RR6N4UDR.js +0 -25
- package/dist/_node-chunks/chunk-VAU4QOZO.js +0 -20
- package/dist/_node-chunks/chunk-YZ5HE6CE.js +0 -18
- package/dist/_node-chunks/dist-5M4OQEOE.js +0 -16
- package/dist/_node-chunks/dist-DNAZ454H.js +0 -27
- package/dist/_node-chunks/optimized-tests-LAR2SZGJ.js +0 -22
- package/dist/_node-chunks/postinstallAddon-5GFBQQOP.js +0 -20
|
@@ -10,9 +10,13 @@
|
|
|
10
10
|
// /_story/<id>) before it loads index.json.
|
|
11
11
|
(function () {
|
|
12
12
|
var depth = /*FORKBOOK_ROUTE_DEPTH*/ 0;
|
|
13
|
+
// The server sets the root when it is mounted under a base path (for example /_forkbook/).
|
|
14
|
+
var root = /*FORKBOOK_ROOT*/ '';
|
|
13
15
|
var parts = location.pathname.replace(/\/+$/, '').split('/');
|
|
14
16
|
var base = document.createElement('base');
|
|
15
|
-
base.href =
|
|
17
|
+
base.href = root
|
|
18
|
+
? root
|
|
19
|
+
: depth
|
|
16
20
|
? parts.slice(0, Math.max(1, parts.length - depth)).join('/') + '/'
|
|
17
21
|
: new URL('.', location.href).pathname;
|
|
18
22
|
document.head.appendChild(base);
|
|
@@ -802,7 +802,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]
|
|
|
802
802
|
let style = document.createElement("style");
|
|
803
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 = { cycleColorSpaceButton: "fb-jgXPQa-cycleColorSpaceButton", tooltipContent: "fb-jgXPQa-tooltipContent", input: "fb-jgXPQa-input", popoverTrigger: "fb-jgXPQa-popoverTrigger", swatches: "fb-jgXPQa-swatches", swatch: "fb-jgXPQa-swatch", wrapper: "fb-jgXPQa-wrapper" };
|
|
806
806
|
|
|
807
807
|
// src/addon-docs/blocks/controls/Color.tsx
|
|
808
808
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -21,7 +21,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]
|
|
|
21
21
|
let style = document.createElement("style");
|
|
22
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
23
|
}
|
|
24
|
-
var WithTooltip_default = {
|
|
24
|
+
var WithTooltip_default = { wrapper: "fb-QoytUq-wrapper", arrow: "fb-QoytUq-arrow", targetSvg: "fb-QoytUq-targetSvg", target: "fb-QoytUq-target" };
|
|
25
25
|
|
|
26
26
|
// src/components/components/tooltip/WithTooltip.tsx
|
|
27
27
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -274,7 +274,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id4}"
|
|
|
274
274
|
let style = document.createElement("style");
|
|
275
275
|
style.setAttribute("data-fb-css", id4), style.textContent = ".fb-OmlZtW-wrapper{border:none;flex-direction:column;align-items:flex-start;gap:8px;margin-inline:0;padding:0;display:flex;& label{display:flex}&[data-inline]{flex-flow:wrap;gap:15px;& label{display:inline-flex}}}.fb-OmlZtW-label{cursor:pointer;align-items:center;line-height:20px;& input{cursor:pointer;margin:0;margin-right:6px}&[data-readonly]{cursor:not-allowed;& input{cursor:not-allowed}& .fb-OmlZtW-text{opacity:.5}}}", document.head.appendChild(style);
|
|
276
276
|
}
|
|
277
|
-
var Options_default = {
|
|
277
|
+
var Options_default = { label: "fb-OmlZtW-label", wrapper: "fb-OmlZtW-wrapper", text: "fb-OmlZtW-text" };
|
|
278
278
|
|
|
279
279
|
// src/addon-docs/blocks/controls/options/Checkbox.tsx
|
|
280
280
|
import { Fragment, jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
@@ -594,7 +594,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id6}"
|
|
|
594
594
|
let style = document.createElement("style");
|
|
595
595
|
style.setAttribute("data-fb-css", id6), style.textContent = '.fb-dnyE6G-container{position:relative;&:hover{&>.rejt-accordion-button:after{background:var(--fb-color-secondary)}&>.rejt-accordion-region>:is(.rejt-plus-menu,.rejt-minus-menu){opacity:1}}}.fb-dnyE6G-trigger{color:var(--fb-color-secondary);background:0 0;border:none;margin-right:3px;padding:0;line-height:22px;&:after{content:"";opacity:.1;background:0 0;border-radius:4px;width:100%;height:22px;margin-left:-1rem;padding-right:20px;transition:background .2s;display:block;position:absolute;top:0}&:before{content:"";position:absolute}&[aria-expanded=true]:before{border-top:3px solid #9999;border-left:3px solid #0000;border-right:3px solid #0000;top:10px;left:-10px}&[aria-expanded=false]:before{border-top:3px solid #0000;border-bottom:3px solid #0000;border-left:3px solid #9999;top:8px;left:-8px}}.fb-dnyE6G-region{display:inline}', document.head.appendChild(style);
|
|
596
596
|
}
|
|
597
|
-
var JsonNodeAccordion_default = { trigger: "fb-dnyE6G-trigger",
|
|
597
|
+
var JsonNodeAccordion_default = { trigger: "fb-dnyE6G-trigger", region: "fb-dnyE6G-region", container: "fb-dnyE6G-container" };
|
|
598
598
|
|
|
599
599
|
// src/addon-docs/blocks/controls/react-editable-json-tree/JsonNodeAccordion.tsx
|
|
600
600
|
import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
@@ -1698,7 +1698,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id7}"
|
|
|
1698
1698
|
let style = document.createElement("style");
|
|
1699
1699
|
style.setAttribute("data-fb-css", id7), style.textContent = ".fb-_OaGtq-wrapper{isolation:isolate;gap:8px;display:flex;position:relative;& .rejt-tree{flex:1;margin-left:1rem;font-size:13px;list-style-type:none}& .rejt-value-node:hover>button{opacity:1}& .rejt-add-form{margin-left:10px}& .rejt-add-value-node{align-items:center;display:inline-flex}& .rejt-name{color:var(--fb-color-secondary);line-height:22px}& .rejt-not-collapsed-list{margin:0 0 0 1rem;padding:0;list-style:none}& .rejt-not-collapsed-delimiter{line-height:22px}& .rejt-value{cursor:text;color:var(--fb-color-default-text);border:1px solid #0000;border-radius:4px;margin:1px 0;padding:0 4px;display:inline-block}& .rejt-value-node:hover>.rejt-value{background:var(--fb-color-lighter);border-color:var(--fb-app-border-color)}& .rejt-collapsed-value{color:var(--fb-color-default-text)}}:where([data-fb-theme=dark]) .fb-_OaGtq-wrapper .rejt-value-node:hover>.rejt-value{background:#ffffff05}.fb-_OaGtq-buttonInline{height:20px;color:var(--fb-color-dark);cursor:pointer;background:0 0;border:0;border-radius:4px;margin:1px;font-weight:400;&[data-primary]{background:var(--fb-color-secondary);color:var(--fb-color-lightest);font-weight:700}}.fb-_OaGtq-actionButton{vertical-align:middle;color:var(--fb-text-muted-color);opacity:0;cursor:pointer;background:0 0;border:0;margin-left:5px;padding:3px;transition:opacity .2s;display:inline-flex;position:relative;& svg{width:9px;height:9px}&:disabled{cursor:not-allowed}&:hover,&:focus-visible{opacity:1}&:hover:not(:disabled),&:focus-visible:not(:disabled){&.rejt-plus-menu{color:var(--fb-color-ancillary)}&.rejt-minus-menu{color:var(--fb-color-negative)}}}.fb-_OaGtq-input{color:var(--fb-color-default-text);background:var(--fb-background-app);border:1px solid var(--fb-app-border-color);border-radius:4px;outline:0;width:120px;margin:1px 0;padding:3px 4px;line-height:14px;&[placeholder]{margin:1px}&[placeholder=Key]{width:80px}&:focus{border:1px solid var(--fb-color-secondary)}}.fb-_OaGtq-rawButton{order:2;align-self:flex-start;margin-right:-10px}.fb-_OaGtq-rawInput{font-family:var(--fb-font-mono);flex:1;padding:7px 6px;font-size:12px;line-height:18px;&::placeholder{font-family:var(--fb-font-base);font-size:13px}&:placeholder-shown{padding:7px 10px}}", document.head.appendChild(style);
|
|
1700
1700
|
}
|
|
1701
|
-
var Object_default = {
|
|
1701
|
+
var Object_default = { rawButton: "fb-_OaGtq-rawButton", rawInput: "fb-_OaGtq-rawInput", actionButton: "fb-_OaGtq-actionButton", input: "fb-_OaGtq-input", wrapper: "fb-_OaGtq-wrapper", buttonInline: "fb-_OaGtq-buttonInline" };
|
|
1702
1702
|
|
|
1703
1703
|
// src/addon-docs/blocks/controls/Object.tsx
|
|
1704
1704
|
import { Fragment as Fragment6, jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
@@ -1825,7 +1825,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id8}"
|
|
|
1825
1825
|
let style = document.createElement("style");
|
|
1826
1826
|
style.setAttribute("data-fb-css", id8), style.textContent = '.fb-t_VwFG-input{--track-bg:hsl(from var(--fb-input-background) h s calc(l - 2));--track-border:#00000070;appearance:none;background-color:#0000;width:100%;&::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--fb-color-green) 0%, var(--fb-color-green) var(--fb-range-progress), var(--track-bg) var(--fb-range-progress), var(--track-bg) 100%);box-shadow:var(--track-border) 0 0 0 1px inset;cursor:pointer;border-radius:6px;width:100%;height:6px}&::-moz-range-track{background:linear-gradient(to right, var(--fb-color-green) 0%, var(--fb-color-green) var(--fb-range-progress), var(--track-bg) var(--fb-range-progress), var(--track-bg) 100%);box-shadow:var(--track-border) 0 0 0 1px inset;cursor:pointer;border-radius:6px;width:100%;height:6px}&::-webkit-slider-thumb{cursor:grab;background:var(--fb-input-background);border:1px solid var(--track-border);width:16px;height:16px;box-shadow:0 1px 3px 0px rgb(from var(--fb-app-border-color) r g b / .2);appearance:none;border-radius:50px;margin-top:-6px;transition:all .15s ease-out;&:hover{background:hsl(from var(--fb-input-background) h s calc(l - 5));transition:all 50ms ease-out;transform:scale3d(1.1,1.1,1.1)translateY(-1px)}&:active{background:var(--fb-input-background);transform:scale(1)translateY(0)}}&::-moz-range-thumb{cursor:grab;background:var(--fb-input-background);border:1px solid var(--track-border);width:16px;height:16px;box-shadow:0 1px 3px 0px rgb(from var(--fb-app-border-color) r g b / .2);border-radius:50px;transition:all .15s ease-out;&:hover{background:hsl(from var(--fb-input-background) h s calc(l - 5));transition:all 50ms ease-out;transform:scale3d(1.1,1.1,1.1)translateY(-1px)}&:active{background:var(--fb-input-background);transform:scale(1)translateY(0)}}&:focus{outline:none;&::-webkit-slider-runnable-track{border-color:rgb(from var(--fb-color-secondary) r g b / .4)}&::-moz-range-track{border-color:rgb(from var(--fb-color-secondary) r g b / .4)}&::-webkit-slider-thumb{border-color:var(--fb-color-secondary);box-shadow:0 0px 5px 0px var(--fb-color-secondary)}&::-moz-range-thumb{border-color:var(--fb-color-secondary);box-shadow:0 0px 5px 0px var(--fb-color-secondary)}}&:disabled{&::-webkit-slider-runnable-track{cursor:not-allowed}&::-moz-range-track{cursor:not-allowed}&::-webkit-slider-thumb{cursor:not-allowed}&::-moz-range-thumb{cursor:not-allowed}}}:where([data-fb-theme=dark]) .fb-t_VwFG-input{--track-bg:hsl(from var(--fb-input-background) h s calc(l + 2));--track-border:#fff6;&::-webkit-slider-thumb{box-shadow:unset}&::-moz-range-thumb{box-shadow:unset}&:focus{&::-webkit-slider-thumb{box-shadow:unset}&::-moz-range-thumb{box-shadow:unset}}}.fb-t_VwFG-label{white-space:nowrap;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;padding-left:5px;padding-right:5px;font-size:12px}.fb-t_VwFG-currentAndMax{text-align:right;flex-shrink:0}.fb-t_VwFG-wrapper{align-items:center;width:100%;display:flex;&[data-readonly]{opacity:.5}}', document.head.appendChild(style);
|
|
1827
1827
|
}
|
|
1828
|
-
var Range_default = { label: "fb-t_VwFG-label",
|
|
1828
|
+
var Range_default = { label: "fb-t_VwFG-label", input: "fb-t_VwFG-input", currentAndMax: "fb-t_VwFG-currentAndMax", wrapper: "fb-t_VwFG-wrapper" };
|
|
1829
1829
|
|
|
1830
1830
|
// src/addon-docs/blocks/controls/Range.tsx
|
|
1831
1831
|
import { jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
@@ -2026,7 +2026,7 @@ var FilesControl = ({
|
|
|
2026
2026
|
// src/addon-docs/blocks/controls/index.tsx
|
|
2027
2027
|
import { Suspense, lazy } from "react";
|
|
2028
2028
|
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
2029
|
-
var LazyColorControl = lazy(() => import("./Color-
|
|
2029
|
+
var LazyColorControl = lazy(() => import("./Color-CHK5SYAK.js")), ColorControl = (props) => jsx20(Suspense, { fallback: jsx20("div", {}), children: jsx20(LazyColorControl, { ...props }) });
|
|
2030
2030
|
|
|
2031
2031
|
// src/addon-docs/blocks/components/ArgsTable/ArgsTable.tsx
|
|
2032
2032
|
import { useCallback as useCallback6, useEffect as useEffect8, useRef as useRef5, useState as useState10 } from "react";
|
|
@@ -2510,7 +2510,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id12}
|
|
|
2510
2510
|
let style = document.createElement("style");
|
|
2511
2511
|
style.setAttribute("data-fb-css", id12), style.textContent = ".fb-MP4rPa-summary{flex-flow:wrap;align-items:flex-start;min-width:100px;margin-bottom:-4px;display:flex;&[data-expanded]{flex-direction:column}}.fb-MP4rPa-detailsContainer{flex-direction:column;display:flex;& summary{order:2}& summary::-webkit-details-marker{display:none}& summary::marker{content:none}}.fb-MP4rPa-alignedDetails{flex-flow:column wrap;align-items:flex-start;display:flex}.fb-MP4rPa-text{font-family:var(--fb-font-mono);font-size:var(--fb-size-s1);word-break:break-word;white-space:normal;flex:none;max-width:100%;margin:0 4px 4px 0;padding-top:2px;padding-bottom:2px;line-height:13px;&[data-simple]{background:0 0;border:0;padding-left:0}}.fb-MP4rPa-expandButton{font-family:var(--fb-font-mono);color:var(--fb-color-secondary);cursor:pointer;background:0 0;border:none;margin:0 0 4px;padding:1px 6px;line-height:normal}.fb-MP4rPa-expandable{font-family:var(--fb-font-mono);color:var(--fb-color-secondary);font-size:var(--fb-size-s1);white-space:nowrap;cursor:pointer;align-items:center;margin:0;display:flex;&:hover{border:1px solid #00000026}&:focus-visible{outline:2px solid var(--fb-color-secondary);outline-offset:2px}}:where([data-fb-theme=dark]) .fb-MP4rPa-expandable:hover{border:1px solid #ffffff26}.fb-MP4rPa-detail{min-width:200px;max-width:800px;font-family:var(--fb-font-mono);font-size:var(--fb-size-s1);box-sizing:content-box;padding-right:16px;& code{padding:0!important}}.fb-MP4rPa-chevron{margin-left:4px}", document.head.appendChild(style);
|
|
2512
2512
|
}
|
|
2513
|
-
var ArgValue_default = { detail: "fb-MP4rPa-detail",
|
|
2513
|
+
var ArgValue_default = { detail: "fb-MP4rPa-detail", detailsContainer: "fb-MP4rPa-detailsContainer", chevron: "fb-MP4rPa-chevron", alignedDetails: "fb-MP4rPa-alignedDetails", text: "fb-MP4rPa-text", expandButton: "fb-MP4rPa-expandButton", summary: "fb-MP4rPa-summary", expandable: "fb-MP4rPa-expandable" };
|
|
2514
2514
|
|
|
2515
2515
|
// src/addon-docs/blocks/components/ArgsTable/ArgValue.tsx
|
|
2516
2516
|
import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
@@ -2569,7 +2569,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id13}
|
|
|
2569
2569
|
let style = document.createElement("style");
|
|
2570
2570
|
style.setAttribute("data-fb-css", id13), style.textContent = ".fb-oKJ3yG-name{font-weight:700}.fb-oKJ3yG-required{color:var(--fb-color-negative);font-family:var(--fb-font-mono);cursor:help}.fb-oKJ3yG-description{&.fb-oKJ3yG-description{& p{margin:0 0 10px}& a{color:var(--fb-color-secondary)}}& code{white-space:nowrap;font-size:12px;line-height:1;font-family:var(--fb-font-mono);color:var(--fb-color-default-text);background-color:#00000003;border:1px solid #0000000d;border-radius:3px;margin:0;padding:3px 5px;display:inline-block}& pre>code{white-space:pre-wrap}}:where([data-fb-theme=dark]) .fb-oKJ3yG-description code{background-color:#ffffff05;border:1px solid #ffffff0d}.fb-oKJ3yG-type,.fb-oKJ3yG-typeWithJsDoc{color:rgb(from var(--fb-color-default-text) r g b / calc(alpha - .1));margin-top:0}:where([data-fb-theme=dark]) :is(.fb-oKJ3yG-type,.fb-oKJ3yG-typeWithJsDoc){color:rgb(from var(--fb-color-default-text) r g b / calc(alpha - .2))}.fb-oKJ3yG-type[data-has-description]{margin-top:4px}.fb-oKJ3yG-typeWithJsDoc{margin-bottom:12px;&[data-has-description]{margin-top:12px}}.fb-oKJ3yG-nameCell{padding-left:20px!important;&[data-expandable]{padding-left:40px!important}}.fb-oKJ3yG-row span.sbdocs-argcontrol-setup,.fb-oKJ3yG-row:is(:hover,:focus-within) span.sbdocs-argcontrol-placeholder{white-space:nowrap;clip:rect(0, 0, 0, 0);clip-path:inset(50%);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fb-oKJ3yG-row:is(:hover,:focus-within) span.sbdocs-argcontrol-setup{position:unset;width:unset;height:unset;padding:unset;margin:unset;overflow:unset;white-space:unset;clip:unset;clip-path:unset;border:unset}", document.head.appendChild(style);
|
|
2571
2571
|
}
|
|
2572
|
-
var ArgRow_default = {
|
|
2572
|
+
var ArgRow_default = { name: "fb-oKJ3yG-name", row: "fb-oKJ3yG-row", nameCell: "fb-oKJ3yG-nameCell", required: "fb-oKJ3yG-required", description: "fb-oKJ3yG-description", type: "fb-oKJ3yG-type", typeWithJsDoc: "fb-oKJ3yG-typeWithJsDoc" };
|
|
2573
2573
|
|
|
2574
2574
|
// src/addon-docs/blocks/components/ArgsTable/ArgRow.tsx
|
|
2575
2575
|
import { Fragment as Fragment10, jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
@@ -2659,7 +2659,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id15}
|
|
|
2659
2659
|
let style = document.createElement("style");
|
|
2660
2660
|
style.setAttribute("data-fb-css", id15), style.textContent = ".fb-IPbRpq-expanderIcon{width:12px;height:12px;color:rgb(from var(--fb-color-default-text) r g b / calc(alpha - .25));border:none;margin-top:-2px;margin-left:-10px;margin-right:8px;display:inline-block}:where([data-fb-theme=dark]) .fb-IPbRpq-expanderIcon{color:rgb(from var(--fb-color-default-text) r g b / calc(alpha - .3))}.fb-IPbRpq-flexWrapper{align-items:center;line-height:20px;display:flex}.fb-IPbRpq-section{letter-spacing:.35em;text-transform:uppercase;font-weight:var(--fb-weight-bold);font-size:calc(var(--fb-size-s1) - 1px);color:rgb(from var(--fb-color-default-text) r g b / calc(alpha - .4));position:relative;background:var(--fb-background-app)!important;&~td{background:var(--fb-background-app)!important}}:where([data-fb-theme=dark]) .fb-IPbRpq-section{color:rgb(from var(--fb-color-default-text) r g b / calc(alpha - .6))}.fb-IPbRpq-subsection{font-weight:var(--fb-weight-bold);font-size:calc(var(--fb-size-s2) - 1px);background:var(--fb-background-app);position:relative}.fb-IPbRpq-cell{position:relative}.fb-IPbRpq-row:hover>td{cursor:row-resize;background-color:hsl(from var(--fb-background-app) h s calc(l + .5))!important}.fb-IPbRpq-clickIntercept{font:inherit;color:#0000;background:0 0;border:none;width:100%;height:100%;padding:0;position:absolute;inset:0;cursor:row-resize!important}", document.head.appendChild(style);
|
|
2661
2661
|
}
|
|
2662
|
-
var SectionRow_default = {
|
|
2662
|
+
var SectionRow_default = { flexWrapper: "fb-IPbRpq-flexWrapper", cell: "fb-IPbRpq-cell", section: "fb-IPbRpq-section", row: "fb-IPbRpq-row", clickIntercept: "fb-IPbRpq-clickIntercept", subsection: "fb-IPbRpq-subsection", expanderIcon: "fb-IPbRpq-expanderIcon" };
|
|
2663
2663
|
|
|
2664
2664
|
// src/addon-docs/blocks/components/ArgsTable/SectionRow.tsx
|
|
2665
2665
|
import { Fragment as Fragment12, jsx as jsx26, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
@@ -2712,7 +2712,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id16}
|
|
|
2712
2712
|
let style = document.createElement("style");
|
|
2713
2713
|
style.setAttribute("data-fb-css", id16), style.textContent = ".fb-j2xz2a-tableWrapper{border-spacing:0;width:100%;color:var(--fb-color-default-text)}.fb-j2xz2a-row{border-bottom:1px solid var(--fb-app-border-color);display:flex;&:last-child{border-bottom:0}}.fb-j2xz2a-column{flex-direction:column;align-items:flex-start;gap:5px;padding:10px 15px;display:flex;&[data-position=first]{width:25%;padding-left:20px}&[data-position=second]{width:35%}&[data-position=third]{width:15%}&[data-position=last]{width:25%;padding-right:20px}}.fb-j2xz2a-skeletonText{background:var(--fb-app-border-color);border-radius:3px;width:100%;height:16px;animation:1.5s ease-in-out infinite fb-j2xz2a-glow}@keyframes fb-j2xz2a-glow{0%,to{opacity:1}50%{opacity:.4}}", document.head.appendChild(style);
|
|
2714
2714
|
}
|
|
2715
|
-
var Skeleton_default = {
|
|
2715
|
+
var Skeleton_default = { skeletonText: "fb-j2xz2a-skeletonText", tableWrapper: "fb-j2xz2a-tableWrapper", glow: "fb-j2xz2a-glow", row: "fb-j2xz2a-row", column: "fb-j2xz2a-column" };
|
|
2716
2716
|
|
|
2717
2717
|
// src/addon-docs/blocks/components/ArgsTable/Skeleton.tsx
|
|
2718
2718
|
import { jsx as jsx27, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
@@ -2758,7 +2758,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id17}
|
|
|
2758
2758
|
let style = document.createElement("style");
|
|
2759
2759
|
style.setAttribute("data-fb-css", id17), style.textContent = ".fb-sQsT7G-tableWrapper.fb-sQsT7G-tableWrapper{border-spacing:0;color:var(--fb-color-default-text);& td,& th{vertical-align:top;text-overflow:ellipsis;border:none;padding:0}font-size:calc(var(--fb-size-s2) - 1px);text-align:left;margin-top:25px;margin-bottom:40px;width:100%;margin-inline:1px;padding-inline:0;line-height:19px;& thead th:first-of-type,& td:first-of-type{width:25%}& th:first-of-type,& td:first-of-type{padding-left:20px}& th:last-of-type,& td:last-of-type{padding-right:20px}&:not([data-compact]){& th:nth-of-type(2),& td:nth-of-type(2){width:35%}& td:nth-of-type(3){width:15%}& th:last-of-type,& td:last-of-type{width:25%}}& th{color:var(--fb-text-muted-color);padding:10px 15px}& td{padding-top:10px;padding-bottom:10px;&:not(:first-of-type){padding-left:15px;padding-right:15px}&:last-of-type{padding-right:20px}}& tbody>tr>*{background:var(--fb-background-content);border-top:1px solid var(--fb-app-border-color)}&:not([data-in-addon-panel]) tbody{filter:drop-shadow(0 1px 3px #0000001a);&>tr:first-of-type>*{border-block-start:1px solid var(--fb-app-border-color)}&>tr:last-of-type>*{border-block-end:1px solid var(--fb-app-border-color)}&>tr>:first-of-type{border-inline-start:1px solid var(--fb-app-border-color)}&>tr>:last-of-type{border-inline-end:1px solid var(--fb-app-border-color)}&>tr:first-of-type>td:first-of-type{border-top-left-radius:var(--fb-app-border-radius)}&>tr:first-of-type>td:last-of-type{border-top-right-radius:var(--fb-app-border-radius)}&>tr:last-of-type>td:first-of-type{border-bottom-left-radius:var(--fb-app-border-radius)}&>tr:last-of-type>td:last-of-type{border-bottom-right-radius:var(--fb-app-border-radius)}}&[data-in-tab-panel]{margin-inline:0;padding-inline:3px}&[data-in-addon-panel]{margin-top:0;margin-bottom:0;margin-inline:0}}:where([data-fb-theme=dark]) .fb-sQsT7G-tableWrapper.fb-sQsT7G-tableWrapper:not([data-in-addon-panel]) tbody{filter:drop-shadow(0 1px 3px #0003)}.fb-sQsT7G-tablePositionWrapper{position:relative}.fb-sQsT7G-buttonPositionWrapper{position:absolute;top:10px;right:22px}.fb-sQsT7G-resetButton{margin:-4px -12px -4px 0}@media (forced-colors:active){.fb-sQsT7G-tableWrapper.fb-sQsT7G-tableWrapper tbody{filter:none!important;&>tr>*{border-color:canvastext!important}}}", document.head.appendChild(style);
|
|
2760
2760
|
}
|
|
2761
|
-
var ArgsTable_default = {
|
|
2761
|
+
var ArgsTable_default = { tablePositionWrapper: "fb-sQsT7G-tablePositionWrapper", buttonPositionWrapper: "fb-sQsT7G-buttonPositionWrapper", resetButton: "fb-sQsT7G-resetButton", tableWrapper: "fb-sQsT7G-tableWrapper" };
|
|
2762
2762
|
|
|
2763
2763
|
// src/addon-docs/blocks/components/ArgsTable/ArgsTable.tsx
|
|
2764
2764
|
import { jsx as jsx28, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// src/channels/base-path.ts
|
|
2
|
+
var DEFAULT_BASE_PATH = "/_forkbook", CHANNEL_PATH_SEGMENT = "/fb-channel";
|
|
3
|
+
function normalizeBasePath(basePath) {
|
|
4
|
+
if (basePath == null)
|
|
5
|
+
return DEFAULT_BASE_PATH;
|
|
6
|
+
let trimmed = basePath.trim().split(/[?#]/)[0].replace(/\/{2,}/g, "/").replace(/\/+$/, "");
|
|
7
|
+
return trimmed === "" ? "" : trimmed.startsWith("/") ? trimmed : `/${trimmed}`;
|
|
8
|
+
}
|
|
9
|
+
function joinBasePath(basePath, path = "") {
|
|
10
|
+
let base = normalizeBasePath(basePath), rest = path.replace(/^\/+/, "");
|
|
11
|
+
return rest ? `${base}/${rest}` : base || "/";
|
|
12
|
+
}
|
|
13
|
+
function stripBasePath(basePath, url) {
|
|
14
|
+
let base = normalizeBasePath(basePath);
|
|
15
|
+
if (!base)
|
|
16
|
+
return url.startsWith("/") ? url : `/${url}`;
|
|
17
|
+
if (!url.startsWith(base))
|
|
18
|
+
return;
|
|
19
|
+
let rest = url.slice(base.length);
|
|
20
|
+
if (rest === "")
|
|
21
|
+
return "/";
|
|
22
|
+
if (rest[0] === "/")
|
|
23
|
+
return rest;
|
|
24
|
+
if (rest[0] === "?" || rest[0] === "#")
|
|
25
|
+
return `/${rest}`;
|
|
26
|
+
}
|
|
27
|
+
function getChannelPath(basePath) {
|
|
28
|
+
return joinBasePath(basePath, CHANNEL_PATH_SEGMENT);
|
|
29
|
+
}
|
|
30
|
+
function getChannelUrl({ protocol, host, basePath, token, page }) {
|
|
31
|
+
let wsProtocol = protocol === "https:" || protocol === "wss:" ? "wss" : "ws", params = new URLSearchParams();
|
|
32
|
+
token !== void 0 && params.set("token", token), page !== void 0 && params.set("page", page);
|
|
33
|
+
let query = params.toString();
|
|
34
|
+
return `${wsProtocol}://${host}${getChannelPath(basePath)}${query ? `?${query}` : ""}`;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
DEFAULT_BASE_PATH,
|
|
39
|
+
CHANNEL_PATH_SEGMENT,
|
|
40
|
+
normalizeBasePath,
|
|
41
|
+
joinBasePath,
|
|
42
|
+
stripBasePath,
|
|
43
|
+
getChannelPath,
|
|
44
|
+
getChannelUrl
|
|
45
|
+
};
|
|
@@ -42,7 +42,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id2}"
|
|
|
42
42
|
let style = document.createElement("style");
|
|
43
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 = { sourceWrapper: "fb-I61SDG-sourceWrapper", skeletonPlaceholder: "fb-I61SDG-skeletonPlaceholder", prismjs: "fb-I61SDG-prismjs", glow: "fb-I61SDG-glow", snippetWarning: "fb-I61SDG-snippetWarning", syntaxHighlighter: "fb-I61SDG-syntaxHighlighter", skeletonWrapper: "fb-I61SDG-skeletonWrapper" };
|
|
46
46
|
|
|
47
47
|
// src/addon-docs/blocks/components/Source.tsx
|
|
48
48
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_of2djqq8j1 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_of2djqq8j1 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_of2djqq8j1 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_of2djqq8j1.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_of2djqq8j1.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_of2djqq8j1.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,10 +12,10 @@ var require = CJS_COMPAT_NODE_MODULE_mavmgxtxjxo.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
readRegistry,
|
|
14
14
|
selectInstances
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ATMBZKPG.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveStorybookConfigDir
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OQF3DZON.js";
|
|
19
19
|
import {
|
|
20
20
|
formatConnectionFailed,
|
|
21
21
|
formatInstallationMismatch,
|
|
@@ -23,47 +23,50 @@ import {
|
|
|
23
23
|
formatOldServer,
|
|
24
24
|
formatPortMismatch,
|
|
25
25
|
formatUnknownInstallation
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TMRHGLYF.js";
|
|
27
27
|
import {
|
|
28
28
|
AttachUnavailableError,
|
|
29
29
|
EnvironmentMismatchError,
|
|
30
30
|
ToolsRuntimeError,
|
|
31
31
|
projectPathsEqual
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-4EC6ZCAU.js";
|
|
33
33
|
import {
|
|
34
34
|
SERVER_CHANNEL_PATH,
|
|
35
35
|
WebsocketTransport
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-JV3BLGQU.js";
|
|
37
|
+
import "./chunk-CVS5RXU4.js";
|
|
38
38
|
import {
|
|
39
39
|
detectAgent
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-RTTAFZ52.js";
|
|
41
|
+
import "./chunk-4QLNIRBY.js";
|
|
42
42
|
import {
|
|
43
43
|
UniversalStore
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-CZXN5VUN.js";
|
|
45
|
+
import {
|
|
46
|
+
getChannelPath
|
|
47
|
+
} from "./chunk-F5JV3P2K.js";
|
|
45
48
|
import {
|
|
46
49
|
getRegisteredToolsets
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
+
} from "./chunk-J3LAZZTR.js";
|
|
51
|
+
import "./chunk-QIYPM5FW.js";
|
|
52
|
+
import "./chunk-WFGTVI33.js";
|
|
50
53
|
import {
|
|
51
54
|
Channel,
|
|
52
55
|
getChannel,
|
|
53
56
|
setChannel,
|
|
54
57
|
setDelegatedMode
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
58
|
+
} from "./chunk-CSKLM3SG.js";
|
|
59
|
+
import "./chunk-J4FHHY7S.js";
|
|
60
|
+
import "./chunk-WPGIUS6F.js";
|
|
61
|
+
import "./chunk-GXIROVYL.js";
|
|
62
|
+
import "./chunk-HTAHNPU2.js";
|
|
63
|
+
import "./chunk-YCES67AJ.js";
|
|
64
|
+
import "./chunk-OWAPLHBK.js";
|
|
62
65
|
import {
|
|
63
66
|
StorybookDevServerDisconnectedError
|
|
64
|
-
} from "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
+
} from "./chunk-43EE7M6B.js";
|
|
68
|
+
import "./chunk-VCDXUGKB.js";
|
|
69
|
+
import "./chunk-IPIEE34R.js";
|
|
67
70
|
|
|
68
71
|
// src/cli/tools/sdk/attached-runtime.ts
|
|
69
72
|
import { resolve } from "node:path";
|
|
@@ -99,7 +102,7 @@ function uninstallNodeChannel(channel) {
|
|
|
99
102
|
}
|
|
100
103
|
function createNodeChannel({ url, token }) {
|
|
101
104
|
let socketUrl = new URL(url);
|
|
102
|
-
socketUrl.protocol = socketUrl.protocol === "https:" ? "wss:" : "ws:", socketUrl.pathname = SERVER_CHANNEL_PATH, socketUrl.search = new URLSearchParams({ token }).toString();
|
|
105
|
+
socketUrl.protocol = socketUrl.protocol === "https:" ? "wss:" : "ws:", socketUrl.pathname = socketUrl.pathname === "/" || socketUrl.pathname === "" ? SERVER_CHANNEL_PATH : getChannelPath(socketUrl.pathname), socketUrl.search = new URLSearchParams({ token }).toString();
|
|
103
106
|
let rejectUnauthorized = !LOOPBACK_HOSTNAMES.has(socketUrl.hostname), socket = new WebSocket(socketUrl.href, { rejectUnauthorized }), connected = waitUntilOpen(socket);
|
|
104
107
|
connected.catch(() => {
|
|
105
108
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_of2djqq8j1 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_of2djqq8j1 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_of2djqq8j1 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_of2djqq8j1.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_of2djqq8j1.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_of2djqq8j1.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,33 +12,34 @@ var require = CJS_COMPAT_NODE_MODULE_mavmgxtxjxo.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
BROWSER_TARGETS,
|
|
14
14
|
NODE_TARGET
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VQSS7OII.js";
|
|
16
16
|
import {
|
|
17
17
|
getTemplatePath,
|
|
18
18
|
readTemplate,
|
|
19
19
|
renderHTML,
|
|
20
|
+
withRootPath,
|
|
20
21
|
withRouteDepth
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PNKI23DA.js";
|
|
22
23
|
import {
|
|
23
24
|
resolveRootPage
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-GADZYB7K.js";
|
|
25
26
|
import {
|
|
26
27
|
urlPathDepth
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-B77YYPPE.js";
|
|
28
29
|
import {
|
|
29
30
|
require_build
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-O432EICO.js";
|
|
31
32
|
import {
|
|
32
33
|
resolveModulePath,
|
|
33
34
|
resolvePackageDir
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-SI3EDPTV.js";
|
|
36
|
+
import "./chunk-TG4TFBAD.js";
|
|
36
37
|
import {
|
|
37
38
|
slash
|
|
38
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-66MT4R3I.js";
|
|
39
40
|
import {
|
|
40
41
|
__toESM
|
|
41
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-IPIEE34R.js";
|
|
42
43
|
|
|
43
44
|
// src/builder-manager/index.ts
|
|
44
45
|
import { cp, rm, writeFile as writeFile3 } from "node:fs/promises";
|
|
@@ -487,7 +488,9 @@ var exports_default = {
|
|
|
487
488
|
"within"
|
|
488
489
|
],
|
|
489
490
|
"@aussieljk/forkbook/internal/channels": [
|
|
491
|
+
"CHANNEL_PATH_SEGMENT",
|
|
490
492
|
"Channel",
|
|
493
|
+
"DEFAULT_BASE_PATH",
|
|
491
494
|
"HEARTBEAT_INTERVAL",
|
|
492
495
|
"PostMessageTransport",
|
|
493
496
|
"SERVER_CHANNEL_PATH",
|
|
@@ -497,10 +500,15 @@ var exports_default = {
|
|
|
497
500
|
"ensureChannel",
|
|
498
501
|
"fetchCurrentWsToken",
|
|
499
502
|
"getChannel",
|
|
503
|
+
"getChannelPath",
|
|
504
|
+
"getChannelUrl",
|
|
500
505
|
"installNoopChannel",
|
|
506
|
+
"joinBasePath",
|
|
507
|
+
"normalizeBasePath",
|
|
501
508
|
"parseWsToken",
|
|
502
509
|
"requireChannel",
|
|
503
|
-
"setChannel"
|
|
510
|
+
"setChannel",
|
|
511
|
+
"stripBasePath"
|
|
504
512
|
],
|
|
505
513
|
"@aussieljk/forkbook/internal/client-logger": ["deprecate", "logger", "once", "pretty"],
|
|
506
514
|
"@aussieljk/forkbook/internal/components": [
|
|
@@ -939,7 +947,10 @@ import {
|
|
|
939
947
|
} from "@aussieljk/forkbook/internal/types";
|
|
940
948
|
var buildFrameworkGlobalsFromOptions = async (options) => {
|
|
941
949
|
let globals = {}, { builder: builderConfig, channelOptions } = await options.presets.apply("core"), builderName = typeof builderConfig == "string" ? builderConfig : builderConfig?.name, builder2 = Object.values(SupportedBuilder).find((builder3) => builderName?.includes(builder3)), frameworkName = await getFrameworkName(options), frameworkPackageName = extractFrameworkPackageName(frameworkName), framework = frameworkPackages[frameworkPackageName], renderer = frameworkToRenderer[framework];
|
|
942
|
-
return options.configType === "DEVELOPMENT" && (globals.CHANNEL_OPTIONS = {
|
|
950
|
+
return options.configType === "DEVELOPMENT" && (globals.CHANNEL_OPTIONS = {
|
|
951
|
+
wsToken: channelOptions?.wsToken,
|
|
952
|
+
basePath: channelOptions?.basePath
|
|
953
|
+
}), globals.FORKBOOK_BUILDER = builder2, globals.FORKBOOK_FRAMEWORK = framework, globals.FORKBOOK_RENDERER = renderer, globals.FORKBOOK_NETWORK_ADDRESS = options.host ? options.networkAddress : void 0, (await options.presets.apply("security"))?.insecureIframeMessaging && (globals.INSECURE_IFRAME_MESSAGING = !0), globals.FORKBOOK_ROOT = resolveRootPage(await options.presets.apply("root"), {
|
|
943
954
|
configDir: options.configDir,
|
|
944
955
|
workingDir: process.cwd()
|
|
945
956
|
}), globals;
|
|
@@ -1062,7 +1073,14 @@ var CORE_DIR_ORIGIN = join4(resolvePackageDir("@aussieljk/forkbook"), "dist/mana
|
|
|
1062
1073
|
next();
|
|
1063
1074
|
return;
|
|
1064
1075
|
}
|
|
1065
|
-
res.statusCode = 200, res.setHeader("Content-Type", "text/html")
|
|
1076
|
+
res.statusCode = 200, res.setHeader("Content-Type", "text/html");
|
|
1077
|
+
let mountedAt = req.forkbookBasePath;
|
|
1078
|
+
res.write(
|
|
1079
|
+
withRootPath(
|
|
1080
|
+
withRouteDepth(html, pathname === "/index.html" ? 0 : urlPathDepth(pathname)),
|
|
1081
|
+
mountedAt ? `${mountedAt}/` : void 0
|
|
1082
|
+
)
|
|
1083
|
+
), res.end();
|
|
1066
1084
|
}), {
|
|
1067
1085
|
bail,
|
|
1068
1086
|
stats: {
|
|
@@ -1115,8 +1133,11 @@ var CORE_DIR_ORIGIN = join4(resolvePackageDir("@aussieljk/forkbook"), "dist/mana
|
|
|
1115
1133
|
tagsOptions,
|
|
1116
1134
|
options,
|
|
1117
1135
|
globals
|
|
1118
|
-
);
|
|
1119
|
-
return await Promise.all([
|
|
1136
|
+
), root = options.buildToPublic && options.basePath ? `${options.basePath}/` : void 0;
|
|
1137
|
+
return await Promise.all([
|
|
1138
|
+
writeFile3(join4(options.outputDir, "index.html"), withRootPath(html, root)),
|
|
1139
|
+
managerFiles
|
|
1140
|
+
]), logger.trace({ message: "Manager built", time: process.hrtime(startTime) }), {
|
|
1120
1141
|
toJson: () => ({})
|
|
1121
1142
|
};
|
|
1122
1143
|
}, bail = async () => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_of2djqq8j1 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_of2djqq8j1 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_of2djqq8j1 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_of2djqq8j1.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_of2djqq8j1.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_of2djqq8j1.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_of2djqq8j1 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_of2djqq8j1 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_of2djqq8j1 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_of2djqq8j1.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_of2djqq8j1.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_of2djqq8j1.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
Parser,
|
|
14
14
|
init_acorn,
|
|
15
15
|
require_acorn_jsx
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-X5SV7UIZ.js";
|
|
17
17
|
import {
|
|
18
18
|
__export,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IPIEE34R.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/mdast-util-to-string/lib/index.js
|
|
23
23
|
var emptyOptions = {};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_of2djqq8j1 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_of2djqq8j1 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_of2djqq8j1 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_of2djqq8j1.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_of2djqq8j1.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_of2djqq8j1.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
require_picocolors
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VCDXUGKB.js";
|
|
15
15
|
import {
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IPIEE34R.js";
|
|
18
18
|
|
|
19
19
|
// src/storybook-error.ts
|
|
20
20
|
function parseErrorCode({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_of2djqq8j1 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_of2djqq8j1 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_of2djqq8j1 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_of2djqq8j1.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_of2djqq8j1.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_of2djqq8j1.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
StorybookError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-43EE7M6B.js";
|
|
15
15
|
|
|
16
16
|
// src/cli/tools/instances/project-path.ts
|
|
17
17
|
import * as path from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_of2djqq8j1 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_of2djqq8j1 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_of2djqq8j1 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_of2djqq8j1.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_of2djqq8j1.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_of2djqq8j1.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_of2djqq8j1 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_of2djqq8j1 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_of2djqq8j1 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_of2djqq8j1.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_of2djqq8j1.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_of2djqq8j1.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_of2djqq8j1 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_of2djqq8j1 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_of2djqq8j1 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_of2djqq8j1.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_of2djqq8j1.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_of2djqq8j1.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|