@powerlines/plugin-date 0.12.260 → 0.12.261

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 (184) hide show
  1. package/dist/components/date-fns.cjs +3 -2
  2. package/dist/components/date-fns.mjs +1 -1
  3. package/dist/components/dayjs.cjs +3 -2
  4. package/dist/components/dayjs.mjs +1 -1
  5. package/dist/components/luxon.cjs +3 -2
  6. package/dist/components/luxon.mjs +1 -1
  7. package/dist/components/moment.cjs +3 -2
  8. package/dist/components/moment.mjs +1 -1
  9. package/dist/index.cjs +3 -2
  10. package/dist/index.d.cts +1 -1
  11. package/dist/index.d.mts +1 -1
  12. package/dist/index.mjs +2 -2
  13. package/dist/types/plugin.d.cts +1 -1
  14. package/dist/types/plugin.d.mts +1 -1
  15. package/package.json +4 -4
  16. package/dist/deepkit/schemas/reflection.cjs +0 -3998
  17. package/dist/deepkit/schemas/reflection.d.cts +0 -1560
  18. package/dist/deepkit/schemas/reflection.d.mts +0 -1560
  19. package/dist/deepkit/schemas/reflection.mjs +0 -3996
  20. package/dist/deepkit/schemas/reflection2.cjs +0 -4112
  21. package/dist/deepkit/schemas/reflection2.mjs +0 -4110
  22. package/dist/deepkit/src/capnp.cjs +0 -913
  23. package/dist/deepkit/src/capnp.mjs +0 -911
  24. package/dist/deepkit/src/esbuild-plugin.cjs +0 -47
  25. package/dist/deepkit/src/esbuild-plugin.mjs +0 -46
  26. package/dist/deepkit/src/reflect-type.cjs +0 -22
  27. package/dist/deepkit/src/reflect-type.mjs +0 -20
  28. package/dist/deepkit/src/resolve-reflections.cjs +0 -16
  29. package/dist/deepkit/src/resolve-reflections.mjs +0 -15
  30. package/dist/deepkit/src/transformer.cjs +0 -52
  31. package/dist/deepkit/src/transformer.mjs +0 -49
  32. package/dist/deepkit/src/transpile.cjs +0 -29
  33. package/dist/deepkit/src/transpile.mjs +0 -27
  34. package/dist/deepkit/src/types.d.cts +0 -10
  35. package/dist/deepkit/src/types.d.mts +0 -10
  36. package/dist/deepkit/src/utilities.cjs +0 -67
  37. package/dist/deepkit/src/utilities.mjs +0 -66
  38. package/dist/plugin-alloy/src/core/components/output.cjs +0 -36
  39. package/dist/plugin-alloy/src/core/components/output.mjs +0 -35
  40. package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +0 -20
  41. package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +0 -19
  42. package/dist/plugin-alloy/src/core/components/source-file.cjs +0 -60
  43. package/dist/plugin-alloy/src/core/components/source-file.mjs +0 -58
  44. package/dist/plugin-alloy/src/core/contexts/context.cjs +0 -38
  45. package/dist/plugin-alloy/src/core/contexts/context.mjs +0 -34
  46. package/dist/plugin-alloy/src/core/contexts/index.cjs +0 -2
  47. package/dist/plugin-alloy/src/core/contexts/index.mjs +0 -4
  48. package/dist/plugin-alloy/src/core/contexts/reflection.cjs +0 -46
  49. package/dist/plugin-alloy/src/core/contexts/reflection.mjs +0 -42
  50. package/dist/plugin-alloy/src/helpers/refkey.cjs +0 -16
  51. package/dist/plugin-alloy/src/helpers/refkey.mjs +0 -15
  52. package/dist/plugin-alloy/src/index.cjs +0 -102
  53. package/dist/plugin-alloy/src/index.mjs +0 -100
  54. package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +0 -89
  55. package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +0 -88
  56. package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +0 -33
  57. package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +0 -32
  58. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +0 -18
  59. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +0 -17
  60. package/dist/plugin-alloy/src/types/components.d.mts +0 -3
  61. package/dist/plugin-alloy/src/types/index.d.mts +0 -2
  62. package/dist/plugin-alloy/src/types/plugin.d.cts +0 -36
  63. package/dist/plugin-alloy/src/types/plugin.d.mts +0 -36
  64. package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +0 -52
  65. package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +0 -51
  66. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +0 -78
  67. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +0 -76
  68. package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +0 -364
  69. package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +0 -355
  70. package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +0 -157
  71. package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +0 -154
  72. package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +0 -57
  73. package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +0 -56
  74. package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +0 -94
  75. package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +0 -93
  76. package/dist/plugin-automd/src/index.cjs +0 -101
  77. package/dist/plugin-automd/src/index.mjs +0 -98
  78. package/dist/plugin-automd/src/types/plugin.d.cts +0 -38
  79. package/dist/plugin-automd/src/types/plugin.d.mts +0 -40
  80. package/dist/plugin-automd/src/types/toc.d.cts +0 -33
  81. package/dist/plugin-automd/src/types/toc.d.mts +0 -33
  82. package/dist/plugin-babel/src/helpers/ast-utils.cjs +0 -10
  83. package/dist/plugin-babel/src/helpers/ast-utils.mjs +0 -9
  84. package/dist/plugin-babel/src/helpers/create-plugin.cjs +0 -41
  85. package/dist/plugin-babel/src/helpers/create-plugin.mjs +0 -39
  86. package/dist/plugin-babel/src/helpers/filters.cjs +0 -23
  87. package/dist/plugin-babel/src/helpers/filters.mjs +0 -21
  88. package/dist/plugin-babel/src/helpers/index.cjs +0 -5
  89. package/dist/plugin-babel/src/helpers/index.mjs +0 -7
  90. package/dist/plugin-babel/src/helpers/module-helpers.cjs +0 -38
  91. package/dist/plugin-babel/src/helpers/module-helpers.mjs +0 -35
  92. package/dist/plugin-babel/src/helpers/options.cjs +0 -49
  93. package/dist/plugin-babel/src/helpers/options.mjs +0 -46
  94. package/dist/plugin-babel/src/index.cjs +0 -85
  95. package/dist/plugin-babel/src/index.mjs +0 -83
  96. package/dist/plugin-babel/src/types/index.d.mts +0 -1
  97. package/dist/plugin-babel/src/types/plugin.d.cts +0 -15
  98. package/dist/plugin-babel/src/types/plugin.d.mts +0 -15
  99. package/dist/plugin-env/src/babel/index.cjs +0 -1
  100. package/dist/plugin-env/src/babel/index.mjs +0 -3
  101. package/dist/plugin-env/src/babel/plugin.cjs +0 -70
  102. package/dist/plugin-env/src/babel/plugin.mjs +0 -69
  103. package/dist/plugin-env/src/components/docs.cjs +0 -60
  104. package/dist/plugin-env/src/components/docs.mjs +0 -59
  105. package/dist/plugin-env/src/components/env.cjs +0 -497
  106. package/dist/plugin-env/src/components/env.mjs +0 -494
  107. package/dist/plugin-env/src/components/index.cjs +0 -2
  108. package/dist/plugin-env/src/components/index.mjs +0 -4
  109. package/dist/plugin-env/src/helpers/automd-generator.cjs +0 -22
  110. package/dist/plugin-env/src/helpers/automd-generator.mjs +0 -21
  111. package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +0 -55
  112. package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +0 -54
  113. package/dist/plugin-env/src/helpers/docs-helper.cjs +0 -16
  114. package/dist/plugin-env/src/helpers/docs-helper.mjs +0 -15
  115. package/dist/plugin-env/src/helpers/index.cjs +0 -6
  116. package/dist/plugin-env/src/helpers/index.mjs +0 -8
  117. package/dist/plugin-env/src/helpers/load.cjs +0 -84
  118. package/dist/plugin-env/src/helpers/load.mjs +0 -81
  119. package/dist/plugin-env/src/helpers/persistence.cjs +0 -201
  120. package/dist/plugin-env/src/helpers/persistence.mjs +0 -190
  121. package/dist/plugin-env/src/helpers/reflect.cjs +0 -125
  122. package/dist/plugin-env/src/helpers/reflect.mjs +0 -117
  123. package/dist/plugin-env/src/helpers/source-file-env.cjs +0 -24
  124. package/dist/plugin-env/src/helpers/source-file-env.mjs +0 -23
  125. package/dist/plugin-env/src/helpers/template-helpers.cjs +0 -2
  126. package/dist/plugin-env/src/helpers/template-helpers.mjs +0 -4
  127. package/dist/plugin-env/src/index.cjs +0 -174
  128. package/dist/plugin-env/src/index.mjs +0 -172
  129. package/dist/plugin-env/src/types/plugin.d.cts +0 -148
  130. package/dist/plugin-env/src/types/plugin.d.mts +0 -150
  131. package/dist/plugin-env/src/types/runtime.d.cts +0 -789
  132. package/dist/plugin-env/src/types/runtime.d.mts +0 -789
  133. package/dist/powerlines/src/internal/helpers/hooks.d.cts +0 -47
  134. package/dist/powerlines/src/internal/helpers/hooks.d.mts +0 -49
  135. package/dist/powerlines/src/lib/build/esbuild.cjs +0 -93
  136. package/dist/powerlines/src/lib/build/esbuild.mjs +0 -91
  137. package/dist/powerlines/src/lib/constants/environments.cjs +0 -6
  138. package/dist/powerlines/src/lib/constants/environments.mjs +0 -5
  139. package/dist/powerlines/src/lib/entry.cjs +0 -11
  140. package/dist/powerlines/src/lib/entry.mjs +0 -13
  141. package/dist/powerlines/src/lib/logger.cjs +0 -41
  142. package/dist/powerlines/src/lib/logger.mjs +0 -39
  143. package/dist/powerlines/src/lib/unplugin/helpers.cjs +0 -3
  144. package/dist/powerlines/src/lib/unplugin/helpers.mjs +0 -5
  145. package/dist/powerlines/src/lib/unplugin/module-resolution.cjs +0 -66
  146. package/dist/powerlines/src/lib/unplugin/module-resolution.mjs +0 -65
  147. package/dist/powerlines/src/lib/unplugin/plugin.cjs +0 -46
  148. package/dist/powerlines/src/lib/unplugin/plugin.mjs +0 -45
  149. package/dist/powerlines/src/lib/utilities/bundle.cjs +0 -42
  150. package/dist/powerlines/src/lib/utilities/bundle.mjs +0 -40
  151. package/dist/powerlines/src/lib/utilities/file-header.cjs +0 -22
  152. package/dist/powerlines/src/lib/utilities/file-header.mjs +0 -21
  153. package/dist/powerlines/src/lib/utilities/resolve.cjs +0 -50
  154. package/dist/powerlines/src/lib/utilities/resolve.mjs +0 -49
  155. package/dist/powerlines/src/lib/utilities/source-file.cjs +0 -5
  156. package/dist/powerlines/src/lib/utilities/source-file.mjs +0 -5
  157. package/dist/powerlines/src/plugin-utils/paths.cjs +0 -1
  158. package/dist/powerlines/src/plugin-utils/paths.mjs +0 -3
  159. package/dist/powerlines/src/types/api.d.cts +0 -104
  160. package/dist/powerlines/src/types/api.d.mts +0 -104
  161. package/dist/powerlines/src/types/babel.d.cts +0 -22
  162. package/dist/powerlines/src/types/babel.d.mts +0 -22
  163. package/dist/powerlines/src/types/build.cjs +0 -21
  164. package/dist/powerlines/src/types/build.d.cts +0 -185
  165. package/dist/powerlines/src/types/build.d.mts +0 -185
  166. package/dist/powerlines/src/types/build.mjs +0 -21
  167. package/dist/powerlines/src/types/commands.d.cts +0 -8
  168. package/dist/powerlines/src/types/commands.d.mts +0 -9
  169. package/dist/powerlines/src/types/config.d.cts +0 -435
  170. package/dist/powerlines/src/types/config.d.mts +0 -436
  171. package/dist/powerlines/src/types/context.d.cts +0 -514
  172. package/dist/powerlines/src/types/context.d.mts +0 -514
  173. package/dist/powerlines/src/types/fs.d.cts +0 -486
  174. package/dist/powerlines/src/types/fs.d.mts +0 -486
  175. package/dist/powerlines/src/types/hooks.d.cts +0 -32
  176. package/dist/powerlines/src/types/hooks.d.mts +0 -32
  177. package/dist/powerlines/src/types/plugin.d.cts +0 -205
  178. package/dist/powerlines/src/types/plugin.d.mts +0 -205
  179. package/dist/powerlines/src/types/resolved.d.cts +0 -94
  180. package/dist/powerlines/src/types/resolved.d.mts +0 -94
  181. package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
  182. package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
  183. package/dist/powerlines/src/types/unplugin.d.cts +0 -22
  184. package/dist/powerlines/src/types/unplugin.d.mts +0 -23
@@ -1,364 +0,0 @@
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;