@stainless-api/docs-ui 0.1.0-beta.49 → 0.1.0-beta.50
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.
- package/dist/breadcrumbs-C6pTTw_o.d.ts +20 -0
- package/dist/{component-generics-COP53CRn.d.ts → component-generics-D_yxZT6v.d.ts} +2 -2
- package/dist/{component-generics-fyFHB6qA.d.ts → component-generics-DxN-MaP2.d.ts} +2 -2
- package/dist/components/MaskedInput.d.ts +3 -3
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/icons.d.ts +11 -11
- package/dist/components/index.d.ts +9 -9
- package/dist/components/method.d.ts +1 -1
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/sdk.d.ts +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/snippets.d.ts +2 -2
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-types.d.ts +10 -10
- package/dist/contexts/component.d.ts +13 -13
- package/dist/contexts/docs.d.ts +1 -1
- package/dist/contexts/index.d.ts +15 -15
- package/dist/contexts/markdown.d.ts +1 -1
- package/dist/contexts/navigation.d.ts +1 -1
- package/dist/contexts/use-components.d.ts +9 -9
- package/dist/{docs-yYrp-uzs.d.ts → docs-dNFWvk6w.d.ts} +2 -2
- package/dist/{docs-B8-nCRaa.d.ts → docs-mMDqYdkf.d.ts} +3 -3
- package/dist/{index-BQpRynot.d.ts → index-0imEqwWy.d.ts} +7 -7
- package/dist/{index-D6NhcxHd.d.ts → index-BJR7MT73.d.ts} +5 -5
- package/dist/{index-avtZIGmX.d.ts → index-DGWbX2x8.d.ts} +5 -5
- package/dist/{index-CnilsjrJ.d.ts → index-DJO7hQAU.d.ts} +30 -30
- package/dist/{index-LboM0f0c.d.ts → index-DMFZJxNb.d.ts} +8 -8
- package/dist/{index-Ct0NcQUK.d.ts → index-tw6MEWKp.d.ts} +30 -30
- package/dist/index.d.ts +15 -15
- package/dist/languages/csharp.d.ts +10 -10
- package/dist/languages/go.d.ts +10 -10
- package/dist/languages/http.d.ts +10 -10
- package/dist/languages/index.d.ts +10 -10
- package/dist/languages/java.d.ts +10 -10
- package/dist/languages/python.d.ts +10 -10
- package/dist/languages/ruby.d.ts +10 -10
- package/dist/languages/typescript.d.ts +10 -10
- package/dist/markdown/index.d.ts +2 -2
- package/dist/markdown/utils.d.ts +2 -2
- package/dist/{markdown-C8o8WrwG.d.ts → markdown-DeSSIANr.d.ts} +2 -2
- package/dist/{markdown-DA2cRtlr.d.ts → markdown-OuUthjwK.d.ts} +2 -2
- package/dist/{method-B6eAtYl2.d.ts → method-BiXJltKa.d.ts} +7 -7
- package/dist/method-DQ3lDoTM.d.ts +71 -0
- package/dist/{navigation-CjBnMcop.d.ts → navigation-BX8nuda9.d.ts} +2 -2
- package/dist/{navigation-BfAVGPgw.d.ts → navigation-CWDfzVoR.d.ts} +3 -3
- package/dist/{overview-CswoJHww.d.ts → overview-B43BuZbK.d.ts} +6 -6
- package/dist/{overview-DeZSiqFa.d.ts → overview-MTDgZ7Xr.d.ts} +6 -6
- package/dist/{primitives-Caj5rKBc.d.ts → primitives-1lB1L0is.d.ts} +9 -9
- package/dist/{primitives-CbqXZ-5f.d.ts → primitives-DLv4uMoz.d.ts} +9 -9
- package/dist/{properties-BkUlpvU4.d.ts → properties-B-giMW4K.d.ts} +5 -5
- package/dist/properties-BvP2WAjP.d.ts +54 -0
- package/dist/{sdk-CdhDsvo3.d.ts → sdk-BwXeHS3_.d.ts} +14 -14
- package/dist/{sdk-BOwYR0k6.d.ts → sdk-DXdNszcC.d.ts} +13 -13
- package/dist/{sidebar-BXz93vSy.d.ts → sidebar-DGGt5gik.d.ts} +5 -5
- package/dist/sidebar-DfS6SWQz.d.ts +36 -0
- package/dist/{snippets-Wjo2dJNw.d.ts → snippets-BRs_4F1I.d.ts} +8 -8
- package/dist/{snippets-CbVFNmfq.d.ts → snippets-DxSMK50g.d.ts} +8 -8
- package/dist/styles/main.css +2 -2
- package/dist/styles.css +41 -20
- package/dist/{utils-CTGH5e8c.d.ts → utils-BaLi5Bed.d.ts} +1 -1
- package/dist/{utils-DNKOwa7D.d.ts → utils-_AEBNJhG.d.ts} +2 -2
- package/package.json +3 -3
- package/dist/printer-DVZVkqAr.d.ts +0 -13
- package/dist/routing-Dhmv52Fd.d.ts +0 -54
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as DocsLanguage } from "./routing-
|
|
1
|
+
import { t as DocsLanguage } from "./routing-CMqh1cTZ.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime15 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):
|
|
36
|
+
}: SDKChildrenProps): react_jsx_runtime15.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):
|
|
46
|
+
}: SDKDeclarationProps): react_jsx_runtime15.JSX.Element;
|
|
47
47
|
type SDKConstraintsProps = {
|
|
48
48
|
constraints?: Record<string, any>;
|
|
49
49
|
};
|
|
50
50
|
declare function SDKConstraints({
|
|
51
51
|
constraints
|
|
52
|
-
}: SDKConstraintsProps):
|
|
52
|
+
}: SDKConstraintsProps): react_jsx_runtime15.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):
|
|
59
|
+
}: SDKIconProps): react_jsx_runtime15.JSX.Element | null;
|
|
60
60
|
type SDKRequestTitleProps = {
|
|
61
61
|
snippetLanguage: SDKJSON.SnippetLanguage;
|
|
62
62
|
};
|
|
63
63
|
declare function SDKRequestTitle({
|
|
64
64
|
snippetLanguage
|
|
65
|
-
}: SDKRequestTitleProps):
|
|
65
|
+
}: SDKRequestTitleProps): react_jsx_runtime15.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):
|
|
73
|
+
}: SDKExampleProps): react_jsx_runtime15.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):
|
|
80
|
+
}: SDKMethodProps): react_jsx_runtime15.JSX.Element;
|
|
81
81
|
declare function SDKMethodInfo({
|
|
82
82
|
method
|
|
83
|
-
}: SDKMethodProps):
|
|
83
|
+
}: SDKMethodProps): react_jsx_runtime15.JSX.Element;
|
|
84
84
|
declare function SDKMethod({
|
|
85
85
|
method,
|
|
86
86
|
transformRequestSnippet
|
|
87
|
-
}: SDKMethodProps):
|
|
87
|
+
}: SDKMethodProps): react_jsx_runtime15.JSX.Element;
|
|
88
88
|
type SDKModelProps = {
|
|
89
89
|
model: SDKJSON.Model;
|
|
90
90
|
};
|
|
91
91
|
declare function SDKModel({
|
|
92
92
|
model
|
|
93
|
-
}: SDKModelProps):
|
|
93
|
+
}: SDKModelProps): react_jsx_runtime15.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 |
|
|
101
|
+
}: SDKReferenceProps): string | number | bigint | boolean | react_jsx_runtime15.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):
|
|
116
|
+
}: SDKLanguageBlockProps): react_jsx_runtime15.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,6 +1,6 @@
|
|
|
1
1
|
import { t as DocsLanguage } from "./routing-CMqh1cTZ.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime49 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):
|
|
36
|
+
}: SDKChildrenProps): react_jsx_runtime49.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):
|
|
46
|
+
}: SDKDeclarationProps): react_jsx_runtime49.JSX.Element;
|
|
47
47
|
type SDKConstraintsProps = {
|
|
48
48
|
constraints?: Record<string, any>;
|
|
49
49
|
};
|
|
50
50
|
declare function SDKConstraints({
|
|
51
51
|
constraints
|
|
52
|
-
}: SDKConstraintsProps):
|
|
52
|
+
}: SDKConstraintsProps): react_jsx_runtime49.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):
|
|
59
|
+
}: SDKIconProps): react_jsx_runtime49.JSX.Element | null;
|
|
60
60
|
type SDKRequestTitleProps = {
|
|
61
61
|
snippetLanguage: SDKJSON.SnippetLanguage;
|
|
62
62
|
};
|
|
63
63
|
declare function SDKRequestTitle({
|
|
64
64
|
snippetLanguage
|
|
65
|
-
}: SDKRequestTitleProps):
|
|
65
|
+
}: SDKRequestTitleProps): react_jsx_runtime49.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):
|
|
73
|
+
}: SDKExampleProps): react_jsx_runtime49.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):
|
|
80
|
+
}: SDKMethodProps): react_jsx_runtime49.JSX.Element;
|
|
81
81
|
declare function SDKMethodInfo({
|
|
82
82
|
method
|
|
83
|
-
}: SDKMethodProps):
|
|
83
|
+
}: SDKMethodProps): react_jsx_runtime49.JSX.Element;
|
|
84
84
|
declare function SDKMethod({
|
|
85
85
|
method,
|
|
86
86
|
transformRequestSnippet
|
|
87
|
-
}: SDKMethodProps):
|
|
87
|
+
}: SDKMethodProps): react_jsx_runtime49.JSX.Element;
|
|
88
88
|
type SDKModelProps = {
|
|
89
89
|
model: SDKJSON.Model;
|
|
90
90
|
};
|
|
91
91
|
declare function SDKModel({
|
|
92
92
|
model
|
|
93
|
-
}: SDKModelProps):
|
|
93
|
+
}: SDKModelProps): react_jsx_runtime49.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> |
|
|
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;
|
|
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):
|
|
116
|
+
}: SDKLanguageBlockProps): react_jsx_runtime49.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,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 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):
|
|
15
|
+
}: SidebarExpanderProps): react_jsx_runtime0.JSX.Element;
|
|
16
16
|
type SidebarMethodProps = {
|
|
17
17
|
method: SDKJSON.Method;
|
|
18
18
|
};
|
|
19
19
|
declare function SidebarMethod({
|
|
20
20
|
method
|
|
21
|
-
}: SidebarMethodProps):
|
|
21
|
+
}: SidebarMethodProps): react_jsx_runtime0.JSX.Element;
|
|
22
22
|
type SidebarResourceProps = {
|
|
23
23
|
resource: SDKJSON.Resource;
|
|
24
24
|
};
|
|
25
25
|
declare function SidebarResource({
|
|
26
26
|
resource
|
|
27
|
-
}: SidebarResourceProps):
|
|
27
|
+
}: SidebarResourceProps): react_jsx_runtime0.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):
|
|
34
|
+
}: SidebarProps): react_jsx_runtime0.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 * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime61 from "react/jsx-runtime";
|
|
3
|
+
import * as SDKJSON from "@stainless/sdk-json";
|
|
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_runtime61.JSX.Element;
|
|
16
|
+
type SidebarMethodProps = {
|
|
17
|
+
method: SDKJSON.Method;
|
|
18
|
+
};
|
|
19
|
+
declare function SidebarMethod({
|
|
20
|
+
method
|
|
21
|
+
}: SidebarMethodProps): react_jsx_runtime61.JSX.Element;
|
|
22
|
+
type SidebarResourceProps = {
|
|
23
|
+
resource: SDKJSON.Resource;
|
|
24
|
+
};
|
|
25
|
+
declare function SidebarResource({
|
|
26
|
+
resource
|
|
27
|
+
}: SidebarResourceProps): react_jsx_runtime61.JSX.Element;
|
|
28
|
+
type SidebarProps = {
|
|
29
|
+
resources: SDKJSON.Resource[];
|
|
30
|
+
selectedPath?: string;
|
|
31
|
+
};
|
|
32
|
+
declare function Sidebar({
|
|
33
|
+
resources
|
|
34
|
+
}: SidebarProps): react_jsx_runtime61.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,6 +1,6 @@
|
|
|
1
|
-
import { C as TransformRequestSnippetFn } from "./sdk-
|
|
1
|
+
import { C as TransformRequestSnippetFn } from "./sdk-BwXeHS3_.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime56 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):
|
|
15
|
+
}: SnippetCodeProps): react_jsx_runtime56.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):
|
|
27
|
+
}: SnippetContainerProps): react_jsx_runtime56.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):
|
|
34
|
+
}: SnippetRequestContainerProps): react_jsx_runtime56.JSX.Element;
|
|
35
35
|
declare function Snippet({
|
|
36
36
|
requestTitle,
|
|
37
37
|
method,
|
|
38
38
|
transformRequestSnippet
|
|
39
|
-
}: SnippetProps):
|
|
39
|
+
}: SnippetProps): react_jsx_runtime56.JSX.Element | null;
|
|
40
40
|
declare function SnippetButtons({
|
|
41
41
|
content
|
|
42
42
|
}: {
|
|
43
43
|
content: string;
|
|
44
|
-
}):
|
|
44
|
+
}): react_jsx_runtime56.JSX.Element;
|
|
45
45
|
declare function SnippetResponse({
|
|
46
46
|
responses
|
|
47
47
|
}: {
|
|
48
48
|
responses: SDKJSON.Method['exampleResponses'];
|
|
49
|
-
}):
|
|
49
|
+
}): react_jsx_runtime56.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-
|
|
1
|
+
import { C as TransformRequestSnippetFn } from "./sdk-DXdNszcC.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime69 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):
|
|
15
|
+
}: SnippetCodeProps): react_jsx_runtime69.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):
|
|
27
|
+
}: SnippetContainerProps): react_jsx_runtime69.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):
|
|
34
|
+
}: SnippetRequestContainerProps): react_jsx_runtime69.JSX.Element;
|
|
35
35
|
declare function Snippet({
|
|
36
36
|
requestTitle,
|
|
37
37
|
method,
|
|
38
38
|
transformRequestSnippet
|
|
39
|
-
}: SnippetProps):
|
|
39
|
+
}: SnippetProps): react_jsx_runtime69.JSX.Element | null;
|
|
40
40
|
declare function SnippetButtons({
|
|
41
41
|
content
|
|
42
42
|
}: {
|
|
43
43
|
content: string;
|
|
44
|
-
}):
|
|
44
|
+
}): react_jsx_runtime69.JSX.Element;
|
|
45
45
|
declare function SnippetResponse({
|
|
46
46
|
responses
|
|
47
47
|
}: {
|
|
48
48
|
responses: SDKJSON.Method['exampleResponses'];
|
|
49
|
-
}):
|
|
49
|
+
}): react_jsx_runtime69.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/main.css
CHANGED
|
@@ -664,10 +664,10 @@
|
|
|
664
664
|
white-space: preserve nowrap;
|
|
665
665
|
padding: 1rem;
|
|
666
666
|
max-height: 560px;
|
|
667
|
-
|
|
667
|
+
font-size: var(--stl-typography-scale-sm);
|
|
668
|
+
line-height: 1.5;
|
|
668
669
|
transition: height 240ms ease;
|
|
669
670
|
will-change: height;
|
|
670
|
-
font-size: var(--stl-typography-text-code);
|
|
671
671
|
scrollbar-color: var(--stl-color-border) transparent;
|
|
672
672
|
|
|
673
673
|
.shiki {
|
package/dist/styles.css
CHANGED
|
@@ -12,14 +12,13 @@
|
|
|
12
12
|
--stl-typography-text-body-sm: var(--stl-typography-scale-sm);
|
|
13
13
|
--stl-typography-text-body-xs: var(--stl-typography-scale-xs);
|
|
14
14
|
|
|
15
|
-
--stl-typography-text-code: max(0.875em, var(--stl-typography-scale-
|
|
16
|
-
|
|
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);
|
|
15
|
+
--stl-typography-text-code: max(0.875em, var(--stl-typography-scale-xs));
|
|
22
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);
|
|
23
22
|
--stl-typography-scale-xs: 12px;
|
|
24
23
|
--stl-typography-scale-sm: 14px;
|
|
25
24
|
--stl-typography-scale-base: 16px;
|
|
@@ -65,6 +64,11 @@ body {
|
|
|
65
64
|
color: initial;
|
|
66
65
|
}
|
|
67
66
|
|
|
67
|
+
&.small {
|
|
68
|
+
font-size: var(--stl-typography-scale-sm);
|
|
69
|
+
letter-spacing: normal;
|
|
70
|
+
}
|
|
71
|
+
|
|
68
72
|
:where(strong:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose strong) {
|
|
69
73
|
color: var(--stl-color-foreground);
|
|
70
74
|
}
|
|
@@ -89,35 +93,35 @@ body {
|
|
|
89
93
|
/* Heading 1/Medium */
|
|
90
94
|
font-size: var(--stl-typography-text-h1);
|
|
91
95
|
letter-spacing: -0.03em;
|
|
92
|
-
margin-top:
|
|
96
|
+
margin-top: 1.5em;
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
:where(h2:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h2) {
|
|
96
100
|
/* Heading 2/Medium */
|
|
97
101
|
font-size: var(--stl-typography-text-h2);
|
|
98
102
|
letter-spacing: -0.03em;
|
|
99
|
-
margin-top:
|
|
103
|
+
margin-top: 1.35em;
|
|
100
104
|
}
|
|
101
105
|
|
|
102
106
|
:where(h3:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h3) {
|
|
103
107
|
/* Heading 3/Medium */
|
|
104
108
|
font-size: var(--stl-typography-text-h3);
|
|
105
109
|
letter-spacing: -0.02em;
|
|
106
|
-
margin-top:
|
|
110
|
+
margin-top: 1.35em;
|
|
107
111
|
}
|
|
108
112
|
|
|
109
113
|
:where(h4:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h4) {
|
|
110
114
|
/* Heading 4/Medium */
|
|
111
115
|
font-size: var(--stl-typography-text-h4);
|
|
112
116
|
letter-spacing: -0.02em;
|
|
113
|
-
margin-top:
|
|
117
|
+
margin-top: 1.35em;
|
|
114
118
|
}
|
|
115
119
|
|
|
116
120
|
:where(h5:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h5) {
|
|
117
121
|
/* Heading 5/Medium */
|
|
118
122
|
font-size: var(--stl-typography-text-h5);
|
|
119
123
|
letter-spacing: -0.02em;
|
|
120
|
-
margin-top:
|
|
124
|
+
margin-top: 1.2em;
|
|
121
125
|
}
|
|
122
126
|
|
|
123
127
|
:where(li:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose li) {
|
|
@@ -126,15 +130,34 @@ body {
|
|
|
126
130
|
}
|
|
127
131
|
}
|
|
128
132
|
|
|
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);
|
|
139
|
+
|
|
140
|
+
:where(h1) {
|
|
141
|
+
margin-top: 1.5em;
|
|
142
|
+
}
|
|
143
|
+
:where(h2, h3, h4) {
|
|
144
|
+
margin-top: 1.25em;
|
|
145
|
+
}
|
|
146
|
+
:where(h5) {
|
|
147
|
+
margin-top: 1em;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* code blocks */
|
|
129
152
|
:where(
|
|
130
153
|
pre:not(.stl-ui-not-prose *, .expressive-code *),
|
|
131
154
|
.stl-ui-not-prose .stl-ui-prose pre:not(.expressive-code *)
|
|
132
155
|
) {
|
|
133
156
|
padding: 12px 20px;
|
|
134
157
|
border-radius: var(--stl-ui-layout-border-radius-sml);
|
|
135
|
-
border: 1px solid var(--stl-color-border
|
|
158
|
+
border: 1px solid var(--stl-color-border);
|
|
136
159
|
background-color: var(--stl-color-faint-background);
|
|
137
|
-
overflow:
|
|
160
|
+
overflow: auto;
|
|
138
161
|
margin-bottom: 1rem;
|
|
139
162
|
}
|
|
140
163
|
|
|
@@ -173,9 +196,7 @@ body {
|
|
|
173
196
|
}
|
|
174
197
|
|
|
175
198
|
/* code blocks */
|
|
176
|
-
&:where(pre > &) {
|
|
177
|
-
font-size: var(--stl-typography-text-body-sm);
|
|
178
|
-
}
|
|
199
|
+
/* &:where(pre > &) { } */
|
|
179
200
|
}
|
|
180
201
|
}
|
|
181
202
|
|
|
@@ -205,7 +226,7 @@ body {
|
|
|
205
226
|
--stl-ui-layout-border-radius-sml: 8px;
|
|
206
227
|
--stl-ui-layout-border-radius: 12px;
|
|
207
228
|
--stl-ui-layout-border-radius-med: 16px;
|
|
208
|
-
--stl-ui-layout-border-radius-max:
|
|
229
|
+
--stl-ui-layout-border-radius-max: 100vmax;
|
|
209
230
|
--stl-ui-left-content-indent: 24px;
|
|
210
231
|
|
|
211
232
|
--stl-ui-page-padding-inline: 20px;
|
|
@@ -2250,10 +2271,10 @@ a.stl-ui-button {
|
|
|
2250
2271
|
white-space: preserve nowrap;
|
|
2251
2272
|
padding: 1rem;
|
|
2252
2273
|
max-height: 560px;
|
|
2253
|
-
|
|
2274
|
+
font-size: var(--stl-typography-scale-sm);
|
|
2275
|
+
line-height: 1.5;
|
|
2254
2276
|
transition: height 240ms ease;
|
|
2255
2277
|
will-change: height;
|
|
2256
|
-
font-size: var(--stl-typography-text-code);
|
|
2257
2278
|
scrollbar-color: var(--stl-color-border) transparent;
|
|
2258
2279
|
|
|
2259
2280
|
.shiki {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as DocsLanguage } from "./routing-CMqh1cTZ.js";
|
|
2
|
-
import { C as TransformRequestSnippetFn } from "./sdk-
|
|
2
|
+
import { C as TransformRequestSnippetFn } from "./sdk-DXdNszcC.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-
|
|
2
|
-
import { C as TransformRequestSnippetFn } from "./sdk-
|
|
1
|
+
import { t as DocsLanguage } from "./routing-CMqh1cTZ.js";
|
|
2
|
+
import { C as TransformRequestSnippetFn } from "./sdk-BwXeHS3_.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.
|
|
4
|
+
"version": "0.1.0-beta.50",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -18,10 +18,10 @@
|
|
|
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.
|
|
21
|
+
"@stainless-api/ui-primitives": "0.1.0-beta.37"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/node": "24.10.
|
|
24
|
+
"@types/node": "24.10.3",
|
|
25
25
|
"@types/react": "19.2.7",
|
|
26
26
|
"@types/react-dom": "^19.2.3",
|
|
27
27
|
"dotenv": "17.2.3",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { t as DocsLanguage } from "./routing-Dhmv52Fd.js";
|
|
2
|
-
import * as SDKJSON from "@stainless/sdk-json";
|
|
3
|
-
|
|
4
|
-
//#region src/markdown/printer.d.ts
|
|
5
|
-
declare namespace printer_d_exports {
|
|
6
|
-
export { declaration, methodSignature, type, typeName };
|
|
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;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { typeName as a, type as i, methodSignature as n, printer_d_exports as r, declaration as t };
|
|
@@ -1,54 +0,0 @@
|
|
|
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 };
|