@aussieljk/forkbook 0.0.1-4 → 0.0.1-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +35 -53
- package/dist/_browser-chunks/{Color-KRDPNBZS.js → Color-2BMQTRYG.js} +3 -3
- package/dist/_browser-chunks/WithTooltip-GJACFWKM.js +196 -0
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/chunk-6EJEEII7.js +1149 -0
- package/dist/_browser-chunks/{chunk-LXQPPHMD.js → chunk-6IKB2UHQ.js} +27 -27
- package/dist/_browser-chunks/chunk-DPRGR3QP.js +5995 -0
- package/dist/_browser-chunks/{chunk-K6GRZSXS.js → chunk-EQKMUQF3.js} +4 -3
- package/dist/_browser-chunks/{chunk-GU3X2J4S.js → chunk-FRAOQJDI.js} +3 -1
- package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-H4ZHAXN3.js} +1 -1
- package/dist/_browser-chunks/{chunk-ZLWA5RIE.js → chunk-I4ATZPNZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-6SHRDXGF.js → chunk-IJYLSHY7.js} +173 -87
- package/dist/_browser-chunks/{chunk-SZCSXISG.js → chunk-NA4ITZTK.js} +7 -5
- package/dist/_browser-chunks/chunk-NGMQJMCY.js +53 -0
- package/dist/_browser-chunks/{chunk-K2B36HKM.js → chunk-O24AZJZ7.js} +1 -1
- package/dist/_browser-chunks/{chunk-BZGX2THJ.js → chunk-QAHDGPZ7.js} +3 -3
- package/dist/_browser-chunks/{chunk-NMRSYACM.js → chunk-SFMQDIN2.js} +4 -3
- package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
- package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-X7D777E6.js} +547 -1622
- package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-YYWKZ7O3.js} +3 -1
- package/dist/_node-chunks/{attached-runtime-CYMSKF3A.js → attached-runtime-EBWIOQZN.js} +29 -29
- package/dist/_node-chunks/{builder-manager-RMLSIO45.js → builder-manager-ETBLZ2RH.js} +288 -349
- package/dist/_node-chunks/{chunk-IR34HUSL.js → chunk-252Y5WHZ.js} +7 -7
- package/dist/_node-chunks/{chunk-VPOJCHKM.js → chunk-25PXULSJ.js} +14 -14
- package/dist/_node-chunks/chunk-2DBJWMYE.js +495 -0
- package/dist/_node-chunks/{chunk-KXDJ77EW.js → chunk-3UWWRDA5.js} +7 -7
- package/dist/_node-chunks/{chunk-DVLFCSDG.js → chunk-4KCQYJT6.js} +7 -7
- package/dist/_node-chunks/{chunk-X3E55W5S.js → chunk-4MJIPOJ5.js} +6 -6
- package/dist/_node-chunks/{chunk-5TPSYG4L.js → chunk-4WLIN3VZ.js} +8 -8
- package/dist/_node-chunks/{chunk-WBTLBIED.js → chunk-4XNPO23I.js} +6 -6
- package/dist/_node-chunks/{chunk-NHIRHARE.js → chunk-5T635FTI.js} +10 -10
- package/dist/_node-chunks/{chunk-YU2WFBFL.js → chunk-5Z6MT4RI.js} +8 -8
- package/dist/_node-chunks/{chunk-2QWFS23O.js → chunk-644CUCK5.js} +7 -7
- package/dist/_node-chunks/{chunk-7XCJ7RAJ.js → chunk-7E27CGRU.js} +7 -7
- package/dist/_node-chunks/{chunk-WS367FSJ.js → chunk-A35J7YYA.js} +6 -6
- package/dist/_node-chunks/{chunk-ILFIERUB.js → chunk-ALHPFKVB.js} +8 -8
- package/dist/_node-chunks/{chunk-SQMCVWOR.js → chunk-ANDQVXYX.js} +8 -8
- package/dist/_node-chunks/{chunk-HUFAUSEX.js → chunk-AS4SFRCZ.js} +6 -6
- package/dist/_node-chunks/{chunk-XBXGLD3K.js → chunk-BLUMKQQB.js} +6 -6
- package/dist/_node-chunks/{chunk-QU5ANYM7.js → chunk-C5JG7EKF.js} +6 -6
- package/dist/_node-chunks/{chunk-P6QAFJ5M.js → chunk-CBUQY454.js} +7 -15
- package/dist/_node-chunks/{chunk-4LPAWP5S.js → chunk-CF7KLGUW.js} +22 -20
- package/dist/_node-chunks/{chunk-MOITZTEA.js → chunk-CGVPHZVD.js} +8 -8
- package/dist/_node-chunks/{chunk-2NWHHNNI.js → chunk-DABFUVLR.js} +6 -6
- package/dist/_node-chunks/{chunk-XH6TDVML.js → chunk-DCNZ6SFN.js} +6 -6
- package/dist/_node-chunks/{chunk-F2N6BJRH.js → chunk-DDGW2EBW.js} +29843 -51588
- package/dist/_node-chunks/{chunk-OS5LQEC6.js → chunk-DRLBJM6X.js} +7 -7
- package/dist/_node-chunks/{chunk-GEMKJCEE.js → chunk-E3O7VAPG.js} +10 -10
- package/dist/_node-chunks/{chunk-4GD7MMLJ.js → chunk-FIFCNBTL.js} +7 -7
- package/dist/_node-chunks/{chunk-UMZSNFWM.js → chunk-FQWTUSYB.js} +6 -6
- package/dist/_node-chunks/{chunk-JEEXR245.js → chunk-G6YNW4FK.js} +7 -7
- package/dist/_node-chunks/{chunk-HP5UY6OY.js → chunk-GDFQQO5U.js} +6 -6
- package/dist/_node-chunks/{chunk-653BSJIX.js → chunk-GGTXOH3W.js} +6 -6
- package/dist/_node-chunks/{chunk-PDCSUZ4L.js → chunk-GIOREKIG.js} +7 -7
- package/dist/_node-chunks/{chunk-V2JDVM46.js → chunk-GOFK4EKU.js} +6 -6
- package/dist/_node-chunks/{chunk-INEYTOWF.js → chunk-GQ3HJNIH.js} +10 -13
- package/dist/_node-chunks/{chunk-2APY2YSW.js → chunk-GRTI5653.js} +7 -7
- package/dist/_node-chunks/{chunk-KN2S7JF2.js → chunk-HKL3VOYX.js} +6 -6
- package/dist/_node-chunks/{chunk-A2UMIN5B.js → chunk-HUPRQZ3I.js} +7 -7
- package/dist/_node-chunks/{chunk-7JA2DMCJ.js → chunk-HWRHYM7Z.js} +6 -6
- package/dist/_node-chunks/{chunk-SBQT3LMM.js → chunk-I7HRDCNY.js} +10 -10
- package/dist/_node-chunks/{chunk-2IJCISIB.js → chunk-IFPMZ247.js} +6 -6
- package/dist/_node-chunks/{chunk-DIUBMAMV.js → chunk-J6M5CRYZ.js} +8 -8
- package/dist/_node-chunks/{chunk-IBO346NQ.js → chunk-JPXJI6QR.js} +60 -134
- package/dist/_node-chunks/{chunk-STRSG3GT.js → chunk-JS2J2SKX.js} +6 -6
- package/dist/_node-chunks/{chunk-FNGLVURC.js → chunk-JZWF3XLN.js} +6 -6
- package/dist/_node-chunks/{chunk-KINEBDMM.js → chunk-KF3FT3NI.js} +9 -9
- package/dist/_node-chunks/chunk-KWPWQA7G.js +2609 -0
- package/dist/_node-chunks/{chunk-OIIORQX5.js → chunk-L4JGWK4K.js} +6 -6
- package/dist/_node-chunks/{chunk-MRZD5SBV.js → chunk-LFIFBDMS.js} +6 -6
- package/dist/_node-chunks/{chunk-UAALLQAQ.js → chunk-LWKLJYYQ.js} +6 -6
- package/dist/_node-chunks/{chunk-AFKKN27O.js → chunk-LXVSVTQ3.js} +6 -6
- package/dist/_node-chunks/chunk-MDW3GSU3.js +69 -0
- package/dist/_node-chunks/{chunk-UXW4I2CN.js → chunk-MFN2XBPL.js} +7 -7
- package/dist/_node-chunks/{chunk-ESZVID7Q.js → chunk-MQFB44YS.js} +7 -7
- package/dist/_node-chunks/{chunk-3XDIBUGD.js → chunk-MZ2GSR3G.js} +23 -51
- package/dist/_node-chunks/{chunk-POXTROIX.js → chunk-N7HEOGTM.js} +9 -6
- package/dist/_node-chunks/{chunk-UIFLXDUL.js → chunk-NUAQC3XP.js} +16 -13
- package/dist/_node-chunks/{chunk-BOUA7OB7.js → chunk-NX6CSWF3.js} +8 -8
- package/dist/_node-chunks/{chunk-B3LK7C7B.js → chunk-NZ7EQWYA.js} +9 -9
- package/dist/_node-chunks/{chunk-U5QMVW3H.js → chunk-OLGIDCVD.js} +650 -9
- package/dist/_node-chunks/{chunk-NAYTBC72.js → chunk-P65JVLO3.js} +8 -8
- package/dist/_node-chunks/{chunk-M2UZP5GC.js → chunk-PAN35AYX.js} +7 -7
- package/dist/_node-chunks/{chunk-GZBUCUF7.js → chunk-PLWLCVP2.js} +6 -6
- package/dist/_node-chunks/{chunk-A4YELYR3.js → chunk-Q4BEWGMK.js} +6 -6
- package/dist/_node-chunks/{chunk-YYIZ2PC4.js → chunk-QNUXGVZZ.js} +6 -6
- package/dist/_node-chunks/{chunk-WHZWLJGO.js → chunk-R5DWO2S2.js} +31 -30
- package/dist/_node-chunks/{chunk-RMLENEZC.js → chunk-SLZV7PTQ.js} +8 -8
- package/dist/_node-chunks/{chunk-B5VFV3ZW.js → chunk-TIRP5JQM.js} +11 -10
- package/dist/_node-chunks/{chunk-TLVEPWBN.js → chunk-TMXWDY2O.js} +6 -6
- package/dist/_node-chunks/{chunk-LGUMVMBA.js → chunk-TN3ULFFZ.js} +6 -6
- package/dist/_node-chunks/{chunk-5ZLOPVTG.js → chunk-TPSJW4CQ.js} +6 -6
- package/dist/_node-chunks/{chunk-RNF3Z4ZJ.js → chunk-TYBPAV3X.js} +6 -6
- package/dist/_node-chunks/chunk-UUE3PSJB.js +11 -0
- package/dist/_node-chunks/chunk-VKNRNBTB.js +18 -0
- package/dist/_node-chunks/{chunk-6Y6RBJD7.js → chunk-VPU4E7DI.js} +25 -8
- package/dist/_node-chunks/{chunk-FJDJE7XC.js → chunk-WIQ6Y3NX.js} +6 -6
- package/dist/_node-chunks/{chunk-DD2S4BFV.js → chunk-WRG3CFGS.js} +6 -6
- package/dist/_node-chunks/{chunk-FAZ3MUOI.js → chunk-X3RTVNRN.js} +7 -7
- package/dist/_node-chunks/chunk-XOGU5PWI.js +347 -0
- package/dist/_node-chunks/{chunk-AU3SF2WM.js → chunk-XWGMQW2H.js} +6 -6
- package/dist/_node-chunks/chunk-YCXTTQ7K.js +620 -0
- package/dist/_node-chunks/{chunk-KZBZYQTZ.js → chunk-YHH57LHY.js} +9 -9
- package/dist/_node-chunks/{chunk-J3M3X7GO.js → chunk-YMZ2SGFK.js} +6 -6
- package/dist/_node-chunks/{chunk-AY6B2C46.js → chunk-YNENOZRY.js} +7 -7
- package/dist/_node-chunks/{chunk-CGWACHNW.js → chunk-YPGVYNJB.js} +6 -6
- package/dist/_node-chunks/{chunk-OQ4NCWE4.js → chunk-YQDBSAXW.js} +7 -7
- package/dist/_node-chunks/{chunk-YGXJOSRU.js → chunk-Z4NZLBOX.js} +7 -7
- package/dist/_node-chunks/{chunk-74IEHSIR.js → chunk-ZC3ZZKMS.js} +8 -8
- package/dist/_node-chunks/{chunk-QDLR4JF5.js → chunk-ZCITDAV4.js} +34 -949
- package/dist/_node-chunks/chunk-ZNSGFYAT.js +25 -0
- package/dist/_node-chunks/{chunk-XD5SYXAU.js → chunk-ZSH6BUCW.js} +25 -25
- package/dist/_node-chunks/{chunk-X2KWNNFB.js → chunk-ZTFNOXZF.js} +6 -6
- package/dist/_node-chunks/dist-GGTGKXZA.js +27 -0
- package/dist/_node-chunks/dist-NS676VJR.js +16 -0
- package/dist/_node-chunks/{local-runtime-KTI3DH6X.js → local-runtime-BUTEKJYV.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-2E3SW5TL.js → mdx-plugin-7WXQIHPV.js} +2263 -130
- package/dist/_node-chunks/{monorepo-MWAMFHKY.js → monorepo-NCD3X2BR.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-MGORG6W7.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-SD3B272K.js} +11 -11
- package/dist/_node-chunks/optimized-tests-ITVOHEOA.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-QTQOY7E7.js → pattern-copy-play-3QJANDJD.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-LEUHOKX6.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-T7DZNKMB.js → rehype-external-links-4LR5BDR2.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-CSHI5WYI.js → rehype-slug-PWFRGOEV.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-RAZD36YR.js → relaxed-limits-VNNWUW7X.js} +11 -11
- package/dist/_node-chunks/{run-S6XSLPEB.js → run-RUAAWEQT.js} +13 -13
- package/dist/_node-chunks/{run-KJ3Z2TTY.js → run-YK6ARCWS.js} +17 -17
- package/dist/_node-chunks/session-id-JJYVZAKO.js +23 -0
- package/dist/_node-chunks/{setup-35J66GFB.js → setup-4QKCICV6.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-Z7OCRDKD.js → vitest.config.4.template-WVFLIXN7.js} +7 -7
- package/dist/actions/decorator.js +2 -1
- package/dist/actions/index.js +2 -1
- package/dist/addon-a11y/index.js +2 -1
- package/dist/addon-a11y/manager.js +24 -17
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +2 -1
- package/dist/addon-docs/blocks.js +46 -25
- package/dist/addon-docs/manager.js +2 -2
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/index.js +3 -2
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-links/preview.js +3 -2
- package/dist/addon-links/react/index.js +2 -1
- package/dist/addon-mcp/preset.js +8 -8
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +17 -45
- package/dist/addon-ondevice-actions/index.js +5 -1
- package/dist/addon-ondevice-actions/register.js +5 -1
- package/dist/addon-pseudo-states/manager.js +2 -2
- package/dist/addon-pseudo-states/preview.d.ts +1 -1
- package/dist/addon-themes/manager.js +1 -1
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +8 -8
- package/dist/addon-vitest/node/coverage-reporter.js +8 -8
- package/dist/addon-vitest/node/vitest.js +16 -16
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +15 -16
- package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
- package/dist/addon-vitest/vitest-plugin/index.js +17 -17
- package/dist/babel/index.d.ts +91 -842
- package/dist/babel/index.js +13 -19
- package/dist/bin/core.js +61 -60
- package/dist/bin/dispatcher.js +10 -10
- package/dist/bin/loader.js +16 -15
- package/dist/builder-vite/index.js +15 -15
- package/dist/builder-vite/preset.js +13 -13
- package/dist/{chunk-DF6btpT3.d.ts → chunk-BGhyFTJO.d.ts} +2 -2
- package/dist/chunk-CV4-Z2pn.d.ts +30 -0
- package/dist/{chunk-DvufcbCc.d.ts → chunk-CVY28Ngy.d.ts} +1 -1
- package/dist/{chunk-B2t1tGRh.d.ts → chunk-CYuvV2sR.d.ts} +11 -13
- package/dist/{chunk-BYnH2sbb.d.ts → chunk-ClI-HEh5.d.ts} +1 -1
- package/dist/{chunk-DIz17UEJ.d.ts → chunk-CzmZhVrn.d.ts} +35 -1
- package/dist/{chunk-B2xylxt5.d.ts → chunk-DROZ9oel.d.ts} +7 -271
- package/dist/cli/index.d.ts +13 -866
- package/dist/cli/index.js +42 -4952
- package/dist/cli/tools/sdk/child-host.d.ts +1 -1
- package/dist/cli/tools/sdk/child-host.js +17 -17
- package/dist/cli/tools/sdk/index.d.ts +1 -1
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.js +3 -1
- package/dist/common/index.d.ts +5 -4
- package/dist/common/index.js +35 -37
- package/dist/components/index.d.ts +14 -231
- package/dist/components/index.js +2518 -8365
- package/dist/core-events/index.d.ts +4 -3
- package/dist/core-events/index.js +3 -1
- package/dist/core-server/index.d.ts +2 -2
- package/dist/core-server/index.js +450 -147
- package/dist/core-server/presets/common-manager.js +96 -894
- package/dist/core-server/presets/common-override-preset.js +12 -10
- package/dist/core-server/presets/common-preset.js +39 -40
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/index.d.ts +2 -2
- package/dist/csf/index.js +27 -93
- package/dist/csf-tools/index.d.ts +2 -12
- package/dist/csf-tools/index.js +14 -14
- package/dist/instrumenter/index.js +3 -1
- package/dist/manager/_manager-chunks/{globals-runtime-dKGpUUSb.js → globals-runtime-B-IeQLQu.js} +285 -61
- package/dist/manager/_manager-chunks/{globals-runtime-DuLFjsF4.js → globals-runtime-B5-0Ccbv.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-8HkdnU2F.js → globals-runtime-B71TiXST.js} +93 -2146
- package/dist/manager/_manager-chunks/globals-runtime-BMCaBukU.js +413 -0
- package/dist/manager/_manager-chunks/globals-runtime-BUP5e_t9.js +1396 -0
- package/dist/manager/_manager-chunks/globals-runtime-C7mqoHpE.js +2093 -0
- package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
- package/dist/manager/_manager-chunks/{globals-runtime-eLPTIfX-.js → globals-runtime-CYNosEiD.js} +1 -2
- package/dist/manager/_manager-chunks/globals-runtime-C_evJrEn.js +1960 -0
- package/dist/manager/_manager-chunks/{globals-runtime-C02fvgcd.js → globals-runtime-CdgVeAbk.js} +408 -377
- package/dist/manager/_manager-chunks/{globals-runtime-BmphMP6z.js → globals-runtime-Cqn8KdSZ.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-ZHrQFa3-.js → globals-runtime-CrIF09P8.js} +1246 -539
- package/dist/manager/_manager-chunks/{globals-runtime-BvM-NY2g.js → globals-runtime-Ct1kY4wb.js} +638 -1731
- package/dist/manager/_manager-chunks/globals-runtime-CvyFEPIY.js +5282 -0
- package/dist/manager/_manager-chunks/{globals-runtime-FC201B7s.js → globals-runtime-DMBjo1QS.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-C9P2ZbMM.js → globals-runtime-DUK6bGcb.js} +52 -25
- package/dist/manager/_manager-chunks/globals-runtime-DedfO-DP.js +3414 -0
- package/dist/manager/_manager-chunks/{globals-runtime-q5R9dawi.js → globals-runtime-DqhIYwLp.js} +165 -152
- package/dist/manager/_manager-chunks/globals-runtime-XSxCU7PR.js +41 -0
- package/dist/manager/_manager-chunks/runtime-BR5z0WoJ.js +456 -0
- package/dist/manager/_manager-chunks/{runtime-DdCaBowH.js → runtime-BgYvp1WN.js} +15 -7
- package/dist/manager/_manager-chunks/{runtime-BGvLm94o.js → runtime-CHI-LHF1.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-BdLdsHca.js → runtime-CUymj6EY.js} +280 -288
- package/dist/manager/_manager-chunks/runtime-CaU1DSEZ.js +528 -0
- package/dist/manager/_manager-chunks/{runtime-DMig8mT7.js → runtime-CqItbdKW.js} +3 -2
- package/dist/manager/_manager-chunks/{runtime-B9QzcYO3.js → runtime-D4ZOOIV0.js} +5 -531
- package/dist/manager/_manager-chunks/{runtime-50_aob4S.js → runtime-DER98nV0.js} +3 -19
- package/dist/manager/_manager-chunks/{runtime-CE2sHVqs.js → runtime-DrTLBe7a.js} +39 -40
- package/dist/manager/_manager-chunks/runtime-MAf7Wpk5.js +692 -0
- package/dist/manager/_manager-chunks/{runtime-CKP1i0--.js → runtime-cVFIMcca.js} +1 -1
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/globals.d.ts +1 -1
- package/dist/manager/globals.js +1 -1
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +22 -28
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.js +16 -11
- package/dist/nextjs-vite/index.js +3 -2
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +11 -11
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.d.ts +1 -2
- package/dist/nextjs-vite-plugin/index.js +12 -27
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/node-logger/index.d.ts +65 -72
- package/dist/node-logger/index.js +11 -12
- package/dist/oxc-parser/index.js +11 -13
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-DVM_AHbR.js → runtime-6P-h06Te.js} +51 -50
- package/dist/preview/_chunks/{runtime-BoxmlDdB.js → runtime-B9KKIDGa.js} +202 -81
- package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-BPwAnlRx.js} +482 -334
- package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-BUnOhg9h.js} +2 -2
- package/dist/preview/_chunks/runtime-Bcv1hJky.js +6305 -0
- package/dist/preview/_chunks/{runtime-CqHxptiK.js → runtime-C1jgT6tJ.js} +93 -2145
- package/dist/preview/_chunks/{runtime-D7B4bVe_.js → runtime-C8QFpkFV.js} +6 -6
- package/dist/preview/_chunks/{runtime-CijtAN7R.js → runtime-DdqR8Fd0.js} +15 -6
- package/dist/preview/_chunks/{runtime-B3y8ocOg.js → runtime-DvBfMhis.js} +2 -2
- package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-WapFVPAh.js} +29 -29
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +1 -1
- package/dist/preview-api/index.js +2 -1
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -12
- package/dist/react/entry-preview.js +2 -1
- package/dist/react/index.js +6 -4
- package/dist/react/preset.js +13 -14
- package/dist/react/preview.js +3 -2
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/index.js +25 -211
- package/dist/react-native/metro/node.js +10 -9
- package/dist/react-native/metro/withStorybook.js +11 -10
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.js +3 -1
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +1 -1
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/telemetry/index.js +43 -45
- package/dist/test/index.js +808 -573
- package/dist/theming/create.js +2 -1
- package/dist/theming/index.js +22 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +17 -45
- package/dist/_browser-chunks/WithTooltip-523JD6VH.js +0 -1619
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
- package/dist/_browser-chunks/chunk-UDQ3XQFC.js +0 -108
- package/dist/_node-chunks/chunk-7XCEKQGV.js +0 -18
- package/dist/_node-chunks/chunk-EGS2SAD2.js +0 -5414
- package/dist/_node-chunks/chunk-GKTCJPLL.js +0 -36
- package/dist/_node-chunks/chunk-HENM5ZK3.js +0 -1877
- package/dist/_node-chunks/chunk-HQM4ISVU.js +0 -11
- package/dist/_node-chunks/chunk-K3I3G4VL.js +0 -4731
- package/dist/_node-chunks/chunk-MZMPFII2.js +0 -29
- package/dist/_node-chunks/chunk-NYAWUR6L.js +0 -3823
- package/dist/_node-chunks/chunk-NYRUWAL3.js +0 -23
- package/dist/_node-chunks/chunk-SSZ5REKS.js +0 -3008
- package/dist/_node-chunks/chunk-WEW23EEE.js +0 -662
- package/dist/_node-chunks/chunk-XWQEWRFD.js +0 -51
- package/dist/_node-chunks/dist-CNA633FI.js +0 -16
- package/dist/_node-chunks/globby-HRQV5N3V.js +0 -2884
- package/dist/_node-chunks/jiti-WE7NHS2Y.js +0 -3848
- package/dist/_node-chunks/lib-7MVA6CTW.js +0 -366
- package/dist/_node-chunks/optimized-tests-IAX6YURR.js +0 -22
- package/dist/_node-chunks/postinstallAddon-ROH2TBJX.js +0 -20
- package/dist/_node-chunks/session-id-GM226DGP.js +0 -23
- package/dist/chunk-BfBzpgct.d.ts +0 -916
- package/dist/core-server/presets/common-manager.css +0 -170
- package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +0 -3389
- package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +0 -9766
- package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +0 -5357
- package/dist/manager/_manager-chunks/runtime-89Cb0A8U.js +0 -998
- package/dist/manager/_manager-chunks/runtime-wL4UO7YO.js +0 -452
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
- package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import "../../_browser-chunks/chunk-OZZPSYQR.js";
|
|
12
12
|
import {
|
|
13
13
|
ArgsTable
|
|
14
|
-
} from "../../_browser-chunks/chunk-
|
|
14
|
+
} from "../../_browser-chunks/chunk-6IKB2UHQ.js";
|
|
15
15
|
import "../../_browser-chunks/chunk-PJSMZ27A.js";
|
|
16
16
|
import "../../_browser-chunks/chunk-6ELMKWKX.js";
|
|
17
17
|
import {
|
|
@@ -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, () => {
|
|
@@ -427,7 +195,7 @@ var ADDON_ID8 = "core/review", manager_default2 = addons2.register(ADDON_ID8, ()
|
|
|
427
195
|
// src/controls/manager.tsx
|
|
428
196
|
import { AddonPanel } from "@aussieljk/forkbook/internal/components";
|
|
429
197
|
import { SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE } from "@aussieljk/forkbook/internal/core-events";
|
|
430
|
-
import {
|
|
198
|
+
import { CheckCircleIcon, XCircleIcon } from "@phosphor-icons/react";
|
|
431
199
|
import {
|
|
432
200
|
addons as addons3,
|
|
433
201
|
experimental_requestResponse,
|
|
@@ -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,
|
|
@@ -457,7 +224,7 @@ var ADDON_ID9 = "addon-controls", PARAM_KEY6 = "controls";
|
|
|
457
224
|
// src/controls/components/SaveStory.tsx
|
|
458
225
|
import React from "react";
|
|
459
226
|
import { Bar, Button, Form, Modal } from "@aussieljk/forkbook/internal/components";
|
|
460
|
-
import {
|
|
227
|
+
import { ArrowCounterClockwiseIcon, CheckIcon, PlusIcon } from "@phosphor-icons/react";
|
|
461
228
|
|
|
462
229
|
// storybook-css:/home/runner/work/forkbook/forkbook/code/core/src/controls/components/SaveStory.module.css
|
|
463
230
|
var id = "core/src/controls/components/SaveStory.module.css";
|
|
@@ -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 = { highlight: "fb-zEgyLq-highlight", modalInput: "fb-zEgyLq-modalInput", bar: "fb-zEgyLq-bar", actions: "fb-zEgyLq-actions", container: "fb-zEgyLq-container", slideIn: "fb-zEgyLq-slideIn", info: "fb-zEgyLq-info", label: "fb-zEgyLq-label" };
|
|
469
236
|
|
|
470
237
|
// src/controls/components/SaveStory.tsx
|
|
471
238
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -502,11 +269,11 @@ var SaveStory = ({ saveStory, createStory, resetArgs }) => {
|
|
|
502
269
|
jsx("div", { className: SaveStory_default.label, "data-short-label": "Save", children: "Update story" })
|
|
503
270
|
] }),
|
|
504
271
|
jsxs(Button, { ariaLabel: createLabel, tooltip: createLabel, onClick: onShowForm, children: [
|
|
505
|
-
jsx(
|
|
272
|
+
jsx(PlusIcon, {}),
|
|
506
273
|
jsx("div", { className: SaveStory_default.label, "data-short-label": "New", children: "Create new story" })
|
|
507
274
|
] }),
|
|
508
275
|
jsxs(Button, { ariaLabel: "Reset changes", onClick: () => resetArgs(), children: [
|
|
509
|
-
jsx(
|
|
276
|
+
jsx(ArrowCounterClockwiseIcon, {}),
|
|
510
277
|
jsx("span", { children: "Reset" })
|
|
511
278
|
] })
|
|
512
279
|
] }),
|
|
@@ -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,14 +469,14 @@ 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
|
|
709
476
|
});
|
|
710
477
|
api.addNotification({
|
|
711
478
|
id: "save-story-success",
|
|
712
|
-
icon: jsx4(
|
|
479
|
+
icon: jsx4(CheckCircleIcon, { color: color.positive }),
|
|
713
480
|
content: {
|
|
714
481
|
headline: "Story saved",
|
|
715
482
|
subHeadline: jsxs4(Fragment2, { children: [
|
|
@@ -723,7 +490,7 @@ var manager_default3 = addons3.register(ADDON_ID9, (api) => {
|
|
|
723
490
|
} catch (error) {
|
|
724
491
|
throw api.addNotification({
|
|
725
492
|
id: "save-story-error",
|
|
726
|
-
icon: jsx4(
|
|
493
|
+
icon: jsx4(XCircleIcon, { color: color.negative }),
|
|
727
494
|
content: {
|
|
728
495
|
headline: "Failed to save story",
|
|
729
496
|
subHeadline: error?.message || "Check the Forkbook process on the command line for more details."
|
|
@@ -743,7 +510,7 @@ var manager_default3 = addons3.register(ADDON_ID9, (api) => {
|
|
|
743
510
|
});
|
|
744
511
|
api.addNotification({
|
|
745
512
|
id: "save-story-success",
|
|
746
|
-
icon: jsx4(
|
|
513
|
+
icon: jsx4(CheckCircleIcon, { color: color.positive }),
|
|
747
514
|
content: {
|
|
748
515
|
headline: "Story created",
|
|
749
516
|
subHeadline: jsxs4(Fragment2, { children: [
|
|
@@ -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
|
}
|
|
@@ -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);
|
|
@@ -1982,7 +1748,7 @@ var DetachedDebuggerMessage = ({ storyUrl }) => jsxs7("div", { className: Detach
|
|
|
1982
1748
|
// src/component-testing/components/EmptyState.tsx
|
|
1983
1749
|
import { useEffect as useEffect4, useState as useState5 } from "react";
|
|
1984
1750
|
import { EmptyTabContent, Link as Link2 } from "@aussieljk/forkbook/internal/components";
|
|
1985
|
-
import {
|
|
1751
|
+
import { FileTextIcon } from "@phosphor-icons/react";
|
|
1986
1752
|
import { useStorybookApi as useStorybookApi4 } from "@aussieljk/forkbook/manager-api";
|
|
1987
1753
|
|
|
1988
1754
|
// storybook-css:/home/runner/work/forkbook/forkbook/code/core/src/component-testing/components/EmptyState.module.css
|
|
@@ -2012,7 +1778,7 @@ var Empty = () => {
|
|
|
2012
1778
|
title: "Interactions",
|
|
2013
1779
|
description: jsx10(Fragment4, { children: "Interactions allow you to verify the functional aspects of UIs. Write a play function for your story and you'll see it run here." }),
|
|
2014
1780
|
footer: jsx10("div", { className: EmptyState_default.links, children: jsxs8(Link2, { href: docsUrl, target: "_blank", withArrow: !0, children: [
|
|
2015
|
-
jsx10(
|
|
1781
|
+
jsx10(FileTextIcon, {}),
|
|
2016
1782
|
" Read docs"
|
|
2017
1783
|
] }) })
|
|
2018
1784
|
}
|
|
@@ -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
|
-
import {
|
|
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
|
{
|
|
@@ -3006,16 +2202,16 @@ var getParams = (line, fromIndex = 0) => {
|
|
|
3006
2202
|
};
|
|
3007
2203
|
|
|
3008
2204
|
// src/component-testing/components/StatusIcon.tsx
|
|
3009
|
-
import { CheckIcon as CheckIcon2, CircleIcon, PlayIcon,
|
|
3010
|
-
import { useTheme as
|
|
2205
|
+
import { CheckIcon as CheckIcon2, CircleIcon, PlayIcon, StopCircleIcon } from "@phosphor-icons/react";
|
|
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" });
|
|
3017
2213
|
case "error" /* ERROR */:
|
|
3018
|
-
return jsx13(
|
|
2214
|
+
return jsx13(StopCircleIcon, { color: theme3.color.negative, "data-testid": "icon-error" });
|
|
3019
2215
|
case "active" /* ACTIVE */:
|
|
3020
2216
|
return jsx13(PlayIcon, { color: theme3.color.secondary, "data-testid": "icon-active" });
|
|
3021
2217
|
case "waiting" /* WAITING */:
|
|
@@ -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 = { rowMessage: "fb-PYwdvq-rowMessage", errorMessage: "fb-PYwdvq-errorMessage", errorExplainer: "fb-PYwdvq-errorExplainer", rowLabel: "fb-PYwdvq-rowLabel", button: "fb-PYwdvq-button", row: "fb-PYwdvq-row", rowActions: "fb-PYwdvq-rowActions", methodCall: "fb-PYwdvq-methodCall", rowHeader: "fb-PYwdvq-rowHeader", errorName: "fb-PYwdvq-errorName" };
|
|
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
|
{
|
|
@@ -3161,7 +2357,7 @@ ${exception.diff}` : ""}`,
|
|
|
3161
2357
|
onClick: toggleCollapsed,
|
|
3162
2358
|
ariaLabel: getExpandButtonAriaLabel({ isCollapsed, stepName }),
|
|
3163
2359
|
"aria-expanded": !isCollapsed,
|
|
3164
|
-
children: isCollapsed ? jsx14(
|
|
2360
|
+
children: isCollapsed ? jsx14(CaretUpIcon, {}) : jsx14(CaretDownIcon, {})
|
|
3165
2361
|
}
|
|
3166
2362
|
) })
|
|
3167
2363
|
]
|
|
@@ -3212,13 +2408,13 @@ import {
|
|
|
3212
2408
|
Toolbar as SharedToolbar
|
|
3213
2409
|
} from "@aussieljk/forkbook/internal/components";
|
|
3214
2410
|
import {
|
|
2411
|
+
ArrowsClockwiseIcon,
|
|
3215
2412
|
FastForwardIcon,
|
|
3216
|
-
PlayBackIcon,
|
|
3217
|
-
PlayNextIcon,
|
|
3218
2413
|
RewindIcon,
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
2414
|
+
SkipBackIcon,
|
|
2415
|
+
SkipForwardIcon
|
|
2416
|
+
} from "@phosphor-icons/react";
|
|
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", iconButton: "fb-W9rv1G-iconButton", rewindButton: "fb-W9rv1G-rewindButton fb-W9rv1G-iconButton", openInEditorButton: "fb-W9rv1G-openInEditorButton", location: "fb-W9rv1G-location", controlsGroup: "fb-W9rv1G-controlsGroup", jumpToEndButton: "fb-W9rv1G-jumpToEndButton" };
|
|
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
|
{
|
|
@@ -3338,7 +2534,7 @@ var Toolbar = ({
|
|
|
3338
2534
|
onClick: controls.back,
|
|
3339
2535
|
onPointerDown: preventFocusLoss,
|
|
3340
2536
|
disabled: !controlStates.back,
|
|
3341
|
-
children: jsx17(
|
|
2537
|
+
children: jsx17(SkipBackIcon, {})
|
|
3342
2538
|
}
|
|
3343
2539
|
),
|
|
3344
2540
|
jsx17(
|
|
@@ -3351,7 +2547,7 @@ var Toolbar = ({
|
|
|
3351
2547
|
onClick: controls.next,
|
|
3352
2548
|
onPointerDown: preventFocusLoss,
|
|
3353
2549
|
disabled: !controlStates.next,
|
|
3354
|
-
children: jsx17(
|
|
2550
|
+
children: jsx17(SkipForwardIcon, {})
|
|
3355
2551
|
}
|
|
3356
2552
|
),
|
|
3357
2553
|
jsx17(
|
|
@@ -3376,7 +2572,7 @@ var Toolbar = ({
|
|
|
3376
2572
|
ariaLabel: "Rerun",
|
|
3377
2573
|
onClick: controls.rerun,
|
|
3378
2574
|
onPointerDown: preventFocusLoss,
|
|
3379
|
-
children: jsx17(
|
|
2575
|
+
children: jsx17(ArrowsClockwiseIcon, {})
|
|
3380
2576
|
}
|
|
3381
2577
|
)
|
|
3382
2578
|
] }),
|
|
@@ -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 = { heading: "fb-RpIDLa-heading", section: "fb-RpIDLa-section", caughtExceptionCode: "fb-RpIDLa-caughtExceptionCode", caughtException: "fb-RpIDLa-caughtException", caughtExceptionStack: "fb-RpIDLa-caughtExceptionStack", caughtExceptionDescription: "fb-RpIDLa-caughtExceptionDescription", container: "fb-RpIDLa-container", list: "fb-RpIDLa-list", caughtExceptionTitle: "fb-RpIDLa-caughtExceptionTitle" };
|
|
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, {
|
|
@@ -3794,7 +2990,7 @@ import { addons as addons6, types as types4 } from "@aussieljk/forkbook/manager-
|
|
|
3794
2990
|
// src/backgrounds/components/Tool.tsx
|
|
3795
2991
|
import { Fragment as Fragment9, memo as memo5, useCallback as useCallback5 } from "react";
|
|
3796
2992
|
import { Select, ToggleButton } from "@aussieljk/forkbook/internal/components";
|
|
3797
|
-
import { CircleIcon as CircleIcon2,
|
|
2993
|
+
import { CircleIcon as CircleIcon2, GridFourIcon, ImageIcon } from "@phosphor-icons/react";
|
|
3798
2994
|
import { useGlobals as useGlobals2, useParameter as useParameter4 } from "@aussieljk/forkbook/manager-api";
|
|
3799
2995
|
import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3800
2996
|
var BackgroundTool = memo5(function() {
|
|
@@ -3845,7 +3041,7 @@ var BackgroundTool = memo5(function() {
|
|
|
3845
3041
|
ariaLabel: isLocked ? "Grid set by story parameters" : "Grid visibility",
|
|
3846
3042
|
tooltip: isLocked ? "Grid set by story parameters" : "Toggle grid visibility",
|
|
3847
3043
|
onClick: () => update({ value: backgroundName, grid: !isGrid }),
|
|
3848
|
-
children: jsx22(
|
|
3044
|
+
children: jsx22(GridFourIcon, {})
|
|
3849
3045
|
},
|
|
3850
3046
|
"grid"
|
|
3851
3047
|
),
|
|
@@ -3855,7 +3051,7 @@ var BackgroundTool = memo5(function() {
|
|
|
3855
3051
|
resetLabel: "Reset background",
|
|
3856
3052
|
onReset: () => update(void 0),
|
|
3857
3053
|
disabled: isLocked,
|
|
3858
|
-
icon: jsx22(
|
|
3054
|
+
icon: jsx22(ImageIcon, {}),
|
|
3859
3055
|
ariaLabel: isLocked ? "Background set by story parameters" : "Preview background",
|
|
3860
3056
|
tooltip: isLocked ? "Background set by story parameters" : "Change background",
|
|
3861
3057
|
defaultOptions: backgroundName,
|
|
@@ -3882,9 +3078,9 @@ 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
|
-
import { RulerIcon } from "@
|
|
3083
|
+
import { RulerIcon } from "@phosphor-icons/react";
|
|
3888
3084
|
import { useGlobals as useGlobals3, useParameter as useParameter5, useStorybookApi as useStorybookApi8 } from "@aussieljk/forkbook/manager-api";
|
|
3889
3085
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
3890
3086
|
var Tool = () => {
|
|
@@ -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,9 +3129,9 @@ 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
|
-
import {
|
|
3134
|
+
import { SelectionIcon } from "@phosphor-icons/react";
|
|
3939
3135
|
import { useGlobals as useGlobals4, useParameter as useParameter6, useStorybookApi as useStorybookApi9 } from "@aussieljk/forkbook/manager-api";
|
|
3940
3136
|
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
3941
3137
|
var OutlineSelector = memo6(function() {
|
|
@@ -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"],
|
|
@@ -3963,7 +3159,7 @@ var OutlineSelector = memo6(function() {
|
|
|
3963
3159
|
ariaDescription: "When enabled, this tool displays the outline of every element in the preview area, which helps understand their layout.",
|
|
3964
3160
|
tooltip: "Toggle outline",
|
|
3965
3161
|
onClick: toggleOutline,
|
|
3966
|
-
children: jsx26(
|
|
3162
|
+
children: jsx26(SelectionIcon, {})
|
|
3967
3163
|
},
|
|
3968
3164
|
"outline"
|
|
3969
3165
|
);
|
|
@@ -3986,10 +3182,10 @@ import { addons as addons9, types as types7 } from "@aussieljk/forkbook/manager-
|
|
|
3986
3182
|
// src/viewport/components/Tool.tsx
|
|
3987
3183
|
import { useMemo as useMemo6 } from "react";
|
|
3988
3184
|
import { Select as Select2 } from "@aussieljk/forkbook/internal/components";
|
|
3989
|
-
import {
|
|
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"],
|
|
@@ -4070,12 +3266,18 @@ var cycle = (viewports, current, direction = 1) => {
|
|
|
4070
3266
|
};
|
|
4071
3267
|
|
|
4072
3268
|
// src/viewport/viewportIcons.tsx
|
|
4073
|
-
import {
|
|
3269
|
+
import {
|
|
3270
|
+
BrowserIcon,
|
|
3271
|
+
DeviceMobileIcon,
|
|
3272
|
+
DeviceTabletIcon,
|
|
3273
|
+
DiamondIcon,
|
|
3274
|
+
WatchIcon
|
|
3275
|
+
} from "@phosphor-icons/react";
|
|
4074
3276
|
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
4075
3277
|
var iconsMap = {
|
|
4076
3278
|
desktop: jsx28(BrowserIcon, {}),
|
|
4077
|
-
mobile: jsx28(
|
|
4078
|
-
tablet: jsx28(
|
|
3279
|
+
mobile: jsx28(DeviceMobileIcon, {}),
|
|
3280
|
+
tablet: jsx28(DeviceTabletIcon, {}),
|
|
4079
3281
|
watch: jsx28(WatchIcon, {}),
|
|
4080
3282
|
other: jsx28(DiamondIcon, {})
|
|
4081
3283
|
};
|
|
@@ -4133,7 +3335,7 @@ var ViewportTool = () => {
|
|
|
4133
3335
|
defaultOptions: value,
|
|
4134
3336
|
options,
|
|
4135
3337
|
onSelect: (selected) => select(selected),
|
|
4136
|
-
icon: jsx29(
|
|
3338
|
+
icon: jsx29(ArrowsOutIcon, {}),
|
|
4137
3339
|
children: isDefault ? null : name
|
|
4138
3340
|
},
|
|
4139
3341
|
"viewport"
|