@powerlines/plugin-alloy 0.19.13 → 0.19.15
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-0k9DccCv.cjs +67 -0
- package/dist/builtin-file-DcLp9sck.d.mts +35 -0
- package/dist/builtin-file-DcLp9sck.d.mts.map +1 -0
- package/dist/builtin-file-DtkZ-2Hs.d.cts +35 -0
- package/dist/builtin-file-DtkZ-2Hs.d.cts.map +1 -0
- package/dist/builtin-file-Ie_jPokg.mjs +62 -0
- package/dist/builtin-file-Ie_jPokg.mjs.map +1 -0
- package/dist/builtin-file-MrUfX3YE.d.cts +35 -0
- package/dist/builtin-file-MrUfX3YE.d.cts.map +1 -0
- package/dist/builtin-file-RXdRpQs-.d.mts +35 -0
- package/dist/builtin-file-RXdRpQs-.d.mts.map +1 -0
- package/dist/capnp-CRMDa2Ok.d.mts +88 -0
- package/dist/capnp-CRMDa2Ok.d.mts.map +1 -0
- package/dist/capnp-ClfqI-5t.cjs +356 -0
- package/dist/capnp-CnQcwo0s.mjs +260 -0
- package/dist/capnp-CnQcwo0s.mjs.map +1 -0
- package/dist/capnp-YnGBPkLK.d.cts +88 -0
- package/dist/capnp-YnGBPkLK.d.cts.map +1 -0
- package/dist/{_virtual/rolldown_runtime.cjs → chunk-CbDLau6x.cjs} +6 -1
- package/dist/components-B0evB5xd.cjs +0 -0
- package/dist/components-BNK9p5AE.cjs +0 -0
- package/dist/components-C_Rnle_h.mjs +1 -0
- package/dist/components-CpjG2zC9.mjs +1 -0
- package/dist/components-CrWk5KiP.mjs +1 -0
- package/dist/components-CyQi7RHT.mjs +1 -0
- package/dist/components-DPKSrvP-.cjs +0 -0
- package/dist/components-IRVnipN0.d.cts +143 -0
- package/dist/components-IRVnipN0.d.cts.map +1 -0
- package/dist/components-ISRFDWTF.cjs +0 -0
- package/dist/components-oHSM7vmp.d.mts +143 -0
- package/dist/components-oHSM7vmp.d.mts.map +1 -0
- package/dist/context--KBspFnw.cjs +79 -0
- package/dist/context-Du_bVzRZ.d.mts +67 -0
- package/dist/context-Du_bVzRZ.d.mts.map +1 -0
- package/dist/context-Gqs3Ru42.d.cts +67 -0
- package/dist/context-Gqs3Ru42.d.cts.map +1 -0
- package/dist/context-e2kZWEFW.mjs +51 -0
- package/dist/context-e2kZWEFW.mjs.map +1 -0
- package/dist/contexts-DezKayEz.cjs +0 -0
- package/dist/contexts-J643Nrrt.cjs +0 -0
- package/dist/contexts-_jq-yJQG.mjs +1 -0
- package/dist/contexts-juWSyBfb.mjs +1 -0
- package/dist/core/components/index.cjs +11 -6
- package/dist/core/components/index.d.cts +6 -3
- package/dist/core/components/index.d.mts +6 -3
- package/dist/core/components/index.mjs +8 -3
- package/dist/core/components/output.cjs +2 -32
- package/dist/core/components/output.d.cts +2 -22
- package/dist/core/components/output.d.mts +2 -22
- package/dist/core/components/output.mjs +1 -30
- package/dist/core/components/single-line-comment.cjs +2 -21
- package/dist/core/components/single-line-comment.d.cts +2 -21
- package/dist/core/components/single-line-comment.d.mts +2 -21
- package/dist/core/components/single-line-comment.mjs +1 -19
- package/dist/core/components/source-file.cjs +6 -63
- package/dist/core/components/source-file.d.cts +2 -31
- package/dist/core/components/source-file.d.mts +2 -31
- package/dist/core/components/source-file.mjs +5 -60
- package/dist/core/contexts/context.cjs +7 -53
- package/dist/core/contexts/context.d.cts +1 -65
- package/dist/core/contexts/context.d.mts +1 -65
- package/dist/core/contexts/context.mjs +2 -48
- package/dist/core/contexts/index.cjs +17 -15
- package/dist/core/contexts/index.d.cts +4 -2
- package/dist/core/contexts/index.d.mts +4 -2
- package/dist/core/contexts/index.mjs +4 -2
- package/dist/core/contexts/reflection.cjs +9 -67
- package/dist/core/contexts/reflection.d.cts +2 -51
- package/dist/core/contexts/reflection.d.mts +2 -51
- package/dist/core/contexts/reflection.mjs +1 -58
- package/dist/core/index.cjs +24 -23
- package/dist/core/index.d.cts +8 -7
- package/dist/core/index.d.mts +8 -7
- package/dist/core/index.mjs +8 -7
- package/dist/create-builtin-BiKyN2s2.cjs +24 -0
- package/dist/create-builtin-DFiWd6Zc.d.cts +16 -0
- package/dist/create-builtin-DFiWd6Zc.d.cts.map +1 -0
- package/dist/create-builtin-DQuJyeZw.mjs +19 -0
- package/dist/create-builtin-DQuJyeZw.mjs.map +1 -0
- package/dist/create-builtin-FtQ6qKzX.d.mts +16 -0
- package/dist/create-builtin-FtQ6qKzX.d.mts.map +1 -0
- package/dist/dynamic-import-statement-B5Pdwr4Z.d.mts +33 -0
- package/dist/dynamic-import-statement-B5Pdwr4Z.d.mts.map +1 -0
- package/dist/dynamic-import-statement-BbNJchii.mjs +25 -0
- package/dist/dynamic-import-statement-BbNJchii.mjs.map +1 -0
- package/dist/dynamic-import-statement-DNJlI3ND.d.cts +33 -0
- package/dist/dynamic-import-statement-DNJlI3ND.d.cts.map +1 -0
- package/dist/dynamic-import-statement-DTSUoDt2.d.cts +33 -0
- package/dist/dynamic-import-statement-DTSUoDt2.d.cts.map +1 -0
- package/dist/dynamic-import-statement-Dy_MY_Ua.cjs +30 -0
- package/dist/entry-file-CfMzpF03.d.cts +28 -0
- package/dist/entry-file-CfMzpF03.d.cts.map +1 -0
- package/dist/entry-file-CnC6P3j6.d.mts +28 -0
- package/dist/entry-file-CnC6P3j6.d.mts.map +1 -0
- package/dist/entry-file-D64eurjX.mjs +41 -0
- package/dist/entry-file-D64eurjX.mjs.map +1 -0
- package/dist/entry-file-DVueLVSn.d.cts +28 -0
- package/dist/entry-file-DVueLVSn.d.cts.map +1 -0
- package/dist/entry-file-GR5Rsn25.cjs +47 -0
- package/dist/entry-file-ayzYWEo5.d.mts +28 -0
- package/dist/entry-file-ayzYWEo5.d.mts.map +1 -0
- package/dist/front-matter-2eGRXX11.mjs +28 -0
- package/dist/front-matter-2eGRXX11.mjs.map +1 -0
- package/dist/front-matter-DGpkM9OE.d.mts +16 -0
- package/dist/front-matter-DGpkM9OE.d.mts.map +1 -0
- package/dist/front-matter-DZ1tB-Uj.cjs +33 -0
- package/dist/front-matter-gcouRI-6.d.cts +16 -0
- package/dist/front-matter-gcouRI-6.d.cts.map +1 -0
- package/dist/front-matter-u9H7VPAF.d.cts +16 -0
- package/dist/front-matter-u9H7VPAF.d.cts.map +1 -0
- package/dist/helpers/capnp.cjs +18 -276
- package/dist/helpers/capnp.d.cts +1 -86
- package/dist/helpers/capnp.d.mts +1 -86
- package/dist/helpers/capnp.mjs +1 -257
- package/dist/helpers/create-builtin.cjs +2 -18
- package/dist/helpers/create-builtin.d.cts +1 -14
- package/dist/helpers/create-builtin.d.mts +1 -14
- package/dist/helpers/create-builtin.mjs +1 -16
- 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 +2 -15
- package/dist/helpers/refkey.d.cts +1 -12
- package/dist/helpers/refkey.d.mts +1 -12
- package/dist/helpers/refkey.mjs +1 -13
- package/dist/helpers/typescript.cjs +2 -45
- package/dist/helpers/typescript.d.cts +1 -24
- package/dist/helpers/typescript.d.mts +1 -24
- package/dist/helpers/typescript.mjs +1 -43
- package/dist/index-B-Y-ZG2x.d.mts +1 -0
- package/dist/index-BH1nuHdZ.d.cts +1 -0
- package/dist/index-BUYyA1Xh.d.cts +1 -0
- package/dist/index-C-lwXyQ6.d.mts +1 -0
- package/dist/index-C6HcjJiY.d.mts +1 -0
- package/dist/index-C6yvNuzO.d.cts +1 -0
- package/dist/index-CrhZaFgN.d.cts +1 -0
- package/dist/index-CzItj62a.d.mts +1 -0
- package/dist/index-DcDTDbdz.d.cts +1 -0
- package/dist/index-hcx6LMSC.d.mts +1 -0
- package/dist/index.cjs +8 -6
- package/dist/index.d.cts +3 -2
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +8 -5
- package/dist/index.mjs.map +1 -0
- package/dist/markdown/components/front-matter.cjs +2 -27
- package/dist/markdown/components/front-matter.d.cts +1 -14
- package/dist/markdown/components/front-matter.d.mts +1 -14
- package/dist/markdown/components/front-matter.mjs +1 -25
- package/dist/markdown/components/index.cjs +17 -9
- package/dist/markdown/components/index.d.cts +7 -3
- package/dist/markdown/components/index.d.mts +7 -3
- package/dist/markdown/components/index.mjs +11 -3
- package/dist/markdown/components/markdown-file.cjs +10 -130
- package/dist/markdown/components/markdown-file.d.cts +4 -27
- package/dist/markdown/components/markdown-file.d.mts +4 -27
- package/dist/markdown/components/markdown-file.mjs +8 -127
- package/dist/markdown/components/markdown-table.cjs +5 -100
- package/dist/markdown/components/markdown-table.d.cts +3 -26
- package/dist/markdown/components/markdown-table.d.mts +3 -26
- package/dist/markdown/components/markdown-table.mjs +2 -96
- package/dist/markdown/contexts/index.cjs +6 -5
- package/dist/markdown/contexts/index.d.cts +2 -1
- package/dist/markdown/contexts/index.d.mts +2 -1
- package/dist/markdown/contexts/index.mjs +2 -1
- package/dist/markdown/contexts/markdown-table.cjs +5 -36
- package/dist/markdown/contexts/markdown-table.d.cts +1 -36
- package/dist/markdown/contexts/markdown-table.d.mts +1 -36
- package/dist/markdown/contexts/markdown-table.mjs +1 -31
- package/dist/markdown/index.cjs +22 -16
- package/dist/markdown/index.d.cts +8 -6
- package/dist/markdown/index.d.mts +8 -6
- package/dist/markdown/index.mjs +12 -6
- package/dist/markdown-file-CAwtMwsl.cjs +141 -0
- package/dist/markdown-file-CIGTz9xQ.d.cts +29 -0
- package/dist/markdown-file-CIGTz9xQ.d.cts.map +1 -0
- package/dist/markdown-file-CxDM6MCV.d.cts +29 -0
- package/dist/markdown-file-CxDM6MCV.d.cts.map +1 -0
- package/dist/markdown-file-DIcSvowq.mjs +130 -0
- package/dist/markdown-file-DIcSvowq.mjs.map +1 -0
- package/dist/markdown-file-EtJaVhJ3.d.mts +29 -0
- package/dist/markdown-file-EtJaVhJ3.d.mts.map +1 -0
- package/dist/markdown-table-AoJIzA89.d.cts +28 -0
- package/dist/markdown-table-AoJIzA89.d.cts.map +1 -0
- package/dist/markdown-table-BWPm6GbJ.cjs +57 -0
- package/dist/markdown-table-Br2Ihl2z.d.cts +38 -0
- package/dist/markdown-table-Br2Ihl2z.d.cts.map +1 -0
- package/dist/markdown-table-CFL7L6rA.d.mts +38 -0
- package/dist/markdown-table-CFL7L6rA.d.mts.map +1 -0
- package/dist/markdown-table-ChvYobzz.d.mts +28 -0
- package/dist/markdown-table-ChvYobzz.d.mts.map +1 -0
- package/dist/markdown-table-D3DonpwR.mjs +99 -0
- package/dist/markdown-table-D3DonpwR.mjs.map +1 -0
- package/dist/markdown-table-DFSFKzCN.d.cts +28 -0
- package/dist/markdown-table-DFSFKzCN.d.cts.map +1 -0
- package/dist/markdown-table-eTnxxb46.cjs +116 -0
- package/dist/markdown-table-g6DeP10e.mjs +34 -0
- package/dist/markdown-table-g6DeP10e.mjs.map +1 -0
- package/dist/output-BnmXIAFP.d.cts +24 -0
- package/dist/output-BnmXIAFP.d.cts.map +1 -0
- package/dist/output-CMC94bm-.d.mts +24 -0
- package/dist/output-CMC94bm-.d.mts.map +1 -0
- package/dist/output-CQXrGP3y.cjs +38 -0
- package/dist/output-D3UQ5nZo.mjs +33 -0
- package/dist/output-D3UQ5nZo.mjs.map +1 -0
- package/dist/output-Dq1RRbJY.d.cts +24 -0
- package/dist/output-Dq1RRbJY.d.cts.map +1 -0
- package/dist/plugin-B8wUxSXi.cjs +0 -0
- package/dist/plugin-BmQ6pIes.mjs +1 -0
- package/dist/plugin-C6SupJ8C.d.cts +41 -0
- package/dist/plugin-C6SupJ8C.d.cts.map +1 -0
- package/dist/plugin-bEu9fq1G.d.mts +41 -0
- package/dist/plugin-bEu9fq1G.d.mts.map +1 -0
- package/dist/record-expression-6ElbFyR0.cjs +17 -0
- package/dist/record-expression-BjXMzi4r.mjs +12 -0
- package/dist/record-expression-BjXMzi4r.mjs.map +1 -0
- package/dist/record-expression-adlQJuNw.d.cts +13 -0
- package/dist/record-expression-adlQJuNw.d.cts.map +1 -0
- package/dist/record-expression-c9kQA93k.d.mts +13 -0
- package/dist/record-expression-c9kQA93k.d.mts.map +1 -0
- package/dist/refkey-Bf_2_U5t.d.cts +14 -0
- package/dist/refkey-Bf_2_U5t.d.cts.map +1 -0
- package/dist/refkey-C08kDOQ0.cjs +21 -0
- package/dist/refkey-CIFiGvgZ.mjs +16 -0
- package/dist/refkey-CIFiGvgZ.mjs.map +1 -0
- package/dist/refkey-CSZgFc0P.d.mts +14 -0
- package/dist/refkey-CSZgFc0P.d.mts.map +1 -0
- package/dist/reflection-B-NMNIoB.mjs +61 -0
- package/dist/reflection-B-NMNIoB.mjs.map +1 -0
- package/dist/reflection-CUo0047e.d.mts +53 -0
- package/dist/reflection-CUo0047e.d.mts.map +1 -0
- package/dist/reflection-DHpdhvwI.cjs +108 -0
- package/dist/reflection-xU09ifzp.d.cts +53 -0
- package/dist/reflection-xU09ifzp.d.cts.map +1 -0
- package/dist/single-line-comment-B258_x1B.d.cts +23 -0
- package/dist/single-line-comment-B258_x1B.d.cts.map +1 -0
- package/dist/single-line-comment-COZ9RWsm.cjs +27 -0
- package/dist/single-line-comment-D9dIL45u.d.cts +23 -0
- package/dist/single-line-comment-D9dIL45u.d.cts.map +1 -0
- package/dist/single-line-comment-PMv_zrfe.d.mts +23 -0
- package/dist/single-line-comment-PMv_zrfe.d.mts.map +1 -0
- package/dist/single-line-comment-mOQtfhWt.mjs +22 -0
- package/dist/single-line-comment-mOQtfhWt.mjs.map +1 -0
- package/dist/source-file-95cXzcLB.d.cts +33 -0
- package/dist/source-file-95cXzcLB.d.cts.map +1 -0
- package/dist/source-file-BAVTBVJy.cjs +68 -0
- package/dist/source-file-BTsyACav.d.cts +33 -0
- package/dist/source-file-BTsyACav.d.cts.map +1 -0
- package/dist/source-file-BiJK-nH_.mjs +62 -0
- package/dist/source-file-BiJK-nH_.mjs.map +1 -0
- package/dist/source-file-CQl0UCgf.d.mts +33 -0
- package/dist/source-file-CQl0UCgf.d.mts.map +1 -0
- package/dist/tsdoc-BId4fp5_.cjs +585 -0
- package/dist/tsdoc-CfvwK4Ml.d.cts +164 -0
- package/dist/tsdoc-CfvwK4Ml.d.cts.map +1 -0
- package/dist/tsdoc-Crv526i6.mjs +466 -0
- package/dist/tsdoc-Crv526i6.mjs.map +1 -0
- package/dist/tsdoc-OUuKjTbh.d.mts +164 -0
- package/dist/tsdoc-OUuKjTbh.d.mts.map +1 -0
- package/dist/tsdoc-reflection-B4bfElmj.d.cts +19 -0
- package/dist/tsdoc-reflection-B4bfElmj.d.cts.map +1 -0
- package/dist/tsdoc-reflection-BbjnIsUV.d.cts +19 -0
- package/dist/tsdoc-reflection-BbjnIsUV.d.cts.map +1 -0
- package/dist/tsdoc-reflection-D-eKs6S1.mjs +176 -0
- package/dist/tsdoc-reflection-D-eKs6S1.mjs.map +1 -0
- package/dist/tsdoc-reflection-IH-Mt2o_.cjs +193 -0
- package/dist/tsdoc-reflection-ulqYHfKL.d.mts +19 -0
- package/dist/tsdoc-reflection-ulqYHfKL.d.mts.map +1 -0
- package/dist/types/components.cjs +1 -0
- package/dist/types/components.d.cts +1 -141
- package/dist/types/components.d.mts +1 -141
- package/dist/types/components.mjs +2 -0
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.mjs +3 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +1 -39
- package/dist/types/plugin.d.mts +1 -39
- package/dist/types/plugin.mjs +2 -0
- package/dist/typescript/components/builtin-file.cjs +10 -61
- package/dist/typescript/components/builtin-file.d.cts +5 -33
- package/dist/typescript/components/builtin-file.d.mts +5 -33
- package/dist/typescript/components/builtin-file.mjs +9 -59
- package/dist/typescript/components/dynamic-import-statement.cjs +2 -24
- package/dist/typescript/components/dynamic-import-statement.d.cts +1 -31
- package/dist/typescript/components/dynamic-import-statement.d.mts +1 -31
- package/dist/typescript/components/dynamic-import-statement.mjs +1 -22
- package/dist/typescript/components/entry-file.cjs +9 -41
- package/dist/typescript/components/entry-file.d.cts +4 -26
- package/dist/typescript/components/entry-file.d.mts +4 -26
- package/dist/typescript/components/entry-file.mjs +8 -38
- package/dist/typescript/components/index.cjs +50 -43
- package/dist/typescript/components/index.d.cts +12 -9
- package/dist/typescript/components/index.d.mts +12 -9
- package/dist/typescript/components/index.mjs +16 -9
- package/dist/typescript/components/record-expression.cjs +2 -11
- package/dist/typescript/components/record-expression.d.cts +1 -11
- package/dist/typescript/components/record-expression.d.mts +1 -11
- package/dist/typescript/components/record-expression.mjs +1 -9
- package/dist/typescript/components/tsdoc-reflection.cjs +8 -177
- package/dist/typescript/components/tsdoc-reflection.d.cts +3 -17
- package/dist/typescript/components/tsdoc-reflection.d.mts +3 -17
- package/dist/typescript/components/tsdoc-reflection.mjs +5 -173
- package/dist/typescript/components/tsdoc.cjs +23 -484
- package/dist/typescript/components/tsdoc.d.cts +2 -162
- package/dist/typescript/components/tsdoc.d.mts +2 -162
- package/dist/typescript/components/tsdoc.mjs +3 -463
- package/dist/typescript/components/typescript-file.cjs +10 -215
- package/dist/typescript/components/typescript-file.d.cts +3 -48
- package/dist/typescript/components/typescript-file.d.mts +3 -48
- package/dist/typescript/components/typescript-file.mjs +7 -211
- package/dist/typescript/components/typescript-interface.cjs +8 -72
- package/dist/typescript/components/typescript-interface.d.cts +2 -24
- package/dist/typescript/components/typescript-interface.d.mts +2 -24
- package/dist/typescript/components/typescript-interface.mjs +6 -69
- package/dist/typescript/components/typescript-object.cjs +8 -124
- package/dist/typescript/components/typescript-object.d.cts +2 -28
- package/dist/typescript/components/typescript-object.d.mts +2 -28
- package/dist/typescript/components/typescript-object.mjs +6 -121
- package/dist/typescript/index.cjs +50 -44
- package/dist/typescript/index.d.cts +12 -10
- package/dist/typescript/index.d.mts +12 -10
- package/dist/typescript/index.mjs +16 -10
- package/dist/typescript-BCc7kwL_.mjs +46 -0
- package/dist/typescript-BCc7kwL_.mjs.map +1 -0
- package/dist/typescript-BbjCTT04.cjs +51 -0
- package/dist/typescript-DWzPF4n4.d.mts +26 -0
- package/dist/typescript-DWzPF4n4.d.mts.map +1 -0
- package/dist/typescript-file-BWaBMfMr.d.mts +50 -0
- package/dist/typescript-file-BWaBMfMr.d.mts.map +1 -0
- package/dist/typescript-file-BmLwVIQP.cjs +231 -0
- package/dist/typescript-file-C5NjN3H2.mjs +214 -0
- package/dist/typescript-file-C5NjN3H2.mjs.map +1 -0
- package/dist/typescript-file-MYxikvB6.d.cts +50 -0
- package/dist/typescript-file-MYxikvB6.d.cts.map +1 -0
- package/dist/typescript-file-fOVF6YF2.d.cts +50 -0
- package/dist/typescript-file-fOVF6YF2.d.cts.map +1 -0
- package/dist/typescript-interface-BNdWrKgb.cjs +83 -0
- package/dist/typescript-interface-D-d9A720.d.cts +26 -0
- package/dist/typescript-interface-D-d9A720.d.cts.map +1 -0
- package/dist/typescript-interface-LN3uCdA6.mjs +72 -0
- package/dist/typescript-interface-LN3uCdA6.mjs.map +1 -0
- package/dist/typescript-interface-MV4qwTHs.d.mts +26 -0
- package/dist/typescript-interface-MV4qwTHs.d.mts.map +1 -0
- package/dist/typescript-o4AsClkT.d.cts +26 -0
- package/dist/typescript-o4AsClkT.d.cts.map +1 -0
- package/dist/typescript-object-Bbza8TK7.d.cts +30 -0
- package/dist/typescript-object-Bbza8TK7.d.cts.map +1 -0
- package/dist/typescript-object-C7p9fJBF.d.mts +30 -0
- package/dist/typescript-object-C7p9fJBF.d.mts.map +1 -0
- package/dist/typescript-object-DIyR8xhW.mjs +124 -0
- package/dist/typescript-object-DIyR8xhW.mjs.map +1 -0
- package/dist/typescript-object-ENaG1YGI.cjs +135 -0
- package/dist/typescript-object-v1WiBD8W.d.cts +30 -0
- package/dist/typescript-object-v1WiBD8W.d.cts.map +1 -0
- package/dist/unctx-MFxscYXI.mjs +12 -0
- package/dist/unctx-MFxscYXI.mjs.map +1 -0
- package/dist/unctx-r7Vvh6XR.cjs +17 -0
- package/package.json +6 -6
- package/dist/internal/unctx.cjs +0 -8
- package/dist/internal/unctx.mjs +0 -7
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
1
|
+
import "../components-IRVnipN0.cjs";
|
|
2
|
+
import "../source-file-BTsyACav.cjs";
|
|
3
|
+
import { n as FrontMatterProps, r as __ΩFrontMatterProps, t as FrontMatter } from "../front-matter-u9H7VPAF.cjs";
|
|
4
|
+
import { a as __ΩMarkdownFileHeaderProps, i as MarkdownFileProps, n as MarkdownFileHeader, o as __ΩMarkdownFileProps, r as MarkdownFileHeaderProps, t as MarkdownFile } from "../markdown-file-CIGTz9xQ.cjs";
|
|
5
|
+
import { a as __ΩMarkdownTableColumnContextInterface, c as useMarkdownTableColumn, i as MarkdownTableContextInterface, n as MarkdownTableColumnContextInterface, o as __ΩMarkdownTableContextInterface, r as MarkdownTableContext, s as useMarkdownTable, t as MarkdownTableColumnContext } from "../markdown-table-Br2Ihl2z.cjs";
|
|
6
|
+
import { a as MarkdownTableProps, i as MarkdownTableColumnProps, n as MarkdownTableColumn, o as __ΩMarkdownTableColumnProps, r as MarkdownTableColumnHeader, s as __ΩMarkdownTableProps, t as MarkdownTable } from "../markdown-table-AoJIzA89.cjs";
|
|
7
|
+
import "../index-CrhZaFgN.cjs";
|
|
8
|
+
import "../index-DcDTDbdz.cjs";
|
|
7
9
|
export { FrontMatter, FrontMatterProps, MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableContext, MarkdownTableContextInterface, MarkdownTableProps, __ΩFrontMatterProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableColumnProps, __ΩMarkdownTableContextInterface, __ΩMarkdownTableProps, useMarkdownTable, useMarkdownTableColumn };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
1
|
+
import "../components-oHSM7vmp.mjs";
|
|
2
|
+
import "../source-file-CQl0UCgf.mjs";
|
|
3
|
+
import { n as FrontMatterProps, r as __ΩFrontMatterProps, t as FrontMatter } from "../front-matter-DGpkM9OE.mjs";
|
|
4
|
+
import { a as __ΩMarkdownFileHeaderProps, i as MarkdownFileProps, n as MarkdownFileHeader, o as __ΩMarkdownFileProps, r as MarkdownFileHeaderProps, t as MarkdownFile } from "../markdown-file-EtJaVhJ3.mjs";
|
|
5
|
+
import { a as __ΩMarkdownTableColumnContextInterface, c as useMarkdownTableColumn, i as MarkdownTableContextInterface, n as MarkdownTableColumnContextInterface, o as __ΩMarkdownTableContextInterface, r as MarkdownTableContext, s as useMarkdownTable, t as MarkdownTableColumnContext } from "../markdown-table-CFL7L6rA.mjs";
|
|
6
|
+
import { a as MarkdownTableProps, i as MarkdownTableColumnProps, n as MarkdownTableColumn, o as __ΩMarkdownTableColumnProps, r as MarkdownTableColumnHeader, s as __ΩMarkdownTableProps, t as MarkdownTable } from "../markdown-table-ChvYobzz.mjs";
|
|
7
|
+
import "../index-B-Y-ZG2x.mjs";
|
|
8
|
+
import "../index-hcx6LMSC.mjs";
|
|
7
9
|
export { FrontMatter, FrontMatterProps, MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableContext, MarkdownTableContextInterface, MarkdownTableProps, __ΩFrontMatterProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableColumnProps, __ΩMarkdownTableContextInterface, __ΩMarkdownTableProps, useMarkdownTable, useMarkdownTableColumn };
|
package/dist/markdown/index.mjs
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
1
|
+
import "../unctx-MFxscYXI.mjs";
|
|
2
|
+
import "../single-line-comment-mOQtfhWt.mjs";
|
|
3
|
+
import "../context-e2kZWEFW.mjs";
|
|
4
|
+
import "../reflection-B-NMNIoB.mjs";
|
|
5
|
+
import "../contexts-juWSyBfb.mjs";
|
|
6
|
+
import "../source-file-BiJK-nH_.mjs";
|
|
7
|
+
import { t as FrontMatter } from "../front-matter-2eGRXX11.mjs";
|
|
8
|
+
import { n as MarkdownFileHeader, t as MarkdownFile } from "../markdown-file-DIcSvowq.mjs";
|
|
9
|
+
import { i as useMarkdownTableColumn, n as MarkdownTableContext, r as useMarkdownTable, t as MarkdownTableColumnContext } from "../markdown-table-g6DeP10e.mjs";
|
|
10
|
+
import { n as MarkdownTableColumn, r as MarkdownTableColumnHeader, t as MarkdownTable } from "../markdown-table-D3DonpwR.mjs";
|
|
11
|
+
import "../components-CpjG2zC9.mjs";
|
|
12
|
+
import "../contexts-_jq-yJQG.mjs";
|
|
7
13
|
|
|
8
14
|
export { FrontMatter, MarkdownFile, MarkdownFileHeader, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnContext, MarkdownTableColumnHeader, MarkdownTableContext, useMarkdownTable, useMarkdownTableColumn };
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
+
const require_single_line_comment = require('./single-line-comment-COZ9RWsm.cjs');
|
|
3
|
+
const require_context = require('./context--KBspFnw.cjs');
|
|
4
|
+
const require_source_file = require('./source-file-BAVTBVJy.cjs');
|
|
5
|
+
const require_front_matter = require('./front-matter-DZ1tB-Uj.cjs');
|
|
6
|
+
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
7
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
8
|
+
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
9
|
+
let __alloy_js_markdown = require("@alloy-js/markdown");
|
|
10
|
+
let __stryke_type_checks = require("@stryke/type-checks");
|
|
11
|
+
|
|
12
|
+
//#region src/markdown/components/markdown-file.tsx
|
|
13
|
+
/**
|
|
14
|
+
* A base component representing a Powerlines generated markdown source file.
|
|
15
|
+
*
|
|
16
|
+
* @param props - The properties for the source file.
|
|
17
|
+
* @returns The rendered source file component.
|
|
18
|
+
*/
|
|
19
|
+
function MarkdownFile(props) {
|
|
20
|
+
const [{ children, storage, frontMatter }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
21
|
+
"children",
|
|
22
|
+
"storage",
|
|
23
|
+
"frontMatter"
|
|
24
|
+
]);
|
|
25
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_source_file.SourceFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get header() {
|
|
26
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(MarkdownFileHeader, { frontMatter });
|
|
27
|
+
} }, rest, {
|
|
28
|
+
filetype: "md",
|
|
29
|
+
reference: __alloy_js_markdown.Link,
|
|
30
|
+
storage,
|
|
31
|
+
get children() {
|
|
32
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
33
|
+
get when() {
|
|
34
|
+
return Boolean(children);
|
|
35
|
+
},
|
|
36
|
+
children
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
43
|
+
*
|
|
44
|
+
* @param props - The properties for the source file header.
|
|
45
|
+
* @returns The rendered source file header.
|
|
46
|
+
*/
|
|
47
|
+
function MarkdownFileHeader(props) {
|
|
48
|
+
const [{ children, disableEslint = true, disableBiome = true, disablePrettier = false, frontMatter }] = (0, __alloy_js_core.splitProps)(props, [
|
|
49
|
+
"children",
|
|
50
|
+
"disableEslint",
|
|
51
|
+
"disableBiome",
|
|
52
|
+
"disablePrettier",
|
|
53
|
+
"frontMatter"
|
|
54
|
+
]);
|
|
55
|
+
const context = require_context.usePowerlinesSafe();
|
|
56
|
+
return [
|
|
57
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
58
|
+
get when() {
|
|
59
|
+
return (0, __alloy_js_core_jsx_runtime.memo)(() => !!(0, __stryke_type_checks.isSetObject)(frontMatter))() && Object.keys(frontMatter).length > 0;
|
|
60
|
+
},
|
|
61
|
+
get children() {
|
|
62
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_front_matter.FrontMatter, { data: frontMatter });
|
|
63
|
+
}
|
|
64
|
+
}),
|
|
65
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
66
|
+
get when() {
|
|
67
|
+
return Boolean(disableEslint);
|
|
68
|
+
},
|
|
69
|
+
get children() {
|
|
70
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
|
|
71
|
+
variant: "markdown",
|
|
72
|
+
children: "eslint-disable"
|
|
73
|
+
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
74
|
+
}
|
|
75
|
+
}),
|
|
76
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
77
|
+
get when() {
|
|
78
|
+
return Boolean(disablePrettier);
|
|
79
|
+
},
|
|
80
|
+
get children() {
|
|
81
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
|
|
82
|
+
variant: "markdown",
|
|
83
|
+
children: "prettier-ignore"
|
|
84
|
+
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
85
|
+
}
|
|
86
|
+
}),
|
|
87
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
88
|
+
get when() {
|
|
89
|
+
return Boolean(disableBiome);
|
|
90
|
+
},
|
|
91
|
+
get children() {
|
|
92
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
|
|
93
|
+
variant: "markdown",
|
|
94
|
+
children: "biome-ignore lint: disable"
|
|
95
|
+
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
96
|
+
}
|
|
97
|
+
}),
|
|
98
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
99
|
+
get when() {
|
|
100
|
+
return Boolean(disableEslint) || Boolean(disablePrettier) || Boolean(disableBiome);
|
|
101
|
+
},
|
|
102
|
+
get children() {
|
|
103
|
+
return (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {});
|
|
104
|
+
}
|
|
105
|
+
}),
|
|
106
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
107
|
+
get when() {
|
|
108
|
+
return Boolean(children);
|
|
109
|
+
},
|
|
110
|
+
get children() {
|
|
111
|
+
return [children, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
112
|
+
}
|
|
113
|
+
}),
|
|
114
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
|
|
115
|
+
variant: "markdown",
|
|
116
|
+
get children() {
|
|
117
|
+
return `Generated by ${(0, __stryke_string_format_title_case.titleCase)(context?.config?.framework) || "Powerlines"}`;
|
|
118
|
+
}
|
|
119
|
+
}),
|
|
120
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
121
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
|
|
122
|
+
variant: "markdown",
|
|
123
|
+
children: __alloy_js_core.code`NOTE: Do not edit this file manually - it will be overwritten automatically`
|
|
124
|
+
}),
|
|
125
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
126
|
+
];
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
//#endregion
|
|
130
|
+
Object.defineProperty(exports, 'MarkdownFile', {
|
|
131
|
+
enumerable: true,
|
|
132
|
+
get: function () {
|
|
133
|
+
return MarkdownFile;
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
Object.defineProperty(exports, 'MarkdownFileHeader', {
|
|
137
|
+
enumerable: true,
|
|
138
|
+
get: function () {
|
|
139
|
+
return MarkdownFileHeader;
|
|
140
|
+
}
|
|
141
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { n as ComponentProps, p as SourceFileHeaderProps } from "./components-IRVnipN0.cjs";
|
|
2
|
+
import { n as SourceFileProps$1 } from "./source-file-BTsyACav.cjs";
|
|
3
|
+
import { n as FrontMatterProps } from "./front-matter-u9H7VPAF.cjs";
|
|
4
|
+
import * as _alloy_js_core5 from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
//#region src/markdown/components/markdown-file.d.ts
|
|
7
|
+
type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & MarkdownFileHeaderProps;
|
|
8
|
+
/**
|
|
9
|
+
* A base component representing a Powerlines generated markdown source file.
|
|
10
|
+
*
|
|
11
|
+
* @param props - The properties for the source file.
|
|
12
|
+
* @returns The rendered source file component.
|
|
13
|
+
*/
|
|
14
|
+
declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core5.Children;
|
|
15
|
+
type MarkdownFileHeaderProps = SourceFileHeaderProps & {
|
|
16
|
+
frontMatter?: FrontMatterProps["data"];
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
20
|
+
*
|
|
21
|
+
* @param props - The properties for the source file header.
|
|
22
|
+
* @returns The rendered source file header.
|
|
23
|
+
*/
|
|
24
|
+
declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core5.Children;
|
|
25
|
+
declare type __ΩMarkdownFileProps = any[];
|
|
26
|
+
declare type __ΩMarkdownFileHeaderProps = any[];
|
|
27
|
+
//#endregion
|
|
28
|
+
export { __ΩMarkdownFileHeaderProps as a, MarkdownFileProps as i, MarkdownFileHeader as n, __ΩMarkdownFileProps as o, MarkdownFileHeaderProps as r, MarkdownFile as t };
|
|
29
|
+
//# sourceMappingURL=markdown-file-CIGTz9xQ.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-file-CIGTz9xQ.d.cts","names":[],"sources":["../src/markdown/components/markdown-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KA4BY,iBAAA,GAAoB,KAAK,iCACnC,iBACA;;;AAFF;;;;AAEE,iBAQc,YAAA,CARd,KAAA,EAQkC,iBARlC,CAAA,EAQmD,eAAA,CAAA,QARnD;AAAuB,KA2Bb,uBAAA,GAA0B,qBA3Bb,GAAA;EAQT,WAAA,CAAA,EAoBA,gBApBoB,CAAA,MAAA,CAAA;AAmBpC,CAAA;AAUA;;;;;;iBAAgB,kBAAA,QAA0B,0BAAuB,eAAA,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { n as ComponentProps, p as SourceFileHeaderProps } from "./components-IRVnipN0.cjs";
|
|
2
|
+
import { n as SourceFileProps$1 } from "./source-file-95cXzcLB.cjs";
|
|
3
|
+
import { n as FrontMatterProps } from "./front-matter-gcouRI-6.cjs";
|
|
4
|
+
import * as _alloy_js_core6 from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
//#region src/markdown/components/markdown-file.d.ts
|
|
7
|
+
type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & MarkdownFileHeaderProps;
|
|
8
|
+
/**
|
|
9
|
+
* A base component representing a Powerlines generated markdown source file.
|
|
10
|
+
*
|
|
11
|
+
* @param props - The properties for the source file.
|
|
12
|
+
* @returns The rendered source file component.
|
|
13
|
+
*/
|
|
14
|
+
declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core6.Children;
|
|
15
|
+
type MarkdownFileHeaderProps = SourceFileHeaderProps & {
|
|
16
|
+
frontMatter?: FrontMatterProps["data"];
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
20
|
+
*
|
|
21
|
+
* @param props - The properties for the source file header.
|
|
22
|
+
* @returns The rendered source file header.
|
|
23
|
+
*/
|
|
24
|
+
declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core6.Children;
|
|
25
|
+
declare type __ΩMarkdownFileProps = any[];
|
|
26
|
+
declare type __ΩMarkdownFileHeaderProps = any[];
|
|
27
|
+
//#endregion
|
|
28
|
+
export { __ΩMarkdownFileHeaderProps as a, MarkdownFileProps as i, MarkdownFileHeader as n, __ΩMarkdownFileProps as o, MarkdownFileHeaderProps as r, MarkdownFile as t };
|
|
29
|
+
//# sourceMappingURL=markdown-file-CxDM6MCV.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-file-CxDM6MCV.d.cts","names":[],"sources":["../src/markdown/components/markdown-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KA4BY,iBAAA,GAAoB,KAAK,iCACnC,iBACA;;;AAFF;;;;AAEE,iBAQc,YAAA,CARd,KAAA,EAQkC,iBARlC,CAAA,EAQmD,eAAA,CAAA,QARnD;AAAuB,KA2Bb,uBAAA,GAA0B,qBA3Bb,GAAA;EAQT,WAAA,CAAA,EAoBA,gBApBoB,CAAA,MAAA,CAAA;AAmBpC,CAAA;AAUA;;;;;;iBAAgB,kBAAA,QAA0B,0BAAuB,eAAA,CAAA"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { t as SingleLineComment } from "./single-line-comment-mOQtfhWt.mjs";
|
|
2
|
+
import { a as usePowerlinesSafe } from "./context-e2kZWEFW.mjs";
|
|
3
|
+
import { t as SourceFile } from "./source-file-BiJK-nH_.mjs";
|
|
4
|
+
import { t as FrontMatter } from "./front-matter-2eGRXX11.mjs";
|
|
5
|
+
import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
6
|
+
import { Show, code, splitProps } from "@alloy-js/core";
|
|
7
|
+
import { titleCase } from "@stryke/string-format/title-case";
|
|
8
|
+
import { Link } from "@alloy-js/markdown";
|
|
9
|
+
import { isSetObject } from "@stryke/type-checks";
|
|
10
|
+
|
|
11
|
+
//#region src/markdown/components/markdown-file.tsx
|
|
12
|
+
/**
|
|
13
|
+
* A base component representing a Powerlines generated markdown source file.
|
|
14
|
+
*
|
|
15
|
+
* @param props - The properties for the source file.
|
|
16
|
+
* @returns The rendered source file component.
|
|
17
|
+
*/
|
|
18
|
+
function MarkdownFile(props) {
|
|
19
|
+
const [{ children, storage, frontMatter }, rest] = splitProps(props, [
|
|
20
|
+
"children",
|
|
21
|
+
"storage",
|
|
22
|
+
"frontMatter"
|
|
23
|
+
]);
|
|
24
|
+
return createComponent(SourceFile, mergeProps({ get header() {
|
|
25
|
+
return createComponent(MarkdownFileHeader, { frontMatter });
|
|
26
|
+
} }, rest, {
|
|
27
|
+
filetype: "md",
|
|
28
|
+
reference: Link,
|
|
29
|
+
storage,
|
|
30
|
+
get children() {
|
|
31
|
+
return createComponent(Show, {
|
|
32
|
+
get when() {
|
|
33
|
+
return Boolean(children);
|
|
34
|
+
},
|
|
35
|
+
children
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
42
|
+
*
|
|
43
|
+
* @param props - The properties for the source file header.
|
|
44
|
+
* @returns The rendered source file header.
|
|
45
|
+
*/
|
|
46
|
+
function MarkdownFileHeader(props) {
|
|
47
|
+
const [{ children, disableEslint = true, disableBiome = true, disablePrettier = false, frontMatter }] = splitProps(props, [
|
|
48
|
+
"children",
|
|
49
|
+
"disableEslint",
|
|
50
|
+
"disableBiome",
|
|
51
|
+
"disablePrettier",
|
|
52
|
+
"frontMatter"
|
|
53
|
+
]);
|
|
54
|
+
const context = usePowerlinesSafe();
|
|
55
|
+
return [
|
|
56
|
+
createComponent(Show, {
|
|
57
|
+
get when() {
|
|
58
|
+
return memo(() => !!isSetObject(frontMatter))() && Object.keys(frontMatter).length > 0;
|
|
59
|
+
},
|
|
60
|
+
get children() {
|
|
61
|
+
return createComponent(FrontMatter, { data: frontMatter });
|
|
62
|
+
}
|
|
63
|
+
}),
|
|
64
|
+
createComponent(Show, {
|
|
65
|
+
get when() {
|
|
66
|
+
return Boolean(disableEslint);
|
|
67
|
+
},
|
|
68
|
+
get children() {
|
|
69
|
+
return [createComponent(SingleLineComment, {
|
|
70
|
+
variant: "markdown",
|
|
71
|
+
children: "eslint-disable"
|
|
72
|
+
}), createIntrinsic("hbr", {})];
|
|
73
|
+
}
|
|
74
|
+
}),
|
|
75
|
+
createComponent(Show, {
|
|
76
|
+
get when() {
|
|
77
|
+
return Boolean(disablePrettier);
|
|
78
|
+
},
|
|
79
|
+
get children() {
|
|
80
|
+
return [createComponent(SingleLineComment, {
|
|
81
|
+
variant: "markdown",
|
|
82
|
+
children: "prettier-ignore"
|
|
83
|
+
}), createIntrinsic("hbr", {})];
|
|
84
|
+
}
|
|
85
|
+
}),
|
|
86
|
+
createComponent(Show, {
|
|
87
|
+
get when() {
|
|
88
|
+
return Boolean(disableBiome);
|
|
89
|
+
},
|
|
90
|
+
get children() {
|
|
91
|
+
return [createComponent(SingleLineComment, {
|
|
92
|
+
variant: "markdown",
|
|
93
|
+
children: "biome-ignore lint: disable"
|
|
94
|
+
}), createIntrinsic("hbr", {})];
|
|
95
|
+
}
|
|
96
|
+
}),
|
|
97
|
+
createComponent(Show, {
|
|
98
|
+
get when() {
|
|
99
|
+
return Boolean(disableEslint) || Boolean(disablePrettier) || Boolean(disableBiome);
|
|
100
|
+
},
|
|
101
|
+
get children() {
|
|
102
|
+
return createIntrinsic("hbr", {});
|
|
103
|
+
}
|
|
104
|
+
}),
|
|
105
|
+
createComponent(Show, {
|
|
106
|
+
get when() {
|
|
107
|
+
return Boolean(children);
|
|
108
|
+
},
|
|
109
|
+
get children() {
|
|
110
|
+
return [children, createIntrinsic("hbr", {})];
|
|
111
|
+
}
|
|
112
|
+
}),
|
|
113
|
+
createComponent(SingleLineComment, {
|
|
114
|
+
variant: "markdown",
|
|
115
|
+
get children() {
|
|
116
|
+
return `Generated by ${titleCase(context?.config?.framework) || "Powerlines"}`;
|
|
117
|
+
}
|
|
118
|
+
}),
|
|
119
|
+
createIntrinsic("hbr", {}),
|
|
120
|
+
createComponent(SingleLineComment, {
|
|
121
|
+
variant: "markdown",
|
|
122
|
+
children: code`NOTE: Do not edit this file manually - it will be overwritten automatically`
|
|
123
|
+
}),
|
|
124
|
+
createIntrinsic("hbr", {})
|
|
125
|
+
];
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
//#endregion
|
|
129
|
+
export { MarkdownFileHeader as n, MarkdownFile as t };
|
|
130
|
+
//# sourceMappingURL=markdown-file-DIcSvowq.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-file-DIcSvowq.mjs","names":["code","Show","splitProps","Link","titleCase","isSetObject","SingleLineComment","SourceFile","usePowerlinesSafe","FrontMatter","MarkdownFile","props","children","storage","frontMatter","rest","_$createComponent","_$mergeProps","header","MarkdownFileHeader","filetype","reference","when","Boolean","disableEslint","disableBiome","disablePrettier","context","_$memo","Object","keys","length","data","variant","_$createIntrinsic","config","framework"],"sources":["../src/markdown/components/markdown-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, Show, splitProps } from \"@alloy-js/core\";\nimport { Link } from \"@alloy-js/markdown\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isSetObject } from \"@stryke/type-checks\";\nimport { SingleLineComment } from \"../../core/components/single-line-comment\";\nimport { SourceFile, SourceFileProps } from \"../../core/components/source-file\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { ComponentProps, SourceFileHeaderProps } from \"../../types/components\";\nimport { FrontMatter, FrontMatterProps } from \"./front-matter\";\n\nexport type MarkdownFileProps = Omit<SourceFileProps, \"filetype\"> &\n ComponentProps &\n MarkdownFileHeaderProps;\n\n/**\n * A base component representing a Powerlines generated markdown source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function MarkdownFile(props: MarkdownFileProps) {\n const [{ children, storage, frontMatter }, rest] = splitProps(props, [\n \"children\",\n \"storage\",\n \"frontMatter\"\n ]);\n\n return (\n <SourceFile\n header={<MarkdownFileHeader frontMatter={frontMatter} />}\n {...rest}\n filetype=\"md\"\n reference={Link}\n storage={storage}>\n <Show when={Boolean(children)}>{children}</Show>\n </SourceFile>\n );\n}\n\nexport type MarkdownFileHeaderProps = SourceFileHeaderProps & {\n frontMatter?: FrontMatterProps[\"data\"];\n};\n\n/**\n * Renders the header for a Powerlines Typescript source file.\n *\n * @param props - The properties for the source file header.\n * @returns The rendered source file header.\n */\nexport function MarkdownFileHeader(props: MarkdownFileHeaderProps) {\n const [\n {\n children,\n disableEslint = true,\n disableBiome = true,\n disablePrettier = false,\n frontMatter\n }\n ] = splitProps(props, [\n \"children\",\n \"disableEslint\",\n \"disableBiome\",\n \"disablePrettier\",\n \"frontMatter\"\n ]);\n\n const context = usePowerlinesSafe();\n\n return (\n <>\n <Show\n when={isSetObject(frontMatter) && Object.keys(frontMatter).length > 0}>\n <FrontMatter data={frontMatter!} />\n </Show>\n <Show when={Boolean(disableEslint)}>\n <SingleLineComment variant=\"markdown\">\n {\"eslint-disable\"}\n </SingleLineComment>\n <hbr />\n </Show>\n <Show when={Boolean(disablePrettier)}>\n <SingleLineComment variant=\"markdown\">\n {\"prettier-ignore\"}\n </SingleLineComment>\n <hbr />\n </Show>\n <Show when={Boolean(disableBiome)}>\n <SingleLineComment variant=\"markdown\">\n {\"biome-ignore lint: disable\"}\n </SingleLineComment>\n <hbr />\n </Show>\n <Show\n when={\n Boolean(disableEslint) ||\n Boolean(disablePrettier) ||\n Boolean(disableBiome)\n }>\n <hbr />\n </Show>\n <Show when={Boolean(children)}>\n <>\n {children}\n <hbr />\n </>\n </Show>\n <SingleLineComment variant=\"markdown\">{`Generated by ${\n titleCase(context?.config?.framework) || \"Powerlines\"\n }`}</SingleLineComment>\n <hbr />\n <SingleLineComment variant=\"markdown\">\n {code`NOTE: Do not edit this file manually - it will be overwritten automatically`}\n </SingleLineComment>\n <hbr />\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;SAoDgB,aAAA;CAAA,MAAA,CAAA,EAAA,UAAA,SAAA,eAAA,QAAA,WAAA,OAAA;EAAA;;;;AAAA,QAAA,gBAAA,YAAA,WAAA,EAAA,IAAA,SAAA;AAAA,SAAA,gBAAA,oBAAA,EAAA,aAAA,CAAA;IAAA,QAAA;EAAA,UAAA;EAAA,WAAA;EAAA;EAAA,IAAA,WAAA;AAAA,UAAA,sBAAA;IAAA,IAAA,OAAA;AAAA,YAAEuB,QAAQX,SAAS;;IAAA;IAAA,CAAA;;EAAA,CAAA,CAAA;;;;;;;;;yDA8CO,wBAAAI,wBACjCV,WAAAA,OAAAA;EAAAA;EAAAA;;;;GAAAA;OAAAA,UAAAA,mBAAAA;;kBAAAA,MAAAA;GAAAA,IAAkB2B,OAAAA;AAAAA,WAAAA,WAAAA,CAAAA,CAAAA,YAAAA,YAAAA,CAAAA,EAAAA,IAAAA,OAAAA,KAAAA,YAAAA,CAAAA,SAAAA;;GAAAA,IAAAA,WAAAA;AAAAA,WAAAA,gBAAAA,aAAAA,EAAAA,MAAAA,aAAAA,CAAAA;;GAAAA,CAAAA;EAAAA,gBAAAA,MAAAA;GAAAA,IAAAA,OAAAA;AAAAA,WAAAA,QAAAA,cAAAA;;GAAAA,IAAAA,WAAAA;AAAAA,WAAAA,CAAAA,gBAAAA,mBAAO;KAAA,SAAA;KAAA,UAAA;KAAA,CAAA,EAAA,gBAAA,OAAA,EAAA,CAAA,CAAA;;GAAA,CAAA;EAAA,gBAAA,MAAA;GAAA,IAAA,OAAA;AAAA,WAAA,QAAA,gBAAA;;GAAA,IAAA,WAAA;AAAA,WAAA,CAAA,gBAAA,mBAAA;KAAA,SAAA;KAAA,UAAA;KAAA,CAAA,EAAA,gBAAA,OAAA,EAAA,CAAA,CAAA;;GAAA,CAAA;EAAA,gBAKlB,MAAA;GAAA,IAAA,OAAA;AAAA,WAAA,QAAA,aAAA;;GAAA,IAAA,WAAA;AAAA,WAAA,CAAA,gBAAA,mBAAA;KAAA,SAAA;KAAA,UAAA;KAAA,CAAA,EAAA,gBAAA,OAAA,EAAA,CAAA,CAAA;;GAAA,CAAA;EAAA,sBAAA;GAAA,IAAA,OAAA;AAAA,WAAA,QAAA,cAAA,IAAA,QAAA,gBAAA,IAAA,QAAA,aAAA;;GAAA,IAAA,WAAA;AAAA,WAAA,gBAAA,OAAA,EAAA,CAAA;;GAAA,CAAA;EAAA,gBAAA,MAAA;GAAA,IAAA,OAAA;AAAA,WAAA,QAAA,SAAA;;GAAA,IAAA,WAAA;AAAA,WAAA,CAAA,UAAA,gBAAA,OAAA,EAAA,CAAA,CAAA;;GAAA,CAAA;EAAA,gBAAuB,mBAAA;GAAA,SAAA;GAAA,IAAA,WAAA;AAAA,WAAA,gBAAA,UAAA,SAAA,QAAA,UAAA,IAAA;;GAAA,CAAA;EAAA,gBAAA,OAAA,EAAA,CAAA;EAAA,gBAEAC,mBAAAA;GAAAA,SAAAA;GAAAA,UAAAA,IAAAA;GAAAA,CAAAA;EAAAA,gBAAAA,OAAAA,EAAAA,CAAAA;EAAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { n as ComponentProps, p as SourceFileHeaderProps } from "./components-oHSM7vmp.mjs";
|
|
2
|
+
import { n as SourceFileProps$1 } from "./source-file-CQl0UCgf.mjs";
|
|
3
|
+
import { n as FrontMatterProps } from "./front-matter-DGpkM9OE.mjs";
|
|
4
|
+
import * as _alloy_js_core5 from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
//#region src/markdown/components/markdown-file.d.ts
|
|
7
|
+
type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & MarkdownFileHeaderProps;
|
|
8
|
+
/**
|
|
9
|
+
* A base component representing a Powerlines generated markdown source file.
|
|
10
|
+
*
|
|
11
|
+
* @param props - The properties for the source file.
|
|
12
|
+
* @returns The rendered source file component.
|
|
13
|
+
*/
|
|
14
|
+
declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core5.Children;
|
|
15
|
+
type MarkdownFileHeaderProps = SourceFileHeaderProps & {
|
|
16
|
+
frontMatter?: FrontMatterProps["data"];
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
20
|
+
*
|
|
21
|
+
* @param props - The properties for the source file header.
|
|
22
|
+
* @returns The rendered source file header.
|
|
23
|
+
*/
|
|
24
|
+
declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core5.Children;
|
|
25
|
+
declare type __ΩMarkdownFileProps = any[];
|
|
26
|
+
declare type __ΩMarkdownFileHeaderProps = any[];
|
|
27
|
+
//#endregion
|
|
28
|
+
export { __ΩMarkdownFileHeaderProps as a, MarkdownFileProps as i, MarkdownFileHeader as n, __ΩMarkdownFileProps as o, MarkdownFileHeaderProps as r, MarkdownFile as t };
|
|
29
|
+
//# sourceMappingURL=markdown-file-EtJaVhJ3.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-file-EtJaVhJ3.d.mts","names":[],"sources":["../src/markdown/components/markdown-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KA4BY,iBAAA,GAAoB,KAAK,iCACnC,iBACA;;;AAFF;;;;AAEE,iBAQc,YAAA,CARd,KAAA,EAQkC,iBARlC,CAAA,EAQmD,eAAA,CAAA,QARnD;AAAuB,KA2Bb,uBAAA,GAA0B,qBA3Bb,GAAA;EAQT,WAAA,CAAA,EAoBA,gBApBoB,CAAA,MAAA,CAAA;AAmBpC,CAAA;AAUA;;;;;;iBAAgB,kBAAA,QAA0B,0BAAuB,eAAA,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { n as ComponentProps } from "./components-IRVnipN0.cjs";
|
|
2
|
+
import { n as MarkdownTableColumnContextInterface } from "./markdown-table-Br2Ihl2z.cjs";
|
|
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-AoJIzA89.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-table-AoJIzA89.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"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
3
|
+
|
|
4
|
+
//#region src/markdown/contexts/markdown-table.ts
|
|
5
|
+
/**
|
|
6
|
+
* The Powerlines context used in template rendering.
|
|
7
|
+
*/
|
|
8
|
+
const MarkdownTableColumnContext = (0, __alloy_js_core.createNamedContext)("MarkdownTableColumn", {});
|
|
9
|
+
/**
|
|
10
|
+
* Hook to access the Powerlines Context.
|
|
11
|
+
*
|
|
12
|
+
* @returns The Context.
|
|
13
|
+
*/
|
|
14
|
+
function useMarkdownTableColumn() {
|
|
15
|
+
return (0, __alloy_js_core.useContext)(MarkdownTableColumnContext);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The Powerlines context used in template rendering.
|
|
19
|
+
*/
|
|
20
|
+
const MarkdownTableContext = (0, __alloy_js_core.createContext)({
|
|
21
|
+
columns: [],
|
|
22
|
+
data: []
|
|
23
|
+
});
|
|
24
|
+
/**
|
|
25
|
+
* Hook to access the Powerlines Context.
|
|
26
|
+
*
|
|
27
|
+
* @returns The Context.
|
|
28
|
+
*/
|
|
29
|
+
function useMarkdownTable() {
|
|
30
|
+
return (0, __alloy_js_core.useContext)(MarkdownTableContext);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
Object.defineProperty(exports, 'MarkdownTableColumnContext', {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () {
|
|
37
|
+
return MarkdownTableColumnContext;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, 'MarkdownTableContext', {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () {
|
|
43
|
+
return MarkdownTableContext;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, 'useMarkdownTable', {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () {
|
|
49
|
+
return useMarkdownTable;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, 'useMarkdownTableColumn', {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () {
|
|
55
|
+
return useMarkdownTableColumn;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ComponentContext } from "@alloy-js/core";
|
|
2
|
+
|
|
3
|
+
//#region src/markdown/contexts/markdown-table.d.ts
|
|
4
|
+
interface MarkdownTableColumnContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
5
|
+
index: number;
|
|
6
|
+
name: keyof T;
|
|
7
|
+
align: "left" | "right" | "center";
|
|
8
|
+
width: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The Powerlines context used in template rendering.
|
|
12
|
+
*/
|
|
13
|
+
declare const MarkdownTableColumnContext: ComponentContext<MarkdownTableColumnContextInterface>;
|
|
14
|
+
/**
|
|
15
|
+
* Hook to access the Powerlines Context.
|
|
16
|
+
*
|
|
17
|
+
* @returns The Context.
|
|
18
|
+
*/
|
|
19
|
+
declare function useMarkdownTableColumn(): MarkdownTableColumnContextInterface<Record<string, any>> | undefined;
|
|
20
|
+
interface MarkdownTableContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
21
|
+
columns: MarkdownTableColumnContextInterface<T>[];
|
|
22
|
+
data: T[];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The Powerlines context used in template rendering.
|
|
26
|
+
*/
|
|
27
|
+
declare const MarkdownTableContext: ComponentContext<MarkdownTableContextInterface>;
|
|
28
|
+
/**
|
|
29
|
+
* Hook to access the Powerlines Context.
|
|
30
|
+
*
|
|
31
|
+
* @returns The Context.
|
|
32
|
+
*/
|
|
33
|
+
declare function useMarkdownTable(): MarkdownTableContextInterface<Record<string, any>> | undefined;
|
|
34
|
+
declare type __ΩMarkdownTableColumnContextInterface = any[];
|
|
35
|
+
declare type __ΩMarkdownTableContextInterface = any[];
|
|
36
|
+
//#endregion
|
|
37
|
+
export { __ΩMarkdownTableColumnContextInterface as a, useMarkdownTableColumn as c, MarkdownTableContextInterface as i, MarkdownTableColumnContextInterface as n, __ΩMarkdownTableContextInterface as o, MarkdownTableContext as r, useMarkdownTable as s, MarkdownTableColumnContext as t };
|
|
38
|
+
//# sourceMappingURL=markdown-table-Br2Ihl2z.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-table-Br2Ihl2z.d.cts","names":[],"sources":["../src/markdown/contexts/markdown-table.ts"],"sourcesContent":[],"mappings":";;;UAqBiB,8CACL,sBAAsB;;EADjB,IAAA,EAAA,MAIH,CAJG;EACL,KAAA,EAAA,MAAA,GAAA,OAAA,GAAA,QAAA;EAAsB,KAAA,EAAA,MAAA;;;AAWlC;AAWA;AAMiB,cAjBJ,0BAiBiC,EAjBL,gBAiBK,CAjBY,mCAiBZ,CAAA;;;;;;AAIrC,iBAVO,sBAAA,CAAA,CAUP,EAV6B,mCAU7B,CAV6B,MAU7B,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,GAAA,SAAA;AAMI,UAVI,6BAUmC,CAAA,UATxC,MASwC,CAAA,MAAjB,EAAA,GAAA,CAAA,GATD,MASC,CAAA,MAAgB,EAAA,GAAA,CAAA,CAAA,CAAA;EAWnC,OAAA,EAlBL,mCAkBqB,CAlBe,CAkBf,CAAA,EAAA;QAjBxB;;;;;cAMK,sBAAsB,iBAAiB;;;;;;iBAWpC,gBAAA,CAAA,GAAgB,8BAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ComponentContext } from "@alloy-js/core";
|
|
2
|
+
|
|
3
|
+
//#region src/markdown/contexts/markdown-table.d.ts
|
|
4
|
+
interface MarkdownTableColumnContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
5
|
+
index: number;
|
|
6
|
+
name: keyof T;
|
|
7
|
+
align: "left" | "right" | "center";
|
|
8
|
+
width: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The Powerlines context used in template rendering.
|
|
12
|
+
*/
|
|
13
|
+
declare const MarkdownTableColumnContext: ComponentContext<MarkdownTableColumnContextInterface>;
|
|
14
|
+
/**
|
|
15
|
+
* Hook to access the Powerlines Context.
|
|
16
|
+
*
|
|
17
|
+
* @returns The Context.
|
|
18
|
+
*/
|
|
19
|
+
declare function useMarkdownTableColumn(): MarkdownTableColumnContextInterface<Record<string, any>> | undefined;
|
|
20
|
+
interface MarkdownTableContextInterface<T extends Record<string, any> = Record<string, any>> {
|
|
21
|
+
columns: MarkdownTableColumnContextInterface<T>[];
|
|
22
|
+
data: T[];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The Powerlines context used in template rendering.
|
|
26
|
+
*/
|
|
27
|
+
declare const MarkdownTableContext: ComponentContext<MarkdownTableContextInterface>;
|
|
28
|
+
/**
|
|
29
|
+
* Hook to access the Powerlines Context.
|
|
30
|
+
*
|
|
31
|
+
* @returns The Context.
|
|
32
|
+
*/
|
|
33
|
+
declare function useMarkdownTable(): MarkdownTableContextInterface<Record<string, any>> | undefined;
|
|
34
|
+
declare type __ΩMarkdownTableColumnContextInterface = any[];
|
|
35
|
+
declare type __ΩMarkdownTableContextInterface = any[];
|
|
36
|
+
//#endregion
|
|
37
|
+
export { __ΩMarkdownTableColumnContextInterface as a, useMarkdownTableColumn as c, MarkdownTableContextInterface as i, MarkdownTableColumnContextInterface as n, __ΩMarkdownTableContextInterface as o, MarkdownTableContext as r, useMarkdownTable as s, MarkdownTableColumnContext as t };
|
|
38
|
+
//# sourceMappingURL=markdown-table-CFL7L6rA.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-table-CFL7L6rA.d.mts","names":[],"sources":["../src/markdown/contexts/markdown-table.ts"],"sourcesContent":[],"mappings":";;;UAqBiB,8CACL,sBAAsB;;EADjB,IAAA,EAAA,MAIH,CAJG;EACL,KAAA,EAAA,MAAA,GAAA,OAAA,GAAA,QAAA;EAAsB,KAAA,EAAA,MAAA;;;AAWlC;AAWA;AAMiB,cAjBJ,0BAiBiC,EAjBL,gBAiBK,CAjBY,mCAiBZ,CAAA;;;;;;AAIrC,iBAVO,sBAAA,CAAA,CAUP,EAV6B,mCAU7B,CAV6B,MAU7B,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,GAAA,SAAA;AAMI,UAVI,6BAUmC,CAAA,UATxC,MASwC,CAAA,MAAjB,EAAA,GAAA,CAAA,GATD,MASC,CAAA,MAAgB,EAAA,GAAA,CAAA,CAAA,CAAA;EAWnC,OAAA,EAlBL,mCAkBqB,CAlBe,CAkBf,CAAA,EAAA;QAjBxB;;;;;cAMK,sBAAsB,iBAAiB;;;;;;iBAWpC,gBAAA,CAAA,GAAgB,8BAAA"}
|