@power-plant/alloy-js 0.0.6 → 0.0.8

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 (354) hide show
  1. package/README.md +1 -1
  2. package/dist/alert-BZRTtU1X.d.cts +52 -0
  3. package/dist/alert-BZRTtU1X.d.cts.map +1 -0
  4. package/dist/alert-BZRTtU1X.d.mts +52 -0
  5. package/dist/alert-BZRTtU1X.d.mts.map +1 -0
  6. package/dist/block-declaration-DbMuMxXx.d.cts +19 -0
  7. package/dist/block-declaration-DbMuMxXx.d.cts.map +1 -0
  8. package/dist/block-declaration-Yq4hWFFT.d.mts +19 -0
  9. package/dist/block-declaration-Yq4hWFFT.d.mts.map +1 -0
  10. package/dist/class-declaration-CL5quGqz.d.mts +139 -0
  11. package/dist/class-declaration-CL5quGqz.d.mts.map +1 -0
  12. package/dist/class-declaration-G7ncTlSj.d.cts +139 -0
  13. package/dist/class-declaration-G7ncTlSj.d.cts.map +1 -0
  14. package/dist/components-D8UkrP5Q.d.cts +11 -0
  15. package/dist/components-D8UkrP5Q.d.cts.map +1 -0
  16. package/dist/components-D8UkrP5Q.d.mts +11 -0
  17. package/dist/components-D8UkrP5Q.d.mts.map +1 -0
  18. package/dist/core/components/index.cjs +1 -1
  19. package/dist/core/components/index.d.cts +1 -1
  20. package/dist/core/components/index.d.mts +1 -1
  21. package/dist/core/components/index.mjs +1 -1
  22. package/dist/core/components/source-file.cjs +1 -1
  23. package/dist/core/components/source-file.d.cts +1 -1
  24. package/dist/core/components/source-file.d.mts +1 -1
  25. package/dist/core/components/source-file.mjs +2 -1
  26. package/dist/core/components/source-file.mjs.map +1 -0
  27. package/dist/core/contexts/execution.cjs +1 -1
  28. package/dist/core/contexts/execution.mjs +1 -1
  29. package/dist/core/contexts/index.cjs +1 -1
  30. package/dist/core/contexts/index.d.cts +2 -2
  31. package/dist/core/contexts/index.d.mts +2 -2
  32. package/dist/core/contexts/index.mjs +1 -1
  33. package/dist/core/contexts/meta.cjs +1 -1
  34. package/dist/core/contexts/meta.mjs +1 -1
  35. package/dist/core/contexts/schema.cjs +1 -1
  36. package/dist/core/contexts/schema.mjs +1 -1
  37. package/dist/core/contexts/session.cjs +1 -1
  38. package/dist/core/contexts/session.d.cts +2 -2
  39. package/dist/core/contexts/session.d.mts +2 -2
  40. package/dist/core/contexts/session.mjs +1 -1
  41. package/dist/core/contexts/spec.cjs +1 -1
  42. package/dist/core/contexts/spec.mjs +1 -1
  43. package/dist/core/helpers/header-constants.cjs +1 -0
  44. package/dist/core/helpers/header-constants.d.cts +12 -0
  45. package/dist/core/helpers/header-constants.d.cts.map +1 -0
  46. package/dist/core/helpers/header-constants.d.mts +12 -0
  47. package/dist/core/helpers/header-constants.d.mts.map +1 -0
  48. package/dist/core/helpers/header-constants.mjs +2 -0
  49. package/dist/core/helpers/header-constants.mjs.map +1 -0
  50. package/dist/core/index.cjs +1 -1
  51. package/dist/core/index.d.cts +3 -3
  52. package/dist/core/index.d.mts +3 -3
  53. package/dist/core/index.mjs +1 -1
  54. package/dist/dynamic-import-statement--GIybIf5.d.cts +30 -0
  55. package/dist/dynamic-import-statement--GIybIf5.d.cts.map +1 -0
  56. package/dist/dynamic-import-statement--GIybIf5.d.mts +30 -0
  57. package/dist/dynamic-import-statement--GIybIf5.d.mts.map +1 -0
  58. package/dist/front-matter-N6kiCG9y.d.cts +13 -0
  59. package/dist/front-matter-N6kiCG9y.d.cts.map +1 -0
  60. package/dist/front-matter-N6kiCG9y.d.mts +13 -0
  61. package/dist/front-matter-N6kiCG9y.d.mts.map +1 -0
  62. package/dist/get-call-signature-props-B1NHhswg.d.cts +13 -0
  63. package/dist/get-call-signature-props-B1NHhswg.d.cts.map +1 -0
  64. package/dist/get-call-signature-props-B1NHhswg.d.mts +13 -0
  65. package/dist/get-call-signature-props-B1NHhswg.d.mts.map +1 -0
  66. package/dist/hcl/components/block-declaration.cjs +1 -0
  67. package/dist/hcl/components/block-declaration.d.cts +2 -0
  68. package/dist/hcl/components/block-declaration.d.mts +2 -0
  69. package/dist/hcl/components/block-declaration.mjs +2 -0
  70. package/dist/hcl/components/block-declaration.mjs.map +1 -0
  71. package/dist/hcl/components/hcl-file.cjs +1 -0
  72. package/dist/hcl/components/hcl-file.d.cts +2 -0
  73. package/dist/hcl/components/hcl-file.d.mts +2 -0
  74. package/dist/hcl/components/hcl-file.mjs +2 -0
  75. package/dist/hcl/components/hcl-file.mjs.map +1 -0
  76. package/dist/hcl/components/index.cjs +1 -0
  77. package/dist/hcl/components/index.d.cts +5 -0
  78. package/dist/hcl/components/index.d.mts +5 -0
  79. package/dist/hcl/components/index.mjs +1 -0
  80. package/dist/hcl/components/packer-file.cjs +1 -0
  81. package/dist/hcl/components/packer-file.d.cts +2 -0
  82. package/dist/hcl/components/packer-file.d.mts +2 -0
  83. package/dist/hcl/components/packer-file.mjs +2 -0
  84. package/dist/hcl/components/packer-file.mjs.map +1 -0
  85. package/dist/hcl/components/terraform-file.cjs +1 -0
  86. package/dist/hcl/components/terraform-file.d.cts +2 -0
  87. package/dist/hcl/components/terraform-file.d.mts +2 -0
  88. package/dist/hcl/components/terraform-file.mjs +2 -0
  89. package/dist/hcl/components/terraform-file.mjs.map +1 -0
  90. package/dist/hcl/index.cjs +1 -0
  91. package/dist/hcl/index.d.cts +6 -0
  92. package/dist/hcl/index.d.mts +6 -0
  93. package/dist/hcl/index.mjs +1 -0
  94. package/dist/hcl-file-CDeOXiO0.d.mts +25 -0
  95. package/dist/hcl-file-CDeOXiO0.d.mts.map +1 -0
  96. package/dist/hcl-file-CxR4hw4B.d.cts +25 -0
  97. package/dist/hcl-file-CxR4hw4B.d.cts.map +1 -0
  98. package/dist/heading-CG6LmaB5.d.cts +17 -0
  99. package/dist/heading-CG6LmaB5.d.cts.map +1 -0
  100. package/dist/heading-D0he7iDI.d.mts +17 -0
  101. package/dist/heading-D0he7iDI.d.mts.map +1 -0
  102. package/dist/index.cjs +1 -47
  103. package/dist/index.d.cts.map +1 -1
  104. package/dist/index.mjs +1 -47
  105. package/dist/interface-declaration-BSo-U6IN.d.cts +78 -0
  106. package/dist/interface-declaration-BSo-U6IN.d.cts.map +1 -0
  107. package/dist/interface-declaration-DYLPeJH1.d.mts +78 -0
  108. package/dist/interface-declaration-DYLPeJH1.d.mts.map +1 -0
  109. package/dist/lexical-scope-DghPwq5Q.d.cts +12 -0
  110. package/dist/lexical-scope-DghPwq5Q.d.cts.map +1 -0
  111. package/dist/lexical-scope-DghPwq5Q.d.mts +12 -0
  112. package/dist/lexical-scope-DghPwq5Q.d.mts.map +1 -0
  113. package/dist/markdown/components/alert.cjs +1 -0
  114. package/dist/markdown/components/alert.d.cts +2 -0
  115. package/dist/markdown/components/alert.d.mts +2 -0
  116. package/dist/markdown/components/alert.mjs +2 -0
  117. package/dist/markdown/components/alert.mjs.map +1 -0
  118. package/dist/markdown/components/front-matter.cjs +1 -0
  119. package/dist/markdown/components/front-matter.d.cts +2 -0
  120. package/dist/markdown/components/front-matter.d.mts +2 -0
  121. package/dist/markdown/components/front-matter.mjs +2 -0
  122. package/dist/markdown/components/front-matter.mjs.map +1 -0
  123. package/dist/markdown/components/heading.cjs +1 -0
  124. package/dist/markdown/components/heading.d.cts +2 -0
  125. package/dist/markdown/components/heading.d.mts +2 -0
  126. package/dist/markdown/components/heading.mjs +2 -0
  127. package/dist/markdown/components/heading.mjs.map +1 -0
  128. package/dist/markdown/components/index.cjs +1 -0
  129. package/dist/markdown/components/index.d.cts +6 -0
  130. package/dist/markdown/components/index.d.mts +6 -0
  131. package/dist/markdown/components/index.mjs +1 -0
  132. package/dist/markdown/components/markdown-file.cjs +1 -0
  133. package/dist/markdown/components/markdown-file.d.cts +2 -0
  134. package/dist/markdown/components/markdown-file.d.mts +2 -0
  135. package/dist/markdown/components/markdown-file.mjs +2 -0
  136. package/dist/markdown/components/markdown-file.mjs.map +1 -0
  137. package/dist/markdown/components/markdown-table.cjs +1 -0
  138. package/dist/markdown/components/markdown-table.d.cts +2 -0
  139. package/dist/markdown/components/markdown-table.d.mts +2 -0
  140. package/dist/markdown/components/markdown-table.mjs +2 -0
  141. package/dist/markdown/components/markdown-table.mjs.map +1 -0
  142. package/dist/markdown/contexts/index.cjs +1 -0
  143. package/dist/markdown/contexts/index.d.cts +2 -0
  144. package/dist/markdown/contexts/index.d.mts +2 -0
  145. package/dist/markdown/contexts/index.mjs +1 -0
  146. package/dist/markdown/contexts/markdown-table.cjs +1 -0
  147. package/dist/markdown/contexts/markdown-table.d.cts +2 -0
  148. package/dist/markdown/contexts/markdown-table.d.mts +2 -0
  149. package/dist/markdown/contexts/markdown-table.mjs +2 -0
  150. package/dist/markdown/contexts/markdown-table.mjs.map +1 -0
  151. package/dist/markdown/index.cjs +1 -0
  152. package/dist/markdown/index.d.cts +9 -0
  153. package/dist/markdown/index.d.mts +9 -0
  154. package/dist/markdown/index.mjs +1 -0
  155. package/dist/markdown-file-BsiASIVZ.d.cts +25 -0
  156. package/dist/markdown-file-BsiASIVZ.d.cts.map +1 -0
  157. package/dist/markdown-file-CG6y_nCf.d.mts +25 -0
  158. package/dist/markdown-file-CG6y_nCf.d.mts.map +1 -0
  159. package/dist/markdown-table-BxfTr3lV.d.cts +35 -0
  160. package/dist/markdown-table-BxfTr3lV.d.cts.map +1 -0
  161. package/dist/markdown-table-BxfTr3lV.d.mts +35 -0
  162. package/dist/markdown-table-BxfTr3lV.d.mts.map +1 -0
  163. package/dist/markdown-table-H4veEJCn.d.mts +37 -0
  164. package/dist/markdown-table-H4veEJCn.d.mts.map +1 -0
  165. package/dist/markdown-table-P04wFKse.d.cts +37 -0
  166. package/dist/markdown-table-P04wFKse.d.cts.map +1 -0
  167. package/dist/object-declaration-BWJ8zDKp.d.cts +24 -0
  168. package/dist/object-declaration-BWJ8zDKp.d.cts.map +1 -0
  169. package/dist/object-declaration-DQQhQypx.d.mts +24 -0
  170. package/dist/object-declaration-DQQhQypx.d.mts.map +1 -0
  171. package/dist/packer-file-DVdUCeHH.d.cts +16 -0
  172. package/dist/packer-file-DVdUCeHH.d.cts.map +1 -0
  173. package/dist/packer-file-DeJWrlcR.d.mts +16 -0
  174. package/dist/packer-file-DeJWrlcR.d.mts.map +1 -0
  175. package/dist/property-name-bQ4hrXmQ.d.cts +21 -0
  176. package/dist/property-name-bQ4hrXmQ.d.cts.map +1 -0
  177. package/dist/property-name-bQ4hrXmQ.d.mts +21 -0
  178. package/dist/property-name-bQ4hrXmQ.d.mts.map +1 -0
  179. package/dist/record-expression-CECGDPCk.d.cts +9 -0
  180. package/dist/record-expression-CECGDPCk.d.cts.map +1 -0
  181. package/dist/record-expression-CECGDPCk.d.mts +9 -0
  182. package/dist/record-expression-CECGDPCk.d.mts.map +1 -0
  183. package/dist/render.cjs +1 -1
  184. package/dist/render.d.cts.map +1 -1
  185. package/dist/render.mjs +2 -1
  186. package/dist/render.mjs.map +1 -0
  187. package/dist/rolldown-runtime-CMqjfN_6.cjs +1 -0
  188. package/dist/session-C2p15ap9.d.cts +23 -0
  189. package/dist/session-C2p15ap9.d.cts.map +1 -0
  190. package/dist/session-C2p15ap9.d.mts +23 -0
  191. package/dist/session-C2p15ap9.d.mts.map +1 -0
  192. package/dist/{source-file-DVILH8rC.d.mts → source-file-BiWHfxCC.d.mts} +5 -5
  193. package/dist/source-file-BiWHfxCC.d.mts.map +1 -0
  194. package/dist/{source-file-CPJOENVo.d.cts → source-file-DfP35Z8l.d.cts} +4 -4
  195. package/dist/source-file-DfP35Z8l.d.cts.map +1 -0
  196. package/dist/terraform-file-DS0uAb5z.d.mts +17 -0
  197. package/dist/terraform-file-DS0uAb5z.d.mts.map +1 -0
  198. package/dist/terraform-file-gr1_jJWO.d.cts +17 -0
  199. package/dist/terraform-file-gr1_jJWO.d.cts.map +1 -0
  200. package/dist/tsdoc-B6Hw9jOF.d.cts +163 -0
  201. package/dist/tsdoc-B6Hw9jOF.d.cts.map +1 -0
  202. package/dist/tsdoc-CFdZtTw6.d.mts +163 -0
  203. package/dist/tsdoc-CFdZtTw6.d.mts.map +1 -0
  204. package/dist/tsdoc-schema-B4yKswI-.d.mts +21 -0
  205. package/dist/tsdoc-schema-B4yKswI-.d.mts.map +1 -0
  206. package/dist/tsdoc-schema-DJ_3JLuh.d.cts +21 -0
  207. package/dist/tsdoc-schema-DJ_3JLuh.d.cts.map +1 -0
  208. package/dist/type-declaration-BLvkozNR.d.cts +15 -0
  209. package/dist/type-declaration-BLvkozNR.d.cts.map +1 -0
  210. package/dist/type-declaration-BLvkozNR.d.mts +15 -0
  211. package/dist/type-declaration-BLvkozNR.d.mts.map +1 -0
  212. package/dist/type-parameters-BzCDG9lT.d.cts +22 -0
  213. package/dist/type-parameters-BzCDG9lT.d.cts.map +1 -0
  214. package/dist/type-parameters-BzCDG9lT.d.mts +22 -0
  215. package/dist/type-parameters-BzCDG9lT.d.mts.map +1 -0
  216. package/dist/typescript/components/class-declaration.cjs +1 -0
  217. package/dist/typescript/components/class-declaration.d.cts +2 -0
  218. package/dist/typescript/components/class-declaration.d.mts +2 -0
  219. package/dist/typescript/components/class-declaration.mjs +2 -0
  220. package/dist/typescript/components/class-declaration.mjs.map +1 -0
  221. package/dist/typescript/components/dynamic-import-statement.cjs +1 -0
  222. package/dist/typescript/components/dynamic-import-statement.d.cts +2 -0
  223. package/dist/typescript/components/dynamic-import-statement.d.mts +2 -0
  224. package/dist/typescript/components/dynamic-import-statement.mjs +2 -0
  225. package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -0
  226. package/dist/typescript/components/index.cjs +1 -0
  227. package/dist/typescript/components/index.d.cts +12 -0
  228. package/dist/typescript/components/index.d.mts +12 -0
  229. package/dist/typescript/components/index.mjs +1 -0
  230. package/dist/typescript/components/interface-declaration.cjs +1 -0
  231. package/dist/typescript/components/interface-declaration.d.cts +2 -0
  232. package/dist/typescript/components/interface-declaration.d.mts +2 -0
  233. package/dist/typescript/components/interface-declaration.mjs +2 -0
  234. package/dist/typescript/components/interface-declaration.mjs.map +1 -0
  235. package/dist/typescript/components/object-declaration.cjs +1 -0
  236. package/dist/typescript/components/object-declaration.d.cts +2 -0
  237. package/dist/typescript/components/object-declaration.d.mts +2 -0
  238. package/dist/typescript/components/object-declaration.mjs +2 -0
  239. package/dist/typescript/components/object-declaration.mjs.map +1 -0
  240. package/dist/typescript/components/property-name.cjs +1 -0
  241. package/dist/typescript/components/property-name.d.cts +2 -0
  242. package/dist/typescript/components/property-name.d.mts +2 -0
  243. package/dist/typescript/components/property-name.mjs +2 -0
  244. package/dist/typescript/components/property-name.mjs.map +1 -0
  245. package/dist/typescript/components/record-expression.cjs +3 -0
  246. package/dist/typescript/components/record-expression.d.cts +2 -0
  247. package/dist/typescript/components/record-expression.d.mts +2 -0
  248. package/dist/typescript/components/record-expression.mjs +4 -0
  249. package/dist/typescript/components/record-expression.mjs.map +1 -0
  250. package/dist/typescript/components/tsdoc-schema.cjs +1 -0
  251. package/dist/typescript/components/tsdoc-schema.d.cts +2 -0
  252. package/dist/typescript/components/tsdoc-schema.d.mts +2 -0
  253. package/dist/typescript/components/tsdoc-schema.mjs +2 -0
  254. package/dist/typescript/components/tsdoc-schema.mjs.map +1 -0
  255. package/dist/typescript/components/tsdoc.cjs +1 -0
  256. package/dist/typescript/components/tsdoc.d.cts +2 -0
  257. package/dist/typescript/components/tsdoc.d.mts +2 -0
  258. package/dist/typescript/components/tsdoc.mjs +2 -0
  259. package/dist/typescript/components/tsdoc.mjs.map +1 -0
  260. package/dist/typescript/components/type-declaration.cjs +1 -0
  261. package/dist/typescript/components/type-declaration.d.cts +2 -0
  262. package/dist/typescript/components/type-declaration.d.mts +2 -0
  263. package/dist/typescript/components/type-declaration.mjs +2 -0
  264. package/dist/typescript/components/type-declaration.mjs.map +1 -0
  265. package/dist/typescript/components/type-parameters.cjs +1 -0
  266. package/dist/typescript/components/type-parameters.d.cts +2 -0
  267. package/dist/typescript/components/type-parameters.d.mts +2 -0
  268. package/dist/typescript/components/type-parameters.mjs +2 -0
  269. package/dist/typescript/components/type-parameters.mjs.map +1 -0
  270. package/dist/typescript/components/typescript-file.cjs +1 -0
  271. package/dist/typescript/components/typescript-file.d.cts +2 -0
  272. package/dist/typescript/components/typescript-file.d.mts +2 -0
  273. package/dist/typescript/components/typescript-file.mjs +2 -0
  274. package/dist/typescript/components/typescript-file.mjs.map +1 -0
  275. package/dist/typescript/contexts/index.cjs +1 -0
  276. package/dist/typescript/contexts/index.d.cts +2 -0
  277. package/dist/typescript/contexts/index.d.mts +2 -0
  278. package/dist/typescript/contexts/index.mjs +1 -0
  279. package/dist/typescript/contexts/lexical-scope.cjs +1 -0
  280. package/dist/typescript/contexts/lexical-scope.d.cts +2 -0
  281. package/dist/typescript/contexts/lexical-scope.d.mts +2 -0
  282. package/dist/typescript/contexts/lexical-scope.mjs +2 -0
  283. package/dist/typescript/contexts/lexical-scope.mjs.map +1 -0
  284. package/dist/typescript/contexts/member-scope.cjs +1 -0
  285. package/dist/typescript/contexts/member-scope.d.cts +18 -0
  286. package/dist/typescript/contexts/member-scope.d.cts.map +1 -0
  287. package/dist/typescript/contexts/member-scope.d.mts +18 -0
  288. package/dist/typescript/contexts/member-scope.d.mts.map +1 -0
  289. package/dist/typescript/contexts/member-scope.mjs +2 -0
  290. package/dist/typescript/contexts/member-scope.mjs.map +1 -0
  291. package/dist/typescript/helpers/get-call-signature-props.cjs +1 -0
  292. package/dist/typescript/helpers/get-call-signature-props.d.cts +2 -0
  293. package/dist/typescript/helpers/get-call-signature-props.d.mts +2 -0
  294. package/dist/typescript/helpers/get-call-signature-props.mjs +2 -0
  295. package/dist/typescript/helpers/get-call-signature-props.mjs.map +1 -0
  296. package/dist/typescript/helpers/index.cjs +1 -0
  297. package/dist/typescript/helpers/index.d.cts +3 -0
  298. package/dist/typescript/helpers/index.d.mts +3 -0
  299. package/dist/typescript/helpers/index.mjs +1 -0
  300. package/dist/typescript/helpers/utilities.cjs +1 -0
  301. package/dist/typescript/helpers/utilities.d.cts +2 -0
  302. package/dist/typescript/helpers/utilities.d.mts +2 -0
  303. package/dist/typescript/helpers/utilities.mjs +2 -0
  304. package/dist/typescript/helpers/utilities.mjs.map +1 -0
  305. package/dist/typescript/index.cjs +1 -0
  306. package/dist/typescript/index.d.cts +19 -0
  307. package/dist/typescript/index.d.mts +19 -0
  308. package/dist/typescript/index.mjs +1 -0
  309. package/dist/typescript/types/components.cjs +0 -0
  310. package/dist/typescript/types/components.d.cts +2 -0
  311. package/dist/typescript/types/components.d.mts +2 -0
  312. package/dist/typescript/types/components.mjs +0 -0
  313. package/dist/typescript/types/index.cjs +0 -0
  314. package/dist/typescript/types/index.d.cts +2 -0
  315. package/dist/typescript/types/index.d.mts +2 -0
  316. package/dist/typescript/types/index.mjs +0 -0
  317. package/dist/typescript-file-C0GR7QWh.d.cts +49 -0
  318. package/dist/typescript-file-C0GR7QWh.d.cts.map +1 -0
  319. package/dist/typescript-file-YdpvA2Y-.d.mts +49 -0
  320. package/dist/typescript-file-YdpvA2Y-.d.mts.map +1 -0
  321. package/dist/utilities-BtXOWwjJ.d.cts +11 -0
  322. package/dist/utilities-BtXOWwjJ.d.cts.map +1 -0
  323. package/dist/utilities-BtXOWwjJ.d.mts +11 -0
  324. package/dist/utilities-BtXOWwjJ.d.mts.map +1 -0
  325. package/dist/yaml/components/index.cjs +1 -0
  326. package/dist/yaml/components/index.d.cts +2 -0
  327. package/dist/yaml/components/index.d.mts +2 -0
  328. package/dist/yaml/components/index.mjs +1 -0
  329. package/dist/yaml/components/yaml-file.cjs +1 -0
  330. package/dist/yaml/components/yaml-file.d.cts +2 -0
  331. package/dist/yaml/components/yaml-file.d.mts +2 -0
  332. package/dist/yaml/components/yaml-file.mjs +2 -0
  333. package/dist/yaml/components/yaml-file.mjs.map +1 -0
  334. package/dist/yaml/index.cjs +1 -0
  335. package/dist/yaml/index.d.cts +3 -0
  336. package/dist/yaml/index.d.mts +3 -0
  337. package/dist/yaml/index.mjs +1 -0
  338. package/dist/yaml-file-BBXSkeRl.d.cts +31 -0
  339. package/dist/yaml-file-BBXSkeRl.d.cts.map +1 -0
  340. package/dist/yaml-file-BRSIxFdU.d.mts +31 -0
  341. package/dist/yaml-file-BRSIxFdU.d.mts.map +1 -0
  342. package/package.json +570 -11
  343. package/dist/render-Bh6nE1bo.cjs +0 -1
  344. package/dist/render-UH3hN5fr.mjs +0 -2
  345. package/dist/render-UH3hN5fr.mjs.map +0 -1
  346. package/dist/session-CFnVWg4N.d.cts +0 -62
  347. package/dist/session-CFnVWg4N.d.cts.map +0 -1
  348. package/dist/session-CFnVWg4N.d.mts +0 -62
  349. package/dist/session-CFnVWg4N.d.mts.map +0 -1
  350. package/dist/source-file-CPJOENVo.d.cts.map +0 -1
  351. package/dist/source-file-DVILH8rC.d.mts.map +0 -1
  352. package/dist/source-file-K_2P7eFP.cjs +0 -1
  353. package/dist/source-file-t3itBybg.mjs +0 -2
  354. package/dist/source-file-t3itBybg.mjs.map +0 -1
@@ -0,0 +1,9 @@
1
+ import { Children } from "@alloy-js/core";
2
+ //#region src/typescript/components/record-expression.d.ts
3
+ interface RecordExpressionProps {
4
+ elementType: Children;
5
+ }
6
+ declare function RecordExpression({ elementType }: RecordExpressionProps): Children;
7
+ //#endregion
8
+ export { RecordExpressionProps as n, RecordExpression as t };
9
+ //# sourceMappingURL=record-expression-CECGDPCk.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record-expression-CECGDPCk.d.mts","names":[],"sources":["../src/typescript/components/record-expression.tsx"],"mappings":""}
package/dist/render.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./render-Bh6nE1bo.cjs");exports.render=e.t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-CMqjfN_6.cjs"),t=require("./core/components/output.cjs");require("./core/index.cjs");let n=require("@alloy-js/core/jsx-runtime"),r=require("@alloy-js/core"),i=require("@stryke/helpers/noop"),a=require("@stryke/path/replace"),o=require("@stryke/string-format/list"),s=require("defu");s=e.t(s,1);async function c(e,c,l){let u={},{cwd:d,logger:f}=e,p=await(0,r.renderAsync)((0,n.createComponent)(t.Output,{context:e,spec:c,meta:u,children:l})),m=[];if(await(0,r.traverseOutput)(p,{visitDirectory:i.noop,visitFile:e=>m.push(e)}),!m.length)return f.debug(`No output files were rendered by the Alloy-js components.`),{};f.debug(`Rendering ${m.length} output files from Alloy-js components: ${(0,o.list)(m.map(e=>(0,a.replacePath)(e.path,d)))}.`);let h={};return await(0,r.traverseOutput)(p,{visitDirectory:i.noop,visitFile:e=>{if(`contents`in e){let t=u[e.path]??{};h[e.path]={path:e.path,source:[{content:e.contents,meta:t}]}}else if(e.sourcePath&&h[e.sourcePath]){let t=u[e.path]??{};h[e.path]={...h[e.sourcePath],path:e.path,source:h[e.sourcePath]?.source?.map(e=>(0,s.default)(e,{meta:t}))??[]}}}}),h}exports.render=c;
@@ -1 +1 @@
1
- {"version":3,"file":"render.d.cts","names":[],"sources":["../src/render.tsx"],"mappings":";;;;;;;;;;;;;;;;;iBA8CsB,OAAO,OAAO,yBAAyB,iBAC3D,SAAS,iBAAiB,OAAO,UAAU,WAC3C,MAAM,OACN,UAAU,WACT,QAAQ,wBAAwB,OAAO"}
1
+ {"version":3,"file":"render.d.cts","names":[],"sources":["../src/render.tsx"],"mappings":";;;;;;;;;;;;;;;;;iBA6CsB,OAAO,OAAO,yBAAyB,iBAC3D,SAAS,iBAAiB,OAAO,UAAU,WAC3C,MAAM,OACN,UAAU,WACT,QAAQ,wBAAwB,OAAO"}
package/dist/render.mjs CHANGED
@@ -1 +1,2 @@
1
- import{t as e}from"./render-UH3hN5fr.mjs";export{e as render};
1
+ import{Output as e}from"./core/components/output.mjs";import"./core/index.mjs";import{createComponent as t}from"@alloy-js/core/jsx-runtime";import{renderAsync as n,traverseOutput as r}from"@alloy-js/core";import{noop as i}from"@stryke/helpers/noop";import{replacePath as a}from"@stryke/path/replace";import{list as o}from"@stryke/string-format/list";import s from"defu";async function c(c,l,u){let d={},{cwd:f,logger:p}=c,m=await n(t(e,{context:c,spec:l,meta:d,children:u})),h=[];if(await r(m,{visitDirectory:i,visitFile:e=>h.push(e)}),!h.length)return p.debug(`No output files were rendered by the Alloy-js components.`),{};p.debug(`Rendering ${h.length} output files from Alloy-js components: ${o(h.map(e=>a(e.path,f)))}.`);let g={};return await r(m,{visitDirectory:i,visitFile:e=>{if(`contents`in e){let t=d[e.path]??{};g[e.path]={path:e.path,source:[{content:e.contents,meta:t}]}}else if(e.sourcePath&&g[e.sourcePath]){let t=d[e.path]??{};g[e.path]={...g[e.sourcePath],path:e.path,source:g[e.sourcePath]?.source?.map(e=>s(e,{meta:t}))??[]}}}}),g}export{c as render};
2
+ //# sourceMappingURL=render.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render.mjs","names":[],"sources":[],"mappings":""}
@@ -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));Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
@@ -0,0 +1,23 @@
1
+ import { ComponentContext } from "@alloy-js/core";
2
+ import { SessionContext } from "@power-plant/core";
3
+ //#region src/core/contexts/session.d.ts
4
+ /**
5
+ * The session context used to access the session data.
6
+ */
7
+ declare const SessionContext$1: ComponentContext<SessionContext>;
8
+ /**
9
+ * Hook to access the session context.
10
+ *
11
+ * @returns The session context.
12
+ * @throws An error if the session context is not set.
13
+ */
14
+ declare function useSession(): SessionContext;
15
+ /**
16
+ * Hook to safely access the session context.
17
+ *
18
+ * @returns The session context or undefined if not set.
19
+ */
20
+ declare function useSessionSafe(): SessionContext | undefined;
21
+ //#endregion
22
+ export { useSession as n, useSessionSafe as r, SessionContext$1 as t };
23
+ //# sourceMappingURL=session-C2p15ap9.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-C2p15ap9.d.cts","names":[],"sources":["../src/core/contexts/session.ts"],"mappings":";;;;;;cAyBa,kBAAgB,iBAAiB;;;;;;;iBAS9B,cAAc;;;;;;iBAgBd,kBAAkB"}
@@ -0,0 +1,23 @@
1
+ import { ComponentContext } from "@alloy-js/core";
2
+ import { SessionContext } from "@power-plant/core";
3
+ //#region src/core/contexts/session.d.ts
4
+ /**
5
+ * The session context used to access the session data.
6
+ */
7
+ declare const SessionContext$1: ComponentContext<SessionContext>;
8
+ /**
9
+ * Hook to access the session context.
10
+ *
11
+ * @returns The session context.
12
+ * @throws An error if the session context is not set.
13
+ */
14
+ declare function useSession(): SessionContext;
15
+ /**
16
+ * Hook to safely access the session context.
17
+ *
18
+ * @returns The session context or undefined if not set.
19
+ */
20
+ declare function useSessionSafe(): SessionContext | undefined;
21
+ //#endregion
22
+ export { useSession as n, useSessionSafe as r, SessionContext$1 as t };
23
+ //# sourceMappingURL=session-C2p15ap9.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-C2p15ap9.d.mts","names":[],"sources":["../src/core/contexts/session.ts"],"mappings":""}
@@ -2,14 +2,14 @@ import { t as ComponentProps } from "./components-vJaCHt1A.mjs";
2
2
  import { SourceFileProps } from "@alloy-js/core";
3
3
  import { MetaConfig } from "@power-plant/core";
4
4
  //#region src/core/components/source-file.d.ts
5
- type SourceFileProps$1<TSpec, TOptions extends object> = SourceFileProps & ComponentProps & {
5
+ type SourceFileProps$1 = SourceFileProps & ComponentProps & {
6
6
  /**
7
7
  * The metadata associated with the source file.
8
8
  *
9
9
  * @remarks
10
10
  * The values stored in the metadata will be available in the rendering context.
11
11
  */
12
- meta?: MetaConfig<TSpec, TOptions>;
12
+ meta?: MetaConfig<any, any>;
13
13
  };
14
14
  /**
15
15
  * A base component representing a generated source file.
@@ -17,7 +17,7 @@ type SourceFileProps$1<TSpec, TOptions extends object> = SourceFileProps & Compo
17
17
  * @param props - The properties for the source file.
18
18
  * @returns The rendered source file component.
19
19
  */
20
- declare function SourceFile<TSpec, TOptions extends object>(props: SourceFileProps$1<TSpec, TOptions>): import("@alloy-js/core").Children;
20
+ declare function SourceFile$1(props: SourceFileProps$1): import("@alloy-js/core").Children;
21
21
  //#endregion
22
- export { SourceFileProps$1 as n, SourceFile as t };
23
- //# sourceMappingURL=source-file-DVILH8rC.d.mts.map
22
+ export { SourceFileProps$1 as n, SourceFile$1 as t };
23
+ //# sourceMappingURL=source-file-BiWHfxCC.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-file-BiWHfxCC.d.mts","names":[],"sources":["../src/core/components/source-file.tsx"],"mappings":""}
@@ -2,14 +2,14 @@ import { t as ComponentProps } from "./components-vJaCHt1A.cjs";
2
2
  import { SourceFileProps } from "@alloy-js/core";
3
3
  import { MetaConfig } from "@power-plant/core";
4
4
  //#region src/core/components/source-file.d.ts
5
- type SourceFileProps$1<TSpec, TOptions extends object> = SourceFileProps & ComponentProps & {
5
+ type SourceFileProps$1 = SourceFileProps & ComponentProps & {
6
6
  /**
7
7
  * The metadata associated with the source file.
8
8
  *
9
9
  * @remarks
10
10
  * The values stored in the metadata will be available in the rendering context.
11
11
  */
12
- meta?: MetaConfig<TSpec, TOptions>;
12
+ meta?: MetaConfig<any, any>;
13
13
  };
14
14
  /**
15
15
  * A base component representing a generated source file.
@@ -17,7 +17,7 @@ type SourceFileProps$1<TSpec, TOptions extends object> = SourceFileProps & Compo
17
17
  * @param props - The properties for the source file.
18
18
  * @returns The rendered source file component.
19
19
  */
20
- declare function SourceFile<TSpec, TOptions extends object>(props: SourceFileProps$1<TSpec, TOptions>): import("@alloy-js/core").Children;
20
+ declare function SourceFile(props: SourceFileProps$1): import("@alloy-js/core").Children;
21
21
  //#endregion
22
22
  export { SourceFileProps$1 as n, SourceFile as t };
23
- //# sourceMappingURL=source-file-CPJOENVo.d.cts.map
23
+ //# sourceMappingURL=source-file-DfP35Z8l.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-file-DfP35Z8l.d.cts","names":[],"sources":["../src/core/components/source-file.tsx"],"mappings":";;;;KAkCY,oBAAkB,kBAC5B;;;;;;;EAOE,OAAO;;;;;;;;iBASK,WAAW,OAAO,6CAAe"}
@@ -0,0 +1,17 @@
1
+ import { r as HCLFileProps } from "./hcl-file-CDeOXiO0.mjs";
2
+ import { PartialKeys } from "@stryke/types/base";
3
+ //#region src/hcl/components/terraform-file.d.ts
4
+ type TerraformFileProps = PartialKeys<HCLFileProps, "filetype">;
5
+ /**
6
+ * A base component representing a Powerlines generated [Terraform](https://developer.hashicorp.com/terraform/language) or [OpenTofu](https://opentofu.org/docs/language/) source file.
7
+ *
8
+ * @see https://developer.hashicorp.com/terraform
9
+ * @see https://opentofu.org
10
+ *
11
+ * @param props - The properties for the source file.
12
+ * @returns The rendered source file component.
13
+ */
14
+ declare function TerraformFile(props: TerraformFileProps): import("@alloy-js/core").Children;
15
+ //#endregion
16
+ export { TerraformFileProps as n, TerraformFile as t };
17
+ //# sourceMappingURL=terraform-file-DS0uAb5z.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"terraform-file-DS0uAb5z.d.mts","names":[],"sources":["../src/hcl/components/terraform-file.tsx"],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import { r as HCLFileProps } from "./hcl-file-CxR4hw4B.cjs";
2
+ import { PartialKeys } from "@stryke/types/base";
3
+ //#region src/hcl/components/terraform-file.d.ts
4
+ type TerraformFileProps = PartialKeys<HCLFileProps, "filetype">;
5
+ /**
6
+ * A base component representing a Powerlines generated [Terraform](https://developer.hashicorp.com/terraform/language) or [OpenTofu](https://opentofu.org/docs/language/) source file.
7
+ *
8
+ * @see https://developer.hashicorp.com/terraform
9
+ * @see https://opentofu.org
10
+ *
11
+ * @param props - The properties for the source file.
12
+ * @returns The rendered source file component.
13
+ */
14
+ declare function TerraformFile(props: TerraformFileProps): import("@alloy-js/core").Children;
15
+ //#endregion
16
+ export { TerraformFileProps as n, TerraformFile as t };
17
+ //# sourceMappingURL=terraform-file-gr1_jJWO.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"terraform-file-gr1_jJWO.d.cts","names":[],"sources":["../src/hcl/components/terraform-file.tsx"],"mappings":";;;KAuBY,qBAAqB,YAAY;;;;;;;;;;iBAW7B,cAAc,OAAO,8CAAkB"}
@@ -0,0 +1,163 @@
1
+ import { t as ComponentProps } from "./components-vJaCHt1A.cjs";
2
+ import { Children } from "@alloy-js/core";
3
+ import { JsonSchemaPrimitiveType } from "@power-plant/schema";
4
+ import { JSDocExampleProps, ParameterDescriptor } from "@alloy-js/typescript";
5
+ //#region src/typescript/components/tsdoc.d.ts
6
+ interface TSDocProps extends ComponentProps {
7
+ heading?: Children;
8
+ }
9
+ /**
10
+ * Generates a TypeScript interface for the given reflection class.
11
+ */
12
+ declare function TSDoc(props: TSDocProps): Children;
13
+ interface TSDocTagProps extends ComponentProps {
14
+ tag: string;
15
+ }
16
+ /**
17
+ * Create a TSDoc `@<props.tag>` tag.
18
+ */
19
+ declare function TSDocTag(props: TSDocTagProps): Children;
20
+ interface TSDocParamsProps {
21
+ parameters: ParameterDescriptor[] | string[];
22
+ }
23
+ /**
24
+ * A component that creates a TSDoc block with `@param` tags for each parameter.
25
+ */
26
+ declare function TSDocParams(props: TSDocParamsProps): Children;
27
+ /**
28
+ * Create a TSDoc `@title` tag.
29
+ */
30
+ declare function TSDocTitle(props: ComponentProps): Children;
31
+ /**
32
+ * Create a TSDoc `@domain` tag.
33
+ */
34
+ declare function TSDocDomain(props: ComponentProps): Children;
35
+ /**
36
+ * Create a TSDoc `@alias` tag.
37
+ */
38
+ declare function TSDocAlias(props: ComponentProps): Children;
39
+ /**
40
+ * Create a TSDoc `@permission` tag.
41
+ */
42
+ declare function TSDocPermission(props: ComponentProps): Children;
43
+ /**
44
+ * Create a TSDoc `@group` tag.
45
+ */
46
+ declare function TSDocGroup(props: ComponentProps): Children;
47
+ interface TSDocDefaultValueProps extends ComponentProps {
48
+ type?: JsonSchemaPrimitiveType | string;
49
+ defaultValue: any;
50
+ }
51
+ /**
52
+ * Create a TSDoc `@defaultValue` tag.
53
+ */
54
+ declare function TSDocDefaultValue(props: TSDocDefaultValueProps): Children;
55
+ /**
56
+ * Create a TSDoc `@remarks` tag.
57
+ */
58
+ declare function TSDocRemarks(props: ComponentProps): Children;
59
+ /**
60
+ * Create a TSDoc `@see` tag.
61
+ */
62
+ declare function TSDocLink(props: ComponentProps): Children;
63
+ interface TSDocExampleProps extends JSDocExampleProps {
64
+ /**
65
+ * Whether the file is a TSX file.
66
+ *
67
+ * @defaultValue false
68
+ */
69
+ tsx?: boolean;
70
+ }
71
+ /**
72
+ * Create a TSDoc `@example` tag.
73
+ */
74
+ declare function TSDocExample(props: TSDocExampleProps): Children;
75
+ /**
76
+ * Create a TSDoc `@readonly` tag.
77
+ */
78
+ declare function TSDocReadonly(): Children;
79
+ /**
80
+ * Create a TSDoc `@internal` tag.
81
+ */
82
+ declare function TSDocInternal(): Children;
83
+ /**
84
+ * Create a TSDoc `@ignore` tag.
85
+ */
86
+ declare function TSDocIgnore(): Children;
87
+ /**
88
+ * Create a TSDoc `@hidden` tag.
89
+ */
90
+ declare function TSDocHidden(): Children;
91
+ /**
92
+ * Create a TSDoc `@runtime` tag.
93
+ */
94
+ declare function TSDocRuntime(): Children;
95
+ interface TSDocAttributesTagsProps {
96
+ type?: JsonSchemaPrimitiveType | string;
97
+ default?: any;
98
+ title?: string;
99
+ alias?: string[];
100
+ tags?: string[];
101
+ readOnly?: boolean;
102
+ internal?: boolean;
103
+ ignore?: boolean;
104
+ hidden?: boolean;
105
+ runtime?: boolean;
106
+ }
107
+ /**
108
+ * Generates a TypeScript interface property for the given reflection class.
109
+ */
110
+ declare function TSDocAttributesTags(props: TSDocAttributesTagsProps): Children;
111
+ interface TSDocParamProps {
112
+ name: Children;
113
+ children?: Children;
114
+ optional?: boolean;
115
+ default?: Children;
116
+ }
117
+ /**
118
+ * Create a TSDoc parameter set off with `@param`.
119
+ */
120
+ declare function TSDocParam(props: TSDocParamProps): Children;
121
+ /**
122
+ * Create a TSDoc `@returns` tag.
123
+ */
124
+ declare function TSDocReturns(props: ComponentProps): Children;
125
+ /**
126
+ * Create a TSDoc `@throws` tag.
127
+ */
128
+ declare function TSDocThrows(props: ComponentProps): Children;
129
+ interface TSDocModuleProps extends ComponentProps {
130
+ /**
131
+ * The prefix for the builtin module name
132
+ *
133
+ * @remarks
134
+ * This value is used to prefix the module name in the `@module` tag and the import path for the module, e.g. `prefix:name`.
135
+ *
136
+ * @example
137
+ * ```ts
138
+ * /**
139
+ * @module prefix:name
140
+ * \/
141
+ * ```
142
+ */
143
+ prefix?: string;
144
+ /**
145
+ * The name of the module
146
+ *
147
+ * @remarks
148
+ * This will be used in the `@module` tag as well as the import path for the module, e.g. `prefix:name`.
149
+ *
150
+ * @example
151
+ * ```ts
152
+ * import { MyModule } from "prefix:name";
153
+ * ```
154
+ */
155
+ name: Children;
156
+ }
157
+ /**
158
+ * Generates a TSDoc `@module` tag for the given module name.
159
+ */
160
+ declare function TSDocModule(props: TSDocModuleProps): Children;
161
+ //#endregion
162
+ export { TSDocTitle as A, TSDocReadonly as C, TSDocTag as D, TSDocRuntime as E, TSDocTagProps as O, TSDocProps as S, TSDocReturns as T, TSDocParam as _, TSDocDefaultValue as a, TSDocParamsProps as b, TSDocExample as c, TSDocHidden as d, TSDocIgnore as f, TSDocModuleProps as g, TSDocModule as h, TSDocAttributesTagsProps as i, TSDocThrows as k, TSDocExampleProps as l, TSDocLink as m, TSDocAlias as n, TSDocDefaultValueProps as o, TSDocInternal as p, TSDocAttributesTags as r, TSDocDomain as s, TSDoc as t, TSDocGroup as u, TSDocParamProps as v, TSDocRemarks as w, TSDocPermission as x, TSDocParams as y };
163
+ //# sourceMappingURL=tsdoc-B6Hw9jOF.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsdoc-B6Hw9jOF.d.cts","names":[],"sources":["../src/typescript/components/tsdoc.tsx"],"mappings":";;;;;UAuCiB,mBAAmB;EAClC,UAAU;;;;;iBAMI,MAAM,OAAO,aAAU;UA6BtB,sBAAsB;EACrC;;;;;iBAMc,SAAS,OAAO,gBAAa;UAgB5B;EACf,YAAY;;;;;iBAME,YAAY,OAAO,mBAAgB;;;;iBA2BnC,WAAW,OAAO,iBAAc;;;;iBAahC,YAAY,OAAO,iBAAc;;;;iBAajC,WAAW,OAAO,iBAAc;;;;iBAahC,gBAAgB,OAAO,iBAAc;;;;iBAarC,WAAW,OAAO,iBAAc;UAU/B,+BAA+B;EAC9C,OAAO;EACP;;;;;iBAMc,kBAAkB,OAAO,yBAAsB;;;;iBAkB/C,aAAa,OAAO,iBAAc;;;;iBAelC,UAAU,OAAO,iBAAc;UAI9B,0BAA0B;;;;;;EAMzC;;;;;iBAMc,aAAa,OAAO,oBAAiB;;;;iBA4BrC,iBAAa;;;;iBAOb,iBAAa;;;;iBAOb,eAAW;;;;iBAOX,eAAW;;;;iBAOX,gBAAY;UAIX;EACf,OAAO;EACP;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;iBAMc,oBAAoB,OAAO,2BAAwB;UA6ElD;EACf,MAAM;EACN,WAAW;EACX;EACA,UAAU;;;;;iBAMI,WAAW,OAAO,kBAAe;;;;iBAiDjC,aAAa,OAAO,iBAAc;;;;iBAOlC,YAAY,OAAO,iBAAc;UAIhC,yBAAyB;;;;;;;;;;;;;;EAcxC;;;;;;;;;;;;EAaA,MAAM;;;;;iBAMQ,YAAY,OAAO,mBAAgB"}
@@ -0,0 +1,163 @@
1
+ import { t as ComponentProps } from "./components-vJaCHt1A.mjs";
2
+ import { Children } from "@alloy-js/core";
3
+ import { JSDocExampleProps, ParameterDescriptor } from "@alloy-js/typescript";
4
+ import { JsonSchemaPrimitiveType } from "@power-plant/schema";
5
+ //#region src/typescript/components/tsdoc.d.ts
6
+ interface TSDocProps extends ComponentProps {
7
+ heading?: Children;
8
+ }
9
+ /**
10
+ * Generates a TypeScript interface for the given reflection class.
11
+ */
12
+ declare function TSDoc(props: TSDocProps): Children;
13
+ interface TSDocTagProps extends ComponentProps {
14
+ tag: string;
15
+ }
16
+ /**
17
+ * Create a TSDoc `@<props.tag>` tag.
18
+ */
19
+ declare function TSDocTag(props: TSDocTagProps): Children;
20
+ interface TSDocParamsProps {
21
+ parameters: ParameterDescriptor[] | string[];
22
+ }
23
+ /**
24
+ * A component that creates a TSDoc block with `@param` tags for each parameter.
25
+ */
26
+ declare function TSDocParams(props: TSDocParamsProps): Children;
27
+ /**
28
+ * Create a TSDoc `@title` tag.
29
+ */
30
+ declare function TSDocTitle(props: ComponentProps): Children;
31
+ /**
32
+ * Create a TSDoc `@domain` tag.
33
+ */
34
+ declare function TSDocDomain(props: ComponentProps): Children;
35
+ /**
36
+ * Create a TSDoc `@alias` tag.
37
+ */
38
+ declare function TSDocAlias(props: ComponentProps): Children;
39
+ /**
40
+ * Create a TSDoc `@permission` tag.
41
+ */
42
+ declare function TSDocPermission(props: ComponentProps): Children;
43
+ /**
44
+ * Create a TSDoc `@group` tag.
45
+ */
46
+ declare function TSDocGroup(props: ComponentProps): Children;
47
+ interface TSDocDefaultValueProps extends ComponentProps {
48
+ type?: JsonSchemaPrimitiveType | string;
49
+ defaultValue: any;
50
+ }
51
+ /**
52
+ * Create a TSDoc `@defaultValue` tag.
53
+ */
54
+ declare function TSDocDefaultValue(props: TSDocDefaultValueProps): Children;
55
+ /**
56
+ * Create a TSDoc `@remarks` tag.
57
+ */
58
+ declare function TSDocRemarks(props: ComponentProps): Children;
59
+ /**
60
+ * Create a TSDoc `@see` tag.
61
+ */
62
+ declare function TSDocLink(props: ComponentProps): Children;
63
+ interface TSDocExampleProps extends JSDocExampleProps {
64
+ /**
65
+ * Whether the file is a TSX file.
66
+ *
67
+ * @defaultValue false
68
+ */
69
+ tsx?: boolean;
70
+ }
71
+ /**
72
+ * Create a TSDoc `@example` tag.
73
+ */
74
+ declare function TSDocExample(props: TSDocExampleProps): Children;
75
+ /**
76
+ * Create a TSDoc `@readonly` tag.
77
+ */
78
+ declare function TSDocReadonly(): Children;
79
+ /**
80
+ * Create a TSDoc `@internal` tag.
81
+ */
82
+ declare function TSDocInternal(): Children;
83
+ /**
84
+ * Create a TSDoc `@ignore` tag.
85
+ */
86
+ declare function TSDocIgnore(): Children;
87
+ /**
88
+ * Create a TSDoc `@hidden` tag.
89
+ */
90
+ declare function TSDocHidden(): Children;
91
+ /**
92
+ * Create a TSDoc `@runtime` tag.
93
+ */
94
+ declare function TSDocRuntime(): Children;
95
+ interface TSDocAttributesTagsProps {
96
+ type?: JsonSchemaPrimitiveType | string;
97
+ default?: any;
98
+ title?: string;
99
+ alias?: string[];
100
+ tags?: string[];
101
+ readOnly?: boolean;
102
+ internal?: boolean;
103
+ ignore?: boolean;
104
+ hidden?: boolean;
105
+ runtime?: boolean;
106
+ }
107
+ /**
108
+ * Generates a TypeScript interface property for the given reflection class.
109
+ */
110
+ declare function TSDocAttributesTags(props: TSDocAttributesTagsProps): Children;
111
+ interface TSDocParamProps {
112
+ name: Children;
113
+ children?: Children;
114
+ optional?: boolean;
115
+ default?: Children;
116
+ }
117
+ /**
118
+ * Create a TSDoc parameter set off with `@param`.
119
+ */
120
+ declare function TSDocParam(props: TSDocParamProps): Children;
121
+ /**
122
+ * Create a TSDoc `@returns` tag.
123
+ */
124
+ declare function TSDocReturns(props: ComponentProps): Children;
125
+ /**
126
+ * Create a TSDoc `@throws` tag.
127
+ */
128
+ declare function TSDocThrows(props: ComponentProps): Children;
129
+ interface TSDocModuleProps extends ComponentProps {
130
+ /**
131
+ * The prefix for the builtin module name
132
+ *
133
+ * @remarks
134
+ * This value is used to prefix the module name in the `@module` tag and the import path for the module, e.g. `prefix:name`.
135
+ *
136
+ * @example
137
+ * ```ts
138
+ * /**
139
+ * @module prefix:name
140
+ * \/
141
+ * ```
142
+ */
143
+ prefix?: string;
144
+ /**
145
+ * The name of the module
146
+ *
147
+ * @remarks
148
+ * This will be used in the `@module` tag as well as the import path for the module, e.g. `prefix:name`.
149
+ *
150
+ * @example
151
+ * ```ts
152
+ * import { MyModule } from "prefix:name";
153
+ * ```
154
+ */
155
+ name: Children;
156
+ }
157
+ /**
158
+ * Generates a TSDoc `@module` tag for the given module name.
159
+ */
160
+ declare function TSDocModule(props: TSDocModuleProps): Children;
161
+ //#endregion
162
+ export { TSDocTitle as A, TSDocReadonly as C, TSDocTag as D, TSDocRuntime as E, TSDocTagProps as O, TSDocProps as S, TSDocReturns as T, TSDocParam as _, TSDocDefaultValue as a, TSDocParamsProps as b, TSDocExample as c, TSDocHidden as d, TSDocIgnore as f, TSDocModuleProps as g, TSDocModule as h, TSDocAttributesTagsProps as i, TSDocThrows as k, TSDocExampleProps as l, TSDocLink as m, TSDocAlias as n, TSDocDefaultValueProps as o, TSDocInternal as p, TSDocAttributesTags as r, TSDocDomain as s, TSDoc as t, TSDocGroup as u, TSDocParamProps as v, TSDocRemarks as w, TSDocPermission as x, TSDocParams as y };
163
+ //# sourceMappingURL=tsdoc-CFdZtTw6.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsdoc-CFdZtTw6.d.mts","names":[],"sources":["../src/typescript/components/tsdoc.tsx"],"mappings":""}
@@ -0,0 +1,21 @@
1
+ import { S as TSDocProps } from "./tsdoc-CFdZtTw6.mjs";
2
+ import { JsonSchema } from "@power-plant/schema";
3
+ //#region src/typescript/components/tsdoc-schema.d.ts
4
+ interface TSDocObjectSchemaProps extends TSDocProps {
5
+ schema: JsonSchema;
6
+ }
7
+ /**
8
+ * Generates a TSDoc documentation block for the given reflection class. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about properties or methods of a class.
9
+ */
10
+ declare function TSDocObjectSchema(props: TSDocObjectSchemaProps): import("@alloy-js/core").Children;
11
+ interface TSDocSchemaPropertyProps extends TSDocProps {
12
+ schema: JsonSchema;
13
+ defaultValue?: unknown;
14
+ }
15
+ /**
16
+ * Generates a TSDoc documentation block for the given reflection property. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about parameters of a method or properties of a class.
17
+ */
18
+ declare function TSDocSchemaProperty(props: TSDocSchemaPropertyProps): import("@alloy-js/core").Children;
19
+ //#endregion
20
+ export { TSDocSchemaPropertyProps as i, TSDocObjectSchemaProps as n, TSDocSchemaProperty as r, TSDocObjectSchema as t };
21
+ //# sourceMappingURL=tsdoc-schema-B4yKswI-.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsdoc-schema-B4yKswI-.d.mts","names":[],"sources":["../src/typescript/components/tsdoc-schema.tsx"],"mappings":""}
@@ -0,0 +1,21 @@
1
+ import { S as TSDocProps } from "./tsdoc-B6Hw9jOF.cjs";
2
+ import { JsonSchema } from "@power-plant/schema";
3
+ //#region src/typescript/components/tsdoc-schema.d.ts
4
+ interface TSDocObjectSchemaProps extends TSDocProps {
5
+ schema: JsonSchema;
6
+ }
7
+ /**
8
+ * Generates a TSDoc documentation block for the given reflection class. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about properties or methods of a class.
9
+ */
10
+ declare function TSDocObjectSchema(props: TSDocObjectSchemaProps): import("@alloy-js/core").Children;
11
+ interface TSDocSchemaPropertyProps extends TSDocProps {
12
+ schema: JsonSchema;
13
+ defaultValue?: unknown;
14
+ }
15
+ /**
16
+ * Generates a TSDoc documentation block for the given reflection property. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about parameters of a method or properties of a class.
17
+ */
18
+ declare function TSDocSchemaProperty(props: TSDocSchemaPropertyProps): import("@alloy-js/core").Children;
19
+ //#endregion
20
+ export { TSDocSchemaPropertyProps as i, TSDocObjectSchemaProps as n, TSDocSchemaProperty as r, TSDocObjectSchema as t };
21
+ //# sourceMappingURL=tsdoc-schema-DJ_3JLuh.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsdoc-schema-DJ_3JLuh.d.cts","names":[],"sources":["../src/typescript/components/tsdoc-schema.tsx"],"mappings":";;;UAmCiB,+BAA+B;EAC9C,QAAQ;;;;;iBAMM,kBAAkB,OAAO,kDAAsB;UA8E9C,iCAAiC;EAChD,QAAQ;EACR;;;;;iBAMc,oBAAoB,OAAO,oDAAwB"}
@@ -0,0 +1,15 @@
1
+ import { CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
2
+ //#region src/typescript/components/type-declaration.d.ts
3
+ interface TypeDeclarationProps extends CommonDeclarationProps {
4
+ /**
5
+ * The generic type parameters of the interface.
6
+ */
7
+ typeParameters?: TypeParameterDescriptor[] | string[];
8
+ }
9
+ /**
10
+ * Renders a TypeScript type declaration, including its name, optional TSDoc comment, and generic type parameters.
11
+ */
12
+ declare const TypeDeclaration: import("@alloy-js/core").Component<TypeDeclarationProps>;
13
+ //#endregion
14
+ export { TypeDeclarationProps as n, TypeDeclaration as t };
15
+ //# sourceMappingURL=type-declaration-BLvkozNR.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-declaration-BLvkozNR.d.cts","names":[],"sources":["../src/typescript/components/type-declaration.tsx"],"mappings":";;UA2BiB,6BAA6B;;;;EAI5C,iBAAiB;;;;;cAMN,0CAAe,UAAA"}
@@ -0,0 +1,15 @@
1
+ import { CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
2
+ //#region src/typescript/components/type-declaration.d.ts
3
+ interface TypeDeclarationProps extends CommonDeclarationProps {
4
+ /**
5
+ * The generic type parameters of the interface.
6
+ */
7
+ typeParameters?: TypeParameterDescriptor[] | string[];
8
+ }
9
+ /**
10
+ * Renders a TypeScript type declaration, including its name, optional TSDoc comment, and generic type parameters.
11
+ */
12
+ declare const TypeDeclaration: import("@alloy-js/core").Component<TypeDeclarationProps>;
13
+ //#endregion
14
+ export { TypeDeclarationProps as n, TypeDeclaration as t };
15
+ //# sourceMappingURL=type-declaration-BLvkozNR.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-declaration-BLvkozNR.d.mts","names":[],"sources":["../src/typescript/components/type-declaration.tsx"],"mappings":""}
@@ -0,0 +1,22 @@
1
+ import { Children } from "@alloy-js/core";
2
+ import { TypeParameterDescriptor } from "@alloy-js/typescript";
3
+ //#region src/typescript/components/type-parameters.d.ts
4
+ /** Props for type parameters */
5
+ interface TypeParametersProps {
6
+ /** Parameters */
7
+ parameters?: TypeParameterDescriptor[] | string[];
8
+ /** Jsx Children */
9
+ children?: Children;
10
+ }
11
+ /**
12
+ * Represent type parameters
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * <A, B extends string>
17
+ * ```
18
+ */
19
+ declare function TypeParameters(props: TypeParametersProps): Children;
20
+ //#endregion
21
+ export { TypeParametersProps as n, TypeParameters as t };
22
+ //# sourceMappingURL=type-parameters-BzCDG9lT.d.cts.map