@powerlines/plugin-alloy 0.14.0
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/LICENSE +201 -0
- package/README.md +304 -0
- package/dist/builtin-file-BU93ve2k.d.cts +34 -0
- package/dist/builtin-file-CG53y-09.d.mts +34 -0
- package/dist/builtin-file-CkwxD4el.mjs +37 -0
- package/dist/builtin-file-DLVCgiye.cjs +43 -0
- package/dist/capnp-8yVLwAox.cjs +364 -0
- package/dist/capnp-CKLYTfgy.d.mts +87 -0
- package/dist/capnp-CNythuSw.mjs +267 -0
- package/dist/capnp-wJ2_HpAN.d.cts +87 -0
- package/dist/chunk-CbDLau6x.cjs +34 -0
- package/dist/components-B0A7LpQD.d.cts +142 -0
- package/dist/components-B2kXCrty.d.mts +142 -0
- package/dist/components-BOkkDhM9.cjs +0 -0
- package/dist/components-BXrpeD8J.cjs +0 -0
- package/dist/components-C3qpgLKV.mjs +1 -0
- package/dist/components-CBtEhH9k.mjs +1 -0
- package/dist/components-Cj5gaIV0.cjs +0 -0
- package/dist/components-HMVhsFQl.mjs +1 -0
- package/dist/components-I0ydtjfW.cjs +0 -0
- package/dist/components-ajocJcib.mjs +1 -0
- package/dist/context-BIduC1bB.cjs +44 -0
- package/dist/context-BO25KgR_.d.cts +1668 -0
- package/dist/context-CBG6Pv09.d.cts +26 -0
- package/dist/context-Cx38_mgI.mjs +26 -0
- package/dist/context-DzaJOnXh.d.mts +26 -0
- package/dist/context-GtZoIVx8.d.mts +1670 -0
- package/dist/contexts-BSRk0whx.cjs +0 -0
- package/dist/contexts-X44bRyOp.mjs +1 -0
- package/dist/contexts-XuEdvZdE.mjs +1 -0
- package/dist/contexts-uXFW3CIa.cjs +0 -0
- package/dist/core/components/index.cjs +9 -0
- package/dist/core/components/index.d.cts +7 -0
- package/dist/core/components/index.d.mts +7 -0
- package/dist/core/components/index.mjs +7 -0
- package/dist/core/components/output.cjs +4 -0
- package/dist/core/components/output.d.cts +3 -0
- package/dist/core/components/output.d.mts +3 -0
- package/dist/core/components/output.mjs +4 -0
- package/dist/core/components/single-line-comment.cjs +3 -0
- package/dist/core/components/single-line-comment.d.cts +4 -0
- package/dist/core/components/single-line-comment.d.mts +4 -0
- package/dist/core/components/single-line-comment.mjs +3 -0
- package/dist/core/components/source-file.cjs +3 -0
- package/dist/core/components/source-file.d.cts +4 -0
- package/dist/core/components/source-file.d.mts +4 -0
- package/dist/core/components/source-file.mjs +3 -0
- package/dist/core/contexts/context.cjs +5 -0
- package/dist/core/contexts/context.d.cts +3 -0
- package/dist/core/contexts/context.d.mts +3 -0
- package/dist/core/contexts/context.mjs +3 -0
- package/dist/core/contexts/index.cjs +15 -0
- package/dist/core/contexts/index.d.cts +6 -0
- package/dist/core/contexts/index.d.mts +6 -0
- package/dist/core/contexts/index.mjs +5 -0
- package/dist/core/contexts/reflection.cjs +10 -0
- package/dist/core/contexts/reflection.d.cts +4 -0
- package/dist/core/contexts/reflection.d.mts +4 -0
- package/dist/core/contexts/reflection.mjs +3 -0
- package/dist/core/index.cjs +23 -0
- package/dist/core/index.d.cts +11 -0
- package/dist/core/index.d.mts +11 -0
- package/dist/core/index.mjs +10 -0
- package/dist/core-B57eQAue.mjs +1 -0
- package/dist/core-DzEmU6tL.cjs +0 -0
- package/dist/create-builtin-Bpswa0ZT.d.cts +15 -0
- package/dist/create-builtin-CP9mN5P-.mjs +18 -0
- package/dist/create-builtin-_3GNADDt.cjs +24 -0
- package/dist/create-builtin-wEbNOWNw.d.mts +15 -0
- package/dist/dynamic-import-statement-BhY2a13r.d.cts +32 -0
- package/dist/dynamic-import-statement-DoTHSt57.mjs +28 -0
- package/dist/dynamic-import-statement-DyVWBclX.d.mts +32 -0
- package/dist/dynamic-import-statement-JVLyMPXr.cjs +34 -0
- package/dist/entry-file-B159R5XY.d.cts +27 -0
- package/dist/entry-file-BA75rAwb.cjs +41 -0
- package/dist/entry-file-Bw1mgMP3.mjs +34 -0
- package/dist/entry-file-DfFhEkLi.d.mts +27 -0
- package/dist/helpers/capnp.cjs +19 -0
- package/dist/helpers/capnp.d.cts +3 -0
- package/dist/helpers/capnp.d.mts +3 -0
- package/dist/helpers/capnp.mjs +4 -0
- package/dist/helpers/create-builtin.cjs +3 -0
- package/dist/helpers/create-builtin.d.cts +2 -0
- package/dist/helpers/create-builtin.d.mts +2 -0
- package/dist/helpers/create-builtin.mjs +3 -0
- package/dist/helpers/index.cjs +26 -0
- package/dist/helpers/index.d.cts +7 -0
- package/dist/helpers/index.d.mts +7 -0
- package/dist/helpers/index.mjs +8 -0
- package/dist/helpers/refkey.cjs +3 -0
- package/dist/helpers/refkey.d.cts +2 -0
- package/dist/helpers/refkey.d.mts +2 -0
- package/dist/helpers/refkey.mjs +3 -0
- package/dist/helpers/typescript.cjs +4 -0
- package/dist/helpers/typescript.d.cts +2 -0
- package/dist/helpers/typescript.d.mts +2 -0
- package/dist/helpers/typescript.mjs +4 -0
- package/dist/helpers-BrA1Dy07.mjs +1 -0
- package/dist/helpers-Cten3PJk.cjs +0 -0
- package/dist/index-BINnViIh.d.mts +1 -0
- package/dist/index-BJ8-FA6N.d.cts +1 -0
- package/dist/index-BRJ_6A42.d.mts +1 -0
- package/dist/index-BXpMZvwA.d.cts +1 -0
- package/dist/index-Bi0Yc4v2.d.cts +1 -0
- package/dist/index-BrGZHEgX.d.mts +1 -0
- package/dist/index-BwFl_eS0.d.mts +1 -0
- package/dist/index-C1ihAKnV.d.cts +1 -0
- package/dist/index-CLTQPxoD.d.mts +1 -0
- package/dist/index-CoUVmp_Q.d.mts +1 -0
- package/dist/index-D1aKd2tO.d.cts +1 -0
- package/dist/index-D4d_pZLu.d.cts +1 -0
- package/dist/index-DBGd4WeR.d.mts +1 -0
- package/dist/index-DdxxIAKU.d.cts +1 -0
- package/dist/index-Deol7ZWO.d.mts +1 -0
- package/dist/index-DpEKQcoR.d.cts +1 -0
- package/dist/index-DrZ2Dh-H.d.cts +1 -0
- package/dist/index-MEuojd-r.d.cts +1 -0
- package/dist/index-bHnO4ZKt.d.mts +1 -0
- package/dist/index-lIMqGGJz.d.mts +1 -0
- package/dist/index.cjs +446 -0
- package/dist/index.d.cts +45 -0
- package/dist/index.d.mts +45 -0
- package/dist/index.mjs +361 -0
- package/dist/markdown/components/index.cjs +13 -0
- package/dist/markdown/components/index.d.cts +8 -0
- package/dist/markdown/components/index.d.mts +8 -0
- package/dist/markdown/components/index.mjs +9 -0
- package/dist/markdown/components/markdown-file.cjs +7 -0
- package/dist/markdown/components/markdown-file.d.cts +5 -0
- package/dist/markdown/components/markdown-file.d.mts +5 -0
- package/dist/markdown/components/markdown-file.mjs +6 -0
- package/dist/markdown/components/markdown-table.cjs +6 -0
- package/dist/markdown/components/markdown-table.d.cts +5 -0
- package/dist/markdown/components/markdown-table.d.mts +5 -0
- package/dist/markdown/components/markdown-table.mjs +4 -0
- package/dist/markdown/contexts/index.cjs +7 -0
- package/dist/markdown/contexts/index.d.cts +3 -0
- package/dist/markdown/contexts/index.d.mts +3 -0
- package/dist/markdown/contexts/index.mjs +4 -0
- package/dist/markdown/contexts/markdown-table.cjs +6 -0
- package/dist/markdown/contexts/markdown-table.d.cts +2 -0
- package/dist/markdown/contexts/markdown-table.d.mts +2 -0
- package/dist/markdown/contexts/markdown-table.mjs +3 -0
- package/dist/markdown/index.cjs +19 -0
- package/dist/markdown/index.d.cts +10 -0
- package/dist/markdown/index.d.mts +10 -0
- package/dist/markdown/index.mjs +11 -0
- package/dist/markdown-BTQE0AI9.cjs +0 -0
- package/dist/markdown-DMddlO1y.mjs +1 -0
- package/dist/markdown-file-BFbbzD59.mjs +90 -0
- package/dist/markdown-file-Bsuu9aIk.d.cts +23 -0
- package/dist/markdown-file-CB6u4Cp1.d.mts +23 -0
- package/dist/markdown-file-CzGNj_Ex.cjs +102 -0
- package/dist/markdown-table-2qP_4eLk.mjs +33 -0
- package/dist/markdown-table-BOWM26Kb.cjs +57 -0
- package/dist/markdown-table-BUxH6aRh.mjs +77 -0
- package/dist/markdown-table-CMaQVkwJ.d.mts +27 -0
- package/dist/markdown-table-CZMEY6IR.d.cts +37 -0
- package/dist/markdown-table-DFaNSBRn.cjs +95 -0
- package/dist/markdown-table-SvbpUdq-.d.cts +27 -0
- package/dist/markdown-table-kFQoqKQt.d.mts +37 -0
- package/dist/output-ChpN7bQM.d.cts +18 -0
- package/dist/output-CnofBsl0.cjs +38 -0
- package/dist/output-D9RlZeCO.d.mts +18 -0
- package/dist/output-DEdXZ94G.mjs +32 -0
- package/dist/plugin-C0DspKAF.d.mts +34 -0
- package/dist/plugin-DU0K2-Om.mjs +1 -0
- package/dist/plugin-DYBdUgTF.d.cts +34 -0
- package/dist/plugin-Fx-uJ4It.cjs +0 -0
- package/dist/record-expression-BOCZ9iqR.d.mts +12 -0
- package/dist/record-expression-DM_zSqE_.d.cts +12 -0
- package/dist/record-expression-DNVzCKgo.cjs +17 -0
- package/dist/record-expression-DxS_DiPc.mjs +11 -0
- package/dist/refkey-B0XSqdGY.d.mts +13 -0
- package/dist/refkey-B6A9kh_u.cjs +21 -0
- package/dist/refkey-CP7MJMac.d.cts +13 -0
- package/dist/refkey-CV0mIj0Y.mjs +15 -0
- package/dist/reflection-BSbFFYZO.cjs +108 -0
- package/dist/reflection-Bka9prwJ.d.mts +52 -0
- package/dist/reflection-CBMQ1FQo.mjs +60 -0
- package/dist/reflection-CkVyW69y.d.cts +52 -0
- package/dist/single-line-comment-BMPq6OR0.cjs +25 -0
- package/dist/single-line-comment-BjL_Z4Qn.d.cts +22 -0
- package/dist/single-line-comment-C5CtHQhi.mjs +19 -0
- package/dist/single-line-comment-DZAmp_BZ.d.mts +22 -0
- package/dist/source-file-4J1OvLed.d.cts +31 -0
- package/dist/source-file-BBbuhOKz.d.mts +31 -0
- package/dist/source-file-CCYwl5pI.mjs +52 -0
- package/dist/source-file-DTd1KgD5.cjs +59 -0
- package/dist/tsdoc-BFPYF-Fh.cjs +487 -0
- package/dist/tsdoc-BmyOQBxT.mjs +367 -0
- package/dist/tsdoc-C39LB5Mn.d.cts +152 -0
- package/dist/tsdoc-OE37Ht2l.d.mts +152 -0
- package/dist/tsdoc-reflection-3ZoV_Mjz.d.cts +18 -0
- package/dist/tsdoc-reflection-3hSdGY1e.mjs +97 -0
- package/dist/tsdoc-reflection-BQN8iUG1.cjs +115 -0
- package/dist/tsdoc-reflection-BtEk3cDW.d.mts +18 -0
- package/dist/types/components.cjs +1 -0
- package/dist/types/components.d.cts +3 -0
- package/dist/types/components.d.mts +3 -0
- package/dist/types/components.mjs +3 -0
- package/dist/types/index.cjs +3 -0
- package/dist/types/index.d.cts +5 -0
- package/dist/types/index.d.mts +5 -0
- package/dist/types/index.mjs +5 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +3 -0
- package/dist/types/plugin.d.mts +3 -0
- package/dist/types/plugin.mjs +3 -0
- package/dist/types-BBEDEYnP.cjs +0 -0
- package/dist/types-BWlfXHs2.mjs +1 -0
- package/dist/typescript/components/builtin-file.cjs +9 -0
- package/dist/typescript/components/builtin-file.d.cts +7 -0
- package/dist/typescript/components/builtin-file.d.mts +7 -0
- package/dist/typescript/components/builtin-file.mjs +9 -0
- package/dist/typescript/components/dynamic-import-statement.cjs +3 -0
- package/dist/typescript/components/dynamic-import-statement.d.cts +2 -0
- package/dist/typescript/components/dynamic-import-statement.d.mts +2 -0
- package/dist/typescript/components/dynamic-import-statement.mjs +3 -0
- package/dist/typescript/components/entry-file.cjs +7 -0
- package/dist/typescript/components/entry-file.d.cts +6 -0
- package/dist/typescript/components/entry-file.d.mts +6 -0
- package/dist/typescript/components/entry-file.mjs +7 -0
- package/dist/typescript/components/index.cjs +50 -0
- package/dist/typescript/components/index.d.cts +14 -0
- package/dist/typescript/components/index.d.mts +14 -0
- package/dist/typescript/components/index.mjs +17 -0
- package/dist/typescript/components/record-expression.cjs +3 -0
- package/dist/typescript/components/record-expression.d.cts +2 -0
- package/dist/typescript/components/record-expression.d.mts +2 -0
- package/dist/typescript/components/record-expression.mjs +3 -0
- package/dist/typescript/components/tsdoc-reflection.cjs +9 -0
- package/dist/typescript/components/tsdoc-reflection.d.cts +5 -0
- package/dist/typescript/components/tsdoc-reflection.d.mts +5 -0
- package/dist/typescript/components/tsdoc-reflection.mjs +7 -0
- package/dist/typescript/components/tsdoc.cjs +24 -0
- package/dist/typescript/components/tsdoc.d.cts +4 -0
- package/dist/typescript/components/tsdoc.d.mts +4 -0
- package/dist/typescript/components/tsdoc.mjs +5 -0
- package/dist/typescript/components/typescript-file.cjs +8 -0
- package/dist/typescript/components/typescript-file.d.cts +5 -0
- package/dist/typescript/components/typescript-file.d.mts +5 -0
- package/dist/typescript/components/typescript-file.mjs +6 -0
- package/dist/typescript/components/typescript-interface.cjs +9 -0
- package/dist/typescript/components/typescript-interface.d.cts +4 -0
- package/dist/typescript/components/typescript-interface.d.mts +4 -0
- package/dist/typescript/components/typescript-interface.mjs +8 -0
- package/dist/typescript/components/typescript-object.cjs +9 -0
- package/dist/typescript/components/typescript-object.d.cts +4 -0
- package/dist/typescript/components/typescript-object.d.mts +4 -0
- package/dist/typescript/components/typescript-object.mjs +8 -0
- package/dist/typescript/index.cjs +51 -0
- package/dist/typescript/index.d.cts +15 -0
- package/dist/typescript/index.d.mts +15 -0
- package/dist/typescript/index.mjs +18 -0
- package/dist/typescript-45caIUPa.mjs +1 -0
- package/dist/typescript-BrZsJqvc.mjs +45 -0
- package/dist/typescript-CXP7Oa6_.d.cts +25 -0
- package/dist/typescript-DG1-qdBQ.d.mts +25 -0
- package/dist/typescript-DV5akLQO.cjs +0 -0
- package/dist/typescript-DcqKlMoH.cjs +51 -0
- package/dist/typescript-file-6Y81yLyB.cjs +157 -0
- package/dist/typescript-file-BR9I7R1v.d.cts +47 -0
- package/dist/typescript-file-BWq9GIUt.d.mts +47 -0
- package/dist/typescript-file-y6oF016h.mjs +139 -0
- package/dist/typescript-interface-AydoCmGY.mjs +52 -0
- package/dist/typescript-interface-CKjljRFu.d.mts +25 -0
- package/dist/typescript-interface-Codd49Sl.cjs +64 -0
- package/dist/typescript-interface-fGS4VBnW.d.cts +25 -0
- package/dist/typescript-object-C-BmpHfk.mjs +93 -0
- package/dist/typescript-object-CxC5Qo5P.d.cts +26 -0
- package/dist/typescript-object-DOrJkpcM.cjs +105 -0
- package/dist/typescript-object-I6Huh12F.d.mts +26 -0
- package/dist/utilities-CnaPrauh.mjs +109 -0
- package/dist/utilities-llRqOC4l.cjs +133 -0
- package/package.json +411 -0
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
require('../../context-BIduC1bB.cjs');
|
|
2
|
+
const require_single_line_comment = require('../../single-line-comment-BMPq6OR0.cjs');
|
|
3
|
+
const require_source_file = require('../../source-file-DTd1KgD5.cjs');
|
|
4
|
+
const require_output = require('../../output-CnofBsl0.cjs');
|
|
5
|
+
require('../../components-Cj5gaIV0.cjs');
|
|
6
|
+
|
|
7
|
+
exports.Output = require_output.Output;
|
|
8
|
+
exports.SingleLineComment = require_single_line_comment.SingleLineComment;
|
|
9
|
+
exports.SourceFile = require_source_file.SourceFile;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "../../context-BO25KgR_.cjs";
|
|
2
|
+
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-ChpN7bQM.cjs";
|
|
3
|
+
import "../../components-B0A7LpQD.cjs";
|
|
4
|
+
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-BjL_Z4Qn.cjs";
|
|
5
|
+
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-4J1OvLed.cjs";
|
|
6
|
+
import "../../index-DdxxIAKU.cjs";
|
|
7
|
+
export { Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩOutputProps, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "../../context-GtZoIVx8.mjs";
|
|
2
|
+
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-D9RlZeCO.mjs";
|
|
3
|
+
import "../../components-B2kXCrty.mjs";
|
|
4
|
+
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-DZAmp_BZ.mjs";
|
|
5
|
+
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-BBbuhOKz.mjs";
|
|
6
|
+
import "../../index-DBGd4WeR.mjs";
|
|
7
|
+
export { Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩOutputProps, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "../../context-Cx38_mgI.mjs";
|
|
2
|
+
import { t as SingleLineComment } from "../../single-line-comment-C5CtHQhi.mjs";
|
|
3
|
+
import { t as SourceFile } from "../../source-file-CCYwl5pI.mjs";
|
|
4
|
+
import { t as Output } from "../../output-DEdXZ94G.mjs";
|
|
5
|
+
import "../../components-HMVhsFQl.mjs";
|
|
6
|
+
|
|
7
|
+
export { Output, SingleLineComment, SourceFile };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "../../context-BO25KgR_.cjs";
|
|
2
|
+
import "../../components-B0A7LpQD.cjs";
|
|
3
|
+
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-BjL_Z4Qn.cjs";
|
|
4
|
+
export { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "../../context-GtZoIVx8.mjs";
|
|
2
|
+
import "../../components-B2kXCrty.mjs";
|
|
3
|
+
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-DZAmp_BZ.mjs";
|
|
4
|
+
export { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import "../../context-BO25KgR_.cjs";
|
|
2
|
+
import { a as usePowerlinesContext, i as usePowerlines, n as PowerlinesContextInterface, r as __ΩPowerlinesContextInterface, t as PowerlinesContext } from "../../context-CBG6Pv09.cjs";
|
|
3
|
+
export { PowerlinesContext, PowerlinesContextInterface, __ΩPowerlinesContextInterface, usePowerlines, usePowerlinesContext };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import "../../context-GtZoIVx8.mjs";
|
|
2
|
+
import { a as usePowerlinesContext, i as usePowerlines, n as PowerlinesContextInterface, r as __ΩPowerlinesContextInterface, t as PowerlinesContext } from "../../context-DzaJOnXh.mjs";
|
|
3
|
+
export { PowerlinesContext, PowerlinesContextInterface, __ΩPowerlinesContextInterface, usePowerlines, usePowerlinesContext };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const require_context = require('../../context-BIduC1bB.cjs');
|
|
2
|
+
const require_reflection = require('../../reflection-BSbFFYZO.cjs');
|
|
3
|
+
require('../../contexts-uXFW3CIa.cjs');
|
|
4
|
+
|
|
5
|
+
exports.PowerlinesContext = require_context.PowerlinesContext;
|
|
6
|
+
exports.ReflectionClassContext = require_reflection.ReflectionClassContext;
|
|
7
|
+
exports.ReflectionMethodContext = require_reflection.ReflectionMethodContext;
|
|
8
|
+
exports.ReflectionParameterContext = require_reflection.ReflectionParameterContext;
|
|
9
|
+
exports.ReflectionPropertyContext = require_reflection.ReflectionPropertyContext;
|
|
10
|
+
exports.usePowerlines = require_context.usePowerlines;
|
|
11
|
+
exports.usePowerlinesContext = require_context.usePowerlinesContext;
|
|
12
|
+
exports.useReflectionClass = require_reflection.useReflectionClass;
|
|
13
|
+
exports.useReflectionMethod = require_reflection.useReflectionMethod;
|
|
14
|
+
exports.useReflectionParameter = require_reflection.useReflectionParameter;
|
|
15
|
+
exports.useReflectionProperty = require_reflection.useReflectionProperty;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "../../context-BO25KgR_.cjs";
|
|
2
|
+
import "../../components-B0A7LpQD.cjs";
|
|
3
|
+
import { a as usePowerlinesContext, i as usePowerlines, n as PowerlinesContextInterface, r as __ΩPowerlinesContextInterface, t as PowerlinesContext } from "../../context-CBG6Pv09.cjs";
|
|
4
|
+
import { a as ReflectionPropertyContext, c as useReflectionMethod, i as ReflectionParameterContext, l as useReflectionParameter, n as ReflectionClassContextInterface, o as __ΩReflectionClassContextInterface, r as ReflectionMethodContext, s as useReflectionClass, t as ReflectionClassContext, u as useReflectionProperty } from "../../reflection-CkVyW69y.cjs";
|
|
5
|
+
import "../../index-DrZ2Dh-H.cjs";
|
|
6
|
+
export { PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, usePowerlines, usePowerlinesContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "../../context-GtZoIVx8.mjs";
|
|
2
|
+
import "../../components-B2kXCrty.mjs";
|
|
3
|
+
import { a as usePowerlinesContext, i as usePowerlines, n as PowerlinesContextInterface, r as __ΩPowerlinesContextInterface, t as PowerlinesContext } from "../../context-DzaJOnXh.mjs";
|
|
4
|
+
import { a as ReflectionPropertyContext, c as useReflectionMethod, i as ReflectionParameterContext, l as useReflectionParameter, n as ReflectionClassContextInterface, o as __ΩReflectionClassContextInterface, r as ReflectionMethodContext, s as useReflectionClass, t as ReflectionClassContext, u as useReflectionProperty } from "../../reflection-Bka9prwJ.mjs";
|
|
5
|
+
import "../../index-BINnViIh.mjs";
|
|
6
|
+
export { PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, usePowerlines, usePowerlinesContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-Cx38_mgI.mjs";
|
|
2
|
+
import { a as useReflectionClass, c as useReflectionProperty, i as ReflectionPropertyContext, n as ReflectionMethodContext, o as useReflectionMethod, r as ReflectionParameterContext, s as useReflectionParameter, t as ReflectionClassContext } from "../../reflection-CBMQ1FQo.mjs";
|
|
3
|
+
import "../../contexts-XuEdvZdE.mjs";
|
|
4
|
+
|
|
5
|
+
export { PowerlinesContext, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, usePowerlines, usePowerlinesContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const require_reflection = require('../../reflection-BSbFFYZO.cjs');
|
|
2
|
+
|
|
3
|
+
exports.ReflectionClassContext = require_reflection.ReflectionClassContext;
|
|
4
|
+
exports.ReflectionMethodContext = require_reflection.ReflectionMethodContext;
|
|
5
|
+
exports.ReflectionParameterContext = require_reflection.ReflectionParameterContext;
|
|
6
|
+
exports.ReflectionPropertyContext = require_reflection.ReflectionPropertyContext;
|
|
7
|
+
exports.useReflectionClass = require_reflection.useReflectionClass;
|
|
8
|
+
exports.useReflectionMethod = require_reflection.useReflectionMethod;
|
|
9
|
+
exports.useReflectionParameter = require_reflection.useReflectionParameter;
|
|
10
|
+
exports.useReflectionProperty = require_reflection.useReflectionProperty;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "../../context-BO25KgR_.cjs";
|
|
2
|
+
import "../../components-B0A7LpQD.cjs";
|
|
3
|
+
import { a as ReflectionPropertyContext, c as useReflectionMethod, i as ReflectionParameterContext, l as useReflectionParameter, n as ReflectionClassContextInterface, o as __ΩReflectionClassContextInterface, r as ReflectionMethodContext, s as useReflectionClass, t as ReflectionClassContext, u as useReflectionProperty } from "../../reflection-CkVyW69y.cjs";
|
|
4
|
+
export { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "../../context-GtZoIVx8.mjs";
|
|
2
|
+
import "../../components-B2kXCrty.mjs";
|
|
3
|
+
import { a as ReflectionPropertyContext, c as useReflectionMethod, i as ReflectionParameterContext, l as useReflectionParameter, n as ReflectionClassContextInterface, o as __ΩReflectionClassContextInterface, r as ReflectionMethodContext, s as useReflectionClass, t as ReflectionClassContext, u as useReflectionProperty } from "../../reflection-Bka9prwJ.mjs";
|
|
4
|
+
export { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as useReflectionClass, c as useReflectionProperty, i as ReflectionPropertyContext, n as ReflectionMethodContext, o as useReflectionMethod, r as ReflectionParameterContext, s as useReflectionParameter, t as ReflectionClassContext } from "../../reflection-CBMQ1FQo.mjs";
|
|
2
|
+
|
|
3
|
+
export { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_context = require('../context-BIduC1bB.cjs');
|
|
2
|
+
const require_single_line_comment = require('../single-line-comment-BMPq6OR0.cjs');
|
|
3
|
+
const require_source_file = require('../source-file-DTd1KgD5.cjs');
|
|
4
|
+
const require_reflection = require('../reflection-BSbFFYZO.cjs');
|
|
5
|
+
const require_output = require('../output-CnofBsl0.cjs');
|
|
6
|
+
require('../components-Cj5gaIV0.cjs');
|
|
7
|
+
require('../contexts-uXFW3CIa.cjs');
|
|
8
|
+
require('../core-DzEmU6tL.cjs');
|
|
9
|
+
|
|
10
|
+
exports.Output = require_output.Output;
|
|
11
|
+
exports.PowerlinesContext = require_context.PowerlinesContext;
|
|
12
|
+
exports.ReflectionClassContext = require_reflection.ReflectionClassContext;
|
|
13
|
+
exports.ReflectionMethodContext = require_reflection.ReflectionMethodContext;
|
|
14
|
+
exports.ReflectionParameterContext = require_reflection.ReflectionParameterContext;
|
|
15
|
+
exports.ReflectionPropertyContext = require_reflection.ReflectionPropertyContext;
|
|
16
|
+
exports.SingleLineComment = require_single_line_comment.SingleLineComment;
|
|
17
|
+
exports.SourceFile = require_source_file.SourceFile;
|
|
18
|
+
exports.usePowerlines = require_context.usePowerlines;
|
|
19
|
+
exports.usePowerlinesContext = require_context.usePowerlinesContext;
|
|
20
|
+
exports.useReflectionClass = require_reflection.useReflectionClass;
|
|
21
|
+
exports.useReflectionMethod = require_reflection.useReflectionMethod;
|
|
22
|
+
exports.useReflectionParameter = require_reflection.useReflectionParameter;
|
|
23
|
+
exports.useReflectionProperty = require_reflection.useReflectionProperty;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../context-BO25KgR_.cjs";
|
|
2
|
+
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../output-ChpN7bQM.cjs";
|
|
3
|
+
import "../components-B0A7LpQD.cjs";
|
|
4
|
+
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../single-line-comment-BjL_Z4Qn.cjs";
|
|
5
|
+
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../source-file-4J1OvLed.cjs";
|
|
6
|
+
import "../index-DdxxIAKU.cjs";
|
|
7
|
+
import { a as usePowerlinesContext, i as usePowerlines, n as PowerlinesContextInterface, r as __ΩPowerlinesContextInterface, t as PowerlinesContext } from "../context-CBG6Pv09.cjs";
|
|
8
|
+
import { a as ReflectionPropertyContext, c as useReflectionMethod, i as ReflectionParameterContext, l as useReflectionParameter, n as ReflectionClassContextInterface, o as __ΩReflectionClassContextInterface, r as ReflectionMethodContext, s as useReflectionClass, t as ReflectionClassContext, u as useReflectionProperty } from "../reflection-CkVyW69y.cjs";
|
|
9
|
+
import "../index-DrZ2Dh-H.cjs";
|
|
10
|
+
import "../index-BJ8-FA6N.cjs";
|
|
11
|
+
export { Output, OutputProps, PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, usePowerlines, usePowerlinesContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../context-GtZoIVx8.mjs";
|
|
2
|
+
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../output-D9RlZeCO.mjs";
|
|
3
|
+
import "../components-B2kXCrty.mjs";
|
|
4
|
+
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../single-line-comment-DZAmp_BZ.mjs";
|
|
5
|
+
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../source-file-BBbuhOKz.mjs";
|
|
6
|
+
import "../index-DBGd4WeR.mjs";
|
|
7
|
+
import { a as usePowerlinesContext, i as usePowerlines, n as PowerlinesContextInterface, r as __ΩPowerlinesContextInterface, t as PowerlinesContext } from "../context-DzaJOnXh.mjs";
|
|
8
|
+
import { a as ReflectionPropertyContext, c as useReflectionMethod, i as ReflectionParameterContext, l as useReflectionParameter, n as ReflectionClassContextInterface, o as __ΩReflectionClassContextInterface, r as ReflectionMethodContext, s as useReflectionClass, t as ReflectionClassContext, u as useReflectionProperty } from "../reflection-Bka9prwJ.mjs";
|
|
9
|
+
import "../index-BINnViIh.mjs";
|
|
10
|
+
import "../index-lIMqGGJz.mjs";
|
|
11
|
+
export { Output, OutputProps, PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, usePowerlines, usePowerlinesContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../context-Cx38_mgI.mjs";
|
|
2
|
+
import { t as SingleLineComment } from "../single-line-comment-C5CtHQhi.mjs";
|
|
3
|
+
import { t as SourceFile } from "../source-file-CCYwl5pI.mjs";
|
|
4
|
+
import { a as useReflectionClass, c as useReflectionProperty, i as ReflectionPropertyContext, n as ReflectionMethodContext, o as useReflectionMethod, r as ReflectionParameterContext, s as useReflectionParameter, t as ReflectionClassContext } from "../reflection-CBMQ1FQo.mjs";
|
|
5
|
+
import { t as Output } from "../output-DEdXZ94G.mjs";
|
|
6
|
+
import "../components-HMVhsFQl.mjs";
|
|
7
|
+
import "../contexts-XuEdvZdE.mjs";
|
|
8
|
+
import "../core-B57eQAue.mjs";
|
|
9
|
+
|
|
10
|
+
export { Output, PowerlinesContext, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SourceFile, usePowerlines, usePowerlinesContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SymbolCreator } from "@alloy-js/core";
|
|
2
|
+
import { CreatePackageProps, PackageDescriptor, PackageRefkeys } from "@alloy-js/typescript";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/create-builtin.d.ts
|
|
5
|
+
type CreateBuiltinOptions<T extends PackageDescriptor> = Omit<CreatePackageProps<T>, "builtin">;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a built-in representation of a package based on the provided descriptor.
|
|
8
|
+
*
|
|
9
|
+
* @param options - Properties to define the package, excluding the 'builtin' flag which is set to true.
|
|
10
|
+
* @returns An object containing reference keys for the package and a symbol creator function.
|
|
11
|
+
*/
|
|
12
|
+
declare function createBuiltin<const T extends PackageDescriptor>(options: CreateBuiltinOptions<T>): PackageRefkeys<T> & SymbolCreator;
|
|
13
|
+
declare type __ΩCreateBuiltinOptions = any[];
|
|
14
|
+
//#endregion
|
|
15
|
+
export { __ΩCreateBuiltinOptions as n, createBuiltin as r, CreateBuiltinOptions as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createPackage } from "@alloy-js/typescript";
|
|
2
|
+
|
|
3
|
+
//#region src/helpers/create-builtin.ts
|
|
4
|
+
/**
|
|
5
|
+
* Creates a built-in representation of a package based on the provided descriptor.
|
|
6
|
+
*
|
|
7
|
+
* @param options - Properties to define the package, excluding the 'builtin' flag which is set to true.
|
|
8
|
+
* @returns An object containing reference keys for the package and a symbol creator function.
|
|
9
|
+
*/
|
|
10
|
+
function createBuiltin(options) {
|
|
11
|
+
return createPackage({
|
|
12
|
+
...options,
|
|
13
|
+
builtin: true
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { createBuiltin as t };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
+
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/create-builtin.ts
|
|
5
|
+
/**
|
|
6
|
+
* Creates a built-in representation of a package based on the provided descriptor.
|
|
7
|
+
*
|
|
8
|
+
* @param options - Properties to define the package, excluding the 'builtin' flag which is set to true.
|
|
9
|
+
* @returns An object containing reference keys for the package and a symbol creator function.
|
|
10
|
+
*/
|
|
11
|
+
function createBuiltin(options) {
|
|
12
|
+
return (0, __alloy_js_typescript.createPackage)({
|
|
13
|
+
...options,
|
|
14
|
+
builtin: true
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
Object.defineProperty(exports, 'createBuiltin', {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return createBuiltin;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SymbolCreator } from "@alloy-js/core";
|
|
2
|
+
import { CreatePackageProps, PackageDescriptor, PackageRefkeys } from "@alloy-js/typescript";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/create-builtin.d.ts
|
|
5
|
+
type CreateBuiltinOptions<T extends PackageDescriptor> = Omit<CreatePackageProps<T>, "builtin">;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a built-in representation of a package based on the provided descriptor.
|
|
8
|
+
*
|
|
9
|
+
* @param options - Properties to define the package, excluding the 'builtin' flag which is set to true.
|
|
10
|
+
* @returns An object containing reference keys for the package and a symbol creator function.
|
|
11
|
+
*/
|
|
12
|
+
declare function createBuiltin<const T extends PackageDescriptor>(options: CreateBuiltinOptions<T>): PackageRefkeys<T> & SymbolCreator;
|
|
13
|
+
declare type __ΩCreateBuiltinOptions = any[];
|
|
14
|
+
//#endregion
|
|
15
|
+
export { __ΩCreateBuiltinOptions as n, createBuiltin as r, CreateBuiltinOptions as t };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as _alloy_js_core7 from "@alloy-js/core";
|
|
2
|
+
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
3
|
+
|
|
4
|
+
//#region src/typescript/components/dynamic-import-statement.d.ts
|
|
5
|
+
interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initializer"> {
|
|
6
|
+
/**
|
|
7
|
+
* The path of the module to import.
|
|
8
|
+
*/
|
|
9
|
+
importPath: string;
|
|
10
|
+
/**
|
|
11
|
+
* The name of the export to import from the module.
|
|
12
|
+
*
|
|
13
|
+
* @defaultValue "default"
|
|
14
|
+
*/
|
|
15
|
+
exportName?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Generates a dynamic import statement for a given module path and export name.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
|
|
23
|
+
* // const myVar = await import("./my-module").then(m => m.myExport);
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @param props - The properties for the dynamic import statement.
|
|
27
|
+
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
28
|
+
*/
|
|
29
|
+
declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core7.Children;
|
|
30
|
+
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
|
+
//#endregion
|
|
32
|
+
export { DynamicImportStatementProps as n, __ΩDynamicImportStatementProps as r, DynamicImportStatement as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { code } from "@alloy-js/core";
|
|
2
|
+
import { jsx } from "@alloy-js/core/jsx-runtime";
|
|
3
|
+
import { VarDeclaration } from "@alloy-js/typescript";
|
|
4
|
+
|
|
5
|
+
//#region src/typescript/components/dynamic-import-statement.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Generates a dynamic import statement for a given module path and export name.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
|
|
12
|
+
* // const myVar = await import("./my-module").then(m => m.myExport);
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* @param props - The properties for the dynamic import statement.
|
|
16
|
+
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
17
|
+
*/
|
|
18
|
+
function DynamicImportStatement(props) {
|
|
19
|
+
const { importPath, exportName = "default", const: isConst = true, ...rest } = props;
|
|
20
|
+
return /* @__PURE__ */ jsx(VarDeclaration, {
|
|
21
|
+
const: isConst,
|
|
22
|
+
...rest,
|
|
23
|
+
initializer: code`await import("${importPath}").then(m => m.${exportName});`
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { DynamicImportStatement as t };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as _alloy_js_core8 from "@alloy-js/core";
|
|
2
|
+
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
3
|
+
|
|
4
|
+
//#region src/typescript/components/dynamic-import-statement.d.ts
|
|
5
|
+
interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initializer"> {
|
|
6
|
+
/**
|
|
7
|
+
* The path of the module to import.
|
|
8
|
+
*/
|
|
9
|
+
importPath: string;
|
|
10
|
+
/**
|
|
11
|
+
* The name of the export to import from the module.
|
|
12
|
+
*
|
|
13
|
+
* @defaultValue "default"
|
|
14
|
+
*/
|
|
15
|
+
exportName?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Generates a dynamic import statement for a given module path and export name.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
|
|
23
|
+
* // const myVar = await import("./my-module").then(m => m.myExport);
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @param props - The properties for the dynamic import statement.
|
|
27
|
+
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
28
|
+
*/
|
|
29
|
+
declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core8.Children;
|
|
30
|
+
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
|
+
//#endregion
|
|
32
|
+
export { DynamicImportStatementProps as n, __ΩDynamicImportStatementProps as r, DynamicImportStatement as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
3
|
+
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
|
+
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
5
|
+
|
|
6
|
+
//#region src/typescript/components/dynamic-import-statement.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Generates a dynamic import statement for a given module path and export name.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
|
|
13
|
+
* // const myVar = await import("./my-module").then(m => m.myExport);
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @param props - The properties for the dynamic import statement.
|
|
17
|
+
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
18
|
+
*/
|
|
19
|
+
function DynamicImportStatement(props) {
|
|
20
|
+
const { importPath, exportName = "default", const: isConst = true, ...rest } = props;
|
|
21
|
+
return /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(__alloy_js_typescript.VarDeclaration, {
|
|
22
|
+
const: isConst,
|
|
23
|
+
...rest,
|
|
24
|
+
initializer: __alloy_js_core.code`await import("${importPath}").then(m => m.${exportName});`
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
Object.defineProperty(exports, 'DynamicImportStatement', {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () {
|
|
32
|
+
return DynamicImportStatement;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { o as ResolvedEntryTypeDefinition } from "./context-BO25KgR_.cjs";
|
|
2
|
+
import { o as TypescriptFileProps } from "./typescript-file-BR9I7R1v.cjs";
|
|
3
|
+
import * as _alloy_js_core6 from "@alloy-js/core";
|
|
4
|
+
|
|
5
|
+
//#region src/typescript/components/entry-file.d.ts
|
|
6
|
+
type EntryFileProps = TypescriptFileProps & {
|
|
7
|
+
/**
|
|
8
|
+
* Whether the file is a TSX file.
|
|
9
|
+
*
|
|
10
|
+
* @defaultValue false
|
|
11
|
+
*/
|
|
12
|
+
tsx?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Render metadata information about the entrypoint
|
|
15
|
+
*/
|
|
16
|
+
typeDefinition?: ResolvedEntryTypeDefinition;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* A base component representing a Powerlines generated Typescript source file.
|
|
20
|
+
*
|
|
21
|
+
* @param props - The properties for the source file.
|
|
22
|
+
* @returns The rendered source file component.
|
|
23
|
+
*/
|
|
24
|
+
declare function EntryFile(props: EntryFileProps): _alloy_js_core6.Children;
|
|
25
|
+
declare type __ΩEntryFileProps = any[];
|
|
26
|
+
//#endregion
|
|
27
|
+
export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
+
const require_context = require('./context-BIduC1bB.cjs');
|
|
3
|
+
const require_typescript_file = require('./typescript-file-6Y81yLyB.cjs');
|
|
4
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
5
|
+
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
|
+
let defu = require("defu");
|
|
7
|
+
defu = require_chunk.__toESM(defu);
|
|
8
|
+
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
9
|
+
|
|
10
|
+
//#region src/typescript/components/entry-file.tsx
|
|
11
|
+
/**
|
|
12
|
+
* A base component representing a Powerlines generated Typescript source file.
|
|
13
|
+
*
|
|
14
|
+
* @param props - The properties for the source file.
|
|
15
|
+
* @returns The rendered source file component.
|
|
16
|
+
*/
|
|
17
|
+
function EntryFile(props) {
|
|
18
|
+
const [{ children, meta, tsx, path, typeDefinition }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
19
|
+
"children",
|
|
20
|
+
"meta",
|
|
21
|
+
"tsx",
|
|
22
|
+
"path",
|
|
23
|
+
"typeDefinition"
|
|
24
|
+
]);
|
|
25
|
+
const context = require_context.usePowerlines();
|
|
26
|
+
const fullPath = (0, __alloy_js_core.computed)(() => (0, __stryke_path_join_paths.joinPaths)(context?.entryPath || "./", `${path}${tsx ? ".tsx" : ".ts"}`));
|
|
27
|
+
return /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(require_typescript_file.TypescriptFile, {
|
|
28
|
+
...rest,
|
|
29
|
+
path: fullPath.value,
|
|
30
|
+
meta: (0, defu.default)(meta ?? {}, { entry: { typeDefinition } }),
|
|
31
|
+
children
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
Object.defineProperty(exports, 'EntryFile', {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return EntryFile;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { n as usePowerlines } from "./context-Cx38_mgI.mjs";
|
|
2
|
+
import { t as TypescriptFile } from "./typescript-file-y6oF016h.mjs";
|
|
3
|
+
import { computed, splitProps } from "@alloy-js/core";
|
|
4
|
+
import { jsx } from "@alloy-js/core/jsx-runtime";
|
|
5
|
+
import defu from "defu";
|
|
6
|
+
import { joinPaths } from "@stryke/path/join-paths";
|
|
7
|
+
|
|
8
|
+
//#region src/typescript/components/entry-file.tsx
|
|
9
|
+
/**
|
|
10
|
+
* A base component representing a Powerlines generated Typescript source file.
|
|
11
|
+
*
|
|
12
|
+
* @param props - The properties for the source file.
|
|
13
|
+
* @returns The rendered source file component.
|
|
14
|
+
*/
|
|
15
|
+
function EntryFile(props) {
|
|
16
|
+
const [{ children, meta, tsx, path, typeDefinition }, rest] = splitProps(props, [
|
|
17
|
+
"children",
|
|
18
|
+
"meta",
|
|
19
|
+
"tsx",
|
|
20
|
+
"path",
|
|
21
|
+
"typeDefinition"
|
|
22
|
+
]);
|
|
23
|
+
const context = usePowerlines();
|
|
24
|
+
const fullPath = computed(() => joinPaths(context?.entryPath || "./", `${path}${tsx ? ".tsx" : ".ts"}`));
|
|
25
|
+
return /* @__PURE__ */ jsx(TypescriptFile, {
|
|
26
|
+
...rest,
|
|
27
|
+
path: fullPath.value,
|
|
28
|
+
meta: defu(meta ?? {}, { entry: { typeDefinition } }),
|
|
29
|
+
children
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { EntryFile as t };
|