@powerlines/plugin-alloy 0.25.32 → 0.25.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/README.md +1 -1
  2. package/dist/core/components/output.cjs +17 -10
  3. package/dist/core/components/output.mjs +18 -12
  4. package/dist/core/components/single-line-comment.cjs +6 -4
  5. package/dist/core/components/single-line-comment.mjs +7 -6
  6. package/dist/core/components/source-file.cjs +10 -6
  7. package/dist/core/components/source-file.mjs +11 -8
  8. package/dist/core/components/spacing.cjs +6 -4
  9. package/dist/core/components/spacing.mjs +7 -6
  10. package/dist/core/contexts/context.mjs +1 -2
  11. package/dist/core/contexts/meta.mjs +1 -2
  12. package/dist/core/contexts/reflection.mjs +1 -2
  13. package/dist/core/helpers/code.mjs +1 -2
  14. package/dist/helpers/capnp.mjs +1 -2
  15. package/dist/helpers/create-builtin.mjs +1 -2
  16. package/dist/helpers/refkey.mjs +1 -2
  17. package/dist/helpers/typescript.mjs +1 -2
  18. package/dist/index.cjs +8 -18
  19. package/dist/index.mjs +8 -19
  20. package/dist/markdown/components/front-matter.cjs +9 -7
  21. package/dist/markdown/components/front-matter.mjs +10 -9
  22. package/dist/markdown/components/markdown-file.cjs +76 -44
  23. package/dist/markdown/components/markdown-file.mjs +77 -46
  24. package/dist/markdown/components/markdown-table.cjs +49 -28
  25. package/dist/markdown/components/markdown-table.mjs +50 -30
  26. package/dist/markdown/contexts/markdown-table.mjs +1 -2
  27. package/dist/render.cjs +3 -3
  28. package/dist/render.mjs +4 -5
  29. package/dist/typescript/components/builtin-file.cjs +29 -19
  30. package/dist/typescript/components/builtin-file.mjs +30 -21
  31. package/dist/typescript/components/class-declaration.cjs +165 -100
  32. package/dist/typescript/components/class-declaration.mjs +166 -102
  33. package/dist/typescript/components/dynamic-import-statement.cjs +2 -6
  34. package/dist/typescript/components/dynamic-import-statement.mjs +3 -8
  35. package/dist/typescript/components/entry-file.cjs +9 -6
  36. package/dist/typescript/components/entry-file.mjs +10 -8
  37. package/dist/typescript/components/infrastructure-file.cjs +9 -6
  38. package/dist/typescript/components/infrastructure-file.mjs +10 -8
  39. package/dist/typescript/components/interface-declaration.cjs +121 -70
  40. package/dist/typescript/components/interface-declaration.mjs +122 -72
  41. package/dist/typescript/components/object-declaration.cjs +76 -44
  42. package/dist/typescript/components/object-declaration.mjs +77 -46
  43. package/dist/typescript/components/property-name.cjs +3 -3
  44. package/dist/typescript/components/property-name.mjs +4 -5
  45. package/dist/typescript/components/record-expression.mjs +1 -2
  46. package/dist/typescript/components/tsdoc-reflection.cjs +225 -104
  47. package/dist/typescript/components/tsdoc-reflection.mjs +226 -106
  48. package/dist/typescript/components/tsdoc.cjs +255 -160
  49. package/dist/typescript/components/tsdoc.mjs +256 -162
  50. package/dist/typescript/components/type-declaration.cjs +20 -15
  51. package/dist/typescript/components/type-declaration.mjs +21 -17
  52. package/dist/typescript/components/type-parameters.cjs +55 -29
  53. package/dist/typescript/components/type-parameters.mjs +56 -31
  54. package/dist/typescript/components/typescript-file.cjs +146 -80
  55. package/dist/typescript/components/typescript-file.mjs +148 -83
  56. package/dist/typescript/contexts/lexical-scope.cjs +5 -3
  57. package/dist/typescript/contexts/lexical-scope.mjs +6 -5
  58. package/dist/typescript/contexts/member-scope.cjs +5 -3
  59. package/dist/typescript/contexts/member-scope.mjs +6 -5
  60. package/dist/typescript/helpers/get-call-signature-props.mjs +1 -2
  61. package/dist/typescript/helpers/utilities.mjs +1 -2
  62. package/dist/yaml/components/yaml-file.cjs +92 -47
  63. package/dist/yaml/components/yaml-file.mjs +93 -49
  64. package/package.json +16 -17
  65. package/dist/core/components/index.d.cts +0 -5
  66. package/dist/core/components/index.d.mts +0 -5
  67. package/dist/core/components/output.d.cts +0 -24
  68. package/dist/core/components/output.d.cts.map +0 -1
  69. package/dist/core/components/output.d.mts +0 -24
  70. package/dist/core/components/output.d.mts.map +0 -1
  71. package/dist/core/components/output.mjs.map +0 -1
  72. package/dist/core/components/single-line-comment.d.cts +0 -23
  73. package/dist/core/components/single-line-comment.d.cts.map +0 -1
  74. package/dist/core/components/single-line-comment.d.mts +0 -23
  75. package/dist/core/components/single-line-comment.d.mts.map +0 -1
  76. package/dist/core/components/single-line-comment.mjs.map +0 -1
  77. package/dist/core/components/source-file.d.cts +0 -33
  78. package/dist/core/components/source-file.d.cts.map +0 -1
  79. package/dist/core/components/source-file.d.mts +0 -33
  80. package/dist/core/components/source-file.d.mts.map +0 -1
  81. package/dist/core/components/source-file.mjs.map +0 -1
  82. package/dist/core/components/spacing.d.cts +0 -24
  83. package/dist/core/components/spacing.d.cts.map +0 -1
  84. package/dist/core/components/spacing.d.mts +0 -24
  85. package/dist/core/components/spacing.d.mts.map +0 -1
  86. package/dist/core/components/spacing.mjs.map +0 -1
  87. package/dist/core/contexts/context.d.cts +0 -29
  88. package/dist/core/contexts/context.d.cts.map +0 -1
  89. package/dist/core/contexts/context.d.mts +0 -29
  90. package/dist/core/contexts/context.d.mts.map +0 -1
  91. package/dist/core/contexts/context.mjs.map +0 -1
  92. package/dist/core/contexts/index.d.cts +0 -4
  93. package/dist/core/contexts/index.d.mts +0 -4
  94. package/dist/core/contexts/meta.d.cts +0 -48
  95. package/dist/core/contexts/meta.d.cts.map +0 -1
  96. package/dist/core/contexts/meta.d.mts +0 -48
  97. package/dist/core/contexts/meta.d.mts.map +0 -1
  98. package/dist/core/contexts/meta.mjs.map +0 -1
  99. package/dist/core/contexts/reflection.d.cts +0 -53
  100. package/dist/core/contexts/reflection.d.cts.map +0 -1
  101. package/dist/core/contexts/reflection.d.mts +0 -53
  102. package/dist/core/contexts/reflection.d.mts.map +0 -1
  103. package/dist/core/contexts/reflection.mjs.map +0 -1
  104. package/dist/core/helpers/code.d.cts +0 -29
  105. package/dist/core/helpers/code.d.cts.map +0 -1
  106. package/dist/core/helpers/code.d.mts +0 -29
  107. package/dist/core/helpers/code.d.mts.map +0 -1
  108. package/dist/core/helpers/code.mjs.map +0 -1
  109. package/dist/core/helpers/index.d.cts +0 -2
  110. package/dist/core/helpers/index.d.mts +0 -2
  111. package/dist/core/index.d.cts +0 -9
  112. package/dist/core/index.d.mts +0 -9
  113. package/dist/helpers/capnp.d.cts +0 -87
  114. package/dist/helpers/capnp.d.cts.map +0 -1
  115. package/dist/helpers/capnp.d.mts +0 -87
  116. package/dist/helpers/capnp.d.mts.map +0 -1
  117. package/dist/helpers/capnp.mjs.map +0 -1
  118. package/dist/helpers/create-builtin.d.cts +0 -16
  119. package/dist/helpers/create-builtin.d.cts.map +0 -1
  120. package/dist/helpers/create-builtin.d.mts +0 -16
  121. package/dist/helpers/create-builtin.d.mts.map +0 -1
  122. package/dist/helpers/create-builtin.mjs.map +0 -1
  123. package/dist/helpers/index.d.cts +0 -5
  124. package/dist/helpers/index.d.mts +0 -5
  125. package/dist/helpers/refkey.d.cts +0 -13
  126. package/dist/helpers/refkey.d.cts.map +0 -1
  127. package/dist/helpers/refkey.d.mts +0 -13
  128. package/dist/helpers/refkey.d.mts.map +0 -1
  129. package/dist/helpers/refkey.mjs.map +0 -1
  130. package/dist/helpers/typescript.d.cts +0 -26
  131. package/dist/helpers/typescript.d.cts.map +0 -1
  132. package/dist/helpers/typescript.d.mts +0 -26
  133. package/dist/helpers/typescript.d.mts.map +0 -1
  134. package/dist/helpers/typescript.mjs.map +0 -1
  135. package/dist/index.d.cts +0 -19
  136. package/dist/index.d.cts.map +0 -1
  137. package/dist/index.d.mts +0 -19
  138. package/dist/index.d.mts.map +0 -1
  139. package/dist/index.mjs.map +0 -1
  140. package/dist/markdown/components/front-matter.d.cts +0 -16
  141. package/dist/markdown/components/front-matter.d.cts.map +0 -1
  142. package/dist/markdown/components/front-matter.d.mts +0 -16
  143. package/dist/markdown/components/front-matter.d.mts.map +0 -1
  144. package/dist/markdown/components/front-matter.mjs.map +0 -1
  145. package/dist/markdown/components/index.d.cts +0 -4
  146. package/dist/markdown/components/index.d.mts +0 -4
  147. package/dist/markdown/components/markdown-file.d.cts +0 -29
  148. package/dist/markdown/components/markdown-file.d.cts.map +0 -1
  149. package/dist/markdown/components/markdown-file.d.mts +0 -29
  150. package/dist/markdown/components/markdown-file.d.mts.map +0 -1
  151. package/dist/markdown/components/markdown-file.mjs.map +0 -1
  152. package/dist/markdown/components/markdown-table.d.cts +0 -28
  153. package/dist/markdown/components/markdown-table.d.cts.map +0 -1
  154. package/dist/markdown/components/markdown-table.d.mts +0 -28
  155. package/dist/markdown/components/markdown-table.d.mts.map +0 -1
  156. package/dist/markdown/components/markdown-table.mjs.map +0 -1
  157. package/dist/markdown/contexts/index.d.cts +0 -2
  158. package/dist/markdown/contexts/index.d.mts +0 -2
  159. package/dist/markdown/contexts/markdown-table.d.cts +0 -38
  160. package/dist/markdown/contexts/markdown-table.d.cts.map +0 -1
  161. package/dist/markdown/contexts/markdown-table.d.mts +0 -38
  162. package/dist/markdown/contexts/markdown-table.d.mts.map +0 -1
  163. package/dist/markdown/contexts/markdown-table.mjs.map +0 -1
  164. package/dist/markdown/index.d.cts +0 -5
  165. package/dist/markdown/index.d.mts +0 -5
  166. package/dist/render.d.cts +0 -38
  167. package/dist/render.d.cts.map +0 -1
  168. package/dist/render.d.mts +0 -38
  169. package/dist/render.d.mts.map +0 -1
  170. package/dist/render.mjs.map +0 -1
  171. package/dist/types/components.d.cts +0 -142
  172. package/dist/types/components.d.cts.map +0 -1
  173. package/dist/types/components.d.mts +0 -142
  174. package/dist/types/components.d.mts.map +0 -1
  175. package/dist/types/index.d.cts +0 -3
  176. package/dist/types/index.d.mts +0 -3
  177. package/dist/types/plugin.d.cts +0 -39
  178. package/dist/types/plugin.d.cts.map +0 -1
  179. package/dist/types/plugin.d.mts +0 -39
  180. package/dist/types/plugin.d.mts.map +0 -1
  181. package/dist/typescript/components/builtin-file.d.cts +0 -35
  182. package/dist/typescript/components/builtin-file.d.cts.map +0 -1
  183. package/dist/typescript/components/builtin-file.d.mts +0 -35
  184. package/dist/typescript/components/builtin-file.d.mts.map +0 -1
  185. package/dist/typescript/components/builtin-file.mjs.map +0 -1
  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.map +0 -1
  191. package/dist/typescript/components/dynamic-import-statement.d.cts +0 -33
  192. package/dist/typescript/components/dynamic-import-statement.d.cts.map +0 -1
  193. package/dist/typescript/components/dynamic-import-statement.d.mts +0 -33
  194. package/dist/typescript/components/dynamic-import-statement.d.mts.map +0 -1
  195. package/dist/typescript/components/dynamic-import-statement.mjs.map +0 -1
  196. package/dist/typescript/components/entry-file.d.cts +0 -28
  197. package/dist/typescript/components/entry-file.d.cts.map +0 -1
  198. package/dist/typescript/components/entry-file.d.mts +0 -28
  199. package/dist/typescript/components/entry-file.d.mts.map +0 -1
  200. package/dist/typescript/components/entry-file.mjs.map +0 -1
  201. package/dist/typescript/components/index.d.cts +0 -15
  202. package/dist/typescript/components/index.d.mts +0 -15
  203. package/dist/typescript/components/infrastructure-file.d.cts +0 -21
  204. package/dist/typescript/components/infrastructure-file.d.cts.map +0 -1
  205. package/dist/typescript/components/infrastructure-file.d.mts +0 -21
  206. package/dist/typescript/components/infrastructure-file.d.mts.map +0 -1
  207. package/dist/typescript/components/infrastructure-file.mjs.map +0 -1
  208. package/dist/typescript/components/interface-declaration.d.cts +0 -86
  209. package/dist/typescript/components/interface-declaration.d.cts.map +0 -1
  210. package/dist/typescript/components/interface-declaration.d.mts +0 -86
  211. package/dist/typescript/components/interface-declaration.d.mts.map +0 -1
  212. package/dist/typescript/components/interface-declaration.mjs.map +0 -1
  213. package/dist/typescript/components/object-declaration.d.cts +0 -30
  214. package/dist/typescript/components/object-declaration.d.cts.map +0 -1
  215. package/dist/typescript/components/object-declaration.d.mts +0 -30
  216. package/dist/typescript/components/object-declaration.d.mts.map +0 -1
  217. package/dist/typescript/components/object-declaration.mjs.map +0 -1
  218. package/dist/typescript/components/property-name.d.cts +0 -24
  219. package/dist/typescript/components/property-name.d.cts.map +0 -1
  220. package/dist/typescript/components/property-name.d.mts +0 -24
  221. package/dist/typescript/components/property-name.d.mts.map +0 -1
  222. package/dist/typescript/components/property-name.mjs.map +0 -1
  223. package/dist/typescript/components/record-expression.d.cts +0 -13
  224. package/dist/typescript/components/record-expression.d.cts.map +0 -1
  225. package/dist/typescript/components/record-expression.d.mts +0 -13
  226. package/dist/typescript/components/record-expression.d.mts.map +0 -1
  227. package/dist/typescript/components/record-expression.mjs.map +0 -1
  228. package/dist/typescript/components/tsdoc-reflection.d.cts +0 -44
  229. package/dist/typescript/components/tsdoc-reflection.d.cts.map +0 -1
  230. package/dist/typescript/components/tsdoc-reflection.d.mts +0 -44
  231. package/dist/typescript/components/tsdoc-reflection.d.mts.map +0 -1
  232. package/dist/typescript/components/tsdoc-reflection.mjs.map +0 -1
  233. package/dist/typescript/components/tsdoc.d.cts +0 -164
  234. package/dist/typescript/components/tsdoc.d.cts.map +0 -1
  235. package/dist/typescript/components/tsdoc.d.mts +0 -164
  236. package/dist/typescript/components/tsdoc.d.mts.map +0 -1
  237. package/dist/typescript/components/tsdoc.mjs.map +0 -1
  238. package/dist/typescript/components/type-declaration.d.cts +0 -18
  239. package/dist/typescript/components/type-declaration.d.cts.map +0 -1
  240. package/dist/typescript/components/type-declaration.d.mts +0 -18
  241. package/dist/typescript/components/type-declaration.d.mts.map +0 -1
  242. package/dist/typescript/components/type-declaration.mjs.map +0 -1
  243. package/dist/typescript/components/type-parameters.d.cts +0 -24
  244. package/dist/typescript/components/type-parameters.d.cts.map +0 -1
  245. package/dist/typescript/components/type-parameters.d.mts +0 -24
  246. package/dist/typescript/components/type-parameters.d.mts.map +0 -1
  247. package/dist/typescript/components/type-parameters.mjs.map +0 -1
  248. package/dist/typescript/components/typescript-file.d.cts +0 -50
  249. package/dist/typescript/components/typescript-file.d.cts.map +0 -1
  250. package/dist/typescript/components/typescript-file.d.mts +0 -50
  251. package/dist/typescript/components/typescript-file.d.mts.map +0 -1
  252. package/dist/typescript/components/typescript-file.mjs.map +0 -1
  253. package/dist/typescript/contexts/index.d.cts +0 -2
  254. package/dist/typescript/contexts/index.d.mts +0 -2
  255. package/dist/typescript/contexts/lexical-scope.d.cts +0 -17
  256. package/dist/typescript/contexts/lexical-scope.d.cts.map +0 -1
  257. package/dist/typescript/contexts/lexical-scope.d.mts +0 -17
  258. package/dist/typescript/contexts/lexical-scope.d.mts.map +0 -1
  259. package/dist/typescript/contexts/lexical-scope.mjs.map +0 -1
  260. package/dist/typescript/contexts/member-scope.d.cts +0 -20
  261. package/dist/typescript/contexts/member-scope.d.cts.map +0 -1
  262. package/dist/typescript/contexts/member-scope.d.mts +0 -20
  263. package/dist/typescript/contexts/member-scope.d.mts.map +0 -1
  264. package/dist/typescript/contexts/member-scope.mjs.map +0 -1
  265. package/dist/typescript/helpers/get-call-signature-props.d.cts +0 -14
  266. package/dist/typescript/helpers/get-call-signature-props.d.cts.map +0 -1
  267. package/dist/typescript/helpers/get-call-signature-props.d.mts +0 -14
  268. package/dist/typescript/helpers/get-call-signature-props.d.mts.map +0 -1
  269. package/dist/typescript/helpers/get-call-signature-props.mjs.map +0 -1
  270. package/dist/typescript/helpers/index.d.cts +0 -3
  271. package/dist/typescript/helpers/index.d.mts +0 -3
  272. package/dist/typescript/helpers/utilities.d.cts +0 -11
  273. package/dist/typescript/helpers/utilities.d.cts.map +0 -1
  274. package/dist/typescript/helpers/utilities.d.mts +0 -11
  275. package/dist/typescript/helpers/utilities.d.mts.map +0 -1
  276. package/dist/typescript/helpers/utilities.mjs.map +0 -1
  277. package/dist/typescript/index.d.cts +0 -18
  278. package/dist/typescript/index.d.mts +0 -18
  279. package/dist/yaml/components/index.d.cts +0 -2
  280. package/dist/yaml/components/index.d.mts +0 -2
  281. package/dist/yaml/components/yaml-file.d.cts +0 -34
  282. package/dist/yaml/components/yaml-file.d.cts.map +0 -1
  283. package/dist/yaml/components/yaml-file.d.mts +0 -34
  284. package/dist/yaml/components/yaml-file.d.mts.map +0 -1
  285. package/dist/yaml/components/yaml-file.mjs.map +0 -1
  286. package/dist/yaml/index.d.cts +0 -2
  287. package/dist/yaml/index.d.mts +0 -2
@@ -1,145 +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
- declare type __ΩClassDeclarationProps = any[];
139
- declare type __ΩClassMemberProps = any[];
140
- declare type __ΩClassFieldProps = any[];
141
- declare type __ΩClassPropertyProps = any[];
142
- declare type __ΩClassMethodProps = any[];
143
- //#endregion
144
- export { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps };
145
- //# 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;AAAA"}
@@ -1,145 +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
- declare type __ΩClassDeclarationProps = any[];
139
- declare type __ΩClassMemberProps = any[];
140
- declare type __ΩClassFieldProps = any[];
141
- declare type __ΩClassPropertyProps = any[];
142
- declare type __ΩClassMethodProps = any[];
143
- //#endregion
144
- export { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps };
145
- //# 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;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"class-declaration.mjs","names":["Declaration","MemberScope"],"sources":["../../../src/typescript/components/class-declaration.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 Block,\n Children,\n code,\n For,\n MemberDeclaration,\n Name,\n Namekey,\n Refkey,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport {\n CallSignature,\n CallSignatureProps,\n CommonDeclarationProps,\n createMemberSymbol,\n createTypeAndValueSymbol,\n Declaration,\n TSSymbolFlags,\n TypeParameterDescriptor,\n TypeRefContext,\n useTSNamePolicy\n} from \"@alloy-js/typescript\";\nimport { LexicalScope } from \"../contexts\";\nimport { MemberScope } from \"../contexts/member-scope\";\nimport { getCallSignatureProps } from \"../helpers\";\nimport { PropertyName } from \"./property-name\";\nimport { TSDoc, TSDocParams } from \"./tsdoc\";\nimport { TypeParameters } from \"./type-parameters\";\n\n/**\n * Props for the ClassDeclaration component, which represents a TypeScript class declaration\n */\nexport interface ClassDeclarationProps extends CommonDeclarationProps {\n /**\n * An indication of whether this class is abstract\n */\n abstract?: boolean;\n\n /**\n * An optional class that this class extends. This will be rendered as an `extends` clause in the class declaration\n */\n extends?: Children;\n\n /**\n * Optional interfaces that this class implements. This will be rendered as an `implements` clause in the class declaration\n */\n implements?: Children[];\n\n /**\n * The generic type parameters of the class.\n */\n typeParameters?: TypeParameterDescriptor[] | string[];\n}\n\n/**\n * Create a TypeScript class declaration.\n *\n * @example\n * ```tsx\n * const myPetRefkey = refkey();\n * const Animal = refkey();\n * const staticMember = refkey();\n * const instanceMember = refkey();\n *\n * <ClassDeclaration name=\"Animal\" refkey={Animal}>\n * <ClassMember public static name=\"something\" type=\"string\" refkey={staticMember}>\n * \"hello\"\n * </ClassMember>\n * <ClassMember public name=\"kind\" type=\"string\" />\n * <ClassMember public name=\"name\" type=\"string\" refkey={instanceMember} />\n * <ClassConstructor parameters=\"name: string\">\n * this.name = name;\n * </ClassConstructor>\n * </ClassDeclaration>\n *\n * <VarDeclaration const name=\"myPet\" refkey={myPetRefkey}>\n * new {Animal}();\n * </VarDeclaration>\n *\n * {staticMember}; // Animal.something\n * <MemberReference path={[myPetRefkey, instanceMember]} /> // myPet.name\n * {memberRefkey(myPetRefkey, instanceMember)}\n * ```\n */\nexport function ClassDeclaration(props: ClassDeclarationProps) {\n const extendsPart = props.extends && <> extends {props.extends}</>;\n const implementsPart = props.implements && props.implements.length > 0 && (\n <>\n {\" \"}\n implements{\" \"}\n <For each={props.implements} comma space>\n {implement => implement}\n </For>\n </>\n );\n const sym = createTypeAndValueSymbol(props.name, {\n refkeys: props.refkey,\n export: props.export,\n default: props.default,\n metadata: props.metadata,\n hasInstanceMembers: true,\n namePolicy: useTSNamePolicy().for(\"class\")\n });\n\n return (\n <>\n <Show when={Boolean(props.doc)}>\n <TSDoc heading={props.doc} />\n </Show>\n <Declaration symbol={sym} export={props.export} default={props.default}>\n <MemberScope ownerSymbol={sym}>\n {props.abstract && code`abstract `} class <Name />\n {props.typeParameters && (\n <TypeParameters parameters={props.typeParameters} />\n )}\n {extendsPart}\n {implementsPart} <Block>{props.children}</Block>\n </MemberScope>\n </Declaration>\n </>\n );\n}\n\nClassDeclaration.TypeParameters = TypeParameters;\n\n/**\n * Generates a TypeScript class member declaration for the given reflection class.\n */\nexport interface ClassMemberProps {\n name: string | Namekey;\n refkey?: Refkey;\n public?: boolean;\n private?: boolean;\n protected?: boolean;\n jsPrivate?: boolean;\n static?: boolean;\n abstract?: boolean;\n children?: Children;\n doc?: Children;\n nullish?: boolean;\n override?: boolean;\n}\n\n/**\n * Generates a TypeScript class member declaration for the given reflection class.\n *\n * @param props - The properties of the class member, including its name, visibility, and other modifiers.\n * @returns A JSX element representing the class member declaration, which can be used within a ClassDeclaration component.\n */\nexport function ClassMember(props: ClassMemberProps) {\n let tsFlags = TSSymbolFlags.None;\n if (props.nullish) {\n tsFlags |= TSSymbolFlags.Nullish;\n }\n\n const sym = createMemberSymbol(props.name, props, {\n refkeys: props.refkey,\n tsFlags,\n namePolicy: useTSNamePolicy().for(\"class-member-data\")\n });\n\n return (\n <>\n <Show when={Boolean(props.doc)}>\n <TSDoc heading={props.doc} />\n </Show>\n <MemberDeclaration symbol={sym}>\n {props.public && \"public \"}\n {props.private && \"private \"}\n {props.protected && \"protected \"}\n {props.abstract && \"abstract \"}\n {props.override && \"override \"}\n {props.static && \"static \"}\n {props.children}\n </MemberDeclaration>\n </>\n );\n}\n\n/**\n * Props for a class field, which is a specific type of class member that represents a property of the class.\n */\nexport interface ClassFieldProps extends ClassMemberProps {\n name: string;\n type?: Children;\n optional?: boolean;\n children?: Children;\n isPrivateMember?: boolean;\n}\n\n/**\n * Generates a TypeScript class field declaration for the given reflection class.\n *\n * @param props - The properties of the class field, including its name, type, optionality, and other modifiers.\n * @returns A JSX element representing the class field declaration, which can be used within a ClassDeclaration component.\n */\nexport function ClassField(props: ClassFieldProps) {\n const optionality = props.optional ? \"?\" : \"\";\n const typeSection = props.type && (\n <>\n {optionality}: <TypeRefContext>{props.type}</TypeRefContext>\n </>\n );\n const initializerSection = props.children && <> = {props.children}</>;\n const nullish = props.nullish ?? props.optional;\n\n return (\n <ClassMember {...props} nullish={nullish}>\n <PropertyName\n private={props.isPrivateMember}\n name={props.isPrivateMember ? props.name : undefined}\n />\n {typeSection}\n {initializerSection}\n </ClassMember>\n );\n}\n\n/**\n * Props for a class field, which is a specific type of class member that represents a property of the class.\n */\nexport interface ClassPropertyProps extends ClassMemberProps {\n name: string;\n type?: Children;\n children?: Children;\n}\n\n/**\n * Generates a TypeScript class property setter declaration for the given reflection class.\n *\n * @param props - The properties of the class property, including its name, type, and other modifiers.\n * @returns A JSX element representing the class property setter declaration, which can be used within a ClassDeclaration component.\n */\nexport function ClassPropertySet(props: ClassPropertyProps) {\n return (\n <>\n <ClassMember {...props}>\n {\"set \"}\n <PropertyName name={props.name} />\n <LexicalScope>\n <CallSignature\n parameters={[\n {\n name: \"value\",\n type: <TypeRefContext>{props.type}</TypeRefContext>\n }\n ]}\n />{\" \"}\n <Block>{props.children}</Block>\n </LexicalScope>\n </ClassMember>\n </>\n );\n}\n\n/**\n * Generates a TypeScript class property getter declaration for the given reflection class.\n *\n * @param props - The properties of the class property, including its name, type, and other modifiers.\n * @returns A JSX element representing the class property getter declaration, which can be used within a ClassDeclaration component.\n */\nexport function ClassPropertyGet(props: ClassPropertyProps) {\n return (\n <ClassMember {...props}>\n {\"get \"}\n <PropertyName name={props.name} />\n <LexicalScope>\n <CallSignature\n returnType={<TypeRefContext>{props.type}</TypeRefContext>}\n />{\" \"}\n <Block>{props.children}</Block>\n </LexicalScope>\n </ClassMember>\n );\n}\n\n/**\n * Props for a class method, which is a specific type of class member that represents a function defined within the class.\n */\nexport interface ClassMethodProps extends ClassMemberProps, CallSignatureProps {\n async?: boolean;\n children?: Children;\n}\n\n/**\n * Generates a TypeScript class method declaration for the given reflection class.\n *\n * @param props - The properties of the class method, including its name, visibility, and other modifiers.\n * @returns A JSX element representing the class method declaration, which can be used within a ClassDeclaration component.\n */\nexport function ClassMethod(props: ClassMethodProps) {\n const callProps = getCallSignatureProps(props);\n const [_, rest] = splitProps(props, [\"doc\"]);\n\n return (\n <>\n <Show when={Boolean(props.doc)}>\n <TSDoc heading={props.doc}>\n {Array.isArray(rest.parameters) && (\n <TSDocParams parameters={rest.parameters} />\n )}\n </TSDoc>\n </Show>\n <ClassMember {...rest}>\n {props.async && \"async \"}\n <PropertyName />\n <LexicalScope>\n <CallSignature {...callProps} /> <Block>{props.children}</Block>\n </LexicalScope>\n </ClassMember>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwGA,SAAgB,iBAAiB,OAA8B;CAC7D,MAAM,cAAc,MAAM,WAAW,4CAAE,aAAU,MAAM,QAAW;CAClE,MAAM,iBAAiB,MAAM,cAAc,MAAM,WAAW,SAAS,KACnE;EACG;EAAI;EACM;EACX,oBAAC,KAAD;GAAK,MAAM,MAAM;GAAY;GAAM;cAChC,cAAa;GACV;EACL;CAEL,MAAM,MAAM,yBAAyB,MAAM,MAAM;EAC/C,SAAS,MAAM;EACf,QAAQ,MAAM;EACd,SAAS,MAAM;EACf,UAAU,MAAM;EAChB,oBAAoB;EACpB,YAAY,iBAAiB,CAAC,IAAI,QAAQ;EAC3C,CAAC;AAEF,QACE,4CACE,oBAAC,MAAD;EAAM,MAAM,QAAQ,MAAM,IAAI;YAC5B,oBAAC,OAAD,EAAO,SAAS,MAAM,KAAO;EACxB,GACP,oBAACA,eAAD;EAAa,QAAQ;EAAK,QAAQ,MAAM;EAAQ,SAAS,MAAM;YAC7D,qBAACC,eAAD;GAAa,aAAa;aAA1B;IACG,MAAM,YAAY,IAAI;IAAY;IAAO,oBAAC,MAAD,EAAQ;IACjD,MAAM,kBACL,oBAAC,gBAAD,EAAgB,YAAY,MAAM,gBAAkB;IAErD;IACA;IAAe;IAAC,oBAAC,OAAD,YAAQ,MAAM,UAAiB;IACpC;;EACF,EACb;;AAIP,iBAAiB,iBAAiB;;;;;;;AA0BlC,SAAgB,YAAY,OAAyB;CACnD,IAAI,UAAU,cAAc;AAC5B,KAAI,MAAM,QACR,YAAW,cAAc;CAG3B,MAAM,MAAM,mBAAmB,MAAM,MAAM,OAAO;EAChD,SAAS,MAAM;EACf;EACA,YAAY,iBAAiB,CAAC,IAAI,oBAAoB;EACvD,CAAC;AAEF,QACE,4CACE,oBAAC,MAAD;EAAM,MAAM,QAAQ,MAAM,IAAI;YAC5B,oBAAC,OAAD,EAAO,SAAS,MAAM,KAAO;EACxB,GACP,qBAAC,mBAAD;EAAmB,QAAQ;YAA3B;GACG,MAAM,UAAU;GAChB,MAAM,WAAW;GACjB,MAAM,aAAa;GACnB,MAAM,YAAY;GAClB,MAAM,YAAY;GAClB,MAAM,UAAU;GAChB,MAAM;GACW;IACnB;;;;;;;;AAqBP,SAAgB,WAAW,OAAwB;CACjD,MAAM,cAAc,MAAM,WAAW,MAAM;CAC3C,MAAM,cAAc,MAAM,QACxB;EACG;EAAY;EAAE,oBAAC,gBAAD,YAAiB,MAAM,MAAsB;EAC3D;CAEL,MAAM,qBAAqB,MAAM,YAAY,4CAAE,OAAI,MAAM,SAAY;CACrE,MAAM,UAAU,MAAM,WAAW,MAAM;AAEvC,QACE,qBAAC,aAAD;EAAa,GAAI;EAAgB;YAAjC;GACE,oBAAC,cAAD;IACE,SAAS,MAAM;IACf,MAAM,MAAM,kBAAkB,MAAM,OAAO;IAC3C;GACD;GACA;GACW;;;;;;;;;AAmBlB,SAAgB,iBAAiB,OAA2B;AAC1D,QACE,0CACE,qBAAC,aAAD;EAAa,GAAI;YAAjB;GACG;GACD,oBAAC,cAAD,EAAc,MAAM,MAAM,MAAQ;GAClC,qBAAC,cAAD;IACE,oBAAC,eAAD,EACE,YAAY,CACV;KACE,MAAM;KACN,MAAM,oBAAC,gBAAD,YAAiB,MAAM,MAAsB;KACpD,CACF,EACD;IAAC;IACH,oBAAC,OAAD,YAAQ,MAAM,UAAiB;IAClB;GACH;KACb;;;;;;;;AAUP,SAAgB,iBAAiB,OAA2B;AAC1D,QACE,qBAAC,aAAD;EAAa,GAAI;YAAjB;GACG;GACD,oBAAC,cAAD,EAAc,MAAM,MAAM,MAAQ;GAClC,qBAAC,cAAD;IACE,oBAAC,eAAD,EACE,YAAY,oBAAC,gBAAD,YAAiB,MAAM,MAAsB,GACzD;IAAC;IACH,oBAAC,OAAD,YAAQ,MAAM,UAAiB;IAClB;GACH;;;;;;;;;AAkBlB,SAAgB,YAAY,OAAyB;CACnD,MAAM,YAAY,sBAAsB,MAAM;CAC9C,MAAM,CAAC,GAAG,QAAQ,WAAW,OAAO,CAAC,MAAM,CAAC;AAE5C,QACE,4CACE,oBAAC,MAAD;EAAM,MAAM,QAAQ,MAAM,IAAI;YAC5B,oBAAC,OAAD;GAAO,SAAS,MAAM;aACnB,MAAM,QAAQ,KAAK,WAAW,IAC7B,oBAAC,aAAD,EAAa,YAAY,KAAK,YAAc;GAExC;EACH,GACP,qBAAC,aAAD;EAAa,GAAI;YAAjB;GACG,MAAM,SAAS;GAChB,oBAAC,cAAD,EAAgB;GAChB,qBAAC,cAAD;IACE,oBAAC,eAAD,EAAe,GAAI,WAAa;;IAAC,oBAAC,OAAD,YAAQ,MAAM,UAAiB;IACnD;GACH;IACb"}
@@ -1,33 +0,0 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
2
- import { VarDeclarationProps } from "@alloy-js/typescript";
3
-
4
- //#region src/typescript/components/dynamic-import-statement.d.ts
5
- interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initializer"> {
6
- /**
7
- * The path of the module to import.
8
- */
9
- importPath: string;
10
- /**
11
- * The name of the export to import from the module.
12
- *
13
- * @defaultValue "default"
14
- */
15
- exportName?: string;
16
- }
17
- /**
18
- * Generates a dynamic import statement for a given module path and export name.
19
- *
20
- * @example
21
- * ```tsx
22
- * <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
23
- * // const myVar = await import("./my-module").then(m => m.myExport);
24
- * ```
25
- *
26
- * @param props - The properties for the dynamic import statement.
27
- * @returns A `VarDeclaration` component representing the dynamic import statement.
28
- */
29
- declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core0.Children;
30
- declare type __ΩDynamicImportStatementProps = any[];
31
- //#endregion
32
- export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
33
- //# sourceMappingURL=dynamic-import-statement.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamic-import-statement.d.cts","names":[],"sources":["../../../src/typescript/components/dynamic-import-statement.tsx"],"mappings":";;;;UAqBiB,2BAAA,SAAoC,IAAA,CACnD,mBAAA;;;AADF;EAOE,UAAA;;;;;;EAOA,UAAA;AAAA;;AAeF;;;;;;;;;;;iBAAgB,sBAAA,CAAuB,KAAA,EAAO,2BAAA,GAA2B,eAAA,CAAA,QAAA;AAAA"}
@@ -1,33 +0,0 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
2
- import { VarDeclarationProps } from "@alloy-js/typescript";
3
-
4
- //#region src/typescript/components/dynamic-import-statement.d.ts
5
- interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initializer"> {
6
- /**
7
- * The path of the module to import.
8
- */
9
- importPath: string;
10
- /**
11
- * The name of the export to import from the module.
12
- *
13
- * @defaultValue "default"
14
- */
15
- exportName?: string;
16
- }
17
- /**
18
- * Generates a dynamic import statement for a given module path and export name.
19
- *
20
- * @example
21
- * ```tsx
22
- * <DynamicImportStatement importPath="./my-module" exportName="myExport" const={true} name="myVar" />
23
- * // const myVar = await import("./my-module").then(m => m.myExport);
24
- * ```
25
- *
26
- * @param props - The properties for the dynamic import statement.
27
- * @returns A `VarDeclaration` component representing the dynamic import statement.
28
- */
29
- declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core0.Children;
30
- declare type __ΩDynamicImportStatementProps = any[];
31
- //#endregion
32
- export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
33
- //# sourceMappingURL=dynamic-import-statement.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamic-import-statement.d.mts","names":[],"sources":["../../../src/typescript/components/dynamic-import-statement.tsx"],"mappings":";;;;UAqBiB,2BAAA,SAAoC,IAAA,CACnD,mBAAA;;;AADF;EAOE,UAAA;;;;;;EAOA,UAAA;AAAA;;AAeF;;;;;;;;;;;iBAAgB,sBAAA,CAAuB,KAAA,EAAO,2BAAA,GAA2B,eAAA,CAAA,QAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamic-import-statement.mjs","names":[],"sources":["../../../src/typescript/components/dynamic-import-statement.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code } from \"@alloy-js/core\";\nimport { VarDeclaration, VarDeclarationProps } from \"@alloy-js/typescript\";\n\nexport interface DynamicImportStatementProps extends Omit<\n VarDeclarationProps,\n \"initializer\"\n> {\n /**\n * The path of the module to import.\n */\n importPath: string;\n\n /**\n * The name of the export to import from the module.\n *\n * @defaultValue \"default\"\n */\n exportName?: string;\n}\n\n/**\n * Generates a dynamic import statement for a given module path and export name.\n *\n * @example\n * ```tsx\n * <DynamicImportStatement importPath=\"./my-module\" exportName=\"myExport\" const={true} name=\"myVar\" />\n * // const myVar = await import(\"./my-module\").then(m => m.myExport);\n * ```\n *\n * @param props - The properties for the dynamic import statement.\n * @returns A `VarDeclaration` component representing the dynamic import statement.\n */\nexport function DynamicImportStatement(props: DynamicImportStatementProps) {\n const {\n importPath,\n exportName = \"default\",\n const: isConst = true,\n ...rest\n } = props;\n\n return (\n <VarDeclaration\n const={isConst}\n {...rest}\n initializer={code`await import(\"${importPath}\").then(m => m.${exportName});`}></VarDeclaration>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAkDA,SAAgB,uBAAuB,OAAoC;CACzE,MAAM,EACJ,YACA,aAAa,WACb,OAAO,UAAU,MACjB,GAAG,SACD;AAEJ,QACE,oBAAC,gBAAD;EACE,OAAO;EACP,GAAI;EACJ,aAAa,IAAI,iBAAiB,WAAW,iBAAiB,WAAW;EAAsB"}
@@ -1,28 +0,0 @@
1
- import { TypescriptFileProps } from "./typescript-file.cjs";
2
- import * as _alloy_js_core0 from "@alloy-js/core";
3
- import { ResolvedEntryTypeDefinition } from "powerlines";
4
-
5
- //#region src/typescript/components/entry-file.d.ts
6
- type EntryFileProps = TypescriptFileProps & {
7
- /**
8
- * Whether the file is a TSX file.
9
- *
10
- * @defaultValue false
11
- */
12
- tsx?: boolean;
13
- /**
14
- * Render metadata information about the entrypoint
15
- */
16
- typeDefinition?: ResolvedEntryTypeDefinition;
17
- };
18
- /**
19
- * A base component representing a Powerlines generated Typescript source file.
20
- *
21
- * @param props - The properties for the source file.
22
- * @returns The rendered source file component.
23
- */
24
- declare function EntryFile(props: EntryFileProps): _alloy_js_core0.Children;
25
- declare type __ΩEntryFileProps = any[];
26
- //#endregion
27
- export { EntryFile, EntryFileProps, __ΩEntryFileProps };
28
- //# sourceMappingURL=entry-file.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entry-file.d.cts","names":[],"sources":["../../../src/typescript/components/entry-file.tsx"],"mappings":";;;;;KA4BY,cAAA,GAAiB,mBAAA;;;AAA7B;;;EAME,GAAA;EAN2B;;;EAW3B,cAAA,GAAiB,2BAAA;AAAA;;AASnB;;;;;iBAAgB,SAAA,CAAU,KAAA,EAAO,cAAA,GAAc,eAAA,CAAA,QAAA;AAAA"}
@@ -1,28 +0,0 @@
1
- import { TypescriptFileProps } from "./typescript-file.mjs";
2
- import * as _alloy_js_core0 from "@alloy-js/core";
3
- import { ResolvedEntryTypeDefinition } from "powerlines";
4
-
5
- //#region src/typescript/components/entry-file.d.ts
6
- type EntryFileProps = TypescriptFileProps & {
7
- /**
8
- * Whether the file is a TSX file.
9
- *
10
- * @defaultValue false
11
- */
12
- tsx?: boolean;
13
- /**
14
- * Render metadata information about the entrypoint
15
- */
16
- typeDefinition?: ResolvedEntryTypeDefinition;
17
- };
18
- /**
19
- * A base component representing a Powerlines generated Typescript source file.
20
- *
21
- * @param props - The properties for the source file.
22
- * @returns The rendered source file component.
23
- */
24
- declare function EntryFile(props: EntryFileProps): _alloy_js_core0.Children;
25
- declare type __ΩEntryFileProps = any[];
26
- //#endregion
27
- export { EntryFile, EntryFileProps, __ΩEntryFileProps };
28
- //# sourceMappingURL=entry-file.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entry-file.d.mts","names":[],"sources":["../../../src/typescript/components/entry-file.tsx"],"mappings":";;;;;KA4BY,cAAA,GAAiB,mBAAA;;;AAA7B;;;EAME,GAAA;EAN2B;;;EAW3B,cAAA,GAAiB,2BAAA;AAAA;;AASnB;;;;;iBAAgB,SAAA,CAAU,KAAA,EAAO,cAAA,GAAc,eAAA,CAAA,QAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"entry-file.mjs","names":[],"sources":["../../../src/typescript/components/entry-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { computed, splitProps } from \"@alloy-js/core\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { hasFileExtension } from \"@stryke/path/file-path-fns\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { isSet } from \"@stryke/type-checks/is-set\";\nimport defu from \"defu\";\nimport { ResolvedEntryTypeDefinition } from \"powerlines\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { TypescriptFile, TypescriptFileProps } from \"./typescript-file\";\n\nexport type EntryFileProps = TypescriptFileProps & {\n /**\n * Whether the file is a TSX file.\n *\n * @defaultValue false\n */\n tsx?: boolean;\n\n /**\n * Render metadata information about the entrypoint\n */\n typeDefinition?: ResolvedEntryTypeDefinition;\n};\n\n/**\n * A base component representing a Powerlines generated Typescript source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function EntryFile(props: EntryFileProps) {\n const [{ children, meta, tsx, path, typeDefinition }, rest] = splitProps(\n props,\n [\"children\", \"meta\", \"tsx\", \"path\", \"typeDefinition\"]\n );\n\n const context = usePowerlinesSafe();\n const fullPath = computed(() =>\n context\n ? appendPath(\n `${\n !isSet(tsx) ? path : replaceExtension(path)\n }${tsx ? \".tsx\" : hasFileExtension(path) ? \"\" : \".ts\"}`,\n replacePath(context.entryPath, context.workspaceConfig.workspaceRoot)\n )\n : path\n );\n\n return (\n <TypescriptFile\n {...rest}\n path={fullPath.value}\n meta={defu(\n {\n kind: \"entry\"\n },\n meta ?? {},\n {\n typeDefinition\n }\n )}>\n {children}\n </TypescriptFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAgDA,SAAgB,UAAU,OAAuB;CAC/C,MAAM,CAAC,EAAE,UAAU,MAAM,KAAK,MAAM,kBAAkB,QAAQ,WAC5D,OACA;EAAC;EAAY;EAAQ;EAAO;EAAQ;EAAiB,CACtD;CAED,MAAM,UAAU,mBAAmB;CACnC,MAAM,WAAW,eACf,UACI,WACE,GACE,CAAC,MAAM,IAAI,GAAG,OAAO,iBAAiB,KAAK,GAC1C,MAAM,SAAS,iBAAiB,KAAK,GAAG,KAAK,SAChD,YAAY,QAAQ,WAAW,QAAQ,gBAAgB,cAAc,CACtE,GACD,KACL;AAED,QACE,oBAAC,gBAAD;EACE,GAAI;EACJ,MAAM,SAAS;EACf,MAAM,KACJ,EACE,MAAM,SACP,EACD,QAAQ,EAAE,EACV,EACE,gBACD,CACF;EACA;EACc"}
@@ -1,15 +0,0 @@
1
- import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps } from "./tsdoc.cjs";
2
- import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps } from "./typescript-file.cjs";
3
- import { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps } from "./builtin-file.cjs";
4
- import { TypeParameters, TypeParametersProps, __ΩTypeParametersProps } from "./type-parameters.cjs";
5
- import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps } from "./class-declaration.cjs";
6
- import { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./dynamic-import-statement.cjs";
7
- import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./entry-file.cjs";
8
- import { InfrastructureFile, InfrastructureFileProps, __ΩInfrastructureFileProps } from "./infrastructure-file.cjs";
9
- import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps } from "./interface-declaration.cjs";
10
- import { ComputedRef, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, __ΩComputedRef, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps } from "./object-declaration.cjs";
11
- import { PropertyName, PropertyNameProps, __ΩPropertyNameProps } from "./property-name.cjs";
12
- import { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps } from "./record-expression.cjs";
13
- import { TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocReflectionClass, TSDocReflectionClassProps, TSDocReflectionMethod, TSDocReflectionMethodProps, TSDocReflectionProperty, TSDocReflectionPropertyProps, __ΩTSDocReflectionClassProps, __ΩTSDocReflectionMethodProps, __ΩTSDocReflectionPropertyProps } from "./tsdoc-reflection.cjs";
14
- import { TypeDeclaration, TypeDeclarationProps, __ΩTypeDeclarationProps } from "./type-declaration.cjs";
15
- export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, InfrastructureFile, InfrastructureFileProps, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, PropertyName, PropertyNameProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionClassProps, TSDocReflectionMethod, TSDocReflectionMethodProps, TSDocReflectionProperty, TSDocReflectionPropertyProps, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeDeclaration, TypeDeclarationProps, TypeParameters, TypeParametersProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩBuiltinFileProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps, __ΩComputedRef, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩInfrastructureFileProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps, __ΩPropertyNameProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocReflectionClassProps, __ΩTSDocReflectionMethodProps, __ΩTSDocReflectionPropertyProps, __ΩTSDocTagProps, __ΩTypeDeclarationProps, __ΩTypeParametersProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps };
@@ -1,15 +0,0 @@
1
- import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps } from "./tsdoc.mjs";
2
- import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps } from "./typescript-file.mjs";
3
- import { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps } from "./builtin-file.mjs";
4
- import { TypeParameters, TypeParametersProps, __ΩTypeParametersProps } from "./type-parameters.mjs";
5
- import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps } from "./class-declaration.mjs";
6
- import { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./dynamic-import-statement.mjs";
7
- import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./entry-file.mjs";
8
- import { InfrastructureFile, InfrastructureFileProps, __ΩInfrastructureFileProps } from "./infrastructure-file.mjs";
9
- import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps } from "./interface-declaration.mjs";
10
- import { ComputedRef, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, __ΩComputedRef, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps } from "./object-declaration.mjs";
11
- import { PropertyName, PropertyNameProps, __ΩPropertyNameProps } from "./property-name.mjs";
12
- import { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps } from "./record-expression.mjs";
13
- import { TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocReflectionClass, TSDocReflectionClassProps, TSDocReflectionMethod, TSDocReflectionMethodProps, TSDocReflectionProperty, TSDocReflectionPropertyProps, __ΩTSDocReflectionClassProps, __ΩTSDocReflectionMethodProps, __ΩTSDocReflectionPropertyProps } from "./tsdoc-reflection.mjs";
14
- import { TypeDeclaration, TypeDeclarationProps, __ΩTypeDeclarationProps } from "./type-declaration.mjs";
15
- export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, InfrastructureFile, InfrastructureFileProps, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, PropertyName, PropertyNameProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionClassProps, TSDocReflectionMethod, TSDocReflectionMethodProps, TSDocReflectionProperty, TSDocReflectionPropertyProps, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeDeclaration, TypeDeclarationProps, TypeParameters, TypeParametersProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩBuiltinFileProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps, __ΩComputedRef, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩInfrastructureFileProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps, __ΩPropertyNameProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocReflectionClassProps, __ΩTSDocReflectionMethodProps, __ΩTSDocReflectionPropertyProps, __ΩTSDocTagProps, __ΩTypeDeclarationProps, __ΩTypeParametersProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps };
@@ -1,21 +0,0 @@
1
- import { TypescriptFileProps } from "./typescript-file.cjs";
2
- import * as _alloy_js_core0 from "@alloy-js/core";
3
-
4
- //#region src/typescript/components/infrastructure-file.d.ts
5
- type InfrastructureFileProps = Omit<TypescriptFileProps, "path"> & {
6
- /**
7
- * The infrastructure module identifier.
8
- */
9
- id: string;
10
- };
11
- /**
12
- * A base component representing a Powerlines generated Typescript infrastructure file.
13
- *
14
- * @param props - The properties for the infrastructure file.
15
- * @returns The rendered infrastructure file component.
16
- */
17
- declare function InfrastructureFile(props: InfrastructureFileProps): _alloy_js_core0.Children;
18
- declare type __ΩInfrastructureFileProps = any[];
19
- //#endregion
20
- export { InfrastructureFile, InfrastructureFileProps, __ΩInfrastructureFileProps };
21
- //# sourceMappingURL=infrastructure-file.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"infrastructure-file.d.cts","names":[],"sources":["../../../src/typescript/components/infrastructure-file.tsx"],"mappings":";;;;KA0BY,uBAAA,GAA0B,IAAA,CAAK,mBAAA;;;AAA3C;EAIE,EAAA;AAAA;;;;;;;iBASc,kBAAA,CAAmB,KAAA,EAAO,uBAAA,GAAuB,eAAA,CAAA,QAAA;AAAA"}
@@ -1,21 +0,0 @@
1
- import { TypescriptFileProps } from "./typescript-file.mjs";
2
- import * as _alloy_js_core0 from "@alloy-js/core";
3
-
4
- //#region src/typescript/components/infrastructure-file.d.ts
5
- type InfrastructureFileProps = Omit<TypescriptFileProps, "path"> & {
6
- /**
7
- * The infrastructure module identifier.
8
- */
9
- id: string;
10
- };
11
- /**
12
- * A base component representing a Powerlines generated Typescript infrastructure file.
13
- *
14
- * @param props - The properties for the infrastructure file.
15
- * @returns The rendered infrastructure file component.
16
- */
17
- declare function InfrastructureFile(props: InfrastructureFileProps): _alloy_js_core0.Children;
18
- declare type __ΩInfrastructureFileProps = any[];
19
- //#endregion
20
- export { InfrastructureFile, InfrastructureFileProps, __ΩInfrastructureFileProps };
21
- //# sourceMappingURL=infrastructure-file.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"infrastructure-file.d.mts","names":[],"sources":["../../../src/typescript/components/infrastructure-file.tsx"],"mappings":";;;;KA0BY,uBAAA,GAA0B,IAAA,CAAK,mBAAA;;;AAA3C;EAIE,EAAA;AAAA;;;;;;;iBASc,kBAAA,CAAmB,KAAA,EAAO,uBAAA,GAAuB,eAAA,CAAA,QAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"infrastructure-file.mjs","names":[],"sources":["../../../src/typescript/components/infrastructure-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { computed, splitProps } from \"@alloy-js/core\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { hasFileExtension } from \"@stryke/path/file-path-fns\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport defu from \"defu\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { TypescriptFile, TypescriptFileProps } from \"./typescript-file\";\n\nexport type InfrastructureFileProps = Omit<TypescriptFileProps, \"path\"> & {\n /**\n * The infrastructure module identifier.\n */\n id: string;\n};\n\n/**\n * A base component representing a Powerlines generated Typescript infrastructure file.\n *\n * @param props - The properties for the infrastructure file.\n * @returns The rendered infrastructure file component.\n */\nexport function InfrastructureFile(props: InfrastructureFileProps) {\n const [{ children, meta, id }, rest] = splitProps(props, [\n \"children\",\n \"meta\",\n \"id\"\n ]);\n\n const context = usePowerlinesSafe();\n const fullPath = computed(() =>\n context\n ? appendPath(\n hasFileExtension(id) ? \"\" : \".ts\",\n replacePath(\n context.infrastructurePath,\n context.workspaceConfig.workspaceRoot\n )\n )\n : id\n );\n\n return (\n <TypescriptFile\n {...rest}\n path={fullPath.value}\n meta={defu(\n {\n kind: \"infrastructure\"\n },\n meta ?? {}\n )}>\n {children}\n </TypescriptFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAuCA,SAAgB,mBAAmB,OAAgC;CACjE,MAAM,CAAC,EAAE,UAAU,MAAM,MAAM,QAAQ,WAAW,OAAO;EACvD;EACA;EACA;EACD,CAAC;CAEF,MAAM,UAAU,mBAAmB;CACnC,MAAM,WAAW,eACf,UACI,WACE,iBAAiB,GAAG,GAAG,KAAK,OAC5B,YACE,QAAQ,oBACR,QAAQ,gBAAgB,cACzB,CACF,GACD,GACL;AAED,QACE,oBAAC,gBAAD;EACE,GAAI;EACJ,MAAM,SAAS;EACf,MAAM,KACJ,EACE,MAAM,kBACP,EACD,QAAQ,EAAE,CACX;EACA;EACc"}