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

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 (121) hide show
  1. package/dist/{breadcrumbs-ChGb9Ckx.d.ts → breadcrumbs-Bg3nNgu9.d.ts} +2 -2
  2. package/dist/{component-generics-CDshlns_.d.ts → component-generics-DrrwsjTH.d.ts} +2 -2
  3. package/dist/components/MaskedInput.d.ts +1 -1
  4. package/dist/components/MaskedInput.js +1 -1
  5. package/dist/components/breadcrumbs.d.ts +1 -1
  6. package/dist/components/breadcrumbs.js +13 -13
  7. package/dist/components/icons.d.ts +11 -11
  8. package/dist/components/icons.js +1 -1
  9. package/dist/components/index.d.ts +10 -10
  10. package/dist/components/index.js +13 -13
  11. package/dist/components/method.d.ts +1 -1
  12. package/dist/components/method.js +13 -13
  13. package/dist/components/overview.d.ts +1 -1
  14. package/dist/components/overview.js +13 -13
  15. package/dist/components/primitives.d.ts +1 -1
  16. package/dist/components/primitives.js +13 -13
  17. package/dist/components/properties.d.ts +1 -1
  18. package/dist/components/properties.js +13 -13
  19. package/dist/components/sdk.d.ts +2 -2
  20. package/dist/components/sdk.js +13 -13
  21. package/dist/components/sidebar.d.ts +1 -1
  22. package/dist/components/sidebar.js +13 -13
  23. package/dist/components/snippets.d.ts +3 -3
  24. package/dist/components/snippets.js +13 -13
  25. package/dist/contexts/component-generics.d.ts +1 -1
  26. package/dist/contexts/component-generics.js +1 -1
  27. package/dist/contexts/component-types.d.ts +11 -11
  28. package/dist/contexts/component.d.ts +14 -14
  29. package/dist/contexts/component.js +13 -13
  30. package/dist/contexts/docs.d.ts +1 -1
  31. package/dist/contexts/docs.js +1 -1
  32. package/dist/contexts/index.d.ts +18 -18
  33. package/dist/contexts/index.js +13 -13
  34. package/dist/contexts/markdown.d.ts +1 -1
  35. package/dist/contexts/markdown.js +2 -2
  36. package/dist/contexts/navigation.d.ts +2 -2
  37. package/dist/contexts/navigation.js +1 -1
  38. package/dist/contexts/search.d.ts +3 -3
  39. package/dist/contexts/search.js +13 -13
  40. package/dist/contexts/use-components.d.ts +10 -10
  41. package/dist/contexts/use-components.js +2 -2
  42. package/dist/{contexts-HUUrbJAJ.js → contexts-D3ClFTt3.js} +366 -90
  43. package/dist/{docs-OpxXmURB.d.ts → docs-DGpIHBGY.d.ts} +3 -3
  44. package/dist/{index-Ck2YxPj3.d.ts → index-Bt01VI67.d.ts} +6 -6
  45. package/dist/{index-CkgJvy8B.d.ts → index-CTSOZqei.d.ts} +113 -79
  46. package/dist/{index-BhNE0nV0.d.ts → index-CeFeLPGr.d.ts} +8 -8
  47. package/dist/index.d.ts +20 -20
  48. package/dist/index.js +13 -13
  49. package/dist/languages/csharp.d.ts +12 -0
  50. package/dist/languages/csharp.js +15 -0
  51. package/dist/languages/go.d.ts +11 -11
  52. package/dist/languages/go.js +13 -13
  53. package/dist/languages/http.d.ts +11 -11
  54. package/dist/languages/http.js +13 -13
  55. package/dist/languages/index.d.ts +12 -12
  56. package/dist/languages/index.js +14 -14
  57. package/dist/languages/java.d.ts +11 -11
  58. package/dist/languages/java.js +13 -13
  59. package/dist/languages/python.d.ts +11 -11
  60. package/dist/languages/python.js +13 -13
  61. package/dist/languages/ruby.d.ts +11 -11
  62. package/dist/languages/ruby.js +13 -13
  63. package/dist/languages/typescript.d.ts +11 -11
  64. package/dist/languages/typescript.js +13 -13
  65. package/dist/markdown/index.d.ts +3 -3
  66. package/dist/markdown/index.js +13 -13
  67. package/dist/markdown/md.js +1 -1
  68. package/dist/markdown/utils.d.ts +3 -3
  69. package/dist/markdown/utils.js +1 -1
  70. package/dist/{markdown-sJ2VePdG.js → markdown-Bx-mQFEj.js} +1 -1
  71. package/dist/{markdown-Ck30kC3p.d.ts → markdown-COcowhve.d.ts} +2 -2
  72. package/dist/{method-BpjXzDDH.d.ts → method-DI8ARQ3m.d.ts} +7 -7
  73. package/dist/{navigation-D4bzWy1c.d.ts → navigation-Cg69h_9U.d.ts} +3 -3
  74. package/dist/{overview-B24Fc4cH.d.ts → overview-Bv43Hf_w.d.ts} +6 -6
  75. package/dist/{primitives-DwXr-yo5.d.ts → primitives-Br-H_CYo.d.ts} +9 -9
  76. package/dist/{properties-wSrkbEk2.d.ts → properties-RPXKwEeY.d.ts} +5 -5
  77. package/dist/{routing-GrDalgAW.js → routing-BGBmkDBL.js} +3 -2
  78. package/dist/{routing-Bcos-Z2q.d.ts → routing-nN1nc0jx.d.ts} +1 -1
  79. package/dist/routing.d.ts +1 -1
  80. package/dist/routing.js +1 -1
  81. package/dist/{sdk-CDNNOl31.d.ts → sdk-Ck0IERc7.d.ts} +14 -14
  82. package/dist/search/index.d.ts +6 -6
  83. package/dist/search/index.js +14 -14
  84. package/dist/search/mcp.d.ts +2 -2
  85. package/dist/search/mcp.js +13 -13
  86. package/dist/search/providers/algolia.d.ts +2 -2
  87. package/dist/search/providers/algolia.js +13 -13
  88. package/dist/search/providers/fuse.d.ts +2 -2
  89. package/dist/search/providers/fuse.js +13 -13
  90. package/dist/search/providers/pagefind.d.ts +2 -2
  91. package/dist/search/providers/pagefind.js +1 -1
  92. package/dist/search/providers/walker.d.ts +2 -2
  93. package/dist/search/providers/walker.js +13 -13
  94. package/dist/search/types.d.ts +2 -2
  95. package/dist/search/types.js +1 -1
  96. package/dist/{search-Dbhp1LKw.d.ts → search-B9SJyFXg.d.ts} +3 -3
  97. package/dist/{sidebar-BzEJezB8.d.ts → sidebar-b3y7VIbU.d.ts} +5 -5
  98. package/dist/{snippets-BFLGJy-C.d.ts → snippets-XTXit9Ya.d.ts} +8 -8
  99. package/dist/spec.d.ts +3 -3
  100. package/dist/spec.js +2 -2
  101. package/dist/style.d.ts +1 -1
  102. package/dist/style.js +1 -1
  103. package/dist/{types-1rnoIVpZ.d.ts → types-D7Ipu1J2.d.ts} +1 -1
  104. package/dist/{use-components-DG6NAdUT.js → use-components-BAHidYIO.js} +1 -1
  105. package/dist/{utils-CqR0JQ5q.js → utils-0z34vxY4.js} +2 -2
  106. package/dist/{utils-gEMvF6KH.d.ts → utils-CJElSUwc.d.ts} +2 -2
  107. package/dist/utils.d.ts +1 -1
  108. package/dist/utils.js +2 -2
  109. package/package.json +5 -2
  110. /package/dist/{chunk-KfF3XP4c.js → chunk-BWfJHHBp.js} +0 -0
  111. /package/dist/{component-generics-4gg5TFK4.js → component-generics-F0_Dx7UT.js} +0 -0
  112. /package/dist/{docs-C2xNNHgT.js → docs-CNvEp0VL.js} +0 -0
  113. /package/dist/{icons-Ckod9aod.js → icons-DzBceOQw.js} +0 -0
  114. /package/dist/{md-Ce-Zhp9O.js → md-D5AxFoS4.js} +0 -0
  115. /package/dist/{navigation-BrIapKIN.js → navigation-bydkHNUW.js} +0 -0
  116. /package/dist/{pagefind-CKBforii.js → pagefind-BHm6c3fb.js} +0 -0
  117. /package/dist/{style-B-5NIls4.js → style-0miv2y38.js} +0 -0
  118. /package/dist/{style-BJCwZ-Wf.d.ts → style-D8hwSwrv.d.ts} +0 -0
  119. /package/dist/{types-Ci-27DYJ.js → types-mRzd9aqe.js} +0 -0
  120. /package/dist/{utils-CI9byvCc.d.ts → utils-BcWczffA.d.ts} +0 -0
  121. /package/dist/{utils-jPbBiaDE.js → utils-CiZXDoFR.js} +0 -0
package/dist/routing.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as RouteEntry, b as updateHistory, c as expandToElement, d as generateRouteList, f as getLanguageSnippet, g as parseStainlessPath, h as parseRoute, i as ParsedStainlessPath, l as findNavigationPath, m as isSupportedLanguage, n as LanguageNames, o as SpecTreeEntry, p as getResource, r as Languages, s as SupportedLanguageSyntaxes, t as DocsLanguage, u as generateRoute, v as scrollToPath, x as walkTree, y as trimStainlessPath } from "./routing-Bcos-Z2q.js";
1
+ import { a as RouteEntry, b as updateHistory, c as expandToElement, d as generateRouteList, f as getLanguageSnippet, g as parseStainlessPath, h as parseRoute, i as ParsedStainlessPath, l as findNavigationPath, m as isSupportedLanguage, n as LanguageNames, o as SpecTreeEntry, p as getResource, r as Languages, s as SupportedLanguageSyntaxes, t as DocsLanguage, u as generateRoute, v as scrollToPath, x as walkTree, y as trimStainlessPath } from "./routing-nN1nc0jx.js";
2
2
  export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
package/dist/routing.js CHANGED
@@ -1,3 +1,3 @@
1
- import { _ as walkTree, a as findNavigationPath, c as getLanguageSnippet, d as parseRoute, f as parseStainlessPath, g as updateHistory, h as trimStainlessPath, i as expandToElement, l as getResource, m as scrollToPath, n as Languages, o as generateRoute, r as SupportedLanguageSyntaxes, s as generateRouteList, t as LanguageNames, u as isSupportedLanguage } from "./routing-GrDalgAW.js";
1
+ import { _ as walkTree, a as findNavigationPath, c as getLanguageSnippet, d as parseRoute, f as parseStainlessPath, g as updateHistory, h as trimStainlessPath, i as expandToElement, l as getResource, m as scrollToPath, n as Languages, o as generateRoute, r as SupportedLanguageSyntaxes, s as generateRouteList, t as LanguageNames, u as isSupportedLanguage } from "./routing-BGBmkDBL.js";
2
2
 
3
3
  export { LanguageNames, Languages, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
@@ -1,6 +1,6 @@
1
- import { t as DocsLanguage } from "./routing-Bcos-Z2q.js";
1
+ import { t as DocsLanguage } from "./routing-nN1nc0jx.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime28 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime35 from "react/jsx-runtime";
4
4
  import * as SDKJSON from "@stainless/sdk-json";
5
5
 
6
6
  //#region src/components/sdk.d.ts
@@ -33,7 +33,7 @@ declare function SDKChildren({
33
33
  paths,
34
34
  expand,
35
35
  depth
36
- }: SDKChildrenProps): react_jsx_runtime28.JSX.Element;
36
+ }: SDKChildrenProps): react_jsx_runtime35.JSX.Element;
37
37
  type SDKDeclarationProps = {
38
38
  path: string;
39
39
  expand?: boolean;
@@ -43,26 +43,26 @@ declare function SDKDeclaration({
43
43
  path,
44
44
  expand,
45
45
  depth
46
- }: SDKDeclarationProps): react_jsx_runtime28.JSX.Element;
46
+ }: SDKDeclarationProps): react_jsx_runtime35.JSX.Element;
47
47
  type SDKConstraintsProps = {
48
48
  constraints?: Record<string, any>;
49
49
  };
50
50
  declare function SDKConstraints({
51
51
  constraints
52
- }: SDKConstraintsProps): react_jsx_runtime28.JSX.Element | undefined;
52
+ }: SDKConstraintsProps): react_jsx_runtime35.JSX.Element | undefined;
53
53
  type SDKIconProps = {
54
54
  language: SDKJSON.SnippetLanguage;
55
55
  size?: number;
56
56
  };
57
57
  declare function SDKIcon({
58
58
  language
59
- }: SDKIconProps): react_jsx_runtime28.JSX.Element | null;
59
+ }: SDKIconProps): react_jsx_runtime35.JSX.Element | null;
60
60
  type SDKRequestTitleProps = {
61
61
  snippetLanguage: SDKJSON.SnippetLanguage;
62
62
  };
63
63
  declare function SDKRequestTitle({
64
64
  snippetLanguage
65
- }: SDKRequestTitleProps): react_jsx_runtime28.JSX.Element;
65
+ }: SDKRequestTitleProps): react_jsx_runtime35.JSX.Element;
66
66
  type SDKExampleProps = {
67
67
  method: SDKJSON.Method;
68
68
  transformRequestSnippet?: TransformRequestSnippetFn;
@@ -70,27 +70,27 @@ type SDKExampleProps = {
70
70
  declare function SDKExample({
71
71
  method,
72
72
  transformRequestSnippet
73
- }: SDKExampleProps): react_jsx_runtime28.JSX.Element;
73
+ }: SDKExampleProps): react_jsx_runtime35.JSX.Element;
74
74
  type SDKMethodProps = {
75
75
  method: SDKJSON.Method;
76
76
  transformRequestSnippet?: TransformRequestSnippetFn;
77
77
  };
78
78
  declare function SDKMethodHeader({
79
79
  method
80
- }: SDKMethodProps): react_jsx_runtime28.JSX.Element;
80
+ }: SDKMethodProps): react_jsx_runtime35.JSX.Element;
81
81
  declare function SDKMethodInfo({
82
82
  method
83
- }: SDKMethodProps): react_jsx_runtime28.JSX.Element;
83
+ }: SDKMethodProps): react_jsx_runtime35.JSX.Element;
84
84
  declare function SDKMethod({
85
85
  method,
86
86
  transformRequestSnippet
87
- }: SDKMethodProps): react_jsx_runtime28.JSX.Element;
87
+ }: SDKMethodProps): react_jsx_runtime35.JSX.Element;
88
88
  type SDKModelProps = {
89
89
  model: SDKJSON.Model;
90
90
  };
91
91
  declare function SDKModel({
92
92
  model
93
- }: SDKModelProps): react_jsx_runtime28.JSX.Element | null;
93
+ }: SDKModelProps): react_jsx_runtime35.JSX.Element | null;
94
94
  type SDKReferenceProps = {
95
95
  stainlessPath: string;
96
96
  children?: React$1.ReactNode;
@@ -98,7 +98,7 @@ type SDKReferenceProps = {
98
98
  declare function SDKReference({
99
99
  stainlessPath,
100
100
  children
101
- }: SDKReferenceProps): string | number | bigint | boolean | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | react_jsx_runtime28.JSX.Element | null | undefined;
101
+ }: SDKReferenceProps): string | number | bigint | boolean | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | react_jsx_runtime35.JSX.Element | null | undefined;
102
102
  type SDKLanguageBlockProps = {
103
103
  language: DocsLanguage;
104
104
  version: string;
@@ -113,6 +113,6 @@ declare function SDKLanguageBlock({
113
113
  version,
114
114
  install,
115
115
  links
116
- }: SDKLanguageBlockProps): react_jsx_runtime28.JSX.Element;
116
+ }: SDKLanguageBlockProps): react_jsx_runtime35.JSX.Element;
117
117
  //#endregion
118
118
  export { TransformRequestSnippetFn as C, SDKSnippetLanguagesType as S, useReferenceNesting as T, SDKModelProps as _, SDKChildren as a, SDKRequestTitleProps as b, SDKDeclaration as c, SDKLanguageBlock as d, SDKMethod as f, SDKModel as g, SDKMethodProps as h, ReferenceNestingContextType as i, SDKExample as l, SDKMethodInfo as m, PropertyModelContextType as n, SDKConstraints as o, SDKMethodHeader as p, ReferenceNestingContext as r, SDKConstraintsProps as s, PropertyModelContext as t, SDKIcon as u, SDKReference as v, usePropertyModel as w, SDKSnippetLanguages as x, SDKRequestTitle as y };
@@ -1,9 +1,9 @@
1
- import "../routing-Bcos-Z2q.js";
2
- import { l as QueryKindsType, u as ResultData } from "../types-1rnoIVpZ.js";
3
- import * as react_jsx_runtime86 from "react/jsx-runtime";
1
+ import "../routing-nN1nc0jx.js";
2
+ import { l as QueryKindsType, u as ResultData } from "../types-D7Ipu1J2.js";
3
+ import * as react_jsx_runtime90 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/search/form.d.ts
6
- declare function SearchForm(): react_jsx_runtime86.JSX.Element;
6
+ declare function SearchForm(): react_jsx_runtime90.JSX.Element;
7
7
  type SearchFilterProps = {
8
8
  results: ResultData;
9
9
  filterKind: QueryKindsType;
@@ -13,7 +13,7 @@ declare function SearchFilter({
13
13
  results,
14
14
  filterKind,
15
15
  onChange
16
- }: SearchFilterProps): react_jsx_runtime86.JSX.Element;
16
+ }: SearchFilterProps): react_jsx_runtime90.JSX.Element;
17
17
  type SearchModalProps = {
18
18
  id?: string;
19
19
  open?: boolean;
@@ -21,6 +21,6 @@ type SearchModalProps = {
21
21
  declare function SearchModal({
22
22
  id,
23
23
  open: isOpen
24
- }: SearchModalProps): react_jsx_runtime86.JSX.Element;
24
+ }: SearchModalProps): react_jsx_runtime90.JSX.Element;
25
25
  //#endregion
26
26
  export { SearchFilter, SearchFilterProps, SearchForm, SearchModal, SearchModalProps };
@@ -1,17 +1,17 @@
1
- import { a as useLanguage } from "../docs-C2xNNHgT.js";
2
- import "../component-generics-4gg5TFK4.js";
3
- import "../navigation-BrIapKIN.js";
4
- import "../markdown-sJ2VePdG.js";
5
- import "../routing-GrDalgAW.js";
6
- import { t as style_default } from "../style-B-5NIls4.js";
7
- import { t as useComponents } from "../use-components-DG6NAdUT.js";
8
- import { a as useSearchContext, i as useSearch } from "../contexts-HUUrbJAJ.js";
9
- import "../icons-Ckod9aod.js";
10
- import "../utils-CqR0JQ5q.js";
11
- import "../md-Ce-Zhp9O.js";
12
- import "../utils-jPbBiaDE.js";
13
- import { t as QueryKinds } from "../types-Ci-27DYJ.js";
14
- import { t as guideSearch } from "../pagefind-CKBforii.js";
1
+ import { a as useLanguage } from "../docs-CNvEp0VL.js";
2
+ import "../component-generics-F0_Dx7UT.js";
3
+ import "../navigation-bydkHNUW.js";
4
+ import "../markdown-Bx-mQFEj.js";
5
+ import "../routing-BGBmkDBL.js";
6
+ import { t as style_default } from "../style-0miv2y38.js";
7
+ import { t as useComponents } from "../use-components-BAHidYIO.js";
8
+ import { a as useSearchContext, i as useSearch } from "../contexts-D3ClFTt3.js";
9
+ import "../icons-DzBceOQw.js";
10
+ import "../utils-0z34vxY4.js";
11
+ import "../md-D5AxFoS4.js";
12
+ import "../utils-CiZXDoFR.js";
13
+ import { t as QueryKinds } from "../types-mRzd9aqe.js";
14
+ import { t as guideSearch } from "../pagefind-BHm6c3fb.js";
15
15
  import * as React$1 from "react";
16
16
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
17
17
  import { BookOpenText, Box, Code, Folder, Search, Wrench, X } from "lucide-react";
@@ -1,5 +1,5 @@
1
- import { t as DocsLanguage } from "../routing-Bcos-Z2q.js";
2
- import { n as IndexEntry, r as IndexMethod } from "../types-1rnoIVpZ.js";
1
+ import { t as DocsLanguage } from "../routing-nN1nc0jx.js";
2
+ import { n as IndexEntry, r as IndexMethod } from "../types-D7Ipu1J2.js";
3
3
  import * as SDKJSON from "@stainless/sdk-json";
4
4
 
5
5
  //#region src/search/indexer.d.ts
@@ -1,16 +1,16 @@
1
- import "../docs-C2xNNHgT.js";
2
- import "../component-generics-4gg5TFK4.js";
3
- import "../navigation-BrIapKIN.js";
4
- import "../markdown-sJ2VePdG.js";
5
- import { f as parseStainlessPath } from "../routing-GrDalgAW.js";
6
- import "../style-B-5NIls4.js";
7
- import "../use-components-DG6NAdUT.js";
8
- import { p as renderMarkdown, u as generateIndex } from "../contexts-HUUrbJAJ.js";
9
- import "../icons-Ckod9aod.js";
10
- import { n as getResourceFromSpec } from "../utils-CqR0JQ5q.js";
11
- import "../md-Ce-Zhp9O.js";
12
- import "../utils-jPbBiaDE.js";
13
- import "../types-Ci-27DYJ.js";
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 { f as parseStainlessPath } from "../routing-BGBmkDBL.js";
6
+ import "../style-0miv2y38.js";
7
+ import "../use-components-BAHidYIO.js";
8
+ import { p as renderMarkdown, u as generateIndex } from "../contexts-D3ClFTt3.js";
9
+ import "../icons-DzBceOQw.js";
10
+ import { n as getResourceFromSpec } from "../utils-0z34vxY4.js";
11
+ import "../md-D5AxFoS4.js";
12
+ import "../utils-CiZXDoFR.js";
13
+ import "../types-mRzd9aqe.js";
14
14
 
15
15
  //#region src/search/mcp.ts
16
16
  function consolidate(results) {
@@ -1,5 +1,5 @@
1
- import "../../routing-Bcos-Z2q.js";
2
- import { f as ResultType, g as SearchSettings, h as SearchParams, s as ProseIndexEntry } from "../../types-1rnoIVpZ.js";
1
+ import "../../routing-nN1nc0jx.js";
2
+ import { f as ResultType, g as SearchSettings, h as SearchParams, s as ProseIndexEntry } from "../../types-D7Ipu1J2.js";
3
3
  import * as SDKJSON from "@stainless/sdk-json";
4
4
 
5
5
  //#region src/search/providers/algolia.d.ts
@@ -1,15 +1,15 @@
1
- import "../../docs-C2xNNHgT.js";
2
- import "../../component-generics-4gg5TFK4.js";
3
- import "../../navigation-BrIapKIN.js";
4
- import "../../markdown-sJ2VePdG.js";
5
- import "../../routing-GrDalgAW.js";
6
- import "../../style-B-5NIls4.js";
7
- import "../../use-components-DG6NAdUT.js";
8
- import { c as buildProseIndex, l as search, o as buildChatIndex, s as buildIndex } from "../../contexts-HUUrbJAJ.js";
9
- import "../../icons-Ckod9aod.js";
10
- import "../../utils-CqR0JQ5q.js";
11
- import "../../md-Ce-Zhp9O.js";
12
- import "../../utils-jPbBiaDE.js";
13
- import "../../types-Ci-27DYJ.js";
1
+ import "../../docs-CNvEp0VL.js";
2
+ import "../../component-generics-F0_Dx7UT.js";
3
+ import "../../navigation-bydkHNUW.js";
4
+ import "../../markdown-Bx-mQFEj.js";
5
+ import "../../routing-BGBmkDBL.js";
6
+ import "../../style-0miv2y38.js";
7
+ import "../../use-components-BAHidYIO.js";
8
+ import { c as buildProseIndex, l as search, o as buildChatIndex, s as buildIndex } from "../../contexts-D3ClFTt3.js";
9
+ import "../../icons-DzBceOQw.js";
10
+ import "../../utils-0z34vxY4.js";
11
+ import "../../md-D5AxFoS4.js";
12
+ import "../../utils-CiZXDoFR.js";
13
+ import "../../types-mRzd9aqe.js";
14
14
 
15
15
  export { buildChatIndex, buildIndex, buildProseIndex, search };
@@ -1,5 +1,5 @@
1
- import { t as DocsLanguage } from "../../routing-Bcos-Z2q.js";
2
- import { n as IndexEntry } from "../../types-1rnoIVpZ.js";
1
+ import { t as DocsLanguage } from "../../routing-nN1nc0jx.js";
2
+ import { n as IndexEntry } from "../../types-D7Ipu1J2.js";
3
3
  import * as fuse_js0 from "fuse.js";
4
4
  import { FuseIndex } from "fuse.js";
5
5
  import * as SDKJSON from "@stainless/sdk-json";
@@ -1,16 +1,16 @@
1
- import "../../docs-C2xNNHgT.js";
2
- import "../../component-generics-4gg5TFK4.js";
3
- import "../../navigation-BrIapKIN.js";
4
- import "../../markdown-sJ2VePdG.js";
5
- import "../../routing-GrDalgAW.js";
6
- import "../../style-B-5NIls4.js";
7
- import "../../use-components-DG6NAdUT.js";
8
- import { u as generateIndex } from "../../contexts-HUUrbJAJ.js";
9
- import "../../icons-Ckod9aod.js";
10
- import "../../utils-CqR0JQ5q.js";
11
- import "../../md-Ce-Zhp9O.js";
12
- import "../../utils-jPbBiaDE.js";
13
- import { n as SearchableAttributes } from "../../types-Ci-27DYJ.js";
1
+ import "../../docs-CNvEp0VL.js";
2
+ import "../../component-generics-F0_Dx7UT.js";
3
+ import "../../navigation-bydkHNUW.js";
4
+ import "../../markdown-Bx-mQFEj.js";
5
+ import "../../routing-BGBmkDBL.js";
6
+ import "../../style-0miv2y38.js";
7
+ import "../../use-components-BAHidYIO.js";
8
+ import { u as generateIndex } from "../../contexts-D3ClFTt3.js";
9
+ import "../../icons-DzBceOQw.js";
10
+ import "../../utils-0z34vxY4.js";
11
+ import "../../md-D5AxFoS4.js";
12
+ import "../../utils-CiZXDoFR.js";
13
+ import { n as SearchableAttributes } from "../../types-mRzd9aqe.js";
14
14
  import Fuse from "fuse.js";
15
15
 
16
16
  //#region src/search/providers/fuse.ts
@@ -1,5 +1,5 @@
1
- import "../../routing-Bcos-Z2q.js";
2
- import { t as GuideResultType } from "../../types-1rnoIVpZ.js";
1
+ import "../../routing-nN1nc0jx.js";
2
+ import { t as GuideResultType } from "../../types-D7Ipu1J2.js";
3
3
 
4
4
  //#region src/search/providers/pagefind.d.ts
5
5
  declare function guideSearch(loadPath: string, query: string, limit?: number): Promise<GuideResultType[]>;
@@ -1,3 +1,3 @@
1
- import { t as guideSearch } from "../../pagefind-CKBforii.js";
1
+ import { t as guideSearch } from "../../pagefind-BHm6c3fb.js";
2
2
 
3
3
  export { guideSearch };
@@ -1,5 +1,5 @@
1
- import { t as DocsLanguage } from "../../routing-Bcos-Z2q.js";
2
- import { n as IndexEntry } from "../../types-1rnoIVpZ.js";
1
+ import { t as DocsLanguage } from "../../routing-nN1nc0jx.js";
2
+ import { n as IndexEntry } from "../../types-D7Ipu1J2.js";
3
3
  import * as SDKJSON from "@stainless/sdk-json";
4
4
 
5
5
  //#region src/search/providers/walker.d.ts
@@ -1,16 +1,16 @@
1
- import "../../docs-C2xNNHgT.js";
2
- import "../../component-generics-4gg5TFK4.js";
3
- import "../../navigation-BrIapKIN.js";
4
- import "../../markdown-sJ2VePdG.js";
5
- import "../../routing-GrDalgAW.js";
6
- import "../../style-B-5NIls4.js";
7
- import "../../use-components-DG6NAdUT.js";
8
- import { u as generateIndex } from "../../contexts-HUUrbJAJ.js";
9
- import "../../icons-Ckod9aod.js";
10
- import "../../utils-CqR0JQ5q.js";
11
- import "../../md-Ce-Zhp9O.js";
12
- import "../../utils-jPbBiaDE.js";
13
- import { n as SearchableAttributes } from "../../types-Ci-27DYJ.js";
1
+ import "../../docs-CNvEp0VL.js";
2
+ import "../../component-generics-F0_Dx7UT.js";
3
+ import "../../navigation-bydkHNUW.js";
4
+ import "../../markdown-Bx-mQFEj.js";
5
+ import "../../routing-BGBmkDBL.js";
6
+ import "../../style-0miv2y38.js";
7
+ import "../../use-components-BAHidYIO.js";
8
+ import { u as generateIndex } from "../../contexts-D3ClFTt3.js";
9
+ import "../../icons-DzBceOQw.js";
10
+ import "../../utils-0z34vxY4.js";
11
+ import "../../md-D5AxFoS4.js";
12
+ import "../../utils-CiZXDoFR.js";
13
+ import { n as SearchableAttributes } from "../../types-mRzd9aqe.js";
14
14
 
15
15
  //#region src/search/providers/walker.ts
16
16
  function buildIndex(spec) {
@@ -1,3 +1,3 @@
1
- import "../routing-Bcos-Z2q.js";
2
- import { _ as SearchableAttributes, a as IndexProperty, c as QueryKinds, d as ResultRecordType, f as ResultType, g as SearchSettings, h as SearchParams, i as IndexModel, l as QueryKindsType, m as SearchAttributeNames, n as IndexEntry, o as IndexResource, p as RoutableJsonNode, r as IndexMethod, s as ProseIndexEntry, t as GuideResultType, u as ResultData, v as SearchableAttributesChat, y as SearchableAttributesProse } from "../types-1rnoIVpZ.js";
1
+ import "../routing-nN1nc0jx.js";
2
+ import { _ as SearchableAttributes, a as IndexProperty, c as QueryKinds, d as ResultRecordType, f as ResultType, g as SearchSettings, h as SearchParams, i as IndexModel, l as QueryKindsType, m as SearchAttributeNames, n as IndexEntry, o as IndexResource, p as RoutableJsonNode, r as IndexMethod, s as ProseIndexEntry, t as GuideResultType, u as ResultData, v as SearchableAttributesChat, y as SearchableAttributesProse } from "../types-D7Ipu1J2.js";
3
3
  export { GuideResultType, IndexEntry, IndexMethod, IndexModel, IndexProperty, IndexResource, ProseIndexEntry, QueryKinds, QueryKindsType, ResultData, ResultRecordType, ResultType, RoutableJsonNode, SearchAttributeNames, SearchParams, SearchSettings, SearchableAttributes, SearchableAttributesChat, SearchableAttributesProse };
@@ -1,3 +1,3 @@
1
- import { i as SearchableAttributesProse, n as SearchableAttributes, r as SearchableAttributesChat, t as QueryKinds } from "../types-Ci-27DYJ.js";
1
+ import { i as SearchableAttributesProse, n as SearchableAttributes, r as SearchableAttributesChat, t as QueryKinds } from "../types-mRzd9aqe.js";
2
2
 
3
3
  export { QueryKinds, SearchableAttributes, SearchableAttributesChat, SearchableAttributesProse };
@@ -1,6 +1,6 @@
1
- import { f as ResultType, g as SearchSettings, h as SearchParams } from "./types-1rnoIVpZ.js";
1
+ import { f as ResultType, g as SearchSettings, h as SearchParams } from "./types-D7Ipu1J2.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime59 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime64 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/contexts/search.d.ts
6
6
  type SearchContextType = {
@@ -16,6 +16,6 @@ type SearchProviderProps = SearchContextType & {
16
16
  declare function SearchProvider({
17
17
  children,
18
18
  ...props
19
- }: SearchProviderProps): react_jsx_runtime59.JSX.Element;
19
+ }: SearchProviderProps): react_jsx_runtime64.JSX.Element;
20
20
  //#endregion
21
21
  export { useSearchContext as a, useSearch as i, SearchProvider as n, SearchProviderProps as r, SearchContextType as t };
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from "react";
2
- import * as react_jsx_runtime40 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime47 from "react/jsx-runtime";
3
3
  import * as SDKJSON from "@stainless/sdk-json";
4
4
 
5
5
  //#region src/components/sidebar.d.ts
@@ -12,25 +12,25 @@ declare function SidebarExpander({
12
12
  open,
13
13
  summary,
14
14
  children
15
- }: SidebarExpanderProps): react_jsx_runtime40.JSX.Element;
15
+ }: SidebarExpanderProps): react_jsx_runtime47.JSX.Element;
16
16
  type SidebarMethodProps = {
17
17
  method: SDKJSON.Method;
18
18
  };
19
19
  declare function SidebarMethod({
20
20
  method
21
- }: SidebarMethodProps): react_jsx_runtime40.JSX.Element;
21
+ }: SidebarMethodProps): react_jsx_runtime47.JSX.Element;
22
22
  type SidebarResourceProps = {
23
23
  resource: SDKJSON.Resource;
24
24
  };
25
25
  declare function SidebarResource({
26
26
  resource
27
- }: SidebarResourceProps): react_jsx_runtime40.JSX.Element;
27
+ }: SidebarResourceProps): react_jsx_runtime47.JSX.Element;
28
28
  type SidebarProps = {
29
29
  resources: SDKJSON.Resource[];
30
30
  selectedPath?: string;
31
31
  };
32
32
  declare function Sidebar({
33
33
  resources
34
- }: SidebarProps): react_jsx_runtime40.JSX.Element;
34
+ }: SidebarProps): react_jsx_runtime47.JSX.Element;
35
35
  //#endregion
36
36
  export { SidebarProps as a, SidebarMethodProps as i, SidebarExpander as n, SidebarResource as o, SidebarMethod as r, SidebarResourceProps as s, Sidebar as t };
@@ -1,6 +1,6 @@
1
- import { C as TransformRequestSnippetFn } from "./sdk-CDNNOl31.js";
1
+ import { C as TransformRequestSnippetFn } from "./sdk-Ck0IERc7.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime44 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime51 from "react/jsx-runtime";
4
4
  import * as SDKJSON from "@stainless/sdk-json";
5
5
 
6
6
  //#region src/components/snippets.d.ts
@@ -12,7 +12,7 @@ type SnippetCodeProps = {
12
12
  declare function SnippetCode({
13
13
  content,
14
14
  language
15
- }: SnippetCodeProps): react_jsx_runtime44.JSX.Element;
15
+ }: SnippetCodeProps): react_jsx_runtime51.JSX.Element;
16
16
  type SnippetProps = {
17
17
  method: SDKJSON.Method;
18
18
  requestTitle?: React$1.ReactNode;
@@ -24,28 +24,28 @@ type SnippetContainerProps = {
24
24
  };
25
25
  declare function SnippetContainer({
26
26
  children
27
- }: SnippetContainerProps): react_jsx_runtime44.JSX.Element;
27
+ }: SnippetContainerProps): react_jsx_runtime51.JSX.Element;
28
28
  type SnippetRequestContainerProps = {
29
29
  children?: React$1.ReactNode;
30
30
  signature?: string;
31
31
  };
32
32
  declare function SnippetRequestContainer({
33
33
  children
34
- }: SnippetRequestContainerProps): react_jsx_runtime44.JSX.Element;
34
+ }: SnippetRequestContainerProps): react_jsx_runtime51.JSX.Element;
35
35
  declare function Snippet({
36
36
  requestTitle,
37
37
  method,
38
38
  transformRequestSnippet
39
- }: SnippetProps): react_jsx_runtime44.JSX.Element | null;
39
+ }: SnippetProps): react_jsx_runtime51.JSX.Element | null;
40
40
  declare function SnippetButtons({
41
41
  content
42
42
  }: {
43
43
  content: string;
44
- }): react_jsx_runtime44.JSX.Element;
44
+ }): react_jsx_runtime51.JSX.Element;
45
45
  declare function SnippetResponse({
46
46
  responses
47
47
  }: {
48
48
  responses: SDKJSON.Method['exampleResponses'];
49
- }): react_jsx_runtime44.JSX.Element | null;
49
+ }): react_jsx_runtime51.JSX.Element | null;
50
50
  //#endregion
51
51
  export { SnippetContainer as a, SnippetRequestContainer as c, SnippetCodeProps as i, SnippetRequestContainerProps as l, SnippetButtons as n, SnippetContainerProps as o, SnippetCode as r, SnippetProps as s, Snippet as t, SnippetResponse as u };
package/dist/spec.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as DocsLanguage } from "./routing-Bcos-Z2q.js";
1
+ import { t as DocsLanguage } from "./routing-nN1nc0jx.js";
2
2
  import * as SDKJSON from "@stainless/sdk-json";
3
3
 
4
4
  //#region src/spec.d.ts
@@ -36,13 +36,13 @@ declare function generateNavigation(resource: Partial<SDKJSON.Resource>): {
36
36
  declare function generateSpecForResource(spec: SDKJSON.Spec, name: string, lang: DocsLanguage, transforms: SpecTransforms): Partial<SDKJSON.Spec>;
37
37
  declare function transform(spec: SDKJSON.Spec, transforms: SpecTransforms): {
38
38
  name: string;
39
- lang: "http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin" | "csharp" | "php";
39
+ lang: "node" | "go" | "python" | "terraform" | "http" | "typescript" | "ruby" | "java" | "kotlin" | "csharp" | "php";
40
40
  spec: Partial<SDKJSON.Spec>;
41
41
  }[];
42
42
  declare function split(spec: SDKJSON.Spec, transforms?: SpecTransforms): {
43
43
  resources: ReturnType<typeof transform>;
44
44
  navigation: {
45
- languages: ("http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin")[] | undefined;
45
+ languages: ("node" | "go" | "python" | "terraform" | "http" | "typescript" | "ruby" | "java" | "kotlin")[] | undefined;
46
46
  resources: {
47
47
  [k: string]: {
48
48
  title: string | undefined;
package/dist/spec.js CHANGED
@@ -1,5 +1,5 @@
1
- import { n as Languages } from "./routing-GrDalgAW.js";
2
- import { r as isResourceEmpty } from "./utils-CqR0JQ5q.js";
1
+ import { n as Languages } from "./routing-BGBmkDBL.js";
2
+ import { r as isResourceEmpty } from "./utils-0z34vxY4.js";
3
3
 
4
4
  //#region src/spec.ts
5
5
  const defaultTransforms = {
package/dist/style.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./style-BJCwZ-Wf.js";
1
+ import { t as _default } from "./style-D8hwSwrv.js";
2
2
  export { _default as default };
package/dist/style.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as style_default } from "./style-B-5NIls4.js";
1
+ import { t as style_default } from "./style-0miv2y38.js";
2
2
 
3
3
  export { style_default as default };
@@ -1,4 +1,4 @@
1
- import { t as DocsLanguage } from "./routing-Bcos-Z2q.js";
1
+ import { t as DocsLanguage } from "./routing-nN1nc0jx.js";
2
2
  import * as SDKJSON from "@stainless/sdk-json";
3
3
 
4
4
  //#region src/search/types.d.ts
@@ -1,4 +1,4 @@
1
- import { i as useComponents } from "./component-generics-4gg5TFK4.js";
1
+ import { i as useComponents } from "./component-generics-F0_Dx7UT.js";
2
2
 
3
3
  //#region src/contexts/use-components.tsx
4
4
  const useComponents$1 = () => useComponents();
@@ -1,5 +1,5 @@
1
- import { t as __export } from "./chunk-KfF3XP4c.js";
2
- import { f as parseStainlessPath } from "./routing-GrDalgAW.js";
1
+ import { t as __export } from "./chunk-BWfJHHBp.js";
2
+ import { f as parseStainlessPath } from "./routing-BGBmkDBL.js";
3
3
 
4
4
  //#region src/utils.ts
5
5
  var utils_exports = /* @__PURE__ */ __export({
@@ -1,5 +1,5 @@
1
- import { t as DocsLanguage } from "./routing-Bcos-Z2q.js";
2
- import { C as TransformRequestSnippetFn } from "./sdk-CDNNOl31.js";
1
+ import { t as DocsLanguage } from "./routing-nN1nc0jx.js";
2
+ import { C as TransformRequestSnippetFn } from "./sdk-Ck0IERc7.js";
3
3
  import * as SDKJSON from "@stainless/sdk-json";
4
4
 
5
5
  //#region src/markdown/utils.d.ts
package/dist/utils.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-CI9byvCc.js";
1
+ import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-BcWczffA.js";
2
2
  export { flatResources, getResourceFromSpec, isResourceEmpty };
package/dist/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./routing-GrDalgAW.js";
2
- import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-CqR0JQ5q.js";
1
+ import "./routing-BGBmkDBL.js";
2
+ import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-0z34vxY4.js";
3
3
 
4
4
  export { flatResources, getResourceFromSpec, isResourceEmpty };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stainless-api/docs-ui",
3
3
  "private": false,
4
- "version": "0.1.0-beta.46",
4
+ "version": "0.1.0-beta.47",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -32,7 +32,7 @@
32
32
  "tsdown": "^0.16.8",
33
33
  "typescript": "5.9.3",
34
34
  "@stainless/eslint-config": "0.1.0-beta.0",
35
- "@stainless/sdk-json": "^0.1.0-beta.1"
35
+ "@stainless/sdk-json": "^0.1.0-beta.2"
36
36
  },
37
37
  "exports": {
38
38
  ".": {
@@ -83,6 +83,9 @@
83
83
  "./search": {
84
84
  "default": "./dist/search/index.js"
85
85
  },
86
+ "./search/mcp": {
87
+ "default": "./dist/search/mcp.js"
88
+ },
86
89
  "./search/types": {
87
90
  "default": "./dist/search/types.js"
88
91
  },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes