@aussieljk/forkbook 0.0.1-5 → 0.0.1-7
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/dist/_browser-chunks/{Color-GTF4GM7L.js → Color-2YRIFQLC.js} +1 -1
- package/dist/_browser-chunks/WithTooltip-4R5JMWZ7.js +196 -0
- package/dist/_browser-chunks/{chunk-MJY6ITYT.js → chunk-4EFKUJG2.js} +10 -10
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-DAUHYZUB.js} +550 -1621
- package/dist/_browser-chunks/chunk-E47B5255.js +1149 -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-HOSBMS2F.js → chunk-HTL5ODCB.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-NMRSYACM.js → chunk-SFMQDIN2.js} +4 -3
- package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
- package/dist/_browser-chunks/chunk-WVF42CP2.js +6027 -0
- package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-YYWKZ7O3.js} +3 -1
- package/dist/_node-chunks/{attached-runtime-IOE3BXIY.js → attached-runtime-WFZCCGUB.js} +29 -29
- package/dist/_node-chunks/{builder-manager-GDFEGD72.js → builder-manager-DHKHRZK4.js} +155 -148
- package/dist/_node-chunks/{chunk-M2QB5ALN.js → chunk-3ZCGT6VF.js} +6 -6
- package/dist/_node-chunks/{chunk-SUJXQU74.js → chunk-4HGC3G6B.js} +46 -15
- package/dist/_node-chunks/{chunk-WMQ2VCTF.js → chunk-5PYQ573S.js} +7 -7
- package/dist/_node-chunks/{chunk-TYCDPVIH.js → chunk-64JPAW3T.js} +6 -6
- package/dist/_node-chunks/chunk-6CB3XSQ2.js +495 -0
- package/dist/_node-chunks/{chunk-MHDKWHOA.js → chunk-6K3ZE4HN.js} +6 -6
- package/dist/_node-chunks/{chunk-3DCJB2D4.js → chunk-6QZ3PX5R.js} +6 -6
- package/dist/_node-chunks/{chunk-6DOJKR3V.js → chunk-7HVDL6M3.js} +29843 -51588
- package/dist/_node-chunks/chunk-7PMQPS5E.js +347 -0
- package/dist/_node-chunks/{chunk-L5CY6HKG.js → chunk-7V5AOV2J.js} +7 -7
- package/dist/_node-chunks/{chunk-AXJJB2K6.js → chunk-7VHCAGBJ.js} +8 -8
- package/dist/_node-chunks/{chunk-3DX6THMV.js → chunk-ATX7SHS7.js} +8 -8
- package/dist/_node-chunks/{chunk-SDXU22OH.js → chunk-BQC6WCUS.js} +6 -6
- package/dist/_node-chunks/{chunk-D6B2DRQZ.js → chunk-BR4WDRY6.js} +8 -8
- package/dist/_node-chunks/{chunk-SJZQ44OR.js → chunk-BRHJ4P3A.js} +6 -6
- package/dist/_node-chunks/{chunk-N4FLP7AO.js → chunk-CBBFNVFZ.js} +7 -7
- package/dist/_node-chunks/{chunk-PHXCOTMO.js → chunk-CDFQORVD.js} +34 -949
- package/dist/_node-chunks/{chunk-SR3BCYEH.js → chunk-CENNLCU7.js} +6 -6
- package/dist/_node-chunks/{chunk-OTFIQXHR.js → chunk-CNMMDQC3.js} +27 -50
- package/dist/_node-chunks/{chunk-E4C2H45J.js → chunk-DMDZPUHM.js} +6 -6
- package/dist/_node-chunks/{chunk-45LRLOYO.js → chunk-DT45EUDD.js} +60 -134
- package/dist/_node-chunks/{chunk-KQFHT7SW.js → chunk-EAL4RVEF.js} +6 -6
- package/dist/_node-chunks/chunk-EFFWFE6W.js +11 -0
- package/dist/_node-chunks/{chunk-MDGNN3FJ.js → chunk-ESCZ2NSB.js} +6 -6
- package/dist/_node-chunks/{chunk-T2I453AJ.js → chunk-ESZIQTUH.js} +7 -7
- package/dist/_node-chunks/{chunk-HWY2CAUH.js → chunk-F3SAYS4R.js} +6 -6
- package/dist/_node-chunks/{chunk-LSP54OYM.js → chunk-FTUQ7T3V.js} +25 -8
- package/dist/_node-chunks/{chunk-AAAUVDWT.js → chunk-FVFSSIGA.js} +10 -10
- package/dist/_node-chunks/{chunk-GS4VNNSS.js → chunk-G2AANC4A.js} +6 -6
- package/dist/_node-chunks/{chunk-SAAQFJL4.js → chunk-HUMAXGH2.js} +6 -6
- package/dist/_node-chunks/{chunk-A4XRNDN4.js → chunk-I535GEPH.js} +7 -7
- package/dist/_node-chunks/{chunk-CK4EHW3K.js → chunk-J3Q56GX3.js} +25 -25
- package/dist/_node-chunks/{chunk-U47PBQZ3.js → chunk-JDKYP7FW.js} +10 -10
- package/dist/_node-chunks/{chunk-7TUSIVWS.js → chunk-JED5F3H2.js} +6 -6
- package/dist/_node-chunks/{chunk-UM5G27IC.js → chunk-JMS4H7QB.js} +7 -7
- package/dist/_node-chunks/{chunk-GR65OLAH.js → chunk-JOSJ64KD.js} +7 -7
- package/dist/_node-chunks/{chunk-XUHEL63G.js → chunk-JPHSU5OI.js} +6 -6
- package/dist/_node-chunks/{chunk-NYWD5LYM.js → chunk-JQICISDD.js} +6 -6
- package/dist/_node-chunks/{chunk-I3DKGHVD.js → chunk-JTLOSDYL.js} +9 -9
- package/dist/_node-chunks/{chunk-5KAJVK4E.js → chunk-K5RUOW42.js} +7 -7
- package/dist/_node-chunks/{chunk-UKEJISQU.js → chunk-KHWCZDIW.js} +650 -9
- package/dist/_node-chunks/chunk-KWER36VB.js +20 -0
- package/dist/_node-chunks/{chunk-YTBTCM22.js → chunk-LJTP5PAJ.js} +6 -6
- package/dist/_node-chunks/chunk-LZYYZ62Y.js +19 -0
- package/dist/_node-chunks/{chunk-CGXW2HFE.js → chunk-M7ZVSBNU.js} +6 -6
- package/dist/_node-chunks/{chunk-BTFSFATC.js → chunk-MBIIJTGQ.js} +11 -10
- package/dist/_node-chunks/{chunk-VBSVLIXU.js → chunk-MF3AT3JQ.js} +6 -6
- package/dist/_node-chunks/{chunk-AX2ALHBK.js → chunk-MF5BYASO.js} +9 -6
- package/dist/_node-chunks/{chunk-JJNO3SFI.js → chunk-MJFMB4WD.js} +9 -9
- package/dist/_node-chunks/{chunk-E4TBS4MV.js → chunk-MRWBN46D.js} +8 -8
- package/dist/_node-chunks/{chunk-QQXFB4YA.js → chunk-MZQXEAI6.js} +9 -9
- package/dist/_node-chunks/{chunk-TZ2TZW2K.js → chunk-NLPC2DDQ.js} +6 -6
- package/dist/_node-chunks/{chunk-HCX5R46Q.js → chunk-NQAFLS5U.js} +8 -8
- package/dist/_node-chunks/{chunk-5LE7GXEC.js → chunk-NSZGBFPR.js} +6 -6
- package/dist/_node-chunks/{chunk-WHDCECIV.js → chunk-NUYBFTOU.js} +7 -7
- package/dist/_node-chunks/{chunk-RCPKLP3X.js → chunk-O7VJA7SM.js} +7 -7
- package/dist/_node-chunks/{chunk-2GY2FKLH.js → chunk-OGJ7LDX3.js} +7 -7
- package/dist/_node-chunks/{chunk-F4Q7OCCN.js → chunk-OWT6AVWK.js} +8 -8
- package/dist/_node-chunks/{chunk-LCXIUTOU.js → chunk-P3GOMPP3.js} +7 -7
- package/dist/_node-chunks/{chunk-KCAPE7OJ.js → chunk-PQLXHVWK.js} +6 -6
- package/dist/_node-chunks/{chunk-V45RRBTK.js → chunk-Q6QRFKHB.js} +8 -8
- package/dist/_node-chunks/{chunk-VJSOHPVD.js → chunk-QSP42ZBM.js} +6 -6
- package/dist/_node-chunks/{chunk-7XUQM6SR.js → chunk-QWDR5OWQ.js} +14 -14
- package/dist/_node-chunks/{chunk-YLKS7U3M.js → chunk-QWRQXG2V.js} +8 -8
- package/dist/_node-chunks/{chunk-4WO3GNZQ.js → chunk-R6AKCXPH.js} +6 -6
- package/dist/_node-chunks/{chunk-AXQ6LLSE.js → chunk-RCY7TLET.js} +8 -8
- package/dist/_node-chunks/chunk-RKKMQA6N.js +620 -0
- package/dist/_node-chunks/{chunk-BV3QRFE6.js → chunk-RZ7UEP4N.js} +6 -6
- package/dist/_node-chunks/{chunk-OSJFTZ5N.js → chunk-S3HB4EWT.js} +6 -6
- package/dist/_node-chunks/{chunk-QZVFIEOM.js → chunk-SHH7JROR.js} +6 -6
- package/dist/_node-chunks/{chunk-Q33BYVLY.js → chunk-SWHTDOB4.js} +7 -7
- package/dist/_node-chunks/{chunk-ZPPVG262.js → chunk-SZYMLCHF.js} +6 -6
- package/dist/_node-chunks/{chunk-ES5QZBSB.js → chunk-TOGDRW2W.js} +6 -6
- package/dist/_node-chunks/{chunk-J64XMUPF.js → chunk-U3E7E4Q2.js} +10 -10
- package/dist/_node-chunks/{chunk-RECGEABN.js → chunk-U6DHF3RM.js} +7 -7
- package/dist/_node-chunks/{chunk-OB2XHL53.js → chunk-UAG3XK32.js} +31 -30
- package/dist/_node-chunks/{chunk-BBD2KUV4.js → chunk-UF6Q6L5C.js} +22 -20
- package/dist/_node-chunks/chunk-UGXN7JTT.js +18 -0
- package/dist/_node-chunks/{chunk-EWAGCBER.js → chunk-UNCBLHIP.js} +8 -8
- package/dist/_node-chunks/chunk-UPJMGWMZ.js +25 -0
- package/dist/_node-chunks/chunk-UVV24PG4.js +69 -0
- package/dist/_node-chunks/{chunk-E6KXSYWR.js → chunk-WBB4NQ6H.js} +6 -6
- package/dist/_node-chunks/{chunk-B2IOB2V3.js → chunk-WHOF2BJB.js} +7 -7
- package/dist/_node-chunks/{chunk-FA36CEN4.js → chunk-WME5NEJA.js} +6 -6
- package/dist/_node-chunks/{chunk-BFZG4UTW.js → chunk-X63YMAHP.js} +7 -7
- package/dist/_node-chunks/chunk-Y2GHAOKI.js +25 -0
- package/dist/_node-chunks/{chunk-AXG3EMKS.js → chunk-Y6G64J5S.js} +7 -15
- package/dist/_node-chunks/chunk-YVIPYJ53.js +2609 -0
- package/dist/_node-chunks/{chunk-NDGTNFUN.js → chunk-YZWUD7I5.js} +16 -13
- package/dist/_node-chunks/{chunk-VN3A5CEH.js → chunk-ZIDIYSJQ.js} +7 -7
- package/dist/_node-chunks/chunk-ZSGOW4WQ.js +20 -0
- package/dist/_node-chunks/dist-5EG56KTF.js +16 -0
- package/dist/_node-chunks/dist-UEXSNGGQ.js +27 -0
- package/dist/_node-chunks/{local-runtime-RW6AAWSX.js → local-runtime-UN5QK2SE.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-BKWCT6CB.js → mdx-plugin-6M6CMNL3.js} +2263 -130
- package/dist/_node-chunks/{monorepo-ZFJ6HM34.js → monorepo-253VKW4B.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-C3EW4VJW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-3ZOE54OQ.js} +11 -11
- package/dist/_node-chunks/optimized-tests-JSWLRMEI.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-2ZMJNCBS.js → pattern-copy-play-CCCJRMSL.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-VMANBHPR.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-RT5Z62RV.js → rehype-external-links-LJTPLCGD.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-H5TWHJ6G.js → rehype-slug-KQI7ULEZ.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-DYLWZGE4.js → relaxed-limits-MUE2NI7S.js} +11 -11
- package/dist/_node-chunks/{run-65LLGSVR.js → run-PGZMPNMS.js} +246 -13
- package/dist/_node-chunks/{run-BQQLK454.js → run-SYLR25HA.js} +17 -17
- package/dist/_node-chunks/session-id-J4A25UQ6.js +23 -0
- package/dist/_node-chunks/{setup-NEO7XX66.js → setup-XZWSUYPG.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-6P3FZQTY.js → vitest.config.4.template-T25YYRGV.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 +6 -5
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +2 -1
- package/dist/addon-docs/blocks.js +28 -14
- 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 +21 -44
- package/dist/addon-ondevice-actions/index.js +5 -1
- package/dist/addon-ondevice-actions/register.js +5 -1
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +2 -2
- 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 +16 -11
- 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-Jf7j2Ot0.d.ts → chunk-BGhyFTJO.d.ts} +1 -1
- package/dist/{chunk-Ce6uhJuR.d.ts → chunk-B_ZhEPlo.d.ts} +1 -1
- package/dist/{chunk-CZHsX9Zo.d.ts → chunk-CMaYrou5.d.ts} +1 -1
- package/dist/chunk-CV4-Z2pn.d.ts +30 -0
- package/dist/{chunk-B2t1tGRh.d.ts → chunk-CYuvV2sR.d.ts} +11 -13
- package/dist/{chunk-DpljNJTz.d.ts → chunk-LrH1y9J2.d.ts} +39 -0
- 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 +2512 -8359
- package/dist/core-events/index.d.ts +3 -2
- 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 +62 -866
- 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 +1 -1
- package/dist/csf/index.js +27 -93
- package/dist/csf-tools/index.d.ts +14 -12
- package/dist/csf-tools/index.js +14 -14
- package/dist/instrumenter/index.js +3 -1
- package/dist/manager/_manager-chunks/{globals-runtime-BgVwdR45.js → globals-runtime-4fCHtNC6.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DW1HVuLt.js → globals-runtime-BKPOYSwp.js} +410 -379
- package/dist/manager/_manager-chunks/{globals-runtime-zVfMhZAt.js → globals-runtime-BMIT8BJb.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CUBVmgcG.js → globals-runtime-BO0pfoqL.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-Bke4A4DG.js → globals-runtime-BZKYJxYC.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-D_YKR9nf.js → globals-runtime-Bpc_ftuT.js} +1252 -539
- package/dist/manager/_manager-chunks/{globals-runtime-DCOX9nD5.js → globals-runtime-CBviMKtt.js} +1 -17
- package/dist/manager/_manager-chunks/{globals-runtime-CTB3rhS1.js → globals-runtime-CI-C7ncS.js} +10 -10
- package/dist/manager/_manager-chunks/{globals-runtime-Cr3nYYcT.js → globals-runtime-CI_p54Ha.js} +59 -60
- package/dist/manager/_manager-chunks/{globals-runtime-CiLcg4q9.js → globals-runtime-CTyYXvUm.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DqNrRmOM.js → globals-runtime-CoCzM1V_.js} +93 -2146
- package/dist/manager/_manager-chunks/{globals-runtime-CXKb33hg.js → globals-runtime-CzEhVGVp.js} +141 -54
- package/dist/manager/_manager-chunks/{globals-runtime-CF4o9_wT.js → globals-runtime-D82vqOGq.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-ALpzCL93.js → globals-runtime-DB8fVA5g.js} +2 -145
- package/dist/manager/_manager-chunks/{globals-runtime-DMvB3-IM.js → globals-runtime-DMq1Phbl.js} +153 -141
- package/dist/manager/_manager-chunks/globals-runtime-DOPUchia.js +5282 -0
- package/dist/manager/_manager-chunks/{globals-runtime-BcNHymiF.js → globals-runtime-Dbt08xWQ.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-m07udJ_K.js → globals-runtime-kmPSyf3j.js} +637 -1730
- package/dist/manager/_manager-chunks/{runtime-DMig8mT7.js → runtime-5o_11Jae.js} +4 -3
- package/dist/manager/_manager-chunks/{runtime-DrjpEyLM.js → runtime-B4U0u9p4.js} +5 -147
- package/dist/manager/_manager-chunks/{runtime-B-eSQdxk.js → runtime-BM30BmeT.js} +503 -44
- package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
- package/dist/manager/_manager-chunks/{runtime-a5zd7km2.js → runtime-Cf0p9DUx.js} +5 -531
- package/dist/manager/_manager-chunks/{runtime-Cdz2BHhM.js → runtime-D-nYLsdk.js} +57 -34
- package/dist/manager/_manager-chunks/runtime-D09XMY6V.js +294 -0
- package/dist/manager/_manager-chunks/{runtime-Bldwclun.js → runtime-DvrwKw7z.js} +92 -303
- package/dist/manager/_manager-chunks/{runtime-DGHNKNQl.js → runtime-DzxaTqVN.js} +10 -29
- package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
- package/dist/manager/_manager-chunks/{runtime-Cmu7D8A0.js → runtime-ecY5qnmo.js} +193 -184
- 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 +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/node-stand-ins/index.d.ts +68 -0
- package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
- package/dist/nextjs-vite/preset.js +93 -14
- 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 +21 -44
- package/dist/_browser-chunks/WithTooltip-V55S6YCY.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-6QQTZT3Z.js +0 -19
- package/dist/_node-chunks/chunk-BRD332PB.js +0 -3008
- package/dist/_node-chunks/chunk-E2XKJLXK.js +0 -4731
- package/dist/_node-chunks/chunk-F2LQJXAB.js +0 -29
- package/dist/_node-chunks/chunk-MCZZMBPA.js +0 -20
- package/dist/_node-chunks/chunk-MMFUHYSU.js +0 -23
- package/dist/_node-chunks/chunk-UGFY5LEG.js +0 -18
- package/dist/_node-chunks/chunk-UO5ZOCSQ.js +0 -662
- package/dist/_node-chunks/chunk-UW35FCXF.js +0 -20
- package/dist/_node-chunks/chunk-VMUXW2E2.js +0 -5414
- package/dist/_node-chunks/chunk-VNXE7UJL.js +0 -51
- package/dist/_node-chunks/chunk-VRJJ43P2.js +0 -11
- package/dist/_node-chunks/chunk-WCJUS7OC.js +0 -1877
- package/dist/_node-chunks/chunk-WMBMSNB7.js +0 -36
- package/dist/_node-chunks/chunk-YV2QBXU6.js +0 -3823
- package/dist/_node-chunks/chunk-ZZNBVMBU.js +0 -25
- package/dist/_node-chunks/dist-VFUGPNLK.js +0 -16
- package/dist/_node-chunks/globby-N7LO32D3.js +0 -2884
- package/dist/_node-chunks/jiti-SJDZ7LQB.js +0 -3848
- package/dist/_node-chunks/lib-4HD6QL5R.js +0 -366
- package/dist/_node-chunks/optimized-tests-LVKXZ3HQ.js +0 -22
- package/dist/_node-chunks/postinstallAddon-I6MAL6PW.js +0 -20
- package/dist/_node-chunks/session-id-6Z2RXBTG.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-Bon7UvQk.js +0 -9766
- package/dist/manager/_manager-chunks/globals-runtime-DDOIxI_l.js +0 -1584
- package/dist/manager/_manager-chunks/runtime-CuJiHYCp.js +0 -22
- package/dist/manager/_manager-chunks/runtime-DFhLVh8q.js +0 -456
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
- package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
PARAM_KEY as PARAM_KEY5,
|
|
9
9
|
STATUS_TYPE_ID_COMPONENT_TEST
|
|
10
10
|
} from "../../_browser-chunks/chunk-MLBOOZL4.js";
|
|
11
|
-
import "../../_browser-chunks/chunk-OZZPSYQR.js";
|
|
12
11
|
import {
|
|
13
12
|
ArgsTable
|
|
14
|
-
} from "../../_browser-chunks/chunk-
|
|
13
|
+
} from "../../_browser-chunks/chunk-4EFKUJG2.js";
|
|
15
14
|
import "../../_browser-chunks/chunk-PJSMZ27A.js";
|
|
15
|
+
import "../../_browser-chunks/chunk-OZZPSYQR.js";
|
|
16
16
|
import "../../_browser-chunks/chunk-6ELMKWKX.js";
|
|
17
17
|
import {
|
|
18
18
|
defineService
|
|
@@ -22,9 +22,8 @@ import {
|
|
|
22
22
|
} from "../../_browser-chunks/chunk-KBK7GKBN.js";
|
|
23
23
|
import "../../_browser-chunks/chunk-CNED6RYH.js";
|
|
24
24
|
import {
|
|
25
|
-
dequal,
|
|
26
25
|
registerService
|
|
27
|
-
} from "../../_browser-chunks/chunk-
|
|
26
|
+
} from "../../_browser-chunks/chunk-NGMQJMCY.js";
|
|
28
27
|
import "../../_browser-chunks/chunk-4ATQOMJB.js";
|
|
29
28
|
import {
|
|
30
29
|
ADDON_ID as ADDON_ID4,
|
|
@@ -49,7 +48,9 @@ import {
|
|
|
49
48
|
} from "../../_browser-chunks/chunk-GRO2ZYEJ.js";
|
|
50
49
|
import "../../_browser-chunks/chunk-2JDQ35OA.js";
|
|
51
50
|
import "../../_browser-chunks/chunk-IE4ULIOQ.js";
|
|
52
|
-
import
|
|
51
|
+
import {
|
|
52
|
+
isEqual
|
|
53
|
+
} from "../../_browser-chunks/chunk-B4AUNNU4.js";
|
|
53
54
|
import "../../_browser-chunks/chunk-NZMVUW5T.js";
|
|
54
55
|
import "../../_browser-chunks/chunk-JWSKPMPC.js";
|
|
55
56
|
import "../../_browser-chunks/chunk-JPUOQJUI.js";
|
|
@@ -69,251 +70,18 @@ import {
|
|
|
69
70
|
PANEL_ID,
|
|
70
71
|
PARAM_KEY as PARAM_KEY2
|
|
71
72
|
} from "../../_browser-chunks/chunk-N5WQGLI7.js";
|
|
73
|
+
import {
|
|
74
|
+
global
|
|
75
|
+
} from "../../_browser-chunks/chunk-6AKCRYVX.js";
|
|
72
76
|
import {
|
|
73
77
|
ADDON_ID as ADDON_ID3,
|
|
74
78
|
DEFAULT_BACKGROUNDS,
|
|
75
79
|
PARAM_KEY as PARAM_KEY3
|
|
76
80
|
} from "../../_browser-chunks/chunk-LAWXTSXK.js";
|
|
77
81
|
import {
|
|
78
|
-
__commonJS,
|
|
79
82
|
__toESM
|
|
80
83
|
} from "../../_browser-chunks/chunk-IMSF75WX.js";
|
|
81
84
|
|
|
82
|
-
// ../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/extends.js
|
|
83
|
-
var require_extends = __commonJS({
|
|
84
|
-
"../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/extends.js"(exports, module) {
|
|
85
|
-
function _extends6() {
|
|
86
|
-
return module.exports = _extends6 = Object.assign || function(target) {
|
|
87
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
88
|
-
var source = arguments[i];
|
|
89
|
-
for (var key in source)
|
|
90
|
-
Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]);
|
|
91
|
-
}
|
|
92
|
-
return target;
|
|
93
|
-
}, _extends6.apply(this, arguments);
|
|
94
|
-
}
|
|
95
|
-
module.exports = _extends6;
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
// ../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
|
|
100
|
-
var require_objectWithoutPropertiesLoose = __commonJS({
|
|
101
|
-
"../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports, module) {
|
|
102
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
103
|
-
if (source == null) return {};
|
|
104
|
-
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
105
|
-
for (i = 0; i < sourceKeys.length; i++)
|
|
106
|
-
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
107
|
-
return target;
|
|
108
|
-
}
|
|
109
|
-
module.exports = _objectWithoutPropertiesLoose;
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
// ../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
|
114
|
-
var require_objectWithoutProperties = __commonJS({
|
|
115
|
-
"../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"(exports, module) {
|
|
116
|
-
var objectWithoutPropertiesLoose = require_objectWithoutPropertiesLoose();
|
|
117
|
-
function _objectWithoutProperties7(source, excluded) {
|
|
118
|
-
if (source == null) return {};
|
|
119
|
-
var target = objectWithoutPropertiesLoose(source, excluded), key, i;
|
|
120
|
-
if (Object.getOwnPropertySymbols) {
|
|
121
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
122
|
-
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
123
|
-
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
124
|
-
}
|
|
125
|
-
return target;
|
|
126
|
-
}
|
|
127
|
-
module.exports = _objectWithoutProperties7;
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
// ../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/defineProperty.js
|
|
132
|
-
var require_defineProperty = __commonJS({
|
|
133
|
-
"../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/defineProperty.js"(exports, module) {
|
|
134
|
-
function _defineProperty(obj, key, value) {
|
|
135
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
136
|
-
value,
|
|
137
|
-
enumerable: !0,
|
|
138
|
-
configurable: !0,
|
|
139
|
-
writable: !0
|
|
140
|
-
}) : obj[key] = value, obj;
|
|
141
|
-
}
|
|
142
|
-
module.exports = _defineProperty;
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
// ../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectSpread2.js
|
|
147
|
-
var require_objectSpread2 = __commonJS({
|
|
148
|
-
"../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectSpread2.js"(exports, module) {
|
|
149
|
-
var defineProperty = require_defineProperty();
|
|
150
|
-
function ownKeys(object2, enumerableOnly) {
|
|
151
|
-
var keys = Object.keys(object2);
|
|
152
|
-
if (Object.getOwnPropertySymbols) {
|
|
153
|
-
var symbols = Object.getOwnPropertySymbols(object2);
|
|
154
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
155
|
-
return Object.getOwnPropertyDescriptor(object2, sym).enumerable;
|
|
156
|
-
})), keys.push.apply(keys, symbols);
|
|
157
|
-
}
|
|
158
|
-
return keys;
|
|
159
|
-
}
|
|
160
|
-
function _objectSpread22(target) {
|
|
161
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
162
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
163
|
-
i % 2 ? ownKeys(source, !0).forEach(function(key) {
|
|
164
|
-
defineProperty(target, key, source[key]);
|
|
165
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(source).forEach(function(key) {
|
|
166
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
return target;
|
|
170
|
-
}
|
|
171
|
-
module.exports = _objectSpread22;
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
|
|
175
|
-
// ../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
|
|
176
|
-
var require_objectWithoutPropertiesLoose2 = __commonJS({
|
|
177
|
-
"../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports, module) {
|
|
178
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
179
|
-
if (source == null) return {};
|
|
180
|
-
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
181
|
-
for (i = 0; i < sourceKeys.length; i++)
|
|
182
|
-
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
183
|
-
return target;
|
|
184
|
-
}
|
|
185
|
-
module.exports = _objectWithoutPropertiesLoose;
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
// ../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
|
190
|
-
var require_objectWithoutProperties2 = __commonJS({
|
|
191
|
-
"../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"(exports, module) {
|
|
192
|
-
var objectWithoutPropertiesLoose = require_objectWithoutPropertiesLoose2();
|
|
193
|
-
function _objectWithoutProperties7(source, excluded) {
|
|
194
|
-
if (source == null) return {};
|
|
195
|
-
var target = objectWithoutPropertiesLoose(source, excluded), key, i;
|
|
196
|
-
if (Object.getOwnPropertySymbols) {
|
|
197
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
198
|
-
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
199
|
-
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
200
|
-
}
|
|
201
|
-
return target;
|
|
202
|
-
}
|
|
203
|
-
module.exports = _objectWithoutProperties7;
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
|
|
207
|
-
// ../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/extends.js
|
|
208
|
-
var require_extends2 = __commonJS({
|
|
209
|
-
"../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/extends.js"(exports, module) {
|
|
210
|
-
function _extends6() {
|
|
211
|
-
return module.exports = _extends6 = Object.assign || function(target) {
|
|
212
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
213
|
-
var source = arguments[i];
|
|
214
|
-
for (var key in source)
|
|
215
|
-
Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]);
|
|
216
|
-
}
|
|
217
|
-
return target;
|
|
218
|
-
}, _extends6.apply(this, arguments);
|
|
219
|
-
}
|
|
220
|
-
module.exports = _extends6;
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
|
|
224
|
-
// ../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/defineProperty.js
|
|
225
|
-
var require_defineProperty2 = __commonJS({
|
|
226
|
-
"../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/defineProperty.js"(exports, module) {
|
|
227
|
-
function _defineProperty(obj, key, value) {
|
|
228
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
229
|
-
value,
|
|
230
|
-
enumerable: !0,
|
|
231
|
-
configurable: !0,
|
|
232
|
-
writable: !0
|
|
233
|
-
}) : obj[key] = value, obj;
|
|
234
|
-
}
|
|
235
|
-
module.exports = _defineProperty;
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
|
|
239
|
-
// ../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectSpread2.js
|
|
240
|
-
var require_objectSpread22 = __commonJS({
|
|
241
|
-
"../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectSpread2.js"(exports, module) {
|
|
242
|
-
var defineProperty = require_defineProperty2();
|
|
243
|
-
function ownKeys(object2, enumerableOnly) {
|
|
244
|
-
var keys = Object.keys(object2);
|
|
245
|
-
if (Object.getOwnPropertySymbols) {
|
|
246
|
-
var symbols = Object.getOwnPropertySymbols(object2);
|
|
247
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
248
|
-
return Object.getOwnPropertyDescriptor(object2, sym).enumerable;
|
|
249
|
-
})), keys.push.apply(keys, symbols);
|
|
250
|
-
}
|
|
251
|
-
return keys;
|
|
252
|
-
}
|
|
253
|
-
function _objectSpread22(target) {
|
|
254
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
255
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
256
|
-
i % 2 ? ownKeys(source, !0).forEach(function(key) {
|
|
257
|
-
defineProperty(target, key, source[key]);
|
|
258
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(source).forEach(function(key) {
|
|
259
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
return target;
|
|
263
|
-
}
|
|
264
|
-
module.exports = _objectSpread22;
|
|
265
|
-
}
|
|
266
|
-
});
|
|
267
|
-
|
|
268
|
-
// ../../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/extends.js
|
|
269
|
-
var require_extends3 = __commonJS({
|
|
270
|
-
"../../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/extends.js"(exports, module) {
|
|
271
|
-
function _extends6() {
|
|
272
|
-
return module.exports = _extends6 = Object.assign || function(target) {
|
|
273
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
274
|
-
var source = arguments[i];
|
|
275
|
-
for (var key in source)
|
|
276
|
-
Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]);
|
|
277
|
-
}
|
|
278
|
-
return target;
|
|
279
|
-
}, _extends6.apply(this, arguments);
|
|
280
|
-
}
|
|
281
|
-
module.exports = _extends6;
|
|
282
|
-
}
|
|
283
|
-
});
|
|
284
|
-
|
|
285
|
-
// ../../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
|
|
286
|
-
var require_objectWithoutPropertiesLoose3 = __commonJS({
|
|
287
|
-
"../../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports, module) {
|
|
288
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
289
|
-
if (source == null) return {};
|
|
290
|
-
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
291
|
-
for (i = 0; i < sourceKeys.length; i++)
|
|
292
|
-
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
293
|
-
return target;
|
|
294
|
-
}
|
|
295
|
-
module.exports = _objectWithoutPropertiesLoose;
|
|
296
|
-
}
|
|
297
|
-
});
|
|
298
|
-
|
|
299
|
-
// ../../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
|
300
|
-
var require_objectWithoutProperties3 = __commonJS({
|
|
301
|
-
"../../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"(exports, module) {
|
|
302
|
-
var objectWithoutPropertiesLoose = require_objectWithoutPropertiesLoose3();
|
|
303
|
-
function _objectWithoutProperties7(source, excluded) {
|
|
304
|
-
if (source == null) return {};
|
|
305
|
-
var target = objectWithoutPropertiesLoose(source, excluded), key, i;
|
|
306
|
-
if (Object.getOwnPropertySymbols) {
|
|
307
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
308
|
-
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
309
|
-
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
310
|
-
}
|
|
311
|
-
return target;
|
|
312
|
-
}
|
|
313
|
-
module.exports = _objectWithoutProperties7;
|
|
314
|
-
}
|
|
315
|
-
});
|
|
316
|
-
|
|
317
85
|
// src/shared/open-service/services/docgen/manager.tsx
|
|
318
86
|
import { addons } from "@aussieljk/forkbook/manager-api";
|
|
319
87
|
var ADDON_ID7 = "core/docgen", manager_default = addons.register(ADDON_ID7, () => {
|
|
@@ -439,7 +207,6 @@ import { color } from "@aussieljk/forkbook/theming";
|
|
|
439
207
|
// src/controls/components/ControlsPanel.tsx
|
|
440
208
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
441
209
|
import { STORY_FINISHED, STORY_PREPARED } from "@aussieljk/forkbook/internal/core-events";
|
|
442
|
-
import { global } from "@storybook/global";
|
|
443
210
|
import {
|
|
444
211
|
useArgTypes,
|
|
445
212
|
useArgs,
|
|
@@ -465,7 +232,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]
|
|
|
465
232
|
let style = document.createElement("style");
|
|
466
233
|
style.setAttribute("data-fb-css", id), style.textContent = ".fb-zEgyLq-container{z-index:1;width:100%;height:41px;position:absolute;bottom:0;overflow:hidden;container-type:size}.fb-zEgyLq-bar{--highlight-bg-color:#e0f0ff;background:var(--fb-background-bar);border-top:1px solid var(--fb-app-border-color);font-size:var(--fb-size-s2);padding-inline:4px;animation:.3s fb-zEgyLq-slideIn,2s fb-zEgyLq-highlight;@container (width<=799px){flex-direction:row;justify-content:flex-end}}:where([data-fb-theme=dark]) .fb-zEgyLq-bar{--highlight-bg-color:#153b5b}.fb-zEgyLq-info{flex:99 0 auto;align-items:center;gap:6px;margin-inline:7px 10px;display:flex}.fb-zEgyLq-actions{color:var(--fb-text-muted-color);font-size:var(--fb-size-s2);flex:1 0 0;align-items:center;gap:2px;display:flex}.fb-zEgyLq-label{@container (width<=799px){text-indent:-9999px;line-height:0;&:after{content:attr(data-short-label);line-height:initial;text-indent:0;display:block}}}.fb-zEgyLq-modalInput{&::placeholder{color:var(--fb-color-mediumdark)}&:invalid:not(:placeholder-shown){box-shadow:var(--fb-color-negative) 0 0 0 1px inset}}@keyframes fb-zEgyLq-slideIn{0%{transform:translateY(40px)}to{transform:translateY(0)}}@keyframes fb-zEgyLq-highlight{0%{background:var(--highlight-bg-color)}}", document.head.appendChild(style);
|
|
467
234
|
}
|
|
468
|
-
var SaveStory_default = {
|
|
235
|
+
var SaveStory_default = { info: "fb-zEgyLq-info", bar: "fb-zEgyLq-bar", highlight: "fb-zEgyLq-highlight", slideIn: "fb-zEgyLq-slideIn", label: "fb-zEgyLq-label", actions: "fb-zEgyLq-actions", container: "fb-zEgyLq-container", modalInput: "fb-zEgyLq-modalInput" };
|
|
469
236
|
|
|
470
237
|
// src/controls/components/SaveStory.tsx
|
|
471
238
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -582,7 +349,7 @@ function ControlsPanelTable({
|
|
|
582
349
|
presetColors,
|
|
583
350
|
disableSaveFromUI = !1
|
|
584
351
|
} = useParameter(PARAM_KEY6, {}), { path } = useStorybookState(), storyData = useStorybookApi().getCurrentStoryData(), hasControls = hasAnyControl(rows), withPresetColors = applyPresetColors(rows, presetColors), hasUpdatedArgs = useMemo(
|
|
585
|
-
() => !!args && !!initialArgs && !
|
|
352
|
+
() => !!args && !!initialArgs && !isEqual(clean(args), clean(initialArgs)),
|
|
586
353
|
[args, initialArgs]
|
|
587
354
|
), showSaveFromUI = hasControls && storyData.type === "story" && storyData.subtype !== "test" && hasUpdatedArgs && global.CONFIG_TYPE === "DEVELOPMENT" && disableSaveFromUI !== !0;
|
|
588
355
|
return jsxs2("div", { className: ControlsPanel_default.wrapper, "data-save-from-ui": showSaveFromUI || void 0, children: [
|
|
@@ -702,7 +469,7 @@ var manager_default3 = addons3.register(ADDON_ID9, (api) => {
|
|
|
702
469
|
let response = await experimental_requestResponse(channel, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, {
|
|
703
470
|
// Only send updated args
|
|
704
471
|
args: stringifyArgs(
|
|
705
|
-
Object.entries(data.args || {}).reduce((acc, [key, value]) => (
|
|
472
|
+
Object.entries(data.args || {}).reduce((acc, [key, value]) => (isEqual(value, data.initialArgs?.[key]) || (acc[key] = value), acc), {})
|
|
706
473
|
),
|
|
707
474
|
csfId: data.id,
|
|
708
475
|
importPath: data.importPath
|
|
@@ -836,24 +603,24 @@ import React11, { useCallback as useCallback22, useState as useState22 } from "r
|
|
|
836
603
|
import React15 from "react";
|
|
837
604
|
import React14 from "react";
|
|
838
605
|
import React16 from "react";
|
|
839
|
-
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty,
|
|
606
|
+
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJS = (cb, mod) => function() {
|
|
840
607
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
841
|
-
}, __export = (target,
|
|
842
|
-
for (var name in
|
|
843
|
-
__defProp(target, name, { get:
|
|
608
|
+
}, __export = (target, all) => {
|
|
609
|
+
for (var name in all)
|
|
610
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
844
611
|
}, __copyProps = (to, from, except, desc) => {
|
|
845
612
|
if (from && typeof from == "object" || typeof from == "function")
|
|
846
613
|
for (let key of __getOwnPropNames(from))
|
|
847
614
|
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
848
615
|
return to;
|
|
849
|
-
}, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target, mod)), require_is_object =
|
|
616
|
+
}, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target, mod)), require_is_object = __commonJS({
|
|
850
617
|
"node_modules/is-object/index.js"(exports, module) {
|
|
851
618
|
"use strict";
|
|
852
619
|
module.exports = function(x) {
|
|
853
620
|
return typeof x == "object" && x !== null;
|
|
854
621
|
};
|
|
855
622
|
}
|
|
856
|
-
}), require_is_window =
|
|
623
|
+
}), require_is_window = __commonJS({
|
|
857
624
|
"node_modules/is-window/index.js"(exports, module) {
|
|
858
625
|
"use strict";
|
|
859
626
|
module.exports = function(obj) {
|
|
@@ -863,11 +630,11 @@ var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDes
|
|
|
863
630
|
return o === o.window;
|
|
864
631
|
};
|
|
865
632
|
}
|
|
866
|
-
}), require_is_dom =
|
|
633
|
+
}), require_is_dom = __commonJS({
|
|
867
634
|
"node_modules/is-dom/index.js"(exports, module) {
|
|
868
|
-
var
|
|
635
|
+
var isObject = require_is_object(), isWindow = require_is_window();
|
|
869
636
|
function isNode(val) {
|
|
870
|
-
return !
|
|
637
|
+
return !isObject(val) || !isWindow(window) || typeof window.Node != "function" ? !1 : typeof val.nodeType == "number" && typeof val.nodeName == "string";
|
|
871
638
|
}
|
|
872
639
|
module.exports = isNode;
|
|
873
640
|
}
|
|
@@ -1799,7 +1566,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id3}"
|
|
|
1799
1566
|
let style = document.createElement("style");
|
|
1800
1567
|
style.setAttribute("data-fb-css", id3), style.textContent = ".fb-IaeYrG-wrapper{margin:0;padding:10px 5px 20px}.fb-IaeYrG-action{white-space:pre;border-bottom:1px solid #0000;border-left:5px solid #0000;align-items:flex-start;padding:0;transition:all .1s;display:flex}.fb-IaeYrG-counter{background-color:rgb(from var(--fb-app-border-color) r g b / calc(alpha + .5));color:var(--fb-color-inverse-text);font-size:var(--fb-size-s1);font-weight:var(--fb-weight-bold);border-radius:20px;margin:2px 0;padding:1px 5px;line-height:1}.fb-IaeYrG-inspectorContainer{flex:1;padding:0 0 0 5px}", document.head.appendChild(style);
|
|
1801
1568
|
}
|
|
1802
|
-
var ActionLogger_default = {
|
|
1569
|
+
var ActionLogger_default = { wrapper: "fb-IaeYrG-wrapper", inspectorContainer: "fb-IaeYrG-inspectorContainer", action: "fb-IaeYrG-action", counter: "fb-IaeYrG-counter" };
|
|
1803
1570
|
|
|
1804
1571
|
// src/actions/components/ActionLogger/index.tsx
|
|
1805
1572
|
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
@@ -1832,7 +1599,7 @@ var ThemedInspector = (props) => {
|
|
|
1832
1599
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
1833
1600
|
var safeDeepEqual = (a, b) => {
|
|
1834
1601
|
try {
|
|
1835
|
-
return
|
|
1602
|
+
return isEqual(a, b);
|
|
1836
1603
|
} catch {
|
|
1837
1604
|
return !1;
|
|
1838
1605
|
}
|
|
@@ -1887,7 +1654,7 @@ import { AddonPanel as AddonPanel2 } from "@aussieljk/forkbook/internal/componen
|
|
|
1887
1654
|
import { Consumer, addons as addons5, types as types3 } from "@aussieljk/forkbook/manager-api";
|
|
1888
1655
|
|
|
1889
1656
|
// src/component-testing/components/Panel.tsx
|
|
1890
|
-
import { Fragment as Fragment8, memo as memo4, useEffect as
|
|
1657
|
+
import { Fragment as Fragment8, memo as memo4, useEffect as useEffect6, useMemo as useMemo4, useRef as useRef2, useState as useState7 } from "react";
|
|
1891
1658
|
import {
|
|
1892
1659
|
FORCE_REMOUNT,
|
|
1893
1660
|
PLAY_FUNCTION_THREW_EXCEPTION,
|
|
@@ -1895,7 +1662,6 @@ import {
|
|
|
1895
1662
|
STORY_THREW_EXCEPTION,
|
|
1896
1663
|
UNHANDLED_ERRORS_WHILE_PLAYING
|
|
1897
1664
|
} from "@aussieljk/forkbook/internal/core-events";
|
|
1898
|
-
import { global as global2 } from "@storybook/global";
|
|
1899
1665
|
import {
|
|
1900
1666
|
experimental_useStatusStore,
|
|
1901
1667
|
useAddonState as useAddonState2,
|
|
@@ -1906,7 +1672,7 @@ import {
|
|
|
1906
1672
|
} from "@aussieljk/forkbook/manager-api";
|
|
1907
1673
|
|
|
1908
1674
|
// src/component-testing/components/InteractionsPanel.tsx
|
|
1909
|
-
import * as
|
|
1675
|
+
import * as React23 from "react";
|
|
1910
1676
|
|
|
1911
1677
|
// src/component-testing/utils.ts
|
|
1912
1678
|
var import_ansi_to_html = __toESM(require_ansi_to_html(), 1);
|
|
@@ -2020,583 +1786,14 @@ var Empty = () => {
|
|
|
2020
1786
|
};
|
|
2021
1787
|
|
|
2022
1788
|
// src/component-testing/components/Interaction.tsx
|
|
2023
|
-
import * as
|
|
1789
|
+
import * as React21 from "react";
|
|
2024
1790
|
import { Button as Button2 } from "@aussieljk/forkbook/internal/components";
|
|
2025
1791
|
import { CaretDownIcon, CaretUpIcon } from "@phosphor-icons/react";
|
|
2026
1792
|
|
|
2027
1793
|
// src/component-testing/components/MethodCall.tsx
|
|
2028
|
-
import
|
|
1794
|
+
import React20, { Fragment as Fragment5 } from "react";
|
|
2029
1795
|
import { logger } from "@aussieljk/forkbook/internal/client-logger";
|
|
2030
|
-
|
|
2031
|
-
// ../../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectInspector.js
|
|
2032
|
-
var import_extends5 = __toESM(require_extends()), import_objectWithoutProperties6 = __toESM(require_objectWithoutProperties());
|
|
2033
|
-
import React28, { useEffect as useEffect8, useState as useState9 } from "react";
|
|
2034
|
-
|
|
2035
|
-
// ../../node_modules/@devtools-ds/object-inspector/node_modules/clsx/dist/clsx.m.js
|
|
2036
|
-
function toVal(mix) {
|
|
2037
|
-
var k, y, str = "";
|
|
2038
|
-
if (mix)
|
|
2039
|
-
if (typeof mix == "object")
|
|
2040
|
-
if (Array.isArray(mix))
|
|
2041
|
-
for (k = 0; k < mix.length; k++)
|
|
2042
|
-
mix[k] && (y = toVal(mix[k])) && (str && (str += " "), str += y);
|
|
2043
|
-
else
|
|
2044
|
-
for (k in mix)
|
|
2045
|
-
mix[k] && (y = toVal(k)) && (str && (str += " "), str += y);
|
|
2046
|
-
else typeof mix != "boolean" && !mix.call && (str && (str += " "), str += mix);
|
|
2047
|
-
return str;
|
|
2048
|
-
}
|
|
2049
|
-
function clsx_m_default() {
|
|
2050
|
-
for (var i = 0, x, str = ""; i < arguments.length; )
|
|
2051
|
-
(x = toVal(arguments[i++])) && (str && (str += " "), str += x);
|
|
2052
|
-
return str;
|
|
2053
|
-
}
|
|
2054
|
-
|
|
2055
|
-
// ../../node_modules/@devtools-ds/object-parser/dist/esm/index.js
|
|
2056
|
-
var isArray = (val) => Array.isArray(val) || // Detect https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays
|
|
2057
|
-
ArrayBuffer.isView(val) && !(val instanceof DataView), isObject = (val) => val !== null && typeof val == "object" && !isArray(val) && !(val instanceof Date) && !(val instanceof RegExp) && !(val instanceof Error) && !(val instanceof WeakMap) && !(val instanceof WeakSet), isKnownObject = (val) => isObject(val) || isArray(val) || typeof val == "function" || val instanceof Promise, getPromiseState = (promise) => {
|
|
2058
|
-
let unique = /unique/;
|
|
2059
|
-
return Promise.race([promise, unique]).then((result) => result === unique ? ["pending"] : ["fulfilled", result], (e) => ["rejected", e]);
|
|
2060
|
-
}, buildAST = async (key, value, depth, sortKeys, isPrototype, showPrototype) => {
|
|
2061
|
-
let astNode = {
|
|
2062
|
-
key,
|
|
2063
|
-
depth,
|
|
2064
|
-
value,
|
|
2065
|
-
type: "value",
|
|
2066
|
-
parent: void 0
|
|
2067
|
-
};
|
|
2068
|
-
if (value && isKnownObject(value) && depth < 100) {
|
|
2069
|
-
let children = [], t = "object";
|
|
2070
|
-
if (isArray(value)) {
|
|
2071
|
-
for (let i = 0; i < value.length; i++)
|
|
2072
|
-
children.push(async () => {
|
|
2073
|
-
let child = await buildAST(i.toString(), value[i], depth + 1, sortKeys);
|
|
2074
|
-
return child.parent = astNode, child;
|
|
2075
|
-
});
|
|
2076
|
-
t = "array";
|
|
2077
|
-
} else {
|
|
2078
|
-
let keys = Object.getOwnPropertyNames(value);
|
|
2079
|
-
sortKeys && keys.sort();
|
|
2080
|
-
for (let i = 0; i < keys.length; i++) {
|
|
2081
|
-
let safeValue;
|
|
2082
|
-
try {
|
|
2083
|
-
safeValue = value[keys[i]];
|
|
2084
|
-
} catch {
|
|
2085
|
-
}
|
|
2086
|
-
children.push(async () => {
|
|
2087
|
-
let child = await buildAST(keys[i], safeValue, depth + 1, sortKeys);
|
|
2088
|
-
return child.parent = astNode, child;
|
|
2089
|
-
});
|
|
2090
|
-
}
|
|
2091
|
-
if (typeof value == "function" && (t = "function"), value instanceof Promise) {
|
|
2092
|
-
let [status, result] = await getPromiseState(value);
|
|
2093
|
-
children.push(async () => {
|
|
2094
|
-
let child = await buildAST("<state>", status, depth + 1, sortKeys);
|
|
2095
|
-
return child.parent = astNode, child;
|
|
2096
|
-
}), status !== "pending" && children.push(async () => {
|
|
2097
|
-
let child = await buildAST("<value>", result, depth + 1, sortKeys);
|
|
2098
|
-
return child.parent = astNode, child;
|
|
2099
|
-
}), t = "promise";
|
|
2100
|
-
}
|
|
2101
|
-
if (value instanceof Map) {
|
|
2102
|
-
let parsedEntries = Array.from(value.entries()).map((entry) => {
|
|
2103
|
-
let [entryKey, entryValue] = entry;
|
|
2104
|
-
return {
|
|
2105
|
-
"<key>": entryKey,
|
|
2106
|
-
"<value>": entryValue
|
|
2107
|
-
};
|
|
2108
|
-
});
|
|
2109
|
-
children.push(async () => {
|
|
2110
|
-
let child = await buildAST("<entries>", parsedEntries, depth + 1, sortKeys);
|
|
2111
|
-
return child.parent = astNode, child;
|
|
2112
|
-
}), children.push(async () => {
|
|
2113
|
-
let child = await buildAST("size", value.size, depth + 1, sortKeys);
|
|
2114
|
-
return child.parent = astNode, child;
|
|
2115
|
-
}), t = "map";
|
|
2116
|
-
}
|
|
2117
|
-
if (value instanceof Set) {
|
|
2118
|
-
let parsedEntries = Array.from(value.entries()).map((entry) => entry[1]);
|
|
2119
|
-
children.push(async () => {
|
|
2120
|
-
let child = await buildAST("<entries>", parsedEntries, depth + 1, sortKeys);
|
|
2121
|
-
return child.parent = astNode, child;
|
|
2122
|
-
}), children.push(async () => {
|
|
2123
|
-
let child = await buildAST("size", value.size, depth + 1, sortKeys);
|
|
2124
|
-
return child.parent = astNode, child;
|
|
2125
|
-
}), t = "set";
|
|
2126
|
-
}
|
|
2127
|
-
}
|
|
2128
|
-
value !== Object.prototype && showPrototype && children.push(async () => {
|
|
2129
|
-
let child = await buildAST("<prototype>", Object.getPrototypeOf(value), depth + 1, sortKeys, !0);
|
|
2130
|
-
return child.parent = astNode, child;
|
|
2131
|
-
}), astNode.type = t, astNode.children = children, astNode.isPrototype = isPrototype;
|
|
2132
|
-
}
|
|
2133
|
-
return astNode;
|
|
2134
|
-
}, parse = (data, sortKeys, includePrototypes) => buildAST("root", data, 0, sortKeys === !1 ? sortKeys : !0, void 0, includePrototypes === !1 ? includePrototypes : !0);
|
|
2135
|
-
|
|
2136
|
-
// ../../node_modules/@devtools-ds/themes/dist/esm/utils.js
|
|
2137
|
-
var import_objectSpread2 = __toESM(require_objectSpread2()), import_objectWithoutProperties = __toESM(require_objectWithoutProperties2());
|
|
2138
|
-
import React20 from "react";
|
|
2139
|
-
|
|
2140
|
-
// ../../node_modules/@devtools-ds/themes/node_modules/clsx/dist/clsx.m.js
|
|
2141
|
-
function toVal2(mix) {
|
|
2142
|
-
var k, y, str = "";
|
|
2143
|
-
if (mix)
|
|
2144
|
-
if (typeof mix == "object")
|
|
2145
|
-
if (Array.isArray(mix))
|
|
2146
|
-
for (k = 0; k < mix.length; k++)
|
|
2147
|
-
mix[k] && (y = toVal2(mix[k])) && (str && (str += " "), str += y);
|
|
2148
|
-
else
|
|
2149
|
-
for (k in mix)
|
|
2150
|
-
mix[k] && (y = toVal2(k)) && (str && (str += " "), str += y);
|
|
2151
|
-
else typeof mix != "boolean" && !mix.call && (str && (str += " "), str += mix);
|
|
2152
|
-
return str;
|
|
2153
|
-
}
|
|
2154
|
-
function clsx_m_default2() {
|
|
2155
|
-
for (var i = 0, x, str = ""; i < arguments.length; )
|
|
2156
|
-
(x = toVal2(arguments[i++])) && (str && (str += " "), str += x);
|
|
2157
|
-
return str;
|
|
2158
|
-
}
|
|
2159
|
-
|
|
2160
|
-
// ../../node_modules/@devtools-ds/themes/dist/esm/utils.js
|
|
2161
|
-
var _excluded = ["children"];
|
|
2162
|
-
var ThemeContext2 = React20.createContext({
|
|
2163
|
-
theme: "chrome",
|
|
2164
|
-
colorScheme: "light"
|
|
2165
|
-
});
|
|
2166
|
-
var ThemeProvider = (_ref) => {
|
|
2167
|
-
let {
|
|
2168
|
-
children
|
|
2169
|
-
} = _ref, value = (0, import_objectWithoutProperties.default)(_ref, _excluded), wrappedTheme = React20.useContext(ThemeContext2);
|
|
2170
|
-
return React20.createElement(ThemeContext2.Provider, {
|
|
2171
|
-
value: (0, import_objectSpread2.default)((0, import_objectSpread2.default)({}, wrappedTheme), value)
|
|
2172
|
-
}, children);
|
|
2173
|
-
}, useTheme3 = (props, styles = {}) => {
|
|
2174
|
-
let themeContext = React20.useContext(ThemeContext2), currentTheme = props.theme || themeContext.theme || "chrome", currentColorScheme = props.colorScheme || themeContext.colorScheme || "light", themeClass = clsx_m_default2(styles[currentTheme], styles[currentColorScheme]);
|
|
2175
|
-
return {
|
|
2176
|
-
currentColorScheme,
|
|
2177
|
-
currentTheme,
|
|
2178
|
-
themeClass
|
|
2179
|
-
};
|
|
2180
|
-
};
|
|
2181
|
-
|
|
2182
|
-
// ../../node_modules/@devtools-ds/themes/dist/esm/AutoThemeProvider.js
|
|
2183
|
-
var import_extends = __toESM(require_extends2()), import_objectWithoutProperties2 = __toESM(require_objectWithoutProperties2());
|
|
2184
|
-
import React21 from "react";
|
|
2185
|
-
|
|
2186
|
-
// ../../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectInspectorItem.js
|
|
2187
|
-
var import_objectSpread22 = __toESM(require_objectSpread22());
|
|
2188
|
-
import React27, { useEffect as useEffect7, useState as useState8 } from "react";
|
|
2189
|
-
|
|
2190
|
-
// ../../node_modules/@devtools-ds/tree/dist/esm/index.js
|
|
2191
|
-
var import_extends2 = __toESM(require_extends3()), import_objectWithoutProperties3 = __toESM(require_objectWithoutProperties3());
|
|
2192
|
-
import React24, { useState as useState6, useEffect as useEffect5 } from "react";
|
|
2193
|
-
|
|
2194
|
-
// ../../node_modules/@devtools-ds/tree/node_modules/clsx/dist/clsx.m.js
|
|
2195
|
-
function toVal3(mix) {
|
|
2196
|
-
var k, y, str = "";
|
|
2197
|
-
if (mix)
|
|
2198
|
-
if (typeof mix == "object")
|
|
2199
|
-
if (Array.isArray(mix))
|
|
2200
|
-
for (k = 0; k < mix.length; k++)
|
|
2201
|
-
mix[k] && (y = toVal3(mix[k])) && (str && (str += " "), str += y);
|
|
2202
|
-
else
|
|
2203
|
-
for (k in mix)
|
|
2204
|
-
mix[k] && (y = toVal3(k)) && (str && (str += " "), str += y);
|
|
2205
|
-
else typeof mix != "boolean" && !mix.call && (str && (str += " "), str += mix);
|
|
2206
|
-
return str;
|
|
2207
|
-
}
|
|
2208
|
-
function clsx_m_default3() {
|
|
2209
|
-
for (var i = 0, x, str = ""; i < arguments.length; )
|
|
2210
|
-
(x = toVal3(arguments[i++])) && (str && (str += " "), str += x);
|
|
2211
|
-
return str;
|
|
2212
|
-
}
|
|
2213
|
-
|
|
2214
|
-
// ../../node_modules/@devtools-ds/tree/dist/esm/TreeContext.js
|
|
2215
|
-
import React23 from "react";
|
|
2216
|
-
var TreeContext = React23.createContext({
|
|
2217
|
-
isChild: !1,
|
|
2218
|
-
depth: 0,
|
|
2219
|
-
hasHover: !0
|
|
2220
|
-
}), TreeContext_default = TreeContext;
|
|
2221
|
-
|
|
2222
|
-
// ../../node_modules/@devtools-ds/tree/dist/esm/Tree.css.js
|
|
2223
|
-
var Tree_css_default = { tree: "Tree-tree-fbbbe38", item: "Tree-item-353d6f3", group: "Tree-group-d3c3d8a", label: "Tree-label-d819155", focusWhite: "Tree-focusWhite-f1e00c2", arrow: "Tree-arrow-03ab2e7", hover: "Tree-hover-3cc4e5d", open: "Tree-open-3f1a336", dark: "Tree-dark-1b4aa00", chrome: "Tree-chrome-bcbcac6", light: "Tree-light-09174ee" };
|
|
2224
|
-
|
|
2225
|
-
// ../../node_modules/@devtools-ds/tree/dist/esm/index.js
|
|
2226
|
-
var _excluded2 = ["theme", "hover", "colorScheme", "children", "label", "className", "onUpdate", "onSelect", "open"], Tree = (props) => {
|
|
2227
|
-
let {
|
|
2228
|
-
theme: theme3,
|
|
2229
|
-
hover,
|
|
2230
|
-
colorScheme,
|
|
2231
|
-
children,
|
|
2232
|
-
label,
|
|
2233
|
-
className,
|
|
2234
|
-
onUpdate,
|
|
2235
|
-
onSelect,
|
|
2236
|
-
open
|
|
2237
|
-
} = props, html = (0, import_objectWithoutProperties3.default)(props, _excluded2), {
|
|
2238
|
-
themeClass,
|
|
2239
|
-
currentTheme
|
|
2240
|
-
} = useTheme3({
|
|
2241
|
-
theme: theme3,
|
|
2242
|
-
colorScheme
|
|
2243
|
-
}, Tree_css_default), [isOpen, setOpen] = useState6(open);
|
|
2244
|
-
useEffect5(() => {
|
|
2245
|
-
setOpen(open);
|
|
2246
|
-
}, [open]);
|
|
2247
|
-
let updateState = (value) => {
|
|
2248
|
-
setOpen(value), onUpdate && onUpdate(value);
|
|
2249
|
-
}, hasChildren = React24.Children.count(children) > 0, updateFocus = (newNode, previousNode) => {
|
|
2250
|
-
if (newNode.isSameNode(previousNode || null)) return;
|
|
2251
|
-
let focusableNode = newNode.querySelector('[tabindex="-1"]');
|
|
2252
|
-
focusableNode?.focus(), newNode.setAttribute("aria-selected", "true"), previousNode?.removeAttribute("aria-selected");
|
|
2253
|
-
}, getParent = (node, role) => {
|
|
2254
|
-
let parent = node;
|
|
2255
|
-
for (; parent && parent.parentElement; ) {
|
|
2256
|
-
if (parent.getAttribute("role") === role)
|
|
2257
|
-
return parent;
|
|
2258
|
-
parent = parent.parentElement;
|
|
2259
|
-
}
|
|
2260
|
-
return null;
|
|
2261
|
-
}, getListElements = (node) => {
|
|
2262
|
-
let tree = getParent(node, "tree");
|
|
2263
|
-
return tree ? Array.from(tree.querySelectorAll("li")) : [];
|
|
2264
|
-
}, moveBack = (node) => {
|
|
2265
|
-
let group = getParent(node, "group"), toggle = group?.previousElementSibling;
|
|
2266
|
-
if (toggle && toggle.getAttribute("tabindex") === "-1") {
|
|
2267
|
-
let toggleParent = toggle.parentElement, nodeParent = node.parentElement;
|
|
2268
|
-
updateFocus(toggleParent, nodeParent);
|
|
2269
|
-
}
|
|
2270
|
-
}, moveHome = (node, direction) => {
|
|
2271
|
-
let elements = getListElements(node);
|
|
2272
|
-
elements.forEach((element) => {
|
|
2273
|
-
element.removeAttribute("aria-selected");
|
|
2274
|
-
}), direction === "start" && elements[0] && updateFocus(elements[0]), direction === "end" && elements[elements.length - 1] && updateFocus(elements[elements.length - 1]);
|
|
2275
|
-
}, moveFocusAdjacent = (node, direction) => {
|
|
2276
|
-
let elements = getListElements(node) || [];
|
|
2277
|
-
for (let i = 0; i < elements.length; i++) {
|
|
2278
|
-
let currentNode = elements[i];
|
|
2279
|
-
if (currentNode.getAttribute("aria-selected") === "true") {
|
|
2280
|
-
direction === "up" && elements[i - 1] ? updateFocus(elements[i - 1], currentNode) : direction === "down" && elements[i + 1] && updateFocus(elements[i + 1], currentNode);
|
|
2281
|
-
return;
|
|
2282
|
-
}
|
|
2283
|
-
}
|
|
2284
|
-
updateFocus(elements[0]);
|
|
2285
|
-
}, handleKeypress = (event, isChild2) => {
|
|
2286
|
-
let node = event.target;
|
|
2287
|
-
(event.key === "Enter" || event.key === " ") && updateState(!isOpen), event.key === "ArrowRight" && isOpen && !isChild2 ? moveFocusAdjacent(node, "down") : event.key === "ArrowRight" && updateState(!0), event.key === "ArrowLeft" && (!isOpen || isChild2) ? moveBack(node) : event.key === "ArrowLeft" && updateState(!1), event.key === "ArrowDown" && moveFocusAdjacent(node, "down"), event.key === "ArrowUp" && moveFocusAdjacent(node, "up"), event.key === "Home" && moveHome(node, "start"), event.key === "End" && moveHome(node, "end");
|
|
2288
|
-
}, handleClick = (event, isChild2) => {
|
|
2289
|
-
let node = event.target, parent = getParent(node, "treeitem"), elements = getListElements(node) || [], found = !1;
|
|
2290
|
-
for (let i = 0; i < elements.length; i++) {
|
|
2291
|
-
let currentNode = elements[i];
|
|
2292
|
-
if (currentNode.getAttribute("aria-selected") === "true") {
|
|
2293
|
-
parent && (found = !0, updateFocus(parent, currentNode));
|
|
2294
|
-
break;
|
|
2295
|
-
}
|
|
2296
|
-
}
|
|
2297
|
-
!found && parent && updateFocus(parent), isChild2 || updateState(!isOpen);
|
|
2298
|
-
}, handleBlur = (event) => {
|
|
2299
|
-
let node = event.currentTarget;
|
|
2300
|
-
!node.contains(document.activeElement) && node.getAttribute("role") === "tree" && node.setAttribute("tabindex", "0");
|
|
2301
|
-
}, handleFocus = (event) => {
|
|
2302
|
-
let node = event.target;
|
|
2303
|
-
if (node.getAttribute("role") === "tree") {
|
|
2304
|
-
let selected = node.querySelector('[aria-selected="true"]');
|
|
2305
|
-
selected ? updateFocus(selected) : moveFocusAdjacent(node, "down"), node.setAttribute("tabindex", "-1");
|
|
2306
|
-
}
|
|
2307
|
-
}, handleButtonFocus = () => {
|
|
2308
|
-
onSelect?.();
|
|
2309
|
-
}, getPaddingStyles = (depth2) => {
|
|
2310
|
-
let space = depth2 * 0.9 + 0.3;
|
|
2311
|
-
return {
|
|
2312
|
-
paddingLeft: `${space}em`,
|
|
2313
|
-
width: `calc(100% - ${space}em)`
|
|
2314
|
-
};
|
|
2315
|
-
}, {
|
|
2316
|
-
isChild,
|
|
2317
|
-
depth,
|
|
2318
|
-
hasHover
|
|
2319
|
-
} = React24.useContext(TreeContext_default), showHover = hasHover ? hover : !1;
|
|
2320
|
-
if (!isChild)
|
|
2321
|
-
return React24.createElement("ul", (0, import_extends2.default)({
|
|
2322
|
-
role: "tree",
|
|
2323
|
-
tabIndex: 0,
|
|
2324
|
-
className: clsx_m_default3(Tree_css_default.tree, Tree_css_default.group, themeClass, className),
|
|
2325
|
-
onFocus: handleFocus,
|
|
2326
|
-
onBlur: handleBlur
|
|
2327
|
-
}, html), React24.createElement(TreeContext_default.Provider, {
|
|
2328
|
-
value: {
|
|
2329
|
-
isChild: !0,
|
|
2330
|
-
depth: 0,
|
|
2331
|
-
hasHover: showHover
|
|
2332
|
-
}
|
|
2333
|
-
}, React24.createElement(Tree, props)));
|
|
2334
|
-
if (!hasChildren)
|
|
2335
|
-
return React24.createElement("li", (0, import_extends2.default)({
|
|
2336
|
-
role: "treeitem",
|
|
2337
|
-
className: Tree_css_default.item
|
|
2338
|
-
}, html), React24.createElement("div", {
|
|
2339
|
-
role: "button",
|
|
2340
|
-
className: clsx_m_default3(Tree_css_default.label, {
|
|
2341
|
-
[Tree_css_default.hover]: showHover,
|
|
2342
|
-
[Tree_css_default.focusWhite]: currentTheme === "firefox"
|
|
2343
|
-
}),
|
|
2344
|
-
tabIndex: -1,
|
|
2345
|
-
style: getPaddingStyles(depth),
|
|
2346
|
-
onKeyDown: (e) => {
|
|
2347
|
-
handleKeypress(e, isChild);
|
|
2348
|
-
},
|
|
2349
|
-
onClick: (e) => handleClick(e, !0),
|
|
2350
|
-
onFocus: handleButtonFocus
|
|
2351
|
-
}, React24.createElement("span", null, label)));
|
|
2352
|
-
let arrowClass = clsx_m_default3(Tree_css_default.arrow, {
|
|
2353
|
-
[Tree_css_default.open]: isOpen
|
|
2354
|
-
});
|
|
2355
|
-
return React24.createElement("li", {
|
|
2356
|
-
role: "treeitem",
|
|
2357
|
-
"aria-expanded": isOpen,
|
|
2358
|
-
className: Tree_css_default.item
|
|
2359
|
-
}, React24.createElement("div", {
|
|
2360
|
-
role: "button",
|
|
2361
|
-
tabIndex: -1,
|
|
2362
|
-
className: clsx_m_default3(Tree_css_default.label, {
|
|
2363
|
-
[Tree_css_default.hover]: showHover,
|
|
2364
|
-
[Tree_css_default.focusWhite]: currentTheme === "firefox"
|
|
2365
|
-
}),
|
|
2366
|
-
style: getPaddingStyles(depth),
|
|
2367
|
-
onClick: (e) => handleClick(e),
|
|
2368
|
-
onKeyDown: (e) => handleKeypress(e),
|
|
2369
|
-
onFocus: handleButtonFocus
|
|
2370
|
-
}, React24.createElement("span", null, React24.createElement("span", {
|
|
2371
|
-
"aria-hidden": !0,
|
|
2372
|
-
className: arrowClass
|
|
2373
|
-
}), React24.createElement("span", null, label))), React24.createElement("ul", (0, import_extends2.default)({
|
|
2374
|
-
role: "group",
|
|
2375
|
-
className: clsx_m_default3(className, Tree_css_default.group)
|
|
2376
|
-
}, html), isOpen && React24.Children.map(children, (child) => React24.createElement(TreeContext_default.Provider, {
|
|
2377
|
-
value: {
|
|
2378
|
-
isChild: !0,
|
|
2379
|
-
depth: depth + 1,
|
|
2380
|
-
hasHover: showHover
|
|
2381
|
-
}
|
|
2382
|
-
}, child))));
|
|
2383
|
-
};
|
|
2384
|
-
Tree.defaultProps = {
|
|
2385
|
-
open: !1,
|
|
2386
|
-
hover: !0
|
|
2387
|
-
};
|
|
2388
|
-
|
|
2389
|
-
// ../../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectValue.js
|
|
2390
|
-
var import_extends3 = __toESM(require_extends()), import_objectWithoutProperties4 = __toESM(require_objectWithoutProperties());
|
|
2391
|
-
import React25, { useState as useState7, useEffect as useEffect6 } from "react";
|
|
2392
|
-
|
|
2393
|
-
// ../../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectInspector.css.js
|
|
2394
|
-
var ObjectInspector_css_default = { "object-inspector": "ObjectInspector-object-inspector-0c33e82", objectInspector: "ObjectInspector-object-inspector-0c33e82", "object-label": "ObjectInspector-object-label-b81482b", objectLabel: "ObjectInspector-object-label-b81482b", text: "ObjectInspector-text-25f57f3", key: "ObjectInspector-key-4f712bb", value: "ObjectInspector-value-f7ec2e5", string: "ObjectInspector-string-c496000", regex: "ObjectInspector-regex-59d45a3", error: "ObjectInspector-error-b818698", boolean: "ObjectInspector-boolean-2dd1642", number: "ObjectInspector-number-a6daabb", undefined: "ObjectInspector-undefined-3a68263", null: "ObjectInspector-null-74acb50", function: "ObjectInspector-function-07bbdcd", "function-decorator": "ObjectInspector-function-decorator-3d22c24", functionDecorator: "ObjectInspector-function-decorator-3d22c24", prototype: "ObjectInspector-prototype-f2449ee", dark: "ObjectInspector-dark-0c96c97", chrome: "ObjectInspector-chrome-2f3ca98", light: "ObjectInspector-light-78bef54" };
|
|
2395
|
-
|
|
2396
|
-
// ../../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectValue.js
|
|
2397
|
-
var _excluded3 = ["ast", "theme", "showKey", "colorScheme", "className"], buildValue = (key, value, valueClass, showKey, depth) => {
|
|
2398
|
-
let computedKey = key.includes("-") ? `"${key}"` : key, isRoot = depth <= 0;
|
|
2399
|
-
return React25.createElement("span", {
|
|
2400
|
-
className: ObjectInspector_css_default.text
|
|
2401
|
-
}, !isRoot && showKey && React25.createElement(React25.Fragment, null, React25.createElement("span", {
|
|
2402
|
-
className: ObjectInspector_css_default.key
|
|
2403
|
-
}, computedKey), React25.createElement("span", null, ":\xA0")), React25.createElement("span", {
|
|
2404
|
-
className: valueClass
|
|
2405
|
-
}, value));
|
|
2406
|
-
}, ObjectValue2 = (props) => {
|
|
2407
|
-
let {
|
|
2408
|
-
ast,
|
|
2409
|
-
theme: theme3,
|
|
2410
|
-
showKey,
|
|
2411
|
-
colorScheme,
|
|
2412
|
-
className
|
|
2413
|
-
} = props, html = (0, import_objectWithoutProperties4.default)(props, _excluded3), {
|
|
2414
|
-
themeClass
|
|
2415
|
-
} = useTheme3({
|
|
2416
|
-
theme: theme3,
|
|
2417
|
-
colorScheme
|
|
2418
|
-
}, ObjectInspector_css_default), [asyncValue, setAsyncValue] = useState7(React25.createElement("span", null)), value = React25.createElement("span", null);
|
|
2419
|
-
return useEffect6(() => {
|
|
2420
|
-
ast.value instanceof Promise && (async (promise) => {
|
|
2421
|
-
setAsyncValue(buildValue(ast.key, `Promise { "${await getPromiseState(promise)}" }`, ObjectInspector_css_default.key, showKey, ast.depth));
|
|
2422
|
-
})(ast.value);
|
|
2423
|
-
}, [ast, showKey]), typeof ast.value == "number" || typeof ast.value == "bigint" ? value = buildValue(ast.key, String(ast.value), ObjectInspector_css_default.number, showKey, ast.depth) : typeof ast.value == "boolean" ? value = buildValue(ast.key, String(ast.value), ObjectInspector_css_default.boolean, showKey, ast.depth) : typeof ast.value == "string" ? value = buildValue(ast.key, `"${ast.value}"`, ObjectInspector_css_default.string, showKey, ast.depth) : typeof ast.value > "u" ? value = buildValue(ast.key, "undefined", ObjectInspector_css_default.undefined, showKey, ast.depth) : typeof ast.value == "symbol" ? value = buildValue(ast.key, ast.value.toString(), ObjectInspector_css_default.string, showKey, ast.depth) : typeof ast.value == "function" ? value = buildValue(ast.key, `${ast.value.name}()`, ObjectInspector_css_default.key, showKey, ast.depth) : typeof ast.value == "object" && (ast.value === null ? value = buildValue(ast.key, "null", ObjectInspector_css_default.null, showKey, ast.depth) : Array.isArray(ast.value) ? value = buildValue(ast.key, `Array(${ast.value.length})`, ObjectInspector_css_default.key, showKey, ast.depth) : ast.value instanceof Date ? value = buildValue(ast.key, `Date ${ast.value.toString()}`, ObjectInspector_css_default.value, showKey, ast.depth) : ast.value instanceof RegExp ? value = buildValue(ast.key, ast.value.toString(), ObjectInspector_css_default.regex, showKey, ast.depth) : ast.value instanceof Error ? value = buildValue(ast.key, ast.value.toString(), ObjectInspector_css_default.error, showKey, ast.depth) : isObject(ast.value) ? value = buildValue(ast.key, "{\u2026}", ObjectInspector_css_default.key, showKey, ast.depth) : value = buildValue(ast.key, ast.value.constructor.name, ObjectInspector_css_default.key, showKey, ast.depth)), React25.createElement("span", (0, import_extends3.default)({
|
|
2424
|
-
className: clsx_m_default(themeClass, className)
|
|
2425
|
-
}, html), asyncValue, value);
|
|
2426
|
-
};
|
|
2427
|
-
ObjectValue2.defaultProps = {
|
|
2428
|
-
showKey: !0
|
|
2429
|
-
};
|
|
2430
|
-
var ObjectValue_default = ObjectValue2;
|
|
2431
|
-
|
|
2432
|
-
// ../../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectLabel.js
|
|
2433
|
-
var import_extends4 = __toESM(require_extends()), import_objectWithoutProperties5 = __toESM(require_objectWithoutProperties());
|
|
2434
|
-
import React26 from "react";
|
|
2435
|
-
var _excluded4 = ["ast", "theme", "previewMax", "open", "colorScheme", "className"], buildPreview = (children, previewMax, showKey) => {
|
|
2436
|
-
let previews = [];
|
|
2437
|
-
for (let i = 0; i < children.length; i++) {
|
|
2438
|
-
let child = children[i];
|
|
2439
|
-
if (child.isPrototype || (previews.push(React26.createElement(ObjectValue_default, {
|
|
2440
|
-
key: child.key,
|
|
2441
|
-
ast: child,
|
|
2442
|
-
showKey
|
|
2443
|
-
})), i < children.length - 1 ? previews.push(", ") : previews.push(" ")), child.isPrototype && i === children.length - 1 && (previews.pop(), previews.push(" ")), i === previewMax - 1 && children.length > previewMax) {
|
|
2444
|
-
previews.push("\u2026 ");
|
|
2445
|
-
break;
|
|
2446
|
-
}
|
|
2447
|
-
}
|
|
2448
|
-
return previews;
|
|
2449
|
-
}, getArrayLabel = (ast, open, previewMax, theme3) => {
|
|
2450
|
-
let l = ast.value.length;
|
|
2451
|
-
return open ? React26.createElement("span", null, "Array(", l, ")") : React26.createElement(React26.Fragment, null, React26.createElement("span", null, `${theme3 === "firefox" ? "Array" : ""}(${l}) [ `), buildPreview(ast.children, previewMax, !1), React26.createElement("span", null, "]"));
|
|
2452
|
-
}, getObjectLabel = (ast, open, previewMax, theme3) => ast.isPrototype ? React26.createElement("span", null, `Object ${theme3 === "firefox" ? "{ \u2026 }" : ""}`) : open ? React26.createElement("span", null, "{\u2026}") : React26.createElement(React26.Fragment, null, React26.createElement("span", null, `${theme3 === "firefox" ? "Object " : ""}{ `), buildPreview(ast.children, previewMax, !0), React26.createElement("span", null, "}")), getPromiseLabel = (ast, open, previewMax) => open ? React26.createElement("span", null, `Promise { "${String(ast.children[0].value)}" }`) : React26.createElement(React26.Fragment, null, React26.createElement("span", null, "Promise { "), buildPreview(ast.children, previewMax, !0), React26.createElement("span", null, "}")), getMapLabel = (ast, open, previewMax, theme3) => {
|
|
2453
|
-
let {
|
|
2454
|
-
size
|
|
2455
|
-
} = ast.value;
|
|
2456
|
-
return open ? React26.createElement("span", null, `Map(${size})`) : React26.createElement(React26.Fragment, null, React26.createElement("span", null, `Map${theme3 === "chrome" ? `(${size})` : ""} { `), buildPreview(ast.children, previewMax, !0), React26.createElement("span", null, "}"));
|
|
2457
|
-
}, getSetLabel = (ast, open, previewMax) => {
|
|
2458
|
-
let {
|
|
2459
|
-
size
|
|
2460
|
-
} = ast.value;
|
|
2461
|
-
return open ? React26.createElement("span", null, "Set(", size, ")") : React26.createElement(React26.Fragment, null, React26.createElement("span", null, `Set(${ast.value.size}) {`), buildPreview(ast.children, previewMax, !0), React26.createElement("span", null, "}"));
|
|
2462
|
-
}, ObjectLabel2 = (props) => {
|
|
2463
|
-
let {
|
|
2464
|
-
ast,
|
|
2465
|
-
theme: theme3,
|
|
2466
|
-
previewMax,
|
|
2467
|
-
open,
|
|
2468
|
-
colorScheme,
|
|
2469
|
-
className
|
|
2470
|
-
} = props, html = (0, import_objectWithoutProperties5.default)(props, _excluded4), {
|
|
2471
|
-
themeClass,
|
|
2472
|
-
currentTheme
|
|
2473
|
-
} = useTheme3({
|
|
2474
|
-
theme: theme3,
|
|
2475
|
-
colorScheme
|
|
2476
|
-
}, ObjectInspector_css_default), isPrototype = ast.isPrototype || !1, classes = clsx_m_default(ObjectInspector_css_default.objectLabel, themeClass, className, {
|
|
2477
|
-
[ObjectInspector_css_default.prototype]: isPrototype
|
|
2478
|
-
}), isRoot = ast.depth <= 0, Key = () => React26.createElement("span", {
|
|
2479
|
-
className: isPrototype ? ObjectInspector_css_default.prototype : ObjectInspector_css_default.key
|
|
2480
|
-
}, isRoot ? "" : `${ast.key}: `);
|
|
2481
|
-
return ast.type === "array" ? React26.createElement("span", (0, import_extends4.default)({
|
|
2482
|
-
className: classes
|
|
2483
|
-
}, html), React26.createElement(Key, null), getArrayLabel(ast, open, previewMax, currentTheme)) : ast.type === "function" ? React26.createElement("span", (0, import_extends4.default)({
|
|
2484
|
-
className: classes
|
|
2485
|
-
}, html), React26.createElement(Key, null), currentTheme === "chrome" && React26.createElement("span", {
|
|
2486
|
-
className: ObjectInspector_css_default.functionDecorator
|
|
2487
|
-
}, "\u0192 "), React26.createElement("span", {
|
|
2488
|
-
className: clsx_m_default({
|
|
2489
|
-
[ObjectInspector_css_default.function]: !isPrototype
|
|
2490
|
-
})
|
|
2491
|
-
}, `${ast.value.name}()`)) : ast.type === "promise" ? React26.createElement("span", (0, import_extends4.default)({
|
|
2492
|
-
className: classes
|
|
2493
|
-
}, html), React26.createElement(Key, null), getPromiseLabel(ast, open, previewMax)) : ast.type === "map" ? React26.createElement("span", (0, import_extends4.default)({
|
|
2494
|
-
className: classes
|
|
2495
|
-
}, html), React26.createElement(Key, null), getMapLabel(ast, open, previewMax, currentTheme)) : ast.type === "set" ? React26.createElement("span", (0, import_extends4.default)({
|
|
2496
|
-
className: classes
|
|
2497
|
-
}, html), React26.createElement(Key, null), getSetLabel(ast, open, previewMax)) : React26.createElement("span", (0, import_extends4.default)({
|
|
2498
|
-
className: classes
|
|
2499
|
-
}, html), React26.createElement(Key, null), getObjectLabel(ast, open, previewMax, currentTheme));
|
|
2500
|
-
};
|
|
2501
|
-
ObjectLabel2.defaultProps = {
|
|
2502
|
-
previewMax: 8,
|
|
2503
|
-
open: !1
|
|
2504
|
-
};
|
|
2505
|
-
var ObjectLabel_default = ObjectLabel2;
|
|
2506
|
-
|
|
2507
|
-
// ../../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectInspectorItem.js
|
|
2508
|
-
var ObjectInspectorItem = (props) => {
|
|
2509
|
-
let {
|
|
2510
|
-
ast,
|
|
2511
|
-
expandLevel,
|
|
2512
|
-
depth
|
|
2513
|
-
} = props, [resolved, setResolved] = useState8(), [open, setOpen] = useState8(depth < expandLevel);
|
|
2514
|
-
return useEffect7(() => {
|
|
2515
|
-
(async () => {
|
|
2516
|
-
if (ast.type !== "value") {
|
|
2517
|
-
let promises = ast.children.map((f) => f()), children = await Promise.all(promises), r = (0, import_objectSpread22.default)((0, import_objectSpread22.default)({}, ast), {}, {
|
|
2518
|
-
children
|
|
2519
|
-
});
|
|
2520
|
-
setResolved(r);
|
|
2521
|
-
}
|
|
2522
|
-
})();
|
|
2523
|
-
}, [ast]), resolved ? React27.createElement(Tree, {
|
|
2524
|
-
hover: !1,
|
|
2525
|
-
open,
|
|
2526
|
-
label: React27.createElement(ObjectLabel_default, {
|
|
2527
|
-
open,
|
|
2528
|
-
ast: resolved
|
|
2529
|
-
}),
|
|
2530
|
-
onSelect: () => {
|
|
2531
|
-
var _props$onSelect;
|
|
2532
|
-
(_props$onSelect = props.onSelect) === null || _props$onSelect === void 0 || _props$onSelect.call(props, ast);
|
|
2533
|
-
},
|
|
2534
|
-
onUpdate: (value) => {
|
|
2535
|
-
setOpen(value);
|
|
2536
|
-
}
|
|
2537
|
-
}, resolved.children.map((child) => React27.createElement(ObjectInspectorItem, {
|
|
2538
|
-
key: child.key,
|
|
2539
|
-
ast: child,
|
|
2540
|
-
depth: depth + 1,
|
|
2541
|
-
expandLevel,
|
|
2542
|
-
onSelect: props.onSelect
|
|
2543
|
-
}))) : React27.createElement(Tree, {
|
|
2544
|
-
hover: !1,
|
|
2545
|
-
label: React27.createElement(ObjectValue_default, {
|
|
2546
|
-
ast
|
|
2547
|
-
}),
|
|
2548
|
-
onSelect: () => {
|
|
2549
|
-
var _props$onSelect2;
|
|
2550
|
-
(_props$onSelect2 = props.onSelect) === null || _props$onSelect2 === void 0 || _props$onSelect2.call(props, ast);
|
|
2551
|
-
}
|
|
2552
|
-
});
|
|
2553
|
-
};
|
|
2554
|
-
ObjectInspectorItem.defaultProps = {
|
|
2555
|
-
expandLevel: 0,
|
|
2556
|
-
depth: 0
|
|
2557
|
-
};
|
|
2558
|
-
var ObjectInspectorItem_default = ObjectInspectorItem;
|
|
2559
|
-
|
|
2560
|
-
// ../../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectInspector.js
|
|
2561
|
-
var _excluded5 = ["data", "expandLevel", "sortKeys", "includePrototypes", "className", "theme", "colorScheme", "onSelect"], ObjectInspector2 = (props) => {
|
|
2562
|
-
let {
|
|
2563
|
-
data,
|
|
2564
|
-
expandLevel,
|
|
2565
|
-
sortKeys,
|
|
2566
|
-
includePrototypes,
|
|
2567
|
-
className,
|
|
2568
|
-
theme: theme3,
|
|
2569
|
-
colorScheme,
|
|
2570
|
-
onSelect
|
|
2571
|
-
} = props, html = (0, import_objectWithoutProperties6.default)(props, _excluded5), [ast, setAST] = useState9(void 0), {
|
|
2572
|
-
themeClass,
|
|
2573
|
-
currentTheme,
|
|
2574
|
-
currentColorScheme
|
|
2575
|
-
} = useTheme3({
|
|
2576
|
-
theme: theme3,
|
|
2577
|
-
colorScheme
|
|
2578
|
-
}, ObjectInspector_css_default);
|
|
2579
|
-
return useEffect8(() => {
|
|
2580
|
-
(async () => setAST(await parse(data, sortKeys, includePrototypes)))();
|
|
2581
|
-
}, [data, sortKeys, includePrototypes]), React28.createElement("div", (0, import_extends5.default)({
|
|
2582
|
-
className: clsx_m_default(ObjectInspector_css_default.objectInspector, className, themeClass)
|
|
2583
|
-
}, html), ast && React28.createElement(ThemeProvider, {
|
|
2584
|
-
theme: currentTheme,
|
|
2585
|
-
colorScheme: currentColorScheme
|
|
2586
|
-
}, React28.createElement(ObjectInspectorItem_default, {
|
|
2587
|
-
ast,
|
|
2588
|
-
expandLevel,
|
|
2589
|
-
onSelect
|
|
2590
|
-
})));
|
|
2591
|
-
};
|
|
2592
|
-
ObjectInspector2.defaultProps = {
|
|
2593
|
-
expandLevel: 0,
|
|
2594
|
-
sortKeys: !0,
|
|
2595
|
-
includePrototypes: !0
|
|
2596
|
-
};
|
|
2597
|
-
|
|
2598
|
-
// src/component-testing/components/MethodCall.tsx
|
|
2599
|
-
import { useTheme as useTheme4 } from "@aussieljk/forkbook/theming";
|
|
1796
|
+
import { useTheme as useTheme3 } from "@aussieljk/forkbook/theming";
|
|
2600
1797
|
import { Fragment as Fragment6, jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2601
1798
|
var colorsLight = {
|
|
2602
1799
|
base: "#444",
|
|
@@ -2649,7 +1846,7 @@ var colorsLight = {
|
|
|
2649
1846
|
meta: "#FAD483",
|
|
2650
1847
|
method: "#5EC1FF"
|
|
2651
1848
|
}, useThemeColors = () => {
|
|
2652
|
-
let { base } =
|
|
1849
|
+
let { base } = useTheme3();
|
|
2653
1850
|
return base === "dark" ? colorsDark : colorsLight;
|
|
2654
1851
|
}, special = /[^A-Z0-9]/i, trimEnd = /[\s.,…]+$/gm, ellipsize = (string2, maxlength) => {
|
|
2655
1852
|
if (string2.length <= maxlength)
|
|
@@ -2665,7 +1862,7 @@ var colorsLight = {
|
|
|
2665
1862
|
return String(value);
|
|
2666
1863
|
}
|
|
2667
1864
|
}, interleave = (nodes, separator) => nodes.flatMap(
|
|
2668
|
-
(node, index) => index === nodes.length - 1 ? [node] : [node,
|
|
1865
|
+
(node, index) => index === nodes.length - 1 ? [node] : [node, React20.cloneElement(separator, { key: `sep${index}` })]
|
|
2669
1866
|
), Node2 = ({
|
|
2670
1867
|
value,
|
|
2671
1868
|
nested,
|
|
@@ -2756,17 +1953,16 @@ var colorsLight = {
|
|
|
2756
1953
|
callsById,
|
|
2757
1954
|
nested = !1
|
|
2758
1955
|
}) => {
|
|
2759
|
-
let
|
|
1956
|
+
let { base, addonActionsTheme } = useTheme3(), isDarkMode = base === "dark", colors = useThemeColors();
|
|
2760
1957
|
if (showInspector)
|
|
2761
|
-
return jsx11(Fragment6, { children: jsx11(
|
|
2762
|
-
|
|
1958
|
+
return jsx11(Fragment6, { children: jsx11("span", { id: "interactions-object-inspector", children: jsx11(
|
|
1959
|
+
themedObjectInspector,
|
|
2763
1960
|
{
|
|
2764
|
-
id: "interactions-object-inspector",
|
|
2765
1961
|
data: value,
|
|
2766
|
-
|
|
2767
|
-
|
|
1962
|
+
showNonenumerable: !1,
|
|
1963
|
+
theme: addonActionsTheme ?? (isDarkMode ? "chromeDark" : "chromeLight")
|
|
2768
1964
|
}
|
|
2769
|
-
) });
|
|
1965
|
+
) }) });
|
|
2770
1966
|
if (nested)
|
|
2771
1967
|
return jsx11("span", { style: { color: colors.base }, children: "{\u2026}" });
|
|
2772
1968
|
let nodelist = interleave(
|
|
@@ -2867,7 +2063,7 @@ var colorsLight = {
|
|
|
2867
2063
|
let colors = useThemeColors();
|
|
2868
2064
|
return jsx11("span", { style: { color: colors.meta }, children: stringify(value) });
|
|
2869
2065
|
}, StepNode = ({ label }) => {
|
|
2870
|
-
let colors = useThemeColors(), { typography } =
|
|
2066
|
+
let colors = useThemeColors(), { typography } = useTheme3();
|
|
2871
2067
|
return jsx11(
|
|
2872
2068
|
"span",
|
|
2873
2069
|
{
|
|
@@ -2917,7 +2113,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id6}"
|
|
|
2917
2113
|
let style = document.createElement("style");
|
|
2918
2114
|
style.setAttribute("data-fb-css", id6), style.textContent = ".fb-cs81pG-expected{color:var(--fb-color-positive-text)}.fb-cs81pG-received{color:var(--fb-color-negative-text)}:where([data-fb-theme=dark]){& .fb-cs81pG-expected{color:var(--fb-color-positive)}& .fb-cs81pG-received{color:var(--fb-color-negative)}}", document.head.appendChild(style);
|
|
2919
2115
|
}
|
|
2920
|
-
var MatcherResult_default = {
|
|
2116
|
+
var MatcherResult_default = { received: "fb-cs81pG-received", expected: "fb-cs81pG-expected" };
|
|
2921
2117
|
|
|
2922
2118
|
// src/component-testing/components/MatcherResult.tsx
|
|
2923
2119
|
import { Fragment as Fragment7, jsx as jsx12 } from "react/jsx-runtime";
|
|
@@ -3007,10 +2203,10 @@ var getParams = (line, fromIndex = 0) => {
|
|
|
3007
2203
|
|
|
3008
2204
|
// src/component-testing/components/StatusIcon.tsx
|
|
3009
2205
|
import { CheckIcon as CheckIcon2, CircleIcon, PlayIcon, StopCircleIcon } from "@phosphor-icons/react";
|
|
3010
|
-
import { useTheme as
|
|
2206
|
+
import { useTheme as useTheme4 } from "@aussieljk/forkbook/theming";
|
|
3011
2207
|
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
3012
2208
|
var StatusIcon = ({ status }) => {
|
|
3013
|
-
let theme3 =
|
|
2209
|
+
let theme3 = useTheme4();
|
|
3014
2210
|
switch (status) {
|
|
3015
2211
|
case "done" /* DONE */:
|
|
3016
2212
|
return jsx13(CheckIcon2, { color: theme3.color.positive, "data-testid": "icon-done" });
|
|
@@ -3044,7 +2240,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id7}"
|
|
|
3044
2240
|
let style = document.createElement("style");
|
|
3045
2241
|
style.setAttribute("data-fb-css", id7), style.textContent = '.fb-PYwdvq-methodCall{font-family:var(--fb-font-mono);font-size:var(--fb-size-s1);overflow-wrap:break-word;inline-size:calc(100% - 40px)}.fb-PYwdvq-row{border-bottom:1px solid var(--fb-app-border-color);font-family:var(--fb-font-base);flex-direction:column;font-size:13px;list-style:none;display:flex;position:relative;&[data-status=error]{background-color:var(--fb-background-warning)}&[data-paused]:before{content:"";z-index:1;border-top:4.5px solid #0000;border-left:7px solid var(--fb-color-warning);border-bottom:4.5px solid #0000;position:absolute;top:-5px}&[data-paused]:after{content:"";z-index:1;border-top:1.5px solid var(--fb-color-warning);width:100%;position:absolute;top:-1px}}:where([data-fb-theme=dark]) .fb-PYwdvq-row[data-status=error]{background-color:rgb(from var(--fb-color-negative) r g b / calc(alpha - .93))}.fb-PYwdvq-rowHeader{display:flex;&:not([data-navigation-disabled]):hover{background:var(--fb-background-hoverable)}}.fb-PYwdvq-rowLabel{text-align:start;cursor:pointer;background:0 0;border:0;flex:1;grid-template-columns:15px 1fr;align-items:center;min-height:40px;margin:0;padding:8px 15px;display:grid;&:disabled,&[data-status=error]{cursor:default}&:focus-visible{box-shadow:inset 3px 0 0 0 var(--fb-color-secondary);background:var(--fb-background-hoverable);outline:0}&[data-status=error]:focus-visible{box-shadow:inset 3px 0 0 0 var(--fb-color-warning);background:0 0}&[data-status=waiting]>div{opacity:.5}}.fb-PYwdvq-rowActions{align-items:center;padding:6px;display:flex}.fb-PYwdvq-button{color:var(--fb-text-muted-color);margin:0 3px}.fb-PYwdvq-rowMessage{font-size:var(--fb-size-s1);color:var(--fb-color-default-text);padding:8px 10px 8px 36px;& pre{margin:0;padding:0}}.fb-PYwdvq-errorName{color:#0271b6}.fb-PYwdvq-errorMessage{color:#444}.fb-PYwdvq-errorExplainer{color:var(--fb-color-negative-text);font-size:var(--fb-size-s2);text-wrap:balance;max-width:500px}:where([data-fb-theme=dark]){& .fb-PYwdvq-errorName{color:#5ec1ff}& .fb-PYwdvq-errorMessage{color:#eee}& .fb-PYwdvq-errorExplainer{color:var(--fb-color-negative)}}', document.head.appendChild(style);
|
|
3046
2242
|
}
|
|
3047
|
-
var Interaction_default = {
|
|
2243
|
+
var Interaction_default = { errorExplainer: "fb-PYwdvq-errorExplainer", row: "fb-PYwdvq-row", rowLabel: "fb-PYwdvq-rowLabel", errorMessage: "fb-PYwdvq-errorMessage", rowActions: "fb-PYwdvq-rowActions", button: "fb-PYwdvq-button", errorName: "fb-PYwdvq-errorName", rowHeader: "fb-PYwdvq-rowHeader", rowMessage: "fb-PYwdvq-rowMessage", methodCall: "fb-PYwdvq-methodCall" };
|
|
3048
2244
|
|
|
3049
2245
|
// src/component-testing/components/Interaction.tsx
|
|
3050
2246
|
import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
@@ -3116,7 +2312,7 @@ ${exception.diff}` : ""}`,
|
|
|
3116
2312
|
toggleCollapsed,
|
|
3117
2313
|
pausedAt
|
|
3118
2314
|
}) => {
|
|
3119
|
-
let [isHovered, setIsHovered] =
|
|
2315
|
+
let [isHovered, setIsHovered] = React21.useState(!1), isNavigationDisabled = !controlStates.goto || !call.interceptable || !!call.ancestors?.length, stepName = extractStepName(call), interactionStatus = getInteractionStatusText(call);
|
|
3120
2316
|
return isHidden || call.id === INTERNAL_RENDER_CALL_ID ? null : jsxs10(
|
|
3121
2317
|
"li",
|
|
3122
2318
|
{
|
|
@@ -3218,7 +2414,7 @@ import {
|
|
|
3218
2414
|
SkipBackIcon,
|
|
3219
2415
|
SkipForwardIcon
|
|
3220
2416
|
} from "@phosphor-icons/react";
|
|
3221
|
-
import { useTheme as
|
|
2417
|
+
import { useTheme as useTheme5 } from "@aussieljk/forkbook/theming";
|
|
3222
2418
|
|
|
3223
2419
|
// src/component-testing/components/StatusBadge.tsx
|
|
3224
2420
|
import { TooltipNote, WithTooltip } from "@aussieljk/forkbook/internal/components";
|
|
@@ -3279,7 +2475,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id10}
|
|
|
3279
2475
|
let style = document.createElement("style");
|
|
3280
2476
|
style.setAttribute("data-fb-css", id10), style.textContent = ".fb-W9rv1G-wrapper{box-shadow:var(--fb-app-border-color) 0 -1px 0 0 inset;background:var(--fb-background-app);z-index:1;position:sticky;top:0}.fb-W9rv1G-controlsGroup{flex:1;align-items:center;gap:6px;display:flex}.fb-W9rv1G-iconButton{color:var(--fb-text-muted-color)}.fb-W9rv1G-rewindButton{margin-inline-start:3px;}.fb-W9rv1G-jumpToEndButton{color:var(--fb-text-muted-color);border-radius:4px;margin-inline:3px;padding:6px;line-height:12px;&:not(:disabled):hover,&:not(:disabled):focus-visible{color:var(--fb-color-secondary)}}.fb-W9rv1G-openInEditorButton{color:var(--fb-color-secondary);font-weight:var(--fb-weight-bold);text-align:right;white-space:nowrap;justify-content:flex-end;font-size:13px;line-height:24px}.fb-W9rv1G-location{color:var(--fb-text-muted-color);cursor:default;font-weight:var(--fb-weight-regular);text-align:right;white-space:nowrap;justify-content:flex-end;margin:0;font-size:13px}", document.head.appendChild(style);
|
|
3281
2477
|
}
|
|
3282
|
-
var Toolbar_default = {
|
|
2478
|
+
var Toolbar_default = { wrapper: "fb-W9rv1G-wrapper", rewindButton: "fb-W9rv1G-rewindButton fb-W9rv1G-iconButton", location: "fb-W9rv1G-location", controlsGroup: "fb-W9rv1G-controlsGroup", jumpToEndButton: "fb-W9rv1G-jumpToEndButton", openInEditorButton: "fb-W9rv1G-openInEditorButton", iconButton: "fb-W9rv1G-iconButton" };
|
|
3283
2479
|
|
|
3284
2480
|
// src/component-testing/components/Toolbar.tsx
|
|
3285
2481
|
import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
@@ -3293,7 +2489,7 @@ var Toolbar = ({
|
|
|
3293
2489
|
canOpenInEditor,
|
|
3294
2490
|
api
|
|
3295
2491
|
}) => {
|
|
3296
|
-
let buttonText = status === "errored" ? "Scroll to error" : "Scroll to end", theme3 =
|
|
2492
|
+
let buttonText = status === "errored" ? "Scroll to error" : "Scroll to end", theme3 = useTheme5(), preventFocusLoss = (e) => e.preventDefault();
|
|
3297
2493
|
return jsx17("div", { className: Toolbar_default.wrapper, children: jsxs12(
|
|
3298
2494
|
SharedToolbar,
|
|
3299
2495
|
{
|
|
@@ -3407,7 +2603,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id11}
|
|
|
3407
2603
|
let style = document.createElement("style");
|
|
3408
2604
|
style.setAttribute("data-fb-css", id11), style.textContent = ".fb-RpIDLa-container{background:var(--fb-background-content);height:100%}.fb-RpIDLa-section{position:relative}.fb-RpIDLa-heading{white-space:nowrap;clip:rect(0, 0, 0, 0);clip-path:inset(50%);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fb-RpIDLa-list{margin:0;padding:0}.fb-RpIDLa-caughtException{border-bottom:1px solid var(--fb-app-border-color);background-color:var(--fb-background-warning);font-size:calc(var(--fb-size-s2) - 1px);padding:15px;line-height:19px}:where([data-fb-theme=dark]) .fb-RpIDLa-caughtException{background-color:rgb(from var(--fb-color-negative) r g b / calc(alpha - .93))}.fb-RpIDLa-caughtExceptionCode{font-size:calc(var(--fb-size-s1) - 1px);vertical-align:top;border:1px solid var(--fb-app-border-color);background:#0000000d;border-radius:3px;margin:0 1px;padding:3px;line-height:1}.fb-RpIDLa-caughtExceptionTitle{padding-bottom:4px;font-weight:700}.fb-RpIDLa-caughtExceptionDescription{margin:0;padding:0 0 20px}.fb-RpIDLa-caughtExceptionStack{font-size:calc(var(--fb-size-s1) - 1px);margin:0;padding:0;&:not(:last-child){padding-bottom:16px}}", document.head.appendChild(style);
|
|
3409
2605
|
}
|
|
3410
|
-
var InteractionsPanel_default = {
|
|
2606
|
+
var InteractionsPanel_default = { caughtExceptionTitle: "fb-RpIDLa-caughtExceptionTitle", container: "fb-RpIDLa-container", list: "fb-RpIDLa-list", caughtException: "fb-RpIDLa-caughtException", caughtExceptionStack: "fb-RpIDLa-caughtExceptionStack", caughtExceptionDescription: "fb-RpIDLa-caughtExceptionDescription", caughtExceptionCode: "fb-RpIDLa-caughtExceptionCode", section: "fb-RpIDLa-section", heading: "fb-RpIDLa-heading" };
|
|
3411
2607
|
|
|
3412
2608
|
// src/component-testing/components/InteractionsPanel.tsx
|
|
3413
2609
|
import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
@@ -3417,7 +2613,7 @@ var StatusAnnouncementMapping = {
|
|
|
3417
2613
|
completed: "Component test completed successfully.",
|
|
3418
2614
|
errored: "Component test failed.",
|
|
3419
2615
|
aborted: "Component test was aborted."
|
|
3420
|
-
}, getStatusAnnouncement = (status, hasException) => status === "completed" && hasException ? StatusAnnouncementMapping.errored : StatusAnnouncementMapping[status], InteractionsPanel =
|
|
2616
|
+
}, getStatusAnnouncement = (status, hasException) => status === "completed" && hasException ? StatusAnnouncementMapping.errored : StatusAnnouncementMapping[status], InteractionsPanel = React23.memo(
|
|
3421
2617
|
function({
|
|
3422
2618
|
storyUrl,
|
|
3423
2619
|
status,
|
|
@@ -3439,7 +2635,7 @@ var StatusAnnouncementMapping = {
|
|
|
3439
2635
|
api
|
|
3440
2636
|
}) {
|
|
3441
2637
|
let filter = useAnsiToHtmlFilter(), hasRealInteractions = interactions.some((i) => i.id !== INTERNAL_RENDER_CALL_ID), isListBusy = status === "rendering" || status === "playing", statusAnnouncement = getStatusAnnouncement(status, hasException), isStatusAlert = status === "errored" || status === "completed" && hasException;
|
|
3442
|
-
return
|
|
2638
|
+
return React23.useEffect(() => {
|
|
3443
2639
|
announce(statusAnnouncement, isStatusAlert ? "assertive" : "polite");
|
|
3444
2640
|
}, [statusAnnouncement, isStatusAlert]), jsxs13("div", { className: InteractionsPanel_default.container, children: [
|
|
3445
2641
|
hasResultMismatch && jsx18(TestDiscrepancyMessage, { browserTestStatus }),
|
|
@@ -3606,7 +2802,7 @@ var INITIAL_CONTROL_STATES = {
|
|
|
3606
2802
|
statusValue: storyStatus?.value,
|
|
3607
2803
|
testRunId: storyStatus?.data?.testRunId
|
|
3608
2804
|
};
|
|
3609
|
-
}), state = useStorybookState2(), api = useStorybookApi6(), importPath = api.getData(state.storyId, state.refId)?.importPath, canOpenInEditor =
|
|
2805
|
+
}), state = useStorybookState2(), api = useStorybookApi6(), importPath = api.getData(state.storyId, state.refId)?.importPath, canOpenInEditor = global.CONFIG_TYPE === "DEVELOPMENT" && !state.refId, [panelState, set] = useAddonState2(ADDON_ID6, {
|
|
3610
2806
|
status: "rendering",
|
|
3611
2807
|
controlStates: INITIAL_CONTROL_STATES,
|
|
3612
2808
|
interactions: [],
|
|
@@ -3615,7 +2811,7 @@ var INITIAL_CONTROL_STATES = {
|
|
|
3615
2811
|
pausedAt: void 0,
|
|
3616
2812
|
caughtException: void 0,
|
|
3617
2813
|
unhandledErrors: void 0
|
|
3618
|
-
}), [scrollTarget, setScrollTarget] =
|
|
2814
|
+
}), [scrollTarget, setScrollTarget] = useState7(void 0), [collapsed, setCollapsed] = useState7(/* @__PURE__ */ new Set()), [hasResultMismatch, setResultMismatch] = useState7(!1), {
|
|
3619
2815
|
status = "rendering",
|
|
3620
2816
|
controlStates = INITIAL_CONTROL_STATES,
|
|
3621
2817
|
interactions = [],
|
|
@@ -3625,11 +2821,11 @@ var INITIAL_CONTROL_STATES = {
|
|
|
3625
2821
|
} = panelState, log = useRef2([getInternalRenderLogItem("active" /* ACTIVE */)]), calls = useRef2(
|
|
3626
2822
|
/* @__PURE__ */ new Map([[INTERNAL_RENDER_CALL_ID, getInternalRenderCall(storyId)]])
|
|
3627
2823
|
), setCall = ({ status: status2, ...call }) => calls.current.set(call.id, call), endRef = useRef2();
|
|
3628
|
-
|
|
2824
|
+
useEffect6(() => {
|
|
3629
2825
|
let observer;
|
|
3630
|
-
return
|
|
2826
|
+
return global.IntersectionObserver && (observer = new global.IntersectionObserver(
|
|
3631
2827
|
([end]) => setScrollTarget(end.isIntersecting ? void 0 : end.target),
|
|
3632
|
-
{ root:
|
|
2828
|
+
{ root: global.document.querySelector('#storybook-panel-root [role="tabpanel"]') }
|
|
3633
2829
|
), endRef.current && observer.observe(endRef.current)), () => observer?.disconnect();
|
|
3634
2830
|
}, []);
|
|
3635
2831
|
let renderTracker = useRef2({ renderId: 0 }), emit = useChannel3(
|
|
@@ -3692,7 +2888,7 @@ var INITIAL_CONTROL_STATES = {
|
|
|
3692
2888
|
},
|
|
3693
2889
|
[collapsed, storyId]
|
|
3694
2890
|
);
|
|
3695
|
-
|
|
2891
|
+
useEffect6(() => {
|
|
3696
2892
|
set(
|
|
3697
2893
|
(state2) => getPanelState(state2, { log: log.current, calls: calls.current, collapsed, setCollapsed })
|
|
3698
2894
|
);
|
|
@@ -3710,7 +2906,7 @@ var INITIAL_CONTROL_STATES = {
|
|
|
3710
2906
|
}),
|
|
3711
2907
|
[emit, storyId]
|
|
3712
2908
|
), storyFilePath = useParameter3("fileName", ""), [fileName] = storyFilePath.toString().split("/").slice(-1), scrollToTarget = () => scrollTarget?.scrollIntoView({ behavior: "smooth", block: "end" }), hasException = !!caughtException || !!unhandledErrors || interactions.some((v2) => v2.status === "error" /* ERROR */), browserTestStatus = useMemo4(() => status !== "playing" && (interactions.length > 0 || hasException) ? hasException ? "error" /* ERROR */ : "done" /* DONE */ : status === "playing" ? "active" /* ACTIVE */ : void 0, [status, interactions, hasException]);
|
|
3713
|
-
return
|
|
2909
|
+
return useEffect6(() => {
|
|
3714
2910
|
if (browserTestStatus && statusValue && statusValue !== "status-value:pending" && statusValue !== storyStatusMap[browserTestStatus]) {
|
|
3715
2911
|
let timeout = setTimeout(
|
|
3716
2912
|
() => setResultMismatch((currentValue) => (currentValue || emit(FORKBOOK_ADDON_TEST_CHANNEL, {
|
|
@@ -3882,7 +3078,7 @@ var manager_default6 = addons6.register(ADDON_ID3, () => {
|
|
|
3882
3078
|
import { addons as addons7, types as types5 } from "@aussieljk/forkbook/manager-api";
|
|
3883
3079
|
|
|
3884
3080
|
// src/measure/Tool.tsx
|
|
3885
|
-
import { useCallback as useCallback6, useEffect as
|
|
3081
|
+
import { useCallback as useCallback6, useEffect as useEffect7 } from "react";
|
|
3886
3082
|
import { ToggleButton as ToggleButton2 } from "@aussieljk/forkbook/internal/components";
|
|
3887
3083
|
import { RulerIcon } from "@phosphor-icons/react";
|
|
3888
3084
|
import { useGlobals as useGlobals3, useParameter as useParameter5, useStorybookApi as useStorybookApi8 } from "@aussieljk/forkbook/manager-api";
|
|
@@ -3894,7 +3090,7 @@ var Tool = () => {
|
|
|
3894
3090
|
}),
|
|
3895
3091
|
[updateGlobals, measureEnabled]
|
|
3896
3092
|
);
|
|
3897
|
-
return
|
|
3093
|
+
return useEffect7(() => {
|
|
3898
3094
|
isDisabled || api.setAddonShortcut(ADDON_ID4, {
|
|
3899
3095
|
label: "Toggle Measure",
|
|
3900
3096
|
defaultShortcut: ["M"],
|
|
@@ -3933,7 +3129,7 @@ var manager_default7 = addons7.register(ADDON_ID4, () => {
|
|
|
3933
3129
|
import { addons as addons8, types as types6 } from "@aussieljk/forkbook/manager-api";
|
|
3934
3130
|
|
|
3935
3131
|
// src/outline/OutlineSelector.tsx
|
|
3936
|
-
import { memo as memo6, useCallback as useCallback7, useEffect as
|
|
3132
|
+
import { memo as memo6, useCallback as useCallback7, useEffect as useEffect8 } from "react";
|
|
3937
3133
|
import { ToggleButton as ToggleButton3 } from "@aussieljk/forkbook/internal/components";
|
|
3938
3134
|
import { SelectionIcon } from "@phosphor-icons/react";
|
|
3939
3135
|
import { useGlobals as useGlobals4, useParameter as useParameter6, useStorybookApi as useStorybookApi9 } from "@aussieljk/forkbook/manager-api";
|
|
@@ -3945,7 +3141,7 @@ var OutlineSelector = memo6(function() {
|
|
|
3945
3141
|
}),
|
|
3946
3142
|
[isActive, updateGlobals]
|
|
3947
3143
|
);
|
|
3948
|
-
return
|
|
3144
|
+
return useEffect8(() => {
|
|
3949
3145
|
isDisabled || api.setAddonShortcut(ADDON_ID5, {
|
|
3950
3146
|
label: "Toggle Outline",
|
|
3951
3147
|
defaultShortcut: ["alt", "O"],
|
|
@@ -3989,7 +3185,7 @@ import { Select as Select2 } from "@aussieljk/forkbook/internal/components";
|
|
|
3989
3185
|
import { ArrowsOutIcon } from "@phosphor-icons/react";
|
|
3990
3186
|
|
|
3991
3187
|
// src/viewport/useViewport.ts
|
|
3992
|
-
import { useCallback as useCallback8, useEffect as
|
|
3188
|
+
import { useCallback as useCallback8, useEffect as useEffect9, useMemo as useMemo5, useRef as useRef3 } from "react";
|
|
3993
3189
|
import { useGlobals as useGlobals5, useParameter as useParameter7, useStorybookApi as useStorybookApi10 } from "@aussieljk/forkbook/manager-api";
|
|
3994
3190
|
var cycle = (viewports, current, direction = 1) => {
|
|
3995
3191
|
let keys = Object.keys(viewports), nextIndex = (current ? keys.indexOf(current) : -1) + direction;
|
|
@@ -4013,9 +3209,9 @@ var cycle = (viewports, current, direction = 1) => {
|
|
|
4013
3209
|
},
|
|
4014
3210
|
[update, isRotated]
|
|
4015
3211
|
);
|
|
4016
|
-
return
|
|
3212
|
+
return useEffect9(() => {
|
|
4017
3213
|
parameter && option && (Object.hasOwn(options, option) ? lastSelectedOption.current = option : (lastSelectedOption.current = void 0, PARAM_KEY in storyGlobals || update({ value: void 0, isRotated: !1 })));
|
|
4018
|
-
}, [parameter, storyGlobals, options, option, update]),
|
|
3214
|
+
}, [parameter, storyGlobals, options, option, update]), useEffect9(() => {
|
|
4019
3215
|
api.setAddonShortcut(ADDON_ID, {
|
|
4020
3216
|
label: "Next viewport",
|
|
4021
3217
|
defaultShortcut: ["alt", "V"],
|