@powerlines/plugin-alloy 0.25.33 → 0.25.35

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 (80) hide show
  1. package/README.md +1 -1
  2. package/dist/core/components/output.cjs +17 -10
  3. package/dist/core/components/output.mjs +17 -10
  4. package/dist/core/components/output.mjs.map +1 -1
  5. package/dist/core/components/single-line-comment.cjs +6 -4
  6. package/dist/core/components/single-line-comment.mjs +6 -4
  7. package/dist/core/components/single-line-comment.mjs.map +1 -1
  8. package/dist/core/components/source-file.cjs +10 -6
  9. package/dist/core/components/source-file.mjs +10 -6
  10. package/dist/core/components/source-file.mjs.map +1 -1
  11. package/dist/core/components/spacing.cjs +6 -4
  12. package/dist/core/components/spacing.mjs +6 -4
  13. package/dist/core/components/spacing.mjs.map +1 -1
  14. package/dist/index.cjs +13 -18
  15. package/dist/index.d.cts.map +1 -1
  16. package/dist/index.d.mts.map +1 -1
  17. package/dist/index.mjs +12 -17
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/markdown/components/front-matter.cjs +9 -7
  20. package/dist/markdown/components/front-matter.mjs +9 -7
  21. package/dist/markdown/components/front-matter.mjs.map +1 -1
  22. package/dist/markdown/components/markdown-file.cjs +76 -44
  23. package/dist/markdown/components/markdown-file.mjs +76 -44
  24. package/dist/markdown/components/markdown-file.mjs.map +1 -1
  25. package/dist/markdown/components/markdown-table.cjs +49 -28
  26. package/dist/markdown/components/markdown-table.mjs +49 -28
  27. package/dist/markdown/components/markdown-table.mjs.map +1 -1
  28. package/dist/render.cjs +3 -3
  29. package/dist/render.mjs +4 -4
  30. package/dist/render.mjs.map +1 -1
  31. package/dist/typescript/components/builtin-file.cjs +29 -19
  32. package/dist/typescript/components/builtin-file.mjs +30 -20
  33. package/dist/typescript/components/builtin-file.mjs.map +1 -1
  34. package/dist/typescript/components/class-declaration.cjs +165 -100
  35. package/dist/typescript/components/class-declaration.mjs +165 -100
  36. package/dist/typescript/components/class-declaration.mjs.map +1 -1
  37. package/dist/typescript/components/dynamic-import-statement.cjs +2 -6
  38. package/dist/typescript/components/dynamic-import-statement.mjs +2 -6
  39. package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -1
  40. package/dist/typescript/components/entry-file.cjs +9 -6
  41. package/dist/typescript/components/entry-file.mjs +10 -7
  42. package/dist/typescript/components/entry-file.mjs.map +1 -1
  43. package/dist/typescript/components/infrastructure-file.cjs +9 -6
  44. package/dist/typescript/components/infrastructure-file.mjs +10 -7
  45. package/dist/typescript/components/infrastructure-file.mjs.map +1 -1
  46. package/dist/typescript/components/interface-declaration.cjs +121 -70
  47. package/dist/typescript/components/interface-declaration.mjs +121 -70
  48. package/dist/typescript/components/interface-declaration.mjs.map +1 -1
  49. package/dist/typescript/components/object-declaration.cjs +76 -44
  50. package/dist/typescript/components/object-declaration.mjs +76 -44
  51. package/dist/typescript/components/object-declaration.mjs.map +1 -1
  52. package/dist/typescript/components/property-name.cjs +3 -3
  53. package/dist/typescript/components/property-name.mjs +3 -3
  54. package/dist/typescript/components/property-name.mjs.map +1 -1
  55. package/dist/typescript/components/record-expression.mjs.map +1 -1
  56. package/dist/typescript/components/tsdoc-reflection.cjs +225 -104
  57. package/dist/typescript/components/tsdoc-reflection.mjs +225 -104
  58. package/dist/typescript/components/tsdoc-reflection.mjs.map +1 -1
  59. package/dist/typescript/components/tsdoc.cjs +255 -160
  60. package/dist/typescript/components/tsdoc.mjs +255 -160
  61. package/dist/typescript/components/tsdoc.mjs.map +1 -1
  62. package/dist/typescript/components/type-declaration.cjs +20 -15
  63. package/dist/typescript/components/type-declaration.mjs +20 -15
  64. package/dist/typescript/components/type-declaration.mjs.map +1 -1
  65. package/dist/typescript/components/type-parameters.cjs +55 -29
  66. package/dist/typescript/components/type-parameters.mjs +55 -29
  67. package/dist/typescript/components/type-parameters.mjs.map +1 -1
  68. package/dist/typescript/components/typescript-file.cjs +145 -80
  69. package/dist/typescript/components/typescript-file.mjs +145 -80
  70. package/dist/typescript/components/typescript-file.mjs.map +1 -1
  71. package/dist/typescript/contexts/lexical-scope.cjs +5 -3
  72. package/dist/typescript/contexts/lexical-scope.mjs +5 -3
  73. package/dist/typescript/contexts/lexical-scope.mjs.map +1 -1
  74. package/dist/typescript/contexts/member-scope.cjs +5 -3
  75. package/dist/typescript/contexts/member-scope.mjs +5 -3
  76. package/dist/typescript/contexts/member-scope.mjs.map +1 -1
  77. package/dist/yaml/components/yaml-file.cjs +92 -47
  78. package/dist/yaml/components/yaml-file.mjs +92 -47
  79. package/dist/yaml/components/yaml-file.mjs.map +1 -1
  80. package/package.json +16 -17
@@ -2,8 +2,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
3
  const require_core_contexts_context = require('../../core/contexts/context.cjs');
4
4
  const require_core_components_spacing = require('../../core/components/spacing.cjs');
5
- let _alloy_js_core = require("@alloy-js/core");
6
5
  let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
+ let _alloy_js_core = require("@alloy-js/core");
7
7
  let _powerlines_deepkit_utilities = require("@powerlines/deepkit/utilities");
8
8
  let _stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
9
9
  let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
@@ -14,57 +14,83 @@ let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-stri
14
14
  */
15
15
  function TSDoc(props) {
16
16
  const [{ children, heading }] = (0, _alloy_js_core.splitProps)(props, ["children", "heading"]);
17
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [
17
+ return [
18
18
  "/**",
19
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)("align", {
19
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("align", {
20
20
  string: " * ",
21
- children: [
22
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)("hbr", {}),
23
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
24
- when: !(0, _stryke_type_checks_is_undefined.isUndefined)(heading),
25
- children: heading
26
- }),
27
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core.Show, {
28
- when: !(0, _stryke_type_checks_is_undefined.isUndefined)(children) && (0, _alloy_js_core.childrenArray)(() => children).filter(Boolean).length > 0,
29
- children: [/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
30
- when: !(0, _stryke_type_checks_is_undefined.isUndefined)(heading),
31
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_core_components_spacing.Spacing, {})
32
- }), /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.List, { children: (0, _alloy_js_core.childrenArray)(() => children) })]
33
- })
34
- ]
21
+ get children() {
22
+ return [
23
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
24
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
25
+ get when() {
26
+ return !(0, _stryke_type_checks_is_undefined.isUndefined)(heading);
27
+ },
28
+ children: heading
29
+ }),
30
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
31
+ get when() {
32
+ return (0, _alloy_js_core_jsx_runtime.memo)(() => !!!(0, _stryke_type_checks_is_undefined.isUndefined)(children))() && (0, _alloy_js_core.childrenArray)(() => children).filter(Boolean).length > 0;
33
+ },
34
+ get children() {
35
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
36
+ get when() {
37
+ return !(0, _stryke_type_checks_is_undefined.isUndefined)(heading);
38
+ },
39
+ get children() {
40
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_components_spacing.Spacing, {});
41
+ }
42
+ }), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.List, { get children() {
43
+ return (0, _alloy_js_core.childrenArray)(() => children);
44
+ } })];
45
+ }
46
+ })
47
+ ];
48
+ }
35
49
  }),
36
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)("hbr", {}),
50
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
37
51
  `*/`,
38
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)("hbr", {})
39
- ] });
52
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
53
+ ];
40
54
  }
41
55
  /**
42
56
  * Create a TSDoc `@<props.tag>` tag.
43
57
  */
44
58
  function TSDocTag(props) {
45
59
  const [{ children, tag }] = (0, _alloy_js_core.splitProps)(props, ["children", "tag"]);
46
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [
60
+ return [
47
61
  `@${tag} `,
48
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
49
- when: Boolean(children),
50
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)("align", {
51
- width: 2,
52
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Prose, { children })
53
- })
62
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
63
+ get when() {
64
+ return Boolean(children);
65
+ },
66
+ get children() {
67
+ return (0, _alloy_js_core_jsx_runtime.createIntrinsic)("align", {
68
+ width: 2,
69
+ get children() {
70
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Prose, { children });
71
+ }
72
+ });
73
+ }
54
74
  }),
55
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)("sbr", {})
56
- ] });
75
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("sbr", {})
76
+ ];
57
77
  }
58
78
  /**
59
79
  * A component that creates a TSDoc block with `@param` tags for each parameter.
60
80
  */
61
81
  function TSDocParams(props) {
62
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.For, {
82
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
63
83
  each: normalizeParametersForDoc(props.parameters),
64
- children: (param) => /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocParam, {
65
- name: param.name,
66
- optional: param.optional,
67
- children: param.doc
84
+ children: (param) => (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocParam, {
85
+ get name() {
86
+ return param.name;
87
+ },
88
+ get optional() {
89
+ return param.optional;
90
+ },
91
+ get children() {
92
+ return param.doc;
93
+ }
68
94
  })
69
95
  });
70
96
  }
@@ -77,79 +103,82 @@ function normalizeParametersForDoc(parameters) {
77
103
  */
78
104
  function TSDocTitle(props) {
79
105
  const [{ children }, rest] = (0, _alloy_js_core.splitProps)(props, ["children"]);
80
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocTag, {
81
- ...rest,
106
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocTag, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
82
107
  tag: "title",
83
108
  children
84
- });
109
+ }));
85
110
  }
86
111
  /**
87
112
  * Create a TSDoc `@domain` tag.
88
113
  */
89
114
  function TSDocDomain(props) {
90
115
  const [{ children }, rest] = (0, _alloy_js_core.splitProps)(props, ["children"]);
91
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocTag, {
92
- ...rest,
116
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocTag, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
93
117
  tag: "domain",
94
118
  children
95
- });
119
+ }));
96
120
  }
97
121
  /**
98
122
  * Create a TSDoc `@alias` tag.
99
123
  */
100
124
  function TSDocAlias(props) {
101
125
  const [{ children }, rest] = (0, _alloy_js_core.splitProps)(props, ["children"]);
102
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocTag, {
103
- ...rest,
126
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocTag, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
104
127
  tag: "alias",
105
128
  children
106
- });
129
+ }));
107
130
  }
108
131
  /**
109
132
  * Create a TSDoc `@permission` tag.
110
133
  */
111
134
  function TSDocPermission(props) {
112
135
  const [{ children }, rest] = (0, _alloy_js_core.splitProps)(props, ["children"]);
113
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocTag, {
114
- ...rest,
136
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocTag, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
115
137
  tag: "permission",
116
138
  children
117
- });
139
+ }));
118
140
  }
119
141
  /**
120
142
  * Create a TSDoc `@defaultValue` tag.
121
143
  */
122
144
  function TSDocDefaultValue(props) {
123
145
  const [{ type, defaultValue }] = (0, _alloy_js_core.splitProps)(props, ["type", "defaultValue"]);
124
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: ["@defaultValue ", /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
125
- when: !(0, _stryke_type_checks_is_undefined.isUndefined)(defaultValue),
126
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)("align", {
127
- width: 2,
128
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Prose, { children: (0, _powerlines_deepkit_utilities.stringifyDefaultValue)(type, defaultValue) })
129
- })
130
- })] });
146
+ return ["@defaultValue ", (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
147
+ get when() {
148
+ return !(0, _stryke_type_checks_is_undefined.isUndefined)(defaultValue);
149
+ },
150
+ get children() {
151
+ return (0, _alloy_js_core_jsx_runtime.createIntrinsic)("align", {
152
+ width: 2,
153
+ get children() {
154
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Prose, { get children() {
155
+ return (0, _powerlines_deepkit_utilities.stringifyDefaultValue)(type, defaultValue);
156
+ } });
157
+ }
158
+ });
159
+ }
160
+ })];
131
161
  }
132
162
  /**
133
163
  * Create a TSDoc `@remarks` tag.
134
164
  */
135
165
  function TSDocRemarks(props) {
136
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [
166
+ return [
137
167
  "@remarks ",
138
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)("hbr", {}),
139
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.List, {
168
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
169
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.List, {
140
170
  hardline: true,
141
- children: (0, _alloy_js_core.childrenArray)(() => props.children)
171
+ get children() {
172
+ return (0, _alloy_js_core.childrenArray)(() => props.children);
173
+ }
142
174
  })
143
- ] });
175
+ ];
144
176
  }
145
177
  /**
146
178
  * Create a TSDoc `@see` tag.
147
179
  */
148
180
  function TSDocLink(props) {
149
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocTag, {
150
- ...props,
151
- tag: "see"
152
- });
181
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocTag, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, { tag: "see" }));
153
182
  }
154
183
  /**
155
184
  * Create a TSDoc `@example` tag.
@@ -161,47 +190,51 @@ function TSDocExample(props) {
161
190
  "language",
162
191
  "children"
163
192
  ]);
164
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [
193
+ return [
165
194
  "@example ",
166
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)("hbr", {}),
167
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core.Show, {
195
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
196
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
168
197
  when: fenced,
169
- children: [
170
- "```",
171
- language || (tsx ? "tsx" : "ts"),
172
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)("hbr", {})
173
- ]
198
+ get children() {
199
+ return [
200
+ "```",
201
+ language || (tsx ? "tsx" : "ts"),
202
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
203
+ ];
204
+ }
174
205
  }),
175
206
  children,
176
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core.Show, {
207
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
177
208
  when: fenced,
178
- children: [/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)("hbr", {}), "```"]
209
+ get children() {
210
+ return [(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}), "```"];
211
+ }
179
212
  })
180
- ] });
213
+ ];
181
214
  }
182
215
  /**
183
216
  * Create a TSDoc `@readonly` tag.
184
217
  */
185
218
  function TSDocReadonly() {
186
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocTag, { tag: "readonly" });
219
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocTag, { tag: "readonly" });
187
220
  }
188
221
  /**
189
222
  * Create a TSDoc `@internal` tag.
190
223
  */
191
224
  function TSDocInternal() {
192
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocTag, { tag: "internal" });
225
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocTag, { tag: "internal" });
193
226
  }
194
227
  /**
195
228
  * Create a TSDoc `@ignore` tag.
196
229
  */
197
230
  function TSDocIgnore() {
198
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocTag, { tag: "ignore" });
231
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocTag, { tag: "ignore" });
199
232
  }
200
233
  /**
201
234
  * Create a TSDoc `@hidden` tag.
202
235
  */
203
236
  function TSDocHidden() {
204
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocTag, { tag: "hidden" });
237
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocTag, { tag: "hidden" });
205
238
  }
206
239
  /**
207
240
  * Generates a TypeScript interface property for the given reflection class.
@@ -219,111 +252,165 @@ function TSDocAttributesTags(props) {
219
252
  ]);
220
253
  const title = (0, _alloy_js_core.computed)(() => props.title?.trim() || "");
221
254
  const domain = (0, _alloy_js_core.computed)(() => props.domain?.trim() || "");
222
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [
223
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
224
- when: (0, _stryke_type_checks_is_set_string.isSetString)(title.value),
225
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocTitle, { children: title.value })
255
+ return [
256
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
257
+ get when() {
258
+ return (0, _stryke_type_checks_is_set_string.isSetString)(title.value);
259
+ },
260
+ get children() {
261
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocTitle, { get children() {
262
+ return title.value;
263
+ } });
264
+ }
226
265
  }),
227
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
228
- when: !(0, _stryke_type_checks_is_undefined.isUndefined)(alias) && alias.length > 0 && alias.some((a) => (0, _stryke_type_checks_is_set_string.isSetString)(a?.trim())),
229
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.For, {
230
- each: alias?.filter((a) => (0, _stryke_type_checks_is_set_string.isSetString)(a?.trim())) ?? [],
231
- children: (alias) => /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocAlias, { children: alias })
232
- })
266
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
267
+ get when() {
268
+ return (0, _alloy_js_core_jsx_runtime.memo)(() => !!(!(0, _stryke_type_checks_is_undefined.isUndefined)(alias) && alias.length > 0))() && alias.some((a) => (0, _stryke_type_checks_is_set_string.isSetString)(a?.trim()));
269
+ },
270
+ get children() {
271
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
272
+ get each() {
273
+ return alias?.filter((a) => (0, _stryke_type_checks_is_set_string.isSetString)(a?.trim())) ?? [];
274
+ },
275
+ children: (alias) => (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocAlias, { children: alias })
276
+ });
277
+ }
233
278
  }),
234
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
235
- when: (0, _stryke_type_checks_is_set_string.isSetString)(domain.value),
236
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocDomain, { children: domain.value })
279
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
280
+ get when() {
281
+ return (0, _stryke_type_checks_is_set_string.isSetString)(domain.value);
282
+ },
283
+ get children() {
284
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocDomain, { get children() {
285
+ return domain.value;
286
+ } });
287
+ }
237
288
  }),
238
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
239
- when: !(0, _stryke_type_checks_is_undefined.isUndefined)(permission) && permission.length > 0 && permission.some((p) => (0, _stryke_type_checks_is_set_string.isSetString)(p?.trim())),
240
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.For, {
241
- each: permission?.filter((p) => (0, _stryke_type_checks_is_set_string.isSetString)(p?.trim())) ?? [],
242
- children: (permission) => /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocPermission, { children: permission })
243
- })
289
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
290
+ get when() {
291
+ return (0, _alloy_js_core_jsx_runtime.memo)(() => !!(!(0, _stryke_type_checks_is_undefined.isUndefined)(permission) && permission.length > 0))() && permission.some((p) => (0, _stryke_type_checks_is_set_string.isSetString)(p?.trim()));
292
+ },
293
+ get children() {
294
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
295
+ get each() {
296
+ return permission?.filter((p) => (0, _stryke_type_checks_is_set_string.isSetString)(p?.trim())) ?? [];
297
+ },
298
+ children: (permission) => (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocPermission, { children: permission })
299
+ });
300
+ }
244
301
  }),
245
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
302
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
246
303
  when: readonly === true,
247
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocReadonly, {})
304
+ get children() {
305
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocReadonly, {});
306
+ }
248
307
  }),
249
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
308
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
250
309
  when: internal === true,
251
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocInternal, {})
310
+ get children() {
311
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocInternal, {});
312
+ }
252
313
  }),
253
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
314
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
254
315
  when: ignore === true,
255
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocIgnore, {})
316
+ get children() {
317
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocIgnore, {});
318
+ }
256
319
  }),
257
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
320
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
258
321
  when: hidden === true,
259
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocHidden, {})
322
+ get children() {
323
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocHidden, {});
324
+ }
260
325
  }),
261
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
262
- when: !(0, _stryke_type_checks_is_undefined.isUndefined)(type) && !(0, _stryke_type_checks_is_undefined.isUndefined)(defaultValue),
263
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocDefaultValue, {
264
- type,
265
- defaultValue
266
- })
326
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
327
+ get when() {
328
+ return (0, _alloy_js_core_jsx_runtime.memo)(() => !!!(0, _stryke_type_checks_is_undefined.isUndefined)(type))() && !(0, _stryke_type_checks_is_undefined.isUndefined)(defaultValue);
329
+ },
330
+ get children() {
331
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocDefaultValue, {
332
+ type,
333
+ defaultValue
334
+ });
335
+ }
267
336
  })
268
- ] });
337
+ ];
269
338
  }
270
339
  /**
271
340
  * Create a TSDoc parameter set off with `@param`.
272
341
  */
273
342
  function TSDocParam(props) {
274
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [
343
+ return [
275
344
  "@param ",
276
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocParamName, {
277
- name: props.name,
278
- optional: props.optional,
279
- defaultValue: props.defaultValue
345
+ (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocParamName, {
346
+ get name() {
347
+ return props.name;
348
+ },
349
+ get optional() {
350
+ return props.optional;
351
+ },
352
+ get defaultValue() {
353
+ return props.defaultValue;
354
+ }
280
355
  }),
281
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocParamDescription, { children: props.children })
282
- ] });
356
+ (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocParamDescription, { get children() {
357
+ return props.children;
358
+ } })
359
+ ];
283
360
  }
284
361
  function TSDocParamName(props) {
285
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [
286
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
287
- when: props.optional,
362
+ return [
363
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
364
+ get when() {
365
+ return props.optional;
366
+ },
288
367
  children: "["
289
368
  }),
290
- props.name,
291
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core.Show, {
292
- when: Boolean(props.defaultValue),
293
- children: ["=", props.defaultValue]
369
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.name),
370
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
371
+ get when() {
372
+ return Boolean(props.defaultValue);
373
+ },
374
+ get children() {
375
+ return ["=", (0, _alloy_js_core_jsx_runtime.memo)(() => props.defaultValue)];
376
+ }
294
377
  }),
295
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
296
- when: props.optional,
378
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
379
+ get when() {
380
+ return props.optional;
381
+ },
297
382
  children: "]"
298
383
  })
299
- ] });
384
+ ];
300
385
  }
301
386
  function TSDocParamDescription(props) {
302
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core.Show, {
303
- when: Boolean(props.children),
304
- children: [" - ", /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)("align", {
305
- width: 2,
306
- children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Prose, { children: props.children })
307
- })]
387
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
388
+ get when() {
389
+ return Boolean(props.children);
390
+ },
391
+ get children() {
392
+ return [" - ", (0, _alloy_js_core_jsx_runtime.createIntrinsic)("align", {
393
+ width: 2,
394
+ get children() {
395
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Prose, { get children() {
396
+ return props.children;
397
+ } });
398
+ }
399
+ })];
400
+ }
308
401
  });
309
402
  }
310
403
  /**
311
404
  * Create a TSDoc `@returns` tag.
312
405
  */
313
406
  function TSDocReturns(props) {
314
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocTag, {
315
- ...props,
316
- tag: "returns"
317
- });
407
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocTag, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, { tag: "returns" }));
318
408
  }
319
409
  /**
320
410
  * Create a TSDoc `@throws` tag.
321
411
  */
322
412
  function TSDocThrows(props) {
323
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(TSDocTag, {
324
- ...props,
325
- tag: "throws"
326
- });
413
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocTag, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, { tag: "throws" }));
327
414
  }
328
415
  /**
329
416
  * Generates a TSDoc `@module` tag for the given module name.
@@ -335,28 +422,36 @@ function TSDocModule(props) {
335
422
  "prefix"
336
423
  ]);
337
424
  const context = require_core_contexts_context.usePowerlinesSafe();
338
- return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [
425
+ return [
339
426
  "/**",
340
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)("align", {
427
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("align", {
341
428
  string: " * ",
342
- children: [
343
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)("hbr", {}),
344
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core.Show, {
345
- when: Boolean(children),
346
- children: [/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.List, {
347
- hardline: true,
348
- children: (0, _alloy_js_core.childrenArray)(() => children)
349
- }), /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_core_components_spacing.Spacing, {})]
350
- }),
351
- "@module ",
352
- prefix || context?.config?.framework || "powerlines",
353
- ":",
354
- name
355
- ]
429
+ get children() {
430
+ return [
431
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
432
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
433
+ get when() {
434
+ return Boolean(children);
435
+ },
436
+ get children() {
437
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.List, {
438
+ hardline: true,
439
+ get children() {
440
+ return (0, _alloy_js_core.childrenArray)(() => children);
441
+ }
442
+ }), (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_components_spacing.Spacing, {})];
443
+ }
444
+ }),
445
+ "@module ",
446
+ (0, _alloy_js_core_jsx_runtime.memo)(() => prefix || context?.config?.framework || "powerlines"),
447
+ ":",
448
+ name
449
+ ];
450
+ }
356
451
  }),
357
- /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)("hbr", {}),
452
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
358
453
  ` */`
359
- ] });
454
+ ];
360
455
  }
361
456
 
362
457
  //#endregion