@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,5 +1,5 @@
|
|
|
1
|
-
import { o as TypescriptFileProps } from "./typescript-file
|
|
2
|
-
import * as
|
|
1
|
+
import { o as TypescriptFileProps } from "./typescript-file--NT6aFEW.cjs";
|
|
2
|
+
import * as _alloy_js_core14 from "@alloy-js/core";
|
|
3
3
|
import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/entry-file.d.ts
|
|
@@ -21,8 +21,8 @@ type EntryFileProps = TypescriptFileProps & {
|
|
|
21
21
|
* @param props - The properties for the source file.
|
|
22
22
|
* @returns The rendered source file component.
|
|
23
23
|
*/
|
|
24
|
-
declare function EntryFile(props: EntryFileProps):
|
|
24
|
+
declare function EntryFile(props: EntryFileProps): _alloy_js_core14.Children;
|
|
25
25
|
declare type __ΩEntryFileProps = any[];
|
|
26
26
|
//#endregion
|
|
27
27
|
export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
|
|
28
|
-
//# sourceMappingURL=entry-file-
|
|
28
|
+
//# sourceMappingURL=entry-file-D5chvp2V.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-file-
|
|
1
|
+
{"version":3,"file":"entry-file-D5chvp2V.d.cts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"front-matter-
|
|
1
|
+
{"version":3,"file":"front-matter-BeTG0uJA.mjs","names":["code","For","FrontMatter","props","_$createIntrinsic","_$createComponent","each","Object","entries","data","hardline","children","key","value","JSON","stringify"],"sources":["../src/markdown/components/front-matter.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, For } from \"@alloy-js/core\";\n\nexport interface FrontMatterProps {\n data: Record<string, any>;\n}\n\n/**\n * Renders YAML front matter for a markdown file.\n *\n * @see https://jekyllrb.com/docs/front-matter/\n */\nexport function FrontMatter(props: FrontMatterProps) {\n return (\n <>\n {\"---\"}\n <hbr />\n <For each={Object.entries(props.data)} hardline>\n {([key, value]) => code`${key}: ${JSON.stringify(value)}`}\n </For>\n {\"---\"}\n <hbr />\n </>\n );\n}\n"],"mappings":""}
|
|
@@ -13,4 +13,4 @@ declare function FrontMatter(props: FrontMatterProps): _alloy_js_core7.Children;
|
|
|
13
13
|
declare type __ΩFrontMatterProps = any[];
|
|
14
14
|
//#endregion
|
|
15
15
|
export { FrontMatterProps as n, __ΩFrontMatterProps as r, FrontMatter as t };
|
|
16
|
-
//# sourceMappingURL=front-matter-
|
|
16
|
+
//# sourceMappingURL=front-matter-CXfCT8a8.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"front-matter-
|
|
1
|
+
{"version":3,"file":"front-matter-CXfCT8a8.d.mts","names":[],"sources":["../src/markdown/components/front-matter.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,gBAAA;QACT;;AADR;AASA;;;;iBAAgB,WAAA,QAAmB,mBAAgB,eAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
2
2
|
|
|
3
3
|
//#region src/markdown/components/front-matter.d.ts
|
|
4
4
|
interface FrontMatterProps {
|
|
@@ -9,8 +9,8 @@ interface FrontMatterProps {
|
|
|
9
9
|
*
|
|
10
10
|
* @see https://jekyllrb.com/docs/front-matter/
|
|
11
11
|
*/
|
|
12
|
-
declare function FrontMatter(props: FrontMatterProps):
|
|
12
|
+
declare function FrontMatter(props: FrontMatterProps): _alloy_js_core0.Children;
|
|
13
13
|
declare type __ΩFrontMatterProps = any[];
|
|
14
14
|
//#endregion
|
|
15
15
|
export { FrontMatterProps as n, __ΩFrontMatterProps as r, FrontMatter as t };
|
|
16
|
-
//# sourceMappingURL=front-matter-
|
|
16
|
+
//# sourceMappingURL=front-matter-DTorR58b.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"front-matter-
|
|
1
|
+
{"version":3,"file":"front-matter-DTorR58b.d.cts","names":[],"sources":["../src/markdown/components/front-matter.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,gBAAA;QACT;;AADR;AASA;;;;iBAAgB,WAAA,QAAmB,mBAAgB,eAAA,CAAA"}
|
|
@@ -13,4 +13,4 @@ declare function FrontMatter(props: FrontMatterProps): _alloy_js_core7.Children;
|
|
|
13
13
|
declare type __ΩFrontMatterProps = any[];
|
|
14
14
|
//#endregion
|
|
15
15
|
export { FrontMatterProps as n, __ΩFrontMatterProps as r, FrontMatter as t };
|
|
16
|
-
//# sourceMappingURL=front-matter-
|
|
16
|
+
//# sourceMappingURL=front-matter-DpKD40Zz.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"front-matter-
|
|
1
|
+
{"version":3,"file":"front-matter-DpKD40Zz.d.cts","names":[],"sources":["../src/markdown/components/front-matter.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,gBAAA;QACT;;AADR;AASA;;;;iBAAgB,WAAA,QAAmB,mBAAgB,eAAA,CAAA"}
|
package/dist/helpers/capnp.cjs
CHANGED
package/dist/helpers/capnp.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as stringifyCapnpDefaultValue, S as isVoidType, _ as generateCapnpSchema, a as StdioOptions, b as getCapnpUnionTypes, c as __ΩIOType, d as generateCapnp, f as generateCapnpEnumSchema, g as generateCapnpPrimitive, h as generateCapnpMethodSchema, i as LARGE_BUFFER, l as __ΩStdioOptions, m as generateCapnpInterface, n as GenerateCapnpStructOptions, o as __ΩGenerateCapnpOptions, p as generateCapnpId, r as IOType, s as __ΩGenerateCapnpStructOptions, t as GenerateCapnpOptions, u as compile, v as generateCapnpStruct, w as stringifyCapnpValue, x as isCapnpStringUnion, y as getCapnpEnumTypes } from "../capnp-
|
|
1
|
+
import { C as stringifyCapnpDefaultValue, S as isVoidType, _ as generateCapnpSchema, a as StdioOptions, b as getCapnpUnionTypes, c as __ΩIOType, d as generateCapnp, f as generateCapnpEnumSchema, g as generateCapnpPrimitive, h as generateCapnpMethodSchema, i as LARGE_BUFFER, l as __ΩStdioOptions, m as generateCapnpInterface, n as GenerateCapnpStructOptions, o as __ΩGenerateCapnpOptions, p as generateCapnpId, r as IOType, s as __ΩGenerateCapnpStructOptions, t as GenerateCapnpOptions, u as compile, v as generateCapnpStruct, w as stringifyCapnpValue, x as isCapnpStringUnion, y as getCapnpEnumTypes } from "../capnp-DbPtfpg2.cjs";
|
|
2
2
|
export { GenerateCapnpOptions, GenerateCapnpStructOptions, IOType, LARGE_BUFFER, StdioOptions, __ΩGenerateCapnpOptions, __ΩGenerateCapnpStructOptions, __ΩIOType, __ΩStdioOptions, compile, generateCapnp, generateCapnpEnumSchema, generateCapnpId, generateCapnpInterface, generateCapnpMethodSchema, generateCapnpPrimitive, generateCapnpSchema, generateCapnpStruct, getCapnpEnumTypes, getCapnpUnionTypes, isCapnpStringUnion, isVoidType, stringifyCapnpDefaultValue, stringifyCapnpValue };
|
package/dist/helpers/capnp.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as stringifyCapnpDefaultValue, S as isVoidType, _ as generateCapnpSchema, a as StdioOptions, b as getCapnpUnionTypes, c as __ΩIOType, d as generateCapnp, f as generateCapnpEnumSchema, g as generateCapnpPrimitive, h as generateCapnpMethodSchema, i as LARGE_BUFFER, l as __ΩStdioOptions, m as generateCapnpInterface, n as GenerateCapnpStructOptions, o as __ΩGenerateCapnpOptions, p as generateCapnpId, r as IOType, s as __ΩGenerateCapnpStructOptions, t as GenerateCapnpOptions, u as compile, v as generateCapnpStruct, w as stringifyCapnpValue, x as isCapnpStringUnion, y as getCapnpEnumTypes } from "../capnp-
|
|
1
|
+
import { C as stringifyCapnpDefaultValue, S as isVoidType, _ as generateCapnpSchema, a as StdioOptions, b as getCapnpUnionTypes, c as __ΩIOType, d as generateCapnp, f as generateCapnpEnumSchema, g as generateCapnpPrimitive, h as generateCapnpMethodSchema, i as LARGE_BUFFER, l as __ΩStdioOptions, m as generateCapnpInterface, n as GenerateCapnpStructOptions, o as __ΩGenerateCapnpOptions, p as generateCapnpId, r as IOType, s as __ΩGenerateCapnpStructOptions, t as GenerateCapnpOptions, u as compile, v as generateCapnpStruct, w as stringifyCapnpValue, x as isCapnpStringUnion, y as getCapnpEnumTypes } from "../capnp-CLxcoMcG.mjs";
|
|
2
2
|
export { GenerateCapnpOptions, GenerateCapnpStructOptions, IOType, LARGE_BUFFER, StdioOptions, __ΩGenerateCapnpOptions, __ΩGenerateCapnpStructOptions, __ΩIOType, __ΩStdioOptions, compile, generateCapnp, generateCapnpEnumSchema, generateCapnpId, generateCapnpInterface, generateCapnpMethodSchema, generateCapnpPrimitive, generateCapnpSchema, generateCapnpStruct, getCapnpEnumTypes, getCapnpUnionTypes, isCapnpStringUnion, isVoidType, stringifyCapnpDefaultValue, stringifyCapnpValue };
|
package/dist/helpers/capnp.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as generateCapnpId, c as generateCapnpPrimitive, d as getCapnpEnumTypes, f as getCapnpUnionTypes, g as stringifyCapnpValue, h as stringifyCapnpDefaultValue, i as generateCapnpEnumSchema, l as generateCapnpSchema, m as isVoidType, n as compile, o as generateCapnpInterface, p as isCapnpStringUnion, r as generateCapnp, s as generateCapnpMethodSchema, t as LARGE_BUFFER, u as generateCapnpStruct } from "../capnp-
|
|
1
|
+
import { a as generateCapnpId, c as generateCapnpPrimitive, d as getCapnpEnumTypes, f as getCapnpUnionTypes, g as stringifyCapnpValue, h as stringifyCapnpDefaultValue, i as generateCapnpEnumSchema, l as generateCapnpSchema, m as isVoidType, n as compile, o as generateCapnpInterface, p as isCapnpStringUnion, r as generateCapnp, s as generateCapnpMethodSchema, t as LARGE_BUFFER, u as generateCapnpStruct } from "../capnp-CPbob9Cm.mjs";
|
|
2
2
|
|
|
3
3
|
export { LARGE_BUFFER, compile, generateCapnp, generateCapnpEnumSchema, generateCapnpId, generateCapnpInterface, generateCapnpMethodSchema, generateCapnpPrimitive, generateCapnpSchema, generateCapnpStruct, getCapnpEnumTypes, getCapnpUnionTypes, isCapnpStringUnion, isVoidType, stringifyCapnpDefaultValue, stringifyCapnpValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as __ΩCreateBuiltinOptions, r as createBuiltin, t as CreateBuiltinOptions } from "../create-builtin-
|
|
1
|
+
import { n as __ΩCreateBuiltinOptions, r as createBuiltin, t as CreateBuiltinOptions } from "../create-builtin-Bpswa0ZT.cjs";
|
|
2
2
|
export { CreateBuiltinOptions, __ΩCreateBuiltinOptions, createBuiltin };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as __ΩCreateBuiltinOptions, r as createBuiltin, t as CreateBuiltinOptions } from "../create-builtin-
|
|
1
|
+
import { n as __ΩCreateBuiltinOptions, r as createBuiltin, t as CreateBuiltinOptions } from "../create-builtin-CbEjJreB.mjs";
|
|
2
2
|
export { CreateBuiltinOptions, __ΩCreateBuiltinOptions, createBuiltin };
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_typescript = require('../typescript-
|
|
2
|
-
const require_refkey = require('../refkey-
|
|
3
|
-
const require_capnp = require('../capnp-
|
|
4
|
-
const require_create_builtin = require('../create-builtin-
|
|
1
|
+
const require_typescript = require('../typescript-BbjCTT04.cjs');
|
|
2
|
+
const require_refkey = require('../refkey-C08kDOQ0.cjs');
|
|
3
|
+
const require_capnp = require('../capnp-ClfqI-5t.cjs');
|
|
4
|
+
const require_create_builtin = require('../create-builtin-BiKyN2s2.cjs');
|
|
5
5
|
|
|
6
6
|
exports.LARGE_BUFFER = require_capnp.LARGE_BUFFER;
|
|
7
7
|
exports.compile = require_capnp.compile;
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as stringifyCapnpDefaultValue, S as isVoidType, _ as generateCapnpSchema, a as StdioOptions, b as getCapnpUnionTypes, c as __ΩIOType, d as generateCapnp, f as generateCapnpEnumSchema, g as generateCapnpPrimitive, h as generateCapnpMethodSchema, i as LARGE_BUFFER, l as __ΩStdioOptions, m as generateCapnpInterface, n as GenerateCapnpStructOptions, o as __ΩGenerateCapnpOptions, p as generateCapnpId, r as IOType, s as __ΩGenerateCapnpStructOptions, t as GenerateCapnpOptions, u as compile, v as generateCapnpStruct, w as stringifyCapnpValue, x as isCapnpStringUnion, y as getCapnpEnumTypes } from "../capnp-
|
|
2
|
-
import { n as __ΩCreateBuiltinOptions, r as createBuiltin, t as CreateBuiltinOptions } from "../create-builtin-
|
|
3
|
-
import { t as refkey } from "../refkey-
|
|
4
|
-
import { a as generateTypeScriptObject, i as __ΩGenerateTypeScriptObjectOptions, n as GenerateTypeScriptObjectOptions, r as __ΩGenerateTypeScriptInterfaceOptions, t as GenerateTypeScriptInterfaceOptions } from "../typescript-
|
|
1
|
+
import { C as stringifyCapnpDefaultValue, S as isVoidType, _ as generateCapnpSchema, a as StdioOptions, b as getCapnpUnionTypes, c as __ΩIOType, d as generateCapnp, f as generateCapnpEnumSchema, g as generateCapnpPrimitive, h as generateCapnpMethodSchema, i as LARGE_BUFFER, l as __ΩStdioOptions, m as generateCapnpInterface, n as GenerateCapnpStructOptions, o as __ΩGenerateCapnpOptions, p as generateCapnpId, r as IOType, s as __ΩGenerateCapnpStructOptions, t as GenerateCapnpOptions, u as compile, v as generateCapnpStruct, w as stringifyCapnpValue, x as isCapnpStringUnion, y as getCapnpEnumTypes } from "../capnp-DbPtfpg2.cjs";
|
|
2
|
+
import { n as __ΩCreateBuiltinOptions, r as createBuiltin, t as CreateBuiltinOptions } from "../create-builtin-Bpswa0ZT.cjs";
|
|
3
|
+
import { t as refkey } from "../refkey-CP7MJMac.cjs";
|
|
4
|
+
import { a as generateTypeScriptObject, i as __ΩGenerateTypeScriptObjectOptions, n as GenerateTypeScriptObjectOptions, r as __ΩGenerateTypeScriptInterfaceOptions, t as GenerateTypeScriptInterfaceOptions } from "../typescript-CXP7Oa6_.cjs";
|
|
5
5
|
export { CreateBuiltinOptions, GenerateCapnpOptions, GenerateCapnpStructOptions, GenerateTypeScriptInterfaceOptions, GenerateTypeScriptObjectOptions, IOType, LARGE_BUFFER, StdioOptions, __ΩCreateBuiltinOptions, __ΩGenerateCapnpOptions, __ΩGenerateCapnpStructOptions, __ΩGenerateTypeScriptInterfaceOptions, __ΩGenerateTypeScriptObjectOptions, __ΩIOType, __ΩStdioOptions, compile, createBuiltin, generateCapnp, generateCapnpEnumSchema, generateCapnpId, generateCapnpInterface, generateCapnpMethodSchema, generateCapnpPrimitive, generateCapnpSchema, generateCapnpStruct, generateTypeScriptObject, getCapnpEnumTypes, getCapnpUnionTypes, isCapnpStringUnion, isVoidType, refkey, stringifyCapnpDefaultValue, stringifyCapnpValue };
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as stringifyCapnpDefaultValue, S as isVoidType, _ as generateCapnpSchema, a as StdioOptions, b as getCapnpUnionTypes, c as __ΩIOType, d as generateCapnp, f as generateCapnpEnumSchema, g as generateCapnpPrimitive, h as generateCapnpMethodSchema, i as LARGE_BUFFER, l as __ΩStdioOptions, m as generateCapnpInterface, n as GenerateCapnpStructOptions, o as __ΩGenerateCapnpOptions, p as generateCapnpId, r as IOType, s as __ΩGenerateCapnpStructOptions, t as GenerateCapnpOptions, u as compile, v as generateCapnpStruct, w as stringifyCapnpValue, x as isCapnpStringUnion, y as getCapnpEnumTypes } from "../capnp-
|
|
2
|
-
import { n as __ΩCreateBuiltinOptions, r as createBuiltin, t as CreateBuiltinOptions } from "../create-builtin-
|
|
3
|
-
import { t as refkey } from "../refkey-
|
|
4
|
-
import { a as generateTypeScriptObject, i as __ΩGenerateTypeScriptObjectOptions, n as GenerateTypeScriptObjectOptions, r as __ΩGenerateTypeScriptInterfaceOptions, t as GenerateTypeScriptInterfaceOptions } from "../typescript-
|
|
1
|
+
import { C as stringifyCapnpDefaultValue, S as isVoidType, _ as generateCapnpSchema, a as StdioOptions, b as getCapnpUnionTypes, c as __ΩIOType, d as generateCapnp, f as generateCapnpEnumSchema, g as generateCapnpPrimitive, h as generateCapnpMethodSchema, i as LARGE_BUFFER, l as __ΩStdioOptions, m as generateCapnpInterface, n as GenerateCapnpStructOptions, o as __ΩGenerateCapnpOptions, p as generateCapnpId, r as IOType, s as __ΩGenerateCapnpStructOptions, t as GenerateCapnpOptions, u as compile, v as generateCapnpStruct, w as stringifyCapnpValue, x as isCapnpStringUnion, y as getCapnpEnumTypes } from "../capnp-CLxcoMcG.mjs";
|
|
2
|
+
import { n as __ΩCreateBuiltinOptions, r as createBuiltin, t as CreateBuiltinOptions } from "../create-builtin-CbEjJreB.mjs";
|
|
3
|
+
import { t as refkey } from "../refkey-D6OjgKgS.mjs";
|
|
4
|
+
import { a as generateTypeScriptObject, i as __ΩGenerateTypeScriptObjectOptions, n as GenerateTypeScriptObjectOptions, r as __ΩGenerateTypeScriptInterfaceOptions, t as GenerateTypeScriptInterfaceOptions } from "../typescript-DvynKONm.mjs";
|
|
5
5
|
export { CreateBuiltinOptions, GenerateCapnpOptions, GenerateCapnpStructOptions, GenerateTypeScriptInterfaceOptions, GenerateTypeScriptObjectOptions, IOType, LARGE_BUFFER, StdioOptions, __ΩCreateBuiltinOptions, __ΩGenerateCapnpOptions, __ΩGenerateCapnpStructOptions, __ΩGenerateTypeScriptInterfaceOptions, __ΩGenerateTypeScriptObjectOptions, __ΩIOType, __ΩStdioOptions, compile, createBuiltin, generateCapnp, generateCapnpEnumSchema, generateCapnpId, generateCapnpInterface, generateCapnpMethodSchema, generateCapnpPrimitive, generateCapnpSchema, generateCapnpStruct, generateTypeScriptObject, getCapnpEnumTypes, getCapnpUnionTypes, isCapnpStringUnion, isVoidType, refkey, stringifyCapnpDefaultValue, stringifyCapnpValue };
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as generateTypeScriptObject } from "../typescript-
|
|
2
|
-
import { t as refkey } from "../refkey-
|
|
3
|
-
import { a as generateCapnpId, c as generateCapnpPrimitive, d as getCapnpEnumTypes, f as getCapnpUnionTypes, g as stringifyCapnpValue, h as stringifyCapnpDefaultValue, i as generateCapnpEnumSchema, l as generateCapnpSchema, m as isVoidType, n as compile, o as generateCapnpInterface, p as isCapnpStringUnion, r as generateCapnp, s as generateCapnpMethodSchema, t as LARGE_BUFFER, u as generateCapnpStruct } from "../capnp-
|
|
4
|
-
import { t as createBuiltin } from "../create-builtin-
|
|
1
|
+
import { t as generateTypeScriptObject } from "../typescript-BXhP0qIJ.mjs";
|
|
2
|
+
import { t as refkey } from "../refkey-CQVHeuAq.mjs";
|
|
3
|
+
import { a as generateCapnpId, c as generateCapnpPrimitive, d as getCapnpEnumTypes, f as getCapnpUnionTypes, g as stringifyCapnpValue, h as stringifyCapnpDefaultValue, i as generateCapnpEnumSchema, l as generateCapnpSchema, m as isVoidType, n as compile, o as generateCapnpInterface, p as isCapnpStringUnion, r as generateCapnp, s as generateCapnpMethodSchema, t as LARGE_BUFFER, u as generateCapnpStruct } from "../capnp-CPbob9Cm.mjs";
|
|
4
|
+
import { t as createBuiltin } from "../create-builtin-Be3J_vqf.mjs";
|
|
5
5
|
|
|
6
6
|
export { LARGE_BUFFER, compile, createBuiltin, generateCapnp, generateCapnpEnumSchema, generateCapnpId, generateCapnpInterface, generateCapnpMethodSchema, generateCapnpPrimitive, generateCapnpSchema, generateCapnpStruct, generateTypeScriptObject, getCapnpEnumTypes, getCapnpUnionTypes, isCapnpStringUnion, isVoidType, refkey, stringifyCapnpDefaultValue, stringifyCapnpValue };
|
package/dist/helpers/refkey.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as refkey } from "../refkey-
|
|
1
|
+
import { t as refkey } from "../refkey-CP7MJMac.cjs";
|
|
2
2
|
export { refkey };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as refkey } from "../refkey-
|
|
1
|
+
import { t as refkey } from "../refkey-D6OjgKgS.mjs";
|
|
2
2
|
export { refkey };
|
package/dist/helpers/refkey.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as generateTypeScriptObject, i as __ΩGenerateTypeScriptObjectOptions, n as GenerateTypeScriptObjectOptions, r as __ΩGenerateTypeScriptInterfaceOptions, t as GenerateTypeScriptInterfaceOptions } from "../typescript-
|
|
1
|
+
import { a as generateTypeScriptObject, i as __ΩGenerateTypeScriptObjectOptions, n as GenerateTypeScriptObjectOptions, r as __ΩGenerateTypeScriptInterfaceOptions, t as GenerateTypeScriptInterfaceOptions } from "../typescript-CXP7Oa6_.cjs";
|
|
2
2
|
export { GenerateTypeScriptInterfaceOptions, GenerateTypeScriptObjectOptions, __ΩGenerateTypeScriptInterfaceOptions, __ΩGenerateTypeScriptObjectOptions, generateTypeScriptObject };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as generateTypeScriptObject, i as __ΩGenerateTypeScriptObjectOptions, n as GenerateTypeScriptObjectOptions, r as __ΩGenerateTypeScriptInterfaceOptions, t as GenerateTypeScriptInterfaceOptions } from "../typescript-
|
|
1
|
+
import { a as generateTypeScriptObject, i as __ΩGenerateTypeScriptObjectOptions, n as GenerateTypeScriptObjectOptions, r as __ΩGenerateTypeScriptInterfaceOptions, t as GenerateTypeScriptInterfaceOptions } from "../typescript-DvynKONm.mjs";
|
|
2
2
|
export { GenerateTypeScriptInterfaceOptions, GenerateTypeScriptObjectOptions, __ΩGenerateTypeScriptInterfaceOptions, __ΩGenerateTypeScriptObjectOptions, generateTypeScriptObject };
|
package/dist/index.cjs
CHANGED
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
3
|
-
require('./context-
|
|
4
|
-
const require_output = require('./output-
|
|
3
|
+
require('./context-DNdlL_gp.cjs');
|
|
4
|
+
const require_output = require('./output-B52VAyyC.cjs');
|
|
5
|
+
const require_meta = require('./meta-BjTflizw.cjs');
|
|
5
6
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
7
|
let __alloy_js_core = require("@alloy-js/core");
|
|
7
8
|
let __alloy_js_rollup_plugin = require("@alloy-js/rollup-plugin");
|
|
8
9
|
__alloy_js_rollup_plugin = require_chunk.__toESM(__alloy_js_rollup_plugin);
|
|
9
10
|
let __stryke_json_storm_json = require("@stryke/json/storm-json");
|
|
10
11
|
let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
11
|
-
let node_async_hooks = require("node:async_hooks");
|
|
12
|
-
let unctx = require("unctx");
|
|
13
12
|
|
|
14
|
-
//#region src/internal/unctx.ts
|
|
15
|
-
const unctx$1 = (0, unctx.createContext)({
|
|
16
|
-
asyncContext: true,
|
|
17
|
-
AsyncLocalStorage: node_async_hooks.AsyncLocalStorage
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
13
|
//#region src/index.tsx
|
|
22
14
|
/**
|
|
23
15
|
* Alloy-js plugin for Powerlines.
|
|
@@ -57,46 +49,47 @@ const plugin = (options = {}) => {
|
|
|
57
49
|
order: "pre",
|
|
58
50
|
async handler() {
|
|
59
51
|
this.debug("Attaching the `render` method to the context object.");
|
|
60
|
-
this.render = async (
|
|
52
|
+
this.render = async (renderCallback) => {
|
|
53
|
+
const _self$ = this;
|
|
61
54
|
const meta = {};
|
|
62
|
-
await
|
|
63
|
-
value:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
storage: metadata.storage,
|
|
89
|
-
extension: (0, __stryke_path_file_path_fns.findFileExtension)(file.path)
|
|
90
|
-
});
|
|
91
|
-
} else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
|
|
55
|
+
const output = await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_meta.MetaContext.Provider, {
|
|
56
|
+
value: meta,
|
|
57
|
+
get children() {
|
|
58
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_output.Output, {
|
|
59
|
+
context: _self$,
|
|
60
|
+
get basePath() {
|
|
61
|
+
return _self$.workspaceConfig.workspaceRoot;
|
|
62
|
+
},
|
|
63
|
+
get children() {
|
|
64
|
+
return renderCallback();
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}));
|
|
69
|
+
this.debug("Processing rendered output from Alloy-js.");
|
|
70
|
+
await (0, __alloy_js_core.traverseOutput)(output, {
|
|
71
|
+
visitDirectory: (directory) => {
|
|
72
|
+
if (this.fs.existsSync(directory.path)) return;
|
|
73
|
+
this.fs.mkdirSync(directory.path);
|
|
74
|
+
},
|
|
75
|
+
visitFile: (file) => {
|
|
76
|
+
if ("contents" in file) {
|
|
77
|
+
const metadata = meta[file.path] ?? {};
|
|
78
|
+
if (metadata.kind === "builtin") {
|
|
79
|
+
if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
|
|
80
|
+
this.emitBuiltinSync(file.contents, metadata.id, {
|
|
92
81
|
skipFormat: metadata.skipFormat,
|
|
93
82
|
storage: metadata.storage,
|
|
94
|
-
|
|
83
|
+
extension: (0, __stryke_path_file_path_fns.findFileExtension)(file.path)
|
|
95
84
|
});
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
85
|
+
} else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
|
|
86
|
+
skipFormat: metadata.skipFormat,
|
|
87
|
+
storage: metadata.storage,
|
|
88
|
+
...metadata.typeDefinition ?? {}
|
|
89
|
+
});
|
|
90
|
+
else this.emitSync(file.contents, file.path, metadata);
|
|
91
|
+
} else this.fs.copySync(file.sourcePath, file.path);
|
|
92
|
+
}
|
|
100
93
|
});
|
|
101
94
|
};
|
|
102
95
|
}
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAkCA;;;;AAwHc,cAxHD,MAwHC,EAAA,CAAA,iBAvHK,kBAuHL,GAvH0B,kBAuH1B,CAAA,CAAA,OAAA,CAAA,EArHH,kBAqHG,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA,EAAA"}
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAkCA;;;;AAwHc,cAxHD,MAwHC,EAAA,CAAA,iBAvHK,kBAuHL,GAvH0B,kBAuH1B,CAAA,CAAA,OAAA,CAAA,EArHH,kBAqHG,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA,EAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
import "./context-
|
|
2
|
-
import { t as Output$1 } from "./output-
|
|
1
|
+
import "./context-CdPajCh6.mjs";
|
|
2
|
+
import { t as Output$1 } from "./output-CPbwcL2j.mjs";
|
|
3
|
+
import { t as MetaContext } from "./meta-D0pfCtdR.mjs";
|
|
3
4
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
4
5
|
import { renderAsync, traverseOutput } from "@alloy-js/core";
|
|
5
6
|
import rollupPlugin from "@alloy-js/rollup-plugin";
|
|
6
7
|
import { StormJSON } from "@stryke/json/storm-json";
|
|
7
8
|
import { findFileExtension } from "@stryke/path/file-path-fns";
|
|
8
|
-
import { AsyncLocalStorage } from "node:async_hooks";
|
|
9
|
-
import { createContext as createContext$1 } from "unctx";
|
|
10
9
|
|
|
11
|
-
//#region src/internal/unctx.ts
|
|
12
|
-
const unctx = createContext$1({
|
|
13
|
-
asyncContext: true,
|
|
14
|
-
AsyncLocalStorage
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
10
|
//#region src/index.tsx
|
|
19
11
|
/**
|
|
20
12
|
* Alloy-js plugin for Powerlines.
|
|
@@ -54,46 +46,47 @@ const plugin = (options = {}) => {
|
|
|
54
46
|
order: "pre",
|
|
55
47
|
async handler() {
|
|
56
48
|
this.debug("Attaching the `render` method to the context object.");
|
|
57
|
-
this.render = async (
|
|
49
|
+
this.render = async (renderCallback) => {
|
|
50
|
+
const _self$ = this;
|
|
58
51
|
const meta = {};
|
|
59
|
-
await
|
|
60
|
-
value:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
storage: metadata.storage,
|
|
86
|
-
extension: findFileExtension(file.path)
|
|
87
|
-
});
|
|
88
|
-
} else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
|
|
52
|
+
const output = await renderAsync(createComponent(MetaContext.Provider, {
|
|
53
|
+
value: meta,
|
|
54
|
+
get children() {
|
|
55
|
+
return createComponent(Output$1, {
|
|
56
|
+
context: _self$,
|
|
57
|
+
get basePath() {
|
|
58
|
+
return _self$.workspaceConfig.workspaceRoot;
|
|
59
|
+
},
|
|
60
|
+
get children() {
|
|
61
|
+
return renderCallback();
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}));
|
|
66
|
+
this.debug("Processing rendered output from Alloy-js.");
|
|
67
|
+
await traverseOutput(output, {
|
|
68
|
+
visitDirectory: (directory) => {
|
|
69
|
+
if (this.fs.existsSync(directory.path)) return;
|
|
70
|
+
this.fs.mkdirSync(directory.path);
|
|
71
|
+
},
|
|
72
|
+
visitFile: (file) => {
|
|
73
|
+
if ("contents" in file) {
|
|
74
|
+
const metadata = meta[file.path] ?? {};
|
|
75
|
+
if (metadata.kind === "builtin") {
|
|
76
|
+
if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
|
|
77
|
+
this.emitBuiltinSync(file.contents, metadata.id, {
|
|
89
78
|
skipFormat: metadata.skipFormat,
|
|
90
79
|
storage: metadata.storage,
|
|
91
|
-
|
|
80
|
+
extension: findFileExtension(file.path)
|
|
92
81
|
});
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
82
|
+
} else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
|
|
83
|
+
skipFormat: metadata.skipFormat,
|
|
84
|
+
storage: metadata.storage,
|
|
85
|
+
...metadata.typeDefinition ?? {}
|
|
86
|
+
});
|
|
87
|
+
else this.emitSync(file.contents, file.path, metadata);
|
|
88
|
+
} else this.fs.copySync(file.sourcePath, file.path);
|
|
89
|
+
}
|
|
97
90
|
});
|
|
98
91
|
};
|
|
99
92
|
}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["renderAsync","traverseOutput","rollupPlugin","StormJSON","findFileExtension","Output","MetaContext","plugin","options","name","config","debug","alloy","typescript","build","inputOptions","transform","jsx","plugins","external","configResolved","tsconfig","tsconfigJson","compilerOptions","jsxImportSource","fs","write","tsconfigFilePath","stringify","order","handler","render","renderCallback","_self$","meta","output","_$createComponent","Provider","value","children","context","basePath","workspaceConfig","workspaceRoot","visitDirectory","directory","existsSync","path","mkdirSync","visitFile","file","metadata","kind","id","Error","emitBuiltinSync","contents","skipFormat","storage","extension","emitEntrySync","typeDefinition","emitSync","copySync","sourcePath"],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Children } from \"@alloy-js/core\";\nimport { renderAsync, traverseOutput } from \"@alloy-js/core\";\nimport rollupPlugin from \"@alloy-js/rollup-plugin\";\nimport { StormJSON } from \"@stryke/json/storm-json\";\nimport { findFileExtension } from \"@stryke/path/file-path-fns\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport { Output } from \"./core/components/output\";\nimport { MetaContext, MetaItem } from \"./core/contexts/meta\";\nimport { AlloyPluginContext, AlloyPluginOptions } from \"./types/plugin\";\n\n/**\n * Alloy-js plugin for Powerlines.\n *\n * @param options - The Alloy-js plugin user configuration options.\n * @returns A Powerlines plugin that integrates Alloy-js transformations.\n */\nexport const plugin = <\n TContext extends AlloyPluginContext = AlloyPluginContext\n>(\n options: AlloyPluginOptions = {}\n) => {\n return [\n {\n name: \"alloy:config\",\n config() {\n this.debug(\n \"Updating configuration options to support Alloy-js builds.\"\n );\n\n return {\n alloy: {\n typescript: true,\n ...options\n },\n build: {\n inputOptions: {\n transform: {\n jsx: \"preserve\"\n }\n },\n plugins: [rollupPlugin()],\n external: [/^@alloy-js\\//]\n }\n };\n },\n async configResolved() {\n this.debug(\"Ensuring TypeScript configuration is set up for Alloy-js.\");\n if (\n this.tsconfig.tsconfigJson.compilerOptions?.jsx !== \"preserve\" ||\n this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource !==\n \"@alloy-js/core\"\n ) {\n this.tsconfig.tsconfigJson.compilerOptions ??= {};\n\n if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== \"preserve\") {\n this.tsconfig.tsconfigJson.compilerOptions.jsx = \"preserve\";\n }\n\n if (\n this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !==\n \"@alloy-js/core\"\n ) {\n this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource =\n \"@alloy-js/core\";\n }\n\n await this.fs.write(\n this.tsconfig.tsconfigFilePath,\n StormJSON.stringify(this.tsconfig.tsconfigJson)\n );\n }\n }\n },\n {\n name: \"alloy:attach-render\",\n configResolved: {\n order: \"pre\",\n async handler() {\n this.debug(\"Attaching the `render` method to the context object.\");\n\n this.render = async (renderCallback: () => Children) => {\n const meta = {} as Record<string, MetaItem>;\n\n const output = await renderAsync(\n <MetaContext.Provider value={meta}>\n <Output<TContext>\n context={this}\n basePath={this.workspaceConfig.workspaceRoot}>\n {renderCallback()}\n </Output>\n </MetaContext.Provider>\n );\n\n this.debug(\"Processing rendered output from Alloy-js.\");\n\n await traverseOutput(output, {\n visitDirectory: directory => {\n if (this.fs.existsSync(directory.path)) {\n return;\n }\n\n this.fs.mkdirSync(directory.path);\n },\n visitFile: file => {\n if (\"contents\" in file) {\n const metadata = meta[file.path] ?? {};\n if (metadata.kind === \"builtin\") {\n if (!metadata.id) {\n throw new Error(\n `Built-in file \"${file.path}\" is missing its ID in the render metadata.`\n );\n }\n\n this.emitBuiltinSync(file.contents, metadata.id, {\n skipFormat: metadata.skipFormat,\n storage: metadata.storage,\n extension: findFileExtension(file.path)\n });\n } else if (metadata.kind === \"entry\") {\n this.emitEntrySync(file.contents, file.path, {\n skipFormat: metadata.skipFormat,\n storage: metadata.storage,\n ...(metadata.typeDefinition ?? {})\n });\n } else {\n this.emitSync(file.contents, file.path, metadata);\n }\n } else {\n this.fs.copySync(file.sourcePath, file.path);\n }\n }\n });\n };\n }\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FrontMatterProps, r as __ΩFrontMatterProps, t as FrontMatter } from "../../front-matter-
|
|
1
|
+
import { n as FrontMatterProps, r as __ΩFrontMatterProps, t as FrontMatter } from "../../front-matter-DpKD40Zz.cjs";
|
|
2
2
|
export { FrontMatter, FrontMatterProps, __ΩFrontMatterProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FrontMatterProps, r as __ΩFrontMatterProps, t as FrontMatter } from "../../front-matter-
|
|
1
|
+
import { n as FrontMatterProps, r as __ΩFrontMatterProps, t as FrontMatter } from "../../front-matter-CXfCT8a8.mjs";
|
|
2
2
|
export { FrontMatter, FrontMatterProps, __ΩFrontMatterProps };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
require('../../context-
|
|
2
|
-
require('../../
|
|
3
|
-
require('../../
|
|
4
|
-
require('../../
|
|
5
|
-
require('../../
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
require('../../markdown-table-
|
|
9
|
-
|
|
10
|
-
require('../../components-Gg416Czx.cjs');
|
|
1
|
+
require('../../context-DNdlL_gp.cjs');
|
|
2
|
+
require('../../meta-BjTflizw.cjs');
|
|
3
|
+
require('../../single-line-comment-DvU69OGj.cjs');
|
|
4
|
+
require('../../source-file-BCcq9Me3.cjs');
|
|
5
|
+
const require_front_matter = require('../../front-matter-DZ1tB-Uj.cjs');
|
|
6
|
+
const require_markdown_file = require('../../markdown-file-B6gbsDmK.cjs');
|
|
7
|
+
require('../../markdown-table-BWPm6GbJ.cjs');
|
|
8
|
+
const require_markdown_table$1 = require('../../markdown-table-eTnxxb46.cjs');
|
|
9
|
+
require('../../components-DPKSrvP-.cjs');
|
|
11
10
|
|
|
12
11
|
exports.FrontMatter = require_front_matter.FrontMatter;
|
|
13
12
|
exports.MarkdownFile = require_markdown_file.MarkdownFile;
|