@aussieljk/forkbook 0.0.1-6 → 0.0.1-8
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/assets/create/templates/react-native/index.expo.js +4 -4
- package/assets/create/templates/react-native/index.js +5 -5
- package/dist/_browser-chunks/{Color-2BMQTRYG.js → Color-ZG7LKYDZ.js} +1 -1
- package/dist/_browser-chunks/{WithTooltip-GJACFWKM.js → WithTooltip-YZ36EZ4X.js} +3 -3
- package/dist/_browser-chunks/{chunk-X7D777E6.js → chunk-DAUHYZUB.js} +4 -0
- package/dist/_browser-chunks/{chunk-6EJEEII7.js → chunk-E47B5255.js} +2 -2
- package/dist/_browser-chunks/{chunk-6IKB2UHQ.js → chunk-MZVQEZOB.js} +12 -12
- package/dist/_browser-chunks/{chunk-QAHDGPZ7.js → chunk-SK6S7ZXD.js} +1 -1
- package/dist/_browser-chunks/{chunk-DPRGR3QP.js → chunk-WVF42CP2.js} +38 -6
- package/dist/_node-chunks/{attached-runtime-EBWIOQZN.js → attached-runtime-SRP2RPCT.js} +30 -30
- package/dist/_node-chunks/{builder-manager-ETBLZ2RH.js → builder-manager-V7M6SFEM.js} +69 -46
- package/dist/_node-chunks/{chunk-GIOREKIG.js → chunk-27KT3BJI.js} +7 -7
- package/dist/_node-chunks/{chunk-MQFB44YS.js → chunk-27R37QFW.js} +7 -7
- package/dist/_node-chunks/{chunk-4KCQYJT6.js → chunk-2WPUJ7UM.js} +7 -7
- package/dist/_node-chunks/{chunk-KWPWQA7G.js → chunk-2ZB3ZVDY.js} +8 -8
- package/dist/_node-chunks/{chunk-TPSJW4CQ.js → chunk-3KKSPEAE.js} +6 -6
- package/dist/_node-chunks/{chunk-644CUCK5.js → chunk-3KY2GA5X.js} +7 -7
- package/dist/_node-chunks/{chunk-25PXULSJ.js → chunk-3NXJBXBF.js} +15 -15
- package/dist/_node-chunks/{chunk-5T635FTI.js → chunk-4CPTSXU6.js} +10 -10
- package/dist/_node-chunks/{chunk-YQDBSAXW.js → chunk-4QYNOSOA.js} +7 -7
- package/dist/_node-chunks/{chunk-WIQ6Y3NX.js → chunk-4T3WPVSQ.js} +6 -6
- package/dist/_node-chunks/{chunk-BLUMKQQB.js → chunk-4U5ZQZJ4.js} +6 -6
- package/dist/_node-chunks/chunk-4XNKH2BY.js +18 -0
- package/dist/_node-chunks/{chunk-4MJIPOJ5.js → chunk-526SOV2Y.js} +6 -6
- package/dist/_node-chunks/{chunk-J6M5CRYZ.js → chunk-54WGE5OK.js} +10 -10
- package/dist/_node-chunks/{chunk-JPXJI6QR.js → chunk-5BQKMZYJ.js} +27 -32
- package/dist/_node-chunks/{chunk-P65JVLO3.js → chunk-62PEOH4P.js} +8 -8
- package/dist/_node-chunks/{chunk-R5DWO2S2.js → chunk-6DCYMQX2.js} +29 -29
- package/dist/_node-chunks/{chunk-NZ7EQWYA.js → chunk-6DZY675E.js} +9 -9
- package/dist/_node-chunks/{chunk-ZC3ZZKMS.js → chunk-6GBMB2E4.js} +8 -8
- package/dist/_node-chunks/{chunk-FQWTUSYB.js → chunk-6YDXCU32.js} +6 -6
- package/dist/_node-chunks/{chunk-HUPRQZ3I.js → chunk-77YIWZPS.js} +7 -7
- package/dist/_node-chunks/{chunk-L4JGWK4K.js → chunk-7GLNBVQO.js} +6 -6
- package/dist/_node-chunks/{chunk-CGVPHZVD.js → chunk-7YBOQWWR.js} +8 -8
- package/dist/_node-chunks/{chunk-YPGVYNJB.js → chunk-A73YRJPA.js} +7 -7
- package/dist/_node-chunks/{chunk-C5JG7EKF.js → chunk-BLAPFOIX.js} +6 -6
- package/dist/_node-chunks/{chunk-CBUQY454.js → chunk-BPMXWGDX.js} +6 -6
- package/dist/_node-chunks/{chunk-SLZV7PTQ.js → chunk-BY65FGKD.js} +8 -8
- package/dist/_node-chunks/{chunk-3UWWRDA5.js → chunk-CHPKBTH7.js} +7 -7
- package/dist/_node-chunks/{chunk-GRTI5653.js → chunk-CL4T6DGA.js} +7 -7
- package/dist/_node-chunks/{chunk-AS4SFRCZ.js → chunk-CT3L2NXZ.js} +6 -6
- package/dist/_node-chunks/{chunk-YHH57LHY.js → chunk-CZDEJ7DD.js} +9 -9
- package/dist/_node-chunks/{chunk-TN3ULFFZ.js → chunk-D4IL5V6A.js} +6 -6
- package/dist/_node-chunks/{chunk-YNENOZRY.js → chunk-DADJTKJT.js} +7 -7
- package/dist/_node-chunks/{chunk-N7HEOGTM.js → chunk-DGA2Q7TE.js} +6 -6
- package/dist/_node-chunks/{chunk-I7HRDCNY.js → chunk-DSWCMXKR.js} +10 -10
- package/dist/_node-chunks/{chunk-FIFCNBTL.js → chunk-DVSKRIH3.js} +7 -7
- package/dist/_node-chunks/{chunk-ANDQVXYX.js → chunk-F2XPZVCK.js} +8 -8
- package/dist/_node-chunks/{chunk-E3O7VAPG.js → chunk-G3J2VAY4.js} +10 -10
- package/dist/_node-chunks/{chunk-2DBJWMYE.js → chunk-G6UTEYYQ.js} +8 -8
- package/dist/_node-chunks/{chunk-ALHPFKVB.js → chunk-GUKZDREX.js} +8 -8
- package/dist/_node-chunks/{chunk-TMXWDY2O.js → chunk-GXSB54NU.js} +6 -6
- package/dist/_node-chunks/{chunk-CF7KLGUW.js → chunk-HF6FRLS6.js} +125 -144
- package/dist/_node-chunks/{chunk-ZSH6BUCW.js → chunk-HNMHTOKI.js} +23 -23
- package/dist/_node-chunks/{chunk-IFPMZ247.js → chunk-I26RWAW3.js} +6 -6
- package/dist/_node-chunks/{chunk-G6YNW4FK.js → chunk-I5Y7NDAM.js} +7 -7
- package/dist/_node-chunks/{chunk-ZNSGFYAT.js → chunk-IAYHJZOR.js} +6 -6
- package/dist/_node-chunks/{chunk-MFN2XBPL.js → chunk-ICGRYYV7.js} +7 -7
- package/dist/_node-chunks/{chunk-PAN35AYX.js → chunk-IFF53QVX.js} +7 -7
- package/dist/_node-chunks/{chunk-Z4NZLBOX.js → chunk-II4SIIJW.js} +7 -7
- package/dist/_node-chunks/{chunk-ZCITDAV4.js → chunk-IVU4D6LF.js} +7 -7
- package/dist/_node-chunks/{chunk-OLGIDCVD.js → chunk-JB5Q4WGX.js} +7 -7
- package/dist/_node-chunks/{chunk-MDW3GSU3.js → chunk-JCLP42A7.js} +7 -7
- package/dist/_node-chunks/{chunk-LWKLJYYQ.js → chunk-KQBTXUT5.js} +7 -7
- package/dist/_node-chunks/{chunk-4WLIN3VZ.js → chunk-LF7EC235.js} +8 -8
- package/dist/_node-chunks/{chunk-DCNZ6SFN.js → chunk-LPLXO4HE.js} +6 -6
- package/dist/_node-chunks/{chunk-HKL3VOYX.js → chunk-LSKOVF6F.js} +6 -6
- package/dist/_node-chunks/{chunk-YMZ2SGFK.js → chunk-LYMYDMEK.js} +6 -6
- package/dist/_node-chunks/{chunk-QNUXGVZZ.js → chunk-M3F5R2JO.js} +6 -6
- package/dist/_node-chunks/{chunk-HWRHYM7Z.js → chunk-M74NU6PU.js} +6 -6
- package/dist/_node-chunks/{chunk-JZWF3XLN.js → chunk-MGFH4KGP.js} +6 -6
- package/dist/_node-chunks/{chunk-TYBPAV3X.js → chunk-NORBEBNM.js} +6 -6
- package/dist/_node-chunks/{chunk-4XNPO23I.js → chunk-NV6HM53D.js} +6 -6
- package/dist/_node-chunks/{chunk-WRG3CFGS.js → chunk-OFZX45ZR.js} +6 -6
- package/dist/_node-chunks/{chunk-A35J7YYA.js → chunk-OZBNKCKM.js} +6 -6
- package/dist/_node-chunks/{chunk-Q4BEWGMK.js → chunk-QEDRYWP7.js} +7 -7
- package/dist/_node-chunks/{chunk-KF3FT3NI.js → chunk-QQ7GEJNY.js} +9 -9
- package/dist/_node-chunks/{chunk-ZTFNOXZF.js → chunk-QQKVXB5Q.js} +6 -6
- package/dist/_node-chunks/{chunk-YCXTTQ7K.js → chunk-QVIC3UDL.js} +8 -8
- package/dist/_node-chunks/{chunk-252Y5WHZ.js → chunk-RR3WLRNQ.js} +7 -7
- package/dist/_node-chunks/chunk-SBNQ6YGM.js +11 -0
- package/dist/_node-chunks/{chunk-GGTXOH3W.js → chunk-SNQKCFKN.js} +6 -6
- package/dist/_node-chunks/{chunk-PLWLCVP2.js → chunk-T62LXT34.js} +6 -6
- package/dist/_node-chunks/{chunk-LXVSVTQ3.js → chunk-TBLZESXE.js} +6 -6
- package/dist/_node-chunks/{chunk-MZ2GSR3G.js → chunk-TLB2LNUO.js} +17 -14
- package/dist/_node-chunks/{chunk-DRLBJM6X.js → chunk-UBEILYLL.js} +7 -7
- package/dist/_node-chunks/{chunk-5Z6MT4RI.js → chunk-UCBUYT7S.js} +7 -7
- package/dist/_node-chunks/{chunk-GQ3HJNIH.js → chunk-UEWCGYSE.js} +44 -10
- package/dist/_node-chunks/{chunk-GOFK4EKU.js → chunk-VPGX2PAB.js} +6 -6
- package/dist/_node-chunks/{chunk-NX6CSWF3.js → chunk-VQ2NW4OR.js} +8 -8
- package/dist/_node-chunks/{chunk-XWGMQW2H.js → chunk-VTLGMRU5.js} +6 -6
- package/dist/_node-chunks/{chunk-VPU4E7DI.js → chunk-VTVQ5TKB.js} +8 -8
- package/dist/_node-chunks/{chunk-LFIFBDMS.js → chunk-VV6CPF3T.js} +6 -6
- package/dist/_node-chunks/{chunk-XOGU5PWI.js → chunk-WF7RDUU7.js} +10 -10
- package/dist/_node-chunks/{chunk-7E27CGRU.js → chunk-X5IJ42Q2.js} +7 -7
- package/dist/_node-chunks/{chunk-GDFQQO5U.js → chunk-XGMO4SW2.js} +8 -8
- package/dist/_node-chunks/{chunk-TIRP5JQM.js → chunk-XTCOGCTP.js} +7 -7
- package/dist/_node-chunks/{chunk-NUAQC3XP.js → chunk-Y2HWZ262.js} +50 -50
- package/dist/_node-chunks/{chunk-X3RTVNRN.js → chunk-YBRV5FIK.js} +7 -7
- package/dist/_node-chunks/{chunk-DABFUVLR.js → chunk-YHWOGAFM.js} +6 -6
- package/dist/_node-chunks/{chunk-DDGW2EBW.js → chunk-YMVL55QY.js} +9 -9
- package/dist/_node-chunks/{chunk-JS2J2SKX.js → chunk-ZKS2H56J.js} +6 -6
- package/dist/_node-chunks/dist-GJ53PFWF.js +27 -0
- package/dist/_node-chunks/dist-TLMACGH6.js +16 -0
- package/dist/_node-chunks/{local-runtime-BUTEKJYV.js → local-runtime-Y6OH2SFM.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-7WXQIHPV.js → mdx-plugin-R6GNGQP2.js} +13 -13
- package/dist/_node-chunks/{monorepo-NCD3X2BR.js → monorepo-R2CLQIWG.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-SD3B272K.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-PTWFSPXD.js} +11 -11
- package/dist/_node-chunks/optimized-tests-DIPB4OM6.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-3QJANDJD.js → pattern-copy-play-5VCD6ED3.js} +11 -11
- package/dist/_node-chunks/postinstallAddon-PSN7XRSV.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-4LR5BDR2.js → rehype-external-links-SKSQEDUP.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-PWFRGOEV.js → rehype-slug-27WNXM7U.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-VNNWUW7X.js → relaxed-limits-PDGCGDW4.js} +11 -11
- package/dist/_node-chunks/{run-YK6ARCWS.js → run-BD52SWQC.js} +17 -17
- package/dist/_node-chunks/{run-RUAAWEQT.js → run-IKBDOUY2.js} +273 -13
- package/dist/_node-chunks/session-id-K7PM5ZGL.js +23 -0
- package/dist/_node-chunks/{setup-4QKCICV6.js → setup-7ECNMG4A.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-WVFLIXN7.js → vitest.config.4.template-J4YODMMP.js} +7 -7
- package/dist/addon-a11y/manager.js +6 -6
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-docs/blocks.js +10 -10
- package/dist/addon-docs/manager.js +2 -2
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-mcp/preset.js +10 -10
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +11 -8
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +4 -4
- 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 +14 -14
- package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
- package/dist/addon-vitest/vitest-plugin/index.js +15 -15
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +62 -62
- package/dist/bin/dispatcher.js +18 -16
- package/dist/bin/loader.js +8 -8
- package/dist/builder-vite/index.js +15 -15
- package/dist/builder-vite/preset.js +13 -13
- package/dist/{chunk-DuDsmeM7.d.ts → chunk-CFk6djyM.d.ts} +4 -4
- package/dist/{chunk-CVY28Ngy.d.ts → chunk-CJY2njs4.d.ts} +1 -1
- package/dist/{chunk-CzmZhVrn.d.ts → chunk-DktrsDd6.d.ts} +13 -8
- package/dist/{chunk-BWzbIWPz.d.ts → chunk-Dw_4ad2Y.d.ts} +5 -5
- package/dist/{chunk-ClI-HEh5.d.ts → chunk-pFH9P91a.d.ts} +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +22 -22
- package/dist/cli/skills/content/index.d.ts +1 -1
- package/dist/cli/skills/content/index.js +2 -2
- 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/common/index.d.ts +14 -27
- package/dist/common/index.js +36 -40
- package/dist/components/index.js +30 -30
- package/dist/core-server/index.d.ts +6 -6
- package/dist/core-server/index.js +69 -69
- package/dist/core-server/presets/common-manager.js +7 -7
- package/dist/core-server/presets/common-override-preset.js +10 -10
- package/dist/core-server/presets/common-preset.js +39 -39
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf-tools/index.d.ts +12 -0
- package/dist/csf-tools/index.js +12 -12
- package/dist/manager/_manager-chunks/{globals-runtime-BUP5e_t9.js → globals-runtime-4fCHtNC6.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CdgVeAbk.js → globals-runtime-BKW-4ztO.js} +7 -7
- package/dist/manager/_manager-chunks/{globals-runtime-DedfO-DP.js → globals-runtime-BO0pfoqL.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-C7mqoHpE.js → globals-runtime-BZKYJxYC.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CrIF09P8.js → globals-runtime-Bpc_ftuT.js} +8 -2
- package/dist/manager/_manager-chunks/{globals-runtime-B-IeQLQu.js → globals-runtime-CIcNS9TG.js} +12 -12
- package/dist/manager/_manager-chunks/{globals-runtime-XSxCU7PR.js → globals-runtime-CTyYXvUm.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-B71TiXST.js → globals-runtime-CoCzM1V_.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DMBjo1QS.js → globals-runtime-D82vqOGq.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-CYNosEiD.js → globals-runtime-DB8fVA5g.js} +2 -144
- package/dist/manager/_manager-chunks/{globals-runtime-CvyFEPIY.js → globals-runtime-DOPUchia.js} +3 -3
- package/dist/manager/_manager-chunks/{globals-runtime-DUK6bGcb.js → globals-runtime-DZN_3ZLm.js} +99 -39
- package/dist/manager/_manager-chunks/{globals-runtime-C_evJrEn.js → globals-runtime-Dbt08xWQ.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DqhIYwLp.js → globals-runtime-DgUeynuu.js} +75 -75
- package/dist/manager/_manager-chunks/{globals-runtime-B5-0Ccbv.js → globals-runtime-WhJXr5R1.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-Ct1kY4wb.js → globals-runtime-kmPSyf3j.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-Cqn8KdSZ.js → globals-runtime-z143vedu.js} +10 -10
- package/dist/manager/_manager-chunks/{runtime-CqItbdKW.js → runtime-5o_11Jae.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-CUymj6EY.js → runtime-B_U-7omv.js} +139 -147
- package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
- package/dist/manager/_manager-chunks/{runtime-BgYvp1WN.js → runtime-BrlctLSK.js} +82 -301
- package/dist/manager/_manager-chunks/{runtime-DrTLBe7a.js → runtime-BrwmuSZ1.js} +46 -22
- package/dist/manager/_manager-chunks/runtime-C-s1miBr.js +294 -0
- package/dist/manager/_manager-chunks/{runtime-DER98nV0.js → runtime-CHQZzIX6.js} +9 -12
- package/dist/manager/_manager-chunks/{runtime-D4ZOOIV0.js → runtime-DEHcqyTM.js} +4 -4
- package/dist/manager/_manager-chunks/{runtime-MAf7Wpk5.js → runtime-Dtpc5s3G.js} +501 -43
- package/dist/manager/_manager-chunks/{runtime-CHI-LHF1.js → runtime-DuptfEhw.js} +5 -147
- package/dist/manager/_manager-chunks/{runtime-CaU1DSEZ.js → runtime-P663lpsR.js} +1 -1
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +2 -2
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.js +9 -9
- package/dist/nextjs-vite/index.d.ts +2 -2
- package/dist/nextjs-vite/node/index.d.ts +2 -2
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/node-stand-ins/index.d.ts +68 -0
- package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
- package/dist/nextjs-vite/preset.js +92 -13
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.js +8 -8
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +10 -10
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview-api/index.d.ts +1 -1
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -11
- package/dist/react/preset.js +13 -13
- package/dist/react-native/bin/get-stories.js +12 -12
- package/dist/react-native/index.d.ts +8 -8
- package/dist/react-native/index.js +3 -3
- package/dist/react-native/metro/node.js +10 -10
- package/dist/react-native/metro/{withStorybook.d.ts → withForkbook.d.ts} +9 -9
- package/dist/react-native/metro/{withStorybook.js → withForkbook.js} +16 -16
- package/dist/react-native/scripts/generate.d.ts +1 -1
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-native/stub.js +1 -1
- package/dist/react-vite/index.d.ts +2 -2
- package/dist/react-vite/node/index.d.ts +3 -3
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +1 -1
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/telemetry/index.d.ts +3 -3
- package/dist/telemetry/index.js +43 -43
- package/dist/types/index.d.ts +2 -2
- package/package.json +11 -8
- package/dist/_node-chunks/chunk-UUE3PSJB.js +0 -11
- package/dist/_node-chunks/chunk-VKNRNBTB.js +0 -18
- package/dist/_node-chunks/dist-GGTGKXZA.js +0 -27
- package/dist/_node-chunks/dist-NS676VJR.js +0 -16
- package/dist/_node-chunks/optimized-tests-ITVOHEOA.js +0 -22
- package/dist/_node-chunks/postinstallAddon-LEUHOKX6.js +0 -20
- package/dist/_node-chunks/session-id-JJYVZAKO.js +0 -23
- package/dist/manager/_manager-chunks/runtime-BR5z0WoJ.js +0 -456
- package/dist/manager/_manager-chunks/runtime-cVFIMcca.js +0 -22
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { n as __esmMin } from "./runtime-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { n as init_preview_errors, t as StatusTypeIdMismatchError$2 } from "./runtime-cVFIMcca.js";
|
|
1
|
+
import { n as __esmMin } from "./runtime-BdGkqNEt.js";
|
|
2
|
+
import { Dr as useState, Er as useRef, Ht as useGlobalTypes, Kt as useStorybookApi, M as init_icon, Or as useSyncExternalStore, Pt as init_manager_api, Ut as useGlobals, _r as useCallback, br as useEffect, et as Select, ht as init_components, j as Icons, mr as init__storybook_global_react, sr as _storybook_global_react_default, tt as Separator, wr as useMemo, yr as useDebugValue } from "./runtime-Dtpc5s3G.js";
|
|
3
|
+
import { i as init_esm, r as dedent } from "./runtime-DuptfEhw.js";
|
|
4
|
+
import { a as StatusTypeIdMismatchError$2, o as UniversalStoreFollowerTimeoutError, s as init_manager_errors } from "./runtime-B_U-7omv.js";
|
|
5
|
+
import { l as init_isEqual, u as isEqual } from "./runtime-DEHcqyTM.js";
|
|
6
|
+
import { a as init_constants$1 } from "./runtime-C-s1miBr.js";
|
|
8
7
|
//#region src/shared/global.ts
|
|
9
8
|
var global;
|
|
10
9
|
function init_global() {
|
|
@@ -334,6 +333,60 @@ function init_useCopyButton() {
|
|
|
334
333
|
})))();
|
|
335
334
|
}
|
|
336
335
|
//#endregion
|
|
336
|
+
//#region src/shared/use-sync-external-store/with-selector.ts
|
|
337
|
+
function useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
|
338
|
+
const instRef = useRef(null);
|
|
339
|
+
if (instRef.current === null) instRef.current = {
|
|
340
|
+
hasValue: false,
|
|
341
|
+
value: null
|
|
342
|
+
};
|
|
343
|
+
const inst = instRef.current;
|
|
344
|
+
const [getSelection, getServerSelection] = useMemo(() => {
|
|
345
|
+
let hasMemo = false;
|
|
346
|
+
let memoizedSnapshot;
|
|
347
|
+
let memoizedSelection;
|
|
348
|
+
const memoizedSelector = (nextSnapshot) => {
|
|
349
|
+
if (!hasMemo) {
|
|
350
|
+
hasMemo = true;
|
|
351
|
+
memoizedSnapshot = nextSnapshot;
|
|
352
|
+
const nextSelection = selector(nextSnapshot);
|
|
353
|
+
if (isEqual !== void 0 && inst.hasValue) {
|
|
354
|
+
const currentSelection = inst.value;
|
|
355
|
+
if (isEqual(currentSelection, nextSelection)) return memoizedSelection = currentSelection;
|
|
356
|
+
}
|
|
357
|
+
return memoizedSelection = nextSelection;
|
|
358
|
+
}
|
|
359
|
+
const currentSelection = memoizedSelection;
|
|
360
|
+
if (Object.is(memoizedSnapshot, nextSnapshot)) return currentSelection;
|
|
361
|
+
const nextSelection = selector(nextSnapshot);
|
|
362
|
+
if (isEqual !== void 0 && isEqual(currentSelection, nextSelection)) {
|
|
363
|
+
memoizedSnapshot = nextSnapshot;
|
|
364
|
+
return currentSelection;
|
|
365
|
+
}
|
|
366
|
+
memoizedSnapshot = nextSnapshot;
|
|
367
|
+
return memoizedSelection = nextSelection;
|
|
368
|
+
};
|
|
369
|
+
return [() => memoizedSelector(getSnapshot()), getServerSnapshot == null ? void 0 : () => memoizedSelector(getServerSnapshot())];
|
|
370
|
+
}, [
|
|
371
|
+
getSnapshot,
|
|
372
|
+
getServerSnapshot,
|
|
373
|
+
selector,
|
|
374
|
+
isEqual
|
|
375
|
+
]);
|
|
376
|
+
const value = useSyncExternalStore(subscribe, getSelection, getServerSelection);
|
|
377
|
+
useEffect(() => {
|
|
378
|
+
inst.hasValue = true;
|
|
379
|
+
inst.value = value;
|
|
380
|
+
}, [value]);
|
|
381
|
+
useDebugValue(value);
|
|
382
|
+
return value;
|
|
383
|
+
}
|
|
384
|
+
function init_with_selector() {
|
|
385
|
+
return (init_with_selector = __esmMin((() => {
|
|
386
|
+
init__storybook_global_react();
|
|
387
|
+
})))();
|
|
388
|
+
}
|
|
389
|
+
//#endregion
|
|
337
390
|
//#region src/shared/review/events.ts
|
|
338
391
|
var REVIEW_NAMESPACE, REVIEW_EVENTS;
|
|
339
392
|
function init_events() {
|
|
@@ -343,16 +396,6 @@ function init_events() {
|
|
|
343
396
|
})))();
|
|
344
397
|
}
|
|
345
398
|
//#endregion
|
|
346
|
-
//#region src/viewport/constants.ts
|
|
347
|
-
var ADDON_ID, PARAM_KEY, RESPONSIVE_VIEWPORT_VALUE;
|
|
348
|
-
function init_constants$1() {
|
|
349
|
-
return (init_constants$1 = __esmMin((() => {
|
|
350
|
-
ADDON_ID = "@aussieljk/forkbook/viewport";
|
|
351
|
-
PARAM_KEY = "viewport";
|
|
352
|
-
RESPONSIVE_VIEWPORT_VALUE = "100pct-100pct";
|
|
353
|
-
})))();
|
|
354
|
-
}
|
|
355
|
-
//#endregion
|
|
356
399
|
//#region src/shared/constants/iframe-resize.ts
|
|
357
400
|
var IFRAME_RESIZE_REQUEST_CONTEXT, isPositiveFinite, parseViewport, parseIframeResizeMessage, hasFixedViewportDimensions, iframeResizeViewportsEqual, iframeResizeDimensionsEqual;
|
|
358
401
|
function init_iframe_resize() {
|
|
@@ -408,287 +451,6 @@ function init_iframe_resize() {
|
|
|
408
451
|
})))();
|
|
409
452
|
}
|
|
410
453
|
//#endregion
|
|
411
|
-
//#region src/viewport/defaults.ts
|
|
412
|
-
var MINIMAL_VIEWPORTS;
|
|
413
|
-
function init_defaults() {
|
|
414
|
-
return (init_defaults = __esmMin((() => {
|
|
415
|
-
MINIMAL_VIEWPORTS = {
|
|
416
|
-
mobile1: {
|
|
417
|
-
name: "Small mobile",
|
|
418
|
-
styles: {
|
|
419
|
-
height: "568px",
|
|
420
|
-
width: "320px"
|
|
421
|
-
},
|
|
422
|
-
type: "mobile"
|
|
423
|
-
},
|
|
424
|
-
mobile2: {
|
|
425
|
-
name: "Large mobile",
|
|
426
|
-
styles: {
|
|
427
|
-
height: "896px",
|
|
428
|
-
width: "414px"
|
|
429
|
-
},
|
|
430
|
-
type: "mobile"
|
|
431
|
-
},
|
|
432
|
-
tablet: {
|
|
433
|
-
name: "Tablet",
|
|
434
|
-
styles: {
|
|
435
|
-
height: "1112px",
|
|
436
|
-
width: "834px"
|
|
437
|
-
},
|
|
438
|
-
type: "tablet"
|
|
439
|
-
},
|
|
440
|
-
desktop: {
|
|
441
|
-
name: "Desktop",
|
|
442
|
-
styles: {
|
|
443
|
-
height: "1024px",
|
|
444
|
-
width: "1280px"
|
|
445
|
-
},
|
|
446
|
-
type: "desktop"
|
|
447
|
-
}
|
|
448
|
-
};
|
|
449
|
-
})))();
|
|
450
|
-
}
|
|
451
|
-
//#endregion
|
|
452
|
-
//#region src/viewport/resolveViewport.ts
|
|
453
|
-
var URL_VALUE_PATTERN, normalizeGlobal$1, resolveViewport;
|
|
454
|
-
function init_resolveViewport() {
|
|
455
|
-
return (init_resolveViewport = __esmMin((() => {
|
|
456
|
-
init_constants$1();
|
|
457
|
-
URL_VALUE_PATTERN = /^([0-9]{1,4})([a-z]{0,4})-([0-9]{1,4})([a-z]{0,4})$/;
|
|
458
|
-
normalizeGlobal$1 = (value, defaultIsRotated) => typeof value === "string" ? {
|
|
459
|
-
value,
|
|
460
|
-
isRotated: defaultIsRotated
|
|
461
|
-
} : {
|
|
462
|
-
value: value?.value,
|
|
463
|
-
isRotated: value?.isRotated ?? defaultIsRotated
|
|
464
|
-
};
|
|
465
|
-
resolveViewport = ({ globals, storyGlobals, userGlobals, options, lastSelectedOption, disable = false, viewMode }) => {
|
|
466
|
-
if (viewMode !== "story") return {
|
|
467
|
-
name: "Responsive",
|
|
468
|
-
type: "desktop",
|
|
469
|
-
width: "100%",
|
|
470
|
-
height: "100%",
|
|
471
|
-
value: RESPONSIVE_VIEWPORT_VALUE,
|
|
472
|
-
option: void 0,
|
|
473
|
-
isCustom: false,
|
|
474
|
-
isDefault: true,
|
|
475
|
-
isLocked: true,
|
|
476
|
-
isRotated: false
|
|
477
|
-
};
|
|
478
|
-
const global = normalizeGlobal$1(globals?.[PARAM_KEY]);
|
|
479
|
-
const userGlobal = normalizeGlobal$1(userGlobals?.[PARAM_KEY]);
|
|
480
|
-
const storyGlobal = normalizeGlobal$1(storyGlobals?.[PARAM_KEY]);
|
|
481
|
-
const storyHasViewport = PARAM_KEY in storyGlobals;
|
|
482
|
-
const primaryGlobal = storyHasViewport ? storyGlobal : userGlobal;
|
|
483
|
-
const secondaryGlobal = storyHasViewport ? userGlobal : storyGlobal;
|
|
484
|
-
const value = primaryGlobal?.value ?? secondaryGlobal?.value ?? global?.value;
|
|
485
|
-
const isRotated = primaryGlobal?.isRotated ?? secondaryGlobal?.isRotated ?? global?.isRotated ?? false;
|
|
486
|
-
const keys = Object.keys(options);
|
|
487
|
-
const isLocked = disable || "viewport" in storyGlobals || !keys.length;
|
|
488
|
-
const [match, vx, ux, vy, uy] = value?.match(URL_VALUE_PATTERN) || [];
|
|
489
|
-
if (match) {
|
|
490
|
-
const x = ux && ux !== "px" ? vx : Math.max(Number(vx), 40);
|
|
491
|
-
const y = uy && uy !== "px" ? vy : Math.max(Number(vy), 40);
|
|
492
|
-
const width = `${x}${ux === "pct" ? "%" : ux || "px"}`;
|
|
493
|
-
const height = `${y}${uy === "pct" ? "%" : uy || "px"}`;
|
|
494
|
-
const selection = lastSelectedOption ? options[lastSelectedOption] : void 0;
|
|
495
|
-
return {
|
|
496
|
-
name: selection?.name ?? "Custom",
|
|
497
|
-
type: selection?.type ?? "other",
|
|
498
|
-
width: isRotated ? height : width,
|
|
499
|
-
height: isRotated ? width : height,
|
|
500
|
-
value: match,
|
|
501
|
-
option: void 0,
|
|
502
|
-
isCustom: true,
|
|
503
|
-
isDefault: false,
|
|
504
|
-
isLocked,
|
|
505
|
-
isRotated
|
|
506
|
-
};
|
|
507
|
-
}
|
|
508
|
-
if (value && keys.length) {
|
|
509
|
-
const { name, styles, type = "other" } = options[value] ?? options[keys[0]];
|
|
510
|
-
return {
|
|
511
|
-
name,
|
|
512
|
-
type,
|
|
513
|
-
width: isRotated ? styles.height : styles.width,
|
|
514
|
-
height: isRotated ? styles.width : styles.height,
|
|
515
|
-
value,
|
|
516
|
-
option: value,
|
|
517
|
-
isCustom: false,
|
|
518
|
-
isDefault: false,
|
|
519
|
-
isLocked,
|
|
520
|
-
isRotated
|
|
521
|
-
};
|
|
522
|
-
}
|
|
523
|
-
return {
|
|
524
|
-
name: "Responsive",
|
|
525
|
-
type: "desktop",
|
|
526
|
-
width: "100%",
|
|
527
|
-
height: "100%",
|
|
528
|
-
value: RESPONSIVE_VIEWPORT_VALUE,
|
|
529
|
-
option: void 0,
|
|
530
|
-
isCustom: false,
|
|
531
|
-
isDefault: true,
|
|
532
|
-
isLocked,
|
|
533
|
-
isRotated: false
|
|
534
|
-
};
|
|
535
|
-
};
|
|
536
|
-
})))();
|
|
537
|
-
}
|
|
538
|
-
//#endregion
|
|
539
|
-
//#region src/viewport/useViewport.ts
|
|
540
|
-
var cycle, normalizeGlobal, useViewport;
|
|
541
|
-
function init_useViewport() {
|
|
542
|
-
return (init_useViewport = __esmMin((() => {
|
|
543
|
-
init__storybook_global_react();
|
|
544
|
-
init_manager_api();
|
|
545
|
-
init_constants$1();
|
|
546
|
-
init_defaults();
|
|
547
|
-
init_resolveViewport();
|
|
548
|
-
cycle = (viewports, current, direction = 1) => {
|
|
549
|
-
const keys = Object.keys(viewports);
|
|
550
|
-
const nextIndex = (current ? keys.indexOf(current) : -1) + direction;
|
|
551
|
-
return nextIndex < 0 ? keys[keys.length - 1] : nextIndex >= keys.length ? keys[0] : keys[nextIndex];
|
|
552
|
-
};
|
|
553
|
-
normalizeGlobal = (value, defaultIsRotated) => typeof value === "string" ? {
|
|
554
|
-
value,
|
|
555
|
-
isRotated: defaultIsRotated
|
|
556
|
-
} : {
|
|
557
|
-
value: value?.value,
|
|
558
|
-
isRotated: value?.isRotated ?? defaultIsRotated
|
|
559
|
-
};
|
|
560
|
-
useViewport = () => {
|
|
561
|
-
const api = useStorybookApi();
|
|
562
|
-
const { viewMode } = api.getUrlState();
|
|
563
|
-
const lastSelectedOption = useRef();
|
|
564
|
-
const parameter = useParameter(PARAM_KEY);
|
|
565
|
-
const [globals, updateGlobals, storyGlobals, userGlobals] = useGlobals();
|
|
566
|
-
const { options = MINIMAL_VIEWPORTS, disable = false } = parameter || {};
|
|
567
|
-
const { name, type, width, height, value, option, isCustom, isDefault, isLocked, isRotated } = resolveViewport({
|
|
568
|
-
globals,
|
|
569
|
-
storyGlobals,
|
|
570
|
-
userGlobals,
|
|
571
|
-
options,
|
|
572
|
-
lastSelectedOption: lastSelectedOption.current,
|
|
573
|
-
disable,
|
|
574
|
-
viewMode
|
|
575
|
-
});
|
|
576
|
-
const update = useCallback((input) => updateGlobals({ [PARAM_KEY]: normalizeGlobal(input, false) }), [updateGlobals]);
|
|
577
|
-
const resize = useCallback((width, height) => {
|
|
578
|
-
const w = width.replace(/px$/, "").replace(/%$/, "pct");
|
|
579
|
-
const h = height.replace(/px$/, "").replace(/%$/, "pct");
|
|
580
|
-
const value = isRotated ? `${h}-${w}` : `${w}-${h}`;
|
|
581
|
-
update({
|
|
582
|
-
value,
|
|
583
|
-
isRotated
|
|
584
|
-
});
|
|
585
|
-
}, [update, isRotated]);
|
|
586
|
-
useEffect(() => {
|
|
587
|
-
if (!parameter) return;
|
|
588
|
-
if (option) {
|
|
589
|
-
if (Object.hasOwn(options, option)) lastSelectedOption.current = option;
|
|
590
|
-
else {
|
|
591
|
-
lastSelectedOption.current = void 0;
|
|
592
|
-
if (!("viewport" in storyGlobals)) update({
|
|
593
|
-
value: void 0,
|
|
594
|
-
isRotated: false
|
|
595
|
-
});
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
}, [
|
|
599
|
-
parameter,
|
|
600
|
-
storyGlobals,
|
|
601
|
-
options,
|
|
602
|
-
option,
|
|
603
|
-
update
|
|
604
|
-
]);
|
|
605
|
-
useEffect(() => {
|
|
606
|
-
api.setAddonShortcut(ADDON_ID, {
|
|
607
|
-
label: "Next viewport",
|
|
608
|
-
defaultShortcut: ["alt", "V"],
|
|
609
|
-
actionName: "next",
|
|
610
|
-
action: () => update({
|
|
611
|
-
value: cycle(options, lastSelectedOption.current),
|
|
612
|
-
isRotated
|
|
613
|
-
})
|
|
614
|
-
});
|
|
615
|
-
api.setAddonShortcut(ADDON_ID, {
|
|
616
|
-
label: "Previous viewport",
|
|
617
|
-
defaultShortcut: [
|
|
618
|
-
"alt",
|
|
619
|
-
"shift",
|
|
620
|
-
"V"
|
|
621
|
-
],
|
|
622
|
-
actionName: "previous",
|
|
623
|
-
action: () => update({
|
|
624
|
-
value: cycle(options, lastSelectedOption.current, -1),
|
|
625
|
-
isRotated
|
|
626
|
-
})
|
|
627
|
-
});
|
|
628
|
-
api.setAddonShortcut(ADDON_ID, {
|
|
629
|
-
label: "Reset viewport",
|
|
630
|
-
defaultShortcut: [
|
|
631
|
-
"alt",
|
|
632
|
-
"control",
|
|
633
|
-
"V"
|
|
634
|
-
],
|
|
635
|
-
actionName: "reset",
|
|
636
|
-
action: () => update({
|
|
637
|
-
value: void 0,
|
|
638
|
-
isRotated: false
|
|
639
|
-
})
|
|
640
|
-
});
|
|
641
|
-
}, [
|
|
642
|
-
api,
|
|
643
|
-
update,
|
|
644
|
-
options,
|
|
645
|
-
isRotated
|
|
646
|
-
]);
|
|
647
|
-
return useMemo(() => ({
|
|
648
|
-
name,
|
|
649
|
-
type,
|
|
650
|
-
width,
|
|
651
|
-
height,
|
|
652
|
-
value,
|
|
653
|
-
option,
|
|
654
|
-
isCustom,
|
|
655
|
-
isDefault,
|
|
656
|
-
isLocked,
|
|
657
|
-
isRotated,
|
|
658
|
-
options,
|
|
659
|
-
lastSelectedOption: lastSelectedOption.current,
|
|
660
|
-
resize,
|
|
661
|
-
reset: () => update({
|
|
662
|
-
value: void 0,
|
|
663
|
-
isRotated: false
|
|
664
|
-
}),
|
|
665
|
-
rotate: () => update({
|
|
666
|
-
value,
|
|
667
|
-
isRotated: !isRotated
|
|
668
|
-
}),
|
|
669
|
-
select: (value) => update({
|
|
670
|
-
value,
|
|
671
|
-
isRotated
|
|
672
|
-
})
|
|
673
|
-
}), [
|
|
674
|
-
name,
|
|
675
|
-
type,
|
|
676
|
-
width,
|
|
677
|
-
height,
|
|
678
|
-
value,
|
|
679
|
-
option,
|
|
680
|
-
isCustom,
|
|
681
|
-
isDefault,
|
|
682
|
-
isRotated,
|
|
683
|
-
isLocked,
|
|
684
|
-
options,
|
|
685
|
-
resize,
|
|
686
|
-
update
|
|
687
|
-
]);
|
|
688
|
-
};
|
|
689
|
-
})))();
|
|
690
|
-
}
|
|
691
|
-
//#endregion
|
|
692
454
|
//#region src/shared/constants/tags.ts
|
|
693
455
|
var Tag, BUILT_IN_FILTERS, USER_TAG_FILTER;
|
|
694
456
|
function init_tags() {
|
|
@@ -779,6 +541,25 @@ function init_storybook_error() {
|
|
|
779
541
|
})))();
|
|
780
542
|
}
|
|
781
543
|
//#endregion
|
|
544
|
+
//#region src/preview-errors.ts
|
|
545
|
+
var StatusTypeIdMismatchError$1;
|
|
546
|
+
function init_preview_errors() {
|
|
547
|
+
return (init_preview_errors = __esmMin((() => {
|
|
548
|
+
init_storybook_error();
|
|
549
|
+
StatusTypeIdMismatchError$1 = class extends StorybookError {
|
|
550
|
+
constructor(data) {
|
|
551
|
+
super({
|
|
552
|
+
name: "StatusTypeIdMismatchError",
|
|
553
|
+
category: "PREVIEW_API",
|
|
554
|
+
code: 16,
|
|
555
|
+
message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify(data.status, null, 2)}`
|
|
556
|
+
});
|
|
557
|
+
this.data = data;
|
|
558
|
+
}
|
|
559
|
+
};
|
|
560
|
+
})))();
|
|
561
|
+
}
|
|
562
|
+
//#endregion
|
|
782
563
|
//#region src/server-errors.ts
|
|
783
564
|
var StatusTypeIdMismatchError;
|
|
784
565
|
function init_server_errors() {
|
|
@@ -863,11 +644,11 @@ function createStatusStore({ universalStatusStore, useUniversalStore, environmen
|
|
|
863
644
|
status,
|
|
864
645
|
typeId
|
|
865
646
|
});
|
|
866
|
-
case "manager": throw new StatusTypeIdMismatchError$
|
|
647
|
+
case "manager": throw new StatusTypeIdMismatchError$2({
|
|
867
648
|
status,
|
|
868
649
|
typeId
|
|
869
650
|
});
|
|
870
|
-
default: throw new StatusTypeIdMismatchError$
|
|
651
|
+
default: throw new StatusTypeIdMismatchError$1({
|
|
871
652
|
status,
|
|
872
653
|
typeId
|
|
873
654
|
});
|
|
@@ -1403,4 +1184,4 @@ function init_use_universal_store_manager() {
|
|
|
1403
1184
|
})))();
|
|
1404
1185
|
}
|
|
1405
1186
|
//#endregion
|
|
1406
|
-
export {
|
|
1187
|
+
export { REVIEW_COLLECTION_QUERY_PARAM as A, REVIEW_EVENTS as C, useSyncExternalStoreWithSelector as D, init_with_selector as E, init_ToolbarManager as F, TOOLBAR_ID as I, init_constants as L, isReviewCollectionStoryRoute as M, isReviewSummaryPath as N, init_useCopyButton as O, ToolbarManager as P, global as R, parseIframeResizeMessage as S, init_events as T, init_tags as _, UNIVERSAL_STATUS_STORE_OPTIONS as a, iframeResizeDimensionsEqual as b, init_status_store as c, StorybookError as d, init_storybook_error as f, USER_TAG_FILTER as g, BUILT_IN_FILTERS as h, init_universal_store as i, init_routes as j, useCopyButton as k, statusValueDescription as l, init_story_index_filters as m, useUniversalStore as n, countStatusesByValue as o, getActiveFilterCount as p, UniversalStore as r, createStatusStore as s, init_use_universal_store_manager as t, statusValueShortName as u, IFRAME_RESIZE_REQUEST_CONTEXT as v, REVIEW_NAMESPACE as w, init_iframe_resize as x, hasFixedViewportDimensions as y, init_global as z };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as curriedTransparentize$1, o as init_polished_esm, s as require_memoizerific } from "./runtime-
|
|
5
|
-
import { c as UseSymbol, d as menuTool, f as UpgradeBlock, i as init_Sidebar, l as init_IconSymbols, n as renderStorybookUI, p as init_UpgradeBlock, t as init_manager, u as init_menu } from "./runtime-
|
|
6
|
-
import { c as init_clsx, s as clsx } from "./runtime-
|
|
1
|
+
import { a as __toESM, n as __esmMin } from "./runtime-BdGkqNEt.js";
|
|
2
|
+
import { $ as ScrollArea, Bn as WarningIcon, Bt as types, Cn as GithubLogoIcon, Ct as init_theming, Dr as useState, Et as Consumer, Gn as CHANNEL_WS_DISCONNECT, Hn as XIcon, K as ForkbookLogo, Kt as useStorybookApi, Ot as addons, Pt as init_manager_api, Rt as shortcutMatchesShortcut, T as init_router, Tn as HeartIcon, Tt as useTheme, Un as init_react, Vn as XCircleIcon, Wn as CHANNEL_CREATED, X as Loader, Y as Link, _n as EyeSlashIcon, _r as useCallback, a as init_types, ar as Component, br as useEffect, cn as CheckIcon, dt as Tooltip, gn as EyeIcon, ht as init_components, i as REVIEW_STATUS_TYPE_ID, kt as eventToShortcut, lt as TabsView, mr as init__storybook_global_react, n as CHANGE_DETECTION_STATUS_TYPE_ID, nr as createBrowserChannel, or as Fragment, pt as TooltipProvider, q as Form, qt as useStorybookState, r as NON_AGGREGATED_STATUS_TYPE_IDS, rr as init_channels, sr as _storybook_global_react_default, t as Addon_TypesEnum, tr as init_core_events, un as CircleIcon, vn as FileTextIcon, w as Route, wr as useMemo, x as Location, yt as color, z as Button, zt as shortcutToHumanString } from "./runtime-Dtpc5s3G.js";
|
|
3
|
+
import { F as init_ToolbarManager, I as TOOLBAR_ID, L as init_constants, O as init_useCopyButton, P as ToolbarManager, R as global, k as useCopyButton, z as init_global } from "./runtime-BrlctLSK.js";
|
|
4
|
+
import { a as curriedTransparentize$1, o as init_polished_esm, s as require_memoizerific } from "./runtime-DuptfEhw.js";
|
|
5
|
+
import { c as UseSymbol, d as menuTool, f as UpgradeBlock, i as init_Sidebar, l as init_IconSymbols, n as renderStorybookUI, p as init_UpgradeBlock, t as init_manager, u as init_menu } from "./runtime-B_U-7omv.js";
|
|
6
|
+
import { c as init_clsx, s as clsx } from "./runtime-DEHcqyTM.js";
|
|
7
7
|
//#region src/manager/utils/tree.ts
|
|
8
8
|
function getPath(item, ref) {
|
|
9
9
|
const parent = item.type !== "root" && item.parent ? ref.index[item.parent] : null;
|
|
@@ -16,7 +16,7 @@ function cycle(array, index, delta) {
|
|
|
16
16
|
if (next >= array.length) next -= array.length;
|
|
17
17
|
return next;
|
|
18
18
|
}
|
|
19
|
-
var import_memoizerific$1, document$3, globalWindow, createId, getLink, get, getParent, getParents, getAncestorIds, getDescendantIds, searchItem, scrollIntoView, getStateType, isAncestor, removeNoiseFromName, isStoryHoistable;
|
|
19
|
+
var import_memoizerific$1, document$3, globalWindow, createId, getLink, get, getParent, getParents, getAncestorIds, getDescendantIds, searchItem, scrollIntoView, getStateType, isAncestor, removeNoiseFromName, isStoryHoistable, getHoistedComponents;
|
|
20
20
|
function init_tree() {
|
|
21
21
|
return (init_tree = __esmMin((() => {
|
|
22
22
|
init_global();
|
|
@@ -76,6 +76,30 @@ function init_tree() {
|
|
|
76
76
|
};
|
|
77
77
|
removeNoiseFromName = (storyName) => storyName.replaceAll(/(\s|-|_)/gi, "");
|
|
78
78
|
isStoryHoistable = (storyName, componentName) => removeNoiseFromName(storyName) === removeNoiseFromName(componentName);
|
|
79
|
+
getHoistedComponents = (data) => {
|
|
80
|
+
const hoisted = {};
|
|
81
|
+
const hiddenIds = [];
|
|
82
|
+
Object.values(data).forEach((entry) => {
|
|
83
|
+
if (entry.type !== "component") return;
|
|
84
|
+
const children = (entry.children ?? []).map((id) => data[id]).filter(Boolean);
|
|
85
|
+
const stories = children.filter((child) => child.type === "story");
|
|
86
|
+
const docs = children.filter((child) => child.type === "docs");
|
|
87
|
+
if (children.length === 1 && docs.length === 1) {
|
|
88
|
+
hoisted[entry.id] = docs[0].id;
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const [story] = stories;
|
|
92
|
+
const autodocs = docs.filter((child) => child.tags?.includes("autodocs"));
|
|
93
|
+
if (stories.length === 1 && story.type === "story" && story.subtype === "story" && docs.length === autodocs.length && children.length === 1 + docs.length && docs.length <= 1 && isStoryHoistable(story.name, entry.name)) {
|
|
94
|
+
hoisted[entry.id] = story.id;
|
|
95
|
+
hiddenIds.push(...docs.map((child) => child.id));
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
return {
|
|
99
|
+
hoisted,
|
|
100
|
+
hiddenIds
|
|
101
|
+
};
|
|
102
|
+
};
|
|
79
103
|
})))();
|
|
80
104
|
}
|
|
81
105
|
//#endregion
|
|
@@ -91,8 +115,8 @@ function init_status_module() {
|
|
|
91
115
|
document.head.appendChild(style);
|
|
92
116
|
}
|
|
93
117
|
status_module_default = {
|
|
94
|
-
"
|
|
95
|
-
"
|
|
118
|
+
"loadingIcon": "fb-HwMO1a-loadingIcon",
|
|
119
|
+
"glow": "fb-HwMO1a-glow"
|
|
96
120
|
};
|
|
97
121
|
})))();
|
|
98
122
|
}
|
|
@@ -352,11 +376,11 @@ function init_About_module() {
|
|
|
352
376
|
document.head.appendChild(style);
|
|
353
377
|
}
|
|
354
378
|
About_module_default = {
|
|
379
|
+
"container": "fb-v5QLGG-container",
|
|
380
|
+
"link": "fb-v5QLGG-link",
|
|
355
381
|
"header": "fb-v5QLGG-header",
|
|
356
382
|
"footer": "fb-v5QLGG-footer",
|
|
357
|
-
"
|
|
358
|
-
"actions": "fb-v5QLGG-actions",
|
|
359
|
-
"link": "fb-v5QLGG-link"
|
|
383
|
+
"actions": "fb-v5QLGG-actions"
|
|
360
384
|
};
|
|
361
385
|
})))();
|
|
362
386
|
}
|
|
@@ -479,17 +503,17 @@ function init_shortcuts_module() {
|
|
|
479
503
|
document.head.appendChild(style);
|
|
480
504
|
}
|
|
481
505
|
shortcuts_module_default = {
|
|
506
|
+
"header": "fb-5Bi54W-header",
|
|
482
507
|
"successIcon": "fb-5Bi54W-successIcon",
|
|
483
508
|
"row": "fb-5Bi54W-row",
|
|
484
|
-
"
|
|
485
|
-
"textInput": "fb-5Bi54W-textInput",
|
|
509
|
+
"fade": "fb-5Bi54W-fade",
|
|
486
510
|
"container": "fb-5Bi54W-container",
|
|
511
|
+
"textInput": "fb-5Bi54W-textInput",
|
|
487
512
|
"jiggle": "fb-5Bi54W-jiggle",
|
|
488
|
-
"gridHeaderRow": "fb-5Bi54W-gridHeaderRow",
|
|
489
513
|
"description": "fb-5Bi54W-description",
|
|
490
|
-
"
|
|
491
|
-
"
|
|
492
|
-
"
|
|
514
|
+
"gridHeaderRow": "fb-5Bi54W-gridHeaderRow",
|
|
515
|
+
"headerItem": "fb-5Bi54W-headerItem",
|
|
516
|
+
"gridWrapper": "fb-5Bi54W-gridWrapper"
|
|
493
517
|
};
|
|
494
518
|
})))();
|
|
495
519
|
}
|
|
@@ -692,12 +716,12 @@ function init_whats_new_module() {
|
|
|
692
716
|
document.head.appendChild(style);
|
|
693
717
|
}
|
|
694
718
|
whats_new_module_default = {
|
|
695
|
-
"footer": "fb-wRVF8a-footer",
|
|
696
719
|
"iframe": "fb-wRVF8a-iframe",
|
|
720
|
+
"alertIcon": "fb-wRVF8a-alertIcon",
|
|
721
|
+
"message": "fb-wRVF8a-message",
|
|
697
722
|
"centered": "fb-wRVF8a-centered",
|
|
698
723
|
"loaderWrapper": "fb-wRVF8a-loaderWrapper",
|
|
699
|
-
"
|
|
700
|
-
"alertIcon": "fb-wRVF8a-alertIcon"
|
|
724
|
+
"footer": "fb-wRVF8a-footer"
|
|
701
725
|
};
|
|
702
726
|
})))();
|
|
703
727
|
}
|
|
@@ -975,4 +999,4 @@ function init_runtime() {
|
|
|
975
999
|
})))();
|
|
976
1000
|
}
|
|
977
1001
|
//#endregion
|
|
978
|
-
export {
|
|
1002
|
+
export { getLink as C, scrollIntoView as D, isAncestor as E, searchItem as O, getHoistedComponents as S, init_tree as T, statusPriority as _, init_provider as a, getAncestorIds as b, matchesModifiers as c, getGroupStatus as d, getMostCriticalStatusValue as f, shouldShowChangeStatus as g, init_status as h, Provider as i, getChangeDetectionStatus as l, getStatus as m, init_settings as n, init_keybinding as o, getSidebarVisibleStatus as p, settingsPageAddon as r, matchesKeyCode as s, init_runtime as t, getGroupDualStatus as u, createId as v, getStateType as w, getDescendantIds as x, cycle as y };
|