@powerlines/plugin-alloy 0.19.30 → 0.19.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{builtin-file-BJwCniGZ.mjs → builtin-file-BNp7C-BU.mjs} +4 -4
- package/dist/{builtin-file-BJwCniGZ.mjs.map → builtin-file-BNp7C-BU.mjs.map} +1 -1
- package/dist/{builtin-file-B1gDGzgo.d.mts → builtin-file-C-TpxdCP.d.mts} +3 -3
- package/dist/{builtin-file-CNpjVVjD.d.cts.map → builtin-file-C-TpxdCP.d.mts.map} +1 -1
- package/dist/{builtin-file-CNpjVVjD.d.cts → builtin-file-CDLuGDg7.d.cts} +5 -5
- package/dist/{builtin-file-B1gDGzgo.d.mts.map → builtin-file-CDLuGDg7.d.cts.map} +1 -1
- package/dist/{builtin-file-vG9RwKpd.cjs → builtin-file-CQAeHqiO.cjs} +3 -3
- package/dist/builtin-file-DWcpFOVB.d.mts +35 -0
- package/dist/builtin-file-DWcpFOVB.d.mts.map +1 -0
- package/dist/builtin-file-I0ejC9w0.d.cts +35 -0
- package/dist/builtin-file-I0ejC9w0.d.cts.map +1 -0
- package/dist/{capnp-BfsEWHU2.d.cts → capnp-CLxcoMcG.d.mts} +2 -2
- package/dist/{capnp-BfsEWHU2.d.cts.map → capnp-CLxcoMcG.d.mts.map} +1 -1
- package/dist/{capnp-XK1IvfIR.mjs → capnp-CPbob9Cm.mjs} +1 -1
- package/dist/{capnp-XK1IvfIR.mjs.map → capnp-CPbob9Cm.mjs.map} +1 -1
- package/dist/{capnp-DcnwPttP.d.mts → capnp-DbPtfpg2.d.cts} +2 -2
- package/dist/{capnp-DcnwPttP.d.mts.map → capnp-DbPtfpg2.d.cts.map} +1 -1
- package/dist/{components-DPPi58b5.d.cts → components-CvqTz7Q9.d.cts} +2 -2
- package/dist/{components-DPPi58b5.d.cts.map → components-CvqTz7Q9.d.cts.map} +1 -1
- package/dist/{components-oHSM7vmp.d.mts → components-_4e2YMfT.d.mts} +1 -1
- package/dist/{components-oHSM7vmp.d.mts.map → components-_4e2YMfT.d.mts.map} +1 -1
- package/dist/{context-CiHsTXX7.d.cts → context-C7gW4eqa.d.cts} +1 -1
- package/dist/{context-C-CzW-8C.d.mts.map → context-C7gW4eqa.d.cts.map} +1 -1
- package/dist/{context-DIUW4n33.mjs → context-CdPajCh6.mjs} +1 -1
- package/dist/{context-DIUW4n33.mjs.map → context-CdPajCh6.mjs.map} +1 -1
- package/dist/{context-C-CzW-8C.d.mts → context-D5pAjVbn.d.mts} +1 -1
- package/dist/{context-CiHsTXX7.d.cts.map → context-D5pAjVbn.d.mts.map} +1 -1
- package/dist/core/components/index.cjs +8 -6
- package/dist/core/components/index.d.cts +9 -5
- package/dist/core/components/index.d.mts +9 -5
- package/dist/core/components/index.mjs +8 -6
- package/dist/core/components/output.cjs +5 -2
- package/dist/core/components/output.d.cts +6 -1
- package/dist/core/components/output.d.mts +6 -1
- package/dist/core/components/output.mjs +5 -2
- package/dist/core/components/single-line-comment.cjs +1 -1
- package/dist/core/components/single-line-comment.d.cts +2 -2
- package/dist/core/components/single-line-comment.d.mts +2 -2
- package/dist/core/components/single-line-comment.mjs +1 -1
- package/dist/core/components/source-file.cjs +2 -2
- package/dist/core/components/source-file.d.cts +2 -2
- package/dist/core/components/source-file.d.mts +2 -2
- package/dist/core/components/source-file.mjs +2 -2
- package/dist/core/contexts/context.cjs +1 -1
- package/dist/core/contexts/context.d.cts +1 -1
- package/dist/core/contexts/context.d.mts +1 -1
- package/dist/core/contexts/context.mjs +1 -1
- package/dist/core/contexts/index.cjs +4 -4
- package/dist/core/contexts/index.d.cts +5 -5
- package/dist/core/contexts/index.d.mts +5 -5
- package/dist/core/contexts/index.mjs +4 -4
- package/dist/core/contexts/meta.cjs +1 -1
- package/dist/core/contexts/meta.d.cts +1 -1
- package/dist/core/contexts/meta.d.mts +1 -1
- package/dist/core/contexts/meta.mjs +1 -1
- package/dist/core/contexts/reflection.cjs +1 -1
- package/dist/core/contexts/reflection.d.cts +2 -2
- package/dist/core/contexts/reflection.d.mts +2 -2
- package/dist/core/contexts/reflection.mjs +1 -1
- package/dist/core/index.cjs +8 -8
- package/dist/core/index.d.cts +9 -10
- package/dist/core/index.d.mts +9 -10
- package/dist/core/index.mjs +8 -8
- package/dist/{create-builtin-C4n9BYjY.mjs → create-builtin-Be3J_vqf.mjs} +1 -1
- package/dist/{create-builtin-C4n9BYjY.mjs.map → create-builtin-Be3J_vqf.mjs.map} +1 -1
- package/dist/{create-builtin-BvtcWfWV.d.mts → create-builtin-Bpswa0ZT.d.cts} +1 -1
- package/dist/{create-builtin-BvtcWfWV.d.mts.map → create-builtin-Bpswa0ZT.d.cts.map} +1 -1
- package/dist/{create-builtin-CI8g-abA.d.cts → create-builtin-CbEjJreB.d.mts} +1 -1
- package/dist/{create-builtin-CI8g-abA.d.cts.map → create-builtin-CbEjJreB.d.mts.map} +1 -1
- package/dist/{dynamic-import-statement-BVggdOVL.mjs → dynamic-import-statement-B4Ov9C7y.mjs} +1 -1
- package/dist/{dynamic-import-statement-BVggdOVL.mjs.map → dynamic-import-statement-B4Ov9C7y.mjs.map} +1 -1
- package/dist/dynamic-import-statement-CNsIFAva.d.cts +33 -0
- package/dist/{dynamic-import-statement-pdjThvwh.d.mts.map → dynamic-import-statement-CNsIFAva.d.cts.map} +1 -1
- package/dist/dynamic-import-statement-CVIYwXyi.d.mts +33 -0
- package/dist/dynamic-import-statement-CVIYwXyi.d.mts.map +1 -0
- package/dist/{dynamic-import-statement-D4OSoBmE.d.cts → dynamic-import-statement-DDEpZVlQ.d.cts} +3 -3
- package/dist/{dynamic-import-statement-D4OSoBmE.d.cts.map → dynamic-import-statement-DDEpZVlQ.d.cts.map} +1 -1
- package/dist/{dynamic-import-statement-pdjThvwh.d.mts → dynamic-import-statement-DSNDMC9Y.d.mts} +1 -1
- package/dist/dynamic-import-statement-DSNDMC9Y.d.mts.map +1 -0
- package/dist/{entry-file-BF1TZjhp.cjs → entry-file-CYPWFUfe.cjs} +4 -4
- package/dist/{entry-file-P5n-ofhK.mjs → entry-file-CrZ-k87r.mjs} +5 -5
- package/dist/{entry-file-P5n-ofhK.mjs.map → entry-file-CrZ-k87r.mjs.map} +1 -1
- package/dist/{entry-file-DUBROn1J.d.mts → entry-file-DOcjyCDG.d.mts} +2 -2
- package/dist/{entry-file-DUBROn1J.d.mts.map → entry-file-DOcjyCDG.d.mts.map} +1 -1
- package/dist/{entry-file-GKgTr4Su.d.cts → entry-file-DVf4SGx4.d.cts} +4 -4
- package/dist/{entry-file-GKgTr4Su.d.cts.map → entry-file-DVf4SGx4.d.cts.map} +1 -1
- package/dist/entry-file-DXv3HtYV.d.mts +28 -0
- package/dist/entry-file-DXv3HtYV.d.mts.map +1 -0
- package/dist/entry-file-y0caTLfc.d.cts +28 -0
- package/dist/entry-file-y0caTLfc.d.cts.map +1 -0
- package/dist/{front-matter-Dzh6QhN-.mjs → front-matter-BeTG0uJA.mjs} +1 -1
- package/dist/{front-matter-Dzh6QhN-.mjs.map → front-matter-BeTG0uJA.mjs.map} +1 -1
- package/dist/{front-matter-DmO4uu91.d.cts → front-matter-CXfCT8a8.d.mts} +3 -3
- package/dist/{front-matter-DJg5sQXt.d.mts.map → front-matter-CXfCT8a8.d.mts.map} +1 -1
- package/dist/front-matter-DTorR58b.d.cts +16 -0
- package/dist/{front-matter-DmO4uu91.d.cts.map → front-matter-DTorR58b.d.cts.map} +1 -1
- package/dist/{front-matter-DJg5sQXt.d.mts → front-matter-DySGMCRE.d.cts} +1 -1
- package/dist/front-matter-DySGMCRE.d.cts.map +1 -0
- package/dist/helpers/capnp.d.cts +1 -1
- package/dist/helpers/capnp.d.mts +1 -1
- package/dist/helpers/capnp.mjs +1 -1
- package/dist/helpers/create-builtin.d.cts +1 -1
- package/dist/helpers/create-builtin.d.mts +1 -1
- package/dist/helpers/create-builtin.mjs +1 -1
- package/dist/helpers/index.d.cts +4 -4
- package/dist/helpers/index.d.mts +4 -4
- package/dist/helpers/index.mjs +4 -4
- package/dist/helpers/refkey.d.cts +1 -1
- package/dist/helpers/refkey.d.mts +1 -1
- package/dist/helpers/refkey.mjs +1 -1
- package/dist/helpers/typescript.d.cts +1 -1
- package/dist/helpers/typescript.d.mts +1 -1
- package/dist/helpers/typescript.mjs +1 -1
- package/dist/index.cjs +1 -51
- package/dist/index.d.cts +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -51
- package/dist/index.mjs.map +1 -1
- package/dist/markdown/components/front-matter.d.cts +1 -1
- package/dist/markdown/components/front-matter.d.mts +1 -1
- package/dist/markdown/components/front-matter.mjs +1 -1
- package/dist/markdown/components/index.cjs +5 -5
- package/dist/markdown/components/index.d.cts +7 -7
- package/dist/markdown/components/index.d.mts +7 -7
- package/dist/markdown/components/index.mjs +9 -9
- package/dist/markdown/components/markdown-file.cjs +5 -5
- package/dist/markdown/components/markdown-file.d.cts +4 -4
- package/dist/markdown/components/markdown-file.d.mts +4 -4
- package/dist/markdown/components/markdown-file.mjs +6 -6
- package/dist/markdown/components/markdown-table.d.cts +3 -3
- package/dist/markdown/components/markdown-table.d.mts +3 -3
- package/dist/markdown/components/markdown-table.mjs +2 -2
- package/dist/markdown/contexts/index.d.cts +2 -2
- package/dist/markdown/contexts/index.d.mts +2 -2
- package/dist/markdown/contexts/index.mjs +2 -2
- package/dist/markdown/contexts/markdown-table.d.cts +1 -1
- package/dist/markdown/contexts/markdown-table.d.mts +1 -1
- package/dist/markdown/contexts/markdown-table.mjs +1 -1
- package/dist/markdown/index.cjs +5 -5
- package/dist/markdown/index.d.cts +8 -8
- package/dist/markdown/index.d.mts +8 -8
- package/dist/markdown/index.mjs +10 -10
- package/dist/markdown-file-BkmvexMF.d.cts +29 -0
- package/dist/markdown-file-BkmvexMF.d.cts.map +1 -0
- package/dist/{markdown-file-DR8AzoU8.d.mts → markdown-file-C7o9bn--.d.mts} +7 -7
- package/dist/{markdown-file-CBuFHs8q.d.cts.map → markdown-file-C7o9bn--.d.mts.map} +1 -1
- package/dist/{markdown-file-BDzUAptw.cjs → markdown-file-CFt8hI37.cjs} +3 -3
- package/dist/{markdown-file-DmarbNrj.mjs → markdown-file-CX8auFpl.mjs} +5 -5
- package/dist/{markdown-file-DmarbNrj.mjs.map → markdown-file-CX8auFpl.mjs.map} +1 -1
- package/dist/markdown-file-CbVNKFje.d.cts +29 -0
- package/dist/{markdown-file-DR8AzoU8.d.mts.map → markdown-file-CbVNKFje.d.cts.map} +1 -1
- package/dist/{markdown-file-CBuFHs8q.d.cts → markdown-file-DMrhFhUU.d.mts} +4 -4
- package/dist/markdown-file-DMrhFhUU.d.mts.map +1 -0
- package/dist/{markdown-table-Dt4BocWh.d.mts → markdown-table-B7EUUNbl.d.mts} +7 -7
- package/dist/{markdown-table-Dt4BocWh.d.mts.map → markdown-table-B7EUUNbl.d.mts.map} +1 -1
- package/dist/markdown-table-CGXp5JbS.d.mts +28 -0
- package/dist/{markdown-table-lHHt0yAj.d.cts.map → markdown-table-CGXp5JbS.d.mts.map} +1 -1
- package/dist/markdown-table-CKMEMcyb.d.cts +28 -0
- package/dist/markdown-table-CKMEMcyb.d.cts.map +1 -0
- package/dist/{markdown-table-DIfM03TF.d.mts → markdown-table-CZMEY6IR.d.cts} +1 -1
- package/dist/{markdown-table-Dxxupt8O.d.cts.map → markdown-table-CZMEY6IR.d.cts.map} +1 -1
- package/dist/{markdown-table-CRVCcmmS.mjs → markdown-table-CnEur72Z.mjs} +2 -2
- package/dist/{markdown-table-CRVCcmmS.mjs.map → markdown-table-CnEur72Z.mjs.map} +1 -1
- package/dist/{markdown-table-lHHt0yAj.d.cts → markdown-table-Cv3P72sN.d.cts} +3 -3
- package/dist/markdown-table-Cv3P72sN.d.cts.map +1 -0
- package/dist/{markdown-table-BKaAfa6u.mjs → markdown-table-PT2TFFY3.mjs} +1 -1
- package/dist/{markdown-table-BKaAfa6u.mjs.map → markdown-table-PT2TFFY3.mjs.map} +1 -1
- package/dist/{markdown-table-Dxxupt8O.d.cts → markdown-table-t6Z-cmxX.d.mts} +1 -1
- package/dist/{markdown-table-DIfM03TF.d.mts.map → markdown-table-t6Z-cmxX.d.mts.map} +1 -1
- package/dist/{meta-vNWUnnLO.mjs → meta-BEeFPjoM.mjs} +1 -1
- package/dist/{meta-vNWUnnLO.mjs.map → meta-BEeFPjoM.mjs.map} +1 -1
- package/dist/{meta-CyClLk1y.d.mts → meta-D0y5uZo4.d.cts} +1 -1
- package/dist/{meta-CyClLk1y.d.mts.map → meta-D0y5uZo4.d.cts.map} +1 -1
- package/dist/{meta-xgVuv08y.d.cts → meta-DJqWxY95.d.mts} +1 -1
- package/dist/{meta-xgVuv08y.d.cts.map → meta-DJqWxY95.d.mts.map} +1 -1
- package/dist/output-B5O_qz0i.cjs +44 -0
- package/dist/{output-DrYA3tAH.d.cts → output-C5BkcdCd.d.cts} +9 -4
- package/dist/output-C5BkcdCd.d.cts.map +1 -0
- package/dist/{output-DIrAcd1E.d.mts → output-C7mlHz0P.d.mts} +9 -4
- package/dist/output-C7mlHz0P.d.mts.map +1 -0
- package/dist/output-DcuryjuV.mjs +39 -0
- package/dist/output-DcuryjuV.mjs.map +1 -0
- package/dist/output-XvUhyMSi.d.cts +24 -0
- package/dist/output-XvUhyMSi.d.cts.map +1 -0
- package/dist/{plugin-aN6BnM8T.d.cts → plugin-CyBCpZyU.d.mts} +3 -5
- package/dist/plugin-CyBCpZyU.d.mts.map +1 -0
- package/dist/{plugin-c-C_CW4P.d.mts → plugin-DIlnN1SV.d.cts} +3 -5
- package/dist/plugin-DIlnN1SV.d.cts.map +1 -0
- package/dist/{record-expression-DYCDlTyT.d.mts → record-expression-ChoLAsVS.d.mts} +1 -1
- package/dist/{record-expression-B4Wa9HOn.d.cts.map → record-expression-ChoLAsVS.d.mts.map} +1 -1
- package/dist/{record-expression-BHpXe3mY.mjs → record-expression-D5W72rZN.mjs} +1 -1
- package/dist/{record-expression-BHpXe3mY.mjs.map → record-expression-D5W72rZN.mjs.map} +1 -1
- package/dist/{record-expression-B4Wa9HOn.d.cts → record-expression-Dwg_PZpg.d.cts} +1 -1
- package/dist/{record-expression-DYCDlTyT.d.mts.map → record-expression-Dwg_PZpg.d.cts.map} +1 -1
- package/dist/{refkey-DqDd2Fzs.d.cts → refkey-CP7MJMac.d.cts} +1 -1
- package/dist/refkey-CP7MJMac.d.cts.map +1 -0
- package/dist/{refkey-CyhX8n2z.mjs → refkey-CQVHeuAq.mjs} +1 -1
- package/dist/{refkey-CyhX8n2z.mjs.map → refkey-CQVHeuAq.mjs.map} +1 -1
- package/dist/{refkey-CqkD5Tjp.d.mts → refkey-D6OjgKgS.d.mts} +1 -1
- package/dist/refkey-D6OjgKgS.d.mts.map +1 -0
- package/dist/{reflection-CAz7PWzK.d.mts → reflection-CfOmSgDn.d.mts} +2 -2
- package/dist/{reflection-CAz7PWzK.d.mts.map → reflection-CfOmSgDn.d.mts.map} +1 -1
- package/dist/{reflection-JGVev2J6.d.cts → reflection-Q87E_-w_.d.cts} +2 -2
- package/dist/{reflection-JGVev2J6.d.cts.map → reflection-Q87E_-w_.d.cts.map} +1 -1
- package/dist/{reflection-ExLWJ473.mjs → reflection-TXYxCAwV.mjs} +1 -1
- package/dist/{reflection-ExLWJ473.mjs.map → reflection-TXYxCAwV.mjs.map} +1 -1
- package/dist/{single-line-comment-PMv_zrfe.d.mts → single-line-comment-BKFqKn-D.d.mts} +2 -2
- package/dist/{single-line-comment-PMv_zrfe.d.mts.map → single-line-comment-BKFqKn-D.d.mts.map} +1 -1
- package/dist/single-line-comment-Ct_putR7.d.mts +23 -0
- package/dist/single-line-comment-Ct_putR7.d.mts.map +1 -0
- package/dist/{single-line-comment-DWF0HxhM.d.cts → single-line-comment-D2y_A8e1.d.cts} +2 -2
- package/dist/{single-line-comment-DWF0HxhM.d.cts.map → single-line-comment-D2y_A8e1.d.cts.map} +1 -1
- package/dist/{single-line-comment-CGkTdNez.mjs → single-line-comment-DW0LUIQ2.mjs} +1 -1
- package/dist/{single-line-comment-CGkTdNez.mjs.map → single-line-comment-DW0LUIQ2.mjs.map} +1 -1
- package/dist/single-line-comment-DWQy5rrk.d.cts +23 -0
- package/dist/single-line-comment-DWQy5rrk.d.cts.map +1 -0
- package/dist/source-file-B51pGSXX.d.mts +33 -0
- package/dist/{source-file-CQl0UCgf.d.mts.map → source-file-B51pGSXX.d.mts.map} +1 -1
- package/dist/{source-file-CQl0UCgf.d.mts → source-file-BhqYj8m-.d.mts} +2 -2
- package/dist/{source-file-K-TgMOts.d.cts.map → source-file-BhqYj8m-.d.mts.map} +1 -1
- package/dist/{source-file-C2DlmRUm.mjs → source-file-Bl7eV0Li.mjs} +2 -2
- package/dist/{source-file-C2DlmRUm.mjs.map → source-file-Bl7eV0Li.mjs.map} +1 -1
- package/dist/source-file-DiisOeS2.d.cts +33 -0
- package/dist/source-file-DiisOeS2.d.cts.map +1 -0
- package/dist/{source-file-C8ntga6V.cjs → source-file-DnqaQY90.cjs} +1 -1
- package/dist/{source-file-K-TgMOts.d.cts → source-file-gMJwiJAw.d.cts} +2 -2
- package/dist/source-file-gMJwiJAw.d.cts.map +1 -0
- package/dist/{tsdoc-fSRc8v2O.cjs → tsdoc-BufL8muf.cjs} +1 -1
- package/dist/{tsdoc-C9i5z6EE.mjs → tsdoc-DB1Qzwsn.mjs} +2 -2
- package/dist/{tsdoc-C9i5z6EE.mjs.map → tsdoc-DB1Qzwsn.mjs.map} +1 -1
- package/dist/{tsdoc-BlBkyIWO.d.cts → tsdoc-DiBR7m1J.d.cts} +3 -3
- package/dist/{tsdoc-BlBkyIWO.d.cts.map → tsdoc-DiBR7m1J.d.cts.map} +1 -1
- package/dist/{tsdoc-cuL_4mkw.d.mts → tsdoc-KHfXy9HE.d.mts} +2 -2
- package/dist/{tsdoc-cuL_4mkw.d.mts.map → tsdoc-KHfXy9HE.d.mts.map} +1 -1
- package/dist/{tsdoc-reflection-BpkFCXw6.cjs → tsdoc-reflection-B5-J4ia-.cjs} +2 -2
- package/dist/{tsdoc-reflection-BFTBtjQ2.mjs → tsdoc-reflection-BGPyymTb.mjs} +3 -3
- package/dist/{tsdoc-reflection-BFTBtjQ2.mjs.map → tsdoc-reflection-BGPyymTb.mjs.map} +1 -1
- package/dist/{tsdoc-reflection-nKQBTaXx.d.mts → tsdoc-reflection-CYz5udTh.d.mts} +6 -6
- package/dist/{tsdoc-reflection-nKQBTaXx.d.mts.map → tsdoc-reflection-CYz5udTh.d.mts.map} +1 -1
- package/dist/{tsdoc-reflection-BIQsHdDs.d.cts → tsdoc-reflection-DTYkFxKy.d.cts} +6 -6
- package/dist/{tsdoc-reflection-BIQsHdDs.d.cts.map → tsdoc-reflection-DTYkFxKy.d.cts.map} +1 -1
- package/dist/tsdoc-reflection-cRd43W18.d.cts +19 -0
- package/dist/tsdoc-reflection-cRd43W18.d.cts.map +1 -0
- package/dist/types/components.d.cts +1 -1
- package/dist/types/components.d.mts +1 -1
- package/dist/types/components.mjs +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.mjs +2 -2
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/dist/types/plugin.mjs +1 -1
- package/dist/typescript/components/builtin-file.cjs +7 -7
- package/dist/typescript/components/builtin-file.d.cts +5 -5
- package/dist/typescript/components/builtin-file.d.mts +5 -5
- package/dist/typescript/components/builtin-file.mjs +7 -7
- package/dist/typescript/components/dynamic-import-statement.d.cts +1 -1
- package/dist/typescript/components/dynamic-import-statement.d.mts +1 -1
- package/dist/typescript/components/dynamic-import-statement.mjs +1 -1
- package/dist/typescript/components/entry-file.cjs +6 -6
- package/dist/typescript/components/entry-file.d.cts +4 -4
- package/dist/typescript/components/entry-file.d.mts +4 -4
- package/dist/typescript/components/entry-file.mjs +6 -6
- package/dist/typescript/components/index.cjs +12 -12
- package/dist/typescript/components/index.d.cts +12 -12
- package/dist/typescript/components/index.d.mts +12 -12
- package/dist/typescript/components/index.mjs +15 -15
- package/dist/typescript/components/record-expression.d.cts +1 -1
- package/dist/typescript/components/record-expression.d.mts +1 -1
- package/dist/typescript/components/record-expression.mjs +1 -1
- package/dist/typescript/components/tsdoc-reflection.cjs +4 -4
- package/dist/typescript/components/tsdoc-reflection.d.cts +3 -3
- package/dist/typescript/components/tsdoc-reflection.d.mts +3 -3
- package/dist/typescript/components/tsdoc-reflection.mjs +4 -4
- package/dist/typescript/components/tsdoc.cjs +2 -2
- package/dist/typescript/components/tsdoc.d.cts +2 -2
- package/dist/typescript/components/tsdoc.d.mts +2 -2
- package/dist/typescript/components/tsdoc.mjs +2 -2
- package/dist/typescript/components/typescript-file.cjs +5 -5
- package/dist/typescript/components/typescript-file.d.cts +3 -3
- package/dist/typescript/components/typescript-file.d.mts +3 -3
- package/dist/typescript/components/typescript-file.mjs +5 -5
- package/dist/typescript/components/typescript-interface.cjs +5 -5
- package/dist/typescript/components/typescript-interface.d.cts +2 -2
- package/dist/typescript/components/typescript-interface.d.mts +2 -2
- package/dist/typescript/components/typescript-interface.mjs +5 -5
- package/dist/typescript/components/typescript-object.cjs +5 -5
- package/dist/typescript/components/typescript-object.d.cts +2 -2
- package/dist/typescript/components/typescript-object.d.mts +2 -2
- package/dist/typescript/components/typescript-object.mjs +5 -5
- package/dist/typescript/index.cjs +12 -12
- package/dist/typescript/index.d.cts +12 -12
- package/dist/typescript/index.d.mts +12 -12
- package/dist/typescript/index.mjs +15 -15
- package/dist/{typescript-CrVxDaSo.mjs → typescript-BXhP0qIJ.mjs} +1 -1
- package/dist/{typescript-CrVxDaSo.mjs.map → typescript-BXhP0qIJ.mjs.map} +1 -1
- package/dist/{typescript-BpWiXYf3.d.mts → typescript-CXP7Oa6_.d.cts} +1 -1
- package/dist/{typescript-BpWiXYf3.d.mts.map → typescript-CXP7Oa6_.d.cts.map} +1 -1
- package/dist/{typescript-CJjS7_9C.d.cts → typescript-DvynKONm.d.mts} +1 -1
- package/dist/{typescript-CJjS7_9C.d.cts.map → typescript-DvynKONm.d.mts.map} +1 -1
- package/dist/{typescript-file-DKYD5v5W.cjs → typescript-file-4oY1sIRB.cjs} +3 -3
- package/dist/{typescript-file-BPQyRh10.d.cts → typescript-file-C9TPcvPm.d.mts} +3 -3
- package/dist/{typescript-file-BPQyRh10.d.cts.map → typescript-file-C9TPcvPm.d.mts.map} +1 -1
- package/dist/{typescript-file-CWoL1YfK.d.mts → typescript-file-CJxOp_Xl.d.cts} +3 -3
- package/dist/{typescript-file-CWoL1YfK.d.mts.map → typescript-file-CJxOp_Xl.d.cts.map} +1 -1
- package/dist/typescript-file-CY0SmW6n.d.mts +50 -0
- package/dist/typescript-file-CY0SmW6n.d.mts.map +1 -0
- package/dist/typescript-file-DWYfy1-C.d.cts +50 -0
- package/dist/typescript-file-DWYfy1-C.d.cts.map +1 -0
- package/dist/{typescript-file-CZiIcJah.mjs → typescript-file-iXGdOTZv.mjs} +4 -4
- package/dist/{typescript-file-CZiIcJah.mjs.map → typescript-file-iXGdOTZv.mjs.map} +1 -1
- package/dist/{typescript-interface-BleA7_Sa.d.cts → typescript-interface-4Kxgaglq.d.mts} +6 -6
- package/dist/{typescript-interface-BleA7_Sa.d.cts.map → typescript-interface-4Kxgaglq.d.mts.map} +1 -1
- package/dist/{typescript-interface-DC2d5S0V.cjs → typescript-interface-B0AoZx3f.cjs} +2 -2
- package/dist/{typescript-interface-DkVOFLEt.d.mts → typescript-interface-B1mhCCoV.d.cts} +5 -5
- package/dist/{typescript-interface-DkVOFLEt.d.mts.map → typescript-interface-B1mhCCoV.d.cts.map} +1 -1
- package/dist/typescript-interface-C0mgTtdj.d.cts +26 -0
- package/dist/typescript-interface-C0mgTtdj.d.cts.map +1 -0
- package/dist/{typescript-interface-CDzEeHla.mjs → typescript-interface-DoEGxV_8.mjs} +3 -3
- package/dist/{typescript-interface-CDzEeHla.mjs.map → typescript-interface-DoEGxV_8.mjs.map} +1 -1
- package/dist/{typescript-object-CGjPvsYM.cjs → typescript-object-C4d4fThY.cjs} +2 -2
- package/dist/{typescript-object-FaGWSJWA.mjs → typescript-object-C5oh925V.mjs} +3 -3
- package/dist/{typescript-object-FaGWSJWA.mjs.map → typescript-object-C5oh925V.mjs.map} +1 -1
- package/dist/{typescript-object-B4V9RkaE.d.cts → typescript-object-DAepqTrw.d.cts} +6 -6
- package/dist/{typescript-object-Cphz389O.d.mts.map → typescript-object-DAepqTrw.d.cts.map} +1 -1
- package/dist/typescript-object-DUivJKpz.d.cts +30 -0
- package/dist/{typescript-object-B4V9RkaE.d.cts.map → typescript-object-DUivJKpz.d.cts.map} +1 -1
- package/dist/{typescript-object-Cphz389O.d.mts → typescript-object-TlHt1hQc.d.mts} +2 -2
- package/dist/typescript-object-TlHt1hQc.d.mts.map +1 -0
- package/package.json +16 -30
- package/dist/index-sViox9YW.d.mts +0 -1
- package/dist/index-uY8Qbwfx.d.mts +0 -1
- package/dist/output-CUxfvVVp.mjs +0 -35
- package/dist/output-CUxfvVVp.mjs.map +0 -1
- package/dist/output-Ck9L8v3E.cjs +0 -40
- package/dist/output-DIrAcd1E.d.mts.map +0 -1
- package/dist/output-DrYA3tAH.d.cts.map +0 -1
- package/dist/plugin-aN6BnM8T.d.cts.map +0 -1
- package/dist/plugin-c-C_CW4P.d.mts.map +0 -1
- package/dist/refkey-CqkD5Tjp.d.mts.map +0 -1
- package/dist/refkey-DqDd2Fzs.d.cts.map +0 -1
- package/dist/types/_internal.cjs +0 -0
- package/dist/types/_internal.d.cts +0 -42
- package/dist/types/_internal.d.cts.map +0 -1
- package/dist/types/_internal.d.mts +0 -42
- package/dist/types/_internal.d.mts.map +0 -1
- package/dist/types/_internal.mjs +0 -1
- /package/dist/{components-BYyc8-6U.cjs → components-B0evB5xd.cjs} +0 -0
- /package/dist/{components-BHsPgUVD.mjs → components-ByryZacA.mjs} +0 -0
- /package/dist/{components-C4MWIzKk.mjs → components-C3qpgLKV.mjs} +0 -0
- /package/dist/{components-DTKCKgWS.mjs → components-Cr-i-ofB.mjs} +0 -0
- /package/dist/{components-bxkcKDVx.mjs → components-NXgsRgB4.mjs} +0 -0
- /package/dist/{context-D-lZVHpZ.cjs → context-DNdlL_gp.cjs} +0 -0
- /package/dist/{contexts-D631HKlO.mjs → contexts-BqTplHQH.mjs} +0 -0
- /package/dist/{contexts-DppcDJxB.mjs → contexts-D-vYhGdM.mjs} +0 -0
- /package/dist/{contexts-Do5bLA7f.cjs → contexts-DWGMeWga.cjs} +0 -0
- /package/dist/{index--p6oQT9I.d.mts → index-BJ8-FA6N.d.cts} +0 -0
- /package/dist/{index-BUYyA1Xh.d.cts → index-BXpMZvwA.d.cts} +0 -0
- /package/dist/{index-CryTAIZM.d.mts → index-BhY1qu3m.d.cts} +0 -0
- /package/dist/{index-CyJfB4lt.d.cts → index-BjgW3E7y.d.mts} +0 -0
- /package/dist/{index-CzItj62a.d.mts → index-C3usUse7.d.mts} +0 -0
- /package/dist/{index-D9IqtUDs.d.cts → index-D13oYj4_.d.mts} +0 -0
- /package/dist/{index-Dt_vyhB_.d.cts → index-DBGd4WeR.d.mts} +0 -0
- /package/dist/{index-Iujpc9_6.d.mts → index-DdxxIAKU.d.cts} +0 -0
- /package/dist/{index-gxEAO6Ad.d.cts → index-DpEKQcoR.d.cts} +0 -0
- /package/dist/{index-qCd8f7Um.d.cts → index-gpCH5158.d.mts} +0 -0
- /package/dist/{meta-CBKMGDr1.cjs → meta-BVJcyXVs.cjs} +0 -0
- /package/dist/{plugin-DTwUbNHt.mjs → plugin-BzF8Q2v1.mjs} +0 -0
- /package/dist/{reflection-BSrdR0Qz.cjs → reflection-BktS88RM.cjs} +0 -0
- /package/dist/{single-line-comment-DvU69OGj.cjs → single-line-comment-tAWBgL9v.cjs} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "../components-
|
|
2
|
-
import "../source-file-
|
|
3
|
-
import { A as __ΩTSDocDefaultValueProps, C as TSDocRemarks, D as TSDocThrows, E as TSDocTagProps, F as __ΩTSDocProps, I as __ΩTSDocTagProps, M as __ΩTSDocModuleProps, N as __ΩTSDocParamProps, O as TSDocTitle, P as __ΩTSDocParamsProps, S as TSDocReadonly, T as TSDocTag, _ as TSDocParamProps, a as TSDocDefaultValue, b as TSDocPermission, c as TSDocExample, d as TSDocIgnore, f as TSDocInternal, g as TSDocParam, h as TSDocModuleProps, i as TSDocAttributesTagsProps, j as __ΩTSDocExampleProps, k as __ΩTSDocAttributesTagsProps, l as TSDocExampleProps, m as TSDocModule, n as TSDocAlias, o as TSDocDefaultValueProps, p as TSDocLink, r as TSDocAttributesTags, s as TSDocDomain, t as TSDoc, u as TSDocHidden, v as TSDocParams, w as TSDocReturns, x as TSDocProps, y as TSDocParamsProps } from "../tsdoc-
|
|
4
|
-
import { a as TypescriptFileHeaderProps, c as __ΩTypescriptFileHeaderProps, i as TypescriptFileHeaderImportsProps, l as __ΩTypescriptFileProps, n as TypescriptFileHeader, o as TypescriptFileProps, r as TypescriptFileHeaderImports, s as __ΩTypescriptFileHeaderImportsProps, t as TypescriptFile } from "../typescript-file-
|
|
5
|
-
import { n as BuiltinFileProps, r as __ΩBuiltinFileProps, t as BuiltinFile } from "../builtin-file-
|
|
6
|
-
import { n as DynamicImportStatementProps, r as __ΩDynamicImportStatementProps, t as DynamicImportStatement } from "../dynamic-import-statement-
|
|
7
|
-
import { n as EntryFileProps, r as __ΩEntryFileProps, t as EntryFile } from "../entry-file-
|
|
8
|
-
import { n as RecordExpressionProps, r as __ΩRecordExpressionProps, t as RecordExpression } from "../record-expression-
|
|
9
|
-
import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-
|
|
10
|
-
import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-
|
|
11
|
-
import { a as TypescriptObjectProps, c as __ΩTypescriptObjectProps, i as TypescriptObjectPropertyProps, n as TypescriptObject, o as __ΩComputedRef, r as TypescriptObjectProperty, s as __ΩTypescriptObjectPropertyProps, t as ComputedRef } from "../typescript-object-
|
|
12
|
-
import "../index-
|
|
1
|
+
import "../components-CvqTz7Q9.cjs";
|
|
2
|
+
import "../source-file-DiisOeS2.cjs";
|
|
3
|
+
import { A as __ΩTSDocDefaultValueProps, C as TSDocRemarks, D as TSDocThrows, E as TSDocTagProps, F as __ΩTSDocProps, I as __ΩTSDocTagProps, M as __ΩTSDocModuleProps, N as __ΩTSDocParamProps, O as TSDocTitle, P as __ΩTSDocParamsProps, S as TSDocReadonly, T as TSDocTag, _ as TSDocParamProps, a as TSDocDefaultValue, b as TSDocPermission, c as TSDocExample, d as TSDocIgnore, f as TSDocInternal, g as TSDocParam, h as TSDocModuleProps, i as TSDocAttributesTagsProps, j as __ΩTSDocExampleProps, k as __ΩTSDocAttributesTagsProps, l as TSDocExampleProps, m as TSDocModule, n as TSDocAlias, o as TSDocDefaultValueProps, p as TSDocLink, r as TSDocAttributesTags, s as TSDocDomain, t as TSDoc, u as TSDocHidden, v as TSDocParams, w as TSDocReturns, x as TSDocProps, y as TSDocParamsProps } from "../tsdoc-DiBR7m1J.cjs";
|
|
4
|
+
import { a as TypescriptFileHeaderProps, c as __ΩTypescriptFileHeaderProps, i as TypescriptFileHeaderImportsProps, l as __ΩTypescriptFileProps, n as TypescriptFileHeader, o as TypescriptFileProps, r as TypescriptFileHeaderImports, s as __ΩTypescriptFileHeaderImportsProps, t as TypescriptFile } from "../typescript-file-DWYfy1-C.cjs";
|
|
5
|
+
import { n as BuiltinFileProps, r as __ΩBuiltinFileProps, t as BuiltinFile } from "../builtin-file-CDLuGDg7.cjs";
|
|
6
|
+
import { n as DynamicImportStatementProps, r as __ΩDynamicImportStatementProps, t as DynamicImportStatement } from "../dynamic-import-statement-CNsIFAva.cjs";
|
|
7
|
+
import { n as EntryFileProps, r as __ΩEntryFileProps, t as EntryFile } from "../entry-file-y0caTLfc.cjs";
|
|
8
|
+
import { n as RecordExpressionProps, r as __ΩRecordExpressionProps, t as RecordExpression } from "../record-expression-Dwg_PZpg.cjs";
|
|
9
|
+
import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-DTYkFxKy.cjs";
|
|
10
|
+
import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-B1mhCCoV.cjs";
|
|
11
|
+
import { a as TypescriptObjectProps, c as __ΩTypescriptObjectProps, i as TypescriptObjectPropertyProps, n as TypescriptObject, o as __ΩComputedRef, r as TypescriptObjectProperty, s as __ΩTypescriptObjectPropertyProps, t as ComputedRef } from "../typescript-object-DUivJKpz.cjs";
|
|
12
|
+
import "../index-BhY1qu3m.cjs";
|
|
13
13
|
export { BuiltinFile, BuiltinFileProps, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeScriptInterface, TypeScriptInterfaceProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩBuiltinFileProps, __ΩComputedRef, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, __ΩTypescriptInterfacePropertyProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "../components-
|
|
2
|
-
import "../source-file-
|
|
3
|
-
import { A as __ΩTSDocDefaultValueProps, C as TSDocRemarks, D as TSDocThrows, E as TSDocTagProps, F as __ΩTSDocProps, I as __ΩTSDocTagProps, M as __ΩTSDocModuleProps, N as __ΩTSDocParamProps, O as TSDocTitle, P as __ΩTSDocParamsProps, S as TSDocReadonly, T as TSDocTag, _ as TSDocParamProps, a as TSDocDefaultValue, b as TSDocPermission, c as TSDocExample, d as TSDocIgnore, f as TSDocInternal, g as TSDocParam, h as TSDocModuleProps, i as TSDocAttributesTagsProps, j as __ΩTSDocExampleProps, k as __ΩTSDocAttributesTagsProps, l as TSDocExampleProps, m as TSDocModule, n as TSDocAlias, o as TSDocDefaultValueProps, p as TSDocLink, r as TSDocAttributesTags, s as TSDocDomain, t as TSDoc, u as TSDocHidden, v as TSDocParams, w as TSDocReturns, x as TSDocProps, y as TSDocParamsProps } from "../tsdoc-
|
|
4
|
-
import { a as TypescriptFileHeaderProps, c as __ΩTypescriptFileHeaderProps, i as TypescriptFileHeaderImportsProps, l as __ΩTypescriptFileProps, n as TypescriptFileHeader, o as TypescriptFileProps, r as TypescriptFileHeaderImports, s as __ΩTypescriptFileHeaderImportsProps, t as TypescriptFile } from "../typescript-file-
|
|
5
|
-
import { n as BuiltinFileProps, r as __ΩBuiltinFileProps, t as BuiltinFile } from "../builtin-file-
|
|
6
|
-
import { n as DynamicImportStatementProps, r as __ΩDynamicImportStatementProps, t as DynamicImportStatement } from "../dynamic-import-statement-
|
|
7
|
-
import { n as EntryFileProps, r as __ΩEntryFileProps, t as EntryFile } from "../entry-file-
|
|
8
|
-
import { n as RecordExpressionProps, r as __ΩRecordExpressionProps, t as RecordExpression } from "../record-expression-
|
|
9
|
-
import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-
|
|
10
|
-
import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-
|
|
11
|
-
import { a as TypescriptObjectProps, c as __ΩTypescriptObjectProps, i as TypescriptObjectPropertyProps, n as TypescriptObject, o as __ΩComputedRef, r as TypescriptObjectProperty, s as __ΩTypescriptObjectPropertyProps, t as ComputedRef } from "../typescript-object-
|
|
12
|
-
import "../index-
|
|
1
|
+
import "../components-_4e2YMfT.mjs";
|
|
2
|
+
import "../source-file-BhqYj8m-.mjs";
|
|
3
|
+
import { A as __ΩTSDocDefaultValueProps, C as TSDocRemarks, D as TSDocThrows, E as TSDocTagProps, F as __ΩTSDocProps, I as __ΩTSDocTagProps, M as __ΩTSDocModuleProps, N as __ΩTSDocParamProps, O as TSDocTitle, P as __ΩTSDocParamsProps, S as TSDocReadonly, T as TSDocTag, _ as TSDocParamProps, a as TSDocDefaultValue, b as TSDocPermission, c as TSDocExample, d as TSDocIgnore, f as TSDocInternal, g as TSDocParam, h as TSDocModuleProps, i as TSDocAttributesTagsProps, j as __ΩTSDocExampleProps, k as __ΩTSDocAttributesTagsProps, l as TSDocExampleProps, m as TSDocModule, n as TSDocAlias, o as TSDocDefaultValueProps, p as TSDocLink, r as TSDocAttributesTags, s as TSDocDomain, t as TSDoc, u as TSDocHidden, v as TSDocParams, w as TSDocReturns, x as TSDocProps, y as TSDocParamsProps } from "../tsdoc-KHfXy9HE.mjs";
|
|
4
|
+
import { a as TypescriptFileHeaderProps, c as __ΩTypescriptFileHeaderProps, i as TypescriptFileHeaderImportsProps, l as __ΩTypescriptFileProps, n as TypescriptFileHeader, o as TypescriptFileProps, r as TypescriptFileHeaderImports, s as __ΩTypescriptFileHeaderImportsProps, t as TypescriptFile } from "../typescript-file-C9TPcvPm.mjs";
|
|
5
|
+
import { n as BuiltinFileProps, r as __ΩBuiltinFileProps, t as BuiltinFile } from "../builtin-file-C-TpxdCP.mjs";
|
|
6
|
+
import { n as DynamicImportStatementProps, r as __ΩDynamicImportStatementProps, t as DynamicImportStatement } from "../dynamic-import-statement-DSNDMC9Y.mjs";
|
|
7
|
+
import { n as EntryFileProps, r as __ΩEntryFileProps, t as EntryFile } from "../entry-file-DOcjyCDG.mjs";
|
|
8
|
+
import { n as RecordExpressionProps, r as __ΩRecordExpressionProps, t as RecordExpression } from "../record-expression-ChoLAsVS.mjs";
|
|
9
|
+
import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-CYz5udTh.mjs";
|
|
10
|
+
import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-4Kxgaglq.mjs";
|
|
11
|
+
import { a as TypescriptObjectProps, c as __ΩTypescriptObjectProps, i as TypescriptObjectPropertyProps, n as TypescriptObject, o as __ΩComputedRef, r as TypescriptObjectProperty, s as __ΩTypescriptObjectPropertyProps, t as ComputedRef } from "../typescript-object-TlHt1hQc.mjs";
|
|
12
|
+
import "../index-C3usUse7.mjs";
|
|
13
13
|
export { BuiltinFile, BuiltinFileProps, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeScriptInterface, TypeScriptInterfaceProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩBuiltinFileProps, __ΩComputedRef, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, __ΩTypescriptInterfacePropertyProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import "../
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
6
|
-
import { _ as TSDocReturns, a as TSDocDomain, b as TSDocTitle, c as TSDocIgnore, d as TSDocModule, f as TSDocParam, g as TSDocRemarks, h as TSDocReadonly, i as TSDocDefaultValue, l as TSDocInternal, m as TSDocPermission, n as TSDocAlias, o as TSDocExample, p as TSDocParams, r as TSDocAttributesTags, s as TSDocHidden, t as TSDoc, u as TSDocLink, v as TSDocTag, y as TSDocThrows } from "../tsdoc-
|
|
7
|
-
import { n as TypescriptFileHeader, r as TypescriptFileHeaderImports, t as TypescriptFile } from "../typescript-file-
|
|
8
|
-
import { t as BuiltinFile } from "../builtin-file-
|
|
9
|
-
import { t as DynamicImportStatement } from "../dynamic-import-statement-
|
|
10
|
-
import { t as EntryFile } from "../entry-file-
|
|
11
|
-
import { t as RecordExpression } from "../record-expression-
|
|
12
|
-
import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-
|
|
13
|
-
import { n as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-
|
|
14
|
-
import { n as TypescriptObjectProperty, t as TypescriptObject } from "../typescript-object-
|
|
15
|
-
import "../components-
|
|
1
|
+
import "../context-CdPajCh6.mjs";
|
|
2
|
+
import "../meta-BEeFPjoM.mjs";
|
|
3
|
+
import "../reflection-TXYxCAwV.mjs";
|
|
4
|
+
import "../single-line-comment-DW0LUIQ2.mjs";
|
|
5
|
+
import "../source-file-Bl7eV0Li.mjs";
|
|
6
|
+
import { _ as TSDocReturns, a as TSDocDomain, b as TSDocTitle, c as TSDocIgnore, d as TSDocModule, f as TSDocParam, g as TSDocRemarks, h as TSDocReadonly, i as TSDocDefaultValue, l as TSDocInternal, m as TSDocPermission, n as TSDocAlias, o as TSDocExample, p as TSDocParams, r as TSDocAttributesTags, s as TSDocHidden, t as TSDoc, u as TSDocLink, v as TSDocTag, y as TSDocThrows } from "../tsdoc-DB1Qzwsn.mjs";
|
|
7
|
+
import { n as TypescriptFileHeader, r as TypescriptFileHeaderImports, t as TypescriptFile } from "../typescript-file-iXGdOTZv.mjs";
|
|
8
|
+
import { t as BuiltinFile } from "../builtin-file-BNp7C-BU.mjs";
|
|
9
|
+
import { t as DynamicImportStatement } from "../dynamic-import-statement-B4Ov9C7y.mjs";
|
|
10
|
+
import { t as EntryFile } from "../entry-file-CrZ-k87r.mjs";
|
|
11
|
+
import { t as RecordExpression } from "../record-expression-D5W72rZN.mjs";
|
|
12
|
+
import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-BGPyymTb.mjs";
|
|
13
|
+
import { n as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-DoEGxV_8.mjs";
|
|
14
|
+
import { n as TypescriptObjectProperty, t as TypescriptObject } from "../typescript-object-C5oh925V.mjs";
|
|
15
|
+
import "../components-NXgsRgB4.mjs";
|
|
16
16
|
|
|
17
17
|
export { BuiltinFile, DynamicImportStatement, EntryFile, RecordExpression, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle, TypeScriptInterface, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptInterfaceProperty, TypescriptObject, TypescriptObjectProperty };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-
|
|
1
|
+
{"version":3,"file":"typescript-BXhP0qIJ.mjs","names":["stringifyValue","camelCase","titleCase","isUndefined","generateTypeScriptObject","reflection","options","getDescription","overrideName","getClassName","getName","overrideExtends","getSuperReflectionClass","getProperties","filter","item","isIgnored","defaultValues","getNameAsString","getAlias","reduce","ret","alias","undefined","getDefaultValue","sort","a","b","isReadonly","localeCompare","map","getTitle","length","join","getDomain","getPermission","permission","isInternal","isHidden","getType"],"sources":["../src/helpers/typescript.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { stringifyValue } from \"@powerlines/deepkit/utilities\";\nimport type { ReflectionClass } from \"@powerlines/deepkit/vendor/type\";\nimport { camelCase } from \"@stryke/string-format/camel-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\n\nexport interface GenerateTypeScriptInterfaceOptions<T> {\n overrideName?: string;\n overrideExtends?: string | false;\n defaultValues?: Partial<T>;\n}\n\n// /**\n// * Generates a TypeScript interface for the given reflection class.\n// *\n// * @param reflection - The reflection class to generate the interface for.\n// * @returns A string containing the TypeScript interface definition.\n// */\n// export function TypeScriptInterface<T>(\n// reflection: ReflectionClass<T>,\n// options: GenerateTypeScriptInterfaceOptions<T> = {}\n// ): string {\n// if (!reflection) {\n// return \"\";\n// }\n\n// return `\n// /**\n// * Interface for ${reflection.getTitle() || titleCase(options.overrideName || reflection.getName())}.\n// *\n// * @title ${reflection.getTitle() || titleCase(reflection.getName())}${\n// reflection.getAlias().length\n// ? ` ${reflection\n// .getAlias()\n// .map(alias => ` * @alias ${alias}`)\n// .join(\"\\n\")}`\n// : \"\"\n// }${reflection.getDomain() ? ` * @domain ${reflection.getDomain()}` : \"\"}${\n// reflection.getPermission().length\n// ? `\n// ${reflection\n// .getPermission()\n// .map(permission => ` * @permission ${permission}`)\n// .join(\"\\n\")}`\n// : \"\"\n// }${\n// reflection.isInternal()\n// ? `\n// * @internal`\n// : \"\"\n// }${\n// reflection.isReadonly()\n// ? `\n// * @readonly`\n// : \"\"\n// }${\n// reflection.isIgnored()\n// ? `\n// * @ignored`\n// : \"\"\n// }${\n// reflection.isHidden()\n// ? `\n// * @hidden`\n// : \"\"\n// }\n// */\n// export interface ${pascalCase(options.overrideName || reflection.getName())}${\n// options.overrideExtends !== false &&\n// (options.overrideExtends || reflection.getSuperReflectionClass()?.getName())\n// ? ` extends ${options.overrideExtends || reflection.getSuperReflectionClass()?.getName()}`\n// : \"\"\n// } {\n// ${reflection\n// .getProperties()\n// .filter(item => !item.isIgnored())\n// .sort((a, b) =>\n// (a.isReadonly() && b.isReadonly()) || (!a.isReadonly() && !b.isReadonly())\n// ? a.getNameAsString().localeCompare(b.getNameAsString())\n// : a.isReadonly()\n// ? 1\n// : -1\n// )\n// .map(\n// item =>\n// ` /**\n// * ${\n// item.getDescription() ||\n// item.getTitle() ||\n// titleCase(item.getNameAsString())\n// }\n// *\n// * @title ${item.getTitle() || titleCase(item.getNameAsString())}${\n// item.getAlias().length\n// ? `\n// ${item\n// .getAlias()\n// .map(alias => ` * @alias ${alias}`)\n// .join(\"\\n\")}`\n// : \"\"\n// }${\n// item.getDomain()\n// ? `\n// * @domain ${item.getDomain()}`\n// : \"\"\n// }${\n// item.getPermission().length\n// ? `\n// ${item\n// .getPermission()\n// .map(permission => ` * @permission ${permission}`)\n// .join(\"\\n\")}`\n// : \"\"\n// }${\n// !isUndefined(item.getDefaultValue()) && item.getDefaultValue() !== \"\"\n// ? `\n// * @defaultValue ${item.getDefaultValue()}`\n// : \"\"\n// }${\n// item.isInternal()\n// ? `\n// * @internal`\n// : \"\"\n// }${\n// item.isReadonly()\n// ? `\n// * @readonly`\n// : \"\"\n// }${\n// item.isHidden()\n// ? `\n// * @hidden`\n// : \"\"\n// }\n// */\n// ${item.isReadonly() ? \"readonly \" : \"\"}${item.getNameAsString()}${\n// isUndefined(\n// (options.defaultValues as Record<string, any>)?.[item.getNameAsString()]\n// ) &&\n// isUndefined(item.getDefaultValue()) &&\n// !item\n// .getAlias()\n// .some(\n// alias =>\n// !isUndefined(\n// (options.defaultValues as Record<string, any>)?.[alias]\n// )\n// ) &&\n// item.isOptional()\n// ? \"?\"\n// : \"\"\n// }: ${stringifyType(item.getType())}`\n// )\n// .join(\", \\n\")}\n// }\n// `;\n// }\n\nexport interface GenerateTypeScriptObjectOptions<T> {\n overrideName?: string;\n overrideExtends?: string | false;\n defaultValues?: Partial<T>;\n}\n\n/**\n * Generates a TypeScript object for the given reflection class.\n *\n * @param reflection - The reflection class to generate the object for.\n * @param options - Options for generating the object.\n * @returns A string containing the TypeScript object definition.\n */\nexport function generateTypeScriptObject<T extends Record<string, any>>(\n reflection: ReflectionClass<T>,\n options: GenerateTypeScriptObjectOptions<T> = {}\n) {\n if (!reflection) {\n return \"\";\n }\n\n return `\n/**\n * ${\n reflection.getDescription() ||\n `${titleCase(options.overrideName || reflection.getClassName() || reflection.getName())} object instance`\n }.\n */\nexport const ${camelCase(options.overrideName || reflection.getName())}${\n options.overrideExtends !== false &&\n (options.overrideExtends || reflection.getSuperReflectionClass()?.getName())\n ? `: ${options.overrideExtends || reflection.getSuperReflectionClass()?.getName()}`\n : \"\"\n } = {\n ${reflection\n .getProperties()\n .filter(\n item =>\n !item.isIgnored() &&\n !isUndefined(\n options.defaultValues?.[item.getNameAsString()] ??\n item.getAlias().reduce((ret, alias) => {\n if (\n isUndefined(ret) &&\n !isUndefined(\n (options.defaultValues as Record<string, any>)?.[alias]\n )\n ) {\n return (options.defaultValues as Record<string, any>)?.[alias];\n }\n\n return ret;\n }, undefined) ??\n item.getDefaultValue()\n )\n )\n .sort((a, b) =>\n (a.isReadonly() && b.isReadonly()) || (!a.isReadonly() && !b.isReadonly())\n ? a.getNameAsString().localeCompare(b.getNameAsString())\n : a.isReadonly()\n ? 1\n : -1\n )\n .map(\n item =>\n ` /**\n * ${\n item.getDescription() ||\n item.getTitle() ||\n titleCase(item.getNameAsString())\n }\n *\n * @title ${item.getTitle() || titleCase(item.getNameAsString())}${\n item.getAlias().length\n ? `\n ${item\n .getAlias()\n .map(alias => ` * @alias ${alias}`)\n .join(\"\\n\")}`\n : \"\"\n }${\n item.getDomain()\n ? `\n * @domain ${item.getDomain()}`\n : \"\"\n }${\n item.getPermission().length\n ? `\n ${item\n .getPermission()\n .map(permission => ` * @permission ${permission}`)\n .join(\"\\n\")}`\n : \"\"\n }${\n item.isInternal()\n ? `\n * @internal`\n : \"\"\n }${\n item.isReadonly()\n ? `\n * @readonly`\n : \"\"\n }${\n item.isIgnored()\n ? `\n * @ignored`\n : \"\"\n }${\n item.isHidden()\n ? `\n * @hidden`\n : \"\"\n }\n */\n ${item.getNameAsString()}: ${stringifyValue(\n item.getType(),\n options.defaultValues?.[item.getNameAsString()] ??\n item.getAlias().reduce((ret, alias) => {\n if (\n isUndefined(ret) &&\n !isUndefined((options.defaultValues as Record<string, any>)?.[alias])\n ) {\n return (options.defaultValues as Record<string, any>)?.[alias];\n }\n\n return ret;\n }, undefined) ??\n item.getDefaultValue()\n )}`\n )\n .join(\", \\n\")}\n};\n`;\n}\n"],"mappings":""}
|
|
@@ -23,4 +23,4 @@ declare type __ΩGenerateTypeScriptInterfaceOptions = any[];
|
|
|
23
23
|
declare type __ΩGenerateTypeScriptObjectOptions = any[];
|
|
24
24
|
//#endregion
|
|
25
25
|
export { generateTypeScriptObject as a, __ΩGenerateTypeScriptObjectOptions as i, GenerateTypeScriptObjectOptions as n, __ΩGenerateTypeScriptInterfaceOptions as r, GenerateTypeScriptInterfaceOptions as t };
|
|
26
|
-
//# sourceMappingURL=typescript-
|
|
26
|
+
//# sourceMappingURL=typescript-CXP7Oa6_.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-
|
|
1
|
+
{"version":3,"file":"typescript-CXP7Oa6_.d.cts","names":[],"sources":["../src/helpers/typescript.ts"],"sourcesContent":[],"mappings":";;;UAwBiB;;EAAA,eAAA,CAAA,EAAA,MAAA,GAAA,KAAA;EAwJA,aAAA,CAAA,EArJC,OAqJD,CArJS,CAqJT,CAAA;AAajB;AAAmD,UAblC,+BAakC,CAAA,CAAA,CAAA,CAAA;EACrB,YAAA,CAAA,EAAA,MAAA;EAAhB,eAAA,CAAA,EAAA,MAAA,GAAA,KAAA;EAC6B,aAAA,CAAA,EAZzB,OAYyB,CAZjB,CAYiB,CAAA;;;;;;;;;iBAF3B,mCAAmC,iCACrC,gBAAgB,cACnB,gCAAgC"}
|
|
@@ -23,4 +23,4 @@ declare type __ΩGenerateTypeScriptInterfaceOptions = any[];
|
|
|
23
23
|
declare type __ΩGenerateTypeScriptObjectOptions = any[];
|
|
24
24
|
//#endregion
|
|
25
25
|
export { generateTypeScriptObject as a, __ΩGenerateTypeScriptObjectOptions as i, GenerateTypeScriptObjectOptions as n, __ΩGenerateTypeScriptInterfaceOptions as r, GenerateTypeScriptInterfaceOptions as t };
|
|
26
|
-
//# sourceMappingURL=typescript-
|
|
26
|
+
//# sourceMappingURL=typescript-DvynKONm.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-
|
|
1
|
+
{"version":3,"file":"typescript-DvynKONm.d.mts","names":[],"sources":["../src/helpers/typescript.ts"],"sourcesContent":[],"mappings":";;;UAwBiB;;EAAA,eAAA,CAAA,EAAA,MAAA,GAAA,KAAA;EAwJA,aAAA,CAAA,EArJC,OAqJD,CArJS,CAqJT,CAAA;AAajB;AAAmD,UAblC,+BAakC,CAAA,CAAA,CAAA,CAAA;EACrB,YAAA,CAAA,EAAA,MAAA;EAAhB,eAAA,CAAA,EAAA,MAAA,GAAA,KAAA;EAC6B,aAAA,CAAA,EAZzB,OAYyB,CAZjB,CAYiB,CAAA;;;;;;;;;iBAF3B,mCAAmC,iCACrC,gBAAgB,cACnB,gCAAgC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
const require_context = require('./context-
|
|
3
|
-
const require_single_line_comment = require('./single-line-comment-
|
|
4
|
-
const require_source_file = require('./source-file-
|
|
2
|
+
const require_context = require('./context-DNdlL_gp.cjs');
|
|
3
|
+
const require_single_line_comment = require('./single-line-comment-tAWBgL9v.cjs');
|
|
4
|
+
const require_source_file = require('./source-file-DnqaQY90.cjs');
|
|
5
5
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
6
|
let __alloy_js_core = require("@alloy-js/core");
|
|
7
7
|
let __stryke_path_append = require("@stryke/path/append");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as TypescriptFileImports, n as ComponentProps, p as SourceFileHeaderProps } from "./components-
|
|
2
|
-
import { n as SourceFileProps$1 } from "./source-file-
|
|
1
|
+
import { h as TypescriptFileImports, n as ComponentProps, p as SourceFileHeaderProps } from "./components-_4e2YMfT.mjs";
|
|
2
|
+
import { n as SourceFileProps$1 } from "./source-file-BhqYj8m-.mjs";
|
|
3
3
|
import { Children } from "@alloy-js/core";
|
|
4
4
|
import { TSModuleScope } from "@alloy-js/typescript";
|
|
5
5
|
|
|
@@ -47,4 +47,4 @@ declare type __ΩTypescriptFileHeaderProps = any[];
|
|
|
47
47
|
declare type __ΩTypescriptFileHeaderImportsProps = any[];
|
|
48
48
|
//#endregion
|
|
49
49
|
export { TypescriptFileHeaderProps as a, __ΩTypescriptFileHeaderProps as c, TypescriptFileHeaderImportsProps as i, __ΩTypescriptFileProps as l, TypescriptFileHeader as n, TypescriptFileProps as o, TypescriptFileHeaderImports as r, __ΩTypescriptFileHeaderImportsProps as s, TypescriptFile as t };
|
|
50
|
-
//# sourceMappingURL=typescript-file-
|
|
50
|
+
//# sourceMappingURL=typescript-file-C9TPcvPm.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-file-
|
|
1
|
+
{"version":3,"file":"typescript-file-C9TPcvPm.d.mts","names":[],"sources":["../src/typescript/components/typescript-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KAmDY,mBAAA,GAAsB,KAAK,iCACrC;aACa;EAFH,MAAA,CAAA,EAGC,QAHD;EAA2B,OAAA,CAAA,EAIzB,qBAJyB;EAAL,cAAA,CAAA,EAKb,qBALa;EAChC,MAAA,CAAA,EAAA,OAAA,GAAA,MAAA;EACa,GAAA,CAAA,EAAA,OAAA;CACF;;;;AAab;AAgEA;;AAEa,iBAlEG,cAAA,CAkEH,KAAA,EAlEyB,mBAkEzB,CAAA,EAlE4C,QAkE5C;AAFsC,UAAlC,yBAAA,SAAkC,qBAAA,CAAA;EAAqB,MAAA,CAAA,EAC7D,QAD6D;EAWxD,QAAA,CAAA,EATH,QASG,GAAA,IAAoB;AAuEpC;;;;;;AAYA;iBAnFgB,oBAAA,QAA4B,4BAAyB;UAuEpD,gCAAA,SAAyC;YAC9C;mBACO;UACT;;;;;;;;iBASM,2BAAA,QACP,mCAAgC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as TypescriptFileImports, n as ComponentProps, p as SourceFileHeaderProps } from "./components-
|
|
2
|
-
import { n as SourceFileProps$1 } from "./source-file-
|
|
1
|
+
import { h as TypescriptFileImports, n as ComponentProps, p as SourceFileHeaderProps } from "./components-CvqTz7Q9.cjs";
|
|
2
|
+
import { n as SourceFileProps$1 } from "./source-file-gMJwiJAw.cjs";
|
|
3
3
|
import { Children } from "@alloy-js/core";
|
|
4
4
|
import { TSModuleScope } from "@alloy-js/typescript";
|
|
5
5
|
|
|
@@ -47,4 +47,4 @@ declare type __ΩTypescriptFileHeaderProps = any[];
|
|
|
47
47
|
declare type __ΩTypescriptFileHeaderImportsProps = any[];
|
|
48
48
|
//#endregion
|
|
49
49
|
export { TypescriptFileHeaderProps as a, __ΩTypescriptFileHeaderProps as c, TypescriptFileHeaderImportsProps as i, __ΩTypescriptFileProps as l, TypescriptFileHeader as n, TypescriptFileProps as o, TypescriptFileHeaderImports as r, __ΩTypescriptFileHeaderImportsProps as s, TypescriptFile as t };
|
|
50
|
-
//# sourceMappingURL=typescript-file-
|
|
50
|
+
//# sourceMappingURL=typescript-file-CJxOp_Xl.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-file-
|
|
1
|
+
{"version":3,"file":"typescript-file-CJxOp_Xl.d.cts","names":[],"sources":["../src/typescript/components/typescript-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KAmDY,mBAAA,GAAsB,KAAK,iCACrC;aACa;EAFH,MAAA,CAAA,EAGC,QAHD;EAA2B,OAAA,CAAA,EAIzB,qBAJyB;EAAL,cAAA,CAAA,EAKb,qBALa;EAChC,MAAA,CAAA,EAAA,OAAA,GAAA,MAAA;EACa,GAAA,CAAA,EAAA,OAAA;CACF;;;;AAab;AAgEA;;AAEa,iBAlEG,cAAA,CAkEH,KAAA,EAlEyB,mBAkEzB,CAAA,EAlE4C,QAkE5C;AAFsC,UAAlC,yBAAA,SAAkC,qBAAA,CAAA;EAAqB,MAAA,CAAA,EAC7D,QAD6D;EAWxD,QAAA,CAAA,EATH,QASG,GAAA,IAAoB;AAuEpC;;;;;;AAYA;iBAnFgB,oBAAA,QAA4B,4BAAyB;UAuEpD,gCAAA,SAAyC;YAC9C;mBACO;UACT;;;;;;;;iBASM,2BAAA,QACP,mCAAgC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { h as TypescriptFileImports, n as ComponentProps, p as SourceFileHeaderProps } from "./components-_4e2YMfT.mjs";
|
|
2
|
+
import { n as SourceFileProps$1 } from "./source-file-B51pGSXX.mjs";
|
|
3
|
+
import { Children } from "@alloy-js/core";
|
|
4
|
+
import { TSModuleScope } from "@alloy-js/typescript";
|
|
5
|
+
|
|
6
|
+
//#region src/typescript/components/typescript-file.d.ts
|
|
7
|
+
type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
|
|
8
|
+
hashbang?: Children | true;
|
|
9
|
+
header?: Children;
|
|
10
|
+
imports?: TypescriptFileImports;
|
|
11
|
+
builtinImports?: TypescriptFileImports;
|
|
12
|
+
export?: boolean | string;
|
|
13
|
+
tsx?: boolean;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* A base component representing a Powerlines generated Typescript source file.
|
|
17
|
+
*
|
|
18
|
+
* @param props - The properties for the source file.
|
|
19
|
+
* @returns The rendered source file component.
|
|
20
|
+
*/
|
|
21
|
+
declare function TypescriptFile(props: TypescriptFileProps): Children;
|
|
22
|
+
interface TypescriptFileHeaderProps extends SourceFileHeaderProps {
|
|
23
|
+
header?: Children;
|
|
24
|
+
hashbang?: Children | true;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
28
|
+
*
|
|
29
|
+
* @param props - The properties for the source file header.
|
|
30
|
+
* @returns The rendered source file header.
|
|
31
|
+
*/
|
|
32
|
+
declare function TypescriptFileHeader(props: TypescriptFileHeaderProps): Children;
|
|
33
|
+
interface TypescriptFileHeaderImportsProps extends SourceFileHeaderProps {
|
|
34
|
+
imports?: TypescriptFileImports;
|
|
35
|
+
builtinImports?: TypescriptFileImports;
|
|
36
|
+
scope?: TSModuleScope;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
40
|
+
*
|
|
41
|
+
* @param props - The properties for the source file header.
|
|
42
|
+
* @returns The rendered source file header.
|
|
43
|
+
*/
|
|
44
|
+
declare function TypescriptFileHeaderImports(props: TypescriptFileHeaderImportsProps): Children;
|
|
45
|
+
declare type __ΩTypescriptFileProps = any[];
|
|
46
|
+
declare type __ΩTypescriptFileHeaderProps = any[];
|
|
47
|
+
declare type __ΩTypescriptFileHeaderImportsProps = any[];
|
|
48
|
+
//#endregion
|
|
49
|
+
export { TypescriptFileHeaderProps as a, __ΩTypescriptFileHeaderProps as c, TypescriptFileHeaderImportsProps as i, __ΩTypescriptFileProps as l, TypescriptFileHeader as n, TypescriptFileProps as o, TypescriptFileHeaderImports as r, __ΩTypescriptFileHeaderImportsProps as s, TypescriptFile as t };
|
|
50
|
+
//# sourceMappingURL=typescript-file-CY0SmW6n.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript-file-CY0SmW6n.d.mts","names":[],"sources":["../src/typescript/components/typescript-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KAmDY,mBAAA,GAAsB,KAAK,iCACrC;aACa;EAFH,MAAA,CAAA,EAGC,QAHD;EAA2B,OAAA,CAAA,EAIzB,qBAJyB;EAAL,cAAA,CAAA,EAKb,qBALa;EAChC,MAAA,CAAA,EAAA,OAAA,GAAA,MAAA;EACa,GAAA,CAAA,EAAA,OAAA;CACF;;;;AAab;AAgEA;;AAEa,iBAlEG,cAAA,CAkEH,KAAA,EAlEyB,mBAkEzB,CAAA,EAlE4C,QAkE5C;AAFsC,UAAlC,yBAAA,SAAkC,qBAAA,CAAA;EAAqB,MAAA,CAAA,EAC7D,QAD6D;EAWxD,QAAA,CAAA,EATH,QASG,GAAA,IAAoB;AAuEpC;;;;;;AAYA;iBAnFgB,oBAAA,QAA4B,4BAAyB;UAuEpD,gCAAA,SAAyC;YAC9C;mBACO;UACT;;;;;;;;iBASM,2BAAA,QACP,mCAAgC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { h as TypescriptFileImports, n as ComponentProps, p as SourceFileHeaderProps } from "./components-CvqTz7Q9.cjs";
|
|
2
|
+
import { n as SourceFileProps$1 } from "./source-file-DiisOeS2.cjs";
|
|
3
|
+
import { Children } from "@alloy-js/core";
|
|
4
|
+
import { TSModuleScope } from "@alloy-js/typescript";
|
|
5
|
+
|
|
6
|
+
//#region src/typescript/components/typescript-file.d.ts
|
|
7
|
+
type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
|
|
8
|
+
hashbang?: Children | true;
|
|
9
|
+
header?: Children;
|
|
10
|
+
imports?: TypescriptFileImports;
|
|
11
|
+
builtinImports?: TypescriptFileImports;
|
|
12
|
+
export?: boolean | string;
|
|
13
|
+
tsx?: boolean;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* A base component representing a Powerlines generated Typescript source file.
|
|
17
|
+
*
|
|
18
|
+
* @param props - The properties for the source file.
|
|
19
|
+
* @returns The rendered source file component.
|
|
20
|
+
*/
|
|
21
|
+
declare function TypescriptFile(props: TypescriptFileProps): Children;
|
|
22
|
+
interface TypescriptFileHeaderProps extends SourceFileHeaderProps {
|
|
23
|
+
header?: Children;
|
|
24
|
+
hashbang?: Children | true;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
28
|
+
*
|
|
29
|
+
* @param props - The properties for the source file header.
|
|
30
|
+
* @returns The rendered source file header.
|
|
31
|
+
*/
|
|
32
|
+
declare function TypescriptFileHeader(props: TypescriptFileHeaderProps): Children;
|
|
33
|
+
interface TypescriptFileHeaderImportsProps extends SourceFileHeaderProps {
|
|
34
|
+
imports?: TypescriptFileImports;
|
|
35
|
+
builtinImports?: TypescriptFileImports;
|
|
36
|
+
scope?: TSModuleScope;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
40
|
+
*
|
|
41
|
+
* @param props - The properties for the source file header.
|
|
42
|
+
* @returns The rendered source file header.
|
|
43
|
+
*/
|
|
44
|
+
declare function TypescriptFileHeaderImports(props: TypescriptFileHeaderImportsProps): Children;
|
|
45
|
+
declare type __ΩTypescriptFileProps = any[];
|
|
46
|
+
declare type __ΩTypescriptFileHeaderProps = any[];
|
|
47
|
+
declare type __ΩTypescriptFileHeaderImportsProps = any[];
|
|
48
|
+
//#endregion
|
|
49
|
+
export { TypescriptFileHeaderProps as a, __ΩTypescriptFileHeaderProps as c, TypescriptFileHeaderImportsProps as i, __ΩTypescriptFileProps as l, TypescriptFileHeader as n, TypescriptFileProps as o, TypescriptFileHeaderImports as r, __ΩTypescriptFileHeaderImportsProps as s, TypescriptFile as t };
|
|
50
|
+
//# sourceMappingURL=typescript-file-DWYfy1-C.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript-file-DWYfy1-C.d.cts","names":[],"sources":["../src/typescript/components/typescript-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KAmDY,mBAAA,GAAsB,KAAK,iCACrC;aACa;EAFH,MAAA,CAAA,EAGC,QAHD;EAA2B,OAAA,CAAA,EAIzB,qBAJyB;EAAL,cAAA,CAAA,EAKb,qBALa;EAChC,MAAA,CAAA,EAAA,OAAA,GAAA,MAAA;EACa,GAAA,CAAA,EAAA,OAAA;CACF;;;;AAab;AAgEA;;AAEa,iBAlEG,cAAA,CAkEH,KAAA,EAlEyB,mBAkEzB,CAAA,EAlE4C,QAkE5C;AAFsC,UAAlC,yBAAA,SAAkC,qBAAA,CAAA;EAAqB,MAAA,CAAA,EAC7D,QAD6D;EAWxD,QAAA,CAAA,EATH,QASG,GAAA,IAAoB;AAuEpC;;;;;;AAYA;iBAnFgB,oBAAA,QAA4B,4BAAyB;UAuEpD,gCAAA,SAAyC;YAC9C;mBACO;UACT;;;;;;;;iBASM,2BAAA,QACP,mCAAgC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as usePowerlinesSafe } from "./context-
|
|
2
|
-
import { t as SingleLineComment } from "./single-line-comment-
|
|
3
|
-
import { t as SourceFile } from "./source-file-
|
|
1
|
+
import { i as usePowerlinesSafe } from "./context-CdPajCh6.mjs";
|
|
2
|
+
import { t as SingleLineComment } from "./single-line-comment-DW0LUIQ2.mjs";
|
|
3
|
+
import { t as SourceFile } from "./source-file-Bl7eV0Li.mjs";
|
|
4
4
|
import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
5
5
|
import { For, Scope, Show, SourceDirectoryContext, code, splitProps, useContext, useScope } from "@alloy-js/core";
|
|
6
6
|
import { appendPath } from "@stryke/path/append";
|
|
@@ -211,4 +211,4 @@ function TypescriptFileHeaderImports(props) {
|
|
|
211
211
|
|
|
212
212
|
//#endregion
|
|
213
213
|
export { TypescriptFileHeader as n, TypescriptFileHeaderImports as r, TypescriptFile as t };
|
|
214
|
-
//# sourceMappingURL=typescript-file-
|
|
214
|
+
//# sourceMappingURL=typescript-file-iXGdOTZv.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-file-CZiIcJah.mjs","names":["code","For","Scope","Show","SourceDirectoryContext","splitProps","useContext","useScope","getSourceDirectoryData","ImportStatements","PackageContext","SourceFileContext","TSModuleScope","useSourceFile","appendPath","titleCase","isBoolean","isString","SingleLineComment","SourceFile","usePowerlinesSafe","TypescriptFile","props","children","path","imports","builtinImports","tsx","header","hashbang","rest","directoryContext","sdData","modulePath","scope","modules","add","pkg","addModule","export","addExport","_$createComponent","Provider","value","_$mergeProps","TypescriptFileHeader","TypescriptFileHeaderImports","filetype","disableEslint","disableBiome","disablePrettier","context","when","Boolean","_$memo","config","mode","_$createIntrinsic","variant","framework","sourceFile","importedModules","size","Object","keys","length","each","entries","hardline","module","importItem","filter","i","default","map","alias","name","join","includes","records"],"sources":["../src/typescript/components/typescript-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Children } from \"@alloy-js/core\";\nimport {\n code,\n For,\n Scope,\n Show,\n SourceDirectoryContext,\n splitProps,\n useContext,\n useScope\n} from \"@alloy-js/core\";\nimport {\n getSourceDirectoryData,\n ImportStatements,\n PackageContext,\n SourceFileContext,\n TSModuleScope,\n useSourceFile\n} from \"@alloy-js/typescript\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isBoolean } from \"@stryke/type-checks/is-boolean\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport { SingleLineComment } from \"../../core/components/single-line-comment\";\nimport { SourceFile, SourceFileProps } from \"../../core/components/source-file\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport {\n ComponentProps,\n SourceFileHeaderProps,\n TypescriptFileImportItem,\n TypescriptFileImports\n} from \"../../types/components\";\n\nexport type TypescriptFileProps = Omit<SourceFileProps, \"filetype\"> &\n ComponentProps & {\n hashbang?: Children | true;\n header?: Children;\n imports?: TypescriptFileImports;\n builtinImports?: TypescriptFileImports;\n export?: boolean | string;\n tsx?: boolean;\n };\n\n/**\n * A base component representing a Powerlines generated Typescript source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function TypescriptFile(props: TypescriptFileProps) {\n const [\n { children, path, imports, builtinImports, tsx, header, hashbang },\n rest\n ] = splitProps(props, [\n \"children\",\n \"path\",\n \"imports\",\n \"builtinImports\",\n \"tsx\",\n \"header\",\n \"hashbang\"\n ]);\n\n const directoryContext = useContext(SourceDirectoryContext)!;\n const sdData = getSourceDirectoryData(directoryContext);\n\n const modulePath = appendPath(path, directoryContext.path);\n const scope = new TSModuleScope(modulePath, useScope());\n sdData.modules.add(scope);\n\n const pkg = useContext(PackageContext);\n if (pkg) {\n pkg.scope.addModule(scope);\n }\n\n if (props.export) {\n if (pkg) {\n if (isBoolean(props.export)) {\n pkg.scope.addExport(modulePath, scope);\n } else {\n pkg.scope.addExport(props.export, scope);\n }\n }\n }\n\n return (\n <SourceFileContext.Provider\n value={{\n scope\n }}>\n <Scope value={scope}>\n <SourceFile\n {...rest}\n path={modulePath}\n header={\n header ?? (\n <TypescriptFileHeader hashbang={hashbang}>\n <TypescriptFileHeaderImports\n imports={imports}\n builtinImports={builtinImports}\n scope={scope}\n />\n </TypescriptFileHeader>\n )\n }\n filetype={tsx ? \"tsx\" : \"typescript\"}>\n {children}\n </SourceFile>\n </Scope>\n </SourceFileContext.Provider>\n );\n}\n\nexport interface TypescriptFileHeaderProps extends SourceFileHeaderProps {\n header?: Children;\n hashbang?: Children | true;\n}\n\n/**\n * Renders the header for a Powerlines Typescript source file.\n *\n * @param props - The properties for the source file header.\n * @returns The rendered source file header.\n */\nexport function TypescriptFileHeader(props: TypescriptFileHeaderProps) {\n const {\n header,\n hashbang,\n disableEslint = true,\n disableBiome = true,\n disablePrettier = false,\n children\n } = props;\n\n const context = usePowerlinesSafe();\n\n return (\n <>\n <Show when={Boolean(hashbang)}>\n {hashbang === true\n ? code`#!/usr/bin/env ${\n context?.config.mode === \"development\"\n ? \"-S NODE_OPTIONS=--enable-source-maps\"\n : \"\"\n } node`\n : hashbang}\n <hbr />\n </Show>\n <Show when={Boolean(header)}>\n {header}\n <hbr />\n </Show>\n <hbr />\n <Show when={Boolean(disableEslint)}>\n <SingleLineComment variant=\"slash-star\">\n {\"eslint-disable\"}\n </SingleLineComment>\n <hbr />\n </Show>\n <Show when={Boolean(disablePrettier)}>\n <SingleLineComment variant=\"slash-star\">\n {\"prettier-ignore\"}\n </SingleLineComment>\n <hbr />\n </Show>\n <Show when={Boolean(disableBiome)}>\n <SingleLineComment>{\"biome-ignore lint: disable\"}</SingleLineComment>\n <hbr />\n </Show>\n <Show\n when={\n Boolean(disableEslint) ||\n Boolean(disablePrettier) ||\n Boolean(disableBiome)\n }>\n <hbr />\n </Show>\n <Show when={Boolean(children)}>\n <>\n {children}\n <hbr />\n </>\n </Show>\n <SingleLineComment>{`Generated by ${\n titleCase(context?.config?.framework) || \"Powerlines\"\n }`}</SingleLineComment>\n <hbr />\n <SingleLineComment>\n {code`NOTE: Do not edit this file manually - it will be overwritten automatically`}\n </SingleLineComment>\n <hbr />\n </>\n );\n}\n\nexport interface TypescriptFileHeaderImportsProps extends SourceFileHeaderProps {\n imports?: TypescriptFileImports;\n builtinImports?: TypescriptFileImports;\n scope?: TSModuleScope;\n}\n\n/**\n * Renders the header for a Powerlines Typescript source file.\n *\n * @param props - The properties for the source file header.\n * @returns The rendered source file header.\n */\nexport function TypescriptFileHeaderImports(\n props: TypescriptFileHeaderImportsProps\n) {\n const { imports, builtinImports } = props;\n\n const context = usePowerlinesSafe();\n const sourceFile = useSourceFile();\n\n const scope = props.scope ?? sourceFile.scope;\n\n return (\n <Show\n when={\n scope.importedModules.size > 0 ||\n (!!imports && Object.keys(imports).length > 0) ||\n (!!builtinImports && Object.keys(builtinImports).length > 0)\n }>\n <Show when={!!imports && Object.keys(imports).length > 0}>\n <For each={Object.entries(imports ?? {})} hardline>\n {([module, importItem]) => {\n return (\n <>\n {code`import ${\n importItem === null\n ? \"\"\n : isString(importItem)\n ? importItem\n : ` ${\n (\n importItem.filter(\n i => !isString(i) && i.default\n ) as TypescriptFileImportItem[]\n )\n .map(i => (i.alias ? i.alias : i.name))\n .join(\", \") +\n (importItem.filter(i => !isString(i) && i.default)\n .length > 0 &&\n importItem.filter(i => isString(i) || !i.default)\n .length > 0\n ? \", \"\n : \"\") +\n (importItem.filter(i => isString(i) || !i.default)\n .length > 0\n ? `{ ${importItem\n .map(i =>\n isString(i)\n ? i\n : i.alias\n ? `${i.name} as ${i.alias}`\n : i.name\n )\n .join(\", \")} }`\n : \"\")\n } `\n } from \"${module}\";`}\n </>\n );\n }}\n </For>\n </Show>\n <Show when={builtinImports && Object.keys(builtinImports).length > 0}>\n <For\n each={Object.entries(\n (builtinImports ?? {}) as Record<\n string,\n null | Array<TypescriptFileImportItem | string>\n >\n )}\n hardline>\n {([module, importItem]) =>\n code`import ${\n importItem === null\n ? \"\"\n : isString(importItem)\n ? importItem\n : ` ${\n (\n importItem.filter(\n i => !isString(i) && i.default\n ) as TypescriptFileImportItem[]\n )\n .map(i => (i.alias ? i.alias : i.name))\n .join(\", \") +\n (importItem.filter(i => !isString(i) && i.default)\n .length > 0 &&\n importItem.filter(i => isString(i) || !i.default).length >\n 0\n ? \", \"\n : \"\") +\n (importItem.filter(i => isString(i) || !i.default)\n .length > 0\n ? `{ ${importItem\n .map(i =>\n isString(i)\n ? i\n : i.alias\n ? `${i.name} as ${i.alias}`\n : i.name\n )\n .join(\", \")} }`\n : \"\")\n } `\n } from \"${\n module.includes(\":\")\n ? module\n : `${context?.config?.framework || \"powerlines\"}:${module}`\n }\";`\n }\n </For>\n </Show>\n <Show when={scope.importedModules.size > 0}>\n <ImportStatements records={scope.importedModules} />\n </Show>\n <hbr />\n </Show>\n );\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"typescript-file-iXGdOTZv.mjs","names":["code","For","Scope","Show","SourceDirectoryContext","splitProps","useContext","useScope","getSourceDirectoryData","ImportStatements","PackageContext","SourceFileContext","TSModuleScope","useSourceFile","appendPath","titleCase","isBoolean","isString","SingleLineComment","SourceFile","usePowerlinesSafe","TypescriptFile","props","children","path","imports","builtinImports","tsx","header","hashbang","rest","directoryContext","sdData","modulePath","scope","modules","add","pkg","addModule","export","addExport","_$createComponent","Provider","value","_$mergeProps","TypescriptFileHeader","TypescriptFileHeaderImports","filetype","disableEslint","disableBiome","disablePrettier","context","when","Boolean","_$memo","config","mode","_$createIntrinsic","variant","framework","sourceFile","importedModules","size","Object","keys","length","each","entries","hardline","module","importItem","filter","i","default","map","alias","name","join","includes","records"],"sources":["../src/typescript/components/typescript-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Children } from \"@alloy-js/core\";\nimport {\n code,\n For,\n Scope,\n Show,\n SourceDirectoryContext,\n splitProps,\n useContext,\n useScope\n} from \"@alloy-js/core\";\nimport {\n getSourceDirectoryData,\n ImportStatements,\n PackageContext,\n SourceFileContext,\n TSModuleScope,\n useSourceFile\n} from \"@alloy-js/typescript\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isBoolean } from \"@stryke/type-checks/is-boolean\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport { SingleLineComment } from \"../../core/components/single-line-comment\";\nimport { SourceFile, SourceFileProps } from \"../../core/components/source-file\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport {\n ComponentProps,\n SourceFileHeaderProps,\n TypescriptFileImportItem,\n TypescriptFileImports\n} from \"../../types/components\";\n\nexport type TypescriptFileProps = Omit<SourceFileProps, \"filetype\"> &\n ComponentProps & {\n hashbang?: Children | true;\n header?: Children;\n imports?: TypescriptFileImports;\n builtinImports?: TypescriptFileImports;\n export?: boolean | string;\n tsx?: boolean;\n };\n\n/**\n * A base component representing a Powerlines generated Typescript source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function TypescriptFile(props: TypescriptFileProps) {\n const [\n { children, path, imports, builtinImports, tsx, header, hashbang },\n rest\n ] = splitProps(props, [\n \"children\",\n \"path\",\n \"imports\",\n \"builtinImports\",\n \"tsx\",\n \"header\",\n \"hashbang\"\n ]);\n\n const directoryContext = useContext(SourceDirectoryContext)!;\n const sdData = getSourceDirectoryData(directoryContext);\n\n const modulePath = appendPath(path, directoryContext.path);\n const scope = new TSModuleScope(modulePath, useScope());\n sdData.modules.add(scope);\n\n const pkg = useContext(PackageContext);\n if (pkg) {\n pkg.scope.addModule(scope);\n }\n\n if (props.export) {\n if (pkg) {\n if (isBoolean(props.export)) {\n pkg.scope.addExport(modulePath, scope);\n } else {\n pkg.scope.addExport(props.export, scope);\n }\n }\n }\n\n return (\n <SourceFileContext.Provider\n value={{\n scope\n }}>\n <Scope value={scope}>\n <SourceFile\n {...rest}\n path={modulePath}\n header={\n header ?? (\n <TypescriptFileHeader hashbang={hashbang}>\n <TypescriptFileHeaderImports\n imports={imports}\n builtinImports={builtinImports}\n scope={scope}\n />\n </TypescriptFileHeader>\n )\n }\n filetype={tsx ? \"tsx\" : \"typescript\"}>\n {children}\n </SourceFile>\n </Scope>\n </SourceFileContext.Provider>\n );\n}\n\nexport interface TypescriptFileHeaderProps extends SourceFileHeaderProps {\n header?: Children;\n hashbang?: Children | true;\n}\n\n/**\n * Renders the header for a Powerlines Typescript source file.\n *\n * @param props - The properties for the source file header.\n * @returns The rendered source file header.\n */\nexport function TypescriptFileHeader(props: TypescriptFileHeaderProps) {\n const {\n header,\n hashbang,\n disableEslint = true,\n disableBiome = true,\n disablePrettier = false,\n children\n } = props;\n\n const context = usePowerlinesSafe();\n\n return (\n <>\n <Show when={Boolean(hashbang)}>\n {hashbang === true\n ? code`#!/usr/bin/env ${\n context?.config.mode === \"development\"\n ? \"-S NODE_OPTIONS=--enable-source-maps\"\n : \"\"\n } node`\n : hashbang}\n <hbr />\n </Show>\n <Show when={Boolean(header)}>\n {header}\n <hbr />\n </Show>\n <hbr />\n <Show when={Boolean(disableEslint)}>\n <SingleLineComment variant=\"slash-star\">\n {\"eslint-disable\"}\n </SingleLineComment>\n <hbr />\n </Show>\n <Show when={Boolean(disablePrettier)}>\n <SingleLineComment variant=\"slash-star\">\n {\"prettier-ignore\"}\n </SingleLineComment>\n <hbr />\n </Show>\n <Show when={Boolean(disableBiome)}>\n <SingleLineComment>{\"biome-ignore lint: disable\"}</SingleLineComment>\n <hbr />\n </Show>\n <Show\n when={\n Boolean(disableEslint) ||\n Boolean(disablePrettier) ||\n Boolean(disableBiome)\n }>\n <hbr />\n </Show>\n <Show when={Boolean(children)}>\n <>\n {children}\n <hbr />\n </>\n </Show>\n <SingleLineComment>{`Generated by ${\n titleCase(context?.config?.framework) || \"Powerlines\"\n }`}</SingleLineComment>\n <hbr />\n <SingleLineComment>\n {code`NOTE: Do not edit this file manually - it will be overwritten automatically`}\n </SingleLineComment>\n <hbr />\n </>\n );\n}\n\nexport interface TypescriptFileHeaderImportsProps extends SourceFileHeaderProps {\n imports?: TypescriptFileImports;\n builtinImports?: TypescriptFileImports;\n scope?: TSModuleScope;\n}\n\n/**\n * Renders the header for a Powerlines Typescript source file.\n *\n * @param props - The properties for the source file header.\n * @returns The rendered source file header.\n */\nexport function TypescriptFileHeaderImports(\n props: TypescriptFileHeaderImportsProps\n) {\n const { imports, builtinImports } = props;\n\n const context = usePowerlinesSafe();\n const sourceFile = useSourceFile();\n\n const scope = props.scope ?? sourceFile.scope;\n\n return (\n <Show\n when={\n scope.importedModules.size > 0 ||\n (!!imports && Object.keys(imports).length > 0) ||\n (!!builtinImports && Object.keys(builtinImports).length > 0)\n }>\n <Show when={!!imports && Object.keys(imports).length > 0}>\n <For each={Object.entries(imports ?? {})} hardline>\n {([module, importItem]) => {\n return (\n <>\n {code`import ${\n importItem === null\n ? \"\"\n : isString(importItem)\n ? importItem\n : ` ${\n (\n importItem.filter(\n i => !isString(i) && i.default\n ) as TypescriptFileImportItem[]\n )\n .map(i => (i.alias ? i.alias : i.name))\n .join(\", \") +\n (importItem.filter(i => !isString(i) && i.default)\n .length > 0 &&\n importItem.filter(i => isString(i) || !i.default)\n .length > 0\n ? \", \"\n : \"\") +\n (importItem.filter(i => isString(i) || !i.default)\n .length > 0\n ? `{ ${importItem\n .map(i =>\n isString(i)\n ? i\n : i.alias\n ? `${i.name} as ${i.alias}`\n : i.name\n )\n .join(\", \")} }`\n : \"\")\n } `\n } from \"${module}\";`}\n </>\n );\n }}\n </For>\n </Show>\n <Show when={builtinImports && Object.keys(builtinImports).length > 0}>\n <For\n each={Object.entries(\n (builtinImports ?? {}) as Record<\n string,\n null | Array<TypescriptFileImportItem | string>\n >\n )}\n hardline>\n {([module, importItem]) =>\n code`import ${\n importItem === null\n ? \"\"\n : isString(importItem)\n ? importItem\n : ` ${\n (\n importItem.filter(\n i => !isString(i) && i.default\n ) as TypescriptFileImportItem[]\n )\n .map(i => (i.alias ? i.alias : i.name))\n .join(\", \") +\n (importItem.filter(i => !isString(i) && i.default)\n .length > 0 &&\n importItem.filter(i => isString(i) || !i.default).length >\n 0\n ? \", \"\n : \"\") +\n (importItem.filter(i => isString(i) || !i.default)\n .length > 0\n ? `{ ${importItem\n .map(i =>\n isString(i)\n ? i\n : i.alias\n ? `${i.name} as ${i.alias}`\n : i.name\n )\n .join(\", \")} }`\n : \"\")\n } `\n } from \"${\n module.includes(\":\")\n ? module\n : `${context?.config?.framework || \"powerlines\"}:${module}`\n }\";`\n }\n </For>\n </Show>\n <Show when={scope.importedModules.size > 0}>\n <ImportStatements records={scope.importedModules} />\n </Show>\n <hbr />\n </Show>\n );\n}\n"],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as ComponentProps } from "./components-
|
|
2
|
-
import * as
|
|
3
|
-
import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
|
|
1
|
+
import { n as ComponentProps } from "./components-_4e2YMfT.mjs";
|
|
2
|
+
import * as _alloy_js_core10 from "@alloy-js/core";
|
|
4
3
|
import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
|
+
import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
|
|
5
5
|
|
|
6
6
|
//#region src/typescript/components/typescript-interface.d.ts
|
|
7
7
|
interface TypeScriptInterfaceProps<T extends Record<string, any> = Record<string, any>> extends InterfaceDeclarationProps, ComponentProps {
|
|
@@ -14,13 +14,13 @@ interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "n
|
|
|
14
14
|
/**
|
|
15
15
|
* Generates a TypeScript interface for the given reflection class.
|
|
16
16
|
*/
|
|
17
|
-
declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>):
|
|
17
|
+
declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core10.Children;
|
|
18
18
|
/**
|
|
19
19
|
* Generates a TypeScript interface property for the given reflection class.
|
|
20
20
|
*/
|
|
21
|
-
declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps):
|
|
21
|
+
declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core10.Children;
|
|
22
22
|
declare type __ΩTypeScriptInterfaceProps = any[];
|
|
23
23
|
declare type __ΩTypescriptInterfacePropertyProps = any[];
|
|
24
24
|
//#endregion
|
|
25
25
|
export { __ΩTypeScriptInterfaceProps as a, TypescriptInterfacePropertyProps as i, TypeScriptInterfaceProps as n, __ΩTypescriptInterfacePropertyProps as o, TypescriptInterfaceProperty as r, TypeScriptInterface as t };
|
|
26
|
-
//# sourceMappingURL=typescript-interface-
|
|
26
|
+
//# sourceMappingURL=typescript-interface-4Kxgaglq.d.mts.map
|
package/dist/{typescript-interface-BleA7_Sa.d.cts.map → typescript-interface-4Kxgaglq.d.mts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-interface-
|
|
1
|
+
{"version":3,"file":"typescript-interface-4Kxgaglq.d.mts","names":[],"sources":["../src/typescript/components/typescript-interface.tsx"],"sourcesContent":[],"mappings":";;;;;;UA0CiB,mCACL,sBAAsB,6BAExB,2BAA2B;cACvB,gBAAgB;iBACb,QAAQ;AALzB;AACY,UAOK,gCAAA,SACP,IARE,CAQG,oBARH,EAAA,MAAA,CAAA,EAQkC,cARlC,CAAA;EAAsB,QAAA,EAStB,kBATsB;;;;;AAExB,iBAaM,mBAbN,CAAA,UAcE,MAdF,CAAA,MAAA,EAAA,GAAA,CAAA,GAcwB,MAdxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAeD,wBAfC,CAewB,CAfxB,CAAA,CAAA,EAeuB,gBAAA,CAAG,QAf1B;;;AAKV;AACe,iBAmDC,2BAAA,CAnDD,KAAA,EAoDN,gCApDM,CAAA,EAoD0B,gBAAA,CAAA,QApD1B;AACH,2CAAA,GAAA,EAAA;AADF,mDAAA,GAAA,EAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
const require_reflection = require('./reflection-
|
|
3
|
-
const require_tsdoc_reflection = require('./tsdoc-reflection-
|
|
2
|
+
const require_reflection = require('./reflection-BktS88RM.cjs');
|
|
3
|
+
const require_tsdoc_reflection = require('./tsdoc-reflection-B5-J4ia-.cjs');
|
|
4
4
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
5
|
let __alloy_js_core = require("@alloy-js/core");
|
|
6
6
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ComponentProps } from "./components-
|
|
2
|
-
import * as
|
|
1
|
+
import { n as ComponentProps } from "./components-CvqTz7Q9.cjs";
|
|
2
|
+
import * as _alloy_js_core12 from "@alloy-js/core";
|
|
3
3
|
import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
4
|
import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
|
|
5
5
|
|
|
@@ -14,13 +14,13 @@ interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "n
|
|
|
14
14
|
/**
|
|
15
15
|
* Generates a TypeScript interface for the given reflection class.
|
|
16
16
|
*/
|
|
17
|
-
declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>):
|
|
17
|
+
declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core12.Children;
|
|
18
18
|
/**
|
|
19
19
|
* Generates a TypeScript interface property for the given reflection class.
|
|
20
20
|
*/
|
|
21
|
-
declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps):
|
|
21
|
+
declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core12.Children;
|
|
22
22
|
declare type __ΩTypeScriptInterfaceProps = any[];
|
|
23
23
|
declare type __ΩTypescriptInterfacePropertyProps = any[];
|
|
24
24
|
//#endregion
|
|
25
25
|
export { __ΩTypeScriptInterfaceProps as a, TypescriptInterfacePropertyProps as i, TypeScriptInterfaceProps as n, __ΩTypescriptInterfacePropertyProps as o, TypescriptInterfaceProperty as r, TypeScriptInterface as t };
|
|
26
|
-
//# sourceMappingURL=typescript-interface-
|
|
26
|
+
//# sourceMappingURL=typescript-interface-B1mhCCoV.d.cts.map
|
package/dist/{typescript-interface-DkVOFLEt.d.mts.map → typescript-interface-B1mhCCoV.d.cts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-interface-
|
|
1
|
+
{"version":3,"file":"typescript-interface-B1mhCCoV.d.cts","names":[],"sources":["../src/typescript/components/typescript-interface.tsx"],"sourcesContent":[],"mappings":";;;;;;UA0CiB,mCACL,sBAAsB,6BAExB,2BAA2B;cACvB,gBAAgB;iBACb,QAAQ;AALzB;AACY,UAOK,gCAAA,SACP,IARE,CAQG,oBARH,EAAA,MAAA,CAAA,EAQkC,cARlC,CAAA;EAAsB,QAAA,EAStB,kBATsB;;;;;AAExB,iBAaM,mBAbN,CAAA,UAcE,MAdF,CAAA,MAAA,EAAA,GAAA,CAAA,GAcwB,MAdxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAeD,wBAfC,CAewB,CAfxB,CAAA,CAAA,EAeuB,gBAAA,CAAG,QAf1B;;;AAKV;AACe,iBAmDC,2BAAA,CAnDD,KAAA,EAoDN,gCApDM,CAAA,EAoD0B,gBAAA,CAAA,QApD1B;AACH,2CAAA,GAAA,EAAA;AADF,mDAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { n as ComponentProps } from "./components-CvqTz7Q9.cjs";
|
|
2
|
+
import * as _alloy_js_core3 from "@alloy-js/core";
|
|
3
|
+
import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
|
+
import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
|
|
5
|
+
|
|
6
|
+
//#region src/typescript/components/typescript-interface.d.ts
|
|
7
|
+
interface TypeScriptInterfaceProps<T extends Record<string, any> = Record<string, any>> extends InterfaceDeclarationProps, ComponentProps {
|
|
8
|
+
reflection: ReflectionClass<T>;
|
|
9
|
+
defaultValue?: Partial<T>;
|
|
10
|
+
}
|
|
11
|
+
interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "name">, ComponentProps {
|
|
12
|
+
property: ReflectionProperty;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Generates a TypeScript interface for the given reflection class.
|
|
16
|
+
*/
|
|
17
|
+
declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core3.Children;
|
|
18
|
+
/**
|
|
19
|
+
* Generates a TypeScript interface property for the given reflection class.
|
|
20
|
+
*/
|
|
21
|
+
declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core3.Children;
|
|
22
|
+
declare type __ΩTypeScriptInterfaceProps = any[];
|
|
23
|
+
declare type __ΩTypescriptInterfacePropertyProps = any[];
|
|
24
|
+
//#endregion
|
|
25
|
+
export { __ΩTypeScriptInterfaceProps as a, TypescriptInterfacePropertyProps as i, TypeScriptInterfaceProps as n, __ΩTypescriptInterfacePropertyProps as o, TypescriptInterfaceProperty as r, TypeScriptInterface as t };
|
|
26
|
+
//# sourceMappingURL=typescript-interface-C0mgTtdj.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript-interface-C0mgTtdj.d.cts","names":[],"sources":["../src/typescript/components/typescript-interface.tsx"],"sourcesContent":[],"mappings":";;;;;;UA0CiB,mCACL,sBAAsB,6BAExB,2BAA2B;cACvB,gBAAgB;iBACb,QAAQ;AALzB;AACY,UAOK,gCAAA,SACP,IARE,CAQG,oBARH,EAAA,MAAA,CAAA,EAQkC,cARlC,CAAA;EAAsB,QAAA,EAStB,kBATsB;;;;;AAExB,iBAaM,mBAbN,CAAA,UAcE,MAdF,CAAA,MAAA,EAAA,GAAA,CAAA,GAcwB,MAdxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAeD,wBAfC,CAewB,CAfxB,CAAA,CAAA,EAeuB,eAAA,CAAG,QAf1B;;;AAKV;AACe,iBAmDC,2BAAA,CAnDD,KAAA,EAoDN,gCApDM,CAAA,EAoD0B,eAAA,CAAA,QApD1B;AACH,2CAAA,GAAA,EAAA;AADF,mDAAA,GAAA,EAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as ReflectionPropertyContext, t as ReflectionClassContext } from "./reflection-
|
|
2
|
-
import { r as TSDocReflectionProperty, t as TSDocReflectionClass } from "./tsdoc-reflection-
|
|
1
|
+
import { i as ReflectionPropertyContext, t as ReflectionClassContext } from "./reflection-TXYxCAwV.mjs";
|
|
2
|
+
import { r as TSDocReflectionProperty, t as TSDocReflectionClass } from "./tsdoc-reflection-BGPyymTb.mjs";
|
|
3
3
|
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
4
4
|
import { For, computed, splitProps } from "@alloy-js/core";
|
|
5
5
|
import { stringifyType } from "@powerlines/deepkit/vendor/type";
|
|
@@ -69,4 +69,4 @@ function TypescriptInterfaceProperty(props) {
|
|
|
69
69
|
|
|
70
70
|
//#endregion
|
|
71
71
|
export { TypescriptInterfaceProperty as n, TypeScriptInterface as t };
|
|
72
|
-
//# sourceMappingURL=typescript-interface-
|
|
72
|
+
//# sourceMappingURL=typescript-interface-DoEGxV_8.mjs.map
|