@aussieljk/forkbook 0.0.1-10 → 0.0.1-12
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/assets/server/template.ejs +6 -3
- package/dist/_browser-chunks/{Color-X63I7FHI.js → Color-TA43572R.js} +2 -2
- package/dist/_browser-chunks/{DocsRenderer-JXND3PVQ.js → DocsRenderer-DKXSW2OY.js} +2 -2
- package/dist/_browser-chunks/{WithTooltip-5S6F2P7L.js → WithTooltip-66AWY4VQ.js} +5 -4
- package/dist/_browser-chunks/{chunk-RBCHTR7C.js → chunk-2ELGJRFZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-DYNTDJ3O.js → chunk-2UKY4NXZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-I4ATZPNZ.js → chunk-2WMECYEY.js} +3 -3
- package/dist/_browser-chunks/{chunk-6ELMKWKX.js → chunk-2WZWS7GJ.js} +1 -1
- package/dist/_browser-chunks/{chunk-N3NRW5XX.js → chunk-2YWS25WY.js} +1 -1
- package/dist/_browser-chunks/{chunk-NGMQJMCY.js → chunk-3O4QUF3D.js} +1 -1
- package/dist/_browser-chunks/{chunk-GNZY6LOW.js → chunk-5MRMYSUN.js} +4 -4
- package/dist/_browser-chunks/{chunk-RMYQ3QN3.js → chunk-5XGERZHU.js} +15 -12
- package/dist/_browser-chunks/{chunk-5WMXI5GW.js → chunk-AQVUHXWY.js} +6 -4
- package/dist/_browser-chunks/{chunk-ZHKZKFY4.js → chunk-ARZTIHZK.js} +6 -10
- package/dist/_browser-chunks/{chunk-DS2WQZGO.js → chunk-D2Z5KXPS.js} +12 -41
- package/dist/_browser-chunks/{chunk-EQKMUQF3.js → chunk-DT7BB545.js} +3 -2
- package/dist/_browser-chunks/{chunk-76222HQR.js → chunk-E6QKKKLO.js} +20 -5
- package/dist/_browser-chunks/{chunk-5Z65SURM.js → chunk-F22A5EGD.js} +4 -4
- package/dist/_browser-chunks/{chunk-3M5T7BW4.js → chunk-GGALYEQS.js} +1 -1
- package/dist/_browser-chunks/{chunk-TTBPZQ24.js → chunk-HGIW4I4J.js} +11 -18
- package/dist/_browser-chunks/{chunk-46Z7NGAS.js → chunk-HX443LKV.js} +1 -1
- package/dist/_browser-chunks/{chunk-KYSD26D6.js → chunk-IGD46SQI.js} +90 -83
- package/dist/_browser-chunks/{chunk-LTCXWKZO.js → chunk-QSYOMLRG.js} +667 -624
- package/dist/_browser-chunks/{chunk-2JT76G3E.js → chunk-SBOQ4QPY.js} +15 -15
- package/dist/_browser-chunks/{chunk-O24AZJZ7.js → chunk-UDR26TXA.js} +2 -2
- package/dist/_browser-chunks/{chunk-5I7E4GMO.js → chunk-WY2LUGOH.js} +1 -1
- package/dist/_browser-chunks/{chunk-7DQREF4S.js → chunk-XV3AEPJW.js} +1 -1
- 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-PDBJ2EGV.js → attached-runtime-AU2RZM4Y.js} +28 -29
- package/dist/_node-chunks/{builder-manager-VLL26RPG.js → builder-manager-UPXA2KKT.js} +39 -28
- package/dist/_node-chunks/{chunk-FR2ZDWKJ.js → chunk-22A63J7O.js} +7 -7
- package/dist/_node-chunks/{chunk-ZBWAA2EY.js → chunk-22TWJGGQ.js} +28 -43
- package/dist/_node-chunks/{chunk-M4QNXI37.js → chunk-2GJBHF56.js} +6 -6
- package/dist/_node-chunks/{chunk-TNFH4Y4G.js → chunk-2MGPZNKV.js} +280 -306
- package/dist/_node-chunks/{chunk-KRWR44KT.js → chunk-2Q3YWQSK.js} +6 -6
- package/dist/_node-chunks/{chunk-6DRVJCYP.js → chunk-2W525A4I.js} +7 -7
- package/dist/_node-chunks/{chunk-ZFLK7MY5.js → chunk-2X3WAH7V.js} +7 -7
- package/dist/_node-chunks/{chunk-FERXOKZY.js → chunk-34DNGOCZ.js} +8 -8
- package/dist/_node-chunks/{chunk-ID3WA6WR.js → chunk-3MJZ5GI2.js} +6 -6
- package/dist/_node-chunks/{chunk-AAL6X7YG.js → chunk-3X67K6EI.js} +136 -114
- package/dist/_node-chunks/{chunk-QGC3UWR5.js → chunk-5KMW5XXM.js} +6 -6
- package/dist/_node-chunks/{chunk-FXBZWUW3.js → chunk-5MYXWAKD.js} +512 -1033
- package/dist/_node-chunks/chunk-5N7YRHXJ.js +20 -0
- package/dist/_node-chunks/{chunk-QGVU7IFS.js → chunk-6772LYNF.js} +7 -7
- package/dist/_node-chunks/{chunk-IGOX6TUG.js → chunk-76M6JG5T.js} +7 -7
- package/dist/_node-chunks/{chunk-MKUA4ZCG.js → chunk-7F6TIY4T.js} +8 -8
- package/dist/_node-chunks/{chunk-KWNBN3DV.js → chunk-7SBWGNA7.js} +10 -10
- package/dist/_node-chunks/chunk-ABCEMTIP.js +20 -0
- package/dist/_node-chunks/{chunk-JVWXCB3L.js → chunk-AHNN3TQH.js} +8 -8
- package/dist/_node-chunks/{chunk-CEDR5CNM.js → chunk-BDATIKVV.js} +7 -7
- package/dist/_node-chunks/{chunk-K4O2ZAMU.js → chunk-BMM74ZQW.js} +6 -6
- package/dist/_node-chunks/{chunk-DR7NW2MI.js → chunk-BOWRRVJM.js} +6 -6
- package/dist/_node-chunks/{chunk-FRBE7ES4.js → chunk-BTDLJXAT.js} +6 -6
- package/dist/_node-chunks/{chunk-GKHLTHYM.js → chunk-C2HVGXLD.js} +224 -181
- package/dist/_node-chunks/chunk-CWIJ2D5F.js +18 -0
- package/dist/_node-chunks/{chunk-QOFBJXPH.js → chunk-DNX4BLMS.js} +7 -7
- package/dist/_node-chunks/{chunk-G2ZUFOHU.js → chunk-DXR3YGRT.js} +6 -6
- package/dist/_node-chunks/{chunk-GBVWRZHP.js → chunk-EFZAYIPN.js} +6 -6
- package/dist/_node-chunks/{chunk-MY7UVHPL.js → chunk-FAR3NIPG.js} +8 -8
- package/dist/_node-chunks/{chunk-MBPHOLXB.js → chunk-FFUIQJRI.js} +32 -40
- package/dist/_node-chunks/{chunk-TZIT6SZP.js → chunk-FKI7K3GE.js} +6 -6
- package/dist/_node-chunks/{chunk-VSHYJR23.js → chunk-FR67COFW.js} +7 -7
- package/dist/_node-chunks/chunk-FUDG3QKB.js +25 -0
- package/dist/_node-chunks/chunk-G6GOV7H7.js +19 -0
- package/dist/_node-chunks/{chunk-DRCP3DQF.js → chunk-H7UVQBCQ.js} +8 -8
- package/dist/_node-chunks/{chunk-CSFNS7HA.js → chunk-HMQUTLMS.js} +6 -6
- package/dist/_node-chunks/{chunk-VG2KFIOW.js → chunk-HPXM4SGT.js} +9 -9
- package/dist/_node-chunks/{chunk-MQC7ZY6L.js → chunk-HW4T3OXA.js} +7 -7
- package/dist/_node-chunks/{chunk-QVLHVO4X.js → chunk-HW7RCOV4.js} +8 -8
- package/dist/_node-chunks/{chunk-NGFFEW2B.js → chunk-IFHNMS7I.js} +19 -19
- package/dist/_node-chunks/{chunk-IL7YA7QJ.js → chunk-IKUSSZJ3.js} +10 -10
- package/dist/_node-chunks/{chunk-OPG46TLN.js → chunk-IOXDHKFF.js} +7 -7
- package/dist/_node-chunks/chunk-J3CNNXKQ.js +11 -0
- package/dist/_node-chunks/{chunk-ACSO4HQP.js → chunk-JB4457FJ.js} +6 -6
- package/dist/_node-chunks/{chunk-T5VZYRL2.js → chunk-JHX35YKT.js} +6 -6
- package/dist/_node-chunks/{chunk-CKE4R4NL.js → chunk-JKPKEYSH.js} +6 -6
- package/dist/_node-chunks/{chunk-RC4HPD5Q.js → chunk-JMFTALJW.js} +6 -6
- package/dist/_node-chunks/{chunk-BDU3ZUMK.js → chunk-JXS4P2RM.js} +7 -7
- package/dist/_node-chunks/{chunk-7CV4VEA2.js → chunk-K2K6KTBC.js} +8 -8
- package/dist/_node-chunks/{chunk-THDTJJMO.js → chunk-KMC5WWQS.js} +7 -7
- package/dist/_node-chunks/{chunk-FJFB7TWU.js → chunk-KQTFSKC6.js} +8 -8
- package/dist/_node-chunks/{chunk-GQYATLH6.js → chunk-KZPWZM2E.js} +37 -34
- package/dist/_node-chunks/{chunk-FZ453CHY.js → chunk-LTJ4AYDM.js} +6 -6
- package/dist/_node-chunks/{chunk-LH5QBX2U.js → chunk-MNNESU33.js} +497 -475
- package/dist/_node-chunks/{chunk-FQGQ5KHN.js → chunk-MNQVVJZN.js} +6 -6
- package/dist/_node-chunks/{chunk-CZ3V3HHK.js → chunk-NO7MF6VR.js} +6 -6
- package/dist/_node-chunks/{chunk-MIWBXEUH.js → chunk-NPSIAK46.js} +6 -6
- package/dist/_node-chunks/{chunk-GGE7TBVX.js → chunk-NUSHY22I.js} +62 -7
- package/dist/_node-chunks/{chunk-YU5TVYPS.js → chunk-NXRZL2PR.js} +6 -6
- package/dist/_node-chunks/{chunk-7O2UIVID.js → chunk-O2CCUB5T.js} +7 -7
- package/dist/_node-chunks/{chunk-BNEC3EBC.js → chunk-ORSH2FXG.js} +6 -6
- package/dist/_node-chunks/{chunk-LX2XSPPL.js → chunk-OSNOV4EH.js} +7 -7
- package/dist/_node-chunks/{chunk-BPL3ERBH.js → chunk-PHB6QBHM.js} +10 -10
- package/dist/_node-chunks/{chunk-63LPGIV4.js → chunk-POA32M7F.js} +21 -21
- package/dist/_node-chunks/{chunk-QFXAGOIO.js → chunk-Q64ESHBN.js} +8 -8
- package/dist/_node-chunks/{chunk-SYUOBOB5.js → chunk-QBWGJYHY.js} +6 -6
- package/dist/_node-chunks/{chunk-7OY4VMAT.js → chunk-QSKVNZCF.js} +7 -7
- package/dist/_node-chunks/{chunk-MRCPS4S3.js → chunk-QX6RXAEU.js} +6 -6
- package/dist/_node-chunks/{chunk-RJXAXHDJ.js → chunk-R73PEGQU.js} +9 -9
- package/dist/_node-chunks/{chunk-3CSGIJKG.js → chunk-RHH7VDIY.js} +8 -8
- package/dist/_node-chunks/{chunk-BXDMSX3D.js → chunk-RMJNWFPV.js} +9 -9
- package/dist/_node-chunks/{chunk-GJSYGBI5.js → chunk-RT2LVWTC.js} +7 -7
- package/dist/_node-chunks/{chunk-5NRWU7S2.js → chunk-SPCPGRYF.js} +7 -7
- package/dist/_node-chunks/{chunk-FWAF5NBL.js → chunk-SUHBBHKR.js} +6 -6
- package/dist/_node-chunks/{chunk-SGEPJMTU.js → chunk-TXZTC6LA.js} +22 -22
- package/dist/_node-chunks/{chunk-5SMIGUYF.js → chunk-U5HVQTHI.js} +6 -6
- package/dist/_node-chunks/{chunk-LG3NMXCM.js → chunk-UFZUSE3Y.js} +6 -6
- package/dist/_node-chunks/{chunk-DQ44ZAEM.js → chunk-UGQFYYBC.js} +6 -6
- package/dist/_node-chunks/{chunk-R2ZCFA7I.js → chunk-UKLCYEZU.js} +7 -7
- package/dist/_node-chunks/{chunk-IUPE4SU2.js → chunk-VJEN2JM3.js} +8 -8
- package/dist/_node-chunks/{chunk-WVRM6DQU.js → chunk-W5ZAUN5R.js} +7 -7
- package/dist/_node-chunks/{chunk-7KD5DKGZ.js → chunk-WNEWL2PL.js} +6 -6
- package/dist/_node-chunks/{chunk-6DHTL5G2.js → chunk-WUVQ465T.js} +6 -6
- package/dist/_node-chunks/{chunk-3W4KR5GX.js → chunk-XCNYQV2M.js} +19 -15
- package/dist/_node-chunks/{chunk-VUMGWJ6Y.js → chunk-XOAWAXUH.js} +7 -7
- package/dist/_node-chunks/chunk-Y472MP5U.js +281 -0
- package/dist/_node-chunks/{chunk-HCP5DG52.js → chunk-ZCKTYMZT.js} +320 -316
- package/dist/_node-chunks/{chunk-ECOW63CV.js → chunk-ZUK5ZLPP.js} +8 -8
- package/dist/_node-chunks/dist-2DPC664Y.js +27 -0
- package/dist/_node-chunks/dist-XBFUDMFQ.js +16 -0
- package/dist/_node-chunks/{local-runtime-V5YTRN24.js → local-runtime-Z667YPXR.js} +19 -20
- package/dist/_node-chunks/{mdx-plugin-CBOD52VP.js → mdx-plugin-BPRPTZNP.js} +13 -13
- package/dist/_node-chunks/{monorepo-GF6H53U4.js → monorepo-GO54BY34.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-K4TTV2DQ.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-PEHFNJQ5.js} +11 -11
- package/dist/_node-chunks/optimized-tests-W7U4ZRWX.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-M2QNC4IZ.js → pattern-copy-play-64HQIVWK.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-XM2BHKDN.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-3IDE4CYH.js → rehype-external-links-2BSEZ7AC.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-GKB3WS3U.js → rehype-slug-6253EA36.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-C6QU365N.js → relaxed-limits-4PAAPG3J.js} +11 -11
- package/dist/_node-chunks/{run-XWBUPXLN.js → run-3SQW3FRF.js} +18 -18
- package/dist/_node-chunks/{run-TMVS3KKA.js → run-XJT3YVMZ.js} +16 -16
- package/dist/_node-chunks/{setup-KEEJK4WI.js → setup-JIYCTADZ.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-74HEE4WJ.js → vitest.config.4.template-W74SGWHT.js} +7 -7
- package/dist/actions/decorator.js +12 -20
- package/dist/addon-a11y/index.js +2 -2
- package/dist/addon-a11y/manager.js +12 -12
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +2 -2
- package/dist/addon-docs/blocks.d.ts +10 -6
- package/dist/addon-docs/blocks.js +28 -30
- package/dist/addon-docs/index.js +3 -3
- package/dist/addon-docs/manager.js +3 -3
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-docs/preview.js +1 -1
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-mcp/preset.js +9 -9
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +15 -15
- 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.js +1 -1
- 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 +28 -28
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +15 -15
- package/dist/addon-vitest/vitest-plugin/global-setup.js +21 -21
- package/dist/addon-vitest/vitest-plugin/index.js +68 -58
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +106 -88
- package/dist/bin/dispatcher.js +10 -10
- package/dist/bin/loader.js +8 -8
- 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 +1 -1
- package/dist/{chunk-Dr3R0DXk.d.ts → chunk-B-NVyPqN.d.ts} +2 -2
- package/dist/{chunk-Fg1Fm__9.d.ts → chunk-BmCH-L7_.d.ts} +393 -383
- package/dist/{chunk-CNqjcOmK.d.ts → chunk-Bn1RoGAP.d.ts} +1 -1
- package/dist/{chunk-BXLImeLy.d.ts → chunk-CfEntHiI.d.ts} +18 -3
- package/dist/{chunk-D0NUmzXp.d.ts → chunk-IMedIHPn.d.ts} +3 -3
- package/dist/{chunk-CYuvV2sR.d.ts → chunk-evfhuBNU.d.ts} +1 -1
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +25 -30
- package/dist/cli/tools/sdk/child-host.d.ts +1 -1
- package/dist/cli/tools/sdk/child-host.js +17 -17
- package/dist/cli/tools/sdk/index.d.ts +2 -2
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.js +2 -1
- package/dist/common/index.d.ts +5 -5
- package/dist/common/index.js +34 -35
- package/dist/components/index.d.ts +6 -6
- package/dist/components/index.js +152 -162
- package/dist/core-server/index.d.ts +6 -5
- package/dist/core-server/index.js +688 -152
- package/dist/core-server/presets/common-manager.js +227 -316
- package/dist/core-server/presets/common-override-preset.js +10 -10
- package/dist/core-server/presets/common-preset.js +73 -268
- 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 +1 -1
- package/dist/csf/index.js +10 -10
- package/dist/csf-tools/index.d.ts +41 -37
- package/dist/csf-tools/index.js +13 -13
- package/dist/instrumenter/index.d.ts +1 -1
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CJL1dQtn.js → globals-runtime--RDllwDw.js} +629 -436
- 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-CfurFwS_.js → globals-runtime-BFVFUcji.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-BKQscPdC.js → globals-runtime-BWciJpaD.js} +103 -101
- 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-BY3epqww.js → globals-runtime-CS41oTca.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DBba3I9c.js → globals-runtime-CdLHkSK1.js} +260 -401
- 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-DgO0hT2p.js +32 -0
- package/dist/manager/_manager-chunks/{globals-runtime-CvIgTRVu.js → globals-runtime-DhygDQ09.js} +5 -5
- package/dist/manager/_manager-chunks/{globals-runtime-NwJK8t0T.js → globals-runtime-DweLlyBa.js} +5 -4
- package/dist/manager/_manager-chunks/globals-runtime-Me9Bl-sx.js +156 -0
- 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-Bs3bEhuy.js → runtime-1BcYUf7-.js} +24 -42
- package/dist/manager/_manager-chunks/{runtime-CBQsKmch.js → runtime-B2VQIT0n.js} +739 -554
- package/dist/manager/_manager-chunks/runtime-BBaBlpAS.js +552 -0
- package/dist/manager/_manager-chunks/{runtime-B_nqedQW.js → runtime-BFgSyEE6.js} +13 -13
- package/dist/manager/_manager-chunks/{runtime-jj8qYc2n.js → runtime-CE_oqcpl.js} +6 -6
- package/dist/manager/_manager-chunks/{runtime-DtCVCy4G.js → runtime-CRqm7NXD.js} +49 -49
- package/dist/manager/_manager-chunks/{runtime-5B2mWjEm.js → runtime-CZtDJIYj.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-eBAgOym6.js → runtime-D3Gk2bTl.js} +846 -835
- package/dist/manager/_manager-chunks/{runtime-DG61zYUm.js → runtime-Db8fJ2MP.js} +67 -500
- package/dist/manager/_manager-chunks/{runtime-j9yqh0tr.js → runtime-Dj8tizGo.js} +101 -101
- 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 +444 -428
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.js +9 -9
- package/dist/mocking-utils/index.js +15 -19
- package/dist/nextjs-vite/export-mocks/router/index.js +1 -1
- package/dist/nextjs-vite/index.d.ts +1 -1
- package/dist/nextjs-vite/index.js +4 -4
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +12 -12
- 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 +15 -15
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +1 -1
- package/dist/node-logger/index.d.ts +16 -16
- 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-BJwGQok8.js → runtime-4BNaFIif.js} +180 -21
- package/dist/preview/_chunks/{runtime-BUnOhg9h.js → runtime-BSJ0Ov_b.js} +2 -2
- package/dist/preview/_chunks/{runtime-BhSZ1Mwt.js → runtime-Bjm1gBLN.js} +6 -19
- package/dist/preview/_chunks/{runtime-Bcv1hJky.js → runtime-CBKlMZg2.js} +4148 -48
- package/dist/preview/_chunks/{runtime-BPwAnlRx.js → runtime-CElbz0uN.js} +1 -1
- package/dist/preview/_chunks/{runtime-BZ4pNS3g.js → runtime-C_nyb8QT.js} +3 -3
- package/dist/preview/_chunks/{runtime-BgPhfM5P.js → runtime-CzTPeFXg.js} +676 -376
- package/dist/preview/_chunks/{runtime-WapFVPAh.js → runtime-DZ7fvh0y.js} +1 -1
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +2 -2
- package/dist/preview-api/index.js +5 -5
- 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 +1 -1
- 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 +30 -34
- 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 +14 -14
- 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 +4 -3
- package/dist/react-native-ui/index.js +1 -8
- package/dist/react-native-ui-common/index.d.ts +7 -6
- package/dist/react-native-ui-common/index.js +6 -6
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +1 -1
- package/dist/shared/open-service/index.js +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 +2 -2
- package/dist/telemetry/index.d.ts +38 -274
- package/dist/telemetry/index.js +11 -66
- package/dist/test/index.js +125 -112
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +2 -2
- package/package.json +15 -15
- 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-BMJPOQ2S.js +0 -11
- package/dist/_node-chunks/chunk-C3PLG47Q.js +0 -25
- package/dist/_node-chunks/chunk-DNV3LPV3.js +0 -33
- package/dist/_node-chunks/chunk-DPILYJH4.js +0 -33
- package/dist/_node-chunks/chunk-EBWZKN2I.js +0 -1297
- package/dist/_node-chunks/chunk-ENBDAHOV.js +0 -18
- package/dist/_node-chunks/chunk-FAEOR2AW.js +0 -40
- package/dist/_node-chunks/chunk-HVOSLI2K.js +0 -20
- package/dist/_node-chunks/chunk-ND323XCC.js +0 -33
- package/dist/_node-chunks/chunk-PEL4YXU6.js +0 -19
- package/dist/_node-chunks/chunk-T6IU66AM.js +0 -69
- package/dist/_node-chunks/chunk-TY2ZY7AO.js +0 -155
- package/dist/_node-chunks/chunk-ZD5TUA6I.js +0 -20
- package/dist/_node-chunks/dist-7OJKTBKL.js +0 -27
- package/dist/_node-chunks/dist-MWP6WLW4.js +0 -16
- package/dist/_node-chunks/optimized-tests-KOTSVWTN.js +0 -22
- package/dist/_node-chunks/postinstallAddon-WXKJL6DP.js +0 -20
- package/dist/_node-chunks/session-id-VMH57SKN.js +0 -23
- 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
package/dist/manager/_manager-chunks/{globals-runtime-CJL1dQtn.js → globals-runtime--RDllwDw.js}
RENAMED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { a as __toESM, n as __esmMin, r as __exportAll } from "./globals-runtime-BdGkqNEt.js";
|
|
2
|
-
import { B as stringify, H as init_esm, L as init_dist, V as dedent, c as require_semver, s as require_store2, z as parse } from "./globals-runtime-
|
|
3
|
-
import { $ as countStatusesByValue, A as setStoryPathEntries, B as init_test, C as init_use_universal_store_manager, D as buildManagerHref, E as router_exports, F as init_routes, G as init_tags$1, H as BUILT_IN_FILTERS, I as isReviewManagerRoute, L as create, M as buildArgsParam, O as fromUrlPath, P as queryFromLocation, Q as UNIVERSAL_STATUS_STORE_OPTIONS, R as create_exports, S as init_mock, T as init_router, U as Tag, V as test_exports, W as USER_TAG_FILTER, _ as useServiceCommand, _t as
|
|
4
|
-
import { $ as once, A as SET_WHATS_NEW_CACHE, B as STORY_PREPARED, C as SELECT_STORY, D as SET_GLOBALS, E as SET_FILTER, F as STORIES_EXPAND_ALL, G as UPDATE_GLOBALS, H as STORY_SPECIFIED, I as STORY_ARGS_UPDATED, J as core_events_exports, K as UPDATE_QUERY_PARAMS, L as STORY_CHANGED, M as SHARED_STATE_SET, N as SIDEBAR_FILTER_CHANGED, O as SET_INDEX, P as STORIES_COLLAPSE_ALL, Q as logger, R as STORY_INDEX_INVALIDATED, S as RESULT_WHATS_NEW_DATA, T as SET_CURRENT_STORY, U as TELEMETRY_ERROR, V as STORY_RENDER_PHASE_CHANGED, W as TOGGLE_WHATS_NEW_NOTIFICATIONS, X as client_logger_exports, Y as init_core_events, Z as init_client_logger, _ as OPEN_IN_EDITOR_RESPONSE, a as channels_exports, b as REQUEST_WHATS_NEW_DATA, c as init_channel_slot, d as CURRENT_STORY_WAS_SET, f as DOCS_PREPARED, g as OPEN_IN_EDITOR_REQUEST, h as NAVIGATE_URL, i as mockChannel, j as SHARED_STATE_CHANGED, k as SET_STORIES, l as setChannel, m as GLOBALS_UPDATED, n as init_components, o as init_channels, p as FORCE_REMOUNT, q as UPDATE_STORY_ARGS, r as init_mock_channel, s as getChannel, t as components_exports, u as CONFIG_ERROR, v as PRELOAD_ENTRIES, w as SET_CONFIG, x as RESET_STORY_ARGS, y as PREVIEW_KEYDOWN, z as STORY_MISSING } from "./globals-runtime-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { n as
|
|
9
|
-
import {
|
|
2
|
+
import { B as stringify, H as init_esm, L as init_dist, V as dedent, c as require_semver, s as require_store2, z as parse } from "./globals-runtime-BnQ7i5wq.js";
|
|
3
|
+
import { $ as countStatusesByValue, A as setStoryPathEntries, B as init_test, C as init_use_universal_store_manager, D as buildManagerHref, E as router_exports, F as init_routes, G as init_tags$1, H as BUILT_IN_FILTERS, I as isReviewManagerRoute, L as create, M as buildArgsParam, O as fromUrlPath, P as queryFromLocation, Q as UNIVERSAL_STATUS_STORE_OPTIONS, R as create_exports, S as init_mock, T as init_router, U as Tag, V as test_exports, W as USER_TAG_FILTER, _ as useServiceCommand, _t as UniversalStore, b as init_test_provider_store, bt as init_storybook_error, d as getService, et as createStatusStore, f as init_manager, gt as init_global, h as useServiceQuery, ht as global, it as formatIssues, j as toUrlPath, n as theming_exports, nt as statusValueShortName, p as registerService, rt as toStatusValue, t as init_theming, tt as init_status_store, v as UNIVERSAL_TEST_PROVIDER_STORE_OPTIONS, vt as init_universal_store, w as useUniversalStore, x as MockUniversalStore, y as createTestProviderStore, yt as StorybookError, z as init_create } from "./globals-runtime-CdLHkSK1.js";
|
|
4
|
+
import { $ as once, A as SET_WHATS_NEW_CACHE, B as STORY_PREPARED, C as SELECT_STORY, D as SET_GLOBALS, E as SET_FILTER, F as STORIES_EXPAND_ALL, G as UPDATE_GLOBALS, H as STORY_SPECIFIED, I as STORY_ARGS_UPDATED, J as core_events_exports, K as UPDATE_QUERY_PARAMS, L as STORY_CHANGED, M as SHARED_STATE_SET, N as SIDEBAR_FILTER_CHANGED, O as SET_INDEX, P as STORIES_COLLAPSE_ALL, Q as logger, R as STORY_INDEX_INVALIDATED, S as RESULT_WHATS_NEW_DATA, T as SET_CURRENT_STORY, U as TELEMETRY_ERROR, V as STORY_RENDER_PHASE_CHANGED, W as TOGGLE_WHATS_NEW_NOTIFICATIONS, X as client_logger_exports, Y as init_core_events, Z as init_client_logger, _ as OPEN_IN_EDITOR_RESPONSE, a as channels_exports, b as REQUEST_WHATS_NEW_DATA, c as init_channel_slot, d as CURRENT_STORY_WAS_SET, f as DOCS_PREPARED, g as OPEN_IN_EDITOR_REQUEST, h as NAVIGATE_URL, i as mockChannel, j as SHARED_STATE_CHANGED, k as SET_STORIES, l as setChannel, m as GLOBALS_UPDATED, n as init_components, o as init_channels, p as FORCE_REMOUNT, q as UPDATE_STORY_ARGS, r as init_mock_channel, s as getChannel, t as components_exports, u as CONFIG_ERROR, v as PRELOAD_ENTRIES, w as SET_CONFIG, x as RESET_STORY_ARGS, y as PREVIEW_KEYDOWN, z as STORY_MISSING } from "./globals-runtime-BWciJpaD.js";
|
|
5
|
+
import { i as require_react, r as require_jsx_runtime } from "./globals-runtime-nQMRiA0J.js";
|
|
6
|
+
import { n as require_react_dom, t as require_client } from "./globals-runtime-DgO0hT2p.js";
|
|
7
|
+
import { F as mergeWith, L as mapValues, N as omit, O as init_toMerged, P as init_mergeWith, R as init_isEqual, a as throttle, c as partition, i as init_throttle, j as pick, k as toMerged, l as countBy, o as require_copy_to_clipboard, t as require_browser_dtector_umd_min, z as isEqual } from "./globals-runtime-B4NRbNSS.js";
|
|
8
|
+
import { $ as init_timer, $a as init_circle, $i as init_file_code, $n as init_network, $o as init_bold, $r as init_layers, $t as init_save, A as Users, Aa as CornerUpRight, Ai as GitFork, An as Pilcrow, Ao as Check, Ar as Mail, As as ArrowDownRight, At as Smartphone, B as Unlink, Ba as Command, Bi as Folder, Bn as PanelLeft, Bo as Calendar, Br as ListFilter, Bs as Accessibility, Bt as ShoppingBasket, C as init_watch, Ca as init_database, Ci as init_grid_2x2, Cn as init_plus, Co as init_chevron_up, Cr as init_menu, Cs as init_arrow_left, Ct as init_square_x, D as init_volume_2, Da as init_credit_card, Di as init_git_pull_request, Dn as init_pin, Do as init_chevron_left, Dr as init_maximize_2, Ds as init_arrow_down, Dt as init_square_arrow_out_up_right, E as Volume2, Ea as CreditCard, Ei as GitPullRequest, En as Pin, Eo as ChevronLeft, Er as Maximize2, Es as ArrowDown, Et as SquareArrowOutUpRight, F as init_user_plus, Fa as init_copy, Fi as init_git_branch, Fn as init_pencil, Fo as init_chart_line, Fr as init_lock_open, Fs as init_archive_restore, Ft as init_skip_forward, G as init_type, Ga as init_code, Gi as init_flask_conical, Gn as init_paintbrush_vertical, Go as init_brush_cleaning, Gr as init_link, Gt as init_share, H as UnfoldVertical, Ha as Columns2, Hi as FoldVertical, Hn as Paintbrush, Ho as Bug, Hr as ListChecks, Hs as LucideProvider, Ht as Shield, I as UserCog, Ia as Contrast, Ii as Gift, In as PenTool, Io as ChartColumn, Ir as List, Is as Apple, It as SkipBack, J as TriangleAlert, Ja as Cloud, Ji as Files, Jn as Nut, Jo as Bookmark, Jr as LifeBuoy, Jt as Settings, K as TrianglesCenterlineDashedHorizontal, Ka as CodeXml, Ki as Flag, Kn as Package, Ko as Briefcase, Kr as Library, Kt as Share2, L as init_user_cog, La as init_contrast, Li as init_gift, Ln as init_pen_tool, Lo as init_chart_column, Lr as init_list, Ls as init_apple, Lt as init_skip_back, M as User, Ma as CornerUpLeft, Mi as GitCommitHorizontal, Mn as Phone, Mo as CheckCheck, Mr as Lock, Ms as ArrowDownLeft, Mt as SlidersHorizontal, N as init_user, Na as init_corner_up_left, Ni as init_git_commit_horizontal, Nn as init_phone, No as init_check_check, Nr as init_lock, Ns as init_arrow_down_left, Nt as init_sliders_horizontal, O as Video, Oa as Cpu, Oi as GitMerge, On as PinOff, Oo as ChevronDown, Or as MapPin, Os as ArrowDownWideNarrow, Ot as SquareArrowDownLeft, P as UserPlus, Pa as Copy, Pi as GitBranch, Pn as Pencil, Po as ChartLine, Pr as LockOpen, Ps as ArchiveRestore, Pt as SkipForward, Q as Timer, Qa as Circle, Qi as FileCode, Qn as Network, Qo as Bold, Qr as Layers, Qt as Save, R as Upload, Ra as Compass, Ri as Gauge, Rn as Paperclip, Ro as Camera, Rr as ListOrdered, Rs as AppWindow, Rt as Signpost, S as Watch, Sa as Database, Si as Grid2x2, Sn as Plus, So as ChevronUp, Sr as Menu, Ss as ArrowLeft, St as SquareX, T as init_wand_sparkles, Ta as init_crosshair, Ti as init_globe, Tn as init_play, To as init_chevron_right, Tr as init_memory_stick, Ts as init_arrow_left_right, Tt as init_square_dashed, U as init_unfold_vertical, Ua as init_columns_2, Ui as init_fold_vertical, Un as init_paintbrush, Uo as init_bug, Ur as init_list_checks, Us as init_context$1, Ut as init_shield, V as init_unlink, Va as init_command, Vi as init_folder, Vn as init_panel_left, Vo as init_calendar, Vr as init_list_filter, Vs as init_accessibility, Vt as init_shopping_basket, W as Type, Wa as Code, Wi as FlaskConical, Wn as PaintbrushVertical, Wo as BrushCleaning, Wr as Link, Ws as require_memoizerific, Wt as Share, X as Trash, Xa as Clock, Xi as FileText, Xn as Newspaper, Xo as BookOpen, Xr as LayoutGrid, Xt as Search, Y as init_triangle_alert, Ya as init_cloud, Yi as init_files, Yn as init_nut, Yo as init_bookmark, Yr as init_life_buoy, Yt as init_settings$1, Z as init_trash, Za as init_clock, Zi as init_file_text, Zn as init_newspaper, Zo as init_book_open, Zr as init_layout_grid, Zt as init_search, _ as init_x, _a as init_download, _i as init_hard_drive, _n as init_printer, _o as init_circle_arrow_right, _r as init_message_square_text, _s as init_arrow_up_narrow_wide, _t as init_sticker, aa as init_face_slightly_frowning, ai as init_info, an as init_rows_2, ao as init_circle_stop, ar as init_moon, as as init_badge_check, at as init_text_align_start, b as Waypoints, ba as Delete, bi as GripVertical, bn as Pointer, bo as CircleAlert, br as MessageCircleMore, bs as ArrowRight, bt as Square, c as ZoomOut, ca as Eye, ci as IdCard, cn as RotateCcw, co as CircleQuestionMark, cr as MonitorPlay, cs as AtSign, ct as Terminal, d as init_zoom_in, da as init_eye_off, di as init_house, dn as init_rewind, do as init_circle_play, dr as init_minus, ds as init_atom, dt as init_tag, ea as FastForward, ei as Key, en as Ruler, eo as CircleX, er as MousePointerClick, es as Bell, et as ThumbsUp, f as Zap, fa as Expand, fi as Hourglass, fn as RefreshCw, fo as CirclePlus, fr as MessagesSquare, fs as ArrowUp, ft as Tablet, g as X, ga as Download, gi as HardDrive, gn as Printer, go as CircleArrowRight, gr as MessageSquareText, gs as ArrowUpNarrowWide, gt as Sticker, h as init_zap_off, ha as init_ellipsis, hi as init_heart, hn as init_puzzle, ho as init_circle_check, hr as init_message_square, hs as init_arrow_up_right, ht as init_sun, ia as FaceSlightlyFrowning, ii as Info, in as Rows2, io as CircleStop, ir as Moon, is as BadgeCheck, it as TextAlignStart, j as init_users, ja as init_corner_up_right, ji as init_git_fork, jn as init_pilcrow, jo as init_check, jr as init_mail, js as init_arrow_down_right, jt as init_smartphone, k as init_video, ka as init_cpu, ki as init_git_merge, kn as init_pin_off, ko as init_chevron_down, kr as init_map_pin, ks as init_arrow_down_wide_narrow, kt as init_square_arrow_down_left, l as init_zoom_out, la as init_eye, li as init_id_card, ln as init_rotate_ccw, lo as init_circle_question_mark, lr as init_monitor_play, ls as init_at_sign, lt as init_terminal, m as ZapOff, ma as Ellipsis, mi as Heart, mn as Puzzle, mo as CircleCheck, mr as MessageSquare, ms as ArrowUpRight, mt as Sun, na as FaceSlightlySmiling, ni as Italic, nn as Rss, no as CircleUser, nr as MousePointer2, ns as Ban, nt as TextCursorInput, oa as FaceNeutral, oi as Image, on as RotateCw, oo as CircleSlash2, or as Monitor, os as Award, ot as TextAlignEnd, p as init_zap, pa as init_expand, pi as init_hourglass, pn as init_refresh_cw, po as init_circle_plus, pr as init_messages_square, ps as init_arrow_up, pt as init_tablet, q as init_triangles_centerline_dashed_horizontal, qa as init_code_xml, qi as init_flag, qn as init_package, qo as init_briefcase, qr as init_library, qt as init_share_2, ra as init_face_slightly_smiling, ri as init_italic, rn as init_rss, ro as init_circle_user, rr as init_mouse_pointer_2, rs as init_ban, rt as init_text_cursor_input, sa as init_face_neutral, si as init_image, sn as init_rotate_cw, so as init_circle_slash_2, sr as init_monitor, ss as init_award, st as init_text_align_end, ta as init_fast_forward, ti as init_key, tn as init_ruler, to as init_circle_x, tr as init_mouse_pointer_click, ts as init_bell, tt as init_thumbs_up, u as ZoomIn, ua as EyeOff, ui as House, un as Rewind, uo as CirclePlay, ur as Minus, us as Atom, ut as Tag$1, v as Wrench, va as Diamond, vi as Grid3x3, vn as Power, vo as CircleArrowLeft, vr as MessageCircle, vs as ArrowUpLeft, vt as Star, w as WandSparkles, wa as Crosshair, wi as Globe, wn as Play, wo as ChevronRight, wr as MemoryStick, ws as ArrowLeftRight, wt as SquareDashed, x as init_waypoints, xa as init_delete, xi as init_grip_vertical, xn as init_pointer, xo as init_circle_alert, xr as init_message_circle_more, xs as init_arrow_right, xt as init_square, y as init_wrench, ya as init_diamond, yi as init_grid_3x3, yn as init_power, yo as init_circle_arrow_left, yr as init_message_circle, ys as init_arrow_up_left, yt as init_star, z as init_upload, za as init_compass, zi as init_gauge, zn as init_paperclip, zo as init_camera, zr as init_list_ordered, zs as init_app_window, zt as init_signpost } from "./globals-runtime-oRjPg2jY.js";
|
|
9
|
+
import { n as types_exports, r as Addon_TypesEnum, t as init_types } from "./globals-runtime-BFVFUcji.js";
|
|
10
|
+
import { c as stringify$1, o as init_main } from "./globals-runtime-BzuYs3dZ.js";
|
|
11
|
+
import { h as processError, m as init_error } from "./globals-runtime-DCmvKMN5.js";
|
|
10
12
|
//#region src/manager-errors.ts
|
|
11
13
|
var manager_errors_exports = /* @__PURE__ */ __exportAll({
|
|
12
14
|
Category: () => Category,
|
|
13
15
|
OpenServiceStaticSnapshotInvalidError: () => OpenServiceStaticSnapshotInvalidError,
|
|
14
16
|
OpenServiceStaticSnapshotLoadError: () => OpenServiceStaticSnapshotLoadError,
|
|
15
17
|
ProviderDoesNotExtendBaseProviderError: () => ProviderDoesNotExtendBaseProviderError,
|
|
16
|
-
StatusTypeIdMismatchError: () => StatusTypeIdMismatchError$
|
|
18
|
+
StatusTypeIdMismatchError: () => StatusTypeIdMismatchError$2,
|
|
17
19
|
UncaughtManagerError: () => UncaughtManagerError,
|
|
18
20
|
UniversalStoreFollowerTimeoutError: () => UniversalStoreFollowerTimeoutError
|
|
19
21
|
});
|
|
20
|
-
var Category, ProviderDoesNotExtendBaseProviderError, UncaughtManagerError, StatusTypeIdMismatchError$
|
|
22
|
+
var Category, ProviderDoesNotExtendBaseProviderError, UncaughtManagerError, StatusTypeIdMismatchError$2, UniversalStoreFollowerTimeoutError, OpenServiceStaticSnapshotLoadError, OpenServiceStaticSnapshotInvalidError;
|
|
21
23
|
function init_manager_errors() {
|
|
22
24
|
return (init_manager_errors = __esmMin((() => {
|
|
23
25
|
init_storybook_error();
|
|
@@ -56,7 +58,7 @@ function init_manager_errors() {
|
|
|
56
58
|
this.stack = data.error.stack;
|
|
57
59
|
}
|
|
58
60
|
};
|
|
59
|
-
StatusTypeIdMismatchError$
|
|
61
|
+
StatusTypeIdMismatchError$2 = class extends StorybookError {
|
|
60
62
|
constructor(data) {
|
|
61
63
|
super({
|
|
62
64
|
name: "StatusTypeIdMismatchError",
|
|
@@ -104,7 +106,7 @@ function init_manager_errors() {
|
|
|
104
106
|
}
|
|
105
107
|
//#endregion
|
|
106
108
|
//#region src/preview-errors.ts
|
|
107
|
-
var InvalidChannelPageError, StatusTypeIdMismatchError;
|
|
109
|
+
var InvalidChannelPageError, StatusTypeIdMismatchError$1;
|
|
108
110
|
function init_preview_errors() {
|
|
109
111
|
return (init_preview_errors = __esmMin((() => {
|
|
110
112
|
init_storybook_error();
|
|
@@ -119,7 +121,7 @@ function init_preview_errors() {
|
|
|
119
121
|
this.data = data;
|
|
120
122
|
}
|
|
121
123
|
};
|
|
122
|
-
StatusTypeIdMismatchError = class extends StorybookError {
|
|
124
|
+
StatusTypeIdMismatchError$1 = class extends StorybookError {
|
|
123
125
|
constructor(data) {
|
|
124
126
|
super({
|
|
125
127
|
name: "StatusTypeIdMismatchError",
|
|
@@ -229,6 +231,185 @@ function init_initial_state() {
|
|
|
229
231
|
})))();
|
|
230
232
|
}
|
|
231
233
|
//#endregion
|
|
234
|
+
//#region src/errors/server/dev-server.ts
|
|
235
|
+
var StatusTypeIdMismatchError;
|
|
236
|
+
function init_dev_server() {
|
|
237
|
+
return (init_dev_server = __esmMin((() => {
|
|
238
|
+
init_storybook_error();
|
|
239
|
+
StatusTypeIdMismatchError = class extends StorybookError {
|
|
240
|
+
constructor(data) {
|
|
241
|
+
super({
|
|
242
|
+
name: "StatusTypeIdMismatchError",
|
|
243
|
+
category: "CORE-SERVER",
|
|
244
|
+
code: 16,
|
|
245
|
+
message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify(data.status, null, 2)}`
|
|
246
|
+
});
|
|
247
|
+
this.data = data;
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
})))();
|
|
251
|
+
}
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region src/errors/server/open-service.ts
|
|
254
|
+
var OpenServiceValidationError, OpenServiceMissingServiceError, OpenServiceInternalServiceError, OpenServiceUnimplementedOperationError, OpenServiceInvalidStaticPathError, OpenServiceAsyncSchemaError, OpenServiceLoadedDrainExceededError, OpenServiceMissingChannelError, OpenServiceRemoteCommandDisconnectedError, OpenServiceRemoteCommandUnhandledError, OpenServiceRemoteCommandConfigDriftError, OpenServiceAsyncRecipeError, OpenServiceCyclicStateError, OpenServiceOperationNameCollisionError;
|
|
255
|
+
function init_open_service() {
|
|
256
|
+
return (init_open_service = __esmMin((() => {
|
|
257
|
+
init_storybook_error();
|
|
258
|
+
OpenServiceValidationError = class extends StorybookError {
|
|
259
|
+
constructor(data) {
|
|
260
|
+
super({
|
|
261
|
+
name: "OpenServiceValidationError",
|
|
262
|
+
category: "CORE-COMMON",
|
|
263
|
+
code: 5,
|
|
264
|
+
message: `Invalid ${data.phase} for ${data.kind} "${data.serviceId}.${data.name}":\n${formatIssues(data.issues)}`
|
|
265
|
+
});
|
|
266
|
+
this.data = data;
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
OpenServiceMissingServiceError = class extends StorybookError {
|
|
270
|
+
constructor(data) {
|
|
271
|
+
super({
|
|
272
|
+
name: "OpenServiceMissingServiceError",
|
|
273
|
+
category: "CORE-COMMON",
|
|
274
|
+
code: 7,
|
|
275
|
+
message: `No registered service with id "${data.serviceId}" exists in this environment.`
|
|
276
|
+
});
|
|
277
|
+
this.data = data;
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
OpenServiceInternalServiceError = class extends StorybookError {
|
|
281
|
+
constructor(data) {
|
|
282
|
+
super({
|
|
283
|
+
name: "OpenServiceInternalServiceError",
|
|
284
|
+
category: "CORE-COMMON",
|
|
285
|
+
code: 19,
|
|
286
|
+
message: `Service "${data.serviceId}" is internal. Pass { internal: true } to getService() only if you intentionally depend on an unstable OSA surface. Internal services may change without notice.`
|
|
287
|
+
});
|
|
288
|
+
this.data = data;
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
OpenServiceUnimplementedOperationError = class extends StorybookError {
|
|
292
|
+
constructor(data) {
|
|
293
|
+
super({
|
|
294
|
+
name: "OpenServiceUnimplementedOperationError",
|
|
295
|
+
category: "CORE-COMMON",
|
|
296
|
+
code: 8,
|
|
297
|
+
message: `${data.kind[0].toUpperCase()}${data.kind.slice(1)} "${data.serviceId}.${data.name}" is not implemented for this environment.`
|
|
298
|
+
});
|
|
299
|
+
this.data = data;
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
OpenServiceInvalidStaticPathError = class extends StorybookError {
|
|
303
|
+
constructor(data) {
|
|
304
|
+
super({
|
|
305
|
+
name: "OpenServiceInvalidStaticPathError",
|
|
306
|
+
category: "CORE-COMMON",
|
|
307
|
+
code: 10,
|
|
308
|
+
message: `Invalid static path "${data.path}" for query "${data.serviceId}.${data.name}": use a relative path with forward slashes and no ".." segments.`
|
|
309
|
+
});
|
|
310
|
+
this.data = data;
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
OpenServiceAsyncSchemaError = class extends StorybookError {
|
|
314
|
+
constructor(data) {
|
|
315
|
+
super({
|
|
316
|
+
name: "OpenServiceAsyncSchemaError",
|
|
317
|
+
category: "CORE-COMMON",
|
|
318
|
+
code: 9,
|
|
319
|
+
message: `Async schema for ${data.kind} "${data.serviceId}.${data.name}" (${data.phase}): query input and output schemas must validate synchronously.`
|
|
320
|
+
});
|
|
321
|
+
this.data = data;
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
OpenServiceLoadedDrainExceededError = class extends StorybookError {
|
|
325
|
+
constructor(data) {
|
|
326
|
+
super({
|
|
327
|
+
name: "OpenServiceLoadedDrainExceededError",
|
|
328
|
+
category: "CORE-COMMON",
|
|
329
|
+
code: 11,
|
|
330
|
+
message: `Query "${data.serviceId}.${data.name}".loaded(...) did not settle after ${data.iterations} drain iterations. Check for handlers that keep discovering new dependencies after every state change.`
|
|
331
|
+
});
|
|
332
|
+
this.data = data;
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
OpenServiceMissingChannelError = class extends StorybookError {
|
|
336
|
+
constructor(data = {}) {
|
|
337
|
+
super({
|
|
338
|
+
name: "OpenServiceMissingChannelError",
|
|
339
|
+
category: "CORE-COMMON",
|
|
340
|
+
code: 13,
|
|
341
|
+
message: data.serviceId ? `Cannot register service "${data.serviceId}": the Forkbook addons channel is not installed in this runtime.` : "The Forkbook addons channel is not installed in this runtime."
|
|
342
|
+
});
|
|
343
|
+
this.data = data;
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
OpenServiceRemoteCommandDisconnectedError = class extends StorybookError {
|
|
347
|
+
constructor(data) {
|
|
348
|
+
super({
|
|
349
|
+
name: "OpenServiceRemoteCommandDisconnectedError",
|
|
350
|
+
category: "CORE-COMMON",
|
|
351
|
+
code: 14,
|
|
352
|
+
message: `Service "${data.serviceId}" was unregistered before a remote command resolved.`
|
|
353
|
+
});
|
|
354
|
+
this.data = data;
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
OpenServiceRemoteCommandUnhandledError = class extends StorybookError {
|
|
358
|
+
constructor(data) {
|
|
359
|
+
super({
|
|
360
|
+
name: "OpenServiceRemoteCommandUnhandledError",
|
|
361
|
+
category: "CORE-COMMON",
|
|
362
|
+
code: 15,
|
|
363
|
+
message: data.delegated ? `The Forkbook this runtime is attached to did not acknowledge remote command "${data.serviceId}.${data.commandName}" in time — it may be busy or unreachable. Retry; note the command may still have executed on that instance.` : `No runtime acknowledged remote command "${data.serviceId}.${data.commandName}"; its handler is not implemented in any connected runtime.`
|
|
364
|
+
});
|
|
365
|
+
this.data = data;
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
OpenServiceRemoteCommandConfigDriftError = class extends StorybookError {
|
|
369
|
+
constructor(data) {
|
|
370
|
+
super({
|
|
371
|
+
name: "OpenServiceRemoteCommandConfigDriftError",
|
|
372
|
+
category: "CORE-COMMON",
|
|
373
|
+
code: 30,
|
|
374
|
+
message: `The Forkbook this runtime is attached to reported it has no handler for remote command "${data.serviceId}.${data.commandName}". The two processes are running different configurations (for example a feature flag enabled in one but not the other). Restart the attached Forkbook with a configuration matching this process.`
|
|
375
|
+
});
|
|
376
|
+
this.data = data;
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
OpenServiceAsyncRecipeError = class extends StorybookError {
|
|
380
|
+
constructor() {
|
|
381
|
+
super({
|
|
382
|
+
name: "OpenServiceAsyncRecipeError",
|
|
383
|
+
category: "CORE-COMMON",
|
|
384
|
+
code: 31,
|
|
385
|
+
message: "setState recipes must be synchronous. A write after an await would change state without authoring a sync entry. Split the command into one setState per synchronous step."
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
OpenServiceCyclicStateError = class extends StorybookError {
|
|
390
|
+
constructor() {
|
|
391
|
+
super({
|
|
392
|
+
name: "OpenServiceCyclicStateError",
|
|
393
|
+
category: "CORE-COMMON",
|
|
394
|
+
code: 32,
|
|
395
|
+
message: "Service state must be JSON-serializable, but the value is cyclic or nested more than 256 levels deep. Store an id and look the value up in a query instead of a reference."
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
OpenServiceOperationNameCollisionError = class extends StorybookError {
|
|
400
|
+
constructor(data) {
|
|
401
|
+
super({
|
|
402
|
+
name: "OpenServiceOperationNameCollisionError",
|
|
403
|
+
category: "CORE-COMMON",
|
|
404
|
+
code: 16,
|
|
405
|
+
message: `Service "${data.serviceId}" cannot register "${data.operationName}" as both a query and a command.`
|
|
406
|
+
});
|
|
407
|
+
this.data = data;
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
})))();
|
|
411
|
+
}
|
|
412
|
+
//#endregion
|
|
232
413
|
//#region src/manager-api/lib/addons.ts
|
|
233
414
|
function getAddonsStore() {
|
|
234
415
|
if (!globalThis[KEY]) globalThis[KEY] = new AddonStore();
|
|
@@ -885,7 +1066,7 @@ function init_instrumenter() {
|
|
|
885
1066
|
args: call.args.map((arg) => serializeValues(arg, 0, []))
|
|
886
1067
|
};
|
|
887
1068
|
call.path.forEach((ref) => {
|
|
888
|
-
if (ref?.__callId__) this.setState(call.storyId, ({ chainedCallIds }) => ({ chainedCallIds: new Set(Array.from(chainedCallIds).concat(ref.__callId__)) }));
|
|
1069
|
+
if (typeof ref === "object" && ref?.__callId__) this.setState(call.storyId, ({ chainedCallIds }) => ({ chainedCallIds: new Set(Array.from(chainedCallIds).concat(ref.__callId__)) }));
|
|
889
1070
|
});
|
|
890
1071
|
const handleException = (e) => {
|
|
891
1072
|
if (e instanceof Error) {
|
|
@@ -1348,7 +1529,7 @@ function init_refs() {
|
|
|
1348
1529
|
if (refId || source) return ["external", sourceFull];
|
|
1349
1530
|
return [null, null];
|
|
1350
1531
|
};
|
|
1351
|
-
defaultStoryMapper = (
|
|
1532
|
+
defaultStoryMapper = (_ref, a) => {
|
|
1352
1533
|
return {
|
|
1353
1534
|
...a,
|
|
1354
1535
|
kind: a.kind.replace("|", "/")
|
|
@@ -1531,10 +1712,7 @@ function init_refs() {
|
|
|
1531
1712
|
...ref,
|
|
1532
1713
|
...data
|
|
1533
1714
|
};
|
|
1534
|
-
const ordered = Object.keys(initialState).
|
|
1535
|
-
obj[key] = updated[key];
|
|
1536
|
-
return obj;
|
|
1537
|
-
}, {});
|
|
1715
|
+
const ordered = Object.fromEntries(Object.keys(initialState).map((key) => [key, updated[key]]));
|
|
1538
1716
|
await store.setState({ refs: ordered });
|
|
1539
1717
|
}
|
|
1540
1718
|
};
|
|
@@ -2052,7 +2230,7 @@ function init_open_in_editor() {
|
|
|
2052
2230
|
} },
|
|
2053
2231
|
state: { notifications: [] },
|
|
2054
2232
|
init: async () => {
|
|
2055
|
-
const { color } = await import("./globals-runtime-
|
|
2233
|
+
const { color } = await import("./globals-runtime-CdLHkSK1.js").then((n) => (n.t(), n.n));
|
|
2056
2234
|
provider.channel?.on(OPEN_IN_EDITOR_RESPONSE, (payload) => {
|
|
2057
2235
|
if (payload.error !== null) fullAPI.addNotification({
|
|
2058
2236
|
id: "open-in-editor-error",
|
|
@@ -2557,6 +2735,151 @@ function init_status() {
|
|
|
2557
2735
|
})))();
|
|
2558
2736
|
}
|
|
2559
2737
|
//#endregion
|
|
2738
|
+
//#region src/manager-api/modules/stories-events.ts
|
|
2739
|
+
function removeRemovedOptions(options) {
|
|
2740
|
+
if (!options || typeof options === "string") return options;
|
|
2741
|
+
const result = { ...options };
|
|
2742
|
+
removedOptions.forEach((option) => {
|
|
2743
|
+
if (option in result) delete result[option];
|
|
2744
|
+
});
|
|
2745
|
+
return result;
|
|
2746
|
+
}
|
|
2747
|
+
var removedOptions, listenToStoryEvents;
|
|
2748
|
+
function init_stories_events() {
|
|
2749
|
+
return (init_stories_events = __esmMin((() => {
|
|
2750
|
+
init_core_events();
|
|
2751
|
+
init_routes();
|
|
2752
|
+
init_events();
|
|
2753
|
+
init_stories();
|
|
2754
|
+
removedOptions = [
|
|
2755
|
+
"enableShortcuts",
|
|
2756
|
+
"theme",
|
|
2757
|
+
"showRoots"
|
|
2758
|
+
];
|
|
2759
|
+
listenToStoryEvents = ({ store, provider, fullAPI, api, navigateWithQueryParams }) => {
|
|
2760
|
+
provider.channel?.on(STORY_SPECIFIED, function handler({ storyId, viewMode }) {
|
|
2761
|
+
const { sourceType } = getEventMetadata(this, fullAPI);
|
|
2762
|
+
if (sourceType === "local") {
|
|
2763
|
+
const state = store.getState();
|
|
2764
|
+
const isCanvasRoute = !isReviewManagerRoute(state.path, state.customQueryParams) && (state.path === "/" || state.viewMode === "story" || state.viewMode === "docs");
|
|
2765
|
+
const stateHasSelection = state.viewMode && state.storyId;
|
|
2766
|
+
const stateSelectionDifferent = state.viewMode !== viewMode || state.storyId !== storyId;
|
|
2767
|
+
const { type } = state.index?.[state.storyId] || {};
|
|
2768
|
+
const isStory = !(type === "root" || type === "component" || type === "group");
|
|
2769
|
+
/**
|
|
2770
|
+
* When Forkbook starts, we want to navigate to the first story. But there are a few
|
|
2771
|
+
* exceptions:
|
|
2772
|
+
*
|
|
2773
|
+
* - If the current storyId and viewMode are already set/correct AND the url section is a
|
|
2774
|
+
* leaf-type.
|
|
2775
|
+
* - If the user has navigated away already.
|
|
2776
|
+
* - If the user started Forkbook with a specific page-URL like "/settings/about"
|
|
2777
|
+
*/
|
|
2778
|
+
if (isCanvasRoute) {
|
|
2779
|
+
const { filteredIndex } = state;
|
|
2780
|
+
if (filteredIndex && !stateHasSelection) {
|
|
2781
|
+
if (!(filteredIndex[storyId]?.type === "story")) {
|
|
2782
|
+
const firstFiltered = Object.keys(filteredIndex).find((id) => {
|
|
2783
|
+
const entry = filteredIndex[id];
|
|
2784
|
+
return entry.type === "story" || entry.type === "docs";
|
|
2785
|
+
});
|
|
2786
|
+
if (firstFiltered) navigateWithQueryParams(`/${viewMode}/${firstFiltered}`);
|
|
2787
|
+
return;
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
if (stateHasSelection && stateSelectionDifferent && isStory) provider.channel?.emit(SET_CURRENT_STORY, {
|
|
2791
|
+
storyId: state.storyId,
|
|
2792
|
+
viewMode: state.viewMode
|
|
2793
|
+
});
|
|
2794
|
+
else if (stateSelectionDifferent) navigateWithQueryParams(`/${viewMode}/${storyId}`);
|
|
2795
|
+
}
|
|
2796
|
+
}
|
|
2797
|
+
});
|
|
2798
|
+
provider.channel?.on(CURRENT_STORY_WAS_SET, function handler() {
|
|
2799
|
+
const { ref } = getEventMetadata(this, fullAPI);
|
|
2800
|
+
api.setPreviewInitialized(ref);
|
|
2801
|
+
});
|
|
2802
|
+
provider.channel?.on(STORY_CHANGED, function handler() {
|
|
2803
|
+
const { sourceType } = getEventMetadata(this, fullAPI);
|
|
2804
|
+
if (sourceType === "local") {
|
|
2805
|
+
const options = api.getCurrentParameter("options");
|
|
2806
|
+
if (options) fullAPI.setOptions(removeRemovedOptions(options));
|
|
2807
|
+
}
|
|
2808
|
+
});
|
|
2809
|
+
provider.channel?.on(STORY_PREPARED, function handler({ id, ...update }) {
|
|
2810
|
+
const { ref, sourceType } = getEventMetadata(this, fullAPI);
|
|
2811
|
+
api.updateStory(id, {
|
|
2812
|
+
...update,
|
|
2813
|
+
prepared: true
|
|
2814
|
+
}, ref);
|
|
2815
|
+
if (!ref) {
|
|
2816
|
+
if (!store.getState().hasCalledSetOptions) {
|
|
2817
|
+
const { options } = update.parameters;
|
|
2818
|
+
fullAPI.setOptions(removeRemovedOptions(options));
|
|
2819
|
+
store.setState({ hasCalledSetOptions: true });
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
if (sourceType === "local") {
|
|
2823
|
+
const { storyId, index, refId } = store.getState();
|
|
2824
|
+
if (!index) return;
|
|
2825
|
+
const toBePreloaded = Array.from(/* @__PURE__ */ new Set([api.findSiblingStoryId(storyId, index, 1, true), api.findSiblingStoryId(storyId, index, -1, true)])).filter(Boolean);
|
|
2826
|
+
provider.channel?.emit(PRELOAD_ENTRIES, {
|
|
2827
|
+
ids: toBePreloaded,
|
|
2828
|
+
options: { target: refId }
|
|
2829
|
+
});
|
|
2830
|
+
}
|
|
2831
|
+
});
|
|
2832
|
+
provider.channel?.on(DOCS_PREPARED, function handler({ id, ...update }) {
|
|
2833
|
+
const { ref } = getEventMetadata(this, fullAPI);
|
|
2834
|
+
api.updateStory(id, {
|
|
2835
|
+
...update,
|
|
2836
|
+
prepared: true
|
|
2837
|
+
}, ref);
|
|
2838
|
+
});
|
|
2839
|
+
provider.channel?.on(SET_INDEX, function handler(index) {
|
|
2840
|
+
const { ref } = getEventMetadata(this, fullAPI);
|
|
2841
|
+
if (!ref) {
|
|
2842
|
+
api.setIndex(index);
|
|
2843
|
+
const options = api.getCurrentParameter("options");
|
|
2844
|
+
fullAPI.setOptions(removeRemovedOptions(options));
|
|
2845
|
+
} else fullAPI.setRef(ref.id, {
|
|
2846
|
+
...ref,
|
|
2847
|
+
storyIndex: index
|
|
2848
|
+
}, true);
|
|
2849
|
+
});
|
|
2850
|
+
provider.channel?.on(SET_STORIES, function handler(data) {
|
|
2851
|
+
const { ref } = getEventMetadata(this, fullAPI);
|
|
2852
|
+
const setStoriesData = data.v ? denormalizeStoryParameters(data) : data.stories;
|
|
2853
|
+
if (!ref) throw new Error("Cannot call SET_STORIES for local frame");
|
|
2854
|
+
else fullAPI.setRef(ref.id, {
|
|
2855
|
+
...ref,
|
|
2856
|
+
setStoriesData
|
|
2857
|
+
}, true);
|
|
2858
|
+
});
|
|
2859
|
+
provider.channel?.on(SELECT_STORY, function handler({ kind, title = kind, story, name = story, storyId, ...rest }) {
|
|
2860
|
+
const { ref } = getEventMetadata(this, fullAPI);
|
|
2861
|
+
if (!ref) fullAPI.selectStory(storyId || title, name, rest);
|
|
2862
|
+
else fullAPI.selectStory(storyId || title, name, {
|
|
2863
|
+
...rest,
|
|
2864
|
+
ref: ref.id
|
|
2865
|
+
});
|
|
2866
|
+
});
|
|
2867
|
+
provider.channel?.on(STORY_ARGS_UPDATED, function handleStoryArgsUpdated({ storyId, args }) {
|
|
2868
|
+
const { ref } = getEventMetadata(this, fullAPI);
|
|
2869
|
+
api.updateStory(storyId, { args }, ref);
|
|
2870
|
+
});
|
|
2871
|
+
provider.channel?.on(CONFIG_ERROR, function handleConfigError() {
|
|
2872
|
+
const { ref } = getEventMetadata(this, fullAPI);
|
|
2873
|
+
api.setPreviewInitialized(ref);
|
|
2874
|
+
});
|
|
2875
|
+
provider.channel?.on(STORY_MISSING, function handleStoryMissing() {
|
|
2876
|
+
const { ref } = getEventMetadata(this, fullAPI);
|
|
2877
|
+
api.setPreviewInitialized(ref);
|
|
2878
|
+
});
|
|
2879
|
+
};
|
|
2880
|
+
})))();
|
|
2881
|
+
}
|
|
2882
|
+
//#endregion
|
|
2560
2883
|
//#region src/manager-api/lib/filter-param.ts
|
|
2561
2884
|
var parseFilterParam;
|
|
2562
2885
|
function init_filter_param() {
|
|
@@ -2669,46 +2992,25 @@ function init_tags() {
|
|
|
2669
2992
|
})))();
|
|
2670
2993
|
}
|
|
2671
2994
|
//#endregion
|
|
2672
|
-
//#region src/manager-api/modules/stories.ts
|
|
2673
|
-
var
|
|
2674
|
-
function
|
|
2675
|
-
|
|
2676
|
-
const result = { ...options };
|
|
2677
|
-
removedOptions.forEach((option) => {
|
|
2678
|
-
if (option in result) delete result[option];
|
|
2679
|
-
});
|
|
2680
|
-
return result;
|
|
2681
|
-
}
|
|
2682
|
-
var fetch, STORY_INDEX_PATH, TAGS_FILTER, STATIC_FILTER, STATUS_FILTER, STATUS_CHANGE_REBUILD_THROTTLE, BUILT_IN_TAG_IDS, removedOptions, FILTER_KEYS, init$3;
|
|
2683
|
-
function init_stories$1() {
|
|
2684
|
-
return (init_stories$1 = __esmMin((() => {
|
|
2995
|
+
//#region src/manager-api/modules/stories-filters.ts
|
|
2996
|
+
var TAGS_FILTER, STATIC_FILTER, STATUS_FILTER, STATUS_CHANGE_REBUILD_THROTTLE, BUILT_IN_TAG_IDS, FILTER_KEYS, initFilters;
|
|
2997
|
+
function init_stories_filters() {
|
|
2998
|
+
return (init_stories_filters = __esmMin((() => {
|
|
2685
2999
|
init_client_logger();
|
|
2686
3000
|
init_core_events();
|
|
2687
|
-
init_csf_utils();
|
|
2688
3001
|
init_router();
|
|
2689
|
-
init_routes();
|
|
2690
|
-
init_global();
|
|
2691
3002
|
init_throttle();
|
|
2692
3003
|
init_tags$1();
|
|
3004
|
+
init_global();
|
|
2693
3005
|
init_status_store();
|
|
2694
|
-
init_events();
|
|
2695
|
-
init_stories();
|
|
2696
|
-
init_url();
|
|
2697
3006
|
init_status();
|
|
2698
3007
|
init_statuses();
|
|
2699
3008
|
init_tags();
|
|
2700
|
-
({fetch} = global);
|
|
2701
|
-
STORY_INDEX_PATH = "./index.json";
|
|
2702
3009
|
TAGS_FILTER = "tags-filter";
|
|
2703
3010
|
STATIC_FILTER = "static-filter";
|
|
2704
3011
|
STATUS_FILTER = "status-filter";
|
|
2705
3012
|
STATUS_CHANGE_REBUILD_THROTTLE = 500;
|
|
2706
3013
|
BUILT_IN_TAG_IDS = new Set(Object.keys(BUILT_IN_FILTERS));
|
|
2707
|
-
removedOptions = [
|
|
2708
|
-
"enableShortcuts",
|
|
2709
|
-
"theme",
|
|
2710
|
-
"showRoots"
|
|
2711
|
-
];
|
|
2712
3014
|
FILTER_KEYS = {
|
|
2713
3015
|
tag: {
|
|
2714
3016
|
included: "includedTagFilters",
|
|
@@ -2719,23 +3021,7 @@ function init_stories$1() {
|
|
|
2719
3021
|
excluded: "excludedStatusFilters"
|
|
2720
3022
|
}
|
|
2721
3023
|
};
|
|
2722
|
-
|
|
2723
|
-
const navigateWithQueryParams = (path, options) => {
|
|
2724
|
-
const { customQueryParams } = store.getState();
|
|
2725
|
-
navigate(buildNavigationUrl(path, customQueryParams ?? {}), options);
|
|
2726
|
-
};
|
|
2727
|
-
/**
|
|
2728
|
-
* Before the index loads, the manager guesses the story from the URL path. When the index loads,
|
|
2729
|
-
* read the URL again, and show the tree URL path for the story.
|
|
2730
|
-
*/
|
|
2731
|
-
const canonicaliseUrl = () => {
|
|
2732
|
-
const { location: currentLocation, path, customQueryParams } = store.getState();
|
|
2733
|
-
const pathname = currentLocation?.pathname;
|
|
2734
|
-
if (!pathname || queryFromLocation(currentLocation).path) return;
|
|
2735
|
-
const resolved = fromUrlPath(pathname);
|
|
2736
|
-
if (resolved === "/" || resolved === path && toUrlPath(resolved) === pathname) return;
|
|
2737
|
-
navigate(buildNavigationUrl(`${resolved}${currentLocation.hash ?? ""}`, customQueryParams ?? {}), { replace: true });
|
|
2738
|
-
};
|
|
3024
|
+
initFilters = ({ store, provider, fullAPI, location, setIndex }) => {
|
|
2739
3025
|
const persistFilters = (inputPatch) => {
|
|
2740
3026
|
return store.setState(inputPatch, {
|
|
2741
3027
|
persistence: "url",
|
|
@@ -2749,7 +3035,6 @@ function init_stories$1() {
|
|
|
2749
3035
|
}
|
|
2750
3036
|
});
|
|
2751
3037
|
};
|
|
2752
|
-
let urlFilterTelemetryEmitted = false;
|
|
2753
3038
|
const addFilters = async (type, items, excluded) => {
|
|
2754
3039
|
const { included, excluded: excludedKey } = FILTER_KEYS[type];
|
|
2755
3040
|
const state = store.getState();
|
|
@@ -2805,6 +3090,251 @@ function init_stories$1() {
|
|
|
2805
3090
|
});
|
|
2806
3091
|
};
|
|
2807
3092
|
const api = {
|
|
3093
|
+
setFilter: async (id, filterFunction) => {
|
|
3094
|
+
await api.setFilters({ [id]: filterFunction });
|
|
3095
|
+
},
|
|
3096
|
+
setFilters: async (filters) => {
|
|
3097
|
+
await store.setState((state) => ({ filters: {
|
|
3098
|
+
...state.filters,
|
|
3099
|
+
...filters
|
|
3100
|
+
} }));
|
|
3101
|
+
if (!await applyCurrentFilters()) return;
|
|
3102
|
+
for (const id of Object.keys(filters)) provider.channel?.emit(SET_FILTER, { id });
|
|
3103
|
+
},
|
|
3104
|
+
resetTagFilters: async () => {
|
|
3105
|
+
await persistFilters((s) => ({
|
|
3106
|
+
includedTagFilters: s.defaultIncludedTagFilters,
|
|
3107
|
+
excludedTagFilters: s.defaultExcludedTagFilters
|
|
3108
|
+
}));
|
|
3109
|
+
await recomputeTagsFilter();
|
|
3110
|
+
},
|
|
3111
|
+
setAllTagFilters: async (included, excluded) => {
|
|
3112
|
+
await persistFilters({
|
|
3113
|
+
includedTagFilters: included,
|
|
3114
|
+
excludedTagFilters: excluded
|
|
3115
|
+
});
|
|
3116
|
+
await recomputeTagsFilter();
|
|
3117
|
+
},
|
|
3118
|
+
addTagFilters: async (tags, excluded) => {
|
|
3119
|
+
await addFilters("tag", tags, excluded);
|
|
3120
|
+
await recomputeTagsFilter();
|
|
3121
|
+
if (tags.length === 1 && BUILT_IN_TAG_IDS.has(tags[0])) emitFilterTelemetry("interaction", {
|
|
3122
|
+
filterType: "tag",
|
|
3123
|
+
filterId: tags[0],
|
|
3124
|
+
action: excluded ? "exclude" : "include"
|
|
3125
|
+
});
|
|
3126
|
+
},
|
|
3127
|
+
removeTagFilters: async (tags) => {
|
|
3128
|
+
await removeFilters("tag", tags);
|
|
3129
|
+
await recomputeTagsFilter();
|
|
3130
|
+
if (tags.length === 1 && BUILT_IN_TAG_IDS.has(tags[0])) emitFilterTelemetry("interaction", {
|
|
3131
|
+
filterType: "tag",
|
|
3132
|
+
filterId: tags[0],
|
|
3133
|
+
action: "remove"
|
|
3134
|
+
});
|
|
3135
|
+
},
|
|
3136
|
+
resetStatusFilters: async () => {
|
|
3137
|
+
await persistFilters({
|
|
3138
|
+
includedStatusFilters: [],
|
|
3139
|
+
excludedStatusFilters: []
|
|
3140
|
+
});
|
|
3141
|
+
await recomputeStatusFilter();
|
|
3142
|
+
},
|
|
3143
|
+
setAllStatusFilters: async (included, excluded) => {
|
|
3144
|
+
const prevState = store.getState();
|
|
3145
|
+
const prevIncluded = new Set(prevState.includedStatusFilters ?? []);
|
|
3146
|
+
const prevExcluded = new Set(prevState.excludedStatusFilters ?? []);
|
|
3147
|
+
const nextIncluded = new Set(included);
|
|
3148
|
+
const nextExcluded = new Set(excluded);
|
|
3149
|
+
await persistFilters({
|
|
3150
|
+
includedStatusFilters: included,
|
|
3151
|
+
excludedStatusFilters: excluded
|
|
3152
|
+
});
|
|
3153
|
+
await recomputeStatusFilter();
|
|
3154
|
+
const changedIds = /* @__PURE__ */ new Set([
|
|
3155
|
+
...prevIncluded,
|
|
3156
|
+
...prevExcluded,
|
|
3157
|
+
...nextIncluded,
|
|
3158
|
+
...nextExcluded
|
|
3159
|
+
]);
|
|
3160
|
+
for (const id of changedIds) {
|
|
3161
|
+
const wasIncluded = prevIncluded.has(id);
|
|
3162
|
+
const wasExcluded = prevExcluded.has(id);
|
|
3163
|
+
const isIncluded = nextIncluded.has(id);
|
|
3164
|
+
const isExcluded = nextExcluded.has(id);
|
|
3165
|
+
if (wasIncluded === isIncluded && wasExcluded === isExcluded) continue;
|
|
3166
|
+
let action;
|
|
3167
|
+
if (isIncluded) action = "include";
|
|
3168
|
+
else if (isExcluded) action = "exclude";
|
|
3169
|
+
else action = "remove";
|
|
3170
|
+
emitFilterTelemetry("interaction", {
|
|
3171
|
+
filterType: "status",
|
|
3172
|
+
filterId: id,
|
|
3173
|
+
action
|
|
3174
|
+
});
|
|
3175
|
+
}
|
|
3176
|
+
},
|
|
3177
|
+
addStatusFilters: async (statuses, excluded) => {
|
|
3178
|
+
await addFilters("status", statuses, excluded);
|
|
3179
|
+
await recomputeStatusFilter();
|
|
3180
|
+
if (statuses.length === 1) emitFilterTelemetry("interaction", {
|
|
3181
|
+
filterType: "status",
|
|
3182
|
+
filterId: statuses[0],
|
|
3183
|
+
action: excluded ? "exclude" : "include"
|
|
3184
|
+
});
|
|
3185
|
+
},
|
|
3186
|
+
removeStatusFilters: async (statuses) => {
|
|
3187
|
+
await removeFilters("status", statuses);
|
|
3188
|
+
await recomputeStatusFilter();
|
|
3189
|
+
if (statuses.length === 1) emitFilterTelemetry("interaction", {
|
|
3190
|
+
filterType: "status",
|
|
3191
|
+
filterId: statuses[0],
|
|
3192
|
+
action: "remove"
|
|
3193
|
+
});
|
|
3194
|
+
}
|
|
3195
|
+
};
|
|
3196
|
+
const applyCurrentFilters = async () => {
|
|
3197
|
+
const { internal_index: index } = store.getState();
|
|
3198
|
+
if (!index) return false;
|
|
3199
|
+
await setIndex(index);
|
|
3200
|
+
const refs = await fullAPI.getRefs();
|
|
3201
|
+
for (const [refId, { internal_index, ...ref }] of Object.entries(refs)) await fullAPI.setRef(refId, {
|
|
3202
|
+
...ref,
|
|
3203
|
+
storyIndex: internal_index
|
|
3204
|
+
}, true);
|
|
3205
|
+
return true;
|
|
3206
|
+
};
|
|
3207
|
+
let statusFilterRebuildQueued = false;
|
|
3208
|
+
let statusFilterRebuildInFlight = false;
|
|
3209
|
+
const flushStatusFilterRebuild = async () => {
|
|
3210
|
+
if (statusFilterRebuildInFlight) return;
|
|
3211
|
+
statusFilterRebuildInFlight = true;
|
|
3212
|
+
try {
|
|
3213
|
+
while (statusFilterRebuildQueued) {
|
|
3214
|
+
statusFilterRebuildQueued = false;
|
|
3215
|
+
try {
|
|
3216
|
+
await applyCurrentFilters();
|
|
3217
|
+
} catch (error) {
|
|
3218
|
+
logger.warn("Failed to rebuild story index after status change:", error);
|
|
3219
|
+
}
|
|
3220
|
+
}
|
|
3221
|
+
} finally {
|
|
3222
|
+
statusFilterRebuildInFlight = false;
|
|
3223
|
+
if (statusFilterRebuildQueued) flushStatusFilterRebuild();
|
|
3224
|
+
}
|
|
3225
|
+
};
|
|
3226
|
+
const requestStatusFilterRebuild = () => {
|
|
3227
|
+
statusFilterRebuildQueued = true;
|
|
3228
|
+
flushStatusFilterRebuild();
|
|
3229
|
+
};
|
|
3230
|
+
const recomputeTagsFilter = () => {
|
|
3231
|
+
const { includedTagFilters, excludedTagFilters } = store.getState();
|
|
3232
|
+
return api.setFilters({ [TAGS_FILTER]: computeTagsFilterFn(includedTagFilters, excludedTagFilters) });
|
|
3233
|
+
};
|
|
3234
|
+
const recomputeStatusFilter = () => {
|
|
3235
|
+
const { includedStatusFilters, excludedStatusFilters } = store.getState();
|
|
3236
|
+
return api.setFilters({ [STATUS_FILTER]: computeStatusFilterFn(includedStatusFilters ?? [], excludedStatusFilters ?? []) });
|
|
3237
|
+
};
|
|
3238
|
+
provider.channel?.on(SET_CONFIG, async () => {
|
|
3239
|
+
const { includedTagFilters, excludedTagFilters, includedStatusFilters, excludedStatusFilters, tagPresets } = store.getState();
|
|
3240
|
+
await api.setFilters({
|
|
3241
|
+
[STATIC_FILTER]: computeStaticFilterFn(tagPresets),
|
|
3242
|
+
[TAGS_FILTER]: computeTagsFilterFn(includedTagFilters, excludedTagFilters),
|
|
3243
|
+
[STATUS_FILTER]: computeStatusFilterFn(includedStatusFilters, excludedStatusFilters)
|
|
3244
|
+
});
|
|
3245
|
+
});
|
|
3246
|
+
fullStatusStore.onAllStatusChange(throttle(requestStatusFilterRebuild, STATUS_CHANGE_REBUILD_THROTTLE, { edges: ["leading", "trailing"] }));
|
|
3247
|
+
const tagPresets = global.TAGS_OPTIONS || {};
|
|
3248
|
+
const defaultTags = getDefaultTagsFromPreset(tagPresets);
|
|
3249
|
+
const { tags, statuses } = queryFromLocation(location ?? { search: "" });
|
|
3250
|
+
const parsedTags = parseTagsParam(tags);
|
|
3251
|
+
const hasTagsParam = tags !== void 0;
|
|
3252
|
+
const initialIncluded = hasTagsParam ? parsedTags.included : defaultTags.included;
|
|
3253
|
+
const initialExcluded = hasTagsParam ? parsedTags.excluded : defaultTags.excluded;
|
|
3254
|
+
const parsedStatuses = parseStatusesParam(statuses);
|
|
3255
|
+
const initialIncludedStatuses = parsedStatuses.included;
|
|
3256
|
+
const initialExcludedStatuses = parsedStatuses.excluded;
|
|
3257
|
+
const state = {
|
|
3258
|
+
filters: {
|
|
3259
|
+
[STATIC_FILTER]: computeStaticFilterFn(tagPresets),
|
|
3260
|
+
[TAGS_FILTER]: computeTagsFilterFn(initialIncluded, initialExcluded),
|
|
3261
|
+
[STATUS_FILTER]: computeStatusFilterFn(initialIncludedStatuses, initialExcludedStatuses)
|
|
3262
|
+
},
|
|
3263
|
+
tagPresets,
|
|
3264
|
+
defaultIncludedTagFilters: defaultTags.included,
|
|
3265
|
+
defaultExcludedTagFilters: defaultTags.excluded,
|
|
3266
|
+
includedTagFilters: initialIncluded,
|
|
3267
|
+
excludedTagFilters: initialExcluded,
|
|
3268
|
+
includedStatusFilters: initialIncludedStatuses,
|
|
3269
|
+
excludedStatusFilters: initialExcludedStatuses
|
|
3270
|
+
};
|
|
3271
|
+
let urlFilterTelemetryEmitted = false;
|
|
3272
|
+
/** Sends one telemetry event when the first URL already has built-in tag or status filters. */
|
|
3273
|
+
const emitUrlFilterTelemetry = () => {
|
|
3274
|
+
if (urlFilterTelemetryEmitted) return;
|
|
3275
|
+
urlFilterTelemetryEmitted = true;
|
|
3276
|
+
const hasBuiltInTagFilters = initialIncluded.some((id) => BUILT_IN_TAG_IDS.has(id)) || initialExcluded.some((id) => BUILT_IN_TAG_IDS.has(id));
|
|
3277
|
+
const hasStatusFilters = initialIncludedStatuses.length > 0 || initialExcludedStatuses.length > 0;
|
|
3278
|
+
if (hasBuiltInTagFilters || hasStatusFilters) emitFilterTelemetry("url");
|
|
3279
|
+
};
|
|
3280
|
+
return {
|
|
3281
|
+
api,
|
|
3282
|
+
state,
|
|
3283
|
+
emitUrlFilterTelemetry
|
|
3284
|
+
};
|
|
3285
|
+
};
|
|
3286
|
+
})))();
|
|
3287
|
+
}
|
|
3288
|
+
//#endregion
|
|
3289
|
+
//#region src/manager-api/modules/stories.ts
|
|
3290
|
+
var stories_exports = /* @__PURE__ */ __exportAll({ init: () => init$3 });
|
|
3291
|
+
var fetch, STORY_INDEX_PATH, applyUpdate, init$3;
|
|
3292
|
+
function init_stories$1() {
|
|
3293
|
+
return (init_stories$1 = __esmMin((() => {
|
|
3294
|
+
init_client_logger();
|
|
3295
|
+
init_core_events();
|
|
3296
|
+
init_csf_utils();
|
|
3297
|
+
init_router();
|
|
3298
|
+
init_global();
|
|
3299
|
+
init_stories();
|
|
3300
|
+
init_url();
|
|
3301
|
+
init_status();
|
|
3302
|
+
init_stories_events();
|
|
3303
|
+
init_stories_filters();
|
|
3304
|
+
({fetch} = global);
|
|
3305
|
+
STORY_INDEX_PATH = "./index.json";
|
|
3306
|
+
applyUpdate = (indexes, id, update) => {
|
|
3307
|
+
for (const index of indexes) if (index?.[id]) index[id] = {
|
|
3308
|
+
...index[id],
|
|
3309
|
+
...update
|
|
3310
|
+
};
|
|
3311
|
+
};
|
|
3312
|
+
init$3 = ({ fullAPI, store, navigate, provider, state: { location } = {}, storyId: initialStoryId, viewMode: initialViewMode, docsOptions = {} }) => {
|
|
3313
|
+
const navigateWithQueryParams = (path, options) => {
|
|
3314
|
+
const { customQueryParams } = store.getState();
|
|
3315
|
+
navigate(buildNavigationUrl(path, customQueryParams ?? {}), options);
|
|
3316
|
+
};
|
|
3317
|
+
/**
|
|
3318
|
+
* Before the index loads, the manager guesses the story from the URL path. When the index loads,
|
|
3319
|
+
* read the URL again, and show the tree URL path for the story.
|
|
3320
|
+
*/
|
|
3321
|
+
const canonicaliseUrl = () => {
|
|
3322
|
+
const { location: currentLocation, path, customQueryParams } = store.getState();
|
|
3323
|
+
const pathname = currentLocation?.pathname;
|
|
3324
|
+
if (!pathname || queryFromLocation(currentLocation).path) return;
|
|
3325
|
+
const resolved = fromUrlPath(pathname);
|
|
3326
|
+
if (resolved === "/" || resolved === path && toUrlPath(resolved) === pathname) return;
|
|
3327
|
+
navigate(buildNavigationUrl(`${resolved}${currentLocation.hash ?? ""}`, customQueryParams ?? {}), { replace: true });
|
|
3328
|
+
};
|
|
3329
|
+
const filters = initFilters({
|
|
3330
|
+
store,
|
|
3331
|
+
provider,
|
|
3332
|
+
fullAPI,
|
|
3333
|
+
location,
|
|
3334
|
+
setIndex: (index) => api.setIndex(index)
|
|
3335
|
+
});
|
|
3336
|
+
const api = {
|
|
3337
|
+
...filters.api,
|
|
2808
3338
|
storyId: toId,
|
|
2809
3339
|
getData: (storyId, refId) => {
|
|
2810
3340
|
const result = api.resolveStory(storyId, refId);
|
|
@@ -3010,370 +3540,48 @@ function init_stories$1() {
|
|
|
3010
3540
|
canonicaliseUrl();
|
|
3011
3541
|
},
|
|
3012
3542
|
updateStory: async (storyId, update, ref) => {
|
|
3013
|
-
|
|
3014
|
-
const { index, filteredIndex } = store.getState();
|
|
3015
|
-
if (index && index[storyId]) index[storyId] = {
|
|
3016
|
-
...index[storyId],
|
|
3017
|
-
...update
|
|
3018
|
-
};
|
|
3019
|
-
if (filteredIndex && filteredIndex[storyId]) filteredIndex[storyId] = {
|
|
3020
|
-
...filteredIndex[storyId],
|
|
3021
|
-
...update
|
|
3022
|
-
};
|
|
3023
|
-
if (index || filteredIndex) await store.setState({
|
|
3024
|
-
index,
|
|
3025
|
-
filteredIndex
|
|
3026
|
-
});
|
|
3027
|
-
} else {
|
|
3028
|
-
const { id: refId, index, filteredIndex } = ref;
|
|
3029
|
-
const storyUpdates = {
|
|
3030
|
-
...ref.storyUpdates,
|
|
3031
|
-
[storyId]: {
|
|
3032
|
-
...ref.storyUpdates?.[storyId],
|
|
3033
|
-
...update
|
|
3034
|
-
}
|
|
3035
|
-
};
|
|
3036
|
-
if (index && index[storyId]) index[storyId] = {
|
|
3037
|
-
...index[storyId],
|
|
3038
|
-
...update
|
|
3039
|
-
};
|
|
3040
|
-
if (filteredIndex && filteredIndex[storyId]) filteredIndex[storyId] = {
|
|
3041
|
-
...filteredIndex[storyId],
|
|
3042
|
-
...update
|
|
3043
|
-
};
|
|
3044
|
-
await fullAPI.updateRef(refId, {
|
|
3045
|
-
index,
|
|
3046
|
-
filteredIndex,
|
|
3047
|
-
storyUpdates
|
|
3048
|
-
});
|
|
3049
|
-
}
|
|
3543
|
+
await applyEntryUpdate(storyId, update, ref);
|
|
3050
3544
|
},
|
|
3051
3545
|
updateDocs: async (docsId, update, ref) => {
|
|
3052
|
-
|
|
3053
|
-
const { index, filteredIndex } = store.getState();
|
|
3054
|
-
if (index) index[docsId] = {
|
|
3055
|
-
...index[docsId],
|
|
3056
|
-
...update
|
|
3057
|
-
};
|
|
3058
|
-
if (filteredIndex) filteredIndex[docsId] = {
|
|
3059
|
-
...filteredIndex[docsId],
|
|
3060
|
-
...update
|
|
3061
|
-
};
|
|
3062
|
-
if (index || filteredIndex) await store.setState({
|
|
3063
|
-
index,
|
|
3064
|
-
filteredIndex
|
|
3065
|
-
});
|
|
3066
|
-
} else {
|
|
3067
|
-
const { id: refId, index, filteredIndex } = ref;
|
|
3068
|
-
const storyUpdates = {
|
|
3069
|
-
...ref.storyUpdates,
|
|
3070
|
-
[docsId]: {
|
|
3071
|
-
...ref.storyUpdates?.[docsId],
|
|
3072
|
-
...update
|
|
3073
|
-
}
|
|
3074
|
-
};
|
|
3075
|
-
if (index && index[docsId]) index[docsId] = {
|
|
3076
|
-
...index[docsId],
|
|
3077
|
-
...update
|
|
3078
|
-
};
|
|
3079
|
-
if (filteredIndex && filteredIndex[docsId]) filteredIndex[docsId] = {
|
|
3080
|
-
...filteredIndex[docsId],
|
|
3081
|
-
...update
|
|
3082
|
-
};
|
|
3083
|
-
await fullAPI.updateRef(refId, {
|
|
3084
|
-
index,
|
|
3085
|
-
filteredIndex,
|
|
3086
|
-
storyUpdates
|
|
3087
|
-
});
|
|
3088
|
-
}
|
|
3546
|
+
await applyEntryUpdate(docsId, update, ref);
|
|
3089
3547
|
},
|
|
3090
3548
|
setPreviewInitialized: async (ref) => {
|
|
3091
3549
|
if (!ref) store.setState({ previewInitialized: true });
|
|
3092
3550
|
else fullAPI.updateRef(ref.id, { previewInitialized: true });
|
|
3093
|
-
},
|
|
3094
|
-
setFilter: async (id, filterFunction) => {
|
|
3095
|
-
await api.setFilters({ [id]: filterFunction });
|
|
3096
|
-
},
|
|
3097
|
-
setFilters: async (filters) => {
|
|
3098
|
-
await store.setState((state) => ({ filters: {
|
|
3099
|
-
...state.filters,
|
|
3100
|
-
...filters
|
|
3101
|
-
} }));
|
|
3102
|
-
if (!await applyCurrentFilters()) return;
|
|
3103
|
-
for (const id of Object.keys(filters)) provider.channel?.emit(SET_FILTER, { id });
|
|
3104
|
-
},
|
|
3105
|
-
resetTagFilters: async () => {
|
|
3106
|
-
await persistFilters((s) => ({
|
|
3107
|
-
includedTagFilters: s.defaultIncludedTagFilters,
|
|
3108
|
-
excludedTagFilters: s.defaultExcludedTagFilters
|
|
3109
|
-
}));
|
|
3110
|
-
await recomputeTagsFilter();
|
|
3111
|
-
},
|
|
3112
|
-
setAllTagFilters: async (included, excluded) => {
|
|
3113
|
-
await persistFilters({
|
|
3114
|
-
includedTagFilters: included,
|
|
3115
|
-
excludedTagFilters: excluded
|
|
3116
|
-
});
|
|
3117
|
-
await recomputeTagsFilter();
|
|
3118
|
-
},
|
|
3119
|
-
addTagFilters: async (tags, excluded) => {
|
|
3120
|
-
await addFilters("tag", tags, excluded);
|
|
3121
|
-
await recomputeTagsFilter();
|
|
3122
|
-
if (tags.length === 1 && BUILT_IN_TAG_IDS.has(tags[0])) emitFilterTelemetry("interaction", {
|
|
3123
|
-
filterType: "tag",
|
|
3124
|
-
filterId: tags[0],
|
|
3125
|
-
action: excluded ? "exclude" : "include"
|
|
3126
|
-
});
|
|
3127
|
-
},
|
|
3128
|
-
removeTagFilters: async (tags) => {
|
|
3129
|
-
await removeFilters("tag", tags);
|
|
3130
|
-
await recomputeTagsFilter();
|
|
3131
|
-
if (tags.length === 1 && BUILT_IN_TAG_IDS.has(tags[0])) emitFilterTelemetry("interaction", {
|
|
3132
|
-
filterType: "tag",
|
|
3133
|
-
filterId: tags[0],
|
|
3134
|
-
action: "remove"
|
|
3135
|
-
});
|
|
3136
|
-
},
|
|
3137
|
-
resetStatusFilters: async () => {
|
|
3138
|
-
await persistFilters({
|
|
3139
|
-
includedStatusFilters: [],
|
|
3140
|
-
excludedStatusFilters: []
|
|
3141
|
-
});
|
|
3142
|
-
await recomputeStatusFilter();
|
|
3143
|
-
},
|
|
3144
|
-
setAllStatusFilters: async (included, excluded) => {
|
|
3145
|
-
const prevState = store.getState();
|
|
3146
|
-
const prevIncluded = new Set(prevState.includedStatusFilters ?? []);
|
|
3147
|
-
const prevExcluded = new Set(prevState.excludedStatusFilters ?? []);
|
|
3148
|
-
const nextIncluded = new Set(included);
|
|
3149
|
-
const nextExcluded = new Set(excluded);
|
|
3150
|
-
await persistFilters({
|
|
3151
|
-
includedStatusFilters: included,
|
|
3152
|
-
excludedStatusFilters: excluded
|
|
3153
|
-
});
|
|
3154
|
-
await recomputeStatusFilter();
|
|
3155
|
-
const changedIds = /* @__PURE__ */ new Set([
|
|
3156
|
-
...prevIncluded,
|
|
3157
|
-
...prevExcluded,
|
|
3158
|
-
...nextIncluded,
|
|
3159
|
-
...nextExcluded
|
|
3160
|
-
]);
|
|
3161
|
-
for (const id of changedIds) {
|
|
3162
|
-
const wasIncluded = prevIncluded.has(id);
|
|
3163
|
-
const wasExcluded = prevExcluded.has(id);
|
|
3164
|
-
const isIncluded = nextIncluded.has(id);
|
|
3165
|
-
const isExcluded = nextExcluded.has(id);
|
|
3166
|
-
if (wasIncluded === isIncluded && wasExcluded === isExcluded) continue;
|
|
3167
|
-
let action;
|
|
3168
|
-
if (isIncluded) action = "include";
|
|
3169
|
-
else if (isExcluded) action = "exclude";
|
|
3170
|
-
else action = "remove";
|
|
3171
|
-
emitFilterTelemetry("interaction", {
|
|
3172
|
-
filterType: "status",
|
|
3173
|
-
filterId: id,
|
|
3174
|
-
action
|
|
3175
|
-
});
|
|
3176
|
-
}
|
|
3177
|
-
},
|
|
3178
|
-
addStatusFilters: async (statuses, excluded) => {
|
|
3179
|
-
await addFilters("status", statuses, excluded);
|
|
3180
|
-
await recomputeStatusFilter();
|
|
3181
|
-
if (statuses.length === 1) emitFilterTelemetry("interaction", {
|
|
3182
|
-
filterType: "status",
|
|
3183
|
-
filterId: statuses[0],
|
|
3184
|
-
action: excluded ? "exclude" : "include"
|
|
3185
|
-
});
|
|
3186
|
-
},
|
|
3187
|
-
removeStatusFilters: async (statuses) => {
|
|
3188
|
-
await removeFilters("status", statuses);
|
|
3189
|
-
await recomputeStatusFilter();
|
|
3190
|
-
if (statuses.length === 1) emitFilterTelemetry("interaction", {
|
|
3191
|
-
filterType: "status",
|
|
3192
|
-
filterId: statuses[0],
|
|
3193
|
-
action: "remove"
|
|
3194
|
-
});
|
|
3195
3551
|
}
|
|
3196
3552
|
};
|
|
3197
|
-
const
|
|
3198
|
-
const { internal_index: index } = store.getState();
|
|
3199
|
-
if (!index) return false;
|
|
3200
|
-
await api.setIndex(index);
|
|
3201
|
-
const refs = await fullAPI.getRefs();
|
|
3202
|
-
for (const [refId, { internal_index, ...ref }] of Object.entries(refs)) await fullAPI.setRef(refId, {
|
|
3203
|
-
...ref,
|
|
3204
|
-
storyIndex: internal_index
|
|
3205
|
-
}, true);
|
|
3206
|
-
return true;
|
|
3207
|
-
};
|
|
3208
|
-
let statusFilterRebuildQueued = false;
|
|
3209
|
-
let statusFilterRebuildInFlight = false;
|
|
3210
|
-
const flushStatusFilterRebuild = async () => {
|
|
3211
|
-
if (statusFilterRebuildInFlight) return;
|
|
3212
|
-
statusFilterRebuildInFlight = true;
|
|
3213
|
-
try {
|
|
3214
|
-
while (statusFilterRebuildQueued) {
|
|
3215
|
-
statusFilterRebuildQueued = false;
|
|
3216
|
-
try {
|
|
3217
|
-
await applyCurrentFilters();
|
|
3218
|
-
} catch (error) {
|
|
3219
|
-
logger.warn("Failed to rebuild story index after status change:", error);
|
|
3220
|
-
}
|
|
3221
|
-
}
|
|
3222
|
-
} finally {
|
|
3223
|
-
statusFilterRebuildInFlight = false;
|
|
3224
|
-
if (statusFilterRebuildQueued) flushStatusFilterRebuild();
|
|
3225
|
-
}
|
|
3226
|
-
};
|
|
3227
|
-
const requestStatusFilterRebuild = () => {
|
|
3228
|
-
statusFilterRebuildQueued = true;
|
|
3229
|
-
flushStatusFilterRebuild();
|
|
3230
|
-
};
|
|
3231
|
-
const recomputeTagsFilter = () => {
|
|
3232
|
-
const { includedTagFilters, excludedTagFilters } = store.getState();
|
|
3233
|
-
return api.setFilters({ [TAGS_FILTER]: computeTagsFilterFn(includedTagFilters, excludedTagFilters) });
|
|
3234
|
-
};
|
|
3235
|
-
const recomputeStatusFilter = () => {
|
|
3236
|
-
const { includedStatusFilters, excludedStatusFilters } = store.getState();
|
|
3237
|
-
return api.setFilters({ [STATUS_FILTER]: computeStatusFilterFn(includedStatusFilters ?? [], excludedStatusFilters ?? []) });
|
|
3238
|
-
};
|
|
3239
|
-
provider.channel?.on(STORY_SPECIFIED, function handler({ storyId, viewMode }) {
|
|
3240
|
-
const { sourceType } = getEventMetadata(this, fullAPI);
|
|
3241
|
-
if (sourceType === "local") {
|
|
3242
|
-
const state = store.getState();
|
|
3243
|
-
const isCanvasRoute = !isReviewManagerRoute(state.path, state.customQueryParams) && (state.path === "/" || state.viewMode === "story" || state.viewMode === "docs");
|
|
3244
|
-
const stateHasSelection = state.viewMode && state.storyId;
|
|
3245
|
-
const stateSelectionDifferent = state.viewMode !== viewMode || state.storyId !== storyId;
|
|
3246
|
-
const { type } = state.index?.[state.storyId] || {};
|
|
3247
|
-
const isStory = !(type === "root" || type === "component" || type === "group");
|
|
3248
|
-
/**
|
|
3249
|
-
* When storybook starts, we want to navigate to the first story. But there are a few
|
|
3250
|
-
* exceptions:
|
|
3251
|
-
*
|
|
3252
|
-
* - If the current storyId and viewMode are already set/correct AND the url section is a
|
|
3253
|
-
* leaf-type.
|
|
3254
|
-
* - If the user has navigated away already.
|
|
3255
|
-
* - If the user started storybook with a specific page-URL like "/settings/about"
|
|
3256
|
-
*/
|
|
3257
|
-
if (isCanvasRoute) {
|
|
3258
|
-
const { filteredIndex } = state;
|
|
3259
|
-
if (filteredIndex && !stateHasSelection) {
|
|
3260
|
-
if (!(filteredIndex[storyId]?.type === "story")) {
|
|
3261
|
-
const firstFiltered = filteredIndex ? Object.keys(filteredIndex).find((id) => {
|
|
3262
|
-
const entry = filteredIndex[id];
|
|
3263
|
-
return entry.type === "story" || entry.type === "docs";
|
|
3264
|
-
}) : void 0;
|
|
3265
|
-
if (firstFiltered) navigateWithQueryParams(`/${viewMode}/${firstFiltered}`);
|
|
3266
|
-
return;
|
|
3267
|
-
}
|
|
3268
|
-
}
|
|
3269
|
-
if (stateHasSelection && stateSelectionDifferent && isStory) provider.channel?.emit(SET_CURRENT_STORY, {
|
|
3270
|
-
storyId: state.storyId,
|
|
3271
|
-
viewMode: state.viewMode
|
|
3272
|
-
});
|
|
3273
|
-
else if (stateSelectionDifferent) navigateWithQueryParams(`/${viewMode}/${storyId}`);
|
|
3274
|
-
}
|
|
3275
|
-
}
|
|
3276
|
-
});
|
|
3277
|
-
provider.channel?.on(CURRENT_STORY_WAS_SET, function handler() {
|
|
3278
|
-
const { ref } = getEventMetadata(this, fullAPI);
|
|
3279
|
-
api.setPreviewInitialized(ref);
|
|
3280
|
-
});
|
|
3281
|
-
provider.channel?.on(STORY_CHANGED, function handler() {
|
|
3282
|
-
const { sourceType } = getEventMetadata(this, fullAPI);
|
|
3283
|
-
if (sourceType === "local") {
|
|
3284
|
-
const options = api.getCurrentParameter("options");
|
|
3285
|
-
if (options) fullAPI.setOptions(removeRemovedOptions(options));
|
|
3286
|
-
}
|
|
3287
|
-
});
|
|
3288
|
-
provider.channel?.on(STORY_PREPARED, function handler({ id, ...update }) {
|
|
3289
|
-
const { ref, sourceType } = getEventMetadata(this, fullAPI);
|
|
3290
|
-
api.updateStory(id, {
|
|
3291
|
-
...update,
|
|
3292
|
-
prepared: true
|
|
3293
|
-
}, ref);
|
|
3553
|
+
const applyEntryUpdate = async (id, update, ref) => {
|
|
3294
3554
|
if (!ref) {
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
}
|
|
3301
|
-
if (sourceType === "local") {
|
|
3302
|
-
const { storyId, index, refId } = store.getState();
|
|
3303
|
-
if (!index) return;
|
|
3304
|
-
const toBePreloaded = Array.from(/* @__PURE__ */ new Set([api.findSiblingStoryId(storyId, index, 1, true), api.findSiblingStoryId(storyId, index, -1, true)])).filter(Boolean);
|
|
3305
|
-
provider.channel?.emit(PRELOAD_ENTRIES, {
|
|
3306
|
-
ids: toBePreloaded,
|
|
3307
|
-
options: { target: refId }
|
|
3555
|
+
const { index, filteredIndex } = store.getState();
|
|
3556
|
+
applyUpdate([index, filteredIndex], id, update);
|
|
3557
|
+
if (index || filteredIndex) await store.setState({
|
|
3558
|
+
index,
|
|
3559
|
+
filteredIndex
|
|
3308
3560
|
});
|
|
3561
|
+
return;
|
|
3309
3562
|
}
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
fullAPI.setOptions(removeRemovedOptions(options));
|
|
3324
|
-
} else fullAPI.setRef(ref.id, {
|
|
3325
|
-
...ref,
|
|
3326
|
-
storyIndex: index
|
|
3327
|
-
}, true);
|
|
3328
|
-
});
|
|
3329
|
-
provider.channel?.on(SET_STORIES, function handler(data) {
|
|
3330
|
-
const { ref } = getEventMetadata(this, fullAPI);
|
|
3331
|
-
const setStoriesData = data.v ? denormalizeStoryParameters(data) : data.stories;
|
|
3332
|
-
if (!ref) throw new Error("Cannot call SET_STORIES for local frame");
|
|
3333
|
-
else fullAPI.setRef(ref.id, {
|
|
3334
|
-
...ref,
|
|
3335
|
-
setStoriesData
|
|
3336
|
-
}, true);
|
|
3337
|
-
});
|
|
3338
|
-
provider.channel?.on(SELECT_STORY, function handler({ kind, title = kind, story, name = story, storyId, ...rest }) {
|
|
3339
|
-
const { ref } = getEventMetadata(this, fullAPI);
|
|
3340
|
-
if (!ref) fullAPI.selectStory(storyId || title, name, rest);
|
|
3341
|
-
else fullAPI.selectStory(storyId || title, name, {
|
|
3342
|
-
...rest,
|
|
3343
|
-
ref: ref.id
|
|
3344
|
-
});
|
|
3345
|
-
});
|
|
3346
|
-
provider.channel?.on(STORY_ARGS_UPDATED, function handleStoryArgsUpdated({ storyId, args }) {
|
|
3347
|
-
const { ref } = getEventMetadata(this, fullAPI);
|
|
3348
|
-
api.updateStory(storyId, { args }, ref);
|
|
3349
|
-
});
|
|
3350
|
-
provider.channel?.on(CONFIG_ERROR, function handleConfigError(err) {
|
|
3351
|
-
const { ref } = getEventMetadata(this, fullAPI);
|
|
3352
|
-
api.setPreviewInitialized(ref);
|
|
3353
|
-
});
|
|
3354
|
-
provider.channel?.on(STORY_MISSING, function handleConfigError(err) {
|
|
3355
|
-
const { ref } = getEventMetadata(this, fullAPI);
|
|
3356
|
-
api.setPreviewInitialized(ref);
|
|
3357
|
-
});
|
|
3358
|
-
provider.channel?.on(SET_CONFIG, async () => {
|
|
3359
|
-
const { includedTagFilters, excludedTagFilters, includedStatusFilters, excludedStatusFilters, tagPresets } = store.getState();
|
|
3360
|
-
await api.setFilters({
|
|
3361
|
-
[STATIC_FILTER]: computeStaticFilterFn(tagPresets),
|
|
3362
|
-
[TAGS_FILTER]: computeTagsFilterFn(includedTagFilters, excludedTagFilters),
|
|
3363
|
-
[STATUS_FILTER]: computeStatusFilterFn(includedStatusFilters, excludedStatusFilters)
|
|
3563
|
+
const { id: refId, index, filteredIndex } = ref;
|
|
3564
|
+
const storyUpdates = {
|
|
3565
|
+
...ref.storyUpdates,
|
|
3566
|
+
[id]: {
|
|
3567
|
+
...ref.storyUpdates?.[id],
|
|
3568
|
+
...update
|
|
3569
|
+
}
|
|
3570
|
+
};
|
|
3571
|
+
applyUpdate([index, filteredIndex], id, update);
|
|
3572
|
+
await fullAPI.updateRef(refId, {
|
|
3573
|
+
index,
|
|
3574
|
+
filteredIndex,
|
|
3575
|
+
storyUpdates
|
|
3364
3576
|
});
|
|
3577
|
+
};
|
|
3578
|
+
listenToStoryEvents({
|
|
3579
|
+
store,
|
|
3580
|
+
provider,
|
|
3581
|
+
fullAPI,
|
|
3582
|
+
api,
|
|
3583
|
+
navigateWithQueryParams
|
|
3365
3584
|
});
|
|
3366
|
-
fullStatusStore.onAllStatusChange(throttle(requestStatusFilterRebuild, STATUS_CHANGE_REBUILD_THROTTLE, { edges: ["leading", "trailing"] }));
|
|
3367
|
-
const tagPresets = global.TAGS_OPTIONS || {};
|
|
3368
|
-
const defaultTags = getDefaultTagsFromPreset(tagPresets);
|
|
3369
|
-
const { tags, statuses } = queryFromLocation(location ?? { search: "" });
|
|
3370
|
-
const parsedTags = parseTagsParam(tags);
|
|
3371
|
-
const hasTagsParam = tags !== void 0;
|
|
3372
|
-
const initialIncluded = hasTagsParam ? parsedTags.included : defaultTags.included;
|
|
3373
|
-
const initialExcluded = hasTagsParam ? parsedTags.excluded : defaultTags.excluded;
|
|
3374
|
-
const parsedStatuses = parseStatusesParam(statuses);
|
|
3375
|
-
const initialIncludedStatuses = parsedStatuses.included;
|
|
3376
|
-
const initialExcludedStatuses = parsedStatuses.excluded;
|
|
3377
3585
|
return {
|
|
3378
3586
|
api,
|
|
3379
3587
|
state: {
|
|
@@ -3381,27 +3589,12 @@ function init_stories$1() {
|
|
|
3381
3589
|
viewMode: initialViewMode,
|
|
3382
3590
|
hasCalledSetOptions: false,
|
|
3383
3591
|
previewInitialized: false,
|
|
3384
|
-
filters
|
|
3385
|
-
[STATIC_FILTER]: computeStaticFilterFn(tagPresets),
|
|
3386
|
-
[TAGS_FILTER]: computeTagsFilterFn(initialIncluded, initialExcluded),
|
|
3387
|
-
[STATUS_FILTER]: computeStatusFilterFn(initialIncludedStatuses, initialExcludedStatuses)
|
|
3388
|
-
},
|
|
3389
|
-
tagPresets,
|
|
3390
|
-
defaultIncludedTagFilters: defaultTags.included,
|
|
3391
|
-
defaultExcludedTagFilters: defaultTags.excluded,
|
|
3392
|
-
includedTagFilters: initialIncluded,
|
|
3393
|
-
excludedTagFilters: initialExcluded,
|
|
3394
|
-
includedStatusFilters: initialIncludedStatuses,
|
|
3395
|
-
excludedStatusFilters: initialExcludedStatuses
|
|
3592
|
+
...filters.state
|
|
3396
3593
|
},
|
|
3397
3594
|
init: async () => {
|
|
3398
3595
|
provider.channel?.on(STORY_INDEX_INVALIDATED, () => api.fetchIndex());
|
|
3399
3596
|
await api.fetchIndex();
|
|
3400
|
-
|
|
3401
|
-
urlFilterTelemetryEmitted = true;
|
|
3402
|
-
const hasBuiltInTagFilters = initialIncluded.some((id) => BUILT_IN_TAG_IDS.has(id)) || initialExcluded.some((id) => BUILT_IN_TAG_IDS.has(id));
|
|
3403
|
-
const hasStatusFilters = initialIncludedStatuses.length > 0 || initialExcludedStatuses.length > 0;
|
|
3404
|
-
if (hasBuiltInTagFilters || hasStatusFilters) emitFilterTelemetry("url");
|
|
3597
|
+
filters.emitUrlFilterTelemetry();
|
|
3405
3598
|
}
|
|
3406
3599
|
};
|
|
3407
3600
|
};
|
|
@@ -3942,7 +4135,7 @@ function ManagerConsumer({ filter = defaultFilter, children }) {
|
|
|
3942
4135
|
if (typeof renderer.current !== "function") return /* @__PURE__ */ import_react$2.default.createElement(import_react$2.Fragment, null, renderer.current);
|
|
3943
4136
|
const comboData = filterer.current(managerContext);
|
|
3944
4137
|
const comboDataArray = (0, import_react$2.useMemo)(() => {
|
|
3945
|
-
return
|
|
4138
|
+
return Object.entries(comboData).flat();
|
|
3946
4139
|
}, [managerContext.state]);
|
|
3947
4140
|
return (0, import_react$2.useMemo)(() => {
|
|
3948
4141
|
const Child = renderer.current;
|
|
@@ -3986,7 +4179,7 @@ function useSharedState(stateId, defaultState) {
|
|
|
3986
4179
|
quicksync = true;
|
|
3987
4180
|
}
|
|
3988
4181
|
(0, import_react$2.useEffect)(() => {
|
|
3989
|
-
if (quicksync) api.setAddonState(stateId, defaultState);
|
|
4182
|
+
if (quicksync && defaultState !== void 0) api.setAddonState(stateId, defaultState);
|
|
3990
4183
|
}, [quicksync]);
|
|
3991
4184
|
const setState = (0, import_react$2.useCallback)(async (s, options) => {
|
|
3992
4185
|
await api.setAddonState(stateId, s, options);
|
|
@@ -4115,7 +4308,7 @@ function init_root() {
|
|
|
4115
4308
|
this.mounted = false;
|
|
4116
4309
|
this.initModules = () => {
|
|
4117
4310
|
this.modules.forEach((module) => {
|
|
4118
|
-
|
|
4311
|
+
module.init?.();
|
|
4119
4312
|
});
|
|
4120
4313
|
};
|
|
4121
4314
|
const { location, path, refId, viewMode = props.docsOptions.docsMode ? "docs" : props.viewMode, singleStory, storyId, docsOptions, navigate } = props;
|
|
@@ -4671,4 +4864,4 @@ function init_globals_runtime() {
|
|
|
4671
4864
|
})))();
|
|
4672
4865
|
}
|
|
4673
4866
|
//#endregion
|
|
4674
|
-
export { init_manager_errors as C,
|
|
4867
|
+
export { init_open_service as A, init_manager_errors as B, OpenServiceMissingServiceError as C, OpenServiceRemoteCommandUnhandledError as D, OpenServiceRemoteCommandDisconnectedError as E, init_preview_errors as F, OpenServiceStaticSnapshotInvalidError as I, OpenServiceStaticSnapshotLoadError as L, init_dev_server as M, InvalidChannelPageError as N, OpenServiceUnimplementedOperationError as O, StatusTypeIdMismatchError$1 as P, StatusTypeIdMismatchError$2 as R, OpenServiceMissingChannelError as S, OpenServiceRemoteCommandConfigDriftError as T, OpenServiceAsyncSchemaError as _, init_shortcut as a, OpenServiceInvalidStaticPathError as b, init_instrumenter as c, isTestEnvironment as d, init_csf_utils as f, OpenServiceAsyncRecipeError as g, init_addons as h, init_manager_api as i, StatusTypeIdMismatchError as j, OpenServiceValidationError as k, instrument as l, addons$1 as m, init_useMedia as n, shortcutToAriaKeyshortcuts as o, sanitize as p, useMediaQuery as r, shortcutToHumanString as s, init_globals_runtime as t, init_animation_utils as u, OpenServiceCyclicStateError as v, OpenServiceOperationNameCollisionError as w, OpenServiceLoadedDrainExceededError as x, OpenServiceInternalServiceError as y, UniversalStoreFollowerTimeoutError as z };
|