@powerlines/plugin-alloy 0.19.13 → 0.19.15

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 (364) hide show
  1. package/dist/builtin-file-0k9DccCv.cjs +67 -0
  2. package/dist/builtin-file-DcLp9sck.d.mts +35 -0
  3. package/dist/builtin-file-DcLp9sck.d.mts.map +1 -0
  4. package/dist/builtin-file-DtkZ-2Hs.d.cts +35 -0
  5. package/dist/builtin-file-DtkZ-2Hs.d.cts.map +1 -0
  6. package/dist/builtin-file-Ie_jPokg.mjs +62 -0
  7. package/dist/builtin-file-Ie_jPokg.mjs.map +1 -0
  8. package/dist/builtin-file-MrUfX3YE.d.cts +35 -0
  9. package/dist/builtin-file-MrUfX3YE.d.cts.map +1 -0
  10. package/dist/builtin-file-RXdRpQs-.d.mts +35 -0
  11. package/dist/builtin-file-RXdRpQs-.d.mts.map +1 -0
  12. package/dist/capnp-CRMDa2Ok.d.mts +88 -0
  13. package/dist/capnp-CRMDa2Ok.d.mts.map +1 -0
  14. package/dist/capnp-ClfqI-5t.cjs +356 -0
  15. package/dist/capnp-CnQcwo0s.mjs +260 -0
  16. package/dist/capnp-CnQcwo0s.mjs.map +1 -0
  17. package/dist/capnp-YnGBPkLK.d.cts +88 -0
  18. package/dist/capnp-YnGBPkLK.d.cts.map +1 -0
  19. package/dist/{_virtual/rolldown_runtime.cjs → chunk-CbDLau6x.cjs} +6 -1
  20. package/dist/components-B0evB5xd.cjs +0 -0
  21. package/dist/components-BNK9p5AE.cjs +0 -0
  22. package/dist/components-C_Rnle_h.mjs +1 -0
  23. package/dist/components-CpjG2zC9.mjs +1 -0
  24. package/dist/components-CrWk5KiP.mjs +1 -0
  25. package/dist/components-CyQi7RHT.mjs +1 -0
  26. package/dist/components-DPKSrvP-.cjs +0 -0
  27. package/dist/components-IRVnipN0.d.cts +143 -0
  28. package/dist/components-IRVnipN0.d.cts.map +1 -0
  29. package/dist/components-ISRFDWTF.cjs +0 -0
  30. package/dist/components-oHSM7vmp.d.mts +143 -0
  31. package/dist/components-oHSM7vmp.d.mts.map +1 -0
  32. package/dist/context--KBspFnw.cjs +79 -0
  33. package/dist/context-Du_bVzRZ.d.mts +67 -0
  34. package/dist/context-Du_bVzRZ.d.mts.map +1 -0
  35. package/dist/context-Gqs3Ru42.d.cts +67 -0
  36. package/dist/context-Gqs3Ru42.d.cts.map +1 -0
  37. package/dist/context-e2kZWEFW.mjs +51 -0
  38. package/dist/context-e2kZWEFW.mjs.map +1 -0
  39. package/dist/contexts-DezKayEz.cjs +0 -0
  40. package/dist/contexts-J643Nrrt.cjs +0 -0
  41. package/dist/contexts-_jq-yJQG.mjs +1 -0
  42. package/dist/contexts-juWSyBfb.mjs +1 -0
  43. package/dist/core/components/index.cjs +11 -6
  44. package/dist/core/components/index.d.cts +6 -3
  45. package/dist/core/components/index.d.mts +6 -3
  46. package/dist/core/components/index.mjs +8 -3
  47. package/dist/core/components/output.cjs +2 -32
  48. package/dist/core/components/output.d.cts +2 -22
  49. package/dist/core/components/output.d.mts +2 -22
  50. package/dist/core/components/output.mjs +1 -30
  51. package/dist/core/components/single-line-comment.cjs +2 -21
  52. package/dist/core/components/single-line-comment.d.cts +2 -21
  53. package/dist/core/components/single-line-comment.d.mts +2 -21
  54. package/dist/core/components/single-line-comment.mjs +1 -19
  55. package/dist/core/components/source-file.cjs +6 -63
  56. package/dist/core/components/source-file.d.cts +2 -31
  57. package/dist/core/components/source-file.d.mts +2 -31
  58. package/dist/core/components/source-file.mjs +5 -60
  59. package/dist/core/contexts/context.cjs +7 -53
  60. package/dist/core/contexts/context.d.cts +1 -65
  61. package/dist/core/contexts/context.d.mts +1 -65
  62. package/dist/core/contexts/context.mjs +2 -48
  63. package/dist/core/contexts/index.cjs +17 -15
  64. package/dist/core/contexts/index.d.cts +4 -2
  65. package/dist/core/contexts/index.d.mts +4 -2
  66. package/dist/core/contexts/index.mjs +4 -2
  67. package/dist/core/contexts/reflection.cjs +9 -67
  68. package/dist/core/contexts/reflection.d.cts +2 -51
  69. package/dist/core/contexts/reflection.d.mts +2 -51
  70. package/dist/core/contexts/reflection.mjs +1 -58
  71. package/dist/core/index.cjs +24 -23
  72. package/dist/core/index.d.cts +8 -7
  73. package/dist/core/index.d.mts +8 -7
  74. package/dist/core/index.mjs +8 -7
  75. package/dist/create-builtin-BiKyN2s2.cjs +24 -0
  76. package/dist/create-builtin-DFiWd6Zc.d.cts +16 -0
  77. package/dist/create-builtin-DFiWd6Zc.d.cts.map +1 -0
  78. package/dist/create-builtin-DQuJyeZw.mjs +19 -0
  79. package/dist/create-builtin-DQuJyeZw.mjs.map +1 -0
  80. package/dist/create-builtin-FtQ6qKzX.d.mts +16 -0
  81. package/dist/create-builtin-FtQ6qKzX.d.mts.map +1 -0
  82. package/dist/dynamic-import-statement-B5Pdwr4Z.d.mts +33 -0
  83. package/dist/dynamic-import-statement-B5Pdwr4Z.d.mts.map +1 -0
  84. package/dist/dynamic-import-statement-BbNJchii.mjs +25 -0
  85. package/dist/dynamic-import-statement-BbNJchii.mjs.map +1 -0
  86. package/dist/dynamic-import-statement-DNJlI3ND.d.cts +33 -0
  87. package/dist/dynamic-import-statement-DNJlI3ND.d.cts.map +1 -0
  88. package/dist/dynamic-import-statement-DTSUoDt2.d.cts +33 -0
  89. package/dist/dynamic-import-statement-DTSUoDt2.d.cts.map +1 -0
  90. package/dist/dynamic-import-statement-Dy_MY_Ua.cjs +30 -0
  91. package/dist/entry-file-CfMzpF03.d.cts +28 -0
  92. package/dist/entry-file-CfMzpF03.d.cts.map +1 -0
  93. package/dist/entry-file-CnC6P3j6.d.mts +28 -0
  94. package/dist/entry-file-CnC6P3j6.d.mts.map +1 -0
  95. package/dist/entry-file-D64eurjX.mjs +41 -0
  96. package/dist/entry-file-D64eurjX.mjs.map +1 -0
  97. package/dist/entry-file-DVueLVSn.d.cts +28 -0
  98. package/dist/entry-file-DVueLVSn.d.cts.map +1 -0
  99. package/dist/entry-file-GR5Rsn25.cjs +47 -0
  100. package/dist/entry-file-ayzYWEo5.d.mts +28 -0
  101. package/dist/entry-file-ayzYWEo5.d.mts.map +1 -0
  102. package/dist/front-matter-2eGRXX11.mjs +28 -0
  103. package/dist/front-matter-2eGRXX11.mjs.map +1 -0
  104. package/dist/front-matter-DGpkM9OE.d.mts +16 -0
  105. package/dist/front-matter-DGpkM9OE.d.mts.map +1 -0
  106. package/dist/front-matter-DZ1tB-Uj.cjs +33 -0
  107. package/dist/front-matter-gcouRI-6.d.cts +16 -0
  108. package/dist/front-matter-gcouRI-6.d.cts.map +1 -0
  109. package/dist/front-matter-u9H7VPAF.d.cts +16 -0
  110. package/dist/front-matter-u9H7VPAF.d.cts.map +1 -0
  111. package/dist/helpers/capnp.cjs +18 -276
  112. package/dist/helpers/capnp.d.cts +1 -86
  113. package/dist/helpers/capnp.d.mts +1 -86
  114. package/dist/helpers/capnp.mjs +1 -257
  115. package/dist/helpers/create-builtin.cjs +2 -18
  116. package/dist/helpers/create-builtin.d.cts +1 -14
  117. package/dist/helpers/create-builtin.d.mts +1 -14
  118. package/dist/helpers/create-builtin.mjs +1 -16
  119. package/dist/helpers/index.cjs +23 -23
  120. package/dist/helpers/index.d.cts +4 -4
  121. package/dist/helpers/index.d.mts +4 -4
  122. package/dist/helpers/index.mjs +4 -4
  123. package/dist/helpers/refkey.cjs +2 -15
  124. package/dist/helpers/refkey.d.cts +1 -12
  125. package/dist/helpers/refkey.d.mts +1 -12
  126. package/dist/helpers/refkey.mjs +1 -13
  127. package/dist/helpers/typescript.cjs +2 -45
  128. package/dist/helpers/typescript.d.cts +1 -24
  129. package/dist/helpers/typescript.d.mts +1 -24
  130. package/dist/helpers/typescript.mjs +1 -43
  131. package/dist/index-B-Y-ZG2x.d.mts +1 -0
  132. package/dist/index-BH1nuHdZ.d.cts +1 -0
  133. package/dist/index-BUYyA1Xh.d.cts +1 -0
  134. package/dist/index-C-lwXyQ6.d.mts +1 -0
  135. package/dist/index-C6HcjJiY.d.mts +1 -0
  136. package/dist/index-C6yvNuzO.d.cts +1 -0
  137. package/dist/index-CrhZaFgN.d.cts +1 -0
  138. package/dist/index-CzItj62a.d.mts +1 -0
  139. package/dist/index-DcDTDbdz.d.cts +1 -0
  140. package/dist/index-hcx6LMSC.d.mts +1 -0
  141. package/dist/index.cjs +8 -6
  142. package/dist/index.d.cts +3 -2
  143. package/dist/index.d.cts.map +1 -0
  144. package/dist/index.d.mts +3 -2
  145. package/dist/index.d.mts.map +1 -0
  146. package/dist/index.mjs +8 -5
  147. package/dist/index.mjs.map +1 -0
  148. package/dist/markdown/components/front-matter.cjs +2 -27
  149. package/dist/markdown/components/front-matter.d.cts +1 -14
  150. package/dist/markdown/components/front-matter.d.mts +1 -14
  151. package/dist/markdown/components/front-matter.mjs +1 -25
  152. package/dist/markdown/components/index.cjs +17 -9
  153. package/dist/markdown/components/index.d.cts +7 -3
  154. package/dist/markdown/components/index.d.mts +7 -3
  155. package/dist/markdown/components/index.mjs +11 -3
  156. package/dist/markdown/components/markdown-file.cjs +10 -130
  157. package/dist/markdown/components/markdown-file.d.cts +4 -27
  158. package/dist/markdown/components/markdown-file.d.mts +4 -27
  159. package/dist/markdown/components/markdown-file.mjs +8 -127
  160. package/dist/markdown/components/markdown-table.cjs +5 -100
  161. package/dist/markdown/components/markdown-table.d.cts +3 -26
  162. package/dist/markdown/components/markdown-table.d.mts +3 -26
  163. package/dist/markdown/components/markdown-table.mjs +2 -96
  164. package/dist/markdown/contexts/index.cjs +6 -5
  165. package/dist/markdown/contexts/index.d.cts +2 -1
  166. package/dist/markdown/contexts/index.d.mts +2 -1
  167. package/dist/markdown/contexts/index.mjs +2 -1
  168. package/dist/markdown/contexts/markdown-table.cjs +5 -36
  169. package/dist/markdown/contexts/markdown-table.d.cts +1 -36
  170. package/dist/markdown/contexts/markdown-table.d.mts +1 -36
  171. package/dist/markdown/contexts/markdown-table.mjs +1 -31
  172. package/dist/markdown/index.cjs +22 -16
  173. package/dist/markdown/index.d.cts +8 -6
  174. package/dist/markdown/index.d.mts +8 -6
  175. package/dist/markdown/index.mjs +12 -6
  176. package/dist/markdown-file-CAwtMwsl.cjs +141 -0
  177. package/dist/markdown-file-CIGTz9xQ.d.cts +29 -0
  178. package/dist/markdown-file-CIGTz9xQ.d.cts.map +1 -0
  179. package/dist/markdown-file-CxDM6MCV.d.cts +29 -0
  180. package/dist/markdown-file-CxDM6MCV.d.cts.map +1 -0
  181. package/dist/markdown-file-DIcSvowq.mjs +130 -0
  182. package/dist/markdown-file-DIcSvowq.mjs.map +1 -0
  183. package/dist/markdown-file-EtJaVhJ3.d.mts +29 -0
  184. package/dist/markdown-file-EtJaVhJ3.d.mts.map +1 -0
  185. package/dist/markdown-table-AoJIzA89.d.cts +28 -0
  186. package/dist/markdown-table-AoJIzA89.d.cts.map +1 -0
  187. package/dist/markdown-table-BWPm6GbJ.cjs +57 -0
  188. package/dist/markdown-table-Br2Ihl2z.d.cts +38 -0
  189. package/dist/markdown-table-Br2Ihl2z.d.cts.map +1 -0
  190. package/dist/markdown-table-CFL7L6rA.d.mts +38 -0
  191. package/dist/markdown-table-CFL7L6rA.d.mts.map +1 -0
  192. package/dist/markdown-table-ChvYobzz.d.mts +28 -0
  193. package/dist/markdown-table-ChvYobzz.d.mts.map +1 -0
  194. package/dist/markdown-table-D3DonpwR.mjs +99 -0
  195. package/dist/markdown-table-D3DonpwR.mjs.map +1 -0
  196. package/dist/markdown-table-DFSFKzCN.d.cts +28 -0
  197. package/dist/markdown-table-DFSFKzCN.d.cts.map +1 -0
  198. package/dist/markdown-table-eTnxxb46.cjs +116 -0
  199. package/dist/markdown-table-g6DeP10e.mjs +34 -0
  200. package/dist/markdown-table-g6DeP10e.mjs.map +1 -0
  201. package/dist/output-BnmXIAFP.d.cts +24 -0
  202. package/dist/output-BnmXIAFP.d.cts.map +1 -0
  203. package/dist/output-CMC94bm-.d.mts +24 -0
  204. package/dist/output-CMC94bm-.d.mts.map +1 -0
  205. package/dist/output-CQXrGP3y.cjs +38 -0
  206. package/dist/output-D3UQ5nZo.mjs +33 -0
  207. package/dist/output-D3UQ5nZo.mjs.map +1 -0
  208. package/dist/output-Dq1RRbJY.d.cts +24 -0
  209. package/dist/output-Dq1RRbJY.d.cts.map +1 -0
  210. package/dist/plugin-B8wUxSXi.cjs +0 -0
  211. package/dist/plugin-BmQ6pIes.mjs +1 -0
  212. package/dist/plugin-C6SupJ8C.d.cts +41 -0
  213. package/dist/plugin-C6SupJ8C.d.cts.map +1 -0
  214. package/dist/plugin-bEu9fq1G.d.mts +41 -0
  215. package/dist/plugin-bEu9fq1G.d.mts.map +1 -0
  216. package/dist/record-expression-6ElbFyR0.cjs +17 -0
  217. package/dist/record-expression-BjXMzi4r.mjs +12 -0
  218. package/dist/record-expression-BjXMzi4r.mjs.map +1 -0
  219. package/dist/record-expression-adlQJuNw.d.cts +13 -0
  220. package/dist/record-expression-adlQJuNw.d.cts.map +1 -0
  221. package/dist/record-expression-c9kQA93k.d.mts +13 -0
  222. package/dist/record-expression-c9kQA93k.d.mts.map +1 -0
  223. package/dist/refkey-Bf_2_U5t.d.cts +14 -0
  224. package/dist/refkey-Bf_2_U5t.d.cts.map +1 -0
  225. package/dist/refkey-C08kDOQ0.cjs +21 -0
  226. package/dist/refkey-CIFiGvgZ.mjs +16 -0
  227. package/dist/refkey-CIFiGvgZ.mjs.map +1 -0
  228. package/dist/refkey-CSZgFc0P.d.mts +14 -0
  229. package/dist/refkey-CSZgFc0P.d.mts.map +1 -0
  230. package/dist/reflection-B-NMNIoB.mjs +61 -0
  231. package/dist/reflection-B-NMNIoB.mjs.map +1 -0
  232. package/dist/reflection-CUo0047e.d.mts +53 -0
  233. package/dist/reflection-CUo0047e.d.mts.map +1 -0
  234. package/dist/reflection-DHpdhvwI.cjs +108 -0
  235. package/dist/reflection-xU09ifzp.d.cts +53 -0
  236. package/dist/reflection-xU09ifzp.d.cts.map +1 -0
  237. package/dist/single-line-comment-B258_x1B.d.cts +23 -0
  238. package/dist/single-line-comment-B258_x1B.d.cts.map +1 -0
  239. package/dist/single-line-comment-COZ9RWsm.cjs +27 -0
  240. package/dist/single-line-comment-D9dIL45u.d.cts +23 -0
  241. package/dist/single-line-comment-D9dIL45u.d.cts.map +1 -0
  242. package/dist/single-line-comment-PMv_zrfe.d.mts +23 -0
  243. package/dist/single-line-comment-PMv_zrfe.d.mts.map +1 -0
  244. package/dist/single-line-comment-mOQtfhWt.mjs +22 -0
  245. package/dist/single-line-comment-mOQtfhWt.mjs.map +1 -0
  246. package/dist/source-file-95cXzcLB.d.cts +33 -0
  247. package/dist/source-file-95cXzcLB.d.cts.map +1 -0
  248. package/dist/source-file-BAVTBVJy.cjs +68 -0
  249. package/dist/source-file-BTsyACav.d.cts +33 -0
  250. package/dist/source-file-BTsyACav.d.cts.map +1 -0
  251. package/dist/source-file-BiJK-nH_.mjs +62 -0
  252. package/dist/source-file-BiJK-nH_.mjs.map +1 -0
  253. package/dist/source-file-CQl0UCgf.d.mts +33 -0
  254. package/dist/source-file-CQl0UCgf.d.mts.map +1 -0
  255. package/dist/tsdoc-BId4fp5_.cjs +585 -0
  256. package/dist/tsdoc-CfvwK4Ml.d.cts +164 -0
  257. package/dist/tsdoc-CfvwK4Ml.d.cts.map +1 -0
  258. package/dist/tsdoc-Crv526i6.mjs +466 -0
  259. package/dist/tsdoc-Crv526i6.mjs.map +1 -0
  260. package/dist/tsdoc-OUuKjTbh.d.mts +164 -0
  261. package/dist/tsdoc-OUuKjTbh.d.mts.map +1 -0
  262. package/dist/tsdoc-reflection-B4bfElmj.d.cts +19 -0
  263. package/dist/tsdoc-reflection-B4bfElmj.d.cts.map +1 -0
  264. package/dist/tsdoc-reflection-BbjnIsUV.d.cts +19 -0
  265. package/dist/tsdoc-reflection-BbjnIsUV.d.cts.map +1 -0
  266. package/dist/tsdoc-reflection-D-eKs6S1.mjs +176 -0
  267. package/dist/tsdoc-reflection-D-eKs6S1.mjs.map +1 -0
  268. package/dist/tsdoc-reflection-IH-Mt2o_.cjs +193 -0
  269. package/dist/tsdoc-reflection-ulqYHfKL.d.mts +19 -0
  270. package/dist/tsdoc-reflection-ulqYHfKL.d.mts.map +1 -0
  271. package/dist/types/components.cjs +1 -0
  272. package/dist/types/components.d.cts +1 -141
  273. package/dist/types/components.d.mts +1 -141
  274. package/dist/types/components.mjs +2 -0
  275. package/dist/types/index.cjs +2 -0
  276. package/dist/types/index.d.cts +2 -2
  277. package/dist/types/index.d.mts +2 -2
  278. package/dist/types/index.mjs +3 -0
  279. package/dist/types/plugin.cjs +1 -0
  280. package/dist/types/plugin.d.cts +1 -39
  281. package/dist/types/plugin.d.mts +1 -39
  282. package/dist/types/plugin.mjs +2 -0
  283. package/dist/typescript/components/builtin-file.cjs +10 -61
  284. package/dist/typescript/components/builtin-file.d.cts +5 -33
  285. package/dist/typescript/components/builtin-file.d.mts +5 -33
  286. package/dist/typescript/components/builtin-file.mjs +9 -59
  287. package/dist/typescript/components/dynamic-import-statement.cjs +2 -24
  288. package/dist/typescript/components/dynamic-import-statement.d.cts +1 -31
  289. package/dist/typescript/components/dynamic-import-statement.d.mts +1 -31
  290. package/dist/typescript/components/dynamic-import-statement.mjs +1 -22
  291. package/dist/typescript/components/entry-file.cjs +9 -41
  292. package/dist/typescript/components/entry-file.d.cts +4 -26
  293. package/dist/typescript/components/entry-file.d.mts +4 -26
  294. package/dist/typescript/components/entry-file.mjs +8 -38
  295. package/dist/typescript/components/index.cjs +50 -43
  296. package/dist/typescript/components/index.d.cts +12 -9
  297. package/dist/typescript/components/index.d.mts +12 -9
  298. package/dist/typescript/components/index.mjs +16 -9
  299. package/dist/typescript/components/record-expression.cjs +2 -11
  300. package/dist/typescript/components/record-expression.d.cts +1 -11
  301. package/dist/typescript/components/record-expression.d.mts +1 -11
  302. package/dist/typescript/components/record-expression.mjs +1 -9
  303. package/dist/typescript/components/tsdoc-reflection.cjs +8 -177
  304. package/dist/typescript/components/tsdoc-reflection.d.cts +3 -17
  305. package/dist/typescript/components/tsdoc-reflection.d.mts +3 -17
  306. package/dist/typescript/components/tsdoc-reflection.mjs +5 -173
  307. package/dist/typescript/components/tsdoc.cjs +23 -484
  308. package/dist/typescript/components/tsdoc.d.cts +2 -162
  309. package/dist/typescript/components/tsdoc.d.mts +2 -162
  310. package/dist/typescript/components/tsdoc.mjs +3 -463
  311. package/dist/typescript/components/typescript-file.cjs +10 -215
  312. package/dist/typescript/components/typescript-file.d.cts +3 -48
  313. package/dist/typescript/components/typescript-file.d.mts +3 -48
  314. package/dist/typescript/components/typescript-file.mjs +7 -211
  315. package/dist/typescript/components/typescript-interface.cjs +8 -72
  316. package/dist/typescript/components/typescript-interface.d.cts +2 -24
  317. package/dist/typescript/components/typescript-interface.d.mts +2 -24
  318. package/dist/typescript/components/typescript-interface.mjs +6 -69
  319. package/dist/typescript/components/typescript-object.cjs +8 -124
  320. package/dist/typescript/components/typescript-object.d.cts +2 -28
  321. package/dist/typescript/components/typescript-object.d.mts +2 -28
  322. package/dist/typescript/components/typescript-object.mjs +6 -121
  323. package/dist/typescript/index.cjs +50 -44
  324. package/dist/typescript/index.d.cts +12 -10
  325. package/dist/typescript/index.d.mts +12 -10
  326. package/dist/typescript/index.mjs +16 -10
  327. package/dist/typescript-BCc7kwL_.mjs +46 -0
  328. package/dist/typescript-BCc7kwL_.mjs.map +1 -0
  329. package/dist/typescript-BbjCTT04.cjs +51 -0
  330. package/dist/typescript-DWzPF4n4.d.mts +26 -0
  331. package/dist/typescript-DWzPF4n4.d.mts.map +1 -0
  332. package/dist/typescript-file-BWaBMfMr.d.mts +50 -0
  333. package/dist/typescript-file-BWaBMfMr.d.mts.map +1 -0
  334. package/dist/typescript-file-BmLwVIQP.cjs +231 -0
  335. package/dist/typescript-file-C5NjN3H2.mjs +214 -0
  336. package/dist/typescript-file-C5NjN3H2.mjs.map +1 -0
  337. package/dist/typescript-file-MYxikvB6.d.cts +50 -0
  338. package/dist/typescript-file-MYxikvB6.d.cts.map +1 -0
  339. package/dist/typescript-file-fOVF6YF2.d.cts +50 -0
  340. package/dist/typescript-file-fOVF6YF2.d.cts.map +1 -0
  341. package/dist/typescript-interface-BNdWrKgb.cjs +83 -0
  342. package/dist/typescript-interface-D-d9A720.d.cts +26 -0
  343. package/dist/typescript-interface-D-d9A720.d.cts.map +1 -0
  344. package/dist/typescript-interface-LN3uCdA6.mjs +72 -0
  345. package/dist/typescript-interface-LN3uCdA6.mjs.map +1 -0
  346. package/dist/typescript-interface-MV4qwTHs.d.mts +26 -0
  347. package/dist/typescript-interface-MV4qwTHs.d.mts.map +1 -0
  348. package/dist/typescript-o4AsClkT.d.cts +26 -0
  349. package/dist/typescript-o4AsClkT.d.cts.map +1 -0
  350. package/dist/typescript-object-Bbza8TK7.d.cts +30 -0
  351. package/dist/typescript-object-Bbza8TK7.d.cts.map +1 -0
  352. package/dist/typescript-object-C7p9fJBF.d.mts +30 -0
  353. package/dist/typescript-object-C7p9fJBF.d.mts.map +1 -0
  354. package/dist/typescript-object-DIyR8xhW.mjs +124 -0
  355. package/dist/typescript-object-DIyR8xhW.mjs.map +1 -0
  356. package/dist/typescript-object-ENaG1YGI.cjs +135 -0
  357. package/dist/typescript-object-v1WiBD8W.d.cts +30 -0
  358. package/dist/typescript-object-v1WiBD8W.d.cts.map +1 -0
  359. package/dist/unctx-MFxscYXI.mjs +12 -0
  360. package/dist/unctx-MFxscYXI.mjs.map +1 -0
  361. package/dist/unctx-r7Vvh6XR.cjs +17 -0
  362. package/package.json +6 -6
  363. package/dist/internal/unctx.cjs +0 -8
  364. package/dist/internal/unctx.mjs +0 -7
@@ -1,45 +1,3 @@
1
- import { stringifyValue } from "@powerlines/deepkit/utilities";
2
- import { camelCase } from "@stryke/string-format/camel-case";
3
- import { titleCase } from "@stryke/string-format/title-case";
4
- import { isUndefined } from "@stryke/type-checks/is-undefined";
1
+ import { t as generateTypeScriptObject } from "../typescript-BCc7kwL_.mjs";
5
2
 
6
- //#region src/helpers/typescript.ts
7
- /**
8
- * Generates a TypeScript object for the given reflection class.
9
- *
10
- * @param reflection - The reflection class to generate the object for.
11
- * @param options - Options for generating the object.
12
- * @returns A string containing the TypeScript object definition.
13
- */
14
- function generateTypeScriptObject(reflection, options = {}) {
15
- if (!reflection) return "";
16
- return `
17
- /**
18
- * ${reflection.getDescription() || `${titleCase(options.overrideName || reflection.getClassName() || reflection.getName())} object instance`}.
19
- */
20
- export const ${camelCase(options.overrideName || reflection.getName())}${options.overrideExtends !== false && (options.overrideExtends || reflection.getSuperReflectionClass()?.getName()) ? `: ${options.overrideExtends || reflection.getSuperReflectionClass()?.getName()}` : ""} = {
21
- ${reflection.getProperties().filter((item) => !item.isIgnored() && !isUndefined(options.defaultValues?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
22
- if (isUndefined(ret) && !isUndefined(options.defaultValues?.[alias])) return options.defaultValues?.[alias];
23
- return ret;
24
- }, void 0) ?? item.getDefaultValue())).sort((a, b) => a.isReadonly() && b.isReadonly() || !a.isReadonly() && !b.isReadonly() ? a.getNameAsString().localeCompare(b.getNameAsString()) : a.isReadonly() ? 1 : -1).map((item) => ` /**
25
- * ${item.getDescription() || item.getTitle() || titleCase(item.getNameAsString())}
26
- *
27
- * @title ${item.getTitle() || titleCase(item.getNameAsString())}${item.getAlias().length ? `
28
- ${item.getAlias().map((alias) => ` * @alias ${alias}`).join("\n")}` : ""}${item.getDomain() ? `
29
- * @domain ${item.getDomain()}` : ""}${item.getPermission().length ? `
30
- ${item.getPermission().map((permission) => ` * @permission ${permission}`).join("\n")}` : ""}${item.isInternal() ? `
31
- * @internal` : ""}${item.isReadonly() ? `
32
- * @readonly` : ""}${item.isIgnored() ? `
33
- * @ignored` : ""}${item.isHidden() ? `
34
- * @hidden` : ""}
35
- */
36
- ${item.getNameAsString()}: ${stringifyValue(item.getType(), options.defaultValues?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
37
- if (isUndefined(ret) && !isUndefined(options.defaultValues?.[alias])) return options.defaultValues?.[alias];
38
- return ret;
39
- }, void 0) ?? item.getDefaultValue())}`).join(", \n")}
40
- };
41
- `;
42
- }
43
-
44
- //#endregion
45
3
  export { generateTypeScriptObject };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
- const require_core_components_output = require('./core/components/output.cjs');
4
- const require_unctx = require('./internal/unctx.cjs');
2
+ const require_chunk = require('./chunk-CbDLau6x.cjs');
3
+ const require_output = require('./output-CQXrGP3y.cjs');
4
+ const require_unctx = require('./unctx-r7Vvh6XR.cjs');
5
5
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
6
  let __alloy_js_core = require("@alloy-js/core");
7
7
  let __alloy_js_rollup_plugin = require("@alloy-js/rollup-plugin");
8
- __alloy_js_rollup_plugin = require_rolldown_runtime.__toESM(__alloy_js_rollup_plugin);
8
+ __alloy_js_rollup_plugin = require_chunk.__toESM(__alloy_js_rollup_plugin);
9
9
  let __stryke_json_storm_json = require("@stryke/json/storm-json");
10
10
  let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
11
11
 
@@ -55,14 +55,16 @@ const plugin = (options = {}) => {
55
55
  meta
56
56
  }, async () => {
57
57
  const _self$ = this;
58
- await (0, __alloy_js_core.traverseOutput)(await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_output.Output, {
58
+ const output = await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_output.Output, {
59
59
  context: _self$,
60
60
  meta,
61
61
  get basePath() {
62
62
  return _self$.workspaceConfig.workspaceRoot;
63
63
  },
64
64
  children
65
- })), {
65
+ }));
66
+ this.debug("Processing rendered output from Alloy-js.");
67
+ await (0, __alloy_js_core.traverseOutput)(output, {
66
68
  visitDirectory: (directory) => {
67
69
  if (this.fs.existsSync(directory.path)) return;
68
70
  this.fs.mkdirSync(directory.path);
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { AlloyPluginContext, AlloyPluginOptions } from "./types/plugin.cjs";
1
+ import { n as AlloyPluginOptions, t as AlloyPluginContext } from "./plugin-C6SupJ8C.cjs";
2
2
  import { Plugin } from "powerlines/types/plugin";
3
3
 
4
4
  //#region src/index.d.ts
@@ -11,4 +11,5 @@ import { Plugin } from "powerlines/types/plugin";
11
11
  */
12
12
  declare const plugin: <TContext extends AlloyPluginContext = AlloyPluginContext>(options?: AlloyPluginOptions) => Plugin<TContext>[];
13
13
  //#endregion
14
- export { plugin as default, plugin };
14
+ export { plugin as default, plugin };
15
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAmCA;;;;AAwHc,cAxHD,MAwHC,EAAA,CAAA,iBAvHK,kBAuHL,GAvH0B,kBAuH1B,CAAA,CAAA,OAAA,CAAA,EArHH,kBAqHG,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA,EAAA"}
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { AlloyPluginContext, AlloyPluginOptions } from "./types/plugin.mjs";
1
+ import { n as AlloyPluginOptions, t as AlloyPluginContext } from "./plugin-bEu9fq1G.mjs";
2
2
  import { Plugin } from "powerlines/types/plugin";
3
3
 
4
4
  //#region src/index.d.ts
@@ -11,4 +11,5 @@ import { Plugin } from "powerlines/types/plugin";
11
11
  */
12
12
  declare const plugin: <TContext extends AlloyPluginContext = AlloyPluginContext>(options?: AlloyPluginOptions) => Plugin<TContext>[];
13
13
  //#endregion
14
- export { plugin as default, plugin };
14
+ export { plugin as default, plugin };
15
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAmCA;;;;AAwHc,cAxHD,MAwHC,EAAA,CAAA,iBAvHK,kBAuHL,GAvH0B,kBAuH1B,CAAA,CAAA,OAAA,CAAA,EArHH,kBAqHG,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA,EAAA"}
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { Output as Output$1 } from "./core/components/output.mjs";
2
- import { unctx } from "./internal/unctx.mjs";
1
+ import { t as Output$1 } from "./output-D3UQ5nZo.mjs";
2
+ import { t as unctx } from "./unctx-MFxscYXI.mjs";
3
3
  import { createComponent } from "@alloy-js/core/jsx-runtime";
4
4
  import { renderAsync, traverseOutput } from "@alloy-js/core";
5
5
  import rollupPlugin from "@alloy-js/rollup-plugin";
@@ -52,14 +52,16 @@ const plugin = (options = {}) => {
52
52
  meta
53
53
  }, async () => {
54
54
  const _self$ = this;
55
- await traverseOutput(await renderAsync(createComponent(Output$1, {
55
+ const output = await renderAsync(createComponent(Output$1, {
56
56
  context: _self$,
57
57
  meta,
58
58
  get basePath() {
59
59
  return _self$.workspaceConfig.workspaceRoot;
60
60
  },
61
61
  children
62
- })), {
62
+ }));
63
+ this.debug("Processing rendered output from Alloy-js.");
64
+ await traverseOutput(output, {
63
65
  visitDirectory: (directory) => {
64
66
  if (this.fs.existsSync(directory.path)) return;
65
67
  this.fs.mkdirSync(directory.path);
@@ -92,4 +94,5 @@ const plugin = (options = {}) => {
92
94
  var src_default = plugin;
93
95
 
94
96
  //#endregion
95
- export { src_default as default, plugin };
97
+ export { src_default as default, plugin };
98
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["renderAsync","traverseOutput","rollupPlugin","StormJSON","findFileExtension","Output","unctx","plugin","options","name","config","debug","alloy","typescript","build","inputOptions","transform","jsx","plugins","external","configResolved","tsconfig","tsconfigJson","compilerOptions","jsxImportSource","fs","write","tsconfigFilePath","stringify","order","handler","render","children","meta","callAsync","value","_self$","output","_$createComponent","context","basePath","workspaceConfig","workspaceRoot","visitDirectory","directory","existsSync","path","mkdirSync","visitFile","file","metadata","kind","id","Error","emitBuiltinSync","contents","skipFormat","storage","extension","emitEntrySync","typeDefinition","emitSync","copySync","sourcePath"],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Children } from \"@alloy-js/core\";\nimport { renderAsync, traverseOutput } from \"@alloy-js/core\";\nimport rollupPlugin from \"@alloy-js/rollup-plugin\";\nimport { StormJSON } from \"@stryke/json/storm-json\";\nimport { findFileExtension } from \"@stryke/path/file-path-fns\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport { Output } from \"./core/components/output\";\nimport { MetaItem } from \"./core/contexts/context\";\nimport { unctx } from \"./internal/unctx\";\nimport { AlloyPluginContext, AlloyPluginOptions } from \"./types/plugin\";\n\n/**\n * Alloy-js plugin for Powerlines.\n *\n * @param options - The Alloy-js plugin user configuration options.\n * @returns A Powerlines plugin that integrates Alloy-js transformations.\n */\nexport const plugin = <\n TContext extends AlloyPluginContext = AlloyPluginContext\n>(\n options: AlloyPluginOptions = {}\n) => {\n return [\n {\n name: \"alloy:config\",\n config() {\n this.debug(\n \"Updating configuration options to support Alloy-js builds.\"\n );\n\n return {\n alloy: {\n typescript: true,\n ...options\n },\n build: {\n inputOptions: {\n transform: {\n jsx: \"preserve\"\n }\n },\n plugins: [rollupPlugin()],\n external: [/^@alloy-js\\//]\n }\n };\n },\n async configResolved() {\n this.debug(\"Ensuring TypeScript configuration is set up for Alloy-js.\");\n if (\n this.tsconfig.tsconfigJson.compilerOptions?.jsx !== \"preserve\" ||\n this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource !==\n \"@alloy-js/core\"\n ) {\n this.tsconfig.tsconfigJson.compilerOptions ??= {};\n\n if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== \"preserve\") {\n this.tsconfig.tsconfigJson.compilerOptions.jsx = \"preserve\";\n }\n\n if (\n this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !==\n \"@alloy-js/core\"\n ) {\n this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource =\n \"@alloy-js/core\";\n }\n\n await this.fs.write(\n this.tsconfig.tsconfigFilePath,\n StormJSON.stringify(this.tsconfig.tsconfigJson)\n );\n }\n }\n },\n {\n name: \"alloy:attach-render\",\n configResolved: {\n order: \"pre\",\n async handler() {\n this.debug(\"Attaching the `render` method to the context object.\");\n\n this.render = async (children: Children) => {\n const meta = {} as Record<string, MetaItem>;\n\n await unctx.callAsync({ value: this, meta }, async () => {\n const output = await renderAsync(\n <Output<TContext>\n context={this}\n meta={meta}\n basePath={this.workspaceConfig.workspaceRoot}>\n {children}\n </Output>\n );\n this.debug(\"Processing rendered output from Alloy-js.\");\n\n await traverseOutput(output, {\n visitDirectory: directory => {\n if (this.fs.existsSync(directory.path)) {\n return;\n }\n\n this.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 \"${file.path}\" is missing its ID in the render metadata.`\n );\n }\n\n this.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 this.emitEntrySync(file.contents, file.path, {\n skipFormat: metadata.skipFormat,\n storage: metadata.storage,\n ...(metadata.typeDefinition ?? {})\n });\n } else {\n this.emitSync(file.contents, file.path, metadata);\n }\n } else {\n this.fs.copySync(file.sourcePath, file.path);\n }\n }\n });\n });\n };\n }\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":""}
@@ -1,28 +1,3 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
3
- let __alloy_js_core = require("@alloy-js/core");
1
+ const require_front_matter = require('../../front-matter-DZ1tB-Uj.cjs');
4
2
 
5
- //#region src/markdown/components/front-matter.tsx
6
- /**
7
- * Renders YAML front matter for a markdown file.
8
- *
9
- * @see https://jekyllrb.com/docs/front-matter/
10
- */
11
- function FrontMatter(props) {
12
- return [
13
- "---",
14
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
15
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
16
- get each() {
17
- return Object.entries(props.data);
18
- },
19
- hardline: true,
20
- children: ([key, value]) => __alloy_js_core.code`${key}: ${JSON.stringify(value)}`
21
- }),
22
- "---",
23
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
24
- ];
25
- }
26
-
27
- //#endregion
28
- exports.FrontMatter = FrontMatter;
3
+ exports.FrontMatter = require_front_matter.FrontMatter;
@@ -1,15 +1,2 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
2
-
3
- //#region src/markdown/components/front-matter.d.ts
4
- interface FrontMatterProps {
5
- data: Record<string, any>;
6
- }
7
- /**
8
- * Renders YAML front matter for a markdown file.
9
- *
10
- * @see https://jekyllrb.com/docs/front-matter/
11
- */
12
- declare function FrontMatter(props: FrontMatterProps): _alloy_js_core0.Children;
13
- declare type __ΩFrontMatterProps = any[];
14
- //#endregion
1
+ import { n as FrontMatterProps, r as __ΩFrontMatterProps, t as FrontMatter } from "../../front-matter-u9H7VPAF.cjs";
15
2
  export { FrontMatter, FrontMatterProps, __ΩFrontMatterProps };
@@ -1,15 +1,2 @@
1
- import * as _alloy_js_core9 from "@alloy-js/core";
2
-
3
- //#region src/markdown/components/front-matter.d.ts
4
- interface FrontMatterProps {
5
- data: Record<string, any>;
6
- }
7
- /**
8
- * Renders YAML front matter for a markdown file.
9
- *
10
- * @see https://jekyllrb.com/docs/front-matter/
11
- */
12
- declare function FrontMatter(props: FrontMatterProps): _alloy_js_core9.Children;
13
- declare type __ΩFrontMatterProps = any[];
14
- //#endregion
1
+ import { n as FrontMatterProps, r as __ΩFrontMatterProps, t as FrontMatter } from "../../front-matter-DGpkM9OE.mjs";
15
2
  export { FrontMatter, FrontMatterProps, __ΩFrontMatterProps };
@@ -1,27 +1,3 @@
1
- import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
2
- import { For, code } from "@alloy-js/core";
1
+ import { t as FrontMatter } from "../../front-matter-2eGRXX11.mjs";
3
2
 
4
- //#region src/markdown/components/front-matter.tsx
5
- /**
6
- * Renders YAML front matter for a markdown file.
7
- *
8
- * @see https://jekyllrb.com/docs/front-matter/
9
- */
10
- function FrontMatter(props) {
11
- return [
12
- "---",
13
- createIntrinsic("hbr", {}),
14
- createComponent(For, {
15
- get each() {
16
- return Object.entries(props.data);
17
- },
18
- hardline: true,
19
- children: ([key, value]) => code`${key}: ${JSON.stringify(value)}`
20
- }),
21
- "---",
22
- createIntrinsic("hbr", {})
23
- ];
24
- }
25
-
26
- //#endregion
27
3
  export { FrontMatter };
@@ -1,10 +1,18 @@
1
- const require_markdown_components_front_matter = require('./front-matter.cjs');
2
- const require_markdown_components_markdown_file = require('./markdown-file.cjs');
3
- const require_markdown_components_markdown_table = require('./markdown-table.cjs');
1
+ require('../../unctx-r7Vvh6XR.cjs');
2
+ require('../../single-line-comment-COZ9RWsm.cjs');
3
+ require('../../context--KBspFnw.cjs');
4
+ require('../../reflection-DHpdhvwI.cjs');
5
+ require('../../contexts-DezKayEz.cjs');
6
+ require('../../source-file-BAVTBVJy.cjs');
7
+ const require_front_matter = require('../../front-matter-DZ1tB-Uj.cjs');
8
+ const require_markdown_file = require('../../markdown-file-CAwtMwsl.cjs');
9
+ require('../../markdown-table-BWPm6GbJ.cjs');
10
+ const require_markdown_table$1 = require('../../markdown-table-eTnxxb46.cjs');
11
+ require('../../components-DPKSrvP-.cjs');
4
12
 
5
- exports.FrontMatter = require_markdown_components_front_matter.FrontMatter;
6
- exports.MarkdownFile = require_markdown_components_markdown_file.MarkdownFile;
7
- exports.MarkdownFileHeader = require_markdown_components_markdown_file.MarkdownFileHeader;
8
- exports.MarkdownTable = require_markdown_components_markdown_table.MarkdownTable;
9
- exports.MarkdownTableColumn = require_markdown_components_markdown_table.MarkdownTableColumn;
10
- exports.MarkdownTableColumnHeader = require_markdown_components_markdown_table.MarkdownTableColumnHeader;
13
+ exports.FrontMatter = require_front_matter.FrontMatter;
14
+ exports.MarkdownFile = require_markdown_file.MarkdownFile;
15
+ exports.MarkdownFileHeader = require_markdown_file.MarkdownFileHeader;
16
+ exports.MarkdownTable = require_markdown_table$1.MarkdownTable;
17
+ exports.MarkdownTableColumn = require_markdown_table$1.MarkdownTableColumn;
18
+ exports.MarkdownTableColumnHeader = require_markdown_table$1.MarkdownTableColumnHeader;
@@ -1,4 +1,8 @@
1
- import { FrontMatter, FrontMatterProps, __ΩFrontMatterProps } from "./front-matter.cjs";
2
- import { MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps } from "./markdown-file.cjs";
3
- import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps } from "./markdown-table.cjs";
1
+ import "../../components-IRVnipN0.cjs";
2
+ import "../../source-file-BTsyACav.cjs";
3
+ import { n as FrontMatterProps, r as __ΩFrontMatterProps, t as FrontMatter } from "../../front-matter-u9H7VPAF.cjs";
4
+ import { a as __ΩMarkdownFileHeaderProps, i as MarkdownFileProps, n as MarkdownFileHeader, o as __ΩMarkdownFileProps, r as MarkdownFileHeaderProps, t as MarkdownFile } from "../../markdown-file-CIGTz9xQ.cjs";
5
+ import "../../markdown-table-Br2Ihl2z.cjs";
6
+ import { a as MarkdownTableProps, i as MarkdownTableColumnProps, n as MarkdownTableColumn, o as __ΩMarkdownTableColumnProps, r as MarkdownTableColumnHeader, s as __ΩMarkdownTableProps, t as MarkdownTable } from "../../markdown-table-AoJIzA89.cjs";
7
+ import "../../index-CrhZaFgN.cjs";
4
8
  export { FrontMatter, FrontMatterProps, MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩFrontMatterProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps };
@@ -1,4 +1,8 @@
1
- import { FrontMatter, FrontMatterProps, __ΩFrontMatterProps } from "./front-matter.mjs";
2
- import { MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps } from "./markdown-file.mjs";
3
- import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps } from "./markdown-table.mjs";
1
+ import "../../components-oHSM7vmp.mjs";
2
+ import "../../source-file-CQl0UCgf.mjs";
3
+ import { n as FrontMatterProps, r as __ΩFrontMatterProps, t as FrontMatter } from "../../front-matter-DGpkM9OE.mjs";
4
+ import { a as __ΩMarkdownFileHeaderProps, i as MarkdownFileProps, n as MarkdownFileHeader, o as __ΩMarkdownFileProps, r as MarkdownFileHeaderProps, t as MarkdownFile } from "../../markdown-file-EtJaVhJ3.mjs";
5
+ import "../../markdown-table-CFL7L6rA.mjs";
6
+ import { a as MarkdownTableProps, i as MarkdownTableColumnProps, n as MarkdownTableColumn, o as __ΩMarkdownTableColumnProps, r as MarkdownTableColumnHeader, s as __ΩMarkdownTableProps, t as MarkdownTable } from "../../markdown-table-ChvYobzz.mjs";
7
+ import "../../index-B-Y-ZG2x.mjs";
4
8
  export { FrontMatter, FrontMatterProps, MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader, MarkdownTableColumnProps, MarkdownTableProps, __ΩFrontMatterProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps, __ΩMarkdownTableColumnProps, __ΩMarkdownTableProps };
@@ -1,5 +1,13 @@
1
- import { FrontMatter } from "./front-matter.mjs";
2
- import { MarkdownFile, MarkdownFileHeader } from "./markdown-file.mjs";
3
- import { MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader } from "./markdown-table.mjs";
1
+ import "../../unctx-MFxscYXI.mjs";
2
+ import "../../single-line-comment-mOQtfhWt.mjs";
3
+ import "../../context-e2kZWEFW.mjs";
4
+ import "../../reflection-B-NMNIoB.mjs";
5
+ import "../../contexts-juWSyBfb.mjs";
6
+ import "../../source-file-BiJK-nH_.mjs";
7
+ import { t as FrontMatter } from "../../front-matter-2eGRXX11.mjs";
8
+ import { n as MarkdownFileHeader, t as MarkdownFile } from "../../markdown-file-DIcSvowq.mjs";
9
+ import "../../markdown-table-g6DeP10e.mjs";
10
+ import { n as MarkdownTableColumn, r as MarkdownTableColumnHeader, t as MarkdownTable } from "../../markdown-table-D3DonpwR.mjs";
11
+ import "../../components-CpjG2zC9.mjs";
4
12
 
5
13
  export { FrontMatter, MarkdownFile, MarkdownFileHeader, MarkdownTable, MarkdownTableColumn, MarkdownTableColumnHeader };
@@ -1,131 +1,11 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_core_components_single_line_comment = require('../../core/components/single-line-comment.cjs');
3
- const require_core_contexts_context = require('../../core/contexts/context.cjs');
4
- const require_core_components_source_file = require('../../core/components/source-file.cjs');
5
- const require_markdown_components_front_matter = require('./front-matter.cjs');
6
- let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
7
- let __alloy_js_core = require("@alloy-js/core");
8
- let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
9
- let __alloy_js_markdown = require("@alloy-js/markdown");
10
- let __stryke_type_checks = require("@stryke/type-checks");
1
+ require('../../unctx-r7Vvh6XR.cjs');
2
+ require('../../single-line-comment-COZ9RWsm.cjs');
3
+ require('../../context--KBspFnw.cjs');
4
+ require('../../reflection-DHpdhvwI.cjs');
5
+ require('../../contexts-DezKayEz.cjs');
6
+ require('../../source-file-BAVTBVJy.cjs');
7
+ require('../../front-matter-DZ1tB-Uj.cjs');
8
+ const require_markdown_file = require('../../markdown-file-CAwtMwsl.cjs');
11
9
 
12
- //#region src/markdown/components/markdown-file.tsx
13
- /**
14
- * A base component representing a Powerlines generated markdown source file.
15
- *
16
- * @param props - The properties for the source file.
17
- * @returns The rendered source file component.
18
- */
19
- function MarkdownFile(props) {
20
- const [{ children, storage, frontMatter }, rest] = (0, __alloy_js_core.splitProps)(props, [
21
- "children",
22
- "storage",
23
- "frontMatter"
24
- ]);
25
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_source_file.SourceFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get header() {
26
- return (0, __alloy_js_core_jsx_runtime.createComponent)(MarkdownFileHeader, { frontMatter });
27
- } }, rest, {
28
- filetype: "md",
29
- reference: __alloy_js_markdown.Link,
30
- storage,
31
- get children() {
32
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
33
- get when() {
34
- return Boolean(children);
35
- },
36
- children
37
- });
38
- }
39
- }));
40
- }
41
- /**
42
- * Renders the header for a Powerlines Typescript source file.
43
- *
44
- * @param props - The properties for the source file header.
45
- * @returns The rendered source file header.
46
- */
47
- function MarkdownFileHeader(props) {
48
- const [{ children, disableEslint = true, disableBiome = true, disablePrettier = false, frontMatter }] = (0, __alloy_js_core.splitProps)(props, [
49
- "children",
50
- "disableEslint",
51
- "disableBiome",
52
- "disablePrettier",
53
- "frontMatter"
54
- ]);
55
- const context = require_core_contexts_context.usePowerlinesSafe();
56
- return [
57
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
58
- get when() {
59
- return (0, __alloy_js_core_jsx_runtime.memo)(() => !!(0, __stryke_type_checks.isSetObject)(frontMatter))() && Object.keys(frontMatter).length > 0;
60
- },
61
- get children() {
62
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_markdown_components_front_matter.FrontMatter, { data: frontMatter });
63
- }
64
- }),
65
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
66
- get when() {
67
- return Boolean(disableEslint);
68
- },
69
- get children() {
70
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
71
- variant: "markdown",
72
- children: "eslint-disable"
73
- }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
74
- }
75
- }),
76
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
77
- get when() {
78
- return Boolean(disablePrettier);
79
- },
80
- get children() {
81
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
82
- variant: "markdown",
83
- children: "prettier-ignore"
84
- }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
85
- }
86
- }),
87
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
88
- get when() {
89
- return Boolean(disableBiome);
90
- },
91
- get children() {
92
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
93
- variant: "markdown",
94
- children: "biome-ignore lint: disable"
95
- }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
96
- }
97
- }),
98
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
99
- get when() {
100
- return Boolean(disableEslint) || Boolean(disablePrettier) || Boolean(disableBiome);
101
- },
102
- get children() {
103
- return (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {});
104
- }
105
- }),
106
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
107
- get when() {
108
- return Boolean(children);
109
- },
110
- get children() {
111
- return [children, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
112
- }
113
- }),
114
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
115
- variant: "markdown",
116
- get children() {
117
- return `Generated by ${(0, __stryke_string_format_title_case.titleCase)(context?.config?.framework) || "Powerlines"}`;
118
- }
119
- }),
120
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
121
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_single_line_comment.SingleLineComment, {
122
- variant: "markdown",
123
- children: __alloy_js_core.code`NOTE: Do not edit this file manually - it will be overwritten automatically`
124
- }),
125
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
126
- ];
127
- }
128
-
129
- //#endregion
130
- exports.MarkdownFile = MarkdownFile;
131
- exports.MarkdownFileHeader = MarkdownFileHeader;
10
+ exports.MarkdownFile = require_markdown_file.MarkdownFile;
11
+ exports.MarkdownFileHeader = require_markdown_file.MarkdownFileHeader;
@@ -1,28 +1,5 @@
1
- import { ComponentProps, SourceFileHeaderProps } from "../../types/components.cjs";
2
- import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.cjs";
3
- import { FrontMatterProps } from "./front-matter.cjs";
4
- import * as _alloy_js_core8 from "@alloy-js/core";
5
-
6
- //#region src/markdown/components/markdown-file.d.ts
7
- type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & MarkdownFileHeaderProps;
8
- /**
9
- * A base component representing a Powerlines generated markdown source file.
10
- *
11
- * @param props - The properties for the source file.
12
- * @returns The rendered source file component.
13
- */
14
- declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core8.Children;
15
- type MarkdownFileHeaderProps = SourceFileHeaderProps & {
16
- frontMatter?: FrontMatterProps["data"];
17
- };
18
- /**
19
- * Renders the header for a Powerlines Typescript source file.
20
- *
21
- * @param props - The properties for the source file header.
22
- * @returns The rendered source file header.
23
- */
24
- declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core8.Children;
25
- declare type __ΩMarkdownFileProps = any[];
26
- declare type __ΩMarkdownFileHeaderProps = any[];
27
- //#endregion
1
+ import "../../components-IRVnipN0.cjs";
2
+ import "../../source-file-BTsyACav.cjs";
3
+ import "../../front-matter-u9H7VPAF.cjs";
4
+ import { a as __ΩMarkdownFileHeaderProps, i as MarkdownFileProps, n as MarkdownFileHeader, o as __ΩMarkdownFileProps, r as MarkdownFileHeaderProps, t as MarkdownFile } from "../../markdown-file-CIGTz9xQ.cjs";
28
5
  export { MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps };
@@ -1,28 +1,5 @@
1
- import { ComponentProps, SourceFileHeaderProps } from "../../types/components.mjs";
2
- import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.mjs";
3
- import { FrontMatterProps } from "./front-matter.mjs";
4
- import * as _alloy_js_core7 from "@alloy-js/core";
5
-
6
- //#region src/markdown/components/markdown-file.d.ts
7
- type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & MarkdownFileHeaderProps;
8
- /**
9
- * A base component representing a Powerlines generated markdown source file.
10
- *
11
- * @param props - The properties for the source file.
12
- * @returns The rendered source file component.
13
- */
14
- declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core7.Children;
15
- type MarkdownFileHeaderProps = SourceFileHeaderProps & {
16
- frontMatter?: FrontMatterProps["data"];
17
- };
18
- /**
19
- * Renders the header for a Powerlines Typescript source file.
20
- *
21
- * @param props - The properties for the source file header.
22
- * @returns The rendered source file header.
23
- */
24
- declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core7.Children;
25
- declare type __ΩMarkdownFileProps = any[];
26
- declare type __ΩMarkdownFileHeaderProps = any[];
27
- //#endregion
1
+ import "../../components-oHSM7vmp.mjs";
2
+ import "../../source-file-CQl0UCgf.mjs";
3
+ import "../../front-matter-DGpkM9OE.mjs";
4
+ import { a as __ΩMarkdownFileHeaderProps, i as MarkdownFileProps, n as MarkdownFileHeader, o as __ΩMarkdownFileProps, r as MarkdownFileHeaderProps, t as MarkdownFile } from "../../markdown-file-EtJaVhJ3.mjs";
28
5
  export { MarkdownFile, MarkdownFileHeader, MarkdownFileHeaderProps, MarkdownFileProps, __ΩMarkdownFileHeaderProps, __ΩMarkdownFileProps };