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