@powerlines/plugin-alloy 0.19.32 → 0.19.34

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 (460) 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 +60 -0
  132. package/dist/render.d.cts +23 -0
  133. package/dist/render.d.cts.map +1 -0
  134. package/dist/render.d.mts +23 -0
  135. package/dist/render.d.mts.map +1 -0
  136. package/dist/render.mjs +60 -0
  137. package/dist/render.mjs.map +1 -0
  138. package/dist/types/components.cjs +0 -1
  139. package/dist/types/components.d.cts +143 -2
  140. package/dist/types/components.d.cts.map +1 -0
  141. package/dist/types/components.d.mts +143 -2
  142. package/dist/types/components.d.mts.map +1 -0
  143. package/dist/types/components.mjs +0 -2
  144. package/dist/types/index.cjs +0 -2
  145. package/dist/types/index.d.cts +2 -2
  146. package/dist/types/index.d.mts +2 -2
  147. package/dist/types/index.mjs +0 -3
  148. package/dist/types/plugin.cjs +0 -1
  149. package/dist/types/plugin.d.cts +39 -2
  150. package/dist/types/plugin.d.cts.map +1 -0
  151. package/dist/types/plugin.d.mts +39 -2
  152. package/dist/types/plugin.d.mts.map +1 -0
  153. package/dist/types/plugin.mjs +0 -2
  154. package/dist/typescript/components/builtin-file.cjs +61 -8
  155. package/dist/typescript/components/builtin-file.d.cts +35 -6
  156. package/dist/typescript/components/builtin-file.d.cts.map +1 -0
  157. package/dist/typescript/components/builtin-file.d.mts +35 -6
  158. package/dist/typescript/components/builtin-file.d.mts.map +1 -0
  159. package/dist/typescript/components/builtin-file.mjs +61 -8
  160. package/dist/typescript/components/builtin-file.mjs.map +1 -0
  161. package/dist/typescript/components/dynamic-import-statement.cjs +24 -2
  162. package/dist/typescript/components/dynamic-import-statement.d.cts +33 -2
  163. package/dist/typescript/components/dynamic-import-statement.d.cts.map +1 -0
  164. package/dist/typescript/components/dynamic-import-statement.d.mts +33 -2
  165. package/dist/typescript/components/dynamic-import-statement.d.mts.map +1 -0
  166. package/dist/typescript/components/dynamic-import-statement.mjs +24 -2
  167. package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -0
  168. package/dist/typescript/components/entry-file.cjs +41 -7
  169. package/dist/typescript/components/entry-file.d.cts +28 -5
  170. package/dist/typescript/components/entry-file.d.cts.map +1 -0
  171. package/dist/typescript/components/entry-file.d.mts +28 -5
  172. package/dist/typescript/components/entry-file.d.mts.map +1 -0
  173. package/dist/typescript/components/entry-file.mjs +40 -7
  174. package/dist/typescript/components/entry-file.mjs.map +1 -0
  175. package/dist/typescript/components/index.cjs +43 -49
  176. package/dist/typescript/components/index.d.cts +9 -12
  177. package/dist/typescript/components/index.d.mts +9 -12
  178. package/dist/typescript/components/index.mjs +9 -15
  179. package/dist/typescript/components/record-expression.cjs +11 -2
  180. package/dist/typescript/components/record-expression.d.cts +13 -2
  181. package/dist/typescript/components/record-expression.d.cts.map +1 -0
  182. package/dist/typescript/components/record-expression.d.mts +13 -2
  183. package/dist/typescript/components/record-expression.d.mts.map +1 -0
  184. package/dist/typescript/components/record-expression.mjs +11 -2
  185. package/dist/typescript/components/record-expression.mjs.map +1 -0
  186. package/dist/typescript/components/tsdoc-reflection.cjs +177 -7
  187. package/dist/typescript/components/tsdoc-reflection.d.cts +19 -4
  188. package/dist/typescript/components/tsdoc-reflection.d.cts.map +1 -0
  189. package/dist/typescript/components/tsdoc-reflection.d.mts +19 -4
  190. package/dist/typescript/components/tsdoc-reflection.d.mts.map +1 -0
  191. package/dist/typescript/components/tsdoc-reflection.mjs +175 -5
  192. package/dist/typescript/components/tsdoc-reflection.mjs.map +1 -0
  193. package/dist/typescript/components/tsdoc.cjs +484 -22
  194. package/dist/typescript/components/tsdoc.d.cts +164 -3
  195. package/dist/typescript/components/tsdoc.d.cts.map +1 -0
  196. package/dist/typescript/components/tsdoc.d.mts +164 -3
  197. package/dist/typescript/components/tsdoc.d.mts.map +1 -0
  198. package/dist/typescript/components/tsdoc.mjs +465 -3
  199. package/dist/typescript/components/tsdoc.mjs.map +1 -0
  200. package/dist/typescript/components/typescript-file.cjs +215 -8
  201. package/dist/typescript/components/typescript-file.d.cts +50 -4
  202. package/dist/typescript/components/typescript-file.d.cts.map +1 -0
  203. package/dist/typescript/components/typescript-file.d.mts +50 -4
  204. package/dist/typescript/components/typescript-file.d.mts.map +1 -0
  205. package/dist/typescript/components/typescript-file.mjs +213 -6
  206. package/dist/typescript/components/typescript-file.mjs.map +1 -0
  207. package/dist/typescript/components/typescript-interface.cjs +72 -7
  208. package/dist/typescript/components/typescript-interface.d.cts +26 -3
  209. package/dist/typescript/components/typescript-interface.d.cts.map +1 -0
  210. package/dist/typescript/components/typescript-interface.d.mts +26 -3
  211. package/dist/typescript/components/typescript-interface.d.mts.map +1 -0
  212. package/dist/typescript/components/typescript-interface.mjs +71 -6
  213. package/dist/typescript/components/typescript-interface.mjs.map +1 -0
  214. package/dist/typescript/components/typescript-object.cjs +124 -7
  215. package/dist/typescript/components/typescript-object.d.cts +30 -3
  216. package/dist/typescript/components/typescript-object.d.cts.map +1 -0
  217. package/dist/typescript/components/typescript-object.d.mts +30 -3
  218. package/dist/typescript/components/typescript-object.d.mts.map +1 -0
  219. package/dist/typescript/components/typescript-object.mjs +123 -6
  220. package/dist/typescript/components/typescript-object.mjs.map +1 -0
  221. package/dist/typescript/index.cjs +44 -49
  222. package/dist/typescript/index.d.cts +10 -12
  223. package/dist/typescript/index.d.mts +10 -12
  224. package/dist/typescript/index.mjs +10 -15
  225. package/package.json +20 -6
  226. package/dist/builtin-file-BNp7C-BU.mjs +0 -62
  227. package/dist/builtin-file-BNp7C-BU.mjs.map +0 -1
  228. package/dist/builtin-file-C-TpxdCP.d.mts +0 -35
  229. package/dist/builtin-file-C-TpxdCP.d.mts.map +0 -1
  230. package/dist/builtin-file-CDLuGDg7.d.cts +0 -35
  231. package/dist/builtin-file-CDLuGDg7.d.cts.map +0 -1
  232. package/dist/builtin-file-CQAeHqiO.cjs +0 -67
  233. package/dist/builtin-file-DWcpFOVB.d.mts +0 -35
  234. package/dist/builtin-file-DWcpFOVB.d.mts.map +0 -1
  235. package/dist/builtin-file-I0ejC9w0.d.cts +0 -35
  236. package/dist/builtin-file-I0ejC9w0.d.cts.map +0 -1
  237. package/dist/capnp-CLxcoMcG.d.mts +0 -88
  238. package/dist/capnp-CLxcoMcG.d.mts.map +0 -1
  239. package/dist/capnp-CPbob9Cm.mjs +0 -260
  240. package/dist/capnp-CPbob9Cm.mjs.map +0 -1
  241. package/dist/capnp-ClfqI-5t.cjs +0 -356
  242. package/dist/capnp-DbPtfpg2.d.cts +0 -88
  243. package/dist/capnp-DbPtfpg2.d.cts.map +0 -1
  244. package/dist/components-B0evB5xd.cjs +0 -0
  245. package/dist/components-BNK9p5AE.cjs +0 -0
  246. package/dist/components-ByryZacA.mjs +0 -1
  247. package/dist/components-C3qpgLKV.mjs +0 -1
  248. package/dist/components-Cr-i-ofB.mjs +0 -1
  249. package/dist/components-CvqTz7Q9.d.cts +0 -143
  250. package/dist/components-CvqTz7Q9.d.cts.map +0 -1
  251. package/dist/components-DPKSrvP-.cjs +0 -0
  252. package/dist/components-ISRFDWTF.cjs +0 -0
  253. package/dist/components-NXgsRgB4.mjs +0 -1
  254. package/dist/components-_4e2YMfT.d.mts +0 -143
  255. package/dist/components-_4e2YMfT.d.mts.map +0 -1
  256. package/dist/context-C7gW4eqa.d.cts +0 -30
  257. package/dist/context-C7gW4eqa.d.cts.map +0 -1
  258. package/dist/context-CdPajCh6.mjs +0 -37
  259. package/dist/context-CdPajCh6.mjs.map +0 -1
  260. package/dist/context-D5pAjVbn.d.mts +0 -30
  261. package/dist/context-D5pAjVbn.d.mts.map +0 -1
  262. package/dist/context-DNdlL_gp.cjs +0 -60
  263. package/dist/contexts-BqTplHQH.mjs +0 -1
  264. package/dist/contexts-D-vYhGdM.mjs +0 -1
  265. package/dist/contexts-DWGMeWga.cjs +0 -0
  266. package/dist/contexts-J643Nrrt.cjs +0 -0
  267. package/dist/create-builtin-Be3J_vqf.mjs +0 -19
  268. package/dist/create-builtin-Be3J_vqf.mjs.map +0 -1
  269. package/dist/create-builtin-BiKyN2s2.cjs +0 -24
  270. package/dist/create-builtin-Bpswa0ZT.d.cts +0 -16
  271. package/dist/create-builtin-Bpswa0ZT.d.cts.map +0 -1
  272. package/dist/create-builtin-CbEjJreB.d.mts +0 -16
  273. package/dist/create-builtin-CbEjJreB.d.mts.map +0 -1
  274. package/dist/dynamic-import-statement-B4Ov9C7y.mjs +0 -25
  275. package/dist/dynamic-import-statement-B4Ov9C7y.mjs.map +0 -1
  276. package/dist/dynamic-import-statement-CNsIFAva.d.cts +0 -33
  277. package/dist/dynamic-import-statement-CNsIFAva.d.cts.map +0 -1
  278. package/dist/dynamic-import-statement-CVIYwXyi.d.mts +0 -33
  279. package/dist/dynamic-import-statement-CVIYwXyi.d.mts.map +0 -1
  280. package/dist/dynamic-import-statement-DDEpZVlQ.d.cts +0 -33
  281. package/dist/dynamic-import-statement-DDEpZVlQ.d.cts.map +0 -1
  282. package/dist/dynamic-import-statement-DSNDMC9Y.d.mts +0 -33
  283. package/dist/dynamic-import-statement-DSNDMC9Y.d.mts.map +0 -1
  284. package/dist/dynamic-import-statement-Dy_MY_Ua.cjs +0 -30
  285. package/dist/entry-file-CYPWFUfe.cjs +0 -47
  286. package/dist/entry-file-CrZ-k87r.mjs +0 -41
  287. package/dist/entry-file-CrZ-k87r.mjs.map +0 -1
  288. package/dist/entry-file-DOcjyCDG.d.mts +0 -28
  289. package/dist/entry-file-DOcjyCDG.d.mts.map +0 -1
  290. package/dist/entry-file-DVf4SGx4.d.cts +0 -28
  291. package/dist/entry-file-DVf4SGx4.d.cts.map +0 -1
  292. package/dist/entry-file-DXv3HtYV.d.mts +0 -28
  293. package/dist/entry-file-DXv3HtYV.d.mts.map +0 -1
  294. package/dist/entry-file-y0caTLfc.d.cts +0 -28
  295. package/dist/entry-file-y0caTLfc.d.cts.map +0 -1
  296. package/dist/front-matter-BeTG0uJA.mjs +0 -28
  297. package/dist/front-matter-BeTG0uJA.mjs.map +0 -1
  298. package/dist/front-matter-CXfCT8a8.d.mts +0 -16
  299. package/dist/front-matter-CXfCT8a8.d.mts.map +0 -1
  300. package/dist/front-matter-DTorR58b.d.cts +0 -16
  301. package/dist/front-matter-DTorR58b.d.cts.map +0 -1
  302. package/dist/front-matter-DZ1tB-Uj.cjs +0 -33
  303. package/dist/front-matter-DySGMCRE.d.cts +0 -16
  304. package/dist/front-matter-DySGMCRE.d.cts.map +0 -1
  305. package/dist/index-BJ8-FA6N.d.cts +0 -1
  306. package/dist/index-BXpMZvwA.d.cts +0 -1
  307. package/dist/index-BhY1qu3m.d.cts +0 -1
  308. package/dist/index-BjgW3E7y.d.mts +0 -1
  309. package/dist/index-C3usUse7.d.mts +0 -1
  310. package/dist/index-D13oYj4_.d.mts +0 -1
  311. package/dist/index-DBGd4WeR.d.mts +0 -1
  312. package/dist/index-DdxxIAKU.d.cts +0 -1
  313. package/dist/index-DpEKQcoR.d.cts +0 -1
  314. package/dist/index-gpCH5158.d.mts +0 -1
  315. package/dist/markdown-file-BkmvexMF.d.cts +0 -29
  316. package/dist/markdown-file-BkmvexMF.d.cts.map +0 -1
  317. package/dist/markdown-file-C7o9bn--.d.mts +0 -29
  318. package/dist/markdown-file-C7o9bn--.d.mts.map +0 -1
  319. package/dist/markdown-file-CFt8hI37.cjs +0 -141
  320. package/dist/markdown-file-CX8auFpl.mjs +0 -130
  321. package/dist/markdown-file-CX8auFpl.mjs.map +0 -1
  322. package/dist/markdown-file-CbVNKFje.d.cts +0 -29
  323. package/dist/markdown-file-CbVNKFje.d.cts.map +0 -1
  324. package/dist/markdown-file-DMrhFhUU.d.mts +0 -29
  325. package/dist/markdown-file-DMrhFhUU.d.mts.map +0 -1
  326. package/dist/markdown-table-B7EUUNbl.d.mts +0 -28
  327. package/dist/markdown-table-B7EUUNbl.d.mts.map +0 -1
  328. package/dist/markdown-table-BWPm6GbJ.cjs +0 -57
  329. package/dist/markdown-table-CGXp5JbS.d.mts +0 -28
  330. package/dist/markdown-table-CGXp5JbS.d.mts.map +0 -1
  331. package/dist/markdown-table-CKMEMcyb.d.cts +0 -28
  332. package/dist/markdown-table-CKMEMcyb.d.cts.map +0 -1
  333. package/dist/markdown-table-CZMEY6IR.d.cts +0 -38
  334. package/dist/markdown-table-CZMEY6IR.d.cts.map +0 -1
  335. package/dist/markdown-table-CnEur72Z.mjs +0 -99
  336. package/dist/markdown-table-CnEur72Z.mjs.map +0 -1
  337. package/dist/markdown-table-Cv3P72sN.d.cts +0 -28
  338. package/dist/markdown-table-Cv3P72sN.d.cts.map +0 -1
  339. package/dist/markdown-table-PT2TFFY3.mjs +0 -34
  340. package/dist/markdown-table-PT2TFFY3.mjs.map +0 -1
  341. package/dist/markdown-table-eTnxxb46.cjs +0 -116
  342. package/dist/markdown-table-t6Z-cmxX.d.mts +0 -38
  343. package/dist/markdown-table-t6Z-cmxX.d.mts.map +0 -1
  344. package/dist/meta-BEeFPjoM.mjs +0 -37
  345. package/dist/meta-BEeFPjoM.mjs.map +0 -1
  346. package/dist/meta-BVJcyXVs.cjs +0 -60
  347. package/dist/meta-D0y5uZo4.d.cts +0 -48
  348. package/dist/meta-D0y5uZo4.d.cts.map +0 -1
  349. package/dist/meta-DJqWxY95.d.mts +0 -48
  350. package/dist/meta-DJqWxY95.d.mts.map +0 -1
  351. package/dist/output-B5O_qz0i.cjs +0 -44
  352. package/dist/output-C5BkcdCd.d.cts +0 -24
  353. package/dist/output-C5BkcdCd.d.cts.map +0 -1
  354. package/dist/output-C7mlHz0P.d.mts +0 -24
  355. package/dist/output-C7mlHz0P.d.mts.map +0 -1
  356. package/dist/output-DcuryjuV.mjs +0 -39
  357. package/dist/output-DcuryjuV.mjs.map +0 -1
  358. package/dist/output-XvUhyMSi.d.cts +0 -24
  359. package/dist/output-XvUhyMSi.d.cts.map +0 -1
  360. package/dist/plugin-B8wUxSXi.cjs +0 -0
  361. package/dist/plugin-BzF8Q2v1.mjs +0 -1
  362. package/dist/plugin-CyBCpZyU.d.mts +0 -39
  363. package/dist/plugin-CyBCpZyU.d.mts.map +0 -1
  364. package/dist/plugin-DIlnN1SV.d.cts +0 -39
  365. package/dist/plugin-DIlnN1SV.d.cts.map +0 -1
  366. package/dist/record-expression-6ElbFyR0.cjs +0 -17
  367. package/dist/record-expression-ChoLAsVS.d.mts +0 -13
  368. package/dist/record-expression-ChoLAsVS.d.mts.map +0 -1
  369. package/dist/record-expression-D5W72rZN.mjs +0 -12
  370. package/dist/record-expression-D5W72rZN.mjs.map +0 -1
  371. package/dist/record-expression-Dwg_PZpg.d.cts +0 -13
  372. package/dist/record-expression-Dwg_PZpg.d.cts.map +0 -1
  373. package/dist/refkey-C08kDOQ0.cjs +0 -21
  374. package/dist/refkey-CP7MJMac.d.cts +0 -14
  375. package/dist/refkey-CP7MJMac.d.cts.map +0 -1
  376. package/dist/refkey-CQVHeuAq.mjs +0 -16
  377. package/dist/refkey-CQVHeuAq.mjs.map +0 -1
  378. package/dist/refkey-D6OjgKgS.d.mts +0 -14
  379. package/dist/refkey-D6OjgKgS.d.mts.map +0 -1
  380. package/dist/reflection-BktS88RM.cjs +0 -108
  381. package/dist/reflection-CfOmSgDn.d.mts +0 -53
  382. package/dist/reflection-CfOmSgDn.d.mts.map +0 -1
  383. package/dist/reflection-Q87E_-w_.d.cts +0 -53
  384. package/dist/reflection-Q87E_-w_.d.cts.map +0 -1
  385. package/dist/reflection-TXYxCAwV.mjs +0 -61
  386. package/dist/reflection-TXYxCAwV.mjs.map +0 -1
  387. package/dist/single-line-comment-BKFqKn-D.d.mts +0 -23
  388. package/dist/single-line-comment-BKFqKn-D.d.mts.map +0 -1
  389. package/dist/single-line-comment-Ct_putR7.d.mts +0 -23
  390. package/dist/single-line-comment-Ct_putR7.d.mts.map +0 -1
  391. package/dist/single-line-comment-D2y_A8e1.d.cts +0 -23
  392. package/dist/single-line-comment-D2y_A8e1.d.cts.map +0 -1
  393. package/dist/single-line-comment-DW0LUIQ2.mjs +0 -22
  394. package/dist/single-line-comment-DW0LUIQ2.mjs.map +0 -1
  395. package/dist/single-line-comment-DWQy5rrk.d.cts +0 -23
  396. package/dist/single-line-comment-DWQy5rrk.d.cts.map +0 -1
  397. package/dist/single-line-comment-tAWBgL9v.cjs +0 -27
  398. package/dist/source-file-B51pGSXX.d.mts +0 -33
  399. package/dist/source-file-B51pGSXX.d.mts.map +0 -1
  400. package/dist/source-file-BhqYj8m-.d.mts +0 -33
  401. package/dist/source-file-BhqYj8m-.d.mts.map +0 -1
  402. package/dist/source-file-Bl7eV0Li.mjs +0 -62
  403. package/dist/source-file-Bl7eV0Li.mjs.map +0 -1
  404. package/dist/source-file-DiisOeS2.d.cts +0 -33
  405. package/dist/source-file-DiisOeS2.d.cts.map +0 -1
  406. package/dist/source-file-DnqaQY90.cjs +0 -68
  407. package/dist/source-file-gMJwiJAw.d.cts +0 -33
  408. package/dist/source-file-gMJwiJAw.d.cts.map +0 -1
  409. package/dist/tsdoc-BufL8muf.cjs +0 -585
  410. package/dist/tsdoc-DB1Qzwsn.mjs +0 -466
  411. package/dist/tsdoc-DB1Qzwsn.mjs.map +0 -1
  412. package/dist/tsdoc-DiBR7m1J.d.cts +0 -164
  413. package/dist/tsdoc-DiBR7m1J.d.cts.map +0 -1
  414. package/dist/tsdoc-KHfXy9HE.d.mts +0 -164
  415. package/dist/tsdoc-KHfXy9HE.d.mts.map +0 -1
  416. package/dist/tsdoc-reflection-B5-J4ia-.cjs +0 -193
  417. package/dist/tsdoc-reflection-BGPyymTb.mjs +0 -176
  418. package/dist/tsdoc-reflection-BGPyymTb.mjs.map +0 -1
  419. package/dist/tsdoc-reflection-CYz5udTh.d.mts +0 -19
  420. package/dist/tsdoc-reflection-CYz5udTh.d.mts.map +0 -1
  421. package/dist/tsdoc-reflection-DTYkFxKy.d.cts +0 -19
  422. package/dist/tsdoc-reflection-DTYkFxKy.d.cts.map +0 -1
  423. package/dist/tsdoc-reflection-cRd43W18.d.cts +0 -19
  424. package/dist/tsdoc-reflection-cRd43W18.d.cts.map +0 -1
  425. package/dist/typescript-BXhP0qIJ.mjs +0 -46
  426. package/dist/typescript-BXhP0qIJ.mjs.map +0 -1
  427. package/dist/typescript-BbjCTT04.cjs +0 -51
  428. package/dist/typescript-CXP7Oa6_.d.cts +0 -26
  429. package/dist/typescript-CXP7Oa6_.d.cts.map +0 -1
  430. package/dist/typescript-DvynKONm.d.mts +0 -26
  431. package/dist/typescript-DvynKONm.d.mts.map +0 -1
  432. package/dist/typescript-file-4oY1sIRB.cjs +0 -231
  433. package/dist/typescript-file-C9TPcvPm.d.mts +0 -50
  434. package/dist/typescript-file-C9TPcvPm.d.mts.map +0 -1
  435. package/dist/typescript-file-CJxOp_Xl.d.cts +0 -50
  436. package/dist/typescript-file-CJxOp_Xl.d.cts.map +0 -1
  437. package/dist/typescript-file-CY0SmW6n.d.mts +0 -50
  438. package/dist/typescript-file-CY0SmW6n.d.mts.map +0 -1
  439. package/dist/typescript-file-DWYfy1-C.d.cts +0 -50
  440. package/dist/typescript-file-DWYfy1-C.d.cts.map +0 -1
  441. package/dist/typescript-file-iXGdOTZv.mjs +0 -214
  442. package/dist/typescript-file-iXGdOTZv.mjs.map +0 -1
  443. package/dist/typescript-interface-4Kxgaglq.d.mts +0 -26
  444. package/dist/typescript-interface-4Kxgaglq.d.mts.map +0 -1
  445. package/dist/typescript-interface-B0AoZx3f.cjs +0 -83
  446. package/dist/typescript-interface-B1mhCCoV.d.cts +0 -26
  447. package/dist/typescript-interface-B1mhCCoV.d.cts.map +0 -1
  448. package/dist/typescript-interface-C0mgTtdj.d.cts +0 -26
  449. package/dist/typescript-interface-C0mgTtdj.d.cts.map +0 -1
  450. package/dist/typescript-interface-DoEGxV_8.mjs +0 -72
  451. package/dist/typescript-interface-DoEGxV_8.mjs.map +0 -1
  452. package/dist/typescript-object-C4d4fThY.cjs +0 -135
  453. package/dist/typescript-object-C5oh925V.mjs +0 -124
  454. package/dist/typescript-object-C5oh925V.mjs.map +0 -1
  455. package/dist/typescript-object-DAepqTrw.d.cts +0 -30
  456. package/dist/typescript-object-DAepqTrw.d.cts.map +0 -1
  457. package/dist/typescript-object-DUivJKpz.d.cts +0 -30
  458. package/dist/typescript-object-DUivJKpz.d.cts.map +0 -1
  459. package/dist/typescript-object-TlHt1hQc.d.mts +0 -30
  460. package/dist/typescript-object-TlHt1hQc.d.mts.map +0 -1
@@ -1,3 +1,12 @@
1
- const require_record_expression = require('../../record-expression-6ElbFyR0.cjs');
1
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
+ let __alloy_js_core = require("@alloy-js/core");
2
3
 
3
- exports.RecordExpression = require_record_expression.RecordExpression;
4
+ //#region src/typescript/components/record-expression.tsx
5
+ function RecordExpression({ elementType }) {
6
+ return __alloy_js_core.code`
7
+ Record<string, ${elementType}>
8
+ `;
9
+ }
10
+
11
+ //#endregion
12
+ exports.RecordExpression = RecordExpression;
@@ -1,2 +1,13 @@
1
- import { n as RecordExpressionProps, r as __ΩRecordExpressionProps, t as RecordExpression } from "../../record-expression-Dwg_PZpg.cjs";
2
- export { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps };
1
+ import { Children } from "@alloy-js/core";
2
+
3
+ //#region src/typescript/components/record-expression.d.ts
4
+ interface RecordExpressionProps {
5
+ elementType: Children;
6
+ }
7
+ declare function RecordExpression({
8
+ elementType
9
+ }: RecordExpressionProps): Children;
10
+ declare type __ΩRecordExpressionProps = any[];
11
+ //#endregion
12
+ export { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps };
13
+ //# sourceMappingURL=record-expression.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record-expression.d.cts","names":[],"sources":["../../../src/typescript/components/record-expression.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,qBAAA;eACF;AADf;AAIgB,iBAAA,gBAAA,CAAgB;EAAA;AAAA,CAAA,EAAkB,qBAAlB,CAAA,EAAuC,QAAvC;AAAG,wCAAA,GAAA,EAAA"}
@@ -1,2 +1,13 @@
1
- import { n as RecordExpressionProps, r as __ΩRecordExpressionProps, t as RecordExpression } from "../../record-expression-ChoLAsVS.mjs";
2
- export { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps };
1
+ import { Children } from "@alloy-js/core";
2
+
3
+ //#region src/typescript/components/record-expression.d.ts
4
+ interface RecordExpressionProps {
5
+ elementType: Children;
6
+ }
7
+ declare function RecordExpression({
8
+ elementType
9
+ }: RecordExpressionProps): Children;
10
+ declare type __ΩRecordExpressionProps = any[];
11
+ //#endregion
12
+ export { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps };
13
+ //# sourceMappingURL=record-expression.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record-expression.d.mts","names":[],"sources":["../../../src/typescript/components/record-expression.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,qBAAA;eACF;AADf;AAIgB,iBAAA,gBAAA,CAAgB;EAAA;AAAA,CAAA,EAAkB,qBAAlB,CAAA,EAAuC,QAAvC;AAAG,wCAAA,GAAA,EAAA"}
@@ -1,3 +1,12 @@
1
- import { t as RecordExpression } from "../../record-expression-D5W72rZN.mjs";
1
+ import { code } from "@alloy-js/core";
2
2
 
3
- export { RecordExpression };
3
+ //#region src/typescript/components/record-expression.tsx
4
+ function RecordExpression({ elementType }) {
5
+ return code`
6
+ Record<string, ${elementType}>
7
+ `;
8
+ }
9
+
10
+ //#endregion
11
+ export { RecordExpression };
12
+ //# sourceMappingURL=record-expression.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record-expression.mjs","names":["code","RecordExpression","elementType"],"sources":["../../../src/typescript/components/record-expression.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 { Children, code } from \"@alloy-js/core\";\n\nexport interface RecordExpressionProps {\n elementType: Children;\n}\n\nexport function RecordExpression({ elementType }: RecordExpressionProps) {\n return code`\n Record<string, ${elementType}>\n `;\n}\n"],"mappings":""}
@@ -1,8 +1,178 @@
1
- require('../../context-DNdlL_gp.cjs');
2
- require('../../reflection-BktS88RM.cjs');
3
- require('../../tsdoc-BufL8muf.cjs');
4
- const require_tsdoc_reflection = require('../../tsdoc-reflection-B5-J4ia-.cjs');
1
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
+ const require_core_contexts_reflection = require('../../core/contexts/reflection.cjs');
3
+ const require_typescript_components_tsdoc = require('./tsdoc.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_string_format_title_case = require("@stryke/string-format/title-case");
7
+ let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
8
+ let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
9
+ let __stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
5
10
 
6
- exports.TSDocReflectionClass = require_tsdoc_reflection.TSDocReflectionClass;
7
- exports.TSDocReflectionMethod = require_tsdoc_reflection.TSDocReflectionMethod;
8
- exports.TSDocReflectionProperty = require_tsdoc_reflection.TSDocReflectionProperty;
11
+ //#region src/typescript/components/tsdoc-reflection.tsx
12
+ /**
13
+ * Generates a TypeScript interface property for the given reflection class.
14
+ */
15
+ function TSDocReflectionClass(props) {
16
+ const [{ children, heading }, rest] = (0, __alloy_js_core.splitProps)(props, ["heading", "children"]);
17
+ const reflectionClass = require_core_contexts_reflection.useReflectionClass();
18
+ const title = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.getTitle() || (0, __stryke_string_format_title_case.titleCase)(reflectionClass.reflection.getName()));
19
+ const computedHeading = (0, __alloy_js_core.computed)(() => heading || reflectionClass.reflection.getDescription() || title.value);
20
+ const alias = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.getAlias());
21
+ const domain = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.getDomain());
22
+ const permission = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.getPermission());
23
+ const readonly = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.isReadonly());
24
+ const internal = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.isInternal());
25
+ const ignore = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.isIgnored());
26
+ const hidden = (0, __alloy_js_core.computed)(() => reflectionClass.reflection.isHidden());
27
+ if (!computedHeading.value || (0, __stryke_type_checks_is_set_string.isSetString)(computedHeading.value) && computedHeading.value.trim() === "") return null;
28
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
29
+ get heading() {
30
+ return (0, __alloy_js_core_jsx_runtime.memo)(() => !!(0, __stryke_type_checks_is_set_string.isSetString)(computedHeading.value))() ? computedHeading.value.trim() : computedHeading.value;
31
+ },
32
+ get children() {
33
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
34
+ get when() {
35
+ return (0, __stryke_type_checks_is_set_string.isSetString)(title.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(alias.value) && alias.value.length > 0 || !(0, __stryke_type_checks_is_undefined.isUndefined)(permission.value) && permission.value.length > 0 || (0, __stryke_type_checks_is_set_string.isSetString)(domain.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(readonly.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(internal.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(ignore.value) || !(0, __stryke_type_checks_is_undefined.isUndefined)(hidden.value);
36
+ },
37
+ get children() {
38
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocAttributesTags, {
39
+ get title() {
40
+ return title.value;
41
+ },
42
+ get alias() {
43
+ return alias.value;
44
+ },
45
+ get domain() {
46
+ return domain.value;
47
+ },
48
+ get permission() {
49
+ return permission.value;
50
+ },
51
+ get readonly() {
52
+ return readonly.value;
53
+ },
54
+ get internal() {
55
+ return internal.value;
56
+ },
57
+ get ignore() {
58
+ return ignore.value;
59
+ },
60
+ get hidden() {
61
+ return hidden.value;
62
+ }
63
+ });
64
+ }
65
+ }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
66
+ get when() {
67
+ return (0, __alloy_js_core_jsx_runtime.memo)(() => !!Boolean(children))() && (0, __alloy_js_core.childrenArray)(() => children).length > 0;
68
+ },
69
+ get children() {
70
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.List, { get children() {
71
+ return (0, __alloy_js_core.childrenArray)(() => children);
72
+ } });
73
+ }
74
+ })];
75
+ }
76
+ }));
77
+ }
78
+ /**
79
+ * Generates a TypeScript interface property for the given reflection class.
80
+ */
81
+ function TSDocReflectionProperty(props) {
82
+ const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
83
+ const context = require_core_contexts_reflection.useReflectionProperty();
84
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get heading() {
85
+ return context.getDescription();
86
+ } }, rest, { get children() {
87
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocAttributesTags, {
88
+ type: context,
89
+ get title() {
90
+ return context.getTitle();
91
+ },
92
+ get alias() {
93
+ return context.getAlias();
94
+ },
95
+ get domain() {
96
+ return context.getDomain();
97
+ },
98
+ get permission() {
99
+ return context.getPermission();
100
+ },
101
+ get readonly() {
102
+ return context.isReadonly();
103
+ },
104
+ get internal() {
105
+ return context.isInternal();
106
+ },
107
+ get ignore() {
108
+ return context.isIgnored();
109
+ },
110
+ get hidden() {
111
+ return context.isHidden();
112
+ },
113
+ get defaultValue() {
114
+ return context.getDefaultValue();
115
+ }
116
+ }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
117
+ get when() {
118
+ return (0, __alloy_js_core_jsx_runtime.memo)(() => !!Boolean(children))() && (0, __alloy_js_core.childrenArray)(() => children).length > 0;
119
+ },
120
+ get children() {
121
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.List, { get children() {
122
+ return (0, __alloy_js_core.childrenArray)(() => children);
123
+ } });
124
+ }
125
+ })];
126
+ } }));
127
+ }
128
+ /**
129
+ * Generates a TypeScript interface property for the given reflection class.
130
+ */
131
+ function TSDocReflectionMethod(props) {
132
+ const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
133
+ const context = require_core_contexts_reflection.useReflectionMethod();
134
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get heading() {
135
+ return context.getDescription() || ((0, __stryke_type_checks_is_string.isString)(context.getName()) ? __alloy_js_core.code`${String(context.getName())} method definition` : void 0);
136
+ } }, rest, { get children() {
137
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocAttributesTags, {
138
+ get title() {
139
+ return context.getTitle();
140
+ },
141
+ get alias() {
142
+ return context.getAlias();
143
+ },
144
+ get domain() {
145
+ return context.getDomain();
146
+ },
147
+ get permission() {
148
+ return context.getPermission();
149
+ },
150
+ get readonly() {
151
+ return context.isReadonly();
152
+ },
153
+ get internal() {
154
+ return context.isInternal();
155
+ },
156
+ get ignore() {
157
+ return context.isIgnored();
158
+ },
159
+ get hidden() {
160
+ return context.isHidden();
161
+ }
162
+ }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
163
+ get when() {
164
+ return (0, __alloy_js_core_jsx_runtime.memo)(() => !!Boolean(children))() && (0, __alloy_js_core.childrenArray)(() => children).length > 0;
165
+ },
166
+ get children() {
167
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.List, { get children() {
168
+ return (0, __alloy_js_core.childrenArray)(() => children);
169
+ } });
170
+ }
171
+ })];
172
+ } }));
173
+ }
174
+
175
+ //#endregion
176
+ exports.TSDocReflectionClass = TSDocReflectionClass;
177
+ exports.TSDocReflectionMethod = TSDocReflectionMethod;
178
+ exports.TSDocReflectionProperty = TSDocReflectionProperty;
@@ -1,4 +1,19 @@
1
- import "../../components-CvqTz7Q9.cjs";
2
- import "../../tsdoc-DiBR7m1J.cjs";
3
- import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../../tsdoc-reflection-DTYkFxKy.cjs";
4
- export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
1
+ import { TSDocProps } from "./tsdoc.cjs";
2
+ import * as _alloy_js_core3 from "@alloy-js/core";
3
+
4
+ //#region src/typescript/components/tsdoc-reflection.d.ts
5
+ /**
6
+ * Generates a TypeScript interface property for the given reflection class.
7
+ */
8
+ declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core3.Children;
9
+ /**
10
+ * Generates a TypeScript interface property for the given reflection class.
11
+ */
12
+ declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core3.Children;
13
+ /**
14
+ * Generates a TypeScript interface property for the given reflection class.
15
+ */
16
+ declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core3.Children;
17
+ //#endregion
18
+ export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
19
+ //# sourceMappingURL=tsdoc-reflection.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsdoc-reflection.d.cts","names":[],"sources":["../../../src/typescript/components/tsdoc-reflection.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAwCgB,iBAAA,oBAAoB,CAAA,UACxB,MADwB,CAAA,MAAA,EAAA,GAAA,CAAA,GACF,MADE,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAE3B,UAF2B,CAAA,EAEjB,eAAA,CAAA,QAFiB;;;;AAEjB,iBAyEH,uBAAA,CAzEG,KAAA,EAyE4B,UAzE5B,CAAA,EAyEsC,eAAA,CAAA,QAzEtC;;AAyEnB;AA8BA;iBAAgB,qBAAA,QAA6B,aAAU,eAAA,CAAA"}
@@ -1,4 +1,19 @@
1
- import "../../components-_4e2YMfT.mjs";
2
- import "../../tsdoc-KHfXy9HE.mjs";
3
- import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../../tsdoc-reflection-CYz5udTh.mjs";
4
- export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
1
+ import { TSDocProps } from "./tsdoc.mjs";
2
+ import * as _alloy_js_core12 from "@alloy-js/core";
3
+
4
+ //#region src/typescript/components/tsdoc-reflection.d.ts
5
+ /**
6
+ * Generates a TypeScript interface property for the given reflection class.
7
+ */
8
+ declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core12.Children;
9
+ /**
10
+ * Generates a TypeScript interface property for the given reflection class.
11
+ */
12
+ declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core12.Children;
13
+ /**
14
+ * Generates a TypeScript interface property for the given reflection class.
15
+ */
16
+ declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core12.Children;
17
+ //#endregion
18
+ export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
19
+ //# sourceMappingURL=tsdoc-reflection.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsdoc-reflection.d.mts","names":[],"sources":["../../../src/typescript/components/tsdoc-reflection.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAwCgB,iBAAA,oBAAoB,CAAA,UACxB,MADwB,CAAA,MAAA,EAAA,GAAA,CAAA,GACF,MADE,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAE3B,UAF2B,CAAA,EAEjB,gBAAA,CAAA,QAFiB;;;;AAEjB,iBAyEH,uBAAA,CAzEG,KAAA,EAyE4B,UAzE5B,CAAA,EAyEsC,gBAAA,CAAA,QAzEtC;;AAyEnB;AA8BA;iBAAgB,qBAAA,QAA6B,aAAU,gBAAA,CAAA"}
@@ -1,6 +1,176 @@
1
- import "../../context-CdPajCh6.mjs";
2
- import "../../reflection-TXYxCAwV.mjs";
3
- import "../../tsdoc-DB1Qzwsn.mjs";
4
- import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../../tsdoc-reflection-BGPyymTb.mjs";
1
+ import { useReflectionClass, useReflectionMethod, useReflectionProperty } from "../../core/contexts/reflection.mjs";
2
+ import { TSDoc, TSDocAttributesTags } from "./tsdoc.mjs";
3
+ import { createComponent, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
4
+ import { List, Show, childrenArray, code, computed, splitProps } from "@alloy-js/core";
5
+ import { titleCase } from "@stryke/string-format/title-case";
6
+ import { isUndefined } from "@stryke/type-checks/is-undefined";
7
+ import { isString } from "@stryke/type-checks/is-string";
8
+ import { isSetString } from "@stryke/type-checks/is-set-string";
5
9
 
6
- export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
10
+ //#region src/typescript/components/tsdoc-reflection.tsx
11
+ /**
12
+ * Generates a TypeScript interface property for the given reflection class.
13
+ */
14
+ function TSDocReflectionClass(props) {
15
+ const [{ children, heading }, rest] = splitProps(props, ["heading", "children"]);
16
+ const reflectionClass = useReflectionClass();
17
+ const title = computed(() => reflectionClass.reflection.getTitle() || titleCase(reflectionClass.reflection.getName()));
18
+ const computedHeading = computed(() => heading || reflectionClass.reflection.getDescription() || title.value);
19
+ const alias = computed(() => reflectionClass.reflection.getAlias());
20
+ const domain = computed(() => reflectionClass.reflection.getDomain());
21
+ const permission = computed(() => reflectionClass.reflection.getPermission());
22
+ const readonly = computed(() => reflectionClass.reflection.isReadonly());
23
+ const internal = computed(() => reflectionClass.reflection.isInternal());
24
+ const ignore = computed(() => reflectionClass.reflection.isIgnored());
25
+ const hidden = computed(() => reflectionClass.reflection.isHidden());
26
+ if (!computedHeading.value || isSetString(computedHeading.value) && computedHeading.value.trim() === "") return null;
27
+ return createComponent(TSDoc, mergeProps(rest, {
28
+ get heading() {
29
+ return memo(() => !!isSetString(computedHeading.value))() ? computedHeading.value.trim() : computedHeading.value;
30
+ },
31
+ get children() {
32
+ return [createComponent(Show, {
33
+ get when() {
34
+ return isSetString(title.value) || !isUndefined(alias.value) && alias.value.length > 0 || !isUndefined(permission.value) && permission.value.length > 0 || isSetString(domain.value) || !isUndefined(readonly.value) || !isUndefined(internal.value) || !isUndefined(ignore.value) || !isUndefined(hidden.value);
35
+ },
36
+ get children() {
37
+ return createComponent(TSDocAttributesTags, {
38
+ get title() {
39
+ return title.value;
40
+ },
41
+ get alias() {
42
+ return alias.value;
43
+ },
44
+ get domain() {
45
+ return domain.value;
46
+ },
47
+ get permission() {
48
+ return permission.value;
49
+ },
50
+ get readonly() {
51
+ return readonly.value;
52
+ },
53
+ get internal() {
54
+ return internal.value;
55
+ },
56
+ get ignore() {
57
+ return ignore.value;
58
+ },
59
+ get hidden() {
60
+ return hidden.value;
61
+ }
62
+ });
63
+ }
64
+ }), createComponent(Show, {
65
+ get when() {
66
+ return memo(() => !!Boolean(children))() && childrenArray(() => children).length > 0;
67
+ },
68
+ get children() {
69
+ return createComponent(List, { get children() {
70
+ return childrenArray(() => children);
71
+ } });
72
+ }
73
+ })];
74
+ }
75
+ }));
76
+ }
77
+ /**
78
+ * Generates a TypeScript interface property for the given reflection class.
79
+ */
80
+ function TSDocReflectionProperty(props) {
81
+ const [{ children }, rest] = splitProps(props, ["children"]);
82
+ const context = useReflectionProperty();
83
+ return createComponent(TSDoc, mergeProps({ get heading() {
84
+ return context.getDescription();
85
+ } }, rest, { get children() {
86
+ return [createComponent(TSDocAttributesTags, {
87
+ type: context,
88
+ get title() {
89
+ return context.getTitle();
90
+ },
91
+ get alias() {
92
+ return context.getAlias();
93
+ },
94
+ get domain() {
95
+ return context.getDomain();
96
+ },
97
+ get permission() {
98
+ return context.getPermission();
99
+ },
100
+ get readonly() {
101
+ return context.isReadonly();
102
+ },
103
+ get internal() {
104
+ return context.isInternal();
105
+ },
106
+ get ignore() {
107
+ return context.isIgnored();
108
+ },
109
+ get hidden() {
110
+ return context.isHidden();
111
+ },
112
+ get defaultValue() {
113
+ return context.getDefaultValue();
114
+ }
115
+ }), createComponent(Show, {
116
+ get when() {
117
+ return memo(() => !!Boolean(children))() && childrenArray(() => children).length > 0;
118
+ },
119
+ get children() {
120
+ return createComponent(List, { get children() {
121
+ return childrenArray(() => children);
122
+ } });
123
+ }
124
+ })];
125
+ } }));
126
+ }
127
+ /**
128
+ * Generates a TypeScript interface property for the given reflection class.
129
+ */
130
+ function TSDocReflectionMethod(props) {
131
+ const [{ children }, rest] = splitProps(props, ["children"]);
132
+ const context = useReflectionMethod();
133
+ return createComponent(TSDoc, mergeProps({ get heading() {
134
+ return context.getDescription() || (isString(context.getName()) ? code`${String(context.getName())} method definition` : void 0);
135
+ } }, rest, { get children() {
136
+ return [createComponent(TSDocAttributesTags, {
137
+ get title() {
138
+ return context.getTitle();
139
+ },
140
+ get alias() {
141
+ return context.getAlias();
142
+ },
143
+ get domain() {
144
+ return context.getDomain();
145
+ },
146
+ get permission() {
147
+ return context.getPermission();
148
+ },
149
+ get readonly() {
150
+ return context.isReadonly();
151
+ },
152
+ get internal() {
153
+ return context.isInternal();
154
+ },
155
+ get ignore() {
156
+ return context.isIgnored();
157
+ },
158
+ get hidden() {
159
+ return context.isHidden();
160
+ }
161
+ }), createComponent(Show, {
162
+ get when() {
163
+ return memo(() => !!Boolean(children))() && childrenArray(() => children).length > 0;
164
+ },
165
+ get children() {
166
+ return createComponent(List, { get children() {
167
+ return childrenArray(() => children);
168
+ } });
169
+ }
170
+ })];
171
+ } }));
172
+ }
173
+
174
+ //#endregion
175
+ export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
176
+ //# sourceMappingURL=tsdoc-reflection.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsdoc-reflection.mjs","names":["childrenArray","code","computed","List","Show","splitProps","titleCase","isSetString","isString","isUndefined","useReflectionClass","useReflectionMethod","useReflectionProperty","TSDoc","TSDocAttributesTags","TSDocReflectionClass","props","children","heading","rest","reflectionClass","title","reflection","getTitle","getName","computedHeading","getDescription","value","alias","getAlias","domain","getDomain","permission","getPermission","readonly","isReadonly","internal","isInternal","ignore","isIgnored","hidden","isHidden","trim","_$createComponent","_$mergeProps","_$memo","when","length","Boolean","TSDocReflectionProperty","context","type","defaultValue","getDefaultValue","TSDocReflectionMethod","String","undefined"],"sources":["../../../src/typescript/components/tsdoc-reflection.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n childrenArray,\n code,\n computed,\n List,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport {\n useReflectionClass,\n useReflectionMethod,\n useReflectionProperty\n} from \"../../core/contexts/reflection\";\nimport { TSDoc, TSDocAttributesTags, TSDocProps } from \"./tsdoc\";\n\n/**\n * Generates a TypeScript interface property for the given reflection class.\n */\nexport function TSDocReflectionClass<\n T extends Record<string, any> = Record<string, any>\n>(props: TSDocProps) {\n const [{ children, heading }, rest] = splitProps(props, [\n \"heading\",\n \"children\"\n ]);\n\n const reflectionClass = useReflectionClass<T>();\n\n const title = computed(\n () =>\n reflectionClass.reflection.getTitle() ||\n titleCase(reflectionClass.reflection.getName())\n );\n const computedHeading = computed(\n () => heading || reflectionClass.reflection.getDescription() || title.value\n );\n\n const alias = computed(() => reflectionClass.reflection.getAlias());\n const domain = computed(() => reflectionClass.reflection.getDomain());\n const permission = computed(() => reflectionClass.reflection.getPermission());\n const readonly = computed(() => reflectionClass.reflection.isReadonly());\n const internal = computed(() => reflectionClass.reflection.isInternal());\n const ignore = computed(() => reflectionClass.reflection.isIgnored());\n const hidden = computed(() => reflectionClass.reflection.isHidden());\n\n if (\n !computedHeading.value ||\n (isSetString(computedHeading.value) && computedHeading.value.trim() === \"\")\n ) {\n return null;\n }\n\n return (\n <TSDoc\n {...rest}\n heading={\n isSetString(computedHeading.value)\n ? computedHeading.value.trim()\n : computedHeading.value\n }>\n <Show\n when={\n isSetString(title.value) ||\n (!isUndefined(alias.value) && alias.value.length > 0) ||\n (!isUndefined(permission.value) && permission.value.length > 0) ||\n isSetString(domain.value) ||\n !isUndefined(readonly.value) ||\n !isUndefined(internal.value) ||\n !isUndefined(ignore.value) ||\n !isUndefined(hidden.value)\n }>\n <TSDocAttributesTags\n title={title.value}\n alias={alias.value}\n domain={domain.value}\n permission={permission.value}\n readonly={readonly.value}\n internal={internal.value}\n ignore={ignore.value}\n hidden={hidden.value}\n />\n </Show>\n <Show\n when={Boolean(children) && childrenArray(() => children).length > 0}>\n <List>{childrenArray(() => children)}</List>\n </Show>\n </TSDoc>\n );\n}\n\n/**\n * Generates a TypeScript interface property for the given reflection class.\n */\nexport function TSDocReflectionProperty(props: TSDocProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n const context = useReflectionProperty();\n\n return (\n <TSDoc heading={context.getDescription()} {...rest}>\n <TSDocAttributesTags\n type={context}\n title={context.getTitle()}\n alias={context.getAlias()}\n domain={context.getDomain()}\n permission={context.getPermission()}\n readonly={context.isReadonly()}\n internal={context.isInternal()}\n ignore={context.isIgnored()}\n hidden={context.isHidden()}\n defaultValue={context.getDefaultValue()}\n />\n <Show\n when={Boolean(children) && childrenArray(() => children).length > 0}>\n <List>{childrenArray(() => children)}</List>\n </Show>\n </TSDoc>\n );\n}\n\n/**\n * Generates a TypeScript interface property for the given reflection class.\n */\nexport function TSDocReflectionMethod(props: TSDocProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n const context = useReflectionMethod();\n\n return (\n <TSDoc\n heading={\n context.getDescription() ||\n (isString(context.getName())\n ? code`${String(context.getName())} method definition`\n : undefined)\n }\n {...rest}>\n <TSDocAttributesTags\n title={context.getTitle()}\n alias={context.getAlias()}\n domain={context.getDomain()}\n permission={context.getPermission()}\n readonly={context.isReadonly()}\n internal={context.isInternal()}\n ignore={context.isIgnored()}\n hidden={context.isHidden()}\n />\n <Show\n when={Boolean(children) && childrenArray(() => children).length > 0}>\n <List>{childrenArray(() => children)}</List>\n </Show>\n </TSDoc>\n );\n}\n"],"mappings":";;;;;;;;;;;;;qCA2HQmD;oBAAAA,WAAAA,QAAAA,WAAAA,OAAAA;;;wCAEyB,WAAA,gBAAA,WAAA,gBAAA,IAAA,MAAA;eAAA,eAAA,gBAAA,WAAA,UAAA,CAAA;gBAAA,eAAA,gBAAA,WAAA,WAAA,CAAA;oBAAA,eAAA,gBAAA,WAAA,eAAA,CAAA;kBAAA,eAAA,gBAAA,WAAA,YAAA,CAAA;kBAAA,eAAA,gBAAA,WAAA,YAAA,CAAA;gBAAA,eAAA,gBAAA,WAAA,WAAA,CAAA;gBAAA,eAAA,gBAAA,WAAA,UAAA,CAAA;sBAAA,qBAAA,gBAAA,MAAA,IAAA,gBAAA,MAAA,MAAA,KAAA;;;;;;;;2DACE,MAAA,IAAA,MAAA,MAAA,SAAA,KAAA,CAAA,YAAA,WAAA,MAAA,IAAA,WAAA,MAAA,SAAA,KAAA,YAAA,OAAA,MAAA,IAAA,CAAA,YAAA,SAAA,MAAA,IAAA,CAAA,YAAA,SAAA,MAAA,IAAA,CAAA,YAAA,OAAA,MAAA,iBAAA,OAAA,MAAA;;IAAA,IAAA,WAAA;AAAA,YAAA,qCAAA;MAAA,IAAA,QAAA;AAAA,cAAA,MAAA;;MAAA,IAAA,QAAA;AAAA,cAAA,MAAA;;MAAA,IAAA,SAAA;AAAA,cAAA,OAAA;;MAAA,IAAA,aAAA;AAAA,cAAA,WAAA;;MAAA,IAAA,WAAA;AAAA,cAAA,SAAA;;MAAA;;;;;;;;;;;uBACjB,MAAA;IAAA,IAAA,OAAA;AAAA,YAAA,WAAA,CAAA,CAAA,QAAA,SAAA,CAAA,EAAA,IAAA,oBAAA,SAAA,CAAA,SAAA;;IAAA,IAAA,WAAA;AAAA,YAAA,gBAAA,MAAA,EAAA,IAAA,WAAA;AAAA,aAAA,oBAAA,SAAA;QAAA,CAAA;;IAAA,CAAA,CAAA;;EAAA,CAAA,CAAA;;;;;SAAED,+BAAAA;OAAAA,CAAAA,EAAAA;wCAAAA;+BAAAA,WAAAA,EAAAA,IAAAA,UAAAA;AAAAA,SAAAA,QAAAA,gBAAAA;IAAAA,EAAAA,MAAAA,EAAAA,IAAAA,WAAAA;AAAAA,SAAAA,CAAAA,qCAAAA;GAAAA,MAAAA;;6BAAAA;;GAAAA,IAAAA,QAAAA;AAAAA,WAAAA,QAAAA,UAAAA;;GAAAA,IAAAA;mBAAAA,WAAAA;;GAAAA,iBAAAA;AAAAA,WAAAA,QAAQjB,eAAe;;GAAA,IAAA,WAAA;AAAA,WAAA,QAAA,YAAA;;GAAA,IAAA,WAAA;AAAA,WAAA,QAAA,YAAA;;GAAA,aAAA;AAAA,WAAA,QAAA,WAAA;;GAAA,IAAA,SAAA;AAAA,WAAA,QAAA,UAAA;;GAAA,IAAA,eAAA;AAAA,WAAA,QAAA,iBAAA;;GAAA,CAAA,EAAA,sBAAA;GAAA,IAAA;gCAAA,SAAA,CAAA,EAAA,IAAA,oBAAA,SAAA,CAAA,SAAA;;GAAA,IAAA,WAAA;AAAA,WAAA,sBAAA,EAAA,IAAA,WAAA;AAAA,YAAA,oBAAA,SAAA;OAAA,CAAA;;GAAA,CAAA,CAAA;IAAA,CAAA,CAAA;;;;;;yCAAA,OAAA,CAAA,WAAA,CAAA;OAAA,UAAA,qBAAA;0DAAA;AAAA,iBAAA,gBAAA,KAAA,SAAA,QAAA,SAAA,CAAA,GAAA,IAAA,GAAA,OAAA,QAAA,SAAA,CAAA,CAAA,sBAAA;IAAA;;;;;;;;;;;;;;;;;;;;;mBAAA,WAAA;;GAAA,IAAA,SAAA;AAAA,WAAA,QAAA,UAAA;;GAAA,CAAA,EAAA;OAAA,OAAA;AAAA,gCAAA,SAAA,CAAA,EAAA,IAAA,oBAAA,SAAA,CAAA,SAAA;;GAAA,IAAA,WAAA;AAAA,WAAA,gBAAA,MAAA,EAAA,IAAA,WAAA;AAAA,YAAA,oBAAA,SAAA;OAAA,CAAA;;GAAA,CAAA,CAAA;IAAA,CAAA,CAAA"}