@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,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { X as StrictArgTypes$3, s as Args$3 } from "./chunk-
|
|
1
|
+
import { a as RenderData } from "./chunk-BLZXEm1K.js";
|
|
2
|
+
import { s as ThemeVars$1 } from "./chunk-D3uSIa6H.js";
|
|
3
|
+
import { p as Channel$1 } from "./chunk-u_gGuTrz.js";
|
|
4
|
+
import { A as OperationInputSchemas, C as Commands, F as QueryFunctions, G as ServiceInstance, H as ServiceDefinition, J as ServiceRegistryApi, K as ServiceInstanceOf, L as QueryState, M as Query, O as MatchingOutputSchemas, P as QueryDefinition, Q as StandardSchemaV1, W as ServiceId, Y as ServiceState, a as ToolsetCtx, f as ToolsetOutcome, j as Queries, o as ToolsetDefinition, q as ServiceRegistrationOptions, t as AnyToolsetDefinition, v as AnyServiceDefinition, w as GetServiceOptions, x as CommandDefinition, z as RuntimeService } from "./chunk-BtKww7r1.js";
|
|
5
|
+
import { X as StrictArgTypes$3, s as Args$3 } from "./chunk-DNCU78oW.js";
|
|
6
6
|
import { t as Options$3 } from "./chunk-C6PAgHLT.js";
|
|
7
|
-
import { a as StoryStore, i as RenderType, n as StoryRender, r as Render, s as ReporterAPI, u as StorySpecifier } from "./chunk-
|
|
7
|
+
import { a as StoryStore, i as RenderType, n as StoryRender, r as Render, s as ReporterAPI, u as StorySpecifier } from "./chunk-Bubi-WAs.js";
|
|
8
8
|
import { AfterEach as AfterEach$1, AnnotatedStoryFn as AnnotatedStoryFn$1, ArgTypes as ArgTypes$2, ArgTypesEnhancer, Args, Args as Args$2, ArgsEnhancer, ArgsFromMeta as ArgsFromMeta$1, ArgsStoryFn as ArgsStoryFn$1, BaseAnnotations as BaseAnnotations$1, BeforeAll, BeforeEach, Canvas as Canvas$1, CleanupCallback, CleanupCallback as CleanupCallback$1, ComponentAnnotations as ComponentAnnotations$1, ComponentId, ComponentTitle as ComponentTitle$1, Conditional as Conditional$1, DecoratorApplicator as DecoratorApplicator$1, DecoratorFunction as DecoratorFunction$2, GlobalTypes as GlobalTypes$1, Globals, Globals as Globals$2, IncludeExcludeOptions, InputType, LegacyAnnotatedStoryFn, LegacyStoryAnnotationsOrFn as LegacyStoryAnnotationsOrFn$1, LegacyStoryFn as LegacyStoryFn$1, LoaderFunction as LoaderFunction$1, Meta, Parameters as Parameters$2, PartialStoryFn as PartialStoryFn$1, PlayFunction, PlayFunctionContext, ProjectAnnotations, ProjectAnnotations as BaseProjectAnnotations, Renderer, Renderer as Renderer$2, SBArrayType, SBEnumType, SBIntersectionType, SBObjectType, SBOtherType, SBScalarType, SBType as SBType$1, SBUnionType, SeparatorOptions, StepFunction, StepLabel, StepRunner as StepRunner$1, Story, StoryAnnotations as StoryAnnotations$1, StoryAnnotationsOrFn as StoryAnnotationsOrFn$1, StoryContext, StoryContext as StoryContext$2, StoryContextForEnhancers as StoryContextForEnhancers$1, StoryContextForLoaders, StoryContextForRender, StoryContextUpdate as StoryContextUpdate$1, StoryFn, StoryId, StoryId as StoryId$2, StoryIdentifier, StoryKind as StoryKind$1, StoryName as StoryName$1, StrictArgTypes, StrictArgTypes as StrictArgTypes$2, StrictArgs as StrictArgs$1, StrictInputType, Tag, Tag as Tag$2, TestFunction as TestFunction$1, ViewMode, toId } from "@aussieljk/forkbook/internal/csf";
|
|
9
|
-
import React$1, { Component, FC, PropsWithChildren, ReactElement, ReactNode } from "react";
|
|
9
|
+
import React$1, { Component, DependencyList, FC, PropsWithChildren, ReactElement, ReactNode } from "react";
|
|
10
10
|
import { Channel, ChannelLike, Listener, Listener as Listener$2 } from "@aussieljk/forkbook/internal/channels";
|
|
11
11
|
import { NavigateOptions, RouterData } from "@aussieljk/forkbook/internal/router";
|
|
12
12
|
import { API_ComponentEntry as API_ComponentEntry$1, API_ComposedRef, API_ComposedRef as API_ComposedRef$2, API_ComposedRefUpdate, API_DocsEntry, API_DocsEntry as API_DocsEntry$2, API_FilterFunction, API_GroupEntry as API_GroupEntry$1, API_HashEntry, API_HashEntry as API_HashEntry$2, API_IframeRenderer, API_IndexHash, API_IndexHash as API_IndexHash$2, API_Layout, API_LayoutCustomisations, API_LeafEntry, API_LeafEntry as API_LeafEntry$2, API_LoadedRefData, API_Notification, API_OptionsData, API_PanelPositions, API_PreparedStoryIndex, API_Provider, API_ProviderData, API_Refs, API_Refs as API_Refs$2, API_RootEntry as API_RootEntry$1, API_SetRefData, API_Settings, API_SidebarOptions, API_StateMerger, API_StoryEntry, API_StoryEntry as API_StoryEntry$2, API_TestEntry, API_UI, API_UnknownEntries, API_Version, API_Versions, API_ViewMode, Addon_BaseType, Addon_Collection, Addon_Config, Addon_PageType, Addon_StorySortParameterV7, Addon_StoryWrapper, Addon_TestProviderType, Addon_Type as Addon_Type$1, Addon_Types, Addon_TypesEnum, Addon_TypesEnum as Addon_TypesEnum$2, Addon_TypesMapping, Addon_WrapperType, ArgTypes as ArgTypes$1, Args as Args$1, CSFFile, ComponentAnnotations, ComposeStoryFn, ComposedStoryFn, DecoratorFunction as DecoratorFunction$1, DocsContextProps as DocsContextProps$1, GlobalTypes, Globals as Globals$1, IndexEntry, LegacyStoryAnnotationsOrFn, LegacyStoryFn, ModuleExport, ModuleExports, ModuleImportFn, ModuleResolveConfig as ModuleResolveConfig$1, NamedOrDefaultProjectAnnotations, NormalizedComponentAnnotations, NormalizedProjectAnnotations, NormalizedStoriesSpecifier, NormalizedStoryAnnotations, Parameters as Parameters$1, PartialStoryFn, Path, PreparedStory, ProjectAnnotations as ProjectAnnotations$1, RenderContextCallbacks, RenderToCanvas, Renderer as Renderer$1, ResolvedModuleExportFromType, ResolvedModuleExportType, StatusByTypeId, StatusValue, StepRunner, Store_CSFExports, StoryAnnotationsOrFn, StoryContext as StoryContext$1, StoryContextForEnhancers, StoryContextUpdate, StoryId as StoryId$1, StoryIndex, StoryName, StoryRenderOptions, StrictArgTypes as StrictArgTypes$1, Tag as Tag$1, TagsOptions, ViewMode as ViewMode$1 } from "@aussieljk/forkbook/internal/types";
|
|
@@ -21,19 +21,283 @@ import { LogLevel } from "@aussieljk/forkbook/internal/node-logger";
|
|
|
21
21
|
import { IncomingMessage, Server, ServerResponse } from "http";
|
|
22
22
|
import { Server as Server$1 } from "net";
|
|
23
23
|
|
|
24
|
-
//#region .dts-emit/code/core/src/
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
//#region .dts-emit/code/core/src/storybook-error.d.ts
|
|
25
|
+
declare abstract class StorybookError extends Error {
|
|
26
|
+
private _name;
|
|
27
|
+
/** Category of the error. Used to classify the type of error, e.g., 'PREVIEW_API'. */
|
|
28
|
+
readonly category: string;
|
|
29
|
+
/** Code representing the error. Used to uniquely identify the error, e.g., 1. */
|
|
30
|
+
readonly code: number;
|
|
31
|
+
/**
|
|
32
|
+
* Data associated with the error. Used to provide additional information in the error message or
|
|
33
|
+
* to be passed to telemetry.
|
|
34
|
+
*/
|
|
35
|
+
readonly data: {};
|
|
36
|
+
/**
|
|
37
|
+
* Specifies the documentation for the error.
|
|
38
|
+
*
|
|
39
|
+
* - If `true`, links to a documentation page on the Forkbook website (make sure it exists before
|
|
40
|
+
* enabling) – This is not implemented yet.
|
|
41
|
+
* - If a string, uses the provided URL for documentation (external or FAQ links).
|
|
42
|
+
* - If `false` (default), no documentation link is added.
|
|
43
|
+
*/
|
|
44
|
+
readonly documentation: boolean | string | string[];
|
|
45
|
+
/** Flag used to easily determine if the error originates from Forkbook. */
|
|
46
|
+
readonly fromStorybook: true;
|
|
47
|
+
/**
|
|
48
|
+
* Marks an error whose message is written for the agent that triggered the call and names its
|
|
49
|
+
* own recovery. Adapters surface such errors verbatim instead of wrapping them as unexpected
|
|
50
|
+
* failures. A property rather than a class list, so the trait travels with the instance across
|
|
51
|
+
* bundle copies where `instanceof` would misclassify.
|
|
52
|
+
*/
|
|
53
|
+
readonly agentFacing: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Flag used to determine if the error is handled by us and should therefore not be shown to the
|
|
56
|
+
* user.
|
|
57
|
+
*/
|
|
58
|
+
isHandledError: boolean;
|
|
59
|
+
get fullErrorCode(): `FB_${string}_${string}`;
|
|
60
|
+
/** Overrides the default `Error.name` property in the format: FB_<CATEGORY>_<CODE>. */
|
|
61
|
+
get name(): string;
|
|
62
|
+
set name(name: string);
|
|
63
|
+
/**
|
|
64
|
+
* A collection of sub errors which relate to a parent error.
|
|
65
|
+
*
|
|
66
|
+
* Sub-errors are used to represent multiple related errors that occurred together. When a
|
|
67
|
+
* StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
|
|
68
|
+
* are sent as separate telemetry events. This allows for better error tracking and debugging.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
*
|
|
72
|
+
* ```ts
|
|
73
|
+
* const error1 = new SomeError();
|
|
74
|
+
* const error2 = new AnotherError();
|
|
75
|
+
* const parentError = new ParentError({
|
|
76
|
+
* // ... other props
|
|
77
|
+
* subErrors: [error1, error2],
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
subErrors: StorybookError[];
|
|
82
|
+
constructor(props: {
|
|
83
|
+
category: string;
|
|
84
|
+
code: number;
|
|
85
|
+
message: string;
|
|
86
|
+
cause?: unknown;
|
|
87
|
+
documentation?: boolean | string | string[];
|
|
88
|
+
isHandledError?: boolean; /** See {@link StorybookError.agentFacing}. Defaults to false. */
|
|
89
|
+
agentFacing?: boolean;
|
|
90
|
+
name: string;
|
|
91
|
+
/**
|
|
92
|
+
* Optional array of sub-errors that are related to this error. When this error is sent to
|
|
93
|
+
* telemetry, each sub-error will be sent as a separate event.
|
|
94
|
+
*/
|
|
95
|
+
subErrors?: StorybookError[];
|
|
96
|
+
});
|
|
97
|
+
/** Generates the error message along with additional documentation link (if applicable). */
|
|
98
|
+
static getFullMessage({
|
|
99
|
+
documentation,
|
|
100
|
+
code,
|
|
101
|
+
category,
|
|
102
|
+
message
|
|
103
|
+
}: ConstructorParameters<typeof StorybookError>[0]): string;
|
|
104
|
+
}
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region .dts-emit/code/core/src/errors/server/category.d.ts
|
|
27
107
|
/**
|
|
28
|
-
*
|
|
108
|
+
* If you can't find a suitable category for your error, create one based on the package name/file
|
|
109
|
+
* path of which the error is thrown. For instance: If it's from `@storybook/node-logger`, then
|
|
110
|
+
* NODE-LOGGER If it's from a package that is too broad, e.g. @aussieljk/forkbook/internal/cli-commands in the init command,
|
|
111
|
+
* then use a combination like CLI_INIT
|
|
29
112
|
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
113
|
+
declare enum Category {
|
|
114
|
+
CLI = "CLI",
|
|
115
|
+
CLI_INIT = "CLI_INIT",
|
|
116
|
+
CLI_ADD = "CLI_ADD",
|
|
117
|
+
CODEMOD = "CODEMOD",
|
|
118
|
+
CORE_SERVER = "CORE-SERVER",
|
|
119
|
+
CSF_PLUGIN = "CSF-PLUGIN",
|
|
120
|
+
CSF_TOOLS = "CSF-TOOLS",
|
|
121
|
+
CORE_COMMON = "CORE-COMMON",
|
|
122
|
+
NODE_LOGGER = "NODE-LOGGER",
|
|
123
|
+
TELEMETRY = "TELEMETRY",
|
|
124
|
+
BUILDER_MANAGER = "BUILDER-MANAGER",
|
|
125
|
+
BUILDER_VITE = "BUILDER-VITE",
|
|
126
|
+
SOURCE_LOADER = "SOURCE-LOADER",
|
|
127
|
+
POSTINSTALL = "POSTINSTALL",
|
|
128
|
+
DOCS_TOOLS = "DOCS-TOOLS",
|
|
129
|
+
FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS",
|
|
130
|
+
FRAMEWORK_REACT_VITE = "FRAMEWORK_REACT-VITE"
|
|
131
|
+
}
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region .dts-emit/code/core/src/errors/server/cli.d.ts
|
|
134
|
+
declare class GenerateNewProjectOnInitError extends StorybookError {
|
|
135
|
+
data: {
|
|
136
|
+
error: unknown | Error;
|
|
137
|
+
packageManager: string;
|
|
138
|
+
projectType: string;
|
|
139
|
+
};
|
|
140
|
+
constructor(data: {
|
|
141
|
+
error: unknown | Error;
|
|
142
|
+
packageManager: string;
|
|
143
|
+
projectType: string;
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
type MinimumReleaseAgeHandledErrorData = {
|
|
147
|
+
message: string;
|
|
148
|
+
cause?: unknown;
|
|
149
|
+
} | {
|
|
150
|
+
packageManagerName: string;
|
|
151
|
+
minimumReleaseAgeConfigName: string;
|
|
152
|
+
minimumReleaseAgeConfigDocs: string;
|
|
153
|
+
minimumReleaseAgeExclusionsConfigName?: string;
|
|
154
|
+
minimumReleaseAgeExclusionsConfigDocs?: string;
|
|
155
|
+
failedPackage?: string | null;
|
|
156
|
+
cause?: unknown;
|
|
36
157
|
};
|
|
158
|
+
declare class MinimumReleaseAgeHandledError extends StorybookError {
|
|
159
|
+
data: MinimumReleaseAgeHandledErrorData;
|
|
160
|
+
constructor(data: MinimumReleaseAgeHandledErrorData);
|
|
161
|
+
}
|
|
162
|
+
declare class AddonVitestPostinstallPrerequisiteCheckError extends StorybookError {
|
|
163
|
+
data: {
|
|
164
|
+
reasons: string[];
|
|
165
|
+
};
|
|
166
|
+
constructor(data: {
|
|
167
|
+
reasons: string[];
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
declare class AddonVitestPostinstallWorkspaceUpdateError extends StorybookError {
|
|
171
|
+
data: {
|
|
172
|
+
filePath: string;
|
|
173
|
+
};
|
|
174
|
+
constructor(data: {
|
|
175
|
+
filePath: string;
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
declare class AddonVitestPostinstallConfigUpdateError extends StorybookError {
|
|
179
|
+
data: {
|
|
180
|
+
filePath: string;
|
|
181
|
+
};
|
|
182
|
+
constructor(data: {
|
|
183
|
+
filePath: string;
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
declare class AddonVitestPostinstallError extends StorybookError {
|
|
187
|
+
data: {
|
|
188
|
+
errors: StorybookError[];
|
|
189
|
+
};
|
|
190
|
+
constructor(data: {
|
|
191
|
+
errors: StorybookError[];
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
//#endregion
|
|
195
|
+
//#region .dts-emit/code/core/src/errors/server/config.d.ts
|
|
196
|
+
declare class NxProjectDetectedError extends StorybookError {
|
|
197
|
+
constructor();
|
|
198
|
+
}
|
|
199
|
+
declare class MissingFrameworkFieldError extends StorybookError {
|
|
200
|
+
constructor();
|
|
201
|
+
}
|
|
202
|
+
declare class InvalidFrameworkNameError extends StorybookError {
|
|
203
|
+
data: {
|
|
204
|
+
frameworkName: string;
|
|
205
|
+
};
|
|
206
|
+
constructor(data: {
|
|
207
|
+
frameworkName: string;
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
declare class CouldNotEvaluateFrameworkError extends StorybookError {
|
|
211
|
+
data: {
|
|
212
|
+
frameworkName: string;
|
|
213
|
+
};
|
|
214
|
+
constructor(data: {
|
|
215
|
+
frameworkName: string;
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
declare class ConflictingStaticDirConfigError extends StorybookError {
|
|
219
|
+
constructor();
|
|
220
|
+
}
|
|
221
|
+
declare class InvalidStoriesEntryError extends StorybookError {
|
|
222
|
+
constructor();
|
|
223
|
+
}
|
|
224
|
+
declare class CriticalPresetLoadError extends StorybookError {
|
|
225
|
+
data: {
|
|
226
|
+
error: Error;
|
|
227
|
+
presetName: string;
|
|
228
|
+
};
|
|
229
|
+
constructor(data: {
|
|
230
|
+
error: Error;
|
|
231
|
+
presetName: string;
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
declare class MissingBuilderError extends StorybookError {
|
|
235
|
+
constructor();
|
|
236
|
+
}
|
|
237
|
+
declare class NoMatchingExportError extends StorybookError {
|
|
238
|
+
data: {
|
|
239
|
+
error: unknown | Error;
|
|
240
|
+
};
|
|
241
|
+
constructor(data: {
|
|
242
|
+
error: unknown | Error;
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
declare class MainFileMissingError extends StorybookError {
|
|
246
|
+
data: {
|
|
247
|
+
location: string;
|
|
248
|
+
source?: 'storybook' | 'vitest';
|
|
249
|
+
};
|
|
250
|
+
constructor(data: {
|
|
251
|
+
location: string;
|
|
252
|
+
source?: 'storybook' | 'vitest';
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
declare class MainFileEvaluationError extends StorybookError {
|
|
256
|
+
data: {
|
|
257
|
+
location: string;
|
|
258
|
+
error: Error;
|
|
259
|
+
};
|
|
260
|
+
constructor(data: {
|
|
261
|
+
location: string;
|
|
262
|
+
error: Error;
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
//#endregion
|
|
266
|
+
//#region .dts-emit/code/core/src/errors/server/builder.d.ts
|
|
267
|
+
declare class GoogleFontsDownloadError extends StorybookError {
|
|
268
|
+
data: {
|
|
269
|
+
fontFamily: string;
|
|
270
|
+
url: string;
|
|
271
|
+
};
|
|
272
|
+
constructor(data: {
|
|
273
|
+
fontFamily: string;
|
|
274
|
+
url: string;
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
declare class GoogleFontsLoadingError extends StorybookError {
|
|
278
|
+
data: {
|
|
279
|
+
error: unknown | Error;
|
|
280
|
+
url: string;
|
|
281
|
+
};
|
|
282
|
+
constructor(data: {
|
|
283
|
+
error: unknown | Error;
|
|
284
|
+
url: string;
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
declare class NoStatsForViteDevError extends StorybookError {
|
|
288
|
+
constructor();
|
|
289
|
+
}
|
|
290
|
+
declare class ViteModuleGraphSubscriptionError extends StorybookError {
|
|
291
|
+
constructor();
|
|
292
|
+
}
|
|
293
|
+
declare class IncompatiblePostCssConfigError extends StorybookError {
|
|
294
|
+
data: {
|
|
295
|
+
error: Error;
|
|
296
|
+
};
|
|
297
|
+
constructor(data: {
|
|
298
|
+
error: Error;
|
|
299
|
+
});
|
|
300
|
+
}
|
|
37
301
|
//#endregion
|
|
38
302
|
//#region .dts-emit/code/core/src/manager-api/lib/addons.d.ts
|
|
39
303
|
declare class AddonStore$1 {
|
|
@@ -48,7 +312,7 @@ declare class AddonStore$1 {
|
|
|
48
312
|
ready: () => Promise<Channel>;
|
|
49
313
|
hasChannel: () => boolean;
|
|
50
314
|
setChannel: (channel: Channel) => void;
|
|
51
|
-
getElements<T extends Addon_Types | Addon_TypesEnum$2.experimental_PAGE | Addon_TypesEnum$2.experimental_TEST_PROVIDER>(type: T): Addon_Collection<Addon_TypesMapping[T]
|
|
315
|
+
getElements<T extends Addon_Types | Addon_TypesEnum$2.experimental_PAGE | Addon_TypesEnum$2.experimental_TEST_PROVIDER>(type: T): Addon_Collection<Addon_TypesMapping[T]>;
|
|
52
316
|
/**
|
|
53
317
|
* Adds an addon to the addon store.
|
|
54
318
|
*
|
|
@@ -67,14 +331,14 @@ declare class AddonStore$1 {
|
|
|
67
331
|
* @returns {void}
|
|
68
332
|
*/
|
|
69
333
|
register: (id: string, callback: (api: API) => void) => void;
|
|
70
|
-
loadAddons: (api:
|
|
334
|
+
loadAddons: (api: API) => void;
|
|
71
335
|
experimental_getRegisteredAddons<T extends Addon_Types | Addon_TypesEnum$2.experimental_PAGE | Addon_TypesEnum$2.experimental_TEST_PROVIDER>(type?: T): string[];
|
|
72
336
|
}
|
|
73
337
|
declare const addons$1: AddonStore$1;
|
|
74
338
|
//#endregion
|
|
75
339
|
//#region .dts-emit/code/core/src/manager-api/store.d.ts
|
|
76
340
|
type GetState = () => State;
|
|
77
|
-
type SetState = (
|
|
341
|
+
type SetState = (patch: Partial<State> | ((state: State) => Partial<State>), callback: (state: State) => void) => void;
|
|
78
342
|
interface Upstream {
|
|
79
343
|
/**
|
|
80
344
|
* Whether to allow persistence of state to local/sessionStorage. This is used to disable
|
|
@@ -111,7 +375,8 @@ declare class Store {
|
|
|
111
375
|
}
|
|
112
376
|
//#endregion
|
|
113
377
|
//#region .dts-emit/code/core/src/manager-api/lib/types.d.ts
|
|
114
|
-
|
|
378
|
+
/** `Options` are extra init options that only tests pass, for example `runCheck` for refs. */
|
|
379
|
+
type ModuleFn<APIType = unknown, StateType = unknown, Options = object> = (m: ModuleArgs, options?: Options) => {
|
|
115
380
|
init?: () => void | Promise<void>;
|
|
116
381
|
api: APIType;
|
|
117
382
|
state: StateType;
|
|
@@ -124,6 +389,11 @@ type ModuleArgs = RouterData & API_ProviderData<API> & {
|
|
|
124
389
|
};
|
|
125
390
|
//#endregion
|
|
126
391
|
//#region .dts-emit/code/core/src/manager-api/modules/addons.d.ts
|
|
392
|
+
interface SubState$10 {
|
|
393
|
+
selectedPanel: string | undefined;
|
|
394
|
+
/** The state of each addon, by addon ID. */
|
|
395
|
+
addons: Record<string, unknown>;
|
|
396
|
+
}
|
|
127
397
|
interface SubAPI$13 {
|
|
128
398
|
/**
|
|
129
399
|
* Returns a collection of elements of a specific type.
|
|
@@ -132,7 +402,7 @@ interface SubAPI$13 {
|
|
|
132
402
|
* @param {Addon_Types | Addon_TypesEnum.experimental_PAGE} type - The type of the elements to
|
|
133
403
|
* retrieve.
|
|
134
404
|
* @returns {Addon_Collection<T>} - A collection of elements of the specified type.
|
|
135
|
-
* @protected This is used internally in
|
|
405
|
+
* @protected This is used internally in the Forkbook manager.
|
|
136
406
|
*/
|
|
137
407
|
getElements: <T extends Addon_Types | Addon_TypesEnum.experimental_PAGE | Addon_TypesEnum.experimental_TEST_PROVIDER>(type: T) => Addon_Collection<Addon_TypesMapping[T]>;
|
|
138
408
|
/**
|
|
@@ -144,7 +414,7 @@ interface SubAPI$13 {
|
|
|
144
414
|
*
|
|
145
415
|
* @returns {string} - The ID of the currently selected panel.
|
|
146
416
|
*/
|
|
147
|
-
getSelectedPanel: () => string;
|
|
417
|
+
getSelectedPanel: () => string | undefined;
|
|
148
418
|
/**
|
|
149
419
|
* Sets the currently selected panel via it's ID.
|
|
150
420
|
*
|
|
@@ -208,7 +478,7 @@ interface SubAPI$12 {
|
|
|
208
478
|
* `@aussieljk/forkbook/internal/core-events`.
|
|
209
479
|
* @param args - The arguments to pass to the event listener.
|
|
210
480
|
*/
|
|
211
|
-
emit: (type: string, ...args:
|
|
481
|
+
emit: (type: string, ...args: unknown[]) => void;
|
|
212
482
|
/**
|
|
213
483
|
* Adds a one-time listener to the channel for the given event type.
|
|
214
484
|
*
|
|
@@ -275,6 +545,14 @@ interface SubState$8 {
|
|
|
275
545
|
* entirely (review routes), otherwise it is 'shown' or 'hidden' based on the layout state.
|
|
276
546
|
*/
|
|
277
547
|
type NavAvailability = 'shown' | 'hidden' | 'unavailable';
|
|
548
|
+
/** The UI options that `setOptions` applies: the `options` parameter or the initial options. */
|
|
549
|
+
interface LayoutOptions {
|
|
550
|
+
layout?: Partial<API_Layout>;
|
|
551
|
+
ui?: Partial<API_UI>;
|
|
552
|
+
selectedPanel?: string;
|
|
553
|
+
theme?: Partial<ThemeVars>;
|
|
554
|
+
[key: string]: unknown;
|
|
555
|
+
}
|
|
278
556
|
interface SubAPI$10 {
|
|
279
557
|
/**
|
|
280
558
|
* Toggles the fullscreen mode of the Forkbook UI.
|
|
@@ -325,7 +603,7 @@ interface SubAPI$10 {
|
|
|
325
603
|
*
|
|
326
604
|
* @param options - An object containing the options to set.
|
|
327
605
|
*/
|
|
328
|
-
setOptions: (options:
|
|
606
|
+
setOptions: (options: LayoutOptions | undefined) => void;
|
|
329
607
|
/** Sets the sizes of the resizable elements in the layout. */
|
|
330
608
|
setSizes: (options: Partial<Pick<API_Layout, 'navSize' | 'bottomPanelHeight' | 'rightPanelWidth'>>) => void;
|
|
331
609
|
/** GetIsFullscreen - Returns the current fullscreen mode of the Forkbook UI. */
|
|
@@ -423,7 +701,7 @@ interface SubAPI$6 {
|
|
|
423
701
|
* @param {string} source - The source/URL of the composed ref.
|
|
424
702
|
* @returns {API_ComposedRef} - The composed ref object.
|
|
425
703
|
*/
|
|
426
|
-
findRef: (source: string) => API_ComposedRef;
|
|
704
|
+
findRef: (source: string) => API_ComposedRef | undefined;
|
|
427
705
|
/**
|
|
428
706
|
* Sets a composed ref by its ID and data.
|
|
429
707
|
*
|
|
@@ -471,7 +749,7 @@ interface SubAPI$6 {
|
|
|
471
749
|
//#region .dts-emit/code/core/src/manager-api/modules/settings.d.ts
|
|
472
750
|
interface SubAPI$5 {
|
|
473
751
|
storeSelection: () => void;
|
|
474
|
-
retrieveSelection: () => StoryId$1;
|
|
752
|
+
retrieveSelection: () => StoryId$1 | null;
|
|
475
753
|
/**
|
|
476
754
|
* Changes the active settings tab.
|
|
477
755
|
*
|
|
@@ -620,13 +898,13 @@ interface API_AddonShortcut {
|
|
|
620
898
|
defaultShortcut: API_KeyCollection;
|
|
621
899
|
actionName: string;
|
|
622
900
|
showInMenu?: boolean;
|
|
623
|
-
action: (...args:
|
|
901
|
+
action: (...args: never[]) => unknown;
|
|
624
902
|
}
|
|
625
903
|
type API_AddonShortcuts = Record<string, API_AddonShortcut>;
|
|
626
904
|
type API_AddonShortcutLabels = Record<string, string>;
|
|
627
905
|
type API_AddonShortcutDefaults = Record<string, API_KeyCollection>;
|
|
628
906
|
//#endregion
|
|
629
|
-
//#region .dts-emit/code/core/src/manager-api/modules/stories.d.ts
|
|
907
|
+
//#region .dts-emit/code/core/src/manager-api/modules/stories-types.d.ts
|
|
630
908
|
type Direction = -1 | 1;
|
|
631
909
|
type ParameterName = string;
|
|
632
910
|
type StoryUpdate = Partial<Pick<API_StoryEntry, 'prepared' | 'parameters' | 'initialArgs' | 'argTypes' | 'args'>>;
|
|
@@ -643,6 +921,8 @@ interface SubState$3 extends API_LoadedRefData {
|
|
|
643
921
|
excludedTagFilters: Tag$1[];
|
|
644
922
|
includedStatusFilters: StatusValue[];
|
|
645
923
|
excludedStatusFilters: StatusValue[];
|
|
924
|
+
/** Whether the manager has applied the options of the first prepared story. */
|
|
925
|
+
hasCalledSetOptions: boolean;
|
|
646
926
|
}
|
|
647
927
|
interface SubAPI$3 {
|
|
648
928
|
/**
|
|
@@ -744,13 +1024,13 @@ interface SubAPI$3 {
|
|
|
744
1024
|
* retrieve parameters for, or an object containing the story ID and ref ID.
|
|
745
1025
|
* @param {ParameterName} [parameterName] - The name of the parameter to retrieve. If not
|
|
746
1026
|
* provided, returns all parameters.
|
|
747
|
-
* @returns {
|
|
1027
|
+
* @returns {unknown} The parameters, or the named parameter, for the given story ID and
|
|
748
1028
|
* optional ref ID.
|
|
749
1029
|
*/
|
|
750
1030
|
getParameters: (storyId: StoryId$1 | {
|
|
751
1031
|
storyId: StoryId$1;
|
|
752
1032
|
refId: string;
|
|
753
|
-
}, parameterName?: ParameterName) =>
|
|
1033
|
+
}, parameterName?: ParameterName) => unknown;
|
|
754
1034
|
/**
|
|
755
1035
|
* Returns the current value of the specified parameter for the currently selected story.
|
|
756
1036
|
*
|
|
@@ -811,9 +1091,9 @@ interface SubAPI$3 {
|
|
|
811
1091
|
* @param {API_IndexHash} index - The story index to search for the sibling in.
|
|
812
1092
|
* @param {Direction} direction - The direction to search for the sibling in.
|
|
813
1093
|
* @param {boolean} toSiblingGroup - When true, skips over leafs within the same group.
|
|
814
|
-
* @returns {StoryId} The ID of the sibling story, or
|
|
1094
|
+
* @returns {StoryId | undefined} The ID of the sibling story, or undefined if there is none.
|
|
815
1095
|
*/
|
|
816
|
-
findSiblingStoryId(storyId: StoryId$1, index: API_IndexHash, direction: Direction, toSiblingGroup: boolean): StoryId$1;
|
|
1096
|
+
findSiblingStoryId(storyId: StoryId$1, index: API_IndexHash, direction: Direction, toSiblingGroup: boolean): StoryId$1 | undefined;
|
|
817
1097
|
/**
|
|
818
1098
|
* Fetches the story index from the server.
|
|
819
1099
|
*
|
|
@@ -933,7 +1213,7 @@ interface SubAPI$2 {
|
|
|
933
1213
|
* @param {boolean} [options.inheritGlobals] - Inherit globals from the current URL. Defaults to
|
|
934
1214
|
* true.
|
|
935
1215
|
* @param {QueryParams} [options.queryParams] - Query params to add to the URL.
|
|
936
|
-
* @param {string} [options.refId] - ID of the ref to get the URL for (for composed
|
|
1216
|
+
* @param {string} [options.refId] - ID of the ref to get the URL for (for composed Forkbooks)
|
|
937
1217
|
* @param {string} [options.viewMode] - The view mode to use, defaults to 'story'.
|
|
938
1218
|
* @param {boolean} [options.embed] - Append `embed=true` so the preview broadcasts
|
|
939
1219
|
* content dimensions to an embedding parent via `iframe.resize` postMessage. Affects
|
|
@@ -971,7 +1251,6 @@ interface SubAPI$2 {
|
|
|
971
1251
|
* path: string;
|
|
972
1252
|
* viewMode?: string;
|
|
973
1253
|
* storyId?: string;
|
|
974
|
-
* url: string;
|
|
975
1254
|
* }}
|
|
976
1255
|
* An object containing the current state of the URL.
|
|
977
1256
|
*/
|
|
@@ -981,7 +1260,6 @@ interface SubAPI$2 {
|
|
|
981
1260
|
hash: string;
|
|
982
1261
|
viewMode?: string;
|
|
983
1262
|
storyId?: string;
|
|
984
|
-
url: string;
|
|
985
1263
|
};
|
|
986
1264
|
/**
|
|
987
1265
|
* Set the query parameters for the current URL.
|
|
@@ -1056,17 +1334,17 @@ type SubAPI = {
|
|
|
1056
1334
|
};
|
|
1057
1335
|
//#endregion
|
|
1058
1336
|
//#region .dts-emit/code/core/src/manager-api/lib/request-response.d.ts
|
|
1059
|
-
declare class RequestResponseError<Payload extends Record<string,
|
|
1337
|
+
declare class RequestResponseError<Payload extends Record<string, unknown> | void> extends Error {
|
|
1060
1338
|
payload: Payload | undefined;
|
|
1061
1339
|
constructor(message: string, payload?: Payload);
|
|
1062
1340
|
}
|
|
1063
|
-
declare const experimental_requestResponse: <RequestPayload, ResponsePayload = void, ErrorPayload extends Record<string,
|
|
1341
|
+
declare const experimental_requestResponse: <RequestPayload, ResponsePayload = void, ErrorPayload extends Record<string, unknown> | void = void>(channel: Channel, requestEvent: string, responseEvent: string, payload: RequestPayload, timeout?: number) => Promise<ResponsePayload>;
|
|
1064
1342
|
//#endregion
|
|
1065
1343
|
//#region .dts-emit/code/core/src/manager-api/lib/platform.d.ts
|
|
1066
1344
|
declare const isMacLike: () => boolean;
|
|
1067
1345
|
//#endregion
|
|
1068
1346
|
//#region .dts-emit/code/core/src/manager-api/lib/merge.d.ts
|
|
1069
|
-
declare function _default<TObj
|
|
1347
|
+
declare function _default<TObj extends object>(a: TObj, ...b: Partial<TObj>[]): TObj;
|
|
1070
1348
|
//#endregion
|
|
1071
1349
|
//#region .dts-emit/code/core/src/manager-api/root.d.ts
|
|
1072
1350
|
declare const ActiveTabs: {
|
|
@@ -1078,11 +1356,8 @@ declare const ManagerContext: React$1.Context<{
|
|
|
1078
1356
|
api: API;
|
|
1079
1357
|
state: State;
|
|
1080
1358
|
}>;
|
|
1081
|
-
type State = SubState$8 & SubState$3 & SubState$6 & SubState$7 & SubState$1 & SubState$2 & SubState$4 & SubState$5 & SubState$9 & SubState & RouterData & API_OptionsData
|
|
1082
|
-
type API = SubAPI$13 & SubAPI$12 & SubAPI$7 & SubAPI$3 & SubAPI$6 & SubAPI$11 & SubAPI$10 & SubAPI$9 & SubAPI$4 & SubAPI$5 & SubAPI$1 & SubAPI$2 & SubAPI & SubAPI$8 &
|
|
1083
|
-
interface Other {
|
|
1084
|
-
[key: string]: any;
|
|
1085
|
-
}
|
|
1359
|
+
type State = SubState$10 & SubState$8 & SubState$3 & SubState$6 & SubState$7 & SubState$1 & SubState$2 & SubState$4 & SubState$5 & SubState$9 & SubState & RouterData & API_OptionsData;
|
|
1360
|
+
type API = SubAPI$13 & SubAPI$12 & SubAPI$7 & SubAPI$3 & SubAPI$6 & SubAPI$11 & SubAPI$10 & SubAPI$9 & SubAPI$4 & SubAPI$5 & SubAPI$1 & SubAPI$2 & SubAPI & SubAPI$8 & Pick<RouterData, 'navigate'>;
|
|
1086
1361
|
interface Combo {
|
|
1087
1362
|
api: API;
|
|
1088
1363
|
state: State;
|
|
@@ -1116,7 +1391,7 @@ declare function useStorybookApi(): API;
|
|
|
1116
1391
|
interface API_EventMap {
|
|
1117
1392
|
[eventId: string]: Listener$2;
|
|
1118
1393
|
}
|
|
1119
|
-
declare const useChannel: (eventMap: API_EventMap, deps?:
|
|
1394
|
+
declare const useChannel: (eventMap: API_EventMap, deps?: DependencyList) => (type: string, ...args: unknown[]) => void;
|
|
1120
1395
|
declare function useStoryPrepared(storyId?: StoryId$1): boolean;
|
|
1121
1396
|
declare function useParameter<S>(parameterKey: string, defaultValue?: S): S;
|
|
1122
1397
|
declare function useSharedState<S>(stateId: string, defaultState?: S): [S, (newStateOrMerger: S | API_StateMerger<S>, options?: Options$2) => void];
|
|
@@ -1143,7 +1418,7 @@ type EventInfo = {
|
|
|
1143
1418
|
type Listener$1<TEvent> = (event: TEvent, eventInfo: EventInfo) => void;
|
|
1144
1419
|
type BaseEvent = {
|
|
1145
1420
|
type: string;
|
|
1146
|
-
payload?:
|
|
1421
|
+
payload?: unknown;
|
|
1147
1422
|
};
|
|
1148
1423
|
interface SetStateEvent<TState> extends BaseEvent {
|
|
1149
1424
|
type: typeof UniversalStore.InternalEventType.SET_STATE;
|
|
@@ -1237,13 +1512,7 @@ type EnvironmentOverrides = {
|
|
|
1237
1512
|
* @throws {Error} If a follower is created with initial state
|
|
1238
1513
|
* @throws {Error} If a follower cannot find its leader within 1 second
|
|
1239
1514
|
*/
|
|
1240
|
-
declare class UniversalStore<State, CustomEvent extends {
|
|
1241
|
-
type: string;
|
|
1242
|
-
payload?: any;
|
|
1243
|
-
} = {
|
|
1244
|
-
type: string;
|
|
1245
|
-
payload?: any;
|
|
1246
|
-
}> {
|
|
1515
|
+
declare class UniversalStore<State, CustomEvent extends BaseEvent = BaseEvent> {
|
|
1247
1516
|
/**
|
|
1248
1517
|
* Defines the possible actor types in the store system
|
|
1249
1518
|
*
|
|
@@ -1330,13 +1599,7 @@ declare class UniversalStore<State, CustomEvent extends {
|
|
|
1330
1599
|
private actorType;
|
|
1331
1600
|
protected constructor(options: StoreOptions<State>, environmentOverrides?: EnvironmentOverrides);
|
|
1332
1601
|
/** Creates a new instance of UniversalStore */
|
|
1333
|
-
static create<State = any, CustomEvent extends
|
|
1334
|
-
type: string;
|
|
1335
|
-
payload?: any;
|
|
1336
|
-
} = {
|
|
1337
|
-
type: string;
|
|
1338
|
-
payload?: any;
|
|
1339
|
-
}>(options: StoreOptions<State>): UniversalStore<State, CustomEvent>;
|
|
1602
|
+
static create<State = any, CustomEvent extends BaseEvent = BaseEvent>(options: StoreOptions<State>): UniversalStore<State, CustomEvent>;
|
|
1340
1603
|
/** Gets the current state */
|
|
1341
1604
|
getState: () => State;
|
|
1342
1605
|
/**
|
|
@@ -1382,11 +1645,15 @@ declare class UniversalStore<State, CustomEvent extends {
|
|
|
1382
1645
|
* `@aussieljk/forkbook/preview-api` instead.
|
|
1383
1646
|
*/
|
|
1384
1647
|
declare const useUniversalStore: {
|
|
1385
|
-
<TUniversalStore extends UniversalStore<TState, any>, TState = (TUniversalStore extends UniversalStore<infer S,
|
|
1386
|
-
<TUniversalStore extends UniversalStore<any, any>, TSelectedState, TState = (TUniversalStore extends UniversalStore<infer S,
|
|
1648
|
+
<TUniversalStore extends UniversalStore<TState, any>, TState = (TUniversalStore extends UniversalStore<infer S, infer _CustomEvent> ? S : never)>(universalStore: TUniversalStore): [TState, TUniversalStore['setState']];
|
|
1649
|
+
<TUniversalStore extends UniversalStore<any, any>, TSelectedState, TState = (TUniversalStore extends UniversalStore<infer S, infer _CustomEvent> ? S : never)>(universalStore: TUniversalStore, selector: (state: TState) => TSelectedState): [TSelectedState, TUniversalStore['setState']];
|
|
1387
1650
|
};
|
|
1388
1651
|
//#endregion
|
|
1389
1652
|
//#region .dts-emit/code/core/src/shared/universal-store/mock.d.ts
|
|
1653
|
+
/** The spy factory of a test library, such as `vi` from Vitest or `@aussieljk/forkbook/test`. */
|
|
1654
|
+
type TestUtils = {
|
|
1655
|
+
fn: (implementation: (...args: never[]) => unknown) => unknown;
|
|
1656
|
+
};
|
|
1390
1657
|
/**
|
|
1391
1658
|
* A mock universal store that can be used when testing code that relies on a universal store. It
|
|
1392
1659
|
* functions exactly like a normal universal store, with a few exceptions:
|
|
@@ -1419,23 +1686,11 @@ declare const useUniversalStore: {
|
|
|
1419
1686
|
* }
|
|
1420
1687
|
* ```
|
|
1421
1688
|
*/
|
|
1422
|
-
declare class MockUniversalStore<State, CustomEvent extends {
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
} = {
|
|
1426
|
-
type: string;
|
|
1427
|
-
payload?: any;
|
|
1428
|
-
}> extends UniversalStore<State, CustomEvent> {
|
|
1429
|
-
private testUtils;
|
|
1430
|
-
constructor(options: StoreOptions<State>, testUtils?: any);
|
|
1689
|
+
declare class MockUniversalStore<State, CustomEvent extends BaseEvent = BaseEvent> extends UniversalStore<State, CustomEvent> {
|
|
1690
|
+
private testUtils?;
|
|
1691
|
+
constructor(options: StoreOptions<State>, testUtils?: TestUtils);
|
|
1431
1692
|
/** Create a mock universal store. This is just an alias for the constructor */
|
|
1432
|
-
static create<State = any, CustomEvent extends
|
|
1433
|
-
type: string;
|
|
1434
|
-
payload?: any;
|
|
1435
|
-
} = {
|
|
1436
|
-
type: string;
|
|
1437
|
-
payload?: any;
|
|
1438
|
-
}>(options: StoreOptions<State>, testUtils?: any): MockUniversalStore<State, CustomEvent>;
|
|
1693
|
+
static create<State = any, CustomEvent extends BaseEvent = BaseEvent>(options: StoreOptions<State>, testUtils?: TestUtils): MockUniversalStore<State, CustomEvent>;
|
|
1439
1694
|
unsubscribeAll(): void;
|
|
1440
1695
|
}
|
|
1441
1696
|
//#endregion
|
|
@@ -2108,7 +2363,7 @@ type DocsSource = {
|
|
|
2108
2363
|
//#endregion
|
|
2109
2364
|
//#region .dts-emit/code/core/src/shared/open-service/toolsets/docs/definition.d.ts
|
|
2110
2365
|
/**
|
|
2111
|
-
* Which
|
|
2366
|
+
* Which Forkbooks these tools serve — exactly one of the two.
|
|
2112
2367
|
*
|
|
2113
2368
|
* Modelled as an exclusive union so neither "no access at all" nor "both, one silently winning" can
|
|
2114
2369
|
* be constructed: a composition takes a `storybookId` on every lookup and a single Forkbook must
|
|
@@ -2118,7 +2373,7 @@ type CreateDocsToolsetOptions = {
|
|
|
2118
2373
|
/** Reads the one Forkbook these tools serve. */docsAccess: DocsAccess;
|
|
2119
2374
|
sources?: never;
|
|
2120
2375
|
} | {
|
|
2121
|
-
/** The composed
|
|
2376
|
+
/** The composed Forkbooks these tools serve; ids are only unique within a source. */sources: DocsSource[];
|
|
2122
2377
|
docsAccess?: never;
|
|
2123
2378
|
};
|
|
2124
2379
|
type DocsListOutput = {
|
|
@@ -4014,6 +4269,122 @@ declare enum SupportedRenderer$1 {
|
|
|
4014
4269
|
REACT_NATIVE = "react-native"
|
|
4015
4270
|
}
|
|
4016
4271
|
//#endregion
|
|
4272
|
+
//#region .dts-emit/code/core/src/types/modules/api-stories.d.ts
|
|
4273
|
+
interface API_BaseEntry {
|
|
4274
|
+
id: StoryId$2;
|
|
4275
|
+
depth: number;
|
|
4276
|
+
name: string;
|
|
4277
|
+
tags: Tag$2[];
|
|
4278
|
+
refId?: string;
|
|
4279
|
+
renderAriaLabel?: API_SidebarOptions['renderAriaLabel'];
|
|
4280
|
+
renderLabel?: API_SidebarOptions['renderLabel'];
|
|
4281
|
+
}
|
|
4282
|
+
interface API_RootEntry extends API_BaseEntry {
|
|
4283
|
+
type: 'root';
|
|
4284
|
+
startCollapsed?: boolean;
|
|
4285
|
+
children: StoryId$2[];
|
|
4286
|
+
}
|
|
4287
|
+
interface API_GroupEntry extends API_BaseEntry {
|
|
4288
|
+
type: 'group';
|
|
4289
|
+
parent?: StoryId$2;
|
|
4290
|
+
children: StoryId$2[];
|
|
4291
|
+
}
|
|
4292
|
+
interface API_ComponentEntry extends API_BaseEntry {
|
|
4293
|
+
type: 'component';
|
|
4294
|
+
parent?: StoryId$2;
|
|
4295
|
+
children: StoryId$2[];
|
|
4296
|
+
importPath?: Path$1;
|
|
4297
|
+
}
|
|
4298
|
+
interface API_DocsEntry$1 extends API_BaseEntry {
|
|
4299
|
+
type: 'docs';
|
|
4300
|
+
parent: StoryId$2;
|
|
4301
|
+
title: ComponentTitle$1;
|
|
4302
|
+
importPath: Path$1;
|
|
4303
|
+
prepared: boolean;
|
|
4304
|
+
parameters?: {
|
|
4305
|
+
[parameterName: string]: unknown;
|
|
4306
|
+
};
|
|
4307
|
+
anchors?: DocsAnchor$1[];
|
|
4308
|
+
}
|
|
4309
|
+
interface API_StoryEntry$1 extends API_BaseEntry {
|
|
4310
|
+
type: 'story';
|
|
4311
|
+
subtype: 'story';
|
|
4312
|
+
parent: StoryId$2;
|
|
4313
|
+
title: ComponentTitle$1;
|
|
4314
|
+
importPath: Path$1;
|
|
4315
|
+
exportName: string;
|
|
4316
|
+
prepared: boolean;
|
|
4317
|
+
parameters?: {
|
|
4318
|
+
[parameterName: string]: unknown;
|
|
4319
|
+
};
|
|
4320
|
+
args?: Args$2;
|
|
4321
|
+
argTypes?: ArgTypes$2;
|
|
4322
|
+
initialArgs?: Args$2;
|
|
4323
|
+
children?: StoryId$2[];
|
|
4324
|
+
}
|
|
4325
|
+
interface API_TestEntry$1 extends Omit<API_StoryEntry$1, 'subtype' | 'children' | 'parent'> {
|
|
4326
|
+
parent: StoryId$2;
|
|
4327
|
+
subtype: 'test';
|
|
4328
|
+
}
|
|
4329
|
+
type API_LeafEntry$1 = API_DocsEntry$1 | API_StoryEntry$1 | API_TestEntry$1;
|
|
4330
|
+
/**
|
|
4331
|
+
* Runtime enrichment for a composed ref's stories/docs, keyed by entry id. These fields come from
|
|
4332
|
+
* the ref preview's STORY_PREPARED / DOCS_PREPARED events and are not part of the ref's static story
|
|
4333
|
+
* index, so they are cached per ref and re-applied whenever the ref index is (re)built.
|
|
4334
|
+
*/
|
|
4335
|
+
type API_RefStoryRuntimeData = Record<StoryId$2, Partial<Pick<API_StoryEntry$1, 'prepared' | 'parameters' | 'args' | 'argTypes' | 'initialArgs'>>>;
|
|
4336
|
+
type API_HashEntry$1 = API_RootEntry | API_GroupEntry | API_ComponentEntry | API_DocsEntry$1 | API_StoryEntry$1 | API_TestEntry$1;
|
|
4337
|
+
/**
|
|
4338
|
+
* The `IndexHash` is our manager-side representation of the `StoryIndex`. We create entries in the
|
|
4339
|
+
* hash not only for each story or docs entry, but also for each "group" of the component (split on
|
|
4340
|
+
* '/'), as that's how things are manipulated in parts of the manager (i.e. in search).
|
|
4341
|
+
*/
|
|
4342
|
+
interface API_IndexHash$1 {
|
|
4343
|
+
[id: string]: API_HashEntry$1;
|
|
4344
|
+
}
|
|
4345
|
+
type API_PreparedIndexEntry = IndexEntry$1 & {
|
|
4346
|
+
parameters?: Parameters$2;
|
|
4347
|
+
argTypes?: ArgTypes$2;
|
|
4348
|
+
args?: Args$2;
|
|
4349
|
+
initialArgs?: Args$2;
|
|
4350
|
+
};
|
|
4351
|
+
interface API_PreparedStoryIndex$1 {
|
|
4352
|
+
v: number;
|
|
4353
|
+
entries: Record<StoryId$2, API_PreparedIndexEntry>;
|
|
4354
|
+
}
|
|
4355
|
+
type API_OptionsData$1 = {
|
|
4356
|
+
docsOptions: DocsOptions$1;
|
|
4357
|
+
};
|
|
4358
|
+
interface API_ReleaseNotes {
|
|
4359
|
+
success?: boolean;
|
|
4360
|
+
currentVersion?: string;
|
|
4361
|
+
showOnFirstLaunch?: boolean;
|
|
4362
|
+
}
|
|
4363
|
+
interface API_Settings$1 {
|
|
4364
|
+
/** The last story that the manager showed, or `null` before it showed one. */
|
|
4365
|
+
lastTrackedStoryId: string | null;
|
|
4366
|
+
}
|
|
4367
|
+
interface API_Version$1 {
|
|
4368
|
+
version: string;
|
|
4369
|
+
info?: {
|
|
4370
|
+
plain: string;
|
|
4371
|
+
};
|
|
4372
|
+
[key: string]: unknown;
|
|
4373
|
+
}
|
|
4374
|
+
interface API_UnknownEntries$1 {
|
|
4375
|
+
[key: string]: {
|
|
4376
|
+
[key: string]: unknown;
|
|
4377
|
+
};
|
|
4378
|
+
}
|
|
4379
|
+
interface API_Versions$2 {
|
|
4380
|
+
latest?: API_Version$1;
|
|
4381
|
+
next?: API_Version$1;
|
|
4382
|
+
current?: API_Version$1;
|
|
4383
|
+
}
|
|
4384
|
+
type API_FilterFunction$1 = (item: API_PreparedIndexEntry & {
|
|
4385
|
+
statuses: StatusByTypeId;
|
|
4386
|
+
}) => boolean;
|
|
4387
|
+
//#endregion
|
|
4017
4388
|
//#region .dts-emit/code/core/src/types/modules/core-common.d.ts
|
|
4018
4389
|
/** ⚠️ This file contains internal WIP types they MUST NOT be exported outside this package for now! */
|
|
4019
4390
|
type BuilderName = string;
|
|
@@ -4021,14 +4392,12 @@ type RendererName = string;
|
|
|
4021
4392
|
interface CoreConfig$1 {
|
|
4022
4393
|
builder?: BuilderName | {
|
|
4023
4394
|
name: BuilderName;
|
|
4024
|
-
options?: Record<string,
|
|
4395
|
+
options?: Record<string, unknown>;
|
|
4025
4396
|
};
|
|
4026
4397
|
renderer?: RendererName;
|
|
4027
4398
|
channelOptions?: Partial<Options$3> & {
|
|
4028
4399
|
wsToken?: string;
|
|
4029
4400
|
};
|
|
4030
|
-
/** Disables the generation of project.json, a file containing Forkbook metadata */
|
|
4031
|
-
disableProjectJson?: boolean;
|
|
4032
4401
|
/**
|
|
4033
4402
|
* Disables Forkbook telemetry
|
|
4034
4403
|
*
|
|
@@ -4066,32 +4435,33 @@ interface DirectoryMapping {
|
|
|
4066
4435
|
to: string;
|
|
4067
4436
|
}
|
|
4068
4437
|
interface Presets$1 {
|
|
4069
|
-
apply(extension: 'typescript', config: TypescriptOptions
|
|
4070
|
-
apply(extension: 'framework', config?: {}, args?:
|
|
4071
|
-
apply(extension: 'babel', config?: {}, args?:
|
|
4072
|
-
apply(extension: 'swc', config?: {}, args?:
|
|
4073
|
-
apply(extension: 'entries', config?: [], args?:
|
|
4074
|
-
apply(extension: 'env', config?: {}, args?:
|
|
4075
|
-
apply(extension: 'stories', config?: [], args?:
|
|
4076
|
-
apply(extension: 'managerEntries', config: [], args?:
|
|
4077
|
-
apply(extension: 'refs', config?: [], args?:
|
|
4078
|
-
apply(extension: 'core', config?: StorybookConfigRaw$1['core'], args?:
|
|
4079
|
-
apply(extension: 'docs', config?: StorybookConfigRaw$1['docs'], args?:
|
|
4080
|
-
apply(extension: 'features', config?: StorybookConfigRaw$1['features'], args?:
|
|
4081
|
-
apply(extension: 'typescript', config?: StorybookConfigRaw$1['typescript'], args?:
|
|
4082
|
-
apply(extension: 'build', config?: StorybookConfigRaw$1['build'], args?:
|
|
4083
|
-
apply(extension: 'staticDirs', config?: StorybookConfigRaw$1['staticDirs'], args?:
|
|
4084
|
-
apply(extension: 'services', config?: StorybookConfigRaw$1['services'], args?:
|
|
4085
|
-
apply(extension: 'experimental_docgenProvider', config: DocgenProviderDescriptor[], args?:
|
|
4086
|
-
apply(extension: 'experimental_storyDocsProvider', config: StoryDocsProvider, args?:
|
|
4438
|
+
apply(extension: 'typescript', config: TypescriptOptions, args?: Options$1): Promise<TypescriptOptions>;
|
|
4439
|
+
apply(extension: 'framework', config?: {}, args?: unknown): Promise<Preset>;
|
|
4440
|
+
apply(extension: 'babel', config?: {}, args?: unknown): Promise<unknown>;
|
|
4441
|
+
apply(extension: 'swc', config?: {}, args?: unknown): Promise<unknown>;
|
|
4442
|
+
apply(extension: 'entries', config?: [], args?: unknown): Promise<unknown>;
|
|
4443
|
+
apply(extension: 'env', config?: {}, args?: unknown): Promise<Record<string, string>>;
|
|
4444
|
+
apply(extension: 'stories', config?: [], args?: unknown): Promise<StoriesEntry$1[]>;
|
|
4445
|
+
apply(extension: 'managerEntries', config: [], args?: unknown): Promise<string[]>;
|
|
4446
|
+
apply(extension: 'refs', config?: [], args?: unknown): Promise<StorybookConfigRaw$1['refs']>;
|
|
4447
|
+
apply(extension: 'core', config?: StorybookConfigRaw$1['core'], args?: unknown): Promise<NonNullable<StorybookConfigRaw$1['core']>>;
|
|
4448
|
+
apply(extension: 'docs', config?: StorybookConfigRaw$1['docs'], args?: unknown): Promise<NonNullable<StorybookConfigRaw$1['docs']>>;
|
|
4449
|
+
apply(extension: 'features', config?: StorybookConfigRaw$1['features'], args?: unknown): Promise<NonNullable<StorybookConfigRaw$1['features']>>;
|
|
4450
|
+
apply(extension: 'typescript', config?: StorybookConfigRaw$1['typescript'], args?: unknown): Promise<NonNullable<StorybookConfigRaw$1['typescript']>>;
|
|
4451
|
+
apply(extension: 'build', config?: StorybookConfigRaw$1['build'], args?: unknown): Promise<NonNullable<StorybookConfigRaw$1['build']>>;
|
|
4452
|
+
apply(extension: 'staticDirs', config?: StorybookConfigRaw$1['staticDirs'], args?: unknown): Promise<StorybookConfigRaw$1['staticDirs']>;
|
|
4453
|
+
apply(extension: 'services', config?: StorybookConfigRaw$1['services'], args?: unknown): Promise<void>;
|
|
4454
|
+
apply(extension: 'experimental_docgenProvider', config: DocgenProviderDescriptor[], args?: unknown): Promise<DocgenProviderDescriptor[]>;
|
|
4455
|
+
apply(extension: 'experimental_storyDocsProvider', config: StoryDocsProvider, args?: unknown): Promise<StoryDocsProvider>;
|
|
4087
4456
|
/** The second and third parameter are not needed. And make type inference easier. */
|
|
4088
4457
|
apply<T extends keyof StorybookConfigRaw$1>(extension: T): Promise<StorybookConfigRaw$1[T]>;
|
|
4089
4458
|
apply<T>(extension: string, config?: T, args?: unknown): Promise<T>;
|
|
4090
4459
|
}
|
|
4091
4460
|
interface LoadedPreset$1 {
|
|
4092
4461
|
name: string;
|
|
4093
|
-
preset
|
|
4094
|
-
|
|
4462
|
+
/** The preset's exports, other than `addons` and `presets`. */
|
|
4463
|
+
preset: Record<string, unknown>;
|
|
4464
|
+
options: Record<string, unknown>;
|
|
4095
4465
|
}
|
|
4096
4466
|
type PresetConfig$1 = string | {
|
|
4097
4467
|
name: string;
|
|
@@ -4100,16 +4470,16 @@ type PresetConfig$1 = string | {
|
|
|
4100
4470
|
interface Ref$2 {
|
|
4101
4471
|
id: string;
|
|
4102
4472
|
url: string;
|
|
4103
|
-
title
|
|
4104
|
-
version
|
|
4473
|
+
title?: string;
|
|
4474
|
+
version?: string;
|
|
4105
4475
|
type?: string;
|
|
4106
4476
|
disable?: boolean;
|
|
4107
4477
|
}
|
|
4108
4478
|
interface VersionCheck {
|
|
4109
4479
|
success: boolean;
|
|
4110
4480
|
cached: boolean;
|
|
4111
|
-
data?:
|
|
4112
|
-
error?:
|
|
4481
|
+
data?: API_Versions$2;
|
|
4482
|
+
error?: unknown;
|
|
4113
4483
|
time: number;
|
|
4114
4484
|
}
|
|
4115
4485
|
interface Stats {
|
|
@@ -4143,7 +4513,21 @@ interface ModuleResolveConfig {
|
|
|
4143
4513
|
/** Conditions for package `exports` resolution. */
|
|
4144
4514
|
conditions?: string[];
|
|
4145
4515
|
}
|
|
4146
|
-
|
|
4516
|
+
/**
|
|
4517
|
+
* A `package.json`. It has the known fields of type-fest's `PackageJson` and the fields Forkbook
|
|
4518
|
+
* reads, but not type-fest's `JsonObject` index signature, because type-fest's own `overrides`
|
|
4519
|
+
* type does not fit that signature.
|
|
4520
|
+
*/
|
|
4521
|
+
type PackageJson$2 = PackageJson$3.NodeJsStandard & PackageJson$3.PackageJsonStandard & PackageJson$3.NonStandardEntryPoints & PackageJson$3.TypeScriptConfiguration & PackageJson$3.YarnConfiguration & PackageJson$3.JSPMConfiguration & {
|
|
4522
|
+
/** The legacy ESLint config. */eslintConfig?: {
|
|
4523
|
+
extends?: string | string[];
|
|
4524
|
+
[key: string]: unknown;
|
|
4525
|
+
}; /** The Forkbook that the package ships for composition. */
|
|
4526
|
+
storybook?: {
|
|
4527
|
+
url?: string;
|
|
4528
|
+
title?: string;
|
|
4529
|
+
};
|
|
4530
|
+
} & Record<string, unknown>;
|
|
4147
4531
|
interface LoadOptions$1 {
|
|
4148
4532
|
packageJson?: PackageJson$2;
|
|
4149
4533
|
outputDir?: string;
|
|
@@ -4246,7 +4630,7 @@ interface Builder$1<Config, BuilderStats extends Stats = Stats> {
|
|
|
4246
4630
|
changeDetectionAdapter?(options?: Options$1): ChangeDetectionAdapter;
|
|
4247
4631
|
}
|
|
4248
4632
|
/** Options for TypeScript usage within Forkbook. */
|
|
4249
|
-
interface TypescriptOptions
|
|
4633
|
+
interface TypescriptOptions {
|
|
4250
4634
|
/**
|
|
4251
4635
|
* Enables type checking within Forkbook.
|
|
4252
4636
|
*
|
|
@@ -4262,7 +4646,7 @@ interface TypescriptOptions$1 {
|
|
|
4262
4646
|
}
|
|
4263
4647
|
type Preset = string | {
|
|
4264
4648
|
name: string;
|
|
4265
|
-
options?:
|
|
4649
|
+
options?: Record<string, unknown>;
|
|
4266
4650
|
};
|
|
4267
4651
|
/** An additional script that gets injected into the preview or the manager, */
|
|
4268
4652
|
type Entry = string;
|
|
@@ -4454,7 +4838,7 @@ interface StorybookFeatures {
|
|
|
4454
4838
|
/**
|
|
4455
4839
|
* @temporary This feature flag is a migration assistant, and is scheduled to be removed.
|
|
4456
4840
|
*
|
|
4457
|
-
* Set NODE_ENV to development in built
|
|
4841
|
+
* Set NODE_ENV to development in built Forkbooks for better testability and debuggability
|
|
4458
4842
|
*/
|
|
4459
4843
|
developmentModeForBuild?: boolean;
|
|
4460
4844
|
/**
|
|
@@ -4505,10 +4889,10 @@ interface SecurityConfig {
|
|
|
4505
4889
|
* In dev mode, the manager and preview can only be embedded by a website running on localhost.
|
|
4506
4890
|
* This prevents attacks that hijack a local Forkbook embedded in an iframe from a malicious domain.
|
|
4507
4891
|
*
|
|
4508
|
-
* If you need remote
|
|
4892
|
+
* If you need remote Forkbooks to compose this Forkbook while it is running in dev mode,
|
|
4509
4893
|
* you may set `insecureRemoteIframeEmbed` to `true`.
|
|
4510
4894
|
*
|
|
4511
|
-
* Built
|
|
4895
|
+
* Built Forkbooks can still be embedded and composed without restrictions, and don't need
|
|
4512
4896
|
* this flag.
|
|
4513
4897
|
*
|
|
4514
4898
|
* @default false
|
|
@@ -4519,7 +4903,7 @@ interface SecurityConfig {
|
|
|
4519
4903
|
* only accepts messages from its own preview iframes. In dev mode, a preview only accepts
|
|
4520
4904
|
* messages from a manager on localhost, and both send messages only to the expected origin.
|
|
4521
4905
|
*
|
|
4522
|
-
* If you need remote
|
|
4906
|
+
* If you need remote Forkbooks to compose this Forkbook while it is running in dev mode,
|
|
4523
4907
|
* you may set `insecureIframeMessaging` to `true`.
|
|
4524
4908
|
*
|
|
4525
4909
|
* Built previews accept messages from any origin, so composing a built Forkbook doesn't need
|
|
@@ -4563,12 +4947,12 @@ interface StorybookConfigRaw$1 {
|
|
|
4563
4947
|
build?: TestBuildConfig;
|
|
4564
4948
|
stories: StoriesEntry$1[];
|
|
4565
4949
|
framework?: Preset;
|
|
4566
|
-
typescript?: Partial<TypescriptOptions
|
|
4950
|
+
typescript?: Partial<TypescriptOptions>;
|
|
4567
4951
|
refs?: CoreCommon_StorybookRefs;
|
|
4568
|
-
babel?:
|
|
4569
|
-
swc?:
|
|
4952
|
+
babel?: unknown;
|
|
4953
|
+
swc?: unknown;
|
|
4570
4954
|
env?: Record<string, string>;
|
|
4571
|
-
babelDefault?:
|
|
4955
|
+
babelDefault?: unknown;
|
|
4572
4956
|
previewAnnotations?: Entry[];
|
|
4573
4957
|
experimental_indexers?: Indexer$1[];
|
|
4574
4958
|
/**
|
|
@@ -4735,7 +5119,7 @@ interface CoreCommon_ResolvedAddonVirtual$1 {
|
|
|
4735
5119
|
previewAnnotations?: PreviewAnnotation[];
|
|
4736
5120
|
presets?: (string | {
|
|
4737
5121
|
name: string;
|
|
4738
|
-
options?:
|
|
5122
|
+
options?: unknown;
|
|
4739
5123
|
})[];
|
|
4740
5124
|
}
|
|
4741
5125
|
type CoreCommon_OptionsEntry = {
|
|
@@ -10629,176 +11013,61 @@ interface TypedGetService<TMap> {
|
|
|
10629
11013
|
* The reference is stable as long as `service` and `commandName` do not change, so it is
|
|
10630
11014
|
* safe to pass to child components or include in effect dependency arrays.
|
|
10631
11015
|
*/
|
|
10632
|
-
type CommandFn<TCommands, TKey extends keyof TCommands> = TCommands[TKey] extends ((...args:
|
|
10633
|
-
/**
|
|
10634
|
-
* Returns a stable reference to the named service command.
|
|
10635
|
-
*
|
|
10636
|
-
* @param service - A service instance from `registerService`.
|
|
10637
|
-
* @param commandName - The name of the command to invoke.
|
|
10638
|
-
*
|
|
10639
|
-
* @example
|
|
10640
|
-
* ```tsx
|
|
10641
|
-
* const assignField = useServiceCommand(service, 'assignRecordField');
|
|
10642
|
-
*
|
|
10643
|
-
* return (
|
|
10644
|
-
* <button onClick={() => assignField({ entryId: 'a', fieldKey: 'x', fieldValue: 'y' })}>
|
|
10645
|
-
* Update
|
|
10646
|
-
* </button>
|
|
10647
|
-
* );
|
|
10648
|
-
* ```
|
|
10649
|
-
*/
|
|
10650
|
-
declare function useServiceCommand<TInstance extends {
|
|
10651
|
-
commands: Record<string, (input: any) => Promise<any>>;
|
|
10652
|
-
}, TKey extends keyof TInstance['commands'] & string>(service: TInstance, commandName: TKey): CommandFn<TInstance['commands'], TKey>;
|
|
10653
|
-
//#endregion
|
|
10654
|
-
//#region .dts-emit/code/core/src/shared/open-service/use-service-query.d.ts
|
|
10655
|
-
/**
|
|
10656
|
-
* Subscribe to a service query and receive reactive {@link QueryState} updates in a React component.
|
|
10657
|
-
*
|
|
10658
|
-
* Pass the query directly (e.g. `myService.queries.thing`) so its input/output types infer per
|
|
10659
|
-
* query. The service must exist: if it may be absent (e.g. behind a feature flag), guard at a parent
|
|
10660
|
-
* and conditionally render the component that calls this hook.
|
|
10661
|
-
*
|
|
10662
|
-
* A void-input query needs no input argument. As soon as a selector is involved the input is
|
|
10663
|
-
* positional, so a void-input query passes `undefined` explicitly:
|
|
10664
|
-
* `useServiceQuery(query, undefined, selector)`.
|
|
10665
|
-
*
|
|
10666
|
-
* @example
|
|
10667
|
-
* ```tsx
|
|
10668
|
-
* const { data, isInitialLoading, isError } = useServiceQuery(recordService.queries.recordFields, {
|
|
10669
|
-
* entryId: 'a',
|
|
10670
|
-
* });
|
|
10671
|
-
* ```
|
|
10672
|
-
*/
|
|
10673
|
-
declare function useServiceQuery<TOutput>(query: Query<void, TOutput>): QueryState<TOutput>;
|
|
10674
|
-
declare function useServiceQuery<TInput, TOutput>(query: Query<TInput, TOutput>, input: TInput): QueryState<TOutput>;
|
|
10675
|
-
declare function useServiceQuery<TInput, TOutput, TSelected>(query: Query<TInput, TOutput>, input: TInput, selector: (value: TOutput) => TSelected): QueryState<TSelected>;
|
|
10676
|
-
//#endregion
|
|
10677
|
-
//#region .dts-emit/code/core/src/shared/open-service/manager.d.ts
|
|
10678
|
-
declare const getService$1: TypedGetService<ManagerCoreServices>;
|
|
10679
|
-
/**
|
|
10680
|
-
* Registers a service in the manager and returns its runtime surface.
|
|
10681
|
-
*
|
|
10682
|
-
* The manager is a relay hub: it bridges the dev server and the preview iframes. The channel is read
|
|
10683
|
-
* via `getChannel()` from `@aussieljk/forkbook/internal/channels`, which the manager runtime installs before any
|
|
10684
|
-
* `addons.register` callback runs, so no manual channel setup is needed.
|
|
10685
|
-
*/
|
|
10686
|
-
declare function registerService$1<TState, TQueries extends Queries<TState>, TCommands extends Commands<TState>>(definition: ServiceDefinition<TState, TQueries, TCommands>, registration?: ServiceRegistrationOptions<TState, TQueries, TCommands>): ServiceInstance<TState, TQueries, TCommands> & ServiceRegistryApi;
|
|
10687
|
-
//#endregion
|
|
10688
|
-
//#region .dts-emit/code/core/src/types/modules/api-stories.d.ts
|
|
10689
|
-
interface API_BaseEntry {
|
|
10690
|
-
id: StoryId$2;
|
|
10691
|
-
depth: number;
|
|
10692
|
-
name: string;
|
|
10693
|
-
tags: Tag$2[];
|
|
10694
|
-
refId?: string;
|
|
10695
|
-
renderAriaLabel?: API_SidebarOptions['renderAriaLabel'];
|
|
10696
|
-
renderLabel?: API_SidebarOptions['renderLabel'];
|
|
10697
|
-
}
|
|
10698
|
-
interface API_RootEntry extends API_BaseEntry {
|
|
10699
|
-
type: 'root';
|
|
10700
|
-
startCollapsed?: boolean;
|
|
10701
|
-
children: StoryId$2[];
|
|
10702
|
-
}
|
|
10703
|
-
interface API_GroupEntry extends API_BaseEntry {
|
|
10704
|
-
type: 'group';
|
|
10705
|
-
parent?: StoryId$2;
|
|
10706
|
-
children: StoryId$2[];
|
|
10707
|
-
}
|
|
10708
|
-
interface API_ComponentEntry extends API_BaseEntry {
|
|
10709
|
-
type: 'component';
|
|
10710
|
-
parent?: StoryId$2;
|
|
10711
|
-
children: StoryId$2[];
|
|
10712
|
-
importPath?: Path$1;
|
|
10713
|
-
}
|
|
10714
|
-
interface API_DocsEntry$1 extends API_BaseEntry {
|
|
10715
|
-
type: 'docs';
|
|
10716
|
-
parent: StoryId$2;
|
|
10717
|
-
title: ComponentTitle$1;
|
|
10718
|
-
importPath: Path$1;
|
|
10719
|
-
prepared: boolean;
|
|
10720
|
-
parameters?: {
|
|
10721
|
-
[parameterName: string]: any;
|
|
10722
|
-
};
|
|
10723
|
-
anchors?: DocsAnchor$1[];
|
|
10724
|
-
}
|
|
10725
|
-
interface API_StoryEntry$1 extends API_BaseEntry {
|
|
10726
|
-
type: 'story';
|
|
10727
|
-
subtype: 'story';
|
|
10728
|
-
parent: StoryId$2;
|
|
10729
|
-
title: ComponentTitle$1;
|
|
10730
|
-
importPath: Path$1;
|
|
10731
|
-
exportName: string;
|
|
10732
|
-
prepared: boolean;
|
|
10733
|
-
parameters?: {
|
|
10734
|
-
[parameterName: string]: any;
|
|
10735
|
-
};
|
|
10736
|
-
args?: Args$2;
|
|
10737
|
-
argTypes?: ArgTypes$2;
|
|
10738
|
-
initialArgs?: Args$2;
|
|
10739
|
-
children?: StoryId$2[];
|
|
10740
|
-
}
|
|
10741
|
-
interface API_TestEntry$1 extends Omit<API_StoryEntry$1, 'subtype' | 'children' | 'parent'> {
|
|
10742
|
-
parent: StoryId$2;
|
|
10743
|
-
subtype: 'test';
|
|
10744
|
-
}
|
|
10745
|
-
type API_LeafEntry$1 = API_DocsEntry$1 | API_StoryEntry$1 | API_TestEntry$1;
|
|
11016
|
+
type CommandFn<TCommands, TKey extends keyof TCommands> = TCommands[TKey] extends ((...args: never[]) => unknown) ? TCommands[TKey] : never;
|
|
10746
11017
|
/**
|
|
10747
|
-
*
|
|
10748
|
-
*
|
|
10749
|
-
*
|
|
11018
|
+
* Returns a stable reference to the named service command.
|
|
11019
|
+
*
|
|
11020
|
+
* @param service - A service instance from `registerService`.
|
|
11021
|
+
* @param commandName - The name of the command to invoke.
|
|
11022
|
+
*
|
|
11023
|
+
* @example
|
|
11024
|
+
* ```tsx
|
|
11025
|
+
* const assignField = useServiceCommand(service, 'assignRecordField');
|
|
11026
|
+
*
|
|
11027
|
+
* return (
|
|
11028
|
+
* <button onClick={() => assignField({ entryId: 'a', fieldKey: 'x', fieldValue: 'y' })}>
|
|
11029
|
+
* Update
|
|
11030
|
+
* </button>
|
|
11031
|
+
* );
|
|
11032
|
+
* ```
|
|
10750
11033
|
*/
|
|
10751
|
-
|
|
10752
|
-
|
|
11034
|
+
declare function useServiceCommand<TInstance extends {
|
|
11035
|
+
commands: Record<string, (input: never) => Promise<unknown>>;
|
|
11036
|
+
}, TKey extends keyof TInstance['commands'] & string>(service: TInstance, commandName: TKey): CommandFn<TInstance['commands'], TKey>;
|
|
11037
|
+
//#endregion
|
|
11038
|
+
//#region .dts-emit/code/core/src/shared/open-service/use-service-query.d.ts
|
|
10753
11039
|
/**
|
|
10754
|
-
*
|
|
10755
|
-
*
|
|
10756
|
-
*
|
|
11040
|
+
* Subscribe to a service query and receive reactive {@link QueryState} updates in a React component.
|
|
11041
|
+
*
|
|
11042
|
+
* Pass the query directly (e.g. `myService.queries.thing`) so its input/output types infer per
|
|
11043
|
+
* query. The service must exist: if it may be absent (e.g. behind a feature flag), guard at a parent
|
|
11044
|
+
* and conditionally render the component that calls this hook.
|
|
11045
|
+
*
|
|
11046
|
+
* A void-input query needs no input argument. As soon as a selector is involved the input is
|
|
11047
|
+
* positional, so a void-input query passes `undefined` explicitly:
|
|
11048
|
+
* `useServiceQuery(query, undefined, selector)`.
|
|
11049
|
+
*
|
|
11050
|
+
* @example
|
|
11051
|
+
* ```tsx
|
|
11052
|
+
* const { data, isInitialLoading, isError } = useServiceQuery(recordService.queries.recordFields, {
|
|
11053
|
+
* entryId: 'a',
|
|
11054
|
+
* });
|
|
11055
|
+
* ```
|
|
10757
11056
|
*/
|
|
10758
|
-
|
|
10759
|
-
|
|
10760
|
-
|
|
10761
|
-
|
|
10762
|
-
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10770
|
-
|
|
10771
|
-
|
|
10772
|
-
docsOptions: DocsOptions$1;
|
|
10773
|
-
};
|
|
10774
|
-
interface API_ReleaseNotes {
|
|
10775
|
-
success?: boolean;
|
|
10776
|
-
currentVersion?: string;
|
|
10777
|
-
showOnFirstLaunch?: boolean;
|
|
10778
|
-
}
|
|
10779
|
-
interface API_Settings$1 {
|
|
10780
|
-
lastTrackedStoryId: string;
|
|
10781
|
-
}
|
|
10782
|
-
interface API_Version$1 {
|
|
10783
|
-
version: string;
|
|
10784
|
-
info?: {
|
|
10785
|
-
plain: string;
|
|
10786
|
-
};
|
|
10787
|
-
[key: string]: any;
|
|
10788
|
-
}
|
|
10789
|
-
interface API_UnknownEntries$1 {
|
|
10790
|
-
[key: string]: {
|
|
10791
|
-
[key: string]: any;
|
|
10792
|
-
};
|
|
10793
|
-
}
|
|
10794
|
-
interface API_Versions$2 {
|
|
10795
|
-
latest?: API_Version$1;
|
|
10796
|
-
next?: API_Version$1;
|
|
10797
|
-
current?: API_Version$1;
|
|
10798
|
-
}
|
|
10799
|
-
type API_FilterFunction$1 = (item: API_PreparedIndexEntry & {
|
|
10800
|
-
statuses: StatusByTypeId;
|
|
10801
|
-
}) => boolean;
|
|
11057
|
+
declare function useServiceQuery<TOutput>(query: Query<void, TOutput>): QueryState<TOutput>;
|
|
11058
|
+
declare function useServiceQuery<TInput, TOutput>(query: Query<TInput, TOutput>, input: TInput): QueryState<TOutput>;
|
|
11059
|
+
declare function useServiceQuery<TInput, TOutput, TSelected>(query: Query<TInput, TOutput>, input: TInput, selector: (value: TOutput) => TSelected): QueryState<TSelected>;
|
|
11060
|
+
//#endregion
|
|
11061
|
+
//#region .dts-emit/code/core/src/shared/open-service/manager.d.ts
|
|
11062
|
+
declare const getService$1: TypedGetService<ManagerCoreServices>;
|
|
11063
|
+
/**
|
|
11064
|
+
* Registers a service in the manager and returns its runtime surface.
|
|
11065
|
+
*
|
|
11066
|
+
* The manager is a relay hub: it bridges the dev server and the preview iframes. The channel is read
|
|
11067
|
+
* via `getChannel()` from `@aussieljk/forkbook/internal/channels`, which the manager runtime installs before any
|
|
11068
|
+
* `addons.register` callback runs, so no manual channel setup is needed.
|
|
11069
|
+
*/
|
|
11070
|
+
declare function registerService$1<TState, TQueries extends Queries<TState>, TCommands extends Commands<TState>>(definition: ServiceDefinition<TState, TQueries, TCommands>, registration?: ServiceRegistrationOptions<TState, TQueries, TCommands>): ServiceInstance<TState, TQueries, TCommands> & ServiceRegistryApi;
|
|
10802
11071
|
//#endregion
|
|
10803
11072
|
//#region .dts-emit/code/core/src/types/modules/channelApi.d.ts
|
|
10804
11073
|
interface SetStoriesStory {
|
|
@@ -10810,11 +11079,11 @@ interface SetStoriesStory {
|
|
|
10810
11079
|
parameters: {
|
|
10811
11080
|
fileName: string;
|
|
10812
11081
|
options: {
|
|
10813
|
-
[optionName: string]:
|
|
11082
|
+
[optionName: string]: unknown;
|
|
10814
11083
|
};
|
|
10815
11084
|
docsOnly?: boolean;
|
|
10816
11085
|
viewMode?: API_ViewMode$1;
|
|
10817
|
-
[parameterName: string]:
|
|
11086
|
+
[parameterName: string]: unknown;
|
|
10818
11087
|
};
|
|
10819
11088
|
argTypes?: ArgTypes$2;
|
|
10820
11089
|
args?: Args$2;
|
|
@@ -10883,16 +11152,14 @@ interface API_Provider$1<API> {
|
|
|
10883
11152
|
channel?: Channel$1;
|
|
10884
11153
|
renderPreview?: API_IframeRenderer$1;
|
|
10885
11154
|
handleAPI(api: API): void;
|
|
10886
|
-
|
|
11155
|
+
getElements<T extends Addon_Types$1 | Addon_TypesEnum$1.experimental_PAGE | Addon_TypesEnum$1.experimental_TEST_PROVIDER>(type: T): Addon_Collection$1<Addon_TypesMapping$1[T]>;
|
|
11156
|
+
getConfig(): Addon_Config$1 & {
|
|
10887
11157
|
sidebar?: API_SidebarOptions$1<API>;
|
|
10888
|
-
theme?: ThemeVars$1;
|
|
10889
11158
|
selectedPanel?: string;
|
|
10890
|
-
|
|
10891
|
-
[k: string]: any;
|
|
11159
|
+
storyMapper?: API_StoryMapper;
|
|
10892
11160
|
};
|
|
10893
|
-
[key: string]: any;
|
|
10894
11161
|
}
|
|
10895
|
-
type API_IframeRenderer$1 = (storyId: string, viewMode: API_ViewMode$1, id: string, baseUrl: string, scale: number, queryParams: Record<string,
|
|
11162
|
+
type API_IframeRenderer$1 = (storyId: string, viewMode: API_ViewMode$1, id: string, baseUrl: string, scale: number, queryParams: Record<string, unknown>) => ReactElement | null;
|
|
10896
11163
|
type FilterFunction = (entry: API_PreparedIndexEntry, excluded?: boolean) => boolean;
|
|
10897
11164
|
interface API_Layout$1 {
|
|
10898
11165
|
initialActive: API_ActiveTabsType;
|
|
@@ -10931,7 +11198,7 @@ interface API_UI$1 {
|
|
|
10931
11198
|
}
|
|
10932
11199
|
type API_PanelPositions$1 = 'bottom' | 'right';
|
|
10933
11200
|
type API_ActiveTabsType = 'sidebar' | 'canvas' | 'addons';
|
|
10934
|
-
interface API_SidebarOptions$1<API =
|
|
11201
|
+
interface API_SidebarOptions$1<API$1 = API> {
|
|
10935
11202
|
showRoots?: boolean;
|
|
10936
11203
|
/**
|
|
10937
11204
|
* Do not make folders from the `/` in a title. Each component is a top level item, named by its
|
|
@@ -10944,14 +11211,14 @@ interface API_SidebarOptions$1<API = any> {
|
|
|
10944
11211
|
expandAll?: boolean;
|
|
10945
11212
|
filters?: Record<string, API_FilterFunction$1>;
|
|
10946
11213
|
collapsedRoots?: string[];
|
|
10947
|
-
renderAriaLabel?: (item: API_HashEntry$1, api: API, context?: {
|
|
11214
|
+
renderAriaLabel?: (item: API_HashEntry$1, api: API$1, context?: {
|
|
10948
11215
|
isMobile: boolean;
|
|
10949
11216
|
location: 'sidebar' | 'bottom-bar';
|
|
10950
11217
|
}) => string;
|
|
10951
|
-
renderLabel?: (item: API_HashEntry$1, api: API, context?: {
|
|
11218
|
+
renderLabel?: (item: API_HashEntry$1, api: API$1, context?: {
|
|
10952
11219
|
isMobile: boolean;
|
|
10953
11220
|
location: 'sidebar' | 'bottom-bar';
|
|
10954
|
-
}) =>
|
|
11221
|
+
}) => unknown;
|
|
10955
11222
|
}
|
|
10956
11223
|
interface OnClearOptions {
|
|
10957
11224
|
/** `true` when the user manually dismissed the notification. */
|
|
@@ -10967,7 +11234,7 @@ interface API_Notification$1 {
|
|
|
10967
11234
|
id: string;
|
|
10968
11235
|
content: {
|
|
10969
11236
|
headline: string;
|
|
10970
|
-
subHeadline?:
|
|
11237
|
+
subHeadline?: React.ReactNode;
|
|
10971
11238
|
};
|
|
10972
11239
|
duration?: number;
|
|
10973
11240
|
link?: string;
|
|
@@ -11026,7 +11293,7 @@ interface Addon_StorySortObjectParameter {
|
|
|
11026
11293
|
locales?: string;
|
|
11027
11294
|
includeNames?: boolean;
|
|
11028
11295
|
}
|
|
11029
|
-
type IndexEntryLegacy = [StoryId$2,
|
|
11296
|
+
type IndexEntryLegacy = [StoryId$2, unknown, Parameters$2, Parameters$2];
|
|
11030
11297
|
type Addon_StorySortComparator = Addon_Comparator<IndexEntryLegacy>;
|
|
11031
11298
|
type Addon_StorySortParameter = Addon_StorySortComparator | Addon_StorySortObjectParameter;
|
|
11032
11299
|
type Addon_StorySortComparatorV7 = Addon_Comparator<IndexEntry$1>;
|
|
@@ -11036,21 +11303,21 @@ interface Addon_OptionsParameter extends Object {
|
|
|
11036
11303
|
base: string;
|
|
11037
11304
|
brandTitle?: string;
|
|
11038
11305
|
};
|
|
11039
|
-
[key: string]:
|
|
11306
|
+
[key: string]: unknown;
|
|
11040
11307
|
}
|
|
11041
11308
|
interface Addon_OptionsParameterV7 extends Object {
|
|
11042
11309
|
theme?: {
|
|
11043
11310
|
base: string;
|
|
11044
11311
|
brandTitle?: string;
|
|
11045
11312
|
};
|
|
11046
|
-
[key: string]:
|
|
11313
|
+
[key: string]: unknown;
|
|
11047
11314
|
}
|
|
11048
11315
|
type Addon_StoryContext<TRenderer extends Renderer$2 = Renderer$2> = StoryContextForRender<TRenderer>;
|
|
11049
11316
|
type Addon_StoryContextUpdate = Partial<Addon_StoryContext>;
|
|
11050
11317
|
interface Addon_ReturnTypeFramework<ReturnType> extends Renderer$2 {
|
|
11051
|
-
component:
|
|
11318
|
+
component: unknown;
|
|
11052
11319
|
storyResult: ReturnType;
|
|
11053
|
-
canvasElement:
|
|
11320
|
+
canvasElement: unknown;
|
|
11054
11321
|
}
|
|
11055
11322
|
type Addon_PartialStoryFn<ReturnType = unknown> = PartialStoryFn$1<Addon_ReturnTypeFramework<ReturnType>>;
|
|
11056
11323
|
type Addon_LegacyStoryFn<ReturnType = unknown> = LegacyStoryFn$1<Addon_ReturnTypeFramework<ReturnType>>;
|
|
@@ -11061,36 +11328,13 @@ type Addon_LoaderFunction = LoaderFunction$1<Addon_ReturnTypeFramework<unknown>>
|
|
|
11061
11328
|
interface Addon_WrapperSettings {
|
|
11062
11329
|
options: object;
|
|
11063
11330
|
parameters: {
|
|
11064
|
-
[key: string]:
|
|
11331
|
+
[key: string]: unknown;
|
|
11065
11332
|
};
|
|
11066
11333
|
}
|
|
11067
|
-
type Addon_StoryWrapper$1 = (storyFn: Addon_LegacyStoryFn, context: Addon_StoryContext, settings: Addon_WrapperSettings) =>
|
|
11334
|
+
type Addon_StoryWrapper$1 = (storyFn: Addon_LegacyStoryFn, context: Addon_StoryContext, settings: Addon_WrapperSettings) => unknown;
|
|
11068
11335
|
type Addon_MakeDecoratorResult$1 = (...args: any) => any;
|
|
11069
|
-
|
|
11070
|
-
|
|
11071
|
-
kind: StoryKind$1;
|
|
11072
|
-
name: StoryName$1;
|
|
11073
|
-
storyFn: Addon_StoryFn<StoryFnReturnType>;
|
|
11074
|
-
parameters: Parameters$2;
|
|
11075
|
-
}
|
|
11076
|
-
type Addon_ClientApiAddon<StoryFnReturnType = unknown> = Addon_Type & {
|
|
11077
|
-
apply: (a: Addon_StoryApi<StoryFnReturnType>, b: any[]) => any;
|
|
11078
|
-
};
|
|
11079
|
-
interface Addon_ClientApiAddons<StoryFnReturnType> {
|
|
11080
|
-
[key: string]: Addon_ClientApiAddon<StoryFnReturnType>;
|
|
11081
|
-
}
|
|
11082
|
-
type Addon_ClientApiReturnFn<StoryFnReturnType = unknown> = (...args: any[]) => Addon_StoryApi<StoryFnReturnType>;
|
|
11083
|
-
interface Addon_StoryApi<StoryFnReturnType = unknown> {
|
|
11084
|
-
kind: StoryKind$1;
|
|
11085
|
-
add: (storyName: StoryName$1, storyFn: Addon_StoryFn<StoryFnReturnType>, parameters?: Parameters$2) => Addon_StoryApi<StoryFnReturnType>;
|
|
11086
|
-
addDecorator: (decorator: Addon_DecoratorFunction$1<StoryFnReturnType>) => Addon_StoryApi<StoryFnReturnType>;
|
|
11087
|
-
addLoader: (decorator: Addon_LoaderFunction) => Addon_StoryApi<StoryFnReturnType>;
|
|
11088
|
-
addParameters: (parameters: Parameters$2) => Addon_StoryApi<StoryFnReturnType>;
|
|
11089
|
-
[k: string]: string | Addon_ClientApiReturnFn<StoryFnReturnType>;
|
|
11090
|
-
}
|
|
11091
|
-
interface Addon_ClientStoryApi<StoryFnReturnType = unknown> {}
|
|
11092
|
-
type Addon_LoadFn = () => any;
|
|
11093
|
-
type Addon_RequireContext = any;
|
|
11336
|
+
type Addon_LoadFn = () => unknown;
|
|
11337
|
+
type Addon_RequireContext = unknown;
|
|
11094
11338
|
type Addon_Loadable = Addon_RequireContext | [Addon_RequireContext] | Addon_LoadFn;
|
|
11095
11339
|
type Addon_BaseDecorators<StoryFnReturnType> = Array<(story: () => StoryFnReturnType, context: Addon_StoryContext) => StoryFnReturnType>;
|
|
11096
11340
|
interface Addon_BaseAnnotations<TArgs, StoryFnReturnType, TRenderer extends Renderer$2 = Renderer$2> {
|
|
@@ -11350,7 +11594,7 @@ interface Addon_Config$1 {
|
|
|
11350
11594
|
};
|
|
11351
11595
|
sidebar?: API_SidebarOptions$1;
|
|
11352
11596
|
ui?: Partial<API_UI$1>;
|
|
11353
|
-
[key: string]:
|
|
11597
|
+
[key: string]: unknown;
|
|
11354
11598
|
}
|
|
11355
11599
|
declare enum Addon_TypesEnum$1 {
|
|
11356
11600
|
/** This adds panels to the addons side panel. */
|
|
@@ -11360,7 +11604,7 @@ declare enum Addon_TypesEnum$1 {
|
|
|
11360
11604
|
/** This adds items in the toolbar above the canvas - on the right side. */
|
|
11361
11605
|
TOOLEXTRA = "toolextra",
|
|
11362
11606
|
/**
|
|
11363
|
-
* This adds wrapper components around the canvas/iframe component
|
|
11607
|
+
* This adds wrapper components around the canvas/iframe component Forkbook renders.
|
|
11364
11608
|
*
|
|
11365
11609
|
* @unstable this API is not stable yet, and is likely to change in 8.0.
|
|
11366
11610
|
*/
|
|
@@ -11490,10 +11734,10 @@ declare type RenderContext<TRenderer extends Renderer$2 = Renderer$2> = StoryIde
|
|
|
11490
11734
|
//#endregion
|
|
11491
11735
|
//#region .dts-emit/code/core/src/types/modules/builder.d.ts
|
|
11492
11736
|
interface BuilderStats {
|
|
11493
|
-
toJson: () =>
|
|
11737
|
+
toJson: () => unknown;
|
|
11494
11738
|
}
|
|
11495
11739
|
type Builder_WithRequiredProperty<Type, Key extends keyof Type> = Type & { [Property in Key]-?: Type[Property] };
|
|
11496
|
-
type Builder_Unpromise<T extends Promise<
|
|
11740
|
+
type Builder_Unpromise<T extends Promise<unknown>> = T extends Promise<infer U> ? U : never;
|
|
11497
11741
|
type Builder_EnvsRaw = Record<string, string>;
|
|
11498
11742
|
//#endregion
|
|
11499
11743
|
//#region .dts-emit/code/core/src/types/modules/docs.d.ts
|
|
@@ -11719,7 +11963,7 @@ declare const combineParameters: (...parameterSets: (Parameters$1 | undefined)[]
|
|
|
11719
11963
|
//#endregion
|
|
11720
11964
|
//#region .dts-emit/code/core/src/preview-api/modules/store/filterArgTypes.d.ts
|
|
11721
11965
|
type PropDescriptor = string[] | RegExp;
|
|
11722
|
-
declare const filterArgTypes: (argTypes: StrictArgTypes$1, include?: PropDescriptor, exclude?: PropDescriptor) =>
|
|
11966
|
+
declare const filterArgTypes: (argTypes: StrictArgTypes$1, include?: PropDescriptor, exclude?: PropDescriptor) => StrictArgTypes$1<import("@aussieljk/forkbook/internal/types").Args>;
|
|
11723
11967
|
//#endregion
|
|
11724
11968
|
//#region .dts-emit/code/core/src/preview-api/modules/store/inferControls.d.ts
|
|
11725
11969
|
/** The fields {@link inferControls} reads; the full enhancer context is structurally assignable. */
|
|
@@ -11752,7 +11996,7 @@ declare function sanitizeStoryContextUpdate({
|
|
|
11752
11996
|
declare function defaultDecorateStory<TRenderer extends Renderer$1>(storyFn: LegacyStoryFn<TRenderer>, decorators: DecoratorFunction$1<TRenderer>[]): LegacyStoryFn<TRenderer>;
|
|
11753
11997
|
//#endregion
|
|
11754
11998
|
//#region .dts-emit/code/core/src/preview-api/modules/store/args.d.ts
|
|
11755
|
-
declare const combineArgs: (value:
|
|
11999
|
+
declare const combineArgs: (value: Args$1, update: Args$1) => Args$1;
|
|
11756
12000
|
//#endregion
|
|
11757
12001
|
//#region .dts-emit/code/core/src/shared/story-index/autoTitle.d.ts
|
|
11758
12002
|
declare const userOrAutoTitleFromSpecifier: (fileName: string | number, entry: NormalizedStoriesSpecifier, userTitle?: string) => string | undefined;
|
|
@@ -11944,6 +12188,11 @@ declare class Preview$1<TRenderer extends Renderer$1> {
|
|
|
11944
12188
|
get storyStore(): StoryStore<TRenderer>;
|
|
11945
12189
|
protected initialize(): Promise<void>;
|
|
11946
12190
|
ready(): Promise<void>;
|
|
12191
|
+
/**
|
|
12192
|
+
* Uses another channel, for example the WebSocket channel of a React Native view. Call
|
|
12193
|
+
* `setupListeners()` after it, so that the preview listens on the new channel.
|
|
12194
|
+
*/
|
|
12195
|
+
setChannel(channel: Channel): void;
|
|
11947
12196
|
setupListeners(): void;
|
|
11948
12197
|
getProjectAnnotationsOrRenderError(): Promise<ProjectAnnotations$1<TRenderer>>;
|
|
11949
12198
|
initializeWithProjectAnnotations(projectAnnotations: ProjectAnnotations$1<TRenderer>): Promise<void>;
|
|
@@ -12121,13 +12370,13 @@ declare class InfiniteDocs<TRenderer extends Renderer$1> {
|
|
|
12121
12370
|
}
|
|
12122
12371
|
//#endregion
|
|
12123
12372
|
//#region .dts-emit/code/core/src/preview-api/modules/preview-web/View.d.ts
|
|
12124
|
-
interface View<
|
|
12125
|
-
prepareForStory(story: PreparedStory
|
|
12373
|
+
interface View<TRoot> {
|
|
12374
|
+
prepareForStory(story: Pick<PreparedStory, 'parameters'>, options?: {
|
|
12126
12375
|
scrollReset?: boolean;
|
|
12127
|
-
}):
|
|
12376
|
+
}): TRoot;
|
|
12128
12377
|
prepareForDocs(options?: {
|
|
12129
12378
|
scrollReset?: boolean;
|
|
12130
|
-
}):
|
|
12379
|
+
}): TRoot;
|
|
12131
12380
|
showErrorDisplay(err: {
|
|
12132
12381
|
message?: string;
|
|
12133
12382
|
stack?: string;
|
|
@@ -12183,7 +12432,7 @@ declare class PreviewWithSelection<TRenderer extends Renderer$1> extends Preview
|
|
|
12183
12432
|
storyId: StoryId$1;
|
|
12184
12433
|
viewMode?: ViewMode$1;
|
|
12185
12434
|
}): Promise<void>;
|
|
12186
|
-
onUpdateQueryParams(queryParams:
|
|
12435
|
+
onUpdateQueryParams(queryParams: Record<PropertyKey, unknown>): void;
|
|
12187
12436
|
onUpdateGlobals({
|
|
12188
12437
|
globals
|
|
12189
12438
|
}: {
|
|
@@ -12270,7 +12519,7 @@ declare class WebView implements View<HTMLElement> {
|
|
|
12270
12519
|
private testing;
|
|
12271
12520
|
private preparingTimeout?;
|
|
12272
12521
|
constructor();
|
|
12273
|
-
prepareForStory(story: PreparedStory
|
|
12522
|
+
prepareForStory(story: Pick<PreparedStory, 'parameters'>, {
|
|
12274
12523
|
scrollReset
|
|
12275
12524
|
}?: {
|
|
12276
12525
|
scrollReset?: boolean;
|
|
@@ -12316,10 +12565,10 @@ declare class WebView implements View<HTMLElement> {
|
|
|
12316
12565
|
//#endregion
|
|
12317
12566
|
//#region .dts-emit/code/core/src/preview-api/modules/preview-web/simulate-pageload.d.ts
|
|
12318
12567
|
declare function simulateDOMContentLoaded(): void;
|
|
12319
|
-
declare function simulatePageLoad($container:
|
|
12568
|
+
declare function simulatePageLoad($container: ParentNode): void;
|
|
12320
12569
|
//#endregion
|
|
12321
12570
|
//#region .dts-emit/code/core/src/preview-api/modules/preview-web/emitTransformCode.d.ts
|
|
12322
|
-
type ReducedStoryContext = Omit<StoryContext<
|
|
12571
|
+
type ReducedStoryContext = Omit<StoryContext<Renderer, Args>, 'abortSignal' | 'canvasElement' | 'step' | 'context'>;
|
|
12323
12572
|
declare function emitTransformCode(source: string | undefined, context: ReducedStoryContext, warning?: string): Promise<void>;
|
|
12324
12573
|
//#endregion
|
|
12325
12574
|
//#region .dts-emit/code/core/src/preview-api/modules/preview-web/render/animation-utils.d.ts
|
|
@@ -12410,175 +12659,94 @@ type StatusesByStoryIdAndTypeId$1 = Record<StoryId$2, StatusByTypeId$1>;
|
|
|
12410
12659
|
interface Status$1 {
|
|
12411
12660
|
value: StatusValue$1;
|
|
12412
12661
|
typeId: StatusTypeId;
|
|
12413
|
-
storyId: StoryId$2;
|
|
12414
|
-
title: string;
|
|
12415
|
-
description: string;
|
|
12416
|
-
data?:
|
|
12417
|
-
sidebarContextMenu?: boolean;
|
|
12418
|
-
}
|
|
12419
|
-
declare const CHANGE_DETECTION_STATUS_TYPE_ID = "@aussieljk/forkbook/change-detection";
|
|
12420
|
-
declare const REVIEW_STATUS_TYPE_ID = "@aussieljk/forkbook/review";
|
|
12421
|
-
/**
|
|
12422
|
-
* Status types that are quality/meta signals rather than test results, so they're excluded from the
|
|
12423
|
-
* aggregated test status that surfaces a story's most critical result. Both are excluded by the same
|
|
12424
|
-
* mechanism wherever that aggregate is computed.
|
|
12425
|
-
*/
|
|
12426
|
-
declare const NON_AGGREGATED_STATUS_TYPE_IDS: string[];
|
|
12427
|
-
declare const StatusStoreEventType: {
|
|
12428
|
-
readonly SELECT: 'select';
|
|
12429
|
-
};
|
|
12430
|
-
type StatusStoreEvent = {
|
|
12431
|
-
type: typeof StatusStoreEventType.SELECT;
|
|
12432
|
-
payload: Status$1[];
|
|
12433
|
-
};
|
|
12434
|
-
type StatusStore = {
|
|
12435
|
-
getAll: () => StatusesByStoryIdAndTypeId$1;
|
|
12436
|
-
set: (statuses: Status$1[]) => void;
|
|
12437
|
-
onAllStatusChange: (listener: (statuses: StatusesByStoryIdAndTypeId$1, previousStatuses: StatusesByStoryIdAndTypeId$1) => void) => () => void;
|
|
12438
|
-
onSelect: (listener: (selectedStatuses: Status$1[]) => void) => () => void;
|
|
12439
|
-
unset: (storyIds?: StoryId$2[]) => void;
|
|
12440
|
-
};
|
|
12441
|
-
type StatusStoreByTypeId$1 = StatusStore & {
|
|
12442
|
-
typeId: StatusTypeId;
|
|
12443
|
-
};
|
|
12444
|
-
type UseStatusStore = <T = StatusesByStoryIdAndTypeId$1>(selector?: (statuses: StatusesByStoryIdAndTypeId$1) => T) => T;
|
|
12445
|
-
//#endregion
|
|
12446
|
-
//#region .dts-emit/code/core/src/storybook-error.d.ts
|
|
12447
|
-
declare abstract class StorybookError extends Error {
|
|
12448
|
-
private _name;
|
|
12449
|
-
/** Category of the error. Used to classify the type of error, e.g., 'PREVIEW_API'. */
|
|
12450
|
-
readonly category: string;
|
|
12451
|
-
/** Code representing the error. Used to uniquely identify the error, e.g., 1. */
|
|
12452
|
-
readonly code: number;
|
|
12453
|
-
/**
|
|
12454
|
-
* Data associated with the error. Used to provide additional information in the error message or
|
|
12455
|
-
* to be passed to telemetry.
|
|
12456
|
-
*/
|
|
12457
|
-
readonly data: {};
|
|
12458
|
-
/**
|
|
12459
|
-
* Specifies the documentation for the error.
|
|
12460
|
-
*
|
|
12461
|
-
* - If `true`, links to a documentation page on the Forkbook website (make sure it exists before
|
|
12462
|
-
* enabling) – This is not implemented yet.
|
|
12463
|
-
* - If a string, uses the provided URL for documentation (external or FAQ links).
|
|
12464
|
-
* - If `false` (default), no documentation link is added.
|
|
12465
|
-
*/
|
|
12466
|
-
readonly documentation: boolean | string | string[];
|
|
12467
|
-
/** Flag used to easily determine if the error originates from Forkbook. */
|
|
12468
|
-
readonly fromStorybook: true;
|
|
12469
|
-
/**
|
|
12470
|
-
* Marks an error whose message is written for the agent that triggered the call and names its
|
|
12471
|
-
* own recovery. Adapters surface such errors verbatim instead of wrapping them as unexpected
|
|
12472
|
-
* failures. A property rather than a class list, so the trait travels with the instance across
|
|
12473
|
-
* bundle copies where `instanceof` would misclassify.
|
|
12474
|
-
*/
|
|
12475
|
-
readonly agentFacing: boolean;
|
|
12476
|
-
/**
|
|
12477
|
-
* Flag used to determine if the error is handled by us and should therefore not be shown to the
|
|
12478
|
-
* user.
|
|
12479
|
-
*/
|
|
12480
|
-
isHandledError: boolean;
|
|
12481
|
-
get fullErrorCode(): `FB_${string}_${string}`;
|
|
12482
|
-
/** Overrides the default `Error.name` property in the format: FB_<CATEGORY>_<CODE>. */
|
|
12483
|
-
get name(): string;
|
|
12484
|
-
set name(name: string);
|
|
12485
|
-
/**
|
|
12486
|
-
* A collection of sub errors which relate to a parent error.
|
|
12487
|
-
*
|
|
12488
|
-
* Sub-errors are used to represent multiple related errors that occurred together. When a
|
|
12489
|
-
* StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
|
|
12490
|
-
* are sent as separate telemetry events. This allows for better error tracking and debugging.
|
|
12491
|
-
*
|
|
12492
|
-
* @example
|
|
12493
|
-
*
|
|
12494
|
-
* ```ts
|
|
12495
|
-
* const error1 = new SomeError();
|
|
12496
|
-
* const error2 = new AnotherError();
|
|
12497
|
-
* const parentError = new ParentError({
|
|
12498
|
-
* // ... other props
|
|
12499
|
-
* subErrors: [error1, error2],
|
|
12500
|
-
* });
|
|
12501
|
-
* ```
|
|
12502
|
-
*/
|
|
12503
|
-
subErrors: StorybookError[];
|
|
12504
|
-
constructor(props: {
|
|
12505
|
-
category: string;
|
|
12506
|
-
code: number;
|
|
12507
|
-
message: string;
|
|
12508
|
-
cause?: unknown;
|
|
12509
|
-
documentation?: boolean | string | string[];
|
|
12510
|
-
isHandledError?: boolean; /** See {@link StorybookError.agentFacing}. Defaults to false. */
|
|
12511
|
-
agentFacing?: boolean;
|
|
12512
|
-
name: string;
|
|
12513
|
-
/**
|
|
12514
|
-
* Optional array of sub-errors that are related to this error. When this error is sent to
|
|
12515
|
-
* telemetry, each sub-error will be sent as a separate event.
|
|
12516
|
-
*/
|
|
12517
|
-
subErrors?: StorybookError[];
|
|
12518
|
-
});
|
|
12519
|
-
/** Generates the error message along with additional documentation link (if applicable). */
|
|
12520
|
-
static getFullMessage({
|
|
12521
|
-
documentation,
|
|
12522
|
-
code,
|
|
12523
|
-
category,
|
|
12524
|
-
message
|
|
12525
|
-
}: ConstructorParameters<typeof StorybookError>[0]): string;
|
|
12526
|
-
}
|
|
12527
|
-
//#endregion
|
|
12528
|
-
//#region .dts-emit/code/core/src/server-errors.d.ts
|
|
12529
|
-
/**
|
|
12530
|
-
* If you can't find a suitable category for your error, create one based on the package name/file
|
|
12531
|
-
* path of which the error is thrown. For instance: If it's from `@storybook/node-logger`, then
|
|
12532
|
-
* NODE-LOGGER If it's from a package that is too broad, e.g. @aussieljk/forkbook/internal/cli-commands in the init command,
|
|
12533
|
-
* then use a combination like CLI_INIT
|
|
12534
|
-
*/
|
|
12535
|
-
declare enum Category {
|
|
12536
|
-
CLI = "CLI",
|
|
12537
|
-
CLI_INIT = "CLI_INIT",
|
|
12538
|
-
CLI_ADD = "CLI_ADD",
|
|
12539
|
-
CODEMOD = "CODEMOD",
|
|
12540
|
-
CORE_SERVER = "CORE-SERVER",
|
|
12541
|
-
CSF_PLUGIN = "CSF-PLUGIN",
|
|
12542
|
-
CSF_TOOLS = "CSF-TOOLS",
|
|
12543
|
-
CORE_COMMON = "CORE-COMMON",
|
|
12544
|
-
NODE_LOGGER = "NODE-LOGGER",
|
|
12545
|
-
TELEMETRY = "TELEMETRY",
|
|
12546
|
-
BUILDER_MANAGER = "BUILDER-MANAGER",
|
|
12547
|
-
BUILDER_VITE = "BUILDER-VITE",
|
|
12548
|
-
SOURCE_LOADER = "SOURCE-LOADER",
|
|
12549
|
-
POSTINSTALL = "POSTINSTALL",
|
|
12550
|
-
DOCS_TOOLS = "DOCS-TOOLS",
|
|
12551
|
-
FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS",
|
|
12552
|
-
FRAMEWORK_REACT_VITE = "FRAMEWORK_REACT-VITE"
|
|
12553
|
-
}
|
|
12554
|
-
declare class NxProjectDetectedError extends StorybookError {
|
|
12555
|
-
constructor();
|
|
12556
|
-
}
|
|
12557
|
-
declare class MissingFrameworkFieldError extends StorybookError {
|
|
12558
|
-
constructor();
|
|
12662
|
+
storyId: StoryId$2;
|
|
12663
|
+
title: string;
|
|
12664
|
+
description: string;
|
|
12665
|
+
data?: unknown;
|
|
12666
|
+
sidebarContextMenu?: boolean;
|
|
12559
12667
|
}
|
|
12560
|
-
declare
|
|
12668
|
+
declare const CHANGE_DETECTION_STATUS_TYPE_ID = "@aussieljk/forkbook/change-detection";
|
|
12669
|
+
declare const REVIEW_STATUS_TYPE_ID = "@aussieljk/forkbook/review";
|
|
12670
|
+
/**
|
|
12671
|
+
* Status types that are quality/meta signals rather than test results, so they're excluded from the
|
|
12672
|
+
* aggregated test status that surfaces a story's most critical result. Both are excluded by the same
|
|
12673
|
+
* mechanism wherever that aggregate is computed.
|
|
12674
|
+
*/
|
|
12675
|
+
declare const NON_AGGREGATED_STATUS_TYPE_IDS: string[];
|
|
12676
|
+
declare const StatusStoreEventType: {
|
|
12677
|
+
readonly SELECT: 'select';
|
|
12678
|
+
};
|
|
12679
|
+
type StatusStoreEvent = {
|
|
12680
|
+
type: typeof StatusStoreEventType.SELECT;
|
|
12681
|
+
payload: Status$1[];
|
|
12682
|
+
};
|
|
12683
|
+
type StatusStore = {
|
|
12684
|
+
getAll: () => StatusesByStoryIdAndTypeId$1;
|
|
12685
|
+
set: (statuses: Status$1[]) => void;
|
|
12686
|
+
onAllStatusChange: (listener: (statuses: StatusesByStoryIdAndTypeId$1, previousStatuses: StatusesByStoryIdAndTypeId$1) => void) => () => void;
|
|
12687
|
+
onSelect: (listener: (selectedStatuses: Status$1[]) => void) => () => void;
|
|
12688
|
+
unset: (storyIds?: StoryId$2[]) => void;
|
|
12689
|
+
};
|
|
12690
|
+
type StatusStoreByTypeId$1 = StatusStore & {
|
|
12691
|
+
typeId: StatusTypeId;
|
|
12692
|
+
};
|
|
12693
|
+
type UseStatusStore = <T = StatusesByStoryIdAndTypeId$1>(selector?: (statuses: StatusesByStoryIdAndTypeId$1) => T) => T;
|
|
12694
|
+
//#endregion
|
|
12695
|
+
//#region .dts-emit/code/core/src/errors/server/dev-server.d.ts
|
|
12696
|
+
declare class StatusTypeIdMismatchError extends StorybookError {
|
|
12561
12697
|
data: {
|
|
12562
|
-
|
|
12698
|
+
status: Status$1;
|
|
12699
|
+
typeId: StatusTypeId;
|
|
12563
12700
|
};
|
|
12564
12701
|
constructor(data: {
|
|
12565
|
-
|
|
12702
|
+
status: Status$1;
|
|
12703
|
+
typeId: StatusTypeId;
|
|
12566
12704
|
});
|
|
12567
12705
|
}
|
|
12568
|
-
declare class
|
|
12706
|
+
declare class NoFreePortError extends StorybookError {
|
|
12569
12707
|
data: {
|
|
12570
|
-
|
|
12708
|
+
requestedPort?: number;
|
|
12571
12709
|
};
|
|
12572
12710
|
constructor(data: {
|
|
12573
|
-
|
|
12711
|
+
requestedPort?: number;
|
|
12574
12712
|
});
|
|
12575
12713
|
}
|
|
12576
|
-
declare class
|
|
12577
|
-
|
|
12714
|
+
declare class StorybookDevServerDisconnectedError extends StorybookError {
|
|
12715
|
+
data: {
|
|
12716
|
+
code?: number;
|
|
12717
|
+
reason?: string;
|
|
12718
|
+
};
|
|
12719
|
+
constructor(data?: {
|
|
12720
|
+
code?: number;
|
|
12721
|
+
reason?: string;
|
|
12722
|
+
});
|
|
12578
12723
|
}
|
|
12579
|
-
declare class
|
|
12580
|
-
|
|
12724
|
+
declare class SavingGlobalSettingsFileError extends StorybookError {
|
|
12725
|
+
data: {
|
|
12726
|
+
filePath: string;
|
|
12727
|
+
error: Error | unknown;
|
|
12728
|
+
};
|
|
12729
|
+
constructor(data: {
|
|
12730
|
+
filePath: string;
|
|
12731
|
+
error: Error | unknown;
|
|
12732
|
+
});
|
|
12581
12733
|
}
|
|
12734
|
+
//#endregion
|
|
12735
|
+
//#region .dts-emit/code/core/src/shared/open-service/errors.d.ts
|
|
12736
|
+
/** Identifies which operation surface produced a validation failure. */
|
|
12737
|
+
type OperationKind = 'query' | 'command';
|
|
12738
|
+
/**
|
|
12739
|
+
* Describes the operation and validation phase associated with a schema failure.
|
|
12740
|
+
*/
|
|
12741
|
+
type ValidationMeta = {
|
|
12742
|
+
kind: OperationKind;
|
|
12743
|
+
serviceId: ServiceId;
|
|
12744
|
+
name: string;
|
|
12745
|
+
phase: 'input' | 'output';
|
|
12746
|
+
issues: ReadonlyArray<StandardSchemaV1.Issue>;
|
|
12747
|
+
};
|
|
12748
|
+
//#endregion
|
|
12749
|
+
//#region .dts-emit/code/core/src/errors/server/open-service.d.ts
|
|
12582
12750
|
declare class OpenServiceValidationError extends StorybookError {
|
|
12583
12751
|
data: ValidationMeta;
|
|
12584
12752
|
constructor(data: ValidationMeta);
|
|
@@ -12828,161 +12996,8 @@ declare class OpenServiceDuplicateToolNameError extends StorybookError {
|
|
|
12828
12996
|
transport: 'mcp' | 'cli';
|
|
12829
12997
|
});
|
|
12830
12998
|
}
|
|
12831
|
-
|
|
12832
|
-
|
|
12833
|
-
error: Error;
|
|
12834
|
-
presetName: string;
|
|
12835
|
-
};
|
|
12836
|
-
constructor(data: {
|
|
12837
|
-
error: Error;
|
|
12838
|
-
presetName: string;
|
|
12839
|
-
});
|
|
12840
|
-
}
|
|
12841
|
-
declare class MissingBuilderError extends StorybookError {
|
|
12842
|
-
constructor();
|
|
12843
|
-
}
|
|
12844
|
-
declare class GoogleFontsDownloadError extends StorybookError {
|
|
12845
|
-
data: {
|
|
12846
|
-
fontFamily: string;
|
|
12847
|
-
url: string;
|
|
12848
|
-
};
|
|
12849
|
-
constructor(data: {
|
|
12850
|
-
fontFamily: string;
|
|
12851
|
-
url: string;
|
|
12852
|
-
});
|
|
12853
|
-
}
|
|
12854
|
-
declare class GoogleFontsLoadingError extends StorybookError {
|
|
12855
|
-
data: {
|
|
12856
|
-
error: unknown | Error;
|
|
12857
|
-
url: string;
|
|
12858
|
-
};
|
|
12859
|
-
constructor(data: {
|
|
12860
|
-
error: unknown | Error;
|
|
12861
|
-
url: string;
|
|
12862
|
-
});
|
|
12863
|
-
}
|
|
12864
|
-
declare class NoMatchingExportError extends StorybookError {
|
|
12865
|
-
data: {
|
|
12866
|
-
error: unknown | Error;
|
|
12867
|
-
};
|
|
12868
|
-
constructor(data: {
|
|
12869
|
-
error: unknown | Error;
|
|
12870
|
-
});
|
|
12871
|
-
}
|
|
12872
|
-
declare class MainFileMissingError extends StorybookError {
|
|
12873
|
-
data: {
|
|
12874
|
-
location: string;
|
|
12875
|
-
source?: 'storybook' | 'vitest';
|
|
12876
|
-
};
|
|
12877
|
-
constructor(data: {
|
|
12878
|
-
location: string;
|
|
12879
|
-
source?: 'storybook' | 'vitest';
|
|
12880
|
-
});
|
|
12881
|
-
}
|
|
12882
|
-
declare class MainFileEvaluationError extends StorybookError {
|
|
12883
|
-
data: {
|
|
12884
|
-
location: string;
|
|
12885
|
-
error: Error;
|
|
12886
|
-
};
|
|
12887
|
-
constructor(data: {
|
|
12888
|
-
location: string;
|
|
12889
|
-
error: Error;
|
|
12890
|
-
});
|
|
12891
|
-
}
|
|
12892
|
-
declare class StatusTypeIdMismatchError extends StorybookError {
|
|
12893
|
-
data: {
|
|
12894
|
-
status: Status$1;
|
|
12895
|
-
typeId: StatusTypeId;
|
|
12896
|
-
};
|
|
12897
|
-
constructor(data: {
|
|
12898
|
-
status: Status$1;
|
|
12899
|
-
typeId: StatusTypeId;
|
|
12900
|
-
});
|
|
12901
|
-
}
|
|
12902
|
-
declare class NoFreePortError extends StorybookError {
|
|
12903
|
-
data: {
|
|
12904
|
-
requestedPort?: number;
|
|
12905
|
-
};
|
|
12906
|
-
constructor(data: {
|
|
12907
|
-
requestedPort?: number;
|
|
12908
|
-
});
|
|
12909
|
-
}
|
|
12910
|
-
declare class StorybookDevServerDisconnectedError extends StorybookError {
|
|
12911
|
-
data: {
|
|
12912
|
-
code?: number;
|
|
12913
|
-
reason?: string;
|
|
12914
|
-
};
|
|
12915
|
-
constructor(data?: {
|
|
12916
|
-
code?: number;
|
|
12917
|
-
reason?: string;
|
|
12918
|
-
});
|
|
12919
|
-
}
|
|
12920
|
-
declare class GenerateNewProjectOnInitError extends StorybookError {
|
|
12921
|
-
data: {
|
|
12922
|
-
error: unknown | Error;
|
|
12923
|
-
packageManager: string;
|
|
12924
|
-
projectType: string;
|
|
12925
|
-
};
|
|
12926
|
-
constructor(data: {
|
|
12927
|
-
error: unknown | Error;
|
|
12928
|
-
packageManager: string;
|
|
12929
|
-
projectType: string;
|
|
12930
|
-
});
|
|
12931
|
-
}
|
|
12932
|
-
type MinimumReleaseAgeHandledErrorData = {
|
|
12933
|
-
message: string;
|
|
12934
|
-
cause?: unknown;
|
|
12935
|
-
} | {
|
|
12936
|
-
packageManagerName: string;
|
|
12937
|
-
minimumReleaseAgeConfigName: string;
|
|
12938
|
-
minimumReleaseAgeConfigDocs: string;
|
|
12939
|
-
minimumReleaseAgeExclusionsConfigName?: string;
|
|
12940
|
-
minimumReleaseAgeExclusionsConfigDocs?: string;
|
|
12941
|
-
failedPackage?: string | null;
|
|
12942
|
-
cause?: unknown;
|
|
12943
|
-
};
|
|
12944
|
-
declare class MinimumReleaseAgeHandledError extends StorybookError {
|
|
12945
|
-
data: MinimumReleaseAgeHandledErrorData;
|
|
12946
|
-
constructor(data: MinimumReleaseAgeHandledErrorData);
|
|
12947
|
-
}
|
|
12948
|
-
declare class AddonVitestPostinstallPrerequisiteCheckError extends StorybookError {
|
|
12949
|
-
data: {
|
|
12950
|
-
reasons: string[];
|
|
12951
|
-
};
|
|
12952
|
-
constructor(data: {
|
|
12953
|
-
reasons: string[];
|
|
12954
|
-
});
|
|
12955
|
-
}
|
|
12956
|
-
declare class AddonVitestPostinstallWorkspaceUpdateError extends StorybookError {
|
|
12957
|
-
data: {
|
|
12958
|
-
filePath: string;
|
|
12959
|
-
};
|
|
12960
|
-
constructor(data: {
|
|
12961
|
-
filePath: string;
|
|
12962
|
-
});
|
|
12963
|
-
}
|
|
12964
|
-
declare class AddonVitestPostinstallConfigUpdateError extends StorybookError {
|
|
12965
|
-
data: {
|
|
12966
|
-
filePath: string;
|
|
12967
|
-
};
|
|
12968
|
-
constructor(data: {
|
|
12969
|
-
filePath: string;
|
|
12970
|
-
});
|
|
12971
|
-
}
|
|
12972
|
-
declare class AddonVitestPostinstallError extends StorybookError {
|
|
12973
|
-
data: {
|
|
12974
|
-
errors: StorybookError[];
|
|
12975
|
-
};
|
|
12976
|
-
constructor(data: {
|
|
12977
|
-
errors: StorybookError[];
|
|
12978
|
-
});
|
|
12979
|
-
}
|
|
12980
|
-
declare class NoStatsForViteDevError extends StorybookError {
|
|
12981
|
-
constructor();
|
|
12982
|
-
}
|
|
12983
|
-
declare class ViteModuleGraphSubscriptionError extends StorybookError {
|
|
12984
|
-
constructor();
|
|
12985
|
-
}
|
|
12999
|
+
//#endregion
|
|
13000
|
+
//#region .dts-emit/code/core/src/errors/server/package-manager.d.ts
|
|
12986
13001
|
declare class FindPackageVersionsError extends StorybookError {
|
|
12987
13002
|
data: {
|
|
12988
13003
|
error: Error | unknown;
|
|
@@ -12995,24 +13010,6 @@ declare class FindPackageVersionsError extends StorybookError {
|
|
|
12995
13010
|
packageManager: string;
|
|
12996
13011
|
});
|
|
12997
13012
|
}
|
|
12998
|
-
declare class IncompatiblePostCssConfigError extends StorybookError {
|
|
12999
|
-
data: {
|
|
13000
|
-
error: Error;
|
|
13001
|
-
};
|
|
13002
|
-
constructor(data: {
|
|
13003
|
-
error: Error;
|
|
13004
|
-
});
|
|
13005
|
-
}
|
|
13006
|
-
declare class SavingGlobalSettingsFileError extends StorybookError {
|
|
13007
|
-
data: {
|
|
13008
|
-
filePath: string;
|
|
13009
|
-
error: Error | unknown;
|
|
13010
|
-
};
|
|
13011
|
-
constructor(data: {
|
|
13012
|
-
filePath: string;
|
|
13013
|
-
error: Error | unknown;
|
|
13014
|
-
});
|
|
13015
|
-
}
|
|
13016
13013
|
type ExecaCommandErrorData = {
|
|
13017
13014
|
command: string;
|
|
13018
13015
|
args: string[];
|
|
@@ -13088,4 +13085,4 @@ declare class PlaywrightInstallFailedError extends StorybookError {
|
|
|
13088
13085
|
});
|
|
13089
13086
|
}
|
|
13090
13087
|
//#endregion
|
|
13091
|
-
export { PackageInstallDependencyConflictError as $, API_TestEntry$1 as $a, API_EventMap as $c, Addon_TypesEnum$1 as $i, ArgsStoryFn$1 as $n, PresetConfig$1 as $o, StrictArgTypes$2 as $r, StoriesEntry$1 as $s, combineArgs as $t, OpenServiceDocgenMissingComponentError as A, DocsPreparedPayload as Aa, universalTestProviderStore as Ac, Addon_MakeDecoratorResult$1 as Ai, RequestResponseError as Al, BoundStory as An, CompatibleString$1 as Ao, SBOtherType as Ar, DocgenService as As, ComposeStoryFn$1 as At, OpenServiceMissingServiceError as B, API_FilterFunction$1 as Ba, universalStatusStore as Bc, Addon_StoryFn as Bi, optionOrAltSymbol as Bl, PreparedStory$1 as Bn, CoreConfig$1 as Bo, StoryContext$2 as Br, BaseIndexEntry as Bs, simulateDOMContentLoaded as Bt, NoFreePortError as C, API_SetRefData$1 as Ca, parseToolsetMethodId as Cc, Addon_Elements as Ci, useParameter as Cl, ResolvedModuleExportFromType$1 as Cn, StoryDocsProviderPreset as Co, PlayFunction as Cr, ImportEdge as Cs, StatusValue$1 as Ct, OpenServiceAsyncRecipeError as D, API_UI$1 as Da, Tag$4 as Dc, Addon_Loader as Di, useStorybookState as Dl, Builder_EnvsRaw as Dn, BuilderResult as Do, SBEnumType as Dr, ChangeDetectionAdapter as Ds, Feature$1 as Dt, NxProjectDetectedError as E, API_StoryMapper as Ea, defineService as Ec, Addon_Loadable as Ei, useStorybookApi as El, BuilderStats as En, BuilderOptions$1 as Eo, SBArrayType as Er, ParseFileArgs as Es, SupportedLanguage$1 as Et, OpenServiceInvalidStaticPathError as F, SetStoriesStoryData as Fa, TestProviderStoreById as Fc, Addon_RenderOptions$1 as Fi, controlOrMetaSymbol as Fl, NamedOrDefaultProjectAnnotations$1 as Fn, CoreCommon_AddonInfo$1 as Fo, StepFunction as Fr, DocgenProvider as Fs, getService as Ft, OpenServiceRemoteCommandDisconnectedError as G, API_OptionsData$1 as Ga, Actor as Gc, Addon_StorySortOrder as Gi, AddonStore$1 as Gl, WebRenderer$1 as Gn, LoadOptions$1 as Go, StoryFn as Gr, IndexEntry$1 as Gs, PreviewWithSelection as Gt, OpenServiceModuleGraphUnavailableError as H, API_HashEntry$1 as Ha, MockUniversalStore as Hc, Addon_StorySortComparatorV7 as Hi, shortcutToAriaKeyshortcuts as Hl, RenderContext as Hn, DocsOptions$1 as Ho, StoryContextForLoaders as Hr, DocsAnchor$1 as Hs, WebView as Ht, OpenServiceInvalidToolsetMethodIdError as I, StoryPreparedPayload as Ia, TestProviderStoreEvent as Ic, Addon_RequireContext as Ii, eventMatchesShortcut as Il, NormalizedComponentAnnotations$1 as In, CoreCommon_OptionsEntry as Io, StepLabel as Ir, DocgenProviderDescriptor as Is, registerService as It, OpenServiceTestRunTimeoutError as J, API_RefStoryRuntimeData as Ja, StoreOptions as Jc, Addon_StoryWrapper$1 as Ji, ArgTypes$2 as Jn, Middleware as Jo, StoryKind$1 as Jr, IndexedCSFFile$1 as Js, Preview$1 as Jt, OpenServiceRemoteCommandUnhandledError as K, API_PreparedIndexEntry as Ka, Event as Kc, Addon_StorySortParameter as Ki, Addon_Type$1 as Kl, AfterEach$1 as Kn, LoadedPreset$1 as Ko, StoryId$2 as Kr, IndexInput$1 as Ks, View as Kt, OpenServiceLoadedDrainExceededError as L, API_BaseEntry as La, UseTestProviderStore as Lc, Addon_StoryApi as Li, eventToShortcut as Ll, NormalizedProjectAnnotations$1 as Ln, CoreCommon_ResolvedAddonPreset$1 as Lo, StepRunner$1 as Lr, DocgenProviderInput as Ls, pauseAnimations as Lt, OpenServiceDuplicateToolNameError as M, SetGlobalsPayload as Ma, TestProviderId as Mc, Addon_OptionsParameterV7 as Mi, API_KeyCollection as Ml, ModuleExport$1 as Mn, ComponentSubcomponentManifest as Mo, SBType$1 as Mr, DocgenJsDocTags as Ms, PartialArgsStoryFn as Mt, OpenServiceDuplicateToolsetError as N, SetStoriesPayload as Na, TestProviderState as Nc, Addon_PageType$1 as Ni, KeyboardEventLike as Nl, ModuleExports$1 as Nn, ComponentsManifest as No, SBUnionType as Nr, DocgenMiddleware as Ns, Store_CSFExports$1 as Nt, OpenServiceAsyncSchemaError as O, API_ViewMode$1 as Oa, fullTestProviderStore as Oc, Addon_LoaderFunction as Oi, _default as Ol, Builder_Unpromise as On, CLIBaseOptions as Oo, SBIntersectionType as Or, FileChangeEvent as Os, REVIEW_EVENTS as Ot, OpenServiceInternalServiceError as P, SetStoriesStory as Pa, TestProviderStateByProviderId as Pc, Addon_PartialStoryFn as Pi, controlOrMetaKey as Pl, ModuleImportFn$1 as Pn, CoreCommon_AddonEntry as Po, SeparatorOptions as Pr, DocgenPayload$1 as Ps, StoriesWithPartialProps$1 as Pt, OpenServiceValidationError as Q, API_StoryEntry$1 as Qa, API_DocsEntry$2 as Qc, Addon_Types$1 as Qi, ArgsFromMeta$1 as Qn, Preset as Qo, StorybookTypes$1 as Qr, NormalizedStoriesSpecifier$1 as Qs, userOrAutoTitleFromSpecifier as Qt, OpenServiceMissingChannelError as R, API_ComponentEntry as Ra, fullStatusStore as Rc, Addon_StoryContext as Ri, isShortcutTaken as Rl, NormalizedStoryAnnotations$1 as Rn, CoreCommon_ResolvedAddonVirtual$1 as Ro, StoryAnnotations$1 as Rr, DocgenSubcomponent as Rs, waitForAnimations as Rt, MissingFrameworkFieldError as S, API_RouteOptions as Sa, getToolName as Sc, Addon_DecoratorFunction$1 as Si, useGlobals as Sl, ResolvedModuleExport as Sn, StoryDocsProviderInput as So, Path$1 as Sr, SupportedBuilder$1 as Ss, StatusTypeId as St, NoStatsForViteDevError as T, API_StateMerger$1 as Ta, seedQueryState as Tc, Addon_LoadFn as Ti, useStoryPrepared as Tl, StoryRenderOptions$1 as Tn, BuilderName as To, Renderer$2 as Tr, ImportParserContext as Ts, UseStatusStore as Tt, OpenServiceOperationNameCollisionError as U, API_IndexHash$1 as Ua, useUniversalStore as Uc, Addon_StorySortMethod as Ui, shortcutToHumanString as Ul, RenderToCanvas$1 as Un, Entry as Uo, StoryContextForRender as Ur, DocsIndexEntry$1 as Us, UrlStore as Ut, OpenServiceMissingToolsetError as V, API_GroupEntry as Va, useStatusStore as Vc, Addon_StorySortComparator as Vi, shortcutMatchesShortcut as Vl, ProjectAnnotations$2 as Vn, CsfEnricher$1 as Vo, StoryContextForEnhancers$1 as Vr, BaseIndexInput as Vs, simulatePageLoad as Vt, OpenServiceRemoteCommandConfigDriftError as W, API_LeafEntry$1 as Wa, UniversalStore as Wc, Addon_StorySortObjectParameter as Wi, Options$2 as Wl, TeardownRenderToCanvas as Wn, ForkbookConfig$1 as Wo, StoryContextUpdate$1 as Wr, DocsIndexInput as Ws, PreviewWeb as Wt, OpenServiceUnimplementedOperationError as X, API_RootEntry as Xa, API_ComponentEntry$1 as Xc, Addon_ToolbarConfig as Xi, Args$2 as Xn, Options$1 as Xo, StorybookInternalParameters as Xr, Indexer$1 as Xs, sortStoriesV7 as Xt, OpenServiceToolsetOutputMismatchError as Y, API_ReleaseNotes as Ya, API as Yc, Addon_TestProviderType$1 as Yi, ArgTypesEnhancer as Yn, ModuleResolveConfig as Yo, StoryName$1 as Yr, IndexedStory as Ys, DocsContext as Yt, OpenServiceUnknownStoryIdsError as Z, API_Settings$1 as Za, API_ComposedRef$2 as Zc, Addon_Type as Zi, ArgsEnhancer as Zn, PackageJson$2 as Zo, StorybookParameters as Zr, IndexerOptions as Zs, userOrAutoTitle as Zt, InvalidStoriesEntryError as _, API_ProviderData$1 as _a, SourceWithUrl as _c, Addon_ClientApiReturnFn as _i, useAddonState as _l, makeDecorator as _n, StoryDoc as _o, LegacyStoryAnnotationsOrFn$1 as _r, TestBuildFlags as _s, Status$1 as _t, Category as a, IndexEntryLegacy as aa, StoryIndexV3$1 as ac, Addon_AddStoryArgs as ai, API_RootEntry$1 as al, filterArgTypes as an, useServiceQuery as ao, CleanupCallback$1 as ar, Ref$2 as as, PnpmNoTtyModulesDirError as at, MinimumReleaseAgeHandledError as b, API_Refs$1 as ba, emptyManifests as bc, Addon_Comparator as bi, useChannel as bl, DocsRenderFunction$1 as bn, StoryDocsPayload as bo, Parameters$2 as br, SupportedRenderer$1 as bs, StatusStoreByTypeId$1 as bt, CriticalPresetLoadError as c, API_ComposedRefUpdate$1 as ca, getRegisteredToolsets as cc, Addon_ArgsStoryFn as ci, Combo as cl, composeStories as cn, TypedGetService as co, ComponentTitle$1 as cr, SecurityConfig as cs, StorybookDevServerDisconnectedError as ct, FindPackageVersionsError as d, API_LayoutCustomisations$1 as da, KnownToolsets as dc, Addon_BaseMeta as di, ManagerContext as dl, setProjectAnnotations as dn, ReviewState as do, DecoratorFunction$2 as dr, StorybookConfigOptions as ds, formatExecaCommand as dt, Addon_TypesMapping$1 as ea, StoriesSpecifier as ec, StrictArgs$1 as ei, API_GroupEntry$1 as el, decorateStory as en, API_UnknownEntries$1 as eo, BaseAnnotations$1 as er, PresetProperty$1 as es, PackageInstallFailedError as et, GenerateNewProjectOnInitError as f, API_LoadedRefData$1 as fa, PreviewStoriesOutput as fc, Addon_BaseStoryFn as fi, ManagerProvider as fl, composeStepRunners as fn, prependImportToSnippet as fo, GlobalTypes$1 as fr, StorybookConfigRaw$1 as fs, formatExecaFailureDetails as ft, InvalidFrameworkNameError as g, API_Provider$1 as ga, createDocsToolset as gc, Addon_ClientApiAddons as gi, typesX as gl, normalizeStory as gn, StoryDocsService as go, LegacyAnnotatedStoryFn as gr, TestBuildConfig as gs, REVIEW_STATUS_TYPE_ID as gt, IncompatiblePostCssConfigError as h, API_PanelPositions$1 as ha, reviewToolset as hc, Addon_ClientApiAddon as hi, combineParameters$1 as hl, normalizeProjectAnnotations as hn, selectWarningForStory as ho, InputType as hr, TagsOptions$1 as hs, NON_AGGREGATED_STATUS_TYPE_IDS as ht, AddonVitestPostinstallWorkspaceUpdateError as i, BaseStory as ia, StoryIndexV2$1 as ic, ViewMode$2 as ii, API_Refs$2 as il, PropDescriptor as in, registerService$1 as io, Canvas$1 as ir, PreviewAnnotation as is, PnpmIgnoredBuildsError as it, OpenServiceDuplicateRegistrationError as j, GlobalsUpdatedPayload as ja, useTestProviderStore as jc, Addon_OptionsParameter as ji, experimental_requestResponse as jl, CSFFile$1 as jn, ComponentManifest as jo, SBScalarType as jr, DocgenError as js, ComposedStoryFn$1 as jt, OpenServiceCyclicStateError as k, FilterFunction as ka, getTestProviderStoreById as kc, Addon_Loaders as ki, isMacLike as kl, Builder_WithRequiredProperty as kn, CLIOptions$1 as ko, SBObjectType as kr, ModuleResolveConfig$1 as ks, REVIEW_NAMESPACE as kt, ExecaCommandErrorData as l, API_IframeRenderer$1 as la, getToolset as lc, Addon_BaseAnnotations as li, Listener$2 as ll, composeStory as ln, ModuleGraphServiceState as lo, Conditional$1 as lr, ServerApp as ls, ViteModuleGraphSubscriptionError as lt, GoogleFontsLoadingError as m, API_Notification$1 as ma, createStoriesToolset as mc, Addon_BaseType$1 as mi, State as ml, normalizeArrays as mn, selectStoryDoc as mo, IncludeExcludeOptions as mr, TagOptions as ms, CHANGE_DETECTION_STATUS_TYPE_ID as mt, AddonVitestPostinstallError as n, Addon_WrapperType$1 as na, StoryIndexEntry$1 as nc, Tag$2 as ni, API_IndexHash$2 as nl, sanitizeStoryContextUpdate as nn, API_Versions$2 as no, BeforeAll as nr, PresetValue as ns, PackageManagerBinaryNotFoundError as nt, ConflictingStaticDirConfigError as o, API_ActiveTabsType as oa, V3CompatIndexEntry as oc, Addon_Annotations as oi, API_StoryEntry$2 as ol, combineParameters as on, useServiceCommand as oo, ComponentAnnotations$1 as or, RendererName as os, SavingGlobalSettingsFileError as ot, GoogleFontsDownloadError as p, API_MatchOptions as pa, StoryIndexAccess as pc, Addon_BaseStoryObject as pi, ManagerProviderProps as pl, composeConfigs as pn, selectSnippetForStory as po, Globals$2 as pr, StorybookFeatures as ps, StorybookError as pt, OpenServiceServicesAppliedTwiceError as q, API_PreparedStoryIndex$1 as qa, EventInfo as qc, Addon_StorySortParameterV7$1 as qi, addons$1 as ql, AnnotatedStoryFn$1 as qn, Manifests$1 as qo, StoryIdentifier as qr, IndexInputStats$1 as qs, SelectionStore as qt, AddonVitestPostinstallPrerequisiteCheckError as r, Addons_ArgTypes as ra, StoryIndexInput as rc, TestFunction$1 as ri, API_LeafEntry$2 as rl, inferControls as rn, getService$1 as ro, BeforeEach as rr, Presets$1 as rs, PlaywrightInstallFailedError as rt, CouldNotEvaluateFrameworkError as s, API_ComposedRef$1 as sa, clearToolsetRegistry as sc, Addon_ArgType as si, ActiveTabs as sl, getCsfFactoryAnnotations as sn, ServerCoreServices as so, ComponentId as sr, RootPageOptions as ss, StatusTypeIdMismatchError as st, AddonVitestPostinstallConfigUpdateError as t, Addon_WrapperSettings as ta, StoryIndex$1 as tc, StrictInputType as ti, API_HashEntry$2 as tl, defaultDecorateStory as tn, API_Version$1 as to, BaseProjectAnnotations as tr, PresetPropertyFn as ts, PackageInstallMissingManifestError as tt, ExecaCommandFailedError as u, API_Layout$1 as ua, registerToolset as uc, Addon_BaseDecorators as ui, ManagerConsumer as ul, setDefaultProjectAnnotations as un, ReviewCollection as uo, DecoratorApplicator$1 as ur, Stats as us, describeUnknownStoryIds as ut, MainFileEvaluationError as v, API_RefId as va, DocsAccess as vc, Addon_ClientStoryApi as vi, useArgTypes as vl, addons as vn, StoryDocsById as vo, LegacyStoryFn$1 as vr, TypescriptOptions$1 as vs, StatusByTypeId$1 as vt, NoMatchingExportError as w, API_SidebarOptions$1 as wa, toMcpToolName as wc, Addon_LegacyStoryFn as wi, useSharedState as wl, ResolvedModuleExportType$1 as wn, Builder$1 as wo, PlayFunctionContext as wr, ImportParser as ws, StatusesByStoryIdAndTypeId$1 as wt, MissingBuilderError as x, API_RenderOptions as xa, ToolsetMethodId as xc, Addon_Config$1 as xi, useGlobalTypes as xl, RenderContextCallbacks$1 as xn, StoryDocsProvider as xo, PartialStoryFn$1 as xr, SupportedFramework$1 as xs, StatusStoreEvent as xt, MainFileMissingError as y, API_RefUrl as ya, ResolvedDocsEntry as yc, Addon_Collection$1 as yi, useArgs as yl, DocsContextProps$2 as yn, StoryDocsError as yo, LoaderFunction$1 as yr, VersionCheck as ys, StatusStore as yt, OpenServiceMissingOriginError as z, API_DocsEntry$1 as za, getStatusStoreByTypeId as zc, Addon_StoryContextUpdate as zi, keyToSymbol as zl, PreparedMeta$1 as zn, CoreCommon_StorybookInfo$1 as zo, StoryAnnotationsOrFn$1 as zr, DocgenWorkerModule as zs, emitTransformCode as zt };
|
|
13088
|
+
export { StatusValue$1 as $, ModuleResolveConfig as $a, isMacLike as $c, FilterFunction as $i, PlayFunction as $n, ModuleResolveConfig$1 as $o, Addon_LoaderFunction as $r, getTestProviderStoreById as $s, ResolvedModuleExportFromType$1 as $t, OpenServiceRemoteCommandConfigDriftError as A, BuilderOptions$1 as Aa, API_StoryEntry$2 as Ac, API_ActiveTabsType as Ai, MissingBuilderError as Al, BaseAnnotations$1 as An, API_IndexHash$1 as Ao, StrictArgs$1 as Ar, V3CompatIndexEntry as As, decorateStory as At, NoFreePortError as B, CoreCommon_OptionsEntry as Ba, typesX as Bc, API_Provider$1 as Bi, Category as Bl, DecoratorApplicator$1 as Bn, API_TestEntry$1 as Bo, Addon_BaseMeta as Br, createDocsToolset as Bs, setDefaultProjectAnnotations as Bt, OpenServiceLoadedDrainExceededError as C, StoryDocsError as Ca, API_EventMap as Cc, Addon_TypesEnum$1 as Ci, ConflictingStaticDirConfigError as Cl, AnnotatedStoryFn$1 as Cn, VersionCheck as Co, StoryIdentifier as Cr, StoriesEntry$1 as Cs, SelectionStore as Ct, OpenServiceMissingToolsetError as D, StoryDocsProviderPreset as Da, API_LeafEntry$2 as Dc, Addons_ArgTypes as Di, InvalidStoriesEntryError as Dl, ArgsEnhancer as Dn, API_FilterFunction$1 as Do, StorybookParameters as Dr, StoryIndexInput as Ds, userOrAutoTitle as Dt, OpenServiceMissingServiceError as E, StoryDocsProviderInput as Ea, API_IndexHash$2 as Ec, Addon_WrapperType$1 as Ei, InvalidFrameworkNameError as El, Args$2 as En, API_DocsEntry$1 as Eo, StorybookInternalParameters as Er, StoryIndexEntry$1 as Es, sortStoriesV7 as Et, OpenServiceToolsetOutputMismatchError as F, ComponentManifest as Fa, ManagerContext as Fc, API_LayoutCustomisations$1 as Fi, AddonVitestPostinstallError as Fl, CleanupCallback$1 as Fn, API_RefStoryRuntimeData as Fo, Addon_Annotations as Fr, KnownToolsets as Fs, filterArgTypes as Ft, NON_AGGREGATED_STATUS_TYPE_IDS as G, CsfEnricher$1 as Ga, useGlobalTypes as Gc, API_RenderOptions as Gi, InputType as Gn, SupportedFramework$1 as Go, Addon_Comparator as Gr, ToolsetMethodId as Gs, normalizeProjectAnnotations as Gt, StatusTypeIdMismatchError as H, CoreCommon_ResolvedAddonVirtual$1 as Ha, useArgTypes as Hc, API_RefId as Hi, GlobalTypes$1 as Hn, API_Version$1 as Ho, Addon_BaseStoryObject as Hr, DocsAccess as Hs, composeStepRunners as Ht, OpenServiceUnimplementedOperationError as I, ComponentSubcomponentManifest as Ia, ManagerProvider as Ic, API_LoadedRefData$1 as Ii, AddonVitestPostinstallPrerequisiteCheckError as Il, ComponentAnnotations$1 as In, API_ReleaseNotes as Io, Addon_ArgType as Ir, PreviewStoriesOutput as Is, combineParameters as It, StatusByTypeId$1 as J, ForkbookConfig$1 as Ja, useSharedState as Jc, API_SidebarOptions$1 as Ji, LegacyStoryFn$1 as Jn, ImportParser as Jo, Addon_Elements as Jr, toMcpToolName as Js, addons as Jt, REVIEW_STATUS_TYPE_ID as K, DocsOptions$1 as Ka, useGlobals as Kc, API_RouteOptions as Ki, LegacyAnnotatedStoryFn as Kn, SupportedBuilder$1 as Ko, Addon_Config$1 as Kr, getToolName as Ks, normalizeStory as Kt, OpenServiceUnknownStoryIdsError as L, ComponentsManifest as La, ManagerProviderProps as Lc, API_MatchOptions as Li, AddonVitestPostinstallWorkspaceUpdateError as Ll, ComponentId as Ln, API_RootEntry as Lo, Addon_ArgsStoryFn as Lr, StoryIndexAccess as Ls, getCsfFactoryAnnotations as Lt, OpenServiceRemoteCommandUnhandledError as M, CLIBaseOptions as Ma, Combo as Mc, API_ComposedRefUpdate$1 as Mi, NoMatchingExportError as Ml, BeforeAll as Mn, API_OptionsData$1 as Mo, Tag$2 as Mr, getRegisteredToolsets as Ms, sanitizeStoryContextUpdate as Mt, OpenServiceServicesAppliedTwiceError as N, CLIOptions$1 as Na, Listener$2 as Nc, API_IframeRenderer$1 as Ni, NxProjectDetectedError as Nl, BeforeEach as Nn, API_PreparedIndexEntry as No, TestFunction$1 as Nr, getToolset as Ns, inferControls as Nt, OpenServiceModuleGraphUnavailableError as O, Builder$1 as Oa, API_Refs$2 as Oc, BaseStory as Oi, MainFileEvaluationError as Ol, ArgsFromMeta$1 as On, API_GroupEntry as Oo, StorybookTypes$1 as Or, StoryIndexV2$1 as Os, userOrAutoTitleFromSpecifier as Ot, OpenServiceTestRunTimeoutError as P, CompatibleString$1 as Pa, ManagerConsumer as Pc, API_Layout$1 as Pi, AddonVitestPostinstallConfigUpdateError as Pl, Canvas$1 as Pn, API_PreparedStoryIndex$1 as Po, ViewMode$2 as Pr, registerToolset as Ps, PropDescriptor as Pt, StatusTypeId as Q, Middleware as Qa, _default as Qc, API_ViewMode$1 as Qi, Path$1 as Qn, FileChangeEvent as Qo, Addon_Loader as Qr, fullTestProviderStore as Qs, ResolvedModuleExport as Qt, OpenServiceValidationError as R, CoreCommon_AddonEntry as Ra, State as Rc, API_Notification$1 as Ri, GenerateNewProjectOnInitError as Rl, ComponentTitle$1 as Rn, API_Settings$1 as Ro, Addon_BaseAnnotations as Rr, createStoriesToolset as Rs, composeStories as Rt, OpenServiceInvalidToolsetMethodIdError as S, StoryDocsById as Sa, API_DocsEntry$2 as Sc, Addon_Types$1 as Si, ViteModuleGraphSubscriptionError as Sl, AfterEach$1 as Sn, TypescriptOptions as So, StoryId$2 as Sr, NormalizedStoriesSpecifier$1 as Ss, View as St, OpenServiceMissingOriginError as T, StoryDocsProvider as Ta, API_HashEntry$2 as Tc, Addon_WrapperSettings as Ti, CriticalPresetLoadError as Tl, ArgTypesEnhancer as Tn, API_ComponentEntry as To, StoryName$1 as Tr, StoryIndex$1 as Ts, DocsContext as Tt, StorybookDevServerDisconnectedError as U, CoreCommon_StorybookInfo$1 as Ua, useArgs as Uc, API_RefUrl as Ui, Globals$2 as Un, API_Versions$2 as Uo, Addon_BaseType$1 as Ur, ResolvedDocsEntry as Us, composeConfigs as Ut, SavingGlobalSettingsFileError as V, CoreCommon_ResolvedAddonPreset$1 as Va, useAddonState as Vc, API_ProviderData$1 as Vi, StorybookError as Vl, DecoratorFunction$2 as Vn, API_UnknownEntries$1 as Vo, Addon_BaseStoryFn as Vr, SourceWithUrl as Vs, setProjectAnnotations as Vt, CHANGE_DETECTION_STATUS_TYPE_ID as W, CoreConfig$1 as Wa, useChannel as Wc, API_Refs$1 as Wi, IncludeExcludeOptions as Wn, SupportedRenderer$1 as Wo, Addon_Collection$1 as Wr, emptyManifests as Ws, normalizeArrays as Wt, StatusStoreByTypeId$1 as X, LoadedPreset$1 as Xa, useStorybookApi as Xc, API_StoryMapper as Xi, Parameters$2 as Xn, ParseFileArgs as Xo, Addon_LoadFn as Xr, defineService as Xs, DocsRenderFunction$1 as Xt, StatusStore as Y, LoadOptions$1 as Ya, useStoryPrepared as Yc, API_StateMerger$1 as Yi, LoaderFunction$1 as Yn, ImportParserContext as Yo, Addon_LegacyStoryFn as Yr, seedQueryState as Ys, DocsContextProps$2 as Yt, StatusStoreEvent as Z, Manifests$1 as Za, useStorybookState as Zc, API_UI$1 as Zi, PartialStoryFn$1 as Zn, ChangeDetectionAdapter as Zo, Addon_Loadable as Zr, Tag$4 as Zs, RenderContextCallbacks$1 as Zt, OpenServiceDuplicateRegistrationError as _, selectSnippetForStory as _a, EventInfo as _c, Addon_StorySortParameterV7$1 as _i, addons$1 as _l, ProjectAnnotations$2 as _n, StorybookFeatures as _o, StoryContextForEnhancers$1 as _r, IndexInputStats$1 as _s, simulatePageLoad as _t, PackageInstallFailedError as a, SetStoriesStoryData as aa, TestProviderStoreById as ac, Addon_PartialStoryFn as ai, controlOrMetaSymbol as al, Builder_WithRequiredProperty as an, PresetPropertyFn as ao, SBObjectType as ar, DocgenProvider as as, REVIEW_NAMESPACE as at, OpenServiceInternalServiceError as b, StoryDocsService as ba, API_ComponentEntry$1 as bc, Addon_ToolbarConfig as bi, IncompatiblePostCssConfigError as bl, TeardownRenderToCanvas as bn, TestBuildConfig as bo, StoryContextUpdate$1 as br, Indexer$1 as bs, PreviewWeb as bt, PlaywrightInstallFailedError as c, registerService$1 as ca, fullStatusStore as cc, Addon_StoryContext as ci, isShortcutTaken as cl, ModuleExport$1 as cn, PreviewAnnotation as co, SBType$1 as cr, DocgenSubcomponent as cs, PartialArgsStoryFn as ct, formatExecaCommand as d, ServerCoreServices as da, useStatusStore as dc, Addon_StorySortComparator as di, shortcutMatchesShortcut as dl, NamedOrDefaultProjectAnnotations$1 as dn, RootPageOptions as do, StepFunction as dr, BaseIndexInput as ds, getService as dt, DocsPreparedPayload as ea, universalTestProviderStore as ec, Addon_Loaders as ei, RequestResponseError as el, ResolvedModuleExportType$1 as en, Options$1 as eo, PlayFunctionContext as er, DocgenService as es, StatusesByStoryIdAndTypeId$1 as et, formatExecaFailureDetails as f, TypedGetService as fa, MockUniversalStore as fc, Addon_StorySortComparatorV7 as fi, shortcutToAriaKeyshortcuts as fl, NormalizedComponentAnnotations$1 as fn, SecurityConfig as fo, StepLabel as fr, DocsAnchor$1 as fs, registerService as ft, OpenServiceDocgenMissingComponentError as g, prependImportToSnippet as ga, Event as gc, Addon_StorySortParameter as gi, Addon_Type$1 as gl, PreparedStory$1 as gn, StorybookConfigRaw$1 as go, StoryContext$2 as gr, IndexInput$1 as gs, simulateDOMContentLoaded as gt, OpenServiceCyclicStateError as h, ReviewState as ha, Actor as hc, Addon_StorySortOrder as hi, AddonStore$1 as hl, PreparedMeta$1 as hn, StorybookConfigOptions as ho, StoryAnnotationsOrFn$1 as hr, IndexEntry$1 as hs, emitTransformCode as ht, PackageInstallDependencyConflictError as i, SetStoriesStory as ia, TestProviderStateByProviderId as ic, Addon_PageType$1 as ii, controlOrMetaKey as il, Builder_Unpromise as in, PresetProperty$1 as io, SBIntersectionType as ir, DocgenPayload$1 as is, REVIEW_EVENTS as it, OpenServiceRemoteCommandDisconnectedError as j, BuilderResult as ja, ActiveTabs as jc, API_ComposedRef$1 as ji, MissingFrameworkFieldError as jl, BaseProjectAnnotations as jn, API_LeafEntry$1 as jo, StrictInputType as jr, clearToolsetRegistry as js, defaultDecorateStory as jt, OpenServiceOperationNameCollisionError as k, BuilderName as ka, API_RootEntry$1 as kc, IndexEntryLegacy as ki, MainFileMissingError as kl, ArgsStoryFn$1 as kn, API_HashEntry$1 as ko, StrictArgTypes$2 as kr, StoryIndexV3$1 as ks, combineArgs as kt, PnpmIgnoredBuildsError as l, useServiceQuery as la, getStatusStoreByTypeId as lc, Addon_StoryContextUpdate as li, keyToSymbol as ll, ModuleExports$1 as ln, Ref$2 as lo, SBUnionType as lr, DocgenWorkerModule as ls, Store_CSFExports$1 as lt, OpenServiceAsyncSchemaError as m, ReviewCollection as ma, UniversalStore as mc, Addon_StorySortObjectParameter as mi, Options$2 as ml, NormalizedStoryAnnotations$1 as mn, Stats as mo, StoryAnnotations$1 as mr, DocsIndexInput as ms, waitForAnimations as mt, ExecaCommandFailedError as n, SetGlobalsPayload as na, TestProviderId as nc, Addon_OptionsParameter as ni, API_KeyCollection as nl, BuilderStats as nn, Preset as no, SBArrayType as nr, DocgenJsDocTags as ns, SupportedLanguage$1 as nt, PackageInstallMissingManifestError as o, StoryPreparedPayload as oa, TestProviderStoreEvent as oc, Addon_RenderOptions$1 as oi, eventMatchesShortcut as ol, BoundStory as on, PresetValue as oo, SBOtherType as or, DocgenProviderDescriptor as os, ComposeStoryFn$1 as ot, OpenServiceAsyncRecipeError as p, ModuleGraphServiceState as pa, useUniversalStore as pc, Addon_StorySortMethod as pi, shortcutToHumanString as pl, NormalizedProjectAnnotations$1 as pn, ServerApp as po, StepRunner$1 as pr, DocsIndexEntry$1 as ps, pauseAnimations as pt, Status$1 as q, Entry as qa, useParameter as qc, API_SetRefData$1 as qi, LegacyStoryAnnotationsOrFn$1 as qn, ImportEdge as qo, Addon_DecoratorFunction$1 as qr, parseToolsetMethodId as qs, makeDecorator as qt, FindPackageVersionsError as r, SetStoriesPayload as ra, TestProviderState as rc, Addon_OptionsParameterV7 as ri, KeyboardEventLike as rl, Builder_EnvsRaw as rn, PresetConfig$1 as ro, SBEnumType as rr, DocgenMiddleware as rs, Feature$1 as rt, PackageManagerBinaryNotFoundError as s, getService$1 as sa, UseTestProviderStore as sc, Addon_RequireContext as si, eventToShortcut as sl, CSFFile$1 as sn, Presets$1 as so, SBScalarType as sr, DocgenProviderInput as ss, ComposedStoryFn$1 as st, ExecaCommandErrorData as t, GlobalsUpdatedPayload as ta, useTestProviderStore as tc, Addon_MakeDecoratorResult$1 as ti, experimental_requestResponse as tl, StoryRenderOptions$1 as tn, PackageJson$2 as to, Renderer$2 as tr, DocgenError as ts, UseStatusStore as tt, PnpmNoTtyModulesDirError as u, useServiceCommand as ua, universalStatusStore as uc, Addon_StoryFn as ui, optionOrAltSymbol as ul, ModuleImportFn$1 as un, RendererName as uo, SeparatorOptions as ur, BaseIndexEntry as us, StoriesWithPartialProps$1 as ut, OpenServiceDuplicateToolNameError as v, selectStoryDoc as va, StoreOptions as vc, Addon_StoryWrapper$1 as vi, GoogleFontsDownloadError as vl, RenderContext as vn, TagOptions as vo, StoryContextForLoaders as vr, IndexedCSFFile$1 as vs, WebView as vt, OpenServiceMissingChannelError as w, StoryDocsPayload as wa, API_GroupEntry$1 as wc, Addon_TypesMapping$1 as wi, CouldNotEvaluateFrameworkError as wl, ArgTypes$2 as wn, API_BaseEntry as wo, StoryKind$1 as wr, StoriesSpecifier as ws, Preview$1 as wt, OpenServiceInvalidStaticPathError as x, StoryDoc as xa, API_ComposedRef$2 as xc, Addon_Type as xi, NoStatsForViteDevError as xl, WebRenderer$1 as xn, TestBuildFlags as xo, StoryFn as xr, IndexerOptions as xs, PreviewWithSelection as xt, OpenServiceDuplicateToolsetError as y, selectWarningForStory as ya, API as yc, Addon_TestProviderType$1 as yi, GoogleFontsLoadingError as yl, RenderToCanvas$1 as yn, TagsOptions$1 as yo, StoryContextForRender as yr, IndexedStory as ys, UrlStore as yt, describeUnknownStoryIds as z, CoreCommon_AddonInfo$1 as za, combineParameters$1 as zc, API_PanelPositions$1 as zi, MinimumReleaseAgeHandledError as zl, Conditional$1 as zn, API_StoryEntry$1 as zo, Addon_BaseDecorators as zr, reviewToolset as zs, composeStory as zt };
|