@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,25 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
|
-
import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
|
|
5
|
-
|
|
6
|
-
//#region src/typescript/components/typescript-interface.d.ts
|
|
7
|
-
interface TypeScriptInterfaceProps<T extends Record<string, any> = Record<string, any>> extends InterfaceDeclarationProps, ComponentProps {
|
|
8
|
-
reflection: ReflectionClass<T>;
|
|
9
|
-
defaultValue?: Partial<T>;
|
|
10
|
-
}
|
|
11
|
-
interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "name">, ComponentProps {
|
|
12
|
-
property: ReflectionProperty;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Generates a TypeScript interface for the given reflection class.
|
|
16
|
-
*/
|
|
17
|
-
declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core10.Children;
|
|
18
|
-
/**
|
|
19
|
-
* Generates a TypeScript interface property for the given reflection class.
|
|
20
|
-
*/
|
|
21
|
-
declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core10.Children;
|
|
22
|
-
declare type __ΩTypeScriptInterfaceProps = any[];
|
|
23
|
-
declare type __ΩTypescriptInterfacePropertyProps = any[];
|
|
24
|
-
//#endregion
|
|
1
|
+
import "../../components-oHSM7vmp.mjs";
|
|
2
|
+
import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../../typescript-interface-MV4qwTHs.mjs";
|
|
25
3
|
export { TypeScriptInterface, TypeScriptInterfaceProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptInterfacePropertyProps };
|
|
@@ -1,71 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { isString } from "@stryke/type-checks/is-string";
|
|
8
|
-
import { InterfaceDeclaration, InterfaceMember } from "@alloy-js/typescript";
|
|
1
|
+
import "../../unctx-MFxscYXI.mjs";
|
|
2
|
+
import "../../context-e2kZWEFW.mjs";
|
|
3
|
+
import "../../reflection-B-NMNIoB.mjs";
|
|
4
|
+
import "../../tsdoc-Crv526i6.mjs";
|
|
5
|
+
import "../../tsdoc-reflection-D-eKs6S1.mjs";
|
|
6
|
+
import { n as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../../typescript-interface-LN3uCdA6.mjs";
|
|
9
7
|
|
|
10
|
-
//#region src/typescript/components/typescript-interface.tsx
|
|
11
|
-
/**
|
|
12
|
-
* Generates a TypeScript interface for the given reflection class.
|
|
13
|
-
*/
|
|
14
|
-
function TypeScriptInterface(props) {
|
|
15
|
-
const [{ name, reflection, doc }, rest] = splitProps(props, [
|
|
16
|
-
"name",
|
|
17
|
-
"reflection",
|
|
18
|
-
"doc"
|
|
19
|
-
]);
|
|
20
|
-
const interfaceName = computed(() => pascalCase((isString(name) ? name : name.toString()) || reflection.getName()));
|
|
21
|
-
const properties = reflection.getProperties().filter((item) => !item.isIgnored()).sort((a, b) => a.isReadonly() && b.isReadonly() || !a.isReadonly() && !b.isReadonly() ? a.getNameAsString().localeCompare(b.getNameAsString()) : a.isReadonly() ? 1 : -1);
|
|
22
|
-
return createComponent(ReflectionClassContext.Provider, {
|
|
23
|
-
value: { reflection },
|
|
24
|
-
get children() {
|
|
25
|
-
return [createComponent(TSDocReflectionClass, { heading: doc }), createComponent(InterfaceDeclaration, mergeProps({
|
|
26
|
-
"export": true,
|
|
27
|
-
get name() {
|
|
28
|
-
return interfaceName.value;
|
|
29
|
-
}
|
|
30
|
-
}, rest, { get children() {
|
|
31
|
-
return createComponent(For, {
|
|
32
|
-
each: properties,
|
|
33
|
-
doubleHardline: true,
|
|
34
|
-
semicolon: true,
|
|
35
|
-
children: (prop) => createComponent(TypescriptInterfaceProperty, { property: prop })
|
|
36
|
-
});
|
|
37
|
-
} }))];
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Generates a TypeScript interface property for the given reflection class.
|
|
43
|
-
*/
|
|
44
|
-
function TypescriptInterfaceProperty(props) {
|
|
45
|
-
const [{ property }, rest] = splitProps(props, ["property"]);
|
|
46
|
-
return createComponent(ReflectionPropertyContext.Provider, {
|
|
47
|
-
value: property,
|
|
48
|
-
get children() {
|
|
49
|
-
return [createComponent(TSDocReflectionProperty, {}), createComponent(InterfaceMember, mergeProps({
|
|
50
|
-
get name() {
|
|
51
|
-
return property.getNameAsString();
|
|
52
|
-
},
|
|
53
|
-
get readonly() {
|
|
54
|
-
return property.isReadonly();
|
|
55
|
-
},
|
|
56
|
-
get optional() {
|
|
57
|
-
return property.isOptional();
|
|
58
|
-
},
|
|
59
|
-
get nullish() {
|
|
60
|
-
return property.isNullable();
|
|
61
|
-
},
|
|
62
|
-
get type() {
|
|
63
|
-
return stringifyType(property.getType());
|
|
64
|
-
}
|
|
65
|
-
}, rest))];
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
//#endregion
|
|
71
8
|
export { TypeScriptInterface, TypescriptInterfaceProperty };
|
|
@@ -1,125 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
|
|
8
|
-
let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
9
|
-
let __stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
|
|
10
|
-
let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
11
|
-
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
1
|
+
require('../../unctx-r7Vvh6XR.cjs');
|
|
2
|
+
require('../../context--KBspFnw.cjs');
|
|
3
|
+
require('../../reflection-DHpdhvwI.cjs');
|
|
4
|
+
require('../../tsdoc-BId4fp5_.cjs');
|
|
5
|
+
require('../../tsdoc-reflection-IH-Mt2o_.cjs');
|
|
6
|
+
const require_typescript_object = require('../../typescript-object-ENaG1YGI.cjs');
|
|
12
7
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
* Generates a TypeScript object for the given reflection class.
|
|
16
|
-
*/
|
|
17
|
-
function TypescriptObject(props) {
|
|
18
|
-
if (!props.reflection?.value) return null;
|
|
19
|
-
const objectName = (0, __alloy_js_core.computed)(() => (0, __stryke_string_format_camel_case.camelCase)(((0, __stryke_type_checks_is_string.isString)(props.name) ? props.name : props.name.toString()) || props.reflection.value.getName()));
|
|
20
|
-
const objectType = (0, __alloy_js_core.computed)(() => props.type || (0, __stryke_string_format_pascal_case.pascalCase)(props.reflection.value.getName()));
|
|
21
|
-
const properties = (0, __alloy_js_core.computed)(() => props.reflection.value.getProperties().filter((item) => !item.isIgnored() && !(0, __stryke_type_checks_is_undefined.isUndefined)(props.defaultValue?.value?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
|
|
22
|
-
if ((0, __stryke_type_checks_is_undefined.isUndefined)(ret) && !(0, __stryke_type_checks_is_undefined.isUndefined)(props.defaultValue?.value?.[alias])) return props.defaultValue?.value?.[alias];
|
|
23
|
-
return ret;
|
|
24
|
-
}, void 0) ?? item.getDefaultValue())).sort((a, b) => a.isReadonly() && b.isReadonly() || !a.isReadonly() && !b.isReadonly() ? a.getNameAsString().localeCompare(b.getNameAsString()) : a.isReadonly() ? 1 : -1));
|
|
25
|
-
const TypeSymbolSlot = (0, __alloy_js_core.createSymbolSlot)();
|
|
26
|
-
const ValueTypeSymbolSlot = (0, __alloy_js_core.createSymbolSlot)();
|
|
27
|
-
const sym = (0, __alloy_js_typescript.createValueSymbol)(props.name, {
|
|
28
|
-
refkeys: props.refkey,
|
|
29
|
-
default: props.default,
|
|
30
|
-
export: props.export,
|
|
31
|
-
metadata: props.metadata,
|
|
32
|
-
tsFlags: props.nullish ? __alloy_js_typescript.TSSymbolFlags.Nullish : __alloy_js_typescript.TSSymbolFlags.None,
|
|
33
|
-
type: props.type ? TypeSymbolSlot.firstSymbol : void 0,
|
|
34
|
-
namePolicy: (0, __alloy_js_typescript.useTSNamePolicy)().for("variable")
|
|
35
|
-
});
|
|
36
|
-
if (!props.type) ValueTypeSymbolSlot.moveMembersTo(sym);
|
|
37
|
-
const keyword = props.var ? "var" : props.let ? "let" : "const";
|
|
38
|
-
const type = props.type ? (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.TypeRefContext, { get children() {
|
|
39
|
-
return [": ", (0, __alloy_js_core_jsx_runtime.createComponent)(TypeSymbolSlot, { get children() {
|
|
40
|
-
return props.type;
|
|
41
|
-
} })];
|
|
42
|
-
} }) : void 0;
|
|
43
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
44
|
-
get when() {
|
|
45
|
-
return !!props.reflection.value;
|
|
46
|
-
},
|
|
47
|
-
get children() {
|
|
48
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionClassContext.Provider, {
|
|
49
|
-
get value() {
|
|
50
|
-
return {
|
|
51
|
-
reflection: props.reflection.value,
|
|
52
|
-
override: {
|
|
53
|
-
name: objectName.value,
|
|
54
|
-
type: objectType.value,
|
|
55
|
-
defaultValue: props.defaultValue?.value
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
get children() {
|
|
60
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
61
|
-
get when() {
|
|
62
|
-
return !!objectName.value && !!objectType.value;
|
|
63
|
-
},
|
|
64
|
-
get children() {
|
|
65
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionClass, {}), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Declaration, {
|
|
66
|
-
symbol: sym,
|
|
67
|
-
get children() {
|
|
68
|
-
return [
|
|
69
|
-
(0, __alloy_js_core_jsx_runtime.memo)(() => props.export ? "export " : ""),
|
|
70
|
-
(0, __alloy_js_core_jsx_runtime.memo)(() => props.default ? "default " : ""),
|
|
71
|
-
keyword,
|
|
72
|
-
" ",
|
|
73
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Name, {}),
|
|
74
|
-
type,
|
|
75
|
-
" =",
|
|
76
|
-
" ",
|
|
77
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(ValueTypeSymbolSlot, { get children() {
|
|
78
|
-
return props.initializer ?? props.children ?? (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.ObjectExpression, { get children() {
|
|
79
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
|
|
80
|
-
get each() {
|
|
81
|
-
return properties.value ?? [];
|
|
82
|
-
},
|
|
83
|
-
comma: true,
|
|
84
|
-
doubleHardline: true,
|
|
85
|
-
children: (prop) => (0, __alloy_js_core_jsx_runtime.createComponent)(TypescriptObjectProperty, { property: prop })
|
|
86
|
-
});
|
|
87
|
-
} });
|
|
88
|
-
} })
|
|
89
|
-
];
|
|
90
|
-
}
|
|
91
|
-
})];
|
|
92
|
-
}
|
|
93
|
-
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Generates a TypeScript object property for the given reflection class.
|
|
101
|
-
*/
|
|
102
|
-
function TypescriptObjectProperty(props) {
|
|
103
|
-
const [{ property }] = (0, __alloy_js_core.splitProps)(props, ["property"]);
|
|
104
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionPropertyContext.Provider, {
|
|
105
|
-
value: property,
|
|
106
|
-
get children() {
|
|
107
|
-
return [
|
|
108
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionProperty, {}),
|
|
109
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.ObjectProperty, {
|
|
110
|
-
get name() {
|
|
111
|
-
return property.getNameAsString();
|
|
112
|
-
},
|
|
113
|
-
get value() {
|
|
114
|
-
return (0, __powerlines_deepkit_utilities.stringifyDefaultValue)(property);
|
|
115
|
-
}
|
|
116
|
-
}),
|
|
117
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
118
|
-
];
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
//#endregion
|
|
124
|
-
exports.TypescriptObject = TypescriptObject;
|
|
125
|
-
exports.TypescriptObjectProperty = TypescriptObjectProperty;
|
|
8
|
+
exports.TypescriptObject = require_typescript_object.TypescriptObject;
|
|
9
|
+
exports.TypescriptObjectProperty = require_typescript_object.TypescriptObjectProperty;
|
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
4
|
-
import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
5
|
-
|
|
6
|
-
//#region src/typescript/components/typescript-object.d.ts
|
|
7
|
-
interface ComputedRef<T = any> {
|
|
8
|
-
readonly value: T;
|
|
9
|
-
}
|
|
10
|
-
interface TypescriptObjectProps<T extends Record<string, any> = Record<string, any>> extends VarDeclarationProps {
|
|
11
|
-
reflection?: ComputedRef<ReflectionClass<T>>;
|
|
12
|
-
defaultValue?: ComputedRef<Partial<T> | undefined>;
|
|
13
|
-
}
|
|
14
|
-
interface TypescriptObjectPropertyProps extends ComponentProps {
|
|
15
|
-
property: ReflectionProperty;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Generates a TypeScript object for the given reflection class.
|
|
19
|
-
*/
|
|
20
|
-
declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core16.Children;
|
|
21
|
-
/**
|
|
22
|
-
* Generates a TypeScript object property for the given reflection class.
|
|
23
|
-
*/
|
|
24
|
-
declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core16.Children;
|
|
25
|
-
declare type __ΩComputedRef = any[];
|
|
26
|
-
declare type __ΩTypescriptObjectProps = any[];
|
|
27
|
-
declare type __ΩTypescriptObjectPropertyProps = any[];
|
|
28
|
-
//#endregion
|
|
1
|
+
import "../../components-IRVnipN0.cjs";
|
|
2
|
+
import { a as TypescriptObjectProps, c as __ΩTypescriptObjectProps, i as TypescriptObjectPropertyProps, n as TypescriptObject, o as __ΩComputedRef, r as TypescriptObjectProperty, s as __ΩTypescriptObjectPropertyProps, t as ComputedRef } from "../../typescript-object-v1WiBD8W.cjs";
|
|
29
3
|
export { ComputedRef, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩComputedRef, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
|
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
|
-
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
5
|
-
|
|
6
|
-
//#region src/typescript/components/typescript-object.d.ts
|
|
7
|
-
interface ComputedRef<T = any> {
|
|
8
|
-
readonly value: T;
|
|
9
|
-
}
|
|
10
|
-
interface TypescriptObjectProps<T extends Record<string, any> = Record<string, any>> extends VarDeclarationProps {
|
|
11
|
-
reflection?: ComputedRef<ReflectionClass<T>>;
|
|
12
|
-
defaultValue?: ComputedRef<Partial<T> | undefined>;
|
|
13
|
-
}
|
|
14
|
-
interface TypescriptObjectPropertyProps extends ComponentProps {
|
|
15
|
-
property: ReflectionProperty;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Generates a TypeScript object for the given reflection class.
|
|
19
|
-
*/
|
|
20
|
-
declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core5.Children;
|
|
21
|
-
/**
|
|
22
|
-
* Generates a TypeScript object property for the given reflection class.
|
|
23
|
-
*/
|
|
24
|
-
declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core5.Children;
|
|
25
|
-
declare type __ΩComputedRef = any[];
|
|
26
|
-
declare type __ΩTypescriptObjectProps = any[];
|
|
27
|
-
declare type __ΩTypescriptObjectPropertyProps = any[];
|
|
28
|
-
//#endregion
|
|
1
|
+
import "../../components-oHSM7vmp.mjs";
|
|
2
|
+
import { a as TypescriptObjectProps, c as __ΩTypescriptObjectProps, i as TypescriptObjectPropertyProps, n as TypescriptObject, o as __ΩComputedRef, r as TypescriptObjectProperty, s as __ΩTypescriptObjectPropertyProps, t as ComputedRef } from "../../typescript-object-C7p9fJBF.mjs";
|
|
29
3
|
export { ComputedRef, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩComputedRef, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
|
|
@@ -1,123 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
|
8
|
-
import { pascalCase } from "@stryke/string-format/pascal-case";
|
|
9
|
-
import { isString } from "@stryke/type-checks/is-string";
|
|
10
|
-
import { ObjectExpression, ObjectProperty, TSSymbolFlags, TypeRefContext, createValueSymbol, useTSNamePolicy } from "@alloy-js/typescript";
|
|
1
|
+
import "../../unctx-MFxscYXI.mjs";
|
|
2
|
+
import "../../context-e2kZWEFW.mjs";
|
|
3
|
+
import "../../reflection-B-NMNIoB.mjs";
|
|
4
|
+
import "../../tsdoc-Crv526i6.mjs";
|
|
5
|
+
import "../../tsdoc-reflection-D-eKs6S1.mjs";
|
|
6
|
+
import { n as TypescriptObjectProperty, t as TypescriptObject } from "../../typescript-object-DIyR8xhW.mjs";
|
|
11
7
|
|
|
12
|
-
//#region src/typescript/components/typescript-object.tsx
|
|
13
|
-
/**
|
|
14
|
-
* Generates a TypeScript object for the given reflection class.
|
|
15
|
-
*/
|
|
16
|
-
function TypescriptObject(props) {
|
|
17
|
-
if (!props.reflection?.value) return null;
|
|
18
|
-
const objectName = computed(() => camelCase((isString(props.name) ? props.name : props.name.toString()) || props.reflection.value.getName()));
|
|
19
|
-
const objectType = computed(() => props.type || pascalCase(props.reflection.value.getName()));
|
|
20
|
-
const properties = computed(() => props.reflection.value.getProperties().filter((item) => !item.isIgnored() && !isUndefined(props.defaultValue?.value?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
|
|
21
|
-
if (isUndefined(ret) && !isUndefined(props.defaultValue?.value?.[alias])) return props.defaultValue?.value?.[alias];
|
|
22
|
-
return ret;
|
|
23
|
-
}, void 0) ?? item.getDefaultValue())).sort((a, b) => a.isReadonly() && b.isReadonly() || !a.isReadonly() && !b.isReadonly() ? a.getNameAsString().localeCompare(b.getNameAsString()) : a.isReadonly() ? 1 : -1));
|
|
24
|
-
const TypeSymbolSlot = createSymbolSlot();
|
|
25
|
-
const ValueTypeSymbolSlot = createSymbolSlot();
|
|
26
|
-
const sym = createValueSymbol(props.name, {
|
|
27
|
-
refkeys: props.refkey,
|
|
28
|
-
default: props.default,
|
|
29
|
-
export: props.export,
|
|
30
|
-
metadata: props.metadata,
|
|
31
|
-
tsFlags: props.nullish ? TSSymbolFlags.Nullish : TSSymbolFlags.None,
|
|
32
|
-
type: props.type ? TypeSymbolSlot.firstSymbol : void 0,
|
|
33
|
-
namePolicy: useTSNamePolicy().for("variable")
|
|
34
|
-
});
|
|
35
|
-
if (!props.type) ValueTypeSymbolSlot.moveMembersTo(sym);
|
|
36
|
-
const keyword = props.var ? "var" : props.let ? "let" : "const";
|
|
37
|
-
const type = props.type ? createComponent(TypeRefContext, { get children() {
|
|
38
|
-
return [": ", createComponent(TypeSymbolSlot, { get children() {
|
|
39
|
-
return props.type;
|
|
40
|
-
} })];
|
|
41
|
-
} }) : void 0;
|
|
42
|
-
return createComponent(Show, {
|
|
43
|
-
get when() {
|
|
44
|
-
return !!props.reflection.value;
|
|
45
|
-
},
|
|
46
|
-
get children() {
|
|
47
|
-
return createComponent(ReflectionClassContext.Provider, {
|
|
48
|
-
get value() {
|
|
49
|
-
return {
|
|
50
|
-
reflection: props.reflection.value,
|
|
51
|
-
override: {
|
|
52
|
-
name: objectName.value,
|
|
53
|
-
type: objectType.value,
|
|
54
|
-
defaultValue: props.defaultValue?.value
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
},
|
|
58
|
-
get children() {
|
|
59
|
-
return [createComponent(Show, {
|
|
60
|
-
get when() {
|
|
61
|
-
return !!objectName.value && !!objectType.value;
|
|
62
|
-
},
|
|
63
|
-
get children() {
|
|
64
|
-
return [createComponent(TSDocReflectionClass, {}), createComponent(Declaration, {
|
|
65
|
-
symbol: sym,
|
|
66
|
-
get children() {
|
|
67
|
-
return [
|
|
68
|
-
memo(() => props.export ? "export " : ""),
|
|
69
|
-
memo(() => props.default ? "default " : ""),
|
|
70
|
-
keyword,
|
|
71
|
-
" ",
|
|
72
|
-
createComponent(Name, {}),
|
|
73
|
-
type,
|
|
74
|
-
" =",
|
|
75
|
-
" ",
|
|
76
|
-
createComponent(ValueTypeSymbolSlot, { get children() {
|
|
77
|
-
return props.initializer ?? props.children ?? createComponent(ObjectExpression, { get children() {
|
|
78
|
-
return createComponent(For, {
|
|
79
|
-
get each() {
|
|
80
|
-
return properties.value ?? [];
|
|
81
|
-
},
|
|
82
|
-
comma: true,
|
|
83
|
-
doubleHardline: true,
|
|
84
|
-
children: (prop) => createComponent(TypescriptObjectProperty, { property: prop })
|
|
85
|
-
});
|
|
86
|
-
} });
|
|
87
|
-
} })
|
|
88
|
-
];
|
|
89
|
-
}
|
|
90
|
-
})];
|
|
91
|
-
}
|
|
92
|
-
}), createIntrinsic("hbr", {})];
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Generates a TypeScript object property for the given reflection class.
|
|
100
|
-
*/
|
|
101
|
-
function TypescriptObjectProperty(props) {
|
|
102
|
-
const [{ property }] = splitProps(props, ["property"]);
|
|
103
|
-
return createComponent(ReflectionPropertyContext.Provider, {
|
|
104
|
-
value: property,
|
|
105
|
-
get children() {
|
|
106
|
-
return [
|
|
107
|
-
createComponent(TSDocReflectionProperty, {}),
|
|
108
|
-
createComponent(ObjectProperty, {
|
|
109
|
-
get name() {
|
|
110
|
-
return property.getNameAsString();
|
|
111
|
-
},
|
|
112
|
-
get value() {
|
|
113
|
-
return stringifyDefaultValue(property);
|
|
114
|
-
}
|
|
115
|
-
}),
|
|
116
|
-
createIntrinsic("hbr", {})
|
|
117
|
-
];
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
//#endregion
|
|
123
8
|
export { TypescriptObject, TypescriptObjectProperty };
|
|
@@ -1,45 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
require('
|
|
1
|
+
require('../unctx-r7Vvh6XR.cjs');
|
|
2
|
+
require('../single-line-comment-COZ9RWsm.cjs');
|
|
3
|
+
require('../context--KBspFnw.cjs');
|
|
4
|
+
require('../reflection-DHpdhvwI.cjs');
|
|
5
|
+
require('../contexts-DezKayEz.cjs');
|
|
6
|
+
require('../source-file-BAVTBVJy.cjs');
|
|
7
|
+
const require_tsdoc = require('../tsdoc-BId4fp5_.cjs');
|
|
8
|
+
const require_typescript_file = require('../typescript-file-BmLwVIQP.cjs');
|
|
9
|
+
const require_builtin_file = require('../builtin-file-0k9DccCv.cjs');
|
|
10
|
+
const require_dynamic_import_statement = require('../dynamic-import-statement-Dy_MY_Ua.cjs');
|
|
11
|
+
const require_entry_file = require('../entry-file-GR5Rsn25.cjs');
|
|
12
|
+
const require_record_expression = require('../record-expression-6ElbFyR0.cjs');
|
|
13
|
+
const require_tsdoc_reflection = require('../tsdoc-reflection-IH-Mt2o_.cjs');
|
|
14
|
+
const require_typescript_interface = require('../typescript-interface-BNdWrKgb.cjs');
|
|
15
|
+
const require_typescript_object = require('../typescript-object-ENaG1YGI.cjs');
|
|
16
|
+
require('../components-ISRFDWTF.cjs');
|
|
11
17
|
|
|
12
|
-
exports.BuiltinFile =
|
|
13
|
-
exports.DynamicImportStatement =
|
|
14
|
-
exports.EntryFile =
|
|
15
|
-
exports.RecordExpression =
|
|
16
|
-
exports.TSDoc =
|
|
17
|
-
exports.TSDocAlias =
|
|
18
|
-
exports.TSDocAttributesTags =
|
|
19
|
-
exports.TSDocDefaultValue =
|
|
20
|
-
exports.TSDocDomain =
|
|
21
|
-
exports.TSDocExample =
|
|
22
|
-
exports.TSDocHidden =
|
|
23
|
-
exports.TSDocIgnore =
|
|
24
|
-
exports.TSDocInternal =
|
|
25
|
-
exports.TSDocLink =
|
|
26
|
-
exports.TSDocModule =
|
|
27
|
-
exports.TSDocParam =
|
|
28
|
-
exports.TSDocParams =
|
|
29
|
-
exports.TSDocPermission =
|
|
30
|
-
exports.TSDocReadonly =
|
|
31
|
-
exports.TSDocReflectionClass =
|
|
32
|
-
exports.TSDocReflectionMethod =
|
|
33
|
-
exports.TSDocReflectionProperty =
|
|
34
|
-
exports.TSDocRemarks =
|
|
35
|
-
exports.TSDocReturns =
|
|
36
|
-
exports.TSDocTag =
|
|
37
|
-
exports.TSDocThrows =
|
|
38
|
-
exports.TSDocTitle =
|
|
39
|
-
exports.TypeScriptInterface =
|
|
40
|
-
exports.TypescriptFile =
|
|
41
|
-
exports.TypescriptFileHeader =
|
|
42
|
-
exports.TypescriptFileHeaderImports =
|
|
43
|
-
exports.TypescriptInterfaceProperty =
|
|
44
|
-
exports.TypescriptObject =
|
|
45
|
-
exports.TypescriptObjectProperty =
|
|
18
|
+
exports.BuiltinFile = require_builtin_file.BuiltinFile;
|
|
19
|
+
exports.DynamicImportStatement = require_dynamic_import_statement.DynamicImportStatement;
|
|
20
|
+
exports.EntryFile = require_entry_file.EntryFile;
|
|
21
|
+
exports.RecordExpression = require_record_expression.RecordExpression;
|
|
22
|
+
exports.TSDoc = require_tsdoc.TSDoc;
|
|
23
|
+
exports.TSDocAlias = require_tsdoc.TSDocAlias;
|
|
24
|
+
exports.TSDocAttributesTags = require_tsdoc.TSDocAttributesTags;
|
|
25
|
+
exports.TSDocDefaultValue = require_tsdoc.TSDocDefaultValue;
|
|
26
|
+
exports.TSDocDomain = require_tsdoc.TSDocDomain;
|
|
27
|
+
exports.TSDocExample = require_tsdoc.TSDocExample;
|
|
28
|
+
exports.TSDocHidden = require_tsdoc.TSDocHidden;
|
|
29
|
+
exports.TSDocIgnore = require_tsdoc.TSDocIgnore;
|
|
30
|
+
exports.TSDocInternal = require_tsdoc.TSDocInternal;
|
|
31
|
+
exports.TSDocLink = require_tsdoc.TSDocLink;
|
|
32
|
+
exports.TSDocModule = require_tsdoc.TSDocModule;
|
|
33
|
+
exports.TSDocParam = require_tsdoc.TSDocParam;
|
|
34
|
+
exports.TSDocParams = require_tsdoc.TSDocParams;
|
|
35
|
+
exports.TSDocPermission = require_tsdoc.TSDocPermission;
|
|
36
|
+
exports.TSDocReadonly = require_tsdoc.TSDocReadonly;
|
|
37
|
+
exports.TSDocReflectionClass = require_tsdoc_reflection.TSDocReflectionClass;
|
|
38
|
+
exports.TSDocReflectionMethod = require_tsdoc_reflection.TSDocReflectionMethod;
|
|
39
|
+
exports.TSDocReflectionProperty = require_tsdoc_reflection.TSDocReflectionProperty;
|
|
40
|
+
exports.TSDocRemarks = require_tsdoc.TSDocRemarks;
|
|
41
|
+
exports.TSDocReturns = require_tsdoc.TSDocReturns;
|
|
42
|
+
exports.TSDocTag = require_tsdoc.TSDocTag;
|
|
43
|
+
exports.TSDocThrows = require_tsdoc.TSDocThrows;
|
|
44
|
+
exports.TSDocTitle = require_tsdoc.TSDocTitle;
|
|
45
|
+
exports.TypeScriptInterface = require_typescript_interface.TypeScriptInterface;
|
|
46
|
+
exports.TypescriptFile = require_typescript_file.TypescriptFile;
|
|
47
|
+
exports.TypescriptFileHeader = require_typescript_file.TypescriptFileHeader;
|
|
48
|
+
exports.TypescriptFileHeaderImports = require_typescript_file.TypescriptFileHeaderImports;
|
|
49
|
+
exports.TypescriptInterfaceProperty = require_typescript_interface.TypescriptInterfaceProperty;
|
|
50
|
+
exports.TypescriptObject = require_typescript_object.TypescriptObject;
|
|
51
|
+
exports.TypescriptObjectProperty = require_typescript_object.TypescriptObjectProperty;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import "
|
|
1
|
+
import "../components-IRVnipN0.cjs";
|
|
2
|
+
import "../source-file-BTsyACav.cjs";
|
|
3
|
+
import { A as __ΩTSDocDefaultValueProps, C as TSDocRemarks, D as TSDocThrows, E as TSDocTagProps, F as __ΩTSDocProps, I as __ΩTSDocTagProps, M as __ΩTSDocModuleProps, N as __ΩTSDocParamProps, O as TSDocTitle, P as __ΩTSDocParamsProps, S as TSDocReadonly, T as TSDocTag, _ as TSDocParamProps, a as TSDocDefaultValue, b as TSDocPermission, c as TSDocExample, d as TSDocIgnore, f as TSDocInternal, g as TSDocParam, h as TSDocModuleProps, i as TSDocAttributesTagsProps, j as __ΩTSDocExampleProps, k as __ΩTSDocAttributesTagsProps, l as TSDocExampleProps, m as TSDocModule, n as TSDocAlias, o as TSDocDefaultValueProps, p as TSDocLink, r as TSDocAttributesTags, s as TSDocDomain, t as TSDoc, u as TSDocHidden, v as TSDocParams, w as TSDocReturns, x as TSDocProps, y as TSDocParamsProps } from "../tsdoc-CfvwK4Ml.cjs";
|
|
4
|
+
import { a as TypescriptFileHeaderProps, c as __ΩTypescriptFileHeaderProps, i as TypescriptFileHeaderImportsProps, l as __ΩTypescriptFileProps, n as TypescriptFileHeader, o as TypescriptFileProps, r as TypescriptFileHeaderImports, s as __ΩTypescriptFileHeaderImportsProps, t as TypescriptFile } from "../typescript-file-fOVF6YF2.cjs";
|
|
5
|
+
import { n as BuiltinFileProps, r as __ΩBuiltinFileProps, t as BuiltinFile } from "../builtin-file-DtkZ-2Hs.cjs";
|
|
6
|
+
import { n as DynamicImportStatementProps, r as __ΩDynamicImportStatementProps, t as DynamicImportStatement } from "../dynamic-import-statement-DTSUoDt2.cjs";
|
|
7
|
+
import { n as EntryFileProps, r as __ΩEntryFileProps, t as EntryFile } from "../entry-file-CfMzpF03.cjs";
|
|
8
|
+
import { n as RecordExpressionProps, r as __ΩRecordExpressionProps, t as RecordExpression } from "../record-expression-adlQJuNw.cjs";
|
|
9
|
+
import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-BbjnIsUV.cjs";
|
|
10
|
+
import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-D-d9A720.cjs";
|
|
11
|
+
import { a as TypescriptObjectProps, c as __ΩTypescriptObjectProps, i as TypescriptObjectPropertyProps, n as TypescriptObject, o as __ΩComputedRef, r as TypescriptObjectProperty, s as __ΩTypescriptObjectPropertyProps, t as ComputedRef } from "../typescript-object-v1WiBD8W.cjs";
|
|
12
|
+
import "../index-BH1nuHdZ.cjs";
|
|
11
13
|
export { BuiltinFile, BuiltinFileProps, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeScriptInterface, TypeScriptInterfaceProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩBuiltinFileProps, __ΩComputedRef, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, __ΩTypescriptInterfacePropertyProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import "
|
|
1
|
+
import "../components-oHSM7vmp.mjs";
|
|
2
|
+
import "../source-file-CQl0UCgf.mjs";
|
|
3
|
+
import { A as __ΩTSDocDefaultValueProps, C as TSDocRemarks, D as TSDocThrows, E as TSDocTagProps, F as __ΩTSDocProps, I as __ΩTSDocTagProps, M as __ΩTSDocModuleProps, N as __ΩTSDocParamProps, O as TSDocTitle, P as __ΩTSDocParamsProps, S as TSDocReadonly, T as TSDocTag, _ as TSDocParamProps, a as TSDocDefaultValue, b as TSDocPermission, c as TSDocExample, d as TSDocIgnore, f as TSDocInternal, g as TSDocParam, h as TSDocModuleProps, i as TSDocAttributesTagsProps, j as __ΩTSDocExampleProps, k as __ΩTSDocAttributesTagsProps, l as TSDocExampleProps, m as TSDocModule, n as TSDocAlias, o as TSDocDefaultValueProps, p as TSDocLink, r as TSDocAttributesTags, s as TSDocDomain, t as TSDoc, u as TSDocHidden, v as TSDocParams, w as TSDocReturns, x as TSDocProps, y as TSDocParamsProps } from "../tsdoc-OUuKjTbh.mjs";
|
|
4
|
+
import { a as TypescriptFileHeaderProps, c as __ΩTypescriptFileHeaderProps, i as TypescriptFileHeaderImportsProps, l as __ΩTypescriptFileProps, n as TypescriptFileHeader, o as TypescriptFileProps, r as TypescriptFileHeaderImports, s as __ΩTypescriptFileHeaderImportsProps, t as TypescriptFile } from "../typescript-file-BWaBMfMr.mjs";
|
|
5
|
+
import { n as BuiltinFileProps, r as __ΩBuiltinFileProps, t as BuiltinFile } from "../builtin-file-RXdRpQs-.mjs";
|
|
6
|
+
import { n as DynamicImportStatementProps, r as __ΩDynamicImportStatementProps, t as DynamicImportStatement } from "../dynamic-import-statement-B5Pdwr4Z.mjs";
|
|
7
|
+
import { n as EntryFileProps, r as __ΩEntryFileProps, t as EntryFile } from "../entry-file-ayzYWEo5.mjs";
|
|
8
|
+
import { n as RecordExpressionProps, r as __ΩRecordExpressionProps, t as RecordExpression } from "../record-expression-c9kQA93k.mjs";
|
|
9
|
+
import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-ulqYHfKL.mjs";
|
|
10
|
+
import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-MV4qwTHs.mjs";
|
|
11
|
+
import { a as TypescriptObjectProps, c as __ΩTypescriptObjectProps, i as TypescriptObjectPropertyProps, n as TypescriptObject, o as __ΩComputedRef, r as TypescriptObjectProperty, s as __ΩTypescriptObjectPropertyProps, t as ComputedRef } from "../typescript-object-C7p9fJBF.mjs";
|
|
12
|
+
import "../index-C6HcjJiY.mjs";
|
|
11
13
|
export { BuiltinFile, BuiltinFileProps, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeScriptInterface, TypeScriptInterfaceProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩBuiltinFileProps, __ΩComputedRef, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, __ΩTypescriptInterfacePropertyProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
|