@powerlines/plugin-alloy 0.26.49 → 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 -1
  3. package/dist/core/components/index.cjs +0 -1
  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 -1
  7. package/dist/core/components/infrastructure-file.cjs +0 -1
  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 -2
  13. package/dist/core/components/infrastructure-file.mjs.map +0 -1
  14. package/dist/core/components/output.cjs +0 -1
  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 -2
  20. package/dist/core/components/output.mjs.map +0 -1
  21. package/dist/core/components/single-line-comment.cjs +0 -1
  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 -2
  27. package/dist/core/components/single-line-comment.mjs.map +0 -1
  28. package/dist/core/components/source-file.cjs +0 -1
  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 -2
  34. package/dist/core/components/source-file.mjs.map +0 -1
  35. package/dist/core/components/spacing.cjs +0 -1
  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 -2
  41. package/dist/core/components/spacing.mjs.map +0 -1
  42. package/dist/core/contexts/context.cjs +0 -1
  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 -2
  48. package/dist/core/contexts/context.mjs.map +0 -1
  49. package/dist/core/contexts/index.cjs +0 -1
  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 -1
  53. package/dist/core/contexts/meta.cjs +0 -1
  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 -2
  59. package/dist/core/contexts/meta.mjs.map +0 -1
  60. package/dist/core/contexts/reflection.cjs +0 -1
  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 -2
  66. package/dist/core/contexts/reflection.mjs.map +0 -1
  67. package/dist/core/helpers/code.cjs +0 -1
  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 -2
  73. package/dist/core/helpers/code.mjs.map +0 -1
  74. package/dist/core/helpers/index.cjs +0 -1
  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 -1
  78. package/dist/core/index.cjs +0 -1
  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 -1
  82. package/dist/hcl/components/block-declaration.cjs +0 -1
  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 -2
  88. package/dist/hcl/components/block-declaration.mjs.map +0 -1
  89. package/dist/hcl/components/hcl-file.cjs +0 -1
  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 -2
  95. package/dist/hcl/components/hcl-file.mjs.map +0 -1
  96. package/dist/hcl/components/index.cjs +0 -1
  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 -1
  100. package/dist/hcl/components/packer-file.cjs +0 -1
  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 -2
  106. package/dist/hcl/components/packer-file.mjs.map +0 -1
  107. package/dist/hcl/components/terraform-file.cjs +0 -1
  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 -2
  113. package/dist/hcl/components/terraform-file.mjs.map +0 -1
  114. package/dist/hcl/index.cjs +0 -1
  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 -1
  118. package/dist/helpers/capnp.cjs +0 -69
  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 -70
  124. package/dist/helpers/capnp.mjs.map +0 -1
  125. package/dist/helpers/create-builtin.cjs +0 -1
  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 -2
  131. package/dist/helpers/create-builtin.mjs.map +0 -1
  132. package/dist/helpers/index.cjs +0 -1
  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 -1
  136. package/dist/helpers/refkey.cjs +0 -1
  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 -2
  142. package/dist/helpers/refkey.mjs.map +0 -1
  143. package/dist/helpers/typescript.cjs +0 -24
  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 -25
  149. package/dist/helpers/typescript.mjs.map +0 -1
  150. package/dist/index.cjs +0 -1
  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 -2
  156. package/dist/index.mjs.map +0 -1
  157. package/dist/markdown/components/front-matter.cjs +0 -1
  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 -2
  163. package/dist/markdown/components/front-matter.mjs.map +0 -1
  164. package/dist/markdown/components/heading.cjs +0 -1
  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 -2
  170. package/dist/markdown/components/heading.mjs.map +0 -1
  171. package/dist/markdown/components/index.cjs +0 -1
  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 -1
  175. package/dist/markdown/components/markdown-file.cjs +0 -1
  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 -2
  181. package/dist/markdown/components/markdown-file.mjs.map +0 -1
  182. package/dist/markdown/components/markdown-table.cjs +0 -1
  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 -2
  188. package/dist/markdown/components/markdown-table.mjs.map +0 -1
  189. package/dist/markdown/contexts/index.cjs +0 -1
  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 -1
  193. package/dist/markdown/contexts/markdown-table.cjs +0 -1
  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 -2
  199. package/dist/markdown/contexts/markdown-table.mjs.map +0 -1
  200. package/dist/markdown/index.cjs +0 -1
  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 -1
  204. package/dist/render.cjs +0 -1
  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 -2
  210. package/dist/render.mjs.map +0 -1
  211. package/dist/types/components.cjs +0 -0
  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 -2
  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 -1
  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 -2
  234. package/dist/typescript/components/builtin-file.mjs.map +0 -1
  235. package/dist/typescript/components/class-declaration.cjs +0 -1
  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 -2
  241. package/dist/typescript/components/class-declaration.mjs.map +0 -1
  242. package/dist/typescript/components/dynamic-import-statement.cjs +0 -1
  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 -2
  248. package/dist/typescript/components/dynamic-import-statement.mjs.map +0 -1
  249. package/dist/typescript/components/entry-file.cjs +0 -1
  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 -2
  255. package/dist/typescript/components/entry-file.mjs.map +0 -1
  256. package/dist/typescript/components/index.cjs +0 -1
  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 -1
  260. package/dist/typescript/components/interface-declaration.cjs +0 -1
  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 -2
  266. package/dist/typescript/components/interface-declaration.mjs.map +0 -1
  267. package/dist/typescript/components/object-declaration.cjs +0 -1
  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 -2
  273. package/dist/typescript/components/object-declaration.mjs.map +0 -1
  274. package/dist/typescript/components/property-name.cjs +0 -1
  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 -2
  280. package/dist/typescript/components/property-name.mjs.map +0 -1
  281. package/dist/typescript/components/record-expression.cjs +0 -3
  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 -4
  287. package/dist/typescript/components/record-expression.mjs.map +0 -1
  288. package/dist/typescript/components/tsdoc-reflection.cjs +0 -1
  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 -2
  294. package/dist/typescript/components/tsdoc-reflection.mjs.map +0 -1
  295. package/dist/typescript/components/tsdoc.cjs +0 -1
  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 -2
  301. package/dist/typescript/components/tsdoc.mjs.map +0 -1
  302. package/dist/typescript/components/type-declaration.cjs +0 -1
  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 -2
  308. package/dist/typescript/components/type-declaration.mjs.map +0 -1
  309. package/dist/typescript/components/type-parameters.cjs +0 -1
  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 -2
  315. package/dist/typescript/components/type-parameters.mjs.map +0 -1
  316. package/dist/typescript/components/typescript-file.cjs +0 -1
  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 -2
  322. package/dist/typescript/components/typescript-file.mjs.map +0 -1
  323. package/dist/typescript/contexts/index.cjs +0 -1
  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 -1
  327. package/dist/typescript/contexts/lexical-scope.cjs +0 -1
  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 -2
  333. package/dist/typescript/contexts/lexical-scope.mjs.map +0 -1
  334. package/dist/typescript/contexts/member-scope.cjs +0 -1
  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 -2
  340. package/dist/typescript/contexts/member-scope.mjs.map +0 -1
  341. package/dist/typescript/helpers/get-call-signature-props.cjs +0 -1
  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 -2
  347. package/dist/typescript/helpers/get-call-signature-props.mjs.map +0 -1
  348. package/dist/typescript/helpers/index.cjs +0 -1
  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 -1
  352. package/dist/typescript/helpers/utilities.cjs +0 -1
  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 -2
  358. package/dist/typescript/helpers/utilities.mjs.map +0 -1
  359. package/dist/typescript/index.cjs +0 -1
  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 -1
  363. package/dist/yaml/components/index.cjs +0 -1
  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 -1
  367. package/dist/yaml/components/yaml-file.cjs +0 -1
  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 -2
  373. package/dist/yaml/components/yaml-file.mjs.map +0 -1
  374. package/dist/yaml/index.cjs +0 -1
  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 -1
@@ -1,47 +0,0 @@
1
- import { ComponentContext } from "@alloy-js/core";
2
- import { StoragePreset } from "powerlines";
3
-
4
- //#region src/core/contexts/meta.d.ts
5
- interface MetaItem {
6
- /**
7
- * The kind of metadata item.
8
- */
9
- kind?: "builtin" | "entry" | string;
10
- /**
11
- * Whether to skip formatting for this output.
12
- */
13
- skipFormat?: boolean;
14
- /**
15
- * The storage preset or adapter name for the output files.
16
- *
17
- * @remarks
18
- * If not specified, the output mode will be determined by the provided `output.mode` value.
19
- */
20
- storage?: StoragePreset | string;
21
- [key: string]: any;
22
- }
23
- /**
24
- * The Powerlines meta context used to determine metadata of files generated during rendering.
25
- */
26
- declare const MetaContext: ComponentContext<Record<string, MetaItem>>;
27
- /**
28
- * Hook to access the Powerlines Context.
29
- *
30
- * @returns The Context.
31
- */
32
- declare function useMetaContext(): Record<string, MetaItem> | undefined;
33
- /**
34
- * Hook to safely access the render context's metadata.
35
- *
36
- * @returns The Powerlines context or undefined if not set.
37
- */
38
- declare function useMetaSafe(): Record<string, MetaItem> | undefined;
39
- /**
40
- * Hook to access the render context's metadata.
41
- *
42
- * @returns The Powerlines context.
43
- */
44
- declare function useMeta(): Record<string, MetaItem>;
45
- //#endregion
46
- export { MetaContext, MetaItem, useMeta, useMetaContext, useMetaSafe };
47
- //# sourceMappingURL=meta.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.d.cts","names":[],"sources":["../../../src/core/contexts/meta.ts"],"mappings":";;;;UAyBiB,QAAA;;AAAjB;;EAIE,IAAA;EAauB;;;EARvB,UAAA;EAQU;;;;AAQZ;;EARE,OAAA,GAAU,aAAA;EAAA,CAET,GAAA;AAAA;;;;cAMU,WAAA,EAAa,gBAAA,CAAiB,MAAA,SAAe,QAAA;;;;;AAQ1D;iBAAgB,cAAA,CAAA,GAAkB,MAAA,SAAe,QAAA;;;;AASjD;;iBAAgB,WAAA,CAAA,GAAe,MAAA,SAAe,QAAA;;;AAW9C;;;iBAAgB,OAAA,CAAA,GAAW,MAAA,SAAe,QAAA"}
@@ -1,47 +0,0 @@
1
- import { ComponentContext } from "@alloy-js/core";
2
- import { StoragePreset } from "powerlines";
3
-
4
- //#region src/core/contexts/meta.d.ts
5
- interface MetaItem {
6
- /**
7
- * The kind of metadata item.
8
- */
9
- kind?: "builtin" | "entry" | string;
10
- /**
11
- * Whether to skip formatting for this output.
12
- */
13
- skipFormat?: boolean;
14
- /**
15
- * The storage preset or adapter name for the output files.
16
- *
17
- * @remarks
18
- * If not specified, the output mode will be determined by the provided `output.mode` value.
19
- */
20
- storage?: StoragePreset | string;
21
- [key: string]: any;
22
- }
23
- /**
24
- * The Powerlines meta context used to determine metadata of files generated during rendering.
25
- */
26
- declare const MetaContext: ComponentContext<Record<string, MetaItem>>;
27
- /**
28
- * Hook to access the Powerlines Context.
29
- *
30
- * @returns The Context.
31
- */
32
- declare function useMetaContext(): Record<string, MetaItem> | undefined;
33
- /**
34
- * Hook to safely access the render context's metadata.
35
- *
36
- * @returns The Powerlines context or undefined if not set.
37
- */
38
- declare function useMetaSafe(): Record<string, MetaItem> | undefined;
39
- /**
40
- * Hook to access the render context's metadata.
41
- *
42
- * @returns The Powerlines context.
43
- */
44
- declare function useMeta(): Record<string, MetaItem>;
45
- //#endregion
46
- export { MetaContext, MetaItem, useMeta, useMetaContext, useMetaSafe };
47
- //# sourceMappingURL=meta.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.d.mts","names":[],"sources":["../../../src/core/contexts/meta.ts"],"mappings":";;;;UAyBiB,QAAA;;AAAjB;;EAIE,IAAA;EAauB;;;EARvB,UAAA;EAQU;;;;AAQZ;;EARE,OAAA,GAAU,aAAA;EAAA,CAET,GAAA;AAAA;;;;cAMU,WAAA,EAAa,gBAAA,CAAiB,MAAA,SAAe,QAAA;;;;;AAQ1D;iBAAgB,cAAA,CAAA,GAAkB,MAAA,SAAe,QAAA;;;;AASjD;;iBAAgB,WAAA,CAAA,GAAe,MAAA,SAAe,QAAA;;;AAW9C;;;iBAAgB,OAAA,CAAA,GAAW,MAAA,SAAe,QAAA"}
@@ -1,2 +0,0 @@
1
- import{createNamedContext as e,useContext as t}from"@alloy-js/core";const n=e(`Meta`);function r(){return t(n)}function i(){return r()??void 0}function a(){let e=i();if(!e)throw Error("Powerlines metadata is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");return e}export{n as MetaContext,a as useMeta,r as useMetaContext,i as useMetaSafe};
2
- //# sourceMappingURL=meta.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.mjs","names":[],"sources":["../../../src/core/contexts/meta.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n ComponentContext,\n createNamedContext,\n useContext\n} from \"@alloy-js/core\";\nimport type { StoragePreset } from \"powerlines\";\n\nexport interface MetaItem {\n /**\n * The kind of metadata item.\n */\n kind?: \"builtin\" | \"entry\" | string;\n\n /**\n * Whether to skip formatting for this output.\n */\n skipFormat?: boolean;\n\n /**\n * The storage preset or adapter name for the output files.\n *\n * @remarks\n * If not specified, the output mode will be determined by the provided `output.mode` value.\n */\n storage?: StoragePreset | string;\n\n [key: string]: any;\n}\n\n/**\n * The Powerlines meta context used to determine metadata of files generated during rendering.\n */\nexport const MetaContext: ComponentContext<Record<string, MetaItem>> =\n createNamedContext<Record<string, MetaItem>>(\"Meta\");\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function useMetaContext(): Record<string, MetaItem> | undefined {\n return useContext(MetaContext);\n}\n\n/**\n * Hook to safely access the render context's metadata.\n *\n * @returns The Powerlines context or undefined if not set.\n */\nexport function useMetaSafe(): Record<string, MetaItem> | undefined {\n const meta = useMetaContext();\n\n return meta ?? undefined;\n}\n\n/**\n * Hook to access the render context's metadata.\n *\n * @returns The Powerlines context.\n */\nexport function useMeta(): Record<string, MetaItem> {\n const meta = useMetaSafe();\n if (!meta) {\n throw new Error(\n \"Powerlines metadata is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return meta;\n}\n"],"mappings":"oEAsBA,MAAS,EAAc,EAAA,OAAA,CAOvB,SAAU,GAAqB,aAS/B,SAAG,GAAA,CAED,OADI,GACM,EAAA,IAAA,GAQZ,SAAO,GAAgB,CACrB,IAAA,EAAA,GAAA,CACF,GAAM,CAAC,EACL,MAAA,MAAkB,oNAAkC,CAEpD,OAAA"}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`@alloy-js/core`);const t=(0,e.createContext)();function n(){let n=(0,e.useContext)(t);if(!n)throw Error("Powerlines - ReflectionClass Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");return n}const r=(0,e.createNamedContext)(`ReflectionProperty`);function i(){let t=(0,e.useContext)(r);if(!t)throw Error("Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");return t}function a(){let e=i();if(!e)throw Error("Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");return e}const o=(0,e.createNamedContext)(`ReflectionMethod`);function s(){let t=(0,e.useContext)(o);if(!t)throw Error("Powerlines - Reflection Method Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");return t}const c=(0,e.createNamedContext)(`ReflectionParameter`);function l(){return(0,e.useContext)(c)}exports.ReflectionClassContext=t,exports.ReflectionMethodContext=o,exports.ReflectionParameterContext=c,exports.ReflectionPropertyContext=r,exports.useReflectionClass=n,exports.useReflectionMethod=s,exports.useReflectionParameter=l,exports.useReflectionProperty=a,exports.useReflectionPropertyContext=i;
@@ -1,62 +0,0 @@
1
- import { ReflectionOverrideInterface } from "../../types/components.cjs";
2
- import { ComponentContext } from "@alloy-js/core";
3
- import { ReflectionClass, ReflectionMethod, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
-
5
- //#region src/core/contexts/reflection.d.ts
6
- interface ReflectionClassContextInterface<T extends Record<string, any> = Record<string, any>> {
7
- reflection: ReflectionClass<T>;
8
- override?: ReflectionOverrideInterface<T>;
9
- }
10
- /**
11
- * The reflection class context used in template rendering.
12
- */
13
- declare const ReflectionClassContext: ComponentContext<ReflectionClassContextInterface<any>>;
14
- /**
15
- * Hook to access the Reflection context.
16
- *
17
- * @returns A reactive version of the current reflection.
18
- */
19
- declare function useReflectionClass<T extends Record<string, any> = Record<string, any>>(): ReflectionClassContextInterface<T>;
20
- interface ReflectionPropertyContextInterface {
21
- property: ReflectionProperty;
22
- defaultValue?: any;
23
- }
24
- /**
25
- * The reflection property context used in template rendering.
26
- */
27
- declare const ReflectionPropertyContext: ComponentContext<ReflectionPropertyContextInterface>;
28
- /**
29
- * Hook to access the Reflection Property context.
30
- *
31
- * @returns A reactive version of the current reflection.
32
- */
33
- declare function useReflectionPropertyContext(): ReflectionPropertyContextInterface;
34
- /**
35
- * Hook to access the Reflection Property context.
36
- *
37
- * @returns A reactive version of the current reflection.
38
- */
39
- declare function useReflectionProperty(): ReflectionPropertyContextInterface;
40
- /**
41
- * The reflection method context used in template rendering.
42
- */
43
- declare const ReflectionMethodContext: ComponentContext<ReflectionMethod>;
44
- /**
45
- * Hook to access the Reflection Method context.
46
- *
47
- * @returns A reactive version of the current reflection.
48
- */
49
- declare function useReflectionMethod(): ReflectionMethod;
50
- /**
51
- * The reflection parameter context used in template rendering.
52
- */
53
- declare const ReflectionParameterContext: ComponentContext<ReflectionParameter>;
54
- /**
55
- * Hook to access the Reflection Parameter context.
56
- *
57
- * @returns A reactive version of the current reflection.
58
- */
59
- declare function useReflectionParameter(): ReflectionParameter;
60
- //#endregion
61
- export { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext };
62
- //# sourceMappingURL=reflection.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reflection.d.cts","names":[],"sources":["../../../src/core/contexts/reflection.ts"],"mappings":";;;;;UA4BiB,+BAAA,WACL,MAAA,gBAAsB,MAAA;EAEhC,UAAA,EAAY,eAAA,CAAgB,CAAA;EAC5B,QAAA,GAAW,2BAAA,CAA4B,CAAA;AAAA;;;;cAM5B,sBAAA,EAAwB,gBAAA,CACnC,+BAAA;;;;;;iBAQc,kBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAAA,GAAmB,+BAAA,CAAA,CAAA;AAAA,UAepC,kCAAA;EACf,QAAA,EAAU,kBAAA;EACV,YAAA;AAAA;;;;cAMW,yBAAA,EAA2B,gBAAA,CAAiB,kCAAA;;;AAjCzD;;;iBAyCgB,4BAAA,CAAA,GAA4B,kCAAA;;AAhC5C;;;;iBAmDgB,qBAAA,CAAA,GAAqB,kCAAA;;;;cAexB,uBAAA,EAAyB,gBAAA,CAAiB,gBAAA;;;;;;iBAQvC,mBAAA,CAAA,GAAmB,gBAAA;;AA1DnC;;cAyEa,0BAAA,EAA4B,gBAAA,CAAiB,mBAAA;;;;;;iBAQ1C,sBAAA,CAAA,GAAsB,mBAAA"}
@@ -1,62 +0,0 @@
1
- import { ReflectionOverrideInterface } from "../../types/components.mjs";
2
- import { ComponentContext } from "@alloy-js/core";
3
- import { ReflectionClass, ReflectionMethod, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
-
5
- //#region src/core/contexts/reflection.d.ts
6
- interface ReflectionClassContextInterface<T extends Record<string, any> = Record<string, any>> {
7
- reflection: ReflectionClass<T>;
8
- override?: ReflectionOverrideInterface<T>;
9
- }
10
- /**
11
- * The reflection class context used in template rendering.
12
- */
13
- declare const ReflectionClassContext: ComponentContext<ReflectionClassContextInterface<any>>;
14
- /**
15
- * Hook to access the Reflection context.
16
- *
17
- * @returns A reactive version of the current reflection.
18
- */
19
- declare function useReflectionClass<T extends Record<string, any> = Record<string, any>>(): ReflectionClassContextInterface<T>;
20
- interface ReflectionPropertyContextInterface {
21
- property: ReflectionProperty;
22
- defaultValue?: any;
23
- }
24
- /**
25
- * The reflection property context used in template rendering.
26
- */
27
- declare const ReflectionPropertyContext: ComponentContext<ReflectionPropertyContextInterface>;
28
- /**
29
- * Hook to access the Reflection Property context.
30
- *
31
- * @returns A reactive version of the current reflection.
32
- */
33
- declare function useReflectionPropertyContext(): ReflectionPropertyContextInterface;
34
- /**
35
- * Hook to access the Reflection Property context.
36
- *
37
- * @returns A reactive version of the current reflection.
38
- */
39
- declare function useReflectionProperty(): ReflectionPropertyContextInterface;
40
- /**
41
- * The reflection method context used in template rendering.
42
- */
43
- declare const ReflectionMethodContext: ComponentContext<ReflectionMethod>;
44
- /**
45
- * Hook to access the Reflection Method context.
46
- *
47
- * @returns A reactive version of the current reflection.
48
- */
49
- declare function useReflectionMethod(): ReflectionMethod;
50
- /**
51
- * The reflection parameter context used in template rendering.
52
- */
53
- declare const ReflectionParameterContext: ComponentContext<ReflectionParameter>;
54
- /**
55
- * Hook to access the Reflection Parameter context.
56
- *
57
- * @returns A reactive version of the current reflection.
58
- */
59
- declare function useReflectionParameter(): ReflectionParameter;
60
- //#endregion
61
- export { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext };
62
- //# sourceMappingURL=reflection.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reflection.d.mts","names":[],"sources":["../../../src/core/contexts/reflection.ts"],"mappings":";;;;;UA4BiB,+BAAA,WACL,MAAA,gBAAsB,MAAA;EAEhC,UAAA,EAAY,eAAA,CAAgB,CAAA;EAC5B,QAAA,GAAW,2BAAA,CAA4B,CAAA;AAAA;;;;cAM5B,sBAAA,EAAwB,gBAAA,CACnC,+BAAA;;;;;;iBAQc,kBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAAA,GAAmB,+BAAA,CAAA,CAAA;AAAA,UAepC,kCAAA;EACf,QAAA,EAAU,kBAAA;EACV,YAAA;AAAA;;;;cAMW,yBAAA,EAA2B,gBAAA,CAAiB,kCAAA;;;AAjCzD;;;iBAyCgB,4BAAA,CAAA,GAA4B,kCAAA;;AAhC5C;;;;iBAmDgB,qBAAA,CAAA,GAAqB,kCAAA;;;;cAexB,uBAAA,EAAyB,gBAAA,CAAiB,gBAAA;;;;;;iBAQvC,mBAAA,CAAA,GAAmB,gBAAA;;AA1DnC;;cAyEa,0BAAA,EAA4B,gBAAA,CAAiB,mBAAA;;;;;;iBAQ1C,sBAAA,CAAA,GAAsB,mBAAA"}
@@ -1,2 +0,0 @@
1
- import{createContext as e,createNamedContext as t,useContext as n}from"@alloy-js/core";const r=e();function i(){let e=n(r);if(!e)throw Error("Powerlines - ReflectionClass Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");return e}const a=t(`ReflectionProperty`);function o(){let e=n(a);if(!e)throw Error("Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");return e}function s(){let e=o();if(!e)throw Error("Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");return e}const c=t(`ReflectionMethod`);function l(){let e=n(c);if(!e)throw Error("Powerlines - Reflection Method Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");return e}const u=t(`ReflectionParameter`);function d(){return n(u)}export{r as ReflectionClassContext,c as ReflectionMethodContext,u as ReflectionParameterContext,a as ReflectionPropertyContext,i as useReflectionClass,l as useReflectionMethod,d as useReflectionParameter,s as useReflectionProperty,o as useReflectionPropertyContext};
2
- //# sourceMappingURL=reflection.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reflection.mjs","names":[],"sources":["../../../src/core/contexts/reflection.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ComponentContext } from \"@alloy-js/core\";\nimport { createContext, createNamedContext, useContext } from \"@alloy-js/core\";\nimport type {\n ReflectionClass,\n ReflectionMethod,\n ReflectionParameter,\n ReflectionProperty\n} from \"@powerlines/deepkit/vendor/type\";\nimport { ReflectionOverrideInterface } from \"../../types/components\";\n\nexport interface ReflectionClassContextInterface<\n T extends Record<string, any> = Record<string, any>\n> {\n reflection: ReflectionClass<T>;\n override?: ReflectionOverrideInterface<T>;\n}\n\n/**\n * The reflection class context used in template rendering.\n */\nexport const ReflectionClassContext: ComponentContext<\n ReflectionClassContextInterface<any>\n> = createContext<ReflectionClassContextInterface<any>>();\n\n/**\n * Hook to access the Reflection context.\n *\n * @returns A reactive version of the current reflection.\n */\nexport function useReflectionClass<\n T extends Record<string, any> = Record<string, any>\n>() {\n const context = useContext<ReflectionClassContextInterface<T>>(\n ReflectionClassContext\n )!;\n\n if (!context) {\n throw new Error(\n \"Powerlines - ReflectionClass Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return context;\n}\n\nexport interface ReflectionPropertyContextInterface {\n property: ReflectionProperty;\n defaultValue?: any;\n}\n\n/**\n * The reflection property context used in template rendering.\n */\nexport const ReflectionPropertyContext: ComponentContext<ReflectionPropertyContextInterface> =\n createNamedContext<ReflectionPropertyContextInterface>(\"ReflectionProperty\");\n\n/**\n * Hook to access the Reflection Property context.\n *\n * @returns A reactive version of the current reflection.\n */\nexport function useReflectionPropertyContext() {\n const context = useContext<ReflectionPropertyContextInterface>(\n ReflectionPropertyContext\n )!;\n\n if (!context) {\n throw new Error(\n \"Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return context;\n}\n\n/**\n * Hook to access the Reflection Property context.\n *\n * @returns A reactive version of the current reflection.\n */\nexport function useReflectionProperty() {\n const context = useReflectionPropertyContext();\n\n if (!context) {\n throw new Error(\n \"Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return context;\n}\n\n/**\n * The reflection method context used in template rendering.\n */\nexport const ReflectionMethodContext: ComponentContext<ReflectionMethod> =\n createNamedContext<ReflectionMethod>(\"ReflectionMethod\");\n\n/**\n * Hook to access the Reflection Method context.\n *\n * @returns A reactive version of the current reflection.\n */\nexport function useReflectionMethod() {\n const context = useContext<ReflectionMethod>(ReflectionMethodContext)!;\n\n if (!context) {\n throw new Error(\n \"Powerlines - Reflection Method Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return context;\n}\n\n/**\n * The reflection parameter context used in template rendering.\n */\nexport const ReflectionParameterContext: ComponentContext<ReflectionParameter> =\n createNamedContext<ReflectionParameter>(\"ReflectionParameter\");\n\n/**\n * Hook to access the Reflection Parameter context.\n *\n * @returns A reactive version of the current reflection.\n */\nexport function useReflectionParameter() {\n return useContext<ReflectionParameter>(ReflectionParameterContext)!;\n}\n"],"mappings":"uFAuBA,MAAE,EAAmB,GAAA,CAOrB,SAAE,GAAA,CACA,IAAA,EAAY,EAAe,EAAG,CAC9B,GAAA,CAAA,EACF,MAAA,MAAA,sMAAA,CAEE,OAAA,EAKF,MAAI,EAAc,EAAuC,qBAAA,CAOzD,SAAgB,GAAkB,CAChC,IAAE,EAAc,EAAS,EAAyB,CAClD,GAAE,CAAA,EACF,MAAM,MAAU,0MAA8C,CAE9D,OAAE,EAQJ,SAAgB,GAAA,CAChB,IAAA,EAAA,GAAA,OAEA,MAAO,MAAU,0MAAmC,CAElD,OAAA,EAMF,MAAa,EAA0B,EAAkB,mBAAA,CAOzD,SAAE,GAAA,CACF,IAAO,EAAS,EAAA,EAA+B,CAC7C,GAAA,CAAK,EACH,MAAA,MAAA,wMAAA,2CAeJ,SAAc,GAAwB,CACpC,OAAA,EAAA,EAAA"}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`@alloy-js/core`);function t(t,...n){if(t.filter(e=>e.trim()).length===0&&n.length===0)throw Error("The `code` function cannot be used with a template that contains only whitespace. Please provide a non-empty template.");return(0,e.code)(t,...n)}exports.code=t;
@@ -1,29 +0,0 @@
1
- import { Children } from "@alloy-js/core";
2
-
3
- //#region src/core/helpers/code.d.ts
4
- /**
5
- * Turn the provided string template into Children by replacing literal line
6
- * breaks with hardlines and automatically indenting indented content. Similar
7
- * in spirit to the `<code>` element in HTML.
8
- *
9
- * @see {@link text} for a similar function which treats whitespace similar to
10
- * JSX template bodies.
11
- *
12
- * @example
13
- * ```ts
14
- * code`
15
- * function greet(name: string) {
16
- * console.log("Hello, " + name + "!");
17
- * }
18
- * `
19
- * ```
20
- *
21
- * @param template - The template string to be processed into Children.
22
- * @param substitutions - Any interpolated values within the template, which will be treated as Children and properly indented.
23
- * @returns A Children representation of the provided template string, with proper handling of line breaks and indentation.
24
- * @throws Will throw an error if the provided template contains only whitespace, as this is likely a mistake and would cause a less recognizable "Cannot read properties of undefined" exception later in the processing.
25
- */
26
- declare function code(template: TemplateStringsArray, ...substitutions: Children[]): Children;
27
- //#endregion
28
- export { code };
29
- //# sourceMappingURL=code.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"code.d.cts","names":[],"sources":["../../../src/core/helpers/code.ts"],"mappings":";;;;;AA0CA;;;;;;;;;;;;;;;;;;;;iBAAgB,IAAA,CACd,QAAA,EAAU,oBAAA,KACP,aAAA,EAAe,QAAA,KACjB,QAAA"}
@@ -1,29 +0,0 @@
1
- import { Children } from "@alloy-js/core";
2
-
3
- //#region src/core/helpers/code.d.ts
4
- /**
5
- * Turn the provided string template into Children by replacing literal line
6
- * breaks with hardlines and automatically indenting indented content. Similar
7
- * in spirit to the `<code>` element in HTML.
8
- *
9
- * @see {@link text} for a similar function which treats whitespace similar to
10
- * JSX template bodies.
11
- *
12
- * @example
13
- * ```ts
14
- * code`
15
- * function greet(name: string) {
16
- * console.log("Hello, " + name + "!");
17
- * }
18
- * `
19
- * ```
20
- *
21
- * @param template - The template string to be processed into Children.
22
- * @param substitutions - Any interpolated values within the template, which will be treated as Children and properly indented.
23
- * @returns A Children representation of the provided template string, with proper handling of line breaks and indentation.
24
- * @throws Will throw an error if the provided template contains only whitespace, as this is likely a mistake and would cause a less recognizable "Cannot read properties of undefined" exception later in the processing.
25
- */
26
- declare function code(template: TemplateStringsArray, ...substitutions: Children[]): Children;
27
- //#endregion
28
- export { code };
29
- //# sourceMappingURL=code.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"code.d.mts","names":[],"sources":["../../../src/core/helpers/code.ts"],"mappings":";;;;;AA0CA;;;;;;;;;;;;;;;;;;;;iBAAgB,IAAA,CACd,QAAA,EAAU,oBAAA,KACP,aAAA,EAAe,QAAA,KACjB,QAAA"}
@@ -1,2 +0,0 @@
1
- import{code as e}from"@alloy-js/core";function t(t,...n){if(t.filter(e=>e.trim()).length===0&&n.length===0)throw Error("The `code` function cannot be used with a template that contains only whitespace. Please provide a non-empty template.");return e(t,...n)}export{t as code};
2
- //# sourceMappingURL=code.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"code.mjs","names":[],"sources":["../../../src/core/helpers/code.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code as baseCode, Children } from \"@alloy-js/core\";\n\n/**\n * Turn the provided string template into Children by replacing literal line\n * breaks with hardlines and automatically indenting indented content. Similar\n * in spirit to the `<code>` element in HTML.\n *\n * @see {@link text} for a similar function which treats whitespace similar to\n * JSX template bodies.\n *\n * @example\n * ```ts\n * code`\n * function greet(name: string) {\n * console.log(\"Hello, \" + name + \"!\");\n * }\n * `\n * ```\n *\n * @param template - The template string to be processed into Children.\n * @param substitutions - Any interpolated values within the template, which will be treated as Children and properly indented.\n * @returns A Children representation of the provided template string, with proper handling of line breaks and indentation.\n * @throws Will throw an error if the provided template contains only whitespace, as this is likely a mistake and would cause a less recognizable \"Cannot read properties of undefined\" exception later in the processing.\n */\nexport function code(\n template: TemplateStringsArray,\n ...substitutions: Children[]\n): Children {\n if (\n template.filter(seg => seg.trim()).length === 0 &&\n substitutions.length === 0\n ) {\n throw new Error(\n \"The `code` function cannot be used with a template that contains only whitespace. Please provide a non-empty template.\"\n );\n }\n\n return baseCode(template, ...substitutions);\n}\n"],"mappings":"sCA0CA,SAAgB,EAAI,EAAA,GAAA,EAAA,CAClB,GAAA,EAAU,OAAA,GAAA,EAAoB,MAAA,CAAA,CAAA,SAAA,GAAA,EAAA,SAAA,EAC5B,MAAC,MAAe,yHAAS,CAE3B,OAAG,EAAA,EAAA,GAAA,EAAA"}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./code.cjs`);exports.code=e.code;
@@ -1,2 +0,0 @@
1
- import { code } from "./code.cjs";
2
- export { code };
@@ -1,2 +0,0 @@
1
- import { code } from "./code.mjs";
2
- export { code };
@@ -1 +0,0 @@
1
- import{code as e}from"./code.mjs";export{e as code};
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./contexts/context.cjs`),t=require(`./contexts/meta.cjs`),n=require(`./components/source-file.cjs`),r=require(`./components/infrastructure-file.cjs`),i=require(`./contexts/reflection.cjs`);require(`./contexts/index.cjs`);const a=require(`./components/output.cjs`),o=require(`./components/single-line-comment.cjs`),s=require(`./components/spacing.cjs`);require(`./components/index.cjs`);const c=require(`./helpers/code.cjs`);require(`./helpers/index.cjs`),exports.InfrastructureFile=r.InfrastructureFile,exports.MetaContext=t.MetaContext,exports.Output=a.Output,exports.PowerlinesContext=e.PowerlinesContext,exports.ReflectionClassContext=i.ReflectionClassContext,exports.ReflectionMethodContext=i.ReflectionMethodContext,exports.ReflectionParameterContext=i.ReflectionParameterContext,exports.ReflectionPropertyContext=i.ReflectionPropertyContext,exports.SingleLineComment=o.SingleLineComment,exports.SourceFile=n.SourceFile,exports.Spacing=s.Spacing,exports.code=c.code,exports.useMeta=t.useMeta,exports.useMetaContext=t.useMetaContext,exports.useMetaSafe=t.useMetaSafe,exports.usePowerlines=e.usePowerlines,exports.usePowerlinesContext=e.usePowerlinesContext,exports.usePowerlinesSafe=e.usePowerlinesSafe,exports.useReflectionClass=i.useReflectionClass,exports.useReflectionMethod=i.useReflectionMethod,exports.useReflectionParameter=i.useReflectionParameter,exports.useReflectionProperty=i.useReflectionProperty,exports.useReflectionPropertyContext=i.useReflectionPropertyContext;
@@ -1,10 +0,0 @@
1
- import { SourceFile, SourceFileProps } from "./components/source-file.cjs";
2
- import { InfrastructureFile, InfrastructureFileProps } from "./components/infrastructure-file.cjs";
3
- import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.cjs";
4
- import { MetaContext, MetaItem, useMeta, useMetaContext, useMetaSafe } from "./contexts/meta.cjs";
5
- import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext } from "./contexts/reflection.cjs";
6
- import { Output, OutputProps } from "./components/output.cjs";
7
- import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant } from "./components/single-line-comment.cjs";
8
- import { Spacing, SpacingProps } from "./components/spacing.cjs";
9
- import { code } from "./helpers/code.cjs";
10
- export { InfrastructureFile, InfrastructureFileProps, MetaContext, MetaItem, Output, OutputProps, PowerlinesContext, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, code, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext };
@@ -1,10 +0,0 @@
1
- import { SourceFile, SourceFileProps } from "./components/source-file.mjs";
2
- import { InfrastructureFile, InfrastructureFileProps } from "./components/infrastructure-file.mjs";
3
- import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
4
- import { MetaContext, MetaItem, useMeta, useMetaContext, useMetaSafe } from "./contexts/meta.mjs";
5
- import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext } from "./contexts/reflection.mjs";
6
- import { Output, OutputProps } from "./components/output.mjs";
7
- import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant } from "./components/single-line-comment.mjs";
8
- import { Spacing, SpacingProps } from "./components/spacing.mjs";
9
- import { code } from "./helpers/code.mjs";
10
- export { InfrastructureFile, InfrastructureFileProps, MetaContext, MetaItem, Output, OutputProps, PowerlinesContext, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, code, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext };
@@ -1 +0,0 @@
1
- import{PowerlinesContext as e,usePowerlines as t,usePowerlinesContext as n,usePowerlinesSafe as r}from"./contexts/context.mjs";import{MetaContext as i,useMeta as a,useMetaContext as o,useMetaSafe as s}from"./contexts/meta.mjs";import{SourceFile as c}from"./components/source-file.mjs";import{InfrastructureFile as l}from"./components/infrastructure-file.mjs";import{ReflectionClassContext as u,ReflectionMethodContext as d,ReflectionParameterContext as f,ReflectionPropertyContext as p,useReflectionClass as m,useReflectionMethod as h,useReflectionParameter as g,useReflectionProperty as _,useReflectionPropertyContext as v}from"./contexts/reflection.mjs";import"./contexts/index.mjs";import{Output as y}from"./components/output.mjs";import{SingleLineComment as b}from"./components/single-line-comment.mjs";import{Spacing as x}from"./components/spacing.mjs";import"./components/index.mjs";import{code as S}from"./helpers/code.mjs";import"./helpers/index.mjs";export{l as InfrastructureFile,i as MetaContext,y as Output,e as PowerlinesContext,u as ReflectionClassContext,d as ReflectionMethodContext,f as ReflectionParameterContext,p as ReflectionPropertyContext,b as SingleLineComment,c as SourceFile,x as Spacing,S as code,a as useMeta,o as useMetaContext,s as useMetaSafe,t as usePowerlines,n as usePowerlinesContext,r as usePowerlinesSafe,m as useReflectionClass,h as useReflectionMethod,g as useReflectionParameter,_ as useReflectionProperty,v as useReflectionPropertyContext};
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../core/helpers/code.cjs`);let t=require(`@alloy-js/core/jsx-runtime`),n=require(`@alloy-js/core`);function r(r){let{children:i,type:a,label:o}=r;return[(0,t.memo)(()=>e.code`${a} ${Array.isArray(o)?o.join(` `):o} {`),(0,t.createComponent)(n.Prose,{get children(){return(0,t.createComponent)(n.Show,{get when(){return!!i},children:i})}}),e.code`} `]}exports.BlockDeclaration=r;
@@ -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/hcl/components/block-declaration.d.ts
5
- interface BlockDeclarationProps extends ComponentProps {
6
- type: string;
7
- label: string | string[];
8
- }
9
- /**
10
- * A base component representing a block declaration in HCL. The children are rendered as a prose element, which means that they are broken into multiple lines. This component can be used to create more specific block declaration components, such as resource blocks, provider blocks, etc.
11
- *
12
- * @see https://developer.hashicorp.com/terraform/language#about-the-terraform-language
13
- * @see https://opentofu.org/docs/language/attr-as-blocks/#summary
14
- *
15
- * @param props - The properties for the source file.
16
- * @returns The rendered source file component.
17
- */
18
- declare function BlockDeclaration(props: BlockDeclarationProps): _$_alloy_js_core0.Children;
19
- //#endregion
20
- export { BlockDeclaration, BlockDeclarationProps };
21
- //# sourceMappingURL=block-declaration.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"block-declaration.d.cts","names":[],"sources":["../../../src/hcl/components/block-declaration.tsx"],"mappings":";;;;UAsBiB,qBAAA,SAA8B,cAAA;EAC7C,IAAA;EACA,KAAA;AAAA;;;;;;;;;AAYF;iBAAgB,gBAAA,CAAiB,KAAA,EAAO,qBAAA,GAAqB,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/hcl/components/block-declaration.d.ts
5
- interface BlockDeclarationProps extends ComponentProps {
6
- type: string;
7
- label: string | string[];
8
- }
9
- /**
10
- * A base component representing a block declaration in HCL. The children are rendered as a prose element, which means that they are broken into multiple lines. This component can be used to create more specific block declaration components, such as resource blocks, provider blocks, etc.
11
- *
12
- * @see https://developer.hashicorp.com/terraform/language#about-the-terraform-language
13
- * @see https://opentofu.org/docs/language/attr-as-blocks/#summary
14
- *
15
- * @param props - The properties for the source file.
16
- * @returns The rendered source file component.
17
- */
18
- declare function BlockDeclaration(props: BlockDeclarationProps): _$_alloy_js_core0.Children;
19
- //#endregion
20
- export { BlockDeclaration, BlockDeclarationProps };
21
- //# sourceMappingURL=block-declaration.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"block-declaration.d.mts","names":[],"sources":["../../../src/hcl/components/block-declaration.tsx"],"mappings":";;;;UAsBiB,qBAAA,SAA8B,cAAA;EAC7C,IAAA;EACA,KAAA;AAAA;;;;;;;;;AAYF;iBAAgB,gBAAA,CAAiB,KAAA,EAAO,qBAAA,GAAqB,iBAAA,CAAA,QAAA"}
@@ -1,2 +0,0 @@
1
- import{code as e}from"../../core/helpers/code.mjs";import{createComponent as t,memo as n}from"@alloy-js/core/jsx-runtime";import{Prose as r,Show as i}from"@alloy-js/core";function a(a){let{children:o,type:s,label:c}=a;return[n(()=>e`${s} ${Array.isArray(c)?c.join(` `):c} {`),t(r,{get children(){return t(i,{get when(){return!!o},children:o})}}),e`} `]}export{a as BlockDeclaration};
2
- //# sourceMappingURL=block-declaration.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"block-declaration.mjs","names":[],"sources":["../../../src/hcl/components/block-declaration.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, Show } from \"@alloy-js/core\";\nimport { code } from \"../../core/helpers/code\";\nimport { ComponentProps } from \"../../types/components\";\n\nexport interface BlockDeclarationProps extends ComponentProps {\n type: string;\n label: string | string[];\n}\n\n/**\n * A base component representing a block declaration in HCL. The children are rendered as a prose element, which means that they are broken into multiple lines. This component can be used to create more specific block declaration components, such as resource blocks, provider blocks, etc.\n *\n * @see https://developer.hashicorp.com/terraform/language#about-the-terraform-language\n * @see https://opentofu.org/docs/language/attr-as-blocks/#summary\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function BlockDeclaration(props: BlockDeclarationProps) {\n const { children, type, label } = props;\n\n return (\n <>\n {code`${type} ${Array.isArray(label) ? label.join(\" \") : label} {`}\n <Prose>\n <Show when={Boolean(children)}>{children}</Show>\n </Prose>\n {code`} `}\n </>\n );\n}\n"],"mappings":"2KA+BA,SAAgB,EAAiB,EAAC,CACjC,GAAA,CACG,WACA,OACF,SACI,EACJ,MAAO,CAAC,MAAU,CAAM,GAAA,EAAS,GAAC,MAAK,QAAA,EAAA,CAAA,EAAA,KAAA,IAAA,CAAA,EAAA,IAAA,CAAA,EAAA,EAAA,CAAA,IAAA,UAAA,CAEvC,OAAO,EAAA,EAAA,CACJ,IAAA,MAAA,CACE,MAAO,EAAQ,GAEJ,WACX,CAAC,EAEL,CAAC,CAAE,CAAA,KAAA"}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../core/contexts/context.cjs`),t=require(`../../core/components/infrastructure-file.cjs`),n=require(`../../core/components/single-line-comment.cjs`);let r=require(`@stryke/path/file-path-fns`),i=require(`@alloy-js/core/jsx-runtime`),a=require(`@alloy-js/core`),o=require(`@stryke/string-format/title-case`),s=require(`powerlines/utils`);function c(e){let[{children:n,storage:o,header:s,filetype:c,id:u},d]=(0,a.splitProps)(e,[`children`,`storage`,`header`,`filetype`,`id`]),f=(0,a.computed)(()=>c||(0,r.findFileExtension)(u)||`hcl`);return(0,i.createComponent)(t.InfrastructureFile,(0,i.mergeProps)({get header(){return(0,i.createComponent)(l,{children:s})}},d,{id:u,get filetype(){return f.value},storage:o||`fs`,get children(){return(0,i.createComponent)(a.Show,{get when(){return!!n},children:n})}}))}function l(t){let[{children:r}]=(0,a.splitProps)(t,[`children`]),c=e.usePowerlines();return[(0,i.createComponent)(a.Show,{get when(){return!!r},get children(){return[r,(0,i.createIntrinsic)(`hbr`,{})]}}),(0,i.createComponent)(n.SingleLineComment,{variant:`hcl`,get children(){return`Generated by ${(0,o.titleCase)(c?.config?.framework)||`Powerlines`}`}}),(0,i.createIntrinsic)(`hbr`,{}),(0,i.createComponent)(n.SingleLineComment,{variant:`hcl`,get children(){return(0,s.getFileHeaderWarning)(c)}}),(0,i.createIntrinsic)(`hbr`,{})]}exports.HCLFile=c,exports.HCLFileHeader=l;
@@ -1,26 +0,0 @@
1
- import { ComponentProps } from "../../types/components.cjs";
2
- import { InfrastructureFileProps } from "../../core/components/infrastructure-file.cjs";
3
- import { Children } from "@alloy-js/core";
4
-
5
- //#region src/hcl/components/hcl-file.d.ts
6
- type HCLFileProps = Omit<InfrastructureFileProps, "header" | "filetype"> & ComponentProps & {
7
- header?: Children;
8
- filetype?: "hcl" | "tf" | `${string}.hcl` | `${string}.tf`;
9
- };
10
- /**
11
- * A base component representing a Powerlines generated HCL source file.
12
- *
13
- * @param props - The properties for the source file.
14
- * @returns The rendered source file component.
15
- */
16
- declare function HCLFile(props: HCLFileProps): Children;
17
- /**
18
- * Renders the header for a Powerlines HCL source file.
19
- *
20
- * @param props - The properties for the source file header.
21
- * @returns The rendered source file header.
22
- */
23
- declare function HCLFileHeader(props: ComponentProps): Children;
24
- //#endregion
25
- export { HCLFile, HCLFileHeader, HCLFileProps };
26
- //# sourceMappingURL=hcl-file.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hcl-file.d.cts","names":[],"sources":["../../../src/hcl/components/hcl-file.tsx"],"mappings":";;;;;KA8BY,YAAA,GAAe,IAAA,CACzB,uBAAA,2BAGA,cAAA;EACE,MAAA,GAAS,QAAA;EACT,QAAA;AAAA;;;;;;;iBASY,OAAA,CAAQ,KAAA,EAAO,YAAA,GAAY,QAAA;;;;;;;iBAwB3B,aAAA,CAAc,KAAA,EAAO,cAAA,GAAc,QAAA"}
@@ -1,26 +0,0 @@
1
- import { ComponentProps } from "../../types/components.mjs";
2
- import { InfrastructureFileProps } from "../../core/components/infrastructure-file.mjs";
3
- import { Children } from "@alloy-js/core";
4
-
5
- //#region src/hcl/components/hcl-file.d.ts
6
- type HCLFileProps = Omit<InfrastructureFileProps, "header" | "filetype"> & ComponentProps & {
7
- header?: Children;
8
- filetype?: "hcl" | "tf" | `${string}.hcl` | `${string}.tf`;
9
- };
10
- /**
11
- * A base component representing a Powerlines generated HCL source file.
12
- *
13
- * @param props - The properties for the source file.
14
- * @returns The rendered source file component.
15
- */
16
- declare function HCLFile(props: HCLFileProps): Children;
17
- /**
18
- * Renders the header for a Powerlines HCL source file.
19
- *
20
- * @param props - The properties for the source file header.
21
- * @returns The rendered source file header.
22
- */
23
- declare function HCLFileHeader(props: ComponentProps): Children;
24
- //#endregion
25
- export { HCLFile, HCLFileHeader, HCLFileProps };
26
- //# sourceMappingURL=hcl-file.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hcl-file.d.mts","names":[],"sources":["../../../src/hcl/components/hcl-file.tsx"],"mappings":";;;;;KA8BY,YAAA,GAAe,IAAA,CACzB,uBAAA,2BAGA,cAAA;EACE,MAAA,GAAS,QAAA;EACT,QAAA;AAAA;;;;;;;iBASY,OAAA,CAAQ,KAAA,EAAO,YAAA,GAAY,QAAA;;;;;;;iBAwB3B,aAAA,CAAc,KAAA,EAAO,cAAA,GAAc,QAAA"}
@@ -1,2 +0,0 @@
1
- import{usePowerlines as e}from"../../core/contexts/context.mjs";import{InfrastructureFile as t}from"../../core/components/infrastructure-file.mjs";import{SingleLineComment as n}from"../../core/components/single-line-comment.mjs";import{findFileExtension as r}from"@stryke/path/file-path-fns";import{createComponent as i,createIntrinsic as a,mergeProps as o}from"@alloy-js/core/jsx-runtime";import{Show as s,computed as c,splitProps as l}from"@alloy-js/core";import{titleCase as u}from"@stryke/string-format/title-case";import{getFileHeaderWarning as d}from"powerlines/utils";function f(e){let[{children:n,storage:a,header:u,filetype:d,id:f},m]=l(e,[`children`,`storage`,`header`,`filetype`,`id`]),h=c(()=>d||r(f)||`hcl`);return i(t,o({get header(){return i(p,{children:u})}},m,{id:f,get filetype(){return h.value},storage:a||`fs`,get children(){return i(s,{get when(){return!!n},children:n})}}))}function p(t){let[{children:r}]=l(t,[`children`]),o=e();return[i(s,{get when(){return!!r},get children(){return[r,a(`hbr`,{})]}}),i(n,{variant:`hcl`,get children(){return`Generated by ${u(o?.config?.framework)||`Powerlines`}`}}),a(`hbr`,{}),i(n,{variant:`hcl`,get children(){return d(o)}}),a(`hbr`,{})]}export{f as HCLFile,p as HCLFileHeader};
2
- //# sourceMappingURL=hcl-file.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hcl-file.mjs","names":[],"sources":["../../../src/hcl/components/hcl-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 { Children, computed, Show, splitProps } from \"@alloy-js/core\";\nimport { findFileExtension } from \"@stryke/path/file-path-fns\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { getFileHeaderWarning } from \"powerlines/utils\";\nimport {\n InfrastructureFile,\n InfrastructureFileProps\n} from \"../../core/components/infrastructure-file\";\nimport { SingleLineComment } from \"../../core/components/single-line-comment\";\nimport { usePowerlines } from \"../../core/contexts/context\";\nimport { ComponentProps } from \"../../types/components\";\n\nexport type HCLFileProps = Omit<\n InfrastructureFileProps,\n \"header\" | \"filetype\"\n> &\n ComponentProps & {\n header?: Children;\n filetype?: \"hcl\" | \"tf\" | `${string}.hcl` | `${string}.tf`;\n };\n\n/**\n * A base component representing a Powerlines generated HCL source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function HCLFile(props: HCLFileProps) {\n const [{ children, storage, header, filetype: _filetype, id }, rest] =\n splitProps(props, [\"children\", \"storage\", \"header\", \"filetype\", \"id\"]);\n\n const filetype = computed(() => _filetype || findFileExtension(id) || \"hcl\");\n\n return (\n <InfrastructureFile\n header={<HCLFileHeader>{header}</HCLFileHeader>}\n {...rest}\n id={id}\n filetype={filetype.value}\n storage={storage || \"fs\"}>\n <Show when={Boolean(children)}>{children}</Show>\n </InfrastructureFile>\n );\n}\n\n/**\n * Renders the header for a Powerlines HCL source file.\n *\n * @param props - The properties for the source file header.\n * @returns The rendered source file header.\n */\nexport function HCLFileHeader(props: ComponentProps) {\n const [{ children }] = splitProps(props, [\"children\"]);\n\n const context = usePowerlines();\n\n return (\n <>\n <Show when={Boolean(children)}>\n <>\n {children}\n <hbr />\n </>\n </Show>\n <SingleLineComment variant=\"hcl\">{`Generated by ${\n titleCase(context?.config?.framework) || \"Powerlines\"\n }`}</SingleLineComment>\n <hbr />\n <SingleLineComment variant=\"hcl\">\n {getFileHeaderWarning(context)}\n </SingleLineComment>\n <hbr />\n </>\n );\n}\n"],"mappings":"+jBAiCA,SAAE,EAAA,EAAA,CACA,GAAA,CAAA,CACE,WACA,UACD,SAAA,SAAA,EAED,MACG,GAAK,EAAU,EAAA,CAAY,WAAG,UAAoB,SAAK,WAAW,KAAA,CAAA,CACtE,EAAA,MAAA,GAAA,EAAA,EAAA,EAAA,MAAA,CACC,OAAO,EAAa,EAAyB,EAAK,CAChD,IAAA,QAAY,CACd,OAAA,EAAA,EAAA,CACK,SAAS,EACT,CAAC,MAGA,oBAEN,OAAO,EAAA,OAEL,QAAS,GAAE,KACX,IAAI,UAAM,CACR,OAAM,EAAA,EAAA,CACN,IAAA,MAAU,CACV,MAAS,EAAU,GAEnB,WACH,CAAA,mBAYD,GAAM,CAAA,CAAA,aAEN,EAAO,EAAA,CAAA,WAAA,CAAA,CACJ,EAAA,GAAA,CACH,MAAK,CAAA,EAAmB,EAAQ,CAC9B,IAAI,MAAC,CACH,MAAK,EAAQ,GAEf,IAAI,UAAE,CACJ,MAAM,CAAA,EAAA,EAAA,MAAA,EAAA,CAAA,CAAA,EAET,CAAC,CAAE,EAAY,EAAiB,CAC/B,QAAO,MACP,IAAG,UAAK,CACN,MAAC,gBAAkB,EAAa,GAAA,QAAA,UAAA,EAAA,gBAEnC,CAAC,CAAE,EAAE,MAAiB,EAAA,CAAA,CAAA,EAAA,EAAA,CACrB,QAAQ,MACR,IAAE,UAAA,CACH,OAAA,EAAA,EAAA"}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./block-declaration.cjs`),t=require(`./hcl-file.cjs`),n=require(`./packer-file.cjs`),r=require(`./terraform-file.cjs`);exports.BlockDeclaration=e.BlockDeclaration,exports.HCLFile=t.HCLFile,exports.HCLFileHeader=t.HCLFileHeader,exports.PackerFile=n.PackerFile,exports.TerraformFile=r.TerraformFile;
@@ -1,5 +0,0 @@
1
- import { BlockDeclaration, BlockDeclarationProps } from "./block-declaration.cjs";
2
- import { HCLFile, HCLFileHeader, HCLFileProps } from "./hcl-file.cjs";
3
- import { PackerFile, PackerFileProps } from "./packer-file.cjs";
4
- import { TerraformFile, TerraformFileProps } from "./terraform-file.cjs";
5
- export { BlockDeclaration, BlockDeclarationProps, HCLFile, HCLFileHeader, HCLFileProps, PackerFile, PackerFileProps, TerraformFile, TerraformFileProps };
@@ -1,5 +0,0 @@
1
- import { BlockDeclaration, BlockDeclarationProps } from "./block-declaration.mjs";
2
- import { HCLFile, HCLFileHeader, HCLFileProps } from "./hcl-file.mjs";
3
- import { PackerFile, PackerFileProps } from "./packer-file.mjs";
4
- import { TerraformFile, TerraformFileProps } from "./terraform-file.mjs";
5
- export { BlockDeclaration, BlockDeclarationProps, HCLFile, HCLFileHeader, HCLFileProps, PackerFile, PackerFileProps, TerraformFile, TerraformFileProps };
@@ -1 +0,0 @@
1
- import{BlockDeclaration as e}from"./block-declaration.mjs";import{HCLFile as t,HCLFileHeader as n}from"./hcl-file.mjs";import{PackerFile as r}from"./packer-file.mjs";import{TerraformFile as i}from"./terraform-file.mjs";export{e as BlockDeclaration,t as HCLFile,n as HCLFileHeader,r as PackerFile,i as TerraformFile};
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`./hcl-file.cjs`);let t=require(`@alloy-js/core/jsx-runtime`),n=require(`@alloy-js/core`);function r(r){let[{children:i},a]=(0,n.splitProps)(r,[`children`]);return(0,t.createComponent)(e.HCLFile,(0,t.mergeProps)({filetype:`pkr.hcl`},a,{get children(){return(0,t.createComponent)(n.Show,{get when(){return!!i},children:i})}}))}exports.PackerFile=r;