@powerlines/plugin-alloy 0.19.33 → 0.19.35
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/{chunk-CbDLau6x.cjs → _virtual/rolldown_runtime.cjs} +1 -6
- package/dist/core/components/index.cjs +6 -11
- package/dist/core/components/index.d.cts +3 -9
- package/dist/core/components/index.d.mts +3 -9
- package/dist/core/components/index.mjs +3 -8
- package/dist/core/components/output.cjs +39 -6
- package/dist/core/components/output.d.cts +25 -7
- package/dist/core/components/output.d.cts.map +1 -0
- package/dist/core/components/output.d.mts +25 -7
- package/dist/core/components/output.d.mts.map +1 -0
- package/dist/core/components/output.mjs +39 -6
- package/dist/core/components/output.mjs.map +1 -0
- package/dist/core/components/single-line-comment.cjs +21 -2
- package/dist/core/components/single-line-comment.d.cts +23 -3
- package/dist/core/components/single-line-comment.d.cts.map +1 -0
- package/dist/core/components/single-line-comment.d.mts +23 -3
- package/dist/core/components/single-line-comment.d.mts.map +1 -0
- package/dist/core/components/single-line-comment.mjs +21 -2
- package/dist/core/components/single-line-comment.mjs.map +1 -0
- package/dist/core/components/source-file.cjs +62 -3
- package/dist/core/components/source-file.d.cts +33 -3
- package/dist/core/components/source-file.d.cts.map +1 -0
- package/dist/core/components/source-file.d.mts +33 -3
- package/dist/core/components/source-file.d.mts.map +1 -0
- package/dist/core/components/source-file.mjs +61 -3
- package/dist/core/components/source-file.mjs.map +1 -0
- package/dist/core/contexts/context.cjs +39 -5
- package/dist/core/contexts/context.d.cts +30 -2
- package/dist/core/contexts/context.d.cts.map +1 -0
- package/dist/core/contexts/context.d.mts +30 -2
- package/dist/core/contexts/context.d.mts.map +1 -0
- package/dist/core/contexts/context.mjs +36 -2
- package/dist/core/contexts/context.mjs.map +1 -0
- package/dist/core/contexts/index.cjs +19 -20
- package/dist/core/contexts/index.d.cts +3 -5
- package/dist/core/contexts/index.d.mts +3 -5
- package/dist/core/contexts/index.mjs +3 -4
- package/dist/core/contexts/meta.cjs +39 -5
- package/dist/core/contexts/meta.d.cts +48 -2
- package/dist/core/contexts/meta.d.cts.map +1 -0
- package/dist/core/contexts/meta.d.mts +48 -2
- package/dist/core/contexts/meta.d.mts.map +1 -0
- package/dist/core/contexts/meta.mjs +36 -2
- package/dist/core/contexts/meta.mjs.map +1 -0
- package/dist/core/contexts/reflection.cjs +67 -9
- package/dist/core/contexts/reflection.d.cts +53 -3
- package/dist/core/contexts/reflection.d.cts.map +1 -0
- package/dist/core/contexts/reflection.d.mts +53 -3
- package/dist/core/contexts/reflection.d.mts.map +1 -0
- package/dist/core/contexts/reflection.mjs +60 -2
- package/dist/core/contexts/reflection.mjs.map +1 -0
- package/dist/core/index.cjs +27 -27
- package/dist/core/index.d.cts +8 -9
- package/dist/core/index.d.mts +8 -9
- package/dist/core/index.mjs +8 -8
- package/dist/helpers/capnp.cjs +276 -18
- package/dist/helpers/capnp.d.cts +88 -2
- package/dist/helpers/capnp.d.cts.map +1 -0
- package/dist/helpers/capnp.d.mts +88 -2
- package/dist/helpers/capnp.d.mts.map +1 -0
- package/dist/helpers/capnp.mjs +259 -2
- package/dist/helpers/capnp.mjs.map +1 -0
- package/dist/helpers/create-builtin.cjs +18 -2
- package/dist/helpers/create-builtin.d.cts +16 -2
- package/dist/helpers/create-builtin.d.cts.map +1 -0
- package/dist/helpers/create-builtin.d.mts +16 -2
- package/dist/helpers/create-builtin.d.mts.map +1 -0
- package/dist/helpers/create-builtin.mjs +18 -2
- package/dist/helpers/create-builtin.mjs.map +1 -0
- package/dist/helpers/index.cjs +23 -23
- 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 +15 -2
- package/dist/helpers/refkey.d.cts +14 -2
- package/dist/helpers/refkey.d.cts.map +1 -0
- package/dist/helpers/refkey.d.mts +14 -2
- package/dist/helpers/refkey.d.mts.map +1 -0
- package/dist/helpers/refkey.mjs +15 -2
- package/dist/helpers/refkey.mjs.map +1 -0
- package/dist/helpers/typescript.cjs +45 -2
- package/dist/helpers/typescript.d.cts +26 -2
- package/dist/helpers/typescript.d.cts.map +1 -0
- package/dist/helpers/typescript.d.mts +26 -2
- package/dist/helpers/typescript.d.mts.map +1 -0
- package/dist/helpers/typescript.mjs +45 -2
- package/dist/helpers/typescript.mjs.map +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/markdown/components/front-matter.cjs +27 -2
- package/dist/markdown/components/front-matter.d.cts +16 -2
- package/dist/markdown/components/front-matter.d.cts.map +1 -0
- package/dist/markdown/components/front-matter.d.mts +16 -2
- package/dist/markdown/components/front-matter.d.mts.map +1 -0
- package/dist/markdown/components/front-matter.mjs +27 -2
- package/dist/markdown/components/front-matter.mjs.map +1 -0
- package/dist/markdown/components/index.cjs +9 -15
- package/dist/markdown/components/index.d.cts +3 -7
- package/dist/markdown/components/index.d.mts +3 -7
- package/dist/markdown/components/index.mjs +3 -9
- package/dist/markdown/components/markdown-file.cjs +130 -8
- package/dist/markdown/components/markdown-file.d.cts +29 -5
- package/dist/markdown/components/markdown-file.d.cts.map +1 -0
- package/dist/markdown/components/markdown-file.d.mts +29 -5
- package/dist/markdown/components/markdown-file.d.mts.map +1 -0
- package/dist/markdown/components/markdown-file.mjs +129 -7
- package/dist/markdown/components/markdown-file.mjs.map +1 -0
- package/dist/markdown/components/markdown-table.cjs +100 -5
- package/dist/markdown/components/markdown-table.d.cts +28 -4
- package/dist/markdown/components/markdown-table.d.cts.map +1 -0
- package/dist/markdown/components/markdown-table.d.mts +28 -4
- package/dist/markdown/components/markdown-table.d.mts.map +1 -0
- package/dist/markdown/components/markdown-table.mjs +98 -3
- package/dist/markdown/components/markdown-table.mjs.map +1 -0
- package/dist/markdown/contexts/index.cjs +5 -6
- package/dist/markdown/contexts/index.d.cts +1 -2
- package/dist/markdown/contexts/index.d.mts +1 -2
- package/dist/markdown/contexts/index.mjs +1 -2
- package/dist/markdown/contexts/markdown-table.cjs +36 -5
- package/dist/markdown/contexts/markdown-table.d.cts +38 -2
- package/dist/markdown/contexts/markdown-table.d.cts.map +1 -0
- package/dist/markdown/contexts/markdown-table.d.mts +38 -2
- package/dist/markdown/contexts/markdown-table.d.mts.map +1 -0
- package/dist/markdown/contexts/markdown-table.mjs +33 -2
- package/dist/markdown/contexts/markdown-table.mjs.map +1 -0
- package/dist/markdown/index.cjs +16 -20
- package/dist/markdown/index.d.cts +6 -8
- package/dist/markdown/index.d.mts +6 -8
- package/dist/markdown/index.mjs +6 -10
- package/dist/render.cjs +1 -1
- package/dist/types/components.cjs +0 -1
- package/dist/types/components.d.cts +143 -2
- package/dist/types/components.d.cts.map +1 -0
- package/dist/types/components.d.mts +143 -2
- package/dist/types/components.d.mts.map +1 -0
- package/dist/types/components.mjs +0 -2
- package/dist/types/index.cjs +0 -2
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.mjs +0 -3
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +39 -2
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +39 -2
- package/dist/types/plugin.d.mts.map +1 -0
- package/dist/types/plugin.mjs +0 -2
- package/dist/typescript/components/builtin-file.cjs +61 -8
- package/dist/typescript/components/builtin-file.d.cts +35 -6
- package/dist/typescript/components/builtin-file.d.cts.map +1 -0
- package/dist/typescript/components/builtin-file.d.mts +35 -6
- package/dist/typescript/components/builtin-file.d.mts.map +1 -0
- package/dist/typescript/components/builtin-file.mjs +61 -8
- package/dist/typescript/components/builtin-file.mjs.map +1 -0
- package/dist/typescript/components/dynamic-import-statement.cjs +24 -2
- package/dist/typescript/components/dynamic-import-statement.d.cts +33 -2
- package/dist/typescript/components/dynamic-import-statement.d.cts.map +1 -0
- package/dist/typescript/components/dynamic-import-statement.d.mts +33 -2
- package/dist/typescript/components/dynamic-import-statement.d.mts.map +1 -0
- package/dist/typescript/components/dynamic-import-statement.mjs +24 -2
- package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -0
- package/dist/typescript/components/entry-file.cjs +41 -7
- package/dist/typescript/components/entry-file.d.cts +28 -5
- package/dist/typescript/components/entry-file.d.cts.map +1 -0
- package/dist/typescript/components/entry-file.d.mts +28 -5
- package/dist/typescript/components/entry-file.d.mts.map +1 -0
- package/dist/typescript/components/entry-file.mjs +40 -7
- package/dist/typescript/components/entry-file.mjs.map +1 -0
- package/dist/typescript/components/index.cjs +43 -49
- package/dist/typescript/components/index.d.cts +9 -12
- package/dist/typescript/components/index.d.mts +9 -12
- package/dist/typescript/components/index.mjs +9 -15
- package/dist/typescript/components/record-expression.cjs +11 -2
- package/dist/typescript/components/record-expression.d.cts +13 -2
- package/dist/typescript/components/record-expression.d.cts.map +1 -0
- package/dist/typescript/components/record-expression.d.mts +13 -2
- package/dist/typescript/components/record-expression.d.mts.map +1 -0
- package/dist/typescript/components/record-expression.mjs +11 -2
- package/dist/typescript/components/record-expression.mjs.map +1 -0
- package/dist/typescript/components/tsdoc-reflection.cjs +177 -7
- package/dist/typescript/components/tsdoc-reflection.d.cts +19 -4
- package/dist/typescript/components/tsdoc-reflection.d.cts.map +1 -0
- package/dist/typescript/components/tsdoc-reflection.d.mts +19 -4
- package/dist/typescript/components/tsdoc-reflection.d.mts.map +1 -0
- package/dist/typescript/components/tsdoc-reflection.mjs +175 -5
- package/dist/typescript/components/tsdoc-reflection.mjs.map +1 -0
- package/dist/typescript/components/tsdoc.cjs +484 -22
- package/dist/typescript/components/tsdoc.d.cts +164 -3
- package/dist/typescript/components/tsdoc.d.cts.map +1 -0
- package/dist/typescript/components/tsdoc.d.mts +164 -3
- package/dist/typescript/components/tsdoc.d.mts.map +1 -0
- package/dist/typescript/components/tsdoc.mjs +465 -3
- package/dist/typescript/components/tsdoc.mjs.map +1 -0
- package/dist/typescript/components/typescript-file.cjs +215 -8
- package/dist/typescript/components/typescript-file.d.cts +50 -4
- package/dist/typescript/components/typescript-file.d.cts.map +1 -0
- package/dist/typescript/components/typescript-file.d.mts +50 -4
- package/dist/typescript/components/typescript-file.d.mts.map +1 -0
- package/dist/typescript/components/typescript-file.mjs +213 -6
- package/dist/typescript/components/typescript-file.mjs.map +1 -0
- package/dist/typescript/components/typescript-interface.cjs +72 -7
- package/dist/typescript/components/typescript-interface.d.cts +26 -3
- package/dist/typescript/components/typescript-interface.d.cts.map +1 -0
- package/dist/typescript/components/typescript-interface.d.mts +26 -3
- package/dist/typescript/components/typescript-interface.d.mts.map +1 -0
- package/dist/typescript/components/typescript-interface.mjs +71 -6
- package/dist/typescript/components/typescript-interface.mjs.map +1 -0
- package/dist/typescript/components/typescript-object.cjs +124 -7
- package/dist/typescript/components/typescript-object.d.cts +30 -3
- package/dist/typescript/components/typescript-object.d.cts.map +1 -0
- package/dist/typescript/components/typescript-object.d.mts +30 -3
- package/dist/typescript/components/typescript-object.d.mts.map +1 -0
- package/dist/typescript/components/typescript-object.mjs +123 -6
- package/dist/typescript/components/typescript-object.mjs.map +1 -0
- package/dist/typescript/index.cjs +44 -49
- package/dist/typescript/index.d.cts +10 -12
- package/dist/typescript/index.d.mts +10 -12
- package/dist/typescript/index.mjs +10 -15
- package/package.json +6 -6
- package/dist/builtin-file-BdkkDbuv.mjs +0 -62
- package/dist/builtin-file-BdkkDbuv.mjs.map +0 -1
- package/dist/builtin-file-CQAeHqiO.cjs +0 -67
- package/dist/builtin-file-CiMiD-Yn.d.mts +0 -35
- package/dist/builtin-file-CiMiD-Yn.d.mts.map +0 -1
- package/dist/builtin-file-GmfaWXJY.d.cts +0 -35
- package/dist/builtin-file-GmfaWXJY.d.cts.map +0 -1
- package/dist/capnp-BN8Yh6nt.d.mts +0 -88
- package/dist/capnp-BN8Yh6nt.d.mts.map +0 -1
- package/dist/capnp-Bn9LSaf5.d.cts +0 -88
- package/dist/capnp-Bn9LSaf5.d.cts.map +0 -1
- package/dist/capnp-ClfqI-5t.cjs +0 -356
- package/dist/capnp-XK1IvfIR.mjs +0 -260
- package/dist/capnp-XK1IvfIR.mjs.map +0 -1
- package/dist/components-B0evB5xd.cjs +0 -0
- package/dist/components-BHsPgUVD.mjs +0 -1
- package/dist/components-BNK9p5AE.cjs +0 -0
- package/dist/components-C4MWIzKk.mjs +0 -1
- package/dist/components-CpcNHd1P.d.mts +0 -143
- package/dist/components-CpcNHd1P.d.mts.map +0 -1
- package/dist/components-DPKSrvP-.cjs +0 -0
- package/dist/components-Das8TEFO.mjs +0 -1
- package/dist/components-IK2mq84Q.d.cts +0 -143
- package/dist/components-IK2mq84Q.d.cts.map +0 -1
- package/dist/components-ISRFDWTF.cjs +0 -0
- package/dist/components-bxkcKDVx.mjs +0 -1
- package/dist/context-7oUaz8OU.d.cts +0 -30
- package/dist/context-7oUaz8OU.d.cts.map +0 -1
- package/dist/context-BAEo3418.d.mts +0 -30
- package/dist/context-BAEo3418.d.mts.map +0 -1
- package/dist/context-CKFN898c.mjs +0 -37
- package/dist/context-CKFN898c.mjs.map +0 -1
- package/dist/context-DNdlL_gp.cjs +0 -60
- package/dist/contexts-DWGMeWga.cjs +0 -0
- package/dist/contexts-DppcDJxB.mjs +0 -1
- package/dist/contexts-J643Nrrt.cjs +0 -0
- package/dist/contexts-d0vn6-x6.mjs +0 -1
- package/dist/create-builtin-BTtoNoeS.d.mts +0 -16
- package/dist/create-builtin-BTtoNoeS.d.mts.map +0 -1
- package/dist/create-builtin-BiKyN2s2.cjs +0 -24
- package/dist/create-builtin-C4n9BYjY.mjs +0 -19
- package/dist/create-builtin-C4n9BYjY.mjs.map +0 -1
- package/dist/create-builtin-DvcoEGqh.d.cts +0 -16
- package/dist/create-builtin-DvcoEGqh.d.cts.map +0 -1
- package/dist/dynamic-import-statement-BVggdOVL.mjs +0 -25
- package/dist/dynamic-import-statement-BVggdOVL.mjs.map +0 -1
- package/dist/dynamic-import-statement-CNkFdigQ.d.mts +0 -33
- package/dist/dynamic-import-statement-CNkFdigQ.d.mts.map +0 -1
- package/dist/dynamic-import-statement-CmMuHy6m.d.cts +0 -33
- package/dist/dynamic-import-statement-CmMuHy6m.d.cts.map +0 -1
- package/dist/dynamic-import-statement-Dy_MY_Ua.cjs +0 -30
- package/dist/entry-file-D5u7AjDL.cjs +0 -47
- package/dist/entry-file-DVYjczbC.d.mts +0 -28
- package/dist/entry-file-DVYjczbC.d.mts.map +0 -1
- package/dist/entry-file-Fw7DyszP.mjs +0 -41
- package/dist/entry-file-Fw7DyszP.mjs.map +0 -1
- package/dist/entry-file-xdUfTbOs.d.cts +0 -28
- package/dist/entry-file-xdUfTbOs.d.cts.map +0 -1
- package/dist/front-matter-DZ1tB-Uj.cjs +0 -33
- package/dist/front-matter-Dh3d0_QX.d.cts +0 -16
- package/dist/front-matter-Dh3d0_QX.d.cts.map +0 -1
- package/dist/front-matter-DpcRWZVa.d.mts +0 -16
- package/dist/front-matter-DpcRWZVa.d.mts.map +0 -1
- package/dist/front-matter-Dzh6QhN-.mjs +0 -28
- package/dist/front-matter-Dzh6QhN-.mjs.map +0 -1
- package/dist/index-BUYyA1Xh.d.cts +0 -1
- package/dist/index-B_BBnMou.d.mts +0 -1
- package/dist/index-Ch3mSML4.d.cts +0 -1
- package/dist/index-CzItj62a.d.mts +0 -1
- package/dist/index-DHFfG4yr.d.cts +0 -1
- package/dist/index-DgJfEygr.d.mts +0 -1
- package/dist/index-Dt_vyhB_.d.cts +0 -1
- package/dist/index-Iujpc9_6.d.mts +0 -1
- package/dist/index-qCd8f7Um.d.cts +0 -1
- package/dist/index-uY8Qbwfx.d.mts +0 -1
- package/dist/markdown-file-CFt8hI37.cjs +0 -141
- package/dist/markdown-file-Dw1Vv4af.d.mts +0 -29
- package/dist/markdown-file-Dw1Vv4af.d.mts.map +0 -1
- package/dist/markdown-file-fsUT-8rA.d.cts +0 -29
- package/dist/markdown-file-fsUT-8rA.d.cts.map +0 -1
- package/dist/markdown-file-k2M9ZbM0.mjs +0 -130
- package/dist/markdown-file-k2M9ZbM0.mjs.map +0 -1
- package/dist/markdown-table-BKaAfa6u.mjs +0 -34
- package/dist/markdown-table-BKaAfa6u.mjs.map +0 -1
- package/dist/markdown-table-BWPm6GbJ.cjs +0 -57
- package/dist/markdown-table-Ba6OVv17.d.cts +0 -38
- package/dist/markdown-table-Ba6OVv17.d.cts.map +0 -1
- package/dist/markdown-table-C3pW_3Ss.d.mts +0 -38
- package/dist/markdown-table-C3pW_3Ss.d.mts.map +0 -1
- package/dist/markdown-table-CRVCcmmS.mjs +0 -99
- package/dist/markdown-table-CRVCcmmS.mjs.map +0 -1
- package/dist/markdown-table-DAYxgSQH.d.mts +0 -28
- package/dist/markdown-table-DAYxgSQH.d.mts.map +0 -1
- package/dist/markdown-table-Dcee_Q7w.d.cts +0 -28
- package/dist/markdown-table-Dcee_Q7w.d.cts.map +0 -1
- package/dist/markdown-table-eTnxxb46.cjs +0 -116
- package/dist/meta-B8vjGEJI.d.cts +0 -48
- package/dist/meta-B8vjGEJI.d.cts.map +0 -1
- package/dist/meta-BVJcyXVs.cjs +0 -60
- package/dist/meta-D2yuTClk.d.mts +0 -48
- package/dist/meta-D2yuTClk.d.mts.map +0 -1
- package/dist/meta-YszNJizK.mjs +0 -37
- package/dist/meta-YszNJizK.mjs.map +0 -1
- package/dist/output-B5O_qz0i.cjs +0 -44
- package/dist/output-B5v8eGOS.d.cts +0 -24
- package/dist/output-B5v8eGOS.d.cts.map +0 -1
- package/dist/output-BvLp1fyI.mjs +0 -39
- package/dist/output-BvLp1fyI.mjs.map +0 -1
- package/dist/output-QwbsV2bO.d.mts +0 -24
- package/dist/output-QwbsV2bO.d.mts.map +0 -1
- package/dist/plugin--P3zPhDL.d.cts +0 -39
- package/dist/plugin--P3zPhDL.d.cts.map +0 -1
- package/dist/plugin-B8wUxSXi.cjs +0 -0
- package/dist/plugin-DTwUbNHt.mjs +0 -1
- package/dist/plugin-IvNRWrk4.d.mts +0 -39
- package/dist/plugin-IvNRWrk4.d.mts.map +0 -1
- package/dist/record-expression-6ElbFyR0.cjs +0 -17
- package/dist/record-expression-BHpXe3mY.mjs +0 -12
- package/dist/record-expression-BHpXe3mY.mjs.map +0 -1
- package/dist/record-expression-CJcabN6g.d.cts +0 -13
- package/dist/record-expression-CJcabN6g.d.cts.map +0 -1
- package/dist/record-expression-DlAsQ3Xo.d.mts +0 -13
- package/dist/record-expression-DlAsQ3Xo.d.mts.map +0 -1
- package/dist/refkey-BUCGYKFp.d.cts +0 -14
- package/dist/refkey-BUCGYKFp.d.cts.map +0 -1
- package/dist/refkey-BYkTQR2j.d.mts +0 -14
- package/dist/refkey-BYkTQR2j.d.mts.map +0 -1
- package/dist/refkey-C08kDOQ0.cjs +0 -21
- package/dist/refkey-CyhX8n2z.mjs +0 -16
- package/dist/refkey-CyhX8n2z.mjs.map +0 -1
- package/dist/reflection-BktS88RM.cjs +0 -108
- package/dist/reflection-CDRGf-os.mjs +0 -61
- package/dist/reflection-CDRGf-os.mjs.map +0 -1
- package/dist/reflection-DoDf7d2P.d.mts +0 -53
- package/dist/reflection-DoDf7d2P.d.mts.map +0 -1
- package/dist/reflection-DroaluKV.d.cts +0 -53
- package/dist/reflection-DroaluKV.d.cts.map +0 -1
- package/dist/single-line-comment-BmjvZ7BN.mjs +0 -22
- package/dist/single-line-comment-BmjvZ7BN.mjs.map +0 -1
- package/dist/single-line-comment-DvzkrIEt.d.mts +0 -23
- package/dist/single-line-comment-DvzkrIEt.d.mts.map +0 -1
- package/dist/single-line-comment-iSGJc1nT.d.cts +0 -23
- package/dist/single-line-comment-iSGJc1nT.d.cts.map +0 -1
- package/dist/single-line-comment-tAWBgL9v.cjs +0 -27
- package/dist/source-file-6kJUbZIx.mjs +0 -62
- package/dist/source-file-6kJUbZIx.mjs.map +0 -1
- package/dist/source-file-D4aKewY_.d.mts +0 -33
- package/dist/source-file-D4aKewY_.d.mts.map +0 -1
- package/dist/source-file-DnqaQY90.cjs +0 -68
- package/dist/source-file-WIVLLeIQ.d.cts +0 -33
- package/dist/source-file-WIVLLeIQ.d.cts.map +0 -1
- package/dist/tsdoc-5v2GSY2e.d.cts +0 -164
- package/dist/tsdoc-5v2GSY2e.d.cts.map +0 -1
- package/dist/tsdoc-B1aBsj0L.mjs +0 -466
- package/dist/tsdoc-B1aBsj0L.mjs.map +0 -1
- package/dist/tsdoc-BsZk3Mo6.d.mts +0 -164
- package/dist/tsdoc-BsZk3Mo6.d.mts.map +0 -1
- package/dist/tsdoc-BufL8muf.cjs +0 -585
- package/dist/tsdoc-reflection-B5-J4ia-.cjs +0 -193
- package/dist/tsdoc-reflection-BAiGJzrO.d.cts +0 -19
- package/dist/tsdoc-reflection-BAiGJzrO.d.cts.map +0 -1
- package/dist/tsdoc-reflection-DeP-cV94.d.mts +0 -19
- package/dist/tsdoc-reflection-DeP-cV94.d.mts.map +0 -1
- package/dist/tsdoc-reflection-g4nQJV4z.mjs +0 -176
- package/dist/tsdoc-reflection-g4nQJV4z.mjs.map +0 -1
- package/dist/typescript-BbjCTT04.cjs +0 -51
- package/dist/typescript-CrVxDaSo.mjs +0 -46
- package/dist/typescript-CrVxDaSo.mjs.map +0 -1
- package/dist/typescript-D2NuvKuU.d.cts +0 -26
- package/dist/typescript-D2NuvKuU.d.cts.map +0 -1
- package/dist/typescript-ImCZ_9UC.d.mts +0 -26
- package/dist/typescript-ImCZ_9UC.d.mts.map +0 -1
- package/dist/typescript-file-4oY1sIRB.cjs +0 -231
- package/dist/typescript-file-Bo3KHWdR.mjs +0 -214
- package/dist/typescript-file-Bo3KHWdR.mjs.map +0 -1
- package/dist/typescript-file-BzXivK-j.d.cts +0 -50
- package/dist/typescript-file-BzXivK-j.d.cts.map +0 -1
- package/dist/typescript-file-DLBBHHWY.d.mts +0 -50
- package/dist/typescript-file-DLBBHHWY.d.mts.map +0 -1
- package/dist/typescript-interface-B0AoZx3f.cjs +0 -83
- package/dist/typescript-interface-CBaHBdis.mjs +0 -72
- package/dist/typescript-interface-CBaHBdis.mjs.map +0 -1
- package/dist/typescript-interface-DYG0IOR-.d.mts +0 -26
- package/dist/typescript-interface-DYG0IOR-.d.mts.map +0 -1
- package/dist/typescript-interface-WKTnM5vn.d.cts +0 -26
- package/dist/typescript-interface-WKTnM5vn.d.cts.map +0 -1
- package/dist/typescript-object-C4d4fThY.cjs +0 -135
- package/dist/typescript-object-Cun6srBu.d.cts +0 -30
- package/dist/typescript-object-Cun6srBu.d.cts.map +0 -1
- package/dist/typescript-object-DDrR7gcH.d.mts +0 -30
- package/dist/typescript-object-DDrR7gcH.d.mts.map +0 -1
- package/dist/typescript-object-DrsEti-t.mjs +0 -124
- package/dist/typescript-object-DrsEti-t.mjs.map +0 -1
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { n as MarkdownTableContext, r as useMarkdownTable } from "./markdown-table-BKaAfa6u.mjs";
|
|
2
|
-
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { Prose, Show, code, computed, splitProps } from "@alloy-js/core";
|
|
4
|
-
import { titleCase } from "@stryke/string-format/title-case";
|
|
5
|
-
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
|
6
|
-
|
|
7
|
-
//#region src/markdown/components/markdown-table.tsx
|
|
8
|
-
/**
|
|
9
|
-
* Component that provides a context for rendering markdown tables.
|
|
10
|
-
*/
|
|
11
|
-
function MarkdownTable(props) {
|
|
12
|
-
const [{ children, data }] = splitProps(props, ["children", "data"]);
|
|
13
|
-
const columns = computed(() => Object.keys(data).map((name, index) => ({
|
|
14
|
-
index,
|
|
15
|
-
name,
|
|
16
|
-
align: "left",
|
|
17
|
-
width: 20
|
|
18
|
-
})));
|
|
19
|
-
return createComponent(MarkdownTableContext.Provider, {
|
|
20
|
-
get value() {
|
|
21
|
-
return {
|
|
22
|
-
columns: columns.value,
|
|
23
|
-
data
|
|
24
|
-
};
|
|
25
|
-
},
|
|
26
|
-
get children() {
|
|
27
|
-
return createComponent(Show, {
|
|
28
|
-
get when() {
|
|
29
|
-
return Boolean(children);
|
|
30
|
-
},
|
|
31
|
-
children
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Component that provides a context for rendering markdown tables.
|
|
38
|
-
*/
|
|
39
|
-
function MarkdownTableColumn(props) {
|
|
40
|
-
const [{ children, width, align, name }] = splitProps(props, [
|
|
41
|
-
"children",
|
|
42
|
-
"width",
|
|
43
|
-
"align",
|
|
44
|
-
"name"
|
|
45
|
-
]);
|
|
46
|
-
const tableContext = useMarkdownTable();
|
|
47
|
-
const columnRef = computed(() => tableContext?.columns.find((c) => c.name === name));
|
|
48
|
-
const indexRef = computed(() => columnRef.value?.index ?? 0);
|
|
49
|
-
const alignRef = computed(() => columnRef.value?.align ?? align ?? "left");
|
|
50
|
-
const widthRef = computed(() => columnRef.value?.width ?? width ?? 20);
|
|
51
|
-
const textLength = computed(() => {
|
|
52
|
-
return (children ? children.toString() : "").length;
|
|
53
|
-
});
|
|
54
|
-
return createComponent(Prose, { get children() {
|
|
55
|
-
return [
|
|
56
|
-
createComponent(Show, {
|
|
57
|
-
get when() {
|
|
58
|
-
return indexRef.value === 0;
|
|
59
|
-
},
|
|
60
|
-
children: "|"
|
|
61
|
-
}),
|
|
62
|
-
createComponent(Show, {
|
|
63
|
-
get when() {
|
|
64
|
-
return Boolean(children);
|
|
65
|
-
},
|
|
66
|
-
get children() {
|
|
67
|
-
return createComponent(Prose, { get children() {
|
|
68
|
-
return code`${alignRef.value === "left" ? " ".repeat(widthRef.value - textLength.value - 1) : " "}${children}${alignRef.value === "right" ? " ".repeat(widthRef.value - textLength.value - 1) : " "}`;
|
|
69
|
-
} });
|
|
70
|
-
}
|
|
71
|
-
}),
|
|
72
|
-
"|"
|
|
73
|
-
];
|
|
74
|
-
} });
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Component that provides a context for rendering markdown tables.
|
|
78
|
-
*/
|
|
79
|
-
function MarkdownTableColumnHeader(props) {
|
|
80
|
-
const [{ children, name }, rest] = splitProps(props, ["children", "name"]);
|
|
81
|
-
return [createComponent(MarkdownTableColumn, mergeProps(rest, {
|
|
82
|
-
name,
|
|
83
|
-
get children() {
|
|
84
|
-
return createComponent(Show, {
|
|
85
|
-
get fallback() {
|
|
86
|
-
return titleCase(name, { useDescriptions: false });
|
|
87
|
-
},
|
|
88
|
-
get when() {
|
|
89
|
-
return !isUndefined(children);
|
|
90
|
-
},
|
|
91
|
-
children
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
}))];
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
//#endregion
|
|
98
|
-
export { MarkdownTableColumn as n, MarkdownTableColumnHeader as r, MarkdownTable as t };
|
|
99
|
-
//# sourceMappingURL=markdown-table-CRVCcmmS.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-table-CRVCcmmS.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,28 +0,0 @@
|
|
|
1
|
-
import { n as ComponentProps } from "./components-CpcNHd1P.mjs";
|
|
2
|
-
import { n as MarkdownTableColumnContextInterface } from "./markdown-table-C3pW_3Ss.mjs";
|
|
3
|
-
import * as _alloy_js_core2 from "@alloy-js/core";
|
|
4
|
-
|
|
5
|
-
//#region src/markdown/components/markdown-table.d.ts
|
|
6
|
-
interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>> extends ComponentProps {
|
|
7
|
-
data: T[];
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Component that provides a context for rendering markdown tables.
|
|
11
|
-
*/
|
|
12
|
-
declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core2.Children;
|
|
13
|
-
type MarkdownTableColumnProps = ComponentProps & Partial<Pick<MarkdownTableColumnContextInterface, "align">> & Required<Pick<MarkdownTableColumnContextInterface, "name">> & {
|
|
14
|
-
width?: number;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Component that provides a context for rendering markdown tables.
|
|
18
|
-
*/
|
|
19
|
-
declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core2.Children;
|
|
20
|
-
/**
|
|
21
|
-
* Component that provides a context for rendering markdown tables.
|
|
22
|
-
*/
|
|
23
|
-
declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core2.Children;
|
|
24
|
-
declare type __ΩMarkdownTableProps = any[];
|
|
25
|
-
declare type __ΩMarkdownTableColumnProps = any[];
|
|
26
|
-
//#endregion
|
|
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-DAYxgSQH.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-table-DAYxgSQH.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"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { n as ComponentProps } from "./components-IK2mq84Q.cjs";
|
|
2
|
-
import { n as MarkdownTableColumnContextInterface } from "./markdown-table-Ba6OVv17.cjs";
|
|
3
|
-
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
4
|
-
|
|
5
|
-
//#region src/markdown/components/markdown-table.d.ts
|
|
6
|
-
interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>> extends ComponentProps {
|
|
7
|
-
data: T[];
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Component that provides a context for rendering markdown tables.
|
|
11
|
-
*/
|
|
12
|
-
declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core0.Children;
|
|
13
|
-
type MarkdownTableColumnProps = ComponentProps & Partial<Pick<MarkdownTableColumnContextInterface, "align">> & Required<Pick<MarkdownTableColumnContextInterface, "name">> & {
|
|
14
|
-
width?: number;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Component that provides a context for rendering markdown tables.
|
|
18
|
-
*/
|
|
19
|
-
declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core0.Children;
|
|
20
|
-
/**
|
|
21
|
-
* Component that provides a context for rendering markdown tables.
|
|
22
|
-
*/
|
|
23
|
-
declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core0.Children;
|
|
24
|
-
declare type __ΩMarkdownTableProps = any[];
|
|
25
|
-
declare type __ΩMarkdownTableColumnProps = any[];
|
|
26
|
-
//#endregion
|
|
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-Dcee_Q7w.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-table-Dcee_Q7w.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,116 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
const require_markdown_table = require('./markdown-table-BWPm6GbJ.cjs');
|
|
3
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
5
|
-
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
6
|
-
let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
7
|
-
|
|
8
|
-
//#region src/markdown/components/markdown-table.tsx
|
|
9
|
-
/**
|
|
10
|
-
* Component that provides a context for rendering markdown tables.
|
|
11
|
-
*/
|
|
12
|
-
function MarkdownTable(props) {
|
|
13
|
-
const [{ children, data }] = (0, __alloy_js_core.splitProps)(props, ["children", "data"]);
|
|
14
|
-
const columns = (0, __alloy_js_core.computed)(() => Object.keys(data).map((name, index) => ({
|
|
15
|
-
index,
|
|
16
|
-
name,
|
|
17
|
-
align: "left",
|
|
18
|
-
width: 20
|
|
19
|
-
})));
|
|
20
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_markdown_table.MarkdownTableContext.Provider, {
|
|
21
|
-
get value() {
|
|
22
|
-
return {
|
|
23
|
-
columns: columns.value,
|
|
24
|
-
data
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
get children() {
|
|
28
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
29
|
-
get when() {
|
|
30
|
-
return Boolean(children);
|
|
31
|
-
},
|
|
32
|
-
children
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Component that provides a context for rendering markdown tables.
|
|
39
|
-
*/
|
|
40
|
-
function MarkdownTableColumn(props) {
|
|
41
|
-
const [{ children, width, align, name }] = (0, __alloy_js_core.splitProps)(props, [
|
|
42
|
-
"children",
|
|
43
|
-
"width",
|
|
44
|
-
"align",
|
|
45
|
-
"name"
|
|
46
|
-
]);
|
|
47
|
-
const tableContext = require_markdown_table.useMarkdownTable();
|
|
48
|
-
const columnRef = (0, __alloy_js_core.computed)(() => tableContext?.columns.find((c) => c.name === name));
|
|
49
|
-
const indexRef = (0, __alloy_js_core.computed)(() => columnRef.value?.index ?? 0);
|
|
50
|
-
const alignRef = (0, __alloy_js_core.computed)(() => columnRef.value?.align ?? align ?? "left");
|
|
51
|
-
const widthRef = (0, __alloy_js_core.computed)(() => columnRef.value?.width ?? width ?? 20);
|
|
52
|
-
const textLength = (0, __alloy_js_core.computed)(() => {
|
|
53
|
-
return (children ? children.toString() : "").length;
|
|
54
|
-
});
|
|
55
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Prose, { get children() {
|
|
56
|
-
return [
|
|
57
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
58
|
-
get when() {
|
|
59
|
-
return indexRef.value === 0;
|
|
60
|
-
},
|
|
61
|
-
children: "|"
|
|
62
|
-
}),
|
|
63
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
64
|
-
get when() {
|
|
65
|
-
return Boolean(children);
|
|
66
|
-
},
|
|
67
|
-
get children() {
|
|
68
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Prose, { get children() {
|
|
69
|
-
return __alloy_js_core.code`${alignRef.value === "left" ? " ".repeat(widthRef.value - textLength.value - 1) : " "}${children}${alignRef.value === "right" ? " ".repeat(widthRef.value - textLength.value - 1) : " "}`;
|
|
70
|
-
} });
|
|
71
|
-
}
|
|
72
|
-
}),
|
|
73
|
-
"|"
|
|
74
|
-
];
|
|
75
|
-
} });
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Component that provides a context for rendering markdown tables.
|
|
79
|
-
*/
|
|
80
|
-
function MarkdownTableColumnHeader(props) {
|
|
81
|
-
const [{ children, name }, rest] = (0, __alloy_js_core.splitProps)(props, ["children", "name"]);
|
|
82
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(MarkdownTableColumn, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
83
|
-
name,
|
|
84
|
-
get children() {
|
|
85
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
86
|
-
get fallback() {
|
|
87
|
-
return (0, __stryke_string_format_title_case.titleCase)(name, { useDescriptions: false });
|
|
88
|
-
},
|
|
89
|
-
get when() {
|
|
90
|
-
return !(0, __stryke_type_checks_is_undefined.isUndefined)(children);
|
|
91
|
-
},
|
|
92
|
-
children
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
}))];
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
//#endregion
|
|
99
|
-
Object.defineProperty(exports, 'MarkdownTable', {
|
|
100
|
-
enumerable: true,
|
|
101
|
-
get: function () {
|
|
102
|
-
return MarkdownTable;
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
Object.defineProperty(exports, 'MarkdownTableColumn', {
|
|
106
|
-
enumerable: true,
|
|
107
|
-
get: function () {
|
|
108
|
-
return MarkdownTableColumn;
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
Object.defineProperty(exports, 'MarkdownTableColumnHeader', {
|
|
112
|
-
enumerable: true,
|
|
113
|
-
get: function () {
|
|
114
|
-
return MarkdownTableColumnHeader;
|
|
115
|
-
}
|
|
116
|
-
});
|
package/dist/meta-B8vjGEJI.d.cts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
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-B8vjGEJI.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta-B8vjGEJI.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"}
|
package/dist/meta-BVJcyXVs.cjs
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
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
|
-
});
|
package/dist/meta-D2yuTClk.d.mts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
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-D2yuTClk.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta-D2yuTClk.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"}
|
package/dist/meta-YszNJizK.mjs
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
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-YszNJizK.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta-YszNJizK.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":""}
|
package/dist/output-B5O_qz0i.cjs
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
const require_context = require('./context-DNdlL_gp.cjs');
|
|
3
|
-
const require_meta = require('./meta-BVJcyXVs.cjs');
|
|
4
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
6
|
-
|
|
7
|
-
//#region src/core/components/output.tsx
|
|
8
|
-
/**
|
|
9
|
-
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
10
|
-
*/
|
|
11
|
-
function Output(props) {
|
|
12
|
-
const [{ children, context, meta }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
13
|
-
"children",
|
|
14
|
-
"context",
|
|
15
|
-
"meta"
|
|
16
|
-
]);
|
|
17
|
-
const contextRef = (0, __alloy_js_core.computed)(() => context);
|
|
18
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_meta.MetaContext.Provider, {
|
|
19
|
-
value: meta,
|
|
20
|
-
get children() {
|
|
21
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_context.PowerlinesContext.Provider, {
|
|
22
|
-
get value() {
|
|
23
|
-
return contextRef.value;
|
|
24
|
-
},
|
|
25
|
-
get children() {
|
|
26
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Output, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
27
|
-
get basePath() {
|
|
28
|
-
return contextRef.value.workspaceConfig.workspaceRoot;
|
|
29
|
-
},
|
|
30
|
-
children
|
|
31
|
-
}));
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
//#endregion
|
|
39
|
-
Object.defineProperty(exports, 'Output', {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () {
|
|
42
|
-
return Output;
|
|
43
|
-
}
|
|
44
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { n as MetaItem } from "./meta-B8vjGEJI.cjs";
|
|
2
|
-
import * as _alloy_js_core11 from "@alloy-js/core";
|
|
3
|
-
import { OutputProps } from "@alloy-js/core";
|
|
4
|
-
import { PluginContext } from "powerlines/types/context";
|
|
5
|
-
|
|
6
|
-
//#region src/core/components/output.d.ts
|
|
7
|
-
interface OutputProps$1<TContext extends PluginContext = PluginContext> extends Omit<OutputProps, "basePath"> {
|
|
8
|
-
/**
|
|
9
|
-
* The current Powerlines process context.
|
|
10
|
-
*/
|
|
11
|
-
context: TContext;
|
|
12
|
-
/**
|
|
13
|
-
* The file metadata collected during rendering.
|
|
14
|
-
*/
|
|
15
|
-
meta: Record<string, MetaItem>;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
19
|
-
*/
|
|
20
|
-
declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps$1<TContext>): _alloy_js_core11.Children;
|
|
21
|
-
declare type __ΩOutputProps = any[];
|
|
22
|
-
//#endregion
|
|
23
|
-
export { OutputProps$1 as n, __ΩOutputProps as r, Output as t };
|
|
24
|
-
//# sourceMappingURL=output-B5v8eGOS.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"output-B5v8eGOS.d.cts","names":[],"sources":["../src/core/components/output.tsx"],"sourcesContent":[],"mappings":";;;;;;UAwBiB,+BACE,gBAAgB,uBACzB,KAAK;;;AAFf;EACmB,OAAA,EAKR,QALQ;EAAgB;;;EAUZ,IAAA,EAAf,MAAe,CAAA,MAAA,EAAA,QAAA,CAAA;;;;AAMvB;AAAwC,iBAAxB,MAAwB,CAAA,iBAAA,aAAA,GAAgB,aAAhB,CAAA,CAAA,KAAA,EAC/B,aAD+B,CACnB,QADmB,CAAA,CAAA,EACpB,gBAAA,CAAU,QADU;AAAgB,8BAAA,GAAA,EAAA"}
|
package/dist/output-BvLp1fyI.mjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { t as PowerlinesContext } from "./context-CKFN898c.mjs";
|
|
2
|
-
import { t as MetaContext } from "./meta-YszNJizK.mjs";
|
|
3
|
-
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
4
|
-
import { Output, computed, splitProps } from "@alloy-js/core";
|
|
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, meta }, rest] = splitProps(props, [
|
|
12
|
-
"children",
|
|
13
|
-
"context",
|
|
14
|
-
"meta"
|
|
15
|
-
]);
|
|
16
|
-
const contextRef = computed(() => context);
|
|
17
|
-
return createComponent(MetaContext.Provider, {
|
|
18
|
-
value: meta,
|
|
19
|
-
get children() {
|
|
20
|
-
return createComponent(PowerlinesContext.Provider, {
|
|
21
|
-
get value() {
|
|
22
|
-
return contextRef.value;
|
|
23
|
-
},
|
|
24
|
-
get children() {
|
|
25
|
-
return createComponent(Output, mergeProps(rest, {
|
|
26
|
-
get basePath() {
|
|
27
|
-
return contextRef.value.workspaceConfig.workspaceRoot;
|
|
28
|
-
},
|
|
29
|
-
children
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
//#endregion
|
|
38
|
-
export { Output$1 as t };
|
|
39
|
-
//# sourceMappingURL=output-BvLp1fyI.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"output-BvLp1fyI.mjs","names":["computed","Output","OutputExternal","splitProps","MetaContext","PowerlinesContext","props","children","context","meta","rest","contextRef","_$createComponent","Provider","value","_$mergeProps","basePath","workspaceConfig","workspaceRoot"],"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 type { PluginContext } from \"powerlines/types/context\";\nimport { MetaContext, MetaItem } from \"../contexts\";\nimport { PowerlinesContext } from \"../contexts/context\";\n\nexport interface OutputProps<\n TContext extends PluginContext = PluginContext\n> extends Omit<OutputPropsExternal, \"basePath\"> {\n /**\n * The current Powerlines process context.\n */\n context: TContext;\n\n /**\n * The file metadata collected during rendering.\n */\n meta: Record<string, MetaItem>;\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, meta }, rest] = splitProps(props, [\n \"children\",\n \"context\",\n \"meta\"\n ]);\n\n const contextRef = computed(() => context);\n\n return (\n <MetaContext.Provider value={meta}>\n <PowerlinesContext.Provider value={contextRef.value}>\n <OutputExternal\n {...rest}\n basePath={contextRef.value.workspaceConfig.workspaceRoot}>\n {children}\n </OutputExternal>\n </PowerlinesContext.Provider>\n </MetaContext.Provider>\n );\n}\n"],"mappings":""}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { n as MetaItem } from "./meta-D2yuTClk.mjs";
|
|
2
|
-
import * as _alloy_js_core1 from "@alloy-js/core";
|
|
3
|
-
import { OutputProps } from "@alloy-js/core";
|
|
4
|
-
import { PluginContext } from "powerlines/types/context";
|
|
5
|
-
|
|
6
|
-
//#region src/core/components/output.d.ts
|
|
7
|
-
interface OutputProps$1<TContext extends PluginContext = PluginContext> extends Omit<OutputProps, "basePath"> {
|
|
8
|
-
/**
|
|
9
|
-
* The current Powerlines process context.
|
|
10
|
-
*/
|
|
11
|
-
context: TContext;
|
|
12
|
-
/**
|
|
13
|
-
* The file metadata collected during rendering.
|
|
14
|
-
*/
|
|
15
|
-
meta: Record<string, MetaItem>;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
19
|
-
*/
|
|
20
|
-
declare function Output$1<TContext extends PluginContext = PluginContext>(props: OutputProps$1<TContext>): _alloy_js_core1.Children;
|
|
21
|
-
declare type __ΩOutputProps = any[];
|
|
22
|
-
//#endregion
|
|
23
|
-
export { OutputProps$1 as n, __ΩOutputProps as r, Output$1 as t };
|
|
24
|
-
//# sourceMappingURL=output-QwbsV2bO.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"output-QwbsV2bO.d.mts","names":[],"sources":["../src/core/components/output.tsx"],"sourcesContent":[],"mappings":";;;;;;UAwBiB,+BACE,gBAAgB,uBACzB,KAAK;;;AAFf;EACmB,OAAA,EAKR,QALQ;EAAgB;;;EAUZ,IAAA,EAAf,MAAe,CAAA,MAAA,EAAA,QAAA,CAAA;;;;AAMvB;AAAwC,iBAAxB,QAAwB,CAAA,iBAAA,aAAA,GAAgB,aAAhB,CAAA,CAAA,KAAA,EAC/B,aAD+B,CACnB,QADmB,CAAA,CAAA,EACpB,eAAA,CAAU,QADU;AAAgB,8BAAA,GAAA,EAAA"}
|