@aussieljk/forkbook 0.0.1-11 → 0.0.1-13
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/README.md +1 -1
- package/assets/create/rendererAssets/common/button.css +6 -6
- package/assets/create/rendererAssets/common/header.css +5 -5
- package/assets/create/rendererAssets/common/page.css +10 -10
- package/dist/_browser-chunks/{Color-QLZNXLSV.js → Color-2EUQ6NXV.js} +2 -2
- package/dist/_browser-chunks/{DocsRenderer-JXND3PVQ.js → DocsRenderer-DKXSW2OY.js} +2 -2
- package/dist/_browser-chunks/{WithTooltip-GNLRTZDF.js → WithTooltip-QCFTNB6P.js} +5 -4
- package/dist/_browser-chunks/{chunk-RBCHTR7C.js → chunk-2ELGJRFZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-6ELMKWKX.js → chunk-2WZWS7GJ.js} +1 -1
- package/dist/_browser-chunks/{chunk-FRAOQJDI.js → chunk-3QPZOXB7.js} +1 -5
- package/dist/_browser-chunks/{chunk-GRO2ZYEJ.js → chunk-4BOJAE7P.js} +12 -8
- package/dist/_browser-chunks/{chunk-ZHKZKFY4.js → chunk-6SL45YM3.js} +9 -13
- package/dist/_browser-chunks/{chunk-DS2WQZGO.js → chunk-BLCZ3C5M.js} +41 -62
- package/dist/_browser-chunks/{chunk-7DQREF4S.js → chunk-DHTLVXAL.js} +37 -44
- package/dist/_browser-chunks/{chunk-GNZY6LOW.js → chunk-DISGPOF4.js} +54 -51
- package/dist/_browser-chunks/{chunk-76222HQR.js → chunk-E6QKKKLO.js} +20 -5
- package/dist/_browser-chunks/{chunk-DYNTDJ3O.js → chunk-EBSOKHFG.js} +8 -2
- package/dist/_browser-chunks/{chunk-3M5T7BW4.js → chunk-ECMVTOVD.js} +1 -1
- package/dist/_browser-chunks/{chunk-EQKMUQF3.js → chunk-ENHFQXYS.js} +5 -4
- package/dist/_browser-chunks/{chunk-KYSD26D6.js → chunk-EW2M3URL.js} +90 -83
- package/dist/_browser-chunks/{chunk-I4ATZPNZ.js → chunk-FCULT3AE.js} +3 -3
- package/dist/_browser-chunks/{chunk-46Z7NGAS.js → chunk-HX443LKV.js} +1 -1
- package/dist/_browser-chunks/{chunk-NGMQJMCY.js → chunk-HZFHNYRC.js} +1 -1
- package/dist/_browser-chunks/{chunk-5H4KFI44.js → chunk-KQJ4T6JL.js} +30 -24
- package/dist/_browser-chunks/{chunk-RMYQ3QN3.js → chunk-NK5SGJNG.js} +22 -17
- package/dist/_browser-chunks/{chunk-N3NRW5XX.js → chunk-PQRPDA4U.js} +3 -3
- package/dist/_browser-chunks/{chunk-2JDQ35OA.js → chunk-PU7D2WDP.js} +0 -11
- package/dist/_browser-chunks/{chunk-5WMXI5GW.js → chunk-QFO2B4X2.js} +31 -28
- package/dist/_browser-chunks/{chunk-TTBPZQ24.js → chunk-S7N7Z5TY.js} +47 -43
- package/dist/_browser-chunks/{chunk-2JT76G3E.js → chunk-SBOQ4QPY.js} +15 -15
- package/dist/_browser-chunks/{chunk-WBLVFDJT.js → chunk-UH3XTEOQ.js} +716 -658
- package/dist/_browser-chunks/{chunk-5I7E4GMO.js → chunk-WY2LUGOH.js} +1 -1
- package/dist/_browser-chunks/{chunk-O24AZJZ7.js → chunk-YJO5BK52.js} +7 -3
- package/dist/_browser-chunks/{chunk-3HM3VWJS.js → chunk-ZF37BMDS.js} +6 -2
- package/dist/_browser-chunks/{chunk-QU4RB2WU.js → chunk-ZF5SPY56.js} +4 -4
- package/dist/_browser-chunks/{matchers-YLBYSYAF.js → matchers-2HVLNCVO.js} +4 -4
- package/dist/_browser-chunks/{react-dom-client-4OHE3QDV.js → react-dom-client-SLBUX3U3.js} +1 -1
- package/dist/_node-chunks/{attached-runtime-J2AKT5WI.js → attached-runtime-7IRDQUTZ.js} +28 -29
- package/dist/_node-chunks/{builder-manager-Z4RWF4ZH.js → builder-manager-YTALSWKQ.js} +39 -28
- package/dist/_node-chunks/{chunk-2WVLC5M2.js → chunk-26ERGIQH.js} +6 -6
- package/dist/_node-chunks/{chunk-VZG3OKFO.js → chunk-33T4HNF2.js} +6 -6
- package/dist/_node-chunks/{chunk-ZEYODVQT.js → chunk-3F3673RQ.js} +7 -7
- package/dist/_node-chunks/{chunk-Y4W4B3E7.js → chunk-3FLRYZLJ.js} +6 -6
- package/dist/_node-chunks/{chunk-AVL7GUOZ.js → chunk-3L2QRDKH.js} +522 -1045
- package/dist/_node-chunks/{chunk-XO54HM4P.js → chunk-3NH7IHUS.js} +6 -6
- package/dist/_node-chunks/{chunk-GMKLTDKN.js → chunk-3ZAENV5A.js} +6 -6
- package/dist/_node-chunks/{chunk-3IIQSDCO.js → chunk-4B52HLKK.js} +53 -55
- package/dist/_node-chunks/chunk-4CZJ4SFH.js +281 -0
- package/dist/_node-chunks/{chunk-BBU2FUPC.js → chunk-4IIWFG7O.js} +13 -11
- package/dist/_node-chunks/{chunk-2U5J7YTA.js → chunk-4YWZLOAF.js} +6 -6
- package/dist/_node-chunks/{chunk-XVOIYGTJ.js → chunk-5A5XOSRM.js} +6 -6
- package/dist/_node-chunks/chunk-5T6Q7HT3.js +11 -0
- package/dist/_node-chunks/{chunk-MI7WBXWX.js → chunk-6DRDJF2Q.js} +6 -6
- package/dist/_node-chunks/{chunk-WBCKO5LP.js → chunk-6JSZY5TJ.js} +6 -6
- package/dist/_node-chunks/{chunk-3EBGFRAH.js → chunk-7SPDKMDQ.js} +32 -40
- package/dist/_node-chunks/{chunk-IRPQQARO.js → chunk-7YLKDHLZ.js} +7 -7
- package/dist/_node-chunks/{chunk-BSQB5B57.js → chunk-7YQIVUEK.js} +6 -6
- package/dist/_node-chunks/{chunk-PYVGF5F2.js → chunk-ADCQYK3Z.js} +6 -6
- package/dist/_node-chunks/{chunk-7YQTID2W.js → chunk-ALHQVE5R.js} +6 -6
- package/dist/_node-chunks/{chunk-MW4OAPPD.js → chunk-B4XAZ2OC.js} +8 -8
- package/dist/_node-chunks/{chunk-GGCOG7OV.js → chunk-BFQJF3ID.js} +283 -306
- package/dist/_node-chunks/{chunk-5GOXN5M4.js → chunk-BSXI35KM.js} +7 -7
- package/dist/_node-chunks/{chunk-TAMTPVYZ.js → chunk-BZQF5KUE.js} +7 -7
- package/dist/_node-chunks/{chunk-5JLVSH44.js → chunk-CEIESR4U.js} +8 -8
- package/dist/_node-chunks/{chunk-OJWUUSA4.js → chunk-CESXIP3N.js} +6 -6
- package/dist/_node-chunks/{chunk-CEYSYQLV.js → chunk-DAEUTT3I.js} +6 -6
- package/dist/_node-chunks/{chunk-FB2BOL6I.js → chunk-DIC4T2UO.js} +6 -6
- package/dist/_node-chunks/{chunk-LKITAODU.js → chunk-DPOWAA4P.js} +37 -31
- package/dist/_node-chunks/{chunk-W3KFVTWV.js → chunk-DTNEHO4J.js} +10 -10
- package/dist/_node-chunks/{chunk-C5OFHB3N.js → chunk-DY7F7B6V.js} +7 -7
- package/dist/_node-chunks/{chunk-FUG5LYKS.js → chunk-E56UKDJR.js} +8 -8
- package/dist/_node-chunks/{chunk-A7GEBS3Q.js → chunk-EFX2VA4Q.js} +6 -6
- package/dist/_node-chunks/{chunk-PQTEFQIJ.js → chunk-EM6AYELK.js} +10 -12
- package/dist/_node-chunks/{chunk-32FLWHUC.js → chunk-F2AFT3P7.js} +497 -475
- package/dist/_node-chunks/{chunk-OXT6T4AS.js → chunk-GC7NA2Y7.js} +7 -7
- package/dist/_node-chunks/{chunk-55S3GGGC.js → chunk-GIKCT5KG.js} +7 -7
- package/dist/_node-chunks/{chunk-PXOD36TR.js → chunk-GLNHSUKT.js} +20 -20
- package/dist/_node-chunks/{chunk-BKND5XP2.js → chunk-GQZZQB4K.js} +7 -7
- package/dist/_node-chunks/{chunk-GTXZNA2L.js → chunk-GRN6WQC3.js} +10 -10
- package/dist/_node-chunks/{chunk-6UASHVMR.js → chunk-HCMHVV7N.js} +8 -8
- package/dist/_node-chunks/{chunk-IVAOJWPF.js → chunk-HJVZQS65.js} +7 -7
- package/dist/_node-chunks/{chunk-ER3X3AQ7.js → chunk-I26RGEVQ.js} +7 -7
- package/dist/_node-chunks/{chunk-LAIED5XU.js → chunk-I36FPWMO.js} +6 -6
- package/dist/_node-chunks/{chunk-W7HY3ELZ.js → chunk-IDPQ3CVN.js} +474 -479
- package/dist/_node-chunks/{chunk-36LPBTLF.js → chunk-JUVUVVHI.js} +6 -6
- package/dist/_node-chunks/{chunk-DGWKJQ6G.js → chunk-K6TEIAKH.js} +62 -7
- package/dist/_node-chunks/{chunk-7IOSIYW2.js → chunk-KEXQ3BON.js} +7 -7
- package/dist/_node-chunks/{chunk-NLNAIU4I.js → chunk-KUZSE7ZD.js} +9 -9
- package/dist/_node-chunks/chunk-LJ5JRR5Q.js +18 -0
- package/dist/_node-chunks/{chunk-YBG7HVP7.js → chunk-LMGI47HP.js} +8 -8
- package/dist/_node-chunks/{chunk-6E34W4UX.js → chunk-LPIPPSMS.js} +6 -6
- package/dist/_node-chunks/{chunk-XICRXTTE.js → chunk-LR4W5G37.js} +6 -6
- package/dist/_node-chunks/{chunk-VKRGTLQJ.js → chunk-M4MRBEJI.js} +27 -23
- package/dist/_node-chunks/{chunk-REIDJUVJ.js → chunk-M7BVABR2.js} +20 -16
- package/dist/_node-chunks/{chunk-XCJ2ZIQ4.js → chunk-MK2RPLWT.js} +7 -7
- package/dist/_node-chunks/{chunk-LHNHFYK3.js → chunk-MKSEM5C2.js} +6 -6
- package/dist/_node-chunks/{chunk-RNRGXAFV.js → chunk-MWQIBOUB.js} +6 -6
- package/dist/_node-chunks/{chunk-NFDQT7UW.js → chunk-NAXIA2JI.js} +320 -316
- package/dist/_node-chunks/{chunk-GYFR2JLS.js → chunk-NDVIMCIX.js} +7 -7
- package/dist/_node-chunks/{chunk-D5ADPGA4.js → chunk-NIOVXWQZ.js} +6 -6
- package/dist/_node-chunks/{chunk-54EHKXV7.js → chunk-NRP4FGRT.js} +15 -9
- package/dist/_node-chunks/{chunk-NIQSBBT2.js → chunk-NSNBFXVB.js} +7 -7
- package/dist/_node-chunks/{chunk-Z2ZTDQDY.js → chunk-NTUTJAD4.js} +8 -8
- package/dist/_node-chunks/{chunk-XH5CXH53.js → chunk-O46DZ2KC.js} +8 -8
- package/dist/_node-chunks/{chunk-S3NDLFYL.js → chunk-OH5M2YER.js} +7 -7
- package/dist/_node-chunks/{chunk-FTYDKQCO.js → chunk-OSIENBU6.js} +6 -6
- package/dist/_node-chunks/{chunk-76KKKLEE.js → chunk-OVJZBW54.js} +7 -7
- package/dist/_node-chunks/{chunk-WO4UEQI6.js → chunk-PGIDRLZ5.js} +22 -22
- package/dist/_node-chunks/{chunk-J3SM62J3.js → chunk-PJCSZR4T.js} +8 -8
- package/dist/_node-chunks/{chunk-OPT5A55S.js → chunk-PQXP5FZ2.js} +8 -8
- package/dist/_node-chunks/{chunk-5P4N734V.js → chunk-PU33WSBW.js} +34 -52
- package/dist/_node-chunks/{chunk-APPFF22V.js → chunk-PUBZLLNL.js} +7 -7
- package/dist/_node-chunks/{chunk-ALGQMFMN.js → chunk-QWZZX2HN.js} +6 -6
- package/dist/_node-chunks/{chunk-NLLM4MDK.js → chunk-RMUBUNBY.js} +6 -6
- package/dist/_node-chunks/{chunk-SJXLINHV.js → chunk-S33FEPQ3.js} +6 -6
- package/dist/_node-chunks/{chunk-FEC5PGJO.js → chunk-SHP6447T.js} +7 -7
- package/dist/_node-chunks/{chunk-MBIVTOJK.js → chunk-ST3KB36E.js} +6 -6
- package/dist/_node-chunks/{chunk-AKMPPLT5.js → chunk-SXX75O2D.js} +7 -7
- package/dist/_node-chunks/{chunk-6UAJLEIO.js → chunk-TQ5YAQ4Y.js} +6 -6
- package/dist/_node-chunks/{chunk-R7VDUSKY.js → chunk-TSJ3JCNN.js} +16 -10
- package/dist/_node-chunks/{chunk-TKMXEHM4.js → chunk-UYEX6LW6.js} +7 -7
- package/dist/_node-chunks/{chunk-46Y5H6X5.js → chunk-VJLLEKWR.js} +138 -116
- package/dist/_node-chunks/{chunk-IFAV3CER.js → chunk-WWJKLYU5.js} +10 -10
- package/dist/_node-chunks/{chunk-MXLHIEXC.js → chunk-XC7K4QEX.js} +6 -6
- package/dist/_node-chunks/{chunk-GO3YSBPE.js → chunk-Y64FM6U7.js} +8 -8
- package/dist/_node-chunks/{chunk-T6P2EJD2.js → chunk-YDM7NH4T.js} +6 -6
- package/dist/_node-chunks/{chunk-XSVOMORJ.js → chunk-ZHVOUP6D.js} +6 -6
- package/dist/_node-chunks/dist-CFCU4PZG.js +27 -0
- package/dist/_node-chunks/dist-PFMT5YJK.js +16 -0
- package/dist/_node-chunks/{local-runtime-YDAW5RJV.js → local-runtime-BKID5MBG.js} +19 -20
- package/dist/_node-chunks/{mdx-plugin-XLDET5LV.js → mdx-plugin-7BOUDCZB.js} +13 -13
- package/dist/_node-chunks/{monorepo-NWMAHGOM.js → monorepo-FRHSAJB7.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-4B6IZ7JD.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-7BHSAJP4.js} +11 -11
- package/dist/_node-chunks/optimized-tests-F5LCOTXH.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-PJC4PO6A.js → pattern-copy-play-6TGV6WS4.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-4RININ5C.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-4CWXZ35U.js → rehype-external-links-EE2HT4QP.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-QZ2PWSJH.js → rehype-slug-ZKRW2V6Z.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-ZQR4ER7L.js → relaxed-limits-6Q7VRQC5.js} +11 -11
- package/dist/_node-chunks/{run-U63AXEKZ.js → run-6Y3ZTASZ.js} +23 -21
- package/dist/_node-chunks/{run-BMXB2BW2.js → run-EBHIAT35.js} +18 -18
- package/dist/_node-chunks/{setup-NCUTUBNN.js → setup-6XIF77JT.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-4XHF7XPS.js → vitest.config.4.template-GMQNQ4UW.js} +7 -7
- package/dist/actions/decorator.js +16 -21
- package/dist/actions/index.d.ts +3 -3
- package/dist/actions/index.js +1 -1
- package/dist/addon-a11y/index.js +2 -2
- package/dist/addon-a11y/manager.js +11 -11
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.d.ts +8 -2
- package/dist/addon-a11y/preview.js +2 -2
- package/dist/addon-docs/blocks.d.ts +104 -85
- package/dist/addon-docs/blocks.js +30 -32
- package/dist/addon-docs/index.d.ts +2 -2
- package/dist/addon-docs/index.js +3 -3
- package/dist/addon-docs/manager.js +4 -4
- package/dist/addon-docs/preset.js +12 -12
- package/dist/addon-docs/preview.d.ts +3 -1
- package/dist/addon-docs/preview.js +1 -1
- package/dist/addon-links/index.d.ts +2 -1
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-mcp/preset.js +11 -11
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +16 -16
- package/dist/addon-ondevice-controls/index.js +1 -1
- package/dist/addon-ondevice-controls/register.js +1 -1
- package/dist/addon-pseudo-states/index.js +1 -1
- package/dist/addon-pseudo-states/preview.d.ts +1 -1
- package/dist/addon-pseudo-states/preview.js +1 -1
- package/dist/addon-themes/index.d.ts +6 -5
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +18 -9
- package/dist/addon-vitest/node/coverage-reporter.js +11 -11
- package/dist/addon-vitest/node/vitest.js +34 -34
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +21 -20
- package/dist/addon-vitest/vitest-plugin/global-setup.js +22 -22
- package/dist/addon-vitest/vitest-plugin/index.js +69 -59
- package/dist/babel/index.d.ts +209 -212
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +110 -89
- package/dist/bin/dispatcher.js +10 -10
- package/dist/bin/loader.js +8 -8
- package/dist/builder-vite/index.d.ts +1 -1
- package/dist/builder-vite/index.js +18 -18
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.d.ts +1 -1
- package/dist/channels/index.js +2 -2
- package/dist/{chunk-Dr3R0DXk.d.ts → chunk-B-NVyPqN.d.ts} +2 -2
- package/dist/{chunk-Fg1Fm__9.d.ts → chunk-BCG2ui5q.d.ts} +671 -674
- package/dist/{chunk-DoIGKY33.d.ts → chunk-BLZXEm1K.d.ts} +6 -8
- package/dist/{chunk-CYuvV2sR.d.ts → chunk-BNRZY6Jq.d.ts} +3 -3
- package/dist/{chunk-CNqjcOmK.d.ts → chunk-BV_hETtB.d.ts} +2 -2
- package/dist/chunk-BcYKnZln.d.ts +10 -0
- package/dist/{chunk-BCoJQE-f.d.ts → chunk-BtKww7r1.d.ts} +6 -4
- package/dist/{chunk-Bpi2tz-6.d.ts → chunk-Bubi-WAs.d.ts} +20 -17
- package/dist/{chunk-pcFXCimE.d.ts → chunk-CmV7WZzR.d.ts} +124 -2
- package/dist/{chunk-BGkgZp-H.d.ts → chunk-D3uSIa6H.d.ts} +9 -1
- package/dist/{chunk-DROZ9oel.d.ts → chunk-DNCU78oW.d.ts} +110 -9
- package/dist/{chunk-D0NUmzXp.d.ts → chunk-LWwxlbee.d.ts} +4 -4
- package/dist/{chunk-BXLImeLy.d.ts → chunk-u_gGuTrz.d.ts} +23 -8
- package/dist/cli/index.d.ts +3 -3
- package/dist/cli/index.js +25 -30
- package/dist/cli/skills/content/index.d.ts +1 -1
- 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 +3 -3
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.d.ts +20 -21
- package/dist/client-logger/index.js +2 -1
- package/dist/common/index.d.ts +13 -13
- package/dist/common/index.js +34 -35
- package/dist/components/index.d.ts +46 -35
- package/dist/components/index.js +194 -205
- package/dist/core-events/index.d.ts +2 -2
- package/dist/core-server/index.d.ts +15 -10
- package/dist/core-server/index.js +706 -165
- package/dist/core-server/presets/common-manager.js +254 -336
- package/dist/core-server/presets/common-override-preset.js +10 -10
- package/dist/core-server/presets/common-preset.js +83 -275
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/csf-utils.d.ts +1 -1
- package/dist/csf/index.d.ts +3 -3
- package/dist/csf/index.js +40 -43
- package/dist/csf-tools/index.d.ts +52 -44
- package/dist/csf-tools/index.js +13 -13
- package/dist/docs-tools/index.d.ts +332 -16
- package/dist/docs-tools/index.js +3 -3
- package/dist/instrumenter/index.d.ts +5 -5
- package/dist/instrumenter/index.js +25 -15
- package/dist/manager/_manager-chunks/{globals-runtime-DvV_TF3-.js → globals-runtime-B4NRbNSS.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-wjkxyMn0.js → globals-runtime-BC43T1rL.js} +4150 -50
- package/dist/manager/_manager-chunks/{globals-runtime-BSj0mCjE.js → globals-runtime-BgWmCsA7.js} +114 -110
- package/dist/manager/_manager-chunks/{globals-runtime-CA8AuIRT.js → globals-runtime-BnQ7i5wq.js} +232 -228
- package/dist/manager/_manager-chunks/globals-runtime-BtduS2C2.js +10601 -0
- package/dist/manager/_manager-chunks/globals-runtime-BzuYs3dZ.js +1971 -0
- package/dist/manager/_manager-chunks/{globals-runtime-C5gK7HhH.js → globals-runtime-C59T0h-j.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-CCTA-XPa.js → globals-runtime-CCZrdft6.js} +5 -4
- package/dist/manager/_manager-chunks/{globals-runtime-BY3epqww.js → globals-runtime-CS41oTca.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-Bu9eGDTe.js → globals-runtime-Cccwtspx.js} +288 -420
- package/dist/manager/_manager-chunks/globals-runtime-CoTrrHG3.js +1163 -0
- package/dist/manager/_manager-chunks/{globals-runtime-BweHuXkK.js → globals-runtime-DCmvKMN5.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-C92M_Vnq.js → globals-runtime-Ddp2jFET.js} +5 -5
- package/dist/manager/_manager-chunks/globals-runtime-DgO0hT2p.js +32 -0
- package/dist/manager/_manager-chunks/globals-runtime-Me9Bl-sx.js +156 -0
- package/dist/manager/_manager-chunks/{globals-runtime-CHjExYMv.js → globals-runtime-UFDJQlo-.js} +741 -540
- package/dist/manager/_manager-chunks/globals-runtime-nQMRiA0J.js +19 -0
- package/dist/manager/_manager-chunks/{globals-runtime-Bj5KDUJi.js → globals-runtime-oRjPg2jY.js} +1 -1
- package/dist/manager/_manager-chunks/runtime-4wMiTjjZ.js +552 -0
- package/dist/manager/_manager-chunks/{runtime--hR2NZFd.js → runtime-AvqHE9rM.js} +112 -109
- package/dist/manager/_manager-chunks/{runtime-EPerAEAs.js → runtime-CZtDJIYj.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-B6NL14pz.js → runtime-D8QxTQiI.js} +6 -6
- package/dist/manager/_manager-chunks/{runtime-BAsOe1C_.js → runtime-DC3oEVlM.js} +49 -49
- package/dist/manager/_manager-chunks/{runtime-CJQZFUUj.js → runtime-DCOIOn4T.js} +46 -56
- package/dist/manager/_manager-chunks/{runtime-DvB1axgp.js → runtime-D_FDSHFG.js} +13 -13
- package/dist/manager/_manager-chunks/{runtime-Dtbhxq5m.js → runtime-Db8fJ2MP.js} +67 -500
- package/dist/manager/_manager-chunks/{runtime-CgRqs_SK.js → runtime-lPbyY_f5.js} +882 -869
- package/dist/manager/_manager-chunks/{runtime-Dem2xJbS.js → runtime-td6oYfU6.js} +739 -554
- 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-api/index.js +479 -464
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +9 -9
- package/dist/mocking-utils/index.d.ts +5 -3
- package/dist/mocking-utils/index.js +21 -26
- package/dist/nextjs-vite/export-mocks/headers/index.js +3 -1
- package/dist/nextjs-vite/export-mocks/link/index.d.ts +4 -1
- package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +9 -1
- package/dist/nextjs-vite/export-mocks/router/index.js +13 -7
- package/dist/nextjs-vite/index.d.ts +2 -2
- package/dist/nextjs-vite/index.js +9 -5
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +12 -12
- package/dist/nextjs-vite/preview.d.ts +2 -1
- package/dist/nextjs-vite/preview.js +1 -1
- package/dist/nextjs-vite/vite-plugin/index.d.ts +2 -2
- package/dist/nextjs-vite/vite-plugin/index.js +9 -9
- package/dist/nextjs-vite-plugin/index.js +17 -27
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +10 -6
- package/dist/node-logger/index.d.ts +18 -18
- package/dist/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +14 -11
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-Bcv1hJky.js → runtime-BYRCSYBN.js} +4148 -48
- package/dist/preview/_chunks/{runtime-WapFVPAh.js → runtime-Bvh_rfnQ.js} +2 -37
- package/dist/preview/_chunks/{runtime-BZ4pNS3g.js → runtime-CdZ1yk7m.js} +3 -3
- package/dist/preview/_chunks/{runtime-BhSZ1Mwt.js → runtime-CsO4apr9.js} +38 -42
- package/dist/preview/_chunks/{runtime-BUnOhg9h.js → runtime-D2MPrqbU.js} +2 -2
- package/dist/preview/_chunks/{runtime-BPwAnlRx.js → runtime-DS0s7U3c.js} +1 -1
- package/dist/preview/_chunks/{runtime-BgPhfM5P.js → runtime-U1Ycy25F.js} +736 -428
- package/dist/preview/_chunks/{runtime-BJwGQok8.js → runtime-tyJLgv6h.js} +221 -60
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +3 -3
- package/dist/preview-api/index.js +8 -8
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -11
- package/dist/react/entry-preview-argtypes.js +1 -1
- package/dist/react/entry-preview-docs.js +1 -1
- package/dist/react/entry-preview.js +1 -1
- package/dist/react/index.d.ts +5 -7
- package/dist/react/index.js +5 -5
- package/dist/react/preset.js +13 -13
- package/dist/react/preview.js +4 -4
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/index.d.ts +37 -36
- package/dist/react-native/index.js +38 -38
- package/dist/react-native/metro/node.d.ts +1 -1
- package/dist/react-native/metro/node.js +10 -10
- package/dist/react-native/metro/withForkbook.d.ts +7 -7
- package/dist/react-native/metro/withForkbook.js +16 -16
- package/dist/react-native/preview.js +4 -1
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-native/stub.js +1 -1
- package/dist/react-native-ui/index.d.ts +8 -7
- package/dist/react-native-ui/index.js +1 -8
- package/dist/react-native-ui-common/index.d.ts +30 -9
- package/dist/react-native-ui-common/index.js +26 -31
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.d.ts +2 -2
- package/dist/router/index.js +4 -2
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +3 -3
- package/dist/shared/open-service/index.js +1 -1
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/shared/open-service/toolsets/docs/public.d.ts +7 -7
- package/dist/telemetry/index.d.ts +38 -274
- package/dist/telemetry/index.js +11 -66
- package/dist/test/index.d.ts +2 -2
- package/dist/test/index.js +139 -120
- package/dist/theming/create.d.ts +1 -1
- package/dist/theming/index.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +2 -2
- package/package.json +16 -16
- package/template/nextjs-vite/cli/js/Button.jsx +2 -2
- package/template/nextjs-vite/cli/js/Header.jsx +1 -1
- package/template/nextjs-vite/cli/js/Page.jsx +1 -1
- package/template/nextjs-vite/cli/ts/Button.tsx +2 -2
- package/template/nextjs-vite/cli/ts/Header.tsx +1 -1
- package/template/nextjs-vite/cli/ts/Page.tsx +1 -1
- package/template/react/cli/js/Button.jsx +2 -2
- package/template/react/cli/js/Header.jsx +1 -1
- package/template/react/cli/js/Page.jsx +1 -1
- package/template/react/cli/ts/Button.tsx +2 -2
- package/template/react/cli/ts/Header.tsx +1 -1
- package/template/react/cli/ts/Page.tsx +1 -1
- package/template/react-vite/cli/js/Button.jsx +2 -2
- package/template/react-vite/cli/js/Header.jsx +1 -1
- package/template/react-vite/cli/js/Page.jsx +1 -1
- package/template/react-vite/cli/ts/Button.tsx +2 -2
- package/template/react-vite/cli/ts/Header.tsx +1 -1
- package/template/react-vite/cli/ts/Page.tsx +1 -1
- package/dist/_node-chunks/chunk-2YNXKY72.js +0 -40
- package/dist/_node-chunks/chunk-3NST2GUZ.js +0 -33
- package/dist/_node-chunks/chunk-4D325SMT.js +0 -1359
- package/dist/_node-chunks/chunk-APXRPW7A.js +0 -11
- package/dist/_node-chunks/chunk-QHBQRPDP.js +0 -155
- package/dist/_node-chunks/chunk-SMBAR4G6.js +0 -18
- package/dist/_node-chunks/chunk-SRDKK3SG.js +0 -33
- package/dist/_node-chunks/chunk-V5IMPC3J.js +0 -33
- package/dist/_node-chunks/chunk-YIAUHGY2.js +0 -69
- package/dist/_node-chunks/dist-C5QIQD3G.js +0 -27
- package/dist/_node-chunks/dist-NBRPZCHX.js +0 -16
- package/dist/_node-chunks/optimized-tests-EIPJR7HA.js +0 -22
- package/dist/_node-chunks/postinstallAddon-EOAAURMG.js +0 -20
- package/dist/_node-chunks/session-id-HEW5JUNB.js +0 -23
- package/dist/chunk-BGhyFTJO.d.ts +0 -115
- package/dist/chunk-DaVb55-_.d.ts +0 -124
- package/dist/manager/_manager-chunks/globals-runtime-Bs75QQ_I.js +0 -9987
- package/dist/manager/_manager-chunks/globals-runtime-WZKaeKm9.js +0 -4091
- package/dist/manager/_manager-chunks/runtime-5o_11Jae.js +0 -78
- package/dist/preview/_chunks/runtime-BsMjBzuq.js +0 -53
- package/dist/preview/_chunks/runtime-C1jgT6tJ.js +0 -4091
- package/dist/preview/_chunks/runtime-CkOhMcXf.js +0 -387
|
@@ -1,39 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sfnpbdazcnb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sfnpbdazcnb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sfnpbdazcnb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sfnpbdazcnb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sfnpbdazcnb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sfnpbdazcnb.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-SHP6447T.js";
|
|
15
15
|
import {
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
|
|
19
|
-
// src/server-errors.ts
|
|
20
|
-
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
21
|
-
import { dedent } from "ts-dedent";
|
|
22
|
-
|
|
23
|
-
// src/shared/open-service/errors.ts
|
|
24
|
-
function formatIssuePath(path) {
|
|
25
|
-
return path?.length ? path.map((segment) => {
|
|
26
|
-
let key = typeof segment == "object" && segment !== null && "key" in segment ? segment.key : segment;
|
|
27
|
-
return typeof key == "number" ? `[${key}]` : `.${String(key)}`;
|
|
28
|
-
}).join("").replace(/^\./, "") : "";
|
|
29
|
-
}
|
|
30
|
-
function formatIssues(issues) {
|
|
31
|
-
return issues.map((issue) => {
|
|
32
|
-
let path = formatIssuePath(issue.path);
|
|
33
|
-
return path === "" ? issue.message : `${path}: ${issue.message}`;
|
|
34
|
-
}).join(`
|
|
35
|
-
`);
|
|
36
|
-
}
|
|
17
|
+
} from "./chunk-6JSZY5TJ.js";
|
|
37
18
|
|
|
38
19
|
// src/storybook-error.ts
|
|
39
20
|
function parseErrorCode({
|
|
@@ -110,15 +91,117 @@ More info: ${page}
|
|
|
110
91
|
}
|
|
111
92
|
};
|
|
112
93
|
|
|
113
|
-
// src/server
|
|
114
|
-
var Category = /* @__PURE__ */ ((Category2) => (Category2.CLI = "CLI", Category2.CLI_INIT = "CLI_INIT", Category2.CLI_ADD = "CLI_ADD", Category2.CODEMOD = "CODEMOD", Category2.CORE_SERVER = "CORE-SERVER", Category2.CSF_PLUGIN = "CSF-PLUGIN", Category2.CSF_TOOLS = "CSF-TOOLS", Category2.CORE_COMMON = "CORE-COMMON", Category2.NODE_LOGGER = "NODE-LOGGER", Category2.TELEMETRY = "TELEMETRY", Category2.BUILDER_MANAGER = "BUILDER-MANAGER", Category2.BUILDER_VITE = "BUILDER-VITE", Category2.SOURCE_LOADER = "SOURCE-LOADER", Category2.POSTINSTALL = "POSTINSTALL", Category2.DOCS_TOOLS = "DOCS-TOOLS", Category2.FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS", Category2.FRAMEWORK_REACT_VITE = "FRAMEWORK_REACT-VITE", Category2))(Category || {})
|
|
94
|
+
// src/errors/server/category.ts
|
|
95
|
+
var Category = /* @__PURE__ */ ((Category2) => (Category2.CLI = "CLI", Category2.CLI_INIT = "CLI_INIT", Category2.CLI_ADD = "CLI_ADD", Category2.CODEMOD = "CODEMOD", Category2.CORE_SERVER = "CORE-SERVER", Category2.CSF_PLUGIN = "CSF-PLUGIN", Category2.CSF_TOOLS = "CSF-TOOLS", Category2.CORE_COMMON = "CORE-COMMON", Category2.NODE_LOGGER = "NODE-LOGGER", Category2.TELEMETRY = "TELEMETRY", Category2.BUILDER_MANAGER = "BUILDER-MANAGER", Category2.BUILDER_VITE = "BUILDER-VITE", Category2.SOURCE_LOADER = "SOURCE-LOADER", Category2.POSTINSTALL = "POSTINSTALL", Category2.DOCS_TOOLS = "DOCS-TOOLS", Category2.FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS", Category2.FRAMEWORK_REACT_VITE = "FRAMEWORK_REACT-VITE", Category2))(Category || {});
|
|
96
|
+
|
|
97
|
+
// src/errors/server/cli.ts
|
|
98
|
+
import { dedent } from "ts-dedent";
|
|
99
|
+
var GenerateNewProjectOnInitError = class extends StorybookError {
|
|
100
|
+
constructor(data) {
|
|
101
|
+
super({
|
|
102
|
+
name: "GenerateNewProjectOnInitError",
|
|
103
|
+
category: "CLI_INIT" /* CLI_INIT */,
|
|
104
|
+
code: 3,
|
|
105
|
+
documentation: "",
|
|
106
|
+
message: dedent`
|
|
107
|
+
There was an error while using ${data.packageManager} to create a new ${data.projectType} project.
|
|
108
|
+
|
|
109
|
+
${data.error instanceof Error ? data.error.message : ""}`
|
|
110
|
+
});
|
|
111
|
+
this.data = data;
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
function createMinimumReleaseAgeHandledErrorMessage(data) {
|
|
115
|
+
if ("message" in data)
|
|
116
|
+
return data.message;
|
|
117
|
+
let followUp = data.minimumReleaseAgeExclusionsConfigName ? `To fix this, either wait for the configured age window to pass and rerun the command, or add the blocked packages to ${data.packageManagerName}'s ${data.minimumReleaseAgeExclusionsConfigName} setting.` : "To fix this, either wait for the configured age window to pass and rerun the command, or rerun Forkbook with an older compatible release.";
|
|
118
|
+
return dedent`
|
|
119
|
+
${data.packageManagerName} blocked package installation because your project uses ${data.minimumReleaseAgeConfigName}.
|
|
120
|
+
${data.failedPackage ? `
|
|
121
|
+
Failed package: ${data.failedPackage}
|
|
122
|
+
` : ""}
|
|
123
|
+
${followUp}
|
|
124
|
+
`;
|
|
125
|
+
}
|
|
126
|
+
var MinimumReleaseAgeHandledError = class extends StorybookError {
|
|
127
|
+
constructor(data) {
|
|
128
|
+
super({
|
|
129
|
+
name: "MinimumReleaseAgeHandledError",
|
|
130
|
+
category: "CLI" /* CLI */,
|
|
131
|
+
isHandledError: !0,
|
|
132
|
+
code: 2,
|
|
133
|
+
cause: data.cause,
|
|
134
|
+
message: createMinimumReleaseAgeHandledErrorMessage(data)
|
|
135
|
+
});
|
|
136
|
+
this.data = data;
|
|
137
|
+
}
|
|
138
|
+
}, AddonVitestPostinstallPrerequisiteCheckError = class extends StorybookError {
|
|
139
|
+
constructor(data) {
|
|
140
|
+
super({
|
|
141
|
+
name: "AddonVitestPostinstallPrerequisiteCheckError",
|
|
142
|
+
category: "CLI_INIT" /* CLI_INIT */,
|
|
143
|
+
isHandledError: !0,
|
|
144
|
+
code: 4,
|
|
145
|
+
documentation: "",
|
|
146
|
+
message: "The prerequisite check for the Vitest addon failed."
|
|
147
|
+
});
|
|
148
|
+
this.data = data;
|
|
149
|
+
}
|
|
150
|
+
}, AddonVitestPostinstallWorkspaceUpdateError = class extends StorybookError {
|
|
151
|
+
constructor(data) {
|
|
152
|
+
super({
|
|
153
|
+
name: "AddonVitestPostinstallWorkspaceUpdateError",
|
|
154
|
+
category: "CLI_INIT" /* CLI_INIT */,
|
|
155
|
+
isHandledError: !0,
|
|
156
|
+
code: 8,
|
|
157
|
+
documentation: "https://forkbook.ljk.dev/docs/writing-tests/integrations/vitest-addon#manual-setup-advanced",
|
|
158
|
+
message: dedent`
|
|
159
|
+
Could not update existing Vitest workspace file: ${data.filePath}
|
|
160
|
+
Please refer to the documentation to complete the setup manually.
|
|
161
|
+
`
|
|
162
|
+
});
|
|
163
|
+
this.data = data;
|
|
164
|
+
}
|
|
165
|
+
}, AddonVitestPostinstallConfigUpdateError = class extends StorybookError {
|
|
166
|
+
constructor(data) {
|
|
167
|
+
super({
|
|
168
|
+
name: "AddonVitestPostinstallConfigUpdateError",
|
|
169
|
+
category: "CLI_INIT" /* CLI_INIT */,
|
|
170
|
+
isHandledError: !0,
|
|
171
|
+
code: 9,
|
|
172
|
+
documentation: "https://forkbook.ljk.dev/docs/writing-tests/integrations/vitest-addon#manual-setup-advanced",
|
|
173
|
+
message: dedent`
|
|
174
|
+
Unable to update existing Vitest config file: ${data.filePath}
|
|
175
|
+
Please refer to the documentation to complete the setup manually.
|
|
176
|
+
`
|
|
177
|
+
});
|
|
178
|
+
this.data = data;
|
|
179
|
+
}
|
|
180
|
+
}, AddonVitestPostinstallError = class extends StorybookError {
|
|
181
|
+
constructor(data) {
|
|
182
|
+
super({
|
|
183
|
+
name: "AddonVitestPostinstallError",
|
|
184
|
+
category: "CLI_INIT" /* CLI_INIT */,
|
|
185
|
+
isHandledError: !0,
|
|
186
|
+
code: 5,
|
|
187
|
+
message: "The Vitest addon setup failed.",
|
|
188
|
+
subErrors: data.errors
|
|
189
|
+
});
|
|
190
|
+
this.data = data;
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
// src/errors/server/config.ts
|
|
195
|
+
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
196
|
+
import { dedent as dedent2 } from "ts-dedent";
|
|
197
|
+
var NxProjectDetectedError = class extends StorybookError {
|
|
115
198
|
constructor() {
|
|
116
199
|
super({
|
|
117
200
|
name: "NxProjectDetectedError",
|
|
118
201
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
119
202
|
code: 1,
|
|
120
203
|
documentation: "https://nx.dev/nx-api/storybook#generating-storybook-configuration",
|
|
121
|
-
message:
|
|
204
|
+
message: dedent2`
|
|
122
205
|
We have detected Nx in your project. Nx has its own Forkbook initializer, so please use it instead.
|
|
123
206
|
Run "nx g @nx/storybook:configuration <your-project-name>" to add Forkbook to a given Nx app or lib.`
|
|
124
207
|
});
|
|
@@ -130,7 +213,7 @@ var Category = /* @__PURE__ */ ((Category2) => (Category2.CLI = "CLI", Category2
|
|
|
130
213
|
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
131
214
|
code: 1,
|
|
132
215
|
documentation: "https://forkbook.ljk.dev/docs/migration#new-framework-api",
|
|
133
|
-
message:
|
|
216
|
+
message: dedent2`
|
|
134
217
|
Could not find a 'framework' field in Forkbook config.
|
|
135
218
|
|
|
136
219
|
Set it to '@aussieljk/forkbook/react-vite' or '@aussieljk/forkbook/nextjs-vite'.`
|
|
@@ -143,7 +226,7 @@ var Category = /* @__PURE__ */ ((Category2) => (Category2.CLI = "CLI", Category2
|
|
|
143
226
|
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
144
227
|
code: 2,
|
|
145
228
|
documentation: "https://forkbook.ljk.dev/docs/migration#new-framework-api",
|
|
146
|
-
message:
|
|
229
|
+
message: dedent2`
|
|
147
230
|
Invalid value of '${data.frameworkName}' in the 'framework' field of Forkbook config.
|
|
148
231
|
|
|
149
232
|
Set it to '@aussieljk/forkbook/react-vite' or '@aussieljk/forkbook/nextjs-vite'.
|
|
@@ -158,7 +241,7 @@ var Category = /* @__PURE__ */ ((Category2) => (Category2.CLI = "CLI", Category2
|
|
|
158
241
|
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
159
242
|
code: 3,
|
|
160
243
|
documentation: "",
|
|
161
|
-
message:
|
|
244
|
+
message: dedent2`
|
|
162
245
|
Could not evaluate the '${data.frameworkName}' package from the 'framework' field of Forkbook config.
|
|
163
246
|
|
|
164
247
|
Are you sure it's a valid package and is installed?`
|
|
@@ -172,7 +255,7 @@ var Category = /* @__PURE__ */ ((Category2) => (Category2.CLI = "CLI", Category2
|
|
|
172
255
|
category: "CORE-SERVER" /* CORE_SERVER */,
|
|
173
256
|
code: 1,
|
|
174
257
|
documentation: "https://forkbook.ljk.dev/docs/configure/integration/images-and-assets#serving-static-files-via-storybook-configuration",
|
|
175
|
-
message:
|
|
258
|
+
message: dedent2`
|
|
176
259
|
Forkbook encountered a conflict when trying to serve statics. You have configured both:
|
|
177
260
|
* Forkbook's option in the config file: 'staticDirs'
|
|
178
261
|
* Forkbook's (deprecated) CLI flag: '--staticDir' or '-s'
|
|
@@ -187,620 +270,559 @@ var Category = /* @__PURE__ */ ((Category2) => (Category2.CLI = "CLI", Category2
|
|
|
187
270
|
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
188
271
|
code: 4,
|
|
189
272
|
documentation: "https://forkbook.ljk.dev/docs/faq#can-i-have-a-storybook-with-no-local-stories",
|
|
190
|
-
message:
|
|
273
|
+
message: dedent2`
|
|
191
274
|
Forkbook could not index your stories.
|
|
192
275
|
Your main configuration does not contain a 'stories' field, or it resolved to an empty array.
|
|
193
276
|
|
|
194
277
|
Please check your main configuration file and make sure it exports a 'stories' field that is not an empty array.`
|
|
195
278
|
});
|
|
196
279
|
}
|
|
197
|
-
},
|
|
280
|
+
}, CriticalPresetLoadError = class extends StorybookError {
|
|
198
281
|
constructor(data) {
|
|
199
282
|
super({
|
|
200
|
-
name: "
|
|
201
|
-
category: "CORE-
|
|
202
|
-
code:
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
data.
|
|
206
|
-
|
|
283
|
+
name: "CriticalPresetLoadError",
|
|
284
|
+
category: "CORE-SERVER" /* CORE_SERVER */,
|
|
285
|
+
code: 2,
|
|
286
|
+
documentation: "",
|
|
287
|
+
message: dedent2`
|
|
288
|
+
Forkbook failed to load the following preset: ${data.presetName}.
|
|
289
|
+
|
|
290
|
+
Please check whether your setup is correct, the Forkbook dependencies (and their peer dependencies) are installed correctly and there are no package version clashes.
|
|
291
|
+
|
|
292
|
+
If you believe this is a bug, please open an issue on Github.
|
|
293
|
+
|
|
294
|
+
${data.error.stack || data.error.message}`
|
|
207
295
|
});
|
|
208
296
|
this.data = data;
|
|
209
297
|
}
|
|
210
|
-
},
|
|
211
|
-
constructor(
|
|
298
|
+
}, MissingBuilderError = class extends StorybookError {
|
|
299
|
+
constructor() {
|
|
212
300
|
super({
|
|
213
|
-
name: "
|
|
214
|
-
category: "CORE-
|
|
215
|
-
code:
|
|
216
|
-
|
|
301
|
+
name: "MissingBuilderError",
|
|
302
|
+
category: "CORE-SERVER" /* CORE_SERVER */,
|
|
303
|
+
code: 3,
|
|
304
|
+
documentation: "https://github.com/storybookjs/storybook/issues/24071",
|
|
305
|
+
message: dedent2`
|
|
306
|
+
Forkbook could not find a builder configuration for your project.
|
|
307
|
+
Builders normally come from a framework package e.g. '@aussieljk/forkbook/react-vite', or from builder packages e.g. '@aussieljk/forkbook/builder-vite'.
|
|
308
|
+
|
|
309
|
+
- Does your main config file contain a 'framework' field configured correctly?
|
|
310
|
+
- Is the Forkbook framework package installed correctly?
|
|
311
|
+
- If you don't use a framework, does your main config contain a 'core.builder' configured correctly?
|
|
312
|
+
- Are you in a monorepo and perhaps the framework package is hoisted incorrectly?
|
|
313
|
+
|
|
314
|
+
If you believe this is a bug, please describe your issue in detail on Github.`
|
|
217
315
|
});
|
|
218
|
-
this.data = data;
|
|
219
316
|
}
|
|
220
|
-
},
|
|
317
|
+
}, NoMatchingExportError = class extends StorybookError {
|
|
221
318
|
constructor(data) {
|
|
222
319
|
super({
|
|
223
|
-
name: "
|
|
224
|
-
category: "CORE-
|
|
225
|
-
code:
|
|
226
|
-
|
|
320
|
+
name: "NoMatchingExportError",
|
|
321
|
+
category: "CORE-SERVER" /* CORE_SERVER */,
|
|
322
|
+
code: 4,
|
|
323
|
+
documentation: "",
|
|
324
|
+
message: dedent2`
|
|
325
|
+
There was an exports mismatch error when trying to build Forkbook.
|
|
326
|
+
Please check whether the versions of your Forkbook packages match whenever possible, as this might be the cause.
|
|
327
|
+
|
|
328
|
+
Problematic example:
|
|
329
|
+
{ "@aussieljk/forkbook/react": "7.5.3", "@aussieljk/forkbook/react-vite": "7.4.5", "@aussieljk/forkbook": "7.3.0" }
|
|
330
|
+
|
|
331
|
+
Correct example:
|
|
332
|
+
{ "@aussieljk/forkbook/react": "7.5.3", "@aussieljk/forkbook/react-vite": "7.5.3", "@aussieljk/forkbook": "7.5.3" }`
|
|
227
333
|
});
|
|
228
334
|
this.data = data;
|
|
229
335
|
}
|
|
230
|
-
},
|
|
336
|
+
}, MainFileMissingError = class extends StorybookError {
|
|
231
337
|
constructor(data) {
|
|
338
|
+
let map = {
|
|
339
|
+
storybook: {
|
|
340
|
+
helperMessage: "You can pass a --config-dir flag to tell Forkbook, where your main.js|ts file is located at.",
|
|
341
|
+
documentation: "https://forkbook.ljk.dev/docs/configure"
|
|
342
|
+
},
|
|
343
|
+
vitest: {
|
|
344
|
+
helperMessage: "You can pass a configDir plugin option to tell where your main.js|ts file is located at.",
|
|
345
|
+
// TODO: add proper docs once available
|
|
346
|
+
documentation: "https://forkbook.ljk.dev/docs/configure"
|
|
347
|
+
}
|
|
348
|
+
}, { documentation, helperMessage } = map[data.source || "storybook"];
|
|
232
349
|
super({
|
|
233
|
-
name: "
|
|
234
|
-
category: "CORE-
|
|
235
|
-
code:
|
|
236
|
-
|
|
350
|
+
name: "MainFileMissingError",
|
|
351
|
+
category: "CORE-SERVER" /* CORE_SERVER */,
|
|
352
|
+
code: 6,
|
|
353
|
+
documentation,
|
|
354
|
+
message: dedent2`
|
|
355
|
+
No configuration files have been found in your configDir: ${import_picocolors.default.yellow(data.location)}.
|
|
356
|
+
Forkbook needs a "main.js|ts" file, please add it.
|
|
357
|
+
|
|
358
|
+
${helperMessage}`
|
|
237
359
|
});
|
|
238
360
|
this.data = data;
|
|
239
361
|
}
|
|
240
|
-
},
|
|
362
|
+
}, MainFileEvaluationError = class extends StorybookError {
|
|
241
363
|
constructor(data) {
|
|
364
|
+
let errorText = import_picocolors.default.white(
|
|
365
|
+
(data.error.stack || data.error.message).replaceAll(process.cwd(), "")
|
|
366
|
+
);
|
|
242
367
|
super({
|
|
243
|
-
name: "
|
|
244
|
-
category: "CORE-
|
|
245
|
-
code:
|
|
246
|
-
message:
|
|
368
|
+
name: "MainFileEvaluationError",
|
|
369
|
+
category: "CORE-SERVER" /* CORE_SERVER */,
|
|
370
|
+
code: 7,
|
|
371
|
+
message: dedent2`
|
|
372
|
+
Forkbook couldn't evaluate your ${import_picocolors.default.yellow(data.location)} file.
|
|
373
|
+
|
|
374
|
+
Original error:
|
|
375
|
+
${errorText}`
|
|
247
376
|
});
|
|
248
377
|
this.data = data;
|
|
249
378
|
}
|
|
250
|
-
}
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
// src/errors/server/builder.ts
|
|
382
|
+
import { dedent as dedent3 } from "ts-dedent";
|
|
383
|
+
var GoogleFontsDownloadError = class extends StorybookError {
|
|
251
384
|
constructor(data) {
|
|
252
385
|
super({
|
|
253
|
-
name: "
|
|
254
|
-
category: "
|
|
255
|
-
code:
|
|
256
|
-
|
|
386
|
+
name: "GoogleFontsDownloadError",
|
|
387
|
+
category: "FRAMEWORK_NEXTJS" /* FRAMEWORK_NEXTJS */,
|
|
388
|
+
code: 1,
|
|
389
|
+
documentation: "https://forkbook.ljk.dev/docs/get-started/frameworks/nextjs#nextjs-font-optimization",
|
|
390
|
+
message: dedent3`
|
|
391
|
+
Failed to fetch \`${data.fontFamily}\` from Google Fonts with URL: \`${data.url}\``
|
|
257
392
|
});
|
|
258
393
|
this.data = data;
|
|
259
394
|
}
|
|
260
|
-
},
|
|
395
|
+
}, GoogleFontsLoadingError = class extends StorybookError {
|
|
261
396
|
constructor(data) {
|
|
262
397
|
super({
|
|
263
|
-
name: "
|
|
264
|
-
category: "
|
|
265
|
-
code:
|
|
266
|
-
|
|
398
|
+
name: "GoogleFontsLoadingError",
|
|
399
|
+
category: "FRAMEWORK_NEXTJS" /* FRAMEWORK_NEXTJS */,
|
|
400
|
+
code: 2,
|
|
401
|
+
documentation: "https://forkbook.ljk.dev/docs/get-started/frameworks/nextjs#nextjs-font-optimization",
|
|
402
|
+
message: dedent3`
|
|
403
|
+
An error occurred when trying to load Google Fonts with URL \`${data.url}\`.
|
|
404
|
+
|
|
405
|
+
${data.error instanceof Error ? data.error.message : ""}`
|
|
267
406
|
});
|
|
268
407
|
this.data = data;
|
|
269
408
|
}
|
|
270
|
-
},
|
|
271
|
-
constructor(
|
|
409
|
+
}, NoStatsForViteDevError = class extends StorybookError {
|
|
410
|
+
constructor() {
|
|
272
411
|
super({
|
|
273
|
-
name: "
|
|
274
|
-
category: "
|
|
275
|
-
code:
|
|
276
|
-
message: `
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}, OpenServiceDocgenMissingComponentError = class extends StorybookError {
|
|
281
|
-
constructor(data) {
|
|
282
|
-
super({
|
|
283
|
-
name: "OpenServiceDocgenMissingComponentError",
|
|
284
|
-
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
285
|
-
code: 12,
|
|
286
|
-
message: `No story or attached docs entry was found for component id "${data.id}". The docgen service can only return docs for components that are present in the story index.`
|
|
412
|
+
name: "NoStatsForViteDevError",
|
|
413
|
+
category: "BUILDER-VITE" /* BUILDER_VITE */,
|
|
414
|
+
code: 1,
|
|
415
|
+
message: dedent3`
|
|
416
|
+
Unable to write preview stats as the Vite builder does not support stats in dev mode.
|
|
417
|
+
|
|
418
|
+
Please remove the \`--stats-json\` flag when running in dev mode.`
|
|
287
419
|
});
|
|
288
|
-
this.data = data;
|
|
289
420
|
}
|
|
290
|
-
},
|
|
291
|
-
constructor(
|
|
421
|
+
}, ViteModuleGraphSubscriptionError = class extends StorybookError {
|
|
422
|
+
constructor() {
|
|
292
423
|
super({
|
|
293
|
-
name: "
|
|
294
|
-
category: "
|
|
295
|
-
code:
|
|
296
|
-
message:
|
|
424
|
+
name: "ViteModuleGraphSubscriptionError",
|
|
425
|
+
category: "BUILDER-VITE" /* BUILDER_VITE */,
|
|
426
|
+
code: 2,
|
|
427
|
+
message: "Vite module graph listeners must be registered before the builder starts."
|
|
297
428
|
});
|
|
298
|
-
this.data = data;
|
|
299
429
|
}
|
|
300
|
-
},
|
|
430
|
+
}, IncompatiblePostCssConfigError = class extends StorybookError {
|
|
301
431
|
constructor(data) {
|
|
302
432
|
super({
|
|
303
|
-
name: "
|
|
304
|
-
category: "
|
|
305
|
-
code:
|
|
306
|
-
message: `
|
|
433
|
+
name: "IncompatiblePostCssConfigError",
|
|
434
|
+
category: "FRAMEWORK_NEXTJS" /* FRAMEWORK_NEXTJS */,
|
|
435
|
+
code: 3,
|
|
436
|
+
message: dedent3`
|
|
437
|
+
Incompatible PostCSS configuration format detected.
|
|
438
|
+
|
|
439
|
+
Next.js uses an array-based format for plugins which is not compatible with Vite:
|
|
440
|
+
|
|
441
|
+
// ❌ Incompatible format (used by Next.js)
|
|
442
|
+
const config = {
|
|
443
|
+
plugins: ["@tailwindcss/postcss"],
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
Please transform your PostCSS config to use the object-based format, which is compatible with Next.js and Vite:
|
|
447
|
+
|
|
448
|
+
// ✅ Compatible format (works with Next.js and Vite)
|
|
449
|
+
const config = {
|
|
450
|
+
plugins: {
|
|
451
|
+
"@tailwindcss/postcss": {},
|
|
452
|
+
},
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
Original error: ${data.error.message}
|
|
456
|
+
`
|
|
307
457
|
});
|
|
308
458
|
this.data = data;
|
|
309
459
|
}
|
|
310
|
-
}
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
// src/errors/server/dev-server.ts
|
|
463
|
+
import { dedent as dedent4 } from "ts-dedent";
|
|
464
|
+
var StatusTypeIdMismatchError = class extends StorybookError {
|
|
311
465
|
constructor(data) {
|
|
312
466
|
super({
|
|
313
|
-
name: "
|
|
314
|
-
category: "CORE-
|
|
315
|
-
code:
|
|
316
|
-
message:
|
|
467
|
+
name: "StatusTypeIdMismatchError",
|
|
468
|
+
category: "CORE-SERVER" /* CORE_SERVER */,
|
|
469
|
+
code: 16,
|
|
470
|
+
message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify(
|
|
471
|
+
data.status,
|
|
472
|
+
null,
|
|
473
|
+
2
|
|
474
|
+
)}`
|
|
317
475
|
});
|
|
318
476
|
this.data = data;
|
|
319
477
|
}
|
|
320
|
-
},
|
|
478
|
+
}, NoFreePortError = class extends StorybookError {
|
|
321
479
|
constructor(data) {
|
|
322
480
|
super({
|
|
323
|
-
name: "
|
|
324
|
-
category: "CORE-
|
|
325
|
-
|
|
326
|
-
|
|
481
|
+
name: "NoFreePortError",
|
|
482
|
+
category: "CORE-SERVER" /* CORE_SERVER */,
|
|
483
|
+
// Note: 17 is taken by OxcParseError in ../oxc-parser/errors.ts
|
|
484
|
+
code: 18,
|
|
485
|
+
message: dedent4`
|
|
486
|
+
Unable to find a free port for Forkbook's dev server${data.requestedPort ? ` (requested port: ${data.requestedPort})` : ""}.
|
|
487
|
+
Your environment appears to block Forkbook from listening on network ports.
|
|
488
|
+
If you are running Forkbook in a sandboxed or restricted shell, allow binding to localhost ports and try again.`
|
|
327
489
|
});
|
|
328
490
|
this.data = data;
|
|
329
491
|
}
|
|
330
|
-
},
|
|
331
|
-
constructor() {
|
|
332
|
-
super({
|
|
333
|
-
name: "OpenServiceAsyncRecipeError",
|
|
334
|
-
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
335
|
-
code: 31,
|
|
336
|
-
message: "setState recipes must be synchronous. A write after an await would change state without authoring a sync entry. Split the command into one setState per synchronous step."
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
}, OpenServiceCyclicStateError = class extends StorybookError {
|
|
340
|
-
constructor() {
|
|
341
|
-
super({
|
|
342
|
-
name: "OpenServiceCyclicStateError",
|
|
343
|
-
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
344
|
-
code: 32,
|
|
345
|
-
message: "Service state must be JSON-serializable, but the value is cyclic or nested more than 256 levels deep. Store an id and look the value up in a query instead of a reference."
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
}, OpenServiceOperationNameCollisionError = class extends StorybookError {
|
|
349
|
-
constructor(data) {
|
|
492
|
+
}, StorybookDevServerDisconnectedError = class extends StorybookError {
|
|
493
|
+
constructor(data = {}) {
|
|
350
494
|
super({
|
|
351
|
-
name: "
|
|
352
|
-
category: "CORE-
|
|
353
|
-
code:
|
|
354
|
-
message: `
|
|
495
|
+
name: "StorybookDevServerDisconnectedError",
|
|
496
|
+
category: "CORE-SERVER" /* CORE_SERVER */,
|
|
497
|
+
code: 19,
|
|
498
|
+
message: dedent4`
|
|
499
|
+
Forkbook dev server disconnected${data.code ? ` (close code ${data.code}${data.reason ? `: ${data.reason}` : ""})` : ""}.
|
|
500
|
+
Any request that was still in flight has been abandoned.
|
|
501
|
+
Make sure the dev server is still running, then try again.`
|
|
355
502
|
});
|
|
356
503
|
this.data = data;
|
|
357
504
|
}
|
|
358
|
-
},
|
|
505
|
+
}, SavingGlobalSettingsFileError = class extends StorybookError {
|
|
359
506
|
constructor(data) {
|
|
360
507
|
super({
|
|
361
|
-
name: "
|
|
362
|
-
category: "CORE-
|
|
363
|
-
code:
|
|
364
|
-
message: `
|
|
508
|
+
name: "SavingGlobalSettingsFileError",
|
|
509
|
+
category: "CORE-SERVER" /* CORE_SERVER */,
|
|
510
|
+
code: 1,
|
|
511
|
+
message: dedent4`
|
|
512
|
+
Unable to save global settings file to ${data.filePath}
|
|
513
|
+
${data.error && `Reason: ${data.error}`}`
|
|
365
514
|
});
|
|
366
515
|
this.data = data;
|
|
367
516
|
}
|
|
368
517
|
};
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
518
|
+
|
|
519
|
+
// src/errors/server/open-service.ts
|
|
520
|
+
import { dedent as dedent5 } from "ts-dedent";
|
|
521
|
+
|
|
522
|
+
// src/shared/open-service/errors.ts
|
|
523
|
+
function formatIssuePath(path) {
|
|
524
|
+
return path?.length ? path.map((segment) => {
|
|
525
|
+
let key = typeof segment == "object" && segment !== null && "key" in segment ? segment.key : segment;
|
|
526
|
+
return typeof key == "number" ? `[${key}]` : `.${String(key)}`;
|
|
527
|
+
}).join("").replace(/^\./, "") : "";
|
|
372
528
|
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
let
|
|
529
|
+
function formatIssues(issues) {
|
|
530
|
+
return issues.map((issue) => {
|
|
531
|
+
let path = formatIssuePath(issue.path);
|
|
532
|
+
return path === "" ? issue.message : `${path}: ${issue.message}`;
|
|
533
|
+
}).join(`
|
|
376
534
|
`);
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
message: `${describeUnknownStoryIds(data.unknownIds)}
|
|
382
|
-
${list}`
|
|
383
|
-
});
|
|
384
|
-
this.data = data;
|
|
385
|
-
}
|
|
386
|
-
}, OpenServiceTestRunTimeoutError = class extends StorybookError {
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
// src/errors/server/open-service.ts
|
|
538
|
+
var OpenServiceValidationError = class extends StorybookError {
|
|
387
539
|
constructor(data) {
|
|
388
540
|
super({
|
|
389
|
-
name: "
|
|
541
|
+
name: "OpenServiceValidationError",
|
|
390
542
|
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
391
|
-
code:
|
|
392
|
-
message: `
|
|
543
|
+
code: 5,
|
|
544
|
+
message: `Invalid ${data.phase} for ${data.kind} "${data.serviceId}.${data.name}":
|
|
545
|
+
${formatIssues(
|
|
546
|
+
data.issues
|
|
547
|
+
)}`
|
|
393
548
|
});
|
|
394
549
|
this.data = data;
|
|
395
550
|
}
|
|
396
|
-
},
|
|
397
|
-
constructor() {
|
|
398
|
-
super({
|
|
399
|
-
name: "OpenServiceServicesAppliedTwiceError",
|
|
400
|
-
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
401
|
-
code: 22,
|
|
402
|
-
message: dedent`The "services" preset property was applied twice, but should only be applied once.
|
|
403
|
-
Multiple code paths applying it will cause service and toolset registration to fail.`
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
}, OpenServiceMissingToolsetError = class extends StorybookError {
|
|
551
|
+
}, OpenServiceDuplicateRegistrationError = class extends StorybookError {
|
|
407
552
|
constructor(data) {
|
|
408
553
|
super({
|
|
409
|
-
name: "
|
|
554
|
+
name: "OpenServiceDuplicateRegistrationError",
|
|
410
555
|
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
411
|
-
code:
|
|
412
|
-
message: `
|
|
556
|
+
code: 6,
|
|
557
|
+
message: `A service with id "${data.serviceId}" is already registered.`
|
|
413
558
|
});
|
|
414
559
|
this.data = data;
|
|
415
560
|
}
|
|
416
|
-
},
|
|
561
|
+
}, OpenServiceMissingServiceError = class extends StorybookError {
|
|
417
562
|
constructor(data) {
|
|
418
563
|
super({
|
|
419
|
-
name: "
|
|
564
|
+
name: "OpenServiceMissingServiceError",
|
|
420
565
|
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
421
|
-
code:
|
|
422
|
-
message: `
|
|
566
|
+
code: 7,
|
|
567
|
+
message: `No registered service with id "${data.serviceId}" exists in this environment.`
|
|
423
568
|
});
|
|
424
569
|
this.data = data;
|
|
425
570
|
}
|
|
426
|
-
},
|
|
571
|
+
}, OpenServiceInternalServiceError = class extends StorybookError {
|
|
427
572
|
constructor(data) {
|
|
428
573
|
super({
|
|
429
|
-
name: "
|
|
574
|
+
name: "OpenServiceInternalServiceError",
|
|
430
575
|
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
431
|
-
code:
|
|
432
|
-
message: data.
|
|
433
|
-
agentFacing: !0
|
|
576
|
+
code: 19,
|
|
577
|
+
message: `Service "${data.serviceId}" is internal. Pass { internal: true } to getService() only if you intentionally depend on an unstable OSA surface. Internal services may change without notice.`
|
|
434
578
|
});
|
|
435
579
|
this.data = data;
|
|
436
580
|
}
|
|
437
|
-
},
|
|
581
|
+
}, OpenServiceUnimplementedOperationError = class extends StorybookError {
|
|
438
582
|
constructor(data) {
|
|
439
|
-
let serialized;
|
|
440
|
-
try {
|
|
441
|
-
serialized = JSON.stringify(data.issues)?.slice(0, 2e3) ?? String(data.issues);
|
|
442
|
-
} catch {
|
|
443
|
-
serialized = `${data.issues.length} issue(s) that could not be serialized`;
|
|
444
|
-
}
|
|
445
583
|
super({
|
|
446
|
-
name: "
|
|
584
|
+
name: "OpenServiceUnimplementedOperationError",
|
|
447
585
|
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
448
|
-
code:
|
|
449
|
-
message:
|
|
586
|
+
code: 8,
|
|
587
|
+
message: `${data.kind[0].toUpperCase()}${data.kind.slice(1)} "${data.serviceId}.${data.name}" is not implemented for this environment.`
|
|
450
588
|
});
|
|
451
589
|
this.data = data;
|
|
452
590
|
}
|
|
453
|
-
},
|
|
591
|
+
}, OpenServiceInvalidStaticPathError = class extends StorybookError {
|
|
454
592
|
constructor(data) {
|
|
455
593
|
super({
|
|
456
|
-
name: "
|
|
594
|
+
name: "OpenServiceInvalidStaticPathError",
|
|
457
595
|
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
458
|
-
code:
|
|
459
|
-
message: `Invalid
|
|
596
|
+
code: 10,
|
|
597
|
+
message: `Invalid static path "${data.path}" for query "${data.serviceId}.${data.name}": use a relative path with forward slashes and no ".." segments.`
|
|
460
598
|
});
|
|
461
599
|
this.data = data;
|
|
462
600
|
}
|
|
463
|
-
},
|
|
601
|
+
}, OpenServiceAsyncSchemaError = class extends StorybookError {
|
|
464
602
|
constructor(data) {
|
|
465
603
|
super({
|
|
466
|
-
name: "
|
|
604
|
+
name: "OpenServiceAsyncSchemaError",
|
|
467
605
|
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
468
|
-
code:
|
|
469
|
-
message:
|
|
606
|
+
code: 9,
|
|
607
|
+
message: `Async schema for ${data.kind} "${data.serviceId}.${data.name}" (${data.phase}): query input and output schemas must validate synchronously.`
|
|
470
608
|
});
|
|
471
609
|
this.data = data;
|
|
472
610
|
}
|
|
473
|
-
}
|
|
474
|
-
var CriticalPresetLoadError = class extends StorybookError {
|
|
611
|
+
}, OpenServiceLoadedDrainExceededError = class extends StorybookError {
|
|
475
612
|
constructor(data) {
|
|
476
613
|
super({
|
|
477
|
-
name: "
|
|
478
|
-
category: "CORE-
|
|
479
|
-
code:
|
|
480
|
-
|
|
481
|
-
message: dedent`
|
|
482
|
-
Forkbook failed to load the following preset: ${data.presetName}.
|
|
483
|
-
|
|
484
|
-
Please check whether your setup is correct, the Forkbook dependencies (and their peer dependencies) are installed correctly and there are no package version clashes.
|
|
485
|
-
|
|
486
|
-
If you believe this is a bug, please open an issue on Github.
|
|
487
|
-
|
|
488
|
-
${data.error.stack || data.error.message}`
|
|
614
|
+
name: "OpenServiceLoadedDrainExceededError",
|
|
615
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
616
|
+
code: 11,
|
|
617
|
+
message: `Query "${data.serviceId}.${data.name}".loaded(...) did not settle after ${data.iterations} drain iterations. Check for handlers that keep discovering new dependencies after every state change.`
|
|
489
618
|
});
|
|
490
619
|
this.data = data;
|
|
491
620
|
}
|
|
492
|
-
},
|
|
493
|
-
constructor() {
|
|
494
|
-
super({
|
|
495
|
-
name: "MissingBuilderError",
|
|
496
|
-
category: "CORE-SERVER" /* CORE_SERVER */,
|
|
497
|
-
code: 3,
|
|
498
|
-
documentation: "https://github.com/storybookjs/storybook/issues/24071",
|
|
499
|
-
message: dedent`
|
|
500
|
-
Forkbook could not find a builder configuration for your project.
|
|
501
|
-
Builders normally come from a framework package e.g. '@aussieljk/forkbook/react-vite', or from builder packages e.g. '@aussieljk/forkbook/builder-vite'.
|
|
502
|
-
|
|
503
|
-
- Does your main config file contain a 'framework' field configured correctly?
|
|
504
|
-
- Is the Forkbook framework package installed correctly?
|
|
505
|
-
- If you don't use a framework, does your main config contain a 'core.builder' configured correctly?
|
|
506
|
-
- Are you in a monorepo and perhaps the framework package is hoisted incorrectly?
|
|
507
|
-
|
|
508
|
-
If you believe this is a bug, please describe your issue in detail on Github.`
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
}, GoogleFontsDownloadError = class extends StorybookError {
|
|
621
|
+
}, OpenServiceDocgenMissingComponentError = class extends StorybookError {
|
|
512
622
|
constructor(data) {
|
|
513
623
|
super({
|
|
514
|
-
name: "
|
|
515
|
-
category: "
|
|
516
|
-
code:
|
|
517
|
-
|
|
518
|
-
message: dedent`
|
|
519
|
-
Failed to fetch \`${data.fontFamily}\` from Google Fonts with URL: \`${data.url}\``
|
|
624
|
+
name: "OpenServiceDocgenMissingComponentError",
|
|
625
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
626
|
+
code: 12,
|
|
627
|
+
message: `No story or attached docs entry was found for component id "${data.id}". The docgen service can only return docs for components that are present in the story index.`
|
|
520
628
|
});
|
|
521
629
|
this.data = data;
|
|
522
630
|
}
|
|
523
|
-
},
|
|
524
|
-
constructor(data) {
|
|
631
|
+
}, OpenServiceMissingChannelError = class extends StorybookError {
|
|
632
|
+
constructor(data = {}) {
|
|
525
633
|
super({
|
|
526
|
-
name: "
|
|
527
|
-
category: "
|
|
528
|
-
code:
|
|
529
|
-
|
|
530
|
-
message: dedent`
|
|
531
|
-
An error occurred when trying to load Google Fonts with URL \`${data.url}\`.
|
|
532
|
-
|
|
533
|
-
${data.error instanceof Error ? data.error.message : ""}`
|
|
634
|
+
name: "OpenServiceMissingChannelError",
|
|
635
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
636
|
+
code: 13,
|
|
637
|
+
message: data.serviceId ? `Cannot register service "${data.serviceId}": the Forkbook addons channel is not installed in this runtime.` : "The Forkbook addons channel is not installed in this runtime."
|
|
534
638
|
});
|
|
535
639
|
this.data = data;
|
|
536
640
|
}
|
|
537
|
-
},
|
|
641
|
+
}, OpenServiceRemoteCommandDisconnectedError = class extends StorybookError {
|
|
538
642
|
constructor(data) {
|
|
539
643
|
super({
|
|
540
|
-
name: "
|
|
541
|
-
category: "CORE-
|
|
542
|
-
code:
|
|
543
|
-
|
|
544
|
-
message: dedent`
|
|
545
|
-
There was an exports mismatch error when trying to build Forkbook.
|
|
546
|
-
Please check whether the versions of your Forkbook packages match whenever possible, as this might be the cause.
|
|
547
|
-
|
|
548
|
-
Problematic example:
|
|
549
|
-
{ "@aussieljk/forkbook/react": "7.5.3", "@aussieljk/forkbook/react-vite": "7.4.5", "@aussieljk/forkbook": "7.3.0" }
|
|
550
|
-
|
|
551
|
-
Correct example:
|
|
552
|
-
{ "@aussieljk/forkbook/react": "7.5.3", "@aussieljk/forkbook/react-vite": "7.5.3", "@aussieljk/forkbook": "7.5.3" }`
|
|
644
|
+
name: "OpenServiceRemoteCommandDisconnectedError",
|
|
645
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
646
|
+
code: 14,
|
|
647
|
+
message: `Service "${data.serviceId}" was unregistered before a remote command resolved.`
|
|
553
648
|
});
|
|
554
649
|
this.data = data;
|
|
555
650
|
}
|
|
556
|
-
},
|
|
651
|
+
}, OpenServiceRemoteCommandUnhandledError = class extends StorybookError {
|
|
557
652
|
constructor(data) {
|
|
558
|
-
let map = {
|
|
559
|
-
storybook: {
|
|
560
|
-
helperMessage: "You can pass a --config-dir flag to tell Forkbook, where your main.js|ts file is located at.",
|
|
561
|
-
documentation: "https://forkbook.ljk.dev/docs/configure"
|
|
562
|
-
},
|
|
563
|
-
vitest: {
|
|
564
|
-
helperMessage: "You can pass a configDir plugin option to tell where your main.js|ts file is located at.",
|
|
565
|
-
// TODO: add proper docs once available
|
|
566
|
-
documentation: "https://forkbook.ljk.dev/docs/configure"
|
|
567
|
-
}
|
|
568
|
-
}, { documentation, helperMessage } = map[data.source || "storybook"];
|
|
569
653
|
super({
|
|
570
|
-
name: "
|
|
571
|
-
category: "CORE-
|
|
572
|
-
code:
|
|
573
|
-
|
|
574
|
-
message: dedent`
|
|
575
|
-
No configuration files have been found in your configDir: ${import_picocolors.default.yellow(data.location)}.
|
|
576
|
-
Forkbook needs a "main.js|ts" file, please add it.
|
|
577
|
-
|
|
578
|
-
${helperMessage}`
|
|
654
|
+
name: "OpenServiceRemoteCommandUnhandledError",
|
|
655
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
656
|
+
code: 15,
|
|
657
|
+
message: data.delegated ? `The Forkbook this runtime is attached to did not acknowledge remote command "${data.serviceId}.${data.commandName}" in time \u2014 it may be busy or unreachable. Retry; note the command may still have executed on that instance.` : `No runtime acknowledged remote command "${data.serviceId}.${data.commandName}"; its handler is not implemented in any connected runtime.`
|
|
579
658
|
});
|
|
580
659
|
this.data = data;
|
|
581
660
|
}
|
|
582
|
-
},
|
|
661
|
+
}, OpenServiceRemoteCommandConfigDriftError = class extends StorybookError {
|
|
583
662
|
constructor(data) {
|
|
584
|
-
let errorText = import_picocolors.default.white(
|
|
585
|
-
(data.error.stack || data.error.message).replaceAll(process.cwd(), "")
|
|
586
|
-
);
|
|
587
663
|
super({
|
|
588
|
-
name: "
|
|
589
|
-
category: "CORE-
|
|
590
|
-
code:
|
|
591
|
-
message:
|
|
592
|
-
Forkbook couldn't evaluate your ${import_picocolors.default.yellow(data.location)} file.
|
|
593
|
-
|
|
594
|
-
Original error:
|
|
595
|
-
${errorText}`
|
|
664
|
+
name: "OpenServiceRemoteCommandConfigDriftError",
|
|
665
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
666
|
+
code: 30,
|
|
667
|
+
message: `The Forkbook this runtime is attached to reported it has no handler for remote command "${data.serviceId}.${data.commandName}". The two processes are running different configurations (for example a feature flag enabled in one but not the other). Restart the attached Forkbook with a configuration matching this process.`
|
|
596
668
|
});
|
|
597
669
|
this.data = data;
|
|
598
670
|
}
|
|
599
|
-
},
|
|
600
|
-
constructor(
|
|
671
|
+
}, OpenServiceAsyncRecipeError = class extends StorybookError {
|
|
672
|
+
constructor() {
|
|
601
673
|
super({
|
|
602
|
-
name: "
|
|
603
|
-
category: "CORE-
|
|
604
|
-
code:
|
|
605
|
-
message:
|
|
606
|
-
data.status,
|
|
607
|
-
null,
|
|
608
|
-
2
|
|
609
|
-
)}`
|
|
674
|
+
name: "OpenServiceAsyncRecipeError",
|
|
675
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
676
|
+
code: 31,
|
|
677
|
+
message: "setState recipes must be synchronous. A write after an await would change state without authoring a sync entry. Split the command into one setState per synchronous step."
|
|
610
678
|
});
|
|
611
|
-
this.data = data;
|
|
612
679
|
}
|
|
613
|
-
},
|
|
614
|
-
constructor(
|
|
680
|
+
}, OpenServiceCyclicStateError = class extends StorybookError {
|
|
681
|
+
constructor() {
|
|
615
682
|
super({
|
|
616
|
-
name: "
|
|
617
|
-
category: "CORE-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
message: dedent`
|
|
621
|
-
Unable to find a free port for Forkbook's dev server${data.requestedPort ? ` (requested port: ${data.requestedPort})` : ""}.
|
|
622
|
-
Your environment appears to block Forkbook from listening on network ports.
|
|
623
|
-
If you are running Forkbook in a sandboxed or restricted shell, allow binding to localhost ports and try again.`
|
|
683
|
+
name: "OpenServiceCyclicStateError",
|
|
684
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
685
|
+
code: 32,
|
|
686
|
+
message: "Service state must be JSON-serializable, but the value is cyclic or nested more than 256 levels deep. Store an id and look the value up in a query instead of a reference."
|
|
624
687
|
});
|
|
625
|
-
this.data = data;
|
|
626
688
|
}
|
|
627
|
-
},
|
|
628
|
-
constructor(data
|
|
689
|
+
}, OpenServiceOperationNameCollisionError = class extends StorybookError {
|
|
690
|
+
constructor(data) {
|
|
629
691
|
super({
|
|
630
|
-
name: "
|
|
631
|
-
category: "CORE-
|
|
632
|
-
code:
|
|
633
|
-
message:
|
|
634
|
-
Forkbook dev server disconnected${data.code ? ` (close code ${data.code}${data.reason ? `: ${data.reason}` : ""})` : ""}.
|
|
635
|
-
Any request that was still in flight has been abandoned.
|
|
636
|
-
Make sure the dev server is still running, then try again.`
|
|
692
|
+
name: "OpenServiceOperationNameCollisionError",
|
|
693
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
694
|
+
code: 16,
|
|
695
|
+
message: `Service "${data.serviceId}" cannot register "${data.operationName}" as both a query and a command.`
|
|
637
696
|
});
|
|
638
697
|
this.data = data;
|
|
639
698
|
}
|
|
640
|
-
},
|
|
699
|
+
}, OpenServiceMissingOriginError = class extends StorybookError {
|
|
641
700
|
constructor(data) {
|
|
642
701
|
super({
|
|
643
|
-
name: "
|
|
644
|
-
category: "
|
|
645
|
-
code:
|
|
646
|
-
|
|
647
|
-
message: dedent`
|
|
648
|
-
There was an error while using ${data.packageManager} to create a new ${data.projectType} project.
|
|
649
|
-
|
|
650
|
-
${data.error instanceof Error ? data.error.message : ""}`
|
|
702
|
+
name: "OpenServiceMissingOriginError",
|
|
703
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
704
|
+
code: 17,
|
|
705
|
+
message: `Method "${data.toolsetId}.${data.methodName}" requires a Forkbook server origin. Run it against a live Forkbook so the adapter can provide ctx.origin.`
|
|
651
706
|
});
|
|
652
707
|
this.data = data;
|
|
653
708
|
}
|
|
654
709
|
};
|
|
655
|
-
function
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
let followUp = data.minimumReleaseAgeExclusionsConfigName ? `To fix this, either wait for the configured age window to pass and rerun the command, or add the blocked packages to ${data.packageManagerName}'s ${data.minimumReleaseAgeExclusionsConfigName} setting.` : "To fix this, either wait for the configured age window to pass and rerun the command, or rerun Forkbook with an older compatible release.";
|
|
659
|
-
return dedent`
|
|
660
|
-
${data.packageManagerName} blocked package installation because your project uses ${data.minimumReleaseAgeConfigName}.
|
|
661
|
-
${data.failedPackage ? `
|
|
662
|
-
Failed package: ${data.failedPackage}
|
|
663
|
-
` : ""}
|
|
664
|
-
${followUp}
|
|
665
|
-
`;
|
|
710
|
+
function describeUnknownStoryIds(unknownIds) {
|
|
711
|
+
let plural = unknownIds.length === 1 ? "ID is" : "IDs are";
|
|
712
|
+
return `Refusing to publish review: ${unknownIds.length} story ${plural} not backed by a story entry in the live Forkbook index (docs entries cannot be review slots):`;
|
|
666
713
|
}
|
|
667
|
-
var
|
|
714
|
+
var OpenServiceUnknownStoryIdsError = class extends StorybookError {
|
|
668
715
|
constructor(data) {
|
|
716
|
+
let list = data.unknownIds.map((id) => `- ${id}`).join(`
|
|
717
|
+
`);
|
|
669
718
|
super({
|
|
670
|
-
name: "
|
|
671
|
-
category: "
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
message: createMinimumReleaseAgeHandledErrorMessage(data)
|
|
719
|
+
name: "OpenServiceUnknownStoryIdsError",
|
|
720
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
721
|
+
code: 18,
|
|
722
|
+
message: `${describeUnknownStoryIds(data.unknownIds)}
|
|
723
|
+
${list}`
|
|
676
724
|
});
|
|
677
725
|
this.data = data;
|
|
678
726
|
}
|
|
679
|
-
},
|
|
727
|
+
}, OpenServiceTestRunTimeoutError = class extends StorybookError {
|
|
680
728
|
constructor(data) {
|
|
681
729
|
super({
|
|
682
|
-
name: "
|
|
683
|
-
category: "
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
documentation: "",
|
|
687
|
-
message: "The prerequisite check for the Vitest addon failed."
|
|
730
|
+
name: "OpenServiceTestRunTimeoutError",
|
|
731
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
732
|
+
code: 21,
|
|
733
|
+
message: `Timed out after ${data.timeoutMs}ms waiting for addon-vitest response to test run "${data.requestId}". Ensure @aussieljk/forkbook/addon-vitest is installed and responding.`
|
|
688
734
|
});
|
|
689
735
|
this.data = data;
|
|
690
736
|
}
|
|
691
|
-
},
|
|
692
|
-
constructor(
|
|
737
|
+
}, OpenServiceServicesAppliedTwiceError = class extends StorybookError {
|
|
738
|
+
constructor() {
|
|
693
739
|
super({
|
|
694
|
-
name: "
|
|
695
|
-
category: "
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
message: dedent`
|
|
700
|
-
Could not update existing Vitest workspace file: ${data.filePath}
|
|
701
|
-
Please refer to the documentation to complete the setup manually.
|
|
702
|
-
`
|
|
740
|
+
name: "OpenServiceServicesAppliedTwiceError",
|
|
741
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
742
|
+
code: 22,
|
|
743
|
+
message: dedent5`The "services" preset property was applied twice, but should only be applied once.
|
|
744
|
+
Multiple code paths applying it will cause service and toolset registration to fail.`
|
|
703
745
|
});
|
|
704
|
-
this.data = data;
|
|
705
746
|
}
|
|
706
|
-
},
|
|
747
|
+
}, OpenServiceMissingToolsetError = class extends StorybookError {
|
|
707
748
|
constructor(data) {
|
|
708
749
|
super({
|
|
709
|
-
name: "
|
|
710
|
-
category: "
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
documentation: "https://forkbook.ljk.dev/docs/writing-tests/integrations/vitest-addon#manual-setup-advanced",
|
|
714
|
-
message: dedent`
|
|
715
|
-
Unable to update existing Vitest config file: ${data.filePath}
|
|
716
|
-
Please refer to the documentation to complete the setup manually.
|
|
717
|
-
`
|
|
750
|
+
name: "OpenServiceMissingToolsetError",
|
|
751
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
752
|
+
code: 23,
|
|
753
|
+
message: `No registered toolset with id "${data.toolsetId}" exists in this environment.`
|
|
718
754
|
});
|
|
719
755
|
this.data = data;
|
|
720
756
|
}
|
|
721
|
-
},
|
|
757
|
+
}, OpenServiceDuplicateToolsetError = class extends StorybookError {
|
|
722
758
|
constructor(data) {
|
|
723
759
|
super({
|
|
724
|
-
name: "
|
|
725
|
-
category: "
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
message: "The Vitest addon setup failed.",
|
|
729
|
-
subErrors: data.errors
|
|
760
|
+
name: "OpenServiceDuplicateToolsetError",
|
|
761
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
762
|
+
code: 24,
|
|
763
|
+
message: `A toolset with id "${data.toolsetId}" is already registered. Each public toolset must be registered exactly once.`
|
|
730
764
|
});
|
|
731
765
|
this.data = data;
|
|
732
766
|
}
|
|
733
|
-
},
|
|
734
|
-
constructor() {
|
|
767
|
+
}, OpenServiceModuleGraphUnavailableError = class extends StorybookError {
|
|
768
|
+
constructor(data) {
|
|
735
769
|
super({
|
|
736
|
-
name: "
|
|
737
|
-
category: "
|
|
738
|
-
code:
|
|
739
|
-
message:
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
Please remove the \`--stats-json\` flag when running in dev mode.`
|
|
770
|
+
name: "OpenServiceModuleGraphUnavailableError",
|
|
771
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
772
|
+
code: 25,
|
|
773
|
+
message: data.reason,
|
|
774
|
+
agentFacing: !0
|
|
743
775
|
});
|
|
776
|
+
this.data = data;
|
|
744
777
|
}
|
|
745
|
-
},
|
|
746
|
-
constructor() {
|
|
778
|
+
}, OpenServiceToolsetOutputMismatchError = class extends StorybookError {
|
|
779
|
+
constructor(data) {
|
|
780
|
+
let serialized;
|
|
781
|
+
try {
|
|
782
|
+
serialized = JSON.stringify(data.issues)?.slice(0, 2e3) ?? String(data.issues);
|
|
783
|
+
} catch {
|
|
784
|
+
serialized = `${data.issues.length} issue(s) that could not be serialized`;
|
|
785
|
+
}
|
|
747
786
|
super({
|
|
748
|
-
name: "
|
|
749
|
-
category: "
|
|
750
|
-
code:
|
|
751
|
-
message:
|
|
787
|
+
name: "OpenServiceToolsetOutputMismatchError",
|
|
788
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
789
|
+
code: 26,
|
|
790
|
+
message: `Toolset output did not match its published output schema: ${serialized}`
|
|
752
791
|
});
|
|
792
|
+
this.data = data;
|
|
753
793
|
}
|
|
754
|
-
},
|
|
794
|
+
}, OpenServiceInvalidToolsetMethodIdError = class extends StorybookError {
|
|
755
795
|
constructor(data) {
|
|
756
796
|
super({
|
|
757
|
-
name: "
|
|
758
|
-
category: "
|
|
759
|
-
code:
|
|
760
|
-
message:
|
|
761
|
-
Unable to find versions of "${data.packageName}" using ${data.packageManager}
|
|
762
|
-
${data.error && `Reason: ${data.error}`}`
|
|
797
|
+
name: "OpenServiceInvalidToolsetMethodIdError",
|
|
798
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
799
|
+
code: 28,
|
|
800
|
+
message: `Invalid toolset method id "${data.methodId}". Expected exactly one separator: toolsetId.methodName.`
|
|
763
801
|
});
|
|
764
802
|
this.data = data;
|
|
765
803
|
}
|
|
766
|
-
},
|
|
804
|
+
}, OpenServiceDuplicateToolNameError = class extends StorybookError {
|
|
767
805
|
constructor(data) {
|
|
768
806
|
super({
|
|
769
|
-
name: "
|
|
770
|
-
category: "
|
|
771
|
-
code:
|
|
772
|
-
message:
|
|
773
|
-
Incompatible PostCSS configuration format detected.
|
|
774
|
-
|
|
775
|
-
Next.js uses an array-based format for plugins which is not compatible with Vite:
|
|
776
|
-
|
|
777
|
-
// ❌ Incompatible format (used by Next.js)
|
|
778
|
-
const config = {
|
|
779
|
-
plugins: ["@tailwindcss/postcss"],
|
|
780
|
-
};
|
|
781
|
-
|
|
782
|
-
Please transform your PostCSS config to use the object-based format, which is compatible with Next.js and Vite:
|
|
783
|
-
|
|
784
|
-
// ✅ Compatible format (works with Next.js and Vite)
|
|
785
|
-
const config = {
|
|
786
|
-
plugins: {
|
|
787
|
-
"@tailwindcss/postcss": {},
|
|
788
|
-
},
|
|
789
|
-
};
|
|
790
|
-
|
|
791
|
-
Original error: ${data.error.message}
|
|
792
|
-
`
|
|
807
|
+
name: "OpenServiceDuplicateToolNameError",
|
|
808
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
809
|
+
code: 29,
|
|
810
|
+
message: data.transport === "mcp" ? `Derived MCP tool name "${data.derivedName}" collides between "${data.first}" and "${data.second}". Rename one toolset id or method key.` : `Derived CLI method name "${data.derivedName}" collides between "${data.first}" and "${data.second}" in the same toolset. Rename one method key.`
|
|
793
811
|
});
|
|
794
812
|
this.data = data;
|
|
795
813
|
}
|
|
796
|
-
}
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
// src/errors/server/package-manager.ts
|
|
817
|
+
import { dedent as dedent6 } from "ts-dedent";
|
|
818
|
+
var FindPackageVersionsError = class extends StorybookError {
|
|
797
819
|
constructor(data) {
|
|
798
820
|
super({
|
|
799
|
-
name: "
|
|
800
|
-
category: "
|
|
821
|
+
name: "FindPackageVersionsError",
|
|
822
|
+
category: "CLI" /* CLI */,
|
|
801
823
|
code: 1,
|
|
802
|
-
message:
|
|
803
|
-
Unable to
|
|
824
|
+
message: dedent6`
|
|
825
|
+
Unable to find versions of "${data.packageName}" using ${data.packageManager}
|
|
804
826
|
${data.error && `Reason: ${data.error}`}`
|
|
805
827
|
});
|
|
806
828
|
this.data = data;
|
|
@@ -814,7 +836,7 @@ function formatExecaFailureDetails(data) {
|
|
|
814
836
|
return trimmedLogs || (data.exitCode != null ? `Process exited with code ${data.exitCode}` : data.signal ? `Process was killed with signal ${data.signal}` : "No additional output was captured.");
|
|
815
837
|
}
|
|
816
838
|
function createExecaCommandFailedMessage(data) {
|
|
817
|
-
return
|
|
839
|
+
return dedent6`
|
|
818
840
|
Command failed: ${formatExecaCommand(data)}
|
|
819
841
|
|
|
820
842
|
${formatExecaFailureDetails(data)}`;
|
|
@@ -837,7 +859,7 @@ var ExecaCommandFailedError = class extends StorybookError {
|
|
|
837
859
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
838
860
|
code: 10,
|
|
839
861
|
cause: data.cause,
|
|
840
|
-
message:
|
|
862
|
+
message: dedent6`
|
|
841
863
|
Failed to install dependencies using ${data.command}.
|
|
842
864
|
|
|
843
865
|
${formatExecaFailureDetails(data)}`
|
|
@@ -851,7 +873,7 @@ var ExecaCommandFailedError = class extends StorybookError {
|
|
|
851
873
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
852
874
|
code: 11,
|
|
853
875
|
cause: data.cause,
|
|
854
|
-
message:
|
|
876
|
+
message: dedent6`
|
|
855
877
|
Dependency installation failed because of a version conflict.
|
|
856
878
|
|
|
857
879
|
${formatExecaFailureDetails(data)}`
|
|
@@ -865,7 +887,7 @@ var ExecaCommandFailedError = class extends StorybookError {
|
|
|
865
887
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
866
888
|
code: 12,
|
|
867
889
|
cause: data.cause,
|
|
868
|
-
message:
|
|
890
|
+
message: dedent6`
|
|
869
891
|
Dependency installation failed because no package.json was found in the current directory.
|
|
870
892
|
|
|
871
893
|
${formatExecaFailureDetails(data)}`
|
|
@@ -879,7 +901,7 @@ var ExecaCommandFailedError = class extends StorybookError {
|
|
|
879
901
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
880
902
|
code: 13,
|
|
881
903
|
cause: data.cause,
|
|
882
|
-
message:
|
|
904
|
+
message: dedent6`
|
|
883
905
|
pnpm blocked postinstall scripts for one or more packages.
|
|
884
906
|
|
|
885
907
|
${formatExecaFailureDetails(data)}`
|
|
@@ -893,7 +915,7 @@ var ExecaCommandFailedError = class extends StorybookError {
|
|
|
893
915
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
894
916
|
code: 14,
|
|
895
917
|
cause: data.cause,
|
|
896
|
-
message:
|
|
918
|
+
message: dedent6`
|
|
897
919
|
pnpm aborted while removing the modules directory because no TTY was available.
|
|
898
920
|
|
|
899
921
|
${formatExecaFailureDetails(data)}`
|
|
@@ -907,7 +929,7 @@ var ExecaCommandFailedError = class extends StorybookError {
|
|
|
907
929
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
908
930
|
code: 15,
|
|
909
931
|
cause: data.cause,
|
|
910
|
-
message:
|
|
932
|
+
message: dedent6`
|
|
911
933
|
Forkbook could not find the "${data.command}" command on your PATH.
|
|
912
934
|
|
|
913
935
|
${formatExecaFailureDetails(data)}`
|
|
@@ -921,7 +943,7 @@ var ExecaCommandFailedError = class extends StorybookError {
|
|
|
921
943
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
922
944
|
code: 16,
|
|
923
945
|
cause: data.cause,
|
|
924
|
-
message:
|
|
946
|
+
message: dedent6`
|
|
925
947
|
Failed to install Playwright browser binaries.
|
|
926
948
|
|
|
927
949
|
${formatExecaFailureDetails(data)}`
|
|
@@ -931,15 +953,35 @@ var ExecaCommandFailedError = class extends StorybookError {
|
|
|
931
953
|
};
|
|
932
954
|
|
|
933
955
|
export {
|
|
934
|
-
formatIssues,
|
|
935
956
|
StorybookError,
|
|
936
957
|
Category,
|
|
958
|
+
GenerateNewProjectOnInitError,
|
|
959
|
+
MinimumReleaseAgeHandledError,
|
|
960
|
+
AddonVitestPostinstallPrerequisiteCheckError,
|
|
961
|
+
AddonVitestPostinstallWorkspaceUpdateError,
|
|
962
|
+
AddonVitestPostinstallConfigUpdateError,
|
|
963
|
+
AddonVitestPostinstallError,
|
|
937
964
|
NxProjectDetectedError,
|
|
938
965
|
MissingFrameworkFieldError,
|
|
939
966
|
InvalidFrameworkNameError,
|
|
940
967
|
CouldNotEvaluateFrameworkError,
|
|
941
968
|
ConflictingStaticDirConfigError,
|
|
942
969
|
InvalidStoriesEntryError,
|
|
970
|
+
CriticalPresetLoadError,
|
|
971
|
+
MissingBuilderError,
|
|
972
|
+
NoMatchingExportError,
|
|
973
|
+
MainFileMissingError,
|
|
974
|
+
MainFileEvaluationError,
|
|
975
|
+
GoogleFontsDownloadError,
|
|
976
|
+
GoogleFontsLoadingError,
|
|
977
|
+
NoStatsForViteDevError,
|
|
978
|
+
ViteModuleGraphSubscriptionError,
|
|
979
|
+
IncompatiblePostCssConfigError,
|
|
980
|
+
StatusTypeIdMismatchError,
|
|
981
|
+
NoFreePortError,
|
|
982
|
+
StorybookDevServerDisconnectedError,
|
|
983
|
+
SavingGlobalSettingsFileError,
|
|
984
|
+
formatIssues,
|
|
943
985
|
OpenServiceValidationError,
|
|
944
986
|
OpenServiceDuplicateRegistrationError,
|
|
945
987
|
OpenServiceMissingServiceError,
|
|
@@ -967,27 +1009,7 @@ export {
|
|
|
967
1009
|
OpenServiceToolsetOutputMismatchError,
|
|
968
1010
|
OpenServiceInvalidToolsetMethodIdError,
|
|
969
1011
|
OpenServiceDuplicateToolNameError,
|
|
970
|
-
CriticalPresetLoadError,
|
|
971
|
-
MissingBuilderError,
|
|
972
|
-
GoogleFontsDownloadError,
|
|
973
|
-
GoogleFontsLoadingError,
|
|
974
|
-
NoMatchingExportError,
|
|
975
|
-
MainFileMissingError,
|
|
976
|
-
MainFileEvaluationError,
|
|
977
|
-
StatusTypeIdMismatchError,
|
|
978
|
-
NoFreePortError,
|
|
979
|
-
StorybookDevServerDisconnectedError,
|
|
980
|
-
GenerateNewProjectOnInitError,
|
|
981
|
-
MinimumReleaseAgeHandledError,
|
|
982
|
-
AddonVitestPostinstallPrerequisiteCheckError,
|
|
983
|
-
AddonVitestPostinstallWorkspaceUpdateError,
|
|
984
|
-
AddonVitestPostinstallConfigUpdateError,
|
|
985
|
-
AddonVitestPostinstallError,
|
|
986
|
-
NoStatsForViteDevError,
|
|
987
|
-
ViteModuleGraphSubscriptionError,
|
|
988
1012
|
FindPackageVersionsError,
|
|
989
|
-
IncompatiblePostCssConfigError,
|
|
990
|
-
SavingGlobalSettingsFileError,
|
|
991
1013
|
formatExecaCommand,
|
|
992
1014
|
formatExecaFailureDetails,
|
|
993
1015
|
ExecaCommandFailedError,
|