@powerlines/plugin-alloy 0.19.19 → 0.19.21
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-B8yP216k.d.mts → builtin-file-CnpVr7_0.d.cts} +3 -3
- package/dist/{builtin-file-Pnvf0Mjt.d.cts.map → builtin-file-CnpVr7_0.d.cts.map} +1 -1
- package/dist/{builtin-file-Pnvf0Mjt.d.cts → builtin-file-DNN4yb1Q.d.mts} +3 -3
- package/dist/{builtin-file-B8yP216k.d.mts.map → builtin-file-DNN4yb1Q.d.mts.map} +1 -1
- package/dist/{builtin-file-Bm7WMBBk.d.mts → builtin-file-PDckmfzE.d.cts} +3 -3
- package/dist/{builtin-file-TfCniW_K.d.cts.map → builtin-file-PDckmfzE.d.cts.map} +1 -1
- package/dist/{builtin-file-gr-ZQMIl.cjs → builtin-file-V_vMh8s8.cjs} +3 -3
- package/dist/{builtin-file-sJXTCC_u.mjs → builtin-file-uzudbU6M.mjs} +4 -4
- package/dist/{builtin-file-sJXTCC_u.mjs.map → builtin-file-uzudbU6M.mjs.map} +1 -1
- package/dist/{builtin-file-TfCniW_K.d.cts → builtin-file-xc-QSTiJ.d.mts} +5 -5
- package/dist/{builtin-file-Bm7WMBBk.d.mts.map → builtin-file-xc-QSTiJ.d.mts.map} +1 -1
- package/dist/{capnp-Bs3Ikfuw.d.mts → capnp-CLxcoMcG.d.mts} +1 -1
- package/dist/{capnp-Bs3Ikfuw.d.mts.map → capnp-CLxcoMcG.d.mts.map} +1 -1
- package/dist/{capnp-idxO5voI.mjs → capnp-CPbob9Cm.mjs} +1 -1
- package/dist/{capnp-idxO5voI.mjs.map → capnp-CPbob9Cm.mjs.map} +1 -1
- package/dist/{capnp-YnGBPkLK.d.cts → capnp-DbPtfpg2.d.cts} +1 -1
- package/dist/{capnp-YnGBPkLK.d.cts.map → capnp-DbPtfpg2.d.cts.map} +1 -1
- package/dist/{components-IRVnipN0.d.cts → components-DqfyRVFO.d.cts} +2 -2
- package/dist/{components-BVhJ5G56.d.mts.map → components-DqfyRVFO.d.cts.map} +1 -1
- package/dist/{components-BVhJ5G56.d.mts → components-REdw2IIi.d.mts} +1 -1
- package/dist/{components-IRVnipN0.d.cts.map → components-REdw2IIi.d.mts.map} +1 -1
- package/dist/{context-DAfWJCa9.mjs → context-CdPajCh6.mjs} +3 -21
- package/dist/context-CdPajCh6.mjs.map +1 -0
- package/dist/context-Cfj0Wk3u.d.cts +30 -0
- package/dist/context-Cfj0Wk3u.d.cts.map +1 -0
- package/dist/{context-CowAmU8m.cjs → context-DNdlL_gp.cjs} +1 -31
- package/dist/context-zWXy6keQ.d.mts +30 -0
- package/dist/context-zWXy6keQ.d.mts.map +1 -0
- package/dist/core/components/index.cjs +6 -7
- package/dist/core/components/index.d.cts +5 -6
- package/dist/core/components/index.d.mts +5 -6
- package/dist/core/components/index.mjs +6 -7
- package/dist/core/components/output.cjs +2 -2
- package/dist/core/components/output.d.cts +1 -2
- package/dist/core/components/output.d.mts +1 -2
- package/dist/core/components/output.mjs +2 -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 -4
- 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 -4
- package/dist/core/contexts/context.cjs +1 -3
- package/dist/core/contexts/context.d.cts +2 -2
- package/dist/core/contexts/context.d.mts +2 -2
- package/dist/core/contexts/context.mjs +2 -2
- package/dist/core/contexts/index.cjs +8 -5
- package/dist/core/contexts/index.d.cts +6 -5
- package/dist/core/contexts/index.d.mts +6 -5
- package/dist/core/contexts/index.mjs +5 -4
- package/dist/core/contexts/meta.cjs +6 -0
- package/dist/core/contexts/meta.d.cts +2 -0
- package/dist/core/contexts/meta.d.mts +2 -0
- package/dist/core/contexts/meta.mjs +3 -0
- 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 +12 -9
- package/dist/core/index.d.cts +10 -9
- package/dist/core/index.d.mts +10 -9
- package/dist/core/index.mjs +9 -8
- package/dist/{create-builtin-m17qlyC1.mjs → create-builtin-Be3J_vqf.mjs} +1 -1
- package/dist/{create-builtin-m17qlyC1.mjs.map → create-builtin-Be3J_vqf.mjs.map} +1 -1
- package/dist/{create-builtin-B6fXqb8U.d.mts → create-builtin-Bpswa0ZT.d.cts} +1 -1
- package/dist/{create-builtin-B6fXqb8U.d.mts.map → create-builtin-Bpswa0ZT.d.cts.map} +1 -1
- package/dist/{create-builtin-DFiWd6Zc.d.cts → create-builtin-CbEjJreB.d.mts} +1 -1
- package/dist/{create-builtin-DFiWd6Zc.d.cts.map → create-builtin-CbEjJreB.d.mts.map} +1 -1
- package/dist/{dynamic-import-statement-Cxe-I3B0.mjs → dynamic-import-statement-B4Ov9C7y.mjs} +1 -1
- package/dist/{dynamic-import-statement-Cxe-I3B0.mjs.map → dynamic-import-statement-B4Ov9C7y.mjs.map} +1 -1
- package/dist/{dynamic-import-statement-DNJlI3ND.d.cts → dynamic-import-statement-DSNDMC9Y.d.mts} +1 -1
- package/dist/{dynamic-import-statement-C5uIfUk9.d.cts.map → dynamic-import-statement-DSNDMC9Y.d.mts.map} +1 -1
- package/dist/{dynamic-import-statement-O1WueHgS.d.mts → dynamic-import-statement-kxVxtCBQ.d.cts} +1 -1
- package/dist/{dynamic-import-statement-DNJlI3ND.d.cts.map → dynamic-import-statement-kxVxtCBQ.d.cts.map} +1 -1
- package/dist/{entry-file-BRFvWEkh.d.cts → entry-file-1NnKc2YT.d.cts} +4 -4
- package/dist/{entry-file-BRFvWEkh.d.cts.map → entry-file-1NnKc2YT.d.cts.map} +1 -1
- package/dist/{entry-file-PWCdJV12.cjs → entry-file-Big6nfUK.cjs} +2 -2
- package/dist/{entry-file-BZe47LcB.mjs → entry-file-BwAnSku3.mjs} +3 -3
- package/dist/{entry-file-BZe47LcB.mjs.map → entry-file-BwAnSku3.mjs.map} +1 -1
- package/dist/{entry-file-DYSbQFCX.d.cts → entry-file-CmJcd0C4.d.mts} +2 -2
- package/dist/{entry-file-BiYORvQI.d.mts.map → entry-file-CmJcd0C4.d.mts.map} +1 -1
- package/dist/{entry-file-DyS8FA-U.d.mts → entry-file-Cu4-ISnT.d.mts} +4 -4
- package/dist/{entry-file-DYSbQFCX.d.cts.map → entry-file-Cu4-ISnT.d.mts.map} +1 -1
- package/dist/{entry-file-BiYORvQI.d.mts → entry-file-D5chvp2V.d.cts} +4 -4
- package/dist/{entry-file-DyS8FA-U.d.mts.map → entry-file-D5chvp2V.d.cts.map} +1 -1
- package/dist/{front-matter-TJ3qlKJo.mjs → front-matter-BeTG0uJA.mjs} +1 -1
- package/dist/{front-matter-TJ3qlKJo.mjs.map → front-matter-BeTG0uJA.mjs.map} +1 -1
- package/dist/{front-matter-BR4T3xIc.d.mts → front-matter-CXfCT8a8.d.mts} +1 -1
- package/dist/{front-matter-BGxm_xQp.d.mts.map → front-matter-CXfCT8a8.d.mts.map} +1 -1
- package/dist/{front-matter-BGxm_xQp.d.mts → front-matter-DTorR58b.d.cts} +3 -3
- package/dist/{front-matter-BR4T3xIc.d.mts.map → front-matter-DTorR58b.d.cts.map} +1 -1
- package/dist/{front-matter-u9H7VPAF.d.cts → front-matter-DpKD40Zz.d.cts} +1 -1
- package/dist/{front-matter-u9H7VPAF.d.cts.map → front-matter-DpKD40Zz.d.cts.map} +1 -1
- package/dist/helpers/capnp.cjs +1 -1
- 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.cjs +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.cjs +4 -4
- 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.cjs +1 -1
- 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.cjs +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 +40 -47
- 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 +40 -47
- package/dist/index.mjs.map +1 -1
- package/dist/markdown/components/front-matter.cjs +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 +9 -10
- 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 -10
- package/dist/markdown/components/markdown-file.cjs +6 -7
- 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 -7
- package/dist/markdown/components/markdown-table.cjs +2 -2
- 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.cjs +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.cjs +1 -1
- 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 +10 -11
- package/dist/markdown/index.d.cts +8 -8
- package/dist/markdown/index.d.mts +8 -8
- package/dist/markdown/index.mjs +10 -11
- package/dist/{markdown-file-B3gexrDd.cjs → markdown-file-B6gbsDmK.cjs} +4 -4
- package/dist/{markdown-file-B5GGuGIb.d.cts → markdown-file-BlCHLUUm.d.mts} +4 -4
- package/dist/{markdown-file-B5GGuGIb.d.cts.map → markdown-file-BlCHLUUm.d.mts.map} +1 -1
- package/dist/{markdown-file-BwL6ZG4f.d.mts → markdown-file-CwMc-alS.d.cts} +4 -4
- package/dist/{markdown-file-BwL6ZG4f.d.mts.map → markdown-file-CwMc-alS.d.cts.map} +1 -1
- package/dist/{markdown-file-K4zYXgeA.d.mts → markdown-file-DIzN9Gvv.d.cts} +7 -7
- package/dist/{markdown-file-K4zYXgeA.d.mts.map → markdown-file-DIzN9Gvv.d.cts.map} +1 -1
- package/dist/{markdown-file-CfI5rBqC.d.cts → markdown-file-T8cRtyd8.d.mts} +7 -7
- package/dist/markdown-file-T8cRtyd8.d.mts.map +1 -0
- package/dist/{markdown-file-CRZN4frR.mjs → markdown-file-k5ep-0VI.mjs} +5 -5
- package/dist/{markdown-file-CRZN4frR.mjs.map → markdown-file-k5ep-0VI.mjs.map} +1 -1
- package/dist/{markdown-table-ChP2BUmY.d.mts → markdown-table-Bc1owEry.d.cts} +7 -7
- package/dist/{markdown-table-AoJIzA89.d.cts.map → markdown-table-Bc1owEry.d.cts.map} +1 -1
- package/dist/{markdown-table-Br2Ihl2z.d.cts → markdown-table-CZMEY6IR.d.cts} +1 -1
- package/dist/{markdown-table-BpB5iT2V.d.mts.map → markdown-table-CZMEY6IR.d.cts.map} +1 -1
- package/dist/{markdown-table-D5jCVYaK.mjs → markdown-table-CnEur72Z.mjs} +2 -2
- package/dist/{markdown-table-D5jCVYaK.mjs.map → markdown-table-CnEur72Z.mjs.map} +1 -1
- package/dist/{markdown-table-AoJIzA89.d.cts → markdown-table-Cv6HmRUB.d.cts} +3 -3
- package/dist/{markdown-table-ChP2BUmY.d.mts.map → markdown-table-Cv6HmRUB.d.cts.map} +1 -1
- package/dist/{markdown-table-xO7WrAmK.d.mts → markdown-table-DFbl_3T_.d.mts} +3 -3
- package/dist/{markdown-table-O1wIj_h2.d.cts.map → markdown-table-DFbl_3T_.d.mts.map} +1 -1
- package/dist/{markdown-table-Dsvn4SmP.mjs → markdown-table-PT2TFFY3.mjs} +1 -1
- package/dist/{markdown-table-Dsvn4SmP.mjs.map → markdown-table-PT2TFFY3.mjs.map} +1 -1
- package/dist/{markdown-table-DTeEqR3P.cjs → markdown-table-eTnxxb46.cjs} +1 -1
- package/dist/{markdown-table-BpB5iT2V.d.mts → markdown-table-t6Z-cmxX.d.mts} +1 -1
- package/dist/{markdown-table-Br2Ihl2z.d.cts.map → markdown-table-t6Z-cmxX.d.mts.map} +1 -1
- package/dist/meta-BjTflizw.cjs +60 -0
- package/dist/meta-D0pfCtdR.mjs +37 -0
- package/dist/meta-D0pfCtdR.mjs.map +1 -0
- package/dist/meta-DDwBNdE3.d.cts +48 -0
- package/dist/meta-DDwBNdE3.d.cts.map +1 -0
- package/dist/meta-RtOYCV7t.d.mts +48 -0
- package/dist/meta-RtOYCV7t.d.mts.map +1 -0
- package/dist/{output-D_l1fJEz.cjs → output-B52VAyyC.cjs} +12 -20
- package/dist/{output-DWAO1J8V.d.cts → output-BDtHu7ey.d.cts} +4 -9
- package/dist/output-BDtHu7ey.d.cts.map +1 -0
- package/dist/output-CIKSJjPS.d.cts +19 -0
- package/dist/output-CIKSJjPS.d.cts.map +1 -0
- package/dist/output-CPbwcL2j.mjs +35 -0
- package/dist/output-CPbwcL2j.mjs.map +1 -0
- package/dist/{output-7KuLjL1Z.d.mts → output-Law_SUlM.d.mts} +3 -8
- package/dist/output-Law_SUlM.d.mts.map +1 -0
- package/dist/{output-cm5u8ERz.d.mts → output-gLuHZTGo.d.mts} +3 -8
- package/dist/output-gLuHZTGo.d.mts.map +1 -0
- package/dist/{plugin-C6SupJ8C.d.cts → plugin-BxSt55Oo.d.cts} +2 -2
- package/dist/{plugin-BMHB2KnC.d.mts.map → plugin-BxSt55Oo.d.cts.map} +1 -1
- package/dist/{plugin-BMHB2KnC.d.mts → plugin-D3ENcdlL.d.mts} +2 -2
- package/dist/{plugin-C6SupJ8C.d.cts.map → plugin-D3ENcdlL.d.mts.map} +1 -1
- package/dist/{record-expression-DGPYqLRm.d.mts → record-expression-ChoLAsVS.d.mts} +1 -1
- package/dist/{record-expression-DGPYqLRm.d.mts.map → record-expression-ChoLAsVS.d.mts.map} +1 -1
- package/dist/{record-expression-DnhWJ5_U.mjs → record-expression-D5W72rZN.mjs} +1 -1
- package/dist/{record-expression-DnhWJ5_U.mjs.map → record-expression-D5W72rZN.mjs.map} +1 -1
- package/dist/{record-expression-adlQJuNw.d.cts → record-expression-Dwg_PZpg.d.cts} +1 -1
- package/dist/{record-expression-adlQJuNw.d.cts.map → record-expression-Dwg_PZpg.d.cts.map} +1 -1
- package/dist/{refkey-Bf_2_U5t.d.cts → refkey-CP7MJMac.d.cts} +1 -1
- package/dist/refkey-CP7MJMac.d.cts.map +1 -0
- package/dist/{refkey-t79_78kW.mjs → refkey-CQVHeuAq.mjs} +1 -1
- package/dist/{refkey-t79_78kW.mjs.map → refkey-CQVHeuAq.mjs.map} +1 -1
- package/dist/{refkey-Cebk8ksG.d.mts → refkey-D6OjgKgS.d.mts} +1 -1
- package/dist/refkey-D6OjgKgS.d.mts.map +1 -0
- package/dist/{reflection-CDRGf-os.mjs → reflection-Btb1NqwS.mjs} +1 -1
- package/dist/{reflection-CDRGf-os.mjs.map → reflection-Btb1NqwS.mjs.map} +1 -1
- package/dist/{reflection-caOQdoZ6.d.mts → reflection-BumisltV.d.mts} +2 -2
- package/dist/{reflection-caOQdoZ6.d.mts.map → reflection-BumisltV.d.mts.map} +1 -1
- package/dist/{reflection-xU09ifzp.d.cts → reflection-I2Uewhuo.d.cts} +2 -2
- package/dist/{reflection-xU09ifzp.d.cts.map → reflection-I2Uewhuo.d.cts.map} +1 -1
- package/dist/{single-line-comment-cunvfPOw.d.mts → single-line-comment-DWXxACyy.d.cts} +2 -2
- package/dist/{single-line-comment-B258_x1B.d.cts.map → single-line-comment-DWXxACyy.d.cts.map} +1 -1
- package/dist/{single-line-comment-mOQtfhWt.mjs → single-line-comment-MRVbskt3.mjs} +1 -1
- package/dist/{single-line-comment-mOQtfhWt.mjs.map → single-line-comment-MRVbskt3.mjs.map} +1 -1
- package/dist/{single-line-comment-B258_x1B.d.cts → single-line-comment-ceejgNfU.d.mts} +2 -2
- package/dist/{single-line-comment-cunvfPOw.d.mts.map → single-line-comment-ceejgNfU.d.mts.map} +1 -1
- package/dist/{source-file-LHxAz2P7.cjs → source-file-BCcq9Me3.cjs} +2 -2
- package/dist/{source-file-BCwSF5Yh.d.mts → source-file-BNYeD1w4.d.cts} +2 -2
- package/dist/{source-file-BCwSF5Yh.d.mts.map → source-file-BNYeD1w4.d.cts.map} +1 -1
- package/dist/{source-file-CE5xdm7N.d.cts → source-file-Cw1cdlHb.d.mts} +2 -2
- package/dist/{source-file-CE5xdm7N.d.cts.map → source-file-Cw1cdlHb.d.mts.map} +1 -1
- package/dist/{source-file-DwSKCa6M.mjs → source-file-MLTzYO0w.mjs} +2 -2
- package/dist/source-file-MLTzYO0w.mjs.map +1 -0
- package/dist/source-file-OtWS66Kr.d.cts +33 -0
- package/dist/source-file-OtWS66Kr.d.cts.map +1 -0
- package/dist/{source-file-DCop3D-p.d.mts → source-file-YrHdUb8H.d.mts} +4 -4
- package/dist/{source-file-DCop3D-p.d.mts.map → source-file-YrHdUb8H.d.mts.map} +1 -1
- package/dist/{tsdoc-B2PbOibk.d.mts → tsdoc-BpOXtq0v.d.cts} +3 -3
- package/dist/{tsdoc-B2PbOibk.d.mts.map → tsdoc-BpOXtq0v.d.cts.map} +1 -1
- package/dist/{tsdoc-DVOH9B7-.cjs → tsdoc-BufL8muf.cjs} +1 -1
- package/dist/{tsdoc-CfvwK4Ml.d.cts → tsdoc-CwqGhmLe.d.mts} +3 -3
- package/dist/{tsdoc-CfvwK4Ml.d.cts.map → tsdoc-CwqGhmLe.d.mts.map} +1 -1
- package/dist/{tsdoc-Ios5W2gJ.mjs → tsdoc-DB1Qzwsn.mjs} +2 -2
- package/dist/{tsdoc-Ios5W2gJ.mjs.map → tsdoc-DB1Qzwsn.mjs.map} +1 -1
- package/dist/{tsdoc-reflection-p4yqKTXi.mjs → tsdoc-reflection-BcTrWAwt.mjs} +3 -3
- package/dist/{tsdoc-reflection-p4yqKTXi.mjs.map → tsdoc-reflection-BcTrWAwt.mjs.map} +1 -1
- package/dist/{tsdoc-reflection-B4bfElmj.d.cts → tsdoc-reflection-Cak-O_qk.d.mts} +2 -2
- package/dist/{tsdoc-reflection-B4bfElmj.d.cts.map → tsdoc-reflection-Cak-O_qk.d.mts.map} +1 -1
- package/dist/{tsdoc-reflection-CQ4ITnvE.cjs → tsdoc-reflection-Cov5Qh1c.cjs} +2 -2
- package/dist/{tsdoc-reflection-ByWPfzv2.d.mts → tsdoc-reflection-D_3kwA_m.d.cts} +6 -6
- package/dist/{tsdoc-reflection-ByWPfzv2.d.mts.map → tsdoc-reflection-D_3kwA_m.d.cts.map} +1 -1
- package/dist/{tsdoc-reflection-Dggzpjh7.d.cts → tsdoc-reflection-hz0WQ70o.d.cts} +6 -6
- package/dist/{tsdoc-reflection-Dggzpjh7.d.cts.map → tsdoc-reflection-hz0WQ70o.d.cts.map} +1 -1
- package/dist/types/components.cjs +1 -1
- 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.cjs +2 -2
- 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.cjs +1 -1
- 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 -8
- 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 -8
- package/dist/typescript/components/dynamic-import-statement.cjs +1 -1
- 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 -7
- 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 -7
- package/dist/typescript/components/index.cjs +15 -15
- 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.cjs +1 -1
- 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 -6
- 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 -6
- 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 +15 -15
- 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-CllZf0xN.mjs → typescript-BXhP0qIJ.mjs} +1 -1
- package/dist/{typescript-CllZf0xN.mjs.map → typescript-BXhP0qIJ.mjs.map} +1 -1
- package/dist/{typescript-B97ccQh-.d.mts → typescript-CXP7Oa6_.d.cts} +1 -1
- package/dist/{typescript-B97ccQh-.d.mts.map → typescript-CXP7Oa6_.d.cts.map} +1 -1
- package/dist/{typescript-o4AsClkT.d.cts → typescript-DvynKONm.d.mts} +1 -1
- package/dist/{typescript-o4AsClkT.d.cts.map → typescript-DvynKONm.d.mts.map} +1 -1
- package/dist/{typescript-file-0czkIl79.d.mts → typescript-file--NT6aFEW.d.cts} +3 -3
- package/dist/{typescript-file-0czkIl79.d.mts.map → typescript-file--NT6aFEW.d.cts.map} +1 -1
- package/dist/{typescript-file-C-RWh7Rs.d.cts → typescript-file-BqamPJcI.d.cts} +3 -3
- package/dist/{typescript-file-C-RWh7Rs.d.cts.map → typescript-file-BqamPJcI.d.cts.map} +1 -1
- package/dist/{typescript-file-DiviCaz7.d.mts → typescript-file-D-HdSyYk.d.mts} +3 -3
- package/dist/{typescript-file-DiviCaz7.d.mts.map → typescript-file-D-HdSyYk.d.mts.map} +1 -1
- package/dist/{typescript-file-odbZ3nmj.cjs → typescript-file-D8ACLdIR.cjs} +3 -3
- package/dist/{typescript-file-Bzq0aO_g.mjs → typescript-file-DJy5gCL9.mjs} +4 -4
- package/dist/{typescript-file-Bzq0aO_g.mjs.map → typescript-file-DJy5gCL9.mjs.map} +1 -1
- package/dist/typescript-file-dsHm_Y5Y.d.mts +50 -0
- package/dist/typescript-file-dsHm_Y5Y.d.mts.map +1 -0
- package/dist/{typescript-interface-BJ2W6gOm.d.cts → typescript-interface-BowohfN5.d.cts} +5 -5
- package/dist/{typescript-interface-BJ2W6gOm.d.cts.map → typescript-interface-BowohfN5.d.cts.map} +1 -1
- package/dist/{typescript-interface-B2rJA0gm.mjs → typescript-interface-CGQ0pwib.mjs} +3 -3
- package/dist/{typescript-interface-B2rJA0gm.mjs.map → typescript-interface-CGQ0pwib.mjs.map} +1 -1
- package/dist/{typescript-interface-D-d9A720.d.cts → typescript-interface-CTyDcMdt.d.mts} +3 -3
- package/dist/{typescript-interface-D-d9A720.d.cts.map → typescript-interface-CTyDcMdt.d.mts.map} +1 -1
- package/dist/{typescript-interface-Dw6ipytu.d.mts → typescript-interface-DX0WJLCa.d.mts} +5 -5
- package/dist/{typescript-interface-Dw6ipytu.d.mts.map → typescript-interface-DX0WJLCa.d.mts.map} +1 -1
- package/dist/{typescript-interface-u4YOLTZc.d.mts → typescript-interface-Dgb7nslV.d.cts} +3 -3
- package/dist/{typescript-interface-u4YOLTZc.d.mts.map → typescript-interface-Dgb7nslV.d.cts.map} +1 -1
- package/dist/{typescript-interface-B9-Hgjyf.cjs → typescript-interface-Q4trMyzm.cjs} +2 -2
- package/dist/{typescript-object-CjpLosiL.mjs → typescript-object-B0R92yL7.mjs} +3 -3
- package/dist/{typescript-object-CjpLosiL.mjs.map → typescript-object-B0R92yL7.mjs.map} +1 -1
- package/dist/{typescript-object-BTbZzEqH.d.mts → typescript-object-BBu0DpsG.d.cts} +3 -3
- package/dist/{typescript-object-BTbZzEqH.d.mts.map → typescript-object-BBu0DpsG.d.cts.map} +1 -1
- package/dist/{typescript-object-BeOdGrgq.d.cts → typescript-object-D3gccyfV.d.cts} +5 -5
- package/dist/{typescript-object-v1WiBD8W.d.cts.map → typescript-object-D3gccyfV.d.cts.map} +1 -1
- package/dist/{typescript-object-BVzjq01J.cjs → typescript-object-DHFnCfRa.cjs} +2 -2
- package/dist/{typescript-object-CSlztYKM.d.mts → typescript-object-DK3sl8cB.d.mts} +2 -2
- package/dist/{typescript-object-BeOdGrgq.d.cts.map → typescript-object-DK3sl8cB.d.mts.map} +1 -1
- package/dist/{typescript-object-v1WiBD8W.d.cts → typescript-object-L2Zn4zbB.d.mts} +3 -3
- package/dist/{typescript-object-CSlztYKM.d.mts.map → typescript-object-L2Zn4zbB.d.mts.map} +1 -1
- package/package.json +20 -6
- package/dist/context-CdtkDo_j.d.cts +0 -72
- package/dist/context-CdtkDo_j.d.cts.map +0 -1
- package/dist/context-DAfWJCa9.mjs.map +0 -1
- package/dist/context-uUfYcg-_.d.mts +0 -72
- package/dist/context-uUfYcg-_.d.mts.map +0 -1
- package/dist/dynamic-import-statement-C5uIfUk9.d.cts +0 -33
- package/dist/dynamic-import-statement-O1WueHgS.d.mts.map +0 -1
- package/dist/dynamic-import-statement-SPYQPFtB.d.mts +0 -33
- package/dist/dynamic-import-statement-SPYQPFtB.d.mts.map +0 -1
- package/dist/front-matter-Cp971E26.d.cts +0 -16
- package/dist/front-matter-Cp971E26.d.cts.map +0 -1
- package/dist/markdown-file-CfI5rBqC.d.cts.map +0 -1
- package/dist/markdown-table-O1wIj_h2.d.cts +0 -28
- package/dist/markdown-table-xO7WrAmK.d.mts.map +0 -1
- package/dist/output-7KuLjL1Z.d.mts.map +0 -1
- package/dist/output-C_XWpqr8.mjs +0 -43
- package/dist/output-C_XWpqr8.mjs.map +0 -1
- package/dist/output-DWAO1J8V.d.cts.map +0 -1
- package/dist/output-cm5u8ERz.d.mts.map +0 -1
- package/dist/refkey-Bf_2_U5t.d.cts.map +0 -1
- package/dist/refkey-Cebk8ksG.d.mts.map +0 -1
- package/dist/single-line-comment-i_GFqXcl.d.mts +0 -23
- package/dist/single-line-comment-i_GFqXcl.d.mts.map +0 -1
- package/dist/source-file-DwSKCa6M.mjs.map +0 -1
- /package/dist/{capnp-DuTkJ3G2.cjs → capnp-ClfqI-5t.cjs} +0 -0
- /package/dist/{components-Cvpo9IEL.cjs → components-BNK9p5AE.cjs} +0 -0
- /package/dist/{components-Cx5QvLGH.cjs → components-BYyc8-6U.cjs} +0 -0
- /package/dist/{components-0Z89eZqr.mjs → components-ByryZacA.mjs} +0 -0
- /package/dist/{components-5QUrDl5Y.mjs → components-C3qpgLKV.mjs} +0 -0
- /package/dist/{components-DJIkeVYh.cjs → components-DPKSrvP-.cjs} +0 -0
- /package/dist/{components-Gg416Czx.cjs → components-ISRFDWTF.cjs} +0 -0
- /package/dist/{components-Ch_xVY03.mjs → components-NXgsRgB4.mjs} +0 -0
- /package/dist/{components-DTKCKgWS.mjs → components-pztyf7qk.mjs} +0 -0
- /package/dist/{contexts-CQodwyrp.mjs → contexts-D-vYhGdM.mjs} +0 -0
- /package/dist/{contexts-B4a3JUTV.cjs → contexts-Do5bLA7f.cjs} +0 -0
- /package/dist/{contexts-DzdhIC7G.cjs → contexts-J643Nrrt.cjs} +0 -0
- /package/dist/{contexts-d0vn6-x6.mjs → contexts-oubuaPo0.mjs} +0 -0
- /package/dist/{create-builtin-Cod_Sqfx.cjs → create-builtin-BiKyN2s2.cjs} +0 -0
- /package/dist/{dynamic-import-statement-BVoYkTzN.cjs → dynamic-import-statement-Dy_MY_Ua.cjs} +0 -0
- /package/dist/{front-matter-BlhvOTm6.cjs → front-matter-DZ1tB-Uj.cjs} +0 -0
- /package/dist/{index-0-W_aPej.d.mts → index-BJ8-FA6N.d.cts} +0 -0
- /package/dist/{index-B-Y-ZG2x.d.mts → index-BXpMZvwA.d.cts} +0 -0
- /package/dist/{index-BH1nuHdZ.d.cts → index-BhY1qu3m.d.cts} +0 -0
- /package/dist/{index-BUYyA1Xh.d.cts → index-BjgW3E7y.d.mts} +0 -0
- /package/dist/{index-C6yvNuzO.d.cts → index-C3usUse7.d.mts} +0 -0
- /package/dist/{index-CTHojwxd.d.mts → index-D13oYj4_.d.mts} +0 -0
- /package/dist/{index-CjDodOH2.d.mts → index-DBGd4WeR.d.mts} +0 -0
- /package/dist/{index-CrhZaFgN.d.cts → index-DdxxIAKU.d.cts} +0 -0
- /package/dist/{index-DcDTDbdz.d.cts → index-DpEKQcoR.d.cts} +0 -0
- /package/dist/{index-Jh0C5PIG.d.mts → index-gpCH5158.d.mts} +0 -0
- /package/dist/{markdown-table-DWfdg1my.cjs → markdown-table-BWPm6GbJ.cjs} +0 -0
- /package/dist/{plugin--l4YoZkf.cjs → plugin-B8wUxSXi.cjs} +0 -0
- /package/dist/{plugin-BHyL2r7r.mjs → plugin-BzF8Q2v1.mjs} +0 -0
- /package/dist/{record-expression-CC24cKiY.cjs → record-expression-6ElbFyR0.cjs} +0 -0
- /package/dist/{refkey-BLL_fer8.cjs → refkey-C08kDOQ0.cjs} +0 -0
- /package/dist/{reflection-DX-QT0Nx.cjs → reflection-BSrdR0Qz.cjs} +0 -0
- /package/dist/{single-line-comment-COZ9RWsm.cjs → single-line-comment-DvU69OGj.cjs} +0 -0
- /package/dist/{typescript-BzIvz7Cp.cjs → typescript-BbjCTT04.cjs} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-expression-
|
|
1
|
+
{"version":3,"file":"record-expression-D5W72rZN.mjs","names":["code","RecordExpression","elementType"],"sources":["../src/typescript/components/record-expression.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 { Children, code } from \"@alloy-js/core\";\n\nexport interface RecordExpressionProps {\n elementType: Children;\n}\n\nexport function RecordExpression({ elementType }: RecordExpressionProps) {\n return code`\n Record<string, ${elementType}>\n `;\n}\n"],"mappings":""}
|
|
@@ -10,4 +10,4 @@ declare function RecordExpression({
|
|
|
10
10
|
declare type __ΩRecordExpressionProps = any[];
|
|
11
11
|
//#endregion
|
|
12
12
|
export { RecordExpressionProps as n, __ΩRecordExpressionProps as r, RecordExpression as t };
|
|
13
|
-
//# sourceMappingURL=record-expression-
|
|
13
|
+
//# sourceMappingURL=record-expression-Dwg_PZpg.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-expression-
|
|
1
|
+
{"version":3,"file":"record-expression-Dwg_PZpg.d.cts","names":[],"sources":["../src/typescript/components/record-expression.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,qBAAA;eACF;AADf;AAIgB,iBAAA,gBAAA,CAAgB;EAAA;AAAA,CAAA,EAAkB,qBAAlB,CAAA,EAAuC,QAAvC;AAAG,wCAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refkey-CP7MJMac.d.cts","names":[],"sources":["../src/helpers/refkey.ts"],"sourcesContent":[],"mappings":";;;;;;AA0BA;;;;iBAAgB,MAAA,sBAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refkey-
|
|
1
|
+
{"version":3,"file":"refkey-CQVHeuAq.mjs","names":["refkey","refkeyExternal","args"],"sources":["../src/helpers/refkey.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 { Refkey, refkey as refkeyExternal } from \"@alloy-js/core\";\n\n/**\n * Create a refkey for the provided arguments. Passing no arguments returns a fresh refkey that is guaranteed to be unique. Otherwise, the arguments passed will be used to create a refkey for those values. Providing the same arguments will always return the same refkey.\n *\n * @remarks\n * Values are compared using the SameValueZero algorithm, which considers objects the same if they are reference identical, and primitives the same if they are the same value, with the exception of `NaN`, which is always considered equal to other `NaN` values, and `-0`, which is considered identical to `+0`\n */\nexport function refkey(...args: unknown[]): Refkey {\n return refkeyExternal(\"powerlines\", ...args);\n}\n"],"mappings":";;;;;;;;;AA0BA,SAAgBA,SAAO,GAAGE,MAAyB;AACjD,QAAOD,OAAe,cAAc,GAAGC,KAAK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refkey-D6OjgKgS.d.mts","names":[],"sources":["../src/helpers/refkey.ts"],"sourcesContent":[],"mappings":";;;;;;AA0BA;;;;iBAAgB,QAAA,sBAA4B"}
|
|
@@ -58,4 +58,4 @@ function useReflectionParameter() {
|
|
|
58
58
|
|
|
59
59
|
//#endregion
|
|
60
60
|
export { useReflectionClass as a, useReflectionProperty as c, ReflectionPropertyContext as i, ReflectionMethodContext as n, useReflectionMethod as o, ReflectionParameterContext as r, useReflectionParameter as s, ReflectionClassContext as t };
|
|
61
|
-
//# sourceMappingURL=reflection-
|
|
61
|
+
//# sourceMappingURL=reflection-Btb1NqwS.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reflection-
|
|
1
|
+
{"version":3,"file":"reflection-Btb1NqwS.mjs","names":["createContext","createNamedContext","useContext","ReflectionClassContext","useReflectionClass","context","Error","ReflectionPropertyContext","useReflectionProperty","ReflectionMethodContext","useReflectionMethod","ReflectionParameterContext","useReflectionParameter"],"sources":["../src/core/contexts/reflection.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 type { ComponentContext } from \"@alloy-js/core\";\nimport { createContext, createNamedContext, useContext } from \"@alloy-js/core\";\nimport type {\n ReflectionClass,\n ReflectionMethod,\n ReflectionParameter,\n ReflectionProperty\n} from \"@powerlines/deepkit/vendor/type\";\nimport { ReflectionOverrideInterface } from \"../../types/components\";\n\nexport interface ReflectionClassContextInterface<\n T extends Record<string, any> = Record<string, any>\n> {\n reflection: ReflectionClass<T>;\n override?: ReflectionOverrideInterface<T>;\n}\n\n/**\n * The reflection class context used in template rendering.\n */\nexport const ReflectionClassContext: ComponentContext<\n ReflectionClassContextInterface<any>\n> = createContext<ReflectionClassContextInterface<any>>();\n\n/**\n * Hook to access the Reflection context.\n *\n * @returns A reactive version of the current reflection.\n */\nexport function useReflectionClass<\n T extends Record<string, any> = Record<string, any>\n>() {\n const context = useContext<ReflectionClassContextInterface<T>>(\n ReflectionClassContext\n )!;\n\n if (!context) {\n throw new Error(\n \"Powerlines - ReflectionClass Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return context;\n}\n\n/**\n * The reflection property context used in template rendering.\n */\nexport const ReflectionPropertyContext: ComponentContext<ReflectionProperty> =\n createNamedContext<ReflectionProperty>(\"ReflectionProperty\");\n\n/**\n * Hook to access the Reflection Property context.\n *\n * @returns A reactive version of the current reflection.\n */\nexport function useReflectionProperty() {\n const context = useContext<ReflectionProperty>(ReflectionPropertyContext)!;\n\n if (!context) {\n throw new Error(\n \"Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return context;\n}\n\n/**\n * The reflection method context used in template rendering.\n */\nexport const ReflectionMethodContext: ComponentContext<ReflectionMethod> =\n createNamedContext<ReflectionMethod>(\"ReflectionMethod\");\n\n/**\n * Hook to access the Reflection Method context.\n *\n * @returns A reactive version of the current reflection.\n */\nexport function useReflectionMethod() {\n const context = useContext<ReflectionMethod>(ReflectionMethodContext)!;\n\n if (!context) {\n throw new Error(\n \"Powerlines - Reflection Method Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return context;\n}\n\n/**\n * The reflection parameter context used in template rendering.\n */\nexport const ReflectionParameterContext: ComponentContext<ReflectionParameter> =\n createNamedContext<ReflectionParameter>(\"ReflectionParameter\");\n\n/**\n * Hook to access the Reflection Parameter context.\n *\n * @returns A reactive version of the current reflection.\n */\nexport function useReflectionParameter() {\n return useContext<ReflectionParameter>(ReflectionParameterContext)!;\n}\n"],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ReflectionOverrideInterface } from "./components-
|
|
1
|
+
import { c as ReflectionOverrideInterface } from "./components-REdw2IIi.mjs";
|
|
2
2
|
import { ComponentContext } from "@alloy-js/core";
|
|
3
3
|
import { ReflectionClass, ReflectionMethod, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
4
|
|
|
@@ -50,4 +50,4 @@ declare function useReflectionParameter(): ReflectionParameter;
|
|
|
50
50
|
declare type __ΩReflectionClassContextInterface = any[];
|
|
51
51
|
//#endregion
|
|
52
52
|
export { ReflectionPropertyContext as a, useReflectionMethod as c, ReflectionParameterContext as i, useReflectionParameter as l, ReflectionClassContextInterface as n, __ΩReflectionClassContextInterface as o, ReflectionMethodContext as r, useReflectionClass as s, ReflectionClassContext as t, useReflectionProperty as u };
|
|
53
|
-
//# sourceMappingURL=reflection-
|
|
53
|
+
//# sourceMappingURL=reflection-BumisltV.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reflection-
|
|
1
|
+
{"version":3,"file":"reflection-BumisltV.d.mts","names":[],"sources":["../src/core/contexts/reflection.ts"],"sourcesContent":[],"mappings":";;;;;UA4BiB,0CACL,sBAAsB;cAEpB,gBAAgB;EAHb,QAAA,CAAA,EAIJ,2BAJmC,CAIP,CAJO,CAAA;;;;;AAIP,cAM5B,sBAN4B,EAMJ,gBANI,CAOvC,+BAPuC,CAAA,GAAA,CAAA,CAAA;;;AAMzC;AASA;;AACkC,iBADlB,kBACkB,CAAA,UAAtB,MAAsB,CAAA,MAAA,EAAA,GAAA,CAAA,GAAA,MAAA,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,CAAA,EAAmB,+BAAnB,CAAmB,CAAnB,CAAA;;;;AAkBrB,cAAA,yBAA4C,EAAjB,gBAAA,CAAiB,kBAAD,CAAA;AAQxD;AAeA;AAQA;AAeA;AAQA;iBA9CgB,qBAAA,CAAA,GAAqB;;;;cAexB,yBAAyB,iBAAiB;;;;;;iBAQvC,mBAAA,CAAA,GAAmB;;;;cAetB,4BAA4B,iBAAiB;;;;;;iBAQ1C,sBAAA,CAAA,GAAsB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ReflectionOverrideInterface } from "./components-
|
|
1
|
+
import { c as ReflectionOverrideInterface } from "./components-DqfyRVFO.cjs";
|
|
2
2
|
import { ComponentContext } from "@alloy-js/core";
|
|
3
3
|
import { ReflectionClass, ReflectionMethod, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
4
|
|
|
@@ -50,4 +50,4 @@ declare function useReflectionParameter(): ReflectionParameter;
|
|
|
50
50
|
declare type __ΩReflectionClassContextInterface = any[];
|
|
51
51
|
//#endregion
|
|
52
52
|
export { ReflectionPropertyContext as a, useReflectionMethod as c, ReflectionParameterContext as i, useReflectionParameter as l, ReflectionClassContextInterface as n, __ΩReflectionClassContextInterface as o, ReflectionMethodContext as r, useReflectionClass as s, ReflectionClassContext as t, useReflectionProperty as u };
|
|
53
|
-
//# sourceMappingURL=reflection-
|
|
53
|
+
//# sourceMappingURL=reflection-I2Uewhuo.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reflection-
|
|
1
|
+
{"version":3,"file":"reflection-I2Uewhuo.d.cts","names":[],"sources":["../src/core/contexts/reflection.ts"],"sourcesContent":[],"mappings":";;;;;UA4BiB,0CACL,sBAAsB;cAEpB,gBAAgB;EAHb,QAAA,CAAA,EAIJ,2BAJmC,CAIP,CAJO,CAAA;;;;;AAIP,cAM5B,sBAN4B,EAMJ,gBANI,CAOvC,+BAPuC,CAAA,GAAA,CAAA,CAAA;;;AAMzC;AASA;;AACkC,iBADlB,kBACkB,CAAA,UAAtB,MAAsB,CAAA,MAAA,EAAA,GAAA,CAAA,GAAA,MAAA,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,CAAA,EAAmB,+BAAnB,CAAmB,CAAnB,CAAA;;;;AAkBrB,cAAA,yBAA4C,EAAjB,gBAAA,CAAiB,kBAAD,CAAA;AAQxD;AAeA;AAQA;AAeA;AAQA;iBA9CgB,qBAAA,CAAA,GAAqB;;;;cAexB,yBAAyB,iBAAiB;;;;;;iBAQvC,mBAAA,CAAA,GAAmB;;;;cAetB,4BAA4B,iBAAiB;;;;;;iBAQ1C,sBAAA,CAAA,GAAsB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ComponentProps } from "./components-
|
|
1
|
+
import { n as ComponentProps } from "./components-DqfyRVFO.cjs";
|
|
2
2
|
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/core/components/single-line-comment.d.ts
|
|
@@ -20,4 +20,4 @@ declare type __ΩSingleLineCommentVariant = any[];
|
|
|
20
20
|
declare type __ΩSingleLineCommentProps = any[];
|
|
21
21
|
//#endregion
|
|
22
22
|
export { __ΩSingleLineCommentVariant as a, __ΩSingleLineCommentProps as i, SingleLineCommentProps as n, SingleLineCommentVariant as r, SingleLineComment as t };
|
|
23
|
-
//# sourceMappingURL=single-line-comment-
|
|
23
|
+
//# sourceMappingURL=single-line-comment-DWXxACyy.d.cts.map
|
package/dist/{single-line-comment-B258_x1B.d.cts.map → single-line-comment-DWXxACyy.d.cts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-line-comment-
|
|
1
|
+
{"version":3,"file":"single-line-comment-DWXxACyy.d.cts","names":[],"sources":["../src/core/components/single-line-comment.tsx"],"sourcesContent":[],"mappings":";;;;KAqBY,wBAAA;UAOK,sBAAA,SAA+B;;AAPhD;AAOA;AAaA;;YAPY;;;;;;iBAOI,iBAAA,QAAyB,yBAAsB,eAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-line-comment-
|
|
1
|
+
{"version":3,"file":"single-line-comment-MRVbskt3.mjs","names":["Prose","SingleLineComment","props","variant","children","commentStart","_$createIntrinsic","string","_$createComponent"],"sources":["../src/core/components/single-line-comment.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 { Prose } from \"@alloy-js/core\";\nimport { ComponentProps } from \"../../types/components\";\n\nexport type SingleLineCommentVariant =\n | \"double-slash\"\n | \"triple-slash\"\n | \"slash-star\"\n | \"slash-star-star\"\n | \"markdown\";\n\nexport interface SingleLineCommentProps extends ComponentProps {\n /**\n * The variant of the single line comment.\n *\n * @defaultValue \"double-slash\"\n */\n variant?: SingleLineCommentVariant;\n}\n\n/**\n * A single line comment block. The children are rendered as a prose element, which means that they\n * are broken into multiple lines\n */\nexport function SingleLineComment(props: SingleLineCommentProps) {\n const { variant = \"double-slash\", children } = props;\n\n const commentStart =\n variant === \"slash-star\"\n ? \"/* \"\n : variant === \"slash-star-star\"\n ? \"/** \"\n : variant === \"triple-slash\"\n ? \"/// \"\n : variant === \"markdown\"\n ? \"<!-- \"\n : \"// \";\n\n return (\n <>\n {commentStart}\n <align string={commentStart}>\n <Prose>{children}</Prose>\n\n {variant === \"slash-star\" || variant === \"slash-star-star\"\n ? \" */ \"\n : variant === \"markdown\"\n ? \" -->\"\n : \"\"}\n </align>\n </>\n );\n}\n"],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ComponentProps } from "./components-
|
|
1
|
+
import { n as ComponentProps } from "./components-REdw2IIi.mjs";
|
|
2
2
|
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/core/components/single-line-comment.d.ts
|
|
@@ -20,4 +20,4 @@ declare type __ΩSingleLineCommentVariant = any[];
|
|
|
20
20
|
declare type __ΩSingleLineCommentProps = any[];
|
|
21
21
|
//#endregion
|
|
22
22
|
export { __ΩSingleLineCommentVariant as a, __ΩSingleLineCommentProps as i, SingleLineCommentProps as n, SingleLineCommentVariant as r, SingleLineComment as t };
|
|
23
|
-
//# sourceMappingURL=single-line-comment-
|
|
23
|
+
//# sourceMappingURL=single-line-comment-ceejgNfU.d.mts.map
|
package/dist/{single-line-comment-cunvfPOw.d.mts.map → single-line-comment-ceejgNfU.d.mts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-line-comment-
|
|
1
|
+
{"version":3,"file":"single-line-comment-ceejgNfU.d.mts","names":[],"sources":["../src/core/components/single-line-comment.tsx"],"sourcesContent":[],"mappings":";;;;KAqBY,wBAAA;UAOK,sBAAA,SAA+B;;AAPhD;AAOA;AAaA;;YAPY;;;;;;iBAOI,iBAAA,QAAyB,yBAAsB,eAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
const
|
|
2
|
+
const require_meta = require('./meta-BjTflizw.cjs');
|
|
3
3
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
4
|
let __alloy_js_core = require("@alloy-js/core");
|
|
5
5
|
let __stryke_path_append = require("@stryke/path/append");
|
|
@@ -23,7 +23,7 @@ function SourceFile(props) {
|
|
|
23
23
|
"filetype",
|
|
24
24
|
"reference"
|
|
25
25
|
]);
|
|
26
|
-
const metadata =
|
|
26
|
+
const metadata = require_meta.useMetaSafe();
|
|
27
27
|
const parentDirectory = (0, __alloy_js_core.useContext)(__alloy_js_core.SourceDirectoryContext);
|
|
28
28
|
const sourceFile = {
|
|
29
29
|
path: (0, __stryke_path_append.appendPath)(path, parentDirectory.path),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ComponentProps } from "./components-
|
|
1
|
+
import { n as ComponentProps } from "./components-DqfyRVFO.cjs";
|
|
2
2
|
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
3
|
import { SourceFileProps } from "@alloy-js/core";
|
|
4
4
|
import { StoragePreset } from "powerlines/types/fs";
|
|
@@ -30,4 +30,4 @@ declare function SourceFile(props: SourceFileProps$1): _alloy_js_core0.Children;
|
|
|
30
30
|
declare type __ΩSourceFileProps = any[];
|
|
31
31
|
//#endregion
|
|
32
32
|
export { SourceFileProps$1 as n, __ΩSourceFileProps as r, SourceFile as t };
|
|
33
|
-
//# sourceMappingURL=source-file-
|
|
33
|
+
//# sourceMappingURL=source-file-BNYeD1w4.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-file-
|
|
1
|
+
{"version":3,"file":"source-file-BNYeD1w4.d.cts","names":[],"sources":["../src/core/components/source-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KAkCY,iBAAA,GAAkB,kBAC5B;;;AADF;;;;EAgBW,OAAA,CAAA,EARG,aAQH;EAAM;AASjB;;;;;SATW;;;;;;;;iBASK,UAAA,QAAkB,oBAAe,eAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ComponentProps } from "./components-
|
|
1
|
+
import { n as ComponentProps } from "./components-REdw2IIi.mjs";
|
|
2
2
|
import * as _alloy_js_core1 from "@alloy-js/core";
|
|
3
3
|
import { SourceFileProps } from "@alloy-js/core";
|
|
4
4
|
import { StoragePreset } from "powerlines/types/fs";
|
|
@@ -30,4 +30,4 @@ declare function SourceFile(props: SourceFileProps$1): _alloy_js_core1.Children;
|
|
|
30
30
|
declare type __ΩSourceFileProps = any[];
|
|
31
31
|
//#endregion
|
|
32
32
|
export { SourceFileProps$1 as n, __ΩSourceFileProps as r, SourceFile as t };
|
|
33
|
-
//# sourceMappingURL=source-file-
|
|
33
|
+
//# sourceMappingURL=source-file-Cw1cdlHb.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-file-
|
|
1
|
+
{"version":3,"file":"source-file-Cw1cdlHb.d.mts","names":[],"sources":["../src/core/components/source-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KAkCY,iBAAA,GAAkB,kBAC5B;;;AADF;;;;EAgBW,OAAA,CAAA,EARG,aAQH;EAAM;AASjB;;;;;SATW;;;;;;;;iBASK,UAAA,QAAkB,oBAAe,eAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useMetaSafe } from "./meta-D0pfCtdR.mjs";
|
|
2
2
|
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
3
3
|
import { Show, SourceDirectoryContext, SourceFileContext, getContext, splitProps, useContext, useFormatOptions } from "@alloy-js/core";
|
|
4
4
|
import { appendPath } from "@stryke/path/append";
|
|
@@ -59,4 +59,4 @@ function SourceFile(props) {
|
|
|
59
59
|
|
|
60
60
|
//#endregion
|
|
61
61
|
export { SourceFile as t };
|
|
62
|
-
//# sourceMappingURL=source-file-
|
|
62
|
+
//# sourceMappingURL=source-file-MLTzYO0w.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-file-MLTzYO0w.mjs","names":["getContext","Show","SourceDirectoryContext","SourceFileContext","splitProps","useContext","useFormatOptions","appendPath","defu","useMetaSafe","SourceFile","props","children","meta","path","header","storage","filetype","reference","metadata","parentDirectory","sourceFile","addContent","printOptions","printWidth","tabWidth","useTabs","insertFinalNewLine","nodeContext","_$createComponent","Provider","value","when","undefined","_$createIntrinsic"],"sources":["../src/core/components/source-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 {\n getContext,\n Show,\n SourceDirectoryContext,\n SourceFileContext,\n SourceFileProps as SourceFilePropsExternal,\n splitProps,\n useContext,\n useFormatOptions\n} from \"@alloy-js/core\";\nimport { appendPath } from \"@stryke/path/append\";\nimport defu from \"defu\";\nimport type { StoragePreset } from \"powerlines/types/fs\";\nimport { ComponentProps } from \"../../types/components\";\nimport { useMetaSafe } from \"../contexts/meta\";\n\nexport type SourceFileProps = SourceFilePropsExternal &\n ComponentProps & {\n /**\n * The storage preset for the output files.\n *\n * @remarks\n * If not specified, the output mode will be determined by the provided `output.mode` value.\n */\n storage?: StoragePreset;\n\n /**\n * The metadata associated with the source file.\n *\n * @remarks\n * The values stored in the metadata will be available in the rendering context.\n */\n meta?: Record<string, any>;\n };\n\n/**\n * A base component representing a Powerlines generated source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function SourceFile(props: SourceFileProps) {\n const [{ children, meta, path, header, storage, filetype, reference }] =\n splitProps(props, [\n \"children\",\n \"meta\",\n \"path\",\n \"header\",\n \"storage\",\n \"filetype\",\n \"reference\"\n ]);\n\n const metadata = useMetaSafe();\n const parentDirectory = useContext(SourceDirectoryContext)!;\n\n const sourceFile: SourceFileContext = {\n path: appendPath(path, parentDirectory.path),\n filetype,\n reference\n };\n parentDirectory?.addContent(sourceFile);\n\n const printOptions = useFormatOptions({\n printWidth: props.printWidth,\n tabWidth: props.tabWidth,\n useTabs: props.useTabs,\n insertFinalNewLine: props.insertFinalNewLine\n });\n\n const nodeContext = getContext()!;\n nodeContext.meta = defu(\n {\n sourceFile,\n printOptions\n },\n meta ?? {}\n );\n\n if (metadata) {\n metadata[sourceFile.path] = {\n storage,\n ...(meta ?? {})\n };\n }\n\n return (\n <SourceFileContext.Provider value={sourceFile}>\n <Show when={header !== undefined}>\n {header}\n <hbr />\n </Show>\n {children}\n </SourceFileContext.Provider>\n );\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { n as ComponentProps } from "./components-DqfyRVFO.cjs";
|
|
2
|
+
import * as _alloy_js_core17 from "@alloy-js/core";
|
|
3
|
+
import { SourceFileProps } from "@alloy-js/core";
|
|
4
|
+
import { StoragePreset } from "powerlines/types/fs";
|
|
5
|
+
|
|
6
|
+
//#region src/core/components/source-file.d.ts
|
|
7
|
+
type SourceFileProps$1 = SourceFileProps & ComponentProps & {
|
|
8
|
+
/**
|
|
9
|
+
* The storage preset for the output files.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* If not specified, the output mode will be determined by the provided `output.mode` value.
|
|
13
|
+
*/
|
|
14
|
+
storage?: StoragePreset;
|
|
15
|
+
/**
|
|
16
|
+
* The metadata associated with the source file.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* The values stored in the metadata will be available in the rendering context.
|
|
20
|
+
*/
|
|
21
|
+
meta?: Record<string, any>;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A base component representing a Powerlines generated source file.
|
|
25
|
+
*
|
|
26
|
+
* @param props - The properties for the source file.
|
|
27
|
+
* @returns The rendered source file component.
|
|
28
|
+
*/
|
|
29
|
+
declare function SourceFile(props: SourceFileProps$1): _alloy_js_core17.Children;
|
|
30
|
+
declare type __ΩSourceFileProps = any[];
|
|
31
|
+
//#endregion
|
|
32
|
+
export { SourceFileProps$1 as n, __ΩSourceFileProps as r, SourceFile as t };
|
|
33
|
+
//# sourceMappingURL=source-file-OtWS66Kr.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-file-OtWS66Kr.d.cts","names":[],"sources":["../src/core/components/source-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KAkCY,iBAAA,GAAkB,kBAC5B;;;AADF;;;;EAgBW,OAAA,CAAA,EARG,aAQH;EAAM;AASjB;;;;;SATW;;;;;;;;iBASK,UAAA,QAAkB,oBAAe,gBAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ComponentProps } from "./components-
|
|
2
|
-
import * as
|
|
1
|
+
import { n as ComponentProps } from "./components-REdw2IIi.mjs";
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
3
|
import { SourceFileProps } from "@alloy-js/core";
|
|
4
4
|
import { StoragePreset } from "powerlines/types/fs";
|
|
5
5
|
|
|
@@ -26,8 +26,8 @@ type SourceFileProps$1 = SourceFileProps & ComponentProps & {
|
|
|
26
26
|
* @param props - The properties for the source file.
|
|
27
27
|
* @returns The rendered source file component.
|
|
28
28
|
*/
|
|
29
|
-
declare function SourceFile(props: SourceFileProps$1):
|
|
29
|
+
declare function SourceFile(props: SourceFileProps$1): _alloy_js_core0.Children;
|
|
30
30
|
declare type __ΩSourceFileProps = any[];
|
|
31
31
|
//#endregion
|
|
32
32
|
export { SourceFileProps$1 as n, __ΩSourceFileProps as r, SourceFile as t };
|
|
33
|
-
//# sourceMappingURL=source-file-
|
|
33
|
+
//# sourceMappingURL=source-file-YrHdUb8H.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-file-
|
|
1
|
+
{"version":3,"file":"source-file-YrHdUb8H.d.mts","names":[],"sources":["../src/core/components/source-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KAkCY,iBAAA,GAAkB,kBAC5B;;;AADF;;;;EAgBW,OAAA,CAAA,EARG,aAQH;EAAM;AASjB;;;;;SATW;;;;;;;;iBASK,UAAA,QAAkB,oBAAe,eAAA,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as ComponentProps } from "./components-
|
|
1
|
+
import { n as ComponentProps } from "./components-DqfyRVFO.cjs";
|
|
2
2
|
import { Children } from "@alloy-js/core";
|
|
3
|
-
import { ReflectionKind, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
3
|
import { JSDocExampleProps, ParameterDescriptor } from "@alloy-js/typescript";
|
|
4
|
+
import { ReflectionKind, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
5
5
|
|
|
6
6
|
//#region src/typescript/components/tsdoc.d.ts
|
|
7
7
|
interface TSDocProps extends ComponentProps {
|
|
@@ -161,4 +161,4 @@ declare type __ΩTSDocParamProps = any[];
|
|
|
161
161
|
declare type __ΩTSDocModuleProps = any[];
|
|
162
162
|
//#endregion
|
|
163
163
|
export { __ΩTSDocDefaultValueProps as A, TSDocRemarks as C, TSDocThrows as D, TSDocTagProps as E, __ΩTSDocProps as F, __ΩTSDocTagProps as I, __ΩTSDocModuleProps as M, __ΩTSDocParamProps as N, TSDocTitle as O, __ΩTSDocParamsProps as P, TSDocReadonly as S, TSDocTag as T, TSDocParamProps as _, TSDocDefaultValue as a, TSDocPermission as b, TSDocExample as c, TSDocIgnore as d, TSDocInternal as f, TSDocParam as g, TSDocModuleProps as h, TSDocAttributesTagsProps as i, __ΩTSDocExampleProps as j, __ΩTSDocAttributesTagsProps as k, TSDocExampleProps as l, TSDocModule as m, TSDocAlias as n, TSDocDefaultValueProps as o, TSDocLink as p, TSDocAttributesTags as r, TSDocDomain as s, TSDoc as t, TSDocHidden as u, TSDocParams as v, TSDocReturns as w, TSDocProps as x, TSDocParamsProps as y };
|
|
164
|
-
//# sourceMappingURL=tsdoc-
|
|
164
|
+
//# sourceMappingURL=tsdoc-BpOXtq0v.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsdoc-
|
|
1
|
+
{"version":3,"file":"tsdoc-BpOXtq0v.d.cts","names":[],"sources":["../src/typescript/components/tsdoc.tsx"],"sourcesContent":[],"mappings":";;;;;;UAuCiB,UAAA,SAAmB;YACxB;AADZ;AAOA;AAgCA;AAOA;AAgBiB,iBAvDD,KAAA,CAuDiB,KAAA,EAvDJ,UAwDf,CAAA,EAxDyB,QAwDN;AAMjB,UA9BC,aAAA,SAAsB,cA8BY,CAAA;EA2BnC,GAAA,EAAA,MAAA;AAahB;AAaA;AAaA;AAUA;AACQ,iBApGQ,QAAA,CAoGR,KAAA,EApGwB,aAoGxB,CAAA,EApGqC,QAoGrC;AAAiB,UApFR,gBAAA,CAoFQ;EAAqB,UAAA,EAnFhC,mBAmFgC,EAAA,GAAA,MAAA,EAAA;;;AAO9C;AAmBA;AAagB,iBApHA,WAAA,CAoHiB,KAAA,EApHE,gBAoHY,CAAA,EApHI,QAoHJ;AAI/C;AAYA;AA4BA;AAOgB,iBA5IA,UAAA,CA4Ia,KAAA,EA5IK,cA4IL,CAAA,EA5ImB,QA4InB;AAO7B;AAOA;AAIA;AACS,iBAlJO,WAAA,CAkJP,KAAA,EAlJ0B,cAkJ1B,CAAA,EAlJwC,QAkJxC;;;;AAeO,iBApJA,UAAA,CAoJmB,KAAQ,EApJT,cAoJS,CAAA,EApJK,QAoJmB;AA+EnE;;;AAIiB,iBA1ND,eAAA,CA0NC,KAAA,EA1NsB,cA0NtB,CAAA,EA1NoC,QA0NpC;AAAQ,UAhNR,sBAAA,SAA+B,cAgNvB,CAAA;EAMT,IAAA,EArNR,cAqNkB,GArND,kBAqNS,GArNY,mBAqNG;EAiDjC,YAAA,EAAA,GAAY;AAO5B;AAIA;AAiCA;;iBA3SgB,iBAAA,QAAyB,yBAAsB;;;;iBAmB/C,YAAA,QAAoB,iBAAc;;;;iBAalC,SAAA,QAAiB,iBAAc;UAI9B,iBAAA,SAA0B;;;;;;;;;;;iBAY3B,YAAA,QAAoB,oBAAiB;;;;iBA4BrC,aAAA,CAAA,GAAa;;;;iBAOb,aAAA,CAAA,GAAa;;;;iBAOb,WAAA,CAAA,GAAW;;;;iBAOX,WAAA,CAAA,GAAW;UAIV,wBAAA;SACR,iBAAiB,qBAAqB;;;;;;;;;;;;;;iBAe/B,mBAAA,QAA2B,2BAAwB;UA+ElD,eAAA;QACT;aACK;;iBAEI;;;;;iBAMD,UAAA,QAAkB,kBAAe;;;;iBAiDjC,YAAA,QAAoB,iBAAc;;;;iBAOlC,WAAA,QAAmB,iBAAc;UAIhC,gBAAA,SAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;QA2BlC;;;;;iBAMQ,WAAA,QAAmB,mBAAgB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
const require_context = require('./context-
|
|
2
|
+
const require_context = require('./context-DNdlL_gp.cjs');
|
|
3
3
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
4
|
let __alloy_js_core = require("@alloy-js/core");
|
|
5
5
|
let __powerlines_deepkit_utilities = require("@powerlines/deepkit/utilities");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as ComponentProps } from "./components-
|
|
1
|
+
import { n as ComponentProps } from "./components-REdw2IIi.mjs";
|
|
2
2
|
import { Children } from "@alloy-js/core";
|
|
3
|
-
import { JSDocExampleProps, ParameterDescriptor } from "@alloy-js/typescript";
|
|
4
3
|
import { ReflectionKind, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
|
+
import { JSDocExampleProps, ParameterDescriptor } from "@alloy-js/typescript";
|
|
5
5
|
|
|
6
6
|
//#region src/typescript/components/tsdoc.d.ts
|
|
7
7
|
interface TSDocProps extends ComponentProps {
|
|
@@ -161,4 +161,4 @@ declare type __ΩTSDocParamProps = any[];
|
|
|
161
161
|
declare type __ΩTSDocModuleProps = any[];
|
|
162
162
|
//#endregion
|
|
163
163
|
export { __ΩTSDocDefaultValueProps as A, TSDocRemarks as C, TSDocThrows as D, TSDocTagProps as E, __ΩTSDocProps as F, __ΩTSDocTagProps as I, __ΩTSDocModuleProps as M, __ΩTSDocParamProps as N, TSDocTitle as O, __ΩTSDocParamsProps as P, TSDocReadonly as S, TSDocTag as T, TSDocParamProps as _, TSDocDefaultValue as a, TSDocPermission as b, TSDocExample as c, TSDocIgnore as d, TSDocInternal as f, TSDocParam as g, TSDocModuleProps as h, TSDocAttributesTagsProps as i, __ΩTSDocExampleProps as j, __ΩTSDocAttributesTagsProps as k, TSDocExampleProps as l, TSDocModule as m, TSDocAlias as n, TSDocDefaultValueProps as o, TSDocLink as p, TSDocAttributesTags as r, TSDocDomain as s, TSDoc as t, TSDocHidden as u, TSDocParams as v, TSDocReturns as w, TSDocProps as x, TSDocParamsProps as y };
|
|
164
|
-
//# sourceMappingURL=tsdoc-
|
|
164
|
+
//# sourceMappingURL=tsdoc-CwqGhmLe.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsdoc-
|
|
1
|
+
{"version":3,"file":"tsdoc-CwqGhmLe.d.mts","names":[],"sources":["../src/typescript/components/tsdoc.tsx"],"sourcesContent":[],"mappings":";;;;;;UAuCiB,UAAA,SAAmB;YACxB;AADZ;AAOA;AAgCA;AAOA;AAgBiB,iBAvDD,KAAA,CAuDiB,KAAA,EAvDJ,UAwDf,CAAA,EAxDyB,QAwDN;AAMjB,UA9BC,aAAA,SAAsB,cA8BY,CAAA;EA2BnC,GAAA,EAAA,MAAA;AAahB;AAaA;AAaA;AAUA;AACQ,iBApGQ,QAAA,CAoGR,KAAA,EApGwB,aAoGxB,CAAA,EApGqC,QAoGrC;AAAiB,UApFR,gBAAA,CAoFQ;EAAqB,UAAA,EAnFhC,mBAmFgC,EAAA,GAAA,MAAA,EAAA;;;AAO9C;AAmBA;AAagB,iBApHA,WAAA,CAoHiB,KAAA,EApHE,gBAoHY,CAAA,EApHI,QAoHJ;AAI/C;AAYA;AA4BA;AAOgB,iBA5IA,UAAA,CA4Ia,KAAA,EA5IK,cA4IL,CAAA,EA5ImB,QA4InB;AAO7B;AAOA;AAIA;AACS,iBAlJO,WAAA,CAkJP,KAAA,EAlJ0B,cAkJ1B,CAAA,EAlJwC,QAkJxC;;;;AAeO,iBApJA,UAAA,CAoJmB,KAAQ,EApJT,cAoJS,CAAA,EApJK,QAoJmB;AA+EnE;;;AAIiB,iBA1ND,eAAA,CA0NC,KAAA,EA1NsB,cA0NtB,CAAA,EA1NoC,QA0NpC;AAAQ,UAhNR,sBAAA,SAA+B,cAgNvB,CAAA;EAMT,IAAA,EArNR,cAqNkB,GArND,kBAqNS,GArNY,mBAqNG;EAiDjC,YAAA,EAAA,GAAY;AAO5B;AAIA;AAiCA;;iBA3SgB,iBAAA,QAAyB,yBAAsB;;;;iBAmB/C,YAAA,QAAoB,iBAAc;;;;iBAalC,SAAA,QAAiB,iBAAc;UAI9B,iBAAA,SAA0B;;;;;;;;;;;iBAY3B,YAAA,QAAoB,oBAAiB;;;;iBA4BrC,aAAA,CAAA,GAAa;;;;iBAOb,aAAA,CAAA,GAAa;;;;iBAOb,WAAA,CAAA,GAAW;;;;iBAOX,WAAA,CAAA,GAAW;UAIV,wBAAA;SACR,iBAAiB,qBAAqB;;;;;;;;;;;;;;iBAe/B,mBAAA,QAA2B,2BAAwB;UA+ElD,eAAA;QACT;aACK;;iBAEI;;;;;iBAMD,UAAA,QAAkB,kBAAe;;;;iBAiDjC,YAAA,QAAoB,iBAAc;;;;iBAOlC,WAAA,QAAmB,iBAAc;UAIhC,gBAAA,SAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;QA2BlC;;;;;iBAMQ,WAAA,QAAmB,mBAAgB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as usePowerlinesSafe } from "./context-CdPajCh6.mjs";
|
|
2
2
|
import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
3
|
import { For, List, Prose, Show, childrenArray, splitProps } from "@alloy-js/core";
|
|
4
4
|
import { stringifyDefaultValue } from "@powerlines/deepkit/utilities";
|
|
@@ -463,4 +463,4 @@ function TSDocModule(props) {
|
|
|
463
463
|
|
|
464
464
|
//#endregion
|
|
465
465
|
export { TSDocReturns as _, TSDocDomain as a, TSDocTitle as b, TSDocIgnore as c, TSDocModule as d, TSDocParam as f, TSDocRemarks as g, TSDocReadonly as h, TSDocDefaultValue as i, TSDocInternal as l, TSDocPermission as m, TSDocAlias as n, TSDocExample as o, TSDocParams as p, TSDocAttributesTags as r, TSDocHidden as s, TSDoc as t, TSDocLink as u, TSDocTag as v, TSDocThrows as y };
|
|
466
|
-
//# sourceMappingURL=tsdoc-
|
|
466
|
+
//# sourceMappingURL=tsdoc-DB1Qzwsn.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsdoc-Ios5W2gJ.mjs","names":["childrenArray","For","List","Prose","Show","splitProps","stringifyDefaultValue","isSetString","isUndefined","usePowerlinesSafe","TSDoc","props","children","heading","_$createIntrinsic","string","_$createComponent","when","_$memo","length","TSDocTag","tag","Boolean","width","TSDocParams","parameters","normalizeParametersForDoc","each","param","TSDocParam","name","optional","doc","some","p","TSDocTitle","rest","_$mergeProps","TSDocDomain","TSDocAlias","TSDocPermission","TSDocDefaultValue","type","defaultValue","TSDocRemarks","hardline","TSDocLink","TSDocExample","tsx","fenced","language","TSDocReadonly","TSDocInternal","TSDocIgnore","TSDocHidden","TSDocAttributesTags","title","alias","permission","domain","readonly","internal","ignore","hidden","trim","a","filter","TSDocParamName","TSDocParamDescription","TSDocReturns","TSDocThrows","TSDocModule","prefix","context","config","framework"],"sources":["../src/typescript/components/tsdoc.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 {\n Children,\n childrenArray,\n For,\n List,\n Prose,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport { JSDocExampleProps, ParameterDescriptor } from \"@alloy-js/typescript\";\nimport { stringifyDefaultValue } from \"@powerlines/deepkit/utilities\";\nimport {\n ReflectionKind,\n ReflectionParameter,\n ReflectionProperty\n} from \"@powerlines/deepkit/vendor/type\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { ComponentProps } from \"../../types/components\";\n\nexport interface TSDocProps extends ComponentProps {\n heading?: Children;\n}\n\n/**\n * Generates a TypeScript interface for the given reflection class.\n */\nexport function TSDoc(props: TSDocProps) {\n const [{ children, heading }] = splitProps(props, [\"children\", \"heading\"]);\n\n return (\n <>\n /**\n <align string=\" * \">\n <hbr />\n <Show when={!isUndefined(heading)}>\n {heading}\n <hbr />\n <Show\n when={\n !isUndefined(children) && childrenArray(() => children).length > 0\n }>\n <hbr />\n </Show>\n </Show>\n <Show\n when={\n !isUndefined(children) && childrenArray(() => children).length > 0\n }>\n <List>{childrenArray(() => children)}</List>\n </Show>\n </align>\n <hbr />\n {` */`}\n <hbr />\n </>\n );\n}\n\nexport interface TSDocTagProps extends ComponentProps {\n tag: string;\n}\n\n/**\n * Create a TSDoc `@<props.tag>` tag.\n */\nexport function TSDocTag(props: TSDocTagProps) {\n const [{ children, tag }] = splitProps(props, [\"children\", \"tag\"]);\n\n return (\n <>\n {`@${tag} `}\n <Show when={Boolean(children)}>\n <align width={2}>\n <Prose>{children}</Prose>\n </align>\n </Show>\n <hbr />\n </>\n );\n}\n\nexport interface TSDocParamsProps {\n parameters: ParameterDescriptor[] | string[];\n}\n\n/**\n * A component that creates a TSDoc block with `@param` tags for each parameter.\n */\nexport function TSDocParams(props: TSDocParamsProps) {\n const parameters = normalizeParametersForDoc(props.parameters);\n\n return (\n <For each={parameters}>\n {param => (\n <TSDocParam name={param.name} optional={param.optional}>\n {param.doc}\n </TSDocParam>\n )}\n </For>\n );\n}\n\nfunction normalizeParametersForDoc(\n parameters: ParameterDescriptor[] | string[]\n): ParameterDescriptor[] {\n if (parameters.some(p => typeof p === \"string\")) {\n return [];\n }\n\n return parameters as ParameterDescriptor[];\n}\n\n/**\n * Create a TSDoc `@title` tag.\n */\nexport function TSDocTitle(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"title\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@domain` tag.\n */\nexport function TSDocDomain(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"domain\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@alias` tag.\n */\nexport function TSDocAlias(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"alias\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@permission` tag.\n */\nexport function TSDocPermission(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"permission\">\n {children}\n </TSDocTag>\n );\n}\n\nexport interface TSDocDefaultValueProps extends ComponentProps {\n type: ReflectionKind | ReflectionProperty | ReflectionParameter;\n defaultValue: any;\n}\n\n/**\n * Create a TSDoc `@defaultValue` tag.\n */\nexport function TSDocDefaultValue(props: TSDocDefaultValueProps) {\n const [{ type, defaultValue }] = splitProps(props, [\"type\", \"defaultValue\"]);\n\n return (\n <>\n {\"@defaultValue \"}\n <Show when={!isUndefined(defaultValue)}>\n <align width={2}>\n <Prose>{stringifyDefaultValue(type, defaultValue)}</Prose>\n </align>\n </Show>\n <hbr />\n </>\n );\n}\n\n/**\n * Create a TSDoc `@remarks` tag.\n */\nexport function TSDocRemarks(props: ComponentProps) {\n return (\n <>\n {\"@remarks \"}\n <hbr />\n <List hardline={true}>{childrenArray(() => props.children)}</List>\n </>\n );\n}\n\n/**\n * Create a TSDoc `@see` tag.\n */\nexport function TSDocLink(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"see\" />;\n}\n\nexport interface TSDocExampleProps extends JSDocExampleProps {\n /**\n * Whether the file is a TSX file.\n *\n * @defaultValue false\n */\n tsx?: boolean;\n}\n\n/**\n * Create a TSDoc `@example` tag.\n */\nexport function TSDocExample(props: TSDocExampleProps) {\n const [{ tsx, fenced = true, language, children }] = splitProps(props, [\n \"tsx\",\n \"fenced\",\n \"language\",\n \"children\"\n ]);\n\n return (\n <>\n {\"@example \"}\n <hbr />\n <Show when={fenced}>\n ```{language || (tsx ? \"tsx\" : \"ts\")}\n <hbr />\n </Show>\n {children}\n <Show when={fenced}>\n <hbr />\n ```\n </Show>\n </>\n );\n}\n\n/**\n * Create a TSDoc `@readonly` tag.\n */\nexport function TSDocReadonly() {\n return <TSDocTag tag=\"readonly\" />;\n}\n\n/**\n * Create a TSDoc `@internal` tag.\n */\nexport function TSDocInternal() {\n return <TSDocTag tag=\"internal\" />;\n}\n\n/**\n * Create a TSDoc `@ignore` tag.\n */\nexport function TSDocIgnore() {\n return <TSDocTag tag=\"ignore\" />;\n}\n\n/**\n * Create a TSDoc `@hidden` tag.\n */\nexport function TSDocHidden() {\n return <TSDocTag tag=\"hidden\" />;\n}\n\nexport interface TSDocAttributesTagsProps {\n type?: ReflectionKind | ReflectionProperty | ReflectionParameter;\n title?: string;\n alias?: string[];\n permission?: string[];\n domain?: string;\n readonly?: boolean;\n internal?: boolean;\n ignore?: boolean;\n hidden?: boolean;\n defaultValue?: any;\n}\n\n/**\n * Generates a TypeScript interface property for the given reflection class.\n */\nexport function TSDocAttributesTags(props: TSDocAttributesTagsProps) {\n const [\n {\n type,\n title,\n alias,\n permission,\n domain,\n readonly,\n internal,\n ignore,\n hidden,\n defaultValue\n }\n ] = splitProps(props, [\n \"type\",\n \"title\",\n \"alias\",\n \"permission\",\n \"domain\",\n \"readonly\",\n \"internal\",\n \"ignore\",\n \"hidden\",\n \"defaultValue\"\n ]);\n\n return (\n <>\n <Show when={isSetString(title?.trim())}>\n <TSDocTitle>{title}</TSDocTitle>\n </Show>\n <Show\n when={\n !isUndefined(alias) &&\n alias.length > 0 &&\n alias.some(a => isSetString(a?.trim()))\n }>\n <For each={alias?.filter(a => isSetString(a?.trim())) ?? []}>\n {alias => <TSDocAlias>{alias}</TSDocAlias>}\n </For>\n </Show>\n <Show when={isSetString(domain?.trim())}>\n <TSDocDomain>{domain}</TSDocDomain>\n </Show>\n <Show\n when={\n !isUndefined(permission) &&\n permission.length > 0 &&\n permission.some(p => isSetString(p?.trim()))\n }>\n <For each={permission?.filter(p => isSetString(p?.trim())) ?? []}>\n {permission => <TSDocPermission>{permission}</TSDocPermission>}\n </For>\n </Show>\n <Show when={readonly === true}>\n <TSDocReadonly />\n </Show>\n <Show when={internal === true}>\n <TSDocInternal />\n </Show>\n <Show when={ignore === true}>\n <TSDocIgnore />\n </Show>\n <Show when={hidden === true}>\n <TSDocHidden />\n </Show>\n <Show when={!isUndefined(type) && !isUndefined(defaultValue)}>\n <TSDocDefaultValue\n type={\n type as ReflectionKind | ReflectionProperty | ReflectionParameter\n }\n defaultValue={defaultValue}\n />\n </Show>\n </>\n );\n}\n\nexport interface TSDocParamProps {\n name: Children;\n children?: Children;\n optional?: boolean;\n defaultValue?: Children;\n}\n\n/**\n * Create a TSDoc parameter set off with `@param`.\n */\nexport function TSDocParam(props: TSDocParamProps) {\n return (\n <>\n {\"@param \"}\n <TSDocParamName\n name={props.name}\n optional={props.optional}\n defaultValue={props.defaultValue}\n />\n <TSDocParamDescription children={props.children} />\n </>\n );\n}\n\ninterface TSDocParamNameProps {\n name: Children;\n optional?: boolean;\n defaultValue?: Children;\n}\n\nfunction TSDocParamName(props: TSDocParamNameProps) {\n return (\n <>\n <Show when={props.optional}>{\"[\"}</Show>\n {props.name}\n <Show when={Boolean(props.defaultValue)}>={props.defaultValue}</Show>\n <Show when={props.optional}>{\"]\"}</Show>\n </>\n );\n}\n\ninterface TSDocParamDescriptionProps {\n children?: Children;\n}\n\nfunction TSDocParamDescription(props: TSDocParamDescriptionProps) {\n return (\n <Show when={Boolean(props.children)}>\n {\" - \"}\n <align width={2}>\n <Prose>{props.children}</Prose>\n </align>\n </Show>\n );\n}\n\n/**\n * Create a TSDoc `@returns` tag.\n */\nexport function TSDocReturns(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"returns\" />;\n}\n\n/**\n * Create a TSDoc `@throws` tag.\n */\nexport function TSDocThrows(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"throws\" />;\n}\n\nexport interface TSDocModuleProps extends ComponentProps {\n /**\n * The prefix for the builtin module name\n *\n * @remarks\n * This value is populated from the Powerlines configuration output builtin prefix by default.\n *\n * @example\n * ```ts\n * /**\n * @module powerlines:my-module\n * \\/\n * ```\n */\n prefix?: string;\n\n /**\n * The name of the module\n *\n * @remarks\n * This will be used in the `@module` tag as well as the import path for the module, e.g. `storm:<name>`.\n *\n * @example\n * ```ts\n * import { MyModule } from \"powerlines:my-module\";\n * ```\n */\n name: Children;\n}\n\n/**\n * Generates a TSDoc `@module` tag for the given module name.\n */\nexport function TSDocModule(props: TSDocModuleProps) {\n const [{ children, name, prefix }] = splitProps(props, [\n \"children\",\n \"name\",\n \"prefix\"\n ]);\n\n const context = usePowerlinesSafe();\n\n return (\n <>\n /**\n <align string=\" * \">\n <hbr />\n <Show when={Boolean(children)}>\n <List hardline={true}>{childrenArray(() => children)}</List>\n <hbr />\n <hbr />\n </Show>\n {\"@module \"}\n {prefix || context?.config?.framework || \"powerlines\"}:{name}\n </align>\n <hbr />\n {` */`}\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;SA+GE,MAAA,OAAA;UAAA,UAAA,aAAA,WAAA,OAAA,CAAA,YAAA,UAAA,CAAA;;;;;;;;;;mCAgBA;;MAAA,IAAA,WAAA;AAAA,cAAA;;QAAA,gBAAA,OAAA,EAAA,CAAA;QAAA,sBAAA;SAAA,IAAA,OAAA;AAAA,iBAAA,WAAA,CAAA,CAAA,CAAA,YAAA,SAAA,CAAA,EAAA,IAAA,oBAAA,SAAA,CAAA,SAAA;;SAAA,IAAA,WAAA;AAAA,iBAAA,gBAAA,OAAA,EAAA,CAAA;;SAAA,CAAA;QAAA;;MAAA,CAAA;KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAiHc+C;;;;;;;;;;oBA6Bd/B,OAAAA;OAAAA,CAAAA,EAAAA,YAAAA,QAAAA,WAAAA,OAAAA,CAAAA,WAAAA,CAAAA;AAAAA,QAAAA;;;;;;;;gCAqBoB;OAAA,CAAA,EAAA,YAAA,QAAA,WAAA,OAAA,CAAA,WAAA,CAAA;wBAAA,UAAA,WAAA,MAAA;EAAA,KAAA;EAAA;EAAA,CAAA,CAAA;;;;;;;;;kBAgDsB,MAAA;GAAA,IAAA,OAAA;AAAA,WAAA,CAAA,YAAA,aAAA;;GAAA,IAAA,WAAA;AAAA,WAAA,gBAAA,SAAA;KAAA,OAAA;KAAA,IAAA,WAAA;AAAA,aAAA,gBAAA,OAAA,EAAA,IAAA,WAAA;AAAA,cAAA,sBAAA,MAAA,aAAA;SAAA,CAAA;;KAAA,CAAA;;GAAA,CAAA;EAAA,gBAAA,OAAA,EAAA,CAAA;EAAA;;;;;;;;;kBA6BjC,MAAA;GAAA,UAAA;GAAA,IAAA,WAAA;AAAA,WAAA,oBAAA,MAAA,SAAA;;GAAA,CAAA;EAAA;;;;;;;;;;;SA8BX,aAAA,OAAA;OAAA,CAAA,EAAA,KAAA,SAAA,MAAA,UAAA,cAAA,WAAA,OAAA;EAAA;;;;;;EAOgB;EAAA,gBAAA,OAAA,EAAA,CAAA;EAAA;;;;;;;;;;;kBAAQe,MAAAA;GAAAA,MAAAA;GAAAA,IAAAA,WAAAA;AAAAA,WAAAA,CAAAA,gBAAAA,OAAAA,EAAAA,CAAAA,EAAAA,MAAAA;;GAAAA,CAAAA;EAAAA;;;;;;;;;;;SAuBxB,gBAAA;wBAAA,UAAA,EAAA,KAAA,YAAA,CAAA;;;;;SAAA,cAAA;wBAAA,UAAA,EAAA,KAAA,UAAA,CAAA;;;;;;;;;;;SAmBA,oBAAA,OAAA;CAAA,MAAA,CAAA,EAAA,MAAA,OAAA,OAAA,oBAAA,UAAA,UAAA;;;;;;;;;EAMA;EAAA;;;;;;;;;;;;OAoCA,OAAA;AAAA,WAAA,WAAA,CAAA,EAAA,CAAA,YAAA"}
|
|
1
|
+
{"version":3,"file":"tsdoc-DB1Qzwsn.mjs","names":["childrenArray","For","List","Prose","Show","splitProps","stringifyDefaultValue","isSetString","isUndefined","usePowerlinesSafe","TSDoc","props","children","heading","_$createIntrinsic","string","_$createComponent","when","_$memo","length","TSDocTag","tag","Boolean","width","TSDocParams","parameters","normalizeParametersForDoc","each","param","TSDocParam","name","optional","doc","some","p","TSDocTitle","rest","_$mergeProps","TSDocDomain","TSDocAlias","TSDocPermission","TSDocDefaultValue","type","defaultValue","TSDocRemarks","hardline","TSDocLink","TSDocExample","tsx","fenced","language","TSDocReadonly","TSDocInternal","TSDocIgnore","TSDocHidden","TSDocAttributesTags","title","alias","permission","domain","readonly","internal","ignore","hidden","trim","a","filter","TSDocParamName","TSDocParamDescription","TSDocReturns","TSDocThrows","TSDocModule","prefix","context","config","framework"],"sources":["../src/typescript/components/tsdoc.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 {\n Children,\n childrenArray,\n For,\n List,\n Prose,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport { JSDocExampleProps, ParameterDescriptor } from \"@alloy-js/typescript\";\nimport { stringifyDefaultValue } from \"@powerlines/deepkit/utilities\";\nimport {\n ReflectionKind,\n ReflectionParameter,\n ReflectionProperty\n} from \"@powerlines/deepkit/vendor/type\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { ComponentProps } from \"../../types/components\";\n\nexport interface TSDocProps extends ComponentProps {\n heading?: Children;\n}\n\n/**\n * Generates a TypeScript interface for the given reflection class.\n */\nexport function TSDoc(props: TSDocProps) {\n const [{ children, heading }] = splitProps(props, [\"children\", \"heading\"]);\n\n return (\n <>\n /**\n <align string=\" * \">\n <hbr />\n <Show when={!isUndefined(heading)}>\n {heading}\n <hbr />\n <Show\n when={\n !isUndefined(children) && childrenArray(() => children).length > 0\n }>\n <hbr />\n </Show>\n </Show>\n <Show\n when={\n !isUndefined(children) && childrenArray(() => children).length > 0\n }>\n <List>{childrenArray(() => children)}</List>\n </Show>\n </align>\n <hbr />\n {` */`}\n <hbr />\n </>\n );\n}\n\nexport interface TSDocTagProps extends ComponentProps {\n tag: string;\n}\n\n/**\n * Create a TSDoc `@<props.tag>` tag.\n */\nexport function TSDocTag(props: TSDocTagProps) {\n const [{ children, tag }] = splitProps(props, [\"children\", \"tag\"]);\n\n return (\n <>\n {`@${tag} `}\n <Show when={Boolean(children)}>\n <align width={2}>\n <Prose>{children}</Prose>\n </align>\n </Show>\n <hbr />\n </>\n );\n}\n\nexport interface TSDocParamsProps {\n parameters: ParameterDescriptor[] | string[];\n}\n\n/**\n * A component that creates a TSDoc block with `@param` tags for each parameter.\n */\nexport function TSDocParams(props: TSDocParamsProps) {\n const parameters = normalizeParametersForDoc(props.parameters);\n\n return (\n <For each={parameters}>\n {param => (\n <TSDocParam name={param.name} optional={param.optional}>\n {param.doc}\n </TSDocParam>\n )}\n </For>\n );\n}\n\nfunction normalizeParametersForDoc(\n parameters: ParameterDescriptor[] | string[]\n): ParameterDescriptor[] {\n if (parameters.some(p => typeof p === \"string\")) {\n return [];\n }\n\n return parameters as ParameterDescriptor[];\n}\n\n/**\n * Create a TSDoc `@title` tag.\n */\nexport function TSDocTitle(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"title\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@domain` tag.\n */\nexport function TSDocDomain(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"domain\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@alias` tag.\n */\nexport function TSDocAlias(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"alias\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@permission` tag.\n */\nexport function TSDocPermission(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"permission\">\n {children}\n </TSDocTag>\n );\n}\n\nexport interface TSDocDefaultValueProps extends ComponentProps {\n type: ReflectionKind | ReflectionProperty | ReflectionParameter;\n defaultValue: any;\n}\n\n/**\n * Create a TSDoc `@defaultValue` tag.\n */\nexport function TSDocDefaultValue(props: TSDocDefaultValueProps) {\n const [{ type, defaultValue }] = splitProps(props, [\"type\", \"defaultValue\"]);\n\n return (\n <>\n {\"@defaultValue \"}\n <Show when={!isUndefined(defaultValue)}>\n <align width={2}>\n <Prose>{stringifyDefaultValue(type, defaultValue)}</Prose>\n </align>\n </Show>\n <hbr />\n </>\n );\n}\n\n/**\n * Create a TSDoc `@remarks` tag.\n */\nexport function TSDocRemarks(props: ComponentProps) {\n return (\n <>\n {\"@remarks \"}\n <hbr />\n <List hardline={true}>{childrenArray(() => props.children)}</List>\n </>\n );\n}\n\n/**\n * Create a TSDoc `@see` tag.\n */\nexport function TSDocLink(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"see\" />;\n}\n\nexport interface TSDocExampleProps extends JSDocExampleProps {\n /**\n * Whether the file is a TSX file.\n *\n * @defaultValue false\n */\n tsx?: boolean;\n}\n\n/**\n * Create a TSDoc `@example` tag.\n */\nexport function TSDocExample(props: TSDocExampleProps) {\n const [{ tsx, fenced = true, language, children }] = splitProps(props, [\n \"tsx\",\n \"fenced\",\n \"language\",\n \"children\"\n ]);\n\n return (\n <>\n {\"@example \"}\n <hbr />\n <Show when={fenced}>\n ```{language || (tsx ? \"tsx\" : \"ts\")}\n <hbr />\n </Show>\n {children}\n <Show when={fenced}>\n <hbr />\n ```\n </Show>\n </>\n );\n}\n\n/**\n * Create a TSDoc `@readonly` tag.\n */\nexport function TSDocReadonly() {\n return <TSDocTag tag=\"readonly\" />;\n}\n\n/**\n * Create a TSDoc `@internal` tag.\n */\nexport function TSDocInternal() {\n return <TSDocTag tag=\"internal\" />;\n}\n\n/**\n * Create a TSDoc `@ignore` tag.\n */\nexport function TSDocIgnore() {\n return <TSDocTag tag=\"ignore\" />;\n}\n\n/**\n * Create a TSDoc `@hidden` tag.\n */\nexport function TSDocHidden() {\n return <TSDocTag tag=\"hidden\" />;\n}\n\nexport interface TSDocAttributesTagsProps {\n type?: ReflectionKind | ReflectionProperty | ReflectionParameter;\n title?: string;\n alias?: string[];\n permission?: string[];\n domain?: string;\n readonly?: boolean;\n internal?: boolean;\n ignore?: boolean;\n hidden?: boolean;\n defaultValue?: any;\n}\n\n/**\n * Generates a TypeScript interface property for the given reflection class.\n */\nexport function TSDocAttributesTags(props: TSDocAttributesTagsProps) {\n const [\n {\n type,\n title,\n alias,\n permission,\n domain,\n readonly,\n internal,\n ignore,\n hidden,\n defaultValue\n }\n ] = splitProps(props, [\n \"type\",\n \"title\",\n \"alias\",\n \"permission\",\n \"domain\",\n \"readonly\",\n \"internal\",\n \"ignore\",\n \"hidden\",\n \"defaultValue\"\n ]);\n\n return (\n <>\n <Show when={isSetString(title?.trim())}>\n <TSDocTitle>{title}</TSDocTitle>\n </Show>\n <Show\n when={\n !isUndefined(alias) &&\n alias.length > 0 &&\n alias.some(a => isSetString(a?.trim()))\n }>\n <For each={alias?.filter(a => isSetString(a?.trim())) ?? []}>\n {alias => <TSDocAlias>{alias}</TSDocAlias>}\n </For>\n </Show>\n <Show when={isSetString(domain?.trim())}>\n <TSDocDomain>{domain}</TSDocDomain>\n </Show>\n <Show\n when={\n !isUndefined(permission) &&\n permission.length > 0 &&\n permission.some(p => isSetString(p?.trim()))\n }>\n <For each={permission?.filter(p => isSetString(p?.trim())) ?? []}>\n {permission => <TSDocPermission>{permission}</TSDocPermission>}\n </For>\n </Show>\n <Show when={readonly === true}>\n <TSDocReadonly />\n </Show>\n <Show when={internal === true}>\n <TSDocInternal />\n </Show>\n <Show when={ignore === true}>\n <TSDocIgnore />\n </Show>\n <Show when={hidden === true}>\n <TSDocHidden />\n </Show>\n <Show when={!isUndefined(type) && !isUndefined(defaultValue)}>\n <TSDocDefaultValue\n type={\n type as ReflectionKind | ReflectionProperty | ReflectionParameter\n }\n defaultValue={defaultValue}\n />\n </Show>\n </>\n );\n}\n\nexport interface TSDocParamProps {\n name: Children;\n children?: Children;\n optional?: boolean;\n defaultValue?: Children;\n}\n\n/**\n * Create a TSDoc parameter set off with `@param`.\n */\nexport function TSDocParam(props: TSDocParamProps) {\n return (\n <>\n {\"@param \"}\n <TSDocParamName\n name={props.name}\n optional={props.optional}\n defaultValue={props.defaultValue}\n />\n <TSDocParamDescription children={props.children} />\n </>\n );\n}\n\ninterface TSDocParamNameProps {\n name: Children;\n optional?: boolean;\n defaultValue?: Children;\n}\n\nfunction TSDocParamName(props: TSDocParamNameProps) {\n return (\n <>\n <Show when={props.optional}>{\"[\"}</Show>\n {props.name}\n <Show when={Boolean(props.defaultValue)}>={props.defaultValue}</Show>\n <Show when={props.optional}>{\"]\"}</Show>\n </>\n );\n}\n\ninterface TSDocParamDescriptionProps {\n children?: Children;\n}\n\nfunction TSDocParamDescription(props: TSDocParamDescriptionProps) {\n return (\n <Show when={Boolean(props.children)}>\n {\" - \"}\n <align width={2}>\n <Prose>{props.children}</Prose>\n </align>\n </Show>\n );\n}\n\n/**\n * Create a TSDoc `@returns` tag.\n */\nexport function TSDocReturns(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"returns\" />;\n}\n\n/**\n * Create a TSDoc `@throws` tag.\n */\nexport function TSDocThrows(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"throws\" />;\n}\n\nexport interface TSDocModuleProps extends ComponentProps {\n /**\n * The prefix for the builtin module name\n *\n * @remarks\n * This value is populated from the Powerlines configuration output builtin prefix by default.\n *\n * @example\n * ```ts\n * /**\n * @module powerlines:my-module\n * \\/\n * ```\n */\n prefix?: string;\n\n /**\n * The name of the module\n *\n * @remarks\n * This will be used in the `@module` tag as well as the import path for the module, e.g. `storm:<name>`.\n *\n * @example\n * ```ts\n * import { MyModule } from \"powerlines:my-module\";\n * ```\n */\n name: Children;\n}\n\n/**\n * Generates a TSDoc `@module` tag for the given module name.\n */\nexport function TSDocModule(props: TSDocModuleProps) {\n const [{ children, name, prefix }] = splitProps(props, [\n \"children\",\n \"name\",\n \"prefix\"\n ]);\n\n const context = usePowerlinesSafe();\n\n return (\n <>\n /**\n <align string=\" * \">\n <hbr />\n <Show when={Boolean(children)}>\n <List hardline={true}>{childrenArray(() => children)}</List>\n <hbr />\n <hbr />\n </Show>\n {\"@module \"}\n {prefix || context?.config?.framework || \"powerlines\"}:{name}\n </align>\n <hbr />\n {` */`}\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;SA+GE,MAAA,OAAA;UAAA,UAAA,aAAA,WAAA,OAAA,CAAA,YAAA,UAAA,CAAA;;;;;;;;;;mCAgBA;;MAAA,IAAA,WAAA;AAAA,cAAA;;QAAA,gBAAA,OAAA,EAAA,CAAA;QAAA,sBAAA;SAAA,IAAA,OAAA;AAAA,iBAAA,WAAA,CAAA,CAAA,CAAA,YAAA,SAAA,CAAA,EAAA,IAAA,oBAAA,SAAA,CAAA,SAAA;;SAAA,IAAA,WAAA;AAAA,iBAAA,gBAAA,OAAA,EAAA,CAAA;;SAAA,CAAA;QAAA;;MAAA,CAAA;KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAiHc+C;;;;;;;;;;oBA6Bd/B,OAAAA;OAAAA,CAAAA,EAAAA,YAAAA,QAAAA,WAAAA,OAAAA,CAAAA,WAAAA,CAAAA;AAAAA,QAAAA;;;;;;;;gCAqBoB;OAAA,CAAA,EAAA,YAAA,QAAA,WAAA,OAAA,CAAA,WAAA,CAAA;wBAAA,UAAA,WAAA,MAAA;EAAA,KAAA;EAAA;EAAA,CAAA,CAAA;;;;;;;;;kBAgDsB,MAAA;GAAA,IAAA,OAAA;AAAA,WAAA,CAAA,YAAA,aAAA;;GAAA,IAAA,WAAA;AAAA,WAAA,gBAAA,SAAA;KAAA,OAAA;KAAA,IAAA,WAAA;AAAA,aAAA,gBAAA,OAAA,EAAA,IAAA,WAAA;AAAA,cAAA,sBAAA,MAAA,aAAA;SAAA,CAAA;;KAAA,CAAA;;GAAA,CAAA;EAAA,gBAAA,OAAA,EAAA,CAAA;EAAA;;;;;;;;;kBA6BjC,MAAA;GAAA,UAAA;GAAA,IAAA,WAAA;AAAA,WAAA,oBAAA,MAAA,SAAA;;GAAA,CAAA;EAAA;;;;;;;;;;;SA8BX,aAAA,OAAA;OAAA,CAAA,EAAA,KAAA,SAAA,MAAA,UAAA,cAAA,WAAA,OAAA;EAAA;;;;;;EAOgB;EAAA,gBAAA,OAAA,EAAA,CAAA;EAAA;;;;;;;;;;;kBAAQe,MAAAA;GAAAA,MAAAA;GAAAA,IAAAA,WAAAA;AAAAA,WAAAA,CAAAA,gBAAAA,OAAAA,EAAAA,CAAAA,EAAAA,MAAAA;;GAAAA,CAAAA;EAAAA;;;;;;;;;;;SAuBxB,gBAAA;wBAAA,UAAA,EAAA,KAAA,YAAA,CAAA;;;;;SAAA,cAAA;wBAAA,UAAA,EAAA,KAAA,UAAA,CAAA;;;;;;;;;;;SAmBA,oBAAA,OAAA;CAAA,MAAA,CAAA,EAAA,MAAA,OAAA,OAAA,oBAAA,UAAA,UAAA;;;;;;;;;EAMA;EAAA;;;;;;;;;;;;OAoCA,OAAA;AAAA,WAAA,WAAA,CAAA,EAAA,CAAA,YAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as useReflectionClass, c as useReflectionProperty, o as useReflectionMethod } from "./reflection-
|
|
2
|
-
import { r as TSDocAttributesTags, t as TSDoc } from "./tsdoc-
|
|
1
|
+
import { a as useReflectionClass, c as useReflectionProperty, o as useReflectionMethod } from "./reflection-Btb1NqwS.mjs";
|
|
2
|
+
import { r as TSDocAttributesTags, t as TSDoc } from "./tsdoc-DB1Qzwsn.mjs";
|
|
3
3
|
import { createComponent, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
4
4
|
import { List, Show, childrenArray, code, computed, splitProps } from "@alloy-js/core";
|
|
5
5
|
import { titleCase } from "@stryke/string-format/title-case";
|
|
@@ -173,4 +173,4 @@ function TSDocReflectionMethod(props) {
|
|
|
173
173
|
|
|
174
174
|
//#endregion
|
|
175
175
|
export { TSDocReflectionMethod as n, TSDocReflectionProperty as r, TSDocReflectionClass as t };
|
|
176
|
-
//# sourceMappingURL=tsdoc-reflection-
|
|
176
|
+
//# sourceMappingURL=tsdoc-reflection-BcTrWAwt.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsdoc-reflection-
|
|
1
|
+
{"version":3,"file":"tsdoc-reflection-BcTrWAwt.mjs","names":["childrenArray","code","computed","List","Show","splitProps","titleCase","isSetString","isString","isUndefined","useReflectionClass","useReflectionMethod","useReflectionProperty","TSDoc","TSDocAttributesTags","TSDocReflectionClass","props","children","heading","rest","reflectionClass","title","reflection","getTitle","getName","computedHeading","getDescription","value","alias","getAlias","domain","getDomain","permission","getPermission","readonly","isReadonly","internal","isInternal","ignore","isIgnored","hidden","isHidden","trim","_$createComponent","_$mergeProps","_$memo","when","length","Boolean","TSDocReflectionProperty","context","type","defaultValue","getDefaultValue","TSDocReflectionMethod","String","undefined"],"sources":["../src/typescript/components/tsdoc-reflection.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 {\n childrenArray,\n code,\n computed,\n List,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport {\n useReflectionClass,\n useReflectionMethod,\n useReflectionProperty\n} from \"../../core/contexts/reflection\";\nimport { TSDoc, TSDocAttributesTags, TSDocProps } from \"./tsdoc\";\n\n/**\n * Generates a TypeScript interface property for the given reflection class.\n */\nexport function TSDocReflectionClass<\n T extends Record<string, any> = Record<string, any>\n>(props: TSDocProps) {\n const [{ children, heading }, rest] = splitProps(props, [\n \"heading\",\n \"children\"\n ]);\n\n const reflectionClass = useReflectionClass<T>();\n\n const title = computed(\n () =>\n reflectionClass.reflection.getTitle() ||\n titleCase(reflectionClass.reflection.getName())\n );\n const computedHeading = computed(\n () => heading || reflectionClass.reflection.getDescription() || title.value\n );\n\n const alias = computed(() => reflectionClass.reflection.getAlias());\n const domain = computed(() => reflectionClass.reflection.getDomain());\n const permission = computed(() => reflectionClass.reflection.getPermission());\n const readonly = computed(() => reflectionClass.reflection.isReadonly());\n const internal = computed(() => reflectionClass.reflection.isInternal());\n const ignore = computed(() => reflectionClass.reflection.isIgnored());\n const hidden = computed(() => reflectionClass.reflection.isHidden());\n\n if (\n !computedHeading.value ||\n (isSetString(computedHeading.value) && computedHeading.value.trim() === \"\")\n ) {\n return null;\n }\n\n return (\n <TSDoc\n {...rest}\n heading={\n isSetString(computedHeading.value)\n ? computedHeading.value.trim()\n : computedHeading.value\n }>\n <Show\n when={\n isSetString(title.value) ||\n (!isUndefined(alias.value) && alias.value.length > 0) ||\n (!isUndefined(permission.value) && permission.value.length > 0) ||\n isSetString(domain.value) ||\n !isUndefined(readonly.value) ||\n !isUndefined(internal.value) ||\n !isUndefined(ignore.value) ||\n !isUndefined(hidden.value)\n }>\n <TSDocAttributesTags\n title={title.value}\n alias={alias.value}\n domain={domain.value}\n permission={permission.value}\n readonly={readonly.value}\n internal={internal.value}\n ignore={ignore.value}\n hidden={hidden.value}\n />\n </Show>\n <Show\n when={Boolean(children) && childrenArray(() => children).length > 0}>\n <List>{childrenArray(() => children)}</List>\n </Show>\n </TSDoc>\n );\n}\n\n/**\n * Generates a TypeScript interface property for the given reflection class.\n */\nexport function TSDocReflectionProperty(props: TSDocProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n const context = useReflectionProperty();\n\n return (\n <TSDoc heading={context.getDescription()} {...rest}>\n <TSDocAttributesTags\n type={context}\n title={context.getTitle()}\n alias={context.getAlias()}\n domain={context.getDomain()}\n permission={context.getPermission()}\n readonly={context.isReadonly()}\n internal={context.isInternal()}\n ignore={context.isIgnored()}\n hidden={context.isHidden()}\n defaultValue={context.getDefaultValue()}\n />\n <Show\n when={Boolean(children) && childrenArray(() => children).length > 0}>\n <List>{childrenArray(() => children)}</List>\n </Show>\n </TSDoc>\n );\n}\n\n/**\n * Generates a TypeScript interface property for the given reflection class.\n */\nexport function TSDocReflectionMethod(props: TSDocProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n const context = useReflectionMethod();\n\n return (\n <TSDoc\n heading={\n context.getDescription() ||\n (isString(context.getName())\n ? code`${String(context.getName())} method definition`\n : undefined)\n }\n {...rest}>\n <TSDocAttributesTags\n title={context.getTitle()}\n alias={context.getAlias()}\n domain={context.getDomain()}\n permission={context.getPermission()}\n readonly={context.isReadonly()}\n internal={context.isInternal()}\n ignore={context.isIgnored()}\n hidden={context.isHidden()}\n />\n <Show\n when={Boolean(children) && childrenArray(() => children).length > 0}>\n <List>{childrenArray(() => children)}</List>\n </Show>\n </TSDoc>\n );\n}\n"],"mappings":";;;;;;;;;;;;;qCA2HQmD;oBAAAA,WAAAA,QAAAA,WAAAA,OAAAA;;;wCAEyB,WAAA,gBAAA,WAAA,gBAAA,IAAA,MAAA;eAAA,eAAA,gBAAA,WAAA,UAAA,CAAA;gBAAA,eAAA,gBAAA,WAAA,WAAA,CAAA;oBAAA,eAAA,gBAAA,WAAA,eAAA,CAAA;kBAAA,eAAA,gBAAA,WAAA,YAAA,CAAA;kBAAA,eAAA,gBAAA,WAAA,YAAA,CAAA;gBAAA,eAAA,gBAAA,WAAA,WAAA,CAAA;gBAAA,eAAA,gBAAA,WAAA,UAAA,CAAA;sBAAA,qBAAA,gBAAA,MAAA,IAAA,gBAAA,MAAA,MAAA,KAAA;;;;;;;;2DACE,MAAA,IAAA,MAAA,MAAA,SAAA,KAAA,CAAA,YAAA,WAAA,MAAA,IAAA,WAAA,MAAA,SAAA,KAAA,YAAA,OAAA,MAAA,IAAA,CAAA,YAAA,SAAA,MAAA,IAAA,CAAA,YAAA,SAAA,MAAA,IAAA,CAAA,YAAA,OAAA,MAAA,iBAAA,OAAA,MAAA;;IAAA,IAAA,WAAA;AAAA,YAAA,qCAAA;MAAA,IAAA,QAAA;AAAA,cAAA,MAAA;;MAAA,IAAA,QAAA;AAAA,cAAA,MAAA;;MAAA,IAAA,SAAA;AAAA,cAAA,OAAA;;MAAA,IAAA,aAAA;AAAA,cAAA,WAAA;;MAAA,IAAA,WAAA;AAAA,cAAA,SAAA;;MAAA;;;;;;;;;;;uBACjB,MAAA;IAAA,IAAA,OAAA;AAAA,YAAA,WAAA,CAAA,CAAA,QAAA,SAAA,CAAA,EAAA,IAAA,oBAAA,SAAA,CAAA,SAAA;;IAAA,IAAA,WAAA;AAAA,YAAA,gBAAA,MAAA,EAAA,IAAA,WAAA;AAAA,aAAA,oBAAA,SAAA;QAAA,CAAA;;IAAA,CAAA,CAAA;;EAAA,CAAA,CAAA;;;;;SAAED,+BAAAA;OAAAA,CAAAA,EAAAA;wCAAAA;+BAAAA,WAAAA,EAAAA,IAAAA,UAAAA;AAAAA,SAAAA,QAAAA,gBAAAA;IAAAA,EAAAA,MAAAA,EAAAA,IAAAA,WAAAA;AAAAA,SAAAA,CAAAA,qCAAAA;GAAAA,MAAAA;;6BAAAA;;GAAAA,IAAAA,QAAAA;AAAAA,WAAAA,QAAAA,UAAAA;;GAAAA,IAAAA;mBAAAA,WAAAA;;GAAAA,iBAAAA;AAAAA,WAAAA,QAAQjB,eAAe;;GAAA,IAAA,WAAA;AAAA,WAAA,QAAA,YAAA;;GAAA,IAAA,WAAA;AAAA,WAAA,QAAA,YAAA;;GAAA,aAAA;AAAA,WAAA,QAAA,WAAA;;GAAA,IAAA,SAAA;AAAA,WAAA,QAAA,UAAA;;GAAA,IAAA,eAAA;AAAA,WAAA,QAAA,iBAAA;;GAAA,CAAA,EAAA,sBAAA;GAAA,IAAA;gCAAA,SAAA,CAAA,EAAA,IAAA,oBAAA,SAAA,CAAA,SAAA;;GAAA,IAAA,WAAA;AAAA,WAAA,sBAAA,EAAA,IAAA,WAAA;AAAA,YAAA,oBAAA,SAAA;OAAA,CAAA;;GAAA,CAAA,CAAA;IAAA,CAAA,CAAA;;;;;;yCAAA,OAAA,CAAA,WAAA,CAAA;OAAA,UAAA,qBAAA;0DAAA;AAAA,iBAAA,gBAAA,KAAA,SAAA,QAAA,SAAA,CAAA,GAAA,IAAA,GAAA,OAAA,QAAA,SAAA,CAAA,CAAA,sBAAA;IAAA;;;;;;;;;;;;;;;;;;;;;mBAAA,WAAA;;GAAA,IAAA,SAAA;AAAA,WAAA,QAAA,UAAA;;GAAA,CAAA,EAAA;OAAA,OAAA;AAAA,gCAAA,SAAA,CAAA,EAAA,IAAA,oBAAA,SAAA,CAAA,SAAA;;GAAA,IAAA,WAAA;AAAA,WAAA,gBAAA,MAAA,EAAA,IAAA,WAAA;AAAA,YAAA,oBAAA,SAAA;OAAA,CAAA;;GAAA,CAAA,CAAA;IAAA,CAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x as TSDocProps } from "./tsdoc-
|
|
1
|
+
import { x as TSDocProps } from "./tsdoc-CwqGhmLe.mjs";
|
|
2
2
|
import * as _alloy_js_core12 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/typescript/components/tsdoc-reflection.d.ts
|
|
@@ -16,4 +16,4 @@ declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core12.Ch
|
|
|
16
16
|
declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core12.Children;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { TSDocReflectionMethod as n, TSDocReflectionProperty as r, TSDocReflectionClass as t };
|
|
19
|
-
//# sourceMappingURL=tsdoc-reflection-
|
|
19
|
+
//# sourceMappingURL=tsdoc-reflection-Cak-O_qk.d.mts.map
|