@powerlines/plugin-env 0.15.143 → 0.15.145

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.
Files changed (66) hide show
  1. package/dist/babel/index.d.cts +3 -3
  2. package/dist/babel/index.d.mts +3 -3
  3. package/dist/babel/plugin.d.cts +3 -3
  4. package/dist/babel/plugin.d.mts +3 -3
  5. package/dist/components/docs.cjs +1 -8
  6. package/dist/components/docs.d.cts +1 -1
  7. package/dist/components/docs.d.mts +1 -1
  8. package/dist/components/docs.mjs +1 -8
  9. package/dist/components/env.cjs +1 -3
  10. package/dist/components/env.d.cts +1 -1
  11. package/dist/components/env.d.mts +1 -1
  12. package/dist/components/env.mjs +1 -3
  13. package/dist/components/index.cjs +2 -4
  14. package/dist/components/index.d.cts +2 -2
  15. package/dist/components/index.d.mts +2 -2
  16. package/dist/components/index.mjs +2 -4
  17. package/dist/create-reflection-resource-3svZm2rY.d.cts +14 -0
  18. package/dist/create-reflection-resource-3svZm2rY.d.cts.map +1 -0
  19. package/dist/create-reflection-resource-CCpA76Yq.d.mts +14 -0
  20. package/dist/create-reflection-resource-CCpA76Yq.d.mts.map +1 -0
  21. package/dist/create-reflection-resource-D0QrD1Td.mjs +23 -0
  22. package/dist/create-reflection-resource-D0QrD1Td.mjs.map +1 -0
  23. package/dist/create-reflection-resource-d2zdTyOE.cjs +27 -0
  24. package/dist/{docs-DbRoWmL_.mjs → docs-B4Bd2HuK.mjs} +8 -11
  25. package/dist/docs-B4Bd2HuK.mjs.map +1 -0
  26. package/dist/{docs-B0d8pdIg.d.mts → docs-BAKwE4PJ.d.cts} +3 -1
  27. package/dist/docs-BAKwE4PJ.d.cts.map +1 -0
  28. package/dist/{docs-DMfzQuvP.d.cts → docs-CVf-w8oz.d.mts} +3 -1
  29. package/dist/docs-CVf-w8oz.d.mts.map +1 -0
  30. package/dist/{docs-B-SDRHeg.cjs → docs-ClXTdyjQ.cjs} +6 -9
  31. package/dist/{env-R63eR4RP.cjs → env-CCdAU0So.cjs} +13 -17
  32. package/dist/{env-D9oCn-AS.mjs → env-CNxmjHTB.mjs} +15 -19
  33. package/dist/env-CNxmjHTB.mjs.map +1 -0
  34. package/dist/{env-BIyd8CTA.d.cts → env-D0KBPuAd.d.mts} +3 -1
  35. package/dist/env-D0KBPuAd.d.mts.map +1 -0
  36. package/dist/{env-BKmI7DyR.d.mts → env-DwM7pJm7.d.cts} +3 -1
  37. package/dist/env-DwM7pJm7.d.cts.map +1 -0
  38. package/dist/helpers/create-reflection-resource.cjs +2 -9
  39. package/dist/helpers/create-reflection-resource.d.cts +2 -2
  40. package/dist/helpers/create-reflection-resource.d.mts +2 -2
  41. package/dist/helpers/create-reflection-resource.mjs +2 -9
  42. package/dist/helpers/index.cjs +2 -2
  43. package/dist/helpers/index.d.cts +2 -2
  44. package/dist/helpers/index.d.mts +2 -2
  45. package/dist/helpers/index.mjs +2 -2
  46. package/dist/index-Bdi8CvaN.d.cts.map +1 -1
  47. package/dist/index-Drhzdkqe.d.mts.map +1 -1
  48. package/dist/index.cjs +17 -9
  49. package/dist/index.d.cts +4 -4
  50. package/dist/index.d.mts +4 -4
  51. package/dist/index.mjs +17 -9
  52. package/dist/index.mjs.map +1 -1
  53. package/package.json +9 -9
  54. package/dist/create-reflection-resource-B3friIs9.mjs +0 -98
  55. package/dist/create-reflection-resource-B3friIs9.mjs.map +0 -1
  56. package/dist/create-reflection-resource-BJj83ii4.cjs +0 -103
  57. package/dist/create-reflection-resource-DSLbLsX2.d.cts +0 -16
  58. package/dist/create-reflection-resource-DSLbLsX2.d.cts.map +0 -1
  59. package/dist/create-reflection-resource-DwWJAo-G.d.mts +0 -16
  60. package/dist/create-reflection-resource-DwWJAo-G.d.mts.map +0 -1
  61. package/dist/docs-B0d8pdIg.d.mts.map +0 -1
  62. package/dist/docs-DMfzQuvP.d.cts.map +0 -1
  63. package/dist/docs-DbRoWmL_.mjs.map +0 -1
  64. package/dist/env-BIyd8CTA.d.cts.map +0 -1
  65. package/dist/env-BKmI7DyR.d.mts.map +0 -1
  66. package/dist/env-D9oCn-AS.mjs.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import "../runtime-BDzzR4wH.cjs";
2
2
  import "../plugin-CSe5f2cD.cjs";
3
- import "../docs-DMfzQuvP.cjs";
4
- import "../env-BIyd8CTA.cjs";
3
+ import "../docs-BAKwE4PJ.cjs";
4
+ import "../env-DwM7pJm7.cjs";
5
5
  import "../index-uTS5iDq_.cjs";
6
- import "../create-reflection-resource-DSLbLsX2.cjs";
6
+ import "../create-reflection-resource-3svZm2rY.cjs";
7
7
  import "../load-PHGmxX_X.cjs";
8
8
  import "../persistence-BR4cUaN6.cjs";
9
9
  import "../reflect-Dm8a3c29.cjs";
@@ -1,9 +1,9 @@
1
1
  import "../runtime-lYSIZdMn.mjs";
2
2
  import "../plugin-DMbVjdcQ.mjs";
3
- import "../docs-B0d8pdIg.mjs";
4
- import "../env-BKmI7DyR.mjs";
3
+ import "../docs-CVf-w8oz.mjs";
4
+ import "../env-D0KBPuAd.mjs";
5
5
  import "../index-BNRXMhlr.mjs";
6
- import "../create-reflection-resource-DwWJAo-G.mjs";
6
+ import "../create-reflection-resource-CCpA76Yq.mjs";
7
7
  import "../load-GpP6cojj.mjs";
8
8
  import "../persistence-DrKQZNCv.mjs";
9
9
  import "../reflect-Dpz8ifa0.mjs";
@@ -1,9 +1,9 @@
1
1
  import "../runtime-BDzzR4wH.cjs";
2
2
  import "../plugin-CSe5f2cD.cjs";
3
- import "../docs-DMfzQuvP.cjs";
4
- import "../env-BIyd8CTA.cjs";
3
+ import "../docs-BAKwE4PJ.cjs";
4
+ import "../env-DwM7pJm7.cjs";
5
5
  import "../index-uTS5iDq_.cjs";
6
- import "../create-reflection-resource-DSLbLsX2.cjs";
6
+ import "../create-reflection-resource-3svZm2rY.cjs";
7
7
  import "../load-PHGmxX_X.cjs";
8
8
  import "../persistence-BR4cUaN6.cjs";
9
9
  import "../reflect-Dm8a3c29.cjs";
@@ -1,9 +1,9 @@
1
1
  import "../runtime-lYSIZdMn.mjs";
2
2
  import "../plugin-DMbVjdcQ.mjs";
3
- import "../docs-B0d8pdIg.mjs";
4
- import "../env-BKmI7DyR.mjs";
3
+ import "../docs-CVf-w8oz.mjs";
4
+ import "../env-D0KBPuAd.mjs";
5
5
  import "../index-BNRXMhlr.mjs";
6
- import "../create-reflection-resource-DwWJAo-G.mjs";
6
+ import "../create-reflection-resource-CCpA76Yq.mjs";
7
7
  import "../load-GpP6cojj.mjs";
8
8
  import "../persistence-DrKQZNCv.mjs";
9
9
  import "../reflect-Dpz8ifa0.mjs";
@@ -1,14 +1,7 @@
1
1
  require('../runtime-g0TEIoZK.cjs');
2
2
  require('../plugin-CM1TSv1B.cjs');
3
3
  require('../join-paths-Bc4rM2TX.cjs');
4
- require('../persistence-D_clXRxP.cjs');
5
- require('../source-file-env-4Vdtzc5-.cjs');
6
- require('../defu-CrqNIh1A.cjs');
7
- require('../load-DPB0maqs.cjs');
8
- require('../confbox.DA7CpUDY-r6FXRsI6.cjs');
9
- require('../confbox.DnMsyigM-C13n3X-S.cjs');
10
- require('../create-reflection-resource-BJj83ii4.cjs');
11
4
  require('../docs-helper-4MoQ5-R3.cjs');
12
- const require_docs = require('../docs-B-SDRHeg.cjs');
5
+ const require_docs = require('../docs-ClXTdyjQ.cjs');
13
6
 
14
7
  exports.EnvDocsFile = require_docs.EnvDocsFile;
@@ -1,2 +1,2 @@
1
- import { n as EnvDocsFileProps, r as __ΩEnvDocsFileProps, t as EnvDocsFile } from "../docs-DMfzQuvP.cjs";
1
+ import { n as EnvDocsFileProps, r as __ΩEnvDocsFileProps, t as EnvDocsFile } from "../docs-BAKwE4PJ.cjs";
2
2
  export { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps };
@@ -1,2 +1,2 @@
1
- import { n as EnvDocsFileProps, r as __ΩEnvDocsFileProps, t as EnvDocsFile } from "../docs-B0d8pdIg.mjs";
1
+ import { n as EnvDocsFileProps, r as __ΩEnvDocsFileProps, t as EnvDocsFile } from "../docs-CVf-w8oz.mjs";
2
2
  export { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps };
@@ -1,14 +1,7 @@
1
1
  import "../runtime-C5ukCv3P.mjs";
2
2
  import "../plugin-eBjQJP6x.mjs";
3
3
  import "../join-paths-BMg51Ddi.mjs";
4
- import "../persistence-BsBxs9wt.mjs";
5
- import "../source-file-env-Tj-6qobx.mjs";
6
- import "../defu-DV5Grr85.mjs";
7
- import "../load-Dr5ybfL7.mjs";
8
- import "../confbox.DA7CpUDY-DShUZ_rW.mjs";
9
- import "../confbox.DnMsyigM-V6Wj0LPC.mjs";
10
- import "../create-reflection-resource-B3friIs9.mjs";
11
4
  import "../docs-helper-2fe7M3Th.mjs";
12
- import { t as EnvDocsFile } from "../docs-DbRoWmL_.mjs";
5
+ import { t as EnvDocsFile } from "../docs-B4Bd2HuK.mjs";
13
6
 
14
7
  export { EnvDocsFile };
@@ -1,14 +1,12 @@
1
1
  require('../runtime-g0TEIoZK.cjs');
2
2
  require('../plugin-CM1TSv1B.cjs');
3
3
  require('../join-paths-Bc4rM2TX.cjs');
4
- require('../persistence-D_clXRxP.cjs');
5
4
  require('../source-file-env-4Vdtzc5-.cjs');
6
5
  require('../defu-CrqNIh1A.cjs');
7
6
  require('../load-DPB0maqs.cjs');
8
7
  require('../confbox.DA7CpUDY-r6FXRsI6.cjs');
9
8
  require('../confbox.DnMsyigM-C13n3X-S.cjs');
10
- require('../create-reflection-resource-BJj83ii4.cjs');
11
- const require_env = require('../env-R63eR4RP.cjs');
9
+ const require_env = require('../env-CCdAU0So.cjs');
12
10
 
13
11
  exports.EnvBuiltin = require_env.EnvBuiltin;
14
12
  exports.EnvTypeDefinition = require_env.EnvTypeDefinition;
@@ -1,2 +1,2 @@
1
- import { i as __ΩEnvBuiltinProps, n as EnvBuiltinProps, r as EnvTypeDefinition, t as EnvBuiltin } from "../env-BIyd8CTA.cjs";
1
+ import { i as __ΩEnvBuiltinProps, n as EnvBuiltinProps, r as EnvTypeDefinition, t as EnvBuiltin } from "../env-DwM7pJm7.cjs";
2
2
  export { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps };
@@ -1,2 +1,2 @@
1
- import { i as __ΩEnvBuiltinProps, n as EnvBuiltinProps, r as EnvTypeDefinition, t as EnvBuiltin } from "../env-BKmI7DyR.mjs";
1
+ import { i as __ΩEnvBuiltinProps, n as EnvBuiltinProps, r as EnvTypeDefinition, t as EnvBuiltin } from "../env-D0KBPuAd.mjs";
2
2
  export { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps };
@@ -1,13 +1,11 @@
1
1
  import "../runtime-C5ukCv3P.mjs";
2
2
  import "../plugin-eBjQJP6x.mjs";
3
3
  import "../join-paths-BMg51Ddi.mjs";
4
- import "../persistence-BsBxs9wt.mjs";
5
4
  import "../source-file-env-Tj-6qobx.mjs";
6
5
  import "../defu-DV5Grr85.mjs";
7
6
  import "../load-Dr5ybfL7.mjs";
8
7
  import "../confbox.DA7CpUDY-DShUZ_rW.mjs";
9
8
  import "../confbox.DnMsyigM-V6Wj0LPC.mjs";
10
- import "../create-reflection-resource-B3friIs9.mjs";
11
- import { n as EnvTypeDefinition, t as EnvBuiltin } from "../env-D9oCn-AS.mjs";
9
+ import { n as EnvTypeDefinition, t as EnvBuiltin } from "../env-CNxmjHTB.mjs";
12
10
 
13
11
  export { EnvBuiltin, EnvTypeDefinition };
@@ -1,16 +1,14 @@
1
1
  require('../runtime-g0TEIoZK.cjs');
2
2
  require('../plugin-CM1TSv1B.cjs');
3
3
  require('../join-paths-Bc4rM2TX.cjs');
4
- require('../persistence-D_clXRxP.cjs');
5
4
  require('../source-file-env-4Vdtzc5-.cjs');
6
5
  require('../defu-CrqNIh1A.cjs');
7
6
  require('../load-DPB0maqs.cjs');
8
7
  require('../confbox.DA7CpUDY-r6FXRsI6.cjs');
9
8
  require('../confbox.DnMsyigM-C13n3X-S.cjs');
10
- require('../create-reflection-resource-BJj83ii4.cjs');
11
9
  require('../docs-helper-4MoQ5-R3.cjs');
12
- const require_docs = require('../docs-B-SDRHeg.cjs');
13
- const require_env = require('../env-R63eR4RP.cjs');
10
+ const require_docs = require('../docs-ClXTdyjQ.cjs');
11
+ const require_env = require('../env-CCdAU0So.cjs');
14
12
  require('../components-BUo6Koax.cjs');
15
13
 
16
14
  exports.EnvBuiltin = require_env.EnvBuiltin;
@@ -1,4 +1,4 @@
1
- import { n as EnvDocsFileProps, r as __ΩEnvDocsFileProps, t as EnvDocsFile } from "../docs-DMfzQuvP.cjs";
2
- import { i as __ΩEnvBuiltinProps, n as EnvBuiltinProps, r as EnvTypeDefinition, t as EnvBuiltin } from "../env-BIyd8CTA.cjs";
1
+ import { n as EnvDocsFileProps, r as __ΩEnvDocsFileProps, t as EnvDocsFile } from "../docs-BAKwE4PJ.cjs";
2
+ import { i as __ΩEnvBuiltinProps, n as EnvBuiltinProps, r as EnvTypeDefinition, t as EnvBuiltin } from "../env-DwM7pJm7.cjs";
3
3
  import "../index-uTS5iDq_.cjs";
4
4
  export { EnvBuiltin, EnvBuiltinProps, EnvDocsFile, EnvDocsFileProps, EnvTypeDefinition, __ΩEnvBuiltinProps, __ΩEnvDocsFileProps };
@@ -1,4 +1,4 @@
1
- import { n as EnvDocsFileProps, r as __ΩEnvDocsFileProps, t as EnvDocsFile } from "../docs-B0d8pdIg.mjs";
2
- import { i as __ΩEnvBuiltinProps, n as EnvBuiltinProps, r as EnvTypeDefinition, t as EnvBuiltin } from "../env-BKmI7DyR.mjs";
1
+ import { n as EnvDocsFileProps, r as __ΩEnvDocsFileProps, t as EnvDocsFile } from "../docs-CVf-w8oz.mjs";
2
+ import { i as __ΩEnvBuiltinProps, n as EnvBuiltinProps, r as EnvTypeDefinition, t as EnvBuiltin } from "../env-D0KBPuAd.mjs";
3
3
  import "../index-BNRXMhlr.mjs";
4
4
  export { EnvBuiltin, EnvBuiltinProps, EnvDocsFile, EnvDocsFileProps, EnvTypeDefinition, __ΩEnvBuiltinProps, __ΩEnvDocsFileProps };
@@ -1,16 +1,14 @@
1
1
  import "../runtime-C5ukCv3P.mjs";
2
2
  import "../plugin-eBjQJP6x.mjs";
3
3
  import "../join-paths-BMg51Ddi.mjs";
4
- import "../persistence-BsBxs9wt.mjs";
5
4
  import "../source-file-env-Tj-6qobx.mjs";
6
5
  import "../defu-DV5Grr85.mjs";
7
6
  import "../load-Dr5ybfL7.mjs";
8
7
  import "../confbox.DA7CpUDY-DShUZ_rW.mjs";
9
8
  import "../confbox.DnMsyigM-V6Wj0LPC.mjs";
10
- import "../create-reflection-resource-B3friIs9.mjs";
11
9
  import "../docs-helper-2fe7M3Th.mjs";
12
- import { t as EnvDocsFile } from "../docs-DbRoWmL_.mjs";
13
- import { n as EnvTypeDefinition, t as EnvBuiltin } from "../env-D9oCn-AS.mjs";
10
+ import { t as EnvDocsFile } from "../docs-B4Bd2HuK.mjs";
11
+ import { n as EnvTypeDefinition, t as EnvBuiltin } from "../env-CNxmjHTB.mjs";
14
12
  import "../components-DDFmImcI.mjs";
15
13
 
16
14
  export { EnvBuiltin, EnvDocsFile, EnvTypeDefinition };
@@ -0,0 +1,14 @@
1
+ import { t as EnvPluginContext } from "./plugin-CSe5f2cD.cjs";
2
+
3
+ //#region src/helpers/create-reflection-resource.d.ts
4
+
5
+ /**
6
+ * Creates a reflection resource for the environment configuration.
7
+ *
8
+ * @param context - The environment plugin context.
9
+ * @returns A resource that provides the reflection of the environment configuration.
10
+ */
11
+ declare function createReflection(_context: EnvPluginContext): {};
12
+ //#endregion
13
+ export { createReflection as t };
14
+ //# sourceMappingURL=create-reflection-resource-3svZm2rY.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-reflection-resource-3svZm2rY.d.cts","names":[],"sources":["../src/helpers/create-reflection-resource.ts"],"sourcesContent":[],"mappings":";;;;;;AA0BA;;;;iBAAgB,gBAAA,WAA2B"}
@@ -0,0 +1,14 @@
1
+ import { t as EnvPluginContext } from "./plugin-DMbVjdcQ.mjs";
2
+
3
+ //#region src/helpers/create-reflection-resource.d.ts
4
+
5
+ /**
6
+ * Creates a reflection resource for the environment configuration.
7
+ *
8
+ * @param context - The environment plugin context.
9
+ * @returns A resource that provides the reflection of the environment configuration.
10
+ */
11
+ declare function createReflection(_context: EnvPluginContext): {};
12
+ //#endregion
13
+ export { createReflection as t };
14
+ //# sourceMappingURL=create-reflection-resource-CCpA76Yq.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-reflection-resource-CCpA76Yq.d.mts","names":[],"sources":["../src/helpers/create-reflection-resource.ts"],"sourcesContent":[],"mappings":";;;;;;AA0BA;;;;iBAAgB,gBAAA,WAA2B"}
@@ -0,0 +1,23 @@
1
+ import { t as __ΩEnvPluginContext } from "./plugin-eBjQJP6x.mjs";
2
+
3
+ //#region src/helpers/create-reflection-resource.ts
4
+ /**
5
+ * Creates a reflection resource for the environment configuration.
6
+ *
7
+ * @param context - The environment plugin context.
8
+ * @returns A resource that provides the reflection of the environment configuration.
9
+ */
10
+ function createReflection(_context) {
11
+ return {};
12
+ }
13
+ createReflection.__type = [
14
+ () => __ΩEnvPluginContext,
15
+ "_context",
16
+ "createReflection",
17
+ "Creates a reflection resource for the environment configuration.",
18
+ "Pn!2\"\"/#?$"
19
+ ];
20
+
21
+ //#endregion
22
+ export { createReflection as t };
23
+ //# sourceMappingURL=create-reflection-resource-D0QrD1Td.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-reflection-resource-D0QrD1Td.mjs","names":[],"sources":["../src/helpers/create-reflection-resource.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { EnvPluginContext } from \"../types/plugin\";\n\n/**\n * Creates a reflection resource for the environment configuration.\n *\n * @param context - The environment plugin context.\n * @returns A resource that provides the reflection of the environment configuration.\n */\nexport function createReflection(_context: EnvPluginContext) {\n // const defaultValue = computed(\n // () => context && loadEnvFromContext(context, process.env)\n // );\n\n return {};\n\n // return computed(() => {\n // result.getProperties().forEach(prop => {\n // const aliases = prop.getAlias();\n // aliases.filter(Boolean).forEach(alias => {\n // result.addProperty({\n // name: alias,\n // optional: prop.isOptional() ? true : undefined,\n // readonly: prop.isReadonly() ? true : undefined,\n // description: prop.getDescription(),\n // visibility: prop.getVisibility(),\n // type: prop.getType(),\n // default: prop.getDefaultValue(),\n // tags: {\n // hidden: prop.isHidden(),\n // ignore: prop.isIgnored(),\n // internal: prop.isInternal(),\n // alias: prop\n // .getAlias()\n // .filter(a => a !== alias)\n // .concat(prop.name),\n // title: prop.getTitle() || titleCase(prop.name),\n // readonly: prop.isReadonly(),\n // permission: prop.getPermission(),\n // domain: prop.getDomain()\n // }\n // });\n // });\n // });\n\n // result.getProperties().forEach(prop => {\n // prop.setDefaultValue(\n // (defaultValue.value as Record<string, any>)?.[prop.getNameAsString()] ??\n // prop\n // .getAlias()\n // .reduce(\n // (ret, alias) =>\n // ret ?? (defaultValue.value as Record<string, any>)?.[alias],\n // undefined\n // ) ??\n // prop.getDefaultValue()\n // );\n // });\n // });\n}\n"],"mappings":";;;;;;;;;;AAYI,QAAO,EAAE;;AA4Cb,iBAAiB,SAAS;OAAO;CAAK;CAAA;CAAA;CAAA;CAAA"}
@@ -0,0 +1,27 @@
1
+ const require_plugin = require('./plugin-CM1TSv1B.cjs');
2
+
3
+ //#region src/helpers/create-reflection-resource.ts
4
+ /**
5
+ * Creates a reflection resource for the environment configuration.
6
+ *
7
+ * @param context - The environment plugin context.
8
+ * @returns A resource that provides the reflection of the environment configuration.
9
+ */
10
+ function createReflection(_context) {
11
+ return {};
12
+ }
13
+ createReflection.__type = [
14
+ () => require_plugin.__ΩEnvPluginContext,
15
+ "_context",
16
+ "createReflection",
17
+ "Creates a reflection resource for the environment configuration.",
18
+ "Pn!2\"\"/#?$"
19
+ ];
20
+
21
+ //#endregion
22
+ Object.defineProperty(exports, 'createReflection', {
23
+ enumerable: true,
24
+ get: function () {
25
+ return createReflection;
26
+ }
27
+ });
@@ -1,11 +1,10 @@
1
1
  import { t as joinPaths } from "./join-paths-BMg51Ddi.mjs";
2
- import { t as createReflectionResource } from "./create-reflection-resource-B3friIs9.mjs";
3
2
  import { t as getDocsOutputPath } from "./docs-helper-2fe7M3Th.mjs";
4
3
  import { stringifyType } from "@powerlines/deepkit/vendor/type";
5
- import { Show, code } from "@alloy-js/core";
6
4
  import { createComponent, createIntrinsic, mergeProps } from "@alloy-js/core/jsx-runtime";
5
+ import { Show, code } from "@alloy-js/core";
7
6
  import { Heading, Link } from "@alloy-js/markdown";
8
- import { usePowerlinesSafe } from "@powerlines/plugin-alloy/core/contexts/context";
7
+ import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
9
8
  import { MarkdownFile } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
10
9
  import { MarkdownTable } from "@powerlines/plugin-alloy/markdown/components/markdown-table";
11
10
 
@@ -14,10 +13,8 @@ import { MarkdownTable } from "@powerlines/plugin-alloy/markdown/components/mark
14
13
  * Generates the environment configuration markdown documentation for the Powerlines project.
15
14
  */
16
15
  function EnvDocsFile(props) {
17
- const { levelOffset = 0, ...rest } = props;
18
- const context = usePowerlinesSafe();
19
- if (!context) return null;
20
- const reflection = createReflectionResource(context);
16
+ const { levelOffset = 0, reflection, ...rest } = props;
17
+ const context = usePowerlines();
21
18
  return createComponent(MarkdownFile, mergeProps({ get path() {
22
19
  return joinPaths(getDocsOutputPath(context), "env.md");
23
20
  } }, rest, { get children() {
@@ -29,12 +26,12 @@ function EnvDocsFile(props) {
29
26
  code`Below is a list of environment variables used by the`,
30
27
  createComponent(Show, {
31
28
  get when() {
32
- return !!context?.packageJson.name;
29
+ return !!context.packageJson.name;
33
30
  },
34
31
  get children() {
35
32
  return createComponent(Link, {
36
33
  get href() {
37
- return `https://www.npmjs.com/package/${context?.packageJson.name}`;
34
+ return `https://www.npmjs.com/package/${context.packageJson.name}`;
38
35
  },
39
36
  get title() {
40
37
  return context.packageJson.name;
@@ -51,7 +48,7 @@ function EnvDocsFile(props) {
51
48
  code`The below list of environment variables are used as configuration parameters to drive the processing of the application. The data contained in these variables are **not** considered sensitive or confidential. Any values provided in these variables will be available in plain text to the public.`,
52
49
  createIntrinsic("hbr", {}),
53
50
  createComponent(MarkdownTable, { get data() {
54
- return reflection.data?.getProperties().filter((property) => property.getNameAsString() !== "__STORM_INJECTED__").sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())).map((reflectionProperty) => {
51
+ return reflection?.getProperties().filter((property) => property.getNameAsString() !== "__STORM_INJECTED__").sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())).map((reflectionProperty) => {
55
52
  return {
56
53
  name: reflectionProperty.getNameAsString().trim(),
57
54
  description: (reflectionProperty.getDescription() ?? "").trim(),
@@ -67,4 +64,4 @@ function EnvDocsFile(props) {
67
64
 
68
65
  //#endregion
69
66
  export { EnvDocsFile as t };
70
- //# sourceMappingURL=docs-DbRoWmL_.mjs.map
67
+ //# sourceMappingURL=docs-B4Bd2HuK.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docs-B4Bd2HuK.mjs","names":["code","Show","Heading","Link","stringifyType","usePowerlines","MarkdownFile","MarkdownTable","joinPaths","getDocsOutputPath","EnvDocsFile","props","levelOffset","reflection","rest","context","_$createComponent","_$mergeProps","path","children","level","when","packageJson","name","href","title","_$createIntrinsic","data","getProperties","filter","property","getNameAsString","sort","a","b","localeCompare","map","reflectionProperty","trim","description","getDescription","type","getType","replaceAll","defaultValue","hasDefault","String","getDefaultValue","includes","required","isValueRequired"],"sources":["../src/components/docs.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, Show } from \"@alloy-js/core\";\nimport { Heading, Link } from \"@alloy-js/markdown\";\nimport {\n ReflectionClass,\n stringifyType\n} from \"@powerlines/deepkit/vendor/type\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport {\n MarkdownFile,\n MarkdownFileProps\n} from \"@powerlines/plugin-alloy/markdown/components/markdown-file\";\nimport { MarkdownTable } from \"@powerlines/plugin-alloy/markdown/components/markdown-table\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { getDocsOutputPath } from \"../helpers/docs-helper\";\nimport { EnvPluginContext } from \"../types/plugin\";\n\nexport interface EnvDocsFileProps extends Partial<MarkdownFileProps> {\n /**\n * The heading level offset to apply to the generated documentation.\n *\n * @remarks\n * This is useful when nesting the documentation within other markdown files.\n *\n * @defaultValue 0\n */\n levelOffset?: number;\n\n reflection: ReflectionClass<any>;\n}\n\n/**\n * Generates the environment configuration markdown documentation for the Powerlines project.\n */\nexport function EnvDocsFile(props: EnvDocsFileProps) {\n const { levelOffset = 0, reflection, ...rest } = props;\n\n const context = usePowerlines<EnvPluginContext>();\n\n return (\n <MarkdownFile\n path={joinPaths(getDocsOutputPath(context), \"env.md\")}\n {...rest}>\n <Heading level={1 + levelOffset}>Environment Configuration</Heading>\n {code`Below is a list of environment variables used by the`}\n <Show when={!!context.packageJson.name}>\n <Link\n href={`https://www.npmjs.com/package/${context.packageJson.name}`}\n title={context.packageJson.name!}\n />\n </Show>\n {code`package. These values can be updated in the \\`.env\\` file in the root of the project.`}\n <hbr />\n <Heading level={2 + levelOffset}>Environment Variables</Heading>\n {code`The below list of environment variables are used as configuration parameters to drive the processing of the application. The data contained in these variables are **not** considered sensitive or confidential. Any values provided in these variables will be available in plain text to the public.`}\n <hbr />\n <MarkdownTable\n data={\n reflection\n ?.getProperties()\n .filter(\n property => property.getNameAsString() !== \"__STORM_INJECTED__\"\n )\n .sort((a, b) =>\n a.getNameAsString().localeCompare(b.getNameAsString())\n )\n .map(reflectionProperty => {\n return {\n name: reflectionProperty.getNameAsString().trim(),\n description: (reflectionProperty.getDescription() ?? \"\").trim(),\n type: stringifyType(reflectionProperty.getType())\n .trim()\n .replaceAll(\" | \", \", or \"),\n defaultValue: reflectionProperty.hasDefault()\n ? String(reflectionProperty.getDefaultValue())?.includes('\"')\n ? reflectionProperty.getDefaultValue()\n : `\\`${reflectionProperty.getDefaultValue()}\\``\n : \"\",\n required: reflectionProperty.isValueRequired() ? \"\" : \"✔\"\n };\n }) ?? []\n }\n />\n </MarkdownFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAmDA,SAAgBU,YAAYC,OAAyB;CACnD,MAAM,EAAEC,cAAc,GAAGC,YAAY,GAAGC,SAASH;CAEjD,MAAMI,UAAUV,eAAiC;AAEjD,QAAAW,gBACGV,cAAYW,WAAA,EAAA,IACXC,OAAI;AAAA,SAAEV,UAAUC,kBAAkBM,QAAQ,EAAE,SAAS;IAAA,EACjDD,MAAI,EAAA,IAAAK,WAAA;AAAA,SAAA;GAAAH,gBACPd,SAAO;IAACkB,OAAO,IAAIR;IAAWO,UAAA;IAAA,CAAA;GAC9BnB,IAAI;GAAsDgB,gBAC1Df,MAAI;IAAA,IAACoB,OAAI;AAAA,YAAE,CAAC,CAACN,QAAQO,YAAYC;;IAAI,IAAAJ,WAAA;AAAA,YAAAH,gBACnCb,MAAI;MAAA,IACHqB,OAAI;AAAA,cAAE,iCAAiCT,QAAQO,YAAYC;;MAAM,IACjEE,QAAK;AAAA,cAAEV,QAAQO,YAAYC;;MAAI,CAAA;;IAAA,CAAA;GAGlCvB,IAAI;GAAuF0B,gBAAA,OAAA,EAAA,CAAA;GAAAV,gBAE3Fd,SAAO;IAACkB,OAAO,IAAIR;IAAWO,UAAA;IAAA,CAAA;GAC9BnB,IAAI;GAAwS0B,gBAAA,OAAA,EAAA,CAAA;GAAAV,gBAE5ST,eAAa,EAAA,IACZoB,OAAI;AAAA,WACFd,YACIe,eAAe,CAChBC,QACCC,aAAYA,SAASC,iBAAiB,KAAK,qBAC5C,CACAC,MAAMC,GAAGC,MACRD,EAAEF,iBAAiB,CAACI,cAAcD,EAAEH,iBAAiB,CACvD,CAAC,CACAK,KAAIC,uBAAsB;AACzB,YAAO;MACLd,MAAMc,mBAAmBN,iBAAiB,CAACO,MAAM;MACjDC,cAAcF,mBAAmBG,gBAAgB,IAAI,IAAIF,MAAM;MAC/DG,MAAMrC,cAAciC,mBAAmBK,SAAS,CAAC,CAC9CJ,MAAM,CACNK,WAAW,OAAO,QAAQ;MAC7BC,cAAcP,mBAAmBQ,YAAY,GACzCC,OAAOT,mBAAmBU,iBAAiB,CAAC,EAAEC,SAAS,KAAI,GACzDX,mBAAmBU,iBAAiB,GACpC,KAAKV,mBAAmBU,iBAAiB,CAAA,MAC3C;MACJE,UAAUZ,mBAAmBa,iBAAiB,GAAG,KAAK;MACvD;MACD,IAAI,EAAE;MAAA,CAAA;GAAA;IAAA,CAAA,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import * as _alloy_js_core0 from "@alloy-js/core";
2
+ import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
2
3
  import { MarkdownFileProps } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
3
4
 
4
5
  //#region src/components/docs.d.ts
@@ -12,6 +13,7 @@ interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
12
13
  * @defaultValue 0
13
14
  */
14
15
  levelOffset?: number;
16
+ reflection: ReflectionClass<any>;
15
17
  }
16
18
  /**
17
19
  * Generates the environment configuration markdown documentation for the Powerlines project.
@@ -20,4 +22,4 @@ declare function EnvDocsFile(props: EnvDocsFileProps): _alloy_js_core0.Children;
20
22
  declare type __ΩEnvDocsFileProps = any[];
21
23
  //#endregion
22
24
  export { EnvDocsFileProps as n, __ΩEnvDocsFileProps as r, EnvDocsFile as t };
23
- //# sourceMappingURL=docs-B0d8pdIg.d.mts.map
25
+ //# sourceMappingURL=docs-BAKwE4PJ.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docs-BAKwE4PJ.d.cts","names":[],"sources":["../src/components/docs.tsx"],"sourcesContent":[],"mappings":";;;;;UAkCiB,gBAAA,SAAyB,QAAQ;;;AAAlD;;;;;AAiBA;;cANc;;;;;iBAME,WAAA,QAAmB,mBAAgB,eAAA,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
1
2
  import * as _alloy_js_core0 from "@alloy-js/core";
2
3
  import { MarkdownFileProps } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
3
4
 
@@ -12,6 +13,7 @@ interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
12
13
  * @defaultValue 0
13
14
  */
14
15
  levelOffset?: number;
16
+ reflection: ReflectionClass<any>;
15
17
  }
16
18
  /**
17
19
  * Generates the environment configuration markdown documentation for the Powerlines project.
@@ -20,4 +22,4 @@ declare function EnvDocsFile(props: EnvDocsFileProps): _alloy_js_core0.Children;
20
22
  declare type __ΩEnvDocsFileProps = any[];
21
23
  //#endregion
22
24
  export { EnvDocsFileProps as n, __ΩEnvDocsFileProps as r, EnvDocsFile as t };
23
- //# sourceMappingURL=docs-DMfzQuvP.d.cts.map
25
+ //# sourceMappingURL=docs-CVf-w8oz.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docs-CVf-w8oz.d.mts","names":[],"sources":["../src/components/docs.tsx"],"sourcesContent":[],"mappings":";;;;;UAkCiB,gBAAA,SAAyB,QAAQ;;;AAAlD;;;;;AAiBA;;cANc;;;;;iBAME,WAAA,QAAmB,mBAAgB,eAAA,CAAA"}
@@ -1,10 +1,9 @@
1
1
  const require_chunk = require('./chunk-CNVrAnJR.cjs');
2
2
  const require_join_paths = require('./join-paths-Bc4rM2TX.cjs');
3
- const require_create_reflection_resource = require('./create-reflection-resource-BJj83ii4.cjs');
4
3
  const require_docs_helper = require('./docs-helper-4MoQ5-R3.cjs');
5
4
  let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
6
- let __alloy_js_core = require("@alloy-js/core");
7
5
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
+ let __alloy_js_core = require("@alloy-js/core");
8
7
  let __alloy_js_markdown = require("@alloy-js/markdown");
9
8
  let __powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
10
9
  let __powerlines_plugin_alloy_markdown_components_markdown_file = require("@powerlines/plugin-alloy/markdown/components/markdown-file");
@@ -15,10 +14,8 @@ let __powerlines_plugin_alloy_markdown_components_markdown_table = require("@pow
15
14
  * Generates the environment configuration markdown documentation for the Powerlines project.
16
15
  */
17
16
  function EnvDocsFile(props) {
18
- const { levelOffset = 0, ...rest } = props;
19
- const context = (0, __powerlines_plugin_alloy_core_contexts_context.usePowerlinesSafe)();
20
- if (!context) return null;
21
- const reflection = require_create_reflection_resource.createReflectionResource(context);
17
+ const { levelOffset = 0, reflection, ...rest } = props;
18
+ const context = (0, __powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
22
19
  return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_markdown_components_markdown_file.MarkdownFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get path() {
23
20
  return require_join_paths.joinPaths(require_docs_helper.getDocsOutputPath(context), "env.md");
24
21
  } }, rest, { get children() {
@@ -30,12 +27,12 @@ function EnvDocsFile(props) {
30
27
  __alloy_js_core.code`Below is a list of environment variables used by the`,
31
28
  (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
32
29
  get when() {
33
- return !!context?.packageJson.name;
30
+ return !!context.packageJson.name;
34
31
  },
35
32
  get children() {
36
33
  return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_markdown.Link, {
37
34
  get href() {
38
- return `https://www.npmjs.com/package/${context?.packageJson.name}`;
35
+ return `https://www.npmjs.com/package/${context.packageJson.name}`;
39
36
  },
40
37
  get title() {
41
38
  return context.packageJson.name;
@@ -52,7 +49,7 @@ function EnvDocsFile(props) {
52
49
  __alloy_js_core.code`The below list of environment variables are used as configuration parameters to drive the processing of the application. The data contained in these variables are **not** considered sensitive or confidential. Any values provided in these variables will be available in plain text to the public.`,
53
50
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
54
51
  (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_markdown_components_markdown_table.MarkdownTable, { get data() {
55
- return reflection.data?.getProperties().filter((property) => property.getNameAsString() !== "__STORM_INJECTED__").sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())).map((reflectionProperty) => {
52
+ return reflection?.getProperties().filter((property) => property.getNameAsString() !== "__STORM_INJECTED__").sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())).map((reflectionProperty) => {
56
53
  return {
57
54
  name: reflectionProperty.getNameAsString().trim(),
58
55
  description: (reflectionProperty.getDescription() ?? "").trim(),
@@ -1,11 +1,10 @@
1
1
  const require_chunk = require('./chunk-CNVrAnJR.cjs');
2
2
  const require_defu = require('./defu-CrqNIh1A.cjs');
3
3
  const require_load = require('./load-DPB0maqs.cjs');
4
- const require_create_reflection_resource = require('./create-reflection-resource-BJj83ii4.cjs');
5
4
  let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
6
5
  let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
7
- let __alloy_js_core = require("@alloy-js/core");
8
6
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
7
+ let __alloy_js_core = require("@alloy-js/core");
9
8
  let __powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
10
9
  let __alloy_js_typescript = require("@alloy-js/typescript");
11
10
  let __powerlines_plugin_alloy_helpers_refkey = require("@powerlines/plugin-alloy/helpers/refkey");
@@ -21,8 +20,7 @@ let __stryke_type_checks_is_null = require("@stryke/type-checks/is-null");
21
20
  */
22
21
  function EnvTypeDefinition(props) {
23
22
  const [{ defaultValue, reflection }] = (0, __alloy_js_core.splitProps)(props, ["defaultValue", "reflection"]);
24
- const context = (0, __powerlines_plugin_alloy_core_contexts_context.usePowerlinesSafe)();
25
- if (!context) return null;
23
+ const context = (0, __powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
26
24
  return [
27
25
  (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_typescript_interface.TypeScriptInterface, {
28
26
  name: " EnvBase",
@@ -54,7 +52,6 @@ function EnvTypeDefinition(props) {
54
52
  }
55
53
  function ConfigPropertyConditional(props) {
56
54
  const [{ context, name }] = (0, __alloy_js_core.splitProps)(props, ["context", "name"]);
57
- if (!context) return null;
58
55
  return __alloy_js_core.code`propertyName === "${name}" || propertyName.replace(/^(${context.config.env.prefix.sort((a, b) => a.startsWith(b) ? -1 : b.startsWith(a) ? 1 : a.localeCompare(b)).map((prefix) => `${prefix.replace(/_$/, "")}_`).join("|")})/g, "").toLowerCase().replace(/[\\s\\-_]+/g, "") === "${name.toLowerCase().replace(/[\s\-_]+/g, "")}"`;
59
56
  }
60
57
  function ConfigPropertyGet(props) {
@@ -63,7 +60,6 @@ function ConfigPropertyGet(props) {
63
60
  "property",
64
61
  "index"
65
62
  ]);
66
- if (!context) return null;
67
63
  return [index === 0 ? (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.IfStatement, {
68
64
  get condition() {
69
65
  return [(0, __alloy_js_core_jsx_runtime.createComponent)(ConfigPropertyConditional, {
@@ -128,7 +124,6 @@ function ConfigPropertySet(props) {
128
124
  "property",
129
125
  "index"
130
126
  ]);
131
- if (!context) return null;
132
127
  return [index === 0 ? (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.IfStatement, {
133
128
  get condition() {
134
129
  return [(0, __alloy_js_core_jsx_runtime.createComponent)(ConfigPropertyConditional, {
@@ -200,19 +195,22 @@ const envSerializerRefkey = (0, __powerlines_plugin_alloy_helpers_refkey.refkey)
200
195
  * Generates the environment configuration module for the Powerlines project.
201
196
  */
202
197
  function EnvBuiltin(props) {
203
- const [{ defaultConfig, children }, rest] = (0, __alloy_js_core.splitProps)(props, ["defaultConfig", "children"]);
204
- const context = (0, __powerlines_plugin_alloy_core_contexts_context.usePowerlinesSafe)();
198
+ const [{ defaultConfig, reflection, children }, rest] = (0, __alloy_js_core.splitProps)(props, [
199
+ "defaultConfig",
200
+ "reflection",
201
+ "children"
202
+ ]);
203
+ const context = (0, __powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
205
204
  const defaultValue = (0, __alloy_js_core.computed)(() => context && require_load.loadEnvFromContext(context, process.env));
206
- const reflection = require_create_reflection_resource.createReflectionResource(context);
207
205
  const envInstance = (0, __alloy_js_core.computed)(() => {
208
206
  return new __powerlines_deepkit_vendor_type.ReflectionClass({
209
207
  kind: __powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral,
210
208
  description: `The initial environment configuration state for the ${(0, __stryke_string_format_title_case.titleCase)(context?.config?.name)} project.`,
211
209
  types: []
212
- }, reflection.data ?? void 0);
210
+ }, reflection);
213
211
  });
214
- const reflectionGetProperties = (0, __alloy_js_core.computed)(() => reflection.data?.getProperties().filter((property) => !property.isIgnored()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
215
- const reflectionSetProperties = (0, __alloy_js_core.computed)(() => reflection.data?.getProperties().filter((property) => !property.isIgnored() && !property.isReadonly()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
212
+ const reflectionGetProperties = (0, __alloy_js_core.computed)(() => reflection?.getProperties().filter((property) => !property.isIgnored()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
213
+ const reflectionSetProperties = (0, __alloy_js_core.computed)(() => reflection?.getProperties().filter((property) => !property.isIgnored() && !property.isReadonly()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
216
214
  return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_builtin_file.BuiltinFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({
217
215
  id: "env",
218
216
  description: "The environment configuration module provides an interface to define environment configuration parameters."
@@ -235,7 +233,7 @@ function EnvBuiltin(props) {
235
233
  return [
236
234
  (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
237
235
  get when() {
238
- return !(0, __stryke_type_checks_is_null.isNull)(reflection.data);
236
+ return !(0, __stryke_type_checks_is_null.isNull)(reflection);
239
237
  },
240
238
  get children() {
241
239
  return [
@@ -243,9 +241,7 @@ function EnvBuiltin(props) {
243
241
  get defaultValue() {
244
242
  return defaultValue.value;
245
243
  },
246
- get reflection() {
247
- return reflection.data;
248
- }
244
+ reflection
249
245
  }),
250
246
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
251
247
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})