@powerlines/plugin-alloy 0.15.2 → 0.15.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-CbDLau6x.cjs → _virtual/rolldown_runtime.cjs} +1 -6
- package/dist/_virtual/rolldown_runtime.mjs +31 -0
- package/dist/core/components/index.cjs +6 -8
- package/dist/core/components/index.d.cts +3 -6
- package/dist/core/components/index.d.mts +3 -6
- package/dist/core/components/index.mjs +3 -5
- package/dist/core/components/output.cjs +39 -3
- package/dist/core/components/output.d.cts +17 -2
- package/dist/core/components/output.d.mts +17 -2
- package/dist/core/components/output.mjs +37 -2
- package/dist/core/components/single-line-comment.cjs +21 -2
- package/dist/core/components/single-line-comment.d.cts +21 -3
- package/dist/core/components/single-line-comment.d.mts +21 -3
- package/dist/core/components/single-line-comment.mjs +19 -1
- package/dist/core/components/source-file.cjs +57 -2
- package/dist/core/components/source-file.d.cts +30 -3
- package/dist/core/components/source-file.d.mts +30 -3
- package/dist/core/components/source-file.mjs +54 -1
- package/dist/core/contexts/context.cjs +28 -4
- package/dist/core/contexts/context.d.cts +25 -2
- package/dist/core/contexts/context.d.mts +25 -2
- package/dist/core/contexts/context.mjs +24 -1
- package/dist/core/contexts/index.cjs +13 -14
- package/dist/core/contexts/index.d.cts +2 -5
- package/dist/core/contexts/index.d.mts +2 -5
- package/dist/core/contexts/index.mjs +2 -3
- package/dist/core/contexts/reflection.cjs +67 -9
- package/dist/core/contexts/reflection.d.cts +51 -3
- package/dist/core/contexts/reflection.d.mts +51 -3
- package/dist/core/contexts/reflection.mjs +58 -1
- package/dist/core/index.cjs +21 -22
- package/dist/core/index.d.cts +5 -10
- package/dist/core/index.d.mts +7 -10
- package/dist/core/index.mjs +7 -8
- package/dist/deepkit/src/vendor/type.d.cts +7 -0
- package/dist/deepkit/src/vendor/type.d.mts +7 -0
- package/dist/helpers/capnp.cjs +276 -19
- package/dist/helpers/capnp.d.cts +86 -2
- package/dist/helpers/capnp.d.mts +86 -2
- package/dist/helpers/capnp.mjs +257 -2
- package/dist/helpers/create-builtin.cjs +18 -2
- package/dist/helpers/create-builtin.d.cts +14 -1
- package/dist/helpers/create-builtin.d.mts +14 -1
- package/dist/helpers/create-builtin.mjs +16 -1
- package/dist/helpers/index.cjs +23 -25
- package/dist/helpers/index.d.cts +4 -6
- package/dist/helpers/index.d.mts +4 -6
- package/dist/helpers/index.mjs +4 -6
- package/dist/helpers/refkey.cjs +15 -2
- package/dist/helpers/refkey.d.cts +12 -1
- package/dist/helpers/refkey.d.mts +12 -1
- package/dist/helpers/refkey.mjs +13 -1
- package/dist/helpers/typescript.cjs +45 -3
- package/dist/helpers/typescript.d.cts +24 -1
- package/dist/helpers/typescript.d.mts +24 -1
- package/dist/helpers/typescript.mjs +43 -2
- package/dist/index.cjs +109 -118
- package/dist/index.d.cts +24 -34
- package/dist/index.d.mts +29 -34
- package/dist/index.mjs +30 -39
- package/dist/markdown/components/index.cjs +7 -12
- package/dist/markdown/components/index.d.cts +2 -7
- package/dist/markdown/components/index.d.mts +2 -7
- package/dist/markdown/components/index.mjs +2 -7
- package/dist/markdown/components/markdown-file.cjs +117 -6
- package/dist/markdown/components/markdown-file.d.cts +22 -4
- package/dist/markdown/components/markdown-file.d.mts +22 -4
- package/dist/markdown/components/markdown-file.mjs +114 -4
- package/dist/markdown/components/markdown-table.cjs +100 -5
- package/dist/markdown/components/markdown-table.d.cts +26 -4
- package/dist/markdown/components/markdown-table.d.mts +26 -4
- package/dist/markdown/components/markdown-table.mjs +96 -2
- package/dist/markdown/contexts/index.cjs +5 -6
- package/dist/markdown/contexts/index.d.cts +1 -2
- package/dist/markdown/contexts/index.d.mts +1 -2
- package/dist/markdown/contexts/index.mjs +1 -2
- package/dist/markdown/contexts/markdown-table.cjs +36 -5
- package/dist/markdown/contexts/markdown-table.d.cts +36 -1
- package/dist/markdown/contexts/markdown-table.d.mts +36 -1
- package/dist/markdown/contexts/markdown-table.mjs +31 -1
- package/dist/markdown/index.cjs +14 -18
- package/dist/markdown/index.d.cts +3 -9
- package/dist/markdown/index.d.mts +5 -9
- package/dist/markdown/index.mjs +5 -9
- package/dist/powerlines/src/types/babel.d.mts +2 -0
- package/dist/powerlines/src/types/build.d.cts +145 -0
- package/dist/powerlines/src/types/build.d.mts +145 -0
- package/dist/powerlines/src/types/commands.d.cts +8 -0
- package/dist/powerlines/src/types/commands.d.mts +9 -0
- package/dist/powerlines/src/types/config.d.cts +357 -0
- package/dist/powerlines/src/types/config.d.mts +357 -0
- package/dist/powerlines/src/types/context.d.cts +362 -0
- package/dist/powerlines/src/types/context.d.mts +364 -0
- package/dist/powerlines/src/types/fs.d.cts +458 -0
- package/dist/powerlines/src/types/fs.d.mts +458 -0
- package/dist/powerlines/src/types/hooks.d.mts +2 -0
- package/dist/powerlines/src/types/plugin.d.cts +231 -0
- package/dist/powerlines/src/types/plugin.d.mts +231 -0
- package/dist/powerlines/src/types/resolved.d.cts +81 -0
- package/dist/powerlines/src/types/resolved.d.mts +81 -0
- package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
- package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
- package/dist/types/components.cjs +0 -1
- package/dist/types/components.d.cts +142 -2
- package/dist/types/components.d.mts +142 -2
- package/dist/types/components.mjs +0 -2
- package/dist/types/index.cjs +0 -3
- package/dist/types/index.d.cts +2 -4
- package/dist/types/index.d.mts +2 -4
- package/dist/types/index.mjs +0 -4
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +41 -2
- package/dist/types/plugin.d.mts +41 -2
- package/dist/types/plugin.mjs +0 -2
- package/dist/typescript/components/builtin-file.cjs +43 -8
- package/dist/typescript/components/builtin-file.d.cts +33 -6
- package/dist/typescript/components/builtin-file.d.mts +33 -6
- package/dist/typescript/components/builtin-file.mjs +41 -7
- package/dist/typescript/components/dynamic-import-statement.cjs +24 -2
- package/dist/typescript/components/dynamic-import-statement.d.cts +31 -1
- package/dist/typescript/components/dynamic-import-statement.d.mts +31 -1
- package/dist/typescript/components/dynamic-import-statement.mjs +22 -1
- package/dist/typescript/components/entry-file.cjs +38 -6
- package/dist/typescript/components/entry-file.d.cts +26 -5
- package/dist/typescript/components/entry-file.d.mts +26 -5
- package/dist/typescript/components/entry-file.mjs +35 -5
- package/dist/typescript/components/index.cjs +43 -49
- package/dist/typescript/components/index.d.cts +9 -13
- package/dist/typescript/components/index.d.mts +9 -13
- package/dist/typescript/components/index.mjs +9 -15
- package/dist/typescript/components/record-expression.cjs +11 -2
- package/dist/typescript/components/record-expression.d.cts +11 -1
- package/dist/typescript/components/record-expression.d.mts +11 -1
- package/dist/typescript/components/record-expression.mjs +9 -1
- package/dist/typescript/components/tsdoc-reflection.cjs +172 -8
- package/dist/typescript/components/tsdoc-reflection.d.cts +17 -4
- package/dist/typescript/components/tsdoc-reflection.d.mts +17 -4
- package/dist/typescript/components/tsdoc-reflection.mjs +168 -5
- package/dist/typescript/components/tsdoc.cjs +475 -23
- package/dist/typescript/components/tsdoc.d.cts +151 -3
- package/dist/typescript/components/tsdoc.d.mts +151 -3
- package/dist/typescript/components/tsdoc.mjs +454 -3
- package/dist/typescript/components/typescript-file.cjs +192 -7
- package/dist/typescript/components/typescript-file.d.cts +46 -4
- package/dist/typescript/components/typescript-file.d.mts +46 -4
- package/dist/typescript/components/typescript-file.mjs +188 -4
- package/dist/typescript/components/typescript-interface.cjs +68 -8
- package/dist/typescript/components/typescript-interface.d.cts +24 -3
- package/dist/typescript/components/typescript-interface.d.mts +24 -3
- package/dist/typescript/components/typescript-interface.mjs +65 -6
- package/dist/typescript/components/typescript-object.cjs +124 -8
- package/dist/typescript/components/typescript-object.d.cts +25 -3
- package/dist/typescript/components/typescript-object.d.mts +25 -3
- package/dist/typescript/components/typescript-object.mjs +121 -6
- package/dist/typescript/index.cjs +44 -50
- package/dist/typescript/index.d.cts +9 -14
- package/dist/typescript/index.d.mts +10 -14
- package/dist/typescript/index.mjs +10 -16
- package/package.json +8 -18
- package/dist/builtin-file-BDc5-4_L.mjs +0 -43
- package/dist/builtin-file-CUUY0eVB.d.cts +0 -34
- package/dist/builtin-file-Cey2cJy9.cjs +0 -49
- package/dist/builtin-file-EfQHLZ8F.d.mts +0 -34
- package/dist/capnp-8yVLwAox.cjs +0 -364
- package/dist/capnp-C5d2Z3gP.d.cts +0 -87
- package/dist/capnp-CNythuSw.mjs +0 -267
- package/dist/capnp-DkidugOV.d.mts +0 -87
- package/dist/components-BOkkDhM9.cjs +0 -0
- package/dist/components-BXrpeD8J.cjs +0 -0
- package/dist/components-C3qpgLKV.mjs +0 -1
- package/dist/components-C8Qs2PB0.d.cts +0 -142
- package/dist/components-CBtEhH9k.mjs +0 -1
- package/dist/components-Cj5gaIV0.cjs +0 -0
- package/dist/components-HMVhsFQl.mjs +0 -1
- package/dist/components-I0ydtjfW.cjs +0 -0
- package/dist/components-ajocJcib.mjs +0 -1
- package/dist/components-ixU_ICbr.d.mts +0 -142
- package/dist/context-BApo1nhP.d.mts +0 -26
- package/dist/context-BDGjT3c-.d.cts +0 -26
- package/dist/context-BIduC1bB.cjs +0 -44
- package/dist/context-BsDdxy5g.d.cts +0 -1668
- package/dist/context-Cx38_mgI.mjs +0 -26
- package/dist/context-DXy7MPku.d.mts +0 -1668
- package/dist/contexts-BSRk0whx.cjs +0 -0
- package/dist/contexts-X44bRyOp.mjs +0 -1
- package/dist/contexts-XuEdvZdE.mjs +0 -1
- package/dist/contexts-uXFW3CIa.cjs +0 -0
- package/dist/core-B57eQAue.mjs +0 -1
- package/dist/core-DzEmU6tL.cjs +0 -0
- package/dist/create-builtin-Bpswa0ZT.d.cts +0 -15
- package/dist/create-builtin-CP9mN5P-.mjs +0 -18
- package/dist/create-builtin-_3GNADDt.cjs +0 -24
- package/dist/create-builtin-wEbNOWNw.d.mts +0 -15
- package/dist/dynamic-import-statement-BhY2a13r.d.cts +0 -32
- package/dist/dynamic-import-statement-CWK5I_yt.mjs +0 -24
- package/dist/dynamic-import-statement-D6f1SnIf.d.mts +0 -32
- package/dist/dynamic-import-statement-DVGp5Cvq.cjs +0 -30
- package/dist/entry-file-B46yUHra.d.mts +0 -27
- package/dist/entry-file-DSW6oClr.d.cts +0 -27
- package/dist/entry-file-DijEelFv.cjs +0 -44
- package/dist/entry-file-DtjJPVZY.mjs +0 -37
- package/dist/helpers-BrA1Dy07.mjs +0 -1
- package/dist/helpers-Cten3PJk.cjs +0 -0
- package/dist/index-BINnViIh.d.mts +0 -1
- package/dist/index-BJ8-FA6N.d.cts +0 -1
- package/dist/index-BRJ_6A42.d.mts +0 -1
- package/dist/index-BXpMZvwA.d.cts +0 -1
- package/dist/index-Bi0Yc4v2.d.cts +0 -1
- package/dist/index-BrGZHEgX.d.mts +0 -1
- package/dist/index-BwFl_eS0.d.mts +0 -1
- package/dist/index-C1ihAKnV.d.cts +0 -1
- package/dist/index-CLTQPxoD.d.mts +0 -1
- package/dist/index-CoUVmp_Q.d.mts +0 -1
- package/dist/index-D1aKd2tO.d.cts +0 -1
- package/dist/index-D4d_pZLu.d.cts +0 -1
- package/dist/index-DBGd4WeR.d.mts +0 -1
- package/dist/index-DdxxIAKU.d.cts +0 -1
- package/dist/index-Deol7ZWO.d.mts +0 -1
- package/dist/index-DpEKQcoR.d.cts +0 -1
- package/dist/index-DrZ2Dh-H.d.cts +0 -1
- package/dist/index-MEuojd-r.d.cts +0 -1
- package/dist/index-bHnO4ZKt.d.mts +0 -1
- package/dist/index-lIMqGGJz.d.mts +0 -1
- package/dist/markdown-BTQE0AI9.cjs +0 -0
- package/dist/markdown-DMddlO1y.mjs +0 -1
- package/dist/markdown-file-BVSRcpXO.cjs +0 -128
- package/dist/markdown-file-C72aDdPi.d.cts +0 -23
- package/dist/markdown-file-Clh5iU1_.mjs +0 -116
- package/dist/markdown-file-DIkSXG43.d.mts +0 -23
- package/dist/markdown-table-2qP_4eLk.mjs +0 -33
- package/dist/markdown-table-3trTm6Ef.d.mts +0 -27
- package/dist/markdown-table-B40X-Kp1.cjs +0 -116
- package/dist/markdown-table-BOWM26Kb.cjs +0 -57
- package/dist/markdown-table-CZMEY6IR.d.cts +0 -37
- package/dist/markdown-table-D-YnljE7.mjs +0 -98
- package/dist/markdown-table-ZiuZZY5T.d.cts +0 -27
- package/dist/markdown-table-kFQoqKQt.d.mts +0 -37
- package/dist/output-BKZklKl1.d.mts +0 -18
- package/dist/output-BlHZS50Y.cjs +0 -45
- package/dist/output-BmJnrELo.d.cts +0 -18
- package/dist/output-CNnPjQlW.mjs +0 -39
- package/dist/plugin-DU0K2-Om.mjs +0 -1
- package/dist/plugin-DfBq0RfU.d.cts +0 -40
- package/dist/plugin-Fx-uJ4It.cjs +0 -0
- package/dist/plugin-LknisCLa.d.mts +0 -40
- package/dist/record-expression-BOCZ9iqR.d.mts +0 -12
- package/dist/record-expression-DM_zSqE_.d.cts +0 -12
- package/dist/record-expression-DNVzCKgo.cjs +0 -17
- package/dist/record-expression-DxS_DiPc.mjs +0 -11
- package/dist/refkey-B0XSqdGY.d.mts +0 -13
- package/dist/refkey-B6A9kh_u.cjs +0 -21
- package/dist/refkey-CP7MJMac.d.cts +0 -13
- package/dist/refkey-CV0mIj0Y.mjs +0 -15
- package/dist/reflection-BSbFFYZO.cjs +0 -108
- package/dist/reflection-CBMQ1FQo.mjs +0 -60
- package/dist/reflection-CL_Lrq2o.d.cts +0 -52
- package/dist/reflection-DLJST1Z7.d.mts +0 -52
- package/dist/single-line-comment-Biwa95Py.mjs +0 -21
- package/dist/single-line-comment-CYYKKXc2.d.cts +0 -22
- package/dist/single-line-comment-DGby6ABI.d.mts +0 -22
- package/dist/single-line-comment-DvU69OGj.cjs +0 -27
- package/dist/source-file-B2MkzzGR.d.mts +0 -31
- package/dist/source-file-BrxGhMOh.d.cts +0 -31
- package/dist/source-file-DK_nFwAK.cjs +0 -63
- package/dist/source-file-Dna2E0ro.mjs +0 -56
- package/dist/tsdoc-B0TNs3dK.cjs +0 -576
- package/dist/tsdoc-CK6J_ap5.d.cts +0 -152
- package/dist/tsdoc-QH5nHvck.d.mts +0 -152
- package/dist/tsdoc-XXdq_9iS.mjs +0 -456
- package/dist/tsdoc-reflection-BOvlOXzR.d.cts +0 -18
- package/dist/tsdoc-reflection-Bhk9KvVe.d.mts +0 -18
- package/dist/tsdoc-reflection-BizVi_gn.cjs +0 -188
- package/dist/tsdoc-reflection-IWtPMJjw.mjs +0 -170
- package/dist/types-BBEDEYnP.cjs +0 -0
- package/dist/types-BWlfXHs2.mjs +0 -1
- package/dist/typescript-45caIUPa.mjs +0 -1
- package/dist/typescript-BrZsJqvc.mjs +0 -45
- package/dist/typescript-CXP7Oa6_.d.cts +0 -25
- package/dist/typescript-DG1-qdBQ.d.mts +0 -25
- package/dist/typescript-DV5akLQO.cjs +0 -0
- package/dist/typescript-DcqKlMoH.cjs +0 -51
- package/dist/typescript-file-BK8Ohw9s.d.cts +0 -47
- package/dist/typescript-file-CFNjXsdz.d.mts +0 -47
- package/dist/typescript-file-CLL-ELi0.mjs +0 -190
- package/dist/typescript-file-HsAUWnQY.cjs +0 -208
- package/dist/typescript-interface-CVB4juPk.d.cts +0 -25
- package/dist/typescript-interface-DwHJ9in_.cjs +0 -79
- package/dist/typescript-interface-FVDsEsu0.mjs +0 -67
- package/dist/typescript-interface-XIwwFVdf.d.mts +0 -25
- package/dist/typescript-object-BPZlvCrZ.d.cts +0 -26
- package/dist/typescript-object-BTawaBJa.d.mts +0 -26
- package/dist/typescript-object-D8MHeFId.cjs +0 -135
- package/dist/typescript-object-Ju07nQg9.mjs +0 -123
- package/dist/utilities-CnaPrauh.mjs +0 -109
- package/dist/utilities-llRqOC4l.cjs +0 -133
|
@@ -1,4 +1,45 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
1
|
+
import { stringifyValue } from "@powerlines/deepkit/utilities";
|
|
2
|
+
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
|
3
|
+
import { titleCase } from "@stryke/string-format/title-case";
|
|
4
|
+
import { camelCase } from "@stryke/string-format/camel-case";
|
|
3
5
|
|
|
6
|
+
//#region src/helpers/typescript.ts
|
|
7
|
+
/**
|
|
8
|
+
* Generates a TypeScript object for the given reflection class.
|
|
9
|
+
*
|
|
10
|
+
* @param reflection - The reflection class to generate the object for.
|
|
11
|
+
* @param options - Options for generating the object.
|
|
12
|
+
* @returns A string containing the TypeScript object definition.
|
|
13
|
+
*/
|
|
14
|
+
function generateTypeScriptObject(reflection, options = {}) {
|
|
15
|
+
if (!reflection) return "";
|
|
16
|
+
return `
|
|
17
|
+
/**
|
|
18
|
+
* ${reflection.getDescription() || `${titleCase(options.overrideName || reflection.getClassName() || reflection.getName())} object instance`}.
|
|
19
|
+
*/
|
|
20
|
+
export const ${camelCase(options.overrideName || reflection.getName())}${options.overrideExtends !== false && (options.overrideExtends || reflection.getSuperReflectionClass()?.getName()) ? `: ${options.overrideExtends || reflection.getSuperReflectionClass()?.getName()}` : ""} = {
|
|
21
|
+
${reflection.getProperties().filter((item) => !item.isIgnored() && !isUndefined(options.defaultValues?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
|
|
22
|
+
if (isUndefined(ret) && !isUndefined(options.defaultValues?.[alias])) return options.defaultValues?.[alias];
|
|
23
|
+
return ret;
|
|
24
|
+
}, void 0) ?? item.getDefaultValue())).sort((a, b) => a.isReadonly() && b.isReadonly() || !a.isReadonly() && !b.isReadonly() ? a.getNameAsString().localeCompare(b.getNameAsString()) : a.isReadonly() ? 1 : -1).map((item) => ` /**
|
|
25
|
+
* ${item.getDescription() || item.getTitle() || titleCase(item.getNameAsString())}
|
|
26
|
+
*
|
|
27
|
+
* @title ${item.getTitle() || titleCase(item.getNameAsString())}${item.getAlias().length ? `
|
|
28
|
+
${item.getAlias().map((alias) => ` * @alias ${alias}`).join("\n")}` : ""}${item.getDomain() ? `
|
|
29
|
+
* @domain ${item.getDomain()}` : ""}${item.getPermission().length ? `
|
|
30
|
+
${item.getPermission().map((permission) => ` * @permission ${permission}`).join("\n")}` : ""}${item.isInternal() ? `
|
|
31
|
+
* @internal` : ""}${item.isReadonly() ? `
|
|
32
|
+
* @readonly` : ""}${item.isIgnored() ? `
|
|
33
|
+
* @ignored` : ""}${item.isHidden() ? `
|
|
34
|
+
* @hidden` : ""}
|
|
35
|
+
*/
|
|
36
|
+
${item.getNameAsString()}: ${stringifyValue(item.getType(), options.defaultValues?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
|
|
37
|
+
if (isUndefined(ret) && !isUndefined(options.defaultValues?.[alias])) return options.defaultValues?.[alias];
|
|
38
|
+
return ret;
|
|
39
|
+
}, void 0) ?? item.getDefaultValue())}`).join(", \n")}
|
|
40
|
+
};
|
|
41
|
+
`;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
4
45
|
export { generateTypeScriptObject };
|
package/dist/index.cjs
CHANGED
|
@@ -1,47 +1,38 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const
|
|
3
|
-
require('./
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
require('./components-
|
|
18
|
-
require('./
|
|
19
|
-
require('./
|
|
20
|
-
require('./
|
|
21
|
-
require('./
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
require('./
|
|
26
|
-
require('./
|
|
27
|
-
require('./
|
|
28
|
-
const require_typescript$1 = require('./typescript-DcqKlMoH.cjs');
|
|
29
|
-
const require_refkey = require('./refkey-B6A9kh_u.cjs');
|
|
30
|
-
const require_capnp = require('./capnp-8yVLwAox.cjs');
|
|
31
|
-
const require_create_builtin = require('./create-builtin-_3GNADDt.cjs');
|
|
32
|
-
require('./helpers-Cten3PJk.cjs');
|
|
33
|
-
const require_output = require('./output-BlHZS50Y.cjs');
|
|
34
|
-
require('./components-Cj5gaIV0.cjs');
|
|
35
|
-
require('./contexts-uXFW3CIa.cjs');
|
|
36
|
-
require('./core-DzEmU6tL.cjs');
|
|
2
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
+
const require_core_contexts_context = require('./core/contexts/context.cjs');
|
|
4
|
+
const require_typescript_components_tsdoc = require('./typescript/components/tsdoc.cjs');
|
|
5
|
+
const require_core_components_single_line_comment = require('./core/components/single-line-comment.cjs');
|
|
6
|
+
const require_core_components_source_file = require('./core/components/source-file.cjs');
|
|
7
|
+
const require_typescript_components_typescript_file = require('./typescript/components/typescript-file.cjs');
|
|
8
|
+
const require_typescript_components_builtin_file = require('./typescript/components/builtin-file.cjs');
|
|
9
|
+
const require_typescript_components_dynamic_import_statement = require('./typescript/components/dynamic-import-statement.cjs');
|
|
10
|
+
const require_typescript_components_entry_file = require('./typescript/components/entry-file.cjs');
|
|
11
|
+
const require_typescript_components_record_expression = require('./typescript/components/record-expression.cjs');
|
|
12
|
+
const require_core_contexts_reflection = require('./core/contexts/reflection.cjs');
|
|
13
|
+
const require_typescript_components_tsdoc_reflection = require('./typescript/components/tsdoc-reflection.cjs');
|
|
14
|
+
const require_typescript_components_typescript_interface = require('./typescript/components/typescript-interface.cjs');
|
|
15
|
+
const require_typescript_components_typescript_object = require('./typescript/components/typescript-object.cjs');
|
|
16
|
+
require('./typescript/index.cjs');
|
|
17
|
+
const require_markdown_components_markdown_file = require('./markdown/components/markdown-file.cjs');
|
|
18
|
+
const require_markdown_contexts_markdown_table = require('./markdown/contexts/markdown-table.cjs');
|
|
19
|
+
const require_markdown_components_markdown_table = require('./markdown/components/markdown-table.cjs');
|
|
20
|
+
require('./markdown/index.cjs');
|
|
21
|
+
const require_helpers_typescript = require('./helpers/typescript.cjs');
|
|
22
|
+
const require_helpers_refkey = require('./helpers/refkey.cjs');
|
|
23
|
+
const require_helpers_capnp = require('./helpers/capnp.cjs');
|
|
24
|
+
const require_helpers_create_builtin = require('./helpers/create-builtin.cjs');
|
|
25
|
+
require('./helpers/index.cjs');
|
|
26
|
+
const require_core_components_output = require('./core/components/output.cjs');
|
|
27
|
+
require('./core/index.cjs');
|
|
37
28
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
38
29
|
let __alloy_js_core = require("@alloy-js/core");
|
|
39
|
-
let __stryke_json_storm_json = require("@stryke/json/storm-json");
|
|
40
30
|
let __stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
41
31
|
let __stryke_path_replace = require("@stryke/path/replace");
|
|
42
32
|
let __alloy_js_rollup_plugin = require("@alloy-js/rollup-plugin");
|
|
43
|
-
__alloy_js_rollup_plugin =
|
|
33
|
+
__alloy_js_rollup_plugin = require_rolldown_runtime.__toESM(__alloy_js_rollup_plugin);
|
|
44
34
|
let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
|
|
35
|
+
let __stryke_json_storm_json = require("@stryke/json/storm-json");
|
|
45
36
|
let __stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
|
|
46
37
|
let prettier_doc_js = require("prettier/doc.js");
|
|
47
38
|
|
|
@@ -78,10 +69,10 @@ const plugin = (options = {}) => {
|
|
|
78
69
|
if (this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !== "@alloy-js/core") this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource = "@alloy-js/core";
|
|
79
70
|
await this.fs.write(this.tsconfig.tsconfigFilePath, __stryke_json_storm_json.StormJSON.stringify(this.tsconfig.tsconfigJson));
|
|
80
71
|
}
|
|
81
|
-
this.
|
|
82
|
-
if (this.config.alloy?.typescript !== false) this.
|
|
83
|
-
if (this.config.alloy?.json === true) this.
|
|
84
|
-
if (this.config.alloy?.markdown === true) this.
|
|
72
|
+
this.dependencies["@alloy-js/core"] = "^0.22.0";
|
|
73
|
+
if (this.config.alloy?.typescript !== false) this.dependencies["@alloy-js/typescript"] = "^0.22.0";
|
|
74
|
+
if (this.config.alloy?.json === true) this.dependencies["@alloy-js/json"] = "^0.22.0";
|
|
75
|
+
if (this.config.alloy?.markdown === true) this.dependencies["@alloy-js/markdown"] = "^0.22.0";
|
|
85
76
|
}
|
|
86
77
|
}, {
|
|
87
78
|
name: "alloy:update-context",
|
|
@@ -90,7 +81,7 @@ const plugin = (options = {}) => {
|
|
|
90
81
|
async handler() {
|
|
91
82
|
this.render = async (children) => {
|
|
92
83
|
const _self$ = this;
|
|
93
|
-
const tree = (0, __alloy_js_core.renderTree)((0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
84
|
+
const tree = (0, __alloy_js_core.renderTree)((0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_output.Output, {
|
|
94
85
|
context: _self$,
|
|
95
86
|
get basePath() {
|
|
96
87
|
return _self$.workspaceConfig.workspaceRoot;
|
|
@@ -212,81 +203,81 @@ function printTreeWorker(tree) {
|
|
|
212
203
|
}
|
|
213
204
|
|
|
214
205
|
//#endregion
|
|
215
|
-
exports.BuiltinFile =
|
|
216
|
-
exports.DynamicImportStatement =
|
|
217
|
-
exports.EntryFile =
|
|
218
|
-
exports.LARGE_BUFFER =
|
|
219
|
-
exports.MarkdownFile =
|
|
220
|
-
exports.MarkdownFileHeader =
|
|
221
|
-
exports.MarkdownTable =
|
|
222
|
-
exports.MarkdownTableColumn =
|
|
223
|
-
exports.MarkdownTableColumnContext =
|
|
224
|
-
exports.MarkdownTableColumnHeader =
|
|
225
|
-
exports.MarkdownTableContext =
|
|
226
|
-
exports.Output =
|
|
227
|
-
exports.PowerlinesContext =
|
|
228
|
-
exports.RecordExpression =
|
|
229
|
-
exports.ReflectionClassContext =
|
|
230
|
-
exports.ReflectionMethodContext =
|
|
231
|
-
exports.ReflectionParameterContext =
|
|
232
|
-
exports.ReflectionPropertyContext =
|
|
233
|
-
exports.SingleLineComment =
|
|
234
|
-
exports.SourceFile =
|
|
235
|
-
exports.TSDoc =
|
|
236
|
-
exports.TSDocAlias =
|
|
237
|
-
exports.TSDocAttributesTags =
|
|
238
|
-
exports.TSDocDefaultValue =
|
|
239
|
-
exports.TSDocDomain =
|
|
240
|
-
exports.TSDocExample =
|
|
241
|
-
exports.TSDocHidden =
|
|
242
|
-
exports.TSDocIgnore =
|
|
243
|
-
exports.TSDocInternal =
|
|
244
|
-
exports.TSDocLink =
|
|
245
|
-
exports.TSDocModule =
|
|
246
|
-
exports.TSDocParam =
|
|
247
|
-
exports.TSDocParams =
|
|
248
|
-
exports.TSDocPermission =
|
|
249
|
-
exports.TSDocReadonly =
|
|
250
|
-
exports.TSDocReflectionClass =
|
|
251
|
-
exports.TSDocReflectionMethod =
|
|
252
|
-
exports.TSDocReflectionProperty =
|
|
253
|
-
exports.TSDocRemarks =
|
|
254
|
-
exports.TSDocReturns =
|
|
255
|
-
exports.TSDocTag =
|
|
256
|
-
exports.TSDocThrows =
|
|
257
|
-
exports.TSDocTitle =
|
|
258
|
-
exports.TypeScriptInterface =
|
|
259
|
-
exports.TypescriptFile =
|
|
260
|
-
exports.TypescriptFileHeader =
|
|
261
|
-
exports.TypescriptFileHeaderImports =
|
|
262
|
-
exports.TypescriptInterfaceProperty =
|
|
263
|
-
exports.TypescriptObject =
|
|
264
|
-
exports.TypescriptObjectProperty =
|
|
265
|
-
exports.compile =
|
|
266
|
-
exports.createBuiltin =
|
|
206
|
+
exports.BuiltinFile = require_typescript_components_builtin_file.BuiltinFile;
|
|
207
|
+
exports.DynamicImportStatement = require_typescript_components_dynamic_import_statement.DynamicImportStatement;
|
|
208
|
+
exports.EntryFile = require_typescript_components_entry_file.EntryFile;
|
|
209
|
+
exports.LARGE_BUFFER = require_helpers_capnp.LARGE_BUFFER;
|
|
210
|
+
exports.MarkdownFile = require_markdown_components_markdown_file.MarkdownFile;
|
|
211
|
+
exports.MarkdownFileHeader = require_markdown_components_markdown_file.MarkdownFileHeader;
|
|
212
|
+
exports.MarkdownTable = require_markdown_components_markdown_table.MarkdownTable;
|
|
213
|
+
exports.MarkdownTableColumn = require_markdown_components_markdown_table.MarkdownTableColumn;
|
|
214
|
+
exports.MarkdownTableColumnContext = require_markdown_contexts_markdown_table.MarkdownTableColumnContext;
|
|
215
|
+
exports.MarkdownTableColumnHeader = require_markdown_components_markdown_table.MarkdownTableColumnHeader;
|
|
216
|
+
exports.MarkdownTableContext = require_markdown_contexts_markdown_table.MarkdownTableContext;
|
|
217
|
+
exports.Output = require_core_components_output.Output;
|
|
218
|
+
exports.PowerlinesContext = require_core_contexts_context.PowerlinesContext;
|
|
219
|
+
exports.RecordExpression = require_typescript_components_record_expression.RecordExpression;
|
|
220
|
+
exports.ReflectionClassContext = require_core_contexts_reflection.ReflectionClassContext;
|
|
221
|
+
exports.ReflectionMethodContext = require_core_contexts_reflection.ReflectionMethodContext;
|
|
222
|
+
exports.ReflectionParameterContext = require_core_contexts_reflection.ReflectionParameterContext;
|
|
223
|
+
exports.ReflectionPropertyContext = require_core_contexts_reflection.ReflectionPropertyContext;
|
|
224
|
+
exports.SingleLineComment = require_core_components_single_line_comment.SingleLineComment;
|
|
225
|
+
exports.SourceFile = require_core_components_source_file.SourceFile;
|
|
226
|
+
exports.TSDoc = require_typescript_components_tsdoc.TSDoc;
|
|
227
|
+
exports.TSDocAlias = require_typescript_components_tsdoc.TSDocAlias;
|
|
228
|
+
exports.TSDocAttributesTags = require_typescript_components_tsdoc.TSDocAttributesTags;
|
|
229
|
+
exports.TSDocDefaultValue = require_typescript_components_tsdoc.TSDocDefaultValue;
|
|
230
|
+
exports.TSDocDomain = require_typescript_components_tsdoc.TSDocDomain;
|
|
231
|
+
exports.TSDocExample = require_typescript_components_tsdoc.TSDocExample;
|
|
232
|
+
exports.TSDocHidden = require_typescript_components_tsdoc.TSDocHidden;
|
|
233
|
+
exports.TSDocIgnore = require_typescript_components_tsdoc.TSDocIgnore;
|
|
234
|
+
exports.TSDocInternal = require_typescript_components_tsdoc.TSDocInternal;
|
|
235
|
+
exports.TSDocLink = require_typescript_components_tsdoc.TSDocLink;
|
|
236
|
+
exports.TSDocModule = require_typescript_components_tsdoc.TSDocModule;
|
|
237
|
+
exports.TSDocParam = require_typescript_components_tsdoc.TSDocParam;
|
|
238
|
+
exports.TSDocParams = require_typescript_components_tsdoc.TSDocParams;
|
|
239
|
+
exports.TSDocPermission = require_typescript_components_tsdoc.TSDocPermission;
|
|
240
|
+
exports.TSDocReadonly = require_typescript_components_tsdoc.TSDocReadonly;
|
|
241
|
+
exports.TSDocReflectionClass = require_typescript_components_tsdoc_reflection.TSDocReflectionClass;
|
|
242
|
+
exports.TSDocReflectionMethod = require_typescript_components_tsdoc_reflection.TSDocReflectionMethod;
|
|
243
|
+
exports.TSDocReflectionProperty = require_typescript_components_tsdoc_reflection.TSDocReflectionProperty;
|
|
244
|
+
exports.TSDocRemarks = require_typescript_components_tsdoc.TSDocRemarks;
|
|
245
|
+
exports.TSDocReturns = require_typescript_components_tsdoc.TSDocReturns;
|
|
246
|
+
exports.TSDocTag = require_typescript_components_tsdoc.TSDocTag;
|
|
247
|
+
exports.TSDocThrows = require_typescript_components_tsdoc.TSDocThrows;
|
|
248
|
+
exports.TSDocTitle = require_typescript_components_tsdoc.TSDocTitle;
|
|
249
|
+
exports.TypeScriptInterface = require_typescript_components_typescript_interface.TypeScriptInterface;
|
|
250
|
+
exports.TypescriptFile = require_typescript_components_typescript_file.TypescriptFile;
|
|
251
|
+
exports.TypescriptFileHeader = require_typescript_components_typescript_file.TypescriptFileHeader;
|
|
252
|
+
exports.TypescriptFileHeaderImports = require_typescript_components_typescript_file.TypescriptFileHeaderImports;
|
|
253
|
+
exports.TypescriptInterfaceProperty = require_typescript_components_typescript_interface.TypescriptInterfaceProperty;
|
|
254
|
+
exports.TypescriptObject = require_typescript_components_typescript_object.TypescriptObject;
|
|
255
|
+
exports.TypescriptObjectProperty = require_typescript_components_typescript_object.TypescriptObjectProperty;
|
|
256
|
+
exports.compile = require_helpers_capnp.compile;
|
|
257
|
+
exports.createBuiltin = require_helpers_create_builtin.createBuiltin;
|
|
267
258
|
exports.default = src_default;
|
|
268
|
-
exports.generateCapnp =
|
|
269
|
-
exports.generateCapnpEnumSchema =
|
|
270
|
-
exports.generateCapnpId =
|
|
271
|
-
exports.generateCapnpInterface =
|
|
272
|
-
exports.generateCapnpMethodSchema =
|
|
273
|
-
exports.generateCapnpPrimitive =
|
|
274
|
-
exports.generateCapnpSchema =
|
|
275
|
-
exports.generateCapnpStruct =
|
|
276
|
-
exports.generateTypeScriptObject =
|
|
277
|
-
exports.getCapnpEnumTypes =
|
|
278
|
-
exports.getCapnpUnionTypes =
|
|
279
|
-
exports.isCapnpStringUnion =
|
|
280
|
-
exports.isVoidType =
|
|
259
|
+
exports.generateCapnp = require_helpers_capnp.generateCapnp;
|
|
260
|
+
exports.generateCapnpEnumSchema = require_helpers_capnp.generateCapnpEnumSchema;
|
|
261
|
+
exports.generateCapnpId = require_helpers_capnp.generateCapnpId;
|
|
262
|
+
exports.generateCapnpInterface = require_helpers_capnp.generateCapnpInterface;
|
|
263
|
+
exports.generateCapnpMethodSchema = require_helpers_capnp.generateCapnpMethodSchema;
|
|
264
|
+
exports.generateCapnpPrimitive = require_helpers_capnp.generateCapnpPrimitive;
|
|
265
|
+
exports.generateCapnpSchema = require_helpers_capnp.generateCapnpSchema;
|
|
266
|
+
exports.generateCapnpStruct = require_helpers_capnp.generateCapnpStruct;
|
|
267
|
+
exports.generateTypeScriptObject = require_helpers_typescript.generateTypeScriptObject;
|
|
268
|
+
exports.getCapnpEnumTypes = require_helpers_capnp.getCapnpEnumTypes;
|
|
269
|
+
exports.getCapnpUnionTypes = require_helpers_capnp.getCapnpUnionTypes;
|
|
270
|
+
exports.isCapnpStringUnion = require_helpers_capnp.isCapnpStringUnion;
|
|
271
|
+
exports.isVoidType = require_helpers_capnp.isVoidType;
|
|
281
272
|
exports.plugin = plugin;
|
|
282
|
-
exports.refkey =
|
|
283
|
-
exports.stringifyCapnpDefaultValue =
|
|
284
|
-
exports.stringifyCapnpValue =
|
|
285
|
-
exports.useMarkdownTable =
|
|
286
|
-
exports.useMarkdownTableColumn =
|
|
287
|
-
exports.usePowerlines =
|
|
288
|
-
exports.usePowerlinesContext =
|
|
289
|
-
exports.useReflectionClass =
|
|
290
|
-
exports.useReflectionMethod =
|
|
291
|
-
exports.useReflectionParameter =
|
|
292
|
-
exports.useReflectionProperty =
|
|
273
|
+
exports.refkey = require_helpers_refkey.refkey;
|
|
274
|
+
exports.stringifyCapnpDefaultValue = require_helpers_capnp.stringifyCapnpDefaultValue;
|
|
275
|
+
exports.stringifyCapnpValue = require_helpers_capnp.stringifyCapnpValue;
|
|
276
|
+
exports.useMarkdownTable = require_markdown_contexts_markdown_table.useMarkdownTable;
|
|
277
|
+
exports.useMarkdownTableColumn = require_markdown_contexts_markdown_table.useMarkdownTableColumn;
|
|
278
|
+
exports.usePowerlines = require_core_contexts_context.usePowerlines;
|
|
279
|
+
exports.usePowerlinesContext = require_core_contexts_context.usePowerlinesContext;
|
|
280
|
+
exports.useReflectionClass = require_core_contexts_reflection.useReflectionClass;
|
|
281
|
+
exports.useReflectionMethod = require_core_contexts_reflection.useReflectionMethod;
|
|
282
|
+
exports.useReflectionParameter = require_core_contexts_reflection.useReflectionParameter;
|
|
283
|
+
exports.useReflectionProperty = require_core_contexts_reflection.useReflectionProperty;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,37 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import "./
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
24
|
-
import {
|
|
25
|
-
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";
|
|
26
|
-
import { n as BuiltinFileProps, r as __ΩBuiltinFileProps, t as BuiltinFile } from "./builtin-file-CUUY0eVB.cjs";
|
|
27
|
-
import { n as DynamicImportStatementProps, r as __ΩDynamicImportStatementProps, t as DynamicImportStatement } from "./dynamic-import-statement-BhY2a13r.cjs";
|
|
28
|
-
import { n as EntryFileProps, r as __ΩEntryFileProps, t as EntryFile } from "./entry-file-DSW6oClr.cjs";
|
|
29
|
-
import { n as RecordExpressionProps, r as __ΩRecordExpressionProps, t as RecordExpression } from "./record-expression-DM_zSqE_.cjs";
|
|
30
|
-
import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "./tsdoc-reflection-BOvlOXzR.cjs";
|
|
31
|
-
import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "./typescript-interface-CVB4juPk.cjs";
|
|
32
|
-
import { a as __ΩTypescriptObjectPropertyProps, i as TypescriptObjectProps, n as TypescriptObjectProperty, o as __ΩTypescriptObjectProps, r as TypescriptObjectPropertyProps, t as TypescriptObject } from "./typescript-object-BPZlvCrZ.cjs";
|
|
33
|
-
import "./index-D4d_pZLu.cjs";
|
|
34
|
-
import "./index-MEuojd-r.cjs";
|
|
1
|
+
import { Plugin } from "./powerlines/src/types/plugin.cjs";
|
|
2
|
+
import { Output, OutputProps, __ΩOutputProps } from "./core/components/output.cjs";
|
|
3
|
+
import { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImports, __ΩWriteOutputFile } from "./types/components.cjs";
|
|
4
|
+
import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./core/components/single-line-comment.cjs";
|
|
5
|
+
import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./core/components/source-file.cjs";
|
|
6
|
+
import { PowerlinesContext, PowerlinesContextInterface, __ΩPowerlinesContextInterface, usePowerlines, usePowerlinesContext } from "./core/contexts/context.cjs";
|
|
7
|
+
import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./core/contexts/reflection.cjs";
|
|
8
|
+
import { GenerateCapnpOptions, GenerateCapnpStructOptions, IOType, LARGE_BUFFER, StdioOptions, __ΩGenerateCapnpOptions, __ΩGenerateCapnpStructOptions, __ΩIOType, __ΩStdioOptions, compile, generateCapnp, generateCapnpEnumSchema, generateCapnpId, generateCapnpInterface, generateCapnpMethodSchema, generateCapnpPrimitive, generateCapnpSchema, generateCapnpStruct, getCapnpEnumTypes, getCapnpUnionTypes, isCapnpStringUnion, isVoidType, stringifyCapnpDefaultValue, stringifyCapnpValue } from "./helpers/capnp.cjs";
|
|
9
|
+
import { CreateBuiltinOptions, __ΩCreateBuiltinOptions, createBuiltin } from "./helpers/create-builtin.cjs";
|
|
10
|
+
import { refkey } from "./helpers/refkey.cjs";
|
|
11
|
+
import { GenerateTypeScriptInterfaceOptions, GenerateTypeScriptObjectOptions, __ΩGenerateTypeScriptInterfaceOptions, __ΩGenerateTypeScriptObjectOptions, generateTypeScriptObject } from "./helpers/typescript.cjs";
|
|
12
|
+
import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, __ΩAlloyPluginContext, __ΩAlloyPluginOptions, __ΩAlloyPluginResolvedConfig, __ΩAlloyPluginUserConfig } from "./types/plugin.cjs";
|
|
13
|
+
import { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps } from "./markdown/components/markdown-file.cjs";
|
|
14
|
+
import { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn } from "./markdown/contexts/markdown-table.cjs";
|
|
15
|
+
import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps } from "./markdown/components/markdown-table.cjs";
|
|
16
|
+
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps } from "./typescript/components/tsdoc.cjs";
|
|
17
|
+
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps } from "./typescript/components/typescript-file.cjs";
|
|
18
|
+
import { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps } from "./typescript/components/builtin-file.cjs";
|
|
19
|
+
import { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./typescript/components/dynamic-import-statement.cjs";
|
|
20
|
+
import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./typescript/components/entry-file.cjs";
|
|
21
|
+
import { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps } from "./typescript/components/record-expression.cjs";
|
|
22
|
+
import { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./typescript/components/tsdoc-reflection.cjs";
|
|
23
|
+
import { TypeScriptInterface, TypeScriptInterfaceProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptInterfacePropertyProps } from "./typescript/components/typescript-interface.cjs";
|
|
24
|
+
import { TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps } from "./typescript/components/typescript-object.cjs";
|
|
35
25
|
|
|
36
26
|
//#region src/index.d.ts
|
|
37
27
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -1,37 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import "./
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import
|
|
30
|
-
import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "./tsdoc-reflection-Bhk9KvVe.mjs";
|
|
31
|
-
import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "./typescript-interface-XIwwFVdf.mjs";
|
|
32
|
-
import { a as __ΩTypescriptObjectPropertyProps, i as TypescriptObjectProps, n as TypescriptObjectProperty, o as __ΩTypescriptObjectProps, r as TypescriptObjectPropertyProps, t as TypescriptObject } from "./typescript-object-BTawaBJa.mjs";
|
|
33
|
-
import "./index-CLTQPxoD.mjs";
|
|
34
|
-
import "./index-BRJ_6A42.mjs";
|
|
1
|
+
import { Plugin } from "./powerlines/src/types/plugin.mjs";
|
|
2
|
+
import { Output, OutputProps, __ΩOutputProps } from "./core/components/output.mjs";
|
|
3
|
+
import { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile, __ΩBuiltinSourceFileContext, __ΩComponentProps, __ΩComponentPropsWithChildren, __ΩCopyFileOutputContext, __ΩCopyOutputFile, __ΩOutputDirectory, __ΩOutputFile, __ΩReflectionOverrideInterface, __ΩRenderBuiltinContext, __ΩRenderContext, __ΩRenderEntryContext, __ΩRenderOutputContext, __ΩSourceFileHeaderProps, __ΩTypescriptFileImportItem, __ΩTypescriptFileImports, __ΩWriteOutputFile } from "./types/components.mjs";
|
|
4
|
+
import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./core/components/single-line-comment.mjs";
|
|
5
|
+
import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./core/components/source-file.mjs";
|
|
6
|
+
import { PowerlinesContext, PowerlinesContextInterface, __ΩPowerlinesContextInterface, usePowerlines, usePowerlinesContext } from "./core/contexts/context.mjs";
|
|
7
|
+
import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./core/contexts/reflection.mjs";
|
|
8
|
+
import "./core/index.mjs";
|
|
9
|
+
import { GenerateCapnpOptions, GenerateCapnpStructOptions, IOType, LARGE_BUFFER, StdioOptions, __ΩGenerateCapnpOptions, __ΩGenerateCapnpStructOptions, __ΩIOType, __ΩStdioOptions, compile, generateCapnp, generateCapnpEnumSchema, generateCapnpId, generateCapnpInterface, generateCapnpMethodSchema, generateCapnpPrimitive, generateCapnpSchema, generateCapnpStruct, getCapnpEnumTypes, getCapnpUnionTypes, isCapnpStringUnion, isVoidType, stringifyCapnpDefaultValue, stringifyCapnpValue } from "./helpers/capnp.mjs";
|
|
10
|
+
import { CreateBuiltinOptions, __ΩCreateBuiltinOptions, createBuiltin } from "./helpers/create-builtin.mjs";
|
|
11
|
+
import { refkey } from "./helpers/refkey.mjs";
|
|
12
|
+
import { GenerateTypeScriptInterfaceOptions, GenerateTypeScriptObjectOptions, __ΩGenerateTypeScriptInterfaceOptions, __ΩGenerateTypeScriptObjectOptions, generateTypeScriptObject } from "./helpers/typescript.mjs";
|
|
13
|
+
import "./helpers/index.mjs";
|
|
14
|
+
import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, __ΩAlloyPluginContext, __ΩAlloyPluginOptions, __ΩAlloyPluginResolvedConfig, __ΩAlloyPluginUserConfig } from "./types/plugin.mjs";
|
|
15
|
+
import { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps } from "./markdown/components/markdown-file.mjs";
|
|
16
|
+
import { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, __ΩMarkdownTableColumnContextInterface, __ΩMarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn } from "./markdown/contexts/markdown-table.mjs";
|
|
17
|
+
import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps } from "./markdown/components/markdown-table.mjs";
|
|
18
|
+
import "./markdown/index.mjs";
|
|
19
|
+
import "./types/index.mjs";
|
|
20
|
+
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps } from "./typescript/components/tsdoc.mjs";
|
|
21
|
+
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps } from "./typescript/components/typescript-file.mjs";
|
|
22
|
+
import { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps } from "./typescript/components/builtin-file.mjs";
|
|
23
|
+
import { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./typescript/components/dynamic-import-statement.mjs";
|
|
24
|
+
import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./typescript/components/entry-file.mjs";
|
|
25
|
+
import { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps } from "./typescript/components/record-expression.mjs";
|
|
26
|
+
import { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./typescript/components/tsdoc-reflection.mjs";
|
|
27
|
+
import { TypeScriptInterface, TypeScriptInterfaceProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptInterfacePropertyProps } from "./typescript/components/typescript-interface.mjs";
|
|
28
|
+
import { TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps } from "./typescript/components/typescript-object.mjs";
|
|
29
|
+
import "./typescript/index.mjs";
|
|
35
30
|
|
|
36
31
|
//#region src/index.d.ts
|
|
37
32
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,44 +1,35 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import "./components-
|
|
16
|
-
import "./
|
|
17
|
-
import "./
|
|
18
|
-
import "./
|
|
19
|
-
import "./
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import "./
|
|
24
|
-
import "./
|
|
25
|
-
import "./
|
|
26
|
-
import { t as generateTypeScriptObject } from "./typescript-BrZsJqvc.mjs";
|
|
27
|
-
import { t as refkey } from "./refkey-CV0mIj0Y.mjs";
|
|
28
|
-
import { a as generateCapnpId, c as generateCapnpPrimitive, d as getCapnpEnumTypes, f as getCapnpUnionTypes, g as stringifyCapnpValue, h as stringifyCapnpDefaultValue, i as generateCapnpEnumSchema, l as generateCapnpSchema, m as isVoidType, n as compile, o as generateCapnpInterface, p as isCapnpStringUnion, r as generateCapnp, s as generateCapnpMethodSchema, t as LARGE_BUFFER, u as generateCapnpStruct } from "./capnp-CNythuSw.mjs";
|
|
29
|
-
import { t as createBuiltin } from "./create-builtin-CP9mN5P-.mjs";
|
|
30
|
-
import "./helpers-BrA1Dy07.mjs";
|
|
31
|
-
import { t as Output } from "./output-CNnPjQlW.mjs";
|
|
32
|
-
import "./components-HMVhsFQl.mjs";
|
|
33
|
-
import "./contexts-XuEdvZdE.mjs";
|
|
34
|
-
import "./core-B57eQAue.mjs";
|
|
1
|
+
import { PowerlinesContext, usePowerlines, usePowerlinesContext } from "./core/contexts/context.mjs";
|
|
2
|
+
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle } from "./typescript/components/tsdoc.mjs";
|
|
3
|
+
import { SingleLineComment } from "./core/components/single-line-comment.mjs";
|
|
4
|
+
import { SourceFile } from "./core/components/source-file.mjs";
|
|
5
|
+
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports } from "./typescript/components/typescript-file.mjs";
|
|
6
|
+
import { BuiltinFile } from "./typescript/components/builtin-file.mjs";
|
|
7
|
+
import { DynamicImportStatement } from "./typescript/components/dynamic-import-statement.mjs";
|
|
8
|
+
import { EntryFile } from "./typescript/components/entry-file.mjs";
|
|
9
|
+
import { RecordExpression } from "./typescript/components/record-expression.mjs";
|
|
10
|
+
import { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./core/contexts/reflection.mjs";
|
|
11
|
+
import { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./typescript/components/tsdoc-reflection.mjs";
|
|
12
|
+
import { TypeScriptInterface, TypescriptInterfaceProperty } from "./typescript/components/typescript-interface.mjs";
|
|
13
|
+
import { TypescriptObject, TypescriptObjectProperty } from "./typescript/components/typescript-object.mjs";
|
|
14
|
+
import "./typescript/index.mjs";
|
|
15
|
+
import { MarkdownFile, MarkdownFileHeader } from "./markdown/components/markdown-file.mjs";
|
|
16
|
+
import { MarkdownTableColumnContext, MarkdownTableContext, useMarkdownTable, useMarkdownTableColumn } from "./markdown/contexts/markdown-table.mjs";
|
|
17
|
+
import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader } from "./markdown/components/markdown-table.mjs";
|
|
18
|
+
import "./markdown/index.mjs";
|
|
19
|
+
import { generateTypeScriptObject } from "./helpers/typescript.mjs";
|
|
20
|
+
import { refkey } from "./helpers/refkey.mjs";
|
|
21
|
+
import { LARGE_BUFFER, compile, generateCapnp, generateCapnpEnumSchema, generateCapnpId, generateCapnpInterface, generateCapnpMethodSchema, generateCapnpPrimitive, generateCapnpSchema, generateCapnpStruct, getCapnpEnumTypes, getCapnpUnionTypes, isCapnpStringUnion, isVoidType, stringifyCapnpDefaultValue, stringifyCapnpValue } from "./helpers/capnp.mjs";
|
|
22
|
+
import { createBuiltin } from "./helpers/create-builtin.mjs";
|
|
23
|
+
import "./helpers/index.mjs";
|
|
24
|
+
import { Output } from "./core/components/output.mjs";
|
|
25
|
+
import "./core/index.mjs";
|
|
35
26
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
36
27
|
import { flushJobsAsync, getContextForRenderNode, isPrintHook, renderTree } from "@alloy-js/core";
|
|
37
|
-
import { StormJSON } from "@stryke/json/storm-json";
|
|
38
28
|
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
39
29
|
import { replacePath } from "@stryke/path/replace";
|
|
40
30
|
import alloy from "@alloy-js/rollup-plugin";
|
|
41
31
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
32
|
+
import { StormJSON } from "@stryke/json/storm-json";
|
|
42
33
|
import { isParentPath } from "@stryke/path/is-parent-path";
|
|
43
34
|
import { printer } from "prettier/doc.js";
|
|
44
35
|
|
|
@@ -75,10 +66,10 @@ const plugin = (options = {}) => {
|
|
|
75
66
|
if (this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !== "@alloy-js/core") this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource = "@alloy-js/core";
|
|
76
67
|
await this.fs.write(this.tsconfig.tsconfigFilePath, StormJSON.stringify(this.tsconfig.tsconfigJson));
|
|
77
68
|
}
|
|
78
|
-
this.
|
|
79
|
-
if (this.config.alloy?.typescript !== false) this.
|
|
80
|
-
if (this.config.alloy?.json === true) this.
|
|
81
|
-
if (this.config.alloy?.markdown === true) this.
|
|
69
|
+
this.dependencies["@alloy-js/core"] = "^0.22.0";
|
|
70
|
+
if (this.config.alloy?.typescript !== false) this.dependencies["@alloy-js/typescript"] = "^0.22.0";
|
|
71
|
+
if (this.config.alloy?.json === true) this.dependencies["@alloy-js/json"] = "^0.22.0";
|
|
72
|
+
if (this.config.alloy?.markdown === true) this.dependencies["@alloy-js/markdown"] = "^0.22.0";
|
|
82
73
|
}
|
|
83
74
|
}, {
|
|
84
75
|
name: "alloy:update-context",
|