@powerlines/plugin-alloy 0.22.0 → 0.23.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 (71) hide show
  1. package/dist/core/components/index.cjs +3 -1
  2. package/dist/core/components/index.d.cts +2 -1
  3. package/dist/core/components/index.d.mts +2 -1
  4. package/dist/core/components/index.mjs +2 -1
  5. package/dist/core/components/output.d.cts +2 -2
  6. package/dist/core/components/output.d.mts +2 -2
  7. package/dist/core/components/single-line-comment.d.cts +2 -2
  8. package/dist/core/components/source-file.d.cts +2 -2
  9. package/dist/core/components/spacing.cjs +19 -0
  10. package/dist/core/components/spacing.d.cts +24 -0
  11. package/dist/core/components/spacing.d.cts.map +1 -0
  12. package/dist/core/components/spacing.d.mts +24 -0
  13. package/dist/core/components/spacing.d.mts.map +1 -0
  14. package/dist/core/components/spacing.mjs +19 -0
  15. package/dist/core/components/spacing.mjs.map +1 -0
  16. package/dist/core/index.cjs +2 -0
  17. package/dist/core/index.d.cts +2 -1
  18. package/dist/core/index.d.mts +2 -1
  19. package/dist/core/index.mjs +2 -1
  20. package/dist/markdown/components/front-matter.d.cts +2 -2
  21. package/dist/markdown/components/front-matter.d.cts.map +1 -1
  22. package/dist/markdown/components/front-matter.d.mts +2 -2
  23. package/dist/markdown/components/markdown-file.d.cts +3 -3
  24. package/dist/markdown/components/markdown-file.d.cts.map +1 -1
  25. package/dist/markdown/components/markdown-file.d.mts +3 -3
  26. package/dist/markdown/components/markdown-table.d.cts +4 -4
  27. package/dist/markdown/components/markdown-table.d.cts.map +1 -1
  28. package/dist/markdown/components/markdown-table.d.mts +4 -4
  29. package/dist/typescript/components/builtin-file.d.cts +2 -2
  30. package/dist/typescript/components/builtin-file.d.mts +2 -2
  31. package/dist/typescript/components/class-declaration.cjs +6 -2
  32. package/dist/typescript/components/class-declaration.d.cts +1 -0
  33. package/dist/typescript/components/class-declaration.d.cts.map +1 -1
  34. package/dist/typescript/components/class-declaration.d.mts +1 -0
  35. package/dist/typescript/components/class-declaration.d.mts.map +1 -1
  36. package/dist/typescript/components/class-declaration.mjs +6 -2
  37. package/dist/typescript/components/class-declaration.mjs.map +1 -1
  38. package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
  39. package/dist/typescript/components/dynamic-import-statement.d.cts.map +1 -1
  40. package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
  41. package/dist/typescript/components/entry-file.d.cts +2 -2
  42. package/dist/typescript/components/entry-file.d.mts +2 -2
  43. package/dist/typescript/components/index.cjs +2 -0
  44. package/dist/typescript/components/index.d.cts +2 -1
  45. package/dist/typescript/components/index.d.mts +2 -1
  46. package/dist/typescript/components/index.mjs +2 -1
  47. package/dist/typescript/components/interface-declaration.d.cts +2 -2
  48. package/dist/typescript/components/interface-declaration.d.mts +2 -2
  49. package/dist/typescript/components/object-declaration.d.cts +3 -3
  50. package/dist/typescript/components/object-declaration.d.mts +3 -3
  51. package/dist/typescript/components/property-name.d.cts +2 -2
  52. package/dist/typescript/components/property-name.d.cts.map +1 -1
  53. package/dist/typescript/components/property-name.d.mts +2 -2
  54. package/dist/typescript/components/tsdoc-reflection.d.cts +4 -4
  55. package/dist/typescript/components/tsdoc-reflection.d.mts +4 -4
  56. package/dist/typescript/components/tsdoc-reflection.d.mts.map +1 -1
  57. package/dist/typescript/components/tsdoc.d.cts.map +1 -1
  58. package/dist/typescript/components/type-declaration.cjs +39 -0
  59. package/dist/typescript/components/type-declaration.d.cts +15 -0
  60. package/dist/typescript/components/type-declaration.d.cts.map +1 -0
  61. package/dist/typescript/components/type-declaration.d.mts +15 -0
  62. package/dist/typescript/components/type-declaration.d.mts.map +1 -0
  63. package/dist/typescript/components/type-declaration.mjs +39 -0
  64. package/dist/typescript/components/type-declaration.mjs.map +1 -0
  65. package/dist/typescript/contexts/lexical-scope.d.cts +2 -2
  66. package/dist/typescript/contexts/lexical-scope.d.mts +2 -2
  67. package/dist/typescript/index.cjs +2 -0
  68. package/dist/typescript/index.d.cts +2 -1
  69. package/dist/typescript/index.d.mts +2 -1
  70. package/dist/typescript/index.mjs +2 -1
  71. package/package.json +30 -2
@@ -1,7 +1,9 @@
1
1
  const require_core_components_output = require('./output.cjs');
2
2
  const require_core_components_single_line_comment = require('./single-line-comment.cjs');
3
3
  const require_core_components_source_file = require('./source-file.cjs');
4
+ const require_core_components_spacing = require('./spacing.cjs');
4
5
 
5
6
  exports.Output = require_core_components_output.Output;
6
7
  exports.SingleLineComment = require_core_components_single_line_comment.SingleLineComment;
7
- exports.SourceFile = require_core_components_source_file.SourceFile;
8
+ exports.SourceFile = require_core_components_source_file.SourceFile;
9
+ exports.Spacing = require_core_components_spacing.Spacing;
@@ -1,4 +1,5 @@
1
1
  import { Output, OutputProps, __ΩOutputProps } from "./output.cjs";
2
2
  import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./single-line-comment.cjs";
3
3
  import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./source-file.cjs";
4
- export { Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩOutputProps, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps };
4
+ import { Spacing, SpacingProps, __ΩSpacingProps } from "./spacing.cjs";
5
+ export { Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, __ΩOutputProps, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, __ΩSpacingProps };
@@ -1,4 +1,5 @@
1
1
  import { Output, OutputProps, __ΩOutputProps } from "./output.mjs";
2
2
  import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./single-line-comment.mjs";
3
3
  import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./source-file.mjs";
4
- export { Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩOutputProps, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps };
4
+ import { Spacing, SpacingProps, __ΩSpacingProps } from "./spacing.mjs";
5
+ export { Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, __ΩOutputProps, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, __ΩSpacingProps };
@@ -1,5 +1,6 @@
1
1
  import { Output } from "./output.mjs";
2
2
  import { SingleLineComment } from "./single-line-comment.mjs";
3
3
  import { SourceFile } from "./source-file.mjs";
4
+ import { Spacing } from "./spacing.mjs";
4
5
 
5
- export { Output, SingleLineComment, SourceFile };
6
+ export { Output, SingleLineComment, SourceFile, Spacing };
@@ -1,6 +1,6 @@
1
1
  import { MetaItem } from "../contexts/meta.cjs";
2
2
  import "../contexts/index.cjs";
3
- import * as _alloy_js_core5 from "@alloy-js/core";
3
+ import * as _alloy_js_core1 from "@alloy-js/core";
4
4
  import { OutputProps as OutputProps$1 } from "@alloy-js/core";
5
5
  import { PluginContext } from "powerlines/types/context";
6
6
 
@@ -18,7 +18,7 @@ interface OutputProps<TContext extends PluginContext = PluginContext> extends Om
18
18
  /**
19
19
  * Output component for rendering the Powerlines plugin's output files via templates.
20
20
  */
21
- declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core5.Children;
21
+ declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core1.Children;
22
22
  declare type __ΩOutputProps = any[];
23
23
  //#endregion
24
24
  export { Output, OutputProps, __ΩOutputProps };
@@ -1,6 +1,6 @@
1
1
  import { MetaItem } from "../contexts/meta.mjs";
2
2
  import "../contexts/index.mjs";
3
- import * as _alloy_js_core0 from "@alloy-js/core";
3
+ import * as _alloy_js_core2 from "@alloy-js/core";
4
4
  import { OutputProps as OutputProps$1 } from "@alloy-js/core";
5
5
  import { PluginContext } from "powerlines/types/context";
6
6
 
@@ -18,7 +18,7 @@ interface OutputProps<TContext extends PluginContext = PluginContext> extends Om
18
18
  /**
19
19
  * Output component for rendering the Powerlines plugin's output files via templates.
20
20
  */
21
- declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core0.Children;
21
+ declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core2.Children;
22
22
  declare type __ΩOutputProps = any[];
23
23
  //#endregion
24
24
  export { Output, OutputProps, __ΩOutputProps };
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core0 from "@alloy-js/core";
2
+ import * as _alloy_js_core3 from "@alloy-js/core";
3
3
 
4
4
  //#region src/core/components/single-line-comment.d.ts
5
5
  type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown";
@@ -15,7 +15,7 @@ interface SingleLineCommentProps extends ComponentProps {
15
15
  * A single line comment block. The children are rendered as a prose element, which means that they
16
16
  * are broken into multiple lines
17
17
  */
18
- declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core0.Children;
18
+ declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core3.Children;
19
19
  declare type __ΩSingleLineCommentVariant = any[];
20
20
  declare type __ΩSingleLineCommentProps = any[];
21
21
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core0 from "@alloy-js/core";
2
+ import * as _alloy_js_core2 from "@alloy-js/core";
3
3
  import { SourceFileProps as SourceFileProps$1 } from "@alloy-js/core";
4
4
  import { StoragePreset } from "powerlines/types/fs";
5
5
 
@@ -26,7 +26,7 @@ type SourceFileProps = SourceFileProps$1 & ComponentProps & {
26
26
  * @param props - The properties for the source file.
27
27
  * @returns The rendered source file component.
28
28
  */
29
- declare function SourceFile(props: SourceFileProps): _alloy_js_core0.Children;
29
+ declare function SourceFile(props: SourceFileProps): _alloy_js_core2.Children;
30
30
  declare type __ΩSourceFileProps = any[];
31
31
  //#endregion
32
32
  export { SourceFile, SourceFileProps, __ΩSourceFileProps };
@@ -0,0 +1,19 @@
1
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
+ let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
3
+ let __alloy_js_core = require("@alloy-js/core");
4
+
5
+ //#region src/core/components/spacing.tsx
6
+ /**
7
+ * A simple component that renders two horizontal breaks to create vertical spacing between elements.
8
+ */
9
+ function Spacing({ scale = 1 }) {
10
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
11
+ get each() {
12
+ return Array.from({ length: scale });
13
+ },
14
+ children: (_) => [(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})]
15
+ });
16
+ }
17
+
18
+ //#endregion
19
+ exports.Spacing = Spacing;
@@ -0,0 +1,24 @@
1
+ import * as _alloy_js_core20 from "@alloy-js/core";
2
+
3
+ //#region src/core/components/spacing.d.ts
4
+ interface SpacingProps {
5
+ /**
6
+ * A scale factor that determines the amount of vertical space to be added.
7
+ *
8
+ * @remarks
9
+ * The default value is 1, which corresponds to a standard spacing. A value of 2 would double the spacing, while a value of 0.5 would halve it.
10
+ *
11
+ * @defaultValue 1
12
+ */
13
+ scale?: number;
14
+ }
15
+ /**
16
+ * A simple component that renders two horizontal breaks to create vertical spacing between elements.
17
+ */
18
+ declare function Spacing({
19
+ scale
20
+ }: SpacingProps): _alloy_js_core20.Children;
21
+ declare type __ΩSpacingProps = any[];
22
+ //#endregion
23
+ export { Spacing, SpacingProps, __ΩSpacingProps };
24
+ //# sourceMappingURL=spacing.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.d.cts","names":[],"sources":["../../../src/core/components/spacing.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,YAAA;;;AAAjB;AAeA;;;;;;;;;;iBAAgB,OAAA;;GAAuB,eAAY,gBAAA,CAAA"}
@@ -0,0 +1,24 @@
1
+ import * as _alloy_js_core0 from "@alloy-js/core";
2
+
3
+ //#region src/core/components/spacing.d.ts
4
+ interface SpacingProps {
5
+ /**
6
+ * A scale factor that determines the amount of vertical space to be added.
7
+ *
8
+ * @remarks
9
+ * The default value is 1, which corresponds to a standard spacing. A value of 2 would double the spacing, while a value of 0.5 would halve it.
10
+ *
11
+ * @defaultValue 1
12
+ */
13
+ scale?: number;
14
+ }
15
+ /**
16
+ * A simple component that renders two horizontal breaks to create vertical spacing between elements.
17
+ */
18
+ declare function Spacing({
19
+ scale
20
+ }: SpacingProps): _alloy_js_core0.Children;
21
+ declare type __ΩSpacingProps = any[];
22
+ //#endregion
23
+ export { Spacing, SpacingProps, __ΩSpacingProps };
24
+ //# sourceMappingURL=spacing.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.d.mts","names":[],"sources":["../../../src/core/components/spacing.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,YAAA;;;AAAjB;AAeA;;;;;;;;;;iBAAgB,OAAA;;GAAuB,eAAY,eAAA,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
2
+ import { For } from "@alloy-js/core";
3
+
4
+ //#region src/core/components/spacing.tsx
5
+ /**
6
+ * A simple component that renders two horizontal breaks to create vertical spacing between elements.
7
+ */
8
+ function Spacing({ scale = 1 }) {
9
+ return createComponent(For, {
10
+ get each() {
11
+ return Array.from({ length: scale });
12
+ },
13
+ children: (_) => [createIntrinsic("hbr", {}), createIntrinsic("hbr", {})]
14
+ });
15
+ }
16
+
17
+ //#endregion
18
+ export { Spacing };
19
+ //# sourceMappingURL=spacing.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.mjs","names":["For","Spacing","scale","_$createComponent","each","Array","from","length","children","_","_$createIntrinsic"],"sources":["../../../src/core/components/spacing.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 { For } from \"@alloy-js/core\";\n\nexport interface SpacingProps {\n /**\n * A scale factor that determines the amount of vertical space to be added.\n *\n * @remarks\n * The default value is 1, which corresponds to a standard spacing. A value of 2 would double the spacing, while a value of 0.5 would halve it.\n *\n * @defaultValue 1\n */\n scale?: number;\n}\n\n/**\n * A simple component that renders two horizontal breaks to create vertical spacing between elements.\n */\nexport function Spacing({ scale = 1 }: SpacingProps) {\n return (\n <For each={Array.from({ length: scale })}>\n {_ => (\n <>\n <hbr />\n <hbr />\n </>\n )}\n </For>\n );\n}\n"],"mappings":""}
@@ -5,6 +5,7 @@ require('./contexts/index.cjs');
5
5
  const require_core_components_output = require('./components/output.cjs');
6
6
  const require_core_components_single_line_comment = require('./components/single-line-comment.cjs');
7
7
  const require_core_components_source_file = require('./components/source-file.cjs');
8
+ const require_core_components_spacing = require('./components/spacing.cjs');
8
9
  require('./components/index.cjs');
9
10
 
10
11
  exports.MetaContext = require_core_contexts_meta.MetaContext;
@@ -16,6 +17,7 @@ exports.ReflectionParameterContext = require_core_contexts_reflection.Reflection
16
17
  exports.ReflectionPropertyContext = require_core_contexts_reflection.ReflectionPropertyContext;
17
18
  exports.SingleLineComment = require_core_components_single_line_comment.SingleLineComment;
18
19
  exports.SourceFile = require_core_components_source_file.SourceFile;
20
+ exports.Spacing = require_core_components_spacing.Spacing;
19
21
  exports.useMeta = require_core_contexts_meta.useMeta;
20
22
  exports.useMetaContext = require_core_contexts_meta.useMetaContext;
21
23
  exports.useMetaSafe = require_core_contexts_meta.useMetaSafe;
@@ -5,5 +5,6 @@ import "./contexts/index.cjs";
5
5
  import { Output, OutputProps, __ΩOutputProps } from "./components/output.cjs";
6
6
  import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./components/single-line-comment.cjs";
7
7
  import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./components/source-file.cjs";
8
+ import { Spacing, SpacingProps, __ΩSpacingProps } from "./components/spacing.cjs";
8
9
  import "./components/index.cjs";
9
- export { MetaContext, MetaItem, Output, OutputProps, PowerlinesContext, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩMetaItem, __ΩOutputProps, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
10
+ export { MetaContext, MetaItem, Output, OutputProps, PowerlinesContext, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, __ΩMetaItem, __ΩOutputProps, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, __ΩSpacingProps, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -5,5 +5,6 @@ import "./contexts/index.mjs";
5
5
  import { Output, OutputProps, __ΩOutputProps } from "./components/output.mjs";
6
6
  import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./components/single-line-comment.mjs";
7
7
  import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./components/source-file.mjs";
8
+ import { Spacing, SpacingProps, __ΩSpacingProps } from "./components/spacing.mjs";
8
9
  import "./components/index.mjs";
9
- export { MetaContext, MetaItem, Output, OutputProps, PowerlinesContext, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩMetaItem, __ΩOutputProps, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
10
+ export { MetaContext, MetaItem, Output, OutputProps, PowerlinesContext, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, __ΩMetaItem, __ΩOutputProps, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, __ΩSpacingProps, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -5,6 +5,7 @@ import "./contexts/index.mjs";
5
5
  import { Output } from "./components/output.mjs";
6
6
  import { SingleLineComment } from "./components/single-line-comment.mjs";
7
7
  import { SourceFile } from "./components/source-file.mjs";
8
+ import { Spacing } from "./components/spacing.mjs";
8
9
  import "./components/index.mjs";
9
10
 
10
- export { MetaContext, Output, PowerlinesContext, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SourceFile, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
11
+ export { MetaContext, Output, PowerlinesContext, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SourceFile, Spacing, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core11 from "@alloy-js/core";
1
+ import * as _alloy_js_core0 from "@alloy-js/core";
2
2
 
3
3
  //#region src/markdown/components/front-matter.d.ts
4
4
  interface FrontMatterProps {
@@ -9,7 +9,7 @@ interface FrontMatterProps {
9
9
  *
10
10
  * @see https://jekyllrb.com/docs/front-matter/
11
11
  */
12
- declare function FrontMatter(props: FrontMatterProps): _alloy_js_core11.Children;
12
+ declare function FrontMatter(props: FrontMatterProps): _alloy_js_core0.Children;
13
13
  declare type __ΩFrontMatterProps = any[];
14
14
  //#endregion
15
15
  export { FrontMatter, FrontMatterProps, __ΩFrontMatterProps };
@@ -1 +1 @@
1
- {"version":3,"file":"front-matter.d.cts","names":[],"sources":["../../../src/markdown/components/front-matter.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,gBAAA;QACT;;AADR;AASA;;;;iBAAgB,WAAA,QAAmB,mBAAgB,gBAAA,CAAA"}
1
+ {"version":3,"file":"front-matter.d.cts","names":[],"sources":["../../../src/markdown/components/front-matter.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,gBAAA;QACT;;AADR;AASA;;;;iBAAgB,WAAA,QAAmB,mBAAgB,eAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core7 from "@alloy-js/core";
1
+ import * as _alloy_js_core8 from "@alloy-js/core";
2
2
 
3
3
  //#region src/markdown/components/front-matter.d.ts
4
4
  interface FrontMatterProps {
@@ -9,7 +9,7 @@ interface FrontMatterProps {
9
9
  *
10
10
  * @see https://jekyllrb.com/docs/front-matter/
11
11
  */
12
- declare function FrontMatter(props: FrontMatterProps): _alloy_js_core7.Children;
12
+ declare function FrontMatter(props: FrontMatterProps): _alloy_js_core8.Children;
13
13
  declare type __ΩFrontMatterProps = any[];
14
14
  //#endregion
15
15
  export { FrontMatter, FrontMatterProps, __ΩFrontMatterProps };
@@ -1,7 +1,7 @@
1
1
  import { ComponentProps, SourceFileHeaderProps } from "../../types/components.cjs";
2
2
  import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.cjs";
3
3
  import { FrontMatterProps } from "./front-matter.cjs";
4
- import * as _alloy_js_core9 from "@alloy-js/core";
4
+ import * as _alloy_js_core15 from "@alloy-js/core";
5
5
 
6
6
  //#region src/markdown/components/markdown-file.d.ts
7
7
  type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & MarkdownFileHeaderProps;
@@ -11,7 +11,7 @@ type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps &
11
11
  * @param props - The properties for the source file.
12
12
  * @returns The rendered source file component.
13
13
  */
14
- declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core9.Children;
14
+ declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core15.Children;
15
15
  type MarkdownFileHeaderProps = SourceFileHeaderProps & {
16
16
  frontMatter?: FrontMatterProps["data"];
17
17
  };
@@ -21,7 +21,7 @@ type MarkdownFileHeaderProps = SourceFileHeaderProps & {
21
21
  * @param props - The properties for the source file header.
22
22
  * @returns The rendered source file header.
23
23
  */
24
- declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core9.Children;
24
+ declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core15.Children;
25
25
  declare type __ΩMarkdownFileProps = any[];
26
26
  declare type __ΩMarkdownFileHeaderProps = any[];
27
27
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"markdown-file.d.cts","names":[],"sources":["../../../src/markdown/components/markdown-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KA4BY,iBAAA,GAAoB,KAAK,iCACnC,iBACA;;;AAFF;;;;AAEE,iBAQc,YAAA,CARd,KAAA,EAQkC,iBARlC,CAAA,EAQmD,eAAA,CAAA,QARnD;AAAuB,KA2Bb,uBAAA,GAA0B,qBA3Bb,GAAA;EAQT,WAAA,CAAA,EAoBA,gBApBoB,CAAA,MAAA,CAAA;AAmBpC,CAAA;AAUA;;;;;;iBAAgB,kBAAA,QAA0B,0BAAuB,eAAA,CAAA"}
1
+ {"version":3,"file":"markdown-file.d.cts","names":[],"sources":["../../../src/markdown/components/markdown-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KA4BY,iBAAA,GAAoB,KAAK,iCACnC,iBACA;;;AAFF;;;;AAEE,iBAQc,YAAA,CARd,KAAA,EAQkC,iBARlC,CAAA,EAQmD,gBAAA,CAAA,QARnD;AAAuB,KA2Bb,uBAAA,GAA0B,qBA3Bb,GAAA;EAQT,WAAA,CAAA,EAoBA,gBApBoB,CAAA,MAAA,CAAA;AAmBpC,CAAA;AAUA;;;;;;iBAAgB,kBAAA,QAA0B,0BAAuB,gBAAA,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { ComponentProps, SourceFileHeaderProps } from "../../types/components.mjs";
2
2
  import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.mjs";
3
3
  import { FrontMatterProps } from "./front-matter.mjs";
4
- import * as _alloy_js_core2 from "@alloy-js/core";
4
+ import * as _alloy_js_core3 from "@alloy-js/core";
5
5
 
6
6
  //#region src/markdown/components/markdown-file.d.ts
7
7
  type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & MarkdownFileHeaderProps;
@@ -11,7 +11,7 @@ type MarkdownFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps &
11
11
  * @param props - The properties for the source file.
12
12
  * @returns The rendered source file component.
13
13
  */
14
- declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core2.Children;
14
+ declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core3.Children;
15
15
  type MarkdownFileHeaderProps = SourceFileHeaderProps & {
16
16
  frontMatter?: FrontMatterProps["data"];
17
17
  };
@@ -21,7 +21,7 @@ type MarkdownFileHeaderProps = SourceFileHeaderProps & {
21
21
  * @param props - The properties for the source file header.
22
22
  * @returns The rendered source file header.
23
23
  */
24
- declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core2.Children;
24
+ declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core3.Children;
25
25
  declare type __ΩMarkdownFileProps = any[];
26
26
  declare type __ΩMarkdownFileHeaderProps = any[];
27
27
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
2
  import { MarkdownTableColumnContextInterface } from "../contexts/markdown-table.cjs";
3
- import * as _alloy_js_core6 from "@alloy-js/core";
3
+ import * as _alloy_js_core17 from "@alloy-js/core";
4
4
 
5
5
  //#region src/markdown/components/markdown-table.d.ts
6
6
  interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>> extends ComponentProps {
@@ -9,18 +9,18 @@ interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>
9
9
  /**
10
10
  * Component that provides a context for rendering markdown tables.
11
11
  */
12
- declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core6.Children;
12
+ declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core17.Children;
13
13
  type MarkdownTableColumnProps = ComponentProps & Partial<Pick<MarkdownTableColumnContextInterface, "align">> & Required<Pick<MarkdownTableColumnContextInterface, "name">> & {
14
14
  width?: number;
15
15
  };
16
16
  /**
17
17
  * Component that provides a context for rendering markdown tables.
18
18
  */
19
- declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core6.Children;
19
+ declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core17.Children;
20
20
  /**
21
21
  * Component that provides a context for rendering markdown tables.
22
22
  */
23
- declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core6.Children;
23
+ declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core17.Children;
24
24
  declare type __ΩMarkdownTableProps = any[];
25
25
  declare type __ΩMarkdownTableColumnProps = any[];
26
26
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"markdown-table.d.cts","names":[],"sources":["../../../src/markdown/components/markdown-table.tsx"],"sourcesContent":[],"mappings":";;;;;UA4BiB,6BACL,sBAAsB,6BACxB;QACF;;AAHR;;;AAGQ,iBAMQ,aANR,CAAA,UAOI,MAPJ,CAAA,MAAA,EAAA,GAAA,CAAA,GAO0B,MAP1B,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAQC,kBARD,CAQoB,CARpB,CAAA,CAAA,EAQmB,eAAA,CAAG,QARtB;AADE,KA4BE,wBAAA,GAA2B,cA5B7B,GA6BR,OA7BQ,CA6BA,IA7BA,CA6BK,mCA7BL,EAAA,OAAA,CAAA,CAAA,GA8BR,QA9BQ,CA8BC,IA9BD,CA8BM,mCA9BN,EAAA,MAAA,CAAA,CAAA,GAAA;EAAc,KAAA,CAAA,EAAA,MAAA;AAOxB,CAAA;;;;AAES,iBA4BO,mBAAA,CA5BP,KAAA,EA4BkC,wBA5BlC,CAAA,EA4B0D,eAAA,CAAA,QA5B1D;;;AAmBT;AAAuC,iBAsDvB,yBAAA,CAtDuB,KAAA,EAsDU,wBAtDV,CAAA,EAsDkC,eAAA,CAAA,QAtDlC;AACxB,qCAAA,GAAA,EAAA;AAAL,2CAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"markdown-table.d.cts","names":[],"sources":["../../../src/markdown/components/markdown-table.tsx"],"sourcesContent":[],"mappings":";;;;;UA4BiB,6BACL,sBAAsB,6BACxB;QACF;;AAHR;;;AAGQ,iBAMQ,aANR,CAAA,UAOI,MAPJ,CAAA,MAAA,EAAA,GAAA,CAAA,GAO0B,MAP1B,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAQC,kBARD,CAQoB,CARpB,CAAA,CAAA,EAQmB,gBAAA,CAAG,QARtB;AADE,KA4BE,wBAAA,GAA2B,cA5B7B,GA6BR,OA7BQ,CA6BA,IA7BA,CA6BK,mCA7BL,EAAA,OAAA,CAAA,CAAA,GA8BR,QA9BQ,CA8BC,IA9BD,CA8BM,mCA9BN,EAAA,MAAA,CAAA,CAAA,GAAA;EAAc,KAAA,CAAA,EAAA,MAAA;AAOxB,CAAA;;;;AAES,iBA4BO,mBAAA,CA5BP,KAAA,EA4BkC,wBA5BlC,CAAA,EA4B0D,gBAAA,CAAA,QA5B1D;;;AAmBT;AAAuC,iBAsDvB,yBAAA,CAtDuB,KAAA,EAsDU,wBAtDV,CAAA,EAsDkC,gBAAA,CAAA,QAtDlC;AACxB,qCAAA,GAAA,EAAA;AAAL,2CAAA,GAAA,EAAA"}
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps } from "../../types/components.mjs";
2
2
  import { MarkdownTableColumnContextInterface } from "../contexts/markdown-table.mjs";
3
- import * as _alloy_js_core4 from "@alloy-js/core";
3
+ import * as _alloy_js_core5 from "@alloy-js/core";
4
4
 
5
5
  //#region src/markdown/components/markdown-table.d.ts
6
6
  interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>> extends ComponentProps {
@@ -9,18 +9,18 @@ interface MarkdownTableProps<T extends Record<string, any> = Record<string, any>
9
9
  /**
10
10
  * Component that provides a context for rendering markdown tables.
11
11
  */
12
- declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core4.Children;
12
+ declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core5.Children;
13
13
  type MarkdownTableColumnProps = ComponentProps & Partial<Pick<MarkdownTableColumnContextInterface, "align">> & Required<Pick<MarkdownTableColumnContextInterface, "name">> & {
14
14
  width?: number;
15
15
  };
16
16
  /**
17
17
  * Component that provides a context for rendering markdown tables.
18
18
  */
19
- declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core4.Children;
19
+ declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core5.Children;
20
20
  /**
21
21
  * Component that provides a context for rendering markdown tables.
22
22
  */
23
- declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core4.Children;
23
+ declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core5.Children;
24
24
  declare type __ΩMarkdownTableProps = any[];
25
25
  declare type __ΩMarkdownTableColumnProps = any[];
26
26
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { TSDocModuleProps } from "./tsdoc.cjs";
2
2
  import { TypescriptFileProps } from "./typescript-file.cjs";
3
- import * as _alloy_js_core17 from "@alloy-js/core";
3
+ import * as _alloy_js_core13 from "@alloy-js/core";
4
4
 
5
5
  //#region src/typescript/components/builtin-file.d.ts
6
6
  type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
@@ -28,7 +28,7 @@ type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProp
28
28
  * @param props - The properties for the source file.
29
29
  * @returns The rendered source file component.
30
30
  */
31
- declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core17.Children;
31
+ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core13.Children;
32
32
  declare type __ΩBuiltinFileProps = any[];
33
33
  //#endregion
34
34
  export { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps };
@@ -1,6 +1,6 @@
1
1
  import { TSDocModuleProps } from "./tsdoc.mjs";
2
2
  import { TypescriptFileProps } from "./typescript-file.mjs";
3
- import * as _alloy_js_core18 from "@alloy-js/core";
3
+ import * as _alloy_js_core20 from "@alloy-js/core";
4
4
 
5
5
  //#region src/typescript/components/builtin-file.d.ts
6
6
  type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
@@ -28,7 +28,7 @@ type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProp
28
28
  * @param props - The properties for the source file.
29
29
  * @returns The rendered source file component.
30
30
  */
31
- declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core18.Children;
31
+ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core20.Children;
32
32
  declare type __ΩBuiltinFileProps = any[];
33
33
  //#endregion
34
34
  export { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps };
@@ -194,7 +194,9 @@ function ClassPropertySet(props) {
194
194
  return [(0, __alloy_js_core_jsx_runtime.createComponent)(ClassMember, (0, __alloy_js_core_jsx_runtime.mergeProps)(props, { get children() {
195
195
  return [
196
196
  " set ",
197
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, {}),
197
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, { get name() {
198
+ return props.name;
199
+ } }),
198
200
  (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_contexts_lexical_scope.LexicalScope, { get children() {
199
201
  return [
200
202
  (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.CallSignature, { get parameters() {
@@ -224,7 +226,9 @@ function ClassPropertyGet(props) {
224
226
  return (0, __alloy_js_core_jsx_runtime.createComponent)(ClassMember, (0, __alloy_js_core_jsx_runtime.mergeProps)(props, { get children() {
225
227
  return [
226
228
  " get ",
227
- (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, {}),
229
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, { get name() {
230
+ return props.name;
231
+ } }),
228
232
  (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_contexts_lexical_scope.LexicalScope, { get children() {
229
233
  return [
230
234
  (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.CallSignature, { get returnType() {
@@ -101,6 +101,7 @@ declare function ClassField(props: ClassFieldProps): Children;
101
101
  * Props for a class field, which is a specific type of class member that represents a property of the class.
102
102
  */
103
103
  interface ClassPropertyProps extends ClassMemberProps {
104
+ name: string;
104
105
  type?: Children;
105
106
  children?: Children;
106
107
  }
@@ -1 +1 @@
1
- {"version":3,"file":"class-declaration.d.cts","names":[],"sources":["../../../src/typescript/components/class-declaration.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAoDiB,UAAA,qBAAA,SAA8B,sBAAR,CAAA;EAS3B;;;EATmC,QAAA,CAAA,EAAA,OAAA;EAAsB;AAoDrE;;EA4CiB,OAAA,CAAA,EAvFL,QAuFK;EACA;;;EAST,UAAA,CAAA,EA5FO,QA4FP,EAAA;EAAQ;AAUhB;AAgCA;EACS,cAAA,CAAA,EAlIU,uBAkIV,EAAA,GAAA,MAAA,EAAA;;;;AAYT;AAsBA;;;;;AAWA;AA4BA;AAkBA;;;;;AAWA;;;;;;;;;;;;;;;iBAvMgB,gBAAA,QAAwB,wBAAqB;kBAA7C,gBAAA;6BAAgB;;;;;UA4Cf,gBAAA;iBACA;WACN;;;;;;;aAOE;QACL;;;;;;;;;iBAUQ,WAAA,QAAmB,mBAAgB;;;;UAgClC,eAAA,SAAwB;SAChC;;aAEI;;;;;;;;;iBAUG,UAAA,QAAkB,kBAAe;;;;UAsBhC,kBAAA,SAA2B;SACnC;aACI;;;;;;;;iBASG,gBAAA,QAAwB,qBAAkB;;;;;;;iBA4B1C,gBAAA,QAAwB,qBAAkB;;;;UAkBzC,gBAAA,SAAyB,kBAAkB;;aAE/C;;;;;;;;iBASG,WAAA,QAAmB,mBAAgB"}
1
+ {"version":3,"file":"class-declaration.d.cts","names":[],"sources":["../../../src/typescript/components/class-declaration.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAoDiB,UAAA,qBAAA,SAA8B,sBAAR,CAAA;EAS3B;;;EATmC,QAAA,CAAA,EAAA,OAAA;EAAsB;AAoDrE;;EA4CiB,OAAA,CAAA,EAvFL,QAuFK;EACA;;;EAST,UAAA,CAAA,EA5FO,QA4FP,EAAA;EAAQ;AAUhB;AAgCA;EACS,cAAA,CAAA,EAlIU,uBAkIV,EAAA,GAAA,MAAA,EAAA;;;;AAYT;AAsBA;;;;;AAYA;AA4BA;AAkBA;;;;;AAWA;;;;;;;;;;;;;;;iBAxMgB,gBAAA,QAAwB,wBAAqB;kBAA7C,gBAAA;6BAAgB;;;;;UA4Cf,gBAAA;iBACA;WACN;;;;;;;aAOE;QACL;;;;;;;;;iBAUQ,WAAA,QAAmB,mBAAgB;;;;UAgClC,eAAA,SAAwB;SAChC;;aAEI;;;;;;;;;iBAUG,UAAA,QAAkB,kBAAe;;;;UAsBhC,kBAAA,SAA2B;;SAEnC;aACI;;;;;;;;iBASG,gBAAA,QAAwB,qBAAkB;;;;;;;iBA4B1C,gBAAA,QAAwB,qBAAkB;;;;UAkBzC,gBAAA,SAAyB,kBAAkB;;aAE/C;;;;;;;;iBASG,WAAA,QAAmB,mBAAgB"}
@@ -101,6 +101,7 @@ declare function ClassField(props: ClassFieldProps): Children;
101
101
  * Props for a class field, which is a specific type of class member that represents a property of the class.
102
102
  */
103
103
  interface ClassPropertyProps extends ClassMemberProps {
104
+ name: string;
104
105
  type?: Children;
105
106
  children?: Children;
106
107
  }
@@ -1 +1 @@
1
- {"version":3,"file":"class-declaration.d.mts","names":[],"sources":["../../../src/typescript/components/class-declaration.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAoDiB,UAAA,qBAAA,SAA8B,sBAAR,CAAA;EAS3B;;;EATmC,QAAA,CAAA,EAAA,OAAA;EAAsB;AAoDrE;;EA4CiB,OAAA,CAAA,EAvFL,QAuFK;EACA;;;EAST,UAAA,CAAA,EA5FO,QA4FP,EAAA;EAAQ;AAUhB;AAgCA;EACS,cAAA,CAAA,EAlIU,uBAkIV,EAAA,GAAA,MAAA,EAAA;;;;AAYT;AAsBA;;;;;AAWA;AA4BA;AAkBA;;;;;AAWA;;;;;;;;;;;;;;;iBAvMgB,gBAAA,QAAwB,wBAAqB;kBAA7C,gBAAA;6BAAgB;;;;;UA4Cf,gBAAA;iBACA;WACN;;;;;;;aAOE;QACL;;;;;;;;;iBAUQ,WAAA,QAAmB,mBAAgB;;;;UAgClC,eAAA,SAAwB;SAChC;;aAEI;;;;;;;;;iBAUG,UAAA,QAAkB,kBAAe;;;;UAsBhC,kBAAA,SAA2B;SACnC;aACI;;;;;;;;iBASG,gBAAA,QAAwB,qBAAkB;;;;;;;iBA4B1C,gBAAA,QAAwB,qBAAkB;;;;UAkBzC,gBAAA,SAAyB,kBAAkB;;aAE/C;;;;;;;;iBASG,WAAA,QAAmB,mBAAgB"}
1
+ {"version":3,"file":"class-declaration.d.mts","names":[],"sources":["../../../src/typescript/components/class-declaration.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAoDiB,UAAA,qBAAA,SAA8B,sBAAR,CAAA;EAS3B;;;EATmC,QAAA,CAAA,EAAA,OAAA;EAAsB;AAoDrE;;EA4CiB,OAAA,CAAA,EAvFL,QAuFK;EACA;;;EAST,UAAA,CAAA,EA5FO,QA4FP,EAAA;EAAQ;AAUhB;AAgCA;EACS,cAAA,CAAA,EAlIU,uBAkIV,EAAA,GAAA,MAAA,EAAA;;;;AAYT;AAsBA;;;;;AAYA;AA4BA;AAkBA;;;;;AAWA;;;;;;;;;;;;;;;iBAxMgB,gBAAA,QAAwB,wBAAqB;kBAA7C,gBAAA;6BAAgB;;;;;UA4Cf,gBAAA;iBACA;WACN;;;;;;;aAOE;QACL;;;;;;;;;iBAUQ,WAAA,QAAmB,mBAAgB;;;;UAgClC,eAAA,SAAwB;SAChC;;aAEI;;;;;;;;;iBAUG,UAAA,QAAkB,kBAAe;;;;UAsBhC,kBAAA,SAA2B;;SAEnC;aACI;;;;;;;;iBASG,gBAAA,QAAwB,qBAAkB;;;;;;;iBA4B1C,gBAAA,QAAwB,qBAAkB;;;;UAkBzC,gBAAA,SAAyB,kBAAkB;;aAE/C;;;;;;;;iBASG,WAAA,QAAmB,mBAAgB"}
@@ -193,7 +193,9 @@ function ClassPropertySet(props) {
193
193
  return [createComponent(ClassMember, mergeProps(props, { get children() {
194
194
  return [
195
195
  " set ",
196
- createComponent(PropertyName, {}),
196
+ createComponent(PropertyName, { get name() {
197
+ return props.name;
198
+ } }),
197
199
  createComponent(LexicalScope, { get children() {
198
200
  return [
199
201
  createComponent(CallSignature, { get parameters() {
@@ -223,7 +225,9 @@ function ClassPropertyGet(props) {
223
225
  return createComponent(ClassMember, mergeProps(props, { get children() {
224
226
  return [
225
227
  " get ",
226
- createComponent(PropertyName, {}),
228
+ createComponent(PropertyName, { get name() {
229
+ return props.name;
230
+ } }),
227
231
  createComponent(LexicalScope, { get children() {
228
232
  return [
229
233
  createComponent(CallSignature, { get returnType() {
@@ -1 +1 @@
1
- {"version":3,"file":"class-declaration.mjs","names":["Block","code","For","MemberDeclaration","Name","Show","splitProps","CallSignature","createMemberSymbol","createTypeAndValueSymbol","Declaration","TSSymbolFlags","TypeRefContext","useTSNamePolicy","LexicalScope","MemberScope","getCallSignatureProps","PropertyName","TSDoc","TSDocParams","TypeParameters","ClassDeclaration","props","extendsPart","extends","_$memo","implementsPart","implements","length","_$createComponent","each","comma","space","children","implement","sym","name","refkeys","refkey","export","default","metadata","hasInstanceMembers","namePolicy","for","when","Boolean","doc","heading","symbol","ownerSymbol","abstract","typeParameters","parameters","ClassMember","tsFlags","None","nullish","Nullish","public","private","protected","static","ClassField","optionality","optional","typeSection","type","initializerSection","_$mergeProps","isPrivateMember","ClassPropertySet","ClassPropertyGet","returnType","ClassMethod","callProps","_","rest","Array","isArray","async"],"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}\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.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 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 private={props.isPrivateMember} />\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 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 />\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 />\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0SA;EAAA;cAAA;AAAA,WAAA,MAAA;;GAAA,OAAA;GAAA,OAAA;GAAA,yBAAA;GAAA,CAAA;;CAAA,MAAA,MAAA,yBAAA,MAAA,MAAA"}
1
+ {"version":3,"file":"class-declaration.mjs","names":["Block","code","For","MemberDeclaration","Name","Show","splitProps","CallSignature","createMemberSymbol","createTypeAndValueSymbol","Declaration","TSSymbolFlags","TypeRefContext","useTSNamePolicy","LexicalScope","MemberScope","getCallSignatureProps","PropertyName","TSDoc","TSDocParams","TypeParameters","ClassDeclaration","props","extendsPart","extends","_$memo","implementsPart","implements","length","_$createComponent","each","comma","space","children","implement","sym","name","refkeys","refkey","export","default","metadata","hasInstanceMembers","namePolicy","for","when","Boolean","doc","heading","symbol","ownerSymbol","abstract","typeParameters","parameters","ClassMember","tsFlags","None","nullish","Nullish","public","private","protected","static","ClassField","optionality","optional","typeSection","type","initializerSection","_$mergeProps","isPrivateMember","ClassPropertySet","ClassPropertyGet","returnType","ClassMethod","callProps","_","rest","Array","isArray","async"],"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}\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.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 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 private={props.isPrivateMember} />\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAgSA;;;;;;;;;;;;;;;;UAuBiC;EAAA,KAAA,YAAA;AAAA,UAAA,MAAA;;EAAA,KAAA,aAAA;AAAA,UAAA,MAAA;;EAAA,IAAA,WAAA;AAAA,UAAA;iBAAA;IAAA,IAAA,WAAA;AAAA,YAAA;MAAA,6BAAA,IAAA,YAAA;MAAA;MAAA,gBAAA,MAAA,EAAA,CAAA;MAAA,WAAA,WAAA,CAAA,CAAA,MAAA,eAAA,EAAA,IAAA"}