@powerlines/plugin-alloy 0.16.0 → 0.16.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-CXkreb3b.mjs +43 -0
- package/dist/builtin-file-D0xcKRt6.cjs +49 -0
- package/dist/builtin-file-Detj4VKO.d.cts +34 -0
- package/dist/builtin-file-Df3B4vGB.d.mts +34 -0
- package/dist/capnp-6EjloHj4.mjs +265 -0
- package/dist/capnp-BHeTs4Ea.d.mts +86 -0
- package/dist/capnp-CirEkAHB.d.cts +86 -0
- package/dist/capnp-DOzEf2mj.cjs +362 -0
- package/dist/{_virtual/rolldown_runtime.cjs → chunk-BwyOHTjC.cjs} +12 -2
- package/dist/components-BrkXdHq-.d.mts +141 -0
- package/dist/components-CH68f_ve.mjs +1 -0
- package/dist/components-CO0xjM8H.mjs +1 -0
- package/dist/components-CnI3Y57d.mjs +1 -0
- package/dist/components-Cvpo9IEL.cjs +0 -0
- package/dist/components-DTkri-mp.cjs +0 -0
- package/dist/components-DkVeQ5Yn.d.cts +141 -0
- package/dist/components-Gg416Czx.cjs +0 -0
- package/dist/components-ZbItRNLr.cjs +0 -0
- package/dist/components-vTvc6Xgc.mjs +1 -0
- package/dist/context-B1Z2ZRAI.d.cts +32 -0
- package/dist/context-BwQLwanm.d.mts +1680 -0
- package/dist/context-CWt70HA3.d.cts +1680 -0
- package/dist/context-DkLnFNZm.cjs +60 -0
- package/dist/context-eP3fitqj.mjs +36 -0
- package/dist/context-x-0aNytc.d.mts +32 -0
- package/dist/contexts-BtxvYUPj.cjs +0 -0
- package/dist/contexts-Dy4nfIoL.mjs +1 -0
- package/dist/contexts-DzdhIC7G.cjs +0 -0
- package/dist/contexts-Q1YIygoz.mjs +1 -0
- package/dist/core/components/index.cjs +8 -6
- package/dist/core/components/index.d.cts +6 -3
- package/dist/core/components/index.d.mts +6 -3
- package/dist/core/components/index.mjs +5 -3
- package/dist/core/components/output.cjs +3 -39
- package/dist/core/components/output.d.cts +2 -17
- package/dist/core/components/output.d.mts +2 -17
- package/dist/core/components/output.mjs +2 -37
- package/dist/core/components/single-line-comment.cjs +2 -21
- package/dist/core/components/single-line-comment.d.cts +3 -21
- package/dist/core/components/single-line-comment.d.mts +3 -21
- package/dist/core/components/single-line-comment.mjs +1 -19
- package/dist/core/components/source-file.cjs +2 -57
- package/dist/core/components/source-file.d.cts +3 -30
- package/dist/core/components/source-file.d.mts +3 -30
- package/dist/core/components/source-file.mjs +1 -54
- package/dist/core/contexts/context.cjs +5 -39
- package/dist/core/contexts/context.d.cts +2 -31
- package/dist/core/contexts/context.d.mts +2 -31
- package/dist/core/contexts/context.mjs +1 -34
- package/dist/core/contexts/index.cjs +15 -14
- package/dist/core/contexts/index.d.cts +5 -2
- package/dist/core/contexts/index.d.mts +5 -2
- package/dist/core/contexts/index.mjs +3 -2
- package/dist/core/contexts/reflection.cjs +9 -67
- package/dist/core/contexts/reflection.d.cts +3 -50
- package/dist/core/contexts/reflection.d.mts +3 -50
- package/dist/core/contexts/reflection.mjs +1 -58
- package/dist/core/index.cjs +22 -22
- package/dist/core/index.d.cts +9 -7
- package/dist/core/index.d.mts +9 -7
- package/dist/core/index.mjs +7 -7
- package/dist/create-builtin-CtBhQRxS.d.mts +15 -0
- package/dist/create-builtin-DgYGwEYD.cjs +24 -0
- package/dist/create-builtin-Dug1rcMQ.mjs +18 -0
- package/dist/create-builtin-SArMbh0-.d.cts +15 -0
- package/dist/dynamic-import-statement-AUDLZGFa.d.cts +32 -0
- package/dist/dynamic-import-statement-BFl4j9Ex.cjs +30 -0
- package/dist/dynamic-import-statement-BjiwPuJ3.d.mts +32 -0
- package/dist/dynamic-import-statement-DYl1f5Mj.mjs +24 -0
- package/dist/entry-file-CQwIaayx.d.mts +27 -0
- package/dist/entry-file-CTYBU7Lg.mjs +37 -0
- package/dist/entry-file-Cq3bZzix.d.cts +27 -0
- package/dist/entry-file-l3ZhaFTI.cjs +44 -0
- package/dist/helpers/capnp.cjs +19 -274
- package/dist/helpers/capnp.d.cts +2 -85
- package/dist/helpers/capnp.d.mts +2 -85
- package/dist/helpers/capnp.mjs +2 -255
- package/dist/helpers/create-builtin.cjs +2 -18
- package/dist/helpers/create-builtin.d.cts +1 -14
- package/dist/helpers/create-builtin.d.mts +1 -14
- package/dist/helpers/create-builtin.mjs +1 -16
- package/dist/helpers/index.cjs +24 -23
- package/dist/helpers/index.d.cts +5 -4
- package/dist/helpers/index.d.mts +5 -4
- package/dist/helpers/index.mjs +5 -4
- package/dist/helpers/refkey.cjs +2 -15
- package/dist/helpers/refkey.d.cts +1 -12
- package/dist/helpers/refkey.d.mts +1 -12
- package/dist/helpers/refkey.mjs +1 -13
- package/dist/helpers/typescript.cjs +3 -45
- package/dist/helpers/typescript.d.cts +1 -22
- package/dist/helpers/typescript.d.mts +1 -22
- package/dist/helpers/typescript.mjs +2 -43
- package/dist/index-Blaks7l8.d.cts +1 -0
- package/dist/index-CuheJfs-.d.mts +1 -0
- package/dist/index-CwSIy_W-.d.cts +1 -0
- package/dist/index-D7UbuJwP.d.mts +1 -0
- package/dist/index-D9XihFV1.d.mts +1 -0
- package/dist/index-DdxxIAKU.d.cts +1 -0
- package/dist/index-DrK1_jKY.d.mts +1 -0
- package/dist/index-DrZ2Dh-H.d.cts +1 -0
- package/dist/index-DztUdPP_.d.mts +1 -0
- package/dist/index-lQ_hGQ08.d.cts +1 -0
- package/dist/index.cjs +22 -10
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +44 -3
- package/dist/markdown/components/index.cjs +12 -7
- package/dist/markdown/components/index.d.cts +7 -2
- package/dist/markdown/components/index.d.mts +7 -2
- package/dist/markdown/components/index.mjs +7 -2
- package/dist/markdown/components/markdown-file.cjs +6 -117
- package/dist/markdown/components/markdown-file.d.cts +4 -22
- package/dist/markdown/components/markdown-file.d.mts +4 -22
- package/dist/markdown/components/markdown-file.mjs +4 -114
- package/dist/markdown/components/markdown-table.cjs +5 -100
- package/dist/markdown/components/markdown-table.d.cts +4 -26
- package/dist/markdown/components/markdown-table.d.mts +4 -26
- package/dist/markdown/components/markdown-table.mjs +2 -96
- package/dist/markdown/contexts/index.cjs +6 -5
- package/dist/markdown/contexts/index.d.cts +2 -1
- package/dist/markdown/contexts/index.d.mts +2 -1
- package/dist/markdown/contexts/index.mjs +2 -1
- package/dist/markdown/contexts/markdown-table.cjs +5 -36
- package/dist/markdown/contexts/markdown-table.d.cts +1 -36
- package/dist/markdown/contexts/markdown-table.d.mts +1 -36
- package/dist/markdown/contexts/markdown-table.mjs +1 -31
- package/dist/markdown/index.cjs +17 -14
- package/dist/markdown/index.d.cts +8 -5
- package/dist/markdown/index.d.mts +8 -5
- package/dist/markdown/index.mjs +8 -5
- package/dist/markdown-file-CTMTrgdr.mjs +116 -0
- package/dist/markdown-file-CuMvfKbi.d.cts +23 -0
- package/dist/markdown-file-DBpOheYg.d.mts +23 -0
- package/dist/markdown-file-GXj9nWQs.cjs +128 -0
- package/dist/markdown-table-AO9Jtw-o.mjs +98 -0
- package/dist/markdown-table-Biapn9k9.cjs +57 -0
- package/dist/markdown-table-CpnCpTp1.d.cts +27 -0
- package/dist/markdown-table-DFnnh_px.d.cts +37 -0
- package/dist/markdown-table-DKL6g91k.d.mts +37 -0
- package/dist/markdown-table-DaYAMMk6.mjs +33 -0
- package/dist/markdown-table-DcG6ScWX.d.mts +27 -0
- package/dist/markdown-table-d1cy0JP3.cjs +116 -0
- package/dist/output-BC2u6xsn.d.cts +18 -0
- package/dist/output-C_BQEAMU.d.mts +18 -0
- package/dist/output-CiQCsyui.cjs +45 -0
- package/dist/output-eQ8RcTrP.mjs +39 -0
- package/dist/plugin-85Hf9k78.mjs +1 -0
- package/dist/plugin-CofWgH_d.cjs +0 -0
- package/dist/plugin-DcrJBDQ2.d.mts +39 -0
- package/dist/plugin-K4ViA72J.d.cts +39 -0
- package/dist/record-expression-B0NGcmBj.mjs +11 -0
- package/dist/record-expression-P1BTu_7B.d.mts +12 -0
- package/dist/record-expression-j-3eBufn.cjs +17 -0
- package/dist/record-expression-rZuoLQWG.d.cts +12 -0
- package/dist/refkey-BRtVxqGW.d.mts +13 -0
- package/dist/refkey-BUzulmmj.cjs +21 -0
- package/dist/refkey-CSq-Ftvf.mjs +15 -0
- package/dist/refkey-DpAkQ3Cu.d.cts +13 -0
- package/dist/reflection-B9zOZEdi.d.mts +51 -0
- package/dist/reflection-BYeP2t8p.d.cts +51 -0
- package/dist/reflection-CKhynTvI.cjs +108 -0
- package/dist/reflection-srixNcX2.mjs +60 -0
- package/dist/single-line-comment-C9Fz5mkM.mjs +21 -0
- package/dist/single-line-comment-DSAVQ0tl.d.cts +22 -0
- package/dist/single-line-comment-DSz_BbMx.d.mts +22 -0
- package/dist/single-line-comment-_ZglDv1k.cjs +27 -0
- package/dist/source-file-B8OyOWg8.d.mts +31 -0
- package/dist/source-file-DKnFKRGJ.cjs +63 -0
- package/dist/source-file-Db1Wu_yq.mjs +56 -0
- package/dist/source-file-Dr2h8MVw.d.cts +31 -0
- package/dist/tsdoc-BT-2pTD3.d.mts +152 -0
- package/dist/tsdoc-BpykLfnB.cjs +576 -0
- package/dist/tsdoc-CWCdJ1Uj.mjs +456 -0
- package/dist/tsdoc-C_2VzSk_.d.cts +152 -0
- package/dist/tsdoc-reflection-BIWxEkBI.mjs +170 -0
- package/dist/tsdoc-reflection-D4QfeAYE.d.cts +18 -0
- package/dist/tsdoc-reflection-Dr_Nf1ht.cjs +188 -0
- package/dist/tsdoc-reflection-qXh3a1WV.d.mts +18 -0
- package/dist/types/components.cjs +1 -0
- package/dist/types/components.d.cts +2 -141
- package/dist/types/components.d.mts +2 -141
- package/dist/types/components.mjs +2 -0
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.d.cts +3 -2
- package/dist/types/index.d.mts +3 -2
- package/dist/types/index.mjs +3 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +2 -40
- package/dist/types/plugin.d.mts +2 -40
- package/dist/types/plugin.mjs +2 -0
- package/dist/typescript/components/builtin-file.cjs +8 -43
- package/dist/typescript/components/builtin-file.d.cts +6 -33
- package/dist/typescript/components/builtin-file.d.mts +6 -33
- package/dist/typescript/components/builtin-file.mjs +7 -41
- package/dist/typescript/components/dynamic-import-statement.cjs +2 -24
- package/dist/typescript/components/dynamic-import-statement.d.cts +1 -31
- package/dist/typescript/components/dynamic-import-statement.d.mts +1 -31
- package/dist/typescript/components/dynamic-import-statement.mjs +1 -22
- package/dist/typescript/components/entry-file.cjs +6 -38
- package/dist/typescript/components/entry-file.d.cts +5 -26
- package/dist/typescript/components/entry-file.d.mts +5 -26
- package/dist/typescript/components/entry-file.mjs +5 -35
- package/dist/typescript/components/index.cjs +49 -43
- package/dist/typescript/components/index.d.cts +13 -9
- package/dist/typescript/components/index.d.mts +13 -9
- package/dist/typescript/components/index.mjs +15 -9
- package/dist/typescript/components/record-expression.cjs +2 -11
- package/dist/typescript/components/record-expression.d.cts +1 -11
- package/dist/typescript/components/record-expression.d.mts +1 -11
- package/dist/typescript/components/record-expression.mjs +1 -9
- package/dist/typescript/components/tsdoc-reflection.cjs +8 -172
- package/dist/typescript/components/tsdoc-reflection.d.cts +4 -17
- package/dist/typescript/components/tsdoc-reflection.d.mts +4 -17
- package/dist/typescript/components/tsdoc-reflection.mjs +5 -168
- package/dist/typescript/components/tsdoc.cjs +23 -475
- package/dist/typescript/components/tsdoc.d.cts +3 -151
- package/dist/typescript/components/tsdoc.d.mts +3 -151
- package/dist/typescript/components/tsdoc.mjs +3 -454
- package/dist/typescript/components/typescript-file.cjs +7 -192
- package/dist/typescript/components/typescript-file.d.cts +4 -46
- package/dist/typescript/components/typescript-file.d.mts +4 -46
- package/dist/typescript/components/typescript-file.mjs +4 -188
- package/dist/typescript/components/typescript-interface.cjs +8 -67
- package/dist/typescript/components/typescript-interface.d.cts +3 -23
- package/dist/typescript/components/typescript-interface.d.mts +3 -23
- package/dist/typescript/components/typescript-interface.mjs +6 -64
- package/dist/typescript/components/typescript-object.cjs +8 -124
- package/dist/typescript/components/typescript-object.d.cts +3 -24
- package/dist/typescript/components/typescript-object.d.mts +3 -24
- package/dist/typescript/components/typescript-object.mjs +6 -121
- package/dist/typescript/index.cjs +49 -44
- package/dist/typescript/index.d.cts +13 -10
- package/dist/typescript/index.d.mts +13 -10
- package/dist/typescript/index.mjs +15 -10
- package/dist/typescript-BIiCTw8m.d.mts +23 -0
- package/dist/typescript-NNuOlVjo.mjs +45 -0
- package/dist/typescript-VTSR_IQG.cjs +51 -0
- package/dist/typescript-YczHz9BQ.d.cts +23 -0
- package/dist/typescript-file-B2iQamR6.d.cts +47 -0
- package/dist/typescript-file-CCNXO3vl.d.mts +47 -0
- package/dist/typescript-file-DLbLtnFd.cjs +208 -0
- package/dist/typescript-file-hcvsHaDV.mjs +190 -0
- package/dist/typescript-interface-BM02EN5E.mjs +66 -0
- package/dist/typescript-interface-Cu5yH1iH.d.mts +24 -0
- package/dist/typescript-interface-cuXGu4c4.cjs +78 -0
- package/dist/typescript-interface-vmxe6DFQ.d.cts +24 -0
- package/dist/typescript-object-Bk0AnSSQ.mjs +123 -0
- package/dist/typescript-object-Bsfy6ZF0.cjs +135 -0
- package/dist/typescript-object-CYLHqec2.d.cts +25 -0
- package/dist/typescript-object-DlbiBCmI.d.mts +25 -0
- package/dist/{deepkit/src/utilities.mjs → utilities-C6eipB1q.mjs} +1 -1
- package/dist/{deepkit/src/utilities.cjs → utilities-CiKb35hs.cjs} +25 -5
- package/dist/vendor/index.cjs +630 -15
- package/package.json +5 -5
- package/dist/_virtual/rolldown_runtime.mjs +0 -29
- package/dist/powerlines/src/lib/utilities/file-header.cjs +0 -13
- package/dist/powerlines/src/lib/utilities/file-header.mjs +0 -12
- package/dist/powerlines/src/types/babel.d.mts +0 -2
- package/dist/powerlines/src/types/build.d.cts +0 -145
- package/dist/powerlines/src/types/build.d.mts +0 -145
- package/dist/powerlines/src/types/commands.d.cts +0 -8
- package/dist/powerlines/src/types/commands.d.mts +0 -9
- package/dist/powerlines/src/types/config.d.cts +0 -369
- package/dist/powerlines/src/types/config.d.mts +0 -369
- package/dist/powerlines/src/types/context.d.cts +0 -362
- package/dist/powerlines/src/types/context.d.mts +0 -364
- package/dist/powerlines/src/types/fs.d.cts +0 -458
- package/dist/powerlines/src/types/fs.d.mts +0 -458
- package/dist/powerlines/src/types/hooks.d.mts +0 -2
- package/dist/powerlines/src/types/plugin.d.cts +0 -231
- package/dist/powerlines/src/types/plugin.d.mts +0 -231
- package/dist/powerlines/src/types/resolved.d.cts +0 -81
- package/dist/powerlines/src/types/resolved.d.mts +0 -81
- package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
- package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
- package/dist/vendor/index.mjs +0 -11
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/helpers/refkey.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Create a refkey for the provided arguments. Passing no arguments returns a fresh refkey that is guaranteed to be unique. Otherwise, the arguments passed will be used to create a refkey for those values. Providing the same arguments will always return the same refkey.
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* Values are compared using the SameValueZero algorithm, which considers objects the same if they are reference identical, and primitives the same if they are the same value, with the exception of `NaN`, which is always considered equal to other `NaN` values, and `-0`, which is considered identical to `+0`
|
|
10
|
-
*/
|
|
11
|
-
declare function refkey(...args: unknown[]): Refkey;
|
|
12
|
-
//#endregion
|
|
1
|
+
import { t as refkey } from "../refkey-DpAkQ3Cu.cjs";
|
|
13
2
|
export { refkey };
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/helpers/refkey.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Create a refkey for the provided arguments. Passing no arguments returns a fresh refkey that is guaranteed to be unique. Otherwise, the arguments passed will be used to create a refkey for those values. Providing the same arguments will always return the same refkey.
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* Values are compared using the SameValueZero algorithm, which considers objects the same if they are reference identical, and primitives the same if they are the same value, with the exception of `NaN`, which is always considered equal to other `NaN` values, and `-0`, which is considered identical to `+0`
|
|
10
|
-
*/
|
|
11
|
-
declare function refkey(...args: unknown[]): Refkey;
|
|
12
|
-
//#endregion
|
|
1
|
+
import { t as refkey } from "../refkey-BRtVxqGW.mjs";
|
|
13
2
|
export { refkey };
|
package/dist/helpers/refkey.mjs
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as refkey } from "../refkey-CSq-Ftvf.mjs";
|
|
2
2
|
|
|
3
|
-
//#region src/helpers/refkey.ts
|
|
4
|
-
/**
|
|
5
|
-
* Create a refkey for the provided arguments. Passing no arguments returns a fresh refkey that is guaranteed to be unique. Otherwise, the arguments passed will be used to create a refkey for those values. Providing the same arguments will always return the same refkey.
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Values are compared using the SameValueZero algorithm, which considers objects the same if they are reference identical, and primitives the same if they are the same value, with the exception of `NaN`, which is always considered equal to other `NaN` values, and `-0`, which is considered identical to `+0`
|
|
9
|
-
*/
|
|
10
|
-
function refkey(...args) {
|
|
11
|
-
return refkey$1("powerlines", ...args);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
//#endregion
|
|
15
3
|
export { refkey };
|
|
@@ -1,46 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
4
|
-
let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
|
|
5
|
-
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
1
|
+
require('../utilities-CiKb35hs.cjs');
|
|
2
|
+
const require_typescript = require('../typescript-VTSR_IQG.cjs');
|
|
6
3
|
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Generates a TypeScript object for the given reflection class.
|
|
10
|
-
*
|
|
11
|
-
* @param reflection - The reflection class to generate the object for.
|
|
12
|
-
* @param options - Options for generating the object.
|
|
13
|
-
* @returns A string containing the TypeScript object definition.
|
|
14
|
-
*/
|
|
15
|
-
function generateTypeScriptObject(reflection, options = {}) {
|
|
16
|
-
if (!reflection) return "";
|
|
17
|
-
return `
|
|
18
|
-
/**
|
|
19
|
-
* ${reflection.getDescription() || `${(0, __stryke_string_format_title_case.titleCase)(options.overrideName || reflection.getClassName() || reflection.getName())} object instance`}.
|
|
20
|
-
*/
|
|
21
|
-
export const ${(0, __stryke_string_format_camel_case.camelCase)(options.overrideName || reflection.getName())}${options.overrideExtends !== false && (options.overrideExtends || reflection.getSuperReflectionClass()?.getName()) ? `: ${options.overrideExtends || reflection.getSuperReflectionClass()?.getName()}` : ""} = {
|
|
22
|
-
${reflection.getProperties().filter((item) => !item.isIgnored() && !(0, __stryke_type_checks_is_undefined.isUndefined)(options.defaultValues?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
|
|
23
|
-
if ((0, __stryke_type_checks_is_undefined.isUndefined)(ret) && !(0, __stryke_type_checks_is_undefined.isUndefined)(options.defaultValues?.[alias])) return options.defaultValues?.[alias];
|
|
24
|
-
return ret;
|
|
25
|
-
}, 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) => ` /**
|
|
26
|
-
* ${item.getDescription() || item.getTitle() || (0, __stryke_string_format_title_case.titleCase)(item.getNameAsString())}
|
|
27
|
-
*
|
|
28
|
-
* @title ${item.getTitle() || (0, __stryke_string_format_title_case.titleCase)(item.getNameAsString())}${item.getAlias().length ? `
|
|
29
|
-
${item.getAlias().map((alias) => ` * @alias ${alias}`).join("\n")}` : ""}${item.getDomain() ? `
|
|
30
|
-
* @domain ${item.getDomain()}` : ""}${item.getPermission().length ? `
|
|
31
|
-
${item.getPermission().map((permission) => ` * @permission ${permission}`).join("\n")}` : ""}${item.isInternal() ? `
|
|
32
|
-
* @internal` : ""}${item.isReadonly() ? `
|
|
33
|
-
* @readonly` : ""}${item.isIgnored() ? `
|
|
34
|
-
* @ignored` : ""}${item.isHidden() ? `
|
|
35
|
-
* @hidden` : ""}
|
|
36
|
-
*/
|
|
37
|
-
${item.getNameAsString()}: ${require_utilities.stringifyValue(item.getType(), options.defaultValues?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
|
|
38
|
-
if ((0, __stryke_type_checks_is_undefined.isUndefined)(ret) && !(0, __stryke_type_checks_is_undefined.isUndefined)(options.defaultValues?.[alias])) return options.defaultValues?.[alias];
|
|
39
|
-
return ret;
|
|
40
|
-
}, void 0) ?? item.getDefaultValue())}`).join(", \n")}
|
|
41
|
-
};
|
|
42
|
-
`;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
//#endregion
|
|
46
|
-
exports.generateTypeScriptObject = generateTypeScriptObject;
|
|
4
|
+
exports.generateTypeScriptObject = require_typescript.generateTypeScriptObject;
|
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
interface GenerateTypeScriptInterfaceOptions<T> {
|
|
3
|
-
overrideName?: string;
|
|
4
|
-
overrideExtends?: string | false;
|
|
5
|
-
defaultValues?: Partial<T>;
|
|
6
|
-
}
|
|
7
|
-
interface GenerateTypeScriptObjectOptions<T> {
|
|
8
|
-
overrideName?: string;
|
|
9
|
-
overrideExtends?: string | false;
|
|
10
|
-
defaultValues?: Partial<T>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Generates a TypeScript object for the given reflection class.
|
|
14
|
-
*
|
|
15
|
-
* @param reflection - The reflection class to generate the object for.
|
|
16
|
-
* @param options - Options for generating the object.
|
|
17
|
-
* @returns A string containing the TypeScript object definition.
|
|
18
|
-
*/
|
|
19
|
-
declare function generateTypeScriptObject<T extends Record<string, any>>(reflection: ReflectionClass<T>, options?: GenerateTypeScriptObjectOptions<T>): string;
|
|
20
|
-
declare type __ΩGenerateTypeScriptInterfaceOptions = any[];
|
|
21
|
-
declare type __ΩGenerateTypeScriptObjectOptions = any[];
|
|
22
|
-
//#endregion
|
|
1
|
+
import { a as generateTypeScriptObject, i as __ΩGenerateTypeScriptObjectOptions, n as GenerateTypeScriptObjectOptions, r as __ΩGenerateTypeScriptInterfaceOptions, t as GenerateTypeScriptInterfaceOptions } from "../typescript-YczHz9BQ.cjs";
|
|
23
2
|
export { GenerateTypeScriptInterfaceOptions, GenerateTypeScriptObjectOptions, __ΩGenerateTypeScriptInterfaceOptions, __ΩGenerateTypeScriptObjectOptions, generateTypeScriptObject };
|
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
interface GenerateTypeScriptInterfaceOptions<T> {
|
|
3
|
-
overrideName?: string;
|
|
4
|
-
overrideExtends?: string | false;
|
|
5
|
-
defaultValues?: Partial<T>;
|
|
6
|
-
}
|
|
7
|
-
interface GenerateTypeScriptObjectOptions<T> {
|
|
8
|
-
overrideName?: string;
|
|
9
|
-
overrideExtends?: string | false;
|
|
10
|
-
defaultValues?: Partial<T>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Generates a TypeScript object for the given reflection class.
|
|
14
|
-
*
|
|
15
|
-
* @param reflection - The reflection class to generate the object for.
|
|
16
|
-
* @param options - Options for generating the object.
|
|
17
|
-
* @returns A string containing the TypeScript object definition.
|
|
18
|
-
*/
|
|
19
|
-
declare function generateTypeScriptObject<T extends Record<string, any>>(reflection: ReflectionClass<T>, options?: GenerateTypeScriptObjectOptions<T>): string;
|
|
20
|
-
declare type __ΩGenerateTypeScriptInterfaceOptions = any[];
|
|
21
|
-
declare type __ΩGenerateTypeScriptObjectOptions = any[];
|
|
22
|
-
//#endregion
|
|
1
|
+
import { a as generateTypeScriptObject, i as __ΩGenerateTypeScriptObjectOptions, n as GenerateTypeScriptObjectOptions, r as __ΩGenerateTypeScriptInterfaceOptions, t as GenerateTypeScriptInterfaceOptions } from "../typescript-BIiCTw8m.mjs";
|
|
23
2
|
export { GenerateTypeScriptInterfaceOptions, GenerateTypeScriptObjectOptions, __ΩGenerateTypeScriptInterfaceOptions, __ΩGenerateTypeScriptObjectOptions, generateTypeScriptObject };
|
|
@@ -1,45 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { camelCase } from "@stryke/string-format/camel-case";
|
|
4
|
-
import { titleCase } from "@stryke/string-format/title-case";
|
|
1
|
+
import "../utilities-C6eipB1q.mjs";
|
|
2
|
+
import { t as generateTypeScriptObject } from "../typescript-NNuOlVjo.mjs";
|
|
5
3
|
|
|
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
|
|
45
4
|
export { generateTypeScriptObject };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/index.cjs
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
const
|
|
2
|
+
const require_chunk = require('./chunk-BwyOHTjC.cjs');
|
|
3
|
+
require('./context-DkLnFNZm.cjs');
|
|
4
|
+
const require_output = require('./output-CiQCsyui.cjs');
|
|
5
5
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
6
|
let __alloy_js_rollup_plugin = require("@alloy-js/rollup-plugin");
|
|
7
|
-
__alloy_js_rollup_plugin =
|
|
7
|
+
__alloy_js_rollup_plugin = require_chunk.__toESM(__alloy_js_rollup_plugin);
|
|
8
8
|
let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
|
|
9
9
|
let __stryke_json_storm_json = require("@stryke/json/storm-json");
|
|
10
10
|
let __stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
|
|
11
11
|
let __stryke_path_replace = require("@stryke/path/replace");
|
|
12
12
|
let __stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
13
13
|
let prettier_doc_js = require("prettier/doc.js");
|
|
14
|
+
let rolldown_experimental = require("rolldown/experimental");
|
|
14
15
|
|
|
16
|
+
//#region src/vendor/index.ts
|
|
17
|
+
var vendor_exports = {};
|
|
18
|
+
require_chunk.__reExport(vendor_exports, require("@alloy-js/core"));
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
15
21
|
//#region src/index.tsx
|
|
16
22
|
/**
|
|
17
23
|
* Alloy-js plugin for Powerlines.
|
|
@@ -34,7 +40,13 @@ const plugin = (options = {}) => {
|
|
|
34
40
|
pragma: "Alloy.createElement",
|
|
35
41
|
importSource: "@powerlines/plugin-alloy/vendor"
|
|
36
42
|
} } },
|
|
37
|
-
plugins: [(0, __alloy_js_rollup_plugin.default)()
|
|
43
|
+
plugins: [(0, __alloy_js_rollup_plugin.default)(), (0, rolldown_experimental.viteAliasPlugin)({ entries: [{
|
|
44
|
+
find: "@alloy-js/core",
|
|
45
|
+
replacement: "@powerlines/plugin-alloy/vendor"
|
|
46
|
+
}, {
|
|
47
|
+
find: "@alloy-js/core/jsx-runtime",
|
|
48
|
+
replacement: "@powerlines/plugin-alloy/vendor/jsx-runtime"
|
|
49
|
+
}] })],
|
|
38
50
|
alias: {
|
|
39
51
|
"@alloy-js/core": "@powerlines/plugin-alloy/vendor",
|
|
40
52
|
"@alloy-js/core/jsx-runtime": "@powerlines/plugin-alloy/vendor/jsx-runtime"
|
|
@@ -71,7 +83,7 @@ const plugin = (options = {}) => {
|
|
|
71
83
|
async handler() {
|
|
72
84
|
this.render = async (children) => {
|
|
73
85
|
const _self$ = this;
|
|
74
|
-
const tree = (0,
|
|
86
|
+
const tree = (0, vendor_exports.renderTree)((0, __alloy_js_core_jsx_runtime.createComponent)(require_output.Output, {
|
|
75
87
|
context: _self$,
|
|
76
88
|
get basePath() {
|
|
77
89
|
return _self$.workspaceConfig.workspaceRoot;
|
|
@@ -92,14 +104,14 @@ var src_default = plugin;
|
|
|
92
104
|
* @param tree - The rendered output files.
|
|
93
105
|
*/
|
|
94
106
|
async function writeTree(context, tree, options = {}) {
|
|
95
|
-
await (0,
|
|
107
|
+
await (0, vendor_exports.flushJobsAsync)();
|
|
96
108
|
let result;
|
|
97
109
|
const generateOutput = async (currentDirectory, root) => {
|
|
98
110
|
if (!Array.isArray(root)) return;
|
|
99
111
|
const recurse = async (cwd) => {
|
|
100
112
|
for (const child of root) await generateOutput(cwd, child);
|
|
101
113
|
};
|
|
102
|
-
const renderContext = (0,
|
|
114
|
+
const renderContext = (0, vendor_exports.getContextForRenderNode)(root);
|
|
103
115
|
if (!renderContext) return recurse(currentDirectory);
|
|
104
116
|
if (renderContext.meta?.directory) {
|
|
105
117
|
const directory = {
|
|
@@ -178,7 +190,7 @@ async function printTree(context, tree, options = {}) {
|
|
|
178
190
|
options.tabWidth ??= 2;
|
|
179
191
|
options.useTabs ??= false;
|
|
180
192
|
options.insertFinalNewLine ??= true;
|
|
181
|
-
await (0,
|
|
193
|
+
await (0, vendor_exports.flushJobsAsync)();
|
|
182
194
|
const result = prettier_doc_js.printer.printDocToString(printTreeWorker(tree), options).formatted;
|
|
183
195
|
return options.insertFinalNewLine && !result.endsWith("\n") ? `${result}\n` : result;
|
|
184
196
|
}
|
|
@@ -187,7 +199,7 @@ function printTreeWorker(tree) {
|
|
|
187
199
|
for (const node of tree) if (typeof node === "string") {
|
|
188
200
|
const normalizedNode = node.split(/\r?\n/).flatMap((line, index, array) => index < array.length - 1 ? [line] : [line]);
|
|
189
201
|
doc.push(normalizedNode);
|
|
190
|
-
} else if ((0,
|
|
202
|
+
} else if ((0, vendor_exports.isPrintHook)(node)) doc.push(node.print(node.subtree, printTreeWorker));
|
|
191
203
|
else doc.push(printTreeWorker(node));
|
|
192
204
|
return doc;
|
|
193
205
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Plugin } from "./
|
|
2
|
-
import {
|
|
1
|
+
import { i as Plugin } from "./context-CWt70HA3.cjs";
|
|
2
|
+
import { n as AlloyPluginOptions, t as AlloyPluginContext } from "./plugin-K4ViA72J.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
5
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Plugin } from "./
|
|
2
|
-
import {
|
|
1
|
+
import { i as Plugin } from "./context-BwQLwanm.mjs";
|
|
2
|
+
import { n as AlloyPluginOptions, t as AlloyPluginContext } from "./plugin-DcrJBDQ2.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
5
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "./context-eP3fitqj.mjs";
|
|
2
|
+
import { t as Output } from "./output-eQ8RcTrP.mjs";
|
|
3
3
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
4
4
|
import alloy from "@alloy-js/rollup-plugin";
|
|
5
5
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
@@ -8,7 +8,42 @@ import { isParentPath } from "@stryke/path/is-parent-path";
|
|
|
8
8
|
import { replacePath } from "@stryke/path/replace";
|
|
9
9
|
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
10
10
|
import { printer } from "prettier/doc.js";
|
|
11
|
+
import { viteAliasPlugin } from "rolldown/experimental";
|
|
11
12
|
|
|
13
|
+
//#region rolldown:runtime
|
|
14
|
+
var __defProp = Object.defineProperty;
|
|
15
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
16
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
17
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
21
|
+
key = keys[i];
|
|
22
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
23
|
+
__defProp(to, key, {
|
|
24
|
+
get: ((k) => from[k]).bind(null, key),
|
|
25
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
32
|
+
var __reExport = (target, mod, secondTarget, symbols) => {
|
|
33
|
+
if (symbols) {
|
|
34
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
35
|
+
secondTarget && __defProp(secondTarget, Symbol.toStringTag, { value: "Module" });
|
|
36
|
+
}
|
|
37
|
+
__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default");
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/vendor/index.ts
|
|
42
|
+
var vendor_exports = {};
|
|
43
|
+
import * as import___alloy_js_core from "@alloy-js/core";
|
|
44
|
+
__reExport(vendor_exports, import___alloy_js_core);
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
12
47
|
//#region src/index.tsx
|
|
13
48
|
/**
|
|
14
49
|
* Alloy-js plugin for Powerlines.
|
|
@@ -31,7 +66,13 @@ const plugin = (options = {}) => {
|
|
|
31
66
|
pragma: "Alloy.createElement",
|
|
32
67
|
importSource: "@powerlines/plugin-alloy/vendor"
|
|
33
68
|
} } },
|
|
34
|
-
plugins: [alloy()
|
|
69
|
+
plugins: [alloy(), viteAliasPlugin({ entries: [{
|
|
70
|
+
find: "@alloy-js/core",
|
|
71
|
+
replacement: "@powerlines/plugin-alloy/vendor"
|
|
72
|
+
}, {
|
|
73
|
+
find: "@alloy-js/core/jsx-runtime",
|
|
74
|
+
replacement: "@powerlines/plugin-alloy/vendor/jsx-runtime"
|
|
75
|
+
}] })],
|
|
35
76
|
alias: {
|
|
36
77
|
"@alloy-js/core": "@powerlines/plugin-alloy/vendor",
|
|
37
78
|
"@alloy-js/core/jsx-runtime": "@powerlines/plugin-alloy/vendor/jsx-runtime"
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
require('../../context-DkLnFNZm.cjs');
|
|
2
|
+
require('../../single-line-comment-_ZglDv1k.cjs');
|
|
3
|
+
require('../../source-file-DKnFKRGJ.cjs');
|
|
4
|
+
const require_markdown_file = require('../../markdown-file-GXj9nWQs.cjs');
|
|
5
|
+
require('../../markdown-table-Biapn9k9.cjs');
|
|
6
|
+
const require_markdown_table$1 = require('../../markdown-table-d1cy0JP3.cjs');
|
|
7
|
+
require('../../components-Gg416Czx.cjs');
|
|
3
8
|
|
|
4
|
-
exports.MarkdownFile =
|
|
5
|
-
exports.MarkdownFileHeader =
|
|
6
|
-
exports.MarkdownTable =
|
|
7
|
-
exports.MarkdownTableColumn =
|
|
8
|
-
exports.MarkdownTableColumnHeader =
|
|
9
|
+
exports.MarkdownFile = require_markdown_file.MarkdownFile;
|
|
10
|
+
exports.MarkdownFileHeader = require_markdown_file.MarkdownFileHeader;
|
|
11
|
+
exports.MarkdownTable = require_markdown_table$1.MarkdownTable;
|
|
12
|
+
exports.MarkdownTableColumn = require_markdown_table$1.MarkdownTableColumn;
|
|
13
|
+
exports.MarkdownTableColumnHeader = require_markdown_table$1.MarkdownTableColumnHeader;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import "../../context-CWt70HA3.cjs";
|
|
2
|
+
import "../../components-DkVeQ5Yn.cjs";
|
|
3
|
+
import "../../source-file-Dr2h8MVw.cjs";
|
|
4
|
+
import { i as __ΩMarkdownFileProps, n as MarkdownFileHeader, r as MarkdownFileProps, t as MarkdownFile } from "../../markdown-file-CuMvfKbi.cjs";
|
|
5
|
+
import "../../markdown-table-DFnnh_px.cjs";
|
|
6
|
+
import { a as MarkdownTableProps, i as MarkdownTableColumnProps, n as MarkdownTableColumn, o as __ΩMarkdownTableColumnProps, r as MarkdownTableColumnHeader, s as __ΩMarkdownTableProps, t as MarkdownTable } from "../../markdown-table-CpnCpTp1.cjs";
|
|
7
|
+
import "../../index-lQ_hGQ08.cjs";
|
|
3
8
|
export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps };
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import "../../context-BwQLwanm.mjs";
|
|
2
|
+
import "../../components-BrkXdHq-.mjs";
|
|
3
|
+
import "../../source-file-B8OyOWg8.mjs";
|
|
4
|
+
import { i as __ΩMarkdownFileProps, n as MarkdownFileHeader, r as MarkdownFileProps, t as MarkdownFile } from "../../markdown-file-DBpOheYg.mjs";
|
|
5
|
+
import "../../markdown-table-DKL6g91k.mjs";
|
|
6
|
+
import { a as MarkdownTableProps, i as MarkdownTableColumnProps, n as MarkdownTableColumn, o as __ΩMarkdownTableColumnProps, r as MarkdownTableColumnHeader, s as __ΩMarkdownTableProps, t as MarkdownTable } from "../../markdown-table-DcG6ScWX.mjs";
|
|
7
|
+
import "../../index-DztUdPP_.mjs";
|
|
3
8
|
export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps };
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import "../../context-eP3fitqj.mjs";
|
|
2
|
+
import "../../single-line-comment-C9Fz5mkM.mjs";
|
|
3
|
+
import "../../source-file-Db1Wu_yq.mjs";
|
|
4
|
+
import { n as MarkdownFileHeader, t as MarkdownFile } from "../../markdown-file-CTMTrgdr.mjs";
|
|
5
|
+
import "../../markdown-table-DaYAMMk6.mjs";
|
|
6
|
+
import { n as MarkdownTableColumn, r as MarkdownTableColumnHeader, t as MarkdownTable } from "../../markdown-table-AO9Jtw-o.mjs";
|
|
7
|
+
import "../../components-CH68f_ve.mjs";
|
|
3
8
|
|
|
4
9
|
export { MarkdownFile, MarkdownFileHeader, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader };
|
|
@@ -1,118 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
|
-
let __powerlines_plugin_alloy_vendor = require("@powerlines/plugin-alloy/vendor");
|
|
7
|
-
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
8
|
-
let __alloy_js_markdown = require("@alloy-js/markdown");
|
|
1
|
+
require('../../context-DkLnFNZm.cjs');
|
|
2
|
+
require('../../single-line-comment-_ZglDv1k.cjs');
|
|
3
|
+
require('../../source-file-DKnFKRGJ.cjs');
|
|
4
|
+
const require_markdown_file = require('../../markdown-file-GXj9nWQs.cjs');
|
|
9
5
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* A base component representing a Powerlines generated markdown source file.
|
|
13
|
-
*
|
|
14
|
-
* @param props - The properties for the source file.
|
|
15
|
-
* @returns The rendered source file component.
|
|
16
|
-
*/
|
|
17
|
-
function MarkdownFile(props) {
|
|
18
|
-
const [{ children, preset }, rest] = (0, __powerlines_plugin_alloy_vendor.splitProps)(props, ["children", "preset"]);
|
|
19
|
-
const nodeContext = (0, __powerlines_plugin_alloy_vendor.getContext)();
|
|
20
|
-
nodeContext.meta ??= {};
|
|
21
|
-
nodeContext.meta.output = { preset };
|
|
22
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_source_file.SourceFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get header() {
|
|
23
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(MarkdownFileHeader, {});
|
|
24
|
-
} }, rest, {
|
|
25
|
-
filetype: "md",
|
|
26
|
-
reference: __alloy_js_markdown.Link,
|
|
27
|
-
get children() {
|
|
28
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
|
|
29
|
-
get when() {
|
|
30
|
-
return Boolean(children);
|
|
31
|
-
},
|
|
32
|
-
children
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
}));
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Renders the header for a Powerlines Typescript source file.
|
|
39
|
-
*
|
|
40
|
-
* @param props - The properties for the source file header.
|
|
41
|
-
* @returns The rendered source file header.
|
|
42
|
-
*/
|
|
43
|
-
function MarkdownFileHeader(props) {
|
|
44
|
-
const [{ children, disableEslint = true, disableBiome = true, disablePrettier = false }] = (0, __powerlines_plugin_alloy_vendor.splitProps)(props, [
|
|
45
|
-
"children",
|
|
46
|
-
"disableEslint",
|
|
47
|
-
"disableBiome",
|
|
48
|
-
"disablePrettier"
|
|
49
|
-
]);
|
|
50
|
-
const context = require_core_contexts_context.usePowerlines();
|
|
51
|
-
return [
|
|
52
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
|
|
53
|
-
get when() {
|
|
54
|
-
return Boolean(disableEslint);
|
|
55
|
-
},
|
|
56
|
-
get children() {
|
|
57
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
|
|
58
|
-
variant: "markdown",
|
|
59
|
-
children: "eslint-disable"
|
|
60
|
-
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
61
|
-
}
|
|
62
|
-
}),
|
|
63
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
|
|
64
|
-
get when() {
|
|
65
|
-
return Boolean(disablePrettier);
|
|
66
|
-
},
|
|
67
|
-
get children() {
|
|
68
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
|
|
69
|
-
variant: "markdown",
|
|
70
|
-
children: "prettier-ignore"
|
|
71
|
-
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
72
|
-
}
|
|
73
|
-
}),
|
|
74
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
|
|
75
|
-
get when() {
|
|
76
|
-
return Boolean(disableBiome);
|
|
77
|
-
},
|
|
78
|
-
get children() {
|
|
79
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
|
|
80
|
-
variant: "markdown",
|
|
81
|
-
children: "biome-ignore lint: disable"
|
|
82
|
-
}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
83
|
-
}
|
|
84
|
-
}),
|
|
85
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
|
|
86
|
-
get when() {
|
|
87
|
-
return Boolean(disableEslint) || Boolean(disablePrettier) || Boolean(disableBiome);
|
|
88
|
-
},
|
|
89
|
-
get children() {
|
|
90
|
-
return (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {});
|
|
91
|
-
}
|
|
92
|
-
}),
|
|
93
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_vendor.Show, {
|
|
94
|
-
get when() {
|
|
95
|
-
return Boolean(children);
|
|
96
|
-
},
|
|
97
|
-
get children() {
|
|
98
|
-
return [children, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
99
|
-
}
|
|
100
|
-
}),
|
|
101
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
|
|
102
|
-
variant: "markdown",
|
|
103
|
-
get children() {
|
|
104
|
-
return __powerlines_plugin_alloy_vendor.code`Generated by ${(0, __stryke_string_format_title_case.titleCase)(context?.config.framework) || "Powerlines"}`;
|
|
105
|
-
}
|
|
106
|
-
}),
|
|
107
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
108
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
|
|
109
|
-
variant: "markdown",
|
|
110
|
-
children: __powerlines_plugin_alloy_vendor.code`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command`
|
|
111
|
-
}),
|
|
112
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
113
|
-
];
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
//#endregion
|
|
117
|
-
exports.MarkdownFile = MarkdownFile;
|
|
118
|
-
exports.MarkdownFileHeader = MarkdownFileHeader;
|
|
6
|
+
exports.MarkdownFile = require_markdown_file.MarkdownFile;
|
|
7
|
+
exports.MarkdownFileHeader = require_markdown_file.MarkdownFileHeader;
|
|
@@ -1,23 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
//#region src/markdown/components/markdown-file.d.ts
|
|
6
|
-
type MarkdownFileProps = Omit<SourceFileProps, "filetype"> & ComponentProps;
|
|
7
|
-
/**
|
|
8
|
-
* A base component representing a Powerlines generated markdown source file.
|
|
9
|
-
*
|
|
10
|
-
* @param props - The properties for the source file.
|
|
11
|
-
* @returns The rendered source file component.
|
|
12
|
-
*/
|
|
13
|
-
declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core7.Children;
|
|
14
|
-
/**
|
|
15
|
-
* Renders the header for a Powerlines Typescript source file.
|
|
16
|
-
*
|
|
17
|
-
* @param props - The properties for the source file header.
|
|
18
|
-
* @returns The rendered source file header.
|
|
19
|
-
*/
|
|
20
|
-
declare function MarkdownFileHeader(props: SourceFileHeaderProps): _alloy_js_core7.Children;
|
|
21
|
-
declare type __ΩMarkdownFileProps = any[];
|
|
22
|
-
//#endregion
|
|
1
|
+
import "../../context-CWt70HA3.cjs";
|
|
2
|
+
import "../../components-DkVeQ5Yn.cjs";
|
|
3
|
+
import "../../source-file-Dr2h8MVw.cjs";
|
|
4
|
+
import { i as __ΩMarkdownFileProps, n as MarkdownFileHeader, r as MarkdownFileProps, t as MarkdownFile } from "../../markdown-file-CuMvfKbi.cjs";
|
|
23
5
|
export { MarkdownFile, MarkdownFileHeader, MarkdownFileProps, __ΩMarkdownFileProps };
|