@powerlines/plugin-alloy 0.21.2 → 0.21.3

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 (48) hide show
  1. package/dist/core/components/output.d.cts +2 -2
  2. package/dist/core/components/output.d.mts +2 -2
  3. package/dist/core/components/single-line-comment.d.cts +2 -2
  4. package/dist/core/components/single-line-comment.d.mts +2 -2
  5. package/dist/core/components/source-file.d.cts +2 -2
  6. package/dist/core/contexts/reflection.d.cts.map +1 -1
  7. package/dist/markdown/components/front-matter.d.cts +2 -2
  8. package/dist/markdown/components/markdown-file.d.cts +3 -3
  9. package/dist/markdown/components/markdown-file.d.mts +3 -3
  10. package/dist/markdown/components/markdown-table.d.cts +4 -4
  11. package/dist/markdown/components/markdown-table.d.mts +4 -4
  12. package/dist/markdown/contexts/markdown-table.d.cts.map +1 -1
  13. package/dist/typescript/components/builtin-file.d.cts +2 -2
  14. package/dist/typescript/components/builtin-file.d.mts +2 -2
  15. package/dist/typescript/components/class-declaration.cjs +3 -9
  16. package/dist/typescript/components/class-declaration.d.cts +2 -3
  17. package/dist/typescript/components/class-declaration.d.cts.map +1 -1
  18. package/dist/typescript/components/class-declaration.d.mts +2 -3
  19. package/dist/typescript/components/class-declaration.d.mts.map +1 -1
  20. package/dist/typescript/components/class-declaration.mjs +4 -10
  21. package/dist/typescript/components/class-declaration.mjs.map +1 -1
  22. package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
  23. package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
  24. package/dist/typescript/components/entry-file.d.cts +2 -2
  25. package/dist/typescript/components/entry-file.d.cts.map +1 -1
  26. package/dist/typescript/components/entry-file.d.mts +2 -2
  27. package/dist/typescript/components/tsdoc-reflection.d.cts +4 -4
  28. package/dist/typescript/components/tsdoc-reflection.d.cts.map +1 -1
  29. package/dist/typescript/components/type-parameters.cjs +42 -67
  30. package/dist/typescript/components/type-parameters.d.cts +1 -2
  31. package/dist/typescript/components/type-parameters.d.cts.map +1 -1
  32. package/dist/typescript/components/type-parameters.d.mts +1 -2
  33. package/dist/typescript/components/type-parameters.d.mts.map +1 -1
  34. package/dist/typescript/components/type-parameters.mjs +44 -69
  35. package/dist/typescript/components/type-parameters.mjs.map +1 -1
  36. package/dist/typescript/components/typescript-interface.d.cts +3 -3
  37. package/dist/typescript/components/typescript-interface.d.cts.map +1 -1
  38. package/dist/typescript/components/typescript-interface.d.mts +3 -3
  39. package/dist/typescript/components/typescript-object.d.cts +3 -3
  40. package/dist/typescript/components/typescript-object.d.mts +3 -3
  41. package/dist/typescript/components/typescript-object.d.mts.map +1 -1
  42. package/dist/typescript/components/typescript-property-name.d.cts +2 -2
  43. package/dist/typescript/components/typescript-property-name.d.mts +2 -2
  44. package/dist/typescript/components/typescript-property-name.d.mts.map +1 -1
  45. package/dist/typescript/contexts/lexical-scope.d.cts +2 -2
  46. package/dist/typescript/contexts/lexical-scope.d.mts +2 -2
  47. package/dist/typescript/contexts/lexical-scope.d.mts.map +1 -1
  48. package/package.json +6 -6
@@ -1,6 +1,6 @@
1
1
  import { MetaItem } from "../contexts/meta.cjs";
2
2
  import "../contexts/index.cjs";
3
- import * as _alloy_js_core0 from "@alloy-js/core";
3
+ import * as _alloy_js_core3 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_core3.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_core6 from "@alloy-js/core";
3
+ import * as _alloy_js_core0 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_core6.Children;
21
+ declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core0.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_core6 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_core6.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.mjs";
2
- import * as _alloy_js_core3 from "@alloy-js/core";
2
+ import * as _alloy_js_core1 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_core3.Children;
18
+ declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core1.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_core1 from "@alloy-js/core";
2
+ import * as _alloy_js_core0 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_core1.Children;
29
+ declare function SourceFile(props: SourceFileProps): _alloy_js_core0.Children;
30
30
  declare type __ΩSourceFileProps = any[];
31
31
  //#endregion
32
32
  export { SourceFile, SourceFileProps, __ΩSourceFileProps };
@@ -1 +1 @@
1
- {"version":3,"file":"reflection.d.cts","names":[],"sources":["../../../src/core/contexts/reflection.ts"],"sourcesContent":[],"mappings":";;;;;UA4BiB,0CACL,sBAAsB;cAEpB,gBAAgB;EAHb,QAAA,CAAA,EAIJ,2BAJmC,CAIP,CAJO,CAAA;;;;;AAIP,cAM5B,sBAN4B,EAMJ,gBANI,CAOvC,+BAPuC,CAAA,GAAA,CAAA,CAAA;;;AAMzC;AASA;;AACkC,iBADlB,kBACkB,CAAA,UAAtB,MAAsB,CAAA,MAAA,EAAA,GAAA,CAAA,GAAA,MAAA,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,CAAA,EAAmB,+BAAnB,CAAmB,CAAnB,CAAA;;;;AAkBrB,cAAA,yBAA4C,EAAjB,gBAAA,CAAiB,kBAAD,CAAA;AAQxD;AAeA;AAQA;AAeA;AAQA;iBA9CgB,qBAAA,CAAA,GAAqB;;;;cAexB,yBAAyB,iBAAiB;;;;;;iBAQvC,mBAAA,CAAA,GAAmB;;;;cAetB,4BAA4B,iBAAiB;;;;;;iBAQ1C,sBAAA,CAAA,GAAsB"}
1
+ {"version":3,"file":"reflection.d.cts","names":[],"sources":["../../../src/core/contexts/reflection.ts"],"sourcesContent":[],"mappings":";;;;;UA4BiB,0CACL,sBAAsB;cAEpB,gBAAgB;EAHb,QAAA,CAAA,EAIJ,2BAJmC,CAIP,CAJO,CAAA;;;;;AAIP,cAM5B,sBAN4B,EAMJ,gBANI,CAOvC,+BAPuC,CAAA,GAAA,CAAA,CAAA;;;AAMzC;AASA;;AACkC,iBADlB,kBACkB,CAAA,UAAtB,MAAsB,CAAA,MAAA,EAAA,GAAA,CAAA,GAAA,MAAA,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,CAAA,EAAmB,+BAAnB,CAAmB,CAAnB,CAAA;;;;AAkBrB,cAAA,yBAA4C,EAAjB,gBAAiB,CAAA,kBAAD,CAAA;AAQxD;AAeA;AAQA;AAeA;AAQA;iBA9CgB,qBAAA,CAAA,GAAqB;;;;cAexB,yBAAyB,iBAAiB;;;;;;iBAQvC,mBAAA,CAAA,GAAmB;;;;cAetB,4BAA4B,iBAAiB;;;;;;iBAQ1C,sBAAA,CAAA,GAAsB"}
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core7 from "@alloy-js/core";
1
+ import * as _alloy_js_core2 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_core2.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_core5 from "@alloy-js/core";
4
+ import * as _alloy_js_core0 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_core5.Children;
14
+ declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core0.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_core5.Children;
24
+ declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core0.Children;
25
25
  declare type __ΩMarkdownFileProps = any[];
26
26
  declare type __ΩMarkdownFileHeaderProps = any[];
27
27
  //#endregion
@@ -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_core4 from "@alloy-js/core";
4
+ import * as _alloy_js_core5 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_core4.Children;
14
+ declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core5.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_core4.Children;
24
+ declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core5.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_core2 from "@alloy-js/core";
3
+ import * as _alloy_js_core7 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_core2.Children;
12
+ declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core7.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_core2.Children;
19
+ declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core7.Children;
20
20
  /**
21
21
  * Component that provides a context for rendering markdown tables.
22
22
  */
23
- declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core2.Children;
23
+ declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core7.Children;
24
24
  declare type __ΩMarkdownTableProps = any[];
25
25
  declare type __ΩMarkdownTableColumnProps = any[];
26
26
  //#endregion
@@ -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_core0 from "@alloy-js/core";
3
+ import * as _alloy_js_core2 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_core0.Children;
12
+ declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core2.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_core0.Children;
19
+ declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core2.Children;
20
20
  /**
21
21
  * Component that provides a context for rendering markdown tables.
22
22
  */
23
- declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core0.Children;
23
+ declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core2.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/contexts/markdown-table.ts"],"sourcesContent":[],"mappings":";;;UAqBiB,8CACL,sBAAsB;;EADjB,IAAA,EAAA,MAIH,CAJG;EACL,KAAA,EAAA,MAAA,GAAA,OAAA,GAAA,QAAA;EAAsB,KAAA,EAAA,MAAA;;;AAWlC;AAWA;AAMiB,cAjBJ,0BAiBiC,EAjBL,gBAiBK,CAjBY,mCAiBZ,CAAA;;;;;;AAIrC,iBAVO,sBAAA,CAAA,CAUP,EAV6B,mCAU7B,CAV6B,MAU7B,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,GAAA,SAAA;AAMI,UAVI,6BAUmC,CAAA,UATxC,MASwC,CAAA,MAAA,EAAjB,GAAA,CAAA,GATD,MASC,CAAA,MAAgB,EAAA,GAAA,CAAA,CAAA,CAAA;EAWnC,OAAA,EAlBL,mCAkBqB,CAlBe,CAkBf,CAAA,EAAA;QAjBxB;;;;;cAMK,sBAAsB,iBAAiB;;;;;;iBAWpC,gBAAA,CAAA,GAAgB,8BAAA"}
1
+ {"version":3,"file":"markdown-table.d.cts","names":[],"sources":["../../../src/markdown/contexts/markdown-table.ts"],"sourcesContent":[],"mappings":";;;UAqBiB,8CACL,sBAAsB;;EADjB,IAAA,EAAA,MAIH,CAJG;EACL,KAAA,EAAA,MAAA,GAAA,OAAA,GAAA,QAAA;EAAsB,KAAA,EAAA,MAAA;;;AAWlC;AAWA;AAMiB,cAjBJ,0BAiBiC,EAjBL,gBAiBK,CAjBY,mCAiBZ,CAAA;;;;;;AAIrC,iBAVO,sBAAA,CAAA,CAUP,EAV6B,mCAU7B,CAV6B,MAU7B,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,GAAA,SAAA;AAMI,UAVI,6BAUmC,CAAA,UATxC,MASwC,CAAA,MAAjB,EAAA,GAAA,CAAA,GATD,MASC,CAAA,MAAgB,EAAA,GAAA,CAAA,CAAA,CAAA;EAWnC,OAAA,EAlBL,mCAkBqB,CAlBe,CAkBf,CAAA,EAAA;QAjBxB;;;;;cAMK,sBAAsB,iBAAiB;;;;;;iBAWpC,gBAAA,CAAA,GAAgB,8BAAA"}
@@ -1,6 +1,6 @@
1
1
  import { TSDocModuleProps } from "./tsdoc.cjs";
2
2
  import { TypescriptFileProps } from "./typescript-file.cjs";
3
- import * as _alloy_js_core22 from "@alloy-js/core";
3
+ import * as _alloy_js_core19 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_core22.Children;
31
+ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core19.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_core23 from "@alloy-js/core";
3
+ import * as _alloy_js_core19 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_core23.Children;
31
+ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core19.Children;
32
32
  declare type __ΩBuiltinFileProps = any[];
33
33
  //#endregion
34
34
  export { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps };
@@ -65,14 +65,6 @@ function ClassDeclaration(props) {
65
65
  hasInstanceMembers: true,
66
66
  namePolicy: (0, __alloy_js_typescript.useTSNamePolicy)().for("class")
67
67
  });
68
- const typeParametersChildren = props.children ? (0, __alloy_js_core.findKeyedChild)(props.children, require_typescript_components_type_parameters.TypeParameters.tag) : void 0;
69
- const sTypeParameters = typeParametersChildren ? [
70
- "<",
71
- typeParametersChildren,
72
- ">"
73
- ] : (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_type_parameters.TypeParameters, { get parameters() {
74
- return props.typeParameters;
75
- } });
76
68
  return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
77
69
  get when() {
78
70
  return Boolean(props.doc);
@@ -98,7 +90,9 @@ function ClassDeclaration(props) {
98
90
  (0, __alloy_js_core_jsx_runtime.memo)(() => props.abstract && __alloy_js_core.code`abstract `),
99
91
  " class ",
100
92
  (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Name, {}),
101
- sTypeParameters,
93
+ (0, __alloy_js_core_jsx_runtime.memo)(() => (0, __alloy_js_core_jsx_runtime.memo)(() => !!props.typeParameters)() && (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_type_parameters.TypeParameters, { get parameters() {
94
+ return props.typeParameters;
95
+ } })),
102
96
  extendsPart,
103
97
  implementsPart,
104
98
  " ",
@@ -1,5 +1,4 @@
1
- import { TypeParametersProps } from "./type-parameters.cjs";
2
- import * as _alloy_js_core20 from "@alloy-js/core";
1
+ import { TypeParameters } from "./type-parameters.cjs";
3
2
  import { Children, Namekey, Refkey } from "@alloy-js/core";
4
3
  import { CallSignatureProps, CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
5
4
 
@@ -54,7 +53,7 @@ interface ClassDeclarationProps extends CommonDeclarationProps {
54
53
  */
55
54
  declare function ClassDeclaration(props: ClassDeclarationProps): Children;
56
55
  declare namespace ClassDeclaration {
57
- var TypeParameters: _alloy_js_core20.Component<TypeParametersProps> & Required<Pick<_alloy_js_core20.Component<TypeParametersProps>, "tag">>;
56
+ var TypeParameters: typeof TypeParameters;
58
57
  }
59
58
  interface ClassMemberProps {
60
59
  name: string | Namekey;
@@ -1 +1 @@
1
- {"version":3,"file":"class-declaration.d.cts","names":[],"sources":["../../../src/typescript/components/class-declaration.tsx"],"sourcesContent":[],"mappings":";;;;;;UAmDiB,qBAAA,SAA8B;;;;EAA9B,QAAA,CAAA,EAAA,OAAA;EAQL;;;EARmC,OAAA,CAAA,EAQnC,QARmC;EAAsB;AAiDrE;;EAAgC,UAAA,CAAA,EArCjB,QAqCiB,EAAA;;;;mBAjCb;;;AAuFnB;;;;;;AAaA;AA6BA;;;;;AAMA;AAmBA;;;;;AAKA;;;;;;;;;;;iBA9HgB,gBAAA,QAAwB,wBAAqB;kBAA7C,gBAAA;iDAAgB,mBAAA;;UAsDf,gBAAA;iBACA;WACN;;;;;;aAME;QACL;;;iBAIQ,WAAA,QAAmB,mBAAgB;UA6BlC,eAAA,SAAwB;SAChC;;aAEI;;iBAGG,UAAA,QAAkB,kBAAe;UAmBhC,gBAAA,SAAyB,kBAAkB;;aAE/C;;iBAGG,WAAA,QAAmB,mBAAgB"}
1
+ {"version":3,"file":"class-declaration.d.cts","names":[],"sources":["../../../src/typescript/components/class-declaration.tsx"],"sourcesContent":[],"mappings":";;;;;UAkDiB,qBAAA,SAA8B;;;AAA/C;EAQY,QAAA,CAAA,EAAA,OAAA;EAIG;;;EAZsD,OAAA,CAAA,EAQzD,QARyD;EAiDrD;;AA0ChB;EACiB,UAAA,CAAA,EAhFF,QAgFE,EAAA;EACN;;;EAOK,cAAA,CAAA,EApFG,uBAoFH,EAAA,GAAA,MAAA,EAAA;AAIhB;AA6BA;;;;;AAMA;AAmBA;;;;;AAKA;;;;;;;;;;;;;;;;;;;iBAlHgB,gBAAA,QAAwB,wBAAqB;kBAA7C,gBAAA;6BAAgB;;UA0Cf,gBAAA;iBACA;WACN;;;;;;aAME;QACL;;;iBAIQ,WAAA,QAAmB,mBAAgB;UA6BlC,eAAA,SAAwB;SAChC;;aAEI;;iBAGG,UAAA,QAAkB,kBAAe;UAmBhC,gBAAA,SAAyB,kBAAkB;;aAE/C;;iBAGG,WAAA,QAAmB,mBAAgB"}
@@ -1,5 +1,4 @@
1
- import { TypeParametersProps } from "./type-parameters.mjs";
2
- import * as _alloy_js_core21 from "@alloy-js/core";
1
+ import { TypeParameters } from "./type-parameters.mjs";
3
2
  import { Children, Namekey, Refkey } from "@alloy-js/core";
4
3
  import { CallSignatureProps, CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
5
4
 
@@ -54,7 +53,7 @@ interface ClassDeclarationProps extends CommonDeclarationProps {
54
53
  */
55
54
  declare function ClassDeclaration(props: ClassDeclarationProps): Children;
56
55
  declare namespace ClassDeclaration {
57
- var TypeParameters: _alloy_js_core21.Component<TypeParametersProps> & Required<Pick<_alloy_js_core21.Component<TypeParametersProps>, "tag">>;
56
+ var TypeParameters: typeof TypeParameters;
58
57
  }
59
58
  interface ClassMemberProps {
60
59
  name: string | Namekey;
@@ -1 +1 @@
1
- {"version":3,"file":"class-declaration.d.mts","names":[],"sources":["../../../src/typescript/components/class-declaration.tsx"],"sourcesContent":[],"mappings":";;;;;;UAmDiB,qBAAA,SAA8B;;;;EAA9B,QAAA,CAAA,EAAA,OAAA;EAQL;;;EARmC,OAAA,CAAA,EAQnC,QARmC;EAAsB;AAiDrE;;EAAgC,UAAA,CAAA,EArCjB,QAqCiB,EAAA;;;;mBAjCb;;;AAuFnB;;;;;;AAaA;AA6BA;;;;;AAMA;AAmBA;;;;;AAKA;;;;;;;;;;;iBA9HgB,gBAAA,QAAwB,wBAAqB;kBAA7C,gBAAA;iDAAgB,mBAAA;;UAsDf,gBAAA;iBACA;WACN;;;;;;aAME;QACL;;;iBAIQ,WAAA,QAAmB,mBAAgB;UA6BlC,eAAA,SAAwB;SAChC;;aAEI;;iBAGG,UAAA,QAAkB,kBAAe;UAmBhC,gBAAA,SAAyB,kBAAkB;;aAE/C;;iBAGG,WAAA,QAAmB,mBAAgB"}
1
+ {"version":3,"file":"class-declaration.d.mts","names":[],"sources":["../../../src/typescript/components/class-declaration.tsx"],"sourcesContent":[],"mappings":";;;;;UAkDiB,qBAAA,SAA8B;;;AAA/C;EAQY,QAAA,CAAA,EAAA,OAAA;EAIG;;;EAZsD,OAAA,CAAA,EAQzD,QARyD;EAiDrD;;AA0ChB;EACiB,UAAA,CAAA,EAhFF,QAgFE,EAAA;EACN;;;EAOK,cAAA,CAAA,EApFG,uBAoFH,EAAA,GAAA,MAAA,EAAA;AAIhB;AA6BA;;;;;AAMA;AAmBA;;;;;AAKA;;;;;;;;;;;;;;;;;;;iBAlHgB,gBAAA,QAAwB,wBAAqB;kBAA7C,gBAAA;6BAAgB;;UA0Cf,gBAAA;iBACA;WACN;;;;;;aAME;QACL;;;iBAIQ,WAAA,QAAmB,mBAAgB;UA6BlC,eAAA,SAAwB;SAChC;;aAEI;;iBAGG,UAAA,QAAkB,kBAAe;UAmBhC,gBAAA,SAAyB,kBAAkB;;aAE/C;;iBAGG,WAAA,QAAmB,mBAAgB"}
@@ -7,7 +7,7 @@ import "../helpers/index.mjs";
7
7
  import { TypeParameters } from "./type-parameters.mjs";
8
8
  import { TypescriptPropertyName } from "./typescript-property-name.mjs";
9
9
  import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
10
- import { Block, For, MemberDeclaration, Name, Prose, Show, code, findKeyedChild, splitProps } from "@alloy-js/core";
10
+ import { Block, For, MemberDeclaration, Name, Prose, Show, code, splitProps } from "@alloy-js/core";
11
11
  import { CallSignature, Declaration as Declaration$1, TSSymbolFlags, TypeRefContext, createMemberSymbol, createTypeAndValueSymbol, useTSNamePolicy } from "@alloy-js/typescript";
12
12
 
13
13
  //#region src/typescript/components/class-declaration.tsx
@@ -64,14 +64,6 @@ function ClassDeclaration(props) {
64
64
  hasInstanceMembers: true,
65
65
  namePolicy: useTSNamePolicy().for("class")
66
66
  });
67
- const typeParametersChildren = props.children ? findKeyedChild(props.children, TypeParameters.tag) : void 0;
68
- const sTypeParameters = typeParametersChildren ? [
69
- "<",
70
- typeParametersChildren,
71
- ">"
72
- ] : createComponent(TypeParameters, { get parameters() {
73
- return props.typeParameters;
74
- } });
75
67
  return [createComponent(Show, {
76
68
  get when() {
77
69
  return Boolean(props.doc);
@@ -97,7 +89,9 @@ function ClassDeclaration(props) {
97
89
  memo(() => props.abstract && code`abstract `),
98
90
  " class ",
99
91
  createComponent(Name, {}),
100
- sTypeParameters,
92
+ memo(() => memo(() => !!props.typeParameters)() && createComponent(TypeParameters, { get parameters() {
93
+ return props.typeParameters;
94
+ } })),
101
95
  extendsPart,
102
96
  implementsPart,
103
97
  " ",
@@ -1 +1 @@
1
- {"version":3,"file":"class-declaration.mjs","names":["Block","code","findKeyedChild","For","MemberDeclaration","Name","Prose","Show","splitProps","CallSignature","createMemberSymbol","createTypeAndValueSymbol","Declaration","TSSymbolFlags","TypeRefContext","useTSNamePolicy","LexicalScope","MemberScope","getCallSignatureProps","TSDoc","TSDocParams","TypeParameters","TypescriptPropertyName","ClassDeclaration","props","extendsPart","extends","_$memo","implementsPart","implements","length","_$createComponent","each","comma","space","children","implement","sym","name","refkeys","refkey","export","default","metadata","hasInstanceMembers","namePolicy","for","typeParametersChildren","tag","undefined","sTypeParameters","parameters","typeParameters","when","Boolean","doc","heading","_$createIntrinsic","symbol","ownerSymbol","abstract","ClassMember","tsFlags","None","nullish","Nullish","public","private","protected","static","ClassField","optionality","optional","typeSection","type","initializerSection","_$mergeProps","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 findKeyedChild,\n For,\n MemberDeclaration,\n Name,\n Namekey,\n Prose,\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 { TSDoc, TSDocParams } from \"./tsdoc\";\nimport { TypeParameters } from \"./type-parameters\";\nimport { TypescriptPropertyName } from \"./typescript-property-name\";\n\nexport interface ClassDeclarationProps extends CommonDeclarationProps {\n /**\n * An indication of whether this class is abstract\n */\n abstract?: boolean;\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 * Optional interfaces that this class implements. This will be rendered as an `implements` clause in the class declaration\n */\n implements?: Children[];\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 const typeParametersChildren = props.children\n ? findKeyedChild(props.children, TypeParameters.tag)\n : undefined;\n\n const sTypeParameters = typeParametersChildren ? (\n <>\n {\"<\"}\n {typeParametersChildren}\n {\">\"}\n </>\n ) : (\n <TypeParameters parameters={props.typeParameters} />\n );\n\n return (\n <>\n <Show when={Boolean(props.doc)}>\n <TSDoc heading={props.doc} />\n <hbr />\n </Show>\n <Declaration symbol={sym} export={props.export} default={props.default}>\n <MemberScope ownerSymbol={sym}>\n {props.abstract && code`abstract `} class <Name />\n {sTypeParameters}\n {extendsPart}\n {implementsPart} <Block>{props.children}</Block>\n </MemberScope>\n </Declaration>\n </>\n );\n}\n\nClassDeclaration.TypeParameters = TypeParameters;\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 children?: Children;\n doc?: Children;\n nullish?: boolean;\n}\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 <hbr />\n </Show>\n <MemberDeclaration symbol={sym}>\n {props.public && \"public \"}\n {props.private && \"private \"}\n {props.protected && \"protected \"}\n {props.static && \"static \"}\n {props.children}\n </MemberDeclaration>\n </>\n );\n}\n\nexport interface ClassFieldProps extends ClassMemberProps {\n type?: Children;\n optional?: boolean;\n children?: Children;\n}\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 <TypescriptPropertyName />\n {typeSection}\n {initializerSection}\n </ClassMember>\n );\n}\n\nexport interface ClassMethodProps extends ClassMemberProps, CallSignatureProps {\n async?: boolean;\n children?: Children;\n}\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>\n {props.doc && <Prose children={props.doc} />}\n {Array.isArray(rest.parameters) && (\n <TSDocParams parameters={rest.parameters} />\n )}\n </TSDoc>\n <hbr />\n </Show>\n <ClassMember {...rest}>\n {props.async && \"async \"}\n <TypescriptPropertyName />\n <LexicalScope>\n <CallSignature {...callProps} /> <Block>{props.children}</Block>\n </LexicalScope>\n </ClassMember>\n </>\n );\n}\n"],"mappings":""}
1
+ {"version":3,"file":"class-declaration.mjs","names":["Block","code","For","MemberDeclaration","Name","Prose","Show","splitProps","CallSignature","createMemberSymbol","createTypeAndValueSymbol","Declaration","TSSymbolFlags","TypeRefContext","useTSNamePolicy","LexicalScope","MemberScope","getCallSignatureProps","TSDoc","TSDocParams","TypeParameters","TypescriptPropertyName","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","_$createIntrinsic","symbol","ownerSymbol","abstract","typeParameters","parameters","ClassMember","tsFlags","None","nullish","Nullish","public","private","protected","static","ClassField","optionality","optional","typeSection","type","initializerSection","_$mergeProps","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 Prose,\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 { TSDoc, TSDocParams } from \"./tsdoc\";\nimport { TypeParameters } from \"./type-parameters\";\nimport { TypescriptPropertyName } from \"./typescript-property-name\";\n\nexport interface ClassDeclarationProps extends CommonDeclarationProps {\n /**\n * An indication of whether this class is abstract\n */\n abstract?: boolean;\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 * Optional interfaces that this class implements. This will be rendered as an `implements` clause in the class declaration\n */\n implements?: Children[];\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 <hbr />\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\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 children?: Children;\n doc?: Children;\n nullish?: boolean;\n}\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 <hbr />\n </Show>\n <MemberDeclaration symbol={sym}>\n {props.public && \"public \"}\n {props.private && \"private \"}\n {props.protected && \"protected \"}\n {props.static && \"static \"}\n {props.children}\n </MemberDeclaration>\n </>\n );\n}\n\nexport interface ClassFieldProps extends ClassMemberProps {\n type?: Children;\n optional?: boolean;\n children?: Children;\n}\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 <TypescriptPropertyName />\n {typeSection}\n {initializerSection}\n </ClassMember>\n );\n}\n\nexport interface ClassMethodProps extends ClassMemberProps, CallSignatureProps {\n async?: boolean;\n children?: Children;\n}\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>\n {props.doc && <Prose children={props.doc} />}\n {Array.isArray(rest.parameters) && (\n <TSDocParams parameters={rest.parameters} />\n )}\n </TSDoc>\n <hbr />\n </Show>\n <ClassMember {...rest}>\n {props.async && \"async \"}\n <TypescriptPropertyName />\n <LexicalScope>\n <CallSignature {...callProps} /> <Block>{props.children}</Block>\n </LexicalScope>\n </ClassMember>\n </>\n );\n}\n"],"mappings":""}
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core19 from "@alloy-js/core";
1
+ import * as _alloy_js_core17 from "@alloy-js/core";
2
2
  import { VarDeclarationProps } from "@alloy-js/typescript";
3
3
 
4
4
  //#region src/typescript/components/dynamic-import-statement.d.ts
@@ -26,7 +26,7 @@ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initial
26
26
  * @param props - The properties for the dynamic import statement.
27
27
  * @returns A `VarDeclaration` component representing the dynamic import statement.
28
28
  */
29
- declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core19.Children;
29
+ declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core17.Children;
30
30
  declare type __ΩDynamicImportStatementProps = any[];
31
31
  //#endregion
32
32
  export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core20 from "@alloy-js/core";
1
+ import * as _alloy_js_core15 from "@alloy-js/core";
2
2
  import { VarDeclarationProps } from "@alloy-js/typescript";
3
3
 
4
4
  //#region src/typescript/components/dynamic-import-statement.d.ts
@@ -26,7 +26,7 @@ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initial
26
26
  * @param props - The properties for the dynamic import statement.
27
27
  * @returns A `VarDeclaration` component representing the dynamic import statement.
28
28
  */
29
- declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core20.Children;
29
+ declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core15.Children;
30
30
  declare type __ΩDynamicImportStatementProps = any[];
31
31
  //#endregion
32
32
  export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
@@ -1,5 +1,5 @@
1
1
  import { TypescriptFileProps } from "./typescript-file.cjs";
2
- import * as _alloy_js_core8 from "@alloy-js/core";
2
+ import * as _alloy_js_core18 from "@alloy-js/core";
3
3
  import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
4
4
 
5
5
  //#region src/typescript/components/entry-file.d.ts
@@ -21,7 +21,7 @@ type EntryFileProps = TypescriptFileProps & {
21
21
  * @param props - The properties for the source file.
22
22
  * @returns The rendered source file component.
23
23
  */
24
- declare function EntryFile(props: EntryFileProps): _alloy_js_core8.Children;
24
+ declare function EntryFile(props: EntryFileProps): _alloy_js_core18.Children;
25
25
  declare type __ΩEntryFileProps = any[];
26
26
  //#endregion
27
27
  export { EntryFile, EntryFileProps, __ΩEntryFileProps };
@@ -1 +1 @@
1
- {"version":3,"file":"entry-file.d.cts","names":[],"sources":["../../../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,eAAA,CAAA"}
1
+ {"version":3,"file":"entry-file.d.cts","names":[],"sources":["../../../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { TypescriptFileProps } from "./typescript-file.mjs";
2
- import * as _alloy_js_core19 from "@alloy-js/core";
2
+ import * as _alloy_js_core10 from "@alloy-js/core";
3
3
  import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
4
4
 
5
5
  //#region src/typescript/components/entry-file.d.ts
@@ -21,7 +21,7 @@ type EntryFileProps = TypescriptFileProps & {
21
21
  * @param props - The properties for the source file.
22
22
  * @returns The rendered source file component.
23
23
  */
24
- declare function EntryFile(props: EntryFileProps): _alloy_js_core19.Children;
24
+ declare function EntryFile(props: EntryFileProps): _alloy_js_core10.Children;
25
25
  declare type __ΩEntryFileProps = any[];
26
26
  //#endregion
27
27
  export { EntryFile, EntryFileProps, __ΩEntryFileProps };
@@ -1,19 +1,19 @@
1
1
  import { TSDocProps } from "./tsdoc.cjs";
2
- import * as _alloy_js_core9 from "@alloy-js/core";
2
+ import * as _alloy_js_core10 from "@alloy-js/core";
3
3
 
4
4
  //#region src/typescript/components/tsdoc-reflection.d.ts
5
5
  /**
6
6
  * Generates a TypeScript interface property for the given reflection class.
7
7
  */
8
- declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core9.Children;
8
+ declare function TSDocReflectionClass<T extends Record<string, any> = Record<string, any>>(props: TSDocProps): _alloy_js_core10.Children;
9
9
  /**
10
10
  * Generates a TypeScript interface property for the given reflection class.
11
11
  */
12
- declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core9.Children;
12
+ declare function TSDocReflectionProperty(props: TSDocProps): _alloy_js_core10.Children;
13
13
  /**
14
14
  * Generates a TypeScript interface property for the given reflection class.
15
15
  */
16
- declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core9.Children;
16
+ declare function TSDocReflectionMethod(props: TSDocProps): _alloy_js_core10.Children;
17
17
  //#endregion
18
18
  export { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty };
19
19
  //# sourceMappingURL=tsdoc-reflection.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tsdoc-reflection.d.cts","names":[],"sources":["../../../src/typescript/components/tsdoc-reflection.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAwCgB,iBAAA,oBAAoB,CAAA,UACxB,MADwB,CAAA,MAAA,EAAA,GAAA,CAAA,GACF,MADE,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAE3B,UAF2B,CAAA,EAEjB,eAAA,CAAA,QAFiB;;;;AAEjB,iBAyEH,uBAAA,CAzEG,KAAA,EAyE4B,UAzE5B,CAAA,EAyEsC,eAAA,CAAA,QAzEtC;;AAyEnB;AA8BA;iBAAgB,qBAAA,QAA6B,aAAU,eAAA,CAAA"}
1
+ {"version":3,"file":"tsdoc-reflection.d.cts","names":[],"sources":["../../../src/typescript/components/tsdoc-reflection.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAwCgB,iBAAA,oBAAoB,CAAA,UACxB,MADwB,CAAA,MAAA,EAAA,GAAA,CAAA,GACF,MADE,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAE3B,UAF2B,CAAA,EAEjB,gBAAA,CAAA,QAFiB;;;;AAEjB,iBAyEH,uBAAA,CAzEG,KAAA,EAyE4B,UAzE5B,CAAA,EAyEsC,gBAAA,CAAA,QAzEtC;;AAyEnB;AA8BA;iBAAgB,qBAAA,QAA6B,aAAU,gBAAA,CAAA"}
@@ -5,39 +5,46 @@ let __alloy_js_typescript = require("@alloy-js/typescript");
5
5
 
6
6
  //#region src/typescript/components/type-parameters.tsx
7
7
  /** Props for type parameters */
8
- const typeParametersTag = Symbol("type-parameters");
9
8
  function typeParameter(param) {
10
- return (0, __alloy_js_core_jsx_runtime.createIntrinsic)("group", { get children() {
11
- return [
12
- (0, __alloy_js_core_jsx_runtime.memo)(() => param.symbol.name),
13
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
14
- get when() {
15
- return !!param.extends;
16
- },
17
- get children() {
18
- return [
19
- " ",
20
- "extends",
21
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("indent", { get children() {
22
- return [" ", (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.TypeRefContext, { get children() {
23
- return param.extends;
9
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
10
+ when: typeof param === "object",
11
+ get fallback() {
12
+ return [param];
13
+ },
14
+ get children() {
15
+ return [(0, __alloy_js_core_jsx_runtime.createIntrinsic)("group", { get children() {
16
+ return [
17
+ (0, __alloy_js_core_jsx_runtime.memo)(() => param.name),
18
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
19
+ get when() {
20
+ return !!param.extends;
21
+ },
22
+ get children() {
23
+ return [
24
+ " ",
25
+ "extends",
26
+ (0, __alloy_js_core_jsx_runtime.createIntrinsic)("indent", { get children() {
27
+ return [" ", (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.TypeRefContext, { get children() {
28
+ return param.extends;
29
+ } })];
30
+ } })
31
+ ];
32
+ }
33
+ }),
34
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
35
+ get when() {
36
+ return !!param.default;
37
+ },
38
+ get children() {
39
+ return [" = ", (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.TypeRefContext, { get children() {
40
+ return param.default;
24
41
  } })];
25
- } })
26
- ];
27
- }
28
- }),
29
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
30
- get when() {
31
- return !!param.default;
32
- },
33
- get children() {
34
- return [" = ", (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.TypeRefContext, { get children() {
35
- return param.default;
36
- } })];
37
- }
38
- })
39
- ];
40
- } });
42
+ }
43
+ })
44
+ ];
45
+ } }), " "];
46
+ }
47
+ });
41
48
  }
42
49
  /**
43
50
  * Represent type parameters
@@ -47,13 +54,9 @@ function typeParameter(param) {
47
54
  * <A, B extends string>
48
55
  * ```
49
56
  */
50
- const TypeParameters = (0, __alloy_js_core.taggedComponent)(typeParametersTag, function TypeParameters$1(props) {
57
+ function TypeParameters(props) {
51
58
  if (props.children) return props.children;
52
59
  if (!props.parameters) return;
53
- const typeParameters = normalizeAndDeclareParameters(props.parameters);
54
- (0, __alloy_js_core.onCleanup)(() => {
55
- for (const param of typeParameters) param.symbol.delete();
56
- });
57
60
  return [
58
61
  "<",
59
62
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("group", { get children() {
@@ -61,7 +64,9 @@ const TypeParameters = (0, __alloy_js_core.taggedComponent)(typeParametersTag, f
61
64
  softline: true,
62
65
  get children() {
63
66
  return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
64
- each: typeParameters,
67
+ get each() {
68
+ return props.parameters;
69
+ },
65
70
  comma: true,
66
71
  line: true,
67
72
  children: (param) => typeParameter(param)
@@ -71,36 +76,6 @@ const TypeParameters = (0, __alloy_js_core.taggedComponent)(typeParametersTag, f
71
76
  } }),
72
77
  ">"
73
78
  ];
74
- });
75
- function normalizeAndDeclareParameters(parameters, flags = __alloy_js_typescript.TSSymbolFlags.ParameterSymbol) {
76
- const namePolicy = (0, __alloy_js_typescript.useTSNamePolicy)();
77
- if (parameters.length === 0) return [];
78
- if (typeof parameters[0] === "string") return parameters.map((paramName) => {
79
- const name = namePolicy.getName(paramName, "parameter");
80
- const TypeSlot = (0, __alloy_js_core.createSymbolSlot)();
81
- const symbol = (0, __alloy_js_typescript.createValueSymbol)(name, { type: TypeSlot.firstSymbol });
82
- return {
83
- refkeys: symbol.refkeys,
84
- symbol,
85
- TypeSlot
86
- };
87
- });
88
- else return parameters.map((param) => {
89
- const nullishFlag = param.nullish ?? param.optional ? __alloy_js_typescript.TSSymbolFlags.Nullish : __alloy_js_typescript.TSSymbolFlags.None;
90
- const TypeSlot = (0, __alloy_js_core.createSymbolSlot)();
91
- const symbol = (0, __alloy_js_typescript.createValueSymbol)(param.name, {
92
- refkeys: param.refkey,
93
- tsFlags: flags | nullishFlag,
94
- metadata: param.metadata,
95
- type: TypeSlot.firstSymbol,
96
- namePolicy: namePolicy.for("parameter")
97
- });
98
- return {
99
- ...param,
100
- symbol,
101
- TypeSlot
102
- };
103
- });
104
79
  }
105
80
 
106
81
  //#endregion
@@ -1,4 +1,3 @@
1
- import * as _alloy_js_core17 from "@alloy-js/core";
2
1
  import { Children } from "@alloy-js/core";
3
2
  import { TypeParameterDescriptor } from "@alloy-js/typescript";
4
3
 
@@ -18,7 +17,7 @@ interface TypeParametersProps {
18
17
  * <A, B extends string>
19
18
  * ```
20
19
  */
21
- declare const TypeParameters: _alloy_js_core17.Component<TypeParametersProps> & Required<Pick<_alloy_js_core17.Component<TypeParametersProps>, "tag">>;
20
+ declare function TypeParameters(props: TypeParametersProps): Children;
22
21
  declare type __ΩTypeParametersProps = any[];
23
22
  //#endregion
24
23
  export { TypeParameters, TypeParametersProps, __ΩTypeParametersProps };
@@ -1 +1 @@
1
- {"version":3,"file":"type-parameters.d.cts","names":[],"sources":["../../../src/typescript/components/type-parameters.tsx"],"sourcesContent":[],"mappings":";;;;;;UAwCiB,mBAAA;;EAAA,UAAA,CAAA,EAEF,uBAAA,EAAA,GAAA,MAAA,EAAA;EA0DF;EAAc,QAAA,CAAA,EAxDd,QAwDc;;;;;;;;;;cAAd,gBAAc,gBAAA,CAAA,UAAA,uBAAA,SAAA,KAAA,gBAAA,CAAA,UAAA"}
1
+ {"version":3,"file":"type-parameters.d.cts","names":[],"sources":["../../../src/typescript/components/type-parameters.tsx"],"sourcesContent":[],"mappings":";;;;;UAsBiB,mBAAA;EAAA;EAyCD,UAAA,CAAA,EAvCD,uBAuCuB,EAAA,GAAA,MAAA,EAAA;;aArCzB;;;;;;;;;;iBAqCG,cAAA,QAAsB,sBAAmB"}
@@ -1,4 +1,3 @@
1
- import * as _alloy_js_core14 from "@alloy-js/core";
2
1
  import { Children } from "@alloy-js/core";
3
2
  import { TypeParameterDescriptor } from "@alloy-js/typescript";
4
3
 
@@ -18,7 +17,7 @@ interface TypeParametersProps {
18
17
  * <A, B extends string>
19
18
  * ```
20
19
  */
21
- declare const TypeParameters: _alloy_js_core14.Component<TypeParametersProps> & Required<Pick<_alloy_js_core14.Component<TypeParametersProps>, "tag">>;
20
+ declare function TypeParameters(props: TypeParametersProps): Children;
22
21
  declare type __ΩTypeParametersProps = any[];
23
22
  //#endregion
24
23
  export { TypeParameters, TypeParametersProps, __ΩTypeParametersProps };
@@ -1 +1 @@
1
- {"version":3,"file":"type-parameters.d.mts","names":[],"sources":["../../../src/typescript/components/type-parameters.tsx"],"sourcesContent":[],"mappings":";;;;;;UAwCiB,mBAAA;;EAAA,UAAA,CAAA,EAEF,uBAAA,EAAA,GAAA,MAAA,EAAA;EA0DF;EAAc,QAAA,CAAA,EAxDd,QAwDc;;;;;;;;;;cAAd,gBAAc,gBAAA,CAAA,UAAA,uBAAA,SAAA,KAAA,gBAAA,CAAA,UAAA"}
1
+ {"version":3,"file":"type-parameters.d.mts","names":[],"sources":["../../../src/typescript/components/type-parameters.tsx"],"sourcesContent":[],"mappings":";;;;;UAsBiB,mBAAA;EAAA;EAyCD,UAAA,CAAA,EAvCD,uBAuCuB,EAAA,GAAA,MAAA,EAAA;;aArCzB;;;;;;;;;;iBAqCG,cAAA,QAAsB,sBAAmB"}
@@ -1,42 +1,49 @@
1
1
  import { createComponent, createIntrinsic, memo } from "@alloy-js/core/jsx-runtime";
2
- import { For, Indent, Show, createSymbolSlot, onCleanup, taggedComponent } from "@alloy-js/core";
3
- import { TSSymbolFlags, TypeRefContext, createValueSymbol, useTSNamePolicy } from "@alloy-js/typescript";
2
+ import { For, Indent, Show } from "@alloy-js/core";
3
+ import { TypeRefContext } from "@alloy-js/typescript";
4
4
 
5
5
  //#region src/typescript/components/type-parameters.tsx
6
6
  /** Props for type parameters */
7
- const typeParametersTag = Symbol("type-parameters");
8
7
  function typeParameter(param) {
9
- return createIntrinsic("group", { get children() {
10
- return [
11
- memo(() => param.symbol.name),
12
- createComponent(Show, {
13
- get when() {
14
- return !!param.extends;
15
- },
16
- get children() {
17
- return [
18
- " ",
19
- "extends",
20
- createIntrinsic("indent", { get children() {
21
- return [" ", createComponent(TypeRefContext, { get children() {
22
- return param.extends;
8
+ return createComponent(Show, {
9
+ when: typeof param === "object",
10
+ get fallback() {
11
+ return [param];
12
+ },
13
+ get children() {
14
+ return [createIntrinsic("group", { get children() {
15
+ return [
16
+ memo(() => param.name),
17
+ createComponent(Show, {
18
+ get when() {
19
+ return !!param.extends;
20
+ },
21
+ get children() {
22
+ return [
23
+ " ",
24
+ "extends",
25
+ createIntrinsic("indent", { get children() {
26
+ return [" ", createComponent(TypeRefContext, { get children() {
27
+ return param.extends;
28
+ } })];
29
+ } })
30
+ ];
31
+ }
32
+ }),
33
+ createComponent(Show, {
34
+ get when() {
35
+ return !!param.default;
36
+ },
37
+ get children() {
38
+ return [" = ", createComponent(TypeRefContext, { get children() {
39
+ return param.default;
23
40
  } })];
24
- } })
25
- ];
26
- }
27
- }),
28
- createComponent(Show, {
29
- get when() {
30
- return !!param.default;
31
- },
32
- get children() {
33
- return [" = ", createComponent(TypeRefContext, { get children() {
34
- return param.default;
35
- } })];
36
- }
37
- })
38
- ];
39
- } });
41
+ }
42
+ })
43
+ ];
44
+ } }), " "];
45
+ }
46
+ });
40
47
  }
41
48
  /**
42
49
  * Represent type parameters
@@ -46,13 +53,9 @@ function typeParameter(param) {
46
53
  * <A, B extends string>
47
54
  * ```
48
55
  */
49
- const TypeParameters = taggedComponent(typeParametersTag, function TypeParameters$1(props) {
56
+ function TypeParameters(props) {
50
57
  if (props.children) return props.children;
51
58
  if (!props.parameters) return;
52
- const typeParameters = normalizeAndDeclareParameters(props.parameters);
53
- onCleanup(() => {
54
- for (const param of typeParameters) param.symbol.delete();
55
- });
56
59
  return [
57
60
  "<",
58
61
  createIntrinsic("group", { get children() {
@@ -60,7 +63,9 @@ const TypeParameters = taggedComponent(typeParametersTag, function TypeParameter
60
63
  softline: true,
61
64
  get children() {
62
65
  return [createComponent(For, {
63
- each: typeParameters,
66
+ get each() {
67
+ return props.parameters;
68
+ },
64
69
  comma: true,
65
70
  line: true,
66
71
  children: (param) => typeParameter(param)
@@ -70,36 +75,6 @@ const TypeParameters = taggedComponent(typeParametersTag, function TypeParameter
70
75
  } }),
71
76
  ">"
72
77
  ];
73
- });
74
- function normalizeAndDeclareParameters(parameters, flags = TSSymbolFlags.ParameterSymbol) {
75
- const namePolicy = useTSNamePolicy();
76
- if (parameters.length === 0) return [];
77
- if (typeof parameters[0] === "string") return parameters.map((paramName) => {
78
- const name = namePolicy.getName(paramName, "parameter");
79
- const TypeSlot = createSymbolSlot();
80
- const symbol = createValueSymbol(name, { type: TypeSlot.firstSymbol });
81
- return {
82
- refkeys: symbol.refkeys,
83
- symbol,
84
- TypeSlot
85
- };
86
- });
87
- else return parameters.map((param) => {
88
- const nullishFlag = param.nullish ?? param.optional ? TSSymbolFlags.Nullish : TSSymbolFlags.None;
89
- const TypeSlot = createSymbolSlot();
90
- const symbol = createValueSymbol(param.name, {
91
- refkeys: param.refkey,
92
- tsFlags: flags | nullishFlag,
93
- metadata: param.metadata,
94
- type: TypeSlot.firstSymbol,
95
- namePolicy: namePolicy.for("parameter")
96
- });
97
- return {
98
- ...param,
99
- symbol,
100
- TypeSlot
101
- };
102
- });
103
78
  }
104
79
 
105
80
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"type-parameters.mjs","names":["createSymbolSlot","For","Indent","onCleanup","Show","taggedComponent","createValueSymbol","TSSymbolFlags","TypeRefContext","useTSNamePolicy","typeParametersTag","Symbol","typeParameter","param","_$createIntrinsic","children","_$memo","symbol","name","_$createComponent","when","extends","default","TypeParameters","props","parameters","undefined","typeParameters","normalizeAndDeclareParameters","delete","softline","each","comma","line","flags","ParameterSymbol","namePolicy","length","map","paramName","getName","TypeSlot","type","firstSymbol","refkeys","nullishFlag","nullish","optional","Nullish","None","refkey","tsFlags","metadata","for"],"sources":["../../../src/typescript/components/type-parameters.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 Children,\n createSymbolSlot,\n For,\n Indent,\n onCleanup,\n Show,\n SymbolSlot,\n taggedComponent\n} from \"@alloy-js/core\";\nimport {\n createValueSymbol,\n FunctionTypeParameterDescriptor,\n ParameterDescriptor,\n TSOutputSymbol,\n TSSymbolFlags,\n TypeParameterDescriptor,\n TypeRefContext,\n useTSNamePolicy\n} from \"@alloy-js/typescript\";\n\n/** Props for type parameters */\nexport interface TypeParametersProps {\n /** Parameters */\n parameters?: TypeParameterDescriptor[] | string[];\n /** Jsx Children */\n children?: Children;\n}\n\ninterface DeclaredTypeParameterDescriptor extends Omit<\n TypeParameterDescriptor,\n \"name\"\n> {\n symbol: TSOutputSymbol;\n}\n\ninterface DeclaredParameterDescriptor extends Omit<\n ParameterDescriptor,\n \"name\"\n> {\n symbol: TSOutputSymbol;\n TypeSlot: SymbolSlot;\n}\n\ninterface DeclaredFunctionTypeParameterDescriptor extends Omit<\n FunctionTypeParameterDescriptor,\n \"name\"\n> {\n symbol: TSOutputSymbol;\n TypeSlot: SymbolSlot;\n}\n\nconst typeParametersTag = Symbol(\"type-parameters\");\n\nfunction typeParameter(param: DeclaredTypeParameterDescriptor) {\n return (\n <group>\n {param.symbol.name}\n <Show when={!!param.extends}>\n {\" \"}\n extends\n <indent>\n {\" \"}\n <TypeRefContext>{param.extends}</TypeRefContext>\n </indent>\n </Show>\n <Show when={!!param.default}>\n {\" = \"}\n <TypeRefContext>{param.default}</TypeRefContext>\n </Show>\n </group>\n );\n}\n\n/**\n * Represent type parameters\n *\n * @example\n * ```ts\n * <A, B extends string>\n * ```\n */\nexport const TypeParameters = taggedComponent(\n typeParametersTag,\n function TypeParameters(props: TypeParametersProps) {\n if (props.children) {\n return props.children;\n }\n\n if (!props.parameters) {\n return undefined;\n }\n\n const typeParameters = normalizeAndDeclareParameters(props.parameters);\n\n onCleanup(() => {\n for (const param of typeParameters) {\n param.symbol.delete();\n }\n });\n\n return (\n <>\n {\"<\"}\n <group>\n <Indent softline>\n <For each={typeParameters} comma line>\n {param => typeParameter(param as DeclaredTypeParameterDescriptor)}\n </For>\n <ifBreak>,</ifBreak>\n </Indent>\n </group>\n {\">\"}\n </>\n );\n }\n);\n\nfunction normalizeAndDeclareParameters(\n parameters: FunctionTypeParameterDescriptor[] | string[],\n flags?: TSSymbolFlags\n): DeclaredTypeParameterDescriptor[];\nfunction normalizeAndDeclareParameters(\n parameters: TypeParameterDescriptor[] | string[],\n flags?: TSSymbolFlags\n): DeclaredFunctionTypeParameterDescriptor[];\nfunction normalizeAndDeclareParameters(\n parameters: ParameterDescriptor[] | string[],\n flags?: TSSymbolFlags\n): DeclaredParameterDescriptor[];\nfunction normalizeAndDeclareParameters(\n parameters: string[],\n flags?: TSSymbolFlags\n): DeclaredParameterDescriptor[] | DeclaredTypeParameterDescriptor[];\nfunction normalizeAndDeclareParameters(\n parameters:\n | ParameterDescriptor[]\n | FunctionTypeParameterDescriptor[]\n | TypeParameterDescriptor[]\n | string[],\n flags: TSSymbolFlags = TSSymbolFlags.ParameterSymbol\n): DeclaredParameterDescriptor[] | DeclaredTypeParameterDescriptor[] {\n const namePolicy = useTSNamePolicy();\n if (parameters.length === 0) {\n return [];\n }\n if (typeof parameters[0] === \"string\") {\n return (parameters as string[]).map(paramName => {\n const name = namePolicy.getName(paramName, \"parameter\");\n const TypeSlot = createSymbolSlot();\n const symbol = createValueSymbol(name, { type: TypeSlot.firstSymbol });\n\n return { refkeys: symbol.refkeys, symbol, TypeSlot };\n });\n } else {\n return (parameters as ParameterDescriptor[]).map(param => {\n const nullishFlag =\n (param.nullish ?? param.optional)\n ? TSSymbolFlags.Nullish\n : TSSymbolFlags.None;\n const TypeSlot = createSymbolSlot();\n const symbol = createValueSymbol(param.name, {\n refkeys: param.refkey,\n tsFlags: flags | nullishFlag,\n metadata: param.metadata,\n type: TypeSlot.firstSymbol,\n namePolicy: namePolicy.for(\"parameter\")\n });\n\n return {\n ...param,\n symbol,\n TypeSlot\n };\n });\n }\n}\n"],"mappings":""}
1
+ {"version":3,"file":"type-parameters.mjs","names":["For","Indent","Show","TypeRefContext","typeParameter","param","_$createComponent","when","fallback","children","_$createIntrinsic","_$memo","name","extends","default","TypeParameters","props","parameters","undefined","softline","each","comma","line"],"sources":["../../../src/typescript/components/type-parameters.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 { Children, For, Indent, Show } from \"@alloy-js/core\";\nimport { TypeParameterDescriptor, TypeRefContext } from \"@alloy-js/typescript\";\n\n/** Props for type parameters */\nexport interface TypeParametersProps {\n /** Parameters */\n parameters?: TypeParameterDescriptor[] | string[];\n /** Jsx Children */\n children?: Children;\n}\n\nfunction typeParameter(param: TypeParameterDescriptor | string) {\n return (\n <Show when={typeof param === \"object\"} fallback={<>{param}</>}>\n <group>\n {(param as TypeParameterDescriptor).name}\n <Show when={!!(param as TypeParameterDescriptor).extends}>\n {\" \"}\n extends\n <indent>\n {\" \"}\n <TypeRefContext>\n {(param as TypeParameterDescriptor).extends}\n </TypeRefContext>\n </indent>\n </Show>\n <Show when={!!(param as TypeParameterDescriptor).default}>\n {\" = \"}\n <TypeRefContext>\n {(param as TypeParameterDescriptor).default}\n </TypeRefContext>\n </Show>\n </group>{\" \"}\n </Show>\n );\n}\n\n/**\n * Represent type parameters\n *\n * @example\n * ```ts\n * <A, B extends string>\n * ```\n */\nexport function TypeParameters(props: TypeParametersProps) {\n if (props.children) {\n return props.children;\n }\n\n if (!props.parameters) {\n return undefined;\n }\n\n return (\n <>\n {\"<\"}\n <group>\n <Indent softline>\n <For each={props.parameters} comma line>\n {param => typeParameter(param)}\n </For>\n <ifBreak>,</ifBreak>\n </Indent>\n </group>\n {\">\"}\n </>\n );\n}\n"],"mappings":";;;;;;SA+B6D,cAAA,OAAA;8BAAA;EAAA,MAAA,OAAA,UAAA;EAAA,IAAA,WAAA;AAAA,UAAA,CAAA,MAAA;;EAAA,IAAA,WAAA;AAAA,UAAA,CAAA,gBAAA,SAAA,EAAA,IAAA,WAAA;AAAA,WAAA;KAAA,WAAA,MAEbM,KAAAA;KAAAA,sBACnC;MAAA,IAAA,OAAA;AAAA,cAAA,CAAA,CAAA,MAAA;;MAAA,IAAA,WAAA;AAAA,cAAA;;QAAA;QAAA,gBAAA,UAAA,EAAA,IAAA,WAAA;AAAA,gBAAA,MAAA,gCAAA,EAAA,IAAA,WAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKAH;EAAAA,gBAAAA,SAAAA,EAAAA,IAAAA,WAAAA;AAAAA,UAAAA;;;;;;;;;;;;;;EAC4C;EAAA"}
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core13 from "@alloy-js/core";
2
+ import * as _alloy_js_core4 from "@alloy-js/core";
3
3
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
4
  import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
5
5
 
@@ -14,11 +14,11 @@ interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "n
14
14
  /**
15
15
  * Generates a TypeScript interface for the given reflection class.
16
16
  */
17
- declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core13.Children;
17
+ declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core4.Children;
18
18
  /**
19
19
  * Generates a TypeScript interface property for the given reflection class.
20
20
  */
21
- declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core13.Children;
21
+ declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core4.Children;
22
22
  declare type __ΩTypeScriptInterfaceProps = any[];
23
23
  declare type __ΩTypescriptInterfacePropertyProps = any[];
24
24
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"typescript-interface.d.cts","names":[],"sources":["../../../src/typescript/components/typescript-interface.tsx"],"sourcesContent":[],"mappings":";;;;;;UA0CiB,mCACL,sBAAsB,6BAExB,2BAA2B;cACvB,gBAAgB;iBACb,QAAQ;AALzB;AACY,UAOK,gCAAA,SACP,IARE,CAQG,oBARH,EAAA,MAAA,CAAA,EAQkC,cARlC,CAAA;EAAsB,QAAA,EAStB,kBATsB;;;;;AAExB,iBAaM,mBAbN,CAAA,UAcE,MAdF,CAAA,MAAA,EAAA,GAAA,CAAA,GAcwB,MAdxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAeD,wBAfC,CAewB,CAfxB,CAAA,CAAA,EAeuB,gBAAA,CAAG,QAf1B;;;AAKV;AACe,iBAmDC,2BAAA,CAnDD,KAAA,EAoDN,gCApDM,CAAA,EAoD0B,gBAAA,CAAA,QApD1B;AACH,2CAAA,GAAA,EAAA;AADF,mDAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"typescript-interface.d.cts","names":[],"sources":["../../../src/typescript/components/typescript-interface.tsx"],"sourcesContent":[],"mappings":";;;;;;UA0CiB,mCACL,sBAAsB,6BAExB,2BAA2B;cACvB,gBAAgB;iBACb,QAAQ;AALzB;AACY,UAOK,gCAAA,SACP,IARE,CAQG,oBARH,EAAA,MAAA,CAAA,EAQkC,cARlC,CAAA;EAAsB,QAAA,EAStB,kBATsB;;;;;AAExB,iBAaM,mBAbN,CAAA,UAcE,MAdF,CAAA,MAAA,EAAA,GAAA,CAAA,GAcwB,MAdxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAeD,wBAfC,CAewB,CAfxB,CAAA,CAAA,EAeuB,eAAA,CAAG,QAf1B;;;AAKV;AACe,iBAmDC,2BAAA,CAnDD,KAAA,EAoDN,gCApDM,CAAA,EAoD0B,eAAA,CAAA,QApD1B;AACH,2CAAA,GAAA,EAAA;AADF,mDAAA,GAAA,EAAA"}
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.mjs";
2
- import * as _alloy_js_core12 from "@alloy-js/core";
2
+ import * as _alloy_js_core13 from "@alloy-js/core";
3
3
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
4
  import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
5
5
 
@@ -14,11 +14,11 @@ interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "n
14
14
  /**
15
15
  * Generates a TypeScript interface for the given reflection class.
16
16
  */
17
- declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core12.Children;
17
+ declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core13.Children;
18
18
  /**
19
19
  * Generates a TypeScript interface property for the given reflection class.
20
20
  */
21
- declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core12.Children;
21
+ declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core13.Children;
22
22
  declare type __ΩTypeScriptInterfaceProps = any[];
23
23
  declare type __ΩTypescriptInterfacePropertyProps = any[];
24
24
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core15 from "@alloy-js/core";
2
+ import * as _alloy_js_core14 from "@alloy-js/core";
3
3
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
4
  import { VarDeclarationProps } from "@alloy-js/typescript";
5
5
 
@@ -17,11 +17,11 @@ interface TypescriptObjectPropertyProps extends ComponentProps {
17
17
  /**
18
18
  * Generates a TypeScript object for the given reflection class.
19
19
  */
20
- declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core15.Children;
20
+ declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core14.Children;
21
21
  /**
22
22
  * Generates a TypeScript object property for the given reflection class.
23
23
  */
24
- declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core15.Children;
24
+ declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core14.Children;
25
25
  declare type __ΩComputedRef = any[];
26
26
  declare type __ΩTypescriptObjectProps = any[];
27
27
  declare type __ΩTypescriptObjectPropertyProps = any[];
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.mjs";
2
- import * as _alloy_js_core8 from "@alloy-js/core";
2
+ import * as _alloy_js_core11 from "@alloy-js/core";
3
3
  import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
4
4
  import { VarDeclarationProps } from "@alloy-js/typescript";
5
5
 
@@ -17,11 +17,11 @@ interface TypescriptObjectPropertyProps extends ComponentProps {
17
17
  /**
18
18
  * Generates a TypeScript object for the given reflection class.
19
19
  */
20
- declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core8.Children;
20
+ declare function TypescriptObject<T extends Record<string, any> = Record<string, any>>(props: TypescriptObjectProps<T>): _alloy_js_core11.Children;
21
21
  /**
22
22
  * Generates a TypeScript object property for the given reflection class.
23
23
  */
24
- declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core8.Children;
24
+ declare function TypescriptObjectProperty(props: TypescriptObjectPropertyProps): _alloy_js_core11.Children;
25
25
  declare type __ΩComputedRef = any[];
26
26
  declare type __ΩTypescriptObjectProps = any[];
27
27
  declare type __ΩTypescriptObjectPropertyProps = any[];
@@ -1 +1 @@
1
- {"version":3,"file":"typescript-object.d.mts","names":[],"sources":["../../../src/typescript/components/typescript-object.tsx"],"sourcesContent":[],"mappings":";;;;;;UAuDiB;kBACC;;AADD,UAIA,qBAHE,CAAA,UAIP,MAJO,CAAA,MAAA,EAAA,GAAA,CAAA,GAIe,MAJf,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,SAKT,mBALS,CAAA;EAGF,UAAA,CAAA,EAGF,WAHuB,CAGX,eAHW,CAGK,CAHL,CAAA,CAAA;EAC1B,YAAA,CAAA,EAGK,WAHL,CAGiB,OAHjB,CAGyB,CAHzB,CAAA,GAAA,SAAA,CAAA;;AAE+B,UAI1B,6BAAA,SAAsC,cAJZ,CAAA;EAAhB,QAAA,EAKf,kBALe;;;;;AADjB,iBAYM,gBAZN,CAAA,UAaE,MAbF,CAAA,MAAA,EAAA,GAAA,CAAA,GAawB,MAbxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAcD,qBAdC,CAcqB,CAdrB,CAAA,CAAA,EAcoB,eAAA,CAAG,QAdvB;;AAKV;AAOA;AACY,iBAkHI,wBAAA,CAlHJ,KAAA,EAkHoC,6BAlHpC,CAAA,EAkHiE,eAAA,CAAA,QAlHjE;AAAsB,8BAAA,GAAA,EAAA;AACH,wCAAA,GAAA,EAAA;AAAtB,gDAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"typescript-object.d.mts","names":[],"sources":["../../../src/typescript/components/typescript-object.tsx"],"sourcesContent":[],"mappings":";;;;;;UAuDiB;kBACC;;AADD,UAIA,qBAHE,CAAA,UAIP,MAJO,CAAA,MAAA,EAAA,GAAA,CAAA,GAIe,MAJf,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,SAKT,mBALS,CAAA;EAGF,UAAA,CAAA,EAGF,WAHuB,CAGX,eAHW,CAGK,CAHL,CAAA,CAAA;EAC1B,YAAA,CAAA,EAGK,WAHL,CAGiB,OAHjB,CAGyB,CAHzB,CAAA,GAAA,SAAA,CAAA;;AAE+B,UAI1B,6BAAA,SAAsC,cAJZ,CAAA;EAAhB,QAAA,EAKf,kBALe;;;;;AADjB,iBAYM,gBAZN,CAAA,UAaE,MAbF,CAAA,MAAA,EAAA,GAAA,CAAA,GAawB,MAbxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAcD,qBAdC,CAcqB,CAdrB,CAAA,CAAA,EAcoB,gBAAA,CAAG,QAdvB;;AAKV;AAOA;AACY,iBAkHI,wBAAA,CAlHJ,KAAA,EAkHoC,6BAlHpC,CAAA,EAkHiE,gBAAA,CAAA,QAlHjE;AAAsB,8BAAA,GAAA,EAAA;AACH,wCAAA,GAAA,EAAA;AAAtB,gDAAA,GAAA,EAAA"}
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core12 from "@alloy-js/core";
1
+ import * as _alloy_js_core13 from "@alloy-js/core";
2
2
 
3
3
  //#region src/typescript/components/typescript-property-name.d.ts
4
4
  interface TypescriptPropertyNameProps {
@@ -17,7 +17,7 @@ interface TypescriptPropertyNameProps {
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 TypescriptPropertyName(props: TypescriptPropertyNameProps): _alloy_js_core12.Children;
20
+ declare function TypescriptPropertyName(props: TypescriptPropertyNameProps): _alloy_js_core13.Children;
21
21
  declare type __ΩTypescriptPropertyNameProps = any[];
22
22
  //#endregion
23
23
  export { TypescriptPropertyName, TypescriptPropertyNameProps, __ΩTypescriptPropertyNameProps };
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core11 from "@alloy-js/core";
1
+ import * as _alloy_js_core9 from "@alloy-js/core";
2
2
 
3
3
  //#region src/typescript/components/typescript-property-name.d.ts
4
4
  interface TypescriptPropertyNameProps {
@@ -17,7 +17,7 @@ interface TypescriptPropertyNameProps {
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 TypescriptPropertyName(props: TypescriptPropertyNameProps): _alloy_js_core11.Children;
20
+ declare function TypescriptPropertyName(props: TypescriptPropertyNameProps): _alloy_js_core9.Children;
21
21
  declare type __ΩTypescriptPropertyNameProps = any[];
22
22
  //#endregion
23
23
  export { TypescriptPropertyName, TypescriptPropertyNameProps, __ΩTypescriptPropertyNameProps };
@@ -1 +1 @@
1
- {"version":3,"file":"typescript-property-name.d.mts","names":[],"sources":["../../../src/typescript/components/typescript-property-name.tsx"],"sourcesContent":[],"mappings":";;;UAuBiB,2BAAA;;;AAAjB;EAkBgB,IAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;iBAAA,sBAAA,QAA8B,8BAA2B,gBAAA,CAAA"}
1
+ {"version":3,"file":"typescript-property-name.d.mts","names":[],"sources":["../../../src/typescript/components/typescript-property-name.tsx"],"sourcesContent":[],"mappings":";;;UAuBiB,2BAAA;;;AAAjB;EAkBgB,IAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;iBAAA,sBAAA,QAA8B,8BAA2B,eAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core23 from "@alloy-js/core";
1
+ import * as _alloy_js_core16 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_core23.Children;
11
+ declare function LexicalScope(props: LexicalScopeProps): _alloy_js_core16.Children;
12
12
  declare type __ΩLexicalScopePropsWithScopeValue = any[];
13
13
  declare type __ΩLexicalScopePropsWithScopeInfo = any[];
14
14
  declare type __ΩLexicalScopeProps = any[];
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core10 from "@alloy-js/core";
1
+ import * as _alloy_js_core8 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_core10.Children;
11
+ declare function LexicalScope(props: LexicalScopeProps): _alloy_js_core8.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"],"sourcesContent":[],"mappings":";;;;UAqBiB,+BAAA,SAAwC;UACxC,8BAAA,SAAuC,oBADxD;AACiB,KAEL,iBAAA,GACR,+BAHoD,GAIpD,8BAJsE;AAE1E;AAOA;;iBAAgB,YAAA,QAAoB,oBAAiB,gBAAA,CAAA"}
1
+ {"version":3,"file":"lexical-scope.d.mts","names":[],"sources":["../../../src/typescript/contexts/lexical-scope.tsx"],"sourcesContent":[],"mappings":";;;;UAqBiB,+BAAA,SAAwC;UACxC,8BAAA,SAAuC,oBADxD;AACiB,KAEL,iBAAA,GACR,+BAHoD,GAIpD,8BAJsE;AAE1E;AAOA;;iBAAgB,YAAA,QAAoB,oBAAiB,eAAA,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-alloy",
3
- "version": "0.21.2",
3
+ "version": "0.21.3",
4
4
  "type": "module",
5
5
  "description": "A package containing various Alloy framework components and helper utilities.",
6
6
  "repository": {
@@ -698,8 +698,8 @@
698
698
  "@alloy-js/markdown": "0.23.0-dev.1",
699
699
  "@alloy-js/rollup-plugin": "^0.1.0",
700
700
  "@alloy-js/typescript": "0.23.0-dev.4",
701
- "@powerlines/deepkit": "^0.6.54",
702
- "@powerlines/plugin-babel": "^0.12.283",
701
+ "@powerlines/deepkit": "^0.6.55",
702
+ "@powerlines/plugin-babel": "^0.12.284",
703
703
  "@storm-software/config-tools": "^1.189.0",
704
704
  "@stryke/capnp": "^0.12.68",
705
705
  "@stryke/convert": "^0.6.40",
@@ -712,14 +712,14 @@
712
712
  "@stryke/types": "^0.10.39",
713
713
  "@stryke/unique-id": "^0.3.54",
714
714
  "defu": "^6.1.4",
715
- "powerlines": "^0.38.41",
715
+ "powerlines": "^0.38.42",
716
716
  "prettier": "^3.8.1",
717
717
  "unctx": "^2.5.0"
718
718
  },
719
719
  "devDependencies": {
720
- "@powerlines/plugin-plugin": "^0.12.225",
720
+ "@powerlines/plugin-plugin": "^0.12.226",
721
721
  "@types/node": "^24.10.13"
722
722
  },
723
723
  "publishConfig": { "access": "public" },
724
- "gitHead": "8b6d122370208eac61c91beb6f65e682b77f66ce"
724
+ "gitHead": "1966de3ef37e1df3095e1aa31de22b756e308f67"
725
725
  }