@aussieljk/forkbook 0.0.1-10 → 0.0.1-12
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/README.md +1 -1
- package/assets/create/rendererAssets/common/button.css +6 -6
- package/assets/create/rendererAssets/common/header.css +5 -5
- package/assets/create/rendererAssets/common/page.css +10 -10
- package/assets/server/template.ejs +6 -3
- package/dist/_browser-chunks/{Color-X63I7FHI.js → Color-TA43572R.js} +2 -2
- package/dist/_browser-chunks/{DocsRenderer-JXND3PVQ.js → DocsRenderer-DKXSW2OY.js} +2 -2
- package/dist/_browser-chunks/{WithTooltip-5S6F2P7L.js → WithTooltip-66AWY4VQ.js} +5 -4
- package/dist/_browser-chunks/{chunk-RBCHTR7C.js → chunk-2ELGJRFZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-DYNTDJ3O.js → chunk-2UKY4NXZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-I4ATZPNZ.js → chunk-2WMECYEY.js} +3 -3
- package/dist/_browser-chunks/{chunk-6ELMKWKX.js → chunk-2WZWS7GJ.js} +1 -1
- package/dist/_browser-chunks/{chunk-N3NRW5XX.js → chunk-2YWS25WY.js} +1 -1
- package/dist/_browser-chunks/{chunk-NGMQJMCY.js → chunk-3O4QUF3D.js} +1 -1
- package/dist/_browser-chunks/{chunk-GNZY6LOW.js → chunk-5MRMYSUN.js} +4 -4
- package/dist/_browser-chunks/{chunk-RMYQ3QN3.js → chunk-5XGERZHU.js} +15 -12
- package/dist/_browser-chunks/{chunk-5WMXI5GW.js → chunk-AQVUHXWY.js} +6 -4
- package/dist/_browser-chunks/{chunk-ZHKZKFY4.js → chunk-ARZTIHZK.js} +6 -10
- package/dist/_browser-chunks/{chunk-DS2WQZGO.js → chunk-D2Z5KXPS.js} +12 -41
- package/dist/_browser-chunks/{chunk-EQKMUQF3.js → chunk-DT7BB545.js} +3 -2
- package/dist/_browser-chunks/{chunk-76222HQR.js → chunk-E6QKKKLO.js} +20 -5
- package/dist/_browser-chunks/{chunk-5Z65SURM.js → chunk-F22A5EGD.js} +4 -4
- package/dist/_browser-chunks/{chunk-3M5T7BW4.js → chunk-GGALYEQS.js} +1 -1
- package/dist/_browser-chunks/{chunk-TTBPZQ24.js → chunk-HGIW4I4J.js} +11 -18
- package/dist/_browser-chunks/{chunk-46Z7NGAS.js → chunk-HX443LKV.js} +1 -1
- package/dist/_browser-chunks/{chunk-KYSD26D6.js → chunk-IGD46SQI.js} +90 -83
- package/dist/_browser-chunks/{chunk-LTCXWKZO.js → chunk-QSYOMLRG.js} +667 -624
- package/dist/_browser-chunks/{chunk-2JT76G3E.js → chunk-SBOQ4QPY.js} +15 -15
- package/dist/_browser-chunks/{chunk-O24AZJZ7.js → chunk-UDR26TXA.js} +2 -2
- package/dist/_browser-chunks/{chunk-5I7E4GMO.js → chunk-WY2LUGOH.js} +1 -1
- package/dist/_browser-chunks/{chunk-7DQREF4S.js → chunk-XV3AEPJW.js} +1 -1
- package/dist/_browser-chunks/{matchers-YLBYSYAF.js → matchers-2HVLNCVO.js} +4 -4
- package/dist/_browser-chunks/{react-dom-client-4OHE3QDV.js → react-dom-client-SLBUX3U3.js} +1 -1
- package/dist/_node-chunks/{attached-runtime-PDBJ2EGV.js → attached-runtime-AU2RZM4Y.js} +28 -29
- package/dist/_node-chunks/{builder-manager-VLL26RPG.js → builder-manager-UPXA2KKT.js} +39 -28
- package/dist/_node-chunks/{chunk-FR2ZDWKJ.js → chunk-22A63J7O.js} +7 -7
- package/dist/_node-chunks/{chunk-ZBWAA2EY.js → chunk-22TWJGGQ.js} +28 -43
- package/dist/_node-chunks/{chunk-M4QNXI37.js → chunk-2GJBHF56.js} +6 -6
- package/dist/_node-chunks/{chunk-TNFH4Y4G.js → chunk-2MGPZNKV.js} +280 -306
- package/dist/_node-chunks/{chunk-KRWR44KT.js → chunk-2Q3YWQSK.js} +6 -6
- package/dist/_node-chunks/{chunk-6DRVJCYP.js → chunk-2W525A4I.js} +7 -7
- package/dist/_node-chunks/{chunk-ZFLK7MY5.js → chunk-2X3WAH7V.js} +7 -7
- package/dist/_node-chunks/{chunk-FERXOKZY.js → chunk-34DNGOCZ.js} +8 -8
- package/dist/_node-chunks/{chunk-ID3WA6WR.js → chunk-3MJZ5GI2.js} +6 -6
- package/dist/_node-chunks/{chunk-AAL6X7YG.js → chunk-3X67K6EI.js} +136 -114
- package/dist/_node-chunks/{chunk-QGC3UWR5.js → chunk-5KMW5XXM.js} +6 -6
- package/dist/_node-chunks/{chunk-FXBZWUW3.js → chunk-5MYXWAKD.js} +512 -1033
- package/dist/_node-chunks/chunk-5N7YRHXJ.js +20 -0
- package/dist/_node-chunks/{chunk-QGVU7IFS.js → chunk-6772LYNF.js} +7 -7
- package/dist/_node-chunks/{chunk-IGOX6TUG.js → chunk-76M6JG5T.js} +7 -7
- package/dist/_node-chunks/{chunk-MKUA4ZCG.js → chunk-7F6TIY4T.js} +8 -8
- package/dist/_node-chunks/{chunk-KWNBN3DV.js → chunk-7SBWGNA7.js} +10 -10
- package/dist/_node-chunks/chunk-ABCEMTIP.js +20 -0
- package/dist/_node-chunks/{chunk-JVWXCB3L.js → chunk-AHNN3TQH.js} +8 -8
- package/dist/_node-chunks/{chunk-CEDR5CNM.js → chunk-BDATIKVV.js} +7 -7
- package/dist/_node-chunks/{chunk-K4O2ZAMU.js → chunk-BMM74ZQW.js} +6 -6
- package/dist/_node-chunks/{chunk-DR7NW2MI.js → chunk-BOWRRVJM.js} +6 -6
- package/dist/_node-chunks/{chunk-FRBE7ES4.js → chunk-BTDLJXAT.js} +6 -6
- package/dist/_node-chunks/{chunk-GKHLTHYM.js → chunk-C2HVGXLD.js} +224 -181
- package/dist/_node-chunks/chunk-CWIJ2D5F.js +18 -0
- package/dist/_node-chunks/{chunk-QOFBJXPH.js → chunk-DNX4BLMS.js} +7 -7
- package/dist/_node-chunks/{chunk-G2ZUFOHU.js → chunk-DXR3YGRT.js} +6 -6
- package/dist/_node-chunks/{chunk-GBVWRZHP.js → chunk-EFZAYIPN.js} +6 -6
- package/dist/_node-chunks/{chunk-MY7UVHPL.js → chunk-FAR3NIPG.js} +8 -8
- package/dist/_node-chunks/{chunk-MBPHOLXB.js → chunk-FFUIQJRI.js} +32 -40
- package/dist/_node-chunks/{chunk-TZIT6SZP.js → chunk-FKI7K3GE.js} +6 -6
- package/dist/_node-chunks/{chunk-VSHYJR23.js → chunk-FR67COFW.js} +7 -7
- package/dist/_node-chunks/chunk-FUDG3QKB.js +25 -0
- package/dist/_node-chunks/chunk-G6GOV7H7.js +19 -0
- package/dist/_node-chunks/{chunk-DRCP3DQF.js → chunk-H7UVQBCQ.js} +8 -8
- package/dist/_node-chunks/{chunk-CSFNS7HA.js → chunk-HMQUTLMS.js} +6 -6
- package/dist/_node-chunks/{chunk-VG2KFIOW.js → chunk-HPXM4SGT.js} +9 -9
- package/dist/_node-chunks/{chunk-MQC7ZY6L.js → chunk-HW4T3OXA.js} +7 -7
- package/dist/_node-chunks/{chunk-QVLHVO4X.js → chunk-HW7RCOV4.js} +8 -8
- package/dist/_node-chunks/{chunk-NGFFEW2B.js → chunk-IFHNMS7I.js} +19 -19
- package/dist/_node-chunks/{chunk-IL7YA7QJ.js → chunk-IKUSSZJ3.js} +10 -10
- package/dist/_node-chunks/{chunk-OPG46TLN.js → chunk-IOXDHKFF.js} +7 -7
- package/dist/_node-chunks/chunk-J3CNNXKQ.js +11 -0
- package/dist/_node-chunks/{chunk-ACSO4HQP.js → chunk-JB4457FJ.js} +6 -6
- package/dist/_node-chunks/{chunk-T5VZYRL2.js → chunk-JHX35YKT.js} +6 -6
- package/dist/_node-chunks/{chunk-CKE4R4NL.js → chunk-JKPKEYSH.js} +6 -6
- package/dist/_node-chunks/{chunk-RC4HPD5Q.js → chunk-JMFTALJW.js} +6 -6
- package/dist/_node-chunks/{chunk-BDU3ZUMK.js → chunk-JXS4P2RM.js} +7 -7
- package/dist/_node-chunks/{chunk-7CV4VEA2.js → chunk-K2K6KTBC.js} +8 -8
- package/dist/_node-chunks/{chunk-THDTJJMO.js → chunk-KMC5WWQS.js} +7 -7
- package/dist/_node-chunks/{chunk-FJFB7TWU.js → chunk-KQTFSKC6.js} +8 -8
- package/dist/_node-chunks/{chunk-GQYATLH6.js → chunk-KZPWZM2E.js} +37 -34
- package/dist/_node-chunks/{chunk-FZ453CHY.js → chunk-LTJ4AYDM.js} +6 -6
- package/dist/_node-chunks/{chunk-LH5QBX2U.js → chunk-MNNESU33.js} +497 -475
- package/dist/_node-chunks/{chunk-FQGQ5KHN.js → chunk-MNQVVJZN.js} +6 -6
- package/dist/_node-chunks/{chunk-CZ3V3HHK.js → chunk-NO7MF6VR.js} +6 -6
- package/dist/_node-chunks/{chunk-MIWBXEUH.js → chunk-NPSIAK46.js} +6 -6
- package/dist/_node-chunks/{chunk-GGE7TBVX.js → chunk-NUSHY22I.js} +62 -7
- package/dist/_node-chunks/{chunk-YU5TVYPS.js → chunk-NXRZL2PR.js} +6 -6
- package/dist/_node-chunks/{chunk-7O2UIVID.js → chunk-O2CCUB5T.js} +7 -7
- package/dist/_node-chunks/{chunk-BNEC3EBC.js → chunk-ORSH2FXG.js} +6 -6
- package/dist/_node-chunks/{chunk-LX2XSPPL.js → chunk-OSNOV4EH.js} +7 -7
- package/dist/_node-chunks/{chunk-BPL3ERBH.js → chunk-PHB6QBHM.js} +10 -10
- package/dist/_node-chunks/{chunk-63LPGIV4.js → chunk-POA32M7F.js} +21 -21
- package/dist/_node-chunks/{chunk-QFXAGOIO.js → chunk-Q64ESHBN.js} +8 -8
- package/dist/_node-chunks/{chunk-SYUOBOB5.js → chunk-QBWGJYHY.js} +6 -6
- package/dist/_node-chunks/{chunk-7OY4VMAT.js → chunk-QSKVNZCF.js} +7 -7
- package/dist/_node-chunks/{chunk-MRCPS4S3.js → chunk-QX6RXAEU.js} +6 -6
- package/dist/_node-chunks/{chunk-RJXAXHDJ.js → chunk-R73PEGQU.js} +9 -9
- package/dist/_node-chunks/{chunk-3CSGIJKG.js → chunk-RHH7VDIY.js} +8 -8
- package/dist/_node-chunks/{chunk-BXDMSX3D.js → chunk-RMJNWFPV.js} +9 -9
- package/dist/_node-chunks/{chunk-GJSYGBI5.js → chunk-RT2LVWTC.js} +7 -7
- package/dist/_node-chunks/{chunk-5NRWU7S2.js → chunk-SPCPGRYF.js} +7 -7
- package/dist/_node-chunks/{chunk-FWAF5NBL.js → chunk-SUHBBHKR.js} +6 -6
- package/dist/_node-chunks/{chunk-SGEPJMTU.js → chunk-TXZTC6LA.js} +22 -22
- package/dist/_node-chunks/{chunk-5SMIGUYF.js → chunk-U5HVQTHI.js} +6 -6
- package/dist/_node-chunks/{chunk-LG3NMXCM.js → chunk-UFZUSE3Y.js} +6 -6
- package/dist/_node-chunks/{chunk-DQ44ZAEM.js → chunk-UGQFYYBC.js} +6 -6
- package/dist/_node-chunks/{chunk-R2ZCFA7I.js → chunk-UKLCYEZU.js} +7 -7
- package/dist/_node-chunks/{chunk-IUPE4SU2.js → chunk-VJEN2JM3.js} +8 -8
- package/dist/_node-chunks/{chunk-WVRM6DQU.js → chunk-W5ZAUN5R.js} +7 -7
- package/dist/_node-chunks/{chunk-7KD5DKGZ.js → chunk-WNEWL2PL.js} +6 -6
- package/dist/_node-chunks/{chunk-6DHTL5G2.js → chunk-WUVQ465T.js} +6 -6
- package/dist/_node-chunks/{chunk-3W4KR5GX.js → chunk-XCNYQV2M.js} +19 -15
- package/dist/_node-chunks/{chunk-VUMGWJ6Y.js → chunk-XOAWAXUH.js} +7 -7
- package/dist/_node-chunks/chunk-Y472MP5U.js +281 -0
- package/dist/_node-chunks/{chunk-HCP5DG52.js → chunk-ZCKTYMZT.js} +320 -316
- package/dist/_node-chunks/{chunk-ECOW63CV.js → chunk-ZUK5ZLPP.js} +8 -8
- package/dist/_node-chunks/dist-2DPC664Y.js +27 -0
- package/dist/_node-chunks/dist-XBFUDMFQ.js +16 -0
- package/dist/_node-chunks/{local-runtime-V5YTRN24.js → local-runtime-Z667YPXR.js} +19 -20
- package/dist/_node-chunks/{mdx-plugin-CBOD52VP.js → mdx-plugin-BPRPTZNP.js} +13 -13
- package/dist/_node-chunks/{monorepo-GF6H53U4.js → monorepo-GO54BY34.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-K4TTV2DQ.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-PEHFNJQ5.js} +11 -11
- package/dist/_node-chunks/optimized-tests-W7U4ZRWX.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-M2QNC4IZ.js → pattern-copy-play-64HQIVWK.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-XM2BHKDN.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-3IDE4CYH.js → rehype-external-links-2BSEZ7AC.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-GKB3WS3U.js → rehype-slug-6253EA36.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-C6QU365N.js → relaxed-limits-4PAAPG3J.js} +11 -11
- package/dist/_node-chunks/{run-XWBUPXLN.js → run-3SQW3FRF.js} +18 -18
- package/dist/_node-chunks/{run-TMVS3KKA.js → run-XJT3YVMZ.js} +16 -16
- package/dist/_node-chunks/{setup-KEEJK4WI.js → setup-JIYCTADZ.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-74HEE4WJ.js → vitest.config.4.template-W74SGWHT.js} +7 -7
- package/dist/actions/decorator.js +12 -20
- package/dist/addon-a11y/index.js +2 -2
- package/dist/addon-a11y/manager.js +12 -12
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +2 -2
- package/dist/addon-docs/blocks.d.ts +10 -6
- package/dist/addon-docs/blocks.js +28 -30
- package/dist/addon-docs/index.js +3 -3
- package/dist/addon-docs/manager.js +3 -3
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-docs/preview.js +1 -1
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-mcp/preset.js +9 -9
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +15 -15
- package/dist/addon-ondevice-controls/index.js +1 -1
- package/dist/addon-ondevice-controls/register.js +1 -1
- package/dist/addon-pseudo-states/index.js +1 -1
- package/dist/addon-pseudo-states/preview.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 +18 -9
- package/dist/addon-vitest/node/coverage-reporter.js +11 -11
- package/dist/addon-vitest/node/vitest.js +28 -28
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +15 -15
- package/dist/addon-vitest/vitest-plugin/global-setup.js +21 -21
- package/dist/addon-vitest/vitest-plugin/index.js +68 -58
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +106 -88
- package/dist/bin/dispatcher.js +10 -10
- package/dist/bin/loader.js +8 -8
- package/dist/builder-vite/index.js +18 -18
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.d.ts +1 -1
- package/dist/channels/index.js +1 -1
- package/dist/{chunk-Dr3R0DXk.d.ts → chunk-B-NVyPqN.d.ts} +2 -2
- package/dist/{chunk-Fg1Fm__9.d.ts → chunk-BmCH-L7_.d.ts} +393 -383
- package/dist/{chunk-CNqjcOmK.d.ts → chunk-Bn1RoGAP.d.ts} +1 -1
- package/dist/{chunk-BXLImeLy.d.ts → chunk-CfEntHiI.d.ts} +18 -3
- package/dist/{chunk-D0NUmzXp.d.ts → chunk-IMedIHPn.d.ts} +3 -3
- package/dist/{chunk-CYuvV2sR.d.ts → chunk-evfhuBNU.d.ts} +1 -1
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +25 -30
- 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 +2 -2
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.js +2 -1
- package/dist/common/index.d.ts +5 -5
- package/dist/common/index.js +34 -35
- package/dist/components/index.d.ts +6 -6
- package/dist/components/index.js +152 -162
- package/dist/core-server/index.d.ts +6 -5
- package/dist/core-server/index.js +688 -152
- package/dist/core-server/presets/common-manager.js +227 -316
- package/dist/core-server/presets/common-override-preset.js +10 -10
- package/dist/core-server/presets/common-preset.js +73 -268
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/csf-utils.d.ts +1 -1
- package/dist/csf/index.d.ts +1 -1
- package/dist/csf/index.js +10 -10
- package/dist/csf-tools/index.d.ts +41 -37
- package/dist/csf-tools/index.js +13 -13
- package/dist/instrumenter/index.d.ts +1 -1
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CJL1dQtn.js → globals-runtime--RDllwDw.js} +629 -436
- package/dist/manager/_manager-chunks/{globals-runtime-DvV_TF3-.js → globals-runtime-B4NRbNSS.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-wjkxyMn0.js → globals-runtime-BC43T1rL.js} +4150 -50
- package/dist/manager/_manager-chunks/{globals-runtime-CfurFwS_.js → globals-runtime-BFVFUcji.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-BKQscPdC.js → globals-runtime-BWciJpaD.js} +103 -101
- package/dist/manager/_manager-chunks/{globals-runtime-CA8AuIRT.js → globals-runtime-BnQ7i5wq.js} +232 -228
- package/dist/manager/_manager-chunks/globals-runtime-BtduS2C2.js +10601 -0
- package/dist/manager/_manager-chunks/globals-runtime-BzuYs3dZ.js +1971 -0
- package/dist/manager/_manager-chunks/{globals-runtime-BY3epqww.js → globals-runtime-CS41oTca.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DBba3I9c.js → globals-runtime-CdLHkSK1.js} +260 -401
- package/dist/manager/_manager-chunks/globals-runtime-CoTrrHG3.js +1163 -0
- package/dist/manager/_manager-chunks/{globals-runtime-BweHuXkK.js → globals-runtime-DCmvKMN5.js} +2 -2
- package/dist/manager/_manager-chunks/globals-runtime-DgO0hT2p.js +32 -0
- package/dist/manager/_manager-chunks/{globals-runtime-CvIgTRVu.js → globals-runtime-DhygDQ09.js} +5 -5
- package/dist/manager/_manager-chunks/{globals-runtime-NwJK8t0T.js → globals-runtime-DweLlyBa.js} +5 -4
- package/dist/manager/_manager-chunks/globals-runtime-Me9Bl-sx.js +156 -0
- package/dist/manager/_manager-chunks/globals-runtime-nQMRiA0J.js +19 -0
- package/dist/manager/_manager-chunks/{globals-runtime-Bj5KDUJi.js → globals-runtime-oRjPg2jY.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-Bs3bEhuy.js → runtime-1BcYUf7-.js} +24 -42
- package/dist/manager/_manager-chunks/{runtime-CBQsKmch.js → runtime-B2VQIT0n.js} +739 -554
- package/dist/manager/_manager-chunks/runtime-BBaBlpAS.js +552 -0
- package/dist/manager/_manager-chunks/{runtime-B_nqedQW.js → runtime-BFgSyEE6.js} +13 -13
- package/dist/manager/_manager-chunks/{runtime-jj8qYc2n.js → runtime-CE_oqcpl.js} +6 -6
- package/dist/manager/_manager-chunks/{runtime-DtCVCy4G.js → runtime-CRqm7NXD.js} +49 -49
- package/dist/manager/_manager-chunks/{runtime-5B2mWjEm.js → runtime-CZtDJIYj.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-eBAgOym6.js → runtime-D3Gk2bTl.js} +846 -835
- package/dist/manager/_manager-chunks/{runtime-DG61zYUm.js → runtime-Db8fJ2MP.js} +67 -500
- package/dist/manager/_manager-chunks/{runtime-j9yqh0tr.js → runtime-Dj8tizGo.js} +101 -101
- 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 +444 -428
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.js +9 -9
- package/dist/mocking-utils/index.js +15 -19
- package/dist/nextjs-vite/export-mocks/router/index.js +1 -1
- package/dist/nextjs-vite/index.d.ts +1 -1
- package/dist/nextjs-vite/index.js +4 -4
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +12 -12
- package/dist/nextjs-vite/preview.js +1 -1
- package/dist/nextjs-vite/vite-plugin/index.d.ts +2 -2
- package/dist/nextjs-vite/vite-plugin/index.js +9 -9
- package/dist/nextjs-vite-plugin/index.js +15 -15
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +1 -1
- package/dist/node-logger/index.d.ts +16 -16
- package/dist/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +14 -11
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-BJwGQok8.js → runtime-4BNaFIif.js} +180 -21
- package/dist/preview/_chunks/{runtime-BUnOhg9h.js → runtime-BSJ0Ov_b.js} +2 -2
- package/dist/preview/_chunks/{runtime-BhSZ1Mwt.js → runtime-Bjm1gBLN.js} +6 -19
- package/dist/preview/_chunks/{runtime-Bcv1hJky.js → runtime-CBKlMZg2.js} +4148 -48
- package/dist/preview/_chunks/{runtime-BPwAnlRx.js → runtime-CElbz0uN.js} +1 -1
- package/dist/preview/_chunks/{runtime-BZ4pNS3g.js → runtime-C_nyb8QT.js} +3 -3
- package/dist/preview/_chunks/{runtime-BgPhfM5P.js → runtime-CzTPeFXg.js} +676 -376
- package/dist/preview/_chunks/{runtime-WapFVPAh.js → runtime-DZ7fvh0y.js} +1 -1
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +2 -2
- package/dist/preview-api/index.js +5 -5
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -11
- package/dist/react/entry-preview-argtypes.js +1 -1
- package/dist/react/entry-preview-docs.js +1 -1
- package/dist/react/entry-preview.js +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +5 -5
- package/dist/react/preset.js +13 -13
- package/dist/react/preview.js +4 -4
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/index.d.ts +37 -36
- package/dist/react-native/index.js +30 -34
- package/dist/react-native/metro/node.d.ts +1 -1
- package/dist/react-native/metro/node.js +10 -10
- package/dist/react-native/metro/withForkbook.d.ts +7 -7
- package/dist/react-native/metro/withForkbook.js +14 -14
- package/dist/react-native/preview.js +4 -1
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-native/stub.js +1 -1
- package/dist/react-native-ui/index.d.ts +4 -3
- package/dist/react-native-ui/index.js +1 -8
- package/dist/react-native-ui-common/index.d.ts +7 -6
- package/dist/react-native-ui-common/index.js +6 -6
- 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/index.js +1 -1
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/shared/open-service/toolsets/docs/public.d.ts +2 -2
- package/dist/telemetry/index.d.ts +38 -274
- package/dist/telemetry/index.js +11 -66
- package/dist/test/index.js +125 -112
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +2 -2
- package/package.json +15 -15
- package/template/nextjs-vite/cli/js/Button.jsx +2 -2
- package/template/nextjs-vite/cli/js/Header.jsx +1 -1
- package/template/nextjs-vite/cli/js/Page.jsx +1 -1
- package/template/nextjs-vite/cli/ts/Button.tsx +2 -2
- package/template/nextjs-vite/cli/ts/Header.tsx +1 -1
- package/template/nextjs-vite/cli/ts/Page.tsx +1 -1
- package/template/react/cli/js/Button.jsx +2 -2
- package/template/react/cli/js/Header.jsx +1 -1
- package/template/react/cli/js/Page.jsx +1 -1
- package/template/react/cli/ts/Button.tsx +2 -2
- package/template/react/cli/ts/Header.tsx +1 -1
- package/template/react/cli/ts/Page.tsx +1 -1
- package/template/react-vite/cli/js/Button.jsx +2 -2
- package/template/react-vite/cli/js/Header.jsx +1 -1
- package/template/react-vite/cli/js/Page.jsx +1 -1
- package/template/react-vite/cli/ts/Button.tsx +2 -2
- package/template/react-vite/cli/ts/Header.tsx +1 -1
- package/template/react-vite/cli/ts/Page.tsx +1 -1
- package/dist/_node-chunks/chunk-BMJPOQ2S.js +0 -11
- package/dist/_node-chunks/chunk-C3PLG47Q.js +0 -25
- package/dist/_node-chunks/chunk-DNV3LPV3.js +0 -33
- package/dist/_node-chunks/chunk-DPILYJH4.js +0 -33
- package/dist/_node-chunks/chunk-EBWZKN2I.js +0 -1297
- package/dist/_node-chunks/chunk-ENBDAHOV.js +0 -18
- package/dist/_node-chunks/chunk-FAEOR2AW.js +0 -40
- package/dist/_node-chunks/chunk-HVOSLI2K.js +0 -20
- package/dist/_node-chunks/chunk-ND323XCC.js +0 -33
- package/dist/_node-chunks/chunk-PEL4YXU6.js +0 -19
- package/dist/_node-chunks/chunk-T6IU66AM.js +0 -69
- package/dist/_node-chunks/chunk-TY2ZY7AO.js +0 -155
- package/dist/_node-chunks/chunk-ZD5TUA6I.js +0 -20
- package/dist/_node-chunks/dist-7OJKTBKL.js +0 -27
- package/dist/_node-chunks/dist-MWP6WLW4.js +0 -16
- package/dist/_node-chunks/optimized-tests-KOTSVWTN.js +0 -22
- package/dist/_node-chunks/postinstallAddon-WXKJL6DP.js +0 -20
- package/dist/_node-chunks/session-id-VMH57SKN.js +0 -23
- package/dist/manager/_manager-chunks/globals-runtime-Bs75QQ_I.js +0 -9987
- package/dist/manager/_manager-chunks/globals-runtime-WZKaeKm9.js +0 -4091
- package/dist/manager/_manager-chunks/runtime-5o_11Jae.js +0 -78
- package/dist/preview/_chunks/runtime-BsMjBzuq.js +0 -53
- package/dist/preview/_chunks/runtime-C1jgT6tJ.js +0 -4091
- package/dist/preview/_chunks/runtime-CkOhMcXf.js +0 -387
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_enqaafxxjgh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_enqaafxxjgh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_enqaafxxjgh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_enqaafxxjgh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_enqaafxxjgh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_enqaafxxjgh.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
|
require_lib
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DNX4BLMS.js";
|
|
15
15
|
import {
|
|
16
16
|
Parser,
|
|
17
17
|
init_acorn,
|
|
18
18
|
require_acorn_jsx
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-W5ZAUN5R.js";
|
|
20
20
|
import {
|
|
21
21
|
up2 as up
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DXR3YGRT.js";
|
|
23
23
|
import {
|
|
24
24
|
__commonJS,
|
|
25
25
|
__toESM
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MNQVVJZN.js";
|
|
27
27
|
|
|
28
28
|
// ../../node_modules/estraverse/estraverse.js
|
|
29
29
|
var require_estraverse = __commonJS({
|
|
@@ -3186,69 +3186,60 @@ import { API } from "typescript-native/unstable/sync";
|
|
|
3186
3186
|
|
|
3187
3187
|
// src/react/componentManifest/componentMeta/componentMetaExtractor.ts
|
|
3188
3188
|
import {
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3189
|
+
SymbolFlags as SymbolFlags3
|
|
3190
|
+
} from "typescript-native/unstable/sync";
|
|
3191
|
+
|
|
3192
|
+
// src/react/componentManifest/componentMeta/defaultValues.ts
|
|
3193
|
+
import {
|
|
3194
|
+
SyntaxKind as SyntaxKind2,
|
|
3195
|
+
isArrowFunction as isArrowFunction2,
|
|
3196
|
+
isAsExpression as isAsExpression2,
|
|
3192
3197
|
isAwaitExpression,
|
|
3193
|
-
isBinaryExpression,
|
|
3198
|
+
isBinaryExpression as isBinaryExpression2,
|
|
3194
3199
|
isBindingElement,
|
|
3195
3200
|
isBlock,
|
|
3196
3201
|
isCallExpression,
|
|
3197
3202
|
isClassDeclaration,
|
|
3198
3203
|
isConditionalExpression,
|
|
3199
|
-
isEnumDeclaration,
|
|
3200
3204
|
isEnumMember,
|
|
3201
3205
|
isExportAssignment,
|
|
3202
3206
|
isExpressionStatement,
|
|
3203
3207
|
isFunctionDeclaration,
|
|
3204
|
-
isFunctionExpression,
|
|
3205
|
-
isIdentifier,
|
|
3206
|
-
isImportDeclaration,
|
|
3207
|
-
isInterfaceDeclaration,
|
|
3208
|
-
isJsxOpeningElement,
|
|
3209
|
-
isJsxSelfClosingElement,
|
|
3210
|
-
isLiteralTypeNode,
|
|
3211
|
-
isNamedImports,
|
|
3212
|
-
isNamespaceImport,
|
|
3208
|
+
isFunctionExpression as isFunctionExpression2,
|
|
3209
|
+
isIdentifier as isIdentifier2,
|
|
3213
3210
|
isNewExpression,
|
|
3214
|
-
isNonNullExpression,
|
|
3215
|
-
isNumericLiteral,
|
|
3216
3211
|
isObjectBindingPattern,
|
|
3217
3212
|
isObjectLiteralExpression,
|
|
3218
|
-
isParenthesizedExpression,
|
|
3213
|
+
isParenthesizedExpression as isParenthesizedExpression2,
|
|
3219
3214
|
isPropertyAccessExpression,
|
|
3215
|
+
isPropertyAssignment as isPropertyAssignment2,
|
|
3216
|
+
isPropertyDeclaration as isPropertyDeclaration2,
|
|
3217
|
+
isSatisfiesExpression as isSatisfiesExpression2,
|
|
3218
|
+
isShorthandPropertyAssignment as isShorthandPropertyAssignment2,
|
|
3219
|
+
isVariableDeclaration as isVariableDeclaration2,
|
|
3220
|
+
isVariableStatement
|
|
3221
|
+
} from "typescript-native/unstable/ast";
|
|
3222
|
+
|
|
3223
|
+
// src/react/componentManifest/componentMeta/symbols.ts
|
|
3224
|
+
import {
|
|
3225
|
+
SyntaxKind,
|
|
3226
|
+
isArrowFunction,
|
|
3227
|
+
isAsExpression,
|
|
3228
|
+
isBinaryExpression,
|
|
3229
|
+
isFunctionExpression,
|
|
3230
|
+
isIdentifier,
|
|
3231
|
+
isNonNullExpression,
|
|
3232
|
+
isParenthesizedExpression,
|
|
3220
3233
|
isPropertyAssignment,
|
|
3221
3234
|
isPropertyDeclaration,
|
|
3222
3235
|
isSatisfiesExpression,
|
|
3223
3236
|
isShorthandPropertyAssignment,
|
|
3224
|
-
|
|
3225
|
-
isTypeAliasDeclaration,
|
|
3226
|
-
isTypeReferenceNode,
|
|
3227
|
-
isUnionTypeNode,
|
|
3228
|
-
isVariableDeclaration,
|
|
3229
|
-
isVariableStatement
|
|
3237
|
+
isVariableDeclaration
|
|
3230
3238
|
} from "typescript-native/unstable/ast";
|
|
3231
3239
|
import {
|
|
3232
|
-
|
|
3233
|
-
SymbolFlags,
|
|
3234
|
-
TypeFlags,
|
|
3235
|
-
isUnionType
|
|
3240
|
+
SymbolFlags
|
|
3236
3241
|
} from "typescript-native/unstable/sync";
|
|
3237
3242
|
var LARGE_SOURCE_THRESHOLD = 30, MAX_DEPTH = 5;
|
|
3238
|
-
function extractComponentDocFromStory(project, storyPath, ref) {
|
|
3239
|
-
let storyFile = project.program.getSourceFile(storyPath);
|
|
3240
|
-
if (!storyFile || !ref.importName)
|
|
3241
|
-
return;
|
|
3242
|
-
let ctx = { project, checker: project.checker }, imported = findImport(ctx, storyFile, ref), resolved = (imported && resolveFromStoryJsx(ctx, storyFile, ref, imported.local)) ?? resolveFromMetaComponent(ctx, storyFile, ref, imported?.local) ?? (imported && resolveFromModuleExport(ctx, imported.module, ref));
|
|
3243
|
-
return resolved && serializeComponentDoc(ctx, resolved, ref.importName, ref, imported?.module);
|
|
3244
|
-
}
|
|
3245
|
-
function extractComponentDocFromFile(project, filePath, exportName = "default") {
|
|
3246
|
-
let sourceFile = project.program.getSourceFile(filePath), ctx = { project, checker: project.checker }, module = sourceFile && ctx.checker.getSymbolAtLocation(sourceFile);
|
|
3247
|
-
if (!module)
|
|
3248
|
-
return;
|
|
3249
|
-
let ref = { componentName: exportName, importName: exportName, isPackage: !1 }, resolved = resolveFromModuleExport(ctx, module, ref);
|
|
3250
|
-
return resolved && serializeComponentDoc(ctx, resolved, exportName, { ...ref, path: filePath }, module);
|
|
3251
|
-
}
|
|
3252
3243
|
function resolveAlias(ctx, symbol) {
|
|
3253
3244
|
if (!(symbol.flags & SymbolFlags.Alias))
|
|
3254
3245
|
return symbol;
|
|
@@ -3293,6 +3284,140 @@ function resolveComponentSymbol(ctx, symbol, depth = 0) {
|
|
|
3293
3284
|
let next;
|
|
3294
3285
|
return isShorthandPropertyAssignment(declaration) ? next = ctx.checker.getShorthandAssignmentValueSymbol(declaration) : isPropertyAssignment(declaration) ? next = ctx.checker.getSymbolAtLocation(skipWrappers(declaration.initializer)) : isBinaryExpression(declaration) && declaration.operatorToken.kind === SyntaxKind.EqualsToken ? next = ctx.checker.getSymbolAtLocation(skipWrappers(declaration.right)) : (declaration.kind === SyntaxKind.PropertySignature || isPropertyDeclaration(declaration)) && (next = ctx.checker.getTypeOfSymbol(resolved)?.getSymbol()), next && !sameSymbol(resolveAlias(ctx, next), resolved) ? resolveComponentSymbol(ctx, next, depth + 1) : resolved;
|
|
3295
3286
|
}
|
|
3287
|
+
|
|
3288
|
+
// src/react/componentManifest/componentMeta/defaultValues.ts
|
|
3289
|
+
function isFunctionLike(node) {
|
|
3290
|
+
return isArrowFunction2(node) || isFunctionExpression2(node) || isFunctionDeclaration(node);
|
|
3291
|
+
}
|
|
3292
|
+
function findFunction(ctx, node, depth = 0) {
|
|
3293
|
+
if (!(!node || depth > MAX_DEPTH)) {
|
|
3294
|
+
if (isFunctionLike(node))
|
|
3295
|
+
return node;
|
|
3296
|
+
if (isParenthesizedExpression2(node) || isAsExpression2(node) || isSatisfiesExpression2(node))
|
|
3297
|
+
return findFunction(ctx, node.expression, depth + 1);
|
|
3298
|
+
if (isCallExpression(node)) {
|
|
3299
|
+
for (let argument of node.arguments) {
|
|
3300
|
+
let fn = findFunction(ctx, argument, depth + 1);
|
|
3301
|
+
if (fn)
|
|
3302
|
+
return fn;
|
|
3303
|
+
}
|
|
3304
|
+
return;
|
|
3305
|
+
}
|
|
3306
|
+
if (isIdentifier2(node)) {
|
|
3307
|
+
let symbol = ctx.checker.getSymbolAtLocation(node), declaration = symbol && getDeclaration(ctx, resolveAlias(ctx, symbol));
|
|
3308
|
+
if (declaration && isVariableDeclaration2(declaration))
|
|
3309
|
+
return findFunction(ctx, declaration.initializer, depth + 1);
|
|
3310
|
+
if (declaration && isFunctionDeclaration(declaration))
|
|
3311
|
+
return declaration;
|
|
3312
|
+
}
|
|
3313
|
+
}
|
|
3314
|
+
}
|
|
3315
|
+
function resolveLiteral(ctx, node, depth = 0) {
|
|
3316
|
+
return depth > MAX_DEPTH || !(isIdentifier2(node) || isPropertyAccessExpression(node)) ? node.getText() : isIdentifier2(node) && node.text === "undefined" ? "undefined" : resolveSymbolLiteral(ctx, ctx.checker.getSymbolAtLocation(node), node.getText(), depth);
|
|
3317
|
+
}
|
|
3318
|
+
function resolveSymbolLiteral(ctx, symbol, text, depth = 0) {
|
|
3319
|
+
let declaration = symbol && getDeclaration(ctx, resolveAlias(ctx, symbol)), initializer = declaration && (isVariableDeclaration2(declaration) || isEnumMember(declaration) || isBindingElement(declaration) || isPropertyAssignment2(declaration)) ? declaration.initializer : void 0;
|
|
3320
|
+
return initializer ? resolveLiteral(ctx, initializer, depth + 1) : text;
|
|
3321
|
+
}
|
|
3322
|
+
function collectBindingDefaults(ctx, pattern, defaults) {
|
|
3323
|
+
for (let element of pattern.elements)
|
|
3324
|
+
if (element.initializer && element.name) {
|
|
3325
|
+
let name = (element.propertyName ?? element.name).getText();
|
|
3326
|
+
defaults.set(name, resolveLiteral(ctx, element.initializer));
|
|
3327
|
+
}
|
|
3328
|
+
}
|
|
3329
|
+
function readsProps(ctx, node, props) {
|
|
3330
|
+
let expression = skipWrappers(node);
|
|
3331
|
+
return isIdentifier2(expression) ? sameSymbol(ctx.checker.getSymbolAtLocation(expression), props) : isAwaitExpression(expression) ? readsProps(ctx, expression.expression, props) : isBinaryExpression2(expression) ? readsProps(ctx, expression.left, props) || readsProps(ctx, expression.right, props) : isConditionalExpression(expression) ? readsProps(ctx, expression.whenTrue, props) || readsProps(ctx, expression.whenFalse, props) : isCallExpression(expression) || isNewExpression(expression) ? expression.arguments?.some((argument) => readsProps(ctx, argument, props)) ?? !1 : !1;
|
|
3332
|
+
}
|
|
3333
|
+
function getDestructuringDefaults(ctx, component) {
|
|
3334
|
+
let defaults = /* @__PURE__ */ new Map(), declarations = getDeclarations(ctx, component), declaration = getDeclaration(ctx, component), fn;
|
|
3335
|
+
declaration && isFunctionDeclaration(declaration) ? fn = declarations.find(
|
|
3336
|
+
(node) => isFunctionDeclaration(node) && !!node.body
|
|
3337
|
+
) : declaration && isVariableDeclaration2(declaration) ? fn = findFunction(ctx, declaration.initializer) : declaration && isExportAssignment(declaration) && (fn = findFunction(ctx, declaration.expression));
|
|
3338
|
+
let [propsParameter] = fn?.parameters ?? [];
|
|
3339
|
+
if (!fn || !propsParameter)
|
|
3340
|
+
return defaults;
|
|
3341
|
+
if (isObjectBindingPattern(propsParameter.name))
|
|
3342
|
+
return collectBindingDefaults(ctx, propsParameter.name, defaults), defaults;
|
|
3343
|
+
let props = isIdentifier2(propsParameter.name) ? ctx.checker.getSymbolAtLocation(propsParameter.name) : void 0;
|
|
3344
|
+
if (!props || !fn.body || !isBlock(fn.body))
|
|
3345
|
+
return defaults;
|
|
3346
|
+
for (let statement of fn.body.statements)
|
|
3347
|
+
if (isVariableStatement(statement))
|
|
3348
|
+
for (let variable of statement.declarationList.declarations)
|
|
3349
|
+
isObjectBindingPattern(variable.name) && variable.initializer && readsProps(ctx, variable.initializer, props) && collectBindingDefaults(ctx, variable.name, defaults);
|
|
3350
|
+
return defaults;
|
|
3351
|
+
}
|
|
3352
|
+
function collectObjectDefaults(ctx, object, defaults) {
|
|
3353
|
+
for (let property of object.properties)
|
|
3354
|
+
if (isPropertyAssignment2(property))
|
|
3355
|
+
defaults.set(property.name.getText(), resolveLiteral(ctx, property.initializer));
|
|
3356
|
+
else if (isShorthandPropertyAssignment2(property)) {
|
|
3357
|
+
let name = property.name.getText(), symbol = ctx.checker.getShorthandAssignmentValueSymbol(property);
|
|
3358
|
+
defaults.set(name, resolveSymbolLiteral(ctx, symbol, name));
|
|
3359
|
+
}
|
|
3360
|
+
}
|
|
3361
|
+
function toObjectLiteral(ctx, node) {
|
|
3362
|
+
if (node && isIdentifier2(node)) {
|
|
3363
|
+
let symbol = ctx.checker.getSymbolAtLocation(node), declaration = symbol && getDeclaration(ctx, symbol);
|
|
3364
|
+
node = declaration && isVariableDeclaration2(declaration) ? declaration.initializer : void 0;
|
|
3365
|
+
}
|
|
3366
|
+
return node && isObjectLiteralExpression(node) ? node : void 0;
|
|
3367
|
+
}
|
|
3368
|
+
function getDefaultPropsDefaults(ctx, component) {
|
|
3369
|
+
let defaults = /* @__PURE__ */ new Map(), sourceFile = getDeclaration(ctx, component)?.getSourceFile();
|
|
3370
|
+
if (!sourceFile)
|
|
3371
|
+
return defaults;
|
|
3372
|
+
let isComponent = (node) => {
|
|
3373
|
+
let symbol = ctx.checker.getSymbolAtLocation(node);
|
|
3374
|
+
return !!symbol && sameSymbol(resolveAlias(ctx, symbol), component);
|
|
3375
|
+
};
|
|
3376
|
+
for (let statement of sourceFile.statements) {
|
|
3377
|
+
if (isClassDeclaration(statement) && statement.name && isComponent(statement.name)) {
|
|
3378
|
+
for (let member of statement.members)
|
|
3379
|
+
if (isPropertyDeclaration2(member) && member.name.getText() === "defaultProps") {
|
|
3380
|
+
let object = toObjectLiteral(ctx, member.initializer);
|
|
3381
|
+
object && collectObjectDefaults(ctx, object, defaults);
|
|
3382
|
+
}
|
|
3383
|
+
}
|
|
3384
|
+
if (isExpressionStatement(statement) && isBinaryExpression2(statement.expression) && statement.expression.operatorToken.kind === SyntaxKind2.EqualsToken && isPropertyAccessExpression(statement.expression.left) && statement.expression.left.name.text === "defaultProps" && isComponent(statement.expression.left.expression)) {
|
|
3385
|
+
let object = toObjectLiteral(ctx, statement.expression.right);
|
|
3386
|
+
object && collectObjectDefaults(ctx, object, defaults);
|
|
3387
|
+
}
|
|
3388
|
+
}
|
|
3389
|
+
return defaults;
|
|
3390
|
+
}
|
|
3391
|
+
function findImplementation(ctx, symbol) {
|
|
3392
|
+
let current = symbol;
|
|
3393
|
+
for (let depth = 0; depth <= MAX_DEPTH; depth++) {
|
|
3394
|
+
let declaration = getDeclaration(ctx, current);
|
|
3395
|
+
if (!declaration || !isVariableDeclaration2(declaration) || !declaration.initializer || !isIdentifier2(declaration.initializer))
|
|
3396
|
+
break;
|
|
3397
|
+
let next = ctx.checker.getSymbolAtLocation(declaration.initializer);
|
|
3398
|
+
if (!next)
|
|
3399
|
+
break;
|
|
3400
|
+
current = resolveAlias(ctx, next);
|
|
3401
|
+
}
|
|
3402
|
+
return current;
|
|
3403
|
+
}
|
|
3404
|
+
|
|
3405
|
+
// src/react/componentManifest/componentMeta/findPropsType.ts
|
|
3406
|
+
import {
|
|
3407
|
+
isIdentifier as isIdentifier3,
|
|
3408
|
+
isImportDeclaration,
|
|
3409
|
+
isJsxOpeningElement,
|
|
3410
|
+
isJsxSelfClosingElement,
|
|
3411
|
+
isNamedImports,
|
|
3412
|
+
isNamespaceImport,
|
|
3413
|
+
isPropertyAccessExpression as isPropertyAccessExpression2,
|
|
3414
|
+
isPropertyAssignment as isPropertyAssignment3,
|
|
3415
|
+
isStringLiteral
|
|
3416
|
+
} from "typescript-native/unstable/ast";
|
|
3417
|
+
import {
|
|
3418
|
+
SignatureKind,
|
|
3419
|
+
TypeFlags
|
|
3420
|
+
} from "typescript-native/unstable/sync";
|
|
3296
3421
|
function findImport(ctx, storyFile, ref) {
|
|
3297
3422
|
for (let statement of storyFile.statements) {
|
|
3298
3423
|
if (!isImportDeclaration(statement) || !isStringLiteral(statement.moduleSpecifier) || statement.moduleSpecifier.text !== ref.importId || !statement.importClause)
|
|
@@ -3310,9 +3435,9 @@ function resolveFromStoryJsx(ctx, storyFile, ref, local) {
|
|
|
3310
3435
|
let result, visit = (node) => {
|
|
3311
3436
|
if (!result) {
|
|
3312
3437
|
if (isJsxSelfClosingElement(node) || isJsxOpeningElement(node)) {
|
|
3313
|
-
let { tagName } = node, signature = (ref.member ?
|
|
3438
|
+
let { tagName } = node, signature = (ref.member ? isPropertyAccessExpression2(tagName) && tagName.name.text === ref.member && sameSymbol(ctx.checker.getSymbolAtLocation(tagName.expression), local) : isIdentifier3(tagName) && sameSymbol(ctx.checker.getSymbolAtLocation(tagName), local)) ? ctx.checker.getResolvedSignature(node) : void 0;
|
|
3314
3439
|
if (signature) {
|
|
3315
|
-
let [propsParameter] = signature.getParameters(), member = ref.member &&
|
|
3440
|
+
let [propsParameter] = signature.getParameters(), member = ref.member && isPropertyAccessExpression2(tagName) ? ctx.checker.getSymbolAtLocation(tagName.name) : void 0;
|
|
3316
3441
|
result = {
|
|
3317
3442
|
propsType: propsParameter ? ctx.checker.getTypeOfSymbolAtLocation(propsParameter, node) : void 0,
|
|
3318
3443
|
symbol: resolveComponentSymbol(ctx, member ?? local)
|
|
@@ -3327,13 +3452,13 @@ function resolveFromStoryJsx(ctx, storyFile, ref, local) {
|
|
|
3327
3452
|
}
|
|
3328
3453
|
function resolveFromMetaComponent(ctx, storyFile, ref, local) {
|
|
3329
3454
|
let module = ctx.checker.getSymbolAtLocation(storyFile), meta = module && getExport(ctx, module, "default"), metaType = meta && ctx.checker.getTypeOfSymbol(meta), componentProperty = metaType && getProperty(ctx, metaType, "component"), declaration = componentProperty && getDeclaration(ctx, componentProperty);
|
|
3330
|
-
if (!componentProperty || !declaration || !
|
|
3455
|
+
if (!componentProperty || !declaration || !isPropertyAssignment3(declaration))
|
|
3331
3456
|
return;
|
|
3332
|
-
let initializer = skipWrappers(declaration.initializer), metaName =
|
|
3457
|
+
let initializer = skipWrappers(declaration.initializer), metaName = isIdentifier3(initializer) ? initializer.text : isPropertyAccessExpression2(initializer) && isIdentifier3(initializer.expression) ? `${initializer.expression.text}.${initializer.name.text}` : void 0, initializerSymbol = ctx.checker.getSymbolAtLocation(initializer);
|
|
3333
3458
|
if (!(!ref.member && local && initializerSymbol ? sameSymbol(resolveAlias(ctx, local), resolveAlias(ctx, initializerSymbol)) : metaName === ref.componentName) || !initializerSymbol)
|
|
3334
3459
|
return;
|
|
3335
3460
|
let componentType = ctx.checker.getTypeOfSymbol(componentProperty), symbol = initializerSymbol;
|
|
3336
|
-
if (ref.member && !
|
|
3461
|
+
if (ref.member && !isPropertyAccessExpression2(initializer)) {
|
|
3337
3462
|
let member = componentType && getProperty(ctx, componentType, ref.member);
|
|
3338
3463
|
if (!member)
|
|
3339
3464
|
return;
|
|
@@ -3363,16 +3488,33 @@ function resolveFromComponentType(ctx, componentType, symbol) {
|
|
|
3363
3488
|
return { propsType, symbol };
|
|
3364
3489
|
}
|
|
3365
3490
|
}
|
|
3491
|
+
|
|
3492
|
+
// src/react/componentManifest/componentMeta/props.ts
|
|
3493
|
+
import {
|
|
3494
|
+
isEnumDeclaration,
|
|
3495
|
+
isInterfaceDeclaration,
|
|
3496
|
+
isLiteralTypeNode,
|
|
3497
|
+
isNumericLiteral,
|
|
3498
|
+
isStringLiteral as isStringLiteral2,
|
|
3499
|
+
isTypeAliasDeclaration,
|
|
3500
|
+
isTypeReferenceNode,
|
|
3501
|
+
isUnionTypeNode
|
|
3502
|
+
} from "typescript-native/unstable/ast";
|
|
3503
|
+
import {
|
|
3504
|
+
SymbolFlags as SymbolFlags2,
|
|
3505
|
+
TypeFlags as TypeFlags2,
|
|
3506
|
+
isUnionType
|
|
3507
|
+
} from "typescript-native/unstable/sync";
|
|
3366
3508
|
function getPropSymbols(ctx, propsType, location) {
|
|
3367
3509
|
let members = isUnionType(propsType) ? propsType.getTypes() : [];
|
|
3368
3510
|
if (members.length === 0) {
|
|
3369
3511
|
let apparent = ctx.checker.getApparentType(propsType) ?? propsType;
|
|
3370
3512
|
return ctx.checker.getPropertiesOfType(apparent).map((symbol) => ({ symbol, forceOptional: !1 }));
|
|
3371
3513
|
}
|
|
3372
|
-
let isDegraded = (symbol) => !!(ctx.checker.getTypeOfSymbolAtLocation(symbol, location).flags & (
|
|
3514
|
+
let isDegraded = (symbol) => !!(ctx.checker.getTypeOfSymbolAtLocation(symbol, location).flags & (TypeFlags2.Never | TypeFlags2.Undefined)), props = /* @__PURE__ */ new Map();
|
|
3373
3515
|
for (let member of members)
|
|
3374
3516
|
for (let symbol of ctx.checker.getPropertiesOfType(member)) {
|
|
3375
|
-
let degraded = isDegraded(symbol), optional = !!(symbol.flags &
|
|
3517
|
+
let degraded = isDegraded(symbol), optional = !!(symbol.flags & SymbolFlags2.Optional) || degraded, existing = props.get(symbol.name);
|
|
3376
3518
|
if (!existing) {
|
|
3377
3519
|
props.set(symbol.name, { symbol, forceOptional: optional, count: 1, degraded });
|
|
3378
3520
|
continue;
|
|
@@ -3421,7 +3563,7 @@ function getSourceLiteralOrder(ctx, prop) {
|
|
|
3421
3563
|
else if (isTypeReferenceNode(node)) {
|
|
3422
3564
|
let symbol = ctx.checker.getSymbolAtLocation(node.typeName), alias = symbol && getDeclaration(ctx, resolveAlias(ctx, symbol));
|
|
3423
3565
|
alias && isTypeAliasDeclaration(alias) && visit(alias.type, depth + 1), alias && isEnumDeclaration(alias) && alias.members.forEach((member) => visit(member.initializer, depth + 1));
|
|
3424
|
-
} else (
|
|
3566
|
+
} else (isStringLiteral2(node) || isNumericLiteral(node)) && texts.push(node.getText());
|
|
3425
3567
|
}, declaration = getDeclaration(ctx, prop);
|
|
3426
3568
|
return declaration && "type" in declaration && visit(declaration.type, 0), texts.map((text) => text.replace(/^'(.*)'$/s, (_, value) => JSON.stringify(value)));
|
|
3427
3569
|
}
|
|
@@ -3430,11 +3572,11 @@ function serializeType(ctx, type, required, sourceOrder, depth = 0) {
|
|
|
3430
3572
|
if (depth > MAX_DEPTH)
|
|
3431
3573
|
return { name: checker.typeToString(type) };
|
|
3432
3574
|
if (isUnionType(type)) {
|
|
3433
|
-
let all = type.getTypes(), members = all.filter((member) => !(member.flags &
|
|
3434
|
-
if (members.length === 2 && members.every((member) => member.flags &
|
|
3575
|
+
let all = type.getTypes(), members = all.filter((member) => !(member.flags & TypeFlags2.Undefined));
|
|
3576
|
+
if (members.length === 2 && members.every((member) => member.flags & TypeFlags2.BooleanLiteral))
|
|
3435
3577
|
return { name: "boolean" };
|
|
3436
3578
|
let literals = members.filter(
|
|
3437
|
-
(member) => !!(member.flags & (
|
|
3579
|
+
(member) => !!(member.flags & (TypeFlags2.StringLiteral | TypeFlags2.NumberLiteral))
|
|
3438
3580
|
);
|
|
3439
3581
|
if (literals.length > 0 && literals.length === members.length) {
|
|
3440
3582
|
let order = sourceOrder(), position = (member) => {
|
|
@@ -3450,127 +3592,28 @@ function serializeType(ctx, type, required, sourceOrder, depth = 0) {
|
|
|
3450
3592
|
if (!required && members.length === 1 && members.length < all.length)
|
|
3451
3593
|
return { name: checker.typeToString(members[0]) };
|
|
3452
3594
|
}
|
|
3453
|
-
if (type.flags &
|
|
3595
|
+
if (type.flags & TypeFlags2.TypeParameter) {
|
|
3454
3596
|
let constraint = checker.getBaseConstraintOfType(type);
|
|
3455
3597
|
if (constraint && constraint.id !== type.id)
|
|
3456
3598
|
return serializeType(ctx, constraint, required, sourceOrder, depth + 1);
|
|
3457
3599
|
}
|
|
3458
3600
|
return { name: checker.typeToString(type) };
|
|
3459
3601
|
}
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
if (!
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
return findFunction(ctx, node.expression, depth + 1);
|
|
3469
|
-
if (isCallExpression(node)) {
|
|
3470
|
-
for (let argument of node.arguments) {
|
|
3471
|
-
let fn = findFunction(ctx, argument, depth + 1);
|
|
3472
|
-
if (fn)
|
|
3473
|
-
return fn;
|
|
3474
|
-
}
|
|
3475
|
-
return;
|
|
3476
|
-
}
|
|
3477
|
-
if (isIdentifier(node)) {
|
|
3478
|
-
let symbol = ctx.checker.getSymbolAtLocation(node), declaration = symbol && getDeclaration(ctx, resolveAlias(ctx, symbol));
|
|
3479
|
-
if (declaration && isVariableDeclaration(declaration))
|
|
3480
|
-
return findFunction(ctx, declaration.initializer, depth + 1);
|
|
3481
|
-
if (declaration && isFunctionDeclaration(declaration))
|
|
3482
|
-
return declaration;
|
|
3483
|
-
}
|
|
3484
|
-
}
|
|
3485
|
-
}
|
|
3486
|
-
function resolveLiteral(ctx, node, depth = 0) {
|
|
3487
|
-
return depth > MAX_DEPTH || !(isIdentifier(node) || isPropertyAccessExpression(node)) ? node.getText() : isIdentifier(node) && node.text === "undefined" ? "undefined" : resolveSymbolLiteral(ctx, ctx.checker.getSymbolAtLocation(node), node.getText(), depth);
|
|
3488
|
-
}
|
|
3489
|
-
function resolveSymbolLiteral(ctx, symbol, text, depth = 0) {
|
|
3490
|
-
let declaration = symbol && getDeclaration(ctx, resolveAlias(ctx, symbol)), initializer = declaration && (isVariableDeclaration(declaration) || isEnumMember(declaration) || isBindingElement(declaration) || isPropertyAssignment(declaration)) ? declaration.initializer : void 0;
|
|
3491
|
-
return initializer ? resolveLiteral(ctx, initializer, depth + 1) : text;
|
|
3492
|
-
}
|
|
3493
|
-
function collectBindingDefaults(ctx, pattern, defaults) {
|
|
3494
|
-
for (let element of pattern.elements)
|
|
3495
|
-
if (element.initializer && element.name) {
|
|
3496
|
-
let name = (element.propertyName ?? element.name).getText();
|
|
3497
|
-
defaults.set(name, resolveLiteral(ctx, element.initializer));
|
|
3498
|
-
}
|
|
3499
|
-
}
|
|
3500
|
-
function readsProps(ctx, node, props) {
|
|
3501
|
-
let expression = skipWrappers(node);
|
|
3502
|
-
return isIdentifier(expression) ? sameSymbol(ctx.checker.getSymbolAtLocation(expression), props) : isAwaitExpression(expression) ? readsProps(ctx, expression.expression, props) : isBinaryExpression(expression) ? readsProps(ctx, expression.left, props) || readsProps(ctx, expression.right, props) : isConditionalExpression(expression) ? readsProps(ctx, expression.whenTrue, props) || readsProps(ctx, expression.whenFalse, props) : isCallExpression(expression) || isNewExpression(expression) ? expression.arguments?.some((argument) => readsProps(ctx, argument, props)) ?? !1 : !1;
|
|
3503
|
-
}
|
|
3504
|
-
function getDestructuringDefaults(ctx, component) {
|
|
3505
|
-
let defaults = /* @__PURE__ */ new Map(), declarations = getDeclarations(ctx, component), declaration = getDeclaration(ctx, component), fn;
|
|
3506
|
-
declaration && isFunctionDeclaration(declaration) ? fn = declarations.find(
|
|
3507
|
-
(node) => isFunctionDeclaration(node) && !!node.body
|
|
3508
|
-
) : declaration && isVariableDeclaration(declaration) ? fn = findFunction(ctx, declaration.initializer) : declaration && isExportAssignment(declaration) && (fn = findFunction(ctx, declaration.expression));
|
|
3509
|
-
let [propsParameter] = fn?.parameters ?? [];
|
|
3510
|
-
if (!fn || !propsParameter)
|
|
3511
|
-
return defaults;
|
|
3512
|
-
if (isObjectBindingPattern(propsParameter.name))
|
|
3513
|
-
return collectBindingDefaults(ctx, propsParameter.name, defaults), defaults;
|
|
3514
|
-
let props = isIdentifier(propsParameter.name) ? ctx.checker.getSymbolAtLocation(propsParameter.name) : void 0;
|
|
3515
|
-
if (!props || !fn.body || !isBlock(fn.body))
|
|
3516
|
-
return defaults;
|
|
3517
|
-
for (let statement of fn.body.statements)
|
|
3518
|
-
if (isVariableStatement(statement))
|
|
3519
|
-
for (let variable of statement.declarationList.declarations)
|
|
3520
|
-
isObjectBindingPattern(variable.name) && variable.initializer && readsProps(ctx, variable.initializer, props) && collectBindingDefaults(ctx, variable.name, defaults);
|
|
3521
|
-
return defaults;
|
|
3522
|
-
}
|
|
3523
|
-
function collectObjectDefaults(ctx, object, defaults) {
|
|
3524
|
-
for (let property of object.properties)
|
|
3525
|
-
if (isPropertyAssignment(property))
|
|
3526
|
-
defaults.set(property.name.getText(), resolveLiteral(ctx, property.initializer));
|
|
3527
|
-
else if (isShorthandPropertyAssignment(property)) {
|
|
3528
|
-
let name = property.name.getText(), symbol = ctx.checker.getShorthandAssignmentValueSymbol(property);
|
|
3529
|
-
defaults.set(name, resolveSymbolLiteral(ctx, symbol, name));
|
|
3530
|
-
}
|
|
3531
|
-
}
|
|
3532
|
-
function toObjectLiteral(ctx, node) {
|
|
3533
|
-
if (node && isIdentifier(node)) {
|
|
3534
|
-
let symbol = ctx.checker.getSymbolAtLocation(node), declaration = symbol && getDeclaration(ctx, symbol);
|
|
3535
|
-
node = declaration && isVariableDeclaration(declaration) ? declaration.initializer : void 0;
|
|
3536
|
-
}
|
|
3537
|
-
return node && isObjectLiteralExpression(node) ? node : void 0;
|
|
3538
|
-
}
|
|
3539
|
-
function getDefaultPropsDefaults(ctx, component) {
|
|
3540
|
-
let defaults = /* @__PURE__ */ new Map(), sourceFile = getDeclaration(ctx, component)?.getSourceFile();
|
|
3541
|
-
if (!sourceFile)
|
|
3542
|
-
return defaults;
|
|
3543
|
-
let isComponent = (node) => {
|
|
3544
|
-
let symbol = ctx.checker.getSymbolAtLocation(node);
|
|
3545
|
-
return !!symbol && sameSymbol(resolveAlias(ctx, symbol), component);
|
|
3546
|
-
};
|
|
3547
|
-
for (let statement of sourceFile.statements) {
|
|
3548
|
-
if (isClassDeclaration(statement) && statement.name && isComponent(statement.name)) {
|
|
3549
|
-
for (let member of statement.members)
|
|
3550
|
-
if (isPropertyDeclaration(member) && member.name.getText() === "defaultProps") {
|
|
3551
|
-
let object = toObjectLiteral(ctx, member.initializer);
|
|
3552
|
-
object && collectObjectDefaults(ctx, object, defaults);
|
|
3553
|
-
}
|
|
3554
|
-
}
|
|
3555
|
-
if (isExpressionStatement(statement) && isBinaryExpression(statement.expression) && statement.expression.operatorToken.kind === SyntaxKind.EqualsToken && isPropertyAccessExpression(statement.expression.left) && statement.expression.left.name.text === "defaultProps" && isComponent(statement.expression.left.expression)) {
|
|
3556
|
-
let object = toObjectLiteral(ctx, statement.expression.right);
|
|
3557
|
-
object && collectObjectDefaults(ctx, object, defaults);
|
|
3558
|
-
}
|
|
3559
|
-
}
|
|
3560
|
-
return defaults;
|
|
3602
|
+
|
|
3603
|
+
// src/react/componentManifest/componentMeta/componentMetaExtractor.ts
|
|
3604
|
+
function extractComponentDocFromStory(project, storyPath, ref) {
|
|
3605
|
+
let storyFile = project.program.getSourceFile(storyPath);
|
|
3606
|
+
if (!storyFile || !ref.importName)
|
|
3607
|
+
return;
|
|
3608
|
+
let ctx = { project, checker: project.checker }, imported = findImport(ctx, storyFile, ref), resolved = (imported && resolveFromStoryJsx(ctx, storyFile, ref, imported.local)) ?? resolveFromMetaComponent(ctx, storyFile, ref, imported?.local) ?? (imported && resolveFromModuleExport(ctx, imported.module, ref));
|
|
3609
|
+
return resolved && serializeComponentDoc(ctx, resolved, ref.importName, ref, imported?.module);
|
|
3561
3610
|
}
|
|
3562
|
-
function
|
|
3563
|
-
let
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
let next = ctx.checker.getSymbolAtLocation(declaration.initializer);
|
|
3569
|
-
if (!next)
|
|
3570
|
-
break;
|
|
3571
|
-
current = resolveAlias(ctx, next);
|
|
3572
|
-
}
|
|
3573
|
-
return current;
|
|
3611
|
+
function extractComponentDocFromFile(project, filePath, exportName = "default") {
|
|
3612
|
+
let sourceFile = project.program.getSourceFile(filePath), ctx = { project, checker: project.checker }, module = sourceFile && ctx.checker.getSymbolAtLocation(sourceFile);
|
|
3613
|
+
if (!module)
|
|
3614
|
+
return;
|
|
3615
|
+
let ref = { componentName: exportName, importName: exportName, isPackage: !1 }, resolved = resolveFromModuleExport(ctx, module, ref);
|
|
3616
|
+
return resolved && serializeComponentDoc(ctx, resolved, exportName, { ...ref, path: filePath }, module);
|
|
3574
3617
|
}
|
|
3575
3618
|
function getJsDocTags(ctx, symbol) {
|
|
3576
3619
|
let tags = {};
|
|
@@ -3600,7 +3643,7 @@ function serializeComponentDoc(ctx, { propsType, symbol }, exportName, ref, impo
|
|
|
3600
3643
|
let tags = ctx.checker.getJsDocTagsOfSymbol(prop);
|
|
3601
3644
|
if (tags.some((tag) => tag.name === "ignore"))
|
|
3602
3645
|
continue;
|
|
3603
|
-
let required = !(prop.flags &
|
|
3646
|
+
let required = !(prop.flags & SymbolFlags3.Optional) && !forceOptional, propType = type ?? ctx.checker.getTypeOfSymbolAtLocation(prop, location), jsDocDefault = tags.find((tag) => tag.name === "default" || tag.name === "defaultValue"), defaultValue = defaults.get(prop.name) ?? (jsDocDefault?.text?.trim() || void 0);
|
|
3604
3647
|
props[prop.name] = {
|
|
3605
3648
|
name: prop.name,
|
|
3606
3649
|
required,
|
|
@@ -4390,7 +4433,7 @@ function generateCompactArrayCode(ast) {
|
|
|
4390
4433
|
init_acorn();
|
|
4391
4434
|
var import_acorn_jsx = __toESM(require_acorn_jsx(), 1), acornWalk = __toESM(require_walk(), 1);
|
|
4392
4435
|
var ACORN_WALK_VISITORS = {
|
|
4393
|
-
// @ts-expect-error
|
|
4436
|
+
// @ts-expect-error `base` exists at runtime, but the acorn-walk types do not export it.
|
|
4394
4437
|
...acornWalk.base,
|
|
4395
4438
|
JSXElement: () => {
|
|
4396
4439
|
}
|
|
@@ -4404,7 +4447,7 @@ function filterAncestors(ancestors) {
|
|
|
4404
4447
|
function calculateNodeDepth(node) {
|
|
4405
4448
|
let depths = [];
|
|
4406
4449
|
return acornWalk.ancestor(
|
|
4407
|
-
// @ts-expect-error
|
|
4450
|
+
// @ts-expect-error acorn-walk wants acorn nodes, and these are ESTree nodes.
|
|
4408
4451
|
node,
|
|
4409
4452
|
{
|
|
4410
4453
|
ObjectExpression(_, ancestors) {
|
|
@@ -4435,7 +4478,7 @@ function parseLiteral(literalNode) {
|
|
|
4435
4478
|
function parseFunction(funcNode) {
|
|
4436
4479
|
let innerJsxElementNode;
|
|
4437
4480
|
acornWalk.simple(
|
|
4438
|
-
// @ts-expect-error
|
|
4481
|
+
// @ts-expect-error acorn-walk wants acorn nodes, and these are ESTree nodes.
|
|
4439
4482
|
funcNode.body,
|
|
4440
4483
|
{
|
|
4441
4484
|
JSXElement(node) {
|
|
@@ -4457,7 +4500,7 @@ function parseFunction(funcNode) {
|
|
|
4457
4500
|
function parseClass(classNode) {
|
|
4458
4501
|
let innerJsxElementNode;
|
|
4459
4502
|
return acornWalk.simple(
|
|
4460
|
-
// @ts-expect-error
|
|
4503
|
+
// @ts-expect-error acorn-walk wants acorn nodes, and these are ESTree nodes.
|
|
4461
4504
|
classNode.body,
|
|
4462
4505
|
{
|
|
4463
4506
|
JSXElement(node) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_enqaafxxjgh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_enqaafxxjgh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_enqaafxxjgh from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_enqaafxxjgh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_enqaafxxjgh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_enqaafxxjgh.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// package.json
|
|
14
|
+
var version = "0.0.1-12";
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
version
|
|
18
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_enqaafxxjgh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_enqaafxxjgh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_enqaafxxjgh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_enqaafxxjgh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_enqaafxxjgh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_enqaafxxjgh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_upaeg5sjpn.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MNQVVJZN.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/tsconfig-paths/lib/filesystem.js
|
|
18
18
|
var require_filesystem = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_enqaafxxjgh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_enqaafxxjgh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_enqaafxxjgh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_enqaafxxjgh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_enqaafxxjgh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_enqaafxxjgh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_enqaafxxjgh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_enqaafxxjgh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_enqaafxxjgh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_enqaafxxjgh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_enqaafxxjgh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_enqaafxxjgh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|