@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,25 @@
1
+ import { _ as Spec } from "./index-CwjGm9zX.js";
2
+ import * as react_jsx_runtime98 from "react/jsx-runtime";
3
+
4
+ //#region src/components/breadcrumbs.d.ts
5
+ type Breadcrumb = {
6
+ title: string;
7
+ href: string;
8
+ };
9
+ type BreadcrumbConfig = {
10
+ includeCurrentPage?: boolean;
11
+ };
12
+ declare function generateApiBreadcrumbs(fullPath: string, spec: any, basePath: string): Breadcrumb[] | null;
13
+ declare function SDKBreadcrumbs({
14
+ spec,
15
+ currentPath,
16
+ basePath,
17
+ config
18
+ }: {
19
+ spec: Spec;
20
+ currentPath: string;
21
+ basePath?: string;
22
+ config?: BreadcrumbConfig | null;
23
+ }): react_jsx_runtime98.JSX.Element | null;
24
+ //#endregion
25
+ export { generateApiBreadcrumbs as n, SDKBreadcrumbs as t };
@@ -0,0 +1,25 @@
1
+ import { _ as Spec } from "./index-CwjGm9zX.js";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/components/breadcrumbs.d.ts
5
+ type Breadcrumb = {
6
+ title: string;
7
+ href: string;
8
+ };
9
+ type BreadcrumbConfig = {
10
+ includeCurrentPage?: boolean;
11
+ };
12
+ declare function generateApiBreadcrumbs(fullPath: string, spec: any, basePath: string): Breadcrumb[] | null;
13
+ declare function SDKBreadcrumbs({
14
+ spec,
15
+ currentPath,
16
+ basePath,
17
+ config
18
+ }: {
19
+ spec: Spec;
20
+ currentPath: string;
21
+ basePath?: string;
22
+ config?: BreadcrumbConfig | null;
23
+ }): react_jsx_runtime0.JSX.Element | null;
24
+ //#endregion
25
+ export { generateApiBreadcrumbs as n, SDKBreadcrumbs as t };
@@ -0,0 +1,63 @@
1
+ import { t as style_default } from "./style-HpXpcJ9v.js";
2
+ import { n as Languages } from "./routing-C64k4fmX.js";
3
+ import { i as Join } from "./primitives-DJEqe_r1.js";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { ChevronRight } from "lucide-react";
6
+
7
+ //#region src/components/breadcrumbs.tsx
8
+ function generateApiBreadcrumbs(fullPath, spec, basePath) {
9
+ const cleanBasePath = basePath.replace(/\/+$/, "");
10
+ const cleanPath = fullPath.replace(/\/+$/, "");
11
+ if (!cleanPath.startsWith(cleanBasePath)) return null;
12
+ const rest = cleanPath.slice(cleanBasePath.length).split("/").filter(Boolean);
13
+ const breadcrumbs = [];
14
+ let href = cleanBasePath;
15
+ let i = 0;
16
+ if (Languages.includes(rest[0])) {
17
+ href += `/${rest[0]}`;
18
+ i++;
19
+ }
20
+ breadcrumbs.push({
21
+ title: "API Reference",
22
+ href
23
+ });
24
+ let currentSpec = spec;
25
+ while (i < rest.length) {
26
+ const idType = rest[i];
27
+ const idValue = rest[i + 1];
28
+ if (!idType || !idValue || !currentSpec?.[idType]?.[idValue]) break;
29
+ currentSpec = currentSpec[idType][idValue];
30
+ href += `/${idType}/${idValue}`;
31
+ const title = (idType === "methods" ? currentSpec.summary : currentSpec.title) ?? idValue;
32
+ breadcrumbs.push({
33
+ title,
34
+ href
35
+ });
36
+ i += 2;
37
+ }
38
+ return breadcrumbs;
39
+ }
40
+ function SDKBreadcrumbs({ spec, currentPath, basePath = "/api", config = { includeCurrentPage: false } }) {
41
+ const breadcrumbs = generateApiBreadcrumbs(currentPath, spec, basePath);
42
+ if (!breadcrumbs || breadcrumbs.length === 0) return null;
43
+ if (!config?.includeCurrentPage && breadcrumbs.length > 1) breadcrumbs.pop();
44
+ const items = breadcrumbs.map((crumb, index) => /* @__PURE__ */ jsx("div", {
45
+ className: style_default.BreadcrumbsItem,
46
+ children: /* @__PURE__ */ jsx("a", {
47
+ href: crumb.href,
48
+ className: style_default.BreadcrumbsLink,
49
+ children: crumb.title
50
+ })
51
+ }, index));
52
+ return /* @__PURE__ */ jsx("div", {
53
+ className: style_default.Breadcrumbs,
54
+ children: /* @__PURE__ */ jsx(Join, {
55
+ limit: breadcrumbs.length,
56
+ items,
57
+ children: /* @__PURE__ */ jsx(ChevronRight, {})
58
+ })
59
+ });
60
+ }
61
+
62
+ //#endregion
63
+ export { generateApiBreadcrumbs as n, SDKBreadcrumbs as t };
@@ -0,0 +1,18 @@
1
+ //#region rolldown:runtime
2
+ var __defProp = Object.defineProperty;
3
+ var __exportAll = (all, symbols) => {
4
+ let target = {};
5
+ for (var name in all) {
6
+ __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ }
11
+ if (symbols) {
12
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
13
+ }
14
+ return target;
15
+ };
16
+
17
+ //#endregion
18
+ export { __exportAll as t };
@@ -0,0 +1,166 @@
1
+ import { t as __exportAll } from "./chunk-BN_g-Awi.js";
2
+ import { n as useLanguageComponents } from "./contexts-CVj20VV4.js";
3
+ import { t as useComponents } from "./use-components-BUz3GbO4.js";
4
+ import { t as style_default } from "./style-HpXpcJ9v.js";
5
+ import { a as Type$1, o as TypeName$1 } from "./http-fOPCX17A.js";
6
+ import React from "react";
7
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
+
9
+ //#region src/languages/cli.tsx
10
+ var cli_exports = /* @__PURE__ */ __exportAll({
11
+ Declaration: () => Declaration,
12
+ MethodSignature: () => MethodSignature,
13
+ Property: () => Property,
14
+ Type: () => Type,
15
+ TypeName: () => TypeName
16
+ });
17
+ const ComplexTypes = {
18
+ HttpTypeUnion: "union",
19
+ HttpTypeIntersection: "intersection"
20
+ };
21
+ const constStyle = {
22
+ string: style_default.LiteralString,
23
+ number: style_default.LiteralNumeric,
24
+ boolean: style_default.LiteralBoolean
25
+ };
26
+ function TypeName(props) {
27
+ return TypeName$1(props);
28
+ }
29
+ function Type({ type }) {
30
+ switch (type.kind) {
31
+ case "HttpTypeBinary": return /* @__PURE__ */ jsx("span", {
32
+ className: style_default.Type,
33
+ children: /* @__PURE__ */ jsx("span", {
34
+ className: style_default.TypePlain,
35
+ children: "file path"
36
+ })
37
+ });
38
+ default: return Type$1({ type });
39
+ }
40
+ }
41
+ function MethodSignature({ decl }) {
42
+ const { Join } = useComponents();
43
+ const params = decl.arguments?.map((arg, i) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
44
+ /* @__PURE__ */ jsx("span", {
45
+ className: style_default.TextOperator,
46
+ children: "<"
47
+ }),
48
+ /* @__PURE__ */ jsx("span", {
49
+ className: style_default.TextIdentifier,
50
+ children: arg.value
51
+ }),
52
+ /* @__PURE__ */ jsx("span", {
53
+ className: style_default.TextOperator,
54
+ children: ">"
55
+ })
56
+ ] }, i));
57
+ return /* @__PURE__ */ jsxs("div", {
58
+ className: style_default.MethodSignature,
59
+ children: [
60
+ /* @__PURE__ */ jsx("span", {
61
+ className: style_default.TextOperator,
62
+ children: "$ "
63
+ }),
64
+ /* @__PURE__ */ jsx("span", {
65
+ className: style_default.SignatureName,
66
+ children: /* @__PURE__ */ jsx("span", {
67
+ className: style_default.TextIdentifier,
68
+ children: decl.invocation.join(" ")
69
+ })
70
+ }),
71
+ params && /* @__PURE__ */ jsxs("span", {
72
+ className: style_default.MethodSignature,
73
+ children: [" ", /* @__PURE__ */ jsx(Join, {
74
+ items: params,
75
+ children: " "
76
+ })]
77
+ }),
78
+ decl.options && decl.options.length > 0 ? /* @__PURE__ */ jsx("span", {
79
+ className: style_default.TextOperator,
80
+ children: " [options]"
81
+ }) : null
82
+ ]
83
+ });
84
+ }
85
+ function renderVariantInfo(type) {
86
+ if (type.kind === "HttpTypeUnion" && type.types.every((t) => t.kind === "HttpTypeObject" || t.kind === "HttpTypeReference")) return /* @__PURE__ */ jsxs(Fragment$1, { children: [
87
+ "One of the following ",
88
+ type.types.length,
89
+ " object variants:"
90
+ ] });
91
+ }
92
+ function Property({ decl, children }) {
93
+ const Lang = useLanguageComponents();
94
+ if (!decl) return;
95
+ switch (decl.kind) {
96
+ case "CLIFlag":
97
+ case "CLISchemaProperty": {
98
+ const variants = decl.type ? renderVariantInfo(decl.type) : void 0;
99
+ return children({
100
+ name: /* @__PURE__ */ jsxs(Fragment$1, { children: [decl.kind === "CLIFlag" && "--", flagName(decl)] }),
101
+ typeName: decl.type ? /* @__PURE__ */ jsx(Lang.TypeName, { type: decl.type }) : void 0,
102
+ type: decl.type && decl.type.kind in ComplexTypes && !variants && /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
103
+ });
104
+ }
105
+ case "CLIFunction": return children({
106
+ name: decl.name,
107
+ typeName: "function"
108
+ });
109
+ case "CLIStdin": return children({ name: "stdin" });
110
+ case "CLICommand": return children({
111
+ name: decl.invocation.join(" "),
112
+ typeName: "command"
113
+ });
114
+ }
115
+ }
116
+ function flagName(node) {
117
+ if (node.kind === "CLIFlag" && node.flag) return typeof node.flag === "string" ? node.flag : node.flag.name || "";
118
+ return node.name ?? node.ident ?? "unknown";
119
+ }
120
+ function Declaration({ decl }) {
121
+ const Lang = useLanguageComponents();
122
+ if (!decl) return;
123
+ switch (decl.kind) {
124
+ case "CLICommand": return /* @__PURE__ */ jsx("span", {
125
+ className: style_default.TextIdentifier,
126
+ children: `$ ${decl.invocation.join(" ")}`
127
+ });
128
+ case "CLISchemaProperty":
129
+ case "CLIFlag":
130
+ if ("value" in decl) return /* @__PURE__ */ jsx("span", {
131
+ className: constStyle[typeof decl.value],
132
+ children: JSON.stringify(decl.value)
133
+ });
134
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
135
+ className: style_default.PropertyName,
136
+ children: /* @__PURE__ */ jsxs("span", {
137
+ className: style_default.TextIdentifier,
138
+ children: [decl.kind === "CLIFlag" && "--", flagName(decl)]
139
+ })
140
+ }), decl.type && /* @__PURE__ */ jsxs(Fragment$1, { children: [
141
+ /* @__PURE__ */ jsx("span", {
142
+ className: style_default.TextPunctuation,
143
+ children: ": "
144
+ }),
145
+ decl.optional && /* @__PURE__ */ jsx("span", {
146
+ className: style_default.TextPunctuation,
147
+ children: "optional "
148
+ }),
149
+ typeof decl.type === "string" ? /* @__PURE__ */ jsx("span", {
150
+ className: style_default.TextKeyword,
151
+ children: decl.type
152
+ }) : /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
153
+ ] })] });
154
+ case "CLIFunction": return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsxs("span", {
155
+ className: style_default.TextIdentifier,
156
+ children: [decl.name, "()"]
157
+ }) });
158
+ case "CLIStdin": return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx("span", {
159
+ className: style_default.TextIdentifier,
160
+ children: "stdin"
161
+ }) });
162
+ }
163
+ }
164
+
165
+ //#endregion
166
+ export { TypeName as a, Type as i, MethodSignature as n, cli_exports as o, Property as r, Declaration as t };
@@ -0,0 +1,23 @@
1
+ import { n as customizeComponents, t as ComponentProvider$1 } from "./component-generics-POFirVVb.js";
2
+ import { t as components_exports } from "./components-w1JmIrB0.js";
3
+ import { n as languages_exports } from "./languages-B6eap2M6.js";
4
+ import React from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+
7
+ //#region src/contexts/component.tsx
8
+ const defaultContextValue = {
9
+ components: components_exports,
10
+ language: languages_exports
11
+ };
12
+ function ComponentProvider({ components, language, children }) {
13
+ return /* @__PURE__ */ jsx(ComponentProvider$1, {
14
+ value: React.useMemo(() => customizeComponents(defaultContextValue, {
15
+ components,
16
+ language
17
+ }), [components, language]),
18
+ children
19
+ });
20
+ }
21
+
22
+ //#endregion
23
+ export { defaultContextValue as n, ComponentProvider as t };
@@ -0,0 +1,30 @@
1
+ import * as React$1 from "react";
2
+ import * as react_jsx_runtime44 from "react/jsx-runtime";
3
+
4
+ //#region src/contexts/component-generics.d.ts
5
+ type DeepPartialMap<L> = { [K in keyof L]?: Partial<L[K]> };
6
+ type ComponentsContextType<C, L> = {
7
+ components: C;
8
+ language: L;
9
+ };
10
+ declare const useComponentContext: () => ComponentsContextType<any, any>;
11
+ declare function useComponents<C = unknown>(): C;
12
+ declare function customizeComponents<C, L>(defaults: {
13
+ components: C;
14
+ language: L;
15
+ }, overrides?: {
16
+ components?: Partial<C>;
17
+ language?: DeepPartialMap<L>;
18
+ }): {
19
+ components: C;
20
+ language: L;
21
+ };
22
+ declare function ComponentProvider<C, L>({
23
+ value,
24
+ children
25
+ }: {
26
+ value: ComponentsContextType<C, L>;
27
+ children: React$1.ReactNode;
28
+ }): react_jsx_runtime44.JSX.Element;
29
+ //#endregion
30
+ export { useComponents as a, useComponentContext as i, ComponentsContextType as n, customizeComponents as r, ComponentProvider as t };
@@ -0,0 +1,45 @@
1
+ import React from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
+
4
+ //#region src/hooks/use-strict-context.tsx
5
+ function createStrictContext(displayName) {
6
+ const Context = React.createContext(null);
7
+ Context.displayName = displayName;
8
+ function useStrictContext() {
9
+ const context = React.useContext(Context);
10
+ if (context === null) throw new Error(`use${displayName} must be used within a ${displayName}Provider`);
11
+ return context;
12
+ }
13
+ return [Context.Provider, useStrictContext];
14
+ }
15
+
16
+ //#endregion
17
+ //#region src/contexts/component-generics.tsx
18
+ const [Provider, useComponentContext] = createStrictContext("Component");
19
+ function useComponents() {
20
+ return useComponentContext().components;
21
+ }
22
+ function customizeComponents(defaults, overrides = {}) {
23
+ return {
24
+ components: {
25
+ ...defaults.components,
26
+ ...overrides.components ?? {}
27
+ },
28
+ language: Object.keys(defaults.language).reduce((acc, key) => {
29
+ acc[key] = {
30
+ ...defaults.language[key],
31
+ ...overrides.language?.[key] ?? {}
32
+ };
33
+ return acc;
34
+ }, {})
35
+ };
36
+ }
37
+ function ComponentProvider({ value, children }) {
38
+ return /* @__PURE__ */ jsx(Provider, {
39
+ value,
40
+ children
41
+ });
42
+ }
43
+
44
+ //#endregion
45
+ export { useComponents as i, customizeComponents as n, useComponentContext as r, ComponentProvider as t };
@@ -0,0 +1,30 @@
1
+ import * as React$1 from "react";
2
+ import * as react_jsx_runtime61 from "react/jsx-runtime";
3
+
4
+ //#region src/contexts/component-generics.d.ts
5
+ type DeepPartialMap<L> = { [K in keyof L]?: Partial<L[K]> };
6
+ type ComponentsContextType<C, L> = {
7
+ components: C;
8
+ language: L;
9
+ };
10
+ declare const useComponentContext: () => ComponentsContextType<any, any>;
11
+ declare function useComponents<C = unknown>(): C;
12
+ declare function customizeComponents<C, L>(defaults: {
13
+ components: C;
14
+ language: L;
15
+ }, overrides?: {
16
+ components?: Partial<C>;
17
+ language?: DeepPartialMap<L>;
18
+ }): {
19
+ components: C;
20
+ language: L;
21
+ };
22
+ declare function ComponentProvider<C, L>({
23
+ value,
24
+ children
25
+ }: {
26
+ value: ComponentsContextType<C, L>;
27
+ children: React$1.ReactNode;
28
+ }): react_jsx_runtime61.JSX.Element;
29
+ //#endregion
30
+ export { useComponents as a, useComponentContext as i, ComponentsContextType as n, customizeComponents as r, ComponentProvider as t };
@@ -0,0 +1,14 @@
1
+ import { i as InputProps } from "../primitives-MsH-h0bU.js";
2
+ import * as react_jsx_runtime82 from "react/jsx-runtime";
3
+
4
+ //#region src/components/MaskedInput.d.ts
5
+ declare const MaskedInput: ({
6
+ left,
7
+ right,
8
+ defaultValue,
9
+ value,
10
+ ref,
11
+ ...props
12
+ }: InputProps) => react_jsx_runtime82.JSX.Element;
13
+ //#endregion
14
+ export { MaskedInput };
@@ -0,0 +1,76 @@
1
+ import { t as style_default } from "../style-HpXpcJ9v.js";
2
+ import * as React$1 from "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+
5
+ //#region src/components/MaskedInput.tsx
6
+ const getMaskedParts = (text) => {
7
+ if (!text) return {
8
+ prefix: "",
9
+ maskedSecret: ""
10
+ };
11
+ const percentLength = Math.min(Math.floor(text.length * .3), 8);
12
+ const nonAlphaMatches = [...text.substring(0, percentLength).matchAll(/[^a-zA-Z0-9]/g)];
13
+ let prefixEnd = 0;
14
+ if (nonAlphaMatches.length > 0) prefixEnd = nonAlphaMatches.at(-1).index + 1;
15
+ else prefixEnd = percentLength;
16
+ return {
17
+ prefix: text.substring(0, prefixEnd),
18
+ maskedSecret: "•".repeat(text.length - prefixEnd)
19
+ };
20
+ };
21
+ const MaskedInput = function Input({ left, right, defaultValue, value, ref, ...props }) {
22
+ const initialValue = (value ?? defaultValue ?? "").toString();
23
+ const [displayValue, setDisplayValue] = React$1.useState(initialValue);
24
+ const inputRef = React$1.useRef(null);
25
+ React$1.useImperativeHandle(ref, () => inputRef.current);
26
+ const updateDisplayValue = () => {
27
+ if (inputRef.current) setDisplayValue(inputRef.current.value);
28
+ };
29
+ const handleBlur = (e) => {
30
+ updateDisplayValue();
31
+ inputRef.current?.scrollTo({
32
+ behavior: "instant",
33
+ left: 0,
34
+ top: 0
35
+ });
36
+ props.onBlur?.(e);
37
+ };
38
+ const { prefix, maskedSecret } = getMaskedParts(displayValue);
39
+ return /* @__PURE__ */ jsxs("div", {
40
+ className: style_default.Input,
41
+ children: [
42
+ left,
43
+ /* @__PURE__ */ jsxs("div", {
44
+ className: style_default.MaskedInputWrapper,
45
+ children: [/* @__PURE__ */ jsx("input", {
46
+ ...props,
47
+ ref: inputRef,
48
+ defaultValue,
49
+ value,
50
+ onBlur: handleBlur,
51
+ onScroll: (e) => {
52
+ if (!e.currentTarget.matches(":focus")) {
53
+ e.preventDefault();
54
+ inputRef.current?.scrollTo({
55
+ behavior: "instant",
56
+ left: 0,
57
+ top: 0
58
+ });
59
+ }
60
+ }
61
+ }), /* @__PURE__ */ jsxs("div", {
62
+ className: style_default.MaskedInputDisplay,
63
+ "aria-hidden": "true",
64
+ children: [prefix, /* @__PURE__ */ jsx("span", {
65
+ className: style_default.MaskedInputObscured,
66
+ children: maskedSecret
67
+ })]
68
+ })]
69
+ }),
70
+ right
71
+ ]
72
+ });
73
+ };
74
+
75
+ //#endregion
76
+ export { MaskedInput };
@@ -0,0 +1,2 @@
1
+ import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "../breadcrumbs-BhYwbXkc.js";
2
+ export { SDKBreadcrumbs, generateApiBreadcrumbs };
@@ -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 "../primitives-DJEqe_r1.js";
7
+ import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "../breadcrumbs-DA4WgDhR.js";
8
+
9
+ export { SDKBreadcrumbs, generateApiBreadcrumbs };
@@ -0,0 +1,60 @@
1
+ import * as react_jsx_runtime87 from "react/jsx-runtime";
2
+
3
+ //#region src/components/icons.d.ts
4
+ declare function CSharpIcon({
5
+ className
6
+ }: {
7
+ className?: string;
8
+ }): react_jsx_runtime87.JSX.Element;
9
+ declare function GoIcon({
10
+ className
11
+ }: {
12
+ className?: string;
13
+ }): react_jsx_runtime87.JSX.Element;
14
+ declare function JavaIcon({
15
+ className
16
+ }: {
17
+ className?: string;
18
+ }): react_jsx_runtime87.JSX.Element;
19
+ declare function KotlinIcon({
20
+ className
21
+ }: {
22
+ className?: string;
23
+ }): react_jsx_runtime87.JSX.Element;
24
+ declare function PythonIcon({
25
+ className
26
+ }: {
27
+ className?: string;
28
+ }): react_jsx_runtime87.JSX.Element;
29
+ declare function RubyIcon({
30
+ className
31
+ }: {
32
+ className?: string;
33
+ }): react_jsx_runtime87.JSX.Element;
34
+ declare function TerraformIcon({
35
+ className
36
+ }: {
37
+ className?: string;
38
+ }): react_jsx_runtime87.JSX.Element;
39
+ declare function TypescriptIcon({
40
+ className
41
+ }: {
42
+ className?: string;
43
+ }): react_jsx_runtime87.JSX.Element;
44
+ declare function CurlIcon({
45
+ className
46
+ }: {
47
+ className?: string;
48
+ }): react_jsx_runtime87.JSX.Element;
49
+ declare function PowershellIcon({
50
+ className
51
+ }: {
52
+ className?: string;
53
+ }): react_jsx_runtime87.JSX.Element;
54
+ declare function CLIIcon({
55
+ className
56
+ }: {
57
+ className?: string;
58
+ }): react_jsx_runtime87.JSX.Element;
59
+ //#endregion
60
+ export { CLIIcon, CSharpIcon, CurlIcon, GoIcon, JavaIcon, KotlinIcon, PowershellIcon, PythonIcon, RubyIcon, TerraformIcon, TypescriptIcon };
@@ -0,0 +1,3 @@
1
+ import { a as JavaIcon, c as PythonIcon, d as TypescriptIcon, i as GoIcon, l as RubyIcon, n as CSharpIcon, o as KotlinIcon, r as CurlIcon, s as PowershellIcon, t as CLIIcon, u as TerraformIcon } from "../icons-BYKn5X8E.js";
2
+
3
+ export { CLIIcon, CSharpIcon, CurlIcon, GoIcon, JavaIcon, KotlinIcon, PowershellIcon, PythonIcon, RubyIcon, TerraformIcon, TypescriptIcon };
@@ -0,0 +1,11 @@
1
+ import { a as Join, c as ListViewProps, d as ToggleButtonProps, f as Tooltip, i as InputProps, l as Markdown, n as Expander, o as Link, p as VirtualExpander, r as Input, s as ListView, t as Badge, u as ToggleButton } from "../primitives-MsH-h0bU.js";
2
+ import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "../breadcrumbs-BhYwbXkc.js";
3
+ import { a as MethodHeaderProps, c as MethodProps, i as MethodHeader, l as MethodRoute, n as MethodDescription, o as MethodInfo, r as MethodDescriptionProps, s as MethodInfoProps, t as Method, u as MethodRouteProps } from "../method-BzkPRXGL.js";
4
+ import { a as PropertyTitle, c as PropertyToggleProps, i as PropertyProps, n as PropertyDescription, o as PropertyTitleProps, r as PropertyDescriptionProps, s as PropertyToggle, t as Property } from "../properties-Bynmj9_H.js";
5
+ import { C as SDKSnippetLanguagesType, D as useStreamingResponse, E as useReferenceNesting, S as SDKSnippetLanguages, T as usePropertyModel, _ as SDKModel, a as SDKChildren, b as SDKRequestTitle, c as SDKDeclaration, d as SDKLanguageBlock, f as SDKMethod, g as SDKMethodProps, h as SDKMethodNotImplemented, i as ReferenceNestingContextType, l as SDKExample, m as SDKMethodInfo, n as PropertyModelContextType, o as SDKConstraints, p as SDKMethodHeader, r as ReferenceNestingContext, s as SDKConstraintsProps, t as PropertyModelContext, u as SDKIcon, v as SDKModelProps, w as TransformRequestSnippetFn, x as SDKRequestTitleProps, y as SDKReference } from "../sdk-GMOw94wL.js";
6
+ import { a as SnippetContainer, c as SnippetProps, d as SnippetResponse, i as SnippetCodeProps, l as SnippetRequestContainer, n as SnippetButtons, o as SnippetContainerProps, r as SnippetCode, s as SnippetFooter, t as Snippet, u as SnippetRequestContainerProps } from "../snippets-CQQSDvg2.js";
7
+ import { a as SDKResource, c as SDKRoot, i as SDKOverviewProps, l as SDKRootProps, n as SDKMethodSummaryProps, o as SDKResourceHeader, r as SDKOverview, s as SDKResourceProps, t as SDKMethodSummary } from "../overview-Cui1XtuC.js";
8
+ import { n as SDKSidebarProps, t as SDKSidebar } from "../sdk-sidebar-VNY2-O1Y.js";
9
+ import { a as StlSidebarProps, i as StlSidebarLink, n as StlSidebarEntry, o as StlSidebarTarget, r as StlSidebarGroup, t as StlSidebar } from "../stl-sidebar-CXzs_shz.js";
10
+ import "../index-D7PkxNgB.js";
11
+ export { Badge, Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps, Property, PropertyDescription, PropertyDescriptionProps, PropertyModelContext, PropertyModelContextType, PropertyProps, PropertyTitle, PropertyTitleProps, PropertyToggle, PropertyToggleProps, ReferenceNestingContext, ReferenceNestingContextType, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodNotImplemented, SDKMethodProps, SDKMethodSummary, SDKMethodSummaryProps, SDKModel, SDKModelProps, SDKOverview, SDKOverviewProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps, SDKSidebar, SDKSidebarProps, SDKSnippetLanguages, SDKSnippetLanguagesType, Snippet, SnippetButtons, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetFooter, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, StlSidebar, StlSidebarEntry, StlSidebarGroup, StlSidebarLink, StlSidebarProps, StlSidebarTarget, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, generateApiBreadcrumbs, usePropertyModel, useReferenceNesting, useStreamingResponse };
@@ -0,0 +1,19 @@
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 { i as PropertyToggle, n as PropertyDescription, r as PropertyTitle, t as Property } from "../properties-BnbBKd5a.js";
8
+ import { a as MethodRoute, i as MethodInfo, n as MethodDescription, r as MethodHeader, t as Method } from "../method-BPDUyBlD.js";
9
+ import { a as Link, c as ToggleButton, i as Join, l as Tooltip, n as Expander, o as ListView, r as Input, s as Markdown, t as Badge, u as VirtualExpander } from "../primitives-DJEqe_r1.js";
10
+ import "../icons-BYKn5X8E.js";
11
+ import { _ as usePropertyModel, a as SDKDeclaration, c as SDKLanguageBlock, d as SDKMethodInfo, f as SDKMethodNotImplemented, g as SDKSnippetLanguages, h as SDKRequestTitle, i as SDKConstraints, l as SDKMethod, m as SDKReference, n as ReferenceNestingContext, o as SDKExample, p as SDKModel, r as SDKChildren, s as SDKIcon, t as PropertyModelContext, u as SDKMethodHeader, v as useReferenceNesting, y as useStreamingResponse } from "../sdk-Bw99eXxA.js";
12
+ import { a as SnippetFooter, i as SnippetContainer, n as SnippetButtons, o as SnippetRequestContainer, r as SnippetCode, s as SnippetResponse, t as Snippet } from "../snippets-BehbU3rt.js";
13
+ import { a as SDKRoot, i as SDKResourceHeader, n as SDKOverview, r as SDKResource, t as SDKMethodSummary } from "../overview-DFwfIK6k.js";
14
+ import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "../breadcrumbs-DA4WgDhR.js";
15
+ import { t as StlSidebar } from "../stl-sidebar-WtimNrk1.js";
16
+ import { t as SDKSidebar } from "../sdk-sidebar-V_MTkVw8.js";
17
+ import "../components-w1JmIrB0.js";
18
+
19
+ export { Badge, Expander, Input, Join, Link, ListView, Markdown, Method, MethodDescription, MethodHeader, MethodInfo, MethodRoute, Property, PropertyDescription, PropertyModelContext, PropertyTitle, PropertyToggle, ReferenceNestingContext, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodNotImplemented, SDKMethodSummary, SDKModel, SDKOverview, SDKReference, SDKRequestTitle, SDKResource, SDKResourceHeader, SDKRoot, SDKSidebar, SDKSnippetLanguages, Snippet, SnippetButtons, SnippetCode, SnippetContainer, SnippetFooter, SnippetRequestContainer, SnippetResponse, StlSidebar, ToggleButton, Tooltip, VirtualExpander, generateApiBreadcrumbs, usePropertyModel, useReferenceNesting, useStreamingResponse };
@@ -0,0 +1,2 @@
1
+ import { a as MethodHeaderProps, c as MethodProps, i as MethodHeader, l as MethodRoute, n as MethodDescription, o as MethodInfo, r as MethodDescriptionProps, s as MethodInfoProps, t as Method, u as MethodRouteProps } from "../method-BzkPRXGL.js";
2
+ export { Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps };
@@ -0,0 +1,10 @@
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 { a as MethodRoute, i as MethodInfo, n as MethodDescription, r as MethodHeader, t as Method } from "../method-BPDUyBlD.js";
9
+
10
+ export { Method, MethodDescription, MethodHeader, MethodInfo, MethodRoute };
@@ -0,0 +1,2 @@
1
+ import { a as SDKResource, c as SDKRoot, i as SDKOverviewProps, l as SDKRootProps, n as SDKMethodSummaryProps, o as SDKResourceHeader, r as SDKOverview, s as SDKResourceProps, t as SDKMethodSummary } from "../overview-Cui1XtuC.js";
2
+ export { SDKMethodSummary, SDKMethodSummaryProps, SDKOverview, SDKOverviewProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps };