@stainless-api/docs-ui 0.1.0-beta.48 → 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 (160) hide show
  1. package/dist/{breadcrumbs-TNRag6Vy.d.ts → breadcrumbs-DEyC9k79.d.ts} +2 -2
  2. package/dist/breadcrumbs-nSFZO5Gf.js +63 -0
  3. package/dist/component-DRO8kQSp.js +23 -0
  4. package/dist/{component-generics-F0_Dx7UT.js → component-generics-B6Fn47Mz.js} +1 -1
  5. package/dist/{component-generics-Cs7jFHLq.d.ts → component-generics-COP53CRn.d.ts} +2 -2
  6. package/dist/component-generics-fyFHB6qA.d.ts +30 -0
  7. package/dist/components/MaskedInput.d.ts +1 -1
  8. package/dist/components/MaskedInput.js +1 -1
  9. package/dist/components/breadcrumbs.d.ts +1 -1
  10. package/dist/components/breadcrumbs.js +7 -9
  11. package/dist/components/icons.d.ts +11 -11
  12. package/dist/components/icons.js +1 -1
  13. package/dist/components/index.d.ts +9 -9
  14. package/dist/components/index.js +16 -9
  15. package/dist/components/method.d.ts +1 -1
  16. package/dist/components/method.js +8 -9
  17. package/dist/components/overview.d.ts +1 -1
  18. package/dist/components/overview.js +9 -9
  19. package/dist/components/primitives.d.ts +1 -1
  20. package/dist/components/primitives.js +6 -9
  21. package/dist/components/properties.d.ts +1 -1
  22. package/dist/components/properties.js +7 -9
  23. package/dist/components/sdk.d.ts +1 -1
  24. package/dist/components/sdk.js +8 -9
  25. package/dist/components/sidebar.d.ts +1 -1
  26. package/dist/components/sidebar.js +9 -9
  27. package/dist/components/snippets.d.ts +2 -2
  28. package/dist/components/snippets.js +7 -9
  29. package/dist/components-D7M-BwNI.js +71 -0
  30. package/dist/contexts/component-generics.d.ts +1 -1
  31. package/dist/contexts/component-generics.js +1 -1
  32. package/dist/contexts/component-types.d.ts +10 -10
  33. package/dist/contexts/component.d.ts +13 -13
  34. package/dist/contexts/component.js +25 -9
  35. package/dist/contexts/docs.d.ts +1 -1
  36. package/dist/contexts/docs.js +1 -1
  37. package/dist/contexts/index.d.ts +16 -17
  38. package/dist/contexts/index.js +6 -10
  39. package/dist/contexts/markdown.d.ts +1 -1
  40. package/dist/contexts/markdown.js +2 -2
  41. package/dist/contexts/navigation.d.ts +1 -1
  42. package/dist/contexts/navigation.js +1 -1
  43. package/dist/contexts/use-components.d.ts +9 -9
  44. package/dist/contexts/use-components.js +2 -2
  45. package/dist/contexts-p3rRZDlM.js +39 -0
  46. package/dist/csharp-CDSxfCZE.js +283 -0
  47. package/dist/docs-yYrp-uzs.d.ts +47 -0
  48. package/dist/go-1c3S5ETL.js +303 -0
  49. package/dist/http-2QNWXH9t.js +330 -0
  50. package/dist/{index-Dt1TxDPe.d.ts → index-BQpRynot.d.ts} +8 -8
  51. package/dist/{index-BPQVqZ6-.d.ts → index-CnilsjrJ.d.ts} +30 -30
  52. package/dist/index-Ct0NcQUK.d.ts +274 -0
  53. package/dist/{index-D_zoydBM.d.ts → index-D6NhcxHd.d.ts} +6 -7
  54. package/dist/index-LboM0f0c.d.ts +15 -0
  55. package/dist/index-avtZIGmX.d.ts +13 -0
  56. package/dist/index.d.ts +18 -19
  57. package/dist/index.js +27 -12
  58. package/dist/java-BbjF_oUI.js +403 -0
  59. package/dist/languages/csharp.d.ts +10 -10
  60. package/dist/languages/csharp.js +7 -9
  61. package/dist/languages/go.d.ts +10 -10
  62. package/dist/languages/go.js +7 -9
  63. package/dist/languages/http.d.ts +10 -10
  64. package/dist/languages/http.js +17 -9
  65. package/dist/languages/index.d.ts +10 -10
  66. package/dist/languages/index.js +24 -9
  67. package/dist/languages/java.d.ts +10 -10
  68. package/dist/languages/java.js +7 -9
  69. package/dist/languages/python.d.ts +10 -10
  70. package/dist/languages/python.js +7 -9
  71. package/dist/languages/ruby.d.ts +10 -10
  72. package/dist/languages/ruby.js +7 -9
  73. package/dist/languages/typescript.d.ts +10 -10
  74. package/dist/languages/typescript.js +7 -9
  75. package/dist/languages-BCYZjzuS.js +26 -0
  76. package/dist/markdown/index.d.ts +4 -3
  77. package/dist/markdown/index.js +103 -10
  78. package/dist/markdown/md.js +1 -1
  79. package/dist/markdown/printer.d.ts +2 -0
  80. package/dist/markdown/printer.js +28 -0
  81. package/dist/markdown/utils.d.ts +2 -2
  82. package/dist/markdown/utils.js +1 -1
  83. package/dist/{markdown-J4fsbXbi.d.ts → markdown-C8o8WrwG.d.ts} +2 -2
  84. package/dist/{markdown-Bx-mQFEj.js → markdown-CxdeWgjV.js} +1 -1
  85. package/dist/markdown-DA2cRtlr.d.ts +22 -0
  86. package/dist/{method-uqti5jIi.d.ts → method-B6eAtYl2.d.ts} +7 -7
  87. package/dist/method-CE08mUME.js +115 -0
  88. package/dist/{navigation-DztmhdsO.d.ts → navigation-BfAVGPgw.d.ts} +3 -3
  89. package/dist/navigation-CjBnMcop.d.ts +29 -0
  90. package/dist/{overview-CXiAiRu3.d.ts → overview-CswoJHww.d.ts} +6 -6
  91. package/dist/overview-DeZSiqFa.d.ts +39 -0
  92. package/dist/overview-S2hUqPXA.js +139 -0
  93. package/dist/primitives-BIWfwN5L.js +258 -0
  94. package/dist/{primitives-CS8fdjfv.d.ts → primitives-Caj5rKBc.d.ts} +9 -9
  95. package/dist/primitives-CbqXZ-5f.d.ts +97 -0
  96. package/dist/printer-DBw4S_Jn.d.ts +13 -0
  97. package/dist/printer-DVZVkqAr.d.ts +13 -0
  98. package/dist/printer-bNxiG6UB.js +74 -0
  99. package/dist/{properties-Bf600pp5.d.ts → properties-BkUlpvU4.d.ts} +5 -5
  100. package/dist/properties-jlGW3USi.js +131 -0
  101. package/dist/python-USOwFDv_.js +279 -0
  102. package/dist/{routing-BcGPNh2R.d.ts → routing-CMqh1cTZ.d.ts} +1 -1
  103. package/dist/routing-Dhmv52Fd.d.ts +54 -0
  104. package/dist/{routing-BGBmkDBL.js → routing-Wbb7YECB.js} +1 -1
  105. package/dist/routing.d.ts +1 -1
  106. package/dist/routing.js +1 -1
  107. package/dist/ruby-CSvGbSLe.js +387 -0
  108. package/dist/{sdk-CuOpWo9I.d.ts → sdk-BOwYR0k6.d.ts} +14 -14
  109. package/dist/sdk-CSCbbn3O.js +336 -0
  110. package/dist/sdk-CdhDsvo3.d.ts +118 -0
  111. package/dist/{sidebar-CqfIoVcr.d.ts → sidebar-BXz93vSy.d.ts} +5 -5
  112. package/dist/sidebar-CWyvCrJ0.js +81 -0
  113. package/dist/snippets-BQLXEIf6.js +161 -0
  114. package/dist/{snippets-BwifQYD4.d.ts → snippets-CbVFNmfq.d.ts} +8 -8
  115. package/dist/snippets-Wjo2dJNw.d.ts +51 -0
  116. package/dist/spec.d.ts +3 -3
  117. package/dist/spec.js +2 -2
  118. package/dist/style.d.ts +1 -1
  119. package/dist/style.js +1 -1
  120. package/dist/styles/resets.css +2 -1
  121. package/dist/styles.css +7 -3
  122. package/dist/typescript-DXG9psK3.js +449 -0
  123. package/dist/{use-components-BAHidYIO.js → use-components-RWQbviGq.js} +1 -1
  124. package/dist/{utils-DAOeBdRL.d.ts → utils-CTGH5e8c.d.ts} +2 -2
  125. package/dist/utils-DNKOwa7D.d.ts +21 -0
  126. package/dist/{utils-0z34vxY4.js → utils-D_1AWSRX.js} +2 -2
  127. package/dist/utils.d.ts +1 -1
  128. package/dist/utils.js +1 -1
  129. package/package.json +6 -20
  130. package/dist/contexts/search.d.ts +0 -2
  131. package/dist/contexts/search.js +0 -11
  132. package/dist/contexts-D3ClFTt3.js +0 -4117
  133. package/dist/pagefind-BHm6c3fb.js +0 -15
  134. package/dist/search/index.d.ts +0 -25
  135. package/dist/search/index.js +0 -332
  136. package/dist/search/mcp.d.ts +0 -13
  137. package/dist/search/mcp.js +0 -43
  138. package/dist/search/providers/algolia.d.ts +0 -24
  139. package/dist/search/providers/algolia.js +0 -11
  140. package/dist/search/providers/fuse.d.ts +0 -18
  141. package/dist/search/providers/fuse.js +0 -27
  142. package/dist/search/providers/pagefind.d.ts +0 -6
  143. package/dist/search/providers/pagefind.js +0 -3
  144. package/dist/search/providers/walker.d.ts +0 -9
  145. package/dist/search/providers/walker.js +0 -31
  146. package/dist/search/types.d.ts +0 -2
  147. package/dist/search/types.js +0 -3
  148. package/dist/search-DvzBAFUW.d.ts +0 -21
  149. package/dist/types-9YHj_ZeX.d.ts +0 -91
  150. package/dist/types-mRzd9aqe.js +0 -35
  151. /package/dist/{chunk-BWfJHHBp.js → chunk-DRcLgZ1e.js} +0 -0
  152. /package/dist/{docs-DGpIHBGY.d.ts → docs-B8-nCRaa.d.ts} +0 -0
  153. /package/dist/{docs-CNvEp0VL.js → docs-CXqi26jB.js} +0 -0
  154. /package/dist/{icons-DzBceOQw.js → icons-Ckod9aod.js} +0 -0
  155. /package/dist/{md-D5AxFoS4.js → md-oM2tUaCA.js} +0 -0
  156. /package/dist/{navigation-bydkHNUW.js → navigation-C5TN0SgC.js} +0 -0
  157. /package/dist/{style-D8hwSwrv.d.ts → style-D7RO5ymE.d.ts} +0 -0
  158. /package/dist/{style-0miv2y38.js → style-gnVEeXFj.js} +0 -0
  159. /package/dist/{utils-CiZXDoFR.js → utils-CqnL9Fc3.js} +0 -0
  160. /package/dist/{utils-BcWczffA.d.ts → utils-d8paVwKN.d.ts} +0 -0
@@ -1,11 +1,11 @@
1
- import "../primitives-CS8fdjfv.js";
2
- import "../breadcrumbs-TNRag6Vy.js";
3
- import "../method-uqti5jIi.js";
4
- import "../properties-Bf600pp5.js";
5
- import "../sdk-CuOpWo9I.js";
6
- import "../snippets-BwifQYD4.js";
7
- import "../overview-CXiAiRu3.js";
8
- import "../sidebar-CqfIoVcr.js";
9
- import "../index-Dt1TxDPe.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-BPQVqZ6-.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";
11
11
  export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -1,11 +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 "../use-components-BAHidYIO.js";
6
- import { B as Property, H as TypeName, R as Declaration, V as Type, z as MethodSignature } from "../contexts-D3ClFTt3.js";
7
- import "../icons-DzBceOQw.js";
8
- import "../md-D5AxFoS4.js";
9
- import "../utils-CiZXDoFR.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";
10
8
 
11
9
  export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -1,11 +1,11 @@
1
- import "../primitives-CS8fdjfv.js";
2
- import "../breadcrumbs-TNRag6Vy.js";
3
- import "../method-uqti5jIi.js";
4
- import "../properties-Bf600pp5.js";
5
- import "../sdk-CuOpWo9I.js";
6
- import "../snippets-BwifQYD4.js";
7
- import "../overview-CXiAiRu3.js";
8
- import "../sidebar-CqfIoVcr.js";
9
- import "../index-Dt1TxDPe.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-BPQVqZ6-.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";
11
11
  export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -1,11 +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 "../use-components-BAHidYIO.js";
6
- import { F as Type, I as TypeName, M as Declaration, N as MethodSignature, P as Property } from "../contexts-D3ClFTt3.js";
7
- import "../icons-DzBceOQw.js";
8
- import "../md-D5AxFoS4.js";
9
- import "../utils-CiZXDoFR.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";
10
8
 
11
9
  export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -1,11 +1,11 @@
1
- import "../primitives-CS8fdjfv.js";
2
- import "../breadcrumbs-TNRag6Vy.js";
3
- import "../method-uqti5jIi.js";
4
- import "../properties-Bf600pp5.js";
5
- import "../sdk-CuOpWo9I.js";
6
- import "../snippets-BwifQYD4.js";
7
- import "../overview-CXiAiRu3.js";
8
- import "../sidebar-CqfIoVcr.js";
9
- import "../index-Dt1TxDPe.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-BPQVqZ6-.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";
11
11
  export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -1,11 +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 "../use-components-BAHidYIO.js";
6
- import { at as Type, it as Property, nt as Declaration, ot as TypeName, rt as MethodSignature } from "../contexts-D3ClFTt3.js";
7
- import "../icons-DzBceOQw.js";
8
- import "../md-D5AxFoS4.js";
9
- import "../utils-CiZXDoFR.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";
10
8
 
11
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,5 +1,6 @@
1
- import "../sdk-CuOpWo9I.js";
2
- import { t as EnvironmentType } from "../utils-DAOeBdRL.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";
3
4
  import { Node } from "@markdoc/markdoc";
4
5
  import * as SDKJSON from "@stainless/sdk-json";
5
6
 
@@ -8,4 +9,4 @@ declare function declaration(env: EnvironmentType, decl: SDKJSON.DeclarationNode
8
9
  declare function render(env: EnvironmentType, node: SDKJSON.Resource | SDKJSON.Method | SDKJSON.Model): Node[];
9
10
  declare function renderMarkdown(env: EnvironmentType, node: SDKJSON.Resource | SDKJSON.Method | SDKJSON.Model): string;
10
11
  //#endregion
11
- export { declaration, render, renderMarkdown };
12
+ export { declaration, printer_d_exports as printer, render, renderMarkdown };
@@ -1,11 +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 "../use-components-BAHidYIO.js";
6
- import { d as declaration, f as render, p as renderMarkdown } from "../contexts-D3ClFTt3.js";
7
- import "../icons-DzBceOQw.js";
8
- import "../md-D5AxFoS4.js";
9
- import "../utils-CiZXDoFR.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";
10
30
 
11
- 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,3 +1,3 @@
1
- import "../sdk-CuOpWo9I.js";
2
- import { i as stripMarkup, n as getDecl, r as getSnippet, t as EnvironmentType } from "../utils-DAOeBdRL.js";
1
+ import "../sdk-BOwYR0k6.js";
2
+ import { i as stripMarkup, n as getDecl, r as getSnippet, t as EnvironmentType } from "../utils-CTGH5e8c.js";
3
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,5 +1,5 @@
1
1
  import * as React$1 from "react";
2
- import * as react_jsx_runtime59 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/contexts/markdown.d.ts
5
5
  type MarkdownContext = {
@@ -17,6 +17,6 @@ declare function MarkdownProvider({
17
17
  render,
18
18
  highlight,
19
19
  children
20
- }: MarkdownProviderProps): react_jsx_runtime59.JSX.Element;
20
+ }: MarkdownProviderProps): react_jsx_runtime0.JSX.Element;
21
21
  //#endregion
22
22
  export { useMarkdownContext as a, useHighlight as i, MarkdownProvider as n, useRenderMarkdown as o, MarkdownProviderProps as r, MarkdownContext as t };
@@ -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 };
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from "react";
2
2
  import { ReactNode } from "react";
3
- import * as react_jsx_runtime42 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime12 from "react/jsx-runtime";
4
4
  import { LucideIcon } from "lucide-react";
5
5
 
6
6
  //#region src/components/method.d.ts
@@ -14,7 +14,7 @@ type MethodIconProps = {
14
14
  declare function MethodIconBadge({
15
15
  httpMethod,
16
16
  showName
17
- }: MethodIconProps): react_jsx_runtime42.JSX.Element | null;
17
+ }: MethodIconProps): react_jsx_runtime12.JSX.Element | null;
18
18
  type MethodHeaderProps = {
19
19
  title: ReactNode;
20
20
  level?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5';
@@ -28,7 +28,7 @@ declare function MethodHeader({
28
28
  signature,
29
29
  children,
30
30
  level
31
- }: MethodHeaderProps): react_jsx_runtime42.JSX.Element;
31
+ }: MethodHeaderProps): react_jsx_runtime12.JSX.Element;
32
32
  type MethodRouteProps = {
33
33
  httpMethod?: string;
34
34
  endpoint?: string | ReactNode;
@@ -38,13 +38,13 @@ declare function MethodRoute({
38
38
  httpMethod,
39
39
  endpoint,
40
40
  iconOnly
41
- }: MethodRouteProps): react_jsx_runtime42.JSX.Element;
41
+ }: MethodRouteProps): react_jsx_runtime12.JSX.Element;
42
42
  type MethodDescriptionProps = {
43
43
  description?: string;
44
44
  };
45
45
  declare function MethodDescription({
46
46
  description
47
- }: MethodDescriptionProps): react_jsx_runtime42.JSX.Element | undefined;
47
+ }: MethodDescriptionProps): react_jsx_runtime12.JSX.Element | undefined;
48
48
  type MethodInfoProps = {
49
49
  children?: ReactNode;
50
50
  parameters?: ReactNode;
@@ -54,7 +54,7 @@ declare function MethodInfo({
54
54
  children,
55
55
  parameters,
56
56
  returns
57
- }: MethodInfoProps): react_jsx_runtime42.JSX.Element;
57
+ }: MethodInfoProps): react_jsx_runtime12.JSX.Element;
58
58
  type MethodProps = {
59
59
  id?: string;
60
60
  header?: ReactNode;
@@ -66,6 +66,6 @@ declare function Method({
66
66
  children,
67
67
  className,
68
68
  ...props
69
- }: MethodProps): react_jsx_runtime42.JSX.Element;
69
+ }: MethodProps): react_jsx_runtime12.JSX.Element;
70
70
  //#endregion
71
71
  export { MethodDescription as a, MethodHeaderProps as c, MethodInfo as d, MethodInfoProps as f, MethodRouteProps as h, Method as i, MethodIconBadge as l, MethodRoute as m, HttpMethodIcons as n, MethodDescriptionProps as o, MethodProps as p, HttpMethods as r, MethodHeader as s, HTTPMethod as t, MethodIconProps as u };
@@ -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-BcGPNh2R.js";
1
+ import { t as DocsLanguage } from "./routing-Dhmv52Fd.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime73 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_runtime73.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 };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime10 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime18 from "react/jsx-runtime";
2
2
  import * as SDKJSON from "@stainless/sdk-json";
3
3
 
4
4
  //#region src/components/overview.d.ts
@@ -9,31 +9,31 @@ type SDKResourceProps = {
9
9
  declare function SDKResourceHeader({
10
10
  resource,
11
11
  parents
12
- }: SDKResourceProps): react_jsx_runtime10.JSX.Element | null;
12
+ }: SDKResourceProps): react_jsx_runtime18.JSX.Element | null;
13
13
  type SDKMethodSummaryProps = {
14
14
  method: SDKJSON.Method;
15
15
  };
16
16
  declare function SDKMethodSummary({
17
17
  method
18
- }: SDKMethodSummaryProps): react_jsx_runtime10.JSX.Element;
18
+ }: SDKMethodSummaryProps): react_jsx_runtime18.JSX.Element;
19
19
  declare function SDKResource({
20
20
  resource,
21
21
  parents,
22
22
  showModels
23
23
  }: SDKResourceProps & {
24
24
  showModels?: boolean;
25
- }): react_jsx_runtime10.JSX.Element;
25
+ }): react_jsx_runtime18.JSX.Element;
26
26
  type SDKOverviewProps = {
27
27
  resource: SDKJSON.Resource;
28
28
  };
29
29
  declare function SDKOverview({
30
30
  resource
31
- }: SDKOverviewProps): react_jsx_runtime10.JSX.Element;
31
+ }: SDKOverviewProps): react_jsx_runtime18.JSX.Element;
32
32
  type SDKRootProps = {
33
33
  stainlessPath: string;
34
34
  };
35
35
  declare function SDKRoot({
36
36
  stainlessPath
37
- }: SDKRootProps): react_jsx_runtime10.JSX.Element | null;
37
+ }: SDKRootProps): react_jsx_runtime18.JSX.Element | null;
38
38
  //#endregion
39
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 };