@stainless-api/docs-ui 0.1.0-beta.6 → 0.1.0-beta.60

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 (206) hide show
  1. package/dist/breadcrumbs-85Y-pybq.js +63 -0
  2. package/dist/breadcrumbs-BagP1oN2.d.ts +25 -0
  3. package/dist/breadcrumbs-seA1JsK4.d.ts +25 -0
  4. package/dist/chunk-Du3t87LU.js +18 -0
  5. package/dist/cli-CoLvH9jq.js +157 -0
  6. package/dist/component-CF9lLzZX.js +23 -0
  7. package/dist/component-generics-BblkOh-y.d.ts +30 -0
  8. package/dist/component-generics-CmIGbBLq.js +45 -0
  9. package/dist/component-generics-DS5pysMb.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 +10 -0
  17. package/dist/components/index.js +18 -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.d.ts +2 -0
  27. package/dist/components/sdk.js +10 -0
  28. package/dist/components/sidebar.d.ts +2 -0
  29. package/dist/components/sidebar.js +9 -0
  30. package/dist/components/snippets.d.ts +3 -0
  31. package/dist/components/snippets.js +9 -0
  32. package/dist/components-Bz5h0Y4x.js +70 -0
  33. package/dist/contexts/component-generics.d.ts +2 -0
  34. package/dist/contexts/component-generics.js +3 -0
  35. package/dist/contexts/component-types.d.ts +16 -0
  36. package/dist/contexts/component-types.js +0 -0
  37. package/dist/contexts/component.d.ts +29 -0
  38. package/dist/contexts/component.js +28 -0
  39. package/dist/contexts/docs.d.ts +2 -0
  40. package/dist/contexts/docs.js +3 -0
  41. package/dist/contexts/index.d.ts +22 -0
  42. package/dist/contexts/index.js +7 -0
  43. package/dist/contexts/markdown.d.ts +2 -0
  44. package/dist/contexts/markdown.js +4 -0
  45. package/dist/contexts/navigation.d.ts +2 -0
  46. package/dist/contexts/navigation.js +3 -0
  47. package/dist/contexts/use-components.d.ts +14 -0
  48. package/dist/contexts/use-components.js +4 -0
  49. package/dist/contexts-DZfPd182.js +39 -0
  50. package/dist/csharp-BbNnLZWW.js +283 -0
  51. package/dist/docs-Bw-eLYjA.js +54 -0
  52. package/dist/docs-DFS6wkGm.d.ts +46 -0
  53. package/dist/docs-DdWB4Wsv.d.ts +46 -0
  54. package/dist/go-OFa_5xje.js +303 -0
  55. package/dist/http-olFAYLFq.js +331 -0
  56. package/dist/icons-DMkAA03z.js +885 -0
  57. package/dist/index-BdrPd64A.d.ts +302 -0
  58. package/dist/index-CLMudlDX.d.ts +302 -0
  59. package/dist/index-Ct7H30x1.d.ts +1691 -0
  60. package/dist/index-DTl8aUkb.d.ts +15 -0
  61. package/dist/index-Dp5biTf5.d.ts +15 -0
  62. package/dist/index.d.ts +19 -0
  63. package/dist/index.js +30 -7542
  64. package/dist/java-Bw0o13Wk.js +403 -0
  65. package/dist/languages/cli.d.ts +11 -0
  66. package/dist/languages/cli.js +20 -0
  67. package/dist/languages/csharp.d.ts +11 -0
  68. package/dist/languages/csharp.js +9 -0
  69. package/dist/languages/go.d.ts +11 -0
  70. package/dist/languages/go.js +9 -0
  71. package/dist/languages/http.d.ts +11 -0
  72. package/dist/languages/http.js +19 -0
  73. package/dist/languages/index.d.ts +11 -0
  74. package/dist/languages/index.js +27 -0
  75. package/dist/languages/java.d.ts +11 -0
  76. package/dist/languages/java.js +9 -0
  77. package/dist/languages/python.d.ts +11 -0
  78. package/dist/languages/python.js +9 -0
  79. package/dist/languages/ruby.d.ts +11 -0
  80. package/dist/languages/ruby.js +9 -0
  81. package/dist/languages/typescript.d.ts +11 -0
  82. package/dist/languages/typescript.js +9 -0
  83. package/dist/languages-DW_T-Th6.js +28 -0
  84. package/dist/markdown/index.d.ts +12 -0
  85. package/dist/markdown/index.js +105 -0
  86. package/dist/markdown/md.d.ts +15 -0
  87. package/dist/markdown/md.js +41 -0
  88. package/dist/markdown/printer.d.ts +13 -0
  89. package/dist/markdown/printer.js +98 -0
  90. package/dist/markdown/utils.d.ts +21 -0
  91. package/dist/markdown/utils.js +31 -0
  92. package/dist/markdown-DtbgEdDt.d.ts +22 -0
  93. package/dist/markdown-Dyn0NA2f.d.ts +22 -0
  94. package/dist/markdown-ZzVcn4kq.js +49 -0
  95. package/dist/method-C850sHPB.d.ts +59 -0
  96. package/dist/method-CxjUvijp.d.ts +59 -0
  97. package/dist/method-Dktsfckf.js +90 -0
  98. package/dist/navigation-By1sQl6M.js +24 -0
  99. package/dist/navigation-DLQvobDt.d.ts +29 -0
  100. package/dist/navigation-Dk55c7au.d.ts +29 -0
  101. package/dist/overview-DVu-9kpm.d.ts +39 -0
  102. package/dist/overview-EkRigi6e.js +139 -0
  103. package/dist/overview-rRsC-Yi_.d.ts +39 -0
  104. package/dist/primitives-BVaiiY63.js +250 -0
  105. package/dist/primitives-DP-cTr1W.d.ts +105 -0
  106. package/dist/primitives-DR4XbZ2t.d.ts +105 -0
  107. package/dist/properties-BHvUHbcf.js +131 -0
  108. package/dist/properties-Ll927UYJ.d.ts +54 -0
  109. package/dist/properties-lx53LZPl.d.ts +54 -0
  110. package/dist/python-D8NWX7Cb.js +269 -0
  111. package/dist/routing-Fzn1XfX_.js +197 -0
  112. package/dist/routing-sjrF8U7O.d.ts +54 -0
  113. package/dist/routing.d.ts +2 -0
  114. package/dist/routing.js +3 -180
  115. package/dist/ruby-DOUaLhKJ.js +387 -0
  116. package/dist/sdk-DdW_-RBy.d.ts +118 -0
  117. package/dist/sdk-Dhu_gfzq.d.ts +118 -0
  118. package/dist/sdk-DrK2bq-v.js +338 -0
  119. package/dist/sidebar-BLGIKgRI.js +85 -0
  120. package/dist/sidebar-CUaX1IBW.d.ts +36 -0
  121. package/dist/sidebar-DukWbBrE.d.ts +36 -0
  122. package/dist/snippets-Bi0ZADmt.d.ts +53 -0
  123. package/dist/snippets-CocIZMn0.d.ts +53 -0
  124. package/dist/snippets-D4VhtZIC.js +164 -0
  125. package/dist/spec.d.ts +65 -0
  126. package/dist/spec.js +167 -0
  127. package/dist/style-TeAZuiHh.js +170 -0
  128. package/dist/style.d.ts +169 -0
  129. package/dist/style.js +3 -0
  130. package/dist/styles/main.css +722 -755
  131. package/dist/styles/main.js +0 -0
  132. package/dist/styles/primitives.css +322 -459
  133. package/dist/styles/primitives.js +0 -0
  134. package/dist/styles/resets.css +32 -41
  135. package/dist/styles/resets.js +0 -0
  136. package/dist/styles/search.css +192 -270
  137. package/dist/styles/search.js +0 -0
  138. package/dist/styles/sidebar.css +56 -61
  139. package/dist/styles/sidebar.js +0 -0
  140. package/dist/styles/variables.css +26 -89
  141. package/dist/styles/variables.js +0 -0
  142. package/dist/styles.css +3140 -0
  143. package/dist/styles.mjs +1 -0
  144. package/dist/typescript-DDa446mB.js +449 -0
  145. package/dist/use-components-Dbin0y07.js +7 -0
  146. package/dist/utils-BoRmEFRn.js +32 -0
  147. package/dist/utils.d.ts +14 -0
  148. package/dist/utils.js +3 -0
  149. package/package.json +73 -21
  150. package/dist/mcp.js +0 -16003
  151. package/dist/styles/snippets.css +0 -132
  152. package/src/components/breadcrumbs.tsx +0 -94
  153. package/src/components/chat.tsx +0 -154
  154. package/src/components/dropdown.tsx +0 -91
  155. package/src/components/icons.tsx +0 -584
  156. package/src/components/index.ts +0 -9
  157. package/src/components/method.tsx +0 -144
  158. package/src/components/overview.tsx +0 -159
  159. package/src/components/primitives.tsx +0 -284
  160. package/src/components/properties.tsx +0 -130
  161. package/src/components/scripts/dropdown.ts +0 -78
  162. package/src/components/sdk.tsx +0 -402
  163. package/src/components/sidebar.tsx +0 -99
  164. package/src/components/snippets.tsx +0 -179
  165. package/src/contexts/component-generics.tsx +0 -48
  166. package/src/contexts/component-types.tsx +0 -5
  167. package/src/contexts/component.tsx +0 -32
  168. package/src/contexts/docs.tsx +0 -75
  169. package/src/contexts/index.tsx +0 -17
  170. package/src/contexts/markdown.tsx +0 -43
  171. package/src/contexts/navigation.tsx +0 -44
  172. package/src/contexts/search.tsx +0 -28
  173. package/src/contexts/use-components.tsx +0 -4
  174. package/src/index.ts +0 -6
  175. package/src/languages/go.tsx +0 -281
  176. package/src/languages/http.tsx +0 -321
  177. package/src/languages/index.ts +0 -26
  178. package/src/languages/java.tsx +0 -358
  179. package/src/languages/python.tsx +0 -255
  180. package/src/languages/ruby.tsx +0 -320
  181. package/src/languages/typescript.tsx +0 -393
  182. package/src/markdown/index.ts +0 -107
  183. package/src/markdown/md.ts +0 -45
  184. package/src/markdown/utils.ts +0 -49
  185. package/src/routing.ts +0 -238
  186. package/src/search/form.tsx +0 -127
  187. package/src/search/index.tsx +0 -1
  188. package/src/search/indexer.ts +0 -246
  189. package/src/search/mcp.ts +0 -61
  190. package/src/search/printer.tsx +0 -86
  191. package/src/search/providers/algolia.ts +0 -88
  192. package/src/search/providers/fuse.ts +0 -19
  193. package/src/search/providers/pagefind.ts +0 -17
  194. package/src/search/providers/walker.ts +0 -30
  195. package/src/search/results.tsx +0 -181
  196. package/src/search/state.ts +0 -64
  197. package/src/search/types.ts +0 -116
  198. package/src/style.ts +0 -197
  199. package/src/styles/main.css +0 -993
  200. package/src/styles/primitives.css +0 -573
  201. package/src/styles/resets.css +0 -47
  202. package/src/styles/search.css +0 -342
  203. package/src/styles/sidebar.css +0 -87
  204. package/src/styles/snippets.css +0 -132
  205. package/src/styles/variables.css +0 -90
  206. package/src/utils.ts +0 -41
@@ -0,0 +1,63 @@
1
+ import { t as style_default } from "./style-TeAZuiHh.js";
2
+ import { n as Languages } from "./routing-Fzn1XfX_.js";
3
+ import { i as Join } from "./primitives-BVaiiY63.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,25 @@
1
+ import { h as Spec } from "./index-Ct7H30x1.js";
2
+ import * as react_jsx_runtime11 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_runtime11.JSX.Element | null;
24
+ //#endregion
25
+ export { generateApiBreadcrumbs as n, SDKBreadcrumbs as t };
@@ -0,0 +1,25 @@
1
+ import { h as Spec } from "./index-Ct7H30x1.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,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,157 @@
1
+ import { t as __exportAll } from "./chunk-Du3t87LU.js";
2
+ import { n as useLanguageComponents } from "./contexts-DZfPd182.js";
3
+ import { t as useComponents } from "./use-components-Dbin0y07.js";
4
+ import { t as style_default } from "./style-TeAZuiHh.js";
5
+ import { a as Type$1, o as TypeName$1 } from "./http-olFAYLFq.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(props) {
30
+ return Type$1(props);
31
+ }
32
+ function MethodSignature({ decl }) {
33
+ const { Join } = useComponents();
34
+ const params = decl.arguments?.map((arg, i) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
35
+ /* @__PURE__ */ jsx("span", {
36
+ className: style_default.TextOperator,
37
+ children: "<"
38
+ }),
39
+ /* @__PURE__ */ jsx("span", {
40
+ className: style_default.TextIdentifier,
41
+ children: arg.value
42
+ }),
43
+ /* @__PURE__ */ jsx("span", {
44
+ className: style_default.TextOperator,
45
+ children: ">"
46
+ })
47
+ ] }, i));
48
+ return /* @__PURE__ */ jsxs("div", {
49
+ className: style_default.MethodSignature,
50
+ children: [
51
+ /* @__PURE__ */ jsx("span", {
52
+ className: style_default.TextOperator,
53
+ children: "$ "
54
+ }),
55
+ /* @__PURE__ */ jsx("span", {
56
+ className: style_default.SignatureName,
57
+ children: /* @__PURE__ */ jsx("span", {
58
+ className: style_default.TextIdentifier,
59
+ children: decl.invocation.join(" ")
60
+ })
61
+ }),
62
+ params && /* @__PURE__ */ jsxs("span", {
63
+ className: style_default.MethodSignature,
64
+ children: [" ", /* @__PURE__ */ jsx(Join, {
65
+ items: params,
66
+ children: " "
67
+ })]
68
+ }),
69
+ decl.options && decl.options.length > 0 ? /* @__PURE__ */ jsx("span", {
70
+ className: style_default.TextOperator,
71
+ children: " [options]"
72
+ }) : null
73
+ ]
74
+ });
75
+ }
76
+ function renderVariantInfo(type) {
77
+ if (type.kind === "HttpTypeUnion" && type.types.every((t) => t.kind === "HttpTypeObject" || t.kind === "HttpTypeReference")) return /* @__PURE__ */ jsxs(Fragment$1, { children: [
78
+ "One of the following ",
79
+ type.types.length,
80
+ " object variants:"
81
+ ] });
82
+ }
83
+ function Property({ decl, children }) {
84
+ const Lang = useLanguageComponents();
85
+ if (!decl) return;
86
+ switch (decl.kind) {
87
+ case "CLIFlag":
88
+ case "CLISchemaProperty": {
89
+ const variants = decl.type ? renderVariantInfo(decl.type) : void 0;
90
+ return children({
91
+ name: /* @__PURE__ */ jsxs(Fragment$1, { children: [decl.kind === "CLIFlag" && "--", flagName(decl)] }),
92
+ typeName: decl.type ? /* @__PURE__ */ jsx(Lang.TypeName, { type: decl.type }) : void 0,
93
+ type: decl.type && decl.type.kind in ComplexTypes && !variants && /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
94
+ });
95
+ }
96
+ case "CLIFunction": return children({
97
+ name: decl.name,
98
+ typeName: "function"
99
+ });
100
+ case "CLIStdin": return children({ name: "stdin" });
101
+ case "CLICommand": return children({
102
+ name: decl.invocation.join(" "),
103
+ typeName: "command"
104
+ });
105
+ }
106
+ }
107
+ function flagName(node) {
108
+ if (node.kind === "CLIFlag" && node.flag) return typeof node.flag === "string" ? node.flag : node.flag.name || "";
109
+ return node.name ?? node.ident ?? "unknown";
110
+ }
111
+ function Declaration({ decl }) {
112
+ const Lang = useLanguageComponents();
113
+ if (!decl) return;
114
+ switch (decl.kind) {
115
+ case "CLICommand": return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx("span", {
116
+ className: style_default.TextIdentifier,
117
+ children: `$ ${decl.invocation.join(" ")}`
118
+ }) });
119
+ case "CLISchemaProperty":
120
+ case "CLIFlag":
121
+ if ("value" in decl) return /* @__PURE__ */ jsx("span", {
122
+ className: constStyle[typeof decl.value],
123
+ children: JSON.stringify(decl.value)
124
+ });
125
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
126
+ className: style_default.PropertyName,
127
+ children: /* @__PURE__ */ jsxs("span", {
128
+ className: style_default.TextIdentifier,
129
+ children: [decl.kind === "CLIFlag" && "--", flagName(decl)]
130
+ })
131
+ }), decl.type && /* @__PURE__ */ jsxs(Fragment$1, { children: [
132
+ /* @__PURE__ */ jsx("span", {
133
+ className: style_default.TextPunctuation,
134
+ children: ": "
135
+ }),
136
+ decl.optional && /* @__PURE__ */ jsx("span", {
137
+ className: style_default.TextPunctuation,
138
+ children: "optional "
139
+ }),
140
+ typeof decl.type === "string" ? /* @__PURE__ */ jsx("span", {
141
+ className: style_default.TextKeyword,
142
+ children: decl.type
143
+ }) : /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
144
+ ] })] });
145
+ case "CLIFunction": return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsxs("span", {
146
+ className: style_default.TextIdentifier,
147
+ children: [decl.name, "()"]
148
+ }) });
149
+ case "CLIStdin": return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx("span", {
150
+ className: style_default.TextIdentifier,
151
+ children: "stdin"
152
+ }) });
153
+ }
154
+ }
155
+
156
+ //#endregion
157
+ 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-CmIGbBLq.js";
2
+ import { t as components_exports } from "./components-Bz5h0Y4x.js";
3
+ import { n as languages_exports } from "./languages-DW_T-Th6.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_runtime58 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_runtime58.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_runtime81 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_runtime81.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-DR4XbZ2t.js";
2
+ import * as react_jsx_runtime0 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_runtime0.JSX.Element;
13
+ //#endregion
14
+ export { MaskedInput };
@@ -0,0 +1,76 @@
1
+ import { t as style_default } from "../style-TeAZuiHh.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-seA1JsK4.js";
2
+ export { SDKBreadcrumbs, generateApiBreadcrumbs };
@@ -0,0 +1,9 @@
1
+ import "../docs-Bw-eLYjA.js";
2
+ import "../component-generics-CmIGbBLq.js";
3
+ import "../navigation-By1sQl6M.js";
4
+ import "../markdown-ZzVcn4kq.js";
5
+ import "../contexts-DZfPd182.js";
6
+ import "../primitives-BVaiiY63.js";
7
+ import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "../breadcrumbs-85Y-pybq.js";
8
+
9
+ export { SDKBreadcrumbs, generateApiBreadcrumbs };
@@ -0,0 +1,60 @@
1
+ import * as react_jsx_runtime1 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_runtime1.JSX.Element;
9
+ declare function GoIcon({
10
+ className
11
+ }: {
12
+ className?: string;
13
+ }): react_jsx_runtime1.JSX.Element;
14
+ declare function JavaIcon({
15
+ className
16
+ }: {
17
+ className?: string;
18
+ }): react_jsx_runtime1.JSX.Element;
19
+ declare function KotlinIcon({
20
+ className
21
+ }: {
22
+ className?: string;
23
+ }): react_jsx_runtime1.JSX.Element;
24
+ declare function PythonIcon({
25
+ className
26
+ }: {
27
+ className?: string;
28
+ }): react_jsx_runtime1.JSX.Element;
29
+ declare function RubyIcon({
30
+ className
31
+ }: {
32
+ className?: string;
33
+ }): react_jsx_runtime1.JSX.Element;
34
+ declare function TerraformIcon({
35
+ className
36
+ }: {
37
+ className?: string;
38
+ }): react_jsx_runtime1.JSX.Element;
39
+ declare function TypescriptIcon({
40
+ className
41
+ }: {
42
+ className?: string;
43
+ }): react_jsx_runtime1.JSX.Element;
44
+ declare function CurlIcon({
45
+ className
46
+ }: {
47
+ className?: string;
48
+ }): react_jsx_runtime1.JSX.Element;
49
+ declare function PowershellIcon({
50
+ className
51
+ }: {
52
+ className?: string;
53
+ }): react_jsx_runtime1.JSX.Element;
54
+ declare function CLIIcon({
55
+ className
56
+ }: {
57
+ className?: string;
58
+ }): react_jsx_runtime1.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-DMkAA03z.js";
2
+
3
+ export { CLIIcon, CSharpIcon, CurlIcon, GoIcon, JavaIcon, KotlinIcon, PowershellIcon, PythonIcon, RubyIcon, TerraformIcon, TypescriptIcon };
@@ -0,0 +1,10 @@
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-DR4XbZ2t.js";
2
+ import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "../breadcrumbs-seA1JsK4.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-C850sHPB.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-lx53LZPl.js";
5
+ import { C as TransformRequestSnippetFn, S as SDKSnippetLanguagesType, T as useReferenceNesting, _ as SDKModelProps, a as SDKChildren, b as SDKRequestTitleProps, c as SDKDeclaration, d as SDKLanguageBlock, f as SDKMethod, g as SDKModel, h as SDKMethodProps, 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 SDKReference, w as usePropertyModel, x as SDKSnippetLanguages, y as SDKRequestTitle } from "../sdk-Dhu_gfzq.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-Bi0ZADmt.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-DVu-9kpm.js";
8
+ import { a as SidebarProps, i as SidebarMethodProps, n as SidebarExpander, o as SidebarResource, r as SidebarMethod, s as SidebarResourceProps, t as Sidebar } from "../sidebar-DukWbBrE.js";
9
+ import "../index-DTl8aUkb.js";
10
+ 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, SDKMethodProps, SDKMethodSummary, SDKMethodSummaryProps, SDKModel, SDKModelProps, SDKOverview, SDKOverviewProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps, SDKSnippetLanguages, SDKSnippetLanguagesType, Sidebar, SidebarExpander, SidebarMethod, SidebarMethodProps, SidebarProps, SidebarResource, SidebarResourceProps, Snippet, SnippetButtons, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetFooter, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, generateApiBreadcrumbs, usePropertyModel, useReferenceNesting };
@@ -0,0 +1,18 @@
1
+ import "../docs-Bw-eLYjA.js";
2
+ import "../component-generics-CmIGbBLq.js";
3
+ import "../navigation-By1sQl6M.js";
4
+ import "../markdown-ZzVcn4kq.js";
5
+ import "../contexts-DZfPd182.js";
6
+ import "../use-components-Dbin0y07.js";
7
+ import { i as PropertyToggle, n as PropertyDescription, r as PropertyTitle, t as Property } from "../properties-BHvUHbcf.js";
8
+ import { a as MethodRoute, i as MethodInfo, n as MethodDescription, r as MethodHeader, t as Method } from "../method-Dktsfckf.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-BVaiiY63.js";
10
+ import "../icons-DMkAA03z.js";
11
+ import { _ as useReferenceNesting, a as SDKDeclaration, c as SDKLanguageBlock, d as SDKMethodInfo, f as SDKModel, g as usePropertyModel, h as SDKSnippetLanguages, i as SDKConstraints, l as SDKMethod, m as SDKRequestTitle, n as ReferenceNestingContext, o as SDKExample, p as SDKReference, r as SDKChildren, s as SDKIcon, t as PropertyModelContext, u as SDKMethodHeader } from "../sdk-DrK2bq-v.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-D4VhtZIC.js";
13
+ import { a as SDKRoot, i as SDKResourceHeader, n as SDKOverview, r as SDKResource, t as SDKMethodSummary } from "../overview-EkRigi6e.js";
14
+ import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "../breadcrumbs-85Y-pybq.js";
15
+ import { i as SidebarResource, n as SidebarExpander, r as SidebarMethod, t as Sidebar } from "../sidebar-BLGIKgRI.js";
16
+ import "../components-Bz5h0Y4x.js";
17
+
18
+ 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, SDKMethodSummary, SDKModel, SDKOverview, SDKReference, SDKRequestTitle, SDKResource, SDKResourceHeader, SDKRoot, SDKSnippetLanguages, Sidebar, SidebarExpander, SidebarMethod, SidebarResource, Snippet, SnippetButtons, SnippetCode, SnippetContainer, SnippetFooter, SnippetRequestContainer, SnippetResponse, ToggleButton, Tooltip, VirtualExpander, generateApiBreadcrumbs, usePropertyModel, useReferenceNesting };
@@ -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-C850sHPB.js";
2
+ export { Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps };
@@ -0,0 +1,10 @@
1
+ import "../docs-Bw-eLYjA.js";
2
+ import "../component-generics-CmIGbBLq.js";
3
+ import "../navigation-By1sQl6M.js";
4
+ import "../markdown-ZzVcn4kq.js";
5
+ import "../contexts-DZfPd182.js";
6
+ import "../use-components-Dbin0y07.js";
7
+ import "../properties-BHvUHbcf.js";
8
+ import { a as MethodRoute, i as MethodInfo, n as MethodDescription, r as MethodHeader, t as Method } from "../method-Dktsfckf.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-DVu-9kpm.js";
2
+ export { SDKMethodSummary, SDKMethodSummaryProps, SDKOverview, SDKOverviewProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps };
@@ -0,0 +1,11 @@
1
+ import "../docs-Bw-eLYjA.js";
2
+ import "../component-generics-CmIGbBLq.js";
3
+ import "../navigation-By1sQl6M.js";
4
+ import "../markdown-ZzVcn4kq.js";
5
+ import "../contexts-DZfPd182.js";
6
+ import "../use-components-Dbin0y07.js";
7
+ import "../properties-BHvUHbcf.js";
8
+ import "../primitives-BVaiiY63.js";
9
+ import { a as SDKRoot, i as SDKResourceHeader, n as SDKOverview, r as SDKResource, t as SDKMethodSummary } from "../overview-EkRigi6e.js";
10
+
11
+ export { SDKMethodSummary, SDKOverview, SDKResource, SDKResourceHeader, SDKRoot };
@@ -0,0 +1,2 @@
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-DR4XbZ2t.js";
2
+ export { Badge, Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, ToggleButton, ToggleButtonProps, Tooltip, VirtualExpander };