@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":"markdown-table-
|
|
1
|
+
{"version":3,"file":"markdown-table-CnEur72Z.mjs","names":["code","computed","Prose","Show","splitProps","titleCase","isUndefined","MarkdownTableContext","useMarkdownTable","MarkdownTable","props","children","data","columns","Object","keys","map","name","index","align","width","_$createComponent","Provider","value","when","Boolean","MarkdownTableColumn","tableContext","columnRef","find","c","indexRef","alignRef","widthRef","textLength","content","toString","length","repeat","MarkdownTableColumnHeader","rest","_$mergeProps","fallback","useDescriptions"],"sources":["../src/markdown/components/markdown-table.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 { code, computed, Prose, Show, splitProps } from \"@alloy-js/core\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport { ComponentProps } from \"../../types/components\";\nimport {\n MarkdownTableColumnContextInterface,\n MarkdownTableContext,\n useMarkdownTable\n} from \"../contexts/markdown-table\";\n\nexport interface MarkdownTableProps<\n T extends Record<string, any> = Record<string, any>\n> extends ComponentProps {\n data: T[];\n}\n\n/**\n * Component that provides a context for rendering markdown tables.\n */\nexport function MarkdownTable<\n T extends Record<string, any> = Record<string, any>\n>(props: MarkdownTableProps<T>) {\n const [{ children, data }] = splitProps(props, [\"children\", \"data\"]);\n\n const columns = computed(() =>\n Object.keys(data).map((name: string, index: number) => ({\n index,\n name,\n align: \"left\" as const,\n width: 20\n }))\n );\n\n return (\n <MarkdownTableContext.Provider value={{ columns: columns.value, data }}>\n <Show when={Boolean(children)}>{children}</Show>\n </MarkdownTableContext.Provider>\n );\n}\n\nexport type MarkdownTableColumnProps = ComponentProps &\n Partial<Pick<MarkdownTableColumnContextInterface, \"align\">> &\n Required<Pick<MarkdownTableColumnContextInterface, \"name\">> & {\n width?: number;\n };\n\n/**\n * Component that provides a context for rendering markdown tables.\n */\nexport function MarkdownTableColumn(props: MarkdownTableColumnProps) {\n const [{ children, width, align, name }] = splitProps(props, [\n \"children\",\n \"width\",\n \"align\",\n \"name\"\n ]);\n\n const tableContext = useMarkdownTable();\n const columnRef = computed(() =>\n tableContext?.columns.find(c => c.name === name)\n );\n\n const indexRef = computed(() => columnRef.value?.index ?? 0);\n const alignRef = computed(() => columnRef.value?.align ?? align ?? \"left\");\n const widthRef = computed(() => columnRef.value?.width ?? width ?? 20);\n\n const textLength = computed(() => {\n const content = children ? children.toString() : \"\";\n\n return content.length;\n });\n\n return (\n <Prose>\n <Show when={indexRef.value === 0}>{\"|\"}</Show>\n <Show when={Boolean(children)}>\n <Prose>{code`${\n alignRef.value === \"left\"\n ? \" \".repeat(widthRef.value - textLength.value - 1)\n : \" \"\n }${children}${\n alignRef.value === \"right\"\n ? \" \".repeat(widthRef.value - textLength.value - 1)\n : \" \"\n }`}</Prose>\n </Show>\n {\"|\"}\n </Prose>\n );\n}\n\n/**\n * Component that provides a context for rendering markdown tables.\n */\nexport function MarkdownTableColumnHeader(props: MarkdownTableColumnProps) {\n const [{ children, name }, rest] = splitProps(props, [\"children\", \"name\"]);\n\n return (\n <>\n <MarkdownTableColumn {...rest} name={name}>\n <Show\n fallback={titleCase(name, {\n useDescriptions: false\n })}\n when={!isUndefined(children)}>\n {children}\n </Show>\n </MarkdownTableColumn>\n </>\n );\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ComponentProps } from "./components-
|
|
2
|
-
import { n as MarkdownTableColumnContextInterface } from "./markdown-table-
|
|
1
|
+
import { n as ComponentProps } from "./components-DqfyRVFO.cjs";
|
|
2
|
+
import { n as MarkdownTableColumnContextInterface } from "./markdown-table-CZMEY6IR.cjs";
|
|
3
3
|
import * as _alloy_js_core2 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/markdown/components/markdown-table.d.ts
|
|
@@ -25,4 +25,4 @@ declare type __ΩMarkdownTableProps = any[];
|
|
|
25
25
|
declare type __ΩMarkdownTableColumnProps = any[];
|
|
26
26
|
//#endregion
|
|
27
27
|
export { MarkdownTableProps as a, MarkdownTableColumnProps as i, MarkdownTableColumn as n, __ΩMarkdownTableColumnProps as o, MarkdownTableColumnHeader as r, __ΩMarkdownTableProps as s, MarkdownTable as t };
|
|
28
|
-
//# sourceMappingURL=markdown-table-
|
|
28
|
+
//# sourceMappingURL=markdown-table-Cv6HmRUB.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-table-
|
|
1
|
+
{"version":3,"file":"markdown-table-Cv6HmRUB.d.cts","names":[],"sources":["../src/markdown/components/markdown-table.tsx"],"sourcesContent":[],"mappings":";;;;;UA4BiB,6BACL,sBAAsB,6BACxB;QACF;;AAHR;;;AAGQ,iBAMQ,aANR,CAAA,UAOI,MAPJ,CAAA,MAAA,EAAA,GAAA,CAAA,GAO0B,MAP1B,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAQC,kBARD,CAQoB,CARpB,CAAA,CAAA,EAQmB,eAAA,CAAG,QARtB;AADE,KA4BE,wBAAA,GAA2B,cA5B7B,GA6BR,OA7BQ,CA6BA,IA7BA,CA6BK,mCA7BL,EAAA,OAAA,CAAA,CAAA,GA8BR,QA9BQ,CA8BC,IA9BD,CA8BM,mCA9BN,EAAA,MAAA,CAAA,CAAA,GAAA;EAAc,KAAA,CAAA,EAAA,MAAA;AAOxB,CAAA;;;;AAES,iBA4BO,mBAAA,CA5BP,KAAA,EA4BkC,wBA5BlC,CAAA,EA4B0D,eAAA,CAAA,QA5B1D;;;AAmBT;AAAuC,iBAsDvB,yBAAA,CAtDuB,KAAA,EAsDU,wBAtDV,CAAA,EAsDkC,eAAA,CAAA,QAtDlC;AACxB,qCAAA,GAAA,EAAA;AAAL,2CAAA,GAAA,EAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ComponentProps } from "./components-
|
|
2
|
-
import { n as MarkdownTableColumnContextInterface } from "./markdown-table-
|
|
1
|
+
import { n as ComponentProps } from "./components-REdw2IIi.mjs";
|
|
2
|
+
import { n as MarkdownTableColumnContextInterface } from "./markdown-table-t6Z-cmxX.mjs";
|
|
3
3
|
import * as _alloy_js_core2 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/markdown/components/markdown-table.d.ts
|
|
@@ -25,4 +25,4 @@ declare type __ΩMarkdownTableProps = any[];
|
|
|
25
25
|
declare type __ΩMarkdownTableColumnProps = any[];
|
|
26
26
|
//#endregion
|
|
27
27
|
export { MarkdownTableProps as a, MarkdownTableColumnProps as i, MarkdownTableColumn as n, __ΩMarkdownTableColumnProps as o, MarkdownTableColumnHeader as r, __ΩMarkdownTableProps as s, MarkdownTable as t };
|
|
28
|
-
//# sourceMappingURL=markdown-table-
|
|
28
|
+
//# sourceMappingURL=markdown-table-DFbl_3T_.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-table-
|
|
1
|
+
{"version":3,"file":"markdown-table-DFbl_3T_.d.mts","names":[],"sources":["../src/markdown/components/markdown-table.tsx"],"sourcesContent":[],"mappings":";;;;;UA4BiB,6BACL,sBAAsB,6BACxB;QACF;;AAHR;;;AAGQ,iBAMQ,aANR,CAAA,UAOI,MAPJ,CAAA,MAAA,EAAA,GAAA,CAAA,GAO0B,MAP1B,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAQC,kBARD,CAQoB,CARpB,CAAA,CAAA,EAQmB,eAAA,CAAG,QARtB;AADE,KA4BE,wBAAA,GAA2B,cA5B7B,GA6BR,OA7BQ,CA6BA,IA7BA,CA6BK,mCA7BL,EAAA,OAAA,CAAA,CAAA,GA8BR,QA9BQ,CA8BC,IA9BD,CA8BM,mCA9BN,EAAA,MAAA,CAAA,CAAA,GAAA;EAAc,KAAA,CAAA,EAAA,MAAA;AAOxB,CAAA;;;;AAES,iBA4BO,mBAAA,CA5BP,KAAA,EA4BkC,wBA5BlC,CAAA,EA4B0D,eAAA,CAAA,QA5B1D;;;AAmBT;AAAuC,iBAsDvB,yBAAA,CAtDuB,KAAA,EAsDU,wBAtDV,CAAA,EAsDkC,eAAA,CAAA,QAtDlC;AACxB,qCAAA,GAAA,EAAA;AAAL,2CAAA,GAAA,EAAA"}
|
|
@@ -31,4 +31,4 @@ function useMarkdownTable() {
|
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
33
|
export { useMarkdownTableColumn as i, MarkdownTableContext as n, useMarkdownTable as r, MarkdownTableColumnContext as t };
|
|
34
|
-
//# sourceMappingURL=markdown-table-
|
|
34
|
+
//# sourceMappingURL=markdown-table-PT2TFFY3.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-table-
|
|
1
|
+
{"version":3,"file":"markdown-table-PT2TFFY3.mjs","names":["createContext","createNamedContext","useContext","MarkdownTableColumnContext","useMarkdownTableColumn","MarkdownTableContext","columns","data","useMarkdownTable"],"sources":["../src/markdown/contexts/markdown-table.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\";\n\nexport interface MarkdownTableColumnContextInterface<\n T extends Record<string, any> = Record<string, any>\n> {\n index: number;\n name: keyof T;\n align: \"left\" | \"right\" | \"center\";\n width: number;\n}\n\n/**\n * The Powerlines context used in template rendering.\n */\nexport const MarkdownTableColumnContext: ComponentContext<MarkdownTableColumnContextInterface> =\n createNamedContext<MarkdownTableColumnContextInterface>(\n \"MarkdownTableColumn\",\n {} as MarkdownTableColumnContextInterface\n );\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function useMarkdownTableColumn() {\n return useContext<MarkdownTableColumnContextInterface>(\n MarkdownTableColumnContext\n );\n}\n\nexport interface MarkdownTableContextInterface<\n T extends Record<string, any> = Record<string, any>\n> {\n columns: MarkdownTableColumnContextInterface<T>[];\n data: T[];\n}\n\n/**\n * The Powerlines context used in template rendering.\n */\nexport const MarkdownTableContext: ComponentContext<MarkdownTableContextInterface> =\n createContext<MarkdownTableContextInterface>({\n columns: [],\n data: []\n } as MarkdownTableContextInterface);\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function useMarkdownTable() {\n return useContext<MarkdownTableContextInterface>(MarkdownTableContext);\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
const require_markdown_table = require('./markdown-table-
|
|
2
|
+
const require_markdown_table = require('./markdown-table-BWPm6GbJ.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_string_format_title_case = require("@stryke/string-format/title-case");
|
|
@@ -35,4 +35,4 @@ declare type __ΩMarkdownTableColumnContextInterface = any[];
|
|
|
35
35
|
declare type __ΩMarkdownTableContextInterface = any[];
|
|
36
36
|
//#endregion
|
|
37
37
|
export { __ΩMarkdownTableColumnContextInterface as a, useMarkdownTableColumn as c, MarkdownTableContextInterface as i, MarkdownTableColumnContextInterface as n, __ΩMarkdownTableContextInterface as o, MarkdownTableContext as r, useMarkdownTable as s, MarkdownTableColumnContext as t };
|
|
38
|
-
//# sourceMappingURL=markdown-table-
|
|
38
|
+
//# sourceMappingURL=markdown-table-t6Z-cmxX.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-table-
|
|
1
|
+
{"version":3,"file":"markdown-table-t6Z-cmxX.d.mts","names":[],"sources":["../src/markdown/contexts/markdown-table.ts"],"sourcesContent":[],"mappings":";;;UAqBiB,8CACL,sBAAsB;;EADjB,IAAA,EAAA,MAIH,CAJG;EACL,KAAA,EAAA,MAAA,GAAA,OAAA,GAAA,QAAA;EAAsB,KAAA,EAAA,MAAA;;;AAWlC;AAWA;AAMiB,cAjBJ,0BAiBiC,EAjBL,gBAiBK,CAjBY,mCAiBZ,CAAA;;;;;;AAIrC,iBAVO,sBAAA,CAAA,CAUP,EAV6B,mCAU7B,CAV6B,MAU7B,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,GAAA,SAAA;AAMI,UAVI,6BAUmC,CAAA,UATxC,MASwC,CAAA,MAAjB,EAAA,GAAA,CAAA,GATD,MASC,CAAA,MAAgB,EAAA,GAAA,CAAA,CAAA,CAAA;EAWnC,OAAA,EAlBL,mCAkBqB,CAlBe,CAkBf,CAAA,EAAA;QAjBxB;;;;;cAMK,sBAAsB,iBAAiB;;;;;;iBAWpC,gBAAA,CAAA,GAAgB,8BAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
3
|
+
|
|
4
|
+
//#region src/core/contexts/meta.ts
|
|
5
|
+
/**
|
|
6
|
+
* The Powerlines meta context used to determine metadata of files generated during rendering.
|
|
7
|
+
*/
|
|
8
|
+
const MetaContext = (0, __alloy_js_core.createNamedContext)("Meta");
|
|
9
|
+
/**
|
|
10
|
+
* Hook to access the Powerlines Context.
|
|
11
|
+
*
|
|
12
|
+
* @returns The Context.
|
|
13
|
+
*/
|
|
14
|
+
function useMetaContext() {
|
|
15
|
+
return (0, __alloy_js_core.useContext)(MetaContext);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Hook to safely access the render context's metadata.
|
|
19
|
+
*
|
|
20
|
+
* @returns The Powerlines context or undefined if not set.
|
|
21
|
+
*/
|
|
22
|
+
function useMetaSafe() {
|
|
23
|
+
return useMetaContext() ?? void 0;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Hook to access the render context's metadata.
|
|
27
|
+
*
|
|
28
|
+
* @returns The Powerlines context.
|
|
29
|
+
*/
|
|
30
|
+
function useMeta() {
|
|
31
|
+
const meta = useMetaSafe();
|
|
32
|
+
if (!meta) throw new Error("Powerlines metadata is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
33
|
+
return meta;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
Object.defineProperty(exports, 'MetaContext', {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () {
|
|
40
|
+
return MetaContext;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, 'useMeta', {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return useMeta;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(exports, 'useMetaContext', {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function () {
|
|
52
|
+
return useMetaContext;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(exports, 'useMetaSafe', {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () {
|
|
58
|
+
return useMetaSafe;
|
|
59
|
+
}
|
|
60
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createNamedContext, useContext } from "@alloy-js/core";
|
|
2
|
+
|
|
3
|
+
//#region src/core/contexts/meta.ts
|
|
4
|
+
/**
|
|
5
|
+
* The Powerlines meta context used to determine metadata of files generated during rendering.
|
|
6
|
+
*/
|
|
7
|
+
const MetaContext = createNamedContext("Meta");
|
|
8
|
+
/**
|
|
9
|
+
* Hook to access the Powerlines Context.
|
|
10
|
+
*
|
|
11
|
+
* @returns The Context.
|
|
12
|
+
*/
|
|
13
|
+
function useMetaContext() {
|
|
14
|
+
return useContext(MetaContext);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Hook to safely access the render context's metadata.
|
|
18
|
+
*
|
|
19
|
+
* @returns The Powerlines context or undefined if not set.
|
|
20
|
+
*/
|
|
21
|
+
function useMetaSafe() {
|
|
22
|
+
return useMetaContext() ?? void 0;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Hook to access the render context's metadata.
|
|
26
|
+
*
|
|
27
|
+
* @returns The Powerlines context.
|
|
28
|
+
*/
|
|
29
|
+
function useMeta() {
|
|
30
|
+
const meta = useMetaSafe();
|
|
31
|
+
if (!meta) throw new Error("Powerlines metadata is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
32
|
+
return meta;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
export { useMetaSafe as i, useMeta as n, useMetaContext as r, MetaContext as t };
|
|
37
|
+
//# sourceMappingURL=meta-D0pfCtdR.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta-D0pfCtdR.mjs","names":["createNamedContext","useContext","MetaContext","useMetaContext","useMetaSafe","meta","undefined","useMeta","Error"],"sources":["../src/core/contexts/meta.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 {\n ComponentContext,\n createNamedContext,\n useContext\n} from \"@alloy-js/core\";\nimport type { StoragePreset } from \"powerlines/types/fs\";\n\nexport interface MetaItem {\n /**\n * The kind of metadata item.\n */\n kind?: \"builtin\" | \"entry\" | string;\n\n /**\n * Whether to skip formatting for this output.\n */\n skipFormat?: boolean;\n\n /**\n * The storage preset or adapter name 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 | string;\n\n [key: string]: any;\n}\n\n/**\n * The Powerlines meta context used to determine metadata of files generated during rendering.\n */\nexport const MetaContext: ComponentContext<Record<string, MetaItem>> =\n createNamedContext<Record<string, MetaItem>>(\"Meta\");\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function useMetaContext(): Record<string, MetaItem> | undefined {\n return useContext(MetaContext);\n}\n\n/**\n * Hook to safely access the render context's metadata.\n *\n * @returns The Powerlines context or undefined if not set.\n */\nexport function useMetaSafe(): Record<string, MetaItem> | undefined {\n const meta = useMetaContext();\n\n return meta ?? undefined;\n}\n\n/**\n * Hook to access the render context's metadata.\n *\n * @returns The Powerlines context.\n */\nexport function useMeta(): Record<string, MetaItem> {\n const meta = useMetaSafe();\n if (!meta) {\n throw new Error(\n \"Powerlines metadata is not available in the rendering context. 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 meta;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ComponentContext } from "@alloy-js/core";
|
|
2
|
+
import { StoragePreset } from "powerlines/types/fs";
|
|
3
|
+
|
|
4
|
+
//#region src/core/contexts/meta.d.ts
|
|
5
|
+
interface MetaItem {
|
|
6
|
+
/**
|
|
7
|
+
* The kind of metadata item.
|
|
8
|
+
*/
|
|
9
|
+
kind?: "builtin" | "entry" | string;
|
|
10
|
+
/**
|
|
11
|
+
* Whether to skip formatting for this output.
|
|
12
|
+
*/
|
|
13
|
+
skipFormat?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* The storage preset or adapter name for the output files.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* If not specified, the output mode will be determined by the provided `output.mode` value.
|
|
19
|
+
*/
|
|
20
|
+
storage?: StoragePreset | string;
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The Powerlines meta context used to determine metadata of files generated during rendering.
|
|
25
|
+
*/
|
|
26
|
+
declare const MetaContext: ComponentContext<Record<string, MetaItem>>;
|
|
27
|
+
/**
|
|
28
|
+
* Hook to access the Powerlines Context.
|
|
29
|
+
*
|
|
30
|
+
* @returns The Context.
|
|
31
|
+
*/
|
|
32
|
+
declare function useMetaContext(): Record<string, MetaItem> | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Hook to safely access the render context's metadata.
|
|
35
|
+
*
|
|
36
|
+
* @returns The Powerlines context or undefined if not set.
|
|
37
|
+
*/
|
|
38
|
+
declare function useMetaSafe(): Record<string, MetaItem> | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Hook to access the render context's metadata.
|
|
41
|
+
*
|
|
42
|
+
* @returns The Powerlines context.
|
|
43
|
+
*/
|
|
44
|
+
declare function useMeta(): Record<string, MetaItem>;
|
|
45
|
+
declare type __ΩMetaItem = any[];
|
|
46
|
+
//#endregion
|
|
47
|
+
export { useMetaContext as a, useMeta as i, MetaItem as n, useMetaSafe as o, __ΩMetaItem as r, MetaContext as t };
|
|
48
|
+
//# sourceMappingURL=meta-DDwBNdE3.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta-DDwBNdE3.d.cts","names":[],"sources":["../src/core/contexts/meta.ts"],"sourcesContent":[],"mappings":";;;;UAyBiB,QAAA;;AAAjB;AAyBA;EAA0D,IAAA,CAAA,EAAA,SAAA,GAAA,OAAA,GAAA,MAAA;EAAf;;;EAQ3B,UAAA,CAAA,EAAA,OAAc;EASd;AAWhB;;;;;YApCY;;;;;;cAQC,aAAa,iBAAiB,eAAe;;;;;;iBAQ1C,cAAA,CAAA,GAAkB,eAAe;;;;;;iBASjC,WAAA,CAAA,GAAe,eAAe;;;;;;iBAW9B,OAAA,CAAA,GAAW,eAAe"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ComponentContext } from "@alloy-js/core";
|
|
2
|
+
import { StoragePreset } from "powerlines/types/fs";
|
|
3
|
+
|
|
4
|
+
//#region src/core/contexts/meta.d.ts
|
|
5
|
+
interface MetaItem {
|
|
6
|
+
/**
|
|
7
|
+
* The kind of metadata item.
|
|
8
|
+
*/
|
|
9
|
+
kind?: "builtin" | "entry" | string;
|
|
10
|
+
/**
|
|
11
|
+
* Whether to skip formatting for this output.
|
|
12
|
+
*/
|
|
13
|
+
skipFormat?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* The storage preset or adapter name for the output files.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* If not specified, the output mode will be determined by the provided `output.mode` value.
|
|
19
|
+
*/
|
|
20
|
+
storage?: StoragePreset | string;
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The Powerlines meta context used to determine metadata of files generated during rendering.
|
|
25
|
+
*/
|
|
26
|
+
declare const MetaContext: ComponentContext<Record<string, MetaItem>>;
|
|
27
|
+
/**
|
|
28
|
+
* Hook to access the Powerlines Context.
|
|
29
|
+
*
|
|
30
|
+
* @returns The Context.
|
|
31
|
+
*/
|
|
32
|
+
declare function useMetaContext(): Record<string, MetaItem> | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Hook to safely access the render context's metadata.
|
|
35
|
+
*
|
|
36
|
+
* @returns The Powerlines context or undefined if not set.
|
|
37
|
+
*/
|
|
38
|
+
declare function useMetaSafe(): Record<string, MetaItem> | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Hook to access the render context's metadata.
|
|
41
|
+
*
|
|
42
|
+
* @returns The Powerlines context.
|
|
43
|
+
*/
|
|
44
|
+
declare function useMeta(): Record<string, MetaItem>;
|
|
45
|
+
declare type __ΩMetaItem = any[];
|
|
46
|
+
//#endregion
|
|
47
|
+
export { useMetaContext as a, useMeta as i, MetaItem as n, useMetaSafe as o, __ΩMetaItem as r, MetaContext as t };
|
|
48
|
+
//# sourceMappingURL=meta-RtOYCV7t.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta-RtOYCV7t.d.mts","names":[],"sources":["../src/core/contexts/meta.ts"],"sourcesContent":[],"mappings":";;;;UAyBiB,QAAA;;AAAjB;AAyBA;EAA0D,IAAA,CAAA,EAAA,SAAA,GAAA,OAAA,GAAA,MAAA;EAAf;;;EAQ3B,UAAA,CAAA,EAAA,OAAc;EASd;AAWhB;;;;;YApCY;;;;;;cAQC,aAAa,iBAAiB,eAAe;;;;;;iBAQ1C,cAAA,CAAA,GAAkB,eAAe;;;;;;iBASjC,WAAA,CAAA,GAAe,eAAe;;;;;;iBAW9B,OAAA,CAAA,GAAW,eAAe"}
|
|
@@ -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 __stryke_path_replace = require("@stryke/path/replace");
|
|
@@ -9,34 +9,26 @@ let __stryke_path_replace = require("@stryke/path/replace");
|
|
|
9
9
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
10
10
|
*/
|
|
11
11
|
function Output(props) {
|
|
12
|
-
const [{ children, context,
|
|
12
|
+
const [{ children, context, basePath }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
13
13
|
"children",
|
|
14
14
|
"context",
|
|
15
|
-
"meta",
|
|
16
15
|
"basePath"
|
|
17
16
|
]);
|
|
18
17
|
const basePathRef = (0, __alloy_js_core.computed)(() => basePath ? (0, __stryke_path_replace.replacePath)(basePath, context.workspaceConfig.workspaceRoot) : context.workspaceConfig.workspaceRoot);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
const contextRef = (0, __alloy_js_core.computed)(() => context);
|
|
19
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_context.PowerlinesContext.Provider, {
|
|
20
|
+
get value() {
|
|
21
|
+
return contextRef.value;
|
|
22
22
|
},
|
|
23
23
|
get children() {
|
|
24
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
25
|
-
|
|
26
|
-
value
|
|
27
|
-
meta
|
|
24
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Output, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
25
|
+
get basePath() {
|
|
26
|
+
return basePathRef.value;
|
|
28
27
|
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
get when() {
|
|
32
|
-
return Boolean(context);
|
|
33
|
-
},
|
|
34
|
-
children
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
});
|
|
28
|
+
children
|
|
29
|
+
}));
|
|
38
30
|
}
|
|
39
|
-
})
|
|
31
|
+
});
|
|
40
32
|
}
|
|
41
33
|
|
|
42
34
|
//#endregion
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
1
|
+
import * as _alloy_js_core3 from "@alloy-js/core";
|
|
3
2
|
import { OutputProps } from "@alloy-js/core";
|
|
4
3
|
import { PluginContext } from "powerlines/types/context";
|
|
5
4
|
|
|
6
5
|
//#region src/core/components/output.d.ts
|
|
7
|
-
interface OutputProps$1<TContext extends PluginContext = PluginContext
|
|
6
|
+
interface OutputProps$1<TContext extends PluginContext = PluginContext> extends OutputProps {
|
|
8
7
|
/**
|
|
9
8
|
* The current Powerlines process context.
|
|
10
9
|
*/
|
|
11
10
|
context: TContext;
|
|
12
|
-
/**
|
|
13
|
-
* Metadata for the current render.
|
|
14
|
-
*/
|
|
15
|
-
meta?: TMeta;
|
|
16
11
|
}
|
|
17
12
|
/**
|
|
18
13
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
19
14
|
*/
|
|
20
|
-
declare function Output<TContext extends PluginContext = PluginContext
|
|
15
|
+
declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps$1<TContext>): _alloy_js_core3.Children;
|
|
21
16
|
declare type __ΩOutputProps = any[];
|
|
22
17
|
//#endregion
|
|
23
18
|
export { OutputProps$1 as n, __ΩOutputProps as r, Output as t };
|
|
24
|
-
//# sourceMappingURL=output-
|
|
19
|
+
//# sourceMappingURL=output-BDtHu7ey.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-BDtHu7ey.d.cts","names":[],"sources":["../src/core/components/output.tsx"],"sourcesContent":[],"mappings":";;;;;UAwBiB,+BACE,gBAAgB,uBACzB;;;AAFV;EACmB,OAAA,EAKR,QALQ;;;;;AAWH,iBAAA,MAAM,CAAA,iBAAkB,aAAlB,GAAkC,aAAlC,CAAA,CAAA,KAAA,EACb,aADa,CACD,QADC,CAAA,CAAA,EACF,eAAA,CAAU,QADR;AAAkB,8BAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as _alloy_js_core1 from "@alloy-js/core";
|
|
2
|
+
import { OutputProps } from "@alloy-js/core";
|
|
3
|
+
import { PluginContext } from "powerlines/types/context";
|
|
4
|
+
|
|
5
|
+
//#region src/core/components/output.d.ts
|
|
6
|
+
interface OutputProps$1<TContext extends PluginContext = PluginContext> extends OutputProps {
|
|
7
|
+
/**
|
|
8
|
+
* The current Powerlines process context.
|
|
9
|
+
*/
|
|
10
|
+
context: TContext;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
14
|
+
*/
|
|
15
|
+
declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps$1<TContext>): _alloy_js_core1.Children;
|
|
16
|
+
declare type __ΩOutputProps = any[];
|
|
17
|
+
//#endregion
|
|
18
|
+
export { OutputProps$1 as n, __ΩOutputProps as r, Output as t };
|
|
19
|
+
//# sourceMappingURL=output-CIKSJjPS.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-CIKSJjPS.d.cts","names":[],"sources":["../src/core/components/output.tsx"],"sourcesContent":[],"mappings":";;;;;UAwBiB,+BACE,gBAAgB,uBACzB;;;AAFV;EACmB,OAAA,EAKR,QALQ;;;;;AAWH,iBAAA,MAAM,CAAA,iBAAkB,aAAlB,GAAkC,aAAlC,CAAA,CAAA,KAAA,EACb,aADa,CACD,QADC,CAAA,CAAA,EACF,eAAA,CAAU,QADR;AAAkB,8BAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { t as PowerlinesContext } from "./context-CdPajCh6.mjs";
|
|
2
|
+
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
|
+
import { Output, computed, splitProps } from "@alloy-js/core";
|
|
4
|
+
import { replacePath } from "@stryke/path/replace";
|
|
5
|
+
|
|
6
|
+
//#region src/core/components/output.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
9
|
+
*/
|
|
10
|
+
function Output$1(props) {
|
|
11
|
+
const [{ children, context, basePath }, rest] = splitProps(props, [
|
|
12
|
+
"children",
|
|
13
|
+
"context",
|
|
14
|
+
"basePath"
|
|
15
|
+
]);
|
|
16
|
+
const basePathRef = computed(() => basePath ? replacePath(basePath, context.workspaceConfig.workspaceRoot) : context.workspaceConfig.workspaceRoot);
|
|
17
|
+
const contextRef = computed(() => context);
|
|
18
|
+
return createComponent(PowerlinesContext.Provider, {
|
|
19
|
+
get value() {
|
|
20
|
+
return contextRef.value;
|
|
21
|
+
},
|
|
22
|
+
get children() {
|
|
23
|
+
return createComponent(Output, mergeProps(rest, {
|
|
24
|
+
get basePath() {
|
|
25
|
+
return basePathRef.value;
|
|
26
|
+
},
|
|
27
|
+
children
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { Output$1 as t };
|
|
35
|
+
//# sourceMappingURL=output-CPbwcL2j.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-CPbwcL2j.mjs","names":["computed","Output","OutputExternal","splitProps","replacePath","PowerlinesContext","props","children","context","basePath","rest","basePathRef","workspaceConfig","workspaceRoot","contextRef","_$createComponent","Provider","value","_$mergeProps"],"sources":["../src/core/components/output.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { OutputProps as OutputPropsExternal } from \"@alloy-js/core\";\nimport { computed, Output as OutputExternal, splitProps } from \"@alloy-js/core\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport type { PluginContext } from \"powerlines/types/context\";\nimport { PowerlinesContext } from \"../contexts/context\";\n\nexport interface OutputProps<\n TContext extends PluginContext = PluginContext\n> extends OutputPropsExternal {\n /**\n * The current Powerlines process context.\n */\n context: TContext;\n}\n\n/**\n * Output component for rendering the Powerlines plugin's output files via templates.\n */\nexport function Output<TContext extends PluginContext = PluginContext>(\n props: OutputProps<TContext>\n) {\n const [{ children, context, basePath }, rest] = splitProps(props, [\n \"children\",\n \"context\",\n \"basePath\"\n ]);\n\n const basePathRef = computed(() =>\n basePath\n ? replacePath(basePath, context.workspaceConfig.workspaceRoot)\n : context.workspaceConfig.workspaceRoot\n );\n const contextRef = computed(() => context);\n\n return (\n <PowerlinesContext.Provider value={contextRef.value}>\n <OutputExternal {...rest} basePath={basePathRef.value}>\n {children}\n </OutputExternal>\n </PowerlinesContext.Provider>\n );\n}\n"],"mappings":""}
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
import { t as MetaItem } from "./context-uUfYcg-_.mjs";
|
|
2
1
|
import * as _alloy_js_core1 from "@alloy-js/core";
|
|
3
2
|
import { OutputProps } from "@alloy-js/core";
|
|
4
3
|
import { PluginContext } from "powerlines/types/context";
|
|
5
4
|
|
|
6
5
|
//#region src/core/components/output.d.ts
|
|
7
|
-
interface OutputProps$1<TContext extends PluginContext = PluginContext
|
|
6
|
+
interface OutputProps$1<TContext extends PluginContext = PluginContext> extends OutputProps {
|
|
8
7
|
/**
|
|
9
8
|
* The current Powerlines process context.
|
|
10
9
|
*/
|
|
11
10
|
context: TContext;
|
|
12
|
-
/**
|
|
13
|
-
* Metadata for the current render.
|
|
14
|
-
*/
|
|
15
|
-
meta?: TMeta;
|
|
16
11
|
}
|
|
17
12
|
/**
|
|
18
13
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
19
14
|
*/
|
|
20
|
-
declare function Output$1<TContext extends PluginContext = PluginContext
|
|
15
|
+
declare function Output$1<TContext extends PluginContext = PluginContext>(props: OutputProps$1<TContext>): _alloy_js_core1.Children;
|
|
21
16
|
declare type __ΩOutputProps = any[];
|
|
22
17
|
//#endregion
|
|
23
18
|
export { OutputProps$1 as n, __ΩOutputProps as r, Output$1 as t };
|
|
24
|
-
//# sourceMappingURL=output-
|
|
19
|
+
//# sourceMappingURL=output-Law_SUlM.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-Law_SUlM.d.mts","names":[],"sources":["../src/core/components/output.tsx"],"sourcesContent":[],"mappings":";;;;;UAwBiB,+BACE,gBAAgB,uBACzB;;;AAFV;EACmB,OAAA,EAKR,QALQ;;;;;AAWH,iBAAA,QAAM,CAAA,iBAAkB,aAAlB,GAAkC,aAAlC,CAAA,CAAA,KAAA,EACb,aADa,CACD,QADC,CAAA,CAAA,EACF,eAAA,CAAU,QADR;AAAkB,8BAAA,GAAA,EAAA"}
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
import { t as MetaItem } from "./context-uUfYcg-_.mjs";
|
|
2
1
|
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
2
|
import { OutputProps } from "@alloy-js/core";
|
|
4
3
|
import { PluginContext } from "powerlines/types/context";
|
|
5
4
|
|
|
6
5
|
//#region src/core/components/output.d.ts
|
|
7
|
-
interface OutputProps$1<TContext extends PluginContext = PluginContext
|
|
6
|
+
interface OutputProps$1<TContext extends PluginContext = PluginContext> extends OutputProps {
|
|
8
7
|
/**
|
|
9
8
|
* The current Powerlines process context.
|
|
10
9
|
*/
|
|
11
10
|
context: TContext;
|
|
12
|
-
/**
|
|
13
|
-
* Metadata for the current render.
|
|
14
|
-
*/
|
|
15
|
-
meta?: TMeta;
|
|
16
11
|
}
|
|
17
12
|
/**
|
|
18
13
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
19
14
|
*/
|
|
20
|
-
declare function Output$1<TContext extends PluginContext = PluginContext
|
|
15
|
+
declare function Output$1<TContext extends PluginContext = PluginContext>(props: OutputProps$1<TContext>): _alloy_js_core0.Children;
|
|
21
16
|
declare type __ΩOutputProps = any[];
|
|
22
17
|
//#endregion
|
|
23
18
|
export { OutputProps$1 as n, __ΩOutputProps as r, Output$1 as t };
|
|
24
|
-
//# sourceMappingURL=output-
|
|
19
|
+
//# sourceMappingURL=output-gLuHZTGo.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-gLuHZTGo.d.mts","names":[],"sources":["../src/core/components/output.tsx"],"sourcesContent":[],"mappings":";;;;;UAwBiB,+BACE,gBAAgB,uBACzB;;;AAFV;EACmB,OAAA,EAKR,QALQ;;;;;AAWH,iBAAA,QAAM,CAAA,iBAAkB,aAAlB,GAAkC,aAAlC,CAAA,CAAA,KAAA,EACb,aADa,CACD,QADC,CAAA,CAAA,EACF,eAAA,CAAU,QADR;AAAkB,8BAAA,GAAA,EAAA"}
|
|
@@ -30,7 +30,7 @@ type AlloyPluginResolvedConfig = BabelPluginResolvedConfig & {
|
|
|
30
30
|
alloy: AlloyPluginOptions;
|
|
31
31
|
};
|
|
32
32
|
type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
33
|
-
render: (
|
|
33
|
+
render: (renderCallback: () => Children) => Promise<void>;
|
|
34
34
|
};
|
|
35
35
|
declare type __ΩAlloyPluginOptions = any[];
|
|
36
36
|
declare type __ΩAlloyPluginUserConfig = any[];
|
|
@@ -38,4 +38,4 @@ declare type __ΩAlloyPluginResolvedConfig = any[];
|
|
|
38
38
|
declare type __ΩAlloyPluginContext = any[];
|
|
39
39
|
//#endregion
|
|
40
40
|
export { __ΩAlloyPluginContext as a, __ΩAlloyPluginUserConfig as c, AlloyPluginUserConfig as i, AlloyPluginOptions as n, __ΩAlloyPluginOptions as o, AlloyPluginResolvedConfig as r, __ΩAlloyPluginResolvedConfig as s, AlloyPluginContext as t };
|
|
41
|
-
//# sourceMappingURL=plugin-
|
|
41
|
+
//# sourceMappingURL=plugin-BxSt55Oo.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-
|
|
1
|
+
{"version":3,"file":"plugin-BxSt55Oo.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;KAyBY,kBAAA,GAAqB,QAAQ;;AAAzC;AAuBA;AAIA;AAIA;EAC0B,UAAA,CAAA,EAAA,OAAA;EAA4B;;;;;EAED,IAAA,CAAA,EAAA,OAAA;;;;;;;;KAXzC,qBAAA,GAAwB;UAC1B;;KAGE,yBAAA,GAA4B;SAC/B;;KAGG,2CACc,4BAA4B,6BAClD,cAAc;iCACe,aAAa"}
|
|
@@ -30,7 +30,7 @@ type AlloyPluginResolvedConfig = BabelPluginResolvedConfig & {
|
|
|
30
30
|
alloy: AlloyPluginOptions;
|
|
31
31
|
};
|
|
32
32
|
type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
33
|
-
render: (
|
|
33
|
+
render: (renderCallback: () => Children) => Promise<void>;
|
|
34
34
|
};
|
|
35
35
|
declare type __ΩAlloyPluginOptions = any[];
|
|
36
36
|
declare type __ΩAlloyPluginUserConfig = any[];
|
|
@@ -38,4 +38,4 @@ declare type __ΩAlloyPluginResolvedConfig = any[];
|
|
|
38
38
|
declare type __ΩAlloyPluginContext = any[];
|
|
39
39
|
//#endregion
|
|
40
40
|
export { __ΩAlloyPluginContext as a, __ΩAlloyPluginUserConfig as c, AlloyPluginUserConfig as i, AlloyPluginOptions as n, __ΩAlloyPluginOptions as o, AlloyPluginResolvedConfig as r, __ΩAlloyPluginResolvedConfig as s, AlloyPluginContext as t };
|
|
41
|
-
//# sourceMappingURL=plugin-
|
|
41
|
+
//# sourceMappingURL=plugin-D3ENcdlL.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-
|
|
1
|
+
{"version":3,"file":"plugin-D3ENcdlL.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;KAyBY,kBAAA,GAAqB,QAAQ;;AAAzC;AAuBA;AAIA;AAIA;EAC0B,UAAA,CAAA,EAAA,OAAA;EAA4B;;;;;EAED,IAAA,CAAA,EAAA,OAAA;;;;;;;;KAXzC,qBAAA,GAAwB;UAC1B;;KAGE,yBAAA,GAA4B;SAC/B;;KAGG,2CACc,4BAA4B,6BAClD,cAAc;iCACe,aAAa"}
|
|
@@ -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-ChoLAsVS.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-expression-
|
|
1
|
+
{"version":3,"file":"record-expression-ChoLAsVS.d.mts","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"}
|