@stainless-api/docs-ui 0.1.0-beta.52 → 0.1.0-beta.53

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 (132) hide show
  1. package/dist/{breadcrumbs-CI98FNF5.d.ts → breadcrumbs-B3lvHi-c.d.ts} +2 -2
  2. package/dist/{breadcrumbs-nSFZO5Gf.js → breadcrumbs-CMuhzgT7.js} +2 -2
  3. package/dist/{chunk-DRcLgZ1e.js → chunk-CAbhIZi1.js} +2 -2
  4. package/dist/component-BYfWhHQW.js +23 -0
  5. package/dist/{component-generics-aCdP-C69.d.ts → component-generics-DXP3ULvt.d.ts} +2 -2
  6. package/dist/{component-generics-COP53CRn.d.ts → component-generics-VJ70v3jX.d.ts} +2 -2
  7. package/dist/components/MaskedInput.d.ts +3 -3
  8. package/dist/components/breadcrumbs.d.ts +1 -1
  9. package/dist/components/breadcrumbs.js +3 -3
  10. package/dist/components/icons.d.ts +11 -11
  11. package/dist/components/index.d.ts +9 -9
  12. package/dist/components/index.js +11 -11
  13. package/dist/components/method.d.ts +1 -1
  14. package/dist/components/method.js +4 -4
  15. package/dist/components/overview.d.ts +1 -1
  16. package/dist/components/overview.js +5 -5
  17. package/dist/components/primitives.d.ts +1 -1
  18. package/dist/components/primitives.js +2 -2
  19. package/dist/components/properties.d.ts +1 -1
  20. package/dist/components/properties.js +3 -3
  21. package/dist/components/sdk.d.ts +1 -1
  22. package/dist/components/sdk.js +3 -3
  23. package/dist/components/sidebar.d.ts +1 -1
  24. package/dist/components/sidebar.js +5 -5
  25. package/dist/components/snippets.d.ts +2 -2
  26. package/dist/components/snippets.js +3 -3
  27. package/dist/{components-D7M-BwNI.js → components-D8QDCui1.js} +10 -10
  28. package/dist/contexts/component-generics.d.ts +1 -1
  29. package/dist/contexts/component-types.d.ts +10 -10
  30. package/dist/contexts/component.d.ts +13 -13
  31. package/dist/contexts/component.js +20 -20
  32. package/dist/contexts/docs.d.ts +1 -1
  33. package/dist/contexts/index.d.ts +22 -16
  34. package/dist/contexts/index.js +1 -1
  35. package/dist/contexts/markdown.d.ts +1 -1
  36. package/dist/contexts/navigation.d.ts +1 -1
  37. package/dist/contexts/use-components.d.ts +9 -9
  38. package/dist/contexts/use-components.js +1 -1
  39. package/dist/{contexts-p3rRZDlM.js → contexts-CLpvBI91.js} +2 -2
  40. package/dist/{csharp-CDSxfCZE.js → csharp-Ba5efX6D.js} +4 -4
  41. package/dist/{docs-SeQmavpx.d.ts → docs-AUJrRqst.d.ts} +2 -2
  42. package/dist/{docs-CmJkvs5K.d.ts → docs-MVz2XX5s.d.ts} +2 -2
  43. package/dist/{go-1c3S5ETL.js → go-CpQCf3l5.js} +4 -4
  44. package/dist/{http-2QNWXH9t.js → http-DnXtwYax.js} +5 -5
  45. package/dist/{index-CzDV0BnQ.d.ts → index-CNuNmlhP.d.ts} +53 -53
  46. package/dist/{index-ReQTPmXD.d.ts → index-CX7THZ5A.d.ts} +8 -8
  47. package/dist/{index-CErkkMkL.d.ts → index-DBINmyRo.d.ts} +24 -24
  48. package/dist/{index-BzTFhFWf.d.ts → index-xsX1w-7u.d.ts} +8 -8
  49. package/dist/index.d.ts +18 -18
  50. package/dist/index.js +21 -21
  51. package/dist/{java-BbjF_oUI.js → java-BnaaIuAz.js} +4 -4
  52. package/dist/languages/csharp.d.ts +10 -10
  53. package/dist/languages/csharp.js +3 -3
  54. package/dist/languages/go.d.ts +10 -10
  55. package/dist/languages/go.js +3 -3
  56. package/dist/languages/http.d.ts +10 -10
  57. package/dist/languages/http.js +12 -12
  58. package/dist/languages/index.d.ts +10 -10
  59. package/dist/languages/index.js +19 -19
  60. package/dist/languages/java.d.ts +10 -10
  61. package/dist/languages/java.js +3 -3
  62. package/dist/languages/python.d.ts +10 -10
  63. package/dist/languages/python.js +3 -3
  64. package/dist/languages/ruby.d.ts +10 -10
  65. package/dist/languages/ruby.js +3 -3
  66. package/dist/languages/typescript.d.ts +10 -10
  67. package/dist/languages/typescript.js +3 -3
  68. package/dist/languages-DXv7zsEW.js +26 -0
  69. package/dist/markdown/index.d.ts +3 -3
  70. package/dist/markdown/index.js +23 -23
  71. package/dist/markdown/md.js +39 -1
  72. package/dist/markdown/printer.d.ts +13 -2
  73. package/dist/markdown/printer.js +91 -23
  74. package/dist/markdown/utils.d.ts +20 -2
  75. package/dist/markdown/utils.js +29 -1
  76. package/dist/{markdown-BGCM0OeE.d.ts → markdown--wN50S_T.d.ts} +2 -2
  77. package/dist/{markdown-CiFjFgOF.d.ts → markdown-V_bNKjle.d.ts} +2 -2
  78. package/dist/{method-BLlsdXBF.d.ts → method-CrNc3HtN.d.ts} +7 -7
  79. package/dist/{method-CE08mUME.js → method-qhstNvML.js} +2 -2
  80. package/dist/{navigation-BLGsIR9F.d.ts → navigation-BJKh5ucf.d.ts} +3 -3
  81. package/dist/{navigation-yYOrOKD9.d.ts → navigation-ULXC5uFs.d.ts} +3 -3
  82. package/dist/{overview-S2hUqPXA.js → overview-B0C2Jc86.js} +6 -6
  83. package/dist/{overview-CTlpyjbv.d.ts → overview-Cy78uUKW.d.ts} +6 -6
  84. package/dist/{overview-FMVqthvd.d.ts → overview-DaVwshbY.d.ts} +6 -6
  85. package/dist/{primitives-Epom-ge3.d.ts → primitives-Bjj20ctf.d.ts} +9 -9
  86. package/dist/{primitives-BIWfwN5L.js → primitives-DBllhZFN.js} +1 -1
  87. package/dist/{primitives-Yt5_6f07.d.ts → primitives-DsRHkHGI.d.ts} +9 -9
  88. package/dist/{properties-DQTdO9Cq.d.ts → properties-BRaEgTX5.d.ts} +5 -5
  89. package/dist/{properties-jlGW3USi.js → properties-N8WgxEHE.js} +1 -1
  90. package/dist/{properties-e7mCw5QL.d.ts → properties-fj-2sAW8.d.ts} +5 -5
  91. package/dist/{python-CHG2jGvC.js → python-DsTU3C4E.js} +4 -4
  92. package/dist/{routing-Dhmv52Fd.d.ts → routing-BcWYAHJp.d.ts} +1 -1
  93. package/dist/{routing-Wbb7YECB.js → routing-Dl0FprK1.js} +2 -2
  94. package/dist/routing.d.ts +1 -1
  95. package/dist/routing.js +1 -1
  96. package/dist/{ruby-CSvGbSLe.js → ruby-CLGbdYN8.js} +4 -4
  97. package/dist/{sdk-P5DGFIUC.d.ts → sdk-BBe_u8ZX.d.ts} +14 -14
  98. package/dist/{sdk-CSCbbn3O.js → sdk-BKdaidz1.js} +3 -3
  99. package/dist/{sdk-C_2E2iNT.d.ts → sdk-zkHxx2nq.d.ts} +14 -14
  100. package/dist/{sidebar-CWyvCrJ0.js → sidebar-BWDZQSmn.js} +3 -3
  101. package/dist/{sidebar-CbCLUteD.d.ts → sidebar-BaDPwqdV.d.ts} +5 -5
  102. package/dist/{sidebar-rOXMRjUW.d.ts → sidebar-sPFdjATU.d.ts} +5 -5
  103. package/dist/{snippets-BK_yl-X-.d.ts → snippets-B0sKAjU-.d.ts} +8 -8
  104. package/dist/{snippets-C8xhXoaB.d.ts → snippets-BQgrub4H.d.ts} +8 -8
  105. package/dist/{snippets-BQLXEIf6.js → snippets-DYnUt5eM.js} +1 -1
  106. package/dist/spec.d.ts +3 -3
  107. package/dist/spec.js +2 -2
  108. package/dist/style.d.ts +167 -1
  109. package/dist/styles.css +62 -0
  110. package/dist/{typescript-DXG9psK3.js → typescript-CJraLOyM.js} +4 -4
  111. package/dist/use-components-DBx5LZk0.js +7 -0
  112. package/dist/{utils-D_1AWSRX.js → utils-C12Fme2N.js} +3 -3
  113. package/dist/utils.d.ts +14 -2
  114. package/dist/utils.js +1 -1
  115. package/package.json +5 -5
  116. package/dist/component-CjONRbeK.js +0 -23
  117. package/dist/index-CebZpsfQ.d.ts +0 -13
  118. package/dist/index-DGag9-aC.d.ts +0 -13
  119. package/dist/languages-BqGqTy14.js +0 -26
  120. package/dist/md-oM2tUaCA.js +0 -41
  121. package/dist/printer-DBw4S_Jn.d.ts +0 -13
  122. package/dist/printer-DVZVkqAr.d.ts +0 -13
  123. package/dist/printer-Y_ONp3hs.js +0 -74
  124. package/dist/style-D7RO5ymE.d.ts +0 -168
  125. package/dist/use-components-RWQbviGq.js +0 -7
  126. package/dist/utils-CqnL9Fc3.js +0 -31
  127. package/dist/utils-DBenMgxx.d.ts +0 -21
  128. package/dist/utils-DLRASeee.d.ts +0 -21
  129. package/dist/utils-d8paVwKN.d.ts +0 -14
  130. /package/dist/{breadcrumbs-DEyC9k79.d.ts → breadcrumbs-DgJ-MlEX.d.ts} +0 -0
  131. /package/dist/{method-B6eAtYl2.d.ts → method-cLcsCc31.d.ts} +0 -0
  132. /package/dist/{routing-CMqh1cTZ.d.ts → routing-CUnVDpU-.d.ts} +0 -0
@@ -1,11 +1,11 @@
1
- import "../primitives-Yt5_6f07.js";
2
- import "../breadcrumbs-DEyC9k79.js";
3
- import "../method-B6eAtYl2.js";
4
- import "../properties-e7mCw5QL.js";
5
- import "../sdk-C_2E2iNT.js";
6
- import "../snippets-C8xhXoaB.js";
7
- import "../overview-FMVqthvd.js";
8
- import "../sidebar-rOXMRjUW.js";
9
- import "../index-ReQTPmXD.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-CErkkMkL.js";
1
+ import "../primitives-Bjj20ctf.js";
2
+ import "../breadcrumbs-B3lvHi-c.js";
3
+ import "../method-CrNc3HtN.js";
4
+ import "../properties-BRaEgTX5.js";
5
+ import "../sdk-BBe_u8ZX.js";
6
+ import "../snippets-B0sKAjU-.js";
7
+ import "../overview-Cy78uUKW.js";
8
+ import "../sidebar-sPFdjATU.js";
9
+ import "../index-CX7THZ5A.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-DBINmyRo.js";
11
11
  export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -2,8 +2,8 @@ import "../docs-CXqi26jB.js";
2
2
  import "../component-generics-B6Fn47Mz.js";
3
3
  import "../navigation-C5TN0SgC.js";
4
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";
5
+ import "../contexts-CLpvBI91.js";
6
+ import "../use-components-DBx5LZk0.js";
7
+ import { a as TypeName, i as Type, n as MethodSignature, r as Property, t as Declaration } from "../ruby-CLGbdYN8.js";
8
8
 
9
9
  export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -1,11 +1,11 @@
1
- import "../primitives-Yt5_6f07.js";
2
- import "../breadcrumbs-DEyC9k79.js";
3
- import "../method-B6eAtYl2.js";
4
- import "../properties-e7mCw5QL.js";
5
- import "../sdk-C_2E2iNT.js";
6
- import "../snippets-C8xhXoaB.js";
7
- import "../overview-FMVqthvd.js";
8
- import "../sidebar-rOXMRjUW.js";
9
- import "../index-ReQTPmXD.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-CErkkMkL.js";
1
+ import "../primitives-Bjj20ctf.js";
2
+ import "../breadcrumbs-B3lvHi-c.js";
3
+ import "../method-CrNc3HtN.js";
4
+ import "../properties-BRaEgTX5.js";
5
+ import "../sdk-BBe_u8ZX.js";
6
+ import "../snippets-B0sKAjU-.js";
7
+ import "../overview-Cy78uUKW.js";
8
+ import "../sidebar-sPFdjATU.js";
9
+ import "../index-CX7THZ5A.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-DBINmyRo.js";
11
11
  export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -2,8 +2,8 @@ import "../docs-CXqi26jB.js";
2
2
  import "../component-generics-B6Fn47Mz.js";
3
3
  import "../navigation-C5TN0SgC.js";
4
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";
5
+ import "../contexts-CLpvBI91.js";
6
+ import "../use-components-DBx5LZk0.js";
7
+ import { a as TypeName, i as Type, n as MethodSignature, r as Property, t as Declaration } from "../typescript-CJraLOyM.js";
8
8
 
9
9
  export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -0,0 +1,26 @@
1
+ import { t as __exportAll } from "./chunk-CAbhIZi1.js";
2
+ import { o as typescript_exports } from "./typescript-CJraLOyM.js";
3
+ import { o as java_exports } from "./java-BnaaIuAz.js";
4
+ import { o as go_exports } from "./go-CpQCf3l5.js";
5
+ import { o as python_exports } from "./python-DsTU3C4E.js";
6
+ import { o as ruby_exports } from "./ruby-CLGbdYN8.js";
7
+ import { s as http_exports } from "./http-DnXtwYax.js";
8
+ import { o as csharp_exports } from "./csharp-Ba5efX6D.js";
9
+
10
+ //#region src/languages/index.ts
11
+ var languages_exports = /* @__PURE__ */ __exportAll({
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 "../sdk-C_2E2iNT.js";
2
- import { t as EnvironmentType } from "../utils-DBenMgxx.js";
3
- import { r as printer_d_exports } from "../printer-DBw4S_Jn.js";
1
+ import "../sdk-BBe_u8ZX.js";
2
+ import { EnvironmentType } from "./utils.js";
3
+ import { t as printer_d_exports } from "./printer.js";
4
4
  import { Node } from "@markdoc/markdoc";
5
5
  import * as SDKJSON from "@stainless/sdk-json";
6
6
 
@@ -2,30 +2,30 @@ import "../docs-CXqi26jB.js";
2
2
  import "../component-generics-B6Fn47Mz.js";
3
3
  import "../navigation-C5TN0SgC.js";
4
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";
5
+ import "../contexts-CLpvBI91.js";
6
+ import "../use-components-DBx5LZk0.js";
7
+ import "../properties-N8WgxEHE.js";
8
+ import "../method-qhstNvML.js";
9
+ import "../primitives-DBllhZFN.js";
10
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-CHG2jGvC.js";
21
- import "../ruby-CSvGbSLe.js";
22
- import "../http-2QNWXH9t.js";
23
- import "../csharp-CDSxfCZE.js";
24
- import "../languages-BqGqTy14.js";
25
- import "../component-CjONRbeK.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-Y_ONp3hs.js";
11
+ import "../sdk-BKdaidz1.js";
12
+ import "../snippets-DYnUt5eM.js";
13
+ import "../overview-B0C2Jc86.js";
14
+ import "../breadcrumbs-CMuhzgT7.js";
15
+ import "../sidebar-BWDZQSmn.js";
16
+ import "../components-D8QDCui1.js";
17
+ import "../typescript-CJraLOyM.js";
18
+ import "../java-BnaaIuAz.js";
19
+ import "../go-CpQCf3l5.js";
20
+ import "../python-DsTU3C4E.js";
21
+ import "../ruby-CLGbdYN8.js";
22
+ import "../http-DnXtwYax.js";
23
+ import "../csharp-Ba5efX6D.js";
24
+ import "../languages-DXv7zsEW.js";
25
+ import "../component-BYfWhHQW.js";
26
+ import { code, fence, heading, item, list, paragraph, parse, strong, text } from "./md.js";
27
+ import { getDecl, getSnippet, stripMarkup } from "./utils.js";
28
+ import { declaration as declaration$1, methodSignature, t as printer_exports } from "./printer.js";
29
29
  import Markdoc from "@markdoc/markdoc";
30
30
 
31
31
  //#region src/markdown/index.ts
@@ -1,3 +1,41 @@
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";
1
+ import Markdoc from "@markdoc/markdoc";
2
2
 
3
+ //#region src/markdown/md.ts
4
+ function heading(level, children) {
5
+ const content = inline(...typeof children === "string" ? [text(children)] : children);
6
+ return new Markdoc.Ast.Node("heading", { level }, [content]);
7
+ }
8
+ function text(content) {
9
+ return new Markdoc.Ast.Node("text", { content });
10
+ }
11
+ function code(content) {
12
+ return new Markdoc.Ast.Node("code", { content });
13
+ }
14
+ function paragraph(...children) {
15
+ const inline$1 = new Markdoc.Ast.Node("inline", {}, children);
16
+ return new Markdoc.Ast.Node("paragraph", {}, [inline$1]);
17
+ }
18
+ function list(...children) {
19
+ return new Markdoc.Ast.Node("list", { ordered: false }, children);
20
+ }
21
+ function item(...children) {
22
+ return new Markdoc.Ast.Node("item", {}, children);
23
+ }
24
+ function strong(...children) {
25
+ return new Markdoc.Ast.Node("strong", {}, children);
26
+ }
27
+ function inline(...children) {
28
+ return new Markdoc.Ast.Node("inline", {}, children);
29
+ }
30
+ function fence(language, content) {
31
+ return new Markdoc.Ast.Node("fence", {
32
+ language,
33
+ content
34
+ });
35
+ }
36
+ function parse(content) {
37
+ return Markdoc.parse(content).children;
38
+ }
39
+
40
+ //#endregion
3
41
  export { code, fence, heading, inline, item, list, paragraph, parse, strong, text };
@@ -1,2 +1,13 @@
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 };
1
+ import { t as DocsLanguage } from "../routing-BcWYAHJp.js";
2
+ import * as SDKJSON from "@stainless/sdk-json";
3
+
4
+ //#region src/markdown/printer.d.ts
5
+ declare namespace printer_d_exports {
6
+ export { declaration, methodSignature, type, typeName };
7
+ }
8
+ declare function typeName(language: DocsLanguage, type: SDKJSON.Type): string;
9
+ declare function type(language: DocsLanguage, type: SDKJSON.Type): string;
10
+ declare function declaration(language: DocsLanguage, decl: SDKJSON.DeclarationNode): string;
11
+ declare function methodSignature(language: DocsLanguage, decl: SDKJSON.DeclarationNode): string;
12
+ //#endregion
13
+ export { declaration, methodSignature, printer_d_exports as t, type, typeName };
@@ -1,28 +1,96 @@
1
- import "../docs-CXqi26jB.js";
1
+ import { t as __exportAll } from "../chunk-CAbhIZi1.js";
2
+ import { t as DocsProvider } from "../docs-CXqi26jB.js";
2
3
  import "../component-generics-B6Fn47Mz.js";
3
4
  import "../navigation-C5TN0SgC.js";
4
5
  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";
6
+ import { n as useLanguageComponents } from "../contexts-CLpvBI91.js";
7
+ import "../use-components-DBx5LZk0.js";
8
+ import { t as style_default } from "../style-gnVEeXFj.js";
9
+ import "../properties-N8WgxEHE.js";
10
+ import "../method-qhstNvML.js";
11
+ import "../primitives-DBllhZFN.js";
10
12
  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-CHG2jGvC.js";
21
- import "../ruby-CSvGbSLe.js";
22
- import "../http-2QNWXH9t.js";
23
- import "../csharp-CDSxfCZE.js";
24
- import "../languages-BqGqTy14.js";
25
- import "../component-CjONRbeK.js";
26
- import { a as typeName, i as type, n as methodSignature, t as declaration } from "../printer-Y_ONp3hs.js";
13
+ import "../sdk-BKdaidz1.js";
14
+ import "../snippets-DYnUt5eM.js";
15
+ import "../overview-B0C2Jc86.js";
16
+ import "../breadcrumbs-CMuhzgT7.js";
17
+ import "../sidebar-BWDZQSmn.js";
18
+ import "../components-D8QDCui1.js";
19
+ import "../typescript-CJraLOyM.js";
20
+ import "../java-BnaaIuAz.js";
21
+ import "../go-CpQCf3l5.js";
22
+ import "../python-DsTU3C4E.js";
23
+ import "../ruby-CLGbdYN8.js";
24
+ import "../http-DnXtwYax.js";
25
+ import "../csharp-Ba5efX6D.js";
26
+ import "../languages-DXv7zsEW.js";
27
+ import { t as ComponentProvider } from "../component-BYfWhHQW.js";
28
+ import "react";
29
+ import { jsx } from "react/jsx-runtime";
30
+ import { renderToStaticMarkup } from "react-dom/server";
27
31
 
28
- export { declaration, methodSignature, type, typeName };
32
+ //#region src/markdown/printer.tsx
33
+ var printer_exports = /* @__PURE__ */ __exportAll({
34
+ declaration: () => declaration,
35
+ methodSignature: () => methodSignature,
36
+ type: () => type,
37
+ typeName: () => typeName
38
+ });
39
+ function Providers({ language, children }) {
40
+ return /* @__PURE__ */ jsx(DocsProvider, {
41
+ spec: null,
42
+ language,
43
+ children: /* @__PURE__ */ jsx(ComponentProvider, {
44
+ components: { SDKReference({ stainlessPath, children: children$1 }) {
45
+ if (!stainlessPath) return children$1;
46
+ return /* @__PURE__ */ jsx("span", {
47
+ className: style_default.TypeReference,
48
+ children: children$1
49
+ });
50
+ } },
51
+ children
52
+ })
53
+ });
54
+ }
55
+ function RenderType({ type: type$1, full }) {
56
+ const { Type, TypeName } = useLanguageComponents();
57
+ return full ? /* @__PURE__ */ jsx(Type, { type: type$1 }) : /* @__PURE__ */ jsx(TypeName, { type: type$1 });
58
+ }
59
+ function typeName(language, type$1) {
60
+ return renderToStaticMarkup(/* @__PURE__ */ jsx(Providers, {
61
+ language,
62
+ children: /* @__PURE__ */ jsx(RenderType, { type: type$1 })
63
+ }));
64
+ }
65
+ function type(language, type$1) {
66
+ return renderToStaticMarkup(/* @__PURE__ */ jsx(Providers, {
67
+ language,
68
+ children: /* @__PURE__ */ jsx(RenderType, {
69
+ type: type$1,
70
+ full: true
71
+ })
72
+ }));
73
+ }
74
+ function RenderDeclaration({ decl }) {
75
+ const { Declaration } = useLanguageComponents();
76
+ return /* @__PURE__ */ jsx(Declaration, { decl });
77
+ }
78
+ function declaration(language, decl) {
79
+ return renderToStaticMarkup(/* @__PURE__ */ jsx(Providers, {
80
+ language,
81
+ children: /* @__PURE__ */ jsx(RenderDeclaration, { decl })
82
+ }));
83
+ }
84
+ function RenderMethod({ method }) {
85
+ const { MethodSignature } = useLanguageComponents();
86
+ return /* @__PURE__ */ jsx(MethodSignature, { decl: method });
87
+ }
88
+ function methodSignature(language, decl) {
89
+ return renderToStaticMarkup(/* @__PURE__ */ jsx(Providers, {
90
+ language,
91
+ children: /* @__PURE__ */ jsx(RenderMethod, { method: decl })
92
+ }));
93
+ }
94
+
95
+ //#endregion
96
+ export { declaration, methodSignature, printer_exports as t, type, typeName };
@@ -1,3 +1,21 @@
1
- import "../sdk-C_2E2iNT.js";
2
- import { i as stripMarkup, n as getDecl, r as getSnippet, t as EnvironmentType } from "../utils-DBenMgxx.js";
1
+ import { t as DocsLanguage } from "../routing-BcWYAHJp.js";
2
+ import { C as TransformRequestSnippetFn } from "../sdk-BBe_u8ZX.js";
3
+ import * as SDKJSON from "@stainless/sdk-json";
4
+
5
+ //#region src/markdown/utils.d.ts
6
+ type EnvironmentType = {
7
+ spec: SDKJSON.Spec;
8
+ language: DocsLanguage;
9
+ transforms?: {
10
+ transformRequestSnippet?: TransformRequestSnippetFn;
11
+ };
12
+ options: {
13
+ renderNestedResources?: boolean;
14
+ includeModelProperties?: boolean;
15
+ };
16
+ };
17
+ declare function getDecl(env: EnvironmentType, path: string): SDKJSON.LanguageDeclNodes[SDKJSON.SpecLanguage] | undefined;
18
+ declare function getSnippet(env: EnvironmentType, path: string): string | undefined;
19
+ declare function stripMarkup(content: string): string;
20
+ //#endregion
3
21
  export { EnvironmentType, getDecl, getSnippet, stripMarkup };
@@ -1,3 +1,31 @@
1
- import { n as getSnippet, r as stripMarkup, t as getDecl } from "../utils-CqnL9Fc3.js";
1
+ import { Parser } from "htmlparser2";
2
2
 
3
+ //#region src/markdown/utils.ts
4
+ function getDecl(env, path) {
5
+ const decl = env.spec?.decls?.[env.language]?.[path];
6
+ if (decl?.kind?.endsWith("Reference")) {
7
+ const refId = "type" in decl && typeof decl["type"] === "object" && "$ref" in decl["type"] ? decl["type"]["$ref"] : null;
8
+ if (refId === path) return decl;
9
+ if (refId) return getDecl(env, refId);
10
+ }
11
+ return decl;
12
+ }
13
+ function getSnippet(env, path) {
14
+ const lang = env.language === "http" ? "http.curl" : `${env.language}.default`;
15
+ let snippet = env.spec?.snippets?.[lang]?.[path];
16
+ if (typeof snippet === "string" && env.transforms?.transformRequestSnippet) snippet = env.transforms.transformRequestSnippet({
17
+ snippet,
18
+ language: env.language
19
+ });
20
+ return snippet;
21
+ }
22
+ function stripMarkup(content) {
23
+ let output = "";
24
+ new Parser({ ontext(content$1) {
25
+ output += content$1;
26
+ } }).parseComplete(content);
27
+ return output;
28
+ }
29
+
30
+ //#endregion
3
31
  export { getDecl, getSnippet, stripMarkup };
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from "react";
2
- import * as react_jsx_runtime84 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime6 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_runtime84.JSX.Element;
20
+ }: MarkdownProviderProps): react_jsx_runtime6.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,5 +1,5 @@
1
1
  import * as React$1 from "react";
2
- import * as react_jsx_runtime79 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime88 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_runtime79.JSX.Element;
20
+ }: MarkdownProviderProps): react_jsx_runtime88.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,6 +1,6 @@
1
1
  import * as React$1 from "react";
2
2
  import { ReactNode } from "react";
3
- import * as react_jsx_runtime37 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime17 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_runtime37.JSX.Element | null;
17
+ }: MethodIconProps): react_jsx_runtime17.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_runtime37.JSX.Element;
31
+ }: MethodHeaderProps): react_jsx_runtime17.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_runtime37.JSX.Element;
41
+ }: MethodRouteProps): react_jsx_runtime17.JSX.Element;
42
42
  type MethodDescriptionProps = {
43
43
  description?: string;
44
44
  };
45
45
  declare function MethodDescription({
46
46
  description
47
- }: MethodDescriptionProps): react_jsx_runtime37.JSX.Element | undefined;
47
+ }: MethodDescriptionProps): react_jsx_runtime17.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_runtime37.JSX.Element;
57
+ }: MethodInfoProps): react_jsx_runtime17.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_runtime37.JSX.Element;
69
+ }: MethodProps): react_jsx_runtime17.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 };
@@ -1,6 +1,6 @@
1
- import { t as useComponents } from "./use-components-RWQbviGq.js";
1
+ import { t as useComponents } from "./use-components-DBx5LZk0.js";
2
2
  import { t as style_default } from "./style-gnVEeXFj.js";
3
- import { i as PropertyToggle } from "./properties-jlGW3USi.js";
3
+ import { i as PropertyToggle } from "./properties-N8WgxEHE.js";
4
4
  import * as React$1 from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { ArrowDownLeft, ArrowUpRight, X } from "lucide-react";
@@ -1,6 +1,6 @@
1
- import { t as DocsLanguage } from "./routing-Dhmv52Fd.js";
1
+ import { t as DocsLanguage } from "./routing-BcWYAHJp.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime20 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime23 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_runtime20.JSX.Element;
27
+ }: NavigationProviderProps): react_jsx_runtime23.JSX.Element;
28
28
  //#endregion
29
29
  export { useNavigation as a, NavigationProviderProps as i, NavigationHandler as n, NavigationProvider as r, NavigationContextType as t };
@@ -1,6 +1,6 @@
1
- import { t as DocsLanguage } from "./routing-CMqh1cTZ.js";
1
+ import { t as DocsLanguage } from "./routing-CUnVDpU-.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime79 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime0 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_runtime79.JSX.Element;
27
+ }: NavigationProviderProps): react_jsx_runtime0.JSX.Element;
28
28
  //#endregion
29
29
  export { useNavigation as a, NavigationProviderProps as i, NavigationHandler as n, NavigationProvider as r, NavigationContextType as t };
@@ -1,11 +1,11 @@
1
1
  import { a as useLanguage, l as useSpec, r as useDeclaration } from "./docs-CXqi26jB.js";
2
- import { n as useLanguageComponents } from "./contexts-p3rRZDlM.js";
3
- import { t as useComponents } from "./use-components-RWQbviGq.js";
2
+ import { n as useLanguageComponents } from "./contexts-CLpvBI91.js";
3
+ import { t as useComponents } from "./use-components-DBx5LZk0.js";
4
4
  import { t as style_default } from "./style-gnVEeXFj.js";
5
- import { i as PropertyToggle } from "./properties-jlGW3USi.js";
6
- import { f as parseStainlessPath } from "./routing-Wbb7YECB.js";
7
- import { s as Markdown } from "./primitives-BIWfwN5L.js";
8
- import { n as getResourceFromSpec, t as flatResources } from "./utils-D_1AWSRX.js";
5
+ import { i as PropertyToggle } from "./properties-N8WgxEHE.js";
6
+ import { f as parseStainlessPath } from "./routing-Dl0FprK1.js";
7
+ import { s as Markdown } from "./primitives-DBllhZFN.js";
8
+ import { n as getResourceFromSpec, t as flatResources } from "./utils-C12Fme2N.js";
9
9
  import * as React$1 from "react";
10
10
  import { createElement } from "react";
11
11
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime80 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime24 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_runtime80.JSX.Element | null;
12
+ }: SDKResourceProps): react_jsx_runtime24.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_runtime80.JSX.Element;
18
+ }: SDKMethodSummaryProps): react_jsx_runtime24.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_runtime80.JSX.Element;
25
+ }): react_jsx_runtime24.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_runtime80.JSX.Element;
31
+ }: SDKOverviewProps): react_jsx_runtime24.JSX.Element;
32
32
  type SDKRootProps = {
33
33
  stainlessPath: string;
34
34
  };
35
35
  declare function SDKRoot({
36
36
  stainlessPath
37
- }: SDKRootProps): react_jsx_runtime80.JSX.Element | null;
37
+ }: SDKRootProps): react_jsx_runtime24.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 };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime50 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime22 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_runtime50.JSX.Element | null;
12
+ }: SDKResourceProps): react_jsx_runtime22.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_runtime50.JSX.Element;
18
+ }: SDKMethodSummaryProps): react_jsx_runtime22.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_runtime50.JSX.Element;
25
+ }): react_jsx_runtime22.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_runtime50.JSX.Element;
31
+ }: SDKOverviewProps): react_jsx_runtime22.JSX.Element;
32
32
  type SDKRootProps = {
33
33
  stainlessPath: string;
34
34
  };
35
35
  declare function SDKRoot({
36
36
  stainlessPath
37
- }: SDKRootProps): react_jsx_runtime50.JSX.Element | null;
37
+ }: SDKRootProps): react_jsx_runtime22.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 };