@stainless-api/docs-ui 0.1.0-beta.57 → 0.1.0-beta.58

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 (111) hide show
  1. package/dist/{breadcrumbs-CCViAnPI.js → breadcrumbs-3q1o8SBZ.js} +2 -2
  2. package/dist/{breadcrumbs-BFCcsaL5.d.ts → breadcrumbs-Bu4Lz7cO.d.ts} +4 -4
  3. package/dist/{component-generics-CXfH4VNh.d.ts → component-generics-CLPqY1b3.d.ts} +2 -2
  4. package/dist/{component-2IFa97aV.js → component-l0Q5m3CM.js} +2 -2
  5. package/dist/components/MaskedInput.d.ts +3 -3
  6. package/dist/components/MaskedInput.js +1 -1
  7. package/dist/components/breadcrumbs.d.ts +1 -1
  8. package/dist/components/breadcrumbs.js +2 -2
  9. package/dist/components/icons.d.ts +11 -11
  10. package/dist/components/index.d.ts +9 -9
  11. package/dist/components/index.js +9 -9
  12. package/dist/components/method.d.ts +1 -1
  13. package/dist/components/method.js +2 -2
  14. package/dist/components/overview.d.ts +1 -1
  15. package/dist/components/overview.js +3 -3
  16. package/dist/components/primitives.d.ts +1 -1
  17. package/dist/components/primitives.js +1 -1
  18. package/dist/components/properties.d.ts +1 -1
  19. package/dist/components/properties.js +1 -1
  20. package/dist/components/sdk.d.ts +1 -1
  21. package/dist/components/sdk.js +1 -1
  22. package/dist/components/sidebar.d.ts +1 -1
  23. package/dist/components/sidebar.js +1 -1
  24. package/dist/components/snippets.d.ts +2 -2
  25. package/dist/components/snippets.js +1 -1
  26. package/dist/{components-B6opXKh2.js → components-BdOXrvW2.js} +8 -8
  27. package/dist/contexts/component-generics.d.ts +1 -1
  28. package/dist/contexts/component-types.d.ts +10 -10
  29. package/dist/contexts/component.d.ts +13 -13
  30. package/dist/contexts/component.js +18 -18
  31. package/dist/contexts/docs.d.ts +1 -1
  32. package/dist/contexts/index.d.ts +14 -14
  33. package/dist/contexts/markdown.d.ts +1 -1
  34. package/dist/contexts/navigation.d.ts +1 -1
  35. package/dist/contexts/use-components.d.ts +9 -9
  36. package/dist/{csharp-Cs2V5Q49.js → csharp-ZbePFjQO.js} +7 -7
  37. package/dist/{docs-AUJrRqst.d.ts → docs-8bJ2Zq-a.d.ts} +4 -5
  38. package/dist/{go-jtKybF5f.js → go-B0LsOWv5.js} +1 -1
  39. package/dist/{http-ByTnZCdl.js → http-DhFmbdJn.js} +2 -2
  40. package/dist/{index-CBfCrZxK.d.ts → index-BON8gAFi.d.ts} +8 -8
  41. package/dist/index-BtmA2psc.d.ts +1587 -0
  42. package/dist/{index-DUvl24AZ.d.ts → index-qF_YVWCx.d.ts} +19 -19
  43. package/dist/index.d.ts +15 -15
  44. package/dist/index.js +18 -18
  45. package/dist/{java-CSfLt_jp.js → java-DnoViM8r.js} +1 -1
  46. package/dist/languages/csharp.d.ts +10 -10
  47. package/dist/languages/csharp.js +1 -1
  48. package/dist/languages/go.d.ts +10 -10
  49. package/dist/languages/go.js +1 -1
  50. package/dist/languages/http.d.ts +10 -10
  51. package/dist/languages/http.js +10 -10
  52. package/dist/languages/index.d.ts +10 -10
  53. package/dist/languages/index.js +17 -17
  54. package/dist/languages/java.d.ts +10 -10
  55. package/dist/languages/java.js +1 -1
  56. package/dist/languages/python.d.ts +10 -10
  57. package/dist/languages/python.js +1 -1
  58. package/dist/languages/ruby.d.ts +10 -10
  59. package/dist/languages/ruby.js +1 -1
  60. package/dist/languages/typescript.d.ts +10 -10
  61. package/dist/languages/typescript.js +1 -1
  62. package/dist/{languages-X8bJZjuW.js → languages-DkMjjyDN.js} +7 -7
  63. package/dist/markdown/index.d.ts +5 -5
  64. package/dist/markdown/index.js +18 -18
  65. package/dist/markdown/md.js +2 -2
  66. package/dist/markdown/printer.d.ts +6 -6
  67. package/dist/markdown/printer.js +33 -32
  68. package/dist/markdown/utils.d.ts +5 -5
  69. package/dist/{markdown-CqEZJJrZ.d.ts → markdown-DTp4ociY.d.ts} +2 -2
  70. package/dist/{method-CD_dwBsB.d.ts → method-ClPGsX68.d.ts} +6 -6
  71. package/dist/{method-BPsNdtwS.js → method-pJ_RhZj-.js} +2 -2
  72. package/dist/{navigation-BlOvTCTX.d.ts → navigation-DzgC_T1S.d.ts} +3 -3
  73. package/dist/{overview-CVTaIlP6.d.ts → overview-CdbaBavs.d.ts} +11 -11
  74. package/dist/{overview-BslKVsRE.js → overview-DYiiAHTd.js} +6 -6
  75. package/dist/{primitives-Da9sUCQo.d.ts → primitives-Cw5uBUQk.d.ts} +11 -11
  76. package/dist/{primitives-CCj2Pn-o.js → primitives-DHsRAENq.js} +1 -1
  77. package/dist/{properties-CEjSSMRr.d.ts → properties-Bn_hArWT.d.ts} +5 -5
  78. package/dist/{properties-DhttBLpf.js → properties-WqNSu-9K.js} +1 -1
  79. package/dist/{python-BU7eaJMy.js → python-Bj1XJ1je.js} +1 -1
  80. package/dist/{routing-CUnVDpU-.d.ts → routing-BHkWbZpp.d.ts} +5 -5
  81. package/dist/routing.d.ts +1 -1
  82. package/dist/{ruby-LiJ6VW-R.js → ruby-CUOmUwz-.js} +1 -1
  83. package/dist/{sdk-CL6r5JlK.d.ts → sdk-BiLj2q7E.d.ts} +22 -22
  84. package/dist/{sdk-CbNqFzOI.js → sdk-DoprvjCy.js} +1 -1
  85. package/dist/{sidebar-ZNWRDHyv.js → sidebar-4QeeafnE.js} +2 -2
  86. package/dist/{sidebar-BDwx6h14.d.ts → sidebar-DimNfsmt.d.ts} +9 -9
  87. package/dist/{snippets-CO4kIovz.js → snippets-BPHTjwpN.js} +6 -12
  88. package/dist/{snippets-DePfv2T6.d.ts → snippets-CQrk6Dfj.d.ts} +11 -11
  89. package/dist/spec.d.ts +24 -24
  90. package/dist/{style-Vk87Pfuy.js → style-WTDMMzqU.js} +0 -1
  91. package/dist/style.d.ts +0 -1
  92. package/dist/style.js +1 -1
  93. package/dist/styles/main.css +9 -1
  94. package/dist/styles.css +9 -1
  95. package/dist/{typescript-C8J1uyak.js → typescript-B4wuVmP1.js} +1 -1
  96. package/dist/utils.d.ts +6 -6
  97. package/package.json +3 -3
  98. package/dist/breadcrumbs-DTHE6aca.d.ts +0 -25
  99. package/dist/component-generics-Dbwqv7EL.d.ts +0 -30
  100. package/dist/docs-BQbH-a6R.d.ts +0 -47
  101. package/dist/index-Bk5AWxiZ.d.ts +0 -274
  102. package/dist/index-CxTvYsqI.d.ts +0 -15
  103. package/dist/markdown-V_bNKjle.d.ts +0 -22
  104. package/dist/method-CkGKALRi.d.ts +0 -59
  105. package/dist/navigation-CXQA2RZo.d.ts +0 -29
  106. package/dist/overview-DFrenwhf.d.ts +0 -39
  107. package/dist/primitives-DiDzLHoK.d.ts +0 -104
  108. package/dist/properties-CXDSYNGL.d.ts +0 -54
  109. package/dist/sdk-CenwRRXT.d.ts +0 -118
  110. package/dist/sidebar-CcX4PdH0.d.ts +0 -36
  111. package/dist/snippets-ykHHsG1B.d.ts +0 -51
@@ -4,25 +4,25 @@ import "../navigation-C5TN0SgC.js";
4
4
  import "../markdown-CxdeWgjV.js";
5
5
  import "../contexts-CLpvBI91.js";
6
6
  import "../use-components-DBx5LZk0.js";
7
- import "../properties-DhttBLpf.js";
8
- import "../method-BPsNdtwS.js";
9
- import "../primitives-CCj2Pn-o.js";
7
+ import "../properties-WqNSu-9K.js";
8
+ import "../method-pJ_RhZj-.js";
9
+ import "../primitives-DHsRAENq.js";
10
10
  import "../icons-Ckod9aod.js";
11
- import "../sdk-CbNqFzOI.js";
12
- import "../snippets-CO4kIovz.js";
13
- import "../overview-BslKVsRE.js";
14
- import "../breadcrumbs-CCViAnPI.js";
15
- import "../sidebar-ZNWRDHyv.js";
16
- import "../components-B6opXKh2.js";
17
- import "../typescript-C8J1uyak.js";
18
- import "../java-CSfLt_jp.js";
19
- import "../go-jtKybF5f.js";
20
- import "../python-BU7eaJMy.js";
21
- import "../ruby-LiJ6VW-R.js";
22
- import "../http-ByTnZCdl.js";
23
- import "../csharp-Cs2V5Q49.js";
24
- import "../languages-X8bJZjuW.js";
25
- import "../component-2IFa97aV.js";
11
+ import "../sdk-DoprvjCy.js";
12
+ import "../snippets-BPHTjwpN.js";
13
+ import "../overview-DYiiAHTd.js";
14
+ import "../breadcrumbs-3q1o8SBZ.js";
15
+ import "../sidebar-4QeeafnE.js";
16
+ import "../components-BdOXrvW2.js";
17
+ import "../typescript-B4wuVmP1.js";
18
+ import "../java-DnoViM8r.js";
19
+ import "../go-B0LsOWv5.js";
20
+ import "../python-Bj1XJ1je.js";
21
+ import "../ruby-CUOmUwz-.js";
22
+ import "../http-DhFmbdJn.js";
23
+ import "../csharp-ZbePFjQO.js";
24
+ import "../languages-DkMjjyDN.js";
25
+ import "../component-l0Q5m3CM.js";
26
26
  import { code, fence, heading, item, list, paragraph, parse, strong, text } from "./md.js";
27
27
  import { getDecl, getSnippet, stripMarkup } from "./utils.js";
28
28
  import { declaration as declaration$1, methodSignature, t as printer_exports } from "./printer.js";
@@ -12,8 +12,8 @@ function code(content) {
12
12
  return new Markdoc.Ast.Node("code", { content });
13
13
  }
14
14
  function paragraph(...children) {
15
- const inline$1 = new Markdoc.Ast.Node("inline", {}, children);
16
- return new Markdoc.Ast.Node("paragraph", {}, [inline$1]);
15
+ const inline = new Markdoc.Ast.Node("inline", {}, children);
16
+ return new Markdoc.Ast.Node("paragraph", {}, [inline]);
17
17
  }
18
18
  function list(...children) {
19
19
  return new Markdoc.Ast.Node("list", { ordered: false }, children);
@@ -1,13 +1,13 @@
1
- import { t as DocsLanguage } from "../routing-CUnVDpU-.js";
2
- import * as SDKJSON from "@stainless/sdk-json";
1
+ import { _ as Type, n as DeclarationNode } from "../index-BtmA2psc.js";
2
+ import { t as DocsLanguage } from "../routing-BHkWbZpp.js";
3
3
 
4
4
  //#region src/markdown/printer.d.ts
5
5
  declare namespace printer_d_exports {
6
6
  export { declaration, methodSignature, type, typeName };
7
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;
8
+ declare function typeName(language: DocsLanguage, type: Type): string;
9
+ declare function type(language: DocsLanguage, type: Type): string;
10
+ declare function declaration(language: DocsLanguage, decl: DeclarationNode): string;
11
+ declare function methodSignature(language: DocsLanguage, decl: DeclarationNode): string;
12
12
  //#endregion
13
13
  export { declaration, methodSignature, printer_d_exports as t, type, typeName };
@@ -5,26 +5,26 @@ import "../navigation-C5TN0SgC.js";
5
5
  import "../markdown-CxdeWgjV.js";
6
6
  import { n as useLanguageComponents } from "../contexts-CLpvBI91.js";
7
7
  import "../use-components-DBx5LZk0.js";
8
- import { t as style_default } from "../style-Vk87Pfuy.js";
9
- import "../properties-DhttBLpf.js";
10
- import "../method-BPsNdtwS.js";
11
- import "../primitives-CCj2Pn-o.js";
8
+ import { t as style_default } from "../style-WTDMMzqU.js";
9
+ import "../properties-WqNSu-9K.js";
10
+ import "../method-pJ_RhZj-.js";
11
+ import "../primitives-DHsRAENq.js";
12
12
  import "../icons-Ckod9aod.js";
13
- import "../sdk-CbNqFzOI.js";
14
- import "../snippets-CO4kIovz.js";
15
- import "../overview-BslKVsRE.js";
16
- import "../breadcrumbs-CCViAnPI.js";
17
- import "../sidebar-ZNWRDHyv.js";
18
- import "../components-B6opXKh2.js";
19
- import "../typescript-C8J1uyak.js";
20
- import "../java-CSfLt_jp.js";
21
- import "../go-jtKybF5f.js";
22
- import "../python-BU7eaJMy.js";
23
- import "../ruby-LiJ6VW-R.js";
24
- import "../http-ByTnZCdl.js";
25
- import "../csharp-Cs2V5Q49.js";
26
- import "../languages-X8bJZjuW.js";
27
- import { t as ComponentProvider } from "../component-2IFa97aV.js";
13
+ import "../sdk-DoprvjCy.js";
14
+ import "../snippets-BPHTjwpN.js";
15
+ import "../overview-DYiiAHTd.js";
16
+ import "../breadcrumbs-3q1o8SBZ.js";
17
+ import "../sidebar-4QeeafnE.js";
18
+ import "../components-BdOXrvW2.js";
19
+ import "../typescript-B4wuVmP1.js";
20
+ import "../java-DnoViM8r.js";
21
+ import "../go-B0LsOWv5.js";
22
+ import "../python-Bj1XJ1je.js";
23
+ import "../ruby-CUOmUwz-.js";
24
+ import "../http-DhFmbdJn.js";
25
+ import "../csharp-ZbePFjQO.js";
26
+ import "../languages-DkMjjyDN.js";
27
+ import { t as ComponentProvider } from "../component-l0Q5m3CM.js";
28
28
  import "react";
29
29
  import { jsx } from "react/jsx-runtime";
30
30
  import { renderToStaticMarkup } from "react-dom/server";
@@ -36,37 +36,38 @@ var printer_exports = /* @__PURE__ */ __exportAll({
36
36
  type: () => type,
37
37
  typeName: () => typeName
38
38
  });
39
+ function SDKReference({ stainlessPath, children }) {
40
+ if (!stainlessPath) return children;
41
+ return /* @__PURE__ */ jsx("span", {
42
+ className: style_default.TypeReference,
43
+ children
44
+ });
45
+ }
39
46
  function Providers({ language, children }) {
40
47
  return /* @__PURE__ */ jsx(DocsProvider, {
41
48
  spec: null,
42
49
  language,
43
50
  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
+ components: { SDKReference },
51
52
  children
52
53
  })
53
54
  });
54
55
  }
55
- function RenderType({ type: type$1, full }) {
56
+ function RenderType({ type, full }) {
56
57
  const { Type, TypeName } = useLanguageComponents();
57
- return full ? /* @__PURE__ */ jsx(Type, { type: type$1 }) : /* @__PURE__ */ jsx(TypeName, { type: type$1 });
58
+ return full ? /* @__PURE__ */ jsx(Type, { type }) : /* @__PURE__ */ jsx(TypeName, { type });
58
59
  }
59
- function typeName(language, type$1) {
60
+ function typeName(language, type) {
60
61
  return renderToStaticMarkup(/* @__PURE__ */ jsx(Providers, {
61
62
  language,
62
- children: /* @__PURE__ */ jsx(RenderType, { type: type$1 })
63
+ children: /* @__PURE__ */ jsx(RenderType, { type })
63
64
  }));
64
65
  }
65
- function type(language, type$1) {
66
+ function type(language, type) {
66
67
  return renderToStaticMarkup(/* @__PURE__ */ jsx(Providers, {
67
68
  language,
68
69
  children: /* @__PURE__ */ jsx(RenderType, {
69
- type: type$1,
70
+ type,
70
71
  full: true
71
72
  })
72
73
  }));
@@ -1,10 +1,10 @@
1
- import { t as DocsLanguage } from "../routing-CUnVDpU-.js";
2
- import { C as TransformRequestSnippetFn } from "../sdk-CL6r5JlK.js";
3
- import * as SDKJSON from "@stainless/sdk-json";
1
+ import { h as SpecLanguage, m as Spec, s as LanguageDeclNodes } from "../index-BtmA2psc.js";
2
+ import { t as DocsLanguage } from "../routing-BHkWbZpp.js";
3
+ import { C as TransformRequestSnippetFn } from "../sdk-BiLj2q7E.js";
4
4
 
5
5
  //#region src/markdown/utils.d.ts
6
6
  type EnvironmentType = {
7
- spec: SDKJSON.Spec;
7
+ spec: Spec;
8
8
  language: DocsLanguage;
9
9
  transforms?: {
10
10
  transformRequestSnippet?: TransformRequestSnippetFn;
@@ -14,7 +14,7 @@ type EnvironmentType = {
14
14
  includeModelProperties?: boolean;
15
15
  };
16
16
  };
17
- declare function getDecl(env: EnvironmentType, path: string): SDKJSON.LanguageDeclNodes[SDKJSON.SpecLanguage] | undefined;
17
+ declare function getDecl(env: EnvironmentType, path: string): LanguageDeclNodes[SpecLanguage] | undefined;
18
18
  declare function getSnippet(env: EnvironmentType, path: string): string | undefined;
19
19
  declare function stripMarkup(content: string): string;
20
20
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from "react";
2
- import * as react_jsx_runtime11 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime60 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_runtime11.JSX.Element;
20
+ }: MarkdownProviderProps): react_jsx_runtime60.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_runtime46 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime17 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/method.d.ts
6
6
  type MethodHeaderProps = {
@@ -16,7 +16,7 @@ declare function MethodHeader({
16
16
  signature,
17
17
  children,
18
18
  level
19
- }: MethodHeaderProps): react_jsx_runtime46.JSX.Element;
19
+ }: MethodHeaderProps): react_jsx_runtime17.JSX.Element;
20
20
  type MethodRouteProps = {
21
21
  httpMethod?: string;
22
22
  endpoint?: string | ReactNode;
@@ -26,13 +26,13 @@ declare function MethodRoute({
26
26
  httpMethod,
27
27
  endpoint,
28
28
  iconOnly
29
- }: MethodRouteProps): react_jsx_runtime46.JSX.Element;
29
+ }: MethodRouteProps): react_jsx_runtime17.JSX.Element;
30
30
  type MethodDescriptionProps = {
31
31
  description?: string;
32
32
  };
33
33
  declare function MethodDescription({
34
34
  description
35
- }: MethodDescriptionProps): react_jsx_runtime46.JSX.Element | undefined;
35
+ }: MethodDescriptionProps): react_jsx_runtime17.JSX.Element | undefined;
36
36
  type MethodInfoProps = {
37
37
  children?: ReactNode;
38
38
  parameters?: ReactNode;
@@ -42,7 +42,7 @@ declare function MethodInfo({
42
42
  children,
43
43
  parameters,
44
44
  returns
45
- }: MethodInfoProps): react_jsx_runtime46.JSX.Element;
45
+ }: MethodInfoProps): react_jsx_runtime17.JSX.Element;
46
46
  type MethodProps = {
47
47
  id?: string;
48
48
  header?: ReactNode;
@@ -54,6 +54,6 @@ declare function Method({
54
54
  children,
55
55
  className,
56
56
  ...props
57
- }: MethodProps): react_jsx_runtime46.JSX.Element;
57
+ }: MethodProps): react_jsx_runtime17.JSX.Element;
58
58
  //#endregion
59
59
  export { MethodHeaderProps as a, MethodProps as c, MethodHeader as i, MethodRoute as l, MethodDescription as n, MethodInfo as o, MethodDescriptionProps as r, MethodInfoProps as s, Method as t, MethodRouteProps as u };
@@ -1,6 +1,6 @@
1
1
  import { t as useComponents } from "./use-components-DBx5LZk0.js";
2
- import { t as style_default } from "./style-Vk87Pfuy.js";
3
- import { i as PropertyToggle } from "./properties-DhttBLpf.js";
2
+ import { t as style_default } from "./style-WTDMMzqU.js";
3
+ import { i as PropertyToggle } from "./properties-WqNSu-9K.js";
4
4
  import "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import clsx from "clsx";
@@ -1,6 +1,6 @@
1
- import { t as DocsLanguage } from "./routing-CUnVDpU-.js";
1
+ import { t as DocsLanguage } from "./routing-BHkWbZpp.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime33 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime61 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_runtime33.JSX.Element;
27
+ }: NavigationProviderProps): react_jsx_runtime61.JSX.Element;
28
28
  //#endregion
29
29
  export { useNavigation as a, NavigationProviderProps as i, NavigationHandler as n, NavigationProvider as r, NavigationContextType as t };
@@ -1,39 +1,39 @@
1
- import * as react_jsx_runtime55 from "react/jsx-runtime";
2
- import * as SDKJSON from "@stainless/sdk-json";
1
+ import { c as Method, d as Resource } from "./index-BtmA2psc.js";
2
+ import * as react_jsx_runtime22 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/overview.d.ts
5
5
  type SDKResourceProps = {
6
- resource: SDKJSON.Resource;
7
- parents?: SDKJSON.Resource[];
6
+ resource: Resource;
7
+ parents?: Resource[];
8
8
  };
9
9
  declare function SDKResourceHeader({
10
10
  resource,
11
11
  parents
12
- }: SDKResourceProps): react_jsx_runtime55.JSX.Element | null;
12
+ }: SDKResourceProps): react_jsx_runtime22.JSX.Element | null;
13
13
  type SDKMethodSummaryProps = {
14
- method: SDKJSON.Method;
14
+ method: Method;
15
15
  };
16
16
  declare function SDKMethodSummary({
17
17
  method
18
- }: SDKMethodSummaryProps): react_jsx_runtime55.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_runtime55.JSX.Element;
25
+ }): react_jsx_runtime22.JSX.Element;
26
26
  type SDKOverviewProps = {
27
- resource: SDKJSON.Resource;
27
+ resource: Resource;
28
28
  };
29
29
  declare function SDKOverview({
30
30
  resource
31
- }: SDKOverviewProps): react_jsx_runtime55.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_runtime55.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 };
@@ -1,10 +1,10 @@
1
1
  import { a as useLanguage, l as useSpec, r as useDeclaration } from "./docs-CXqi26jB.js";
2
2
  import { n as useLanguageComponents } from "./contexts-CLpvBI91.js";
3
3
  import { t as useComponents } from "./use-components-DBx5LZk0.js";
4
- import { t as style_default } from "./style-Vk87Pfuy.js";
5
- import { i as PropertyToggle } from "./properties-DhttBLpf.js";
4
+ import { t as style_default } from "./style-WTDMMzqU.js";
5
+ import { i as PropertyToggle } from "./properties-WqNSu-9K.js";
6
6
  import { f as parseStainlessPath } from "./routing-Dl0FprK1.js";
7
- import { s as Markdown } from "./primitives-CCj2Pn-o.js";
7
+ import { s as Markdown } from "./primitives-DHsRAENq.js";
8
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";
@@ -92,7 +92,7 @@ function SDKResource({ resource, parents, showModels }) {
92
92
  });
93
93
  }
94
94
  function SDKOverview({ resource }) {
95
- const { SDKResource: SDKResource$1 } = useComponents();
95
+ const { SDKResource } = useComponents();
96
96
  const nested = React$1.useMemo(() => flatResources(resource.subresources, [resource]), [resource]);
97
97
  return /* @__PURE__ */ jsxs("div", {
98
98
  className: style_default.Overview,
@@ -101,8 +101,8 @@ function SDKOverview({ resource }) {
101
101
  className: style_default.OverviewHeader,
102
102
  children: /* @__PURE__ */ jsx("h1", { children: resource.title })
103
103
  }),
104
- /* @__PURE__ */ jsx(SDKResource$1, { resource }),
105
- nested.map((props, index) => /* @__PURE__ */ createElement(SDKResource$1, {
104
+ /* @__PURE__ */ jsx(SDKResource, { resource }),
105
+ nested.map((props, index) => /* @__PURE__ */ createElement(SDKResource, {
106
106
  ...props,
107
107
  key: index
108
108
  }))
@@ -1,6 +1,6 @@
1
1
  import * as react0 from "react";
2
2
  import { ReactNode } from "react";
3
- import * as react_jsx_runtime56 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime27 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/primitives.d.ts
6
6
  type JoinProps = {
@@ -12,7 +12,7 @@ declare function Join({
12
12
  items,
13
13
  limit,
14
14
  children
15
- }: JoinProps): react_jsx_runtime56.JSX.Element[];
15
+ }: JoinProps): react_jsx_runtime27.JSX.Element[];
16
16
  type ExpanderProps = {
17
17
  id?: string;
18
18
  open?: boolean;
@@ -28,19 +28,19 @@ declare function Expander({
28
28
  virtual,
29
29
  muted,
30
30
  children
31
- }: ExpanderProps): react_jsx_runtime56.JSX.Element;
31
+ }: ExpanderProps): react_jsx_runtime27.JSX.Element;
32
32
  declare function VirtualExpander({
33
33
  id,
34
34
  open: isOpen,
35
35
  muted,
36
36
  summary,
37
37
  children
38
- }: Omit<ExpanderProps, 'virtual'>): react_jsx_runtime56.JSX.Element;
38
+ }: Omit<ExpanderProps, 'virtual'>): react_jsx_runtime27.JSX.Element;
39
39
  declare function Markdown({
40
40
  content
41
41
  }: {
42
42
  content: string;
43
- }): "" | react_jsx_runtime56.JSX.Element | undefined;
43
+ }): "" | react_jsx_runtime27.JSX.Element | undefined;
44
44
  type BadgeProps = {
45
45
  id: string;
46
46
  children?: ReactNode;
@@ -48,7 +48,7 @@ type BadgeProps = {
48
48
  declare function Badge({
49
49
  id,
50
50
  children
51
- }: BadgeProps): react_jsx_runtime56.JSX.Element;
51
+ }: BadgeProps): react_jsx_runtime27.JSX.Element;
52
52
  type TooltipProps = {
53
53
  content: ReactNode;
54
54
  children: ReactNode;
@@ -56,7 +56,7 @@ type TooltipProps = {
56
56
  declare function Tooltip({
57
57
  content,
58
58
  children
59
- }: TooltipProps): string | number | bigint | boolean | react_jsx_runtime56.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
59
+ }: TooltipProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime27.JSX.Element | null | undefined;
60
60
  type LinkProps = {
61
61
  stainlessPath: string;
62
62
  scroll?: boolean;
@@ -67,7 +67,7 @@ declare function Link({
67
67
  scroll,
68
68
  children,
69
69
  ...props
70
- }: LinkProps): string | number | bigint | boolean | react_jsx_runtime56.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
70
+ }: LinkProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime27.JSX.Element | null | undefined;
71
71
  type InputProps = {
72
72
  left?: ReactNode;
73
73
  right?: ReactNode;
@@ -78,7 +78,7 @@ declare function Input({
78
78
  right,
79
79
  ref,
80
80
  ...props
81
- }: InputProps): react_jsx_runtime56.JSX.Element;
81
+ }: InputProps): react_jsx_runtime27.JSX.Element;
82
82
  type ToggleButtonProps = {
83
83
  children?: ReactNode;
84
84
  selected?: boolean;
@@ -88,7 +88,7 @@ declare function ToggleButton({
88
88
  selected,
89
89
  ref,
90
90
  ...props
91
- }: ToggleButtonProps): react_jsx_runtime56.JSX.Element;
91
+ }: ToggleButtonProps): react_jsx_runtime27.JSX.Element;
92
92
  type ListViewProps<TItem> = {
93
93
  items: Array<TItem>;
94
94
  itemDelegate: (item: TItem, selected: boolean) => React.ReactNode;
@@ -99,6 +99,6 @@ declare function ListView<TItem>({
99
99
  itemDelegate,
100
100
  onSelectListItem,
101
101
  ...rest
102
- }: ListViewProps<TItem>): react_jsx_runtime56.JSX.Element;
102
+ }: ListViewProps<TItem>): react_jsx_runtime27.JSX.Element;
103
103
  //#endregion
104
104
  export { Join as a, ListViewProps as c, ToggleButtonProps as d, Tooltip as f, InputProps as i, Markdown as l, Expander as n, Link as o, VirtualExpander as p, Input as r, ListView as s, Badge as t, ToggleButton as u };
@@ -1,7 +1,7 @@
1
1
  import { a as useLanguage, s as useSettings } from "./docs-CXqi26jB.js";
2
2
  import { n as useNavigation } from "./navigation-C5TN0SgC.js";
3
3
  import { a as useRenderMarkdown } from "./markdown-CxdeWgjV.js";
4
- import { t as style_default } from "./style-Vk87Pfuy.js";
4
+ import { t as style_default } from "./style-WTDMMzqU.js";
5
5
  import { o as generateRoute } from "./routing-Dl0FprK1.js";
6
6
  import { Fragment, createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- import * as react_jsx_runtime70 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime37 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/properties.d.ts
5
5
  type PropertyToggleProps = {
@@ -7,19 +7,19 @@ type PropertyToggleProps = {
7
7
  };
8
8
  declare function PropertyToggle({
9
9
  target
10
- }: PropertyToggleProps): react_jsx_runtime70.JSX.Element;
10
+ }: PropertyToggleProps): react_jsx_runtime37.JSX.Element;
11
11
  type PropertyDescriptionProps = {
12
12
  description?: string;
13
13
  };
14
14
  declare function PropertyDescription({
15
15
  description
16
- }: PropertyDescriptionProps): react_jsx_runtime70.JSX.Element | undefined;
16
+ }: PropertyDescriptionProps): react_jsx_runtime37.JSX.Element | undefined;
17
17
  type PropertyTitleProps = {
18
18
  title?: string;
19
19
  };
20
20
  declare function PropertyTitle({
21
21
  title
22
- }: PropertyTitleProps): react_jsx_runtime70.JSX.Element | undefined;
22
+ }: PropertyTitleProps): react_jsx_runtime37.JSX.Element | undefined;
23
23
  type PropertyProps = {
24
24
  id?: string;
25
25
  name?: ReactNode;
@@ -49,6 +49,6 @@ declare function Property({
49
49
  additional,
50
50
  constraints,
51
51
  children
52
- }: PropertyProps): react_jsx_runtime70.JSX.Element;
52
+ }: PropertyProps): react_jsx_runtime37.JSX.Element;
53
53
  //#endregion
54
54
  export { PropertyTitle as a, PropertyToggleProps as c, PropertyProps as i, PropertyDescription as n, PropertyTitleProps as o, PropertyDescriptionProps as r, PropertyToggle as s, Property as t };
@@ -1,6 +1,6 @@
1
1
  import { a as useLanguage, s as useSettings } from "./docs-CXqi26jB.js";
2
2
  import { t as useComponents } from "./use-components-DBx5LZk0.js";
3
- import { t as style_default } from "./style-Vk87Pfuy.js";
3
+ import { t as style_default } from "./style-WTDMMzqU.js";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
5
  import { ArrowDownWideNarrowIcon, ArrowUpNarrowWideIcon } from "lucide-react";
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./chunk-CAbhIZi1.js";
2
2
  import { n as useLanguageComponents } from "./contexts-CLpvBI91.js";
3
3
  import { t as useComponents } from "./use-components-DBx5LZk0.js";
4
- import { t as style_default } from "./style-Vk87Pfuy.js";
4
+ import { t as style_default } from "./style-WTDMMzqU.js";
5
5
  import * as React$1 from "react";
6
6
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
7
 
@@ -1,4 +1,4 @@
1
- import * as SDKJSON from "@stainless/sdk-json";
1
+ import { c as Method, d as Resource, l as Model, m as Spec } from "./index-BtmA2psc.js";
2
2
 
3
3
  //#region src/routing.d.ts
4
4
  declare namespace routing_d_exports {
@@ -25,10 +25,10 @@ declare function parseRoute(basePath: string, route: string): {
25
25
  };
26
26
  declare function generateRoute(basePath: string, language: string, stainlessPath: string): string | null;
27
27
  type SpecTreeEntry = {
28
- data: SDKJSON.Method | SDKJSON.Resource | SDKJSON.Model;
28
+ data: Method | Resource | Model;
29
29
  path: string[];
30
30
  };
31
- declare function walkTree(spec: SDKJSON.Spec, includeModels?: boolean): Generator<SpecTreeEntry, void, any>;
31
+ declare function walkTree(spec: Spec, includeModels?: boolean): Generator<SpecTreeEntry, void, any>;
32
32
  type RouteEntry = {
33
33
  title: string;
34
34
  kind: SpecTreeEntry['data']['kind'];
@@ -41,11 +41,11 @@ declare function generateRouteList({
41
41
  languages,
42
42
  excludeLanguages
43
43
  }: {
44
- spec: SDKJSON.Spec;
44
+ spec: Spec;
45
45
  languages?: DocsLanguage[];
46
46
  excludeLanguages?: DocsLanguage[];
47
47
  }): RouteEntry[];
48
- type ResourceOrMethod = SDKJSON.Resource | SDKJSON.Method;
48
+ type ResourceOrMethod = Resource | Method;
49
49
  declare function findNavigationPath(items: ResourceOrMethod[], target: string): string[] | undefined;
50
50
  declare function expandToElement(el: HTMLElement | null): void;
51
51
  declare function scrollToPath(stainlessPath: string): void;
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-CUnVDpU-.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-BHkWbZpp.js";
2
2
  export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./chunk-CAbhIZi1.js";
2
2
  import { a as useLanguage, l as useSpec, r as useDeclaration } from "./docs-CXqi26jB.js";
3
3
  import { n as useLanguageComponents } from "./contexts-CLpvBI91.js";
4
4
  import { t as useComponents } from "./use-components-DBx5LZk0.js";
5
- import { t as style_default } from "./style-Vk87Pfuy.js";
5
+ import { t as style_default } from "./style-WTDMMzqU.js";
6
6
  import * as React$1 from "react";
7
7
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
8