@powerlines/plugin-alloy 0.26.25 → 0.26.27

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 (105) hide show
  1. package/dist/core/components/infrastructure-file.cjs +13 -8
  2. package/dist/core/components/infrastructure-file.mjs +13 -8
  3. package/dist/core/components/infrastructure-file.mjs.map +1 -1
  4. package/dist/core/components/output.cjs +17 -10
  5. package/dist/core/components/output.mjs +17 -10
  6. package/dist/core/components/output.mjs.map +1 -1
  7. package/dist/core/components/single-line-comment.cjs +6 -4
  8. package/dist/core/components/single-line-comment.mjs +6 -4
  9. package/dist/core/components/single-line-comment.mjs.map +1 -1
  10. package/dist/core/components/source-file.cjs +10 -6
  11. package/dist/core/components/source-file.mjs +10 -6
  12. package/dist/core/components/source-file.mjs.map +1 -1
  13. package/dist/core/components/spacing.cjs +6 -4
  14. package/dist/core/components/spacing.mjs +6 -4
  15. package/dist/core/components/spacing.mjs.map +1 -1
  16. package/dist/core/contexts/context.mjs.map +1 -1
  17. package/dist/core/contexts/meta.mjs.map +1 -1
  18. package/dist/core/contexts/reflection.mjs.map +1 -1
  19. package/dist/core/helpers/code.mjs.map +1 -1
  20. package/dist/hcl/components/block-declaration.cjs +12 -8
  21. package/dist/hcl/components/block-declaration.mjs +12 -8
  22. package/dist/hcl/components/block-declaration.mjs.map +1 -1
  23. package/dist/hcl/components/hcl-file.cjs +35 -21
  24. package/dist/hcl/components/hcl-file.mjs +36 -22
  25. package/dist/hcl/components/hcl-file.mjs.map +1 -1
  26. package/dist/hcl/components/packer-file.cjs +8 -8
  27. package/dist/hcl/components/packer-file.mjs +8 -8
  28. package/dist/hcl/components/packer-file.mjs.map +1 -1
  29. package/dist/hcl/components/terraform-file.cjs +8 -8
  30. package/dist/hcl/components/terraform-file.mjs +8 -8
  31. package/dist/hcl/components/terraform-file.mjs.map +1 -1
  32. package/dist/helpers/capnp.mjs.map +1 -1
  33. package/dist/helpers/create-builtin.mjs.map +1 -1
  34. package/dist/helpers/refkey.mjs.map +1 -1
  35. package/dist/helpers/typescript.mjs.map +1 -1
  36. package/dist/index.cjs +16 -8
  37. package/dist/index.d.cts.map +1 -1
  38. package/dist/index.d.mts.map +1 -1
  39. package/dist/index.mjs +15 -8
  40. package/dist/index.mjs.map +1 -1
  41. package/dist/markdown/components/front-matter.cjs +9 -7
  42. package/dist/markdown/components/front-matter.mjs +9 -7
  43. package/dist/markdown/components/front-matter.mjs.map +1 -1
  44. package/dist/markdown/components/markdown-file.cjs +76 -44
  45. package/dist/markdown/components/markdown-file.mjs +76 -44
  46. package/dist/markdown/components/markdown-file.mjs.map +1 -1
  47. package/dist/markdown/components/markdown-table.cjs +49 -28
  48. package/dist/markdown/components/markdown-table.mjs +49 -28
  49. package/dist/markdown/components/markdown-table.mjs.map +1 -1
  50. package/dist/markdown/contexts/markdown-table.mjs.map +1 -1
  51. package/dist/render.cjs +3 -3
  52. package/dist/render.mjs +4 -4
  53. package/dist/render.mjs.map +1 -1
  54. package/dist/types/components.cjs +9 -0
  55. package/dist/types/components.mjs +10 -1
  56. package/dist/types/components.mjs.map +1 -0
  57. package/dist/typescript/components/builtin-file.cjs +30 -20
  58. package/dist/typescript/components/builtin-file.mjs +30 -20
  59. package/dist/typescript/components/builtin-file.mjs.map +1 -1
  60. package/dist/typescript/components/class-declaration.cjs +180 -100
  61. package/dist/typescript/components/class-declaration.mjs +180 -100
  62. package/dist/typescript/components/class-declaration.mjs.map +1 -1
  63. package/dist/typescript/components/dynamic-import-statement.cjs +2 -6
  64. package/dist/typescript/components/dynamic-import-statement.mjs +2 -6
  65. package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -1
  66. package/dist/typescript/components/entry-file.cjs +10 -7
  67. package/dist/typescript/components/entry-file.mjs +10 -7
  68. package/dist/typescript/components/entry-file.mjs.map +1 -1
  69. package/dist/typescript/components/interface-declaration.cjs +127 -74
  70. package/dist/typescript/components/interface-declaration.mjs +127 -74
  71. package/dist/typescript/components/interface-declaration.mjs.map +1 -1
  72. package/dist/typescript/components/object-declaration.cjs +84 -50
  73. package/dist/typescript/components/object-declaration.mjs +84 -50
  74. package/dist/typescript/components/object-declaration.mjs.map +1 -1
  75. package/dist/typescript/components/property-name.cjs +3 -3
  76. package/dist/typescript/components/property-name.mjs +3 -3
  77. package/dist/typescript/components/property-name.mjs.map +1 -1
  78. package/dist/typescript/components/record-expression.mjs.map +1 -1
  79. package/dist/typescript/components/tsdoc-reflection.cjs +241 -108
  80. package/dist/typescript/components/tsdoc-reflection.mjs +241 -108
  81. package/dist/typescript/components/tsdoc-reflection.mjs.map +1 -1
  82. package/dist/typescript/components/tsdoc.cjs +265 -168
  83. package/dist/typescript/components/tsdoc.mjs +265 -168
  84. package/dist/typescript/components/tsdoc.mjs.map +1 -1
  85. package/dist/typescript/components/type-declaration.cjs +20 -15
  86. package/dist/typescript/components/type-declaration.mjs +20 -15
  87. package/dist/typescript/components/type-declaration.mjs.map +1 -1
  88. package/dist/typescript/components/type-parameters.cjs +56 -29
  89. package/dist/typescript/components/type-parameters.mjs +56 -29
  90. package/dist/typescript/components/type-parameters.mjs.map +1 -1
  91. package/dist/typescript/components/typescript-file.cjs +135 -74
  92. package/dist/typescript/components/typescript-file.mjs +135 -74
  93. package/dist/typescript/components/typescript-file.mjs.map +1 -1
  94. package/dist/typescript/contexts/lexical-scope.cjs +5 -3
  95. package/dist/typescript/contexts/lexical-scope.mjs +5 -3
  96. package/dist/typescript/contexts/lexical-scope.mjs.map +1 -1
  97. package/dist/typescript/contexts/member-scope.cjs +5 -3
  98. package/dist/typescript/contexts/member-scope.mjs +5 -3
  99. package/dist/typescript/contexts/member-scope.mjs.map +1 -1
  100. package/dist/typescript/helpers/get-call-signature-props.mjs.map +1 -1
  101. package/dist/typescript/helpers/utilities.mjs.map +1 -1
  102. package/dist/yaml/components/yaml-file.cjs +92 -47
  103. package/dist/yaml/components/yaml-file.mjs +92 -47
  104. package/dist/yaml/components/yaml-file.mjs.map +1 -1
  105. package/package.json +6 -6
@@ -8,12 +8,15 @@ const require_typescript_helpers_get_call_signature_props = require('../helpers/
8
8
  require('../helpers/index.cjs');
9
9
  const require_typescript_components_property_name = require('./property-name.cjs');
10
10
  const require_typescript_components_type_parameters = require('./type-parameters.cjs');
11
- let _alloy_js_core = require("@alloy-js/core");
12
11
  let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
12
+ let _alloy_js_core = require("@alloy-js/core");
13
13
  let _alloy_js_typescript = require("@alloy-js/typescript");
14
14
 
15
15
  //#region src/typescript/components/class-declaration.tsx
16
16
  /**
17
+ * Props for the ClassDeclaration component, which represents a TypeScript class declaration
18
+ */
19
+ /**
17
20
  * Create a TypeScript class declaration.
18
21
  *
19
22
  * @example
@@ -44,18 +47,20 @@ let _alloy_js_typescript = require("@alloy-js/typescript");
44
47
  * ```
45
48
  */
46
49
  function ClassDeclaration(props) {
47
- const extendsPart = props.extends && /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [" extends ", props.extends] });
48
- const implementsPart = props.implements && props.implements.length > 0 && /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [
50
+ const extendsPart = props.extends && [" extends ", (0, _alloy_js_core_jsx_runtime.memo)(() => props.extends)];
51
+ const implementsPart = props.implements && props.implements.length > 0 && [
49
52
  " ",
50
53
  "implements",
51
54
  " ",
52
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.For, {
53
- each: props.implements,
55
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
56
+ get each() {
57
+ return props.implements;
58
+ },
54
59
  comma: true,
55
60
  space: true,
56
61
  children: (implement) => implement
57
62
  })
58
- ] });
63
+ ];
59
64
  const sym = (0, _alloy_js_typescript.createTypeAndValueSymbol)(props.name, {
60
65
  refkeys: props.refkey,
61
66
  export: props.export,
@@ -64,31 +69,52 @@ function ClassDeclaration(props) {
64
69
  hasInstanceMembers: true,
65
70
  namePolicy: (0, _alloy_js_typescript.useTSNamePolicy)().for("class")
66
71
  });
67
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
68
- when: Boolean(props.doc),
69
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_tsdoc.TSDoc, { heading: props.doc })
70
- }), /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_typescript.Declaration, {
72
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
73
+ get when() {
74
+ return Boolean(props.doc);
75
+ },
76
+ get children() {
77
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, { get heading() {
78
+ return props.doc;
79
+ } });
80
+ }
81
+ }), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.Declaration, {
71
82
  symbol: sym,
72
- export: props.export,
73
- default: props.default,
74
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(require_typescript_contexts_member_scope.MemberScope, {
75
- ownerSymbol: sym,
76
- children: [
77
- props.abstract && _alloy_js_core.code`abstract `,
78
- " class ",
79
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Name, {}),
80
- props.typeParameters && /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_type_parameters.TypeParameters, { parameters: props.typeParameters }),
81
- extendsPart,
82
- implementsPart,
83
- " ",
84
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Block, { children: props.children })
85
- ]
86
- })
87
- })] });
83
+ get ["export"]() {
84
+ return props.export;
85
+ },
86
+ get ["default"]() {
87
+ return props.default;
88
+ },
89
+ get children() {
90
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_contexts_member_scope.MemberScope, {
91
+ ownerSymbol: sym,
92
+ get children() {
93
+ return [
94
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.abstract && _alloy_js_core.code`abstract `),
95
+ " class ",
96
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Name, {}),
97
+ (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() {
98
+ return props.typeParameters;
99
+ } })),
100
+ extendsPart,
101
+ implementsPart,
102
+ " ",
103
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Block, { get children() {
104
+ return props.children;
105
+ } })
106
+ ];
107
+ }
108
+ });
109
+ }
110
+ })];
88
111
  }
89
112
  ClassDeclaration.TypeParameters = require_typescript_components_type_parameters.TypeParameters;
90
113
  /**
91
114
  * Generates a TypeScript class member declaration for the given reflection class.
115
+ */
116
+ /**
117
+ * Generates a TypeScript class member declaration for the given reflection class.
92
118
  *
93
119
  * @param props - The properties of the class member, including its name, visibility, and other modifiers.
94
120
  * @returns A JSX element representing the class member declaration, which can be used within a ClassDeclaration component.
@@ -101,23 +127,34 @@ function ClassMember(props) {
101
127
  tsFlags,
102
128
  namePolicy: (0, _alloy_js_typescript.useTSNamePolicy)().for("class-member-data")
103
129
  });
104
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
105
- when: Boolean(props.doc),
106
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_tsdoc.TSDoc, { heading: props.doc })
107
- }), /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core.MemberDeclaration, {
130
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
131
+ get when() {
132
+ return Boolean(props.doc);
133
+ },
134
+ get children() {
135
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, { get heading() {
136
+ return props.doc;
137
+ } });
138
+ }
139
+ }), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.MemberDeclaration, {
108
140
  symbol: sym,
109
- children: [
110
- props.public && "public ",
111
- props.private && "private ",
112
- props.protected && "protected ",
113
- props.abstract && "abstract ",
114
- props.override && "override ",
115
- props.static && "static ",
116
- props.children
117
- ]
118
- })] });
141
+ get children() {
142
+ return [
143
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.public && "public "),
144
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.private && "private "),
145
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.protected && "protected "),
146
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.abstract && "abstract "),
147
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.override && "override "),
148
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.static && "static "),
149
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.children)
150
+ ];
151
+ }
152
+ })];
119
153
  }
120
154
  /**
155
+ * Props for a class field, which is a specific type of class member that represents a property of the class.
156
+ */
157
+ /**
121
158
  * Generates a TypeScript class field declaration for the given reflection class.
122
159
  *
123
160
  * @param props - The properties of the class field, including its name, type, optionality, and other modifiers.
@@ -125,48 +162,66 @@ function ClassMember(props) {
125
162
  */
126
163
  function ClassField(props) {
127
164
  const optionality = props.optional ? "?" : "";
128
- const typeSection = props.type && /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [
165
+ const typeSection = props.type && [
129
166
  optionality,
130
167
  ": ",
131
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_typescript.TypeRefContext, { children: props.type })
132
- ] });
133
- const initializerSection = props.children && /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [" = ", props.children] });
134
- const nullish = props.nullish ?? props.optional;
135
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(ClassMember, {
136
- ...props,
137
- nullish,
138
- children: [
139
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_property_name.PropertyName, {
140
- private: props.isPrivateMember,
141
- name: props.isPrivateMember ? props.name : void 0
142
- }),
143
- typeSection,
144
- initializerSection
145
- ]
146
- });
168
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeRefContext, { get children() {
169
+ return props.type;
170
+ } })
171
+ ];
172
+ const initializerSection = props.children && [" = ", (0, _alloy_js_core_jsx_runtime.memo)(() => props.children)];
173
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(ClassMember, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, {
174
+ nullish: props.nullish ?? props.optional,
175
+ get children() {
176
+ return [
177
+ (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, {
178
+ get ["private"]() {
179
+ return props.isPrivateMember;
180
+ },
181
+ get name() {
182
+ return props.isPrivateMember ? props.name : void 0;
183
+ }
184
+ }),
185
+ typeSection,
186
+ initializerSection
187
+ ];
188
+ }
189
+ }));
147
190
  }
148
191
  /**
192
+ * Props for a class field, which is a specific type of class member that represents a property of the class.
193
+ */
194
+ /**
149
195
  * Generates a TypeScript class property setter declaration for the given reflection class.
150
196
  *
151
197
  * @param props - The properties of the class property, including its name, type, and other modifiers.
152
198
  * @returns A JSX element representing the class property setter declaration, which can be used within a ClassDeclaration component.
153
199
  */
154
200
  function ClassPropertySet(props) {
155
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(ClassMember, {
156
- ...props,
157
- children: [
201
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(ClassMember, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, { get children() {
202
+ return [
158
203
  "set ",
159
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_property_name.PropertyName, { name: props.name }),
160
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(require_typescript_contexts_lexical_scope.LexicalScope, { children: [
161
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_typescript.CallSignature, { parameters: [{
162
- name: "value",
163
- type: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_typescript.TypeRefContext, { children: props.type })
164
- }] }),
165
- " ",
166
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Block, { children: props.children })
167
- ] })
168
- ]
169
- }) });
204
+ (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, { get name() {
205
+ return props.name;
206
+ } }),
207
+ (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_contexts_lexical_scope.LexicalScope, { get children() {
208
+ return [
209
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.CallSignature, { get parameters() {
210
+ return [{
211
+ name: "value",
212
+ type: (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeRefContext, { get children() {
213
+ return props.type;
214
+ } })
215
+ }];
216
+ } }),
217
+ " ",
218
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Block, { get children() {
219
+ return props.children;
220
+ } })
221
+ ];
222
+ } })
223
+ ];
224
+ } }))];
170
225
  }
171
226
  /**
172
227
  * Generates a TypeScript class property getter declaration for the given reflection class.
@@ -175,20 +230,32 @@ function ClassPropertySet(props) {
175
230
  * @returns A JSX element representing the class property getter declaration, which can be used within a ClassDeclaration component.
176
231
  */
177
232
  function ClassPropertyGet(props) {
178
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(ClassMember, {
179
- ...props,
180
- children: [
233
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(ClassMember, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, { get children() {
234
+ return [
181
235
  "get ",
182
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_property_name.PropertyName, { name: props.name }),
183
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(require_typescript_contexts_lexical_scope.LexicalScope, { children: [
184
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_typescript.CallSignature, { returnType: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_typescript.TypeRefContext, { children: props.type }) }),
185
- " ",
186
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Block, { children: props.children })
187
- ] })
188
- ]
189
- });
236
+ (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, { get name() {
237
+ return props.name;
238
+ } }),
239
+ (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_contexts_lexical_scope.LexicalScope, { get children() {
240
+ return [
241
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.CallSignature, { get returnType() {
242
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeRefContext, { get children() {
243
+ return props.type;
244
+ } });
245
+ } }),
246
+ " ",
247
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Block, { get children() {
248
+ return props.children;
249
+ } })
250
+ ];
251
+ } })
252
+ ];
253
+ } }));
190
254
  }
191
255
  /**
256
+ * Props for a class method, which is a specific type of class member that represents a function defined within the class.
257
+ */
258
+ /**
192
259
  * Generates a TypeScript class method declaration for the given reflection class.
193
260
  *
194
261
  * @param props - The properties of the class method, including its name, visibility, and other modifiers.
@@ -197,24 +264,37 @@ function ClassPropertyGet(props) {
197
264
  function ClassMethod(props) {
198
265
  const callProps = require_typescript_helpers_get_call_signature_props.getCallSignatureProps(props);
199
266
  const [_, rest] = (0, _alloy_js_core.splitProps)(props, ["doc"]);
200
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
201
- when: Boolean(props.doc),
202
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_tsdoc.TSDoc, {
203
- heading: props.doc,
204
- children: Array.isArray(rest.parameters) && /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_tsdoc.TSDocParams, { parameters: rest.parameters })
205
- })
206
- }), /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(ClassMember, {
207
- ...rest,
208
- children: [
209
- props.async && "async ",
210
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_property_name.PropertyName, {}),
211
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(require_typescript_contexts_lexical_scope.LexicalScope, { children: [
212
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_typescript.CallSignature, { ...callProps }),
213
- " ",
214
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Block, { children: props.children })
215
- ] })
216
- ]
217
- })] });
267
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
268
+ get when() {
269
+ return Boolean(props.doc);
270
+ },
271
+ get children() {
272
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, {
273
+ get heading() {
274
+ return props.doc;
275
+ },
276
+ get children() {
277
+ return (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() {
278
+ return rest.parameters;
279
+ } });
280
+ }
281
+ });
282
+ }
283
+ }), (0, _alloy_js_core_jsx_runtime.createComponent)(ClassMember, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, { get children() {
284
+ return [
285
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.async && "async "),
286
+ (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, {}),
287
+ (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_contexts_lexical_scope.LexicalScope, { get children() {
288
+ return [
289
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.CallSignature, callProps),
290
+ " ",
291
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Block, { get children() {
292
+ return props.children;
293
+ } })
294
+ ];
295
+ } })
296
+ ];
297
+ } }))];
218
298
  }
219
299
 
220
300
  //#endregion