@powerlines/plugin-alloy 0.26.48 → 0.26.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (377) hide show
  1. package/package.json +6 -6
  2. package/dist/_virtual/_rolldown/runtime.cjs +0 -29
  3. package/dist/core/components/index.cjs +0 -12
  4. package/dist/core/components/index.d.cts +0 -6
  5. package/dist/core/components/index.d.mts +0 -6
  6. package/dist/core/components/index.mjs +0 -7
  7. package/dist/core/components/infrastructure-file.cjs +0 -48
  8. package/dist/core/components/infrastructure-file.d.cts +0 -27
  9. package/dist/core/components/infrastructure-file.d.cts.map +0 -1
  10. package/dist/core/components/infrastructure-file.d.mts +0 -27
  11. package/dist/core/components/infrastructure-file.d.mts.map +0 -1
  12. package/dist/core/components/infrastructure-file.mjs +0 -46
  13. package/dist/core/components/infrastructure-file.mjs.map +0 -1
  14. package/dist/core/components/output.cjs +0 -41
  15. package/dist/core/components/output.d.cts +0 -23
  16. package/dist/core/components/output.d.cts.map +0 -1
  17. package/dist/core/components/output.d.mts +0 -23
  18. package/dist/core/components/output.d.mts.map +0 -1
  19. package/dist/core/components/output.mjs +0 -40
  20. package/dist/core/components/output.mjs.map +0 -1
  21. package/dist/core/components/single-line-comment.cjs +0 -23
  22. package/dist/core/components/single-line-comment.d.cts +0 -21
  23. package/dist/core/components/single-line-comment.d.cts.map +0 -1
  24. package/dist/core/components/single-line-comment.d.mts +0 -21
  25. package/dist/core/components/single-line-comment.d.mts.map +0 -1
  26. package/dist/core/components/single-line-comment.mjs +0 -22
  27. package/dist/core/components/single-line-comment.mjs.map +0 -1
  28. package/dist/core/components/source-file.cjs +0 -64
  29. package/dist/core/components/source-file.d.cts +0 -32
  30. package/dist/core/components/source-file.d.cts.map +0 -1
  31. package/dist/core/components/source-file.d.mts +0 -32
  32. package/dist/core/components/source-file.d.mts.map +0 -1
  33. package/dist/core/components/source-file.mjs +0 -62
  34. package/dist/core/components/source-file.mjs.map +0 -1
  35. package/dist/core/components/spacing.cjs +0 -20
  36. package/dist/core/components/spacing.d.cts +0 -23
  37. package/dist/core/components/spacing.d.cts.map +0 -1
  38. package/dist/core/components/spacing.d.mts +0 -23
  39. package/dist/core/components/spacing.d.mts.map +0 -1
  40. package/dist/core/components/spacing.mjs +0 -19
  41. package/dist/core/components/spacing.mjs.map +0 -1
  42. package/dist/core/contexts/context.cjs +0 -41
  43. package/dist/core/contexts/context.d.cts +0 -29
  44. package/dist/core/contexts/context.d.cts.map +0 -1
  45. package/dist/core/contexts/context.d.mts +0 -29
  46. package/dist/core/contexts/context.d.mts.map +0 -1
  47. package/dist/core/contexts/context.mjs +0 -37
  48. package/dist/core/contexts/context.mjs.map +0 -1
  49. package/dist/core/contexts/index.cjs +0 -22
  50. package/dist/core/contexts/index.d.cts +0 -4
  51. package/dist/core/contexts/index.d.mts +0 -4
  52. package/dist/core/contexts/index.mjs +0 -5
  53. package/dist/core/contexts/meta.cjs +0 -41
  54. package/dist/core/contexts/meta.d.cts +0 -47
  55. package/dist/core/contexts/meta.d.cts.map +0 -1
  56. package/dist/core/contexts/meta.d.mts +0 -47
  57. package/dist/core/contexts/meta.d.mts.map +0 -1
  58. package/dist/core/contexts/meta.mjs +0 -37
  59. package/dist/core/contexts/meta.mjs.map +0 -1
  60. package/dist/core/contexts/reflection.cjs +0 -80
  61. package/dist/core/contexts/reflection.d.cts +0 -62
  62. package/dist/core/contexts/reflection.d.cts.map +0 -1
  63. package/dist/core/contexts/reflection.d.mts +0 -62
  64. package/dist/core/contexts/reflection.d.mts.map +0 -1
  65. package/dist/core/contexts/reflection.mjs +0 -71
  66. package/dist/core/contexts/reflection.mjs.map +0 -1
  67. package/dist/core/helpers/code.cjs +0 -34
  68. package/dist/core/helpers/code.d.cts +0 -29
  69. package/dist/core/helpers/code.d.cts.map +0 -1
  70. package/dist/core/helpers/code.d.mts +0 -29
  71. package/dist/core/helpers/code.d.mts.map +0 -1
  72. package/dist/core/helpers/code.mjs +0 -33
  73. package/dist/core/helpers/code.mjs.map +0 -1
  74. package/dist/core/helpers/index.cjs +0 -4
  75. package/dist/core/helpers/index.d.cts +0 -2
  76. package/dist/core/helpers/index.d.mts +0 -2
  77. package/dist/core/helpers/index.mjs +0 -3
  78. package/dist/core/index.cjs +0 -37
  79. package/dist/core/index.d.cts +0 -10
  80. package/dist/core/index.d.mts +0 -10
  81. package/dist/core/index.mjs +0 -14
  82. package/dist/hcl/components/block-declaration.cjs +0 -34
  83. package/dist/hcl/components/block-declaration.d.cts +0 -21
  84. package/dist/hcl/components/block-declaration.d.cts.map +0 -1
  85. package/dist/hcl/components/block-declaration.d.mts +0 -21
  86. package/dist/hcl/components/block-declaration.d.mts.map +0 -1
  87. package/dist/hcl/components/block-declaration.mjs +0 -33
  88. package/dist/hcl/components/block-declaration.mjs.map +0 -1
  89. package/dist/hcl/components/hcl-file.cjs +0 -83
  90. package/dist/hcl/components/hcl-file.d.cts +0 -26
  91. package/dist/hcl/components/hcl-file.d.cts.map +0 -1
  92. package/dist/hcl/components/hcl-file.d.mts +0 -26
  93. package/dist/hcl/components/hcl-file.d.mts.map +0 -1
  94. package/dist/hcl/components/hcl-file.mjs +0 -81
  95. package/dist/hcl/components/hcl-file.mjs.map +0 -1
  96. package/dist/hcl/components/index.cjs +0 -11
  97. package/dist/hcl/components/index.d.cts +0 -5
  98. package/dist/hcl/components/index.d.mts +0 -5
  99. package/dist/hcl/components/index.mjs +0 -6
  100. package/dist/hcl/components/packer-file.cjs +0 -29
  101. package/dist/hcl/components/packer-file.d.cts +0 -18
  102. package/dist/hcl/components/packer-file.d.cts.map +0 -1
  103. package/dist/hcl/components/packer-file.d.mts +0 -18
  104. package/dist/hcl/components/packer-file.d.mts.map +0 -1
  105. package/dist/hcl/components/packer-file.mjs +0 -28
  106. package/dist/hcl/components/packer-file.mjs.map +0 -1
  107. package/dist/hcl/components/terraform-file.cjs +0 -30
  108. package/dist/hcl/components/terraform-file.d.cts +0 -19
  109. package/dist/hcl/components/terraform-file.d.cts.map +0 -1
  110. package/dist/hcl/components/terraform-file.d.mts +0 -19
  111. package/dist/hcl/components/terraform-file.d.mts.map +0 -1
  112. package/dist/hcl/components/terraform-file.mjs +0 -29
  113. package/dist/hcl/components/terraform-file.mjs.map +0 -1
  114. package/dist/hcl/index.cjs +0 -12
  115. package/dist/hcl/index.d.cts +0 -5
  116. package/dist/hcl/index.d.mts +0 -5
  117. package/dist/hcl/index.mjs +0 -7
  118. package/dist/helpers/capnp.cjs +0 -277
  119. package/dist/helpers/capnp.d.cts +0 -83
  120. package/dist/helpers/capnp.d.cts.map +0 -1
  121. package/dist/helpers/capnp.d.mts +0 -83
  122. package/dist/helpers/capnp.d.mts.map +0 -1
  123. package/dist/helpers/capnp.mjs +0 -260
  124. package/dist/helpers/capnp.mjs.map +0 -1
  125. package/dist/helpers/create-builtin.cjs +0 -20
  126. package/dist/helpers/create-builtin.d.cts +0 -15
  127. package/dist/helpers/create-builtin.d.cts.map +0 -1
  128. package/dist/helpers/create-builtin.d.mts +0 -15
  129. package/dist/helpers/create-builtin.d.mts.map +0 -1
  130. package/dist/helpers/create-builtin.mjs +0 -19
  131. package/dist/helpers/create-builtin.mjs.map +0 -1
  132. package/dist/helpers/index.cjs +0 -25
  133. package/dist/helpers/index.d.cts +0 -5
  134. package/dist/helpers/index.d.mts +0 -5
  135. package/dist/helpers/index.mjs +0 -6
  136. package/dist/helpers/refkey.cjs +0 -17
  137. package/dist/helpers/refkey.d.cts +0 -13
  138. package/dist/helpers/refkey.d.cts.map +0 -1
  139. package/dist/helpers/refkey.d.mts +0 -13
  140. package/dist/helpers/refkey.d.mts.map +0 -1
  141. package/dist/helpers/refkey.mjs +0 -16
  142. package/dist/helpers/refkey.mjs.map +0 -1
  143. package/dist/helpers/typescript.cjs +0 -48
  144. package/dist/helpers/typescript.d.cts +0 -24
  145. package/dist/helpers/typescript.d.cts.map +0 -1
  146. package/dist/helpers/typescript.d.mts +0 -24
  147. package/dist/helpers/typescript.d.mts.map +0 -1
  148. package/dist/helpers/typescript.mjs +0 -47
  149. package/dist/helpers/typescript.mjs.map +0 -1
  150. package/dist/index.cjs +0 -55
  151. package/dist/index.d.cts +0 -19
  152. package/dist/index.d.cts.map +0 -1
  153. package/dist/index.d.mts +0 -19
  154. package/dist/index.d.mts.map +0 -1
  155. package/dist/index.mjs +0 -52
  156. package/dist/index.mjs.map +0 -1
  157. package/dist/markdown/components/front-matter.cjs +0 -29
  158. package/dist/markdown/components/front-matter.d.cts +0 -15
  159. package/dist/markdown/components/front-matter.d.cts.map +0 -1
  160. package/dist/markdown/components/front-matter.d.mts +0 -15
  161. package/dist/markdown/components/front-matter.d.mts.map +0 -1
  162. package/dist/markdown/components/front-matter.mjs +0 -28
  163. package/dist/markdown/components/front-matter.mjs.map +0 -1
  164. package/dist/markdown/components/heading.cjs +0 -24
  165. package/dist/markdown/components/heading.d.cts +0 -19
  166. package/dist/markdown/components/heading.d.cts.map +0 -1
  167. package/dist/markdown/components/heading.d.mts +0 -19
  168. package/dist/markdown/components/heading.d.mts.map +0 -1
  169. package/dist/markdown/components/heading.mjs +0 -23
  170. package/dist/markdown/components/heading.mjs.map +0 -1
  171. package/dist/markdown/components/index.cjs +0 -13
  172. package/dist/markdown/components/index.d.cts +0 -5
  173. package/dist/markdown/components/index.d.mts +0 -5
  174. package/dist/markdown/components/index.mjs +0 -6
  175. package/dist/markdown/components/markdown-file.cjs +0 -135
  176. package/dist/markdown/components/markdown-file.d.cts +0 -27
  177. package/dist/markdown/components/markdown-file.d.cts.map +0 -1
  178. package/dist/markdown/components/markdown-file.d.mts +0 -27
  179. package/dist/markdown/components/markdown-file.d.mts.map +0 -1
  180. package/dist/markdown/components/markdown-file.mjs +0 -133
  181. package/dist/markdown/components/markdown-file.mjs.map +0 -1
  182. package/dist/markdown/components/markdown-table.cjs +0 -102
  183. package/dist/markdown/components/markdown-table.d.cts +0 -26
  184. package/dist/markdown/components/markdown-table.d.cts.map +0 -1
  185. package/dist/markdown/components/markdown-table.d.mts +0 -26
  186. package/dist/markdown/components/markdown-table.d.mts.map +0 -1
  187. package/dist/markdown/components/markdown-table.mjs +0 -99
  188. package/dist/markdown/components/markdown-table.mjs.map +0 -1
  189. package/dist/markdown/contexts/index.cjs +0 -7
  190. package/dist/markdown/contexts/index.d.cts +0 -2
  191. package/dist/markdown/contexts/index.d.mts +0 -2
  192. package/dist/markdown/contexts/index.mjs +0 -3
  193. package/dist/markdown/contexts/markdown-table.cjs +0 -38
  194. package/dist/markdown/contexts/markdown-table.d.cts +0 -36
  195. package/dist/markdown/contexts/markdown-table.d.cts.map +0 -1
  196. package/dist/markdown/contexts/markdown-table.d.mts +0 -36
  197. package/dist/markdown/contexts/markdown-table.d.mts.map +0 -1
  198. package/dist/markdown/contexts/markdown-table.mjs +0 -34
  199. package/dist/markdown/contexts/markdown-table.mjs.map +0 -1
  200. package/dist/markdown/index.cjs +0 -20
  201. package/dist/markdown/index.d.cts +0 -6
  202. package/dist/markdown/index.d.mts +0 -6
  203. package/dist/markdown/index.mjs +0 -9
  204. package/dist/render.cjs +0 -91
  205. package/dist/render.d.cts +0 -38
  206. package/dist/render.d.cts.map +0 -1
  207. package/dist/render.d.mts +0 -38
  208. package/dist/render.d.mts.map +0 -1
  209. package/dist/render.mjs +0 -89
  210. package/dist/render.mjs.map +0 -1
  211. package/dist/types/components.cjs +0 -9
  212. package/dist/types/components.d.cts +0 -126
  213. package/dist/types/components.d.cts.map +0 -1
  214. package/dist/types/components.d.mts +0 -126
  215. package/dist/types/components.d.mts.map +0 -1
  216. package/dist/types/components.mjs +0 -10
  217. package/dist/types/components.mjs.map +0 -1
  218. package/dist/types/index.cjs +0 -0
  219. package/dist/types/index.d.cts +0 -3
  220. package/dist/types/index.d.mts +0 -3
  221. package/dist/types/index.mjs +0 -1
  222. package/dist/types/plugin.cjs +0 -0
  223. package/dist/types/plugin.d.cts +0 -35
  224. package/dist/types/plugin.d.cts.map +0 -1
  225. package/dist/types/plugin.d.mts +0 -35
  226. package/dist/types/plugin.d.mts.map +0 -1
  227. package/dist/types/plugin.mjs +0 -1
  228. package/dist/typescript/components/builtin-file.cjs +0 -63
  229. package/dist/typescript/components/builtin-file.d.cts +0 -34
  230. package/dist/typescript/components/builtin-file.d.cts.map +0 -1
  231. package/dist/typescript/components/builtin-file.d.mts +0 -34
  232. package/dist/typescript/components/builtin-file.d.mts.map +0 -1
  233. package/dist/typescript/components/builtin-file.mjs +0 -62
  234. package/dist/typescript/components/builtin-file.mjs.map +0 -1
  235. package/dist/typescript/components/class-declaration.cjs +0 -306
  236. package/dist/typescript/components/class-declaration.d.cts +0 -140
  237. package/dist/typescript/components/class-declaration.d.cts.map +0 -1
  238. package/dist/typescript/components/class-declaration.d.mts +0 -140
  239. package/dist/typescript/components/class-declaration.d.mts.map +0 -1
  240. package/dist/typescript/components/class-declaration.mjs +0 -300
  241. package/dist/typescript/components/class-declaration.mjs.map +0 -1
  242. package/dist/typescript/components/dynamic-import-statement.cjs +0 -26
  243. package/dist/typescript/components/dynamic-import-statement.d.cts +0 -32
  244. package/dist/typescript/components/dynamic-import-statement.d.cts.map +0 -1
  245. package/dist/typescript/components/dynamic-import-statement.d.mts +0 -32
  246. package/dist/typescript/components/dynamic-import-statement.d.mts.map +0 -1
  247. package/dist/typescript/components/dynamic-import-statement.mjs +0 -25
  248. package/dist/typescript/components/dynamic-import-statement.mjs.map +0 -1
  249. package/dist/typescript/components/entry-file.cjs +0 -43
  250. package/dist/typescript/components/entry-file.d.cts +0 -27
  251. package/dist/typescript/components/entry-file.d.cts.map +0 -1
  252. package/dist/typescript/components/entry-file.d.mts +0 -27
  253. package/dist/typescript/components/entry-file.d.mts.map +0 -1
  254. package/dist/typescript/components/entry-file.mjs +0 -41
  255. package/dist/typescript/components/entry-file.mjs.map +0 -1
  256. package/dist/typescript/components/index.cjs +0 -64
  257. package/dist/typescript/components/index.d.cts +0 -14
  258. package/dist/typescript/components/index.d.mts +0 -14
  259. package/dist/typescript/components/index.mjs +0 -15
  260. package/dist/typescript/components/interface-declaration.cjs +0 -239
  261. package/dist/typescript/components/interface-declaration.d.cts +0 -80
  262. package/dist/typescript/components/interface-declaration.d.cts.map +0 -1
  263. package/dist/typescript/components/interface-declaration.d.mts +0 -80
  264. package/dist/typescript/components/interface-declaration.d.mts.map +0 -1
  265. package/dist/typescript/components/interface-declaration.mjs +0 -235
  266. package/dist/typescript/components/interface-declaration.mjs.map +0 -1
  267. package/dist/typescript/components/object-declaration.cjs +0 -139
  268. package/dist/typescript/components/object-declaration.d.cts +0 -28
  269. package/dist/typescript/components/object-declaration.d.cts.map +0 -1
  270. package/dist/typescript/components/object-declaration.d.mts +0 -28
  271. package/dist/typescript/components/object-declaration.d.mts.map +0 -1
  272. package/dist/typescript/components/object-declaration.mjs +0 -137
  273. package/dist/typescript/components/object-declaration.mjs.map +0 -1
  274. package/dist/typescript/components/property-name.cjs +0 -32
  275. package/dist/typescript/components/property-name.d.cts +0 -23
  276. package/dist/typescript/components/property-name.d.cts.map +0 -1
  277. package/dist/typescript/components/property-name.d.mts +0 -23
  278. package/dist/typescript/components/property-name.d.mts.map +0 -1
  279. package/dist/typescript/components/property-name.mjs +0 -31
  280. package/dist/typescript/components/property-name.mjs.map +0 -1
  281. package/dist/typescript/components/record-expression.cjs +0 -13
  282. package/dist/typescript/components/record-expression.d.cts +0 -12
  283. package/dist/typescript/components/record-expression.d.cts.map +0 -1
  284. package/dist/typescript/components/record-expression.d.mts +0 -12
  285. package/dist/typescript/components/record-expression.d.mts.map +0 -1
  286. package/dist/typescript/components/record-expression.mjs +0 -12
  287. package/dist/typescript/components/record-expression.mjs.map +0 -1
  288. package/dist/typescript/components/tsdoc-reflection.cjs +0 -331
  289. package/dist/typescript/components/tsdoc-reflection.d.cts +0 -42
  290. package/dist/typescript/components/tsdoc-reflection.d.cts.map +0 -1
  291. package/dist/typescript/components/tsdoc-reflection.d.mts +0 -42
  292. package/dist/typescript/components/tsdoc-reflection.d.mts.map +0 -1
  293. package/dist/typescript/components/tsdoc-reflection.mjs +0 -325
  294. package/dist/typescript/components/tsdoc-reflection.mjs.map +0 -1
  295. package/dist/typescript/components/tsdoc.cjs +0 -497
  296. package/dist/typescript/components/tsdoc.d.cts +0 -161
  297. package/dist/typescript/components/tsdoc.d.cts.map +0 -1
  298. package/dist/typescript/components/tsdoc.d.mts +0 -161
  299. package/dist/typescript/components/tsdoc.d.mts.map +0 -1
  300. package/dist/typescript/components/tsdoc.mjs +0 -476
  301. package/dist/typescript/components/tsdoc.mjs.map +0 -1
  302. package/dist/typescript/components/type-declaration.cjs +0 -39
  303. package/dist/typescript/components/type-declaration.d.cts +0 -17
  304. package/dist/typescript/components/type-declaration.d.cts.map +0 -1
  305. package/dist/typescript/components/type-declaration.d.mts +0 -17
  306. package/dist/typescript/components/type-declaration.d.mts.map +0 -1
  307. package/dist/typescript/components/type-declaration.mjs +0 -38
  308. package/dist/typescript/components/type-declaration.mjs.map +0 -1
  309. package/dist/typescript/components/type-parameters.cjs +0 -83
  310. package/dist/typescript/components/type-parameters.d.cts +0 -23
  311. package/dist/typescript/components/type-parameters.d.cts.map +0 -1
  312. package/dist/typescript/components/type-parameters.d.mts +0 -23
  313. package/dist/typescript/components/type-parameters.d.mts.map +0 -1
  314. package/dist/typescript/components/type-parameters.mjs +0 -82
  315. package/dist/typescript/components/type-parameters.mjs.map +0 -1
  316. package/dist/typescript/components/typescript-file.cjs +0 -221
  317. package/dist/typescript/components/typescript-file.d.cts +0 -47
  318. package/dist/typescript/components/typescript-file.d.cts.map +0 -1
  319. package/dist/typescript/components/typescript-file.d.mts +0 -47
  320. package/dist/typescript/components/typescript-file.d.mts.map +0 -1
  321. package/dist/typescript/components/typescript-file.mjs +0 -218
  322. package/dist/typescript/components/typescript-file.mjs.map +0 -1
  323. package/dist/typescript/contexts/index.cjs +0 -4
  324. package/dist/typescript/contexts/index.d.cts +0 -2
  325. package/dist/typescript/contexts/index.d.mts +0 -2
  326. package/dist/typescript/contexts/index.mjs +0 -3
  327. package/dist/typescript/contexts/lexical-scope.cjs +0 -26
  328. package/dist/typescript/contexts/lexical-scope.d.cts +0 -14
  329. package/dist/typescript/contexts/lexical-scope.d.cts.map +0 -1
  330. package/dist/typescript/contexts/lexical-scope.d.mts +0 -14
  331. package/dist/typescript/contexts/lexical-scope.d.mts.map +0 -1
  332. package/dist/typescript/contexts/lexical-scope.mjs +0 -25
  333. package/dist/typescript/contexts/lexical-scope.mjs.map +0 -1
  334. package/dist/typescript/contexts/member-scope.cjs +0 -24
  335. package/dist/typescript/contexts/member-scope.d.cts +0 -19
  336. package/dist/typescript/contexts/member-scope.d.cts.map +0 -1
  337. package/dist/typescript/contexts/member-scope.d.mts +0 -19
  338. package/dist/typescript/contexts/member-scope.d.mts.map +0 -1
  339. package/dist/typescript/contexts/member-scope.mjs +0 -23
  340. package/dist/typescript/contexts/member-scope.mjs.map +0 -1
  341. package/dist/typescript/helpers/get-call-signature-props.cjs +0 -26
  342. package/dist/typescript/helpers/get-call-signature-props.d.cts +0 -14
  343. package/dist/typescript/helpers/get-call-signature-props.d.cts.map +0 -1
  344. package/dist/typescript/helpers/get-call-signature-props.d.mts +0 -14
  345. package/dist/typescript/helpers/get-call-signature-props.d.mts.map +0 -1
  346. package/dist/typescript/helpers/get-call-signature-props.mjs +0 -25
  347. package/dist/typescript/helpers/get-call-signature-props.mjs.map +0 -1
  348. package/dist/typescript/helpers/index.cjs +0 -6
  349. package/dist/typescript/helpers/index.d.cts +0 -3
  350. package/dist/typescript/helpers/index.d.mts +0 -3
  351. package/dist/typescript/helpers/index.mjs +0 -4
  352. package/dist/typescript/helpers/utilities.cjs +0 -15
  353. package/dist/typescript/helpers/utilities.d.cts +0 -11
  354. package/dist/typescript/helpers/utilities.d.cts.map +0 -1
  355. package/dist/typescript/helpers/utilities.d.mts +0 -11
  356. package/dist/typescript/helpers/utilities.d.mts.map +0 -1
  357. package/dist/typescript/helpers/utilities.mjs +0 -14
  358. package/dist/typescript/helpers/utilities.mjs.map +0 -1
  359. package/dist/typescript/index.cjs +0 -73
  360. package/dist/typescript/index.d.cts +0 -17
  361. package/dist/typescript/index.d.mts +0 -17
  362. package/dist/typescript/index.mjs +0 -21
  363. package/dist/yaml/components/index.cjs +0 -5
  364. package/dist/yaml/components/index.d.cts +0 -2
  365. package/dist/yaml/components/index.d.mts +0 -2
  366. package/dist/yaml/components/index.mjs +0 -3
  367. package/dist/yaml/components/yaml-file.cjs +0 -149
  368. package/dist/yaml/components/yaml-file.d.cts +0 -32
  369. package/dist/yaml/components/yaml-file.d.cts.map +0 -1
  370. package/dist/yaml/components/yaml-file.d.mts +0 -32
  371. package/dist/yaml/components/yaml-file.d.mts.map +0 -1
  372. package/dist/yaml/components/yaml-file.mjs +0 -147
  373. package/dist/yaml/components/yaml-file.mjs.map +0 -1
  374. package/dist/yaml/index.cjs +0 -6
  375. package/dist/yaml/index.d.cts +0 -2
  376. package/dist/yaml/index.d.mts +0 -2
  377. package/dist/yaml/index.mjs +0 -4
@@ -1,126 +0,0 @@
1
- import { Children, Context } from "@alloy-js/core";
2
- import { SourceFileContext as SourceFileContext$1 } from "@alloy-js/typescript";
3
- import { ResolvedEntryTypeDefinition, StoragePreset } from "powerlines";
4
-
5
- //#region src/types/components.d.ts
6
- interface CopyOutputFile {
7
- kind: "file";
8
- path: string;
9
- sourcePath: string;
10
- /**
11
- * The format of the output files
12
- *
13
- * @remarks
14
- * If not specified, the output mode will be determined by the provided \`output.mode\` value.
15
- */
16
- preset?: StoragePreset;
17
- }
18
- interface WriteOutputFile {
19
- kind: "file" | "entry" | "builtin";
20
- path: string;
21
- contents: string;
22
- filetype: string;
23
- /**
24
- * The format of the output files
25
- *
26
- * @remarks
27
- * If not specified, the output mode will be determined by the provided \`output.mode\` value.
28
- */
29
- preset?: StoragePreset;
30
- }
31
- type OutputFile = (WriteOutputFile & {
32
- kind: "file";
33
- }) | (WriteOutputFile & {
34
- kind: "entry";
35
- typeDefinition?: ResolvedEntryTypeDefinition;
36
- }) | (WriteOutputFile & {
37
- kind: "builtin";
38
- id: string;
39
- }) | CopyOutputFile;
40
- interface OutputDirectory {
41
- kind: "directory";
42
- path: string;
43
- contents: (OutputDirectory | OutputFile)[];
44
- }
45
- interface RenderEntryContext {
46
- typeDefinition: ResolvedEntryTypeDefinition;
47
- }
48
- interface RenderBuiltinContext {
49
- id: string;
50
- }
51
- interface RenderOutputContext {
52
- mode?: StoragePreset;
53
- }
54
- interface CopyFileOutputContext {
55
- path?: string;
56
- sourcePath?: string;
57
- }
58
- interface RenderContext extends Context {
59
- meta?: {
60
- copyFile?: CopyFileOutputContext;
61
- /**
62
- * The current context for the built-in module.
63
- */
64
- builtin?: RenderBuiltinContext;
65
- /**
66
- * The current context for the application entrypoint file being rendered.
67
- */
68
- entry?: RenderEntryContext;
69
- /**
70
- * The current context for output rendering.
71
- */
72
- output?: RenderOutputContext;
73
- } & Record<string, any>;
74
- }
75
- /**
76
- * A type that represents the props of a component that can have children.
77
- */
78
- interface ComponentProps {
79
- children?: Children;
80
- }
81
- /**
82
- * A type that requires the `children` prop in a component.
83
- */
84
- type ComponentPropsWithChildren = Omit<ComponentProps, "children"> & Required<Pick<ComponentProps, "children">>;
85
- interface BuiltinSourceFileContext extends SourceFileContext$1 {
86
- /**
87
- * The runtime module identifier.
88
- */
89
- id: string;
90
- }
91
- interface ReflectionOverrideInterface<T> {
92
- name?: string | Children;
93
- type?: string | Children;
94
- extends?: string | false;
95
- defaultValue?: Partial<T>;
96
- }
97
- interface TypescriptFileImportItem {
98
- name: string;
99
- default?: boolean;
100
- alias?: string;
101
- type?: boolean;
102
- }
103
- type TypescriptFileImports = Record<string, null | string | Array<TypescriptFileImportItem | string>>;
104
- interface SourceFileHeaderProps extends ComponentProps {
105
- /**
106
- * If true, disables the ESLint directive at the top of the file.
107
- *
108
- * @defaultValue true
109
- */
110
- disableEslint?: boolean;
111
- /**
112
- * If true, disables the Biome directive at the top of the file.
113
- *
114
- * @defaultValue true
115
- */
116
- disableBiome?: boolean;
117
- /**
118
- * If true, disables the Prettier directive at the top of the file.
119
- *
120
- * @defaultValue false
121
- */
122
- disablePrettier?: boolean;
123
- }
124
- //#endregion
125
- export { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile };
126
- //# sourceMappingURL=components.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"components.d.mts","names":[],"sources":["../../src/types/components.ts"],"mappings":";;;;;UAsBiB,cAAA;EACf,IAAA;EACA,IAAA;EACA,UAAA;;;;;;;EAQA,MAAA,GAAS,aAAA;AAAA;AAAA,UAGM,eAAA;EACf,IAAA;EACA,IAAA;EACA,QAAA;EACA,QAAA;EAHA;;;;;;EAWA,MAAA,GAAS,aAAA;AAAA;AAAA,KAGC,UAAA,IACP,eAAA;EAAoB,IAAA;AAAA,MACpB,eAAA;EACC,IAAA;EACA,cAAA,GAAiB,2BAAA;AAAA,MAElB,eAAA;EAAoB,IAAA;EAAiB,EAAA;AAAA,KACtC,cAAA;AAAA,UAEa,eAAA;EACf,IAAA;EACA,IAAA;EACA,QAAA,GAAW,eAAA,GAAkB,UAAA;AAAA;AAAA,UAGd,kBAAA;EACf,cAAA,EAAgB,2BAAA;AAAA;AAAA,UAGD,oBAAA;EACf,EAAA;AAAA;AAAA,UAGe,mBAAA;EACf,IAAA,GAAO,aAAA;AAAA;AAAA,UAGQ,qBAAA;EACf,IAAA;EACA,UAAA;AAAA;AAAA,UAGe,aAAA,SAAsB,OAAA;EACrC,IAAA;IACE,QAAA,GAAW,qBAAA;IAtBgB;;;IA2B3B,OAAA,GAAU,oBAAA;IAxBqB;;;IA6B/B,KAAA,GAAQ,kBAAA;IAzBK;;;IA8Bb,MAAA,GAAS,mBAAA;EAAA,IACP,MAAA;AAAA;;;;UAMW,cAAA;EACf,QAAA,GAAW,QAAA;AAAA;;;;KAMD,0BAAA,GAA6B,IAAA,CAAK,cAAA,gBAC5C,QAAA,CAAS,IAAA,CAAK,cAAA;AAAA,UAEC,wBAAA,SAAiC,mBAAA;;;;EAIhD,EAAA;AAAA;AAAA,UAGe,2BAAA;EACf,IAAA,YAAgB,QAAA;EAChB,IAAA,YAAgB,QAAA;EAChB,OAAA;EACA,YAAA,GAAe,OAAA,CAAQ,CAAA;AAAA;AAAA,UAGR,wBAAA;EACf,IAAA;EACA,OAAA;EACA,KAAA;EACA,IAAA;AAAA;AAAA,KAGU,qBAAA,GAAwB,MAAA,yBAElB,KAAA,CAAM,wBAAA;AAAA,UAGP,qBAAA,SAA8B,cAAA;EA1CzC;;;AAMN;;EA0CE,aAAA;EAzCA;;AAMF;;;EA0CE,YAAA;EA1CuC;;;;;EAiDvC,eAAA;AAAA"}
@@ -1,10 +0,0 @@
1
- //#region src/types/components.ts
2
- /**
3
- * A type that represents the props of a component that can have children.
4
- */
5
- /**
6
- * A type that requires the `children` prop in a component.
7
- */
8
- //#endregion
9
- export { };
10
- //# sourceMappingURL=components.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"components.mjs","names":[],"sources":["../../src/types/components.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Children, Context } from \"@alloy-js/core\";\nimport type { SourceFileContext } from \"@alloy-js/typescript\";\nimport { ResolvedEntryTypeDefinition, StoragePreset } from \"powerlines\";\n\nexport interface CopyOutputFile {\n kind: \"file\";\n path: string;\n sourcePath: string;\n\n /**\n * The format of the output files\n *\n * @remarks\n * If not specified, the output mode will be determined by the provided \\`output.mode\\` value.\n */\n preset?: StoragePreset;\n}\n\nexport interface WriteOutputFile {\n kind: \"file\" | \"entry\" | \"builtin\";\n path: string;\n contents: string;\n filetype: string;\n\n /**\n * The format of the output files\n *\n * @remarks\n * If not specified, the output mode will be determined by the provided \\`output.mode\\` value.\n */\n preset?: StoragePreset;\n}\n\nexport type OutputFile =\n | (WriteOutputFile & { kind: \"file\" })\n | (WriteOutputFile & {\n kind: \"entry\";\n typeDefinition?: ResolvedEntryTypeDefinition;\n })\n | (WriteOutputFile & { kind: \"builtin\"; id: string })\n | CopyOutputFile;\n\nexport interface OutputDirectory {\n kind: \"directory\";\n path: string;\n contents: (OutputDirectory | OutputFile)[];\n}\n\nexport interface RenderEntryContext {\n typeDefinition: ResolvedEntryTypeDefinition;\n}\n\nexport interface RenderBuiltinContext {\n id: string;\n}\n\nexport interface RenderOutputContext {\n mode?: StoragePreset;\n}\n\nexport interface CopyFileOutputContext {\n path?: string;\n sourcePath?: string;\n}\n\nexport interface RenderContext extends Context {\n meta?: {\n copyFile?: CopyFileOutputContext;\n\n /**\n * The current context for the built-in module.\n */\n builtin?: RenderBuiltinContext;\n\n /**\n * The current context for the application entrypoint file being rendered.\n */\n entry?: RenderEntryContext;\n\n /**\n * The current context for output rendering.\n */\n output?: RenderOutputContext;\n } & Record<string, any>;\n}\n\n/**\n * A type that represents the props of a component that can have children.\n */\nexport interface ComponentProps {\n children?: Children;\n}\n\n/**\n * A type that requires the `children` prop in a component.\n */\nexport type ComponentPropsWithChildren = Omit<ComponentProps, \"children\"> &\n Required<Pick<ComponentProps, \"children\">>;\n\nexport interface BuiltinSourceFileContext extends SourceFileContext {\n /**\n * The runtime module identifier.\n */\n id: string;\n}\n\nexport interface ReflectionOverrideInterface<T> {\n name?: string | Children;\n type?: string | Children;\n extends?: string | false;\n defaultValue?: Partial<T>;\n}\n\nexport interface TypescriptFileImportItem {\n name: string;\n default?: boolean;\n alias?: string;\n type?: boolean;\n}\n\nexport type TypescriptFileImports = Record<\n string,\n null | string | Array<TypescriptFileImportItem | string>\n>;\n\nexport interface SourceFileHeaderProps extends ComponentProps {\n /**\n * If true, disables the ESLint directive at the top of the file.\n *\n * @defaultValue true\n */\n disableEslint?: boolean;\n\n /**\n * If true, disables the Biome directive at the top of the file.\n *\n * @defaultValue true\n */\n disableBiome?: boolean;\n\n /**\n * If true, disables the Prettier directive at the top of the file.\n *\n * @defaultValue false\n */\n disablePrettier?: boolean;\n}\n"],"mappings":""}
File without changes
@@ -1,3 +0,0 @@
1
- import { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile } from "./components.cjs";
2
- import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "./plugin.cjs";
3
- export { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile };
@@ -1,3 +0,0 @@
1
- import { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile } from "./components.mjs";
2
- import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "./plugin.mjs";
3
- export { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile };
@@ -1 +0,0 @@
1
- export { };
File without changes
@@ -1,35 +0,0 @@
1
- import { PrintTreeOptions } from "@alloy-js/core";
2
- import { PluginContext } from "powerlines";
3
- import { BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types/plugin";
4
-
5
- //#region src/types/plugin.d.ts
6
- type AlloyPluginOptions = Partial<PrintTreeOptions> & {
7
- /**
8
- * If true, the Alloy framework is used to generate Typescript output files.
9
- *
10
- * @defaultValue true
11
- */
12
- typescript?: boolean;
13
- /**
14
- * If true, the Alloy framework is used to generate JSON output files.
15
- *
16
- * @defaultValue false
17
- */
18
- json?: boolean;
19
- /**
20
- * If true, the Alloy framework is used to generate Markdown output files.
21
- *
22
- * @defaultValue false
23
- */
24
- markdown?: boolean;
25
- };
26
- type AlloyPluginUserConfig = BabelPluginUserConfig & {
27
- alloy?: AlloyPluginOptions;
28
- };
29
- type AlloyPluginResolvedConfig = BabelPluginResolvedConfig & {
30
- alloy: AlloyPluginOptions;
31
- };
32
- type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig>;
33
- //#endregion
34
- export { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig };
35
- //# sourceMappingURL=plugin.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;KAyBY,kBAAA,GAAqB,OAAA,CAAQ,gBAAA;;AAAzC;;;;EAME,UAAA;EANuC;;;;;EAavC,IAAA;EAUU;;;;;EAHV,QAAA;AAAA;AAAA,KAGU,qBAAA,GAAwB,qBAAA;EAClC,KAAA,GAAQ,kBAAA;AAAA;AAAA,KAGE,yBAAA,GAA4B,yBAAA;EACtC,KAAA,EAAO,kBAAA;AAAA;AAAA,KAGG,kBAAA,yBACc,yBAAA,GAA4B,yBAAA,IAClD,aAAA,CAAc,eAAA"}
@@ -1,35 +0,0 @@
1
- import { PrintTreeOptions } from "@alloy-js/core";
2
- import { PluginContext } from "powerlines";
3
- import { BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types/plugin";
4
-
5
- //#region src/types/plugin.d.ts
6
- type AlloyPluginOptions = Partial<PrintTreeOptions> & {
7
- /**
8
- * If true, the Alloy framework is used to generate Typescript output files.
9
- *
10
- * @defaultValue true
11
- */
12
- typescript?: boolean;
13
- /**
14
- * If true, the Alloy framework is used to generate JSON output files.
15
- *
16
- * @defaultValue false
17
- */
18
- json?: boolean;
19
- /**
20
- * If true, the Alloy framework is used to generate Markdown output files.
21
- *
22
- * @defaultValue false
23
- */
24
- markdown?: boolean;
25
- };
26
- type AlloyPluginUserConfig = BabelPluginUserConfig & {
27
- alloy?: AlloyPluginOptions;
28
- };
29
- type AlloyPluginResolvedConfig = BabelPluginResolvedConfig & {
30
- alloy: AlloyPluginOptions;
31
- };
32
- type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig>;
33
- //#endregion
34
- export { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig };
35
- //# sourceMappingURL=plugin.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;KAyBY,kBAAA,GAAqB,OAAA,CAAQ,gBAAA;;AAAzC;;;;EAME,UAAA;EANuC;;;;;EAavC,IAAA;EAUU;;;;;EAHV,QAAA;AAAA;AAAA,KAGU,qBAAA,GAAwB,qBAAA;EAClC,KAAA,GAAQ,kBAAA;AAAA;AAAA,KAGE,yBAAA,GAA4B,yBAAA;EACtC,KAAA,EAAO,kBAAA;AAAA;AAAA,KAGG,kBAAA,yBACc,yBAAA,GAA4B,yBAAA,IAClD,aAAA,CAAc,eAAA"}
@@ -1 +0,0 @@
1
- export { };
@@ -1,63 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
- const require_core_contexts_context = require('../../core/contexts/context.cjs');
4
- const require_typescript_components_tsdoc = require('./tsdoc.cjs');
5
- const require_typescript_components_typescript_file = require('./typescript-file.cjs');
6
- let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
7
- let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
8
- let _alloy_js_core = require("@alloy-js/core");
9
- let _stryke_path_replace = require("@stryke/path/replace");
10
- let _stryke_type_checks_is_set = require("@stryke/type-checks/is-set");
11
-
12
- //#region src/typescript/components/builtin-file.tsx
13
- /**
14
- * A base component representing a Powerlines generated Typescript source file.
15
- *
16
- * @param props - The properties for the source file.
17
- * @returns The rendered source file component.
18
- */
19
- function BuiltinFile(props) {
20
- const [{ children, imports, builtinImports, id, description, tsx }, rest] = (0, _alloy_js_core.splitProps)(props, [
21
- "children",
22
- "imports",
23
- "builtinImports",
24
- "id",
25
- "description",
26
- "tsx"
27
- ]);
28
- const context = require_core_contexts_context.usePowerlinesSafe();
29
- const path = (0, _alloy_js_core.computed)(() => (0, _stryke_path_replace.replacePath)(`${!(0, _stryke_type_checks_is_set.isSet)(tsx) ? id : (0, _stryke_path_replace.replaceExtension)(id)}${(0, _stryke_path_file_path_fns.hasFileExtension)(id) && !(0, _stryke_type_checks_is_set.isSet)(tsx) ? "" : tsx ? ".tsx" : ".ts"}`, context?.builtinsPath));
30
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_file.TypescriptFile, (0, _alloy_js_core_jsx_runtime.mergeProps)({
31
- get header() {
32
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_file.TypescriptFileHeader, {
33
- get header() {
34
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocModule, {
35
- name: id,
36
- children: description
37
- });
38
- },
39
- get children() {
40
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_file.TypescriptFileHeaderImports, {
41
- imports,
42
- builtinImports
43
- });
44
- }
45
- });
46
- },
47
- get meta() {
48
- return {
49
- kind: "builtin",
50
- extension: tsx ? "tsx" : "ts",
51
- id: (0, _stryke_path_replace.replaceExtension)(id)
52
- };
53
- }
54
- }, rest, {
55
- get path() {
56
- return path.value;
57
- },
58
- children
59
- }));
60
- }
61
-
62
- //#endregion
63
- exports.BuiltinFile = BuiltinFile;
@@ -1,34 +0,0 @@
1
- import { TSDocModuleProps } from "./tsdoc.cjs";
2
- import { TypescriptFileProps } from "./typescript-file.cjs";
3
- import * as _$_alloy_js_core0 from "@alloy-js/core";
4
-
5
- //#region src/typescript/components/builtin-file.d.ts
6
- type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
7
- /**
8
- * The runtime module identifier.
9
- *
10
- * @remarks
11
- * This value will be included after the \`storm:\` prefix in the import statement.
12
- */
13
- id: string;
14
- /**
15
- * The description for the builtin module.
16
- */
17
- description?: string;
18
- /**
19
- * Whether the file is a TSX file.
20
- *
21
- * @defaultValue false
22
- */
23
- tsx?: boolean;
24
- };
25
- /**
26
- * A base component representing a Powerlines generated Typescript source file.
27
- *
28
- * @param props - The properties for the source file.
29
- * @returns The rendered source file component.
30
- */
31
- declare function BuiltinFile(props: BuiltinFileProps): _$_alloy_js_core0.Children;
32
- //#endregion
33
- export { BuiltinFile, BuiltinFileProps };
34
- //# sourceMappingURL=builtin-file.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builtin-file.d.cts","names":[],"sources":["../../../src/typescript/components/builtin-file.tsx"],"mappings":";;;;;KAgCY,gBAAA,GAAmB,IAAA,CAAK,mBAAA,YAClC,IAAA,CAAK,gBAAA;;;AADP;;;;EAQI,EAAA;EAPG;;;EAYH,WAAA;EAb2B;;;;;EAoB3B,GAAA;AAAA;;;AASJ;;;;iBAAgB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,iBAAA,CAAA,QAAA"}
@@ -1,34 +0,0 @@
1
- import { TSDocModuleProps } from "./tsdoc.mjs";
2
- import { TypescriptFileProps } from "./typescript-file.mjs";
3
- import * as _$_alloy_js_core0 from "@alloy-js/core";
4
-
5
- //#region src/typescript/components/builtin-file.d.ts
6
- type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
7
- /**
8
- * The runtime module identifier.
9
- *
10
- * @remarks
11
- * This value will be included after the \`storm:\` prefix in the import statement.
12
- */
13
- id: string;
14
- /**
15
- * The description for the builtin module.
16
- */
17
- description?: string;
18
- /**
19
- * Whether the file is a TSX file.
20
- *
21
- * @defaultValue false
22
- */
23
- tsx?: boolean;
24
- };
25
- /**
26
- * A base component representing a Powerlines generated Typescript source file.
27
- *
28
- * @param props - The properties for the source file.
29
- * @returns The rendered source file component.
30
- */
31
- declare function BuiltinFile(props: BuiltinFileProps): _$_alloy_js_core0.Children;
32
- //#endregion
33
- export { BuiltinFile, BuiltinFileProps };
34
- //# sourceMappingURL=builtin-file.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builtin-file.d.mts","names":[],"sources":["../../../src/typescript/components/builtin-file.tsx"],"mappings":";;;;;KAgCY,gBAAA,GAAmB,IAAA,CAAK,mBAAA,YAClC,IAAA,CAAK,gBAAA;;;AADP;;;;EAQI,EAAA;EAPG;;;EAYH,WAAA;EAb2B;;;;;EAoB3B,GAAA;AAAA;;;AASJ;;;;iBAAgB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,iBAAA,CAAA,QAAA"}
@@ -1,62 +0,0 @@
1
- import { usePowerlinesSafe } from "../../core/contexts/context.mjs";
2
- import { TSDocModule } from "./tsdoc.mjs";
3
- import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports } from "./typescript-file.mjs";
4
- import { hasFileExtension } from "@stryke/path/file-path-fns";
5
- import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
6
- import { computed, splitProps } from "@alloy-js/core";
7
- import { replaceExtension, replacePath } from "@stryke/path/replace";
8
- import { isSet } from "@stryke/type-checks/is-set";
9
-
10
- //#region src/typescript/components/builtin-file.tsx
11
- /**
12
- * A base component representing a Powerlines generated Typescript source file.
13
- *
14
- * @param props - The properties for the source file.
15
- * @returns The rendered source file component.
16
- */
17
- function BuiltinFile(props) {
18
- const [{ children, imports, builtinImports, id, description, tsx }, rest] = splitProps(props, [
19
- "children",
20
- "imports",
21
- "builtinImports",
22
- "id",
23
- "description",
24
- "tsx"
25
- ]);
26
- const context = usePowerlinesSafe();
27
- const path = computed(() => replacePath(`${!isSet(tsx) ? id : replaceExtension(id)}${hasFileExtension(id) && !isSet(tsx) ? "" : tsx ? ".tsx" : ".ts"}`, context?.builtinsPath));
28
- return createComponent(TypescriptFile, mergeProps({
29
- get header() {
30
- return createComponent(TypescriptFileHeader, {
31
- get header() {
32
- return createComponent(TSDocModule, {
33
- name: id,
34
- children: description
35
- });
36
- },
37
- get children() {
38
- return createComponent(TypescriptFileHeaderImports, {
39
- imports,
40
- builtinImports
41
- });
42
- }
43
- });
44
- },
45
- get meta() {
46
- return {
47
- kind: "builtin",
48
- extension: tsx ? "tsx" : "ts",
49
- id: replaceExtension(id)
50
- };
51
- }
52
- }, rest, {
53
- get path() {
54
- return path.value;
55
- },
56
- children
57
- }));
58
- }
59
-
60
- //#endregion
61
- export { BuiltinFile };
62
- //# sourceMappingURL=builtin-file.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builtin-file.mjs","names":[],"sources":["../../../src/typescript/components/builtin-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 { hasFileExtension } from \"@stryke/path/file-path-fns\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { isSet } from \"@stryke/type-checks/is-set\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport type { TSDocModuleProps } from \"./tsdoc\";\nimport { TSDocModule } from \"./tsdoc\";\nimport {\n TypescriptFile,\n TypescriptFileHeader,\n TypescriptFileHeaderImports,\n TypescriptFileProps\n} from \"./typescript-file\";\n\nexport type BuiltinFileProps = Omit<TypescriptFileProps, \"path\"> &\n Omit<TSDocModuleProps, \"name\"> & {\n /**\n * The runtime module identifier.\n *\n * @remarks\n * This value will be included after the \\`storm:\\` prefix in the import statement.\n */\n id: string;\n\n /**\n * The description for the builtin module.\n */\n description?: string;\n\n /**\n * Whether the file is a TSX file.\n *\n * @defaultValue false\n */\n tsx?: boolean;\n };\n\n/**\n * A base component representing a Powerlines generated Typescript source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function BuiltinFile(props: BuiltinFileProps) {\n const [{ children, imports, builtinImports, id, description, tsx }, rest] =\n splitProps(props, [\n \"children\",\n \"imports\",\n \"builtinImports\",\n \"id\",\n \"description\",\n \"tsx\"\n ]);\n\n const context = usePowerlinesSafe();\n const path = computed(() =>\n replacePath(\n `${!isSet(tsx) ? id : replaceExtension(id)}${\n hasFileExtension(id) && !isSet(tsx) ? \"\" : tsx ? \".tsx\" : \".ts\"\n }`,\n context?.builtinsPath\n )\n );\n\n return (\n <TypescriptFile\n header={\n <TypescriptFileHeader\n header={<TSDocModule name={id}>{description}</TSDocModule>}>\n <TypescriptFileHeaderImports\n imports={imports}\n builtinImports={builtinImports}\n />\n </TypescriptFileHeader>\n }\n meta={{\n kind: \"builtin\",\n extension: tsx ? \"tsx\" : \"ts\",\n id: replaceExtension(id)\n }}\n {...rest}\n path={path.value}>\n {children}\n </TypescriptFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAgCA,SAAY,YAAgB,OAAO;CACjC,MAAK,CAAA,EACH,UACA,SACA,gBACA,IACA,aACA,OACA,QAAI,WAAM,OAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA,CAAA;;CAEZ,MAAI,OAAA,eAAA,YAAA,GAAA,CAAA,MAAA,IAAA,GAAA,KAAA,iBAAA,GAAA,GAAA,iBAAA,GAAA,IAAA,CAAA,MAAA,IAAA,GAAA,KAAA,MAAA,SAAA,SAAA,SAAA,aAAA,CAAA;AACJ,QAAK,gBAAoB,gBAAY,WAAM;EACzC,IAAE,SAAA;AACF,UAAA,gBAAoB,sBAAA;;AAElB,YAAA,gBAAA,aAAA;MACC,MAAW;MACb,UAAA;MACG,CAAA;;IAEA,IAAE,WAAO;AACd,YAAA,gBAAA,6BAAA;;MAED;MACQ,CAAA;;IAEN,CAAA;;EAEF,IAAA,OAAA;AACI,UAAC;IACC,MAAG;IACP,WAAW,MAAO,QAAA;IACf,IAAA,iBAAS,GAAA;IACT;;EAEJ,EAAE,MAAK;EACN,IAAG,OAAA;AACD,UAAI,KAAA;;;EAGR,CAAA,CAAA"}