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

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 (75) hide show
  1. package/dist/{breadcrumbs-BdYnaHA8.d.ts → breadcrumbs-CI98FNF5.d.ts} +2 -2
  2. package/dist/{breadcrumbs-CA7GmW_8.d.ts → breadcrumbs-DEyC9k79.d.ts} +2 -2
  3. package/dist/{component-DRO8kQSp.js → component-CjONRbeK.js} +1 -1
  4. package/dist/{component-generics-BJSyydZ-.d.ts → component-generics-COP53CRn.d.ts} +2 -2
  5. package/dist/{component-generics-BHFUK06s.d.ts → component-generics-aCdP-C69.d.ts} +2 -2
  6. package/dist/components/MaskedInput.d.ts +3 -3
  7. package/dist/components/breadcrumbs.d.ts +1 -1
  8. package/dist/components/icons.d.ts +11 -11
  9. package/dist/components/index.d.ts +9 -9
  10. package/dist/components/method.d.ts +1 -1
  11. package/dist/components/overview.d.ts +1 -1
  12. package/dist/components/primitives.d.ts +1 -1
  13. package/dist/components/properties.d.ts +1 -1
  14. package/dist/components/sdk.d.ts +1 -1
  15. package/dist/components/sidebar.d.ts +1 -1
  16. package/dist/components/snippets.d.ts +2 -2
  17. package/dist/contexts/component-generics.d.ts +1 -1
  18. package/dist/contexts/component-types.d.ts +10 -10
  19. package/dist/contexts/component.d.ts +13 -13
  20. package/dist/contexts/component.js +3 -3
  21. package/dist/contexts/docs.d.ts +1 -1
  22. package/dist/contexts/index.d.ts +15 -15
  23. package/dist/contexts/markdown.d.ts +1 -1
  24. package/dist/contexts/navigation.d.ts +1 -1
  25. package/dist/contexts/use-components.d.ts +9 -9
  26. package/dist/{docs-fKyo35eI.d.ts → docs-CmJkvs5K.d.ts} +3 -3
  27. package/dist/{docs-BUS__I1m.d.ts → docs-SeQmavpx.d.ts} +2 -2
  28. package/dist/{index-q3bZhNWj.d.ts → index-BzTFhFWf.d.ts} +7 -7
  29. package/dist/{index-9LRO8R1a.d.ts → index-CErkkMkL.d.ts} +30 -30
  30. package/dist/{index-CBIJwoyp.d.ts → index-CebZpsfQ.d.ts} +5 -5
  31. package/dist/{index-ClCZKGcw.d.ts → index-CzDV0BnQ.d.ts} +30 -30
  32. package/dist/{index-pMKpm2Jk.d.ts → index-DGag9-aC.d.ts} +5 -5
  33. package/dist/{index-5Yl-BBg3.d.ts → index-ReQTPmXD.d.ts} +8 -8
  34. package/dist/index.d.ts +15 -15
  35. package/dist/index.js +2 -2
  36. package/dist/languages/csharp.d.ts +10 -10
  37. package/dist/languages/go.d.ts +10 -10
  38. package/dist/languages/http.d.ts +10 -10
  39. package/dist/languages/index.d.ts +10 -10
  40. package/dist/languages/index.js +2 -2
  41. package/dist/languages/java.d.ts +10 -10
  42. package/dist/languages/python.d.ts +10 -10
  43. package/dist/languages/python.js +1 -1
  44. package/dist/languages/ruby.d.ts +10 -10
  45. package/dist/languages/typescript.d.ts +10 -10
  46. package/dist/{languages-BCYZjzuS.js → languages-BqGqTy14.js} +1 -1
  47. package/dist/markdown/index.d.ts +2 -2
  48. package/dist/markdown/index.js +4 -4
  49. package/dist/markdown/printer.js +4 -4
  50. package/dist/markdown/utils.d.ts +2 -2
  51. package/dist/{markdown-C8o8WrwG.d.ts → markdown-BGCM0OeE.d.ts} +2 -2
  52. package/dist/{markdown-CqJohZei.d.ts → markdown-CiFjFgOF.d.ts} +2 -2
  53. package/dist/{method-CMt6uyix.d.ts → method-B6eAtYl2.d.ts} +7 -7
  54. package/dist/{method-r5UAB40b.d.ts → method-BLlsdXBF.d.ts} +7 -7
  55. package/dist/{navigation-zuoWsXzh.d.ts → navigation-BLGsIR9F.d.ts} +3 -3
  56. package/dist/{navigation-9_4wRkcT.d.ts → navigation-yYOrOKD9.d.ts} +2 -2
  57. package/dist/{overview-DXmLmmr7.d.ts → overview-CTlpyjbv.d.ts} +6 -6
  58. package/dist/{overview-ixhAhHj8.d.ts → overview-FMVqthvd.d.ts} +6 -6
  59. package/dist/{primitives-Bl0wzAGo.d.ts → primitives-Epom-ge3.d.ts} +9 -9
  60. package/dist/{primitives-BVXfSSiS.d.ts → primitives-Yt5_6f07.d.ts} +9 -9
  61. package/dist/printer-DVZVkqAr.d.ts +13 -0
  62. package/dist/{printer-bNxiG6UB.js → printer-Y_ONp3hs.js} +1 -1
  63. package/dist/{properties-C-NU_ghj.d.ts → properties-DQTdO9Cq.d.ts} +5 -5
  64. package/dist/{properties-GT9ixNTg.d.ts → properties-e7mCw5QL.d.ts} +5 -5
  65. package/dist/{python-USOwFDv_.js → python-CHG2jGvC.js} +1 -11
  66. package/dist/routing-Dhmv52Fd.d.ts +54 -0
  67. package/dist/{sdk-B5W3VipN.d.ts → sdk-C_2E2iNT.d.ts} +13 -13
  68. package/dist/{sdk-CS6A3HW3.d.ts → sdk-P5DGFIUC.d.ts} +2 -2
  69. package/dist/{sidebar-C3fZrgmP.d.ts → sidebar-rOXMRjUW.d.ts} +5 -5
  70. package/dist/{snippets-DcFph7ir.d.ts → snippets-BK_yl-X-.d.ts} +8 -8
  71. package/dist/{snippets-C72s2IwS.d.ts → snippets-C8xhXoaB.d.ts} +8 -8
  72. package/dist/styles.css +10 -10
  73. package/dist/{utils-DGnJ6mcU.d.ts → utils-DBenMgxx.d.ts} +1 -1
  74. package/dist/{utils-uQbtk0-_.d.ts → utils-DLRASeee.d.ts} +2 -2
  75. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- import * as react_jsx_runtime85 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime67 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_runtime85.JSX.Element;
10
+ }: PropertyToggleProps): react_jsx_runtime67.JSX.Element;
11
11
  type PropertyDescriptionProps = {
12
12
  description?: string;
13
13
  };
14
14
  declare function PropertyDescription({
15
15
  description
16
- }: PropertyDescriptionProps): react_jsx_runtime85.JSX.Element | undefined;
16
+ }: PropertyDescriptionProps): react_jsx_runtime67.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_runtime85.JSX.Element | undefined;
22
+ }: PropertyTitleProps): react_jsx_runtime67.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_runtime85.JSX.Element;
52
+ }: PropertyProps): react_jsx_runtime67.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 };
@@ -260,17 +260,7 @@ function Declaration({ decl }) {
260
260
  children: "…"
261
261
  })
262
262
  ] });
263
- case "PythonDeclType": return /* @__PURE__ */ jsxs(Fragment$1, { children: [
264
- /* @__PURE__ */ jsx("span", {
265
- className: style_default.TextIdentifier,
266
- children: decl.ident
267
- }),
268
- /* @__PURE__ */ jsx("span", {
269
- className: style_default.TextOperator,
270
- children: " = "
271
- }),
272
- /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
273
- ] });
263
+ case "PythonDeclType": return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(Lang.Type, { type: decl.type }) });
274
264
  case "PythonDeclReference": return /* @__PURE__ */ jsx(Lang.Type, { type: decl.type });
275
265
  }
276
266
  }
@@ -0,0 +1,54 @@
1
+ import * as SDKJSON from "@stainless/sdk-json";
2
+
3
+ //#region src/routing.d.ts
4
+ declare namespace routing_d_exports {
5
+ export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
6
+ }
7
+ declare const Languages: readonly ["http", "node", "python", "go", "typescript", "terraform", "ruby", "java", "kotlin", "csharp", "php"];
8
+ declare const SupportedLanguageSyntaxes: string[];
9
+ type DocsLanguage = (typeof Languages)[number];
10
+ declare const LanguageNames: Record<DocsLanguage, string>;
11
+ declare function getLanguageSnippet(language: DocsLanguage): "http.curl" | "node.default" | "go.default" | "python.default" | "terraform.default" | "typescript.default" | "ruby.default" | "java.default" | "kotlin.default" | "csharp.default" | "php.default";
12
+ declare function isSupportedLanguage(language: string): language is DocsLanguage;
13
+ type ParsedStainlessPath = ReturnType<typeof parseStainlessPath>;
14
+ declare function parseStainlessPath(stainlessPath: string): {
15
+ resource: string[] | null;
16
+ method: string | null;
17
+ model: string | null;
18
+ routable: string | undefined;
19
+ } | null;
20
+ declare function trimStainlessPath(stainlessPath: string): string;
21
+ declare function getResource(stainlessPath: string): string | undefined;
22
+ declare function parseRoute(basePath: string, route: string): {
23
+ stainlessPath: string;
24
+ language: DocsLanguage;
25
+ };
26
+ declare function generateRoute(basePath: string, language: string, stainlessPath: string): string | null;
27
+ type SpecTreeEntry = {
28
+ data: SDKJSON.Method | SDKJSON.Resource | SDKJSON.Model;
29
+ path: string[];
30
+ };
31
+ declare function walkTree(spec: SDKJSON.Spec, includeModels?: boolean): Generator<SpecTreeEntry, void, any>;
32
+ type RouteEntry = {
33
+ title: string;
34
+ kind: SpecTreeEntry['data']['kind'];
35
+ language: DocsLanguage;
36
+ stainlessPath: string;
37
+ slug: string;
38
+ };
39
+ declare function generateRouteList({
40
+ spec,
41
+ languages,
42
+ excludeLanguages
43
+ }: {
44
+ spec: SDKJSON.Spec;
45
+ languages?: DocsLanguage[];
46
+ excludeLanguages?: DocsLanguage[];
47
+ }): RouteEntry[];
48
+ type ResourceOrMethod = SDKJSON.Resource | SDKJSON.Method;
49
+ declare function findNavigationPath(items: ResourceOrMethod[], target: string): string[] | undefined;
50
+ declare function expandToElement(el: HTMLElement | null): void;
51
+ declare function scrollToPath(stainlessPath: string): void;
52
+ declare function updateHistory(basePath: string, language: DocsLanguage, stainlessPath: string): void;
53
+ //#endregion
54
+ export { routing_d_exports as _, RouteEntry as a, updateHistory as b, expandToElement as c, generateRouteList as d, getLanguageSnippet as f, parseStainlessPath as g, parseRoute as h, ParsedStainlessPath as i, findNavigationPath as l, isSupportedLanguage as m, LanguageNames as n, SpecTreeEntry as o, getResource as p, Languages as r, SupportedLanguageSyntaxes as s, DocsLanguage as t, generateRoute as u, scrollToPath as v, walkTree as x, trimStainlessPath as y };
@@ -1,6 +1,6 @@
1
1
  import { t as DocsLanguage } from "./routing-CMqh1cTZ.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime66 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime34 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_runtime66.JSX.Element;
36
+ }: SDKChildrenProps): react_jsx_runtime34.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_runtime66.JSX.Element;
46
+ }: SDKDeclarationProps): react_jsx_runtime34.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_runtime66.JSX.Element | undefined;
52
+ }: SDKConstraintsProps): react_jsx_runtime34.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_runtime66.JSX.Element | null;
59
+ }: SDKIconProps): react_jsx_runtime34.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_runtime66.JSX.Element;
65
+ }: SDKRequestTitleProps): react_jsx_runtime34.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_runtime66.JSX.Element;
73
+ }: SDKExampleProps): react_jsx_runtime34.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_runtime66.JSX.Element;
80
+ }: SDKMethodProps): react_jsx_runtime34.JSX.Element;
81
81
  declare function SDKMethodInfo({
82
82
  method
83
- }: SDKMethodProps): react_jsx_runtime66.JSX.Element;
83
+ }: SDKMethodProps): react_jsx_runtime34.JSX.Element;
84
84
  declare function SDKMethod({
85
85
  method,
86
86
  transformRequestSnippet
87
- }: SDKMethodProps): react_jsx_runtime66.JSX.Element;
87
+ }: SDKMethodProps): react_jsx_runtime34.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_runtime66.JSX.Element | null;
93
+ }: SDKModelProps): react_jsx_runtime34.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_runtime66.JSX.Element | null | undefined;
101
+ }: SDKReferenceProps): string | number | bigint | boolean | react_jsx_runtime34.JSX.Element | 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> | 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_runtime66.JSX.Element;
116
+ }: SDKLanguageBlockProps): react_jsx_runtime34.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,4 +1,4 @@
1
- import { t as DocsLanguage } from "./routing-CMqh1cTZ.js";
1
+ import { t as DocsLanguage } from "./routing-Dhmv52Fd.js";
2
2
  import * as React$1 from "react";
3
3
  import * as react_jsx_runtime55 from "react/jsx-runtime";
4
4
  import * as SDKJSON from "@stainless/sdk-json";
@@ -98,7 +98,7 @@ type SDKReferenceProps = {
98
98
  declare function SDKReference({
99
99
  stainlessPath,
100
100
  children
101
- }: SDKReferenceProps): string | number | bigint | boolean | react_jsx_runtime55.JSX.Element | 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> | 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_runtime55.JSX.Element | null | undefined;
102
102
  type SDKLanguageBlockProps = {
103
103
  language: DocsLanguage;
104
104
  version: string;
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from "react";
2
- import * as react_jsx_runtime78 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime55 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_runtime78.JSX.Element;
15
+ }: SidebarExpanderProps): react_jsx_runtime55.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_runtime78.JSX.Element;
21
+ }: SidebarMethodProps): react_jsx_runtime55.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_runtime78.JSX.Element;
27
+ }: SidebarResourceProps): react_jsx_runtime55.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_runtime78.JSX.Element;
34
+ }: SidebarProps): react_jsx_runtime55.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-B5W3VipN.js";
1
+ import { C as TransformRequestSnippetFn } from "./sdk-P5DGFIUC.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime82 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime71 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_runtime82.JSX.Element;
15
+ }: SnippetCodeProps): react_jsx_runtime71.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_runtime82.JSX.Element;
27
+ }: SnippetContainerProps): react_jsx_runtime71.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_runtime82.JSX.Element;
34
+ }: SnippetRequestContainerProps): react_jsx_runtime71.JSX.Element;
35
35
  declare function Snippet({
36
36
  requestTitle,
37
37
  method,
38
38
  transformRequestSnippet
39
- }: SnippetProps): react_jsx_runtime82.JSX.Element | null;
39
+ }: SnippetProps): react_jsx_runtime71.JSX.Element | null;
40
40
  declare function SnippetButtons({
41
41
  content
42
42
  }: {
43
43
  content: string;
44
- }): react_jsx_runtime82.JSX.Element;
44
+ }): react_jsx_runtime71.JSX.Element;
45
45
  declare function SnippetResponse({
46
46
  responses
47
47
  }: {
48
48
  responses: SDKJSON.Method['exampleResponses'];
49
- }): react_jsx_runtime82.JSX.Element | null;
49
+ }): react_jsx_runtime71.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 };
@@ -1,6 +1,6 @@
1
- import { C as TransformRequestSnippetFn } from "./sdk-CS6A3HW3.js";
1
+ import { C as TransformRequestSnippetFn } from "./sdk-C_2E2iNT.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime79 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime71 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_runtime79.JSX.Element;
15
+ }: SnippetCodeProps): react_jsx_runtime71.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_runtime79.JSX.Element;
27
+ }: SnippetContainerProps): react_jsx_runtime71.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_runtime79.JSX.Element;
34
+ }: SnippetRequestContainerProps): react_jsx_runtime71.JSX.Element;
35
35
  declare function Snippet({
36
36
  requestTitle,
37
37
  method,
38
38
  transformRequestSnippet
39
- }: SnippetProps): react_jsx_runtime79.JSX.Element | null;
39
+ }: SnippetProps): react_jsx_runtime71.JSX.Element | null;
40
40
  declare function SnippetButtons({
41
41
  content
42
42
  }: {
43
43
  content: string;
44
- }): react_jsx_runtime79.JSX.Element;
44
+ }): react_jsx_runtime71.JSX.Element;
45
45
  declare function SnippetResponse({
46
46
  responses
47
47
  }: {
48
48
  responses: SDKJSON.Method['exampleResponses'];
49
- }): react_jsx_runtime79.JSX.Element | null;
49
+ }): react_jsx_runtime71.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/styles.css CHANGED
@@ -14,11 +14,11 @@
14
14
 
15
15
  --stl-typography-text-code: max(0.875em, var(--stl-typography-scale-xs));
16
16
 
17
- --stl-typography-text-h1: calc(var(--stl-typography-scale-5xl) / var(--stl-typography-scale-base) * 1em);
18
- --stl-typography-text-h2: calc(var(--stl-typography-scale-4xl) / var(--stl-typography-scale-base) * 1em);
19
- --stl-typography-text-h3: calc(var(--stl-typography-scale-3xl) / var(--stl-typography-scale-base) * 1em);
20
- --stl-typography-text-h4: calc(var(--stl-typography-scale-2xl) / var(--stl-typography-scale-base) * 1em);
21
- --stl-typography-text-h5: calc(var(--stl-typography-scale-xl) / var(--stl-typography-scale-base) * 1em);
17
+ --stl-typography-text-h1: var(--stl-typography-scale-5xl);
18
+ --stl-typography-text-h2: var(--stl-typography-scale-4xl);
19
+ --stl-typography-text-h3: var(--stl-typography-scale-3xl);
20
+ --stl-typography-text-h4: var(--stl-typography-scale-2xl);
21
+ --stl-typography-text-h5: var(--stl-typography-scale-xl);
22
22
  --stl-typography-scale-xs: 12px;
23
23
  --stl-typography-scale-sm: 14px;
24
24
  --stl-typography-scale-base: 16px;
@@ -131,11 +131,11 @@ body {
131
131
  }
132
132
 
133
133
  &.smaller-headings {
134
- --stl-typography-text-h1: calc(var(--stl-typography-scale-3xl) / var(--stl-typography-scale-base) * 1em);
135
- --stl-typography-text-h2: calc(var(--stl-typography-scale-2xl) / var(--stl-typography-scale-base) * 1em);
136
- --stl-typography-text-h3: calc(var(--stl-typography-scale-xl) / var(--stl-typography-scale-base) * 1em);
137
- --stl-typography-text-h4: calc(var(--stl-typography-scale-xl) / var(--stl-typography-scale-base) * 1em);
138
- --stl-typography-text-h5: calc(var(--stl-typography-scale-lg) / var(--stl-typography-scale-base) * 1em);
134
+ --stl-typography-text-h1: var(--stl-typography-scale-3xl);
135
+ --stl-typography-text-h2: var(--stl-typography-scale-2xl);
136
+ --stl-typography-text-h3: var(--stl-typography-scale-xl);
137
+ --stl-typography-text-h4: var(--stl-typography-scale-lg);
138
+ --stl-typography-text-h5: var(--stl-typography-scale-base);
139
139
 
140
140
  :where(h1) {
141
141
  margin-top: 1.5em;
@@ -1,5 +1,5 @@
1
1
  import { t as DocsLanguage } from "./routing-CMqh1cTZ.js";
2
- import { C as TransformRequestSnippetFn } from "./sdk-B5W3VipN.js";
2
+ import { C as TransformRequestSnippetFn } from "./sdk-C_2E2iNT.js";
3
3
  import * as SDKJSON from "@stainless/sdk-json";
4
4
 
5
5
  //#region src/markdown/utils.d.ts
@@ -1,5 +1,5 @@
1
- import { t as DocsLanguage } from "./routing-CMqh1cTZ.js";
2
- import { C as TransformRequestSnippetFn } from "./sdk-CS6A3HW3.js";
1
+ import { t as DocsLanguage } from "./routing-Dhmv52Fd.js";
2
+ import { C as TransformRequestSnippetFn } from "./sdk-P5DGFIUC.js";
3
3
  import * as SDKJSON from "@stainless/sdk-json";
4
4
 
5
5
  //#region src/markdown/utils.d.ts
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.51",
4
+ "version": "0.1.0-beta.52",
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.561.0",
21
- "@stainless-api/ui-primitives": "0.1.0-beta.38"
21
+ "@stainless-api/ui-primitives": "0.1.0-beta.39"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/node": "24.10.3",
@@ -29,7 +29,7 @@
29
29
  "react-dom": "^19.2.3",
30
30
  "tsdown": "^0.18.0",
31
31
  "typescript": "5.9.3",
32
- "@stainless/eslint-config": "0.1.0-beta.0",
32
+ "@stainless/eslint-config": "0.1.0-beta.1",
33
33
  "@stainless/sdk-json": "^0.1.0-beta.2"
34
34
  },
35
35
  "exports": {