@powerlines/plugin-alloy 0.25.47 → 0.25.49

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 (334) hide show
  1. package/package.json +6 -6
  2. package/dist/_virtual/_rolldown/runtime.cjs +0 -29
  3. package/dist/_virtual/_rolldown/runtime.mjs +0 -3
  4. package/dist/core/components/index.cjs +0 -10
  5. package/dist/core/components/index.d.cts +0 -5
  6. package/dist/core/components/index.d.mts +0 -5
  7. package/dist/core/components/index.mjs +0 -6
  8. package/dist/core/components/output.cjs +0 -41
  9. package/dist/core/components/output.d.cts +0 -24
  10. package/dist/core/components/output.d.cts.map +0 -1
  11. package/dist/core/components/output.d.mts +0 -24
  12. package/dist/core/components/output.d.mts.map +0 -1
  13. package/dist/core/components/output.mjs +0 -40
  14. package/dist/core/components/output.mjs.map +0 -1
  15. package/dist/core/components/single-line-comment.cjs +0 -23
  16. package/dist/core/components/single-line-comment.d.cts +0 -23
  17. package/dist/core/components/single-line-comment.d.cts.map +0 -1
  18. package/dist/core/components/single-line-comment.d.mts +0 -23
  19. package/dist/core/components/single-line-comment.d.mts.map +0 -1
  20. package/dist/core/components/single-line-comment.mjs +0 -22
  21. package/dist/core/components/single-line-comment.mjs.map +0 -1
  22. package/dist/core/components/source-file.cjs +0 -64
  23. package/dist/core/components/source-file.d.cts +0 -33
  24. package/dist/core/components/source-file.d.cts.map +0 -1
  25. package/dist/core/components/source-file.d.mts +0 -33
  26. package/dist/core/components/source-file.d.mts.map +0 -1
  27. package/dist/core/components/source-file.mjs +0 -62
  28. package/dist/core/components/source-file.mjs.map +0 -1
  29. package/dist/core/components/spacing.cjs +0 -20
  30. package/dist/core/components/spacing.d.cts +0 -24
  31. package/dist/core/components/spacing.d.cts.map +0 -1
  32. package/dist/core/components/spacing.d.mts +0 -24
  33. package/dist/core/components/spacing.d.mts.map +0 -1
  34. package/dist/core/components/spacing.mjs +0 -19
  35. package/dist/core/components/spacing.mjs.map +0 -1
  36. package/dist/core/contexts/context.cjs +0 -41
  37. package/dist/core/contexts/context.d.cts +0 -29
  38. package/dist/core/contexts/context.d.cts.map +0 -1
  39. package/dist/core/contexts/context.d.mts +0 -29
  40. package/dist/core/contexts/context.d.mts.map +0 -1
  41. package/dist/core/contexts/context.mjs +0 -37
  42. package/dist/core/contexts/context.mjs.map +0 -1
  43. package/dist/core/contexts/index.cjs +0 -21
  44. package/dist/core/contexts/index.d.cts +0 -4
  45. package/dist/core/contexts/index.d.mts +0 -4
  46. package/dist/core/contexts/index.mjs +0 -5
  47. package/dist/core/contexts/meta.cjs +0 -41
  48. package/dist/core/contexts/meta.d.cts +0 -48
  49. package/dist/core/contexts/meta.d.cts.map +0 -1
  50. package/dist/core/contexts/meta.d.mts +0 -48
  51. package/dist/core/contexts/meta.d.mts.map +0 -1
  52. package/dist/core/contexts/meta.mjs +0 -37
  53. package/dist/core/contexts/meta.mjs.map +0 -1
  54. package/dist/core/contexts/reflection.cjs +0 -69
  55. package/dist/core/contexts/reflection.d.cts +0 -53
  56. package/dist/core/contexts/reflection.d.cts.map +0 -1
  57. package/dist/core/contexts/reflection.d.mts +0 -53
  58. package/dist/core/contexts/reflection.d.mts.map +0 -1
  59. package/dist/core/contexts/reflection.mjs +0 -61
  60. package/dist/core/contexts/reflection.mjs.map +0 -1
  61. package/dist/core/helpers/code.cjs +0 -34
  62. package/dist/core/helpers/code.d.cts +0 -29
  63. package/dist/core/helpers/code.d.cts.map +0 -1
  64. package/dist/core/helpers/code.d.mts +0 -29
  65. package/dist/core/helpers/code.d.mts.map +0 -1
  66. package/dist/core/helpers/code.mjs +0 -33
  67. package/dist/core/helpers/code.mjs.map +0 -1
  68. package/dist/core/helpers/index.cjs +0 -4
  69. package/dist/core/helpers/index.d.cts +0 -2
  70. package/dist/core/helpers/index.d.mts +0 -2
  71. package/dist/core/helpers/index.mjs +0 -3
  72. package/dist/core/index.cjs +0 -34
  73. package/dist/core/index.d.cts +0 -9
  74. package/dist/core/index.d.mts +0 -9
  75. package/dist/core/index.mjs +0 -13
  76. package/dist/helpers/capnp.cjs +0 -277
  77. package/dist/helpers/capnp.d.cts +0 -87
  78. package/dist/helpers/capnp.d.cts.map +0 -1
  79. package/dist/helpers/capnp.d.mts +0 -87
  80. package/dist/helpers/capnp.d.mts.map +0 -1
  81. package/dist/helpers/capnp.mjs +0 -260
  82. package/dist/helpers/capnp.mjs.map +0 -1
  83. package/dist/helpers/create-builtin.cjs +0 -20
  84. package/dist/helpers/create-builtin.d.cts +0 -16
  85. package/dist/helpers/create-builtin.d.cts.map +0 -1
  86. package/dist/helpers/create-builtin.d.mts +0 -16
  87. package/dist/helpers/create-builtin.d.mts.map +0 -1
  88. package/dist/helpers/create-builtin.mjs +0 -19
  89. package/dist/helpers/create-builtin.mjs.map +0 -1
  90. package/dist/helpers/index.cjs +0 -25
  91. package/dist/helpers/index.d.cts +0 -5
  92. package/dist/helpers/index.d.mts +0 -5
  93. package/dist/helpers/index.mjs +0 -6
  94. package/dist/helpers/refkey.cjs +0 -17
  95. package/dist/helpers/refkey.d.cts +0 -13
  96. package/dist/helpers/refkey.d.cts.map +0 -1
  97. package/dist/helpers/refkey.d.mts +0 -13
  98. package/dist/helpers/refkey.d.mts.map +0 -1
  99. package/dist/helpers/refkey.mjs +0 -16
  100. package/dist/helpers/refkey.mjs.map +0 -1
  101. package/dist/helpers/typescript.cjs +0 -47
  102. package/dist/helpers/typescript.d.cts +0 -26
  103. package/dist/helpers/typescript.d.cts.map +0 -1
  104. package/dist/helpers/typescript.d.mts +0 -26
  105. package/dist/helpers/typescript.d.mts.map +0 -1
  106. package/dist/helpers/typescript.mjs +0 -46
  107. package/dist/helpers/typescript.mjs.map +0 -1
  108. package/dist/index.cjs +0 -48
  109. package/dist/index.d.cts +0 -19
  110. package/dist/index.d.cts.map +0 -1
  111. package/dist/index.d.mts +0 -19
  112. package/dist/index.d.mts.map +0 -1
  113. package/dist/index.mjs +0 -45
  114. package/dist/index.mjs.map +0 -1
  115. package/dist/markdown/components/front-matter.cjs +0 -29
  116. package/dist/markdown/components/front-matter.d.cts +0 -16
  117. package/dist/markdown/components/front-matter.d.cts.map +0 -1
  118. package/dist/markdown/components/front-matter.d.mts +0 -16
  119. package/dist/markdown/components/front-matter.d.mts.map +0 -1
  120. package/dist/markdown/components/front-matter.mjs +0 -28
  121. package/dist/markdown/components/front-matter.mjs.map +0 -1
  122. package/dist/markdown/components/index.cjs +0 -11
  123. package/dist/markdown/components/index.d.cts +0 -4
  124. package/dist/markdown/components/index.d.mts +0 -4
  125. package/dist/markdown/components/index.mjs +0 -5
  126. package/dist/markdown/components/markdown-file.cjs +0 -135
  127. package/dist/markdown/components/markdown-file.d.cts +0 -29
  128. package/dist/markdown/components/markdown-file.d.cts.map +0 -1
  129. package/dist/markdown/components/markdown-file.d.mts +0 -29
  130. package/dist/markdown/components/markdown-file.d.mts.map +0 -1
  131. package/dist/markdown/components/markdown-file.mjs +0 -133
  132. package/dist/markdown/components/markdown-file.mjs.map +0 -1
  133. package/dist/markdown/components/markdown-table.cjs +0 -102
  134. package/dist/markdown/components/markdown-table.d.cts +0 -28
  135. package/dist/markdown/components/markdown-table.d.cts.map +0 -1
  136. package/dist/markdown/components/markdown-table.d.mts +0 -28
  137. package/dist/markdown/components/markdown-table.d.mts.map +0 -1
  138. package/dist/markdown/components/markdown-table.mjs +0 -99
  139. package/dist/markdown/components/markdown-table.mjs.map +0 -1
  140. package/dist/markdown/contexts/index.cjs +0 -7
  141. package/dist/markdown/contexts/index.d.cts +0 -2
  142. package/dist/markdown/contexts/index.d.mts +0 -2
  143. package/dist/markdown/contexts/index.mjs +0 -3
  144. package/dist/markdown/contexts/markdown-table.cjs +0 -38
  145. package/dist/markdown/contexts/markdown-table.d.cts +0 -38
  146. package/dist/markdown/contexts/markdown-table.d.cts.map +0 -1
  147. package/dist/markdown/contexts/markdown-table.d.mts +0 -38
  148. package/dist/markdown/contexts/markdown-table.d.mts.map +0 -1
  149. package/dist/markdown/contexts/markdown-table.mjs +0 -34
  150. package/dist/markdown/contexts/markdown-table.mjs.map +0 -1
  151. package/dist/markdown/index.cjs +0 -18
  152. package/dist/markdown/index.d.cts +0 -5
  153. package/dist/markdown/index.d.mts +0 -5
  154. package/dist/markdown/index.mjs +0 -8
  155. package/dist/render.cjs +0 -91
  156. package/dist/render.d.cts +0 -38
  157. package/dist/render.d.cts.map +0 -1
  158. package/dist/render.d.mts +0 -38
  159. package/dist/render.d.mts.map +0 -1
  160. package/dist/render.mjs +0 -89
  161. package/dist/render.mjs.map +0 -1
  162. package/dist/types/components.cjs +0 -0
  163. package/dist/types/components.d.cts +0 -142
  164. package/dist/types/components.d.cts.map +0 -1
  165. package/dist/types/components.d.mts +0 -142
  166. package/dist/types/components.d.mts.map +0 -1
  167. package/dist/types/components.mjs +0 -1
  168. package/dist/types/index.cjs +0 -0
  169. package/dist/types/index.d.cts +0 -3
  170. package/dist/types/index.d.mts +0 -3
  171. package/dist/types/index.mjs +0 -1
  172. package/dist/types/plugin.cjs +0 -0
  173. package/dist/types/plugin.d.cts +0 -39
  174. package/dist/types/plugin.d.cts.map +0 -1
  175. package/dist/types/plugin.d.mts +0 -39
  176. package/dist/types/plugin.d.mts.map +0 -1
  177. package/dist/types/plugin.mjs +0 -1
  178. package/dist/typescript/components/builtin-file.cjs +0 -63
  179. package/dist/typescript/components/builtin-file.d.cts +0 -35
  180. package/dist/typescript/components/builtin-file.d.cts.map +0 -1
  181. package/dist/typescript/components/builtin-file.d.mts +0 -35
  182. package/dist/typescript/components/builtin-file.d.mts.map +0 -1
  183. package/dist/typescript/components/builtin-file.mjs +0 -62
  184. package/dist/typescript/components/builtin-file.mjs.map +0 -1
  185. package/dist/typescript/components/class-declaration.cjs +0 -291
  186. package/dist/typescript/components/class-declaration.d.cts +0 -145
  187. package/dist/typescript/components/class-declaration.d.cts.map +0 -1
  188. package/dist/typescript/components/class-declaration.d.mts +0 -145
  189. package/dist/typescript/components/class-declaration.d.mts.map +0 -1
  190. package/dist/typescript/components/class-declaration.mjs +0 -285
  191. package/dist/typescript/components/class-declaration.mjs.map +0 -1
  192. package/dist/typescript/components/dynamic-import-statement.cjs +0 -26
  193. package/dist/typescript/components/dynamic-import-statement.d.cts +0 -33
  194. package/dist/typescript/components/dynamic-import-statement.d.cts.map +0 -1
  195. package/dist/typescript/components/dynamic-import-statement.d.mts +0 -33
  196. package/dist/typescript/components/dynamic-import-statement.d.mts.map +0 -1
  197. package/dist/typescript/components/dynamic-import-statement.mjs +0 -25
  198. package/dist/typescript/components/dynamic-import-statement.mjs.map +0 -1
  199. package/dist/typescript/components/entry-file.cjs +0 -43
  200. package/dist/typescript/components/entry-file.d.cts +0 -28
  201. package/dist/typescript/components/entry-file.d.cts.map +0 -1
  202. package/dist/typescript/components/entry-file.d.mts +0 -28
  203. package/dist/typescript/components/entry-file.d.mts.map +0 -1
  204. package/dist/typescript/components/entry-file.mjs +0 -41
  205. package/dist/typescript/components/entry-file.mjs.map +0 -1
  206. package/dist/typescript/components/index.cjs +0 -65
  207. package/dist/typescript/components/index.d.cts +0 -15
  208. package/dist/typescript/components/index.d.mts +0 -15
  209. package/dist/typescript/components/index.mjs +0 -16
  210. package/dist/typescript/components/infrastructure-file.cjs +0 -40
  211. package/dist/typescript/components/infrastructure-file.d.cts +0 -21
  212. package/dist/typescript/components/infrastructure-file.d.cts.map +0 -1
  213. package/dist/typescript/components/infrastructure-file.d.mts +0 -21
  214. package/dist/typescript/components/infrastructure-file.d.mts.map +0 -1
  215. package/dist/typescript/components/infrastructure-file.mjs +0 -38
  216. package/dist/typescript/components/infrastructure-file.mjs.map +0 -1
  217. package/dist/typescript/components/interface-declaration.cjs +0 -229
  218. package/dist/typescript/components/interface-declaration.d.cts +0 -86
  219. package/dist/typescript/components/interface-declaration.d.cts.map +0 -1
  220. package/dist/typescript/components/interface-declaration.d.mts +0 -86
  221. package/dist/typescript/components/interface-declaration.d.mts.map +0 -1
  222. package/dist/typescript/components/interface-declaration.mjs +0 -225
  223. package/dist/typescript/components/interface-declaration.mjs.map +0 -1
  224. package/dist/typescript/components/object-declaration.cjs +0 -128
  225. package/dist/typescript/components/object-declaration.d.cts +0 -30
  226. package/dist/typescript/components/object-declaration.d.cts.map +0 -1
  227. package/dist/typescript/components/object-declaration.d.mts +0 -30
  228. package/dist/typescript/components/object-declaration.d.mts.map +0 -1
  229. package/dist/typescript/components/object-declaration.mjs +0 -126
  230. package/dist/typescript/components/object-declaration.mjs.map +0 -1
  231. package/dist/typescript/components/property-name.cjs +0 -32
  232. package/dist/typescript/components/property-name.d.cts +0 -24
  233. package/dist/typescript/components/property-name.d.cts.map +0 -1
  234. package/dist/typescript/components/property-name.d.mts +0 -24
  235. package/dist/typescript/components/property-name.d.mts.map +0 -1
  236. package/dist/typescript/components/property-name.mjs +0 -31
  237. package/dist/typescript/components/property-name.mjs.map +0 -1
  238. package/dist/typescript/components/record-expression.cjs +0 -13
  239. package/dist/typescript/components/record-expression.d.cts +0 -13
  240. package/dist/typescript/components/record-expression.d.cts.map +0 -1
  241. package/dist/typescript/components/record-expression.d.mts +0 -13
  242. package/dist/typescript/components/record-expression.d.mts.map +0 -1
  243. package/dist/typescript/components/record-expression.mjs +0 -12
  244. package/dist/typescript/components/record-expression.mjs.map +0 -1
  245. package/dist/typescript/components/tsdoc-reflection.cjs +0 -310
  246. package/dist/typescript/components/tsdoc-reflection.d.cts +0 -44
  247. package/dist/typescript/components/tsdoc-reflection.d.cts.map +0 -1
  248. package/dist/typescript/components/tsdoc-reflection.d.mts +0 -44
  249. package/dist/typescript/components/tsdoc-reflection.d.mts.map +0 -1
  250. package/dist/typescript/components/tsdoc-reflection.mjs +0 -304
  251. package/dist/typescript/components/tsdoc-reflection.mjs.map +0 -1
  252. package/dist/typescript/components/tsdoc.cjs +0 -477
  253. package/dist/typescript/components/tsdoc.d.cts +0 -164
  254. package/dist/typescript/components/tsdoc.d.cts.map +0 -1
  255. package/dist/typescript/components/tsdoc.d.mts +0 -164
  256. package/dist/typescript/components/tsdoc.d.mts.map +0 -1
  257. package/dist/typescript/components/tsdoc.mjs +0 -457
  258. package/dist/typescript/components/tsdoc.mjs.map +0 -1
  259. package/dist/typescript/components/type-declaration.cjs +0 -39
  260. package/dist/typescript/components/type-declaration.d.cts +0 -18
  261. package/dist/typescript/components/type-declaration.d.cts.map +0 -1
  262. package/dist/typescript/components/type-declaration.d.mts +0 -18
  263. package/dist/typescript/components/type-declaration.d.mts.map +0 -1
  264. package/dist/typescript/components/type-declaration.mjs +0 -38
  265. package/dist/typescript/components/type-declaration.mjs.map +0 -1
  266. package/dist/typescript/components/type-parameters.cjs +0 -82
  267. package/dist/typescript/components/type-parameters.d.cts +0 -24
  268. package/dist/typescript/components/type-parameters.d.cts.map +0 -1
  269. package/dist/typescript/components/type-parameters.d.mts +0 -24
  270. package/dist/typescript/components/type-parameters.d.mts.map +0 -1
  271. package/dist/typescript/components/type-parameters.mjs +0 -81
  272. package/dist/typescript/components/type-parameters.mjs.map +0 -1
  273. package/dist/typescript/components/typescript-file.cjs +0 -221
  274. package/dist/typescript/components/typescript-file.d.cts +0 -50
  275. package/dist/typescript/components/typescript-file.d.cts.map +0 -1
  276. package/dist/typescript/components/typescript-file.d.mts +0 -50
  277. package/dist/typescript/components/typescript-file.d.mts.map +0 -1
  278. package/dist/typescript/components/typescript-file.mjs +0 -218
  279. package/dist/typescript/components/typescript-file.mjs.map +0 -1
  280. package/dist/typescript/contexts/index.cjs +0 -4
  281. package/dist/typescript/contexts/index.d.cts +0 -2
  282. package/dist/typescript/contexts/index.d.mts +0 -2
  283. package/dist/typescript/contexts/index.mjs +0 -3
  284. package/dist/typescript/contexts/lexical-scope.cjs +0 -26
  285. package/dist/typescript/contexts/lexical-scope.d.cts +0 -17
  286. package/dist/typescript/contexts/lexical-scope.d.cts.map +0 -1
  287. package/dist/typescript/contexts/lexical-scope.d.mts +0 -17
  288. package/dist/typescript/contexts/lexical-scope.d.mts.map +0 -1
  289. package/dist/typescript/contexts/lexical-scope.mjs +0 -25
  290. package/dist/typescript/contexts/lexical-scope.mjs.map +0 -1
  291. package/dist/typescript/contexts/member-scope.cjs +0 -24
  292. package/dist/typescript/contexts/member-scope.d.cts +0 -20
  293. package/dist/typescript/contexts/member-scope.d.cts.map +0 -1
  294. package/dist/typescript/contexts/member-scope.d.mts +0 -20
  295. package/dist/typescript/contexts/member-scope.d.mts.map +0 -1
  296. package/dist/typescript/contexts/member-scope.mjs +0 -23
  297. package/dist/typescript/contexts/member-scope.mjs.map +0 -1
  298. package/dist/typescript/helpers/get-call-signature-props.cjs +0 -26
  299. package/dist/typescript/helpers/get-call-signature-props.d.cts +0 -14
  300. package/dist/typescript/helpers/get-call-signature-props.d.cts.map +0 -1
  301. package/dist/typescript/helpers/get-call-signature-props.d.mts +0 -14
  302. package/dist/typescript/helpers/get-call-signature-props.d.mts.map +0 -1
  303. package/dist/typescript/helpers/get-call-signature-props.mjs +0 -25
  304. package/dist/typescript/helpers/get-call-signature-props.mjs.map +0 -1
  305. package/dist/typescript/helpers/index.cjs +0 -6
  306. package/dist/typescript/helpers/index.d.cts +0 -3
  307. package/dist/typescript/helpers/index.d.mts +0 -3
  308. package/dist/typescript/helpers/index.mjs +0 -4
  309. package/dist/typescript/helpers/utilities.cjs +0 -15
  310. package/dist/typescript/helpers/utilities.d.cts +0 -11
  311. package/dist/typescript/helpers/utilities.d.cts.map +0 -1
  312. package/dist/typescript/helpers/utilities.d.mts +0 -11
  313. package/dist/typescript/helpers/utilities.d.mts.map +0 -1
  314. package/dist/typescript/helpers/utilities.mjs +0 -14
  315. package/dist/typescript/helpers/utilities.mjs.map +0 -1
  316. package/dist/typescript/index.cjs +0 -74
  317. package/dist/typescript/index.d.cts +0 -18
  318. package/dist/typescript/index.d.mts +0 -18
  319. package/dist/typescript/index.mjs +0 -22
  320. package/dist/yaml/components/index.cjs +0 -5
  321. package/dist/yaml/components/index.d.cts +0 -2
  322. package/dist/yaml/components/index.d.mts +0 -2
  323. package/dist/yaml/components/index.mjs +0 -3
  324. package/dist/yaml/components/yaml-file.cjs +0 -149
  325. package/dist/yaml/components/yaml-file.d.cts +0 -34
  326. package/dist/yaml/components/yaml-file.d.cts.map +0 -1
  327. package/dist/yaml/components/yaml-file.d.mts +0 -34
  328. package/dist/yaml/components/yaml-file.d.mts.map +0 -1
  329. package/dist/yaml/components/yaml-file.mjs +0 -147
  330. package/dist/yaml/components/yaml-file.mjs.map +0 -1
  331. package/dist/yaml/index.cjs +0 -6
  332. package/dist/yaml/index.d.cts +0 -2
  333. package/dist/yaml/index.d.mts +0 -2
  334. package/dist/yaml/index.mjs +0 -4
@@ -1,304 +0,0 @@
1
- import { useReflectionClass, useReflectionMethod, useReflectionProperty } from "../../core/contexts/reflection.mjs";
2
- import { Spacing } from "../../core/components/spacing.mjs";
3
- import { TSDoc, TSDocAttributesTags, TSDocParam, TSDocReturns } from "./tsdoc.mjs";
4
- import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
5
- import { For, List, Show, childrenArray, code, computed, splitProps } from "@alloy-js/core";
6
- import { titleCase } from "@stryke/string-format/title-case";
7
- import { isUndefined } from "@stryke/type-checks/is-undefined";
8
- import { ReflectionKind, stringifyType } from "@powerlines/deepkit/vendor/type";
9
- import { isString } from "@stryke/type-checks/is-string";
10
- import { isSetObject } from "@stryke/type-checks";
11
- import { isSetString } from "@stryke/type-checks/is-set-string";
12
-
13
- //#region src/typescript/components/tsdoc-reflection.tsx
14
- /**
15
- * Generates a TSDoc documentation block for the given reflection class. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about properties or methods of a class.
16
- */
17
- function TSDocReflectionClass(props) {
18
- const [{ children, heading, reflection }, rest] = splitProps(props, [
19
- "heading",
20
- "children",
21
- "reflection"
22
- ]);
23
- if (!isSetObject(reflection)) return null;
24
- const title = computed(() => reflection.getTitle() || titleCase(reflection.getName()));
25
- const computedHeading = computed(() => heading || reflection.getDescription() || title.value);
26
- const alias = computed(() => reflection.getAlias());
27
- const domain = computed(() => reflection.getDomain());
28
- const permission = computed(() => reflection.getPermission());
29
- const readonly = computed(() => reflection.isReadonly());
30
- const internal = computed(() => reflection.isInternal());
31
- const ignore = computed(() => reflection.isIgnored());
32
- const hidden = computed(() => reflection.isHidden());
33
- if (!computedHeading.value || isSetString(computedHeading.value) && computedHeading.value.trim() === "") return null;
34
- const hasAttributes = computed(() => 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
- return createComponent(TSDoc, mergeProps(rest, {
36
- get heading() {
37
- return memo(() => !!isSetString(computedHeading.value))() ? computedHeading.value.trim() : computedHeading.value;
38
- },
39
- get children() {
40
- return [createComponent(Show, {
41
- get when() {
42
- return hasAttributes.value;
43
- },
44
- get children() {
45
- return createComponent(TSDocAttributesTags, {
46
- get title() {
47
- return title.value;
48
- },
49
- get alias() {
50
- return alias.value;
51
- },
52
- get domain() {
53
- return domain.value;
54
- },
55
- get permission() {
56
- return permission.value;
57
- },
58
- get readonly() {
59
- return readonly.value;
60
- },
61
- get internal() {
62
- return internal.value;
63
- },
64
- get ignore() {
65
- return ignore.value;
66
- },
67
- get hidden() {
68
- return hidden.value;
69
- }
70
- });
71
- }
72
- }), createComponent(Show, {
73
- get when() {
74
- return memo(() => !!!isUndefined(children))() && childrenArray(() => children).filter(Boolean).length > 0;
75
- },
76
- get children() {
77
- return [createComponent(Show, {
78
- get when() {
79
- return hasAttributes.value;
80
- },
81
- get children() {
82
- return createComponent(Spacing, {});
83
- }
84
- }), createComponent(List, { get children() {
85
- return childrenArray(() => children);
86
- } })];
87
- }
88
- })];
89
- }
90
- }));
91
- }
92
- /**
93
- * Uses the `useReflectionClass` hook to retrieve the reflection class from the context, and then renders a `TSDocReflectionClass` component with the retrieved reflection class. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection class without having to manually retrieve the reflection class from the context.
94
- */
95
- function TSDocContextClass(props) {
96
- const reflectionClass = useReflectionClass();
97
- return createComponent(Show, {
98
- get when() {
99
- return isSetObject(reflectionClass.reflection);
100
- },
101
- get children() {
102
- return createComponent(TSDocReflectionClass, mergeProps(props, { get reflection() {
103
- return reflectionClass.reflection;
104
- } }));
105
- }
106
- });
107
- }
108
- /**
109
- * Generates a TSDoc documentation block for the given reflection property. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about parameters of a method or properties of a class.
110
- */
111
- function TSDocReflectionProperty(props) {
112
- const [{ children, reflection }, rest] = splitProps(props, ["children", "reflection"]);
113
- if (!isSetObject(reflection)) return null;
114
- const hasAttributes = computed(() => isSetString(reflection.getTitle()) || !isUndefined(reflection.getAlias()) && reflection.getAlias().length > 0 || !isUndefined(reflection.getPermission()) && reflection.getPermission().length > 0 || isSetString(reflection.getDomain()) || !isUndefined(reflection.isReadonly()) || !isUndefined(reflection.isInternal()) || !isUndefined(reflection.isIgnored()) || !isUndefined(reflection.isHidden()) || reflection.hasDefault() && !isUndefined(reflection.getDefaultValue()));
115
- return createComponent(TSDoc, mergeProps({ get heading() {
116
- return reflection.getDescription();
117
- } }, rest, { get children() {
118
- return [createComponent(Show, {
119
- get when() {
120
- return hasAttributes.value;
121
- },
122
- get children() {
123
- return createComponent(TSDocAttributesTags, {
124
- type: reflection,
125
- get title() {
126
- return reflection.getTitle();
127
- },
128
- get alias() {
129
- return reflection.getAlias();
130
- },
131
- get domain() {
132
- return reflection.getDomain();
133
- },
134
- get permission() {
135
- return reflection.getPermission();
136
- },
137
- get readonly() {
138
- return reflection.isReadonly();
139
- },
140
- get internal() {
141
- return reflection.isInternal();
142
- },
143
- get ignore() {
144
- return reflection.isIgnored();
145
- },
146
- get hidden() {
147
- return reflection.isHidden();
148
- },
149
- get defaultValue() {
150
- return reflection.getDefaultValue();
151
- }
152
- });
153
- }
154
- }), createComponent(Show, {
155
- get when() {
156
- return memo(() => !!!isUndefined(children))() && childrenArray(() => children).filter(Boolean).length > 0;
157
- },
158
- get children() {
159
- return [createComponent(Show, {
160
- get when() {
161
- return hasAttributes.value;
162
- },
163
- get children() {
164
- return createComponent(Spacing, {});
165
- }
166
- }), createComponent(List, { get children() {
167
- return childrenArray(() => children);
168
- } })];
169
- }
170
- })];
171
- } }));
172
- }
173
- /**
174
- * Uses the `useReflectionProperty` hook to retrieve the reflection property from the context, and then renders a `TSDocReflectionProperty` component with the retrieved reflection property. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection property without having to manually retrieve the reflection property from the context.
175
- */
176
- function TSDocContextProperty(props) {
177
- const reflection = useReflectionProperty();
178
- return createComponent(Show, {
179
- get when() {
180
- return isSetObject(reflection);
181
- },
182
- get children() {
183
- return createComponent(TSDocReflectionProperty, mergeProps(props, { reflection }));
184
- }
185
- });
186
- }
187
- /**
188
- * Generates a TSDoc documentation block for the given reflection method. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. Additionally, this component will render information about the parameters and return type of the method, if available.
189
- */
190
- function TSDocReflectionMethod(props) {
191
- const [{ children, reflection }, rest] = splitProps(props, ["children", "reflection"]);
192
- if (!isSetObject(reflection)) return null;
193
- const heading = computed(() => reflection.getDescription() || (isString(reflection.getName()) ? code`${String(reflection.getName())} method definition` : void 0));
194
- return createComponent(TSDoc, mergeProps({ get heading() {
195
- return heading.value;
196
- } }, rest, { get children() {
197
- return [
198
- createComponent(TSDocAttributesTags, {
199
- get title() {
200
- return reflection.getTitle();
201
- },
202
- get alias() {
203
- return reflection.getAlias();
204
- },
205
- get domain() {
206
- return reflection.getDomain();
207
- },
208
- get permission() {
209
- return reflection.getPermission();
210
- },
211
- get readonly() {
212
- return reflection.isReadonly();
213
- },
214
- get internal() {
215
- return reflection.isInternal();
216
- },
217
- get ignore() {
218
- return reflection.isIgnored();
219
- },
220
- get hidden() {
221
- return reflection.isHidden();
222
- }
223
- }),
224
- createComponent(Show, {
225
- get when() {
226
- return memo(() => !!Boolean(children))() && childrenArray(() => children).length > 0;
227
- },
228
- get children() {
229
- return createComponent(List, { get children() {
230
- return childrenArray(() => children);
231
- } });
232
- }
233
- }),
234
- createComponent(Show, {
235
- get when() {
236
- return reflection.getParameters().length > 0;
237
- },
238
- get children() {
239
- return [createComponent(Spacing, {}), createComponent(For, {
240
- get each() {
241
- return reflection.getParameters();
242
- },
243
- hardline: true,
244
- get ender() {
245
- return createIntrinsic("hbr", {});
246
- },
247
- children: (param) => createComponent(TSDocParam, {
248
- get name() {
249
- return param.getName();
250
- },
251
- get optional() {
252
- return param.isOptional();
253
- },
254
- get defaultValue() {
255
- return memo(() => !!param.hasDefault())() ? param.getDefaultValue() : void 0;
256
- },
257
- get children() {
258
- return createComponent(Show, {
259
- get when() {
260
- return Boolean(param.parameter.description);
261
- },
262
- get fallback() {
263
- return code`A parameter to provide a ${param.getName()} value to the function.`;
264
- },
265
- get children() {
266
- return param.parameter.description;
267
- }
268
- });
269
- }
270
- })
271
- })];
272
- }
273
- }),
274
- createComponent(Show, {
275
- get when() {
276
- return reflection.getReturnType().kind !== ReflectionKind.void;
277
- },
278
- get children() {
279
- return [createComponent(Spacing, {}), createComponent(TSDocReturns, { get children() {
280
- return code`The return value of the function, which is of type ${stringifyType(reflection.getReturnType())}.`;
281
- } })];
282
- }
283
- })
284
- ];
285
- } }));
286
- }
287
- /**
288
- * Uses the `useReflectionMethod` hook to retrieve the reflection method from the context, and then renders a `TSDocReflectionMethod` component with the retrieved reflection method. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection method without having to manually retrieve the reflection method from the context.
289
- */
290
- function TSDocContextMethod(props) {
291
- const reflection = useReflectionMethod();
292
- return createComponent(Show, {
293
- get when() {
294
- return isSetObject(reflection);
295
- },
296
- get children() {
297
- return createComponent(TSDocReflectionMethod, mergeProps(props, { reflection }));
298
- }
299
- });
300
- }
301
-
302
- //#endregion
303
- export { TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
304
- //# sourceMappingURL=tsdoc-reflection.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tsdoc-reflection.mjs","names":[],"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 For,\n List,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport {\n ReflectionClass,\n ReflectionKind,\n ReflectionMethod,\n ReflectionProperty,\n stringifyType\n} from \"@powerlines/deepkit/vendor/type\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isSetObject } from \"@stryke/type-checks\";\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 { Spacing } from \"../../core/components/spacing\";\nimport {\n useReflectionClass,\n useReflectionMethod,\n useReflectionProperty\n} from \"../../core/contexts/reflection\";\nimport {\n TSDoc,\n TSDocAttributesTags,\n TSDocParam,\n TSDocProps,\n TSDocReturns\n} from \"./tsdoc\";\n\nexport interface TSDocReflectionClassProps<\n T extends Record<string, any> = Record<string, any>\n> extends TSDocProps {\n reflection: ReflectionClass<T>;\n}\n\n/**\n * Generates a TSDoc documentation block for the given reflection class. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about properties or methods of a class.\n */\nexport function TSDocReflectionClass<\n T extends Record<string, any> = Record<string, any>\n>(props: TSDocReflectionClassProps<T>) {\n const [{ children, heading, reflection }, rest] = splitProps(props, [\n \"heading\",\n \"children\",\n \"reflection\"\n ]);\n\n if (!isSetObject(reflection)) {\n return null;\n }\n\n const title = computed(\n () => reflection.getTitle() || titleCase(reflection.getName())\n );\n const computedHeading = computed(\n () => heading || reflection.getDescription() || title.value\n );\n\n const alias = computed(() => reflection.getAlias());\n const domain = computed(() => reflection.getDomain());\n const permission = computed(() => reflection.getPermission());\n const readonly = computed(() => reflection.isReadonly());\n const internal = computed(() => reflection.isInternal());\n const ignore = computed(() => reflection.isIgnored());\n const hidden = computed(() => reflection.isHidden());\n\n if (\n !computedHeading.value ||\n (isSetString(computedHeading.value) && computedHeading.value.trim() === \"\")\n ) {\n return null;\n }\n\n const hasAttributes = computed(\n () =>\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\n return (\n <TSDoc\n {...rest}\n heading={\n isSetString(computedHeading.value)\n ? computedHeading.value.trim()\n : computedHeading.value\n }>\n <Show when={hasAttributes.value}>\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={\n !isUndefined(children) &&\n childrenArray(() => children).filter(Boolean).length > 0\n }>\n <Show when={hasAttributes.value}>\n <Spacing />\n </Show>\n <List>{childrenArray(() => children)}</List>\n </Show>\n </TSDoc>\n );\n}\n\n/**\n * Uses the `useReflectionClass` hook to retrieve the reflection class from the context, and then renders a `TSDocReflectionClass` component with the retrieved reflection class. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection class without having to manually retrieve the reflection class from the context.\n */\nexport function TSDocContextClass<\n T extends Record<string, any> = Record<string, any>\n>(props: TSDocProps) {\n const reflectionClass = useReflectionClass<T>();\n\n return (\n <Show when={isSetObject(reflectionClass.reflection)}>\n <TSDocReflectionClass\n {...props}\n reflection={reflectionClass.reflection}\n />\n </Show>\n );\n}\n\nexport interface TSDocReflectionPropertyProps extends TSDocProps {\n reflection: ReflectionProperty;\n}\n\n/**\n * Generates a TSDoc documentation block for the given reflection property. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about parameters of a method or properties of a class.\n */\nexport function TSDocReflectionProperty(props: TSDocReflectionPropertyProps) {\n const [{ children, reflection }, rest] = splitProps(props, [\n \"children\",\n \"reflection\"\n ]);\n\n if (!isSetObject(reflection)) {\n return null;\n }\n\n const hasAttributes = computed(\n () =>\n isSetString(reflection.getTitle()) ||\n (!isUndefined(reflection.getAlias()) &&\n reflection.getAlias().length > 0) ||\n (!isUndefined(reflection.getPermission()) &&\n reflection.getPermission().length > 0) ||\n isSetString(reflection.getDomain()) ||\n !isUndefined(reflection.isReadonly()) ||\n !isUndefined(reflection.isInternal()) ||\n !isUndefined(reflection.isIgnored()) ||\n !isUndefined(reflection.isHidden()) ||\n (reflection.hasDefault() && !isUndefined(reflection.getDefaultValue()))\n );\n\n return (\n <TSDoc heading={reflection.getDescription()} {...rest}>\n <Show when={hasAttributes.value}>\n <TSDocAttributesTags\n type={reflection}\n title={reflection.getTitle()}\n alias={reflection.getAlias()}\n domain={reflection.getDomain()}\n permission={reflection.getPermission()}\n readonly={reflection.isReadonly()}\n internal={reflection.isInternal()}\n ignore={reflection.isIgnored()}\n hidden={reflection.isHidden()}\n defaultValue={reflection.getDefaultValue()}\n />\n </Show>\n <Show\n when={\n !isUndefined(children) &&\n childrenArray(() => children).filter(Boolean).length > 0\n }>\n <Show when={hasAttributes.value}>\n <Spacing />\n </Show>\n <List>{childrenArray(() => children)}</List>\n </Show>\n </TSDoc>\n );\n}\n\n/**\n * Uses the `useReflectionProperty` hook to retrieve the reflection property from the context, and then renders a `TSDocReflectionProperty` component with the retrieved reflection property. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection property without having to manually retrieve the reflection property from the context.\n */\nexport function TSDocContextProperty(props: TSDocProps) {\n const reflection = useReflectionProperty();\n\n return (\n <Show when={isSetObject(reflection)}>\n <TSDocReflectionProperty {...props} reflection={reflection} />\n </Show>\n );\n}\n\nexport interface TSDocReflectionMethodProps extends TSDocProps {\n reflection: ReflectionMethod;\n}\n\n/**\n * Generates a TSDoc documentation block for the given reflection method. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. Additionally, this component will render information about the parameters and return type of the method, if available.\n */\nexport function TSDocReflectionMethod(props: TSDocReflectionMethodProps) {\n const [{ children, reflection }, rest] = splitProps(props, [\n \"children\",\n \"reflection\"\n ]);\n\n if (!isSetObject(reflection)) {\n return null;\n }\n\n const heading = computed(\n () =>\n reflection.getDescription() ||\n (isString(reflection.getName())\n ? code`${String(reflection.getName())} method definition`\n : undefined)\n );\n\n return (\n <TSDoc heading={heading.value} {...rest}>\n <TSDocAttributesTags\n title={reflection.getTitle()}\n alias={reflection.getAlias()}\n domain={reflection.getDomain()}\n permission={reflection.getPermission()}\n readonly={reflection.isReadonly()}\n internal={reflection.isInternal()}\n ignore={reflection.isIgnored()}\n hidden={reflection.isHidden()}\n />\n <Show\n when={Boolean(children) && childrenArray(() => children).length > 0}>\n <List>{childrenArray(() => children)}</List>\n </Show>\n <Show when={reflection.getParameters().length > 0}>\n <Spacing />\n <For each={reflection.getParameters()} hardline ender={<hbr />}>\n {param => (\n <TSDocParam\n name={param.getName()}\n optional={param.isOptional()}\n defaultValue={\n param.hasDefault() ? param.getDefaultValue() : undefined\n }>\n <Show\n when={Boolean(param.parameter.description)}\n fallback={code`A parameter to provide a ${param.getName()} value to the function.`}>\n {param.parameter.description}\n </Show>\n </TSDocParam>\n )}\n </For>\n </Show>\n <Show when={reflection.getReturnType().kind !== ReflectionKind.void}>\n <Spacing />\n <TSDocReturns>\n {code`The return value of the function, which is of type ${stringifyType(\n reflection.getReturnType()\n )}.`}\n </TSDocReturns>\n </Show>\n </TSDoc>\n );\n}\n\n/**\n * Uses the `useReflectionMethod` hook to retrieve the reflection method from the context, and then renders a `TSDocReflectionMethod` component with the retrieved reflection method. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection method without having to manually retrieve the reflection method from the context.\n */\nexport function TSDocContextMethod(props: TSDocProps) {\n const reflection = useReflectionMethod();\n\n return (\n <Show when={isSetObject(reflection)}>\n <TSDocReflectionMethod {...props} reflection={reflection} />\n </Show>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAoCA,SAAS,qBAAsD,OAAA;CAC/D,MAAQ,CAAC,EACT,UACA,SACA,cACE,QAAA,WAAkB,OAAA;EAAA;EAAA;EAAA;EAAA,CAAA;AAClB,KAAA,CAAA,YAAA,WAAmB,CACnB,QAAA;CAEF,MAAO,QAAA,eAAA,WAAA,UAAA,IAAA,UAAA,WAAA,SAAA,CAAA,CAAA;CACL,MAAK,kBAAA,eAAA,WAAA,WAAA,gBAAA,IAAA,MAAA,MAAA;CACL,MAAA,QAAA,eAAmB,WAAA,UAAA,CAAA;CACnB,MAAA,SAAU,eAAA,WAAA,WAAA,CAAA;CACV,MAAA,aAAU,eAAA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