@powerlines/plugin-alloy 0.19.19 → 0.19.20

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 (113) hide show
  1. package/dist/{builtin-file-TfCniW_K.d.cts → builtin-file-B8i70dXV.d.cts} +4 -4
  2. package/dist/{builtin-file-TfCniW_K.d.cts.map → builtin-file-B8i70dXV.d.cts.map} +1 -1
  3. package/dist/{builtin-file-B8yP216k.d.mts → builtin-file-BGdpbEbj.d.cts} +3 -3
  4. package/dist/{builtin-file-B8yP216k.d.mts.map → builtin-file-BGdpbEbj.d.cts.map} +1 -1
  5. package/dist/core/components/index.cjs +1 -1
  6. package/dist/core/components/index.d.cts +3 -3
  7. package/dist/core/components/index.mjs +1 -1
  8. package/dist/core/components/output.cjs +1 -1
  9. package/dist/core/components/output.d.cts +1 -1
  10. package/dist/core/components/output.mjs +1 -1
  11. package/dist/core/components/single-line-comment.d.cts +1 -1
  12. package/dist/core/components/source-file.d.cts +1 -1
  13. package/dist/core/index.cjs +1 -1
  14. package/dist/core/index.d.cts +3 -3
  15. package/dist/core/index.mjs +1 -1
  16. package/dist/{dynamic-import-statement-DNJlI3ND.d.cts → dynamic-import-statement-1w1twQi-.d.cts} +3 -3
  17. package/dist/{dynamic-import-statement-DNJlI3ND.d.cts.map → dynamic-import-statement-1w1twQi-.d.cts.map} +1 -1
  18. package/dist/{dynamic-import-statement-C5uIfUk9.d.cts → dynamic-import-statement-BYgPjHeV.d.cts} +3 -3
  19. package/dist/{dynamic-import-statement-C5uIfUk9.d.cts.map → dynamic-import-statement-BYgPjHeV.d.cts.map} +1 -1
  20. package/dist/{entry-file-BiYORvQI.d.mts → entry-file-BvT-Ru1U.d.mts} +3 -3
  21. package/dist/{entry-file-BRFvWEkh.d.cts.map → entry-file-BvT-Ru1U.d.mts.map} +1 -1
  22. package/dist/{entry-file-DyS8FA-U.d.mts → entry-file-BwhOJerl.d.cts} +4 -4
  23. package/dist/{entry-file-BiYORvQI.d.mts.map → entry-file-BwhOJerl.d.cts.map} +1 -1
  24. package/dist/{entry-file-DYSbQFCX.d.cts → entry-file-CmXeSADG.d.cts} +4 -4
  25. package/dist/{entry-file-DYSbQFCX.d.cts.map → entry-file-CmXeSADG.d.cts.map} +1 -1
  26. package/dist/{entry-file-BRFvWEkh.d.cts → entry-file-rPljNeWX.d.mts} +4 -4
  27. package/dist/{entry-file-DyS8FA-U.d.mts.map → entry-file-rPljNeWX.d.mts.map} +1 -1
  28. package/dist/{front-matter-BGxm_xQp.d.mts → front-matter-C15vIJ6p.d.mts} +3 -3
  29. package/dist/{front-matter-BGxm_xQp.d.mts.map → front-matter-C15vIJ6p.d.mts.map} +1 -1
  30. package/dist/{front-matter-u9H7VPAF.d.cts → front-matter-C5Y0CcAP.d.cts} +3 -3
  31. package/dist/{front-matter-u9H7VPAF.d.cts.map → front-matter-C5Y0CcAP.d.cts.map} +1 -1
  32. package/dist/{front-matter-Cp971E26.d.cts → front-matter-Cg5TYuqs.d.cts} +3 -3
  33. package/dist/{front-matter-Cp971E26.d.cts.map → front-matter-Cg5TYuqs.d.cts.map} +1 -1
  34. package/dist/index.cjs +31 -45
  35. package/dist/index.d.cts.map +1 -1
  36. package/dist/index.d.mts.map +1 -1
  37. package/dist/index.mjs +31 -45
  38. package/dist/index.mjs.map +1 -1
  39. package/dist/markdown/components/front-matter.d.cts +1 -1
  40. package/dist/markdown/components/index.d.cts +4 -4
  41. package/dist/markdown/components/markdown-file.d.cts +3 -3
  42. package/dist/markdown/components/markdown-table.d.cts +1 -1
  43. package/dist/markdown/index.d.cts +4 -4
  44. package/dist/{markdown-file-K4zYXgeA.d.mts → markdown-file-BqGe9H2U.d.mts} +6 -6
  45. package/dist/{markdown-file-CfI5rBqC.d.cts.map → markdown-file-BqGe9H2U.d.mts.map} +1 -1
  46. package/dist/{markdown-file-B5GGuGIb.d.cts → markdown-file-CNQ2Qiog.d.cts} +6 -6
  47. package/dist/{markdown-file-B5GGuGIb.d.cts.map → markdown-file-CNQ2Qiog.d.cts.map} +1 -1
  48. package/dist/{markdown-file-CfI5rBqC.d.cts → markdown-file-DwcMFywu.d.cts} +6 -6
  49. package/dist/{markdown-file-K4zYXgeA.d.mts.map → markdown-file-DwcMFywu.d.cts.map} +1 -1
  50. package/dist/{markdown-table-AoJIzA89.d.cts → markdown-table-B5WFvkir.d.cts} +5 -5
  51. package/dist/{markdown-table-AoJIzA89.d.cts.map → markdown-table-B5WFvkir.d.cts.map} +1 -1
  52. package/dist/markdown-table-Br2Ihl2z.d.cts.map +1 -1
  53. package/dist/{markdown-table-ChP2BUmY.d.mts → markdown-table-CkkMpz9R.d.cts} +7 -7
  54. package/dist/markdown-table-CkkMpz9R.d.cts.map +1 -0
  55. package/dist/{markdown-table-O1wIj_h2.d.cts → markdown-table-NktfmVNI.d.mts} +3 -3
  56. package/dist/{markdown-table-ChP2BUmY.d.mts.map → markdown-table-NktfmVNI.d.mts.map} +1 -1
  57. package/dist/output-7KuLjL1Z.d.mts.map +1 -1
  58. package/dist/{output-D_l1fJEz.cjs → output-C_HbhAbZ.cjs} +13 -17
  59. package/dist/{output-C_XWpqr8.mjs → output-ChglaMN2.mjs} +15 -19
  60. package/dist/output-ChglaMN2.mjs.map +1 -0
  61. package/dist/output-DWAO1J8V.d.cts.map +1 -1
  62. package/dist/output-DnRnJ4ky.d.cts +24 -0
  63. package/dist/output-DnRnJ4ky.d.cts.map +1 -0
  64. package/dist/output-cm5u8ERz.d.mts.map +1 -1
  65. package/dist/reflection-xU09ifzp.d.cts.map +1 -1
  66. package/dist/{single-line-comment-i_GFqXcl.d.mts → single-line-comment-BDm_3s_M.d.mts} +3 -3
  67. package/dist/{single-line-comment-i_GFqXcl.d.mts.map → single-line-comment-BDm_3s_M.d.mts.map} +1 -1
  68. package/dist/single-line-comment-DZMz1Vam.d.cts +23 -0
  69. package/dist/single-line-comment-DZMz1Vam.d.cts.map +1 -0
  70. package/dist/{source-file-CE5xdm7N.d.cts → source-file-BLon-0Ab.d.cts} +3 -3
  71. package/dist/{source-file-CE5xdm7N.d.cts.map → source-file-BLon-0Ab.d.cts.map} +1 -1
  72. package/dist/{source-file-DCop3D-p.d.mts → source-file-C8C0iwF_.d.cts} +4 -4
  73. package/dist/{source-file-DCop3D-p.d.mts.map → source-file-C8C0iwF_.d.cts.map} +1 -1
  74. package/dist/tsdoc-CfvwK4Ml.d.cts.map +1 -1
  75. package/dist/tsdoc-reflection-C9xz66rR.d.mts +19 -0
  76. package/dist/{tsdoc-reflection-B4bfElmj.d.cts.map → tsdoc-reflection-C9xz66rR.d.mts.map} +1 -1
  77. package/dist/{tsdoc-reflection-B4bfElmj.d.cts → tsdoc-reflection-E8d0QSjq.d.cts} +5 -5
  78. package/dist/tsdoc-reflection-E8d0QSjq.d.cts.map +1 -0
  79. package/dist/{tsdoc-reflection-Dggzpjh7.d.cts → tsdoc-reflection-VzARjkhT.d.cts} +5 -5
  80. package/dist/tsdoc-reflection-VzARjkhT.d.cts.map +1 -0
  81. package/dist/typescript/components/builtin-file.d.cts +3 -3
  82. package/dist/typescript/components/dynamic-import-statement.d.cts +1 -1
  83. package/dist/typescript/components/dynamic-import-statement.d.mts +1 -1
  84. package/dist/typescript/components/entry-file.d.cts +3 -3
  85. package/dist/typescript/components/entry-file.d.mts +1 -1
  86. package/dist/typescript/components/index.d.cts +8 -8
  87. package/dist/typescript/components/index.d.mts +2 -2
  88. package/dist/typescript/components/tsdoc-reflection.d.cts +1 -1
  89. package/dist/typescript/components/typescript-file.d.cts +2 -2
  90. package/dist/typescript/components/typescript-interface.d.cts +1 -1
  91. package/dist/typescript/components/typescript-object.d.cts +1 -1
  92. package/dist/typescript/index.d.cts +8 -8
  93. package/dist/typescript/index.d.mts +2 -2
  94. package/dist/{typescript-file-C-RWh7Rs.d.cts → typescript-file-DmQI5WH4.d.cts} +2 -2
  95. package/dist/{typescript-file-0czkIl79.d.mts.map → typescript-file-DmQI5WH4.d.cts.map} +1 -1
  96. package/dist/{typescript-file-0czkIl79.d.mts → typescript-file-QfSrelxz.d.cts} +3 -3
  97. package/dist/{typescript-file-C-RWh7Rs.d.cts.map → typescript-file-QfSrelxz.d.cts.map} +1 -1
  98. package/dist/{typescript-interface-BJ2W6gOm.d.cts → typescript-interface-Bek_D_h9.d.cts} +4 -4
  99. package/dist/{typescript-interface-BJ2W6gOm.d.cts.map → typescript-interface-Bek_D_h9.d.cts.map} +1 -1
  100. package/dist/{typescript-interface-D-d9A720.d.cts → typescript-interface-CfEv7ztG.d.cts} +4 -4
  101. package/dist/{typescript-interface-D-d9A720.d.cts.map → typescript-interface-CfEv7ztG.d.cts.map} +1 -1
  102. package/dist/{typescript-object-v1WiBD8W.d.cts → typescript-object-BM6loB13.d.cts} +4 -4
  103. package/dist/{typescript-object-v1WiBD8W.d.cts.map → typescript-object-BM6loB13.d.cts.map} +1 -1
  104. package/dist/{typescript-object-CSlztYKM.d.mts → typescript-object-DySVkt22.d.mts} +4 -4
  105. package/dist/{typescript-object-CSlztYKM.d.mts.map → typescript-object-DySVkt22.d.mts.map} +1 -1
  106. package/package.json +6 -6
  107. package/dist/builtin-file-Pnvf0Mjt.d.cts +0 -35
  108. package/dist/builtin-file-Pnvf0Mjt.d.cts.map +0 -1
  109. package/dist/dynamic-import-statement-SPYQPFtB.d.mts +0 -33
  110. package/dist/dynamic-import-statement-SPYQPFtB.d.mts.map +0 -1
  111. package/dist/markdown-table-O1wIj_h2.d.cts.map +0 -1
  112. package/dist/output-C_XWpqr8.mjs.map +0 -1
  113. package/dist/tsdoc-reflection-Dggzpjh7.d.cts.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { h as TSDocModuleProps } from "./tsdoc-CfvwK4Ml.cjs";
2
- import { o as TypescriptFileProps } from "./typescript-file-C-RWh7Rs.cjs";
3
- import * as _alloy_js_core6 from "@alloy-js/core";
2
+ import { o as TypescriptFileProps } from "./typescript-file-QfSrelxz.cjs";
3
+ import * as _alloy_js_core10 from "@alloy-js/core";
4
4
 
5
5
  //#region src/typescript/components/builtin-file.d.ts
6
6
  type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
@@ -28,8 +28,8 @@ type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProp
28
28
  * @param props - The properties for the source file.
29
29
  * @returns The rendered source file component.
30
30
  */
31
- declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core6.Children;
31
+ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core10.Children;
32
32
  declare type __ΩBuiltinFileProps = any[];
33
33
  //#endregion
34
34
  export { BuiltinFileProps as n, __ΩBuiltinFileProps as r, BuiltinFile as t };
35
- //# sourceMappingURL=builtin-file-TfCniW_K.d.cts.map
35
+ //# sourceMappingURL=builtin-file-B8i70dXV.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"builtin-file-TfCniW_K.d.cts","names":[],"sources":["../src/typescript/components/builtin-file.tsx"],"sourcesContent":[],"mappings":";;;;;KAgCY,gBAAA,GAAmB,KAAK,+BAClC,KAAK;;;AADP;;;;EACE,EAAA,EAAA,MAAA;EAAI;AA4BN;;;;;;;;;;;;;;;;iBAAgB,WAAA,QAAmB,mBAAgB,eAAA,CAAA"}
1
+ {"version":3,"file":"builtin-file-B8i70dXV.d.cts","names":[],"sources":["../src/typescript/components/builtin-file.tsx"],"sourcesContent":[],"mappings":";;;;;KAgCY,gBAAA,GAAmB,KAAK,+BAClC,KAAK;;;AADP;;;;EACE,EAAA,EAAA,MAAA;EAAI;AA4BN;;;;;;;;;;;;;;;;iBAAgB,WAAA,QAAmB,mBAAgB,gBAAA,CAAA"}
@@ -1,5 +1,5 @@
1
- import { h as TSDocModuleProps } from "./tsdoc-B2PbOibk.mjs";
2
- import { o as TypescriptFileProps } from "./typescript-file-0czkIl79.mjs";
1
+ import { h as TSDocModuleProps } from "./tsdoc-CfvwK4Ml.cjs";
2
+ import { o as TypescriptFileProps } from "./typescript-file-DmQI5WH4.cjs";
3
3
  import * as _alloy_js_core15 from "@alloy-js/core";
4
4
 
5
5
  //#region src/typescript/components/builtin-file.d.ts
@@ -32,4 +32,4 @@ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core15.Children
32
32
  declare type __ΩBuiltinFileProps = any[];
33
33
  //#endregion
34
34
  export { BuiltinFileProps as n, __ΩBuiltinFileProps as r, BuiltinFile as t };
35
- //# sourceMappingURL=builtin-file-B8yP216k.d.mts.map
35
+ //# sourceMappingURL=builtin-file-BGdpbEbj.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"builtin-file-B8yP216k.d.mts","names":[],"sources":["../src/typescript/components/builtin-file.tsx"],"sourcesContent":[],"mappings":";;;;;KAgCY,gBAAA,GAAmB,KAAK,+BAClC,KAAK;;;AADP;;;;EACE,EAAA,EAAA,MAAA;EAAI;AA4BN;;;;;;;;;;;;;;;;iBAAgB,WAAA,QAAmB,mBAAgB,gBAAA,CAAA"}
1
+ {"version":3,"file":"builtin-file-BGdpbEbj.d.cts","names":[],"sources":["../src/typescript/components/builtin-file.tsx"],"sourcesContent":[],"mappings":";;;;;KAgCY,gBAAA,GAAmB,KAAK,+BAClC,KAAK;;;AADP;;;;EACE,EAAA,EAAA,MAAA;EAAI;AA4BN;;;;;;;;;;;;;;;;iBAAgB,WAAA,QAAmB,mBAAgB,gBAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  require('../../context-CowAmU8m.cjs');
2
- const require_output = require('../../output-D_l1fJEz.cjs');
2
+ const require_output = require('../../output-C_HbhAbZ.cjs');
3
3
  const require_single_line_comment = require('../../single-line-comment-COZ9RWsm.cjs');
4
4
  require('../../reflection-DX-QT0Nx.cjs');
5
5
  require('../../contexts-B4a3JUTV.cjs');
@@ -1,7 +1,7 @@
1
1
  import "../../context-CdtkDo_j.cjs";
2
- import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-DWAO1J8V.cjs";
2
+ import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-DnRnJ4ky.cjs";
3
3
  import "../../components-IRVnipN0.cjs";
4
- import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-B258_x1B.cjs";
5
- import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-CE5xdm7N.cjs";
4
+ import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-DZMz1Vam.cjs";
5
+ import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-BLon-0Ab.cjs";
6
6
  import "../../index-BUYyA1Xh.cjs";
7
7
  export { Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩOutputProps, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps };
@@ -1,5 +1,5 @@
1
1
  import "../../context-DAfWJCa9.mjs";
2
- import { t as Output } from "../../output-C_XWpqr8.mjs";
2
+ import { t as Output } from "../../output-ChglaMN2.mjs";
3
3
  import { t as SingleLineComment } from "../../single-line-comment-mOQtfhWt.mjs";
4
4
  import "../../reflection-CDRGf-os.mjs";
5
5
  import "../../contexts-d0vn6-x6.mjs";
@@ -1,4 +1,4 @@
1
1
  require('../../context-CowAmU8m.cjs');
2
- const require_output = require('../../output-D_l1fJEz.cjs');
2
+ const require_output = require('../../output-C_HbhAbZ.cjs');
3
3
 
4
4
  exports.Output = require_output.Output;
@@ -1,3 +1,3 @@
1
1
  import "../../context-CdtkDo_j.cjs";
2
- import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-DWAO1J8V.cjs";
2
+ import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-DnRnJ4ky.cjs";
3
3
  export { Output, OutputProps, __ΩOutputProps };
@@ -1,4 +1,4 @@
1
1
  import "../../context-DAfWJCa9.mjs";
2
- import { t as Output } from "../../output-C_XWpqr8.mjs";
2
+ import { t as Output } from "../../output-ChglaMN2.mjs";
3
3
 
4
4
  export { Output };
@@ -1,3 +1,3 @@
1
1
  import "../../components-IRVnipN0.cjs";
2
- import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-B258_x1B.cjs";
2
+ import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-DZMz1Vam.cjs";
3
3
  export { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant };
@@ -1,3 +1,3 @@
1
1
  import "../../components-IRVnipN0.cjs";
2
- import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-CE5xdm7N.cjs";
2
+ import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-BLon-0Ab.cjs";
3
3
  export { SourceFile, SourceFileProps, __ΩSourceFileProps };
@@ -1,5 +1,5 @@
1
1
  const require_context = require('../context-CowAmU8m.cjs');
2
- const require_output = require('../output-D_l1fJEz.cjs');
2
+ const require_output = require('../output-C_HbhAbZ.cjs');
3
3
  const require_single_line_comment = require('../single-line-comment-COZ9RWsm.cjs');
4
4
  const require_reflection = require('../reflection-DX-QT0Nx.cjs');
5
5
  require('../contexts-B4a3JUTV.cjs');
@@ -1,8 +1,8 @@
1
1
  import { a as __ΩPowerlinesContextInterface, c as usePowerlines, i as __ΩMetaItem, l as usePowerlinesContext, n as PowerlinesContext, o as useMeta, r as PowerlinesContextInterface, s as useMetaSafe, t as MetaItem, u as usePowerlinesSafe } from "../context-CdtkDo_j.cjs";
2
- import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../output-DWAO1J8V.cjs";
2
+ import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../output-DnRnJ4ky.cjs";
3
3
  import "../components-IRVnipN0.cjs";
4
- import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../single-line-comment-B258_x1B.cjs";
5
- import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../source-file-CE5xdm7N.cjs";
4
+ import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../single-line-comment-DZMz1Vam.cjs";
5
+ import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../source-file-BLon-0Ab.cjs";
6
6
  import "../index-BUYyA1Xh.cjs";
7
7
  import { a as ReflectionPropertyContext, c as useReflectionMethod, i as ReflectionParameterContext, l as useReflectionParameter, n as ReflectionClassContextInterface, o as __ΩReflectionClassContextInterface, r as ReflectionMethodContext, s as useReflectionClass, t as ReflectionClassContext, u as useReflectionProperty } from "../reflection-xU09ifzp.cjs";
8
8
  import "../index-C6yvNuzO.cjs";
@@ -1,5 +1,5 @@
1
1
  import { a as usePowerlinesContext, i as usePowerlines, n as useMeta, o as usePowerlinesSafe, r as useMetaSafe, t as PowerlinesContext } from "../context-DAfWJCa9.mjs";
2
- import { t as Output } from "../output-C_XWpqr8.mjs";
2
+ import { t as Output } from "../output-ChglaMN2.mjs";
3
3
  import { t as SingleLineComment } from "../single-line-comment-mOQtfhWt.mjs";
4
4
  import { a as useReflectionClass, c as useReflectionProperty, i as ReflectionPropertyContext, n as ReflectionMethodContext, o as useReflectionMethod, r as ReflectionParameterContext, s as useReflectionParameter, t as ReflectionClassContext } from "../reflection-CDRGf-os.mjs";
5
5
  import "../contexts-d0vn6-x6.mjs";
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core16 from "@alloy-js/core";
1
+ import * as _alloy_js_core12 from "@alloy-js/core";
2
2
  import { VarDeclarationProps } from "@alloy-js/typescript";
3
3
 
4
4
  //#region src/typescript/components/dynamic-import-statement.d.ts
@@ -26,8 +26,8 @@ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initial
26
26
  * @param props - The properties for the dynamic import statement.
27
27
  * @returns A `VarDeclaration` component representing the dynamic import statement.
28
28
  */
29
- declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core16.Children;
29
+ declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core12.Children;
30
30
  declare type __ΩDynamicImportStatementProps = any[];
31
31
  //#endregion
32
32
  export { DynamicImportStatementProps as n, __ΩDynamicImportStatementProps as r, DynamicImportStatement as t };
33
- //# sourceMappingURL=dynamic-import-statement-DNJlI3ND.d.cts.map
33
+ //# sourceMappingURL=dynamic-import-statement-1w1twQi-.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic-import-statement-DNJlI3ND.d.cts","names":[],"sources":["../src/typescript/components/dynamic-import-statement.tsx"],"sourcesContent":[],"mappings":";;;;UAqBiB,2BAAA,SAAoC,KACnD;;;AADF;EA6BgB,UAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;iBAAA,sBAAA,QAA8B,8BAA2B,gBAAA,CAAA"}
1
+ {"version":3,"file":"dynamic-import-statement-1w1twQi-.d.cts","names":[],"sources":["../src/typescript/components/dynamic-import-statement.tsx"],"sourcesContent":[],"mappings":";;;;UAqBiB,2BAAA,SAAoC,KACnD;;;AADF;EA6BgB,UAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;iBAAA,sBAAA,QAA8B,8BAA2B,gBAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core5 from "@alloy-js/core";
1
+ import * as _alloy_js_core9 from "@alloy-js/core";
2
2
  import { VarDeclarationProps } from "@alloy-js/typescript";
3
3
 
4
4
  //#region src/typescript/components/dynamic-import-statement.d.ts
@@ -26,8 +26,8 @@ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initial
26
26
  * @param props - The properties for the dynamic import statement.
27
27
  * @returns A `VarDeclaration` component representing the dynamic import statement.
28
28
  */
29
- declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core5.Children;
29
+ declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core9.Children;
30
30
  declare type __ΩDynamicImportStatementProps = any[];
31
31
  //#endregion
32
32
  export { DynamicImportStatementProps as n, __ΩDynamicImportStatementProps as r, DynamicImportStatement as t };
33
- //# sourceMappingURL=dynamic-import-statement-C5uIfUk9.d.cts.map
33
+ //# sourceMappingURL=dynamic-import-statement-BYgPjHeV.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic-import-statement-C5uIfUk9.d.cts","names":[],"sources":["../src/typescript/components/dynamic-import-statement.tsx"],"sourcesContent":[],"mappings":";;;;UAqBiB,2BAAA,SAAoC,KACnD;;;AADF;EA6BgB,UAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;iBAAA,sBAAA,QAA8B,8BAA2B,eAAA,CAAA"}
1
+ {"version":3,"file":"dynamic-import-statement-BYgPjHeV.d.cts","names":[],"sources":["../src/typescript/components/dynamic-import-statement.tsx"],"sourcesContent":[],"mappings":";;;;UAqBiB,2BAAA,SAAoC,KACnD;;;AADF;EA6BgB,UAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;iBAAA,sBAAA,QAA8B,8BAA2B,eAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { o as TypescriptFileProps } from "./typescript-file-DiviCaz7.mjs";
2
- import * as _alloy_js_core16 from "@alloy-js/core";
2
+ import * as _alloy_js_core15 from "@alloy-js/core";
3
3
  import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
4
4
 
5
5
  //#region src/typescript/components/entry-file.d.ts
@@ -21,8 +21,8 @@ type EntryFileProps = TypescriptFileProps & {
21
21
  * @param props - The properties for the source file.
22
22
  * @returns The rendered source file component.
23
23
  */
24
- declare function EntryFile(props: EntryFileProps): _alloy_js_core16.Children;
24
+ declare function EntryFile(props: EntryFileProps): _alloy_js_core15.Children;
25
25
  declare type __ΩEntryFileProps = any[];
26
26
  //#endregion
27
27
  export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
28
- //# sourceMappingURL=entry-file-BiYORvQI.d.mts.map
28
+ //# sourceMappingURL=entry-file-BvT-Ru1U.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entry-file-BRFvWEkh.d.cts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,eAAA,CAAA"}
1
+ {"version":3,"file":"entry-file-BvT-Ru1U.d.mts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
@@ -1,5 +1,5 @@
1
- import { o as TypescriptFileProps } from "./typescript-file-0czkIl79.mjs";
2
- import * as _alloy_js_core17 from "@alloy-js/core";
1
+ import { o as TypescriptFileProps } from "./typescript-file-DmQI5WH4.cjs";
2
+ import * as _alloy_js_core16 from "@alloy-js/core";
3
3
  import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
4
4
 
5
5
  //#region src/typescript/components/entry-file.d.ts
@@ -21,8 +21,8 @@ type EntryFileProps = TypescriptFileProps & {
21
21
  * @param props - The properties for the source file.
22
22
  * @returns The rendered source file component.
23
23
  */
24
- declare function EntryFile(props: EntryFileProps): _alloy_js_core17.Children;
24
+ declare function EntryFile(props: EntryFileProps): _alloy_js_core16.Children;
25
25
  declare type __ΩEntryFileProps = any[];
26
26
  //#endregion
27
27
  export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
28
- //# sourceMappingURL=entry-file-DyS8FA-U.d.mts.map
28
+ //# sourceMappingURL=entry-file-BwhOJerl.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entry-file-BiYORvQI.d.mts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
1
+ {"version":3,"file":"entry-file-BwhOJerl.d.cts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
@@ -1,5 +1,5 @@
1
- import { o as TypescriptFileProps } from "./typescript-file-C-RWh7Rs.cjs";
2
- import * as _alloy_js_core15 from "@alloy-js/core";
1
+ import { o as TypescriptFileProps } from "./typescript-file-QfSrelxz.cjs";
2
+ import * as _alloy_js_core11 from "@alloy-js/core";
3
3
  import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
4
4
 
5
5
  //#region src/typescript/components/entry-file.d.ts
@@ -21,8 +21,8 @@ type EntryFileProps = TypescriptFileProps & {
21
21
  * @param props - The properties for the source file.
22
22
  * @returns The rendered source file component.
23
23
  */
24
- declare function EntryFile(props: EntryFileProps): _alloy_js_core15.Children;
24
+ declare function EntryFile(props: EntryFileProps): _alloy_js_core11.Children;
25
25
  declare type __ΩEntryFileProps = any[];
26
26
  //#endregion
27
27
  export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
28
- //# sourceMappingURL=entry-file-DYSbQFCX.d.cts.map
28
+ //# sourceMappingURL=entry-file-CmXeSADG.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entry-file-DYSbQFCX.d.cts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
1
+ {"version":3,"file":"entry-file-CmXeSADG.d.cts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
@@ -1,5 +1,5 @@
1
- import { o as TypescriptFileProps } from "./typescript-file-C-RWh7Rs.cjs";
2
- import * as _alloy_js_core4 from "@alloy-js/core";
1
+ import { o as TypescriptFileProps } from "./typescript-file-DiviCaz7.mjs";
2
+ import * as _alloy_js_core10 from "@alloy-js/core";
3
3
  import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
4
4
 
5
5
  //#region src/typescript/components/entry-file.d.ts
@@ -21,8 +21,8 @@ type EntryFileProps = TypescriptFileProps & {
21
21
  * @param props - The properties for the source file.
22
22
  * @returns The rendered source file component.
23
23
  */
24
- declare function EntryFile(props: EntryFileProps): _alloy_js_core4.Children;
24
+ declare function EntryFile(props: EntryFileProps): _alloy_js_core10.Children;
25
25
  declare type __ΩEntryFileProps = any[];
26
26
  //#endregion
27
27
  export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
28
- //# sourceMappingURL=entry-file-BRFvWEkh.d.cts.map
28
+ //# sourceMappingURL=entry-file-rPljNeWX.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entry-file-DyS8FA-U.d.mts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
1
+ {"version":3,"file":"entry-file-rPljNeWX.d.mts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core9 from "@alloy-js/core";
1
+ import * as _alloy_js_core2 from "@alloy-js/core";
2
2
 
3
3
  //#region src/markdown/components/front-matter.d.ts
4
4
  interface FrontMatterProps {
@@ -9,8 +9,8 @@ interface FrontMatterProps {
9
9
  *
10
10
  * @see https://jekyllrb.com/docs/front-matter/
11
11
  */
12
- declare function FrontMatter(props: FrontMatterProps): _alloy_js_core9.Children;
12
+ declare function FrontMatter(props: FrontMatterProps): _alloy_js_core2.Children;
13
13
  declare type __ΩFrontMatterProps = any[];
14
14
  //#endregion
15
15
  export { FrontMatterProps as n, __ΩFrontMatterProps as r, FrontMatter as t };
16
- //# sourceMappingURL=front-matter-BGxm_xQp.d.mts.map
16
+ //# sourceMappingURL=front-matter-C15vIJ6p.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"front-matter-BGxm_xQp.d.mts","names":[],"sources":["../src/markdown/components/front-matter.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,gBAAA;QACT;;AADR;AASA;;;;iBAAgB,WAAA,QAAmB,mBAAgB,eAAA,CAAA"}
1
+ {"version":3,"file":"front-matter-C15vIJ6p.d.mts","names":[],"sources":["../src/markdown/components/front-matter.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,gBAAA;QACT;;AADR;AASA;;;;iBAAgB,WAAA,QAAmB,mBAAgB,eAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core7 from "@alloy-js/core";
1
+ import * as _alloy_js_core1 from "@alloy-js/core";
2
2
 
3
3
  //#region src/markdown/components/front-matter.d.ts
4
4
  interface FrontMatterProps {
@@ -9,8 +9,8 @@ interface FrontMatterProps {
9
9
  *
10
10
  * @see https://jekyllrb.com/docs/front-matter/
11
11
  */
12
- declare function FrontMatter(props: FrontMatterProps): _alloy_js_core7.Children;
12
+ declare function FrontMatter(props: FrontMatterProps): _alloy_js_core1.Children;
13
13
  declare type __ΩFrontMatterProps = any[];
14
14
  //#endregion
15
15
  export { FrontMatterProps as n, __ΩFrontMatterProps as r, FrontMatter as t };
16
- //# sourceMappingURL=front-matter-u9H7VPAF.d.cts.map
16
+ //# sourceMappingURL=front-matter-C5Y0CcAP.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"front-matter-u9H7VPAF.d.cts","names":[],"sources":["../src/markdown/components/front-matter.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,gBAAA;QACT;;AADR;AASA;;;;iBAAgB,WAAA,QAAmB,mBAAgB,eAAA,CAAA"}
1
+ {"version":3,"file":"front-matter-C5Y0CcAP.d.cts","names":[],"sources":["../src/markdown/components/front-matter.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,gBAAA;QACT;;AADR;AASA;;;;iBAAgB,WAAA,QAAmB,mBAAgB,eAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core17 from "@alloy-js/core";
1
+ import * as _alloy_js_core6 from "@alloy-js/core";
2
2
 
3
3
  //#region src/markdown/components/front-matter.d.ts
4
4
  interface FrontMatterProps {
@@ -9,8 +9,8 @@ interface FrontMatterProps {
9
9
  *
10
10
  * @see https://jekyllrb.com/docs/front-matter/
11
11
  */
12
- declare function FrontMatter(props: FrontMatterProps): _alloy_js_core17.Children;
12
+ declare function FrontMatter(props: FrontMatterProps): _alloy_js_core6.Children;
13
13
  declare type __ΩFrontMatterProps = any[];
14
14
  //#endregion
15
15
  export { FrontMatterProps as n, __ΩFrontMatterProps as r, FrontMatter as t };
16
- //# sourceMappingURL=front-matter-Cp971E26.d.cts.map
16
+ //# sourceMappingURL=front-matter-Cg5TYuqs.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"front-matter-Cp971E26.d.cts","names":[],"sources":["../src/markdown/components/front-matter.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,gBAAA;QACT;;AADR;AASA;;;;iBAAgB,WAAA,QAAmB,mBAAgB,gBAAA,CAAA"}
1
+ {"version":3,"file":"front-matter-Cg5TYuqs.d.cts","names":[],"sources":["../src/markdown/components/front-matter.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,gBAAA;QACT;;AADR;AASA;;;;iBAAgB,WAAA,QAAmB,mBAAgB,eAAA,CAAA"}
package/dist/index.cjs CHANGED
@@ -1,23 +1,14 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  const require_chunk = require('./chunk-CbDLau6x.cjs');
3
3
  require('./context-CowAmU8m.cjs');
4
- const require_output = require('./output-D_l1fJEz.cjs');
4
+ const require_output = require('./output-C_HbhAbZ.cjs');
5
5
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
6
  let __alloy_js_core = require("@alloy-js/core");
7
7
  let __alloy_js_rollup_plugin = require("@alloy-js/rollup-plugin");
8
8
  __alloy_js_rollup_plugin = require_chunk.__toESM(__alloy_js_rollup_plugin);
9
9
  let __stryke_json_storm_json = require("@stryke/json/storm-json");
10
10
  let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
11
- let node_async_hooks = require("node:async_hooks");
12
- let unctx = require("unctx");
13
11
 
14
- //#region src/internal/unctx.ts
15
- const unctx$1 = (0, unctx.createContext)({
16
- asyncContext: true,
17
- AsyncLocalStorage: node_async_hooks.AsyncLocalStorage
18
- });
19
-
20
- //#endregion
21
12
  //#region src/index.tsx
22
13
  /**
23
14
  * Alloy-js plugin for Powerlines.
@@ -58,45 +49,40 @@ const plugin = (options = {}) => {
58
49
  async handler() {
59
50
  this.debug("Attaching the `render` method to the context object.");
60
51
  this.render = async (children) => {
52
+ const _self$ = this;
61
53
  const meta = {};
62
- await unctx$1.callAsync({
63
- value: this,
64
- meta
65
- }, async () => {
66
- const _self$ = this;
67
- const output = await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_output.Output, {
68
- context: _self$,
69
- meta,
70
- get basePath() {
71
- return _self$.workspaceConfig.workspaceRoot;
72
- },
73
- children
74
- }));
75
- this.debug("Processing rendered output from Alloy-js.");
76
- await (0, __alloy_js_core.traverseOutput)(output, {
77
- visitDirectory: (directory) => {
78
- if (this.fs.existsSync(directory.path)) return;
79
- this.fs.mkdirSync(directory.path);
80
- },
81
- visitFile: (file) => {
82
- if ("contents" in file) {
83
- const metadata = meta[file.path] ?? {};
84
- if (metadata.kind === "builtin") {
85
- if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
86
- this.emitBuiltinSync(file.contents, metadata.id, {
87
- skipFormat: metadata.skipFormat,
88
- storage: metadata.storage,
89
- extension: (0, __stryke_path_file_path_fns.findFileExtension)(file.path)
90
- });
91
- } else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
54
+ const output = await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_output.Output, {
55
+ context: _self$,
56
+ meta,
57
+ get basePath() {
58
+ return _self$.workspaceConfig.workspaceRoot;
59
+ },
60
+ children
61
+ }));
62
+ this.debug("Processing rendered output from Alloy-js.");
63
+ await (0, __alloy_js_core.traverseOutput)(output, {
64
+ visitDirectory: (directory) => {
65
+ if (this.fs.existsSync(directory.path)) return;
66
+ this.fs.mkdirSync(directory.path);
67
+ },
68
+ visitFile: (file) => {
69
+ if ("contents" in file) {
70
+ const metadata = meta[file.path] ?? {};
71
+ if (metadata.kind === "builtin") {
72
+ if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
73
+ this.emitBuiltinSync(file.contents, metadata.id, {
92
74
  skipFormat: metadata.skipFormat,
93
75
  storage: metadata.storage,
94
- ...metadata.typeDefinition ?? {}
76
+ extension: (0, __stryke_path_file_path_fns.findFileExtension)(file.path)
95
77
  });
96
- else this.emitSync(file.contents, file.path, metadata);
97
- } else this.fs.copySync(file.sourcePath, file.path);
98
- }
99
- });
78
+ } else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
79
+ skipFormat: metadata.skipFormat,
80
+ storage: metadata.storage,
81
+ ...metadata.typeDefinition ?? {}
82
+ });
83
+ else this.emitSync(file.contents, file.path, metadata);
84
+ } else this.fs.copySync(file.sourcePath, file.path);
85
+ }
100
86
  });
101
87
  };
102
88
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAmCA;;;;AAwHc,cAxHD,MAwHC,EAAA,CAAA,iBAvHK,kBAuHL,GAvH0B,kBAuH1B,CAAA,CAAA,OAAA,CAAA,EArHH,kBAqHG,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA,EAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAkCA;;;;AAuHc,cAvHD,MAuHC,EAAA,CAAA,iBAtHK,kBAsHL,GAtH0B,kBAsH1B,CAAA,CAAA,OAAA,CAAA,EApHH,kBAoHG,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA,EAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAmCA;;;;AAwHc,cAxHD,MAwHC,EAAA,CAAA,iBAvHK,kBAuHL,GAvH0B,kBAuH1B,CAAA,CAAA,OAAA,CAAA,EArHH,kBAqHG,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA,EAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAkCA;;;;AAuHc,cAvHD,MAuHC,EAAA,CAAA,iBAtHK,kBAsHL,GAtH0B,kBAsH1B,CAAA,CAAA,OAAA,CAAA,EApHH,kBAoHG,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA,EAAA"}
package/dist/index.mjs CHANGED
@@ -1,20 +1,11 @@
1
1
  import "./context-DAfWJCa9.mjs";
2
- import { t as Output$1 } from "./output-C_XWpqr8.mjs";
2
+ import { t as Output$1 } from "./output-ChglaMN2.mjs";
3
3
  import { createComponent } from "@alloy-js/core/jsx-runtime";
4
4
  import { renderAsync, traverseOutput } from "@alloy-js/core";
5
5
  import rollupPlugin from "@alloy-js/rollup-plugin";
6
6
  import { StormJSON } from "@stryke/json/storm-json";
7
7
  import { findFileExtension } from "@stryke/path/file-path-fns";
8
- import { AsyncLocalStorage } from "node:async_hooks";
9
- import { createContext as createContext$1 } from "unctx";
10
8
 
11
- //#region src/internal/unctx.ts
12
- const unctx = createContext$1({
13
- asyncContext: true,
14
- AsyncLocalStorage
15
- });
16
-
17
- //#endregion
18
9
  //#region src/index.tsx
19
10
  /**
20
11
  * Alloy-js plugin for Powerlines.
@@ -55,45 +46,40 @@ const plugin = (options = {}) => {
55
46
  async handler() {
56
47
  this.debug("Attaching the `render` method to the context object.");
57
48
  this.render = async (children) => {
49
+ const _self$ = this;
58
50
  const meta = {};
59
- await unctx.callAsync({
60
- value: this,
61
- meta
62
- }, async () => {
63
- const _self$ = this;
64
- const output = await renderAsync(createComponent(Output$1, {
65
- context: _self$,
66
- meta,
67
- get basePath() {
68
- return _self$.workspaceConfig.workspaceRoot;
69
- },
70
- children
71
- }));
72
- this.debug("Processing rendered output from Alloy-js.");
73
- await traverseOutput(output, {
74
- visitDirectory: (directory) => {
75
- if (this.fs.existsSync(directory.path)) return;
76
- this.fs.mkdirSync(directory.path);
77
- },
78
- visitFile: (file) => {
79
- if ("contents" in file) {
80
- const metadata = meta[file.path] ?? {};
81
- if (metadata.kind === "builtin") {
82
- if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
83
- this.emitBuiltinSync(file.contents, metadata.id, {
84
- skipFormat: metadata.skipFormat,
85
- storage: metadata.storage,
86
- extension: findFileExtension(file.path)
87
- });
88
- } else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
51
+ const output = await renderAsync(createComponent(Output$1, {
52
+ context: _self$,
53
+ meta,
54
+ get basePath() {
55
+ return _self$.workspaceConfig.workspaceRoot;
56
+ },
57
+ children
58
+ }));
59
+ this.debug("Processing rendered output from Alloy-js.");
60
+ await traverseOutput(output, {
61
+ visitDirectory: (directory) => {
62
+ if (this.fs.existsSync(directory.path)) return;
63
+ this.fs.mkdirSync(directory.path);
64
+ },
65
+ visitFile: (file) => {
66
+ if ("contents" in file) {
67
+ const metadata = meta[file.path] ?? {};
68
+ if (metadata.kind === "builtin") {
69
+ if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
70
+ this.emitBuiltinSync(file.contents, metadata.id, {
89
71
  skipFormat: metadata.skipFormat,
90
72
  storage: metadata.storage,
91
- ...metadata.typeDefinition ?? {}
73
+ extension: findFileExtension(file.path)
92
74
  });
93
- else this.emitSync(file.contents, file.path, metadata);
94
- } else this.fs.copySync(file.sourcePath, file.path);
95
- }
96
- });
75
+ } else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
76
+ skipFormat: metadata.skipFormat,
77
+ storage: metadata.storage,
78
+ ...metadata.typeDefinition ?? {}
79
+ });
80
+ else this.emitSync(file.contents, file.path, metadata);
81
+ } else this.fs.copySync(file.sourcePath, file.path);
82
+ }
97
83
  });
98
84
  };
99
85
  }