@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,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
resolvePackageDir
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
15
|
-
import "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-UBEILYLL.js";
|
|
15
|
+
import "../_node-chunks/chunk-3KKSPEAE.js";
|
|
16
16
|
import {
|
|
17
17
|
__commonJS,
|
|
18
18
|
__require,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-OZBNKCKM.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/lilconfig/src/index.js
|
|
23
23
|
var require_src = __commonJS({
|
|
@@ -458,7 +458,7 @@ var require_src2 = __commonJS({
|
|
|
458
458
|
async function yamlLoader(_, content) {
|
|
459
459
|
if (!yaml)
|
|
460
460
|
try {
|
|
461
|
-
yaml = await import("../_node-chunks/dist-
|
|
461
|
+
yaml = await import("../_node-chunks/dist-TLMACGH6.js");
|
|
462
462
|
} catch (e) {
|
|
463
463
|
throw new Error(
|
|
464
464
|
`'yaml' is required for the YAML configuration files. Make sure it is installed
|
|
@@ -521,6 +521,81 @@ import { fileURLToPath } from "node:url";
|
|
|
521
521
|
import semver from "semver";
|
|
522
522
|
import vitePluginStorybookNextjs from "@aussieljk/forkbook/internal/nextjs-vite-plugin";
|
|
523
523
|
|
|
524
|
+
// src/nextjs-vite/node-stand-ins/plugin.ts
|
|
525
|
+
import { join } from "node:path";
|
|
526
|
+
var STAND_INS = "@aussieljk/forkbook/nextjs-vite/node-stand-ins", TEXT_EXTENSIONS = [
|
|
527
|
+
"md",
|
|
528
|
+
"markdown",
|
|
529
|
+
"txt",
|
|
530
|
+
"json",
|
|
531
|
+
"yml",
|
|
532
|
+
"yaml",
|
|
533
|
+
"toml",
|
|
534
|
+
"csv",
|
|
535
|
+
"tsv",
|
|
536
|
+
"html",
|
|
537
|
+
"xml"
|
|
538
|
+
], IGNORED_FOLDERS = [
|
|
539
|
+
"node_modules",
|
|
540
|
+
".next",
|
|
541
|
+
"dist",
|
|
542
|
+
".git",
|
|
543
|
+
"forkbook-static",
|
|
544
|
+
"coverage"
|
|
545
|
+
], FS_IDS = /* @__PURE__ */ new Set(["fs", "node:fs", "fs/promises", "node:fs/promises"]), PATH_IDS = /* @__PURE__ */ new Set(["path", "node:path", "path/posix", "node:path/posix"]), PATH_EXPORTS = [
|
|
546
|
+
"sep",
|
|
547
|
+
"delimiter",
|
|
548
|
+
"isAbsolute",
|
|
549
|
+
"normalize",
|
|
550
|
+
"join",
|
|
551
|
+
"resolve",
|
|
552
|
+
"dirname",
|
|
553
|
+
"basename",
|
|
554
|
+
"extname",
|
|
555
|
+
"relative",
|
|
556
|
+
"parse",
|
|
557
|
+
"format"
|
|
558
|
+
];
|
|
559
|
+
function fsModuleCode(root, promisesOnly) {
|
|
560
|
+
let patterns = [
|
|
561
|
+
`./**/*.{${TEXT_EXTENSIONS.join(",")}}`,
|
|
562
|
+
...IGNORED_FOLDERS.map((folder) => `!**/${folder}/**`)
|
|
563
|
+
], fsExports = promisesOnly ? `export const readFile = fs.promises.readFile;
|
|
564
|
+
export const access = fs.promises.access;
|
|
565
|
+
export default fs.promises;` : `export const { readFileSync, existsSync, readFile, promises } = fs;
|
|
566
|
+
export default fs;`;
|
|
567
|
+
return [
|
|
568
|
+
`import { createFs, setProjectRoot } from ${JSON.stringify(STAND_INS)};`,
|
|
569
|
+
`setProjectRoot(${JSON.stringify(root)});`,
|
|
570
|
+
`const files = import.meta.glob(${JSON.stringify(patterns)}, { query: '?raw', import: 'default', eager: true });`,
|
|
571
|
+
"const fs = createFs(files);",
|
|
572
|
+
fsExports
|
|
573
|
+
].join(`
|
|
574
|
+
`);
|
|
575
|
+
}
|
|
576
|
+
function pathModuleCode(root) {
|
|
577
|
+
return [
|
|
578
|
+
`import { path, setProjectRoot } from ${JSON.stringify(STAND_INS)};`,
|
|
579
|
+
`setProjectRoot(${JSON.stringify(root)});`,
|
|
580
|
+
`export const { ${[...PATH_EXPORTS, "posix"].join(", ")} } = path;`,
|
|
581
|
+
"export default path;"
|
|
582
|
+
].join(`
|
|
583
|
+
`);
|
|
584
|
+
}
|
|
585
|
+
function nodeStandInsPlugin(projectRoot) {
|
|
586
|
+
let root = projectRoot.replace(/\\/g, "/"), fsId = join(projectRoot, "__forkbook_node_fs__.js").replace(/\\/g, "/"), fsPromisesId = join(projectRoot, "__forkbook_node_fs_promises__.js").replace(/\\/g, "/"), pathId = "\0forkbook-node-path.js";
|
|
587
|
+
return {
|
|
588
|
+
name: "forkbook:nextjs-node-stand-ins",
|
|
589
|
+
enforce: "pre",
|
|
590
|
+
resolveId(id, _importer, options) {
|
|
591
|
+
return options?.ssr ? null : id === "fs/promises" || id === "node:fs/promises" ? fsPromisesId : FS_IDS.has(id) ? fsId : PATH_IDS.has(id) ? pathId : null;
|
|
592
|
+
},
|
|
593
|
+
load(id) {
|
|
594
|
+
return id === fsId ? fsModuleCode(root, !1) : id === fsPromisesId ? fsModuleCode(root, !0) : id === pathId ? pathModuleCode(root) : null;
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
|
|
524
599
|
// src/nextjs-vite/find-postcss-config.ts
|
|
525
600
|
var import_lilconfig = __toESM(require_src(), 1), import_postcss_load_config = __toESM(require_src2(), 1);
|
|
526
601
|
import { readFile, writeFile } from "node:fs/promises";
|
|
@@ -597,8 +672,8 @@ var normalizePostCssConfig = async (searchPath) => {
|
|
|
597
672
|
|
|
598
673
|
// src/nextjs-vite/utils.ts
|
|
599
674
|
import { readFileSync } from "node:fs";
|
|
600
|
-
import { join } from "node:path";
|
|
601
|
-
var getNextjsVersion = () => JSON.parse(readFileSync(
|
|
675
|
+
import { join as join2 } from "node:path";
|
|
676
|
+
var getNextjsVersion = () => JSON.parse(readFileSync(join2(resolvePackageDir("next"), "package.json"), "utf8")).version;
|
|
602
677
|
|
|
603
678
|
// src/nextjs-vite/preset.ts
|
|
604
679
|
var core = {
|
|
@@ -637,7 +712,11 @@ var core = {
|
|
|
637
712
|
"styled-jsx/style.js": fileURLToPath(import.meta.resolve("styled-jsx/style"))
|
|
638
713
|
}
|
|
639
714
|
},
|
|
640
|
-
plugins: [
|
|
715
|
+
plugins: [
|
|
716
|
+
...config2.plugins ?? [],
|
|
717
|
+
vitePluginStorybookNextjs(vitePluginOptions),
|
|
718
|
+
nodeStandInsPlugin(nextDir ?? config2.root ?? process.cwd())
|
|
719
|
+
]
|
|
641
720
|
};
|
|
642
721
|
};
|
|
643
722
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "../../_node-chunks/chunk-
|
|
12
|
+
import "../../_node-chunks/chunk-OZBNKCKM.js";
|
|
13
13
|
|
|
14
14
|
// src/nextjs-vite/vite-plugin/index.ts
|
|
15
15
|
import vitePluginStorybookNextjs from "@aussieljk/forkbook/internal/nextjs-vite-plugin";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
getNextjsMajorVersion,
|
|
17
17
|
isVitestEnv,
|
|
18
18
|
vitePluginNextMocks
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
20
|
-
import "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-BPMXWGDX.js";
|
|
20
|
+
import "../_node-chunks/chunk-OZBNKCKM.js";
|
|
21
21
|
|
|
22
22
|
// src/nextjs-vite-plugin/index.ts
|
|
23
23
|
import { dirname, resolve as resolve3 } from "pathe";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,8 +12,8 @@ var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
getAlias,
|
|
14
14
|
getAlias2
|
|
15
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
-
import "../../_node-chunks/chunk-
|
|
15
|
+
} from "../../_node-chunks/chunk-BPMXWGDX.js";
|
|
16
|
+
import "../../_node-chunks/chunk-OZBNKCKM.js";
|
|
17
17
|
|
|
18
18
|
// src/nextjs-vite-plugin/mocks/storybook.global.ts
|
|
19
19
|
import { createRequire } from "node:module";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
prettyTime,
|
|
23
23
|
prompt,
|
|
24
24
|
protectUrls
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-2ZB3ZVDY.js";
|
|
26
|
+
import "../_node-chunks/chunk-27R37QFW.js";
|
|
27
|
+
import "../_node-chunks/chunk-OZBNKCKM.js";
|
|
28
28
|
export {
|
|
29
29
|
CLI_COLORS,
|
|
30
30
|
ConsoleLogger,
|
package/dist/oxc-parser/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,10 +12,10 @@ var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
OxcParseError,
|
|
14
14
|
oxcParse
|
|
15
|
-
} from "../_node-chunks/chunk-
|
|
16
|
-
import "../_node-chunks/chunk-
|
|
17
|
-
import "../_node-chunks/chunk-
|
|
18
|
-
import "../_node-chunks/chunk-
|
|
15
|
+
} from "../_node-chunks/chunk-UCBUYT7S.js";
|
|
16
|
+
import "../_node-chunks/chunk-VQ2NW4OR.js";
|
|
17
|
+
import "../_node-chunks/chunk-27R37QFW.js";
|
|
18
|
+
import "../_node-chunks/chunk-OZBNKCKM.js";
|
|
19
19
|
|
|
20
20
|
// src/oxc-parser/index.ts
|
|
21
21
|
import { parseSync as oxcRawParseSync } from "rolldown/utils";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
oxcParse
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
15
|
-
import "../_node-chunks/chunk-
|
|
16
|
-
import "../_node-chunks/chunk-
|
|
17
|
-
import "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-UCBUYT7S.js";
|
|
15
|
+
import "../_node-chunks/chunk-VQ2NW4OR.js";
|
|
16
|
+
import "../_node-chunks/chunk-27R37QFW.js";
|
|
17
|
+
import "../_node-chunks/chunk-OZBNKCKM.js";
|
|
18
18
|
|
|
19
19
|
// src/oxc-parser/worker.ts
|
|
20
20
|
import { parentPort } from "node:worker_threads";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as combineArgs, Bt as simulateDOMContentLoaded, Ec as Tag, Ft as getService, Gt as PreviewWithSelection, Ht as WebView, It as registerService, Jt as Preview, Kt as View, Lt as pauseAnimations, Qt as userOrAutoTitleFromSpecifier, Rt as waitForAnimations, Ut as UrlStore, Vt as simulatePageLoad, Wt as PreviewWeb, Xt as sortStoriesV7, Yt as DocsContext, Zt as userOrAutoTitle, _n as makeDecorator, an as filterArgTypes, cn as composeStories, dn as setProjectAnnotations, en as decorateStory, fn as composeStepRunners, gn as normalizeStory, hn as normalizeProjectAnnotations, in as PropDescriptor, ln as composeStory, mn as normalizeArrays, nn as sanitizeStoryContextUpdate, on as combineParameters, pn as composeConfigs, qt as SelectionStore, rn as inferControls, sn as getCsfFactoryAnnotations, tn as defaultDecorateStory, un as setDefaultProjectAnnotations, vn as addons, zt as emitTransformCode } from "../chunk-
|
|
1
|
+
import { $t as combineArgs, Bt as simulateDOMContentLoaded, Ec as Tag, Ft as getService, Gt as PreviewWithSelection, Ht as WebView, It as registerService, Jt as Preview, Kt as View, Lt as pauseAnimations, Qt as userOrAutoTitleFromSpecifier, Rt as waitForAnimations, Ut as UrlStore, Vt as simulatePageLoad, Wt as PreviewWeb, Xt as sortStoriesV7, Yt as DocsContext, Zt as userOrAutoTitle, _n as makeDecorator, an as filterArgTypes, cn as composeStories, dn as setProjectAnnotations, en as decorateStory, fn as composeStepRunners, gn as normalizeStory, hn as normalizeProjectAnnotations, in as PropDescriptor, ln as composeStory, mn as normalizeArrays, nn as sanitizeStoryContextUpdate, on as combineParameters, pn as composeConfigs, qt as SelectionStore, rn as inferControls, sn as getCsfFactoryAnnotations, tn as defaultDecorateStory, un as setDefaultProjectAnnotations, vn as addons, zt as emitTransformCode } from "../chunk-DktrsDd6.js";
|
|
2
2
|
import { c as ensureChannel, f as setChannel, l as getChannel, s as clearChannel, u as installNoopChannel } from "../chunk-BXLImeLy.js";
|
|
3
3
|
import { C as useStoryContext, S as useState, _ as useGlobals, a as StoryStore, b as useReducer, c as prepareMeta, d as HooksContext, f as applyHooks, g as useEffect, h as useChannel, l as prepareStory, m as useCallback, o as Report, p as useArgs, s as ReporterAPI, v as useMemo, x as useRef, y as useParameter } from "../chunk-Bpi2tz-6.js";
|
|
4
4
|
export { DocsContext, HooksContext, Preview, PreviewWeb, PreviewWithSelection, type PropDescriptor, type Report, ReporterAPI, type SelectionStore, StoryStore, Tag, UrlStore, type View, WebView, addons, applyHooks, clearChannel, combineArgs, combineParameters, composeConfigs, composeStepRunners, composeStories, composeStory, decorateStory, defaultDecorateStory, emitTransformCode, ensureChannel, filterArgTypes, getChannel, getCsfFactoryAnnotations, getService, inferControls, installNoopChannel, makeDecorator, normalizeArrays, normalizeProjectAnnotations, normalizeStory, pauseAnimations, prepareMeta, prepareStory, registerService, sanitizeStoryContextUpdate, setChannel, setDefaultProjectAnnotations, setProjectAnnotations, simulateDOMContentLoaded, simulatePageLoad, sortStoriesV7, useArgs, useCallback, useChannel, useEffect, useGlobals, useMemo, useParameter, useReducer, useRef, useState, useStoryContext, userOrAutoTitle, userOrAutoTitleFromSpecifier, waitForAnimations };
|
package/dist/preview-errors.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,11 +12,11 @@ var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
ComponentMetaManager,
|
|
14
14
|
buildDocgenPayload
|
|
15
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
-
import "../../_node-chunks/chunk-
|
|
17
|
-
import "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
19
|
-
import "../../_node-chunks/chunk-
|
|
15
|
+
} from "../../_node-chunks/chunk-DSWCMXKR.js";
|
|
16
|
+
import "../../_node-chunks/chunk-JB5Q4WGX.js";
|
|
17
|
+
import "../../_node-chunks/chunk-4QYNOSOA.js";
|
|
18
|
+
import "../../_node-chunks/chunk-4U5ZQZJ4.js";
|
|
19
|
+
import "../../_node-chunks/chunk-OZBNKCKM.js";
|
|
20
20
|
|
|
21
21
|
// src/react/docgen/docgen-worker.ts
|
|
22
22
|
import { createLazyDocgenMiddleware } from "@aussieljk/forkbook/internal/common";
|
package/dist/react/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -17,15 +17,15 @@ import {
|
|
|
17
17
|
getCodeSnippet,
|
|
18
18
|
invalidateCache,
|
|
19
19
|
resolveStoryFileComponents
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
21
|
-
import "../_node-chunks/chunk-
|
|
22
|
-
import "../_node-chunks/chunk-
|
|
23
|
-
import "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-DSWCMXKR.js";
|
|
21
|
+
import "../_node-chunks/chunk-JB5Q4WGX.js";
|
|
22
|
+
import "../_node-chunks/chunk-4QYNOSOA.js";
|
|
23
|
+
import "../_node-chunks/chunk-4U5ZQZJ4.js";
|
|
24
24
|
import {
|
|
25
25
|
resolvePackageDir
|
|
26
|
-
} from "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
26
|
+
} from "../_node-chunks/chunk-UBEILYLL.js";
|
|
27
|
+
import "../_node-chunks/chunk-3KKSPEAE.js";
|
|
28
|
+
import "../_node-chunks/chunk-OZBNKCKM.js";
|
|
29
29
|
|
|
30
30
|
// src/react/preset.ts
|
|
31
31
|
import path3, { join as join2 } from "node:path";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
12
12
|
// ------------------------------------------------------------
|
|
13
13
|
import {
|
|
14
14
|
generate
|
|
15
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
-
import "../../_node-chunks/chunk-
|
|
15
|
+
} from "../../_node-chunks/chunk-KQBTXUT5.js";
|
|
16
|
+
import "../../_node-chunks/chunk-OZBNKCKM.js";
|
|
17
17
|
|
|
18
18
|
// src/react-native/bin/get-stories.ts
|
|
19
19
|
import { program } from "commander";
|
|
20
|
-
program.description("
|
|
20
|
+
program.description("Writes the forkbook.requires file of a React Native Forkbook").option(
|
|
21
21
|
"-c, --config-path <path>",
|
|
22
22
|
"The path to your config folder relative to your project-dir",
|
|
23
|
-
"./.
|
|
24
|
-
).option("-j, --use-js", "Use a js file for
|
|
23
|
+
"./.rnforkbook"
|
|
24
|
+
).option("-j, --use-js", "Use a js file for forkbook.requires").option("-D, --no-doc-tools", "Do not include doc tools in the forkbook.requires file").option(
|
|
25
25
|
"-w, --host <host>",
|
|
26
|
-
"Host for websockets, the value 'auto'
|
|
26
|
+
"Host for websockets, the value 'auto' tells Forkbook to use your local ip address"
|
|
27
27
|
).option("-p, --port <port>", "Port for websockets", (value) => {
|
|
28
28
|
let port = parseInt(value, 10);
|
|
29
29
|
if (isNaN(port))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StoryContext } from "@aussieljk/forkbook/internal/csf";
|
|
2
2
|
import { Channel } from "@aussieljk/forkbook/internal/channels";
|
|
3
|
-
import { Addon_StorySortParameterV7, ModuleExports, NormalizedProjectAnnotations, NormalizedStoriesSpecifier, PreparedStory, StoryIndex
|
|
3
|
+
import { Addon_StorySortParameterV7, ForkbookConfig as ForkbookConfig$1, ModuleExports, NormalizedProjectAnnotations, NormalizedStoriesSpecifier, PreparedStory, StoryIndex } from "@aussieljk/forkbook/internal/types";
|
|
4
4
|
import { ArgTypes, Args, Decorator, Loader, Meta, Parameters, Preview, ReactRenderer, StoryFn, StoryObj } from "@aussieljk/forkbook/react";
|
|
5
5
|
import { Theme, Theme as Theme$1, darkTheme, theme } from "@aussieljk/forkbook/internal/react-native-theming";
|
|
6
6
|
import { SBUI } from "@aussieljk/forkbook/internal/react-native-ui-common";
|
|
@@ -35,7 +35,7 @@ type Params = {
|
|
|
35
35
|
hasStoryWrapper?: boolean;
|
|
36
36
|
/**
|
|
37
37
|
* Enable websockets for the storybook server to remotely control the storybook
|
|
38
|
-
* default: automatically enabled when a websocket config is injected via
|
|
38
|
+
* default: automatically enabled when a websocket config is injected via forkbook.requires (i.e. when FORKBOOK_WS_HOST is set), otherwise false
|
|
39
39
|
*/
|
|
40
40
|
enableWebsockets?: boolean;
|
|
41
41
|
query?: string; /** The host for the websocket server. default: localhost */
|
|
@@ -78,7 +78,7 @@ declare class View {
|
|
|
78
78
|
_isSecureConnection: (params?: Partial<Params>) => boolean;
|
|
79
79
|
_getServerChannel: (params?: Partial<Params>) => Channel;
|
|
80
80
|
createPreparedStoryMapping: () => Promise<void>;
|
|
81
|
-
|
|
81
|
+
getForkbookUI: (params?: Partial<Params>) => () => import("react").JSX.Element;
|
|
82
82
|
}
|
|
83
83
|
//#endregion
|
|
84
84
|
//#region .dts-emit/code/core/src/react-native/prepareStories.d.ts
|
|
@@ -142,19 +142,19 @@ type Addon = string | {
|
|
|
142
142
|
name: string;
|
|
143
143
|
options?: Record<string, any>;
|
|
144
144
|
};
|
|
145
|
-
interface
|
|
146
|
-
stories:
|
|
145
|
+
interface ForkbookConfig {
|
|
146
|
+
stories: ForkbookConfig$1['stories'];
|
|
147
147
|
/** @deprecated Use `deviceAddons`. This field will be removed in a future version. */
|
|
148
148
|
addons?: Addon[];
|
|
149
149
|
/**
|
|
150
150
|
* Addons loaded only at runtime on the device and merged into
|
|
151
|
-
* `
|
|
151
|
+
* `forkbook.requires`. Not evaluated as presets by Forkbook, which
|
|
152
152
|
* avoids failures during server-side operations like `extract`.
|
|
153
153
|
*/
|
|
154
154
|
deviceAddons?: Addon[];
|
|
155
155
|
reactNative?: ReactNativeOptions;
|
|
156
156
|
features?: Features;
|
|
157
|
-
framework?: '@aussieljk/forkbook/react-native'
|
|
157
|
+
framework?: '@aussieljk/forkbook/react-native';
|
|
158
158
|
}
|
|
159
159
|
//#endregion
|
|
160
|
-
export { type Addon, type ArgTypes, type Args, type Decorator, FORKBOOK_STORY_ID_PARAM, type Features, type InitialSelection, type Loader, type Meta, type Parameters, type Params, type Preview, RN_FORKBOOK_EVENTS, RN_FORKBOOK_STORAGE_KEY, type Storage, type StoryFn, type StoryObj, type
|
|
160
|
+
export { type Addon, type ArgTypes, type Args, type Decorator, FORKBOOK_STORY_ID_PARAM, type Features, type ForkbookConfig, type InitialSelection, type Loader, type Meta, type Parameters, type Params, type Preview, RN_FORKBOOK_EVENTS, RN_FORKBOOK_STORAGE_KEY, type Storage, type StoryFn, type StoryObj, type Theme, type ThemePartial, type View, darkTheme, getProjectAnnotations, prepareStories, start, theme, updateView };
|
|
@@ -835,7 +835,7 @@ var View3 = class {
|
|
|
835
835
|
)
|
|
836
836
|
);
|
|
837
837
|
};
|
|
838
|
-
this.
|
|
838
|
+
this.getForkbookUI = (params = {}) => {
|
|
839
839
|
let {
|
|
840
840
|
enableWebsockets = !!globalThis.FORKBOOK_WEBSOCKET,
|
|
841
841
|
CustomUIComponent,
|
|
@@ -911,8 +911,8 @@ var View3 = class {
|
|
|
911
911
|
)
|
|
912
912
|
), self._ready = !0, setReady(!0);
|
|
913
913
|
}).catch((e) => console.error(e)), self._setStory = (newStory) => {
|
|
914
|
-
if (setContext(newStory), shouldPersistSelection && !params.storage && console.warn(dedent`Please set storage in
|
|
915
|
-
const
|
|
914
|
+
if (setContext(newStory), shouldPersistSelection && !params.storage && console.warn(dedent`Please set storage in getForkbookUI like this:
|
|
915
|
+
const ForkbookUIRoot = view.getForkbookUI({
|
|
916
916
|
storage: {
|
|
917
917
|
getItem: AsyncStorage.getItem,
|
|
918
918
|
setItem: AsyncStorage.setItem,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,10 +12,10 @@ var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
buildIndex,
|
|
14
14
|
createChannelServer
|
|
15
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
-
import "../../_node-chunks/chunk-
|
|
17
|
-
import "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
15
|
+
} from "../../_node-chunks/chunk-XTCOGCTP.js";
|
|
16
|
+
import "../../_node-chunks/chunk-QVIC3UDL.js";
|
|
17
|
+
import "../../_node-chunks/chunk-IVU4D6LF.js";
|
|
18
|
+
import "../../_node-chunks/chunk-OZBNKCKM.js";
|
|
19
19
|
export {
|
|
20
20
|
buildIndex,
|
|
21
21
|
createChannelServer
|
|
@@ -2231,18 +2231,18 @@ interface WebsocketsOptions {
|
|
|
2231
2231
|
passphrase?: string;
|
|
2232
2232
|
}
|
|
2233
2233
|
//#endregion
|
|
2234
|
-
//#region .dts-emit/code/core/src/react-native/metro/
|
|
2234
|
+
//#region .dts-emit/code/core/src/react-native/metro/withForkbook.d.ts
|
|
2235
2235
|
/** Options for configuring Storybook with React Native. */
|
|
2236
|
-
interface
|
|
2237
|
-
/** The path to the Storybook config folder. Defaults to './.
|
|
2236
|
+
interface WithForkbookOptions {
|
|
2237
|
+
/** The path to the Storybook config folder. Defaults to './.rnforkbook'. */
|
|
2238
2238
|
configPath?: string;
|
|
2239
2239
|
/** WebSocket configuration for syncing storybook instances or sending events to storybook. */
|
|
2240
2240
|
websockets?: WebsocketsOptions | 'auto';
|
|
2241
|
-
/** Whether to write
|
|
2241
|
+
/** Whether to write forkbook.requires.js instead of forkbook.requires.ts. Defaults to false. */
|
|
2242
2242
|
useJs?: boolean;
|
|
2243
2243
|
/** If false, Storybook is removed from the JS bundle. Defaults to true. */
|
|
2244
2244
|
enabled?: boolean;
|
|
2245
|
-
/** Whether to include doc tools in the
|
|
2245
|
+
/** Whether to include doc tools in the forkbook.requires file. Defaults to true. */
|
|
2246
2246
|
docTools?: boolean;
|
|
2247
2247
|
/**
|
|
2248
2248
|
* Whether to leave out the full on-device UI (`@aussieljk/forkbook/react-native-ui`), so the
|
|
@@ -2257,13 +2257,13 @@ interface WithStorybookOptions {
|
|
|
2257
2257
|
*
|
|
2258
2258
|
* ```js
|
|
2259
2259
|
* const { getDefaultConfig } = require('expo/metro-config');
|
|
2260
|
-
* const {
|
|
2260
|
+
* const { withForkbook } = require('@aussieljk/forkbook/react-native/metro/withForkbook');
|
|
2261
2261
|
*
|
|
2262
|
-
* module.exports =
|
|
2262
|
+
* module.exports = withForkbook(getDefaultConfig(__dirname), {
|
|
2263
2263
|
* enabled: process.env.EXPO_PUBLIC_FORKBOOK_ENABLED === 'true',
|
|
2264
2264
|
* });
|
|
2265
2265
|
* ```
|
|
2266
2266
|
*/
|
|
2267
|
-
declare function
|
|
2267
|
+
declare function withForkbook(config: MetroConfig, options?: WithForkbookOptions): MetroConfig;
|
|
2268
2268
|
//#endregion
|
|
2269
|
-
export {
|
|
2269
|
+
export { WithForkbookOptions, withForkbook };
|