@powerlines/plugin-alloy 0.25.69 → 0.26.0

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 (168) hide show
  1. package/README.md +1 -1
  2. package/dist/core/components/index.cjs +3 -1
  3. package/dist/core/components/index.d.cts +3 -2
  4. package/dist/core/components/index.d.mts +3 -2
  5. package/dist/core/components/index.mjs +3 -2
  6. package/dist/core/components/infrastructure-file.cjs +48 -0
  7. package/dist/core/components/infrastructure-file.d.cts +28 -0
  8. package/dist/core/components/infrastructure-file.d.cts.map +1 -0
  9. package/dist/core/components/infrastructure-file.d.mts +28 -0
  10. package/dist/core/components/infrastructure-file.d.mts.map +1 -0
  11. package/dist/core/components/infrastructure-file.mjs +46 -0
  12. package/dist/core/components/infrastructure-file.mjs.map +1 -0
  13. package/dist/core/components/output.d.cts +2 -2
  14. package/dist/core/components/output.d.cts.map +1 -1
  15. package/dist/core/components/output.d.mts +2 -2
  16. package/dist/core/components/output.d.mts.map +1 -1
  17. package/dist/core/components/single-line-comment.cjs +1 -1
  18. package/dist/core/components/single-line-comment.d.cts +3 -3
  19. package/dist/core/components/single-line-comment.d.cts.map +1 -1
  20. package/dist/core/components/single-line-comment.d.mts +3 -3
  21. package/dist/core/components/single-line-comment.d.mts.map +1 -1
  22. package/dist/core/components/single-line-comment.mjs +1 -1
  23. package/dist/core/components/single-line-comment.mjs.map +1 -1
  24. package/dist/core/components/source-file.d.cts +2 -2
  25. package/dist/core/components/source-file.d.cts.map +1 -1
  26. package/dist/core/components/source-file.d.mts +2 -2
  27. package/dist/core/components/source-file.d.mts.map +1 -1
  28. package/dist/core/components/spacing.d.cts +2 -2
  29. package/dist/core/components/spacing.d.cts.map +1 -1
  30. package/dist/core/components/spacing.d.mts +2 -2
  31. package/dist/core/components/spacing.d.mts.map +1 -1
  32. package/dist/core/contexts/index.cjs +2 -1
  33. package/dist/core/contexts/index.d.cts +2 -2
  34. package/dist/core/contexts/index.d.mts +2 -2
  35. package/dist/core/contexts/index.mjs +2 -2
  36. package/dist/core/contexts/reflection.cjs +13 -2
  37. package/dist/core/contexts/reflection.d.cts +14 -3
  38. package/dist/core/contexts/reflection.d.cts.map +1 -1
  39. package/dist/core/contexts/reflection.d.mts +14 -3
  40. package/dist/core/contexts/reflection.d.mts.map +1 -1
  41. package/dist/core/contexts/reflection.mjs +12 -2
  42. package/dist/core/contexts/reflection.mjs.map +1 -1
  43. package/dist/core/index.cjs +5 -2
  44. package/dist/core/index.d.cts +4 -3
  45. package/dist/core/index.d.mts +4 -3
  46. package/dist/core/index.mjs +4 -3
  47. package/dist/hcl/components/block-declaration.cjs +34 -0
  48. package/dist/hcl/components/block-declaration.d.cts +22 -0
  49. package/dist/hcl/components/block-declaration.d.cts.map +1 -0
  50. package/dist/hcl/components/block-declaration.d.mts +22 -0
  51. package/dist/hcl/components/block-declaration.d.mts.map +1 -0
  52. package/dist/hcl/components/block-declaration.mjs +33 -0
  53. package/dist/hcl/components/block-declaration.mjs.map +1 -0
  54. package/dist/hcl/components/hcl-file.cjs +83 -0
  55. package/dist/hcl/components/hcl-file.d.cts +27 -0
  56. package/dist/hcl/components/hcl-file.d.cts.map +1 -0
  57. package/dist/hcl/components/hcl-file.d.mts +27 -0
  58. package/dist/hcl/components/hcl-file.d.mts.map +1 -0
  59. package/dist/hcl/components/hcl-file.mjs +81 -0
  60. package/dist/hcl/components/hcl-file.mjs.map +1 -0
  61. package/dist/hcl/components/index.cjs +11 -0
  62. package/dist/hcl/components/index.d.cts +5 -0
  63. package/dist/hcl/components/index.d.mts +5 -0
  64. package/dist/hcl/components/index.mjs +6 -0
  65. package/dist/hcl/components/packer-file.cjs +29 -0
  66. package/dist/hcl/components/packer-file.d.cts +19 -0
  67. package/dist/hcl/components/packer-file.d.cts.map +1 -0
  68. package/dist/hcl/components/packer-file.d.mts +19 -0
  69. package/dist/hcl/components/packer-file.d.mts.map +1 -0
  70. package/dist/hcl/components/packer-file.mjs +28 -0
  71. package/dist/hcl/components/packer-file.mjs.map +1 -0
  72. package/dist/hcl/components/terraform-file.cjs +30 -0
  73. package/dist/hcl/components/terraform-file.d.cts +20 -0
  74. package/dist/hcl/components/terraform-file.d.cts.map +1 -0
  75. package/dist/hcl/components/terraform-file.d.mts +20 -0
  76. package/dist/hcl/components/terraform-file.d.mts.map +1 -0
  77. package/dist/hcl/components/terraform-file.mjs +29 -0
  78. package/dist/hcl/components/terraform-file.mjs.map +1 -0
  79. package/dist/hcl/index.cjs +12 -0
  80. package/dist/hcl/index.d.cts +5 -0
  81. package/dist/hcl/index.d.mts +5 -0
  82. package/dist/hcl/index.mjs +7 -0
  83. package/dist/helpers/capnp.cjs +2 -2
  84. package/dist/helpers/capnp.mjs +2 -2
  85. package/dist/helpers/typescript.cjs +1 -1
  86. package/dist/helpers/typescript.mjs +1 -1
  87. package/dist/markdown/components/front-matter.d.cts +2 -2
  88. package/dist/markdown/components/front-matter.d.cts.map +1 -1
  89. package/dist/markdown/components/front-matter.d.mts +2 -2
  90. package/dist/markdown/components/front-matter.d.mts.map +1 -1
  91. package/dist/markdown/components/markdown-file.cjs +1 -1
  92. package/dist/markdown/components/markdown-file.d.cts +3 -3
  93. package/dist/markdown/components/markdown-file.d.cts.map +1 -1
  94. package/dist/markdown/components/markdown-file.d.mts +3 -3
  95. package/dist/markdown/components/markdown-file.d.mts.map +1 -1
  96. package/dist/markdown/components/markdown-file.mjs +1 -1
  97. package/dist/markdown/components/markdown-table.d.cts +4 -4
  98. package/dist/markdown/components/markdown-table.d.cts.map +1 -1
  99. package/dist/markdown/components/markdown-table.d.mts +4 -4
  100. package/dist/markdown/components/markdown-table.d.mts.map +1 -1
  101. package/dist/typescript/components/builtin-file.d.cts +2 -2
  102. package/dist/typescript/components/builtin-file.d.cts.map +1 -1
  103. package/dist/typescript/components/builtin-file.d.mts +2 -2
  104. package/dist/typescript/components/builtin-file.d.mts.map +1 -1
  105. package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
  106. package/dist/typescript/components/dynamic-import-statement.d.cts.map +1 -1
  107. package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
  108. package/dist/typescript/components/dynamic-import-statement.d.mts.map +1 -1
  109. package/dist/typescript/components/entry-file.cjs +1 -1
  110. package/dist/typescript/components/entry-file.d.cts +2 -2
  111. package/dist/typescript/components/entry-file.d.cts.map +1 -1
  112. package/dist/typescript/components/entry-file.d.mts +2 -2
  113. package/dist/typescript/components/entry-file.d.mts.map +1 -1
  114. package/dist/typescript/components/entry-file.mjs +1 -1
  115. package/dist/typescript/components/index.cjs +0 -2
  116. package/dist/typescript/components/index.d.cts +1 -2
  117. package/dist/typescript/components/index.d.mts +1 -2
  118. package/dist/typescript/components/index.mjs +1 -2
  119. package/dist/typescript/components/interface-declaration.cjs +16 -6
  120. package/dist/typescript/components/interface-declaration.d.cts +6 -5
  121. package/dist/typescript/components/interface-declaration.d.cts.map +1 -1
  122. package/dist/typescript/components/interface-declaration.d.mts +5 -4
  123. package/dist/typescript/components/interface-declaration.d.mts.map +1 -1
  124. package/dist/typescript/components/interface-declaration.mjs +16 -6
  125. package/dist/typescript/components/interface-declaration.mjs.map +1 -1
  126. package/dist/typescript/components/object-declaration.cjs +8 -2
  127. package/dist/typescript/components/object-declaration.d.cts +7 -7
  128. package/dist/typescript/components/object-declaration.d.cts.map +1 -1
  129. package/dist/typescript/components/object-declaration.d.mts +6 -6
  130. package/dist/typescript/components/object-declaration.d.mts.map +1 -1
  131. package/dist/typescript/components/object-declaration.mjs +8 -2
  132. package/dist/typescript/components/object-declaration.mjs.map +1 -1
  133. package/dist/typescript/components/property-name.d.cts +2 -2
  134. package/dist/typescript/components/property-name.d.cts.map +1 -1
  135. package/dist/typescript/components/property-name.d.mts +2 -2
  136. package/dist/typescript/components/property-name.d.mts.map +1 -1
  137. package/dist/typescript/components/tsdoc-reflection.cjs +15 -4
  138. package/dist/typescript/components/tsdoc-reflection.d.cts +8 -7
  139. package/dist/typescript/components/tsdoc-reflection.d.cts.map +1 -1
  140. package/dist/typescript/components/tsdoc-reflection.d.mts +8 -7
  141. package/dist/typescript/components/tsdoc-reflection.d.mts.map +1 -1
  142. package/dist/typescript/components/tsdoc-reflection.mjs +16 -5
  143. package/dist/typescript/components/tsdoc-reflection.mjs.map +1 -1
  144. package/dist/typescript/components/tsdoc.d.cts +1 -1
  145. package/dist/typescript/components/type-declaration.d.cts +2 -2
  146. package/dist/typescript/components/type-declaration.d.cts.map +1 -1
  147. package/dist/typescript/components/type-declaration.d.mts +2 -2
  148. package/dist/typescript/components/type-declaration.d.mts.map +1 -1
  149. package/dist/typescript/components/typescript-file.cjs +2 -2
  150. package/dist/typescript/components/typescript-file.mjs +2 -2
  151. package/dist/typescript/contexts/lexical-scope.d.cts +2 -2
  152. package/dist/typescript/contexts/lexical-scope.d.cts.map +1 -1
  153. package/dist/typescript/contexts/lexical-scope.d.mts +2 -2
  154. package/dist/typescript/contexts/lexical-scope.d.mts.map +1 -1
  155. package/dist/typescript/index.cjs +0 -2
  156. package/dist/typescript/index.d.cts +1 -2
  157. package/dist/typescript/index.d.mts +1 -2
  158. package/dist/typescript/index.mjs +1 -2
  159. package/dist/yaml/components/yaml-file.cjs +1 -1
  160. package/dist/yaml/components/yaml-file.mjs +1 -1
  161. package/package.json +104 -20
  162. package/dist/typescript/components/infrastructure-file.cjs +0 -40
  163. package/dist/typescript/components/infrastructure-file.d.cts +0 -21
  164. package/dist/typescript/components/infrastructure-file.d.cts.map +0 -1
  165. package/dist/typescript/components/infrastructure-file.d.mts +0 -21
  166. package/dist/typescript/components/infrastructure-file.d.mts.map +0 -1
  167. package/dist/typescript/components/infrastructure-file.mjs +0 -38
  168. package/dist/typescript/components/infrastructure-file.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
1
+ import * as _$_alloy_js_core0 from "@alloy-js/core";
2
2
 
3
3
  //#region src/typescript/components/property-name.d.ts
4
4
  interface PropertyNameProps {
@@ -17,7 +17,7 @@ interface PropertyNameProps {
17
17
  * @remarks
18
18
  * If the name is not a valid JavaScript identifier, it will be quoted. If a `name` prop is provided, it will be used as the property name. Otherwise, the name will be taken from the {@link (MemberDeclarationContext:variable)}.
19
19
  */
20
- declare function PropertyName(props: PropertyNameProps): _alloy_js_core0.Children;
20
+ declare function PropertyName(props: PropertyNameProps): _$_alloy_js_core0.Children;
21
21
  declare type __ΩPropertyNameProps = any[];
22
22
  //#endregion
23
23
  export { PropertyName, PropertyNameProps, __ΩPropertyNameProps };
@@ -1 +1 @@
1
- {"version":3,"file":"property-name.d.mts","names":[],"sources":["../../../src/typescript/components/property-name.tsx"],"mappings":";;;UAuBiB,iBAAA;;;AAAjB;EAIE,IAAA;;;;EAKA,OAAA;AAAA;;;;;;;iBASc,YAAA,CAAa,KAAA,EAAO,iBAAA,GAAiB,eAAA,CAAA,QAAA;AAAA"}
1
+ {"version":3,"file":"property-name.d.mts","names":[],"sources":["../../../src/typescript/components/property-name.tsx"],"mappings":";;;UAuBiB,iBAAA;;;AAAjB;EAIE,IAAA;;;;EAKA,OAAA;AAAA;;;;;;;iBASc,YAAA,CAAa,KAAA,EAAO,iBAAA,GAAiB,iBAAA,CAAA,QAAA;AAAA"}
@@ -111,7 +111,11 @@ function TSDocContextClass(props) {
111
111
  * Generates a TSDoc documentation block for the given reflection property. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about parameters of a method or properties of a class.
112
112
  */
113
113
  function TSDocReflectionProperty(props) {
114
- const [{ children, reflection }, rest] = (0, _alloy_js_core.splitProps)(props, ["children", "reflection"]);
114
+ const [{ children, reflection, defaultValue }, rest] = (0, _alloy_js_core.splitProps)(props, [
115
+ "children",
116
+ "reflection",
117
+ "defaultValue"
118
+ ]);
115
119
  if (!(0, _stryke_type_checks.isSetObject)(reflection)) return null;
116
120
  const hasAttributes = (0, _alloy_js_core.computed)(() => (0, _stryke_type_checks_is_set_string.isSetString)(reflection.getTitle()) || !(0, _stryke_type_checks_is_undefined.isUndefined)(reflection.getAlias()) && reflection.getAlias().length > 0 || !(0, _stryke_type_checks_is_undefined.isUndefined)(reflection.getPermission()) && reflection.getPermission().length > 0 || (0, _stryke_type_checks_is_set_string.isSetString)(reflection.getDomain()) || !(0, _stryke_type_checks_is_undefined.isUndefined)(reflection.isReadonly()) || !(0, _stryke_type_checks_is_undefined.isUndefined)(reflection.isInternal()) || !(0, _stryke_type_checks_is_undefined.isUndefined)(reflection.isIgnored()) || !(0, _stryke_type_checks_is_undefined.isUndefined)(reflection.isHidden()) || reflection.hasDefault() && !(0, _stryke_type_checks_is_undefined.isUndefined)(reflection.getDefaultValue()));
117
121
  return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, (0, _alloy_js_core_jsx_runtime.mergeProps)({ get heading() {
@@ -149,7 +153,7 @@ function TSDocReflectionProperty(props) {
149
153
  return reflection.isHidden();
150
154
  },
151
155
  get defaultValue() {
152
- return reflection.getDefaultValue();
156
+ return defaultValue ?? reflection.getDefaultValue();
153
157
  }
154
158
  });
155
159
  }
@@ -176,13 +180,20 @@ function TSDocReflectionProperty(props) {
176
180
  * Uses the `useReflectionProperty` hook to retrieve the reflection property from the context, and then renders a `TSDocReflectionProperty` component with the retrieved reflection property. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection property without having to manually retrieve the reflection property from the context.
177
181
  */
178
182
  function TSDocContextProperty(props) {
179
- const reflection = require_core_contexts_reflection.useReflectionProperty();
183
+ const reflection = require_core_contexts_reflection.useReflectionPropertyContext();
180
184
  return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
181
185
  get when() {
182
186
  return (0, _stryke_type_checks.isSetObject)(reflection);
183
187
  },
184
188
  get children() {
185
- return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocReflectionProperty, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, { reflection }));
189
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocReflectionProperty, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, {
190
+ get reflection() {
191
+ return reflection.property;
192
+ },
193
+ get defaultValue() {
194
+ return reflection.defaultValue;
195
+ }
196
+ }));
186
197
  }
187
198
  });
188
199
  }
@@ -1,5 +1,5 @@
1
1
  import { TSDocProps } from "./tsdoc.cjs";
2
- import * as _alloy_js_core0 from "@alloy-js/core";
2
+ import * as _$_alloy_js_core0 from "@alloy-js/core";
3
3
  import { ReflectionClass, ReflectionMethod, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
4
 
5
5
  //#region src/typescript/components/tsdoc-reflection.d.ts
@@ -9,33 +9,34 @@ interface TSDocReflectionClassProps<T extends Record<string, any> = Record<strin
9
9
  /**
10
10
  * Generates a TSDoc documentation block for the given reflection class. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about properties or methods of a class.
11
11
  */
12
- declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocReflectionClassProps<T>): _alloy_js_core0.Children;
12
+ declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocReflectionClassProps<T>): _$_alloy_js_core0.Children;
13
13
  /**
14
14
  * Uses the `useReflectionClass` hook to retrieve the reflection class from the context, and then renders a `TSDocReflectionClass` component with the retrieved reflection class. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection class without having to manually retrieve the reflection class from the context.
15
15
  */
16
- declare function TSDocContextClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core0.Children;
16
+ declare function TSDocContextClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _$_alloy_js_core0.Children;
17
17
  interface TSDocReflectionPropertyProps extends TSDocProps {
18
18
  reflection: ReflectionProperty;
19
+ defaultValue?: any;
19
20
  }
20
21
  /**
21
22
  * Generates a TSDoc documentation block for the given reflection property. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about parameters of a method or properties of a class.
22
23
  */
23
- declare function TSDocReflectionProperty(props: TSDocReflectionPropertyProps): _alloy_js_core0.Children;
24
+ declare function TSDocReflectionProperty(props: TSDocReflectionPropertyProps): _$_alloy_js_core0.Children;
24
25
  /**
25
26
  * Uses the `useReflectionProperty` hook to retrieve the reflection property from the context, and then renders a `TSDocReflectionProperty` component with the retrieved reflection property. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection property without having to manually retrieve the reflection property from the context.
26
27
  */
27
- declare function TSDocContextProperty(props: TSDocProps): _alloy_js_core0.Children;
28
+ declare function TSDocContextProperty(props: TSDocProps): _$_alloy_js_core0.Children;
28
29
  interface TSDocReflectionMethodProps extends TSDocProps {
29
30
  reflection: ReflectionMethod;
30
31
  }
31
32
  /**
32
33
  * Generates a TSDoc documentation block for the given reflection method. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. Additionally, this component will render information about the parameters and return type of the method, if available.
33
34
  */
34
- declare function TSDocReflectionMethod(props: TSDocReflectionMethodProps): _alloy_js_core0.Children;
35
+ declare function TSDocReflectionMethod(props: TSDocReflectionMethodProps): _$_alloy_js_core0.Children;
35
36
  /**
36
37
  * Uses the `useReflectionMethod` hook to retrieve the reflection method from the context, and then renders a `TSDocReflectionMethod` component with the retrieved reflection method. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection method without having to manually retrieve the reflection method from the context.
37
38
  */
38
- declare function TSDocContextMethod(props: TSDocProps): _alloy_js_core0.Children;
39
+ declare function TSDocContextMethod(props: TSDocProps): _$_alloy_js_core0.Children;
39
40
  declare type __ΩTSDocReflectionClassProps = any[];
40
41
  declare type __ΩTSDocReflectionPropertyProps = any[];
41
42
  declare type __ΩTSDocReflectionMethodProps = any[];
@@ -1 +1 @@
1
- {"version":3,"file":"tsdoc-reflection.d.cts","names":[],"sources":["../../../src/typescript/components/tsdoc-reflection.tsx"],"mappings":";;;;;UAqDiB,yBAAA,WACL,MAAA,gBAAsB,MAAA,uBACxB,UAAA;EACR,UAAA,EAAY,eAAA,CAAgB,CAAA;AAAA;AAH9B;;;AAAA,iBASgB,oBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAChC,KAAA,EAAO,yBAAA,CAA0B,CAAA,IAAD,eAAA,CAAG,QAAA;;;;iBAkFrB,iBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAChC,KAAA,EAAO,UAAA,GAAU,eAAA,CAAA,QAAA;AAAA,UAaF,4BAAA,SAAqC,UAAA;EACpD,UAAA,EAAY,kBAAA;AAAA;;;;iBAME,uBAAA,CAAwB,KAAA,EAAO,4BAAA,GAA4B,eAAA,CAAA,QAAA;;;;iBA0D3D,oBAAA,CAAqB,KAAA,EAAO,UAAA,GAAU,eAAA,CAAA,QAAA;AAAA,UAUrC,0BAAA,SAAmC,UAAA;EAClD,UAAA,EAAY,gBAAA;AAAA;;;;iBAME,qBAAA,CAAsB,KAAA,EAAO,0BAAA,GAA0B,eAAA,CAAA,QAAA;;;;iBAoEvD,kBAAA,CAAmB,KAAA,EAAO,UAAA,GAAU,eAAA,CAAA,QAAA;AAAA"}
1
+ {"version":3,"file":"tsdoc-reflection.d.cts","names":[],"sources":["../../../src/typescript/components/tsdoc-reflection.tsx"],"mappings":";;;;;UAqDiB,yBAAA,WACL,MAAA,gBAAsB,MAAA,uBACxB,UAAA;EACR,UAAA,EAAY,eAAA,CAAgB,CAAA;AAAA;AAH9B;;;AAAA,iBASgB,oBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAChC,KAAA,EAAO,yBAAA,CAA0B,CAAA,IAAD,iBAAA,CAAG,QAAA;;;;iBAkFrB,iBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAChC,KAAA,EAAO,UAAA,GAAU,iBAAA,CAAA,QAAA;AAAA,UAaF,4BAAA,SAAqC,UAAA;EACpD,UAAA,EAAY,kBAAA;EACZ,YAAA;AAAA;;;;iBAMc,uBAAA,CAAwB,KAAA,EAAO,4BAAA,GAA4B,iBAAA,CAAA,QAAA;;;;iBA2D3D,oBAAA,CAAqB,KAAA,EAAO,UAAA,GAAU,iBAAA,CAAA,QAAA;AAAA,UAcrC,0BAAA,SAAmC,UAAA;EAClD,UAAA,EAAY,gBAAA;AAAA;;;;iBAME,qBAAA,CAAsB,KAAA,EAAO,0BAAA,GAA0B,iBAAA,CAAA,QAAA;;;;iBAoEvD,kBAAA,CAAmB,KAAA,EAAO,UAAA,GAAU,iBAAA,CAAA,QAAA;AAAA"}
@@ -1,5 +1,5 @@
1
1
  import { TSDocProps } from "./tsdoc.mjs";
2
- import * as _alloy_js_core0 from "@alloy-js/core";
2
+ import * as _$_alloy_js_core0 from "@alloy-js/core";
3
3
  import { ReflectionClass, ReflectionMethod, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
4
 
5
5
  //#region src/typescript/components/tsdoc-reflection.d.ts
@@ -9,33 +9,34 @@ interface TSDocReflectionClassProps<T extends Record<string, any> = Record<strin
9
9
  /**
10
10
  * Generates a TSDoc documentation block for the given reflection class. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about properties or methods of a class.
11
11
  */
12
- declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocReflectionClassProps<T>): _alloy_js_core0.Children;
12
+ declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocReflectionClassProps<T>): _$_alloy_js_core0.Children;
13
13
  /**
14
14
  * Uses the `useReflectionClass` hook to retrieve the reflection class from the context, and then renders a `TSDocReflectionClass` component with the retrieved reflection class. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection class without having to manually retrieve the reflection class from the context.
15
15
  */
16
- declare function TSDocContextClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core0.Children;
16
+ declare function TSDocContextClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _$_alloy_js_core0.Children;
17
17
  interface TSDocReflectionPropertyProps extends TSDocProps {
18
18
  reflection: ReflectionProperty;
19
+ defaultValue?: any;
19
20
  }
20
21
  /**
21
22
  * Generates a TSDoc documentation block for the given reflection property. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about parameters of a method or properties of a class.
22
23
  */
23
- declare function TSDocReflectionProperty(props: TSDocReflectionPropertyProps): _alloy_js_core0.Children;
24
+ declare function TSDocReflectionProperty(props: TSDocReflectionPropertyProps): _$_alloy_js_core0.Children;
24
25
  /**
25
26
  * Uses the `useReflectionProperty` hook to retrieve the reflection property from the context, and then renders a `TSDocReflectionProperty` component with the retrieved reflection property. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection property without having to manually retrieve the reflection property from the context.
26
27
  */
27
- declare function TSDocContextProperty(props: TSDocProps): _alloy_js_core0.Children;
28
+ declare function TSDocContextProperty(props: TSDocProps): _$_alloy_js_core0.Children;
28
29
  interface TSDocReflectionMethodProps extends TSDocProps {
29
30
  reflection: ReflectionMethod;
30
31
  }
31
32
  /**
32
33
  * Generates a TSDoc documentation block for the given reflection method. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. Additionally, this component will render information about the parameters and return type of the method, if available.
33
34
  */
34
- declare function TSDocReflectionMethod(props: TSDocReflectionMethodProps): _alloy_js_core0.Children;
35
+ declare function TSDocReflectionMethod(props: TSDocReflectionMethodProps): _$_alloy_js_core0.Children;
35
36
  /**
36
37
  * Uses the `useReflectionMethod` hook to retrieve the reflection method from the context, and then renders a `TSDocReflectionMethod` component with the retrieved reflection method. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection method without having to manually retrieve the reflection method from the context.
37
38
  */
38
- declare function TSDocContextMethod(props: TSDocProps): _alloy_js_core0.Children;
39
+ declare function TSDocContextMethod(props: TSDocProps): _$_alloy_js_core0.Children;
39
40
  declare type __ΩTSDocReflectionClassProps = any[];
40
41
  declare type __ΩTSDocReflectionPropertyProps = any[];
41
42
  declare type __ΩTSDocReflectionMethodProps = any[];
@@ -1 +1 @@
1
- {"version":3,"file":"tsdoc-reflection.d.mts","names":[],"sources":["../../../src/typescript/components/tsdoc-reflection.tsx"],"mappings":";;;;;UAqDiB,yBAAA,WACL,MAAA,gBAAsB,MAAA,uBACxB,UAAA;EACR,UAAA,EAAY,eAAA,CAAgB,CAAA;AAAA;AAH9B;;;AAAA,iBASgB,oBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAChC,KAAA,EAAO,yBAAA,CAA0B,CAAA,IAAD,eAAA,CAAG,QAAA;;;;iBAkFrB,iBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAChC,KAAA,EAAO,UAAA,GAAU,eAAA,CAAA,QAAA;AAAA,UAaF,4BAAA,SAAqC,UAAA;EACpD,UAAA,EAAY,kBAAA;AAAA;;;;iBAME,uBAAA,CAAwB,KAAA,EAAO,4BAAA,GAA4B,eAAA,CAAA,QAAA;;;;iBA0D3D,oBAAA,CAAqB,KAAA,EAAO,UAAA,GAAU,eAAA,CAAA,QAAA;AAAA,UAUrC,0BAAA,SAAmC,UAAA;EAClD,UAAA,EAAY,gBAAA;AAAA;;;;iBAME,qBAAA,CAAsB,KAAA,EAAO,0BAAA,GAA0B,eAAA,CAAA,QAAA;;;;iBAoEvD,kBAAA,CAAmB,KAAA,EAAO,UAAA,GAAU,eAAA,CAAA,QAAA;AAAA"}
1
+ {"version":3,"file":"tsdoc-reflection.d.mts","names":[],"sources":["../../../src/typescript/components/tsdoc-reflection.tsx"],"mappings":";;;;;UAqDiB,yBAAA,WACL,MAAA,gBAAsB,MAAA,uBACxB,UAAA;EACR,UAAA,EAAY,eAAA,CAAgB,CAAA;AAAA;AAH9B;;;AAAA,iBASgB,oBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAChC,KAAA,EAAO,yBAAA,CAA0B,CAAA,IAAD,iBAAA,CAAG,QAAA;;;;iBAkFrB,iBAAA,WACJ,MAAA,gBAAsB,MAAA,cAAA,CAChC,KAAA,EAAO,UAAA,GAAU,iBAAA,CAAA,QAAA;AAAA,UAaF,4BAAA,SAAqC,UAAA;EACpD,UAAA,EAAY,kBAAA;EACZ,YAAA;AAAA;;;;iBAMc,uBAAA,CAAwB,KAAA,EAAO,4BAAA,GAA4B,iBAAA,CAAA,QAAA;;;;iBA2D3D,oBAAA,CAAqB,KAAA,EAAO,UAAA,GAAU,iBAAA,CAAA,QAAA;AAAA,UAcrC,0BAAA,SAAmC,UAAA;EAClD,UAAA,EAAY,gBAAA;AAAA;;;;iBAME,qBAAA,CAAsB,KAAA,EAAO,0BAAA,GAA0B,iBAAA,CAAA,QAAA;;;;iBAoEvD,kBAAA,CAAmB,KAAA,EAAO,UAAA,GAAU,iBAAA,CAAA,QAAA;AAAA"}
@@ -1,4 +1,4 @@
1
- import { useReflectionClass, useReflectionMethod, useReflectionProperty } from "../../core/contexts/reflection.mjs";
1
+ import { useReflectionClass, useReflectionMethod, useReflectionPropertyContext } from "../../core/contexts/reflection.mjs";
2
2
  import { Spacing } from "../../core/components/spacing.mjs";
3
3
  import { TSDoc, TSDocAttributesTags, TSDocParam, TSDocReturns } from "./tsdoc.mjs";
4
4
  import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
@@ -109,7 +109,11 @@ function TSDocContextClass(props) {
109
109
  * Generates a TSDoc documentation block for the given reflection property. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about parameters of a method or properties of a class.
110
110
  */
111
111
  function TSDocReflectionProperty(props) {
112
- const [{ children, reflection }, rest] = splitProps(props, ["children", "reflection"]);
112
+ const [{ children, reflection, defaultValue }, rest] = splitProps(props, [
113
+ "children",
114
+ "reflection",
115
+ "defaultValue"
116
+ ]);
113
117
  if (!isSetObject(reflection)) return null;
114
118
  const hasAttributes = computed(() => isSetString(reflection.getTitle()) || !isUndefined(reflection.getAlias()) && reflection.getAlias().length > 0 || !isUndefined(reflection.getPermission()) && reflection.getPermission().length > 0 || isSetString(reflection.getDomain()) || !isUndefined(reflection.isReadonly()) || !isUndefined(reflection.isInternal()) || !isUndefined(reflection.isIgnored()) || !isUndefined(reflection.isHidden()) || reflection.hasDefault() && !isUndefined(reflection.getDefaultValue()));
115
119
  return createComponent(TSDoc, mergeProps({ get heading() {
@@ -147,7 +151,7 @@ function TSDocReflectionProperty(props) {
147
151
  return reflection.isHidden();
148
152
  },
149
153
  get defaultValue() {
150
- return reflection.getDefaultValue();
154
+ return defaultValue ?? reflection.getDefaultValue();
151
155
  }
152
156
  });
153
157
  }
@@ -174,13 +178,20 @@ function TSDocReflectionProperty(props) {
174
178
  * Uses the `useReflectionProperty` hook to retrieve the reflection property from the context, and then renders a `TSDocReflectionProperty` component with the retrieved reflection property. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection property without having to manually retrieve the reflection property from the context.
175
179
  */
176
180
  function TSDocContextProperty(props) {
177
- const reflection = useReflectionProperty();
181
+ const reflection = useReflectionPropertyContext();
178
182
  return createComponent(Show, {
179
183
  get when() {
180
184
  return isSetObject(reflection);
181
185
  },
182
186
  get children() {
183
- return createComponent(TSDocReflectionProperty, mergeProps(props, { reflection }));
187
+ return createComponent(TSDocReflectionProperty, mergeProps(props, {
188
+ get reflection() {
189
+ return reflection.property;
190
+ },
191
+ get defaultValue() {
192
+ return reflection.defaultValue;
193
+ }
194
+ }));
184
195
  }
185
196
  });
186
197
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tsdoc-reflection.mjs","names":[],"sources":["../../../src/typescript/components/tsdoc-reflection.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n childrenArray,\n code,\n computed,\n For,\n List,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport {\n ReflectionClass,\n ReflectionKind,\n ReflectionMethod,\n ReflectionProperty,\n stringifyType\n} from \"@powerlines/deepkit/vendor/type\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isSetObject } from \"@stryke/type-checks\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport { Spacing } from \"../../core/components/spacing\";\nimport {\n useReflectionClass,\n useReflectionMethod,\n useReflectionProperty\n} from \"../../core/contexts/reflection\";\nimport {\n TSDoc,\n TSDocAttributesTags,\n TSDocParam,\n TSDocProps,\n TSDocReturns\n} from \"./tsdoc\";\n\nexport interface TSDocReflectionClassProps<\n T extends Record<string, any> = Record<string, any>\n> extends TSDocProps {\n reflection: ReflectionClass<T>;\n}\n\n/**\n * Generates a TSDoc documentation block for the given reflection class. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about properties or methods of a class.\n */\nexport function TSDocReflectionClass<\n T extends Record<string, any> = Record<string, any>\n>(props: TSDocReflectionClassProps<T>) {\n const [{ children, heading, reflection }, rest] = splitProps(props, [\n \"heading\",\n \"children\",\n \"reflection\"\n ]);\n\n if (!isSetObject(reflection)) {\n return null;\n }\n\n const title = computed(\n () => reflection.getTitle() || titleCase(reflection.getName())\n );\n const computedHeading = computed(\n () => heading || reflection.getDescription() || title.value\n );\n\n const alias = computed(() => reflection.getAlias());\n const domain = computed(() => reflection.getDomain());\n const permission = computed(() => reflection.getPermission());\n const readonly = computed(() => reflection.isReadonly());\n const internal = computed(() => reflection.isInternal());\n const ignore = computed(() => reflection.isIgnored());\n const hidden = computed(() => reflection.isHidden());\n\n if (\n !computedHeading.value ||\n (isSetString(computedHeading.value) && computedHeading.value.trim() === \"\")\n ) {\n return null;\n }\n\n const hasAttributes = computed(\n () =>\n isSetString(title.value) ||\n (!isUndefined(alias.value) && alias.value.length > 0) ||\n (!isUndefined(permission.value) && permission.value.length > 0) ||\n isSetString(domain.value) ||\n !isUndefined(readonly.value) ||\n !isUndefined(internal.value) ||\n !isUndefined(ignore.value) ||\n !isUndefined(hidden.value)\n );\n\n return (\n <TSDoc\n {...rest}\n heading={\n isSetString(computedHeading.value)\n ? computedHeading.value.trim()\n : computedHeading.value\n }>\n <Show when={hasAttributes.value}>\n <TSDocAttributesTags\n title={title.value}\n alias={alias.value}\n domain={domain.value}\n permission={permission.value}\n readonly={readonly.value}\n internal={internal.value}\n ignore={ignore.value}\n hidden={hidden.value}\n />\n </Show>\n <Show\n when={\n !isUndefined(children) &&\n childrenArray(() => children).filter(Boolean).length > 0\n }>\n <Show when={hasAttributes.value}>\n <Spacing />\n </Show>\n <List>{childrenArray(() => children)}</List>\n </Show>\n </TSDoc>\n );\n}\n\n/**\n * Uses the `useReflectionClass` hook to retrieve the reflection class from the context, and then renders a `TSDocReflectionClass` component with the retrieved reflection class. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection class without having to manually retrieve the reflection class from the context.\n */\nexport function TSDocContextClass<\n T extends Record<string, any> = Record<string, any>\n>(props: TSDocProps) {\n const reflectionClass = useReflectionClass<T>();\n\n return (\n <Show when={isSetObject(reflectionClass.reflection)}>\n <TSDocReflectionClass\n {...props}\n reflection={reflectionClass.reflection}\n />\n </Show>\n );\n}\n\nexport interface TSDocReflectionPropertyProps extends TSDocProps {\n reflection: ReflectionProperty;\n}\n\n/**\n * Generates a TSDoc documentation block for the given reflection property. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about parameters of a method or properties of a class.\n */\nexport function TSDocReflectionProperty(props: TSDocReflectionPropertyProps) {\n const [{ children, reflection }, rest] = splitProps(props, [\n \"children\",\n \"reflection\"\n ]);\n\n if (!isSetObject(reflection)) {\n return null;\n }\n\n const hasAttributes = computed(\n () =>\n isSetString(reflection.getTitle()) ||\n (!isUndefined(reflection.getAlias()) &&\n reflection.getAlias().length > 0) ||\n (!isUndefined(reflection.getPermission()) &&\n reflection.getPermission().length > 0) ||\n isSetString(reflection.getDomain()) ||\n !isUndefined(reflection.isReadonly()) ||\n !isUndefined(reflection.isInternal()) ||\n !isUndefined(reflection.isIgnored()) ||\n !isUndefined(reflection.isHidden()) ||\n (reflection.hasDefault() && !isUndefined(reflection.getDefaultValue()))\n );\n\n return (\n <TSDoc heading={reflection.getDescription()} {...rest}>\n <Show when={hasAttributes.value}>\n <TSDocAttributesTags\n type={reflection}\n title={reflection.getTitle()}\n alias={reflection.getAlias()}\n domain={reflection.getDomain()}\n permission={reflection.getPermission()}\n readonly={reflection.isReadonly()}\n internal={reflection.isInternal()}\n ignore={reflection.isIgnored()}\n hidden={reflection.isHidden()}\n defaultValue={reflection.getDefaultValue()}\n />\n </Show>\n <Show\n when={\n !isUndefined(children) &&\n childrenArray(() => children).filter(Boolean).length > 0\n }>\n <Show when={hasAttributes.value}>\n <Spacing />\n </Show>\n <List>{childrenArray(() => children)}</List>\n </Show>\n </TSDoc>\n );\n}\n\n/**\n * Uses the `useReflectionProperty` hook to retrieve the reflection property from the context, and then renders a `TSDocReflectionProperty` component with the retrieved reflection property. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection property without having to manually retrieve the reflection property from the context.\n */\nexport function TSDocContextProperty(props: TSDocProps) {\n const reflection = useReflectionProperty();\n\n return (\n <Show when={isSetObject(reflection)}>\n <TSDocReflectionProperty {...props} reflection={reflection} />\n </Show>\n );\n}\n\nexport interface TSDocReflectionMethodProps extends TSDocProps {\n reflection: ReflectionMethod;\n}\n\n/**\n * Generates a TSDoc documentation block for the given reflection method. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. Additionally, this component will render information about the parameters and return type of the method, if available.\n */\nexport function TSDocReflectionMethod(props: TSDocReflectionMethodProps) {\n const [{ children, reflection }, rest] = splitProps(props, [\n \"children\",\n \"reflection\"\n ]);\n\n if (!isSetObject(reflection)) {\n return null;\n }\n\n const heading = computed(\n () =>\n reflection.getDescription() ||\n (isString(reflection.getName())\n ? code`${String(reflection.getName())} method definition`\n : undefined)\n );\n\n return (\n <TSDoc heading={heading.value} {...rest}>\n <TSDocAttributesTags\n title={reflection.getTitle()}\n alias={reflection.getAlias()}\n domain={reflection.getDomain()}\n permission={reflection.getPermission()}\n readonly={reflection.isReadonly()}\n internal={reflection.isInternal()}\n ignore={reflection.isIgnored()}\n hidden={reflection.isHidden()}\n />\n <Show\n when={Boolean(children) && childrenArray(() => children).length > 0}>\n <List>{childrenArray(() => children)}</List>\n </Show>\n <Show when={reflection.getParameters().length > 0}>\n <Spacing />\n <For each={reflection.getParameters()} hardline ender={<hbr />}>\n {param => (\n <TSDocParam\n name={param.getName()}\n optional={param.isOptional()}\n defaultValue={\n param.hasDefault() ? param.getDefaultValue() : undefined\n }>\n <Show\n when={Boolean(param.parameter.description)}\n fallback={code`A parameter to provide a ${param.getName()} value to the function.`}>\n {param.parameter.description}\n </Show>\n </TSDocParam>\n )}\n </For>\n </Show>\n <Show when={reflection.getReturnType().kind !== ReflectionKind.void}>\n <Spacing />\n <TSDocReturns>\n {code`The return value of the function, which is of type ${stringifyType(\n reflection.getReturnType()\n )}.`}\n </TSDocReturns>\n </Show>\n </TSDoc>\n );\n}\n\n/**\n * Uses the `useReflectionMethod` hook to retrieve the reflection method from the context, and then renders a `TSDocReflectionMethod` component with the retrieved reflection method. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection method without having to manually retrieve the reflection method from the context.\n */\nexport function TSDocContextMethod(props: TSDocProps) {\n const reflection = useReflectionMethod();\n\n return (\n <Show when={isSetObject(reflection)}>\n <TSDocReflectionMethod {...props} reflection={reflection} />\n </Show>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAoCA,SAAS,qBAAsD,OAAA;CAC/D,MAAQ,CAAC,EACT,UACA,SACA,cACE,QAAA,WAAkB,OAAA;EAAA;EAAA;EAAA;EAAA,CAAA;AAClB,KAAA,CAAA,YAAA,WAAmB,CACnB,QAAA;CAEF,MAAO,QAAA,eAAA,WAAA,UAAA,IAAA,UAAA,WAAA,SAAA,CAAA,CAAA;CACL,MAAK,kBAAA,eAAA,WAAA,WAAA,gBAAA,IAAA,MAAA,MAAA;CACL,MAAA,QAAA,eAAmB,WAAA,UAAA,CAAA;CACnB,MAAA,SAAU,eAAA,WAAA,WAAA,CAAA;CACV,MAAA,aAAU,eAAA,WAAA,eAAA,CAAA;CACV,MAAA,WAAA,eAAA,WAAA,YAAA,CAAA;CACA,MAAM,WAAQ,eAAA,WAAA,YAAA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ources":["../../../src/typescript/components/tsdoc-reflection.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n childrenArray,\n code,\n computed,\n For,\n List,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport {\n ReflectionClass,\n ReflectionKind,\n ReflectionMethod,\n ReflectionProperty,\n stringifyType\n} from \"@powerlines/deepkit/vendor/type\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isSetObject } from \"@stryke/type-checks\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport { Spacing } from \"../../core/components/spacing\";\nimport {\n useReflectionClass,\n useReflectionMethod,\n useReflectionPropertyContext\n} from \"../../core/contexts/reflection\";\nimport {\n TSDoc,\n TSDocAttributesTags,\n TSDocParam,\n TSDocProps,\n TSDocReturns\n} from \"./tsdoc\";\n\nexport interface TSDocReflectionClassProps<\n T extends Record<string, any> = Record<string, any>\n> extends TSDocProps {\n reflection: ReflectionClass<T>;\n}\n\n/**\n * Generates a TSDoc documentation block for the given reflection class. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about properties or methods of a class.\n */\nexport function TSDocReflectionClass<\n T extends Record<string, any> = Record<string, any>\n>(props: TSDocReflectionClassProps<T>) {\n const [{ children, heading, reflection }, rest] = splitProps(props, [\n \"heading\",\n \"children\",\n \"reflection\"\n ]);\n\n if (!isSetObject(reflection)) {\n return null;\n }\n\n const title = computed(\n () => reflection.getTitle() || titleCase(reflection.getName())\n );\n const computedHeading = computed(\n () => heading || reflection.getDescription() || title.value\n );\n\n const alias = computed(() => reflection.getAlias());\n const domain = computed(() => reflection.getDomain());\n const permission = computed(() => reflection.getPermission());\n const readonly = computed(() => reflection.isReadonly());\n const internal = computed(() => reflection.isInternal());\n const ignore = computed(() => reflection.isIgnored());\n const hidden = computed(() => reflection.isHidden());\n\n if (\n !computedHeading.value ||\n (isSetString(computedHeading.value) && computedHeading.value.trim() === \"\")\n ) {\n return null;\n }\n\n const hasAttributes = computed(\n () =>\n isSetString(title.value) ||\n (!isUndefined(alias.value) && alias.value.length > 0) ||\n (!isUndefined(permission.value) && permission.value.length > 0) ||\n isSetString(domain.value) ||\n !isUndefined(readonly.value) ||\n !isUndefined(internal.value) ||\n !isUndefined(ignore.value) ||\n !isUndefined(hidden.value)\n );\n\n return (\n <TSDoc\n {...rest}\n heading={\n isSetString(computedHeading.value)\n ? computedHeading.value.trim()\n : computedHeading.value\n }>\n <Show when={hasAttributes.value}>\n <TSDocAttributesTags\n title={title.value}\n alias={alias.value}\n domain={domain.value}\n permission={permission.value}\n readonly={readonly.value}\n internal={internal.value}\n ignore={ignore.value}\n hidden={hidden.value}\n />\n </Show>\n <Show\n when={\n !isUndefined(children) &&\n childrenArray(() => children).filter(Boolean).length > 0\n }>\n <Show when={hasAttributes.value}>\n <Spacing />\n </Show>\n <List>{childrenArray(() => children)}</List>\n </Show>\n </TSDoc>\n );\n}\n\n/**\n * Uses the `useReflectionClass` hook to retrieve the reflection class from the context, and then renders a `TSDocReflectionClass` component with the retrieved reflection class. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection class without having to manually retrieve the reflection class from the context.\n */\nexport function TSDocContextClass<\n T extends Record<string, any> = Record<string, any>\n>(props: TSDocProps) {\n const reflectionClass = useReflectionClass<T>();\n\n return (\n <Show when={isSetObject(reflectionClass.reflection)}>\n <TSDocReflectionClass\n {...props}\n reflection={reflectionClass.reflection}\n />\n </Show>\n );\n}\n\nexport interface TSDocReflectionPropertyProps extends TSDocProps {\n reflection: ReflectionProperty;\n defaultValue?: any;\n}\n\n/**\n * Generates a TSDoc documentation block for the given reflection property. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about parameters of a method or properties of a class.\n */\nexport function TSDocReflectionProperty(props: TSDocReflectionPropertyProps) {\n const [{ children, reflection, defaultValue }, rest] = splitProps(props, [\n \"children\",\n \"reflection\",\n \"defaultValue\"\n ]);\n\n if (!isSetObject(reflection)) {\n return null;\n }\n\n const hasAttributes = computed(\n () =>\n isSetString(reflection.getTitle()) ||\n (!isUndefined(reflection.getAlias()) &&\n reflection.getAlias().length > 0) ||\n (!isUndefined(reflection.getPermission()) &&\n reflection.getPermission().length > 0) ||\n isSetString(reflection.getDomain()) ||\n !isUndefined(reflection.isReadonly()) ||\n !isUndefined(reflection.isInternal()) ||\n !isUndefined(reflection.isIgnored()) ||\n !isUndefined(reflection.isHidden()) ||\n (reflection.hasDefault() && !isUndefined(reflection.getDefaultValue()))\n );\n\n return (\n <TSDoc heading={reflection.getDescription()} {...rest}>\n <Show when={hasAttributes.value}>\n <TSDocAttributesTags\n type={reflection}\n title={reflection.getTitle()}\n alias={reflection.getAlias()}\n domain={reflection.getDomain()}\n permission={reflection.getPermission()}\n readonly={reflection.isReadonly()}\n internal={reflection.isInternal()}\n ignore={reflection.isIgnored()}\n hidden={reflection.isHidden()}\n defaultValue={defaultValue ?? reflection.getDefaultValue()}\n />\n </Show>\n <Show\n when={\n !isUndefined(children) &&\n childrenArray(() => children).filter(Boolean).length > 0\n }>\n <Show when={hasAttributes.value}>\n <Spacing />\n </Show>\n <List>{childrenArray(() => children)}</List>\n </Show>\n </TSDoc>\n );\n}\n\n/**\n * Uses the `useReflectionProperty` hook to retrieve the reflection property from the context, and then renders a `TSDocReflectionProperty` component with the retrieved reflection property. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection property without having to manually retrieve the reflection property from the context.\n */\nexport function TSDocContextProperty(props: TSDocProps) {\n const reflection = useReflectionPropertyContext();\n\n return (\n <Show when={isSetObject(reflection)}>\n <TSDocReflectionProperty\n {...props}\n reflection={reflection.property}\n defaultValue={reflection.defaultValue}\n />\n </Show>\n );\n}\n\nexport interface TSDocReflectionMethodProps extends TSDocProps {\n reflection: ReflectionMethod;\n}\n\n/**\n * Generates a TSDoc documentation block for the given reflection method. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. Additionally, this component will render information about the parameters and return type of the method, if available.\n */\nexport function TSDocReflectionMethod(props: TSDocReflectionMethodProps) {\n const [{ children, reflection }, rest] = splitProps(props, [\n \"children\",\n \"reflection\"\n ]);\n\n if (!isSetObject(reflection)) {\n return null;\n }\n\n const heading = computed(\n () =>\n reflection.getDescription() ||\n (isString(reflection.getName())\n ? code`${String(reflection.getName())} method definition`\n : undefined)\n );\n\n return (\n <TSDoc heading={heading.value} {...rest}>\n <TSDocAttributesTags\n title={reflection.getTitle()}\n alias={reflection.getAlias()}\n domain={reflection.getDomain()}\n permission={reflection.getPermission()}\n readonly={reflection.isReadonly()}\n internal={reflection.isInternal()}\n ignore={reflection.isIgnored()}\n hidden={reflection.isHidden()}\n />\n <Show\n when={Boolean(children) && childrenArray(() => children).length > 0}>\n <List>{childrenArray(() => children)}</List>\n </Show>\n <Show when={reflection.getParameters().length > 0}>\n <Spacing />\n <For each={reflection.getParameters()} hardline ender={<hbr />}>\n {param => (\n <TSDocParam\n name={param.getName()}\n optional={param.isOptional()}\n defaultValue={\n param.hasDefault() ? param.getDefaultValue() : undefined\n }>\n <Show\n when={Boolean(param.parameter.description)}\n fallback={code`A parameter to provide a ${param.getName()} value to the function.`}>\n {param.parameter.description}\n </Show>\n </TSDocParam>\n )}\n </For>\n </Show>\n <Show when={reflection.getReturnType().kind !== ReflectionKind.void}>\n <Spacing />\n <TSDocReturns>\n {code`The return value of the function, which is of type ${stringifyType(\n reflection.getReturnType()\n )}.`}\n </TSDocReturns>\n </Show>\n </TSDoc>\n );\n}\n\n/**\n * Uses the `useReflectionMethod` hook to retrieve the reflection method from the context, and then renders a `TSDocReflectionMethod` component with the retrieved reflection method. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection method without having to manually retrieve the reflection method from the context.\n */\nexport function TSDocContextMethod(props: TSDocProps) {\n const reflection = useReflectionMethod();\n\n return (\n <Show when={isSetObject(reflection)}>\n <TSDocReflectionMethod {...props} reflection={reflection} />\n </Show>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAoCA,SAAS,qBAAsD,OAAA;CAC/D,MAAQ,CAAC,EACT,UACA,SACA,cACE,QAAA,WAAkB,OAAA;EAAA;EAAA;EAAA;EAAA,CAAA;AAClB,KAAA,CAAA,YAAA,WAAmB,CACnB,QAAA;CAEF,MAAO,QAAA,eAAA,WAAA,UAAA,IAAA,UAAA,WAAA,SAAA,CAAA,CAAA;CACL,MAAK,kBAAA,eAAA,WAAA,WAAA,gBAAA,IAAA,MAAA,MAAA;CACL,MAAA,QAAA,eAAmB,WAAA,UAAA,CAAA;CACnB,MAAA,SAAU,eAAA,WAAA,WAAA,CAAA;CACV,MAAA,aAAU,eAAA,WAAA,eAAA,CAAA;CACV,MAAA,WAAA,eAAA,WAAA,YAAA,CAAA;CACA,MAAM,WAAQ,eAAA,WAAA,YAAA,CAAA;;CAEhB,MAAO,SAAU,eAAA,WAAyB,UAAA,CAAA;AACxC,KAAE,CAAA,gBAAe,SAAa,YAAS,gBAAW,MAAA,IAAA,gBAAA,MAAA,MAAA,KAAA,GAClD,QAAQ;CAEV,MAAA,gBAAA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E,QAAO;AACP,YAAA,WAAS,UAAA;;;AAGV,YAAA,WAAA,UAAA;;IAEF,IAAA,SAAA;AACC,YAAO,WAAW,WAAU;;IAE5B,IAAA,aAAQ;AACR,YAAA,WAAY,eAAW;;IAEvB,IAAA,WAAU;AACV,YAAQ,WAAW,YAAW;;IAE/B,IAAA,WAAA;AACA,YAAA,WAAA,YAAA;;IAEC,IAAC,SAAM;AACP,YAAI,WAAA,WAAA;;IAEJ,IAAC,SAAS;AACT,YAAQ,WAAE,UAAW;;IAEvB,CAAC;GAAE,gBAAG,MAAA;IACL,IAAI,OAAO;AACT,YAAI,WAAgB,CAAA,CAAA,QAAU,SAAE,CAAA,EAAA,IAAA,oBAAA,SAAA,CAAA,SAAA;;IAElC,IAAI,WAAU;AACZ,YAAK,gBAAA,MAAA,EACH,IAAG,WAAA;AACD,aAAO,oBAAe,SAAU;QAEnC,CAAC;;IAEL,CAAC;GAAE,gBAAc,MAAA;IAChB,IAAG,OAAA;AACD,YAAG,WAAA,eAAA,CAAA,SAAA;;IAEN,IAAK,WAAM;AACT,YAAQ,CAAC,gBAAA,SAAA,EAAA,CAAA,EAAA,gBAAA,KAAA;MACT,IAAA,OAAY;AACV,cAAS,WAAY,eAAQ;;MAE5B,UAAE;MACJ,IAAA,QAAY;AACV,cAAA,gBAAA,OAAA,EAAA,CAAA;;MAET,WAAA,UAAA,gBAAA,YAAA;OACH,IAAA,OAAA;;;OAGa,IAAA,WAAA;AACX,eAAA,MAAA,YAAA;;OAEM,IAAU,eAAG;;;OAGP,IAAE,WAAY;AACrB,eAAA,gBAAiC,MAAA;SAC9B,IAAA,OAAA;AACP,iBAAA,QAAA,MAAA,UAAA,YAAA"}
@@ -1,7 +1,7 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
2
  import { Children } from "@alloy-js/core";
3
- import { ReflectionKind, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
3
  import { JSDocExampleProps, ParameterDescriptor } from "@alloy-js/typescript";
4
+ import { ReflectionKind, ReflectionParameter, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
5
5
 
6
6
  //#region src/typescript/components/tsdoc.d.ts
7
7
  interface TSDocProps extends ComponentProps {
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
1
+ import * as _$_alloy_js_core0 from "@alloy-js/core";
2
2
  import { CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
3
3
 
4
4
  //#region src/typescript/components/type-declaration.d.ts
@@ -11,7 +11,7 @@ interface TypeDeclarationProps extends CommonDeclarationProps {
11
11
  /**
12
12
  * Renders a TypeScript type declaration, including its name, optional TSDoc comment, and generic type parameters.
13
13
  */
14
- declare const TypeDeclaration: _alloy_js_core0.Component<TypeDeclarationProps>;
14
+ declare const TypeDeclaration: _$_alloy_js_core0.Component<TypeDeclarationProps>;
15
15
  declare type __ΩTypeDeclarationProps = any[];
16
16
  //#endregion
17
17
  export { TypeDeclaration, TypeDeclarationProps, __ΩTypeDeclarationProps };
@@ -1 +1 @@
1
- {"version":3,"file":"type-declaration.d.cts","names":[],"sources":["../../../src/typescript/components/type-declaration.tsx"],"mappings":";;;;UA4BiB,oBAAA,SAA6B,sBAAA;;;AAA9C;EAIE,cAAA,GAAiB,uBAAA;AAAA;;;;cAMN,eAAA,EAAe,eAAA,CAAA,SAAA,CAAA,oBAAA;AAAA"}
1
+ {"version":3,"file":"type-declaration.d.cts","names":[],"sources":["../../../src/typescript/components/type-declaration.tsx"],"mappings":";;;;UA4BiB,oBAAA,SAA6B,sBAAA;;;AAA9C;EAIE,cAAA,GAAiB,uBAAA;AAAA;;;;cAMN,eAAA,EAAe,iBAAA,CAAA,SAAA,CAAA,oBAAA;AAAA"}
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
1
+ import * as _$_alloy_js_core0 from "@alloy-js/core";
2
2
  import { CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
3
3
 
4
4
  //#region src/typescript/components/type-declaration.d.ts
@@ -11,7 +11,7 @@ interface TypeDeclarationProps extends CommonDeclarationProps {
11
11
  /**
12
12
  * Renders a TypeScript type declaration, including its name, optional TSDoc comment, and generic type parameters.
13
13
  */
14
- declare const TypeDeclaration: _alloy_js_core0.Component<TypeDeclarationProps>;
14
+ declare const TypeDeclaration: _$_alloy_js_core0.Component<TypeDeclarationProps>;
15
15
  declare type __ΩTypeDeclarationProps = any[];
16
16
  //#endregion
17
17
  export { TypeDeclaration, TypeDeclarationProps, __ΩTypeDeclarationProps };
@@ -1 +1 @@
1
- {"version":3,"file":"type-declaration.d.mts","names":[],"sources":["../../../src/typescript/components/type-declaration.tsx"],"mappings":";;;;UA4BiB,oBAAA,SAA6B,sBAAA;;;AAA9C;EAIE,cAAA,GAAiB,uBAAA;AAAA;;;;cAMN,eAAA,EAAe,eAAA,CAAA,SAAA,CAAA,oBAAA;AAAA"}
1
+ {"version":3,"file":"type-declaration.d.mts","names":[],"sources":["../../../src/typescript/components/type-declaration.tsx"],"mappings":";;;;UA4BiB,oBAAA,SAA6B,sBAAA;;;AAA9C;EAIE,cAAA,GAAiB,uBAAA;AAAA;;;;cAMN,eAAA,EAAe,iBAAA,CAAA,SAAA,CAAA,oBAAA;AAAA"}
@@ -1,16 +1,16 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
3
  const require_core_contexts_context = require('../../core/contexts/context.cjs');
4
- const require_core_components_single_line_comment = require('../../core/components/single-line-comment.cjs');
5
4
  const require_core_components_source_file = require('../../core/components/source-file.cjs');
5
+ const require_core_components_single_line_comment = require('../../core/components/single-line-comment.cjs');
6
6
  const require_core_helpers_code = require('../../core/helpers/code.cjs');
7
7
  let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
8
8
  let _alloy_js_core = require("@alloy-js/core");
9
9
  let _stryke_path_append = require("@stryke/path/append");
10
10
  let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
11
+ let powerlines_utils = require("powerlines/utils");
11
12
  let _stryke_helpers_get_unique = require("@stryke/helpers/get-unique");
12
13
  let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
13
- let powerlines_utils = require("powerlines/utils");
14
14
  let _alloy_js_typescript = require("@alloy-js/typescript");
15
15
  let _stryke_type_checks_is_boolean = require("@stryke/type-checks/is-boolean");
16
16
 
@@ -1,14 +1,14 @@
1
1
  import { usePowerlinesSafe } from "../../core/contexts/context.mjs";
2
- import { SingleLineComment } from "../../core/components/single-line-comment.mjs";
3
2
  import { SourceFile } from "../../core/components/source-file.mjs";
3
+ import { SingleLineComment } from "../../core/components/single-line-comment.mjs";
4
4
  import { code as code$1 } from "../../core/helpers/code.mjs";
5
5
  import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
6
6
  import { For, Scope, Show, SourceDirectoryContext, computed, splitProps, useContext, useScope } from "@alloy-js/core";
7
7
  import { appendPath } from "@stryke/path/append";
8
8
  import { titleCase } from "@stryke/string-format/title-case";
9
+ import { getFileHeaderWarning } from "powerlines/utils";
9
10
  import { getUniqueBy } from "@stryke/helpers/get-unique";
10
11
  import { isString } from "@stryke/type-checks/is-string";
11
- import { getFileHeaderWarning } from "powerlines/utils";
12
12
  import { ImportStatements, PackageContext, SourceFileContext as SourceFileContext$1, TSModuleScope, getSourceDirectoryData, useSourceFile } from "@alloy-js/typescript";
13
13
  import { isBoolean } from "@stryke/type-checks/is-boolean";
14
14
 
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
1
+ import * as _$_alloy_js_core0 from "@alloy-js/core";
2
2
  import { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core";
3
3
 
4
4
  //#region src/typescript/contexts/lexical-scope.d.ts
@@ -8,7 +8,7 @@ type LexicalScopeProps = LexicalScopePropsWithScopeValue | LexicalScopePropsWith
8
8
  /**
9
9
  * A lexical scope for TypeScript, which contains declaration spaces for types and values. Declaration components will create symbols in this scope.
10
10
  */
11
- declare function LexicalScope(props: LexicalScopeProps): _alloy_js_core0.Children;
11
+ declare function LexicalScope(props: LexicalScopeProps): _$_alloy_js_core0.Children;
12
12
  declare type __ΩLexicalScopePropsWithScopeValue = any[];
13
13
  declare type __ΩLexicalScopePropsWithScopeInfo = any[];
14
14
  declare type __ΩLexicalScopeProps = any[];
@@ -1 +1 @@
1
- {"version":3,"file":"lexical-scope.d.cts","names":[],"sources":["../../../src/typescript/contexts/lexical-scope.tsx"],"mappings":";;;;UAqBiB,+BAAA,SAAwC,mBAAA;AAAA,UACxC,8BAAA,SAAuC,kBAAA;AAAA,KAE5C,iBAAA,GACR,+BAAA,GACA,8BAAA;;;;iBAKY,YAAA,CAAa,KAAA,EAAO,iBAAA,GAAiB,eAAA,CAAA,QAAA;AAAA"}
1
+ {"version":3,"file":"lexical-scope.d.cts","names":[],"sources":["../../../src/typescript/contexts/lexical-scope.tsx"],"mappings":";;;;UAqBiB,+BAAA,SAAwC,mBAAA;AAAA,UACxC,8BAAA,SAAuC,kBAAA;AAAA,KAE5C,iBAAA,GACR,+BAAA,GACA,8BAAA;;;;iBAKY,YAAA,CAAa,KAAA,EAAO,iBAAA,GAAiB,iBAAA,CAAA,QAAA;AAAA"}
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
1
+ import * as _$_alloy_js_core0 from "@alloy-js/core";
2
2
  import { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core";
3
3
 
4
4
  //#region src/typescript/contexts/lexical-scope.d.ts
@@ -8,7 +8,7 @@ type LexicalScopeProps = LexicalScopePropsWithScopeValue | LexicalScopePropsWith
8
8
  /**
9
9
  * A lexical scope for TypeScript, which contains declaration spaces for types and values. Declaration components will create symbols in this scope.
10
10
  */
11
- declare function LexicalScope(props: LexicalScopeProps): _alloy_js_core0.Children;
11
+ declare function LexicalScope(props: LexicalScopeProps): _$_alloy_js_core0.Children;
12
12
  declare type __ΩLexicalScopePropsWithScopeValue = any[];
13
13
  declare type __ΩLexicalScopePropsWithScopeInfo = any[];
14
14
  declare type __ΩLexicalScopeProps = any[];
@@ -1 +1 @@
1
- {"version":3,"file":"lexical-scope.d.mts","names":[],"sources":["../../../src/typescript/contexts/lexical-scope.tsx"],"mappings":";;;;UAqBiB,+BAAA,SAAwC,mBAAA;AAAA,UACxC,8BAAA,SAAuC,kBAAA;AAAA,KAE5C,iBAAA,GACR,+BAAA,GACA,8BAAA;;;;iBAKY,YAAA,CAAa,KAAA,EAAO,iBAAA,GAAiB,eAAA,CAAA,QAAA;AAAA"}
1
+ {"version":3,"file":"lexical-scope.d.mts","names":[],"sources":["../../../src/typescript/contexts/lexical-scope.tsx"],"mappings":";;;;UAqBiB,+BAAA,SAAwC,mBAAA;AAAA,UACxC,8BAAA,SAAuC,kBAAA;AAAA,KAE5C,iBAAA,GACR,+BAAA,GACA,8BAAA;;;;iBAKY,YAAA,CAAa,KAAA,EAAO,iBAAA,GAAiB,iBAAA,CAAA,QAAA;AAAA"}
@@ -12,7 +12,6 @@ const require_typescript_components_type_parameters = require('./components/type
12
12
  const require_typescript_components_class_declaration = require('./components/class-declaration.cjs');
13
13
  const require_typescript_components_dynamic_import_statement = require('./components/dynamic-import-statement.cjs');
14
14
  const require_typescript_components_entry_file = require('./components/entry-file.cjs');
15
- const require_typescript_components_infrastructure_file = require('./components/infrastructure-file.cjs');
16
15
  const require_typescript_components_tsdoc_reflection = require('./components/tsdoc-reflection.cjs');
17
16
  const require_typescript_components_interface_declaration = require('./components/interface-declaration.cjs');
18
17
  const require_typescript_components_object_declaration = require('./components/object-declaration.cjs');
@@ -29,7 +28,6 @@ exports.ClassPropertyGet = require_typescript_components_class_declaration.Class
29
28
  exports.ClassPropertySet = require_typescript_components_class_declaration.ClassPropertySet;
30
29
  exports.DynamicImportStatement = require_typescript_components_dynamic_import_statement.DynamicImportStatement;
31
30
  exports.EntryFile = require_typescript_components_entry_file.EntryFile;
32
- exports.InfrastructureFile = require_typescript_components_infrastructure_file.InfrastructureFile;
33
31
  exports.InterfaceDeclaration = require_typescript_components_interface_declaration.InterfaceDeclaration;
34
32
  exports.InterfaceDeclarationProperty = require_typescript_components_interface_declaration.InterfaceDeclarationProperty;
35
33
  exports.InterfaceExpression = require_typescript_components_interface_declaration.InterfaceExpression;
@@ -5,7 +5,6 @@ import { TypeParameters, TypeParametersProps, __ΩTypeParametersProps } from "./
5
5
  import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps } from "./components/class-declaration.cjs";
6
6
  import { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./components/dynamic-import-statement.cjs";
7
7
  import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./components/entry-file.cjs";
8
- import { InfrastructureFile, InfrastructureFileProps, __ΩInfrastructureFileProps } from "./components/infrastructure-file.cjs";
9
8
  import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps } from "./components/interface-declaration.cjs";
10
9
  import { ComputedRef, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, __ΩComputedRef, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps } from "./components/object-declaration.cjs";
11
10
  import { PropertyName, PropertyNameProps, __ΩPropertyNameProps } from "./components/property-name.cjs";
@@ -15,4 +14,4 @@ import { TypeDeclaration, TypeDeclarationProps, __ΩTypeDeclarationProps } from
15
14
  import { LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue } from "./contexts/lexical-scope.cjs";
16
15
  import { getCallSignatureProps } from "./helpers/get-call-signature-props.cjs";
17
16
  import { isValidJSIdentifier } from "./helpers/utilities.cjs";
18
- 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, LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, 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, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps, __ΩPropertyNameProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocReflectionClassProps, __ΩTSDocReflectionMethodProps, __ΩTSDocReflectionPropertyProps, __ΩTSDocTagProps, __ΩTypeDeclarationProps, __ΩTypeParametersProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, getCallSignatureProps, isValidJSIdentifier };
17
+ export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, 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, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps, __ΩPropertyNameProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocReflectionClassProps, __ΩTSDocReflectionMethodProps, __ΩTSDocReflectionPropertyProps, __ΩTSDocTagProps, __ΩTypeDeclarationProps, __ΩTypeParametersProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, getCallSignatureProps, isValidJSIdentifier };
@@ -5,7 +5,6 @@ import { TypeParameters, TypeParametersProps, __ΩTypeParametersProps } from "./
5
5
  import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps } from "./components/class-declaration.mjs";
6
6
  import { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./components/dynamic-import-statement.mjs";
7
7
  import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./components/entry-file.mjs";
8
- import { InfrastructureFile, InfrastructureFileProps, __ΩInfrastructureFileProps } from "./components/infrastructure-file.mjs";
9
8
  import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps } from "./components/interface-declaration.mjs";
10
9
  import { ComputedRef, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, __ΩComputedRef, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps } from "./components/object-declaration.mjs";
11
10
  import { PropertyName, PropertyNameProps, __ΩPropertyNameProps } from "./components/property-name.mjs";
@@ -15,4 +14,4 @@ import { TypeDeclaration, TypeDeclarationProps, __ΩTypeDeclarationProps } from
15
14
  import { LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue } from "./contexts/lexical-scope.mjs";
16
15
  import { getCallSignatureProps } from "./helpers/get-call-signature-props.mjs";
17
16
  import { isValidJSIdentifier } from "./helpers/utilities.mjs";
18
- 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, LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, 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, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps, __ΩPropertyNameProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocReflectionClassProps, __ΩTSDocReflectionMethodProps, __ΩTSDocReflectionPropertyProps, __ΩTSDocTagProps, __ΩTypeDeclarationProps, __ΩTypeParametersProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, getCallSignatureProps, isValidJSIdentifier };
17
+ export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, 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, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps, __ΩPropertyNameProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocReflectionClassProps, __ΩTSDocReflectionMethodProps, __ΩTSDocReflectionPropertyProps, __ΩTSDocTagProps, __ΩTypeDeclarationProps, __ΩTypeParametersProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, getCallSignatureProps, isValidJSIdentifier };
@@ -11,7 +11,6 @@ import { TypeParameters } from "./components/type-parameters.mjs";
11
11
  import { ClassDeclaration, ClassField, ClassMember, ClassMethod, ClassPropertyGet, ClassPropertySet } from "./components/class-declaration.mjs";
12
12
  import { DynamicImportStatement } from "./components/dynamic-import-statement.mjs";
13
13
  import { EntryFile } from "./components/entry-file.mjs";
14
- import { InfrastructureFile } from "./components/infrastructure-file.mjs";
15
14
  import { TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./components/tsdoc-reflection.mjs";
16
15
  import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceExpression, InterfaceMember } from "./components/interface-declaration.mjs";
17
16
  import { ObjectDeclaration, ObjectDeclarationProperty } from "./components/object-declaration.mjs";
@@ -19,4 +18,4 @@ import { RecordExpression } from "./components/record-expression.mjs";
19
18
  import { TypeDeclaration } from "./components/type-declaration.mjs";
20
19
  import "./components/index.mjs";
21
20
 
22
- export { BuiltinFile, ClassDeclaration, ClassField, ClassMember, ClassMethod, ClassPropertyGet, ClassPropertySet, DynamicImportStatement, EntryFile, InfrastructureFile, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceExpression, InterfaceMember, LexicalScope, ObjectDeclaration, ObjectDeclarationProperty, PropertyName, RecordExpression, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle, TypeDeclaration, TypeParameters, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, getCallSignatureProps, isValidJSIdentifier };
21
+ export { BuiltinFile, ClassDeclaration, ClassField, ClassMember, ClassMethod, ClassPropertyGet, ClassPropertySet, DynamicImportStatement, EntryFile, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceExpression, InterfaceMember, LexicalScope, ObjectDeclaration, ObjectDeclarationProperty, PropertyName, RecordExpression, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocContextClass, TSDocContextMethod, TSDocContextProperty, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle, TypeDeclaration, TypeParameters, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, getCallSignatureProps, isValidJSIdentifier };
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
3
  const require_core_contexts_context = require('../../core/contexts/context.cjs');
4
- const require_core_components_single_line_comment = require('../../core/components/single-line-comment.cjs');
5
4
  const require_core_components_source_file = require('../../core/components/source-file.cjs');
5
+ const require_core_components_single_line_comment = require('../../core/components/single-line-comment.cjs');
6
6
  let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
7
7
  let _alloy_js_core = require("@alloy-js/core");
8
8
  let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
@@ -1,6 +1,6 @@
1
1
  import { usePowerlinesSafe } from "../../core/contexts/context.mjs";
2
- import { SingleLineComment } from "../../core/components/single-line-comment.mjs";
3
2
  import { SourceFile } from "../../core/components/source-file.mjs";
3
+ import { SingleLineComment } from "../../core/components/single-line-comment.mjs";
4
4
  import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
5
5
  import { For, Show, code, splitProps } from "@alloy-js/core";
6
6
  import { titleCase } from "@stryke/string-format/title-case";