@powerlines/plugin-alloy 0.26.48 → 0.26.51

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 (377) hide show
  1. package/package.json +6 -6
  2. package/dist/_virtual/_rolldown/runtime.cjs +0 -29
  3. package/dist/core/components/index.cjs +0 -12
  4. package/dist/core/components/index.d.cts +0 -6
  5. package/dist/core/components/index.d.mts +0 -6
  6. package/dist/core/components/index.mjs +0 -7
  7. package/dist/core/components/infrastructure-file.cjs +0 -48
  8. package/dist/core/components/infrastructure-file.d.cts +0 -27
  9. package/dist/core/components/infrastructure-file.d.cts.map +0 -1
  10. package/dist/core/components/infrastructure-file.d.mts +0 -27
  11. package/dist/core/components/infrastructure-file.d.mts.map +0 -1
  12. package/dist/core/components/infrastructure-file.mjs +0 -46
  13. package/dist/core/components/infrastructure-file.mjs.map +0 -1
  14. package/dist/core/components/output.cjs +0 -41
  15. package/dist/core/components/output.d.cts +0 -23
  16. package/dist/core/components/output.d.cts.map +0 -1
  17. package/dist/core/components/output.d.mts +0 -23
  18. package/dist/core/components/output.d.mts.map +0 -1
  19. package/dist/core/components/output.mjs +0 -40
  20. package/dist/core/components/output.mjs.map +0 -1
  21. package/dist/core/components/single-line-comment.cjs +0 -23
  22. package/dist/core/components/single-line-comment.d.cts +0 -21
  23. package/dist/core/components/single-line-comment.d.cts.map +0 -1
  24. package/dist/core/components/single-line-comment.d.mts +0 -21
  25. package/dist/core/components/single-line-comment.d.mts.map +0 -1
  26. package/dist/core/components/single-line-comment.mjs +0 -22
  27. package/dist/core/components/single-line-comment.mjs.map +0 -1
  28. package/dist/core/components/source-file.cjs +0 -64
  29. package/dist/core/components/source-file.d.cts +0 -32
  30. package/dist/core/components/source-file.d.cts.map +0 -1
  31. package/dist/core/components/source-file.d.mts +0 -32
  32. package/dist/core/components/source-file.d.mts.map +0 -1
  33. package/dist/core/components/source-file.mjs +0 -62
  34. package/dist/core/components/source-file.mjs.map +0 -1
  35. package/dist/core/components/spacing.cjs +0 -20
  36. package/dist/core/components/spacing.d.cts +0 -23
  37. package/dist/core/components/spacing.d.cts.map +0 -1
  38. package/dist/core/components/spacing.d.mts +0 -23
  39. package/dist/core/components/spacing.d.mts.map +0 -1
  40. package/dist/core/components/spacing.mjs +0 -19
  41. package/dist/core/components/spacing.mjs.map +0 -1
  42. package/dist/core/contexts/context.cjs +0 -41
  43. package/dist/core/contexts/context.d.cts +0 -29
  44. package/dist/core/contexts/context.d.cts.map +0 -1
  45. package/dist/core/contexts/context.d.mts +0 -29
  46. package/dist/core/contexts/context.d.mts.map +0 -1
  47. package/dist/core/contexts/context.mjs +0 -37
  48. package/dist/core/contexts/context.mjs.map +0 -1
  49. package/dist/core/contexts/index.cjs +0 -22
  50. package/dist/core/contexts/index.d.cts +0 -4
  51. package/dist/core/contexts/index.d.mts +0 -4
  52. package/dist/core/contexts/index.mjs +0 -5
  53. package/dist/core/contexts/meta.cjs +0 -41
  54. package/dist/core/contexts/meta.d.cts +0 -47
  55. package/dist/core/contexts/meta.d.cts.map +0 -1
  56. package/dist/core/contexts/meta.d.mts +0 -47
  57. package/dist/core/contexts/meta.d.mts.map +0 -1
  58. package/dist/core/contexts/meta.mjs +0 -37
  59. package/dist/core/contexts/meta.mjs.map +0 -1
  60. package/dist/core/contexts/reflection.cjs +0 -80
  61. package/dist/core/contexts/reflection.d.cts +0 -62
  62. package/dist/core/contexts/reflection.d.cts.map +0 -1
  63. package/dist/core/contexts/reflection.d.mts +0 -62
  64. package/dist/core/contexts/reflection.d.mts.map +0 -1
  65. package/dist/core/contexts/reflection.mjs +0 -71
  66. package/dist/core/contexts/reflection.mjs.map +0 -1
  67. package/dist/core/helpers/code.cjs +0 -34
  68. package/dist/core/helpers/code.d.cts +0 -29
  69. package/dist/core/helpers/code.d.cts.map +0 -1
  70. package/dist/core/helpers/code.d.mts +0 -29
  71. package/dist/core/helpers/code.d.mts.map +0 -1
  72. package/dist/core/helpers/code.mjs +0 -33
  73. package/dist/core/helpers/code.mjs.map +0 -1
  74. package/dist/core/helpers/index.cjs +0 -4
  75. package/dist/core/helpers/index.d.cts +0 -2
  76. package/dist/core/helpers/index.d.mts +0 -2
  77. package/dist/core/helpers/index.mjs +0 -3
  78. package/dist/core/index.cjs +0 -37
  79. package/dist/core/index.d.cts +0 -10
  80. package/dist/core/index.d.mts +0 -10
  81. package/dist/core/index.mjs +0 -14
  82. package/dist/hcl/components/block-declaration.cjs +0 -34
  83. package/dist/hcl/components/block-declaration.d.cts +0 -21
  84. package/dist/hcl/components/block-declaration.d.cts.map +0 -1
  85. package/dist/hcl/components/block-declaration.d.mts +0 -21
  86. package/dist/hcl/components/block-declaration.d.mts.map +0 -1
  87. package/dist/hcl/components/block-declaration.mjs +0 -33
  88. package/dist/hcl/components/block-declaration.mjs.map +0 -1
  89. package/dist/hcl/components/hcl-file.cjs +0 -83
  90. package/dist/hcl/components/hcl-file.d.cts +0 -26
  91. package/dist/hcl/components/hcl-file.d.cts.map +0 -1
  92. package/dist/hcl/components/hcl-file.d.mts +0 -26
  93. package/dist/hcl/components/hcl-file.d.mts.map +0 -1
  94. package/dist/hcl/components/hcl-file.mjs +0 -81
  95. package/dist/hcl/components/hcl-file.mjs.map +0 -1
  96. package/dist/hcl/components/index.cjs +0 -11
  97. package/dist/hcl/components/index.d.cts +0 -5
  98. package/dist/hcl/components/index.d.mts +0 -5
  99. package/dist/hcl/components/index.mjs +0 -6
  100. package/dist/hcl/components/packer-file.cjs +0 -29
  101. package/dist/hcl/components/packer-file.d.cts +0 -18
  102. package/dist/hcl/components/packer-file.d.cts.map +0 -1
  103. package/dist/hcl/components/packer-file.d.mts +0 -18
  104. package/dist/hcl/components/packer-file.d.mts.map +0 -1
  105. package/dist/hcl/components/packer-file.mjs +0 -28
  106. package/dist/hcl/components/packer-file.mjs.map +0 -1
  107. package/dist/hcl/components/terraform-file.cjs +0 -30
  108. package/dist/hcl/components/terraform-file.d.cts +0 -19
  109. package/dist/hcl/components/terraform-file.d.cts.map +0 -1
  110. package/dist/hcl/components/terraform-file.d.mts +0 -19
  111. package/dist/hcl/components/terraform-file.d.mts.map +0 -1
  112. package/dist/hcl/components/terraform-file.mjs +0 -29
  113. package/dist/hcl/components/terraform-file.mjs.map +0 -1
  114. package/dist/hcl/index.cjs +0 -12
  115. package/dist/hcl/index.d.cts +0 -5
  116. package/dist/hcl/index.d.mts +0 -5
  117. package/dist/hcl/index.mjs +0 -7
  118. package/dist/helpers/capnp.cjs +0 -277
  119. package/dist/helpers/capnp.d.cts +0 -83
  120. package/dist/helpers/capnp.d.cts.map +0 -1
  121. package/dist/helpers/capnp.d.mts +0 -83
  122. package/dist/helpers/capnp.d.mts.map +0 -1
  123. package/dist/helpers/capnp.mjs +0 -260
  124. package/dist/helpers/capnp.mjs.map +0 -1
  125. package/dist/helpers/create-builtin.cjs +0 -20
  126. package/dist/helpers/create-builtin.d.cts +0 -15
  127. package/dist/helpers/create-builtin.d.cts.map +0 -1
  128. package/dist/helpers/create-builtin.d.mts +0 -15
  129. package/dist/helpers/create-builtin.d.mts.map +0 -1
  130. package/dist/helpers/create-builtin.mjs +0 -19
  131. package/dist/helpers/create-builtin.mjs.map +0 -1
  132. package/dist/helpers/index.cjs +0 -25
  133. package/dist/helpers/index.d.cts +0 -5
  134. package/dist/helpers/index.d.mts +0 -5
  135. package/dist/helpers/index.mjs +0 -6
  136. package/dist/helpers/refkey.cjs +0 -17
  137. package/dist/helpers/refkey.d.cts +0 -13
  138. package/dist/helpers/refkey.d.cts.map +0 -1
  139. package/dist/helpers/refkey.d.mts +0 -13
  140. package/dist/helpers/refkey.d.mts.map +0 -1
  141. package/dist/helpers/refkey.mjs +0 -16
  142. package/dist/helpers/refkey.mjs.map +0 -1
  143. package/dist/helpers/typescript.cjs +0 -48
  144. package/dist/helpers/typescript.d.cts +0 -24
  145. package/dist/helpers/typescript.d.cts.map +0 -1
  146. package/dist/helpers/typescript.d.mts +0 -24
  147. package/dist/helpers/typescript.d.mts.map +0 -1
  148. package/dist/helpers/typescript.mjs +0 -47
  149. package/dist/helpers/typescript.mjs.map +0 -1
  150. package/dist/index.cjs +0 -55
  151. package/dist/index.d.cts +0 -19
  152. package/dist/index.d.cts.map +0 -1
  153. package/dist/index.d.mts +0 -19
  154. package/dist/index.d.mts.map +0 -1
  155. package/dist/index.mjs +0 -52
  156. package/dist/index.mjs.map +0 -1
  157. package/dist/markdown/components/front-matter.cjs +0 -29
  158. package/dist/markdown/components/front-matter.d.cts +0 -15
  159. package/dist/markdown/components/front-matter.d.cts.map +0 -1
  160. package/dist/markdown/components/front-matter.d.mts +0 -15
  161. package/dist/markdown/components/front-matter.d.mts.map +0 -1
  162. package/dist/markdown/components/front-matter.mjs +0 -28
  163. package/dist/markdown/components/front-matter.mjs.map +0 -1
  164. package/dist/markdown/components/heading.cjs +0 -24
  165. package/dist/markdown/components/heading.d.cts +0 -19
  166. package/dist/markdown/components/heading.d.cts.map +0 -1
  167. package/dist/markdown/components/heading.d.mts +0 -19
  168. package/dist/markdown/components/heading.d.mts.map +0 -1
  169. package/dist/markdown/components/heading.mjs +0 -23
  170. package/dist/markdown/components/heading.mjs.map +0 -1
  171. package/dist/markdown/components/index.cjs +0 -13
  172. package/dist/markdown/components/index.d.cts +0 -5
  173. package/dist/markdown/components/index.d.mts +0 -5
  174. package/dist/markdown/components/index.mjs +0 -6
  175. package/dist/markdown/components/markdown-file.cjs +0 -135
  176. package/dist/markdown/components/markdown-file.d.cts +0 -27
  177. package/dist/markdown/components/markdown-file.d.cts.map +0 -1
  178. package/dist/markdown/components/markdown-file.d.mts +0 -27
  179. package/dist/markdown/components/markdown-file.d.mts.map +0 -1
  180. package/dist/markdown/components/markdown-file.mjs +0 -133
  181. package/dist/markdown/components/markdown-file.mjs.map +0 -1
  182. package/dist/markdown/components/markdown-table.cjs +0 -102
  183. package/dist/markdown/components/markdown-table.d.cts +0 -26
  184. package/dist/markdown/components/markdown-table.d.cts.map +0 -1
  185. package/dist/markdown/components/markdown-table.d.mts +0 -26
  186. package/dist/markdown/components/markdown-table.d.mts.map +0 -1
  187. package/dist/markdown/components/markdown-table.mjs +0 -99
  188. package/dist/markdown/components/markdown-table.mjs.map +0 -1
  189. package/dist/markdown/contexts/index.cjs +0 -7
  190. package/dist/markdown/contexts/index.d.cts +0 -2
  191. package/dist/markdown/contexts/index.d.mts +0 -2
  192. package/dist/markdown/contexts/index.mjs +0 -3
  193. package/dist/markdown/contexts/markdown-table.cjs +0 -38
  194. package/dist/markdown/contexts/markdown-table.d.cts +0 -36
  195. package/dist/markdown/contexts/markdown-table.d.cts.map +0 -1
  196. package/dist/markdown/contexts/markdown-table.d.mts +0 -36
  197. package/dist/markdown/contexts/markdown-table.d.mts.map +0 -1
  198. package/dist/markdown/contexts/markdown-table.mjs +0 -34
  199. package/dist/markdown/contexts/markdown-table.mjs.map +0 -1
  200. package/dist/markdown/index.cjs +0 -20
  201. package/dist/markdown/index.d.cts +0 -6
  202. package/dist/markdown/index.d.mts +0 -6
  203. package/dist/markdown/index.mjs +0 -9
  204. package/dist/render.cjs +0 -91
  205. package/dist/render.d.cts +0 -38
  206. package/dist/render.d.cts.map +0 -1
  207. package/dist/render.d.mts +0 -38
  208. package/dist/render.d.mts.map +0 -1
  209. package/dist/render.mjs +0 -89
  210. package/dist/render.mjs.map +0 -1
  211. package/dist/types/components.cjs +0 -9
  212. package/dist/types/components.d.cts +0 -126
  213. package/dist/types/components.d.cts.map +0 -1
  214. package/dist/types/components.d.mts +0 -126
  215. package/dist/types/components.d.mts.map +0 -1
  216. package/dist/types/components.mjs +0 -10
  217. package/dist/types/components.mjs.map +0 -1
  218. package/dist/types/index.cjs +0 -0
  219. package/dist/types/index.d.cts +0 -3
  220. package/dist/types/index.d.mts +0 -3
  221. package/dist/types/index.mjs +0 -1
  222. package/dist/types/plugin.cjs +0 -0
  223. package/dist/types/plugin.d.cts +0 -35
  224. package/dist/types/plugin.d.cts.map +0 -1
  225. package/dist/types/plugin.d.mts +0 -35
  226. package/dist/types/plugin.d.mts.map +0 -1
  227. package/dist/types/plugin.mjs +0 -1
  228. package/dist/typescript/components/builtin-file.cjs +0 -63
  229. package/dist/typescript/components/builtin-file.d.cts +0 -34
  230. package/dist/typescript/components/builtin-file.d.cts.map +0 -1
  231. package/dist/typescript/components/builtin-file.d.mts +0 -34
  232. package/dist/typescript/components/builtin-file.d.mts.map +0 -1
  233. package/dist/typescript/components/builtin-file.mjs +0 -62
  234. package/dist/typescript/components/builtin-file.mjs.map +0 -1
  235. package/dist/typescript/components/class-declaration.cjs +0 -306
  236. package/dist/typescript/components/class-declaration.d.cts +0 -140
  237. package/dist/typescript/components/class-declaration.d.cts.map +0 -1
  238. package/dist/typescript/components/class-declaration.d.mts +0 -140
  239. package/dist/typescript/components/class-declaration.d.mts.map +0 -1
  240. package/dist/typescript/components/class-declaration.mjs +0 -300
  241. package/dist/typescript/components/class-declaration.mjs.map +0 -1
  242. package/dist/typescript/components/dynamic-import-statement.cjs +0 -26
  243. package/dist/typescript/components/dynamic-import-statement.d.cts +0 -32
  244. package/dist/typescript/components/dynamic-import-statement.d.cts.map +0 -1
  245. package/dist/typescript/components/dynamic-import-statement.d.mts +0 -32
  246. package/dist/typescript/components/dynamic-import-statement.d.mts.map +0 -1
  247. package/dist/typescript/components/dynamic-import-statement.mjs +0 -25
  248. package/dist/typescript/components/dynamic-import-statement.mjs.map +0 -1
  249. package/dist/typescript/components/entry-file.cjs +0 -43
  250. package/dist/typescript/components/entry-file.d.cts +0 -27
  251. package/dist/typescript/components/entry-file.d.cts.map +0 -1
  252. package/dist/typescript/components/entry-file.d.mts +0 -27
  253. package/dist/typescript/components/entry-file.d.mts.map +0 -1
  254. package/dist/typescript/components/entry-file.mjs +0 -41
  255. package/dist/typescript/components/entry-file.mjs.map +0 -1
  256. package/dist/typescript/components/index.cjs +0 -64
  257. package/dist/typescript/components/index.d.cts +0 -14
  258. package/dist/typescript/components/index.d.mts +0 -14
  259. package/dist/typescript/components/index.mjs +0 -15
  260. package/dist/typescript/components/interface-declaration.cjs +0 -239
  261. package/dist/typescript/components/interface-declaration.d.cts +0 -80
  262. package/dist/typescript/components/interface-declaration.d.cts.map +0 -1
  263. package/dist/typescript/components/interface-declaration.d.mts +0 -80
  264. package/dist/typescript/components/interface-declaration.d.mts.map +0 -1
  265. package/dist/typescript/components/interface-declaration.mjs +0 -235
  266. package/dist/typescript/components/interface-declaration.mjs.map +0 -1
  267. package/dist/typescript/components/object-declaration.cjs +0 -139
  268. package/dist/typescript/components/object-declaration.d.cts +0 -28
  269. package/dist/typescript/components/object-declaration.d.cts.map +0 -1
  270. package/dist/typescript/components/object-declaration.d.mts +0 -28
  271. package/dist/typescript/components/object-declaration.d.mts.map +0 -1
  272. package/dist/typescript/components/object-declaration.mjs +0 -137
  273. package/dist/typescript/components/object-declaration.mjs.map +0 -1
  274. package/dist/typescript/components/property-name.cjs +0 -32
  275. package/dist/typescript/components/property-name.d.cts +0 -23
  276. package/dist/typescript/components/property-name.d.cts.map +0 -1
  277. package/dist/typescript/components/property-name.d.mts +0 -23
  278. package/dist/typescript/components/property-name.d.mts.map +0 -1
  279. package/dist/typescript/components/property-name.mjs +0 -31
  280. package/dist/typescript/components/property-name.mjs.map +0 -1
  281. package/dist/typescript/components/record-expression.cjs +0 -13
  282. package/dist/typescript/components/record-expression.d.cts +0 -12
  283. package/dist/typescript/components/record-expression.d.cts.map +0 -1
  284. package/dist/typescript/components/record-expression.d.mts +0 -12
  285. package/dist/typescript/components/record-expression.d.mts.map +0 -1
  286. package/dist/typescript/components/record-expression.mjs +0 -12
  287. package/dist/typescript/components/record-expression.mjs.map +0 -1
  288. package/dist/typescript/components/tsdoc-reflection.cjs +0 -331
  289. package/dist/typescript/components/tsdoc-reflection.d.cts +0 -42
  290. package/dist/typescript/components/tsdoc-reflection.d.cts.map +0 -1
  291. package/dist/typescript/components/tsdoc-reflection.d.mts +0 -42
  292. package/dist/typescript/components/tsdoc-reflection.d.mts.map +0 -1
  293. package/dist/typescript/components/tsdoc-reflection.mjs +0 -325
  294. package/dist/typescript/components/tsdoc-reflection.mjs.map +0 -1
  295. package/dist/typescript/components/tsdoc.cjs +0 -497
  296. package/dist/typescript/components/tsdoc.d.cts +0 -161
  297. package/dist/typescript/components/tsdoc.d.cts.map +0 -1
  298. package/dist/typescript/components/tsdoc.d.mts +0 -161
  299. package/dist/typescript/components/tsdoc.d.mts.map +0 -1
  300. package/dist/typescript/components/tsdoc.mjs +0 -476
  301. package/dist/typescript/components/tsdoc.mjs.map +0 -1
  302. package/dist/typescript/components/type-declaration.cjs +0 -39
  303. package/dist/typescript/components/type-declaration.d.cts +0 -17
  304. package/dist/typescript/components/type-declaration.d.cts.map +0 -1
  305. package/dist/typescript/components/type-declaration.d.mts +0 -17
  306. package/dist/typescript/components/type-declaration.d.mts.map +0 -1
  307. package/dist/typescript/components/type-declaration.mjs +0 -38
  308. package/dist/typescript/components/type-declaration.mjs.map +0 -1
  309. package/dist/typescript/components/type-parameters.cjs +0 -83
  310. package/dist/typescript/components/type-parameters.d.cts +0 -23
  311. package/dist/typescript/components/type-parameters.d.cts.map +0 -1
  312. package/dist/typescript/components/type-parameters.d.mts +0 -23
  313. package/dist/typescript/components/type-parameters.d.mts.map +0 -1
  314. package/dist/typescript/components/type-parameters.mjs +0 -82
  315. package/dist/typescript/components/type-parameters.mjs.map +0 -1
  316. package/dist/typescript/components/typescript-file.cjs +0 -221
  317. package/dist/typescript/components/typescript-file.d.cts +0 -47
  318. package/dist/typescript/components/typescript-file.d.cts.map +0 -1
  319. package/dist/typescript/components/typescript-file.d.mts +0 -47
  320. package/dist/typescript/components/typescript-file.d.mts.map +0 -1
  321. package/dist/typescript/components/typescript-file.mjs +0 -218
  322. package/dist/typescript/components/typescript-file.mjs.map +0 -1
  323. package/dist/typescript/contexts/index.cjs +0 -4
  324. package/dist/typescript/contexts/index.d.cts +0 -2
  325. package/dist/typescript/contexts/index.d.mts +0 -2
  326. package/dist/typescript/contexts/index.mjs +0 -3
  327. package/dist/typescript/contexts/lexical-scope.cjs +0 -26
  328. package/dist/typescript/contexts/lexical-scope.d.cts +0 -14
  329. package/dist/typescript/contexts/lexical-scope.d.cts.map +0 -1
  330. package/dist/typescript/contexts/lexical-scope.d.mts +0 -14
  331. package/dist/typescript/contexts/lexical-scope.d.mts.map +0 -1
  332. package/dist/typescript/contexts/lexical-scope.mjs +0 -25
  333. package/dist/typescript/contexts/lexical-scope.mjs.map +0 -1
  334. package/dist/typescript/contexts/member-scope.cjs +0 -24
  335. package/dist/typescript/contexts/member-scope.d.cts +0 -19
  336. package/dist/typescript/contexts/member-scope.d.cts.map +0 -1
  337. package/dist/typescript/contexts/member-scope.d.mts +0 -19
  338. package/dist/typescript/contexts/member-scope.d.mts.map +0 -1
  339. package/dist/typescript/contexts/member-scope.mjs +0 -23
  340. package/dist/typescript/contexts/member-scope.mjs.map +0 -1
  341. package/dist/typescript/helpers/get-call-signature-props.cjs +0 -26
  342. package/dist/typescript/helpers/get-call-signature-props.d.cts +0 -14
  343. package/dist/typescript/helpers/get-call-signature-props.d.cts.map +0 -1
  344. package/dist/typescript/helpers/get-call-signature-props.d.mts +0 -14
  345. package/dist/typescript/helpers/get-call-signature-props.d.mts.map +0 -1
  346. package/dist/typescript/helpers/get-call-signature-props.mjs +0 -25
  347. package/dist/typescript/helpers/get-call-signature-props.mjs.map +0 -1
  348. package/dist/typescript/helpers/index.cjs +0 -6
  349. package/dist/typescript/helpers/index.d.cts +0 -3
  350. package/dist/typescript/helpers/index.d.mts +0 -3
  351. package/dist/typescript/helpers/index.mjs +0 -4
  352. package/dist/typescript/helpers/utilities.cjs +0 -15
  353. package/dist/typescript/helpers/utilities.d.cts +0 -11
  354. package/dist/typescript/helpers/utilities.d.cts.map +0 -1
  355. package/dist/typescript/helpers/utilities.d.mts +0 -11
  356. package/dist/typescript/helpers/utilities.d.mts.map +0 -1
  357. package/dist/typescript/helpers/utilities.mjs +0 -14
  358. package/dist/typescript/helpers/utilities.mjs.map +0 -1
  359. package/dist/typescript/index.cjs +0 -73
  360. package/dist/typescript/index.d.cts +0 -17
  361. package/dist/typescript/index.d.mts +0 -17
  362. package/dist/typescript/index.mjs +0 -21
  363. package/dist/yaml/components/index.cjs +0 -5
  364. package/dist/yaml/components/index.d.cts +0 -2
  365. package/dist/yaml/components/index.d.mts +0 -2
  366. package/dist/yaml/components/index.mjs +0 -3
  367. package/dist/yaml/components/yaml-file.cjs +0 -149
  368. package/dist/yaml/components/yaml-file.d.cts +0 -32
  369. package/dist/yaml/components/yaml-file.d.cts.map +0 -1
  370. package/dist/yaml/components/yaml-file.d.mts +0 -32
  371. package/dist/yaml/components/yaml-file.d.mts.map +0 -1
  372. package/dist/yaml/components/yaml-file.mjs +0 -147
  373. package/dist/yaml/components/yaml-file.mjs.map +0 -1
  374. package/dist/yaml/index.cjs +0 -6
  375. package/dist/yaml/index.d.cts +0 -2
  376. package/dist/yaml/index.d.mts +0 -2
  377. package/dist/yaml/index.mjs +0 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-alloy",
3
- "version": "0.26.48",
3
+ "version": "0.26.51",
4
4
  "type": "module",
5
5
  "description": "A package containing various Alloy framework components and helper utilities.",
6
6
  "repository": {
@@ -908,8 +908,8 @@
908
908
  "@alloy-js/json": "0.23.0-dev.2",
909
909
  "@alloy-js/markdown": "0.23.0-dev.1",
910
910
  "@alloy-js/typescript": "0.23.0-dev.4",
911
- "@powerlines/deepkit": "^0.8.32",
912
- "@powerlines/plugin-babel": "^0.12.424",
911
+ "@powerlines/deepkit": "^0.8.33",
912
+ "@powerlines/plugin-babel": "^0.12.425",
913
913
  "@storm-software/config-tools": "^1.189.78",
914
914
  "@stryke/capnp": "^0.12.93",
915
915
  "@stryke/convert": "^0.7.0",
@@ -922,14 +922,14 @@
922
922
  "@stryke/types": "^0.11.4",
923
923
  "@stryke/unique-id": "^0.3.78",
924
924
  "defu": "^6.1.7",
925
- "powerlines": "^0.43.26",
925
+ "powerlines": "^0.43.28",
926
926
  "prettier": "^3.8.3",
927
927
  "unctx": "^2.5.0"
928
928
  },
929
929
  "devDependencies": {
930
- "@powerlines/plugin-plugin": "^0.12.381",
930
+ "@powerlines/plugin-plugin": "^0.12.383",
931
931
  "@types/node": "^25.6.0"
932
932
  },
933
933
  "publishConfig": { "access": "public" },
934
- "gitHead": "cbea63c5784c5ae5522d50e7ddfbe3b47440cf77"
934
+ "gitHead": "efeaec793549f37c700f2e876bf6097c37375c46"
935
935
  }
@@ -1,29 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
- key = keys[i];
12
- if (!__hasOwnProp.call(to, key) && key !== except) {
13
- __defProp(to, key, {
14
- get: ((k) => from[k]).bind(null, key),
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- }
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
- value: mod,
24
- enumerable: true
25
- }) : target, mod));
26
-
27
- //#endregion
28
-
29
- exports.__toESM = __toESM;
@@ -1,12 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_core_components_source_file = require('./source-file.cjs');
3
- const require_core_components_infrastructure_file = require('./infrastructure-file.cjs');
4
- const require_core_components_output = require('./output.cjs');
5
- const require_core_components_single_line_comment = require('./single-line-comment.cjs');
6
- const require_core_components_spacing = require('./spacing.cjs');
7
-
8
- exports.InfrastructureFile = require_core_components_infrastructure_file.InfrastructureFile;
9
- exports.Output = require_core_components_output.Output;
10
- exports.SingleLineComment = require_core_components_single_line_comment.SingleLineComment;
11
- exports.SourceFile = require_core_components_source_file.SourceFile;
12
- exports.Spacing = require_core_components_spacing.Spacing;
@@ -1,6 +0,0 @@
1
- import { SourceFile, SourceFileProps } from "./source-file.cjs";
2
- import { InfrastructureFile, InfrastructureFileProps } from "./infrastructure-file.cjs";
3
- import { Output, OutputProps } from "./output.cjs";
4
- import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant } from "./single-line-comment.cjs";
5
- import { Spacing, SpacingProps } from "./spacing.cjs";
6
- export { InfrastructureFile, InfrastructureFileProps, Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps };
@@ -1,6 +0,0 @@
1
- import { SourceFile, SourceFileProps } from "./source-file.mjs";
2
- import { InfrastructureFile, InfrastructureFileProps } from "./infrastructure-file.mjs";
3
- import { Output, OutputProps } from "./output.mjs";
4
- import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant } from "./single-line-comment.mjs";
5
- import { Spacing, SpacingProps } from "./spacing.mjs";
6
- export { InfrastructureFile, InfrastructureFileProps, Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps };
@@ -1,7 +0,0 @@
1
- import { SourceFile } from "./source-file.mjs";
2
- import { InfrastructureFile } from "./infrastructure-file.mjs";
3
- import { Output } from "./output.mjs";
4
- import { SingleLineComment } from "./single-line-comment.mjs";
5
- import { Spacing } from "./spacing.mjs";
6
-
7
- export { InfrastructureFile, Output, SingleLineComment, SourceFile, Spacing };
@@ -1,48 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
- const require_core_contexts_context = require('../contexts/context.cjs');
4
- const require_core_components_source_file = require('./source-file.cjs');
5
- let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
6
- let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
7
- let _alloy_js_core = require("@alloy-js/core");
8
- let _stryke_path_append = require("@stryke/path/append");
9
- let _stryke_path_replace = require("@stryke/path/replace");
10
- let defu = require("defu");
11
- defu = require_runtime.__toESM(defu);
12
-
13
- //#region src/core/components/infrastructure-file.tsx
14
- /**
15
- * A base component representing a Powerlines generated infrastructure file.
16
- *
17
- * @param props - The properties for the infrastructure file.
18
- * @returns The rendered infrastructure file component.
19
- */
20
- function InfrastructureFile(props) {
21
- const [{ children, meta, id, extension, filetype: _filetype }, rest] = (0, _alloy_js_core.splitProps)(props, [
22
- "children",
23
- "meta",
24
- "id",
25
- "extension",
26
- "filetype"
27
- ]);
28
- const context = require_core_contexts_context.usePowerlinesSafe();
29
- const filetype = (0, _alloy_js_core.computed)(() => _filetype || extension?.replace(/^\.*/, "") || ((0, _stryke_path_file_path_fns.hasFileExtension)(id) ? (0, _stryke_path_file_path_fns.findFileExtensionSafe)(id) : ""));
30
- const path = (0, _alloy_js_core.computed)(() => {
31
- return (0, _stryke_path_append.appendExtension)((0, _stryke_path_replace.replaceExtension)(context ? (0, _stryke_path_append.appendPath)(id, (0, _stryke_path_replace.replacePath)(context.infrastructurePath, context.config.cwd)) : id), filetype.value);
32
- });
33
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_components_source_file.SourceFile, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
34
- get filetype() {
35
- return filetype.value;
36
- },
37
- get path() {
38
- return path.value;
39
- },
40
- get meta() {
41
- return (0, defu.default)({ kind: "infrastructure" }, meta ?? {});
42
- },
43
- children
44
- }));
45
- }
46
-
47
- //#endregion
48
- exports.InfrastructureFile = InfrastructureFile;
@@ -1,27 +0,0 @@
1
- import { SourceFileProps as SourceFileProps$1 } from "./source-file.cjs";
2
- import * as _$_alloy_js_core0 from "@alloy-js/core";
3
-
4
- //#region src/core/components/infrastructure-file.d.ts
5
- type InfrastructureFileProps = Omit<SourceFileProps$1, "path"> & {
6
- /**
7
- * The infrastructure module identifier.
8
- */
9
- id: string;
10
- /**
11
- * The extension for the infrastructure file. This is used to determine the file extension if the `id` does not already include one.
12
- *
13
- * @remarks
14
- * If none is provided, the file extension will be determined by the {@link SourceFileProps.filetype | filetype} property.
15
- */
16
- extension?: string;
17
- };
18
- /**
19
- * A base component representing a Powerlines generated infrastructure file.
20
- *
21
- * @param props - The properties for the infrastructure file.
22
- * @returns The rendered infrastructure file component.
23
- */
24
- declare function InfrastructureFile(props: InfrastructureFileProps): _$_alloy_js_core0.Children;
25
- //#endregion
26
- export { InfrastructureFile, InfrastructureFileProps };
27
- //# sourceMappingURL=infrastructure-file.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"infrastructure-file.d.cts","names":[],"sources":["../../../src/core/components/infrastructure-file.tsx"],"mappings":";;;;KA6BY,uBAAA,GAA0B,IAAA,CAAK,iBAAA;;;AAA3C;EAIE,EAAA;;;;;;;EAQA,SAAA;AAAA;AASF;;;;;;AAAA,iBAAgB,kBAAA,CAAmB,KAAA,EAAO,uBAAA,GAAuB,iBAAA,CAAA,QAAA"}
@@ -1,27 +0,0 @@
1
- import { SourceFileProps as SourceFileProps$1 } from "./source-file.mjs";
2
- import * as _$_alloy_js_core0 from "@alloy-js/core";
3
-
4
- //#region src/core/components/infrastructure-file.d.ts
5
- type InfrastructureFileProps = Omit<SourceFileProps$1, "path"> & {
6
- /**
7
- * The infrastructure module identifier.
8
- */
9
- id: string;
10
- /**
11
- * The extension for the infrastructure file. This is used to determine the file extension if the `id` does not already include one.
12
- *
13
- * @remarks
14
- * If none is provided, the file extension will be determined by the {@link SourceFileProps.filetype | filetype} property.
15
- */
16
- extension?: string;
17
- };
18
- /**
19
- * A base component representing a Powerlines generated infrastructure file.
20
- *
21
- * @param props - The properties for the infrastructure file.
22
- * @returns The rendered infrastructure file component.
23
- */
24
- declare function InfrastructureFile(props: InfrastructureFileProps): _$_alloy_js_core0.Children;
25
- //#endregion
26
- export { InfrastructureFile, InfrastructureFileProps };
27
- //# sourceMappingURL=infrastructure-file.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"infrastructure-file.d.mts","names":[],"sources":["../../../src/core/components/infrastructure-file.tsx"],"mappings":";;;;KA6BY,uBAAA,GAA0B,IAAA,CAAK,iBAAA;;;AAA3C;EAIE,EAAA;;;;;;;EAQA,SAAA;AAAA;AASF;;;;;;AAAA,iBAAgB,kBAAA,CAAmB,KAAA,EAAO,uBAAA,GAAuB,iBAAA,CAAA,QAAA"}
@@ -1,46 +0,0 @@
1
- import { usePowerlinesSafe } from "../contexts/context.mjs";
2
- import { SourceFile } from "./source-file.mjs";
3
- import { findFileExtensionSafe, hasFileExtension } from "@stryke/path/file-path-fns";
4
- import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
5
- import { computed, splitProps } from "@alloy-js/core";
6
- import { appendExtension, appendPath } from "@stryke/path/append";
7
- import { replaceExtension, replacePath } from "@stryke/path/replace";
8
- import defu from "defu";
9
-
10
- //#region src/core/components/infrastructure-file.tsx
11
- /**
12
- * A base component representing a Powerlines generated infrastructure file.
13
- *
14
- * @param props - The properties for the infrastructure file.
15
- * @returns The rendered infrastructure file component.
16
- */
17
- function InfrastructureFile(props) {
18
- const [{ children, meta, id, extension, filetype: _filetype }, rest] = splitProps(props, [
19
- "children",
20
- "meta",
21
- "id",
22
- "extension",
23
- "filetype"
24
- ]);
25
- const context = usePowerlinesSafe();
26
- const filetype = computed(() => _filetype || extension?.replace(/^\.*/, "") || (hasFileExtension(id) ? findFileExtensionSafe(id) : ""));
27
- const path = computed(() => {
28
- return appendExtension(replaceExtension(context ? appendPath(id, replacePath(context.infrastructurePath, context.config.cwd)) : id), filetype.value);
29
- });
30
- return createComponent(SourceFile, mergeProps(rest, {
31
- get filetype() {
32
- return filetype.value;
33
- },
34
- get path() {
35
- return path.value;
36
- },
37
- get meta() {
38
- return defu({ kind: "infrastructure" }, meta ?? {});
39
- },
40
- children
41
- }));
42
- }
43
-
44
- //#endregion
45
- export { InfrastructureFile };
46
- //# sourceMappingURL=infrastructure-file.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"infrastructure-file.mjs","names":[],"sources":["../../../src/core/components/infrastructure-file.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 { computed, splitProps } from \"@alloy-js/core\";\nimport { appendExtension, appendPath } from \"@stryke/path/append\";\nimport {\n findFileExtensionSafe,\n hasFileExtension\n} from \"@stryke/path/file-path-fns\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport defu from \"defu\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { SourceFile, SourceFileProps } from \"./source-file\";\n\nexport type InfrastructureFileProps = Omit<SourceFileProps, \"path\"> & {\n /**\n * The infrastructure module identifier.\n */\n id: string;\n\n /**\n * The extension for the infrastructure file. This is used to determine the file extension if the `id` does not already include one.\n *\n * @remarks\n * If none is provided, the file extension will be determined by the {@link SourceFileProps.filetype | filetype} property.\n */\n extension?: string;\n};\n\n/**\n * A base component representing a Powerlines generated infrastructure file.\n *\n * @param props - The properties for the infrastructure file.\n * @returns The rendered infrastructure file component.\n */\nexport function InfrastructureFile(props: InfrastructureFileProps) {\n const [{ children, meta, id, extension, filetype: _filetype }, rest] =\n splitProps(props, [\"children\", \"meta\", \"id\", \"extension\", \"filetype\"]);\n\n const context = usePowerlinesSafe();\n const filetype = computed(\n () =>\n _filetype ||\n extension?.replace(/^\\.*/, \"\") ||\n (hasFileExtension(id) ? findFileExtensionSafe(id) : \"\")\n );\n const path = computed(() => {\n const value = context\n ? appendPath(\n id,\n replacePath(context.infrastructurePath, context.config.cwd)\n )\n : id;\n\n return appendExtension(replaceExtension(value), filetype.value);\n });\n\n return (\n <SourceFile\n {...rest}\n filetype={filetype.value}\n path={path.value}\n meta={defu(\n {\n kind: \"infrastructure\"\n },\n meta ?? {}\n )}>\n {children}\n </SourceFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAgCA,SAAI,mBAAA,OAAA;CACF,MAAI,CAAA,YAEF,MACA,IACD,WACC,UAAE,aACD,QAAQ,WAAW,OAAM;EAAA;EAAc;EAAQ;EAAC;EAAkB;EAAO,CAAA;CAC5E,MAAE,UAAA,mBAAA;CACF,MAAA,WAAY,eAAM,aAAA,WAAA,QAAA,QAAA,GAAA,KAAA,iBAAA,GAAA,GAAA,sBAAA,GAAA,GAAA,IAAA;CACnB,MAAA,OAAA,eAAA;AAEC,SAAA,gBAAA,4GAAA,EAAA,SAAA,MAAA;GACE;AACH,QAAA,gBAAA,YAAA,WAAA,MAAA;EACG,IAAA,WAAc;AACd,UAAQ,SAAI;;EAEhB,IAAO,OAAQ;AACb,UAAS,KAAA;;;AAGT,UAAM,KAAU,EACV,MAAA,kBACD,EAAC,QAAA,EAAA,CAAA;;EAEF;EACH,CAAC,CAAC"}
@@ -1,41 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
- const require_core_contexts_context = require('../contexts/context.cjs');
4
- const require_core_contexts_meta = require('../contexts/meta.cjs');
5
- require('../contexts/index.cjs');
6
- let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
7
- let _alloy_js_core = require("@alloy-js/core");
8
-
9
- //#region src/core/components/output.tsx
10
- /**
11
- * Output component for rendering the Powerlines plugin's output files via templates.
12
- */
13
- function Output(props) {
14
- const [{ children, context, meta = {} }, rest] = (0, _alloy_js_core.splitProps)(props, [
15
- "children",
16
- "context",
17
- "meta"
18
- ]);
19
- const contextRef = (0, _alloy_js_core.computed)(() => context);
20
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_meta.MetaContext.Provider, {
21
- value: meta,
22
- get children() {
23
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_context.PowerlinesContext.Provider, {
24
- get value() {
25
- return contextRef.value;
26
- },
27
- get children() {
28
- return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Output, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
29
- get basePath() {
30
- return contextRef.value.config.cwd;
31
- },
32
- children
33
- }));
34
- }
35
- });
36
- }
37
- });
38
- }
39
-
40
- //#endregion
41
- exports.Output = Output;
@@ -1,23 +0,0 @@
1
- import { MetaItem } from "../contexts/meta.cjs";
2
- import * as _$_alloy_js_core0 from "@alloy-js/core";
3
- import { OutputProps as OutputProps$1 } from "@alloy-js/core";
4
- import { PluginContext } from "@powerlines/core";
5
-
6
- //#region src/core/components/output.d.ts
7
- interface OutputProps<TContext extends PluginContext = PluginContext> extends Omit<OutputProps$1, "basePath"> {
8
- /**
9
- * The current Powerlines process context.
10
- */
11
- context: TContext;
12
- /**
13
- * The file metadata collected during rendering.
14
- */
15
- meta?: Record<string, MetaItem>;
16
- }
17
- /**
18
- * Output component for rendering the Powerlines plugin's output files via templates.
19
- */
20
- declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _$_alloy_js_core0.Children;
21
- //#endregion
22
- export { Output, OutputProps };
23
- //# sourceMappingURL=output.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"output.d.cts","names":[],"sources":["../../../src/core/components/output.tsx"],"mappings":";;;;;;UAwBiB,WAAA,kBACE,aAAA,GAAgB,aAAA,UACzB,IAAA,CAAK,aAAA;;;;EAIb,OAAA,EAAS,QAAA;EANiB;;;EAW1B,IAAA,GAAO,MAAA,SAAe,QAAA;AAAA;;;;iBAMR,MAAA,kBAAwB,aAAA,GAAgB,aAAA,CAAA,CACtD,KAAA,EAAO,WAAA,CAAY,QAAA,IAAD,iBAAA,CAAU,QAAA"}
@@ -1,23 +0,0 @@
1
- import { MetaItem } from "../contexts/meta.mjs";
2
- import * as _$_alloy_js_core0 from "@alloy-js/core";
3
- import { OutputProps as OutputProps$1 } from "@alloy-js/core";
4
- import { PluginContext } from "@powerlines/core";
5
-
6
- //#region src/core/components/output.d.ts
7
- interface OutputProps<TContext extends PluginContext = PluginContext> extends Omit<OutputProps$1, "basePath"> {
8
- /**
9
- * The current Powerlines process context.
10
- */
11
- context: TContext;
12
- /**
13
- * The file metadata collected during rendering.
14
- */
15
- meta?: Record<string, MetaItem>;
16
- }
17
- /**
18
- * Output component for rendering the Powerlines plugin's output files via templates.
19
- */
20
- declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _$_alloy_js_core0.Children;
21
- //#endregion
22
- export { Output, OutputProps };
23
- //# sourceMappingURL=output.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"output.d.mts","names":[],"sources":["../../../src/core/components/output.tsx"],"mappings":";;;;;;UAwBiB,WAAA,kBACE,aAAA,GAAgB,aAAA,UACzB,IAAA,CAAK,aAAA;;;;EAIb,OAAA,EAAS,QAAA;EANiB;;;EAW1B,IAAA,GAAO,MAAA,SAAe,QAAA;AAAA;;;;iBAMR,MAAA,kBAAwB,aAAA,GAAgB,aAAA,CAAA,CACtD,KAAA,EAAO,WAAA,CAAY,QAAA,IAAD,iBAAA,CAAU,QAAA"}
@@ -1,40 +0,0 @@
1
- import { PowerlinesContext } from "../contexts/context.mjs";
2
- import { MetaContext } from "../contexts/meta.mjs";
3
- import "../contexts/index.mjs";
4
- import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
5
- import { Output as Output$1, computed, splitProps } from "@alloy-js/core";
6
-
7
- //#region src/core/components/output.tsx
8
- /**
9
- * Output component for rendering the Powerlines plugin's output files via templates.
10
- */
11
- function Output(props) {
12
- const [{ children, context, meta = {} }, rest] = splitProps(props, [
13
- "children",
14
- "context",
15
- "meta"
16
- ]);
17
- const contextRef = computed(() => context);
18
- return createComponent(MetaContext.Provider, {
19
- value: meta,
20
- get children() {
21
- return createComponent(PowerlinesContext.Provider, {
22
- get value() {
23
- return contextRef.value;
24
- },
25
- get children() {
26
- return createComponent(Output$1, mergeProps(rest, {
27
- get basePath() {
28
- return contextRef.value.config.cwd;
29
- },
30
- children
31
- }));
32
- }
33
- });
34
- }
35
- });
36
- }
37
-
38
- //#endregion
39
- export { Output };
40
- //# sourceMappingURL=output.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"output.mjs","names":[],"sources":["../../../src/core/components/output.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 type { OutputProps as OutputPropsExternal } from \"@alloy-js/core\";\nimport { computed, Output as OutputExternal, splitProps } from \"@alloy-js/core\";\nimport type { PluginContext } from \"@powerlines/core\";\nimport { MetaContext, MetaItem } from \"../contexts\";\nimport { PowerlinesContext } from \"../contexts/context\";\n\nexport interface OutputProps<\n TContext extends PluginContext = PluginContext\n> extends Omit<OutputPropsExternal, \"basePath\"> {\n /**\n * The current Powerlines process context.\n */\n context: TContext;\n\n /**\n * The file metadata collected during rendering.\n */\n meta?: Record<string, MetaItem>;\n}\n\n/**\n * Output component for rendering the Powerlines plugin's output files via templates.\n */\nexport function Output<TContext extends PluginContext = PluginContext>(\n props: OutputProps<TContext>\n) {\n const [{ children, context, meta = {} }, rest] = splitProps(props, [\n \"children\",\n \"context\",\n \"meta\"\n ]);\n\n const contextRef = computed(() => context);\n\n return (\n <MetaContext.Provider value={meta}>\n <PowerlinesContext.Provider value={contextRef.value}>\n <OutputExternal {...rest} basePath={contextRef.value.config.cwd}>\n {children}\n </OutputExternal>\n </PowerlinesContext.Provider>\n </MetaContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;AAyBA,SAAW,OAAQ,OAAA;CACjB,MAAA,CAAO,EACL,UACA,SACA,OAAA,EAAA,IACF,QAAS,WAAQ,OAAA;EAAA;EAAA;EAAA;EAAA,CAAA;;AAEjB,QAAE,gBAAA,YAAA,UAAA;EACA,OAAK;EACL,IAAA,WAAA;AACE,UAAG,gBAAe,kBAAS,UAAA;IACjC,IAAA,QAAA;;;IAGG,IAAO,WAAa;AACrB,YAAA,gBAAA,UAAA,WAAA,MAAA;MACK,IAAS,WAAO;AACd,cAAY,WAAQ,MAAA,OAAA;;MAER;MAChB,CAAA,CAAQ;;IAER,CAAA"}
@@ -1,23 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
- let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
4
- let _alloy_js_core = require("@alloy-js/core");
5
-
6
- //#region src/core/components/single-line-comment.tsx
7
- /**
8
- * A single line comment block. The children are rendered as a prose element, which means that they
9
- * are broken into multiple lines
10
- */
11
- function SingleLineComment(props) {
12
- const { variant = "double-slash", children } = props;
13
- const commentStart = variant === "slash-star" ? "/* " : variant === "slash-star-star" ? "/** " : variant === "triple-slash" ? "/// " : variant === "markdown" ? "<!-- " : variant === "yaml" || variant === "hcl" ? "# " : "// ";
14
- return [commentStart, (0, _alloy_js_core_jsx_runtime.createIntrinsic)("align", {
15
- string: commentStart,
16
- get children() {
17
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Prose, { children }), variant === "slash-star" || variant === "slash-star-star" ? " */ " : variant === "markdown" ? " -->" : ""];
18
- }
19
- })];
20
- }
21
-
22
- //#endregion
23
- exports.SingleLineComment = SingleLineComment;
@@ -1,21 +0,0 @@
1
- import { ComponentProps } from "../../types/components.cjs";
2
- import * as _$_alloy_js_core0 from "@alloy-js/core";
3
-
4
- //#region src/core/components/single-line-comment.d.ts
5
- type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown" | "yaml" | "hcl";
6
- interface SingleLineCommentProps extends ComponentProps {
7
- /**
8
- * The variant of the single line comment.
9
- *
10
- * @defaultValue "double-slash"
11
- */
12
- variant?: SingleLineCommentVariant;
13
- }
14
- /**
15
- * A single line comment block. The children are rendered as a prose element, which means that they
16
- * are broken into multiple lines
17
- */
18
- declare function SingleLineComment(props: SingleLineCommentProps): _$_alloy_js_core0.Children;
19
- //#endregion
20
- export { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant };
21
- //# sourceMappingURL=single-line-comment.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"single-line-comment.d.cts","names":[],"sources":["../../../src/core/components/single-line-comment.tsx"],"mappings":";;;;KAqBY,wBAAA;AAAA,UASK,sBAAA,SAA+B,cAAA;;AAThD;;;;EAeE,OAAA,GAAU,wBAAA;AAAA;;;;;iBAOI,iBAAA,CAAkB,KAAA,EAAO,sBAAA,GAAsB,iBAAA,CAAA,QAAA"}
@@ -1,21 +0,0 @@
1
- import { ComponentProps } from "../../types/components.mjs";
2
- import * as _$_alloy_js_core0 from "@alloy-js/core";
3
-
4
- //#region src/core/components/single-line-comment.d.ts
5
- type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown" | "yaml" | "hcl";
6
- interface SingleLineCommentProps extends ComponentProps {
7
- /**
8
- * The variant of the single line comment.
9
- *
10
- * @defaultValue "double-slash"
11
- */
12
- variant?: SingleLineCommentVariant;
13
- }
14
- /**
15
- * A single line comment block. The children are rendered as a prose element, which means that they
16
- * are broken into multiple lines
17
- */
18
- declare function SingleLineComment(props: SingleLineCommentProps): _$_alloy_js_core0.Children;
19
- //#endregion
20
- export { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant };
21
- //# sourceMappingURL=single-line-comment.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"single-line-comment.d.mts","names":[],"sources":["../../../src/core/components/single-line-comment.tsx"],"mappings":";;;;KAqBY,wBAAA;AAAA,UASK,sBAAA,SAA+B,cAAA;;AAThD;;;;EAeE,OAAA,GAAU,wBAAA;AAAA;;;;;iBAOI,iBAAA,CAAkB,KAAA,EAAO,sBAAA,GAAsB,iBAAA,CAAA,QAAA"}
@@ -1,22 +0,0 @@
1
- import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
2
- import { Prose } from "@alloy-js/core";
3
-
4
- //#region src/core/components/single-line-comment.tsx
5
- /**
6
- * A single line comment block. The children are rendered as a prose element, which means that they
7
- * are broken into multiple lines
8
- */
9
- function SingleLineComment(props) {
10
- const { variant = "double-slash", children } = props;
11
- const commentStart = variant === "slash-star" ? "/* " : variant === "slash-star-star" ? "/** " : variant === "triple-slash" ? "/// " : variant === "markdown" ? "<!-- " : variant === "yaml" || variant === "hcl" ? "# " : "// ";
12
- return [commentStart, createIntrinsic("align", {
13
- string: commentStart,
14
- get children() {
15
- return [createComponent(Prose, { children }), variant === "slash-star" || variant === "slash-star-star" ? " */ " : variant === "markdown" ? " -->" : ""];
16
- }
17
- })];
18
- }
19
-
20
- //#endregion
21
- export { SingleLineComment };
22
- //# sourceMappingURL=single-line-comment.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"single-line-comment.mjs","names":[],"sources":["../../../src/core/components/single-line-comment.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 { Prose } from \"@alloy-js/core\";\nimport { ComponentProps } from \"../../types/components\";\n\nexport type SingleLineCommentVariant =\n | \"double-slash\"\n | \"triple-slash\"\n | \"slash-star\"\n | \"slash-star-star\"\n | \"markdown\"\n | \"yaml\"\n | \"hcl\";\n\nexport interface SingleLineCommentProps extends ComponentProps {\n /**\n * The variant of the single line comment.\n *\n * @defaultValue \"double-slash\"\n */\n variant?: SingleLineCommentVariant;\n}\n\n/**\n * A single line comment block. The children are rendered as a prose element, which means that they\n * are broken into multiple lines\n */\nexport function SingleLineComment(props: SingleLineCommentProps) {\n const { variant = \"double-slash\", children } = props;\n\n const commentStart =\n variant === \"slash-star\"\n ? \"/* \"\n : variant === \"slash-star-star\"\n ? \"/** \"\n : variant === \"triple-slash\"\n ? \"/// \"\n : variant === \"markdown\"\n ? \"<!-- \"\n : variant === \"yaml\" || variant === \"hcl\"\n ? \"# \"\n : \"// \";\n\n return (\n <>\n {commentStart}\n <align string={commentStart}>\n <Prose>{children}</Prose>\n\n {variant === \"slash-star\" || variant === \"slash-star-star\"\n ? \" */ \"\n : variant === \"markdown\"\n ? \" -->\"\n : \"\"}\n </align>\n </>\n );\n}\n"],"mappings":";;;;;;;;AAyBA,SAAgB,kBAAI,OAAA;CAClB,MAAG,EACD,UAAK,gBACL;CAEJ,MAAO,eAAU,YAAA,eAA+B,QAAA,YAAe,oBAAA,SAAA,YAAA,iBAAA,SAAA,YAAA,aAAA,UAAA,YAAA,UAAA,YAAA,QAAA,OAAA;AAC7D,QAAE,CAAA,cAAA,gBAAA,SAAA;EACA,QAAK;EACN,IAAA,WAAA;AACG,UAAA,CAAA,gBAA0B,OAAA,EAC5B,UACF,CAAA,EAAQ,YAAE,gBAAwB,YAAA,oBAAA,SAAA,YAAA,aAAA,SAAA,GAAA"}
@@ -1,64 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
- const require_core_contexts_meta = require('../contexts/meta.cjs');
4
- let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
5
- let _alloy_js_core = require("@alloy-js/core");
6
- let _stryke_path_append = require("@stryke/path/append");
7
- let defu = require("defu");
8
- defu = require_runtime.__toESM(defu);
9
-
10
- //#region src/core/components/source-file.tsx
11
- /**
12
- * A base component representing a Powerlines generated source file.
13
- *
14
- * @param props - The properties for the source file.
15
- * @returns The rendered source file component.
16
- */
17
- function SourceFile(props) {
18
- const [{ children, meta, path, header, storage, filetype, reference }] = (0, _alloy_js_core.splitProps)(props, [
19
- "children",
20
- "meta",
21
- "path",
22
- "header",
23
- "storage",
24
- "filetype",
25
- "reference"
26
- ]);
27
- const metadata = require_core_contexts_meta.useMeta();
28
- const parentDirectory = (0, _alloy_js_core.useContext)(_alloy_js_core.SourceDirectoryContext);
29
- const sourceFile = {
30
- path: (0, _stryke_path_append.appendPath)(path, parentDirectory.path),
31
- filetype,
32
- reference
33
- };
34
- parentDirectory?.addContent(sourceFile);
35
- const printOptions = (0, _alloy_js_core.useFormatOptions)({
36
- printWidth: props.printWidth,
37
- tabWidth: props.tabWidth,
38
- useTabs: props.useTabs,
39
- insertFinalNewLine: props.insertFinalNewLine
40
- });
41
- const nodeContext = (0, _alloy_js_core.getContext)();
42
- nodeContext.meta = (0, defu.default)({
43
- sourceFile,
44
- printOptions
45
- }, meta ?? {});
46
- if (metadata) metadata[sourceFile.path] = {
47
- storage,
48
- ...meta ?? {}
49
- };
50
- return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.SourceFileContext.Provider, {
51
- value: sourceFile,
52
- get children() {
53
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
54
- when: header !== void 0,
55
- get children() {
56
- return [header, (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
57
- }
58
- }), children];
59
- }
60
- });
61
- }
62
-
63
- //#endregion
64
- exports.SourceFile = SourceFile;
@@ -1,32 +0,0 @@
1
- import { ComponentProps } from "../../types/components.cjs";
2
- import * as _$_alloy_js_core0 from "@alloy-js/core";
3
- import { SourceFileProps as SourceFileProps$1 } from "@alloy-js/core";
4
- import { StoragePreset } from "powerlines";
5
-
6
- //#region src/core/components/source-file.d.ts
7
- type SourceFileProps = SourceFileProps$1 & ComponentProps & {
8
- /**
9
- * The storage preset for the output files.
10
- *
11
- * @remarks
12
- * If not specified, the output mode will be determined by the provided `output.mode` value.
13
- */
14
- storage?: StoragePreset;
15
- /**
16
- * The metadata associated with the source file.
17
- *
18
- * @remarks
19
- * The values stored in the metadata will be available in the rendering context.
20
- */
21
- meta?: Record<string, any>;
22
- };
23
- /**
24
- * A base component representing a Powerlines generated source file.
25
- *
26
- * @param props - The properties for the source file.
27
- * @returns The rendered source file component.
28
- */
29
- declare function SourceFile(props: SourceFileProps): _$_alloy_js_core0.Children;
30
- //#endregion
31
- export { SourceFile, SourceFileProps };
32
- //# sourceMappingURL=source-file.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"source-file.d.cts","names":[],"sources":["../../../src/core/components/source-file.tsx"],"mappings":";;;;;;KAkCY,eAAA,GAAkB,iBAAA,GAC5B,cAAA;;;AADF;;;;EAQI,OAAA,GAAU,aAAA;EAAA;;;;;;EAQV,IAAA,GAAO,MAAA;AAAA;;;;;AASX;;iBAAgB,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,iBAAA,CAAA,QAAA"}