@powerlines/plugin-alloy 0.19.32 → 0.19.34
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 +60 -0
- package/dist/render.d.cts +23 -0
- package/dist/render.d.cts.map +1 -0
- package/dist/render.d.mts +23 -0
- package/dist/render.d.mts.map +1 -0
- package/dist/render.mjs +60 -0
- package/dist/render.mjs.map +1 -0
- 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 +20 -6
- package/dist/builtin-file-BNp7C-BU.mjs +0 -62
- package/dist/builtin-file-BNp7C-BU.mjs.map +0 -1
- package/dist/builtin-file-C-TpxdCP.d.mts +0 -35
- package/dist/builtin-file-C-TpxdCP.d.mts.map +0 -1
- package/dist/builtin-file-CDLuGDg7.d.cts +0 -35
- package/dist/builtin-file-CDLuGDg7.d.cts.map +0 -1
- package/dist/builtin-file-CQAeHqiO.cjs +0 -67
- package/dist/builtin-file-DWcpFOVB.d.mts +0 -35
- package/dist/builtin-file-DWcpFOVB.d.mts.map +0 -1
- package/dist/builtin-file-I0ejC9w0.d.cts +0 -35
- package/dist/builtin-file-I0ejC9w0.d.cts.map +0 -1
- package/dist/capnp-CLxcoMcG.d.mts +0 -88
- package/dist/capnp-CLxcoMcG.d.mts.map +0 -1
- package/dist/capnp-CPbob9Cm.mjs +0 -260
- package/dist/capnp-CPbob9Cm.mjs.map +0 -1
- package/dist/capnp-ClfqI-5t.cjs +0 -356
- package/dist/capnp-DbPtfpg2.d.cts +0 -88
- package/dist/capnp-DbPtfpg2.d.cts.map +0 -1
- package/dist/components-B0evB5xd.cjs +0 -0
- package/dist/components-BNK9p5AE.cjs +0 -0
- package/dist/components-ByryZacA.mjs +0 -1
- package/dist/components-C3qpgLKV.mjs +0 -1
- package/dist/components-Cr-i-ofB.mjs +0 -1
- package/dist/components-CvqTz7Q9.d.cts +0 -143
- package/dist/components-CvqTz7Q9.d.cts.map +0 -1
- package/dist/components-DPKSrvP-.cjs +0 -0
- package/dist/components-ISRFDWTF.cjs +0 -0
- package/dist/components-NXgsRgB4.mjs +0 -1
- package/dist/components-_4e2YMfT.d.mts +0 -143
- package/dist/components-_4e2YMfT.d.mts.map +0 -1
- package/dist/context-C7gW4eqa.d.cts +0 -30
- package/dist/context-C7gW4eqa.d.cts.map +0 -1
- package/dist/context-CdPajCh6.mjs +0 -37
- package/dist/context-CdPajCh6.mjs.map +0 -1
- package/dist/context-D5pAjVbn.d.mts +0 -30
- package/dist/context-D5pAjVbn.d.mts.map +0 -1
- package/dist/context-DNdlL_gp.cjs +0 -60
- package/dist/contexts-BqTplHQH.mjs +0 -1
- package/dist/contexts-D-vYhGdM.mjs +0 -1
- package/dist/contexts-DWGMeWga.cjs +0 -0
- package/dist/contexts-J643Nrrt.cjs +0 -0
- package/dist/create-builtin-Be3J_vqf.mjs +0 -19
- package/dist/create-builtin-Be3J_vqf.mjs.map +0 -1
- package/dist/create-builtin-BiKyN2s2.cjs +0 -24
- package/dist/create-builtin-Bpswa0ZT.d.cts +0 -16
- package/dist/create-builtin-Bpswa0ZT.d.cts.map +0 -1
- package/dist/create-builtin-CbEjJreB.d.mts +0 -16
- package/dist/create-builtin-CbEjJreB.d.mts.map +0 -1
- package/dist/dynamic-import-statement-B4Ov9C7y.mjs +0 -25
- package/dist/dynamic-import-statement-B4Ov9C7y.mjs.map +0 -1
- package/dist/dynamic-import-statement-CNsIFAva.d.cts +0 -33
- package/dist/dynamic-import-statement-CNsIFAva.d.cts.map +0 -1
- package/dist/dynamic-import-statement-CVIYwXyi.d.mts +0 -33
- package/dist/dynamic-import-statement-CVIYwXyi.d.mts.map +0 -1
- package/dist/dynamic-import-statement-DDEpZVlQ.d.cts +0 -33
- package/dist/dynamic-import-statement-DDEpZVlQ.d.cts.map +0 -1
- package/dist/dynamic-import-statement-DSNDMC9Y.d.mts +0 -33
- package/dist/dynamic-import-statement-DSNDMC9Y.d.mts.map +0 -1
- package/dist/dynamic-import-statement-Dy_MY_Ua.cjs +0 -30
- package/dist/entry-file-CYPWFUfe.cjs +0 -47
- package/dist/entry-file-CrZ-k87r.mjs +0 -41
- package/dist/entry-file-CrZ-k87r.mjs.map +0 -1
- package/dist/entry-file-DOcjyCDG.d.mts +0 -28
- package/dist/entry-file-DOcjyCDG.d.mts.map +0 -1
- package/dist/entry-file-DVf4SGx4.d.cts +0 -28
- package/dist/entry-file-DVf4SGx4.d.cts.map +0 -1
- package/dist/entry-file-DXv3HtYV.d.mts +0 -28
- package/dist/entry-file-DXv3HtYV.d.mts.map +0 -1
- package/dist/entry-file-y0caTLfc.d.cts +0 -28
- package/dist/entry-file-y0caTLfc.d.cts.map +0 -1
- package/dist/front-matter-BeTG0uJA.mjs +0 -28
- package/dist/front-matter-BeTG0uJA.mjs.map +0 -1
- package/dist/front-matter-CXfCT8a8.d.mts +0 -16
- package/dist/front-matter-CXfCT8a8.d.mts.map +0 -1
- package/dist/front-matter-DTorR58b.d.cts +0 -16
- package/dist/front-matter-DTorR58b.d.cts.map +0 -1
- package/dist/front-matter-DZ1tB-Uj.cjs +0 -33
- package/dist/front-matter-DySGMCRE.d.cts +0 -16
- package/dist/front-matter-DySGMCRE.d.cts.map +0 -1
- package/dist/index-BJ8-FA6N.d.cts +0 -1
- package/dist/index-BXpMZvwA.d.cts +0 -1
- package/dist/index-BhY1qu3m.d.cts +0 -1
- package/dist/index-BjgW3E7y.d.mts +0 -1
- package/dist/index-C3usUse7.d.mts +0 -1
- package/dist/index-D13oYj4_.d.mts +0 -1
- package/dist/index-DBGd4WeR.d.mts +0 -1
- package/dist/index-DdxxIAKU.d.cts +0 -1
- package/dist/index-DpEKQcoR.d.cts +0 -1
- package/dist/index-gpCH5158.d.mts +0 -1
- package/dist/markdown-file-BkmvexMF.d.cts +0 -29
- package/dist/markdown-file-BkmvexMF.d.cts.map +0 -1
- package/dist/markdown-file-C7o9bn--.d.mts +0 -29
- package/dist/markdown-file-C7o9bn--.d.mts.map +0 -1
- package/dist/markdown-file-CFt8hI37.cjs +0 -141
- package/dist/markdown-file-CX8auFpl.mjs +0 -130
- package/dist/markdown-file-CX8auFpl.mjs.map +0 -1
- package/dist/markdown-file-CbVNKFje.d.cts +0 -29
- package/dist/markdown-file-CbVNKFje.d.cts.map +0 -1
- package/dist/markdown-file-DMrhFhUU.d.mts +0 -29
- package/dist/markdown-file-DMrhFhUU.d.mts.map +0 -1
- package/dist/markdown-table-B7EUUNbl.d.mts +0 -28
- package/dist/markdown-table-B7EUUNbl.d.mts.map +0 -1
- package/dist/markdown-table-BWPm6GbJ.cjs +0 -57
- package/dist/markdown-table-CGXp5JbS.d.mts +0 -28
- package/dist/markdown-table-CGXp5JbS.d.mts.map +0 -1
- package/dist/markdown-table-CKMEMcyb.d.cts +0 -28
- package/dist/markdown-table-CKMEMcyb.d.cts.map +0 -1
- package/dist/markdown-table-CZMEY6IR.d.cts +0 -38
- package/dist/markdown-table-CZMEY6IR.d.cts.map +0 -1
- package/dist/markdown-table-CnEur72Z.mjs +0 -99
- package/dist/markdown-table-CnEur72Z.mjs.map +0 -1
- package/dist/markdown-table-Cv3P72sN.d.cts +0 -28
- package/dist/markdown-table-Cv3P72sN.d.cts.map +0 -1
- package/dist/markdown-table-PT2TFFY3.mjs +0 -34
- package/dist/markdown-table-PT2TFFY3.mjs.map +0 -1
- package/dist/markdown-table-eTnxxb46.cjs +0 -116
- package/dist/markdown-table-t6Z-cmxX.d.mts +0 -38
- package/dist/markdown-table-t6Z-cmxX.d.mts.map +0 -1
- package/dist/meta-BEeFPjoM.mjs +0 -37
- package/dist/meta-BEeFPjoM.mjs.map +0 -1
- package/dist/meta-BVJcyXVs.cjs +0 -60
- package/dist/meta-D0y5uZo4.d.cts +0 -48
- package/dist/meta-D0y5uZo4.d.cts.map +0 -1
- package/dist/meta-DJqWxY95.d.mts +0 -48
- package/dist/meta-DJqWxY95.d.mts.map +0 -1
- package/dist/output-B5O_qz0i.cjs +0 -44
- package/dist/output-C5BkcdCd.d.cts +0 -24
- package/dist/output-C5BkcdCd.d.cts.map +0 -1
- package/dist/output-C7mlHz0P.d.mts +0 -24
- package/dist/output-C7mlHz0P.d.mts.map +0 -1
- package/dist/output-DcuryjuV.mjs +0 -39
- package/dist/output-DcuryjuV.mjs.map +0 -1
- package/dist/output-XvUhyMSi.d.cts +0 -24
- package/dist/output-XvUhyMSi.d.cts.map +0 -1
- package/dist/plugin-B8wUxSXi.cjs +0 -0
- package/dist/plugin-BzF8Q2v1.mjs +0 -1
- package/dist/plugin-CyBCpZyU.d.mts +0 -39
- package/dist/plugin-CyBCpZyU.d.mts.map +0 -1
- package/dist/plugin-DIlnN1SV.d.cts +0 -39
- package/dist/plugin-DIlnN1SV.d.cts.map +0 -1
- package/dist/record-expression-6ElbFyR0.cjs +0 -17
- package/dist/record-expression-ChoLAsVS.d.mts +0 -13
- package/dist/record-expression-ChoLAsVS.d.mts.map +0 -1
- package/dist/record-expression-D5W72rZN.mjs +0 -12
- package/dist/record-expression-D5W72rZN.mjs.map +0 -1
- package/dist/record-expression-Dwg_PZpg.d.cts +0 -13
- package/dist/record-expression-Dwg_PZpg.d.cts.map +0 -1
- package/dist/refkey-C08kDOQ0.cjs +0 -21
- package/dist/refkey-CP7MJMac.d.cts +0 -14
- package/dist/refkey-CP7MJMac.d.cts.map +0 -1
- package/dist/refkey-CQVHeuAq.mjs +0 -16
- package/dist/refkey-CQVHeuAq.mjs.map +0 -1
- package/dist/refkey-D6OjgKgS.d.mts +0 -14
- package/dist/refkey-D6OjgKgS.d.mts.map +0 -1
- package/dist/reflection-BktS88RM.cjs +0 -108
- package/dist/reflection-CfOmSgDn.d.mts +0 -53
- package/dist/reflection-CfOmSgDn.d.mts.map +0 -1
- package/dist/reflection-Q87E_-w_.d.cts +0 -53
- package/dist/reflection-Q87E_-w_.d.cts.map +0 -1
- package/dist/reflection-TXYxCAwV.mjs +0 -61
- package/dist/reflection-TXYxCAwV.mjs.map +0 -1
- package/dist/single-line-comment-BKFqKn-D.d.mts +0 -23
- package/dist/single-line-comment-BKFqKn-D.d.mts.map +0 -1
- package/dist/single-line-comment-Ct_putR7.d.mts +0 -23
- package/dist/single-line-comment-Ct_putR7.d.mts.map +0 -1
- package/dist/single-line-comment-D2y_A8e1.d.cts +0 -23
- package/dist/single-line-comment-D2y_A8e1.d.cts.map +0 -1
- package/dist/single-line-comment-DW0LUIQ2.mjs +0 -22
- package/dist/single-line-comment-DW0LUIQ2.mjs.map +0 -1
- package/dist/single-line-comment-DWQy5rrk.d.cts +0 -23
- package/dist/single-line-comment-DWQy5rrk.d.cts.map +0 -1
- package/dist/single-line-comment-tAWBgL9v.cjs +0 -27
- package/dist/source-file-B51pGSXX.d.mts +0 -33
- package/dist/source-file-B51pGSXX.d.mts.map +0 -1
- package/dist/source-file-BhqYj8m-.d.mts +0 -33
- package/dist/source-file-BhqYj8m-.d.mts.map +0 -1
- package/dist/source-file-Bl7eV0Li.mjs +0 -62
- package/dist/source-file-Bl7eV0Li.mjs.map +0 -1
- package/dist/source-file-DiisOeS2.d.cts +0 -33
- package/dist/source-file-DiisOeS2.d.cts.map +0 -1
- package/dist/source-file-DnqaQY90.cjs +0 -68
- package/dist/source-file-gMJwiJAw.d.cts +0 -33
- package/dist/source-file-gMJwiJAw.d.cts.map +0 -1
- package/dist/tsdoc-BufL8muf.cjs +0 -585
- package/dist/tsdoc-DB1Qzwsn.mjs +0 -466
- package/dist/tsdoc-DB1Qzwsn.mjs.map +0 -1
- package/dist/tsdoc-DiBR7m1J.d.cts +0 -164
- package/dist/tsdoc-DiBR7m1J.d.cts.map +0 -1
- package/dist/tsdoc-KHfXy9HE.d.mts +0 -164
- package/dist/tsdoc-KHfXy9HE.d.mts.map +0 -1
- package/dist/tsdoc-reflection-B5-J4ia-.cjs +0 -193
- package/dist/tsdoc-reflection-BGPyymTb.mjs +0 -176
- package/dist/tsdoc-reflection-BGPyymTb.mjs.map +0 -1
- package/dist/tsdoc-reflection-CYz5udTh.d.mts +0 -19
- package/dist/tsdoc-reflection-CYz5udTh.d.mts.map +0 -1
- package/dist/tsdoc-reflection-DTYkFxKy.d.cts +0 -19
- package/dist/tsdoc-reflection-DTYkFxKy.d.cts.map +0 -1
- package/dist/tsdoc-reflection-cRd43W18.d.cts +0 -19
- package/dist/tsdoc-reflection-cRd43W18.d.cts.map +0 -1
- package/dist/typescript-BXhP0qIJ.mjs +0 -46
- package/dist/typescript-BXhP0qIJ.mjs.map +0 -1
- package/dist/typescript-BbjCTT04.cjs +0 -51
- package/dist/typescript-CXP7Oa6_.d.cts +0 -26
- package/dist/typescript-CXP7Oa6_.d.cts.map +0 -1
- package/dist/typescript-DvynKONm.d.mts +0 -26
- package/dist/typescript-DvynKONm.d.mts.map +0 -1
- package/dist/typescript-file-4oY1sIRB.cjs +0 -231
- package/dist/typescript-file-C9TPcvPm.d.mts +0 -50
- package/dist/typescript-file-C9TPcvPm.d.mts.map +0 -1
- package/dist/typescript-file-CJxOp_Xl.d.cts +0 -50
- package/dist/typescript-file-CJxOp_Xl.d.cts.map +0 -1
- package/dist/typescript-file-CY0SmW6n.d.mts +0 -50
- package/dist/typescript-file-CY0SmW6n.d.mts.map +0 -1
- package/dist/typescript-file-DWYfy1-C.d.cts +0 -50
- package/dist/typescript-file-DWYfy1-C.d.cts.map +0 -1
- package/dist/typescript-file-iXGdOTZv.mjs +0 -214
- package/dist/typescript-file-iXGdOTZv.mjs.map +0 -1
- package/dist/typescript-interface-4Kxgaglq.d.mts +0 -26
- package/dist/typescript-interface-4Kxgaglq.d.mts.map +0 -1
- package/dist/typescript-interface-B0AoZx3f.cjs +0 -83
- package/dist/typescript-interface-B1mhCCoV.d.cts +0 -26
- package/dist/typescript-interface-B1mhCCoV.d.cts.map +0 -1
- package/dist/typescript-interface-C0mgTtdj.d.cts +0 -26
- package/dist/typescript-interface-C0mgTtdj.d.cts.map +0 -1
- package/dist/typescript-interface-DoEGxV_8.mjs +0 -72
- package/dist/typescript-interface-DoEGxV_8.mjs.map +0 -1
- package/dist/typescript-object-C4d4fThY.cjs +0 -135
- package/dist/typescript-object-C5oh925V.mjs +0 -124
- package/dist/typescript-object-C5oh925V.mjs.map +0 -1
- package/dist/typescript-object-DAepqTrw.d.cts +0 -30
- package/dist/typescript-object-DAepqTrw.d.cts.map +0 -1
- package/dist/typescript-object-DUivJKpz.d.cts +0 -30
- package/dist/typescript-object-DUivJKpz.d.cts.map +0 -1
- package/dist/typescript-object-TlHt1hQc.d.mts +0 -30
- package/dist/typescript-object-TlHt1hQc.d.mts.map +0 -1
|
@@ -1,23 +1,485 @@
|
|
|
1
|
-
require('../../
|
|
2
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_core_contexts_context = require('../../core/contexts/context.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 __powerlines_deepkit_utilities = require("@powerlines/deepkit/utilities");
|
|
6
|
+
let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
7
|
+
let __stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
3
8
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
//#region src/typescript/components/tsdoc.tsx
|
|
10
|
+
/**
|
|
11
|
+
* Generates a TypeScript interface for the given reflection class.
|
|
12
|
+
*/
|
|
13
|
+
function TSDoc(props) {
|
|
14
|
+
const [{ children, heading }] = (0, __alloy_js_core.splitProps)(props, ["children", "heading"]);
|
|
15
|
+
return [
|
|
16
|
+
"/**",
|
|
17
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("align", {
|
|
18
|
+
string: " * ",
|
|
19
|
+
get children() {
|
|
20
|
+
return [
|
|
21
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
22
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
23
|
+
get when() {
|
|
24
|
+
return !(0, __stryke_type_checks_is_undefined.isUndefined)(heading);
|
|
25
|
+
},
|
|
26
|
+
get children() {
|
|
27
|
+
return [
|
|
28
|
+
heading,
|
|
29
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
30
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
31
|
+
get when() {
|
|
32
|
+
return (0, __alloy_js_core_jsx_runtime.memo)(() => !!!(0, __stryke_type_checks_is_undefined.isUndefined)(children))() && (0, __alloy_js_core.childrenArray)(() => children).length > 0;
|
|
33
|
+
},
|
|
34
|
+
get children() {
|
|
35
|
+
return (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {});
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
];
|
|
39
|
+
}
|
|
40
|
+
}),
|
|
41
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
42
|
+
get when() {
|
|
43
|
+
return (0, __alloy_js_core_jsx_runtime.memo)(() => !!!(0, __stryke_type_checks_is_undefined.isUndefined)(children))() && (0, __alloy_js_core.childrenArray)(() => children).length > 0;
|
|
44
|
+
},
|
|
45
|
+
get children() {
|
|
46
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.List, { get children() {
|
|
47
|
+
return (0, __alloy_js_core.childrenArray)(() => children);
|
|
48
|
+
} });
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
];
|
|
52
|
+
}
|
|
53
|
+
}),
|
|
54
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
55
|
+
` */`,
|
|
56
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
57
|
+
];
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Create a TSDoc `@<props.tag>` tag.
|
|
61
|
+
*/
|
|
62
|
+
function TSDocTag(props) {
|
|
63
|
+
const [{ children, tag }] = (0, __alloy_js_core.splitProps)(props, ["children", "tag"]);
|
|
64
|
+
return [
|
|
65
|
+
`@${tag} `,
|
|
66
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
67
|
+
get when() {
|
|
68
|
+
return Boolean(children);
|
|
69
|
+
},
|
|
70
|
+
get children() {
|
|
71
|
+
return (0, __alloy_js_core_jsx_runtime.createIntrinsic)("align", {
|
|
72
|
+
width: 2,
|
|
73
|
+
get children() {
|
|
74
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Prose, { children });
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}),
|
|
79
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
80
|
+
];
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* A component that creates a TSDoc block with `@param` tags for each parameter.
|
|
84
|
+
*/
|
|
85
|
+
function TSDocParams(props) {
|
|
86
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
|
|
87
|
+
each: normalizeParametersForDoc(props.parameters),
|
|
88
|
+
children: (param) => (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocParam, {
|
|
89
|
+
get name() {
|
|
90
|
+
return param.name;
|
|
91
|
+
},
|
|
92
|
+
get optional() {
|
|
93
|
+
return param.optional;
|
|
94
|
+
},
|
|
95
|
+
get children() {
|
|
96
|
+
return param.doc;
|
|
97
|
+
}
|
|
98
|
+
})
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function normalizeParametersForDoc(parameters) {
|
|
102
|
+
if (parameters.some((p) => typeof p === "string")) return [];
|
|
103
|
+
return parameters;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Create a TSDoc `@title` tag.
|
|
107
|
+
*/
|
|
108
|
+
function TSDocTitle(props) {
|
|
109
|
+
const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
|
|
110
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocTag, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
111
|
+
tag: "title",
|
|
112
|
+
children
|
|
113
|
+
}));
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Create a TSDoc `@domain` tag.
|
|
117
|
+
*/
|
|
118
|
+
function TSDocDomain(props) {
|
|
119
|
+
const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
|
|
120
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocTag, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
121
|
+
tag: "domain",
|
|
122
|
+
children
|
|
123
|
+
}));
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Create a TSDoc `@alias` tag.
|
|
127
|
+
*/
|
|
128
|
+
function TSDocAlias(props) {
|
|
129
|
+
const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
|
|
130
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocTag, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
131
|
+
tag: "alias",
|
|
132
|
+
children
|
|
133
|
+
}));
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Create a TSDoc `@permission` tag.
|
|
137
|
+
*/
|
|
138
|
+
function TSDocPermission(props) {
|
|
139
|
+
const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
|
|
140
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocTag, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
141
|
+
tag: "permission",
|
|
142
|
+
children
|
|
143
|
+
}));
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Create a TSDoc `@defaultValue` tag.
|
|
147
|
+
*/
|
|
148
|
+
function TSDocDefaultValue(props) {
|
|
149
|
+
const [{ type, defaultValue }] = (0, __alloy_js_core.splitProps)(props, ["type", "defaultValue"]);
|
|
150
|
+
return [
|
|
151
|
+
"@defaultValue ",
|
|
152
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
153
|
+
get when() {
|
|
154
|
+
return !(0, __stryke_type_checks_is_undefined.isUndefined)(defaultValue);
|
|
155
|
+
},
|
|
156
|
+
get children() {
|
|
157
|
+
return (0, __alloy_js_core_jsx_runtime.createIntrinsic)("align", {
|
|
158
|
+
width: 2,
|
|
159
|
+
get children() {
|
|
160
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Prose, { get children() {
|
|
161
|
+
return (0, __powerlines_deepkit_utilities.stringifyDefaultValue)(type, defaultValue);
|
|
162
|
+
} });
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
}),
|
|
167
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
168
|
+
];
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Create a TSDoc `@remarks` tag.
|
|
172
|
+
*/
|
|
173
|
+
function TSDocRemarks(props) {
|
|
174
|
+
return [
|
|
175
|
+
"@remarks ",
|
|
176
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
177
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.List, {
|
|
178
|
+
hardline: true,
|
|
179
|
+
get children() {
|
|
180
|
+
return (0, __alloy_js_core.childrenArray)(() => props.children);
|
|
181
|
+
}
|
|
182
|
+
})
|
|
183
|
+
];
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Create a TSDoc `@see` tag.
|
|
187
|
+
*/
|
|
188
|
+
function TSDocLink(props) {
|
|
189
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocTag, (0, __alloy_js_core_jsx_runtime.mergeProps)(props, { tag: "see" }));
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Create a TSDoc `@example` tag.
|
|
193
|
+
*/
|
|
194
|
+
function TSDocExample(props) {
|
|
195
|
+
const [{ tsx, fenced = true, language, children }] = (0, __alloy_js_core.splitProps)(props, [
|
|
196
|
+
"tsx",
|
|
197
|
+
"fenced",
|
|
198
|
+
"language",
|
|
199
|
+
"children"
|
|
200
|
+
]);
|
|
201
|
+
return [
|
|
202
|
+
"@example ",
|
|
203
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
204
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
205
|
+
when: fenced,
|
|
206
|
+
get children() {
|
|
207
|
+
return [
|
|
208
|
+
"```",
|
|
209
|
+
language || (tsx ? "tsx" : "ts"),
|
|
210
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
211
|
+
];
|
|
212
|
+
}
|
|
213
|
+
}),
|
|
214
|
+
children,
|
|
215
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
216
|
+
when: fenced,
|
|
217
|
+
get children() {
|
|
218
|
+
return [(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}), "```"];
|
|
219
|
+
}
|
|
220
|
+
})
|
|
221
|
+
];
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Create a TSDoc `@readonly` tag.
|
|
225
|
+
*/
|
|
226
|
+
function TSDocReadonly() {
|
|
227
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocTag, { tag: "readonly" });
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Create a TSDoc `@internal` tag.
|
|
231
|
+
*/
|
|
232
|
+
function TSDocInternal() {
|
|
233
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocTag, { tag: "internal" });
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Create a TSDoc `@ignore` tag.
|
|
237
|
+
*/
|
|
238
|
+
function TSDocIgnore() {
|
|
239
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocTag, { tag: "ignore" });
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Create a TSDoc `@hidden` tag.
|
|
243
|
+
*/
|
|
244
|
+
function TSDocHidden() {
|
|
245
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocTag, { tag: "hidden" });
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Generates a TypeScript interface property for the given reflection class.
|
|
249
|
+
*/
|
|
250
|
+
function TSDocAttributesTags(props) {
|
|
251
|
+
const [{ type, title, alias, permission, domain, readonly, internal, ignore, hidden, defaultValue }] = (0, __alloy_js_core.splitProps)(props, [
|
|
252
|
+
"type",
|
|
253
|
+
"title",
|
|
254
|
+
"alias",
|
|
255
|
+
"permission",
|
|
256
|
+
"domain",
|
|
257
|
+
"readonly",
|
|
258
|
+
"internal",
|
|
259
|
+
"ignore",
|
|
260
|
+
"hidden",
|
|
261
|
+
"defaultValue"
|
|
262
|
+
]);
|
|
263
|
+
return [
|
|
264
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
265
|
+
get when() {
|
|
266
|
+
return (0, __stryke_type_checks_is_set_string.isSetString)(title?.trim());
|
|
267
|
+
},
|
|
268
|
+
get children() {
|
|
269
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocTitle, { children: title });
|
|
270
|
+
}
|
|
271
|
+
}),
|
|
272
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
273
|
+
get when() {
|
|
274
|
+
return (0, __alloy_js_core_jsx_runtime.memo)(() => !!(!(0, __stryke_type_checks_is_undefined.isUndefined)(alias) && alias.length > 0))() && alias.some((a) => (0, __stryke_type_checks_is_set_string.isSetString)(a?.trim()));
|
|
275
|
+
},
|
|
276
|
+
get children() {
|
|
277
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
|
|
278
|
+
get each() {
|
|
279
|
+
return alias?.filter((a) => (0, __stryke_type_checks_is_set_string.isSetString)(a?.trim())) ?? [];
|
|
280
|
+
},
|
|
281
|
+
children: (alias$1) => (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocAlias, { children: alias$1 })
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
}),
|
|
285
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
286
|
+
get when() {
|
|
287
|
+
return (0, __stryke_type_checks_is_set_string.isSetString)(domain?.trim());
|
|
288
|
+
},
|
|
289
|
+
get children() {
|
|
290
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocDomain, { children: domain });
|
|
291
|
+
}
|
|
292
|
+
}),
|
|
293
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
294
|
+
get when() {
|
|
295
|
+
return (0, __alloy_js_core_jsx_runtime.memo)(() => !!(!(0, __stryke_type_checks_is_undefined.isUndefined)(permission) && permission.length > 0))() && permission.some((p) => (0, __stryke_type_checks_is_set_string.isSetString)(p?.trim()));
|
|
296
|
+
},
|
|
297
|
+
get children() {
|
|
298
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
|
|
299
|
+
get each() {
|
|
300
|
+
return permission?.filter((p) => (0, __stryke_type_checks_is_set_string.isSetString)(p?.trim())) ?? [];
|
|
301
|
+
},
|
|
302
|
+
children: (permission$1) => (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocPermission, { children: permission$1 })
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
}),
|
|
306
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
307
|
+
when: readonly === true,
|
|
308
|
+
get children() {
|
|
309
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocReadonly, {});
|
|
310
|
+
}
|
|
311
|
+
}),
|
|
312
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
313
|
+
when: internal === true,
|
|
314
|
+
get children() {
|
|
315
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocInternal, {});
|
|
316
|
+
}
|
|
317
|
+
}),
|
|
318
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
319
|
+
when: ignore === true,
|
|
320
|
+
get children() {
|
|
321
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocIgnore, {});
|
|
322
|
+
}
|
|
323
|
+
}),
|
|
324
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
325
|
+
when: hidden === true,
|
|
326
|
+
get children() {
|
|
327
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocHidden, {});
|
|
328
|
+
}
|
|
329
|
+
}),
|
|
330
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
331
|
+
get when() {
|
|
332
|
+
return (0, __alloy_js_core_jsx_runtime.memo)(() => !!!(0, __stryke_type_checks_is_undefined.isUndefined)(type))() && !(0, __stryke_type_checks_is_undefined.isUndefined)(defaultValue);
|
|
333
|
+
},
|
|
334
|
+
get children() {
|
|
335
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocDefaultValue, {
|
|
336
|
+
type,
|
|
337
|
+
defaultValue
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
})
|
|
341
|
+
];
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Create a TSDoc parameter set off with `@param`.
|
|
345
|
+
*/
|
|
346
|
+
function TSDocParam(props) {
|
|
347
|
+
return [
|
|
348
|
+
"@param ",
|
|
349
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(TSDocParamName, {
|
|
350
|
+
get name() {
|
|
351
|
+
return props.name;
|
|
352
|
+
},
|
|
353
|
+
get optional() {
|
|
354
|
+
return props.optional;
|
|
355
|
+
},
|
|
356
|
+
get defaultValue() {
|
|
357
|
+
return props.defaultValue;
|
|
358
|
+
}
|
|
359
|
+
}),
|
|
360
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(TSDocParamDescription, { get children() {
|
|
361
|
+
return props.children;
|
|
362
|
+
} })
|
|
363
|
+
];
|
|
364
|
+
}
|
|
365
|
+
function TSDocParamName(props) {
|
|
366
|
+
return [
|
|
367
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
368
|
+
get when() {
|
|
369
|
+
return props.optional;
|
|
370
|
+
},
|
|
371
|
+
children: "["
|
|
372
|
+
}),
|
|
373
|
+
(0, __alloy_js_core_jsx_runtime.memo)(() => props.name),
|
|
374
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
375
|
+
get when() {
|
|
376
|
+
return Boolean(props.defaultValue);
|
|
377
|
+
},
|
|
378
|
+
get children() {
|
|
379
|
+
return ["=", (0, __alloy_js_core_jsx_runtime.memo)(() => props.defaultValue)];
|
|
380
|
+
}
|
|
381
|
+
}),
|
|
382
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
383
|
+
get when() {
|
|
384
|
+
return props.optional;
|
|
385
|
+
},
|
|
386
|
+
children: "]"
|
|
387
|
+
})
|
|
388
|
+
];
|
|
389
|
+
}
|
|
390
|
+
function TSDocParamDescription(props) {
|
|
391
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
392
|
+
get when() {
|
|
393
|
+
return Boolean(props.children);
|
|
394
|
+
},
|
|
395
|
+
get children() {
|
|
396
|
+
return [" - ", (0, __alloy_js_core_jsx_runtime.createIntrinsic)("align", {
|
|
397
|
+
width: 2,
|
|
398
|
+
get children() {
|
|
399
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Prose, { get children() {
|
|
400
|
+
return props.children;
|
|
401
|
+
} });
|
|
402
|
+
}
|
|
403
|
+
})];
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Create a TSDoc `@returns` tag.
|
|
409
|
+
*/
|
|
410
|
+
function TSDocReturns(props) {
|
|
411
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocTag, (0, __alloy_js_core_jsx_runtime.mergeProps)(props, { tag: "returns" }));
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Create a TSDoc `@throws` tag.
|
|
415
|
+
*/
|
|
416
|
+
function TSDocThrows(props) {
|
|
417
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TSDocTag, (0, __alloy_js_core_jsx_runtime.mergeProps)(props, { tag: "throws" }));
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Generates a TSDoc `@module` tag for the given module name.
|
|
421
|
+
*/
|
|
422
|
+
function TSDocModule(props) {
|
|
423
|
+
const [{ children, name, prefix }] = (0, __alloy_js_core.splitProps)(props, [
|
|
424
|
+
"children",
|
|
425
|
+
"name",
|
|
426
|
+
"prefix"
|
|
427
|
+
]);
|
|
428
|
+
const context = require_core_contexts_context.usePowerlinesSafe();
|
|
429
|
+
return [
|
|
430
|
+
"/**",
|
|
431
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("align", {
|
|
432
|
+
string: " * ",
|
|
433
|
+
get children() {
|
|
434
|
+
return [
|
|
435
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
436
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
437
|
+
get when() {
|
|
438
|
+
return Boolean(children);
|
|
439
|
+
},
|
|
440
|
+
get children() {
|
|
441
|
+
return [
|
|
442
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.List, {
|
|
443
|
+
hardline: true,
|
|
444
|
+
get children() {
|
|
445
|
+
return (0, __alloy_js_core.childrenArray)(() => children);
|
|
446
|
+
}
|
|
447
|
+
}),
|
|
448
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
449
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
450
|
+
];
|
|
451
|
+
}
|
|
452
|
+
}),
|
|
453
|
+
"@module ",
|
|
454
|
+
(0, __alloy_js_core_jsx_runtime.memo)(() => prefix || context?.config?.framework || "powerlines"),
|
|
455
|
+
":",
|
|
456
|
+
name
|
|
457
|
+
];
|
|
458
|
+
}
|
|
459
|
+
}),
|
|
460
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
461
|
+
` */`
|
|
462
|
+
];
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
//#endregion
|
|
466
|
+
exports.TSDoc = TSDoc;
|
|
467
|
+
exports.TSDocAlias = TSDocAlias;
|
|
468
|
+
exports.TSDocAttributesTags = TSDocAttributesTags;
|
|
469
|
+
exports.TSDocDefaultValue = TSDocDefaultValue;
|
|
470
|
+
exports.TSDocDomain = TSDocDomain;
|
|
471
|
+
exports.TSDocExample = TSDocExample;
|
|
472
|
+
exports.TSDocHidden = TSDocHidden;
|
|
473
|
+
exports.TSDocIgnore = TSDocIgnore;
|
|
474
|
+
exports.TSDocInternal = TSDocInternal;
|
|
475
|
+
exports.TSDocLink = TSDocLink;
|
|
476
|
+
exports.TSDocModule = TSDocModule;
|
|
477
|
+
exports.TSDocParam = TSDocParam;
|
|
478
|
+
exports.TSDocParams = TSDocParams;
|
|
479
|
+
exports.TSDocPermission = TSDocPermission;
|
|
480
|
+
exports.TSDocReadonly = TSDocReadonly;
|
|
481
|
+
exports.TSDocRemarks = TSDocRemarks;
|
|
482
|
+
exports.TSDocReturns = TSDocReturns;
|
|
483
|
+
exports.TSDocTag = TSDocTag;
|
|
484
|
+
exports.TSDocThrows = TSDocThrows;
|
|
485
|
+
exports.TSDocTitle = TSDocTitle;
|
|
@@ -1,3 +1,164 @@
|
|
|
1
|
-
import "../../components
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
+
import { Children } from "@alloy-js/core";
|
|
3
|
+
import { ReflectionKind, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
|
+
import { JSDocExampleProps, ParameterDescriptor } from "@alloy-js/typescript";
|
|
5
|
+
|
|
6
|
+
//#region src/typescript/components/tsdoc.d.ts
|
|
7
|
+
interface TSDocProps extends ComponentProps {
|
|
8
|
+
heading?: Children;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Generates a TypeScript interface for the given reflection class.
|
|
12
|
+
*/
|
|
13
|
+
declare function TSDoc(props: TSDocProps): Children;
|
|
14
|
+
interface TSDocTagProps extends ComponentProps {
|
|
15
|
+
tag: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Create a TSDoc `@<props.tag>` tag.
|
|
19
|
+
*/
|
|
20
|
+
declare function TSDocTag(props: TSDocTagProps): Children;
|
|
21
|
+
interface TSDocParamsProps {
|
|
22
|
+
parameters: ParameterDescriptor[] | string[];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A component that creates a TSDoc block with `@param` tags for each parameter.
|
|
26
|
+
*/
|
|
27
|
+
declare function TSDocParams(props: TSDocParamsProps): Children;
|
|
28
|
+
/**
|
|
29
|
+
* Create a TSDoc `@title` tag.
|
|
30
|
+
*/
|
|
31
|
+
declare function TSDocTitle(props: ComponentProps): Children;
|
|
32
|
+
/**
|
|
33
|
+
* Create a TSDoc `@domain` tag.
|
|
34
|
+
*/
|
|
35
|
+
declare function TSDocDomain(props: ComponentProps): Children;
|
|
36
|
+
/**
|
|
37
|
+
* Create a TSDoc `@alias` tag.
|
|
38
|
+
*/
|
|
39
|
+
declare function TSDocAlias(props: ComponentProps): Children;
|
|
40
|
+
/**
|
|
41
|
+
* Create a TSDoc `@permission` tag.
|
|
42
|
+
*/
|
|
43
|
+
declare function TSDocPermission(props: ComponentProps): Children;
|
|
44
|
+
interface TSDocDefaultValueProps extends ComponentProps {
|
|
45
|
+
type: ReflectionKind | ReflectionProperty | ReflectionParameter;
|
|
46
|
+
defaultValue: any;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Create a TSDoc `@defaultValue` tag.
|
|
50
|
+
*/
|
|
51
|
+
declare function TSDocDefaultValue(props: TSDocDefaultValueProps): Children;
|
|
52
|
+
/**
|
|
53
|
+
* Create a TSDoc `@remarks` tag.
|
|
54
|
+
*/
|
|
55
|
+
declare function TSDocRemarks(props: ComponentProps): Children;
|
|
56
|
+
/**
|
|
57
|
+
* Create a TSDoc `@see` tag.
|
|
58
|
+
*/
|
|
59
|
+
declare function TSDocLink(props: ComponentProps): Children;
|
|
60
|
+
interface TSDocExampleProps extends JSDocExampleProps {
|
|
61
|
+
/**
|
|
62
|
+
* Whether the file is a TSX file.
|
|
63
|
+
*
|
|
64
|
+
* @defaultValue false
|
|
65
|
+
*/
|
|
66
|
+
tsx?: boolean;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Create a TSDoc `@example` tag.
|
|
70
|
+
*/
|
|
71
|
+
declare function TSDocExample(props: TSDocExampleProps): Children;
|
|
72
|
+
/**
|
|
73
|
+
* Create a TSDoc `@readonly` tag.
|
|
74
|
+
*/
|
|
75
|
+
declare function TSDocReadonly(): Children;
|
|
76
|
+
/**
|
|
77
|
+
* Create a TSDoc `@internal` tag.
|
|
78
|
+
*/
|
|
79
|
+
declare function TSDocInternal(): Children;
|
|
80
|
+
/**
|
|
81
|
+
* Create a TSDoc `@ignore` tag.
|
|
82
|
+
*/
|
|
83
|
+
declare function TSDocIgnore(): Children;
|
|
84
|
+
/**
|
|
85
|
+
* Create a TSDoc `@hidden` tag.
|
|
86
|
+
*/
|
|
87
|
+
declare function TSDocHidden(): Children;
|
|
88
|
+
interface TSDocAttributesTagsProps {
|
|
89
|
+
type?: ReflectionKind | ReflectionProperty | ReflectionParameter;
|
|
90
|
+
title?: string;
|
|
91
|
+
alias?: string[];
|
|
92
|
+
permission?: string[];
|
|
93
|
+
domain?: string;
|
|
94
|
+
readonly?: boolean;
|
|
95
|
+
internal?: boolean;
|
|
96
|
+
ignore?: boolean;
|
|
97
|
+
hidden?: boolean;
|
|
98
|
+
defaultValue?: any;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Generates a TypeScript interface property for the given reflection class.
|
|
102
|
+
*/
|
|
103
|
+
declare function TSDocAttributesTags(props: TSDocAttributesTagsProps): Children;
|
|
104
|
+
interface TSDocParamProps {
|
|
105
|
+
name: Children;
|
|
106
|
+
children?: Children;
|
|
107
|
+
optional?: boolean;
|
|
108
|
+
defaultValue?: Children;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Create a TSDoc parameter set off with `@param`.
|
|
112
|
+
*/
|
|
113
|
+
declare function TSDocParam(props: TSDocParamProps): Children;
|
|
114
|
+
/**
|
|
115
|
+
* Create a TSDoc `@returns` tag.
|
|
116
|
+
*/
|
|
117
|
+
declare function TSDocReturns(props: ComponentProps): Children;
|
|
118
|
+
/**
|
|
119
|
+
* Create a TSDoc `@throws` tag.
|
|
120
|
+
*/
|
|
121
|
+
declare function TSDocThrows(props: ComponentProps): Children;
|
|
122
|
+
interface TSDocModuleProps extends ComponentProps {
|
|
123
|
+
/**
|
|
124
|
+
* The prefix for the builtin module name
|
|
125
|
+
*
|
|
126
|
+
* @remarks
|
|
127
|
+
* This value is populated from the Powerlines configuration output builtin prefix by default.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```ts
|
|
131
|
+
* /**
|
|
132
|
+
* @module powerlines:my-module
|
|
133
|
+
* \/
|
|
134
|
+
* ```
|
|
135
|
+
*/
|
|
136
|
+
prefix?: string;
|
|
137
|
+
/**
|
|
138
|
+
* The name of the module
|
|
139
|
+
*
|
|
140
|
+
* @remarks
|
|
141
|
+
* This will be used in the `@module` tag as well as the import path for the module, e.g. `storm:<name>`.
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* ```ts
|
|
145
|
+
* import { MyModule } from "powerlines:my-module";
|
|
146
|
+
* ```
|
|
147
|
+
*/
|
|
148
|
+
name: Children;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Generates a TSDoc `@module` tag for the given module name.
|
|
152
|
+
*/
|
|
153
|
+
declare function TSDocModule(props: TSDocModuleProps): Children;
|
|
154
|
+
declare type __ΩTSDocProps = any[];
|
|
155
|
+
declare type __ΩTSDocTagProps = any[];
|
|
156
|
+
declare type __ΩTSDocParamsProps = any[];
|
|
157
|
+
declare type __ΩTSDocDefaultValueProps = any[];
|
|
158
|
+
declare type __ΩTSDocExampleProps = any[];
|
|
159
|
+
declare type __ΩTSDocAttributesTagsProps = any[];
|
|
160
|
+
declare type __ΩTSDocParamProps = any[];
|
|
161
|
+
declare type __ΩTSDocModuleProps = any[];
|
|
162
|
+
//#endregion
|
|
163
|
+
export { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps };
|
|
164
|
+
//# sourceMappingURL=tsdoc.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tsdoc.d.cts","names":[],"sources":["../../../src/typescript/components/tsdoc.tsx"],"sourcesContent":[],"mappings":";;;;;;UAuCiB,UAAA,SAAmB;YACxB;AADZ;AAOA;AAgCA;AAOA;AAgBiB,iBAvDD,KAAA,CAuDiB,KACnB,EAxDe,UAwDf,CAAA,EAxDyB,QAwDN;AAMjB,UA9BC,aAAA,SAAsB,cA8BY,CAAA;EA2BnC,GAAA,EAAA,MAAA;AAahB;AAaA;AAaA;AAUA;AACQ,iBApGQ,QAAA,CAoGR,KAAA,EApGwB,aAoGxB,CAAA,EApGqC,QAoGrC;AAAiB,UApFR,gBAAA,CAoFQ;EAAqB,UAAA,EAnFhC,mBAmFgC,EAAA,GAAA,MAAA,EAAA;;;AAO9C;AAmBA;AAagB,iBApHA,WAAA,CAoHiB,KAAA,EApHE,gBAoHY,CAAA,EApHI,QAoHJ;AAI/C;AAYA;AA4BA;AAOgB,iBA5IA,UAAA,CA4Ia,KAAA,EA5IK,cA4IL,CAAA,EA5ImB,QA4InB;AAO7B;AAOA;AAIA;AACS,iBAlJO,WAAA,CAkJP,KAAA,EAlJ0B,cAkJ1B,CAAA,EAlJwC,QAkJxC;;;;AAeO,iBApJA,UAAA,CAoJmB,KAAQ,EApJT,cAoJS,CAAA,EApJK,QAoJmB;AA+EnE;;;AAIiB,iBA1ND,eAAA,CA0NC,KAAA,EA1NsB,cA0NtB,CAAA,EA1NoC,QA0NpC;AAAQ,UAhNR,sBAAA,SAA+B,cAgNvB,CAAA;EAMT,IAAA,EArNR,cAqNkB,GArND,kBAqNS,GArNY,mBAqNG;EAiDjC,YAAA,EAAA,GAAY;AAO5B;AAIA;AAiCA;;iBA3SgB,iBAAA,QAAyB,yBAAsB;;;;iBAmB/C,YAAA,QAAoB,iBAAc;;;;iBAalC,SAAA,QAAiB,iBAAc;UAI9B,iBAAA,SAA0B;;;;;;;;;;;iBAY3B,YAAA,QAAoB,oBAAiB;;;;iBA4BrC,aAAA,CAAA,GAAa;;;;iBAOb,aAAA,CAAA,GAAa;;;;iBAOb,WAAA,CAAA,GAAW;;;;iBAOX,WAAA,CAAA,GAAW;UAIV,wBAAA;SACR,iBAAiB,qBAAqB;;;;;;;;;;;;;;iBAe/B,mBAAA,QAA2B,2BAAwB;UA+ElD,eAAA;QACT;aACK;;iBAEI;;;;;iBAMD,UAAA,QAAkB,kBAAe;;;;iBAiDjC,YAAA,QAAoB,iBAAc;;;;iBAOlC,WAAA,QAAmB,iBAAc;UAIhC,gBAAA,SAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;QA2BlC;;;;;iBAMQ,WAAA,QAAmB,mBAAgB"}
|