@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
|
@@ -1,44 +1,49 @@
|
|
|
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
|
-
import {
|
|
13
|
-
require_dist
|
|
14
|
-
} from "../_node-chunks/chunk-Y2FHDZ2F.js";
|
|
15
|
-
import {
|
|
16
|
-
BananaSlug
|
|
17
|
-
} from "../_node-chunks/chunk-HBGFSTD5.js";
|
|
18
12
|
import {
|
|
19
13
|
fromMarkdown,
|
|
20
14
|
mdxFromMarkdown,
|
|
21
15
|
mdxjs
|
|
22
|
-
} from "../_node-chunks/chunk-
|
|
16
|
+
} from "../_node-chunks/chunk-3UTE6IWX.js";
|
|
17
|
+
import {
|
|
18
|
+
require_dist
|
|
19
|
+
} from "../_node-chunks/chunk-JV3BLGQU.js";
|
|
20
|
+
import {
|
|
21
|
+
BananaSlug
|
|
22
|
+
} from "../_node-chunks/chunk-ZGPTFIJY.js";
|
|
23
23
|
import {
|
|
24
24
|
withRouteDepth
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-PNKI23DA.js";
|
|
26
|
+
import {
|
|
27
|
+
createBasePathMount,
|
|
28
|
+
isForwardedForOrigin,
|
|
29
|
+
resolveBasePath
|
|
30
|
+
} from "../_node-chunks/chunk-GG4A54OB.js";
|
|
26
31
|
import {
|
|
27
32
|
debounce
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
33
|
+
} from "../_node-chunks/chunk-AP4REHEI.js";
|
|
29
34
|
import {
|
|
30
35
|
require_lib
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
36
|
+
} from "../_node-chunks/chunk-XG72Q4LL.js";
|
|
32
37
|
import {
|
|
33
38
|
Parser,
|
|
34
39
|
init_acorn,
|
|
35
40
|
require_acorn_jsx
|
|
36
|
-
} from "../_node-chunks/chunk-
|
|
41
|
+
} from "../_node-chunks/chunk-X5SV7UIZ.js";
|
|
37
42
|
import {
|
|
38
43
|
isTelemetryModuleEnabled,
|
|
39
44
|
telemetry,
|
|
40
45
|
withSpan
|
|
41
|
-
} from "../_node-chunks/chunk-
|
|
46
|
+
} from "../_node-chunks/chunk-HZPU25LI.js";
|
|
42
47
|
import {
|
|
43
48
|
getEffectiveToolAvailability,
|
|
44
49
|
getManifestStatus,
|
|
@@ -48,37 +53,37 @@ import {
|
|
|
48
53
|
isClaudePreviewLaunch,
|
|
49
54
|
isModuleGraphSupported,
|
|
50
55
|
resolveSkillInputs
|
|
51
|
-
} from "../_node-chunks/chunk-
|
|
56
|
+
} from "../_node-chunks/chunk-DUJAQGDD.js";
|
|
52
57
|
import {
|
|
53
58
|
CLAUDE_PREVIEW_AGENT_NAME
|
|
54
|
-
} from "../_node-chunks/chunk-
|
|
55
|
-
import "../_node-chunks/chunk-
|
|
56
|
-
import "../_node-chunks/chunk-
|
|
59
|
+
} from "../_node-chunks/chunk-CVS5RXU4.js";
|
|
60
|
+
import "../_node-chunks/chunk-XFUBYI3U.js";
|
|
61
|
+
import "../_node-chunks/chunk-QX47Z5FH.js";
|
|
57
62
|
import {
|
|
58
63
|
detectAgent
|
|
59
|
-
} from "../_node-chunks/chunk-
|
|
60
|
-
import "../_node-chunks/chunk-
|
|
61
|
-
import "../_node-chunks/chunk-
|
|
64
|
+
} from "../_node-chunks/chunk-RTTAFZ52.js";
|
|
65
|
+
import "../_node-chunks/chunk-4QLNIRBY.js";
|
|
66
|
+
import "../_node-chunks/chunk-BUBLGEJK.js";
|
|
62
67
|
import {
|
|
63
68
|
userOrAutoTitleFromSpecifier
|
|
64
|
-
} from "../_node-chunks/chunk-
|
|
65
|
-
import "../_node-chunks/chunk-
|
|
66
|
-
import "../_node-chunks/chunk-
|
|
67
|
-
import "../_node-chunks/chunk-
|
|
69
|
+
} from "../_node-chunks/chunk-ZCTTWMP3.js";
|
|
70
|
+
import "../_node-chunks/chunk-YPJFFP22.js";
|
|
71
|
+
import "../_node-chunks/chunk-ETOEMP6K.js";
|
|
72
|
+
import "../_node-chunks/chunk-LF6QBPS2.js";
|
|
68
73
|
import {
|
|
69
74
|
resolveImport,
|
|
70
75
|
supportedExtensions
|
|
71
|
-
} from "../_node-chunks/chunk-
|
|
72
|
-
import "../_node-chunks/chunk-
|
|
73
|
-
import "../_node-chunks/chunk-
|
|
76
|
+
} from "../_node-chunks/chunk-PLY7VOL7.js";
|
|
77
|
+
import "../_node-chunks/chunk-RBTE26TI.js";
|
|
78
|
+
import "../_node-chunks/chunk-7LMKJKAQ.js";
|
|
74
79
|
import {
|
|
75
80
|
require_src
|
|
76
|
-
} from "../_node-chunks/chunk-
|
|
77
|
-
import "../_node-chunks/chunk-
|
|
78
|
-
import "../_node-chunks/chunk-
|
|
81
|
+
} from "../_node-chunks/chunk-NL2NSBHC.js";
|
|
82
|
+
import "../_node-chunks/chunk-UDHDJDLE.js";
|
|
83
|
+
import "../_node-chunks/chunk-M6P773JM.js";
|
|
79
84
|
import {
|
|
80
85
|
logger
|
|
81
|
-
} from "../_node-chunks/chunk-
|
|
86
|
+
} from "../_node-chunks/chunk-KNYUZVVR.js";
|
|
82
87
|
import {
|
|
83
88
|
ChangeDetectionFailureError,
|
|
84
89
|
ChangeDetectionUnavailableError,
|
|
@@ -122,84 +127,88 @@ import {
|
|
|
122
127
|
useStatics,
|
|
123
128
|
withTelemetry,
|
|
124
129
|
writeManifests
|
|
125
|
-
} from "../_node-chunks/chunk-
|
|
130
|
+
} from "../_node-chunks/chunk-CHAPTCXW.js";
|
|
126
131
|
import {
|
|
127
132
|
UniversalStore
|
|
128
|
-
} from "../_node-chunks/chunk-
|
|
133
|
+
} from "../_node-chunks/chunk-CZXN5VUN.js";
|
|
129
134
|
import {
|
|
130
135
|
buildStoryPathMap,
|
|
131
136
|
urlPathDepth
|
|
132
|
-
} from "../_node-chunks/chunk-
|
|
137
|
+
} from "../_node-chunks/chunk-B77YYPPE.js";
|
|
133
138
|
import {
|
|
134
139
|
init_build,
|
|
135
140
|
parse
|
|
136
|
-
} from "../_node-chunks/chunk-
|
|
137
|
-
import
|
|
141
|
+
} from "../_node-chunks/chunk-O432EICO.js";
|
|
142
|
+
import {
|
|
143
|
+
joinBasePath,
|
|
144
|
+
normalizeBasePath
|
|
145
|
+
} from "../_node-chunks/chunk-F5JV3P2K.js";
|
|
146
|
+
import "../_node-chunks/chunk-QQNAFDRV.js";
|
|
138
147
|
import {
|
|
139
148
|
registerToolset
|
|
140
|
-
} from "../_node-chunks/chunk-
|
|
141
|
-
import "../_node-chunks/chunk-
|
|
142
|
-
import "../_node-chunks/chunk-
|
|
143
|
-
import "../_node-chunks/chunk-
|
|
149
|
+
} from "../_node-chunks/chunk-J3LAZZTR.js";
|
|
150
|
+
import "../_node-chunks/chunk-HOZK625X.js";
|
|
151
|
+
import "../_node-chunks/chunk-QIYPM5FW.js";
|
|
152
|
+
import "../_node-chunks/chunk-WFGTVI33.js";
|
|
144
153
|
import {
|
|
145
154
|
STORY_FILE_TEST_REGEXP,
|
|
146
155
|
getStoryImportPathFromEntry
|
|
147
|
-
} from "../_node-chunks/chunk-
|
|
156
|
+
} from "../_node-chunks/chunk-DMQHQOWT.js";
|
|
148
157
|
import {
|
|
149
158
|
getService,
|
|
150
159
|
registerService,
|
|
151
160
|
writeOpenServiceStaticFiles
|
|
152
|
-
} from "../_node-chunks/chunk-
|
|
161
|
+
} from "../_node-chunks/chunk-SFXUROK4.js";
|
|
153
162
|
import {
|
|
154
163
|
Channel,
|
|
155
164
|
describeService,
|
|
156
165
|
getRegisteredServices,
|
|
157
166
|
listServices
|
|
158
|
-
} from "../_node-chunks/chunk-
|
|
167
|
+
} from "../_node-chunks/chunk-CSKLM3SG.js";
|
|
159
168
|
import {
|
|
160
169
|
isEqual
|
|
161
|
-
} from "../_node-chunks/chunk-
|
|
162
|
-
import "../_node-chunks/chunk-
|
|
163
|
-
import "../_node-chunks/chunk-
|
|
164
|
-
import "../_node-chunks/chunk-
|
|
170
|
+
} from "../_node-chunks/chunk-J4FHHY7S.js";
|
|
171
|
+
import "../_node-chunks/chunk-WPGIUS6F.js";
|
|
172
|
+
import "../_node-chunks/chunk-GXIROVYL.js";
|
|
173
|
+
import "../_node-chunks/chunk-HTAHNPU2.js";
|
|
165
174
|
import {
|
|
166
175
|
Tag
|
|
167
|
-
} from "../_node-chunks/chunk-
|
|
168
|
-
import "../_node-chunks/chunk-
|
|
169
|
-
import "../_node-chunks/chunk-
|
|
176
|
+
} from "../_node-chunks/chunk-HKYFHGCD.js";
|
|
177
|
+
import "../_node-chunks/chunk-7QJLW3RJ.js";
|
|
178
|
+
import "../_node-chunks/chunk-YCES67AJ.js";
|
|
170
179
|
import {
|
|
171
180
|
up2 as up
|
|
172
|
-
} from "../_node-chunks/chunk-
|
|
181
|
+
} from "../_node-chunks/chunk-WRHG6PWE.js";
|
|
173
182
|
import {
|
|
174
183
|
invariant
|
|
175
|
-
} from "../_node-chunks/chunk-
|
|
184
|
+
} from "../_node-chunks/chunk-OWAPLHBK.js";
|
|
176
185
|
import {
|
|
177
186
|
resolvePackageDir,
|
|
178
187
|
safeResolveModule
|
|
179
|
-
} from "../_node-chunks/chunk-
|
|
180
|
-
import "../_node-chunks/chunk-
|
|
188
|
+
} from "../_node-chunks/chunk-SI3EDPTV.js";
|
|
189
|
+
import "../_node-chunks/chunk-TG4TFBAD.js";
|
|
181
190
|
import {
|
|
182
191
|
StorybookError
|
|
183
|
-
} from "../_node-chunks/chunk-
|
|
192
|
+
} from "../_node-chunks/chunk-43EE7M6B.js";
|
|
184
193
|
import {
|
|
185
194
|
require_picocolors
|
|
186
|
-
} from "../_node-chunks/chunk-
|
|
195
|
+
} from "../_node-chunks/chunk-VCDXUGKB.js";
|
|
187
196
|
import {
|
|
188
197
|
storyIndexPathToAbsolutePath
|
|
189
|
-
} from "../_node-chunks/chunk-
|
|
190
|
-
import "../_node-chunks/chunk-
|
|
198
|
+
} from "../_node-chunks/chunk-L6UNXQVV.js";
|
|
199
|
+
import "../_node-chunks/chunk-4XHQ65LH.js";
|
|
191
200
|
import {
|
|
192
201
|
slash
|
|
193
|
-
} from "../_node-chunks/chunk-
|
|
202
|
+
} from "../_node-chunks/chunk-66MT4R3I.js";
|
|
194
203
|
import {
|
|
195
204
|
glob
|
|
196
|
-
} from "../_node-chunks/chunk-
|
|
197
|
-
import "../_node-chunks/chunk-
|
|
205
|
+
} from "../_node-chunks/chunk-R3ICZFLN.js";
|
|
206
|
+
import "../_node-chunks/chunk-GC5GNEU6.js";
|
|
198
207
|
import {
|
|
199
208
|
__commonJS,
|
|
200
209
|
__require,
|
|
201
210
|
__toESM
|
|
202
|
-
} from "../_node-chunks/chunk-
|
|
211
|
+
} from "../_node-chunks/chunk-IPIEE34R.js";
|
|
203
212
|
|
|
204
213
|
// ../../node_modules/@discoveryjs/json-ext/package.json
|
|
205
214
|
var require_package = __commonJS({
|
|
@@ -1538,7 +1547,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
1538
1547
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
1539
1548
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
1540
1549
|
basename(specifier.files)
|
|
1541
|
-
), { glob: glob2 } = await import("../_node-chunks/dist-
|
|
1550
|
+
), { glob: glob2 } = await import("../_node-chunks/dist-ZLGPDQAK.js");
|
|
1542
1551
|
(await glob2(slash(dirGlob), {
|
|
1543
1552
|
...commonGlobOptions(dirGlob),
|
|
1544
1553
|
expandDirectories: !1
|
|
@@ -1767,14 +1776,38 @@ function summarizeIndex(storyIndex) {
|
|
|
1767
1776
|
}
|
|
1768
1777
|
|
|
1769
1778
|
// src/core-server/build-static.ts
|
|
1779
|
+
var DEFAULT_STATIC_OUTPUT_DIR = "./forkbook-static";
|
|
1780
|
+
function resolveStaticOutputDir({
|
|
1781
|
+
outputDir,
|
|
1782
|
+
buildToPublic,
|
|
1783
|
+
basePath
|
|
1784
|
+
}) {
|
|
1785
|
+
if (outputDir)
|
|
1786
|
+
return outputDir;
|
|
1787
|
+
if (buildToPublic) {
|
|
1788
|
+
if (!basePath)
|
|
1789
|
+
throw new Error('buildToPublic needs a base path other than "/".');
|
|
1790
|
+
return join6("public", basePath);
|
|
1791
|
+
}
|
|
1792
|
+
return DEFAULT_STATIC_OUTPUT_DIR;
|
|
1793
|
+
}
|
|
1770
1794
|
async function buildStaticStandalone(options) {
|
|
1771
|
-
|
|
1795
|
+
options.configType = "PRODUCTION", options.configDir = resolve4(options.configDir);
|
|
1796
|
+
let config = await loadMainConfig(options), mainCore = typeof config.core == "object" ? config.core : void 0;
|
|
1797
|
+
options.basePath = resolveBasePath(options.basePath, mainCore?.basePath), options.buildToPublic = options.buildToPublic ?? mainCore?.buildToPublic ?? !1;
|
|
1798
|
+
let outputDir = resolveStaticOutputDir({
|
|
1799
|
+
outputDir: options.outputDir,
|
|
1800
|
+
buildToPublic: options.buildToPublic,
|
|
1801
|
+
basePath: options.basePath
|
|
1802
|
+
});
|
|
1803
|
+
if (outputDir === "")
|
|
1772
1804
|
throw new Error("Won't remove current directory. Check your outputDir!");
|
|
1773
|
-
|
|
1805
|
+
let outputDirPath = resolve4(outputDir);
|
|
1806
|
+
if (options.outputDir = outputDirPath, logger4.step(`Cleaning outputDir: ${import_picocolors3.default.cyan(relative4(process.cwd(), outputDirPath))}`), outputDirPath === "/")
|
|
1774
1807
|
throw new Error("Won't remove directory '/'. Check your outputDir!");
|
|
1775
|
-
await rm(
|
|
1776
|
-
}), await mkdir3(
|
|
1777
|
-
let
|
|
1808
|
+
await rm(outputDirPath, { recursive: !0, force: !0 }).catch(() => {
|
|
1809
|
+
}), await mkdir3(outputDirPath, { recursive: !0 });
|
|
1810
|
+
let { framework } = config, corePresets = [], frameworkName = typeof framework == "string" ? framework : framework?.name;
|
|
1778
1811
|
frameworkName ? corePresets.push(join6(frameworkName, "preset")) : logger4.warn(`you have not specified a framework in your ${options.configDir}/main.js`);
|
|
1779
1812
|
let commonPreset = join6(
|
|
1780
1813
|
resolvePackageDir("@aussieljk/forkbook"),
|
|
@@ -1821,22 +1854,20 @@ async function buildStaticStandalone(options) {
|
|
|
1821
1854
|
}, effects = [];
|
|
1822
1855
|
global2.FEATURES = features, await applyServicesPresetOnce(presets), options.previewOnly || await buildOrThrow(
|
|
1823
1856
|
async () => managerBuilder.build({ startTime: process.hrtime(), options: fullOptions })
|
|
1824
|
-
), staticDirs && effects.push(
|
|
1825
|
-
copyAllStaticFilesRelativeToMain(staticDirs, options.outputDir, options.configDir)
|
|
1826
|
-
);
|
|
1857
|
+
), staticDirs && effects.push(copyAllStaticFilesRelativeToMain(staticDirs, outputDirPath, options.configDir));
|
|
1827
1858
|
let coreServerPublicDir = join6(resolvePackageDir("@aussieljk/forkbook"), "assets/browser");
|
|
1828
|
-
effects.push(cp2(coreServerPublicDir,
|
|
1859
|
+
effects.push(cp2(coreServerPublicDir, outputDirPath, { recursive: !0, force: !0 }));
|
|
1829
1860
|
let hasRegisteredServices = getRegisteredServices().length > 0, shouldWriteManifests = features?.componentsManifest;
|
|
1830
1861
|
(hasRegisteredServices || shouldWriteManifests) && effects.push(
|
|
1831
1862
|
(async () => {
|
|
1832
|
-
hasRegisteredServices && (logger4.info("Building open services.."), await writeOpenServiceStaticFiles(
|
|
1863
|
+
hasRegisteredServices && (logger4.info("Building open services.."), await writeOpenServiceStaticFiles(outputDirPath)), shouldWriteManifests && await writeManifests(outputDirPath, presets);
|
|
1833
1864
|
})()
|
|
1834
1865
|
);
|
|
1835
1866
|
let storyIndexGeneratorPromise = presets.apply("storyIndexGenerator");
|
|
1836
|
-
effects.push(writeIndexJson(join6(
|
|
1867
|
+
effects.push(writeIndexJson(join6(outputDirPath, "index.json"), storyIndexGeneratorPromise)), options.previewOnly || effects.push(
|
|
1837
1868
|
(async () => {
|
|
1838
1869
|
let index = await (await storyIndexGeneratorPromise)?.getIndex();
|
|
1839
|
-
index && (await writeRoutePages(
|
|
1870
|
+
index && (await writeRoutePages(outputDirPath, index), await copyThumbnails(outputDirPath, index, process.cwd()));
|
|
1840
1871
|
})()
|
|
1841
1872
|
), options.debugWebpack && logConfig("Preview webpack config", await previewBuilder.getConfig(fullOptions)), logger4.info("Building preview..");
|
|
1842
1873
|
let startTime = process.hrtime();
|
|
@@ -1847,10 +1878,7 @@ async function buildStaticStandalone(options) {
|
|
|
1847
1878
|
}).then(async (previewStats) => {
|
|
1848
1879
|
logger4.trace({ message: "Preview built", time: process.hrtime(startTime) });
|
|
1849
1880
|
let statsOption = options.statsJson;
|
|
1850
|
-
|
|
1851
|
-
let target = statsOption === !0 ? options.outputDir : statsOption;
|
|
1852
|
-
await outputStats(target, previewStats || void 0);
|
|
1853
|
-
}
|
|
1881
|
+
statsOption && await outputStats(statsOption === !0 ? outputDirPath : statsOption, previewStats || void 0);
|
|
1854
1882
|
}).catch((error) => {
|
|
1855
1883
|
throw logger4.error("Failed to build the preview"), process.exitCode = 1, error;
|
|
1856
1884
|
}),
|
|
@@ -1862,7 +1890,7 @@ async function buildStaticStandalone(options) {
|
|
|
1862
1890
|
} catch (e) {
|
|
1863
1891
|
logger4.debug?.(`Build telemetry failed: ${e instanceof Error ? e.message : String(e)}`);
|
|
1864
1892
|
}
|
|
1865
|
-
logger4.step(`Output directory: ${
|
|
1893
|
+
logger4.step(`Output directory: ${outputDirPath}`);
|
|
1866
1894
|
}
|
|
1867
1895
|
|
|
1868
1896
|
// src/core-server/build-dev.ts
|
|
@@ -1958,7 +1986,7 @@ function build_default({ threshold = 1024, level = -1, brotli = !1, gzip = !0, m
|
|
|
1958
1986
|
|
|
1959
1987
|
// ../../node_modules/polka/build.mjs
|
|
1960
1988
|
import http from "node:http";
|
|
1961
|
-
import { setImmediate } from "node:timers";
|
|
1989
|
+
import { setImmediate as setImmediate2 } from "node:timers";
|
|
1962
1990
|
|
|
1963
1991
|
// ../../node_modules/regexparam/dist/index.mjs
|
|
1964
1992
|
function parse3(input, loose) {
|
|
@@ -2021,7 +2049,7 @@ function onError(err, req, res) {
|
|
|
2021
2049
|
}
|
|
2022
2050
|
var mount = (fn) => fn instanceof Polka ? fn.attach : fn, Polka = class _Polka extends Trouter {
|
|
2023
2051
|
constructor(opts = {}) {
|
|
2024
|
-
super(), this.parse = parse, this.server = opts.server, this.handler = this.handler.bind(this), this.onError = opts.onError || onError, this.onNoMatch = opts.onNoMatch || this.onError.bind(null, { status: 404 }), this.attach = (req, res) =>
|
|
2052
|
+
super(), this.parse = parse, this.server = opts.server, this.handler = this.handler.bind(this), this.onError = opts.onError || onError, this.onNoMatch = opts.onNoMatch || this.onError.bind(null, { status: 404 }), this.attach = (req, res) => setImmediate2(this.handler, req, res);
|
|
2025
2053
|
}
|
|
2026
2054
|
use(base, ...fns) {
|
|
2027
2055
|
return base === "/" ? super.use(base, fns.map(mount)) : typeof base == "function" || base instanceof _Polka ? super.use("/", [base, ...fns].map(mount)) : super.use(
|
|
@@ -2764,7 +2792,11 @@ Note: BROWSER environment variable is set to "${browserEnv}". To disable browser
|
|
|
2764
2792
|
var import_detect_port = __toESM(require_detect_port2(), 1);
|
|
2765
2793
|
import net3 from "node:net";
|
|
2766
2794
|
import os2 from "node:os";
|
|
2767
|
-
import {
|
|
2795
|
+
import {
|
|
2796
|
+
getChannelPath as getChannelPath2,
|
|
2797
|
+
joinBasePath as joinBasePath2,
|
|
2798
|
+
normalizeBasePath as normalizeBasePath2
|
|
2799
|
+
} from "@aussieljk/forkbook/internal/channels";
|
|
2768
2800
|
import { logger as logger10 } from "@aussieljk/forkbook/internal/node-logger";
|
|
2769
2801
|
import { NoFreePortError } from "@aussieljk/forkbook/internal/server-errors";
|
|
2770
2802
|
var getListenHost = (host) => host || "127.0.0.1", COVERS_LOOPBACK = /* @__PURE__ */ new Set(["127.0.0.1", "0.0.0.0", "::"]), addLoopbackListener = async (server) => {
|
|
@@ -2783,13 +2815,13 @@ function getServerAddresses(port, host, proto, initialPath) {
|
|
|
2783
2815
|
networkAddress: withInitialPath(networkAddress.href, initialPath)
|
|
2784
2816
|
};
|
|
2785
2817
|
}
|
|
2786
|
-
function withInitialPath(address, initialPath) {
|
|
2787
|
-
if (!initialPath)
|
|
2818
|
+
function withInitialPath(address, initialPath, basePath) {
|
|
2819
|
+
if (!initialPath && !basePath)
|
|
2788
2820
|
return address;
|
|
2789
2821
|
let url = new URL(address);
|
|
2790
|
-
return url.pathname = decodeURIComponent(
|
|
2822
|
+
return initialPath && (url.pathname = decodeURIComponent(
|
|
2791
2823
|
initialPath.startsWith("/") ? initialPath : `/${initialPath}`
|
|
2792
|
-
).replace(/^\/(story|docs)\//, "/_$1/"), url.href;
|
|
2824
|
+
).replace(/^\/(story|docs)\//, "/_$1/")), basePath && (url.pathname = joinBasePath2(basePath, url.pathname)), url.href;
|
|
2793
2825
|
}
|
|
2794
2826
|
var getServerPort = (port, { exactPort } = {}) => (0, import_detect_port.default)(port).catch((error) => {
|
|
2795
2827
|
logger10.error(error), process.exit(-1);
|
|
@@ -2797,7 +2829,7 @@ var getServerPort = (port, { exactPort } = {}) => (0, import_detect_port.default
|
|
|
2797
2829
|
if (!freePort)
|
|
2798
2830
|
throw new NoFreePortError({ requestedPort: port });
|
|
2799
2831
|
return exactPort && port != null && freePort !== port && (logger10.error(`Port ${port} is not available. Exiting because --exact-port was provided.`), process.exit(-1)), freePort;
|
|
2800
|
-
}), getServerChannelUrl = (port, { https: https2 }) => `${https2 ? "wss" : "ws"}://127.0.0.1:${port}${
|
|
2832
|
+
}), getServerChannelUrl = (port, { https: https2, basePath }) => `${https2 ? "wss" : "ws"}://127.0.0.1:${port}${getChannelPath2(normalizeBasePath2(basePath))}`, getExternalIpv4Addresses = () => Object.values(os2.networkInterfaces()).flat().filter((ip) => ip && ip.family === "IPv4" && !ip.internal).map((ip) => ip.address), getLocalIp = () => getExternalIpv4Addresses()[0] ?? "0.0.0.0", getReachableNetworkAddresses = (networkAddress) => {
|
|
2801
2833
|
if (new URL(networkAddress).hostname !== "0.0.0.0")
|
|
2802
2834
|
return [networkAddress];
|
|
2803
2835
|
let addresses = getExternalIpv4Addresses().map((ip) => {
|
|
@@ -2809,7 +2841,11 @@ var getServerPort = (port, { exactPort } = {}) => (0, import_detect_port.default
|
|
|
2809
2841
|
|
|
2810
2842
|
// src/core-server/dev-server.ts
|
|
2811
2843
|
async function storybookDevServer(options, server) {
|
|
2812
|
-
let core = await options.presets.apply("core"), security = await options.presets.apply("security"), app = build_default2({ server }),
|
|
2844
|
+
let core = await options.presets.apply("core"), security = await options.presets.apply("security"), app = build_default2({ server }), basePath = normalizeBasePath(options.basePath), mountBasePath = createBasePathMount(basePath), handle = app.handler;
|
|
2845
|
+
app.attach = (req, res) => {
|
|
2846
|
+
mountBasePath(req, res) || setImmediate(handle, req, res);
|
|
2847
|
+
};
|
|
2848
|
+
let workingDir = process.cwd(), configDir = options.configDir, features = await options.presets.apply("features"), stories = await options.presets.apply("stories"), normalizedStories = normalizeStories(stories, {
|
|
2813
2849
|
configDir,
|
|
2814
2850
|
workingDir
|
|
2815
2851
|
});
|
|
@@ -2898,7 +2934,7 @@ async function storybookDevServer(options, server) {
|
|
|
2898
2934
|
if (indexGenerator && !options.ci && !options.smokeTest && options.open) {
|
|
2899
2935
|
let url = options.host && options.host !== "0.0.0.0" ? options.networkAddress : options.localAddress;
|
|
2900
2936
|
openInBrowser(
|
|
2901
|
-
options.previewOnly ? `${url
|
|
2937
|
+
options.previewOnly ? `${withInitialPath(url, "/iframe.html", basePath)}?navigator=true` : withInitialPath(url, options.initialPath, basePath)
|
|
2902
2938
|
).catch(() => {
|
|
2903
2939
|
});
|
|
2904
2940
|
}
|
|
@@ -2932,7 +2968,8 @@ var import_telejson2 = __toESM(require_dist(), 1);
|
|
|
2932
2968
|
import {
|
|
2933
2969
|
Channel as Channel3,
|
|
2934
2970
|
HEARTBEAT_INTERVAL as HEARTBEAT_INTERVAL2,
|
|
2935
|
-
|
|
2971
|
+
getChannelPath as getChannelPath3,
|
|
2972
|
+
normalizeBasePath as normalizeBasePath3,
|
|
2936
2973
|
setChannel as setChannel2
|
|
2937
2974
|
} from "@aussieljk/forkbook/internal/channels";
|
|
2938
2975
|
import { WebSocket, WebSocketServer } from "ws";
|
|
@@ -3031,14 +3068,16 @@ var ServerChannelTransport = class {
|
|
|
3031
3068
|
}), this.socket.close(() => process.exit(0));
|
|
3032
3069
|
};
|
|
3033
3070
|
this.rejectedEvents = /* @__PURE__ */ new Set();
|
|
3034
|
-
this.socket = new WebSocketServer({ noServer: !0 })
|
|
3071
|
+
this.socket = new WebSocketServer({ noServer: !0 });
|
|
3072
|
+
let channelPath = getChannelPath3(normalizeBasePath3(options.basePath));
|
|
3073
|
+
server.on("upgrade", (request, socket, head) => {
|
|
3035
3074
|
try {
|
|
3036
3075
|
let url = request.url && new URL(request.url, options.localAddress);
|
|
3037
|
-
if (!url || url.pathname !==
|
|
3076
|
+
if (!url || url.pathname !== channelPath)
|
|
3038
3077
|
return;
|
|
3039
3078
|
if (!options.skipValidation) {
|
|
3040
|
-
let { origin } = request.headers;
|
|
3041
|
-
if (
|
|
3079
|
+
let { origin } = request.headers, originHost = origin ? new URL(origin).host : void 0;
|
|
3080
|
+
if (originHost && !isValidHost(originHost, options) && !isForwardedForOrigin(request, originHost)) {
|
|
3042
3081
|
socket.end(`HTTP/1.1 403 Forbidden\r
|
|
3043
3082
|
Connection: close\r
|
|
3044
3083
|
\r
|
|
@@ -3560,8 +3599,13 @@ async function buildDevStandalone(options) {
|
|
|
3560
3599
|
options.host,
|
|
3561
3600
|
options.https ? "https" : "http"
|
|
3562
3601
|
), cacheOutputDir = resolvePathInStorybookCache2("public", cacheKey), outputDir = resolve7(options.outputDir || cacheOutputDir);
|
|
3563
|
-
options.smokeTest && (outputDir = cacheOutputDir), options.port = port, options.versionCheck = versionCheck, options.configType = "DEVELOPMENT", options.configDir = configDir, options.cacheKey = cacheKey, options.outputDir = outputDir, options.
|
|
3564
|
-
let config = await loadMainConfig2(options), { core, framework } = config
|
|
3602
|
+
options.smokeTest && (outputDir = cacheOutputDir), options.port = port, options.versionCheck = versionCheck, options.configType = "DEVELOPMENT", options.configDir = configDir, options.cacheKey = cacheKey, options.outputDir = outputDir, options.localAddress = localAddress, options.networkAddress = networkAddress;
|
|
3603
|
+
let config = await loadMainConfig2(options), { core, framework } = config;
|
|
3604
|
+
options.basePath = resolveBasePath(
|
|
3605
|
+
options.basePath,
|
|
3606
|
+
typeof core == "object" ? core.basePath : void 0
|
|
3607
|
+
), options.serverChannelUrl = getServerChannelUrl(port, options), watchParentProcess();
|
|
3608
|
+
let corePresets = [], frameworkName = typeof framework == "string" ? framework : framework?.name;
|
|
3565
3609
|
validateFrameworkName(frameworkName), frameworkName && corePresets.push(join10(frameworkName, "preset")), (config.addons ?? []).some(
|
|
3566
3610
|
(addon) => (typeof addon == "string" ? addon : addon.name).includes("addon-comments")
|
|
3567
3611
|
) || corePresets.push({
|
|
@@ -3614,7 +3658,8 @@ async function buildDevStandalone(options) {
|
|
|
3614
3658
|
allowedHosts,
|
|
3615
3659
|
skipValidation: isWebContainer(),
|
|
3616
3660
|
localAddress,
|
|
3617
|
-
networkAddress
|
|
3661
|
+
networkAddress,
|
|
3662
|
+
basePath: options.basePath
|
|
3618
3663
|
});
|
|
3619
3664
|
presets = await loadAllPresets2({
|
|
3620
3665
|
corePresets: [
|
|
@@ -3642,7 +3687,7 @@ async function buildDevStandalone(options) {
|
|
|
3642
3687
|
async () => storybookDevServer(fullOptions, server)
|
|
3643
3688
|
), mcp = getMcpMetadataFromMainConfig(config);
|
|
3644
3689
|
await writeStorybookRuntimeInstanceRecord({
|
|
3645
|
-
address: localAddress
|
|
3690
|
+
address: `${new URL(localAddress).origin}${joinBasePath(options.basePath)}`,
|
|
3646
3691
|
configDir: options.configDir,
|
|
3647
3692
|
mcp,
|
|
3648
3693
|
port,
|
|
@@ -3676,9 +3721,9 @@ async function buildDevStandalone(options) {
|
|
|
3676
3721
|
updateInfo: versionCheck,
|
|
3677
3722
|
version: storybookVersion,
|
|
3678
3723
|
name,
|
|
3679
|
-
address: withInitialPath(localAddress, options.initialPath),
|
|
3724
|
+
address: withInitialPath(localAddress, options.initialPath, options.basePath),
|
|
3680
3725
|
host: options.host,
|
|
3681
|
-
networkAddress: withInitialPath(networkAddress, options.initialPath),
|
|
3726
|
+
networkAddress: withInitialPath(networkAddress, options.initialPath, options.basePath),
|
|
3682
3727
|
allowedHosts,
|
|
3683
3728
|
managerTotalTime,
|
|
3684
3729
|
previewTotalTime
|
|
@@ -3686,6 +3731,18 @@ async function buildDevStandalone(options) {
|
|
|
3686
3731
|
}
|
|
3687
3732
|
return { port, address: localAddress, networkAddress };
|
|
3688
3733
|
}
|
|
3734
|
+
function watchParentProcess() {
|
|
3735
|
+
let parentPid = Number(process.env.FORKBOOK_PARENT_PID);
|
|
3736
|
+
if (!Number.isInteger(parentPid) || parentPid <= 0)
|
|
3737
|
+
return;
|
|
3738
|
+
globalThis.setInterval(() => {
|
|
3739
|
+
try {
|
|
3740
|
+
process.kill(parentPid, 0);
|
|
3741
|
+
} catch {
|
|
3742
|
+
process.exit(0);
|
|
3743
|
+
}
|
|
3744
|
+
}, 2e3).unref?.();
|
|
3745
|
+
}
|
|
3689
3746
|
|
|
3690
3747
|
// src/core-server/build-index.ts
|
|
3691
3748
|
import { writeFile as writeFile4 } from "node:fs/promises";
|
|
@@ -4081,7 +4138,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
4081
4138
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
4082
4139
|
if (cached)
|
|
4083
4140
|
return cached;
|
|
4084
|
-
let pathToSubIndex = {}, globCwd = slash(resolve9(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { glob: glob2 } = await import("../_node-chunks/dist-
|
|
4141
|
+
let pathToSubIndex = {}, globCwd = slash(resolve9(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { glob: glob2 } = await import("../_node-chunks/dist-ZLGPDQAK.js"), files = await glob2(globPattern, {
|
|
4085
4142
|
absolute: !0,
|
|
4086
4143
|
expandDirectories: !1,
|
|
4087
4144
|
cwd: globCwd,
|
|
@@ -5155,6 +5212,7 @@ export {
|
|
|
5155
5212
|
ChangeDetectionFailureError,
|
|
5156
5213
|
ChangeDetectionService,
|
|
5157
5214
|
ChangeDetectionUnavailableError,
|
|
5215
|
+
DEFAULT_STATIC_OUTPUT_DIR,
|
|
5158
5216
|
MDX_SERVICE_ID,
|
|
5159
5217
|
StoryIndexGenerator,
|
|
5160
5218
|
Tag,
|
|
@@ -5215,6 +5273,7 @@ export {
|
|
|
5215
5273
|
registerToolset,
|
|
5216
5274
|
resolveChangeDetectionAdapter,
|
|
5217
5275
|
resolveSkillInputs,
|
|
5276
|
+
resolveStaticOutputDir,
|
|
5218
5277
|
reviewToolset,
|
|
5219
5278
|
runStoryTests,
|
|
5220
5279
|
sendTelemetryError,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "../../_browser-chunks/chunk-MLBOOZL4.js";
|
|
11
11
|
import {
|
|
12
12
|
ArgsTable
|
|
13
|
-
} from "../../_browser-chunks/chunk-
|
|
13
|
+
} from "../../_browser-chunks/chunk-5X5VDKPT.js";
|
|
14
14
|
import "../../_browser-chunks/chunk-PJSMZ27A.js";
|
|
15
15
|
import "../../_browser-chunks/chunk-2WZWS7GJ.js";
|
|
16
16
|
import "../../_browser-chunks/chunk-OZZPSYQR.js";
|
|
@@ -251,7 +251,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]
|
|
|
251
251
|
let style = document.createElement("style");
|
|
252
252
|
style.setAttribute("data-fb-css", id), style.textContent = ".fb-zEgyLq-container{z-index:1;width:100%;height:41px;position:absolute;bottom:0;overflow:hidden;container-type:size}.fb-zEgyLq-bar{--highlight-bg-color:#e0f0ff;background:var(--fb-background-bar);border-top:1px solid var(--fb-app-border-color);font-size:var(--fb-size-s2);padding-inline:4px;animation:.3s fb-zEgyLq-slideIn,2s fb-zEgyLq-highlight;@container (width<=799px){flex-direction:row;justify-content:flex-end}}:where([data-fb-theme=dark]) .fb-zEgyLq-bar{--highlight-bg-color:#153b5b}.fb-zEgyLq-info{flex:99 0 auto;align-items:center;gap:6px;margin-inline:7px 10px;display:flex}.fb-zEgyLq-actions{color:var(--fb-text-muted-color);font-size:var(--fb-size-s2);flex:1 0 0;align-items:center;gap:2px;display:flex}.fb-zEgyLq-label{@container (width<=799px){text-indent:-9999px;line-height:0;&:after{content:attr(data-short-label);line-height:initial;text-indent:0;display:block}}}.fb-zEgyLq-modalInput{&::placeholder{color:var(--fb-color-mediumdark)}&:invalid:not(:placeholder-shown){box-shadow:var(--fb-color-negative) 0 0 0 1px inset}}@keyframes fb-zEgyLq-slideIn{0%{transform:translateY(40px)}to{transform:translateY(0)}}@keyframes fb-zEgyLq-highlight{0%{background:var(--highlight-bg-color)}}", document.head.appendChild(style);
|
|
253
253
|
}
|
|
254
|
-
var SaveStory_default = { label: "fb-zEgyLq-label",
|
|
254
|
+
var SaveStory_default = { label: "fb-zEgyLq-label", modalInput: "fb-zEgyLq-modalInput", highlight: "fb-zEgyLq-highlight", info: "fb-zEgyLq-info", container: "fb-zEgyLq-container", actions: "fb-zEgyLq-actions", slideIn: "fb-zEgyLq-slideIn", bar: "fb-zEgyLq-bar" };
|
|
255
255
|
|
|
256
256
|
// src/controls/components/SaveStory.tsx
|
|
257
257
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1504,7 +1504,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id3}"
|
|
|
1504
1504
|
let style = document.createElement("style");
|
|
1505
1505
|
style.setAttribute("data-fb-css", id3), style.textContent = ".fb-IaeYrG-wrapper{margin:0;padding:10px 5px 20px}.fb-IaeYrG-action{white-space:pre;border-bottom:1px solid #0000;border-left:5px solid #0000;align-items:flex-start;padding:0;transition:all .1s;display:flex}.fb-IaeYrG-counter{background-color:rgb(from var(--fb-app-border-color) r g b / calc(alpha + .5));color:var(--fb-color-inverse-text);font-size:var(--fb-size-s1);font-weight:var(--fb-weight-bold);border-radius:20px;margin:2px 0;padding:1px 5px;line-height:1}.fb-IaeYrG-inspectorContainer{flex:1;padding:0 0 0 5px}", document.head.appendChild(style);
|
|
1506
1506
|
}
|
|
1507
|
-
var ActionLogger_default = { action: "fb-IaeYrG-action",
|
|
1507
|
+
var ActionLogger_default = { action: "fb-IaeYrG-action", counter: "fb-IaeYrG-counter", inspectorContainer: "fb-IaeYrG-inspectorContainer", wrapper: "fb-IaeYrG-wrapper" };
|
|
1508
1508
|
|
|
1509
1509
|
// src/actions/components/ActionLogger/index.tsx
|
|
1510
1510
|
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
@@ -2052,7 +2052,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id6}"
|
|
|
2052
2052
|
let style = document.createElement("style");
|
|
2053
2053
|
style.setAttribute("data-fb-css", id6), style.textContent = ".fb-cs81pG-expected{color:var(--fb-color-positive-text)}.fb-cs81pG-received{color:var(--fb-color-negative-text)}:where([data-fb-theme=dark]){& .fb-cs81pG-expected{color:var(--fb-color-positive)}& .fb-cs81pG-received{color:var(--fb-color-negative)}}", document.head.appendChild(style);
|
|
2054
2054
|
}
|
|
2055
|
-
var MatcherResult_default = {
|
|
2055
|
+
var MatcherResult_default = { expected: "fb-cs81pG-expected", received: "fb-cs81pG-received" };
|
|
2056
2056
|
|
|
2057
2057
|
// src/component-testing/components/MatcherResult.tsx
|
|
2058
2058
|
import { Fragment as Fragment7, jsx as jsx12 } from "react/jsx-runtime";
|
|
@@ -2185,7 +2185,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id7}"
|
|
|
2185
2185
|
let style = document.createElement("style");
|
|
2186
2186
|
style.setAttribute("data-fb-css", id7), style.textContent = '.fb-PYwdvq-methodCall{font-family:var(--fb-font-mono);font-size:var(--fb-size-s1);overflow-wrap:break-word;inline-size:calc(100% - 40px)}.fb-PYwdvq-row{border-bottom:1px solid var(--fb-app-border-color);font-family:var(--fb-font-base);flex-direction:column;font-size:13px;list-style:none;display:flex;position:relative;&[data-status=error]{background-color:var(--fb-background-warning)}&[data-paused]:before{content:"";z-index:1;border-top:4.5px solid #0000;border-left:7px solid var(--fb-color-warning);border-bottom:4.5px solid #0000;position:absolute;top:-5px}&[data-paused]:after{content:"";z-index:1;border-top:1.5px solid var(--fb-color-warning);width:100%;position:absolute;top:-1px}}:where([data-fb-theme=dark]) .fb-PYwdvq-row[data-status=error]{background-color:rgb(from var(--fb-color-negative) r g b / calc(alpha - .93))}.fb-PYwdvq-rowHeader{display:flex;&:not([data-navigation-disabled]):hover{background:var(--fb-background-hoverable)}}.fb-PYwdvq-rowLabel{text-align:start;cursor:pointer;background:0 0;border:0;flex:1;grid-template-columns:15px 1fr;align-items:center;min-height:40px;margin:0;padding:8px 15px;display:grid;&:disabled,&[data-status=error]{cursor:default}&:focus-visible{box-shadow:inset 3px 0 0 0 var(--fb-color-secondary);background:var(--fb-background-hoverable);outline:0}&[data-status=error]:focus-visible{box-shadow:inset 3px 0 0 0 var(--fb-color-warning);background:0 0}&[data-status=waiting]>div{opacity:.5}}.fb-PYwdvq-rowActions{align-items:center;padding:6px;display:flex}.fb-PYwdvq-button{color:var(--fb-text-muted-color);margin:0 3px}.fb-PYwdvq-rowMessage{font-size:var(--fb-size-s1);color:var(--fb-color-default-text);padding:8px 10px 8px 36px;& pre{margin:0;padding:0}}.fb-PYwdvq-errorName{color:#0271b6}.fb-PYwdvq-errorMessage{color:#444}.fb-PYwdvq-errorExplainer{color:var(--fb-color-negative-text);font-size:var(--fb-size-s2);text-wrap:balance;max-width:500px}:where([data-fb-theme=dark]){& .fb-PYwdvq-errorName{color:#5ec1ff}& .fb-PYwdvq-errorMessage{color:#eee}& .fb-PYwdvq-errorExplainer{color:var(--fb-color-negative)}}', document.head.appendChild(style);
|
|
2187
2187
|
}
|
|
2188
|
-
var Interaction_default = {
|
|
2188
|
+
var Interaction_default = { row: "fb-PYwdvq-row", rowHeader: "fb-PYwdvq-rowHeader", rowMessage: "fb-PYwdvq-rowMessage", errorName: "fb-PYwdvq-errorName", errorMessage: "fb-PYwdvq-errorMessage", methodCall: "fb-PYwdvq-methodCall", rowLabel: "fb-PYwdvq-rowLabel", rowActions: "fb-PYwdvq-rowActions", errorExplainer: "fb-PYwdvq-errorExplainer", button: "fb-PYwdvq-button" };
|
|
2189
2189
|
|
|
2190
2190
|
// src/component-testing/components/Interaction.tsx
|
|
2191
2191
|
import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
@@ -2420,7 +2420,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id10}
|
|
|
2420
2420
|
let style = document.createElement("style");
|
|
2421
2421
|
style.setAttribute("data-fb-css", id10), style.textContent = ".fb-W9rv1G-wrapper{box-shadow:var(--fb-app-border-color) 0 -1px 0 0 inset;background:var(--fb-background-app);z-index:1;position:sticky;top:0}.fb-W9rv1G-controlsGroup{flex:1;align-items:center;gap:6px;display:flex}.fb-W9rv1G-iconButton{color:var(--fb-text-muted-color)}.fb-W9rv1G-rewindButton{margin-inline-start:3px;}.fb-W9rv1G-jumpToEndButton{color:var(--fb-text-muted-color);border-radius:4px;margin-inline:3px;padding:6px;line-height:12px;&:not(:disabled):hover,&:not(:disabled):focus-visible{color:var(--fb-color-secondary)}}.fb-W9rv1G-openInEditorButton{color:var(--fb-color-secondary);font-weight:var(--fb-weight-bold);text-align:right;white-space:nowrap;justify-content:flex-end;font-size:13px;line-height:24px}.fb-W9rv1G-location{color:var(--fb-text-muted-color);cursor:default;font-weight:var(--fb-weight-regular);text-align:right;white-space:nowrap;justify-content:flex-end;margin:0;font-size:13px}", document.head.appendChild(style);
|
|
2422
2422
|
}
|
|
2423
|
-
var Toolbar_default = {
|
|
2423
|
+
var Toolbar_default = { location: "fb-W9rv1G-location", iconButton: "fb-W9rv1G-iconButton", wrapper: "fb-W9rv1G-wrapper", jumpToEndButton: "fb-W9rv1G-jumpToEndButton", rewindButton: "fb-W9rv1G-rewindButton fb-W9rv1G-iconButton", controlsGroup: "fb-W9rv1G-controlsGroup", openInEditorButton: "fb-W9rv1G-openInEditorButton" };
|
|
2424
2424
|
|
|
2425
2425
|
// src/component-testing/components/Toolbar.tsx
|
|
2426
2426
|
import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
@@ -2548,7 +2548,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id11}
|
|
|
2548
2548
|
let style = document.createElement("style");
|
|
2549
2549
|
style.setAttribute("data-fb-css", id11), style.textContent = ".fb-RpIDLa-container{background:var(--fb-background-content);height:100%}.fb-RpIDLa-section{position:relative}.fb-RpIDLa-heading{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-RpIDLa-list{margin:0;padding:0}.fb-RpIDLa-caughtException{border-bottom:1px solid var(--fb-app-border-color);background-color:var(--fb-background-warning);font-size:calc(var(--fb-size-s2) - 1px);padding:15px;line-height:19px}:where([data-fb-theme=dark]) .fb-RpIDLa-caughtException{background-color:rgb(from var(--fb-color-negative) r g b / calc(alpha - .93))}.fb-RpIDLa-caughtExceptionCode{font-size:calc(var(--fb-size-s1) - 1px);vertical-align:top;border:1px solid var(--fb-app-border-color);background:#0000000d;border-radius:3px;margin:0 1px;padding:3px;line-height:1}.fb-RpIDLa-caughtExceptionTitle{padding-bottom:4px;font-weight:700}.fb-RpIDLa-caughtExceptionDescription{margin:0;padding:0 0 20px}.fb-RpIDLa-caughtExceptionStack{font-size:calc(var(--fb-size-s1) - 1px);margin:0;padding:0;&:not(:last-child){padding-bottom:16px}}", document.head.appendChild(style);
|
|
2550
2550
|
}
|
|
2551
|
-
var InteractionsPanel_default = { section: "fb-RpIDLa-section",
|
|
2551
|
+
var InteractionsPanel_default = { section: "fb-RpIDLa-section", caughtExceptionTitle: "fb-RpIDLa-caughtExceptionTitle", heading: "fb-RpIDLa-heading", container: "fb-RpIDLa-container", caughtException: "fb-RpIDLa-caughtException", list: "fb-RpIDLa-list", caughtExceptionCode: "fb-RpIDLa-caughtExceptionCode", caughtExceptionDescription: "fb-RpIDLa-caughtExceptionDescription", caughtExceptionStack: "fb-RpIDLa-caughtExceptionStack" };
|
|
2552
2552
|
|
|
2553
2553
|
// src/component-testing/components/InteractionsPanel.tsx
|
|
2554
2554
|
import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
@@ -3214,7 +3214,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id12}
|
|
|
3214
3214
|
let style = document.createElement("style");
|
|
3215
3215
|
style.setAttribute("data-fb-css", id12), style.textContent = ".fb-bVlzdq-wrapper{height:28px;font-family:var(--fb-font-mono);font-size:calc(var(--fb-size-s1) - 1px);font-variant-numeric:tabular-nums;color:var(--fb-text-muted-color);white-space:nowrap;align-items:center;gap:1px;padding-inline:4px;display:inline-flex}.fb-bVlzdq-times{opacity:.7}.fb-bVlzdq-value,.fb-bVlzdq-input{height:22px;font:inherit;color:inherit;border-radius:4px;padding-inline:3px}.fb-bVlzdq-value{cursor:text;background:0 0;border:none;&:hover:not(:disabled),&:focus-visible{background:var(--fb-input-background)}&:disabled{cursor:default}}.fb-bVlzdq-input{min-width:0;color:var(--fb-input-color);text-align:center;background:var(--fb-input-background);box-shadow:var(--fb-input-border) 0 0 0 1px inset;appearance:textfield;border:none;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{appearance:none;margin:0}}", document.head.appendChild(style);
|
|
3216
3216
|
}
|
|
3217
|
-
var FrameSize_default = { value: "fb-bVlzdq-value",
|
|
3217
|
+
var FrameSize_default = { value: "fb-bVlzdq-value", times: "fb-bVlzdq-times", wrapper: "fb-bVlzdq-wrapper", input: "fb-bVlzdq-input" };
|
|
3218
3218
|
|
|
3219
3219
|
// src/viewport/components/FrameSize.tsx
|
|
3220
3220
|
import { jsx as jsx28, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
@@ -3514,7 +3514,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id13}
|
|
|
3514
3514
|
let style = document.createElement("style");
|
|
3515
3515
|
style.setAttribute("data-fb-css", id13), style.textContent = ".fb-vBOFLW-dimensions{font-family:var(--fb-font-mono);font-size:calc(var(--fb-size-s1) - 1px);font-weight:var(--fb-weight-regular);color:var(--fb-text-muted-color);gap:2px;margin-left:20px;display:flex}.fb-vBOFLW-segments{box-shadow:var(--fb-app-border-color) 0 0 0 1px inset;border-radius:4px;align-items:center;gap:1px;padding:1px;display:inline-flex}.fb-vBOFLW-segment:where([data-pressed]){background:rgb(from var(--fb-bar-selected-color) r g b / calc(alpha - .93));color:var(--fb-bar-selected-color)}", document.head.appendChild(style);
|
|
3516
3516
|
}
|
|
3517
|
-
var Tool_default = {
|
|
3517
|
+
var Tool_default = { segments: "fb-vBOFLW-segments", dimensions: "fb-vBOFLW-dimensions", segment: "fb-vBOFLW-segment" };
|
|
3518
3518
|
|
|
3519
3519
|
// src/viewport/components/ViewportSegments.tsx
|
|
3520
3520
|
import { Fragment as Fragment10, jsx as jsx30, jsxs as jsxs17 } from "react/jsx-runtime";
|