@powerlines/plugin-alloy 0.26.49 → 0.26.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (377) hide show
  1. package/package.json +6 -6
  2. package/dist/_virtual/_rolldown/runtime.cjs +0 -1
  3. package/dist/core/components/index.cjs +0 -1
  4. package/dist/core/components/index.d.cts +0 -6
  5. package/dist/core/components/index.d.mts +0 -6
  6. package/dist/core/components/index.mjs +0 -1
  7. package/dist/core/components/infrastructure-file.cjs +0 -1
  8. package/dist/core/components/infrastructure-file.d.cts +0 -27
  9. package/dist/core/components/infrastructure-file.d.cts.map +0 -1
  10. package/dist/core/components/infrastructure-file.d.mts +0 -27
  11. package/dist/core/components/infrastructure-file.d.mts.map +0 -1
  12. package/dist/core/components/infrastructure-file.mjs +0 -2
  13. package/dist/core/components/infrastructure-file.mjs.map +0 -1
  14. package/dist/core/components/output.cjs +0 -1
  15. package/dist/core/components/output.d.cts +0 -23
  16. package/dist/core/components/output.d.cts.map +0 -1
  17. package/dist/core/components/output.d.mts +0 -23
  18. package/dist/core/components/output.d.mts.map +0 -1
  19. package/dist/core/components/output.mjs +0 -2
  20. package/dist/core/components/output.mjs.map +0 -1
  21. package/dist/core/components/single-line-comment.cjs +0 -1
  22. package/dist/core/components/single-line-comment.d.cts +0 -21
  23. package/dist/core/components/single-line-comment.d.cts.map +0 -1
  24. package/dist/core/components/single-line-comment.d.mts +0 -21
  25. package/dist/core/components/single-line-comment.d.mts.map +0 -1
  26. package/dist/core/components/single-line-comment.mjs +0 -2
  27. package/dist/core/components/single-line-comment.mjs.map +0 -1
  28. package/dist/core/components/source-file.cjs +0 -1
  29. package/dist/core/components/source-file.d.cts +0 -32
  30. package/dist/core/components/source-file.d.cts.map +0 -1
  31. package/dist/core/components/source-file.d.mts +0 -32
  32. package/dist/core/components/source-file.d.mts.map +0 -1
  33. package/dist/core/components/source-file.mjs +0 -2
  34. package/dist/core/components/source-file.mjs.map +0 -1
  35. package/dist/core/components/spacing.cjs +0 -1
  36. package/dist/core/components/spacing.d.cts +0 -23
  37. package/dist/core/components/spacing.d.cts.map +0 -1
  38. package/dist/core/components/spacing.d.mts +0 -23
  39. package/dist/core/components/spacing.d.mts.map +0 -1
  40. package/dist/core/components/spacing.mjs +0 -2
  41. package/dist/core/components/spacing.mjs.map +0 -1
  42. package/dist/core/contexts/context.cjs +0 -1
  43. package/dist/core/contexts/context.d.cts +0 -29
  44. package/dist/core/contexts/context.d.cts.map +0 -1
  45. package/dist/core/contexts/context.d.mts +0 -29
  46. package/dist/core/contexts/context.d.mts.map +0 -1
  47. package/dist/core/contexts/context.mjs +0 -2
  48. package/dist/core/contexts/context.mjs.map +0 -1
  49. package/dist/core/contexts/index.cjs +0 -1
  50. package/dist/core/contexts/index.d.cts +0 -4
  51. package/dist/core/contexts/index.d.mts +0 -4
  52. package/dist/core/contexts/index.mjs +0 -1
  53. package/dist/core/contexts/meta.cjs +0 -1
  54. package/dist/core/contexts/meta.d.cts +0 -47
  55. package/dist/core/contexts/meta.d.cts.map +0 -1
  56. package/dist/core/contexts/meta.d.mts +0 -47
  57. package/dist/core/contexts/meta.d.mts.map +0 -1
  58. package/dist/core/contexts/meta.mjs +0 -2
  59. package/dist/core/contexts/meta.mjs.map +0 -1
  60. package/dist/core/contexts/reflection.cjs +0 -1
  61. package/dist/core/contexts/reflection.d.cts +0 -62
  62. package/dist/core/contexts/reflection.d.cts.map +0 -1
  63. package/dist/core/contexts/reflection.d.mts +0 -62
  64. package/dist/core/contexts/reflection.d.mts.map +0 -1
  65. package/dist/core/contexts/reflection.mjs +0 -2
  66. package/dist/core/contexts/reflection.mjs.map +0 -1
  67. package/dist/core/helpers/code.cjs +0 -1
  68. package/dist/core/helpers/code.d.cts +0 -29
  69. package/dist/core/helpers/code.d.cts.map +0 -1
  70. package/dist/core/helpers/code.d.mts +0 -29
  71. package/dist/core/helpers/code.d.mts.map +0 -1
  72. package/dist/core/helpers/code.mjs +0 -2
  73. package/dist/core/helpers/code.mjs.map +0 -1
  74. package/dist/core/helpers/index.cjs +0 -1
  75. package/dist/core/helpers/index.d.cts +0 -2
  76. package/dist/core/helpers/index.d.mts +0 -2
  77. package/dist/core/helpers/index.mjs +0 -1
  78. package/dist/core/index.cjs +0 -1
  79. package/dist/core/index.d.cts +0 -10
  80. package/dist/core/index.d.mts +0 -10
  81. package/dist/core/index.mjs +0 -1
  82. package/dist/hcl/components/block-declaration.cjs +0 -1
  83. package/dist/hcl/components/block-declaration.d.cts +0 -21
  84. package/dist/hcl/components/block-declaration.d.cts.map +0 -1
  85. package/dist/hcl/components/block-declaration.d.mts +0 -21
  86. package/dist/hcl/components/block-declaration.d.mts.map +0 -1
  87. package/dist/hcl/components/block-declaration.mjs +0 -2
  88. package/dist/hcl/components/block-declaration.mjs.map +0 -1
  89. package/dist/hcl/components/hcl-file.cjs +0 -1
  90. package/dist/hcl/components/hcl-file.d.cts +0 -26
  91. package/dist/hcl/components/hcl-file.d.cts.map +0 -1
  92. package/dist/hcl/components/hcl-file.d.mts +0 -26
  93. package/dist/hcl/components/hcl-file.d.mts.map +0 -1
  94. package/dist/hcl/components/hcl-file.mjs +0 -2
  95. package/dist/hcl/components/hcl-file.mjs.map +0 -1
  96. package/dist/hcl/components/index.cjs +0 -1
  97. package/dist/hcl/components/index.d.cts +0 -5
  98. package/dist/hcl/components/index.d.mts +0 -5
  99. package/dist/hcl/components/index.mjs +0 -1
  100. package/dist/hcl/components/packer-file.cjs +0 -1
  101. package/dist/hcl/components/packer-file.d.cts +0 -18
  102. package/dist/hcl/components/packer-file.d.cts.map +0 -1
  103. package/dist/hcl/components/packer-file.d.mts +0 -18
  104. package/dist/hcl/components/packer-file.d.mts.map +0 -1
  105. package/dist/hcl/components/packer-file.mjs +0 -2
  106. package/dist/hcl/components/packer-file.mjs.map +0 -1
  107. package/dist/hcl/components/terraform-file.cjs +0 -1
  108. package/dist/hcl/components/terraform-file.d.cts +0 -19
  109. package/dist/hcl/components/terraform-file.d.cts.map +0 -1
  110. package/dist/hcl/components/terraform-file.d.mts +0 -19
  111. package/dist/hcl/components/terraform-file.d.mts.map +0 -1
  112. package/dist/hcl/components/terraform-file.mjs +0 -2
  113. package/dist/hcl/components/terraform-file.mjs.map +0 -1
  114. package/dist/hcl/index.cjs +0 -1
  115. package/dist/hcl/index.d.cts +0 -5
  116. package/dist/hcl/index.d.mts +0 -5
  117. package/dist/hcl/index.mjs +0 -1
  118. package/dist/helpers/capnp.cjs +0 -69
  119. package/dist/helpers/capnp.d.cts +0 -83
  120. package/dist/helpers/capnp.d.cts.map +0 -1
  121. package/dist/helpers/capnp.d.mts +0 -83
  122. package/dist/helpers/capnp.d.mts.map +0 -1
  123. package/dist/helpers/capnp.mjs +0 -70
  124. package/dist/helpers/capnp.mjs.map +0 -1
  125. package/dist/helpers/create-builtin.cjs +0 -1
  126. package/dist/helpers/create-builtin.d.cts +0 -15
  127. package/dist/helpers/create-builtin.d.cts.map +0 -1
  128. package/dist/helpers/create-builtin.d.mts +0 -15
  129. package/dist/helpers/create-builtin.d.mts.map +0 -1
  130. package/dist/helpers/create-builtin.mjs +0 -2
  131. package/dist/helpers/create-builtin.mjs.map +0 -1
  132. package/dist/helpers/index.cjs +0 -1
  133. package/dist/helpers/index.d.cts +0 -5
  134. package/dist/helpers/index.d.mts +0 -5
  135. package/dist/helpers/index.mjs +0 -1
  136. package/dist/helpers/refkey.cjs +0 -1
  137. package/dist/helpers/refkey.d.cts +0 -13
  138. package/dist/helpers/refkey.d.cts.map +0 -1
  139. package/dist/helpers/refkey.d.mts +0 -13
  140. package/dist/helpers/refkey.d.mts.map +0 -1
  141. package/dist/helpers/refkey.mjs +0 -2
  142. package/dist/helpers/refkey.mjs.map +0 -1
  143. package/dist/helpers/typescript.cjs +0 -24
  144. package/dist/helpers/typescript.d.cts +0 -24
  145. package/dist/helpers/typescript.d.cts.map +0 -1
  146. package/dist/helpers/typescript.d.mts +0 -24
  147. package/dist/helpers/typescript.d.mts.map +0 -1
  148. package/dist/helpers/typescript.mjs +0 -25
  149. package/dist/helpers/typescript.mjs.map +0 -1
  150. package/dist/index.cjs +0 -1
  151. package/dist/index.d.cts +0 -19
  152. package/dist/index.d.cts.map +0 -1
  153. package/dist/index.d.mts +0 -19
  154. package/dist/index.d.mts.map +0 -1
  155. package/dist/index.mjs +0 -2
  156. package/dist/index.mjs.map +0 -1
  157. package/dist/markdown/components/front-matter.cjs +0 -1
  158. package/dist/markdown/components/front-matter.d.cts +0 -15
  159. package/dist/markdown/components/front-matter.d.cts.map +0 -1
  160. package/dist/markdown/components/front-matter.d.mts +0 -15
  161. package/dist/markdown/components/front-matter.d.mts.map +0 -1
  162. package/dist/markdown/components/front-matter.mjs +0 -2
  163. package/dist/markdown/components/front-matter.mjs.map +0 -1
  164. package/dist/markdown/components/heading.cjs +0 -1
  165. package/dist/markdown/components/heading.d.cts +0 -19
  166. package/dist/markdown/components/heading.d.cts.map +0 -1
  167. package/dist/markdown/components/heading.d.mts +0 -19
  168. package/dist/markdown/components/heading.d.mts.map +0 -1
  169. package/dist/markdown/components/heading.mjs +0 -2
  170. package/dist/markdown/components/heading.mjs.map +0 -1
  171. package/dist/markdown/components/index.cjs +0 -1
  172. package/dist/markdown/components/index.d.cts +0 -5
  173. package/dist/markdown/components/index.d.mts +0 -5
  174. package/dist/markdown/components/index.mjs +0 -1
  175. package/dist/markdown/components/markdown-file.cjs +0 -1
  176. package/dist/markdown/components/markdown-file.d.cts +0 -27
  177. package/dist/markdown/components/markdown-file.d.cts.map +0 -1
  178. package/dist/markdown/components/markdown-file.d.mts +0 -27
  179. package/dist/markdown/components/markdown-file.d.mts.map +0 -1
  180. package/dist/markdown/components/markdown-file.mjs +0 -2
  181. package/dist/markdown/components/markdown-file.mjs.map +0 -1
  182. package/dist/markdown/components/markdown-table.cjs +0 -1
  183. package/dist/markdown/components/markdown-table.d.cts +0 -26
  184. package/dist/markdown/components/markdown-table.d.cts.map +0 -1
  185. package/dist/markdown/components/markdown-table.d.mts +0 -26
  186. package/dist/markdown/components/markdown-table.d.mts.map +0 -1
  187. package/dist/markdown/components/markdown-table.mjs +0 -2
  188. package/dist/markdown/components/markdown-table.mjs.map +0 -1
  189. package/dist/markdown/contexts/index.cjs +0 -1
  190. package/dist/markdown/contexts/index.d.cts +0 -2
  191. package/dist/markdown/contexts/index.d.mts +0 -2
  192. package/dist/markdown/contexts/index.mjs +0 -1
  193. package/dist/markdown/contexts/markdown-table.cjs +0 -1
  194. package/dist/markdown/contexts/markdown-table.d.cts +0 -36
  195. package/dist/markdown/contexts/markdown-table.d.cts.map +0 -1
  196. package/dist/markdown/contexts/markdown-table.d.mts +0 -36
  197. package/dist/markdown/contexts/markdown-table.d.mts.map +0 -1
  198. package/dist/markdown/contexts/markdown-table.mjs +0 -2
  199. package/dist/markdown/contexts/markdown-table.mjs.map +0 -1
  200. package/dist/markdown/index.cjs +0 -1
  201. package/dist/markdown/index.d.cts +0 -6
  202. package/dist/markdown/index.d.mts +0 -6
  203. package/dist/markdown/index.mjs +0 -1
  204. package/dist/render.cjs +0 -1
  205. package/dist/render.d.cts +0 -38
  206. package/dist/render.d.cts.map +0 -1
  207. package/dist/render.d.mts +0 -38
  208. package/dist/render.d.mts.map +0 -1
  209. package/dist/render.mjs +0 -2
  210. package/dist/render.mjs.map +0 -1
  211. package/dist/types/components.cjs +0 -0
  212. package/dist/types/components.d.cts +0 -126
  213. package/dist/types/components.d.cts.map +0 -1
  214. package/dist/types/components.d.mts +0 -126
  215. package/dist/types/components.d.mts.map +0 -1
  216. package/dist/types/components.mjs +0 -2
  217. package/dist/types/components.mjs.map +0 -1
  218. package/dist/types/index.cjs +0 -0
  219. package/dist/types/index.d.cts +0 -3
  220. package/dist/types/index.d.mts +0 -3
  221. package/dist/types/index.mjs +0 -1
  222. package/dist/types/plugin.cjs +0 -0
  223. package/dist/types/plugin.d.cts +0 -35
  224. package/dist/types/plugin.d.cts.map +0 -1
  225. package/dist/types/plugin.d.mts +0 -35
  226. package/dist/types/plugin.d.mts.map +0 -1
  227. package/dist/types/plugin.mjs +0 -1
  228. package/dist/typescript/components/builtin-file.cjs +0 -1
  229. package/dist/typescript/components/builtin-file.d.cts +0 -34
  230. package/dist/typescript/components/builtin-file.d.cts.map +0 -1
  231. package/dist/typescript/components/builtin-file.d.mts +0 -34
  232. package/dist/typescript/components/builtin-file.d.mts.map +0 -1
  233. package/dist/typescript/components/builtin-file.mjs +0 -2
  234. package/dist/typescript/components/builtin-file.mjs.map +0 -1
  235. package/dist/typescript/components/class-declaration.cjs +0 -1
  236. package/dist/typescript/components/class-declaration.d.cts +0 -140
  237. package/dist/typescript/components/class-declaration.d.cts.map +0 -1
  238. package/dist/typescript/components/class-declaration.d.mts +0 -140
  239. package/dist/typescript/components/class-declaration.d.mts.map +0 -1
  240. package/dist/typescript/components/class-declaration.mjs +0 -2
  241. package/dist/typescript/components/class-declaration.mjs.map +0 -1
  242. package/dist/typescript/components/dynamic-import-statement.cjs +0 -1
  243. package/dist/typescript/components/dynamic-import-statement.d.cts +0 -32
  244. package/dist/typescript/components/dynamic-import-statement.d.cts.map +0 -1
  245. package/dist/typescript/components/dynamic-import-statement.d.mts +0 -32
  246. package/dist/typescript/components/dynamic-import-statement.d.mts.map +0 -1
  247. package/dist/typescript/components/dynamic-import-statement.mjs +0 -2
  248. package/dist/typescript/components/dynamic-import-statement.mjs.map +0 -1
  249. package/dist/typescript/components/entry-file.cjs +0 -1
  250. package/dist/typescript/components/entry-file.d.cts +0 -27
  251. package/dist/typescript/components/entry-file.d.cts.map +0 -1
  252. package/dist/typescript/components/entry-file.d.mts +0 -27
  253. package/dist/typescript/components/entry-file.d.mts.map +0 -1
  254. package/dist/typescript/components/entry-file.mjs +0 -2
  255. package/dist/typescript/components/entry-file.mjs.map +0 -1
  256. package/dist/typescript/components/index.cjs +0 -1
  257. package/dist/typescript/components/index.d.cts +0 -14
  258. package/dist/typescript/components/index.d.mts +0 -14
  259. package/dist/typescript/components/index.mjs +0 -1
  260. package/dist/typescript/components/interface-declaration.cjs +0 -1
  261. package/dist/typescript/components/interface-declaration.d.cts +0 -80
  262. package/dist/typescript/components/interface-declaration.d.cts.map +0 -1
  263. package/dist/typescript/components/interface-declaration.d.mts +0 -80
  264. package/dist/typescript/components/interface-declaration.d.mts.map +0 -1
  265. package/dist/typescript/components/interface-declaration.mjs +0 -2
  266. package/dist/typescript/components/interface-declaration.mjs.map +0 -1
  267. package/dist/typescript/components/object-declaration.cjs +0 -1
  268. package/dist/typescript/components/object-declaration.d.cts +0 -28
  269. package/dist/typescript/components/object-declaration.d.cts.map +0 -1
  270. package/dist/typescript/components/object-declaration.d.mts +0 -28
  271. package/dist/typescript/components/object-declaration.d.mts.map +0 -1
  272. package/dist/typescript/components/object-declaration.mjs +0 -2
  273. package/dist/typescript/components/object-declaration.mjs.map +0 -1
  274. package/dist/typescript/components/property-name.cjs +0 -1
  275. package/dist/typescript/components/property-name.d.cts +0 -23
  276. package/dist/typescript/components/property-name.d.cts.map +0 -1
  277. package/dist/typescript/components/property-name.d.mts +0 -23
  278. package/dist/typescript/components/property-name.d.mts.map +0 -1
  279. package/dist/typescript/components/property-name.mjs +0 -2
  280. package/dist/typescript/components/property-name.mjs.map +0 -1
  281. package/dist/typescript/components/record-expression.cjs +0 -3
  282. package/dist/typescript/components/record-expression.d.cts +0 -12
  283. package/dist/typescript/components/record-expression.d.cts.map +0 -1
  284. package/dist/typescript/components/record-expression.d.mts +0 -12
  285. package/dist/typescript/components/record-expression.d.mts.map +0 -1
  286. package/dist/typescript/components/record-expression.mjs +0 -4
  287. package/dist/typescript/components/record-expression.mjs.map +0 -1
  288. package/dist/typescript/components/tsdoc-reflection.cjs +0 -1
  289. package/dist/typescript/components/tsdoc-reflection.d.cts +0 -42
  290. package/dist/typescript/components/tsdoc-reflection.d.cts.map +0 -1
  291. package/dist/typescript/components/tsdoc-reflection.d.mts +0 -42
  292. package/dist/typescript/components/tsdoc-reflection.d.mts.map +0 -1
  293. package/dist/typescript/components/tsdoc-reflection.mjs +0 -2
  294. package/dist/typescript/components/tsdoc-reflection.mjs.map +0 -1
  295. package/dist/typescript/components/tsdoc.cjs +0 -1
  296. package/dist/typescript/components/tsdoc.d.cts +0 -161
  297. package/dist/typescript/components/tsdoc.d.cts.map +0 -1
  298. package/dist/typescript/components/tsdoc.d.mts +0 -161
  299. package/dist/typescript/components/tsdoc.d.mts.map +0 -1
  300. package/dist/typescript/components/tsdoc.mjs +0 -2
  301. package/dist/typescript/components/tsdoc.mjs.map +0 -1
  302. package/dist/typescript/components/type-declaration.cjs +0 -1
  303. package/dist/typescript/components/type-declaration.d.cts +0 -17
  304. package/dist/typescript/components/type-declaration.d.cts.map +0 -1
  305. package/dist/typescript/components/type-declaration.d.mts +0 -17
  306. package/dist/typescript/components/type-declaration.d.mts.map +0 -1
  307. package/dist/typescript/components/type-declaration.mjs +0 -2
  308. package/dist/typescript/components/type-declaration.mjs.map +0 -1
  309. package/dist/typescript/components/type-parameters.cjs +0 -1
  310. package/dist/typescript/components/type-parameters.d.cts +0 -23
  311. package/dist/typescript/components/type-parameters.d.cts.map +0 -1
  312. package/dist/typescript/components/type-parameters.d.mts +0 -23
  313. package/dist/typescript/components/type-parameters.d.mts.map +0 -1
  314. package/dist/typescript/components/type-parameters.mjs +0 -2
  315. package/dist/typescript/components/type-parameters.mjs.map +0 -1
  316. package/dist/typescript/components/typescript-file.cjs +0 -1
  317. package/dist/typescript/components/typescript-file.d.cts +0 -47
  318. package/dist/typescript/components/typescript-file.d.cts.map +0 -1
  319. package/dist/typescript/components/typescript-file.d.mts +0 -47
  320. package/dist/typescript/components/typescript-file.d.mts.map +0 -1
  321. package/dist/typescript/components/typescript-file.mjs +0 -2
  322. package/dist/typescript/components/typescript-file.mjs.map +0 -1
  323. package/dist/typescript/contexts/index.cjs +0 -1
  324. package/dist/typescript/contexts/index.d.cts +0 -2
  325. package/dist/typescript/contexts/index.d.mts +0 -2
  326. package/dist/typescript/contexts/index.mjs +0 -1
  327. package/dist/typescript/contexts/lexical-scope.cjs +0 -1
  328. package/dist/typescript/contexts/lexical-scope.d.cts +0 -14
  329. package/dist/typescript/contexts/lexical-scope.d.cts.map +0 -1
  330. package/dist/typescript/contexts/lexical-scope.d.mts +0 -14
  331. package/dist/typescript/contexts/lexical-scope.d.mts.map +0 -1
  332. package/dist/typescript/contexts/lexical-scope.mjs +0 -2
  333. package/dist/typescript/contexts/lexical-scope.mjs.map +0 -1
  334. package/dist/typescript/contexts/member-scope.cjs +0 -1
  335. package/dist/typescript/contexts/member-scope.d.cts +0 -19
  336. package/dist/typescript/contexts/member-scope.d.cts.map +0 -1
  337. package/dist/typescript/contexts/member-scope.d.mts +0 -19
  338. package/dist/typescript/contexts/member-scope.d.mts.map +0 -1
  339. package/dist/typescript/contexts/member-scope.mjs +0 -2
  340. package/dist/typescript/contexts/member-scope.mjs.map +0 -1
  341. package/dist/typescript/helpers/get-call-signature-props.cjs +0 -1
  342. package/dist/typescript/helpers/get-call-signature-props.d.cts +0 -14
  343. package/dist/typescript/helpers/get-call-signature-props.d.cts.map +0 -1
  344. package/dist/typescript/helpers/get-call-signature-props.d.mts +0 -14
  345. package/dist/typescript/helpers/get-call-signature-props.d.mts.map +0 -1
  346. package/dist/typescript/helpers/get-call-signature-props.mjs +0 -2
  347. package/dist/typescript/helpers/get-call-signature-props.mjs.map +0 -1
  348. package/dist/typescript/helpers/index.cjs +0 -1
  349. package/dist/typescript/helpers/index.d.cts +0 -3
  350. package/dist/typescript/helpers/index.d.mts +0 -3
  351. package/dist/typescript/helpers/index.mjs +0 -1
  352. package/dist/typescript/helpers/utilities.cjs +0 -1
  353. package/dist/typescript/helpers/utilities.d.cts +0 -11
  354. package/dist/typescript/helpers/utilities.d.cts.map +0 -1
  355. package/dist/typescript/helpers/utilities.d.mts +0 -11
  356. package/dist/typescript/helpers/utilities.d.mts.map +0 -1
  357. package/dist/typescript/helpers/utilities.mjs +0 -2
  358. package/dist/typescript/helpers/utilities.mjs.map +0 -1
  359. package/dist/typescript/index.cjs +0 -1
  360. package/dist/typescript/index.d.cts +0 -17
  361. package/dist/typescript/index.d.mts +0 -17
  362. package/dist/typescript/index.mjs +0 -1
  363. package/dist/yaml/components/index.cjs +0 -1
  364. package/dist/yaml/components/index.d.cts +0 -2
  365. package/dist/yaml/components/index.d.mts +0 -2
  366. package/dist/yaml/components/index.mjs +0 -1
  367. package/dist/yaml/components/yaml-file.cjs +0 -1
  368. package/dist/yaml/components/yaml-file.d.cts +0 -32
  369. package/dist/yaml/components/yaml-file.d.cts.map +0 -1
  370. package/dist/yaml/components/yaml-file.d.mts +0 -32
  371. package/dist/yaml/components/yaml-file.d.mts.map +0 -1
  372. package/dist/yaml/components/yaml-file.mjs +0 -2
  373. package/dist/yaml/components/yaml-file.mjs.map +0 -1
  374. package/dist/yaml/index.cjs +0 -1
  375. package/dist/yaml/index.d.cts +0 -2
  376. package/dist/yaml/index.d.mts +0 -2
  377. package/dist/yaml/index.mjs +0 -1
@@ -1,26 +0,0 @@
1
- import { ComponentProps } from "../../types/components.mjs";
2
- import { MarkdownTableColumnContextInterface } from "../contexts/markdown-table.mjs";
3
- import * as _$_alloy_js_core0 from "@alloy-js/core";
4
-
5
- //#region src/markdown/components/markdown-table.d.ts
6
- interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>> extends ComponentProps {
7
- data: T[];
8
- }
9
- /**
10
- * Component that provides a context for rendering markdown tables.
11
- */
12
- declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _$_alloy_js_core0.Children;
13
- type MarkdownTableColumnProps = ComponentProps & Partial<Pick<MarkdownTableColumnContextInterface, "align">> & Required<Pick<MarkdownTableColumnContextInterface, "name">> & {
14
- width?: number;
15
- };
16
- /**
17
- * Component that provides a context for rendering markdown tables.
18
- */
19
- declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _$_alloy_js_core0.Children;
20
- /**
21
- * Component that provides a context for rendering markdown tables.
22
- */
23
- declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _$_alloy_js_core0.Children;
24
- //#endregion
25
- export { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps };
26
- //# sourceMappingURL=markdown-table.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdown-table.d.mts","names":[],"sources":["../../../src/markdown/components/markdown-table.tsx"],"mappings":";;;;;UA4BiB,kBAAA,WACL,MAAA,gBAAsB,MAAA,uBACxB,cAAA;EACR,IAAA,EAAM,CAAA;AAAA;AAHR;;;AAAA,iBASgB,aAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAChC,KAAA,EAAO,kBAAA,CAAmB,CAAA,IAAD,iBAAA,CAAG,QAAA;AAAA,KAmBlB,wBAAA,GAA2B,cAAA,GACrC,OAAA,CAAQ,IAAA,CAAK,mCAAA,cACb,QAAA,CAAS,IAAA,CAAK,mCAAA;EACZ,KAAA;AAAA;;;;iBAMY,mBAAA,CAAoB,KAAA,EAAO,wBAAA,GAAwB,iBAAA,CAAA,QAAA;;;;iBA6CnD,yBAAA,CAA0B,KAAA,EAAO,wBAAA,GAAwB,iBAAA,CAAA,QAAA"}
@@ -1,2 +0,0 @@
1
- import{MarkdownTableContext as e,useMarkdownTable as t}from"../contexts/markdown-table.mjs";import{createComponent as n,mergeProps as r}from"@alloy-js/core/jsx-runtime";import{Prose as i,Show as a,code as o,computed as s,splitProps as c}from"@alloy-js/core";import{titleCase as l}from"@stryke/string-format/title-case";import{isUndefined as u}from"@stryke/type-checks/is-undefined";function d(t){let[{children:r,data:i}]=c(t,[`children`,`data`]),o=s(()=>Object.keys(i).map((e,t)=>({index:t,name:e,align:`left`,width:20})));return n(e.Provider,{get value(){return{columns:o.value,data:i}},get children(){return n(a,{get when(){return!!r},children:r})}})}function f(e){let[{children:r,width:l,align:u,name:d}]=c(e,[`children`,`width`,`align`,`name`]),f=t(),p=s(()=>f?.columns.find(e=>e.name===d)),m=s(()=>p.value?.index??0),h=s(()=>p.value?.align??u??`left`),g=s(()=>p.value?.width??l??20),_=s(()=>(r?r.toString():``).length);return n(i,{get children(){return[n(a,{get when(){return m.value===0},children:`|`}),n(a,{get when(){return!!r},get children(){return n(i,{get children(){return o`${h.value===`left`?` `.repeat(g.value-_.value-1):` `}${r}${h.value===`right`?` `.repeat(g.value-_.value-1):` `}`}})}}),`|`]}})}function p(e){let[{children:t,name:i},o]=c(e,[`children`,`name`]);return[n(f,r(o,{name:i,get children(){return n(a,{get fallback(){return l(i,{useDescriptions:!1})},get when(){return!u(t)},children:t})}}))]}export{d as MarkdownTable,f as MarkdownTableColumn,p as MarkdownTableColumnHeader};
2
- //# sourceMappingURL=markdown-table.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdown-table.mjs","names":[],"sources":["../../../src/markdown/components/markdown-table.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 { code, computed, Prose, Show, splitProps } from \"@alloy-js/core\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport { ComponentProps } from \"../../types/components\";\nimport {\n MarkdownTableColumnContextInterface,\n MarkdownTableContext,\n useMarkdownTable\n} from \"../contexts/markdown-table\";\n\nexport interface MarkdownTableProps<\n T extends Record<string, any> = Record<string, any>\n> extends ComponentProps {\n data: T[];\n}\n\n/**\n * Component that provides a context for rendering markdown tables.\n */\nexport function MarkdownTable<\n T extends Record<string, any> = Record<string, any>\n>(props: MarkdownTableProps<T>) {\n const [{ children, data }] = splitProps(props, [\"children\", \"data\"]);\n\n const columns = computed(() =>\n Object.keys(data).map((name: string, index: number) => ({\n index,\n name,\n align: \"left\" as const,\n width: 20\n }))\n );\n\n return (\n <MarkdownTableContext.Provider value={{ columns: columns.value, data }}>\n <Show when={Boolean(children)}>{children}</Show>\n </MarkdownTableContext.Provider>\n );\n}\n\nexport type MarkdownTableColumnProps = ComponentProps &\n Partial<Pick<MarkdownTableColumnContextInterface, \"align\">> &\n Required<Pick<MarkdownTableColumnContextInterface, \"name\">> & {\n width?: number;\n };\n\n/**\n * Component that provides a context for rendering markdown tables.\n */\nexport function MarkdownTableColumn(props: MarkdownTableColumnProps) {\n const [{ children, width, align, name }] = splitProps(props, [\n \"children\",\n \"width\",\n \"align\",\n \"name\"\n ]);\n\n const tableContext = useMarkdownTable();\n const columnRef = computed(() =>\n tableContext?.columns.find(c => c.name === name)\n );\n\n const indexRef = computed(() => columnRef.value?.index ?? 0);\n const alignRef = computed(() => columnRef.value?.align ?? align ?? \"left\");\n const widthRef = computed(() => columnRef.value?.width ?? width ?? 20);\n\n const textLength = computed(() => {\n const content = children ? children.toString() : \"\";\n\n return content.length;\n });\n\n return (\n <Prose>\n <Show when={indexRef.value === 0}>{\"|\"}</Show>\n <Show when={Boolean(children)}>\n <Prose>{code`${\n alignRef.value === \"left\"\n ? \" \".repeat(widthRef.value - textLength.value - 1)\n : \" \"\n }${children}${\n alignRef.value === \"right\"\n ? \" \".repeat(widthRef.value - textLength.value - 1)\n : \" \"\n }`}</Prose>\n </Show>\n {\"|\"}\n </Prose>\n );\n}\n\n/**\n * Component that provides a context for rendering markdown tables.\n */\nexport function MarkdownTableColumnHeader(props: MarkdownTableColumnProps) {\n const [{ children, name }, rest] = splitProps(props, [\"children\", \"name\"]);\n\n return (\n <>\n <MarkdownTableColumn {...rest} name={name}>\n <Show\n fallback={titleCase(name, {\n useDescriptions: false\n })}\n when={!isUndefined(children)}>\n {children}\n </Show>\n </MarkdownTableColumn>\n </>\n );\n}\n"],"mappings":"4YA4BA,GAAO,CAAA,CACH,WACF,SACK,EAAI,EAAA,CAAA,WAAA,OAAA,CAAA,CACX,EAAA,MAAA,OAAA,KAAA,EAAA,CAAA,KAAA,EAAA,KAAA,SAEE,OACC,MAAA,OACD,MAAA,GACF,EAAA,CAAM,CACJ,OAAE,EAAuB,EAAqB,SAAI,CAClD,IAAM,OAAC,CACP,MAAS,iBAEH,OACJ,EAEA,IAAE,UAAI,CACJ,OAAO,EAAe,EAAA,CACtB,IAAM,MAAC,CACP,MAAA,EAAA,cAGJ,CAAM,EAEL,CAAC,CAKJ,SAAY,EAAwB,EAAG,CACrC,GAAA,CAAO,CACP,WACE,QACD,QAAA,SAED,EAAA,EAAA,CAAA,WAAA,QAAA,QAAA,OAAA,CAAA,CACC,EAAe,GAAuB,CACvC,EAAA,MAAA,GAAA,QAAA,KAAA,GAAA,EAAA,OAAA,EAAA,CAAA,CACK,EAAS,MAAA,EAA2B,OAAA,OAAA,EAAA,CACnC,EAAW,MAAe,EAAU,OAAC,OAAW,GAAO,OAAA,CAC1D,EAAS,MAAA,EAAA,OAAA,OAAA,GAAA,GAAA,CACT,EAAM,OACA,EAAA,EAAA,UAAA,CAAA,IACF,OACL,aAEF,IAAM,UAAA,CACN,MAAM,CAAA,EAAwB,EAAC,CAC7B,IAAA,MAAc,CACf,OAAA,EAAA,QAAA,GAEK,SAAU,IACX,CAAC,CAAA,EAAoB,EAAM,CAC1B,IAAA,MAAW,YAGf,IAAM,UAAU,aAET,IAAA,UAAc,CACrB,MAAA,EAAA,GAAA,EAAA,QAAA,OAAA,IAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,CAAA,MAAA,IAAA,EAAA,QAAA,QAAA,IAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,CAAA,OAEK,CAAA,EAEF,CAAA,CAAA,IAAK,EAET,CAAC,CAMJ,SAAgB,EAA0B,EAAA,CACxC,GAAM,CAAC,CACL,WACA,QACC,GAAK,EAAA,EAAA,CAAA,WAAA,OAAA,CAAA,CACR,MAAI,CAAA,EAAK,EAAA,EAAA,EAAA,CACR,OACH,IAAA,UAAA,aAEE,IAAA,UAAA,CACC,OAAc,EAAU,EAAE,CAC3B,gBAAA,GACK,CAAA,aAGE,MAAA,CAAA,EAAA,EAAA,EAEF,WACA,CAAC,EAEL,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./markdown-table.cjs`);exports.MarkdownTableColumnContext=e.MarkdownTableColumnContext,exports.MarkdownTableContext=e.MarkdownTableContext,exports.useMarkdownTable=e.useMarkdownTable,exports.useMarkdownTableColumn=e.useMarkdownTableColumn;
@@ -1,2 +0,0 @@
1
- import { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn } from "./markdown-table.cjs";
2
- export { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn };
@@ -1,2 +0,0 @@
1
- import { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn } from "./markdown-table.mjs";
2
- export { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn };
@@ -1 +0,0 @@
1
- import{MarkdownTableColumnContext as e,MarkdownTableContext as t,useMarkdownTable as n,useMarkdownTableColumn as r}from"./markdown-table.mjs";export{e as MarkdownTableColumnContext,t as MarkdownTableContext,n as useMarkdownTable,r as useMarkdownTableColumn};
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`@alloy-js/core`);const t=(0,e.createNamedContext)(`MarkdownTableColumn`,{});function n(){return(0,e.useContext)(t)}const r=(0,e.createContext)({columns:[],data:[]});function i(){return(0,e.useContext)(r)}exports.MarkdownTableColumnContext=t,exports.MarkdownTableContext=r,exports.useMarkdownTable=i,exports.useMarkdownTableColumn=n;
@@ -1,36 +0,0 @@
1
- import { ComponentContext } from "@alloy-js/core";
2
-
3
- //#region src/markdown/contexts/markdown-table.d.ts
4
- interface MarkdownTableColumnContextInterface<T extends Record<string, any> = Record<string, any>> {
5
- index: number;
6
- name: keyof T;
7
- align: "left" | "right" | "center";
8
- width: number;
9
- }
10
- /**
11
- * The Powerlines context used in template rendering.
12
- */
13
- declare const MarkdownTableColumnContext: ComponentContext<MarkdownTableColumnContextInterface>;
14
- /**
15
- * Hook to access the Powerlines Context.
16
- *
17
- * @returns The Context.
18
- */
19
- declare function useMarkdownTableColumn(): MarkdownTableColumnContextInterface<Record<string, any>> | undefined;
20
- interface MarkdownTableContextInterface<T extends Record<string, any> = Record<string, any>> {
21
- columns: MarkdownTableColumnContextInterface<T>[];
22
- data: T[];
23
- }
24
- /**
25
- * The Powerlines context used in template rendering.
26
- */
27
- declare const MarkdownTableContext: ComponentContext<MarkdownTableContextInterface>;
28
- /**
29
- * Hook to access the Powerlines Context.
30
- *
31
- * @returns The Context.
32
- */
33
- declare function useMarkdownTable(): MarkdownTableContextInterface<Record<string, any>> | undefined;
34
- //#endregion
35
- export { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn };
36
- //# sourceMappingURL=markdown-table.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdown-table.d.cts","names":[],"sources":["../../../src/markdown/contexts/markdown-table.ts"],"mappings":";;;UAqBiB,mCAAA,WACL,MAAA,gBAAsB,MAAA;EAEhC,KAAA;EACA,IAAA,QAAY,CAAA;EACZ,KAAA;EACA,KAAA;AAAA;;;;cAMW,0BAAA,EAA4B,gBAAA,CAAiB,mCAAA;;;;;;iBAW1C,sBAAA,CAAA,GAAsB,mCAAA,CAAA,MAAA;AAAA,UAMrB,6BAAA,WACL,MAAA,gBAAsB,MAAA;EAEhC,OAAA,EAAS,mCAAA,CAAoC,CAAA;EAC7C,IAAA,EAAM,CAAA;AAAA;AArBR;;;AAAA,cA2Ba,oBAAA,EAAsB,gBAAA,CAAiB,6BAAA;;AAhBpD;;;;iBA2BgB,gBAAA,CAAA,GAAgB,6BAAA,CAAA,MAAA"}
@@ -1,36 +0,0 @@
1
- import { ComponentContext } from "@alloy-js/core";
2
-
3
- //#region src/markdown/contexts/markdown-table.d.ts
4
- interface MarkdownTableColumnContextInterface<T extends Record<string, any> = Record<string, any>> {
5
- index: number;
6
- name: keyof T;
7
- align: "left" | "right" | "center";
8
- width: number;
9
- }
10
- /**
11
- * The Powerlines context used in template rendering.
12
- */
13
- declare const MarkdownTableColumnContext: ComponentContext<MarkdownTableColumnContextInterface>;
14
- /**
15
- * Hook to access the Powerlines Context.
16
- *
17
- * @returns The Context.
18
- */
19
- declare function useMarkdownTableColumn(): MarkdownTableColumnContextInterface<Record<string, any>> | undefined;
20
- interface MarkdownTableContextInterface<T extends Record<string, any> = Record<string, any>> {
21
- columns: MarkdownTableColumnContextInterface<T>[];
22
- data: T[];
23
- }
24
- /**
25
- * The Powerlines context used in template rendering.
26
- */
27
- declare const MarkdownTableContext: ComponentContext<MarkdownTableContextInterface>;
28
- /**
29
- * Hook to access the Powerlines Context.
30
- *
31
- * @returns The Context.
32
- */
33
- declare function useMarkdownTable(): MarkdownTableContextInterface<Record<string, any>> | undefined;
34
- //#endregion
35
- export { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn };
36
- //# sourceMappingURL=markdown-table.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdown-table.d.mts","names":[],"sources":["../../../src/markdown/contexts/markdown-table.ts"],"mappings":";;;UAqBiB,mCAAA,WACL,MAAA,gBAAsB,MAAA;EAEhC,KAAA;EACA,IAAA,QAAY,CAAA;EACZ,KAAA;EACA,KAAA;AAAA;;;;cAMW,0BAAA,EAA4B,gBAAA,CAAiB,mCAAA;;;;;;iBAW1C,sBAAA,CAAA,GAAsB,mCAAA,CAAA,MAAA;AAAA,UAMrB,6BAAA,WACL,MAAA,gBAAsB,MAAA;EAEhC,OAAA,EAAS,mCAAA,CAAoC,CAAA;EAC7C,IAAA,EAAM,CAAA;AAAA;AArBR;;;AAAA,cA2Ba,oBAAA,EAAsB,gBAAA,CAAiB,6BAAA;;AAhBpD;;;;iBA2BgB,gBAAA,CAAA,GAAgB,6BAAA,CAAA,MAAA"}
@@ -1,2 +0,0 @@
1
- import{createContext as e,createNamedContext as t,useContext as n}from"@alloy-js/core";const r=t(`MarkdownTableColumn`,{});function i(){return n(r)}const a=e({columns:[],data:[]});function o(){return n(a)}export{r as MarkdownTableColumnContext,a as MarkdownTableContext,o as useMarkdownTable,i as useMarkdownTableColumn};
2
- //# sourceMappingURL=markdown-table.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdown-table.mjs","names":[],"sources":["../../../src/markdown/contexts/markdown-table.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ComponentContext } from \"@alloy-js/core\";\nimport { createContext, createNamedContext, useContext } from \"@alloy-js/core\";\n\nexport interface MarkdownTableColumnContextInterface<\n T extends Record<string, any> = Record<string, any>\n> {\n index: number;\n name: keyof T;\n align: \"left\" | \"right\" | \"center\";\n width: number;\n}\n\n/**\n * The Powerlines context used in template rendering.\n */\nexport const MarkdownTableColumnContext: ComponentContext<MarkdownTableColumnContextInterface> =\n createNamedContext<MarkdownTableColumnContextInterface>(\n \"MarkdownTableColumn\",\n {} as MarkdownTableColumnContextInterface\n );\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function useMarkdownTableColumn() {\n return useContext<MarkdownTableColumnContextInterface>(\n MarkdownTableColumnContext\n );\n}\n\nexport interface MarkdownTableContextInterface<\n T extends Record<string, any> = Record<string, any>\n> {\n columns: MarkdownTableColumnContextInterface<T>[];\n data: T[];\n}\n\n/**\n * The Powerlines context used in template rendering.\n */\nexport const MarkdownTableContext: ComponentContext<MarkdownTableContextInterface> =\n createContext<MarkdownTableContextInterface>({\n columns: [],\n data: []\n });\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function useMarkdownTable() {\n return useContext<MarkdownTableContextInterface>(MarkdownTableContext);\n}\n"],"mappings":"uFAsBA,MAAY,EAA6B,EAAW,sBAAA,EAAA,CAAA,cAQlD,OAAA,EAAA,EAAA,CAKF,MAAK,EAAoB,EAAA,CACvB,QAAQ,EAAA,CACR,KAAC,EAAA,GAQH,SAAS,GAAW,CAClB,OAAE,EAAA,EAAA"}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./components/front-matter.cjs`),t=require(`./components/heading.cjs`),n=require(`./components/markdown-file.cjs`),r=require(`./contexts/markdown-table.cjs`),i=require(`./components/markdown-table.cjs`);require(`./components/index.cjs`),require(`./contexts/index.cjs`),exports.FrontMatter=e.FrontMatter,exports.Heading=t.Heading,exports.MarkdownFile=n.MarkdownFile,exports.MarkdownFileHeader=n.MarkdownFileHeader,exports.MarkdownTable=i.MarkdownTable,exports.MarkdownTableColumn=i.MarkdownTableColumn,exports.MarkdownTableColumnContext=r.MarkdownTableColumnContext,exports.MarkdownTableColumnHeader=i.MarkdownTableColumnHeader,exports.MarkdownTableContext=r.MarkdownTableContext,exports.useMarkdownTable=r.useMarkdownTable,exports.useMarkdownTableColumn=r.useMarkdownTableColumn;
@@ -1,6 +0,0 @@
1
- import { FrontMatter, FrontMatterProps } from "./components/front-matter.cjs";
2
- import { Heading, HeadingProps } from "./components/heading.cjs";
3
- import { MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps } from "./components/markdown-file.cjs";
4
- import { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn } from "./contexts/markdown-table.cjs";
5
- import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps } from "./components/markdown-table.cjs";
6
- export { FrontMatter, FrontMatterProps, Heading, HeadingProps, MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableContext, MarkdownTableContextInterface, MarkdownTableProps, useMarkdownTable, useMarkdownTableColumn };
@@ -1,6 +0,0 @@
1
- import { FrontMatter, FrontMatterProps } from "./components/front-matter.mjs";
2
- import { Heading, HeadingProps } from "./components/heading.mjs";
3
- import { MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps } from "./components/markdown-file.mjs";
4
- import { MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableContext, MarkdownTableContextInterface, useMarkdownTable, useMarkdownTableColumn } from "./contexts/markdown-table.mjs";
5
- import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps } from "./components/markdown-table.mjs";
6
- export { FrontMatter, FrontMatterProps, Heading, HeadingProps, MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnContext, MarkdownTableColumnContextInterface, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableContext, MarkdownTableContextInterface, MarkdownTableProps, useMarkdownTable, useMarkdownTableColumn };
@@ -1 +0,0 @@
1
- import{FrontMatter as e}from"./components/front-matter.mjs";import{Heading as t}from"./components/heading.mjs";import{MarkdownFile as n,MarkdownFileHeader as r}from"./components/markdown-file.mjs";import{MarkdownTableColumnContext as i,MarkdownTableContext as a,useMarkdownTable as o,useMarkdownTableColumn as s}from"./contexts/markdown-table.mjs";import{MarkdownTable as c,MarkdownTableColumn as l,MarkdownTableColumnHeader as u}from"./components/markdown-table.mjs";import"./components/index.mjs";import"./contexts/index.mjs";export{e as FrontMatter,t as Heading,n as MarkdownFile,r as MarkdownFileHeader,c as MarkdownTable,l as MarkdownTableColumn,i as MarkdownTableColumnContext,u as MarkdownTableColumnHeader,a as MarkdownTableContext,o as useMarkdownTable,s as useMarkdownTableColumn};
package/dist/render.cjs DELETED
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./_virtual/_rolldown/runtime.cjs`);const e=require(`./core/components/output.cjs`);require(`./core/index.cjs`);let t=require(`@stryke/path/file-path-fns`),n=require(`@alloy-js/core/jsx-runtime`),r=require(`@alloy-js/core`);async function i(i,a){let o={},s=await(0,r.renderAsync)((0,n.createComponent)(e.Output,{context:i,meta:o,children:a}));Object.keys(s).length?(i.debug(`Processing ${Object.keys(s).length} rendered output files from Alloy-js component templates.`),await(0,r.traverseOutput)(s,{visitDirectory:e=>{i.fs.existsSync(e.path)||i.fs.mkdirSync(e.path)},visitFile:e=>{if(`contents`in e){let n=o[e.path]??{};if(n.kind===`builtin`){if(!n.id)throw Error(`Built-in file "${e.path}" is missing its ID in the render metadata.`);i.emitBuiltinSync(e.contents,n.id,{skipFormat:n.skipFormat,storage:n.storage,extension:(0,t.findFileExtension)(e.path)})}else if(n.kind===`entry`)i.emitEntrySync(e.contents,e.path,{skipFormat:n.skipFormat,storage:n.storage,...n.typeDefinition??{}});else if(n.kind===`infrastructure`){if(!n.id)throw Error(`Infrastructure file "${e.path}" is missing its ID in the render metadata.`);i.emitInfrastructureSync(e.contents,n.id,{skipFormat:n.skipFormat,storage:n.storage,extension:(0,t.findFileExtension)(e.path)})}else i.emitSync(e.contents,e.path,n)}else i.fs.copySync(e.sourcePath,e.path)}})):i.debug(`No output files were rendered by Alloy-js component templates.`)}function a(t,i,a){return(0,r.printTree)((0,r.renderTree)((0,n.createComponent)(e.Output,{context:t,children:i})),a)}exports.render=i,exports.renderString=a;
package/dist/render.d.cts DELETED
@@ -1,38 +0,0 @@
1
- import { Children, PrintTreeOptions } from "@alloy-js/core";
2
- import { PluginContext } from "powerlines";
3
-
4
- //#region src/render.d.ts
5
- /**
6
- * A function to render children components within the [Alloy](https://alloy-framework.github.io) context, and write any saved content to the file system.
7
- *
8
- * @example
9
- * ```tsx
10
- * import { render } from "@powerlines/plugin-alloy/render";
11
- *
12
- * await render(context, <> ... </>);
13
- * ```
14
- *
15
- * @param context - The Powerlines plugin context.
16
- * @param children - The children components to render.
17
- * @returns A promise that resolves when rendering is complete.
18
- */
19
- declare function render<TContext extends PluginContext>(context: TContext, children: Children): Promise<void>;
20
- /**
21
- * A function to render children components within the [Alloy](https://alloy-framework.github.io) context and return the rendered output as a string.
22
- *
23
- * @example
24
- * ```tsx
25
- * import { renderString } from "@powerlines/plugin-alloy/render";
26
- *
27
- * const output = await renderString(context, <> ... </>);
28
- * ```
29
- *
30
- * @param context - The Powerlines plugin context.
31
- * @param children - The children components to render.
32
- * @param options - Optional print tree options.
33
- * @returns The rendered output as a string.
34
- */
35
- declare function renderString<TContext extends PluginContext>(context: TContext, children: Children, options?: PrintTreeOptions): string;
36
- //#endregion
37
- export { render, renderString };
38
- //# sourceMappingURL=render.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"render.d.cts","names":[],"sources":["../src/render.tsx"],"mappings":";;;;;;AA4CA;;;;;;;;;;;;iBAAsB,MAAA,kBAAwB,aAAA,CAAA,CAC5C,OAAA,EAAS,QAAA,EACT,QAAA,EAAU,QAAA,GAAQ,OAAA;;;;;;AA2FpB;;;;;;;;;;iBAAgB,YAAA,kBAA8B,aAAA,CAAA,CAC5C,OAAA,EAAS,QAAA,EACT,QAAA,EAAU,QAAA,EACV,OAAA,GAAU,gBAAA"}
package/dist/render.d.mts DELETED
@@ -1,38 +0,0 @@
1
- import { Children, PrintTreeOptions } from "@alloy-js/core";
2
- import { PluginContext } from "powerlines";
3
-
4
- //#region src/render.d.ts
5
- /**
6
- * A function to render children components within the [Alloy](https://alloy-framework.github.io) context, and write any saved content to the file system.
7
- *
8
- * @example
9
- * ```tsx
10
- * import { render } from "@powerlines/plugin-alloy/render";
11
- *
12
- * await render(context, <> ... </>);
13
- * ```
14
- *
15
- * @param context - The Powerlines plugin context.
16
- * @param children - The children components to render.
17
- * @returns A promise that resolves when rendering is complete.
18
- */
19
- declare function render<TContext extends PluginContext>(context: TContext, children: Children): Promise<void>;
20
- /**
21
- * A function to render children components within the [Alloy](https://alloy-framework.github.io) context and return the rendered output as a string.
22
- *
23
- * @example
24
- * ```tsx
25
- * import { renderString } from "@powerlines/plugin-alloy/render";
26
- *
27
- * const output = await renderString(context, <> ... </>);
28
- * ```
29
- *
30
- * @param context - The Powerlines plugin context.
31
- * @param children - The children components to render.
32
- * @param options - Optional print tree options.
33
- * @returns The rendered output as a string.
34
- */
35
- declare function renderString<TContext extends PluginContext>(context: TContext, children: Children, options?: PrintTreeOptions): string;
36
- //#endregion
37
- export { render, renderString };
38
- //# sourceMappingURL=render.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"render.d.mts","names":[],"sources":["../src/render.tsx"],"mappings":";;;;;;AA4CA;;;;;;;;;;;;iBAAsB,MAAA,kBAAwB,aAAA,CAAA,CAC5C,OAAA,EAAS,QAAA,EACT,QAAA,EAAU,QAAA,GAAQ,OAAA;;;;;;AA2FpB;;;;;;;;;;iBAAgB,YAAA,kBAA8B,aAAA,CAAA,CAC5C,OAAA,EAAS,QAAA,EACT,QAAA,EAAU,QAAA,EACV,OAAA,GAAU,gBAAA"}
package/dist/render.mjs DELETED
@@ -1,2 +0,0 @@
1
- import{Output as e}from"./core/components/output.mjs";import"./core/index.mjs";import{findFileExtension as t}from"@stryke/path/file-path-fns";import{createComponent as n}from"@alloy-js/core/jsx-runtime";import{printTree as r,renderAsync as i,renderTree as a,traverseOutput as o}from"@alloy-js/core";async function s(r,a){let s={},c=await i(n(e,{context:r,meta:s,children:a}));Object.keys(c).length?(r.debug(`Processing ${Object.keys(c).length} rendered output files from Alloy-js component templates.`),await o(c,{visitDirectory:e=>{r.fs.existsSync(e.path)||r.fs.mkdirSync(e.path)},visitFile:e=>{if(`contents`in e){let n=s[e.path]??{};if(n.kind===`builtin`){if(!n.id)throw Error(`Built-in file "${e.path}" is missing its ID in the render metadata.`);r.emitBuiltinSync(e.contents,n.id,{skipFormat:n.skipFormat,storage:n.storage,extension:t(e.path)})}else if(n.kind===`entry`)r.emitEntrySync(e.contents,e.path,{skipFormat:n.skipFormat,storage:n.storage,...n.typeDefinition??{}});else if(n.kind===`infrastructure`){if(!n.id)throw Error(`Infrastructure file "${e.path}" is missing its ID in the render metadata.`);r.emitInfrastructureSync(e.contents,n.id,{skipFormat:n.skipFormat,storage:n.storage,extension:t(e.path)})}else r.emitSync(e.contents,e.path,n)}else r.fs.copySync(e.sourcePath,e.path)}})):r.debug(`No output files were rendered by Alloy-js component templates.`)}function c(t,i,o){return r(a(n(e,{context:t,children:i})),o)}export{s as render,c as renderString};
2
- //# sourceMappingURL=render.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"render.mjs","names":[],"sources":["../src/render.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n Children,\n printTree,\n PrintTreeOptions,\n renderAsync,\n renderTree,\n traverseOutput\n} from \"@alloy-js/core\";\nimport { findFileExtension } from \"@stryke/path/file-path-fns\";\nimport { PluginContext } from \"powerlines\";\nimport { MetaItem, Output } from \"./core\";\n\n/**\n * A function to render children components within the [Alloy](https://alloy-framework.github.io) context, and write any saved content to the file system.\n *\n * @example\n * ```tsx\n * import { render } from \"@powerlines/plugin-alloy/render\";\n *\n * await render(context, <> ... </>);\n * ```\n *\n * @param context - The Powerlines plugin context.\n * @param children - The children components to render.\n * @returns A promise that resolves when rendering is complete.\n */\nexport async function render<TContext extends PluginContext>(\n context: TContext,\n children: Children\n) {\n const meta = {} as Record<string, MetaItem>;\n const output = await renderAsync(\n <Output<TContext> context={context} meta={meta}>\n {children}\n </Output>\n );\n\n if (!Object.keys(output).length) {\n context.debug(\n \"No output files were rendered by Alloy-js component templates.\"\n );\n } else {\n context.debug(\n `Processing ${\n Object.keys(output).length\n } rendered output files from Alloy-js component templates.`\n );\n\n await traverseOutput(output, {\n visitDirectory: directory => {\n if (context.fs.existsSync(directory.path)) {\n return;\n }\n\n context.fs.mkdirSync(directory.path);\n },\n visitFile: file => {\n if (\"contents\" in file) {\n const metadata = meta[file.path] ?? {};\n if (metadata.kind === \"builtin\") {\n if (!metadata.id) {\n throw new Error(\n `Built-in file \"${\n file.path\n }\" is missing its ID in the render metadata.`\n );\n }\n\n context.emitBuiltinSync(file.contents, metadata.id, {\n skipFormat: metadata.skipFormat,\n storage: metadata.storage,\n extension: findFileExtension(file.path)\n });\n } else if (metadata.kind === \"entry\") {\n context.emitEntrySync(file.contents, file.path, {\n skipFormat: metadata.skipFormat,\n storage: metadata.storage,\n ...(metadata.typeDefinition ?? {})\n });\n } else if (metadata.kind === \"infrastructure\") {\n if (!metadata.id) {\n throw new Error(\n `Infrastructure file \"${\n file.path\n }\" is missing its ID in the render metadata.`\n );\n }\n\n context.emitInfrastructureSync(file.contents, metadata.id, {\n skipFormat: metadata.skipFormat,\n storage: metadata.storage,\n extension: findFileExtension(file.path)\n });\n } else {\n context.emitSync(file.contents, file.path, metadata);\n }\n } else {\n context.fs.copySync(file.sourcePath, file.path);\n }\n }\n });\n }\n}\n\n/**\n * A function to render children components within the [Alloy](https://alloy-framework.github.io) context and return the rendered output as a string.\n *\n * @example\n * ```tsx\n * import { renderString } from \"@powerlines/plugin-alloy/render\";\n *\n * const output = await renderString(context, <> ... </>);\n * ```\n *\n * @param context - The Powerlines plugin context.\n * @param children - The children components to render.\n * @param options - Optional print tree options.\n * @returns The rendered output as a string.\n */\nexport function renderString<TContext extends PluginContext>(\n context: TContext,\n children: Children,\n options?: PrintTreeOptions\n) {\n const tree = renderTree(\n <Output<TContext> context={context}>{children}</Output>\n );\n\n return printTree(tree, options);\n}\n"],"mappings":"2SAsCA,eAAK,EAAA,EAAA,EAAA,CACJ,IAAA,EAAA,EAAA,CACG,EAAa,MAAM,EAAY,EAAc,EAAA,CACvC,UACN,OACF,WACF,CAAA,CAAA,CACE,OAAS,KAAQ,EAAA,CAAA,QAGjB,EAAU,MAAM,cAAU,OAAQ,KAAQ,EAAC,CAAA,OAAA,2DAAA,CAC3C,MAAM,EAAe,EAAA,CAClB,eAAiB,GAAS,CACxB,EAAQ,GAAA,WAAA,EAAA,KAAA,0BAKX,UAAa,GAAA,CACV,GAAG,aAAa,EAAK,CACvB,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,CACI,GAAA,EAAA,OAAA,UAAA,CACG,GAAA,CAAK,EAAA,GACV,MAAY,MAAA,kBAAA,EAAA,KAAA,6CAAA,CAEX,EAAS,gBAAkB,EAAM,SAAG,EAAU,GAAU,CAC3D,WAAA,EAAA,6BAEK,UAAe,EAAQ,EAAA,KAAA,CAC3B,CAAA,SACc,EAAG,OAAW,QACxB,EAAM,cAAA,EAAA,SAAA,EAAA,KAAA,CACR,WAAA,EAAA,6BAEA,GAAU,EAAC,gBAAyB,EAAA,CACrC,CAAA,SACc,EAAI,OAAA,iBAAA,CACb,GAAC,CAAA,EAAa,GAChB,MAAc,MAAG,wBAAqB,EAAA,KAAA,6CAAA,CAEpC,EAAK,uBAAa,EAAA,SAAA,EAAA,GAAA,CAChB,WAAU,EAAK,WACf,QAAS,EAAS,QAClB,UAAS,EAAA,EAAA,KAAA,CACV,CAAC,MAEF,EAAA,SAAA,EAAA,SAAA,EAAA,KAAA,EAAA,MAGF,EAAI,GAAA,SAAY,EAAS,WAAU,EAAA,KAAA,EAGxC,CAAC,EA5CJ,EAAU,MAAA,iEAAA,CA+DZ,SAAc,EAAW,EAAA,EAAuB,EAAI,CAKlD,OAAO,EAJK,EAAA,EAAA,EAAA,CACF,UACA,WACT,CAAC,CACW,CAAA,EAAA"}
File without changes
@@ -1,126 +0,0 @@
1
- import { Children, Context } from "@alloy-js/core";
2
- import { ResolvedEntryTypeDefinition, StoragePreset } from "powerlines";
3
- import { SourceFileContext } from "@alloy-js/typescript";
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 {
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.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"components.d.cts","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,iBAAA;;;;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,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,2 +0,0 @@
1
- export{};
2
- //# 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