@aussieljk/forkbook 0.0.1-4 → 0.0.1-6
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/LICENSE +22 -0
- package/README.md +35 -53
- package/dist/_browser-chunks/{Color-KRDPNBZS.js → Color-2BMQTRYG.js} +3 -3
- package/dist/_browser-chunks/WithTooltip-GJACFWKM.js +196 -0
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/chunk-6EJEEII7.js +1149 -0
- package/dist/_browser-chunks/{chunk-LXQPPHMD.js → chunk-6IKB2UHQ.js} +27 -27
- package/dist/_browser-chunks/chunk-DPRGR3QP.js +5995 -0
- package/dist/_browser-chunks/{chunk-K6GRZSXS.js → chunk-EQKMUQF3.js} +4 -3
- package/dist/_browser-chunks/{chunk-GU3X2J4S.js → chunk-FRAOQJDI.js} +3 -1
- package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-H4ZHAXN3.js} +1 -1
- package/dist/_browser-chunks/{chunk-ZLWA5RIE.js → chunk-I4ATZPNZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-6SHRDXGF.js → chunk-IJYLSHY7.js} +173 -87
- package/dist/_browser-chunks/{chunk-SZCSXISG.js → chunk-NA4ITZTK.js} +7 -5
- package/dist/_browser-chunks/chunk-NGMQJMCY.js +53 -0
- package/dist/_browser-chunks/{chunk-K2B36HKM.js → chunk-O24AZJZ7.js} +1 -1
- package/dist/_browser-chunks/{chunk-BZGX2THJ.js → chunk-QAHDGPZ7.js} +3 -3
- package/dist/_browser-chunks/{chunk-NMRSYACM.js → chunk-SFMQDIN2.js} +4 -3
- package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
- package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-X7D777E6.js} +547 -1622
- package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-YYWKZ7O3.js} +3 -1
- package/dist/_node-chunks/{attached-runtime-CYMSKF3A.js → attached-runtime-EBWIOQZN.js} +29 -29
- package/dist/_node-chunks/{builder-manager-RMLSIO45.js → builder-manager-ETBLZ2RH.js} +288 -349
- package/dist/_node-chunks/{chunk-IR34HUSL.js → chunk-252Y5WHZ.js} +7 -7
- package/dist/_node-chunks/{chunk-VPOJCHKM.js → chunk-25PXULSJ.js} +14 -14
- package/dist/_node-chunks/chunk-2DBJWMYE.js +495 -0
- package/dist/_node-chunks/{chunk-KXDJ77EW.js → chunk-3UWWRDA5.js} +7 -7
- package/dist/_node-chunks/{chunk-DVLFCSDG.js → chunk-4KCQYJT6.js} +7 -7
- package/dist/_node-chunks/{chunk-X3E55W5S.js → chunk-4MJIPOJ5.js} +6 -6
- package/dist/_node-chunks/{chunk-5TPSYG4L.js → chunk-4WLIN3VZ.js} +8 -8
- package/dist/_node-chunks/{chunk-WBTLBIED.js → chunk-4XNPO23I.js} +6 -6
- package/dist/_node-chunks/{chunk-NHIRHARE.js → chunk-5T635FTI.js} +10 -10
- package/dist/_node-chunks/{chunk-YU2WFBFL.js → chunk-5Z6MT4RI.js} +8 -8
- package/dist/_node-chunks/{chunk-2QWFS23O.js → chunk-644CUCK5.js} +7 -7
- package/dist/_node-chunks/{chunk-7XCJ7RAJ.js → chunk-7E27CGRU.js} +7 -7
- package/dist/_node-chunks/{chunk-WS367FSJ.js → chunk-A35J7YYA.js} +6 -6
- package/dist/_node-chunks/{chunk-ILFIERUB.js → chunk-ALHPFKVB.js} +8 -8
- package/dist/_node-chunks/{chunk-SQMCVWOR.js → chunk-ANDQVXYX.js} +8 -8
- package/dist/_node-chunks/{chunk-HUFAUSEX.js → chunk-AS4SFRCZ.js} +6 -6
- package/dist/_node-chunks/{chunk-XBXGLD3K.js → chunk-BLUMKQQB.js} +6 -6
- package/dist/_node-chunks/{chunk-QU5ANYM7.js → chunk-C5JG7EKF.js} +6 -6
- package/dist/_node-chunks/{chunk-P6QAFJ5M.js → chunk-CBUQY454.js} +7 -15
- package/dist/_node-chunks/{chunk-4LPAWP5S.js → chunk-CF7KLGUW.js} +22 -20
- package/dist/_node-chunks/{chunk-MOITZTEA.js → chunk-CGVPHZVD.js} +8 -8
- package/dist/_node-chunks/{chunk-2NWHHNNI.js → chunk-DABFUVLR.js} +6 -6
- package/dist/_node-chunks/{chunk-XH6TDVML.js → chunk-DCNZ6SFN.js} +6 -6
- package/dist/_node-chunks/{chunk-F2N6BJRH.js → chunk-DDGW2EBW.js} +29843 -51588
- package/dist/_node-chunks/{chunk-OS5LQEC6.js → chunk-DRLBJM6X.js} +7 -7
- package/dist/_node-chunks/{chunk-GEMKJCEE.js → chunk-E3O7VAPG.js} +10 -10
- package/dist/_node-chunks/{chunk-4GD7MMLJ.js → chunk-FIFCNBTL.js} +7 -7
- package/dist/_node-chunks/{chunk-UMZSNFWM.js → chunk-FQWTUSYB.js} +6 -6
- package/dist/_node-chunks/{chunk-JEEXR245.js → chunk-G6YNW4FK.js} +7 -7
- package/dist/_node-chunks/{chunk-HP5UY6OY.js → chunk-GDFQQO5U.js} +6 -6
- package/dist/_node-chunks/{chunk-653BSJIX.js → chunk-GGTXOH3W.js} +6 -6
- package/dist/_node-chunks/{chunk-PDCSUZ4L.js → chunk-GIOREKIG.js} +7 -7
- package/dist/_node-chunks/{chunk-V2JDVM46.js → chunk-GOFK4EKU.js} +6 -6
- package/dist/_node-chunks/{chunk-INEYTOWF.js → chunk-GQ3HJNIH.js} +10 -13
- package/dist/_node-chunks/{chunk-2APY2YSW.js → chunk-GRTI5653.js} +7 -7
- package/dist/_node-chunks/{chunk-KN2S7JF2.js → chunk-HKL3VOYX.js} +6 -6
- package/dist/_node-chunks/{chunk-A2UMIN5B.js → chunk-HUPRQZ3I.js} +7 -7
- package/dist/_node-chunks/{chunk-7JA2DMCJ.js → chunk-HWRHYM7Z.js} +6 -6
- package/dist/_node-chunks/{chunk-SBQT3LMM.js → chunk-I7HRDCNY.js} +10 -10
- package/dist/_node-chunks/{chunk-2IJCISIB.js → chunk-IFPMZ247.js} +6 -6
- package/dist/_node-chunks/{chunk-DIUBMAMV.js → chunk-J6M5CRYZ.js} +8 -8
- package/dist/_node-chunks/{chunk-IBO346NQ.js → chunk-JPXJI6QR.js} +60 -134
- package/dist/_node-chunks/{chunk-STRSG3GT.js → chunk-JS2J2SKX.js} +6 -6
- package/dist/_node-chunks/{chunk-FNGLVURC.js → chunk-JZWF3XLN.js} +6 -6
- package/dist/_node-chunks/{chunk-KINEBDMM.js → chunk-KF3FT3NI.js} +9 -9
- package/dist/_node-chunks/chunk-KWPWQA7G.js +2609 -0
- package/dist/_node-chunks/{chunk-OIIORQX5.js → chunk-L4JGWK4K.js} +6 -6
- package/dist/_node-chunks/{chunk-MRZD5SBV.js → chunk-LFIFBDMS.js} +6 -6
- package/dist/_node-chunks/{chunk-UAALLQAQ.js → chunk-LWKLJYYQ.js} +6 -6
- package/dist/_node-chunks/{chunk-AFKKN27O.js → chunk-LXVSVTQ3.js} +6 -6
- package/dist/_node-chunks/chunk-MDW3GSU3.js +69 -0
- package/dist/_node-chunks/{chunk-UXW4I2CN.js → chunk-MFN2XBPL.js} +7 -7
- package/dist/_node-chunks/{chunk-ESZVID7Q.js → chunk-MQFB44YS.js} +7 -7
- package/dist/_node-chunks/{chunk-3XDIBUGD.js → chunk-MZ2GSR3G.js} +23 -51
- package/dist/_node-chunks/{chunk-POXTROIX.js → chunk-N7HEOGTM.js} +9 -6
- package/dist/_node-chunks/{chunk-UIFLXDUL.js → chunk-NUAQC3XP.js} +16 -13
- package/dist/_node-chunks/{chunk-BOUA7OB7.js → chunk-NX6CSWF3.js} +8 -8
- package/dist/_node-chunks/{chunk-B3LK7C7B.js → chunk-NZ7EQWYA.js} +9 -9
- package/dist/_node-chunks/{chunk-U5QMVW3H.js → chunk-OLGIDCVD.js} +650 -9
- package/dist/_node-chunks/{chunk-NAYTBC72.js → chunk-P65JVLO3.js} +8 -8
- package/dist/_node-chunks/{chunk-M2UZP5GC.js → chunk-PAN35AYX.js} +7 -7
- package/dist/_node-chunks/{chunk-GZBUCUF7.js → chunk-PLWLCVP2.js} +6 -6
- package/dist/_node-chunks/{chunk-A4YELYR3.js → chunk-Q4BEWGMK.js} +6 -6
- package/dist/_node-chunks/{chunk-YYIZ2PC4.js → chunk-QNUXGVZZ.js} +6 -6
- package/dist/_node-chunks/{chunk-WHZWLJGO.js → chunk-R5DWO2S2.js} +31 -30
- package/dist/_node-chunks/{chunk-RMLENEZC.js → chunk-SLZV7PTQ.js} +8 -8
- package/dist/_node-chunks/{chunk-B5VFV3ZW.js → chunk-TIRP5JQM.js} +11 -10
- package/dist/_node-chunks/{chunk-TLVEPWBN.js → chunk-TMXWDY2O.js} +6 -6
- package/dist/_node-chunks/{chunk-LGUMVMBA.js → chunk-TN3ULFFZ.js} +6 -6
- package/dist/_node-chunks/{chunk-5ZLOPVTG.js → chunk-TPSJW4CQ.js} +6 -6
- package/dist/_node-chunks/{chunk-RNF3Z4ZJ.js → chunk-TYBPAV3X.js} +6 -6
- package/dist/_node-chunks/chunk-UUE3PSJB.js +11 -0
- package/dist/_node-chunks/chunk-VKNRNBTB.js +18 -0
- package/dist/_node-chunks/{chunk-6Y6RBJD7.js → chunk-VPU4E7DI.js} +25 -8
- package/dist/_node-chunks/{chunk-FJDJE7XC.js → chunk-WIQ6Y3NX.js} +6 -6
- package/dist/_node-chunks/{chunk-DD2S4BFV.js → chunk-WRG3CFGS.js} +6 -6
- package/dist/_node-chunks/{chunk-FAZ3MUOI.js → chunk-X3RTVNRN.js} +7 -7
- package/dist/_node-chunks/chunk-XOGU5PWI.js +347 -0
- package/dist/_node-chunks/{chunk-AU3SF2WM.js → chunk-XWGMQW2H.js} +6 -6
- package/dist/_node-chunks/chunk-YCXTTQ7K.js +620 -0
- package/dist/_node-chunks/{chunk-KZBZYQTZ.js → chunk-YHH57LHY.js} +9 -9
- package/dist/_node-chunks/{chunk-J3M3X7GO.js → chunk-YMZ2SGFK.js} +6 -6
- package/dist/_node-chunks/{chunk-AY6B2C46.js → chunk-YNENOZRY.js} +7 -7
- package/dist/_node-chunks/{chunk-CGWACHNW.js → chunk-YPGVYNJB.js} +6 -6
- package/dist/_node-chunks/{chunk-OQ4NCWE4.js → chunk-YQDBSAXW.js} +7 -7
- package/dist/_node-chunks/{chunk-YGXJOSRU.js → chunk-Z4NZLBOX.js} +7 -7
- package/dist/_node-chunks/{chunk-74IEHSIR.js → chunk-ZC3ZZKMS.js} +8 -8
- package/dist/_node-chunks/{chunk-QDLR4JF5.js → chunk-ZCITDAV4.js} +34 -949
- package/dist/_node-chunks/chunk-ZNSGFYAT.js +25 -0
- package/dist/_node-chunks/{chunk-XD5SYXAU.js → chunk-ZSH6BUCW.js} +25 -25
- package/dist/_node-chunks/{chunk-X2KWNNFB.js → chunk-ZTFNOXZF.js} +6 -6
- package/dist/_node-chunks/dist-GGTGKXZA.js +27 -0
- package/dist/_node-chunks/dist-NS676VJR.js +16 -0
- package/dist/_node-chunks/{local-runtime-KTI3DH6X.js → local-runtime-BUTEKJYV.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-2E3SW5TL.js → mdx-plugin-7WXQIHPV.js} +2263 -130
- package/dist/_node-chunks/{monorepo-MWAMFHKY.js → monorepo-NCD3X2BR.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-MGORG6W7.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-SD3B272K.js} +11 -11
- package/dist/_node-chunks/optimized-tests-ITVOHEOA.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-QTQOY7E7.js → pattern-copy-play-3QJANDJD.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-LEUHOKX6.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-T7DZNKMB.js → rehype-external-links-4LR5BDR2.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-CSHI5WYI.js → rehype-slug-PWFRGOEV.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-RAZD36YR.js → relaxed-limits-VNNWUW7X.js} +11 -11
- package/dist/_node-chunks/{run-S6XSLPEB.js → run-RUAAWEQT.js} +13 -13
- package/dist/_node-chunks/{run-KJ3Z2TTY.js → run-YK6ARCWS.js} +17 -17
- package/dist/_node-chunks/session-id-JJYVZAKO.js +23 -0
- package/dist/_node-chunks/{setup-35J66GFB.js → setup-4QKCICV6.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-Z7OCRDKD.js → vitest.config.4.template-WVFLIXN7.js} +7 -7
- package/dist/actions/decorator.js +2 -1
- package/dist/actions/index.js +2 -1
- package/dist/addon-a11y/index.js +2 -1
- package/dist/addon-a11y/manager.js +24 -17
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +2 -1
- package/dist/addon-docs/blocks.js +46 -25
- package/dist/addon-docs/manager.js +2 -2
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/index.js +3 -2
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-links/preview.js +3 -2
- package/dist/addon-links/react/index.js +2 -1
- package/dist/addon-mcp/preset.js +8 -8
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +17 -45
- package/dist/addon-ondevice-actions/index.js +5 -1
- package/dist/addon-ondevice-actions/register.js +5 -1
- package/dist/addon-pseudo-states/manager.js +2 -2
- package/dist/addon-pseudo-states/preview.d.ts +1 -1
- package/dist/addon-themes/manager.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 +8 -8
- package/dist/addon-vitest/node/coverage-reporter.js +8 -8
- package/dist/addon-vitest/node/vitest.js +16 -16
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +15 -16
- package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
- package/dist/addon-vitest/vitest-plugin/index.js +17 -17
- package/dist/babel/index.d.ts +91 -842
- package/dist/babel/index.js +13 -19
- package/dist/bin/core.js +61 -60
- package/dist/bin/dispatcher.js +10 -10
- package/dist/bin/loader.js +16 -15
- package/dist/builder-vite/index.js +15 -15
- package/dist/builder-vite/preset.js +13 -13
- package/dist/{chunk-DF6btpT3.d.ts → chunk-BGhyFTJO.d.ts} +2 -2
- package/dist/chunk-CV4-Z2pn.d.ts +30 -0
- package/dist/{chunk-DvufcbCc.d.ts → chunk-CVY28Ngy.d.ts} +1 -1
- package/dist/{chunk-B2t1tGRh.d.ts → chunk-CYuvV2sR.d.ts} +11 -13
- package/dist/{chunk-BYnH2sbb.d.ts → chunk-ClI-HEh5.d.ts} +1 -1
- package/dist/{chunk-DIz17UEJ.d.ts → chunk-CzmZhVrn.d.ts} +35 -1
- package/dist/{chunk-B2xylxt5.d.ts → chunk-DROZ9oel.d.ts} +7 -271
- package/dist/cli/index.d.ts +13 -866
- package/dist/cli/index.js +42 -4952
- 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 +1 -1
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.js +3 -1
- package/dist/common/index.d.ts +5 -4
- package/dist/common/index.js +35 -37
- package/dist/components/index.d.ts +14 -231
- package/dist/components/index.js +2518 -8365
- package/dist/core-events/index.d.ts +4 -3
- package/dist/core-events/index.js +3 -1
- package/dist/core-server/index.d.ts +2 -2
- package/dist/core-server/index.js +450 -147
- package/dist/core-server/presets/common-manager.js +96 -894
- package/dist/core-server/presets/common-override-preset.js +12 -10
- package/dist/core-server/presets/common-preset.js +39 -40
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/index.d.ts +2 -2
- package/dist/csf/index.js +27 -93
- package/dist/csf-tools/index.d.ts +2 -12
- package/dist/csf-tools/index.js +14 -14
- package/dist/instrumenter/index.js +3 -1
- package/dist/manager/_manager-chunks/{globals-runtime-dKGpUUSb.js → globals-runtime-B-IeQLQu.js} +285 -61
- package/dist/manager/_manager-chunks/{globals-runtime-DuLFjsF4.js → globals-runtime-B5-0Ccbv.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-8HkdnU2F.js → globals-runtime-B71TiXST.js} +93 -2146
- package/dist/manager/_manager-chunks/globals-runtime-BMCaBukU.js +413 -0
- package/dist/manager/_manager-chunks/globals-runtime-BUP5e_t9.js +1396 -0
- package/dist/manager/_manager-chunks/globals-runtime-C7mqoHpE.js +2093 -0
- package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
- package/dist/manager/_manager-chunks/{globals-runtime-eLPTIfX-.js → globals-runtime-CYNosEiD.js} +1 -2
- package/dist/manager/_manager-chunks/globals-runtime-C_evJrEn.js +1960 -0
- package/dist/manager/_manager-chunks/{globals-runtime-C02fvgcd.js → globals-runtime-CdgVeAbk.js} +408 -377
- package/dist/manager/_manager-chunks/{globals-runtime-BmphMP6z.js → globals-runtime-Cqn8KdSZ.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-ZHrQFa3-.js → globals-runtime-CrIF09P8.js} +1246 -539
- package/dist/manager/_manager-chunks/{globals-runtime-BvM-NY2g.js → globals-runtime-Ct1kY4wb.js} +638 -1731
- package/dist/manager/_manager-chunks/globals-runtime-CvyFEPIY.js +5282 -0
- package/dist/manager/_manager-chunks/{globals-runtime-FC201B7s.js → globals-runtime-DMBjo1QS.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-C9P2ZbMM.js → globals-runtime-DUK6bGcb.js} +52 -25
- package/dist/manager/_manager-chunks/globals-runtime-DedfO-DP.js +3414 -0
- package/dist/manager/_manager-chunks/{globals-runtime-q5R9dawi.js → globals-runtime-DqhIYwLp.js} +165 -152
- package/dist/manager/_manager-chunks/globals-runtime-XSxCU7PR.js +41 -0
- package/dist/manager/_manager-chunks/runtime-BR5z0WoJ.js +456 -0
- package/dist/manager/_manager-chunks/{runtime-DdCaBowH.js → runtime-BgYvp1WN.js} +15 -7
- package/dist/manager/_manager-chunks/{runtime-BGvLm94o.js → runtime-CHI-LHF1.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-BdLdsHca.js → runtime-CUymj6EY.js} +280 -288
- package/dist/manager/_manager-chunks/runtime-CaU1DSEZ.js +528 -0
- package/dist/manager/_manager-chunks/{runtime-DMig8mT7.js → runtime-CqItbdKW.js} +3 -2
- package/dist/manager/_manager-chunks/{runtime-B9QzcYO3.js → runtime-D4ZOOIV0.js} +5 -531
- package/dist/manager/_manager-chunks/{runtime-50_aob4S.js → runtime-DER98nV0.js} +3 -19
- package/dist/manager/_manager-chunks/{runtime-CE2sHVqs.js → runtime-DrTLBe7a.js} +39 -40
- package/dist/manager/_manager-chunks/runtime-MAf7Wpk5.js +692 -0
- package/dist/manager/_manager-chunks/{runtime-CKP1i0--.js → runtime-cVFIMcca.js} +1 -1
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/globals.d.ts +1 -1
- package/dist/manager/globals.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 +22 -28
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.js +16 -11
- package/dist/nextjs-vite/index.js +3 -2
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +11 -11
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.d.ts +1 -2
- package/dist/nextjs-vite-plugin/index.js +12 -27
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/node-logger/index.d.ts +65 -72
- package/dist/node-logger/index.js +11 -12
- package/dist/oxc-parser/index.js +11 -13
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-DVM_AHbR.js → runtime-6P-h06Te.js} +51 -50
- package/dist/preview/_chunks/{runtime-BoxmlDdB.js → runtime-B9KKIDGa.js} +202 -81
- package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-BPwAnlRx.js} +482 -334
- package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-BUnOhg9h.js} +2 -2
- package/dist/preview/_chunks/runtime-Bcv1hJky.js +6305 -0
- package/dist/preview/_chunks/{runtime-CqHxptiK.js → runtime-C1jgT6tJ.js} +93 -2145
- package/dist/preview/_chunks/{runtime-D7B4bVe_.js → runtime-C8QFpkFV.js} +6 -6
- package/dist/preview/_chunks/{runtime-CijtAN7R.js → runtime-DdqR8Fd0.js} +15 -6
- package/dist/preview/_chunks/{runtime-B3y8ocOg.js → runtime-DvBfMhis.js} +2 -2
- package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-WapFVPAh.js} +29 -29
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +1 -1
- package/dist/preview-api/index.js +2 -1
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -12
- package/dist/react/entry-preview.js +2 -1
- package/dist/react/index.js +6 -4
- package/dist/react/preset.js +13 -14
- package/dist/react/preview.js +3 -2
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/index.js +25 -211
- package/dist/react-native/metro/node.js +10 -9
- package/dist/react-native/metro/withStorybook.js +11 -10
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.js +3 -1
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +1 -1
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/telemetry/index.js +43 -45
- package/dist/test/index.js +808 -573
- package/dist/theming/create.js +2 -1
- package/dist/theming/index.js +22 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +17 -45
- package/dist/_browser-chunks/WithTooltip-523JD6VH.js +0 -1619
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
- package/dist/_browser-chunks/chunk-UDQ3XQFC.js +0 -108
- package/dist/_node-chunks/chunk-7XCEKQGV.js +0 -18
- package/dist/_node-chunks/chunk-EGS2SAD2.js +0 -5414
- package/dist/_node-chunks/chunk-GKTCJPLL.js +0 -36
- package/dist/_node-chunks/chunk-HENM5ZK3.js +0 -1877
- package/dist/_node-chunks/chunk-HQM4ISVU.js +0 -11
- package/dist/_node-chunks/chunk-K3I3G4VL.js +0 -4731
- package/dist/_node-chunks/chunk-MZMPFII2.js +0 -29
- package/dist/_node-chunks/chunk-NYAWUR6L.js +0 -3823
- package/dist/_node-chunks/chunk-NYRUWAL3.js +0 -23
- package/dist/_node-chunks/chunk-SSZ5REKS.js +0 -3008
- package/dist/_node-chunks/chunk-WEW23EEE.js +0 -662
- package/dist/_node-chunks/chunk-XWQEWRFD.js +0 -51
- package/dist/_node-chunks/dist-CNA633FI.js +0 -16
- package/dist/_node-chunks/globby-HRQV5N3V.js +0 -2884
- package/dist/_node-chunks/jiti-WE7NHS2Y.js +0 -3848
- package/dist/_node-chunks/lib-7MVA6CTW.js +0 -366
- package/dist/_node-chunks/optimized-tests-IAX6YURR.js +0 -22
- package/dist/_node-chunks/postinstallAddon-ROH2TBJX.js +0 -20
- package/dist/_node-chunks/session-id-GM226DGP.js +0 -23
- package/dist/chunk-BfBzpgct.d.ts +0 -916
- package/dist/core-server/presets/common-manager.css +0 -170
- package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +0 -3389
- package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +0 -9766
- package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +0 -5357
- package/dist/manager/_manager-chunks/runtime-89Cb0A8U.js +0 -998
- package/dist/manager/_manager-chunks/runtime-wL4UO7YO.js +0 -452
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
- package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { a as __toESM, n as __esmMin, r as __exportAll } from "./runtime-BdGkqNEt.js";
|
|
2
|
-
import { $ as mapValues, J as isEqual, Y as require_memoizerific, Z as pickBy, i as stringify, it as invariant, lt as dedent, n as init_main$1, o as parse, q as init_isEqual, rt as init_tiny_invariant, tt as isPlainObject, ut as init_esm } from "./runtime-
|
|
2
|
+
import { $ as mapValues, J as isEqual, Y as require_memoizerific, Z as pickBy, i as stringify, it as invariant, lt as dedent, n as init_main$1, o as parse, q as init_isEqual, rt as init_tiny_invariant, tt as isPlainObject, ut as init_esm } from "./runtime-WapFVPAh.js";
|
|
3
3
|
import { n as init_storybook_error, t as StorybookError } from "./runtime-BsMjBzuq.js";
|
|
4
|
-
import { $ as
|
|
5
|
-
import { _ as init_preview, a as init_story_index_filters, b as init_tags, c as sortStoriesV7, d as userOrAutoTitleFromSpecifier, g as getService, i as init_iframe_resize, l as init_autoTitle, o as isMdxEntry, r as iframeResizeViewportsEqual, s as init_sortStories, t as IFRAME_RESIZE_CONTEXT, u as userOrAutoTitle, v as registerService, y as Tag } from "./runtime-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { i as test_exports, r as init_test } from "./runtime-D7B4bVe_.js";
|
|
4
|
+
import { $ as PREVIEW_KEYDOWN, A as channels_exports, B as CONFIG_ERROR, C as toId, Ct as client_logger_exports, D as storyNameFromExport, Dt as once, E as isExportStory, Et as logger, F as init_channel_slot, G as FORCE_REMOUNT, H as DOCS_PAGE_IN_VIEW, I as installNoopChannel, J as MANAGER_INERT_ATTRIBUTE_CHANGED, K as FORCE_RE_RENDER, L as setChannel, M as clearChannel, N as ensureChannel, O as init_mock_channel, P as getChannel, Q as PREVIEW_INITIALIZED, R as ARGTYPES_INFO_REQUEST, S as sanitize, St as init_core_events, T as init_export_story, Tt as init_client_logger, U as DOCS_PREPARED, V as CURRENT_STORY_WAS_SET, W as DOCS_RENDERED, X as PLAY_FUNCTION_THREW_EXCEPTION, Y as NAVIGATE_URL, Z as PRELOAD_ENTRIES, _t as UNHANDLED_ERRORS_WHILE_PLAYING, at as STORY_ERRORED, b as combineTags, bt as UPDATE_STORY_ARGS, c as getCoreAnnotations, ct as STORY_INDEX_INVALIDATED, d as markAsComposedWithCoreAnnotations, dt as STORY_RENDERED, et as RESET_STORY_ARGS, ft as STORY_RENDER_PHASE_CHANGED, gt as TELEMETRY_ERROR, h as init_shared, ht as STORY_UNCHANGED, i as getStoryChildren, it as STORY_CHANGED, j as init_channels, k as mockChannel, l as hasCoreAnnotations, lt as STORY_MISSING, m as SNIPPET_RENDERED, mt as STORY_THREW_EXCEPTION, n as init_actions, nt as SET_GLOBALS, o as isMeta, ot as STORY_FINISHED, pt as STORY_SPECIFIED, q as GLOBALS_UPDATED, rt as STORY_ARGS_UPDATED, s as isStory, st as STORY_HOT_UPDATED, t as actions_exports, tt as SET_CURRENT_STORY, u as init_core_annotations, ut as STORY_PREPARED, v as includeConditionalArg, vt as UPDATE_GLOBALS, w as toTestId, wt as deprecate, x as init_csf_utils, xt as core_events_exports, y as init_includeConditionalArg, yt as UPDATE_QUERY_PARAMS, z as ARGTYPES_INFO_RESPONSE } from "./runtime-6P-h06Te.js";
|
|
5
|
+
import { M as global_exports, N as init_global, _ as init_preview, a as init_story_index_filters, b as init_tags, c as sortStoriesV7, d as userOrAutoTitleFromSpecifier, g as getService, i as init_iframe_resize, j as global, l as init_autoTitle, o as isMdxEntry, r as iframeResizeViewportsEqual, s as init_sortStories, t as IFRAME_RESIZE_CONTEXT, u as userOrAutoTitle, v as registerService, y as Tag } from "./runtime-DdqR8Fd0.js";
|
|
6
|
+
import { a as init_defaults, c as PARAM_KEY, d as types_exports, i as MINIMAL_VIEWPORTS, l as init_constants, n as resolveViewport, r as toResolvedViewportDimensions, t as init_resolveViewport, u as init_types } from "./runtime-DvBfMhis.js";
|
|
7
|
+
import { n as require_ansi_to_html, t as require_browser_dtector_umd_min } from "./runtime-BPwAnlRx.js";
|
|
8
|
+
import { i as test_exports, r as init_test } from "./runtime-C8QFpkFV.js";
|
|
10
9
|
//#region src/preview-errors.ts
|
|
11
10
|
var preview_errors_exports = /* @__PURE__ */ __exportAll({
|
|
12
11
|
ArgTypesRemovedFromStoryContextError: () => ArgTypesRemovedFromStoryContextError,
|
|
@@ -529,10 +528,10 @@ function hookify(fn) {
|
|
|
529
528
|
hooks.prevMountedDecorators.add(fn);
|
|
530
529
|
}
|
|
531
530
|
hooks.nextHookIndex = 0;
|
|
532
|
-
const prevContext =
|
|
533
|
-
|
|
531
|
+
const prevContext = global.FORKBOOK_HOOKS_CONTEXT;
|
|
532
|
+
global.FORKBOOK_HOOKS_CONTEXT = hooks;
|
|
534
533
|
const result = fn(...args);
|
|
535
|
-
|
|
534
|
+
global.FORKBOOK_HOOKS_CONTEXT = prevContext;
|
|
536
535
|
if (hooks.currentPhase === "UPDATE" && hooks.getNextHook() != null) throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");
|
|
537
536
|
hooks.currentPhase = prevPhase;
|
|
538
537
|
hooks.currentHooks = prevHooks;
|
|
@@ -544,7 +543,7 @@ function hookify(fn) {
|
|
|
544
543
|
return hookified;
|
|
545
544
|
}
|
|
546
545
|
function getHooksContextOrNull() {
|
|
547
|
-
return
|
|
546
|
+
return global.FORKBOOK_HOOKS_CONTEXT || null;
|
|
548
547
|
}
|
|
549
548
|
function getHooksContextOrThrow() {
|
|
550
549
|
const hooks = getHooksContextOrNull();
|
|
@@ -835,7 +834,7 @@ function init_hooks() {
|
|
|
835
834
|
return (init_hooks = __esmMin((() => {
|
|
836
835
|
init_client_logger();
|
|
837
836
|
init_core_events();
|
|
838
|
-
|
|
837
|
+
init_global();
|
|
839
838
|
init_main();
|
|
840
839
|
HooksContext = class {
|
|
841
840
|
constructor() {
|
|
@@ -1188,10 +1187,10 @@ function deleteUndefined(obj) {
|
|
|
1188
1187
|
var argTypesForValidation, ArgsStore;
|
|
1189
1188
|
function init_ArgsStore() {
|
|
1190
1189
|
return (init_ArgsStore = __esmMin((() => {
|
|
1191
|
-
|
|
1190
|
+
init_global();
|
|
1192
1191
|
init_args();
|
|
1193
1192
|
init_inferArgTypes();
|
|
1194
|
-
argTypesForValidation = (story) =>
|
|
1193
|
+
argTypesForValidation = (story) => global.FEATURES?.docgenServer ? inferArgTypes({
|
|
1195
1194
|
id: story.id,
|
|
1196
1195
|
argTypes: story.argTypes,
|
|
1197
1196
|
initialArgs: story.initialArgs
|
|
@@ -1687,7 +1686,7 @@ function prepareMeta(componentAnnotations, projectAnnotations, moduleExport) {
|
|
|
1687
1686
|
}
|
|
1688
1687
|
function preparePartialAnnotations(storyAnnotations, componentAnnotations, projectAnnotations) {
|
|
1689
1688
|
const defaultTags = [Tag.DEV, Tag.TEST];
|
|
1690
|
-
const extraTags =
|
|
1689
|
+
const extraTags = global.DOCS_OPTIONS?.autodocs === true ? [Tag.AUTODOCS] : [];
|
|
1691
1690
|
/**
|
|
1692
1691
|
* DISCLAIMER: This feels like a hack but seems like it's the only way to override the autodocs
|
|
1693
1692
|
* tag for test-fn stories. That's because the Story index does not include negated tags e.g.
|
|
@@ -1728,7 +1727,7 @@ function preparePartialAnnotations(storyAnnotations, componentAnnotations, proje
|
|
|
1728
1727
|
storyGlobals
|
|
1729
1728
|
};
|
|
1730
1729
|
contextForEnhancers.argTypes = argTypesEnhancers.filter((enhancer) => {
|
|
1731
|
-
if (
|
|
1730
|
+
if (global.FEATURES?.docgenServer && enhancer.secondPass) return false;
|
|
1732
1731
|
return true;
|
|
1733
1732
|
}).reduce((accumulatedArgTypes, enhancer) => enhancer({
|
|
1734
1733
|
...contextForEnhancers,
|
|
@@ -1752,7 +1751,7 @@ function prepareContext(context) {
|
|
|
1752
1751
|
allArgs: void 0,
|
|
1753
1752
|
argsByTarget: void 0
|
|
1754
1753
|
};
|
|
1755
|
-
if (
|
|
1754
|
+
if (global.FEATURES?.argTypeTargetsV7) {
|
|
1756
1755
|
const argsByTarget = groupArgsByTarget(context);
|
|
1757
1756
|
targetedContext = {
|
|
1758
1757
|
...context,
|
|
@@ -1788,7 +1787,7 @@ function init_prepareStory() {
|
|
|
1788
1787
|
return (init_prepareStory = __esmMin((() => {
|
|
1789
1788
|
init_csf_utils(), init_includeConditionalArg();
|
|
1790
1789
|
init_preview_errors();
|
|
1791
|
-
|
|
1790
|
+
init_global();
|
|
1792
1791
|
init_tags();
|
|
1793
1792
|
init_hooks();
|
|
1794
1793
|
init_args();
|
|
@@ -2835,11 +2834,11 @@ function init_Preview() {
|
|
|
2835
2834
|
init_client_logger();
|
|
2836
2835
|
init_core_events();
|
|
2837
2836
|
init_preview_errors();
|
|
2838
|
-
|
|
2837
|
+
init_global();
|
|
2839
2838
|
init_StoryStore(), init_composeProjectAnnotationsWithCore();
|
|
2840
2839
|
init_main();
|
|
2841
2840
|
init_StoryRender();
|
|
2842
|
-
({fetch: fetch$1} =
|
|
2841
|
+
({fetch: fetch$1} = global);
|
|
2843
2842
|
STORY_INDEX_PATH = "./index.json";
|
|
2844
2843
|
Preview = class {
|
|
2845
2844
|
constructor(importFn, getProjectAnnotations, channel = addons.getChannel(), shouldInitialize = true) {
|
|
@@ -3082,40 +3081,6 @@ function init_Preview() {
|
|
|
3082
3081
|
})))();
|
|
3083
3082
|
}
|
|
3084
3083
|
//#endregion
|
|
3085
|
-
//#region src/preview-api/modules/preview-web/embedMode.ts
|
|
3086
|
-
var shouldEmbed, shouldAutoplay;
|
|
3087
|
-
function init_embedMode() {
|
|
3088
|
-
return (init_embedMode = __esmMin((() => {
|
|
3089
|
-
shouldEmbed = ({ search }) => {
|
|
3090
|
-
return new URLSearchParams(search).get("embed") === "true";
|
|
3091
|
-
};
|
|
3092
|
-
shouldAutoplay = ({ search }) => !shouldEmbed({ search });
|
|
3093
|
-
})))();
|
|
3094
|
-
}
|
|
3095
|
-
//#endregion
|
|
3096
|
-
//#region src/preview-api/modules/preview-web/getEmbedResizeViewport.ts
|
|
3097
|
-
var getEmbedResizeViewport;
|
|
3098
|
-
function init_getEmbedResizeViewport() {
|
|
3099
|
-
return (init_getEmbedResizeViewport = __esmMin((() => {
|
|
3100
|
-
init_constants();
|
|
3101
|
-
init_defaults();
|
|
3102
|
-
init_resolveViewport();
|
|
3103
|
-
getEmbedResizeViewport = (storyStore, render, reference) => {
|
|
3104
|
-
if (!storyStore || !render?.story) return;
|
|
3105
|
-
const { globals, storyGlobals, userGlobals, parameters } = storyStore.getStoryContext(render.story);
|
|
3106
|
-
const viewportParameters = parameters[PARAM_KEY];
|
|
3107
|
-
return toResolvedViewportDimensions(resolveViewport({
|
|
3108
|
-
globals,
|
|
3109
|
-
storyGlobals,
|
|
3110
|
-
userGlobals,
|
|
3111
|
-
options: viewportParameters?.options ?? MINIMAL_VIEWPORTS,
|
|
3112
|
-
disable: viewportParameters?.disable ?? false,
|
|
3113
|
-
viewMode: "story"
|
|
3114
|
-
}), reference);
|
|
3115
|
-
};
|
|
3116
|
-
})))();
|
|
3117
|
-
}
|
|
3118
|
-
//#endregion
|
|
3119
3084
|
//#region src/preview-api/modules/preview-web/docs-context/DocsContext.ts
|
|
3120
3085
|
var DocsContext;
|
|
3121
3086
|
function init_DocsContext() {
|
|
@@ -3456,12 +3421,152 @@ function init_MdxDocsRender() {
|
|
|
3456
3421
|
})))();
|
|
3457
3422
|
}
|
|
3458
3423
|
//#endregion
|
|
3424
|
+
//#region src/preview-api/modules/preview-web/InfiniteDocs.ts
|
|
3425
|
+
var document$4, IntersectionObserver, docsEntriesInOrder, nextDocsEntry, InfiniteDocs;
|
|
3426
|
+
function init_InfiniteDocs() {
|
|
3427
|
+
return (init_InfiniteDocs = __esmMin((() => {
|
|
3428
|
+
init_core_events();
|
|
3429
|
+
init_story_index_filters();
|
|
3430
|
+
init_CsfDocsRender();
|
|
3431
|
+
init_MdxDocsRender();
|
|
3432
|
+
({document: document$4, IntersectionObserver} = globalThis);
|
|
3433
|
+
docsEntriesInOrder = (entries) => {
|
|
3434
|
+
const docs = Object.values(entries).filter((entry) => entry.type === "docs");
|
|
3435
|
+
const isTopLevel = (entry) => !entry.title.includes("/");
|
|
3436
|
+
return [...docs.filter(isTopLevel), ...docs.filter((entry) => !isTopLevel(entry))];
|
|
3437
|
+
};
|
|
3438
|
+
nextDocsEntry = (entries, id) => {
|
|
3439
|
+
const docs = docsEntriesInOrder(entries);
|
|
3440
|
+
const index = docs.findIndex((entry) => entry.id === id);
|
|
3441
|
+
return index === -1 ? void 0 : docs[index + 1];
|
|
3442
|
+
};
|
|
3443
|
+
InfiniteDocs = class {
|
|
3444
|
+
constructor(channel, store, renderStoryToElement, callbacks) {
|
|
3445
|
+
this.channel = channel;
|
|
3446
|
+
this.store = store;
|
|
3447
|
+
this.renderStoryToElement = renderStoryToElement;
|
|
3448
|
+
this.callbacks = callbacks;
|
|
3449
|
+
this.renders = [];
|
|
3450
|
+
this.loading = false;
|
|
3451
|
+
}
|
|
3452
|
+
/** Starts after the main docs page `entry` rendered into `docsRoot`. */
|
|
3453
|
+
start(entry, docsRoot) {
|
|
3454
|
+
this.stop();
|
|
3455
|
+
if (typeof IntersectionObserver === "undefined" || typeof document$4 === "undefined" || !docsRoot?.dataset) return;
|
|
3456
|
+
if (this.store.projectAnnotations?.parameters?.docs?.infiniteScroll === false) return;
|
|
3457
|
+
this.lastId = entry.id;
|
|
3458
|
+
this.inViewId = entry.id;
|
|
3459
|
+
docsRoot.dataset.docsId = entry.id;
|
|
3460
|
+
const container = document$4.createElement("div");
|
|
3461
|
+
container.className = "fb-infinite-docs";
|
|
3462
|
+
const sentinel = document$4.createElement("div");
|
|
3463
|
+
sentinel.className = "fb-infinite-docs-sentinel";
|
|
3464
|
+
sentinel.style.height = "1px";
|
|
3465
|
+
container.appendChild(sentinel);
|
|
3466
|
+
docsRoot.after(container);
|
|
3467
|
+
this.container = container;
|
|
3468
|
+
this.pageObserver = new IntersectionObserver((records) => {
|
|
3469
|
+
for (const record of records) {
|
|
3470
|
+
const id = record.target.dataset.docsId;
|
|
3471
|
+
if (record.isIntersecting && id && id !== this.inViewId) {
|
|
3472
|
+
this.inViewId = id;
|
|
3473
|
+
this.channel.emit(DOCS_PAGE_IN_VIEW, { storyId: id });
|
|
3474
|
+
}
|
|
3475
|
+
}
|
|
3476
|
+
}, { rootMargin: "-10% 0px -60% 0px" });
|
|
3477
|
+
this.pageObserver.observe(docsRoot);
|
|
3478
|
+
this.sentinelObserver = new IntersectionObserver((records) => {
|
|
3479
|
+
if (records.some((record) => record.isIntersecting)) this.loadNext();
|
|
3480
|
+
}, { rootMargin: "0px 0px 600px 0px" });
|
|
3481
|
+
this.sentinelObserver.observe(sentinel);
|
|
3482
|
+
}
|
|
3483
|
+
async loadNext() {
|
|
3484
|
+
const { container, lastId } = this;
|
|
3485
|
+
if (this.loading || !container || !lastId) return;
|
|
3486
|
+
const entry = nextDocsEntry(this.store.storyIndex.entries, lastId);
|
|
3487
|
+
if (!entry) {
|
|
3488
|
+
this.sentinelObserver?.disconnect();
|
|
3489
|
+
return;
|
|
3490
|
+
}
|
|
3491
|
+
this.loading = true;
|
|
3492
|
+
this.lastId = entry.id;
|
|
3493
|
+
const element = document$4.createElement("div");
|
|
3494
|
+
element.className = "fb-infinite-docs-page";
|
|
3495
|
+
element.dataset.docsId = entry.id;
|
|
3496
|
+
container.insertBefore(element, container.lastChild);
|
|
3497
|
+
const render = isMdxEntry(entry) ? new MdxDocsRender(this.channel, this.store, entry, this.callbacks(entry.id)) : new CsfDocsRender(this.channel, this.store, entry, this.callbacks(entry.id));
|
|
3498
|
+
this.renders.push(render);
|
|
3499
|
+
try {
|
|
3500
|
+
await render.prepare();
|
|
3501
|
+
if (this.container !== container) return;
|
|
3502
|
+
await render.renderToElement(element, this.renderStoryToElement);
|
|
3503
|
+
this.pageObserver?.observe(element);
|
|
3504
|
+
} catch (err) {
|
|
3505
|
+
this.sentinelObserver?.disconnect();
|
|
3506
|
+
} finally {
|
|
3507
|
+
this.loading = false;
|
|
3508
|
+
}
|
|
3509
|
+
const sentinel = container.lastElementChild;
|
|
3510
|
+
if (sentinel && sentinel.getBoundingClientRect().top < globalThis.innerHeight + 600) this.loadNext();
|
|
3511
|
+
}
|
|
3512
|
+
/** Removes the pages below the main page. */
|
|
3513
|
+
stop() {
|
|
3514
|
+
this.sentinelObserver?.disconnect();
|
|
3515
|
+
this.pageObserver?.disconnect();
|
|
3516
|
+
this.sentinelObserver = void 0;
|
|
3517
|
+
this.pageObserver = void 0;
|
|
3518
|
+
for (const render of this.renders) render.teardown({ viewModeChanged: true });
|
|
3519
|
+
this.renders = [];
|
|
3520
|
+
this.container?.remove();
|
|
3521
|
+
this.container = void 0;
|
|
3522
|
+
this.lastId = void 0;
|
|
3523
|
+
this.inViewId = void 0;
|
|
3524
|
+
this.loading = false;
|
|
3525
|
+
}
|
|
3526
|
+
};
|
|
3527
|
+
})))();
|
|
3528
|
+
}
|
|
3529
|
+
//#endregion
|
|
3530
|
+
//#region src/preview-api/modules/preview-web/embedMode.ts
|
|
3531
|
+
var shouldEmbed, shouldAutoplay;
|
|
3532
|
+
function init_embedMode() {
|
|
3533
|
+
return (init_embedMode = __esmMin((() => {
|
|
3534
|
+
shouldEmbed = ({ search }) => {
|
|
3535
|
+
return new URLSearchParams(search).get("embed") === "true";
|
|
3536
|
+
};
|
|
3537
|
+
shouldAutoplay = ({ search }) => !shouldEmbed({ search });
|
|
3538
|
+
})))();
|
|
3539
|
+
}
|
|
3540
|
+
//#endregion
|
|
3541
|
+
//#region src/preview-api/modules/preview-web/getEmbedResizeViewport.ts
|
|
3542
|
+
var getEmbedResizeViewport;
|
|
3543
|
+
function init_getEmbedResizeViewport() {
|
|
3544
|
+
return (init_getEmbedResizeViewport = __esmMin((() => {
|
|
3545
|
+
init_constants();
|
|
3546
|
+
init_defaults();
|
|
3547
|
+
init_resolveViewport();
|
|
3548
|
+
getEmbedResizeViewport = (storyStore, render, reference) => {
|
|
3549
|
+
if (!storyStore || !render?.story) return;
|
|
3550
|
+
const { globals, storyGlobals, userGlobals, parameters } = storyStore.getStoryContext(render.story);
|
|
3551
|
+
const viewportParameters = parameters[PARAM_KEY];
|
|
3552
|
+
return toResolvedViewportDimensions(resolveViewport({
|
|
3553
|
+
globals,
|
|
3554
|
+
storyGlobals,
|
|
3555
|
+
userGlobals,
|
|
3556
|
+
options: viewportParameters?.options ?? MINIMAL_VIEWPORTS,
|
|
3557
|
+
disable: viewportParameters?.disable ?? false,
|
|
3558
|
+
viewMode: "story"
|
|
3559
|
+
}), reference);
|
|
3560
|
+
};
|
|
3561
|
+
})))();
|
|
3562
|
+
}
|
|
3563
|
+
//#endregion
|
|
3459
3564
|
//#region src/preview-api/modules/preview-web/setupStoryFreezer.ts
|
|
3460
3565
|
var FREEZE_STYLE_ID, PRE_FREEZE_STYLE_ID, tryReplaceProperty, getQueryParam, shouldFreeze, stripScriptElements, stripInlineEventHandlers, addFreezeStyles, addPreFreezeStyles, finishAndPauseAnimations, blockInteractions, createStoryFreezer, setupStoryFreezer;
|
|
3461
3566
|
function init_setupStoryFreezer() {
|
|
3462
3567
|
return (init_setupStoryFreezer = __esmMin((() => {
|
|
3463
3568
|
init_core_events();
|
|
3464
|
-
|
|
3569
|
+
init_global();
|
|
3465
3570
|
FREEZE_STYLE_ID = "storybook-freeze-after-finished";
|
|
3466
3571
|
PRE_FREEZE_STYLE_ID = "storybook-freeze-end-frame-preload";
|
|
3467
3572
|
tryReplaceProperty = (target, key, value) => {
|
|
@@ -3647,8 +3752,8 @@ function init_setupStoryFreezer() {
|
|
|
3647
3752
|
return { freeze };
|
|
3648
3753
|
};
|
|
3649
3754
|
setupStoryFreezer = (channel, options = {}) => {
|
|
3650
|
-
const windowRef =
|
|
3651
|
-
const documentRef =
|
|
3755
|
+
const windowRef = global.window;
|
|
3756
|
+
const documentRef = global.document;
|
|
3652
3757
|
if (!windowRef || !documentRef) return false;
|
|
3653
3758
|
if (!shouldFreeze({ search: documentRef.location.search })) return false;
|
|
3654
3759
|
addPreFreezeStyles(documentRef);
|
|
@@ -3678,7 +3783,7 @@ function init_setupStoryFreezer() {
|
|
|
3678
3783
|
var EMBED_STYLE_ID, EMBED_UI_STYLE_ID, IGNORE_TAGS, REPLACED_OR_CONTROL_TAGS, BLOCK_LEVEL_TAGS, descendantSelector, isTransparentColor, hasVisibleDecoration, isReplacedOrControl, hasDirectText, isStretchedToParent, hasExplicitWidth, coversViewport, isViewportOverlayUnderlay, isPassThroughContainer, shouldExcludeFromMeasurement, getMeasurableElements, getBodyPadding, getDimensions, getTrackedElements, injectEmbedSizingStyles, removeEmbedSizingStyles, injectEmbedUiStyles, lastDimensions, sendResizeMessage, debounce, setupContentResizeBroadcast;
|
|
3679
3784
|
function init_setupContentResizeBroadcast() {
|
|
3680
3785
|
return (init_setupContentResizeBroadcast = __esmMin((() => {
|
|
3681
|
-
|
|
3786
|
+
init_global();
|
|
3682
3787
|
init_iframe_resize();
|
|
3683
3788
|
init_embedMode();
|
|
3684
3789
|
init_setupStoryFreezer();
|
|
@@ -3926,8 +4031,8 @@ function init_setupContentResizeBroadcast() {
|
|
|
3926
4031
|
};
|
|
3927
4032
|
setupContentResizeBroadcast = (options = {}) => {
|
|
3928
4033
|
const { getViewport } = options;
|
|
3929
|
-
const windowRef =
|
|
3930
|
-
const documentRef =
|
|
4034
|
+
const windowRef = global.window;
|
|
4035
|
+
const documentRef = global.document;
|
|
3931
4036
|
if (!windowRef || !documentRef) return {};
|
|
3932
4037
|
if (!shouldEmbed({ search: documentRef.location.search })) return {};
|
|
3933
4038
|
lastDimensions = null;
|
|
@@ -4010,6 +4115,7 @@ function init_PreviewWithSelection() {
|
|
|
4010
4115
|
init_tags();
|
|
4011
4116
|
init_story_index_filters();
|
|
4012
4117
|
init_Preview();
|
|
4118
|
+
init_InfiniteDocs();
|
|
4013
4119
|
init_embedMode();
|
|
4014
4120
|
init_getEmbedResizeViewport();
|
|
4015
4121
|
init_CsfDocsRender();
|
|
@@ -4158,6 +4264,7 @@ function init_PreviewWithSelection() {
|
|
|
4158
4264
|
const { selection } = this.selectionStore;
|
|
4159
4265
|
if (!selection) throw new Error("Cannot call renderSelection as no selection was made");
|
|
4160
4266
|
const { storyId } = selection;
|
|
4267
|
+
this.infiniteDocs?.stop();
|
|
4161
4268
|
let entry;
|
|
4162
4269
|
try {
|
|
4163
4270
|
entry = await this.storyStoreValue.storyIdToEntry(storyId);
|
|
@@ -4242,7 +4349,21 @@ function init_PreviewWithSelection() {
|
|
|
4242
4349
|
invariant(!!render.story);
|
|
4243
4350
|
this.storyRenders.push(render);
|
|
4244
4351
|
this.currentRender.renderToElement(this.view.prepareForStory(render.story, { scrollReset: storyIdChanged || viewModeChanged }));
|
|
4245
|
-
} else
|
|
4352
|
+
} else {
|
|
4353
|
+
const docsRoot = this.view.prepareForDocs({ scrollReset: storyIdChanged || viewModeChanged });
|
|
4354
|
+
const docsRender = this.currentRender;
|
|
4355
|
+
docsRender.renderToElement(docsRoot, this.renderStoryToElement.bind(this)).then(() => {
|
|
4356
|
+
if (this.currentRender === docsRender && this.storyStoreValue) {
|
|
4357
|
+
this.infiniteDocs ??= new InfiniteDocs(this.channel, this.storyStoreValue, this.renderStoryToElement.bind(this), () => ({
|
|
4358
|
+
showStoryDuringRender: () => {},
|
|
4359
|
+
showMain: () => {},
|
|
4360
|
+
showError: () => {},
|
|
4361
|
+
showException: (err) => logger.error(err)
|
|
4362
|
+
}));
|
|
4363
|
+
this.infiniteDocs.start(entry, docsRoot);
|
|
4364
|
+
}
|
|
4365
|
+
});
|
|
4366
|
+
}
|
|
4246
4367
|
}
|
|
4247
4368
|
async teardownRender(render, { viewModeChanged = false, keepRenderedDom = false } = {}) {
|
|
4248
4369
|
this.storyRenders = this.storyRenders.filter((r) => r !== render);
|
|
@@ -4384,10 +4505,10 @@ function pathToViewMode(path) {
|
|
|
4384
4505
|
var history, document$3, PATH_REGEX, getQueryString, setPath, isObject, getFirstString, getSelectionSpecifierFromPath, UrlStore;
|
|
4385
4506
|
function init_UrlStore() {
|
|
4386
4507
|
return (init_UrlStore = __esmMin((() => {
|
|
4387
|
-
|
|
4508
|
+
init_global();
|
|
4388
4509
|
init_main$1();
|
|
4389
4510
|
init_parseArgsParam();
|
|
4390
|
-
({history, document: document$3} =
|
|
4511
|
+
({history, document: document$3} = global);
|
|
4391
4512
|
PATH_REGEX = /^\/(story|docs)\/(.+)/;
|
|
4392
4513
|
getQueryString = ({ selection, extraParams }) => {
|
|
4393
4514
|
const search = document$3?.location.search.slice(1);
|
|
@@ -4457,11 +4578,11 @@ var import_ansi_to_html, document$2, PREPARING_DELAY, Mode, classes, layoutClass
|
|
|
4457
4578
|
function init_WebView() {
|
|
4458
4579
|
return (init_WebView = __esmMin((() => {
|
|
4459
4580
|
init_client_logger();
|
|
4460
|
-
|
|
4581
|
+
init_global();
|
|
4461
4582
|
import_ansi_to_html = /* @__PURE__ */ __toESM(require_ansi_to_html(), 1);
|
|
4462
4583
|
init_main$1();
|
|
4463
4584
|
init_esm();
|
|
4464
|
-
({document: document$2} =
|
|
4585
|
+
({document: document$2} = global);
|
|
4465
4586
|
PREPARING_DELAY = 100;
|
|
4466
4587
|
Mode = /* @__PURE__ */ function(Mode) {
|
|
4467
4588
|
Mode["MAIN"] = "MAIN";
|
|
@@ -4612,7 +4733,7 @@ function init_WebView() {
|
|
|
4612
4733
|
var PreviewWeb;
|
|
4613
4734
|
function init_PreviewWeb() {
|
|
4614
4735
|
return (init_PreviewWeb = __esmMin((() => {
|
|
4615
|
-
|
|
4736
|
+
init_global();
|
|
4616
4737
|
init_PreviewWithSelection();
|
|
4617
4738
|
init_UrlStore();
|
|
4618
4739
|
init_WebView();
|
|
@@ -4621,7 +4742,7 @@ function init_PreviewWeb() {
|
|
|
4621
4742
|
super(importFn, getProjectAnnotations, new UrlStore(), new WebView());
|
|
4622
4743
|
this.importFn = importFn;
|
|
4623
4744
|
this.getProjectAnnotations = getProjectAnnotations;
|
|
4624
|
-
|
|
4745
|
+
global.__FORKBOOK_PREVIEW__ = this;
|
|
4625
4746
|
}
|
|
4626
4747
|
};
|
|
4627
4748
|
})))();
|
|
@@ -4673,8 +4794,8 @@ function simulatePageLoad($container) {
|
|
|
4673
4794
|
var document$1, runScriptTypes, SCRIPT, SCRIPTS_ROOT_ID;
|
|
4674
4795
|
function init_simulate_pageload() {
|
|
4675
4796
|
return (init_simulate_pageload = __esmMin((() => {
|
|
4676
|
-
|
|
4677
|
-
({document: document$1} =
|
|
4797
|
+
init_global();
|
|
4798
|
+
({document: document$1} = global);
|
|
4678
4799
|
runScriptTypes = [
|
|
4679
4800
|
"application/javascript",
|
|
4680
4801
|
"application/ecmascript",
|
|
@@ -4806,12 +4927,12 @@ function init_runtime() {
|
|
|
4806
4927
|
init_core_events();
|
|
4807
4928
|
init_preview_errors();
|
|
4808
4929
|
init_types();
|
|
4809
|
-
|
|
4930
|
+
init_global();
|
|
4810
4931
|
init_actions();
|
|
4811
4932
|
init_preview_api();
|
|
4812
4933
|
init_test();
|
|
4813
4934
|
globalsNameValueMap = {
|
|
4814
|
-
"@storybook/global":
|
|
4935
|
+
"@storybook/global": global_exports,
|
|
4815
4936
|
"@aussieljk/forkbook/test": test_exports,
|
|
4816
4937
|
"@aussieljk/forkbook/actions": actions_exports,
|
|
4817
4938
|
"@aussieljk/forkbook/preview-api": preview_api_exports,
|
|
@@ -4991,7 +5112,7 @@ function init_preview_navigator() {
|
|
|
4991
5112
|
//#endregion
|
|
4992
5113
|
//#region src/preview/utils.ts
|
|
4993
5114
|
function getBrowserInfo() {
|
|
4994
|
-
if (!browserInfo) browserInfo = new import_browser_dtector_umd_min.default(
|
|
5115
|
+
if (!browserInfo) browserInfo = new import_browser_dtector_umd_min.default(global.navigator?.userAgent).getBrowserInfo();
|
|
4995
5116
|
return browserInfo;
|
|
4996
5117
|
}
|
|
4997
5118
|
function prepareForTelemetry(error) {
|
|
@@ -5001,7 +5122,7 @@ function prepareForTelemetry(error) {
|
|
|
5001
5122
|
var import_browser_dtector_umd_min, browserInfo;
|
|
5002
5123
|
function init_utils() {
|
|
5003
5124
|
return (init_utils = __esmMin((() => {
|
|
5004
|
-
|
|
5125
|
+
init_global();
|
|
5005
5126
|
import_browser_dtector_umd_min = /* @__PURE__ */ __toESM(require_browser_dtector_umd_min(), 1);
|
|
5006
5127
|
})))();
|
|
5007
5128
|
}
|
|
@@ -5013,21 +5134,21 @@ function setInert(inert) {
|
|
|
5013
5134
|
}
|
|
5014
5135
|
function errorListener(args) {
|
|
5015
5136
|
const error = args.error || args;
|
|
5016
|
-
if (error.fromStorybook)
|
|
5137
|
+
if (error.fromStorybook) global.sendTelemetryError(error);
|
|
5017
5138
|
}
|
|
5018
5139
|
function unhandledRejectionListener({ reason }) {
|
|
5019
|
-
if (reason.fromStorybook)
|
|
5140
|
+
if (reason.fromStorybook) global.sendTelemetryError(reason);
|
|
5020
5141
|
}
|
|
5021
5142
|
function setup() {
|
|
5022
5143
|
globalPackages.forEach((key) => {
|
|
5023
|
-
|
|
5144
|
+
global[globalsNameReferenceMap[key]] = globalsNameValueMap[key];
|
|
5024
5145
|
});
|
|
5025
|
-
|
|
5146
|
+
global.sendTelemetryError = (error) => {
|
|
5026
5147
|
const channel = getChannel();
|
|
5027
5148
|
if (!channel) return;
|
|
5028
5149
|
channel.emit(TELEMETRY_ERROR, prepareForTelemetry(error));
|
|
5029
5150
|
};
|
|
5030
|
-
const freeze = new URLSearchParams(
|
|
5151
|
+
const freeze = new URLSearchParams(global.location?.search ?? "").get("freeze") === "finished";
|
|
5031
5152
|
if (freeze) setInert(true);
|
|
5032
5153
|
/**
|
|
5033
5154
|
* Ensure we synchronise the preview runtime's inert state with the manager's. The inert attribute
|
|
@@ -5044,15 +5165,15 @@ function setup() {
|
|
|
5044
5165
|
setInert(freeze || isInert);
|
|
5045
5166
|
});
|
|
5046
5167
|
});
|
|
5047
|
-
|
|
5048
|
-
|
|
5168
|
+
global.addEventListener("error", errorListener);
|
|
5169
|
+
global.addEventListener("unhandledrejection", unhandledRejectionListener);
|
|
5049
5170
|
maybeSetupPreviewNavigator();
|
|
5050
5171
|
}
|
|
5051
5172
|
function init_runtime$1() {
|
|
5052
5173
|
return (init_runtime$1 = __esmMin((() => {
|
|
5053
5174
|
init_channels();
|
|
5054
5175
|
init_core_events();
|
|
5055
|
-
|
|
5176
|
+
init_global();
|
|
5056
5177
|
init_globals();
|
|
5057
5178
|
init_runtime();
|
|
5058
5179
|
init_preview_navigator();
|