@powerlines/plugin-alloy 0.26.51 → 0.26.52

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/dist/_virtual/_rolldown/runtime.cjs +1 -0
  2. package/dist/core/components/index.cjs +1 -0
  3. package/dist/core/components/index.d.cts +6 -0
  4. package/dist/core/components/index.d.mts +6 -0
  5. package/dist/core/components/index.mjs +1 -0
  6. package/dist/core/components/infrastructure-file.cjs +1 -0
  7. package/dist/core/components/infrastructure-file.d.cts +27 -0
  8. package/dist/core/components/infrastructure-file.d.cts.map +1 -0
  9. package/dist/core/components/infrastructure-file.d.mts +27 -0
  10. package/dist/core/components/infrastructure-file.d.mts.map +1 -0
  11. package/dist/core/components/infrastructure-file.mjs +2 -0
  12. package/dist/core/components/infrastructure-file.mjs.map +1 -0
  13. package/dist/core/components/output.cjs +1 -0
  14. package/dist/core/components/output.d.cts +23 -0
  15. package/dist/core/components/output.d.cts.map +1 -0
  16. package/dist/core/components/output.d.mts +23 -0
  17. package/dist/core/components/output.d.mts.map +1 -0
  18. package/dist/core/components/output.mjs +2 -0
  19. package/dist/core/components/output.mjs.map +1 -0
  20. package/dist/core/components/single-line-comment.cjs +1 -0
  21. package/dist/core/components/single-line-comment.d.cts +21 -0
  22. package/dist/core/components/single-line-comment.d.cts.map +1 -0
  23. package/dist/core/components/single-line-comment.d.mts +21 -0
  24. package/dist/core/components/single-line-comment.d.mts.map +1 -0
  25. package/dist/core/components/single-line-comment.mjs +2 -0
  26. package/dist/core/components/single-line-comment.mjs.map +1 -0
  27. package/dist/core/components/source-file.cjs +1 -0
  28. package/dist/core/components/source-file.d.cts +32 -0
  29. package/dist/core/components/source-file.d.cts.map +1 -0
  30. package/dist/core/components/source-file.d.mts +32 -0
  31. package/dist/core/components/source-file.d.mts.map +1 -0
  32. package/dist/core/components/source-file.mjs +2 -0
  33. package/dist/core/components/source-file.mjs.map +1 -0
  34. package/dist/core/components/spacing.cjs +1 -0
  35. package/dist/core/components/spacing.d.cts +23 -0
  36. package/dist/core/components/spacing.d.cts.map +1 -0
  37. package/dist/core/components/spacing.d.mts +23 -0
  38. package/dist/core/components/spacing.d.mts.map +1 -0
  39. package/dist/core/components/spacing.mjs +2 -0
  40. package/dist/core/components/spacing.mjs.map +1 -0
  41. package/dist/core/contexts/context.cjs +1 -0
  42. package/dist/core/contexts/context.d.cts +29 -0
  43. package/dist/core/contexts/context.d.cts.map +1 -0
  44. package/dist/core/contexts/context.d.mts +29 -0
  45. package/dist/core/contexts/context.d.mts.map +1 -0
  46. package/dist/core/contexts/context.mjs +2 -0
  47. package/dist/core/contexts/context.mjs.map +1 -0
  48. package/dist/core/contexts/index.cjs +1 -0
  49. package/dist/core/contexts/index.d.cts +4 -0
  50. package/dist/core/contexts/index.d.mts +4 -0
  51. package/dist/core/contexts/index.mjs +1 -0
  52. package/dist/core/contexts/meta.cjs +1 -0
  53. package/dist/core/contexts/meta.d.cts +47 -0
  54. package/dist/core/contexts/meta.d.cts.map +1 -0
  55. package/dist/core/contexts/meta.d.mts +47 -0
  56. package/dist/core/contexts/meta.d.mts.map +1 -0
  57. package/dist/core/contexts/meta.mjs +2 -0
  58. package/dist/core/contexts/meta.mjs.map +1 -0
  59. package/dist/core/contexts/reflection.cjs +1 -0
  60. package/dist/core/contexts/reflection.d.cts +62 -0
  61. package/dist/core/contexts/reflection.d.cts.map +1 -0
  62. package/dist/core/contexts/reflection.d.mts +62 -0
  63. package/dist/core/contexts/reflection.d.mts.map +1 -0
  64. package/dist/core/contexts/reflection.mjs +2 -0
  65. package/dist/core/contexts/reflection.mjs.map +1 -0
  66. package/dist/core/helpers/code.cjs +1 -0
  67. package/dist/core/helpers/code.d.cts +29 -0
  68. package/dist/core/helpers/code.d.cts.map +1 -0
  69. package/dist/core/helpers/code.d.mts +29 -0
  70. package/dist/core/helpers/code.d.mts.map +1 -0
  71. package/dist/core/helpers/code.mjs +2 -0
  72. package/dist/core/helpers/code.mjs.map +1 -0
  73. package/dist/core/helpers/index.cjs +1 -0
  74. package/dist/core/helpers/index.d.cts +2 -0
  75. package/dist/core/helpers/index.d.mts +2 -0
  76. package/dist/core/helpers/index.mjs +1 -0
  77. package/dist/core/index.cjs +1 -0
  78. package/dist/core/index.d.cts +10 -0
  79. package/dist/core/index.d.mts +10 -0
  80. package/dist/core/index.mjs +1 -0
  81. package/dist/hcl/components/block-declaration.cjs +1 -0
  82. package/dist/hcl/components/block-declaration.d.cts +21 -0
  83. package/dist/hcl/components/block-declaration.d.cts.map +1 -0
  84. package/dist/hcl/components/block-declaration.d.mts +21 -0
  85. package/dist/hcl/components/block-declaration.d.mts.map +1 -0
  86. package/dist/hcl/components/block-declaration.mjs +2 -0
  87. package/dist/hcl/components/block-declaration.mjs.map +1 -0
  88. package/dist/hcl/components/hcl-file.cjs +1 -0
  89. package/dist/hcl/components/hcl-file.d.cts +26 -0
  90. package/dist/hcl/components/hcl-file.d.cts.map +1 -0
  91. package/dist/hcl/components/hcl-file.d.mts +26 -0
  92. package/dist/hcl/components/hcl-file.d.mts.map +1 -0
  93. package/dist/hcl/components/hcl-file.mjs +2 -0
  94. package/dist/hcl/components/hcl-file.mjs.map +1 -0
  95. package/dist/hcl/components/index.cjs +1 -0
  96. package/dist/hcl/components/index.d.cts +5 -0
  97. package/dist/hcl/components/index.d.mts +5 -0
  98. package/dist/hcl/components/index.mjs +1 -0
  99. package/dist/hcl/components/packer-file.cjs +1 -0
  100. package/dist/hcl/components/packer-file.d.cts +18 -0
  101. package/dist/hcl/components/packer-file.d.cts.map +1 -0
  102. package/dist/hcl/components/packer-file.d.mts +18 -0
  103. package/dist/hcl/components/packer-file.d.mts.map +1 -0
  104. package/dist/hcl/components/packer-file.mjs +2 -0
  105. package/dist/hcl/components/packer-file.mjs.map +1 -0
  106. package/dist/hcl/components/terraform-file.cjs +1 -0
  107. package/dist/hcl/components/terraform-file.d.cts +19 -0
  108. package/dist/hcl/components/terraform-file.d.cts.map +1 -0
  109. package/dist/hcl/components/terraform-file.d.mts +19 -0
  110. package/dist/hcl/components/terraform-file.d.mts.map +1 -0
  111. package/dist/hcl/components/terraform-file.mjs +2 -0
  112. package/dist/hcl/components/terraform-file.mjs.map +1 -0
  113. package/dist/hcl/index.cjs +1 -0
  114. package/dist/hcl/index.d.cts +5 -0
  115. package/dist/hcl/index.d.mts +5 -0
  116. package/dist/hcl/index.mjs +1 -0
  117. package/dist/helpers/capnp.cjs +69 -0
  118. package/dist/helpers/capnp.d.cts +83 -0
  119. package/dist/helpers/capnp.d.cts.map +1 -0
  120. package/dist/helpers/capnp.d.mts +83 -0
  121. package/dist/helpers/capnp.d.mts.map +1 -0
  122. package/dist/helpers/capnp.mjs +70 -0
  123. package/dist/helpers/capnp.mjs.map +1 -0
  124. package/dist/helpers/create-builtin.cjs +1 -0
  125. package/dist/helpers/create-builtin.d.cts +15 -0
  126. package/dist/helpers/create-builtin.d.cts.map +1 -0
  127. package/dist/helpers/create-builtin.d.mts +15 -0
  128. package/dist/helpers/create-builtin.d.mts.map +1 -0
  129. package/dist/helpers/create-builtin.mjs +2 -0
  130. package/dist/helpers/create-builtin.mjs.map +1 -0
  131. package/dist/helpers/index.cjs +1 -0
  132. package/dist/helpers/index.d.cts +5 -0
  133. package/dist/helpers/index.d.mts +5 -0
  134. package/dist/helpers/index.mjs +1 -0
  135. package/dist/helpers/refkey.cjs +1 -0
  136. package/dist/helpers/refkey.d.cts +13 -0
  137. package/dist/helpers/refkey.d.cts.map +1 -0
  138. package/dist/helpers/refkey.d.mts +13 -0
  139. package/dist/helpers/refkey.d.mts.map +1 -0
  140. package/dist/helpers/refkey.mjs +2 -0
  141. package/dist/helpers/refkey.mjs.map +1 -0
  142. package/dist/helpers/typescript.cjs +24 -0
  143. package/dist/helpers/typescript.d.cts +24 -0
  144. package/dist/helpers/typescript.d.cts.map +1 -0
  145. package/dist/helpers/typescript.d.mts +24 -0
  146. package/dist/helpers/typescript.d.mts.map +1 -0
  147. package/dist/helpers/typescript.mjs +25 -0
  148. package/dist/helpers/typescript.mjs.map +1 -0
  149. package/dist/index.cjs +1 -0
  150. package/dist/index.d.cts +19 -0
  151. package/dist/index.d.cts.map +1 -0
  152. package/dist/index.d.mts +19 -0
  153. package/dist/index.d.mts.map +1 -0
  154. package/dist/index.mjs +2 -0
  155. package/dist/index.mjs.map +1 -0
  156. package/dist/markdown/components/front-matter.cjs +1 -0
  157. package/dist/markdown/components/front-matter.d.cts +15 -0
  158. package/dist/markdown/components/front-matter.d.cts.map +1 -0
  159. package/dist/markdown/components/front-matter.d.mts +15 -0
  160. package/dist/markdown/components/front-matter.d.mts.map +1 -0
  161. package/dist/markdown/components/front-matter.mjs +2 -0
  162. package/dist/markdown/components/front-matter.mjs.map +1 -0
  163. package/dist/markdown/components/heading.cjs +1 -0
  164. package/dist/markdown/components/heading.d.cts +19 -0
  165. package/dist/markdown/components/heading.d.cts.map +1 -0
  166. package/dist/markdown/components/heading.d.mts +19 -0
  167. package/dist/markdown/components/heading.d.mts.map +1 -0
  168. package/dist/markdown/components/heading.mjs +2 -0
  169. package/dist/markdown/components/heading.mjs.map +1 -0
  170. package/dist/markdown/components/index.cjs +1 -0
  171. package/dist/markdown/components/index.d.cts +5 -0
  172. package/dist/markdown/components/index.d.mts +5 -0
  173. package/dist/markdown/components/index.mjs +1 -0
  174. package/dist/markdown/components/markdown-file.cjs +1 -0
  175. package/dist/markdown/components/markdown-file.d.cts +27 -0
  176. package/dist/markdown/components/markdown-file.d.cts.map +1 -0
  177. package/dist/markdown/components/markdown-file.d.mts +27 -0
  178. package/dist/markdown/components/markdown-file.d.mts.map +1 -0
  179. package/dist/markdown/components/markdown-file.mjs +2 -0
  180. package/dist/markdown/components/markdown-file.mjs.map +1 -0
  181. package/dist/markdown/components/markdown-table.cjs +1 -0
  182. package/dist/markdown/components/markdown-table.d.cts +26 -0
  183. package/dist/markdown/components/markdown-table.d.cts.map +1 -0
  184. package/dist/markdown/components/markdown-table.d.mts +26 -0
  185. package/dist/markdown/components/markdown-table.d.mts.map +1 -0
  186. package/dist/markdown/components/markdown-table.mjs +2 -0
  187. package/dist/markdown/components/markdown-table.mjs.map +1 -0
  188. package/dist/markdown/contexts/index.cjs +1 -0
  189. package/dist/markdown/contexts/index.d.cts +2 -0
  190. package/dist/markdown/contexts/index.d.mts +2 -0
  191. package/dist/markdown/contexts/index.mjs +1 -0
  192. package/dist/markdown/contexts/markdown-table.cjs +1 -0
  193. package/dist/markdown/contexts/markdown-table.d.cts +36 -0
  194. package/dist/markdown/contexts/markdown-table.d.cts.map +1 -0
  195. package/dist/markdown/contexts/markdown-table.d.mts +36 -0
  196. package/dist/markdown/contexts/markdown-table.d.mts.map +1 -0
  197. package/dist/markdown/contexts/markdown-table.mjs +2 -0
  198. package/dist/markdown/contexts/markdown-table.mjs.map +1 -0
  199. package/dist/markdown/index.cjs +1 -0
  200. package/dist/markdown/index.d.cts +6 -0
  201. package/dist/markdown/index.d.mts +6 -0
  202. package/dist/markdown/index.mjs +1 -0
  203. package/dist/render.cjs +1 -0
  204. package/dist/render.d.cts +38 -0
  205. package/dist/render.d.cts.map +1 -0
  206. package/dist/render.d.mts +38 -0
  207. package/dist/render.d.mts.map +1 -0
  208. package/dist/render.mjs +2 -0
  209. package/dist/render.mjs.map +1 -0
  210. package/dist/types/components.cjs +0 -0
  211. package/dist/types/components.d.cts +126 -0
  212. package/dist/types/components.d.cts.map +1 -0
  213. package/dist/types/components.d.mts +126 -0
  214. package/dist/types/components.d.mts.map +1 -0
  215. package/dist/types/components.mjs +2 -0
  216. package/dist/types/components.mjs.map +1 -0
  217. package/dist/types/index.cjs +0 -0
  218. package/dist/types/index.d.cts +3 -0
  219. package/dist/types/index.d.mts +3 -0
  220. package/dist/types/index.mjs +1 -0
  221. package/dist/types/plugin.cjs +0 -0
  222. package/dist/types/plugin.d.cts +35 -0
  223. package/dist/types/plugin.d.cts.map +1 -0
  224. package/dist/types/plugin.d.mts +35 -0
  225. package/dist/types/plugin.d.mts.map +1 -0
  226. package/dist/types/plugin.mjs +1 -0
  227. package/dist/typescript/components/builtin-file.cjs +1 -0
  228. package/dist/typescript/components/builtin-file.d.cts +34 -0
  229. package/dist/typescript/components/builtin-file.d.cts.map +1 -0
  230. package/dist/typescript/components/builtin-file.d.mts +34 -0
  231. package/dist/typescript/components/builtin-file.d.mts.map +1 -0
  232. package/dist/typescript/components/builtin-file.mjs +2 -0
  233. package/dist/typescript/components/builtin-file.mjs.map +1 -0
  234. package/dist/typescript/components/class-declaration.cjs +1 -0
  235. package/dist/typescript/components/class-declaration.d.cts +140 -0
  236. package/dist/typescript/components/class-declaration.d.cts.map +1 -0
  237. package/dist/typescript/components/class-declaration.d.mts +140 -0
  238. package/dist/typescript/components/class-declaration.d.mts.map +1 -0
  239. package/dist/typescript/components/class-declaration.mjs +2 -0
  240. package/dist/typescript/components/class-declaration.mjs.map +1 -0
  241. package/dist/typescript/components/dynamic-import-statement.cjs +1 -0
  242. package/dist/typescript/components/dynamic-import-statement.d.cts +32 -0
  243. package/dist/typescript/components/dynamic-import-statement.d.cts.map +1 -0
  244. package/dist/typescript/components/dynamic-import-statement.d.mts +32 -0
  245. package/dist/typescript/components/dynamic-import-statement.d.mts.map +1 -0
  246. package/dist/typescript/components/dynamic-import-statement.mjs +2 -0
  247. package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -0
  248. package/dist/typescript/components/entry-file.cjs +1 -0
  249. package/dist/typescript/components/entry-file.d.cts +27 -0
  250. package/dist/typescript/components/entry-file.d.cts.map +1 -0
  251. package/dist/typescript/components/entry-file.d.mts +27 -0
  252. package/dist/typescript/components/entry-file.d.mts.map +1 -0
  253. package/dist/typescript/components/entry-file.mjs +2 -0
  254. package/dist/typescript/components/entry-file.mjs.map +1 -0
  255. package/dist/typescript/components/index.cjs +1 -0
  256. package/dist/typescript/components/index.d.cts +14 -0
  257. package/dist/typescript/components/index.d.mts +14 -0
  258. package/dist/typescript/components/index.mjs +1 -0
  259. package/dist/typescript/components/interface-declaration.cjs +1 -0
  260. package/dist/typescript/components/interface-declaration.d.cts +80 -0
  261. package/dist/typescript/components/interface-declaration.d.cts.map +1 -0
  262. package/dist/typescript/components/interface-declaration.d.mts +80 -0
  263. package/dist/typescript/components/interface-declaration.d.mts.map +1 -0
  264. package/dist/typescript/components/interface-declaration.mjs +2 -0
  265. package/dist/typescript/components/interface-declaration.mjs.map +1 -0
  266. package/dist/typescript/components/object-declaration.cjs +1 -0
  267. package/dist/typescript/components/object-declaration.d.cts +28 -0
  268. package/dist/typescript/components/object-declaration.d.cts.map +1 -0
  269. package/dist/typescript/components/object-declaration.d.mts +28 -0
  270. package/dist/typescript/components/object-declaration.d.mts.map +1 -0
  271. package/dist/typescript/components/object-declaration.mjs +2 -0
  272. package/dist/typescript/components/object-declaration.mjs.map +1 -0
  273. package/dist/typescript/components/property-name.cjs +1 -0
  274. package/dist/typescript/components/property-name.d.cts +23 -0
  275. package/dist/typescript/components/property-name.d.cts.map +1 -0
  276. package/dist/typescript/components/property-name.d.mts +23 -0
  277. package/dist/typescript/components/property-name.d.mts.map +1 -0
  278. package/dist/typescript/components/property-name.mjs +2 -0
  279. package/dist/typescript/components/property-name.mjs.map +1 -0
  280. package/dist/typescript/components/record-expression.cjs +3 -0
  281. package/dist/typescript/components/record-expression.d.cts +12 -0
  282. package/dist/typescript/components/record-expression.d.cts.map +1 -0
  283. package/dist/typescript/components/record-expression.d.mts +12 -0
  284. package/dist/typescript/components/record-expression.d.mts.map +1 -0
  285. package/dist/typescript/components/record-expression.mjs +4 -0
  286. package/dist/typescript/components/record-expression.mjs.map +1 -0
  287. package/dist/typescript/components/tsdoc-reflection.cjs +1 -0
  288. package/dist/typescript/components/tsdoc-reflection.d.cts +42 -0
  289. package/dist/typescript/components/tsdoc-reflection.d.cts.map +1 -0
  290. package/dist/typescript/components/tsdoc-reflection.d.mts +42 -0
  291. package/dist/typescript/components/tsdoc-reflection.d.mts.map +1 -0
  292. package/dist/typescript/components/tsdoc-reflection.mjs +2 -0
  293. package/dist/typescript/components/tsdoc-reflection.mjs.map +1 -0
  294. package/dist/typescript/components/tsdoc.cjs +1 -0
  295. package/dist/typescript/components/tsdoc.d.cts +161 -0
  296. package/dist/typescript/components/tsdoc.d.cts.map +1 -0
  297. package/dist/typescript/components/tsdoc.d.mts +161 -0
  298. package/dist/typescript/components/tsdoc.d.mts.map +1 -0
  299. package/dist/typescript/components/tsdoc.mjs +2 -0
  300. package/dist/typescript/components/tsdoc.mjs.map +1 -0
  301. package/dist/typescript/components/type-declaration.cjs +1 -0
  302. package/dist/typescript/components/type-declaration.d.cts +17 -0
  303. package/dist/typescript/components/type-declaration.d.cts.map +1 -0
  304. package/dist/typescript/components/type-declaration.d.mts +17 -0
  305. package/dist/typescript/components/type-declaration.d.mts.map +1 -0
  306. package/dist/typescript/components/type-declaration.mjs +2 -0
  307. package/dist/typescript/components/type-declaration.mjs.map +1 -0
  308. package/dist/typescript/components/type-parameters.cjs +1 -0
  309. package/dist/typescript/components/type-parameters.d.cts +23 -0
  310. package/dist/typescript/components/type-parameters.d.cts.map +1 -0
  311. package/dist/typescript/components/type-parameters.d.mts +23 -0
  312. package/dist/typescript/components/type-parameters.d.mts.map +1 -0
  313. package/dist/typescript/components/type-parameters.mjs +2 -0
  314. package/dist/typescript/components/type-parameters.mjs.map +1 -0
  315. package/dist/typescript/components/typescript-file.cjs +1 -0
  316. package/dist/typescript/components/typescript-file.d.cts +47 -0
  317. package/dist/typescript/components/typescript-file.d.cts.map +1 -0
  318. package/dist/typescript/components/typescript-file.d.mts +47 -0
  319. package/dist/typescript/components/typescript-file.d.mts.map +1 -0
  320. package/dist/typescript/components/typescript-file.mjs +2 -0
  321. package/dist/typescript/components/typescript-file.mjs.map +1 -0
  322. package/dist/typescript/contexts/index.cjs +1 -0
  323. package/dist/typescript/contexts/index.d.cts +2 -0
  324. package/dist/typescript/contexts/index.d.mts +2 -0
  325. package/dist/typescript/contexts/index.mjs +1 -0
  326. package/dist/typescript/contexts/lexical-scope.cjs +1 -0
  327. package/dist/typescript/contexts/lexical-scope.d.cts +14 -0
  328. package/dist/typescript/contexts/lexical-scope.d.cts.map +1 -0
  329. package/dist/typescript/contexts/lexical-scope.d.mts +14 -0
  330. package/dist/typescript/contexts/lexical-scope.d.mts.map +1 -0
  331. package/dist/typescript/contexts/lexical-scope.mjs +2 -0
  332. package/dist/typescript/contexts/lexical-scope.mjs.map +1 -0
  333. package/dist/typescript/contexts/member-scope.cjs +1 -0
  334. package/dist/typescript/contexts/member-scope.d.cts +19 -0
  335. package/dist/typescript/contexts/member-scope.d.cts.map +1 -0
  336. package/dist/typescript/contexts/member-scope.d.mts +19 -0
  337. package/dist/typescript/contexts/member-scope.d.mts.map +1 -0
  338. package/dist/typescript/contexts/member-scope.mjs +2 -0
  339. package/dist/typescript/contexts/member-scope.mjs.map +1 -0
  340. package/dist/typescript/helpers/get-call-signature-props.cjs +1 -0
  341. package/dist/typescript/helpers/get-call-signature-props.d.cts +14 -0
  342. package/dist/typescript/helpers/get-call-signature-props.d.cts.map +1 -0
  343. package/dist/typescript/helpers/get-call-signature-props.d.mts +14 -0
  344. package/dist/typescript/helpers/get-call-signature-props.d.mts.map +1 -0
  345. package/dist/typescript/helpers/get-call-signature-props.mjs +2 -0
  346. package/dist/typescript/helpers/get-call-signature-props.mjs.map +1 -0
  347. package/dist/typescript/helpers/index.cjs +1 -0
  348. package/dist/typescript/helpers/index.d.cts +3 -0
  349. package/dist/typescript/helpers/index.d.mts +3 -0
  350. package/dist/typescript/helpers/index.mjs +1 -0
  351. package/dist/typescript/helpers/utilities.cjs +1 -0
  352. package/dist/typescript/helpers/utilities.d.cts +11 -0
  353. package/dist/typescript/helpers/utilities.d.cts.map +1 -0
  354. package/dist/typescript/helpers/utilities.d.mts +11 -0
  355. package/dist/typescript/helpers/utilities.d.mts.map +1 -0
  356. package/dist/typescript/helpers/utilities.mjs +2 -0
  357. package/dist/typescript/helpers/utilities.mjs.map +1 -0
  358. package/dist/typescript/index.cjs +1 -0
  359. package/dist/typescript/index.d.cts +17 -0
  360. package/dist/typescript/index.d.mts +17 -0
  361. package/dist/typescript/index.mjs +1 -0
  362. package/dist/yaml/components/index.cjs +1 -0
  363. package/dist/yaml/components/index.d.cts +2 -0
  364. package/dist/yaml/components/index.d.mts +2 -0
  365. package/dist/yaml/components/index.mjs +1 -0
  366. package/dist/yaml/components/yaml-file.cjs +1 -0
  367. package/dist/yaml/components/yaml-file.d.cts +32 -0
  368. package/dist/yaml/components/yaml-file.d.cts.map +1 -0
  369. package/dist/yaml/components/yaml-file.d.mts +32 -0
  370. package/dist/yaml/components/yaml-file.d.mts.map +1 -0
  371. package/dist/yaml/components/yaml-file.mjs +2 -0
  372. package/dist/yaml/components/yaml-file.mjs.map +1 -0
  373. package/dist/yaml/index.cjs +1 -0
  374. package/dist/yaml/index.d.cts +2 -0
  375. package/dist/yaml/index.d.mts +2 -0
  376. package/dist/yaml/index.mjs +1 -0
  377. package/package.json +16 -16
@@ -0,0 +1 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));exports.__toESM=s;
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./source-file.cjs`),t=require(`./infrastructure-file.cjs`),n=require(`./output.cjs`),r=require(`./single-line-comment.cjs`),i=require(`./spacing.cjs`);exports.InfrastructureFile=t.InfrastructureFile,exports.Output=n.Output,exports.SingleLineComment=r.SingleLineComment,exports.SourceFile=e.SourceFile,exports.Spacing=i.Spacing;
@@ -0,0 +1,6 @@
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 };
@@ -0,0 +1,6 @@
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 };
@@ -0,0 +1 @@
1
+ import{SourceFile as e}from"./source-file.mjs";import{InfrastructureFile as t}from"./infrastructure-file.mjs";import{Output as n}from"./output.mjs";import{SingleLineComment as r}from"./single-line-comment.mjs";import{Spacing as i}from"./spacing.mjs";export{t as InfrastructureFile,n as Output,r as SingleLineComment,e as SourceFile,i as Spacing};
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../contexts/context.cjs`),n=require(`./source-file.cjs`);let r=require(`@stryke/path/file-path-fns`),i=require(`@alloy-js/core/jsx-runtime`),a=require(`@alloy-js/core`),o=require(`@stryke/path/append`),s=require(`@stryke/path/replace`),c=require(`defu`);c=e.__toESM(c);function l(e){let[{children:l,meta:u,id:d,extension:f,filetype:p},m]=(0,a.splitProps)(e,[`children`,`meta`,`id`,`extension`,`filetype`]),h=t.usePowerlinesSafe(),g=(0,a.computed)(()=>p||f?.replace(/^\.*/,``)||((0,r.hasFileExtension)(d)?(0,r.findFileExtensionSafe)(d):``)),_=(0,a.computed)(()=>(0,o.appendExtension)((0,s.replaceExtension)(h?(0,o.appendPath)(d,(0,s.replacePath)(h.infrastructurePath,h.config.cwd)):d),g.value));return(0,i.createComponent)(n.SourceFile,(0,i.mergeProps)(m,{get filetype(){return g.value},get path(){return _.value},get meta(){return(0,c.default)({kind:`infrastructure`},u??{})},children:l}))}exports.InfrastructureFile=l;
@@ -0,0 +1,27 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,27 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ import{usePowerlinesSafe as e}from"../contexts/context.mjs";import{SourceFile as t}from"./source-file.mjs";import{findFileExtensionSafe as n,hasFileExtension as r}from"@stryke/path/file-path-fns";import{createComponent as i,mergeProps as a}from"@alloy-js/core/jsx-runtime";import{computed as o,splitProps as s}from"@alloy-js/core";import{appendExtension as c,appendPath as l}from"@stryke/path/append";import{replaceExtension as u,replacePath as d}from"@stryke/path/replace";import f from"defu";function p(p){let[{children:m,meta:h,id:g,extension:_,filetype:v},y]=s(p,[`children`,`meta`,`id`,`extension`,`filetype`]),b=e(),x=o(()=>v||_?.replace(/^\.*/,``)||(r(g)?n(g):``)),S=o(()=>c(u(b?l(g,d(b.infrastructurePath,b.config.cwd)):g),x.value));return i(t,a(y,{get filetype(){return x.value},get path(){return S.value},get meta(){return f({kind:`infrastructure`},h??{})},children:m}))}export{p as InfrastructureFile};
2
+ //# sourceMappingURL=infrastructure-file.mjs.map
@@ -0,0 +1 @@
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":"8eAgCA,SAAI,EAAA,EAAA,CACF,GAAI,CAAA,CAAA,WAEF,OACA,KACD,YACC,SAAE,GACD,GAAQ,EAAW,EAAM,CAAA,WAAc,OAAQ,KAAC,YAAkB,WAAO,CAAA,CAC1E,EAAA,GAAA,CACF,EAAY,MAAM,GAAA,GAAA,QAAA,OAAA,GAAA,GAAA,EAAA,EAAA,CAAA,EAAA,EAAA,CAAA,IAAA,CACnB,EAAA,MAEC,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,mBAAA,EAAA,OAAA,IAAA,CAAA,CAAA,EAAA,CAAA,EAAA,MAAA,CACE,CACH,OAAA,EAAA,EAAA,EAAA,EAAA,CACG,IAAA,UAAc,CACd,OAAQ,EAAI,OAEhB,IAAO,MAAQ,CACb,OAAS,EAAA,kBAGT,OAAM,EAAU,CACV,KAAA,iBACD,CAAC,GAAA,EAAA,CAAA,EAEF,WACH,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../contexts/context.cjs`),t=require(`../contexts/meta.cjs`);require(`../contexts/index.cjs`);let n=require(`@alloy-js/core/jsx-runtime`),r=require(`@alloy-js/core`);function i(i){let[{children:a,context:o,meta:s={}},c]=(0,r.splitProps)(i,[`children`,`context`,`meta`]),l=(0,r.computed)(()=>o);return(0,n.createComponent)(t.MetaContext.Provider,{value:s,get children(){return(0,n.createComponent)(e.PowerlinesContext.Provider,{get value(){return l.value},get children(){return(0,n.createComponent)(r.Output,(0,n.mergeProps)(c,{get basePath(){return l.value.config.cwd},children:a}))}})}})}exports.Output=i;
@@ -0,0 +1,23 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,23 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ import{PowerlinesContext as e}from"../contexts/context.mjs";import{MetaContext as t}from"../contexts/meta.mjs";import"../contexts/index.mjs";import{createComponent as n,mergeProps as r}from"@alloy-js/core/jsx-runtime";import{Output as i,computed as a,splitProps as o}from"@alloy-js/core";function s(s){let[{children:c,context:l,meta:u={}},d]=o(s,[`children`,`context`,`meta`]),f=a(()=>l);return n(t.Provider,{value:u,get children(){return n(e.Provider,{get value(){return f.value},get children(){return n(i,r(d,{get basePath(){return f.value.config.cwd},children:c}))}})}})}export{s as Output};
2
+ //# sourceMappingURL=output.mjs.map
@@ -0,0 +1 @@
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":"gSAyBA,SAAW,EAAQ,EAAA,CACjB,GAAA,CAAO,CACL,WACA,UACA,OAAA,EAAA,EACF,GAAS,EAAQ,EAAA,CAAA,WAAA,UAAA,OAAA,CAAA,YAEjB,OAAE,EAAA,EAAA,SAAA,CACA,MAAK,EACL,IAAA,UAAA,CACE,OAAG,EAAe,EAAS,SAAA,CACjC,IAAA,OAAA,iBAGG,IAAO,UAAa,CACrB,OAAA,EAAA,EAAA,EAAA,EAAA,CACK,IAAS,UAAO,CACd,OAAY,EAAQ,MAAA,OAAA,KAER,WAChB,CAAA,CAAQ,EAER,CAAA"}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`@alloy-js/core/jsx-runtime`),t=require(`@alloy-js/core`);function n(n){let{variant:r=`double-slash`,children:i}=n,a=r===`slash-star`?`/* `:r===`slash-star-star`?`/** `:r===`triple-slash`?`/// `:r===`markdown`?`<!-- `:r===`yaml`||r===`hcl`?`# `:`// `;return[a,(0,e.createIntrinsic)(`align`,{string:a,get children(){return[(0,e.createComponent)(t.Prose,{children:i}),r===`slash-star`||r===`slash-star-star`?` */ `:r===`markdown`?` -->`:``]}})]}exports.SingleLineComment=n;
@@ -0,0 +1,21 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,21 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ import{createComponent as e,createIntrinsic as t}from"@alloy-js/core/jsx-runtime";import{Prose as n}from"@alloy-js/core";function r(r){let{variant:i=`double-slash`,children:a}=r,o=i===`slash-star`?`/* `:i===`slash-star-star`?`/** `:i===`triple-slash`?`/// `:i===`markdown`?`<!-- `:i===`yaml`||i===`hcl`?`# `:`// `;return[o,t(`align`,{string:o,get children(){return[e(n,{children:a}),i===`slash-star`||i===`slash-star-star`?` */ `:i===`markdown`?` -->`:``]}})]}export{r as SingleLineComment};
2
+ //# sourceMappingURL=single-line-comment.mjs.map
@@ -0,0 +1 @@
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":"yHAyBA,SAAgB,EAAI,EAAA,CAClB,GAAG,CACD,UAAK,eACL,YAAA,EAEG,EAAU,IAAA,aAA+B,MAAA,IAAe,kBAAA,OAAA,IAAA,eAAA,OAAA,IAAA,WAAA,QAAA,IAAA,QAAA,IAAA,MAAA,KAAA,MAC7D,MAAE,CAAA,EAAA,EAAA,QAAA,CACA,OAAK,EACN,IAAA,UAAA,CACG,MAAA,CAAA,EAA0B,EAAA,CAC5B,WACF,CAAA,CAAQ,IAAE,cAAwB,IAAA,kBAAA,OAAA,IAAA,WAAA,OAAA,GAAA"}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../contexts/meta.cjs`);let n=require(`@alloy-js/core/jsx-runtime`),r=require(`@alloy-js/core`),i=require(`@stryke/path/append`),a=require(`defu`);a=e.__toESM(a);function o(e){let[{children:o,meta:s,path:c,header:l,storage:u,filetype:d,reference:f}]=(0,r.splitProps)(e,[`children`,`meta`,`path`,`header`,`storage`,`filetype`,`reference`]),p=t.useMeta(),m=(0,r.useContext)(r.SourceDirectoryContext),h={path:(0,i.appendPath)(c,m.path),filetype:d,reference:f};m?.addContent(h);let g=(0,r.useFormatOptions)({printWidth:e.printWidth,tabWidth:e.tabWidth,useTabs:e.useTabs,insertFinalNewLine:e.insertFinalNewLine}),_=(0,r.getContext)();return _.meta=(0,a.default)({sourceFile:h,printOptions:g},s??{}),p&&(p[h.path]={storage:u,...s??{}}),(0,n.createComponent)(r.SourceFileContext.Provider,{value:h,get children(){return[(0,n.createComponent)(r.Show,{when:l!==void 0,get children(){return[l,(0,n.createIntrinsic)(`hbr`,{})]}}),o]}})}exports.SourceFile=o;
@@ -0,0 +1,32 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,32 @@
1
+ import { ComponentProps } from "../../types/components.mjs";
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.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-file.d.mts","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"}
@@ -0,0 +1,2 @@
1
+ import{useMeta as e}from"../contexts/meta.mjs";import{createComponent as t,createIntrinsic as n}from"@alloy-js/core/jsx-runtime";import{Show as r,SourceDirectoryContext as i,SourceFileContext as a,getContext as o,splitProps as s,useContext as c,useFormatOptions as l}from"@alloy-js/core";import{appendPath as u}from"@stryke/path/append";import d from"defu";function f(f){let[{children:p,meta:m,path:h,header:g,storage:_,filetype:v,reference:y}]=s(f,[`children`,`meta`,`path`,`header`,`storage`,`filetype`,`reference`]),b=e(),x=c(i),S={path:u(h,x.path),filetype:v,reference:y};x?.addContent(S);let C=l({printWidth:f.printWidth,tabWidth:f.tabWidth,useTabs:f.useTabs,insertFinalNewLine:f.insertFinalNewLine}),w=o();return w.meta=d({sourceFile:S,printOptions:C},m??{}),b&&(b[S.path]={storage:_,...m??{}}),t(a.Provider,{value:S,get children(){return[t(r,{when:g!==void 0,get children(){return[g,n(`hbr`,{})]}}),p]}})}export{f as SourceFile};
2
+ //# sourceMappingURL=source-file.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-file.mjs","names":[],"sources":["../../../src/core/components/source-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 {\n getContext,\n Show,\n SourceDirectoryContext,\n SourceFileContext,\n SourceFileProps as SourceFilePropsExternal,\n splitProps,\n useContext,\n useFormatOptions\n} from \"@alloy-js/core\";\nimport { appendPath } from \"@stryke/path/append\";\nimport defu from \"defu\";\nimport type { StoragePreset } from \"powerlines\";\nimport { ComponentProps } from \"../../types/components\";\nimport { useMeta } from \"../contexts/meta\";\n\nexport type SourceFileProps = SourceFilePropsExternal &\n ComponentProps & {\n /**\n * The storage preset 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;\n\n /**\n * The metadata associated with the source file.\n *\n * @remarks\n * The values stored in the metadata will be available in the rendering context.\n */\n meta?: Record<string, any>;\n };\n\n/**\n * A base component representing a Powerlines generated source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function SourceFile(props: SourceFileProps) {\n const [{ children, meta, path, header, storage, filetype, reference }] =\n splitProps(props, [\n \"children\",\n \"meta\",\n \"path\",\n \"header\",\n \"storage\",\n \"filetype\",\n \"reference\"\n ]);\n\n const metadata = useMeta();\n const parentDirectory = useContext(SourceDirectoryContext)!;\n\n const sourceFile: SourceFileContext = {\n path: appendPath(path, parentDirectory.path),\n filetype,\n reference\n };\n parentDirectory?.addContent(sourceFile);\n\n const printOptions = useFormatOptions({\n printWidth: props.printWidth,\n tabWidth: props.tabWidth,\n useTabs: props.useTabs,\n insertFinalNewLine: props.insertFinalNewLine\n });\n\n const nodeContext = getContext()!;\n nodeContext.meta = defu(\n {\n sourceFile,\n printOptions\n },\n meta ?? {}\n );\n\n if (metadata) {\n metadata[sourceFile.path] = {\n storage,\n ...(meta ?? {})\n };\n }\n\n return (\n <SourceFileContext.Provider value={sourceFile}>\n <Show when={header !== undefined}>\n {header}\n <hbr />\n </Show>\n {children}\n </SourceFileContext.Provider>\n );\n}\n"],"mappings":"qWA8BA,SAAc,EAAa,EAAO,CAClC,GAAQ,CAAC,CACT,WAAA,OAEA,OACE,SACE,UACA,WACA,cACG,EAAC,EAAA,CAAA,WAAA,OAAA,OAAA,SAAA,UAAA,WAAA,YAAA,CAAA,CACD,EAAO,GAAc,CACtB,EAAA,EAAA,EAAA,CACF,EAAU,kBAEV,WACA,YACD,CACD,GAAM,WAAA,EAAA,CACN,IAAK,EAAW,EAAsB,CACpC,WAAE,EAAA,WACF,SAAO,EAAO,SACf,QAAA,EAAA,gDAED,CAAA,CACG,EAAe,GAAc,CAWhC,MAVD,GAAA,KAAA,EAAA,CACG,aACA,eACF,CAAA,GAAA,EAAA,CAAA,CACI,IACJ,EAAS,EAAU,MAAW,CAC5B,UACE,GAAC,GAAS,EAAA,CACX,EAEE,EAAO,EAAA,SAAA,CACV,MAAG,EACH,IAAG,UAAS,CACV,MAAC,CAAA,EAAS,EAAA,CACV,KAAA,IAAA,IAAA,kBAEE,MAAS,CAAC,EAAQ,EAAE,MAAA,EAAA,CAAA,CAAA,QAIzB,CAAC"}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`@alloy-js/core/jsx-runtime`),t=require(`@alloy-js/core`);function n({scale:n=1}){return(0,e.createComponent)(t.For,{get each(){return Array.from({length:n})},children:t=>[(0,e.createIntrinsic)(`hbr`,{}),(0,e.createIntrinsic)(`hbr`,{})]})}exports.Spacing=n;
@@ -0,0 +1,23 @@
1
+ import * as _$_alloy_js_core0 from "@alloy-js/core";
2
+
3
+ //#region src/core/components/spacing.d.ts
4
+ interface SpacingProps {
5
+ /**
6
+ * A scale factor that determines the amount of vertical space to be added.
7
+ *
8
+ * @remarks
9
+ * The default value is 1, which corresponds to a standard spacing. A value of 2 would double the spacing, while a value of 0.5 would halve it.
10
+ *
11
+ * @defaultValue 1
12
+ */
13
+ scale?: number;
14
+ }
15
+ /**
16
+ * A simple component that renders two horizontal breaks to create vertical spacing between elements.
17
+ */
18
+ declare function Spacing({
19
+ scale
20
+ }: SpacingProps): _$_alloy_js_core0.Children;
21
+ //#endregion
22
+ export { Spacing, SpacingProps };
23
+ //# sourceMappingURL=spacing.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.d.cts","names":[],"sources":["../../../src/core/components/spacing.tsx"],"mappings":";;;UAoBiB,YAAA;;;AAAjB;;;;;AAeA;EANE,KAAA;AAAA;;;;iBAMc,OAAA,CAAA;EAAU;AAAA,GAAa,YAAA,GAAY,iBAAA,CAAA,QAAA"}
@@ -0,0 +1,23 @@
1
+ import * as _$_alloy_js_core0 from "@alloy-js/core";
2
+
3
+ //#region src/core/components/spacing.d.ts
4
+ interface SpacingProps {
5
+ /**
6
+ * A scale factor that determines the amount of vertical space to be added.
7
+ *
8
+ * @remarks
9
+ * The default value is 1, which corresponds to a standard spacing. A value of 2 would double the spacing, while a value of 0.5 would halve it.
10
+ *
11
+ * @defaultValue 1
12
+ */
13
+ scale?: number;
14
+ }
15
+ /**
16
+ * A simple component that renders two horizontal breaks to create vertical spacing between elements.
17
+ */
18
+ declare function Spacing({
19
+ scale
20
+ }: SpacingProps): _$_alloy_js_core0.Children;
21
+ //#endregion
22
+ export { Spacing, SpacingProps };
23
+ //# sourceMappingURL=spacing.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.d.mts","names":[],"sources":["../../../src/core/components/spacing.tsx"],"mappings":";;;UAoBiB,YAAA;;;AAAjB;;;;;AAeA;EANE,KAAA;AAAA;;;;iBAMc,OAAA,CAAA;EAAU;AAAA,GAAa,YAAA,GAAY,iBAAA,CAAA,QAAA"}
@@ -0,0 +1,2 @@
1
+ import{createComponent as e,createIntrinsic as t}from"@alloy-js/core/jsx-runtime";import{For as n}from"@alloy-js/core";function r({scale:r=1}){return e(n,{get each(){return Array.from({length:r})},children:e=>[t(`hbr`,{}),t(`hbr`,{})]})}export{r as Spacing};
2
+ //# sourceMappingURL=spacing.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.mjs","names":[],"sources":["../../../src/core/components/spacing.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 { For } from \"@alloy-js/core\";\n\nexport interface SpacingProps {\n /**\n * A scale factor that determines the amount of vertical space to be added.\n *\n * @remarks\n * The default value is 1, which corresponds to a standard spacing. A value of 2 would double the spacing, while a value of 0.5 would halve it.\n *\n * @defaultValue 1\n */\n scale?: number;\n}\n\n/**\n * A simple component that renders two horizontal breaks to create vertical spacing between elements.\n */\nexport function Spacing({ scale = 1 }: SpacingProps) {\n return (\n <For each={Array.from({ length: scale })}>\n {_ => (\n <>\n <hbr />\n <hbr />\n </>\n )}\n </For>\n );\n}\n"],"mappings":"uHAuBA,SAAG,EAAA,CACD,QAAI,GACH,CACD,OAAC,EAAA,EAAA,CACC,IAAE,MAAA,CACF,OAAA,MAAA,KAAA,CACI,OAAQ,EAChB,CAAA,EAEE,SAAA,GAAA,CAAA,EAAA,MAAA,EAAA,CAAA,CAAA,EAAA,MAAA,EAAA,CAAA,CAAA,CACC,CAAC"}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`@alloy-js/core`);const t=(0,e.createNamedContext)(`Powerlines`);function n(){return(0,e.useContext)(t)}function r(){return n()??void 0}function i(){let e=r();if(!e)throw Error("Powerlines - 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}exports.PowerlinesContext=t,exports.usePowerlines=i,exports.usePowerlinesContext=n,exports.usePowerlinesSafe=r;
@@ -0,0 +1,29 @@
1
+ import { ComponentContext } from "@alloy-js/core";
2
+ import { PluginContext } from "powerlines";
3
+
4
+ //#region src/core/contexts/context.d.ts
5
+ /**
6
+ * The Powerlines context used in template rendering.
7
+ */
8
+ declare const PowerlinesContext: ComponentContext<PluginContext>;
9
+ /**
10
+ * Hook to access the Powerlines Context.
11
+ *
12
+ * @returns The Context.
13
+ */
14
+ declare function usePowerlinesContext<TContext extends PluginContext = PluginContext>(): TContext | undefined;
15
+ /**
16
+ * Hook to safely access the {@link PluginContext | Powerlines context}.
17
+ *
18
+ * @returns The Powerlines context or undefined if not set.
19
+ */
20
+ declare function usePowerlinesSafe<TContext extends PluginContext = PluginContext>(): TContext | undefined;
21
+ /**
22
+ * Hook to access the {@link PluginContext | Powerlines context}.
23
+ *
24
+ * @returns The Powerlines context.
25
+ */
26
+ declare function usePowerlines<TContext extends PluginContext = PluginContext>(): TContext;
27
+ //#endregion
28
+ export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
29
+ //# sourceMappingURL=context.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.cts","names":[],"sources":["../../../src/core/contexts/context.ts"],"mappings":";;;;;;AA4BA;cAAa,iBAAA,EAAmB,gBAAA,CAAiB,aAAA;;;;AAQjD;;iBAAgB,oBAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA;;;;;;iBASW,iBAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA;;;;;;iBAWW,aAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA"}
@@ -0,0 +1,29 @@
1
+ import { ComponentContext } from "@alloy-js/core";
2
+ import { PluginContext } from "powerlines";
3
+
4
+ //#region src/core/contexts/context.d.ts
5
+ /**
6
+ * The Powerlines context used in template rendering.
7
+ */
8
+ declare const PowerlinesContext: ComponentContext<PluginContext>;
9
+ /**
10
+ * Hook to access the Powerlines Context.
11
+ *
12
+ * @returns The Context.
13
+ */
14
+ declare function usePowerlinesContext<TContext extends PluginContext = PluginContext>(): TContext | undefined;
15
+ /**
16
+ * Hook to safely access the {@link PluginContext | Powerlines context}.
17
+ *
18
+ * @returns The Powerlines context or undefined if not set.
19
+ */
20
+ declare function usePowerlinesSafe<TContext extends PluginContext = PluginContext>(): TContext | undefined;
21
+ /**
22
+ * Hook to access the {@link PluginContext | Powerlines context}.
23
+ *
24
+ * @returns The Powerlines context.
25
+ */
26
+ declare function usePowerlines<TContext extends PluginContext = PluginContext>(): TContext;
27
+ //#endregion
28
+ export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
29
+ //# sourceMappingURL=context.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.mts","names":[],"sources":["../../../src/core/contexts/context.ts"],"mappings":";;;;;;AA4BA;cAAa,iBAAA,EAAmB,gBAAA,CAAiB,aAAA;;;;AAQjD;;iBAAgB,oBAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA;;;;;;iBASW,iBAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA;;;;;;iBAWW,aAAA,kBACG,aAAA,GAAgB,aAAA,CAAA,CAAA,GAC9B,QAAA"}
@@ -0,0 +1,2 @@
1
+ import{createNamedContext as e,useContext as t}from"@alloy-js/core";const n=e(`Powerlines`);function r(){return t(n)}function i(){return r()??void 0}function a(){let e=i();if(!e)throw Error("Powerlines - 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}export{n as PowerlinesContext,a as usePowerlines,r as usePowerlinesContext,i as usePowerlinesSafe};
2
+ //# sourceMappingURL=context.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.mjs","names":[],"sources":["../../../src/core/contexts/context.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 { PluginContext } from \"powerlines\";\n\n/**\n * The Powerlines context used in template rendering.\n */\nexport const PowerlinesContext: ComponentContext<PluginContext> =\n createNamedContext<PluginContext>(\"Powerlines\");\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function usePowerlinesContext<\n TContext extends PluginContext = PluginContext\n>(): TContext | undefined {\n return useContext(PowerlinesContext) as TContext | undefined;\n}\n\n/**\n * Hook to safely access the {@link PluginContext | Powerlines context}.\n *\n * @returns The Powerlines context or undefined if not set.\n */\nexport function usePowerlinesSafe<\n TContext extends PluginContext = PluginContext\n>(): TContext | undefined {\n const powerlines = usePowerlinesContext<TContext>();\n\n return powerlines ?? undefined;\n}\n\n/**\n * Hook to access the {@link PluginContext | Powerlines context}.\n *\n * @returns The Powerlines context.\n */\nexport function usePowerlines<\n TContext extends PluginContext = PluginContext\n>(): TContext {\n const powerlines = usePowerlinesSafe<TContext>();\n if (!powerlines) {\n throw new Error(\n \"Powerlines - 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 powerlines;\n}\n"],"mappings":"oEAsBA,MAAS,EAAc,EAAA,aAAA,CAOvB,SAAE,GAAmC,aASrC,SAAgB,GAAU,CAE1B,OADoB,GACpB,EAAA,IAAA,GAQA,SAAW,GAAqB,CAC9B,IAAG,EAAW,GAAU,CACxB,GAAA,CAAK,EAAA,MAAA,MAAA,sLAAA,CAGP,OAAA"}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./context.cjs`),t=require(`./meta.cjs`),n=require(`./reflection.cjs`);exports.MetaContext=t.MetaContext,exports.PowerlinesContext=e.PowerlinesContext,exports.ReflectionClassContext=n.ReflectionClassContext,exports.ReflectionMethodContext=n.ReflectionMethodContext,exports.ReflectionParameterContext=n.ReflectionParameterContext,exports.ReflectionPropertyContext=n.ReflectionPropertyContext,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=n.useReflectionClass,exports.useReflectionMethod=n.useReflectionMethod,exports.useReflectionParameter=n.useReflectionParameter,exports.useReflectionProperty=n.useReflectionProperty,exports.useReflectionPropertyContext=n.useReflectionPropertyContext;
@@ -0,0 +1,4 @@
1
+ import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.cjs";
2
+ import { MetaContext, MetaItem, useMeta, useMetaContext, useMetaSafe } from "./meta.cjs";
3
+ import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext } from "./reflection.cjs";
4
+ export { MetaContext, MetaItem, PowerlinesContext, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext };
@@ -0,0 +1,4 @@
1
+ import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
2
+ import { MetaContext, MetaItem, useMeta, useMetaContext, useMetaSafe } from "./meta.mjs";
3
+ import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext } from "./reflection.mjs";
4
+ export { MetaContext, MetaItem, PowerlinesContext, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, ReflectionPropertyContextInterface, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty, useReflectionPropertyContext };
@@ -0,0 +1 @@
1
+ import{PowerlinesContext as e,usePowerlines as t,usePowerlinesContext as n,usePowerlinesSafe as r}from"./context.mjs";import{MetaContext as i,useMeta as a,useMetaContext as o,useMetaSafe as s}from"./meta.mjs";import{ReflectionClassContext as c,ReflectionMethodContext as l,ReflectionParameterContext as u,ReflectionPropertyContext as d,useReflectionClass as f,useReflectionMethod as p,useReflectionParameter as m,useReflectionProperty as h,useReflectionPropertyContext as g}from"./reflection.mjs";export{i as MetaContext,e as PowerlinesContext,c as ReflectionClassContext,l as ReflectionMethodContext,u as ReflectionParameterContext,d as ReflectionPropertyContext,a as useMeta,o as useMetaContext,s as useMetaSafe,t as usePowerlines,n as usePowerlinesContext,r as usePowerlinesSafe,f as useReflectionClass,p as useReflectionMethod,m as useReflectionParameter,h as useReflectionProperty,g as useReflectionPropertyContext};
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`@alloy-js/core`);const t=(0,e.createNamedContext)(`Meta`);function n(){return(0,e.useContext)(t)}function r(){return n()??void 0}function i(){let e=r();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}exports.MetaContext=t,exports.useMeta=i,exports.useMetaContext=n,exports.useMetaSafe=r;
@@ -0,0 +1,47 @@
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
@@ -0,0 +1 @@
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"}