@stainless-api/docs-ui 0.1.0-beta.7 → 0.1.0-beta.70

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 (215) hide show
  1. package/dist/breadcrumbs-BhYwbXkc.d.ts +25 -0
  2. package/dist/breadcrumbs-Cvm5Ifm7.d.ts +25 -0
  3. package/dist/breadcrumbs-DA4WgDhR.js +63 -0
  4. package/dist/chunk-BN_g-Awi.js +18 -0
  5. package/dist/cli-F3kMmeoJ.js +166 -0
  6. package/dist/component-P9sn5yyG.js +23 -0
  7. package/dist/component-generics-ByGsYTc8.d.ts +30 -0
  8. package/dist/component-generics-POFirVVb.js +45 -0
  9. package/dist/component-generics-zU0Pqx8m.d.ts +30 -0
  10. package/dist/components/MaskedInput.d.ts +14 -0
  11. package/dist/components/MaskedInput.js +76 -0
  12. package/dist/components/breadcrumbs.d.ts +2 -0
  13. package/dist/components/breadcrumbs.js +9 -0
  14. package/dist/components/icons.d.ts +60 -0
  15. package/dist/components/icons.js +3 -0
  16. package/dist/components/index.d.ts +11 -0
  17. package/dist/components/index.js +19 -0
  18. package/dist/components/method.d.ts +2 -0
  19. package/dist/components/method.js +10 -0
  20. package/dist/components/overview.d.ts +2 -0
  21. package/dist/components/overview.js +11 -0
  22. package/dist/components/primitives.d.ts +2 -0
  23. package/dist/components/primitives.js +8 -0
  24. package/dist/components/properties.d.ts +2 -0
  25. package/dist/components/properties.js +9 -0
  26. package/dist/components/sdk-sidebar.d.ts +2 -0
  27. package/dist/components/sdk-sidebar.js +10 -0
  28. package/dist/components/sdk.d.ts +2 -0
  29. package/dist/components/sdk.js +10 -0
  30. package/dist/components/snippets.d.ts +3 -0
  31. package/dist/components/snippets.js +9 -0
  32. package/dist/components/stl-sidebar.d.ts +2 -0
  33. package/dist/components/stl-sidebar.js +5 -0
  34. package/dist/components-w1JmIrB0.js +71 -0
  35. package/dist/contexts/component-generics.d.ts +2 -0
  36. package/dist/contexts/component-generics.js +3 -0
  37. package/dist/contexts/component-types.d.ts +17 -0
  38. package/dist/contexts/component-types.js +0 -0
  39. package/dist/contexts/component.d.ts +30 -0
  40. package/dist/contexts/component.js +30 -0
  41. package/dist/contexts/docs.d.ts +2 -0
  42. package/dist/contexts/docs.js +3 -0
  43. package/dist/contexts/index.d.ts +23 -0
  44. package/dist/contexts/index.js +7 -0
  45. package/dist/contexts/markdown.d.ts +2 -0
  46. package/dist/contexts/markdown.js +4 -0
  47. package/dist/contexts/navigation.d.ts +2 -0
  48. package/dist/contexts/navigation.js +3 -0
  49. package/dist/contexts/use-components.d.ts +15 -0
  50. package/dist/contexts/use-components.js +4 -0
  51. package/dist/contexts-CVj20VV4.js +41 -0
  52. package/dist/csharp-D6_jlynY.js +283 -0
  53. package/dist/docs-BmOB2f-I.js +61 -0
  54. package/dist/docs-g4IPmtZr.d.ts +48 -0
  55. package/dist/docs-z3fl2eW-.d.ts +48 -0
  56. package/dist/go-COaHV3Hc.js +303 -0
  57. package/dist/http-fOPCX17A.js +389 -0
  58. package/dist/icons-BYKn5X8E.js +885 -0
  59. package/dist/index-B8Zys1C2.d.ts +347 -0
  60. package/dist/index-C5Zmb2CI.d.ts +16 -0
  61. package/dist/index-CwjGm9zX.d.ts +1722 -0
  62. package/dist/index-D7PkxNgB.d.ts +16 -0
  63. package/dist/index-DIaM6Ync.d.ts +347 -0
  64. package/dist/index.d.ts +20 -0
  65. package/dist/index.js +32 -7542
  66. package/dist/java-CxGSJVvv.js +403 -0
  67. package/dist/languages/cli.d.ts +12 -0
  68. package/dist/languages/cli.js +21 -0
  69. package/dist/languages/csharp.d.ts +12 -0
  70. package/dist/languages/csharp.js +9 -0
  71. package/dist/languages/go.d.ts +12 -0
  72. package/dist/languages/go.js +9 -0
  73. package/dist/languages/http.d.ts +12 -0
  74. package/dist/languages/http.js +20 -0
  75. package/dist/languages/index.d.ts +12 -0
  76. package/dist/languages/index.js +29 -0
  77. package/dist/languages/java.d.ts +12 -0
  78. package/dist/languages/java.js +9 -0
  79. package/dist/languages/python.d.ts +12 -0
  80. package/dist/languages/python.js +9 -0
  81. package/dist/languages/ruby.d.ts +12 -0
  82. package/dist/languages/ruby.js +9 -0
  83. package/dist/languages/terraform.d.ts +12 -0
  84. package/dist/languages/terraform.js +9 -0
  85. package/dist/languages/typescript.d.ts +12 -0
  86. package/dist/languages/typescript.js +9 -0
  87. package/dist/languages-B6eap2M6.js +30 -0
  88. package/dist/markdown/index.d.ts +12 -0
  89. package/dist/markdown/index.js +107 -0
  90. package/dist/markdown/md.d.ts +15 -0
  91. package/dist/markdown/md.js +41 -0
  92. package/dist/markdown/printer.d.ts +13 -0
  93. package/dist/markdown/printer.js +100 -0
  94. package/dist/markdown/utils.d.ts +21 -0
  95. package/dist/markdown/utils.js +31 -0
  96. package/dist/markdown-CTKHMLVr.js +49 -0
  97. package/dist/markdown-Cdh0TSHp.d.ts +22 -0
  98. package/dist/markdown-Cibv9fDR.d.ts +22 -0
  99. package/dist/method-630cPKDl.d.ts +59 -0
  100. package/dist/method-BPDUyBlD.js +96 -0
  101. package/dist/method-BzkPRXGL.d.ts +59 -0
  102. package/dist/navigation-BW-SBvb4.d.ts +29 -0
  103. package/dist/navigation-DWYqC_HX.d.ts +29 -0
  104. package/dist/navigation-aoYZ_tl4.js +24 -0
  105. package/dist/overview-Cui1XtuC.d.ts +39 -0
  106. package/dist/overview-DFwfIK6k.js +138 -0
  107. package/dist/overview-RXc9iPzz.d.ts +39 -0
  108. package/dist/primitives-DJEqe_r1.js +250 -0
  109. package/dist/primitives-DhGxFYx6.d.ts +105 -0
  110. package/dist/primitives-MsH-h0bU.d.ts +105 -0
  111. package/dist/properties-BnbBKd5a.js +132 -0
  112. package/dist/properties-Bynmj9_H.d.ts +54 -0
  113. package/dist/properties-C9W4QJ_F.d.ts +54 -0
  114. package/dist/python-DsTuWCKE.js +269 -0
  115. package/dist/routing-C64k4fmX.js +205 -0
  116. package/dist/routing-Cm_9XJiQ.d.ts +61 -0
  117. package/dist/routing-utiR5mY3.d.ts +61 -0
  118. package/dist/routing.d.ts +2 -0
  119. package/dist/routing.js +3 -180
  120. package/dist/ruby-BncKp6hd.js +387 -0
  121. package/dist/sdk-BvZeXpsj.d.ts +122 -0
  122. package/dist/sdk-Bw99eXxA.js +399 -0
  123. package/dist/sdk-GMOw94wL.d.ts +122 -0
  124. package/dist/sdk-sidebar-NCBSWuUW.d.ts +15 -0
  125. package/dist/sdk-sidebar-VNY2-O1Y.d.ts +15 -0
  126. package/dist/sdk-sidebar-V_MTkVw8.js +50 -0
  127. package/dist/snippets-BehbU3rt.js +164 -0
  128. package/dist/snippets-Bj7Ey56K.d.ts +53 -0
  129. package/dist/snippets-CQQSDvg2.d.ts +53 -0
  130. package/dist/spec.d.ts +65 -0
  131. package/dist/spec.js +167 -0
  132. package/dist/stl-sidebar-CXzs_shz.d.ts +58 -0
  133. package/dist/stl-sidebar-DSkUHwcU.d.ts +58 -0
  134. package/dist/stl-sidebar-WtimNrk1.js +106 -0
  135. package/dist/style-HpXpcJ9v.js +172 -0
  136. package/dist/style.d.ts +171 -0
  137. package/dist/style.js +3 -0
  138. package/dist/styles/main.css +744 -754
  139. package/dist/styles/main.js +0 -0
  140. package/dist/styles/primitives.css +327 -458
  141. package/dist/styles/primitives.js +0 -0
  142. package/dist/styles/resets.css +32 -41
  143. package/dist/styles/resets.js +0 -0
  144. package/dist/styles/search.css +192 -270
  145. package/dist/styles/search.js +0 -0
  146. package/dist/styles/sidebar.css +170 -69
  147. package/dist/styles/sidebar.js +0 -0
  148. package/dist/styles/variables.css +26 -89
  149. package/dist/styles/variables.js +0 -0
  150. package/dist/styles.css +3273 -0
  151. package/dist/styles.mjs +1 -0
  152. package/dist/terraform-B95X4rNK.js +243 -0
  153. package/dist/typescript-n46M9OtL.js +449 -0
  154. package/dist/use-components-BUz3GbO4.js +7 -0
  155. package/dist/utils-DPbkW1Tz.js +54 -0
  156. package/dist/utils.d.ts +20 -0
  157. package/dist/utils.js +3 -0
  158. package/package.json +74 -22
  159. package/dist/mcp.js +0 -16003
  160. package/dist/styles/snippets.css +0 -132
  161. package/src/components/breadcrumbs.tsx +0 -94
  162. package/src/components/chat.tsx +0 -154
  163. package/src/components/dropdown.tsx +0 -91
  164. package/src/components/icons.tsx +0 -584
  165. package/src/components/index.ts +0 -9
  166. package/src/components/method.tsx +0 -144
  167. package/src/components/overview.tsx +0 -159
  168. package/src/components/primitives.tsx +0 -284
  169. package/src/components/properties.tsx +0 -130
  170. package/src/components/scripts/dropdown.ts +0 -78
  171. package/src/components/sdk.tsx +0 -402
  172. package/src/components/sidebar.tsx +0 -99
  173. package/src/components/snippets.tsx +0 -179
  174. package/src/contexts/component-generics.tsx +0 -48
  175. package/src/contexts/component-types.tsx +0 -5
  176. package/src/contexts/component.tsx +0 -32
  177. package/src/contexts/docs.tsx +0 -75
  178. package/src/contexts/index.tsx +0 -17
  179. package/src/contexts/markdown.tsx +0 -43
  180. package/src/contexts/navigation.tsx +0 -44
  181. package/src/contexts/search.tsx +0 -28
  182. package/src/contexts/use-components.tsx +0 -4
  183. package/src/index.ts +0 -6
  184. package/src/languages/go.tsx +0 -281
  185. package/src/languages/http.tsx +0 -321
  186. package/src/languages/index.ts +0 -26
  187. package/src/languages/java.tsx +0 -358
  188. package/src/languages/python.tsx +0 -255
  189. package/src/languages/ruby.tsx +0 -320
  190. package/src/languages/typescript.tsx +0 -393
  191. package/src/markdown/index.ts +0 -107
  192. package/src/markdown/md.ts +0 -45
  193. package/src/markdown/utils.ts +0 -49
  194. package/src/routing.ts +0 -238
  195. package/src/search/form.tsx +0 -127
  196. package/src/search/index.tsx +0 -1
  197. package/src/search/indexer.ts +0 -246
  198. package/src/search/mcp.ts +0 -61
  199. package/src/search/printer.tsx +0 -86
  200. package/src/search/providers/algolia.ts +0 -88
  201. package/src/search/providers/fuse.ts +0 -19
  202. package/src/search/providers/pagefind.ts +0 -17
  203. package/src/search/providers/walker.ts +0 -30
  204. package/src/search/results.tsx +0 -181
  205. package/src/search/state.ts +0 -64
  206. package/src/search/types.ts +0 -116
  207. package/src/style.ts +0 -197
  208. package/src/styles/main.css +0 -993
  209. package/src/styles/primitives.css +0 -572
  210. package/src/styles/resets.css +0 -47
  211. package/src/styles/search.css +0 -342
  212. package/src/styles/sidebar.css +0 -87
  213. package/src/styles/snippets.css +0 -132
  214. package/src/styles/variables.css +0 -90
  215. package/src/utils.ts +0 -41
@@ -0,0 +1,403 @@
1
+ import { t as __exportAll } from "./chunk-BN_g-Awi.js";
2
+ import { s as useLanguage } from "./docs-BmOB2f-I.js";
3
+ import { n as useLanguageComponents } from "./contexts-CVj20VV4.js";
4
+ import { t as useComponents } from "./use-components-BUz3GbO4.js";
5
+ import { t as style_default } from "./style-HpXpcJ9v.js";
6
+ import * as React$1 from "react";
7
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
+
9
+ //#region src/languages/java.tsx
10
+ var java_exports = /* @__PURE__ */ __exportAll({
11
+ Declaration: () => Declaration,
12
+ MethodSignature: () => MethodSignature,
13
+ Property: () => Property,
14
+ Type: () => Type,
15
+ TypeName: () => TypeName
16
+ });
17
+ function showFullType(type) {
18
+ return type.kind === "JavaTypeReference" && (type.typeName === "List" || type.typeParameters && type.typeParameters.length > 0);
19
+ }
20
+ const constStyle = {
21
+ string: style_default.LiteralString,
22
+ number: style_default.LiteralNumeric,
23
+ boolean: style_default.LiteralBoolean
24
+ };
25
+ function TypeName({ type, optional }) {
26
+ const Lang = useLanguageComponents();
27
+ if (type.kind === "JavaTypeReference" && type.typeName === "List") return "List";
28
+ return /* @__PURE__ */ jsx(Lang.Type, {
29
+ type,
30
+ optional
31
+ });
32
+ }
33
+ function Type({ type, optional }) {
34
+ const language = useLanguage();
35
+ const Lang = useLanguageComponents();
36
+ const { Join, SDKReference } = useComponents();
37
+ switch (type.kind) {
38
+ case "JavaTypeReference": {
39
+ const name = type.typeName.split(".").at(-1);
40
+ const params = type.typeParameters?.map((param, key) => /* @__PURE__ */ jsx(Lang.Type, {
41
+ type: param,
42
+ optional
43
+ }, key));
44
+ return /* @__PURE__ */ jsxs("span", {
45
+ className: style_default.Type,
46
+ children: [/* @__PURE__ */ jsx(SDKReference, {
47
+ stainlessPath: type.$ref,
48
+ children: name
49
+ }), params && params.length > 0 ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
50
+ /* @__PURE__ */ jsx("span", {
51
+ className: style_default.TypeBracket,
52
+ children: "<"
53
+ }),
54
+ /* @__PURE__ */ jsx(Join, {
55
+ items: params,
56
+ limit: 3,
57
+ children: /* @__PURE__ */ jsx("span", {
58
+ className: style_default.TextOperator,
59
+ children: ", "
60
+ })
61
+ }),
62
+ /* @__PURE__ */ jsx("span", {
63
+ className: style_default.TypeBracket,
64
+ children: ">"
65
+ })
66
+ ] }) : null]
67
+ });
68
+ }
69
+ case "JavaTypeClass":
70
+ case "JavaTypeUnion": return /* @__PURE__ */ jsx("span", {
71
+ className: style_default.Type,
72
+ children: /* @__PURE__ */ jsx("span", {
73
+ className: style_default.TypeKeyword,
74
+ children: "class"
75
+ })
76
+ });
77
+ case "JavaTypeEnum": return /* @__PURE__ */ jsx("span", {
78
+ className: style_default.Type,
79
+ children: /* @__PURE__ */ jsx("span", {
80
+ className: style_default.TypeKeyword,
81
+ children: language === "kotlin" ? "enum class" : "enum"
82
+ })
83
+ });
84
+ case "JavaTypeVoid": return /* @__PURE__ */ jsx("span", {
85
+ className: style_default.Type,
86
+ children: /* @__PURE__ */ jsx("span", {
87
+ className: style_default.TypeKeyword,
88
+ children: language === "kotlin" ? "Nothing?" : "Void"
89
+ })
90
+ });
91
+ case "JavaTypeBoolean": return /* @__PURE__ */ jsx("span", {
92
+ className: style_default.Type,
93
+ children: /* @__PURE__ */ jsx("span", {
94
+ className: style_default.TypeKeyword,
95
+ children: language === "kotlin" || optional ? "Boolean" : "boolean"
96
+ })
97
+ });
98
+ case "JavaTypeDouble": return /* @__PURE__ */ jsx("span", {
99
+ className: style_default.Type,
100
+ children: /* @__PURE__ */ jsx("span", {
101
+ className: style_default.TypeKeyword,
102
+ children: language === "kotlin" || optional ? "Double" : "double"
103
+ })
104
+ });
105
+ case "JavaTypeLong": return /* @__PURE__ */ jsx("span", {
106
+ className: style_default.Type,
107
+ children: /* @__PURE__ */ jsx("span", {
108
+ className: style_default.TypeKeyword,
109
+ children: language === "kotlin" || optional ? "Long" : "long"
110
+ })
111
+ });
112
+ case "JavaTypeString": return /* @__PURE__ */ jsx("span", {
113
+ className: style_default.Type,
114
+ children: /* @__PURE__ */ jsx("span", {
115
+ className: style_default.TypeString,
116
+ children: "String"
117
+ })
118
+ });
119
+ case "JavaTypeConstant": return /* @__PURE__ */ jsxs("span", {
120
+ className: style_default.Type,
121
+ children: [/* @__PURE__ */ jsx("span", {
122
+ className: style_default.TypeKeyword,
123
+ children: "JsonValue"
124
+ }), ";"]
125
+ });
126
+ }
127
+ }
128
+ function MethodSignature({ decl }) {
129
+ const Lang = useLanguageComponents();
130
+ const language = useLanguage();
131
+ const { Join, Tooltip } = useComponents();
132
+ const params = decl.parameters.map((param, i) => /* @__PURE__ */ jsx(React$1.Fragment, { children: /* @__PURE__ */ jsxs(Tooltip, {
133
+ content: /* @__PURE__ */ jsx(Lang.Type, { type: param.typeAnnotation }),
134
+ children: [/* @__PURE__ */ jsx("span", {
135
+ className: style_default.TextIdentifier,
136
+ children: param.ident
137
+ }), param.hasDefault && /* @__PURE__ */ jsxs(Fragment$1, { children: [
138
+ " ",
139
+ /* @__PURE__ */ jsx("span", {
140
+ className: style_default.TextOperator,
141
+ children: "="
142
+ }),
143
+ " ",
144
+ /* @__PURE__ */ jsx(Lang.Type, { type: param.typeAnnotation }),
145
+ /* @__PURE__ */ jsx("span", {
146
+ className: style_default.TextOperator,
147
+ children: "."
148
+ }),
149
+ /* @__PURE__ */ jsx("span", {
150
+ className: style_default.TextIdentifier,
151
+ children: "none"
152
+ }),
153
+ /* @__PURE__ */ jsx("span", {
154
+ className: style_default.TextOperator,
155
+ children: "()"
156
+ })
157
+ ] })]
158
+ }) }, i));
159
+ return /* @__PURE__ */ jsx("div", {
160
+ className: style_default.MethodSignature,
161
+ children: /* @__PURE__ */ jsxs("span", {
162
+ className: style_default.SignatureTitle,
163
+ children: [
164
+ decl.returnType && language !== "kotlin" && /* @__PURE__ */ jsxs("span", {
165
+ className: style_default.SignatureReturns,
166
+ children: [/* @__PURE__ */ jsx(Lang.Type, { type: decl.returnType }), " "]
167
+ }),
168
+ decl.qualified && /* @__PURE__ */ jsx("span", {
169
+ className: style_default.SignatureQualified,
170
+ children: /* @__PURE__ */ jsx("span", {
171
+ className: style_default.TextIdentifier,
172
+ children: decl.qualified?.slice(0, -decl.ident.length)
173
+ })
174
+ }),
175
+ /* @__PURE__ */ jsx("span", {
176
+ className: style_default.SignatureName,
177
+ children: /* @__PURE__ */ jsx("span", {
178
+ className: style_default.TextIdentifier,
179
+ children: decl.ident
180
+ })
181
+ }),
182
+ /* @__PURE__ */ jsxs("span", {
183
+ className: style_default.MethodSignature,
184
+ children: [
185
+ /* @__PURE__ */ jsx("span", {
186
+ className: style_default.SignatureParen,
187
+ children: "("
188
+ }),
189
+ /* @__PURE__ */ jsx("span", {
190
+ className: style_default.SignatureParams,
191
+ children: /* @__PURE__ */ jsx(Join, {
192
+ items: params,
193
+ children: /* @__PURE__ */ jsx("span", {
194
+ className: style_default.TextOperator,
195
+ children: ", "
196
+ })
197
+ })
198
+ }),
199
+ /* @__PURE__ */ jsxs("span", {
200
+ className: style_default.SignatureParen,
201
+ children: [")", " "]
202
+ }),
203
+ decl.returnType && language === "kotlin" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
204
+ /* @__PURE__ */ jsx("span", {
205
+ className: style_default.TextOperator,
206
+ children: ":"
207
+ }),
208
+ " ",
209
+ /* @__PURE__ */ jsx(Lang.Type, { type: decl.returnType })
210
+ ] })
211
+ ]
212
+ })
213
+ ]
214
+ })
215
+ });
216
+ }
217
+ function Property({ decl, children }) {
218
+ const Docs = useComponents();
219
+ const Lang = useLanguageComponents();
220
+ const language = useLanguage();
221
+ if (!decl) return null;
222
+ switch (decl.kind) {
223
+ case "JavaDeclProperty": {
224
+ const typeRaw = /* @__PURE__ */ jsx(Lang.Type, {
225
+ type: decl.type,
226
+ optional: decl.optional
227
+ });
228
+ const typeWrapped = decl.optional ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
229
+ /* @__PURE__ */ jsx("span", {
230
+ className: style_default.TypeKeyword,
231
+ children: "Optional"
232
+ }),
233
+ /* @__PURE__ */ jsx("span", {
234
+ className: style_default.TypeBracket,
235
+ children: "<"
236
+ }),
237
+ typeRaw,
238
+ /* @__PURE__ */ jsx("span", {
239
+ className: style_default.TypeBracket,
240
+ children: ">"
241
+ })
242
+ ] }) : typeRaw;
243
+ const badges = /* @__PURE__ */ jsx(Fragment$1, { children: decl.type.kind === "JavaTypeConstant" && /* @__PURE__ */ jsx(Docs.Tooltip, {
244
+ content: /* @__PURE__ */ jsx("span", {
245
+ className: style_default.TextIdentifier,
246
+ children: decl.type.value
247
+ }),
248
+ children: /* @__PURE__ */ jsx("span", {
249
+ className: style_default.TextIdentifier,
250
+ children: "constant"
251
+ })
252
+ }) });
253
+ return children({
254
+ name: decl.ident,
255
+ typeName: /* @__PURE__ */ jsx(Lang.TypeName, {
256
+ type: decl.type,
257
+ optional: decl.optional
258
+ }),
259
+ type: showFullType(decl.type) && typeWrapped,
260
+ badges
261
+ });
262
+ }
263
+ case "JavaDeclConst": return children({
264
+ name: decl.ident,
265
+ typeName: "const",
266
+ type: /* @__PURE__ */ jsx("span", {
267
+ className: constStyle[typeof decl.value],
268
+ children: JSON.stringify(decl.value)
269
+ })
270
+ });
271
+ case "JavaDeclType": {
272
+ const typeName = decl.type.kind === "JavaTypeUnion" ? "union" : decl.type.kind === "JavaTypeEnum" ? language === "kotlin" ? "enum class" : "enum" : "class";
273
+ return children({
274
+ name: decl.ident,
275
+ typeName
276
+ });
277
+ }
278
+ case "JavaDeclReference": return children({ type: /* @__PURE__ */ jsx(Lang.Type, { type: decl.type }) });
279
+ }
280
+ }
281
+ function Declaration({ decl }) {
282
+ const Docs = useComponents();
283
+ const Lang = useLanguageComponents();
284
+ const language = useLanguage();
285
+ if (!decl) return null;
286
+ switch (decl.kind) {
287
+ case "JavaDeclConst": return /* @__PURE__ */ jsxs(Fragment$1, { children: [
288
+ /* @__PURE__ */ jsx("span", {
289
+ className: style_default.TextIdentifier,
290
+ children: decl.ident
291
+ }),
292
+ /* @__PURE__ */ jsx("span", {
293
+ className: style_default.TextPunctuation,
294
+ children: "("
295
+ }),
296
+ JSON.stringify(decl.value),
297
+ /* @__PURE__ */ jsx("span", {
298
+ className: style_default.TextPunctuation,
299
+ children: ")"
300
+ })
301
+ ] });
302
+ case "JavaDeclType": {
303
+ const keyword = decl.type.kind === "JavaTypeEnum" ? language === "kotlin" ? "enum class" : "enum" : "class";
304
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
305
+ /* @__PURE__ */ jsx("span", {
306
+ className: style_default.TextKeyword,
307
+ children: keyword
308
+ }),
309
+ " ",
310
+ /* @__PURE__ */ jsx("span", {
311
+ className: style_default.TextIdentifier,
312
+ children: decl.ident
313
+ }),
314
+ /* @__PURE__ */ jsx("span", {
315
+ className: style_default.TextPunctuation,
316
+ children: ":"
317
+ }),
318
+ decl.type.kind === "JavaTypeUnion" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
319
+ " ",
320
+ /* @__PURE__ */ jsx(Docs.Tooltip, {
321
+ content: "A class that can be one of several variants.",
322
+ children: /* @__PURE__ */ jsx(Docs.Badge, {
323
+ id: "java-union",
324
+ children: "union"
325
+ })
326
+ }),
327
+ " "
328
+ ] })
329
+ ] });
330
+ }
331
+ case "JavaDeclProperty": {
332
+ const inlineType = /* @__PURE__ */ jsx(Lang.Type, {
333
+ type: decl.type,
334
+ optional: decl.optional
335
+ });
336
+ const ident = /* @__PURE__ */ jsx("span", {
337
+ className: style_default.TypePropertyName,
338
+ children: /* @__PURE__ */ jsx("span", {
339
+ className: style_default.TextIdentifier,
340
+ children: decl.ident
341
+ })
342
+ });
343
+ const suffix = decl.type.kind === "JavaTypeConstant" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [" ", /* @__PURE__ */ jsx(Docs.Tooltip, {
344
+ content: /* @__PURE__ */ jsx("span", {
345
+ className: style_default.TextIdentifier,
346
+ children: decl.type.value
347
+ }),
348
+ children: /* @__PURE__ */ jsx(Docs.Badge, {
349
+ id: "java-constant",
350
+ children: "constant"
351
+ })
352
+ })] }) : null;
353
+ if (language === "kotlin") return /* @__PURE__ */ jsxs(Fragment$1, { children: [
354
+ ident,
355
+ /* @__PURE__ */ jsx("span", {
356
+ className: style_default.TextPunctuation,
357
+ children: ":"
358
+ }),
359
+ " ",
360
+ decl.optional ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
361
+ /* @__PURE__ */ jsx("span", {
362
+ className: style_default.TypeReference,
363
+ children: "Optional"
364
+ }),
365
+ /* @__PURE__ */ jsx("span", {
366
+ className: style_default.TypeBracket,
367
+ children: "<"
368
+ }),
369
+ inlineType,
370
+ /* @__PURE__ */ jsx("span", {
371
+ className: style_default.TypeBracket,
372
+ children: ">"
373
+ })
374
+ ] }) : inlineType,
375
+ suffix
376
+ ] });
377
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
378
+ decl.optional ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
379
+ /* @__PURE__ */ jsx("span", {
380
+ className: style_default.TypeReference,
381
+ children: "Optional"
382
+ }),
383
+ /* @__PURE__ */ jsx("span", {
384
+ className: style_default.TypeBracket,
385
+ children: "<"
386
+ }),
387
+ inlineType,
388
+ /* @__PURE__ */ jsx("span", {
389
+ className: style_default.TypeBracket,
390
+ children: ">"
391
+ })
392
+ ] }) : inlineType,
393
+ " ",
394
+ ident,
395
+ suffix
396
+ ] });
397
+ }
398
+ case "JavaDeclReference": return /* @__PURE__ */ jsx(Lang.Type, { type: decl.type });
399
+ }
400
+ }
401
+
402
+ //#endregion
403
+ export { TypeName as a, Type as i, MethodSignature as n, java_exports as o, Property as r, Declaration as t };
@@ -0,0 +1,12 @@
1
+ import "../primitives-MsH-h0bU.js";
2
+ import "../breadcrumbs-BhYwbXkc.js";
3
+ import "../method-BzkPRXGL.js";
4
+ import "../properties-Bynmj9_H.js";
5
+ import "../sdk-GMOw94wL.js";
6
+ import "../snippets-CQQSDvg2.js";
7
+ import "../overview-Cui1XtuC.js";
8
+ import "../sdk-sidebar-VNY2-O1Y.js";
9
+ import "../stl-sidebar-CXzs_shz.js";
10
+ import "../index-D7PkxNgB.js";
11
+ import { C as PropertyProps, S as Property, T as TypeName, b as MethodSignature, v as Declaration, w as Type, x as MethodSignatureProps, y as DeclarationProps } from "../index-DIaM6Ync.js";
12
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -0,0 +1,21 @@
1
+ import "../docs-BmOB2f-I.js";
2
+ import "../component-generics-POFirVVb.js";
3
+ import "../navigation-aoYZ_tl4.js";
4
+ import "../markdown-CTKHMLVr.js";
5
+ import "../contexts-CVj20VV4.js";
6
+ import "../use-components-BUz3GbO4.js";
7
+ import "../properties-BnbBKd5a.js";
8
+ import "../method-BPDUyBlD.js";
9
+ import "../primitives-DJEqe_r1.js";
10
+ import "../icons-BYKn5X8E.js";
11
+ import "../sdk-Bw99eXxA.js";
12
+ import "../snippets-BehbU3rt.js";
13
+ import "../overview-DFwfIK6k.js";
14
+ import "../breadcrumbs-DA4WgDhR.js";
15
+ import "../stl-sidebar-WtimNrk1.js";
16
+ import "../sdk-sidebar-V_MTkVw8.js";
17
+ import "../components-w1JmIrB0.js";
18
+ import "../http-fOPCX17A.js";
19
+ import { a as TypeName, i as Type, n as MethodSignature, r as Property, t as Declaration } from "../cli-F3kMmeoJ.js";
20
+
21
+ export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -0,0 +1,12 @@
1
+ import "../primitives-MsH-h0bU.js";
2
+ import "../breadcrumbs-BhYwbXkc.js";
3
+ import "../method-BzkPRXGL.js";
4
+ import "../properties-Bynmj9_H.js";
5
+ import "../sdk-GMOw94wL.js";
6
+ import "../snippets-CQQSDvg2.js";
7
+ import "../overview-Cui1XtuC.js";
8
+ import "../sdk-sidebar-VNY2-O1Y.js";
9
+ import "../stl-sidebar-CXzs_shz.js";
10
+ import "../index-D7PkxNgB.js";
11
+ import { A as MethodSignatureProps, D as Declaration, M as PropertyProps, N as Type, O as DeclarationProps, P as TypeName, j as Property, k as MethodSignature } from "../index-DIaM6Ync.js";
12
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -0,0 +1,9 @@
1
+ import "../docs-BmOB2f-I.js";
2
+ import "../component-generics-POFirVVb.js";
3
+ import "../navigation-aoYZ_tl4.js";
4
+ import "../markdown-CTKHMLVr.js";
5
+ import "../contexts-CVj20VV4.js";
6
+ import "../use-components-BUz3GbO4.js";
7
+ import { a as TypeName, i as Type, n as MethodSignature, r as Property, t as Declaration } from "../csharp-D6_jlynY.js";
8
+
9
+ export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -0,0 +1,12 @@
1
+ import "../primitives-MsH-h0bU.js";
2
+ import "../breadcrumbs-BhYwbXkc.js";
3
+ import "../method-BzkPRXGL.js";
4
+ import "../properties-Bynmj9_H.js";
5
+ import "../sdk-GMOw94wL.js";
6
+ import "../snippets-CQQSDvg2.js";
7
+ import "../overview-Cui1XtuC.js";
8
+ import "../sdk-sidebar-VNY2-O1Y.js";
9
+ import "../stl-sidebar-CXzs_shz.js";
10
+ import "../index-D7PkxNgB.js";
11
+ import { _t as TypeName, dt as DeclarationProps, ft as MethodSignature, gt as Type, ht as PropertyProps, mt as Property, pt as MethodSignatureProps, ut as Declaration, vt as TypeProps } from "../index-DIaM6Ync.js";
12
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName, TypeProps };
@@ -0,0 +1,9 @@
1
+ import "../docs-BmOB2f-I.js";
2
+ import "../component-generics-POFirVVb.js";
3
+ import "../navigation-aoYZ_tl4.js";
4
+ import "../markdown-CTKHMLVr.js";
5
+ import "../contexts-CVj20VV4.js";
6
+ import "../use-components-BUz3GbO4.js";
7
+ import { a as TypeName, i as Type, n as MethodSignature, r as Property, t as Declaration } from "../go-COaHV3Hc.js";
8
+
9
+ export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -0,0 +1,12 @@
1
+ import "../primitives-MsH-h0bU.js";
2
+ import "../breadcrumbs-BhYwbXkc.js";
3
+ import "../method-BzkPRXGL.js";
4
+ import "../properties-Bynmj9_H.js";
5
+ import "../sdk-GMOw94wL.js";
6
+ import "../snippets-CQQSDvg2.js";
7
+ import "../overview-Cui1XtuC.js";
8
+ import "../sdk-sidebar-VNY2-O1Y.js";
9
+ import "../stl-sidebar-CXzs_shz.js";
10
+ import "../index-D7PkxNgB.js";
11
+ import { B as MethodSignatureProps, H as PropertyProps, I as Declaration, L as DeclarationProps, R as MethodInfo, U as Type, V as Property, W as TypeName, z as MethodSignature } from "../index-DIaM6Ync.js";
12
+ export { Declaration, DeclarationProps, MethodInfo, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -0,0 +1,20 @@
1
+ import "../docs-BmOB2f-I.js";
2
+ import "../component-generics-POFirVVb.js";
3
+ import "../navigation-aoYZ_tl4.js";
4
+ import "../markdown-CTKHMLVr.js";
5
+ import "../contexts-CVj20VV4.js";
6
+ import "../use-components-BUz3GbO4.js";
7
+ import "../properties-BnbBKd5a.js";
8
+ import "../method-BPDUyBlD.js";
9
+ import "../primitives-DJEqe_r1.js";
10
+ import "../icons-BYKn5X8E.js";
11
+ import "../sdk-Bw99eXxA.js";
12
+ import "../snippets-BehbU3rt.js";
13
+ import "../overview-DFwfIK6k.js";
14
+ import "../breadcrumbs-DA4WgDhR.js";
15
+ import "../stl-sidebar-WtimNrk1.js";
16
+ import "../sdk-sidebar-V_MTkVw8.js";
17
+ import "../components-w1JmIrB0.js";
18
+ import { a as Type, i as Property, n as MethodInfo, o as TypeName, r as MethodSignature, t as Declaration } from "../http-fOPCX17A.js";
19
+
20
+ export { Declaration, MethodInfo, MethodSignature, Property, Type, TypeName };
@@ -0,0 +1,12 @@
1
+ import "../primitives-MsH-h0bU.js";
2
+ import "../breadcrumbs-BhYwbXkc.js";
3
+ import "../method-BzkPRXGL.js";
4
+ import "../properties-Bynmj9_H.js";
5
+ import "../sdk-GMOw94wL.js";
6
+ import "../snippets-CQQSDvg2.js";
7
+ import "../overview-Cui1XtuC.js";
8
+ import "../sdk-sidebar-VNY2-O1Y.js";
9
+ import "../stl-sidebar-CXzs_shz.js";
10
+ import "../index-D7PkxNgB.js";
11
+ import { E as cli_d_exports, F as csharp_d_exports, G as http_d_exports, Lt as typescript_d_exports, Ot as java_d_exports, _ as terraform_d_exports, a as node, et as ruby_d_exports, i as kotlin, lt as python_d_exports, n as PropertyFn, t as LanguageComponentDefinition, yt as go_d_exports } from "../index-DIaM6Ync.js";
12
+ export { LanguageComponentDefinition, PropertyFn, cli_d_exports as cli, csharp_d_exports as csharp, go_d_exports as go, http_d_exports as http, java_d_exports as java, kotlin, node, python_d_exports as python, ruby_d_exports as ruby, terraform_d_exports as terraform, typescript_d_exports as typescript };
@@ -0,0 +1,29 @@
1
+ import "../docs-BmOB2f-I.js";
2
+ import "../component-generics-POFirVVb.js";
3
+ import "../navigation-aoYZ_tl4.js";
4
+ import "../markdown-CTKHMLVr.js";
5
+ import "../contexts-CVj20VV4.js";
6
+ import "../use-components-BUz3GbO4.js";
7
+ import "../properties-BnbBKd5a.js";
8
+ import "../method-BPDUyBlD.js";
9
+ import "../primitives-DJEqe_r1.js";
10
+ import "../icons-BYKn5X8E.js";
11
+ import "../sdk-Bw99eXxA.js";
12
+ import "../snippets-BehbU3rt.js";
13
+ import "../overview-DFwfIK6k.js";
14
+ import "../breadcrumbs-DA4WgDhR.js";
15
+ import "../stl-sidebar-WtimNrk1.js";
16
+ import "../sdk-sidebar-V_MTkVw8.js";
17
+ import "../components-w1JmIrB0.js";
18
+ import { o as typescript_exports } from "../typescript-n46M9OtL.js";
19
+ import { o as java_exports } from "../java-CxGSJVvv.js";
20
+ import { o as go_exports } from "../go-COaHV3Hc.js";
21
+ import { o as python_exports } from "../python-DsTuWCKE.js";
22
+ import { o as ruby_exports } from "../ruby-BncKp6hd.js";
23
+ import { s as http_exports } from "../http-fOPCX17A.js";
24
+ import { o as csharp_exports } from "../csharp-D6_jlynY.js";
25
+ import { o as cli_exports } from "../cli-F3kMmeoJ.js";
26
+ import { c as terraform_exports } from "../terraform-B95X4rNK.js";
27
+ import { r as node, t as kotlin } from "../languages-B6eap2M6.js";
28
+
29
+ export { cli_exports as cli, csharp_exports as csharp, go_exports as go, http_exports as http, java_exports as java, kotlin, node, python_exports as python, ruby_exports as ruby, terraform_exports as terraform, typescript_exports as typescript };
@@ -0,0 +1,12 @@
1
+ import "../primitives-MsH-h0bU.js";
2
+ import "../breadcrumbs-BhYwbXkc.js";
3
+ import "../method-BzkPRXGL.js";
4
+ import "../properties-Bynmj9_H.js";
5
+ import "../sdk-GMOw94wL.js";
6
+ import "../snippets-CQQSDvg2.js";
7
+ import "../overview-Cui1XtuC.js";
8
+ import "../sdk-sidebar-VNY2-O1Y.js";
9
+ import "../stl-sidebar-CXzs_shz.js";
10
+ import "../index-D7PkxNgB.js";
11
+ import { Ct as MethodSignatureProps, Dt as TypeName, Et as Type, St as MethodSignature, Tt as PropertyProps, bt as Declaration, wt as Property, xt as DeclarationProps } from "../index-DIaM6Ync.js";
12
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -0,0 +1,9 @@
1
+ import "../docs-BmOB2f-I.js";
2
+ import "../component-generics-POFirVVb.js";
3
+ import "../navigation-aoYZ_tl4.js";
4
+ import "../markdown-CTKHMLVr.js";
5
+ import "../contexts-CVj20VV4.js";
6
+ import "../use-components-BUz3GbO4.js";
7
+ import { a as TypeName, i as Type, n as MethodSignature, r as Property, t as Declaration } from "../java-CxGSJVvv.js";
8
+
9
+ export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -0,0 +1,12 @@
1
+ import "../primitives-MsH-h0bU.js";
2
+ import "../breadcrumbs-BhYwbXkc.js";
3
+ import "../method-BzkPRXGL.js";
4
+ import "../properties-Bynmj9_H.js";
5
+ import "../sdk-GMOw94wL.js";
6
+ import "../snippets-CQQSDvg2.js";
7
+ import "../overview-Cui1XtuC.js";
8
+ import "../sdk-sidebar-VNY2-O1Y.js";
9
+ import "../stl-sidebar-CXzs_shz.js";
10
+ import "../index-D7PkxNgB.js";
11
+ import { at as Property, ct as TypeName, it as MethodSignatureProps, nt as DeclarationProps, ot as PropertyProps, rt as MethodSignature, st as Type, tt as Declaration } from "../index-DIaM6Ync.js";
12
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -0,0 +1,9 @@
1
+ import "../docs-BmOB2f-I.js";
2
+ import "../component-generics-POFirVVb.js";
3
+ import "../navigation-aoYZ_tl4.js";
4
+ import "../markdown-CTKHMLVr.js";
5
+ import "../contexts-CVj20VV4.js";
6
+ import "../use-components-BUz3GbO4.js";
7
+ import { a as TypeName, i as Type, n as MethodSignature, r as Property, t as Declaration } from "../python-DsTuWCKE.js";
8
+
9
+ export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -0,0 +1,12 @@
1
+ import "../primitives-MsH-h0bU.js";
2
+ import "../breadcrumbs-BhYwbXkc.js";
3
+ import "../method-BzkPRXGL.js";
4
+ import "../properties-Bynmj9_H.js";
5
+ import "../sdk-GMOw94wL.js";
6
+ import "../snippets-CQQSDvg2.js";
7
+ import "../overview-Cui1XtuC.js";
8
+ import "../sdk-sidebar-VNY2-O1Y.js";
9
+ import "../stl-sidebar-CXzs_shz.js";
10
+ import "../index-D7PkxNgB.js";
11
+ import { $ as TypeName, J as MethodSignature, K as Declaration, Q as Type, X as Property, Y as MethodSignatureProps, Z as PropertyProps, q as DeclarationProps } from "../index-DIaM6Ync.js";
12
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -0,0 +1,9 @@
1
+ import "../docs-BmOB2f-I.js";
2
+ import "../component-generics-POFirVVb.js";
3
+ import "../navigation-aoYZ_tl4.js";
4
+ import "../markdown-CTKHMLVr.js";
5
+ import "../contexts-CVj20VV4.js";
6
+ import "../use-components-BUz3GbO4.js";
7
+ import { a as TypeName, i as Type, n as MethodSignature, r as Property, t as Declaration } from "../ruby-BncKp6hd.js";
8
+
9
+ export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -0,0 +1,12 @@
1
+ import "../primitives-MsH-h0bU.js";
2
+ import "../breadcrumbs-BhYwbXkc.js";
3
+ import "../method-BzkPRXGL.js";
4
+ import "../properties-Bynmj9_H.js";
5
+ import "../sdk-GMOw94wL.js";
6
+ import "../snippets-CQQSDvg2.js";
7
+ import "../overview-Cui1XtuC.js";
8
+ import "../sdk-sidebar-VNY2-O1Y.js";
9
+ import "../stl-sidebar-CXzs_shz.js";
10
+ import "../index-D7PkxNgB.js";
11
+ import { c as MethodSignature, d as Resource, f as ResourceProps, g as TypeProps, h as TypeName, l as Property, m as Type, o as Declaration, p as TerraformSource, s as DeclarationProps, u as PropertyProps } from "../index-DIaM6Ync.js";
12
+ export { Declaration, DeclarationProps, MethodSignature, Property, PropertyProps, Resource, ResourceProps, TerraformSource, Type, TypeName, TypeProps };
@@ -0,0 +1,9 @@
1
+ import "../docs-BmOB2f-I.js";
2
+ import "../component-generics-POFirVVb.js";
3
+ import "../navigation-aoYZ_tl4.js";
4
+ import "../markdown-CTKHMLVr.js";
5
+ import "../contexts-CVj20VV4.js";
6
+ import "../use-components-BUz3GbO4.js";
7
+ import { a as TerraformSource, i as Resource, n as MethodSignature, o as Type, r as Property, s as TypeName, t as Declaration } from "../terraform-B95X4rNK.js";
8
+
9
+ export { Declaration, MethodSignature, Property, Resource, TerraformSource, Type, TypeName };