@stainless-api/docs-ui 0.1.0-beta.59 → 0.1.0-beta.60

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 (65) hide show
  1. package/dist/{breadcrumbs-D1pqkQVq.d.ts → breadcrumbs-BagP1oN2.d.ts} +2 -2
  2. package/dist/breadcrumbs-seA1JsK4.d.ts +25 -0
  3. package/dist/{component-generics-CIV4pVmh.d.ts → component-generics-BblkOh-y.d.ts} +2 -2
  4. package/dist/component-generics-DS5pysMb.d.ts +30 -0
  5. package/dist/components/MaskedInput.d.ts +3 -3
  6. package/dist/components/breadcrumbs.d.ts +1 -1
  7. package/dist/components/icons.d.ts +12 -12
  8. package/dist/components/index.d.ts +9 -9
  9. package/dist/components/method.d.ts +1 -1
  10. package/dist/components/overview.d.ts +1 -1
  11. package/dist/components/primitives.d.ts +1 -1
  12. package/dist/components/properties.d.ts +1 -1
  13. package/dist/components/sdk.d.ts +1 -1
  14. package/dist/components/sidebar.d.ts +1 -1
  15. package/dist/components/snippets.d.ts +2 -2
  16. package/dist/contexts/component-generics.d.ts +1 -1
  17. package/dist/contexts/component-types.d.ts +10 -10
  18. package/dist/contexts/component.d.ts +13 -13
  19. package/dist/contexts/docs.d.ts +1 -1
  20. package/dist/contexts/index.d.ts +14 -14
  21. package/dist/contexts/markdown.d.ts +1 -1
  22. package/dist/contexts/navigation.d.ts +1 -1
  23. package/dist/contexts/use-components.d.ts +9 -9
  24. package/dist/{docs-BVs5MLfL.d.ts → docs-DFS6wkGm.d.ts} +2 -2
  25. package/dist/docs-DdWB4Wsv.d.ts +46 -0
  26. package/dist/{index-BHy63Zur.d.ts → index-BdrPd64A.d.ts} +34 -34
  27. package/dist/index-CLMudlDX.d.ts +302 -0
  28. package/dist/{index-JJET_1EX.d.ts → index-DTl8aUkb.d.ts} +8 -8
  29. package/dist/index-Dp5biTf5.d.ts +15 -0
  30. package/dist/index.d.ts +15 -15
  31. package/dist/languages/cli.d.ts +10 -10
  32. package/dist/languages/csharp.d.ts +10 -10
  33. package/dist/languages/go.d.ts +10 -10
  34. package/dist/languages/http.d.ts +10 -10
  35. package/dist/languages/index.d.ts +10 -10
  36. package/dist/languages/java.d.ts +10 -10
  37. package/dist/languages/python.d.ts +10 -10
  38. package/dist/languages/ruby.d.ts +10 -10
  39. package/dist/languages/typescript.d.ts +10 -10
  40. package/dist/markdown/index.d.ts +1 -1
  41. package/dist/markdown/printer.d.ts +1 -1
  42. package/dist/markdown/utils.d.ts +2 -2
  43. package/dist/{markdown-BXDwR9bo.d.ts → markdown-DtbgEdDt.d.ts} +2 -2
  44. package/dist/markdown-Dyn0NA2f.d.ts +22 -0
  45. package/dist/{method-B-AEMp1G.d.ts → method-C850sHPB.d.ts} +6 -6
  46. package/dist/method-CxjUvijp.d.ts +59 -0
  47. package/dist/navigation-DLQvobDt.d.ts +29 -0
  48. package/dist/{navigation-CEMwVe3s.d.ts → navigation-Dk55c7au.d.ts} +1 -1
  49. package/dist/{overview-BzJqrxc6.d.ts → overview-DVu-9kpm.d.ts} +6 -6
  50. package/dist/overview-rRsC-Yi_.d.ts +39 -0
  51. package/dist/{primitives-CDxnkX_O.d.ts → primitives-DP-cTr1W.d.ts} +11 -11
  52. package/dist/primitives-DR4XbZ2t.d.ts +105 -0
  53. package/dist/{properties-fAurDGW2.d.ts → properties-Ll927UYJ.d.ts} +5 -5
  54. package/dist/properties-lx53LZPl.d.ts +54 -0
  55. package/dist/{routing-BifRCZt4.d.ts → routing-sjrF8U7O.d.ts} +1 -1
  56. package/dist/routing.d.ts +1 -1
  57. package/dist/{sdk-DwyhWkhn.d.ts → sdk-DdW_-RBy.d.ts} +14 -14
  58. package/dist/sdk-Dhu_gfzq.d.ts +118 -0
  59. package/dist/{sidebar-BbCq6Ibl.d.ts → sidebar-CUaX1IBW.d.ts} +5 -5
  60. package/dist/sidebar-DukWbBrE.d.ts +36 -0
  61. package/dist/{snippets-VclrBnJJ.d.ts → snippets-Bi0ZADmt.d.ts} +8 -8
  62. package/dist/snippets-CocIZMn0.d.ts +53 -0
  63. package/dist/spec.d.ts +1 -1
  64. package/dist/styles.css +9 -9
  65. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- import * as react_jsx_runtime45 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime51 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_runtime45.JSX.Element;
10
+ }: PropertyToggleProps): react_jsx_runtime51.JSX.Element;
11
11
  type PropertyDescriptionProps = {
12
12
  description?: string;
13
13
  };
14
14
  declare function PropertyDescription({
15
15
  description
16
- }: PropertyDescriptionProps): react_jsx_runtime45.JSX.Element | undefined;
16
+ }: PropertyDescriptionProps): react_jsx_runtime51.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_runtime45.JSX.Element | undefined;
22
+ }: PropertyTitleProps): react_jsx_runtime51.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_runtime45.JSX.Element;
52
+ }: PropertyProps): react_jsx_runtime51.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 };
@@ -0,0 +1,54 @@
1
+ import { ReactNode } from "react";
2
+ import * as react_jsx_runtime32 from "react/jsx-runtime";
3
+
4
+ //#region src/components/properties.d.ts
5
+ type PropertyToggleProps = {
6
+ target: string;
7
+ };
8
+ declare function PropertyToggle({
9
+ target
10
+ }: PropertyToggleProps): react_jsx_runtime32.JSX.Element;
11
+ type PropertyDescriptionProps = {
12
+ description?: string;
13
+ };
14
+ declare function PropertyDescription({
15
+ description
16
+ }: PropertyDescriptionProps): react_jsx_runtime32.JSX.Element | undefined;
17
+ type PropertyTitleProps = {
18
+ title?: string;
19
+ };
20
+ declare function PropertyTitle({
21
+ title
22
+ }: PropertyTitleProps): react_jsx_runtime32.JSX.Element | undefined;
23
+ type PropertyProps = {
24
+ id?: string;
25
+ name?: ReactNode;
26
+ typeName?: ReactNode;
27
+ badges?: ReactNode;
28
+ type?: ReactNode;
29
+ description?: string;
30
+ title?: string;
31
+ expand?: boolean;
32
+ deprecated?: boolean | string;
33
+ additional?: ReactNode;
34
+ declaration?: ReactNode;
35
+ constraints?: ReactNode;
36
+ children?: ReactNode;
37
+ };
38
+ declare function Property({
39
+ id,
40
+ name,
41
+ typeName,
42
+ badges,
43
+ type,
44
+ declaration,
45
+ description,
46
+ title,
47
+ deprecated,
48
+ expand,
49
+ additional,
50
+ constraints,
51
+ children
52
+ }: PropertyProps): react_jsx_runtime32.JSX.Element;
53
+ //#endregion
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 };
@@ -8,7 +8,7 @@ declare const Languages: readonly ["http", "node", "python", "go", "typescript",
8
8
  declare const SupportedLanguageSyntaxes: string[];
9
9
  type DocsLanguage = (typeof Languages)[number];
10
10
  declare const LanguageNames: Record<DocsLanguage, string>;
11
- declare function getLanguageSnippet(language: DocsLanguage): "http.curl" | "cli.default" | "csharp.default" | "go.default" | "java.default" | "kotlin.default" | "node.default" | "php.default" | "python.default" | "ruby.default" | "terraform.default" | "typescript.default";
11
+ declare function getLanguageSnippet(language: DocsLanguage): "http.curl" | "node.default" | "python.default" | "go.default" | "typescript.default" | "terraform.default" | "ruby.default" | "java.default" | "kotlin.default" | "csharp.default" | "php.default" | "cli.default";
12
12
  declare function isSupportedLanguage(language: string): language is DocsLanguage;
13
13
  type ParsedStainlessPath = ReturnType<typeof parseStainlessPath>;
14
14
  declare function parseStainlessPath(stainlessPath: string): {
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-BifRCZt4.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-sjrF8U7O.js";
2
2
  export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
@@ -1,7 +1,7 @@
1
1
  import { l as Method, m as SnippetLanguage, o as ID, u as Model } from "./index-Ct7H30x1.js";
2
- import { t as DocsLanguage } from "./routing-BifRCZt4.js";
2
+ import { t as DocsLanguage } from "./routing-sjrF8U7O.js";
3
3
  import * as React$1 from "react";
4
- import * as react_jsx_runtime49 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime59 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/sdk.d.ts
7
7
  type PropertyModelContextType = {
@@ -33,7 +33,7 @@ declare function SDKChildren({
33
33
  paths,
34
34
  expand,
35
35
  depth
36
- }: SDKChildrenProps): react_jsx_runtime49.JSX.Element;
36
+ }: SDKChildrenProps): react_jsx_runtime59.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_runtime49.JSX.Element;
46
+ }: SDKDeclarationProps): react_jsx_runtime59.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_runtime49.JSX.Element | undefined;
52
+ }: SDKConstraintsProps): react_jsx_runtime59.JSX.Element | undefined;
53
53
  type SDKIconProps = {
54
54
  language: SnippetLanguage;
55
55
  size?: number;
56
56
  };
57
57
  declare function SDKIcon({
58
58
  language
59
- }: SDKIconProps): react_jsx_runtime49.JSX.Element | null;
59
+ }: SDKIconProps): react_jsx_runtime59.JSX.Element | null;
60
60
  type SDKRequestTitleProps = {
61
61
  snippetLanguage: SnippetLanguage;
62
62
  };
63
63
  declare function SDKRequestTitle({
64
64
  snippetLanguage
65
- }: SDKRequestTitleProps): react_jsx_runtime49.JSX.Element;
65
+ }: SDKRequestTitleProps): react_jsx_runtime59.JSX.Element;
66
66
  type SDKExampleProps = {
67
67
  method: 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_runtime49.JSX.Element;
73
+ }: SDKExampleProps): react_jsx_runtime59.JSX.Element;
74
74
  type SDKMethodProps = {
75
75
  method: Method;
76
76
  transformRequestSnippet?: TransformRequestSnippetFn;
77
77
  };
78
78
  declare function SDKMethodHeader({
79
79
  method
80
- }: SDKMethodProps): react_jsx_runtime49.JSX.Element;
80
+ }: SDKMethodProps): react_jsx_runtime59.JSX.Element;
81
81
  declare function SDKMethodInfo({
82
82
  method
83
- }: SDKMethodProps): react_jsx_runtime49.JSX.Element;
83
+ }: SDKMethodProps): react_jsx_runtime59.JSX.Element;
84
84
  declare function SDKMethod({
85
85
  method,
86
86
  transformRequestSnippet
87
- }: SDKMethodProps): react_jsx_runtime49.JSX.Element;
87
+ }: SDKMethodProps): react_jsx_runtime59.JSX.Element;
88
88
  type SDKModelProps = {
89
89
  model: Model;
90
90
  };
91
91
  declare function SDKModel({
92
92
  model
93
- }: SDKModelProps): react_jsx_runtime49.JSX.Element | null;
93
+ }: SDKModelProps): react_jsx_runtime59.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_runtime49.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_runtime59.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_runtime49.JSX.Element;
116
+ }: SDKLanguageBlockProps): react_jsx_runtime59.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 };
@@ -0,0 +1,118 @@
1
+ import { l as Method, m as SnippetLanguage, o as ID, u as Model } from "./index-Ct7H30x1.js";
2
+ import { t as DocsLanguage } from "./routing-sjrF8U7O.js";
3
+ import * as React$1 from "react";
4
+ import * as react_jsx_runtime36 from "react/jsx-runtime";
5
+
6
+ //#region src/components/sdk.d.ts
7
+ type PropertyModelContextType = {
8
+ modelPath?: string;
9
+ propertyPath?: string;
10
+ };
11
+ declare const PropertyModelContext: React$1.Context<PropertyModelContextType>;
12
+ declare function usePropertyModel(): PropertyModelContextType;
13
+ type ReferenceNestingContextType = string[];
14
+ declare const ReferenceNestingContext: React$1.Context<ReferenceNestingContextType>;
15
+ declare function useReferenceNesting(): ReferenceNestingContextType;
16
+ type SDKSnippetLanguagesType = Record<SnippetLanguage, {
17
+ name: string;
18
+ }>;
19
+ declare const SDKSnippetLanguages: SDKSnippetLanguagesType;
20
+ type TransformRequestSnippetFn = ({
21
+ snippet,
22
+ language
23
+ }: {
24
+ snippet: string;
25
+ language: DocsLanguage;
26
+ }) => string;
27
+ type SDKChildrenProps = {
28
+ paths: ID[];
29
+ expand?: boolean;
30
+ depth?: number;
31
+ };
32
+ declare function SDKChildren({
33
+ paths,
34
+ expand,
35
+ depth
36
+ }: SDKChildrenProps): react_jsx_runtime36.JSX.Element;
37
+ type SDKDeclarationProps = {
38
+ path: string;
39
+ expand?: boolean;
40
+ depth?: number;
41
+ };
42
+ declare function SDKDeclaration({
43
+ path,
44
+ expand,
45
+ depth
46
+ }: SDKDeclarationProps): react_jsx_runtime36.JSX.Element;
47
+ type SDKConstraintsProps = {
48
+ constraints?: Record<string, any>;
49
+ };
50
+ declare function SDKConstraints({
51
+ constraints
52
+ }: SDKConstraintsProps): react_jsx_runtime36.JSX.Element | undefined;
53
+ type SDKIconProps = {
54
+ language: SnippetLanguage;
55
+ size?: number;
56
+ };
57
+ declare function SDKIcon({
58
+ language
59
+ }: SDKIconProps): react_jsx_runtime36.JSX.Element | null;
60
+ type SDKRequestTitleProps = {
61
+ snippetLanguage: SnippetLanguage;
62
+ };
63
+ declare function SDKRequestTitle({
64
+ snippetLanguage
65
+ }: SDKRequestTitleProps): react_jsx_runtime36.JSX.Element;
66
+ type SDKExampleProps = {
67
+ method: Method;
68
+ transformRequestSnippet?: TransformRequestSnippetFn;
69
+ };
70
+ declare function SDKExample({
71
+ method,
72
+ transformRequestSnippet
73
+ }: SDKExampleProps): react_jsx_runtime36.JSX.Element;
74
+ type SDKMethodProps = {
75
+ method: Method;
76
+ transformRequestSnippet?: TransformRequestSnippetFn;
77
+ };
78
+ declare function SDKMethodHeader({
79
+ method
80
+ }: SDKMethodProps): react_jsx_runtime36.JSX.Element;
81
+ declare function SDKMethodInfo({
82
+ method
83
+ }: SDKMethodProps): react_jsx_runtime36.JSX.Element;
84
+ declare function SDKMethod({
85
+ method,
86
+ transformRequestSnippet
87
+ }: SDKMethodProps): react_jsx_runtime36.JSX.Element;
88
+ type SDKModelProps = {
89
+ model: Model;
90
+ };
91
+ declare function SDKModel({
92
+ model
93
+ }: SDKModelProps): react_jsx_runtime36.JSX.Element | null;
94
+ type SDKReferenceProps = {
95
+ stainlessPath: string;
96
+ children?: React$1.ReactNode;
97
+ };
98
+ declare function SDKReference({
99
+ stainlessPath,
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_runtime36.JSX.Element | null | undefined;
102
+ type SDKLanguageBlockProps = {
103
+ language: DocsLanguage;
104
+ version: string;
105
+ install: string;
106
+ links: {
107
+ repo: string;
108
+ docs: string;
109
+ };
110
+ };
111
+ declare function SDKLanguageBlock({
112
+ language,
113
+ version,
114
+ install,
115
+ links
116
+ }: SDKLanguageBlockProps): react_jsx_runtime36.JSX.Element;
117
+ //#endregion
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,6 +1,6 @@
1
1
  import { f as Resource, l as Method } from "./index-Ct7H30x1.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime61 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime71 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/sidebar.d.ts
6
6
  type SidebarExpanderProps = {
@@ -12,25 +12,25 @@ declare function SidebarExpander({
12
12
  open,
13
13
  summary,
14
14
  children
15
- }: SidebarExpanderProps): react_jsx_runtime61.JSX.Element;
15
+ }: SidebarExpanderProps): react_jsx_runtime71.JSX.Element;
16
16
  type SidebarMethodProps = {
17
17
  method: Method;
18
18
  };
19
19
  declare function SidebarMethod({
20
20
  method
21
- }: SidebarMethodProps): react_jsx_runtime61.JSX.Element;
21
+ }: SidebarMethodProps): react_jsx_runtime71.JSX.Element;
22
22
  type SidebarResourceProps = {
23
23
  resource: Resource;
24
24
  };
25
25
  declare function SidebarResource({
26
26
  resource
27
- }: SidebarResourceProps): react_jsx_runtime61.JSX.Element;
27
+ }: SidebarResourceProps): react_jsx_runtime71.JSX.Element;
28
28
  type SidebarProps = {
29
29
  resources: Resource[];
30
30
  selectedPath?: string;
31
31
  };
32
32
  declare function Sidebar({
33
33
  resources
34
- }: SidebarProps): react_jsx_runtime61.JSX.Element;
34
+ }: SidebarProps): react_jsx_runtime71.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 };
@@ -0,0 +1,36 @@
1
+ import { f as Resource, l as Method } from "./index-Ct7H30x1.js";
2
+ import * as React$1 from "react";
3
+ import * as react_jsx_runtime48 from "react/jsx-runtime";
4
+
5
+ //#region src/components/sidebar.d.ts
6
+ type SidebarExpanderProps = {
7
+ open?: boolean;
8
+ summary: React$1.ReactNode;
9
+ children?: React$1.ReactNode;
10
+ };
11
+ declare function SidebarExpander({
12
+ open,
13
+ summary,
14
+ children
15
+ }: SidebarExpanderProps): react_jsx_runtime48.JSX.Element;
16
+ type SidebarMethodProps = {
17
+ method: Method;
18
+ };
19
+ declare function SidebarMethod({
20
+ method
21
+ }: SidebarMethodProps): react_jsx_runtime48.JSX.Element;
22
+ type SidebarResourceProps = {
23
+ resource: Resource;
24
+ };
25
+ declare function SidebarResource({
26
+ resource
27
+ }: SidebarResourceProps): react_jsx_runtime48.JSX.Element;
28
+ type SidebarProps = {
29
+ resources: Resource[];
30
+ selectedPath?: string;
31
+ };
32
+ declare function Sidebar({
33
+ resources
34
+ }: SidebarProps): react_jsx_runtime48.JSX.Element;
35
+ //#endregion
36
+ export { SidebarProps as a, SidebarMethodProps as i, SidebarExpander as n, SidebarResource as o, SidebarMethod as r, SidebarResourceProps as s, Sidebar as t };
@@ -1,7 +1,7 @@
1
1
  import { l as Method } from "./index-Ct7H30x1.js";
2
- import { C as TransformRequestSnippetFn } from "./sdk-DwyhWkhn.js";
2
+ import { C as TransformRequestSnippetFn } from "./sdk-Dhu_gfzq.js";
3
3
  import * as React$1 from "react";
4
- import * as react_jsx_runtime65 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime52 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/snippets.d.ts
7
7
  type SnippetCodeProps = {
@@ -12,7 +12,7 @@ type SnippetCodeProps = {
12
12
  declare function SnippetCode({
13
13
  content,
14
14
  language
15
- }: SnippetCodeProps): react_jsx_runtime65.JSX.Element;
15
+ }: SnippetCodeProps): react_jsx_runtime52.JSX.Element;
16
16
  type SnippetProps = {
17
17
  method: Method;
18
18
  requestTitle?: React$1.ReactNode;
@@ -25,29 +25,29 @@ type SnippetContainerProps = {
25
25
  };
26
26
  declare function SnippetContainer({
27
27
  children
28
- }: SnippetContainerProps): react_jsx_runtime65.JSX.Element;
28
+ }: SnippetContainerProps): react_jsx_runtime52.JSX.Element;
29
29
  type SnippetRequestContainerProps = {
30
30
  children?: React$1.ReactNode;
31
31
  signature?: string;
32
32
  };
33
33
  declare function SnippetRequestContainer({
34
34
  children
35
- }: SnippetRequestContainerProps): react_jsx_runtime65.JSX.Element;
35
+ }: SnippetRequestContainerProps): react_jsx_runtime52.JSX.Element;
36
36
  declare function Snippet({
37
37
  requestTitle,
38
38
  method,
39
39
  transformRequestSnippet
40
- }: SnippetProps): react_jsx_runtime65.JSX.Element | null;
40
+ }: SnippetProps): react_jsx_runtime52.JSX.Element | null;
41
41
  declare function SnippetButtons({
42
42
  content
43
43
  }: {
44
44
  content: string;
45
- }): react_jsx_runtime65.JSX.Element;
45
+ }): react_jsx_runtime52.JSX.Element;
46
46
  declare function SnippetFooter(): React$1.ReactNode;
47
47
  declare function SnippetResponse({
48
48
  responses
49
49
  }: {
50
50
  responses: Method['exampleResponses'];
51
- }): react_jsx_runtime65.JSX.Element | null;
51
+ }): react_jsx_runtime52.JSX.Element | null;
52
52
  //#endregion
53
53
  export { SnippetContainer as a, SnippetProps as c, SnippetResponse as d, SnippetCodeProps as i, SnippetRequestContainer as l, SnippetButtons as n, SnippetContainerProps as o, SnippetCode as r, SnippetFooter as s, Snippet as t, SnippetRequestContainerProps as u };
@@ -0,0 +1,53 @@
1
+ import { l as Method } from "./index-Ct7H30x1.js";
2
+ import { C as TransformRequestSnippetFn } from "./sdk-DdW_-RBy.js";
3
+ import * as React$1 from "react";
4
+ import * as react_jsx_runtime75 from "react/jsx-runtime";
5
+
6
+ //#region src/components/snippets.d.ts
7
+ type SnippetCodeProps = {
8
+ content: string;
9
+ signature?: string;
10
+ language?: string;
11
+ };
12
+ declare function SnippetCode({
13
+ content,
14
+ language
15
+ }: SnippetCodeProps): react_jsx_runtime75.JSX.Element;
16
+ type SnippetProps = {
17
+ method: Method;
18
+ requestTitle?: React$1.ReactNode;
19
+ transformRequestSnippet?: TransformRequestSnippetFn;
20
+ };
21
+ type SnippetContainerProps = {
22
+ method: Method;
23
+ children: React$1.ReactNode;
24
+ signature?: string;
25
+ };
26
+ declare function SnippetContainer({
27
+ children
28
+ }: SnippetContainerProps): react_jsx_runtime75.JSX.Element;
29
+ type SnippetRequestContainerProps = {
30
+ children?: React$1.ReactNode;
31
+ signature?: string;
32
+ };
33
+ declare function SnippetRequestContainer({
34
+ children
35
+ }: SnippetRequestContainerProps): react_jsx_runtime75.JSX.Element;
36
+ declare function Snippet({
37
+ requestTitle,
38
+ method,
39
+ transformRequestSnippet
40
+ }: SnippetProps): react_jsx_runtime75.JSX.Element | null;
41
+ declare function SnippetButtons({
42
+ content
43
+ }: {
44
+ content: string;
45
+ }): react_jsx_runtime75.JSX.Element;
46
+ declare function SnippetFooter(): React$1.ReactNode;
47
+ declare function SnippetResponse({
48
+ responses
49
+ }: {
50
+ responses: Method['exampleResponses'];
51
+ }): react_jsx_runtime75.JSX.Element | null;
52
+ //#endregion
53
+ export { SnippetContainer as a, SnippetProps as c, SnippetResponse as d, SnippetCodeProps as i, SnippetRequestContainer as l, SnippetButtons as n, SnippetContainerProps as o, SnippetCode as r, SnippetFooter as s, Snippet as t, SnippetRequestContainerProps as u };
package/dist/spec.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { f as Resource, g as SpecLanguage, h as Spec, l as Method, r as DeclarationNode, u as Model } from "./index-Ct7H30x1.js";
2
- import { t as DocsLanguage } from "./routing-BifRCZt4.js";
2
+ import { t as DocsLanguage } from "./routing-sjrF8U7O.js";
3
3
 
4
4
  //#region src/spec.d.ts
5
5
  type SecurityScheme = Spec['security_schemes'][number];
package/dist/styles.css CHANGED
@@ -288,7 +288,7 @@ body {
288
288
  --stl-color-accent-border-faint: rgb(from var(--stl-color-accent-border) r g b/calc(alpha * 0.5));
289
289
  --stl-color-accent-border-strong: var(--stl-color-accent);
290
290
  --stl-color-accent-inverse-background: var(--stl-color-accent);
291
- --stl-color-accent-inverse-background-hover: rgb(from var(--stl-color-accent) r g b/calc(alpha * var(--stl-opacity-level-080)));
291
+ --stl-color-accent-inverse-background-hover: rgb(from var(--stl-color-accent-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
292
292
  --stl-color-accent-inverse-foreground: rgb(255, 255, 255);
293
293
  /* red */
294
294
  --stl-color-red: light-dark(#d01e22, #e34041);
@@ -301,7 +301,7 @@ body {
301
301
  --stl-color-red-border-faint: rgb(from var(--stl-color-red-border) r g b/calc(alpha * 0.5));
302
302
  --stl-color-red-border-strong: var(--stl-color-red);
303
303
  --stl-color-red-inverse-background: var(--stl-color-red);
304
- --stl-color-red-inverse-background-hover: rgb(from var(--stl-color-red) r g b/calc(alpha * var(--stl-opacity-level-080)));
304
+ --stl-color-red-inverse-background-hover: rgb(from var(--stl-color-red-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
305
305
  --stl-color-red-inverse-foreground: rgb(255, 255, 255);
306
306
  /* green */
307
307
  --stl-color-green: light-dark(#16a34a, #22c55e);
@@ -314,7 +314,7 @@ body {
314
314
  --stl-color-green-border-faint: rgb(from var(--stl-color-green-border) r g b/calc(alpha * 0.5));
315
315
  --stl-color-green-border-strong: var(--stl-color-green);
316
316
  --stl-color-green-inverse-background: var(--stl-color-green);
317
- --stl-color-green-inverse-background-hover: rgb(from var(--stl-color-green) r g b/calc(alpha * var(--stl-opacity-level-080)));
317
+ --stl-color-green-inverse-background-hover: rgb(from var(--stl-color-green-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
318
318
  --stl-color-green-inverse-foreground: rgb(255, 255, 255);
319
319
  /* blue */
320
320
  --stl-color-blue: light-dark(#155dfc, #2b7fff);
@@ -327,7 +327,7 @@ body {
327
327
  --stl-color-blue-border-faint: rgb(from var(--stl-color-blue-border) r g b/calc(alpha * 0.5));
328
328
  --stl-color-blue-border-strong: var(--stl-color-blue);
329
329
  --stl-color-blue-inverse-background: var(--stl-color-blue);
330
- --stl-color-blue-inverse-background-hover: rgb(from var(--stl-color-blue) r g b/calc(alpha * var(--stl-opacity-level-080)));
330
+ --stl-color-blue-inverse-background-hover: rgb(from var(--stl-color-blue-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
331
331
  --stl-color-blue-inverse-foreground: rgb(255, 255, 255);
332
332
  /* yellow */
333
333
  --stl-color-yellow: light-dark(#ca8a04, #eab308);
@@ -340,7 +340,7 @@ body {
340
340
  --stl-color-yellow-border-faint: rgb(from var(--stl-color-yellow-border) r g b/calc(alpha * 0.5));
341
341
  --stl-color-yellow-border-strong: var(--stl-color-yellow);
342
342
  --stl-color-yellow-inverse-background: var(--stl-color-yellow);
343
- --stl-color-yellow-inverse-background-hover: rgb(from var(--stl-color-yellow) r g b/calc(alpha * var(--stl-opacity-level-080)));
343
+ --stl-color-yellow-inverse-background-hover: rgb(from var(--stl-color-yellow-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
344
344
  --stl-color-yellow-inverse-foreground: rgb(255, 255, 255);
345
345
  /* orange */
346
346
  --stl-color-orange: light-dark(#ea580c, #f97316);
@@ -353,7 +353,7 @@ body {
353
353
  --stl-color-orange-border-faint: rgb(from var(--stl-color-orange-border) r g b/calc(alpha * 0.5));
354
354
  --stl-color-orange-border-strong: var(--stl-color-orange);
355
355
  --stl-color-orange-inverse-background: var(--stl-color-orange);
356
- --stl-color-orange-inverse-background-hover: rgb(from var(--stl-color-orange) r g b/calc(alpha * var(--stl-opacity-level-080)));
356
+ --stl-color-orange-inverse-background-hover: rgb(from var(--stl-color-orange-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
357
357
  --stl-color-orange-inverse-foreground: rgb(255, 255, 255);
358
358
  /* purple */
359
359
  --stl-color-purple: light-dark(#9333ea, #a855f7);
@@ -366,7 +366,7 @@ body {
366
366
  --stl-color-purple-border-faint: rgb(from var(--stl-color-purple-border) r g b/calc(alpha * 0.5));
367
367
  --stl-color-purple-border-strong: var(--stl-color-purple);
368
368
  --stl-color-purple-inverse-background: var(--stl-color-purple);
369
- --stl-color-purple-inverse-background-hover: rgb(from var(--stl-color-purple) r g b/calc(alpha * var(--stl-opacity-level-080)));
369
+ --stl-color-purple-inverse-background-hover: rgb(from var(--stl-color-purple-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
370
370
  --stl-color-purple-inverse-foreground: rgb(255, 255, 255);
371
371
  /* cyan */
372
372
  --stl-color-cyan: light-dark(#0891b2, #06b6d4);
@@ -379,7 +379,7 @@ body {
379
379
  --stl-color-cyan-border-faint: rgb(from var(--stl-color-cyan-border) r g b/calc(alpha * 0.5));
380
380
  --stl-color-cyan-border-strong: var(--stl-color-cyan);
381
381
  --stl-color-cyan-inverse-background: var(--stl-color-cyan);
382
- --stl-color-cyan-inverse-background-hover: rgb(from var(--stl-color-cyan) r g b/calc(alpha * var(--stl-opacity-level-080)));
382
+ --stl-color-cyan-inverse-background-hover: rgb(from var(--stl-color-cyan-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
383
383
  --stl-color-cyan-inverse-foreground: rgb(255, 255, 255);
384
384
  /* pink */
385
385
  --stl-color-pink: light-dark(#ec4899, #ec4899);
@@ -392,7 +392,7 @@ body {
392
392
  --stl-color-pink-border-faint: rgb(from var(--stl-color-pink-border) r g b/calc(alpha * 0.5));
393
393
  --stl-color-pink-border-strong: var(--stl-color-pink);
394
394
  --stl-color-pink-inverse-background: var(--stl-color-pink);
395
- --stl-color-pink-inverse-background-hover: rgb(from var(--stl-color-pink) r g b/calc(alpha * var(--stl-opacity-level-080)));
395
+ --stl-color-pink-inverse-background-hover: rgb(from var(--stl-color-pink-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
396
396
  --stl-color-pink-inverse-foreground: rgb(255, 255, 255);
397
397
  }
398
398
  :root[data-theme=dark],
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.59",
4
+ "version": "0.1.0-beta.60",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -18,7 +18,7 @@
18
18
  "clsx": "^2.1.1",
19
19
  "htmlparser2": "^10.0.0",
20
20
  "lucide-react": "^0.562.0",
21
- "@stainless-api/ui-primitives": "0.1.0-beta.43"
21
+ "@stainless-api/ui-primitives": "0.1.0-beta.44"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/node": "24.10.9",