@powerlines/plugin-alloy 0.15.1 → 0.15.2
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-BDc5-4_L.mjs +43 -0
- package/dist/{builtin-file-CIBzJ6jy.d.mts → builtin-file-CUUY0eVB.d.cts} +4 -4
- package/dist/{builtin-file-DLVCgiye.cjs → builtin-file-Cey2cJy9.cjs} +20 -14
- package/dist/{builtin-file-C-AX3Zai.d.cts → builtin-file-EfQHLZ8F.d.mts} +2 -2
- package/dist/{capnp-CbBwObRD.d.mts → capnp-DkidugOV.d.mts} +1 -1
- package/dist/{components-IB9A7YaB.d.mts → components-ixU_ICbr.d.mts} +5 -5
- package/dist/{context-D-UHaRnr.d.mts → context-BApo1nhP.d.mts} +1 -1
- package/dist/{context-0Spyyas6.d.mts → context-DXy7MPku.d.mts} +0 -2
- package/dist/core/components/index.cjs +3 -3
- package/dist/core/components/index.d.cts +3 -3
- package/dist/core/components/index.d.mts +5 -5
- package/dist/core/components/index.mjs +3 -3
- package/dist/core/components/output.cjs +1 -1
- package/dist/core/components/output.d.cts +1 -1
- package/dist/core/components/output.d.mts +2 -2
- package/dist/core/components/output.mjs +1 -1
- package/dist/core/components/single-line-comment.cjs +1 -1
- package/dist/core/components/single-line-comment.d.cts +1 -1
- package/dist/core/components/single-line-comment.d.mts +3 -3
- package/dist/core/components/single-line-comment.mjs +1 -1
- package/dist/core/components/source-file.cjs +1 -1
- package/dist/core/components/source-file.d.cts +1 -1
- package/dist/core/components/source-file.d.mts +3 -3
- package/dist/core/components/source-file.mjs +1 -1
- package/dist/core/contexts/context.d.mts +2 -2
- package/dist/core/contexts/index.d.mts +4 -4
- package/dist/core/contexts/reflection.d.mts +3 -3
- package/dist/core/index.cjs +3 -3
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.mts +7 -7
- package/dist/core/index.mjs +3 -3
- package/dist/{dynamic-import-statement-DO0ewx0l.d.cts → dynamic-import-statement-BhY2a13r.d.cts} +2 -2
- package/dist/{dynamic-import-statement-DoTHSt57.mjs → dynamic-import-statement-CWK5I_yt.mjs} +2 -6
- package/dist/{dynamic-import-statement-tQyMvDe7.d.mts → dynamic-import-statement-D6f1SnIf.d.mts} +2 -2
- package/dist/{dynamic-import-statement-JVLyMPXr.cjs → dynamic-import-statement-DVGp5Cvq.cjs} +2 -6
- package/dist/{entry-file-BgTZY0YN.d.mts → entry-file-B46yUHra.d.mts} +4 -4
- package/dist/{entry-file-BEHDg4dR.d.cts → entry-file-DSW6oClr.d.cts} +3 -3
- package/dist/{entry-file-BA75rAwb.cjs → entry-file-DijEelFv.cjs} +10 -7
- package/dist/{entry-file-Bw1mgMP3.mjs → entry-file-DtjJPVZY.mjs} +10 -7
- package/dist/helpers/capnp.d.mts +2 -2
- package/dist/helpers/index.d.mts +2 -2
- package/dist/index.cjs +61 -230
- package/dist/index.d.cts +9 -9
- package/dist/index.d.mts +19 -19
- package/dist/index.mjs +60 -224
- package/dist/markdown/components/index.cjs +4 -4
- package/dist/markdown/components/index.d.cts +3 -3
- package/dist/markdown/components/index.d.mts +5 -5
- package/dist/markdown/components/index.mjs +4 -4
- package/dist/markdown/components/markdown-file.cjs +3 -3
- package/dist/markdown/components/markdown-file.d.cts +2 -2
- package/dist/markdown/components/markdown-file.d.mts +4 -4
- package/dist/markdown/components/markdown-file.mjs +3 -3
- package/dist/markdown/components/markdown-table.cjs +1 -1
- package/dist/markdown/components/markdown-table.d.cts +1 -1
- package/dist/markdown/components/markdown-table.d.mts +3 -3
- package/dist/markdown/components/markdown-table.mjs +1 -1
- package/dist/markdown/index.cjs +4 -4
- package/dist/markdown/index.d.cts +3 -3
- package/dist/markdown/index.d.mts +5 -5
- package/dist/markdown/index.mjs +4 -4
- package/dist/markdown-file-BVSRcpXO.cjs +128 -0
- package/dist/{markdown-file-BjhcGybj.d.cts → markdown-file-C72aDdPi.d.cts} +4 -4
- package/dist/markdown-file-Clh5iU1_.mjs +116 -0
- package/dist/{markdown-file-BhMk-_1z.d.mts → markdown-file-DIkSXG43.d.mts} +5 -5
- package/dist/{markdown-table-DxL06EFD.d.mts → markdown-table-3trTm6Ef.d.mts} +5 -5
- package/dist/{markdown-table-DFaNSBRn.cjs → markdown-table-B40X-Kp1.cjs} +49 -28
- package/dist/{markdown-table-BUxH6aRh.mjs → markdown-table-D-YnljE7.mjs} +49 -28
- package/dist/{markdown-table-DhDqQVt_.d.cts → markdown-table-ZiuZZY5T.d.cts} +4 -4
- package/dist/{output-Cos2Dz1j.d.mts → output-BKZklKl1.d.mts} +1 -1
- package/dist/{output-CnofBsl0.cjs → output-BlHZS50Y.cjs} +19 -12
- package/dist/{output-C2C9L6Ho.d.cts → output-BmJnrELo.d.cts} +2 -2
- package/dist/{output-DEdXZ94G.mjs → output-CNnPjQlW.mjs} +19 -12
- package/dist/{plugin-DmLCIqx0.d.mts → plugin-LknisCLa.d.mts} +3 -3
- package/dist/{reflection-BiWgd3An.d.mts → reflection-DLJST1Z7.d.mts} +1 -1
- package/dist/{single-line-comment-C5CtHQhi.mjs → single-line-comment-Biwa95Py.mjs} +6 -4
- package/dist/{single-line-comment-CuFhTxLD.d.cts → single-line-comment-CYYKKXc2.d.cts} +2 -2
- package/dist/{single-line-comment-DRU3a4Qy.d.mts → single-line-comment-DGby6ABI.d.mts} +1 -1
- package/dist/{single-line-comment-BMPq6OR0.cjs → single-line-comment-DvU69OGj.cjs} +6 -4
- package/dist/{source-file-dpP3BrmV.d.mts → source-file-B2MkzzGR.d.mts} +4 -4
- package/dist/{source-file-DK_PJbR-.d.cts → source-file-BrxGhMOh.d.cts} +2 -2
- package/dist/{source-file-DTd1KgD5.cjs → source-file-DK_nFwAK.cjs} +10 -6
- package/dist/{source-file-CCYwl5pI.mjs → source-file-Dna2E0ro.mjs} +10 -6
- package/dist/tsdoc-B0TNs3dK.cjs +576 -0
- package/dist/{tsdoc-DzCqaUAX.d.mts → tsdoc-QH5nHvck.d.mts} +1 -1
- package/dist/tsdoc-XXdq_9iS.mjs +456 -0
- package/dist/{tsdoc-reflection-BbLwFCUm.d.mts → tsdoc-reflection-Bhk9KvVe.d.mts} +1 -1
- package/dist/tsdoc-reflection-BizVi_gn.cjs +188 -0
- package/dist/tsdoc-reflection-IWtPMJjw.mjs +170 -0
- package/dist/types/components.d.mts +2 -2
- package/dist/types/index.d.mts +3 -3
- package/dist/types/plugin.d.mts +2 -2
- package/dist/typescript/components/builtin-file.cjs +5 -5
- package/dist/typescript/components/builtin-file.d.cts +3 -3
- package/dist/typescript/components/builtin-file.d.mts +6 -6
- package/dist/typescript/components/builtin-file.mjs +5 -5
- package/dist/typescript/components/dynamic-import-statement.cjs +1 -1
- package/dist/typescript/components/dynamic-import-statement.d.cts +1 -1
- package/dist/typescript/components/dynamic-import-statement.d.mts +1 -1
- package/dist/typescript/components/dynamic-import-statement.mjs +1 -1
- package/dist/typescript/components/entry-file.cjs +4 -4
- package/dist/typescript/components/entry-file.d.cts +3 -3
- package/dist/typescript/components/entry-file.d.mts +5 -5
- package/dist/typescript/components/entry-file.mjs +4 -4
- package/dist/typescript/components/index.cjs +10 -10
- package/dist/typescript/components/index.d.cts +5 -5
- package/dist/typescript/components/index.d.mts +11 -11
- package/dist/typescript/components/index.mjs +10 -10
- package/dist/typescript/components/tsdoc-reflection.cjs +2 -2
- package/dist/typescript/components/tsdoc-reflection.d.mts +4 -4
- package/dist/typescript/components/tsdoc-reflection.mjs +2 -2
- package/dist/typescript/components/tsdoc.cjs +1 -1
- package/dist/typescript/components/tsdoc.d.mts +3 -3
- package/dist/typescript/components/tsdoc.mjs +1 -1
- package/dist/typescript/components/typescript-file.cjs +3 -3
- package/dist/typescript/components/typescript-file.d.cts +2 -2
- package/dist/typescript/components/typescript-file.d.mts +4 -4
- package/dist/typescript/components/typescript-file.mjs +3 -3
- package/dist/typescript/components/typescript-interface.cjs +3 -3
- package/dist/typescript/components/typescript-interface.d.mts +3 -3
- package/dist/typescript/components/typescript-interface.mjs +3 -3
- package/dist/typescript/components/typescript-object.cjs +3 -3
- package/dist/typescript/components/typescript-object.d.mts +3 -3
- package/dist/typescript/components/typescript-object.mjs +3 -3
- package/dist/typescript/index.cjs +10 -10
- package/dist/typescript/index.d.cts +5 -5
- package/dist/typescript/index.d.mts +11 -11
- package/dist/typescript/index.mjs +10 -10
- package/dist/{typescript-file-BjpHsTUl.d.cts → typescript-file-BK8Ohw9s.d.cts} +1 -1
- package/dist/{typescript-file-CxHfiE2u.d.mts → typescript-file-CFNjXsdz.d.mts} +2 -2
- package/dist/typescript-file-CLL-ELi0.mjs +190 -0
- package/dist/typescript-file-HsAUWnQY.cjs +208 -0
- package/dist/{typescript-interface-Codd49Sl.cjs → typescript-interface-DwHJ9in_.cjs} +38 -23
- package/dist/{typescript-interface-AydoCmGY.mjs → typescript-interface-FVDsEsu0.mjs} +38 -23
- package/dist/{typescript-interface-D8u8bgxN.d.mts → typescript-interface-XIwwFVdf.d.mts} +1 -1
- package/dist/{typescript-object-qZFhyXJU.d.mts → typescript-object-BTawaBJa.d.mts} +1 -1
- package/dist/{typescript-object-DOrJkpcM.cjs → typescript-object-D8MHeFId.cjs} +75 -45
- package/dist/{typescript-object-C-BmpHfk.mjs → typescript-object-Ju07nQg9.mjs} +75 -45
- package/package.json +11 -11
- package/dist/builtin-file-CkwxD4el.mjs +0 -37
- package/dist/markdown-file-BFbbzD59.mjs +0 -90
- package/dist/markdown-file-CzGNj_Ex.cjs +0 -102
- package/dist/tsdoc-BFPYF-Fh.cjs +0 -487
- package/dist/tsdoc-BmyOQBxT.mjs +0 -367
- package/dist/tsdoc-reflection-3hSdGY1e.mjs +0 -97
- package/dist/tsdoc-reflection-BQN8iUG1.cjs +0 -115
- package/dist/typescript-file-6Y81yLyB.cjs +0 -157
- package/dist/typescript-file-y6oF016h.mjs +0 -139
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
require('../../utilities-llRqOC4l.cjs');
|
|
2
2
|
require('../../context-BIduC1bB.cjs');
|
|
3
|
-
require('../../tsdoc-
|
|
3
|
+
require('../../tsdoc-B0TNs3dK.cjs');
|
|
4
4
|
require('../../reflection-BSbFFYZO.cjs');
|
|
5
|
-
require('../../tsdoc-reflection-
|
|
6
|
-
const require_typescript_object = require('../../typescript-object-
|
|
5
|
+
require('../../tsdoc-reflection-BizVi_gn.cjs');
|
|
6
|
+
const require_typescript_object = require('../../typescript-object-D8MHeFId.cjs');
|
|
7
7
|
|
|
8
8
|
exports.TypescriptObject = require_typescript_object.TypescriptObject;
|
|
9
9
|
exports.TypescriptObjectProperty = require_typescript_object.TypescriptObjectProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../context-
|
|
2
|
-
import "../../components-
|
|
3
|
-
import { a as __ΩTypescriptObjectPropertyProps, i as TypescriptObjectProps, n as TypescriptObjectProperty, o as __ΩTypescriptObjectProps, r as TypescriptObjectPropertyProps, t as TypescriptObject } from "../../typescript-object-
|
|
1
|
+
import "../../context-DXy7MPku.mjs";
|
|
2
|
+
import "../../components-ixU_ICbr.mjs";
|
|
3
|
+
import { a as __ΩTypescriptObjectPropertyProps, i as TypescriptObjectProps, n as TypescriptObjectProperty, o as __ΩTypescriptObjectProps, r as TypescriptObjectPropertyProps, t as TypescriptObject } from "../../typescript-object-BTawaBJa.mjs";
|
|
4
4
|
export { TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../utilities-CnaPrauh.mjs";
|
|
2
2
|
import "../../context-Cx38_mgI.mjs";
|
|
3
|
-
import "../../tsdoc-
|
|
3
|
+
import "../../tsdoc-XXdq_9iS.mjs";
|
|
4
4
|
import "../../reflection-CBMQ1FQo.mjs";
|
|
5
|
-
import "../../tsdoc-reflection-
|
|
6
|
-
import { n as TypescriptObjectProperty, t as TypescriptObject } from "../../typescript-object-
|
|
5
|
+
import "../../tsdoc-reflection-IWtPMJjw.mjs";
|
|
6
|
+
import { n as TypescriptObjectProperty, t as TypescriptObject } from "../../typescript-object-Ju07nQg9.mjs";
|
|
7
7
|
|
|
8
8
|
export { TypescriptObject, TypescriptObjectProperty };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
require('../utilities-llRqOC4l.cjs');
|
|
2
2
|
require('../context-BIduC1bB.cjs');
|
|
3
|
-
const require_tsdoc = require('../tsdoc-
|
|
4
|
-
require('../single-line-comment-
|
|
5
|
-
require('../source-file-
|
|
6
|
-
const require_typescript_file = require('../typescript-file-
|
|
7
|
-
const require_builtin_file = require('../builtin-file-
|
|
8
|
-
const require_dynamic_import_statement = require('../dynamic-import-statement-
|
|
9
|
-
const require_entry_file = require('../entry-file-
|
|
3
|
+
const require_tsdoc = require('../tsdoc-B0TNs3dK.cjs');
|
|
4
|
+
require('../single-line-comment-DvU69OGj.cjs');
|
|
5
|
+
require('../source-file-DK_nFwAK.cjs');
|
|
6
|
+
const require_typescript_file = require('../typescript-file-HsAUWnQY.cjs');
|
|
7
|
+
const require_builtin_file = require('../builtin-file-Cey2cJy9.cjs');
|
|
8
|
+
const require_dynamic_import_statement = require('../dynamic-import-statement-DVGp5Cvq.cjs');
|
|
9
|
+
const require_entry_file = require('../entry-file-DijEelFv.cjs');
|
|
10
10
|
const require_record_expression = require('../record-expression-DNVzCKgo.cjs');
|
|
11
11
|
require('../reflection-BSbFFYZO.cjs');
|
|
12
|
-
const require_tsdoc_reflection = require('../tsdoc-reflection-
|
|
13
|
-
const require_typescript_interface = require('../typescript-interface-
|
|
14
|
-
const require_typescript_object = require('../typescript-object-
|
|
12
|
+
const require_tsdoc_reflection = require('../tsdoc-reflection-BizVi_gn.cjs');
|
|
13
|
+
const require_typescript_interface = require('../typescript-interface-DwHJ9in_.cjs');
|
|
14
|
+
const require_typescript_object = require('../typescript-object-D8MHeFId.cjs');
|
|
15
15
|
require('../components-BOkkDhM9.cjs');
|
|
16
16
|
require('../typescript-DV5akLQO.cjs');
|
|
17
17
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../context-BsDdxy5g.cjs";
|
|
2
2
|
import "../components-C8Qs2PB0.cjs";
|
|
3
|
-
import "../source-file-
|
|
3
|
+
import "../source-file-BrxGhMOh.cjs";
|
|
4
4
|
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-CK6J_ap5.cjs";
|
|
5
|
-
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-
|
|
6
|
-
import { n as BuiltinFileProps, r as __ΩBuiltinFileProps, t as BuiltinFile } from "../builtin-file-
|
|
7
|
-
import { n as DynamicImportStatementProps, r as __ΩDynamicImportStatementProps, t as DynamicImportStatement } from "../dynamic-import-statement-
|
|
8
|
-
import { n as EntryFileProps, r as __ΩEntryFileProps, t as EntryFile } from "../entry-file-
|
|
5
|
+
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-BK8Ohw9s.cjs";
|
|
6
|
+
import { n as BuiltinFileProps, r as __ΩBuiltinFileProps, t as BuiltinFile } from "../builtin-file-CUUY0eVB.cjs";
|
|
7
|
+
import { n as DynamicImportStatementProps, r as __ΩDynamicImportStatementProps, t as DynamicImportStatement } from "../dynamic-import-statement-BhY2a13r.cjs";
|
|
8
|
+
import { n as EntryFileProps, r as __ΩEntryFileProps, t as EntryFile } from "../entry-file-DSW6oClr.cjs";
|
|
9
9
|
import { n as RecordExpressionProps, r as __ΩRecordExpressionProps, t as RecordExpression } from "../record-expression-DM_zSqE_.cjs";
|
|
10
10
|
import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-BOvlOXzR.cjs";
|
|
11
11
|
import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-CVB4juPk.cjs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "../context-
|
|
2
|
-
import "../components-
|
|
3
|
-
import "../source-file-
|
|
4
|
-
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-
|
|
5
|
-
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-
|
|
6
|
-
import { n as BuiltinFileProps, r as __ΩBuiltinFileProps, t as BuiltinFile } from "../builtin-file-
|
|
7
|
-
import { n as DynamicImportStatementProps, r as __ΩDynamicImportStatementProps, t as DynamicImportStatement } from "../dynamic-import-statement-
|
|
8
|
-
import { n as EntryFileProps, r as __ΩEntryFileProps, t as EntryFile } from "../entry-file-
|
|
1
|
+
import "../context-DXy7MPku.mjs";
|
|
2
|
+
import "../components-ixU_ICbr.mjs";
|
|
3
|
+
import "../source-file-B2MkzzGR.mjs";
|
|
4
|
+
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-QH5nHvck.mjs";
|
|
5
|
+
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-CFNjXsdz.mjs";
|
|
6
|
+
import { n as BuiltinFileProps, r as __ΩBuiltinFileProps, t as BuiltinFile } from "../builtin-file-EfQHLZ8F.mjs";
|
|
7
|
+
import { n as DynamicImportStatementProps, r as __ΩDynamicImportStatementProps, t as DynamicImportStatement } from "../dynamic-import-statement-D6f1SnIf.mjs";
|
|
8
|
+
import { n as EntryFileProps, r as __ΩEntryFileProps, t as EntryFile } from "../entry-file-B46yUHra.mjs";
|
|
9
9
|
import { n as RecordExpressionProps, r as __ΩRecordExpressionProps, t as RecordExpression } from "../record-expression-BOCZ9iqR.mjs";
|
|
10
|
-
import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-
|
|
11
|
-
import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-
|
|
12
|
-
import { a as __ΩTypescriptObjectPropertyProps, i as TypescriptObjectProps, n as TypescriptObjectProperty, o as __ΩTypescriptObjectProps, r as TypescriptObjectPropertyProps, t as TypescriptObject } from "../typescript-object-
|
|
10
|
+
import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-Bhk9KvVe.mjs";
|
|
11
|
+
import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-XIwwFVdf.mjs";
|
|
12
|
+
import { a as __ΩTypescriptObjectPropertyProps, i as TypescriptObjectProps, n as TypescriptObjectProperty, o as __ΩTypescriptObjectProps, r as TypescriptObjectPropertyProps, t as TypescriptObject } from "../typescript-object-BTawaBJa.mjs";
|
|
13
13
|
import "../index-CLTQPxoD.mjs";
|
|
14
14
|
import "../index-BRJ_6A42.mjs";
|
|
15
15
|
export { BuiltinFile, BuiltinFileProps, 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, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, __ΩTypescriptInterfacePropertyProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "../utilities-CnaPrauh.mjs";
|
|
2
2
|
import "../context-Cx38_mgI.mjs";
|
|
3
|
-
import { _ as TSDocReturns, a as TSDocDomain, b as TSDocTitle, c as TSDocIgnore, d as TSDocModule, f as TSDocParam, g as TSDocRemarks, h as TSDocReadonly, i as TSDocDefaultValue, l as TSDocInternal, m as TSDocPermission, n as TSDocAlias, o as TSDocExample, p as TSDocParams, r as TSDocAttributesTags, s as TSDocHidden, t as TSDoc, u as TSDocLink, v as TSDocTag, y as TSDocThrows } from "../tsdoc-
|
|
4
|
-
import "../single-line-comment-
|
|
5
|
-
import "../source-file-
|
|
6
|
-
import { n as TypescriptFileHeader, r as TypescriptFileHeaderImports, t as TypescriptFile } from "../typescript-file-
|
|
7
|
-
import { t as BuiltinFile } from "../builtin-file-
|
|
8
|
-
import { t as DynamicImportStatement } from "../dynamic-import-statement-
|
|
9
|
-
import { t as EntryFile } from "../entry-file-
|
|
3
|
+
import { _ as TSDocReturns, a as TSDocDomain, b as TSDocTitle, c as TSDocIgnore, d as TSDocModule, f as TSDocParam, g as TSDocRemarks, h as TSDocReadonly, i as TSDocDefaultValue, l as TSDocInternal, m as TSDocPermission, n as TSDocAlias, o as TSDocExample, p as TSDocParams, r as TSDocAttributesTags, s as TSDocHidden, t as TSDoc, u as TSDocLink, v as TSDocTag, y as TSDocThrows } from "../tsdoc-XXdq_9iS.mjs";
|
|
4
|
+
import "../single-line-comment-Biwa95Py.mjs";
|
|
5
|
+
import "../source-file-Dna2E0ro.mjs";
|
|
6
|
+
import { n as TypescriptFileHeader, r as TypescriptFileHeaderImports, t as TypescriptFile } from "../typescript-file-CLL-ELi0.mjs";
|
|
7
|
+
import { t as BuiltinFile } from "../builtin-file-BDc5-4_L.mjs";
|
|
8
|
+
import { t as DynamicImportStatement } from "../dynamic-import-statement-CWK5I_yt.mjs";
|
|
9
|
+
import { t as EntryFile } from "../entry-file-DtjJPVZY.mjs";
|
|
10
10
|
import { t as RecordExpression } from "../record-expression-DxS_DiPc.mjs";
|
|
11
11
|
import "../reflection-CBMQ1FQo.mjs";
|
|
12
|
-
import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-
|
|
13
|
-
import { n as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-
|
|
14
|
-
import { n as TypescriptObjectProperty, t as TypescriptObject } from "../typescript-object-
|
|
12
|
+
import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-IWtPMJjw.mjs";
|
|
13
|
+
import { n as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-FVDsEsu0.mjs";
|
|
14
|
+
import { n as TypescriptObjectProperty, t as TypescriptObject } from "../typescript-object-Ju07nQg9.mjs";
|
|
15
15
|
import "../components-ajocJcib.mjs";
|
|
16
16
|
import "../typescript-45caIUPa.mjs";
|
|
17
17
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as TypescriptFileImports, n as ComponentProps, p as SourceFileHeaderProps } from "./components-C8Qs2PB0.cjs";
|
|
2
|
-
import { n as SourceFileProps$1 } from "./source-file-
|
|
2
|
+
import { n as SourceFileProps$1 } from "./source-file-BrxGhMOh.cjs";
|
|
3
3
|
import { Children } from "@alloy-js/core";
|
|
4
4
|
import { TSModuleScope } from "@alloy-js/typescript";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as TypescriptFileImports, n as ComponentProps, p as SourceFileHeaderProps } from "./components-
|
|
2
|
-
import { n as SourceFileProps$1 } from "./source-file-
|
|
1
|
+
import { h as TypescriptFileImports, n as ComponentProps, p as SourceFileHeaderProps } from "./components-ixU_ICbr.mjs";
|
|
2
|
+
import { n as SourceFileProps$1 } from "./source-file-B2MkzzGR.mjs";
|
|
3
3
|
import { Children } from "@alloy-js/core";
|
|
4
4
|
import { TSModuleScope } from "@alloy-js/typescript";
|
|
5
5
|
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { n as usePowerlines } from "./context-Cx38_mgI.mjs";
|
|
2
|
+
import { t as SingleLineComment } from "./single-line-comment-Biwa95Py.mjs";
|
|
3
|
+
import { t as SourceFile } from "./source-file-Dna2E0ro.mjs";
|
|
4
|
+
import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
5
|
+
import { Scope, Show, SourceDirectoryContext, code, splitProps, useContext, useScope } from "@alloy-js/core";
|
|
6
|
+
import { isString } from "@stryke/type-checks/is-string";
|
|
7
|
+
import { ImportStatements, PackageContext, SourceFileContext as SourceFileContext$1, TSModuleScope, getSourceDirectoryData, useSourceFile } from "@alloy-js/typescript";
|
|
8
|
+
import { appendPath } from "@stryke/path/append";
|
|
9
|
+
import { titleCase } from "@stryke/string-format/title-case";
|
|
10
|
+
import { isBoolean } from "@stryke/type-checks/is-boolean";
|
|
11
|
+
|
|
12
|
+
//#region src/typescript/components/typescript-file.tsx
|
|
13
|
+
/**
|
|
14
|
+
* A base component representing a Powerlines generated Typescript source file.
|
|
15
|
+
*
|
|
16
|
+
* @param props - The properties for the source file.
|
|
17
|
+
* @returns The rendered source file component.
|
|
18
|
+
*/
|
|
19
|
+
function TypescriptFile(props) {
|
|
20
|
+
const [{ children, path, imports, tsx, header, hashbang }, rest] = splitProps(props, [
|
|
21
|
+
"children",
|
|
22
|
+
"path",
|
|
23
|
+
"imports",
|
|
24
|
+
"tsx",
|
|
25
|
+
"header",
|
|
26
|
+
"hashbang"
|
|
27
|
+
]);
|
|
28
|
+
const directoryContext = useContext(SourceDirectoryContext);
|
|
29
|
+
const sdData = getSourceDirectoryData(directoryContext);
|
|
30
|
+
const modulePath = appendPath(path, directoryContext.path);
|
|
31
|
+
const scope = new TSModuleScope(modulePath, useScope());
|
|
32
|
+
sdData.modules.add(scope);
|
|
33
|
+
const pkg = useContext(PackageContext);
|
|
34
|
+
if (pkg) pkg.scope.addModule(scope);
|
|
35
|
+
if (props.export) {
|
|
36
|
+
if (pkg) if (isBoolean(props.export)) pkg.scope.addExport(modulePath, scope);
|
|
37
|
+
else pkg.scope.addExport(props.export, scope);
|
|
38
|
+
}
|
|
39
|
+
return createComponent(SourceFileContext$1.Provider, {
|
|
40
|
+
value: { scope },
|
|
41
|
+
get children() {
|
|
42
|
+
return createComponent(Scope, {
|
|
43
|
+
value: scope,
|
|
44
|
+
get children() {
|
|
45
|
+
return createComponent(SourceFile, mergeProps(rest, {
|
|
46
|
+
path: modulePath,
|
|
47
|
+
get header() {
|
|
48
|
+
return header ?? createComponent(TypescriptFileHeader, {
|
|
49
|
+
hashbang,
|
|
50
|
+
get children() {
|
|
51
|
+
return createComponent(TypescriptFileHeaderImports, {
|
|
52
|
+
imports,
|
|
53
|
+
scope
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
filetype: tsx ? "tsx" : "typescript",
|
|
59
|
+
children
|
|
60
|
+
}));
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
68
|
+
*
|
|
69
|
+
* @param props - The properties for the source file header.
|
|
70
|
+
* @returns The rendered source file header.
|
|
71
|
+
*/
|
|
72
|
+
function TypescriptFileHeader(props) {
|
|
73
|
+
const { header, hashbang, disableEslint = true, disableBiome = true, disablePrettier = false, children } = props;
|
|
74
|
+
const context = usePowerlines();
|
|
75
|
+
return [
|
|
76
|
+
createComponent(Show, {
|
|
77
|
+
get when() {
|
|
78
|
+
return Boolean(hashbang);
|
|
79
|
+
},
|
|
80
|
+
get children() {
|
|
81
|
+
return [memo(() => hashbang === true ? code`#!/usr/bin/env ${context?.config.mode === "development" ? "-S NODE_OPTIONS=--enable-source-maps" : ""} node` : hashbang), createIntrinsic("hbr", {})];
|
|
82
|
+
}
|
|
83
|
+
}),
|
|
84
|
+
createComponent(Show, {
|
|
85
|
+
get when() {
|
|
86
|
+
return Boolean(header);
|
|
87
|
+
},
|
|
88
|
+
get children() {
|
|
89
|
+
return [header, createIntrinsic("hbr", {})];
|
|
90
|
+
}
|
|
91
|
+
}),
|
|
92
|
+
createIntrinsic("hbr", {}),
|
|
93
|
+
createComponent(Show, {
|
|
94
|
+
get when() {
|
|
95
|
+
return Boolean(disableEslint);
|
|
96
|
+
},
|
|
97
|
+
get children() {
|
|
98
|
+
return [createComponent(SingleLineComment, {
|
|
99
|
+
variant: "slash-star",
|
|
100
|
+
children: "eslint-disable"
|
|
101
|
+
}), createIntrinsic("hbr", {})];
|
|
102
|
+
}
|
|
103
|
+
}),
|
|
104
|
+
createComponent(Show, {
|
|
105
|
+
get when() {
|
|
106
|
+
return Boolean(disablePrettier);
|
|
107
|
+
},
|
|
108
|
+
get children() {
|
|
109
|
+
return [createComponent(SingleLineComment, {
|
|
110
|
+
variant: "slash-star",
|
|
111
|
+
children: "prettier-ignore"
|
|
112
|
+
}), createIntrinsic("hbr", {})];
|
|
113
|
+
}
|
|
114
|
+
}),
|
|
115
|
+
createComponent(Show, {
|
|
116
|
+
get when() {
|
|
117
|
+
return Boolean(disableBiome);
|
|
118
|
+
},
|
|
119
|
+
get children() {
|
|
120
|
+
return [createComponent(SingleLineComment, { children: "biome-ignore lint: disable" }), createIntrinsic("hbr", {})];
|
|
121
|
+
}
|
|
122
|
+
}),
|
|
123
|
+
createComponent(Show, {
|
|
124
|
+
get when() {
|
|
125
|
+
return Boolean(disableEslint) || Boolean(disablePrettier) || Boolean(disableBiome);
|
|
126
|
+
},
|
|
127
|
+
get children() {
|
|
128
|
+
return createIntrinsic("hbr", {});
|
|
129
|
+
}
|
|
130
|
+
}),
|
|
131
|
+
createComponent(Show, {
|
|
132
|
+
get when() {
|
|
133
|
+
return Boolean(children);
|
|
134
|
+
},
|
|
135
|
+
get children() {
|
|
136
|
+
return [children, createIntrinsic("hbr", {})];
|
|
137
|
+
}
|
|
138
|
+
}),
|
|
139
|
+
createComponent(SingleLineComment, { get children() {
|
|
140
|
+
return code`Generated by ${titleCase(context?.config.framework) || "Powerlines"}`;
|
|
141
|
+
} }),
|
|
142
|
+
createIntrinsic("hbr", {}),
|
|
143
|
+
createComponent(SingleLineComment, { children: code`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command` }),
|
|
144
|
+
createIntrinsic("hbr", {})
|
|
145
|
+
];
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
149
|
+
*
|
|
150
|
+
* @param props - The properties for the source file header.
|
|
151
|
+
* @returns The rendered source file header.
|
|
152
|
+
*/
|
|
153
|
+
function TypescriptFileHeaderImports(props) {
|
|
154
|
+
const { imports } = props;
|
|
155
|
+
const sourceFile = useSourceFile();
|
|
156
|
+
const scope = props.scope ?? sourceFile.scope;
|
|
157
|
+
return createComponent(Show, {
|
|
158
|
+
get when() {
|
|
159
|
+
return scope.importedModules.size > 0 || !!imports && Object.keys(imports).length > 0;
|
|
160
|
+
},
|
|
161
|
+
get children() {
|
|
162
|
+
return [
|
|
163
|
+
createComponent(Show, {
|
|
164
|
+
get when() {
|
|
165
|
+
return !!imports && Object.keys(imports).length > 0;
|
|
166
|
+
},
|
|
167
|
+
get children() {
|
|
168
|
+
return Object.entries(imports ?? {}).map(([module, imported]) => {
|
|
169
|
+
return code`import ${imported === null ? "" : imported.filter((i) => !isString(i) && i.default).map((i) => i.alias ? i.alias : i.name).join(", ") + (imported.filter((i) => !isString(i) && i.default).length > 0 && imported.filter((i) => isString(i) || !i.default).length > 0 ? ", " : "") + (imported.filter((i) => isString(i) || !i.default).length > 0 ? `{ ${imported.map((i) => isString(i) ? i : i.alias ? `${i.name} as ${i.alias}` : i.name).join(", ")} }` : "")} from "${module}";`;
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
}),
|
|
173
|
+
createComponent(Show, {
|
|
174
|
+
get when() {
|
|
175
|
+
return scope.importedModules.size > 0;
|
|
176
|
+
},
|
|
177
|
+
get children() {
|
|
178
|
+
return createComponent(ImportStatements, { get records() {
|
|
179
|
+
return scope.importedModules;
|
|
180
|
+
} });
|
|
181
|
+
}
|
|
182
|
+
}),
|
|
183
|
+
createIntrinsic("hbr", {})
|
|
184
|
+
];
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
//#endregion
|
|
190
|
+
export { TypescriptFileHeader as n, TypescriptFileHeaderImports as r, TypescriptFile as t };
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
+
const require_context = require('./context-BIduC1bB.cjs');
|
|
3
|
+
const require_single_line_comment = require('./single-line-comment-DvU69OGj.cjs');
|
|
4
|
+
const require_source_file = require('./source-file-DK_nFwAK.cjs');
|
|
5
|
+
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
7
|
+
let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
8
|
+
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
9
|
+
let __stryke_path_append = require("@stryke/path/append");
|
|
10
|
+
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
11
|
+
let __stryke_type_checks_is_boolean = require("@stryke/type-checks/is-boolean");
|
|
12
|
+
|
|
13
|
+
//#region src/typescript/components/typescript-file.tsx
|
|
14
|
+
/**
|
|
15
|
+
* A base component representing a Powerlines generated Typescript source file.
|
|
16
|
+
*
|
|
17
|
+
* @param props - The properties for the source file.
|
|
18
|
+
* @returns The rendered source file component.
|
|
19
|
+
*/
|
|
20
|
+
function TypescriptFile(props) {
|
|
21
|
+
const [{ children, path, imports, tsx, header, hashbang }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
22
|
+
"children",
|
|
23
|
+
"path",
|
|
24
|
+
"imports",
|
|
25
|
+
"tsx",
|
|
26
|
+
"header",
|
|
27
|
+
"hashbang"
|
|
28
|
+
]);
|
|
29
|
+
const directoryContext = (0, __alloy_js_core.useContext)(__alloy_js_core.SourceDirectoryContext);
|
|
30
|
+
const sdData = (0, __alloy_js_typescript.getSourceDirectoryData)(directoryContext);
|
|
31
|
+
const modulePath = (0, __stryke_path_append.appendPath)(path, directoryContext.path);
|
|
32
|
+
const scope = new __alloy_js_typescript.TSModuleScope(modulePath, (0, __alloy_js_core.useScope)());
|
|
33
|
+
sdData.modules.add(scope);
|
|
34
|
+
const pkg = (0, __alloy_js_core.useContext)(__alloy_js_typescript.PackageContext);
|
|
35
|
+
if (pkg) pkg.scope.addModule(scope);
|
|
36
|
+
if (props.export) {
|
|
37
|
+
if (pkg) if ((0, __stryke_type_checks_is_boolean.isBoolean)(props.export)) pkg.scope.addExport(modulePath, scope);
|
|
38
|
+
else pkg.scope.addExport(props.export, scope);
|
|
39
|
+
}
|
|
40
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.SourceFileContext.Provider, {
|
|
41
|
+
value: { scope },
|
|
42
|
+
get children() {
|
|
43
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Scope, {
|
|
44
|
+
value: scope,
|
|
45
|
+
get children() {
|
|
46
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_source_file.SourceFile, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
47
|
+
path: modulePath,
|
|
48
|
+
get header() {
|
|
49
|
+
return header ?? (0, __alloy_js_core_jsx_runtime.createComponent)(TypescriptFileHeader, {
|
|
50
|
+
hashbang,
|
|
51
|
+
get children() {
|
|
52
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(TypescriptFileHeaderImports, {
|
|
53
|
+
imports,
|
|
54
|
+
scope
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
},
|
|
59
|
+
filetype: tsx ? "tsx" : "typescript",
|
|
60
|
+
children
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
69
|
+
*
|
|
70
|
+
* @param props - The properties for the source file header.
|
|
71
|
+
* @returns The rendered source file header.
|
|
72
|
+
*/
|
|
73
|
+
function TypescriptFileHeader(props) {
|
|
74
|
+
const { header, hashbang, disableEslint = true, disableBiome = true, disablePrettier = false, children } = props;
|
|
75
|
+
const context = require_context.usePowerlines();
|
|
76
|
+
return [
|
|
77
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
78
|
+
get when() {
|
|
79
|
+
return Boolean(hashbang);
|
|
80
|
+
},
|
|
81
|
+
get children() {
|
|
82
|
+
return [(0, __alloy_js_core_jsx_runtime.memo)(() => hashbang === true ? __alloy_js_core.code`#!/usr/bin/env ${context?.config.mode === "development" ? "-S NODE_OPTIONS=--enable-source-maps" : ""} node` : hashbang), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
83
|
+
}
|
|
84
|
+
}),
|
|
85
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
86
|
+
get when() {
|
|
87
|
+
return Boolean(header);
|
|
88
|
+
},
|
|
89
|
+
get children() {
|
|
90
|
+
return [header, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
91
|
+
}
|
|
92
|
+
}),
|
|
93
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
94
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
95
|
+
get when() {
|
|
96
|
+
return Boolean(disableEslint);
|
|
97
|
+
},
|
|
98
|
+
get children() {
|
|
99
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
|
|
100
|
+
variant: "slash-star",
|
|
101
|
+
children: "eslint-disable"
|
|
102
|
+
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
103
|
+
}
|
|
104
|
+
}),
|
|
105
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
106
|
+
get when() {
|
|
107
|
+
return Boolean(disablePrettier);
|
|
108
|
+
},
|
|
109
|
+
get children() {
|
|
110
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, {
|
|
111
|
+
variant: "slash-star",
|
|
112
|
+
children: "prettier-ignore"
|
|
113
|
+
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
114
|
+
}
|
|
115
|
+
}),
|
|
116
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
117
|
+
get when() {
|
|
118
|
+
return Boolean(disableBiome);
|
|
119
|
+
},
|
|
120
|
+
get children() {
|
|
121
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, { children: "biome-ignore lint: disable" }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
122
|
+
}
|
|
123
|
+
}),
|
|
124
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
125
|
+
get when() {
|
|
126
|
+
return Boolean(disableEslint) || Boolean(disablePrettier) || Boolean(disableBiome);
|
|
127
|
+
},
|
|
128
|
+
get children() {
|
|
129
|
+
return (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {});
|
|
130
|
+
}
|
|
131
|
+
}),
|
|
132
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
133
|
+
get when() {
|
|
134
|
+
return Boolean(children);
|
|
135
|
+
},
|
|
136
|
+
get children() {
|
|
137
|
+
return [children, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
138
|
+
}
|
|
139
|
+
}),
|
|
140
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, { get children() {
|
|
141
|
+
return __alloy_js_core.code`Generated by ${(0, __stryke_string_format_title_case.titleCase)(context?.config.framework) || "Powerlines"}`;
|
|
142
|
+
} }),
|
|
143
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
144
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(require_single_line_comment.SingleLineComment, { children: __alloy_js_core.code`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command` }),
|
|
145
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
146
|
+
];
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Renders the header for a Powerlines Typescript source file.
|
|
150
|
+
*
|
|
151
|
+
* @param props - The properties for the source file header.
|
|
152
|
+
* @returns The rendered source file header.
|
|
153
|
+
*/
|
|
154
|
+
function TypescriptFileHeaderImports(props) {
|
|
155
|
+
const { imports } = props;
|
|
156
|
+
const sourceFile = (0, __alloy_js_typescript.useSourceFile)();
|
|
157
|
+
const scope = props.scope ?? sourceFile.scope;
|
|
158
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
159
|
+
get when() {
|
|
160
|
+
return scope.importedModules.size > 0 || !!imports && Object.keys(imports).length > 0;
|
|
161
|
+
},
|
|
162
|
+
get children() {
|
|
163
|
+
return [
|
|
164
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
165
|
+
get when() {
|
|
166
|
+
return !!imports && Object.keys(imports).length > 0;
|
|
167
|
+
},
|
|
168
|
+
get children() {
|
|
169
|
+
return Object.entries(imports ?? {}).map(([module$1, imported]) => {
|
|
170
|
+
return __alloy_js_core.code`import ${imported === null ? "" : imported.filter((i) => !(0, __stryke_type_checks_is_string.isString)(i) && i.default).map((i) => i.alias ? i.alias : i.name).join(", ") + (imported.filter((i) => !(0, __stryke_type_checks_is_string.isString)(i) && i.default).length > 0 && imported.filter((i) => (0, __stryke_type_checks_is_string.isString)(i) || !i.default).length > 0 ? ", " : "") + (imported.filter((i) => (0, __stryke_type_checks_is_string.isString)(i) || !i.default).length > 0 ? `{ ${imported.map((i) => (0, __stryke_type_checks_is_string.isString)(i) ? i : i.alias ? `${i.name} as ${i.alias}` : i.name).join(", ")} }` : "")} from "${module$1}";`;
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
}),
|
|
174
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
175
|
+
get when() {
|
|
176
|
+
return scope.importedModules.size > 0;
|
|
177
|
+
},
|
|
178
|
+
get children() {
|
|
179
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.ImportStatements, { get records() {
|
|
180
|
+
return scope.importedModules;
|
|
181
|
+
} });
|
|
182
|
+
}
|
|
183
|
+
}),
|
|
184
|
+
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
185
|
+
];
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
//#endregion
|
|
191
|
+
Object.defineProperty(exports, 'TypescriptFile', {
|
|
192
|
+
enumerable: true,
|
|
193
|
+
get: function () {
|
|
194
|
+
return TypescriptFile;
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
Object.defineProperty(exports, 'TypescriptFileHeader', {
|
|
198
|
+
enumerable: true,
|
|
199
|
+
get: function () {
|
|
200
|
+
return TypescriptFileHeader;
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
Object.defineProperty(exports, 'TypescriptFileHeaderImports', {
|
|
204
|
+
enumerable: true,
|
|
205
|
+
get: function () {
|
|
206
|
+
return TypescriptFileHeaderImports;
|
|
207
|
+
}
|
|
208
|
+
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
2
|
const require_reflection = require('./reflection-BSbFFYZO.cjs');
|
|
3
|
-
const require_tsdoc_reflection = require('./tsdoc-reflection-
|
|
3
|
+
const require_tsdoc_reflection = require('./tsdoc-reflection-BizVi_gn.cjs');
|
|
4
|
+
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
5
|
let __alloy_js_core = require("@alloy-js/core");
|
|
5
6
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
6
7
|
let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
7
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
8
8
|
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
9
9
|
let __stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
|
|
10
10
|
|
|
@@ -16,19 +16,23 @@ function TypeScriptInterface(props) {
|
|
|
16
16
|
const [{ name, reflection }, rest] = (0, __alloy_js_core.splitProps)(props, ["name", "reflection"]);
|
|
17
17
|
const interfaceName = (0, __alloy_js_core.computed)(() => (0, __stryke_string_format_pascal_case.pascalCase)(((0, __stryke_type_checks_is_string.isString)(name) ? name : name.toString()) || reflection.getName()));
|
|
18
18
|
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);
|
|
19
|
-
return
|
|
19
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_reflection.ReflectionClassContext.Provider, {
|
|
20
20
|
value: { reflection },
|
|
21
|
-
children
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
get children() {
|
|
22
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc_reflection.TSDocReflectionClass, {}), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.InterfaceDeclaration, (0, __alloy_js_core_jsx_runtime.mergeProps)({
|
|
23
|
+
"export": true,
|
|
24
|
+
get name() {
|
|
25
|
+
return interfaceName.value;
|
|
26
|
+
}
|
|
27
|
+
}, rest, { get children() {
|
|
28
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
|
|
29
|
+
each: properties,
|
|
30
|
+
doubleHardline: true,
|
|
31
|
+
semicolon: true,
|
|
32
|
+
children: (prop) => (0, __alloy_js_core_jsx_runtime.createComponent)(TypescriptInterfaceProperty, { property: prop })
|
|
33
|
+
});
|
|
34
|
+
} }))];
|
|
35
|
+
}
|
|
32
36
|
});
|
|
33
37
|
}
|
|
34
38
|
/**
|
|
@@ -36,16 +40,27 @@ function TypeScriptInterface(props) {
|
|
|
36
40
|
*/
|
|
37
41
|
function TypescriptInterfaceProperty(props) {
|
|
38
42
|
const [{ property }, rest] = (0, __alloy_js_core.splitProps)(props, ["property"]);
|
|
39
|
-
return
|
|
43
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_reflection.ReflectionPropertyContext.Provider, {
|
|
40
44
|
value: property,
|
|
41
|
-
children
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
get children() {
|
|
46
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc_reflection.TSDocReflectionProperty, {}), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.InterfaceMember, (0, __alloy_js_core_jsx_runtime.mergeProps)({
|
|
47
|
+
get name() {
|
|
48
|
+
return property.getNameAsString();
|
|
49
|
+
},
|
|
50
|
+
get readonly() {
|
|
51
|
+
return property.isReadonly();
|
|
52
|
+
},
|
|
53
|
+
get optional() {
|
|
54
|
+
return property.isOptional();
|
|
55
|
+
},
|
|
56
|
+
get nullish() {
|
|
57
|
+
return property.isNullable();
|
|
58
|
+
},
|
|
59
|
+
get type() {
|
|
60
|
+
return (0, __powerlines_deepkit_vendor_type.stringifyType)(property.getType());
|
|
61
|
+
}
|
|
62
|
+
}, rest))];
|
|
63
|
+
}
|
|
49
64
|
});
|
|
50
65
|
}
|
|
51
66
|
|