@stainless-api/docs-ui 0.1.0-beta.4 → 0.1.0-beta.40

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 (188) hide show
  1. package/dist/breadcrumbs-CZg0Fk4V.d.ts +20 -0
  2. package/dist/chunk-Bf_Gc_jT.js +18 -0
  3. package/dist/component-generics-BLXXX1dz.d.ts +30 -0
  4. package/dist/component-generics-D3ybuN5r.js +45 -0
  5. package/dist/components/breadcrumbs.d.ts +2 -0
  6. package/dist/components/breadcrumbs.js +15 -0
  7. package/dist/components/icons.d.ts +50 -0
  8. package/dist/components/icons.js +3 -0
  9. package/dist/components/index.d.ts +11 -0
  10. package/dist/components/index.js +15 -0
  11. package/dist/components/method.d.ts +2 -0
  12. package/dist/components/method.js +15 -0
  13. package/dist/components/overview.d.ts +2 -0
  14. package/dist/components/overview.js +15 -0
  15. package/dist/components/primitives.d.ts +2 -0
  16. package/dist/components/primitives.js +15 -0
  17. package/dist/components/properties.d.ts +2 -0
  18. package/dist/components/properties.js +15 -0
  19. package/dist/components/sdk.d.ts +3 -0
  20. package/dist/components/sdk.js +15 -0
  21. package/dist/components/sidebar.d.ts +2 -0
  22. package/dist/components/sidebar.js +15 -0
  23. package/dist/components/snippets.d.ts +4 -0
  24. package/dist/components/snippets.js +15 -0
  25. package/dist/contexts/component-generics.d.ts +2 -0
  26. package/dist/contexts/component-generics.js +3 -0
  27. package/dist/contexts/component-types.d.ts +17 -0
  28. package/dist/contexts/component-types.js +0 -0
  29. package/dist/contexts/component.d.ts +30 -0
  30. package/dist/contexts/component.js +15 -0
  31. package/dist/contexts/docs.d.ts +2 -0
  32. package/dist/contexts/docs.js +3 -0
  33. package/dist/contexts/index.d.ts +19 -0
  34. package/dist/contexts/index.js +15 -0
  35. package/dist/contexts/markdown.d.ts +2 -0
  36. package/dist/contexts/markdown.js +4 -0
  37. package/dist/contexts/navigation.d.ts +3 -0
  38. package/dist/contexts/navigation.js +3 -0
  39. package/dist/contexts/search.d.ts +4 -0
  40. package/dist/contexts/search.js +15 -0
  41. package/dist/contexts/use-components.d.ts +15 -0
  42. package/dist/contexts/use-components.js +4 -0
  43. package/dist/contexts-B-OYzYpz.js +3837 -0
  44. package/dist/docs-BeJaKOCE.d.ts +46 -0
  45. package/dist/docs-CopwX9a7.js +54 -0
  46. package/dist/icons-yb-Jhkmg.js +753 -0
  47. package/dist/index-CBi59jcw.d.ts +240 -0
  48. package/dist/index-DT1wzg21.d.ts +15 -0
  49. package/dist/index-DteYqCJO.d.ts +14 -0
  50. package/dist/index.d.ts +21 -0
  51. package/dist/index.js +15 -7542
  52. package/dist/languages/go.d.ts +12 -0
  53. package/dist/languages/go.js +15 -0
  54. package/dist/languages/http.d.ts +12 -0
  55. package/dist/languages/http.js +15 -0
  56. package/dist/languages/index.d.ts +12 -0
  57. package/dist/languages/index.js +15 -0
  58. package/dist/languages/java.d.ts +12 -0
  59. package/dist/languages/java.js +15 -0
  60. package/dist/languages/python.d.ts +12 -0
  61. package/dist/languages/python.js +15 -0
  62. package/dist/languages/ruby.d.ts +12 -0
  63. package/dist/languages/ruby.js +15 -0
  64. package/dist/languages/typescript.d.ts +12 -0
  65. package/dist/languages/typescript.js +15 -0
  66. package/dist/markdown/index.d.ts +12 -0
  67. package/dist/markdown/index.js +15 -0
  68. package/dist/markdown/md.d.ts +15 -0
  69. package/dist/markdown/md.js +3 -0
  70. package/dist/markdown/utils.d.ts +4 -0
  71. package/dist/markdown/utils.js +3 -0
  72. package/dist/markdown-DTVxnxGP.d.ts +22 -0
  73. package/dist/markdown-Diyg-eof.js +48 -0
  74. package/dist/md-DxiV1_vy.js +41 -0
  75. package/dist/method-DHjDGGA_.d.ts +71 -0
  76. package/dist/navigation-CGr5_w6z.js +24 -0
  77. package/dist/navigation-rt_B_1lt.d.ts +29 -0
  78. package/dist/overview-CKJV2xUO.d.ts +39 -0
  79. package/dist/pagefind-BaK1krMe.js +15 -0
  80. package/dist/primitives-CiVFjnRA.d.ts +99 -0
  81. package/dist/properties-Z45x-uLZ.d.ts +46 -0
  82. package/dist/routing-DNN8R6bZ.d.ts +54 -0
  83. package/dist/routing-qs2YNG9o.js +189 -0
  84. package/dist/routing.d.ts +2 -0
  85. package/dist/routing.js +3 -180
  86. package/dist/sdk-DDWWoPPD.d.ts +119 -0
  87. package/dist/search/index.d.ts +26 -0
  88. package/dist/search/index.js +334 -0
  89. package/dist/search/providers/algolia.d.ts +24 -0
  90. package/dist/search/providers/algolia.js +15 -0
  91. package/dist/search/providers/fuse.d.ts +18 -0
  92. package/dist/search/providers/fuse.js +30 -0
  93. package/dist/search/providers/pagefind.d.ts +7 -0
  94. package/dist/search/providers/pagefind.js +3 -0
  95. package/dist/search/providers/walker.d.ts +9 -0
  96. package/dist/search/providers/walker.js +34 -0
  97. package/dist/search/types.d.ts +3 -0
  98. package/dist/search/types.js +3 -0
  99. package/dist/search-CCDWCiAd.d.ts +21 -0
  100. package/dist/sidebar-DrtsF85U.d.ts +36 -0
  101. package/dist/snippets-B2EEG7AK.d.ts +46 -0
  102. package/dist/spec.d.ts +65 -0
  103. package/dist/spec.js +167 -0
  104. package/dist/style-BhhgPVF6.js +165 -0
  105. package/dist/style-p4qTfnmO.d.ts +164 -0
  106. package/dist/style.d.ts +2 -0
  107. package/dist/style.js +3 -0
  108. package/dist/styles/main.css +724 -754
  109. package/dist/styles/main.js +0 -0
  110. package/dist/styles/primitives.css +287 -466
  111. package/dist/styles/primitives.js +0 -0
  112. package/dist/styles/resets.css +31 -41
  113. package/dist/styles/resets.js +0 -0
  114. package/dist/styles/search.css +175 -274
  115. package/dist/styles/search.js +0 -0
  116. package/dist/styles/sidebar.css +59 -60
  117. package/dist/styles/sidebar.js +0 -0
  118. package/dist/styles/variables.css +26 -89
  119. package/dist/styles/variables.js +0 -0
  120. package/dist/styles.css +1753 -0
  121. package/dist/styles.mjs +1 -0
  122. package/dist/types-DNSz4kuM.d.ts +83 -0
  123. package/dist/types-__XoFvJ_.js +34 -0
  124. package/dist/use-components-BHEwm0mE.js +7 -0
  125. package/dist/utils-CA3mYNaX.d.ts +21 -0
  126. package/dist/utils-D43p_yTd.d.ts +14 -0
  127. package/dist/utils-FnJ4tyuN.js +32 -0
  128. package/dist/utils-Jo_o4DX9.js +31 -0
  129. package/dist/utils.d.ts +2 -0
  130. package/dist/utils.js +4 -0
  131. package/package.json +84 -19
  132. package/dist/mcp.js +0 -16003
  133. package/dist/styles/snippets.css +0 -132
  134. package/src/components/breadcrumbs.tsx +0 -94
  135. package/src/components/chat.tsx +0 -154
  136. package/src/components/dropdown.tsx +0 -91
  137. package/src/components/icons.tsx +0 -584
  138. package/src/components/index.ts +0 -9
  139. package/src/components/method.tsx +0 -144
  140. package/src/components/overview.tsx +0 -159
  141. package/src/components/primitives.tsx +0 -284
  142. package/src/components/properties.tsx +0 -130
  143. package/src/components/scripts/dropdown.ts +0 -78
  144. package/src/components/sdk.tsx +0 -402
  145. package/src/components/sidebar.tsx +0 -99
  146. package/src/components/snippets.tsx +0 -179
  147. package/src/contexts/component-generics.tsx +0 -48
  148. package/src/contexts/component-types.tsx +0 -5
  149. package/src/contexts/component.tsx +0 -32
  150. package/src/contexts/docs.tsx +0 -75
  151. package/src/contexts/index.tsx +0 -17
  152. package/src/contexts/markdown.tsx +0 -43
  153. package/src/contexts/navigation.tsx +0 -44
  154. package/src/contexts/search.tsx +0 -28
  155. package/src/contexts/use-components.tsx +0 -4
  156. package/src/index.ts +0 -6
  157. package/src/languages/go.tsx +0 -281
  158. package/src/languages/http.tsx +0 -321
  159. package/src/languages/index.ts +0 -26
  160. package/src/languages/java.tsx +0 -358
  161. package/src/languages/python.tsx +0 -255
  162. package/src/languages/ruby.tsx +0 -320
  163. package/src/languages/typescript.tsx +0 -393
  164. package/src/markdown/index.ts +0 -107
  165. package/src/markdown/md.ts +0 -45
  166. package/src/markdown/utils.ts +0 -49
  167. package/src/routing.ts +0 -238
  168. package/src/search/form.tsx +0 -127
  169. package/src/search/index.tsx +0 -1
  170. package/src/search/indexer.ts +0 -246
  171. package/src/search/mcp.ts +0 -61
  172. package/src/search/printer.tsx +0 -86
  173. package/src/search/providers/algolia.ts +0 -88
  174. package/src/search/providers/fuse.ts +0 -19
  175. package/src/search/providers/pagefind.ts +0 -17
  176. package/src/search/providers/walker.ts +0 -30
  177. package/src/search/results.tsx +0 -181
  178. package/src/search/state.ts +0 -64
  179. package/src/search/types.ts +0 -116
  180. package/src/style.ts +0 -197
  181. package/src/styles/main.css +0 -993
  182. package/src/styles/primitives.css +0 -572
  183. package/src/styles/resets.css +0 -47
  184. package/src/styles/search.css +0 -342
  185. package/src/styles/sidebar.css +0 -87
  186. package/src/styles/snippets.css +0 -132
  187. package/src/styles/variables.css +0 -90
  188. package/src/utils.ts +0 -41
@@ -0,0 +1,12 @@
1
+ import "../breadcrumbs-CZg0Fk4V.js";
2
+ import "../method-DHjDGGA_.js";
3
+ import "../primitives-CiVFjnRA.js";
4
+ import "../properties-Z45x-uLZ.js";
5
+ import "../routing-DNN8R6bZ.js";
6
+ import "../sdk-DDWWoPPD.js";
7
+ import "../snippets-B2EEG7AK.js";
8
+ import "../overview-CKJV2xUO.js";
9
+ import "../sidebar-DrtsF85U.js";
10
+ import "../index-DT1wzg21.js";
11
+ import { B as Type, F as DeclarationProps, H as TypeProps, I as MethodSignature, L as MethodSignatureProps, P as Declaration, R as Property, V as TypeName, z as PropertyProps } from "../index-CBi59jcw.js";
12
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName, TypeProps };
@@ -0,0 +1,15 @@
1
+ import "../docs-CopwX9a7.js";
2
+ import "../component-generics-D3ybuN5r.js";
3
+ import "../navigation-CGr5_w6z.js";
4
+ import "../markdown-Diyg-eof.js";
5
+ import "../routing-qs2YNG9o.js";
6
+ import "../style-BhhgPVF6.js";
7
+ import "../use-components-BHEwm0mE.js";
8
+ import { B as Type, L as Declaration, R as MethodSignature, V as TypeName, z as Property } from "../contexts-B-OYzYpz.js";
9
+ import "../icons-yb-Jhkmg.js";
10
+ import "../utils-FnJ4tyuN.js";
11
+ import "../md-DxiV1_vy.js";
12
+ import "../utils-Jo_o4DX9.js";
13
+ import "../types-__XoFvJ_.js";
14
+
15
+ export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -0,0 +1,12 @@
1
+ import "../breadcrumbs-CZg0Fk4V.js";
2
+ import "../method-DHjDGGA_.js";
3
+ import "../primitives-CiVFjnRA.js";
4
+ import "../properties-Z45x-uLZ.js";
5
+ import "../routing-DNN8R6bZ.js";
6
+ import "../sdk-DDWWoPPD.js";
7
+ import "../snippets-B2EEG7AK.js";
8
+ import "../overview-CKJV2xUO.js";
9
+ import "../sidebar-DrtsF85U.js";
10
+ import "../index-DT1wzg21.js";
11
+ import { c as MethodInfo, d as Property, f as PropertyProps, l as MethodSignature, m as TypeName, o as Declaration, p as Type, s as DeclarationProps, u as MethodSignatureProps } from "../index-CBi59jcw.js";
12
+ export { Declaration, DeclarationProps, MethodInfo, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -0,0 +1,15 @@
1
+ import "../docs-CopwX9a7.js";
2
+ import "../component-generics-D3ybuN5r.js";
3
+ import "../navigation-CGr5_w6z.js";
4
+ import "../markdown-Diyg-eof.js";
5
+ import "../routing-qs2YNG9o.js";
6
+ import "../style-BhhgPVF6.js";
7
+ import "../use-components-BHEwm0mE.js";
8
+ import { C as TypeName, S as Type, b as MethodSignature, v as Declaration, x as Property, y as MethodInfo } from "../contexts-B-OYzYpz.js";
9
+ import "../icons-yb-Jhkmg.js";
10
+ import "../utils-FnJ4tyuN.js";
11
+ import "../md-DxiV1_vy.js";
12
+ import "../utils-Jo_o4DX9.js";
13
+ import "../types-__XoFvJ_.js";
14
+
15
+ export { Declaration, MethodInfo, MethodSignature, Property, Type, TypeName };
@@ -0,0 +1,12 @@
1
+ import "../breadcrumbs-CZg0Fk4V.js";
2
+ import "../method-DHjDGGA_.js";
3
+ import "../primitives-CiVFjnRA.js";
4
+ import "../properties-Z45x-uLZ.js";
5
+ import "../routing-DNN8R6bZ.js";
6
+ import "../sdk-DDWWoPPD.js";
7
+ import "../snippets-B2EEG7AK.js";
8
+ import "../overview-CKJV2xUO.js";
9
+ import "../sidebar-DrtsF85U.js";
10
+ import "../index-DT1wzg21.js";
11
+ import { N as python_d_exports, Q as java_d_exports, U as go_d_exports, a as node, h as http_d_exports, i as kotlin, n as PropertyFn, st as typescript_d_exports, t as LanguageComponentDefinition, w as ruby_d_exports } from "../index-CBi59jcw.js";
12
+ export { LanguageComponentDefinition, PropertyFn, go_d_exports as go, http_d_exports as http, java_d_exports as java, kotlin, node, python_d_exports as python, ruby_d_exports as ruby, typescript_d_exports as typescript };
@@ -0,0 +1,15 @@
1
+ import "../docs-CopwX9a7.js";
2
+ import "../component-generics-D3ybuN5r.js";
3
+ import "../navigation-CGr5_w6z.js";
4
+ import "../markdown-Diyg-eof.js";
5
+ import "../routing-qs2YNG9o.js";
6
+ import "../style-BhhgPVF6.js";
7
+ import "../use-components-BHEwm0mE.js";
8
+ import { A as ruby_exports, H as go_exports, I as python_exports, J as java_exports, _ as node, et as typescript_exports, h as kotlin, w as http_exports } from "../contexts-B-OYzYpz.js";
9
+ import "../icons-yb-Jhkmg.js";
10
+ import "../utils-FnJ4tyuN.js";
11
+ import "../md-DxiV1_vy.js";
12
+ import "../utils-Jo_o4DX9.js";
13
+ import "../types-__XoFvJ_.js";
14
+
15
+ export { go_exports as go, http_exports as http, java_exports as java, kotlin, node, python_exports as python, ruby_exports as ruby, typescript_exports as typescript };
@@ -0,0 +1,12 @@
1
+ import "../breadcrumbs-CZg0Fk4V.js";
2
+ import "../method-DHjDGGA_.js";
3
+ import "../primitives-CiVFjnRA.js";
4
+ import "../properties-Z45x-uLZ.js";
5
+ import "../routing-DNN8R6bZ.js";
6
+ import "../sdk-DDWWoPPD.js";
7
+ import "../snippets-B2EEG7AK.js";
8
+ import "../overview-CKJV2xUO.js";
9
+ import "../sidebar-DrtsF85U.js";
10
+ import "../index-DT1wzg21.js";
11
+ import { G as DeclarationProps, J as Property, K as MethodSignature, W as Declaration, X as Type, Y as PropertyProps, Z as TypeName, q as MethodSignatureProps } from "../index-CBi59jcw.js";
12
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -0,0 +1,15 @@
1
+ import "../docs-CopwX9a7.js";
2
+ import "../component-generics-D3ybuN5r.js";
3
+ import "../navigation-CGr5_w6z.js";
4
+ import "../markdown-Diyg-eof.js";
5
+ import "../routing-qs2YNG9o.js";
6
+ import "../style-BhhgPVF6.js";
7
+ import "../use-components-BHEwm0mE.js";
8
+ import { G as Property, K as Type, U as Declaration, W as MethodSignature, q as TypeName } from "../contexts-B-OYzYpz.js";
9
+ import "../icons-yb-Jhkmg.js";
10
+ import "../utils-FnJ4tyuN.js";
11
+ import "../md-DxiV1_vy.js";
12
+ import "../utils-Jo_o4DX9.js";
13
+ import "../types-__XoFvJ_.js";
14
+
15
+ export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -0,0 +1,12 @@
1
+ import "../breadcrumbs-CZg0Fk4V.js";
2
+ import "../method-DHjDGGA_.js";
3
+ import "../primitives-CiVFjnRA.js";
4
+ import "../properties-Z45x-uLZ.js";
5
+ import "../routing-DNN8R6bZ.js";
6
+ import "../sdk-DDWWoPPD.js";
7
+ import "../snippets-B2EEG7AK.js";
8
+ import "../overview-CKJV2xUO.js";
9
+ import "../sidebar-DrtsF85U.js";
10
+ import "../index-DT1wzg21.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-CBi59jcw.js";
12
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -0,0 +1,15 @@
1
+ import "../docs-CopwX9a7.js";
2
+ import "../component-generics-D3ybuN5r.js";
3
+ import "../navigation-CGr5_w6z.js";
4
+ import "../markdown-Diyg-eof.js";
5
+ import "../routing-qs2YNG9o.js";
6
+ import "../style-BhhgPVF6.js";
7
+ import "../use-components-BHEwm0mE.js";
8
+ import { F as TypeName, M as MethodSignature, N as Property, P as Type, j as Declaration } from "../contexts-B-OYzYpz.js";
9
+ import "../icons-yb-Jhkmg.js";
10
+ import "../utils-FnJ4tyuN.js";
11
+ import "../md-DxiV1_vy.js";
12
+ import "../utils-Jo_o4DX9.js";
13
+ import "../types-__XoFvJ_.js";
14
+
15
+ export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -0,0 +1,12 @@
1
+ import "../breadcrumbs-CZg0Fk4V.js";
2
+ import "../method-DHjDGGA_.js";
3
+ import "../primitives-CiVFjnRA.js";
4
+ import "../properties-Z45x-uLZ.js";
5
+ import "../routing-DNN8R6bZ.js";
6
+ import "../sdk-DDWWoPPD.js";
7
+ import "../snippets-B2EEG7AK.js";
8
+ import "../overview-CKJV2xUO.js";
9
+ import "../sidebar-DrtsF85U.js";
10
+ import "../index-DT1wzg21.js";
11
+ import { C as TypeName, S as Type, _ as DeclarationProps, b as Property, g as Declaration, v as MethodSignature, x as PropertyProps, y as MethodSignatureProps } from "../index-CBi59jcw.js";
12
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -0,0 +1,15 @@
1
+ import "../docs-CopwX9a7.js";
2
+ import "../component-generics-D3ybuN5r.js";
3
+ import "../navigation-CGr5_w6z.js";
4
+ import "../markdown-Diyg-eof.js";
5
+ import "../routing-qs2YNG9o.js";
6
+ import "../style-BhhgPVF6.js";
7
+ import "../use-components-BHEwm0mE.js";
8
+ import { D as Property, E as MethodSignature, O as Type, T as Declaration, k as TypeName } from "../contexts-B-OYzYpz.js";
9
+ import "../icons-yb-Jhkmg.js";
10
+ import "../utils-FnJ4tyuN.js";
11
+ import "../md-DxiV1_vy.js";
12
+ import "../utils-Jo_o4DX9.js";
13
+ import "../types-__XoFvJ_.js";
14
+
15
+ export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -0,0 +1,12 @@
1
+ import "../breadcrumbs-CZg0Fk4V.js";
2
+ import "../method-DHjDGGA_.js";
3
+ import "../primitives-CiVFjnRA.js";
4
+ import "../properties-Z45x-uLZ.js";
5
+ import "../routing-DNN8R6bZ.js";
6
+ import "../sdk-DDWWoPPD.js";
7
+ import "../snippets-B2EEG7AK.js";
8
+ import "../overview-CKJV2xUO.js";
9
+ import "../sidebar-DrtsF85U.js";
10
+ import "../index-DT1wzg21.js";
11
+ import { $ as Declaration, at as Type, et as DeclarationProps, it as PropertyProps, nt as MethodSignatureProps, ot as TypeName, rt as Property, tt as MethodSignature } from "../index-CBi59jcw.js";
12
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -0,0 +1,15 @@
1
+ import "../docs-CopwX9a7.js";
2
+ import "../component-generics-D3ybuN5r.js";
3
+ import "../navigation-CGr5_w6z.js";
4
+ import "../markdown-Diyg-eof.js";
5
+ import "../routing-qs2YNG9o.js";
6
+ import "../style-BhhgPVF6.js";
7
+ import "../use-components-BHEwm0mE.js";
8
+ import { $ as TypeName, Q as Type, X as MethodSignature, Y as Declaration, Z as Property } from "../contexts-B-OYzYpz.js";
9
+ import "../icons-yb-Jhkmg.js";
10
+ import "../utils-FnJ4tyuN.js";
11
+ import "../md-DxiV1_vy.js";
12
+ import "../utils-Jo_o4DX9.js";
13
+ import "../types-__XoFvJ_.js";
14
+
15
+ export { Declaration, MethodSignature, Property, Type, TypeName };
@@ -0,0 +1,12 @@
1
+ import "../routing-DNN8R6bZ.js";
2
+ import "../sdk-DDWWoPPD.js";
3
+ import { t as EnvironmentType } from "../utils-CA3mYNaX.js";
4
+ import { Node } from "@markdoc/markdoc";
5
+ import * as SDKJSON from "@stainless/sdk-json";
6
+
7
+ //#region src/markdown/index.d.ts
8
+ declare function declaration(env: EnvironmentType, decl: SDKJSON.DeclarationNode): Node;
9
+ declare function render(env: EnvironmentType, node: SDKJSON.Resource | SDKJSON.Method | SDKJSON.Model): Node[];
10
+ declare function renderMarkdown(env: EnvironmentType, node: SDKJSON.Resource | SDKJSON.Method | SDKJSON.Model): string;
11
+ //#endregion
12
+ export { declaration, render, renderMarkdown };
@@ -0,0 +1,15 @@
1
+ import "../docs-CopwX9a7.js";
2
+ import "../component-generics-D3ybuN5r.js";
3
+ import "../navigation-CGr5_w6z.js";
4
+ import "../markdown-Diyg-eof.js";
5
+ import "../routing-qs2YNG9o.js";
6
+ import "../style-BhhgPVF6.js";
7
+ import "../use-components-BHEwm0mE.js";
8
+ import { d as render, f as renderMarkdown, u as declaration } from "../contexts-B-OYzYpz.js";
9
+ import "../icons-yb-Jhkmg.js";
10
+ import "../utils-FnJ4tyuN.js";
11
+ import "../md-DxiV1_vy.js";
12
+ import "../utils-Jo_o4DX9.js";
13
+ import "../types-__XoFvJ_.js";
14
+
15
+ export { declaration, render, renderMarkdown };
@@ -0,0 +1,15 @@
1
+ import { Node } from "@markdoc/markdoc";
2
+
3
+ //#region src/markdown/md.d.ts
4
+ declare function heading(level: number, children: string | Node[]): Node;
5
+ declare function text(content: string): Node;
6
+ declare function code(content: string): Node;
7
+ declare function paragraph(...children: Node[]): Node;
8
+ declare function list(...children: Node[]): Node;
9
+ declare function item(...children: Node[]): Node;
10
+ declare function strong(...children: Node[]): Node;
11
+ declare function inline(...children: Node[]): Node;
12
+ declare function fence(language: string, content: string): Node;
13
+ declare function parse(content: string): Node[];
14
+ //#endregion
15
+ export { code, fence, heading, inline, item, list, paragraph, parse, strong, text };
@@ -0,0 +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-DxiV1_vy.js";
2
+
3
+ export { code, fence, heading, inline, item, list, paragraph, parse, strong, text };
@@ -0,0 +1,4 @@
1
+ import "../routing-DNN8R6bZ.js";
2
+ import "../sdk-DDWWoPPD.js";
3
+ import { i as stripMarkup, n as getDecl, r as getSnippet, t as EnvironmentType } from "../utils-CA3mYNaX.js";
4
+ export { EnvironmentType, getDecl, getSnippet, stripMarkup };
@@ -0,0 +1,3 @@
1
+ import { n as getSnippet, r as stripMarkup, t as getDecl } from "../utils-Jo_o4DX9.js";
2
+
3
+ export { getDecl, getSnippet, stripMarkup };
@@ -0,0 +1,22 @@
1
+ import * as React$1 from "react";
2
+ import * as react_jsx_runtime51 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_runtime51.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,48 @@
1
+ import { a as useLanguage } from "./docs-CopwX9a7.js";
2
+ import * as React$1 from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+
5
+ //#region src/contexts/markdown.tsx
6
+ const HighlightLanguageMappings = {
7
+ node: "typescript",
8
+ http: "bash"
9
+ };
10
+ const MarkdownContext = React$1.createContext({
11
+ highlight: (content) => content,
12
+ render: (content) => content
13
+ });
14
+ const useMarkdownContext = () => React$1.useContext(MarkdownContext);
15
+ function useRenderMarkdown(content) {
16
+ const { render } = React$1.useContext(MarkdownContext);
17
+ return React$1.useMemo(() => {
18
+ if (!content) return void 0;
19
+ const rendered = render(content);
20
+ return typeof rendered === "string" ? rendered : React$1.use(rendered);
21
+ }, [content, render]);
22
+ }
23
+ function useHighlight(content, language) {
24
+ const { highlight } = React$1.useContext(MarkdownContext);
25
+ const defaultLanguage = useLanguage();
26
+ const lang = language ?? defaultLanguage;
27
+ return React$1.useMemo(() => {
28
+ if (lang === "none") return content;
29
+ const rendered = highlight(content, HighlightLanguageMappings[lang] ?? lang);
30
+ return typeof rendered === "string" ? rendered : React$1.use(rendered);
31
+ }, [
32
+ content,
33
+ highlight,
34
+ lang
35
+ ]);
36
+ }
37
+ function MarkdownProvider({ render, highlight, children }) {
38
+ return /* @__PURE__ */ jsx(MarkdownContext.Provider, {
39
+ value: {
40
+ render,
41
+ highlight
42
+ },
43
+ children
44
+ });
45
+ }
46
+
47
+ //#endregion
48
+ export { useRenderMarkdown as a, useMarkdownContext as i, MarkdownProvider as n, useHighlight as r, MarkdownContext as t };
@@ -0,0 +1,41 @@
1
+ import Markdoc from "@markdoc/markdoc";
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
41
+ export { item as a, parse as c, inline as i, strong as l, fence as n, list as o, heading as r, paragraph as s, code as t, text as u };
@@ -0,0 +1,71 @@
1
+ import * as React$1 from "react";
2
+ import { ReactNode } from "react";
3
+ import * as react_jsx_runtime64 from "react/jsx-runtime";
4
+ import { LucideIcon } from "lucide-react";
5
+
6
+ //#region src/components/method.d.ts
7
+ declare const HttpMethods: string[];
8
+ type HTTPMethod = (typeof HttpMethods)[number];
9
+ declare const HttpMethodIcons: Record<HTTPMethod, LucideIcon>;
10
+ type MethodIconProps = {
11
+ httpMethod?: string;
12
+ showName?: boolean;
13
+ };
14
+ declare function MethodIconBadge({
15
+ httpMethod,
16
+ showName
17
+ }: MethodIconProps): react_jsx_runtime64.JSX.Element | null;
18
+ type MethodHeaderProps = {
19
+ title: ReactNode;
20
+ level?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5';
21
+ signature?: ReactNode;
22
+ badges?: ReactNode;
23
+ children?: ReactNode;
24
+ };
25
+ declare function MethodHeader({
26
+ title,
27
+ badges,
28
+ signature,
29
+ children,
30
+ level
31
+ }: MethodHeaderProps): react_jsx_runtime64.JSX.Element;
32
+ type MethodRouteProps = {
33
+ httpMethod?: string;
34
+ endpoint?: string | ReactNode;
35
+ iconOnly?: boolean;
36
+ };
37
+ declare function MethodRoute({
38
+ httpMethod,
39
+ endpoint,
40
+ iconOnly
41
+ }: MethodRouteProps): react_jsx_runtime64.JSX.Element;
42
+ type MethodDescriptionProps = {
43
+ description?: string;
44
+ };
45
+ declare function MethodDescription({
46
+ description
47
+ }: MethodDescriptionProps): react_jsx_runtime64.JSX.Element | undefined;
48
+ type MethodInfoProps = {
49
+ children?: ReactNode;
50
+ parameters?: ReactNode;
51
+ returns?: ReactNode;
52
+ };
53
+ declare function MethodInfo({
54
+ children,
55
+ parameters,
56
+ returns
57
+ }: MethodInfoProps): react_jsx_runtime64.JSX.Element;
58
+ type MethodProps = {
59
+ id?: string;
60
+ header?: ReactNode;
61
+ children?: ReactNode;
62
+ } & React$1.HTMLProps<HTMLDivElement>;
63
+ declare function Method({
64
+ id,
65
+ header,
66
+ children,
67
+ className,
68
+ ...props
69
+ }: MethodProps): react_jsx_runtime64.JSX.Element;
70
+ //#endregion
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,24 @@
1
+ import * as React$1 from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
+
4
+ //#region src/contexts/navigation.tsx
5
+ const Defaults = { basePath: "/" };
6
+ const NavigationContext = React$1.createContext(Defaults);
7
+ function useNavigation() {
8
+ return React$1.useContext(NavigationContext);
9
+ }
10
+ function NavigationProvider({ basePath, selectedPath, onNavigate, children }) {
11
+ const value = {
12
+ ...Defaults,
13
+ onNavigate,
14
+ basePath,
15
+ selectedPath
16
+ };
17
+ return /* @__PURE__ */ jsx(NavigationContext.Provider, {
18
+ value,
19
+ children
20
+ });
21
+ }
22
+
23
+ //#endregion
24
+ export { useNavigation as n, NavigationProvider as t };
@@ -0,0 +1,29 @@
1
+ import { t as DocsLanguage } from "./routing-DNN8R6bZ.js";
2
+ import * as React$1 from "react";
3
+ import * as react_jsx_runtime52 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_runtime52.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_runtime34 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_runtime34.JSX.Element | null;
13
+ type SDKMethodSummaryProps = {
14
+ method: SDKJSON.Method;
15
+ };
16
+ declare function SDKMethodSummary({
17
+ method
18
+ }: SDKMethodSummaryProps): react_jsx_runtime34.JSX.Element;
19
+ declare function SDKResource({
20
+ resource,
21
+ parents,
22
+ showModels
23
+ }: SDKResourceProps & {
24
+ showModels?: boolean;
25
+ }): react_jsx_runtime34.JSX.Element;
26
+ type SDKOverviewProps = {
27
+ resource: SDKJSON.Resource;
28
+ };
29
+ declare function SDKOverview({
30
+ resource
31
+ }: SDKOverviewProps): react_jsx_runtime34.JSX.Element;
32
+ type SDKRootProps = {
33
+ stainlessPath: string;
34
+ };
35
+ declare function SDKRoot({
36
+ stainlessPath
37
+ }: SDKRootProps): react_jsx_runtime34.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 };
@@ -0,0 +1,15 @@
1
+ //#region src/search/providers/pagefind.ts
2
+ async function loadPagefind(path) {
3
+ return await import(new URL(path, import.meta.url).href);
4
+ }
5
+ async function guideSearch(loadPath, query, limit) {
6
+ const response = await (await loadPagefind(loadPath)).search(query);
7
+ const items = limit ? response.results.slice(0, limit) : response.results;
8
+ return Promise.all(items.map((result) => result.data().then((data) => ({
9
+ ...result,
10
+ data
11
+ }))));
12
+ }
13
+
14
+ //#endregion
15
+ export { guideSearch as t };