@powerlines/plugin-date 0.12.258 → 0.12.260

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 (163) hide show
  1. package/dist/components/date-fns.cjs +2 -3
  2. package/dist/components/date-fns.mjs +1 -1
  3. package/dist/components/dayjs.cjs +2 -3
  4. package/dist/components/dayjs.mjs +1 -1
  5. package/dist/components/luxon.cjs +2 -3
  6. package/dist/components/luxon.mjs +1 -1
  7. package/dist/components/moment.cjs +2 -3
  8. package/dist/components/moment.mjs +1 -1
  9. package/dist/deepkit/schemas/reflection.cjs +3998 -0
  10. package/dist/deepkit/schemas/reflection.mjs +3996 -0
  11. package/dist/deepkit/schemas/reflection2.cjs +4112 -0
  12. package/dist/deepkit/schemas/reflection2.mjs +4110 -0
  13. package/dist/deepkit/src/capnp.cjs +913 -0
  14. package/dist/deepkit/src/capnp.mjs +911 -0
  15. package/dist/deepkit/src/esbuild-plugin.cjs +47 -0
  16. package/dist/deepkit/src/esbuild-plugin.mjs +46 -0
  17. package/dist/deepkit/src/reflect-type.cjs +22 -0
  18. package/dist/deepkit/src/reflect-type.mjs +20 -0
  19. package/dist/deepkit/src/resolve-reflections.cjs +16 -0
  20. package/dist/deepkit/src/resolve-reflections.mjs +15 -0
  21. package/dist/deepkit/src/transformer.cjs +52 -0
  22. package/dist/deepkit/src/transformer.mjs +49 -0
  23. package/dist/deepkit/src/transpile.cjs +29 -0
  24. package/dist/deepkit/src/transpile.mjs +27 -0
  25. package/dist/deepkit/src/utilities.cjs +67 -0
  26. package/dist/deepkit/src/utilities.mjs +66 -0
  27. package/dist/index.cjs +5 -5
  28. package/dist/index.d.mts +1 -1
  29. package/dist/index.mjs +3 -3
  30. package/dist/plugin-alloy/src/core/components/output.cjs +36 -0
  31. package/dist/plugin-alloy/src/core/components/output.mjs +35 -0
  32. package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +20 -0
  33. package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +19 -0
  34. package/dist/plugin-alloy/src/core/components/source-file.cjs +60 -0
  35. package/dist/plugin-alloy/src/core/components/source-file.mjs +58 -0
  36. package/dist/plugin-alloy/src/core/contexts/context.cjs +38 -0
  37. package/dist/plugin-alloy/src/core/contexts/context.mjs +34 -0
  38. package/dist/plugin-alloy/src/core/contexts/index.cjs +2 -0
  39. package/dist/plugin-alloy/src/core/contexts/index.mjs +4 -0
  40. package/dist/plugin-alloy/src/core/contexts/reflection.cjs +46 -0
  41. package/dist/plugin-alloy/src/core/contexts/reflection.mjs +42 -0
  42. package/dist/plugin-alloy/src/helpers/refkey.cjs +16 -0
  43. package/dist/plugin-alloy/src/helpers/refkey.mjs +15 -0
  44. package/dist/plugin-alloy/src/index.cjs +102 -0
  45. package/dist/plugin-alloy/src/index.mjs +100 -0
  46. package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +89 -0
  47. package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +88 -0
  48. package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +33 -0
  49. package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +32 -0
  50. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +18 -0
  51. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +17 -0
  52. package/dist/plugin-alloy/src/types/components.d.mts +3 -0
  53. package/dist/plugin-alloy/src/types/index.d.mts +2 -0
  54. package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +52 -0
  55. package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +51 -0
  56. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +78 -0
  57. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +76 -0
  58. package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +364 -0
  59. package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +355 -0
  60. package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +157 -0
  61. package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +154 -0
  62. package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +57 -0
  63. package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +56 -0
  64. package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +94 -0
  65. package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +93 -0
  66. package/dist/plugin-automd/src/index.cjs +101 -0
  67. package/dist/plugin-automd/src/index.mjs +98 -0
  68. package/dist/{packages/plugin-automd → plugin-automd}/src/types/plugin.d.mts +3 -1
  69. package/dist/plugin-babel/src/helpers/ast-utils.cjs +10 -0
  70. package/dist/plugin-babel/src/helpers/ast-utils.mjs +9 -0
  71. package/dist/plugin-babel/src/helpers/create-plugin.cjs +41 -0
  72. package/dist/plugin-babel/src/helpers/create-plugin.mjs +39 -0
  73. package/dist/plugin-babel/src/helpers/filters.cjs +23 -0
  74. package/dist/plugin-babel/src/helpers/filters.mjs +21 -0
  75. package/dist/plugin-babel/src/helpers/index.cjs +5 -0
  76. package/dist/plugin-babel/src/helpers/index.mjs +7 -0
  77. package/dist/plugin-babel/src/helpers/module-helpers.cjs +38 -0
  78. package/dist/plugin-babel/src/helpers/module-helpers.mjs +35 -0
  79. package/dist/plugin-babel/src/helpers/options.cjs +49 -0
  80. package/dist/plugin-babel/src/helpers/options.mjs +46 -0
  81. package/dist/plugin-babel/src/index.cjs +85 -0
  82. package/dist/plugin-babel/src/index.mjs +83 -0
  83. package/dist/plugin-babel/src/types/index.d.mts +1 -0
  84. package/dist/plugin-env/src/babel/index.cjs +1 -0
  85. package/dist/plugin-env/src/babel/index.mjs +3 -0
  86. package/dist/plugin-env/src/babel/plugin.cjs +70 -0
  87. package/dist/plugin-env/src/babel/plugin.mjs +69 -0
  88. package/dist/plugin-env/src/components/docs.cjs +60 -0
  89. package/dist/plugin-env/src/components/docs.mjs +59 -0
  90. package/dist/plugin-env/src/components/env.cjs +497 -0
  91. package/dist/plugin-env/src/components/env.mjs +494 -0
  92. package/dist/plugin-env/src/components/index.cjs +2 -0
  93. package/dist/plugin-env/src/components/index.mjs +4 -0
  94. package/dist/plugin-env/src/helpers/automd-generator.cjs +22 -0
  95. package/dist/plugin-env/src/helpers/automd-generator.mjs +21 -0
  96. package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +55 -0
  97. package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +54 -0
  98. package/dist/plugin-env/src/helpers/docs-helper.cjs +16 -0
  99. package/dist/plugin-env/src/helpers/docs-helper.mjs +15 -0
  100. package/dist/plugin-env/src/helpers/index.cjs +6 -0
  101. package/dist/plugin-env/src/helpers/index.mjs +8 -0
  102. package/dist/plugin-env/src/helpers/load.cjs +84 -0
  103. package/dist/plugin-env/src/helpers/load.mjs +81 -0
  104. package/dist/plugin-env/src/helpers/persistence.cjs +201 -0
  105. package/dist/plugin-env/src/helpers/persistence.mjs +190 -0
  106. package/dist/plugin-env/src/helpers/reflect.cjs +125 -0
  107. package/dist/plugin-env/src/helpers/reflect.mjs +117 -0
  108. package/dist/plugin-env/src/helpers/source-file-env.cjs +24 -0
  109. package/dist/plugin-env/src/helpers/source-file-env.mjs +23 -0
  110. package/dist/plugin-env/src/helpers/template-helpers.cjs +2 -0
  111. package/dist/plugin-env/src/helpers/template-helpers.mjs +4 -0
  112. package/dist/plugin-env/src/index.cjs +174 -0
  113. package/dist/plugin-env/src/index.mjs +172 -0
  114. package/dist/{packages/plugin-env → plugin-env}/src/types/plugin.d.mts +3 -1
  115. package/dist/{packages/powerlines → powerlines}/src/internal/helpers/hooks.d.mts +2 -0
  116. package/dist/powerlines/src/lib/build/esbuild.cjs +93 -0
  117. package/dist/powerlines/src/lib/build/esbuild.mjs +91 -0
  118. package/dist/powerlines/src/lib/constants/environments.cjs +6 -0
  119. package/dist/powerlines/src/lib/constants/environments.mjs +5 -0
  120. package/dist/powerlines/src/lib/entry.cjs +11 -0
  121. package/dist/powerlines/src/lib/entry.mjs +13 -0
  122. package/dist/powerlines/src/lib/logger.cjs +41 -0
  123. package/dist/powerlines/src/lib/logger.mjs +39 -0
  124. package/dist/powerlines/src/lib/unplugin/helpers.cjs +3 -0
  125. package/dist/powerlines/src/lib/unplugin/helpers.mjs +5 -0
  126. package/dist/powerlines/src/lib/unplugin/module-resolution.cjs +66 -0
  127. package/dist/powerlines/src/lib/unplugin/module-resolution.mjs +65 -0
  128. package/dist/powerlines/src/lib/unplugin/plugin.cjs +46 -0
  129. package/dist/powerlines/src/lib/unplugin/plugin.mjs +45 -0
  130. package/dist/powerlines/src/lib/utilities/bundle.cjs +42 -0
  131. package/dist/powerlines/src/lib/utilities/bundle.mjs +40 -0
  132. package/dist/powerlines/src/lib/utilities/file-header.cjs +22 -0
  133. package/dist/powerlines/src/lib/utilities/file-header.mjs +21 -0
  134. package/dist/powerlines/src/lib/utilities/resolve.cjs +50 -0
  135. package/dist/powerlines/src/lib/utilities/resolve.mjs +49 -0
  136. package/dist/powerlines/src/lib/utilities/source-file.cjs +5 -0
  137. package/dist/powerlines/src/lib/utilities/source-file.mjs +5 -0
  138. package/dist/powerlines/src/plugin-utils/paths.cjs +1 -0
  139. package/dist/powerlines/src/plugin-utils/paths.mjs +3 -0
  140. package/dist/powerlines/src/types/build.cjs +21 -0
  141. package/dist/{packages/powerlines → powerlines}/src/types/build.d.mts +6 -6
  142. package/dist/powerlines/src/types/build.mjs +21 -0
  143. package/dist/{packages/powerlines → powerlines}/src/types/commands.d.mts +1 -0
  144. package/dist/{packages/powerlines → powerlines}/src/types/config.d.mts +3 -2
  145. package/dist/{packages/powerlines → powerlines}/src/types/context.d.mts +2 -2
  146. package/dist/{packages/powerlines → powerlines}/src/types/plugin.d.mts +1 -1
  147. package/dist/{packages/powerlines → powerlines}/src/types/tsconfig.d.mts +1 -1
  148. package/dist/{packages/powerlines → powerlines}/src/types/unplugin.d.mts +2 -1
  149. package/dist/types/plugin.d.mts +1 -1
  150. package/package.json +4 -4
  151. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +0 -43
  152. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +0 -42
  153. /package/dist/{packages/deepkit → deepkit}/schemas/reflection.d.mts +0 -0
  154. /package/dist/{packages/deepkit → deepkit}/src/types.d.mts +0 -0
  155. /package/dist/{packages/plugin-alloy → plugin-alloy}/src/types/plugin.d.mts +0 -0
  156. /package/dist/{packages/plugin-automd → plugin-automd}/src/types/toc.d.mts +0 -0
  157. /package/dist/{packages/plugin-babel → plugin-babel}/src/types/plugin.d.mts +0 -0
  158. /package/dist/{packages/plugin-env → plugin-env}/src/types/runtime.d.mts +0 -0
  159. /package/dist/{packages/powerlines → powerlines}/src/types/api.d.mts +0 -0
  160. /package/dist/{packages/powerlines → powerlines}/src/types/babel.d.mts +0 -0
  161. /package/dist/{packages/powerlines → powerlines}/src/types/fs.d.mts +0 -0
  162. /package/dist/{packages/powerlines → powerlines}/src/types/hooks.d.mts +0 -0
  163. /package/dist/{packages/powerlines → powerlines}/src/types/resolved.d.mts +0 -0
@@ -0,0 +1,364 @@
1
+ const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
2
+ const require_context = require('../../core/contexts/context.cjs');
3
+ const require_utilities = require('../../../../deepkit/src/utilities.cjs');
4
+ let __alloy_js_core = require("@alloy-js/core");
5
+ let __stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
6
+ let react_jsx_runtime = require("react/jsx-runtime");
7
+ let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
8
+
9
+ //#region ../plugin-alloy/src/typescript/components/tsdoc.tsx
10
+ /**
11
+ * Generates a TypeScript interface for the given reflection class.
12
+ */
13
+ function TSDoc(props) {
14
+ const [{ children, heading }] = (0, __alloy_js_core.splitProps)(props, ["children", "heading"]);
15
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
16
+ "/**",
17
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("align", {
18
+ string: " * ",
19
+ children: [
20
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {}),
21
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__alloy_js_core.Show, {
22
+ when: !(0, __stryke_type_checks_is_undefined.isUndefined)(heading),
23
+ children: [
24
+ heading,
25
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {}),
26
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Show, {
27
+ when: !(0, __stryke_type_checks_is_undefined.isUndefined)(children) && (0, __alloy_js_core.childrenArray)(() => children).length > 0,
28
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {})
29
+ })
30
+ ]
31
+ }),
32
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Show, {
33
+ when: !(0, __stryke_type_checks_is_undefined.isUndefined)(children) && (0, __alloy_js_core.childrenArray)(() => children).length > 0,
34
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.List, { children: (0, __alloy_js_core.childrenArray)(() => children) })
35
+ })
36
+ ]
37
+ }),
38
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {}),
39
+ ` */`,
40
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {})
41
+ ] });
42
+ }
43
+ /**
44
+ * Create a TSDoc `@<props.tag>` tag.
45
+ */
46
+ function TSDocTag(props) {
47
+ const [{ children, tag }] = (0, __alloy_js_core.splitProps)(props, ["children", "tag"]);
48
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
49
+ `@${tag} `,
50
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Show, {
51
+ when: Boolean(children),
52
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("align", {
53
+ width: 2,
54
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Prose, { children })
55
+ })
56
+ }),
57
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {})
58
+ ] });
59
+ }
60
+ /**
61
+ * Create a TSDoc `@title` tag.
62
+ */
63
+ function TSDocTitle(props) {
64
+ const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
65
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocTag, {
66
+ ...rest,
67
+ tag: "title",
68
+ children
69
+ });
70
+ }
71
+ /**
72
+ * Create a TSDoc `@domain` tag.
73
+ */
74
+ function TSDocDomain(props) {
75
+ const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
76
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocTag, {
77
+ ...rest,
78
+ tag: "domain",
79
+ children
80
+ });
81
+ }
82
+ /**
83
+ * Create a TSDoc `@alias` tag.
84
+ */
85
+ function TSDocAlias(props) {
86
+ const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
87
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocTag, {
88
+ ...rest,
89
+ tag: "alias",
90
+ children
91
+ });
92
+ }
93
+ /**
94
+ * Create a TSDoc `@permission` tag.
95
+ */
96
+ function TSDocPermission(props) {
97
+ const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
98
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocTag, {
99
+ ...rest,
100
+ tag: "permission",
101
+ children
102
+ });
103
+ }
104
+ /**
105
+ * Create a TSDoc `@defaultValue` tag.
106
+ */
107
+ function TSDocDefaultValue(props) {
108
+ const [{ type, defaultValue }] = (0, __alloy_js_core.splitProps)(props, ["type", "defaultValue"]);
109
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
110
+ "@defaultValue ",
111
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Show, {
112
+ when: !(0, __stryke_type_checks_is_undefined.isUndefined)(defaultValue),
113
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("align", {
114
+ width: 2,
115
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Prose, { children: require_utilities.stringifyDefaultValue(type, defaultValue) })
116
+ })
117
+ }),
118
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {})
119
+ ] });
120
+ }
121
+ /**
122
+ * Create a TSDoc `@remarks` tag.
123
+ */
124
+ function TSDocRemarks(props) {
125
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
126
+ "@remarks ",
127
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {}),
128
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.List, {
129
+ hardline: true,
130
+ children: (0, __alloy_js_core.childrenArray)(() => props.children)
131
+ })
132
+ ] });
133
+ }
134
+ /**
135
+ * Create a TSDoc `@see` tag.
136
+ */
137
+ function TSDocLink(props) {
138
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocTag, {
139
+ ...props,
140
+ tag: "see"
141
+ });
142
+ }
143
+ /**
144
+ * Create a TSDoc `@example` tag.
145
+ */
146
+ function TSDocExample(props) {
147
+ const [{ tsx, fenced = true, language, children }] = (0, __alloy_js_core.splitProps)(props, [
148
+ "tsx",
149
+ "fenced",
150
+ "language",
151
+ "children"
152
+ ]);
153
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
154
+ "@example ",
155
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {}),
156
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__alloy_js_core.Show, {
157
+ when: fenced,
158
+ children: [
159
+ "```",
160
+ language || (tsx ? "tsx" : "ts"),
161
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {})
162
+ ]
163
+ }),
164
+ children,
165
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__alloy_js_core.Show, {
166
+ when: fenced,
167
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {}), "```"]
168
+ })
169
+ ] });
170
+ }
171
+ /**
172
+ * Create a TSDoc `@readonly` tag.
173
+ */
174
+ function TSDocReadonly() {
175
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocTag, { tag: "readonly" });
176
+ }
177
+ /**
178
+ * Create a TSDoc `@internal` tag.
179
+ */
180
+ function TSDocInternal() {
181
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocTag, { tag: "internal" });
182
+ }
183
+ /**
184
+ * Create a TSDoc `@ignore` tag.
185
+ */
186
+ function TSDocIgnore() {
187
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocTag, { tag: "ignore" });
188
+ }
189
+ /**
190
+ * Create a TSDoc `@hidden` tag.
191
+ */
192
+ function TSDocHidden() {
193
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocTag, { tag: "hidden" });
194
+ }
195
+ /**
196
+ * Generates a TypeScript interface property for the given reflection class.
197
+ */
198
+ function TSDocAttributesTags(props) {
199
+ const [{ type, title, alias, permission, domain, readonly, internal, ignore, hidden, defaultValue }] = (0, __alloy_js_core.splitProps)(props, [
200
+ "type",
201
+ "title",
202
+ "alias",
203
+ "permission",
204
+ "domain",
205
+ "readonly",
206
+ "internal",
207
+ "ignore",
208
+ "hidden",
209
+ "defaultValue"
210
+ ]);
211
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
212
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Show, {
213
+ when: (0, __stryke_type_checks_is_set_string.isSetString)(title?.trim()),
214
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocTitle, { children: title })
215
+ }),
216
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Show, {
217
+ 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())),
218
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.For, {
219
+ each: alias?.filter((a) => (0, __stryke_type_checks_is_set_string.isSetString)(a?.trim())) ?? [],
220
+ children: (alias$1) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocAlias, { children: alias$1 })
221
+ })
222
+ }),
223
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Show, {
224
+ when: (0, __stryke_type_checks_is_set_string.isSetString)(domain?.trim()),
225
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocDomain, { children: domain })
226
+ }),
227
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Show, {
228
+ 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())),
229
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.For, {
230
+ each: permission?.filter((p) => (0, __stryke_type_checks_is_set_string.isSetString)(p?.trim())) ?? [],
231
+ children: (permission$1) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocPermission, { children: permission$1 })
232
+ })
233
+ }),
234
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Show, {
235
+ when: readonly === true,
236
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocReadonly, {})
237
+ }),
238
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Show, {
239
+ when: internal === true,
240
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocInternal, {})
241
+ }),
242
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Show, {
243
+ when: ignore === true,
244
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocIgnore, {})
245
+ }),
246
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Show, {
247
+ when: hidden === true,
248
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocHidden, {})
249
+ }),
250
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Show, {
251
+ when: !(0, __stryke_type_checks_is_undefined.isUndefined)(type) && !(0, __stryke_type_checks_is_undefined.isUndefined)(defaultValue),
252
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocDefaultValue, {
253
+ type,
254
+ defaultValue
255
+ })
256
+ })
257
+ ] });
258
+ }
259
+ /**
260
+ * Create a TSDoc parameter set off with `@param`.
261
+ */
262
+ function TSDocParam(props) {
263
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
264
+ "@param ",
265
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocParamName, {
266
+ name: props.name,
267
+ optional: props.optional,
268
+ defaultValue: props.defaultValue
269
+ }),
270
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocParamDescription, { children: props.children })
271
+ ] });
272
+ }
273
+ function TSDocParamName(props) {
274
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
275
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Show, {
276
+ when: props.optional,
277
+ children: "["
278
+ }),
279
+ props.name,
280
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__alloy_js_core.Show, {
281
+ when: Boolean(props.defaultValue),
282
+ children: ["=", props.defaultValue]
283
+ }),
284
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Show, {
285
+ when: props.optional,
286
+ children: "]"
287
+ })
288
+ ] });
289
+ }
290
+ function TSDocParamDescription(props) {
291
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__alloy_js_core.Show, {
292
+ when: Boolean(props.children),
293
+ children: [" - ", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("align", {
294
+ width: 2,
295
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Prose, { children: props.children })
296
+ })]
297
+ });
298
+ }
299
+ /**
300
+ * Create a TSDoc `@returns` tag.
301
+ */
302
+ function TSDocReturns(props) {
303
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocTag, {
304
+ ...props,
305
+ tag: "returns"
306
+ });
307
+ }
308
+ /**
309
+ * Create a TSDoc `@throws` tag.
310
+ */
311
+ function TSDocThrows(props) {
312
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TSDocTag, {
313
+ ...props,
314
+ tag: "throws"
315
+ });
316
+ }
317
+ /**
318
+ * Generates a TSDoc `@module` tag for the given module name.
319
+ */
320
+ function TSDocModule(props) {
321
+ const [{ children, name, prefix }] = (0, __alloy_js_core.splitProps)(props, [
322
+ "children",
323
+ "name",
324
+ "prefix"
325
+ ]);
326
+ const context = require_context.usePowerlinesSafe();
327
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
328
+ "/**",
329
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("align", {
330
+ string: " * ",
331
+ children: [
332
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {}),
333
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__alloy_js_core.Show, {
334
+ when: Boolean(children),
335
+ children: [
336
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.List, {
337
+ hardline: true,
338
+ children: (0, __alloy_js_core.childrenArray)(() => children)
339
+ }),
340
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {}),
341
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {})
342
+ ]
343
+ }),
344
+ "@module ",
345
+ prefix || context?.config?.framework || "powerlines",
346
+ ":",
347
+ name
348
+ ]
349
+ }),
350
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {}),
351
+ ` */`
352
+ ] });
353
+ }
354
+
355
+ //#endregion
356
+ exports.TSDoc = TSDoc;
357
+ exports.TSDocAttributesTags = TSDocAttributesTags;
358
+ exports.TSDocExample = TSDocExample;
359
+ exports.TSDocLink = TSDocLink;
360
+ exports.TSDocModule = TSDocModule;
361
+ exports.TSDocParam = TSDocParam;
362
+ exports.TSDocRemarks = TSDocRemarks;
363
+ exports.TSDocReturns = TSDocReturns;
364
+ exports.TSDocThrows = TSDocThrows;