@powerlines/plugin-alloy 0.20.15 → 0.21.1

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 (92) hide show
  1. package/dist/core/components/output.d.cts +2 -2
  2. package/dist/core/components/output.d.cts.map +1 -1
  3. package/dist/core/components/single-line-comment.d.cts +2 -2
  4. package/dist/core/components/source-file.d.cts +2 -2
  5. package/dist/core/components/source-file.d.cts.map +1 -1
  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/front-matter.d.mts +2 -2
  9. package/dist/markdown/components/markdown-file.d.cts +3 -3
  10. package/dist/markdown/components/markdown-file.d.cts.map +1 -1
  11. package/dist/markdown/components/markdown-table.d.cts +4 -4
  12. package/dist/markdown/components/markdown-table.d.cts.map +1 -1
  13. package/dist/typescript/components/builtin-file.d.mts +2 -2
  14. package/dist/typescript/components/class-declaration.cjs +196 -0
  15. package/dist/typescript/components/class-declaration.d.cts +89 -0
  16. package/dist/typescript/components/class-declaration.d.cts.map +1 -0
  17. package/dist/typescript/components/class-declaration.d.mts +89 -0
  18. package/dist/typescript/components/class-declaration.d.mts.map +1 -0
  19. package/dist/typescript/components/class-declaration.mjs +193 -0
  20. package/dist/typescript/components/class-declaration.mjs.map +1 -0
  21. package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
  22. package/dist/typescript/components/dynamic-import-statement.d.cts.map +1 -1
  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/index.cjs +10 -1
  28. package/dist/typescript/components/index.d.cts +4 -1
  29. package/dist/typescript/components/index.d.mts +4 -1
  30. package/dist/typescript/components/index.mjs +4 -1
  31. package/dist/typescript/components/tsdoc-reflection.d.cts +4 -4
  32. package/dist/typescript/components/tsdoc-reflection.d.cts.map +1 -1
  33. package/dist/typescript/components/tsdoc-reflection.d.mts +4 -4
  34. package/dist/typescript/components/type-parameters.cjs +107 -0
  35. package/dist/typescript/components/type-parameters.d.cts +25 -0
  36. package/dist/typescript/components/type-parameters.d.cts.map +1 -0
  37. package/dist/typescript/components/type-parameters.d.mts +25 -0
  38. package/dist/typescript/components/type-parameters.d.mts.map +1 -0
  39. package/dist/typescript/components/type-parameters.mjs +107 -0
  40. package/dist/typescript/components/type-parameters.mjs.map +1 -0
  41. package/dist/typescript/components/typescript-file.cjs +2 -2
  42. package/dist/typescript/components/typescript-file.mjs +2 -2
  43. package/dist/typescript/components/typescript-file.mjs.map +1 -1
  44. package/dist/typescript/components/typescript-interface.d.cts +3 -3
  45. package/dist/typescript/components/typescript-interface.d.cts.map +1 -1
  46. package/dist/typescript/components/typescript-interface.d.mts +3 -3
  47. package/dist/typescript/components/typescript-interface.d.mts.map +1 -1
  48. package/dist/typescript/components/typescript-object.d.cts +3 -3
  49. package/dist/typescript/components/typescript-object.d.cts.map +1 -1
  50. package/dist/typescript/components/typescript-object.d.mts +3 -3
  51. package/dist/typescript/components/typescript-object.d.mts.map +1 -1
  52. package/dist/typescript/components/typescript-property-name.cjs +31 -0
  53. package/dist/typescript/components/typescript-property-name.d.cts +24 -0
  54. package/dist/typescript/components/typescript-property-name.d.cts.map +1 -0
  55. package/dist/typescript/components/typescript-property-name.d.mts +24 -0
  56. package/dist/typescript/components/typescript-property-name.d.mts.map +1 -0
  57. package/dist/typescript/components/typescript-property-name.mjs +31 -0
  58. package/dist/typescript/components/typescript-property-name.mjs.map +1 -0
  59. package/dist/typescript/contexts/index.cjs +3 -0
  60. package/dist/typescript/contexts/index.d.cts +2 -0
  61. package/dist/typescript/contexts/index.d.mts +2 -0
  62. package/dist/typescript/contexts/index.mjs +3 -0
  63. package/dist/typescript/contexts/lexical-scope.cjs +25 -0
  64. package/dist/typescript/contexts/lexical-scope.d.cts +17 -0
  65. package/dist/typescript/contexts/lexical-scope.d.cts.map +1 -0
  66. package/dist/typescript/contexts/lexical-scope.d.mts +17 -0
  67. package/dist/typescript/contexts/lexical-scope.d.mts.map +1 -0
  68. package/dist/typescript/contexts/lexical-scope.mjs +25 -0
  69. package/dist/typescript/contexts/lexical-scope.mjs.map +1 -0
  70. package/dist/typescript/helpers/get-call-signature-props.cjs +25 -0
  71. package/dist/typescript/helpers/get-call-signature-props.d.cts +15 -0
  72. package/dist/typescript/helpers/get-call-signature-props.d.cts.map +1 -0
  73. package/dist/typescript/helpers/get-call-signature-props.d.mts +15 -0
  74. package/dist/typescript/helpers/get-call-signature-props.d.mts.map +1 -0
  75. package/dist/typescript/helpers/get-call-signature-props.mjs +25 -0
  76. package/dist/typescript/helpers/get-call-signature-props.mjs.map +1 -0
  77. package/dist/typescript/helpers/index.cjs +5 -0
  78. package/dist/typescript/helpers/index.d.cts +3 -0
  79. package/dist/typescript/helpers/index.d.mts +3 -0
  80. package/dist/typescript/helpers/index.mjs +4 -0
  81. package/dist/typescript/helpers/utilities.cjs +14 -0
  82. package/dist/typescript/helpers/utilities.d.cts +11 -0
  83. package/dist/typescript/helpers/utilities.d.cts.map +1 -0
  84. package/dist/typescript/helpers/utilities.d.mts +11 -0
  85. package/dist/typescript/helpers/utilities.d.mts.map +1 -0
  86. package/dist/typescript/helpers/utilities.mjs +14 -0
  87. package/dist/typescript/helpers/utilities.mjs.map +1 -0
  88. package/dist/typescript/index.cjs +18 -1
  89. package/dist/typescript/index.d.cts +9 -1
  90. package/dist/typescript/index.d.mts +9 -1
  91. package/dist/typescript/index.mjs +9 -1
  92. package/package.json +128 -16
@@ -1,6 +1,6 @@
1
1
  import { MetaItem } from "../contexts/meta.cjs";
2
2
  import "../contexts/index.cjs";
3
- import * as _alloy_js_core2 from "@alloy-js/core";
3
+ import * as _alloy_js_core16 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_core2.Children;
21
+ declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core16.Children;
22
22
  declare type __ΩOutputProps = any[];
23
23
  //#endregion
24
24
  export { Output, OutputProps, __ΩOutputProps };
@@ -1 +1 @@
1
- {"version":3,"file":"output.d.cts","names":[],"sources":["../../../src/core/components/output.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAwBiB,6BACE,gBAAgB,uBACzB,KAAK;;;;EAFE,OAAA,EAMN,QANiB;EACT;;;EAKR,IAAA,CAAA,EAKF,MALE,CAAA,MAAA,EAKa,QALb,CAAA;;;;;AAWK,iBAAA,MAAM,CAAA,iBAAkB,aAAlB,GAAkC,aAAlC,CAAA,CAAA,KAAA,EACb,WADa,CACD,QADC,CAAA,CAAA,EACF,eAAA,CAAU,QADR;AAAkB,8BAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"output.d.cts","names":[],"sources":["../../../src/core/components/output.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAwBiB,6BACE,gBAAgB,uBACzB,KAAK;;;;EAFE,OAAA,EAMN,QANiB;EACT;;;EAKR,IAAA,CAAA,EAKF,MALE,CAAA,MAAA,EAKa,QALb,CAAA;;;;;AAWK,iBAAA,MAAM,CAAA,iBAAkB,aAAlB,GAAkC,aAAlC,CAAA,CAAA,KAAA,EACb,WADa,CACD,QADC,CAAA,CAAA,EACF,gBAAA,CAAU,QADR;AAAkB,8BAAA,GAAA,EAAA"}
@@ -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_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_core1.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.cjs";
2
- import * as _alloy_js_core16 from "@alloy-js/core";
2
+ import * as _alloy_js_core3 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_core16.Children;
29
+ declare function SourceFile(props: SourceFileProps): _alloy_js_core3.Children;
30
30
  declare type __ΩSourceFileProps = any[];
31
31
  //#endregion
32
32
  export { SourceFile, SourceFileProps, __ΩSourceFileProps };
@@ -1 +1 @@
1
- {"version":3,"file":"source-file.d.cts","names":[],"sources":["../../../src/core/components/source-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KAkCY,eAAA,GAAkB,oBAC5B;;;AADF;;;;EAgBW,OAAA,CAAA,EARG,aAQH;EAAM;AASjB;;;;;SATW;;;;;;;;iBASK,UAAA,QAAkB,kBAAe,gBAAA,CAAA"}
1
+ {"version":3,"file":"source-file.d.cts","names":[],"sources":["../../../src/core/components/source-file.tsx"],"sourcesContent":[],"mappings":";;;;;;KAkCY,eAAA,GAAkB,oBAC5B;;;AADF;;;;EAgBW,OAAA,CAAA,EARG,aAQH;EAAM;AASjB;;;;;SATW;;;;;;;;iBASK,UAAA,QAAkB,kBAAe,eAAA,CAAA"}
@@ -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,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
+ {"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,4 +1,4 @@
1
- import * as _alloy_js_core17 from "@alloy-js/core";
1
+ import * as _alloy_js_core23 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_core17.Children;
12
+ declare function FrontMatter(props: FrontMatterProps): _alloy_js_core23.Children;
13
13
  declare type __ΩFrontMatterProps = any[];
14
14
  //#endregion
15
15
  export { FrontMatter, FrontMatterProps, __ΩFrontMatterProps };
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core7 from "@alloy-js/core";
1
+ import * as _alloy_js_core9 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_core9.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_core0 from "@alloy-js/core";
4
+ import * as _alloy_js_core14 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_core0.Children;
14
+ declare function MarkdownFile(props: MarkdownFileProps): _alloy_js_core14.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_core0.Children;
24
+ declare function MarkdownFileHeader(props: MarkdownFileHeaderProps): _alloy_js_core14.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,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_core7 from "@alloy-js/core";
3
+ import * as _alloy_js_core11 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_core7.Children;
12
+ declare function MarkdownTable<T extends Record<string, any> = Record<string, any>>(props: MarkdownTableProps<T>): _alloy_js_core11.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_core7.Children;
19
+ declare function MarkdownTableColumn(props: MarkdownTableColumnProps): _alloy_js_core11.Children;
20
20
  /**
21
21
  * Component that provides a context for rendering markdown tables.
22
22
  */
23
- declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core7.Children;
23
+ declare function MarkdownTableColumnHeader(props: MarkdownTableColumnProps): _alloy_js_core11.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 { TSDocModuleProps } from "./tsdoc.mjs";
2
2
  import { TypescriptFileProps } from "./typescript-file.mjs";
3
- import * as _alloy_js_core16 from "@alloy-js/core";
3
+ import * as _alloy_js_core23 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_core16.Children;
31
+ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core23.Children;
32
32
  declare type __ΩBuiltinFileProps = any[];
33
33
  //#endregion
34
34
  export { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps };
@@ -0,0 +1,196 @@
1
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
+ const require_typescript_components_tsdoc = require('./tsdoc.cjs');
3
+ const require_typescript_helpers_get_call_signature_props = require('../helpers/get-call-signature-props.cjs');
4
+ const require_typescript_components_type_parameters = require('./type-parameters.cjs');
5
+ const require_typescript_components_typescript_property_name = require('./typescript-property-name.cjs');
6
+ let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
7
+ let __alloy_js_core = require("@alloy-js/core");
8
+ let __stryke_convert_to_array = require("@stryke/convert/to-array");
9
+ let __alloy_js_typescript = require("@alloy-js/typescript");
10
+
11
+ //#region src/typescript/components/class-declaration.tsx
12
+ /**
13
+ * Create a TypeScript class declaration.
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * const myPetRefkey = refkey();
18
+ * const Animal = refkey();
19
+ * const staticMember = refkey();
20
+ * const instanceMember = refkey();
21
+ *
22
+ * <ClassDeclaration name="Animal" refkey={Animal}>
23
+ * <ClassMember public static name="something" type="string" refkey={staticMember}>
24
+ * "hello"
25
+ * </ClassMember>
26
+ * <ClassMember public name="kind" type="string" />
27
+ * <ClassMember public name="name" type="string" refkey={instanceMember} />
28
+ * <ClassConstructor parameters="name: string">
29
+ * this.name = name;
30
+ * </ClassConstructor>
31
+ * </ClassDeclaration>
32
+ *
33
+ * <VarDeclaration const name="myPet" refkey={myPetRefkey}>
34
+ * new {Animal}();
35
+ * </VarDeclaration>
36
+ *
37
+ * {staticMember}; // Animal.something
38
+ * <MemberReference path={[myPetRefkey, instanceMember]} /> // myPet.name
39
+ * {memberRefkey(myPetRefkey, instanceMember)}
40
+ * ```
41
+ */
42
+ function ClassDeclaration(props) {
43
+ const extendsPart = props.extends && [" extends ", (0, __alloy_js_core_jsx_runtime.memo)(() => props.extends)];
44
+ const implementsPart = props.implements && props.implements.length > 0 && [
45
+ " ",
46
+ "implements",
47
+ " ",
48
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
49
+ get each() {
50
+ return props.implements;
51
+ },
52
+ comma: true,
53
+ space: true,
54
+ children: (implement) => implement
55
+ })
56
+ ];
57
+ const sym = (0, __alloy_js_typescript.createTypeAndValueSymbol)(props.name, {
58
+ refkeys: props.refkey,
59
+ export: props.export,
60
+ default: props.default,
61
+ metadata: props.metadata,
62
+ hasInstanceMembers: true,
63
+ namePolicy: (0, __alloy_js_typescript.useTSNamePolicy)().for("class")
64
+ });
65
+ const typeParametersChildren = props.children ? (0, __alloy_js_core.findKeyedChild)((0, __stryke_convert_to_array.toArray)(props.children), require_typescript_components_type_parameters.TypeParameters.tag) : void 0;
66
+ const sTypeParameters = typeParametersChildren ? [
67
+ "<",
68
+ typeParametersChildren,
69
+ ">"
70
+ ] : (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_type_parameters.TypeParameters, { get parameters() {
71
+ return props.typeParameters;
72
+ } });
73
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
74
+ get when() {
75
+ return Boolean(props.doc);
76
+ },
77
+ get children() {
78
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, { get heading() {
79
+ return props.doc;
80
+ } }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
81
+ }
82
+ }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.Declaration, {
83
+ symbol: sym,
84
+ get ["export"]() {
85
+ return props.export;
86
+ },
87
+ get ["default"]() {
88
+ return props.default;
89
+ },
90
+ get children() {
91
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.MemberScope, {
92
+ ownerSymbol: sym,
93
+ get children() {
94
+ return [
95
+ (0, __alloy_js_core_jsx_runtime.memo)(() => props.abstract && __alloy_js_core.code`abstract `),
96
+ " class ",
97
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Name, {}),
98
+ sTypeParameters,
99
+ extendsPart,
100
+ implementsPart,
101
+ " ",
102
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Block, { get children() {
103
+ return props.children;
104
+ } })
105
+ ];
106
+ }
107
+ });
108
+ }
109
+ })];
110
+ }
111
+ ClassDeclaration.TypeParameters = require_typescript_components_type_parameters.TypeParameters;
112
+ function ClassMember(props) {
113
+ let tsFlags = __alloy_js_typescript.TSSymbolFlags.None;
114
+ if (props.nullish) tsFlags |= __alloy_js_typescript.TSSymbolFlags.Nullish;
115
+ const sym = (0, __alloy_js_typescript.createMemberSymbol)(props.name, props, {
116
+ refkeys: props.refkey,
117
+ tsFlags,
118
+ namePolicy: (0, __alloy_js_typescript.useTSNamePolicy)().for("class-member-data")
119
+ });
120
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
121
+ get when() {
122
+ return Boolean(props.doc);
123
+ },
124
+ get children() {
125
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, { get heading() {
126
+ return props.doc;
127
+ } }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
128
+ }
129
+ }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.MemberDeclaration, {
130
+ symbol: sym,
131
+ get children() {
132
+ return [
133
+ (0, __alloy_js_core_jsx_runtime.memo)(() => props.public && "public "),
134
+ (0, __alloy_js_core_jsx_runtime.memo)(() => props.private && "private "),
135
+ (0, __alloy_js_core_jsx_runtime.memo)(() => props.protected && "protected "),
136
+ (0, __alloy_js_core_jsx_runtime.memo)(() => props.static && "static "),
137
+ (0, __alloy_js_core_jsx_runtime.memo)(() => props.children)
138
+ ];
139
+ }
140
+ })];
141
+ }
142
+ function ClassField(props) {
143
+ const optionality = props.optional ? "?" : "";
144
+ const typeSection = props.type && [
145
+ optionality,
146
+ ": ",
147
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.TypeRefContext, { get children() {
148
+ return props.type;
149
+ } })
150
+ ];
151
+ const initializerSection = props.children && [" = ", (0, __alloy_js_core_jsx_runtime.memo)(() => props.children)];
152
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(ClassMember, (0, __alloy_js_core_jsx_runtime.mergeProps)(props, {
153
+ nullish: props.nullish ?? props.optional,
154
+ get children() {
155
+ return [
156
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_property_name.TypescriptPropertyName, {}),
157
+ typeSection,
158
+ initializerSection
159
+ ];
160
+ }
161
+ }));
162
+ }
163
+ function ClassMethod(props) {
164
+ const callProps = require_typescript_helpers_get_call_signature_props.getCallSignatureProps(props);
165
+ const [_, rest] = (0, __alloy_js_core.splitProps)(props, ["doc"]);
166
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
167
+ get when() {
168
+ return Boolean(props.doc);
169
+ },
170
+ get children() {
171
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, { get children() {
172
+ return [(0, __alloy_js_core_jsx_runtime.memo)(() => (0, __alloy_js_core_jsx_runtime.memo)(() => !!props.doc)() && (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Prose, { get children() {
173
+ return props.doc;
174
+ } })), (0, __alloy_js_core_jsx_runtime.memo)(() => (0, __alloy_js_core_jsx_runtime.memo)(() => !!Array.isArray(rest.parameters))() && (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocParams, { get parameters() {
175
+ return rest.parameters;
176
+ } }))];
177
+ } }), (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
178
+ }
179
+ }), (0, __alloy_js_core_jsx_runtime.createComponent)(ClassMember, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, { get children() {
180
+ return [
181
+ (0, __alloy_js_core_jsx_runtime.memo)(() => props.async && "async "),
182
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_property_name.TypescriptPropertyName, {}),
183
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.CallSignature, callProps),
184
+ " ",
185
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Block, { get children() {
186
+ return props.children;
187
+ } })
188
+ ];
189
+ } }))];
190
+ }
191
+
192
+ //#endregion
193
+ exports.ClassDeclaration = ClassDeclaration;
194
+ exports.ClassField = ClassField;
195
+ exports.ClassMember = ClassMember;
196
+ exports.ClassMethod = ClassMethod;
@@ -0,0 +1,89 @@
1
+ import { TypeParametersProps } from "./type-parameters.cjs";
2
+ import * as _alloy_js_core7 from "@alloy-js/core";
3
+ import { Children, Namekey, Refkey } from "@alloy-js/core";
4
+ import { CallSignatureProps, CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
5
+
6
+ //#region src/typescript/components/class-declaration.d.ts
7
+ interface ClassDeclarationProps extends CommonDeclarationProps {
8
+ /**
9
+ * An indication of whether this class is abstract
10
+ */
11
+ abstract?: boolean;
12
+ /**
13
+ * An optional class that this class extends. This will be rendered as an `extends` clause in the class declaration
14
+ */
15
+ extends?: Children;
16
+ /**
17
+ * Optional interfaces that this class implements. This will be rendered as an `implements` clause in the class declaration
18
+ */
19
+ implements?: Children[];
20
+ /**
21
+ * The generic type parameters of the class.
22
+ */
23
+ typeParameters?: TypeParameterDescriptor[] | string[];
24
+ }
25
+ /**
26
+ * Create a TypeScript class declaration.
27
+ *
28
+ * @example
29
+ * ```tsx
30
+ * const myPetRefkey = refkey();
31
+ * const Animal = refkey();
32
+ * const staticMember = refkey();
33
+ * const instanceMember = refkey();
34
+ *
35
+ * <ClassDeclaration name="Animal" refkey={Animal}>
36
+ * <ClassMember public static name="something" type="string" refkey={staticMember}>
37
+ * "hello"
38
+ * </ClassMember>
39
+ * <ClassMember public name="kind" type="string" />
40
+ * <ClassMember public name="name" type="string" refkey={instanceMember} />
41
+ * <ClassConstructor parameters="name: string">
42
+ * this.name = name;
43
+ * </ClassConstructor>
44
+ * </ClassDeclaration>
45
+ *
46
+ * <VarDeclaration const name="myPet" refkey={myPetRefkey}>
47
+ * new {Animal}();
48
+ * </VarDeclaration>
49
+ *
50
+ * {staticMember}; // Animal.something
51
+ * <MemberReference path={[myPetRefkey, instanceMember]} /> // myPet.name
52
+ * {memberRefkey(myPetRefkey, instanceMember)}
53
+ * ```
54
+ */
55
+ declare function ClassDeclaration(props: ClassDeclarationProps): Children;
56
+ declare namespace ClassDeclaration {
57
+ var TypeParameters: _alloy_js_core7.Component<TypeParametersProps> & Required<Pick<_alloy_js_core7.Component<TypeParametersProps>, "tag">>;
58
+ }
59
+ interface ClassMemberProps {
60
+ name: string | Namekey;
61
+ refkey?: Refkey;
62
+ public?: boolean;
63
+ private?: boolean;
64
+ protected?: boolean;
65
+ jsPrivate?: boolean;
66
+ static?: boolean;
67
+ children?: Children;
68
+ doc?: Children;
69
+ nullish?: boolean;
70
+ }
71
+ declare function ClassMember(props: ClassMemberProps): Children;
72
+ interface ClassFieldProps extends ClassMemberProps {
73
+ type?: Children;
74
+ optional?: boolean;
75
+ children?: Children;
76
+ }
77
+ declare function ClassField(props: ClassFieldProps): Children;
78
+ interface ClassMethodProps extends ClassMemberProps, CallSignatureProps {
79
+ async?: boolean;
80
+ children?: Children;
81
+ }
82
+ declare function ClassMethod(props: ClassMethodProps): Children;
83
+ declare type __ΩClassDeclarationProps = any[];
84
+ declare type __ΩClassMemberProps = any[];
85
+ declare type __ΩClassFieldProps = any[];
86
+ declare type __ΩClassMethodProps = any[];
87
+ //#endregion
88
+ export { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps };
89
+ //# sourceMappingURL=class-declaration.d.cts.map
@@ -0,0 +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;gDAAgB,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"}
@@ -0,0 +1,89 @@
1
+ import { TypeParametersProps } from "./type-parameters.mjs";
2
+ import * as _alloy_js_core17 from "@alloy-js/core";
3
+ import { Children, Namekey, Refkey } from "@alloy-js/core";
4
+ import { CallSignatureProps, CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
5
+
6
+ //#region src/typescript/components/class-declaration.d.ts
7
+ interface ClassDeclarationProps extends CommonDeclarationProps {
8
+ /**
9
+ * An indication of whether this class is abstract
10
+ */
11
+ abstract?: boolean;
12
+ /**
13
+ * An optional class that this class extends. This will be rendered as an `extends` clause in the class declaration
14
+ */
15
+ extends?: Children;
16
+ /**
17
+ * Optional interfaces that this class implements. This will be rendered as an `implements` clause in the class declaration
18
+ */
19
+ implements?: Children[];
20
+ /**
21
+ * The generic type parameters of the class.
22
+ */
23
+ typeParameters?: TypeParameterDescriptor[] | string[];
24
+ }
25
+ /**
26
+ * Create a TypeScript class declaration.
27
+ *
28
+ * @example
29
+ * ```tsx
30
+ * const myPetRefkey = refkey();
31
+ * const Animal = refkey();
32
+ * const staticMember = refkey();
33
+ * const instanceMember = refkey();
34
+ *
35
+ * <ClassDeclaration name="Animal" refkey={Animal}>
36
+ * <ClassMember public static name="something" type="string" refkey={staticMember}>
37
+ * "hello"
38
+ * </ClassMember>
39
+ * <ClassMember public name="kind" type="string" />
40
+ * <ClassMember public name="name" type="string" refkey={instanceMember} />
41
+ * <ClassConstructor parameters="name: string">
42
+ * this.name = name;
43
+ * </ClassConstructor>
44
+ * </ClassDeclaration>
45
+ *
46
+ * <VarDeclaration const name="myPet" refkey={myPetRefkey}>
47
+ * new {Animal}();
48
+ * </VarDeclaration>
49
+ *
50
+ * {staticMember}; // Animal.something
51
+ * <MemberReference path={[myPetRefkey, instanceMember]} /> // myPet.name
52
+ * {memberRefkey(myPetRefkey, instanceMember)}
53
+ * ```
54
+ */
55
+ declare function ClassDeclaration(props: ClassDeclarationProps): Children;
56
+ declare namespace ClassDeclaration {
57
+ var TypeParameters: _alloy_js_core17.Component<TypeParametersProps> & Required<Pick<_alloy_js_core17.Component<TypeParametersProps>, "tag">>;
58
+ }
59
+ interface ClassMemberProps {
60
+ name: string | Namekey;
61
+ refkey?: Refkey;
62
+ public?: boolean;
63
+ private?: boolean;
64
+ protected?: boolean;
65
+ jsPrivate?: boolean;
66
+ static?: boolean;
67
+ children?: Children;
68
+ doc?: Children;
69
+ nullish?: boolean;
70
+ }
71
+ declare function ClassMember(props: ClassMemberProps): Children;
72
+ interface ClassFieldProps extends ClassMemberProps {
73
+ type?: Children;
74
+ optional?: boolean;
75
+ children?: Children;
76
+ }
77
+ declare function ClassField(props: ClassFieldProps): Children;
78
+ interface ClassMethodProps extends ClassMemberProps, CallSignatureProps {
79
+ async?: boolean;
80
+ children?: Children;
81
+ }
82
+ declare function ClassMethod(props: ClassMethodProps): Children;
83
+ declare type __ΩClassDeclarationProps = any[];
84
+ declare type __ΩClassMemberProps = any[];
85
+ declare type __ΩClassFieldProps = any[];
86
+ declare type __ΩClassMethodProps = any[];
87
+ //#endregion
88
+ export { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps };
89
+ //# sourceMappingURL=class-declaration.d.mts.map
@@ -0,0 +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"}