@powerlines/plugin-alloy 0.26.48 → 0.26.51

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 (377) hide show
  1. package/package.json +6 -6
  2. package/dist/_virtual/_rolldown/runtime.cjs +0 -29
  3. package/dist/core/components/index.cjs +0 -12
  4. package/dist/core/components/index.d.cts +0 -6
  5. package/dist/core/components/index.d.mts +0 -6
  6. package/dist/core/components/index.mjs +0 -7
  7. package/dist/core/components/infrastructure-file.cjs +0 -48
  8. package/dist/core/components/infrastructure-file.d.cts +0 -27
  9. package/dist/core/components/infrastructure-file.d.cts.map +0 -1
  10. package/dist/core/components/infrastructure-file.d.mts +0 -27
  11. package/dist/core/components/infrastructure-file.d.mts.map +0 -1
  12. package/dist/core/components/infrastructure-file.mjs +0 -46
  13. package/dist/core/components/infrastructure-file.mjs.map +0 -1
  14. package/dist/core/components/output.cjs +0 -41
  15. package/dist/core/components/output.d.cts +0 -23
  16. package/dist/core/components/output.d.cts.map +0 -1
  17. package/dist/core/components/output.d.mts +0 -23
  18. package/dist/core/components/output.d.mts.map +0 -1
  19. package/dist/core/components/output.mjs +0 -40
  20. package/dist/core/components/output.mjs.map +0 -1
  21. package/dist/core/components/single-line-comment.cjs +0 -23
  22. package/dist/core/components/single-line-comment.d.cts +0 -21
  23. package/dist/core/components/single-line-comment.d.cts.map +0 -1
  24. package/dist/core/components/single-line-comment.d.mts +0 -21
  25. package/dist/core/components/single-line-comment.d.mts.map +0 -1
  26. package/dist/core/components/single-line-comment.mjs +0 -22
  27. package/dist/core/components/single-line-comment.mjs.map +0 -1
  28. package/dist/core/components/source-file.cjs +0 -64
  29. package/dist/core/components/source-file.d.cts +0 -32
  30. package/dist/core/components/source-file.d.cts.map +0 -1
  31. package/dist/core/components/source-file.d.mts +0 -32
  32. package/dist/core/components/source-file.d.mts.map +0 -1
  33. package/dist/core/components/source-file.mjs +0 -62
  34. package/dist/core/components/source-file.mjs.map +0 -1
  35. package/dist/core/components/spacing.cjs +0 -20
  36. package/dist/core/components/spacing.d.cts +0 -23
  37. package/dist/core/components/spacing.d.cts.map +0 -1
  38. package/dist/core/components/spacing.d.mts +0 -23
  39. package/dist/core/components/spacing.d.mts.map +0 -1
  40. package/dist/core/components/spacing.mjs +0 -19
  41. package/dist/core/components/spacing.mjs.map +0 -1
  42. package/dist/core/contexts/context.cjs +0 -41
  43. package/dist/core/contexts/context.d.cts +0 -29
  44. package/dist/core/contexts/context.d.cts.map +0 -1
  45. package/dist/core/contexts/context.d.mts +0 -29
  46. package/dist/core/contexts/context.d.mts.map +0 -1
  47. package/dist/core/contexts/context.mjs +0 -37
  48. package/dist/core/contexts/context.mjs.map +0 -1
  49. package/dist/core/contexts/index.cjs +0 -22
  50. package/dist/core/contexts/index.d.cts +0 -4
  51. package/dist/core/contexts/index.d.mts +0 -4
  52. package/dist/core/contexts/index.mjs +0 -5
  53. package/dist/core/contexts/meta.cjs +0 -41
  54. package/dist/core/contexts/meta.d.cts +0 -47
  55. package/dist/core/contexts/meta.d.cts.map +0 -1
  56. package/dist/core/contexts/meta.d.mts +0 -47
  57. package/dist/core/contexts/meta.d.mts.map +0 -1
  58. package/dist/core/contexts/meta.mjs +0 -37
  59. package/dist/core/contexts/meta.mjs.map +0 -1
  60. package/dist/core/contexts/reflection.cjs +0 -80
  61. package/dist/core/contexts/reflection.d.cts +0 -62
  62. package/dist/core/contexts/reflection.d.cts.map +0 -1
  63. package/dist/core/contexts/reflection.d.mts +0 -62
  64. package/dist/core/contexts/reflection.d.mts.map +0 -1
  65. package/dist/core/contexts/reflection.mjs +0 -71
  66. package/dist/core/contexts/reflection.mjs.map +0 -1
  67. package/dist/core/helpers/code.cjs +0 -34
  68. package/dist/core/helpers/code.d.cts +0 -29
  69. package/dist/core/helpers/code.d.cts.map +0 -1
  70. package/dist/core/helpers/code.d.mts +0 -29
  71. package/dist/core/helpers/code.d.mts.map +0 -1
  72. package/dist/core/helpers/code.mjs +0 -33
  73. package/dist/core/helpers/code.mjs.map +0 -1
  74. package/dist/core/helpers/index.cjs +0 -4
  75. package/dist/core/helpers/index.d.cts +0 -2
  76. package/dist/core/helpers/index.d.mts +0 -2
  77. package/dist/core/helpers/index.mjs +0 -3
  78. package/dist/core/index.cjs +0 -37
  79. package/dist/core/index.d.cts +0 -10
  80. package/dist/core/index.d.mts +0 -10
  81. package/dist/core/index.mjs +0 -14
  82. package/dist/hcl/components/block-declaration.cjs +0 -34
  83. package/dist/hcl/components/block-declaration.d.cts +0 -21
  84. package/dist/hcl/components/block-declaration.d.cts.map +0 -1
  85. package/dist/hcl/components/block-declaration.d.mts +0 -21
  86. package/dist/hcl/components/block-declaration.d.mts.map +0 -1
  87. package/dist/hcl/components/block-declaration.mjs +0 -33
  88. package/dist/hcl/components/block-declaration.mjs.map +0 -1
  89. package/dist/hcl/components/hcl-file.cjs +0 -83
  90. package/dist/hcl/components/hcl-file.d.cts +0 -26
  91. package/dist/hcl/components/hcl-file.d.cts.map +0 -1
  92. package/dist/hcl/components/hcl-file.d.mts +0 -26
  93. package/dist/hcl/components/hcl-file.d.mts.map +0 -1
  94. package/dist/hcl/components/hcl-file.mjs +0 -81
  95. package/dist/hcl/components/hcl-file.mjs.map +0 -1
  96. package/dist/hcl/components/index.cjs +0 -11
  97. package/dist/hcl/components/index.d.cts +0 -5
  98. package/dist/hcl/components/index.d.mts +0 -5
  99. package/dist/hcl/components/index.mjs +0 -6
  100. package/dist/hcl/components/packer-file.cjs +0 -29
  101. package/dist/hcl/components/packer-file.d.cts +0 -18
  102. package/dist/hcl/components/packer-file.d.cts.map +0 -1
  103. package/dist/hcl/components/packer-file.d.mts +0 -18
  104. package/dist/hcl/components/packer-file.d.mts.map +0 -1
  105. package/dist/hcl/components/packer-file.mjs +0 -28
  106. package/dist/hcl/components/packer-file.mjs.map +0 -1
  107. package/dist/hcl/components/terraform-file.cjs +0 -30
  108. package/dist/hcl/components/terraform-file.d.cts +0 -19
  109. package/dist/hcl/components/terraform-file.d.cts.map +0 -1
  110. package/dist/hcl/components/terraform-file.d.mts +0 -19
  111. package/dist/hcl/components/terraform-file.d.mts.map +0 -1
  112. package/dist/hcl/components/terraform-file.mjs +0 -29
  113. package/dist/hcl/components/terraform-file.mjs.map +0 -1
  114. package/dist/hcl/index.cjs +0 -12
  115. package/dist/hcl/index.d.cts +0 -5
  116. package/dist/hcl/index.d.mts +0 -5
  117. package/dist/hcl/index.mjs +0 -7
  118. package/dist/helpers/capnp.cjs +0 -277
  119. package/dist/helpers/capnp.d.cts +0 -83
  120. package/dist/helpers/capnp.d.cts.map +0 -1
  121. package/dist/helpers/capnp.d.mts +0 -83
  122. package/dist/helpers/capnp.d.mts.map +0 -1
  123. package/dist/helpers/capnp.mjs +0 -260
  124. package/dist/helpers/capnp.mjs.map +0 -1
  125. package/dist/helpers/create-builtin.cjs +0 -20
  126. package/dist/helpers/create-builtin.d.cts +0 -15
  127. package/dist/helpers/create-builtin.d.cts.map +0 -1
  128. package/dist/helpers/create-builtin.d.mts +0 -15
  129. package/dist/helpers/create-builtin.d.mts.map +0 -1
  130. package/dist/helpers/create-builtin.mjs +0 -19
  131. package/dist/helpers/create-builtin.mjs.map +0 -1
  132. package/dist/helpers/index.cjs +0 -25
  133. package/dist/helpers/index.d.cts +0 -5
  134. package/dist/helpers/index.d.mts +0 -5
  135. package/dist/helpers/index.mjs +0 -6
  136. package/dist/helpers/refkey.cjs +0 -17
  137. package/dist/helpers/refkey.d.cts +0 -13
  138. package/dist/helpers/refkey.d.cts.map +0 -1
  139. package/dist/helpers/refkey.d.mts +0 -13
  140. package/dist/helpers/refkey.d.mts.map +0 -1
  141. package/dist/helpers/refkey.mjs +0 -16
  142. package/dist/helpers/refkey.mjs.map +0 -1
  143. package/dist/helpers/typescript.cjs +0 -48
  144. package/dist/helpers/typescript.d.cts +0 -24
  145. package/dist/helpers/typescript.d.cts.map +0 -1
  146. package/dist/helpers/typescript.d.mts +0 -24
  147. package/dist/helpers/typescript.d.mts.map +0 -1
  148. package/dist/helpers/typescript.mjs +0 -47
  149. package/dist/helpers/typescript.mjs.map +0 -1
  150. package/dist/index.cjs +0 -55
  151. package/dist/index.d.cts +0 -19
  152. package/dist/index.d.cts.map +0 -1
  153. package/dist/index.d.mts +0 -19
  154. package/dist/index.d.mts.map +0 -1
  155. package/dist/index.mjs +0 -52
  156. package/dist/index.mjs.map +0 -1
  157. package/dist/markdown/components/front-matter.cjs +0 -29
  158. package/dist/markdown/components/front-matter.d.cts +0 -15
  159. package/dist/markdown/components/front-matter.d.cts.map +0 -1
  160. package/dist/markdown/components/front-matter.d.mts +0 -15
  161. package/dist/markdown/components/front-matter.d.mts.map +0 -1
  162. package/dist/markdown/components/front-matter.mjs +0 -28
  163. package/dist/markdown/components/front-matter.mjs.map +0 -1
  164. package/dist/markdown/components/heading.cjs +0 -24
  165. package/dist/markdown/components/heading.d.cts +0 -19
  166. package/dist/markdown/components/heading.d.cts.map +0 -1
  167. package/dist/markdown/components/heading.d.mts +0 -19
  168. package/dist/markdown/components/heading.d.mts.map +0 -1
  169. package/dist/markdown/components/heading.mjs +0 -23
  170. package/dist/markdown/components/heading.mjs.map +0 -1
  171. package/dist/markdown/components/index.cjs +0 -13
  172. package/dist/markdown/components/index.d.cts +0 -5
  173. package/dist/markdown/components/index.d.mts +0 -5
  174. package/dist/markdown/components/index.mjs +0 -6
  175. package/dist/markdown/components/markdown-file.cjs +0 -135
  176. package/dist/markdown/components/markdown-file.d.cts +0 -27
  177. package/dist/markdown/components/markdown-file.d.cts.map +0 -1
  178. package/dist/markdown/components/markdown-file.d.mts +0 -27
  179. package/dist/markdown/components/markdown-file.d.mts.map +0 -1
  180. package/dist/markdown/components/markdown-file.mjs +0 -133
  181. package/dist/markdown/components/markdown-file.mjs.map +0 -1
  182. package/dist/markdown/components/markdown-table.cjs +0 -102
  183. package/dist/markdown/components/markdown-table.d.cts +0 -26
  184. package/dist/markdown/components/markdown-table.d.cts.map +0 -1
  185. package/dist/markdown/components/markdown-table.d.mts +0 -26
  186. package/dist/markdown/components/markdown-table.d.mts.map +0 -1
  187. package/dist/markdown/components/markdown-table.mjs +0 -99
  188. package/dist/markdown/components/markdown-table.mjs.map +0 -1
  189. package/dist/markdown/contexts/index.cjs +0 -7
  190. package/dist/markdown/contexts/index.d.cts +0 -2
  191. package/dist/markdown/contexts/index.d.mts +0 -2
  192. package/dist/markdown/contexts/index.mjs +0 -3
  193. package/dist/markdown/contexts/markdown-table.cjs +0 -38
  194. package/dist/markdown/contexts/markdown-table.d.cts +0 -36
  195. package/dist/markdown/contexts/markdown-table.d.cts.map +0 -1
  196. package/dist/markdown/contexts/markdown-table.d.mts +0 -36
  197. package/dist/markdown/contexts/markdown-table.d.mts.map +0 -1
  198. package/dist/markdown/contexts/markdown-table.mjs +0 -34
  199. package/dist/markdown/contexts/markdown-table.mjs.map +0 -1
  200. package/dist/markdown/index.cjs +0 -20
  201. package/dist/markdown/index.d.cts +0 -6
  202. package/dist/markdown/index.d.mts +0 -6
  203. package/dist/markdown/index.mjs +0 -9
  204. package/dist/render.cjs +0 -91
  205. package/dist/render.d.cts +0 -38
  206. package/dist/render.d.cts.map +0 -1
  207. package/dist/render.d.mts +0 -38
  208. package/dist/render.d.mts.map +0 -1
  209. package/dist/render.mjs +0 -89
  210. package/dist/render.mjs.map +0 -1
  211. package/dist/types/components.cjs +0 -9
  212. package/dist/types/components.d.cts +0 -126
  213. package/dist/types/components.d.cts.map +0 -1
  214. package/dist/types/components.d.mts +0 -126
  215. package/dist/types/components.d.mts.map +0 -1
  216. package/dist/types/components.mjs +0 -10
  217. package/dist/types/components.mjs.map +0 -1
  218. package/dist/types/index.cjs +0 -0
  219. package/dist/types/index.d.cts +0 -3
  220. package/dist/types/index.d.mts +0 -3
  221. package/dist/types/index.mjs +0 -1
  222. package/dist/types/plugin.cjs +0 -0
  223. package/dist/types/plugin.d.cts +0 -35
  224. package/dist/types/plugin.d.cts.map +0 -1
  225. package/dist/types/plugin.d.mts +0 -35
  226. package/dist/types/plugin.d.mts.map +0 -1
  227. package/dist/types/plugin.mjs +0 -1
  228. package/dist/typescript/components/builtin-file.cjs +0 -63
  229. package/dist/typescript/components/builtin-file.d.cts +0 -34
  230. package/dist/typescript/components/builtin-file.d.cts.map +0 -1
  231. package/dist/typescript/components/builtin-file.d.mts +0 -34
  232. package/dist/typescript/components/builtin-file.d.mts.map +0 -1
  233. package/dist/typescript/components/builtin-file.mjs +0 -62
  234. package/dist/typescript/components/builtin-file.mjs.map +0 -1
  235. package/dist/typescript/components/class-declaration.cjs +0 -306
  236. package/dist/typescript/components/class-declaration.d.cts +0 -140
  237. package/dist/typescript/components/class-declaration.d.cts.map +0 -1
  238. package/dist/typescript/components/class-declaration.d.mts +0 -140
  239. package/dist/typescript/components/class-declaration.d.mts.map +0 -1
  240. package/dist/typescript/components/class-declaration.mjs +0 -300
  241. package/dist/typescript/components/class-declaration.mjs.map +0 -1
  242. package/dist/typescript/components/dynamic-import-statement.cjs +0 -26
  243. package/dist/typescript/components/dynamic-import-statement.d.cts +0 -32
  244. package/dist/typescript/components/dynamic-import-statement.d.cts.map +0 -1
  245. package/dist/typescript/components/dynamic-import-statement.d.mts +0 -32
  246. package/dist/typescript/components/dynamic-import-statement.d.mts.map +0 -1
  247. package/dist/typescript/components/dynamic-import-statement.mjs +0 -25
  248. package/dist/typescript/components/dynamic-import-statement.mjs.map +0 -1
  249. package/dist/typescript/components/entry-file.cjs +0 -43
  250. package/dist/typescript/components/entry-file.d.cts +0 -27
  251. package/dist/typescript/components/entry-file.d.cts.map +0 -1
  252. package/dist/typescript/components/entry-file.d.mts +0 -27
  253. package/dist/typescript/components/entry-file.d.mts.map +0 -1
  254. package/dist/typescript/components/entry-file.mjs +0 -41
  255. package/dist/typescript/components/entry-file.mjs.map +0 -1
  256. package/dist/typescript/components/index.cjs +0 -64
  257. package/dist/typescript/components/index.d.cts +0 -14
  258. package/dist/typescript/components/index.d.mts +0 -14
  259. package/dist/typescript/components/index.mjs +0 -15
  260. package/dist/typescript/components/interface-declaration.cjs +0 -239
  261. package/dist/typescript/components/interface-declaration.d.cts +0 -80
  262. package/dist/typescript/components/interface-declaration.d.cts.map +0 -1
  263. package/dist/typescript/components/interface-declaration.d.mts +0 -80
  264. package/dist/typescript/components/interface-declaration.d.mts.map +0 -1
  265. package/dist/typescript/components/interface-declaration.mjs +0 -235
  266. package/dist/typescript/components/interface-declaration.mjs.map +0 -1
  267. package/dist/typescript/components/object-declaration.cjs +0 -139
  268. package/dist/typescript/components/object-declaration.d.cts +0 -28
  269. package/dist/typescript/components/object-declaration.d.cts.map +0 -1
  270. package/dist/typescript/components/object-declaration.d.mts +0 -28
  271. package/dist/typescript/components/object-declaration.d.mts.map +0 -1
  272. package/dist/typescript/components/object-declaration.mjs +0 -137
  273. package/dist/typescript/components/object-declaration.mjs.map +0 -1
  274. package/dist/typescript/components/property-name.cjs +0 -32
  275. package/dist/typescript/components/property-name.d.cts +0 -23
  276. package/dist/typescript/components/property-name.d.cts.map +0 -1
  277. package/dist/typescript/components/property-name.d.mts +0 -23
  278. package/dist/typescript/components/property-name.d.mts.map +0 -1
  279. package/dist/typescript/components/property-name.mjs +0 -31
  280. package/dist/typescript/components/property-name.mjs.map +0 -1
  281. package/dist/typescript/components/record-expression.cjs +0 -13
  282. package/dist/typescript/components/record-expression.d.cts +0 -12
  283. package/dist/typescript/components/record-expression.d.cts.map +0 -1
  284. package/dist/typescript/components/record-expression.d.mts +0 -12
  285. package/dist/typescript/components/record-expression.d.mts.map +0 -1
  286. package/dist/typescript/components/record-expression.mjs +0 -12
  287. package/dist/typescript/components/record-expression.mjs.map +0 -1
  288. package/dist/typescript/components/tsdoc-reflection.cjs +0 -331
  289. package/dist/typescript/components/tsdoc-reflection.d.cts +0 -42
  290. package/dist/typescript/components/tsdoc-reflection.d.cts.map +0 -1
  291. package/dist/typescript/components/tsdoc-reflection.d.mts +0 -42
  292. package/dist/typescript/components/tsdoc-reflection.d.mts.map +0 -1
  293. package/dist/typescript/components/tsdoc-reflection.mjs +0 -325
  294. package/dist/typescript/components/tsdoc-reflection.mjs.map +0 -1
  295. package/dist/typescript/components/tsdoc.cjs +0 -497
  296. package/dist/typescript/components/tsdoc.d.cts +0 -161
  297. package/dist/typescript/components/tsdoc.d.cts.map +0 -1
  298. package/dist/typescript/components/tsdoc.d.mts +0 -161
  299. package/dist/typescript/components/tsdoc.d.mts.map +0 -1
  300. package/dist/typescript/components/tsdoc.mjs +0 -476
  301. package/dist/typescript/components/tsdoc.mjs.map +0 -1
  302. package/dist/typescript/components/type-declaration.cjs +0 -39
  303. package/dist/typescript/components/type-declaration.d.cts +0 -17
  304. package/dist/typescript/components/type-declaration.d.cts.map +0 -1
  305. package/dist/typescript/components/type-declaration.d.mts +0 -17
  306. package/dist/typescript/components/type-declaration.d.mts.map +0 -1
  307. package/dist/typescript/components/type-declaration.mjs +0 -38
  308. package/dist/typescript/components/type-declaration.mjs.map +0 -1
  309. package/dist/typescript/components/type-parameters.cjs +0 -83
  310. package/dist/typescript/components/type-parameters.d.cts +0 -23
  311. package/dist/typescript/components/type-parameters.d.cts.map +0 -1
  312. package/dist/typescript/components/type-parameters.d.mts +0 -23
  313. package/dist/typescript/components/type-parameters.d.mts.map +0 -1
  314. package/dist/typescript/components/type-parameters.mjs +0 -82
  315. package/dist/typescript/components/type-parameters.mjs.map +0 -1
  316. package/dist/typescript/components/typescript-file.cjs +0 -221
  317. package/dist/typescript/components/typescript-file.d.cts +0 -47
  318. package/dist/typescript/components/typescript-file.d.cts.map +0 -1
  319. package/dist/typescript/components/typescript-file.d.mts +0 -47
  320. package/dist/typescript/components/typescript-file.d.mts.map +0 -1
  321. package/dist/typescript/components/typescript-file.mjs +0 -218
  322. package/dist/typescript/components/typescript-file.mjs.map +0 -1
  323. package/dist/typescript/contexts/index.cjs +0 -4
  324. package/dist/typescript/contexts/index.d.cts +0 -2
  325. package/dist/typescript/contexts/index.d.mts +0 -2
  326. package/dist/typescript/contexts/index.mjs +0 -3
  327. package/dist/typescript/contexts/lexical-scope.cjs +0 -26
  328. package/dist/typescript/contexts/lexical-scope.d.cts +0 -14
  329. package/dist/typescript/contexts/lexical-scope.d.cts.map +0 -1
  330. package/dist/typescript/contexts/lexical-scope.d.mts +0 -14
  331. package/dist/typescript/contexts/lexical-scope.d.mts.map +0 -1
  332. package/dist/typescript/contexts/lexical-scope.mjs +0 -25
  333. package/dist/typescript/contexts/lexical-scope.mjs.map +0 -1
  334. package/dist/typescript/contexts/member-scope.cjs +0 -24
  335. package/dist/typescript/contexts/member-scope.d.cts +0 -19
  336. package/dist/typescript/contexts/member-scope.d.cts.map +0 -1
  337. package/dist/typescript/contexts/member-scope.d.mts +0 -19
  338. package/dist/typescript/contexts/member-scope.d.mts.map +0 -1
  339. package/dist/typescript/contexts/member-scope.mjs +0 -23
  340. package/dist/typescript/contexts/member-scope.mjs.map +0 -1
  341. package/dist/typescript/helpers/get-call-signature-props.cjs +0 -26
  342. package/dist/typescript/helpers/get-call-signature-props.d.cts +0 -14
  343. package/dist/typescript/helpers/get-call-signature-props.d.cts.map +0 -1
  344. package/dist/typescript/helpers/get-call-signature-props.d.mts +0 -14
  345. package/dist/typescript/helpers/get-call-signature-props.d.mts.map +0 -1
  346. package/dist/typescript/helpers/get-call-signature-props.mjs +0 -25
  347. package/dist/typescript/helpers/get-call-signature-props.mjs.map +0 -1
  348. package/dist/typescript/helpers/index.cjs +0 -6
  349. package/dist/typescript/helpers/index.d.cts +0 -3
  350. package/dist/typescript/helpers/index.d.mts +0 -3
  351. package/dist/typescript/helpers/index.mjs +0 -4
  352. package/dist/typescript/helpers/utilities.cjs +0 -15
  353. package/dist/typescript/helpers/utilities.d.cts +0 -11
  354. package/dist/typescript/helpers/utilities.d.cts.map +0 -1
  355. package/dist/typescript/helpers/utilities.d.mts +0 -11
  356. package/dist/typescript/helpers/utilities.d.mts.map +0 -1
  357. package/dist/typescript/helpers/utilities.mjs +0 -14
  358. package/dist/typescript/helpers/utilities.mjs.map +0 -1
  359. package/dist/typescript/index.cjs +0 -73
  360. package/dist/typescript/index.d.cts +0 -17
  361. package/dist/typescript/index.d.mts +0 -17
  362. package/dist/typescript/index.mjs +0 -21
  363. package/dist/yaml/components/index.cjs +0 -5
  364. package/dist/yaml/components/index.d.cts +0 -2
  365. package/dist/yaml/components/index.d.mts +0 -2
  366. package/dist/yaml/components/index.mjs +0 -3
  367. package/dist/yaml/components/yaml-file.cjs +0 -149
  368. package/dist/yaml/components/yaml-file.d.cts +0 -32
  369. package/dist/yaml/components/yaml-file.d.cts.map +0 -1
  370. package/dist/yaml/components/yaml-file.d.mts +0 -32
  371. package/dist/yaml/components/yaml-file.d.mts.map +0 -1
  372. package/dist/yaml/components/yaml-file.mjs +0 -147
  373. package/dist/yaml/components/yaml-file.mjs.map +0 -1
  374. package/dist/yaml/index.cjs +0 -6
  375. package/dist/yaml/index.d.cts +0 -2
  376. package/dist/yaml/index.d.mts +0 -2
  377. package/dist/yaml/index.mjs +0 -4
@@ -1,306 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
- const require_typescript_components_tsdoc = require('./tsdoc.cjs');
4
- const require_typescript_contexts_lexical_scope = require('../contexts/lexical-scope.cjs');
5
- require('../contexts/index.cjs');
6
- const require_typescript_contexts_member_scope = require('../contexts/member-scope.cjs');
7
- const require_typescript_helpers_get_call_signature_props = require('../helpers/get-call-signature-props.cjs');
8
- require('../helpers/index.cjs');
9
- const require_typescript_components_property_name = require('./property-name.cjs');
10
- const require_typescript_components_type_parameters = require('./type-parameters.cjs');
11
- let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
12
- let _alloy_js_core = require("@alloy-js/core");
13
- let _alloy_js_typescript = require("@alloy-js/typescript");
14
-
15
- //#region src/typescript/components/class-declaration.tsx
16
- /**
17
- * Props for the ClassDeclaration component, which represents a TypeScript class declaration
18
- */
19
- /**
20
- * Create a TypeScript class declaration.
21
- *
22
- * @example
23
- * ```tsx
24
- * const myPetRefkey = refkey();
25
- * const Animal = refkey();
26
- * const staticMember = refkey();
27
- * const instanceMember = refkey();
28
- *
29
- * <ClassDeclaration name="Animal" refkey={Animal}>
30
- * <ClassMember public static name="something" type="string" refkey={staticMember}>
31
- * "hello"
32
- * </ClassMember>
33
- * <ClassMember public name="kind" type="string" />
34
- * <ClassMember public name="name" type="string" refkey={instanceMember} />
35
- * <ClassConstructor parameters="name: string">
36
- * this.name = name;
37
- * </ClassConstructor>
38
- * </ClassDeclaration>
39
- *
40
- * <VarDeclaration const name="myPet" refkey={myPetRefkey}>
41
- * new {Animal}();
42
- * </VarDeclaration>
43
- *
44
- * {staticMember}; // Animal.something
45
- * <MemberReference path={[myPetRefkey, instanceMember]} /> // myPet.name
46
- * {memberRefkey(myPetRefkey, instanceMember)}
47
- * ```
48
- */
49
- function ClassDeclaration(props) {
50
- const extendsPart = props.extends && [" extends ", (0, _alloy_js_core_jsx_runtime.memo)(() => props.extends)];
51
- const implementsPart = props.implements && props.implements.length > 0 && [
52
- " ",
53
- "implements",
54
- " ",
55
- (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
56
- get each() {
57
- return props.implements;
58
- },
59
- comma: true,
60
- space: true,
61
- children: (implement) => implement
62
- })
63
- ];
64
- const sym = (0, _alloy_js_typescript.createTypeAndValueSymbol)(props.name, {
65
- refkeys: props.refkey,
66
- export: props.export,
67
- default: props.default,
68
- metadata: props.metadata,
69
- hasInstanceMembers: true,
70
- namePolicy: (0, _alloy_js_typescript.useTSNamePolicy)().for("class")
71
- });
72
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
73
- get when() {
74
- return Boolean(props.doc);
75
- },
76
- get children() {
77
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, { get heading() {
78
- return props.doc;
79
- } });
80
- }
81
- }), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.Declaration, {
82
- symbol: sym,
83
- get ["export"]() {
84
- return props.export;
85
- },
86
- get ["default"]() {
87
- return props.default;
88
- },
89
- get children() {
90
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_contexts_member_scope.MemberScope, {
91
- ownerSymbol: sym,
92
- get children() {
93
- return [
94
- (0, _alloy_js_core_jsx_runtime.memo)(() => props.abstract && _alloy_js_core.code`abstract `),
95
- " class ",
96
- (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Name, {}),
97
- (0, _alloy_js_core_jsx_runtime.memo)(() => (0, _alloy_js_core_jsx_runtime.memo)(() => !!props.typeParameters)() && (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_type_parameters.TypeParameters, { get parameters() {
98
- return props.typeParameters;
99
- } })),
100
- extendsPart,
101
- implementsPart,
102
- " ",
103
- (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Block, { get children() {
104
- return props.children;
105
- } })
106
- ];
107
- }
108
- });
109
- }
110
- })];
111
- }
112
- ClassDeclaration.TypeParameters = require_typescript_components_type_parameters.TypeParameters;
113
- /**
114
- * Generates a TypeScript class member declaration for the given reflection class.
115
- */
116
- /**
117
- * Generates a TypeScript class member declaration for the given reflection class.
118
- *
119
- * @param props - The properties of the class member, including its name, visibility, and other modifiers.
120
- * @returns A JSX element representing the class member declaration, which can be used within a ClassDeclaration component.
121
- */
122
- function ClassMember(props) {
123
- let tsFlags = _alloy_js_typescript.TSSymbolFlags.None;
124
- if (props.nullish) tsFlags |= _alloy_js_typescript.TSSymbolFlags.Nullish;
125
- const sym = (0, _alloy_js_typescript.createMemberSymbol)(props.name, props, {
126
- refkeys: props.refkey,
127
- tsFlags,
128
- namePolicy: (0, _alloy_js_typescript.useTSNamePolicy)().for("class-member-data")
129
- });
130
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
131
- get when() {
132
- return Boolean(props.doc);
133
- },
134
- get children() {
135
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, { get heading() {
136
- return props.doc;
137
- } });
138
- }
139
- }), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.MemberDeclaration, {
140
- symbol: sym,
141
- get children() {
142
- return [
143
- (0, _alloy_js_core_jsx_runtime.memo)(() => props.public && "public "),
144
- (0, _alloy_js_core_jsx_runtime.memo)(() => props.private && "private "),
145
- (0, _alloy_js_core_jsx_runtime.memo)(() => props.protected && "protected "),
146
- (0, _alloy_js_core_jsx_runtime.memo)(() => props.abstract && "abstract "),
147
- (0, _alloy_js_core_jsx_runtime.memo)(() => props.override && "override "),
148
- (0, _alloy_js_core_jsx_runtime.memo)(() => props.static && "static "),
149
- (0, _alloy_js_core_jsx_runtime.memo)(() => props.children)
150
- ];
151
- }
152
- })];
153
- }
154
- /**
155
- * Props for a class field, which is a specific type of class member that represents a property of the class.
156
- */
157
- /**
158
- * Generates a TypeScript class field declaration for the given reflection class.
159
- *
160
- * @param props - The properties of the class field, including its name, type, optionality, and other modifiers.
161
- * @returns A JSX element representing the class field declaration, which can be used within a ClassDeclaration component.
162
- */
163
- function ClassField(props) {
164
- const optionality = props.optional ? "?" : "";
165
- const typeSection = props.type && [
166
- optionality,
167
- ": ",
168
- (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeRefContext, { get children() {
169
- return props.type;
170
- } })
171
- ];
172
- const initializerSection = props.children && [" = ", (0, _alloy_js_core_jsx_runtime.memo)(() => props.children)];
173
- return (0, _alloy_js_core_jsx_runtime.createComponent)(ClassMember, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, {
174
- nullish: props.nullish ?? props.optional,
175
- get children() {
176
- return [
177
- (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, {
178
- get ["private"]() {
179
- return props.isPrivateMember;
180
- },
181
- get name() {
182
- return props.isPrivateMember ? props.name : void 0;
183
- }
184
- }),
185
- typeSection,
186
- initializerSection
187
- ];
188
- }
189
- }));
190
- }
191
- /**
192
- * Props for a class field, which is a specific type of class member that represents a property of the class.
193
- */
194
- /**
195
- * Generates a TypeScript class property setter declaration for the given reflection class.
196
- *
197
- * @param props - The properties of the class property, including its name, type, and other modifiers.
198
- * @returns A JSX element representing the class property setter declaration, which can be used within a ClassDeclaration component.
199
- */
200
- function ClassPropertySet(props) {
201
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(ClassMember, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, { get children() {
202
- return [
203
- "set ",
204
- (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, { get name() {
205
- return props.name;
206
- } }),
207
- (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_contexts_lexical_scope.LexicalScope, { get children() {
208
- return [
209
- (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.CallSignature, { get parameters() {
210
- return [{
211
- name: "value",
212
- type: (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeRefContext, { get children() {
213
- return props.type;
214
- } })
215
- }];
216
- } }),
217
- " ",
218
- (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Block, { get children() {
219
- return props.children;
220
- } })
221
- ];
222
- } })
223
- ];
224
- } }))];
225
- }
226
- /**
227
- * Generates a TypeScript class property getter declaration for the given reflection class.
228
- *
229
- * @param props - The properties of the class property, including its name, type, and other modifiers.
230
- * @returns A JSX element representing the class property getter declaration, which can be used within a ClassDeclaration component.
231
- */
232
- function ClassPropertyGet(props) {
233
- return (0, _alloy_js_core_jsx_runtime.createComponent)(ClassMember, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, { get children() {
234
- return [
235
- "get ",
236
- (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, { get name() {
237
- return props.name;
238
- } }),
239
- (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_contexts_lexical_scope.LexicalScope, { get children() {
240
- return [
241
- (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.CallSignature, { get returnType() {
242
- return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeRefContext, { get children() {
243
- return props.type;
244
- } });
245
- } }),
246
- " ",
247
- (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Block, { get children() {
248
- return props.children;
249
- } })
250
- ];
251
- } })
252
- ];
253
- } }));
254
- }
255
- /**
256
- * Props for a class method, which is a specific type of class member that represents a function defined within the class.
257
- */
258
- /**
259
- * Generates a TypeScript class method declaration for the given reflection class.
260
- *
261
- * @param props - The properties of the class method, including its name, visibility, and other modifiers.
262
- * @returns A JSX element representing the class method declaration, which can be used within a ClassDeclaration component.
263
- */
264
- function ClassMethod(props) {
265
- const callProps = require_typescript_helpers_get_call_signature_props.getCallSignatureProps(props);
266
- const [_, rest] = (0, _alloy_js_core.splitProps)(props, ["doc"]);
267
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
268
- get when() {
269
- return Boolean(props.doc);
270
- },
271
- get children() {
272
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, {
273
- get heading() {
274
- return props.doc;
275
- },
276
- get children() {
277
- return (0, _alloy_js_core_jsx_runtime.memo)(() => !!Array.isArray(rest.parameters))() && (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocParams, { get parameters() {
278
- return rest.parameters;
279
- } });
280
- }
281
- });
282
- }
283
- }), (0, _alloy_js_core_jsx_runtime.createComponent)(ClassMember, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, { get children() {
284
- return [
285
- (0, _alloy_js_core_jsx_runtime.memo)(() => props.async && "async "),
286
- (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, {}),
287
- (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_contexts_lexical_scope.LexicalScope, { get children() {
288
- return [
289
- (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.CallSignature, callProps),
290
- " ",
291
- (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Block, { get children() {
292
- return props.children;
293
- } })
294
- ];
295
- } })
296
- ];
297
- } }))];
298
- }
299
-
300
- //#endregion
301
- exports.ClassDeclaration = ClassDeclaration;
302
- exports.ClassField = ClassField;
303
- exports.ClassMember = ClassMember;
304
- exports.ClassMethod = ClassMethod;
305
- exports.ClassPropertyGet = ClassPropertyGet;
306
- exports.ClassPropertySet = ClassPropertySet;
@@ -1,140 +0,0 @@
1
- import { TypeParameters } from "./type-parameters.cjs";
2
- import { Children, Namekey, Refkey } from "@alloy-js/core";
3
- import { CallSignatureProps, CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
4
-
5
- //#region src/typescript/components/class-declaration.d.ts
6
- /**
7
- * Props for the ClassDeclaration component, which represents a TypeScript class declaration
8
- */
9
- interface ClassDeclarationProps extends CommonDeclarationProps {
10
- /**
11
- * An indication of whether this class is abstract
12
- */
13
- abstract?: boolean;
14
- /**
15
- * An optional class that this class extends. This will be rendered as an `extends` clause in the class declaration
16
- */
17
- extends?: Children;
18
- /**
19
- * Optional interfaces that this class implements. This will be rendered as an `implements` clause in the class declaration
20
- */
21
- implements?: Children[];
22
- /**
23
- * The generic type parameters of the class.
24
- */
25
- typeParameters?: TypeParameterDescriptor[] | string[];
26
- }
27
- /**
28
- * Create a TypeScript class declaration.
29
- *
30
- * @example
31
- * ```tsx
32
- * const myPetRefkey = refkey();
33
- * const Animal = refkey();
34
- * const staticMember = refkey();
35
- * const instanceMember = refkey();
36
- *
37
- * <ClassDeclaration name="Animal" refkey={Animal}>
38
- * <ClassMember public static name="something" type="string" refkey={staticMember}>
39
- * "hello"
40
- * </ClassMember>
41
- * <ClassMember public name="kind" type="string" />
42
- * <ClassMember public name="name" type="string" refkey={instanceMember} />
43
- * <ClassConstructor parameters="name: string">
44
- * this.name = name;
45
- * </ClassConstructor>
46
- * </ClassDeclaration>
47
- *
48
- * <VarDeclaration const name="myPet" refkey={myPetRefkey}>
49
- * new {Animal}();
50
- * </VarDeclaration>
51
- *
52
- * {staticMember}; // Animal.something
53
- * <MemberReference path={[myPetRefkey, instanceMember]} /> // myPet.name
54
- * {memberRefkey(myPetRefkey, instanceMember)}
55
- * ```
56
- */
57
- declare function ClassDeclaration(props: ClassDeclarationProps): Children;
58
- declare namespace ClassDeclaration {
59
- var TypeParameters: typeof TypeParameters;
60
- }
61
- /**
62
- * Generates a TypeScript class member declaration for the given reflection class.
63
- */
64
- interface ClassMemberProps {
65
- name: string | Namekey;
66
- refkey?: Refkey;
67
- public?: boolean;
68
- private?: boolean;
69
- protected?: boolean;
70
- jsPrivate?: boolean;
71
- static?: boolean;
72
- abstract?: boolean;
73
- children?: Children;
74
- doc?: Children;
75
- nullish?: boolean;
76
- override?: boolean;
77
- }
78
- /**
79
- * Generates a TypeScript class member declaration for the given reflection class.
80
- *
81
- * @param props - The properties of the class member, including its name, visibility, and other modifiers.
82
- * @returns A JSX element representing the class member declaration, which can be used within a ClassDeclaration component.
83
- */
84
- declare function ClassMember(props: ClassMemberProps): Children;
85
- /**
86
- * Props for a class field, which is a specific type of class member that represents a property of the class.
87
- */
88
- interface ClassFieldProps extends ClassMemberProps {
89
- name: string;
90
- type?: Children;
91
- optional?: boolean;
92
- children?: Children;
93
- isPrivateMember?: boolean;
94
- }
95
- /**
96
- * Generates a TypeScript class field declaration for the given reflection class.
97
- *
98
- * @param props - The properties of the class field, including its name, type, optionality, and other modifiers.
99
- * @returns A JSX element representing the class field declaration, which can be used within a ClassDeclaration component.
100
- */
101
- declare function ClassField(props: ClassFieldProps): Children;
102
- /**
103
- * Props for a class field, which is a specific type of class member that represents a property of the class.
104
- */
105
- interface ClassPropertyProps extends ClassMemberProps {
106
- name: string;
107
- type?: Children;
108
- children?: Children;
109
- }
110
- /**
111
- * Generates a TypeScript class property setter declaration for the given reflection class.
112
- *
113
- * @param props - The properties of the class property, including its name, type, and other modifiers.
114
- * @returns A JSX element representing the class property setter declaration, which can be used within a ClassDeclaration component.
115
- */
116
- declare function ClassPropertySet(props: ClassPropertyProps): Children;
117
- /**
118
- * Generates a TypeScript class property getter declaration for the given reflection class.
119
- *
120
- * @param props - The properties of the class property, including its name, type, and other modifiers.
121
- * @returns A JSX element representing the class property getter declaration, which can be used within a ClassDeclaration component.
122
- */
123
- declare function ClassPropertyGet(props: ClassPropertyProps): Children;
124
- /**
125
- * Props for a class method, which is a specific type of class member that represents a function defined within the class.
126
- */
127
- interface ClassMethodProps extends ClassMemberProps, CallSignatureProps {
128
- async?: boolean;
129
- children?: Children;
130
- }
131
- /**
132
- * Generates a TypeScript class method declaration for the given reflection class.
133
- *
134
- * @param props - The properties of the class method, including its name, visibility, and other modifiers.
135
- * @returns A JSX element representing the class method declaration, which can be used within a ClassDeclaration component.
136
- */
137
- declare function ClassMethod(props: ClassMethodProps): Children;
138
- //#endregion
139
- export { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet };
140
- //# sourceMappingURL=class-declaration.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"class-declaration.d.cts","names":[],"sources":["../../../src/typescript/components/class-declaration.tsx"],"mappings":";;;;;;;;UAoDiB,qBAAA,SAA8B,sBAAA;EAAR;;;EAIrC,QAAA;EAeiB;;;EAVjB,OAAA,GAAU,QAAA;EATmC;;;EAc7C,UAAA,GAAa,QAAA;EAAb;;;EAKA,cAAA,GAAiB,uBAAA;AAAA;;AAiCnB;;;;;;;;;;;;;;AA4CA;;;;;;;;;;;;;;;iBA5CgB,gBAAA,CAAiB,KAAA,EAAO,qBAAA,GAAqB,QAAA;AAAA,kBAA7C,gBAAA;EAAA,2BAAgB,cAAA;AAAA;;;;UA4Cf,gBAAA;EACf,IAAA,WAAe,OAAA;EACf,MAAA,GAAS,MAAA;EACT,MAAA;EACA,OAAA;EACA,SAAA;EACA,SAAA;EACA,MAAA;EACA,QAAA;EACA,QAAA,GAAW,QAAA;EACX,GAAA,GAAM,QAAA;EACN,OAAA;EACA,QAAA;AAAA;AA0CF;;;;;;AAAA,iBAjCgB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,QAAA;;;;UAiClC,eAAA,SAAwB,gBAAA;EACvC,IAAA;EACA,IAAA,GAAO,QAAA;EACP,QAAA;EACA,QAAA,GAAW,QAAA;EACX,eAAA;AAAA;;AASF;;;;;iBAAgB,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,QAAA;;;;UAyBhC,kBAAA,SAA2B,gBAAA;EAC1C,IAAA;EACA,IAAA,GAAO,QAAA;EACP,QAAA,GAAW,QAAA;AAAA;;;;;;;iBASG,gBAAA,CAAiB,KAAA,EAAO,kBAAA,GAAkB,QAAA;;;;;AAA1D;;iBA4BgB,gBAAA,CAAiB,KAAA,EAAO,kBAAA,GAAkB,QAAA;;;;UAkBzC,gBAAA,SAAyB,gBAAA,EAAkB,kBAAA;EAC1D,KAAA;EACA,QAAA,GAAW,QAAA;AAAA;;;;;;;iBASG,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,QAAA"}
@@ -1,140 +0,0 @@
1
- import { TypeParameters } from "./type-parameters.mjs";
2
- import { Children, Namekey, Refkey } from "@alloy-js/core";
3
- import { CallSignatureProps, CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
4
-
5
- //#region src/typescript/components/class-declaration.d.ts
6
- /**
7
- * Props for the ClassDeclaration component, which represents a TypeScript class declaration
8
- */
9
- interface ClassDeclarationProps extends CommonDeclarationProps {
10
- /**
11
- * An indication of whether this class is abstract
12
- */
13
- abstract?: boolean;
14
- /**
15
- * An optional class that this class extends. This will be rendered as an `extends` clause in the class declaration
16
- */
17
- extends?: Children;
18
- /**
19
- * Optional interfaces that this class implements. This will be rendered as an `implements` clause in the class declaration
20
- */
21
- implements?: Children[];
22
- /**
23
- * The generic type parameters of the class.
24
- */
25
- typeParameters?: TypeParameterDescriptor[] | string[];
26
- }
27
- /**
28
- * Create a TypeScript class declaration.
29
- *
30
- * @example
31
- * ```tsx
32
- * const myPetRefkey = refkey();
33
- * const Animal = refkey();
34
- * const staticMember = refkey();
35
- * const instanceMember = refkey();
36
- *
37
- * <ClassDeclaration name="Animal" refkey={Animal}>
38
- * <ClassMember public static name="something" type="string" refkey={staticMember}>
39
- * "hello"
40
- * </ClassMember>
41
- * <ClassMember public name="kind" type="string" />
42
- * <ClassMember public name="name" type="string" refkey={instanceMember} />
43
- * <ClassConstructor parameters="name: string">
44
- * this.name = name;
45
- * </ClassConstructor>
46
- * </ClassDeclaration>
47
- *
48
- * <VarDeclaration const name="myPet" refkey={myPetRefkey}>
49
- * new {Animal}();
50
- * </VarDeclaration>
51
- *
52
- * {staticMember}; // Animal.something
53
- * <MemberReference path={[myPetRefkey, instanceMember]} /> // myPet.name
54
- * {memberRefkey(myPetRefkey, instanceMember)}
55
- * ```
56
- */
57
- declare function ClassDeclaration(props: ClassDeclarationProps): Children;
58
- declare namespace ClassDeclaration {
59
- var TypeParameters: typeof TypeParameters;
60
- }
61
- /**
62
- * Generates a TypeScript class member declaration for the given reflection class.
63
- */
64
- interface ClassMemberProps {
65
- name: string | Namekey;
66
- refkey?: Refkey;
67
- public?: boolean;
68
- private?: boolean;
69
- protected?: boolean;
70
- jsPrivate?: boolean;
71
- static?: boolean;
72
- abstract?: boolean;
73
- children?: Children;
74
- doc?: Children;
75
- nullish?: boolean;
76
- override?: boolean;
77
- }
78
- /**
79
- * Generates a TypeScript class member declaration for the given reflection class.
80
- *
81
- * @param props - The properties of the class member, including its name, visibility, and other modifiers.
82
- * @returns A JSX element representing the class member declaration, which can be used within a ClassDeclaration component.
83
- */
84
- declare function ClassMember(props: ClassMemberProps): Children;
85
- /**
86
- * Props for a class field, which is a specific type of class member that represents a property of the class.
87
- */
88
- interface ClassFieldProps extends ClassMemberProps {
89
- name: string;
90
- type?: Children;
91
- optional?: boolean;
92
- children?: Children;
93
- isPrivateMember?: boolean;
94
- }
95
- /**
96
- * Generates a TypeScript class field declaration for the given reflection class.
97
- *
98
- * @param props - The properties of the class field, including its name, type, optionality, and other modifiers.
99
- * @returns A JSX element representing the class field declaration, which can be used within a ClassDeclaration component.
100
- */
101
- declare function ClassField(props: ClassFieldProps): Children;
102
- /**
103
- * Props for a class field, which is a specific type of class member that represents a property of the class.
104
- */
105
- interface ClassPropertyProps extends ClassMemberProps {
106
- name: string;
107
- type?: Children;
108
- children?: Children;
109
- }
110
- /**
111
- * Generates a TypeScript class property setter declaration for the given reflection class.
112
- *
113
- * @param props - The properties of the class property, including its name, type, and other modifiers.
114
- * @returns A JSX element representing the class property setter declaration, which can be used within a ClassDeclaration component.
115
- */
116
- declare function ClassPropertySet(props: ClassPropertyProps): Children;
117
- /**
118
- * Generates a TypeScript class property getter declaration for the given reflection class.
119
- *
120
- * @param props - The properties of the class property, including its name, type, and other modifiers.
121
- * @returns A JSX element representing the class property getter declaration, which can be used within a ClassDeclaration component.
122
- */
123
- declare function ClassPropertyGet(props: ClassPropertyProps): Children;
124
- /**
125
- * Props for a class method, which is a specific type of class member that represents a function defined within the class.
126
- */
127
- interface ClassMethodProps extends ClassMemberProps, CallSignatureProps {
128
- async?: boolean;
129
- children?: Children;
130
- }
131
- /**
132
- * Generates a TypeScript class method declaration for the given reflection class.
133
- *
134
- * @param props - The properties of the class method, including its name, visibility, and other modifiers.
135
- * @returns A JSX element representing the class method declaration, which can be used within a ClassDeclaration component.
136
- */
137
- declare function ClassMethod(props: ClassMethodProps): Children;
138
- //#endregion
139
- export { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet };
140
- //# sourceMappingURL=class-declaration.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"class-declaration.d.mts","names":[],"sources":["../../../src/typescript/components/class-declaration.tsx"],"mappings":";;;;;;;;UAoDiB,qBAAA,SAA8B,sBAAA;EAAR;;;EAIrC,QAAA;EAeiB;;;EAVjB,OAAA,GAAU,QAAA;EATmC;;;EAc7C,UAAA,GAAa,QAAA;EAAb;;;EAKA,cAAA,GAAiB,uBAAA;AAAA;;AAiCnB;;;;;;;;;;;;;;AA4CA;;;;;;;;;;;;;;;iBA5CgB,gBAAA,CAAiB,KAAA,EAAO,qBAAA,GAAqB,QAAA;AAAA,kBAA7C,gBAAA;EAAA,2BAAgB,cAAA;AAAA;;;;UA4Cf,gBAAA;EACf,IAAA,WAAe,OAAA;EACf,MAAA,GAAS,MAAA;EACT,MAAA;EACA,OAAA;EACA,SAAA;EACA,SAAA;EACA,MAAA;EACA,QAAA;EACA,QAAA,GAAW,QAAA;EACX,GAAA,GAAM,QAAA;EACN,OAAA;EACA,QAAA;AAAA;AA0CF;;;;;;AAAA,iBAjCgB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,QAAA;;;;UAiClC,eAAA,SAAwB,gBAAA;EACvC,IAAA;EACA,IAAA,GAAO,QAAA;EACP,QAAA;EACA,QAAA,GAAW,QAAA;EACX,eAAA;AAAA;;AASF;;;;;iBAAgB,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,QAAA;;;;UAyBhC,kBAAA,SAA2B,gBAAA;EAC1C,IAAA;EACA,IAAA,GAAO,QAAA;EACP,QAAA,GAAW,QAAA;AAAA;;;;;;;iBASG,gBAAA,CAAiB,KAAA,EAAO,kBAAA,GAAkB,QAAA;;;;;AAA1D;;iBA4BgB,gBAAA,CAAiB,KAAA,EAAO,kBAAA,GAAkB,QAAA;;;;UAkBzC,gBAAA,SAAyB,gBAAA,EAAkB,kBAAA;EAC1D,KAAA;EACA,QAAA,GAAW,QAAA;AAAA;;;;;;;iBASG,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,QAAA"}