@powerlines/plugin-alloy 0.19.33 → 0.19.35

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 (412) hide show
  1. package/dist/{chunk-CbDLau6x.cjs → _virtual/rolldown_runtime.cjs} +1 -6
  2. package/dist/core/components/index.cjs +6 -11
  3. package/dist/core/components/index.d.cts +3 -9
  4. package/dist/core/components/index.d.mts +3 -9
  5. package/dist/core/components/index.mjs +3 -8
  6. package/dist/core/components/output.cjs +39 -6
  7. package/dist/core/components/output.d.cts +25 -7
  8. package/dist/core/components/output.d.cts.map +1 -0
  9. package/dist/core/components/output.d.mts +25 -7
  10. package/dist/core/components/output.d.mts.map +1 -0
  11. package/dist/core/components/output.mjs +39 -6
  12. package/dist/core/components/output.mjs.map +1 -0
  13. package/dist/core/components/single-line-comment.cjs +21 -2
  14. package/dist/core/components/single-line-comment.d.cts +23 -3
  15. package/dist/core/components/single-line-comment.d.cts.map +1 -0
  16. package/dist/core/components/single-line-comment.d.mts +23 -3
  17. package/dist/core/components/single-line-comment.d.mts.map +1 -0
  18. package/dist/core/components/single-line-comment.mjs +21 -2
  19. package/dist/core/components/single-line-comment.mjs.map +1 -0
  20. package/dist/core/components/source-file.cjs +62 -3
  21. package/dist/core/components/source-file.d.cts +33 -3
  22. package/dist/core/components/source-file.d.cts.map +1 -0
  23. package/dist/core/components/source-file.d.mts +33 -3
  24. package/dist/core/components/source-file.d.mts.map +1 -0
  25. package/dist/core/components/source-file.mjs +61 -3
  26. package/dist/core/components/source-file.mjs.map +1 -0
  27. package/dist/core/contexts/context.cjs +39 -5
  28. package/dist/core/contexts/context.d.cts +30 -2
  29. package/dist/core/contexts/context.d.cts.map +1 -0
  30. package/dist/core/contexts/context.d.mts +30 -2
  31. package/dist/core/contexts/context.d.mts.map +1 -0
  32. package/dist/core/contexts/context.mjs +36 -2
  33. package/dist/core/contexts/context.mjs.map +1 -0
  34. package/dist/core/contexts/index.cjs +19 -20
  35. package/dist/core/contexts/index.d.cts +3 -5
  36. package/dist/core/contexts/index.d.mts +3 -5
  37. package/dist/core/contexts/index.mjs +3 -4
  38. package/dist/core/contexts/meta.cjs +39 -5
  39. package/dist/core/contexts/meta.d.cts +48 -2
  40. package/dist/core/contexts/meta.d.cts.map +1 -0
  41. package/dist/core/contexts/meta.d.mts +48 -2
  42. package/dist/core/contexts/meta.d.mts.map +1 -0
  43. package/dist/core/contexts/meta.mjs +36 -2
  44. package/dist/core/contexts/meta.mjs.map +1 -0
  45. package/dist/core/contexts/reflection.cjs +67 -9
  46. package/dist/core/contexts/reflection.d.cts +53 -3
  47. package/dist/core/contexts/reflection.d.cts.map +1 -0
  48. package/dist/core/contexts/reflection.d.mts +53 -3
  49. package/dist/core/contexts/reflection.d.mts.map +1 -0
  50. package/dist/core/contexts/reflection.mjs +60 -2
  51. package/dist/core/contexts/reflection.mjs.map +1 -0
  52. package/dist/core/index.cjs +27 -27
  53. package/dist/core/index.d.cts +8 -9
  54. package/dist/core/index.d.mts +8 -9
  55. package/dist/core/index.mjs +8 -8
  56. package/dist/helpers/capnp.cjs +276 -18
  57. package/dist/helpers/capnp.d.cts +88 -2
  58. package/dist/helpers/capnp.d.cts.map +1 -0
  59. package/dist/helpers/capnp.d.mts +88 -2
  60. package/dist/helpers/capnp.d.mts.map +1 -0
  61. package/dist/helpers/capnp.mjs +259 -2
  62. package/dist/helpers/capnp.mjs.map +1 -0
  63. package/dist/helpers/create-builtin.cjs +18 -2
  64. package/dist/helpers/create-builtin.d.cts +16 -2
  65. package/dist/helpers/create-builtin.d.cts.map +1 -0
  66. package/dist/helpers/create-builtin.d.mts +16 -2
  67. package/dist/helpers/create-builtin.d.mts.map +1 -0
  68. package/dist/helpers/create-builtin.mjs +18 -2
  69. package/dist/helpers/create-builtin.mjs.map +1 -0
  70. package/dist/helpers/index.cjs +23 -23
  71. package/dist/helpers/index.d.cts +4 -4
  72. package/dist/helpers/index.d.mts +4 -4
  73. package/dist/helpers/index.mjs +4 -4
  74. package/dist/helpers/refkey.cjs +15 -2
  75. package/dist/helpers/refkey.d.cts +14 -2
  76. package/dist/helpers/refkey.d.cts.map +1 -0
  77. package/dist/helpers/refkey.d.mts +14 -2
  78. package/dist/helpers/refkey.d.mts.map +1 -0
  79. package/dist/helpers/refkey.mjs +15 -2
  80. package/dist/helpers/refkey.mjs.map +1 -0
  81. package/dist/helpers/typescript.cjs +45 -2
  82. package/dist/helpers/typescript.d.cts +26 -2
  83. package/dist/helpers/typescript.d.cts.map +1 -0
  84. package/dist/helpers/typescript.d.mts +26 -2
  85. package/dist/helpers/typescript.d.mts.map +1 -0
  86. package/dist/helpers/typescript.mjs +45 -2
  87. package/dist/helpers/typescript.mjs.map +1 -0
  88. package/dist/index.cjs +2 -2
  89. package/dist/index.d.cts +1 -1
  90. package/dist/index.d.mts +1 -1
  91. package/dist/markdown/components/front-matter.cjs +27 -2
  92. package/dist/markdown/components/front-matter.d.cts +16 -2
  93. package/dist/markdown/components/front-matter.d.cts.map +1 -0
  94. package/dist/markdown/components/front-matter.d.mts +16 -2
  95. package/dist/markdown/components/front-matter.d.mts.map +1 -0
  96. package/dist/markdown/components/front-matter.mjs +27 -2
  97. package/dist/markdown/components/front-matter.mjs.map +1 -0
  98. package/dist/markdown/components/index.cjs +9 -15
  99. package/dist/markdown/components/index.d.cts +3 -7
  100. package/dist/markdown/components/index.d.mts +3 -7
  101. package/dist/markdown/components/index.mjs +3 -9
  102. package/dist/markdown/components/markdown-file.cjs +130 -8
  103. package/dist/markdown/components/markdown-file.d.cts +29 -5
  104. package/dist/markdown/components/markdown-file.d.cts.map +1 -0
  105. package/dist/markdown/components/markdown-file.d.mts +29 -5
  106. package/dist/markdown/components/markdown-file.d.mts.map +1 -0
  107. package/dist/markdown/components/markdown-file.mjs +129 -7
  108. package/dist/markdown/components/markdown-file.mjs.map +1 -0
  109. package/dist/markdown/components/markdown-table.cjs +100 -5
  110. package/dist/markdown/components/markdown-table.d.cts +28 -4
  111. package/dist/markdown/components/markdown-table.d.cts.map +1 -0
  112. package/dist/markdown/components/markdown-table.d.mts +28 -4
  113. package/dist/markdown/components/markdown-table.d.mts.map +1 -0
  114. package/dist/markdown/components/markdown-table.mjs +98 -3
  115. package/dist/markdown/components/markdown-table.mjs.map +1 -0
  116. package/dist/markdown/contexts/index.cjs +5 -6
  117. package/dist/markdown/contexts/index.d.cts +1 -2
  118. package/dist/markdown/contexts/index.d.mts +1 -2
  119. package/dist/markdown/contexts/index.mjs +1 -2
  120. package/dist/markdown/contexts/markdown-table.cjs +36 -5
  121. package/dist/markdown/contexts/markdown-table.d.cts +38 -2
  122. package/dist/markdown/contexts/markdown-table.d.cts.map +1 -0
  123. package/dist/markdown/contexts/markdown-table.d.mts +38 -2
  124. package/dist/markdown/contexts/markdown-table.d.mts.map +1 -0
  125. package/dist/markdown/contexts/markdown-table.mjs +33 -2
  126. package/dist/markdown/contexts/markdown-table.mjs.map +1 -0
  127. package/dist/markdown/index.cjs +16 -20
  128. package/dist/markdown/index.d.cts +6 -8
  129. package/dist/markdown/index.d.mts +6 -8
  130. package/dist/markdown/index.mjs +6 -10
  131. package/dist/render.cjs +1 -1
  132. package/dist/types/components.cjs +0 -1
  133. package/dist/types/components.d.cts +143 -2
  134. package/dist/types/components.d.cts.map +1 -0
  135. package/dist/types/components.d.mts +143 -2
  136. package/dist/types/components.d.mts.map +1 -0
  137. package/dist/types/components.mjs +0 -2
  138. package/dist/types/index.cjs +0 -2
  139. package/dist/types/index.d.cts +2 -2
  140. package/dist/types/index.d.mts +2 -2
  141. package/dist/types/index.mjs +0 -3
  142. package/dist/types/plugin.cjs +0 -1
  143. package/dist/types/plugin.d.cts +39 -2
  144. package/dist/types/plugin.d.cts.map +1 -0
  145. package/dist/types/plugin.d.mts +39 -2
  146. package/dist/types/plugin.d.mts.map +1 -0
  147. package/dist/types/plugin.mjs +0 -2
  148. package/dist/typescript/components/builtin-file.cjs +61 -8
  149. package/dist/typescript/components/builtin-file.d.cts +35 -6
  150. package/dist/typescript/components/builtin-file.d.cts.map +1 -0
  151. package/dist/typescript/components/builtin-file.d.mts +35 -6
  152. package/dist/typescript/components/builtin-file.d.mts.map +1 -0
  153. package/dist/typescript/components/builtin-file.mjs +61 -8
  154. package/dist/typescript/components/builtin-file.mjs.map +1 -0
  155. package/dist/typescript/components/dynamic-import-statement.cjs +24 -2
  156. package/dist/typescript/components/dynamic-import-statement.d.cts +33 -2
  157. package/dist/typescript/components/dynamic-import-statement.d.cts.map +1 -0
  158. package/dist/typescript/components/dynamic-import-statement.d.mts +33 -2
  159. package/dist/typescript/components/dynamic-import-statement.d.mts.map +1 -0
  160. package/dist/typescript/components/dynamic-import-statement.mjs +24 -2
  161. package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -0
  162. package/dist/typescript/components/entry-file.cjs +41 -7
  163. package/dist/typescript/components/entry-file.d.cts +28 -5
  164. package/dist/typescript/components/entry-file.d.cts.map +1 -0
  165. package/dist/typescript/components/entry-file.d.mts +28 -5
  166. package/dist/typescript/components/entry-file.d.mts.map +1 -0
  167. package/dist/typescript/components/entry-file.mjs +40 -7
  168. package/dist/typescript/components/entry-file.mjs.map +1 -0
  169. package/dist/typescript/components/index.cjs +43 -49
  170. package/dist/typescript/components/index.d.cts +9 -12
  171. package/dist/typescript/components/index.d.mts +9 -12
  172. package/dist/typescript/components/index.mjs +9 -15
  173. package/dist/typescript/components/record-expression.cjs +11 -2
  174. package/dist/typescript/components/record-expression.d.cts +13 -2
  175. package/dist/typescript/components/record-expression.d.cts.map +1 -0
  176. package/dist/typescript/components/record-expression.d.mts +13 -2
  177. package/dist/typescript/components/record-expression.d.mts.map +1 -0
  178. package/dist/typescript/components/record-expression.mjs +11 -2
  179. package/dist/typescript/components/record-expression.mjs.map +1 -0
  180. package/dist/typescript/components/tsdoc-reflection.cjs +177 -7
  181. package/dist/typescript/components/tsdoc-reflection.d.cts +19 -4
  182. package/dist/typescript/components/tsdoc-reflection.d.cts.map +1 -0
  183. package/dist/typescript/components/tsdoc-reflection.d.mts +19 -4
  184. package/dist/typescript/components/tsdoc-reflection.d.mts.map +1 -0
  185. package/dist/typescript/components/tsdoc-reflection.mjs +175 -5
  186. package/dist/typescript/components/tsdoc-reflection.mjs.map +1 -0
  187. package/dist/typescript/components/tsdoc.cjs +484 -22
  188. package/dist/typescript/components/tsdoc.d.cts +164 -3
  189. package/dist/typescript/components/tsdoc.d.cts.map +1 -0
  190. package/dist/typescript/components/tsdoc.d.mts +164 -3
  191. package/dist/typescript/components/tsdoc.d.mts.map +1 -0
  192. package/dist/typescript/components/tsdoc.mjs +465 -3
  193. package/dist/typescript/components/tsdoc.mjs.map +1 -0
  194. package/dist/typescript/components/typescript-file.cjs +215 -8
  195. package/dist/typescript/components/typescript-file.d.cts +50 -4
  196. package/dist/typescript/components/typescript-file.d.cts.map +1 -0
  197. package/dist/typescript/components/typescript-file.d.mts +50 -4
  198. package/dist/typescript/components/typescript-file.d.mts.map +1 -0
  199. package/dist/typescript/components/typescript-file.mjs +213 -6
  200. package/dist/typescript/components/typescript-file.mjs.map +1 -0
  201. package/dist/typescript/components/typescript-interface.cjs +72 -7
  202. package/dist/typescript/components/typescript-interface.d.cts +26 -3
  203. package/dist/typescript/components/typescript-interface.d.cts.map +1 -0
  204. package/dist/typescript/components/typescript-interface.d.mts +26 -3
  205. package/dist/typescript/components/typescript-interface.d.mts.map +1 -0
  206. package/dist/typescript/components/typescript-interface.mjs +71 -6
  207. package/dist/typescript/components/typescript-interface.mjs.map +1 -0
  208. package/dist/typescript/components/typescript-object.cjs +124 -7
  209. package/dist/typescript/components/typescript-object.d.cts +30 -3
  210. package/dist/typescript/components/typescript-object.d.cts.map +1 -0
  211. package/dist/typescript/components/typescript-object.d.mts +30 -3
  212. package/dist/typescript/components/typescript-object.d.mts.map +1 -0
  213. package/dist/typescript/components/typescript-object.mjs +123 -6
  214. package/dist/typescript/components/typescript-object.mjs.map +1 -0
  215. package/dist/typescript/index.cjs +44 -49
  216. package/dist/typescript/index.d.cts +10 -12
  217. package/dist/typescript/index.d.mts +10 -12
  218. package/dist/typescript/index.mjs +10 -15
  219. package/package.json +6 -6
  220. package/dist/builtin-file-BdkkDbuv.mjs +0 -62
  221. package/dist/builtin-file-BdkkDbuv.mjs.map +0 -1
  222. package/dist/builtin-file-CQAeHqiO.cjs +0 -67
  223. package/dist/builtin-file-CiMiD-Yn.d.mts +0 -35
  224. package/dist/builtin-file-CiMiD-Yn.d.mts.map +0 -1
  225. package/dist/builtin-file-GmfaWXJY.d.cts +0 -35
  226. package/dist/builtin-file-GmfaWXJY.d.cts.map +0 -1
  227. package/dist/capnp-BN8Yh6nt.d.mts +0 -88
  228. package/dist/capnp-BN8Yh6nt.d.mts.map +0 -1
  229. package/dist/capnp-Bn9LSaf5.d.cts +0 -88
  230. package/dist/capnp-Bn9LSaf5.d.cts.map +0 -1
  231. package/dist/capnp-ClfqI-5t.cjs +0 -356
  232. package/dist/capnp-XK1IvfIR.mjs +0 -260
  233. package/dist/capnp-XK1IvfIR.mjs.map +0 -1
  234. package/dist/components-B0evB5xd.cjs +0 -0
  235. package/dist/components-BHsPgUVD.mjs +0 -1
  236. package/dist/components-BNK9p5AE.cjs +0 -0
  237. package/dist/components-C4MWIzKk.mjs +0 -1
  238. package/dist/components-CpcNHd1P.d.mts +0 -143
  239. package/dist/components-CpcNHd1P.d.mts.map +0 -1
  240. package/dist/components-DPKSrvP-.cjs +0 -0
  241. package/dist/components-Das8TEFO.mjs +0 -1
  242. package/dist/components-IK2mq84Q.d.cts +0 -143
  243. package/dist/components-IK2mq84Q.d.cts.map +0 -1
  244. package/dist/components-ISRFDWTF.cjs +0 -0
  245. package/dist/components-bxkcKDVx.mjs +0 -1
  246. package/dist/context-7oUaz8OU.d.cts +0 -30
  247. package/dist/context-7oUaz8OU.d.cts.map +0 -1
  248. package/dist/context-BAEo3418.d.mts +0 -30
  249. package/dist/context-BAEo3418.d.mts.map +0 -1
  250. package/dist/context-CKFN898c.mjs +0 -37
  251. package/dist/context-CKFN898c.mjs.map +0 -1
  252. package/dist/context-DNdlL_gp.cjs +0 -60
  253. package/dist/contexts-DWGMeWga.cjs +0 -0
  254. package/dist/contexts-DppcDJxB.mjs +0 -1
  255. package/dist/contexts-J643Nrrt.cjs +0 -0
  256. package/dist/contexts-d0vn6-x6.mjs +0 -1
  257. package/dist/create-builtin-BTtoNoeS.d.mts +0 -16
  258. package/dist/create-builtin-BTtoNoeS.d.mts.map +0 -1
  259. package/dist/create-builtin-BiKyN2s2.cjs +0 -24
  260. package/dist/create-builtin-C4n9BYjY.mjs +0 -19
  261. package/dist/create-builtin-C4n9BYjY.mjs.map +0 -1
  262. package/dist/create-builtin-DvcoEGqh.d.cts +0 -16
  263. package/dist/create-builtin-DvcoEGqh.d.cts.map +0 -1
  264. package/dist/dynamic-import-statement-BVggdOVL.mjs +0 -25
  265. package/dist/dynamic-import-statement-BVggdOVL.mjs.map +0 -1
  266. package/dist/dynamic-import-statement-CNkFdigQ.d.mts +0 -33
  267. package/dist/dynamic-import-statement-CNkFdigQ.d.mts.map +0 -1
  268. package/dist/dynamic-import-statement-CmMuHy6m.d.cts +0 -33
  269. package/dist/dynamic-import-statement-CmMuHy6m.d.cts.map +0 -1
  270. package/dist/dynamic-import-statement-Dy_MY_Ua.cjs +0 -30
  271. package/dist/entry-file-D5u7AjDL.cjs +0 -47
  272. package/dist/entry-file-DVYjczbC.d.mts +0 -28
  273. package/dist/entry-file-DVYjczbC.d.mts.map +0 -1
  274. package/dist/entry-file-Fw7DyszP.mjs +0 -41
  275. package/dist/entry-file-Fw7DyszP.mjs.map +0 -1
  276. package/dist/entry-file-xdUfTbOs.d.cts +0 -28
  277. package/dist/entry-file-xdUfTbOs.d.cts.map +0 -1
  278. package/dist/front-matter-DZ1tB-Uj.cjs +0 -33
  279. package/dist/front-matter-Dh3d0_QX.d.cts +0 -16
  280. package/dist/front-matter-Dh3d0_QX.d.cts.map +0 -1
  281. package/dist/front-matter-DpcRWZVa.d.mts +0 -16
  282. package/dist/front-matter-DpcRWZVa.d.mts.map +0 -1
  283. package/dist/front-matter-Dzh6QhN-.mjs +0 -28
  284. package/dist/front-matter-Dzh6QhN-.mjs.map +0 -1
  285. package/dist/index-BUYyA1Xh.d.cts +0 -1
  286. package/dist/index-B_BBnMou.d.mts +0 -1
  287. package/dist/index-Ch3mSML4.d.cts +0 -1
  288. package/dist/index-CzItj62a.d.mts +0 -1
  289. package/dist/index-DHFfG4yr.d.cts +0 -1
  290. package/dist/index-DgJfEygr.d.mts +0 -1
  291. package/dist/index-Dt_vyhB_.d.cts +0 -1
  292. package/dist/index-Iujpc9_6.d.mts +0 -1
  293. package/dist/index-qCd8f7Um.d.cts +0 -1
  294. package/dist/index-uY8Qbwfx.d.mts +0 -1
  295. package/dist/markdown-file-CFt8hI37.cjs +0 -141
  296. package/dist/markdown-file-Dw1Vv4af.d.mts +0 -29
  297. package/dist/markdown-file-Dw1Vv4af.d.mts.map +0 -1
  298. package/dist/markdown-file-fsUT-8rA.d.cts +0 -29
  299. package/dist/markdown-file-fsUT-8rA.d.cts.map +0 -1
  300. package/dist/markdown-file-k2M9ZbM0.mjs +0 -130
  301. package/dist/markdown-file-k2M9ZbM0.mjs.map +0 -1
  302. package/dist/markdown-table-BKaAfa6u.mjs +0 -34
  303. package/dist/markdown-table-BKaAfa6u.mjs.map +0 -1
  304. package/dist/markdown-table-BWPm6GbJ.cjs +0 -57
  305. package/dist/markdown-table-Ba6OVv17.d.cts +0 -38
  306. package/dist/markdown-table-Ba6OVv17.d.cts.map +0 -1
  307. package/dist/markdown-table-C3pW_3Ss.d.mts +0 -38
  308. package/dist/markdown-table-C3pW_3Ss.d.mts.map +0 -1
  309. package/dist/markdown-table-CRVCcmmS.mjs +0 -99
  310. package/dist/markdown-table-CRVCcmmS.mjs.map +0 -1
  311. package/dist/markdown-table-DAYxgSQH.d.mts +0 -28
  312. package/dist/markdown-table-DAYxgSQH.d.mts.map +0 -1
  313. package/dist/markdown-table-Dcee_Q7w.d.cts +0 -28
  314. package/dist/markdown-table-Dcee_Q7w.d.cts.map +0 -1
  315. package/dist/markdown-table-eTnxxb46.cjs +0 -116
  316. package/dist/meta-B8vjGEJI.d.cts +0 -48
  317. package/dist/meta-B8vjGEJI.d.cts.map +0 -1
  318. package/dist/meta-BVJcyXVs.cjs +0 -60
  319. package/dist/meta-D2yuTClk.d.mts +0 -48
  320. package/dist/meta-D2yuTClk.d.mts.map +0 -1
  321. package/dist/meta-YszNJizK.mjs +0 -37
  322. package/dist/meta-YszNJizK.mjs.map +0 -1
  323. package/dist/output-B5O_qz0i.cjs +0 -44
  324. package/dist/output-B5v8eGOS.d.cts +0 -24
  325. package/dist/output-B5v8eGOS.d.cts.map +0 -1
  326. package/dist/output-BvLp1fyI.mjs +0 -39
  327. package/dist/output-BvLp1fyI.mjs.map +0 -1
  328. package/dist/output-QwbsV2bO.d.mts +0 -24
  329. package/dist/output-QwbsV2bO.d.mts.map +0 -1
  330. package/dist/plugin--P3zPhDL.d.cts +0 -39
  331. package/dist/plugin--P3zPhDL.d.cts.map +0 -1
  332. package/dist/plugin-B8wUxSXi.cjs +0 -0
  333. package/dist/plugin-DTwUbNHt.mjs +0 -1
  334. package/dist/plugin-IvNRWrk4.d.mts +0 -39
  335. package/dist/plugin-IvNRWrk4.d.mts.map +0 -1
  336. package/dist/record-expression-6ElbFyR0.cjs +0 -17
  337. package/dist/record-expression-BHpXe3mY.mjs +0 -12
  338. package/dist/record-expression-BHpXe3mY.mjs.map +0 -1
  339. package/dist/record-expression-CJcabN6g.d.cts +0 -13
  340. package/dist/record-expression-CJcabN6g.d.cts.map +0 -1
  341. package/dist/record-expression-DlAsQ3Xo.d.mts +0 -13
  342. package/dist/record-expression-DlAsQ3Xo.d.mts.map +0 -1
  343. package/dist/refkey-BUCGYKFp.d.cts +0 -14
  344. package/dist/refkey-BUCGYKFp.d.cts.map +0 -1
  345. package/dist/refkey-BYkTQR2j.d.mts +0 -14
  346. package/dist/refkey-BYkTQR2j.d.mts.map +0 -1
  347. package/dist/refkey-C08kDOQ0.cjs +0 -21
  348. package/dist/refkey-CyhX8n2z.mjs +0 -16
  349. package/dist/refkey-CyhX8n2z.mjs.map +0 -1
  350. package/dist/reflection-BktS88RM.cjs +0 -108
  351. package/dist/reflection-CDRGf-os.mjs +0 -61
  352. package/dist/reflection-CDRGf-os.mjs.map +0 -1
  353. package/dist/reflection-DoDf7d2P.d.mts +0 -53
  354. package/dist/reflection-DoDf7d2P.d.mts.map +0 -1
  355. package/dist/reflection-DroaluKV.d.cts +0 -53
  356. package/dist/reflection-DroaluKV.d.cts.map +0 -1
  357. package/dist/single-line-comment-BmjvZ7BN.mjs +0 -22
  358. package/dist/single-line-comment-BmjvZ7BN.mjs.map +0 -1
  359. package/dist/single-line-comment-DvzkrIEt.d.mts +0 -23
  360. package/dist/single-line-comment-DvzkrIEt.d.mts.map +0 -1
  361. package/dist/single-line-comment-iSGJc1nT.d.cts +0 -23
  362. package/dist/single-line-comment-iSGJc1nT.d.cts.map +0 -1
  363. package/dist/single-line-comment-tAWBgL9v.cjs +0 -27
  364. package/dist/source-file-6kJUbZIx.mjs +0 -62
  365. package/dist/source-file-6kJUbZIx.mjs.map +0 -1
  366. package/dist/source-file-D4aKewY_.d.mts +0 -33
  367. package/dist/source-file-D4aKewY_.d.mts.map +0 -1
  368. package/dist/source-file-DnqaQY90.cjs +0 -68
  369. package/dist/source-file-WIVLLeIQ.d.cts +0 -33
  370. package/dist/source-file-WIVLLeIQ.d.cts.map +0 -1
  371. package/dist/tsdoc-5v2GSY2e.d.cts +0 -164
  372. package/dist/tsdoc-5v2GSY2e.d.cts.map +0 -1
  373. package/dist/tsdoc-B1aBsj0L.mjs +0 -466
  374. package/dist/tsdoc-B1aBsj0L.mjs.map +0 -1
  375. package/dist/tsdoc-BsZk3Mo6.d.mts +0 -164
  376. package/dist/tsdoc-BsZk3Mo6.d.mts.map +0 -1
  377. package/dist/tsdoc-BufL8muf.cjs +0 -585
  378. package/dist/tsdoc-reflection-B5-J4ia-.cjs +0 -193
  379. package/dist/tsdoc-reflection-BAiGJzrO.d.cts +0 -19
  380. package/dist/tsdoc-reflection-BAiGJzrO.d.cts.map +0 -1
  381. package/dist/tsdoc-reflection-DeP-cV94.d.mts +0 -19
  382. package/dist/tsdoc-reflection-DeP-cV94.d.mts.map +0 -1
  383. package/dist/tsdoc-reflection-g4nQJV4z.mjs +0 -176
  384. package/dist/tsdoc-reflection-g4nQJV4z.mjs.map +0 -1
  385. package/dist/typescript-BbjCTT04.cjs +0 -51
  386. package/dist/typescript-CrVxDaSo.mjs +0 -46
  387. package/dist/typescript-CrVxDaSo.mjs.map +0 -1
  388. package/dist/typescript-D2NuvKuU.d.cts +0 -26
  389. package/dist/typescript-D2NuvKuU.d.cts.map +0 -1
  390. package/dist/typescript-ImCZ_9UC.d.mts +0 -26
  391. package/dist/typescript-ImCZ_9UC.d.mts.map +0 -1
  392. package/dist/typescript-file-4oY1sIRB.cjs +0 -231
  393. package/dist/typescript-file-Bo3KHWdR.mjs +0 -214
  394. package/dist/typescript-file-Bo3KHWdR.mjs.map +0 -1
  395. package/dist/typescript-file-BzXivK-j.d.cts +0 -50
  396. package/dist/typescript-file-BzXivK-j.d.cts.map +0 -1
  397. package/dist/typescript-file-DLBBHHWY.d.mts +0 -50
  398. package/dist/typescript-file-DLBBHHWY.d.mts.map +0 -1
  399. package/dist/typescript-interface-B0AoZx3f.cjs +0 -83
  400. package/dist/typescript-interface-CBaHBdis.mjs +0 -72
  401. package/dist/typescript-interface-CBaHBdis.mjs.map +0 -1
  402. package/dist/typescript-interface-DYG0IOR-.d.mts +0 -26
  403. package/dist/typescript-interface-DYG0IOR-.d.mts.map +0 -1
  404. package/dist/typescript-interface-WKTnM5vn.d.cts +0 -26
  405. package/dist/typescript-interface-WKTnM5vn.d.cts.map +0 -1
  406. package/dist/typescript-object-C4d4fThY.cjs +0 -135
  407. package/dist/typescript-object-Cun6srBu.d.cts +0 -30
  408. package/dist/typescript-object-Cun6srBu.d.cts.map +0 -1
  409. package/dist/typescript-object-DDrR7gcH.d.mts +0 -30
  410. package/dist/typescript-object-DDrR7gcH.d.mts.map +0 -1
  411. package/dist/typescript-object-DrsEti-t.mjs +0 -124
  412. package/dist/typescript-object-DrsEti-t.mjs.map +0 -1
@@ -1,30 +0,0 @@
1
- import { ComponentContext } from "@alloy-js/core";
2
- import { PluginContext } from "powerlines/types/context";
3
-
4
- //#region src/core/contexts/context.d.ts
5
-
6
- /**
7
- * The Powerlines context used in template rendering.
8
- */
9
- declare const PowerlinesContext: ComponentContext<PluginContext>;
10
- /**
11
- * Hook to access the Powerlines Context.
12
- *
13
- * @returns The Context.
14
- */
15
- declare function usePowerlinesContext<TContext extends PluginContext = PluginContext>(): TContext | undefined;
16
- /**
17
- * Hook to safely access the {@link PluginContext | Powerlines context}.
18
- *
19
- * @returns The Powerlines context or undefined if not set.
20
- */
21
- declare function usePowerlinesSafe<TContext extends PluginContext = PluginContext>(): TContext | undefined;
22
- /**
23
- * Hook to access the {@link PluginContext | Powerlines context}.
24
- *
25
- * @returns The Powerlines context.
26
- */
27
- declare function usePowerlines<TContext extends PluginContext = PluginContext>(): TContext;
28
- //#endregion
29
- export { usePowerlinesSafe as i, usePowerlines as n, usePowerlinesContext as r, PowerlinesContext as t };
30
- //# sourceMappingURL=context-7oUaz8OU.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context-7oUaz8OU.d.cts","names":[],"sources":["../src/core/contexts/context.ts"],"sourcesContent":[],"mappings":";;;;;;;AA4BA;AAQgB,cARH,iBAQuB,EARJ,gBAQI,CARa,aAQb,CAAA;;;;;AAWpC;AACmB,iBAZH,oBAYG,CAAA,iBAXA,aAWA,GAXgB,aAWhB,CAAA,CAAA,CAAA,EAVd,QAUc,GAAA,SAAA;;;;AAYnB;;AACmC,iBAdnB,iBAcmB,CAAA,iBAbhB,aAagB,GAbA,aAaA,CAAA,CAAA,CAAA,EAZ9B,QAY8B,GAAA,SAAA;;;;;;iBADnB,+BACG,gBAAgB,kBAC9B"}
@@ -1,30 +0,0 @@
1
- import { ComponentContext } from "@alloy-js/core";
2
- import { PluginContext } from "powerlines/types/context";
3
-
4
- //#region src/core/contexts/context.d.ts
5
-
6
- /**
7
- * The Powerlines context used in template rendering.
8
- */
9
- declare const PowerlinesContext: ComponentContext<PluginContext>;
10
- /**
11
- * Hook to access the Powerlines Context.
12
- *
13
- * @returns The Context.
14
- */
15
- declare function usePowerlinesContext<TContext extends PluginContext = PluginContext>(): TContext | undefined;
16
- /**
17
- * Hook to safely access the {@link PluginContext | Powerlines context}.
18
- *
19
- * @returns The Powerlines context or undefined if not set.
20
- */
21
- declare function usePowerlinesSafe<TContext extends PluginContext = PluginContext>(): TContext | undefined;
22
- /**
23
- * Hook to access the {@link PluginContext | Powerlines context}.
24
- *
25
- * @returns The Powerlines context.
26
- */
27
- declare function usePowerlines<TContext extends PluginContext = PluginContext>(): TContext;
28
- //#endregion
29
- export { usePowerlinesSafe as i, usePowerlines as n, usePowerlinesContext as r, PowerlinesContext as t };
30
- //# sourceMappingURL=context-BAEo3418.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context-BAEo3418.d.mts","names":[],"sources":["../src/core/contexts/context.ts"],"sourcesContent":[],"mappings":";;;;;;;AA4BA;AAQgB,cARH,iBAQuB,EARJ,gBAQI,CARa,aAQb,CAAA;;;;;AAWpC;AACmB,iBAZH,oBAYG,CAAA,iBAXA,aAWA,GAXgB,aAWhB,CAAA,CAAA,CAAA,EAVd,QAUc,GAAA,SAAA;;;;AAYnB;;AACmC,iBAdnB,iBAcmB,CAAA,iBAbhB,aAagB,GAbA,aAaA,CAAA,CAAA,CAAA,EAZ9B,QAY8B,GAAA,SAAA;;;;;;iBADnB,+BACG,gBAAgB,kBAC9B"}
@@ -1,37 +0,0 @@
1
- import { createNamedContext, useContext } from "@alloy-js/core";
2
-
3
- //#region src/core/contexts/context.ts
4
- /**
5
- * The Powerlines context used in template rendering.
6
- */
7
- const PowerlinesContext = createNamedContext("Powerlines");
8
- /**
9
- * Hook to access the Powerlines Context.
10
- *
11
- * @returns The Context.
12
- */
13
- function usePowerlinesContext() {
14
- return useContext(PowerlinesContext);
15
- }
16
- /**
17
- * Hook to safely access the {@link PluginContext | Powerlines context}.
18
- *
19
- * @returns The Powerlines context or undefined if not set.
20
- */
21
- function usePowerlinesSafe() {
22
- return usePowerlinesContext() ?? void 0;
23
- }
24
- /**
25
- * Hook to access the {@link PluginContext | Powerlines context}.
26
- *
27
- * @returns The Powerlines context.
28
- */
29
- function usePowerlines() {
30
- const powerlines = usePowerlinesSafe();
31
- if (!powerlines) throw new Error("Powerlines - Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
32
- return powerlines;
33
- }
34
-
35
- //#endregion
36
- export { usePowerlinesSafe as i, usePowerlines as n, usePowerlinesContext as r, PowerlinesContext as t };
37
- //# sourceMappingURL=context-CKFN898c.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context-CKFN898c.mjs","names":["createNamedContext","useContext","PowerlinesContext","usePowerlinesContext","usePowerlinesSafe","powerlines","undefined","usePowerlines","Error"],"sources":["../src/core/contexts/context.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 {\n ComponentContext,\n createNamedContext,\n useContext\n} from \"@alloy-js/core\";\nimport type { PluginContext } from \"powerlines/types/context\";\n\n/**\n * The Powerlines context used in template rendering.\n */\nexport const PowerlinesContext: ComponentContext<PluginContext> =\n createNamedContext<PluginContext>(\"Powerlines\");\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function usePowerlinesContext<\n TContext extends PluginContext = PluginContext\n>(): TContext | undefined {\n return useContext(PowerlinesContext) as TContext | undefined;\n}\n\n/**\n * Hook to safely access the {@link PluginContext | Powerlines context}.\n *\n * @returns The Powerlines context or undefined if not set.\n */\nexport function usePowerlinesSafe<\n TContext extends PluginContext = PluginContext\n>(): TContext | undefined {\n const powerlines = usePowerlinesContext<TContext>();\n\n return powerlines ?? undefined;\n}\n\n/**\n * Hook to access the {@link PluginContext | Powerlines context}.\n *\n * @returns The Powerlines context.\n */\nexport function usePowerlines<\n TContext extends PluginContext = PluginContext\n>(): TContext {\n const powerlines = usePowerlinesSafe<TContext>();\n if (!powerlines) {\n throw new Error(\n \"Powerlines - Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return powerlines;\n}\n"],"mappings":""}
@@ -1,60 +0,0 @@
1
- const require_chunk = require('./chunk-CbDLau6x.cjs');
2
- let __alloy_js_core = require("@alloy-js/core");
3
-
4
- //#region src/core/contexts/context.ts
5
- /**
6
- * The Powerlines context used in template rendering.
7
- */
8
- const PowerlinesContext = (0, __alloy_js_core.createNamedContext)("Powerlines");
9
- /**
10
- * Hook to access the Powerlines Context.
11
- *
12
- * @returns The Context.
13
- */
14
- function usePowerlinesContext() {
15
- return (0, __alloy_js_core.useContext)(PowerlinesContext);
16
- }
17
- /**
18
- * Hook to safely access the {@link PluginContext | Powerlines context}.
19
- *
20
- * @returns The Powerlines context or undefined if not set.
21
- */
22
- function usePowerlinesSafe() {
23
- return usePowerlinesContext() ?? void 0;
24
- }
25
- /**
26
- * Hook to access the {@link PluginContext | Powerlines context}.
27
- *
28
- * @returns The Powerlines context.
29
- */
30
- function usePowerlines() {
31
- const powerlines = usePowerlinesSafe();
32
- if (!powerlines) throw new Error("Powerlines - Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
33
- return powerlines;
34
- }
35
-
36
- //#endregion
37
- Object.defineProperty(exports, 'PowerlinesContext', {
38
- enumerable: true,
39
- get: function () {
40
- return PowerlinesContext;
41
- }
42
- });
43
- Object.defineProperty(exports, 'usePowerlines', {
44
- enumerable: true,
45
- get: function () {
46
- return usePowerlines;
47
- }
48
- });
49
- Object.defineProperty(exports, 'usePowerlinesContext', {
50
- enumerable: true,
51
- get: function () {
52
- return usePowerlinesContext;
53
- }
54
- });
55
- Object.defineProperty(exports, 'usePowerlinesSafe', {
56
- enumerable: true,
57
- get: function () {
58
- return usePowerlinesSafe;
59
- }
60
- });
File without changes
@@ -1 +0,0 @@
1
- export { };
File without changes
@@ -1 +0,0 @@
1
- export { };
@@ -1,16 +0,0 @@
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-BTtoNoeS.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-builtin-BTtoNoeS.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"}
@@ -1,24 +0,0 @@
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
- });
@@ -1,19 +0,0 @@
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-C4n9BYjY.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-builtin-C4n9BYjY.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":""}
@@ -1,16 +0,0 @@
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-DvcoEGqh.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-builtin-DvcoEGqh.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"}
@@ -1,25 +0,0 @@
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-BVggdOVL.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamic-import-statement-BVggdOVL.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":""}
@@ -1,33 +0,0 @@
1
- import * as _alloy_js_core15 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_core15.Children;
30
- declare type __ΩDynamicImportStatementProps = any[];
31
- //#endregion
32
- export { DynamicImportStatementProps as n, __ΩDynamicImportStatementProps as r, DynamicImportStatement as t };
33
- //# sourceMappingURL=dynamic-import-statement-CNkFdigQ.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamic-import-statement-CNkFdigQ.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"}
@@ -1,33 +0,0 @@
1
- import * as _alloy_js_core8 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_core8.Children;
30
- declare type __ΩDynamicImportStatementProps = any[];
31
- //#endregion
32
- export { DynamicImportStatementProps as n, __ΩDynamicImportStatementProps as r, DynamicImportStatement as t };
33
- //# sourceMappingURL=dynamic-import-statement-CmMuHy6m.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamic-import-statement-CmMuHy6m.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,eAAA,CAAA"}
@@ -1,30 +0,0 @@
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
- });
@@ -1,47 +0,0 @@
1
- const require_chunk = require('./chunk-CbDLau6x.cjs');
2
- const require_context = require('./context-DNdlL_gp.cjs');
3
- const require_typescript_file = require('./typescript-file-4oY1sIRB.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_append = require("@stryke/path/append");
8
- let defu = require("defu");
9
- defu = require_chunk.__toESM(defu);
10
- let __stryke_path_replace = require("@stryke/path/replace");
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
- });
@@ -1,28 +0,0 @@
1
- import { o as TypescriptFileProps } from "./typescript-file-DLBBHHWY.mjs";
2
- import * as _alloy_js_core16 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_core16.Children;
25
- declare type __ΩEntryFileProps = any[];
26
- //#endregion
27
- export { EntryFileProps as n, __ΩEntryFileProps as r, EntryFile as t };
28
- //# sourceMappingURL=entry-file-DVYjczbC.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entry-file-DVYjczbC.d.mts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
@@ -1,41 +0,0 @@
1
- import { i as usePowerlinesSafe } from "./context-CKFN898c.mjs";
2
- import { t as TypescriptFile } from "./typescript-file-Bo3KHWdR.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 { appendPath } from "@stryke/path/append";
7
- import defu from "defu";
8
- import { replaceExtension, replacePath } from "@stryke/path/replace";
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-Fw7DyszP.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entry-file-Fw7DyszP.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":""}
@@ -1,28 +0,0 @@
1
- import { o as TypescriptFileProps } from "./typescript-file-BzXivK-j.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-xdUfTbOs.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entry-file-xdUfTbOs.d.cts","names":[],"sources":["../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
@@ -1,33 +0,0 @@
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
-
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
- Object.defineProperty(exports, 'FrontMatter', {
29
- enumerable: true,
30
- get: function () {
31
- return FrontMatter;
32
- }
33
- });