@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,8 +1,9 @@
1
- import { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
2
- import { Output, OutputProps, __ΩOutputProps } from "./components/output.mjs";
3
- import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./components/single-line-comment.mjs";
4
- import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./components/source-file.mjs";
5
- import "./components/index.mjs";
6
- import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./contexts/reflection.mjs";
7
- import "./contexts/index.mjs";
1
+ import { a as useMeta, c as usePowerlinesContext, i as __ΩPowerlinesContextInterface, l as usePowerlinesSafe, n as PowerlinesContextInterface, o as useMetaSafe, r as __ΩMetaItem, s as usePowerlines, t as MetaItem } from "../context-Du_bVzRZ.mjs";
2
+ import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../output-CMC94bm-.mjs";
3
+ import "../components-oHSM7vmp.mjs";
4
+ import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../single-line-comment-PMv_zrfe.mjs";
5
+ import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../source-file-CQl0UCgf.mjs";
6
+ import "../index-CzItj62a.mjs";
7
+ import { a as ReflectionPropertyContext, c as useReflectionMethod, i as ReflectionParameterContext, l as useReflectionParameter, n as ReflectionClassContextInterface, o as __ΩReflectionClassContextInterface, r as ReflectionMethodContext, s as useReflectionClass, t as ReflectionClassContext, u as useReflectionProperty } from "../reflection-CUo0047e.mjs";
8
+ import "../index-C-lwXyQ6.mjs";
8
9
  export { MetaItem, Output, OutputProps, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩMetaItem, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -1,9 +1,10 @@
1
- import { Output } from "./components/output.mjs";
2
- import { SingleLineComment } from "./components/single-line-comment.mjs";
3
- import { useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
4
- import { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./contexts/reflection.mjs";
5
- import "./contexts/index.mjs";
6
- import { SourceFile } from "./components/source-file.mjs";
7
- import "./components/index.mjs";
1
+ import { t as Output } from "../output-D3UQ5nZo.mjs";
2
+ import "../unctx-MFxscYXI.mjs";
3
+ import { t as SingleLineComment } from "../single-line-comment-mOQtfhWt.mjs";
4
+ import { a as usePowerlinesSafe, i as usePowerlinesContext, n as useMetaSafe, r as usePowerlines, t as useMeta } from "../context-e2kZWEFW.mjs";
5
+ import { a as useReflectionClass, c as useReflectionProperty, i as ReflectionPropertyContext, n as ReflectionMethodContext, o as useReflectionMethod, r as ReflectionParameterContext, s as useReflectionParameter, t as ReflectionClassContext } from "../reflection-B-NMNIoB.mjs";
6
+ import "../contexts-juWSyBfb.mjs";
7
+ import { t as SourceFile } from "../source-file-BiJK-nH_.mjs";
8
+ import "../components-CyQi7RHT.mjs";
8
9
 
9
10
  export { Output, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SourceFile, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -0,0 +1,24 @@
1
+ const require_chunk = require('./chunk-CbDLau6x.cjs');
2
+ let __alloy_js_typescript = require("@alloy-js/typescript");
3
+
4
+ //#region src/helpers/create-builtin.ts
5
+ /**
6
+ * Creates a built-in representation of a package based on the provided descriptor.
7
+ *
8
+ * @param options - Properties to define the package, excluding the 'builtin' flag which is set to true.
9
+ * @returns An object containing reference keys for the package and a symbol creator function.
10
+ */
11
+ function createBuiltin(options) {
12
+ return (0, __alloy_js_typescript.createPackage)({
13
+ ...options,
14
+ builtin: true
15
+ });
16
+ }
17
+
18
+ //#endregion
19
+ Object.defineProperty(exports, 'createBuiltin', {
20
+ enumerable: true,
21
+ get: function () {
22
+ return createBuiltin;
23
+ }
24
+ });
@@ -0,0 +1,16 @@
1
+ import { SymbolCreator } from "@alloy-js/core";
2
+ import { CreatePackageProps, PackageDescriptor, PackageRefkeys } from "@alloy-js/typescript";
3
+
4
+ //#region src/helpers/create-builtin.d.ts
5
+ type CreateBuiltinOptions<T extends PackageDescriptor> = Omit<CreatePackageProps<T>, "builtin">;
6
+ /**
7
+ * Creates a built-in representation of a package based on the provided descriptor.
8
+ *
9
+ * @param options - Properties to define the package, excluding the 'builtin' flag which is set to true.
10
+ * @returns An object containing reference keys for the package and a symbol creator function.
11
+ */
12
+ declare function createBuiltin<const T extends PackageDescriptor>(options: CreateBuiltinOptions<T>): PackageRefkeys<T> & SymbolCreator;
13
+ declare type __ΩCreateBuiltinOptions = any[];
14
+ //#endregion
15
+ export { __ΩCreateBuiltinOptions as n, createBuiltin as r, CreateBuiltinOptions as t };
16
+ //# sourceMappingURL=create-builtin-DFiWd6Zc.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-builtin-DFiWd6Zc.d.cts","names":[],"sources":["../src/helpers/create-builtin.ts"],"sourcesContent":[],"mappings":";;;;KA0BY,+BAA+B,qBAAqB,KAC9D,mBAAmB;;AADrB;;;;;AAAoE,iBAWpD,aAXoD,CAAA,gBAWtB,iBAXsB,CAAA,CAAA,OAAA,EAYzD,oBAZyD,CAYpC,CAZoC,CAAA,CAAA,EAajE,cAbiE,CAalD,CAbkD,CAAA,GAa7C,aAb6C;AAWpD,uCAAa,GAAA,EAAA"}
@@ -0,0 +1,19 @@
1
+ import { createPackage } from "@alloy-js/typescript";
2
+
3
+ //#region src/helpers/create-builtin.ts
4
+ /**
5
+ * Creates a built-in representation of a package based on the provided descriptor.
6
+ *
7
+ * @param options - Properties to define the package, excluding the 'builtin' flag which is set to true.
8
+ * @returns An object containing reference keys for the package and a symbol creator function.
9
+ */
10
+ function createBuiltin(options) {
11
+ return createPackage({
12
+ ...options,
13
+ builtin: true
14
+ });
15
+ }
16
+
17
+ //#endregion
18
+ export { createBuiltin as t };
19
+ //# sourceMappingURL=create-builtin-DQuJyeZw.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-builtin-DQuJyeZw.mjs","names":["createPackage","createBuiltin","options","builtin"],"sources":["../src/helpers/create-builtin.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 { SymbolCreator } from \"@alloy-js/core\";\nimport {\n createPackage,\n CreatePackageProps,\n PackageDescriptor,\n PackageRefkeys\n} from \"@alloy-js/typescript\";\n\nexport type CreateBuiltinOptions<T extends PackageDescriptor> = Omit<\n CreatePackageProps<T>,\n \"builtin\"\n>;\n\n/**\n * Creates a built-in representation of a package based on the provided descriptor.\n *\n * @param options - Properties to define the package, excluding the 'builtin' flag which is set to true.\n * @returns An object containing reference keys for the package and a symbol creator function.\n */\nexport function createBuiltin<const T extends PackageDescriptor>(\n options: CreateBuiltinOptions<T>\n): PackageRefkeys<T> & SymbolCreator {\n // const refkeys: any = {\n // [getSymbolCreatorSymbol()](binder: Binder) {\n // createSymbols(binder, props, refkeys);\n // }\n // };\n\n // for (const [path, symbols] of Object.entries(props.descriptor)) {\n // const keys = path === \".\" ? refkeys : (refkeys[path] = {});\n\n // if (symbols.default) {\n // keys.default = refkey(props.descriptor, path, \"default\");\n // }\n\n // for (const named of symbols.named ?? []) {\n // const namedObj = typeof named === \"string\" ? { name: named } : named;\n // keys[namedObj.name] = refkey();\n\n // if (namedObj.staticMembers?.length) {\n // createRefkeysForMembers(\n // namedObj.staticMembers,\n // keys[namedObj.name],\n // \"static\"\n // );\n // }\n\n // if (namedObj.instanceMembers?.length) {\n // createRefkeysForMembers(\n // namedObj.instanceMembers,\n // keys[namedObj.name],\n // \"instance\"\n // );\n // }\n\n // keys[namedObj.name][getSymbolCreatorSymbol()] = (\n // binder: Binder,\n // parentSym: TSOutputSymbol\n // ) => {\n // if (namedObj.staticMembers?.length) {\n // assignMembers(\n // binder,\n // parentSym,\n // namedObj.staticMembers,\n // keys[namedObj.name],\n // true\n // );\n // }\n // if (namedObj.instanceMembers?.length) {\n // assignMembers(\n // binder,\n // parentSym,\n // namedObj.instanceMembers,\n // keys[namedObj.name],\n // false\n // );\n // }\n // };\n // }\n // }\n\n // return refkeys;\n\n return createPackage({ ...options, builtin: true });\n}\n"],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import { SymbolCreator } from "@alloy-js/core";
2
+ import { CreatePackageProps, PackageDescriptor, PackageRefkeys } from "@alloy-js/typescript";
3
+
4
+ //#region src/helpers/create-builtin.d.ts
5
+ type CreateBuiltinOptions<T extends PackageDescriptor> = Omit<CreatePackageProps<T>, "builtin">;
6
+ /**
7
+ * Creates a built-in representation of a package based on the provided descriptor.
8
+ *
9
+ * @param options - Properties to define the package, excluding the 'builtin' flag which is set to true.
10
+ * @returns An object containing reference keys for the package and a symbol creator function.
11
+ */
12
+ declare function createBuiltin<const T extends PackageDescriptor>(options: CreateBuiltinOptions<T>): PackageRefkeys<T> & SymbolCreator;
13
+ declare type __ΩCreateBuiltinOptions = any[];
14
+ //#endregion
15
+ export { __ΩCreateBuiltinOptions as n, createBuiltin as r, CreateBuiltinOptions as t };
16
+ //# sourceMappingURL=create-builtin-FtQ6qKzX.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-builtin-FtQ6qKzX.d.mts","names":[],"sources":["../src/helpers/create-builtin.ts"],"sourcesContent":[],"mappings":";;;;KA0BY,+BAA+B,qBAAqB,KAC9D,mBAAmB;;AADrB;;;;;AAAoE,iBAWpD,aAXoD,CAAA,gBAWtB,iBAXsB,CAAA,CAAA,OAAA,EAYzD,oBAZyD,CAYpC,CAZoC,CAAA,CAAA,EAajE,cAbiE,CAalD,CAbkD,CAAA,GAa7C,aAb6C;AAWpD,uCAAa,GAAA,EAAA"}
@@ -0,0 +1,33 @@
1
+ import * as _alloy_js_core16 from "@alloy-js/core";
2
+ import { VarDeclarationProps } from "@alloy-js/typescript";
3
+
4
+ //#region src/typescript/components/dynamic-import-statement.d.ts
5
+ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initializer"> {
6
+ /**
7
+ * The path of the module to import.
8
+ */
9
+ importPath: string;
10
+ /**
11
+ * The name of the export to import from the module.
12
+ *
13
+ * @defaultValue "default"
14
+ */
15
+ exportName?: string;
16
+ }
17
+ /**
18
+ * Generates a dynamic import statement for a given module path and export name.
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
23
+ * // const myVar = await import("./my-module").then(m => m.myExport);
24
+ * ```
25
+ *
26
+ * @param props - The properties for the dynamic import statement.
27
+ * @returns A `VarDeclaration` component representing the dynamic import statement.
28
+ */
29
+ declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core16.Children;
30
+ declare type __ΩDynamicImportStatementProps = any[];
31
+ //#endregion
32
+ export { DynamicImportStatementProps as n, __ΩDynamicImportStatementProps as r, DynamicImportStatement as t };
33
+ //# sourceMappingURL=dynamic-import-statement-B5Pdwr4Z.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dynamic-import-statement-B5Pdwr4Z.d.mts","names":[],"sources":["../src/typescript/components/dynamic-import-statement.tsx"],"sourcesContent":[],"mappings":";;;;UAqBiB,2BAAA,SAAoC,KACnD;;;AADF;EA6BgB,UAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;iBAAA,sBAAA,QAA8B,8BAA2B,gBAAA,CAAA"}
@@ -0,0 +1,25 @@
1
+ import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
2
+ import { code } from "@alloy-js/core";
3
+ import { VarDeclaration } from "@alloy-js/typescript";
4
+
5
+ //#region src/typescript/components/dynamic-import-statement.tsx
6
+ /**
7
+ * Generates a dynamic import statement for a given module path and export name.
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
12
+ * // const myVar = await import("./my-module").then(m => m.myExport);
13
+ * ```
14
+ *
15
+ * @param props - The properties for the dynamic import statement.
16
+ * @returns A `VarDeclaration` component representing the dynamic import statement.
17
+ */
18
+ function DynamicImportStatement(props) {
19
+ const { importPath, exportName = "default", const: isConst = true, ...rest } = props;
20
+ return createComponent(VarDeclaration, mergeProps({ "const": isConst }, rest, { initializer: code`await import("${importPath}").then(m => m.${exportName});` }));
21
+ }
22
+
23
+ //#endregion
24
+ export { DynamicImportStatement as t };
25
+ //# sourceMappingURL=dynamic-import-statement-BbNJchii.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dynamic-import-statement-BbNJchii.mjs","names":["code","VarDeclaration","DynamicImportStatement","props","importPath","exportName","const","isConst","rest","_$createComponent","_$mergeProps","initializer"],"sources":["../src/typescript/components/dynamic-import-statement.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 } from \"@alloy-js/core\";\nimport { VarDeclaration, VarDeclarationProps } from \"@alloy-js/typescript\";\n\nexport interface DynamicImportStatementProps extends Omit<\n VarDeclarationProps,\n \"initializer\"\n> {\n /**\n * The path of the module to import.\n */\n importPath: string;\n\n /**\n * The name of the export to import from the module.\n *\n * @defaultValue \"default\"\n */\n exportName?: string;\n}\n\n/**\n * Generates a dynamic import statement for a given module path and export name.\n *\n * @example\n * ```tsx\n * <DynamicImportStatement importPath=\"./my-module\" exportName=\"myExport\" const={true} name=\"myVar\" />\n * // const myVar = await import(\"./my-module\").then(m => m.myExport);\n * ```\n *\n * @param props - The properties for the dynamic import statement.\n * @returns A `VarDeclaration` component representing the dynamic import statement.\n */\nexport function DynamicImportStatement(props: DynamicImportStatementProps) {\n const {\n importPath,\n exportName = \"default\",\n const: isConst = true,\n ...rest\n } = props;\n\n return (\n <VarDeclaration\n const={isConst}\n {...rest}\n initializer={code`await import(\"${importPath}\").then(m => m.${exportName});`}></VarDeclaration>\n );\n}\n"],"mappings":""}
@@ -0,0 +1,33 @@
1
+ import * as _alloy_js_core16 from "@alloy-js/core";
2
+ import { VarDeclarationProps } from "@alloy-js/typescript";
3
+
4
+ //#region src/typescript/components/dynamic-import-statement.d.ts
5
+ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initializer"> {
6
+ /**
7
+ * The path of the module to import.
8
+ */
9
+ importPath: string;
10
+ /**
11
+ * The name of the export to import from the module.
12
+ *
13
+ * @defaultValue "default"
14
+ */
15
+ exportName?: string;
16
+ }
17
+ /**
18
+ * Generates a dynamic import statement for a given module path and export name.
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
23
+ * // const myVar = await import("./my-module").then(m => m.myExport);
24
+ * ```
25
+ *
26
+ * @param props - The properties for the dynamic import statement.
27
+ * @returns A `VarDeclaration` component representing the dynamic import statement.
28
+ */
29
+ declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core16.Children;
30
+ declare type __ΩDynamicImportStatementProps = any[];
31
+ //#endregion
32
+ export { DynamicImportStatementProps as n, __ΩDynamicImportStatementProps as r, DynamicImportStatement as t };
33
+ //# sourceMappingURL=dynamic-import-statement-DNJlI3ND.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dynamic-import-statement-DNJlI3ND.d.cts","names":[],"sources":["../src/typescript/components/dynamic-import-statement.tsx"],"sourcesContent":[],"mappings":";;;;UAqBiB,2BAAA,SAAoC,KACnD;;;AADF;EA6BgB,UAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;iBAAA,sBAAA,QAA8B,8BAA2B,gBAAA,CAAA"}
@@ -0,0 +1,33 @@
1
+ import * as _alloy_js_core13 from "@alloy-js/core";
2
+ import { VarDeclarationProps } from "@alloy-js/typescript";
3
+
4
+ //#region src/typescript/components/dynamic-import-statement.d.ts
5
+ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initializer"> {
6
+ /**
7
+ * The path of the module to import.
8
+ */
9
+ importPath: string;
10
+ /**
11
+ * The name of the export to import from the module.
12
+ *
13
+ * @defaultValue "default"
14
+ */
15
+ exportName?: string;
16
+ }
17
+ /**
18
+ * Generates a dynamic import statement for a given module path and export name.
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
23
+ * // const myVar = await import("./my-module").then(m => m.myExport);
24
+ * ```
25
+ *
26
+ * @param props - The properties for the dynamic import statement.
27
+ * @returns A `VarDeclaration` component representing the dynamic import statement.
28
+ */
29
+ declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core13.Children;
30
+ declare type __ΩDynamicImportStatementProps = any[];
31
+ //#endregion
32
+ export { DynamicImportStatementProps as n, __ΩDynamicImportStatementProps as r, DynamicImportStatement as t };
33
+ //# sourceMappingURL=dynamic-import-statement-DTSUoDt2.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dynamic-import-statement-DTSUoDt2.d.cts","names":[],"sources":["../src/typescript/components/dynamic-import-statement.tsx"],"sourcesContent":[],"mappings":";;;;UAqBiB,2BAAA,SAAoC,KACnD;;;AADF;EA6BgB,UAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;iBAAA,sBAAA,QAA8B,8BAA2B,gBAAA,CAAA"}
@@ -0,0 +1,30 @@
1
+ const require_chunk = require('./chunk-CbDLau6x.cjs');
2
+ let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
3
+ let __alloy_js_core = require("@alloy-js/core");
4
+ let __alloy_js_typescript = require("@alloy-js/typescript");
5
+
6
+ //#region src/typescript/components/dynamic-import-statement.tsx
7
+ /**
8
+ * Generates a dynamic import statement for a given module path and export name.
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
13
+ * // const myVar = await import("./my-module").then(m => m.myExport);
14
+ * ```
15
+ *
16
+ * @param props - The properties for the dynamic import statement.
17
+ * @returns A `VarDeclaration` component representing the dynamic import statement.
18
+ */
19
+ function DynamicImportStatement(props) {
20
+ const { importPath, exportName = "default", const: isConst = true, ...rest } = props;
21
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, (0, __alloy_js_core_jsx_runtime.mergeProps)({ "const": isConst }, rest, { initializer: __alloy_js_core.code`await import("${importPath}").then(m => m.${exportName});` }));
22
+ }
23
+
24
+ //#endregion
25
+ Object.defineProperty(exports, 'DynamicImportStatement', {
26
+ enumerable: true,
27
+ get: function () {
28
+ return DynamicImportStatement;
29
+ }
30
+ });
@@ -0,0 +1,28 @@
1
+ import { o as TypescriptFileProps } from "./typescript-file-fOVF6YF2.cjs";
2
+ import * as _alloy_js_core12 from "@alloy-js/core";
3
+ import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
4
+
5
+ //#region src/typescript/components/entry-file.d.ts
6
+ type EntryFileProps = TypescriptFileProps & {
7
+ /**
8
+ * Whether the file is a TSX file.
9
+ *
10
+ * @defaultValue false
11
+ */
12
+ tsx?: boolean;
13
+ /**
14
+ * Render metadata information about the entrypoint
15
+ */
16
+ typeDefinition?: ResolvedEntryTypeDefinition;
17
+ };
18
+ /**
19
+ * A base component representing a Powerlines generated Typescript source file.
20
+ *
21
+ * @param props - The properties for the source file.
22
+ * @returns The rendered source file component.
23
+ */
24
+ declare function EntryFile(props: EntryFileProps): _alloy_js_core12.Children;
25
+ declare type __ΩEntryFileProps = any[];
26
+ //#endregion
27
+ export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
28
+ //# sourceMappingURL=entry-file-CfMzpF03.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry-file-CfMzpF03.d.cts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
@@ -0,0 +1,28 @@
1
+ import { o as TypescriptFileProps } from "./typescript-file-BWaBMfMr.mjs";
2
+ import * as _alloy_js_core17 from "@alloy-js/core";
3
+ import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
4
+
5
+ //#region src/typescript/components/entry-file.d.ts
6
+ type EntryFileProps = TypescriptFileProps & {
7
+ /**
8
+ * Whether the file is a TSX file.
9
+ *
10
+ * @defaultValue false
11
+ */
12
+ tsx?: boolean;
13
+ /**
14
+ * Render metadata information about the entrypoint
15
+ */
16
+ typeDefinition?: ResolvedEntryTypeDefinition;
17
+ };
18
+ /**
19
+ * A base component representing a Powerlines generated Typescript source file.
20
+ *
21
+ * @param props - The properties for the source file.
22
+ * @returns The rendered source file component.
23
+ */
24
+ declare function EntryFile(props: EntryFileProps): _alloy_js_core17.Children;
25
+ declare type __ΩEntryFileProps = any[];
26
+ //#endregion
27
+ export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
28
+ //# sourceMappingURL=entry-file-CnC6P3j6.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry-file-CnC6P3j6.d.mts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
@@ -0,0 +1,41 @@
1
+ import { a as usePowerlinesSafe } from "./context-e2kZWEFW.mjs";
2
+ import { t as TypescriptFile } from "./typescript-file-C5NjN3H2.mjs";
3
+ import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
4
+ import { computed, splitProps } from "@alloy-js/core";
5
+ import { hasFileExtension } from "@stryke/path/file-path-fns";
6
+ import { replaceExtension, replacePath } from "@stryke/path/replace";
7
+ import { appendPath } from "@stryke/path/append";
8
+ import defu from "defu";
9
+ import { isSet } from "@stryke/type-checks/is-set";
10
+
11
+ //#region src/typescript/components/entry-file.tsx
12
+ /**
13
+ * A base component representing a Powerlines generated Typescript source file.
14
+ *
15
+ * @param props - The properties for the source file.
16
+ * @returns The rendered source file component.
17
+ */
18
+ function EntryFile(props) {
19
+ const [{ children, meta, tsx, path, typeDefinition }, rest] = splitProps(props, [
20
+ "children",
21
+ "meta",
22
+ "tsx",
23
+ "path",
24
+ "typeDefinition"
25
+ ]);
26
+ const context = usePowerlinesSafe();
27
+ const fullPath = computed(() => context ? appendPath(`${!isSet(tsx) ? path : replaceExtension(path)}${tsx ? ".tsx" : hasFileExtension(path) ? "" : ".ts"}`, replacePath(context.entryPath, context.workspaceConfig.workspaceRoot)) : path);
28
+ return createComponent(TypescriptFile, mergeProps(rest, {
29
+ get path() {
30
+ return fullPath.value;
31
+ },
32
+ get meta() {
33
+ return defu({ kind: "entry" }, meta ?? {}, { typeDefinition });
34
+ },
35
+ children
36
+ }));
37
+ }
38
+
39
+ //#endregion
40
+ export { EntryFile as t };
41
+ //# sourceMappingURL=entry-file-D64eurjX.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry-file-D64eurjX.mjs","names":["computed","splitProps","appendPath","hasFileExtension","replaceExtension","replacePath","isSet","defu","usePowerlinesSafe","TypescriptFile","EntryFile","props","children","meta","tsx","path","typeDefinition","rest","context","fullPath","entryPath","workspaceConfig","workspaceRoot","_$createComponent","_$mergeProps","value","kind"],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { computed, splitProps } from \"@alloy-js/core\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { hasFileExtension } from \"@stryke/path/file-path-fns\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { isSet } from \"@stryke/type-checks/is-set\";\nimport defu from \"defu\";\nimport { ResolvedEntryTypeDefinition } from \"powerlines/types/resolved\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { TypescriptFile, TypescriptFileProps } from \"./typescript-file\";\n\nexport type EntryFileProps = TypescriptFileProps & {\n /**\n * Whether the file is a TSX file.\n *\n * @defaultValue false\n */\n tsx?: boolean;\n\n /**\n * Render metadata information about the entrypoint\n */\n typeDefinition?: ResolvedEntryTypeDefinition;\n};\n\n/**\n * A base component representing a Powerlines generated Typescript source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function EntryFile(props: EntryFileProps) {\n const [{ children, meta, tsx, path, typeDefinition }, rest] = splitProps(\n props,\n [\"children\", \"meta\", \"tsx\", \"path\", \"typeDefinition\"]\n );\n\n const context = usePowerlinesSafe();\n const fullPath = computed(() =>\n context\n ? appendPath(\n `${\n !isSet(tsx) ? path : replaceExtension(path)\n }${tsx ? \".tsx\" : hasFileExtension(path) ? \"\" : \".ts\"}`,\n replacePath(context.entryPath, context.workspaceConfig.workspaceRoot)\n )\n : path\n );\n\n return (\n <TypescriptFile\n {...rest}\n path={fullPath.value}\n meta={defu(\n {\n kind: \"entry\"\n },\n meta ?? {},\n {\n typeDefinition\n }\n )}>\n {children}\n </TypescriptFile>\n );\n}\n"],"mappings":""}
@@ -0,0 +1,28 @@
1
+ import { o as TypescriptFileProps } from "./typescript-file-MYxikvB6.cjs";
2
+ import * as _alloy_js_core15 from "@alloy-js/core";
3
+ import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
4
+
5
+ //#region src/typescript/components/entry-file.d.ts
6
+ type EntryFileProps = TypescriptFileProps & {
7
+ /**
8
+ * Whether the file is a TSX file.
9
+ *
10
+ * @defaultValue false
11
+ */
12
+ tsx?: boolean;
13
+ /**
14
+ * Render metadata information about the entrypoint
15
+ */
16
+ typeDefinition?: ResolvedEntryTypeDefinition;
17
+ };
18
+ /**
19
+ * A base component representing a Powerlines generated Typescript source file.
20
+ *
21
+ * @param props - The properties for the source file.
22
+ * @returns The rendered source file component.
23
+ */
24
+ declare function EntryFile(props: EntryFileProps): _alloy_js_core15.Children;
25
+ declare type __ΩEntryFileProps = any[];
26
+ //#endregion
27
+ export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
28
+ //# sourceMappingURL=entry-file-DVueLVSn.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry-file-DVueLVSn.d.cts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
@@ -0,0 +1,47 @@
1
+ const require_chunk = require('./chunk-CbDLau6x.cjs');
2
+ const require_context = require('./context--KBspFnw.cjs');
3
+ const require_typescript_file = require('./typescript-file-BmLwVIQP.cjs');
4
+ let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
5
+ let __alloy_js_core = require("@alloy-js/core");
6
+ let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
7
+ let __stryke_path_replace = require("@stryke/path/replace");
8
+ let __stryke_path_append = require("@stryke/path/append");
9
+ let defu = require("defu");
10
+ defu = require_chunk.__toESM(defu);
11
+ let __stryke_type_checks_is_set = require("@stryke/type-checks/is-set");
12
+
13
+ //#region src/typescript/components/entry-file.tsx
14
+ /**
15
+ * A base component representing a Powerlines generated Typescript source file.
16
+ *
17
+ * @param props - The properties for the source file.
18
+ * @returns The rendered source file component.
19
+ */
20
+ function EntryFile(props) {
21
+ const [{ children, meta, tsx, path, typeDefinition }, rest] = (0, __alloy_js_core.splitProps)(props, [
22
+ "children",
23
+ "meta",
24
+ "tsx",
25
+ "path",
26
+ "typeDefinition"
27
+ ]);
28
+ const context = require_context.usePowerlinesSafe();
29
+ const fullPath = (0, __alloy_js_core.computed)(() => context ? (0, __stryke_path_append.appendPath)(`${!(0, __stryke_type_checks_is_set.isSet)(tsx) ? path : (0, __stryke_path_replace.replaceExtension)(path)}${tsx ? ".tsx" : (0, __stryke_path_file_path_fns.hasFileExtension)(path) ? "" : ".ts"}`, (0, __stryke_path_replace.replacePath)(context.entryPath, context.workspaceConfig.workspaceRoot)) : path);
30
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_file.TypescriptFile, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
31
+ get path() {
32
+ return fullPath.value;
33
+ },
34
+ get meta() {
35
+ return (0, defu.default)({ kind: "entry" }, meta ?? {}, { typeDefinition });
36
+ },
37
+ children
38
+ }));
39
+ }
40
+
41
+ //#endregion
42
+ Object.defineProperty(exports, 'EntryFile', {
43
+ enumerable: true,
44
+ get: function () {
45
+ return EntryFile;
46
+ }
47
+ });
@@ -0,0 +1,28 @@
1
+ import { o as TypescriptFileProps } from "./typescript-file-BWaBMfMr.mjs";
2
+ import * as _alloy_js_core15 from "@alloy-js/core";
3
+ import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
4
+
5
+ //#region src/typescript/components/entry-file.d.ts
6
+ type EntryFileProps = TypescriptFileProps & {
7
+ /**
8
+ * Whether the file is a TSX file.
9
+ *
10
+ * @defaultValue false
11
+ */
12
+ tsx?: boolean;
13
+ /**
14
+ * Render metadata information about the entrypoint
15
+ */
16
+ typeDefinition?: ResolvedEntryTypeDefinition;
17
+ };
18
+ /**
19
+ * A base component representing a Powerlines generated Typescript source file.
20
+ *
21
+ * @param props - The properties for the source file.
22
+ * @returns The rendered source file component.
23
+ */
24
+ declare function EntryFile(props: EntryFileProps): _alloy_js_core15.Children;
25
+ declare type __ΩEntryFileProps = any[];
26
+ //#endregion
27
+ export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
28
+ //# sourceMappingURL=entry-file-ayzYWEo5.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry-file-ayzYWEo5.d.mts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
@@ -0,0 +1,28 @@
1
+ import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
2
+ import { For, code } from "@alloy-js/core";
3
+
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
+ export { FrontMatter as t };
28
+ //# sourceMappingURL=front-matter-2eGRXX11.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"front-matter-2eGRXX11.mjs","names":["code","For","FrontMatter","props","_$createIntrinsic","_$createComponent","each","Object","entries","data","hardline","children","key","value","JSON","stringify"],"sources":["../src/markdown/components/front-matter.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, For } from \"@alloy-js/core\";\n\nexport interface FrontMatterProps {\n data: Record<string, any>;\n}\n\n/**\n * Renders YAML front matter for a markdown file.\n *\n * @see https://jekyllrb.com/docs/front-matter/\n */\nexport function FrontMatter(props: FrontMatterProps) {\n return (\n <>\n {\"---\"}\n <hbr />\n <For each={Object.entries(props.data)} hardline>\n {([key, value]) => code`${key}: ${JSON.stringify(value)}`}\n </For>\n {\"---\"}\n <hbr />\n </>\n );\n}\n"],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import * as _alloy_js_core7 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_core7.Children;
13
+ declare type __ΩFrontMatterProps = any[];
14
+ //#endregion
15
+ export { FrontMatterProps as n, __ΩFrontMatterProps as r, FrontMatter as t };
16
+ //# sourceMappingURL=front-matter-DGpkM9OE.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"front-matter-DGpkM9OE.d.mts","names":[],"sources":["../src/markdown/components/front-matter.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,gBAAA;QACT;;AADR;AASA;;;;iBAAgB,WAAA,QAAmB,mBAAgB,eAAA,CAAA"}