@stainless-api/docs-ui 0.1.0-beta.47 → 0.1.0-beta.49

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 (159) hide show
  1. package/dist/breadcrumbs-nSFZO5Gf.js +63 -0
  2. package/dist/component-DRO8kQSp.js +23 -0
  3. package/dist/{component-generics-F0_Dx7UT.js → component-generics-B6Fn47Mz.js} +1 -1
  4. package/dist/{component-generics-DrrwsjTH.d.ts → component-generics-COP53CRn.d.ts} +2 -2
  5. package/dist/component-generics-fyFHB6qA.d.ts +30 -0
  6. package/dist/components/MaskedInput.d.ts +1 -1
  7. package/dist/components/MaskedInput.js +1 -1
  8. package/dist/components/breadcrumbs.d.ts +1 -1
  9. package/dist/components/breadcrumbs.js +7 -13
  10. package/dist/components/icons.js +1 -1
  11. package/dist/components/index.d.ts +9 -10
  12. package/dist/components/index.js +16 -13
  13. package/dist/components/method.d.ts +1 -1
  14. package/dist/components/method.js +8 -13
  15. package/dist/components/overview.d.ts +1 -1
  16. package/dist/components/overview.js +9 -13
  17. package/dist/components/primitives.d.ts +1 -1
  18. package/dist/components/primitives.js +6 -13
  19. package/dist/components/properties.d.ts +1 -1
  20. package/dist/components/properties.js +7 -13
  21. package/dist/components/sdk.d.ts +1 -2
  22. package/dist/components/sdk.js +8 -13
  23. package/dist/components/sidebar.d.ts +1 -1
  24. package/dist/components/sidebar.js +9 -13
  25. package/dist/components/snippets.d.ts +2 -3
  26. package/dist/components/snippets.js +7 -13
  27. package/dist/components-D7M-BwNI.js +71 -0
  28. package/dist/contexts/component-generics.d.ts +1 -1
  29. package/dist/contexts/component-generics.js +1 -1
  30. package/dist/contexts/component-types.d.ts +10 -11
  31. package/dist/contexts/component.d.ts +13 -14
  32. package/dist/contexts/component.js +25 -13
  33. package/dist/contexts/docs.d.ts +1 -1
  34. package/dist/contexts/docs.js +1 -1
  35. package/dist/contexts/index.d.ts +16 -19
  36. package/dist/contexts/index.js +6 -14
  37. package/dist/contexts/markdown.d.ts +1 -1
  38. package/dist/contexts/markdown.js +2 -2
  39. package/dist/contexts/navigation.d.ts +1 -2
  40. package/dist/contexts/navigation.js +1 -1
  41. package/dist/contexts/use-components.d.ts +9 -10
  42. package/dist/contexts/use-components.js +2 -2
  43. package/dist/contexts-p3rRZDlM.js +39 -0
  44. package/dist/csharp-CDSxfCZE.js +283 -0
  45. package/dist/docs-yYrp-uzs.d.ts +47 -0
  46. package/dist/go-1c3S5ETL.js +303 -0
  47. package/dist/http-2QNWXH9t.js +330 -0
  48. package/dist/{index-CeFeLPGr.d.ts → index-BQpRynot.d.ts} +8 -8
  49. package/dist/index-CnilsjrJ.d.ts +274 -0
  50. package/dist/{index-CTSOZqei.d.ts → index-Ct0NcQUK.d.ts} +1 -1
  51. package/dist/{index-Bt01VI67.d.ts → index-D6NhcxHd.d.ts} +6 -7
  52. package/dist/index-LboM0f0c.d.ts +15 -0
  53. package/dist/index-avtZIGmX.d.ts +13 -0
  54. package/dist/index.d.ts +18 -20
  55. package/dist/index.js +27 -13
  56. package/dist/java-BbjF_oUI.js +403 -0
  57. package/dist/languages/csharp.d.ts +10 -11
  58. package/dist/languages/csharp.js +7 -13
  59. package/dist/languages/go.d.ts +10 -11
  60. package/dist/languages/go.js +7 -13
  61. package/dist/languages/http.d.ts +10 -11
  62. package/dist/languages/http.js +17 -13
  63. package/dist/languages/index.d.ts +10 -11
  64. package/dist/languages/index.js +24 -13
  65. package/dist/languages/java.d.ts +10 -11
  66. package/dist/languages/java.js +7 -13
  67. package/dist/languages/python.d.ts +10 -11
  68. package/dist/languages/python.js +7 -13
  69. package/dist/languages/ruby.d.ts +10 -11
  70. package/dist/languages/ruby.js +7 -13
  71. package/dist/languages/typescript.d.ts +10 -11
  72. package/dist/languages/typescript.js +7 -13
  73. package/dist/languages-BCYZjzuS.js +26 -0
  74. package/dist/markdown/index.d.ts +4 -4
  75. package/dist/markdown/index.js +103 -14
  76. package/dist/markdown/md.js +1 -1
  77. package/dist/markdown/printer.d.ts +2 -0
  78. package/dist/markdown/printer.js +28 -0
  79. package/dist/markdown/utils.d.ts +2 -3
  80. package/dist/markdown/utils.js +1 -1
  81. package/dist/{markdown-Bx-mQFEj.js → markdown-CxdeWgjV.js} +1 -1
  82. package/dist/markdown-DA2cRtlr.d.ts +22 -0
  83. package/dist/method-CE08mUME.js +115 -0
  84. package/dist/{navigation-Cg69h_9U.d.ts → navigation-BfAVGPgw.d.ts} +3 -3
  85. package/dist/navigation-CjBnMcop.d.ts +29 -0
  86. package/dist/overview-DeZSiqFa.d.ts +39 -0
  87. package/dist/overview-S2hUqPXA.js +139 -0
  88. package/dist/primitives-BIWfwN5L.js +258 -0
  89. package/dist/primitives-CbqXZ-5f.d.ts +97 -0
  90. package/dist/printer-DBw4S_Jn.d.ts +13 -0
  91. package/dist/printer-DVZVkqAr.d.ts +13 -0
  92. package/dist/printer-bNxiG6UB.js +74 -0
  93. package/dist/properties-jlGW3USi.js +131 -0
  94. package/dist/python-USOwFDv_.js +279 -0
  95. package/dist/routing-CMqh1cTZ.d.ts +54 -0
  96. package/dist/{routing-BGBmkDBL.js → routing-Wbb7YECB.js} +1 -1
  97. package/dist/routing.d.ts +1 -1
  98. package/dist/routing.js +1 -1
  99. package/dist/ruby-CSvGbSLe.js +387 -0
  100. package/dist/{sdk-Ck0IERc7.d.ts → sdk-BOwYR0k6.d.ts} +1 -1
  101. package/dist/sdk-CSCbbn3O.js +336 -0
  102. package/dist/sdk-CdhDsvo3.d.ts +118 -0
  103. package/dist/sidebar-CWyvCrJ0.js +81 -0
  104. package/dist/snippets-BQLXEIf6.js +161 -0
  105. package/dist/snippets-CbVFNmfq.d.ts +51 -0
  106. package/dist/{snippets-XTXit9Ya.d.ts → snippets-Wjo2dJNw.d.ts} +1 -1
  107. package/dist/spec.d.ts +3 -3
  108. package/dist/spec.js +2 -2
  109. package/dist/style.d.ts +1 -1
  110. package/dist/style.js +1 -1
  111. package/dist/styles/resets.css +2 -1
  112. package/dist/styles.css +1099 -1
  113. package/dist/typescript-DXG9psK3.js +449 -0
  114. package/dist/{use-components-BAHidYIO.js → use-components-RWQbviGq.js} +1 -1
  115. package/dist/{utils-CJElSUwc.d.ts → utils-CTGH5e8c.d.ts} +2 -2
  116. package/dist/utils-DNKOwa7D.d.ts +21 -0
  117. package/dist/{utils-0z34vxY4.js → utils-D_1AWSRX.js} +2 -2
  118. package/dist/utils.d.ts +1 -1
  119. package/dist/utils.js +1 -2
  120. package/package.json +6 -20
  121. package/dist/contexts/search.d.ts +0 -4
  122. package/dist/contexts/search.js +0 -15
  123. package/dist/contexts-D3ClFTt3.js +0 -4117
  124. package/dist/pagefind-BHm6c3fb.js +0 -15
  125. package/dist/search/index.d.ts +0 -26
  126. package/dist/search/index.js +0 -334
  127. package/dist/search/mcp.d.ts +0 -13
  128. package/dist/search/mcp.js +0 -45
  129. package/dist/search/providers/algolia.d.ts +0 -25
  130. package/dist/search/providers/algolia.js +0 -15
  131. package/dist/search/providers/fuse.d.ts +0 -18
  132. package/dist/search/providers/fuse.js +0 -30
  133. package/dist/search/providers/pagefind.d.ts +0 -7
  134. package/dist/search/providers/pagefind.js +0 -3
  135. package/dist/search/providers/walker.d.ts +0 -9
  136. package/dist/search/providers/walker.js +0 -34
  137. package/dist/search/types.d.ts +0 -3
  138. package/dist/search/types.js +0 -3
  139. package/dist/search-B9SJyFXg.d.ts +0 -21
  140. package/dist/types-D7Ipu1J2.d.ts +0 -91
  141. package/dist/types-mRzd9aqe.js +0 -35
  142. /package/dist/{breadcrumbs-Bg3nNgu9.d.ts → breadcrumbs-DEyC9k79.d.ts} +0 -0
  143. /package/dist/{chunk-BWfJHHBp.js → chunk-DRcLgZ1e.js} +0 -0
  144. /package/dist/{docs-DGpIHBGY.d.ts → docs-B8-nCRaa.d.ts} +0 -0
  145. /package/dist/{docs-CNvEp0VL.js → docs-CXqi26jB.js} +0 -0
  146. /package/dist/{icons-DzBceOQw.js → icons-Ckod9aod.js} +0 -0
  147. /package/dist/{markdown-COcowhve.d.ts → markdown-C8o8WrwG.d.ts} +0 -0
  148. /package/dist/{md-D5AxFoS4.js → md-oM2tUaCA.js} +0 -0
  149. /package/dist/{method-DI8ARQ3m.d.ts → method-B6eAtYl2.d.ts} +0 -0
  150. /package/dist/{navigation-bydkHNUW.js → navigation-C5TN0SgC.js} +0 -0
  151. /package/dist/{overview-Bv43Hf_w.d.ts → overview-CswoJHww.d.ts} +0 -0
  152. /package/dist/{primitives-Br-H_CYo.d.ts → primitives-Caj5rKBc.d.ts} +0 -0
  153. /package/dist/{properties-RPXKwEeY.d.ts → properties-BkUlpvU4.d.ts} +0 -0
  154. /package/dist/{routing-nN1nc0jx.d.ts → routing-Dhmv52Fd.d.ts} +0 -0
  155. /package/dist/{sidebar-b3y7VIbU.d.ts → sidebar-BXz93vSy.d.ts} +0 -0
  156. /package/dist/{style-D8hwSwrv.d.ts → style-D7RO5ymE.d.ts} +0 -0
  157. /package/dist/{style-0miv2y38.js → style-gnVEeXFj.js} +0 -0
  158. /package/dist/{utils-CiZXDoFR.js → utils-CqnL9Fc3.js} +0 -0
  159. /package/dist/{utils-BcWczffA.d.ts → utils-d8paVwKN.d.ts} +0 -0
@@ -1,15 +1,9 @@
1
- import "../docs-CNvEp0VL.js";
2
- import "../component-generics-F0_Dx7UT.js";
3
- import "../navigation-bydkHNUW.js";
4
- import "../markdown-Bx-mQFEj.js";
5
- import "../routing-BGBmkDBL.js";
6
- import "../style-0miv2y38.js";
7
- import "../use-components-BAHidYIO.js";
8
- import { $ as Type, Q as Property, X as Declaration, Z as MethodSignature, et as TypeName } from "../contexts-D3ClFTt3.js";
9
- import "../icons-DzBceOQw.js";
10
- import "../utils-0z34vxY4.js";
11
- import "../md-D5AxFoS4.js";
12
- import "../utils-CiZXDoFR.js";
13
- import "../types-mRzd9aqe.js";
1
+ import "../docs-CXqi26jB.js";
2
+ import "../component-generics-B6Fn47Mz.js";
3
+ import "../navigation-C5TN0SgC.js";
4
+ import "../markdown-CxdeWgjV.js";
5
+ import "../contexts-p3rRZDlM.js";
6
+ import "../use-components-RWQbviGq.js";
7
+ import { a as TypeName, i as Type, n as MethodSignature, r as Property, t as Declaration } from "../java-BbjF_oUI.js";
14
8
 
15
9
  export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -1,12 +1,11 @@
1
- import "../primitives-Br-H_CYo.js";
2
- import "../breadcrumbs-Bg3nNgu9.js";
3
- import "../method-DI8ARQ3m.js";
4
- import "../properties-RPXKwEeY.js";
5
- import "../routing-nN1nc0jx.js";
6
- import "../sdk-Ck0IERc7.js";
7
- import "../snippets-XTXit9Ya.js";
8
- import "../overview-Bv43Hf_w.js";
9
- import "../sidebar-b3y7VIbU.js";
10
- import "../index-CeFeLPGr.js";
11
- import { B as Type, F as DeclarationProps, I as MethodSignature, L as MethodSignatureProps, P as Declaration, R as Property, V as TypeName, z as PropertyProps } from "../index-CTSOZqei.js";
1
+ import "../primitives-Caj5rKBc.js";
2
+ import "../breadcrumbs-DEyC9k79.js";
3
+ import "../method-B6eAtYl2.js";
4
+ import "../properties-BkUlpvU4.js";
5
+ import "../sdk-BOwYR0k6.js";
6
+ import "../snippets-Wjo2dJNw.js";
7
+ import "../overview-CswoJHww.js";
8
+ import "../sidebar-BXz93vSy.js";
9
+ import "../index-BQpRynot.js";
10
+ import { B as Type, F as DeclarationProps, I as MethodSignature, L as MethodSignatureProps, P as Declaration, R as Property, V as TypeName, z as PropertyProps } from "../index-Ct0NcQUK.js";
12
11
  export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -1,15 +1,9 @@
1
- import "../docs-CNvEp0VL.js";
2
- import "../component-generics-F0_Dx7UT.js";
3
- import "../navigation-bydkHNUW.js";
4
- import "../markdown-Bx-mQFEj.js";
5
- import "../routing-BGBmkDBL.js";
6
- import "../style-0miv2y38.js";
7
- import "../use-components-BAHidYIO.js";
8
- import { B as Property, H as TypeName, R as Declaration, V as Type, z as MethodSignature } from "../contexts-D3ClFTt3.js";
9
- import "../icons-DzBceOQw.js";
10
- import "../utils-0z34vxY4.js";
11
- import "../md-D5AxFoS4.js";
12
- import "../utils-CiZXDoFR.js";
13
- import "../types-mRzd9aqe.js";
1
+ import "../docs-CXqi26jB.js";
2
+ import "../component-generics-B6Fn47Mz.js";
3
+ import "../navigation-C5TN0SgC.js";
4
+ import "../markdown-CxdeWgjV.js";
5
+ import "../contexts-p3rRZDlM.js";
6
+ import "../use-components-RWQbviGq.js";
7
+ import { a as TypeName, i as Type, n as MethodSignature, r as Property, t as Declaration } from "../python-USOwFDv_.js";
14
8
 
15
9
  export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -1,12 +1,11 @@
1
- import "../primitives-Br-H_CYo.js";
2
- import "../breadcrumbs-Bg3nNgu9.js";
3
- import "../method-DI8ARQ3m.js";
4
- import "../properties-RPXKwEeY.js";
5
- import "../routing-nN1nc0jx.js";
6
- import "../sdk-Ck0IERc7.js";
7
- import "../snippets-XTXit9Ya.js";
8
- import "../overview-Bv43Hf_w.js";
9
- import "../sidebar-b3y7VIbU.js";
10
- import "../index-CeFeLPGr.js";
11
- import { A as PropertyProps, D as MethodSignature, E as DeclarationProps, M as TypeName, O as MethodSignatureProps, T as Declaration, j as Type, k as Property } from "../index-CTSOZqei.js";
1
+ import "../primitives-Caj5rKBc.js";
2
+ import "../breadcrumbs-DEyC9k79.js";
3
+ import "../method-B6eAtYl2.js";
4
+ import "../properties-BkUlpvU4.js";
5
+ import "../sdk-BOwYR0k6.js";
6
+ import "../snippets-Wjo2dJNw.js";
7
+ import "../overview-CswoJHww.js";
8
+ import "../sidebar-BXz93vSy.js";
9
+ import "../index-BQpRynot.js";
10
+ import { A as PropertyProps, D as MethodSignature, E as DeclarationProps, M as TypeName, O as MethodSignatureProps, T as Declaration, j as Type, k as Property } from "../index-Ct0NcQUK.js";
12
11
  export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -1,15 +1,9 @@
1
- import "../docs-CNvEp0VL.js";
2
- import "../component-generics-F0_Dx7UT.js";
3
- import "../navigation-bydkHNUW.js";
4
- import "../markdown-Bx-mQFEj.js";
5
- import "../routing-BGBmkDBL.js";
6
- import "../style-0miv2y38.js";
7
- import "../use-components-BAHidYIO.js";
8
- import { F as Type, I as TypeName, M as Declaration, N as MethodSignature, P as Property } from "../contexts-D3ClFTt3.js";
9
- import "../icons-DzBceOQw.js";
10
- import "../utils-0z34vxY4.js";
11
- import "../md-D5AxFoS4.js";
12
- import "../utils-CiZXDoFR.js";
13
- import "../types-mRzd9aqe.js";
1
+ import "../docs-CXqi26jB.js";
2
+ import "../component-generics-B6Fn47Mz.js";
3
+ import "../navigation-C5TN0SgC.js";
4
+ import "../markdown-CxdeWgjV.js";
5
+ import "../contexts-p3rRZDlM.js";
6
+ import "../use-components-RWQbviGq.js";
7
+ import { a as TypeName, i as Type, n as MethodSignature, r as Property, t as Declaration } from "../ruby-CSvGbSLe.js";
14
8
 
15
9
  export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -1,12 +1,11 @@
1
- import "../primitives-Br-H_CYo.js";
2
- import "../breadcrumbs-Bg3nNgu9.js";
3
- import "../method-DI8ARQ3m.js";
4
- import "../properties-RPXKwEeY.js";
5
- import "../routing-nN1nc0jx.js";
6
- import "../sdk-Ck0IERc7.js";
7
- import "../snippets-XTXit9Ya.js";
8
- import "../overview-Bv43Hf_w.js";
9
- import "../sidebar-b3y7VIbU.js";
10
- import "../index-CeFeLPGr.js";
11
- import { ct as Declaration, dt as MethodSignatureProps, ft as Property, ht as TypeName, lt as DeclarationProps, mt as Type, pt as PropertyProps, ut as MethodSignature } from "../index-CTSOZqei.js";
1
+ import "../primitives-Caj5rKBc.js";
2
+ import "../breadcrumbs-DEyC9k79.js";
3
+ import "../method-B6eAtYl2.js";
4
+ import "../properties-BkUlpvU4.js";
5
+ import "../sdk-BOwYR0k6.js";
6
+ import "../snippets-Wjo2dJNw.js";
7
+ import "../overview-CswoJHww.js";
8
+ import "../sidebar-BXz93vSy.js";
9
+ import "../index-BQpRynot.js";
10
+ import { ct as Declaration, dt as MethodSignatureProps, ft as Property, ht as TypeName, lt as DeclarationProps, mt as Type, pt as PropertyProps, ut as MethodSignature } from "../index-Ct0NcQUK.js";
12
11
  export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -1,15 +1,9 @@
1
- import "../docs-CNvEp0VL.js";
2
- import "../component-generics-F0_Dx7UT.js";
3
- import "../navigation-bydkHNUW.js";
4
- import "../markdown-Bx-mQFEj.js";
5
- import "../routing-BGBmkDBL.js";
6
- import "../style-0miv2y38.js";
7
- import "../use-components-BAHidYIO.js";
8
- import { at as Type, it as Property, nt as Declaration, ot as TypeName, rt as MethodSignature } from "../contexts-D3ClFTt3.js";
9
- import "../icons-DzBceOQw.js";
10
- import "../utils-0z34vxY4.js";
11
- import "../md-D5AxFoS4.js";
12
- import "../utils-CiZXDoFR.js";
13
- import "../types-mRzd9aqe.js";
1
+ import "../docs-CXqi26jB.js";
2
+ import "../component-generics-B6Fn47Mz.js";
3
+ import "../navigation-C5TN0SgC.js";
4
+ import "../markdown-CxdeWgjV.js";
5
+ import "../contexts-p3rRZDlM.js";
6
+ import "../use-components-RWQbviGq.js";
7
+ import { a as TypeName, i as Type, n as MethodSignature, r as Property, t as Declaration } from "../typescript-DXG9psK3.js";
14
8
 
15
9
  export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -0,0 +1,26 @@
1
+ import { t as __export } from "./chunk-DRcLgZ1e.js";
2
+ import { o as typescript_exports } from "./typescript-DXG9psK3.js";
3
+ import { o as java_exports } from "./java-BbjF_oUI.js";
4
+ import { o as go_exports } from "./go-1c3S5ETL.js";
5
+ import { o as python_exports } from "./python-USOwFDv_.js";
6
+ import { o as ruby_exports } from "./ruby-CSvGbSLe.js";
7
+ import { s as http_exports } from "./http-2QNWXH9t.js";
8
+ import { o as csharp_exports } from "./csharp-CDSxfCZE.js";
9
+
10
+ //#region src/languages/index.ts
11
+ var languages_exports = /* @__PURE__ */ __export({
12
+ csharp: () => csharp_exports,
13
+ go: () => go_exports,
14
+ http: () => http_exports,
15
+ java: () => java_exports,
16
+ kotlin: () => kotlin,
17
+ node: () => node,
18
+ python: () => python_exports,
19
+ ruby: () => ruby_exports,
20
+ typescript: () => typescript_exports
21
+ });
22
+ const node = typescript_exports;
23
+ const kotlin = java_exports;
24
+
25
+ //#endregion
26
+ export { languages_exports as n, node as r, kotlin as t };
@@ -1,6 +1,6 @@
1
- import "../routing-nN1nc0jx.js";
2
- import "../sdk-Ck0IERc7.js";
3
- import { t as EnvironmentType } from "../utils-CJElSUwc.js";
1
+ import "../sdk-BOwYR0k6.js";
2
+ import { t as EnvironmentType } from "../utils-CTGH5e8c.js";
3
+ import { r as printer_d_exports } from "../printer-DBw4S_Jn.js";
4
4
  import { Node } from "@markdoc/markdoc";
5
5
  import * as SDKJSON from "@stainless/sdk-json";
6
6
 
@@ -9,4 +9,4 @@ declare function declaration(env: EnvironmentType, decl: SDKJSON.DeclarationNode
9
9
  declare function render(env: EnvironmentType, node: SDKJSON.Resource | SDKJSON.Method | SDKJSON.Model): Node[];
10
10
  declare function renderMarkdown(env: EnvironmentType, node: SDKJSON.Resource | SDKJSON.Method | SDKJSON.Model): string;
11
11
  //#endregion
12
- export { declaration, render, renderMarkdown };
12
+ export { declaration, printer_d_exports as printer, render, renderMarkdown };
@@ -1,15 +1,104 @@
1
- import "../docs-CNvEp0VL.js";
2
- import "../component-generics-F0_Dx7UT.js";
3
- import "../navigation-bydkHNUW.js";
4
- import "../markdown-Bx-mQFEj.js";
5
- import "../routing-BGBmkDBL.js";
6
- import "../style-0miv2y38.js";
7
- import "../use-components-BAHidYIO.js";
8
- import { d as declaration, f as render, p as renderMarkdown } from "../contexts-D3ClFTt3.js";
9
- import "../icons-DzBceOQw.js";
10
- import "../utils-0z34vxY4.js";
11
- import "../md-D5AxFoS4.js";
12
- import "../utils-CiZXDoFR.js";
13
- import "../types-mRzd9aqe.js";
1
+ import "../docs-CXqi26jB.js";
2
+ import "../component-generics-B6Fn47Mz.js";
3
+ import "../navigation-C5TN0SgC.js";
4
+ import "../markdown-CxdeWgjV.js";
5
+ import "../contexts-p3rRZDlM.js";
6
+ import "../use-components-RWQbviGq.js";
7
+ import "../properties-jlGW3USi.js";
8
+ import "../method-CE08mUME.js";
9
+ import "../primitives-BIWfwN5L.js";
10
+ import "../icons-Ckod9aod.js";
11
+ import "../sdk-CSCbbn3O.js";
12
+ import "../snippets-BQLXEIf6.js";
13
+ import "../overview-S2hUqPXA.js";
14
+ import "../breadcrumbs-nSFZO5Gf.js";
15
+ import "../sidebar-CWyvCrJ0.js";
16
+ import "../components-D7M-BwNI.js";
17
+ import "../typescript-DXG9psK3.js";
18
+ import "../java-BbjF_oUI.js";
19
+ import "../go-1c3S5ETL.js";
20
+ import "../python-USOwFDv_.js";
21
+ import "../ruby-CSvGbSLe.js";
22
+ import "../http-2QNWXH9t.js";
23
+ import "../csharp-CDSxfCZE.js";
24
+ import "../languages-BCYZjzuS.js";
25
+ import "../component-DRO8kQSp.js";
26
+ import { a as item, c as parse, l as strong, n as fence, o as list, r as heading, s as paragraph, t as code, u as text } from "../md-oM2tUaCA.js";
27
+ import { n as getSnippet, r as stripMarkup, t as getDecl } from "../utils-CqnL9Fc3.js";
28
+ import { n as methodSignature, r as printer_exports, t as declaration$1 } from "../printer-bNxiG6UB.js";
29
+ import Markdoc from "@markdoc/markdoc";
14
30
 
15
- export { declaration, render, renderMarkdown };
31
+ //#region src/markdown/index.ts
32
+ function declaration(env, decl) {
33
+ const content = declaration$1(env.language, decl);
34
+ return paragraph(code(stripMarkup(content)));
35
+ }
36
+ function renderChildren(env, children, nesting = []) {
37
+ return list(...children.map((child) => renderDecl(env, child, nesting)));
38
+ }
39
+ function renderDecl(env, path, nesting = []) {
40
+ const decl = getDecl(env, path);
41
+ const item$1 = item(declaration(env, decl));
42
+ const hasChildren = "children" in decl && decl.children && decl.children.length > 0;
43
+ const showModelProps = !("modelPath" in decl && decl["modelPath"]) || env.options.includeModelProperties;
44
+ if ("docstring" in decl && decl.docstring) item$1.children.push(...parse(decl.docstring));
45
+ if (hasChildren && showModelProps && !nesting.includes(path)) item$1.push(renderChildren(env, decl.children ?? [], [...nesting, path]));
46
+ return item$1;
47
+ }
48
+ function renderMethod(env, method) {
49
+ const decl = getDecl(env, method.stainlessPath);
50
+ if (!decl) return [paragraph(text("The method "), code(method.name), text(" is not available in this language."))];
51
+ const signature = methodSignature(env.language, decl);
52
+ const [httpMethod, endpoint] = method.endpoint.split(" ");
53
+ const output = [
54
+ heading(2, method.title),
55
+ ...env.language === "http" ? [] : [paragraph(code(stripMarkup(signature)))],
56
+ paragraph(strong(text(httpMethod)), text(" "), code(endpoint))
57
+ ];
58
+ if (method.description) output.push(...parse(method.description));
59
+ if (env.language === "http") {
60
+ const p = "paramsChildren" in decl && typeof decl.paramsChildren === "object" ? decl.paramsChildren : {};
61
+ for (const [location, value] of Object.entries(p)) {
62
+ if (value.length < 1) continue;
63
+ output.push(heading(3, [
64
+ text(location.at(0)?.toUpperCase() ?? ""),
65
+ text(location.slice(1)),
66
+ text(" Parameters")
67
+ ]), renderChildren(env, value));
68
+ }
69
+ const bp = "bodyParamsChildren" in decl ? decl.bodyParamsChildren?.["application/json"] : [];
70
+ if (bp && bp.length > 0) output.push(heading(3, "Body Parameters"), renderChildren(env, bp));
71
+ }
72
+ if ("paramsChildren" in decl && Array.isArray(decl.paramsChildren) && decl.paramsChildren.length > 0) output.push(heading(3, "Parameters"), renderChildren(env, decl.paramsChildren));
73
+ if ("responseChildren" in decl && decl.responseChildren && decl.responseChildren.length > 0) output.push(heading(3, "Returns"), renderChildren(env, decl.responseChildren));
74
+ const snippet = getSnippet(env, method.stainlessPath);
75
+ if (snippet) output.push(heading(3, "Example"), fence(env.language, snippet));
76
+ return output;
77
+ }
78
+ function renderModel(env, model) {
79
+ return [heading(3, model.title), list(renderDecl(env, `${model.stainlessPath} > (schema)`))];
80
+ }
81
+ function renderResource(env, resource) {
82
+ const methods = Object.values(resource.methods).filter((method) => getDecl(env, method.stainlessPath)).flatMap((method) => renderMethod(env, method));
83
+ const models = Object.values(resource.models).filter((model) => getDecl(env, `${model.stainlessPath} > (schema)`)).flatMap((model) => renderModel(env, model));
84
+ const doc = [heading(1, resource.title), ...methods];
85
+ if (models.length > 0) doc.push(heading(2, "Domain Types"), ...models);
86
+ if (!env.options.renderNestedResources) return doc;
87
+ const children = Object.values(resource.subresources ?? {}).flatMap((resource$1) => renderResource(env, resource$1));
88
+ return [...doc, ...children];
89
+ }
90
+ function render(env, node) {
91
+ switch (node.kind) {
92
+ case "resource": return renderResource(env, node);
93
+ case "http_method": return renderMethod(env, node);
94
+ case "model": return renderModel(env, node);
95
+ }
96
+ }
97
+ function renderMarkdown(env, node) {
98
+ const content = render(env, node);
99
+ const doc = new Markdoc.Ast.Node("document", {}, content);
100
+ return Markdoc.format(doc);
101
+ }
102
+
103
+ //#endregion
104
+ export { declaration, printer_exports as printer, render, renderMarkdown };
@@ -1,3 +1,3 @@
1
- import { a as item, c as parse, i as inline, l as strong, n as fence, o as list, r as heading, s as paragraph, t as code, u as text } from "../md-D5AxFoS4.js";
1
+ import { a as item, c as parse, i as inline, l as strong, n as fence, o as list, r as heading, s as paragraph, t as code, u as text } from "../md-oM2tUaCA.js";
2
2
 
3
3
  export { code, fence, heading, inline, item, list, paragraph, parse, strong, text };
@@ -0,0 +1,2 @@
1
+ import { a as typeName, i as type, n as methodSignature, t as declaration } from "../printer-DBw4S_Jn.js";
2
+ export { declaration, methodSignature, type, typeName };
@@ -0,0 +1,28 @@
1
+ import "../docs-CXqi26jB.js";
2
+ import "../component-generics-B6Fn47Mz.js";
3
+ import "../navigation-C5TN0SgC.js";
4
+ import "../markdown-CxdeWgjV.js";
5
+ import "../contexts-p3rRZDlM.js";
6
+ import "../use-components-RWQbviGq.js";
7
+ import "../properties-jlGW3USi.js";
8
+ import "../method-CE08mUME.js";
9
+ import "../primitives-BIWfwN5L.js";
10
+ import "../icons-Ckod9aod.js";
11
+ import "../sdk-CSCbbn3O.js";
12
+ import "../snippets-BQLXEIf6.js";
13
+ import "../overview-S2hUqPXA.js";
14
+ import "../breadcrumbs-nSFZO5Gf.js";
15
+ import "../sidebar-CWyvCrJ0.js";
16
+ import "../components-D7M-BwNI.js";
17
+ import "../typescript-DXG9psK3.js";
18
+ import "../java-BbjF_oUI.js";
19
+ import "../go-1c3S5ETL.js";
20
+ import "../python-USOwFDv_.js";
21
+ import "../ruby-CSvGbSLe.js";
22
+ import "../http-2QNWXH9t.js";
23
+ import "../csharp-CDSxfCZE.js";
24
+ import "../languages-BCYZjzuS.js";
25
+ import "../component-DRO8kQSp.js";
26
+ import { a as typeName, i as type, n as methodSignature, t as declaration } from "../printer-bNxiG6UB.js";
27
+
28
+ export { declaration, methodSignature, type, typeName };
@@ -1,4 +1,3 @@
1
- import "../routing-nN1nc0jx.js";
2
- import "../sdk-Ck0IERc7.js";
3
- import { i as stripMarkup, n as getDecl, r as getSnippet, t as EnvironmentType } from "../utils-CJElSUwc.js";
1
+ import "../sdk-BOwYR0k6.js";
2
+ import { i as stripMarkup, n as getDecl, r as getSnippet, t as EnvironmentType } from "../utils-CTGH5e8c.js";
4
3
  export { EnvironmentType, getDecl, getSnippet, stripMarkup };
@@ -1,3 +1,3 @@
1
- import { n as getSnippet, r as stripMarkup, t as getDecl } from "../utils-CiZXDoFR.js";
1
+ import { n as getSnippet, r as stripMarkup, t as getDecl } from "../utils-CqnL9Fc3.js";
2
2
 
3
3
  export { getDecl, getSnippet, stripMarkup };
@@ -1,4 +1,4 @@
1
- import { a as useLanguage } from "./docs-CNvEp0VL.js";
1
+ import { a as useLanguage } from "./docs-CXqi26jB.js";
2
2
  import * as React$1 from "react";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
 
@@ -0,0 +1,22 @@
1
+ import * as React$1 from "react";
2
+ import * as react_jsx_runtime63 from "react/jsx-runtime";
3
+
4
+ //#region src/contexts/markdown.d.ts
5
+ type MarkdownContext = {
6
+ highlight: (content: string, language: string) => string | Promise<string>;
7
+ render: (content: string) => string | Promise<string>;
8
+ };
9
+ declare const MarkdownContext: React$1.Context<MarkdownContext>;
10
+ declare const useMarkdownContext: () => MarkdownContext;
11
+ declare function useRenderMarkdown(content?: string): string | undefined;
12
+ declare function useHighlight(content: string, language?: string): string;
13
+ type MarkdownProviderProps = MarkdownContext & {
14
+ children: React$1.ReactNode;
15
+ };
16
+ declare function MarkdownProvider({
17
+ render,
18
+ highlight,
19
+ children
20
+ }: MarkdownProviderProps): react_jsx_runtime63.JSX.Element;
21
+ //#endregion
22
+ export { useMarkdownContext as a, useHighlight as i, MarkdownProvider as n, useRenderMarkdown as o, MarkdownProviderProps as r, MarkdownContext as t };
@@ -0,0 +1,115 @@
1
+ import { t as useComponents } from "./use-components-RWQbviGq.js";
2
+ import { t as style_default } from "./style-gnVEeXFj.js";
3
+ import { i as PropertyToggle } from "./properties-jlGW3USi.js";
4
+ import * as React$1 from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { ArrowDownLeft, ArrowUpRight, X } from "lucide-react";
7
+ import clsx from "clsx";
8
+
9
+ //#region src/components/method.tsx
10
+ const HttpMethods = [
11
+ "get",
12
+ "head",
13
+ "put",
14
+ "delete",
15
+ "post",
16
+ "patch"
17
+ ];
18
+ const HttpMethodIcons = {
19
+ get: ArrowDownLeft,
20
+ put: ArrowUpRight,
21
+ post: ArrowUpRight,
22
+ patch: ArrowUpRight,
23
+ delete: X
24
+ };
25
+ function MethodIconBadge({ httpMethod, showName }) {
26
+ if (!httpMethod || !HttpMethods.includes(httpMethod)) return null;
27
+ return /* @__PURE__ */ jsxs("span", {
28
+ className: clsx(style_default.MethodRouteHttpMethod, style_default.MethodRouteHttpMethodIconOnly),
29
+ "data-method": httpMethod,
30
+ children: [HttpMethodIcons[httpMethod] && React$1.createElement(HttpMethodIcons[httpMethod], {
31
+ size: 14,
32
+ strokeWidth: 3,
33
+ className: style_default.Icon
34
+ }), showName && httpMethod]
35
+ });
36
+ }
37
+ function MethodHeader({ title, badges, signature, children, level }) {
38
+ const Heading = level ?? "h5";
39
+ return /* @__PURE__ */ jsxs("div", {
40
+ className: style_default.MethodHeader,
41
+ children: [
42
+ /* @__PURE__ */ jsx(Heading, {
43
+ className: style_default.MethodTitle,
44
+ children: title
45
+ }),
46
+ badges && /* @__PURE__ */ jsx("div", {
47
+ className: style_default.MethodBadges,
48
+ children: badges
49
+ }),
50
+ signature,
51
+ children
52
+ ]
53
+ });
54
+ }
55
+ function MethodRoute({ httpMethod, endpoint, iconOnly }) {
56
+ return /* @__PURE__ */ jsxs("div", {
57
+ className: style_default.MethodRoute,
58
+ children: [/* @__PURE__ */ jsx(MethodIconBadge, {
59
+ httpMethod,
60
+ showName: !iconOnly
61
+ }), endpoint && /* @__PURE__ */ jsx("span", {
62
+ className: style_default.MethodRouteEndpoint,
63
+ children: endpoint
64
+ })]
65
+ });
66
+ }
67
+ function MethodDescription({ description }) {
68
+ const { Markdown } = useComponents();
69
+ if (description) return /* @__PURE__ */ jsx("div", {
70
+ className: style_default.MethodDescription,
71
+ children: /* @__PURE__ */ jsx(Markdown, { content: description })
72
+ });
73
+ }
74
+ function MethodInfo({ children, parameters, returns }) {
75
+ return /* @__PURE__ */ jsxs("div", {
76
+ className: style_default.MethodInfo,
77
+ children: [
78
+ children && /* @__PURE__ */ jsx("div", {
79
+ className: style_default.MethodContent,
80
+ children
81
+ }),
82
+ parameters && /* @__PURE__ */ jsxs("div", {
83
+ className: style_default.MethodInfoSection,
84
+ children: [/* @__PURE__ */ jsxs("h5", { children: ["Parameters", /* @__PURE__ */ jsx(PropertyToggle, { target: "parameters" })] }), /* @__PURE__ */ jsx("div", {
85
+ className: style_default.MethodParameters,
86
+ "data-stldocs-property-group": "parameters",
87
+ children: parameters
88
+ })]
89
+ }),
90
+ returns && /* @__PURE__ */ jsxs("div", {
91
+ className: style_default.MethodInfoSection,
92
+ children: [/* @__PURE__ */ jsxs("h5", { children: ["Returns", /* @__PURE__ */ jsx(PropertyToggle, { target: "returns" })] }), /* @__PURE__ */ jsx("div", {
93
+ className: style_default.MethodReturns,
94
+ "data-stldocs-property-group": "returns",
95
+ children: returns
96
+ })]
97
+ })
98
+ ]
99
+ });
100
+ }
101
+ function Method({ id, header, children, className, ...props }) {
102
+ return /* @__PURE__ */ jsxs("div", {
103
+ id,
104
+ className: clsx(style_default.Method, className),
105
+ tabIndex: 0,
106
+ ...props,
107
+ children: [header, /* @__PURE__ */ jsx("div", {
108
+ className: style_default.MethodBody,
109
+ children
110
+ })]
111
+ });
112
+ }
113
+
114
+ //#endregion
115
+ export { MethodHeader as a, MethodRoute as c, MethodDescription as i, HttpMethods as n, MethodIconBadge as o, Method as r, MethodInfo as s, HttpMethodIcons as t };
@@ -1,6 +1,6 @@
1
- import { t as DocsLanguage } from "./routing-nN1nc0jx.js";
1
+ import { t as DocsLanguage } from "./routing-Dhmv52Fd.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime63 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime64 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/contexts/navigation.d.ts
6
6
  type NavigationHandler = (ev: React$1.MouseEvent | null, opts: {
@@ -24,6 +24,6 @@ declare function NavigationProvider({
24
24
  selectedPath,
25
25
  onNavigate,
26
26
  children
27
- }: NavigationProviderProps): react_jsx_runtime63.JSX.Element;
27
+ }: NavigationProviderProps): react_jsx_runtime64.JSX.Element;
28
28
  //#endregion
29
29
  export { useNavigation as a, NavigationProviderProps as i, NavigationHandler as n, NavigationProvider as r, NavigationContextType as t };
@@ -0,0 +1,29 @@
1
+ import { t as DocsLanguage } from "./routing-CMqh1cTZ.js";
2
+ import * as React$1 from "react";
3
+ import * as react_jsx_runtime59 from "react/jsx-runtime";
4
+
5
+ //#region src/contexts/navigation.d.ts
6
+ type NavigationHandler = (ev: React$1.MouseEvent | null, opts: {
7
+ href: string;
8
+ language: DocsLanguage;
9
+ stainlessPath: string;
10
+ scroll: boolean;
11
+ }) => void;
12
+ type NavigationContextType = {
13
+ basePath?: string;
14
+ selectedPath?: string;
15
+ navigationPath?: string[];
16
+ onNavigate?: NavigationHandler;
17
+ };
18
+ declare function useNavigation(): NavigationContextType;
19
+ type NavigationProviderProps = NavigationContextType & {
20
+ children: React$1.ReactNode;
21
+ };
22
+ declare function NavigationProvider({
23
+ basePath,
24
+ selectedPath,
25
+ onNavigate,
26
+ children
27
+ }: NavigationProviderProps): react_jsx_runtime59.JSX.Element;
28
+ //#endregion
29
+ export { useNavigation as a, NavigationProviderProps as i, NavigationHandler as n, NavigationProvider as r, NavigationContextType as t };
@@ -0,0 +1,39 @@
1
+ import * as react_jsx_runtime26 from "react/jsx-runtime";
2
+ import * as SDKJSON from "@stainless/sdk-json";
3
+
4
+ //#region src/components/overview.d.ts
5
+ type SDKResourceProps = {
6
+ resource: SDKJSON.Resource;
7
+ parents?: SDKJSON.Resource[];
8
+ };
9
+ declare function SDKResourceHeader({
10
+ resource,
11
+ parents
12
+ }: SDKResourceProps): react_jsx_runtime26.JSX.Element | null;
13
+ type SDKMethodSummaryProps = {
14
+ method: SDKJSON.Method;
15
+ };
16
+ declare function SDKMethodSummary({
17
+ method
18
+ }: SDKMethodSummaryProps): react_jsx_runtime26.JSX.Element;
19
+ declare function SDKResource({
20
+ resource,
21
+ parents,
22
+ showModels
23
+ }: SDKResourceProps & {
24
+ showModels?: boolean;
25
+ }): react_jsx_runtime26.JSX.Element;
26
+ type SDKOverviewProps = {
27
+ resource: SDKJSON.Resource;
28
+ };
29
+ declare function SDKOverview({
30
+ resource
31
+ }: SDKOverviewProps): react_jsx_runtime26.JSX.Element;
32
+ type SDKRootProps = {
33
+ stainlessPath: string;
34
+ };
35
+ declare function SDKRoot({
36
+ stainlessPath
37
+ }: SDKRootProps): react_jsx_runtime26.JSX.Element | null;
38
+ //#endregion
39
+ export { SDKResource as a, SDKRoot as c, SDKOverviewProps as i, SDKRootProps as l, SDKMethodSummaryProps as n, SDKResourceHeader as o, SDKOverview as r, SDKResourceProps as s, SDKMethodSummary as t };